lightrun 1.2.0 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -27
- 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.d.ts +21 -9
- package/build/src/agent/config.js +1 -1
- package/build/src/agent/config.js.map +1 -1
- package/build/src/agent/controller.js +1 -1
- package/build/src/agent/controller.js.map +1 -1
- package/build/src/agent/debuglet.d.ts +3 -0
- package/build/src/agent/debuglet.js +1 -1
- package/build/src/agent/debuglet.js.map +1 -1
- package/build/src/agent/io/scanner.js +1 -1
- package/build/src/agent/io/sourcemapper.d.ts +1 -0
- package/build/src/agent/io/sourcemapper.js +1 -1
- package/build/src/agent/io/sourcemapper.js.map +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.d.ts +8 -2
- package/build/src/agent/quota-manager.js +1 -1
- package/build/src/agent/quota-manager.js.map +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.d.ts +2 -0
- package/build/src/agent/util/utils.js +1 -1
- package/build/src/agent/util/utils.js.map +1 -1
- package/build/src/agent/util/validator.js +1 -1
- package/build/src/agent/v8/debugapi.d.ts +2 -0
- package/build/src/agent/v8/debugapi.js +1 -1
- package/build/src/agent/v8/debugapi.js.map +1 -1
- package/build/src/agent/v8/inspector-debugapi.d.ts +2 -2
- package/build/src/agent/v8/inspector-debugapi.js +1 -1
- package/build/src/agent/v8/inspector-debugapi.js.map +1 -1
- package/build/src/agent/v8/legacy-debugapi.d.ts +2 -0
- package/build/src/agent/v8/legacy-debugapi.js +1 -1
- package/build/src/agent/v8/legacy-debugapi.js.map +1 -1
- package/build/src/agent/v8/v8inspector.d.ts +35 -4
- package/build/src/agent/v8/v8inspector.js +1 -1
- package/build/src/agent/v8/v8inspector.js.map +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.d.ts +3 -0
- package/build/src/debuggee.js +1 -1
- package/build/src/debuggee.js.map +1 -1
- package/build/src/index.d.ts +3 -1
- package/build/src/index.js +1 -1
- package/build/src/index.js.map +1 -1
- package/build/src/resources/version.txt +1 -0
- 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 +3 -2
package/README.md
CHANGED
|
@@ -1,41 +1,67 @@
|
|
|
1
|
-
# Node.js
|
|
1
|
+
# Lightrun for Node.js
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[Lightrun](https://lightrun.com) is a developer-native observabity platform. It's a way to add logs, inspect the state of the current execution (in a familiar, debugger-like view), and extract any type of code-level metric **on the fly** - without redeploying, restarting or even stopping the running application.
|
|
4
4
|
|
|
5
|
+
Check out our [docs](https://docs.lightrun.com/node/overview/) to learn more.
|
|
5
6
|
|
|
6
|
-
##
|
|
7
|
+
## Getting Started
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
To pack the agent you can run - `./build.sh`. This will compile the agent, run tests and
|
|
10
|
-
pack it to a `tgz` file. If you do not wish to run the tests, run
|
|
11
|
-
`./build.sh --skiptests=true`
|
|
9
|
+
To get started with Lightrun you'll need three things:
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
1. A Lightrun Account - you can get one [here](https://app.lightrun.com/api/oauth/register).
|
|
12
|
+
2. A Lightrun Plugin - you'll have instructions to download it once you create an account, but you can also check them out [here](https://docs.lightrun.com/node/plugin/).
|
|
13
|
+
3. A Lightrun Agent - which is this very NPM package! It's the thing that actually does the magic.
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
Once you've signed up for an account and downloaded the plugin, you can install the agent in your application.
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
## Installing the Lightrun Agent
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
In order to install the Lightrun Node Agent please follow these steps:
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
1. In your project's folder, install the node agent by running `npm install lightrun`.
|
|
22
|
+
|
|
23
|
+
2.
|
|
24
|
+
a. **For regular Node.js applications** - Require Lightrun at the start of your your application file (i.e. `index.js` or `app.js`):
|
|
25
|
+
|
|
26
|
+
```javascript
|
|
27
|
+
require('lightrun').start({
|
|
28
|
+
company: '<COMPANY-NAME>',
|
|
29
|
+
lightrunSecret: '<COMPANY-SECRET>',
|
|
30
|
+
});
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
b. **For TypeScript applications** - Import Lightrun at the start of your your application file (i.e. `index.ts` or `app.ts`) and then start it:
|
|
34
|
+
|
|
35
|
+
```javascript
|
|
36
|
+
import * as lightrun from 'lightrun';
|
|
37
|
+
|
|
38
|
+
lightrun.start({
|
|
39
|
+
company: '<COMPANY-NAME>',
|
|
40
|
+
lightrunSecret: '<COMPANY-SECRET>',
|
|
41
|
+
});
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
You will choose a `<COMPANY_NAME>` and have a `<COMPANY-SECRET>` auto-generated for you during the onbaording process, right after signing up for an account.
|
|
45
|
+
### Important Note - Sourcemap Files
|
|
46
|
+
Lightrun for TypeScript needs to have [sourcemap files](https://www.typescriptlang.org/tsconfig#sourceMap) available to it in order to work properly. Please make sure to [set `sourceMap` to `true` when compiling your TypeScript code](https://www.typescriptlang.org/tsconfig#sourceMap).
|
|
47
|
+
|
|
48
|
+
3. Run the application as you normally would.
|
|
49
|
+
|
|
50
|
+
You should now see the application's agent popping up in the Lightrun Plugin's sidebar - you can now add [logs](https://docs.lightrun.com/logs/), [snapshots](https://docs.lightrun.com/snapshots-plugin/) and [metrics](https://docs.lightrun.com/metrics/) to your application.
|
|
51
|
+
|
|
52
|
+
### Providing Credentials Via Environment Variables
|
|
53
|
+
|
|
54
|
+
You can optionally choose to provide the `<COMPANY_NAME>` and `<COMPANY-SECRET>` via environment variables to the Node process.
|
|
55
|
+
To do so, follow these steps after installing the agent (**note that this does not work on Windows**):
|
|
56
|
+
|
|
57
|
+
1. Import Lightrun at the start of the file:
|
|
24
58
|
|
|
25
59
|
```javascript
|
|
26
|
-
require('lightrun').start(
|
|
60
|
+
require('lightrun').start();
|
|
27
61
|
```
|
|
28
62
|
|
|
29
|
-
|
|
30
|
-
* `noCheckCertificate` - Pass `true` to disable certificate pinning
|
|
31
|
-
* `apiEndpoint` - The server endpoint the agent will communicate with
|
|
32
|
-
* `caPath` - Path to `pem` file of the CA signing the certificate of the server
|
|
33
|
-
(useful for self-signed certificates)
|
|
63
|
+
2. Run the application with the environment variables provided before the `node` command:
|
|
34
64
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
* `LIGHTRUN_SECRET` - The company secret
|
|
39
|
-
* `LIGHTRUN_COMPANY` - The company name
|
|
40
|
-
* `LIGHTRUN_TAGS` - Comma separated list of tags for the agent
|
|
41
|
-
* `LIGHTRUN_METADATA_FILE` - Path to file containing the metadata json for the agent
|
|
65
|
+
```javascript
|
|
66
|
+
LIGHTRUN_SECRET=<COMPANY_SECRET> LIGHTRUN_COMPANY=<COMPANY_NAME> node index.js
|
|
67
|
+
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5299=['substring','__esModule','103EHQhXD','some','patterns','324651GQSojI','666794TiMroP','length','539383zASxNh','2023XhFdkP','211WNWsLP','push','defineProperty','BlocklistingPatterns','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','264314RBBuZX','return\x20/\x22\x20+\x20this\x20+\x20\x22/','1WWPSUH','inversePatterns','test','1rGUvld','285166BkrVun','721EzNGRh','constructor','match'];const a0_0x2758ab=a0_0x5e94;function a0_0x5e94(_0x312073,_0x3bbdfd){_0x312073=_0x312073-0x16d;let _0x2fb224=a0_0x5299[_0x312073];return _0x2fb224;}(function(_0x117e93,_0xc76fc){const _0x8b02b9=a0_0x5e94;while(!![]){try{const _0x3bbe13=parseInt(_0x8b02b9(0x17b))+parseInt(_0x8b02b9(0x172))*parseInt(_0x8b02b9(0x17f))+parseInt(_0x8b02b9(0x171))*-parseInt(_0x8b02b9(0x170))+parseInt(_0x8b02b9(0x184))+-parseInt(_0x8b02b9(0x17d))+parseInt(_0x8b02b9(0x16d))*parseInt(_0x8b02b9(0x17a))+-parseInt(_0x8b02b9(0x177))*parseInt(_0x8b02b9(0x17e));if(_0x3bbe13===_0xc76fc)break;else _0x117e93['push'](_0x117e93['shift']());}catch(_0x271368){_0x117e93['push'](_0x117e93['shift']());}}}(a0_0x5299,0x5b8bc));const a0_0x2041e5=function(){let _0x20ca55=!![];return function(_0x569f7a,_0x43016f){const _0x585617=_0x20ca55?function(){if(_0x43016f){const _0x3e13e5=_0x43016f['apply'](_0x569f7a,arguments);return _0x43016f=null,_0x3e13e5;}}:function(){};return _0x20ca55=![],_0x585617;};}(),a0_0x65075d=a0_0x2041e5(this,function(){const _0x4eb033=function(){const _0x4c03d7=a0_0x5e94,_0x12120e=_0x4eb033[_0x4c03d7(0x173)](_0x4c03d7(0x185))()[_0x4c03d7(0x173)](_0x4c03d7(0x183));return!_0x12120e[_0x4c03d7(0x16f)](a0_0x65075d);};return _0x4eb033();});a0_0x65075d();'use strict';Object[a0_0x2758ab(0x181)](exports,a0_0x2758ab(0x176),{'value':!![]}),exports[a0_0x2758ab(0x182)]=void 0x0;class BlocklistingPatterns{constructor(_0x50a84b){const _0x1ec97d=a0_0x2758ab;this[_0x1ec97d(0x16e)]=[],this[_0x1ec97d(0x179)]=[],_0x50a84b&&_0x50a84b['forEach'](_0x3df16b=>{const _0x3d192a=_0x1ec97d;_0x3df16b&&(_0x3df16b[0x0]==='!'?this[_0x3d192a(0x16e)][_0x3d192a(0x180)](new RegExp(_0x3df16b[_0x3d192a(0x175)](0x1))):this['patterns'][_0x3d192a(0x180)](new RegExp(_0x3df16b)));});}['matches'](_0x12fa7e){const _0x1cfd1=a0_0x2758ab;let _0x593e26=_0x5bd36a=>_0x12fa7e[_0x1cfd1(0x174)](_0x5bd36a);return this[_0x1cfd1(0x16e)][_0x1cfd1(0x17c)]!==0x0&&!this['inversePatterns'][_0x1cfd1(0x178)](_0x593e26)||this[_0x1cfd1(0x179)][_0x1cfd1(0x178)](_0x593e26);}}exports[a0_0x2758ab(0x182)]=BlocklistingPatterns;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x3f17=['test','117464tCRmOr','858883VyhClG','7563JmibKr','10339JXxbPM','DummyBlocklistManager','1054SZXCvX','327WFJDqm','5CnAxNl','apply','91zSXHAx','__esModule','shouldBlock','defineProperty','1AhGwzG','2078mKzfGd','88GGLZKn','constructor','value','391168VaWDTR','13uFMnwn'];var a1_0x14ba43=a1_0xf8e9;(function(_0x1b45ea,_0x2a95aa){var _0x48ec78=a1_0xf8e9;while(!![]){try{var _0x42e685=parseInt(_0x48ec78(0xcd))*-parseInt(_0x48ec78(0xdc))+-parseInt(_0x48ec78(0xdb))*-parseInt(_0x48ec78(0xd3))+parseInt(_0x48ec78(0xe0))*parseInt(_0x48ec78(0xd9))+parseInt(_0x48ec78(0xde))*parseInt(_0x48ec78(0xd7))+parseInt(_0x48ec78(0xd6))+-parseInt(_0x48ec78(0xdf))*-parseInt(_0x48ec78(0xd2))+parseInt(_0x48ec78(0xd1))*-parseInt(_0x48ec78(0xda));if(_0x42e685===_0x2a95aa)break;else _0x1b45ea['push'](_0x1b45ea['shift']());}catch(_0x4b6027){_0x1b45ea['push'](_0x1b45ea['shift']());}}}(a1_0x3f17,0x833a4));var a1_0x49ce90=function(){var _0x5d6651=!![];return function(_0x254cf6,_0x4d99e3){var _0x3954f1=_0x5d6651?function(){var _0x571626=a1_0xf8e9;if(_0x4d99e3){var _0x3d003c=_0x4d99e3[_0x571626(0xe1)](_0x254cf6,arguments);return _0x4d99e3=null,_0x3d003c;}}:function(){};return _0x5d6651=![],_0x3954f1;};}(),a1_0x1b16e8=a1_0x49ce90(this,function(){var _0x3de680=function(){var _0x1ce8d8=a1_0xf8e9,_0x2f5a3c=_0x3de680[_0x1ce8d8(0xd4)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2f5a3c[_0x1ce8d8(0xd8)](a1_0x1b16e8);};return _0x3de680();});a1_0x1b16e8();'use strict';function a1_0xf8e9(_0x2e70c1,_0x5677d1){_0x2e70c1=_0x2e70c1-0xcd;var _0x3dbb1b=a1_0x3f17[_0x2e70c1];return _0x3dbb1b;}Object[a1_0x14ba43(0xd0)](exports,a1_0x14ba43(0xce),{'value':!![]}),exports['DummyBlocklistManager']=void 0x0;class DummyBlocklistManager{constructor(_0x397a3d){var _0x33e40a=a1_0x14ba43;this[_0x33e40a(0xd5)]=_0x397a3d;}[a1_0x14ba43(0xcf)](_0x114050){var _0xe688fb=a1_0x14ba43;return this[_0xe688fb(0xd5)];}}exports[a1_0x14ba43(0xdd)]=DummyBlocklistManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x17e2=['1PEIoat','blocklist','isPathInCurrentWorkingDirectory','506090MFnyIx','return\x20/\x22\x20+\x20this\x20+\x20\x22/','241620bKDRpZ','./blocklisting-patterns','constructor','shouldBlock','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','PatternsBlocklistManager','263989LgbxpJ','blocklistExceptions','matches','stripCurrentWorkingDirectory','config','229817JJMaKK','test','../util/utils','defineProperty','501080fMcHYL','BlocklistingPatterns','557837cYrcaQ','stripWorkingDir','110565nrrnjh'];const a2_0x9614e8=a2_0x420d;(function(_0x4c91f9,_0x20ed1b){const _0x5eed2d=a2_0x420d;while(!![]){try{const _0x8f3b3f=-parseInt(_0x5eed2d(0x1bb))+parseInt(_0x5eed2d(0x1b9))+parseInt(_0x5eed2d(0x1a8))+-parseInt(_0x5eed2d(0x1b1))+-parseInt(_0x5eed2d(0x1ad))+-parseInt(_0x5eed2d(0x1b6))*-parseInt(_0x5eed2d(0x1b3))+parseInt(_0x5eed2d(0x1b5));if(_0x8f3b3f===_0x20ed1b)break;else _0x4c91f9['push'](_0x4c91f9['shift']());}catch(_0x45f35e){_0x4c91f9['push'](_0x4c91f9['shift']());}}}(a2_0x17e2,0x71c2c));const a2_0x28b5fe=function(){let _0xacf8e3=!![];return function(_0x469899,_0x269b82){const _0x291432=_0xacf8e3?function(){if(_0x269b82){const _0x1b35ec=_0x269b82['apply'](_0x469899,arguments);return _0x269b82=null,_0x1b35ec;}}:function(){};return _0xacf8e3=![],_0x291432;};}(),a2_0x466a35=a2_0x28b5fe(this,function(){const _0x5a76aa=function(){const _0x14ee6c=a2_0x420d,_0x11995d=_0x5a76aa[_0x14ee6c(0x1a4)](_0x14ee6c(0x1ba))()[_0x14ee6c(0x1a4)](_0x14ee6c(0x1a6));return!_0x11995d[_0x14ee6c(0x1ae)](a2_0x466a35);};return _0x5a76aa();});a2_0x466a35();function a2_0x420d(_0x457c40,_0x9616f){_0x457c40=_0x457c40-0x1a4;let _0x5b169c=a2_0x17e2[_0x457c40];return _0x5b169c;}'use strict';Object[a2_0x9614e8(0x1b0)](exports,'__esModule',{'value':!![]}),exports[a2_0x9614e8(0x1a7)]=void 0x0;const blocklisting_patterns_1=require(a2_0x9614e8(0x1bc)),utils=require(a2_0x9614e8(0x1af));class PatternsBlocklistManager{constructor(_0x15e6ab,_0x46c6a2,_0x2228d9){const _0x4736d0=a2_0x9614e8;this[_0x4736d0(0x1b7)]=new blocklisting_patterns_1[(_0x4736d0(0x1b2))](_0x15e6ab),this[_0x4736d0(0x1a9)]=new blocklisting_patterns_1[(_0x4736d0(0x1b2))](_0x46c6a2),this['config']=_0x2228d9;}[a2_0x9614e8(0x1a5)](_0x5355bd){const _0x33c1ea=a2_0x9614e8;_0x5355bd=this[_0x33c1ea(0x1b4)](_0x5355bd);if(this[_0x33c1ea(0x1a9)][_0x33c1ea(0x1aa)](_0x5355bd))return![];return this[_0x33c1ea(0x1b7)][_0x33c1ea(0x1aa)](_0x5355bd);}[a2_0x9614e8(0x1b4)](_0x46e7d0){const _0x378948=a2_0x9614e8;if(utils[_0x378948(0x1b8)](_0x46e7d0,this[_0x378948(0x1ac)]))return utils[_0x378948(0x1ab)](_0x46e7d0,this['config']);return _0x46e7d0;}}exports[a2_0x9614e8(0x1a7)]=PatternsBlocklistManager;
|
|
@@ -255,15 +255,6 @@ export interface ResolvedDebugAgentConfig extends GoogleAuthOptions {
|
|
|
255
255
|
* options affecting log points.
|
|
256
256
|
*/
|
|
257
257
|
log: {
|
|
258
|
-
/**
|
|
259
|
-
* The maximum number of logs to record per second per logpoint.
|
|
260
|
-
*/
|
|
261
|
-
maxLogsPerSecond: number;
|
|
262
|
-
/**
|
|
263
|
-
* Number of seconds to wait after the `maxLogsPerSecond` rate is hit before
|
|
264
|
-
* logging resumes per logpoint.
|
|
265
|
-
*/
|
|
266
|
-
logDelaySeconds: number;
|
|
267
258
|
/**
|
|
268
259
|
* an objects that implements warn, err and info functions. by default this is console.
|
|
269
260
|
*
|
|
@@ -360,7 +351,28 @@ export interface ResolvedDebugAgentConfig extends GoogleAuthOptions {
|
|
|
360
351
|
* should quota be ignored
|
|
361
352
|
*/
|
|
362
353
|
ignoreQuota: boolean;
|
|
354
|
+
/**
|
|
355
|
+
* seconds needed for recovery from quota exceeded
|
|
356
|
+
*/
|
|
357
|
+
quotaRecoverySeconds: number;
|
|
363
358
|
};
|
|
359
|
+
agentConfigFile: string;
|
|
360
|
+
fetchBreakpointsOnce: boolean;
|
|
361
|
+
/**
|
|
362
|
+
* Number of times the V8 pauses (could be breakpoint hits) before the
|
|
363
|
+
* debugging session is reset. This is to release the memory usage held by V8
|
|
364
|
+
* engine for each breakpoint hit to prevent the memory leak. The default
|
|
365
|
+
* value is specified in defaultConfig.
|
|
366
|
+
*/
|
|
367
|
+
resetV8DebuggerThreshold: number;
|
|
368
|
+
/**
|
|
369
|
+
* Boolean to wait for the debugger to set first breakpoint before starting client's app
|
|
370
|
+
*/
|
|
371
|
+
lightrunWaitForInit: boolean;
|
|
372
|
+
/**
|
|
373
|
+
* Max time to wait for init
|
|
374
|
+
*/
|
|
375
|
+
lightrunInitWaitTimeMs: number;
|
|
364
376
|
}
|
|
365
377
|
export interface StackdriverConfig extends GoogleAuthOptions {
|
|
366
378
|
debug?: DebugAgentConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x10af=['defineProperty','1358599ldpdDK','14979lRnJld','6FbxQnE','.js','constructor','260861lODlmu','info','132864FSNgKr','defaultConfig','__esModule','agent.config','test','828314qGpqvW','515a630cfd1fb908e30087bcc20b7413ad146b9bf2b23d3aaa72c28e45b24fb2','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','214953LEaxRQ','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Production','ee80811b38e7e6c2dc4cc372cbea86bd86b446b012e427f2e19bf094afba5d12','node_modules/lightrun/build/src/resources/lightrun-self-signed.pem','22312KCGgaC','175gLPbhU','apply'];var a3_0x1e92d6=a3_0xe6d9;(function(_0x5eaef8,_0x58aacf){var _0x5e3dea=a3_0xe6d9;while(!![]){try{var _0x1a5b6d=-parseInt(_0x5e3dea(0x76))+parseInt(_0x5e3dea(0x89))+parseInt(_0x5e3dea(0x78))+-parseInt(_0x5e3dea(0x73))*-parseInt(_0x5e3dea(0x80))+parseInt(_0x5e3dea(0x7d))+parseInt(_0x5e3dea(0x85))+parseInt(_0x5e3dea(0x86))*-parseInt(_0x5e3dea(0x8a));if(_0x1a5b6d===_0x58aacf)break;else _0x5eaef8['push'](_0x5eaef8['shift']());}catch(_0x36fdf9){_0x5eaef8['push'](_0x5eaef8['shift']());}}}(a3_0x10af,0xb7035));var a3_0x40aad8=function(){var _0x7a8b8e=!![];return function(_0x1dccd0,_0x3063f6){var _0x7aeeaa=_0x7a8b8e?function(){var _0x52509d=a3_0xe6d9;if(_0x3063f6){var _0x5d11f6=_0x3063f6[_0x52509d(0x87)](_0x1dccd0,arguments);return _0x3063f6=null,_0x5d11f6;}}:function(){};return _0x7a8b8e=![],_0x7aeeaa;};}(),a3_0x352e0e=a3_0x40aad8(this,function(){var _0x263d46=function(){var _0x121e69=a3_0xe6d9,_0x2742f8=_0x263d46[_0x121e69(0x75)](_0x121e69(0x81))()[_0x121e69(0x75)](_0x121e69(0x7f));return!_0x2742f8[_0x121e69(0x7c)](a3_0x352e0e);};return _0x263d46();});a3_0x352e0e();'use strict';function a3_0xe6d9(_0x5ecfbf,_0x3c571){_0x5ecfbf=_0x5ecfbf-0x73;var _0x3ee151=a3_0x10af[_0x5ecfbf];return _0x3ee151;}Object[a3_0x1e92d6(0x88)](exports,a3_0x1e92d6(0x7a),{'value':!![]}),exports['defaultConfig']=void 0x0,exports[a3_0x1e92d6(0x79)]={'workingDirectory':process['cwd'](),'allowRootAsWorkingDirectory':![],'description':undefined,'allowExpressions':!![],'serviceContext':{'service':undefined,'version':undefined,'minorVersion_':undefined},'appPathRelativeToRepository':undefined,'javascriptFileExtensions':[a3_0x1e92d6(0x74)],'pathResolver':undefined,'breakpointUpdateIntervalSec':0x1e,'breakpointExpirationSec':0x3c*0x3c,'expressionsEvalTimeoutMillis':0x7d0,'capture':{'includeNodeModules':![],'maxFrames':0x14,'maxExpandFrames':0x5,'maxProperties':0xa,'maxDataSize':0x4e20,'maxStringLength':0x64},'log':{'logger':console},'internal':{'registerDelayOnFetcherErrorSec':0x1e,'maxRegistrationRetryDelay':0x28},'forceNewAgent_':![],'testMode_':![],'apiEndpoint':'app.lightrun.com','lightrunSecret':'','company':'','agentLog':{'logsPath':'/tmp','level':a3_0x1e92d6(0x77),'collectCooldownMs':0x3e8*0x3c,'maxLogFileBytes':0x400*0x400},'pinnedCerts':[a3_0x1e92d6(0x7e),a3_0x1e92d6(0x83)],'noCheckCertificate':![],'caPath':a3_0x1e92d6(0x84),'metadata':{'registration':{'tags':[a3_0x1e92d6(0x82)]}},'transmissionBulkMaxSize':0xa,'quota':{'maxConditionCost':0.01,'maxCPUCost':0.1,'maxDynamicLogRate':0x1e,'maxDynamicLogByteRate':0x5000,'ignoreQuota':![],'quotaRecoverySeconds':0x1},'agentConfigFile':a3_0x1e92d6(0x7b),'resetV8DebuggerThreshold':0x1e,'fetchBreakpointsOnce':![],'lightrunWaitForInit':![],'lightrunInitWaitTimeMs':0x7d0};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/agent/config.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/agent/config.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAkcpB,QAAA,aAAa,GAA6B;IACrD,8EAA8E;IAC9E,oEAAoE;IACpE,gBAAgB,EAAE,OAAO,CAAC,GAAG,EAAE;IAC/B,2BAA2B,EAAE,KAAK;IAClC,WAAW,EAAE,SAAS;IACtB,gBAAgB,EAAE,IAAI;IAEtB,0EAA0E;IAC1E,0DAA0D;IAC1D,cAAc,EAAE;QACd,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,aAAa,EAAE,SAAS;KACzB;IAED,2BAA2B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B,EAAE,KAAK;IAE1B,sBAAsB,EAAE,IAAI;CAC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4_0x2760=['Failed\x20to\x20zip\x20','transmissionTimeout','floor','11ltsZlZ','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','data','statSync','push','Successfully\x20sent\x20log\x20file\x20','stringify','unknown\x20error\x20-\x20request\x20response\x20missing','apiUrl','stream','416473MCSgEu','waitToken','lastLogCollectionTime','pinnedCerts','size','41987XWkiBQ','response','listBreakpoints','agentId','now','warn','WritableStream','catch','\x20seconds','\x22\x20-\x20ignoring\x20it','ServiceObject','constructor','createSecureContext','defineProperty','/breakpoints?','sendBreakpointLogsToServer','map','72213EwZGZV',',\x20Message:\x20','ascii','includes','makeRequest','743940zTcFei','tls','Failed\x20transmitting\x20breakpoint\x20updates\x20for\x20ids:\x20','\x20Error:\x20','selfSignedCA','\x20retry\x20count\x20exceeded\x20maximum\x20-\x20Dropping\x20it','.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Error:\x20','body','digest','should\x20have\x20a\x20registered\x20debuggee','caPath','/breakpoints','config','Compressing\x20and\x20sending\x20log\x20file\x20','pipeline','gaxios','readFileSync','createReadStream','/compressedLogFile/','Failed\x20to\x20send\x20log\x20file\x20','Bearer\x20','\x20transmitted\x20successfully','maxLogFileBytes','noCheckCertificate','sha256','update','Getting\x20blocklist','getBlocklist','lightrunSecret','transmitBreakpointUpdates','1MXiSSc','/blacklist?successOnTimeout=true','unable\x20to\x20list\x20breakpoints,\x20status\x20code\x20','info','Breakpoint\x20','@google-cloud/common','js-yaml','sendAgentLogsToServer','Controller','logger','querystring','memory-streams','agentLog','35261VrzRnc','createGzip','collectCooldownMs','length','.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Status\x20code:\x20','apply','transmissionBulkMaxSize','error','/log/','status','Agent','473855sdTQDr','__esModule','load','PUT','transmissionQueue','POST','debuggee','verifyCertificate','Failed\x20transmitting\x20breakpoint\x20updates,\x20dismissing\x20breakpoints:\x20','505846YFRNio','crypto','Certificate\x20Pinning\x20Failed!','register','assert','nextWaitToken','secureContext','\x20for\x20request\x20','/debuggees/company/','pubkey','uri','bind','\x20for\x20request\x20id\x20'];function a4_0xd2f3(_0x53b18d,_0x891338){_0x53b18d=_0x53b18d-0x6b;let _0x519af4=a4_0x2760[_0x53b18d];return _0x519af4;}const a4_0x5a15ee=a4_0xd2f3;(function(_0x1b479d,_0xf20aeb){const _0xb98060=a4_0xd2f3;while(!![]){try{const _0x49f0a9=parseInt(_0xb98060(0xc1))+-parseInt(_0xb98060(0xa0))*-parseInt(_0xb98060(0x7d))+parseInt(_0xb98060(0xdb))+parseInt(_0xb98060(0xb8))+-parseInt(_0xb98060(0x6c))+parseInt(_0xb98060(0xad))*-parseInt(_0xb98060(0xd1))+-parseInt(_0xb98060(0x82));if(_0x49f0a9===_0xf20aeb)break;else _0x1b479d['push'](_0x1b479d['shift']());}catch(_0x199845){_0x1b479d['push'](_0x1b479d['shift']());}}}(a4_0x2760,0x47ebd));const a4_0x49f851=function(){let _0x3ff073=!![];return function(_0xa89a9c,_0x29fc43){const _0x508365=_0x3ff073?function(){const _0xbd38c4=a4_0xd2f3;if(_0x29fc43){const _0x1012d1=_0x29fc43[_0xbd38c4(0xb2)](_0xa89a9c,arguments);return _0x29fc43=null,_0x1012d1;}}:function(){};return _0x3ff073=![],_0x508365;};}(),a4_0x5246cf=a4_0x49f851(this,function(){const _0x5a2c81=function(){const _0x233a9b=a4_0xd2f3,_0x22d0ff=_0x5a2c81[_0x233a9b(0x77)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x233a9b(0x77)](_0x233a9b(0xd2));return!_0x22d0ff['test'](a4_0x5246cf);};return _0x5a2c81();});a4_0x5246cf();'use strict';Object[a4_0x5a15ee(0x79)](exports,a4_0x5a15ee(0xb9),{'value':!![]}),exports[a4_0x5a15ee(0xa8)]=void 0x0;const common_1=require(a4_0x5a15ee(0xa5)),assert=require(a4_0x5a15ee(0xc5)),qs=require(a4_0x5a15ee(0xaa)),fs_1=require('fs'),crypto_1=require(a4_0x5a15ee(0xc2)),zlib_1=require('zlib'),stream_1=require(a4_0x5a15ee(0xda)),memory_streams_1=require(a4_0x5a15ee(0xab)),tls_1=require(a4_0x5a15ee(0x83)),gaxios=require(a4_0x5a15ee(0x91)),extend=require('extend'),https=require('https'),yaml=require(a4_0x5a15ee(0xa6)),MAX_FAILED_SEND_ATTEMPTS=0x5;class Controller extends common_1[a4_0x5a15ee(0x76)]{constructor(_0x560f24,_0x30cab1,_0x594a0f){const _0x123c1a=a4_0x5a15ee;super({'parent':_0x560f24,'baseUrl':'/controller'}),this[_0x123c1a(0xc6)]=null,this['agentId']=null,this[_0x123c1a(0x8e)]=_0x30cab1,this[_0x123c1a(0xbc)]=[],this[_0x123c1a(0xa9)]=_0x594a0f;if(_0x30cab1[_0x123c1a(0x8c)])try{this['selfSignedCA']=fs_1[_0x123c1a(0x92)](_0x30cab1[_0x123c1a(0x8c)],_0x123c1a(0x7f));}catch(_0x437d7b){_0x594a0f[_0x123c1a(0x71)]('Failed\x20to\x20read\x20pem\x20file\x20\x22'+_0x30cab1[_0x123c1a(0x8c)]+_0x123c1a(0x75));}this['apiUrl']='https://'+_0x30cab1['apiEndpoint']+_0x123c1a(0xc9)+_0x30cab1['company']+'/';}[a4_0x5a15ee(0xc4)](_0xce1c6e,_0x59e104){const _0x50058c=a4_0x5a15ee,_0x591438={'uri':this[_0x50058c(0xd9)]+_0x50058c(0xc4),'method':_0x50058c(0xbd),'json':!![],'body':{'debuggee':_0xce1c6e}};this[_0x50058c(0x81)](_0x591438,(_0x36e26d,_0x510ea8,_0x27e2d3)=>{const _0x75b96e=_0x50058c;if(_0x36e26d)_0x59e104(_0x36e26d);else{if(_0x27e2d3['status']!==0xc8)_0x59e104(new Error('unable\x20to\x20register,\x20status\x20'+_0x27e2d3[_0x75b96e(0xb6)]));else!_0x510ea8[_0x75b96e(0xbe)]?_0x59e104(new Error('invalid\x20response\x20body\x20from\x20server')):(_0xce1c6e['id']=_0x510ea8[_0x75b96e(0xbe)]['id'],this['agentId']=_0x510ea8[_0x75b96e(0x6f)],_0x59e104(null,_0x510ea8));}});}[a4_0x5a15ee(0x6e)](_0x36b52c,_0x244bd1){const _0x250702=a4_0x5a15ee,_0x2944c3=this;assert(_0x36b52c['id'],_0x250702(0x8b));const _0x44d656={'successOnTimeout':!![]};_0x2944c3['nextWaitToken']&&(_0x44d656[_0x250702(0xdc)]=_0x2944c3['nextWaitToken']);_0x2944c3[_0x250702(0x6f)]&&(_0x44d656['agentId']=_0x2944c3['agentId']);const _0x2608ba=this[_0x250702(0xd9)]+encodeURIComponent(_0x36b52c['id'])+_0x250702(0x7a)+qs[_0x250702(0xd7)](_0x44d656);_0x2944c3[_0x250702(0x81)]({'uri':_0x2608ba,'json':!![]},(_0x1b2e46,_0x4bc05f,_0x3fbba3)=>{const _0x27672a=_0x250702;if(!_0x3fbba3){_0x244bd1(_0x1b2e46||new Error(_0x27672a(0xd8)));return;}else{if(Math[_0x27672a(0xd0)](_0x3fbba3[_0x27672a(0xb6)]/0x64)!==0x2){_0x244bd1(new Error(_0x27672a(0xa2)+_0x3fbba3[_0x27672a(0xb6)]));return;}else _0x4bc05f=_0x4bc05f||{},_0x2944c3[_0x27672a(0xc6)]=_0x4bc05f['nextWaitToken'],_0x244bd1(null,_0x3fbba3,_0x4bc05f);}});}['enqueueBreakpointUpdate'](_0x322996,_0x5e708a){const _0xa7fa5d=a4_0x5a15ee;assert(_0x322996['id'],_0xa7fa5d(0x8b)),this[_0xa7fa5d(0xbc)]['push']([_0x5e708a,0x0]);if(!this['transmissionTimeout']){const _0x52267d=this;this[_0xa7fa5d(0xcf)]=setTimeout(()=>_0x52267d[_0xa7fa5d(0x9f)][_0xa7fa5d(0xcc)](_0x52267d)(_0x322996['id']),0x0);}}[a4_0x5a15ee(0x7b)](_0xba4f9b,_0x418df4,_0x356a6c){const _0x36cb79=a4_0x5a15ee,_0x56f8d6=this,_0x29a7c4=this[_0x36cb79(0xd9)]+encodeURIComponent(_0xba4f9b['id'])+_0x36cb79(0xb5),_0x19909b={'uri':_0x29a7c4,'method':_0x36cb79(0xbd),'json':!![],'body':_0x418df4};this[_0x36cb79(0x81)](_0x19909b,(_0x2c5b5a,_0xbd95c2,_0x389ca8)=>{const _0x225087=_0x36cb79;(!_0x389ca8||Math[_0x225087(0xd0)](_0x389ca8[_0x225087(0xb6)]/0x64)!==0x2)&&(_0x56f8d6[_0x225087(0xa9)][_0x225087(0x71)]('Failed\x20transmitting\x20breakpoint\x20logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Error:\x20'+_0x2c5b5a),_0x356a6c(_0x2c5b5a));});}[a4_0x5a15ee(0xa7)](_0x1fdf8f,_0x336e95,_0x869356){const _0x44fd68=a4_0x5a15ee;assert(_0x1fdf8f['id'],_0x44fd68(0x8b));if(this['lastLogCollectionTime']){const _0x5ae993=Date[_0x44fd68(0x70)](),_0x22d935=this[_0x44fd68(0xdd)]+this[_0x44fd68(0x8e)][_0x44fd68(0xac)][_0x44fd68(0xaf)];if(_0x5ae993<_0x22d935){this[_0x44fd68(0xa9)][_0x44fd68(0xa3)]('Request\x20to\x20collect\x20and\x20send\x20logs\x20to\x20backend\x20before\x20cooldown\x20reached::\x20remaining'+((_0x22d935-_0x5ae993)/0x3e8+_0x44fd68(0x74)));return;}}const _0x16c6d7=fs_1[_0x44fd68(0xd4)](_0x869356)[_0x44fd68(0x6b)],_0x355a78=Math['max'](0x0,_0x16c6d7-this[_0x44fd68(0x8e)]['agentLog'][_0x44fd68(0x98)]),_0x416740=fs_1[_0x44fd68(0x93)](_0x869356,{'start':_0x355a78}),_0x3a2b26=zlib_1[_0x44fd68(0xae)](),_0x1e84f9=new memory_streams_1[(_0x44fd68(0x72))](),_0x5c83f4=this;_0x5c83f4[_0x44fd68(0xa9)]['info'](_0x44fd68(0x8f)+_0x869356+_0x44fd68(0xcd)+_0x336e95),stream_1[_0x44fd68(0x90)](_0x416740,_0x3a2b26,_0x1e84f9,_0x330226=>{const _0x230a98=_0x44fd68;if(_0x330226)_0x5c83f4[_0x230a98(0xa9)][_0x230a98(0xb4)](_0x230a98(0xce)+_0x869356+':\x20'+_0x330226);else{const _0x570a84={'uri':this['apiUrl']+encodeURIComponent(_0x1fdf8f['id'])+_0x230a98(0x94)+_0x336e95,'method':_0x230a98(0xbb),'body':_0x1e84f9['toBuffer']()};_0x5c83f4[_0x230a98(0x81)](_0x570a84,_0xb19f43=>{const _0x1b4697=_0x230a98;_0xb19f43?_0x5c83f4[_0x1b4697(0xa9)][_0x1b4697(0xb4)](_0x1b4697(0x95)+_0x869356+_0x1b4697(0xc8)+_0x336e95,_0xb19f43):(_0x5c83f4[_0x1b4697(0xa9)][_0x1b4697(0xa3)](_0x1b4697(0xd6)+_0x869356+'\x20for\x20request\x20'+_0x336e95),_0x5c83f4[_0x1b4697(0xdd)]=Date[_0x1b4697(0x70)]());});}});}[a4_0x5a15ee(0x9f)](_0x529490){const _0x5673ed=a4_0x5a15ee;var _0x4bfec6;this[_0x5673ed(0xcf)]=undefined;const _0xbe7ea9=[];while(_0xbe7ea9['length']<this[_0x5673ed(0x8e)][_0x5673ed(0xb3)]&&this[_0x5673ed(0xbc)][_0x5673ed(0xb0)]>0x0){_0xbe7ea9[_0x5673ed(0xd5)](this[_0x5673ed(0xbc)]['shift']());}if(!_0xbe7ea9)return;const _0x361bba=_0xbe7ea9[_0x5673ed(0x7c)](_0x17f6fa=>_0x17f6fa[0x0]['id']),_0x20798d={'uri':this['apiUrl']+encodeURIComponent(_0x529490)+_0x5673ed(0x8d),'json':!![],'method':_0x5673ed(0xbb),'body':_0xbe7ea9['map'](_0x4c4cd8=>_0x4c4cd8[0x0])},_0xe205b=this;try{this[_0x5673ed(0x81)](_0x20798d,(_0x373491,_0x5b8cae,_0x3a5a9b)=>{const _0x6895cd=_0x5673ed,_0x1be035=_0x3a5a9b===null||_0x3a5a9b===void 0x0?void 0x0:_0x3a5a9b['status'];if(_0x373491||!_0x1be035||Math[_0x6895cd(0xd0)](_0x1be035/0x64)!==0x2){const _0x393d60=_0x1be035&&(_0x1be035>=0x1f4||_0x1be035===0x198);if(_0x393d60){_0xe205b[_0x6895cd(0xa9)][_0x6895cd(0x71)](_0x6895cd(0x84)+_0x361bba+_0x6895cd(0xb1)+_0x1be035+_0x6895cd(0x85)+_0x373491);for(const _0x231093 of _0xbe7ea9){_0x231093[0x1]<MAX_FAILED_SEND_ATTEMPTS?_0xe205b[_0x6895cd(0xbc)][_0x6895cd(0xd5)]([_0x231093[0x0],_0x231093[0x1]+0x1]):_0xe205b[_0x6895cd(0xa9)][_0x6895cd(0x71)](_0x6895cd(0xa4)+_0x231093[0x0]['id']+_0x6895cd(0x87));}}else _0xe205b[_0x6895cd(0xa9)]['warn'](_0x6895cd(0xc0)+_0x361bba+'.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Status\x20code:\x20'+_0x1be035+_0x6895cd(0x85)+_0x373491);}else _0xe205b[_0x6895cd(0xa9)][_0x6895cd(0xa3)]('Update\x20for\x20breakpoints\x20'+_0x361bba+_0x6895cd(0x97));_0xe205b[_0x6895cd(0xbc)][_0x6895cd(0xb0)]>0x0&&(_0xe205b['transmissionTimeout']=setTimeout(()=>_0xe205b[_0x6895cd(0x9f)][_0x6895cd(0xcc)](_0xe205b)(_0x529490),0x0));});}catch(_0x2c81a7){this[_0x5673ed(0xa9)][_0x5673ed(0x71)](_0x5673ed(0xc0)+_0x361bba+_0x5673ed(0x88)+_0x2c81a7+_0x5673ed(0x7e)+((_0x4bfec6=_0x2c81a7['data'])===null||_0x4bfec6===void 0x0?void 0x0:_0x4bfec6['message'])),_0xe205b[_0x5673ed(0xbc)]['length']>0x0&&(_0xe205b[_0x5673ed(0xcf)]=setTimeout(()=>_0xe205b[_0x5673ed(0x9f)][_0x5673ed(0xcc)](_0xe205b)(_0x529490),0x0));}}[a4_0x5a15ee(0x9d)](_0x39743d,_0x4247ca){const _0x1615ac=a4_0x5a15ee;this['logger'][_0x1615ac(0xa3)](_0x1615ac(0x9c));const _0x4cdeff=this[_0x1615ac(0xd9)]+encodeURIComponent(_0x39743d)+_0x1615ac(0xa1);this[_0x1615ac(0x81)]({'uri':_0x4cdeff,'json':!![]},(_0x270064,_0x2bbe77,_0x1edcf4)=>{const _0x5830f6=_0x1615ac;if(_0x270064)_0x4247ca(_0x270064);else try{const _0x4cb24b=yaml[_0x5830f6(0xba)](_0x2bbe77);_0x4247ca(null,_0x4cb24b||{},_0x1edcf4);}catch(_0x3ab148){_0x4247ca(_0x3ab148);}});}[a4_0x5a15ee(0x81)](_0x32c081,_0x3b5c51){const _0x2a7884=a4_0x5a15ee,_0x47ca53={'Content-Type':'application/json','Authorization':_0x2a7884(0x96)+this[_0x2a7884(0x8e)][_0x2a7884(0x9e)]},_0x5d9792={'checkServerIdentity':(_0x4dfc0f,_0x829b44)=>this[_0x2a7884(0xbf)](_0x4dfc0f,_0x829b44,this[_0x2a7884(0x8e)])};if(this[_0x2a7884(0x86)]){const _0x14d8ee=tls_1[_0x2a7884(0x78)](_0x5d9792);_0x14d8ee['context']['addCACert'](this[_0x2a7884(0x86)]),_0x5d9792[_0x2a7884(0xc7)]=_0x14d8ee;}const _0x1abc3c={'url':_0x32c081[_0x2a7884(0xcb)],'agent':new https[(_0x2a7884(0xb7))](_0x5d9792),'data':_0x32c081[_0x2a7884(0x89)],'headers':_0x47ca53};extend(!![],_0x1abc3c,_0x32c081),gaxios['request'](_0x1abc3c)['then'](_0x2c81e9=>_0x3b5c51(null,_0x2c81e9[_0x2a7884(0xd3)],_0x2c81e9))[_0x2a7884(0x73)](_0x3a9aeb=>{const _0x264b5f=_0x2a7884;var _0x4306a9;return _0x3b5c51(_0x3a9aeb,(_0x4306a9=_0x3a9aeb['response'])===null||_0x4306a9===void 0x0?void 0x0:_0x4306a9[_0x264b5f(0xd3)],_0x3a9aeb[_0x264b5f(0x6d)]);});}[a4_0x5a15ee(0xbf)](_0x108e32,_0x3727c9,_0x33f16c){const _0x140389=a4_0x5a15ee;if(_0x33f16c[_0x140389(0x99)])return undefined;const _0x5ed4cf=crypto_1['createHash'](_0x140389(0x9a))[_0x140389(0x9b)](_0x3727c9[_0x140389(0xca)])[_0x140389(0x8a)]('hex');return _0x33f16c[_0x140389(0xde)][_0x140389(0x80)](_0x5ed4cf)?undefined:new Error(_0x140389(0xc3));}}exports['Controller']=Controller;
|
|
1
|
+
const a4_0x566b=['test','then','now','https','length','request','Failed\x20transmitting\x20breakpoint\x20updates\x20for\x20ids:\x20','constructor','Agent','pubkey','createGzip','uri','lastLogCollectionTime','\x20for\x20request\x20','apply','floor','1068139mnILBD','makeRequest','noCheckCertificate','/debuggees/company/','sendAgentLogsToServer','update','91006eMUJoS','sha256','max','return\x20/\x22\x20+\x20this\x20+\x20\x22/','tls','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','defineProperty','js-yaml','should\x20have\x20a\x20registered\x20debuggee','Request\x20to\x20collect\x20and\x20send\x20logs\x20to\x20backend\x20before\x20cooldown\x20reached::\x20remaining','map','debuggee','Successfully\x20sent\x20log\x20file\x20','Failed\x20transmitting\x20breakpoint\x20updates,\x20dismissing\x20breakpoints:\x20','apiUrl','data','ascii','error','body','Update\x20for\x20breakpoints\x20','sendBreakpointLogsToServer','\x20for\x20request\x20id\x20','.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Status\x20code:\x20','/breakpoints?','transmissionQueue','memory-streams','selfSignedCA','zlib','transmitBreakpointUpdates','warn','response','__esModule','139281QWPhcm','Controller','register','/controller','unknown\x20error\x20-\x20request\x20response\x20missing','4KmkEzQ','\x20Error:\x20','verifyCertificate','unable\x20to\x20register,\x20status\x20','querystring','createHash','POST','\x20transmitted\x20successfully','Compressing\x20and\x20sending\x20log\x20file\x20','1PgNuPc','PUT','ServiceObject','137295XFLCKI','lightrunSecret','catch','maxLogFileBytes','hex','readFileSync','push','71oLKuRq','81274xlHopR','crypto','Certificate\x20Pinning\x20Failed!','/breakpoints','pinnedCerts','Failed\x20to\x20read\x20pem\x20file\x20\x22','/blacklist?successOnTimeout=true','logger','invalid\x20response\x20body\x20from\x20server','assert','info','Failed\x20to\x20zip\x20','transmissionTimeout','bind','config','nextWaitToken','context','stream','waitToken','company','enqueueBreakpointUpdate','caPath','extend','\x20seconds','434101BkyBmU','.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Error:\x20','includes','Bearer\x20','https://','createReadStream','message','2657iHcFov','Breakpoint\x20','agentId','1xGYpbT','Failed\x20to\x20send\x20log\x20file\x20','Getting\x20blocklist','shift','secureContext','statSync','apiEndpoint','/log/','status'];const a4_0x4bd4e=a4_0x7608;function a4_0x7608(_0x558197,_0x6cc401){_0x558197=_0x558197-0x1ac;let _0x366caf=a4_0x566b[_0x558197];return _0x366caf;}(function(_0x507e90,_0x29f125){const _0x1be341=a4_0x7608;while(!![]){try{const _0xb7f851=parseInt(_0x1be341(0x1b4))+parseInt(_0x1be341(0x20f))*parseInt(_0x1be341(0x1d4))+-parseInt(_0x1be341(0x1e5))*-parseInt(_0x1be341(0x1e2))+parseInt(_0x1be341(0x205))+-parseInt(_0x1be341(0x1ec))*-parseInt(_0x1be341(0x20c))+-parseInt(_0x1be341(0x1d9))*-parseInt(_0x1be341(0x1ed))+-parseInt(_0x1be341(0x1ae));if(_0xb7f851===_0x29f125)break;else _0x507e90['push'](_0x507e90['shift']());}catch(_0x21057b){_0x507e90['push'](_0x507e90['shift']());}}}(a4_0x566b,0x3c5f7));const a4_0x2295e3=function(){let _0x34badf=!![];return function(_0x9df899,_0x3bb273){const _0x55a731=_0x34badf?function(){const _0x3ae091=a4_0x7608;if(_0x3bb273){const _0x461d2e=_0x3bb273[_0x3ae091(0x1ac)](_0x9df899,arguments);return _0x3bb273=null,_0x461d2e;}}:function(){};return _0x34badf=![],_0x55a731;};}(),a4_0x3dbdfd=a4_0x2295e3(this,function(){const _0x4259f6=function(){const _0x466f71=a4_0x7608,_0x379593=_0x4259f6[_0x466f71(0x21f)](_0x466f71(0x1b7))()['constructor'](_0x466f71(0x1b9));return!_0x379593[_0x466f71(0x218)](a4_0x3dbdfd);};return _0x4259f6();});a4_0x3dbdfd();'use strict';Object[a4_0x4bd4e(0x1ba)](exports,a4_0x4bd4e(0x1d3),{'value':!![]}),exports[a4_0x4bd4e(0x1d5)]=void 0x0;const common_1=require('@google-cloud/common'),assert=require(a4_0x4bd4e(0x1f6)),qs=require(a4_0x4bd4e(0x1dd)),fs_1=require('fs'),crypto_1=require(a4_0x4bd4e(0x1ee)),zlib_1=require(a4_0x4bd4e(0x1cf)),stream_1=require(a4_0x4bd4e(0x1fe)),memory_streams_1=require(a4_0x4bd4e(0x1cd)),tls_1=require(a4_0x4bd4e(0x1b8)),gaxios=require('gaxios'),extend=require(a4_0x4bd4e(0x203)),https=require(a4_0x4bd4e(0x21b)),yaml=require(a4_0x4bd4e(0x1bb)),MAX_FAILED_SEND_ATTEMPTS=0x5,HTTP_SUCCESS=0xc8,HTTP_UPGRADE_REQUIRED=0x1aa;class Controller extends common_1[a4_0x4bd4e(0x1e4)]{constructor(_0x4928aa,_0x47eaf3,_0xef1c4e){const _0xf5e5dc=a4_0x4bd4e;super({'parent':_0x4928aa,'baseUrl':_0xf5e5dc(0x1d7)}),this['nextWaitToken']=null,this[_0xf5e5dc(0x20e)]=null,this[_0xf5e5dc(0x1fb)]=_0x47eaf3,this[_0xf5e5dc(0x1cc)]=[],this[_0xf5e5dc(0x1f4)]=_0xef1c4e;if(_0x47eaf3[_0xf5e5dc(0x202)])try{this[_0xf5e5dc(0x1ce)]=fs_1[_0xf5e5dc(0x1ea)](_0x47eaf3[_0xf5e5dc(0x202)],_0xf5e5dc(0x1c4));}catch(_0x305630){_0xef1c4e['warn'](_0xf5e5dc(0x1f2)+_0x47eaf3[_0xf5e5dc(0x202)]+'\x22\x20-\x20ignoring\x20it');}this[_0xf5e5dc(0x1c2)]=_0xf5e5dc(0x209)+_0x47eaf3[_0xf5e5dc(0x215)]+_0xf5e5dc(0x1b1)+_0x47eaf3[_0xf5e5dc(0x200)]+'/';}[a4_0x4bd4e(0x1d6)](_0x40e748,_0x4cffb7){const _0x28cdcc=a4_0x4bd4e,_0x40a84b={'uri':this['apiUrl']+_0x28cdcc(0x1d6),'method':_0x28cdcc(0x1df),'json':!![],'body':{'debuggee':_0x40e748}};this[_0x28cdcc(0x1af)](_0x40a84b,(_0x4fb062,_0x5e8cbe,_0x583529)=>{const _0x51edd3=_0x28cdcc;if(!_0x583529)_0x4cffb7(_0x4fb062||new Error(_0x51edd3(0x1d8)));else{if(_0x4fb062)_0x583529[_0x51edd3(0x217)]===HTTP_UPGRADE_REQUIRED&&(_0x40e748['id']=_0x5e8cbe[_0x51edd3(0x1bf)]['id']),_0x4cffb7(_0x4fb062);else{if(_0x583529[_0x51edd3(0x217)]!==HTTP_SUCCESS)_0x4cffb7(new Error(_0x51edd3(0x1dc)+_0x583529[_0x51edd3(0x217)]));else!_0x5e8cbe[_0x51edd3(0x1bf)]?_0x4cffb7(new Error(_0x51edd3(0x1f5))):(_0x40e748['id']=_0x5e8cbe[_0x51edd3(0x1bf)]['id'],this['agentId']=_0x5e8cbe['agentId'],_0x4cffb7(null,_0x5e8cbe));}}});}['listBreakpoints'](_0x355f0e,_0x24765c){const _0x542c89=a4_0x4bd4e,_0x3848ec=this;assert(_0x355f0e['id'],'should\x20have\x20a\x20registered\x20debuggee');const _0x3e5066={'successOnTimeout':!![]};_0x3848ec['nextWaitToken']&&(_0x3e5066[_0x542c89(0x1ff)]=_0x3848ec[_0x542c89(0x1fc)]);_0x3848ec[_0x542c89(0x20e)]&&(_0x3e5066['agentId']=_0x3848ec[_0x542c89(0x20e)]);const _0x586562=this['apiUrl']+encodeURIComponent(_0x355f0e['id'])+_0x542c89(0x1cb)+qs['stringify'](_0x3e5066);_0x3848ec['makeRequest']({'uri':_0x586562,'json':!![]},(_0x59fe2d,_0x3bfed1,_0x302cb6)=>{const _0x4549e5=_0x542c89;if(!_0x302cb6){_0x24765c(_0x59fe2d||new Error(_0x4549e5(0x1d8)));return;}else{if(Math[_0x4549e5(0x1ad)](_0x302cb6[_0x4549e5(0x217)]/0x64)!==0x2){_0x24765c(new Error('unable\x20to\x20list\x20breakpoints,\x20status\x20code\x20'+_0x302cb6[_0x4549e5(0x217)]));return;}else _0x3bfed1=_0x3bfed1||{},_0x3848ec[_0x4549e5(0x1fc)]=_0x3bfed1[_0x4549e5(0x1fc)],_0x24765c(null,_0x302cb6,_0x3bfed1);}});}[a4_0x4bd4e(0x201)](_0x4c9885,_0x1807a7){const _0x1397e9=a4_0x4bd4e;assert(_0x4c9885['id'],_0x1397e9(0x1bc)),this[_0x1397e9(0x1cc)][_0x1397e9(0x1eb)]([_0x1807a7,0x0]);if(!this[_0x1397e9(0x1f9)]){const _0x200cdf=this;this[_0x1397e9(0x1f9)]=setTimeout(()=>_0x200cdf[_0x1397e9(0x1d0)][_0x1397e9(0x1fa)](_0x200cdf)(_0x4c9885['id']),0x0);}}[a4_0x4bd4e(0x1c8)](_0xbcbb8f,_0x405654,_0x1b15c9){const _0x47ff03=a4_0x4bd4e,_0x50cbbe=this,_0x37ab7=this[_0x47ff03(0x1c2)]+encodeURIComponent(_0xbcbb8f['id'])+_0x47ff03(0x216),_0x33054e={'uri':_0x37ab7,'method':'POST','json':!![],'body':_0x405654};this[_0x47ff03(0x1af)](_0x33054e,(_0x3d3393,_0x19c83a,_0x2560bd)=>{const _0x2c1138=_0x47ff03;(!_0x2560bd||Math[_0x2c1138(0x1ad)](_0x2560bd[_0x2c1138(0x217)]/0x64)!==0x2)&&(_0x50cbbe[_0x2c1138(0x1f4)][_0x2c1138(0x1d1)]('Failed\x20transmitting\x20breakpoint\x20logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Error:\x20'+_0x3d3393),_0x1b15c9(_0x3d3393));});}[a4_0x4bd4e(0x1b2)](_0x5cb5ff,_0x2d575b,_0x4beff2){const _0x54286e=a4_0x4bd4e;assert(_0x5cb5ff['id'],_0x54286e(0x1bc));if(this[_0x54286e(0x224)]){const _0x4c92dd=Date[_0x54286e(0x21a)](),_0x6c6e96=this[_0x54286e(0x224)]+this[_0x54286e(0x1fb)]['agentLog']['collectCooldownMs'];if(_0x4c92dd<_0x6c6e96){this[_0x54286e(0x1f4)][_0x54286e(0x1f7)](_0x54286e(0x1bd)+((_0x6c6e96-_0x4c92dd)/0x3e8+_0x54286e(0x204)));return;}}const _0x76eea9=fs_1[_0x54286e(0x214)](_0x4beff2)['size'],_0x406d8a=Math[_0x54286e(0x1b6)](0x0,_0x76eea9-this[_0x54286e(0x1fb)]['agentLog'][_0x54286e(0x1e8)]),_0x4147f6=fs_1[_0x54286e(0x20a)](_0x4beff2,{'start':_0x406d8a}),_0x3fb373=zlib_1[_0x54286e(0x222)](),_0x4408cb=new memory_streams_1['WritableStream'](),_0x44b5c3=this;_0x44b5c3['logger']['info'](_0x54286e(0x1e1)+_0x4beff2+_0x54286e(0x1c9)+_0x2d575b),stream_1['pipeline'](_0x4147f6,_0x3fb373,_0x4408cb,_0x59310d=>{const _0x5af953=_0x54286e;if(_0x59310d)_0x44b5c3[_0x5af953(0x1f4)][_0x5af953(0x1c5)](_0x5af953(0x1f8)+_0x4beff2+':\x20'+_0x59310d);else{const _0x1b7852={'uri':this[_0x5af953(0x1c2)]+encodeURIComponent(_0x5cb5ff['id'])+'/compressedLogFile/'+_0x2d575b,'method':_0x5af953(0x1e3),'body':_0x4408cb['toBuffer']()};_0x44b5c3[_0x5af953(0x1af)](_0x1b7852,_0x5d12d0=>{const _0x24c0af=_0x5af953;_0x5d12d0?_0x44b5c3[_0x24c0af(0x1f4)][_0x24c0af(0x1c5)](_0x24c0af(0x210)+_0x4beff2+_0x24c0af(0x225)+_0x2d575b,_0x5d12d0):(_0x44b5c3[_0x24c0af(0x1f4)]['info'](_0x24c0af(0x1c0)+_0x4beff2+_0x24c0af(0x225)+_0x2d575b),_0x44b5c3[_0x24c0af(0x224)]=Date['now']());});}});}['transmitBreakpointUpdates'](_0x58eb8c){const _0x29e04d=a4_0x4bd4e;var _0xb9db81;this[_0x29e04d(0x1f9)]=undefined;const _0xf602e0=[];while(_0xf602e0['length']<this[_0x29e04d(0x1fb)]['transmissionBulkMaxSize']&&this[_0x29e04d(0x1cc)][_0x29e04d(0x21c)]>0x0){_0xf602e0[_0x29e04d(0x1eb)](this[_0x29e04d(0x1cc)][_0x29e04d(0x212)]());}if(!_0xf602e0)return;const _0x5e18a0=_0xf602e0[_0x29e04d(0x1be)](_0x5ccb67=>_0x5ccb67[0x0]['id']),_0x47881d={'uri':this[_0x29e04d(0x1c2)]+encodeURIComponent(_0x58eb8c)+_0x29e04d(0x1f0),'json':!![],'method':_0x29e04d(0x1e3),'body':_0xf602e0[_0x29e04d(0x1be)](_0x44e5e2=>_0x44e5e2[0x0])},_0x547980=this;try{this[_0x29e04d(0x1af)](_0x47881d,(_0x22e553,_0x113dff,_0xffa1c2)=>{const _0x5035ba=_0x29e04d,_0x2c9f47=_0xffa1c2===null||_0xffa1c2===void 0x0?void 0x0:_0xffa1c2[_0x5035ba(0x217)];if(_0x22e553||!_0x2c9f47||Math[_0x5035ba(0x1ad)](_0x2c9f47/0x64)!==0x2){const _0x5642e3=_0x2c9f47&&(_0x2c9f47>=0x1f4||_0x2c9f47===0x198);if(_0x5642e3){_0x547980['logger'][_0x5035ba(0x1d1)](_0x5035ba(0x21e)+_0x5e18a0+_0x5035ba(0x1ca)+_0x2c9f47+_0x5035ba(0x1da)+_0x22e553);for(const _0x13c26b of _0xf602e0){_0x13c26b[0x1]<MAX_FAILED_SEND_ATTEMPTS?_0x547980[_0x5035ba(0x1cc)][_0x5035ba(0x1eb)]([_0x13c26b[0x0],_0x13c26b[0x1]+0x1]):_0x547980['logger'][_0x5035ba(0x1d1)](_0x5035ba(0x20d)+_0x13c26b[0x0]['id']+'\x20retry\x20count\x20exceeded\x20maximum\x20-\x20Dropping\x20it');}}else _0x547980[_0x5035ba(0x1f4)][_0x5035ba(0x1d1)]('Failed\x20transmitting\x20breakpoint\x20updates,\x20dismissing\x20breakpoints:\x20'+_0x5e18a0+_0x5035ba(0x1ca)+_0x2c9f47+_0x5035ba(0x1da)+_0x22e553);}else _0x547980['logger'][_0x5035ba(0x1f7)](_0x5035ba(0x1c7)+_0x5e18a0+_0x5035ba(0x1e0));_0x547980[_0x5035ba(0x1cc)][_0x5035ba(0x21c)]>0x0&&(_0x547980['transmissionTimeout']=setTimeout(()=>_0x547980[_0x5035ba(0x1d0)][_0x5035ba(0x1fa)](_0x547980)(_0x58eb8c),0x0));});}catch(_0x269290){this[_0x29e04d(0x1f4)]['warn'](_0x29e04d(0x1c1)+_0x5e18a0+_0x29e04d(0x206)+_0x269290+',\x20Message:\x20'+((_0xb9db81=_0x269290[_0x29e04d(0x1c3)])===null||_0xb9db81===void 0x0?void 0x0:_0xb9db81[_0x29e04d(0x20b)])),_0x547980[_0x29e04d(0x1cc)][_0x29e04d(0x21c)]>0x0&&(_0x547980[_0x29e04d(0x1f9)]=setTimeout(()=>_0x547980['transmitBreakpointUpdates'][_0x29e04d(0x1fa)](_0x547980)(_0x58eb8c),0x0));}}['getBlocklist'](_0x3fba0f,_0x4f6809){const _0x146459=a4_0x4bd4e;this[_0x146459(0x1f4)]['info'](_0x146459(0x211));const _0x3c6f74=this[_0x146459(0x1c2)]+encodeURIComponent(_0x3fba0f)+_0x146459(0x1f3);this[_0x146459(0x1af)]({'uri':_0x3c6f74,'json':!![]},(_0xa26452,_0x593571,_0x1b1290)=>{if(_0xa26452)_0x4f6809(_0xa26452);else try{const _0x2857b9=yaml['load'](_0x593571);_0x4f6809(null,_0x2857b9||{},_0x1b1290);}catch(_0x522106){_0x4f6809(_0x522106);}});}[a4_0x4bd4e(0x1af)](_0x58daaf,_0x22fe7e){const _0x2d1b8a=a4_0x4bd4e,_0x3811cd={'Content-Type':'application/json','Authorization':_0x2d1b8a(0x208)+this['config'][_0x2d1b8a(0x1e6)]},_0x55b0a1={'checkServerIdentity':(_0x32e58b,_0x1d1db7)=>this[_0x2d1b8a(0x1db)](_0x32e58b,_0x1d1db7,this[_0x2d1b8a(0x1fb)])};if(this['selfSignedCA']){const _0x5819a0=tls_1['createSecureContext'](_0x55b0a1);_0x5819a0[_0x2d1b8a(0x1fd)]['addCACert'](this[_0x2d1b8a(0x1ce)]),_0x55b0a1[_0x2d1b8a(0x213)]=_0x5819a0;}const _0x2fba91={'url':_0x58daaf[_0x2d1b8a(0x223)],'agent':new https[(_0x2d1b8a(0x220))](_0x55b0a1),'data':_0x58daaf[_0x2d1b8a(0x1c6)],'headers':_0x3811cd};extend(!![],_0x2fba91,_0x58daaf),gaxios[_0x2d1b8a(0x21d)](_0x2fba91)[_0x2d1b8a(0x219)](_0x5c1d6b=>_0x22fe7e(null,_0x5c1d6b['data'],_0x5c1d6b))[_0x2d1b8a(0x1e7)](_0x1461ef=>{const _0x4c8f84=_0x2d1b8a;var _0x4eb195;return _0x22fe7e(_0x1461ef,(_0x4eb195=_0x1461ef[_0x4c8f84(0x1d2)])===null||_0x4eb195===void 0x0?void 0x0:_0x4eb195[_0x4c8f84(0x1c3)],_0x1461ef[_0x4c8f84(0x1d2)]);});}[a4_0x4bd4e(0x1db)](_0x219f66,_0x5e0f6b,_0xae945a){const _0x233906=a4_0x4bd4e;if(_0xae945a[_0x233906(0x1b0)])return undefined;const _0x210ee4=crypto_1[_0x233906(0x1de)](_0x233906(0x1b5))[_0x233906(0x1b3)](_0x5e0f6b[_0x233906(0x221)])['digest'](_0x233906(0x1e9));return _0xae945a[_0x233906(0x1f1)][_0x233906(0x207)](_0x210ee4)?undefined:new Error(_0x233906(0x1ef));}}exports[a4_0x4bd4e(0x1d5)]=Controller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../src/agent/controller.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC;;GAEG;AAEH,iDAAmD;AACnD,iCAAiC;AACjC,kCAAkC;AAClC,2BAA4D;AAC5D,mCAAkC;AAClC,+BAAgC;AAChC,mCAAgC;AAChC,mDAA8C;AAC9C,6BAAyD;AAOzD,iCAAiC;AACjC,iCAAiC;AAEjC,+BAA+B;AAK/B,MAAM,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,4EAA4E;AAM7G,MAAM,wBAAwB,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../src/agent/controller.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC;;GAEG;AAEH,iDAAmD;AACnD,iCAAiC;AACjC,kCAAkC;AAClC,2BAA4D;AAC5D,mCAAkC;AAClC,+BAAgC;AAChC,mCAAgC;AAChC,mDAA8C;AAC9C,6BAAyD;AAOzD,iCAAiC;AACjC,iCAAiC;AAEjC,+BAA+B;AAK/B,MAAM,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,4EAA4E;AAM7G,MAAM,wBAAwB,GAAG,CAAC,CAAC;AACnC,MAAM,YAAY,GAAG,GAAG,CAAC;AACzB,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAGlC,MAAa,UAAW,SAAQ,sBAAa;IAY3C;;OAEG;IAEH,YAAY,KAAY,EAAE,MAAgC,EAAE,MAAc;QACxE,KAAK,CAAC,E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AAG,aAAa,CAAC;SACzC;QACD,MAAM,QAAQ,GAAG;YACf,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,KAAK,EAAE,IAAI,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC;YACjC,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,OAAO,EAAE,WAAW;SACrB,CAAC;QACF,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QAChC,MAAM;aACH,OAAO,CAAC,QAAgC,CAAC;aACzC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;aAChD,KAAK,CAAC,GAAG,CAAC,EAAE,WAAC,OAAA,QAAQ,CAAC,GAAG,QAAE,GAAG,CAAC,QAAQ,0CAAE,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAA,EAAA,CAAC,CAAC;IACnE,CAAC;IAED,iBAAiB,CACf,IAAY,EACZ,IAAqB,EACrB,MAAgC;QAEhC,IAAI,MAAM,CAAC,kBAAkB,EAAE;YAC7B,OAAO,SAAS,CAAC;SAClB;QACD,kHAAkH;QAClH,MAAM,OAAO,GAAG,mBAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAE,IAAY,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAChF,OAAO,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACrG,CAAC;CACF;AAtWD,gCAsWC"}
|
|
@@ -59,6 +59,7 @@ export declare class Debuglet extends EventEmitter {
|
|
|
59
59
|
private breakpointFetchedTimestamp;
|
|
60
60
|
private breakpointFetched;
|
|
61
61
|
private debuggeeRegistered;
|
|
62
|
+
private nextEnableTimeout;
|
|
62
63
|
isReadyManager: IsReady;
|
|
63
64
|
config: ResolvedDebugAgentConfig;
|
|
64
65
|
fetcherActive: boolean;
|
|
@@ -87,6 +88,7 @@ export declare class Debuglet extends EventEmitter {
|
|
|
87
88
|
constructor(debug: Debug, config: DebugAgentConfig);
|
|
88
89
|
getAgentLogger(config: ResolvedDebugAgentConfig): Logger;
|
|
89
90
|
static normalizeConfig_(config: DebugAgentConfig): ResolvedDebugAgentConfig;
|
|
91
|
+
private static getAgentConfig;
|
|
90
92
|
static buildRegExp(fileExtensions: string[]): RegExp;
|
|
91
93
|
static findFiles(config: ResolvedDebugAgentConfig, precomputedHash?: string): Promise<FindFilesResult>;
|
|
92
94
|
/**
|
|
@@ -186,6 +188,7 @@ export declare class Debuglet extends EventEmitter {
|
|
|
186
188
|
* @private
|
|
187
189
|
*/
|
|
188
190
|
expireOldBreakpoints(): void;
|
|
191
|
+
isRunning(): boolean;
|
|
189
192
|
/**
|
|
190
193
|
* Stops the Debuglet. This is for testing purposes only. Stop should only be
|
|
191
194
|
* called on a agent that has started (i.e. emitted the 'started' event).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5_0x52c4=['getBlocklist','registered','tags','./piping-manager','.log','scheduleRegistration_','Unable\x20to\x20discover\x20source\x20context','GAE_MODULE_NAME','listBreakpoints','now','StatusMessage','agentLog','js.map','breakpointFetched','seconds','normalizeConfig_','_tokenize','remainingHits','enqueueBreakpointUpdate','blacklist','Expressions\x20and\x20conditions\x20are\x20not\x20allowed','controller','Server\x20breakpoints:\x20','LIGHTRUN_METADATA_FILE','750849gTlJGC','debuggeeRegistered','NOT_SET','__esModule','stop\x20can\x20only\x20be\x20called\x20on\x20a\x20running\x20agent','toString','\x20See\x20the\x20debug\x20agent\x20documentation\x20at\x20https://goo.gl/ShSm6r.','DEFAULT','isFinalState','stringify','\x09updating\x20breakpoint\x20data\x20on\x20server','pipingStatus','CLOUD_FUNCTION','rejectBreakpoint_','3721OYSjCM','console','./io/sourcemapper','updateBreakpoint_','PipingManager','BREAKPOINT_AGE','service','sha1','pid','action','digest','DummyBlocklistManager','expressions','metadata','10XlaRgH','push','running','pattern','1249157tJRPje','Stopping\x20Debuglet','sourceContexts','blacklist_exception','debug','\x09successfully\x20added\x20breakpoint\x20\x20','Debuggee','debuglet','addBreakpoint_','716483mkzUSp','The\x20action\x20has\x20expired','isDisabled','utf8','defineProperty','internal','\x0a\x09createdTime:\x20','extend','isReady','./config','\x20are\x20CAPTURE\x20and\x20LOG.','253YvHzfL','configure','removePerBreakpointQuota','util','../client/stackdriver/status-message','The\x20only\x20currently\x20supported\x20breakpoint\x20actions','selectStats','_createUniquifier','workingDirectory','convertBreakpointListToMap_','Failed\x20to\x20read\x20metadata\x20file\x20','scan','debuggee','Disabled\x20by\x20the\x20server','initError','apply','capture','reportBreakpointAccepted_','Expiring\x20breakpoint\x20','Error\x20fetching\x20breakpoints\x20–\x20scheduling\x20retry','Fetching\x20breakpoints','createTime','jsStats','LOGPOINT:\x20','1CxUpXi','expirationTime','allowExpressions','pipeLogs','gcp-metadata','_delimit','set','promiseResolve','remotelyDisabled','condition','Controller','stop','mapSubtract','pipingManager','node','values','log','isAvailable','Error\x20processing\x20the\x20sourcemaps.','promise','K_SERVICE','createDebuggeeMetadata','started','serviceContext','Active\x20Breakpoints:\x20','\x20and\x20Node\x2012.','Use\x20config\x20`allowRootAsWorkingDirectory`\x20if\x20you\x20really\x20want\x20to\x20','to\x20avoid\x20a\x20scan\x20of\x20the\x20entire\x20filesystem\x20for\x20JavaScript\x20files.\x20','config','Debuglet\x20not\x20running','Starting\x20debuggee','breakpoints','quotaManager','Unique\x20ID\x20for\x20this\x20Application:\x20','UNSPECIFIED','info','K_REVISION','crypto','GAE_SERVICE','readFile','everything','relative','collectLogRequestId','maxDataSize','forEach','waitExpired','\x0a\x09condition:\x20','expireOldBreakpoints','versions','versions\x20older\x20than\x200.12\x20are\x20not\x20supported.','getPlatform','split','update','minorversion','sendAgentLogsToServer','73739HaaLJz','promisify','406765dTJfcf','string','The\x20working\x20directory\x20is\x20a\x20root\x20directory.\x20Disabling\x20','register','assert','registration','PatternsBlocklistManager','FUNCTION_NAME','inspect','satisfies','logger','>=10\x20<10.15.3\x20||\x20>=11\x20<11.7\x20||\x20>=12','logsPath','./controller','./util/utils','getClusterNameFromMetadata','collectAndSendLog','GAE-','status','logLevel','packageInfo','updateActiveBreakpoints_','error','do\x20this.','Node.js\x20version\x20not\x20supported.\x20Node.js\x205.2.0\x20and\x20','Failed\x20to\x20re-register\x20debuggee\x20','create','min','./quota-manager','location','mapFiles','totalmem','LIGHTRUN_TAGS','resolve','hex','warn','env','setBlocklistManager','breakpointExpirationSec','25AdSPFd','GAE_MINOR_VERSION','cloud_function','getAgentLogger','start','fetcherActive','cwd','file','getLogger','get','removeBreakpoint_','argv','26389vyVnYV','keys','updatePromise','format','utf-8','setPipingStatus','log4js','minorVersion_','filter','unref','getSourceContextFromFile','./blocklisting/dummy-blocklist-manager','../debuggee','title','errors','join','capture.maxDataSize=0\x20is\x20not\x20recommended\x20on\x20older\x20versions\x20of\x20Node\x2010/11','LIGHTRUN_COMPANY','Found\x20breakpoint\x20with\x20invalid\x20action:','CAPTURE','GAE_DEPLOYMENT_ID','LOG','test','completedBreakpointMap','Debuglet','findFiles','createDebuggee','javascriptFileExtensions','logs\x20path\x20not\x20defined','hostname','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','default','attributes/cluster-name','Failed\x20getting\x20blocklist\x20from\x20server:\x20','GAE_VERSION','isReadyManager','CachedPromise','parse','breakpointFetchedTimestamp','return\x20/\x22\x20+\x20this\x20+\x20\x22/','length','version','layout','blocklistManager','APP_ONLY','source-context.json','Error\x20scanning\x20the\x20filesystem.','emit','./blocklisting/patterns-blocklist-manager','filename','data','\x20See\x20https://github.com/googleapis/cloud-debug-nodejs/issues/516\x20for\x20more','5.2\x20||\x20<4','stopped','YYMMDD-HHmmss','buildRegExp','v8debug','Malformed\x20source-context.json\x20file:\x20','level','\x20completed.','project','map','activeBreakpointMap','\x20information.','Platforms','hash','scheduleBreakpointFetch_','allowRootAsWorkingDirectory','Ignoring\x20request\x20to\x20collect\x20logs\x20with\x20id\x20','readFileSync'];const a5_0x37dc6d=a5_0x1eee;(function(_0x1b97c7,_0x52baec){const _0x2a45e1=a5_0x1eee;while(!![]){try{const _0x2960a4=-parseInt(_0x2a45e1(0x2cd))*parseInt(_0x2a45e1(0x2f0))+-parseInt(_0x2a45e1(0x213))+-parseInt(_0x2a45e1(0x2c4))+parseInt(_0x2a45e1(0x2a4))+parseInt(_0x2a45e1(0x2d8))*parseInt(_0x2a45e1(0x2b2))+parseInt(_0x2a45e1(0x211))*parseInt(_0x2a45e1(0x2c0))+parseInt(_0x2a45e1(0x23a))*parseInt(_0x2a45e1(0x246));if(_0x2960a4===_0x52baec)break;else _0x1b97c7['push'](_0x1b97c7['shift']());}catch(_0x3b3e9e){_0x1b97c7['push'](_0x1b97c7['shift']());}}}(a5_0x52c4,0xaf0ac));function a5_0x1eee(_0x344065,_0x2fdc71){_0x344065=_0x344065-0x1e5;let _0x2e23db=a5_0x52c4[_0x344065];return _0x2e23db;}const a5_0x1a39eb=function(){let _0x4c289c=!![];return function(_0x5ba147,_0x89ecf5){const _0x55bdde=_0x4c289c?function(){const _0x4695e1=a5_0x1eee;if(_0x89ecf5){const _0x174bc2=_0x89ecf5[_0x4695e1(0x2e7)](_0x5ba147,arguments);return _0x89ecf5=null,_0x174bc2;}}:function(){};return _0x4c289c=![],_0x55bdde;};}(),a5_0x5247eb=a5_0x1a39eb(this,function(){const _0xf2bcfa=function(){const _0x344d79=a5_0x1eee,_0x3baffd=_0xf2bcfa['constructor'](_0x344d79(0x26d))()['constructor'](_0x344d79(0x264));return!_0x3baffd[_0x344d79(0x25c)](a5_0x5247eb);};return _0xf2bcfa();});a5_0x5247eb();'use strict';Object[a5_0x37dc6d(0x2d1)](exports,a5_0x37dc6d(0x2a7),{'value':!![]}),exports[a5_0x37dc6d(0x25e)]=exports[a5_0x37dc6d(0x26a)]=exports[a5_0x37dc6d(0x286)]=void 0x0;const assert=require(a5_0x37dc6d(0x217)),log4js_1=require(a5_0x37dc6d(0x24c)),crypto=require(a5_0x37dc6d(0x1ff)),events_1=require('events'),extend=require(a5_0x37dc6d(0x2d4)),fs=require('fs'),metadata=require(a5_0x37dc6d(0x2f4)),path=require('path'),util=require(a5_0x37dc6d(0x2db)),status_message_1=require(a5_0x37dc6d(0x2dc)),debuggee_1=require(a5_0x37dc6d(0x252)),config_1=require(a5_0x37dc6d(0x2d6)),controller_1=require(a5_0x37dc6d(0x220)),scanner=require('./io/scanner'),SourceMapper=require(a5_0x37dc6d(0x2b4)),utils=require(a5_0x37dc6d(0x221)),debugapi=require('./v8/debugapi'),os=require('os'),moment=require('moment'),piping_manager_1=require(a5_0x37dc6d(0x28f)),quota_manager_1=require(a5_0x37dc6d(0x22f)),patterns_blocklist_manager_1=require(a5_0x37dc6d(0x276)),dummy_blocklist_manager_1=require(a5_0x37dc6d(0x251)),readFilep=util[a5_0x37dc6d(0x212)](fs[a5_0x37dc6d(0x201)]),ALLOW_EXPRESSIONS_MESSAGE=a5_0x37dc6d(0x2a0)+'\x20by\x20default.\x20Please\x20set\x20the\x20allowExpressions\x20configuration\x20option\x20to\x20true.'+a5_0x37dc6d(0x2aa),NODE_VERSION_MESSAGE=a5_0x37dc6d(0x22b)+a5_0x37dc6d(0x20b),NODE_10_CIRC_REF_MESSAGE=a5_0x37dc6d(0x256)+a5_0x37dc6d(0x1f3)+a5_0x37dc6d(0x279)+a5_0x37dc6d(0x285),BREAKPOINT_ACTION_MESSAGE=a5_0x37dc6d(0x2dd)+a5_0x37dc6d(0x2d7),PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS=(0x28+0x21c)/0x2*0x3e8;var Platforms;(function(_0x89d19a){const _0x4ebf99=a5_0x37dc6d;_0x89d19a['CLOUD_FUNCTION']=_0x4ebf99(0x23c),_0x89d19a[_0x4ebf99(0x2ab)]=_0x4ebf99(0x265);}(Platforms=exports[a5_0x37dc6d(0x286)]||(exports[a5_0x37dc6d(0x286)]={})));const formatBreakpoint=(_0x51eb93,_0xf184e6)=>{const _0xcb3a0f=a5_0x37dc6d;let _0x20b344=_0x51eb93+util[_0xcb3a0f(0x249)]('breakpoint\x20id:\x20%s,\x0a\x09location:\x20%s',_0xf184e6['id'],util[_0xcb3a0f(0x21b)](_0xf184e6[_0xcb3a0f(0x230)]));if(_0xf184e6[_0xcb3a0f(0x2ed)]){const _0x40ca9e=Number(_0xf184e6['createTime'][_0xcb3a0f(0x29a)]),_0x2fc8fb=new Date(_0x40ca9e*0x3e8);_0x20b344+=_0xcb3a0f(0x2d3)+_0x2fc8fb[_0xcb3a0f(0x2a9)]();}return _0xf184e6[_0xcb3a0f(0x2f9)]&&(_0x20b344+=_0xcb3a0f(0x208)+util[_0xcb3a0f(0x21b)](_0xf184e6[_0xcb3a0f(0x2f9)])),_0xf184e6[_0xcb3a0f(0x2be)]&&(_0x20b344+='\x0a\x09expressions:\x20'+util[_0xcb3a0f(0x21b)](_0xf184e6[_0xcb3a0f(0x2be)])),_0x20b344;},formatBreakpoints=(_0x4d0994,_0x5e2370)=>{const _0x5ca641=a5_0x37dc6d;return _0x4d0994+Object[_0x5ca641(0x247)](_0x5e2370)[_0x5ca641(0x283)](_0x20aff2=>{return formatBreakpoint('',_0x5e2370[_0x20aff2]);})['join']('\x0a');};class CachedPromise{constructor(){const _0x5e14b5=a5_0x37dc6d;this[_0x5e14b5(0x2f7)]=null,this[_0x5e14b5(0x1ed)]=new Promise(_0x1dd517=>{const _0x593363=_0x5e14b5;this[_0x593363(0x2f7)]=_0x1dd517;});}[a5_0x37dc6d(0x243)](){const _0x3e6699=a5_0x37dc6d;return this[_0x3e6699(0x1ed)];}['resolve'](){const _0x341f46=a5_0x37dc6d;this[_0x341f46(0x2f7)]&&(this[_0x341f46(0x2f7)](),this[_0x341f46(0x2f7)]=null);}}exports[a5_0x37dc6d(0x26a)]=CachedPromise;class IsReadyImpl{constructor(_0x3bdf6c){const _0x433e34=a5_0x37dc6d;this[_0x433e34(0x2cb)]=_0x3bdf6c;}[a5_0x37dc6d(0x2d5)](){const _0x1554d8=a5_0x37dc6d;return this[_0x1554d8(0x2cb)][_0x1554d8(0x2d5)]();}}class Debuglet extends events_1['EventEmitter']{constructor(_0x4f4fd0,_0x13497e){const _0x5aa423=a5_0x37dc6d;super(),this[_0x5aa423(0x269)]=new IsReadyImpl(this),this[_0x5aa423(0x1f6)]=Debuglet['normalizeConfig_'](_0x13497e),this[_0x5aa423(0x2c8)]=_0x4f4fd0,this[_0x5aa423(0x27e)]=null,this[_0x5aa423(0x2c2)]=![],this['project']=null,this[_0x5aa423(0x23f)]=![],this[_0x5aa423(0x21d)]=this['getAgentLogger'](this[_0x5aa423(0x1f6)]),this['controller']=new controller_1[(_0x5aa423(0x2fa))](this[_0x5aa423(0x2c8)],this[_0x5aa423(0x1f6)],this[_0x5aa423(0x21d)]),this[_0x5aa423(0x2e4)]=null,this[_0x5aa423(0x284)]={},this[_0x5aa423(0x25d)]={},this['breakpointFetched']=null,this[_0x5aa423(0x26c)]=-Infinity,this['debuggeeRegistered']=new CachedPromise(),this[_0x5aa423(0x1fa)]=new quota_manager_1['QuotaManager'](this[_0x5aa423(0x21d)],this[_0x5aa423(0x1f6)]),this['pipingManager']=new piping_manager_1[(_0x5aa423(0x2b6))](_0x5aa423(0x272),this['controller'],this['config']);}[a5_0x37dc6d(0x23d)](_0xf4f50c){const _0x103bc0=a5_0x37dc6d;let _0x394ed1;if(_0xf4f50c[_0x103bc0(0x297)][_0x103bc0(0x21f)]){const _0x58feca=moment()[_0x103bc0(0x249)](_0x103bc0(0x27c)),_0x58b975=_0xf4f50c[_0x103bc0(0x297)][_0x103bc0(0x21f)]+('/lightrun_nodejs_agent.'+_0x58feca+_0x103bc0(0x290));this[_0x103bc0(0x21f)]=_0x58b975,_0x394ed1={'type':_0x103bc0(0x241),'filename':_0x58b975};}else _0x394ed1={'type':_0x103bc0(0x2b3)};_0x394ed1[_0x103bc0(0x270)]={'type':_0x103bc0(0x2c3),'pattern':'%d\x20[%p]\x20%f{1}:%l\x20-\x20%m'},log4js_1[_0x103bc0(0x2d9)]({'appenders':{'everything':_0x394ed1},'categories':{'default':{'appenders':[_0x103bc0(0x202)],'level':_0xf4f50c['agentLog'][_0x103bc0(0x280)],'enableCallStack':!![]}}});const _0x212939=log4js_1[_0x103bc0(0x242)]();return _0x212939['level']=_0xf4f50c['agentLog']['level'],_0x212939;}static[a5_0x37dc6d(0x29b)](_0x54233b){const _0x4b99e5=a5_0x37dc6d,_0x53ce8d={'serviceContext':{'service':process[_0x4b99e5(0x237)][_0x4b99e5(0x200)]||process[_0x4b99e5(0x237)][_0x4b99e5(0x293)]||process[_0x4b99e5(0x237)][_0x4b99e5(0x1ee)],'version':process['env'][_0x4b99e5(0x268)]||process[_0x4b99e5(0x237)]['GAE_MODULE_VERSION']||process[_0x4b99e5(0x237)][_0x4b99e5(0x1fe)],'minorVersion_':process[_0x4b99e5(0x237)][_0x4b99e5(0x25a)]||process[_0x4b99e5(0x237)][_0x4b99e5(0x23b)]},'metadata':{'filename':process[_0x4b99e5(0x237)][_0x4b99e5(0x2a3)],'registration':{}},'lightrunSecret':process['env']['LIGHTRUN_SECRET'],'company':process[_0x4b99e5(0x237)][_0x4b99e5(0x257)],'apiEndpoint':process[_0x4b99e5(0x237)]['LIGHTRUN_API_ENDPOINT']};return process[_0x4b99e5(0x237)][_0x4b99e5(0x21a)]&&(_0x53ce8d[_0x4b99e5(0x1f1)][_0x4b99e5(0x2b8)]=process[_0x4b99e5(0x237)][_0x4b99e5(0x21a)],_0x53ce8d['serviceContext'][_0x4b99e5(0x26f)]='unversioned'),process['env'][_0x4b99e5(0x233)]&&(_0x53ce8d['metadata'][_0x4b99e5(0x218)]={'tags':process['env'][_0x4b99e5(0x233)][_0x4b99e5(0x20d)](',')}),extend(!![],{},config_1['defaultConfig'],_0x54233b,_0x53ce8d);}static[a5_0x37dc6d(0x27d)](_0x3f4bb5){const _0x265984=a5_0x37dc6d;return new RegExp(_0x3f4bb5[_0x265984(0x283)](_0x4732cc=>_0x4732cc+'$')[_0x265984(0x255)]('|'));}static async[a5_0x37dc6d(0x25f)](_0x5e420f,_0x49b705){const _0x37b1fc=a5_0x37dc6d,_0x50aa11=_0x5e420f[_0x37b1fc(0x2e0)],_0x6457ee=await scanner[_0x37b1fc(0x2e3)](_0x50aa11,Debuglet['buildRegExp'](_0x5e420f['javascriptFileExtensions']['concat'](_0x37b1fc(0x298))),_0x49b705),_0x221ad6=_0x6457ee[_0x37b1fc(0x2de)](Debuglet[_0x37b1fc(0x27d)](_0x5e420f[_0x37b1fc(0x261)])),_0x547efc=_0x6457ee['selectFiles'](/.js.map$/,process[_0x37b1fc(0x240)]()),_0x87698=_0x6457ee[_0x37b1fc(0x254)]();return{'jsStats':_0x221ad6,'mapFiles':_0x547efc,'errors':_0x87698,'hash':_0x6457ee[_0x37b1fc(0x287)]};}async[a5_0x37dc6d(0x23e)](){const _0x2155cb=a5_0x37dc6d,_0x3a3b4a=this,_0x2d6ccf=_0x3a3b4a[_0x2155cb(0x1f6)][_0x2155cb(0x2e0)];if(!_0x3a3b4a[_0x2155cb(0x1f6)][_0x2155cb(0x289)]&&path[_0x2155cb(0x255)](_0x2d6ccf,'..')===_0x2d6ccf){const _0x5c4a3f=_0x2155cb(0x215)+_0x2155cb(0x1f5)+_0x2155cb(0x1f4)+_0x2155cb(0x22a);_0x3a3b4a[_0x2155cb(0x21d)][_0x2155cb(0x229)](_0x5c4a3f),_0x3a3b4a[_0x2155cb(0x275)](_0x2155cb(0x2e6),new Error(_0x5c4a3f));return;}let _0xb37d18;process[_0x2155cb(0x237)][_0x2155cb(0x23b)]&&(_0xb37d18=_0x2155cb(0x224)+process[_0x2155cb(0x237)][_0x2155cb(0x23b)]);let _0xbb5f9;try{_0xbb5f9=await Debuglet['findFiles'](_0x3a3b4a[_0x2155cb(0x1f6)],_0xb37d18),_0xbb5f9[_0x2155cb(0x254)][_0x2155cb(0x206)](_0x3a3b4a[_0x2155cb(0x21d)][_0x2155cb(0x236)]);}catch(_0x15f587){_0x3a3b4a[_0x2155cb(0x21d)][_0x2155cb(0x229)](_0x2155cb(0x274),_0x15f587),_0x3a3b4a['emit'](_0x2155cb(0x2e6),_0x15f587);return;}let _0x2256ff;try{_0x2256ff=await SourceMapper[_0x2155cb(0x22d)](_0xbb5f9[_0x2155cb(0x231)]);}catch(_0x5317f7){_0x3a3b4a[_0x2155cb(0x21d)][_0x2155cb(0x229)](_0x2155cb(0x1ec),_0x5317f7),_0x3a3b4a['emit'](_0x2155cb(0x2e6),_0x5317f7);return;}_0x3a3b4a[_0x2155cb(0x27e)]=debugapi['create'](_0x3a3b4a[_0x2155cb(0x21d)],_0x3a3b4a[_0x2155cb(0x1f6)],_0xbb5f9[_0x2155cb(0x2ee)],_0x2256ff,this[_0x2155cb(0x1fa)]);const _0x59f726=_0xb37d18||_0xbb5f9[_0x2155cb(0x287)];_0x3a3b4a['logger']['info'](_0x2155cb(0x1fb)+_0x59f726);let _0x5f4159;try{_0x5f4159=_0x3a3b4a['config']['sourceContext']||await Debuglet[_0x2155cb(0x250)]();}catch(_0x67276d){_0x3a3b4a[_0x2155cb(0x21d)][_0x2155cb(0x236)](_0x2155cb(0x292),_0x67276d);}this[_0x2155cb(0x1f6)]['capture']&&this[_0x2155cb(0x1f6)][_0x2155cb(0x2e8)][_0x2155cb(0x205)]===0x0&&utils[_0x2155cb(0x21c)](process[_0x2155cb(0x26f)],_0x2155cb(0x21e))&&_0x3a3b4a['logger']['warn'](NODE_10_CIRC_REF_MESSAGE),_0x3a3b4a[_0x2155cb(0x21d)][_0x2155cb(0x2c8)](_0x2155cb(0x1f8)),_0x3a3b4a['running']=!![],_0x3a3b4a['debuggee']=Debuglet[_0x2155cb(0x260)](_0x59f726,_0x3a3b4a['config'],_0x5f4159,_0x3a3b4a[_0x2155cb(0x2c8)][_0x2155cb(0x227)],_0x3a3b4a[_0x2155cb(0x21d)],undefined),_0x3a3b4a[_0x2155cb(0x291)](0x0),_0x3a3b4a[_0x2155cb(0x275)](_0x2155cb(0x1f0));}[a5_0x37dc6d(0x2d5)](){const _0x5f532c=a5_0x37dc6d;if(Date[_0x5f532c(0x295)]()<this[_0x5f532c(0x26c)]+PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS)return Promise[_0x5f532c(0x234)]();else{if(this[_0x5f532c(0x299)])return this[_0x5f532c(0x299)][_0x5f532c(0x243)]();return this['breakpointFetched']=new CachedPromise(),this[_0x5f532c(0x2a5)][_0x5f532c(0x243)]()['then'](()=>{this['scheduleBreakpointFetch_'](0x0,!![]);}),this[_0x5f532c(0x299)][_0x5f532c(0x243)]();}}static['createDebuggeeMetadata'](_0xc64003,_0x5f3121){const _0x1724f2=a5_0x37dc6d;var _0x309156,_0x2b9bb7,_0x31b8ea;let _0x454710={'registration':{}};if((_0x309156=_0xc64003[_0x1724f2(0x2bf)])===null||_0x309156===void 0x0?void 0x0:_0x309156[_0x1724f2(0x277)])try{_0x454710=JSON[_0x1724f2(0x26b)](fs[_0x1724f2(0x28b)](_0xc64003['metadata'][_0x1724f2(0x277)],_0x1724f2(0x24a)));}catch(_0x1426e3){_0x5f3121[_0x1724f2(0x236)](_0x1724f2(0x2e2)+_0xc64003['metadata']['filename'],_0x1426e3);}return _0x454710[_0x1724f2(0x218)]=extend(!![],{},(_0x2b9bb7=_0xc64003['metadata'])===null||_0x2b9bb7===void 0x0?void 0x0:_0x2b9bb7[_0x1724f2(0x218)],_0x454710[_0x1724f2(0x218)]),((_0x31b8ea=_0x454710['registration'])===null||_0x31b8ea===void 0x0?void 0x0:_0x31b8ea[_0x1724f2(0x28e)])&&(_0x454710['registration'][_0x1724f2(0x28e)]=_0x454710[_0x1724f2(0x218)][_0x1724f2(0x28e)][_0x1724f2(0x283)](_0x40ca9a=>typeof _0x40ca9a===_0x1724f2(0x214)?{'name':_0x40ca9a}:_0x40ca9a)),_0x454710;}static['createDebuggee'](_0x516d1a,_0x33fb9c,_0xea23c9,_0x327af8,_0x4dc0ab,_0x3cbeb9){const _0x5620f9=a5_0x37dc6d,_0xa2c63e=process[_0x5620f9(0x240)](),_0x3f898d=path[_0x5620f9(0x203)](_0xa2c63e,process[_0x5620f9(0x245)][0x1]),_0x56ca61=_0x327af8[_0x5620f9(0x26f)],_0x432cde={'main\x20script':_0x3f898d,'process.title':process[_0x5620f9(0x253)],'node\x20version':process['versions'][_0x5620f9(0x1e8)],'V8\x20version':process[_0x5620f9(0x20a)]['v8'],'agent.name':_0x327af8['name'],'agent.version':_0x327af8['version'],'platform':Debuglet[_0x5620f9(0x20c)]()},_0x1a2fa5=_0x33fb9c[_0x5620f9(0x1f1)];_0x1a2fa5&&(typeof _0x1a2fa5['service']===_0x5620f9(0x214)&&_0x1a2fa5[_0x5620f9(0x2b8)]!=='default'&&(_0x432cde['module']=_0x1a2fa5[_0x5620f9(0x2b8)]),typeof _0x1a2fa5[_0x5620f9(0x26f)]===_0x5620f9(0x214)&&(_0x432cde[_0x5620f9(0x26f)]=_0x1a2fa5[_0x5620f9(0x26f)]),typeof _0x1a2fa5['minorVersion_']==='string'&&(_0x432cde[_0x5620f9(0x20f)]=_0x1a2fa5[_0x5620f9(0x24d)]));const _0x3c306e=Debuglet[_0x5620f9(0x2df)](_0x56ca61,_0x516d1a,_0xea23c9,_0x432cde),_0x108dcf=_0x3cbeb9?new status_message_1['StatusMessage'](status_message_1['StatusMessage'][_0x5620f9(0x1fc)],_0x3cbeb9,!![]):undefined,_0x38f826=Debuglet[_0x5620f9(0x1ef)](_0x33fb9c,_0x4dc0ab),_0x1cc48d={'uniquifier':_0x3c306e,'agentVersion':_0x56ca61,'labels':{'metadata':JSON[_0x5620f9(0x2ad)](_0x38f826)},'statusMessage':_0x108dcf,'packageInfo':_0x327af8,'host':os[_0x5620f9(0x263)](),'pid':process[_0x5620f9(0x2ba)][_0x5620f9(0x2a9)](),'cpuCoreCount':os['cpus']()['length'],'systemTotalMemoryBytes':os[_0x5620f9(0x232)]()};return _0xea23c9&&(_0x1cc48d[_0x5620f9(0x2c6)]=[_0xea23c9]),new debuggee_1[(_0x5620f9(0x2ca))](_0x1cc48d);}static['getPlatform'](){const _0x160705=a5_0x37dc6d,{FUNCTION_NAME:_0x145a7a,FUNCTION_TARGET:_0x41d116}=process[_0x160705(0x237)];if(_0x145a7a||_0x41d116)return Platforms[_0x160705(0x2b0)];return Platforms[_0x160705(0x2ab)];}static['runningOnGCP'](){const _0x362431=a5_0x37dc6d;return metadata[_0x362431(0x1eb)]();}static async[a5_0x37dc6d(0x222)](){const _0x325f09=a5_0x37dc6d;return(await metadata['instance'](_0x325f09(0x266)))[_0x325f09(0x278)];}static async[a5_0x37dc6d(0x250)](){const _0xc6805=a5_0x37dc6d,_0x4e1d8b=await readFilep(_0xc6805(0x273),_0xc6805(0x2d0));try{return JSON['parse'](_0x4e1d8b);}catch(_0x6ebfc3){throw new Error(_0xc6805(0x27f)+_0x6ebfc3);}}[a5_0x37dc6d(0x291)](_0x4e14e4){const _0x477fb5=a5_0x37dc6d,_0x5b810a=this;function _0x4a7aa8(_0x3a50c8){const _0x5cfee1=a5_0x1eee;_0x5b810a[_0x5cfee1(0x21d)][_0x5cfee1(0x229)](_0x5cfee1(0x22c)+_0x5b810a[_0x5cfee1(0x282)]+':\x20'+_0x3a50c8),_0x5b810a['scheduleRegistration_'](Math[_0x5cfee1(0x22e)]((_0x4e14e4+0x1)*0x2,_0x5b810a[_0x5cfee1(0x1f6)]['internal']['maxRegistrationRetryDelay']));}setTimeout(()=>{const _0x1c7aa5=a5_0x1eee;if(!_0x5b810a['running']){_0x4a7aa8(new Error(_0x1c7aa5(0x1f7)));return;}_0x5b810a[_0x1c7aa5(0x2a1)][_0x1c7aa5(0x216)](_0x5b810a['debuggee'],(_0x58f3f1,_0x5bb171)=>{const _0x42def8=_0x1c7aa5;if(_0x58f3f1){_0x4a7aa8(_0x58f3f1);return;}if(_0x5bb171[_0x42def8(0x2e4)][_0x42def8(0x2cf)]){_0x4a7aa8(new Error(_0x42def8(0x2e5))),_0x5b810a[_0x42def8(0x275)](_0x42def8(0x2f8));return;}_0x5b810a[_0x42def8(0x21d)][_0x42def8(0x1fd)]('Registered\x20as\x20debuggee:',_0x5bb171['debuggee']['id']),_0x5b810a[_0x42def8(0x2e4)]['id']=_0x5bb171['debuggee']['id'],_0x5b810a[_0x42def8(0x275)](_0x42def8(0x28d),_0x5bb171[_0x42def8(0x2e4)]['id']),_0x5b810a['debuggeeRegistered']['resolve'](),_0x5b810a[_0x42def8(0x28c)]['bind'](_0x5b810a)(_0x5b810a[_0x42def8(0x2e4)]['id'],()=>{const _0x21e9bf=_0x42def8;var _0x6ed331;(_0x6ed331=_0x5b810a[_0x21e9bf(0x27e)])===null||_0x6ed331===void 0x0?void 0x0:_0x6ed331[_0x21e9bf(0x238)](_0x5b810a[_0x21e9bf(0x271)]),!_0x5b810a['fetcherActive']&&_0x5b810a[_0x21e9bf(0x288)](0x0,![]);});});},_0x4e14e4*0x3e8)[_0x477fb5(0x24f)]();}['scheduleBreakpointFetch_'](_0x51e7ae,_0x6cc196){const _0x4b7207=a5_0x37dc6d,_0x3fbe7=this;!_0x6cc196&&(_0x3fbe7[_0x4b7207(0x23f)]=!![]),setTimeout(()=>{const _0x49e296=_0x4b7207;if(!_0x3fbe7[_0x49e296(0x2c2)])return;!_0x6cc196&&assert(_0x3fbe7['fetcherActive']),_0x3fbe7[_0x49e296(0x21d)][_0x49e296(0x1fd)](_0x49e296(0x2ec)),_0x3fbe7[_0x49e296(0x2a1)][_0x49e296(0x294)](_0x3fbe7['debuggee'],(_0x36dffd,_0x4b84f0,_0x19be5f)=>{const _0x510714=_0x49e296;if(_0x36dffd){_0x3fbe7[_0x510714(0x21d)]['error'](_0x510714(0x2eb),_0x36dffd),_0x3fbe7[_0x510714(0x23f)]=![],_0x3fbe7['updatePromise'](),_0x3fbe7[_0x510714(0x291)](_0x3fbe7[_0x510714(0x1f6)][_0x510714(0x2d2)]['registerDelayOnFetcherErrorSec']);return;}_0x3fbe7[_0x510714(0x21d)][_0x510714(0x1fd)]('\x09'+_0x4b84f0[_0x510714(0x225)]+_0x510714(0x281));if(!_0x19be5f){_0x3fbe7[_0x510714(0x21d)][_0x510714(0x229)]('\x09invalid\x20list\x20response:\x20empty\x20body'),_0x3fbe7[_0x510714(0x288)](_0x3fbe7[_0x510714(0x1f6)]['breakpointUpdateIntervalSec'],_0x6cc196);return;}if(_0x19be5f[_0x510714(0x207)]){_0x3fbe7[_0x510714(0x21d)][_0x510714(0x1fd)]('\x09Long\x20poll\x20completed.'),_0x3fbe7[_0x510714(0x288)](0x0,_0x6cc196);return;}_0x19be5f[_0x510714(0x2f3)]&&_0x19be5f[_0x510714(0x2f3)]!=_0x510714(0x2a6)&&(this['pipingManager']['globalPipingStatus']=_0x19be5f[_0x510714(0x2f3)]);_0x19be5f[_0x510714(0x223)]&&_0x19be5f['collectLogRequestId']!==_0x3fbe7[_0x510714(0x204)]&&(_0x3fbe7[_0x510714(0x204)]=_0x19be5f['collectLogRequestId'],_0x3fbe7[_0x510714(0x21f)]?setTimeout(()=>_0x3fbe7['controller'][_0x510714(0x210)](_0x3fbe7[_0x510714(0x2e4)],_0x19be5f['collectLogRequestId'],_0x3fbe7['logsPath'])):_0x3fbe7[_0x510714(0x21d)][_0x510714(0x1fd)](_0x510714(0x28a)+_0x19be5f[_0x510714(0x204)]+'\x20because\x20'+_0x510714(0x262)));const _0x40d2a1=(_0x19be5f[_0x510714(0x1f9)]||[])[_0x510714(0x24e)](_0x11fa22=>{const _0x275d7d=_0x510714,_0x352c97=_0x11fa22[_0x275d7d(0x2bb)]||_0x275d7d(0x259);if(_0x3fbe7[_0x275d7d(0x25d)][_0x11fa22['id']])return![];if(_0x352c97!==_0x275d7d(0x259)&&_0x352c97!==_0x275d7d(0x25b))return _0x3fbe7[_0x275d7d(0x21d)][_0x275d7d(0x236)](_0x275d7d(0x258),_0x352c97),_0x11fa22[_0x275d7d(0x225)]=new status_message_1[(_0x275d7d(0x296))](status_message_1[_0x275d7d(0x296)][_0x275d7d(0x1fc)],BREAKPOINT_ACTION_MESSAGE,!![]),_0x3fbe7[_0x275d7d(0x2b1)](_0x11fa22),![];return!![];});_0x3fbe7[_0x510714(0x209)](),_0x3fbe7[_0x510714(0x228)](_0x40d2a1);Object[_0x510714(0x247)](_0x3fbe7[_0x510714(0x284)])['length']&&_0x3fbe7[_0x510714(0x21d)][_0x510714(0x1fd)](formatBreakpoints(_0x510714(0x1f2),_0x3fbe7[_0x510714(0x284)]));_0x3fbe7[_0x510714(0x26c)]=Date[_0x510714(0x295)]();_0x6cc196?_0x3fbe7[_0x510714(0x299)]&&(_0x3fbe7['breakpointFetched'][_0x510714(0x234)](),_0x3fbe7[_0x510714(0x299)]=null):_0x3fbe7[_0x510714(0x288)](0x0,_0x6cc196);return;});},_0x51e7ae*0x3e8)['unref']();}[a5_0x37dc6d(0x248)](){const _0x2f5f71=a5_0x37dc6d;this[_0x2f5f71(0x2a5)]=new CachedPromise(),this[_0x2f5f71(0x299)]&&(this[_0x2f5f71(0x299)][_0x2f5f71(0x234)](),this[_0x2f5f71(0x299)]=null);}['updateActiveBreakpoints_'](_0x1ca6ab){const _0x423f63=a5_0x37dc6d,_0x39d33d=this,_0x5c66da=this[_0x423f63(0x2e1)](_0x1ca6ab);_0x1ca6ab['length']&&_0x39d33d[_0x423f63(0x21d)][_0x423f63(0x1fd)](formatBreakpoints(_0x423f63(0x2a2),_0x5c66da)),_0x1ca6ab[_0x423f63(0x206)](_0x5854ae=>{const _0x5cbca3=_0x423f63;!_0x39d33d[_0x5cbca3(0x25d)][_0x5854ae['id']]&&!_0x39d33d['activeBreakpointMap'][_0x5854ae['id']]&&(_0x39d33d[_0x5cbca3(0x2cc)](_0x5854ae,_0x38303d=>{const _0x215c93=_0x5cbca3;_0x38303d&&_0x39d33d[_0x215c93(0x2b5)](_0x5854ae,!![],![]);}),this[_0x5cbca3(0x1fa)]['createPerBreakpointConditionQuota'](_0x5854ae['id'])),_0x39d33d[_0x5cbca3(0x1e7)][_0x5cbca3(0x24b)](_0x5854ae['id'],_0x5854ae[_0x5cbca3(0x2af)]);}),Debuglet[_0x423f63(0x1e6)](this['completedBreakpointMap'],_0x5c66da)[_0x423f63(0x206)](_0x3b64df=>{const _0x5b89a5=_0x423f63;delete _0x39d33d[_0x5b89a5(0x25d)][_0x3b64df['id']];}),Debuglet[_0x423f63(0x1e6)](this[_0x423f63(0x284)],_0x5c66da)[_0x423f63(0x206)](_0x126249=>{const _0xe6513b=_0x423f63;this[_0xe6513b(0x244)](_0x126249,!![]);});}[a5_0x37dc6d(0x2e1)](_0x33e77d){const _0x44627c=a5_0x37dc6d,_0x2886bc={};return _0x33e77d[_0x44627c(0x206)](_0x5e53c1=>{_0x2886bc[_0x5e53c1['id']]=_0x5e53c1;}),_0x2886bc;}[a5_0x37dc6d(0x244)](_0x366b9d,_0x2c50f4){const _0x3efdef=a5_0x37dc6d;this['logger'][_0x3efdef(0x1fd)]('\x09deleted\x20breakpoint',_0x366b9d['id']),this[_0x3efdef(0x1fa)][_0x3efdef(0x2da)](_0x366b9d['id']),delete this[_0x3efdef(0x284)][_0x366b9d['id']],_0x2c50f4&&this[_0x3efdef(0x27e)]&&this['v8debug']['clear'](_0x366b9d,_0x259939=>{const _0x3f6281=_0x3efdef;if(_0x259939)this['logger'][_0x3f6281(0x229)](_0x259939);});}[a5_0x37dc6d(0x2cc)](_0x3c9899,_0x2bc5d5){const _0x1e4c36=a5_0x37dc6d,_0x6bed3d=this;if(!_0x6bed3d[_0x1e4c36(0x1f6)][_0x1e4c36(0x2f2)]&&(_0x3c9899['condition']||_0x3c9899['expressions'])){_0x6bed3d['logger'][_0x1e4c36(0x229)](ALLOW_EXPRESSIONS_MESSAGE),_0x3c9899[_0x1e4c36(0x225)]=new status_message_1[(_0x1e4c36(0x296))](status_message_1['StatusMessage'][_0x1e4c36(0x1fc)],ALLOW_EXPRESSIONS_MESSAGE,!![]),setImmediate(()=>{_0x2bc5d5(ALLOW_EXPRESSIONS_MESSAGE);});return;}if(utils[_0x1e4c36(0x21c)](process[_0x1e4c36(0x26f)],_0x1e4c36(0x27a))){const _0x21d9f6=NODE_VERSION_MESSAGE;_0x6bed3d[_0x1e4c36(0x21d)][_0x1e4c36(0x229)](_0x21d9f6),_0x3c9899['status']=new status_message_1[(_0x1e4c36(0x296))](status_message_1[_0x1e4c36(0x296)][_0x1e4c36(0x1fc)],_0x21d9f6,!![]),setImmediate(()=>{_0x2bc5d5(_0x21d9f6);});return;}const _0x4a0f50=_0x3c9899[_0x1e4c36(0x2ed)]?Number(_0x3c9899[_0x1e4c36(0x2ed)][_0x1e4c36(0x29a)]):Date[_0x1e4c36(0x295)]()/0x3e8,_0x2c58ba=_0x3c9899['expirationSeconds']||_0x6bed3d['config'][_0x1e4c36(0x239)];_0x3c9899[_0x1e4c36(0x2f1)]=_0x4a0f50+_0x2c58ba,_0x6bed3d['v8debug'][_0x1e4c36(0x2f6)](_0x3c9899,_0x24e1a2=>{const _0x266530=_0x1e4c36;if(_0x24e1a2){_0x2bc5d5(_0x24e1a2);return;}_0x6bed3d[_0x266530(0x21d)][_0x266530(0x1fd)](_0x266530(0x2c9)+_0x3c9899['id']),_0x6bed3d['activeBreakpointMap'][_0x3c9899['id']]=_0x3c9899,_0x3c9899[_0x266530(0x2bb)]===_0x266530(0x25b)?_0x6bed3d[_0x266530(0x27e)][_0x266530(0x1ea)](_0x3c9899,(_0x5d3a69,_0x4227df)=>{const _0x4e1d05=_0x266530,_0x2d7dae=_0x4e1d05(0x2ef)+Debuglet[_0x4e1d05(0x249)](_0x5d3a69,_0x4227df),_0x352863=this[_0x4e1d05(0x1fa)]['quotaCheck'](_0x2d7dae,_0x3c9899['id']);_0x352863&&_0x6bed3d['pipingManager']['addAndPipeLog'](_0x6bed3d[_0x4e1d05(0x2e4)],_0x3c9899['id'],_0x352863,_0x3c9899[_0x4e1d05(0x226)]);},()=>{const _0x4668e6=_0x266530;return _0x6bed3d[_0x4668e6(0x25d)][_0x3c9899['id']];},_0x16fd24=>{const _0xfedbf3=_0x266530;if(_0x16fd24){_0x6bed3d[_0xfedbf3(0x21d)]['error'](_0x16fd24),_0x2bc5d5(_0x16fd24);return;}}):_0x6bed3d[_0x266530(0x27e)]['wait'](_0x3c9899,_0x59490a=>{const _0x55b48e=_0x266530;if(_0x59490a){_0x6bed3d[_0x55b48e(0x21d)][_0x55b48e(0x229)](_0x59490a),_0x2bc5d5(_0x59490a);return;}_0x6bed3d['logger'][_0x55b48e(0x1fd)]('Breakpoint\x20hit!:\x20'+_0x3c9899['id']),_0x6bed3d[_0x55b48e(0x2b5)](_0x3c9899,_0x6bed3d[_0x55b48e(0x27e)][_0x55b48e(0x29d)](_0x3c9899['id'])<=0x0);}),_0x6bed3d[_0x266530(0x2e9)](_0x3c9899);});}[a5_0x37dc6d(0x2b5)](_0x11d77f,_0x585f84,_0x924f22=!![]){const _0x220747=a5_0x37dc6d,_0x1fc4bb=this;_0x1fc4bb[_0x220747(0x21d)][_0x220747(0x1fd)](_0x220747(0x2ae),_0x11d77f['id']),_0x585f84&&(_0x1fc4bb[_0x220747(0x25d)][_0x11d77f['id']]=!![],_0x1fc4bb[_0x220747(0x244)](_0x11d77f,_0x924f22)),_0x1fc4bb[_0x220747(0x2a1)][_0x220747(0x29e)](_0x1fc4bb[_0x220747(0x2e4)],extend(!![],{},_0x11d77f));}['reportBreakpointAccepted_'](_0x4ee105){const _0x363bbb=a5_0x37dc6d,_0x5932dc=this;_0x5932dc[_0x363bbb(0x21d)][_0x363bbb(0x2c8)]('reporting\x20breakpoint\x20accepted\x20by\x20agent',_0x4ee105['id']);const _0x2100eb=extend(!![],{},_0x4ee105);_0x2100eb[_0x363bbb(0x2ac)]=![],_0x2100eb['status']=new status_message_1['StatusMessage'](status_message_1['StatusMessage'][_0x363bbb(0x1fc)],'',![],!![]),_0x5932dc[_0x363bbb(0x2a1)][_0x363bbb(0x29e)](_0x5932dc[_0x363bbb(0x2e4)],_0x2100eb);}[a5_0x37dc6d(0x2b1)](_0x3468e6){const _0x13d5a6=a5_0x37dc6d,_0x1ca08f=this;_0x1ca08f[_0x13d5a6(0x25d)][_0x3468e6['id']]=!![],_0x1ca08f['controller'][_0x13d5a6(0x29e)](_0x1ca08f[_0x13d5a6(0x2e4)],_0x3468e6);}[a5_0x37dc6d(0x209)](){const _0x461c4a=a5_0x37dc6d,_0x190e37=this,_0x9dc22c=Date[_0x461c4a(0x295)]()/0x3e8;Object[_0x461c4a(0x1e9)](this[_0x461c4a(0x284)])[_0x461c4a(0x24e)](_0x38df3b=>_0x38df3b[_0x461c4a(0x2f1)]?_0x38df3b[_0x461c4a(0x2f1)]<_0x9dc22c:![])[_0x461c4a(0x206)](_0x50ad0b=>{const _0x28a1bc=_0x461c4a;_0x190e37['logger']['info'](_0x28a1bc(0x2ea)+_0x50ad0b['id']),_0x50ad0b[_0x28a1bc(0x225)]={'description':{'format':_0x28a1bc(0x2ce)},'isError':!![],'refersTo':status_message_1[_0x28a1bc(0x296)][_0x28a1bc(0x2b7)]},_0x190e37[_0x28a1bc(0x2b5)](_0x50ad0b,!![]);});}[a5_0x37dc6d(0x1e5)](){const _0x35da7f=a5_0x37dc6d;assert['ok'](this[_0x35da7f(0x2c2)],_0x35da7f(0x2a8)),this['logger'][_0x35da7f(0x2c8)](_0x35da7f(0x2c5)),this[_0x35da7f(0x2c2)]=![],this[_0x35da7f(0x275)](_0x35da7f(0x27b));}[a5_0x37dc6d(0x28c)](_0xc70e4b,_0x2cb33e){const _0xb1090d=a5_0x37dc6d,_0xcf3c6e=this;this[_0xb1090d(0x2a1)][_0xb1090d(0x28c)](_0xc70e4b,(_0x499c69,_0x636aba,_0x30b6fa)=>{const _0x2ab35b=_0xb1090d;if(_0x499c69)_0xcf3c6e[_0x2ab35b(0x21d)]['warn'](_0x2ab35b(0x267),_0x499c69),_0xcf3c6e['blocklistManager']=new dummy_blocklist_manager_1[(_0x2ab35b(0x2bd))](!![]);else{const _0x196ca9=_0x636aba[_0x2ab35b(0x29f)],_0x10a4d4=_0x636aba[_0x2ab35b(0x2c7)];_0xcf3c6e[_0x2ab35b(0x271)]=new patterns_blocklist_manager_1[(_0x2ab35b(0x219))](_0x196ca9,_0x10a4d4,this['config']);}_0x2cb33e();});}static[a5_0x37dc6d(0x1e6)](_0x45f94e,_0x68e0c){const _0x16455e=a5_0x37dc6d,_0x5d1c62=[];for(const _0x35ff42 in _0x45f94e){!_0x68e0c[_0x35ff42]&&_0x5d1c62[_0x16455e(0x2c1)](_0x45f94e[_0x35ff42]);}return _0x5d1c62;}static[a5_0x37dc6d(0x249)](_0x4ed168,_0x4fe67a){const _0x2ddbd7=a5_0x37dc6d,_0x5c4707=Debuglet['_tokenize'](_0x4ed168,_0x4fe67a[_0x2ddbd7(0x26e)]);for(let _0x42926a=0x0;_0x42926a<_0x5c4707[_0x2ddbd7(0x26e)];_0x42926a++){if(!_0x5c4707[_0x42926a]['v'])continue;if(_0x5c4707[_0x42926a]['v']==='$$'){_0x5c4707[_0x42926a]='$';continue;}for(let _0x2d9300=0x0;_0x2d9300<_0x4fe67a[_0x2ddbd7(0x26e)];_0x2d9300++){if(_0x5c4707[_0x42926a]['v']==='$'+_0x2d9300){_0x5c4707[_0x42926a]=_0x4fe67a[_0x2d9300];break;}}}return _0x5c4707[_0x2ddbd7(0x255)]('');}static[a5_0x37dc6d(0x29c)](_0x13236e,_0x20d8a0){const _0x305c58=a5_0x37dc6d;let _0x1f9c8a=Debuglet[_0x305c58(0x2f5)](_0x13236e,'$$');for(let _0x2032df=_0x20d8a0-0x1;_0x2032df>=0x0;_0x2032df--){const _0x349ba0=[];for(let _0xb0ec03=0x0;_0xb0ec03<_0x1f9c8a['length'];_0xb0ec03++){_0x1f9c8a[_0xb0ec03]['v']?_0x349ba0['push'](_0x1f9c8a[_0xb0ec03]):_0x349ba0[_0x305c58(0x2c1)](...Debuglet[_0x305c58(0x2f5)](_0x1f9c8a[_0xb0ec03],'$'+_0x2032df));}_0x1f9c8a=_0x349ba0;}return _0x1f9c8a;}static['_delimit'](_0x2709a7,_0x313b08){const _0x44862c=a5_0x37dc6d,_0xd8857d=_0x2709a7[_0x44862c(0x20d)](_0x313b08),_0x20f964=[];_0x20f964[_0x44862c(0x2c1)](_0xd8857d[0x0]);for(let _0x3529a0=0x1;_0x3529a0<_0xd8857d['length'];_0x3529a0++){_0x20f964['push']({'v':_0x313b08},_0xd8857d[_0x3529a0]);}return _0x20f964;}static[a5_0x37dc6d(0x2df)](_0x557890,_0x48aecc,_0x263cb7,_0x1b82a2){const _0x2d16b0=a5_0x37dc6d,_0x300473=_0x557890+_0x48aecc+JSON[_0x2d16b0(0x2ad)](_0x263cb7)+JSON[_0x2d16b0(0x2ad)](_0x1b82a2);return crypto['createHash'](_0x2d16b0(0x2b9))[_0x2d16b0(0x20e)](_0x300473)[_0x2d16b0(0x2bc)](_0x2d16b0(0x235));}}exports[a5_0x37dc6d(0x25e)]=Debuglet;
|
|
1
|
+
const a5_0x19ce=['sendAgentLogsToServer','everything','platform','updatePromise','source-context.json','setIgnoreQuota','waitExpired','\x20information.','findFiles','\x0a\x09expressions:\x20','expressions','\x20are\x20CAPTURE\x20and\x20LOG.','debuggee','logs\x20path\x20not\x20defined','register','minorVersion_','to\x20avoid\x20a\x20scan\x20of\x20the\x20entire\x20filesystem\x20for\x20JavaScript\x20files.\x20','Malformed\x20source-context.json\x20file:\x20','get','Breakpoint\x20hit!:\x20','removePerBreakpointQuota','minorversion','38SfOilr','cpus','defineProperty','max_snapshot_buffer_size','module','gcp-metadata','isAvailable','test','inspect','info','pinned_certs','initError','Debuglet','debuggeeRegistered','109887Betmia','max_log_cpu_cost','maxRegistrationRetryDelay','isReadyManager','isRunning','message','java-properties','collectLogRequestId','activeBreakpointMap','expirationSeconds','addAndPipeLog','listBreakpoints','LIGHTRUN_API_ENDPOINT','seconds','unref','71BnbRZy','./io/scanner','agentLog','env','clear','assert','Expressions\x20and\x20conditions\x20are\x20not\x20allowed','do\x20this.','bind','push','addBreakpoint_','getBooleanValue','max_snapshot_frame_count','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','resolve','max_log_file_bytes','./io/sourcemapper','\x20by\x20default.\x20Please\x20set\x20the\x20allowExpressions\x20configuration\x20option\x20to\x20true.','_delimit','quota','disable','./config','getInt','logger','extend','534386MzDthv','js.map','Error\x20processing\x20the\x20sourcemaps.','YYMMDD-HHmmss','allowExpressions','breakpoint_expiration_sec','breakpointFetched','mapSubtract','The\x20working\x20directory\x20is\x20a\x20root\x20directory.\x20Disabling\x20','events','quotaCheck','Found\x20breakpoint\x20with\x20invalid\x20action:','>=10\x20<10.15.3\x20||\x20>=11\x20<11.7\x20||\x20>=12','GAE_MODULE_VERSION','scan','com.lightrun.secret','getPlatform','capture','3QcZXIB','breakpointExpirationSec','\x0a\x09condition:\x20','printFullVersion','node','hostname','versions','apply','totalmem','FETCH_BREAKPOINTS_ONCE','format','GAE-','breakpointUpdateIntervalSec','setBlocklistManager','stringify','path','utf-8','1209590GJvGRp','\x20because\x20','getFloat','../debuggee','crypto','collect_log_cooldown_ms','\x20See\x20the\x20debug\x20agent\x20documentation\x20at\x20https://goo.gl/ShSm6r.','1016154fPKzez','1VHNkXJ','dynamic_log_quota_recovery_ms','Platforms','LIGHTRUN_SECRET','action','getAgentLogger','Debuglet\x20not\x20running','./piping-manager','stopped','UNSPECIFIED','max_dynamic_log_rate','now','./controller','relative','create','73252HNecWQ','getBlocklist','string','sha1','debuglet','location','scheduleBreakpointFetch_','\x20See\x20https://github.com/googleapis/cloud-debug-nodejs/issues/516\x20for\x20more','breakpointFetchedTimestamp','EventEmitter','Controller','DEFAULT','defaultConfig','Error\x20fetching\x20breakpoints\x20–\x20scheduling\x20retry','getSourceContextFromFile','Unable\x20to\x20discover\x20source\x20context','Ignoring\x20request\x20to\x20collect\x20logs\x20with\x20id\x20','CachedPromise','internal','attributes/cluster-name','getAgentConfig','rejectBreakpoint_','promiseResolve','CLOUD_FUNCTION','fetchBreakpointsOnce','runningOnGCP','breakpoints','config','blocklistManager','Use\x20config\x20`allowRootAsWorkingDirectory`\x20if\x20you\x20really\x20want\x20to\x20','scheduleRegistration_','breakpoint_set','FUNCTION_NAME','expireOldBreakpoints','removeBreakpoint_','condition','normalizeConfig_','warn','34993vMUdTW','name','%d\x20[%p]\x20%f{1}:%l\x20-\x20%m','Debuggee','pipingManager','instance','metadata','debug','5.2\x20||\x20<4','stop\x20can\x20only\x20be\x20called\x20on\x20a\x20running\x20agent','values','_tokenize','hash','CAPTURE','\x09invalid\x20list\x20response:\x20empty\x20body','constructor','\x09updating\x20breakpoint\x20data\x20on\x20server','forEach','project','LIGHTRUN_METADATA_FILE','getClusterNameFromMetadata','v8debug','pipeLogs','LIGHTRUN_TAGS','logsPath','selectStats','filename','max_condition_cost','util','LIGHTRUN_AGENT_CONFIG','\x09deleted\x20breakpoint','Registered\x20as\x20debuggee:','enable','__esModule','return\x20/\x22\x20+\x20this\x20+\x20\x22/','serviceContext','../client/stackdriver/status-message','quotaManager','createDebuggeeMetadata','updateBreakpoint_','existsSync','fetcherActive','buildRegExp','./blocklisting/patterns-blocklist-manager','quotaRecoverySeconds','version','fetch_breakpoints_once','workingDirectory','title','enqueueBreakpointUpdate','GAE_MODULE_NAME','Fetching\x20breakpoints','sourceContexts','running','Disabled\x20by\x20the\x20server','4817ZQSaHK','LOG','cwd','Failed\x20to\x20read\x20metadata\x20file\x20','LIGHTRUN_WAIT_FOR_INIT','log4js','registerDelayOnFetcherErrorSec','GAE_MINOR_VERSION','nextEnableTimeout','agentConfigFile','start','mapFiles','setPipingStatus','split','K_REVISION','GAE_VERSION','agent_regmetadata_file','then','\x20and\x20Node\x2012.','parse','registration','LIGHTRUN_COMPANY','getBoolean','remainingHits','Node.js\x20version\x20not\x20supported.\x20Node.js\x205.2.0\x20and\x20','promise','selectFiles','errors','expirationTime','NOT_SET','pattern','getFirst','emit','toString','service','error','Failed\x20getting\x20blocklist\x20from\x20server:\x20','unversioned','updateActiveBreakpoints_','_createUniquifier','BREAKPOINT_AGE','wait','max_dynamic_log_bytes_rate','map','log','completedBreakpointMap','level','transmission_bulk_max_size','\x09Long\x20poll\x20completed.','versions\x20older\x20than\x200.12\x20are\x20not\x20supported.','file','convertBreakpointListToMap_','isReady','controller','createDebuggee','layout','StatusMessage','digest','/lightrun_nodejs_agent.','default','keys','update','allowRootAsWorkingDirectory','GAE_DEPLOYMENT_ID','javascriptFileExtensions','Expiring\x20breakpoint\x20','The\x20action\x20has\x20expired','LOGPOINT:\x20','length','createTime','status','join','\x20completed.','argv','PipingManager','breakpoints_fetched'];const a5_0x58691a=a5_0x2dab;(function(_0x1694a2,_0x46883a){const _0x549588=a5_0x2dab;while(!![]){try{const _0x205871=parseInt(_0x549588(0x10f))*parseInt(_0x549588(0x121))+parseInt(_0x549588(0x16f))*parseInt(_0x549588(0xd9))+-parseInt(_0x549588(0x132))+parseInt(_0x549588(0x1a6))*parseInt(_0x549588(0xf6))+-parseInt(_0x549588(0x139))+-parseInt(_0x549588(0x149))+-parseInt(_0x549588(0x13a))*parseInt(_0x549588(0xe7));if(_0x205871===_0x46883a)break;else _0x1694a2['push'](_0x1694a2['shift']());}catch(_0x5acb62){_0x1694a2['push'](_0x1694a2['shift']());}}}(a5_0x19ce,0xd36e0));function a5_0x2dab(_0x3e0f07,_0xd94bec){_0x3e0f07=_0x3e0f07-0xbe;let _0x1fd054=a5_0x19ce[_0x3e0f07];return _0x1fd054;}const a5_0x32046c=function(){let _0x846912=!![];return function(_0x5bad53,_0x348bf5){const _0x35395a=_0x846912?function(){const _0x8c1129=a5_0x2dab;if(_0x348bf5){const _0xdb125d=_0x348bf5[_0x8c1129(0x128)](_0x5bad53,arguments);return _0x348bf5=null,_0xdb125d;}}:function(){};return _0x846912=![],_0x35395a;};}(),a5_0x3de2d2=a5_0x32046c(this,function(){const _0xf66401=function(){const _0x1a7638=a5_0x2dab,_0x277749=_0xf66401[_0x1a7638(0x17e)](_0x1a7638(0x191))()['constructor'](_0x1a7638(0x103));return!_0x277749[_0x1a7638(0xe0)](a5_0x3de2d2);};return _0xf66401();});a5_0x3de2d2();'use strict';Object[a5_0x58691a(0xdb)](exports,a5_0x58691a(0x190),{'value':!![]}),exports[a5_0x58691a(0xe5)]=exports[a5_0x58691a(0x15a)]=exports['Platforms']=void 0x0;const assert=require(a5_0x58691a(0xfb)),log4js_1=require(a5_0x58691a(0x1ab)),crypto=require(a5_0x58691a(0x136)),events_1=require(a5_0x58691a(0x118)),extend=require(a5_0x58691a(0x10e)),fs=require('fs'),metadata=require(a5_0x58691a(0xde)),path=require(a5_0x58691a(0x130)),util=require(a5_0x58691a(0x18b)),properties=require(a5_0x58691a(0xed)),status_message_1=require(a5_0x58691a(0x193)),debuggee_1=require(a5_0x58691a(0x135)),config_1=require(a5_0x58691a(0x10b)),controller_1=require(a5_0x58691a(0x146)),scanner=require(a5_0x58691a(0xf7)),SourceMapper=require(a5_0x58691a(0x106)),utils=require('./util/utils'),debugapi=require('./v8/debugapi'),os=require('os'),moment=require('moment'),piping_manager_1=require(a5_0x58691a(0x141)),quota_manager_1=require('./quota-manager'),patterns_blocklist_manager_1=require(a5_0x58691a(0x19a)),dummy_blocklist_manager_1=require('./blocklisting/dummy-blocklist-manager'),readFilep=util['promisify'](fs['readFile']),ALLOW_EXPRESSIONS_MESSAGE=a5_0x58691a(0xfc)+a5_0x58691a(0x107)+a5_0x58691a(0x138),NODE_VERSION_MESSAGE=a5_0x58691a(0x1be)+a5_0x58691a(0x1d7),NODE_10_CIRC_REF_MESSAGE='capture.maxDataSize=0\x20is\x20not\x20recommended\x20on\x20older\x20versions\x20of\x20Node\x2010/11'+a5_0x58691a(0x1b8)+a5_0x58691a(0x150)+a5_0x58691a(0xca),BREAKPOINT_ACTION_MESSAGE='The\x20only\x20currently\x20supported\x20breakpoint\x20actions'+a5_0x58691a(0xce),PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS=(0x28+0x21c)/0x2*0x3e8;var Platforms;(function(_0x52e2d9){const _0x29f557=a5_0x58691a;_0x52e2d9['CLOUD_FUNCTION']='cloud_function',_0x52e2d9[_0x29f557(0x154)]=_0x29f557(0x1e1);}(Platforms=exports[a5_0x58691a(0x13c)]||(exports[a5_0x58691a(0x13c)]={})));const formatBreakpoint=(_0x3f1d2a,_0x229322)=>{const _0x1f1cad=a5_0x58691a;let _0x562d8c=_0x3f1d2a+util[_0x1f1cad(0x12b)]('breakpoint\x20id:\x20%s,\x0a\x09location:\x20%s',_0x229322['id'],util[_0x1f1cad(0xe1)](_0x229322[_0x1f1cad(0x14e)]));if(_0x229322[_0x1f1cad(0x1eb)]){const _0xa60733=Number(_0x229322['createTime'][_0x1f1cad(0xf4)]),_0x27037f=new Date(_0xa60733*0x3e8);_0x562d8c+='\x0a\x09createdTime:\x20'+_0x27037f[_0x1f1cad(0x1c7)]();}return _0x229322[_0x1f1cad(0x16c)]&&(_0x562d8c+=_0x1f1cad(0x123)+util[_0x1f1cad(0xe1)](_0x229322['condition'])),_0x229322[_0x1f1cad(0xcd)]&&(_0x562d8c+=_0x1f1cad(0xcc)+util['inspect'](_0x229322[_0x1f1cad(0xcd)])),_0x562d8c;},formatBreakpoints=(_0x318ece,_0x329c66)=>{const _0x2436b1=a5_0x58691a;return _0x318ece+Object[_0x2436b1(0x1e2)](_0x329c66)[_0x2436b1(0x1d1)](_0x273fea=>{return formatBreakpoint('',_0x329c66[_0x273fea]);})['join']('\x0a');};class CachedPromise{constructor(){const _0x233939=a5_0x58691a;this[_0x233939(0x15f)]=null,this['promise']=new Promise(_0x470153=>{this['promiseResolve']=_0x470153;});}[a5_0x58691a(0xd5)](){const _0x195c57=a5_0x58691a;return this[_0x195c57(0x1bf)];}[a5_0x58691a(0x104)](){const _0x2eaa4a=a5_0x58691a;this[_0x2eaa4a(0x15f)]&&(this['promiseResolve'](),this['promiseResolve']=null);}}exports['CachedPromise']=CachedPromise;class IsReadyImpl{constructor(_0x484eb8){const _0x5e6dd0=a5_0x58691a;this[_0x5e6dd0(0x14d)]=_0x484eb8;}['isReady'](){return this['debuglet']['isReady']();}}class Debuglet extends events_1[a5_0x58691a(0x152)]{constructor(_0x3b9ea7,_0x15c85c){const _0x1bf028=a5_0x58691a;super(),this[_0x1bf028(0x1ae)]=null,this[_0x1bf028(0xea)]=new IsReadyImpl(this),this[_0x1bf028(0x164)]=Debuglet[_0x1bf028(0x16d)](_0x15c85c),this[_0x1bf028(0x176)]=_0x3b9ea7,this[_0x1bf028(0x184)]=null,this[_0x1bf028(0x1a4)]=![],this[_0x1bf028(0x181)]=null,this[_0x1bf028(0x198)]=![],this[_0x1bf028(0x10d)]=this[_0x1bf028(0x13f)](this[_0x1bf028(0x164)]),this[_0x1bf028(0x1db)]=new controller_1[(_0x1bf028(0x153))](this['debug'],this[_0x1bf028(0x164)],this['logger']),this[_0x1bf028(0xcf)]=null,this[_0x1bf028(0xef)]={},this[_0x1bf028(0x1d3)]={},this['breakpointFetched']=null,this['breakpointFetchedTimestamp']=-Infinity,this[_0x1bf028(0xe6)]=new CachedPromise(),this[_0x1bf028(0x194)]=new quota_manager_1['QuotaManager'](this[_0x1bf028(0x10d)],this[_0x1bf028(0x164)]),this[_0x1bf028(0x173)]=new piping_manager_1[(_0x1bf028(0xc1))]('APP_ONLY',this[_0x1bf028(0x1db)],this[_0x1bf028(0x164)]);}['getAgentLogger'](_0x43708a){const _0x399ac5=a5_0x58691a;let _0x4cc26e;if(_0x43708a[_0x399ac5(0xf8)]['logsPath']){const _0x1e1be2=moment()[_0x399ac5(0x12b)](_0x399ac5(0x112)),_0x11ddbb=_0x43708a['agentLog'][_0x399ac5(0x187)]+(_0x399ac5(0x1e0)+_0x1e1be2+'.log');this[_0x399ac5(0x187)]=_0x11ddbb,_0x4cc26e={'type':_0x399ac5(0x1d8),'filename':_0x11ddbb};}else _0x4cc26e={'type':'console'};_0x4cc26e[_0x399ac5(0x1dd)]={'type':_0x399ac5(0x1c4),'pattern':_0x399ac5(0x171)},log4js_1['configure']({'appenders':{'everything':_0x4cc26e},'categories':{'default':{'appenders':[_0x399ac5(0xc4)],'level':_0x43708a['agentLog'][_0x399ac5(0x1d4)],'enableCallStack':!![]}}});const _0x5d81db=log4js_1['getLogger']();return _0x5d81db[_0x399ac5(0x1d4)]=_0x43708a['agentLog']['level'],_0x5d81db;}static[a5_0x58691a(0x16d)](_0x141952){const _0x470195=a5_0x58691a,_0x1d3794={'serviceContext':{'service':process[_0x470195(0xf9)]['GAE_SERVICE']||process[_0x470195(0xf9)][_0x470195(0x1a1)]||process[_0x470195(0xf9)]['K_SERVICE'],'version':process[_0x470195(0xf9)][_0x470195(0x1b5)]||process[_0x470195(0xf9)][_0x470195(0x11c)]||process[_0x470195(0xf9)][_0x470195(0x1b4)],'minorVersion_':process['env'][_0x470195(0x1e5)]||process[_0x470195(0xf9)]['GAE_MINOR_VERSION']},'metadata':{'filename':process[_0x470195(0xf9)][_0x470195(0x182)],'registration':{}},'lightrunSecret':process['env'][_0x470195(0x13d)],'company':process[_0x470195(0xf9)][_0x470195(0x1bb)],'apiEndpoint':process['env'][_0x470195(0xf3)],'fetchBreakpointsOnce':utils[_0x470195(0x101)](process[_0x470195(0xf9)][_0x470195(0x12a)]),'lightrunWaitForInit':utils[_0x470195(0x101)](process['env'][_0x470195(0x1aa)]),'lightrunInitWaitTimeMs':process[_0x470195(0xf9)]['LIGHTRUN_INIT_WAIT_TIME_MS']};process[_0x470195(0xf9)][_0x470195(0x169)]&&(_0x1d3794[_0x470195(0x192)][_0x470195(0x1c8)]=process['env'][_0x470195(0x169)],_0x1d3794['serviceContext'][_0x470195(0x19c)]=_0x470195(0x1cb));process[_0x470195(0xf9)]['LIGHTRUN_TAGS']&&(_0x1d3794['metadata'][_0x470195(0x1ba)]={'tags':process[_0x470195(0xf9)][_0x470195(0x186)][_0x470195(0x1b3)](',')});const _0x27dbc8=Debuglet[_0x470195(0x15d)](process['env'][_0x470195(0x18c)]||(_0x141952===null||_0x141952===void 0x0?void 0x0:_0x141952[_0x470195(0x1af)])||config_1[_0x470195(0x155)][_0x470195(0x1af)]);return extend(!![],{},config_1['defaultConfig'],_0x27dbc8,_0x141952,_0x1d3794);}static[a5_0x58691a(0x15d)](_0x198806){const _0x5405c8=a5_0x58691a;var _0x58153e;if(fs[_0x5405c8(0x197)](_0x198806)){const _0x26e456=properties['of'](_0x198806);return{'lightrunSecret':_0x26e456['getFirst'](_0x5405c8(0x11e)),'breakpointExpirationSec':_0x26e456[_0x5405c8(0x10c)](_0x5405c8(0x114)),'transmissionBulkMaxSize':_0x26e456[_0x5405c8(0x10c)](_0x5405c8(0x1d5)),'pinnedCerts':(_0x58153e=_0x26e456[_0x5405c8(0x1c5)](_0x5405c8(0xe3)))===null||_0x58153e===void 0x0?void 0x0:_0x58153e[_0x5405c8(0x1b3)](','),'metadata':{'filename':_0x26e456['getFirst'](_0x5405c8(0x1b6))},'capture':{'maxFrames':_0x26e456['getInt'](_0x5405c8(0x102)),'maxDataSize':_0x26e456[_0x5405c8(0x10c)](_0x5405c8(0xdc))},'agentLog':{'collectCooldownMs':_0x26e456[_0x5405c8(0x10c)](_0x5405c8(0x137)),'maxLogFileBytes':_0x26e456[_0x5405c8(0x10c)](_0x5405c8(0x105))},'quota':{'ignoreQuota':_0x26e456['getBoolean']('ignore_quota'),'maxCPUCost':_0x26e456[_0x5405c8(0x134)](_0x5405c8(0xe8)),'maxConditionCost':_0x26e456[_0x5405c8(0x134)](_0x5405c8(0x18a)),'maxDynamicLogRate':_0x26e456[_0x5405c8(0x10c)](_0x5405c8(0x144)),'maxDynamicLogByteRate':_0x26e456[_0x5405c8(0x10c)](_0x5405c8(0x1d0)),'quotaRecoverySeconds':_0x26e456[_0x5405c8(0x10c)](_0x5405c8(0x13b))&&_0x26e456[_0x5405c8(0x10c)](_0x5405c8(0x13b))/0x3e8},'fetchBreakpointsOnce':_0x26e456[_0x5405c8(0x1bc)](_0x5405c8(0x19d))};}return;}static[a5_0x58691a(0x199)](_0x5c58eb){const _0x5a2093=a5_0x58691a;return new RegExp(_0x5c58eb[_0x5a2093(0x1d1)](_0x2af671=>_0x2af671+'$')[_0x5a2093(0xbe)]('|'));}static async[a5_0x58691a(0xcb)](_0x239fd5,_0x10ce87){const _0x4e3d22=a5_0x58691a,_0x5aafac=_0x239fd5[_0x4e3d22(0x19e)],_0x51983b=await scanner[_0x4e3d22(0x11d)](_0x5aafac,Debuglet[_0x4e3d22(0x199)](_0x239fd5[_0x4e3d22(0x1e6)]['concat'](_0x4e3d22(0x110))),_0x10ce87),_0x37727c=_0x51983b[_0x4e3d22(0x188)](Debuglet[_0x4e3d22(0x199)](_0x239fd5[_0x4e3d22(0x1e6)])),_0x422b78=_0x51983b[_0x4e3d22(0x1c0)](/.js.map$/,process[_0x4e3d22(0x1a8)]()),_0x17b5c7=_0x51983b['errors']();return{'jsStats':_0x37727c,'mapFiles':_0x422b78,'errors':_0x17b5c7,'hash':_0x51983b[_0x4e3d22(0x17b)]};}async[a5_0x58691a(0x1b0)](){const _0x3ad93e=a5_0x58691a,_0x25613c=this,_0x5975cf=_0x25613c[_0x3ad93e(0x164)][_0x3ad93e(0x19e)];if(!_0x25613c[_0x3ad93e(0x164)][_0x3ad93e(0x1e4)]&&path[_0x3ad93e(0xbe)](_0x5975cf,'..')===_0x5975cf){const _0x501986=_0x3ad93e(0x117)+_0x3ad93e(0xd3)+_0x3ad93e(0x166)+_0x3ad93e(0xfd);_0x25613c[_0x3ad93e(0x10d)][_0x3ad93e(0x1c9)](_0x501986),_0x25613c['emit'](_0x3ad93e(0xe4),new Error(_0x501986));return;}let _0x280f0b;process['env'][_0x3ad93e(0x1ad)]&&(_0x280f0b=_0x3ad93e(0x12c)+process[_0x3ad93e(0xf9)][_0x3ad93e(0x1ad)]);let _0x27b3ed;try{_0x27b3ed=await Debuglet['findFiles'](_0x25613c[_0x3ad93e(0x164)],_0x280f0b),_0x27b3ed[_0x3ad93e(0x1c1)]['forEach'](_0x25613c[_0x3ad93e(0x10d)][_0x3ad93e(0x16e)]);}catch(_0x2bc758){_0x25613c[_0x3ad93e(0x10d)][_0x3ad93e(0x1c9)]('Error\x20scanning\x20the\x20filesystem.',_0x2bc758),_0x25613c['emit'](_0x3ad93e(0xe4),_0x2bc758);return;}let _0x1603a4;try{_0x1603a4=await SourceMapper[_0x3ad93e(0x148)](_0x27b3ed[_0x3ad93e(0x1b1)]);}catch(_0x29044a){_0x25613c[_0x3ad93e(0x10d)][_0x3ad93e(0x1c9)](_0x3ad93e(0x111),_0x29044a),_0x25613c[_0x3ad93e(0x1c6)](_0x3ad93e(0xe4),_0x29044a);return;}_0x25613c['v8debug']=debugapi['create'](_0x25613c[_0x3ad93e(0x10d)],_0x25613c[_0x3ad93e(0x164)],_0x27b3ed['jsStats'],_0x1603a4,this[_0x3ad93e(0x194)]);const _0x54c5cf=_0x280f0b||_0x27b3ed[_0x3ad93e(0x17b)];_0x25613c['logger'][_0x3ad93e(0xe2)]('Unique\x20ID\x20for\x20this\x20Application:\x20'+_0x54c5cf),utils[_0x3ad93e(0x124)](_0x25613c[_0x3ad93e(0x10d)]);let _0x426fc9;try{_0x426fc9=_0x25613c['config']['sourceContext']||await Debuglet[_0x3ad93e(0x157)]();}catch(_0x1793eb){_0x25613c[_0x3ad93e(0x10d)][_0x3ad93e(0x16e)](_0x3ad93e(0x158),_0x1793eb);}this['config']['capture']&&this[_0x3ad93e(0x164)][_0x3ad93e(0x120)]['maxDataSize']===0x0&&utils['satisfies'](process[_0x3ad93e(0x19c)],_0x3ad93e(0x11b))&&_0x25613c['logger'][_0x3ad93e(0x16e)](NODE_10_CIRC_REF_MESSAGE),_0x25613c[_0x3ad93e(0x10d)][_0x3ad93e(0x176)]('Starting\x20debuggee'),_0x25613c[_0x3ad93e(0x1a4)]=!![],_0x25613c[_0x3ad93e(0xcf)]=Debuglet[_0x3ad93e(0x1dc)](_0x54c5cf,_0x25613c[_0x3ad93e(0x164)],_0x426fc9,_0x25613c[_0x3ad93e(0x176)]['packageInfo'],_0x25613c[_0x3ad93e(0x10d)],undefined),_0x25613c['scheduleRegistration_'](0x0),_0x25613c[_0x3ad93e(0x1c6)]('started');}[a5_0x58691a(0x1da)](){const _0x29a2be=a5_0x58691a;if(Date[_0x29a2be(0x145)]()<this[_0x29a2be(0x151)]+PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS)return Promise[_0x29a2be(0x104)]();else{if(this[_0x29a2be(0x115)])return this[_0x29a2be(0x115)][_0x29a2be(0xd5)]();return this[_0x29a2be(0x115)]=new CachedPromise(),this[_0x29a2be(0xe6)][_0x29a2be(0xd5)]()[_0x29a2be(0x1b7)](()=>{this['scheduleBreakpointFetch_'](0x0,!![]);}),this['breakpointFetched'][_0x29a2be(0xd5)]();}}static['createDebuggeeMetadata'](_0x397ed4,_0x279f34){const _0x3d3be7=a5_0x58691a;var _0x334e8b,_0x4b1b51,_0x33660d;let _0x636595={'registration':{}};if((_0x334e8b=_0x397ed4[_0x3d3be7(0x175)])===null||_0x334e8b===void 0x0?void 0x0:_0x334e8b[_0x3d3be7(0x189)])try{_0x636595=JSON[_0x3d3be7(0x1b9)](fs['readFileSync'](_0x397ed4[_0x3d3be7(0x175)]['filename'],_0x3d3be7(0x131)));}catch(_0x4937b4){_0x279f34[_0x3d3be7(0x16e)](_0x3d3be7(0x1a9)+_0x397ed4['metadata']['filename'],_0x4937b4);}return _0x636595[_0x3d3be7(0x1ba)]=extend(!![],{},(_0x4b1b51=_0x397ed4['metadata'])===null||_0x4b1b51===void 0x0?void 0x0:_0x4b1b51[_0x3d3be7(0x1ba)],_0x636595[_0x3d3be7(0x1ba)]),((_0x33660d=_0x636595[_0x3d3be7(0x1ba)])===null||_0x33660d===void 0x0?void 0x0:_0x33660d['tags'])&&(_0x636595[_0x3d3be7(0x1ba)]['tags']=_0x636595['registration']['tags'][_0x3d3be7(0x1d1)](_0x461760=>typeof _0x461760==='string'?{'name':_0x461760}:_0x461760)),_0x636595;}static[a5_0x58691a(0x1dc)](_0x482a86,_0x20dacc,_0x48ff9e,_0x8fa4ef,_0x411965,_0x41a745){const _0x5b8a8f=a5_0x58691a,_0x57cc10=process['cwd'](),_0x4e9e38=path[_0x5b8a8f(0x147)](_0x57cc10,process[_0x5b8a8f(0xc0)][0x1]),_0x527e7c=_0x8fa4ef[_0x5b8a8f(0x19c)],_0x36f2eb={'main\x20script':_0x4e9e38,'process.title':process[_0x5b8a8f(0x19f)],'node\x20version':process[_0x5b8a8f(0x127)][_0x5b8a8f(0x125)],'V8\x20version':process[_0x5b8a8f(0x127)]['v8'],'agent.name':_0x8fa4ef[_0x5b8a8f(0x170)],'agent.version':_0x8fa4ef[_0x5b8a8f(0x19c)],'platform':Debuglet[_0x5b8a8f(0x11f)]()},_0x491fb8=_0x20dacc[_0x5b8a8f(0x192)];_0x491fb8&&(typeof _0x491fb8['service']===_0x5b8a8f(0x14b)&&_0x491fb8[_0x5b8a8f(0x1c8)]!=='default'&&(_0x36f2eb[_0x5b8a8f(0xdd)]=_0x491fb8[_0x5b8a8f(0x1c8)]),typeof _0x491fb8[_0x5b8a8f(0x19c)]===_0x5b8a8f(0x14b)&&(_0x36f2eb[_0x5b8a8f(0x19c)]=_0x491fb8['version']),typeof _0x491fb8[_0x5b8a8f(0xd2)]===_0x5b8a8f(0x14b)&&(_0x36f2eb[_0x5b8a8f(0xd8)]=_0x491fb8[_0x5b8a8f(0xd2)]));const _0x7b64f6=Debuglet[_0x5b8a8f(0x1cd)](_0x527e7c,_0x482a86,_0x48ff9e,_0x36f2eb),_0x1a2400=_0x41a745?new status_message_1[(_0x5b8a8f(0x1de))](status_message_1[_0x5b8a8f(0x1de)][_0x5b8a8f(0x143)],_0x41a745,!![]):undefined,_0x52e4da=Debuglet[_0x5b8a8f(0x195)](_0x20dacc,_0x411965),_0x3759a8={'uniquifier':_0x7b64f6,'agentVersion':_0x527e7c,'labels':{'metadata':JSON[_0x5b8a8f(0x12f)](_0x52e4da)},'statusMessage':_0x1a2400,'packageInfo':_0x8fa4ef,'host':os[_0x5b8a8f(0x126)](),'pid':process['pid']['toString'](),'cpuCoreCount':os[_0x5b8a8f(0xda)]()[_0x5b8a8f(0x1ea)],'systemTotalMemoryBytes':os[_0x5b8a8f(0x129)](),'agentOS':os[_0x5b8a8f(0xc5)]()};return _0x48ff9e&&(_0x3759a8[_0x5b8a8f(0x1a3)]=[_0x48ff9e]),new debuggee_1[(_0x5b8a8f(0x172))](_0x3759a8);}static['getPlatform'](){const _0x41765b=a5_0x58691a,{FUNCTION_NAME:_0x239ae9,FUNCTION_TARGET:_0x4e4342}=process['env'];if(_0x239ae9||_0x4e4342)return Platforms[_0x41765b(0x160)];return Platforms[_0x41765b(0x154)];}static[a5_0x58691a(0x162)](){const _0x479f1e=a5_0x58691a;return metadata[_0x479f1e(0xdf)]();}static async[a5_0x58691a(0x183)](){const _0x1c31fc=a5_0x58691a;return(await metadata[_0x1c31fc(0x174)](_0x1c31fc(0x15c)))['data'];}static async[a5_0x58691a(0x157)](){const _0x573d85=a5_0x58691a,_0x121446=await readFilep(_0x573d85(0xc7),'utf8');try{return JSON[_0x573d85(0x1b9)](_0x121446);}catch(_0xb59c17){throw new Error(_0x573d85(0xd4)+_0xb59c17);}}['scheduleRegistration_'](_0x38240b){const _0x64b262=a5_0x58691a,_0x158aff=this;function _0x59a774(_0x1ca750){const _0x6ec925=a5_0x2dab;var _0x10cdb4;_0x158aff[_0x6ec925(0x10d)][_0x6ec925(0x1c9)]('Failed\x20to\x20re-register\x20debuggee\x20'+((_0x10cdb4=_0x158aff[_0x6ec925(0xcf)])===null||_0x10cdb4===void 0x0?void 0x0:_0x10cdb4['id'])+':\x20'+_0x1ca750),_0x158aff[_0x6ec925(0x167)](Math['min']((_0x38240b+0x1)*0x2,_0x158aff[_0x6ec925(0x164)]['internal'][_0x6ec925(0xe9)]));}setTimeout(()=>{const _0xbe02aa=a5_0x2dab;if(!_0x158aff[_0xbe02aa(0x1a4)]){_0x59a774(new Error(_0xbe02aa(0x140)));return;}_0x158aff[_0xbe02aa(0x1db)][_0xbe02aa(0xd1)](_0x158aff[_0xbe02aa(0xcf)],(_0x53c750,_0x45abec)=>{const _0x5e15a2=_0xbe02aa;if(_0x53c750){_0x59a774(_0x53c750);return;}if(_0x45abec[_0x5e15a2(0xcf)]['isDisabled']){_0x59a774(new Error(_0x5e15a2(0x1a5))),_0x158aff[_0x5e15a2(0x1c6)]('remotelyDisabled');return;}_0x158aff[_0x5e15a2(0x10d)][_0x5e15a2(0xe2)](_0x5e15a2(0x18e),_0x45abec[_0x5e15a2(0xcf)]['id']),_0x158aff[_0x5e15a2(0xcf)]['id']=_0x45abec['debuggee']['id'],_0x158aff[_0x5e15a2(0x1c6)]('registered',_0x45abec[_0x5e15a2(0xcf)]['id']),_0x158aff[_0x5e15a2(0xe6)][_0x5e15a2(0x104)](),_0x158aff[_0x5e15a2(0x14a)][_0x5e15a2(0xfe)](_0x158aff)(_0x158aff['debuggee']['id'],()=>{const _0xdd902=_0x5e15a2;var _0x53d431;(_0x53d431=_0x158aff[_0xdd902(0x184)])===null||_0x53d431===void 0x0?void 0x0:_0x53d431[_0xdd902(0x12e)](_0x158aff['blocklistManager']),!_0x158aff[_0xdd902(0x198)]&&_0x158aff[_0xdd902(0x14f)](0x0,this['config'][_0xdd902(0x161)]);});});},_0x38240b*0x3e8)[_0x64b262(0xf5)]();}[a5_0x58691a(0x14f)](_0x27121f,_0x598327){const _0x5a6a2b=a5_0x58691a,_0x50f26b=this;!_0x598327&&(_0x50f26b['fetcherActive']=!![]),setTimeout(()=>{const _0x41ff32=a5_0x2dab;if(!_0x50f26b[_0x41ff32(0x1a4)])return;!_0x598327&&assert(_0x50f26b[_0x41ff32(0x198)]),_0x50f26b[_0x41ff32(0x10d)]['info'](_0x41ff32(0x1a2)),_0x50f26b['controller'][_0x41ff32(0xf2)](_0x50f26b[_0x41ff32(0xcf)],(_0x43ba29,_0x21cda3,_0x45c8cd)=>{const _0x5a4121=_0x41ff32;if(_0x43ba29){_0x50f26b[_0x5a4121(0x10d)][_0x5a4121(0x1c9)](_0x5a4121(0x156),_0x43ba29),_0x50f26b[_0x5a4121(0x198)]=![],_0x50f26b[_0x5a4121(0xc6)](),_0x50f26b[_0x5a4121(0x167)](_0x50f26b[_0x5a4121(0x164)][_0x5a4121(0x15b)][_0x5a4121(0x1ac)]);return;}_0x50f26b[_0x5a4121(0x10d)][_0x5a4121(0xe2)]('\x09'+_0x21cda3['status']+_0x5a4121(0xbf));if(!_0x45c8cd){_0x50f26b[_0x5a4121(0x10d)][_0x5a4121(0x1c9)](_0x5a4121(0x17d)),_0x50f26b['scheduleBreakpointFetch_'](_0x50f26b['config'][_0x5a4121(0x12d)],_0x598327);return;}if(_0x45c8cd[_0x5a4121(0xc9)]){_0x50f26b[_0x5a4121(0x10d)][_0x5a4121(0xe2)](_0x5a4121(0x1d6)),_0x50f26b[_0x5a4121(0x14f)](0x0,_0x598327);return;}_0x45c8cd['pipeLogs']&&_0x45c8cd['pipeLogs']!=_0x5a4121(0x1c3)&&(this[_0x5a4121(0x173)]['globalPipingStatus']=_0x45c8cd[_0x5a4121(0x185)]);_0x45c8cd['collectAndSendLog']&&_0x45c8cd[_0x5a4121(0xee)]!==_0x50f26b[_0x5a4121(0xee)]&&(_0x50f26b['collectLogRequestId']=_0x45c8cd['collectLogRequestId'],_0x50f26b[_0x5a4121(0x187)]?setTimeout(()=>_0x50f26b[_0x5a4121(0x1db)][_0x5a4121(0xc3)](_0x50f26b[_0x5a4121(0xcf)],_0x45c8cd[_0x5a4121(0xee)],_0x50f26b[_0x5a4121(0x187)])):_0x50f26b['logger'][_0x5a4121(0xe2)](_0x5a4121(0x159)+_0x45c8cd[_0x5a4121(0xee)]+_0x5a4121(0x133)+_0x5a4121(0xd0)));const _0x332943=(_0x45c8cd[_0x5a4121(0x163)]||[])['filter'](_0x43e9af=>{const _0x50a9aa=_0x5a4121,_0x24c6be=_0x43e9af[_0x50a9aa(0x13e)]||_0x50a9aa(0x17c);if(_0x50f26b[_0x50a9aa(0x1d3)][_0x43e9af['id']])return![];if(_0x24c6be!=='CAPTURE'&&_0x24c6be!==_0x50a9aa(0x1a7))return _0x50f26b[_0x50a9aa(0x10d)][_0x50a9aa(0x16e)](_0x50a9aa(0x11a),_0x24c6be),_0x43e9af[_0x50a9aa(0x1ec)]=new status_message_1[(_0x50a9aa(0x1de))](status_message_1['StatusMessage']['UNSPECIFIED'],BREAKPOINT_ACTION_MESSAGE,!![]),_0x50f26b[_0x50a9aa(0x15e)](_0x43e9af),![];return!![];});_0x50f26b[_0x5a4121(0x16a)](),_0x50f26b[_0x5a4121(0x1cc)](_0x332943),_0x50f26b[_0x5a4121(0x1c6)](_0x5a4121(0xc2),_0x332943['length']);Object[_0x5a4121(0x1e2)](_0x50f26b['activeBreakpointMap'])['length']&&_0x50f26b['logger'][_0x5a4121(0xe2)](formatBreakpoints('Active\x20Breakpoints:\x20',_0x50f26b[_0x5a4121(0xef)]));_0x50f26b[_0x5a4121(0x151)]=Date[_0x5a4121(0x145)]();_0x598327?_0x50f26b['breakpointFetched']&&(_0x50f26b[_0x5a4121(0x115)][_0x5a4121(0x104)](),_0x50f26b[_0x5a4121(0x115)]=null):_0x50f26b[_0x5a4121(0x14f)](0x0,_0x598327);return;});},_0x27121f*0x3e8)[_0x5a6a2b(0xf5)]();}[a5_0x58691a(0xc6)](){const _0x44a2cc=a5_0x58691a;this[_0x44a2cc(0xe6)]=new CachedPromise(),this[_0x44a2cc(0x115)]&&(this['breakpointFetched'][_0x44a2cc(0x104)](),this[_0x44a2cc(0x115)]=null);}[a5_0x58691a(0x1cc)](_0x37c484){const _0xff84f7=a5_0x58691a,_0x5a7780=this,_0x4f1df4=this[_0xff84f7(0x1d9)](_0x37c484);_0x37c484['length']&&_0x5a7780[_0xff84f7(0x10d)][_0xff84f7(0xe2)](formatBreakpoints('Server\x20breakpoints:\x20',_0x4f1df4)),_0x37c484[_0xff84f7(0x180)](_0x44c8a2=>{const _0xa5ebe=_0xff84f7;!_0x5a7780[_0xa5ebe(0x1d3)][_0x44c8a2['id']]&&!_0x5a7780[_0xa5ebe(0xef)][_0x44c8a2['id']]&&(_0x5a7780[_0xa5ebe(0x100)](_0x44c8a2,_0x30ed05=>{const _0x5f11d4=_0xa5ebe;_0x30ed05&&_0x5a7780[_0x5f11d4(0x196)](_0x44c8a2,!![],![]);}),this[_0xa5ebe(0x194)]['createPerBreakpointConditionQuota'](_0x44c8a2['id'])),_0x5a7780['quotaManager'][_0xa5ebe(0xc8)](_0x44c8a2['id'],_0x44c8a2['ignoreQuota']),_0x5a7780[_0xa5ebe(0x173)][_0xa5ebe(0x1b2)](_0x44c8a2['id'],_0x44c8a2['pipingStatus']);}),Debuglet[_0xff84f7(0x116)](this[_0xff84f7(0x1d3)],_0x4f1df4)[_0xff84f7(0x180)](_0x5797bc=>{const _0x13430d=_0xff84f7;delete _0x5a7780[_0x13430d(0x1d3)][_0x5797bc['id']];}),Debuglet[_0xff84f7(0x116)](this['activeBreakpointMap'],_0x4f1df4)[_0xff84f7(0x180)](_0x561971=>{this['removeBreakpoint_'](_0x561971,!![]);});}['convertBreakpointListToMap_'](_0x374fab){const _0x3dd4f8=a5_0x58691a,_0x514275={};return _0x374fab[_0x3dd4f8(0x180)](_0x4b1e9d=>{_0x514275[_0x4b1e9d['id']]=_0x4b1e9d;}),_0x514275;}[a5_0x58691a(0x16b)](_0x126ce3,_0x2868e8){const _0x4df98d=a5_0x58691a;this['logger'][_0x4df98d(0xe2)](_0x4df98d(0x18d),_0x126ce3['id']),this['quotaManager'][_0x4df98d(0xd7)](_0x126ce3['id']),delete this[_0x4df98d(0xef)][_0x126ce3['id']],_0x2868e8&&this[_0x4df98d(0x184)]&&this[_0x4df98d(0x184)][_0x4df98d(0xfa)](_0x126ce3,_0x49cdcf=>{const _0x37fe86=_0x4df98d;if(_0x49cdcf)this[_0x37fe86(0x10d)][_0x37fe86(0x1c9)](_0x49cdcf);});}['addBreakpoint_'](_0x5b078b,_0x2f1a8c){const _0x5ed327=a5_0x58691a,_0x108b95=this;if(!_0x108b95[_0x5ed327(0x164)][_0x5ed327(0x113)]&&(_0x5b078b[_0x5ed327(0x16c)]||_0x5b078b[_0x5ed327(0xcd)])){_0x108b95[_0x5ed327(0x10d)]['error'](ALLOW_EXPRESSIONS_MESSAGE),_0x5b078b['status']=new status_message_1['StatusMessage'](status_message_1[_0x5ed327(0x1de)][_0x5ed327(0x143)],ALLOW_EXPRESSIONS_MESSAGE,!![]),setImmediate(()=>{_0x2f1a8c(ALLOW_EXPRESSIONS_MESSAGE);});return;}if(utils['satisfies'](process[_0x5ed327(0x19c)],_0x5ed327(0x177))){const _0x1005d3=NODE_VERSION_MESSAGE;_0x108b95['logger']['error'](_0x1005d3),_0x5b078b[_0x5ed327(0x1ec)]=new status_message_1['StatusMessage'](status_message_1[_0x5ed327(0x1de)][_0x5ed327(0x143)],_0x1005d3,!![]),setImmediate(()=>{_0x2f1a8c(_0x1005d3);});return;}const _0x168eed=_0x5b078b[_0x5ed327(0x1eb)]?Number(_0x5b078b[_0x5ed327(0x1eb)][_0x5ed327(0xf4)]):Date[_0x5ed327(0x145)]()/0x3e8,_0x370af2=_0x5b078b[_0x5ed327(0xf0)]||_0x108b95[_0x5ed327(0x164)][_0x5ed327(0x122)];_0x5b078b[_0x5ed327(0x1c2)]=_0x168eed+_0x370af2,_0x108b95[_0x5ed327(0x184)]['set'](_0x5b078b,_0x375f08=>{const _0x5e16f1=_0x5ed327;if(_0x375f08){_0x2f1a8c(_0x375f08);return;}_0x108b95[_0x5e16f1(0x10d)][_0x5e16f1(0xe2)]('\x09successfully\x20added\x20breakpoint\x20\x20'+_0x5b078b['id']),_0x108b95['activeBreakpointMap'][_0x5b078b['id']]=_0x5b078b,_0x5b078b[_0x5e16f1(0x13e)]==='LOG'?_0x108b95[_0x5e16f1(0x184)][_0x5e16f1(0x1d2)](_0x5b078b,(_0x25804f,_0x41d5b9)=>{const _0x42f226=_0x5e16f1;var _0x51a5fb,_0x908937;const _0x250d64=_0x42f226(0x1e9)+Debuglet[_0x42f226(0x12b)](_0x25804f,_0x41d5b9),_0x1efc53=this[_0x42f226(0x194)][_0x42f226(0x119)](_0x250d64,_0x5b078b['id']);if(_0x1efc53){const _0xbc24bb=_0x1efc53[_0x42f226(0xec)],_0xda9ca=_0x1efc53['isOutOfQuota'];_0x108b95['pipingManager'][_0x42f226(0xf1)](_0x108b95['debuggee'],_0x5b078b['id'],_0xbc24bb,_0x5b078b['logLevel']);if(_0xda9ca)(_0x51a5fb=_0x108b95[_0x42f226(0x184)])===null||_0x51a5fb===void 0x0?void 0x0:_0x51a5fb[_0x42f226(0x10a)](),this[_0x42f226(0x1ae)]&&clearTimeout(this['nextEnableTimeout']),this[_0x42f226(0x1ae)]=setTimeout(()=>{const _0x2803c4=_0x42f226;var _0x5c929a;(_0x5c929a=_0x108b95[_0x2803c4(0x184)])===null||_0x5c929a===void 0x0?void 0x0:_0x5c929a[_0x2803c4(0x18f)](),_0x108b95[_0x2803c4(0x1ae)]=null;},_0x108b95[_0x42f226(0x164)][_0x42f226(0x109)][_0x42f226(0x19b)]*0x3e8);else(_0xbc24bb===null||_0xbc24bb===void 0x0?void 0x0:_0xbc24bb[_0x42f226(0x1ea)])==0x0&&((_0x908937=_0x108b95[_0x42f226(0x184)])===null||_0x908937===void 0x0?void 0x0:_0x908937[_0x42f226(0x10a)]());}},()=>{const _0x77fa1e=_0x5e16f1;return _0x108b95[_0x77fa1e(0x1d3)][_0x5b078b['id']];},_0xb4789c=>{const _0x41f43e=_0x5e16f1;if(_0xb4789c){_0x108b95[_0x41f43e(0x10d)]['error'](_0xb4789c),_0x2f1a8c(_0xb4789c);return;}}):_0x108b95[_0x5e16f1(0x184)][_0x5e16f1(0x1cf)](_0x5b078b,_0x4e9b60=>{const _0x5986da=_0x5e16f1;if(_0x4e9b60){setImmediate(()=>{const _0x479ebb=a5_0x2dab;_0x108b95['logger'][_0x479ebb(0x1c9)](_0x4e9b60),_0x2f1a8c(_0x4e9b60);});return;}_0x108b95['logger']['info'](_0x5986da(0xd6)+_0x5b078b['id']),_0x108b95['updateBreakpoint_'](_0x5b078b,_0x108b95[_0x5986da(0x184)][_0x5986da(0x1bd)](_0x5b078b['id'])<=0x0);}),_0x108b95['reportBreakpointAccepted_'](_0x5b078b);}),this[_0x5ed327(0x1c6)](_0x5ed327(0x168));}['updateBreakpoint_'](_0x26517f,_0x3502dc,_0x147d23=!![]){const _0xc13fd8=a5_0x58691a,_0x27491c=this;_0x27491c[_0xc13fd8(0x10d)][_0xc13fd8(0xe2)](_0xc13fd8(0x17f),_0x26517f['id']),_0x3502dc&&(_0x27491c[_0xc13fd8(0x1d3)][_0x26517f['id']]=!![],_0x27491c[_0xc13fd8(0x16b)](_0x26517f,_0x147d23)),_0x27491c[_0xc13fd8(0x1db)][_0xc13fd8(0x1a0)](_0x27491c[_0xc13fd8(0xcf)],extend(!![],{},_0x26517f));}['reportBreakpointAccepted_'](_0x39bd74){const _0x430527=a5_0x58691a,_0x4857bc=this;_0x4857bc[_0x430527(0x10d)][_0x430527(0x176)]('reporting\x20breakpoint\x20accepted\x20by\x20agent',_0x39bd74['id']);const _0x6ea3b4=extend(!![],{},_0x39bd74);_0x6ea3b4['isFinalState']=![],_0x6ea3b4[_0x430527(0x1ec)]=new status_message_1[(_0x430527(0x1de))](status_message_1[_0x430527(0x1de)][_0x430527(0x143)],'',![],!![]),_0x4857bc['controller']['enqueueBreakpointUpdate'](_0x4857bc['debuggee'],_0x6ea3b4);}[a5_0x58691a(0x15e)](_0x5effe0){const _0x2b9722=a5_0x58691a,_0x4968be=this;_0x4968be[_0x2b9722(0x1d3)][_0x5effe0['id']]=!![],_0x4968be['controller']['enqueueBreakpointUpdate'](_0x4968be[_0x2b9722(0xcf)],_0x5effe0);}['expireOldBreakpoints'](){const _0x520fe9=a5_0x58691a,_0x39c402=this,_0x3bc1c3=Date[_0x520fe9(0x145)]()/0x3e8;Object[_0x520fe9(0x179)](this['activeBreakpointMap'])['filter'](_0xd987a9=>_0xd987a9[_0x520fe9(0x1c2)]?_0xd987a9[_0x520fe9(0x1c2)]<_0x3bc1c3:![])[_0x520fe9(0x180)](_0x47b02e=>{const _0x27c184=_0x520fe9;_0x39c402[_0x27c184(0x10d)][_0x27c184(0xe2)](_0x27c184(0x1e7)+_0x47b02e['id']),_0x47b02e['status']={'description':{'format':_0x27c184(0x1e8)},'isError':!![],'refersTo':status_message_1[_0x27c184(0x1de)][_0x27c184(0x1ce)]},_0x39c402[_0x27c184(0x196)](_0x47b02e,!![]);});}[a5_0x58691a(0xeb)](){const _0x410aa3=a5_0x58691a;return this[_0x410aa3(0x1a4)];}['stop'](){const _0x23d169=a5_0x58691a;assert['ok'](this['running'],_0x23d169(0x178)),this[_0x23d169(0x10d)]['debug']('Stopping\x20Debuglet'),this[_0x23d169(0x1ae)]&&(clearTimeout(this[_0x23d169(0x1ae)]),this[_0x23d169(0x1ae)]=null),this[_0x23d169(0x1a4)]=![],this[_0x23d169(0x1c6)](_0x23d169(0x142));}[a5_0x58691a(0x14a)](_0x1ff9db,_0x347ecc){const _0x164fa1=a5_0x58691a,_0xa895bc=this;this[_0x164fa1(0x1db)][_0x164fa1(0x14a)](_0x1ff9db,(_0x15b032,_0x3f8a11,_0x4bb6e6)=>{const _0x5d60d9=_0x164fa1;if(_0x15b032)_0xa895bc['logger'][_0x5d60d9(0x16e)](_0x5d60d9(0x1ca),_0x15b032),_0xa895bc[_0x5d60d9(0x165)]=new dummy_blocklist_manager_1['DummyBlocklistManager'](!![]);else{const _0x59069f=_0x3f8a11['blacklist'],_0x5ab152=_0x3f8a11['blacklist_exception'];_0xa895bc[_0x5d60d9(0x165)]=new patterns_blocklist_manager_1['PatternsBlocklistManager'](_0x59069f,_0x5ab152,this[_0x5d60d9(0x164)]);}_0x347ecc();});}static[a5_0x58691a(0x116)](_0x271325,_0x41def8){const _0x127dce=a5_0x58691a,_0x5296e1=[];for(const _0x26bec1 in _0x271325){!_0x41def8[_0x26bec1]&&_0x5296e1[_0x127dce(0xff)](_0x271325[_0x26bec1]);}return _0x5296e1;}static[a5_0x58691a(0x12b)](_0xeeb850,_0x26ebe0){const _0x30f34f=a5_0x58691a,_0x310b09=Debuglet[_0x30f34f(0x17a)](_0xeeb850,_0x26ebe0['length']);for(let _0x17fe71=0x0;_0x17fe71<_0x310b09[_0x30f34f(0x1ea)];_0x17fe71++){if(!_0x310b09[_0x17fe71]['v'])continue;if(_0x310b09[_0x17fe71]['v']==='$$'){_0x310b09[_0x17fe71]='$';continue;}for(let _0xcdb556=0x0;_0xcdb556<_0x26ebe0[_0x30f34f(0x1ea)];_0xcdb556++){if(_0x310b09[_0x17fe71]['v']==='$'+_0xcdb556){_0x310b09[_0x17fe71]=_0x26ebe0[_0xcdb556];break;}}}return _0x310b09[_0x30f34f(0xbe)]('');}static['_tokenize'](_0x4d6c3e,_0x43ce6a){const _0x56af23=a5_0x58691a;let _0x592569=Debuglet['_delimit'](_0x4d6c3e,'$$');for(let _0xa26650=_0x43ce6a-0x1;_0xa26650>=0x0;_0xa26650--){const _0x4105c0=[];for(let _0x129a36=0x0;_0x129a36<_0x592569[_0x56af23(0x1ea)];_0x129a36++){_0x592569[_0x129a36]['v']?_0x4105c0['push'](_0x592569[_0x129a36]):_0x4105c0['push'](...Debuglet['_delimit'](_0x592569[_0x129a36],'$'+_0xa26650));}_0x592569=_0x4105c0;}return _0x592569;}static[a5_0x58691a(0x108)](_0x4d90b9,_0x586442){const _0x3fb928=a5_0x58691a,_0x52f8b5=_0x4d90b9[_0x3fb928(0x1b3)](_0x586442),_0x594a8a=[];_0x594a8a[_0x3fb928(0xff)](_0x52f8b5[0x0]);for(let _0x20dd84=0x1;_0x20dd84<_0x52f8b5[_0x3fb928(0x1ea)];_0x20dd84++){_0x594a8a[_0x3fb928(0xff)]({'v':_0x586442},_0x52f8b5[_0x20dd84]);}return _0x594a8a;}static[a5_0x58691a(0x1cd)](_0x548162,_0x1f32bc,_0x52a722,_0x51a4e0){const _0x2d424f=a5_0x58691a,_0x5edf22=_0x548162+_0x1f32bc+JSON['stringify'](_0x52a722)+JSON['stringify'](_0x51a4e0);return crypto['createHash'](_0x2d424f(0x14c))[_0x2d424f(0x1e3)](_0x5edf22)[_0x2d424f(0x1df)]('hex');}}exports[a5_0x58691a(0xe5)]=Debuglet;
|