browserstack-node-sdk 1.26.5 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- 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/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/customEnvironment.js +1 -1
- package/src/bin/jest/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.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 -0
- 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/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/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/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -0
- package/src/helpers/accessibility-automation/helper.js +1 -0
- package/src/helpers/capsMapping.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/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/performance-tester.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
- package/src/bin/mocha/accessibility-automation/constants.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a0_0x5dd4(_0x44e120,_0x15c297){const _0x305dd5=a0_0x305d();return a0_0x5dd4=function(_0x5dd458,_0x807380){_0x5dd458=_0x5dd458-0xa4;let _0x431dc6=_0x305dd5[_0x5dd458];return _0x431dc6;},a0_0x5dd4(_0x44e120,_0x15c297);}const a0_0x2b895d=a0_0x5dd4;(function(_0x15955f,_0x219a4f){const _0x3fa520=a0_0x5dd4,_0x2dc37f=_0x15955f();while(!![]){try{const _0x54d1a2=parseInt(_0x3fa520(0xba))/0x1+parseInt(_0x3fa520(0xeb))/0x2*(-parseInt(_0x3fa520(0xa4))/0x3)+parseInt(_0x3fa520(0xce))/0x4*(parseInt(_0x3fa520(0xed))/0x5)+-parseInt(_0x3fa520(0xdc))/0x6+parseInt(_0x3fa520(0xea))/0x7+parseInt(_0x3fa520(0xad))/0x8+-parseInt(_0x3fa520(0xe6))/0x9*(parseInt(_0x3fa520(0xbb))/0xa);if(_0x54d1a2===_0x219a4f)break;else _0x2dc37f['push'](_0x2dc37f['shift']());}catch(_0x257738){_0x2dc37f['push'](_0x2dc37f['shift']());}}}(a0_0x305d,0x2bf00));const fs=require('fs'),util=require(a0_0x2b895d(0xe1)),request=require(a0_0x2b895d(0xfe)),{v4:uuidv4}=require('uuid'),{inputConfirmation,closeInput}=require(a0_0x2b895d(0xec)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getCredentialsPath}=require(a0_0x2b895d(0xd7)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util[a0_0x2b895d(0xc6)](request);function a0_0x305d(){const _0x2fd98d=['6RTfhSd','bUElE','exit','SCyuG','auth','qyLwt','jzaCn','\x20\x20username:\x20','/packages/cli/configure','74048BfKRtV','body','configure-called','Sieqb','ERROR','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','username','YvrQg','usage','gvoOA','WOFXN','seTSc','iopmT','188013wWEjmu','20rKVBrW','handler','zNogU','invalid-input','name','strict','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','XXEpC','toLowerCase','VWfZF','JVVSS','promisify','password','readFileSync','NVYeY','epilogue','length','eJOBm','WPDvk','154268RPQkee','argv','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','sAysM','https://','PYOzy','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','unauthorised','core:','../utils/utilityMethods','fqZXp','PUT','unknown-error','invalid-selection','266676zZdzQB','qdPmg','log','init-not-called','stringify','util','bPyRh','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','url','243351nDwaWl','Browserstack','INFO','SSsGj','1383312eJNPYU','309228dnRLFU','../utils/userInput','25avrtmC','active','PYFuq','Xjvzu','configure','desc','vbofm','ZaUUu','method','statusCode','XRBho','existsSync','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','list','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','Failed\x20to\x20configure\x20resources!\x20Error:\x20','tCpxD','request','\x20\x20grid-profile:\x20','error','dxbGk'];a0_0x305d=function(){return _0x2fd98d;};return a0_0x305d();}exports['command']=a0_0x2b895d(0xf1),exports[a0_0x2b895d(0xf2)]=a0_0x2b895d(0xe3),exports['builder']=function(_0x585e9){const _0x16f0a1=a0_0x2b895d,_0x3ff442={};_0x3ff442['Sieqb']='help';const _0x3a99dd=_0x3ff442;return _0x585e9[_0x16f0a1(0xb5)](HELP_HEADER_MESSAGE['configure'])[_0x16f0a1(0xca)](HELP_FOOTER_MESSAGE)['help'](_0x3a99dd[_0x16f0a1(0xb0)])['recommendCommands']()[_0x16f0a1(0xc0)]()[_0x16f0a1(0xcf)];},exports[a0_0x2b895d(0xbc)]=async function(_0x314968){const _0x1cb870=a0_0x2b895d,_0x25c903={'Xjvzu':function(_0x342a3e){return _0x342a3e();},'FBEYE':function(_0x2a26e6){return _0x2a26e6();},'ziLmq':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YvrQg':function(_0x4025e4,_0x50c566,_0x24136,_0x4a7bdc,_0x56dde6,_0x1bfb3d,_0xb92bab){return _0x4025e4(_0x50c566,_0x24136,_0x4a7bdc,_0x56dde6,_0x1bfb3d,_0xb92bab);},'zNogU':_0x1cb870(0xaf),'WobTK':_0x1cb870(0xdf),'eJOBm':function(_0x33aa23,_0x14d63b,_0x6a07fc,_0x41701b,_0x29944f,_0x29fdc9,_0xd0ac0c){return _0x33aa23(_0x14d63b,_0x6a07fc,_0x41701b,_0x29944f,_0x29fdc9,_0xd0ac0c);},'qdPmg':function(_0x48a039){return _0x48a039();},'SSsGj':'GET','WOFXN':function(_0x10188f,_0x51634d){return _0x10188f(_0x51634d);},'gvoOA':function(_0x5f0ab0,_0x94a59d){return _0x5f0ab0!==_0x94a59d;},'iopmT':function(_0x576448,_0x1b8dbc){return _0x576448!==_0x1b8dbc;},'dxbGk':function(_0x156c1b,_0x4aa2ad){return _0x156c1b===_0x4aa2ad;},'NVYeY':_0x1cb870(0xfb),'PYOzy':_0x1cb870(0xd6),'PYFuq':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','WPDvk':function(_0x364df5,_0x447e76){return _0x364df5===_0x447e76;},'jzaCn':_0x1cb870(0xe4),'FuxHl':_0x1cb870(0xbe),'fqZXp':function(_0x35055a,_0x2adfe5){return _0x35055a===_0x2adfe5;},'xzKHT':_0x1cb870(0xd4),'tCpxD':function(_0x449b99,_0x34d52f){return _0x449b99<_0x34d52f;},'bUElE':function(_0x3c67b2,_0x3de2c8){return _0x3c67b2+_0x3de2c8;},'sAysM':function(_0x5b48a0,_0x3360e7){return _0x5b48a0(_0x3360e7);},'XXEpC':_0x1cb870(0xd0),'XRBho':function(_0x3791fb,_0x4eb3a6){return _0x3791fb(_0x4eb3a6);},'ldkQm':function(_0x2e2605,_0x1cb0ba){return _0x2e2605>_0x1cb0ba;},'qyLwt':_0x1cb870(0xdb),'zLLuZ':function(_0x4be16a,_0x5a7d4f){return _0x4be16a-_0x5a7d4f;},'hfNEV':_0x1cb870(0xd9),'vbofm':function(_0x430a44,_0x411ee9){return _0x430a44!==_0x411ee9;},'seTSc':function(_0xef57c1,_0x1f174e){return _0xef57c1!==_0x1f174e;},'wXsUG':'Updated\x20default\x20Grid\x20Profile\x20successfully','VWfZF':function(_0x5524be,_0x54e795,_0x78831e,_0x20c2b1,_0x24b20b,_0x288f45,_0x389576){return _0x5524be(_0x54e795,_0x78831e,_0x20c2b1,_0x24b20b,_0x288f45,_0x389576);},'bPyRh':_0x1cb870(0xd5),'ZaUUu':'server-error','JVVSS':function(_0x4b3968,_0x353d61){return _0x4b3968===_0x353d61;},'SCyuG':function(_0x5a39a6,_0x5436f2,_0x58e17b,_0x18e5e2,_0x3df120,_0x57c14c,_0x7b0b1b){return _0x5a39a6(_0x5436f2,_0x58e17b,_0x18e5e2,_0x3df120,_0x57c14c,_0x7b0b1b);},'yMgIp':_0x1cb870(0xda)};try{global_registry['requestId']=_0x25c903['Xjvzu'](uuidv4);const _0x200e2b=_0x1cb870(0xd2)+AG_API_URL+_0x1cb870(0xac);!fs[_0x1cb870(0xf8)](_0x25c903['FBEYE'](getCredentialsPath))&&(console[_0x1cb870(0x100)](_0x25c903['ziLmq']),await _0x25c903[_0x1cb870(0xb4)](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes[_0x1cb870(0xb1)],_0x25c903['WobTK'],null,_0x314968),process['exit'](0x1));await _0x25c903[_0x1cb870(0xcc)](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes[_0x1cb870(0xe8)],null,null,_0x314968);const _0x36eeb7=JSON['parse'](fs[_0x1cb870(0xc8)](_0x25c903[_0x1cb870(0xdd)](getCredentialsPath))),_0x207a7b={};_0x207a7b[_0x1cb870(0xb3)]=_0x36eeb7[_0x1cb870(0xe7)][_0x1cb870(0xb3)],_0x207a7b[_0x1cb870(0xc7)]=_0x36eeb7[_0x1cb870(0xe7)]['password'];const _0x8e80dd={};_0x8e80dd[_0x1cb870(0xe5)]=_0x200e2b,_0x8e80dd[_0x1cb870(0xf5)]=_0x25c903[_0x1cb870(0xe9)],_0x8e80dd[_0x1cb870(0xa8)]=_0x207a7b;const _0x27f65d=_0x8e80dd,_0x56aba4=await _0x25c903[_0x1cb870(0xb7)](promisifiedRequest,_0x27f65d);if(_0x25c903[_0x1cb870(0xb6)](_0x56aba4,null)&&_0x25c903[_0x1cb870(0xb9)](_0x56aba4,undefined)&&_0x25c903[_0x1cb870(0x101)](_0x56aba4[_0x1cb870(0xf6)],0xc8)){const _0x16927b=JSON['parse'](_0x56aba4['body']);console['log'](_0x25c903[_0x1cb870(0xc9)]),console[_0x1cb870(0xde)](_0x25c903[_0x1cb870(0xd3)]),console[_0x1cb870(0xde)](_0x1cb870(0xab)+_0x36eeb7['Browserstack'][_0x1cb870(0xb3)]),console[_0x1cb870(0xde)](_0x1cb870(0xff)+_0x16927b[_0x1cb870(0xee)][_0x1cb870(0xbf)]);const _0x362df4=await _0x25c903['WOFXN'](inputConfirmation,_0x25c903[_0x1cb870(0xef)]);(_0x25c903[_0x1cb870(0x101)](_0x362df4,undefined)||_0x25c903[_0x1cb870(0x101)](_0x362df4,null)||!(_0x25c903['dxbGk'](_0x362df4[_0x1cb870(0xc3)](),'y')||_0x25c903[_0x1cb870(0xcd)](_0x362df4[_0x1cb870(0xc3)](),'n')))&&(console[_0x1cb870(0x100)](_0x25c903[_0x1cb870(0xaa)]),await _0x25c903[_0x1cb870(0xcc)](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes['ERROR'],_0x25c903['FuxHl'],null,_0x314968),process[_0x1cb870(0xa6)](0x1));_0x25c903[_0x1cb870(0xd8)](_0x362df4['toLowerCase'](),'n')&&process[_0x1cb870(0xa6)](0x0);console[_0x1cb870(0xde)](_0x25c903['xzKHT']);const _0x288880=_0x16927b[_0x1cb870(0xfa)][_0x1cb870(0xcb)];for(let _0x1ef5b8=0x0;_0x25c903['tCpxD'](_0x1ef5b8,_0x288880);_0x1ef5b8+=0x1){console[_0x1cb870(0xde)]('['+_0x25c903[_0x1cb870(0xa5)](_0x1ef5b8,0x1)+']\x20'+_0x16927b[_0x1cb870(0xfa)][_0x1ef5b8][_0x1cb870(0xbf)]);}const _0x4c45fb=await _0x25c903[_0x1cb870(0xd1)](inputConfirmation,_0x25c903[_0x1cb870(0xc2)]),_0x3e62be=_0x25c903['sAysM'](Number,_0x4c45fb);(_0x25c903[_0x1cb870(0xf7)](isNaN,_0x3e62be)||_0x25c903[_0x1cb870(0xfd)](_0x3e62be,0x0)||_0x25c903['ldkQm'](_0x3e62be,_0x288880))&&(console[_0x1cb870(0x100)](_0x25c903[_0x1cb870(0xaa)]),await _0x25c903['YvrQg'](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes['ERROR'],_0x25c903[_0x1cb870(0xa9)],null,_0x314968),process[_0x1cb870(0xa6)](0x1));_0x25c903[_0x1cb870(0xf0)](closeInput);const _0x21ed75=_0x16927b[_0x1cb870(0xfa)][_0x25c903['zLLuZ'](_0x3e62be,0x1)]['id'],_0x410127={};_0x410127[_0x1cb870(0xb3)]=_0x36eeb7[_0x1cb870(0xe7)][_0x1cb870(0xb3)],_0x410127[_0x1cb870(0xc7)]=_0x36eeb7[_0x1cb870(0xe7)][_0x1cb870(0xc7)];const _0x13d9e0={};_0x13d9e0['profileId']=_0x21ed75;const _0x19f527={};_0x19f527[_0x1cb870(0xe5)]=_0x200e2b,_0x19f527[_0x1cb870(0xf5)]=_0x25c903['hfNEV'],_0x19f527['auth']=_0x410127,_0x19f527[_0x1cb870(0xae)]=_0x13d9e0,_0x19f527['json']=!![];const _0x90fc7c=_0x19f527,_0x3dd93b=await _0x25c903[_0x1cb870(0xb7)](promisifiedRequest,_0x90fc7c);_0x25c903[_0x1cb870(0xf3)](_0x3dd93b,null)&&_0x25c903[_0x1cb870(0xb8)](_0x3dd93b,undefined)&&_0x25c903['WPDvk'](_0x3dd93b[_0x1cb870(0xf6)],0xc8)&&(console[_0x1cb870(0xde)](_0x25c903['wXsUG']),process[_0x1cb870(0xa6)](0x0)),_0x25c903[_0x1cb870(0x101)](_0x3dd93b[_0x1cb870(0xf6)],0x191)&&(console[_0x1cb870(0x100)](_0x1cb870(0xc1)),await _0x25c903[_0x1cb870(0xc4)](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes[_0x1cb870(0xb1)],_0x25c903['bPyRh'],null,_0x314968),process[_0x1cb870(0xa6)](0x1)),console[_0x1cb870(0x100)](_0x1cb870(0xb2)+JSON[_0x1cb870(0xe0)](_0x3dd93b)),await _0x25c903[_0x1cb870(0xc4)](sendInstrumentationEvent,_0x314968,_0x25c903['zNogU'],messageTypes[_0x1cb870(0xb1)],_0x25c903[_0x1cb870(0xf4)],_0x3dd93b,_0x314968),process[_0x1cb870(0xa6)](0x1);}_0x25c903[_0x1cb870(0xc5)](_0x56aba4['statusCode'],0x191)&&(console[_0x1cb870(0x100)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x25c903[_0x1cb870(0xa7)](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes[_0x1cb870(0xb1)],_0x25c903[_0x1cb870(0xe2)],null,_0x314968),process['exit'](0x1)),console[_0x1cb870(0x100)](_0x1cb870(0xf9)+JSON[_0x1cb870(0xe0)](_0x56aba4)),await _0x25c903[_0x1cb870(0xa7)](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes[_0x1cb870(0xb1)],_0x25c903[_0x1cb870(0xf4)],_0x56aba4,_0x314968),process[_0x1cb870(0xa6)](0x1);}catch(_0x3db612){console[_0x1cb870(0x100)](_0x1cb870(0xfc)+_0x3db612['stack']),await _0x25c903[_0x1cb870(0xa7)](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes[_0x1cb870(0xb1)],_0x25c903['yMgIp'],_0x3db612,_0x314968),process[_0x1cb870(0xa6)](0x1);}};
|
|
1
|
+
function a0_0x2923(_0x89428c,_0x5ac412){const _0x253ebb=a0_0x253e();return a0_0x2923=function(_0x292385,_0x3c1b4d){_0x292385=_0x292385-0x18d;let _0xb97744=_0x253ebb[_0x292385];return _0xb97744;},a0_0x2923(_0x89428c,_0x5ac412);}const a0_0xae7cc0=a0_0x2923;(function(_0x53e77b,_0xedaafd){const _0x448ab0=a0_0x2923,_0x5c07b1=_0x53e77b();while(!![]){try{const _0x355b3b=parseInt(_0x448ab0(0x1a3))/0x1*(-parseInt(_0x448ab0(0x19a))/0x2)+parseInt(_0x448ab0(0x1da))/0x3+parseInt(_0x448ab0(0x1e1))/0x4+-parseInt(_0x448ab0(0x1a2))/0x5*(parseInt(_0x448ab0(0x1b9))/0x6)+parseInt(_0x448ab0(0x1d4))/0x7*(parseInt(_0x448ab0(0x1eb))/0x8)+-parseInt(_0x448ab0(0x1e7))/0x9*(parseInt(_0x448ab0(0x1d2))/0xa)+parseInt(_0x448ab0(0x1b1))/0xb;if(_0x355b3b===_0xedaafd)break;else _0x5c07b1['push'](_0x5c07b1['shift']());}catch(_0x1d5130){_0x5c07b1['push'](_0x5c07b1['shift']());}}}(a0_0x253e,0x52261));const fs=require('fs'),util=require('util'),request=require(a0_0xae7cc0(0x1ae)),{v4:uuidv4}=require(a0_0xae7cc0(0x1c9)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a0_0xae7cc0(0x1bb)),{getCredentialsPath}=require(a0_0xae7cc0(0x1d7)),{sendInstrumentationEvent}=require(a0_0xae7cc0(0x1ab)),promisifiedRequest=util['promisify'](request);exports[a0_0xae7cc0(0x1de)]=a0_0xae7cc0(0x1b5),exports[a0_0xae7cc0(0x1c6)]=a0_0xae7cc0(0x1db),exports[a0_0xae7cc0(0x1f2)]=function(_0x2495a5){const _0x2588e8=a0_0xae7cc0,_0x1403c2={};_0x1403c2[_0x2588e8(0x1f1)]='help';const _0x29c9b7=_0x1403c2;return _0x2495a5[_0x2588e8(0x190)](HELP_HEADER_MESSAGE['configure'])[_0x2588e8(0x18d)](HELP_FOOTER_MESSAGE)['help'](_0x29c9b7[_0x2588e8(0x1f1)])[_0x2588e8(0x18e)]()[_0x2588e8(0x1dc)]()[_0x2588e8(0x1a7)];},exports[a0_0xae7cc0(0x194)]=async function(_0x16632){const _0x136b63=a0_0xae7cc0,_0x3ac5f0={'nGPlF':function(_0xec986c){return _0xec986c();},'VWsHQ':function(_0x2b62e5){return _0x2b62e5();},'lNlGD':_0x136b63(0x1b8),'Fdayy':function(_0x557b45,_0x373a8f,_0x3dddd8,_0x197411,_0x4ee546,_0x8d713c,_0x13993b){return _0x557b45(_0x373a8f,_0x3dddd8,_0x197411,_0x4ee546,_0x8d713c,_0x13993b);},'eYVRX':_0x136b63(0x1f0),'CeDlu':_0x136b63(0x1d0),'EAiaQ':function(_0x34287e){return _0x34287e();},'EDMMk':'GET','BJJAs':function(_0x41bc70,_0x1369d9){return _0x41bc70(_0x1369d9);},'xbimE':function(_0x4473c0,_0xc46b3e){return _0x4473c0!==_0xc46b3e;},'LWYma':function(_0x29fd44,_0x3b225b){return _0x29fd44===_0x3b225b;},'VYptw':'\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','LClfh':_0x136b63(0x1ed),'RcxME':function(_0x46e4bf,_0x4dcad8){return _0x46e4bf(_0x4dcad8);},'SwqIg':_0x136b63(0x1d9),'Pfhgt':function(_0x4c65f4,_0x2fcb52){return _0x4c65f4===_0x2fcb52;},'hASIT':function(_0x510fa3,_0x742dab){return _0x510fa3===_0x742dab;},'JHDmB':_0x136b63(0x1d6),'IgYoK':'invalid-input','jBArB':_0x136b63(0x1bc),'ajXlm':function(_0x31aa61,_0x1ce354){return _0x31aa61<_0x1ce354;},'xoYUE':function(_0x45ab60,_0x51a594){return _0x45ab60+_0x51a594;},'zcLlS':_0x136b63(0x1b7),'FUfyF':function(_0x3a7a15,_0x31ebcc){return _0x3a7a15(_0x31ebcc);},'duiXp':function(_0x3dc0ac,_0x3a4dd7){return _0x3dc0ac<_0x3a4dd7;},'DIKOJ':function(_0x4cd469,_0x505909){return _0x4cd469>_0x505909;},'sIISS':function(_0x362933,_0x3ea77a,_0xa6aefc,_0x38de9f,_0x5203af,_0xda46c2,_0x37559e){return _0x362933(_0x3ea77a,_0xa6aefc,_0x38de9f,_0x5203af,_0xda46c2,_0x37559e);},'NYNfz':_0x136b63(0x1d5),'YTeMI':function(_0xe401e3){return _0xe401e3();},'ZuWWH':function(_0xe9c2e2,_0xa00d3a){return _0xe9c2e2-_0xa00d3a;},'GpOyu':_0x136b63(0x198),'KQukd':function(_0x28d7b7,_0x162e01){return _0x28d7b7===_0x162e01;},'ksvVr':'Updated\x20default\x20Grid\x20Profile\x20successfully','KATpp':function(_0x34e66b,_0x458b85){return _0x34e66b===_0x458b85;},'HCqCA':function(_0x48b3a0,_0x4062ff,_0x1336fd,_0x217bc9,_0x566004,_0x5ac1ae,_0x457e6f){return _0x48b3a0(_0x4062ff,_0x1336fd,_0x217bc9,_0x566004,_0x5ac1ae,_0x457e6f);},'FGuCZ':_0x136b63(0x1c2),'HaPlA':'server-error','ojEqq':_0x136b63(0x1bd)};try{global_registry[_0x136b63(0x195)]=_0x3ac5f0[_0x136b63(0x1a6)](uuidv4);const _0x1ed49a=_0x136b63(0x19b)+AG_API_URL+_0x136b63(0x19d);!fs['existsSync'](_0x3ac5f0[_0x136b63(0x1d1)](getCredentialsPath))&&(console[_0x136b63(0x1c1)](_0x3ac5f0['lNlGD']),await _0x3ac5f0[_0x136b63(0x1bf)](sendInstrumentationEvent,_0x16632,_0x3ac5f0['eYVRX'],messageTypes[_0x136b63(0x1b4)],_0x3ac5f0[_0x136b63(0x1dd)],null,_0x16632),process['exit'](0x1));await _0x3ac5f0[_0x136b63(0x1bf)](sendInstrumentationEvent,_0x16632,_0x3ac5f0[_0x136b63(0x1a1)],messageTypes[_0x136b63(0x1ea)],null,null,_0x16632);const _0x5699c9=JSON[_0x136b63(0x1cb)](fs[_0x136b63(0x1e4)](_0x3ac5f0['EAiaQ'](getCredentialsPath))),_0x5e9ed8={};_0x5e9ed8['username']=_0x5699c9[_0x136b63(0x1d3)][_0x136b63(0x1ec)],_0x5e9ed8['password']=_0x5699c9[_0x136b63(0x1d3)]['password'];const _0x146c5b={};_0x146c5b[_0x136b63(0x1ca)]=_0x1ed49a,_0x146c5b[_0x136b63(0x1ee)]=_0x3ac5f0[_0x136b63(0x1df)],_0x146c5b[_0x136b63(0x1c7)]=_0x5e9ed8;const _0x209c97=_0x146c5b,_0x1da2db=await _0x3ac5f0[_0x136b63(0x19e)](promisifiedRequest,_0x209c97);if(_0x3ac5f0['xbimE'](_0x1da2db,null)&&_0x3ac5f0[_0x136b63(0x1a4)](_0x1da2db,undefined)&&_0x3ac5f0['LWYma'](_0x1da2db[_0x136b63(0x1a8)],0xc8)){const _0x4d8951=JSON[_0x136b63(0x1cb)](_0x1da2db[_0x136b63(0x1ac)]);console[_0x136b63(0x197)](_0x3ac5f0['VYptw']),console['log'](_0x3ac5f0[_0x136b63(0x1a5)]),console[_0x136b63(0x197)]('\x20\x20username:\x20'+_0x5699c9[_0x136b63(0x1d3)][_0x136b63(0x1ec)]),console['log'](_0x136b63(0x1c0)+_0x4d8951[_0x136b63(0x1b6)][_0x136b63(0x1a9)]);const _0x28902d=await _0x3ac5f0[_0x136b63(0x18f)](inputConfirmation,_0x3ac5f0[_0x136b63(0x199)]);(_0x3ac5f0[_0x136b63(0x1e0)](_0x28902d,undefined)||_0x3ac5f0[_0x136b63(0x193)](_0x28902d,null)||!(_0x3ac5f0[_0x136b63(0x1e0)](_0x28902d[_0x136b63(0x1e6)](),'y')||_0x3ac5f0[_0x136b63(0x19c)](_0x28902d['toLowerCase'](),'n')))&&(console[_0x136b63(0x1c1)](_0x3ac5f0[_0x136b63(0x1aa)]),await _0x3ac5f0[_0x136b63(0x1bf)](sendInstrumentationEvent,_0x16632,_0x3ac5f0[_0x136b63(0x1a1)],messageTypes[_0x136b63(0x1b4)],_0x3ac5f0[_0x136b63(0x1e8)],null,_0x16632),process[_0x136b63(0x1c8)](0x1));_0x3ac5f0[_0x136b63(0x1e0)](_0x28902d[_0x136b63(0x1e6)](),'n')&&process['exit'](0x0);console['log'](_0x3ac5f0[_0x136b63(0x1c5)]);const _0x2870d0=_0x4d8951[_0x136b63(0x1e5)][_0x136b63(0x1af)];for(let _0x3b2f42=0x0;_0x3ac5f0[_0x136b63(0x1d8)](_0x3b2f42,_0x2870d0);_0x3b2f42+=0x1){console[_0x136b63(0x197)]('['+_0x3ac5f0[_0x136b63(0x192)](_0x3b2f42,0x1)+']\x20'+_0x4d8951[_0x136b63(0x1e5)][_0x3b2f42][_0x136b63(0x1a9)]);}const _0x4802a3=await _0x3ac5f0['BJJAs'](inputConfirmation,_0x3ac5f0[_0x136b63(0x1cc)]),_0x1d9e64=_0x3ac5f0[_0x136b63(0x18f)](Number,_0x4802a3);(_0x3ac5f0['FUfyF'](isNaN,_0x1d9e64)||_0x3ac5f0[_0x136b63(0x1c3)](_0x1d9e64,0x0)||_0x3ac5f0[_0x136b63(0x1c4)](_0x1d9e64,_0x2870d0))&&(console[_0x136b63(0x1c1)](_0x3ac5f0['JHDmB']),await _0x3ac5f0['sIISS'](sendInstrumentationEvent,_0x16632,_0x3ac5f0[_0x136b63(0x1a1)],messageTypes[_0x136b63(0x1b4)],_0x3ac5f0[_0x136b63(0x196)],null,_0x16632),process[_0x136b63(0x1c8)](0x1));_0x3ac5f0[_0x136b63(0x1ba)](closeInput);const _0xb63b0b=_0x4d8951[_0x136b63(0x1e5)][_0x3ac5f0[_0x136b63(0x1b2)](_0x1d9e64,0x1)]['id'],_0x15d2b3={};_0x15d2b3[_0x136b63(0x1ec)]=_0x5699c9['Browserstack']['username'],_0x15d2b3[_0x136b63(0x1ef)]=_0x5699c9[_0x136b63(0x1d3)]['password'];const _0x30872d={};_0x30872d[_0x136b63(0x1e3)]=_0xb63b0b;const _0x434c5a={};_0x434c5a['url']=_0x1ed49a,_0x434c5a[_0x136b63(0x1ee)]=_0x3ac5f0['GpOyu'],_0x434c5a[_0x136b63(0x1c7)]=_0x15d2b3,_0x434c5a[_0x136b63(0x1ac)]=_0x30872d,_0x434c5a[_0x136b63(0x1cf)]=!![];const _0x332a15=_0x434c5a,_0x722f08=await _0x3ac5f0[_0x136b63(0x19e)](promisifiedRequest,_0x332a15);_0x3ac5f0[_0x136b63(0x1a4)](_0x722f08,null)&&_0x3ac5f0[_0x136b63(0x1a4)](_0x722f08,undefined)&&_0x3ac5f0[_0x136b63(0x1a0)](_0x722f08[_0x136b63(0x1a8)],0xc8)&&(console[_0x136b63(0x197)](_0x3ac5f0[_0x136b63(0x1be)]),process[_0x136b63(0x1c8)](0x0)),_0x3ac5f0[_0x136b63(0x19f)](_0x722f08[_0x136b63(0x1a8)],0x191)&&(console[_0x136b63(0x1c1)]('Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!'),await _0x3ac5f0[_0x136b63(0x1b3)](sendInstrumentationEvent,_0x16632,_0x3ac5f0[_0x136b63(0x1a1)],messageTypes[_0x136b63(0x1b4)],_0x3ac5f0['FGuCZ'],null,_0x16632),process[_0x136b63(0x1c8)](0x1)),console['error']('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON[_0x136b63(0x191)](_0x722f08)),await _0x3ac5f0[_0x136b63(0x1b3)](sendInstrumentationEvent,_0x16632,_0x3ac5f0[_0x136b63(0x1a1)],messageTypes[_0x136b63(0x1b4)],_0x3ac5f0['HaPlA'],_0x722f08,_0x16632),process[_0x136b63(0x1c8)](0x1);}_0x3ac5f0['KATpp'](_0x1da2db[_0x136b63(0x1a8)],0x191)&&(console[_0x136b63(0x1c1)](_0x136b63(0x1b0)),await _0x3ac5f0[_0x136b63(0x1bf)](sendInstrumentationEvent,_0x16632,_0x3ac5f0[_0x136b63(0x1a1)],messageTypes['ERROR'],_0x3ac5f0['FGuCZ'],null,_0x16632),process[_0x136b63(0x1c8)](0x1)),console[_0x136b63(0x1c1)](_0x136b63(0x1ce)+JSON[_0x136b63(0x191)](_0x1da2db)),await _0x3ac5f0[_0x136b63(0x1bf)](sendInstrumentationEvent,_0x16632,_0x3ac5f0['eYVRX'],messageTypes[_0x136b63(0x1b4)],_0x3ac5f0[_0x136b63(0x1cd)],_0x1da2db,_0x16632),process[_0x136b63(0x1c8)](0x1);}catch(_0x53d54b){console[_0x136b63(0x1c1)](_0x136b63(0x1e2)+_0x53d54b[_0x136b63(0x1ad)]),await _0x3ac5f0[_0x136b63(0x1bf)](sendInstrumentationEvent,_0x16632,_0x3ac5f0[_0x136b63(0x1a1)],messageTypes[_0x136b63(0x1b4)],_0x3ac5f0[_0x136b63(0x1e9)],_0x53d54b,_0x16632),process[_0x136b63(0x1c8)](0x1);}};function a0_0x253e(){const _0x47e819=['ajXlm','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','233316HBPCNk','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','strict','CeDlu','command','EDMMk','Pfhgt','585756bktMTY','Failed\x20to\x20configure\x20resources!\x20Error:\x20','profileId','readFileSync','list','toLowerCase','9vWRXeB','IgYoK','ojEqq','INFO','4117952PRuXgi','username','core:','method','password','configure-called','WbBHO','builder','epilogue','recommendCommands','RcxME','usage','stringify','xoYUE','hASIT','handler','requestId','NYNfz','log','PUT','SwqIg','422816bwIeoU','https://','LWYma','/packages/cli/configure','BJJAs','KATpp','KQukd','eYVRX','55VXqueo','2ZLlPIG','xbimE','LClfh','nGPlF','argv','statusCode','name','JHDmB','../utils/instrumentationUtils','body','stack','request','length','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','4613444XAieBI','ZuWWH','HCqCA','ERROR','configure','active','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','127806qSgEiX','YTeMI','../config/constants','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','unknown-error','ksvVr','Fdayy','\x20\x20grid-profile:\x20','error','unauthorised','duiXp','DIKOJ','jBArB','desc','auth','exit','uuid','url','parse','zcLlS','HaPlA','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','json','init-not-called','VWsHQ','1647510Havuih','Browserstack','7sOnBJo','invalid-selection','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','../utils/utilityMethods'];a0_0x253e=function(){return _0x47e819;};return a0_0x253e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a1_0x2aec(){const _0x2063c0=['1098629vBhTWZ','recommendCommands','epilogue','builder','commandDir','gcBLP','desc','connect_commands','355671jedpWf','../config/constants','oBzvT','104MZJGFw','connect','strict','handler','command','20XqComh','791322Tzfciy','207454FxdZQD','300735uovFzu','demandCommand','1790028bMosMY','290095wACCDH'];a1_0x2aec=function(){return _0x2063c0;};return a1_0x2aec();}const a1_0x40a08b=a1_0x1024;function a1_0x1024(_0x4994cd,_0x761e56){const _0x2aec6e=a1_0x2aec();return a1_0x1024=function(_0x102444,_0x5e4c9f){_0x102444=_0x102444-0x1d1;let _0x55ffb2=_0x2aec6e[_0x102444];return _0x55ffb2;},a1_0x1024(_0x4994cd,_0x761e56);}(function(_0xee7784,_0x27e0f3){const _0xfecea4=a1_0x1024,_0xde0059=_0xee7784();while(!![]){try{const _0x1bd510=parseInt(_0xfecea4(0x1d8))/0x1+-parseInt(_0xfecea4(0x1d7))/0x2+-parseInt(_0xfecea4(0x1d6))/0x3+-parseInt(_0xfecea4(0x1d5))/0x4*(-parseInt(_0xfecea4(0x1db))/0x5)+parseInt(_0xfecea4(0x1da))/0x6+parseInt(_0xfecea4(0x1dc))/0x7+parseInt(_0xfecea4(0x1e7))/0x8*(-parseInt(_0xfecea4(0x1e4))/0x9);if(_0x1bd510===_0x27e0f3)break;else _0xde0059['push'](_0xde0059['shift']());}catch(_0x37df9f){_0xde0059['push'](_0xde0059['shift']());}}}(a1_0x2aec,0x28403));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a1_0x40a08b(0x1e5));exports[a1_0x40a08b(0x1d4)]=a1_0x40a08b(0x1d1),exports[a1_0x40a08b(0x1e2)]='Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment',exports[a1_0x40a08b(0x1df)]=function(_0x569f2e){const _0x78fb68=a1_0x40a08b,_0x1e3666={};_0x1e3666[_0x78fb68(0x1e6)]=_0x78fb68(0x1e3),_0x1e3666[_0x78fb68(0x1e1)]='help';const _0x42a420=_0x1e3666;return _0x569f2e['usage'](HELP_HEADER_MESSAGE[_0x78fb68(0x1d1)])[_0x78fb68(0x1de)](HELP_FOOTER_MESSAGE)[_0x78fb68(0x1e0)](_0x42a420[_0x78fb68(0x1e6)])[_0x78fb68(0x1d9)]()[_0x78fb68(0x1dd)]()[_0x78fb68(0x1d2)]()['help'](_0x42a420[_0x78fb68(0x1e1)]);},exports[a1_0x40a08b(0x1d3)]=function(_0x412e1f){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x330651=a2_0xd1ce;function a2_0x40f7(){const _0x19039e=['vNrsx','aSmeR','error','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','1200260SMayEo','XzKnU','cmEkH','FubAb','type','XpeqS','30628653MnsVmT','MDolX','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','epilogue','create','qHBFC','pfBWc','tXtwu','1722693WkvIxW','IpJFZ','FoZNG','ofhFG','bstack-username','lmzkQ','tvGmj','584ULpOFn','zuwGl','DMuFJ','aSELr','QlpJr','yoUOy','advanceOptions','browserStackLocalOptions','description','VDUDj','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','LfLmb','isRunning','LMJRy','handler','Grid\x20type:\x20Trial','IjOjj','exit','usage','use-staging','nnmBz','ytElv','pUFUW','Pass\x20the\x20ID\x20of\x20the\x20Grid','SlXWC','iidCa','YIYDy','yOtXw','HzvPX','xeItP','dQzGF','1353wpYXHE','Advance\x20options\x20for\x20Browserstack\x20Local','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','TOYGf','gwYfH','iixkm','cYRWj','32RRwbSQ','beforeExit','PKWBq','SIGTERM','useStaging','1658rZWKYL','KjZAI','advance-options','customRepeaters','Bdaft','FbBEe','zRkRY','sOymH','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','8556309zMSCAz','desc','bstackUsername','SIGINT','grid-id','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','info','argv','hxVYO','vftzJ','AZwhy','bstackAccesskey','18iSlraB','isTrialGrid','2721700MRAAqN','accessKey','../../utils/utilityMethods','options','bCrLC','JMPHf','builder','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','CkBOd','LrbZn','string','kFjGo','../../config/constants','20058sLVpUp','WnqSg'];a2_0x40f7=function(){return _0x19039e;};return a2_0x40f7();}function a2_0xd1ce(_0x35a28c,_0x205dfd){const _0x40f743=a2_0x40f7();return a2_0xd1ce=function(_0xd1ced6,_0x2885bb){_0xd1ced6=_0xd1ced6-0xee;let _0x2124ce=_0x40f743[_0xd1ced6];return _0x2124ce;},a2_0xd1ce(_0x35a28c,_0x205dfd);}(function(_0x1780e5,_0xf22cfd){const _0x551e4b=a2_0xd1ce,_0x22bdd5=_0x1780e5();while(!![]){try{const _0x44e383=parseInt(_0x551e4b(0x121))/0x1*(parseInt(_0x551e4b(0x12d))/0x2)+parseInt(_0x551e4b(0x152))/0x3*(parseInt(_0x551e4b(0x102))/0x4)+parseInt(_0x551e4b(0x158))/0x5*(-parseInt(_0x551e4b(0x142))/0x6)+parseInt(_0x551e4b(0xfb))/0x7*(parseInt(_0x551e4b(0x128))/0x8)+parseInt(_0x551e4b(0x136))/0x9+parseInt(_0x551e4b(0x144))/0xa+-parseInt(_0x551e4b(0xf3))/0xb;if(_0x44e383===_0xf22cfd)break;else _0x22bdd5['push'](_0x22bdd5['shift']());}catch(_0x1c490a){_0x22bdd5['push'](_0x22bdd5['shift']());}}}(a2_0x40f7,0xc36e1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a2_0x330651(0x151)),{logger}=require('../../config/logger'),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a2_0x330651(0x146));exports['command']='grid',exports[a2_0x330651(0x137)]=a2_0x330651(0xf5),exports[a2_0x330651(0x14a)]=_0x115b2c=>{const _0x32b8f4=a2_0x330651,_0x51ac60={};_0x51ac60[_0x32b8f4(0x118)]=_0x32b8f4(0x13b),_0x51ac60['tvGmj']=_0x32b8f4(0x14f),_0x51ac60[_0x32b8f4(0xfd)]=_0x32b8f4(0x123),_0x51ac60[_0x32b8f4(0x103)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x51ac60[_0x32b8f4(0x126)]=_0x32b8f4(0x14c),_0x51ac60[_0x32b8f4(0x13e)]=_0x32b8f4(0x122),_0x51ac60[_0x32b8f4(0x106)]='help';const _0x38c1fa=_0x51ac60,_0x5d093b={};_0x5d093b[_0x32b8f4(0x10a)]=_0x38c1fa['pUFUW'],_0x5d093b[_0x32b8f4(0xf1)]=_0x38c1fa[_0x32b8f4(0x101)];const _0x1c5653={};_0x1c5653[_0x32b8f4(0x10a)]=_0x38c1fa['FoZNG'],_0x1c5653[_0x32b8f4(0xf1)]=_0x38c1fa['tvGmj'];const _0x27ddb5={};_0x27ddb5['demandOption']=!![],_0x27ddb5[_0x32b8f4(0x10a)]=_0x38c1fa[_0x32b8f4(0x103)],_0x27ddb5[_0x32b8f4(0xf1)]=_0x38c1fa['tvGmj'];const _0x114561={};_0x114561[_0x32b8f4(0x10a)]=_0x38c1fa[_0x32b8f4(0x126)],_0x114561[_0x32b8f4(0xf1)]=_0x38c1fa[_0x32b8f4(0x101)];const _0x1b1b01={};_0x1b1b01[_0x32b8f4(0x10a)]=_0x38c1fa['hxVYO'],_0x1b1b01['type']=_0x38c1fa[_0x32b8f4(0x101)];const _0x118c02={};return _0x118c02[_0x32b8f4(0xff)]=_0x5d093b,_0x118c02['bstack-accesskey']=_0x1c5653,_0x118c02[_0x32b8f4(0x13a)]=_0x27ddb5,_0x118c02[_0x32b8f4(0x115)]=_0x114561,_0x118c02[_0x32b8f4(0x12f)]=_0x1b1b01,_0x115b2c[_0x32b8f4(0x114)](HELP_HEADER_MESSAGE['create'])[_0x32b8f4(0xf6)](HELP_FOOTER_MESSAGE)['options'](_0x118c02)['help'](_0x38c1fa[_0x32b8f4(0x106)])[_0x32b8f4(0x13d)];},exports[a2_0x330651(0x110)]=async _0x256a90=>{const _0x2fff0b=a2_0x330651,_0x2e875a={'LfLmb':function(_0x23fcf4,_0x141319){return _0x23fcf4(_0x141319);},'WnqSg':_0x2fff0b(0x129),'XzKnU':_0x2fff0b(0x139),'DMuFJ':_0x2fff0b(0x12b),'PKWBq':function(_0x21a0a7,_0x52f73e){return _0x21a0a7==_0x52f73e;},'xeItP':function(_0x4c63a3,_0x18c59d){return _0x4c63a3===_0x18c59d;},'qHBFC':'FTcHT','yOtXw':function(_0x2adda5,_0x2b8d59){return _0x2adda5(_0x2b8d59);},'cYRWj':function(_0x25a84e,_0x20be3d){return _0x25a84e(_0x20be3d);},'snFKC':_0x2fff0b(0x13b),'AZwhy':_0x2fff0b(0x14f),'IpJFZ':_0x2fff0b(0x123),'pfBWc':_0x2fff0b(0x119),'yoUOy':_0x2fff0b(0x14c),'YTlcG':_0x2fff0b(0x122),'ofhFG':'help','SlXWC':function(_0x5fdfa5,_0x3b67fe){return _0x5fdfa5(_0x3b67fe);},'JMPHf':function(_0x5dad4a,_0x520269){return _0x5dad4a===_0x520269;},'aSELr':_0x2fff0b(0x11c),'CkBOd':_0x2fff0b(0x100),'bCrLC':function(_0xa611f3,_0x32d25d){return _0xa611f3==_0x32d25d;},'nnmBz':function(_0x21e43a,_0x16e931){return _0x21e43a(_0x16e931);},'dQzGF':function(_0x5062c0,_0x43c314){return _0x5062c0==_0x43c314;},'SMhXz':function(_0x51357a,_0x296c3b){return _0x51357a(_0x296c3b);},'VDUDj':function(_0xf73682,_0x57c072,_0x433e81){return _0xf73682(_0x57c072,_0x433e81);},'MDolX':function(_0x4edba8,_0x9fa322){return _0x4edba8&&_0x9fa322;},'kFjGo':function(_0x389c39,_0x22cca6){return _0x389c39===_0x22cca6;},'wglln':_0x2fff0b(0x124),'HzvPX':_0x2fff0b(0x155),'XpeqS':function(_0x3ca64a,_0x46df7a){return _0x3ca64a(_0x46df7a);},'gwYfH':function(_0x48929f,_0x32cc5f,_0x24ec3a,_0x3a22f8){return _0x48929f(_0x32cc5f,_0x24ec3a,_0x3a22f8);},'LrbZn':function(_0x54288f,_0x924658){return _0x54288f!==_0x924658;},'ifUSG':_0x2fff0b(0x134),'XeyRx':_0x2fff0b(0x117),'IBHUo':function(_0x56d52a,_0x12f586){return _0x56d52a(_0x12f586);},'XtbBZ':function(_0x545501,_0x33c7d4){return _0x545501===_0x33c7d4;},'FubAb':'true','LMJRy':function(_0x3bc9d5,_0x47ccbe){return _0x3bc9d5!==_0x47ccbe;},'vNrsx':_0x2fff0b(0x112),'wVCUa':function(_0x515f6d,_0x144aa4){return _0x515f6d!==_0x144aa4;},'iayIH':_0x2fff0b(0x13f),'tXtwu':_0x2fff0b(0x131),'VbWYu':function(_0x12f298,_0x364af1){return _0x12f298(_0x364af1);},'iidCa':_0x2fff0b(0x133)};let _0x4d83e9=_0x256a90[_0x2fff0b(0x138)],_0x2d58aa=_0x256a90[_0x2fff0b(0x141)],_0x1da88f=_0x256a90[_0x2fff0b(0x108)];const _0x4b1e73=_0x1169c4=>{const _0x5122b0=_0x2fff0b,_0x3325d4={'cmEkH':function(_0x5eb1a8,_0x3e091e){const _0x2771ab=a2_0xd1ce;return _0x2e875a[_0x2771ab(0x12a)](_0x5eb1a8,_0x3e091e);},'KjZAI':function(_0x44279a,_0x396bd1){const _0x550b86=a2_0xd1ce;return _0x2e875a[_0x550b86(0x10d)](_0x44279a,_0x396bd1);}};if(_0x2e875a[_0x5122b0(0x11f)](_0x2e875a[_0x5122b0(0xf8)],_0x2e875a[_0x5122b0(0xf8)]))logger[_0x5122b0(0x156)](_0x1169c4),process[_0x5122b0(0x113)](0x1);else{_0x23a9b0=_0x5122b0(0x111),_0x2b60f3[_0x5122b0(0x13c)](_0x5db020);try{const _0x1bd0cb={};_0x1bd0cb[_0x5122b0(0x145)]=_0x46041f,_0x1bd0cb['customRepeaters']=_0x1a90f3[_0x5122b0(0x130)],_0x1bd0cb['browserStackLocalOptions']=_0x402de2;const _0x56f1f9=_0x1bd0cb,_0x2c4eed=_0x2e875a[_0x5122b0(0x10d)](_0x514d66,_0x56f1f9);let _0x5b8bf5=0x0;const _0x515336=async()=>{const _0xf893c3=_0x5122b0;_0x5b8bf5++,_0x3325d4[_0xf893c3(0xef)](_0x5b8bf5,0x1)&&_0x2c4eed&&_0x2c4eed[_0xf893c3(0x10e)]()&&_0x3325d4[_0xf893c3(0x12e)](_0x2cd54a,_0x2c4eed);};_0x3d7398['on'](_0x2e875a[_0x5122b0(0x153)],_0x515336),_0x3ea729['on'](_0x2e875a['XzKnU'],_0x515336),_0x4b545e['on'](_0x2e875a[_0x5122b0(0x104)],_0x515336),_0x31b1f9=_0x5122b0(0x135),_0x581d73['info'](_0x1e09fa);}catch(_0x57f05e){_0x2e875a[_0x5122b0(0x10d)](_0x32de8d,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}};[_0x4d83e9,_0x2d58aa]=_0x2e875a[_0x2fff0b(0x10b)](fetchOrUpdateUserConfig,_0x4d83e9,_0x2d58aa);if(!_0x2e875a[_0x2fff0b(0xf4)](_0x4d83e9,_0x2d58aa)){if(_0x2e875a[_0x2fff0b(0x150)](_0x2e875a['wglln'],_0x2e875a[_0x2fff0b(0x11e)])){const _0x47f15c={};_0x47f15c['accessKey']=_0x4c30a1,_0x47f15c[_0x2fff0b(0x130)]=_0x4d0542[_0x2fff0b(0x130)],_0x47f15c[_0x2fff0b(0x109)]=_0x51ffc1;const _0x33ace8=_0x47f15c,_0x37dab3=_0x2e875a[_0x2fff0b(0x127)](_0x5833c4,_0x33ace8);let _0x3fa5bc=0x0;const _0x577b6b=async()=>{const _0x321970=_0x2fff0b;_0x3fa5bc++,_0x2e875a[_0x321970(0x12a)](_0x3fa5bc,0x1)&&_0x37dab3&&_0x37dab3[_0x321970(0x10e)]()&&_0x2e875a[_0x321970(0x11d)](_0x53a90c,_0x37dab3);};_0x3bf8b4['on'](_0x2e875a['WnqSg'],_0x577b6b),_0x1dd0b8['on'](_0x2e875a[_0x2fff0b(0xee)],_0x577b6b),_0x4376fe['on'](_0x2e875a['DMuFJ'],_0x577b6b),_0x530935='We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.',_0x28a7be[_0x2fff0b(0x13c)](_0x5994ef);}else _0x2e875a[_0x2fff0b(0xf2)](_0x4b1e73,_0x2fff0b(0x157));}let _0x70929c=_0x256a90['gridId'],_0xcf32ef=await _0x2e875a[_0x2fff0b(0x125)](getGridDetails,_0x4d83e9,_0x2d58aa,_0x70929c);if(!_0xcf32ef){if(_0x2e875a[_0x2fff0b(0x14e)](_0x2e875a['ifUSG'],_0x2e875a['XeyRx']))_0x2e875a['IBHUo'](_0x4b1e73,_0x2fff0b(0x10c));else{const _0x4a6ebe={};_0x4a6ebe['description']=_0x2e875a['snFKC'],_0x4a6ebe[_0x2fff0b(0xf1)]=_0x2e875a[_0x2fff0b(0x140)];const _0x1e1152={};_0x1e1152[_0x2fff0b(0x10a)]=_0x2e875a[_0x2fff0b(0xfc)],_0x1e1152[_0x2fff0b(0xf1)]=_0x2e875a[_0x2fff0b(0x140)];const _0x6e4d3b={};_0x6e4d3b['demandOption']=!![],_0x6e4d3b[_0x2fff0b(0x10a)]=_0x2e875a[_0x2fff0b(0xf9)],_0x6e4d3b[_0x2fff0b(0xf1)]=_0x2e875a[_0x2fff0b(0x140)];const _0x4d7c2f={};_0x4d7c2f[_0x2fff0b(0x10a)]=_0x2e875a[_0x2fff0b(0x107)],_0x4d7c2f[_0x2fff0b(0xf1)]=_0x2e875a[_0x2fff0b(0x140)];const _0x2c71e9={};_0x2c71e9['description']=_0x2e875a['YTlcG'],_0x2c71e9[_0x2fff0b(0xf1)]=_0x2e875a[_0x2fff0b(0x140)];const _0x35ad13={};return _0x35ad13[_0x2fff0b(0xff)]=_0x4a6ebe,_0x35ad13['bstack-accesskey']=_0x1e1152,_0x35ad13[_0x2fff0b(0x13a)]=_0x6e4d3b,_0x35ad13['use-staging']=_0x4d7c2f,_0x35ad13['advance-options']=_0x2c71e9,_0x6652e7[_0x2fff0b(0x114)](_0x520b63[_0x2fff0b(0xf7)])['epilogue'](_0xd25978)[_0x2fff0b(0x147)](_0x35ad13)['help'](_0x2e875a[_0x2fff0b(0xfe)])[_0x2fff0b(0x13d)];}}let _0x165811=_0x2e875a['XtbBZ'](_0x256a90[_0x2fff0b(0x12c)],_0x2e875a[_0x2fff0b(0xf0)])?!![]:![];if(_0xcf32ef&&_0xcf32ef[_0x2fff0b(0x143)]&&_0x165811){if(_0x2e875a[_0x2fff0b(0x10f)](_0x2e875a['vNrsx'],_0x2e875a[_0x2fff0b(0x154)]))_0xfa7e0[_0x2fff0b(0x156)](_0x1ade6b),_0x851adb[_0x2fff0b(0x113)](0x1);else{logMessage=_0x2fff0b(0x111),logger['info'](logMessage);try{if(_0x2e875a['wVCUa'](_0x2e875a['iayIH'],_0x2e875a[_0x2fff0b(0xfa)])){const _0x73e034={};_0x73e034['accessKey']=_0x2d58aa,_0x73e034[_0x2fff0b(0x130)]=_0xcf32ef[_0x2fff0b(0x130)],_0x73e034[_0x2fff0b(0x109)]=_0x1da88f;const _0x409d36=_0x73e034,_0x28bc9e=_0x2e875a['VbWYu'](startLocalBinarySync,_0x409d36);let _0x529d43=0x0;const _0x25b076=async()=>{const _0x22fd0a=_0x2fff0b,_0x212b4f={'FbBEe':function(_0x5ba4ba,_0x322a8f){const _0x25c9c6=a2_0xd1ce;return _0x2e875a[_0x25c9c6(0x11a)](_0x5ba4ba,_0x322a8f);}};_0x2e875a[_0x22fd0a(0x149)](_0x2e875a[_0x22fd0a(0x105)],_0x2e875a[_0x22fd0a(0x14d)])?_0x212b4f[_0x22fd0a(0x132)](_0xa2924b,_0x22fd0a(0x14b)):(_0x529d43++,_0x2e875a[_0x22fd0a(0x148)](_0x529d43,0x1)&&_0x28bc9e&&_0x28bc9e[_0x22fd0a(0x10e)]()&&_0x2e875a['nnmBz'](stopLocalBinary,_0x28bc9e));};process['on'](_0x2e875a[_0x2fff0b(0x153)],_0x25b076),process['on'](_0x2e875a[_0x2fff0b(0xee)],_0x25b076),process['on'](_0x2e875a['DMuFJ'],_0x25b076),logMessage=_0x2fff0b(0x135),logger[_0x2fff0b(0x13c)](logMessage);}else _0x2e875a[_0x2fff0b(0x116)](_0x244ac3,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier');}catch(_0x439ac5){_0x2e875a[_0x2fff0b(0x11f)](_0x2e875a[_0x2fff0b(0x11b)],_0x2e875a[_0x2fff0b(0x11b)])?_0x2e875a[_0x2fff0b(0x127)](_0x4b1e73,_0x2fff0b(0x14b)):(_0x48e668++,_0x2e875a[_0x2fff0b(0x120)](_0x2ec4fb,0x1)&&_0x20074c&&_0x29680e[_0x2fff0b(0x10e)]()&&_0x2e875a['SMhXz'](_0x185da6,_0x444138));}}}process['exit'](0x0);};
|
|
1
|
+
const a2_0x3ae53e=a2_0x1643;(function(_0x38cbfb,_0x2b0a12){const _0xf80bdc=a2_0x1643,_0x57d3ad=_0x38cbfb();while(!![]){try{const _0x3fb140=-parseInt(_0xf80bdc(0x15b))/0x1*(parseInt(_0xf80bdc(0x1a1))/0x2)+parseInt(_0xf80bdc(0x173))/0x3*(-parseInt(_0xf80bdc(0x170))/0x4)+-parseInt(_0xf80bdc(0x15a))/0x5*(parseInt(_0xf80bdc(0x179))/0x6)+parseInt(_0xf80bdc(0x193))/0x7*(parseInt(_0xf80bdc(0x16e))/0x8)+-parseInt(_0xf80bdc(0x1b6))/0x9*(-parseInt(_0xf80bdc(0x17b))/0xa)+-parseInt(_0xf80bdc(0x1a5))/0xb*(parseInt(_0xf80bdc(0x182))/0xc)+parseInt(_0xf80bdc(0x166))/0xd*(parseInt(_0xf80bdc(0x1a9))/0xe);if(_0x3fb140===_0x2b0a12)break;else _0x57d3ad['push'](_0x57d3ad['shift']());}catch(_0x5c19dd){_0x57d3ad['push'](_0x57d3ad['shift']());}}}(a2_0x37c3,0x56d3a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a2_0x3ae53e(0x16d)),{logger}=require(a2_0x3ae53e(0x199)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');function a2_0x1643(_0x390635,_0x3b8c9c){const _0x37c39e=a2_0x37c3();return a2_0x1643=function(_0x164385,_0x3ed5b9){_0x164385=_0x164385-0x14b;let _0x35f91a=_0x37c39e[_0x164385];return _0x35f91a;},a2_0x1643(_0x390635,_0x3b8c9c);}exports[a2_0x3ae53e(0x18c)]=a2_0x3ae53e(0x15f),exports[a2_0x3ae53e(0x15e)]=a2_0x3ae53e(0x1ad),exports['builder']=_0x28c1be=>{const _0x1af206=a2_0x3ae53e,_0x3e6791={};_0x3e6791['EQRrz']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x3e6791[_0x1af206(0x16b)]=_0x1af206(0x1b5),_0x3e6791[_0x1af206(0x1a0)]=_0x1af206(0x175),_0x3e6791[_0x1af206(0x17d)]=_0x1af206(0x14d),_0x3e6791['AvBIM']=_0x1af206(0x14f),_0x3e6791['qQYjv']=_0x1af206(0x1a8),_0x3e6791[_0x1af206(0x1ac)]='help';const _0x3f873d=_0x3e6791,_0x29ada3={};_0x29ada3[_0x1af206(0x19c)]=_0x3f873d[_0x1af206(0x17a)],_0x29ada3[_0x1af206(0x19a)]=_0x3f873d[_0x1af206(0x16b)];const _0x1a9a86={};_0x1a9a86[_0x1af206(0x19c)]=_0x3f873d['NscnM'],_0x1a9a86['type']=_0x3f873d[_0x1af206(0x16b)];const _0x5c3d5a={};_0x5c3d5a[_0x1af206(0x1ab)]=!![],_0x5c3d5a['description']=_0x3f873d['LdXOu'],_0x5c3d5a[_0x1af206(0x19a)]=_0x3f873d[_0x1af206(0x16b)];const _0x48aaf3={};_0x48aaf3[_0x1af206(0x19c)]=_0x3f873d[_0x1af206(0x19f)],_0x48aaf3[_0x1af206(0x19a)]=_0x3f873d[_0x1af206(0x16b)];const _0x1e3c16={};_0x1e3c16[_0x1af206(0x19c)]=_0x3f873d[_0x1af206(0x185)],_0x1e3c16[_0x1af206(0x19a)]=_0x3f873d['mTEvP'];const _0x2f18d2={};return _0x2f18d2['bstack-username']=_0x29ada3,_0x2f18d2['bstack-accesskey']=_0x1a9a86,_0x2f18d2[_0x1af206(0x14c)]=_0x5c3d5a,_0x2f18d2['use-staging']=_0x48aaf3,_0x2f18d2[_0x1af206(0x178)]=_0x1e3c16,_0x28c1be[_0x1af206(0x168)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x2f18d2)[_0x1af206(0x189)](_0x3f873d[_0x1af206(0x1ac)])['argv'];},exports[a2_0x3ae53e(0x151)]=async _0x4a12fd=>{const _0x2684a1=a2_0x3ae53e,_0x59543a={'dGSKq':_0x2684a1(0x184),'ZLWch':'string','YWNIK':_0x2684a1(0x175),'DGzGV':_0x2684a1(0x14d),'fixgy':_0x2684a1(0x14f),'BvBhg':_0x2684a1(0x1a8),'EMKOz':_0x2684a1(0x189),'Yelif':function(_0x2ad54f,_0x4662fe){return _0x2ad54f!==_0x4662fe;},'DkrAg':_0x2684a1(0x1a6),'yBAmg':'Jmysw','IoEXT':function(_0xb4a09e,_0x28de5a){return _0xb4a09e==_0x28de5a;},'GZvRm':function(_0x59be21,_0x283a04){return _0x59be21(_0x283a04);},'ExNoD':function(_0x237d38,_0x40a931){return _0x237d38(_0x40a931);},'zHAnL':'beforeExit','SxVMv':_0x2684a1(0x19d),'UhRAV':_0x2684a1(0x19e),'qdvrr':function(_0x47a926,_0x5172d6){return _0x47a926!==_0x5172d6;},'FdfUd':_0x2684a1(0x177),'Kmlok':_0x2684a1(0x18f),'PylDo':function(_0x1fb807,_0x127c17){return _0x1fb807==_0x127c17;},'yrHvE':function(_0x30cbbc,_0x148d28){return _0x30cbbc(_0x148d28);},'FpXRs':function(_0x9e4046,_0x27faea){return _0x9e4046==_0x27faea;},'ovHAp':function(_0x409b90,_0x23d8a9,_0x6f6905){return _0x409b90(_0x23d8a9,_0x6f6905);},'kNenR':function(_0x185000,_0x45a127){return _0x185000&&_0x45a127;},'dykoo':function(_0x163822,_0x14c298){return _0x163822===_0x14c298;},'fLgqY':_0x2684a1(0x159),'xuDTu':function(_0x1c3eab,_0x5d4624){return _0x1c3eab(_0x5d4624);},'wmnTg':function(_0x3d1b67,_0x2aa6cc,_0x1bd7e8,_0x36d68b){return _0x3d1b67(_0x2aa6cc,_0x1bd7e8,_0x36d68b);},'ZOksN':function(_0x4de8f1,_0x398370){return _0x4de8f1!==_0x398370;},'LJapy':'WxrqH','RWBsU':'MQkRA','zlcQH':_0x2684a1(0x194),'snFsz':_0x2684a1(0x181),'GuNQQ':'MSXjs','ezGOZ':'QNlPw','aQTHL':_0x2684a1(0x153),'FHAFG':_0x2684a1(0x174),'oZBnT':function(_0x1da555,_0x54b488){return _0x1da555(_0x54b488);}};let _0x213fa9=_0x4a12fd[_0x2684a1(0x18e)],_0x31f7f8=_0x4a12fd['bstackAccesskey'],_0x52f5de=_0x4a12fd['advanceOptions'];const _0x279603=_0x29b82d=>{const _0x2e4635=_0x2684a1;if(_0x59543a[_0x2e4635(0x1ae)](_0x59543a[_0x2e4635(0x186)],_0x59543a['yBAmg']))logger['error'](_0x29b82d),process['exit'](0x1);else{const _0x243549={};_0x243549[_0x2e4635(0x19c)]=_0x59543a[_0x2e4635(0x18a)],_0x243549[_0x2e4635(0x19a)]=_0x59543a['ZLWch'];const _0x34ad88={};_0x34ad88[_0x2e4635(0x19c)]=_0x59543a[_0x2e4635(0x1a4)],_0x34ad88[_0x2e4635(0x19a)]=_0x59543a['ZLWch'];const _0x33a677={};_0x33a677['demandOption']=!![],_0x33a677['description']=_0x59543a[_0x2e4635(0x19b)],_0x33a677[_0x2e4635(0x19a)]=_0x59543a[_0x2e4635(0x190)];const _0x3a621c={};_0x3a621c[_0x2e4635(0x19c)]=_0x59543a[_0x2e4635(0x17e)],_0x3a621c[_0x2e4635(0x19a)]=_0x59543a[_0x2e4635(0x190)];const _0x2f689e={};_0x2f689e['description']=_0x59543a[_0x2e4635(0x1a2)],_0x2f689e['type']=_0x59543a[_0x2e4635(0x190)];const _0x2ef2b3={};return _0x2ef2b3['bstack-username']=_0x243549,_0x2ef2b3['bstack-accesskey']=_0x34ad88,_0x2ef2b3[_0x2e4635(0x14c)]=_0x33a677,_0x2ef2b3[_0x2e4635(0x1b4)]=_0x3a621c,_0x2ef2b3[_0x2e4635(0x178)]=_0x2f689e,_0x3efac6[_0x2e4635(0x168)](_0xcbf61e[_0x2e4635(0x167)])[_0x2e4635(0x171)](_0x4e0964)[_0x2e4635(0x197)](_0x2ef2b3)[_0x2e4635(0x189)](_0x59543a[_0x2e4635(0x1b3)])[_0x2e4635(0x16a)];}};[_0x213fa9,_0x31f7f8]=_0x59543a[_0x2684a1(0x1a7)](fetchOrUpdateUserConfig,_0x213fa9,_0x31f7f8);!_0x59543a[_0x2684a1(0x180)](_0x213fa9,_0x31f7f8)&&(_0x59543a[_0x2684a1(0x18d)](_0x59543a['fLgqY'],_0x59543a[_0x2684a1(0x152)])?_0x59543a[_0x2684a1(0x165)](_0x279603,_0x2684a1(0x164)):(_0x758788[_0x2684a1(0x150)](_0x498b48),_0x44e07d['exit'](0x1)));let _0x3462ab=_0x4a12fd['gridId'],_0x3da285=await _0x59543a[_0x2684a1(0x154)](getGridDetails,_0x213fa9,_0x31f7f8,_0x3462ab);if(!_0x3da285){if(_0x59543a[_0x2684a1(0x1b0)](_0x59543a[_0x2684a1(0x156)],_0x59543a[_0x2684a1(0x15d)]))_0x59543a[_0x2684a1(0x1b1)](_0x279603,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier');else{const _0x561720={'dUhAT':function(_0x118d91,_0xdc3fc1){return _0x59543a['IoEXT'](_0x118d91,_0xdc3fc1);},'YvVQD':function(_0x3c1b90,_0x290b2d){const _0x2e5fa3=_0x2684a1;return _0x59543a[_0x2e5fa3(0x1b1)](_0x3c1b90,_0x290b2d);}},_0x5c22e5={};_0x5c22e5['accessKey']=_0x17b28c,_0x5c22e5[_0x2684a1(0x16f)]=_0x226ae0[_0x2684a1(0x16f)],_0x5c22e5[_0x2684a1(0x14b)]=_0x519ef6;const _0x3892bc=_0x5c22e5,_0x43d2cd=_0x59543a['ExNoD'](_0x3391e5,_0x3892bc);let _0x3cc139=0x0;const _0x52cd27=async()=>{const _0x19aa95=_0x2684a1;_0x3cc139++,_0x561720[_0x19aa95(0x1aa)](_0x3cc139,0x1)&&_0x43d2cd&&_0x43d2cd[_0x19aa95(0x162)]()&&_0x561720[_0x19aa95(0x17c)](_0x48afa4,_0x43d2cd);};_0x27e28c['on'](_0x59543a['zHAnL'],_0x52cd27),_0x1148d5['on'](_0x59543a[_0x2684a1(0x172)],_0x52cd27),_0x18021e['on'](_0x59543a['UhRAV'],_0x52cd27),_0x43515c='We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.',_0x467cdb[_0x2684a1(0x169)](_0x5535a8);}}let _0x5330e4=_0x59543a['dykoo'](_0x4a12fd['useStaging'],_0x59543a['zlcQH'])?!![]:![];if(_0x3da285&&_0x3da285[_0x2684a1(0x163)]&&_0x5330e4){if(_0x59543a[_0x2684a1(0x18d)](_0x59543a[_0x2684a1(0x15c)],_0x59543a[_0x2684a1(0x192)]))_0x59543a[_0x2684a1(0x16c)](_0xfa42d6,_0x2684a1(0x164));else{logMessage=_0x2684a1(0x158),logger[_0x2684a1(0x169)](logMessage);try{if(_0x59543a[_0x2684a1(0x18d)](_0x59543a[_0x2684a1(0x196)],_0x59543a[_0x2684a1(0x196)])){const _0x27c377={};_0x27c377[_0x2684a1(0x187)]=_0x31f7f8,_0x27c377['customRepeaters']=_0x3da285[_0x2684a1(0x16f)],_0x27c377['browserStackLocalOptions']=_0x52f5de;const _0x445e0d=_0x27c377,_0x5ef872=_0x59543a['ExNoD'](startLocalBinarySync,_0x445e0d);let _0x187ca6=0x0;const _0x1e718f=async()=>{const _0x45b68e=_0x2684a1,_0x23ae6c={'XALYK':function(_0x11060e,_0x407338){const _0x42dc93=a2_0x1643;return _0x59543a[_0x42dc93(0x16c)](_0x11060e,_0x407338);}};_0x59543a[_0x45b68e(0x198)](_0x59543a[_0x45b68e(0x155)],_0x59543a[_0x45b68e(0x195)])?(_0x187ca6++,_0x59543a[_0x45b68e(0x191)](_0x187ca6,0x1)&&_0x5ef872&&_0x5ef872[_0x45b68e(0x162)]()&&_0x59543a[_0x45b68e(0x161)](stopLocalBinary,_0x5ef872)):_0x23ae6c[_0x45b68e(0x160)](_0x17c176,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier');};process['on'](_0x59543a['zHAnL'],_0x1e718f),process['on'](_0x59543a[_0x2684a1(0x172)],_0x1e718f),process['on'](_0x59543a['UhRAV'],_0x1e718f),logMessage=_0x2684a1(0x1af),logger['info'](logMessage);}else _0x59543a[_0x2684a1(0x161)](_0x81ad8b,_0x2684a1(0x1b2));}catch(_0x292814){if(_0x59543a['Yelif'](_0x59543a[_0x2684a1(0x176)],_0x59543a[_0x2684a1(0x183)]))_0x59543a[_0x2684a1(0x14e)](_0x279603,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');else{const _0x7bfcb4={'Tllaj':function(_0x4a670d,_0x572c40){const _0x3c8f4f=_0x2684a1;return _0x59543a[_0x3c8f4f(0x17f)](_0x4a670d,_0x572c40);},'gqywR':function(_0x1f2313,_0x479578){const _0x49d262=_0x2684a1;return _0x59543a[_0x49d262(0x161)](_0x1f2313,_0x479578);}};_0xb4a30e=_0x2684a1(0x158),_0xe8a2b6[_0x2684a1(0x169)](_0x4ac2b8);try{const _0x4b22bd={};_0x4b22bd[_0x2684a1(0x187)]=_0x55a8c6,_0x4b22bd[_0x2684a1(0x16f)]=_0x543dea[_0x2684a1(0x16f)],_0x4b22bd[_0x2684a1(0x14b)]=_0x14653e;const _0x199f56=_0x4b22bd,_0x50ffea=_0x59543a[_0x2684a1(0x1b1)](_0x5e3a68,_0x199f56);let _0x2719f5=0x0;const _0x4021ef=async()=>{const _0x57155b=_0x2684a1;_0x2719f5++,_0x7bfcb4[_0x57155b(0x188)](_0x2719f5,0x1)&&_0x50ffea&&_0x50ffea[_0x57155b(0x162)]()&&_0x7bfcb4[_0x57155b(0x1a3)](_0x1c0edc,_0x50ffea);};_0x2a3e00['on'](_0x59543a['zHAnL'],_0x4021ef),_0x167beb['on'](_0x59543a['SxVMv'],_0x4021ef),_0x167645['on'](_0x59543a[_0x2684a1(0x18b)],_0x4021ef),_0x5ef58b=_0x2684a1(0x1af),_0x2e6874[_0x2684a1(0x169)](_0x42d8fd);}catch(_0x307010){_0x59543a[_0x2684a1(0x161)](_0x5430b4,_0x2684a1(0x1b2));}}}}}process[_0x2684a1(0x157)](0x0);};function a2_0x37c3(){const _0x377b78=['12VkgCbO','FHAFG','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','qQYjv','DkrAg','accessKey','Tllaj','help','dGSKq','UhRAV','command','dykoo','bstackUsername','iUmBU','ZLWch','PylDo','GuNQQ','1419369sFvzHp','true','Kmlok','ezGOZ','options','qdvrr','../../config/logger','type','DGzGV','description','SIGINT','SIGTERM','AvBIM','NscnM','166884vqJHLj','BvBhg','gqywR','YWNIK','1243231OhHCJB','OOHVA','ovHAp','Advance\x20options\x20for\x20Browserstack\x20Local','36974ZRrcDU','dUhAT','demandOption','sCPkL','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','Yelif','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','ZOksN','GZvRm','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','EMKOz','use-staging','string','73161KKSSGL','browserStackLocalOptions','grid-id','Pass\x20the\x20ID\x20of\x20the\x20Grid','oZBnT','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','error','handler','fLgqY','yVgIi','wmnTg','FdfUd','LJapy','exit','Grid\x20type:\x20Trial','hbiFY','1477145SyAMBb','5qNESlT','snFsz','RWBsU','desc','grid','XALYK','yrHvE','isRunning','isTrialGrid','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','xuDTu','5005yczJbE','create','usage','info','argv','mTEvP','ExNoD','../../config/constants','8rxRcet','customRepeaters','49516yJTDix','epilogue','SxVMv','27KahLNw','gNspI','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','aQTHL','sEFeU','advance-options','6YYckwm','EQRrz','90fVnJSF','YvVQD','LdXOu','fixgy','FpXRs','kNenR','UIkBW'];a2_0x37c3=function(){return _0x377b78;};return a2_0x37c3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3_0x550992=a3_0x44e2;(function(_0x19f25c,_0x40c4ac){const _0x500cc0=a3_0x44e2,_0x512c6e=_0x19f25c();while(!![]){try{const _0x2dd657=parseInt(_0x500cc0(0x1b9))/0x1+parseInt(_0x500cc0(0x1bb))/0x2*(parseInt(_0x500cc0(0x1c6))/0x3)+parseInt(_0x500cc0(0x1c3))/0x4+parseInt(_0x500cc0(0x1c9))/0x5*(-parseInt(_0x500cc0(0x1cc))/0x6)+-parseInt(_0x500cc0(0x1b7))/0x7*(parseInt(_0x500cc0(0x1ca))/0x8)+-parseInt(_0x500cc0(0x1c2))/0x9*(-parseInt(_0x500cc0(0x1c8))/0xa)+-parseInt(_0x500cc0(0x1bd))/0xb;if(_0x2dd657===_0x40c4ac)break;else _0x512c6e['push'](_0x512c6e['shift']());}catch(_0x413e45){_0x512c6e['push'](_0x512c6e['shift']());}}}(a3_0x2e6a,0xb2a07));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a3_0x550992(0x1c7));function a3_0x2e6a(){const _0x156b8a=['382705yPHYlo','39616TBfvjm','builder','24zIhuEi','demandCommand','usage','lIjei','1162SCxKOi','create','235208JJYUHE','strict','260744RbYJnh','Create\x20a\x20new\x20Automation\x20grid.','11144991rnOrGs','create_commands','epilogue','desc','qPjpo','9sRUedu','755020eeXwMV','help','commandDir','24mRCyXj','../config/constants','14060930cdthLX'];a3_0x2e6a=function(){return _0x156b8a;};return a3_0x2e6a();}function a3_0x44e2(_0x2136ee,_0x14c00e){const _0x2e6a7d=a3_0x2e6a();return a3_0x44e2=function(_0x44e29,_0x1c5e17){_0x44e29=_0x44e29-0x1b5;let _0x50e8d8=_0x2e6a7d[_0x44e29];return _0x50e8d8;},a3_0x44e2(_0x2136ee,_0x14c00e);}exports['command']='create',exports[a3_0x550992(0x1c0)]=a3_0x550992(0x1bc),exports[a3_0x550992(0x1cb)]=function(_0x33f4a8){const _0xa8b815=a3_0x550992,_0x56609c={};_0x56609c[_0xa8b815(0x1c1)]=_0xa8b815(0x1be),_0x56609c['lIjei']=_0xa8b815(0x1c4);const _0x12d345=_0x56609c;return _0x33f4a8[_0xa8b815(0x1b5)](HELP_HEADER_MESSAGE[_0xa8b815(0x1b8)])[_0xa8b815(0x1bf)](HELP_FOOTER_MESSAGE)[_0xa8b815(0x1c5)](_0x12d345[_0xa8b815(0x1c1)])[_0xa8b815(0x1cd)]()['recommendCommands']()[_0xa8b815(0x1ba)]()[_0xa8b815(0x1c4)](_0x12d345[_0xa8b815(0x1b6)]);},exports['handler']=function(_0x3711e8){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4_0x5a9e26=a4_0x1b5d;function a4_0x1b5d(_0x1ca494,_0x434ec8){const _0x147401=a4_0x1474();return a4_0x1b5d=function(_0x1b5d61,_0x2dfbb5){_0x1b5d61=_0x1b5d61-0x171;let _0x44f266=_0x147401[_0x1b5d61];return _0x44f266;},a4_0x1b5d(_0x1ca494,_0x434ec8);}(function(_0x1054c1,_0x5a7e8d){const _0x93939a=a4_0x1b5d,_0x165cd0=_0x1054c1();while(!![]){try{const _0x51ce28=parseInt(_0x93939a(0x1eb))/0x1*(parseInt(_0x93939a(0x212))/0x2)+parseInt(_0x93939a(0x1c8))/0x3+-parseInt(_0x93939a(0x184))/0x4*(-parseInt(_0x93939a(0x25d))/0x5)+-parseInt(_0x93939a(0x24e))/0x6+parseInt(_0x93939a(0x26a))/0x7+-parseInt(_0x93939a(0x26c))/0x8+-parseInt(_0x93939a(0x193))/0x9;if(_0x51ce28===_0x5a7e8d)break;else _0x165cd0['push'](_0x165cd0['shift']());}catch(_0x45dd93){_0x165cd0['push'](_0x165cd0['shift']());}}}(a4_0x1474,0x76847));const fs=require('fs'),ws=require('ws'),util=require(a4_0x5a9e26(0x29d)),ReconnectingWebSocket=require('reconnecting-websocket'),request=require('request'),{v4:uuidv4}=require(a4_0x5a9e26(0x238)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require(a4_0x5a9e26(0x2ac)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{sendAWSInfoToHST}=require(a4_0x5a9e26(0x2a7)),{isClusterPresent,getClusterInfo,configureAWSIfNotConfigured,createAuthConfigMap,getNodeGroupInfo,isVPCPresent,isSubnetsValid}=require('../../utils/AWSUtils'),{addGridComponents,deleteClusterAndDependencies,removeGridComponents}=require(a4_0x5a9e26(0x1b2)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,CLUSTER_DEP_STACK_NAME}=require('../../config/constants'),{createClusterStack}=require(a4_0x5a9e26(0x264)),{createAutoscalerStack}=require('../../utils/createAutoscalerStack'),{createK8sClient}=require(a4_0x5a9e26(0x188)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{deleteClusterStack}=require(a4_0x5a9e26(0x278)),promisifiedRequest=util[a4_0x5a9e26(0x29e)](request);exports[a4_0x5a9e26(0x2a6)]=a4_0x5a9e26(0x232),exports[a4_0x5a9e26(0x1f1)]=a4_0x5a9e26(0x1a0),exports[a4_0x5a9e26(0x18a)]=function(_0xa5868d){const _0x10a0ce=a4_0x5a9e26,_0x2b3466={};_0x2b3466['GwjOq']=_0x10a0ce(0x1fd),_0x2b3466['waRxh']='string',_0x2b3466[_0x10a0ce(0x214)]=_0x10a0ce(0x19a),_0x2b3466[_0x10a0ce(0x2af)]=_0x10a0ce(0x1db),_0x2b3466[_0x10a0ce(0x273)]=_0x10a0ce(0x2ad),_0x2b3466[_0x10a0ce(0x224)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2b3466[_0x10a0ce(0x1ca)]=_0x10a0ce(0x29a);const _0x1331e4=_0x2b3466,_0x39caf3={};_0x39caf3[_0x10a0ce(0x1df)]=_0x1331e4[_0x10a0ce(0x2b2)],_0x39caf3[_0x10a0ce(0x1b7)]=_0x1331e4['waRxh'];const _0x420718={};_0x420718[_0x10a0ce(0x1df)]=_0x1331e4[_0x10a0ce(0x214)],_0x420718[_0x10a0ce(0x1b7)]=_0x1331e4['waRxh'];const _0x41b7d7={};_0x41b7d7[_0x10a0ce(0x1df)]=_0x1331e4[_0x10a0ce(0x2af)],_0x41b7d7['type']=_0x1331e4[_0x10a0ce(0x1f2)];const _0x42dfa0={};_0x42dfa0['description']=_0x1331e4[_0x10a0ce(0x273)],_0x42dfa0[_0x10a0ce(0x1b7)]=_0x1331e4[_0x10a0ce(0x1f2)];const _0x53a991={};_0x53a991[_0x10a0ce(0x1df)]=_0x1331e4['mmWZD'],_0x53a991[_0x10a0ce(0x1b7)]=_0x1331e4['waRxh'];const _0x17486e={};return _0x17486e[_0x10a0ce(0x229)]=_0x39caf3,_0x17486e[_0x10a0ce(0x1c9)]=_0x420718,_0x17486e[_0x10a0ce(0x1af)]=_0x41b7d7,_0x17486e[_0x10a0ce(0x189)]=_0x42dfa0,_0x17486e['region']=_0x53a991,_0xa5868d[_0x10a0ce(0x1b8)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x17486e)['help'](_0x1331e4[_0x10a0ce(0x1ca)])[_0x10a0ce(0x28b)];},exports[a4_0x5a9e26(0x1bc)]=async function(_0x1e2f7c){const _0x2d261f=a4_0x5a9e26,_0x3aacda={'FFWBT':'2|3|1|4|0','smRZU':_0x2d261f(0x297),'VbAiR':'6|2|7|3|4|8|5|1|0','zyaIl':'3|1|5|0|2|4|7|6','URtOb':_0x2d261f(0x1fd),'nsgAH':_0x2d261f(0x272),'ISZid':_0x2d261f(0x19a),'KtsIY':_0x2d261f(0x1db),'hiADf':_0x2d261f(0x2ad),'yqVtU':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','raQmP':_0x2d261f(0x29a),'wwXnN':_0x2d261f(0x268),'tLGst':function(_0x2a6c72,_0x348d7e,_0x1f8fcf,_0x40d8ea,_0x4d2654,_0x120dfe,_0x5d4068,_0x1aa1ac,_0x1e02c0,_0x3f1c8a){return _0x2a6c72(_0x348d7e,_0x1f8fcf,_0x40d8ea,_0x4d2654,_0x120dfe,_0x5d4068,_0x1aa1ac,_0x1e02c0,_0x3f1c8a);},'NCkLk':_0x2d261f(0x1ec),'dvfNV':_0x2d261f(0x239),'ddGWx':function(_0x2f89a2){return _0x2f89a2();},'GrIzd':_0x2d261f(0x1a2),'ZflAZ':'2|0|5|3|1|4|7|6','WvITt':function(_0x3e4356){return _0x3e4356();},'VwFEH':function(_0x40334c,_0x57b285){return _0x40334c===_0x57b285;},'QZsio':'yyKjO','dXlZY':_0x2d261f(0x23b),'EXwHb':function(_0x4aaea6,_0x393740,_0x3b995b,_0x407dc0,_0x2b3e20,_0x2dc2ab,_0x454ade){return _0x4aaea6(_0x393740,_0x3b995b,_0x407dc0,_0x2b3e20,_0x2dc2ab,_0x454ade);},'yjGtP':_0x2d261f(0x18f),'JfrSd':_0x2d261f(0x271),'OtMxz':function(_0x139c36,_0x31f47b,_0x1caba0,_0x5169b3,_0x3df25b,_0x217d22,_0x1abbf7){return _0x139c36(_0x31f47b,_0x1caba0,_0x5169b3,_0x3df25b,_0x217d22,_0x1abbf7);},'tDHlP':_0x2d261f(0x1b5),'DoYlR':_0x2d261f(0x24f),'CQnAU':_0x2d261f(0x226),'HDodw':function(_0x18d823,_0xeb5a1b){return _0x18d823!==_0xeb5a1b;},'xfYlF':_0x2d261f(0x1f9),'bYLNS':function(_0xbc0462,_0x7cc2bd){return _0xbc0462!==_0x7cc2bd;},'VRtve':'OJxBk','UaXeM':_0x2d261f(0x234),'wIzDU':_0x2d261f(0x26d),'Nthvg':function(_0x3efaa0,_0x84974a,_0x361122,_0x57be49,_0x2d1159,_0x4027a1,_0x5ef4d0,_0x3bcd3d){return _0x3efaa0(_0x84974a,_0x361122,_0x57be49,_0x2d1159,_0x4027a1,_0x5ef4d0,_0x3bcd3d);},'dYbHq':_0x2d261f(0x281),'VPxaH':'aws','GMAKO':'rBCDh','wUKhj':_0x2d261f(0x280),'OfVUb':_0x2d261f(0x1cb),'PjmYa':_0x2d261f(0x285),'HfWTI':'qcUhe','JaoBm':_0x2d261f(0x247),'RkeRY':function(_0x454cce,_0x231464){return _0x454cce(_0x231464);},'ciPdv':function(_0x2cf65e,_0x4179b6){return _0x2cf65e===_0x4179b6;},'weClG':_0x2d261f(0x1d4),'vuYaB':_0x2d261f(0x17c),'ukLKG':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','lSnPs':function(_0x106e4d,_0x2d5e8d,_0x29b991,_0x427c76,_0x26f4cd,_0x41093c,_0x53fe2e,_0x496ea5){return _0x106e4d(_0x2d5e8d,_0x29b991,_0x427c76,_0x26f4cd,_0x41093c,_0x53fe2e,_0x496ea5);},'xBETJ':_0x2d261f(0x1c2),'vmBlC':function(_0x1599a0,_0x56fa66){return _0x1599a0===_0x56fa66;},'JdJQC':_0x2d261f(0x202),'WsMHo':_0x2d261f(0x175),'zKOGj':_0x2d261f(0x1f0),'yvDCJ':'create-grid-checks-auth-failed','dGkly':function(_0x372f86,_0x1eba3a){return _0x372f86===_0x1eba3a;},'FcdkN':_0x2d261f(0x1a1),'mdCFY':_0x2d261f(0x17a),'bbIed':function(_0x1329af,_0x17b3dd,_0x2fbdb0,_0x2e7bf5,_0x3958ab,_0xa9fa72,_0x5c3c31,_0x234f6c){return _0x1329af(_0x17b3dd,_0x2fbdb0,_0x2e7bf5,_0x3958ab,_0xa9fa72,_0x5c3c31,_0x234f6c);},'nbybV':_0x2d261f(0x222),'FEvgV':_0x2d261f(0x249),'OOTWJ':function(_0x218f41,_0x46cdb2){return _0x218f41===_0x46cdb2;},'jmNdR':_0x2d261f(0x17b),'Iepwg':_0x2d261f(0x1f8),'Bhook':_0x2d261f(0x17f),'heDLw':function(_0x2f28e6,_0x415905){return _0x2f28e6!==_0x415905;},'JNodI':_0x2d261f(0x1ef),'HCLHU':function(_0x4c0fae,_0x257ad1){return _0x4c0fae===_0x257ad1;},'qMVuB':_0x2d261f(0x1b9),'oMWuJ':_0x2d261f(0x18c),'pMlYc':function(_0x422b96,_0x1c9a36,_0x4bc408,_0x3ad762,_0x2d98b0,_0x4c31ff,_0x3cd3aa,_0x77266d){return _0x422b96(_0x1c9a36,_0x4bc408,_0x3ad762,_0x2d98b0,_0x4c31ff,_0x3cd3aa,_0x77266d);},'iOATU':_0x2d261f(0x275),'XVcbj':function(_0x5b36d2,_0x3e3ef7){return _0x5b36d2===_0x3e3ef7;},'vlFjL':'dftJZ','dRbID':_0x2d261f(0x270),'BxfgR':_0x2d261f(0x22e),'EqwXx':function(_0x1befdd,_0x4422f0,_0x337aea,_0x207b80,_0x41c8e1,_0x1baaf0,_0x57ab90,_0x3bbeab,_0x522409,_0x8b01a0){return _0x1befdd(_0x4422f0,_0x337aea,_0x207b80,_0x41c8e1,_0x1baaf0,_0x57ab90,_0x3bbeab,_0x522409,_0x8b01a0);},'lMHvI':function(_0x55aec6,_0x5bcb83){return _0x55aec6===_0x5bcb83;},'WsroA':_0x2d261f(0x27a),'Fdocr':_0x2d261f(0x242),'xAVYb':_0x2d261f(0x199),'ociKy':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','YXMvm':function(_0x2a6040){return _0x2a6040();},'tYHdf':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','XABzz':_0x2d261f(0x23c),'EMGbf':function(_0xf22340,_0x1d7a3b,_0x1a53b4){return _0xf22340(_0x1d7a3b,_0x1a53b4);},'WqIBJ':_0x2d261f(0x217),'FeZcM':_0x2d261f(0x2b3),'qghZA':function(_0x4323e5,_0x71af8e){return _0x4323e5!=_0x71af8e;},'JFqDR':function(_0x586171,_0x23ed9e){return _0x586171!==_0x23ed9e;},'BHyfE':function(_0x56788b,_0x16705f){return _0x56788b!=_0x16705f;},'kGsQG':function(_0x227a2e,_0x48d7af){return _0x227a2e!==_0x48d7af;},'ewhxc':function(_0x39e4a2,_0x2d5fb6){return _0x39e4a2>_0x2d5fb6;},'prVqN':function(_0x4b7d99,_0x4b84b7){return _0x4b7d99===_0x4b84b7;},'BbnhQ':_0x2d261f(0x19f),'LNFfS':_0x2d261f(0x1d5),'lUZOs':function(_0x54222f,_0x3704a5,_0x30b603){return _0x54222f(_0x3704a5,_0x30b603);},'wTXYH':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','JvvQp':'pre-spawned-invalid-vpc','ChkWZ':function(_0x25da71,_0xf0a6be,_0x486f15,_0x1bfd34){return _0x25da71(_0xf0a6be,_0x486f15,_0x1bfd34);},'RnuRK':_0x2d261f(0x248),'wqVbr':function(_0xf060ae,_0x15e806,_0x13ea1e,_0x26c557){return _0xf060ae(_0x15e806,_0x13ea1e,_0x26c557);},'bwBKQ':'Following\x20resources\x20are\x20created:','gVLQV':_0x2d261f(0x196),'CWLNt':'Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','guncB':_0x2d261f(0x197),'gcLWZ':_0x2d261f(0x25f),'qSoHl':function(_0x5526f7,_0x45082e){return _0x5526f7(_0x45082e);},'jJKqV':function(_0x524375,_0x1b0061,_0x3785eb,_0x274159,_0x351efd){return _0x524375(_0x1b0061,_0x3785eb,_0x274159,_0x351efd);},'MkhoU':function(_0x39ab3a,_0x2c99b8){return _0x39ab3a===_0x2c99b8;},'ZLlmr':_0x2d261f(0x181),'hiCew':function(_0x5a64c7,_0x3aa1bf){return _0x5a64c7!==_0x3aa1bf;},'PlBuk':_0x2d261f(0x1c1),'XVpoO':_0x2d261f(0x204),'Cuziq':_0x2d261f(0x215),'awxNp':function(_0x3196e9,_0x2ec852){return _0x3196e9(_0x2ec852);},'doISF':function(_0x38cbe9,_0x1191fe,_0x3a0d30,_0x5822ac,_0x3f3b64,_0x514bfe,_0x4c40c5,_0x378661){return _0x38cbe9(_0x1191fe,_0x3a0d30,_0x5822ac,_0x3f3b64,_0x514bfe,_0x4c40c5,_0x378661);},'cTwGP':'autoscaler-creation-failed','JgJKh':_0x2d261f(0x1a3),'ofNUw':_0x2d261f(0x24c),'wiueY':function(_0x5d37fd,_0x294f9b){return _0x5d37fd!==_0x294f9b;},'NipGu':_0x2d261f(0x2a5),'DytAC':_0x2d261f(0x1c4),'eFIzT':_0x2d261f(0x258),'OAuyj':_0x2d261f(0x286),'FwqiP':_0x2d261f(0x216),'tJDbq':_0x2d261f(0x1bb),'elJyJ':function(_0xb27990,_0x41f9e3,_0x5e8c24,_0x4a1689,_0x55d450,_0x1f36a9,_0x510c74,_0x41e993,_0x1f488f){return _0xb27990(_0x41f9e3,_0x5e8c24,_0x4a1689,_0x55d450,_0x1f36a9,_0x510c74,_0x41e993,_0x1f488f);},'MhRPz':_0x2d261f(0x1aa),'KNVzd':_0x2d261f(0x257),'JYjwF':_0x2d261f(0x287),'Btzmv':function(_0x5c7959,_0x5ea268){return _0x5c7959===_0x5ea268;},'WbMOG':function(_0x12224c,_0x324a80,_0x583f5a,_0x4e86a9,_0x4629a4,_0x1e64a5){return _0x12224c(_0x324a80,_0x583f5a,_0x4e86a9,_0x4629a4,_0x1e64a5);},'snUDf':function(_0x4eba29,_0x27b2a5){return _0x4eba29(_0x27b2a5);},'wmmpp':_0x2d261f(0x207)};let _0x477b6d=![],_0x3179bf,_0x30793f,_0x2ca176,_0x11afac,_0x43cad8,_0x1de7a3,_0x590d03,_0x539c37,_0x3fddbd,_0x5d0f2e,_0x4eb126,_0x9d8492;try{global_registry[_0x2d261f(0x20c)]=_0x3aacda['ddGWx'](uuidv4);if(!fs['existsSync'](_0x3aacda[_0x2d261f(0x221)](getCredentialsPath))){if(_0x3aacda['VwFEH'](_0x3aacda[_0x2d261f(0x180)],_0x3aacda[_0x2d261f(0x180)]))console[_0x2d261f(0x1ec)](_0x3aacda[_0x2d261f(0x1a5)]),await _0x3aacda[_0x2d261f(0x1b0)](sendInstrumentationEvent,_0x1e2f7c,_0x3aacda[_0x2d261f(0x26e)],messageTypes['ERROR'],_0x3aacda[_0x2d261f(0x219)],null,_0x1e2f7c),process[_0x2d261f(0x1b4)](0x1);else throw _0x542d3c;}await _0x3aacda['OtMxz'](sendInstrumentationEvent,_0x1e2f7c,_0x3aacda[_0x2d261f(0x26e)],messageTypes[_0x2d261f(0x25c)],null,null,_0x1e2f7c);const _0x327182=JSON[_0x2d261f(0x291)](fs[_0x2d261f(0x236)](_0x3aacda[_0x2d261f(0x201)](getCredentialsPath)));global_registry[_0x2d261f(0x29c)]=_0x327182['Browserstack'][_0x2d261f(0x1e9)],global_registry['bstackAccesskey']=_0x327182[_0x2d261f(0x1c4)][_0x2d261f(0x255)];const _0x3c770b=WS_ENDPOINT['replace'](_0x3aacda['tDHlP'],_0x327182['Browserstack'][_0x2d261f(0x1e9)])[_0x2d261f(0x2b1)](_0x3aacda[_0x2d261f(0x1be)],_0x327182[_0x2d261f(0x1c4)]['password']),_0x244a2e={};_0x244a2e[_0x2d261f(0x1a8)]=ws,_0x5d0f2e=new ReconnectingWebSocket(_0x3c770b,[],_0x244a2e),logger['debug'](_0x3aacda[_0x2d261f(0x26b)]),webSocketUtils[_0x2d261f(0x283)](_0x5d0f2e,_0x1e2f7c['user'],_0x1e2f7c['password']);let _0x584494=DEFAULT_GRID_NAME;if(_0x1e2f7c[_0x2d261f(0x28e)]||_0x1e2f7c[_0x2d261f(0x28d)]||_0x1e2f7c[_0x2d261f(0x1e8)]){if(_0x3aacda[_0x2d261f(0x299)](_0x3aacda[_0x2d261f(0x1ce)],_0x3aacda[_0x2d261f(0x1ce)])){const _0x1d7de6=_0x3aacda[_0x2d261f(0x206)][_0x2d261f(0x2a8)]('|');let _0x3be17c=0x0;while(!![]){switch(_0x1d7de6[_0x3be17c++]){case'0':_0x36cac8[_0x2d261f(0x240)]=_0x477270[_0x3978b3][_0x2d261f(0x191)];continue;case'1':_0x3ef47e[_0x2d261f(0x2ab)](_0x121478);continue;case'2':_0x44e5d4=_0x3aacda[_0x2d261f(0x259)];continue;case'3':const _0x20a91a={};_0x20a91a[_0x2d261f(0x1b7)]=_0xe7904e[_0x2d261f(0x198)],_0x20a91a[_0x2d261f(0x254)]=_0x47cedb,_0x48c80f[_0x2d261f(0x290)](_0x116802,_0x20a91a);continue;case'4':_0x5a04c7['cloudProviderAccessKey']=_0x149aad[_0x1b4df5][_0x2d261f(0x1d6)];continue;}break;}}else{if(!(_0x1e2f7c['clusterName']&&_0x1e2f7c[_0x2d261f(0x28d)]&&_0x1e2f7c[_0x2d261f(0x1e8)])){if(_0x3aacda[_0x2d261f(0x187)](_0x3aacda[_0x2d261f(0x1d1)],_0x3aacda[_0x2d261f(0x211)]))_0x3179bf=_0x3aacda[_0x2d261f(0x1d3)],await _0x3aacda[_0x2d261f(0x220)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda['dYbHq'],_0x3aacda['NCkLk']),logger['error'](_0x3179bf),process[_0x2d261f(0x1b4)](0x1);else{const _0x59a79a=_0x3aacda['VbAiR'][_0x2d261f(0x2a8)]('|');let _0x5d0d2a=0x0;while(!![]){switch(_0x59a79a[_0x5d0d2a++]){case'0':_0x5800d0[_0x2d261f(0x1de)]=_0x2bf0e4[_0x2d261f(0x1de)];continue;case'1':_0x449cc6['hubVersion']=_0x26ebd5[_0x2d261f(0x28a)];continue;case'2':_0x45e698=_0x2d261f(0x20d)+_0x4707ca+_0x2d261f(0x28c)+_0x3bfae0+'\x27';continue;case'3':const _0x4bccff={};_0x4bccff[_0x2d261f(0x1b7)]=_0x2af74f['LOG'],_0x4bccff[_0x2d261f(0x254)]=_0x2a5ea1,_0x3062f4['sendEventToBackend'](_0x5d36b4,_0x4bccff);continue;case'4':_0x4a5efa[_0x2d261f(0x28d)]=_0x5331aa;continue;case'5':_0x5f5a5a[_0x2d261f(0x28e)]=_0x4d7844;continue;case'6':const _0x4d3ca9={};_0x4d3ca9[_0x2d261f(0x1b7)]=_0x275241[_0x2d261f(0x178)],_0x4d3ca9['message']=_0x2d261f(0x27e),_0x568c47[_0x2d261f(0x290)](_0xb169a9,_0x4d3ca9);continue;case'7':_0x1007b5[_0x2d261f(0x2ab)](_0x485333);continue;case'8':_0x571183[_0x2d261f(0x2a9)]=_0x59095a;continue;}break;}}}if(_0x3aacda[_0x2d261f(0x299)](_0x1e2f7c['cloudProvider'][_0x2d261f(0x29f)](),_0x3aacda['VPxaH'])){if(_0x3aacda[_0x2d261f(0x299)](_0x3aacda[_0x2d261f(0x244)],_0x3aacda[_0x2d261f(0x244)])){const _0x2154e2=_0x3aacda[_0x2d261f(0x1c7)][_0x2d261f(0x2a8)]('|');let _0x4af1ba=0x0;while(!![]){switch(_0x2154e2[_0x4af1ba++]){case'0':const _0x342c6d={};_0x342c6d['type']=_0x3f0bfe[_0x2d261f(0x198)],_0x342c6d[_0x2d261f(0x254)]=_0x45c6df,_0x14cf93[_0x2d261f(0x290)](_0x27d8ed,_0x342c6d);continue;case'1':_0x1237c='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0xba4d97+'\x20';continue;case'2':_0x5e734c=_0x2d261f(0x19b)+_0x1cc9af+_0x2d261f(0x171);continue;case'3':_0x384ea4=_0x1838a6[_0x2d261f(0x223)][_0x2d261f(0x253)]['loadBalancer'][_0x2d261f(0x210)][0x0]['hostname'];continue;case'4':_0x1cbf30[_0x2d261f(0x2ab)](_0x2b5e62);continue;case'5':_0x3deadd[_0x2d261f(0x2ab)](_0x294605);continue;case'6':const _0x4eb0a5={};_0x4eb0a5[_0x2d261f(0x1b7)]=_0x5784bf['CLI_RUN_FINISHED'],_0x4eb0a5[_0x2d261f(0x254)]=_0x2d261f(0x20a)+_0x2de676,_0x2f2cb7[_0x2d261f(0x290)](_0x98c9c6,_0x4eb0a5);continue;case'7':const _0x44894b={};_0x44894b['type']=_0x2a8a57['LOG'],_0x44894b[_0x2d261f(0x254)]=_0x402ba9,_0x59c1cd[_0x2d261f(0x290)](_0x46123e,_0x44894b);continue;}break;}}else _0x3179bf=_0x3aacda['wUKhj'],await _0x3aacda['Nthvg'](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda['yjGtP'],_0x3aacda['OfVUb'],_0x3aacda[_0x2d261f(0x1a4)]),logger['error'](_0x3179bf),process[_0x2d261f(0x1b4)](0x1);}_0x477b6d=!![],_0x2ca176=_0x1e2f7c[_0x2d261f(0x28e)],_0x30793f=_0x1e2f7c['cloudProvider'],_0x11afac=_0x1e2f7c[_0x2d261f(0x1e8)];}}if(_0x1e2f7c[_0x2d261f(0x185)]){if(_0x3aacda[_0x2d261f(0x187)](_0x3aacda[_0x2d261f(0x26f)],_0x3aacda[_0x2d261f(0x23e)]))_0x584494=_0x1e2f7c['gridName'];else{const _0x30d24e={};_0x30d24e[_0x2d261f(0x1df)]=_0x3aacda[_0x2d261f(0x245)],_0x30d24e['type']=_0x3aacda['nsgAH'];const _0x3baa4={};_0x3baa4[_0x2d261f(0x1df)]=_0x3aacda[_0x2d261f(0x237)],_0x3baa4[_0x2d261f(0x1b7)]=_0x3aacda['nsgAH'];const _0x3a20f4={};_0x3a20f4['description']=_0x3aacda[_0x2d261f(0x21b)],_0x3a20f4[_0x2d261f(0x1b7)]=_0x3aacda['nsgAH'];const _0x526a54={};_0x526a54['description']=_0x3aacda['hiADf'],_0x526a54[_0x2d261f(0x1b7)]=_0x3aacda[_0x2d261f(0x2a1)];const _0xaa0d8b={};_0xaa0d8b[_0x2d261f(0x1df)]=_0x3aacda[_0x2d261f(0x1a7)],_0xaa0d8b[_0x2d261f(0x1b7)]=_0x3aacda[_0x2d261f(0x2a1)];const _0x2ad2c9={};return _0x2ad2c9[_0x2d261f(0x229)]=_0x30d24e,_0x2ad2c9[_0x2d261f(0x1c9)]=_0x3baa4,_0x2ad2c9[_0x2d261f(0x1af)]=_0x3a20f4,_0x2ad2c9['cloud-provider']=_0x526a54,_0x2ad2c9['region']=_0xaa0d8b,_0x5290fc[_0x2d261f(0x1b8)](_0x100aa1['create'])[_0x2d261f(0x177)](_0x16358d)[_0x2d261f(0x261)](_0x2ad2c9)['help'](_0x3aacda[_0x2d261f(0x1ad)])[_0x2d261f(0x28b)];}}global_registry[_0x2d261f(0x185)]=_0x584494;const _0x2b1cb9=_0x2d261f(0x1dd)+AG_API_URL+_0x2d261f(0x25b),_0x4b24ca={};_0x4b24ca['username']=_0x327182[_0x2d261f(0x1c4)]['username'],_0x4b24ca[_0x2d261f(0x255)]=_0x327182['Browserstack'][_0x2d261f(0x255)];const _0x19eefc={};_0x19eefc['gridName']=_0x584494;const _0xaed3c7={};_0xaed3c7[_0x2d261f(0x192)]=_0x2b1cb9,_0xaed3c7[_0x2d261f(0x256)]=_0x3aacda[_0x2d261f(0x1cc)],_0xaed3c7[_0x2d261f(0x266)]=_0x4b24ca,_0xaed3c7['qs']=_0x19eefc;const _0x4b7d8c=_0xaed3c7,_0x21db04=await _0x3aacda['RkeRY'](promisifiedRequest,_0x4b7d8c);(_0x3aacda[_0x2d261f(0x1f5)](_0x21db04,null)||_0x3aacda[_0x2d261f(0x1f5)](_0x21db04,undefined))&&(_0x3aacda[_0x2d261f(0x19e)](_0x3aacda[_0x2d261f(0x27d)],_0x3aacda['vuYaB'])?_0x4cbfc5=_0x2a5319[_0x43c4f5[_0x2d261f(0x172)]]:(_0x3179bf=_0x3aacda['ukLKG'],await _0x3aacda[_0x2d261f(0x20f)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x21f)],_0x3aacda[_0x2d261f(0x1a4)]),logger['error'](_0x3179bf),process[_0x2d261f(0x1b4)](0x1)));_0x3aacda[_0x2d261f(0x1e7)](_0x21db04[_0x2d261f(0x1ff)],0x191)&&(_0x3aacda[_0x2d261f(0x299)](_0x3aacda['JdJQC'],_0x3aacda['WsMHo'])?(_0x3179bf=_0x3aacda[_0x2d261f(0x1e1)],await _0x3aacda['Nthvg'](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x1ba)],_0x3aacda[_0x2d261f(0x1a4)]),logger[_0x2d261f(0x1ec)](_0x3179bf),process['exit'](0x1)):_0x1bdfe5['info'](_0x2d261f(0x29b)+_0x2ef110[_0x2d261f(0x1d7)](_0x5a89b7)+'\x20'));_0x3aacda['bYLNS'](_0x21db04[_0x2d261f(0x1ff)],0xc8)&&(_0x3aacda['dGkly'](_0x3aacda[_0x2d261f(0x218)],_0x3aacda[_0x2d261f(0x293)])?_0x32ae1e=_0x550b62[_0x2d261f(0x185)]:(_0x3179bf=_0x2d261f(0x296)+JSON[_0x2d261f(0x1d7)](_0x21db04),await _0x3aacda['bbIed'](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes['ERROR'],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x21e)],_0x3aacda[_0x2d261f(0x1a4)]),logger[_0x2d261f(0x1ec)](_0x3179bf),process['exit'](0x1)));const _0x51f604=JSON[_0x2d261f(0x291)](_0x21db04[_0x2d261f(0x223)]),_0x227639={};_0x227639['type']=WS_EVENTS[_0x2d261f(0x178)],_0x227639[_0x2d261f(0x254)]=_0x2d261f(0x27e),webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x227639);const _0x30ab31={};_0x30ab31[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x30ab31[_0x2d261f(0x254)]=_0x3aacda[_0x2d261f(0x17e)],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x30ab31);_0x51f604[_0x2d261f(0x1d8)]&&(_0x3aacda[_0x2d261f(0x194)](_0x3aacda['jmNdR'],_0x3aacda[_0x2d261f(0x1ed)])?(_0x3179bf=_0x3aacda[_0x2d261f(0x19c)],await _0x3aacda[_0x2d261f(0x220)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x18d)],_0x3aacda['NCkLk']),logger[_0x2d261f(0x1ec)](_0x3179bf),process['exit'](0x1)):_0x1fed54[_0x2d261f(0x2ab)](_0x2d261f(0x1b6)+_0x4d3f25+'\x20'));const _0xb0e4ba=_0x51f604[_0x2d261f(0x1ac)];let _0xd25b0b=_0xb0e4ba[_0x51f604[_0x2d261f(0x231)]];if(_0x1e2f7c[_0x2d261f(0x172)]){if(_0x3aacda['heDLw'](_0x3aacda[_0x2d261f(0x25e)],_0x3aacda[_0x2d261f(0x25e)])){const _0x5d7086=_0x3aacda['wwXnN'][_0x2d261f(0x2a8)]('|');let _0x4e3b5e=0x0;while(!![]){switch(_0x5d7086[_0x4e3b5e++]){case'0':_0x31ac50=_0x2953f9[_0x2d261f(0x28a)];continue;case'1':_0x198702=_0x2573d3[_0x2d261f(0x28e)];continue;case'2':_0x197cb1=_0x481528['securityGroups'];continue;case'3':_0x2c9ddd=_0xad76a3[_0x2d261f(0x1e8)];continue;case'4':_0x2c85d0=_0x353048[_0x2d261f(0x252)];continue;case'5':_0x3aacda[_0x2d261f(0x25a)](_0x3d28d7,_0x234d34,_0x40598f,_0x8ee36b,_0xc8839f,_0x3aa37b,_0x57183e,_0x20799a,_0x202d45,_0x5f028f);continue;case'6':_0x4c4ccb=_0x3f5b89[_0x2d261f(0x243)];continue;case'7':_0x2bdcbd=_0x54a265[_0x2d261f(0x1d2)];continue;case'8':_0xd3a7ed=_0x466102['s3bucket'];continue;case'9':_0x5c6683=_0x5d4d60[_0x2d261f(0x186)];continue;case'10':_0x1bfdb4=_0x121b73[_0x2d261f(0x1de)];continue;case'11':_0xf7e2b=_0x4f5a98[_0x2d261f(0x28d)];continue;}break;}}else _0xd25b0b=_0xb0e4ba[_0x1e2f7c[_0x2d261f(0x172)]];}if(_0x3aacda['HCLHU'](_0xd25b0b,undefined)){if(_0x3aacda['ciPdv'](_0x3aacda[_0x2d261f(0x251)],_0x3aacda[_0x2d261f(0x251)]))_0x3179bf=_0x3aacda[_0x2d261f(0x203)],await _0x3aacda[_0x2d261f(0x294)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x18b)],_0x3aacda['NCkLk']),logger['error'](_0x3179bf),process[_0x2d261f(0x1b4)](0x1);else{const _0x3e1d01={};_0x3e1d01[_0x2d261f(0x1b7)]=_0x1d2aca[_0x2d261f(0x198)],_0x3e1d01[_0x2d261f(0x254)]=_0x46ca16,_0xc49739[_0x2d261f(0x290)](_0x542948,_0x3e1d01,_0x3aacda[_0x2d261f(0x1a4)],!![]);}}global_registry[_0x2d261f(0x1a6)]=_0xd25b0b['id'],_0x3179bf=_0x2d261f(0x1da)+_0x584494+_0x2d261f(0x208)+_0xd25b0b[_0x2d261f(0x1a9)]+'\x27\x20grid\x20profile',logger[_0x2d261f(0x2ab)](_0x3179bf);const _0x5b712d={};_0x5b712d['type']=WS_EVENTS['LOG'],_0x5b712d[_0x2d261f(0x254)]=_0x3179bf,webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x5b712d);if(_0x3aacda[_0x2d261f(0x1f5)](_0x477b6d,![])){if(_0x3aacda['XVcbj'](_0x3aacda[_0x2d261f(0x260)],_0x3aacda['dRbID']))_0x32c0dd['debug'](_0x3aacda[_0x2d261f(0x288)]),_0x3aacda[_0x2d261f(0x201)](_0x3b791d);else{const _0x25a045=_0x3aacda[_0x2d261f(0x1c0)]['split']('|');let _0x24e9bf=0x0;while(!![]){switch(_0x25a045[_0x24e9bf++]){case'0':_0x590d03=_0xd25b0b['vpc'];continue;case'1':_0x539c37=_0xd25b0b[_0x2d261f(0x267)];continue;case'2':_0x30793f=_0xd25b0b[_0x2d261f(0x28d)];continue;case'3':_0x9d8492=_0x51f604[_0x2d261f(0x1de)];continue;case'4':_0x43cad8=_0xd25b0b[_0x2d261f(0x252)];continue;case'5':_0x2ca176=_0xd25b0b[_0x2d261f(0x28e)];continue;case'6':_0x4eb126=_0x51f604[_0x2d261f(0x28a)];continue;case'7':_0x3aacda[_0x2d261f(0x195)](updateGlobalRegistryWithConfig,_0x30793f,_0x2ca176,_0x11afac,_0x43cad8,_0x1de7a3,_0x539c37,_0xd25b0b,_0x4eb126,_0x9d8492);continue;case'8':securityGroups=_0xd25b0b[_0x2d261f(0x209)];continue;case'9':_0x1de7a3=_0xd25b0b[_0x2d261f(0x186)];continue;case'10':_0x11afac=_0xd25b0b['region'];continue;case'11':subnets=_0xd25b0b[_0x2d261f(0x1d2)];continue;}break;}}}else{if(_0x3aacda[_0x2d261f(0x174)](_0x3aacda[_0x2d261f(0x2aa)],_0x3aacda[_0x2d261f(0x1e0)]))_0x517e53['info'](_0x3aacda[_0x2d261f(0x182)]);else{const _0x5e376e=_0x3aacda['xAVYb'][_0x2d261f(0x2a8)]('|');let _0x4f83ec=0x0;while(!![]){switch(_0x5e376e[_0x4f83ec++]){case'0':_0x3179bf=_0x2d261f(0x20d)+_0x584494+'\x20in\x20existing\x20cluster\x20\x27'+_0x2ca176+'\x27';continue;case'1':const _0x33de43={};_0x33de43[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x33de43['message']=_0x3179bf,webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x33de43);continue;case'2':logger[_0x2d261f(0x2ab)](_0x3179bf);continue;case'3':global_registry[_0x2d261f(0x28a)]=_0x51f604[_0x2d261f(0x28a)];continue;case'4':global_registry[_0x2d261f(0x2a9)]=_0x11afac;continue;case'5':global_registry[_0x2d261f(0x1de)]=_0x51f604[_0x2d261f(0x1de)];continue;case'6':global_registry[_0x2d261f(0x28d)]=_0x30793f;continue;case'7':const _0x42f70b={};_0x42f70b[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x178)],_0x42f70b[_0x2d261f(0x254)]=_0x2d261f(0x27e),webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x42f70b);continue;case'8':global_registry[_0x2d261f(0x28e)]=_0x2ca176;continue;}break;}}}const _0x5d6bc3=_0x327182['cloudProvider']||{};if(_0x3aacda['lMHvI'](_0x5d6bc3[_0x30793f],undefined)){logger['info'](_0x3aacda[_0x2d261f(0x21c)]);const [_0x2437f1,_0x5512d3]=await _0x3aacda[_0x2d261f(0x200)](inputCloudProviderKeys,_0x30793f);_0x327182[_0x2d261f(0x28d)]={};const _0x371652={};_0x371652[_0x2d261f(0x1d6)]=_0x2437f1,_0x371652[_0x2d261f(0x191)]=_0x5512d3,_0x327182[_0x2d261f(0x28d)][_0x30793f]=_0x371652,fs[_0x2d261f(0x1cd)](_0x3aacda[_0x2d261f(0x1e2)](getCredentialsPath),JSON[_0x2d261f(0x1d7)](_0x327182)),logger[_0x2d261f(0x241)](_0x3aacda[_0x2d261f(0x1fa)]),global_registry[_0x2d261f(0x27f)]=_0x2437f1,global_registry[_0x2d261f(0x240)]=_0x5512d3;}else{const _0x1b24d6=_0x3aacda['XABzz'][_0x2d261f(0x2a8)]('|');let _0x312435=0x0;while(!![]){switch(_0x1b24d6[_0x312435++]){case'0':logger['info'](_0x3179bf);continue;case'1':global_registry[_0x2d261f(0x240)]=_0x5d6bc3[_0x30793f][_0x2d261f(0x191)];continue;case'2':global_registry[_0x2d261f(0x27f)]=_0x5d6bc3[_0x30793f]['accessKey'];continue;case'3':const _0x1c4df0={};_0x1c4df0[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x1c4df0[_0x2d261f(0x254)]=_0x3179bf,webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x1c4df0);continue;case'4':_0x3179bf=_0x3aacda[_0x2d261f(0x259)];continue;}break;}}_0x3aacda[_0x2d261f(0x282)](_0x30793f,AWS)&&(logger[_0x2d261f(0x241)](_0x3aacda[_0x2d261f(0x288)]),_0x3aacda[_0x2d261f(0x221)](configureAWSIfNotConfigured));let _0x2746c4,_0x2fa8b6;if(_0x3aacda[_0x2d261f(0x19e)](_0x477b6d,![])){_0x3179bf=_0x2d261f(0x1c5)+_0x11afac+').';const _0x21cc72={};_0x21cc72[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x21cc72[_0x2d261f(0x254)]=_0x3179bf,webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x21cc72),logger[_0x2d261f(0x2ab)](_0x3179bf);const _0x30d47d=await _0x3aacda['EMGbf'](isClusterPresent,_0x30793f,_0x2ca176);let _0x57bc9b;if(_0x30d47d){const _0x4175c2={};_0x4175c2[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x4175c2[_0x2d261f(0x254)]='Cluster\x20'+_0x2ca176+_0x2d261f(0x22d),webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x4175c2,_0x3aacda[_0x2d261f(0x227)]),logger['warn']('Cluster\x20'+_0x2ca176+_0x2d261f(0x22d)),_0x2746c4=await _0x3aacda['RkeRY'](getClusterInfo,_0x2ca176),_0x477b6d=!![];}else{const _0x201ae0={};_0x201ae0['type']=WS_EVENTS[_0x2d261f(0x198)],_0x201ae0[_0x2d261f(0x254)]=_0x3aacda['FeZcM'],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x201ae0),logger[_0x2d261f(0x2ab)](_0x3aacda[_0x2d261f(0x1ae)]);const _0x474731=_0x3aacda[_0x2d261f(0x1ee)](_0x590d03,null)&&_0x3aacda[_0x2d261f(0x176)](_0x590d03,undefined),_0x4e762b=_0x3aacda['BHyfE'](subnets,null)&&_0x3aacda['kGsQG'](subnets,undefined)&&_0x3aacda[_0x2d261f(0x235)](subnets['length'],0x0);let _0x5b199d;if(_0x474731){_0x3aacda[_0x2d261f(0x1d9)](_0x4e762b,![])&&(_0x3179bf=_0x3aacda[_0x2d261f(0x1ea)],await _0x3aacda[_0x2d261f(0x27c)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x22f)],_0x3aacda[_0x2d261f(0x1a4)]),logger[_0x2d261f(0x1ec)](_0x3179bf),process[_0x2d261f(0x1b4)](0x1));const _0x266a76=await _0x3aacda['lUZOs'](isVPCPresent,_0x590d03,_0x11afac);_0x3aacda[_0x2d261f(0x246)](_0x266a76,![])?(_0x3179bf=_0x3aacda[_0x2d261f(0x1d0)],await _0x3aacda['Nthvg'](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x2ae)],_0x3aacda[_0x2d261f(0x1a4)]),logger[_0x2d261f(0x1ec)](_0x3179bf),process[_0x2d261f(0x1b4)](0x1)):logger['info'](_0x2d261f(0x1b6)+_0x590d03+'\x20');const _0x4233b0=await _0x3aacda[_0x2d261f(0x1dc)](isSubnetsValid,subnets,_0x590d03,_0x11afac);_0x3aacda['prVqN'](_0x4233b0[0x0],![])?(_0x3179bf='Subnets:\x20'+_0x4233b0[0x1]+_0x2d261f(0x1f3)+_0x590d03+_0x2d261f(0x19d),await _0x3aacda[_0x2d261f(0x294)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x21d)],_0x3aacda[_0x2d261f(0x1a4)]),logger[_0x2d261f(0x1ec)](_0x3179bf),process[_0x2d261f(0x1b4)](0x1)):logger[_0x2d261f(0x2ab)](_0x2d261f(0x29b)+JSON['stringify'](subnets)+'\x20');const _0x16f061=await _0x3aacda[_0x2d261f(0x22b)](createClusterStack,_0x2ca176,_0x590d03,subnets);logger['info'](_0x3aacda[_0x2d261f(0x1b1)]),logger[_0x2d261f(0x2ab)](_0x2d261f(0x17d)+_0x16f061[_0x2d261f(0x295)][0x0][_0x2d261f(0x265)][0x3][_0x2d261f(0x22c)]+'\x20'),logger[_0x2d261f(0x2ab)](_0x2d261f(0x262)+_0x16f061['Stacks'][0x0]['Outputs'][0x1]['OutputValue']+'\x20'),logger[_0x2d261f(0x2ab)](_0x2d261f(0x1e3)+_0x16f061[_0x2d261f(0x295)][0x0][_0x2d261f(0x265)][0x0][_0x2d261f(0x22c)][_0x2d261f(0x2a8)](',')+'\x20'),logger[_0x2d261f(0x2ab)](_0x2d261f(0x1bf)+_0x16f061['Stacks'][0x0][_0x2d261f(0x265)][0x4][_0x2d261f(0x22c)]+'\x20');}else{const _0x2dbd74={};_0x2dbd74[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x2dbd74[_0x2d261f(0x254)]=_0x3aacda[_0x2d261f(0x173)],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x2dbd74),logger['info'](_0x3aacda['gVLQV']),_0x3aacda[_0x2d261f(0x200)](sendAWSInfoToHST,_0x5d0f2e);const _0x5377d2={};_0x5377d2[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x5377d2[_0x2d261f(0x254)]=_0x3aacda['CWLNt'],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x5377d2),logger[_0x2d261f(0x2ab)](_0x3aacda[_0x2d261f(0x1b3)]);const _0x28876b=await _0x3aacda[_0x2d261f(0x200)](createClusterStack,_0x2ca176),_0xa58975=_0x28876b[_0x2d261f(0x295)][0x0]['Outputs'][0x0][_0x2d261f(0x22c)][_0x2d261f(0x2a8)](',');_0x5b199d=_0x28876b[_0x2d261f(0x295)][0x0][_0x2d261f(0x265)][0x1][_0x2d261f(0x22c)];const _0x5ed3e1=_0x28876b['Stacks'][0x0][_0x2d261f(0x265)][0x2][_0x2d261f(0x22c)],_0x2d1650=_0x28876b[_0x2d261f(0x295)][0x0][_0x2d261f(0x265)][0x3][_0x2d261f(0x22c)];_0x57bc9b=_0x28876b[_0x2d261f(0x295)][0x0]['Outputs'][0x4][_0x2d261f(0x22c)];const _0x36b056=_0x28876b[_0x2d261f(0x295)][0x0][_0x2d261f(0x265)][0x5][_0x2d261f(0x22c)][_0x2d261f(0x2a8)](','),_0x40faa4={};_0x40faa4[_0x2d261f(0x1b7)]=WS_EVENTS['LOG'],_0x40faa4['message']=_0x2d261f(0x205)+_0x2d1650+_0x2d261f(0x28f)+_0x5b199d+',\x20VPC\x20=>\x20'+_0x5ed3e1+_0x2d261f(0x233)+_0x36b056+',\x20SecurityGroups\x20=>\x20'+_0xa58975+_0x2d261f(0x1f4)+_0x57bc9b+'\x20',webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x40faa4),logger[_0x2d261f(0x2ab)](_0x3aacda[_0x2d261f(0x1b1)]),logger[_0x2d261f(0x2ab)](_0x2d261f(0x17d)+_0x2d1650+'\x20'),logger[_0x2d261f(0x2ab)](_0x2d261f(0x262)+_0x5b199d+'\x20'),logger[_0x2d261f(0x2ab)]('VPC\x20=>\x20'+_0x5ed3e1+'\x20'),logger[_0x2d261f(0x2ab)]('Subnets\x20=>\x20'+_0x36b056+'\x20'),logger[_0x2d261f(0x2ab)](_0x2d261f(0x1e3)+_0xa58975+'\x20'),logger[_0x2d261f(0x2ab)](_0x2d261f(0x1bf)+_0x57bc9b+'\x20');const _0x1236ad={};_0x1236ad[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x1236ad[_0x2d261f(0x254)]=_0x2d261f(0x25f),webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x1236ad),logger[_0x2d261f(0x2ab)](_0x3aacda[_0x2d261f(0x1fc)]);}}}_0x2746c4=await _0x3aacda[_0x2d261f(0x20e)](getClusterInfo,_0x2ca176);const [_0x5c56e4,_0x212c6,_0x46faf9,_0x1a9131,_0x27a2ab]=await _0x3aacda[_0x2d261f(0x1fb)](createK8sClient,_0x2746c4['cluster'][_0x2d261f(0x1a9)],_0x2746c4[_0x2d261f(0x18e)][_0x2d261f(0x23f)],_0x2746c4[_0x2d261f(0x18e)][_0x2d261f(0x292)]['data'],global_registry[_0x2d261f(0x2a9)]);if(_0x3aacda[_0x2d261f(0x23d)](_0x477b6d,![])){const _0xcd4157={};_0xcd4157[_0x2d261f(0x1b7)]=WS_EVENTS['LOG'],_0xcd4157['message']=_0x3aacda['ZLlmr'],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0xcd4157),logger['info'](_0x3aacda[_0x2d261f(0x230)]);try{const _0x48896f=await _0x3aacda[_0x2d261f(0x200)](createAutoscalerStack,_0x2ca176);_0x2fa8b6=_0x48896f[_0x2d261f(0x295)][0x0][_0x2d261f(0x265)][0x2][_0x2d261f(0x22c)];const _0x36319f={};_0x36319f['type']=WS_EVENTS[_0x2d261f(0x198)],_0x36319f[_0x2d261f(0x254)]=_0x2d261f(0x213)+_0x2fa8b6+'\x20',webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x36319f),logger['info'](_0x2d261f(0x213)+_0x2fa8b6+'\x20');}catch(_0xb062d0){if(_0x3aacda[_0x2d261f(0x228)](_0xb062d0[_0x2d261f(0x254)][_0x2d261f(0x2b0)](/already exists/),null)||_0x3aacda[_0x2d261f(0x23a)](_0xb062d0[_0x2d261f(0x254)][_0x2d261f(0x2b0)](/already exists/),undefined))_0x3179bf='Skipping\x20Autoscaler\x20due\x20to:\x20'+_0xb062d0[_0x2d261f(0x254)],await _0x3aacda[_0x2d261f(0x27c)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x298)],_0x3aacda['yjGtP'],_0x3aacda[_0x2d261f(0x2a2)],_0x3aacda['XVpoO']),logger['warn'](_0x3179bf);else{const _0x55db8f=_0x3aacda[_0x2d261f(0x277)]['split']('|');let _0x18b43f=0x0;while(!![]){switch(_0x55db8f[_0x18b43f++]){case'0':logger[_0x2d261f(0x1ec)](_0x3179bf);continue;case'1':_0x3179bf=_0x2d261f(0x21a)+_0xb062d0[_0x2d261f(0x254)]+_0x2d261f(0x2a0);continue;case'2':await _0x3aacda['awxNp'](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'3':await _0x3aacda[_0x2d261f(0x225)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x279)],_0x3aacda[_0x2d261f(0x1a4)]);continue;case'4':process['exit'](0x1);continue;}break;}}}let _0x2ad475=await _0x3aacda['lUZOs'](getNodeGroupInfo,_0x2ca176,_0x2ca176+_0x2d261f(0x1e6));nodeRole=_0x2ad475[_0x2d261f(0x20b)]['nodeRole'];const _0x18b8ad=await _0x3aacda[_0x2d261f(0x200)](createAuthConfigMap,nodeRole);await _0x5c56e4[_0x2d261f(0x1e4)](_0x3aacda['JgJKh'],_0x18b8ad)['catch'](_0x4338b8=>{const _0xae7f34=_0x2d261f;logger['info'](_0x3aacda[_0xae7f34(0x182)]);});}try{_0x3fddbd=_0x3aacda['qSoHl'](kebabCase,_0x584494),logger[_0x2d261f(0x2ab)](_0x3aacda[_0x2d261f(0x1f6)]);const _0x491c9f={};_0x491c9f[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x491c9f[_0x2d261f(0x254)]=_0x3aacda[_0x2d261f(0x1f6)],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x491c9f);if(_0x3aacda[_0x2d261f(0x183)](_0x3fddbd,_0x3aacda[_0x2d261f(0x1ab)])){const _0x50adb0={};_0x50adb0[_0x2d261f(0x179)]=_0x3aacda[_0x2d261f(0x2a3)],_0x50adb0[_0x2d261f(0x284)]=_0x3aacda[_0x2d261f(0x2a3)];const _0x339b5d={};_0x339b5d['name']=_0x3fddbd,_0x339b5d[_0x2d261f(0x1c3)]=_0x50adb0;const _0x115bfe={};_0x115bfe[_0x2d261f(0x190)]=_0x339b5d;let _0xf4f989=_0x115bfe;await _0x5c56e4['createNamespace'](_0xf4f989),logger[_0x2d261f(0x2ab)](_0x3aacda[_0x2d261f(0x276)]);}const _0x69a14f={};_0x69a14f[_0x2d261f(0x1b7)]=WS_EVENTS['LOG'],_0x69a14f[_0x2d261f(0x254)]=_0x3aacda[_0x2d261f(0x22a)],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x69a14f);const _0x40bef9={};_0x40bef9[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x40bef9['message']=_0x3aacda['FwqiP'],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x40bef9),logger['info'](_0x3aacda[_0x2d261f(0x27b)]),await _0x3aacda[_0x2d261f(0x24a)](addGridComponents,_0x5c56e4,_0x212c6,_0x46faf9,_0x1a9131,_0x3fddbd,_0x2ca176,_0x2fa8b6,_0x27a2ab),_0x3179bf=_0x3aacda[_0x2d261f(0x1cf)],logger['info'](_0x3179bf);const _0x282f37={};_0x282f37[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x282f37[_0x2d261f(0x254)]=_0x3179bf,webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x282f37),_0x3179bf=_0x3aacda[_0x2d261f(0x24d)],logger[_0x2d261f(0x2ab)](_0x3179bf);const _0x56abe6={};_0x56abe6['type']=WS_EVENTS[_0x2d261f(0x198)],_0x56abe6['message']=_0x3179bf,webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x56abe6),await webSocketUtils[_0x2d261f(0x1fe)](0x1388);let _0x374b1d;await _0x5c56e4[_0x2d261f(0x263)](_0x3aacda['JYjwF'],_0x3fddbd)['then'](_0x11602c=>{const _0x3f62be=_0x2d261f,_0x2e324b=_0x3aacda['ZflAZ'][_0x3f62be(0x2a8)]('|');let _0x59ec52=0x0;while(!![]){switch(_0x2e324b[_0x59ec52++]){case'0':_0x3179bf=_0x3f62be(0x1bd)+_0x374b1d+'\x20';continue;case'1':_0x3179bf=_0x3f62be(0x19b)+_0x374b1d+_0x3f62be(0x171);continue;case'2':_0x374b1d=_0x11602c[_0x3f62be(0x223)][_0x3f62be(0x253)]['loadBalancer'][_0x3f62be(0x210)][0x0][_0x3f62be(0x24b)];continue;case'3':const _0x5e60bb={};_0x5e60bb[_0x3f62be(0x1b7)]=WS_EVENTS[_0x3f62be(0x198)],_0x5e60bb[_0x3f62be(0x254)]=_0x3179bf,webSocketUtils[_0x3f62be(0x290)](_0x5d0f2e,_0x5e60bb);continue;case'4':logger[_0x3f62be(0x2ab)](_0x3179bf);continue;case'5':logger['info'](_0x3179bf);continue;case'6':const _0x472aeb={};_0x472aeb[_0x3f62be(0x1b7)]=WS_EVENTS[_0x3f62be(0x274)],_0x472aeb['message']=_0x3f62be(0x20a)+_0x374b1d,webSocketUtils[_0x3f62be(0x290)](_0x5d0f2e,_0x472aeb);continue;case'7':const _0x112d10={};_0x112d10[_0x3f62be(0x1b7)]=WS_EVENTS[_0x3f62be(0x198)],_0x112d10['message']=_0x3179bf,webSocketUtils['sendEventToBackend'](_0x5d0f2e,_0x112d10);continue;}break;}}),await webSocketUtils[_0x2d261f(0x1fe)](0x1f4);}catch(_0xaef2aa){if(_0x3aacda[_0x2d261f(0x2a4)](_0x477b6d,![]))try{logger[_0x2d261f(0x2ab)](_0x2d261f(0x1f7)),await _0x3aacda[_0x2d261f(0x250)](removeGridComponents,_0x5c56e4,_0x212c6,_0x46faf9,_0x1a9131,_0x3fddbd),await _0x3aacda[_0x2d261f(0x1e5)](deleteClusterAndDependencies,global_registry[_0x2d261f(0x2a9)]);}catch(_0x59e9d5){throw _0x59e9d5;}throw _0xaef2aa;}}catch(_0x5d8686){const _0x1f1dc1=_0x2d261f(0x1c6)+_0x5d8686+'\x20\x0a'+JSON[_0x2d261f(0x1d7)](_0x5d8686)+'\x20';if(_0x5d0f2e){const _0x612e5={};_0x612e5[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x612e5[_0x2d261f(0x254)]=_0x1f1dc1,webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x612e5,_0x3aacda['NCkLk'],!![]);}const _0x47296d={};_0x47296d[_0x2d261f(0x1ec)]=_0x1f1dc1,await _0x3aacda['EXwHb'](sendInstrumentationEvent,_0x1e2f7c,_0x3aacda['yjGtP'],messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x269)],_0x47296d,_0x1e2f7c),logger[_0x2d261f(0x1ec)](_0x1f1dc1);}process['exit'](0x0);};function a4_0x1474(){const _0x49badc=['readFileSync','ISZid','uuid','Configuring\x20AWS','hiCew','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','4|3|0|2|1','MkhoU','HfWTI','endpoint','cloudProviderSecretKey','debug','KgdHa','vpc','GMAKO','URtOb','XVcbj','GET','pre-spawned-invalid-subnets','Grid\x20profile\x20fetched\x20from\x20backend','elJyJ','hostname','Creating\x20namespace','KNVzd','1847142lxfufi','<PasswordPlaceholder>','WbMOG','qMVuB','concurrency','status','message','password','method','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Namespace\x20Created','smRZU','tLGst','/packages/cli/create-grid-checks','INFO','20TnWfdM','JNodI','Cluster\x20and\x20node\x20group\x20created\x20successfully','vlFjL','options','ClusterRole\x20=>\x20','readNamespacedService','../../utils/createClusterStack','Outputs','auth','s3bucket','11|1|3|4|9|6|2|7|8|0|10|5','wmmpp','676963ipyMLX','CQnAU','1816584MXtlxr','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','yjGtP','PjmYa','KCyMZ','init-not-called','string','xDwmz','CLI_RUN_FINISHED','create-grid-checks-invalid-profile','eFIzT','Cuziq','../../utils/deleteStack','cTwGP','Almez','tJDbq','bbIed','weClG','CLI\x20run\x20started','cloudProviderAccessKey','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20only\x20AWS\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','prespawned-cluster-args-not-passed','HCLHU','addListeners','managedBy','zCboy','Namespace\x20created','browserstack-turboscale-grid-service','dvfNV','ERROR','hubVersion','argv','\x20in\x20existing\x20cluster\x20\x27','cloudProvider','clusterName',',\x20ClusterRole\x20=>\x20','sendEventToBackend','parse','certificateAuthority','mdCFY','pMlYc','Stacks','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','WARNING','HDodw','help','Found\x20Subnets:\x20','bstackUsername','util','promisify','toLowerCase','.\x20Deleting\x20all\x20the\x20stacks','nsgAH','PlBuk','DytAC','Btzmv','default','command','../../utils/hstUtils','split','clusterRegion','WsroA','info','../../utils/userInput','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','JvvQp','xKBbz','match','replace','GwjOq','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.',':4444/wd/hub','gridProfile','gVLQV','lMHvI','XmtiP','JFqDR','epilogue','CLI_RUN_STARTED','createdBy','jEKJp','xrUWI','NOoNq','Cluster\x20=>\x20','FEvgV','create-grid-checks-grid-already-exists','QZsio','Creating\x20Autoscaler\x20Role','GrIzd','wiueY','366228VzGIxb','gridName','instanceType','bYLNS','../../utils/createk8sClient','cloud-provider','builder','iOATU','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Bhook','cluster','create-grid-called','metadata','secret','url','6203592EBHLOg','OOTWJ','EqwXx','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','LOG','7|0|2|1|6|4|8|3|5','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://','Iepwg','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','ciPdv','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Create\x20a\x20new\x20Automation\x20grid.','hWmsZ','Authmap\x20already\x20exists.\x20Not\x20updating','kube-system','NCkLk','dXlZY','gridProfileId','yqVtU','WebSocket','name','Grid\x20spawned\x20on\x20the\x20cluster','NipGu','gridProfiles','raQmP','FeZcM','cluster-name','EXwHb','bwBKQ','../../utils/gridComponents','guncB','exit','<UsernamePlaceholder>','Found\x20VPC:\x20','type','usage','pbSid','yvDCJ','Spawning\x20Grid\x20on\x20the\x20Cluster','handler','Grid\x20can\x20be\x20accessed\x20at:\x20','DoYlR','NodeRole\x20=>\x20','BxfgR','reportToGalactusAndSendToEDS','create-grid-checks-null-response','annotations','Browserstack','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','zyaIl','1550226xIqSNY','grid-profile','SJkLP','non-aws-cluster','JaoBm','writeFileSync','xfYlF','MhRPz','wTXYH','VRtve','subnets','wIzDU','JqtqT','pre-spawned-subnets-not-selected','accessKey','stringify','alreadyPresent','prVqN','Will\x20be\x20spawning\x20the\x20grid\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','ChkWZ','https://','browserVersion','description','Fdocr','zKOGj','YXMvm','SecurityGroups\x20=>\x20','createNamespacedConfigMap','snUDf','-NodeGroup','vmBlC','region','username','BbnhQ','364993wwulpo','error','jmNdR','qghZA','snpDH','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','desc','waRxh','\x20are\x20not\x20present\x20in\x20VPC:\x20',',\x20NodeRole\x20=>\x20','VwFEH','ofNUw','Deleting\x20the\x20CloudFormation\x20Stacks','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','NAtCz','tYHdf','jJKqV','gcLWZ','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','delay','statusCode','RkeRY','ddGWx','moDgn','oMWuJ','warning','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','FFWBT','grid-spawning-failed','\x20using\x20\x27','securityGroups','CLI\x20run\x20finished:\x20','nodegroup','requestId','Spawning\x20the\x20grid\x20','qSoHl','lSnPs','ingress','UaXeM','4LcdXgg','Autoscaler\x20Role\x20created.ARN:\x20','vzDqI','1|3|0|2|4','Spawning\x20grid\x20on\x20to\x20the\x20cluster','warn','FcdkN','JfrSd','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','KtsIY','ociKy','RnuRK','nbybV','xBETJ','Nthvg','WvITt','create-grid-checks-non-200','body','mmWZD','doISF','Adding\x20Websocket\x20listeners','WqIBJ','kGsQG','grid-name','OAuyj','wqVbr','OutputValue','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','2|5|10|4|9|0|8|11|1|6|3|7','LNFfS','ZLlmr','defaultGridProfile','grid',',\x20Subnets\x20=>\x20','JvUIy','ewhxc'];a4_0x1474=function(){return _0x49badc;};return a4_0x1474();}
|
|
1
|
+
function a4_0x30e8(){const _0x1346fa=['XesPu','OutputValue','createdBy','Grid\x20spawned\x20on\x20the\x20cluster','644360UZeYjm','vWOpJ','KHbIk','nodeRole','prespawned-cluster-args-not-passed','\x20in\x20existing\x20cluster\x20\x27','Found\x20VPC:\x20','INFO','AUsfa','LVwzI','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Skipping\x20Autoscaler\x20due\x20to:\x20','mylOA',',\x20SecurityGroups\x20=>\x20','dAOuw','4|3|0|1|2','message','4|6|0|5|7|2|3|1','axpQa',':4444/wd/hub','SecurityGroups\x20=>\x20','pre-spawned-invalid-subnets','pre-spawned-invalid-vpc','AyujV','25HHXOkV','grid-name','RtJdk','CLI_RUN_FINISHED','VPC\x20=>\x20','subnets','112pNWfhb','ClusterRole\x20=>\x20','create-grid-checks-invalid-profile','VKUUX','iiQTU','OVblR','builder','Oamnp','RCdCq','UvYiW','aQyZE','HZtfp','vpc','dcGHw','init-not-called','cQMMs','GdYgb','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','1114461LrHBit','method','gridProfile','avbLn','readNamespacedService','Cluster\x20','3|4|2|0|1','yuuxa','aWxkq','omrdH','clusterRegion','kFLiR','CLI_RUN_STARTED','Cluster\x20=>\x20','hDwkF','create-grid-checks-non-200','../../utils/webSocketUtils','cloudProviderSecretKey','BfIne','gUTLc','yurRA','swtHd','KULCR','113780UYlfrU','BQlUn','annotations','kube-system','secret','\x20using\x20\x27','aZBBC','info','braxL','CBdXo','/packages/cli/create-grid-checks','exit','FsIND','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','Autoscaler\x20Role\x20created.ARN:\x20','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','<PasswordPlaceholder>','qaCaY','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','hUpVC','create-grid-called','util','stringify','YAkhP','Following\x20resources\x20are\x20created:','6239382StmEQl','statusCode','NLGbJ','hwRwT','zAFsi','desc','replace','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','xmjdn','xezEg','IIRuo','sTIYq','Grid\x20can\x20be\x20accessed\x20at:\x20','Browserstack',',\x20NodeRole\x20=>\x20','WzXEG','KKLtQ','NMKgw','GFgoj','rwHgQ','.\x20Deleting\x20all\x20the\x20stacks','gmGdX','QDGCB','EIxnN','AZGlx','VoBLl','kEFML','iYAvJ','promisify','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','WARNING','Configuring\x20AWS','uuid','7szVveH','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','WebSocket','oOihE','existsSync','body','Spawning\x20Grid\x20on\x20the\x20Cluster','length','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','cloudProvider','../../utils/deleteStack','aBWbj','help','vmmrB','2|1|0|4|11|10|5|3|6|9|8|7','reportToGalactusAndSendToEDS','region','request','inJPd','create-grid-checks-null-response','IQcjh','yqWQe','RWNhl','gridProfiles','../../utils/createAutoscalerStack','pddCG','yjYyK','xNVUj','Ykext','YIHmg','epilogue','OXcEW','nrJgo','EaxnT','Spawning\x20grid\x20on\x20to\x20the\x20cluster','create-grid-checks-auth-failed','lRRgU','cluster','atZCT','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://','pzLuj','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','metadata','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','description','s3bucket','Grid\x20profile\x20fetched\x20from\x20backend','../../utils/hstUtils','hostname','NUGHd','ZtYGr','../../utils/gridComponents','../../utils/userInput','143436VwwwDE','gLxFh','yIFGj','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','NodeRole\x20=>\x20','GIIxX','oRNxN','ijIqV','loadBalancer','auth','requestId','aws','DmKto','jUfRt','type','warning','cloud-provider','Namespace\x20Created','argv','name','catch','accessKey','default',',\x20Subnets\x20=>\x20','sLOyi','-NodeGroup','bstackAccesskey','certificateAuthority','UrfNf','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','QGPOL','BGNzB','cluster-name','DxTou','vUFYk','YTiJe','CLI\x20run\x20finished:\x20','../../config/logger','user','../../utils/createClusterStack','ArbVh','../../config/constants','Authmap\x20already\x20exists.\x20Not\x20updating','Outputs','QGtkn','NDoJN','delay','vktvx','Will\x20be\x20spawning\x20the\x20grid\x20','concurrency','warn','gPPPH','string','options','Nfxou','WfapU','endpoint','NowCV','create','yuMIf','ingress','3|5|7|2|1|6|0|8|4','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','instanceType','baJwS','securityGroups','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','parse','ExoSk','Found\x20Subnets:\x20','ePVbh','3|1|4|0|2','WpXpo','password','qHbQx','debug','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','ePABl','status','gridProfileId','cloudProviderAccessKey','ufEJN','sendEventToBackend','WvsvG','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','JIAUM','toLowerCase','YPKRG','SyzVX','CyvTn','CLI\x20run\x20started','oAlPe','qAGiP','data','createNamespace','grid','LOG','dIFmN','OMdFq','Deleting\x20the\x20CloudFormation\x20Stacks','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','browserVersion','Subnets\x20=>\x20','gridName','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','gfcpu','clusterName','error','jSAOo','60AdnItD','13234936TmCjJr','Stacks','pre-spawned-subnets-not-selected','iJtqb','xRSlk','FfVCT','NnXGE','WKTQd','autoscaler-creation-failed','LKkiZ','mMONU','DSFwb','19568087RwmsrM','WIiMp','then','otoaI','Cluster\x20and\x20node\x20group\x20created\x20successfully','qEYcd','AznMS','zZgds','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','create-grid-checks-grid-already-exists','hubVersion','AtHXa','\x27\x20grid\x20profile','split','bstackUsername','ERROR','writeFileSync','7|6|3|1|0|5|8|2|4','GIRBG','../../utils/utilityMethods','vdTsW','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs'];a4_0x30e8=function(){return _0x1346fa;};return a4_0x30e8();}const a4_0x55a9f5=a4_0x448c;function a4_0x448c(_0x4b182c,_0x18c592){const _0x30e8f2=a4_0x30e8();return a4_0x448c=function(_0x448cbe,_0xee1ac4){_0x448cbe=_0x448cbe-0x180;let _0x46c41a=_0x30e8f2[_0x448cbe];return _0x46c41a;},a4_0x448c(_0x4b182c,_0x18c592);}(function(_0x318376,_0x46b944){const _0x18fa59=a4_0x448c,_0x3b3b67=_0x318376();while(!![]){try{const _0x1ff620=parseInt(_0x18fa59(0x205))/0x1*(-parseInt(_0x18fa59(0x234))/0x2)+parseInt(_0x18fa59(0x2a3))/0x3*(-parseInt(_0x18fa59(0x20b))/0x4)+-parseInt(_0x18fa59(0x1ed))/0x5+-parseInt(_0x18fa59(0x24d))/0x6*(-parseInt(_0x18fa59(0x26e))/0x7)+parseInt(_0x18fa59(0x1c6))/0x8+-parseInt(_0x18fa59(0x21d))/0x9*(parseInt(_0x18fa59(0x1c5))/0xa)+parseInt(_0x18fa59(0x1d2))/0xb;if(_0x1ff620===_0x46b944)break;else _0x3b3b67['push'](_0x3b3b67['shift']());}catch(_0x19cd2e){_0x3b3b67['push'](_0x3b3b67['shift']());}}}(a4_0x30e8,0xcd29d));const fs=require('fs'),ws=require('ws'),util=require(a4_0x55a9f5(0x249)),ReconnectingWebSocket=require('reconnecting-websocket'),request=require(a4_0x55a9f5(0x27f)),{v4:uuidv4}=require(a4_0x55a9f5(0x26d)),webSocketUtils=require(a4_0x55a9f5(0x22d)),{logger}=require(a4_0x55a9f5(0x2c8)),{inputCloudProviderKeys}=require(a4_0x55a9f5(0x2a2)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a4_0x55a9f5(0x1e6)),{sendAWSInfoToHST}=require(a4_0x55a9f5(0x29d)),{isClusterPresent,getClusterInfo,configureAWSIfNotConfigured,createAuthConfigMap,getNodeGroupInfo,isVPCPresent,isSubnetsValid}=require('../../utils/AWSUtils'),{addGridComponents,deleteClusterAndDependencies,removeGridComponents}=require(a4_0x55a9f5(0x2a1)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,CLUSTER_DEP_STACK_NAME}=require(a4_0x55a9f5(0x180)),{createClusterStack}=require(a4_0x55a9f5(0x2ca)),{createAutoscalerStack}=require(a4_0x55a9f5(0x286)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{deleteClusterStack}=require(a4_0x55a9f5(0x278)),promisifiedRequest=util[a4_0x55a9f5(0x269)](request);exports['command']=a4_0x55a9f5(0x1b7),exports[a4_0x55a9f5(0x252)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a4_0x55a9f5(0x211)]=function(_0x127856){const _0x1a48b5=a4_0x55a9f5,_0xe58a58={};_0xe58a58[_0x1a48b5(0x287)]=_0x1a48b5(0x196),_0xe58a58['WzXEG']=_0x1a48b5(0x18b),_0xe58a58[_0x1a48b5(0x204)]=_0x1a48b5(0x254),_0xe58a58[_0x1a48b5(0x231)]=_0x1a48b5(0x26f),_0xe58a58['qEYcd']=_0x1a48b5(0x19a),_0xe58a58[_0x1a48b5(0x23c)]=_0x1a48b5(0x1c0),_0xe58a58['GFgoj']=_0x1a48b5(0x27a);const _0x2c7b55=_0xe58a58,_0x39f30f={};_0x39f30f['description']=_0x2c7b55[_0x1a48b5(0x287)],_0x39f30f[_0x1a48b5(0x2b1)]=_0x2c7b55[_0x1a48b5(0x25c)];const _0x2226a3={};_0x2226a3[_0x1a48b5(0x29a)]=_0x2c7b55['AyujV'],_0x2226a3[_0x1a48b5(0x2b1)]=_0x2c7b55[_0x1a48b5(0x25c)];const _0x4e0ff2={};_0x4e0ff2[_0x1a48b5(0x29a)]=_0x2c7b55['yurRA'],_0x4e0ff2[_0x1a48b5(0x2b1)]=_0x2c7b55['WzXEG'];const _0x5379c6={};_0x5379c6[_0x1a48b5(0x29a)]=_0x2c7b55[_0x1a48b5(0x1d7)],_0x5379c6['type']=_0x2c7b55[_0x1a48b5(0x25c)];const _0x21ab0b={};_0x21ab0b[_0x1a48b5(0x29a)]=_0x2c7b55[_0x1a48b5(0x23c)],_0x21ab0b[_0x1a48b5(0x2b1)]=_0x2c7b55[_0x1a48b5(0x25c)];const _0x14a464={};return _0x14a464[_0x1a48b5(0x206)]=_0x39f30f,_0x14a464['grid-profile']=_0x2226a3,_0x14a464['cluster-name']=_0x4e0ff2,_0x14a464[_0x1a48b5(0x2b3)]=_0x5379c6,_0x14a464[_0x1a48b5(0x27e)]=_0x21ab0b,_0x127856['usage'](HELP_HEADER_MESSAGE[_0x1a48b5(0x191)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1a48b5(0x18c)](_0x14a464)['help'](_0x2c7b55[_0x1a48b5(0x25f)])[_0x1a48b5(0x2b5)];},exports['handler']=async function(_0x275ca1){const _0x908346=a4_0x55a9f5,_0x5bea59={'RpZzn':_0x908346(0x196),'gLxFh':_0x908346(0x18b),'aZBBC':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','iiQTU':_0x908346(0x26f),'WKTQd':_0x908346(0x19a),'lRRgU':_0x908346(0x1c0),'avbLn':'help','WpXpo':'7|4|1|9|3|0|11|10|5|8|6|2','OXcEW':function(_0x20ed46,_0x3d88f1,_0x36c777,_0x20f7e2,_0x1b075d,_0x1b28eb,_0x1df317,_0x2ef5a5,_0x2cbe51,_0x443d1c){return _0x20ed46(_0x3d88f1,_0x36c777,_0x20f7e2,_0x1b075d,_0x1b28eb,_0x1df317,_0x2ef5a5,_0x2cbe51,_0x443d1c);},'CBdXo':_0x908346(0x26c),'oOihE':function(_0x39abc2){return _0x39abc2();},'omrdH':_0x908346(0x223),'NLGbJ':_0x908346(0x1da),'seUWs':_0x908346(0x1fe),'GIRBG':_0x908346(0x1c3),'WvsvG':_0x908346(0x194),'YAkhP':_0x908346(0x181),'LoJTh':'5|0|1|2|6|3|7|4','DmKto':function(_0x34acee){return _0x34acee();},'OVblR':function(_0x534741){return _0x534741();},'AUsfa':function(_0x447230,_0x384f2d){return _0x447230!==_0x384f2d;},'QDGCB':'lNkKV','yIFGj':_0x908346(0x19e),'qHbQx':_0x908346(0x299),'FfVCT':function(_0x124029,_0x41b212,_0xf1b299,_0xf43942,_0x3e8fa0,_0x1a7df4,_0x1bed59){return _0x124029(_0x41b212,_0xf1b299,_0xf43942,_0x3e8fa0,_0x1a7df4,_0x1bed59);},'DxTou':_0x908346(0x248),'aQyZE':_0x908346(0x219),'hwRwT':function(_0x11842e,_0x27a9d6,_0x3bb9ac,_0x17d528,_0x378daf,_0x41ebc2,_0x23bfe9){return _0x11842e(_0x27a9d6,_0x3bb9ac,_0x17d528,_0x378daf,_0x41ebc2,_0x23bfe9);},'ijIqV':function(_0x51b641){return _0x51b641();},'hDwkF':'<UsernamePlaceholder>','BGNzB':_0x908346(0x244),'URyVU':'Adding\x20Websocket\x20listeners','ExoSk':function(_0x72f1e8,_0x5b66cb){return _0x72f1e8!==_0x5b66cb;},'KULCR':_0x908346(0x25d),'yjYyK':function(_0xe98164,_0x769bf4){return _0xe98164===_0x769bf4;},'UvYiW':_0x908346(0x29f),'moaHD':_0x908346(0x2b0),'RWNhl':_0x908346(0x276),'JIAUM':function(_0x2773fb,_0x139120,_0x4e08e4,_0xcf2abf,_0x48a85d,_0x315d85,_0x4f7bd1,_0x5d880a){return _0x2773fb(_0x139120,_0x4e08e4,_0xcf2abf,_0x48a85d,_0x315d85,_0x4f7bd1,_0x5d880a);},'ufEJN':_0x908346(0x1f1),'TFTyd':function(_0x491aaa,_0xddf0ae){return _0x491aaa!==_0xddf0ae;},'SyzVX':_0x908346(0x2ae),'BQlUn':_0x908346(0x1b9),'ArbVh':_0x908346(0x2a9),'hUpVC':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20only\x20AWS\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ZCYAx':'non-aws-cluster','dAOuw':_0x908346(0x240),'Lgnty':_0x908346(0x2bf),'xNVUj':'GET','yuuxa':function(_0xf12cf7,_0x337b2a){return _0xf12cf7(_0x337b2a);},'egOOx':function(_0x3ea9e8,_0x504181){return _0x3ea9e8!==_0x504181;},'NMKgw':_0x908346(0x296),'GdYgb':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','qAGiP':function(_0xbcc8d8,_0x5e49dc,_0x52fb43,_0x5a551e,_0x230b58,_0x236f09,_0x46c07b,_0x318c6e){return _0xbcc8d8(_0x5e49dc,_0x52fb43,_0x5a551e,_0x230b58,_0x236f09,_0x46c07b,_0x318c6e);},'otoaI':_0x908346(0x281),'HZtfp':_0x908346(0x2c6),'YIHmg':_0x908346(0x213),'wWfLb':_0x908346(0x1a4),'HYWqL':_0x908346(0x291),'mylOA':function(_0x5ad8c0,_0x3e6ac8){return _0x5ad8c0!==_0x3e6ac8;},'AZGlx':_0x908346(0x279),'NowCV':function(_0x181201,_0x2085d4,_0x4c62b0,_0x20b75a,_0x37ddb7,_0x5bb2ad,_0x4bf1fb,_0x3f8049){return _0x181201(_0x2085d4,_0x4c62b0,_0x20b75a,_0x37ddb7,_0x5bb2ad,_0x4bf1fb,_0x3f8049);},'mMONU':_0x908346(0x22c),'CyvTn':_0x908346(0x29c),'sLOyi':'oFVGP','nrJgo':_0x908346(0x26a),'EaxnT':function(_0x127023,_0x57f4a2,_0x269952,_0x5339c3,_0x1252f7,_0x6d068b,_0x1770d0,_0x112715){return _0x127023(_0x57f4a2,_0x269952,_0x5339c3,_0x1252f7,_0x6d068b,_0x1770d0,_0x112715);},'QGtkn':_0x908346(0x1dc),'axpQa':function(_0x1b5474,_0x4d0c64){return _0x1b5474!==_0x4d0c64;},'AznMS':_0x908346(0x1af),'HOlrw':_0x908346(0x260),'ePABl':_0x908346(0x251),'kFLiR':_0x908346(0x195),'swtHd':function(_0x53129e,_0x164b7d,_0x4f66e6,_0x1f410b,_0x3c0a1a,_0xbe42d0,_0x461600,_0x107237){return _0x53129e(_0x164b7d,_0x4f66e6,_0x1f410b,_0x3c0a1a,_0xbe42d0,_0x461600,_0x107237);},'WIiMp':_0x908346(0x20d),'iJtqb':function(_0x1e7731,_0x25c345){return _0x1e7731===_0x25c345;},'LVwzI':function(_0x464239,_0x1b6ad2){return _0x464239!==_0x1b6ad2;},'DSFwb':'SxGnC','AtHXa':_0x908346(0x212),'sTIYq':_0x908346(0x27c),'KHbIk':function(_0x59afa9,_0x2fda8e,_0x1aa702,_0x233141,_0x157136,_0xb41a63,_0x28893f,_0x20eaa0,_0x404578,_0x17b12a){return _0x59afa9(_0x2fda8e,_0x1aa702,_0x233141,_0x157136,_0xb41a63,_0x28893f,_0x20eaa0,_0x404578,_0x17b12a);},'vWOpJ':_0x908346(0x225),'dcGHw':_0x908346(0x283),'yuMIf':_0x908346(0x1e4),'vUFYk':_0x908346(0x243),'kEFML':function(_0x11020a,_0x1f83e6){return _0x11020a(_0x1f83e6);},'vdTsW':_0x908346(0x1e8),'QGPOL':_0x908346(0x19f),'xRSlk':function(_0x4cc95f,_0x45185c,_0x12470f){return _0x4cc95f(_0x45185c,_0x12470f);},'vktvx':'warn','WfapU':_0x908346(0x1bc),'LKkiZ':function(_0x29c257,_0x2dcb74){return _0x29c257!=_0x2dcb74;},'gfcpu':function(_0x236c89,_0x125e5a){return _0x236c89>_0x125e5a;},'CurCW':_0x908346(0x297),'wVZpa':function(_0x3aadea,_0x2136ac,_0xee2635,_0x8ca0f0,_0x486d2c,_0x1c78c3,_0x10ae13,_0x4fb9bc){return _0x3aadea(_0x2136ac,_0xee2635,_0x8ca0f0,_0x486d2c,_0x1c78c3,_0x10ae13,_0x4fb9bc);},'iYAvJ':_0x908346(0x1c8),'FpkzR':function(_0x58fefb,_0x9816ac,_0x23b089){return _0x58fefb(_0x9816ac,_0x23b089);},'nvCyZ':function(_0x7d469e,_0x28177c){return _0x7d469e===_0x28177c;},'RtJdk':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','ZtYGr':function(_0x1790d6,_0x249c7c,_0x25fd48,_0x24b524,_0x5b4c25,_0x268a33,_0x89cdbd,_0x29d07a){return _0x1790d6(_0x249c7c,_0x25fd48,_0x24b524,_0x5b4c25,_0x268a33,_0x89cdbd,_0x29d07a);},'gPPPH':_0x908346(0x203),'Nfxou':function(_0x32557b,_0x493ebb,_0x44dfc2,_0xf9a138){return _0x32557b(_0x493ebb,_0x44dfc2,_0xf9a138);},'xezEg':function(_0x79db5c,_0xbb3527){return _0x79db5c===_0xbb3527;},'GIIxX':_0x908346(0x202),'inJPd':_0x908346(0x24c),'zZgds':'The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','Ykext':function(_0x18f39a,_0x13ec75){return _0x18f39a(_0x13ec75);},'baJwS':_0x908346(0x246),'xmjdn':_0x908346(0x21c),'CfvTv':function(_0xc85d18,_0x14ea09){return _0xc85d18(_0x14ea09);},'atZCT':_0x908346(0x1d6),'gmGdX':function(_0x246936,_0x24fdb0,_0x28e7c4,_0x5f4faf,_0x5426f7){return _0x246936(_0x24fdb0,_0x28e7c4,_0x5f4faf,_0x5426f7);},'jSAOo':'Creating\x20Autoscaler\x20Role','qaCaY':function(_0x47b503,_0x35a675){return _0x47b503(_0x35a675);},'ysoSR':function(_0x125df0,_0x44e454,_0x4e9cc2,_0x195ea3,_0x1d6cbf,_0x28c0de,_0x1a99e3,_0x220480){return _0x125df0(_0x44e454,_0x4e9cc2,_0x195ea3,_0x1d6cbf,_0x28c0de,_0x1a99e3,_0x220480);},'VKUUX':_0x908346(0x27d),'ixAcA':_0x908346(0x2b2),'FaqHk':_0x908346(0x1fc),'pUxqv':function(_0x3688b3,_0x2d757f,_0x5ab7d5,_0x1a05aa,_0x46de22,_0x51f473,_0x3449d0,_0x10f8c2){return _0x3688b3(_0x2d757f,_0x5ab7d5,_0x1a05aa,_0x46de22,_0x51f473,_0x3449d0,_0x10f8c2);},'VoBLl':_0x908346(0x1ce),'oAlPe':function(_0x20abf9,_0x497168,_0x2cccc7){return _0x20abf9(_0x497168,_0x2cccc7);},'IQcjh':function(_0x1e11b6,_0x53fe8a){return _0x1e11b6(_0x53fe8a);},'uPWxS':_0x908346(0x237),'GraFR':function(_0x377fac,_0x1d1035){return _0x377fac(_0x1d1035);},'BfIne':'Creating\x20namespace','ZvcMW':_0x908346(0x2b9),'vmmrB':_0x908346(0x25a),'NDoJN':_0x908346(0x2b4),'IIRuo':'Namespace\x20created','LrXbF':_0x908346(0x290),'NnXGE':_0x908346(0x274),'OMdFq':function(_0x29359a,_0x43f9c0,_0x111165,_0x4bcd0f,_0x4361a5,_0x425a0e,_0x1b807d,_0x490f97,_0x19bd32){return _0x29359a(_0x43f9c0,_0x111165,_0x4bcd0f,_0x4361a5,_0x425a0e,_0x1b807d,_0x490f97,_0x19bd32);},'dBDsU':_0x908346(0x1ec),'gUTLc':_0x908346(0x1db),'zXOnu':'browserstack-turboscale-grid-service','BxaQH':function(_0x5e1bd6,_0x2f86eb,_0x350dd8,_0x3b0d4a,_0x1fc4d7,_0x4c196a){return _0x5e1bd6(_0x2f86eb,_0x350dd8,_0x3b0d4a,_0x1fc4d7,_0x4c196a);},'EIxnN':function(_0x2329e6,_0x55d603){return _0x2329e6(_0x55d603);},'cQMMs':function(_0x2705f6,_0x6a5079,_0x146a60,_0x372458,_0x20e06a,_0x2dfae1,_0x10f0e8){return _0x2705f6(_0x6a5079,_0x146a60,_0x372458,_0x20e06a,_0x2dfae1,_0x10f0e8);},'XesPu':'grid-spawning-failed'};let _0x22d52a=![],_0x50046c,_0x288677,_0x357670,_0x558bfd,_0x152568,_0x2ac6b9,_0x449ebb,_0xfe3fb7,_0x3cf2a6,_0x56ebda,_0x4626dc,_0x1ea503;try{global_registry[_0x908346(0x2ad)]=_0x5bea59[_0x908346(0x2af)](uuidv4);!fs[_0x908346(0x272)](_0x5bea59[_0x908346(0x210)](getCredentialsPath))&&(_0x5bea59[_0x908346(0x1f5)](_0x5bea59[_0x908346(0x263)],_0x5bea59[_0x908346(0x2a5)])?(console[_0x908346(0x1c3)](_0x5bea59[_0x908346(0x1a2)]),await _0x5bea59[_0x908346(0x1cb)](sendInstrumentationEvent,_0x275ca1,_0x5bea59[_0x908346(0x2c4)],messageTypes[_0x908346(0x1e2)],_0x5bea59[_0x908346(0x215)],null,_0x275ca1),process['exit'](0x1)):_0xc70046=_0x3f5c14['gridName']);await _0x5bea59[_0x908346(0x250)](sendInstrumentationEvent,_0x275ca1,_0x5bea59[_0x908346(0x2c4)],messageTypes[_0x908346(0x1f4)],null,null,_0x275ca1);const _0x29cf19=JSON[_0x908346(0x19b)](fs['readFileSync'](_0x5bea59[_0x908346(0x2aa)](getCredentialsPath)));global_registry[_0x908346(0x1e1)]=_0x29cf19[_0x908346(0x25a)]['username'],global_registry[_0x908346(0x2bd)]=_0x29cf19[_0x908346(0x25a)]['password'];const _0x56c73e=WS_ENDPOINT[_0x908346(0x253)](_0x5bea59[_0x908346(0x22b)],_0x29cf19[_0x908346(0x25a)]['username'])['replace'](_0x5bea59[_0x908346(0x2c2)],_0x29cf19['Browserstack']['password']),_0x137779={};_0x137779[_0x908346(0x270)]=ws,_0x56ebda=new ReconnectingWebSocket(_0x56c73e,[],_0x137779),logger['debug'](_0x5bea59['URyVU']),webSocketUtils['addListeners'](_0x56ebda,_0x275ca1[_0x908346(0x2c9)],_0x275ca1[_0x908346(0x1a1)]);let _0x497ea1=DEFAULT_GRID_NAME;if(_0x275ca1[_0x908346(0x1c2)]||_0x275ca1[_0x908346(0x277)]||_0x275ca1[_0x908346(0x27e)]){if(_0x5bea59[_0x908346(0x19c)](_0x5bea59[_0x908346(0x233)],_0x5bea59['KULCR'])){const _0x4a57a0={};_0x4a57a0['description']=_0x5bea59['RpZzn'],_0x4a57a0[_0x908346(0x2b1)]=_0x5bea59[_0x908346(0x2a4)];const _0x3b455f={};_0x3b455f[_0x908346(0x29a)]=_0x5bea59[_0x908346(0x23a)],_0x3b455f[_0x908346(0x2b1)]=_0x5bea59[_0x908346(0x2a4)];const _0xa9582c={};_0xa9582c[_0x908346(0x29a)]=_0x5bea59[_0x908346(0x20f)],_0xa9582c[_0x908346(0x2b1)]=_0x5bea59[_0x908346(0x2a4)];const _0x16436b={};_0x16436b[_0x908346(0x29a)]=_0x5bea59[_0x908346(0x1cd)],_0x16436b[_0x908346(0x2b1)]=_0x5bea59[_0x908346(0x2a4)];const _0x901b8d={};_0x901b8d[_0x908346(0x29a)]=_0x5bea59[_0x908346(0x292)],_0x901b8d[_0x908346(0x2b1)]=_0x5bea59['gLxFh'];const _0x2058ef={};return _0x2058ef[_0x908346(0x206)]=_0x4a57a0,_0x2058ef['grid-profile']=_0x3b455f,_0x2058ef[_0x908346(0x2c3)]=_0xa9582c,_0x2058ef[_0x908346(0x2b3)]=_0x16436b,_0x2058ef['region']=_0x901b8d,_0x1cf45b['usage'](_0x8a580e['create'])[_0x908346(0x28c)](_0x49009f)[_0x908346(0x18c)](_0x2058ef)[_0x908346(0x27a)](_0x5bea59[_0x908346(0x220)])[_0x908346(0x2b5)];}else{if(!(_0x275ca1[_0x908346(0x1c2)]&&_0x275ca1[_0x908346(0x277)]&&_0x275ca1[_0x908346(0x27e)])){if(_0x5bea59[_0x908346(0x288)](_0x5bea59[_0x908346(0x214)],_0x5bea59['moaHD'])){const _0x296e4a=_0x5bea59[_0x908346(0x1a0)][_0x908346(0x1e0)]('|');let _0x4b90c6=0x0;while(!![]){switch(_0x296e4a[_0x4b90c6++]){case'0':_0x1fe753=_0x86f6ec[_0x908346(0x217)];continue;case'1':_0x11fcf2=_0x166a47[_0x908346(0x27e)];continue;case'2':_0x5bea59[_0x908346(0x28d)](_0x37552d,_0x3de282,_0x4dadf4,_0x20d310,_0x1608b1,_0x1fc798,_0x1dae76,_0x103878,_0x2312f8,_0x4fe40e);continue;case'3':_0x4c10da=_0x38c7f3['instanceType'];continue;case'4':_0x393e6e=_0x1d1a9c[_0x908346(0x1c2)];continue;case'5':_0x2ba2ef=_0x40eba4[_0x908346(0x29b)];continue;case'6':_0x1bc7f9=_0x55f17c[_0x908346(0x1bd)];continue;case'7':_0x23ee2e=_0x1b1270[_0x908346(0x277)];continue;case'8':_0x5ad4bc=_0x5b119f[_0x908346(0x1dd)];continue;case'9':_0x5e9f91=_0x46095f[_0x908346(0x188)];continue;case'10':_0x2c85a2=_0x42c456[_0x908346(0x20a)];continue;case'11':_0x4fdd72=_0x1a9c12[_0x908346(0x199)];continue;}break;}}else _0x50046c=_0x5bea59[_0x908346(0x284)],await _0x5bea59[_0x908346(0x1ad)](reportToGalactusAndSendToEDS,_0x275ca1,_0x56ebda,_0x50046c,messageTypes[_0x908346(0x1e2)],_0x5bea59[_0x908346(0x2c4)],_0x5bea59[_0x908346(0x1a9)],_0x5bea59[_0x908346(0x1e5)]),logger['error'](_0x50046c),process[_0x908346(0x23f)](0x1);}_0x5bea59['TFTyd'](_0x275ca1['cloudProvider'][_0x908346(0x1ae)](),_0x5bea59[_0x908346(0x1b0)])&&(_0x5bea59[_0x908346(0x19c)](_0x5bea59[_0x908346(0x235)],_0x5bea59[_0x908346(0x2cb)])?(_0x50046c=_0x5bea59[_0x908346(0x247)],await _0x5bea59[_0x908346(0x1ad)](reportToGalactusAndSendToEDS,_0x275ca1,_0x56ebda,_0x50046c,messageTypes['ERROR'],_0x5bea59[_0x908346(0x2c4)],_0x5bea59['ZCYAx'],_0x5bea59[_0x908346(0x1e5)]),logger[_0x908346(0x1c3)](_0x50046c),process[_0x908346(0x23f)](0x1)):(_0x130533[_0x908346(0x1a3)](_0x5bea59[_0x908346(0x23d)]),_0x5bea59['oOihE'](_0x27e223))),_0x22d52a=!![],_0x357670=_0x275ca1[_0x908346(0x1c2)],_0x288677=_0x275ca1[_0x908346(0x277)],_0x558bfd=_0x275ca1[_0x908346(0x27e)];}}_0x275ca1[_0x908346(0x1bf)]&&(_0x5bea59[_0x908346(0x19c)](_0x5bea59[_0x908346(0x1fb)],_0x5bea59['Lgnty'])?_0x497ea1=_0x275ca1['gridName']:_0x9def4e['info'](_0x908346(0x19d)+_0x5451f3['stringify'](_0x1f6be5)+'\x20'));global_registry[_0x908346(0x1bf)]=_0x497ea1;const _0x1c76c4='https://'+AG_API_URL+_0x908346(0x23e),_0x22b512={};_0x22b512['username']=_0x29cf19[_0x908346(0x25a)]['username'],_0x22b512['password']=_0x29cf19[_0x908346(0x25a)]['password'];const _0x6a2c79={};_0x6a2c79[_0x908346(0x1bf)]=_0x497ea1;const _0x2bdd55={};_0x2bdd55['url']=_0x1c76c4,_0x2bdd55[_0x908346(0x21e)]=_0x5bea59[_0x908346(0x289)],_0x2bdd55[_0x908346(0x2ac)]=_0x22b512,_0x2bdd55['qs']=_0x6a2c79;const _0xc9120d=_0x2bdd55,_0x3073b1=await _0x5bea59[_0x908346(0x224)](promisifiedRequest,_0xc9120d);if(_0x5bea59[_0x908346(0x288)](_0x3073b1,null)||_0x5bea59[_0x908346(0x288)](_0x3073b1,undefined)){if(_0x5bea59['egOOx'](_0x5bea59[_0x908346(0x25e)],_0x5bea59['NMKgw'])){const _0x5be8d4=_0x5bea59[_0x908346(0x226)]['split']('|');let _0x48b1de=0x0;while(!![]){switch(_0x5be8d4[_0x48b1de++]){case'0':_0xe7051c[_0x908346(0x1a8)]=_0x283dbc[_0x48bbd7][_0x908346(0x2b8)];continue;case'1':_0x2ccd59['cloudProviderSecretKey']=_0x4155b6[_0xb24f57][_0x908346(0x238)];continue;case'2':_0xe5b365[_0x908346(0x23b)](_0x562dac);continue;case'3':_0x959b30=_0x5bea59[_0x908346(0x24f)];continue;case'4':const _0x2675c3={};_0x2675c3['type']=_0x37a368[_0x908346(0x1b8)],_0x2675c3[_0x908346(0x1fd)]=_0x3384e2,_0x3d0ff2[_0x908346(0x1aa)](_0x5eed04,_0x2675c3);continue;}break;}}else _0x50046c=_0x5bea59[_0x908346(0x21b)],await _0x5bea59[_0x908346(0x1b4)](reportToGalactusAndSendToEDS,_0x275ca1,_0x56ebda,_0x50046c,messageTypes[_0x908346(0x1e2)],_0x5bea59[_0x908346(0x2c4)],_0x5bea59[_0x908346(0x1d5)],_0x5bea59['GIRBG']),logger[_0x908346(0x1c3)](_0x50046c),process[_0x908346(0x23f)](0x1);}_0x5bea59[_0x908346(0x288)](_0x3073b1[_0x908346(0x24e)],0x191)&&(_0x5bea59[_0x908346(0x288)](_0x5bea59[_0x908346(0x216)],_0x5bea59[_0x908346(0x28b)])?_0x415f19['info'](_0x908346(0x1f3)+_0x20c158+'\x20'):(_0x50046c=_0x5bea59['wWfLb'],await _0x5bea59['qAGiP'](reportToGalactusAndSendToEDS,_0x275ca1,_0x56ebda,_0x50046c,messageTypes['ERROR'],_0x5bea59[_0x908346(0x2c4)],_0x5bea59['HYWqL'],_0x5bea59[_0x908346(0x1e5)]),logger['error'](_0x50046c),process[_0x908346(0x23f)](0x1)));_0x5bea59[_0x908346(0x19c)](_0x3073b1[_0x908346(0x24e)],0xc8)&&(_0x5bea59['mylOA'](_0x5bea59[_0x908346(0x265)],_0x5bea59[_0x908346(0x265)])?_0x12f414=_0x259508[_0x3948d1[_0x908346(0x21f)]]:(_0x50046c='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x908346(0x24a)](_0x3073b1),await _0x5bea59[_0x908346(0x190)](reportToGalactusAndSendToEDS,_0x275ca1,_0x56ebda,_0x50046c,messageTypes['ERROR'],_0x5bea59[_0x908346(0x2c4)],_0x5bea59[_0x908346(0x1d0)],_0x5bea59[_0x908346(0x1e5)]),logger[_0x908346(0x1c3)](_0x50046c),process[_0x908346(0x23f)](0x1)));const _0x36920b=JSON[_0x908346(0x19b)](_0x3073b1[_0x908346(0x273)]),_0x1e402a={};_0x1e402a[_0x908346(0x2b1)]=WS_EVENTS[_0x908346(0x229)],_0x1e402a[_0x908346(0x1fd)]=_0x908346(0x1b2),webSocketUtils[_0x908346(0x1aa)](_0x56ebda,_0x1e402a);const _0x32376c={};_0x32376c[_0x908346(0x2b1)]=WS_EVENTS[_0x908346(0x1b8)],_0x32376c[_0x908346(0x1fd)]=_0x5bea59[_0x908346(0x1b1)],webSocketUtils[_0x908346(0x1aa)](_0x56ebda,_0x32376c);if(_0x36920b['alreadyPresent']){if(_0x5bea59[_0x908346(0x19c)](_0x5bea59[_0x908346(0x2bb)],_0x5bea59[_0x908346(0x2bb)]))throw _0x2ae6f7;else _0x50046c=_0x5bea59[_0x908346(0x28e)],await _0x5bea59[_0x908346(0x28f)](reportToGalactusAndSendToEDS,_0x275ca1,_0x56ebda,_0x50046c,messageTypes[_0x908346(0x1e2)],_0x5bea59['DxTou'],_0x5bea59[_0x908346(0x183)],_0x5bea59['GIRBG']),logger['error'](_0x50046c),process[_0x908346(0x23f)](0x1);}const _0x303d72=_0x36920b[_0x908346(0x285)];let _0xfeaf6e=_0x303d72[_0x36920b['defaultGridProfile']];if(_0x275ca1[_0x908346(0x21f)]){if(_0x5bea59[_0x908346(0x1ff)](_0x5bea59[_0x908346(0x1d8)],_0x5bea59['HOlrw']))_0xfeaf6e=_0x303d72[_0x275ca1[_0x908346(0x21f)]];else{const _0x2cad76=_0x5bea59['seUWs'][_0x908346(0x1e0)]('|');let _0x483f9e=0x0;while(!![]){switch(_0x2cad76[_0x483f9e++]){case'0':_0x40746f[_0x908346(0x23b)](_0x4d336f);continue;case'1':const _0x302d32={};_0x302d32[_0x908346(0x2b1)]=_0x279eac[_0x908346(0x208)],_0x302d32['message']=_0x908346(0x2c7)+_0x329a6c,_0x30e9d6[_0x908346(0x1aa)](_0x6ac00e,_0x302d32);continue;case'2':_0xe897ca['info'](_0xe6a9fd);continue;case'3':const _0x4e4990={};_0x4e4990[_0x908346(0x2b1)]=_0x334010['LOG'],_0x4e4990['message']=_0x4e717c,_0x37e4a8[_0x908346(0x1aa)](_0x1ce314,_0x4e4990);continue;case'4':_0x161d04=_0x19f9b6[_0x908346(0x273)][_0x908346(0x1a6)]['loadBalancer']['ingress'][0x0][_0x908346(0x29e)];continue;case'5':const _0x187521={};_0x187521[_0x908346(0x2b1)]=_0x366092[_0x908346(0x1b8)],_0x187521[_0x908346(0x1fd)]=_0x4507b5,_0x2adfac[_0x908346(0x1aa)](_0x6a8f55,_0x187521);continue;case'6':_0x3b660b=_0x908346(0x259)+_0x353395+'\x20';continue;case'7':_0x188ca8=_0x908346(0x295)+_0x5a52f1+_0x908346(0x200);continue;}break;}}}if(_0x5bea59['yjYyK'](_0xfeaf6e,undefined)){if(_0x5bea59['yjYyK'](_0x5bea59[_0x908346(0x1a5)],_0x5bea59['ePABl']))_0x50046c=_0x5bea59[_0x908346(0x228)],await _0x5bea59[_0x908346(0x232)](reportToGalactusAndSendToEDS,_0x275ca1,_0x56ebda,_0x50046c,messageTypes[_0x908346(0x1e2)],_0x5bea59[_0x908346(0x2c4)],_0x5bea59[_0x908346(0x1d3)],_0x5bea59[_0x908346(0x1e5)]),logger['error'](_0x50046c),process[_0x908346(0x23f)](0x1);else{const _0xde4e72={};_0xde4e72[_0x908346(0x2b1)]=_0x49b147[_0x908346(0x1b8)],_0xde4e72['message']=_0x55ed1d,_0x5de392[_0x908346(0x1aa)](_0x46917b,_0xde4e72,_0x5bea59[_0x908346(0x1e5)],!![]);}}global_registry[_0x908346(0x1a7)]=_0xfeaf6e['id'],_0x50046c=_0x908346(0x187)+_0x497ea1+_0x908346(0x239)+_0xfeaf6e[_0x908346(0x2b6)]+_0x908346(0x1df),logger[_0x908346(0x23b)](_0x50046c);const _0x4f6af4={};_0x4f6af4[_0x908346(0x2b1)]=WS_EVENTS[_0x908346(0x1b8)],_0x4f6af4[_0x908346(0x1fd)]=_0x50046c,webSocketUtils[_0x908346(0x1aa)](_0x56ebda,_0x4f6af4);if(_0x5bea59[_0x908346(0x1c9)](_0x22d52a,![])){if(_0x5bea59[_0x908346(0x1f6)](_0x5bea59[_0x908346(0x1d1)],_0x5bea59[_0x908346(0x1de)])){const _0x51c979=_0x5bea59[_0x908346(0x258)][_0x908346(0x1e0)]('|');let _0x57389b=0x0;while(!![]){switch(_0x51c979[_0x57389b++]){case'0':_0x558bfd=_0xfeaf6e[_0x908346(0x27e)];continue;case'1':_0x357670=_0xfeaf6e[_0x908346(0x1c2)];continue;case'2':_0x288677=_0xfeaf6e[_0x908346(0x277)];continue;case'3':subnets=_0xfeaf6e[_0x908346(0x20a)];continue;case'4':_0x152568=_0xfeaf6e[_0x908346(0x188)];continue;case'5':securityGroups=_0xfeaf6e['securityGroups'];continue;case'6':_0xfe3fb7=_0xfeaf6e['s3bucket'];continue;case'7':_0x5bea59[_0x908346(0x1ef)](updateGlobalRegistryWithConfig,_0x288677,_0x357670,_0x558bfd,_0x152568,_0x2ac6b9,_0xfe3fb7,_0xfeaf6e,_0x4626dc,_0x1ea503);continue;case'8':_0x1ea503=_0x36920b[_0x908346(0x1bd)];continue;case'9':_0x4626dc=_0x36920b[_0x908346(0x1dd)];continue;case'10':_0x449ebb=_0xfeaf6e[_0x908346(0x217)];continue;case'11':_0x2ac6b9=_0xfeaf6e[_0x908346(0x197)];continue;}break;}}else{const _0x2e5ce8=_0x5bea59[_0x908346(0x1ab)][_0x908346(0x1e0)]('|');let _0x3bf2ad=0x0;while(!![]){switch(_0x2e5ce8[_0x3bf2ad++]){case'0':_0x13e19a[_0x908346(0x1c2)]=_0x3038b4;continue;case'1':_0x544660['cloudProvider']=_0x370dca;continue;case'2':const _0x22b6cb={};_0x22b6cb['type']=_0x34617d[_0x908346(0x1b8)],_0x22b6cb[_0x908346(0x1fd)]=_0x503787,_0x3ca1a5[_0x908346(0x1aa)](_0x5dcbbe,_0x22b6cb);continue;case'3':const _0x20ce77={};_0x20ce77[_0x908346(0x2b1)]=_0x4aa820[_0x908346(0x229)],_0x20ce77[_0x908346(0x1fd)]=_0x908346(0x1b2),_0x51a6f0['sendEventToBackend'](_0x5a0ef7,_0x20ce77);continue;case'4':_0x3d7662[_0x908346(0x1bd)]=_0xa01426[_0x908346(0x1bd)];continue;case'5':_0x31b82d='Spawning\x20the\x20grid\x20'+_0x2dac79+'\x20in\x20existing\x20cluster\x20\x27'+_0x3024de+'\x27';continue;case'6':_0x445b60[_0x908346(0x227)]=_0x135b67;continue;case'7':_0x3122f4[_0x908346(0x23b)](_0x57fee9);continue;case'8':_0x366bea[_0x908346(0x1dd)]=_0x38f1cc['hubVersion'];continue;}break;}}}else{if(_0x5bea59[_0x908346(0x1c9)](_0x5bea59[_0x908346(0x1ee)],_0x5bea59[_0x908346(0x218)]))_0x594bba['info'](_0x5bea59[_0x908346(0x24b)]);else{const _0xc91060=_0x5bea59[_0x908346(0x192)][_0x908346(0x1e0)]('|');let _0x3f9d1d=0x0;while(!![]){switch(_0xc91060[_0x3f9d1d++]){case'0':global_registry[_0x908346(0x277)]=_0x288677;continue;case'1':const _0x1b32ea={};_0x1b32ea['type']=WS_EVENTS[_0x908346(0x1b8)],_0x1b32ea[_0x908346(0x1fd)]=_0x50046c,webSocketUtils[_0x908346(0x1aa)](_0x56ebda,_0x1b32ea);continue;case'2':global_registry['hubVersion']=_0x36920b[_0x908346(0x1dd)];continue;case'3':logger[_0x908346(0x23b)](_0x50046c);continue;case'4':global_registry[_0x908346(0x1bd)]=_0x36920b['browserVersion'];continue;case'5':global_registry[_0x908346(0x227)]=_0x558bfd;continue;case'6':_0x50046c='Spawning\x20the\x20grid\x20'+_0x497ea1+_0x908346(0x1f2)+_0x357670+'\x27';continue;case'7':const _0x3bc45={};_0x3bc45[_0x908346(0x2b1)]=WS_EVENTS[_0x908346(0x229)],_0x3bc45[_0x908346(0x1fd)]='CLI\x20run\x20started',webSocketUtils['sendEventToBackend'](_0x56ebda,_0x3bc45);continue;case'8':global_registry[_0x908346(0x1c2)]=_0x357670;continue;}break;}}}const _0x3e43fb=_0x29cf19[_0x908346(0x277)]||{};if(_0x5bea59['iJtqb'](_0x3e43fb[_0x288677],undefined)){logger[_0x908346(0x23b)](_0x5bea59[_0x908346(0x2c5)]);const [_0x25fc2d,_0x5ed4f6]=await _0x5bea59['kEFML'](inputCloudProviderKeys,_0x288677);_0x29cf19[_0x908346(0x277)]={};const _0x3a7c75={};_0x3a7c75[_0x908346(0x2b8)]=_0x25fc2d,_0x3a7c75[_0x908346(0x238)]=_0x5ed4f6,_0x29cf19[_0x908346(0x277)][_0x288677]=_0x3a7c75,fs[_0x908346(0x1e3)](_0x5bea59[_0x908346(0x2af)](getCredentialsPath),JSON[_0x908346(0x24a)](_0x29cf19)),logger[_0x908346(0x1a3)](_0x5bea59[_0x908346(0x1e7)]),global_registry[_0x908346(0x1a8)]=_0x25fc2d,global_registry[_0x908346(0x22e)]=_0x5ed4f6;}else{const _0x7b0f15=_0x5bea59[_0x908346(0x2c1)][_0x908346(0x1e0)]('|');let _0x3d35f0=0x0;while(!![]){switch(_0x7b0f15[_0x3d35f0++]){case'0':global_registry[_0x908346(0x1a8)]=_0x3e43fb[_0x288677][_0x908346(0x2b8)];continue;case'1':const _0x26684a={};_0x26684a[_0x908346(0x2b1)]=WS_EVENTS['LOG'],_0x26684a[_0x908346(0x1fd)]=_0x50046c,webSocketUtils['sendEventToBackend'](_0x56ebda,_0x26684a);continue;case'2':global_registry[_0x908346(0x22e)]=_0x3e43fb[_0x288677][_0x908346(0x238)];continue;case'3':_0x50046c=_0x5bea59[_0x908346(0x24f)];continue;case'4':logger[_0x908346(0x23b)](_0x50046c);continue;}break;}}_0x5bea59[_0x908346(0x1c9)](_0x288677,AWS)&&(logger[_0x908346(0x1a3)](_0x5bea59[_0x908346(0x23d)]),_0x5bea59[_0x908346(0x271)](configureAWSIfNotConfigured));let _0x350680,_0xfeae84;if(_0x5bea59['iJtqb'](_0x22d52a,![])){_0x50046c=_0x908346(0x2c0)+_0x558bfd+').';const _0x16c1e2={};_0x16c1e2['type']=WS_EVENTS[_0x908346(0x1b8)],_0x16c1e2[_0x908346(0x1fd)]=_0x50046c,webSocketUtils[_0x908346(0x1aa)](_0x56ebda,_0x16c1e2),logger[_0x908346(0x23b)](_0x50046c);const _0x413de9=await _0x5bea59[_0x908346(0x1ca)](isClusterPresent,_0x288677,_0x357670);let _0x2beb0f;if(_0x413de9){const _0x4fdc6c={};_0x4fdc6c[_0x908346(0x2b1)]=WS_EVENTS['LOG'],_0x4fdc6c[_0x908346(0x1fd)]=_0x908346(0x222)+_0x357670+_0x908346(0x1ac),webSocketUtils[_0x908346(0x1aa)](_0x56ebda,_0x4fdc6c,_0x5bea59[_0x908346(0x186)]),logger['warn']('Cluster\x20'+_0x357670+_0x908346(0x1ac)),_0x350680=await _0x5bea59[_0x908346(0x267)](getClusterInfo,_0x357670),_0x22d52a=!![];}else{const _0xdd1c35={};_0xdd1c35[_0x908346(0x2b1)]=WS_EVENTS[_0x908346(0x1b8)],_0xdd1c35[_0x908346(0x1fd)]=_0x5bea59[_0x908346(0x18e)],webSocketUtils['sendEventToBackend'](_0x56ebda,_0xdd1c35),logger[_0x908346(0x23b)](_0x5bea59[_0x908346(0x18e)]);const _0x40e091=_0x5bea59[_0x908346(0x1cf)](_0x449ebb,null)&&_0x5bea59[_0x908346(0x1f5)](_0x449ebb,undefined),_0x23a5c3=_0x5bea59[_0x908346(0x1cf)](subnets,null)&&_0x5bea59['TFTyd'](subnets,undefined)&&_0x5bea59[_0x908346(0x1c1)](subnets[_0x908346(0x275)],0x0);let _0x307697;if(_0x40e091){_0x5bea59[_0x908346(0x1c9)](_0x23a5c3,![])&&(_0x50046c=_0x5bea59['CurCW'],await _0x5bea59['wVZpa'](reportToGalactusAndSendToEDS,_0x275ca1,_0x56ebda,_0x50046c,messageTypes[_0x908346(0x1e2)],_0x5bea59['DxTou'],_0x5bea59[_0x908346(0x268)],_0x5bea59[_0x908346(0x1e5)]),logger[_0x908346(0x1c3)](_0x50046c),process[_0x908346(0x23f)](0x1));const _0x15c9e7=await _0x5bea59['FpkzR'](isVPCPresent,_0x449ebb,_0x558bfd);_0x5bea59['nvCyZ'](_0x15c9e7,![])?(_0x50046c=_0x5bea59[_0x908346(0x207)],await _0x5bea59[_0x908346(0x2a0)](reportToGalactusAndSendToEDS,_0x275ca1,_0x56ebda,_0x50046c,messageTypes[_0x908346(0x1e2)],_0x5bea59[_0x908346(0x2c4)],_0x5bea59[_0x908346(0x18a)],_0x5bea59['GIRBG']),logger['error'](_0x50046c),process[_0x908346(0x23f)](0x1)):logger[_0x908346(0x23b)]('Found\x20VPC:\x20'+_0x449ebb+'\x20');const _0x2940d9=await _0x5bea59['Nfxou'](isSubnetsValid,subnets,_0x449ebb,_0x558bfd);_0x5bea59[_0x908346(0x256)](_0x2940d9[0x0],![])?(_0x50046c='Subnets:\x20'+_0x2940d9[0x1]+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x449ebb+_0x908346(0x2a6),await _0x5bea59['wVZpa'](reportToGalactusAndSendToEDS,_0x275ca1,_0x56ebda,_0x50046c,messageTypes['ERROR'],_0x5bea59[_0x908346(0x2c4)],_0x5bea59[_0x908346(0x2a8)],_0x5bea59['GIRBG']),logger[_0x908346(0x1c3)](_0x50046c),process['exit'](0x1)):logger[_0x908346(0x23b)](_0x908346(0x19d)+JSON[_0x908346(0x24a)](subnets)+'\x20');const _0x597d5e=await _0x5bea59[_0x908346(0x18d)](createClusterStack,_0x357670,_0x449ebb,subnets);logger[_0x908346(0x23b)](_0x5bea59['inJPd']),logger['info'](_0x908346(0x22a)+_0x597d5e[_0x908346(0x1c7)][0x0]['Outputs'][0x3][_0x908346(0x1ea)]+'\x20'),logger['info'](_0x908346(0x20c)+_0x597d5e[_0x908346(0x1c7)][0x0][_0x908346(0x182)][0x1][_0x908346(0x1ea)]+'\x20'),logger[_0x908346(0x23b)](_0x908346(0x201)+_0x597d5e[_0x908346(0x1c7)][0x0][_0x908346(0x182)][0x0]['OutputValue'][_0x908346(0x1e0)](',')+'\x20'),logger[_0x908346(0x23b)](_0x908346(0x2a7)+_0x597d5e[_0x908346(0x1c7)][0x0][_0x908346(0x182)][0x4][_0x908346(0x1ea)]+'\x20');}else{const _0x4d065f={};_0x4d065f[_0x908346(0x2b1)]=WS_EVENTS[_0x908346(0x1b8)],_0x4d065f['message']=_0x5bea59[_0x908346(0x1d9)],webSocketUtils['sendEventToBackend'](_0x56ebda,_0x4d065f),logger[_0x908346(0x23b)](_0x5bea59[_0x908346(0x1d9)]),_0x5bea59[_0x908346(0x28a)](sendAWSInfoToHST,_0x56ebda);const _0x34ffae={};_0x34ffae[_0x908346(0x2b1)]=WS_EVENTS[_0x908346(0x1b8)],_0x34ffae['message']=_0x5bea59[_0x908346(0x198)],webSocketUtils['sendEventToBackend'](_0x56ebda,_0x34ffae),logger[_0x908346(0x23b)](_0x5bea59[_0x908346(0x255)]);const _0x37d61f=await _0x5bea59['CfvTv'](createClusterStack,_0x357670),_0x4ca0cf=_0x37d61f[_0x908346(0x1c7)][0x0][_0x908346(0x182)][0x0][_0x908346(0x1ea)][_0x908346(0x1e0)](',');_0x307697=_0x37d61f[_0x908346(0x1c7)][0x0][_0x908346(0x182)][0x1][_0x908346(0x1ea)];const _0x2270b4=_0x37d61f[_0x908346(0x1c7)][0x0]['Outputs'][0x2][_0x908346(0x1ea)],_0x26ba9a=_0x37d61f[_0x908346(0x1c7)][0x0][_0x908346(0x182)][0x3][_0x908346(0x1ea)];_0x2beb0f=_0x37d61f['Stacks'][0x0][_0x908346(0x182)][0x4][_0x908346(0x1ea)];const _0x25f059=_0x37d61f[_0x908346(0x1c7)][0x0][_0x908346(0x182)][0x5][_0x908346(0x1ea)][_0x908346(0x1e0)](','),_0x193018={};_0x193018[_0x908346(0x2b1)]=WS_EVENTS['LOG'],_0x193018['message']='Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20'+_0x26ba9a+',\x20ClusterRole\x20=>\x20'+_0x307697+',\x20VPC\x20=>\x20'+_0x2270b4+_0x908346(0x2ba)+_0x25f059+_0x908346(0x1fa)+_0x4ca0cf+_0x908346(0x25b)+_0x2beb0f+'\x20',webSocketUtils[_0x908346(0x1aa)](_0x56ebda,_0x193018),logger['info'](_0x5bea59[_0x908346(0x280)]),logger[_0x908346(0x23b)](_0x908346(0x22a)+_0x26ba9a+'\x20'),logger[_0x908346(0x23b)]('ClusterRole\x20=>\x20'+_0x307697+'\x20'),logger['info'](_0x908346(0x209)+_0x2270b4+'\x20'),logger[_0x908346(0x23b)](_0x908346(0x1be)+_0x25f059+'\x20'),logger['info'](_0x908346(0x201)+_0x4ca0cf+'\x20'),logger[_0x908346(0x23b)](_0x908346(0x2a7)+_0x2beb0f+'\x20');const _0x59c4c3={};_0x59c4c3['type']=WS_EVENTS[_0x908346(0x1b8)],_0x59c4c3[_0x908346(0x1fd)]='Cluster\x20and\x20node\x20group\x20created\x20successfully',webSocketUtils[_0x908346(0x1aa)](_0x56ebda,_0x59c4c3),logger[_0x908346(0x23b)](_0x5bea59[_0x908346(0x294)]);}}}_0x350680=await _0x5bea59[_0x908346(0x267)](getClusterInfo,_0x357670);const [_0xf36981,_0x56f627,_0x4a6428,_0x4d194c,_0x2c7612]=await _0x5bea59[_0x908346(0x262)](createK8sClient,_0x350680['cluster']['name'],_0x350680[_0x908346(0x293)][_0x908346(0x18f)],_0x350680[_0x908346(0x293)][_0x908346(0x2be)][_0x908346(0x1b5)],global_registry['clusterRegion']);if(_0x5bea59[_0x908346(0x288)](_0x22d52a,![])){const _0x1a7182={};_0x1a7182[_0x908346(0x2b1)]=WS_EVENTS[_0x908346(0x1b8)],_0x1a7182[_0x908346(0x1fd)]=_0x5bea59[_0x908346(0x1c4)],webSocketUtils['sendEventToBackend'](_0x56ebda,_0x1a7182),logger[_0x908346(0x23b)](_0x5bea59[_0x908346(0x1c4)]);try{const _0x65ce3=await _0x5bea59[_0x908346(0x245)](createAutoscalerStack,_0x357670);_0xfeae84=_0x65ce3[_0x908346(0x1c7)][0x0]['Outputs'][0x2][_0x908346(0x1ea)];const _0x115e0c={};_0x115e0c[_0x908346(0x2b1)]=WS_EVENTS[_0x908346(0x1b8)],_0x115e0c['message']=_0x908346(0x242)+_0xfeae84+'\x20',webSocketUtils[_0x908346(0x1aa)](_0x56ebda,_0x115e0c),logger[_0x908346(0x23b)](_0x908346(0x242)+_0xfeae84+'\x20');}catch(_0x2099e1){if(_0x5bea59['mylOA'](_0x2099e1[_0x908346(0x1fd)]['match'](/already exists/),null)||_0x5bea59['AUsfa'](_0x2099e1[_0x908346(0x1fd)]['match'](/already exists/),undefined))_0x50046c=_0x908346(0x1f8)+_0x2099e1[_0x908346(0x1fd)],await _0x5bea59['ysoSR'](reportToGalactusAndSendToEDS,_0x275ca1,_0x56ebda,_0x50046c,messageTypes[_0x908346(0x26b)],_0x5bea59[_0x908346(0x2c4)],_0x5bea59[_0x908346(0x20e)],_0x5bea59['ixAcA']),logger[_0x908346(0x189)](_0x50046c);else{const _0x29a3d9=_0x5bea59['FaqHk'][_0x908346(0x1e0)]('|');let _0x40dc27=0x0;while(!![]){switch(_0x29a3d9[_0x40dc27++]){case'0':logger[_0x908346(0x1c3)](_0x50046c);continue;case'1':await _0x5bea59['kEFML'](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'2':process['exit'](0x1);continue;case'3':await _0x5bea59['pUxqv'](reportToGalactusAndSendToEDS,_0x275ca1,_0x56ebda,_0x50046c,messageTypes[_0x908346(0x1e2)],_0x5bea59[_0x908346(0x2c4)],_0x5bea59[_0x908346(0x266)],_0x5bea59[_0x908346(0x1e5)]);continue;case'4':_0x50046c=_0x908346(0x241)+_0x2099e1['message']+_0x908346(0x261);continue;}break;}}}let _0x2459f2=await _0x5bea59[_0x908346(0x1b3)](getNodeGroupInfo,_0x357670,_0x357670+_0x908346(0x2bc));nodeRole=_0x2459f2['nodegroup'][_0x908346(0x1f0)];const _0x5a20e3=await _0x5bea59[_0x908346(0x282)](createAuthConfigMap,nodeRole);await _0xf36981['createNamespacedConfigMap'](_0x5bea59['uPWxS'],_0x5a20e3)[_0x908346(0x2b7)](_0x207f15=>{const _0x3c0aa2=_0x908346;logger[_0x3c0aa2(0x23b)](_0x5bea59['YAkhP']);});}try{_0x3cf2a6=_0x5bea59['GraFR'](kebabCase,_0x497ea1),logger['info'](_0x5bea59[_0x908346(0x22f)]);const _0x332a82={};_0x332a82[_0x908346(0x2b1)]=WS_EVENTS[_0x908346(0x1b8)],_0x332a82[_0x908346(0x1fd)]=_0x5bea59[_0x908346(0x22f)],webSocketUtils[_0x908346(0x1aa)](_0x56ebda,_0x332a82);if(_0x5bea59[_0x908346(0x1f9)](_0x3cf2a6,_0x5bea59['ZvcMW'])){const _0xc566b8={};_0xc566b8[_0x908346(0x1eb)]=_0x5bea59[_0x908346(0x27b)],_0xc566b8['managedBy']=_0x5bea59['vmmrB'];const _0x46004e={};_0x46004e[_0x908346(0x2b6)]=_0x3cf2a6,_0x46004e[_0x908346(0x236)]=_0xc566b8;const _0xe18173={};_0xe18173[_0x908346(0x298)]=_0x46004e;let _0xc565de=_0xe18173;await _0xf36981[_0x908346(0x1b6)](_0xc565de),logger[_0x908346(0x23b)](_0x5bea59[_0x908346(0x184)]);}const _0x469b26={};_0x469b26[_0x908346(0x2b1)]=WS_EVENTS[_0x908346(0x1b8)],_0x469b26[_0x908346(0x1fd)]=_0x5bea59[_0x908346(0x257)],webSocketUtils[_0x908346(0x1aa)](_0x56ebda,_0x469b26);const _0x57ea75={};_0x57ea75['type']=WS_EVENTS[_0x908346(0x1b8)],_0x57ea75[_0x908346(0x1fd)]=_0x5bea59['LrXbF'],webSocketUtils['sendEventToBackend'](_0x56ebda,_0x57ea75),logger['info'](_0x5bea59[_0x908346(0x1cc)]),await _0x5bea59[_0x908346(0x1ba)](addGridComponents,_0xf36981,_0x56f627,_0x4a6428,_0x4d194c,_0x3cf2a6,_0x357670,_0xfeae84,_0x2c7612),_0x50046c=_0x5bea59['dBDsU'],logger['info'](_0x50046c);const _0x3f1ae2={};_0x3f1ae2[_0x908346(0x2b1)]=WS_EVENTS[_0x908346(0x1b8)],_0x3f1ae2[_0x908346(0x1fd)]=_0x50046c,webSocketUtils[_0x908346(0x1aa)](_0x56ebda,_0x3f1ae2),_0x50046c=_0x5bea59[_0x908346(0x230)],logger[_0x908346(0x23b)](_0x50046c);const _0x13b866={};_0x13b866[_0x908346(0x2b1)]=WS_EVENTS[_0x908346(0x1b8)],_0x13b866[_0x908346(0x1fd)]=_0x50046c,webSocketUtils[_0x908346(0x1aa)](_0x56ebda,_0x13b866),await webSocketUtils['delay'](0x1388);let _0x3e0836;await _0xf36981[_0x908346(0x221)](_0x5bea59['zXOnu'],_0x3cf2a6)[_0x908346(0x1d4)](_0x3fd954=>{const _0x6343a0=_0x908346,_0xd0d284=_0x5bea59['LoJTh'][_0x6343a0(0x1e0)]('|');let _0x3ec1ec=0x0;while(!![]){switch(_0xd0d284[_0x3ec1ec++]){case'0':_0x50046c=_0x6343a0(0x259)+_0x3e0836+'\x20';continue;case'1':logger[_0x6343a0(0x23b)](_0x50046c);continue;case'2':const _0x2beeee={};_0x2beeee['type']=WS_EVENTS[_0x6343a0(0x1b8)],_0x2beeee[_0x6343a0(0x1fd)]=_0x50046c,webSocketUtils['sendEventToBackend'](_0x56ebda,_0x2beeee);continue;case'3':logger['info'](_0x50046c);continue;case'4':const _0x5050fb={};_0x5050fb[_0x6343a0(0x2b1)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x5050fb[_0x6343a0(0x1fd)]=_0x6343a0(0x2c7)+_0x3e0836,webSocketUtils['sendEventToBackend'](_0x56ebda,_0x5050fb);continue;case'5':_0x3e0836=_0x3fd954['body']['status'][_0x6343a0(0x2ab)][_0x6343a0(0x193)][0x0][_0x6343a0(0x29e)];continue;case'6':_0x50046c=_0x6343a0(0x295)+_0x3e0836+_0x6343a0(0x200);continue;case'7':const _0x9905fb={};_0x9905fb[_0x6343a0(0x2b1)]=WS_EVENTS['LOG'],_0x9905fb[_0x6343a0(0x1fd)]=_0x50046c,webSocketUtils['sendEventToBackend'](_0x56ebda,_0x9905fb);continue;}break;}}),await webSocketUtils[_0x908346(0x185)](0x1f4);}catch(_0x1ea72b){if(_0x5bea59[_0x908346(0x256)](_0x22d52a,![]))try{logger[_0x908346(0x23b)](_0x908346(0x1bb)),await _0x5bea59['BxaQH'](removeGridComponents,_0xf36981,_0x56f627,_0x4a6428,_0x4d194c,_0x3cf2a6),await _0x5bea59[_0x908346(0x264)](deleteClusterAndDependencies,global_registry[_0x908346(0x227)]);}catch(_0x55b38d){throw _0x55b38d;}throw _0x1ea72b;}}catch(_0x27ee76){const _0x49acd0=_0x908346(0x1f7)+_0x27ee76+'\x20\x0a'+JSON['stringify'](_0x27ee76)+'\x20';if(_0x56ebda){const _0x397228={};_0x397228['type']=WS_EVENTS['LOG'],_0x397228[_0x908346(0x1fd)]=_0x49acd0,webSocketUtils[_0x908346(0x1aa)](_0x56ebda,_0x397228,_0x5bea59[_0x908346(0x1e5)],!![]);}const _0x84fadf={};_0x84fadf['error']=_0x49acd0,await _0x5bea59[_0x908346(0x21a)](sendInstrumentationEvent,_0x275ca1,_0x5bea59[_0x908346(0x2c4)],messageTypes['ERROR'],_0x5bea59[_0x908346(0x1e9)],_0x84fadf,_0x275ca1),logger[_0x908346(0x1c3)](_0x49acd0);}process[_0x908346(0x23f)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5_0x5b0b80=a5_0x4796;(function(_0x3944d5,_0x22a9c8){const _0x29a6d3=a5_0x4796,_0x11e60a=_0x3944d5();while(!![]){try{const _0x1b74d1=parseInt(_0x29a6d3(0x1c7))/0x1*(parseInt(_0x29a6d3(0x1cc))/0x2)+-parseInt(_0x29a6d3(0x1c4))/0x3+parseInt(_0x29a6d3(0x1d5))/0x4+parseInt(_0x29a6d3(0x1cb))/0x5+-parseInt(_0x29a6d3(0x1ce))/0x6+-parseInt(_0x29a6d3(0x1d3))/0x7+-parseInt(_0x29a6d3(0x1cf))/0x8*(parseInt(_0x29a6d3(0x1c6))/0x9);if(_0x1b74d1===_0x22a9c8)break;else _0x11e60a['push'](_0x11e60a['shift']());}catch(_0x28e63e){_0x11e60a['push'](_0x11e60a['shift']());}}}(a5_0x4e6d,0xdd10d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a5_0x5b0b80(0x1cd));function a5_0x4796(_0x17fcb3,_0x5dcac3){const _0x4e6d82=a5_0x4e6d();return a5_0x4796=function(_0x47961d,_0x22a4b5){_0x47961d=_0x47961d-0x1c3;let _0x24c36f=_0x4e6d82[_0x47961d];return _0x24c36f;},a5_0x4796(_0x17fcb3,_0x5dcac3);}function a5_0x4e6d(){const _0x3d03f5=['68oLMrnm','recommendCommands','delete_commands','help','8539945clNYJH','47602OOsHjQ','../config/constants','3842082HxVkfL','17620552JGHmfh','List\x20Grid\x20resources.','delete','builder','2793882PSzBxs','ntddz','4016248HzXvxU','REFDW','commandDir','handler','demandCommand','strict','548976IBFcKZ','command','9eMOFRZ'];a5_0x4e6d=function(){return _0x3d03f5;};return a5_0x4e6d();}exports[a5_0x5b0b80(0x1c5)]=a5_0x5b0b80(0x1d1),exports['desc']=a5_0x5b0b80(0x1d0),exports[a5_0x5b0b80(0x1d2)]=function(_0x435543){const _0xab0c55=a5_0x5b0b80,_0x51fdc2={};_0x51fdc2[_0xab0c55(0x1d4)]=_0xab0c55(0x1c9),_0x51fdc2[_0xab0c55(0x1d6)]=_0xab0c55(0x1ca);const _0x4c2f14=_0x51fdc2;return _0x435543['usage'](HELP_HEADER_MESSAGE[_0xab0c55(0x1d1)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xab0c55(0x1d7)](_0x4c2f14[_0xab0c55(0x1d4)])[_0xab0c55(0x1d9)]()[_0xab0c55(0x1c8)]()[_0xab0c55(0x1c3)]()[_0xab0c55(0x1ca)](_0x4c2f14[_0xab0c55(0x1d6)]);},exports[a5_0x5b0b80(0x1d8)]=function(_0x3fd15a){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a6_0x4365(){const _0x3c4a0e=['secret','name','description','cluster','rQmgT','uWeiV','oooVw','options','MjNoA','OGXFe','LhClg','PiOrh','statusCode','message','existsSync','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','https://','accessKey','vJpek','epilogue','INFO','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','11847671yedVVk','exIPH','exit','DYuIN','sVBwE','grid-id','Browserstack','516775ZYAsgP','debug','argv','eITQP','774OGEleY','yPpNf','gridId','JSzvF','tags','klXaZ','url','../../utils/userInput','uNYNQ','Wkgtd','../../utils/AWSUtils','desc','XfVlX','XyobW','Delete\x20an\x20Automation\x20grid.','cloudProviderAccessKey','requestId','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','XsUlO','../../utils/gridComponents','10khZrXU','kgsrx','browserstack:managedBy','LuRER','cloudProvider','LKTBn','6464yEkKIG','promisify','cloudProviderSecretKey','Cluster:\x20','Mdciq','init-not-called','info','fvvxf','builder','\x22\x20with\x20ID\x20','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','eWWTx','mKAZk','ZulmA','warn','uuid','kexZJ','mAzth','3954150CBwckg','region','QFonV','iVmzg','54018lRKurv','../../config/constants','clusterSpawnedVia','type','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','help','mAdNR','Pass\x20the\x20ID\x20of\x20the\x20Grid','error','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','hNzBh','ORbzL','invalid-grid-id','LUKRo','clusterName','invalid-input','writeFileSync','../../utils/instrumentationUtils','420270IvOpYT','Succesfully\x20deleted\x20the\x20grid','ERROR','vuMNX','delete-grid-called','6uDNdGc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ssSxZ','zYcAy','unknown-error','auth','request','GRInZ','DpyyP','UbiQw','command','body','OuOzb','KNjyC','handler','327213RbGomd','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','endpoint','../../config/logger','NoFng','../../utils/createk8sClient','RzWXq','VRpOX','username','password','JsWnK','oeIhA','Vcyib','BrowserStack','512XEHFuE','clusterId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','\x22\x20and\x20ID\x20','toLowerCase','string','usage','spkrz','server-error','unauthorised','zHyPX','../../utils/utilityMethods','clusterRegion','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','vWujX','lIyMW','DELETE'];a6_0x4365=function(){return _0x3c4a0e;};return a6_0x4365();}function a6_0x692a(_0x9d2552,_0x4bb8ef){const _0x4365c3=a6_0x4365();return a6_0x692a=function(_0x692ad7,_0x46f21f){_0x692ad7=_0x692ad7-0x1d3;let _0x5f2359=_0x4365c3[_0x692ad7];return _0x5f2359;},a6_0x692a(_0x9d2552,_0x4bb8ef);}const a6_0x2eb952=a6_0x692a;(function(_0x2c46fa,_0xaeccdc){const _0x3cc129=a6_0x692a,_0x568cfc=_0x2c46fa();while(!![]){try{const _0x10f02c=parseInt(_0x3cc129(0x238))/0x1+parseInt(_0x3cc129(0x224))/0x2+-parseInt(_0x3cc129(0x1e1))/0x3*(parseInt(_0x3cc129(0x1fc))/0x4)+-parseInt(_0x3cc129(0x20e))/0x5+parseInt(_0x3cc129(0x229))/0x6*(-parseInt(_0x3cc129(0x1dd))/0x7)+parseInt(_0x3cc129(0x246))/0x8*(parseInt(_0x3cc129(0x212))/0x9)+-parseInt(_0x3cc129(0x1f6))/0xa*(-parseInt(_0x3cc129(0x1d6))/0xb);if(_0x10f02c===_0xaeccdc)break;else _0x568cfc['push'](_0x568cfc['shift']());}catch(_0x4ec587){_0x568cfc['push'](_0x568cfc['shift']());}}}(a6_0x4365,0xaf09a));const fs=require('fs'),util=require('util'),request=require(a6_0x2eb952(0x22f)),{v4:uuidv4}=require(a6_0x2eb952(0x20b)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL}=require(a6_0x2eb952(0x213)),{logger}=require(a6_0x2eb952(0x23b)),{getClusterInfo,configureAWSIfNotConfigured}=require(a6_0x2eb952(0x1eb)),{removeGridComponents,deleteClusterAndDependencies}=require(a6_0x2eb952(0x1f5)),{sendInstrumentationEvent}=require(a6_0x2eb952(0x223)),{inputConfirmation,closeInput,inputCloudProviderKeys}=require(a6_0x2eb952(0x1e8)),{createK8sClient}=require(a6_0x2eb952(0x23d)),{kebabCase,getCredentialsPath,getGridDetails}=require(a6_0x2eb952(0x251)),promisifiedRequest=util[a6_0x2eb952(0x1fd)](request);exports[a6_0x2eb952(0x233)]='grid',exports[a6_0x2eb952(0x1ec)]=a6_0x2eb952(0x1ef),exports[a6_0x2eb952(0x204)]=function(_0x5e1eeb){const _0x3287c1=a6_0x2eb952,_0x252c0f={};_0x252c0f[_0x3287c1(0x21f)]=_0x3287c1(0x219),_0x252c0f[_0x3287c1(0x250)]='string',_0x252c0f[_0x3287c1(0x21c)]='help';const _0x39a732=_0x252c0f,_0x1f9119={};_0x1f9119[_0x3287c1(0x259)]=_0x39a732[_0x3287c1(0x21f)],_0x1f9119[_0x3287c1(0x215)]=_0x39a732[_0x3287c1(0x250)];const _0xbf302f={};return _0xbf302f[_0x3287c1(0x1db)]=_0x1f9119,_0x5e1eeb[_0x3287c1(0x24c)](HELP_HEADER_MESSAGE['delete'])[_0x3287c1(0x1d3)](HELP_FOOTER_MESSAGE)[_0x3287c1(0x25e)](_0xbf302f)[_0x3287c1(0x217)](_0x39a732['hNzBh'])[_0x3287c1(0x1df)];},exports[a6_0x2eb952(0x237)]=async function(_0x4ea809){const _0x279aa1=a6_0x2eb952,_0x14a85f={'zxonT':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','exIPH':'Pass\x20the\x20ID\x20of\x20the\x20Grid','OGXFe':_0x279aa1(0x24b),'dQqGK':'help','mAzth':_0x279aa1(0x206),'NoFng':function(_0x57f777){return _0x57f777();},'vuMNX':function(_0x21b3c2){return _0x21b3c2();},'DpyyP':function(_0x78dae2,_0x5098e8){return _0x78dae2!==_0x5098e8;},'OuOzb':_0x279aa1(0x23f),'PiOrh':_0x279aa1(0x21d),'ieqvf':_0x279aa1(0x248),'kgsrx':function(_0xd821aa,_0x5945df,_0x2ef62e,_0x38969a,_0x3c42b9,_0x4ab6a4,_0x274c34){return _0xd821aa(_0x5945df,_0x2ef62e,_0x38969a,_0x3c42b9,_0x4ab6a4,_0x274c34);},'eITQP':_0x279aa1(0x228),'fvvxf':_0x279aa1(0x201),'QFonV':function(_0x5b23f4,_0x4191c9){return _0x5b23f4===_0x4191c9;},'eWWTx':_0x279aa1(0x200),'MjNoA':function(_0x2c4291,_0x51248d,_0xf758ef,_0x466cdf){return _0x2c4291(_0x51248d,_0xf758ef,_0x466cdf);},'RzWXq':function(_0xf7dfc8,_0xd481b6){return _0xf7dfc8===_0xd481b6;},'LhClg':_0x279aa1(0x1dc),'vWujX':_0x279aa1(0x230),'uNYNQ':function(_0x285651,_0x3a9406){return _0x285651(_0x3a9406);},'iVmzg':function(_0x447813,_0x437cda){return _0x447813===_0x437cda;},'Wkgtd':_0x279aa1(0x1e2),'DYuIN':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','UbiQw':function(_0x214d80,_0x345517,_0x48fda7,_0x4e746d,_0x5b0089,_0x1b0c60,_0x2b6595){return _0x214d80(_0x345517,_0x48fda7,_0x4e746d,_0x5b0089,_0x1b0c60,_0x2b6595);},'XyobW':_0x279aa1(0x221),'jRWcI':function(_0x4e1673,_0x33354d){return _0x4e1673===_0x33354d;},'oeIhA':_0x279aa1(0x208),'LuRER':_0x279aa1(0x255),'spkrz':_0x279aa1(0x21b),'zYcAy':function(_0x25f16f){return _0x25f16f();},'mAdNR':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','ZulmA':_0x279aa1(0x1f4),'XfVlX':function(_0x4b5465){return _0x4b5465();},'JSzvF':function(_0x526775,_0x111907){return _0x526775(_0x111907);},'uWeiV':function(_0x144612,_0x32dfea,_0x57360d,_0x30e46e,_0x31845a){return _0x144612(_0x32dfea,_0x57360d,_0x30e46e,_0x31845a);},'JsWnK':function(_0x336613,_0x38a8b6,_0x550fc7,_0x217495,_0x5799f8,_0x29056f){return _0x336613(_0x38a8b6,_0x550fc7,_0x217495,_0x5799f8,_0x29056f);},'sVBwE':_0x279aa1(0x22b),'LKTBn':_0x279aa1(0x1f8),'KNjyC':_0x279aa1(0x245),'kexZJ':function(_0x667f0a,_0x1df079){return _0x667f0a(_0x1df079);},'oooVw':_0x279aa1(0x256),'MiHAW':function(_0xb123b,_0x1f9fb8){return _0xb123b!==_0x1f9fb8;},'Vcyib':_0x279aa1(0x24e),'rQmgT':_0x279aa1(0x24f),'klXaZ':function(_0x38b20e,_0x573e3d){return _0x38b20e===_0x573e3d;},'eEnBS':_0x279aa1(0x21e),'vJpek':function(_0x41d1b8,_0x2a15dd,_0x55bf54,_0xcdeb55,_0x183997,_0xdcf886,_0x256f34){return _0x41d1b8(_0x2a15dd,_0x55bf54,_0xcdeb55,_0x183997,_0xdcf886,_0x256f34);},'kGujd':_0x279aa1(0x22d)};try{global_registry[_0x279aa1(0x1f1)]=_0x14a85f[_0x279aa1(0x23c)](uuidv4);!fs[_0x279aa1(0x265)](_0x14a85f[_0x279aa1(0x227)](getCredentialsPath))&&(_0x14a85f[_0x279aa1(0x231)](_0x14a85f[_0x279aa1(0x235)],_0x14a85f[_0x279aa1(0x262)])?(console[_0x279aa1(0x21a)](_0x14a85f['ieqvf']),await _0x14a85f[_0x279aa1(0x1f7)](sendInstrumentationEvent,_0x4ea809,_0x14a85f[_0x279aa1(0x1e0)],messageTypes[_0x279aa1(0x226)],_0x14a85f[_0x279aa1(0x203)],null,_0x4ea809),process[_0x279aa1(0x1d8)](0x1)):(_0x3bffb5[_0x279aa1(0x21a)](_0x14a85f['zxonT']),_0x1789ca[_0x279aa1(0x1d8)](0x1)));_0x14a85f['kgsrx'](sendInstrumentationEvent,_0x4ea809,_0x14a85f['eITQP'],messageTypes[_0x279aa1(0x1d4)],null,null,_0x4ea809);!_0x4ea809[_0x279aa1(0x1e3)]&&(_0x14a85f[_0x279aa1(0x210)](_0x14a85f[_0x279aa1(0x207)],_0x14a85f[_0x279aa1(0x207)])?(console[_0x279aa1(0x21a)](_0x14a85f['zxonT']),process[_0x279aa1(0x1d8)](0x1)):(_0x150a6a['info'](_0x279aa1(0x225)),_0x2a379f['exit'](0x0)));const _0x32834f=JSON['parse'](fs['readFileSync'](_0x14a85f[_0x279aa1(0x23c)](getCredentialsPath))),_0x21422e=await _0x14a85f[_0x279aa1(0x25f)](getGridDetails,_0x32834f['Browserstack']['username'],_0x32834f['Browserstack'][_0x279aa1(0x241)],_0x4ea809[_0x279aa1(0x1e3)]);if(_0x21422e){const _0x1358a3=_0x21422e['info'];let _0x54e420=_0x279aa1(0x1d5)+_0x1358a3['name']+'\x22\x20and\x20ID\x20'+_0x1358a3['id']+_0x279aa1(0x266),_0x49fe79;if(_0x21422e['onlyGridInCluster']&&_0x14a85f[_0x279aa1(0x23e)](_0x21422e[_0x279aa1(0x214)],_0x14a85f[_0x279aa1(0x261)])){if(_0x14a85f[_0x279aa1(0x231)](_0x14a85f[_0x279aa1(0x254)],_0x14a85f[_0x279aa1(0x254)])){const _0x258e6c={};_0x258e6c[_0x279aa1(0x259)]=_0x14a85f[_0x279aa1(0x1d7)],_0x258e6c[_0x279aa1(0x215)]=_0x14a85f[_0x279aa1(0x260)];const _0x4304f0={};return _0x4304f0[_0x279aa1(0x1db)]=_0x258e6c,_0x4b7d15[_0x279aa1(0x24c)](_0x283b76['delete'])[_0x279aa1(0x1d3)](_0x5595fd)['options'](_0x4304f0)[_0x279aa1(0x217)](_0x14a85f['dQqGK'])[_0x279aa1(0x1df)];}else _0x54e420='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x1358a3[_0x279aa1(0x258)]+_0x279aa1(0x249)+_0x1358a3['id']+_0x279aa1(0x216)+_0x1358a3[_0x279aa1(0x220)]+_0x279aa1(0x205)+_0x1358a3[_0x279aa1(0x247)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';}_0x49fe79=await _0x14a85f[_0x279aa1(0x1e9)](inputConfirmation,_0x54e420);(_0x14a85f['RzWXq'](_0x49fe79,undefined)||_0x14a85f['QFonV'](_0x49fe79,null)||!(_0x14a85f[_0x279aa1(0x23e)](_0x49fe79['toLowerCase'](),'y')||_0x14a85f['iVmzg'](_0x49fe79[_0x279aa1(0x24a)](),'n')))&&(_0x14a85f[_0x279aa1(0x23e)](_0x14a85f[_0x279aa1(0x1ea)],_0x14a85f['Wkgtd'])?(console[_0x279aa1(0x21a)](_0x14a85f[_0x279aa1(0x1d9)]),await _0x14a85f[_0x279aa1(0x232)](sendInstrumentationEvent,_0x4ea809,_0x14a85f[_0x279aa1(0x1e0)],messageTypes['ERROR'],_0x14a85f[_0x279aa1(0x1ee)],null,_0x4ea809),process[_0x279aa1(0x1d8)](0x1)):_0x47f5c8[_0x279aa1(0x1d8)](0x0));_0x14a85f[_0x279aa1(0x210)](_0x49fe79['toLowerCase'](),'n')&&(_0x14a85f['jRWcI'](_0x14a85f[_0x279aa1(0x243)],_0x14a85f['oeIhA'])?process[_0x279aa1(0x1d8)](0x0):(_0x5771e5['info'](_0x14a85f[_0x279aa1(0x20d)]),_0x4900fd['cloudProviderAccessKey']=_0x582b05[_0x282934][_0x279aa1(0x268)],_0x35f0e4[_0x279aa1(0x1fe)]=_0x2c00f5[_0x541f80]['secret']));_0x14a85f[_0x279aa1(0x227)](closeInput),global_registry[_0x279aa1(0x252)]=_0x1358a3[_0x279aa1(0x20f)];const _0x515653=_0x1358a3[_0x279aa1(0x1fa)],_0x49152e=_0x32834f['cloudProvider']||{};if(_0x14a85f[_0x279aa1(0x211)](_0x49152e[_0x515653],undefined)){if(_0x14a85f[_0x279aa1(0x231)](_0x14a85f[_0x279aa1(0x1f9)],_0x14a85f['LuRER']))_0x5867e9=_0x279aa1(0x1d5)+_0x62d632[_0x279aa1(0x258)]+_0x279aa1(0x249)+_0xbd817a['id']+_0x279aa1(0x216)+_0x2179cb[_0x279aa1(0x220)]+_0x279aa1(0x205)+_0x5c22eb[_0x279aa1(0x247)]+_0x279aa1(0x266);else{logger[_0x279aa1(0x202)](_0x14a85f[_0x279aa1(0x24d)]);const [_0x2c9899,_0x3cb63e]=await _0x14a85f[_0x279aa1(0x1e9)](inputCloudProviderKeys,_0x515653);_0x32834f[_0x279aa1(0x1fa)]={};const _0x5ec750={};_0x5ec750['accessKey']=_0x2c9899,_0x5ec750[_0x279aa1(0x257)]=_0x3cb63e,_0x32834f[_0x279aa1(0x1fa)][_0x515653]=_0x5ec750,fs[_0x279aa1(0x222)](_0x14a85f[_0x279aa1(0x22c)](getCredentialsPath),JSON[_0x279aa1(0x1f2)](_0x32834f)),logger[_0x279aa1(0x1de)](_0x14a85f[_0x279aa1(0x218)]),global_registry[_0x279aa1(0x1f0)]=_0x2c9899,global_registry[_0x279aa1(0x1fe)]=_0x3cb63e;}}else _0x14a85f[_0x279aa1(0x23e)](_0x14a85f[_0x279aa1(0x209)],_0x14a85f[_0x279aa1(0x209)])?(logger[_0x279aa1(0x202)](_0x14a85f['mAzth']),global_registry[_0x279aa1(0x1f0)]=_0x49152e[_0x515653]['accessKey'],global_registry[_0x279aa1(0x1fe)]=_0x49152e[_0x515653]['secret']):_0x59c64c[_0x279aa1(0x20a)](_0x279aa1(0x1ff)+_0xabdd7[_0x279aa1(0x220)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');_0x14a85f[_0x279aa1(0x1ed)](configureAWSIfNotConfigured);const _0xd25b7b=_0x14a85f[_0x279aa1(0x1e9)](kebabCase,_0x1358a3[_0x279aa1(0x258)]),_0x37578c=await _0x14a85f[_0x279aa1(0x1e4)](getClusterInfo,_0x1358a3[_0x279aa1(0x220)]),[_0x2845ce,_0x16eebd,_0x5bff13,_0x1b75ed,_0x4c6a52]=await _0x14a85f[_0x279aa1(0x25c)](createK8sClient,_0x37578c[_0x279aa1(0x25a)][_0x279aa1(0x258)],_0x37578c[_0x279aa1(0x25a)][_0x279aa1(0x23a)],_0x37578c[_0x279aa1(0x25a)]['certificateAuthority']['data'],_0x1358a3[_0x279aa1(0x20f)]);await _0x14a85f[_0x279aa1(0x242)](removeGridComponents,_0x2845ce,_0x16eebd,_0x5bff13,_0x1b75ed,_0xd25b7b);let _0x324fb4;_0x37578c[_0x279aa1(0x25a)]&&(_0x14a85f[_0x279aa1(0x211)](_0x14a85f[_0x279aa1(0x1da)],_0x14a85f[_0x279aa1(0x1da)])?_0x324fb4=_0x37578c['cluster'][_0x279aa1(0x1e5)]:_0x486455=_0x40184e[_0x279aa1(0x25a)]['tags']);_0x21422e['onlyGridInCluster']&&(_0x324fb4&&_0x14a85f[_0x279aa1(0x210)](_0x324fb4[_0x14a85f[_0x279aa1(0x1fb)]],_0x14a85f[_0x279aa1(0x236)])?await _0x14a85f[_0x279aa1(0x20c)](deleteClusterAndDependencies,_0x1358a3['region']):logger['warn'](_0x279aa1(0x1ff)+_0x1358a3[_0x279aa1(0x220)]+_0x279aa1(0x239)));const _0x23edd9=_0x279aa1(0x267)+AG_API_URL+'/packages/cli/grid/'+_0x4ea809[_0x279aa1(0x1e3)],_0xcdd6ca={};_0xcdd6ca['username']=_0x32834f[_0x279aa1(0x1dc)][_0x279aa1(0x240)],_0xcdd6ca[_0x279aa1(0x241)]=_0x32834f['Browserstack'][_0x279aa1(0x241)];const _0x42d96b={};_0x42d96b[_0x279aa1(0x1e7)]=_0x23edd9,_0x42d96b['method']=_0x14a85f[_0x279aa1(0x25d)],_0x42d96b[_0x279aa1(0x22e)]=_0xcdd6ca;const _0x49c337=_0x42d96b,_0x2d91c6=await _0x14a85f[_0x279aa1(0x20c)](promisifiedRequest,_0x49c337);_0x14a85f['MiHAW'](_0x2d91c6,null)&&_0x14a85f[_0x279aa1(0x231)](_0x2d91c6,undefined)&&_0x14a85f[_0x279aa1(0x23e)](_0x2d91c6[_0x279aa1(0x263)],0xc8)&&(logger['info'](_0x279aa1(0x225)),process['exit'](0x0)),logger[_0x279aa1(0x21a)](_0x279aa1(0x253)+JSON[_0x279aa1(0x1f2)](_0x2d91c6)),await _0x14a85f[_0x279aa1(0x1f7)](sendInstrumentationEvent,_0x4ea809,_0x14a85f[_0x279aa1(0x1e0)],messageTypes[_0x279aa1(0x226)],_0x14a85f[_0x279aa1(0x244)],res,_0x4ea809),process[_0x279aa1(0x1d8)](0x1);}_0x14a85f['jRWcI'](res[_0x279aa1(0x263)],0x191)&&(logger[_0x279aa1(0x21a)](_0x279aa1(0x22a)),await _0x14a85f[_0x279aa1(0x1f7)](sendInstrumentationEvent,_0x4ea809,_0x14a85f[_0x279aa1(0x1e0)],messageTypes[_0x279aa1(0x226)],_0x14a85f[_0x279aa1(0x25b)],null,_0x4ea809),process[_0x279aa1(0x1d8)](0x1)),_0x14a85f[_0x279aa1(0x1e6)](res[_0x279aa1(0x263)],0x190)&&(logger[_0x279aa1(0x21a)](JSON['parse'](res[_0x279aa1(0x234)])[_0x279aa1(0x264)]),await _0x14a85f[_0x279aa1(0x232)](sendInstrumentationEvent,_0x4ea809,_0x14a85f[_0x279aa1(0x1e0)],messageTypes[_0x279aa1(0x226)],_0x14a85f['eEnBS'],null,_0x4ea809),process[_0x279aa1(0x1d8)](0x1)),logger[_0x279aa1(0x21a)](_0x279aa1(0x1f3)+JSON[_0x279aa1(0x1f2)](res)),await _0x14a85f[_0x279aa1(0x269)](sendInstrumentationEvent,_0x4ea809,_0x14a85f[_0x279aa1(0x1e0)],messageTypes[_0x279aa1(0x226)],_0x14a85f[_0x279aa1(0x244)],res,_0x4ea809),process[_0x279aa1(0x1d8)](0x1);}catch(_0x34981d){logger[_0x279aa1(0x21a)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x34981d['stack']),await _0x14a85f[_0x279aa1(0x269)](sendInstrumentationEvent,_0x4ea809,_0x14a85f[_0x279aa1(0x1e0)],messageTypes[_0x279aa1(0x226)],_0x14a85f['kGujd'],_0x34981d,_0x4ea809),process[_0x279aa1(0x1d8)](0x1);}};
|
|
1
|
+
const a6_0x10b079=a6_0x360f;(function(_0x1c6795,_0x320fb4){const _0x3f2a9f=a6_0x360f,_0x1052d4=_0x1c6795();while(!![]){try{const _0x275171=parseInt(_0x3f2a9f(0x111))/0x1*(parseInt(_0x3f2a9f(0xc5))/0x2)+parseInt(_0x3f2a9f(0xff))/0x3+-parseInt(_0x3f2a9f(0x143))/0x4+parseInt(_0x3f2a9f(0xbe))/0x5*(parseInt(_0x3f2a9f(0xbd))/0x6)+parseInt(_0x3f2a9f(0xe5))/0x7+-parseInt(_0x3f2a9f(0xdc))/0x8+parseInt(_0x3f2a9f(0xfa))/0x9*(-parseInt(_0x3f2a9f(0x105))/0xa);if(_0x275171===_0x320fb4)break;else _0x1052d4['push'](_0x1052d4['shift']());}catch(_0x48b879){_0x1052d4['push'](_0x1052d4['shift']());}}}(a6_0xcb2f,0x564da));function a6_0xcb2f(){const _0x5f565e=['.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','dzBwe','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','rwwyF','oGRBN','stringify','stack','BbdIL','cluster','unknown-error','existsSync','message','argv','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','rncyx','GYAJR','lbruo','PHpJC','name','body','cloudProviderSecretKey','AfIRW','TSfZw','ofTJH','help','OGrRZ','delete','usage','server-error','TpBcf','bdovB','BALks','accessKey','OvgYc','pFXYe','cloudProviderAccessKey','BrowserStack','../../config/constants','epilogue','toLowerCase','uRbxT','error','request','invalid-grid-id','cloudProvider','FsHWW','sFyMM','dCqFE','1900992ZPzbFH','secret','password','delete-grid-called','command','debug','unauthorised','Failed\x20to\x20delete\x20resources!\x20Error:\x20','KrmJl','Jirzc','BGQMb','uuid','Browserstack','Succesfully\x20deleted\x20the\x20grid','string','\x22\x20with\x20ID\x20','Cluster:\x20','../../utils/createk8sClient','init-not-called','BwdXs','/packages/cli/grid/','../../utils/instrumentationUtils','CFbAS','builder','kPIZw','4188kkVmgr','3420PdHHnE','hZiaP','endpoint','WgPio','dfPrl','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Mbxco','8512yyrumf','browserstack:managedBy','PzYaP','gridId','clusterName','../../utils/utilityMethods','aDbQd','ERROR','CuvAT','info','xCrpj','../../utils/userInput','hYmFK','SMVQg','wtjEe','exit','region','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','description','grid-id','atimF','HzyJN','BvDuy','5310960uMmxhc','requestId','McLXd','warn','fUUKC','RijGg','Pass\x20the\x20ID\x20of\x20the\x20Grid','Delete\x20an\x20Automation\x20grid.','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','4665591novQSX','tags','EFJKs','URQwu','clusterRegion','RVTkE','util','writeFileSync','certificateAuthority','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','url','TxbAj','../../utils/gridComponents','NaZtH','DELETE','fnevZ','invalid-input','aOorT','nFOBX','NoOtX','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','9lCPbGZ','https://','RfyXw','promisify','type','2071692YeGQvs','MPxDR','nvrBc','options','parse','xHgFf','6227890ymqJhZ','CIEfQ','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','onlyGridInCluster','fwNuD','jnwYI','\x22\x20and\x20ID\x20','clusterId','handler','../../utils/AWSUtils','statusCode','vpJzd','66msOtWq','username'];a6_0xcb2f=function(){return _0x5f565e;};return a6_0xcb2f();}const fs=require('fs'),util=require(a6_0x10b079(0xeb)),request=require(a6_0x10b079(0x13d)),{v4:uuidv4}=require(a6_0x10b079(0xaf)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL}=require(a6_0x10b079(0x138)),{logger}=require('../../config/logger'),{getClusterInfo,configureAWSIfNotConfigured}=require(a6_0x10b079(0x10e)),{removeGridComponents,deleteClusterAndDependencies}=require(a6_0x10b079(0xf1)),{sendInstrumentationEvent}=require(a6_0x10b079(0xb9)),{inputConfirmation,closeInput,inputCloudProviderKeys}=require(a6_0x10b079(0xd0)),{createK8sClient}=require(a6_0x10b079(0xb5)),{kebabCase,getCredentialsPath,getGridDetails}=require(a6_0x10b079(0xca)),promisifiedRequest=util[a6_0x10b079(0xfd)](request);function a6_0x360f(_0xdf1c4f,_0x17e4f1){const _0xcb2fa2=a6_0xcb2f();return a6_0x360f=function(_0x360fa8,_0x18c2b0){_0x360fa8=_0x360fa8-0xab;let _0x1390c3=_0xcb2fa2[_0x360fa8];return _0x1390c3;},a6_0x360f(_0xdf1c4f,_0x17e4f1);}exports[a6_0x10b079(0x147)]='grid',exports['desc']=a6_0x10b079(0xe3),exports[a6_0x10b079(0xbb)]=function(_0x1fb33f){const _0x2cf079=a6_0x10b079,_0x68c8cc={};_0x68c8cc[_0x2cf079(0xc2)]=_0x2cf079(0xe2),_0x68c8cc[_0x2cf079(0xea)]=_0x2cf079(0xb2),_0x68c8cc[_0x2cf079(0x104)]='help';const _0x418a56=_0x68c8cc,_0x2b9c17={};_0x2b9c17[_0x2cf079(0xd7)]=_0x418a56[_0x2cf079(0xc2)],_0x2b9c17[_0x2cf079(0xfe)]=_0x418a56[_0x2cf079(0xea)];const _0x2dd7d7={};return _0x2dd7d7[_0x2cf079(0xd8)]=_0x2b9c17,_0x1fb33f['usage'](HELP_HEADER_MESSAGE[_0x2cf079(0x12d)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2cf079(0x102)](_0x2dd7d7)['help'](_0x418a56[_0x2cf079(0x104)])[_0x2cf079(0x11f)];},exports[a6_0x10b079(0x10d)]=async function(_0x43aec3){const _0x32444b=a6_0x10b079,_0x5a1678={'OvgYc':_0x32444b(0xee),'jnwYI':_0x32444b(0xf9),'bdovB':'Pass\x20the\x20ID\x20of\x20the\x20Grid','BALks':_0x32444b(0xb2),'GEtLc':_0x32444b(0x12b),'BvDuy':function(_0x3c07bf){return _0x3c07bf();},'hYmFK':function(_0x1fa05c,_0x14e3b0){return _0x1fa05c!==_0x14e3b0;},'rncyx':_0x32444b(0xc7),'RijGg':_0x32444b(0x13b),'WgPio':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fUUKC':function(_0x195158,_0x2c2e09,_0x9555fb,_0x33e0ef,_0x1c8094,_0x177920,_0x8789f3){return _0x195158(_0x2c2e09,_0x9555fb,_0x33e0ef,_0x1c8094,_0x177920,_0x8789f3);},'KrmJl':_0x32444b(0x146),'NoOtX':_0x32444b(0xb6),'McLXd':function(_0x214584,_0x3fc85f,_0x538d2e,_0x54b6f7,_0x19f7e1,_0xfc9ed0,_0x34a89a){return _0x214584(_0x3fc85f,_0x538d2e,_0x54b6f7,_0x19f7e1,_0xfc9ed0,_0x34a89a);},'TxbAj':function(_0x148c5e,_0x33d6c0){return _0x148c5e===_0x33d6c0;},'CuvAT':'snDgJ','ofTJH':function(_0x21776b){return _0x21776b();},'AfIRW':function(_0x24b796,_0x23ef27,_0x826c7,_0x278ff9){return _0x24b796(_0x23ef27,_0x826c7,_0x278ff9);},'BGQMb':_0x32444b(0xb0),'UreUw':function(_0x3bf29c,_0x5c40d7){return _0x3bf29c!==_0x5c40d7;},'rwwyF':_0x32444b(0xbf),'oGRBN':function(_0x1b8982,_0xdf8a83){return _0x1b8982(_0xdf8a83);},'PHpJC':function(_0x15324f,_0x267afe){return _0x15324f===_0x267afe;},'ENifW':function(_0x5f2eca,_0x391a1b){return _0x5f2eca===_0x391a1b;},'aOorT':function(_0x3d48af,_0x566eb2){return _0x3d48af===_0x566eb2;},'CFbAS':function(_0x1c043f,_0x1ebb03){return _0x1c043f===_0x1ebb03;},'lbruo':_0x32444b(0xd9),'BwdXs':_0x32444b(0x11a),'sFyMM':_0x32444b(0x120),'wyuvR':_0x32444b(0xf5),'MPxDR':function(_0x402248,_0x458bc5){return _0x402248===_0x458bc5;},'URQwu':function(_0xf49eea,_0x5e6081){return _0xf49eea===_0x5e6081;},'fnevZ':_0x32444b(0x140),'wtjEe':_0x32444b(0x106),'NaZtH':function(_0x685480,_0x2434c0){return _0x685480===_0x2434c0;},'EFJKs':'abugM','fwNuD':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','SMVQg':function(_0x4e1238,_0x58ada3){return _0x4e1238(_0x58ada3);},'aahaE':function(_0x5d996d){return _0x5d996d();},'HzyJN':_0x32444b(0x115),'ZxTKO':function(_0x292a49,_0x5556e1){return _0x292a49!==_0x5556e1;},'daQGV':_0x32444b(0x122),'aSDRc':_0x32444b(0x110),'dCqFE':function(_0xe8c781,_0x457a34){return _0xe8c781(_0x457a34);},'LIuer':function(_0x2d8c77,_0x2db7e3,_0x558d93,_0x7ceb9a,_0x1394b8){return _0x2d8c77(_0x2db7e3,_0x558d93,_0x7ceb9a,_0x1394b8);},'RfyXw':function(_0x20c943,_0x1ba523,_0x5cadf2,_0x14ae2e,_0xa7f5db,_0x2287ef){return _0x20c943(_0x1ba523,_0x5cadf2,_0x14ae2e,_0xa7f5db,_0x2287ef);},'Jirzc':_0x32444b(0x114),'hzDOM':_0x32444b(0xc6),'yndZs':_0x32444b(0x137),'aDbQd':_0x32444b(0xf3),'kPIZw':function(_0xbc64ec,_0x7ec622){return _0xbc64ec!==_0x7ec622;},'nvrBc':function(_0x5ca949,_0x3af6b4){return _0x5ca949!==_0x3af6b4;},'TpBcf':function(_0x11e4e1,_0x29806b){return _0x11e4e1===_0x29806b;},'OGrRZ':function(_0x466d5c,_0xd4ba8f,_0x2d36c1,_0x16e358,_0x3df9ee,_0x10935d,_0x284348){return _0x466d5c(_0xd4ba8f,_0x2d36c1,_0x16e358,_0x3df9ee,_0x10935d,_0x284348);},'Mbxco':_0x32444b(0x12f),'MhrZy':function(_0x4e0f1a,_0x333b05,_0x397cb4,_0x575e6b,_0x9988f8,_0xbff98c,_0x141f23){return _0x4e0f1a(_0x333b05,_0x397cb4,_0x575e6b,_0x9988f8,_0xbff98c,_0x141f23);},'pFXYe':_0x32444b(0x149),'xCrpj':_0x32444b(0x13e),'TSfZw':function(_0x201776,_0x5aeab2,_0x187b70,_0x4bc2f7,_0x225eef,_0x33564d,_0x312351){return _0x201776(_0x5aeab2,_0x187b70,_0x4bc2f7,_0x225eef,_0x33564d,_0x312351);},'nFOBX':_0x32444b(0x11c)};try{global_registry[_0x32444b(0xdd)]=_0x5a1678['BvDuy'](uuidv4);!fs[_0x32444b(0x11d)](_0x5a1678[_0x32444b(0xdb)](getCredentialsPath))&&(_0x5a1678[_0x32444b(0xd1)](_0x5a1678[_0x32444b(0x121)],_0x5a1678[_0x32444b(0xe1)])?(console[_0x32444b(0x13c)](_0x5a1678[_0x32444b(0xc1)]),await _0x5a1678[_0x32444b(0xe0)](sendInstrumentationEvent,_0x43aec3,_0x5a1678[_0x32444b(0xac)],messageTypes['ERROR'],_0x5a1678[_0x32444b(0xf8)],null,_0x43aec3),process[_0x32444b(0xd4)](0x1)):(_0x4b00ed[_0x32444b(0x13c)](_0x5a1678['OvgYc']),_0x4ce11e[_0x32444b(0xd4)](0x1)));_0x5a1678[_0x32444b(0xde)](sendInstrumentationEvent,_0x43aec3,_0x5a1678[_0x32444b(0xac)],messageTypes['INFO'],null,null,_0x43aec3);!_0x43aec3[_0x32444b(0xc8)]&&(_0x5a1678[_0x32444b(0xf0)](_0x5a1678[_0x32444b(0xcd)],_0x5a1678['CuvAT'])?(console[_0x32444b(0x13c)](_0x5a1678[_0x32444b(0x134)]),process[_0x32444b(0xd4)](0x1)):(_0xb2fb16[_0x32444b(0xce)](_0x5a1678[_0x32444b(0x10a)]),_0x5b2468[_0x32444b(0x136)]=_0x1a1055[_0x277857][_0x32444b(0x133)],_0x238c7b['cloudProviderSecretKey']=_0x34d931[_0x14c297][_0x32444b(0x144)]));const _0x11b199=JSON['parse'](fs['readFileSync'](_0x5a1678[_0x32444b(0x12a)](getCredentialsPath))),_0x466493=await _0x5a1678[_0x32444b(0x128)](getGridDetails,_0x11b199[_0x32444b(0xb0)][_0x32444b(0x112)],_0x11b199[_0x32444b(0xb0)][_0x32444b(0x145)],_0x43aec3[_0x32444b(0xc8)]);if(_0x466493){const _0xd2fe2f=_0x466493['info'];let _0x2495fa=_0x32444b(0xe4)+_0xd2fe2f[_0x32444b(0x125)]+'\x22\x20and\x20ID\x20'+_0xd2fe2f['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x29878d;_0x466493['onlyGridInCluster']&&_0x5a1678['TxbAj'](_0x466493['clusterSpawnedVia'],_0x5a1678[_0x32444b(0xae)])&&(_0x5a1678['UreUw'](_0x5a1678[_0x32444b(0x116)],_0x5a1678[_0x32444b(0x116)])?(_0x1c58cb[_0x32444b(0xce)](_0x32444b(0xb1)),_0x573060['exit'](0x0)):_0x2495fa=_0x32444b(0xe4)+_0xd2fe2f[_0x32444b(0x125)]+_0x32444b(0x10b)+_0xd2fe2f['id']+_0x32444b(0x107)+_0xd2fe2f['clusterName']+_0x32444b(0xb3)+_0xd2fe2f[_0x32444b(0x10c)]+_0x32444b(0x113));_0x29878d=await _0x5a1678[_0x32444b(0x117)](inputConfirmation,_0x2495fa);(_0x5a1678['PHpJC'](_0x29878d,undefined)||_0x5a1678['ENifW'](_0x29878d,null)||!(_0x5a1678[_0x32444b(0xf6)](_0x29878d[_0x32444b(0x13a)](),'y')||_0x5a1678[_0x32444b(0xba)](_0x29878d['toLowerCase'](),'n')))&&(_0x5a1678['UreUw'](_0x5a1678[_0x32444b(0x123)],_0x5a1678[_0x32444b(0xb7)])?(console[_0x32444b(0x13c)](_0x5a1678[_0x32444b(0x141)]),await _0x5a1678[_0x32444b(0xde)](sendInstrumentationEvent,_0x43aec3,_0x5a1678[_0x32444b(0xac)],messageTypes[_0x32444b(0xcc)],_0x5a1678['wyuvR'],null,_0x43aec3),process[_0x32444b(0xd4)](0x1)):_0x3917a3=_0x13491c[_0x32444b(0x11b)][_0x32444b(0xe6)]);_0x5a1678[_0x32444b(0x100)](_0x29878d[_0x32444b(0x13a)](),'n')&&(_0x5a1678[_0x32444b(0xe8)](_0x5a1678[_0x32444b(0xf4)],_0x5a1678[_0x32444b(0xd3)])?_0x193f12['warn'](_0x32444b(0xb4)+_0x5c4647[_0x32444b(0xc9)]+_0x32444b(0xd6)):process[_0x32444b(0xd4)](0x0));_0x5a1678[_0x32444b(0x12a)](closeInput),global_registry[_0x32444b(0xe9)]=_0xd2fe2f[_0x32444b(0xd5)];const _0x33bab0=_0xd2fe2f['cloudProvider'],_0x55661b=_0x11b199[_0x32444b(0x13f)]||{};if(_0x5a1678[_0x32444b(0x124)](_0x55661b[_0x33bab0],undefined)){if(_0x5a1678[_0x32444b(0xf2)](_0x5a1678[_0x32444b(0xe7)],_0x5a1678[_0x32444b(0xe7)])){logger[_0x32444b(0xce)](_0x5a1678[_0x32444b(0x109)]);const [_0x210d9d,_0x3f664a]=await _0x5a1678['SMVQg'](inputCloudProviderKeys,_0x33bab0);_0x11b199['cloudProvider']={};const _0x1f82c7={};_0x1f82c7[_0x32444b(0x133)]=_0x210d9d,_0x1f82c7[_0x32444b(0x144)]=_0x3f664a,_0x11b199['cloudProvider'][_0x33bab0]=_0x1f82c7,fs[_0x32444b(0xec)](_0x5a1678['aahaE'](getCredentialsPath),JSON[_0x32444b(0x118)](_0x11b199)),logger[_0x32444b(0x148)](_0x5a1678[_0x32444b(0xda)]),global_registry['cloudProviderAccessKey']=_0x210d9d,global_registry[_0x32444b(0x127)]=_0x3f664a;}else _0x5b4935[_0x32444b(0xd4)](0x0);}else{if(_0x5a1678['ZxTKO'](_0x5a1678['daQGV'],_0x5a1678['aSDRc']))logger['info'](_0x5a1678[_0x32444b(0x10a)]),global_registry[_0x32444b(0x136)]=_0x55661b[_0x33bab0]['accessKey'],global_registry['cloudProviderSecretKey']=_0x55661b[_0x33bab0][_0x32444b(0x144)];else{const _0x14edaa={};_0x14edaa[_0x32444b(0xd7)]=_0x5a1678[_0x32444b(0x131)],_0x14edaa[_0x32444b(0xfe)]=_0x5a1678[_0x32444b(0x132)];const _0x592915={};return _0x592915[_0x32444b(0xd8)]=_0x14edaa,_0x4aa425[_0x32444b(0x12e)](_0x521ba5['delete'])[_0x32444b(0x139)](_0x189a15)[_0x32444b(0x102)](_0x592915)[_0x32444b(0x12b)](_0x5a1678['GEtLc'])[_0x32444b(0x11f)];}}_0x5a1678[_0x32444b(0x12a)](configureAWSIfNotConfigured);const _0x5accaa=_0x5a1678[_0x32444b(0x142)](kebabCase,_0xd2fe2f[_0x32444b(0x125)]),_0x4020ef=await _0x5a1678[_0x32444b(0x117)](getClusterInfo,_0xd2fe2f[_0x32444b(0xc9)]),[_0x4164a4,_0x125ac7,_0x424c6a,_0x22a4f1,_0x203ece]=await _0x5a1678['LIuer'](createK8sClient,_0x4020ef[_0x32444b(0x11b)]['name'],_0x4020ef[_0x32444b(0x11b)][_0x32444b(0xc0)],_0x4020ef[_0x32444b(0x11b)][_0x32444b(0xed)]['data'],_0xd2fe2f['region']);await _0x5a1678[_0x32444b(0xfc)](removeGridComponents,_0x4164a4,_0x125ac7,_0x424c6a,_0x22a4f1,_0x5accaa);let _0x3bcfdd;_0x4020ef[_0x32444b(0x11b)]&&(_0x5a1678[_0x32444b(0xd1)](_0x5a1678[_0x32444b(0xad)],_0x5a1678['Jirzc'])?_0x162e6f=_0x32444b(0xe4)+_0x4c0d1b[_0x32444b(0x125)]+_0x32444b(0x10b)+_0x22cd96['id']+_0x32444b(0x107)+_0x1b86fc[_0x32444b(0xc9)]+_0x32444b(0xb3)+_0x1f88b2[_0x32444b(0x10c)]+_0x32444b(0x113):_0x3bcfdd=_0x4020ef[_0x32444b(0x11b)][_0x32444b(0xe6)]);_0x466493[_0x32444b(0x108)]&&(_0x3bcfdd&&_0x5a1678[_0x32444b(0xba)](_0x3bcfdd[_0x5a1678['hzDOM']],_0x5a1678['yndZs'])?await _0x5a1678[_0x32444b(0x117)](deleteClusterAndDependencies,_0xd2fe2f[_0x32444b(0xd5)]):logger[_0x32444b(0xdf)](_0x32444b(0xb4)+_0xd2fe2f[_0x32444b(0xc9)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));const _0x1c5722=_0x32444b(0xfb)+AG_API_URL+_0x32444b(0xb8)+_0x43aec3['gridId'],_0x2571d8={};_0x2571d8['username']=_0x11b199['Browserstack'][_0x32444b(0x112)],_0x2571d8[_0x32444b(0x145)]=_0x11b199['Browserstack'][_0x32444b(0x145)];const _0x56fdfc={};_0x56fdfc[_0x32444b(0xef)]=_0x1c5722,_0x56fdfc['method']=_0x5a1678[_0x32444b(0xcb)],_0x56fdfc['auth']=_0x2571d8;const _0x252d85=_0x56fdfc,_0x15f80c=await _0x5a1678[_0x32444b(0xd2)](promisifiedRequest,_0x252d85);_0x5a1678[_0x32444b(0xbc)](_0x15f80c,null)&&_0x5a1678[_0x32444b(0x101)](_0x15f80c,undefined)&&_0x5a1678[_0x32444b(0x130)](_0x15f80c[_0x32444b(0x10f)],0xc8)&&(logger[_0x32444b(0xce)](_0x32444b(0xb1)),process[_0x32444b(0xd4)](0x0)),logger[_0x32444b(0x13c)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x15f80c)),await _0x5a1678['OGrRZ'](sendInstrumentationEvent,_0x43aec3,_0x5a1678['KrmJl'],messageTypes[_0x32444b(0xcc)],_0x5a1678[_0x32444b(0xc4)],res,_0x43aec3),process[_0x32444b(0xd4)](0x1);}_0x5a1678[_0x32444b(0xf0)](res[_0x32444b(0x10f)],0x191)&&(logger['error'](_0x32444b(0xc3)),await _0x5a1678['MhrZy'](sendInstrumentationEvent,_0x43aec3,_0x5a1678[_0x32444b(0xac)],messageTypes['ERROR'],_0x5a1678[_0x32444b(0x135)],null,_0x43aec3),process[_0x32444b(0xd4)](0x1)),_0x5a1678[_0x32444b(0xf2)](res[_0x32444b(0x10f)],0x190)&&(logger[_0x32444b(0x13c)](JSON[_0x32444b(0x103)](res[_0x32444b(0x126)])[_0x32444b(0x11e)]),await _0x5a1678[_0x32444b(0x12c)](sendInstrumentationEvent,_0x43aec3,_0x5a1678['KrmJl'],messageTypes[_0x32444b(0xcc)],_0x5a1678[_0x32444b(0xcf)],null,_0x43aec3),process[_0x32444b(0xd4)](0x1)),logger[_0x32444b(0x13c)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x32444b(0x118)](res)),await _0x5a1678[_0x32444b(0x129)](sendInstrumentationEvent,_0x43aec3,_0x5a1678[_0x32444b(0xac)],messageTypes[_0x32444b(0xcc)],_0x5a1678[_0x32444b(0xc4)],res,_0x43aec3),process[_0x32444b(0xd4)](0x1);}catch(_0x48016b){logger[_0x32444b(0x13c)](_0x32444b(0xab)+_0x48016b[_0x32444b(0x119)]),await _0x5a1678[_0x32444b(0xde)](sendInstrumentationEvent,_0x43aec3,_0x5a1678['KrmJl'],messageTypes[_0x32444b(0xcc)],_0x5a1678[_0x32444b(0xf7)],_0x48016b,_0x43aec3),process[_0x32444b(0xd4)](0x1);}};
|