browserstack-node-sdk 1.32.2 → 1.32.3
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/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/templates/nginx/helper.yaml +12 -12
- package/ats/src/templates/nginx/pods-and-services.yaml +35 -22
- package/ats/src/templates/nginx/private-pods-and-services.yaml +13 -8
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x49f4a0=a0_0x1680;(function(_0x3ac814,_0x39d31a){const _0x14f5f8=a0_0x1680,_0x46d382=_0x3ac814();while(!![]){try{const _0x2a4973=parseInt(_0x14f5f8(0x14b))/0x1*(-parseInt(_0x14f5f8(0x15b))/0x2)+parseInt(_0x14f5f8(0x218))/0x3*(-parseInt(_0x14f5f8(0x193))/0x4)+-parseInt(_0x14f5f8(0x1b3))/0x5+parseInt(_0x14f5f8(0x1c7))/0x6+-parseInt(_0x14f5f8(0x1c3))/0x7+-parseInt(_0x14f5f8(0x165))/0x8+-parseInt(_0x14f5f8(0x24a))/0x9*(-parseInt(_0x14f5f8(0x19e))/0xa);if(_0x2a4973===_0x39d31a)break;else _0x46d382['push'](_0x46d382['shift']());}catch(_0x2e6acd){_0x46d382['push'](_0x46d382['shift']());}}}(a0_0x4a9d,0x8f457));const fs=require('fs'),path=require('path'),yaml=require(a0_0x49f4a0(0x167)),awsSDK=require(a0_0x49f4a0(0x23f)),{logger}=require('../config/logger'),{CloudProvider}=require(a0_0x49f4a0(0x24c)),{sendAWSInfoToHST}=require(a0_0x49f4a0(0x17a)),{deleteClusterStack}=require(a0_0x49f4a0(0x22d)),{createClusterStack}=require(a0_0x49f4a0(0x1b2)),{deleteClusterAndDependencies,deleteRoutingDeps,deleteAgent}=require(a0_0x49f4a0(0x19b)),{createAutoscalerStack}=require('../utils/createAutoscalerStack'),{getDirForConfig,reportToGalactusAndSendToEDS}=require('../utils/utilityMethods'),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require(a0_0x49f4a0(0x177));class AWSCloudProvider extends CloudProvider{constructor(_0x42a590,_0x178cdf,_0x7e8344,_0x55bbbc){super(AWS,_0x42a590,_0x178cdf,_0x7e8344,_0x55bbbc);}[a0_0x49f4a0(0x168)](){const _0x5ebe91=a0_0x49f4a0,_0x4380cd={};_0x4380cd['WgoXM']=function(_0x588aef,_0x4aff5e){return _0x588aef===_0x4aff5e;},_0x4380cd[_0x5ebe91(0x238)]=_0x5ebe91(0x1ec),_0x4380cd['YWMmI']='EyHOb';const _0x33e647=_0x4380cd;if(!this[_0x5ebe91(0x1e7)]()){if(_0x33e647['WgoXM'](_0x33e647[_0x5ebe91(0x238)],_0x33e647[_0x5ebe91(0x229)])){const _0x304fc=_0x205ede['Stacks'][0x0][_0x5ebe91(0x1b7)][0x2][_0x5ebe91(0x12c)],_0x4731c0=_0x18a573[_0x5ebe91(0x1bc)][0x0][_0x5ebe91(0x1b7)][0x5]['OutputValue']['split'](',');_0x963f4b[_0x5ebe91(0x209)](_0x5ebe91(0x141)+_0x304fc+'\x20'),_0x596b66[_0x5ebe91(0x209)](_0x5ebe91(0x255)+_0x4731c0+'\x20'),_0x57a48a+=',VPC\x20=>\x20'+_0x304fc+_0x5ebe91(0x17b)+_0x4731c0+',\x20';}else this[_0x5ebe91(0x254)]();}}[a0_0x49f4a0(0x1e7)](){const _0x4726d2=a0_0x49f4a0,_0x5564ef={};_0x5564ef[_0x4726d2(0x1c8)]=function(_0x31cd2b,_0x327e6e){return _0x31cd2b===_0x327e6e;};const _0x58c0df=_0x5564ef;return _0x58c0df[_0x4726d2(0x1c8)](global_registry[_0x4726d2(0x1ae)],!![]);}['setConfig'](){const _0x4e3475=a0_0x49f4a0,_0x434e47={};_0x434e47[_0x4e3475(0x205)]=global_registry[_0x4e3475(0x163)],_0x434e47['accessKeyId']=global_registry[_0x4e3475(0x1d4)],_0x434e47[_0x4e3475(0x1b4)]=global_registry[_0x4e3475(0x18f)],awsSDK[_0x4e3475(0x13d)]['update'](_0x434e47),global_registry[_0x4e3475(0x1ae)]=!![];}async['fetchLocalCreds'](_0x594efe){const _0x46d264=a0_0x49f4a0;global_registry[_0x46d264(0x1d4)]=_0x594efe[this['cloudProviderName']][_0x46d264(0x199)],global_registry[_0x46d264(0x18f)]=_0x594efe[this[_0x46d264(0x1f4)]][_0x46d264(0x236)];}['getGridHostname'](_0xc3732b){const _0x1ccfb7=a0_0x49f4a0;return _0xc3732b[_0x1ccfb7(0x16c)][_0x1ccfb7(0x1d1)][_0x1ccfb7(0x204)][0x0][_0x1ccfb7(0x250)];}async['isBrowserstackCluster'](){const _0x2c4a8e=a0_0x49f4a0,_0x1d25dc={'IAATc':function(_0x459a88,_0x5249ab){return _0x459a88(_0x5249ab);},'wxuyB':function(_0x58b7ac,_0x3fd838){return _0x58b7ac===_0x3fd838;},'MVsPA':_0x2c4a8e(0x23b),'zBkyu':function(_0x58f161,_0x4abcb4){return _0x58f161!==_0x4abcb4;},'FVEZF':_0x2c4a8e(0x252),'FLQuX':_0x2c4a8e(0x137),'iTERC':'browserstack','cCbdw':_0x2c4a8e(0x23a),'aaSYh':_0x2c4a8e(0x14c)};try{if(_0x1d25dc[_0x2c4a8e(0x19d)](_0x1d25dc[_0x2c4a8e(0x24d)],_0x1d25dc[_0x2c4a8e(0x24d)])){const _0x583f58=await this[_0x2c4a8e(0x24b)]();if(_0x583f58[_0x2c4a8e(0x15a)]){if(_0x1d25dc[_0x2c4a8e(0x1bb)](_0x1d25dc['FVEZF'],_0x1d25dc[_0x2c4a8e(0x1dd)]))_0x1d25dc[_0x2c4a8e(0x20f)](_0x1aa50c,!![]);else{const _0x4d4a9a=_0x583f58[_0x2c4a8e(0x15a)][_0x2c4a8e(0x12f)];return _0x4d4a9a&&_0x1d25dc[_0x2c4a8e(0x19d)](_0x4d4a9a[_0x1d25dc[_0x2c4a8e(0x1a8)]]['toLowerCase'](),_0x1d25dc[_0x2c4a8e(0x1c9)]);}}}else return _0x1d25dc['wxuyB'](_0x455bb2[_0x2c4a8e(0x1ae)],!![]);}catch(_0x55f959){return _0x1d25dc['zBkyu'](_0x1d25dc[_0x2c4a8e(0x256)],_0x1d25dc[_0x2c4a8e(0x17d)])?![]:(_0x18f62b['push'](_0x412c0e),![]);}return![];}async[a0_0x49f4a0(0x1ea)](){const _0x2a4ab6=a0_0x49f4a0;return this[_0x2a4ab6(0x168)](),this[_0x2a4ab6(0x1c0)]();}async[a0_0x49f4a0(0x24b)](){const _0x127458=a0_0x49f4a0,_0x20982e={};_0x20982e[_0x127458(0x245)]='2017-11-01';const _0x4c5a7f=_0x20982e,_0x5e0268={};_0x5e0268['apiVersion']=_0x4c5a7f[_0x127458(0x245)];const _0xcdbd64=new awsSDK[(_0x127458(0x1ab))](_0x5e0268),_0x218346={};return _0x218346[_0x127458(0x16d)]=this[_0x127458(0x212)],_0xcdbd64[_0x127458(0x13e)](_0x218346)[_0x127458(0x258)]();}async[a0_0x49f4a0(0x1ee)](_0x1ed906){const _0x4fa18e=a0_0x49f4a0,_0x493095={};_0x493095[_0x4fa18e(0x1cc)]=_0x4fa18e(0x1dc),_0x493095[_0x4fa18e(0x228)]=_0x4fa18e(0x1df),_0x493095[_0x4fa18e(0x21b)]=_0x4fa18e(0x235),_0x493095[_0x4fa18e(0x171)]=_0x4fa18e(0x239);const _0x1a1ac=_0x493095,_0x4f6725=await fs[_0x4fa18e(0x18b)](path[_0x4fa18e(0x224)](__dirname,'..',_0x1a1ac['GYmuq'],_0x1a1ac[_0x4fa18e(0x228)]),_0x1a1ac[_0x4fa18e(0x21b)]),_0x4b3808=yaml[_0x4fa18e(0x147)](_0x4f6725);return _0x4b3808[_0x4fa18e(0x194)][_0x4fa18e(0x13f)]=_0x4b3808[_0x4fa18e(0x194)][_0x4fa18e(0x13f)][_0x4fa18e(0x1cf)](_0x1a1ac['WAfcp'],_0x1ed906),_0x4b3808;}async[a0_0x49f4a0(0x1cd)](_0x25c537){const _0x31c447=a0_0x49f4a0,_0x17b35d={};_0x17b35d[_0x31c447(0x251)]=_0x31c447(0x19a);const _0x4ff280=_0x17b35d,_0x1e3bd2={};_0x1e3bd2[_0x31c447(0x223)]=_0x4ff280[_0x31c447(0x251)];const _0x42dc1b=new awsSDK[(_0x31c447(0x1ab))](_0x1e3bd2),_0x1a30e4={};return _0x1a30e4[_0x31c447(0x212)]=this[_0x31c447(0x212)],_0x1a30e4[_0x31c447(0x149)]=_0x25c537,_0x42dc1b[_0x31c447(0x23c)](_0x1a30e4)[_0x31c447(0x258)]();}async[a0_0x49f4a0(0x1c0)](){const _0x2bc716=a0_0x49f4a0,_0x2a9408={'EqiWk':function(_0x52725b,_0x1e8c03){return _0x52725b(_0x1e8c03);},'Uklok':function(_0x43ec43,_0x36e1f2){return _0x43ec43===_0x36e1f2;},'cAQiK':_0x2bc716(0x20d),'muScg':'qSciI','JDXPj':function(_0x14354e,_0x322f02){return _0x14354e!==_0x322f02;},'OiFji':_0x2bc716(0x15f),'VhauP':_0x2bc716(0x1fd),'rSQUj':_0x2bc716(0x22e),'pJKha':_0x2bc716(0x18d),'jENIg':function(_0x134ff3,_0x4a0129){return _0x134ff3!==_0x4a0129;},'XgnSe':'DPfDb','jsjqP':'2017-11-01'};return new Promise((_0x172ac0,_0x186feb)=>{const _0xf46506=_0x2bc716,_0x90eeae={'AkxlO':function(_0x20d05e,_0x3e0af1){const _0x575288=a0_0x1680;return _0x2a9408[_0x575288(0x248)](_0x20d05e,_0x3e0af1);},'mZEgS':function(_0x25ba46,_0x24975c){return _0x2a9408['Uklok'](_0x25ba46,_0x24975c);},'kXAsj':_0x2a9408[_0xf46506(0x1a1)],'EfOoF':_0x2a9408[_0xf46506(0x18a)],'zLJNy':function(_0x3f2cf2,_0x54c6da){const _0xd1c098=_0xf46506;return _0x2a9408[_0xd1c098(0x1e5)](_0x3f2cf2,_0x54c6da);},'nPLEn':_0x2a9408['OiFji'],'iFdkv':_0x2a9408['VhauP'],'Cajuf':_0x2a9408[_0xf46506(0x1c4)],'EoKzZ':_0x2a9408['pJKha']};if(_0x2a9408[_0xf46506(0x1e8)](_0x2a9408[_0xf46506(0x13b)],_0x2a9408[_0xf46506(0x13b)])){const _0x569c7c={};_0x569c7c[_0xf46506(0x205)]=_0x11deb7[_0xf46506(0x163)],_0x569c7c['accessKeyId']=_0x59b7cd[_0xf46506(0x1d4)],_0x569c7c[_0xf46506(0x1b4)]=_0xcc35fd[_0xf46506(0x18f)],_0x50c2e1[_0xf46506(0x13d)][_0xf46506(0x1d6)](_0x569c7c),_0x12ba34[_0xf46506(0x1ae)]=!![];}else{const _0x5eea94={};_0x5eea94['apiVersion']=_0x2a9408[_0xf46506(0x203)];const _0x1d62d6=new awsSDK[(_0xf46506(0x1ab))](_0x5eea94);_0x1d62d6[_0xf46506(0x150)]()['promise']()[_0xf46506(0x246)](_0x5ecc1b=>{const _0x1926ce=_0xf46506,_0x2edec2={'xkkUZ':function(_0x12f755,_0xd072de){const _0x135c40=a0_0x1680;return _0x90eeae[_0x135c40(0x157)](_0x12f755,_0xd072de);}};if(_0x90eeae['mZEgS'](_0x90eeae[_0x1926ce(0x1be)],_0x90eeae[_0x1926ce(0x145)]))return _0x293e2e[_0x1926ce(0x16c)][_0x1926ce(0x1d1)][_0x1926ce(0x204)][0x0]['hostname'];else _0x5ecc1b[_0x1926ce(0x1fc)][_0x1926ce(0x225)](this[_0x1926ce(0x212)])&&(_0x90eeae[_0x1926ce(0x259)](_0x90eeae[_0x1926ce(0x243)],_0x90eeae[_0x1926ce(0x208)])?_0x90eeae['AkxlO'](_0x172ac0,!![]):(_0x7eaaaf[_0x1926ce(0x1fc)][_0x1926ce(0x225)](this[_0x1926ce(0x212)])&&_0x2edec2[_0x1926ce(0x1b6)](_0x1a5fab,!![]),_0x2edec2[_0x1926ce(0x1b6)](_0x166464,![]))),_0x90eeae[_0x1926ce(0x157)](_0x172ac0,![]);})['catch'](_0x2cc65a=>{const _0x510fd7=_0xf46506;if(_0x90eeae[_0x510fd7(0x234)](_0x90eeae[_0x510fd7(0x213)],_0x90eeae[_0x510fd7(0x175)]))return![];else logger[_0x510fd7(0x12e)](_0x2cc65a),_0x90eeae['AkxlO'](_0x186feb,_0x2cc65a);});}});}async[a0_0x49f4a0(0x22c)](_0x5b1b80,_0x1c8d17){const _0x29ce0d=a0_0x49f4a0,_0x3281fd={'TLHqR':function(_0x3761e8,_0x378308){return _0x3761e8(_0x378308);}},_0x40c1ea=this['cloudProviderName'][_0x29ce0d(0x1d3)](),_0x491253=await _0x3281fd[_0x29ce0d(0x202)](_0x5b1b80,_0x40c1ea+_0x29ce0d(0x1f1)),_0x380278=await _0x3281fd['TLHqR'](_0x5b1b80,_0x40c1ea+_0x29ce0d(0x180));global_registry[_0x29ce0d(0x1d4)]=_0x491253,global_registry['cloudProviderSecretKey']=_0x380278;const _0x133612={};return _0x133612[_0x29ce0d(0x199)]=_0x491253,_0x133612[_0x29ce0d(0x236)]=_0x380278,_0x1c8d17[_0x29ce0d(0x201)][AWS]=_0x133612,_0x1c8d17;}async['getKubeConfigData'](){const _0x2e5600=a0_0x49f4a0,_0x2d22a9={'HnZoI':function(_0x2681a7){return _0x2681a7();},'SDTIf':_0x2e5600(0x138),'kSoln':_0x2e5600(0x1dc),'ULPZv':'KubeConfigTemplate.yaml'},_0xf03837=_0x2d22a9[_0x2e5600(0x20b)](getDirForConfig),_0x2efd71=await this[_0x2e5600(0x24b)](),_0x29ee73=path[_0x2e5600(0x224)](_0xf03837,_0x2d22a9['SDTIf']),_0xa98b67='[ats]\x0aaws_access_key_id\x20=\x20'+global_registry[_0x2e5600(0x1d4)]+_0x2e5600(0x143)+global_registry[_0x2e5600(0x18f)];fs['writeFileSync'](_0x29ee73,_0xa98b67);let _0x4bc2af=await fs['readFileAsync'](path[_0x2e5600(0x224)](__dirname,'..',_0x2d22a9[_0x2e5600(0x249)],_0x2d22a9[_0x2e5600(0x14d)]));return _0x4bc2af=_0x4bc2af['toString'](),_0x4bc2af=_0x4bc2af['replace'](/<CLUSTER_NAME>/g,this['clusterName']),_0x4bc2af=_0x4bc2af[_0x2e5600(0x1cf)](/<CLUSTER_URL>/g,_0x2efd71[_0x2e5600(0x15a)][_0x2e5600(0x187)]),_0x4bc2af=_0x4bc2af['replace'](/<CERTIFICATE_DATA>/g,_0x2efd71[_0x2e5600(0x15a)]['certificateAuthority'][_0x2e5600(0x194)]),_0x4bc2af=_0x4bc2af['replace'](/<CLUSTER_REGION>/g,global_registry[_0x2e5600(0x163)]),_0x4bc2af=_0x4bc2af['replace'](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x4bc2af=_0x4bc2af[_0x2e5600(0x1cf)](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry[_0x2e5600(0x1d4)]),_0x4bc2af=_0x4bc2af['replace'](/<CLOUD_PROVIDER_SECRET>/g,global_registry[_0x2e5600(0x18f)]),_0x4bc2af=_0x4bc2af[_0x2e5600(0x1cf)](/<AWS_CONFIG_FILE_PATH>/g,_0x29ee73),_0x4bc2af;}async[a0_0x49f4a0(0x130)](_0x1d5b42=null,_0x1ee99d=null){const _0x15abe9=a0_0x49f4a0,_0x545965={'LkyIV':function(_0x1fc69c,_0x3f8af3){return _0x1fc69c(_0x3f8af3);},'EOhxE':function(_0x11959a,_0x252dd9){return _0x11959a(_0x252dd9);},'mFfbv':_0x15abe9(0x19a),'VPNcj':'Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','HMbvn':_0x15abe9(0x136),'smdnr':function(_0x546d5c,_0x26220f,_0x13c4a3,_0x18f048,_0xbc298b,_0x1865cf){return _0x546d5c(_0x26220f,_0x13c4a3,_0x18f048,_0xbc298b,_0x1865cf);},'VzyjB':_0x15abe9(0x24e),'bnhIB':function(_0x2e4e70,_0x387597){return _0x2e4e70===_0x387597;},'wMUzm':function(_0x1f6d6a,_0x119570){return _0x1f6d6a===_0x119570;},'GgLge':function(_0x2556f0,_0x1446dc){return _0x2556f0===_0x1446dc;},'pJYTB':'RpcQF'};_0x545965[_0x15abe9(0x1de)](sendAWSInfoToHST,this[_0x15abe9(0x237)]);const _0x3efeed={};_0x3efeed[_0x15abe9(0x1f2)]=WS_EVENTS[_0x15abe9(0x227)],_0x3efeed[_0x15abe9(0x1fb)]=_0x545965[_0x15abe9(0x158)],this[_0x15abe9(0x1ce)][_0x15abe9(0x1bd)](this['rws'],_0x3efeed),logger[_0x15abe9(0x209)](_0x545965[_0x15abe9(0x19c)]);const _0xbfbeaf=global_registry['minNodes'],_0x13e3ab=global_registry['maxNodes'],_0x212a11=await _0x545965['smdnr'](createClusterStack,this[_0x15abe9(0x212)],_0xbfbeaf,_0x13e3ab,_0x1d5b42,_0x1ee99d),_0x88eef8=_0x212a11[_0x15abe9(0x1bc)][0x0][_0x15abe9(0x1b7)][0x0]['OutputValue'][_0x15abe9(0x1a6)](','),_0x511ca4=_0x212a11[_0x15abe9(0x1bc)][0x0][_0x15abe9(0x1b7)][0x1][_0x15abe9(0x12c)],_0x3054d2=_0x212a11[_0x15abe9(0x1bc)][0x0][_0x15abe9(0x1b7)][0x3][_0x15abe9(0x12c)],_0x5a2372=_0x212a11[_0x15abe9(0x1bc)][0x0][_0x15abe9(0x1b7)][0x4]['OutputValue'];logger[_0x15abe9(0x209)](_0x545965[_0x15abe9(0x153)]),logger[_0x15abe9(0x209)](_0x15abe9(0x14f)+_0x3054d2+'\x20'),logger['info'](_0x15abe9(0x140)+_0x511ca4+'\x20'),logger[_0x15abe9(0x209)](_0x15abe9(0x178)+_0x88eef8+'\x20'),logger[_0x15abe9(0x209)](_0x15abe9(0x21a)+_0x5a2372+'\x20');let _0x40c90a=_0x15abe9(0x197)+_0x3054d2+_0x15abe9(0x1a5)+_0x511ca4+_0x15abe9(0x164)+_0x88eef8+_0x15abe9(0x182)+_0x5a2372+'\x20';if(_0x545965[_0x15abe9(0x215)](_0x1d5b42,null)&&_0x545965[_0x15abe9(0x172)](_0x1ee99d,null)){if(_0x545965[_0x15abe9(0x210)](_0x545965[_0x15abe9(0x20e)],_0x545965[_0x15abe9(0x20e)])){const _0x7bd3f7=_0x212a11[_0x15abe9(0x1bc)][0x0][_0x15abe9(0x1b7)][0x2]['OutputValue'],_0x10ae48=_0x212a11['Stacks'][0x0][_0x15abe9(0x1b7)][0x5][_0x15abe9(0x12c)][_0x15abe9(0x1a6)](',');logger[_0x15abe9(0x209)]('VPC\x20=>\x20'+_0x7bd3f7+'\x20'),logger['info'](_0x15abe9(0x255)+_0x10ae48+'\x20'),_0x40c90a+=_0x15abe9(0x1cb)+_0x7bd3f7+_0x15abe9(0x17b)+_0x10ae48+',\x20';}else{const _0x221a2c={};_0x221a2c[_0x15abe9(0x223)]=_0x545965[_0x15abe9(0x151)];const _0x27cb05=new _0x38db52[(_0x15abe9(0x1ab))](_0x221a2c);_0x27cb05[_0x15abe9(0x150)]()[_0x15abe9(0x258)]()['then'](_0x215cdc=>{const _0x7c8a90=_0x15abe9;_0x215cdc[_0x7c8a90(0x1fc)][_0x7c8a90(0x225)](this[_0x7c8a90(0x212)])&&_0x545965['LkyIV'](_0x4b38f2,!![]),_0x545965[_0x7c8a90(0x1de)](_0x4c1c82,![]);})[_0x15abe9(0x226)](_0x2cf727=>{const _0x3e8522=_0x15abe9;_0x55ddb4['error'](_0x2cf727),_0x545965[_0x3e8522(0x181)](_0xdca6b2,_0x2cf727);});}}const _0x2c990a={};_0x2c990a[_0x15abe9(0x1f2)]=WS_EVENTS['LOG'],_0x2c990a[_0x15abe9(0x1fb)]=_0x40c90a,this[_0x15abe9(0x1ce)][_0x15abe9(0x1bd)](this['rws'],_0x2c990a);}async[a0_0x49f4a0(0x240)](_0x194faf,_0x2cfa84){const _0x5e0830=a0_0x49f4a0,_0x20176a={'xsnLZ':function(_0x9b0471,_0x558fc4){return _0x9b0471(_0x558fc4);}};await _0x20176a[_0x5e0830(0x1e6)](deleteAgent,_0x194faf),await _0x20176a[_0x5e0830(0x1e6)](deleteRoutingDeps,_0x194faf),await _0x20176a['xsnLZ'](deleteClusterAndDependencies,_0x2cfa84);}async[a0_0x49f4a0(0x17c)](_0x116b16,_0x4aed24){const _0x382d39=a0_0x49f4a0,_0xd9ccc={'rNVVW':function(_0x3f7a27,_0x4a0ad5){return _0x3f7a27(_0x4a0ad5);},'RRGNS':function(_0x580481,_0x1ec4f7){return _0x580481(_0x1ec4f7);},'opZoN':function(_0x2f2f78,_0x18c5b3){return _0x2f2f78===_0x18c5b3;},'LxvYr':_0x382d39(0x137),'tuCar':_0x382d39(0x214),'AxAma':function(_0x47d379,_0x1a14a3){return _0x47d379!==_0x1a14a3;},'NimFQ':_0x382d39(0x220),'oWpOx':'JiyVw','fVtwF':'Authmap\x20already\x20exists.\x20Not\x20updating','iQpOf':_0x382d39(0x23d),'tfJKA':'VjYCO','YAxPu':function(_0x66d0f,_0x53987a){return _0x66d0f(_0x53987a);},'AjrKi':function(_0x489019,_0x444a0a){return _0x489019===_0x444a0a;},'lIrDz':'wVeov','JzxJg':function(_0x232c9c,_0x2042a7){return _0x232c9c!==_0x2042a7;},'qXFOt':function(_0x2e47f6,_0xc48a53){return _0x2e47f6!==_0xc48a53;},'WfmrN':_0x382d39(0x13c),'TzxaN':_0x382d39(0x12d),'PvKGs':function(_0x32022a,_0xa6d3dd,_0x1853a7,_0x20c55c,_0x191af8,_0xe2742a,_0x47c20f,_0x289aba){return _0x32022a(_0xa6d3dd,_0x1853a7,_0x20c55c,_0x191af8,_0xe2742a,_0x47c20f,_0x289aba);},'LTxap':_0x382d39(0x142),'eznwq':_0x382d39(0x253),'mQzQk':'warning','BtfVA':_0x382d39(0x244),'ASshT':_0x382d39(0x135),'jtyZa':_0x382d39(0x1d5),'Cavuu':_0x382d39(0x1f3),'FBrGK':_0x382d39(0x12e),'Sngqq':function(_0x2a0d84,_0x26eed6){return _0x2a0d84(_0x26eed6);},'mUIlN':_0x382d39(0x207)};let _0x22f880,_0x16955e;const _0x376203={};_0x376203[_0x382d39(0x1f2)]=WS_EVENTS[_0x382d39(0x227)],_0x376203[_0x382d39(0x1fb)]=_0xd9ccc[_0x382d39(0x1f6)],this[_0x382d39(0x1ce)]['sendEventToBackend'](this[_0x382d39(0x237)],_0x376203),logger['info'](_0xd9ccc[_0x382d39(0x1f6)]);try{if(_0xd9ccc[_0x382d39(0x1b0)](_0xd9ccc[_0x382d39(0x18e)],_0xd9ccc[_0x382d39(0x18e)])){const _0x3da907=await _0xd9ccc[_0x382d39(0x1b5)](createAutoscalerStack,this['clusterName']);_0x16955e=_0x3da907[_0x382d39(0x1bc)][0x0][_0x382d39(0x1b7)][0x2][_0x382d39(0x12c)];const _0x8acd37={};_0x8acd37['type']=WS_EVENTS['LOG'],_0x8acd37['message']='Autoscaler\x20Role\x20created.ARN:\x20'+_0x16955e+'\x20',this[_0x382d39(0x1ce)][_0x382d39(0x1bd)](this[_0x382d39(0x237)],_0x8acd37),logger[_0x382d39(0x209)](_0x382d39(0x16e)+_0x16955e+'\x20');}else _0x422139[_0x382d39(0x12e)](_0x3ab1fa),_0xd9ccc[_0x382d39(0x1b9)](_0x36cb58,_0x1cf4b0);}catch(_0x56fe65){if(_0xd9ccc[_0x382d39(0x242)](_0xd9ccc[_0x382d39(0x155)],_0xd9ccc[_0x382d39(0x155)])){if(_0xd9ccc['AxAma'](_0x56fe65[_0x382d39(0x1fb)][_0x382d39(0x1c2)](/already exists/),null)||_0xd9ccc['JzxJg'](_0x56fe65[_0x382d39(0x1fb)][_0x382d39(0x1c2)](/already exists/),undefined))_0xd9ccc[_0x382d39(0x133)](_0xd9ccc[_0x382d39(0x211)],_0xd9ccc[_0x382d39(0x233)])?(_0x22f880='Skipping\x20Autoscaler\x20due\x20to:\x20'+_0x56fe65[_0x382d39(0x1fb)],await _0xd9ccc[_0x382d39(0x241)](reportToGalactusAndSendToEDS,_0x4aed24,this[_0x382d39(0x237)],_0x22f880,messageTypes[_0x382d39(0x1db)],_0xd9ccc[_0x382d39(0x1b8)],_0xd9ccc[_0x382d39(0x1c6)],_0xd9ccc[_0x382d39(0x221)]),logger[_0x382d39(0x1eb)](_0x22f880)):(_0x42bf56['error'](_0x382d39(0x169)+_0xa2b762+_0x382d39(0x196)+_0x4e2f78[_0x382d39(0x163)]+'.\x20Please\x20Check\x20and\x20try\x20again'),_0xd9ccc[_0x382d39(0x1b9)](_0x54a53a,![]));else{if(_0xd9ccc[_0x382d39(0x242)](_0xd9ccc[_0x382d39(0x1ba)],_0xd9ccc[_0x382d39(0x1d7)]))return this['configureIfNotConfigured'](),this[_0x382d39(0x1c0)]();else{const _0x28d272=_0xd9ccc['jtyZa'][_0x382d39(0x1a6)]('|');let _0x51aeb0=0x0;while(!![]){switch(_0x28d272[_0x51aeb0++]){case'0':logger[_0x382d39(0x12e)](_0x22f880);continue;case'1':await _0xd9ccc[_0x382d39(0x241)](reportToGalactusAndSendToEDS,_0x4aed24,this[_0x382d39(0x237)],_0x22f880,messageTypes['ERROR'],_0xd9ccc[_0x382d39(0x1b8)],_0xd9ccc['Cavuu'],_0xd9ccc['FBrGK']);continue;case'2':process[_0x382d39(0x1da)](0x1);continue;case'3':_0x22f880=_0x382d39(0x16f)+_0x56fe65[_0x382d39(0x1fb)]+'.\x20Deleting\x20all\x20the\x20stacks';continue;case'4':await _0xd9ccc[_0x382d39(0x179)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;}break;}}}}else _0x20129f[_0x382d39(0x12e)](_0x382d39(0x1e4)+_0x1f6783+_0x382d39(0x196)+_0x5645eb[_0x382d39(0x163)]+_0x382d39(0x1ad)+_0xcbc502),_0xd9ccc[_0x382d39(0x247)](_0x3484eb,[![],[]]);}let _0x406867=await this[_0x382d39(0x1cd)](this[_0x382d39(0x212)]+_0x382d39(0x1ac));const _0x8202db=_0x406867[_0x382d39(0x24f)][_0x382d39(0x1f5)],_0x26ed9b=await this['createAuthConfigMap'](_0x8202db),_0x1c1d06={};return _0x1c1d06[_0x382d39(0x131)]=_0xd9ccc[_0x382d39(0x184)],_0x1c1d06[_0x382d39(0x1d8)]=_0x26ed9b,await _0x116b16[_0x382d39(0x1d9)](_0x1c1d06)[_0x382d39(0x226)](_0x41c633=>{const _0x563f61=_0x382d39;if(_0xd9ccc[_0x563f61(0x161)](_0xd9ccc[_0x563f61(0x192)],_0xd9ccc[_0x563f61(0x156)]))logger[_0x563f61(0x209)](_0xd9ccc[_0x563f61(0x1f7)]);else{const _0x131c62=_0x270c4a['cluster']['tags'];return _0x131c62&&_0xd9ccc[_0x563f61(0x1b0)](_0x131c62[_0xd9ccc[_0x563f61(0x1a3)]][_0x563f61(0x195)](),_0xd9ccc[_0x563f61(0x15e)]);}}),_0x16955e;}['isVPCPresent'](_0x51b77c){const _0x501fec=a0_0x49f4a0,_0xd45851={'jyhZn':function(_0x587c2c,_0x58e784){return _0x587c2c!==_0x58e784;},'FdxYl':'EadXn','jxMmu':_0x501fec(0x170),'VbikO':function(_0x3afa38,_0x3f76d1){return _0x3afa38(_0x3f76d1);},'CFAgO':_0x501fec(0x13a),'XbkCY':function(_0x1c1bf5,_0xd97918){return _0x1c1bf5===_0xd97918;},'oHggZ':'ukeqo','QhJMH':_0x501fec(0x21e),'UBZZB':function(_0xedf09f,_0xe708d6){return _0xedf09f(_0xe708d6);},'fCqCz':_0x501fec(0x19a),'bCyLx':_0x501fec(0x1e2),'LAOEc':_0x501fec(0x230),'Oeutc':_0x501fec(0x154)},_0x31b99c={};_0x31b99c['VpcIds']=[_0x51b77c];let _0x2a4c8c=_0x31b99c;return new Promise((_0xd7bbb3,_0x1d3ab3)=>{const _0x1906c9=_0x501fec,_0x1c6705={'JIBsM':_0xd45851['CFAgO'],'Cgcep':function(_0x2c9c29,_0x547800){const _0x1dbeeb=a0_0x1680;return _0xd45851[_0x1dbeeb(0x1a7)](_0x2c9c29,_0x547800);},'oEOKq':_0xd45851[_0x1906c9(0x186)],'YhkZv':_0xd45851[_0x1906c9(0x257)],'qHeBa':function(_0x1df532,_0x36059f){const _0x3c809a=_0x1906c9;return _0xd45851[_0x3c809a(0x14e)](_0x1df532,_0x36059f);},'aycaL':_0xd45851[_0x1906c9(0x23e)]};if(_0xd45851[_0x1906c9(0x188)](_0xd45851[_0x1906c9(0x21f)],_0xd45851['LAOEc'])){const _0x71b0a6={};_0x71b0a6[_0x1906c9(0x223)]=_0xd45851[_0x1906c9(0x152)],_0x71b0a6['region']=global_registry[_0x1906c9(0x163)];const _0x4afd9a=new awsSDK['EC2'](_0x71b0a6);_0x4afd9a[_0x1906c9(0x21c)](_0x2a4c8c)['promise']()[_0x1906c9(0x246)](_0x527f94=>{const _0x177a7d=_0x1906c9;_0x1c6705[_0x177a7d(0x19f)](_0x1c6705['oEOKq'],_0x1c6705['YhkZv'])?_0x48a9d3[_0x177a7d(0x209)](_0x1c6705[_0x177a7d(0x1b1)]):_0x1c6705[_0x177a7d(0x217)](_0xd7bbb3,!![]);})[_0x1906c9(0x226)](_0x33773a=>{const _0x445ed3=_0x1906c9;if(_0xd45851[_0x445ed3(0x188)](_0xd45851[_0x445ed3(0x160)],_0xd45851[_0x445ed3(0x1c5)]))logger['error']('Cannot\x20find\x20VPC\x20'+_0x51b77c+_0x445ed3(0x196)+global_registry[_0x445ed3(0x163)]+_0x445ed3(0x22a)),_0xd45851['VbikO'](_0xd7bbb3,![]);else{const _0xff425d={};_0xff425d[_0x445ed3(0x223)]=_0x1c6705[_0x445ed3(0x1a0)];const _0x5c5fde=new _0x18c217[(_0x445ed3(0x1ab))](_0xff425d),_0x26bbb4={};return _0x26bbb4[_0x445ed3(0x212)]=this[_0x445ed3(0x212)],_0x26bbb4[_0x445ed3(0x149)]=_0x555610,_0x5c5fde['describeNodegroup'](_0x26bbb4)[_0x445ed3(0x258)]();}});}else{const _0x5bc32f={};_0x5bc32f[_0x1906c9(0x223)]=_0x1c6705[_0x1906c9(0x1a0)];const _0x3a9121=new _0x36f0ef[(_0x1906c9(0x1ab))](_0x5bc32f),_0x557d6b={};return _0x557d6b[_0x1906c9(0x16d)]=this[_0x1906c9(0x212)],_0x3a9121[_0x1906c9(0x13e)](_0x557d6b)[_0x1906c9(0x258)]();}});}[a0_0x49f4a0(0x22f)](_0x215dc5,_0x5cac02){const _0x2970f7=a0_0x49f4a0,_0x3ea724={'GGRNK':function(_0x33ecfd,_0x1b755d){return _0x33ecfd===_0x1b755d;},'ofMJQ':_0x2970f7(0x231),'CKZIj':function(_0x3024c4,_0x3b7945){return _0x3024c4(_0x3b7945);},'OMmYa':_0x2970f7(0x154),'lKGzY':function(_0x535c6,_0x20d064){return _0x535c6!==_0x20d064;},'TMjVY':'CveLl','idKhZ':_0x2970f7(0x1e1),'uroIV':_0x2970f7(0x189),'foHvD':_0x2970f7(0x18c),'efgXh':_0x2970f7(0x206),'lvhZK':_0x2970f7(0x183),'YvJsz':'hnIkx','cGJWp':function(_0x3404af,_0x264a6b){return _0x3404af(_0x264a6b);},'xUCIM':_0x2970f7(0x1d0),'cQepR':_0x2970f7(0x1e3)},_0x5252fa={};_0x5252fa['Name']=_0x3ea724[_0x2970f7(0x134)],_0x5252fa[_0x2970f7(0x1f9)]=[_0x5cac02];const _0xd970a4={};_0xd970a4[_0x2970f7(0x1a4)]=[_0x5252fa];let _0x1819ec=_0xd970a4;return new Promise((_0x292367,_0x1486ef)=>{const _0x557cba=_0x2970f7,_0x2e6743={'pHgyq':function(_0x51995b,_0x4a78ae){const _0x2382b7=a0_0x1680;return _0x3ea724[_0x2382b7(0x185)](_0x51995b,_0x4a78ae);},'uUprY':_0x3ea724[_0x557cba(0x16a)],'INKaI':function(_0x71b088,_0xf50324){return _0x3ea724['CKZIj'](_0x71b088,_0xf50324);},'BPRMx':_0x3ea724[_0x557cba(0x219)],'NQvjT':function(_0x230075,_0x6872d2){const _0x4b608b=_0x557cba;return _0x3ea724[_0x4b608b(0x22b)](_0x230075,_0x6872d2);},'AGYZJ':_0x3ea724[_0x557cba(0x20a)],'shBqE':_0x3ea724[_0x557cba(0x148)],'fECUi':_0x3ea724[_0x557cba(0x139)],'FOrXN':function(_0x17fc51,_0x3009f9){const _0xe85d28=_0x557cba;return _0x3ea724[_0xe85d28(0x22b)](_0x17fc51,_0x3009f9);},'iLHvj':_0x3ea724[_0x557cba(0x1e0)],'yEZfD':_0x3ea724[_0x557cba(0x15c)],'gVKrR':_0x3ea724[_0x557cba(0x174)],'TNztD':function(_0x452129,_0x2fb84d){const _0x462c78=_0x557cba;return _0x3ea724[_0x462c78(0x22b)](_0x452129,_0x2fb84d);},'McEIo':_0x3ea724[_0x557cba(0x17e)],'dzAfb':function(_0x38f358,_0x67a56e){const _0x659bcc=_0x557cba;return _0x3ea724[_0x659bcc(0x1a2)](_0x38f358,_0x67a56e);}};if(_0x3ea724[_0x557cba(0x185)](_0x3ea724[_0x557cba(0x1f0)],_0x3ea724[_0x557cba(0x1f0)])){const _0x1b7463={};_0x1b7463[_0x557cba(0x223)]=_0x3ea724[_0x557cba(0x219)],_0x1b7463[_0x557cba(0x205)]=global_registry[_0x557cba(0x163)];const _0x2664c5=new awsSDK[(_0x557cba(0x1ed))](_0x1b7463);_0x2664c5[_0x557cba(0x1aa)](_0x1819ec)[_0x557cba(0x258)]()[_0x557cba(0x246)](_0xfc666e=>{const _0x35249=_0x557cba,_0x4ae50e={'vzyZs':function(_0x3d6370,_0x4067cd){return _0x2e6743['pHgyq'](_0x3d6370,_0x4067cd);},'eARWT':_0x2e6743[_0x35249(0x25a)],'Xoffj':function(_0x321faf,_0x3103b1){return _0x2e6743['INKaI'](_0x321faf,_0x3103b1);},'QYIps':_0x2e6743[_0x35249(0x14a)],'McKfC':function(_0x1b874c,_0x1b14fa){const _0x43c7f8=_0x35249;return _0x2e6743[_0x43c7f8(0x162)](_0x1b874c,_0x1b14fa);},'iHZqf':function(_0x5d26a6,_0x41927b){const _0x3692a4=_0x35249;return _0x2e6743[_0x3692a4(0x1af)](_0x5d26a6,_0x41927b);},'cqawa':_0x2e6743[_0x35249(0x16b)],'touZA':_0x2e6743[_0x35249(0x159)],'SfbGw':function(_0x136c83,_0x4d3311){const _0x134af8=_0x35249;return _0x2e6743[_0x134af8(0x1af)](_0x136c83,_0x4d3311);},'nczOm':_0x2e6743[_0x35249(0x146)],'NCnPi':function(_0xbc947b,_0x37158a){const _0x5416c1=_0x35249;return _0x2e6743[_0x5416c1(0x176)](_0xbc947b,_0x37158a);},'WfYBn':_0x2e6743[_0x35249(0x1ef)],'MespT':_0x2e6743['yEZfD']};if(_0x2e6743[_0x35249(0x1d2)](_0x2e6743[_0x35249(0x166)],_0x2e6743[_0x35249(0x166)])){const _0x2764a9=[],_0x3e377b=[];_0xfc666e[_0x35249(0x144)][_0x35249(0x1f8)](_0x323bae=>{const _0x30711d=_0x35249;if(_0x4ae50e[_0x30711d(0x1fa)](_0x4ae50e['eARWT'],_0x4ae50e[_0x30711d(0x222)]))_0x2764a9[_0x30711d(0x1fe)](_0x323bae[_0x30711d(0x200)]);else return _0x4037d6[_0x30711d(0x225)](_0x464de4)?!![]:(_0x5ce5ff[_0x30711d(0x1fe)](_0x2659f7),![]);});const _0x298b19=_0x215dc5[_0x35249(0x21d)](_0x390d4e=>{const _0x57cd13=_0x35249,_0x2f8104={'IQTSQ':_0x4ae50e[_0x57cd13(0x216)],'ikkGK':function(_0x5af733,_0x1443b7){const _0x4bea78=_0x57cd13;return _0x4ae50e[_0x4bea78(0x1a9)](_0x5af733,_0x1443b7);}};if(_0x4ae50e[_0x57cd13(0x17f)](_0x4ae50e[_0x57cd13(0x1bf)],_0x4ae50e[_0x57cd13(0x191)])){if(_0x2764a9['includes'](_0x390d4e)){if(_0x4ae50e['SfbGw'](_0x4ae50e[_0x57cd13(0x173)],_0x4ae50e[_0x57cd13(0x173)])){const _0x519326={'hVxGP':function(_0x12a5b2,_0x542b3f){const _0x452691=_0x57cd13;return _0x2f8104[_0x452691(0x1ca)](_0x12a5b2,_0x542b3f);},'ZgrsS':function(_0x7e5e81,_0x1d7b30){const _0x46e0a9=_0x57cd13;return _0x2f8104[_0x46e0a9(0x1ca)](_0x7e5e81,_0x1d7b30);}},_0x3eef3b={};_0x3eef3b[_0x57cd13(0x198)]=[_0x224b49];let _0x28107d=_0x3eef3b;return new _0x2455c8((_0x1c274c,_0x547e32)=>{const _0x6fe469=_0x57cd13,_0x15d099={};_0x15d099[_0x6fe469(0x223)]=_0x2f8104['IQTSQ'],_0x15d099[_0x6fe469(0x205)]=_0x99cd13[_0x6fe469(0x163)];const _0xba6a4b=new _0x19d718[(_0x6fe469(0x1ed))](_0x15d099);_0xba6a4b[_0x6fe469(0x21c)](_0x28107d)[_0x6fe469(0x258)]()[_0x6fe469(0x246)](_0x4032e1=>{const _0xbe3052=_0x6fe469;_0x519326[_0xbe3052(0x132)](_0x1c274c,!![]);})[_0x6fe469(0x226)](_0x248816=>{const _0x44950f=_0x6fe469;_0x54c35e[_0x44950f(0x12e)](_0x44950f(0x169)+_0x235508+_0x44950f(0x196)+_0x4898f1[_0x44950f(0x163)]+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x519326[_0x44950f(0x190)](_0x1c274c,![]);});});}else return!![];}else{if(_0x4ae50e[_0x57cd13(0x1c1)](_0x4ae50e['WfYBn'],_0x4ae50e['MespT']))return _0x3e377b[_0x57cd13(0x1fe)](_0x390d4e),![];else _0x4ae50e[_0x57cd13(0x20c)](_0x12f35c,!![]);}}else this[_0x57cd13(0x254)]();});_0x2e6743['INKaI'](_0x292367,[_0x298b19,_0x3e377b]);}else return!![];})['catch'](_0x16bd8d=>{const _0x4fa66a=_0x557cba;_0x2e6743[_0x4fa66a(0x15d)](_0x2e6743[_0x4fa66a(0x1e9)],_0x2e6743['McEIo'])?!this[_0x4fa66a(0x1e7)]()&&this[_0x4fa66a(0x254)]():(logger[_0x4fa66a(0x12e)](_0x4fa66a(0x1e4)+_0x215dc5+_0x4fa66a(0x196)+global_registry[_0x4fa66a(0x163)]+_0x4fa66a(0x1ad)+_0x16bd8d),_0x2e6743[_0x4fa66a(0x162)](_0x292367,[![],[]]));});}else{const _0x2c4f9d={'YkjBj':function(_0x460c23,_0x1403f6){return _0x2e6743['dzAfb'](_0x460c23,_0x1403f6);},'tYGEl':function(_0x5c5fad,_0x24fc4c){return _0x2e6743['INKaI'](_0x5c5fad,_0x24fc4c);}},_0x56afdd={};_0x56afdd[_0x557cba(0x223)]=_0x2e6743[_0x557cba(0x14a)],_0x56afdd[_0x557cba(0x205)]=_0x7ca004[_0x557cba(0x163)];const _0x51b8f8=new _0x51307e[(_0x557cba(0x1ed))](_0x56afdd);_0x51b8f8['describeVpcs'](_0x267a13)[_0x557cba(0x258)]()['then'](_0x4d6b7a=>{_0x2c4f9d['YkjBj'](_0x189316,!![]);})[_0x557cba(0x226)](_0x3d3016=>{const _0x23d84e=_0x557cba;_0x4837c3[_0x23d84e(0x12e)](_0x23d84e(0x169)+_0x5dd3a4+_0x23d84e(0x196)+_0x5beaed['clusterRegion']+_0x23d84e(0x22a)),_0x2c4f9d[_0x23d84e(0x1ff)](_0x4ff7f8,![]);});}});}}const a0_0xf62ff1={};a0_0xf62ff1['AWSCloudProvider']=AWSCloudProvider,module[a0_0x49f4a0(0x232)]=a0_0xf62ff1;function a0_0x1680(_0x1585d3,_0x4430f4){const _0x4a9d40=a0_0x4a9d();return a0_0x1680=function(_0x168090,_0x54d8f4){_0x168090=_0x168090-0x12c;let _0x5990d0=_0x4a9d40[_0x168090];return _0x5990d0;},a0_0x1680(_0x1585d3,_0x4430f4);}function a0_0x4a9d(){const _0x232ad6=['SqwAi','EC2','createAuthConfigMap','iLHvj','xUCIM','\x20ACCESS\x20KEY:\x20','type','autoscaler-creation-failed','cloudProviderName','nodeRole','iQpOf','fVtwF','forEach','Values','vzyZs','message','clusters','AKNJE','push','tYGEl','SubnetId','cloudProvider','TLHqR','jsjqP','ingress','region','wvSGp','kube-system','iFdkv','info','TMjVY','HnZoI','Xoffj','nLnaz','pJYTB','IAATc','GgLge','WfmrN','clusterName','Cajuf','browserstack','bnhIB','QYIps','qHeBa','3MaVdmb','OMmYa','NodeRole\x20=>\x20','nzWwe','describeVpcs','every','DKIRn','bCyLx','lcpui','mQzQk','eARWT','apiVersion','join','includes','catch','LOG','dTJgS','YWMmI','.\x20Please\x20Check\x20and\x20try\x20again','lKGzY','getUserInput','../utils/deleteStack','houju','isSubnetsValid','ywFIq','GTvrx','exports','TzxaN','mZEgS','utf-8','secret','rws','LGnHl','<ARN>','zIyXh','tVTYl','describeNodegroup','Creating\x20Autoscaler\x20Role','fCqCz','aws-sdk','deleteCluster','PvKGs','AjrKi','nPLEn','XIRsP','vMeHZ','then','RRGNS','EqiWk','kSoln','20536452qtCwFv','getClusterInfo','./CloudProvider','MVsPA','Following\x20resources\x20are\x20created:','nodegroup','hostname','eoQdu','BDQUJ','reportToGalactusAndSendToEDS','setConfig','Subnets\x20=>\x20','cCbdw','QhJMH','promise','zLJNy','uUprY','OutputValue','WQKjs','error','tags','setupNewCluster','namespace','hVxGP','qXFOt','cQepR','WmNYE','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','browserstack:managedBy','aws_credentials','uroIV','Authmap\x20already\x20exists.\x20Not\x20updating','XgnSe','veBNO','config','describeCluster','mapRoles','ClusterRole\x20=>\x20','VPC\x20=>\x20','create-grid-called','\x0aaws_secret_access_key\x20=\x20','Subnets','EfOoF','fECUi','load','idKhZ','nodegroupName','BPRMx','195131VKzXGM','CcVax','ULPZv','UBZZB','Cluster\x20=>\x20','listClusters','mFfbv','Oeutc','VzyjB','2016-11-15','lIrDz','oWpOx','AkxlO','VPNcj','shBqE','cluster','2ArHrPX','efgXh','TNztD','tuCar','MreXa','FdxYl','AxAma','INKaI','clusterRegion',',\x20SecurityGroups\x20=>\x20','2804704otYmmf','gVKrR','js-yaml','configureIfNotConfigured','Cannot\x20find\x20VPC\x20','ofMJQ','AGYZJ','status','name','Autoscaler\x20Role\x20created.ARN:\x20','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','jnSmV','WAfcp','wMUzm','nczOm','lvhZK','EoKzZ','FOrXN','../config/constants','SecurityGroups\x20=>\x20','Sngqq','../utils/hstUtils',',\x20Subnets\x20=>\x20','setupAutoscaler','aaSYh','YvJsz','iHZqf','\x20SECRET\x20KEY:\x20','EOhxE',',\x20NodeRole\x20=>\x20','KtLAm','mUIlN','GGRNK','oHggZ','endpoint','jyhZn','GlfWu','muScg','readFileAsync','ZcHAL','mDPMf','tfJKA','cloudProviderSecretKey','ZgrsS','touZA','NimFQ','1722188uAdRcK','data','toLowerCase','\x20in\x20region\x20','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','VpcIds','accessKey','2017-11-01','../utils/gridComponents','HMbvn','wxuyB','10yEINJm','Cgcep','aycaL','cAQiK','cGJWp','LxvYr','Filters',',\x20ClusterRole\x20=>\x20','split','XbkCY','FLQuX','McKfC','describeSubnets','EKS','-NodeGroup','.\x20Error:\x20','awsConfigSet','NQvjT','opZoN','JIBsM','../utils/createClusterStack','3145995yFyxPj','secretAccessKey','YAxPu','xkkUZ','Outputs','LTxap','rNVVW','BtfVA','zBkyu','Stacks','sendEventToBackend','kXAsj','cqawa','checkClusterCreated','NCnPi','match','6553267iTqyHF','rSQUj','jxMmu','eznwq','5079942lFbrUI','TewBk','iTERC','ikkGK',',VPC\x20=>\x20','GYmuq','getNodeGroupInfo','webSocketUtils','replace','bBSfY','loadBalancer','pHgyq','toUpperCase','cloudProviderAccessKey','3|1|0|4|2','update','ASshT','body','createNamespacedConfigMap','exit','WARNING','templates','FVEZF','LkyIV','aws-auth-cm.yaml','foHvD','KJJgR','mbTCA','vpc-id','Cannot\x20find\x20subnets\x20','JDXPj','xsnLZ','isConfigured','jENIg','McEIo','isClusterPresent','warn'];a0_0x4a9d=function(){return _0x232ad6;};return a0_0x4a9d();}
|
|
1
|
+
const a0_0x128086=a0_0x1f10;function a0_0x1f10(_0x130c53,_0x597aaa){const _0x1c2643=a0_0x1c26();return a0_0x1f10=function(_0x1f10fc,_0x33ec3f){_0x1f10fc=_0x1f10fc-0x9e;let _0xd92ee7=_0x1c2643[_0x1f10fc];return _0xd92ee7;},a0_0x1f10(_0x130c53,_0x597aaa);}(function(_0x24d11c,_0x53ffd0){const _0x245e51=a0_0x1f10,_0x7f7f16=_0x24d11c();while(!![]){try{const _0x277b03=-parseInt(_0x245e51(0x182))/0x1+-parseInt(_0x245e51(0x17a))/0x2*(-parseInt(_0x245e51(0x196))/0x3)+parseInt(_0x245e51(0x132))/0x4*(parseInt(_0x245e51(0x1be))/0x5)+parseInt(_0x245e51(0x16a))/0x6*(-parseInt(_0x245e51(0x183))/0x7)+parseInt(_0x245e51(0x18b))/0x8+parseInt(_0x245e51(0xba))/0x9*(parseInt(_0x245e51(0x1aa))/0xa)+parseInt(_0x245e51(0x1b8))/0xb*(-parseInt(_0x245e51(0x191))/0xc);if(_0x277b03===_0x53ffd0)break;else _0x7f7f16['push'](_0x7f7f16['shift']());}catch(_0x5e30d9){_0x7f7f16['push'](_0x7f7f16['shift']());}}}(a0_0x1c26,0x65e5a));const fs=require('fs'),path=require(a0_0x128086(0x1b6)),yaml=require(a0_0x128086(0x11b)),awsSDK=require('aws-sdk'),{logger}=require(a0_0x128086(0x9e)),{CloudProvider}=require('./CloudProvider'),{sendAWSInfoToHST}=require('../utils/hstUtils'),{deleteClusterStack}=require(a0_0x128086(0x125)),{createClusterStack}=require(a0_0x128086(0x13d)),{deleteClusterAndDependencies,deleteRoutingDeps,deleteAgent}=require(a0_0x128086(0x192)),{createAutoscalerStack}=require(a0_0x128086(0x104)),{getDirForConfig,reportToGalactusAndSendToEDS}=require(a0_0x128086(0x13b)),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require(a0_0x128086(0x176));class AWSCloudProvider extends CloudProvider{constructor(_0x1caa34,_0x258ed3,_0xc6875d,_0x2c7205){super(AWS,_0x1caa34,_0x258ed3,_0xc6875d,_0x2c7205);}[a0_0x128086(0x1b9)](){const _0x4066a2=a0_0x128086,_0x5afc85={};_0x5afc85[_0x4066a2(0xa6)]=function(_0x5dd053,_0x4961e5){return _0x5dd053===_0x4961e5;},_0x5afc85[_0x4066a2(0xcb)]=_0x4066a2(0xeb);const _0x3d6d69=_0x5afc85;!this[_0x4066a2(0xec)]()&&(_0x3d6d69[_0x4066a2(0xa6)](_0x3d6d69[_0x4066a2(0xcb)],_0x3d6d69[_0x4066a2(0xcb)])?this[_0x4066a2(0xa0)]():_0x1f3dfa[_0x4066a2(0xb2)](_0x580c53[_0x4066a2(0xfc)]));}[a0_0x128086(0xec)](){const _0x860238=a0_0x128086,_0x43b543={};_0x43b543[_0x860238(0xe3)]=function(_0x36aedb,_0x39b45f){return _0x36aedb===_0x39b45f;};const _0x2af04c=_0x43b543;return _0x2af04c['omxVI'](global_registry[_0x860238(0x134)],!![]);}['setConfig'](){const _0x2d98a9=a0_0x128086,_0x343375={};_0x343375[_0x2d98a9(0xae)]=global_registry[_0x2d98a9(0xdf)],_0x343375[_0x2d98a9(0x1a7)]=global_registry[_0x2d98a9(0x1b4)],_0x343375[_0x2d98a9(0x10e)]=global_registry[_0x2d98a9(0x164)],awsSDK['config'][_0x2d98a9(0x10c)](_0x343375),global_registry[_0x2d98a9(0x134)]=!![];}async[a0_0x128086(0xdb)](_0x31abd6){const _0x217e94=a0_0x128086;global_registry[_0x217e94(0x1b4)]=_0x31abd6[this['cloudProviderName']][_0x217e94(0x9f)],global_registry['cloudProviderSecretKey']=_0x31abd6[this[_0x217e94(0xf8)]][_0x217e94(0x121)];}[a0_0x128086(0x188)](_0x3c7d0d){const _0x13b932=a0_0x128086;return _0x3c7d0d['status'][_0x13b932(0x135)][_0x13b932(0xe0)][0x0][_0x13b932(0x12d)];}async[a0_0x128086(0x158)](){const _0x3efa05=a0_0x128086,_0x58a335={'kAyyu':function(_0x4d7ffe,_0x31cdfa){return _0x4d7ffe(_0x31cdfa);},'IMMov':_0x3efa05(0x1ab),'mTVeu':function(_0x23040d,_0x210969){return _0x23040d===_0x210969;},'tVrvI':_0x3efa05(0x112),'mEUpW':function(_0xc131c,_0x18360c){return _0xc131c===_0x18360c;},'CsFRh':_0x3efa05(0xac),'tNjPE':_0x3efa05(0x109),'ZExGj':_0x3efa05(0x16f),'fkJMU':'browserstack','QGmGx':_0x3efa05(0x142)};try{if(_0x58a335[_0x3efa05(0x157)](_0x58a335['tVrvI'],_0x58a335[_0x3efa05(0x12c)])){const _0x15b25b=await this['getClusterInfo']();if(_0x15b25b['cluster']){if(_0x58a335['mEUpW'](_0x58a335[_0x3efa05(0x110)],_0x58a335[_0x3efa05(0x144)])){const _0x1897bc={};_0x1897bc[_0x3efa05(0x166)]=_0x58a335['IMMov'],_0x1897bc[_0x3efa05(0xae)]=_0x13599f['clusterRegion'];const _0x165650=new _0x519c3a[(_0x3efa05(0x11f))](_0x1897bc);_0x165650[_0x3efa05(0x14f)](_0x6fa3d7)[_0x3efa05(0xc4)]()[_0x3efa05(0x10a)](_0x18cf29=>{_0x58a335['kAyyu'](_0x13f5b0,!![]);})['catch'](_0x2776c6=>{const _0x82b459=_0x3efa05;_0x4eddce['error']('Cannot\x20find\x20VPC\x20'+_0x3ea1e2+_0x82b459(0xd6)+_0x1a0122[_0x82b459(0xdf)]+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x58a335['kAyyu'](_0x264581,![]);});}else{const _0x3cdd7d=_0x15b25b[_0x3efa05(0xd0)][_0x3efa05(0x150)];return _0x3cdd7d&&_0x58a335[_0x3efa05(0x127)](_0x3cdd7d[_0x58a335[_0x3efa05(0x1a3)]][_0x3efa05(0x1a1)](),_0x58a335[_0x3efa05(0x124)]);}}}else _0x58a335['kAyyu'](_0x13a654,!![]);}catch(_0x9485d8){return _0x58a335['mTVeu'](_0x58a335[_0x3efa05(0x193)],_0x58a335[_0x3efa05(0x193)])?![]:![];}return![];}async[a0_0x128086(0x143)](){const _0x71af6a=a0_0x128086;return this[_0x71af6a(0x1b9)](),this[_0x71af6a(0x185)]();}async[a0_0x128086(0x13c)](){const _0x1d4dd0=a0_0x128086,_0x4dd4f5={};_0x4dd4f5[_0x1d4dd0(0x1b2)]='2017-11-01';const _0x11a1dc=_0x4dd4f5,_0x5bbb47={};_0x5bbb47[_0x1d4dd0(0x166)]=_0x11a1dc[_0x1d4dd0(0x1b2)];const _0x170828=new awsSDK[(_0x1d4dd0(0x126))](_0x5bbb47),_0x2a0e58={};return _0x2a0e58[_0x1d4dd0(0x10b)]=this['clusterName'],_0x170828['describeCluster'](_0x2a0e58)[_0x1d4dd0(0xc4)]();}async[a0_0x128086(0x10d)](_0x45ee3e){const _0x249dd7=a0_0x128086,_0x22a130={};_0x22a130[_0x249dd7(0xee)]=_0x249dd7(0x137),_0x22a130[_0x249dd7(0x178)]=_0x249dd7(0xc9),_0x22a130[_0x249dd7(0x180)]=_0x249dd7(0x15a),_0x22a130[_0x249dd7(0x1b7)]='<ARN>';const _0x7a3cef=_0x22a130,_0x5da9f1=await fs[_0x249dd7(0x174)](path[_0x249dd7(0x16e)](__dirname,'..',_0x7a3cef[_0x249dd7(0xee)],_0x7a3cef['blEVw']),_0x7a3cef[_0x249dd7(0x180)]),_0x2ae510=yaml[_0x249dd7(0x111)](_0x5da9f1);return _0x2ae510[_0x249dd7(0xe5)][_0x249dd7(0x197)]=_0x2ae510['data'][_0x249dd7(0x197)][_0x249dd7(0x15e)](_0x7a3cef[_0x249dd7(0x1b7)],_0x45ee3e),_0x2ae510;}async[a0_0x128086(0xbe)](_0x9b4e96){const _0x31ea1e=a0_0x128086,_0x31ffeb={};_0x31ffeb['ErDzD']=_0x31ea1e(0x1a2);const _0x33c721=_0x31ffeb,_0x30a125={};_0x30a125[_0x31ea1e(0x166)]=_0x33c721['ErDzD'];const _0x139492=new awsSDK[(_0x31ea1e(0x126))](_0x30a125),_0x509a4e={};return _0x509a4e[_0x31ea1e(0x177)]=this['clusterName'],_0x509a4e[_0x31ea1e(0xd8)]=_0x9b4e96,_0x139492[_0x31ea1e(0x163)](_0x509a4e)['promise']();}async[a0_0x128086(0x185)](){const _0x605869=a0_0x128086,_0x5b6d5a={'PCbOk':function(_0x554581,_0x3226b5){return _0x554581!==_0x3226b5;},'Lukyi':'srNGX','GizQC':function(_0x240e53,_0x386984){return _0x240e53!==_0x386984;},'CvvST':_0x605869(0xc2),'dXpAp':function(_0x279b48,_0x374540){return _0x279b48(_0x374540);},'CrfaR':function(_0x3705be,_0x2f4599){return _0x3705be===_0x2f4599;},'ZYaSC':_0x605869(0x153),'QqFlz':function(_0x44d2fb,_0x5728ae){return _0x44d2fb(_0x5728ae);},'uByFh':_0x605869(0x105),'SVUrH':_0x605869(0x1a2)};return new Promise((_0x129613,_0x505c6b)=>{const _0x147b5c=_0x605869,_0x429f9c={'ihFNu':function(_0x2491ec,_0x400465){const _0x3c7ddd=a0_0x1f10;return _0x5b6d5a[_0x3c7ddd(0xda)](_0x2491ec,_0x400465);},'hMVYy':_0x5b6d5a[_0x147b5c(0x103)],'BmTYN':function(_0x54170e,_0x55373b){const _0x570899=_0x147b5c;return _0x5b6d5a[_0x570899(0xb8)](_0x54170e,_0x55373b);}};if(_0x5b6d5a[_0x147b5c(0xda)](_0x5b6d5a['uByFh'],_0x5b6d5a[_0x147b5c(0xb9)])){const _0x44fffb={};_0x44fffb[_0x147b5c(0x166)]=_0x5b6d5a[_0x147b5c(0xbc)];const _0xeecdaf=new awsSDK[(_0x147b5c(0x126))](_0x44fffb);_0xeecdaf[_0x147b5c(0x1a6)]()[_0x147b5c(0xc4)]()[_0x147b5c(0x10a)](_0x51e23d=>{const _0x159c88=_0x147b5c;if(_0x5b6d5a[_0x159c88(0x138)](_0x5b6d5a[_0x159c88(0xc6)],_0x5b6d5a['Lukyi']))return _0x563059[_0x159c88(0xd4)][_0x159c88(0x135)][_0x159c88(0xe0)][0x0][_0x159c88(0x12d)];else _0x51e23d[_0x159c88(0xcc)]['includes'](this['clusterName'])&&(_0x5b6d5a[_0x159c88(0x115)](_0x5b6d5a[_0x159c88(0x165)],_0x5b6d5a[_0x159c88(0x165)])?this[_0x159c88(0xa0)]():_0x5b6d5a['dXpAp'](_0x129613,!![])),_0x5b6d5a[_0x159c88(0xc3)](_0x129613,![]);})[_0x147b5c(0xce)](_0x2ec79a=>{const _0x12f50b=_0x147b5c;if(_0x429f9c[_0x12f50b(0x12a)](_0x429f9c[_0x12f50b(0x139)],_0x429f9c[_0x12f50b(0x139)]))logger[_0x12f50b(0x17c)](_0x2ec79a),_0x429f9c['BmTYN'](_0x505c6b,_0x2ec79a);else return this[_0x12f50b(0x1b9)](),this[_0x12f50b(0x185)]();});}else return!![];});}async['getUserInput'](_0x4c327c,_0x44e61d){const _0x3487c5=a0_0x128086,_0x41a72e={'uCHPq':function(_0x1e5d3b,_0x38941d){return _0x1e5d3b(_0x38941d);},'qmbUE':function(_0x34530c,_0x1eec7){return _0x34530c(_0x1eec7);}},_0xf1287e=this[_0x3487c5(0xf8)][_0x3487c5(0xd5)](),_0x496c90=await _0x41a72e['uCHPq'](_0x4c327c,_0xf1287e+'\x20ACCESS\x20KEY:\x20'),_0xc547bf=await _0x41a72e[_0x3487c5(0x199)](_0x4c327c,_0xf1287e+'\x20SECRET\x20KEY:\x20');global_registry[_0x3487c5(0x1b4)]=_0x496c90,global_registry[_0x3487c5(0x164)]=_0xc547bf;const _0x197269={};return _0x197269[_0x3487c5(0x9f)]=_0x496c90,_0x197269[_0x3487c5(0x121)]=_0xc547bf,_0x44e61d[_0x3487c5(0xcd)][AWS]=_0x197269,_0x44e61d;}async[a0_0x128086(0x140)](){const _0x59985f=a0_0x128086,_0x3fda78={'JAiWt':function(_0x536c02){return _0x536c02();},'ZOxjj':_0x59985f(0x16c),'EEWqx':_0x59985f(0x137),'gtBFW':'KubeConfigTemplate.yaml'},_0x8a142=_0x3fda78[_0x59985f(0x11c)](getDirForConfig),_0x5de189=await this[_0x59985f(0x13c)](),_0xbbf9dc=path[_0x59985f(0x16e)](_0x8a142,_0x3fda78[_0x59985f(0x1bc)]),_0x62b9ab=_0x59985f(0x17e)+global_registry[_0x59985f(0x1b4)]+_0x59985f(0x155)+global_registry['cloudProviderSecretKey'];fs[_0x59985f(0x131)](_0xbbf9dc,_0x62b9ab);let _0x5bbba3=await fs[_0x59985f(0x174)](path[_0x59985f(0x16e)](__dirname,'..',_0x3fda78[_0x59985f(0xb5)],_0x3fda78['gtBFW']));return _0x5bbba3=_0x5bbba3[_0x59985f(0xa2)](),_0x5bbba3=_0x5bbba3[_0x59985f(0x15e)](/<CLUSTER_NAME>/g,this[_0x59985f(0x177)]),_0x5bbba3=_0x5bbba3['replace'](/<CLUSTER_URL>/g,_0x5de189['cluster'][_0x59985f(0xd9)]),_0x5bbba3=_0x5bbba3[_0x59985f(0x15e)](/<CERTIFICATE_DATA>/g,_0x5de189[_0x59985f(0xd0)][_0x59985f(0xf2)][_0x59985f(0xe5)]),_0x5bbba3=_0x5bbba3[_0x59985f(0x15e)](/<CLUSTER_REGION>/g,global_registry['clusterRegion']),_0x5bbba3=_0x5bbba3[_0x59985f(0x15e)](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x5bbba3=_0x5bbba3['replace'](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry['cloudProviderAccessKey']),_0x5bbba3=_0x5bbba3[_0x59985f(0x15e)](/<CLOUD_PROVIDER_SECRET>/g,global_registry['cloudProviderSecretKey']),_0x5bbba3=_0x5bbba3['replace'](/<AWS_CONFIG_FILE_PATH>/g,_0xbbf9dc),_0x5bbba3;}async[a0_0x128086(0xf7)](_0x329ad0=null,_0x579ec8=null){const _0x3d4661=a0_0x128086,_0x2ddbdb={'rrxXj':function(_0x3dbd1d,_0x145161){return _0x3dbd1d(_0x145161);},'EvmVS':_0x3d4661(0x1ab),'fHJjH':function(_0x3a1202,_0x44fdd9){return _0x3a1202(_0x44fdd9);},'FknrI':_0x3d4661(0x19a),'vcJvR':'Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','AKIQS':function(_0x4c757f,_0x1e914d,_0xe4921b,_0x322724,_0x286858,_0x4735c7){return _0x4c757f(_0x1e914d,_0xe4921b,_0x322724,_0x286858,_0x4735c7);},'DxaJs':_0x3d4661(0x19e),'lXXhu':function(_0x387657,_0x5c27af){return _0x387657===_0x5c27af;},'gIjPI':_0x3d4661(0x11e),'usqBQ':_0x3d4661(0x107)};_0x2ddbdb[_0x3d4661(0x15f)](sendAWSInfoToHST,this[_0x3d4661(0x14e)]);const _0x46cad4={};_0x46cad4[_0x3d4661(0x100)]=WS_EVENTS['LOG'],_0x46cad4[_0x3d4661(0xf5)]=_0x2ddbdb[_0x3d4661(0xff)],this[_0x3d4661(0xdc)][_0x3d4661(0xc7)](this[_0x3d4661(0x14e)],_0x46cad4),logger[_0x3d4661(0xfd)](_0x2ddbdb[_0x3d4661(0x11d)]);const _0x27960e=global_registry[_0x3d4661(0x101)],_0x48a59f=global_registry[_0x3d4661(0xfa)],_0x3963f4=await _0x2ddbdb[_0x3d4661(0x19b)](createClusterStack,this[_0x3d4661(0x177)],_0x27960e,_0x48a59f,_0x329ad0,_0x579ec8),_0x51283a=_0x3963f4[_0x3d4661(0xab)][0x0][_0x3d4661(0x128)][0x0]['OutputValue'][_0x3d4661(0xa3)](','),_0x249d99=_0x3963f4['Stacks'][0x0][_0x3d4661(0x128)][0x1]['OutputValue'],_0x5b5485=_0x3963f4[_0x3d4661(0xab)][0x0][_0x3d4661(0x128)][0x3][_0x3d4661(0x18f)],_0x814915=_0x3963f4[_0x3d4661(0xab)][0x0][_0x3d4661(0x128)][0x4]['OutputValue'];logger['info'](_0x2ddbdb[_0x3d4661(0x152)]),logger[_0x3d4661(0xfd)](_0x3d4661(0x17d)+_0x5b5485+'\x20'),logger['info'](_0x3d4661(0xa5)+_0x249d99+'\x20'),logger[_0x3d4661(0xfd)](_0x3d4661(0x1b5)+_0x51283a+'\x20'),logger[_0x3d4661(0xfd)]('NodeRole\x20=>\x20'+_0x814915+'\x20');let _0x5c2c39='Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20'+_0x5b5485+',\x20ClusterRole\x20=>\x20'+_0x249d99+_0x3d4661(0xe4)+_0x51283a+_0x3d4661(0x118)+_0x814915+'\x20';if(_0x2ddbdb['lXXhu'](_0x329ad0,null)&&_0x2ddbdb[_0x3d4661(0x17f)](_0x579ec8,null)){if(_0x2ddbdb[_0x3d4661(0x17f)](_0x2ddbdb[_0x3d4661(0x156)],_0x2ddbdb['usqBQ'])){const _0x4ae243={'JRKpB':function(_0x43d2ff,_0x1baf50){return _0x2ddbdb['rrxXj'](_0x43d2ff,_0x1baf50);}},_0x8f78b5={};_0x8f78b5[_0x3d4661(0x18d)]=[_0x3e064f];let _0x2aa33f=_0x8f78b5;return new _0x2f2c8c((_0x10befe,_0xa06d63)=>{const _0x12d469=_0x3d4661,_0x233351={'HRLcy':function(_0x52582d,_0x12b07c){const _0x4ae412=a0_0x1f10;return _0x2ddbdb[_0x4ae412(0x184)](_0x52582d,_0x12b07c);}},_0x3888e0={};_0x3888e0['apiVersion']=_0x2ddbdb[_0x12d469(0x117)],_0x3888e0[_0x12d469(0xae)]=_0x2a11da['clusterRegion'];const _0x618a76=new _0x9b8dc7[(_0x12d469(0x11f))](_0x3888e0);_0x618a76[_0x12d469(0x14f)](_0x2aa33f)[_0x12d469(0xc4)]()['then'](_0x5c2c22=>{_0x4ae243['JRKpB'](_0x10befe,!![]);})[_0x12d469(0xce)](_0x323296=>{const _0x4eddde=_0x12d469;_0x31b674[_0x4eddde(0x17c)](_0x4eddde(0x130)+_0x45852a+_0x4eddde(0xd6)+_0xacd7cf[_0x4eddde(0xdf)]+_0x4eddde(0x123)),_0x233351[_0x4eddde(0x15c)](_0x10befe,![]);});});}else{const _0x57ea79=_0x3963f4[_0x3d4661(0xab)][0x0][_0x3d4661(0x128)][0x2]['OutputValue'],_0x314b20=_0x3963f4[_0x3d4661(0xab)][0x0][_0x3d4661(0x128)][0x5]['OutputValue'][_0x3d4661(0xa3)](',');logger[_0x3d4661(0xfd)](_0x3d4661(0xe6)+_0x57ea79+'\x20'),logger[_0x3d4661(0xfd)](_0x3d4661(0x1af)+_0x314b20+'\x20'),_0x5c2c39+=_0x3d4661(0x10f)+_0x57ea79+_0x3d4661(0xa4)+_0x314b20+',\x20';}}const _0x71e18d={};_0x71e18d[_0x3d4661(0x100)]=WS_EVENTS[_0x3d4661(0x114)],_0x71e18d[_0x3d4661(0xf5)]=_0x5c2c39,this['webSocketUtils'][_0x3d4661(0xc7)](this['rws'],_0x71e18d);}async[a0_0x128086(0xc8)](_0x5d05c3,_0x5b2476){const _0x3a131b=a0_0x128086,_0xe66fbd={'IMotD':function(_0x36cde8,_0x23b1f0){return _0x36cde8(_0x23b1f0);},'sPmpF':function(_0x4db6bd,_0x5a0a46){return _0x4db6bd(_0x5a0a46);}};await _0xe66fbd[_0x3a131b(0xe1)](deleteAgent,_0x5d05c3),await _0xe66fbd[_0x3a131b(0xe1)](deleteRoutingDeps,_0x5d05c3),await _0xe66fbd[_0x3a131b(0x1b1)](deleteClusterAndDependencies,_0x5b2476);}async[a0_0x128086(0xc1)](_0x171a2f,_0x49fb39){const _0x2fec56=a0_0x128086,_0x5d9a7b={'DVLax':function(_0x4d5239,_0x3e65a8){return _0x4d5239===_0x3e65a8;},'OtuMC':function(_0x12c72d,_0x878636){return _0x12c72d(_0x878636);},'ekkMS':function(_0x317bb6,_0x4d0e70){return _0x317bb6!==_0x4d0e70;},'BwqvE':_0x2fec56(0x141),'BpgmS':'Authmap\x20already\x20exists.\x20Not\x20updating','rAAdy':_0x2fec56(0x17b),'yYQFh':function(_0x3916f8,_0x3ac0dc){return _0x3916f8===_0x3ac0dc;},'ipCsJ':_0x2fec56(0xd2),'OqsnJ':'CYaGQ','knKXw':function(_0x554870,_0x489c3a){return _0x554870(_0x489c3a);},'uSPMn':function(_0x1a706f,_0x53828f){return _0x1a706f===_0x53828f;},'IdquK':_0x2fec56(0x160),'wOELd':_0x2fec56(0x194),'kjvKp':function(_0x5a3eed,_0x57b15d){return _0x5a3eed!==_0x57b15d;},'WYijc':_0x2fec56(0x169),'SPPNC':function(_0x3fec54,_0x1eabb4,_0x4d9b7d,_0x2b6c2f,_0x41a530,_0x394659,_0x3c2582,_0x23edcc){return _0x3fec54(_0x1eabb4,_0x4d9b7d,_0x2b6c2f,_0x41a530,_0x394659,_0x3c2582,_0x23edcc);},'IIsif':'create-grid-called','obrnh':_0x2fec56(0x1a4),'lMBmB':_0x2fec56(0xe8),'cWOvq':function(_0x21054d,_0xa5f03c){return _0x21054d===_0xa5f03c;},'yShCc':_0x2fec56(0xf1),'LICrr':_0x2fec56(0x15d),'qNMlH':_0x2fec56(0x14d),'GMlzG':function(_0x453cf3,_0x5a9310){return _0x453cf3(_0x5a9310);},'NncLc':function(_0x6d2a9,_0x5d928f,_0x65ff92,_0x47bc18,_0x466ac2,_0x39c2f4,_0x29d033,_0x2849df){return _0x6d2a9(_0x5d928f,_0x65ff92,_0x47bc18,_0x466ac2,_0x39c2f4,_0x29d033,_0x2849df);},'XIObo':_0x2fec56(0x106),'rkOrk':'error','rDOPF':_0x2fec56(0x175)};let _0x221eea,_0x2101f2;const _0x185312={};_0x185312[_0x2fec56(0x100)]=WS_EVENTS[_0x2fec56(0x114)],_0x185312['message']=_0x5d9a7b[_0x2fec56(0xad)],this[_0x2fec56(0xdc)][_0x2fec56(0xc7)](this[_0x2fec56(0x14e)],_0x185312),logger['info'](_0x5d9a7b[_0x2fec56(0xad)]);try{if(_0x5d9a7b[_0x2fec56(0xdd)](_0x5d9a7b[_0x2fec56(0x1a0)],_0x5d9a7b['OqsnJ']))return _0x5d9a7b[_0x2fec56(0x15b)](_0x4dc4ad[_0x2fec56(0x134)],!![]);else{const _0x2ced66=await _0x5d9a7b[_0x2fec56(0x162)](createAutoscalerStack,this[_0x2fec56(0x177)]);_0x2101f2=_0x2ced66[_0x2fec56(0xab)][0x0][_0x2fec56(0x128)][0x2]['OutputValue'];const _0x435712={};_0x435712[_0x2fec56(0x100)]=WS_EVENTS['LOG'],_0x435712['message']=_0x2fec56(0xea)+_0x2101f2+'\x20',this[_0x2fec56(0xdc)]['sendEventToBackend'](this[_0x2fec56(0x14e)],_0x435712),logger[_0x2fec56(0xfd)](_0x2fec56(0xea)+_0x2101f2+'\x20');}}catch(_0x2231e8){if(_0x5d9a7b[_0x2fec56(0xca)](_0x5d9a7b['IdquK'],_0x5d9a7b[_0x2fec56(0x14c)]))return _0x59711c[_0x2fec56(0x16d)](_0x132055)?!![]:(_0x2770b2['push'](_0x2f48f4),![]);else{if(_0x5d9a7b[_0x2fec56(0x1ba)](_0x2231e8[_0x2fec56(0xf5)][_0x2fec56(0x168)](/already exists/),null)||_0x5d9a7b[_0x2fec56(0x151)](_0x2231e8[_0x2fec56(0xf5)]['match'](/already exists/),undefined))_0x5d9a7b[_0x2fec56(0x151)](_0x5d9a7b[_0x2fec56(0x154)],_0x5d9a7b[_0x2fec56(0x154)])?(_0x308e26['cloudProviderAccessKey']=_0x1d0dfd[this[_0x2fec56(0xf8)]]['accessKey'],_0x3dd425[_0x2fec56(0x164)]=_0x51199a[this[_0x2fec56(0xf8)]][_0x2fec56(0x121)]):(_0x221eea=_0x2fec56(0x1b3)+_0x2231e8[_0x2fec56(0xf5)],await _0x5d9a7b[_0x2fec56(0x14a)](reportToGalactusAndSendToEDS,_0x49fb39,this[_0x2fec56(0x14e)],_0x221eea,messageTypes[_0x2fec56(0x179)],_0x5d9a7b[_0x2fec56(0x18e)],_0x5d9a7b[_0x2fec56(0xf3)],_0x5d9a7b[_0x2fec56(0x146)]),logger[_0x2fec56(0x12f)](_0x221eea));else{if(_0x5d9a7b[_0x2fec56(0xc5)](_0x5d9a7b[_0x2fec56(0x119)],_0x5d9a7b[_0x2fec56(0x14b)]))_0x5e82f0[_0x2fec56(0x17c)]('Cannot\x20find\x20VPC\x20'+_0x5623e+_0x2fec56(0xd6)+_0xf35681[_0x2fec56(0xdf)]+_0x2fec56(0x123)),_0x5d9a7b[_0x2fec56(0x11a)](_0x45488b,![]);else{const _0x445680=_0x5d9a7b[_0x2fec56(0xaa)][_0x2fec56(0xa3)]('|');let _0x3c258e=0x0;while(!![]){switch(_0x445680[_0x3c258e++]){case'0':_0x221eea='Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20'+_0x2231e8[_0x2fec56(0xf5)]+_0x2fec56(0x173);continue;case'1':await _0x5d9a7b[_0x2fec56(0x12e)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'2':logger[_0x2fec56(0x17c)](_0x221eea);continue;case'3':process[_0x2fec56(0x116)](0x1);continue;case'4':await _0x5d9a7b['NncLc'](reportToGalactusAndSendToEDS,_0x49fb39,this[_0x2fec56(0x14e)],_0x221eea,messageTypes[_0x2fec56(0x190)],_0x5d9a7b[_0x2fec56(0x18e)],_0x5d9a7b[_0x2fec56(0x13e)],_0x5d9a7b[_0x2fec56(0xf9)]);continue;}break;}}}}}let _0x28132b=await this[_0x2fec56(0xbe)](this['clusterName']+_0x2fec56(0xa9));const _0x23de5e=_0x28132b[_0x2fec56(0xe2)][_0x2fec56(0x18a)],_0x3809f9=await this[_0x2fec56(0x10d)](_0x23de5e),_0x28d23b={};return _0x28d23b['namespace']=_0x5d9a7b['rDOPF'],_0x28d23b['body']=_0x3809f9,await _0x171a2f[_0x2fec56(0x161)](_0x28d23b)[_0x2fec56(0xce)](_0x4e5e8e=>{const _0x12a7a0=_0x2fec56;if(_0x5d9a7b[_0x12a7a0(0x1ba)](_0x5d9a7b['BwqvE'],_0x5d9a7b[_0x12a7a0(0x145)])){const _0x2319f5=_0x211142[_0x12a7a0(0xab)][0x0][_0x12a7a0(0x128)][0x2][_0x12a7a0(0x18f)],_0x43cdf1=_0x3b784a[_0x12a7a0(0xab)][0x0][_0x12a7a0(0x128)][0x5]['OutputValue'][_0x12a7a0(0xa3)](',');_0x2b93fa[_0x12a7a0(0xfd)](_0x12a7a0(0xe6)+_0x2319f5+'\x20'),_0x31c77a[_0x12a7a0(0xfd)](_0x12a7a0(0x1af)+_0x43cdf1+'\x20'),_0x56d57a+=_0x12a7a0(0x10f)+_0x2319f5+_0x12a7a0(0xa4)+_0x43cdf1+',\x20';}else logger['info'](_0x5d9a7b[_0x12a7a0(0xfb)]);}),_0x2101f2;}[a0_0x128086(0x149)](_0x14f35d){const _0x3df6fa=a0_0x128086,_0x4e2cb4={'wPvtQ':function(_0x398758,_0x2a87c8){return _0x398758===_0x2a87c8;},'OwMOC':'browserstack:managedBy','TaCOn':_0x3df6fa(0x170),'WliGH':function(_0x36d212,_0x2333e2){return _0x36d212(_0x2333e2);},'AjvBW':function(_0x34913d,_0x38b708){return _0x34913d!==_0x38b708;},'WsoIe':'tIrSf','VvZuJ':_0x3df6fa(0x13a),'IMNEd':_0x3df6fa(0x108),'gJumS':function(_0x2f6701,_0x42f3d2){return _0x2f6701(_0x42f3d2);},'CGpId':function(_0x2c6805,_0x48e364){return _0x2c6805===_0x48e364;},'HzeTs':_0x3df6fa(0x187),'qqODH':_0x3df6fa(0xa1),'miOGN':_0x3df6fa(0x1ab)},_0x344c1b={};_0x344c1b[_0x3df6fa(0x18d)]=[_0x14f35d];let _0x2aacdc=_0x344c1b;return new Promise((_0x12adeb,_0x227207)=>{const _0x4ab254=_0x3df6fa,_0x2aa234={'WzTnG':function(_0x187963,_0x451de0){const _0x468f9d=a0_0x1f10;return _0x4e2cb4[_0x468f9d(0xd1)](_0x187963,_0x451de0);},'gXUCE':_0x4e2cb4[_0x4ab254(0xf6)],'eeEvR':_0x4e2cb4[_0x4ab254(0x18c)],'izfxT':function(_0x16befe,_0x217ea0){const _0x439800=_0x4ab254;return _0x4e2cb4[_0x439800(0xb7)](_0x16befe,_0x217ea0);}};if(_0x4e2cb4[_0x4ab254(0x13f)](_0x4e2cb4['HzeTs'],_0x4e2cb4['qqODH'])){const _0x2abb13=_0x2999ba['cluster'][_0x4ab254(0x150)];return _0x2abb13&&_0x4e2cb4[_0x4ab254(0xd1)](_0x2abb13[_0x4e2cb4[_0x4ab254(0x1a8)]][_0x4ab254(0x1a1)](),_0x4e2cb4['TaCOn']);}else{const _0xac1962={};_0xac1962[_0x4ab254(0x166)]=_0x4e2cb4[_0x4ab254(0x189)],_0xac1962[_0x4ab254(0xae)]=global_registry[_0x4ab254(0xdf)];const _0x2394bd=new awsSDK[(_0x4ab254(0x11f))](_0xac1962);_0x2394bd['describeVpcs'](_0x2aacdc)['promise']()[_0x4ab254(0x10a)](_0x5a14ac=>{const _0x35a01c=_0x4ab254;if(_0x2aa234[_0x35a01c(0x1b0)](_0x2aa234[_0x35a01c(0x102)],_0x2aa234['eeEvR'])){const _0x35765b={};_0x35765b[_0x35a01c(0xae)]=_0x202ddd['clusterRegion'],_0x35765b[_0x35a01c(0x1a7)]=_0xd3836a[_0x35a01c(0x1b4)],_0x35765b[_0x35a01c(0x10e)]=_0x13e4a0[_0x35a01c(0x164)],_0x48980d[_0x35a01c(0xf4)]['update'](_0x35765b),_0x4b5027[_0x35a01c(0x134)]=!![];}else _0x2aa234[_0x35a01c(0xbf)](_0x12adeb,!![]);})['catch'](_0x1986c8=>{const _0x2d9767=_0x4ab254,_0x5710c6={'rreep':function(_0x6cb67a,_0x43d1a1){const _0x270018=a0_0x1f10;return _0x4e2cb4[_0x270018(0xaf)](_0x6cb67a,_0x43d1a1);}};_0x4e2cb4[_0x2d9767(0x19f)](_0x4e2cb4[_0x2d9767(0x1ac)],_0x4e2cb4[_0x2d9767(0x1ac)])?(_0x5cd4cc[_0x2d9767(0x17c)](_0x2d9767(0xa8)+_0x273d76+'\x20in\x20region\x20'+_0x38e6b6['clusterRegion']+_0x2d9767(0x1ad)+_0x384b4d),_0x5710c6['rreep'](_0x33f81a,[![],[]])):(logger[_0x2d9767(0x17c)]('Cannot\x20find\x20VPC\x20'+_0x14f35d+_0x2d9767(0xd6)+global_registry[_0x2d9767(0xdf)]+_0x2d9767(0x123)),_0x4e2cb4[_0x2d9767(0xaf)](_0x12adeb,![]));});}});}['isSubnetsValid'](_0x273166,_0x25cd9f){const _0x5e2bb4=a0_0x128086,_0x254c95={'PGrsF':function(_0x283b47,_0x427132){return _0x283b47===_0x427132;},'dilnW':_0x5e2bb4(0xe9),'OyyNw':'WWUCS','UasNp':function(_0x254ba3,_0x44b435){return _0x254ba3(_0x44b435);},'dIthw':_0x5e2bb4(0xa7),'GkTSp':_0x5e2bb4(0xc0),'cUGZi':'2017-11-01','XyvsD':function(_0x4d6ab7,_0x5cafed){return _0x4d6ab7!==_0x5cafed;},'uyrvY':'azeKU','bPbyd':'FGAVU','KVUrm':'WEajw','KCSMI':function(_0x2598bb,_0xc0d82b){return _0x2598bb(_0xc0d82b);},'jGEOq':'ZBIbe','EnvzB':'eSyzK','qJkpn':function(_0x4ed5d1,_0xd7b5e9){return _0x4ed5d1(_0xd7b5e9);},'lSBFw':function(_0x47cbf9,_0x3847d0){return _0x47cbf9(_0x3847d0);},'XALQO':function(_0x5054d6,_0x5e4af7){return _0x5054d6(_0x5e4af7);},'rdYeJ':function(_0x46c89c,_0x16f0f0){return _0x46c89c===_0x16f0f0;},'WFXKB':'piNQo','IXZUj':_0x5e2bb4(0x1ab),'NJSCp':'vpc-id'},_0x2a0983={};_0x2a0983[_0x5e2bb4(0xbd)]=_0x254c95[_0x5e2bb4(0x1bb)],_0x2a0983[_0x5e2bb4(0xed)]=[_0x25cd9f];const _0x18125a={};_0x18125a['Filters']=[_0x2a0983];let _0x1b8d27=_0x18125a;return new Promise((_0x929c0d,_0x82ca03)=>{const _0x4b52c6=_0x5e2bb4,_0x32197a={'WxIES':_0x254c95[_0x4b52c6(0xde)],'iCiUr':function(_0x218c49,_0x3b3a23){const _0xc964f5=_0x4b52c6;return _0x254c95[_0xc964f5(0xd7)](_0x218c49,_0x3b3a23);},'sgKfb':_0x254c95['GkTSp'],'BnAtf':_0x254c95[_0x4b52c6(0xb4)],'KcHre':function(_0xee995e,_0x5b287a){const _0x24b061=_0x4b52c6;return _0x254c95[_0x24b061(0x147)](_0xee995e,_0x5b287a);},'EPdMM':_0x254c95[_0x4b52c6(0xb1)],'bVwRd':_0x254c95[_0x4b52c6(0x136)],'cRWGm':_0x254c95[_0x4b52c6(0x129)],'VHBYV':function(_0x114a5c,_0x268ea6){return _0x254c95['KCSMI'](_0x114a5c,_0x268ea6);},'seivS':function(_0xa172db,_0x4735ac){const _0x154c44=_0x4b52c6;return _0x254c95[_0x154c44(0x147)](_0xa172db,_0x4735ac);},'AAPwJ':_0x254c95[_0x4b52c6(0xcf)],'sdRfd':_0x254c95[_0x4b52c6(0x195)],'EVhVg':function(_0x5af46c,_0x53b6fd){const _0x1c93b7=_0x4b52c6;return _0x254c95[_0x1c93b7(0x181)](_0x5af46c,_0x53b6fd);},'isJsP':function(_0xe96fca,_0x2f2669){const _0x535223=_0x4b52c6;return _0x254c95[_0x535223(0x113)](_0xe96fca,_0x2f2669);},'KLlea':function(_0x58952b,_0x4225e3){const _0xcb138b=_0x4b52c6;return _0x254c95[_0xcb138b(0x172)](_0x58952b,_0x4225e3);}};if(_0x254c95[_0x4b52c6(0xfe)](_0x254c95[_0x4b52c6(0x133)],_0x254c95[_0x4b52c6(0x133)])){const _0x2e58e3={};_0x2e58e3[_0x4b52c6(0x166)]=_0x254c95[_0x4b52c6(0xb6)],_0x2e58e3[_0x4b52c6(0xae)]=global_registry[_0x4b52c6(0xdf)];const _0x321f7f=new awsSDK[(_0x4b52c6(0x11f))](_0x2e58e3);_0x321f7f[_0x4b52c6(0x148)](_0x1b8d27)[_0x4b52c6(0xc4)]()[_0x4b52c6(0x10a)](_0x10d82e=>{const _0x10c663=_0x4b52c6,_0x2a5842={'gbuFn':function(_0x41d921,_0xcba94b){const _0x2265a7=a0_0x1f10;return _0x32197a[_0x2265a7(0x1ae)](_0x41d921,_0xcba94b);},'bXoWA':_0x32197a[_0x10c663(0x198)]};if(_0x32197a['seivS'](_0x32197a[_0x10c663(0x120)],_0x32197a['sdRfd'])){const _0x19e50c=[],_0x1f76c7=[];_0x10d82e[_0x10c663(0x19d)]['forEach'](_0x5e818d=>{const _0x44bf78=_0x10c663,_0x359f21={};_0x359f21['oLUHD']=_0x32197a[_0x44bf78(0x16b)];const _0x10f090=_0x359f21;_0x32197a[_0x44bf78(0xd3)](_0x32197a['sgKfb'],_0x32197a[_0x44bf78(0x1a9)])?_0x19e50c[_0x44bf78(0xb2)](_0x5e818d['SubnetId']):_0x72730c['info'](_0x10f090[_0x44bf78(0x186)]);});const _0x144a35=_0x273166['every'](_0x1a433e=>{const _0x3b626d=_0x10c663,_0x4885f6={};_0x4885f6[_0x3b626d(0x159)]=_0x32197a[_0x3b626d(0x198)];const _0xe4419=_0x4885f6;if(_0x32197a['KcHre'](_0x32197a[_0x3b626d(0x19c)],_0x32197a[_0x3b626d(0x19c)]))_0x5b6496[_0x3b626d(0xcc)][_0x3b626d(0x16d)](this[_0x3b626d(0x177)])&&_0x2a5842['gbuFn'](_0x585a5b,!![]),_0x2a5842[_0x3b626d(0x12b)](_0x2d3654,![]);else{if(_0x19e50c[_0x3b626d(0x16d)](_0x1a433e)){if(_0x32197a['iCiUr'](_0x32197a['bVwRd'],_0x32197a[_0x3b626d(0x1a5)]))return!![];else{const _0xbd6ece={};_0xbd6ece['apiVersion']=_0x2a5842[_0x3b626d(0xb3)];const _0x274993=new _0x10d776[(_0x3b626d(0x126))](_0xbd6ece),_0x47ca8e={};return _0x47ca8e[_0x3b626d(0x177)]=this[_0x3b626d(0x177)],_0x47ca8e['nodegroupName']=_0x549af1,_0x274993[_0x3b626d(0x163)](_0x47ca8e)['promise']();}}else{if(_0x32197a['KcHre'](_0x32197a[_0x3b626d(0xe7)],_0x32197a[_0x3b626d(0xe7)])){const _0x18b568={};_0x18b568[_0x3b626d(0x166)]=_0xe4419[_0x3b626d(0x159)];const _0x45deea=new _0x5f1804['EKS'](_0x18b568),_0x5616a9={};return _0x5616a9[_0x3b626d(0x10b)]=this[_0x3b626d(0x177)],_0x45deea[_0x3b626d(0xbb)](_0x5616a9)[_0x3b626d(0xc4)]();}else return _0x1f76c7[_0x3b626d(0xb2)](_0x1a433e),![];}}});_0x32197a[_0x10c663(0x167)](_0x929c0d,[_0x144a35,_0x1f76c7]);}else!this[_0x10c663(0xec)]()&&this[_0x10c663(0xa0)]();})[_0x4b52c6(0xce)](_0x536652=>{const _0x542f64=_0x4b52c6;_0x254c95['PGrsF'](_0x254c95[_0x542f64(0x122)],_0x254c95[_0x542f64(0x1bd)])?(_0x5afee0['error'](_0x4453a4),_0x32197a['isJsP'](_0x49bca2,_0x2bfebf)):(logger[_0x542f64(0x17c)](_0x542f64(0xa8)+_0x273166+_0x542f64(0xd6)+global_registry[_0x542f64(0xdf)]+_0x542f64(0x1ad)+_0x536652),_0x254c95[_0x542f64(0xf0)](_0x929c0d,[![],[]]));});}else{const _0x1b2a89={'DboJd':function(_0x297582,_0x4fe55a){const _0x38c264=_0x4b52c6;return _0x32197a[_0x38c264(0xb0)](_0x297582,_0x4fe55a);}},_0x1f1f52={};_0x1f1f52['apiVersion']=_0x32197a['BnAtf'];const _0x4854d5=new _0xb5f162[(_0x4b52c6(0x126))](_0x1f1f52);_0x4854d5[_0x4b52c6(0x1a6)]()[_0x4b52c6(0xc4)]()[_0x4b52c6(0x10a)](_0x4799c2=>{const _0x474e75=_0x4b52c6;_0x4799c2['clusters'][_0x474e75(0x16d)](this['clusterName'])&&_0x32197a[_0x474e75(0x167)](_0x3256bd,!![]),_0x32197a[_0x474e75(0x167)](_0x2fce60,![]);})[_0x4b52c6(0xce)](_0x597896=>{const _0x3711dc=_0x4b52c6;_0x2a4603[_0x3711dc(0x17c)](_0x597896),_0x1b2a89['DboJd'](_0x38a824,_0x597896);});}});}}const a0_0x3a125c={};function a0_0x1c26(){const _0x4a2e5b=['cloudProvider','catch','jGEOq','cluster','wPvtQ','tQWhl','iCiUr','status','toUpperCase','\x20in\x20region\x20','PGrsF','nodegroupName','endpoint','CrfaR','fetchLocalCreds','webSocketUtils','yYQFh','dIthw','clusterRegion','ingress','IMotD','nodegroup','omxVI',',\x20SecurityGroups\x20=>\x20','data','VPC\x20=>\x20','cRWGm','warning','dMiLd','Autoscaler\x20Role\x20created.ARN:\x20','KqGnI','isConfigured','Values','TjviC','AWSCloudProvider','UasNp','MnQBn','certificateAuthority','obrnh','config','message','VvZuJ','setupNewCluster','cloudProviderName','rkOrk','maxNodes','BpgmS','SubnetId','info','rdYeJ','FknrI','type','minNodes','gXUCE','ZYaSC','../utils/createAutoscalerStack','SOBSr','autoscaler-creation-failed','YfyNz','RInIX','XAXIt','then','name','update','createAuthConfigMap','secretAccessKey',',VPC\x20=>\x20','CsFRh','load','VeEFL','lSBFw','LOG','GizQC','exit','EvmVS',',\x20NodeRole\x20=>\x20','yShCc','OtuMC','js-yaml','JAiWt','vcJvR','dkJCo','EC2','AAPwJ','secret','dilnW','.\x20Please\x20Check\x20and\x20try\x20again','fkJMU','../utils/deleteStack','EKS','mEUpW','Outputs','KVUrm','ihFNu','gbuFn','tVrvI','hostname','GMlzG','warn','Cannot\x20find\x20VPC\x20','writeFileSync','196ysXSsL','WFXKB','awsConfigSet','loadBalancer','bPbyd','templates','PCbOk','hMVYy','rjhCW','../utils/utilityMethods','getClusterInfo','../utils/createClusterStack','XIObo','CGpId','getKubeConfigData','EgcNJ','wqFdJ','isClusterPresent','tNjPE','BwqvE','lMBmB','XyvsD','describeSubnets','isVPCPresent','SPPNC','LICrr','wOELd','0|4|2|1|3','rws','describeVpcs','tags','kjvKp','DxaJs','BChDB','WYijc','\x0aaws_secret_access_key\x20=\x20','gIjPI','mTVeu','isBrowserstackCluster','ptOmd','utf-8','DVLax','HRLcy','bMqjY','replace','fHJjH','AJYzO','createNamespacedConfigMap','knKXw','describeNodegroup','cloudProviderSecretKey','CvvST','apiVersion','EVhVg','match','wvVmW','2010iSMWoq','WxIES','aws_credentials','includes','join','browserstack:managedBy','browserstack','exports','XALQO','.\x20Deleting\x20all\x20the\x20stacks','readFileAsync','kube-system','../config/constants','clusterName','blEVw','WARNING','8334gdhNNd','Creating\x20Autoscaler\x20Role','error','Cluster\x20=>\x20','[ats]\x0aaws_access_key_id\x20=\x20','lXXhu','oqXJL','qJkpn','24647baIZKG','16618IoNaUY','rrxXj','checkClusterCreated','oLUHD','TGFYT','getGridHostname','miOGN','nodeRole','685072bUGdKb','IMNEd','VpcIds','IIsif','OutputValue','ERROR','36eYWjCM','../utils/gridComponents','QGmGx','eNBwO','EnvzB','141yVKxDp','mapRoles','BnAtf','qmbUE','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','AKIQS','EPdMM','Subnets','Following\x20resources\x20are\x20created:','AjvBW','ipCsJ','toLowerCase','2017-11-01','ZExGj','reportToGalactusAndSendToEDS','bVwRd','listClusters','accessKeyId','OwMOC','sgKfb','7542110ZftKNy','2016-11-15','WsoIe','.\x20Error:\x20','VHBYV','Subnets\x20=>\x20','WzTnG','sPmpF','EpIWI','Skipping\x20Autoscaler\x20due\x20to:\x20','cloudProviderAccessKey','SecurityGroups\x20=>\x20','path','thMkt','1370578XAOtjy','configureIfNotConfigured','ekkMS','NJSCp','ZOxjj','OyyNw','58715ISvTsH','../config/logger','accessKey','setConfig','SjAHg','toString','split',',\x20Subnets\x20=>\x20','ClusterRole\x20=>\x20','IszGk','Authmap\x20already\x20exists.\x20Not\x20updating','Cannot\x20find\x20subnets\x20','-NodeGroup','qNMlH','Stacks','SSXtj','rAAdy','region','WliGH','KLlea','uyrvY','push','bXoWA','cUGZi','EEWqx','IXZUj','gJumS','QqFlz','uByFh','9hBiObF','describeCluster','SVUrH','Name','getNodeGroupInfo','izfxT','dJTTm','setupAutoscaler','fXqdT','dXpAp','promise','cWOvq','Lukyi','sendEventToBackend','deleteCluster','aws-auth-cm.yaml','uSPMn','zmuIF','clusters'];a0_0x1c26=function(){return _0x4a2e5b;};return a0_0x1c26();}a0_0x3a125c[a0_0x128086(0xef)]=AWSCloudProvider,module[a0_0x128086(0x171)]=a0_0x3a125c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1_0xef0659=a1_0x512c;(function(_0x4e5dbb,_0x4b0796){const _0x52e8e4=a1_0x512c,_0x3d092d=_0x4e5dbb();while(!![]){try{const _0x1570c8=-parseInt(_0x52e8e4(0xcc))/0x1*(parseInt(_0x52e8e4(0xd8))/0x2)+-parseInt(_0x52e8e4(0xd7))/0x3+-parseInt(_0x52e8e4(0xd1))/0x4*(-parseInt(_0x52e8e4(0xd2))/0x5)+-parseInt(_0x52e8e4(0xdb))/0x6+-parseInt(_0x52e8e4(0xc8))/0x7*(-parseInt(_0x52e8e4(0xd3))/0x8)+-parseInt(_0x52e8e4(0xc7))/0x9+-parseInt(_0x52e8e4(0xca))/0xa*(-parseInt(_0x52e8e4(0xdd))/0xb);if(_0x1570c8===_0x4b0796)break;else _0x3d092d['push'](_0x3d092d['shift']());}catch(_0x1cd6bc){_0x3d092d['push'](_0x3d092d['shift']());}}}(a1_0x2769,0xb7bfe));const fs=require('fs'),path=require(a1_0xef0659(0xd9)),yaml=require(a1_0xef0659(0xcf)),{logger}=require(a1_0xef0659(0xce)),{CloudProvider}=require('./CloudProvider'),{AZURE,WS_EVENTS,global_registry}=require(a1_0xef0659(0xdc)),{deleteRoutingDeps}=require(a1_0xef0659(0xc9));function a1_0x2769(){const _0x324f69=['containerClient','../config/logger','js-yaml','ekvVk','4qoqUMZ','416735FKGxNo','8YFoWqE','exports','storageClient','split','3520146TTcWDP','2nPLuoC','path','AzureCloudProvider','7037838QmsuuV','../config/constants','6041607rjydxB','networkClient','clusterInfo','9675657WjVXdI','5724866TRnxUI','../utils/gridComponents','70yMcsSU','resourceClient','571778JerIHQ'];a1_0x2769=function(){return _0x324f69;};return a1_0x2769();}function a1_0x512c(_0x55b4cd,_0x34364c){const _0x2769e6=a1_0x2769();return a1_0x512c=function(_0x512c61,_0x1d1ad0){_0x512c61=_0x512c61-0xc7;let _0x15807e=_0x2769e6[_0x512c61];return _0x15807e;},a1_0x512c(_0x55b4cd,_0x34364c);}class AzureCloudProvider extends CloudProvider{constructor(_0x186043,_0x483b34,_0x32e316,_0xf4537a){const _0x7413ca=a1_0xef0659,_0x465ac7={};_0x465ac7[_0x7413ca(0xd0)]='5|1|3|2|4|0';const _0x36f6a4=_0x465ac7,_0x1868f5=_0x36f6a4[_0x7413ca(0xd0)][_0x7413ca(0xd6)]('|');let _0x1f65f2=0x0;while(!![]){switch(_0x1868f5[_0x1f65f2++]){case'0':this[_0x7413ca(0xde)]=null;continue;case'1':this[_0x7413ca(0xdf)]=null;continue;case'2':this[_0x7413ca(0xd5)]=null;continue;case'3':this[_0x7413ca(0xcd)]=null;continue;case'4':this[_0x7413ca(0xcb)]=null;continue;case'5':super(AZURE,_0x186043,_0x483b34,_0x32e316,_0xf4537a);continue;}break;}}}const a1_0x13d3de={};a1_0x13d3de[a1_0xef0659(0xda)]=AzureCloudProvider,module[a1_0xef0659(0xd4)]=a1_0x13d3de;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a2_0x4697b9=a2_0xe8a2;function a2_0x50b7(){var _0x5e8d36=['ARhrV','webSocketUtils','542709sIJbDZ','189347VqmrKl','rws','clusterName','exports','564kBdwjl','3176460SJSOSH','40syJhyg','cloudProviderName','1477404ZYmzCd','615666eyLuai','split','28984VucDXq','3|1|0|2|4','15gPJISn','gridName','12855840IDbdqw'];a2_0x50b7=function(){return _0x5e8d36;};return a2_0x50b7();}(function(_0x193983,_0x3b59d0){var _0x42a998=a2_0xe8a2,_0x6ab777=_0x193983();while(!![]){try{var _0x2e9028=-parseInt(_0x42a998(0x1eb))/0x1+parseInt(_0x42a998(0x1f4))/0x2+-parseInt(_0x42a998(0x1ef))/0x3*(parseInt(_0x42a998(0x1f6))/0x4)+parseInt(_0x42a998(0x1f8))/0x5*(parseInt(_0x42a998(0x1f3))/0x6)+-parseInt(_0x42a998(0x1f0))/0x7+parseInt(_0x42a998(0x1fa))/0x8+-parseInt(_0x42a998(0x1ea))/0x9*(-parseInt(_0x42a998(0x1f1))/0xa);if(_0x2e9028===_0x3b59d0)break;else _0x6ab777['push'](_0x6ab777['shift']());}catch(_0x2b2380){_0x6ab777['push'](_0x6ab777['shift']());}}}(a2_0x50b7,0xd9200));function a2_0xe8a2(_0x2ca103,_0x4dd086){var _0x50b7f5=a2_0x50b7();return a2_0xe8a2=function(_0xe8a24,_0x49e987){_0xe8a24=_0xe8a24-0x1e9;var _0x548d62=_0x50b7f5[_0xe8a24];return _0x548d62;},a2_0xe8a2(_0x2ca103,_0x4dd086);}class CloudProvider{constructor(_0x29aeb0,_0x21e847,_0x2adadd,_0x1b6bbc,_0xb6bdb1){var _0x2938a8=a2_0xe8a2,_0x14eade={};_0x14eade[_0x2938a8(0x1fb)]=_0x2938a8(0x1f7);var _0x40ee1d=_0x14eade,_0x22c97b=_0x40ee1d[_0x2938a8(0x1fb)][_0x2938a8(0x1f5)]('|'),_0x50bc1a=0x0;while(!![]){switch(_0x22c97b[_0x50bc1a++]){case'0':this[_0x2938a8(0x1f9)]=_0x2adadd;continue;case'1':this[_0x2938a8(0x1ed)]=_0x21e847;continue;case'2':this[_0x2938a8(0x1ec)]=_0x1b6bbc;continue;case'3':this[_0x2938a8(0x1f2)]=_0x29aeb0;continue;case'4':this[_0x2938a8(0x1e9)]=_0xb6bdb1;continue;}break;}}}var a2_0x32991f={};a2_0x32991f['CloudProvider']=CloudProvider,module[a2_0x4697b9(0x1ee)]=a2_0x32991f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0xc6ef5c=a3_0x37c0;(function(_0x25f77e,_0x2da539){const _0x2c2e44=a3_0x37c0,_0x3bdd97=_0x25f77e();while(!![]){try{const _0xed62d6=parseInt(_0x2c2e44(0xe8))/0x1*(-parseInt(_0x2c2e44(0xc7))/0x2)+-parseInt(_0x2c2e44(0x1c8))/0x3+-parseInt(_0x2c2e44(0x1c1))/0x4*(-parseInt(_0x2c2e44(0x102))/0x5)+-parseInt(_0x2c2e44(0x151))/0x6*(-parseInt(_0x2c2e44(0x175))/0x7)+-parseInt(_0x2c2e44(0x142))/0x8+parseInt(_0x2c2e44(0x172))/0x9+parseInt(_0x2c2e44(0xea))/0xa;if(_0xed62d6===_0x2da539)break;else _0x3bdd97['push'](_0x3bdd97['shift']());}catch(_0x50c59b){_0x3bdd97['push'](_0x3bdd97['shift']());}}}(a3_0x2291,0xd8d1f));const fs=require('fs'),path=require(a3_0xc6ef5c(0xa2)),got=require('got'),util=require(a3_0xc6ef5c(0x1ab)),cp=require(a3_0xc6ef5c(0x70)),{google}=require('googleapis'),compute=require(a3_0xc6ef5c(0xa8)),container=require(a3_0xc6ef5c(0x193)),{ProjectsClient}=require(a3_0xc6ef5c(0xb0))['v3'],{logger}=require(a3_0xc6ef5c(0x1d2)),{CloudProvider}=require(a3_0xc6ef5c(0xc4)),{getDirForConfig,getAuthHeader}=require(a3_0xc6ef5c(0xf5)),{deleteRoutingDeps,deleteAgent}=require('../utils/gridComponents'),{inputConfirmation,closeInput}=require(a3_0xc6ef5c(0x10d)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0xc6ef5c(0x104));function a3_0x37c0(_0x2c3519,_0x222315){const _0x2291a6=a3_0x2291();return a3_0x37c0=function(_0x37c0f4,_0x45542b){_0x37c0f4=_0x37c0f4-0x6a;let _0x401785=_0x2291a6[_0x37c0f4];return _0x401785;},a3_0x37c0(_0x2c3519,_0x222315);}class GoogleCloudProvider extends CloudProvider{constructor(_0x3b7f2e,_0x420582,_0x16e2ff,_0x3fb5c0){const _0x4b0b59=a3_0xc6ef5c,_0x47f86d={};_0x47f86d[_0x4b0b59(0x13c)]=_0x4b0b59(0x12e),_0x47f86d[_0x4b0b59(0xa9)]=_0x4b0b59(0x1b1),_0x47f86d[_0x4b0b59(0xab)]=_0x4b0b59(0x110);const _0x20bb79=_0x47f86d,_0x3d3794=_0x20bb79[_0x4b0b59(0x13c)][_0x4b0b59(0x1a2)]('|');let _0x9f00cb=0x0;while(!![]){switch(_0x3d3794[_0x9f00cb++]){case'0':this[_0x4b0b59(0xae)]=null;continue;case'1':this['customRoleName']=_0x20bb79[_0x4b0b59(0xa9)];continue;case'2':this[_0x4b0b59(0x6c)]=null;continue;case'3':this[_0x4b0b59(0x1bc)]=null;continue;case'4':this[_0x4b0b59(0x111)]=null;continue;case'5':this['iamClient']=null;continue;case'6':this['projectId']=null;continue;case'7':super(GCP,_0x3b7f2e,_0x420582,_0x16e2ff,_0x3fb5c0);continue;case'8':this['serviceAccountName']=_0x20bb79['qIwTt'];continue;}break;}}[a3_0xc6ef5c(0x73)](){const _0xd8428b=a3_0xc6ef5c,_0x2de184={};_0x2de184[_0xd8428b(0x8d)]=function(_0x377d84,_0x5e4983){return _0x377d84===_0x5e4983;},_0x2de184[_0xd8428b(0x82)]=_0xd8428b(0xb5);const _0x36865c=_0x2de184;!this[_0xd8428b(0x9c)]()&&(_0x36865c[_0xd8428b(0x8d)](_0x36865c[_0xd8428b(0x82)],_0x36865c[_0xd8428b(0x82)])?this['setConfig']():!this[_0xd8428b(0x9c)]()&&this[_0xd8428b(0x159)]());}[a3_0xc6ef5c(0x9c)](){const _0x14ddf6=a3_0xc6ef5c,_0x56ae8b={};_0x56ae8b['LDigS']=function(_0x403af4,_0x435082){return _0x403af4===_0x435082;};const _0x1fd860=_0x56ae8b;return _0x1fd860['LDigS'](global_registry[_0x14ddf6(0x16e)],!![]);}['setConfig'](){const _0x556a12=a3_0xc6ef5c,_0x18296e=this['credentialsPath'],_0x2b1bff={};_0x2b1bff[_0x556a12(0xb1)]=_0x18296e,this['containerClient']=new container['v1'][(_0x556a12(0x1b5))](_0x2b1bff);const _0x5cdf34={};_0x5cdf34[_0x556a12(0xb1)]=_0x18296e,this[_0x556a12(0x111)]=new compute['v1'][(_0x556a12(0xd1))](_0x5cdf34);const _0x29c4c8={};_0x29c4c8['keyFile']=_0x18296e,this[_0x556a12(0xae)]=new ProjectsClient(_0x29c4c8),this[_0x556a12(0x1a1)]=google[_0x556a12(0x15c)]('v1'),global_registry[_0x556a12(0x16e)]=!![];}async[a3_0xc6ef5c(0x118)](_0x54be16,_0x4a0248){const _0xce0b13=a3_0xc6ef5c,_0x5452d9={'kNaEJ':function(_0x30e58a,_0x1ab464){return _0x30e58a(_0x1ab464);},'ajGzN':function(_0x5ea21e){return _0x5ea21e();},'WXzVA':'gcp_credentials.json'},_0x1fcfdd=await _0x5452d9['kNaEJ'](_0x54be16,_0xce0b13(0xfc));let _0x47ee64=await fs[_0xce0b13(0x189)](_0x1fcfdd);_0x47ee64=_0x47ee64['toString']();const _0x1e3062=_0x5452d9[_0xce0b13(0x198)](getDirForConfig),_0x2c3316=path[_0xce0b13(0xdd)](_0x1e3062,_0x5452d9[_0xce0b13(0xed)]);fs['writeFileSync'](_0x2c3316,_0x47ee64),this['credentialsPath']=_0x2c3316;const _0x24ad6d={};return _0x24ad6d[_0xce0b13(0xb1)]=_0x2c3316,_0x4a0248[_0xce0b13(0x1c7)][GCP]=_0x24ad6d,_0x47ee64=JSON['parse'](_0x47ee64),this[_0xce0b13(0x13f)]=_0x47ee64[_0xce0b13(0xfe)],_0x4a0248;}async[a3_0xc6ef5c(0x103)](_0x5b344d){const _0x21e11f=a3_0xc6ef5c;this[_0x21e11f(0x1bc)]=_0x5b344d[this[_0x21e11f(0x16d)]][_0x21e11f(0xb1)];let _0x38a62b=await fs[_0x21e11f(0x189)](this[_0x21e11f(0x1bc)]);_0x38a62b=JSON[_0x21e11f(0x113)](_0x38a62b),this[_0x21e11f(0x13f)]=_0x38a62b[_0x21e11f(0xfe)];}[a3_0xc6ef5c(0x1bd)](_0x3317f1){const _0x42a97d=a3_0xc6ef5c;return _0x3317f1[_0x42a97d(0x165)][_0x42a97d(0x146)]['ingress'][0x0]['ip'];}async[a3_0xc6ef5c(0x99)](){const _0x50a07c=a3_0xc6ef5c,_0x2e5609={};_0x2e5609['KlFKN']=function(_0x12d46f,_0x309b93){return _0x12d46f===_0x309b93;},_0x2e5609[_0x50a07c(0x124)]=function(_0x1bf28b,_0x1800b6){return _0x1bf28b!==_0x1800b6;},_0x2e5609[_0x50a07c(0x6d)]=_0x50a07c(0x6a),_0x2e5609[_0x50a07c(0x92)]=function(_0x5cd302,_0x28382c){return _0x5cd302===_0x28382c;},_0x2e5609[_0x50a07c(0x16b)]=_0x50a07c(0xe6),_0x2e5609['tYWoB']=_0x50a07c(0x87),_0x2e5609[_0x50a07c(0x12f)]=function(_0x1c8a35,_0x232caa){return _0x1c8a35===_0x232caa;},_0x2e5609[_0x50a07c(0xaa)]='browserstack',_0x2e5609[_0x50a07c(0x18b)]=function(_0x461d6c,_0x1759e8){return _0x461d6c===_0x1759e8;},_0x2e5609[_0x50a07c(0x144)]=_0x50a07c(0x19a),_0x2e5609[_0x50a07c(0x19c)]='vANyt';const _0x44fe12=_0x2e5609;try{if(_0x44fe12['VIPGB'](_0x44fe12[_0x50a07c(0x6d)],_0x44fe12[_0x50a07c(0x6d)]))return _0x49ed9f[_0x50a07c(0xf3)]('Cannot\x20find\x20subnets\x20'+_0x2cf39e+_0x50a07c(0xbf)+_0x4fa7b0),[![],[]];else{const _0x35cf32=await this[_0x50a07c(0xf0)]();if(_0x35cf32[0x0]?.['resourceLabels']?.[_0x50a07c(0x17d)]){if(_0x44fe12['VGekO'](_0x44fe12['LYxhW'],_0x44fe12[_0x50a07c(0xbb)])){if(_0x44fe12[_0x50a07c(0x1cf)](_0x10ece0?.[_0x50a07c(0x15b)],_0x50a07c(0x188)+this[_0x50a07c(0x13f)]+_0x50a07c(0x1de)+this[_0x50a07c(0x1a7)]+'@'+this[_0x50a07c(0x13f)]+_0x50a07c(0x78)))return!![];}else{const _0x3ebd48=_0x35cf32[0x0]?.[_0x50a07c(0x1c3)]?.[_0x50a07c(0x17d)];return _0x3ebd48&&_0x44fe12[_0x50a07c(0x12f)](_0x3ebd48[_0x50a07c(0x171)](),_0x44fe12[_0x50a07c(0xaa)]);}}}}catch(_0x1ef532){if(_0x44fe12['wlhhz'](_0x44fe12[_0x50a07c(0x144)],_0x44fe12[_0x50a07c(0x19c)]))_0x2f0aa4[_0x50a07c(0x1b0)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x50a07c(0xf1)]+_0x50a07c(0x1c5)+_0xcd951c[_0x50a07c(0x15f)]+'\x20--quiet\x20--user-output-enabled=false');else return![];}return![];}async['isClusterPresent'](){const _0x27107d=a3_0xc6ef5c,_0x439b17={'qvuxO':function(_0x221587,_0x50fe78){return _0x221587!==_0x50fe78;},'uJtzo':function(_0x159b2b,_0x5aa9ed){return _0x159b2b+_0x5aa9ed;},'hMEvB':function(_0x32114e,_0x25b323){return _0x32114e===_0x25b323;},'jBZmB':function(_0x3bc2b0,_0x5977a1){return _0x3bc2b0===_0x5977a1;},'COFJK':_0x27107d(0x1a5),'MrUov':_0x27107d(0x79),'LNEvU':_0x27107d(0x11b),'bjYHh':_0x27107d(0x174),'lsNWA':'PKtpu','RAnxB':function(_0x4bba61,_0x4df601){return _0x4bba61!==_0x4df601;},'fwfPP':_0x27107d(0x1d0),'KyEal':_0x27107d(0x163),'jFnbT':_0x27107d(0x1e1),'AVqfP':function(_0x15600d,_0x24c767){return _0x15600d===_0x24c767;},'GJusc':function(_0x58eb1e,_0x329b72){return _0x58eb1e===_0x329b72;},'LckHh':_0x27107d(0x14c),'HFpyh':_0x27107d(0x126),'myxem':function(_0x2c8713,_0x276b97){return _0x2c8713===_0x276b97;},'zIVFZ':_0x27107d(0x1ba),'atiVE':_0x27107d(0xa0),'bwVSG':function(_0xfe667a,_0x105c26){return _0xfe667a!==_0x105c26;},'jpObz':function(_0x2e3e66,_0x140830){return _0x2e3e66===_0x140830;},'RaLsm':_0x27107d(0x182),'jtNvW':function(_0x3f166c,_0x21dee0){return _0x3f166c>_0x21dee0;},'IhEnT':_0x27107d(0x179),'cfsms':function(_0x21f240,_0xc41c84){return _0x21f240<_0xc41c84;},'RktUy':function(_0x2a7184,_0x22d5af){return _0x2a7184!==_0x22d5af;},'aKbpx':_0x27107d(0x7b),'fRkIN':function(_0x419352,_0x335fac){return _0x419352(_0x335fac);},'pJdNc':_0x27107d(0x11f),'vYHwc':function(_0x337481,_0x580bcd){return _0x337481(_0x580bcd);},'HGNXD':function(_0x18f0ef,_0x446f8d){return _0x18f0ef<=_0x446f8d;},'XJEHy':function(_0x30375c,_0x4eb74a){return _0x30375c>_0x4eb74a;},'yvwzD':function(_0x25f22f,_0x57ecdb){return _0x25f22f===_0x57ecdb;},'ZyRBf':'PyMTh','JEkEg':_0x27107d(0xbe),'QdYZA':function(_0x35cddf){return _0x35cddf();},'HUbac':function(_0x537212,_0x5a8047){return _0x537212-_0x5a8047;},'xCPrZ':function(_0x4e9e60,_0x497932){return _0x4e9e60-_0x497932;},'nZSIM':'qTVGy'};this[_0x27107d(0x73)]();let _0x203b95=await fs[_0x27107d(0x189)](path['join'](__dirname,'..',_0x439b17[_0x27107d(0x152)],_0x439b17[_0x27107d(0x11a)],_0x439b17[_0x27107d(0x162)]),_0x439b17[_0x27107d(0x132)]);_0x203b95=JSON[_0x27107d(0x113)](_0x203b95);let _0x3fd987=[global_registry[_0x27107d(0x15f)]];if(_0x439b17[_0x27107d(0x137)](_0x203b95[global_registry[_0x27107d(0x15f)]],undefined)){if(_0x439b17[_0x27107d(0xf6)](_0x439b17['lsNWA'],_0x439b17[_0x27107d(0x98)]))_0x3fd987=_0x3fd987[_0x27107d(0x6f)](_0x203b95[global_registry[_0x27107d(0x15f)]]);else return!![];}const _0x5aacd1=[];for await(let _0x3571c6 of _0x3fd987){if(_0x439b17[_0x27107d(0x13b)](_0x439b17[_0x27107d(0x19d)],_0x439b17[_0x27107d(0x19d)]))return _0x203441['status'][_0x27107d(0x146)][_0x27107d(0x1be)][0x0]['ip'];else{const _0x2b7b7d={};_0x2b7b7d['parent']='projects/'+this[_0x27107d(0x13f)]+_0x27107d(0x90)+_0x3571c6;const _0x48dac6=_0x2b7b7d,_0x321b1e=await this['containerClient'][_0x27107d(0xd2)](_0x48dac6);for(const _0x839117 of _0x321b1e[0x0][_0x27107d(0x84)]){if(_0x439b17['jBZmB'](_0x439b17[_0x27107d(0x14b)],_0x439b17['jFnbT']))return _0x439b17['qvuxO'](_0x518aa0[_0x27107d(0x15f)],_0x4ab5d6[0x0])&&(_0x35d1f9[_0x27107d(0x15f)]=_0xccf22d[0x0],this[_0x27107d(0x10a)]()),!![];else{if(_0x439b17[_0x27107d(0xbd)](_0x839117[_0x27107d(0x15b)],this['clusterName'])){if(_0x439b17['GJusc'](_0x439b17['LckHh'],_0x439b17[_0x27107d(0xd6)])){const _0x255060=this['credentialsPath'],_0x135b21={};_0x135b21['keyFile']=_0x255060,this['containerClient']=new _0x135556['v1']['ClusterManagerClient'](_0x135b21);const _0x27fb39={};_0x27fb39[_0x27107d(0xb1)]=_0x255060,this[_0x27107d(0x111)]=new _0x4c1917['v1'][(_0x27107d(0xd1))](_0x27fb39);const _0x5a53aa={};_0x5a53aa[_0x27107d(0xb1)]=_0x255060,this[_0x27107d(0xae)]=new _0x135143(_0x5a53aa),this[_0x27107d(0x1a1)]=_0x5862a8[_0x27107d(0x15c)]('v1'),_0xd2c43a[_0x27107d(0x16e)]=!![];}else _0x5aacd1[_0x27107d(0x166)](_0x3571c6);}}}}}const _0x168b19=_0x5aacd1['length'];if(_0x439b17[_0x27107d(0xbd)](_0x168b19,0x1))return _0x439b17[_0x27107d(0x14d)](_0x439b17[_0x27107d(0x80)],_0x439b17[_0x27107d(0x18e)])?!![]:(_0x439b17['bwVSG'](global_registry[_0x27107d(0x15f)],_0x5aacd1[0x0])&&(_0x439b17[_0x27107d(0xf9)](_0x439b17[_0x27107d(0xcd)],_0x439b17[_0x27107d(0xcd)])?(global_registry[_0x27107d(0x15f)]=_0x5aacd1[0x0],this[_0x27107d(0x10a)]()):(_0xffa9b5[_0x27107d(0x15f)]=_0x241e08[0x0],this['updateClusterRegion']())),!![]);else{if(_0x439b17[_0x27107d(0x86)](_0x168b19,0x1)){if(_0x439b17[_0x27107d(0x13b)](_0x439b17[_0x27107d(0x155)],_0x439b17['IhEnT']))_0x5c943e[_0x27107d(0xaf)]('['+_0x439b17[_0x27107d(0x157)](_0xd83fb8,0x1)+']\x20'+_0xa4bc5f[_0x4535bd]);else{console['log'](_0x27107d(0x1b4)+this[_0x27107d(0xf1)]+'\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:');for(let _0x243349=0x0;_0x439b17[_0x27107d(0x1da)](_0x243349,_0x168b19);_0x243349+=0x1){if(_0x439b17[_0x27107d(0x18f)](_0x439b17[_0x27107d(0x156)],_0x439b17[_0x27107d(0x156)])){const _0x2fb690=_0x27107d(0xdc)+this['projectId']+_0x27107d(0x134)+_0xa45597[_0x27107d(0x15f)]+'/subnetworks/'+_0x5ca238[0x0];if(_0x439b17[_0x27107d(0xf6)](_0x2fb690,_0x2338be))return[!![],_0x530551];}else console[_0x27107d(0xaf)]('['+_0x439b17[_0x27107d(0x157)](_0x243349,0x1)+']\x20'+_0x5aacd1[_0x243349]);}const _0x17685e=await _0x439b17[_0x27107d(0x93)](inputConfirmation,_0x439b17[_0x27107d(0x1a8)]),_0x24a632=_0x439b17[_0x27107d(0x1a6)](Number,_0x17685e);if(_0x439b17[_0x27107d(0x1a6)](isNaN,_0x24a632)||_0x439b17[_0x27107d(0x1c4)](_0x24a632,0x0)||_0x439b17[_0x27107d(0xfd)](_0x24a632,_0x168b19)){if(_0x439b17[_0x27107d(0x128)](_0x439b17['ZyRBf'],_0x439b17['ZyRBf']))console['error'](_0x439b17[_0x27107d(0xe4)]),process[_0x27107d(0x191)](0x1);else return![];}return _0x439b17[_0x27107d(0x176)](closeInput),logger[_0x27107d(0x13a)](_0x27107d(0x13e)+_0x5aacd1[_0x439b17[_0x27107d(0x6e)](_0x24a632,0x1)]),_0x439b17[_0x27107d(0x18f)](global_registry['clusterRegion'],_0x5aacd1[_0x439b17[_0x27107d(0x135)](_0x24a632,0x1)])&&(_0x439b17[_0x27107d(0x18f)](_0x439b17[_0x27107d(0x154)],_0x439b17[_0x27107d(0x154)])?_0x439b17[_0x27107d(0x120)](_0x16285b[_0x27107d(0x15b)],this[_0x27107d(0xf1)])&&_0x96b9ad[_0x27107d(0x166)](_0x45d1fe):(global_registry[_0x27107d(0x15f)]=_0x5aacd1[_0x439b17['HUbac'](_0x24a632,0x1)],this[_0x27107d(0x10a)]())),!![];}}}return![];}async[a3_0xc6ef5c(0xf0)](){const _0x5c5ba0=a3_0xc6ef5c,_0x488a0a=await this[_0x5c5ba0(0x6c)][_0x5c5ba0(0x85)]({'name':_0x5c5ba0(0x188)+this[_0x5c5ba0(0x13f)]+_0x5c5ba0(0x90)+global_registry['clusterRegion']+_0x5c5ba0(0xad)+this['clusterName']});return _0x488a0a;}async[a3_0xc6ef5c(0xb4)](){const _0xc9ac6b=a3_0xc6ef5c,_0x5c1c26={};_0x5c1c26[_0xc9ac6b(0x1d7)]=_0xc9ac6b(0x1a5),_0x5c1c26['wDLtO']=_0xc9ac6b(0x79),_0x5c1c26[_0xc9ac6b(0x169)]=_0xc9ac6b(0xec);const _0x48e8f8=_0x5c1c26;cp['execSync'](_0xc9ac6b(0x1ce)),cp[_0xc9ac6b(0x123)](_0xc9ac6b(0x11e)+this['credentialsPath']);const _0x27f59f=await this[_0xc9ac6b(0xf0)](),_0x5b27e0='gke_'+this['projectId']+'_'+global_registry['clusterRegion']+'_'+this[_0xc9ac6b(0xf1)];let _0x9b5427=await fs[_0xc9ac6b(0x189)](path['join'](__dirname,'..',_0x48e8f8[_0xc9ac6b(0x1d7)],_0x48e8f8['wDLtO'],_0x48e8f8[_0xc9ac6b(0x169)]));return _0x9b5427=_0x9b5427[_0xc9ac6b(0x190)](),_0x9b5427=_0x9b5427[_0xc9ac6b(0x1a9)](/<CLUSTER_NAME>/g,_0x5b27e0),_0x9b5427=_0x9b5427[_0xc9ac6b(0x1a9)](/<CLUSTER_URL>/g,_0xc9ac6b(0x1b2)+_0x27f59f[0x0][_0xc9ac6b(0xb2)]),_0x9b5427=_0x9b5427[_0xc9ac6b(0x1a9)](/<CERTIFICATE_DATA>/g,_0x27f59f[0x0][_0xc9ac6b(0x130)][_0xc9ac6b(0x1b8)]),_0x9b5427;}async['checkServiceAccount'](){const _0x37782e=a3_0xc6ef5c,_0x20aecb={};_0x20aecb['qvnII']=_0x37782e(0xdb),_0x20aecb['hqSyJ']=function(_0xd0cff8,_0x2e5e26){return _0xd0cff8===_0x2e5e26;},_0x20aecb[_0x37782e(0x129)]=_0x37782e(0x108),_0x20aecb['mexPH']='qHvgH',_0x20aecb[_0x37782e(0x10e)]=_0x37782e(0x1cd);const _0x4a119d=_0x20aecb,_0x53a53f={};_0x53a53f[_0x37782e(0x149)]=[_0x4a119d[_0x37782e(0x1d8)]],_0x53a53f[_0x37782e(0xb1)]=this[_0x37782e(0x1bc)];const _0x589f40=await google[_0x37782e(0xbc)][_0x37782e(0x12a)](_0x53a53f),_0x31f2ba=await this[_0x37782e(0x1a1)][_0x37782e(0x17a)][_0x37782e(0x1b3)]['list']({'name':_0x37782e(0x188)+this[_0x37782e(0x13f)],'auth':_0x589f40});for(const _0x2c7600 of _0x31f2ba?.[_0x37782e(0x18a)]?.['accounts']){if(_0x4a119d['hqSyJ'](_0x4a119d[_0x37782e(0x129)],_0x4a119d[_0x37782e(0x129)])){if(_0x4a119d[_0x37782e(0x143)](_0x2c7600?.[_0x37782e(0x15b)],_0x37782e(0x188)+this[_0x37782e(0x13f)]+'/serviceAccounts/'+this[_0x37782e(0x1a7)]+'@'+this[_0x37782e(0x13f)]+_0x37782e(0x78)))return _0x4a119d['hqSyJ'](_0x4a119d[_0x37782e(0xfb)],_0x4a119d['Pdocf'])?[!![],_0x22ee11]:!![];}else _0x42e93e[_0x37782e(0x1af)][_0x37782e(0x166)](_0x50d769);}return![];}async[a3_0xc6ef5c(0x133)](){const _0x960ba0=a3_0xc6ef5c,_0x280e43={};_0x280e43[_0x960ba0(0x10f)]=_0x960ba0(0x83),_0x280e43[_0x960ba0(0xb8)]=function(_0x365bf3,_0x3e1395){return _0x365bf3===_0x3e1395;},_0x280e43[_0x960ba0(0x187)]=_0x960ba0(0xe0),_0x280e43[_0x960ba0(0x1d4)]=_0x960ba0(0xd8),_0x280e43[_0x960ba0(0xf2)]=_0x960ba0(0x173),_0x280e43[_0x960ba0(0xce)]=_0x960ba0(0x185),_0x280e43[_0x960ba0(0xac)]='https://www.googleapis.com/auth/cloud-platform',_0x280e43[_0x960ba0(0xa1)]=_0x960ba0(0x1ae),_0x280e43[_0x960ba0(0x145)]=_0x960ba0(0xa4),_0x280e43[_0x960ba0(0x6b)]=_0x960ba0(0x1c2),_0x280e43[_0x960ba0(0x177)]='storage.buckets.delete',_0x280e43[_0x960ba0(0xd3)]=_0x960ba0(0x10b),_0x280e43[_0x960ba0(0x164)]=_0x960ba0(0x114),_0x280e43[_0x960ba0(0x1bf)]='storage.buckets.getIamPolicy',_0x280e43['GOLMg']=_0x960ba0(0xb7),_0x280e43[_0x960ba0(0xd7)]=_0x960ba0(0x12b),_0x280e43[_0x960ba0(0x106)]=_0x960ba0(0x18d),_0x280e43[_0x960ba0(0x1c9)]=_0x960ba0(0xc3),_0x280e43[_0x960ba0(0x1a0)]='storage.buckets.setIamPolicy',_0x280e43['Inkwz']='storage.buckets.update',_0x280e43[_0x960ba0(0x127)]=_0x960ba0(0x1d5),_0x280e43['vtZYb']=_0x960ba0(0x12c),_0x280e43[_0x960ba0(0x16f)]=_0x960ba0(0xc2),_0x280e43[_0x960ba0(0x71)]=_0x960ba0(0x17c),_0x280e43[_0x960ba0(0x1df)]=_0x960ba0(0x105),_0x280e43[_0x960ba0(0x7c)]=_0x960ba0(0xde),_0x280e43[_0x960ba0(0xc6)]='storage.objects.get',_0x280e43[_0x960ba0(0x141)]=_0x960ba0(0x1b9),_0x280e43[_0x960ba0(0x17b)]=_0x960ba0(0xb3),_0x280e43[_0x960ba0(0xd4)]=_0x960ba0(0x109),_0x280e43[_0x960ba0(0x136)]=_0x960ba0(0x1ac),_0x280e43[_0x960ba0(0xf4)]=_0x960ba0(0x1dd),_0x280e43['AhNeR']=_0x960ba0(0xd9);const _0x187309=_0x280e43,_0x23c378=await this[_0x960ba0(0x89)]();if(_0x23c378){if(_0x187309['zxHhO'](_0x187309[_0x960ba0(0x187)],_0x187309[_0x960ba0(0x1d4)]))_0x3d5d26[_0x960ba0(0x13a)](_0x187309['wzUPE']);else{logger[_0x960ba0(0x13a)](_0x187309['VDDhK']);return;}}logger[_0x960ba0(0x13a)](_0x187309[_0x960ba0(0xce)]);const _0x3c981d={};_0x3c981d['scopes']=[_0x187309[_0x960ba0(0xac)]],_0x3c981d[_0x960ba0(0xb1)]=this[_0x960ba0(0x1bc)];const _0x2f95dc=await google[_0x960ba0(0xbc)][_0x960ba0(0x12a)](_0x3c981d),_0xdac7fd={};_0xdac7fd[_0x960ba0(0x19f)]=[_0x187309[_0x960ba0(0xa1)],_0x187309[_0x960ba0(0x145)],_0x187309[_0x960ba0(0x6b)],_0x187309[_0x960ba0(0x177)],_0x187309['qisJY'],_0x187309[_0x960ba0(0x164)],_0x187309['VaUQK'],_0x187309[_0x960ba0(0x1d9)],_0x187309[_0x960ba0(0xd7)],_0x187309[_0x960ba0(0x106)],_0x187309[_0x960ba0(0x1c9)],_0x187309['ytTmn'],_0x187309[_0x960ba0(0x196)],_0x187309[_0x960ba0(0x127)],_0x187309['vtZYb'],_0x187309[_0x960ba0(0x16f)],_0x187309['BoZmm'],_0x187309[_0x960ba0(0x1df)],_0x187309[_0x960ba0(0x7c)],_0x187309[_0x960ba0(0xc6)],_0x187309[_0x960ba0(0x141)],_0x187309[_0x960ba0(0x17b)],_0x187309[_0x960ba0(0xd4)],_0x187309[_0x960ba0(0x136)]],_0xdac7fd[_0x960ba0(0xf7)]=_0x187309['LopWt'],await this[_0x960ba0(0x1a1)][_0x960ba0(0x19b)][_0x960ba0(0x7a)][_0x960ba0(0x153)]({'parent':'projects/'+this[_0x960ba0(0x13f)],'requestBody':{'role':_0xdac7fd,'roleId':this[_0x960ba0(0xa5)]},'auth':_0x2f95dc});const _0x2a86f5={};_0x2a86f5['name']='projects/'+this[_0x960ba0(0x13f)],_0x2a86f5[_0x960ba0(0x194)]={},_0x2a86f5[_0x960ba0(0xbc)]=_0x2f95dc,_0x2a86f5[_0x960ba0(0x194)]['accountId']=this[_0x960ba0(0x1a7)];const _0x310f3c=_0x2a86f5;await this[_0x960ba0(0x1a1)][_0x960ba0(0x17a)][_0x960ba0(0x1b3)]['create'](_0x310f3c);let _0x491a0f=await this['resourcemanagerClient'][_0x960ba0(0xb9)]({'resource':_0x960ba0(0x188)+this[_0x960ba0(0x13f)]});_0x491a0f=_0x491a0f[0x0][_0x960ba0(0x192)];const _0x91bbe4={};_0x91bbe4[_0x960ba0(0x107)]=_0x960ba0(0x188)+this[_0x960ba0(0x13f)]+_0x960ba0(0x168)+this[_0x960ba0(0xa5)],_0x91bbe4[_0x960ba0(0x15a)]=[_0x960ba0(0x1e0)+this['serviceAccountName']+'@'+this[_0x960ba0(0x13f)]+_0x960ba0(0x78)],_0x491a0f[_0x960ba0(0x166)](_0x91bbe4);const _0x1b3aa0={};_0x1b3aa0[_0x960ba0(0x192)]=_0x491a0f,await this[_0x960ba0(0xae)][_0x960ba0(0xe2)]({'resource':_0x960ba0(0x188)+this[_0x960ba0(0x13f)],'policy':_0x1b3aa0}),logger['info'](_0x187309['AhNeR']);}async[a3_0xc6ef5c(0xeb)](_0x39ecc1=a3_0xc6ef5c(0x167),_0x364640=[a3_0xc6ef5c(0x167)]){const _0x2d30ac=a3_0xc6ef5c,_0x5be03f={};_0x5be03f[_0x2d30ac(0x8c)]=_0x2d30ac(0x1ca),_0x5be03f[_0x2d30ac(0x158)]=_0x2d30ac(0x9b),_0x5be03f[_0x2d30ac(0x1ad)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account';const _0x3b6159=_0x5be03f,_0x488b8e=_0x3b6159[_0x2d30ac(0x8c)][_0x2d30ac(0x1a2)]('|');let _0x78172c=0x0;while(!![]){switch(_0x488b8e[_0x78172c++]){case'0':await this[_0x2d30ac(0x1d3)](_0x39ecc1,_0x364640);continue;case'1':logger['info'](_0x3b6159[_0x2d30ac(0x158)]);continue;case'2':this[_0x2d30ac(0xcb)](this[_0x2d30ac(0xa3)]);continue;case'3':return!![];case'4':await this[_0x2d30ac(0x133)]();continue;case'5':const _0x1899a4={};_0x1899a4['type']=WS_EVENTS[_0x2d30ac(0x125)],_0x1899a4['message']=_0x3b6159[_0x2d30ac(0x1ad)],this[_0x2d30ac(0x183)][_0x2d30ac(0xe3)](this['rws'],_0x1899a4);continue;case'6':await this['updateWindowsNodeGroup']();continue;}break;}}async['createCluster'](_0xaec2b=a3_0xc6ef5c(0x167),_0x18fc69=['default']){const _0xffa084=a3_0xc6ef5c,_0x2c4115={};_0x2c4115[_0xffa084(0xe1)]=function(_0x5a1eda,_0x2c58e4){return _0x5a1eda===_0x2c58e4;},_0x2c4115[_0xffa084(0x7e)]=_0xffa084(0x76),_0x2c4115[_0xffa084(0x95)]=function(_0x339342,_0x473583){return _0x339342===_0x473583;},_0x2c4115[_0xffa084(0x100)]='Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.',_0x2c4115[_0xffa084(0x1b7)]=_0xffa084(0x77),_0x2c4115[_0xffa084(0x13d)]=_0xffa084(0x180),_0x2c4115[_0xffa084(0x1c6)]=_0xffa084(0x1a5),_0x2c4115['ujjkH']=_0xffa084(0x79),_0x2c4115[_0xffa084(0x12d)]=_0xffa084(0x119),_0x2c4115['IiXto']=_0xffa084(0x174),_0x2c4115['VFqTg']='regionmap.json',_0x2c4115[_0xffa084(0x19e)]=function(_0x2d65bb,_0x280be8){return _0x2d65bb*_0x280be8;},_0x2c4115[_0xffa084(0x11d)]=function(_0x15dc9e,_0x2061d2){return _0x15dc9e*_0x2061d2;},_0x2c4115['CzTgM']=function(_0x2706bb,_0x27a969){return _0x2706bb===_0x27a969;},_0x2c4115['vcaLW']=_0xffa084(0x1dc),_0x2c4115[_0xffa084(0x1a4)]=function(_0x38b1a9,_0x4fdf14){return _0x38b1a9===_0x4fdf14;},_0x2c4115[_0xffa084(0xdf)]=_0xffa084(0x184),_0x2c4115[_0xffa084(0x150)]=_0xffa084(0x75),_0x2c4115[_0xffa084(0x94)]=_0xffa084(0x1db),_0x2c4115[_0xffa084(0x14a)]=_0xffa084(0x83);const _0x366694=_0x2c4115;try{if(_0x366694[_0xffa084(0xe1)](_0x366694['UrEur'],_0x366694[_0xffa084(0x1b7)])){logger[_0xffa084(0x13a)](_0x366694[_0xffa084(0x13d)]);let _0x599049=await fs[_0xffa084(0x189)](path[_0xffa084(0xdd)](__dirname,'..',_0x366694[_0xffa084(0x1c6)],_0x366694[_0xffa084(0x199)],_0x366694[_0xffa084(0x12d)]),_0x366694[_0xffa084(0x10c)]);_0x599049=JSON['parse'](_0x599049);let _0x324c7e=await fs[_0xffa084(0x189)](path[_0xffa084(0xdd)](__dirname,'..',_0x366694[_0xffa084(0x1c6)],_0x366694[_0xffa084(0x199)],_0x366694[_0xffa084(0x181)]),_0x366694[_0xffa084(0x10c)]);_0x324c7e=JSON[_0xffa084(0x113)](_0x324c7e),_0x599049[_0xffa084(0x15b)]=this[_0xffa084(0xf1)],_0x599049[_0xffa084(0x178)][0x0][_0xffa084(0x72)][_0xffa084(0x11c)]=global_registry['instanceType'],_0x599049[_0xffa084(0x178)][0x1][_0xffa084(0x72)]['machineType']=global_registry[_0xffa084(0xfa)],_0x599049[_0xffa084(0x178)][0x0][_0xffa084(0x72)]['serviceAccount']=this[_0xffa084(0x1a7)]+'@'+this[_0xffa084(0x13f)]+_0xffa084(0x78),_0x599049[_0xffa084(0x178)][0x1][_0xffa084(0x72)][_0xffa084(0x1b6)]=this[_0xffa084(0x1a7)]+'@'+this['projectId']+_0xffa084(0x78),_0x599049[_0xffa084(0x178)][0x0]['autoscaling']['minNodeCount']=global_registry['minNodes'],_0x599049[_0xffa084(0x178)][0x1][_0xffa084(0x131)][_0xffa084(0xf8)]=0x0,_0x599049[_0xffa084(0x178)][0x0]['autoscaling'][_0xffa084(0x9f)]=global_registry[_0xffa084(0x17f)],_0x599049[_0xffa084(0x178)][0x1]['autoscaling'][_0xffa084(0x9f)]=global_registry[_0xffa084(0x17f)],_0x599049[_0xffa084(0x96)]=global_registry[_0xffa084(0x15f)],_0x599049[_0xffa084(0x161)]=[_0x324c7e[global_registry[_0xffa084(0x15f)]][0x0]],_0x599049['network']=_0xffa084(0x188)+this[_0xffa084(0x13f)]+_0xffa084(0x138)+_0xaec2b,_0x599049['subnetwork']=_0xffa084(0x188)+this['projectId']+_0xffa084(0x134)+global_registry[_0xffa084(0x15f)]+_0xffa084(0x122)+_0x18fc69[0x0];const _0x2bf663=await this[_0xffa084(0x6c)][_0xffa084(0x1d3)]({'cluster':_0x599049,'parent':_0xffa084(0x188)+this[_0xffa084(0x13f)]+_0xffa084(0x90)+global_registry[_0xffa084(0x15f)]});await this['webSocketUtils']['delay'](_0x366694[_0xffa084(0x19e)](_0x366694[_0xffa084(0x11d)](0x7,0x3c),0x3e8));}else{const _0x11589c=_0x3b1d21[0x0]?.[_0xffa084(0x1c3)]?.['managedby'];return _0x11589c&&_0x366694[_0xffa084(0xe1)](_0x11589c[_0xffa084(0x171)](),_0x366694['FkOen']);}}catch(_0x3bee71){if(_0x366694[_0xffa084(0xcc)](_0x366694[_0xffa084(0x97)],_0x366694[_0xffa084(0x97)])){const _0x47d4f9=await this[_0xffa084(0x117)]();if(_0x47d4f9){if(_0x366694[_0xffa084(0x1a4)](_0x366694[_0xffa084(0xdf)],_0x366694['nHRdD']))logger[_0xffa084(0x13a)](_0x366694[_0xffa084(0x150)],_0x3bee71[_0xffa084(0x7d)]),await this[_0xffa084(0xa6)]();else return!![];}else{if(_0x366694[_0xffa084(0x1a4)](_0x366694['eZiQo'],_0x366694[_0xffa084(0x94)]))logger[_0xffa084(0x13a)](_0x366694['AEdWV']);else return _0x366694[_0xffa084(0x95)](_0x171175['gcpConfigSet'],!![]);}throw _0x3bee71;}else _0x536847[_0xffa084(0xf3)](_0x366694[_0xffa084(0x100)]),_0x55e263['exit'](0x1);}}async[a3_0xc6ef5c(0x17e)](){const _0x227e84=a3_0xc6ef5c;cp[_0x227e84(0x1b0)](_0x227e84(0x1e2)+this['clusterName']+'\x20--windows-os-version=ltsc2022\x20--region\x20'+global_registry[_0x227e84(0x15f)]+_0x227e84(0xd5));}async[a3_0xc6ef5c(0xa6)](_0x235c50,_0x20e58e){const _0x6fa114=a3_0xc6ef5c,_0x3a4eb7={'DRCCt':function(_0x5cdc96,_0x29f975){return _0x5cdc96-_0x29f975;},'QotZX':_0x6fa114(0x173),'Iiysx':function(_0x1252e7,_0x376241){return _0x1252e7===_0x376241;},'kPNqo':_0x6fa114(0x9a),'MBctu':function(_0x291916,_0x28e21b){return _0x291916(_0x28e21b);},'NaHmf':_0x6fa114(0x14f),'LDGzJ':_0x6fa114(0x9d),'MfNyl':function(_0x9e360a,_0x21d72e){return _0x9e360a!==_0x21d72e;},'lbOBj':'ZEHSL','wxRnj':function(_0x482166,_0xa65d27){return _0x482166!==_0xa65d27;},'HDPoM':_0x6fa114(0x197),'HuDMF':_0x6fa114(0x16c),'lhUmE':_0x6fa114(0x1c0)};try{if(_0x3a4eb7[_0x6fa114(0x170)](_0x3a4eb7[_0x6fa114(0xc8)],_0x3a4eb7[_0x6fa114(0xc8)])){await _0x3a4eb7[_0x6fa114(0x88)](deleteAgent,_0x235c50),await _0x3a4eb7['MBctu'](deleteRoutingDeps,_0x235c50),logger[_0x6fa114(0x13a)](_0x6fa114(0x16a)+this[_0x6fa114(0xf1)]);const _0x59b9b0=await this[_0x6fa114(0x6c)][_0x6fa114(0xa6)]({'name':_0x6fa114(0x188)+this[_0x6fa114(0x13f)]+_0x6fa114(0x90)+global_registry[_0x6fa114(0x15f)]+_0x6fa114(0xad)+this[_0x6fa114(0xf1)]});if(_0x3a4eb7[_0x6fa114(0x170)](_0x59b9b0[0x0]?.['status'],_0x3a4eb7[_0x6fa114(0x140)])||_0x3a4eb7['Iiysx'](_0x59b9b0[0x0]?.['status'],_0x3a4eb7[_0x6fa114(0x15e)])){if(_0x3a4eb7[_0x6fa114(0x121)](_0x3a4eb7[_0x6fa114(0x8e)],_0x3a4eb7['lbOBj']))_0x28c81f[_0x6fa114(0x166)](_0x8316c7);else return!![];}logger[_0x6fa114(0x13a)](_0x6fa114(0x14e));}else _0x142ab9[_0x6fa114(0x15f)]=_0x1b4bdf[_0x3a4eb7[_0x6fa114(0x1cb)](_0x534e51,0x1)],this['updateClusterRegion']();}catch(_0x35dd22){if(_0x3a4eb7[_0x6fa114(0x195)](_0x3a4eb7[_0x6fa114(0xca)],_0x3a4eb7['HuDMF'])){logger[_0x6fa114(0x13a)](_0x3a4eb7[_0x6fa114(0xe9)]);throw _0x35dd22;}else{_0xc4a1d2[_0x6fa114(0x13a)](_0x3a4eb7[_0x6fa114(0xc9)]);return;}}}async[a3_0xc6ef5c(0xe7)](_0x3aec6d){const _0xce6968=a3_0xc6ef5c,_0x531789={};_0x531789[_0xce6968(0xba)]=function(_0x1cae14,_0x30701c){return _0x1cae14===_0x30701c;},_0x531789['MNzZk']=_0xce6968(0xc5),_0x531789[_0xce6968(0x8b)]=function(_0x3a5a6a,_0x457ea3){return _0x3a5a6a>_0x457ea3;},_0x531789[_0xce6968(0xb6)]=function(_0x4c5e3c,_0x208929){return _0x4c5e3c===_0x208929;},_0x531789[_0xce6968(0x160)]=function(_0x159125,_0x3b0767){return _0x159125===_0x3b0767;},_0x531789[_0xce6968(0x74)]=_0xce6968(0x101),_0x531789['YJffq']=function(_0x49e410,_0x2aa522){return _0x49e410===_0x2aa522;},_0x531789[_0xce6968(0xee)]=_0xce6968(0xa7);const _0x22337f=_0x531789;try{if(_0x22337f[_0xce6968(0xba)](_0x22337f[_0xce6968(0x81)],_0x22337f[_0xce6968(0x81)])){const _0x22888e={};_0x22888e[_0xce6968(0xef)]=projectId,_0x22888e[_0xce6968(0x139)]=_0x3aec6d;const _0x2b3b65=await networkClient[_0xce6968(0x91)](_0x22888e);if(_0x22337f[_0xce6968(0x8b)](_0x2b3b65[_0xce6968(0x1cc)],0x0)&&_0x22337f['hJMSk'](_0x2b3b65[0x0][_0xce6968(0x15b)],_0x3aec6d)){if(_0x22337f['FCvbU'](_0x22337f[_0xce6968(0x74)],_0x22337f[_0xce6968(0x74)]))return!![];else _0x3e8484=_0xd76ca6[_0xce6968(0x6f)](_0xf84b6d[_0x4f4e47[_0xce6968(0x15f)]]);}}else return![];}catch(_0x255e9d){if(_0x22337f['YJffq'](_0x22337f['CyDCw'],_0x22337f[_0xce6968(0xee)]))return![];else this[_0xce6968(0x159)]();}return![];}async[a3_0xc6ef5c(0xe5)](_0x4a1155,_0x2c1949){const _0x20a3bd=a3_0xc6ef5c,_0x773696={};_0x773696[_0x20a3bd(0x1aa)]='GKE\x20Cluster\x20deletion\x20failed',_0x773696[_0x20a3bd(0x112)]=function(_0x4ba59a,_0x44a862){return _0x4ba59a===_0x44a862;},_0x773696[_0x20a3bd(0x1a3)]=function(_0x19f2c5,_0xb90c14){return _0x19f2c5===_0xb90c14;},_0x773696[_0x20a3bd(0xd0)]='kADNX',_0x773696[_0x20a3bd(0x115)]='eHxhk';const _0x5eee5d=_0x773696;try{const _0x4fe869={};_0x4fe869[_0x20a3bd(0xef)]=projectId,_0x4fe869[_0x20a3bd(0x139)]=_0x2c1949;const _0x42431c=await networkClient[_0x20a3bd(0x91)](_0x4fe869);for(const _0x35f624 of _0x42431c[0x0][_0x20a3bd(0x8a)]){const _0x4ddc72=_0x20a3bd(0xdc)+this[_0x20a3bd(0x13f)]+'/regions/'+global_registry[_0x20a3bd(0x15f)]+_0x20a3bd(0x122)+_0x4a1155[0x0];if(_0x5eee5d['WEPhY'](_0x4ddc72,_0x35f624)){if(_0x5eee5d['NSNvu'](_0x5eee5d[_0x20a3bd(0xd0)],_0x5eee5d[_0x20a3bd(0x115)])){_0x24bf04[_0x20a3bd(0x13a)](_0x5eee5d[_0x20a3bd(0x1aa)]);throw _0x39ff15;}else return[!![],_0x4a1155];}}}catch(_0xc96b3c){return logger[_0x20a3bd(0xf3)](_0x20a3bd(0x9e)+_0x4a1155+'.\x20Error:\x20'+_0xc96b3c),[![],[]];}return[![],[]];}async['sendGCPInfoToHST'](){const _0x162210=a3_0xc6ef5c,_0x2ac875=await this['networkClient'][_0x162210(0x1d1)]({'project':this[_0x162210(0x13f)]}),_0x5b945d={};_0x5b945d[_0x162210(0xcf)]=global_registry['bstackUsername'],_0x5b945d['accessKey']=global_registry[_0x162210(0x15d)],_0x5b945d[_0x162210(0x1c7)]=GCP,_0x5b945d['vpcInfo']=[];const _0x10cb1c=_0x5b945d;for(const _0x3e9938 of _0x2ac875){_0x10cb1c['vpcInfo'][_0x162210(0x166)](_0x3e9938);}const _0x162917={};_0x162917[_0x162210(0xc0)]=WS_EVENTS[_0x162210(0x1d6)],_0x162917[_0x162210(0x186)]=_0x10cb1c,this[_0x162210(0x183)][_0x162210(0xe3)](this[_0x162210(0xa3)],_0x162917);}async[a3_0xc6ef5c(0x10a)](){const _0x590cf5=a3_0xc6ef5c,_0x2181fe={'eiiwu':function(_0x3baae,_0x5e6911,_0xe1e242){return _0x3baae(_0x5e6911,_0xe1e242);},'OCGvo':_0x590cf5(0x7f),'suHKN':_0x590cf5(0xda),'uUyaf':function(_0x1a558c,_0x56e716,_0x3ef602){return _0x1a558c(_0x56e716,_0x3ef602);}},_0x20f63a='https://'+AG_API_URL+_0x590cf5(0x8f),_0x5e3494={};_0x5e3494['profileId']=global_registry[_0x590cf5(0x148)];const _0x1050b0={};_0x1050b0['newRegion']=global_registry[_0x590cf5(0x15f)];const _0x3cc012={'searchParams':_0x5e3494,'json':_0x1050b0,'headers':_0x2181fe[_0x590cf5(0xc1)](getAuthHeader,global_registry[_0x590cf5(0x147)],global_registry['bstackAccesskey']),'method':_0x2181fe[_0x590cf5(0x116)],'responseType':_0x2181fe[_0x590cf5(0xff)]},_0x2d9beb=await _0x2181fe[_0x590cf5(0x1bb)](got,_0x20f63a,_0x3cc012);}}const a3_0x1247ad={};function a3_0x2291(){const _0x6f45e8=['clusters','getCluster','jtNvW','yuXJe','MBctu','checkServiceAccount','subnetworks','bBvqq','pWMsA','khpvH','lbOBj','/packages/cli/update-cluster-region','/locations/','get','VGekO','fRkIN','eZiQo','UuDph','location','vcaLW','lsNWA','isBrowserstackCluster','LSAHj','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','isConfigured','DONE','Cannot\x20find\x20subnets\x20','maxNodeCount','Hleac','NzFnO','path','rws','storage.buckets.create','customRoleName','deleteCluster','zmYzH','@google-cloud/compute','iysMe','bpyAU','qIwTt','HKyOG','/clusters/','resourcemanagerClient','log','@google-cloud/resource-manager','keyFile','endpoint','storage.objects.list','getKubeConfigData','lOTHN','hJMSk','storage.buckets.getObjectInsights','zxHhO','getIamPolicy','FkXJu','tYWoB','auth','AVqfP','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','.\x20Error:\x20','type','eiiwu','storage.multipartUploads.list','storage.buckets.listTagBindings','./CloudProvider','ADAQM','BxAvl','2517498aSSAyq','kPNqo','QotZX','HDPoM','sendGCPInfoToHST','CzTgM','RaLsm','pqroP','username','tprst','NetworksClient','listClusters','qisJY','gBfTm','\x20--quiet\x20--user-output-enabled=false','HFpyh','GeCmj','uUhHi','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','json','https://www.googleapis.com/auth/cloud-platform','https://www.googleapis.com/compute/v1/projects/','join','storage.objects.delete','nHRdD','RRRGZ','IHNGN','setIamPolicy','sendEventToBackend','JEkEg','isSubnetsValid','oePkV','isVPCPresent','1CbEeVb','lhUmE','22331060tZtKDS','setupNewCluster','KubeConfigTemplate.yaml','WXzVA','CyDCw','project','getClusterInfo','clusterName','VDDhK','error','LopWt','../utils/utilityMethods','hMEvB','title','minNodeCount','jpObz','instanceType','mexPH','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','XJEHy','project_id','suHKN','YZUUL','Djegq','15UJXkJP','fetchLocalCreds','../config/constants','storage.objects.create','kPDAg','role','MYfkL','storage.objects.setIamPolicy','updateClusterRegion','storage.buckets.deleteTagBinding','IiXto','../utils/userInput','Pdocf','wzUPE','turboscale-service-account','networkClient','WEPhY','parse','storage.buckets.get','dfUvU','OCGvo','isClusterPresent','getUserInput','gkecluster.json','MrUov','regionmap.json','machineType','veDDR','gcloud\x20auth\x20login\x20--cred-file=','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','jBZmB','MfNyl','/subnetworks/','exec','VIPGB','LOG','fHROZ','wYLFM','yvwzD','oxnys','getClient','storage.buckets.list','storage.multipartUploads.create','iPWMR','7|2|4|0|5|3|6|1|8','uOOai','masterAuth','autoscaling','bjYHh','setupServiceAccount','/regions/','xCPrZ','VGNSS','qvuxO','/global/networks/','network','info','RAnxB','qwSDT','fTjqo','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','projectId','NaHmf','UybRJ','6157680SOmNdo','hqSyJ','NufKJ','tfNGo','loadBalancer','bstackUsername','gridProfileId','scopes','AEdWV','KyEal','SxmDd','myxem','Cluster\x20deletion\x20completed','RUNNING','vQDBz','30AKzTHF','COFJK','create','nZSIM','IhEnT','aKbpx','uJtzo','Zeick','setConfig','members','name','iam','bstackAccesskey','LDGzJ','clusterRegion','FCvbU','locations','LNEvU','lIKaF','PIMhm','status','push','default','/roles/','gCfSS','Deleting\x20the\x20cluster\x20','LYxhW','qHyoe','cloudProviderName','gcpConfigSet','IIbkc','Iiysx','toLowerCase','11253627gLWgNv','Service\x20account\x20already\x20exists,\x20skipping','utf-8','76097EPiYFm','QdYZA','QNgpB','nodePools','dGZoA','projects','aQYym','storage.multipartUploads.listParts','managedby','updateWindowsNodeGroup','maxNodes','Creating\x20GKE\x20Cluster','VFqTg','ZXHET','webSocketUtils','tguiC','Creating\x20service\x20account','message','RzhGB','projects/','readFileAsync','data','wlhhz','GoogleCloudProvider','storage.buckets.listEffectiveTags','atiVE','RktUy','toString','exit','bindings','@google-cloud/container','requestBody','wxRnj','Inkwz','ssXXP','ajGzN','ujjkH','BbySN','organizations','yHMWZ','fwfPP','ybHXu','includedPermissions','ytTmn','iamClient','split','NSNvu','Edlct','templates','vYHwc','serviceAccountName','pJdNc','replace','GLzPv','util','storage.objects.update','uvoPA','iam.serviceAccounts.signBlob','vpcInfo','execSync','turboscale_custom_role','https://','serviceAccounts','Found\x20cluster\x20with\x20name\x20\x27','ClusterManagerClient','serviceAccount','UrEur','clusterCaCertificate','storage.objects.getIamPolicy','vlMAB','uUyaf','credentialsPath','getGridHostname','ingress','VaUQK','GKE\x20Cluster\x20deletion\x20failed','491412duKklY','storage.buckets.createTagBinding','resourceLabels','HGNXD','\x20--windows-os-version=ltsc2022\x20--region\x20','NXqfG','cloudProvider','2969607WhaOiE','NjTJI','2|5|1|4|0|6|3','DRCCt','length','HCvjl','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','KlFKN','MpEzC','list','../config/logger','createCluster','nDrfH','storage.multipartUploads.abort','RESOURCES','psfcL','qvnII','GOLMg','cfsms','SnaOc','njWGi','Turboscale\x20Custom\x20Role','/serviceAccounts/','eTraw','serviceAccount:','tKJdj','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','tRynK','oNCIM','containerClient','soVzD','HUbac','concat','child_process','BoZmm','config','configureIfNotConfigured','gYTxo','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','browserstack','ASiEm','.iam.gserviceaccount.com','gcpresources','roles','rsNOF','WkqYO','stack','FkOen','PUT','zIVFZ','MNzZk','MfuwC','Cluster\x20creation\x20failed'];a3_0x2291=function(){return _0x6f45e8;};return a3_0x2291();}a3_0x1247ad[a3_0xc6ef5c(0x18c)]=GoogleCloudProvider,module['exports']=a3_0x1247ad;
|
|
1
|
+
const a3_0x15df6e=a3_0x247e;(function(_0x108242,_0x192cc3){const _0x4f9a80=a3_0x247e,_0x4d5f70=_0x108242();while(!![]){try{const _0x5a564b=-parseInt(_0x4f9a80(0xcc))/0x1*(-parseInt(_0x4f9a80(0x89))/0x2)+parseInt(_0x4f9a80(0x156))/0x3+-parseInt(_0x4f9a80(0xf9))/0x4+parseInt(_0x4f9a80(0x183))/0x5+parseInt(_0x4f9a80(0x166))/0x6*(parseInt(_0x4f9a80(0x1a6))/0x7)+parseInt(_0x4f9a80(0x155))/0x8+-parseInt(_0x4f9a80(0x16f))/0x9;if(_0x5a564b===_0x192cc3)break;else _0x4d5f70['push'](_0x4d5f70['shift']());}catch(_0x1f7ffa){_0x4d5f70['push'](_0x4d5f70['shift']());}}}(a3_0x3aa0,0x33ef7));function a3_0x3aa0(){const _0x49258f=['../config/logger','templates','\x20--quiet\x20--user-output-enabled=false','serviceAccountName','credentialsPath','project','cFHRa','deleteCluster','bcCqX','XLQNC','RpUly','PzDBR','LDarc','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','projects','lAHmn','vOZaK','clusterName','updateWindowsNodeGroup','ZXDsF','NHzmG','70yGrwMy','split','/packages/cli/update-cluster-region','scopes','uFfrw','exit','iam.serviceAccounts.signBlob','ktdeY','AulIT','NduNK','pNenh','/locations/','location','got','https://www.googleapis.com/auth/cloud-platform','gcpresources','ClusterManagerClient','wjCjf','execSync','Creating\x20service\x20account','Service\x20account\x20already\x20exists,\x20skipping','lxrNd','PSPZk','message','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','bstackAccesskey','getClusterInfo','eNyRC','ulvwi','subnetwork','MedUO','DmVyp','webSocketUtils','oamBM','psvtl','https://','PYohM','storage.buckets.create','accounts','NWYmv','minNodes','newRegion','hpwlW','default','exec','storage.multipartUploads.abort','DONE','clusterRegion','SyFXn','../utils/utilityMethods','tqmnr','join','apfTy','nodePools','create','ppPHK','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','CDtPA','rdGJH','ingress','maxNodeCount','.\x20Error:\x20','gcloud\x20auth\x20login\x20--cred-file=','serviceAccount','updateClusterRegion','util','vpcInfo','keyFile','turboscale_custom_role','0|8|2|7|6|5|4|1|3','./CloudProvider','project_id','46006ISzRFE','odHQS','dwgcG','containerClient','LnpJR','NfbZC','lSrKh','UCfqM','YtgBd','cRsTN','parse','kAjmo','cqpYQ','toString','wOsgj','PusvJ','uPLrJ','autoscaling','type','tnvWK','storage.buckets.delete','DFcMR','length','gke_','masterAuth','endpoint','oiapB','AeoZT','kRhqN','FYTUy','HFzDd','surZJ','BBnFy','writeFileSync','get','setIamPolicy','xBjcj','storage.multipartUploads.listParts','LyfPQ','storage.buckets.update','storage.buckets.getIamPolicy','PUT','juweB','imTdi','leucN','storage.objects.delete','qppKE','customRoleName','KTnGm','JLZdu','jJARu','regionmap.json','isConfigured','/roles/','@google-cloud/container','storage.objects.list','replace','QufMl','gcp_credentials.json','OsXUG','jEZqR','RODJr','srwNG','bindings','lAaPY','clusters','browserstack','1ytbJUx','NEGYF','aZkVg','Deleting\x20the\x20cluster\x20','pKcTC','zCEJp','yBsHr','projects/','accessKey','isClusterPresent','getCluster','push','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','setupNewCluster','LkoQY','hkdeO','HMOew','config','Found\x20cluster\x20with\x20name\x20\x27','KosCU','sendGCPInfoToHST','resourceLabels','BsZNo','aZwxx','Kvaxk','vWsWE','clusterCaCertificate','concat','grLTb','getUserInput','oncdV','vvCQh','/subnetworks/','wrFsX','gdgHE','cloudProvider','requestBody','oMciR','ljYrE','iHgeM','FRrln','Cluster\x20creation\x20failed','lYVNB','FeRLI','configureIfNotConfigured','538872MlAsNV','3|0|4|2|1|5|6','CaoMl','profileId','asllh','LmEzc','machineType','data','wQONU','yayff','accountId','gkecluster.json','title','log','role','adIxt','instanceType','zcfux','isVPCPresent','ETcbJ','subnetworks','JBJaY','YvGmZ','kIylg','gNvXg','serviceAccount:','UZLsd','/serviceAccounts/','NjYUg','storage.objects.get','network','storage.buckets.createTagBinding','lrDDO','fdLhq','pzXdn','iDwxz','EyXvo','qoRoC','storage.objects.create','pMQMf','error','../config/constants','../utils/userInput','NVJIU','getClient','trIUT','VZuAT','bstackUsername','Cluster\x20deletion\x20completed','YuwZn','toLowerCase','iam','name','createCluster','getIamPolicy','sendEventToBackend','exports','Bnmzd','storage.buckets.setIamPolicy','nkXNa','getGridHostname','resourcemanagerClient','networkClient','info','bLhAX','pCInV','GoogleCloudProvider','gQENw','storage.multipartUploads.create','RUNNING','storage.objects.update','fetchLocalCreds','jCrdV','KgAML','TFASD','maxNodes','dWafa','LOG','.iam.gserviceaccount.com','storage.buckets.getObjectInsights','setConfig','zmezO','qQabO','Wllrs','osmVI','projectId','\x20--windows-os-version=ltsc2022\x20--region\x20','jrFQz','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','mnuQP','ZZRlG','bAHHC','1273320hYLBFT','26811cKZsPJ','swSog','wGrhN','qrbdh','nQgqF','rws','SMAJT','NOnap','VYzMn','CGgih','loadBalancer','readFileAsync','child_process','gcpConfigSet','HYnTm','setupServiceAccount','60906DwUPnZ','iamClient','https://www.googleapis.com/compute/v1/projects/','NetworksClient','pFJQO','list','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','laPYD','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','2395944rYTHko','checkServiceAccount','NPuFa','FZMPF','szarT','minNodeCount','parent','jzYFG','yfuRq','UIeAG','hiDMu','ynDrq','utf-8','fCQbd','GjnAV','pEKrk','LgZOW','locations','/global/networks/','status','1605230sAcljG','zlDaR','PijIt','members','dzusW','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','organizations','auth','IRMKu','includedPermissions','Cannot\x20find\x20subnets\x20','/regions/','managedby','storage.multipartUploads.list'];a3_0x3aa0=function(){return _0x49258f;};return a3_0x3aa0();}const fs=require('fs'),path=require('path'),got=require(a3_0x15df6e(0x1b3)),util=require(a3_0x15df6e(0x82)),cp=require(a3_0x15df6e(0x162)),{google}=require('googleapis'),compute=require('@google-cloud/compute'),container=require(a3_0x15df6e(0xbf)),{ProjectsClient}=require('@google-cloud/resource-manager')['v3'],{logger}=require(a3_0x15df6e(0x191)),{CloudProvider}=require(a3_0x15df6e(0x87)),{getDirForConfig,getAuthHeader}=require(a3_0x15df6e(0x1d7)),{deleteRoutingDeps,deleteAgent}=require('../utils/gridComponents'),{inputConfirmation,closeInput}=require(a3_0x15df6e(0x123)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x15df6e(0x122));class GoogleCloudProvider extends CloudProvider{constructor(_0x2d0d20,_0x2314de,_0x5491d1,_0x2aa9e5){const _0x285c99=a3_0x15df6e,_0x2f1f2e={};_0x2f1f2e[_0x285c99(0x17a)]=_0x285c99(0x86),_0x2f1f2e[_0x285c99(0x11a)]=_0x285c99(0x85),_0x2f1f2e['swSog']='turboscale-service-account';const _0x7fccdd=_0x2f1f2e,_0x52d874=_0x7fccdd[_0x285c99(0x17a)][_0x285c99(0x1a7)]('|');let _0x404027=0x0;while(!![]){switch(_0x52d874[_0x404027++]){case'0':super(GCP,_0x2d0d20,_0x2314de,_0x5491d1,_0x2aa9e5);continue;case'1':this[_0x285c99(0xb8)]=_0x7fccdd[_0x285c99(0x11a)];continue;case'2':this[_0x285c99(0x137)]=null;continue;case'3':this[_0x285c99(0x194)]=_0x7fccdd[_0x285c99(0x157)];continue;case'4':this[_0x285c99(0x14e)]=null;continue;case'5':this['credentialsPath']=null;continue;case'6':this[_0x285c99(0x167)]=null;continue;case'7':this[_0x285c99(0x136)]=null;continue;case'8':this['containerClient']=null;continue;}break;}}['configureIfNotConfigured'](){const _0x29dfba=a3_0x15df6e,_0x3a42a4={};_0x3a42a4[_0x29dfba(0x17d)]='GKE\x20Cluster\x20deletion\x20failed',_0x3a42a4[_0x29dfba(0xf1)]=function(_0x149d1d,_0x4b07dd){return _0x149d1d===_0x4b07dd;},_0x3a42a4[_0x29dfba(0xdb)]='PvWIq';const _0x3efd6f=_0x3a42a4;if(!this[_0x29dfba(0xbd)]()){if(_0x3efd6f[_0x29dfba(0xf1)](_0x3efd6f[_0x29dfba(0xdb)],_0x3efd6f[_0x29dfba(0xdb)]))this[_0x29dfba(0x149)]();else{_0x303cc5[_0x29dfba(0x138)](_0x3efd6f[_0x29dfba(0x17d)]);throw _0x5c65b4;}}}[a3_0x15df6e(0xbd)](){const _0x57eaa2=a3_0x15df6e,_0x292216={};_0x292216[_0x57eaa2(0x179)]=function(_0x1a12f9,_0x407379){return _0x1a12f9===_0x407379;};const _0x491886=_0x292216;return _0x491886[_0x57eaa2(0x179)](global_registry[_0x57eaa2(0x163)],!![]);}[a3_0x15df6e(0x149)](){const _0x4c2059=a3_0x15df6e,_0x185297=this[_0x4c2059(0x195)],_0x51a31b={};_0x51a31b['keyFile']=_0x185297,this[_0x4c2059(0x8c)]=new container['v1'][(_0x4c2059(0x1b6))](_0x51a31b);const _0x247b06={};_0x247b06[_0x4c2059(0x84)]=_0x185297,this[_0x4c2059(0x137)]=new compute['v1'][(_0x4c2059(0x169))](_0x247b06);const _0x34124f={};_0x34124f['keyFile']=_0x185297,this[_0x4c2059(0x136)]=new ProjectsClient(_0x34124f),this[_0x4c2059(0x167)]=google[_0x4c2059(0x12c)]('v1'),global_registry[_0x4c2059(0x163)]=!![];}async[a3_0x15df6e(0xe9)](_0x37c28a,_0x21a80a){const _0x1808eb=a3_0x15df6e,_0x1db336={'Gjpff':function(_0x278cb9,_0x4dafde){return _0x278cb9(_0x4dafde);},'yayff':function(_0x5262de){return _0x5262de();},'PgioA':_0x1808eb(0xc3)},_0x2104ba=await _0x1db336['Gjpff'](_0x37c28a,_0x1808eb(0x1de));let _0x47e4d6=await fs[_0x1808eb(0x161)](_0x2104ba);_0x47e4d6=_0x47e4d6[_0x1808eb(0x96)]();const _0x1a9c5d=_0x1db336[_0x1808eb(0x102)](getDirForConfig),_0x331693=path[_0x1808eb(0x1d9)](_0x1a9c5d,_0x1db336['PgioA']);fs[_0x1808eb(0xaa)](_0x331693,_0x47e4d6),this[_0x1808eb(0x195)]=_0x331693;const _0x3d1b0d={};return _0x3d1b0d[_0x1808eb(0x84)]=_0x331693,_0x21a80a[_0x1808eb(0xef)][GCP]=_0x3d1b0d,_0x47e4d6=JSON[_0x1808eb(0x93)](_0x47e4d6),this['projectId']=_0x47e4d6[_0x1808eb(0x88)],_0x21a80a;}async[a3_0x15df6e(0x140)](_0x31824e){const _0x46d8ba=a3_0x15df6e;this[_0x46d8ba(0x195)]=_0x31824e[this['cloudProviderName']][_0x46d8ba(0x84)];let _0x4ada96=await fs[_0x46d8ba(0x161)](this[_0x46d8ba(0x195)]);_0x4ada96=JSON[_0x46d8ba(0x93)](_0x4ada96),this[_0x46d8ba(0x14e)]=_0x4ada96[_0x46d8ba(0x88)];}[a3_0x15df6e(0x135)](_0x8d0535){const _0x3b0fa6=a3_0x15df6e;return _0x8d0535[_0x3b0fa6(0x182)][_0x3b0fa6(0x160)][_0x3b0fa6(0x7c)][0x0]['ip'];}async['isBrowserstackCluster'](){const _0xf74a48=a3_0x15df6e,_0x2124d9={};_0x2124d9[_0xf74a48(0x14c)]=function(_0x159a3b,_0x18405f){return _0x159a3b!==_0x18405f;},_0x2124d9['Bnmzd']=function(_0x49727a,_0x3f9c3a){return _0x49727a===_0x3f9c3a;},_0x2124d9[_0xf74a48(0xe4)]=function(_0x4e8898,_0x3f0612){return _0x4e8898===_0x3f0612;},_0x2124d9[_0xf74a48(0x124)]=function(_0x26440b,_0x386f67){return _0x26440b===_0x386f67;},_0x2124d9[_0xf74a48(0x17e)]=_0xf74a48(0x126),_0x2124d9[_0xf74a48(0x177)]=_0xf74a48(0x171),_0x2124d9[_0xf74a48(0x8a)]='OpUqG',_0x2124d9[_0xf74a48(0x10e)]=function(_0x43e0f8,_0xea8629){return _0x43e0f8===_0xea8629;},_0x2124d9[_0xf74a48(0x172)]='browserstack',_0x2124d9[_0xf74a48(0x178)]=_0xf74a48(0x158);const _0x7ff0aa=_0x2124d9;try{if(_0x7ff0aa[_0xf74a48(0x124)](_0x7ff0aa[_0xf74a48(0x17e)],_0x7ff0aa[_0xf74a48(0x17e)])){const _0x3c702e=await this[_0xf74a48(0x1c0)]();if(_0x3c702e[0x0]?.[_0xf74a48(0xe1)]?.[_0xf74a48(0x18f)]){if(_0x7ff0aa['Wllrs'](_0x7ff0aa['yfuRq'],_0x7ff0aa[_0xf74a48(0x8a)])){const _0x12667d=_0x3c702e[0x0]?.[_0xf74a48(0xe1)]?.[_0xf74a48(0x18f)];return _0x12667d&&_0x7ff0aa[_0xf74a48(0x10e)](_0x12667d[_0xf74a48(0x12b)](),_0x7ff0aa['FZMPF']);}else return _0x7ff0aa[_0xf74a48(0x14c)](_0x1107f4['clusterRegion'],_0x34ff95[0x0])&&(_0x24f96f[_0xf74a48(0x1d5)]=_0x397bdb[0x0],this[_0xf74a48(0x81)]()),!![];}}else _0x7ff0aa[_0xf74a48(0x132)](_0x70490b[_0xf74a48(0x12d)],this[_0xf74a48(0x1a2)])&&_0x3d1733[_0xf74a48(0xd7)](_0x1975d8);}catch(_0x594605){return _0x7ff0aa[_0xf74a48(0x14c)](_0x7ff0aa[_0xf74a48(0x178)],_0x7ff0aa[_0xf74a48(0x178)])?_0x7ff0aa[_0xf74a48(0xe4)](_0x5af7bd[_0xf74a48(0x163)],!![]):![];}return![];}async[a3_0x15df6e(0xd5)](){const _0x5b1bde=a3_0x15df6e,_0x3cf0f5={'pMQMf':_0x5b1bde(0xf5),'osmVI':function(_0x322ffe,_0x5139d3){return _0x322ffe===_0x5139d3;},'HMOew':_0x5b1bde(0xcb),'eNyRC':'templates','leucN':'gcpresources','juweB':'regionmap.json','apfTy':_0x5b1bde(0x17b),'oiapB':function(_0x193a1f,_0x1356b8){return _0x193a1f!==_0x1356b8;},'nQgqF':function(_0xa03ebb,_0x2e60a2){return _0xa03ebb===_0x2e60a2;},'LyfPQ':_0x5b1bde(0x13c),'PSPZk':_0x5b1bde(0xa8),'vOZaK':'hVfjC','NOnap':_0x5b1bde(0xfe),'gdgHE':'YLUTS','RODJr':function(_0x1f5935,_0x12cb54){return _0x1f5935===_0x12cb54;},'laPYD':function(_0x540cc9,_0x3463a0){return _0x540cc9!==_0x3463a0;},'pCInV':_0x5b1bde(0xb9),'grLTb':function(_0x255220,_0x1479ec){return _0x255220===_0x1479ec;},'jEZqR':'Zbmws','uPLrJ':function(_0x1d1cbd,_0x23059d){return _0x1d1cbd===_0x23059d;},'OsXUG':'ZWpQv','CGgih':function(_0x8bdc37,_0x2b3107){return _0x8bdc37>_0x2b3107;},'BsZNo':_0x5b1bde(0xa9),'PGSJR':_0x5b1bde(0x164),'PYohM':function(_0x584876,_0x124534){return _0x584876<_0x124534;},'dwgcG':function(_0x20f8d8,_0x1af1b0){return _0x20f8d8!==_0x1af1b0;},'xXLFe':'Ixvdj','PijIt':_0x5b1bde(0x8e),'wOsgj':function(_0x8367c6,_0xb1b6cd){return _0x8367c6+_0xb1b6cd;},'NHzmG':function(_0x176a12,_0x1b9487){return _0x176a12(_0x1b9487);},'lAaPY':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','zcfux':function(_0x3cea52,_0x590472){return _0x3cea52(_0x590472);},'IyZWp':function(_0x431ed3,_0x2a0b73){return _0x431ed3<=_0x2a0b73;},'sQIPn':function(_0x226539,_0x46eede){return _0x226539>_0x46eede;},'ZZRlG':'WKzpW','LDarc':_0x5b1bde(0xd8),'ulvwi':function(_0x15436f){return _0x15436f();},'jrFQz':function(_0x5f36e7,_0x4a1de9){return _0x5f36e7-_0x4a1de9;},'bAHHC':function(_0x2117b0,_0x511f28){return _0x2117b0!==_0x511f28;},'PEDfn':function(_0x4a63ee,_0x5e80ee){return _0x4a63ee-_0x5e80ee;},'pzXdn':_0x5b1bde(0xd0),'VYzMn':_0x5b1bde(0x127),'nkXNa':function(_0x426bd8,_0x38398b){return _0x426bd8-_0x38398b;}};this[_0x5b1bde(0xf8)]();let _0x488557=await fs[_0x5b1bde(0x161)](path['join'](__dirname,'..',_0x3cf0f5[_0x5b1bde(0x1c1)],_0x3cf0f5[_0x5b1bde(0xb5)],_0x3cf0f5[_0x5b1bde(0xb3)]),_0x3cf0f5[_0x5b1bde(0x1da)]);_0x488557=JSON[_0x5b1bde(0x93)](_0x488557);let _0x4c352c=[global_registry[_0x5b1bde(0x1d5)]];_0x3cf0f5[_0x5b1bde(0xa3)](_0x488557[global_registry['clusterRegion']],undefined)&&(_0x3cf0f5[_0x5b1bde(0x15a)](_0x3cf0f5[_0x5b1bde(0xaf)],_0x3cf0f5[_0x5b1bde(0x1bc)])?this[_0x5b1bde(0x149)]():_0x4c352c=_0x4c352c['concat'](_0x488557[global_registry[_0x5b1bde(0x1d5)]]));const _0x44164d=[];for await(let _0x242348 of _0x4c352c){if(_0x3cf0f5['nQgqF'](_0x3cf0f5[_0x5b1bde(0x1a1)],_0x3cf0f5[_0x5b1bde(0x15d)]))return _0x3391ad[_0x5b1bde(0x121)](_0x5b1bde(0x18d)+_0x534d21+_0x5b1bde(0x7e)+_0x7d41fb),[![],[]];else{const _0x48cf29={};_0x48cf29[_0x5b1bde(0x175)]=_0x5b1bde(0xd3)+this[_0x5b1bde(0x14e)]+_0x5b1bde(0x1b1)+_0x242348;const _0x287b44=_0x48cf29,_0x58807f=await this[_0x5b1bde(0x8c)]['listClusters'](_0x287b44);for(const _0x1a20b2 of _0x58807f[0x0][_0x5b1bde(0xca)]){if(_0x3cf0f5[_0x5b1bde(0x14d)](_0x3cf0f5[_0x5b1bde(0xee)],_0x3cf0f5[_0x5b1bde(0xee)])){if(_0x3cf0f5[_0x5b1bde(0xc6)](_0x1a20b2[_0x5b1bde(0x12d)],this[_0x5b1bde(0x1a2)])){if(_0x3cf0f5[_0x5b1bde(0x16d)](_0x3cf0f5[_0x5b1bde(0x13a)],_0x3cf0f5['pCInV']))return!![];else _0x44164d['push'](_0x242348);}}else _0x21e6d8[_0x5b1bde(0x138)](_0x3cf0f5[_0x5b1bde(0x120)]);}}}const _0x45b0c6=_0x44164d[_0x5b1bde(0x9f)];if(_0x3cf0f5[_0x5b1bde(0x14d)](_0x45b0c6,0x1)){if(_0x3cf0f5[_0x5b1bde(0xe8)](_0x3cf0f5[_0x5b1bde(0xc5)],_0x3cf0f5[_0x5b1bde(0xc5)]))return _0x3cf0f5[_0x5b1bde(0xa3)](global_registry[_0x5b1bde(0x1d5)],_0x44164d[0x0])&&(_0x3cf0f5[_0x5b1bde(0x99)](_0x3cf0f5[_0x5b1bde(0xc4)],_0x3cf0f5[_0x5b1bde(0xc4)])?(global_registry[_0x5b1bde(0x1d5)]=_0x44164d[0x0],this[_0x5b1bde(0x81)]()):!this[_0x5b1bde(0xbd)]()&&this['setConfig']()),!![];else _0x186f81[_0x5b1bde(0x83)][_0x5b1bde(0xd7)](_0x2db8e1);}else{if(_0x3cf0f5[_0x5b1bde(0x15f)](_0x45b0c6,0x1)){if(_0x3cf0f5[_0x5b1bde(0xa3)](_0x3cf0f5[_0x5b1bde(0xe2)],_0x3cf0f5['PGSJR'])){console[_0x5b1bde(0x106)](_0x5b1bde(0xde)+this[_0x5b1bde(0x1a2)]+_0x5b1bde(0x151));for(let _0x29ddb7=0x0;_0x3cf0f5[_0x5b1bde(0x1ca)](_0x29ddb7,_0x45b0c6);_0x29ddb7+=0x1){if(_0x3cf0f5[_0x5b1bde(0x8b)](_0x3cf0f5['xXLFe'],_0x3cf0f5[_0x5b1bde(0x185)]))console[_0x5b1bde(0x106)]('['+_0x3cf0f5[_0x5b1bde(0x97)](_0x29ddb7,0x1)+']\x20'+_0x44164d[_0x29ddb7]);else{const _0x3c270e=_0x5b1bde(0x168)+this[_0x5b1bde(0x14e)]+_0x5b1bde(0x18e)+_0x19f917[_0x5b1bde(0x1d5)]+_0x5b1bde(0xec)+_0x3a9f50[0x0];if(_0x3cf0f5['osmVI'](_0x3c270e,_0x56ecb1))return[!![],_0x1e95f2];}}const _0x3743ef=await _0x3cf0f5[_0x5b1bde(0x1a5)](inputConfirmation,_0x3cf0f5[_0x5b1bde(0xc9)]),_0x1e0d90=_0x3cf0f5[_0x5b1bde(0x1a5)](Number,_0x3743ef);if(_0x3cf0f5[_0x5b1bde(0x10a)](isNaN,_0x1e0d90)||_0x3cf0f5['IyZWp'](_0x1e0d90,0x0)||_0x3cf0f5['sQIPn'](_0x1e0d90,_0x45b0c6)){if(_0x3cf0f5[_0x5b1bde(0x99)](_0x3cf0f5[_0x5b1bde(0x153)],_0x3cf0f5[_0x5b1bde(0x153)]))console[_0x5b1bde(0x121)](_0x3cf0f5[_0x5b1bde(0x19d)]),process[_0x5b1bde(0x1ab)](0x1);else return![];}_0x3cf0f5[_0x5b1bde(0x1c2)](closeInput),logger[_0x5b1bde(0x138)](_0x5b1bde(0x16e)+_0x44164d[_0x3cf0f5[_0x5b1bde(0x150)](_0x1e0d90,0x1)]);if(_0x3cf0f5[_0x5b1bde(0x154)](global_registry[_0x5b1bde(0x1d5)],_0x44164d[_0x3cf0f5['PEDfn'](_0x1e0d90,0x1)])){if(_0x3cf0f5['bAHHC'](_0x3cf0f5[_0x5b1bde(0x11b)],_0x3cf0f5[_0x5b1bde(0x15e)]))global_registry[_0x5b1bde(0x1d5)]=_0x44164d[_0x3cf0f5[_0x5b1bde(0x134)](_0x1e0d90,0x1)],this['updateClusterRegion']();else return![];}return!![];}else{const _0x2a653b=_0x3e32c2[0x0]?.[_0x5b1bde(0xe1)]?.[_0x5b1bde(0x18f)];return _0x2a653b&&_0x3cf0f5['osmVI'](_0x2a653b[_0x5b1bde(0x12b)](),_0x3cf0f5[_0x5b1bde(0xdc)]);}}}return![];}async[a3_0x15df6e(0x1c0)](){const _0x62ea7d=a3_0x15df6e,_0x19c74e=await this[_0x62ea7d(0x8c)][_0x62ea7d(0xd6)]({'name':_0x62ea7d(0xd3)+this[_0x62ea7d(0x14e)]+_0x62ea7d(0x1b1)+global_registry['clusterRegion']+'/clusters/'+this[_0x62ea7d(0x1a2)]});return _0x19c74e;}async['getKubeConfigData'](){const _0x493c9d=a3_0x15df6e,_0x2e9b3a={};_0x2e9b3a[_0x493c9d(0xeb)]=_0x493c9d(0x192),_0x2e9b3a[_0x493c9d(0x101)]=_0x493c9d(0x1b5),_0x2e9b3a[_0x493c9d(0xc7)]='KubeConfigTemplate.yaml';const _0x1eacae=_0x2e9b3a;cp[_0x493c9d(0x1b8)]('gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false'),cp[_0x493c9d(0x1d2)](_0x493c9d(0x7f)+this['credentialsPath']);const _0x284565=await this['getClusterInfo'](),_0x214d1e=_0x493c9d(0xa0)+this[_0x493c9d(0x14e)]+'_'+global_registry['clusterRegion']+'_'+this[_0x493c9d(0x1a2)];let _0x5efd25=await fs[_0x493c9d(0x161)](path[_0x493c9d(0x1d9)](__dirname,'..',_0x1eacae[_0x493c9d(0xeb)],_0x1eacae[_0x493c9d(0x101)],_0x1eacae['srwNG']));return _0x5efd25=_0x5efd25[_0x493c9d(0x96)](),_0x5efd25=_0x5efd25[_0x493c9d(0xc1)](/<CLUSTER_NAME>/g,_0x214d1e),_0x5efd25=_0x5efd25[_0x493c9d(0xc1)](/<CLUSTER_URL>/g,_0x493c9d(0x1c9)+_0x284565[0x0][_0x493c9d(0xa2)]),_0x5efd25=_0x5efd25[_0x493c9d(0xc1)](/<CERTIFICATE_DATA>/g,_0x284565[0x0][_0x493c9d(0xa1)][_0x493c9d(0xe6)]),_0x5efd25;}async[a3_0x15df6e(0x170)](){const _0x3870a2=a3_0x15df6e,_0x1da346={};_0x1da346[_0x3870a2(0xc2)]=function(_0x41ab98,_0x2bf615){return _0x41ab98-_0x2bf615;},_0x1da346[_0x3870a2(0x145)]='Service\x20account\x20already\x20exists,\x20skipping',_0x1da346[_0x3870a2(0x1a0)]=_0x3870a2(0x1b4),_0x1da346[_0x3870a2(0xf4)]=function(_0x56f556,_0x3eb7b2){return _0x56f556===_0x3eb7b2;},_0x1da346[_0x3870a2(0x1c7)]=_0x3870a2(0xb7),_0x1da346[_0x3870a2(0xba)]=function(_0xc42bc,_0x3a2610){return _0xc42bc!==_0x3a2610;},_0x1da346[_0x3870a2(0x1b7)]=_0x3870a2(0x1cd);const _0x55c9e7=_0x1da346,_0x3e01f8={};_0x3e01f8[_0x3870a2(0x1a9)]=[_0x55c9e7[_0x3870a2(0x1a0)]],_0x3e01f8['keyFile']=this['credentialsPath'];const _0x4c6d4a=await google[_0x3870a2(0x18a)][_0x3870a2(0x125)](_0x3e01f8),_0x55d9a2=await this[_0x3870a2(0x167)][_0x3870a2(0x19f)]['serviceAccounts'][_0x3870a2(0x16b)]({'name':'projects/'+this[_0x3870a2(0x14e)],'auth':_0x4c6d4a});for(const _0x2dca02 of _0x55d9a2?.[_0x3870a2(0x100)]?.[_0x3870a2(0x1cc)]){if(_0x55c9e7[_0x3870a2(0xf4)](_0x55c9e7['oamBM'],_0x55c9e7[_0x3870a2(0x1c7)])){if(_0x55c9e7[_0x3870a2(0xf4)](_0x2dca02?.[_0x3870a2(0x12d)],_0x3870a2(0xd3)+this['projectId']+'/serviceAccounts/'+this[_0x3870a2(0x194)]+'@'+this[_0x3870a2(0x14e)]+'.iam.gserviceaccount.com')){if(_0x55c9e7['JLZdu'](_0x55c9e7[_0x3870a2(0x1b7)],_0x55c9e7[_0x3870a2(0x1b7)]))_0x12fc1f[_0x3870a2(0x1d5)]=_0x57b2a7[_0x55c9e7[_0x3870a2(0xc2)](_0x1fd375,0x1)],this[_0x3870a2(0x81)]();else return!![];}}else{_0x31893f[_0x3870a2(0x138)](_0x55c9e7['dWafa']);return;}}return![];}async[a3_0x15df6e(0x165)](){const _0x37412c=a3_0x15df6e,_0x5db34d={};_0x5db34d[_0x37412c(0x1c8)]=function(_0x14c182,_0x105ce5){return _0x14c182!==_0x105ce5;},_0x5db34d['LNjRM']=_0x37412c(0x119),_0x5db34d[_0x37412c(0x187)]=_0x37412c(0xea),_0x5db34d[_0x37412c(0xad)]=_0x37412c(0x1ba),_0x5db34d[_0x37412c(0x141)]=_0x37412c(0x1b9),_0x5db34d[_0x37412c(0x18b)]=_0x37412c(0x1b4),_0x5db34d[_0x37412c(0x173)]=_0x37412c(0x1ac),_0x5db34d[_0x37412c(0x11e)]=_0x37412c(0x1cb),_0x5db34d[_0x37412c(0x8f)]=_0x37412c(0x118),_0x5db34d[_0x37412c(0x1c5)]=_0x37412c(0x9d),_0x5db34d['KgAML']='storage.buckets.deleteTagBinding',_0x5db34d[_0x37412c(0x184)]='storage.buckets.get',_0x5db34d[_0x37412c(0x1d0)]=_0x37412c(0xb1),_0x5db34d[_0x37412c(0x11c)]=_0x37412c(0x148),_0x5db34d[_0x37412c(0x98)]='storage.buckets.list',_0x5db34d[_0x37412c(0xe5)]='storage.buckets.listEffectiveTags',_0x5db34d['bcCqX']='storage.buckets.listTagBindings',_0x5db34d[_0x37412c(0xa5)]=_0x37412c(0x133),_0x5db34d[_0x37412c(0x1b0)]=_0x37412c(0xb0),_0x5db34d['aZwxx']=_0x37412c(0x1d3),_0x5db34d[_0x37412c(0xda)]=_0x37412c(0x13d),_0x5db34d[_0x37412c(0x19c)]=_0x37412c(0x190),_0x5db34d[_0x37412c(0x1c4)]=_0x37412c(0xae),_0x5db34d['SyFXn']=_0x37412c(0x11f),_0x5db34d[_0x37412c(0xce)]=_0x37412c(0xb6),_0x5db34d['FYTUy']=_0x37412c(0x116),_0x5db34d[_0x37412c(0xfd)]='storage.objects.getIamPolicy',_0x5db34d[_0x37412c(0xb4)]=_0x37412c(0xc0),_0x5db34d[_0x37412c(0xbb)]='storage.objects.setIamPolicy',_0x5db34d['JDYBo']=_0x37412c(0x13f),_0x5db34d[_0x37412c(0x92)]='Turboscale\x20Custom\x20Role',_0x5db34d['YvGmZ']=_0x37412c(0x16c);const _0x539d0b=_0x5db34d,_0x3e7e5a=await this[_0x37412c(0x170)]();if(_0x3e7e5a){if(_0x539d0b['psvtl'](_0x539d0b['LNjRM'],_0x539d0b['dzusW'])){logger[_0x37412c(0x138)](_0x539d0b[_0x37412c(0xad)]);return;}else _0x1b40ab=_0x2b5ed1[_0x37412c(0xe7)](_0x537895[_0x21a3d2[_0x37412c(0x1d5)]]);}logger['info'](_0x539d0b[_0x37412c(0x141)]);const _0x179903={};_0x179903['scopes']=[_0x539d0b[_0x37412c(0x18b)]],_0x179903['keyFile']=this['credentialsPath'];const _0x571b63=await google[_0x37412c(0x18a)]['getClient'](_0x179903),_0x4db713={};_0x4db713[_0x37412c(0x18c)]=[_0x539d0b[_0x37412c(0x173)],_0x539d0b[_0x37412c(0x11e)],_0x539d0b['lSrKh'],_0x539d0b[_0x37412c(0x1c5)],_0x539d0b[_0x37412c(0x142)],_0x539d0b['zlDaR'],_0x539d0b[_0x37412c(0x1d0)],_0x539d0b[_0x37412c(0x11c)],_0x539d0b[_0x37412c(0x98)],_0x539d0b[_0x37412c(0xe5)],_0x539d0b[_0x37412c(0x199)],_0x539d0b['kRhqN'],_0x539d0b[_0x37412c(0x1b0)],_0x539d0b[_0x37412c(0xe3)],_0x539d0b[_0x37412c(0xda)],_0x539d0b[_0x37412c(0x19c)],_0x539d0b['MedUO'],_0x539d0b[_0x37412c(0x1d6)],_0x539d0b[_0x37412c(0xce)],_0x539d0b[_0x37412c(0xa6)],_0x539d0b[_0x37412c(0xfd)],_0x539d0b[_0x37412c(0xb4)],_0x539d0b[_0x37412c(0xbb)],_0x539d0b['JDYBo']],_0x4db713[_0x37412c(0x105)]=_0x539d0b[_0x37412c(0x92)],await this[_0x37412c(0x167)][_0x37412c(0x189)]['roles'][_0x37412c(0x1dc)]({'parent':_0x37412c(0xd3)+this[_0x37412c(0x14e)],'requestBody':{'role':_0x4db713,'roleId':this['customRoleName']},'auth':_0x571b63});const _0x2f2bc9={};_0x2f2bc9[_0x37412c(0x12d)]='projects/'+this[_0x37412c(0x14e)],_0x2f2bc9[_0x37412c(0xf0)]={},_0x2f2bc9[_0x37412c(0x18a)]=_0x571b63,_0x2f2bc9[_0x37412c(0xf0)][_0x37412c(0x103)]=this[_0x37412c(0x194)];const _0x2414f8=_0x2f2bc9;await this[_0x37412c(0x167)]['projects']['serviceAccounts'][_0x37412c(0x1dc)](_0x2414f8);let _0x4b18ce=await this[_0x37412c(0x136)][_0x37412c(0x12f)]({'resource':'projects/'+this[_0x37412c(0x14e)]});_0x4b18ce=_0x4b18ce[0x0][_0x37412c(0xc8)];const _0x9b1437={};_0x9b1437[_0x37412c(0x107)]=_0x37412c(0xd3)+this[_0x37412c(0x14e)]+_0x37412c(0xbe)+this[_0x37412c(0xb8)],_0x9b1437[_0x37412c(0x186)]=[_0x37412c(0x112)+this[_0x37412c(0x194)]+'@'+this['projectId']+_0x37412c(0x147)],_0x4b18ce[_0x37412c(0xd7)](_0x9b1437);const _0x20eda9={};_0x20eda9[_0x37412c(0xc8)]=_0x4b18ce,await this[_0x37412c(0x136)][_0x37412c(0xac)]({'resource':_0x37412c(0xd3)+this[_0x37412c(0x14e)],'policy':_0x20eda9}),logger['info'](_0x539d0b[_0x37412c(0x10f)]);}async[a3_0x15df6e(0xd9)](_0x329e01=a3_0x15df6e(0x1d1),_0xdb8b9b=[a3_0x15df6e(0x1d1)]){const _0x8eb0e2=a3_0x15df6e,_0x513036={};_0x513036[_0x8eb0e2(0x95)]=_0x8eb0e2(0xfa),_0x513036['WhExZ']=_0x8eb0e2(0x188),_0x513036[_0x8eb0e2(0x9e)]='Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account';const _0x1a35bf=_0x513036,_0x36ece4=_0x1a35bf[_0x8eb0e2(0x95)][_0x8eb0e2(0x1a7)]('|');let _0x520567=0x0;while(!![]){switch(_0x36ece4[_0x520567++]){case'0':const _0x2d1981={};_0x2d1981[_0x8eb0e2(0x9b)]=WS_EVENTS[_0x8eb0e2(0x146)],_0x2d1981[_0x8eb0e2(0x1bd)]=_0x1a35bf['WhExZ'],this['webSocketUtils'][_0x8eb0e2(0x130)](this['rws'],_0x2d1981);continue;case'1':await this[_0x8eb0e2(0x12e)](_0x329e01,_0xdb8b9b);continue;case'2':await this[_0x8eb0e2(0x165)]();continue;case'3':this['sendGCPInfoToHST'](this[_0x8eb0e2(0x15b)]);continue;case'4':logger[_0x8eb0e2(0x138)](_0x1a35bf['DFcMR']);continue;case'5':await this[_0x8eb0e2(0x1a3)]();continue;case'6':return!![];}break;}}async[a3_0x15df6e(0x12e)](_0x48ff88=a3_0x15df6e(0x1d1),_0x19c209=[a3_0x15df6e(0x1d1)]){const _0x5937b8=a3_0x15df6e,_0x44abc7={};_0x44abc7[_0x5937b8(0xa4)]=function(_0x648512,_0x3d409e){return _0x648512===_0x3d409e;},_0x44abc7[_0x5937b8(0xfb)]='Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.',_0x44abc7['TFASD']=_0x5937b8(0x159),_0x44abc7[_0x5937b8(0x11d)]='Creating\x20GKE\x20Cluster',_0x44abc7['fCQbd']='templates',_0x44abc7[_0x5937b8(0x115)]=_0x5937b8(0x1b5),_0x44abc7[_0x5937b8(0x111)]=_0x5937b8(0x104),_0x44abc7[_0x5937b8(0x14b)]='utf-8',_0x44abc7[_0x5937b8(0x12a)]=_0x5937b8(0xbc),_0x44abc7[_0x5937b8(0xd2)]=function(_0x1709e6,_0x1dad40){return _0x1709e6*_0x1dad40;},_0x44abc7[_0x5937b8(0xed)]=function(_0xf0c4,_0x2146a9){return _0xf0c4!==_0x2146a9;},_0x44abc7[_0x5937b8(0xf7)]='DHfjq',_0x44abc7[_0x5937b8(0x1dd)]='OdJXC',_0x44abc7[_0x5937b8(0xcd)]='Fqjal',_0x44abc7[_0x5937b8(0x94)]=_0x5937b8(0x19e),_0x44abc7[_0x5937b8(0x15c)]=function(_0x106382,_0x359064){return _0x106382!==_0x359064;},_0x44abc7[_0x5937b8(0x1a4)]=_0x5937b8(0x197),_0x44abc7[_0x5937b8(0x1aa)]=_0x5937b8(0xf5);const _0x307287=_0x44abc7;try{if(_0x307287['AeoZT'](_0x307287[_0x5937b8(0x143)],_0x307287[_0x5937b8(0x143)])){logger[_0x5937b8(0x138)](_0x307287[_0x5937b8(0x11d)]);let _0x51b433=await fs[_0x5937b8(0x161)](path[_0x5937b8(0x1d9)](__dirname,'..',_0x307287[_0x5937b8(0x17c)],_0x307287[_0x5937b8(0x115)],_0x307287[_0x5937b8(0x111)]),_0x307287['qQabO']);_0x51b433=JSON[_0x5937b8(0x93)](_0x51b433);let _0x339ff4=await fs[_0x5937b8(0x161)](path['join'](__dirname,'..',_0x307287[_0x5937b8(0x17c)],_0x307287[_0x5937b8(0x115)],_0x307287[_0x5937b8(0x12a)]),_0x307287[_0x5937b8(0x14b)]);_0x339ff4=JSON[_0x5937b8(0x93)](_0x339ff4),_0x51b433[_0x5937b8(0x12d)]=this['clusterName'],_0x51b433[_0x5937b8(0x1db)][0x0]['config']['machineType']=global_registry[_0x5937b8(0x109)],_0x51b433[_0x5937b8(0x1db)][0x1][_0x5937b8(0xdd)][_0x5937b8(0xff)]=global_registry[_0x5937b8(0x109)],_0x51b433['nodePools'][0x0]['config'][_0x5937b8(0x80)]=this['serviceAccountName']+'@'+this[_0x5937b8(0x14e)]+_0x5937b8(0x147),_0x51b433[_0x5937b8(0x1db)][0x1]['config'][_0x5937b8(0x80)]=this[_0x5937b8(0x194)]+'@'+this['projectId']+_0x5937b8(0x147),_0x51b433[_0x5937b8(0x1db)][0x0][_0x5937b8(0x9a)][_0x5937b8(0x174)]=global_registry[_0x5937b8(0x1ce)],_0x51b433[_0x5937b8(0x1db)][0x1]['autoscaling'][_0x5937b8(0x174)]=0x0,_0x51b433[_0x5937b8(0x1db)][0x0]['autoscaling'][_0x5937b8(0x7d)]=global_registry[_0x5937b8(0x144)],_0x51b433[_0x5937b8(0x1db)][0x1][_0x5937b8(0x9a)][_0x5937b8(0x7d)]=global_registry[_0x5937b8(0x144)],_0x51b433[_0x5937b8(0x1b2)]=global_registry['clusterRegion'],_0x51b433[_0x5937b8(0x180)]=[_0x339ff4[global_registry['clusterRegion']][0x0]],_0x51b433[_0x5937b8(0x117)]=_0x5937b8(0xd3)+this[_0x5937b8(0x14e)]+_0x5937b8(0x181)+_0x48ff88,_0x51b433[_0x5937b8(0x1c3)]='projects/'+this[_0x5937b8(0x14e)]+_0x5937b8(0x18e)+global_registry[_0x5937b8(0x1d5)]+_0x5937b8(0xec)+_0x19c209[0x0];const _0x6ccb2d=await this[_0x5937b8(0x8c)][_0x5937b8(0x12e)]({'cluster':_0x51b433,'parent':_0x5937b8(0xd3)+this[_0x5937b8(0x14e)]+_0x5937b8(0x1b1)+global_registry[_0x5937b8(0x1d5)]});await this['webSocketUtils']['delay'](_0x307287['yBsHr'](_0x307287[_0x5937b8(0xd2)](0x7,0x3c),0x3e8));}else{if(_0x307287[_0x5937b8(0xa4)](_0x531e63?.[_0x5937b8(0x12d)],'projects/'+this[_0x5937b8(0x14e)]+_0x5937b8(0x114)+this['serviceAccountName']+'@'+this[_0x5937b8(0x14e)]+_0x5937b8(0x147)))return!![];}}catch(_0x35e7dd){if(_0x307287[_0x5937b8(0xed)](_0x307287['FeRLI'],_0x307287[_0x5937b8(0x1dd)])){const _0x21cef6=await this[_0x5937b8(0xd5)]();if(_0x21cef6){if(_0x307287[_0x5937b8(0xed)](_0x307287[_0x5937b8(0xcd)],_0x307287[_0x5937b8(0xcd)]))return!![];else logger['info'](_0x307287[_0x5937b8(0x94)],_0x35e7dd['stack']),await this[_0x5937b8(0x198)]();}else _0x307287['SMAJT'](_0x307287[_0x5937b8(0x1a4)],_0x307287[_0x5937b8(0x1a4)])?(_0x4f0980[_0x5937b8(0x121)](_0x307287[_0x5937b8(0xfb)]),_0x41f702['exit'](0x1)):logger[_0x5937b8(0x138)](_0x307287[_0x5937b8(0x1aa)]);throw _0x35e7dd;}else _0x10e188['clusterRegion']=_0x42da26[0x0],this[_0x5937b8(0x81)]();}}async[a3_0x15df6e(0x1a3)](){const _0x5c0ff1=a3_0x15df6e;cp[_0x5c0ff1(0x1b8)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x5c0ff1(0x1a2)]+_0x5c0ff1(0x14f)+global_registry[_0x5c0ff1(0x1d5)]+_0x5c0ff1(0x193));}async['deleteCluster'](_0x40bf88,_0x1a92a8){const _0x1efe70=a3_0x15df6e,_0x2addf2={'AulIT':function(_0x100ea5,_0x26c22f){return _0x100ea5+_0x26c22f;},'tnvWK':function(_0x34f984,_0x202ae9){return _0x34f984===_0x202ae9;},'CDtPA':'xNbBA','adIxt':function(_0xb61f77,_0x5474a7){return _0xb61f77(_0x5474a7);},'lYVNB':function(_0x106b3c,_0x1030ca){return _0x106b3c(_0x1030ca);},'XLQNC':function(_0x468c93,_0x4d018b){return _0x468c93===_0x4d018b;},'kIylg':_0x1efe70(0x13e),'RpUly':_0x1efe70(0x1d4),'zCEJp':_0x1efe70(0x7b),'KosCU':_0x1efe70(0x113),'bLhAX':function(_0x5ddb2e,_0x4af4c1){return _0x5ddb2e!==_0x4af4c1;},'pFJQO':'uNOSy','tqmnr':'GKE\x20Cluster\x20deletion\x20failed'};try{if(_0x2addf2['tnvWK'](_0x2addf2[_0x1efe70(0x7a)],_0x2addf2['CDtPA'])){await _0x2addf2[_0x1efe70(0x108)](deleteAgent,_0x40bf88),await _0x2addf2[_0x1efe70(0xf6)](deleteRoutingDeps,_0x40bf88),logger['info'](_0x1efe70(0xcf)+this[_0x1efe70(0x1a2)]);const _0xb20378=await this[_0x1efe70(0x8c)][_0x1efe70(0x198)]({'name':_0x1efe70(0xd3)+this['projectId']+_0x1efe70(0x1b1)+global_registry[_0x1efe70(0x1d5)]+'/clusters/'+this[_0x1efe70(0x1a2)]});if(_0x2addf2[_0x1efe70(0x19a)](_0xb20378[0x0]?.[_0x1efe70(0x182)],_0x2addf2[_0x1efe70(0x110)])||_0x2addf2[_0x1efe70(0x9c)](_0xb20378[0x0]?.['status'],_0x2addf2[_0x1efe70(0x19b)])){if(_0x2addf2[_0x1efe70(0x9c)](_0x2addf2[_0x1efe70(0xd1)],_0x2addf2[_0x1efe70(0xdf)]))_0x34a890[_0x1efe70(0x1b8)](_0x1efe70(0x1be)+this['clusterName']+_0x1efe70(0x14f)+_0x209f34[_0x1efe70(0x1d5)]+'\x20--quiet\x20--user-output-enabled=false');else return!![];}logger[_0x1efe70(0x138)](_0x1efe70(0x129));}else _0x2b2003[_0x1efe70(0x106)]('['+_0x2addf2[_0x1efe70(0x1ae)](_0x1815e7,0x1)+']\x20'+_0x486931[_0x828c39]);}catch(_0x480735){if(_0x2addf2[_0x1efe70(0x139)](_0x2addf2[_0x1efe70(0x16a)],_0x2addf2[_0x1efe70(0x16a)]))return[!![],_0x267be4];else{logger[_0x1efe70(0x138)](_0x2addf2[_0x1efe70(0x1d8)]);throw _0x480735;}}}async[a3_0x15df6e(0x10b)](_0x7d76da){const _0x1977cc=a3_0x15df6e,_0x151fe8={};_0x151fe8['LnpJR']=function(_0x41741d,_0x2216ff){return _0x41741d!==_0x2216ff;},_0x151fe8[_0x1977cc(0x17f)]=_0x1977cc(0x14a),_0x151fe8['YtgBd']=function(_0x551a96,_0x18e8fa){return _0x551a96>_0x18e8fa;},_0x151fe8[_0x1977cc(0xf3)]=function(_0x1b5b0b,_0x392c3d){return _0x1b5b0b===_0x392c3d;},_0x151fe8[_0x1977cc(0x10c)]=function(_0x55cbb3,_0x47f25c){return _0x55cbb3===_0x47f25c;},_0x151fe8[_0x1977cc(0xf2)]=_0x1977cc(0x152),_0x151fe8[_0x1977cc(0x90)]='flPih';const _0x51eb0d=_0x151fe8;try{if(_0x51eb0d[_0x1977cc(0x8d)](_0x51eb0d[_0x1977cc(0x17f)],_0x51eb0d[_0x1977cc(0x17f)])){const _0x37e9a0=this[_0x1977cc(0x195)],_0x434dfb={};_0x434dfb[_0x1977cc(0x84)]=_0x37e9a0,this[_0x1977cc(0x8c)]=new _0x5edea3['v1'][(_0x1977cc(0x1b6))](_0x434dfb);const _0x6478ae={};_0x6478ae[_0x1977cc(0x84)]=_0x37e9a0,this[_0x1977cc(0x137)]=new _0x57585c['v1'][(_0x1977cc(0x169))](_0x6478ae);const _0xc80fa5={};_0xc80fa5[_0x1977cc(0x84)]=_0x37e9a0,this['resourcemanagerClient']=new _0x2d88fc(_0xc80fa5),this['iamClient']=_0x530418['iam']('v1'),_0x52d420['gcpConfigSet']=!![];}else{const _0x5bd6d7={};_0x5bd6d7[_0x1977cc(0x196)]=projectId,_0x5bd6d7[_0x1977cc(0x117)]=_0x7d76da;const _0x121da2=await networkClient[_0x1977cc(0xab)](_0x5bd6d7);if(_0x51eb0d[_0x1977cc(0x91)](_0x121da2[_0x1977cc(0x9f)],0x0)&&_0x51eb0d[_0x1977cc(0xf3)](_0x121da2[0x0][_0x1977cc(0x12d)],_0x7d76da)){if(_0x51eb0d[_0x1977cc(0x10c)](_0x51eb0d[_0x1977cc(0xf2)],_0x51eb0d['ljYrE']))return!![];else _0x255e97[_0x1977cc(0xd7)](_0x444602);}}}catch(_0x5401a6){return _0x51eb0d[_0x1977cc(0xf3)](_0x51eb0d[_0x1977cc(0x90)],_0x51eb0d[_0x1977cc(0x90)])?![]:!![];}return![];}async['isSubnetsValid'](_0x5a85d8,_0x26f2e9){const _0x140b07=a3_0x15df6e,_0x1e764c={};_0x1e764c[_0x140b07(0x176)]=function(_0x1aee2d,_0x79cef1){return _0x1aee2d===_0x79cef1;},_0x1e764c[_0x140b07(0x1af)]='mbGUH';const _0x3afef6=_0x1e764c;try{const _0x342a21={};_0x342a21['project']=projectId,_0x342a21[_0x140b07(0x117)]=_0x26f2e9;const _0x278fbd=await networkClient[_0x140b07(0xab)](_0x342a21);for(const _0x27a45c of _0x278fbd[0x0][_0x140b07(0x10d)]){const _0x53d605=_0x140b07(0x168)+this[_0x140b07(0x14e)]+_0x140b07(0x18e)+global_registry['clusterRegion']+'/subnetworks/'+_0x5a85d8[0x0];if(_0x3afef6[_0x140b07(0x176)](_0x53d605,_0x27a45c))return _0x3afef6[_0x140b07(0x176)](_0x3afef6['NduNK'],_0x3afef6['NduNK'])?[!![],_0x5a85d8]:_0x5b4005[_0x140b07(0x182)][_0x140b07(0x160)][_0x140b07(0x7c)][0x0]['ip'];}}catch(_0x507407){return logger['error'](_0x140b07(0x18d)+_0x5a85d8+_0x140b07(0x7e)+_0x507407),[![],[]];}return[![],[]];}async[a3_0x15df6e(0xe0)](){const _0x3ff782=a3_0x15df6e,_0x11488e=await this[_0x3ff782(0x137)][_0x3ff782(0x16b)]({'project':this['projectId']}),_0x2d0495={};_0x2d0495['username']=global_registry['bstackUsername'],_0x2d0495[_0x3ff782(0xd4)]=global_registry['bstackAccesskey'],_0x2d0495['cloudProvider']=GCP,_0x2d0495[_0x3ff782(0x83)]=[];const _0x4ad551=_0x2d0495;for(const _0x31fea4 of _0x11488e){_0x4ad551['vpcInfo'][_0x3ff782(0xd7)](_0x31fea4);}const _0x244eea={};_0x244eea[_0x3ff782(0x9b)]=WS_EVENTS['RESOURCES'],_0x244eea['message']=_0x4ad551,this[_0x3ff782(0x1c6)][_0x3ff782(0x130)](this[_0x3ff782(0x15b)],_0x244eea);}async[a3_0x15df6e(0x81)](){const _0x1bf19a=a3_0x15df6e,_0x2c2584={'ktdeY':function(_0x1b0b95,_0x3d3406,_0x42ebbc){return _0x1b0b95(_0x3d3406,_0x42ebbc);},'HFzDd':_0x1bf19a(0xb2),'lxrNd':'json'},_0x233de8=_0x1bf19a(0x1c9)+AG_API_URL+_0x1bf19a(0x1a8),_0x3f65f2={};_0x3f65f2[_0x1bf19a(0xfc)]=global_registry['gridProfileId'];const _0x21c7dd={};_0x21c7dd[_0x1bf19a(0x1cf)]=global_registry[_0x1bf19a(0x1d5)];const _0x3b543c={'searchParams':_0x3f65f2,'json':_0x21c7dd,'headers':_0x2c2584[_0x1bf19a(0x1ad)](getAuthHeader,global_registry[_0x1bf19a(0x128)],global_registry[_0x1bf19a(0x1bf)]),'method':_0x2c2584[_0x1bf19a(0xa7)],'responseType':_0x2c2584[_0x1bf19a(0x1bb)]},_0x347c48=await _0x2c2584['ktdeY'](got,_0x233de8,_0x3b543c);}}const a3_0x3b332c={};function a3_0x247e(_0x4c1d8e,_0x5da272){const _0x3aa0f7=a3_0x3aa0();return a3_0x247e=function(_0x247e54,_0x12422c){_0x247e54=_0x247e54-0x7a;let _0x38a53a=_0x3aa0f7[_0x247e54];return _0x38a53a;},a3_0x247e(_0x4c1d8e,_0x5da272);}a3_0x3b332c[a3_0x15df6e(0x13b)]=GoogleCloudProvider,module[a3_0x15df6e(0x131)]=a3_0x3b332c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a4_0xa310(){const _0x43ed02=['./GoogleCloudProvider','20403jhPvZg','4781766tLxhpF','443604hhsiva','48zFxhbX','817340OLtnMX','error','1520wxAbUE','991380BTrKVp','2252732WGgQIQ','./AWS','./Azure','416952FLuBYA','96guuuaM','exit'];a4_0xa310=function(){return _0x43ed02;};return a4_0xa310();}function a4_0xde59(_0x42b7f6,_0x3a5d4b){const _0xa310d7=a4_0xa310();return a4_0xde59=function(_0xde594f,_0x49fe5e){_0xde594f=_0xde594f-0x16d;let _0x304c87=_0xa310d7[_0xde594f];return _0x304c87;},a4_0xde59(_0x42b7f6,_0x3a5d4b);}const a4_0x5d004f=a4_0xde59;(function(_0x286f03,_0x58db10){const _0x20d7f4=a4_0xde59,_0x122df6=_0x286f03();while(!![]){try{const _0x5bb5e7=-parseInt(_0x20d7f4(0x16f))/0x1+parseInt(_0x20d7f4(0x17b))/0x2+parseInt(_0x20d7f4(0x174))/0x3+parseInt(_0x20d7f4(0x17a))/0x4+-parseInt(_0x20d7f4(0x177))/0x5*(parseInt(_0x20d7f4(0x176))/0x6)+parseInt(_0x20d7f4(0x175))/0x7*(-parseInt(_0x20d7f4(0x170))/0x8)+-parseInt(_0x20d7f4(0x173))/0x9*(-parseInt(_0x20d7f4(0x179))/0xa);if(_0x5bb5e7===_0x58db10)break;else _0x122df6['push'](_0x122df6['shift']());}catch(_0x6689b8){_0x122df6['push'](_0x122df6['shift']());}}}(a4_0xa310,0xca0a5));const {AWSCloudProvider}=require(a4_0x5d004f(0x16d)),{AzureCloudProvider}=require(a4_0x5d004f(0x16e)),{GoogleCloudProvider}=require(a4_0x5d004f(0x172)),{AWS,AZURE,GCP}=require('../config/constants');exports['getCloudProviderObject']=(_0x56cb4a,_0x17f32a,_0xb0cf41,_0x4b2fe2,_0x463d4f)=>{const _0x30e4d8=a4_0x5d004f;switch(_0x56cb4a){case AWS:return new AWSCloudProvider(_0x17f32a,_0xb0cf41,_0x4b2fe2,_0x463d4f);case GCP:return new GoogleCloudProvider(_0x17f32a,_0xb0cf41,_0x4b2fe2,_0x463d4f);default:console[_0x30e4d8(0x178)]('Unknown\x20cloud\x20provider\x20found\x20-\x20'+_0x56cb4a),process[_0x30e4d8(0x171)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a5_0x24f3(_0x2cacb6,_0x443729){const _0x1d17d0=a5_0x1d17();return a5_0x24f3=function(_0x24f378,_0x4ff548){_0x24f378=_0x24f378-0x172;let _0x1e5af8=_0x1d17d0[_0x24f378];return _0x1e5af8;},a5_0x24f3(_0x2cacb6,_0x443729);}const a5_0x24e318=a5_0x24f3;(function(_0x3a9b90,_0x2a0b03){const _0x4c5ae9=a5_0x24f3,_0x5b6385=_0x3a9b90();while(!![]){try{const _0x1ac214=parseInt(_0x4c5ae9(0x1a9))/0x1*(parseInt(_0x4c5ae9(0x183))/0x2)+parseInt(_0x4c5ae9(0x1d2))/0x3*(-parseInt(_0x4c5ae9(0x17c))/0x4)+-parseInt(_0x4c5ae9(0x1a0))/0x5+parseInt(_0x4c5ae9(0x19b))/0x6*(parseInt(_0x4c5ae9(0x1a8))/0x7)+-parseInt(_0x4c5ae9(0x185))/0x8*(-parseInt(_0x4c5ae9(0x198))/0x9)+-parseInt(_0x4c5ae9(0x194))/0xa*(-parseInt(_0x4c5ae9(0x1b8))/0xb)+parseInt(_0x4c5ae9(0x1c3))/0xc*(parseInt(_0x4c5ae9(0x1cd))/0xd);if(_0x1ac214===_0x2a0b03)break;else _0x5b6385['push'](_0x5b6385['shift']());}catch(_0x1bc01f){_0x5b6385['push'](_0x5b6385['shift']());}}}(a5_0x1d17,0xb46cc));const fs=require('fs'),got=require(a5_0x24e318(0x1b6)),{v4:uuidv4}=require(a5_0x24e318(0x1b0)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x24e318(0x1be)),{getCredentialsPath,getAuthHeader}=require(a5_0x24e318(0x19c)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');function a5_0x1d17(){const _0x3ee786=['Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','recommendCommands','\x20\x20grid-profile:\x20','toLowerCase','uuid','password','KrooE','log','desc','Browserstack','got','invalid-selection','894531pBUJuN','name','requestId','invalid-input','readFileSync','unauthorised','../config/constants','dTVZg','existsSync','active','AkjyK','87744kcbIKM','YejKA','stringify','fgUlm','list','oVCxt','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','SQchM','trJqZ','Kbpgw','1001eLsVJf','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','configure','ajEEd','fFSWJ','254406gwcsjl','dqPVe','tpdFr','server-error','ZmwnX','MaDne','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','https://','ujEdR','profileId','usage','body','4nKDJKF','init-not-called','unknown-error','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','argv','ERROR','tpSIM','454MOaBVm','JZJTr','40nUZpQb','strict','username','POEcV','Jzcwe','stack','vCdhH','length','vjmxd','dyYeW','rCVqP','statusCode','ZYzGX','wDPnb','olvTy','90RtciLN','GxBdh','VGCdy','imHtu','1152045XPYgJm','RaUua','\x20\x20username:\x20','534CNTJGx','../utils/utilityMethods','zGglU','/packages/cli/configure','error','7199945InXtUx','exit','ZEJpm','Failed\x20to\x20configure\x20resources!\x20Error:\x20','BaoMW','BYWHP','help','tBCFo','9905vOwEPV','894EyyUrs','parse','epilogue'];a5_0x1d17=function(){return _0x3ee786;};return a5_0x1d17();}exports['command']='configure',exports[a5_0x24e318(0x1b4)]=a5_0x24e318(0x1ac),exports['builder']=function(_0x490774){const _0x522295=a5_0x24e318,_0xb40d6a={};_0xb40d6a[_0x522295(0x1cc)]=_0x522295(0x1a6);const _0xc5489a=_0xb40d6a;return _0x490774[_0x522295(0x17a)](HELP_HEADER_MESSAGE[_0x522295(0x1cf)])[_0x522295(0x1ab)](HELP_FOOTER_MESSAGE)[_0x522295(0x1a6)](_0xc5489a[_0x522295(0x1cc)])[_0x522295(0x1ad)]()[_0x522295(0x186)]()[_0x522295(0x180)];},exports['handler']=async function(_0xd35ee9){const _0x11f595=a5_0x24e318,_0x25e087={'GxBdh':function(_0xbf8a11){return _0xbf8a11();},'ZmwnX':_0x11f595(0x176),'JZJTr':function(_0x3f88df,_0x145c49,_0x377b69,_0x47afe3,_0x53d252,_0x36b39e,_0x4774e4){return _0x3f88df(_0x145c49,_0x377b69,_0x47afe3,_0x53d252,_0x36b39e,_0x4774e4);},'POEcV':'configure-called','ujEdR':_0x11f595(0x17d),'ZEJpm':function(_0x227b22,_0x3d5d6e,_0x29463b,_0x3dd493,_0x1e9d98,_0x3f4630,_0x453631){return _0x227b22(_0x3d5d6e,_0x29463b,_0x3dd493,_0x1e9d98,_0x3f4630,_0x453631);},'BaoMW':'GET','tBCFo':function(_0x276af0,_0x2724a0,_0xaed6a){return _0x276af0(_0x2724a0,_0xaed6a);},'KrooE':function(_0x18bac6,_0x5395b7){return _0x18bac6!==_0x5395b7;},'ajEEd':function(_0x374ceb,_0x27d085){return _0x374ceb===_0x27d085;},'BYWHP':_0x11f595(0x1c9),'SQchM':'core:','LVxtu':function(_0xcc321d,_0x966d82){return _0xcc321d(_0x966d82);},'fgUlm':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','ZYzGX':function(_0x1c157a,_0x380d7b){return _0x1c157a===_0x380d7b;},'YPkDl':function(_0x4fef9d,_0x189549){return _0x4fef9d===_0x189549;},'VGCdy':function(_0x3f9984,_0x403b4b){return _0x3f9984===_0x403b4b;},'Jzcwe':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','wttTU':_0x11f595(0x1bb),'dVWVY':function(_0x3b62fa,_0x5debc3){return _0x3b62fa===_0x5debc3;},'Ngbyc':_0x11f595(0x1ce),'tpdFr':function(_0x33a509,_0x578717){return _0x33a509<_0x578717;},'oVCxt':function(_0x4e4548,_0x3c7ebf){return _0x4e4548+_0x3c7ebf;},'YejKA':function(_0x150c01,_0x5014c5){return _0x150c01(_0x5014c5);},'dqwxn':_0x11f595(0x17f),'vjmxd':function(_0x158306,_0x19e940){return _0x158306(_0x19e940);},'zGglU':function(_0x2b1003,_0x3b58af){return _0x2b1003<=_0x3b58af;},'trJqZ':function(_0x5832e4,_0x5aa599){return _0x5832e4>_0x5aa599;},'wDPnb':function(_0x5bdf51,_0x44f774,_0x171c62,_0xd37ad0,_0x327d67,_0x5870dd,_0x1639de){return _0x5bdf51(_0x44f774,_0x171c62,_0xd37ad0,_0x327d67,_0x5870dd,_0x1639de);},'RaUua':_0x11f595(0x1b7),'dqPVe':function(_0x32e84d){return _0x32e84d();},'rCVqP':function(_0x2303d4,_0x42a895){return _0x2303d4-_0x42a895;},'dTVZg':'PUT','vCdhH':'json','fFSWJ':function(_0x553f09,_0x4a63a6){return _0x553f09!==_0x4a63a6;},'IeBdg':'Updated\x20default\x20Grid\x20Profile\x20successfully','imHtu':function(_0x2d424a,_0x29714e){return _0x2d424a===_0x29714e;},'AkjyK':function(_0x4a6daa,_0x52840c,_0x1229b3,_0x239317,_0x511524,_0x106a94,_0x5cdaeb){return _0x4a6daa(_0x52840c,_0x1229b3,_0x239317,_0x511524,_0x106a94,_0x5cdaeb);},'olvTy':_0x11f595(0x1bd),'AiLde':function(_0x274a91,_0x40281b,_0x19a021,_0x474678,_0x5b6269,_0x6f88c3,_0x4208ad){return _0x274a91(_0x40281b,_0x19a021,_0x474678,_0x5b6269,_0x6f88c3,_0x4208ad);},'tpSIM':_0x11f595(0x173),'UtGLo':function(_0x14ee00,_0x3f1159){return _0x14ee00===_0x3f1159;},'MaDne':function(_0x5025fc,_0x26bb51,_0x4049d3,_0x3a264d,_0x29f5e5,_0xbdddec,_0x3af005){return _0x5025fc(_0x26bb51,_0x4049d3,_0x3a264d,_0x29f5e5,_0xbdddec,_0x3af005);},'dyYeW':_0x11f595(0x17e)};try{global_registry[_0x11f595(0x1ba)]=_0x25e087[_0x11f595(0x195)](uuidv4);const _0x2682f1=_0x11f595(0x177)+AG_API_URL+_0x11f595(0x19e);!fs[_0x11f595(0x1c0)](_0x25e087[_0x11f595(0x195)](getCredentialsPath))&&(console[_0x11f595(0x19f)](_0x25e087[_0x11f595(0x174)]),await _0x25e087[_0x11f595(0x184)](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes[_0x11f595(0x181)],_0x25e087[_0x11f595(0x178)],null,_0xd35ee9),process['exit'](0x1));await _0x25e087['ZEJpm'](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes['INFO'],null,null,_0xd35ee9);const _0xa031e7=JSON[_0x11f595(0x1aa)](fs[_0x11f595(0x1bc)](_0x25e087[_0x11f595(0x195)](getCredentialsPath))),_0x10ebe7={'method':_0x25e087[_0x11f595(0x1a4)],'headers':_0x25e087[_0x11f595(0x1a7)](getAuthHeader,_0xa031e7[_0x11f595(0x1b5)][_0x11f595(0x187)],_0xa031e7[_0x11f595(0x1b5)][_0x11f595(0x1b1)])},_0x46a351=await _0x25e087[_0x11f595(0x1a7)](got,_0x2682f1,_0x10ebe7);if(_0x25e087['KrooE'](_0x46a351,null)&&_0x25e087[_0x11f595(0x1b2)](_0x46a351,undefined)&&_0x25e087[_0x11f595(0x1d0)](_0x46a351[_0x11f595(0x190)],0xc8)){const _0x3d9510=JSON[_0x11f595(0x1aa)](_0x46a351[_0x11f595(0x17b)]);console[_0x11f595(0x1b3)](_0x25e087[_0x11f595(0x1a5)]),console[_0x11f595(0x1b3)](_0x25e087[_0x11f595(0x1ca)]),console['log'](_0x11f595(0x19a)+_0xa031e7[_0x11f595(0x1b5)][_0x11f595(0x187)]),console[_0x11f595(0x1b3)](_0x11f595(0x1ae)+_0x3d9510[_0x11f595(0x1c1)][_0x11f595(0x1b9)]);const _0x4819bb=await _0x25e087['LVxtu'](inputConfirmation,_0x25e087[_0x11f595(0x1c6)]);(_0x25e087[_0x11f595(0x191)](_0x4819bb,undefined)||_0x25e087[_0x11f595(0x1d0)](_0x4819bb,null)||!(_0x25e087['YPkDl'](_0x4819bb[_0x11f595(0x1af)](),'y')||_0x25e087[_0x11f595(0x196)](_0x4819bb[_0x11f595(0x1af)](),'n')))&&(console[_0x11f595(0x19f)](_0x25e087[_0x11f595(0x189)]),await _0x25e087[_0x11f595(0x1a2)](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes[_0x11f595(0x181)],_0x25e087['wttTU'],null,_0xd35ee9),process[_0x11f595(0x1a1)](0x1));_0x25e087['dVWVY'](_0x4819bb[_0x11f595(0x1af)](),'n')&&process[_0x11f595(0x1a1)](0x0);console[_0x11f595(0x1b3)](_0x25e087['Ngbyc']);const _0x357b03=_0x3d9510[_0x11f595(0x1c7)][_0x11f595(0x18c)];for(let _0x384c08=0x0;_0x25e087[_0x11f595(0x172)](_0x384c08,_0x357b03);_0x384c08+=0x1){console['log']('['+_0x25e087[_0x11f595(0x1c8)](_0x384c08,0x1)+']\x20'+_0x3d9510[_0x11f595(0x1c7)][_0x384c08]['name']);}const _0xfb8580=await _0x25e087[_0x11f595(0x1c4)](inputConfirmation,_0x25e087['dqwxn']),_0x360981=_0x25e087[_0x11f595(0x18d)](Number,_0xfb8580);(_0x25e087['vjmxd'](isNaN,_0x360981)||_0x25e087[_0x11f595(0x19d)](_0x360981,0x0)||_0x25e087[_0x11f595(0x1cb)](_0x360981,_0x357b03))&&(console['error'](_0x25e087[_0x11f595(0x189)]),await _0x25e087[_0x11f595(0x192)](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes[_0x11f595(0x181)],_0x25e087[_0x11f595(0x199)],null,_0xd35ee9),process[_0x11f595(0x1a1)](0x1));_0x25e087[_0x11f595(0x1d3)](closeInput);const _0xa8733e=_0x3d9510['list'][_0x25e087[_0x11f595(0x18f)](_0x360981,0x1)]['id'],_0x1ba0b8={};_0x1ba0b8[_0x11f595(0x179)]=_0xa8733e;const _0x222e8c={'method':_0x25e087[_0x11f595(0x1bf)],'headers':_0x25e087[_0x11f595(0x1a7)](getAuthHeader,_0xa031e7[_0x11f595(0x1b5)][_0x11f595(0x187)],_0xa031e7[_0x11f595(0x1b5)][_0x11f595(0x1b1)]),'json':_0x1ba0b8,'responseType':_0x25e087[_0x11f595(0x18b)]},_0x29cdb6=await _0x25e087[_0x11f595(0x1a7)](got,_0x2682f1,_0x222e8c);_0x25e087[_0x11f595(0x1b2)](_0x29cdb6,null)&&_0x25e087[_0x11f595(0x1d1)](_0x29cdb6,undefined)&&_0x25e087[_0x11f595(0x1d0)](_0x29cdb6[_0x11f595(0x190)],0xc8)&&(console[_0x11f595(0x1b3)](_0x25e087['IeBdg']),process['exit'](0x0)),_0x25e087[_0x11f595(0x197)](_0x29cdb6[_0x11f595(0x190)],0x191)&&(console['error']('Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!'),await _0x25e087[_0x11f595(0x1c2)](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes[_0x11f595(0x181)],_0x25e087[_0x11f595(0x193)],null,_0xd35ee9),process['exit'](0x1)),console[_0x11f595(0x19f)]('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x29cdb6)),await _0x25e087['AiLde'](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes[_0x11f595(0x181)],_0x25e087['tpSIM'],_0x29cdb6,_0xd35ee9),process[_0x11f595(0x1a1)](0x1);}_0x25e087['UtGLo'](_0x46a351['statusCode'],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x25e087[_0x11f595(0x175)](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes[_0x11f595(0x181)],_0x25e087['olvTy'],null,_0xd35ee9),process[_0x11f595(0x1a1)](0x1)),console[_0x11f595(0x19f)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x11f595(0x1c5)](_0x46a351)),await _0x25e087[_0x11f595(0x192)](sendInstrumentationEvent,_0xd35ee9,_0x25e087['POEcV'],messageTypes[_0x11f595(0x181)],_0x25e087[_0x11f595(0x182)],_0x46a351,_0xd35ee9),process['exit'](0x1);}catch(_0xce9d6b){console['error'](_0x11f595(0x1a3)+_0xce9d6b[_0x11f595(0x18a)]),await _0x25e087[_0x11f595(0x184)](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes[_0x11f595(0x181)],_0x25e087[_0x11f595(0x18e)],_0xce9d6b,_0xd35ee9),process['exit'](0x1);}};
|
|
1
|
+
const a5_0x10b3d4=a5_0x3431;(function(_0x42b999,_0x33f29b){const _0x41b0e1=a5_0x3431,_0x59e608=_0x42b999();while(!![]){try{const _0x1666f4=-parseInt(_0x41b0e1(0x122))/0x1+parseInt(_0x41b0e1(0x116))/0x2*(parseInt(_0x41b0e1(0x15a))/0x3)+-parseInt(_0x41b0e1(0x130))/0x4+parseInt(_0x41b0e1(0x10e))/0x5*(parseInt(_0x41b0e1(0x14a))/0x6)+-parseInt(_0x41b0e1(0x173))/0x7+parseInt(_0x41b0e1(0x10d))/0x8*(parseInt(_0x41b0e1(0x119))/0x9)+-parseInt(_0x41b0e1(0x16f))/0xa*(-parseInt(_0x41b0e1(0x11f))/0xb);if(_0x1666f4===_0x33f29b)break;else _0x59e608['push'](_0x59e608['shift']());}catch(_0x468347){_0x59e608['push'](_0x59e608['shift']());}}}(a5_0x5d97,0xf2537));const fs=require('fs'),got=require(a5_0x10b3d4(0x123)),{v4:uuidv4}=require(a5_0x10b3d4(0x15f)),{inputConfirmation,closeInput}=require(a5_0x10b3d4(0x13c)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x10b3d4(0x168)),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');function a5_0x3431(_0x17dcca,_0x576ca9){const _0x5d9784=a5_0x5d97();return a5_0x3431=function(_0x3431c0,_0x15aac7){_0x3431c0=_0x3431c0-0x10b;let _0x46ba06=_0x5d9784[_0x3431c0];return _0x46ba06;},a5_0x3431(_0x17dcca,_0x576ca9);}function a5_0x5d97(){const _0x330e47=['xfBIq','lVXCg','stack','\x20\x20username:\x20','../utils/userInput','invalid-input','/packages/cli/configure','YwudN','init-not-called','sXenv','statusCode','gqKjK','PUT','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','oaMxy','EQNPW','toLowerCase','yhyBx','18nDeeOb','requestId','gCINV','IEyOf','gHWmL','ERROR','Vjlzf','fmNFA','gyFGu','dungT','EiXra','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','bgMkj','UQHLg','UEnVR','command','3gjRJDO','epilogue','mHOEm','LdnlC','hWPuN','uuid','error','Failed\x20to\x20configure\x20resources!\x20Error:\x20','xsSHR','stringify','aKYDI','KJrPO','readFileSync','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','../config/constants','parse','VWDHa','GET','lWQtX','help','PXgKo','20ZWooBC','server-error','profileId','Pscyz','3492664jHdDdS','fNETU','body','8904mReAIl','68125Uldecz','configure-called','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','list','strict','desc','username','unauthorised','159658ICpPOO','rgjnj','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','1719zNRdxf','Updated\x20default\x20Grid\x20Profile\x20successfully','core:','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','recommendCommands','usage','22925793hqjyEH','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','olocj','1365666srOlyr','got','unknown-error','log','name','HEFIb','Browserstack','https://','configure','length','WBsFi','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','uaSDw','json','6577712hYRZoU','password','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exit','BPsMK','SHsbX','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','invalid-selection'];a5_0x5d97=function(){return _0x330e47;};return a5_0x5d97();}exports[a5_0x10b3d4(0x159)]=a5_0x10b3d4(0x12a),exports[a5_0x10b3d4(0x113)]=a5_0x10b3d4(0x120),exports['builder']=function(_0x2c16db){const _0x5e3bc2=a5_0x10b3d4,_0x3a52db={};_0x3a52db[_0x5e3bc2(0x158)]=_0x5e3bc2(0x16d);const _0x17ef62=_0x3a52db;return _0x2c16db[_0x5e3bc2(0x11e)](HELP_HEADER_MESSAGE[_0x5e3bc2(0x12a)])[_0x5e3bc2(0x15b)](HELP_FOOTER_MESSAGE)[_0x5e3bc2(0x16d)](_0x17ef62[_0x5e3bc2(0x158)])[_0x5e3bc2(0x11d)]()[_0x5e3bc2(0x112)]()['argv'];},exports['handler']=async function(_0x159c3f){const _0x2e1307=a5_0x10b3d4,_0x3e53ae={'bgMkj':function(_0x3f73b3){return _0x3f73b3();},'gyFGu':function(_0x519279){return _0x519279();},'lJPAJ':_0x2e1307(0x132),'gqKjK':function(_0x2e4a0e,_0x452192,_0x3d7eb0,_0x15e1bf,_0x2d9495,_0x14ee31,_0x1b9509){return _0x2e4a0e(_0x452192,_0x3d7eb0,_0x15e1bf,_0x2d9495,_0x14ee31,_0x1b9509);},'aKYDI':_0x2e1307(0x10f),'mHOEm':_0x2e1307(0x140),'oaMxy':function(_0x461ea8,_0x2de428,_0x4a45a7,_0x46723a,_0x4d62de,_0x5aef8c,_0x5cca0d){return _0x461ea8(_0x2de428,_0x4a45a7,_0x46723a,_0x4d62de,_0x5aef8c,_0x5cca0d);},'hWPuN':_0x2e1307(0x16b),'KJrPO':function(_0x3a5ab8,_0x4da129,_0x2e91e6){return _0x3a5ab8(_0x4da129,_0x2e91e6);},'EiXra':function(_0x49630a,_0x377350){return _0x49630a!==_0x377350;},'gHWmL':function(_0x1c6594,_0x59253a){return _0x1c6594===_0x59253a;},'lWQtX':_0x2e1307(0x11c),'fAarx':_0x2e1307(0x11b),'olocj':function(_0x569aae,_0x5cdd06){return _0x569aae(_0x5cdd06);},'gkBit':_0x2e1307(0x118),'PXgKo':function(_0x110f34,_0x2c02c7){return _0x110f34===_0x2c02c7;},'uaSDw':function(_0x478c31,_0x3da7ea){return _0x478c31===_0x3da7ea;},'XRYfp':_0x2e1307(0x136),'SHsbX':function(_0x2368a4,_0x4cdbe3,_0x5e994f,_0x2e43d3,_0x4ff481,_0x5edf49,_0x125042){return _0x2368a4(_0x4cdbe3,_0x5e994f,_0x2e43d3,_0x4ff481,_0x5edf49,_0x125042);},'sGBjA':_0x2e1307(0x13d),'gCINV':function(_0x13efd1,_0xb4bf15){return _0x13efd1===_0xb4bf15;},'fNETU':_0x2e1307(0x110),'fmNFA':function(_0x471d96,_0x3997d8){return _0x471d96<_0x3997d8;},'WBsFi':function(_0x3cfeb6,_0x363de5){return _0x3cfeb6+_0x363de5;},'xsSHR':function(_0x51efe0,_0x4bcdc0){return _0x51efe0(_0x4bcdc0);},'sXenv':_0x2e1307(0x167),'liQbG':function(_0xb73989,_0x595cd2){return _0xb73989<=_0x595cd2;},'Pscyz':function(_0x2f0b60,_0x225880){return _0x2f0b60>_0x225880;},'xfBIq':function(_0x17f490,_0x3d2c93,_0x2765da,_0x5328dd,_0xa7e4c6,_0x26c0e5,_0x1f8e04){return _0x17f490(_0x3d2c93,_0x2765da,_0x5328dd,_0xa7e4c6,_0x26c0e5,_0x1f8e04);},'IEyOf':_0x2e1307(0x137),'lVXCg':function(_0xe288d2){return _0xe288d2();},'DvzQv':function(_0x3cbd56,_0x3ac1e8){return _0x3cbd56-_0x3ac1e8;},'HEFIb':_0x2e1307(0x144),'yhyBx':_0x2e1307(0x12f),'dungT':function(_0x24777d,_0x21c14a,_0x17830d){return _0x24777d(_0x21c14a,_0x17830d);},'rgjnj':function(_0x59426f,_0x3b96a8){return _0x59426f!==_0x3b96a8;},'EQNPW':_0x2e1307(0x11a),'UQHLg':_0x2e1307(0x115),'BPsMK':_0x2e1307(0x170),'Drpij':function(_0x416176,_0xa7c7f5){return _0x416176===_0xa7c7f5;},'YwudN':function(_0x35f574,_0x1317b6,_0x1c755e,_0xe00bef,_0x487300,_0x219192,_0x92752f){return _0x35f574(_0x1317b6,_0x1c755e,_0xe00bef,_0x487300,_0x219192,_0x92752f);},'Vjlzf':function(_0x46acd6,_0x4b4c2b,_0x450990,_0x5b78e6,_0x54437c,_0x340aaa,_0x49a01d){return _0x46acd6(_0x4b4c2b,_0x450990,_0x5b78e6,_0x54437c,_0x340aaa,_0x49a01d);},'LdnlC':function(_0x5e292b,_0x3c6c8d,_0x24d4fa,_0x1cbd41,_0x2e54ee,_0x4ee35a,_0x1a8d94){return _0x5e292b(_0x3c6c8d,_0x24d4fa,_0x1cbd41,_0x2e54ee,_0x4ee35a,_0x1a8d94);},'VWDHa':_0x2e1307(0x124)};try{global_registry[_0x2e1307(0x14b)]=_0x3e53ae[_0x2e1307(0x156)](uuidv4);const _0x397594=_0x2e1307(0x129)+AG_API_URL+_0x2e1307(0x13e);!fs['existsSync'](_0x3e53ae[_0x2e1307(0x152)](getCredentialsPath))&&(console[_0x2e1307(0x160)](_0x3e53ae['lJPAJ']),await _0x3e53ae[_0x2e1307(0x143)](sendInstrumentationEvent,_0x159c3f,_0x3e53ae[_0x2e1307(0x164)],messageTypes[_0x2e1307(0x14f)],_0x3e53ae[_0x2e1307(0x15c)],null,_0x159c3f),process[_0x2e1307(0x133)](0x1));await _0x3e53ae[_0x2e1307(0x146)](sendInstrumentationEvent,_0x159c3f,_0x3e53ae[_0x2e1307(0x164)],messageTypes['INFO'],null,null,_0x159c3f);const _0x27f75=JSON['parse'](fs[_0x2e1307(0x166)](_0x3e53ae[_0x2e1307(0x156)](getCredentialsPath))),_0x1f2625={'method':_0x3e53ae[_0x2e1307(0x15e)],'headers':_0x3e53ae['KJrPO'](getAuthHeader,_0x27f75[_0x2e1307(0x128)]['username'],_0x27f75[_0x2e1307(0x128)][_0x2e1307(0x131)])},_0x1c48db=await _0x3e53ae[_0x2e1307(0x165)](got,_0x397594,_0x1f2625);if(_0x3e53ae[_0x2e1307(0x154)](_0x1c48db,null)&&_0x3e53ae[_0x2e1307(0x154)](_0x1c48db,undefined)&&_0x3e53ae[_0x2e1307(0x14e)](_0x1c48db[_0x2e1307(0x142)],0xc8)){const _0x18316f=JSON[_0x2e1307(0x169)](_0x1c48db[_0x2e1307(0x10c)]);console['log'](_0x3e53ae[_0x2e1307(0x16c)]),console['log'](_0x3e53ae['fAarx']),console[_0x2e1307(0x125)](_0x2e1307(0x13b)+_0x27f75[_0x2e1307(0x128)][_0x2e1307(0x114)]),console[_0x2e1307(0x125)]('\x20\x20grid-profile:\x20'+_0x18316f['active'][_0x2e1307(0x126)]);const _0x2b8fce=await _0x3e53ae[_0x2e1307(0x121)](inputConfirmation,_0x3e53ae['gkBit']);(_0x3e53ae[_0x2e1307(0x16e)](_0x2b8fce,undefined)||_0x3e53ae['uaSDw'](_0x2b8fce,null)||!(_0x3e53ae[_0x2e1307(0x16e)](_0x2b8fce[_0x2e1307(0x148)](),'y')||_0x3e53ae['uaSDw'](_0x2b8fce[_0x2e1307(0x148)](),'n')))&&(console[_0x2e1307(0x160)](_0x3e53ae['XRYfp']),await _0x3e53ae[_0x2e1307(0x135)](sendInstrumentationEvent,_0x159c3f,_0x3e53ae[_0x2e1307(0x164)],messageTypes['ERROR'],_0x3e53ae['sGBjA'],null,_0x159c3f),process[_0x2e1307(0x133)](0x1));_0x3e53ae[_0x2e1307(0x14c)](_0x2b8fce[_0x2e1307(0x148)](),'n')&&process[_0x2e1307(0x133)](0x0);console[_0x2e1307(0x125)](_0x3e53ae[_0x2e1307(0x10b)]);const _0x4fb04f=_0x18316f[_0x2e1307(0x111)][_0x2e1307(0x12b)];for(let _0x42d460=0x0;_0x3e53ae[_0x2e1307(0x151)](_0x42d460,_0x4fb04f);_0x42d460+=0x1){console['log']('['+_0x3e53ae[_0x2e1307(0x12c)](_0x42d460,0x1)+']\x20'+_0x18316f[_0x2e1307(0x111)][_0x42d460]['name']);}const _0x337370=await _0x3e53ae[_0x2e1307(0x162)](inputConfirmation,_0x3e53ae[_0x2e1307(0x141)]),_0x57e0ff=_0x3e53ae['xsSHR'](Number,_0x337370);(_0x3e53ae[_0x2e1307(0x121)](isNaN,_0x57e0ff)||_0x3e53ae['liQbG'](_0x57e0ff,0x0)||_0x3e53ae[_0x2e1307(0x172)](_0x57e0ff,_0x4fb04f))&&(console['error'](_0x3e53ae['XRYfp']),await _0x3e53ae[_0x2e1307(0x138)](sendInstrumentationEvent,_0x159c3f,_0x3e53ae['aKYDI'],messageTypes['ERROR'],_0x3e53ae[_0x2e1307(0x14d)],null,_0x159c3f),process[_0x2e1307(0x133)](0x1));_0x3e53ae[_0x2e1307(0x139)](closeInput);const _0x5d5bf2=_0x18316f['list'][_0x3e53ae['DvzQv'](_0x57e0ff,0x1)]['id'],_0x8db7f3={};_0x8db7f3[_0x2e1307(0x171)]=_0x5d5bf2;const _0x5204a3={'method':_0x3e53ae[_0x2e1307(0x127)],'headers':_0x3e53ae[_0x2e1307(0x165)](getAuthHeader,_0x27f75[_0x2e1307(0x128)]['username'],_0x27f75[_0x2e1307(0x128)][_0x2e1307(0x131)]),'json':_0x8db7f3,'responseType':_0x3e53ae[_0x2e1307(0x149)]},_0x2c21b8=await _0x3e53ae[_0x2e1307(0x153)](got,_0x397594,_0x5204a3);_0x3e53ae[_0x2e1307(0x117)](_0x2c21b8,null)&&_0x3e53ae[_0x2e1307(0x154)](_0x2c21b8,undefined)&&_0x3e53ae['gHWmL'](_0x2c21b8[_0x2e1307(0x142)],0xc8)&&(console['log'](_0x3e53ae[_0x2e1307(0x147)]),process[_0x2e1307(0x133)](0x0)),_0x3e53ae[_0x2e1307(0x12e)](_0x2c21b8[_0x2e1307(0x142)],0x191)&&(console[_0x2e1307(0x160)](_0x2e1307(0x155)),await _0x3e53ae[_0x2e1307(0x138)](sendInstrumentationEvent,_0x159c3f,_0x3e53ae['aKYDI'],messageTypes[_0x2e1307(0x14f)],_0x3e53ae[_0x2e1307(0x157)],null,_0x159c3f),process[_0x2e1307(0x133)](0x1)),console[_0x2e1307(0x160)](_0x2e1307(0x12d)+JSON[_0x2e1307(0x163)](_0x2c21b8)),await _0x3e53ae[_0x2e1307(0x146)](sendInstrumentationEvent,_0x159c3f,_0x3e53ae[_0x2e1307(0x164)],messageTypes[_0x2e1307(0x14f)],_0x3e53ae[_0x2e1307(0x134)],_0x2c21b8,_0x159c3f),process[_0x2e1307(0x133)](0x1);}_0x3e53ae['Drpij'](_0x1c48db['statusCode'],0x191)&&(console[_0x2e1307(0x160)](_0x2e1307(0x145)),await _0x3e53ae[_0x2e1307(0x13f)](sendInstrumentationEvent,_0x159c3f,_0x3e53ae[_0x2e1307(0x164)],messageTypes[_0x2e1307(0x14f)],_0x3e53ae[_0x2e1307(0x157)],null,_0x159c3f),process[_0x2e1307(0x133)](0x1)),console[_0x2e1307(0x160)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x1c48db)),await _0x3e53ae[_0x2e1307(0x150)](sendInstrumentationEvent,_0x159c3f,_0x3e53ae[_0x2e1307(0x164)],messageTypes[_0x2e1307(0x14f)],_0x3e53ae[_0x2e1307(0x134)],_0x1c48db,_0x159c3f),process[_0x2e1307(0x133)](0x1);}catch(_0x26d354){console['error'](_0x2e1307(0x161)+_0x26d354[_0x2e1307(0x13a)]),await _0x3e53ae[_0x2e1307(0x15d)](sendInstrumentationEvent,_0x159c3f,_0x3e53ae[_0x2e1307(0x164)],messageTypes['ERROR'],_0x3e53ae[_0x2e1307(0x16a)],_0x26d354,_0x159c3f),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a6_0x1db474=a6_0xbd85;(function(_0x916ddd,_0x459671){const _0x1b4adc=a6_0xbd85,_0x5be4ca=_0x916ddd();while(!![]){try{const _0x166761=-parseInt(_0x1b4adc(0x1e6))/0x1*(parseInt(_0x1b4adc(0x1d8))/0x2)+parseInt(_0x1b4adc(0x1de))/0x3*(parseInt(_0x1b4adc(0x1df))/0x4)+parseInt(_0x1b4adc(0x1d4))/0x5*(parseInt(_0x1b4adc(0x1e0))/0x6)+-parseInt(_0x1b4adc(0x1ec))/0x7*(-parseInt(_0x1b4adc(0x1e4))/0x8)+-parseInt(_0x1b4adc(0x1da))/0x9+-parseInt(_0x1b4adc(0x1e5))/0xa*(-parseInt(_0x1b4adc(0x1ee))/0xb)+-parseInt(_0x1b4adc(0x1d9))/0xc*(parseInt(_0x1b4adc(0x1e2))/0xd);if(_0x166761===_0x459671)break;else _0x5be4ca['push'](_0x5be4ca['shift']());}catch(_0x3b27ca){_0x5be4ca['push'](_0x5be4ca['shift']());}}}(a6_0x23c5,0x4dd96));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x1db474(0x1e8));exports[a6_0x1db474(0x1dd)]='connect',exports['desc']=a6_0x1db474(0x1eb),exports[a6_0x1db474(0x1ed)]=function(_0x1489bf){const _0x21a7d9=a6_0x1db474,_0x4b72e9={};_0x4b72e9['hnqzk']=_0x21a7d9(0x1d7),_0x4b72e9[_0x21a7d9(0x1dc)]='help';const _0x4bf25e=_0x4b72e9;return _0x1489bf['usage'](HELP_HEADER_MESSAGE[_0x21a7d9(0x1e3)])[_0x21a7d9(0x1e1)](HELP_FOOTER_MESSAGE)[_0x21a7d9(0x1d6)](_0x4bf25e[_0x21a7d9(0x1e7)])[_0x21a7d9(0x1e9)]()[_0x21a7d9(0x1db)]()['strict']()[_0x21a7d9(0x1d5)](_0x4bf25e[_0x21a7d9(0x1dc)]);},exports[a6_0x1db474(0x1ea)]=function(_0x123d3a){};function a6_0xbd85(_0x495062,_0x5c3346){const _0x23c5cb=a6_0x23c5();return a6_0xbd85=function(_0xbd8548,_0x231eb8){_0xbd8548=_0xbd8548-0x1d4;let _0x1342a7=_0x23c5cb[_0xbd8548];return _0x1342a7;},a6_0xbd85(_0x495062,_0x5c3346);}function a6_0x23c5(){const _0x37200b=['274109tLpxVP','245130vqmaCw','help','commandDir','connect_commands','108766qVhXbd','924qxxlwb','3975489SBzuBP','recommendCommands','MfpdR','command','524163xwIsHA','8kafKLt','30kDElKy','epilogue','48932YztplY','connect','40ekaBgO','130KAijxU','5noppuL','hnqzk','../config/constants','demandCommand','handler','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','565341kmsNkH','builder'];a6_0x23c5=function(){return _0x37200b;};return a6_0x23c5();}
|