browserstack-node-sdk 1.25.2 → 1.25.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/ats/src/commands/configure.js +1 -1
  2. package/ats/src/commands/connect.js +1 -1
  3. package/ats/src/commands/connect_commands/grid.js +1 -1
  4. package/ats/src/commands/create.js +1 -1
  5. package/ats/src/commands/create_commands/grid.js +1 -1
  6. package/ats/src/commands/delete.js +1 -1
  7. package/ats/src/commands/delete_commands/grid.js +1 -1
  8. package/ats/src/commands/init.js +1 -1
  9. package/ats/src/commands/list.js +1 -1
  10. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  11. package/ats/src/commands/list_commands/grids.js +1 -1
  12. package/ats/src/config/constants.js +1 -1
  13. package/ats/src/config/logger.js +1 -1
  14. package/ats/src/index.js +1 -1
  15. package/ats/src/templates/hub-deployment.yaml +0 -3
  16. package/ats/src/templates/metrics-server/deployment.yaml +3 -0
  17. package/ats/src/utils/AWSUtils.js +1 -1
  18. package/ats/src/utils/createAutoscalerStack.js +1 -1
  19. package/ats/src/utils/createClusterStack.js +1 -1
  20. package/ats/src/utils/createk8sClient.js +1 -1
  21. package/ats/src/utils/deleteStack.js +1 -1
  22. package/ats/src/utils/gridComponents.js +1 -1
  23. package/ats/src/utils/hstUtils.js +1 -1
  24. package/ats/src/utils/instrumentationUtils.js +1 -1
  25. package/ats/src/utils/userInput.js +1 -1
  26. package/ats/src/utils/utilityMethods.js +1 -1
  27. package/ats/src/utils/webSocketUtils.js +1 -1
  28. package/package.json +1 -1
  29. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  30. package/src/bin/codeceptjs/command.js +1 -1
  31. package/src/bin/cucumber-js/command.js +1 -1
  32. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  33. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  34. package/src/bin/cucumber-js/test.setup.js +1 -1
  35. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  36. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  37. package/src/bin/jest/command.js +1 -1
  38. package/src/bin/jest/customEnvironment.js +1 -1
  39. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  40. package/src/bin/jest/jest.setup.js +1 -1
  41. package/src/bin/jest/test_before.setup.js +1 -1
  42. package/src/bin/launcher/launcher.js +1 -1
  43. package/src/bin/mocha/accessibility-automation/constants.js +1 -1
  44. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  45. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  46. package/src/bin/mocha/command.js +1 -1
  47. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  48. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  49. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  50. package/src/bin/mocha/test.setup.js +1 -1
  51. package/src/bin/nightwatch/command.js +1 -1
  52. package/src/bin/playwright/command.js +1 -1
  53. package/src/bin/playwright/globalSetup.js +1 -1
  54. package/src/bin/playwright/mock-process.js +1 -1
  55. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  56. package/src/bin/playwright/reporter/reporter.js +1 -1
  57. package/src/bin/playwright/reporter/test-details.js +1 -1
  58. package/src/bin/runner.js +1 -1
  59. package/src/bin/setup.js +1 -1
  60. package/src/bin/test-runner/index.js +1 -1
  61. package/src/bin/test-runner/runTest.js +1 -1
  62. package/src/bin/test-runner/testWorker.js +1 -1
  63. package/src/bin/utils/constants.js +1 -1
  64. package/src/bin/utils/log4jsAppender.js +1 -1
  65. package/src/bin/utils/logPatcher.js +1 -1
  66. package/src/bin/utils/logReportingAPI.js +1 -1
  67. package/src/bin/vanilla-js/command.js +1 -1
  68. package/src/helpers/BrowserStackSetup.js +1 -1
  69. package/src/helpers/capsMapping.js +1 -1
  70. package/src/helpers/helper.js +1 -1
  71. package/src/helpers/logger.js +1 -1
  72. package/src/helpers/patchHelpers.js +1 -1
  73. package/src/helpers/request-spy.js +1 -1
  74. package/src/helpers/setKeepAlive.js +1 -1
  75. package/src/helpers/test-observability/constants.js +1 -1
  76. package/src/helpers/test-observability/error-handler.js +1 -1
  77. package/src/helpers/test-observability/performance-tester.js +1 -1
  78. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  79. package/src/helpers/test-observability/sessionHandler.js +1 -1
  80. package/src/helpers/test-observability/utils.js +1 -1
  81. package/src/helpers/w3cMapping.js +1 -1
  82. package/src/hubAllocationMethods.js +1 -1
  83. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a0_0x3cc2c4=a0_0x48eb;(function(_0x58b9a3,_0x12cb4b){const _0x2c7276=a0_0x48eb,_0x5cc50b=_0x58b9a3();while(!![]){try{const _0x29ae40=-parseInt(_0x2c7276(0x165))/0x1+parseInt(_0x2c7276(0x14b))/0x2*(parseInt(_0x2c7276(0x14f))/0x3)+parseInt(_0x2c7276(0x178))/0x4*(-parseInt(_0x2c7276(0x12e))/0x5)+parseInt(_0x2c7276(0x189))/0x6+parseInt(_0x2c7276(0x16d))/0x7+-parseInt(_0x2c7276(0x181))/0x8*(parseInt(_0x2c7276(0x170))/0x9)+parseInt(_0x2c7276(0x12f))/0xa;if(_0x29ae40===_0x12cb4b)break;else _0x5cc50b['push'](_0x5cc50b['shift']());}catch(_0x120838){_0x5cc50b['push'](_0x5cc50b['shift']());}}}(a0_0x1e0c,0x496b1));const fs=require('fs'),util=require(a0_0x3cc2c4(0x176)),request=require('request'),{v4:uuidv4}=require(a0_0x3cc2c4(0x14a)),{inputConfirmation,closeInput}=require(a0_0x3cc2c4(0x177)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a0_0x3cc2c4(0x144)),{getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a0_0x3cc2c4(0x185)),promisifiedRequest=util['promisify'](request);exports[a0_0x3cc2c4(0x157)]=a0_0x3cc2c4(0x169),exports['desc']='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports['builder']=function(_0x5b7083){const _0xbb057b=a0_0x3cc2c4,_0x45445e={};_0x45445e[_0xbb057b(0x171)]='help';const _0x3895ae=_0x45445e;return _0x5b7083[_0xbb057b(0x130)](HELP_HEADER_MESSAGE[_0xbb057b(0x169)])[_0xbb057b(0x141)](HELP_FOOTER_MESSAGE)[_0xbb057b(0x132)](_0x3895ae[_0xbb057b(0x171)])['recommendCommands']()[_0xbb057b(0x13a)]()[_0xbb057b(0x17f)];},exports[a0_0x3cc2c4(0x15a)]=async function(_0x84b870){const _0x482e25=a0_0x3cc2c4,_0x2235d7={'GdTsR':function(_0x5a89d9){return _0x5a89d9();},'FhQGk':_0x482e25(0x15b),'eJCII':function(_0x2cb70c,_0x40fd81,_0x3a4ba4,_0x42d74b,_0x20b740,_0x362898,_0x4f4162){return _0x2cb70c(_0x40fd81,_0x3a4ba4,_0x42d74b,_0x20b740,_0x362898,_0x4f4162);},'AMWOX':_0x482e25(0x17b),'mgSli':_0x482e25(0x180),'pSIJl':function(_0x3a6755,_0x20ab16,_0x2d9f5d,_0x4b6be0,_0x49c89f,_0xc436de,_0x4f9e30){return _0x3a6755(_0x20ab16,_0x2d9f5d,_0x4b6be0,_0x49c89f,_0xc436de,_0x4f9e30);},'YYdXR':function(_0x432be5){return _0x432be5();},'XqwDX':'GET','vWiiG':function(_0x1e758b,_0x1cf6f5){return _0x1e758b(_0x1cf6f5);},'SWmpO':function(_0x33fe9d,_0x5f01d3){return _0x33fe9d!==_0x5f01d3;},'opWDK':function(_0x1c0435,_0x3543bf){return _0x1c0435!==_0x3543bf;},'ZmOWR':function(_0x408390,_0x44c542){return _0x408390===_0x44c542;},'QOWOu':_0x482e25(0x164),'oroux':_0x482e25(0x160),'xQzNK':_0x482e25(0x16a),'auKun':_0x482e25(0x142),'XSota':function(_0x3408bd,_0x227814,_0x354266,_0x4c4e62,_0x790949,_0x3fd153,_0x1e7a96){return _0x3408bd(_0x227814,_0x354266,_0x4c4e62,_0x790949,_0x3fd153,_0x1e7a96);},'XmKxm':_0x482e25(0x13e),'ZzmxW':function(_0x2f2885,_0x174a1c){return _0x2f2885===_0x174a1c;},'cXIbM':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','nhHOa':function(_0x2428e1,_0x4fbb73){return _0x2428e1<_0x4fbb73;},'wVwTG':function(_0x47e7cd,_0x3a10a1){return _0x47e7cd+_0x3a10a1;},'ELfsW':function(_0x2ff4d0,_0x3a4913){return _0x2ff4d0(_0x3a4913);},'yuodK':_0x482e25(0x167),'VIHCA':function(_0x421940,_0x4fb6e7){return _0x421940(_0x4fb6e7);},'TCOml':function(_0x4a14ca,_0x3080bb){return _0x4a14ca(_0x3080bb);},'VzlSa':function(_0x1d879e,_0x42313e){return _0x1d879e<_0x42313e;},'mxxsN':function(_0x3af702,_0xf94fba){return _0x3af702>_0xf94fba;},'nHwIr':function(_0x210603,_0x4bbe57,_0x512f51,_0x4348ad,_0x2a9346,_0x12c407,_0x3d6382){return _0x210603(_0x4bbe57,_0x512f51,_0x4348ad,_0x2a9346,_0x12c407,_0x3d6382);},'oOPCq':_0x482e25(0x128),'rtAZp':function(_0xe20534,_0x5310ca){return _0xe20534-_0x5310ca;},'HRWyA':_0x482e25(0x166),'makgZ':function(_0x4651ba,_0x26049f){return _0x4651ba!==_0x26049f;},'zRoUV':function(_0x4b7ce8,_0xc7d9ba){return _0x4b7ce8===_0xc7d9ba;},'QKXoE':_0x482e25(0x148),'aqEwi':function(_0x4d3163,_0xc3e38b){return _0x4d3163===_0xc3e38b;},'lFSAM':function(_0x378a99,_0x42c665,_0x4f3bdd,_0x42346e,_0x275813,_0x3cc910,_0x14cdac){return _0x378a99(_0x42c665,_0x4f3bdd,_0x42346e,_0x275813,_0x3cc910,_0x14cdac);},'GXAgZ':'unauthorised','zZGnK':function(_0x2347ea,_0x420b17,_0x5bece7,_0x164086,_0x5b9db5,_0x41dc3c,_0x5e4af6){return _0x2347ea(_0x420b17,_0x5bece7,_0x164086,_0x5b9db5,_0x41dc3c,_0x5e4af6);},'XUKdF':_0x482e25(0x137),'XlIxa':'unknown-error'};try{global_registry[_0x482e25(0x12d)]=_0x2235d7[_0x482e25(0x15c)](uuidv4);const _0x1188cf='https://'+AG_API_URL+_0x482e25(0x13d);!fs[_0x482e25(0x17e)](_0x2235d7[_0x482e25(0x15c)](getCredentialsPath))&&(console[_0x482e25(0x150)](_0x2235d7['FhQGk']),await _0x2235d7[_0x482e25(0x175)](sendInstrumentationEvent,_0x84b870,_0x2235d7['AMWOX'],messageTypes[_0x482e25(0x138)],_0x2235d7[_0x482e25(0x151)],null,_0x84b870),process['exit'](0x1));await _0x2235d7[_0x482e25(0x156)](sendInstrumentationEvent,_0x84b870,_0x2235d7[_0x482e25(0x184)],messageTypes[_0x482e25(0x129)],null,null,_0x84b870);const _0x19abbb=JSON[_0x482e25(0x15e)](fs[_0x482e25(0x168)](_0x2235d7[_0x482e25(0x139)](getCredentialsPath))),_0x404d19={};_0x404d19[_0x482e25(0x173)]=_0x19abbb[_0x482e25(0x14c)][_0x482e25(0x173)],_0x404d19[_0x482e25(0x135)]=_0x19abbb[_0x482e25(0x14c)][_0x482e25(0x135)];const _0x4d0bc9={};_0x4d0bc9[_0x482e25(0x14d)]=_0x1188cf,_0x4d0bc9[_0x482e25(0x133)]=_0x2235d7['XqwDX'],_0x4d0bc9['auth']=_0x404d19;const _0x412b42=_0x4d0bc9,_0x10db6f=await _0x2235d7[_0x482e25(0x147)](promisifiedRequest,_0x412b42);if(_0x2235d7[_0x482e25(0x15f)](_0x10db6f,null)&&_0x2235d7[_0x482e25(0x13b)](_0x10db6f,undefined)&&_0x2235d7[_0x482e25(0x16c)](_0x10db6f[_0x482e25(0x155)],0xc8)){const _0x25312c=JSON['parse'](_0x10db6f[_0x482e25(0x158)]);console['log'](_0x2235d7['QOWOu']),console[_0x482e25(0x15d)](_0x2235d7[_0x482e25(0x163)]),console[_0x482e25(0x15d)](_0x482e25(0x154)+_0x19abbb[_0x482e25(0x14c)]['username']),console[_0x482e25(0x15d)]('\x20\x20grid-profile:\x20'+_0x25312c[_0x482e25(0x16f)][_0x482e25(0x149)]);const _0x4d2e25=await _0x2235d7['vWiiG'](inputConfirmation,_0x2235d7[_0x482e25(0x174)]);(_0x2235d7[_0x482e25(0x16c)](_0x4d2e25,undefined)||_0x2235d7[_0x482e25(0x16c)](_0x4d2e25,null)||!(_0x2235d7[_0x482e25(0x16c)](_0x4d2e25[_0x482e25(0x187)](),'y')||_0x2235d7['ZmOWR'](_0x4d2e25[_0x482e25(0x187)](),'n')))&&(console['error'](_0x2235d7[_0x482e25(0x162)]),await _0x2235d7[_0x482e25(0x13f)](sendInstrumentationEvent,_0x84b870,_0x2235d7[_0x482e25(0x184)],messageTypes['ERROR'],_0x2235d7['XmKxm'],null,_0x84b870),process[_0x482e25(0x145)](0x1));_0x2235d7[_0x482e25(0x179)](_0x4d2e25[_0x482e25(0x187)](),'n')&&process[_0x482e25(0x145)](0x0);console['log'](_0x2235d7[_0x482e25(0x159)]);const _0x5b8933=_0x25312c['list'][_0x482e25(0x161)];for(let _0x15480e=0x0;_0x2235d7[_0x482e25(0x13c)](_0x15480e,_0x5b8933);_0x15480e+=0x1){console[_0x482e25(0x15d)]('['+_0x2235d7['wVwTG'](_0x15480e,0x1)+']\x20'+_0x25312c[_0x482e25(0x140)][_0x15480e][_0x482e25(0x149)]);}const _0x42bbb0=await _0x2235d7[_0x482e25(0x143)](inputConfirmation,_0x2235d7[_0x482e25(0x14e)]),_0x55061a=_0x2235d7[_0x482e25(0x17c)](Number,_0x42bbb0);(_0x2235d7[_0x482e25(0x16b)](isNaN,_0x55061a)||_0x2235d7[_0x482e25(0x17a)](_0x55061a,0x0)||_0x2235d7['mxxsN'](_0x55061a,_0x5b8933))&&(console[_0x482e25(0x150)](_0x2235d7[_0x482e25(0x162)]),await _0x2235d7['nHwIr'](sendInstrumentationEvent,_0x84b870,_0x2235d7[_0x482e25(0x184)],messageTypes['ERROR'],_0x2235d7[_0x482e25(0x12b)],null,_0x84b870),process[_0x482e25(0x145)](0x1));_0x2235d7[_0x482e25(0x15c)](closeInput);const _0x6a9895=_0x25312c[_0x482e25(0x140)][_0x2235d7['rtAZp'](_0x55061a,0x1)]['id'],_0x7c3145={};_0x7c3145[_0x482e25(0x173)]=_0x19abbb['Browserstack'][_0x482e25(0x173)],_0x7c3145[_0x482e25(0x135)]=_0x19abbb[_0x482e25(0x14c)][_0x482e25(0x135)];const _0xd0e5a2={};_0xd0e5a2[_0x482e25(0x134)]=_0x6a9895;const _0x1cd232={};_0x1cd232['url']=_0x1188cf,_0x1cd232[_0x482e25(0x133)]=_0x2235d7['HRWyA'],_0x1cd232[_0x482e25(0x186)]=_0x7c3145,_0x1cd232['body']=_0xd0e5a2,_0x1cd232['json']=!![];const _0x2f2bce=_0x1cd232,_0x24ba43=await _0x2235d7[_0x482e25(0x143)](promisifiedRequest,_0x2f2bce);_0x2235d7[_0x482e25(0x131)](_0x24ba43,null)&&_0x2235d7[_0x482e25(0x15f)](_0x24ba43,undefined)&&_0x2235d7['zRoUV'](_0x24ba43[_0x482e25(0x155)],0xc8)&&(console[_0x482e25(0x15d)](_0x2235d7[_0x482e25(0x16e)]),process[_0x482e25(0x145)](0x0)),_0x2235d7[_0x482e25(0x183)](_0x24ba43[_0x482e25(0x155)],0x191)&&(console[_0x482e25(0x150)]('Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!'),await _0x2235d7[_0x482e25(0x182)](sendInstrumentationEvent,_0x84b870,_0x2235d7[_0x482e25(0x184)],messageTypes[_0x482e25(0x138)],_0x2235d7['GXAgZ'],null,_0x84b870),process['exit'](0x1)),console['error'](_0x482e25(0x12a)+JSON[_0x482e25(0x153)](_0x24ba43)),await _0x2235d7[_0x482e25(0x12c)](sendInstrumentationEvent,_0x84b870,_0x2235d7[_0x482e25(0x184)],messageTypes[_0x482e25(0x138)],_0x2235d7['XUKdF'],_0x24ba43,_0x84b870),process[_0x482e25(0x145)](0x1);}_0x2235d7[_0x482e25(0x183)](_0x10db6f[_0x482e25(0x155)],0x191)&&(console[_0x482e25(0x150)](_0x482e25(0x188)),await _0x2235d7[_0x482e25(0x146)](sendInstrumentationEvent,_0x84b870,_0x2235d7[_0x482e25(0x184)],messageTypes[_0x482e25(0x138)],_0x2235d7[_0x482e25(0x17d)],null,_0x84b870),process[_0x482e25(0x145)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x482e25(0x153)](_0x10db6f)),await _0x2235d7[_0x482e25(0x12c)](sendInstrumentationEvent,_0x84b870,_0x2235d7[_0x482e25(0x184)],messageTypes[_0x482e25(0x138)],_0x2235d7[_0x482e25(0x172)],_0x10db6f,_0x84b870),process[_0x482e25(0x145)](0x1);}catch(_0x235482){console[_0x482e25(0x150)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x235482[_0x482e25(0x136)]),await _0x2235d7['pSIJl'](sendInstrumentationEvent,_0x84b870,_0x2235d7[_0x482e25(0x184)],messageTypes['ERROR'],_0x2235d7[_0x482e25(0x152)],_0x235482,_0x84b870),process[_0x482e25(0x145)](0x1);}};function a0_0x48eb(_0x4fa077,_0x2f98dc){const _0x1e0ca3=a0_0x1e0c();return a0_0x48eb=function(_0x48eb3f,_0x384585){_0x48eb3f=_0x48eb3f-0x128;let _0x45545f=_0x1e0ca3[_0x48eb3f];return _0x45545f;},a0_0x48eb(_0x4fa077,_0x2f98dc);}function a0_0x1e0c(){const _0x418d20=['4NFzCCP','Browserstack','url','yuodK','543477suqyxv','error','mgSli','XlIxa','stringify','\x20\x20username:\x20','statusCode','pSIJl','command','body','cXIbM','handler','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GdTsR','log','parse','SWmpO','core:','length','auKun','oroux','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','153985rRHcfP','PUT','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','readFileSync','configure','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','TCOml','ZmOWR','2109723KATyig','QKXoE','active','9HgJxYc','vspae','XUKdF','username','xQzNK','eJCII','util','../utils/userInput','14228QQlNPb','ZzmxW','VzlSa','configure-called','VIHCA','GXAgZ','existsSync','argv','init-not-called','4057960sJQCuB','lFSAM','aqEwi','AMWOX','../utils/instrumentationUtils','auth','toLowerCase','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1230048MDMdoH','invalid-selection','INFO','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','oOPCq','zZGnK','requestId','25Fhdhdn','1110210oVoEkv','usage','makgZ','help','method','profileId','password','stack','server-error','ERROR','YYdXR','strict','opWDK','nhHOa','/packages/cli/configure','invalid-input','XSota','list','epilogue','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','ELfsW','../config/constants','exit','nHwIr','vWiiG','Updated\x20default\x20Grid\x20Profile\x20successfully','name','uuid'];a0_0x1e0c=function(){return _0x418d20;};return a0_0x1e0c();}
1
+ const a0_0x132d5d=a0_0x1366;function a0_0x580b(){const _0x41ed36=['../utils/utilityMethods','readFileSync','cvtdJ','64694awsJdh','stringify','TNkpQ','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','10qOoqcA','WkxXu','rHjcW','password','HVqkw','XGMdm','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','PEdIZ','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','2140259VhHWhN','usage','https://','VIosH','isuUo','lnTkL','PUT','../utils/instrumentationUtils','GET','16nuodnZ','OifCh','url','OMuzs','EGOEA','IGPJc','oSfRg','statusCode','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','error','ZjoJT','Updated\x20default\x20Grid\x20Profile\x20successfully','profileId','existsSync','iyxXg','mXcyc','list','XNXzB','NlirT','6sMNGIQ','2bMpvTz','4974165yPeRZn','request','log','builder','SFjLy','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','invalid-selection','username','configure-called','HRQcy','parse','ZTewP','init-not-called','uuid','AuyNf','invalid-input','util','YhVmJ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','requestId','Browserstack','stack','exit','1077128sThCEG','toLowerCase','29943120rZdVRS','TQBRR','ndcmw','recommendCommands','gUjjO','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','unknown-error','HGkvT','dZXcL','\x20\x20grid-profile:\x20','method','aOPrX','../config/constants','7738535ElWQNg','../utils/userInput','804BQMbPc','zEmXX','auth','unauthorised','iEcKJ','body','help','qDmFu','promisify','ERROR','desc','epilogue','nRVdM','HgfqC','server-error','INFO','length','ULjSc','command','48683SvrfAN','configure','name'];a0_0x580b=function(){return _0x41ed36;};return a0_0x580b();}function a0_0x1366(_0x478008,_0x1c3cc2){const _0x580b7f=a0_0x580b();return a0_0x1366=function(_0x136697,_0x1c46ea){_0x136697=_0x136697-0xbd;let _0x4f4f41=_0x580b7f[_0x136697];return _0x4f4f41;},a0_0x1366(_0x478008,_0x1c3cc2);}(function(_0x3c71fe,_0x577e75){const _0x14fccb=a0_0x1366,_0x23f665=_0x3c71fe();while(!![]){try{const _0x381c2a=-parseInt(_0x14fccb(0xd8))/0x1*(-parseInt(_0x14fccb(0x10b))/0x2)+-parseInt(_0x14fccb(0x10a))/0x3*(parseInt(_0x14fccb(0x123))/0x4)+-parseInt(_0x14fccb(0xc3))/0x5+parseInt(_0x14fccb(0xc5))/0x6*(parseInt(_0x14fccb(0xde))/0x7)+parseInt(_0x14fccb(0xf7))/0x8*(-parseInt(_0x14fccb(0x10c))/0x9)+-parseInt(_0x14fccb(0xe4))/0xa*(-parseInt(_0x14fccb(0xee))/0xb)+parseInt(_0x14fccb(0x125))/0xc;if(_0x381c2a===_0x577e75)break;else _0x23f665['push'](_0x23f665['shift']());}catch(_0x3e696b){_0x23f665['push'](_0x23f665['shift']());}}}(a0_0x580b,0xbfb93));const fs=require('fs'),util=require(a0_0x132d5d(0x11c)),request=require(a0_0x132d5d(0x10d)),{v4:uuidv4}=require(a0_0x132d5d(0x119)),{inputConfirmation,closeInput}=require(a0_0x132d5d(0xc4)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a0_0x132d5d(0xc2)),{getCredentialsPath}=require(a0_0x132d5d(0xdb)),{sendInstrumentationEvent}=require(a0_0x132d5d(0xf5)),promisifiedRequest=util[a0_0x132d5d(0xcd)](request);exports[a0_0x132d5d(0xd7)]=a0_0x132d5d(0xd9),exports[a0_0x132d5d(0xcf)]=a0_0x132d5d(0xed),exports[a0_0x132d5d(0x10f)]=function(_0x394b3c){const _0x854bda=a0_0x132d5d,_0xacb12d={};_0xacb12d[_0x854bda(0xd1)]=_0x854bda(0xcb);const _0x4da1e9=_0xacb12d;return _0x394b3c[_0x854bda(0xef)](HELP_HEADER_MESSAGE[_0x854bda(0xd9)])[_0x854bda(0xd0)](HELP_FOOTER_MESSAGE)['help'](_0x4da1e9[_0x854bda(0xd1)])[_0x854bda(0x128)]()['strict']()['argv'];},exports['handler']=async function(_0x33337e){const _0x62e60b=a0_0x132d5d,_0x39a993={'Zklhe':function(_0xe370be){return _0xe370be();},'oQkse':_0x62e60b(0x11e),'vAlcJ':function(_0x332fab,_0x3defd3,_0x4ac7e8,_0x3fb7e5,_0x5a5d2b,_0x6b6077,_0xccc111){return _0x332fab(_0x3defd3,_0x4ac7e8,_0x3fb7e5,_0x5a5d2b,_0x6b6077,_0xccc111);},'AuyNf':_0x62e60b(0x114),'cvtdJ':_0x62e60b(0x118),'dZXcL':function(_0x2ceba8,_0x264e37,_0x95b1f2,_0x3d96bc,_0x4a2967,_0x25f752,_0x55d630){return _0x2ceba8(_0x264e37,_0x95b1f2,_0x3d96bc,_0x4a2967,_0x25f752,_0x55d630);},'iyxXg':function(_0x50a93c){return _0x50a93c();},'ZTewP':_0x62e60b(0xf6),'mXcyc':function(_0x8a5ec5,_0x5e73b5){return _0x8a5ec5(_0x5e73b5);},'HgfqC':function(_0x450c96,_0xa06a83){return _0x450c96!==_0xa06a83;},'EvYGy':function(_0x180367,_0x2140e9){return _0x180367!==_0x2140e9;},'zEmXX':function(_0x5c3e6e,_0x25efa9){return _0x5c3e6e===_0x25efa9;},'HVqkw':_0x62e60b(0x111),'oSfRg':'core:','lnTkL':_0x62e60b(0xe2),'qDmFu':function(_0x3023b8,_0x5e1988){return _0x3023b8===_0x5e1988;},'aOPrX':function(_0x231cd2,_0x431d49){return _0x231cd2===_0x431d49;},'NlirT':_0x62e60b(0xec),'OMuzs':_0x62e60b(0x11b),'EbATF':function(_0x41cf70,_0x3f99ae){return _0x41cf70===_0x3f99ae;},'EGOEA':_0x62e60b(0xea),'TQBRR':function(_0x1ff479,_0x339327){return _0x1ff479<_0x339327;},'OifCh':function(_0xa5f0e3,_0x1b15a4){return _0xa5f0e3+_0x1b15a4;},'PEdIZ':function(_0x19b8e6,_0x1898be){return _0x19b8e6(_0x1898be);},'HGkvT':_0x62e60b(0x12a),'MpLMo':function(_0x52bbe5,_0x539b3a){return _0x52bbe5<_0x539b3a;},'TNkpQ':function(_0x1f5f51,_0x464b47){return _0x1f5f51>_0x464b47;},'IGPJc':function(_0x51e88b,_0x3487a6,_0x40b37c,_0x25c86d,_0x2dc25e,_0x303e4d,_0x4acfed){return _0x51e88b(_0x3487a6,_0x40b37c,_0x25c86d,_0x2dc25e,_0x303e4d,_0x4acfed);},'VIosH':_0x62e60b(0x112),'HRQcy':function(_0x2e3bee){return _0x2e3bee();},'rHjcW':function(_0x178353,_0x539d04){return _0x178353-_0x539d04;},'ULjSc':_0x62e60b(0xf4),'SFjLy':function(_0x1564b0,_0x1383d0){return _0x1564b0!==_0x1383d0;},'iEcKJ':function(_0x361add,_0x3a9c60){return _0x361add===_0x3a9c60;},'ZjoJT':_0x62e60b(0x102),'XNXzB':function(_0x3b7a10,_0x49287e){return _0x3b7a10===_0x49287e;},'dAzXS':_0x62e60b(0xc8),'WkxXu':function(_0xab6ddb,_0x43fb5d,_0x5354ca,_0x3e581b,_0x4b2dfa,_0x26c9dc,_0x123ae4){return _0xab6ddb(_0x43fb5d,_0x5354ca,_0x3e581b,_0x4b2dfa,_0x26c9dc,_0x123ae4);},'gUjjO':_0x62e60b(0xd3),'isuUo':function(_0x10cbac,_0x5cbcfa,_0x2b0f39,_0x214ac3,_0x32db22,_0x15b417,_0xd7d5c8){return _0x10cbac(_0x5cbcfa,_0x2b0f39,_0x214ac3,_0x32db22,_0x15b417,_0xd7d5c8);},'XGMdm':function(_0x41aa4b,_0x1b7145,_0x43fd50,_0x368563,_0x4bef7a,_0x5555a8,_0x2b517d){return _0x41aa4b(_0x1b7145,_0x43fd50,_0x368563,_0x4bef7a,_0x5555a8,_0x2b517d);},'ndcmw':function(_0x453151,_0x4d2be9,_0x44a8f5,_0x106244,_0x3df5b1,_0x11b575,_0x5edc86){return _0x453151(_0x4d2be9,_0x44a8f5,_0x106244,_0x3df5b1,_0x11b575,_0x5edc86);},'YhVmJ':_0x62e60b(0x12b)};try{global_registry[_0x62e60b(0x11f)]=_0x39a993['Zklhe'](uuidv4);const _0x540341=_0x62e60b(0xf0)+AG_API_URL+'/packages/cli/configure';!fs[_0x62e60b(0x104)](_0x39a993['Zklhe'](getCredentialsPath))&&(console[_0x62e60b(0x100)](_0x39a993['oQkse']),await _0x39a993['vAlcJ'](sendInstrumentationEvent,_0x33337e,_0x39a993['AuyNf'],messageTypes[_0x62e60b(0xce)],_0x39a993[_0x62e60b(0xdd)],null,_0x33337e),process[_0x62e60b(0x122)](0x1));await _0x39a993[_0x62e60b(0xbe)](sendInstrumentationEvent,_0x33337e,_0x39a993[_0x62e60b(0x11a)],messageTypes[_0x62e60b(0xd4)],null,null,_0x33337e);const _0x2e6c78=JSON['parse'](fs[_0x62e60b(0xdc)](_0x39a993[_0x62e60b(0x105)](getCredentialsPath))),_0x444c98={};_0x444c98['username']=_0x2e6c78['Browserstack']['username'],_0x444c98[_0x62e60b(0xe7)]=_0x2e6c78[_0x62e60b(0x120)][_0x62e60b(0xe7)];const _0x43e17a={};_0x43e17a[_0x62e60b(0xf9)]=_0x540341,_0x43e17a[_0x62e60b(0xc0)]=_0x39a993[_0x62e60b(0x117)],_0x43e17a[_0x62e60b(0xc7)]=_0x444c98;const _0xa3e3bc=_0x43e17a,_0x39acdc=await _0x39a993['mXcyc'](promisifiedRequest,_0xa3e3bc);if(_0x39a993[_0x62e60b(0xd2)](_0x39acdc,null)&&_0x39a993['EvYGy'](_0x39acdc,undefined)&&_0x39a993[_0x62e60b(0xc6)](_0x39acdc['statusCode'],0xc8)){const _0x4c940f=JSON[_0x62e60b(0x116)](_0x39acdc[_0x62e60b(0xca)]);console[_0x62e60b(0x10e)](_0x39a993[_0x62e60b(0xe8)]),console['log'](_0x39a993[_0x62e60b(0xfd)]),console['log']('\x20\x20username:\x20'+_0x2e6c78[_0x62e60b(0x120)]['username']),console['log'](_0x62e60b(0xbf)+_0x4c940f['active']['name']);const _0x28463e=await _0x39a993[_0x62e60b(0x106)](inputConfirmation,_0x39a993[_0x62e60b(0xf3)]);(_0x39a993['zEmXX'](_0x28463e,undefined)||_0x39a993[_0x62e60b(0xcc)](_0x28463e,null)||!(_0x39a993[_0x62e60b(0xc1)](_0x28463e[_0x62e60b(0x124)](),'y')||_0x39a993['zEmXX'](_0x28463e[_0x62e60b(0x124)](),'n')))&&(console[_0x62e60b(0x100)](_0x39a993[_0x62e60b(0x109)]),await _0x39a993['vAlcJ'](sendInstrumentationEvent,_0x33337e,_0x39a993['AuyNf'],messageTypes['ERROR'],_0x39a993[_0x62e60b(0xfa)],null,_0x33337e),process[_0x62e60b(0x122)](0x1));_0x39a993['EbATF'](_0x28463e[_0x62e60b(0x124)](),'n')&&process['exit'](0x0);console[_0x62e60b(0x10e)](_0x39a993[_0x62e60b(0xfb)]);const _0x341d63=_0x4c940f[_0x62e60b(0x107)][_0x62e60b(0xd5)];for(let _0xcf2c24=0x0;_0x39a993[_0x62e60b(0x126)](_0xcf2c24,_0x341d63);_0xcf2c24+=0x1){console['log']('['+_0x39a993[_0x62e60b(0xf8)](_0xcf2c24,0x1)+']\x20'+_0x4c940f[_0x62e60b(0x107)][_0xcf2c24][_0x62e60b(0xda)]);}const _0x4a2167=await _0x39a993[_0x62e60b(0xeb)](inputConfirmation,_0x39a993[_0x62e60b(0xbd)]),_0x2432d2=_0x39a993[_0x62e60b(0x106)](Number,_0x4a2167);(_0x39a993['PEdIZ'](isNaN,_0x2432d2)||_0x39a993['MpLMo'](_0x2432d2,0x0)||_0x39a993[_0x62e60b(0xe0)](_0x2432d2,_0x341d63))&&(console['error'](_0x39a993[_0x62e60b(0x109)]),await _0x39a993[_0x62e60b(0xfc)](sendInstrumentationEvent,_0x33337e,_0x39a993[_0x62e60b(0x11a)],messageTypes['ERROR'],_0x39a993[_0x62e60b(0xf1)],null,_0x33337e),process['exit'](0x1));_0x39a993[_0x62e60b(0x115)](closeInput);const _0x1961c0=_0x4c940f[_0x62e60b(0x107)][_0x39a993[_0x62e60b(0xe6)](_0x2432d2,0x1)]['id'],_0x36292d={};_0x36292d['username']=_0x2e6c78['Browserstack'][_0x62e60b(0x113)],_0x36292d[_0x62e60b(0xe7)]=_0x2e6c78[_0x62e60b(0x120)]['password'];const _0x16d5e8={};_0x16d5e8[_0x62e60b(0x103)]=_0x1961c0;const _0x3d9ed5={};_0x3d9ed5[_0x62e60b(0xf9)]=_0x540341,_0x3d9ed5[_0x62e60b(0xc0)]=_0x39a993[_0x62e60b(0xd6)],_0x3d9ed5[_0x62e60b(0xc7)]=_0x36292d,_0x3d9ed5[_0x62e60b(0xca)]=_0x16d5e8,_0x3d9ed5['json']=!![];const _0x173a64=_0x3d9ed5,_0x46a40c=await _0x39a993[_0x62e60b(0xeb)](promisifiedRequest,_0x173a64);_0x39a993[_0x62e60b(0x110)](_0x46a40c,null)&&_0x39a993['EvYGy'](_0x46a40c,undefined)&&_0x39a993[_0x62e60b(0xc9)](_0x46a40c[_0x62e60b(0xfe)],0xc8)&&(console[_0x62e60b(0x10e)](_0x39a993[_0x62e60b(0x101)]),process[_0x62e60b(0x122)](0x0)),_0x39a993[_0x62e60b(0x108)](_0x46a40c[_0x62e60b(0xfe)],0x191)&&(console[_0x62e60b(0x100)](_0x62e60b(0xff)),await _0x39a993[_0x62e60b(0xbe)](sendInstrumentationEvent,_0x33337e,_0x39a993[_0x62e60b(0x11a)],messageTypes[_0x62e60b(0xce)],_0x39a993['dAzXS'],null,_0x33337e),process[_0x62e60b(0x122)](0x1)),console[_0x62e60b(0x100)](_0x62e60b(0xe1)+JSON['stringify'](_0x46a40c)),await _0x39a993[_0x62e60b(0xe5)](sendInstrumentationEvent,_0x33337e,_0x39a993[_0x62e60b(0x11a)],messageTypes[_0x62e60b(0xce)],_0x39a993[_0x62e60b(0x129)],_0x46a40c,_0x33337e),process[_0x62e60b(0x122)](0x1);}_0x39a993['aOPrX'](_0x39acdc[_0x62e60b(0xfe)],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x39a993[_0x62e60b(0xf2)](sendInstrumentationEvent,_0x33337e,_0x39a993[_0x62e60b(0x11a)],messageTypes['ERROR'],_0x39a993['dAzXS'],null,_0x33337e),process[_0x62e60b(0x122)](0x1)),console[_0x62e60b(0x100)](_0x62e60b(0xe3)+JSON[_0x62e60b(0xdf)](_0x39acdc)),await _0x39a993[_0x62e60b(0xe9)](sendInstrumentationEvent,_0x33337e,_0x39a993[_0x62e60b(0x11a)],messageTypes[_0x62e60b(0xce)],_0x39a993[_0x62e60b(0x129)],_0x39acdc,_0x33337e),process[_0x62e60b(0x122)](0x1);}catch(_0x29f72d){console[_0x62e60b(0x100)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x29f72d[_0x62e60b(0x121)]),await _0x39a993[_0x62e60b(0x127)](sendInstrumentationEvent,_0x33337e,_0x39a993[_0x62e60b(0x11a)],messageTypes[_0x62e60b(0xce)],_0x39a993[_0x62e60b(0x11d)],_0x29f72d,_0x33337e),process[_0x62e60b(0x122)](0x1);}};
@@ -1 +1 @@
1
- function a1_0x40cf(_0x44571f,_0x2cb155){const _0x3b83f0=a1_0x3b83();return a1_0x40cf=function(_0x40cf2b,_0x250963){_0x40cf2b=_0x40cf2b-0x1aa;let _0x5899e8=_0x3b83f0[_0x40cf2b];return _0x5899e8;},a1_0x40cf(_0x44571f,_0x2cb155);}const a1_0x744e02=a1_0x40cf;(function(_0x5b9faa,_0x2c8f56){const _0x5883d7=a1_0x40cf,_0x67bf9b=_0x5b9faa();while(!![]){try{const _0x25a175=parseInt(_0x5883d7(0x1ae))/0x1*(parseInt(_0x5883d7(0x1b0))/0x2)+parseInt(_0x5883d7(0x1b1))/0x3*(parseInt(_0x5883d7(0x1b9))/0x4)+parseInt(_0x5883d7(0x1b3))/0x5+parseInt(_0x5883d7(0x1bb))/0x6*(-parseInt(_0x5883d7(0x1aa))/0x7)+-parseInt(_0x5883d7(0x1b6))/0x8*(-parseInt(_0x5883d7(0x1b8))/0x9)+-parseInt(_0x5883d7(0x1c4))/0xa*(-parseInt(_0x5883d7(0x1bf))/0xb)+-parseInt(_0x5883d7(0x1ac))/0xc*(-parseInt(_0x5883d7(0x1b2))/0xd);if(_0x25a175===_0x2c8f56)break;else _0x67bf9b['push'](_0x67bf9b['shift']());}catch(_0x10f964){_0x67bf9b['push'](_0x67bf9b['shift']());}}}(a1_0x3b83,0xe6865));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a1_0x744e02(0x1c1));exports[a1_0x744e02(0x1af)]=a1_0x744e02(0x1bd),exports[a1_0x744e02(0x1bc)]=a1_0x744e02(0x1c0),exports[a1_0x744e02(0x1c2)]=function(_0x57e69f){const _0x380f09=a1_0x744e02,_0x245125={};_0x245125[_0x380f09(0x1ab)]=_0x380f09(0x1ba),_0x245125['aelMv']='help';const _0xed518b=_0x245125;return _0x57e69f['usage'](HELP_HEADER_MESSAGE[_0x380f09(0x1bd)])[_0x380f09(0x1c3)](HELP_FOOTER_MESSAGE)[_0x380f09(0x1ad)](_0xed518b[_0x380f09(0x1ab)])['demandCommand']()[_0x380f09(0x1b4)]()[_0x380f09(0x1b5)]()[_0x380f09(0x1b7)](_0xed518b[_0x380f09(0x1be)]);},exports['handler']=function(_0x26ae9e){};function a1_0x3b83(){const _0x3420ad=['../config/constants','builder','epilogue','10JiVNLy','7unzrRh','rPISw','72HRTEOO','commandDir','817AHxCDn','command','2wfgXrd','1122ouxkDq','1431703IxVuCm','4133605fMBfsZ','recommendCommands','strict','8ZmowMf','help','4869513EDCDFh','4804IDyGLL','connect_commands','10149306VuopvG','desc','connect','aelMv','1729475XJzurI','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment'];a1_0x3b83=function(){return _0x3420ad;};return a1_0x3b83();}
1
+ function a1_0x7fa4(){const _0x3f2293=['builder','strict','help','connect','21hXXOMH','1468372uZpGci','wicdm','30984orUGlF','112748nfOdlr','15732846HvUNRp','295hiBgtz','recommendCommands','epilogue','usage','746194ABbUgB','1428438BmkZmJ','619064QvNfth','command','handler'];a1_0x7fa4=function(){return _0x3f2293;};return a1_0x7fa4();}function a1_0x5035(_0x46e25c,_0x2ebe99){const _0x7fa403=a1_0x7fa4();return a1_0x5035=function(_0x5035f6,_0x4638b7){_0x5035f6=_0x5035f6-0x13a;let _0x230797=_0x7fa403[_0x5035f6];return _0x230797;},a1_0x5035(_0x46e25c,_0x2ebe99);}const a1_0x427417=a1_0x5035;(function(_0x580ecc,_0x21fbfd){const _0x13f801=a1_0x5035,_0x44be74=_0x580ecc();while(!![]){try{const _0x49a3a4=-parseInt(_0x13f801(0x146))/0x1+-parseInt(_0x13f801(0x14c))/0x2+-parseInt(_0x13f801(0x13a))/0x3+-parseInt(_0x13f801(0x143))/0x4+parseInt(_0x13f801(0x148))/0x5*(-parseInt(_0x13f801(0x145))/0x6)+-parseInt(_0x13f801(0x142))/0x7*(-parseInt(_0x13f801(0x13b))/0x8)+parseInt(_0x13f801(0x147))/0x9;if(_0x49a3a4===_0x21fbfd)break;else _0x44be74['push'](_0x44be74['shift']());}catch(_0x33aca3){_0x44be74['push'](_0x44be74['shift']());}}}(a1_0x7fa4,0x54973));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a1_0x427417(0x13c)]=a1_0x427417(0x141),exports['desc']='Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment',exports[a1_0x427417(0x13e)]=function(_0x2882aa){const _0x2c59e1=a1_0x427417,_0x4085af={};_0x4085af[_0x2c59e1(0x144)]='connect_commands',_0x4085af['qvUQO']=_0x2c59e1(0x140);const _0x29033b=_0x4085af;return _0x2882aa[_0x2c59e1(0x14b)](HELP_HEADER_MESSAGE[_0x2c59e1(0x141)])[_0x2c59e1(0x14a)](HELP_FOOTER_MESSAGE)['commandDir'](_0x29033b[_0x2c59e1(0x144)])['demandCommand']()[_0x2c59e1(0x149)]()[_0x2c59e1(0x13f)]()['help'](_0x29033b['qvUQO']);},exports[a1_0x427417(0x13d)]=function(_0x32cf83){};
@@ -1 +1 @@
1
- const a2_0x4a71ba=a2_0x7cc9;(function(_0x40d603,_0x1220c9){const _0x321e1b=a2_0x7cc9,_0x1ddfed=_0x40d603();while(!![]){try{const _0x5398d6=-parseInt(_0x321e1b(0x178))/0x1+parseInt(_0x321e1b(0x175))/0x2*(-parseInt(_0x321e1b(0x180))/0x3)+parseInt(_0x321e1b(0x1bc))/0x4*(-parseInt(_0x321e1b(0x198))/0x5)+-parseInt(_0x321e1b(0x16d))/0x6+parseInt(_0x321e1b(0x1a1))/0x7+-parseInt(_0x321e1b(0x17a))/0x8*(-parseInt(_0x321e1b(0x16c))/0x9)+parseInt(_0x321e1b(0x1a2))/0xa;if(_0x5398d6===_0x1220c9)break;else _0x1ddfed['push'](_0x1ddfed['shift']());}catch(_0x463756){_0x1ddfed['push'](_0x1ddfed['shift']());}}}(a2_0x1be0,0x2ebd5));function a2_0x1be0(){const _0x1b7504=['IvXTP','aZICM','advanceOptions','../../config/constants','use-staging','esZzz','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','YzgtW','advance-options','WzpGk','SIGINT','iWYwK','1341rmJEms','1373736WieXqa','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.','iYmDz','handler','isTrialGrid','SIGTERM','desc','rRlre','244772YybASs','cfLPa','epilogue','232708ovzJfd','exit','8424WclrPJ','cVfXl','true','gridId','tIPZX','JVWfc','6LLjUzD','type','bstack-accesskey','Advance\x20options\x20for\x20Browserstack\x20Local','help','usage','hqvCs','string','useStaging','zeOhN','XyCAa','WyKEQ','RZtOE','aVxfL','ZckKm','zgPHW','UNdJY','IvrAg','mbnjP','kpKjb','accessKey','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','../../utils/utilityMethods','qHhLb','323905JBtsNO','MKMVD','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','command','../../config/logger','tpHCH','rtiiX','grid','DYOVw','2356291MDZbEA','5987140nwDYSA','error','customRepeaters','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','MusFv','lkCuy','iMdzV','dGevh','BnAdi','UHkEi','myuKr','builder','tIpWD','csVeW','demandOption','browserStackLocalOptions','ortyP','Grid\x20type:\x20Trial','isRunning','description','bGBUu','bstack-username','argv','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','YsrRi','create','12FrkuUr','bstackAccesskey','WMrWE','awZOx','grid-id','OEkkO','aYoPj','nfGIV','pQGCp','options','dvNwt','kRrLY','HmEcQ','mcpvu','info','fSipd'];a2_0x1be0=function(){return _0x1b7504;};return a2_0x1be0();}function a2_0x7cc9(_0x59c583,_0x2e3b72){const _0x1be0b2=a2_0x1be0();return a2_0x7cc9=function(_0x7cc91e,_0x2483c6){_0x7cc91e=_0x7cc91e-0x15c;let _0x2ae5a3=_0x1be0b2[_0x7cc91e];return _0x2ae5a3;},a2_0x7cc9(_0x59c583,_0x2e3b72);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a2_0x4a71ba(0x162)),{logger}=require(a2_0x4a71ba(0x19c)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a2_0x4a71ba(0x196));exports[a2_0x4a71ba(0x19b)]=a2_0x4a71ba(0x19f),exports[a2_0x4a71ba(0x173)]=a2_0x4a71ba(0x195),exports[a2_0x4a71ba(0x1ad)]=_0x3c0168=>{const _0x3b9786=a2_0x4a71ba,_0x4d9724={};_0x4d9724[_0x3b9786(0x1ab)]=_0x3b9786(0x165),_0x4d9724[_0x3b9786(0x1a8)]='string',_0x4d9724['ClDqH']=_0x3b9786(0x19a),_0x4d9724[_0x3b9786(0x190)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x4d9724[_0x3b9786(0x18f)]=_0x3b9786(0x1a5),_0x4d9724[_0x3b9786(0x1ba)]=_0x3b9786(0x183),_0x4d9724[_0x3b9786(0x191)]=_0x3b9786(0x184);const _0x52c1aa=_0x4d9724,_0x3d59dc={};_0x3d59dc[_0x3b9786(0x1b5)]=_0x52c1aa[_0x3b9786(0x1ab)],_0x3d59dc['type']=_0x52c1aa['iMdzV'];const _0x53c7f8={};_0x53c7f8[_0x3b9786(0x1b5)]=_0x52c1aa['ClDqH'],_0x53c7f8[_0x3b9786(0x181)]=_0x52c1aa[_0x3b9786(0x1a8)];const _0x5613e2={};_0x5613e2['demandOption']=!![],_0x5613e2[_0x3b9786(0x1b5)]=_0x52c1aa[_0x3b9786(0x190)],_0x5613e2[_0x3b9786(0x181)]=_0x52c1aa['iMdzV'];const _0x1872e5={};_0x1872e5['description']=_0x52c1aa[_0x3b9786(0x18f)],_0x1872e5[_0x3b9786(0x181)]=_0x52c1aa[_0x3b9786(0x1a8)];const _0x56501c={};_0x56501c[_0x3b9786(0x1b5)]=_0x52c1aa['YsrRi'],_0x56501c[_0x3b9786(0x181)]=_0x52c1aa[_0x3b9786(0x1a8)];const _0x5da653={};return _0x5da653[_0x3b9786(0x1b7)]=_0x3d59dc,_0x5da653[_0x3b9786(0x182)]=_0x53c7f8,_0x5da653[_0x3b9786(0x1c0)]=_0x5613e2,_0x5da653[_0x3b9786(0x163)]=_0x1872e5,_0x5da653[_0x3b9786(0x168)]=_0x56501c,_0x3c0168[_0x3b9786(0x185)](HELP_HEADER_MESSAGE[_0x3b9786(0x1bb)])[_0x3b9786(0x177)](HELP_FOOTER_MESSAGE)[_0x3b9786(0x1c5)](_0x5da653)[_0x3b9786(0x184)](_0x52c1aa['IvrAg'])[_0x3b9786(0x1b8)];},exports[a2_0x4a71ba(0x170)]=async _0x22e454=>{const _0x4c9718=a2_0x4a71ba,_0x37172f={'XyCAa':function(_0x3aa6a7,_0x376a7d){return _0x3aa6a7(_0x376a7d);},'iYmDz':function(_0x37f76d,_0x5ddbc1){return _0x37f76d!==_0x5ddbc1;},'tIpWD':_0x4c9718(0x1a6),'pQGCp':_0x4c9718(0x193),'rtiiX':function(_0x439959,_0x430461){return _0x439959==_0x430461;},'awZOx':function(_0x1f4772,_0x5a4838){return _0x1f4772(_0x5a4838);},'DYOVw':function(_0x19889e,_0x58d8dc){return _0x19889e(_0x58d8dc);},'csVeW':function(_0x49af66,_0x5b01f5){return _0x49af66(_0x5b01f5);},'BnAdi':'beforeExit','HmEcQ':_0x4c9718(0x16a),'ZckKm':_0x4c9718(0x172),'MtjOn':function(_0x3e9bf0,_0x5d5277){return _0x3e9bf0===_0x5d5277;},'ortyP':_0x4c9718(0x1c1),'kcxCJ':_0x4c9718(0x1a9),'iWYwK':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','dvNwt':_0x4c9718(0x187),'esZzz':_0x4c9718(0x19a),'zeOhN':'Pass\x20the\x20ID\x20of\x20the\x20Grid','LlAhk':'Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','IvXTP':_0x4c9718(0x183),'pYfyL':_0x4c9718(0x184),'MKMVD':function(_0x2b54bf,_0x10aa6b){return _0x2b54bf(_0x10aa6b);},'gFjtC':function(_0x2c4b8a,_0x55442c){return _0x2c4b8a(_0x55442c);},'aYoPj':function(_0x8447e3,_0x38752d,_0x5c4682){return _0x8447e3(_0x38752d,_0x5c4682);},'tpHCH':function(_0x6c930d,_0x24d7e1){return _0x6c930d&&_0x24d7e1;},'kRrLY':function(_0x5b67bd,_0x24b315){return _0x5b67bd===_0x24b315;},'YzgtW':'smCAe','WzpGk':_0x4c9718(0x1be),'mbnjP':function(_0x5ac9ea,_0x20dd91,_0x4b55e8,_0x4088da){return _0x5ac9ea(_0x20dd91,_0x4b55e8,_0x4088da);},'tIPZX':function(_0x28e0,_0x38f3f1){return _0x28e0===_0x38f3f1;},'cVfXl':_0x4c9718(0x1b6),'KdWRf':'VQvmh','WyKEQ':_0x4c9718(0x17c),'hqvCs':function(_0x71da27,_0x3006ad){return _0x71da27===_0x3006ad;},'ZHoUd':_0x4c9718(0x18d),'nfGIV':_0x4c9718(0x15e),'myuKr':function(_0x2224db,_0x2da0b1){return _0x2224db===_0x2da0b1;},'qHhLb':_0x4c9718(0x176),'rRlre':function(_0x43073b,_0x18ce76){return _0x43073b!==_0x18ce76;},'ElxNN':_0x4c9718(0x1a7),'zxlWf':'QtxeE'};let _0x160471=_0x22e454['bstackUsername'],_0xeebe77=_0x22e454[_0x4c9718(0x1bd)],_0x1ee705=_0x22e454[_0x4c9718(0x161)];const _0x4c7dda=_0x2cbb42=>{const _0x27a71f=_0x4c9718;_0x37172f[_0x27a71f(0x16f)](_0x37172f[_0x27a71f(0x1ae)],_0x37172f[_0x27a71f(0x1c4)])?(logger[_0x27a71f(0x1a3)](_0x2cbb42),process[_0x27a71f(0x179)](0x1)):_0x37172f[_0x27a71f(0x18a)](_0x2023b3,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier');};[_0x160471,_0xeebe77]=_0x37172f[_0x4c9718(0x1c2)](fetchOrUpdateUserConfig,_0x160471,_0xeebe77);!_0x37172f[_0x4c9718(0x19d)](_0x160471,_0xeebe77)&&(_0x37172f[_0x4c9718(0x1c7)](_0x37172f[_0x4c9718(0x167)],_0x37172f[_0x4c9718(0x169)])?(_0x553794++,_0x37172f[_0x4c9718(0x19e)](_0x359dc7,0x1)&&_0x7f60e0&&_0x160542[_0x4c9718(0x1b4)]()&&_0x37172f[_0x4c9718(0x1bf)](_0x55bacb,_0x49f4f8)):_0x37172f[_0x4c9718(0x1bf)](_0x4c7dda,'Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey'));let _0x6daad=_0x22e454[_0x4c9718(0x17d)],_0x49d0e6=await _0x37172f[_0x4c9718(0x192)](getGridDetails,_0x160471,_0xeebe77,_0x6daad);!_0x49d0e6&&(_0x37172f[_0x4c9718(0x17e)](_0x37172f[_0x4c9718(0x17b)],_0x37172f['KdWRf'])?_0x37172f[_0x4c9718(0x1bf)](_0x22decc,_0x4c9718(0x166)):_0x37172f['XyCAa'](_0x4c7dda,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier'));let _0x21dd33=_0x37172f[_0x4c9718(0x1c7)](_0x22e454[_0x4c9718(0x188)],_0x37172f[_0x4c9718(0x18b)])?!![]:![];if(_0x49d0e6&&_0x49d0e6[_0x4c9718(0x171)]&&_0x21dd33){if(_0x37172f[_0x4c9718(0x186)](_0x37172f['ZHoUd'],_0x37172f[_0x4c9718(0x1c3)]))_0x37172f[_0x4c9718(0x1a0)](_0x3e38e4,_0x4c9718(0x1b9));else{logMessage=_0x4c9718(0x1b3),logger[_0x4c9718(0x15d)](logMessage);try{if(_0x37172f[_0x4c9718(0x1ac)](_0x37172f['qHhLb'],_0x37172f[_0x4c9718(0x197)])){const _0x6b710e={};_0x6b710e[_0x4c9718(0x194)]=_0xeebe77,_0x6b710e[_0x4c9718(0x1a4)]=_0x49d0e6['customRepeaters'],_0x6b710e['browserStackLocalOptions']=_0x1ee705;const _0x1bbf19=_0x6b710e,_0x30504b=_0x37172f[_0x4c9718(0x1bf)](startLocalBinarySync,_0x1bbf19);let _0x1568ba=0x0;const _0x2121cb=async()=>{const _0x53f81e=_0x4c9718;if(_0x37172f['MtjOn'](_0x37172f[_0x53f81e(0x1b2)],_0x37172f['kcxCJ'])){const _0x457172={'RZtOE':function(_0xa9b617,_0x1d6efe){const _0x1a8ce4=_0x53f81e;return _0x37172f[_0x1a8ce4(0x19e)](_0xa9b617,_0x1d6efe);},'aZICM':function(_0x4a317e,_0x4a1212){const _0x110cee=_0x53f81e;return _0x37172f[_0x110cee(0x1af)](_0x4a317e,_0x4a1212);}},_0x8c0a04={};_0x8c0a04[_0x53f81e(0x194)]=_0x57298d,_0x8c0a04['customRepeaters']=_0x47e796[_0x53f81e(0x1a4)],_0x8c0a04[_0x53f81e(0x1b1)]=_0x844054;const _0x3e0c8c=_0x8c0a04,_0x9e2d1f=_0x37172f[_0x53f81e(0x1bf)](_0x29a691,_0x3e0c8c);let _0x39b9c4=0x0;const _0x180e08=async()=>{const _0xace2ed=_0x53f81e;_0x39b9c4++,_0x457172[_0xace2ed(0x18c)](_0x39b9c4,0x1)&&_0x9e2d1f&&_0x9e2d1f[_0xace2ed(0x1b4)]()&&_0x457172[_0xace2ed(0x160)](_0x3f0708,_0x9e2d1f);};_0x49f614['on'](_0x37172f[_0x53f81e(0x1aa)],_0x180e08),_0x2c0894['on'](_0x37172f['HmEcQ'],_0x180e08),_0x5a9edb['on'](_0x37172f[_0x53f81e(0x18e)],_0x180e08),_0x357d86='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.',_0x569f3a[_0x53f81e(0x15d)](_0x17582f);}else _0x1568ba++,_0x37172f[_0x53f81e(0x19e)](_0x1568ba,0x1)&&_0x30504b&&_0x30504b[_0x53f81e(0x1b4)]()&&_0x37172f[_0x53f81e(0x1a0)](stopLocalBinary,_0x30504b);};process['on'](_0x37172f[_0x4c9718(0x1aa)],_0x2121cb),process['on'](_0x37172f[_0x4c9718(0x1c8)],_0x2121cb),process['on'](_0x37172f[_0x4c9718(0x18e)],_0x2121cb),logMessage='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.',logger['info'](logMessage);}else{const _0x4ebcd6={};_0x4ebcd6[_0x4c9718(0x1b5)]=_0x37172f[_0x4c9718(0x16b)],_0x4ebcd6[_0x4c9718(0x181)]=_0x37172f[_0x4c9718(0x1c6)];const _0x503e47={};_0x503e47[_0x4c9718(0x1b5)]=_0x37172f[_0x4c9718(0x164)],_0x503e47['type']=_0x37172f[_0x4c9718(0x1c6)];const _0x2add1a={};_0x2add1a[_0x4c9718(0x1b0)]=!![],_0x2add1a[_0x4c9718(0x1b5)]=_0x37172f[_0x4c9718(0x189)],_0x2add1a[_0x4c9718(0x181)]=_0x37172f[_0x4c9718(0x1c6)];const _0x372c5d={};_0x372c5d[_0x4c9718(0x1b5)]=_0x37172f['LlAhk'],_0x372c5d[_0x4c9718(0x181)]=_0x37172f[_0x4c9718(0x1c6)];const _0x5f389c={};_0x5f389c[_0x4c9718(0x1b5)]=_0x37172f[_0x4c9718(0x15f)],_0x5f389c[_0x4c9718(0x181)]=_0x37172f[_0x4c9718(0x1c6)];const _0x435f6b={};return _0x435f6b[_0x4c9718(0x1b7)]=_0x4ebcd6,_0x435f6b[_0x4c9718(0x182)]=_0x503e47,_0x435f6b[_0x4c9718(0x1c0)]=_0x2add1a,_0x435f6b[_0x4c9718(0x163)]=_0x372c5d,_0x435f6b['advance-options']=_0x5f389c,_0x995b8f[_0x4c9718(0x185)](_0x20a796[_0x4c9718(0x1bb)])[_0x4c9718(0x177)](_0x4d9eca)[_0x4c9718(0x1c5)](_0x435f6b)[_0x4c9718(0x184)](_0x37172f['pYfyL'])[_0x4c9718(0x1b8)];}}catch(_0x1f31e0){if(_0x37172f[_0x4c9718(0x174)](_0x37172f['ElxNN'],_0x37172f['zxlWf']))_0x37172f[_0x4c9718(0x1af)](_0x4c7dda,_0x4c9718(0x166));else{const _0x32fb49={'mcpvu':function(_0xc372c0,_0x65027e){return _0x37172f['rtiiX'](_0xc372c0,_0x65027e);},'JVWfc':function(_0x3e1425,_0xaa4749){const _0x2d0beb=_0x4c9718;return _0x37172f[_0x2d0beb(0x199)](_0x3e1425,_0xaa4749);}};_0x7798e2=_0x4c9718(0x1b3),_0x40853f[_0x4c9718(0x15d)](_0x5a1fda);try{const _0x4c656d={};_0x4c656d[_0x4c9718(0x194)]=_0x11dcc9,_0x4c656d[_0x4c9718(0x1a4)]=_0x4129fc['customRepeaters'],_0x4c656d['browserStackLocalOptions']=_0x4fe832;const _0x456e16=_0x4c656d,_0x5123c5=_0x37172f['gFjtC'](_0x259358,_0x456e16);let _0x19882f=0x0;const _0x1029dd=async()=>{const _0x3e3dc9=_0x4c9718;_0x19882f++,_0x32fb49[_0x3e3dc9(0x15c)](_0x19882f,0x1)&&_0x5123c5&&_0x5123c5[_0x3e3dc9(0x1b4)]()&&_0x32fb49[_0x3e3dc9(0x17f)](_0x4f7a06,_0x5123c5);};_0x448e78['on'](_0x37172f[_0x4c9718(0x1aa)],_0x1029dd),_0x5d761b['on'](_0x37172f['HmEcQ'],_0x1029dd),_0x18b536['on'](_0x37172f['ZckKm'],_0x1029dd),_0x5070d7=_0x4c9718(0x16e),_0x3c29a4[_0x4c9718(0x15d)](_0x5e1474);}catch(_0x5ed3c9){_0x37172f[_0x4c9718(0x1af)](_0x464429,_0x4c9718(0x166));}}}}}process['exit'](0x0);};
1
+ const a2_0x425b8e=a2_0x3a30;function a2_0x4f03(){const _0x50b86d=['uHMrj','usage','argv','handler','AdOZy','string','isRunning','TtGLK','YSiuQ','1158437AynQGa','Grid\x20type:\x20Trial','105266xQkFTl','vhDCi','error','22HnCvRX','ThYFV','yyWZh','customRepeaters','BaUaM','fjIjv','2098311HdzPkK','type','IGSaA','grid','eYpaH','uPjju','XwHkk','grid-id','Advance\x20options\x20for\x20Browserstack\x20Local','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','DnjHh','eXbbF','659385yjypRJ','advanceOptions','GfcJn','UWRum','mjpuw','exit','lDfYZ','KxSCh','true','JGuUI','jCjgU','KLjGI','DVlXN','zrfof','Pass\x20the\x20ID\x20of\x20the\x20Grid','options','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','qlZRX','ZOrJW','bdtJO','mZidF','bstack-username','24488250HFtJeZ','description','create','3125512upEmmS','advance-options','AUDpv','SIGTERM','useStaging','QLnIk','Dizzg','NFMWv','accessKey','bstack-accesskey','epilogue','aTKQS','UNzCj','CYksA','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','fsPBX','demandOption','ZtqLv','eiImt','gridId','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','command','sXSvO','NsXvg','../../config/constants','SrHSn','builder','ALkcG','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.','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','use-staging','browserStackLocalOptions','WHxUv','bstackAccesskey','BKRHf','136ENCESC','RhikL','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','info','ajtlQ','fLyuT','help','hOUnh','../../config/logger','hoaQK','4819355MzTUAz','6okEskM'];a2_0x4f03=function(){return _0x50b86d;};return a2_0x4f03();}(function(_0x5b8eec,_0x44ed43){const _0x4b27b9=a2_0x3a30,_0x18dffd=_0x5b8eec();while(!![]){try{const _0x5af8f5=-parseInt(_0x4b27b9(0x1f6))/0x1*(parseInt(_0x4b27b9(0x1f3))/0x2)+parseInt(_0x4b27b9(0x1fc))/0x3+parseInt(_0x4b27b9(0x221))/0x4+-parseInt(_0x4b27b9(0x24f))/0x5*(parseInt(_0x4b27b9(0x1e7))/0x6)+parseInt(_0x4b27b9(0x1f1))/0x7+parseInt(_0x4b27b9(0x245))/0x8*(-parseInt(_0x4b27b9(0x208))/0x9)+parseInt(_0x4b27b9(0x21e))/0xa;if(_0x5af8f5===_0x44ed43)break;else _0x18dffd['push'](_0x18dffd['shift']());}catch(_0x3d8abd){_0x18dffd['push'](_0x18dffd['shift']());}}}(a2_0x4f03,0xb1b15));function a2_0x3a30(_0x59c56e,_0x223dcf){const _0x4f0363=a2_0x4f03();return a2_0x3a30=function(_0x3a30bc,_0x4a0bbd){_0x3a30bc=_0x3a30bc-0x1e7;let _0x4b452c=_0x4f0363[_0x3a30bc];return _0x4b452c;},a2_0x3a30(_0x59c56e,_0x223dcf);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a2_0x425b8e(0x239)),{logger}=require(a2_0x425b8e(0x24d)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');exports[a2_0x425b8e(0x236)]=a2_0x425b8e(0x1ff),exports['desc']=a2_0x425b8e(0x218),exports[a2_0x425b8e(0x23b)]=_0x51df3d=>{const _0x249c62=a2_0x425b8e,_0x509dff={};_0x509dff[_0x249c62(0x1f8)]=_0x249c62(0x247),_0x509dff[_0x249c62(0x201)]=_0x249c62(0x1ed),_0x509dff[_0x249c62(0x238)]=_0x249c62(0x23f),_0x509dff[_0x249c62(0x223)]=_0x249c62(0x216),_0x509dff['RhikL']=_0x249c62(0x23e),_0x509dff[_0x249c62(0x249)]=_0x249c62(0x204),_0x509dff[_0x249c62(0x227)]=_0x249c62(0x24b);const _0xbf7b8e=_0x509dff,_0x578cf6={};_0x578cf6[_0x249c62(0x21f)]=_0xbf7b8e['yyWZh'],_0x578cf6[_0x249c62(0x1fd)]=_0xbf7b8e['uPjju'];const _0x3d9678={};_0x3d9678[_0x249c62(0x21f)]=_0xbf7b8e[_0x249c62(0x238)],_0x3d9678[_0x249c62(0x1fd)]=_0xbf7b8e['uPjju'];const _0x2a2123={};_0x2a2123[_0x249c62(0x231)]=!![],_0x2a2123[_0x249c62(0x21f)]=_0xbf7b8e[_0x249c62(0x223)],_0x2a2123[_0x249c62(0x1fd)]=_0xbf7b8e[_0x249c62(0x201)];const _0x1595ef={};_0x1595ef[_0x249c62(0x21f)]=_0xbf7b8e[_0x249c62(0x246)],_0x1595ef[_0x249c62(0x1fd)]=_0xbf7b8e[_0x249c62(0x201)];const _0x2ab293={};_0x2ab293['description']=_0xbf7b8e[_0x249c62(0x249)],_0x2ab293[_0x249c62(0x1fd)]=_0xbf7b8e['uPjju'];const _0x5397c2={};return _0x5397c2[_0x249c62(0x21d)]=_0x578cf6,_0x5397c2[_0x249c62(0x22a)]=_0x3d9678,_0x5397c2[_0x249c62(0x203)]=_0x2a2123,_0x5397c2[_0x249c62(0x240)]=_0x1595ef,_0x5397c2[_0x249c62(0x222)]=_0x2ab293,_0x51df3d[_0x249c62(0x1e9)](HELP_HEADER_MESSAGE[_0x249c62(0x220)])[_0x249c62(0x22b)](HELP_FOOTER_MESSAGE)[_0x249c62(0x217)](_0x5397c2)[_0x249c62(0x24b)](_0xbf7b8e[_0x249c62(0x227)])['argv'];},exports[a2_0x425b8e(0x1eb)]=async _0xd65302=>{const _0x3a9ad8=a2_0x425b8e,_0x2418da={'uHMrj':function(_0xbe8cef,_0x447ac5){return _0xbe8cef(_0x447ac5);},'BKRHf':'beforeExit','jCjgU':'SIGINT','eXbbF':_0x3a9ad8(0x224),'TtGLK':function(_0xde1d16,_0x301b01){return _0xde1d16==_0x301b01;},'zrfof':function(_0x56af41,_0x182587){return _0x56af41(_0x182587);},'ZOrJW':function(_0x549b9b,_0x2f3227){return _0x549b9b===_0x2f3227;},'iFqqc':_0x3a9ad8(0x214),'QLnIk':_0x3a9ad8(0x232),'mZidF':function(_0x452f63,_0xdfed31){return _0x452f63==_0xdfed31;},'sXSvO':_0x3a9ad8(0x247),'fsPBX':'string','KxSCh':_0x3a9ad8(0x23f),'FmMUb':_0x3a9ad8(0x216),'cbcbH':_0x3a9ad8(0x23e),'fLyuT':_0x3a9ad8(0x204),'aTKQS':_0x3a9ad8(0x24b),'XwHkk':'iKrnI','lDfYZ':'NwBFk','eiImt':function(_0x59285c,_0x35910f){return _0x59285c==_0x35910f;},'bdtJO':function(_0x62225,_0x39902b){return _0x62225(_0x39902b);},'JEPxZ':function(_0xe0744,_0x4cd7f4,_0x2875f7){return _0xe0744(_0x4cd7f4,_0x2875f7);},'UWRum':function(_0x35c475,_0x5e49c0){return _0x35c475&&_0x5e49c0;},'ALkcG':function(_0x244b6d,_0x22c4c1){return _0x244b6d!==_0x22c4c1;},'CYksA':_0x3a9ad8(0x206),'hoaQK':_0x3a9ad8(0x20a),'JGuUI':function(_0x5a1a20,_0x424051,_0x12accd,_0x262786){return _0x5a1a20(_0x424051,_0x12accd,_0x262786);},'BaUaM':function(_0x398523,_0x279385){return _0x398523===_0x279385;},'hOUnh':_0x3a9ad8(0x1fb),'NFMWv':function(_0x4bbf60,_0x652b58){return _0x4bbf60(_0x652b58);},'IGSaA':function(_0x51f130,_0x265b3b){return _0x51f130===_0x265b3b;},'ThYFV':_0x3a9ad8(0x210),'YSiuQ':function(_0x9e09e0,_0x7c7cc){return _0x9e09e0===_0x7c7cc;},'qRrEr':_0x3a9ad8(0x1ec),'eJOpp':_0x3a9ad8(0x23a),'UIhbM':function(_0x450be6,_0x4307e2){return _0x450be6===_0x4307e2;},'KLjGI':_0x3a9ad8(0x1f4),'eaAXJ':_0x3a9ad8(0x242),'mjpuw':_0x3a9ad8(0x219)};let _0x181337=_0xd65302['bstackUsername'],_0x48f5df=_0xd65302[_0x3a9ad8(0x243)],_0x86de6f=_0xd65302[_0x3a9ad8(0x209)];const _0x48275e=_0x53e7f6=>{const _0x29c786=_0x3a9ad8,_0x390cf5={'eYpaH':function(_0xe781a9,_0x264154){const _0x59bffa=a2_0x3a30;return _0x2418da[_0x59bffa(0x1ef)](_0xe781a9,_0x264154);},'ShBPy':function(_0x21b6c9,_0x4e7c35){const _0x2fb693=a2_0x3a30;return _0x2418da[_0x2fb693(0x215)](_0x21b6c9,_0x4e7c35);}};if(_0x2418da[_0x29c786(0x21a)](_0x2418da['iFqqc'],_0x2418da[_0x29c786(0x226)])){_0xa23f0a='Grid\x20type:\x20Trial',_0x51e620[_0x29c786(0x248)](_0x1383dd);try{const _0x337101={};_0x337101['accessKey']=_0x4b681f,_0x337101[_0x29c786(0x1f9)]=_0x47cd64[_0x29c786(0x1f9)],_0x337101[_0x29c786(0x241)]=_0xcb8030;const _0x51cedb=_0x337101,_0x1f61c0=_0x2418da[_0x29c786(0x1e8)](_0x1bbbb1,_0x51cedb);let _0x1d9e25=0x0;const _0xe6fc74=async()=>{const _0x5b8697=_0x29c786;_0x1d9e25++,_0x390cf5[_0x5b8697(0x200)](_0x1d9e25,0x1)&&_0x1f61c0&&_0x1f61c0[_0x5b8697(0x1ee)]()&&_0x390cf5['ShBPy'](_0x53edfd,_0x1f61c0);};_0x3d0da7['on'](_0x2418da[_0x29c786(0x244)],_0xe6fc74),_0x169092['on'](_0x2418da[_0x29c786(0x212)],_0xe6fc74),_0xdcd3f1['on'](_0x2418da[_0x29c786(0x207)],_0xe6fc74),_0x105c27=_0x29c786(0x23d),_0x329672['info'](_0x50ed2d);}catch(_0x2ef587){_0x2418da[_0x29c786(0x1e8)](_0x12eb5a,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}else logger[_0x29c786(0x1f5)](_0x53e7f6),process[_0x29c786(0x20d)](0x1);};[_0x181337,_0x48f5df]=_0x2418da['JEPxZ'](fetchOrUpdateUserConfig,_0x181337,_0x48f5df);!_0x2418da[_0x3a9ad8(0x20b)](_0x181337,_0x48f5df)&&(_0x2418da[_0x3a9ad8(0x23c)](_0x2418da[_0x3a9ad8(0x22e)],_0x2418da[_0x3a9ad8(0x24e)])?_0x2418da['bdtJO'](_0x48275e,_0x3a9ad8(0x235)):(_0x23a8d6++,_0x2418da[_0x3a9ad8(0x21c)](_0x34adef,0x1)&&_0x1d7217&&_0x59d6cc['isRunning']()&&_0x2418da['zrfof'](_0x4c95a5,_0xc3c5f1)));let _0x30f4bf=_0xd65302[_0x3a9ad8(0x234)],_0x35b980=await _0x2418da[_0x3a9ad8(0x211)](getGridDetails,_0x181337,_0x48f5df,_0x30f4bf);if(!_0x35b980){if(_0x2418da[_0x3a9ad8(0x1fa)](_0x2418da['hOUnh'],_0x2418da[_0x3a9ad8(0x24c)]))_0x2418da[_0x3a9ad8(0x228)](_0x48275e,_0x3a9ad8(0x205));else{const _0x1da2ae={};_0x1da2ae[_0x3a9ad8(0x21f)]=_0x2418da[_0x3a9ad8(0x237)],_0x1da2ae['type']=_0x2418da[_0x3a9ad8(0x230)];const _0x318fb9={};_0x318fb9[_0x3a9ad8(0x21f)]=_0x2418da[_0x3a9ad8(0x20f)],_0x318fb9[_0x3a9ad8(0x1fd)]=_0x2418da[_0x3a9ad8(0x230)];const _0x3465c9={};_0x3465c9[_0x3a9ad8(0x231)]=!![],_0x3465c9[_0x3a9ad8(0x21f)]=_0x2418da['FmMUb'],_0x3465c9[_0x3a9ad8(0x1fd)]=_0x2418da[_0x3a9ad8(0x230)];const _0x4dded5={};_0x4dded5[_0x3a9ad8(0x21f)]=_0x2418da['cbcbH'],_0x4dded5[_0x3a9ad8(0x1fd)]=_0x2418da[_0x3a9ad8(0x230)];const _0x287db6={};_0x287db6[_0x3a9ad8(0x21f)]=_0x2418da[_0x3a9ad8(0x24a)],_0x287db6['type']=_0x2418da[_0x3a9ad8(0x230)];const _0x2e5a6e={};return _0x2e5a6e['bstack-username']=_0x1da2ae,_0x2e5a6e[_0x3a9ad8(0x22a)]=_0x318fb9,_0x2e5a6e[_0x3a9ad8(0x203)]=_0x3465c9,_0x2e5a6e[_0x3a9ad8(0x240)]=_0x4dded5,_0x2e5a6e[_0x3a9ad8(0x222)]=_0x287db6,_0x1bc7d0['usage'](_0x37fb53[_0x3a9ad8(0x220)])[_0x3a9ad8(0x22b)](_0x19081b)[_0x3a9ad8(0x217)](_0x2e5a6e)[_0x3a9ad8(0x24b)](_0x2418da[_0x3a9ad8(0x22c)])[_0x3a9ad8(0x1ea)];}}let _0x578aa4=_0x2418da[_0x3a9ad8(0x1fe)](_0xd65302[_0x3a9ad8(0x225)],_0x2418da[_0x3a9ad8(0x1f7)])?!![]:![];if(_0x35b980&&_0x35b980['isTrialGrid']&&_0x578aa4){if(_0x2418da[_0x3a9ad8(0x1f0)](_0x2418da['qRrEr'],_0x2418da['eJOpp']))_0x5053b6[_0x3a9ad8(0x1f5)](_0x57027c),_0x3a6ed8[_0x3a9ad8(0x20d)](0x1);else{logMessage=_0x3a9ad8(0x1f2),logger['info'](logMessage);try{if(_0x2418da['UIhbM'](_0x2418da[_0x3a9ad8(0x213)],_0x2418da['eaAXJ']))_0x2418da[_0x3a9ad8(0x1e8)](_0x3c45a9,_0x3a9ad8(0x205));else{const _0x52fa34={};_0x52fa34[_0x3a9ad8(0x229)]=_0x48f5df,_0x52fa34[_0x3a9ad8(0x1f9)]=_0x35b980[_0x3a9ad8(0x1f9)],_0x52fa34[_0x3a9ad8(0x241)]=_0x86de6f;const _0x2ccc3d=_0x52fa34,_0x50aca1=_0x2418da[_0x3a9ad8(0x215)](startLocalBinarySync,_0x2ccc3d);let _0x1a675d=0x0;const _0x1fc488=async()=>{const _0x1c4e01=_0x3a9ad8,_0x1e04ec={'UNzCj':function(_0x119455,_0x4b26e3){return _0x2418da['uHMrj'](_0x119455,_0x4b26e3);}};_0x2418da[_0x1c4e01(0x21a)](_0x2418da[_0x1c4e01(0x202)],_0x2418da[_0x1c4e01(0x20e)])?_0x1e04ec[_0x1c4e01(0x22d)](_0x45f69d,_0x1c4e01(0x235)):(_0x1a675d++,_0x2418da[_0x1c4e01(0x233)](_0x1a675d,0x1)&&_0x50aca1&&_0x50aca1['isRunning']()&&_0x2418da[_0x1c4e01(0x21b)](stopLocalBinary,_0x50aca1));};process['on'](_0x2418da[_0x3a9ad8(0x244)],_0x1fc488),process['on'](_0x2418da[_0x3a9ad8(0x212)],_0x1fc488),process['on'](_0x2418da[_0x3a9ad8(0x207)],_0x1fc488),logMessage=_0x3a9ad8(0x23d),logger['info'](logMessage);}}catch(_0x42a761){_0x2418da[_0x3a9ad8(0x23c)](_0x2418da['mjpuw'],_0x2418da[_0x3a9ad8(0x20c)])?_0x2418da[_0x3a9ad8(0x1e8)](_0x328a2d,_0x3a9ad8(0x22f)):_0x2418da[_0x3a9ad8(0x228)](_0x48275e,_0x3a9ad8(0x22f));}}}process[_0x3a9ad8(0x20d)](0x0);};
@@ -1 +1 @@
1
- const a3_0x1d5416=a3_0x59a0;(function(_0x30c099,_0x5b5537){const _0x17e301=a3_0x59a0,_0x116b4b=_0x30c099();while(!![]){try{const _0x41d0fd=parseInt(_0x17e301(0x18a))/0x1+parseInt(_0x17e301(0x180))/0x2*(parseInt(_0x17e301(0x17b))/0x3)+parseInt(_0x17e301(0x179))/0x4+parseInt(_0x17e301(0x177))/0x5+-parseInt(_0x17e301(0x189))/0x6*(parseInt(_0x17e301(0x187))/0x7)+parseInt(_0x17e301(0x178))/0x8+-parseInt(_0x17e301(0x17a))/0x9*(parseInt(_0x17e301(0x18c))/0xa);if(_0x41d0fd===_0x5b5537)break;else _0x116b4b['push'](_0x116b4b['shift']());}catch(_0x587e5f){_0x116b4b['push'](_0x116b4b['shift']());}}}(a3_0x217f,0xeb830));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a3_0x1d5416(0x17e));function a3_0x59a0(_0x2bd386,_0x13a5d8){const _0x217f99=a3_0x217f();return a3_0x59a0=function(_0x59a0a7,_0x9c4358){_0x59a0a7=_0x59a0a7-0x177;let _0x176a59=_0x217f99[_0x59a0a7];return _0x176a59;},a3_0x59a0(_0x2bd386,_0x13a5d8);}exports[a3_0x1d5416(0x183)]=a3_0x1d5416(0x184),exports['desc']=a3_0x1d5416(0x186),exports[a3_0x1d5416(0x17f)]=function(_0x1e27fa){const _0x49547b=a3_0x1d5416,_0x51c29f={};_0x51c29f[_0x49547b(0x18b)]=_0x49547b(0x182),_0x51c29f[_0x49547b(0x185)]=_0x49547b(0x17d);const _0x4be832=_0x51c29f;return _0x1e27fa['usage'](HELP_HEADER_MESSAGE[_0x49547b(0x184)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x49547b(0x17c)](_0x4be832['QLZSA'])[_0x49547b(0x181)]()['recommendCommands']()[_0x49547b(0x188)]()['help'](_0x4be832[_0x49547b(0x185)]);},exports['handler']=function(_0xc39a87){};function a3_0x217f(){const _0x2884ec=['62292tOnCRt','336289NpbjWl','QLZSA','1300240mytnoH','219840nvekqS','9709280PAJRYZ','6662880hCHYet','99mmOANA','3HJYKGI','commandDir','help','../config/constants','builder','56270cqqTkQ','demandCommand','create_commands','command','create','bbXoT','Create\x20a\x20new\x20Automation\x20grid.','602GehlZW','strict'];a3_0x217f=function(){return _0x2884ec;};return a3_0x217f();}
1
+ const a3_0x1a87b0=a3_0x33ff;(function(_0x37ce10,_0x3f202d){const _0x3ab266=a3_0x33ff,_0x3cc361=_0x37ce10();while(!![]){try{const _0x387032=parseInt(_0x3ab266(0x126))/0x1+parseInt(_0x3ab266(0x13c))/0x2*(parseInt(_0x3ab266(0x139))/0x3)+-parseInt(_0x3ab266(0x12b))/0x4*(-parseInt(_0x3ab266(0x12d))/0x5)+-parseInt(_0x3ab266(0x12a))/0x6+-parseInt(_0x3ab266(0x134))/0x7+parseInt(_0x3ab266(0x129))/0x8+parseInt(_0x3ab266(0x13a))/0x9;if(_0x387032===_0x3f202d)break;else _0x3cc361['push'](_0x3cc361['shift']());}catch(_0x58eb88){_0x3cc361['push'](_0x3cc361['shift']());}}}(a3_0x50cd,0x2eec4));function a3_0x33ff(_0x522502,_0x1a8eb6){const _0x50cd75=a3_0x50cd();return a3_0x33ff=function(_0x33ff2b,_0xe2a3e7){_0x33ff2b=_0x33ff2b-0x126;let _0x5b8392=_0x50cd75[_0x33ff2b];return _0x5b8392;},a3_0x33ff(_0x522502,_0x1a8eb6);}function a3_0x50cd(){const _0x16ae00=['241490TvgZUQ','73828ueqyKN','demandCommand','epilogue','797280hXmEYW','1836066RNbUcq','12pbaCJp','handler','197575ObSWPd','XtuSf','usage','desc','create','commandDir','Create\x20a\x20new\x20Automation\x20grid.','643342CKwHmq','../config/constants','create_commands','help','strict','3XYPftw','1596015METvKm','builder'];a3_0x50cd=function(){return _0x16ae00;};return a3_0x50cd();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a3_0x1a87b0(0x135));exports['command']='create',exports[a3_0x1a87b0(0x130)]=a3_0x1a87b0(0x133),exports[a3_0x1a87b0(0x13b)]=function(_0x16412a){const _0x1fa492=a3_0x1a87b0,_0x367457={};_0x367457[_0x1fa492(0x12e)]=_0x1fa492(0x136),_0x367457['jaPaL']=_0x1fa492(0x137);const _0x5ea5c4=_0x367457;return _0x16412a[_0x1fa492(0x12f)](HELP_HEADER_MESSAGE[_0x1fa492(0x131)])[_0x1fa492(0x128)](HELP_FOOTER_MESSAGE)[_0x1fa492(0x132)](_0x5ea5c4[_0x1fa492(0x12e)])[_0x1fa492(0x127)]()['recommendCommands']()[_0x1fa492(0x138)]()[_0x1fa492(0x137)](_0x5ea5c4['jaPaL']);},exports[a3_0x1a87b0(0x12c)]=function(_0x525b4d){};
@@ -1 +1 @@
1
- const a4_0x1207b8=a4_0x57f7;function a4_0x57f7(_0x34219d,_0x3f18c2){const _0x448f46=a4_0x448f();return a4_0x57f7=function(_0x57f7cd,_0x4a74bd){_0x57f7cd=_0x57f7cd-0x17e;let _0x4235ad=_0x448f46[_0x57f7cd];return _0x4235ad;},a4_0x57f7(_0x34219d,_0x3f18c2);}(function(_0x53e556,_0x2dfb94){const _0x139133=a4_0x57f7,_0x4c995f=_0x53e556();while(!![]){try{const _0x3b8899=-parseInt(_0x139133(0x22a))/0x1+parseInt(_0x139133(0x1e2))/0x2*(parseInt(_0x139133(0x1f6))/0x3)+-parseInt(_0x139133(0x229))/0x4+-parseInt(_0x139133(0x216))/0x5+parseInt(_0x139133(0x1db))/0x6*(-parseInt(_0x139133(0x191))/0x7)+parseInt(_0x139133(0x1be))/0x8+parseInt(_0x139133(0x1cb))/0x9;if(_0x3b8899===_0x2dfb94)break;else _0x4c995f['push'](_0x4c995f['shift']());}catch(_0x16a12e){_0x4c995f['push'](_0x4c995f['shift']());}}}(a4_0x448f,0x73642));const fs=require('fs'),ws=require('ws'),util=require('util'),ReconnectingWebSocket=require('reconnecting-websocket'),request=require(a4_0x1207b8(0x20a)),{v4:uuidv4}=require(a4_0x1207b8(0x281)),webSocketUtils=require(a4_0x1207b8(0x20b)),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a4_0x1207b8(0x1c4)),{sendAWSInfoToHST}=require(a4_0x1207b8(0x20f)),{isClusterPresent,getClusterInfo,configureAWSIfNotConfigured,createAuthConfigMap,getNodeGroupInfo,isVPCPresent,isSubnetsValid}=require('../../utils/AWSUtils'),{addGridComponents,deleteClusterAndDependencies,removeGridComponents}=require(a4_0x1207b8(0x20d)),{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_0x1207b8(0x28a)),{createClusterStack}=require(a4_0x1207b8(0x2a6)),{createAutoscalerStack}=require(a4_0x1207b8(0x1b8)),{createK8sClient}=require(a4_0x1207b8(0x1bc)),{sendInstrumentationEvent}=require(a4_0x1207b8(0x280)),{deleteClusterStack}=require(a4_0x1207b8(0x188)),promisifiedRequest=util['promisify'](request);function a4_0x448f(){const _0x54bdbc=['vdwVq','method','trxMY','Subnets:\x20','358oqfiPg','cloudProviderAccessKey','4|2|3|0|1','yxvuM','string','gridProfileId','sFskJ','bstackUsername','Zsqwb','Found\x20Subnets:\x20','ahsGN','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','secret','olpfQ','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','bgdgQ','Grid\x20spawned\x20on\x20the\x20cluster','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','description','OUqAf','2913NKzvXa','catch','hUrPx','ZnJTu','toLowerCase','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','xShUp','then','debug','autoscaler-creation-failed','aws','SecurityGroups\x20=>\x20','PfIex','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Autoscaler\x20Role\x20created.ARN:\x20','-NodeGroup','Stacks',',\x20ClusterRole\x20=>\x20','Namespace\x20Created','readFileSync','request','../../utils/webSocketUtils','cloudProvider','../../utils/gridComponents','.\x20Deleting\x20all\x20the\x20stacks','../../utils/hstUtils','builder','Namespace\x20created','CFNvT','https://','jlEIu','body','2201275huCiIF','reportToGalactusAndSendToEDS','user','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','muPwO','cluster','ygWXx','usage','Deleting\x20the\x20CloudFormation\x20Stacks','nodegroup','create','argv','VSukx','NooOJ','default','create-grid-checks-invalid-profile','pre-spawned-subnets-not-selected','cloudProviderSecretKey','addListeners','2761524IBBeLP','740651kwCuQG','LcLJa','4|6|0|1|5|3|2','data','clusterRegion','concurrency','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','rgfFf','delay','PNKmu','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use--grid\x20-\x20name\x20option\x20to\x20provide\x20another\x20grid\x20name','kube-system','vpc','TCNFj','fmfxX','JqljH','FDSlk','qTKyw','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','gridProfile','securityGroups','iNFfw','JvCYa','match','kaIkz','LOG','xIWKY','HANxp','writeFileSync','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.','\x20using\x20\x27','desc',',\x20NodeRole\x20=>\x20','create-grid-checks-grid-already-exists','warning','Cluster\x20','hEczV','password','create-grid-called','DyeRs','qbGhK','PsmBs','Subnets\x20=>\x20','hostname','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Following\x20resources\x20are\x20created:','Outputs','OutputValue','VPC\x20=>\x20','create-grid-checks-auth-failed','srfyO','WpTka','DnEwW','nPpLp','spkVk','ujHNe','ApsUY','usxaB','ZmgON','grid','QdyuV','\x27\x20grid\x20profile','akVEt','LINlD','xwDXn','kxfZO','ltEGS','cpKFf','PloNJ','info','/packages/cli/create-grid-checks?gridName=','JZwzB','BWTJk','eRuLc','DNiFP','Adding\x20Websocket\x20listeners','help','dOciA','gridName','EVNqO','GET','CLI_RUN_STARTED',':4444/wd/hub','bstackAccesskey',',\x20VPC\x20=>\x20','AvzLb','../../utils/instrumentationUtils','uuid','stringify','grid-spawning-failed','AwpQM','grid-name','Found\x20VPC:\x20','alreadyPresent','iZDnq','RQVwn','../../config/constants','CmYCB','wUZVo','ksXYz','createNamespacedConfigMap','CLI\x20run\x20finished:\x20',',\x20Subnets\x20=>\x20','WGWBK','exit','cyNqf','Creating\x20namespace','type','LWORM','CLI\x20run\x20started','BqFQq','replace','pqOHo','ClusterRole\x20=>\x20','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','DwBIb','SUONd','iVDKf','create-grid-checks-non-200','WmwvX','name','statusCode','NodeRole\x20=>\x20','felBr','../../utils/createClusterStack','yWqIJ','kfWLI','Spawning\x20the\x20grid\x20','username','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','clusterName','nodeRole','HDGpQ','accessKey','HIxRu','zbgAM','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','aYMCk','UbgsO','lnJCG','../../utils/deleteStack','Grid\x20profile\x20fetched\x20from\x20backend','kkEXt','browserstack-turboscale-grid-service','\x20in\x20existing\x20cluster\x20\x27','LQgnw','ERROR','slxCE','wkMCj','608398KPJXwI','cijWB','FhETu','command','Browserstack','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','Authmap\x20already\x20exists.\x20Not\x20updating','AUyRn','xTsyF','auth','HAQjr','Wcouy','pre-spawned-invalid-vpc','defaultGridProfile','ixLvS','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','ofudh','parse','WaaWl','message','iDxOS','LsbmW','Configuring\x20AWS','certificateAuthority','FbwmS','zvFio','Grid\x20can\x20be\x20accessed\x20at:\x20','warn','sendEventToBackend','GARGP','5|3|4|1|7|6|2|0','WebSocket','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','cOapw','FlWCk','EdvcY','mGspy','kCSHF','../../utils/createAutoscalerStack','kgDCL','2|1|3|4|6|0|5','MWwIi','../../utils/createk8sClient','Cluster\x20and\x20node\x20group\x20created\x20successfully','6365016KJTrXm','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','options','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://','MUvTj','lXOdE','../../utils/utilityMethods','prespawned-cluster-args-not-passed','XxAnt','subnets','bssdb','epilogue','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','17063793pipcqJ','FhcDe','loadBalancer','XjpSS','status','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','init-not-called','createNamespace','region','error','readNamespacedService','cluster-name','ILQYO','split','bzRXo','yrNZv','36kPFBfB','NSSep','CLI_RUN_FINISHED'];a4_0x448f=function(){return _0x54bdbc;};return a4_0x448f();}exports[a4_0x1207b8(0x194)]=a4_0x1207b8(0x265),exports[a4_0x1207b8(0x249)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a4_0x1207b8(0x210)]=function(_0x2ae7c4){const _0x33b559=a4_0x1207b8,_0x42eded={};_0x42eded[_0x33b559(0x222)]=_0x33b559(0x23c),_0x42eded[_0x33b559(0x1d9)]=_0x33b559(0x1e6),_0x42eded['XjpSS']=_0x33b559(0x1b2),_0x42eded[_0x33b559(0x264)]=_0x33b559(0x1a1),_0x42eded[_0x33b559(0x1f9)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x42eded[_0x33b559(0x1a7)]=_0x33b559(0x1d0),_0x42eded[_0x33b559(0x1d7)]=_0x33b559(0x276);const _0x14ad2a=_0x42eded,_0x13cd3c={};_0x13cd3c['description']=_0x14ad2a[_0x33b559(0x222)],_0x13cd3c['type']=_0x14ad2a[_0x33b559(0x1d9)];const _0x2ade45={};_0x2ade45[_0x33b559(0x1f4)]=_0x14ad2a[_0x33b559(0x1ce)],_0x2ade45[_0x33b559(0x295)]=_0x14ad2a[_0x33b559(0x1d9)];const _0x105383={};_0x105383[_0x33b559(0x1f4)]=_0x14ad2a['ZmgON'],_0x105383[_0x33b559(0x295)]=_0x14ad2a['bzRXo'];const _0x519296={};_0x519296[_0x33b559(0x1f4)]=_0x14ad2a['ZnJTu'],_0x519296[_0x33b559(0x295)]=_0x14ad2a[_0x33b559(0x1d9)];const _0x498cd0={};_0x498cd0[_0x33b559(0x1f4)]=_0x14ad2a[_0x33b559(0x1a7)],_0x498cd0[_0x33b559(0x295)]=_0x14ad2a[_0x33b559(0x1d9)];const _0x3c76ea={};return _0x3c76ea[_0x33b559(0x285)]=_0x13cd3c,_0x3c76ea['grid-profile']=_0x2ade45,_0x3c76ea[_0x33b559(0x1d6)]=_0x105383,_0x3c76ea['cloud-provider']=_0x519296,_0x3c76ea[_0x33b559(0x1d3)]=_0x498cd0,_0x2ae7c4[_0x33b559(0x21d)](HELP_HEADER_MESSAGE[_0x33b559(0x220)])[_0x33b559(0x1c9)](HELP_FOOTER_MESSAGE)[_0x33b559(0x1c0)](_0x3c76ea)[_0x33b559(0x276)](_0x14ad2a[_0x33b559(0x1d7)])[_0x33b559(0x221)];},exports['handler']=async function(_0x5dd7be){const _0x383b38=a4_0x1207b8,_0x4cb560={'Zsqwb':'2|6|7|4|3|0|5|1','vdwVq':_0x383b38(0x1a8),'ixLvS':function(_0x187a8c){return _0x187a8c();},'bssdb':_0x383b38(0x1e4),'UbgsO':_0x383b38(0x197),'yrNZv':_0x383b38(0x198),'PloNJ':_0x383b38(0x1d4),'ohklE':_0x383b38(0x22c),'qTKyw':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','PfIex':'string','EBokX':_0x383b38(0x1b2),'kaIkz':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','YpPFG':_0x383b38(0x2ab),'oZHmU':_0x383b38(0x1d0),'NooOJ':_0x383b38(0x276),'FhETu':_0x383b38(0x1b0),'MUvTj':function(_0x3b1c59){return _0x3b1c59();},'QdyuV':function(_0x1e935f,_0x5f2bc5){return _0x1e935f===_0x5f2bc5;},'NptDo':'hggzf','kgDCL':_0x383b38(0x26b),'cyNqf':_0x383b38(0x1bf),'usxaB':function(_0x30fa31,_0xed9f5f,_0x476290,_0x11e855,_0x5b7352,_0x396a23,_0x125845){return _0x30fa31(_0xed9f5f,_0x476290,_0x11e855,_0x5b7352,_0x396a23,_0x125845);},'WaaWl':_0x383b38(0x250),'AUyRn':_0x383b38(0x1d1),'DNiFP':function(_0x539e60,_0x50f9ea,_0x25a9fa,_0x1f0ed5,_0x31067a,_0x12e86c,_0xcbbdb8){return _0x539e60(_0x50f9ea,_0x25a9fa,_0x1f0ed5,_0x31067a,_0x12e86c,_0xcbbdb8);},'iDxOS':'<UsernamePlaceholder>','kkEXt':'<PasswordPlaceholder>','FbwmS':_0x383b38(0x275),'lXOdE':'knlbF','HIxRu':function(_0x2ae9cb,_0x2f8e9a){return _0x2ae9cb===_0x2f8e9a;},'pqOHo':_0x383b38(0x19a),'XBMyX':_0x383b38(0x230),'SUONd':function(_0x243fe2,_0x13c429,_0x502dc9,_0x12cd03,_0x7d491f,_0x324f72,_0x54da45,_0x1db64b){return _0x243fe2(_0x13c429,_0x502dc9,_0x12cd03,_0x7d491f,_0x324f72,_0x54da45,_0x1db64b);},'dOciA':_0x383b38(0x1c5),'CFNvT':function(_0x5850f9,_0x247f5e){return _0x5850f9!==_0x247f5e;},'DnEwW':_0x383b38(0x200),'lnJCG':function(_0x2cf870,_0x112918){return _0x2cf870===_0x112918;},'AvzLb':_0x383b38(0x25d),'LcLJa':'RVzCz','LWORM':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20only\x20AWS\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Fmuxi':'non-aws-cluster','BRoXB':_0x383b38(0x288),'HANxp':_0x383b38(0x1e0),'kfWLI':'GwWmP','HgkkM':_0x383b38(0x240),'jGSLh':_0x383b38(0x27a),'kCSHF':function(_0x5a98cb,_0x22e6c7){return _0x5a98cb(_0x22e6c7);},'CmYCB':function(_0x25975c,_0x3d2c79){return _0x25975c==_0x3d2c79;},'LQgnw':function(_0x91f3ef,_0xa84957){return _0x91f3ef==_0xa84957;},'EVNqO':_0x383b38(0x268),'yWqIJ':'GBRpz','rmRHs':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','bgdgQ':'create-grid-checks-null-response','ydkYB':function(_0x2b5e1f,_0x323108){return _0x2b5e1f===_0x323108;},'AwpQM':'RyXHB','spkVk':_0x383b38(0x19d),'sFskJ':_0x383b38(0x29c),'wkMCj':_0x383b38(0x25b),'DwBIb':function(_0x5b3c65,_0x41c330){return _0x5b3c65!==_0x41c330;},'NrqCu':function(_0x3535f1,_0x1c4379){return _0x3535f1!==_0x1c4379;},'fmfxX':_0x383b38(0x1cc),'WmwvX':_0x383b38(0x26d),'hUrPx':function(_0x2dbc0a,_0x3fcbe7,_0x292773,_0x2792e6,_0x10646f,_0x55dfa8,_0x49acff,_0x4886fb){return _0x2dbc0a(_0x3fcbe7,_0x292773,_0x2792e6,_0x10646f,_0x55dfa8,_0x49acff,_0x4886fb);},'qZjqB':_0x383b38(0x2a0),'nPpLp':_0x383b38(0x189),'muPwO':'oyDwO','OUqAf':_0x383b38(0x234),'ztLju':_0x383b38(0x24b),'IyUhp':function(_0x547022,_0x4259ab){return _0x547022===_0x4259ab;},'wUZVo':_0x383b38(0x1dc),'PsmBs':function(_0x292c99,_0xeb3def){return _0x292c99===_0xeb3def;},'VfZtB':function(_0x15a40e,_0x324432){return _0x15a40e!==_0x324432;},'ApsUY':_0x383b38(0x28d),'hurCh':_0x383b38(0x1e5),'DyeRs':_0x383b38(0x1f0),'JqljH':_0x383b38(0x225),'WGWBK':_0x383b38(0x1ba),'FlWCk':function(_0x434e3e,_0x5d11de){return _0x434e3e===_0x5d11de;},'PNKmu':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','XxAnt':_0x383b38(0x196),'HDGpQ':'4|1|0|2|3','rXXxL':function(_0x37a437,_0x319af1){return _0x37a437===_0x319af1;},'iVDKf':function(_0x502ce4,_0x36a944,_0x58096d){return _0x502ce4(_0x36a944,_0x58096d);},'QdwWL':_0x383b38(0x1ad),'ltEGS':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','TCNFj':function(_0x4b9d46,_0x51ce80){return _0x4b9d46!=_0x51ce80;},'yaOrN':function(_0x54bbe6,_0x192193){return _0x54bbe6!==_0x192193;},'EdvcY':function(_0x254fd2,_0x2472d5){return _0x254fd2!=_0x2472d5;},'slxCE':function(_0x167651,_0x1453f8){return _0x167651!==_0x1453f8;},'uRXrZ':_0x383b38(0x256),'XEpok':_0x383b38(0x226),'BWTJk':function(_0x2ca045,_0x189b13,_0x48563d){return _0x2ca045(_0x189b13,_0x48563d);},'dWsVs':_0x383b38(0x1fb),'rgfFf':function(_0x333cd5,_0x5a59c9,_0x1bf42e,_0x38a490,_0xe8289b,_0x119ad3,_0x5bf490,_0x5dd52e){return _0x333cd5(_0x5a59c9,_0x1bf42e,_0x38a490,_0xe8289b,_0x119ad3,_0x5bf490,_0x5dd52e);},'EASWe':_0x383b38(0x19e),'xwDXn':function(_0x34818e,_0x217f0a,_0x4bf141,_0x213013){return _0x34818e(_0x217f0a,_0x4bf141,_0x213013);},'xShUp':function(_0x4e837d,_0x4fbc89){return _0x4e837d===_0x4fbc89;},'srfyO':function(_0x331dc6,_0x2f85ca,_0xf017a1,_0x5821b4,_0x3fe87e,_0x38b2b0,_0x80981b,_0x2ec5fd){return _0x331dc6(_0x2f85ca,_0xf017a1,_0x5821b4,_0x3fe87e,_0x38b2b0,_0x80981b,_0x2ec5fd);},'ofudh':'pre-spawned-invalid-subnets','LINlD':_0x383b38(0x257),'ahsGN':_0x383b38(0x247),'BqFQq':function(_0x21b530,_0x31b4e4){return _0x21b530(_0x31b4e4);},'kmRVE':_0x383b38(0x219),'ygWXx':'Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','iNFfw':_0x383b38(0x1bd),'lNvRU':function(_0x3051c3,_0x42b7f7,_0x44728b,_0x13c597,_0x2b08eb){return _0x3051c3(_0x42b7f7,_0x44728b,_0x13c597,_0x2b08eb);},'MWwIi':function(_0x11ff05,_0x38e4d8){return _0x11ff05===_0x38e4d8;},'HAQjr':'Creating\x20Autoscaler\x20Role','felBr':function(_0x275dc0,_0x35ac43){return _0x275dc0!==_0x35ac43;},'ujHNe':function(_0x83a3f,_0x2a40a6){return _0x83a3f!==_0x2a40a6;},'eRuLc':_0x383b38(0x217),'qbGhK':_0x383b38(0x24c),'tkYoA':'1|2|4|3|0','zvFio':_0x383b38(0x1ff),'GARGP':function(_0x239bd9,_0x593994){return _0x239bd9(_0x593994);},'aYMCk':_0x383b38(0x235),'RQVwn':function(_0x4a2aa1,_0x289e66){return _0x4a2aa1(_0x289e66);},'zbgAM':_0x383b38(0x294),'LvAdT':_0x383b38(0x224),'xIWKY':'Browserstack','olpfQ':_0x383b38(0x208),'jlEIu':_0x383b38(0x211),'FDSlk':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','mGspy':'Spawning\x20Grid\x20on\x20the\x20Cluster','JZwzB':function(_0x14ddad,_0x51d8c4,_0x1cbe55,_0x90d82,_0x3ba1b4,_0xe65b54,_0x4c88bc,_0x2044a0,_0x1eb424){return _0x14ddad(_0x51d8c4,_0x1cbe55,_0x90d82,_0x3ba1b4,_0xe65b54,_0x4c88bc,_0x2044a0,_0x1eb424);},'cijWB':_0x383b38(0x1f2),'tzpeS':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','OrhsW':_0x383b38(0x18b),'cOapw':function(_0x1c3a02,_0x45da7b){return _0x1c3a02===_0x45da7b;},'FmhvQ':function(_0x46da0e,_0x4b76ec,_0x2a4081,_0x535ac7,_0x237334,_0x5acbde){return _0x46da0e(_0x4b76ec,_0x2a4081,_0x535ac7,_0x237334,_0x5acbde);},'hEczV':function(_0x2445cd,_0x19a6fd){return _0x2445cd(_0x19a6fd);},'TiSZe':function(_0x394726,_0x3e411c,_0x18836a,_0x3605e2,_0x438545,_0x5537e7,_0x22f35d){return _0x394726(_0x3e411c,_0x18836a,_0x3605e2,_0x438545,_0x5537e7,_0x22f35d);},'kGbtq':_0x383b38(0x283)};let _0x4d32ea=![],_0x295806,_0x68c268,_0x4b63dc,_0x2df0ca,_0x263944,_0x19d317,_0x201fbe,_0x4cb4cc,_0x353845,_0x1d2617;try{global_registry['requestId']=_0x4cb560['MUvTj'](uuidv4);!fs['existsSync'](_0x4cb560['MUvTj'](getCredentialsPath))&&(_0x4cb560[_0x383b38(0x266)](_0x4cb560['NptDo'],_0x4cb560[_0x383b38(0x1b9)])?_0x213ab1[_0x383b38(0x26f)]('Found\x20VPC:\x20'+_0x22036c+'\x20'):(console[_0x383b38(0x1d4)](_0x4cb560[_0x383b38(0x293)]),await _0x4cb560[_0x383b38(0x263)](sendInstrumentationEvent,_0x5dd7be,_0x4cb560[_0x383b38(0x1a4)],messageTypes[_0x383b38(0x18e)],_0x4cb560[_0x383b38(0x199)],null,_0x5dd7be),process['exit'](0x1)));await _0x4cb560[_0x383b38(0x274)](sendInstrumentationEvent,_0x5dd7be,_0x4cb560[_0x383b38(0x1a4)],messageTypes['INFO'],null,null,_0x5dd7be);const _0x5e578b=JSON[_0x383b38(0x1a3)](fs[_0x383b38(0x209)](_0x4cb560['MUvTj'](getCredentialsPath)));global_registry[_0x383b38(0x1e9)]=_0x5e578b[_0x383b38(0x195)][_0x383b38(0x2aa)],global_registry[_0x383b38(0x27d)]=_0x5e578b[_0x383b38(0x195)][_0x383b38(0x24f)];const _0x2b2132=WS_ENDPOINT[_0x383b38(0x299)](_0x4cb560[_0x383b38(0x1a6)],_0x5e578b[_0x383b38(0x195)][_0x383b38(0x2aa)])[_0x383b38(0x299)](_0x4cb560[_0x383b38(0x18a)],_0x5e578b['Browserstack'][_0x383b38(0x24f)]),_0x9e2c97={};_0x9e2c97[_0x383b38(0x1b1)]=ws,_0x1d2617=new ReconnectingWebSocket(_0x2b2132,[],_0x9e2c97),logger[_0x383b38(0x1fe)](_0x4cb560[_0x383b38(0x1aa)]),webSocketUtils[_0x383b38(0x228)](_0x1d2617,_0x5dd7be[_0x383b38(0x218)],_0x5dd7be['password']);let _0x1694f5=DEFAULT_GRID_NAME;if(_0x5dd7be[_0x383b38(0x17e)]||_0x5dd7be[_0x383b38(0x20c)]||_0x5dd7be[_0x383b38(0x1d3)]){if(_0x4cb560[_0x383b38(0x266)](_0x4cb560[_0x383b38(0x1c3)],_0x4cb560['lXOdE'])){if(!(_0x5dd7be[_0x383b38(0x17e)]&&_0x5dd7be[_0x383b38(0x20c)]&&_0x5dd7be[_0x383b38(0x1d3)])){if(_0x4cb560['HIxRu'](_0x4cb560[_0x383b38(0x29a)],_0x4cb560[_0x383b38(0x29a)]))_0x295806=_0x4cb560['XBMyX'],await _0x4cb560[_0x383b38(0x29e)](reportToGalactusAndSendToEDS,_0x5dd7be,_0x1d2617,_0x295806,messageTypes[_0x383b38(0x18e)],_0x4cb560[_0x383b38(0x1a4)],_0x4cb560[_0x383b38(0x277)],_0x4cb560['PloNJ']),logger[_0x383b38(0x1d4)](_0x295806),process[_0x383b38(0x292)](0x1);else{const _0x3f303b=_0x4cb560[_0x383b38(0x1ea)][_0x383b38(0x1d8)]('|');let _0x63b5c8=0x0;while(!![]){switch(_0x3f303b[_0x63b5c8++]){case'0':_0x51e9e5['info'](_0x2a1c00);continue;case'1':const _0x818a2e={};_0x818a2e[_0x383b38(0x295)]=_0x146768[_0x383b38(0x1dd)],_0x818a2e[_0x383b38(0x1a5)]='CLI\x20run\x20finished:\x20'+_0x14b3a7,_0x14c428[_0x383b38(0x1ae)](_0x5cb072,_0x818a2e);continue;case'2':_0x5ceb4b=_0xbc4029[_0x383b38(0x215)][_0x383b38(0x1cf)][_0x383b38(0x1cd)]['ingress'][0x0][_0x383b38(0x255)];continue;case'3':_0x4edd57=_0x383b38(0x1c1)+_0x5a9b80+':4444/wd/hub';continue;case'4':const _0x326287={};_0x326287['type']=_0x6a5ea7['LOG'],_0x326287[_0x383b38(0x1a5)]=_0x5e83e9,_0xbc37be[_0x383b38(0x1ae)](_0x51613e,_0x326287);continue;case'5':const _0x26c7f1={};_0x26c7f1[_0x383b38(0x295)]=_0xb29447[_0x383b38(0x243)],_0x26c7f1[_0x383b38(0x1a5)]=_0x2741e8,_0xbef26b[_0x383b38(0x1ae)](_0x161754,_0x26c7f1);continue;case'6':_0x414af6=_0x383b38(0x1ac)+_0x546954+'\x20';continue;case'7':_0xa98267[_0x383b38(0x26f)](_0x449f56);continue;}break;}}}_0x4cb560[_0x383b38(0x212)](_0x5dd7be[_0x383b38(0x20c)][_0x383b38(0x1fa)](),_0x4cb560[_0x383b38(0x25e)])&&(_0x4cb560[_0x383b38(0x187)](_0x4cb560[_0x383b38(0x27f)],_0x4cb560[_0x383b38(0x22b)])?(_0x554602[_0x383b38(0x1fe)](_0x4cb560[_0x383b38(0x1de)]),_0x4cb560[_0x383b38(0x1a0)](_0x5e12f5)):(_0x295806=_0x4cb560[_0x383b38(0x296)],await _0x4cb560[_0x383b38(0x29e)](reportToGalactusAndSendToEDS,_0x5dd7be,_0x1d2617,_0x295806,messageTypes[_0x383b38(0x18e)],_0x4cb560[_0x383b38(0x1a4)],_0x4cb560['Fmuxi'],_0x4cb560[_0x383b38(0x26e)]),logger[_0x383b38(0x1d4)](_0x295806),process[_0x383b38(0x292)](0x1))),_0x4d32ea=!![],_0x4b63dc=_0x5dd7be[_0x383b38(0x17e)],_0x68c268=_0x5dd7be[_0x383b38(0x20c)],_0x2df0ca=_0x5dd7be['region'];}else _0x5c46ea[_0x383b38(0x26f)]('Found\x20Subnets:\x20'+_0xe2bba3[_0x383b38(0x282)](_0x5d819c)+'\x20');}if(_0x5dd7be[_0x383b38(0x278)]){if(_0x4cb560['CFNvT'](_0x4cb560['BRoXB'],_0x4cb560[_0x383b38(0x245)]))_0x1694f5=_0x5dd7be[_0x383b38(0x278)];else{const _0x21fb7f=_0x4cb560[_0x383b38(0x1c8)]['split']('|');let _0x54931e=0x0;while(!![]){switch(_0x21fb7f[_0x54931e++]){case'0':_0x15b570['cloudProviderAccessKey']=_0x2229e1[_0x51bab2][_0x383b38(0x181)];continue;case'1':_0x381623['cloudProviderSecretKey']=_0x3e311e[_0x219a47][_0x383b38(0x1ee)];continue;case'2':const _0x168250={};_0x168250[_0x383b38(0x295)]=_0x7648f4[_0x383b38(0x243)],_0x168250[_0x383b38(0x1a5)]=_0x2fbb1f,_0xf09bf8[_0x383b38(0x1ae)](_0x1113b5,_0x168250);continue;case'3':_0x4c52c4[_0x383b38(0x26f)](_0x33364f);continue;case'4':_0x31ba30=_0x4cb560[_0x383b38(0x186)];continue;}break;}}}global_registry[_0x383b38(0x278)]=_0x1694f5;if(_0x4cb560[_0x383b38(0x182)](_0x4d32ea,![])){if(_0x4cb560[_0x383b38(0x212)](_0x4cb560[_0x383b38(0x2a8)],_0x4cb560['HgkkM'])){const _0x4dbe0d=_0x383b38(0x213)+AG_API_URL+_0x383b38(0x270)+_0x1694f5,_0x5ad43b={};_0x5ad43b[_0x383b38(0x2aa)]=_0x5e578b[_0x383b38(0x195)][_0x383b38(0x2aa)],_0x5ad43b['password']=_0x5e578b[_0x383b38(0x195)][_0x383b38(0x24f)];const _0x1c0939={};_0x1c0939['url']=_0x4dbe0d,_0x1c0939[_0x383b38(0x1df)]=_0x4cb560['jGSLh'],_0x1c0939[_0x383b38(0x19b)]=_0x5ad43b;const _0x2e4789=_0x1c0939,_0x298726=await _0x4cb560[_0x383b38(0x1b7)](promisifiedRequest,_0x2e4789);(_0x4cb560[_0x383b38(0x28b)](_0x298726,null)||_0x4cb560[_0x383b38(0x18d)](_0x298726,undefined))&&(_0x4cb560[_0x383b38(0x212)](_0x4cb560[_0x383b38(0x279)],_0x4cb560[_0x383b38(0x2a7)])?(_0x295806=_0x4cb560['rmRHs'],await _0x4cb560[_0x383b38(0x29e)](reportToGalactusAndSendToEDS,_0x5dd7be,_0x1d2617,_0x295806,messageTypes[_0x383b38(0x18e)],_0x4cb560[_0x383b38(0x1a4)],_0x4cb560[_0x383b38(0x1f1)],_0x4cb560[_0x383b38(0x26e)]),logger[_0x383b38(0x1d4)](_0x295806),process['exit'](0x1)):_0x30c9af[_0x383b38(0x26f)](_0x4cb560['yrNZv']));if(_0x4cb560['ydkYB'](_0x298726[_0x383b38(0x2a3)],0x191)){if(_0x4cb560[_0x383b38(0x212)](_0x4cb560[_0x383b38(0x284)],_0x4cb560[_0x383b38(0x260)]))_0x295806=_0x4cb560[_0x383b38(0x1e8)],await _0x4cb560[_0x383b38(0x29e)](reportToGalactusAndSendToEDS,_0x5dd7be,_0x1d2617,_0x295806,messageTypes['ERROR'],_0x4cb560[_0x383b38(0x1a4)],_0x4cb560[_0x383b38(0x190)],_0x4cb560[_0x383b38(0x26e)]),logger[_0x383b38(0x1d4)](_0x295806),process[_0x383b38(0x292)](0x1);else throw _0x3b469f;}if(_0x4cb560['DwBIb'](_0x298726['statusCode'],0xc8)){if(_0x4cb560['NrqCu'](_0x4cb560[_0x383b38(0x238)],_0x4cb560[_0x383b38(0x2a1)]))_0x295806=_0x383b38(0x1f3)+JSON[_0x383b38(0x282)](_0x298726),await _0x4cb560['hUrPx'](reportToGalactusAndSendToEDS,_0x5dd7be,_0x1d2617,_0x295806,messageTypes[_0x383b38(0x18e)],_0x4cb560[_0x383b38(0x1a4)],_0x4cb560['qZjqB'],_0x4cb560['PloNJ']),logger['error'](_0x295806),process[_0x383b38(0x292)](0x1);else{const _0x176d25={};_0x176d25[_0x383b38(0x295)]=_0x200d3b[_0x383b38(0x243)],_0x176d25['message']=_0x2fee7b,_0x833ea9['sendEventToBackend'](_0x309b21,_0x176d25,_0x4cb560[_0x383b38(0x26e)],!![]);}}const _0x4bc350=JSON[_0x383b38(0x1a3)](_0x298726[_0x383b38(0x215)]),_0x5e02a9={};_0x5e02a9[_0x383b38(0x295)]=WS_EVENTS[_0x383b38(0x27b)],_0x5e02a9['message']=_0x383b38(0x297),webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0x5e02a9);const _0xe4777b={};_0xe4777b[_0x383b38(0x295)]=WS_EVENTS[_0x383b38(0x243)],_0xe4777b[_0x383b38(0x1a5)]=_0x4cb560[_0x383b38(0x25f)],webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0xe4777b);if(_0x4bc350[_0x383b38(0x287)]){if(_0x4cb560[_0x383b38(0x29d)](_0x4cb560['muPwO'],_0x4cb560[_0x383b38(0x21a)])){const _0x2d2fac=_0x4cb560['ohklE']['split']('|');let _0x3597a5=0x0;while(!![]){switch(_0x2d2fac[_0x3597a5++]){case'0':_0x552543[_0x383b38(0x26f)](_0x58b82a);continue;case'1':const _0x92129c={};_0x92129c['type']=_0x1673be[_0x383b38(0x243)],_0x92129c[_0x383b38(0x1a5)]=_0xc39bd1,_0x1cad0b['sendEventToBackend'](_0x2987b7,_0x92129c);continue;case'2':_0x4a60c2[_0x383b38(0x17e)]=_0x55c50f;continue;case'3':_0x5a6cce[_0x383b38(0x22e)]=_0x51c4f8;continue;case'4':const _0x2fbda7={};_0x2fbda7['type']=_0x254218[_0x383b38(0x27b)],_0x2fbda7['message']=_0x383b38(0x297),_0x2e153c[_0x383b38(0x1ae)](_0x4152a6,_0x2fbda7);continue;case'5':_0x12b9c2['cloudProvider']=_0x5028a4;continue;case'6':_0x47210e='Spawning\x20the\x20grid\x20'+_0x3d89f8+_0x383b38(0x18c)+_0xb5c9e2+'\x27';continue;}break;}}else _0x295806=_0x4cb560[_0x383b38(0x1f5)],await _0x4cb560['hUrPx'](reportToGalactusAndSendToEDS,_0x5dd7be,_0x1d2617,_0x295806,messageTypes[_0x383b38(0x18e)],_0x4cb560[_0x383b38(0x1a4)],_0x4cb560['ztLju'],_0x4cb560[_0x383b38(0x26e)]),logger[_0x383b38(0x1d4)](_0x295806),process[_0x383b38(0x292)](0x1);}const _0x2db9df=_0x4bc350['gridProfiles'];let _0x34f9ba=_0x2db9df[_0x4bc350[_0x383b38(0x19f)]];_0x5dd7be[_0x383b38(0x23d)]&&(_0x4cb560['IyUhp'](_0x4cb560[_0x383b38(0x28c)],_0x4cb560[_0x383b38(0x28c)])?_0x34f9ba=_0x2db9df[_0x5dd7be[_0x383b38(0x23d)]]:_0x220834=_0x18f04c[_0x9a5d1b[_0x383b38(0x23d)]]);_0x4cb560[_0x383b38(0x253)](_0x34f9ba,undefined)&&(_0x4cb560['VfZtB'](_0x4cb560[_0x383b38(0x262)],_0x4cb560['hurCh'])?(_0x295806=_0x4cb560[_0x383b38(0x251)],await _0x4cb560[_0x383b38(0x1f8)](reportToGalactusAndSendToEDS,_0x5dd7be,_0x1d2617,_0x295806,messageTypes[_0x383b38(0x18e)],_0x4cb560[_0x383b38(0x1a4)],_0x4cb560[_0x383b38(0x239)],_0x4cb560['PloNJ']),logger[_0x383b38(0x1d4)](_0x295806),process[_0x383b38(0x292)](0x1)):_0x37f2da=_0x1cf97e['gridName']);global_registry[_0x383b38(0x1e7)]=_0x34f9ba['id'],_0x295806='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x1694f5+_0x383b38(0x248)+_0x34f9ba[_0x383b38(0x2a2)]+_0x383b38(0x267),logger[_0x383b38(0x26f)](_0x295806);const _0x1c9d03={};_0x1c9d03[_0x383b38(0x295)]=WS_EVENTS['LOG'],_0x1c9d03[_0x383b38(0x1a5)]=_0x295806,webSocketUtils['sendEventToBackend'](_0x1d2617,_0x1c9d03),_0x68c268=_0x34f9ba[_0x383b38(0x20c)],_0x4b63dc=_0x34f9ba[_0x383b38(0x17e)],_0x2df0ca=_0x34f9ba[_0x383b38(0x1d3)],_0x263944=_0x34f9ba[_0x383b38(0x22f)],_0x19d317=_0x34f9ba['instanceType'],_0x201fbe=_0x34f9ba[_0x383b38(0x236)],securityGroups=_0x34f9ba[_0x383b38(0x23e)],subnets=_0x34f9ba[_0x383b38(0x1c7)],_0x4cb4cc=_0x34f9ba['s3bucket'],_0x4cb560['hUrPx'](updateGlobalRegistryWithConfig,_0x68c268,_0x4b63dc,_0x2df0ca,_0x263944,_0x19d317,_0x4cb4cc,_0x34f9ba);}else{const _0x25e23f={};_0x25e23f[_0x383b38(0x1f4)]=_0x4cb560[_0x383b38(0x23b)],_0x25e23f[_0x383b38(0x295)]=_0x4cb560['PfIex'];const _0x118ff9={};_0x118ff9[_0x383b38(0x1f4)]=_0x4cb560['EBokX'],_0x118ff9[_0x383b38(0x295)]=_0x4cb560[_0x383b38(0x202)];const _0x3af97f={};_0x3af97f['description']=_0x4cb560[_0x383b38(0x242)],_0x3af97f['type']=_0x4cb560[_0x383b38(0x202)];const _0x424cbb={};_0x424cbb['description']=_0x4cb560['YpPFG'],_0x424cbb[_0x383b38(0x295)]=_0x4cb560['PfIex'];const _0x2804d1={};_0x2804d1[_0x383b38(0x1f4)]=_0x4cb560['oZHmU'],_0x2804d1['type']=_0x4cb560['PfIex'];const _0x5d9762={};return _0x5d9762[_0x383b38(0x285)]=_0x25e23f,_0x5d9762['grid-profile']=_0x118ff9,_0x5d9762[_0x383b38(0x1d6)]=_0x3af97f,_0x5d9762['cloud-provider']=_0x424cbb,_0x5d9762[_0x383b38(0x1d3)]=_0x2804d1,_0x8571ff[_0x383b38(0x21d)](_0x28507f[_0x383b38(0x220)])['epilogue'](_0x258785)['options'](_0x5d9762)[_0x383b38(0x276)](_0x4cb560[_0x383b38(0x223)])[_0x383b38(0x221)];}}else{const _0x2d8b3b=_0x4cb560[_0x383b38(0x291)][_0x383b38(0x1d8)]('|');let _0x139ae7=0x0;while(!![]){switch(_0x2d8b3b[_0x139ae7++]){case'0':global_registry['clusterRegion']=_0x2df0ca;continue;case'1':_0x295806=_0x383b38(0x2a9)+_0x1694f5+_0x383b38(0x18c)+_0x4b63dc+'\x27';continue;case'2':const _0x1b33e2={};_0x1b33e2[_0x383b38(0x295)]=WS_EVENTS[_0x383b38(0x27b)],_0x1b33e2[_0x383b38(0x1a5)]=_0x383b38(0x297),webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0x1b33e2);continue;case'3':logger[_0x383b38(0x26f)](_0x295806);continue;case'4':const _0x1548d4={};_0x1548d4[_0x383b38(0x295)]=WS_EVENTS[_0x383b38(0x243)],_0x1548d4[_0x383b38(0x1a5)]=_0x295806,webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0x1548d4);continue;case'5':global_registry[_0x383b38(0x17e)]=_0x4b63dc;continue;case'6':global_registry[_0x383b38(0x20c)]=_0x68c268;continue;}break;}}const _0x4a4275=_0x5e578b['cloudProvider']||{};if(_0x4cb560[_0x383b38(0x1b4)](_0x4a4275[_0x68c268],undefined)){logger[_0x383b38(0x26f)](_0x4cb560[_0x383b38(0x233)]);const [_0x163700,_0x565e30]=await _0x4cb560[_0x383b38(0x1b7)](inputCloudProviderKeys,_0x68c268);_0x5e578b[_0x383b38(0x20c)]={};const _0x969e2b={};_0x969e2b[_0x383b38(0x181)]=_0x163700,_0x969e2b['secret']=_0x565e30,_0x5e578b['cloudProvider'][_0x68c268]=_0x969e2b,fs[_0x383b38(0x246)](_0x4cb560[_0x383b38(0x1c2)](getCredentialsPath),JSON[_0x383b38(0x282)](_0x5e578b)),logger[_0x383b38(0x1fe)](_0x4cb560[_0x383b38(0x1c6)]),global_registry[_0x383b38(0x1e3)]=_0x163700,global_registry[_0x383b38(0x227)]=_0x565e30;}else{const _0x1e180a=_0x4cb560[_0x383b38(0x180)][_0x383b38(0x1d8)]('|');let _0x581c70=0x0;while(!![]){switch(_0x1e180a[_0x581c70++]){case'0':logger[_0x383b38(0x26f)](_0x295806);continue;case'1':const _0x4555c1={};_0x4555c1[_0x383b38(0x295)]=WS_EVENTS[_0x383b38(0x243)],_0x4555c1['message']=_0x295806,webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0x4555c1);continue;case'2':global_registry[_0x383b38(0x1e3)]=_0x4a4275[_0x68c268][_0x383b38(0x181)];continue;case'3':global_registry[_0x383b38(0x227)]=_0x4a4275[_0x68c268]['secret'];continue;case'4':_0x295806=_0x4cb560[_0x383b38(0x186)];continue;}break;}}_0x4cb560['rXXxL'](_0x68c268,AWS)&&(logger['debug'](_0x4cb560['vdwVq']),_0x4cb560[_0x383b38(0x1c2)](configureAWSIfNotConfigured));let _0x46532b,_0x3b4224;if(_0x4cb560['rXXxL'](_0x4d32ea,![])){_0x295806=_0x383b38(0x1ed)+_0x2df0ca+').';const _0x194782={};_0x194782['type']=WS_EVENTS['LOG'],_0x194782[_0x383b38(0x1a5)]=_0x295806,webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0x194782),logger[_0x383b38(0x26f)](_0x295806);const _0x2866fc=await _0x4cb560['iVDKf'](isClusterPresent,_0x68c268,_0x4b63dc);let _0x346533;if(_0x2866fc){const _0x5450df={};_0x5450df['type']=WS_EVENTS[_0x383b38(0x243)],_0x5450df[_0x383b38(0x1a5)]=_0x383b38(0x24d)+_0x4b63dc+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils['sendEventToBackend'](_0x1d2617,_0x5450df,_0x4cb560['QdwWL']),logger[_0x383b38(0x1ad)]('Cluster\x20'+_0x4b63dc+_0x383b38(0x203)),_0x46532b=await _0x4cb560[_0x383b38(0x1b7)](getClusterInfo,_0x4b63dc),_0x4d32ea=!![];}else{const _0x1644b5={};_0x1644b5[_0x383b38(0x295)]=WS_EVENTS[_0x383b38(0x243)],_0x1644b5[_0x383b38(0x1a5)]=_0x4cb560[_0x383b38(0x26c)],webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0x1644b5),logger['info'](_0x4cb560[_0x383b38(0x26c)]);const _0x57fe30=_0x4cb560[_0x383b38(0x237)](_0x201fbe,null)&&_0x4cb560['yaOrN'](_0x201fbe,undefined),_0x587091=_0x4cb560[_0x383b38(0x1b5)](subnets,null)&&_0x4cb560[_0x383b38(0x18f)](subnets,undefined);let _0x5bd93a;if(_0x57fe30){_0x4cb560['PsmBs'](_0x587091,![])&&(_0x295806=_0x4cb560['uRXrZ'],await _0x4cb560['hUrPx'](reportToGalactusAndSendToEDS,_0x5dd7be,_0x1d2617,_0x295806,messageTypes['ERROR'],_0x4cb560[_0x383b38(0x1a4)],_0x4cb560['XEpok'],_0x4cb560[_0x383b38(0x26e)]),logger[_0x383b38(0x1d4)](_0x295806),process[_0x383b38(0x292)](0x1));const _0x102de9=await _0x4cb560[_0x383b38(0x272)](isVPCPresent,_0x201fbe,_0x2df0ca);_0x4cb560[_0x383b38(0x1b4)](_0x102de9,![])?(_0x295806=_0x4cb560['dWsVs'],await _0x4cb560[_0x383b38(0x231)](reportToGalactusAndSendToEDS,_0x5dd7be,_0x1d2617,_0x295806,messageTypes[_0x383b38(0x18e)],_0x4cb560[_0x383b38(0x1a4)],_0x4cb560['EASWe'],_0x4cb560['PloNJ']),logger['error'](_0x295806),process[_0x383b38(0x292)](0x1)):logger[_0x383b38(0x26f)](_0x383b38(0x286)+_0x201fbe+'\x20');const _0x43a40a=await _0x4cb560[_0x383b38(0x26a)](isSubnetsValid,subnets,_0x201fbe,_0x2df0ca);_0x4cb560[_0x383b38(0x1fc)](_0x43a40a[0x0],![])?(_0x295806=_0x383b38(0x1e1)+_0x43a40a[0x1]+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x201fbe+_0x383b38(0x1ca),await _0x4cb560[_0x383b38(0x25c)](reportToGalactusAndSendToEDS,_0x5dd7be,_0x1d2617,_0x295806,messageTypes[_0x383b38(0x18e)],_0x4cb560[_0x383b38(0x1a4)],_0x4cb560[_0x383b38(0x1a2)],_0x4cb560[_0x383b38(0x26e)]),logger[_0x383b38(0x1d4)](_0x295806),process[_0x383b38(0x292)](0x1)):logger[_0x383b38(0x26f)](_0x383b38(0x1eb)+JSON[_0x383b38(0x282)](subnets)+'\x20');const _0x16462f=await _0x4cb560[_0x383b38(0x26a)](createClusterStack,_0x4b63dc,_0x201fbe,subnets);logger['info'](_0x4cb560['LINlD']),logger['info']('Cluster\x20=>\x20'+_0x16462f[_0x383b38(0x206)][0x0][_0x383b38(0x258)][0x3][_0x383b38(0x259)]+'\x20'),logger[_0x383b38(0x26f)](_0x383b38(0x29b)+_0x16462f[_0x383b38(0x206)][0x0][_0x383b38(0x258)][0x1]['OutputValue']+'\x20'),logger[_0x383b38(0x26f)](_0x383b38(0x201)+_0x16462f['Stacks'][0x0][_0x383b38(0x258)][0x0][_0x383b38(0x259)][_0x383b38(0x1d8)](',')+'\x20'),logger['info'](_0x383b38(0x2a4)+_0x16462f[_0x383b38(0x206)][0x0][_0x383b38(0x258)][0x4][_0x383b38(0x259)]+'\x20');}else{const _0x24dae7={};_0x24dae7[_0x383b38(0x295)]=WS_EVENTS[_0x383b38(0x243)],_0x24dae7[_0x383b38(0x1a5)]=_0x4cb560['ahsGN'],webSocketUtils['sendEventToBackend'](_0x1d2617,_0x24dae7),logger['info'](_0x4cb560[_0x383b38(0x1ec)]),_0x4cb560[_0x383b38(0x298)](sendAWSInfoToHST,_0x1d2617);const _0x385ec2={};_0x385ec2[_0x383b38(0x295)]=WS_EVENTS[_0x383b38(0x243)],_0x385ec2[_0x383b38(0x1a5)]=_0x4cb560['kmRVE'],webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0x385ec2),logger[_0x383b38(0x26f)](_0x4cb560[_0x383b38(0x21c)]);const _0x5a6b4c=await _0x4cb560[_0x383b38(0x298)](createClusterStack,_0x4b63dc),_0x1b65d1=_0x5a6b4c[_0x383b38(0x206)][0x0]['Outputs'][0x0]['OutputValue'][_0x383b38(0x1d8)](',');_0x5bd93a=_0x5a6b4c[_0x383b38(0x206)][0x0][_0x383b38(0x258)][0x1]['OutputValue'];const _0xb46069=_0x5a6b4c[_0x383b38(0x206)][0x0][_0x383b38(0x258)][0x2][_0x383b38(0x259)],_0x11da8a=_0x5a6b4c[_0x383b38(0x206)][0x0][_0x383b38(0x258)][0x3][_0x383b38(0x259)];_0x346533=_0x5a6b4c['Stacks'][0x0][_0x383b38(0x258)][0x4]['OutputValue'];const _0x1850fc=_0x5a6b4c[_0x383b38(0x206)][0x0][_0x383b38(0x258)][0x5][_0x383b38(0x259)][_0x383b38(0x1d8)](','),_0xf0585e={};_0xf0585e[_0x383b38(0x295)]=WS_EVENTS['LOG'],_0xf0585e[_0x383b38(0x1a5)]=_0x383b38(0x184)+_0x11da8a+_0x383b38(0x207)+_0x5bd93a+_0x383b38(0x27e)+_0xb46069+_0x383b38(0x290)+_0x1850fc+',\x20SecurityGroups\x20=>\x20'+_0x1b65d1+_0x383b38(0x24a)+_0x346533+'\x20',webSocketUtils['sendEventToBackend'](_0x1d2617,_0xf0585e),logger['info'](_0x4cb560[_0x383b38(0x269)]),logger[_0x383b38(0x26f)]('Cluster\x20=>\x20'+_0x11da8a+'\x20'),logger[_0x383b38(0x26f)](_0x383b38(0x29b)+_0x5bd93a+'\x20'),logger[_0x383b38(0x26f)](_0x383b38(0x25a)+_0xb46069+'\x20'),logger[_0x383b38(0x26f)](_0x383b38(0x254)+_0x1850fc+'\x20'),logger[_0x383b38(0x26f)]('SecurityGroups\x20=>\x20'+_0x1b65d1+'\x20'),logger[_0x383b38(0x26f)](_0x383b38(0x2a4)+_0x346533+'\x20');const _0x1befe3={};_0x1befe3['type']=WS_EVENTS['LOG'],_0x1befe3[_0x383b38(0x1a5)]=_0x383b38(0x1bd),webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0x1befe3),logger['info'](_0x4cb560[_0x383b38(0x23f)]);}}}_0x46532b=await _0x4cb560[_0x383b38(0x1b7)](getClusterInfo,_0x4b63dc);const [_0x9f54d7,_0x4c8ca2,_0x58ebc0,_0x400bce,_0xd6402e]=await _0x4cb560['lNvRU'](createK8sClient,_0x46532b['cluster'][_0x383b38(0x2a2)],_0x46532b[_0x383b38(0x21b)]['endpoint'],_0x46532b[_0x383b38(0x21b)][_0x383b38(0x1a9)][_0x383b38(0x22d)],global_registry[_0x383b38(0x22e)]);if(_0x4cb560[_0x383b38(0x1bb)](_0x4d32ea,![])){const _0x3d4aba={};_0x3d4aba[_0x383b38(0x295)]=WS_EVENTS[_0x383b38(0x243)],_0x3d4aba['message']=_0x4cb560[_0x383b38(0x19c)],webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0x3d4aba),logger[_0x383b38(0x26f)](_0x4cb560[_0x383b38(0x19c)]);try{const _0x1006fb=await _0x4cb560[_0x383b38(0x1b7)](createAutoscalerStack,_0x4b63dc);_0x3b4224=_0x1006fb[_0x383b38(0x206)][0x0][_0x383b38(0x258)][0x2][_0x383b38(0x259)];const _0x8ed354={};_0x8ed354[_0x383b38(0x295)]=WS_EVENTS[_0x383b38(0x243)],_0x8ed354[_0x383b38(0x1a5)]=_0x383b38(0x204)+_0x3b4224+'\x20',webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0x8ed354),logger[_0x383b38(0x26f)](_0x383b38(0x204)+_0x3b4224+'\x20');}catch(_0x5ae12c){if(_0x4cb560[_0x383b38(0x2a5)](_0x5ae12c['message'][_0x383b38(0x241)](/already exists/),null)||_0x4cb560[_0x383b38(0x261)](_0x5ae12c['message']['match'](/already exists/),undefined))_0x295806='Skipping\x20Autoscaler\x20due\x20to:\x20'+_0x5ae12c['message'],await _0x4cb560['srfyO'](reportToGalactusAndSendToEDS,_0x5dd7be,_0x1d2617,_0x295806,messageTypes['WARNING'],_0x4cb560[_0x383b38(0x1a4)],_0x4cb560[_0x383b38(0x273)],_0x4cb560[_0x383b38(0x252)]),logger[_0x383b38(0x1ad)](_0x295806);else{const _0x3d4201=_0x4cb560['tkYoA'][_0x383b38(0x1d8)]('|');let _0x340079=0x0;while(!![]){switch(_0x3d4201[_0x340079++]){case'0':process[_0x383b38(0x292)](0x1);continue;case'1':_0x295806='Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20'+_0x5ae12c['message']+_0x383b38(0x20e);continue;case'2':await _0x4cb560['hUrPx'](reportToGalactusAndSendToEDS,_0x5dd7be,_0x1d2617,_0x295806,messageTypes['ERROR'],_0x4cb560[_0x383b38(0x1a4)],_0x4cb560[_0x383b38(0x1ab)],_0x4cb560[_0x383b38(0x26e)]);continue;case'3':await _0x4cb560[_0x383b38(0x298)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'4':logger[_0x383b38(0x1d4)](_0x295806);continue;}break;}}}let _0x434284=await _0x4cb560[_0x383b38(0x29f)](getNodeGroupInfo,_0x4b63dc,_0x4b63dc+_0x383b38(0x205));nodeRole=_0x434284[_0x383b38(0x21f)][_0x383b38(0x17f)];const _0x38bf32=await _0x4cb560[_0x383b38(0x1af)](createAuthConfigMap,nodeRole);await _0x9f54d7[_0x383b38(0x28e)](_0x4cb560[_0x383b38(0x185)],_0x38bf32)[_0x383b38(0x1f7)](_0x53863b=>{const _0x5ade47=_0x383b38;logger[_0x5ade47(0x26f)](_0x4cb560[_0x5ade47(0x1da)]);});}try{_0x353845=_0x4cb560[_0x383b38(0x289)](kebabCase,_0x1694f5),logger[_0x383b38(0x26f)](_0x4cb560[_0x383b38(0x183)]);const _0x509dfc={};_0x509dfc['type']=WS_EVENTS[_0x383b38(0x243)],_0x509dfc['message']=_0x4cb560[_0x383b38(0x183)],webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0x509dfc);if(_0x4cb560[_0x383b38(0x2a5)](_0x353845,_0x4cb560['LvAdT'])){const _0xa5284a={};_0xa5284a['createdBy']=_0x4cb560[_0x383b38(0x244)],_0xa5284a['managedBy']=_0x4cb560[_0x383b38(0x244)];const _0x2b64c4={};_0x2b64c4[_0x383b38(0x2a2)]=_0x353845,_0x2b64c4['annotations']=_0xa5284a;const _0x371729={};_0x371729['metadata']=_0x2b64c4;let _0x3fc2d7=_0x371729;await _0x9f54d7[_0x383b38(0x1d2)](_0x3fc2d7),logger[_0x383b38(0x26f)](_0x4cb560[_0x383b38(0x1ef)]);}const _0x501f3f={};_0x501f3f[_0x383b38(0x295)]=WS_EVENTS[_0x383b38(0x243)],_0x501f3f['message']=_0x4cb560[_0x383b38(0x214)],webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0x501f3f);const _0x479d57={};_0x479d57['type']=WS_EVENTS[_0x383b38(0x243)],_0x479d57[_0x383b38(0x1a5)]=_0x4cb560[_0x383b38(0x23a)],webSocketUtils['sendEventToBackend'](_0x1d2617,_0x479d57),logger['info'](_0x4cb560[_0x383b38(0x1b6)]),await _0x4cb560[_0x383b38(0x271)](addGridComponents,_0x9f54d7,_0x4c8ca2,_0x58ebc0,_0x400bce,_0x353845,_0x4b63dc,_0x3b4224,_0xd6402e),_0x295806=_0x4cb560[_0x383b38(0x192)],logger['info'](_0x295806);const _0xc80f0e={};_0xc80f0e[_0x383b38(0x295)]=WS_EVENTS['LOG'],_0xc80f0e[_0x383b38(0x1a5)]=_0x295806,webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0xc80f0e),_0x295806=_0x4cb560['tzpeS'],logger[_0x383b38(0x26f)](_0x295806);const _0x27f37b={};_0x27f37b['type']=WS_EVENTS['LOG'],_0x27f37b[_0x383b38(0x1a5)]=_0x295806,webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0x27f37b),await webSocketUtils[_0x383b38(0x232)](0x1388);let _0x29565e;await _0x9f54d7[_0x383b38(0x1d5)](_0x4cb560['OrhsW'],_0x353845)[_0x383b38(0x1fd)](_0x4bec4d=>{const _0x5880e9=_0x383b38,_0x580ba9=_0x4cb560[_0x5880e9(0x193)]['split']('|');let _0x5c9d4c=0x0;while(!![]){switch(_0x580ba9[_0x5c9d4c++]){case'0':const _0x5ad52f={};_0x5ad52f[_0x5880e9(0x295)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x5ad52f[_0x5880e9(0x1a5)]=_0x5880e9(0x28f)+_0x29565e,webSocketUtils['sendEventToBackend'](_0x1d2617,_0x5ad52f);continue;case'1':const _0x3222c1={};_0x3222c1['type']=WS_EVENTS[_0x5880e9(0x243)],_0x3222c1['message']=_0x295806,webSocketUtils['sendEventToBackend'](_0x1d2617,_0x3222c1);continue;case'2':const _0x2f09b1={};_0x2f09b1['type']=WS_EVENTS['LOG'],_0x2f09b1[_0x5880e9(0x1a5)]=_0x295806,webSocketUtils[_0x5880e9(0x1ae)](_0x1d2617,_0x2f09b1);continue;case'3':_0x295806=_0x5880e9(0x1ac)+_0x29565e+'\x20';continue;case'4':logger[_0x5880e9(0x26f)](_0x295806);continue;case'5':_0x29565e=_0x4bec4d[_0x5880e9(0x215)]['status'][_0x5880e9(0x1cd)]['ingress'][0x0][_0x5880e9(0x255)];continue;case'6':logger[_0x5880e9(0x26f)](_0x295806);continue;case'7':_0x295806=_0x5880e9(0x1c1)+_0x29565e+_0x5880e9(0x27c);continue;}break;}}),await webSocketUtils[_0x383b38(0x232)](0x1f4);}catch(_0x40014c){if(_0x4cb560[_0x383b38(0x1b3)](_0x4d32ea,![]))try{logger[_0x383b38(0x26f)](_0x383b38(0x21e)),await _0x4cb560['FmhvQ'](removeGridComponents,_0x9f54d7,_0x4c8ca2,_0x58ebc0,_0x400bce,_0x353845),await _0x4cb560[_0x383b38(0x24e)](deleteClusterAndDependencies,global_registry[_0x383b38(0x22e)]);}catch(_0x30ce2c){throw _0x30ce2c;}throw _0x40014c;}}catch(_0x4ec335){const _0x5a7992='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x4ec335+'\x20\x0a'+JSON[_0x383b38(0x282)](_0x4ec335)+'\x20';if(_0x1d2617){const _0x5e8508={};_0x5e8508[_0x383b38(0x295)]=WS_EVENTS[_0x383b38(0x243)],_0x5e8508[_0x383b38(0x1a5)]=_0x5a7992,webSocketUtils[_0x383b38(0x1ae)](_0x1d2617,_0x5e8508,_0x4cb560[_0x383b38(0x26e)],!![]);}const _0x54e94d={};_0x54e94d[_0x383b38(0x1d4)]=_0x5a7992,await _0x4cb560['TiSZe'](sendInstrumentationEvent,_0x5dd7be,_0x4cb560[_0x383b38(0x1a4)],messageTypes[_0x383b38(0x18e)],_0x4cb560['kGbtq'],_0x54e94d,_0x5dd7be),logger[_0x383b38(0x1d4)](_0x5a7992);}process[_0x383b38(0x292)](0x0);};
1
+ const a4_0x24aeda=a4_0x1bb6;function a4_0x1ea5(){const _0x2539e8=['metadata','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','GpnzD','nodegroup','match','defaultGridProfile','accessKey','Subnets\x20=>\x20','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20only\x20AWS\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Creating\x20namespace','Spawning\x20the\x20grid\x20','WjYSh','QyyzR','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://','data','exit','ZoKeg','Deleting\x20the\x20CloudFormation\x20Stacks','IaCPA','catch','INFO','<UsernamePlaceholder>','cYUUA','grid','cluster','cluster-name','statusCode','aws','GGxrN','qCMXr','grid-profile','2835469MYMjHu','ClusterRole\x20=>\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ingress','MoRQv','EGntQ','tvmLR','stringify','pre-spawned-invalid-vpc','sZBJd','HBBzA','WARNING','Stacks','Cluster\x20and\x20node\x20group\x20created\x20successfully','debug','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','zujJC','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','oghIR','readFileSync','bstackAccesskey','LOG','cYMAw','fDKJU','cloudProviderAccessKey','clusterName','eAFUg','ZQifN','OutputValue','YVJHj','writeFileSync','FfkMS','GET','method','owNat','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','create-grid-checks-auth-failed','HvZlB','create-grid-checks-grid-already-exists','AcrAz','dVSWM','.\x20Deleting\x20all\x20the\x20stacks','FoRmK','string','region','handler','../../utils/instrumentationUtils','40210oTCyNw','mSQMr','peFFU','cloudProvider','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','GmAtZ','pre-spawned-subnets-not-selected','createNamespacedConfigMap','DAudn','SEUIm','266866VUCNAa','type','<PasswordPlaceholder>','Spawning\x20Grid\x20on\x20the\x20Cluster','fkefJ','create-grid-checks-invalid-profile','Skipping\x20Autoscaler\x20due\x20to:\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',',\x20ClusterRole\x20=>\x20','zbGQm','SoiFb','autoscaler-creation-failed','name','DNYvX','../../utils/createk8sClient','secret','KYBmx',',\x20NodeRole\x20=>\x20','xVdch','GvPzP','Cluster\x20=>\x20','iKDCN','https://','hGsZA','../../utils/deleteStack','EntKf','ZLdWv','YxBea','vVhVP','IfiVy','delay','NodeRole\x20=>\x20','ngMdL','3|0|4|2|5|6|1','WGsTN','CJBta','aFIzE','ZStPG','NbgrC','3zKUiCD','SecurityGroups\x20=>\x20','Subnets:\x20','warning','clusterRegion','promisify','util','../../utils/utilityMethods','Spawning\x20grid\x20on\x20to\x20the\x20cluster','Outputs','message','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','annotations','reconnecting-websocket','body','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','pveOA','YFehC','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','IXaKP','zFmdo','securityGroups','eBBDq','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','gAEqS','1393542yvGHGw','8UVelGh','Namespace\x20created','Grid\x20profile\x20fetched\x20from\x20backend','Autoscaler\x20Role\x20created.ARN:\x20','s3bucket','password','febqu','Create\x20a\x20new\x20Automation\x20grid.','parse','emPuL','4|1|6|3|0|2|5','nodeRole','nTafK','FSQGs','Grid\x20spawned\x20on\x20the\x20cluster','SDMTS','ffYZa','sBEii','85DOixYi','rapCM','BaCfA','aOTaT','BSqcR','wBUbR','Grid\x20can\x20be\x20accessed\x20at:\x20','rqXKA','Browserstack','existsSync','wYBRg','\x20using\x20\x27','CLI_RUN_FINISHED','WHrIg','MAAHl','description','replace','WINAN','alreadyPresent','hCoIx','ElZmC','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','rxhnD','Found\x20Subnets:\x20','115272UXiGPv','HoXzN','MIKVx','../../utils/createClusterStack','Found\x20VPC:\x20','XQJal','createdBy','grid-name','DUKgv','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','Cluster\x20','vLEcM','CLI\x20run\x20started','vmMyY','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','gridProfile','browserstack-turboscale-grid-service','jgaHO','toLowerCase','6|7|4|0|5|3|2|1','EyQBv','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','rMTII','concurrency','warn','GpBaR','../../utils/hstUtils','nyPBe','wqYtt','mQgXX','split','1|2|3|0|4','Following\x20resources\x20are\x20created:','dFxbe','hWVNi','ERROR','help','3|1|4|2|0','MgWxb','1146066KrEkal','create-grid-checks-non-200','igWIf','error','../../utils/AWSUtils','KzUYb','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/create-grid-checks?gridName=','ZWERW','DBBmq','\x20in\x20existing\x20cluster\x20\x27','instanceType','OzNHF','Authmap\x20already\x20exists.\x20Not\x20updating','gvASp','epilogue','PXfXi','KsZJj','create','builder',',\x20Subnets\x20=>\x20','../../config/constants','status','ZulKW','createNamespace','loadBalancer','VPC\x20=>\x20','vIPeM','../../utils/createAutoscalerStack','sIAYl','DCnXA','endpoint','cloudProviderSecretKey','mjweq','../../utils/userInput','usage','FCcrp','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.','username','uuid','eyopF','tNJaI','gLBso','certificateAuthority','../../utils/webSocketUtils','gridProfiles','uIsmz','pqfmC','reportToGalactusAndSendToEDS','sendEventToBackend',':4444/wd/hub','DRHip','Rvkyb','JgHhM','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','url','kLwEt','KnJAw','vpc','options','gridName','non-aws-cluster','create-grid-checks-null-response','info','teVJv','IAneR','rTdmx','qSUlI','JttsO','319146IvSfvr','readNamespacedService','length','1309DVVfGW','ogPgl','CLI\x20run\x20finished:\x20','mbxDb','auth',',\x20SecurityGroups\x20=>\x20','CLI_RUN_STARTED'];a4_0x1ea5=function(){return _0x2539e8;};return a4_0x1ea5();}(function(_0xbe673c,_0x523862){const _0x4e939a=a4_0x1bb6,_0x13fd79=_0xbe673c();while(!![]){try{const _0x1ecdf1=-parseInt(_0x4e939a(0x1c6))/0x1*(-parseInt(_0x4e939a(0x2da))/0x2)+-parseInt(_0x4e939a(0x277))/0x3+-parseInt(_0x4e939a(0x20b))/0x4*(parseInt(_0x4e939a(0x1f3))/0x5)+-parseInt(_0x4e939a(0x232))/0x6+parseInt(_0x4e939a(0x2a1))/0x7*(parseInt(_0x4e939a(0x1e1))/0x8)+-parseInt(_0x4e939a(0x1e0))/0x9+-parseInt(_0x4e939a(0x2d0))/0xa*(-parseInt(_0x4e939a(0x27a))/0xb);if(_0x1ecdf1===_0x523862)break;else _0x13fd79['push'](_0x13fd79['shift']());}catch(_0x199735){_0x13fd79['push'](_0x13fd79['shift']());}}}(a4_0x1ea5,0x536e0));const fs=require('fs'),ws=require('ws'),util=require(a4_0x24aeda(0x1cc)),ReconnectingWebSocket=require(a4_0x24aeda(0x1d3)),request=require('request'),{v4:uuidv4}=require(a4_0x24aeda(0x259)),webSocketUtils=require(a4_0x24aeda(0x25e)),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require(a4_0x24aeda(0x254)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a4_0x24aeda(0x1cd)),{sendAWSInfoToHST}=require(a4_0x24aeda(0x225)),{isClusterPresent,getClusterInfo,configureAWSIfNotConfigured,createAuthConfigMap,getNodeGroupInfo,isVPCPresent,isSubnetsValid}=require(a4_0x24aeda(0x236)),{addGridComponents,deleteClusterAndDependencies,removeGridComponents}=require('../../utils/gridComponents'),{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_0x24aeda(0x247)),{createClusterStack}=require(a4_0x24aeda(0x20e)),{createAutoscalerStack}=require(a4_0x24aeda(0x24e)),{createK8sClient}=require(a4_0x24aeda(0x2e8)),{sendInstrumentationEvent}=require(a4_0x24aeda(0x2cf)),{deleteClusterStack}=require(a4_0x24aeda(0x1b7)),promisifiedRequest=util[a4_0x24aeda(0x1cb)](request);function a4_0x1bb6(_0xe9ab76,_0x3dca0b){const _0x1ea57a=a4_0x1ea5();return a4_0x1bb6=function(_0x1bb66d,_0x329b99){_0x1bb66d=_0x1bb66d-0x1b5;let _0x52f689=_0x1ea57a[_0x1bb66d];return _0x52f689;},a4_0x1bb6(_0xe9ab76,_0x3dca0b);}exports['command']=a4_0x24aeda(0x299),exports['desc']=a4_0x24aeda(0x1e8),exports[a4_0x24aeda(0x245)]=function(_0x1e5caa){const _0x185533=a4_0x24aeda,_0x23eb04={};_0x23eb04[_0x185533(0x284)]=_0x185533(0x1d1),_0x23eb04['hWVNi']=_0x185533(0x2cc),_0x23eb04[_0x185533(0x2c3)]=_0x185533(0x2d4),_0x23eb04[_0x185533(0x1f1)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x23eb04[_0x185533(0x1b6)]=_0x185533(0x2a3),_0x23eb04[_0x185533(0x26a)]=_0x185533(0x2e1),_0x23eb04[_0x185533(0x1f7)]=_0x185533(0x22f);const _0x4db99b=_0x23eb04,_0x266b16={};_0x266b16[_0x185533(0x202)]=_0x4db99b['GpnzD'],_0x266b16[_0x185533(0x2db)]=_0x4db99b[_0x185533(0x22d)];const _0x1d42e6={};_0x1d42e6['description']=_0x4db99b['owNat'],_0x1d42e6[_0x185533(0x2db)]=_0x4db99b[_0x185533(0x22d)];const _0x141790={};_0x141790['description']=_0x4db99b[_0x185533(0x1f1)],_0x141790[_0x185533(0x2db)]=_0x4db99b['hWVNi'];const _0x469daf={};_0x469daf[_0x185533(0x202)]=_0x4db99b[_0x185533(0x1b6)],_0x469daf[_0x185533(0x2db)]=_0x4db99b[_0x185533(0x22d)];const _0x13af07={};_0x13af07[_0x185533(0x202)]=_0x4db99b[_0x185533(0x26a)],_0x13af07['type']=_0x4db99b[_0x185533(0x22d)];const _0x3a0aa8={};return _0x3a0aa8[_0x185533(0x212)]=_0x266b16,_0x3a0aa8[_0x185533(0x2a0)]=_0x1d42e6,_0x3a0aa8[_0x185533(0x29b)]=_0x141790,_0x3a0aa8['cloud-provider']=_0x469daf,_0x3a0aa8[_0x185533(0x2cd)]=_0x13af07,_0x1e5caa[_0x185533(0x255)](HELP_HEADER_MESSAGE[_0x185533(0x244)])[_0x185533(0x241)](HELP_FOOTER_MESSAGE)[_0x185533(0x26d)](_0x3a0aa8)[_0x185533(0x22f)](_0x4db99b[_0x185533(0x1f7)])['argv'];},exports[a4_0x24aeda(0x2ce)]=async function(_0xa5f36e){const _0x3f1c49=a4_0x24aeda,_0x455e53={'QFiUD':'0|1|2|3|4','vmMyY':_0x3f1c49(0x1d5),'sIAYl':_0x3f1c49(0x23f),'gvASp':'0|6|7|4|1|3|2|5','ZWERW':_0x3f1c49(0x1d1),'eAFUg':_0x3f1c49(0x2cc),'cYMAw':_0x3f1c49(0x2d4),'WjYSh':_0x3f1c49(0x268),'SKape':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','KzUYb':_0x3f1c49(0x2e1),'oghIR':_0x3f1c49(0x22f),'OzNHF':_0x3f1c49(0x1eb),'SoiFb':_0x3f1c49(0x235),'zFmdo':'Configuring\x20AWS','CJBta':function(_0x89b560){return _0x89b560();},'XQJal':_0x3f1c49(0x21e),'qCMXr':function(_0x12005a){return _0x12005a();},'xVdch':function(_0xa0d3f5){return _0xa0d3f5();},'emPuL':function(_0x526136,_0x16d4a0){return _0x526136===_0x16d4a0;},'MoRQv':'ctxgN','Ivjap':_0x3f1c49(0x282),'IaCPA':function(_0x4c72f6,_0x878be2,_0x1d8a15,_0x9b2c4d,_0x48c85d,_0x70d81,_0x161bc7){return _0x4c72f6(_0x878be2,_0x1d8a15,_0x9b2c4d,_0x48c85d,_0x70d81,_0x161bc7);},'KYBmx':'create-grid-called','MAAHl':'init-not-called','IAneR':function(_0x173e94,_0x30cd15,_0x1962c5,_0x55d2d2,_0x10b8cb,_0x56c01e,_0x5491d0){return _0x173e94(_0x30cd15,_0x1962c5,_0x55d2d2,_0x10b8cb,_0x56c01e,_0x5491d0);},'ZLdWv':_0x3f1c49(0x297),'YVJHj':_0x3f1c49(0x2dc),'FoRmK':'Adding\x20Websocket\x20listeners','MgWxb':function(_0x5748f2,_0x32b699){return _0x5748f2!==_0x32b699;},'ElZmC':_0x3f1c49(0x2a6),'aOTaT':function(_0x3657a5,_0x5751c1){return _0x3657a5===_0x5751c1;},'SDMTS':'rataC','ogPgl':_0x3f1c49(0x243),'Irktq':_0x3f1c49(0x214),'pveOA':function(_0x2ce79a,_0x1d499b,_0x24d526,_0x4961e3,_0x4b2ff0,_0x5717f9,_0x10f2b4,_0x84ed00){return _0x2ce79a(_0x1d499b,_0x24d526,_0x4961e3,_0x4b2ff0,_0x5717f9,_0x10f2b4,_0x84ed00);},'lYeox':'prespawned-cluster-args-not-passed','vLEcM':function(_0x2ef211,_0x2abd60){return _0x2ef211!==_0x2abd60;},'rtGnO':_0x3f1c49(0x29d),'ZhHLY':function(_0x445f91,_0x26b7dd){return _0x445f91!==_0x26b7dd;},'rxhnD':'JwAhB','ngMdL':_0x3f1c49(0x28a),'HBBzA':function(_0x493c42,_0x4268cc,_0x1cdee5,_0x2ff281,_0x27b470,_0x1bcb63,_0x1fb9fc,_0x54b870){return _0x493c42(_0x4268cc,_0x1cdee5,_0x2ff281,_0x27b470,_0x1bcb63,_0x1fb9fc,_0x54b870);},'YxBea':_0x3f1c49(0x26f),'GpBaR':_0x3f1c49(0x1c4),'wYBRg':function(_0x45fbb0,_0x3e8e62){return _0x45fbb0!==_0x3e8e62;},'rapCM':_0x3f1c49(0x200),'UVask':_0x3f1c49(0x2c1),'PXfXi':function(_0x106b94,_0x5b4dd5){return _0x106b94(_0x5b4dd5);},'aPhmY':function(_0x21022d,_0x1c660e){return _0x21022d==_0x1c660e;},'mQgXX':function(_0x1a50d8,_0x255004){return _0x1a50d8==_0x255004;},'SRCZV':function(_0x24c934,_0x5c130d){return _0x24c934!==_0x5c130d;},'GmAtZ':_0x3f1c49(0x28e),'BaCfA':_0x3f1c49(0x275),'vIPeM':_0x3f1c49(0x2b0),'sBEii':function(_0x44e918,_0x228cb4,_0x463e86,_0x23afee,_0x4496d0,_0x1dd378,_0x14ae17,_0x1db1c1){return _0x44e918(_0x228cb4,_0x463e86,_0x23afee,_0x4496d0,_0x1dd378,_0x14ae17,_0x1db1c1);},'zbGQm':_0x3f1c49(0x270),'IfiVy':function(_0x1c7727,_0x1a33b4){return _0x1c7727===_0x1a33b4;},'rlHhG':function(_0x9b40fb,_0x2bb595){return _0x9b40fb!==_0x2bb595;},'mbxDb':_0x3f1c49(0x25a),'eBBDq':_0x3f1c49(0x292),'SEUIm':_0x3f1c49(0x238),'mjweq':function(_0x33576a,_0x154b33,_0x46ed0c,_0x4c9209,_0x19bd4f,_0xc51f3e,_0x267545,_0x4fd0fc){return _0x33576a(_0x154b33,_0x46ed0c,_0x4c9209,_0x19bd4f,_0xc51f3e,_0x267545,_0x4fd0fc);},'LEjja':_0x3f1c49(0x2c5),'GGxrN':function(_0x19b131,_0x331f16){return _0x19b131!==_0x331f16;},'rqXKA':'QwGMt','aFIzE':_0x3f1c49(0x233),'igWIf':_0x3f1c49(0x1e3),'teVJv':_0x3f1c49(0x2d2),'febqu':_0x3f1c49(0x1b8),'zHEFl':'An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use--grid\x20-\x20name\x20option\x20to\x20provide\x20another\x20grid\x20name','tNJaI':function(_0x16ae05,_0x9999c6,_0x4f14f8,_0x11812e,_0x1ee8cc,_0x32865b,_0x193c3e,_0x56ee22){return _0x16ae05(_0x9999c6,_0x4f14f8,_0x11812e,_0x1ee8cc,_0x32865b,_0x193c3e,_0x56ee22);},'uZzrN':_0x3f1c49(0x2c7),'dVSWM':'qYIfV','HoXzN':_0x3f1c49(0x213),'ZQifN':'Lyhik','VwoHK':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','vVhVP':function(_0x32306d,_0x3c509f,_0x577618,_0x5af543,_0x73256b,_0x68f306,_0x280649,_0x425847){return _0x32306d(_0x3c509f,_0x577618,_0x5af543,_0x73256b,_0x68f306,_0x280649,_0x425847);},'wBUbR':_0x3f1c49(0x2df),'dIHum':_0x3f1c49(0x1c0),'ekHhv':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','jgaHO':function(_0x3c5542,_0x8bfadd){return _0x3c5542(_0x8bfadd);},'rzLjA':_0x3f1c49(0x2c4),'nyPBe':_0x3f1c49(0x22a),'wqYtt':function(_0x481f2f,_0x5a871d){return _0x481f2f===_0x5a871d;},'gLBso':function(_0x23fcb0){return _0x23fcb0();},'FfkMS':function(_0x585dad,_0x21dbf9){return _0x585dad===_0x21dbf9;},'NncDE':function(_0x19fc3b,_0x1e4c19,_0x1a8bbf){return _0x19fc3b(_0x1e4c19,_0x1a8bbf);},'DNYvX':_0x3f1c49(0x223),'cYUUA':_0x3f1c49(0x1dd),'gwWYe':function(_0x1dd9cf,_0x2a378e){return _0x1dd9cf!=_0x2a378e;},'JgHhM':function(_0x1d04e5,_0x3158f7){return _0x1d04e5!=_0x3158f7;},'GvPzP':function(_0x3a3728,_0x1c28e9){return _0x3a3728!==_0x1c28e9;},'JttsO':function(_0x34f128,_0x9a263f){return _0x34f128>_0x9a263f;},'mSQMr':_0x3f1c49(0x1de),'NbgrC':_0x3f1c49(0x2d6),'RbKpl':function(_0x56ebd0,_0x12e8fe,_0x5a0b14){return _0x56ebd0(_0x12e8fe,_0x5a0b14);},'AcrAz':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','DBBmq':_0x3f1c49(0x2a9),'KnJAw':function(_0x38ca0f,_0x17603a,_0x578401,_0x5b922b){return _0x38ca0f(_0x17603a,_0x578401,_0x5b922b);},'aNFJh':function(_0x41d1b3,_0x1e2c31,_0x344835,_0x19e3ef,_0x2192f9,_0x268035,_0xb3836c,_0x15564b){return _0x41d1b3(_0x1e2c31,_0x344835,_0x19e3ef,_0x2192f9,_0x268035,_0xb3836c,_0x15564b);},'dFxbe':'pre-spawned-invalid-subnets','HvZlB':function(_0x5c18d2,_0x5ac301,_0x5b806a,_0x3494af){return _0x5c18d2(_0x5ac301,_0x5b806a,_0x3494af);},'hCoIx':_0x3f1c49(0x22b),'YFehC':_0x3f1c49(0x257),'kciUP':function(_0x27f110,_0x27814c){return _0x27f110(_0x27814c);},'WGsTN':'Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','rMTII':_0x3f1c49(0x219),'MIKVx':function(_0x218d68,_0x11e886){return _0x218d68(_0x11e886);},'pqfmC':_0x3f1c49(0x2ae),'uIsmz':function(_0x1ebdae,_0x5d32d9,_0xf72283,_0x47a39f,_0x1c5e35){return _0x1ebdae(_0x5d32d9,_0xf72283,_0x47a39f,_0x1c5e35);},'fkefJ':function(_0x561ea3,_0x30e32a){return _0x561ea3===_0x30e32a;},'ZulKW':'Creating\x20Autoscaler\x20Role','zujJC':_0x3f1c49(0x262),'tvmLR':_0x3f1c49(0x1c9),'DKCmh':_0x3f1c49(0x230),'ilMhu':function(_0x34fb85,_0x3e31ef,_0x1a813d,_0x100263,_0x299e41,_0x40d565,_0x39555c,_0x36aa60){return _0x34fb85(_0x3e31ef,_0x1a813d,_0x100263,_0x299e41,_0x40d565,_0x39555c,_0x36aa60);},'xTVeH':_0x3f1c49(0x2e5),'IXaKP':function(_0x2a09e7,_0x113151){return _0x2a09e7(_0x113151);},'OGmyk':function(_0x599bc6,_0x46fb94,_0x45e6d5){return _0x599bc6(_0x46fb94,_0x45e6d5);},'gAEqS':'kube-system','DAudn':_0x3f1c49(0x28b),'sZBJd':function(_0x5888ac,_0x201517){return _0x5888ac!==_0x201517;},'iKDCN':'default','FCcrp':_0x3f1c49(0x1fb),'EyQBv':'Namespace\x20Created','yyDPq':_0x3f1c49(0x1e2),'DCnXA':_0x3f1c49(0x1ce),'WINAN':_0x3f1c49(0x2dd),'kvpKy':function(_0x28de32,_0xbd2a02,_0x505b0f,_0xb3f75b,_0x510fee,_0x31da16,_0x145211,_0x2cf376,_0x3d16fa){return _0x28de32(_0xbd2a02,_0x505b0f,_0xb3f75b,_0x510fee,_0x31da16,_0x145211,_0x2cf376,_0x3d16fa);},'FSQGs':_0x3f1c49(0x1ef),'ToBOy':_0x3f1c49(0x220),'Rvkyb':_0x3f1c49(0x21b),'DRHip':function(_0x372e19,_0x421769,_0x58a218,_0x5c053b,_0xf330a5,_0x5b850b){return _0x372e19(_0x421769,_0x58a218,_0x5c053b,_0xf330a5,_0x5b850b);},'fDKJU':function(_0x331244,_0x1f36fd){return _0x331244(_0x1f36fd);},'rTdmx':function(_0x13d69d,_0x13b164,_0x2b4f8d,_0x293f09,_0x5adc7a,_0x3c7688,_0x13db5d){return _0x13d69d(_0x13b164,_0x2b4f8d,_0x293f09,_0x5adc7a,_0x3c7688,_0x13db5d);},'nTafK':'grid-spawning-failed'};let _0x3866ba=![],_0x321769,_0x14f745,_0x221934,_0x548185,_0x130b38,_0x2e3bc1,_0x5f2f3c,_0x584351,_0x4abc5d,_0x37da82;try{global_registry['requestId']=_0x455e53[_0x3f1c49(0x29f)](uuidv4);!fs[_0x3f1c49(0x1fc)](_0x455e53[_0x3f1c49(0x2ec)](getCredentialsPath))&&(_0x455e53[_0x3f1c49(0x1ea)](_0x455e53[_0x3f1c49(0x2a5)],_0x455e53[_0x3f1c49(0x2a5)])?(console['error'](_0x455e53['Ivjap']),await _0x455e53[_0x3f1c49(0x294)](sendInstrumentationEvent,_0xa5f36e,_0x455e53[_0x3f1c49(0x2ea)],messageTypes[_0x3f1c49(0x22e)],_0x455e53[_0x3f1c49(0x201)],null,_0xa5f36e),process[_0x3f1c49(0x291)](0x1)):_0x3571d9=_0x3a7959['gridName']);await _0x455e53[_0x3f1c49(0x273)](sendInstrumentationEvent,_0xa5f36e,_0x455e53[_0x3f1c49(0x2ea)],messageTypes[_0x3f1c49(0x296)],null,null,_0xa5f36e);const _0xc8d625=JSON[_0x3f1c49(0x1e9)](fs[_0x3f1c49(0x2b4)](_0x455e53[_0x3f1c49(0x29f)](getCredentialsPath)));global_registry['bstackUsername']=_0xc8d625[_0x3f1c49(0x1fb)][_0x3f1c49(0x258)],global_registry[_0x3f1c49(0x2b5)]=_0xc8d625[_0x3f1c49(0x1fb)][_0x3f1c49(0x1e6)];const _0x3a3185=WS_ENDPOINT[_0x3f1c49(0x203)](_0x455e53[_0x3f1c49(0x1b9)],_0xc8d625[_0x3f1c49(0x1fb)][_0x3f1c49(0x258)])[_0x3f1c49(0x203)](_0x455e53[_0x3f1c49(0x2be)],_0xc8d625['Browserstack'][_0x3f1c49(0x1e6)]),_0x160c1f={};_0x160c1f['WebSocket']=ws,_0x37da82=new ReconnectingWebSocket(_0x3a3185,[],_0x160c1f),logger[_0x3f1c49(0x2af)](_0x455e53[_0x3f1c49(0x2cb)]),webSocketUtils['addListeners'](_0x37da82,_0xa5f36e['user'],_0xa5f36e[_0x3f1c49(0x1e6)]);let _0x1d2b0a=DEFAULT_GRID_NAME;if(_0xa5f36e[_0x3f1c49(0x2ba)]||_0xa5f36e[_0x3f1c49(0x2d3)]||_0xa5f36e[_0x3f1c49(0x2cd)]){if(_0x455e53[_0x3f1c49(0x231)](_0x455e53[_0x3f1c49(0x207)],_0x455e53[_0x3f1c49(0x207)])){const _0xe7aedc=_0x455e53['QFiUD'][_0x3f1c49(0x229)]('|');let _0x2220f1=0x0;while(!![]){switch(_0xe7aedc[_0x2220f1++]){case'0':_0x2466fb=_0x455e53[_0x3f1c49(0x218)];continue;case'1':const _0xa78d7a={};_0xa78d7a[_0x3f1c49(0x2db)]=_0x4730eb[_0x3f1c49(0x2b6)],_0xa78d7a[_0x3f1c49(0x1d0)]=_0x38044b,_0x140b08[_0x3f1c49(0x263)](_0x285d42,_0xa78d7a);continue;case'2':_0x5a90dd['info'](_0x2a9245);continue;case'3':_0x2681e2['cloudProviderAccessKey']=_0x453ff7[_0x492803][_0x3f1c49(0x288)];continue;case'4':_0x27011b[_0x3f1c49(0x252)]=_0x1fa3e7[_0x4a857a]['secret'];continue;}break;}}else{!(_0xa5f36e[_0x3f1c49(0x2ba)]&&_0xa5f36e[_0x3f1c49(0x2d3)]&&_0xa5f36e[_0x3f1c49(0x2cd)])&&(_0x455e53['aOTaT'](_0x455e53[_0x3f1c49(0x1f0)],_0x455e53[_0x3f1c49(0x27b)])?_0x33dd2a[_0x3f1c49(0x271)](_0x455e53['sIAYl']):(_0x321769=_0x455e53['Irktq'],await _0x455e53[_0x3f1c49(0x1d6)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53['lYeox'],_0x455e53['SoiFb']),logger[_0x3f1c49(0x235)](_0x321769),process[_0x3f1c49(0x291)](0x1)));if(_0x455e53[_0x3f1c49(0x216)](_0xa5f36e['cloudProvider'][_0x3f1c49(0x21d)](),_0x455e53['rtGnO'])){if(_0x455e53['ZhHLY'](_0x455e53[_0x3f1c49(0x209)],_0x455e53[_0x3f1c49(0x209)])){const _0x5c7a95=_0x455e53[_0x3f1c49(0x240)][_0x3f1c49(0x229)]('|');let _0xae4d98=0x0;while(!![]){switch(_0x5c7a95[_0xae4d98++]){case'0':_0x5e180d=_0x5d14e7[_0x3f1c49(0x1d4)]['status'][_0x3f1c49(0x24b)][_0x3f1c49(0x2a4)][0x0]['hostname'];continue;case'1':_0x519e5e='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://'+_0x2e4a9c+_0x3f1c49(0x264);continue;case'2':const _0x3fe075={};_0x3fe075[_0x3f1c49(0x2db)]=_0x4e53a8[_0x3f1c49(0x2b6)],_0x3fe075[_0x3f1c49(0x1d0)]=_0x1e7282,_0x5e3dd4['sendEventToBackend'](_0x3fe900,_0x3fe075);continue;case'3':_0x1484c7['info'](_0xe72b20);continue;case'4':const _0x29768d={};_0x29768d[_0x3f1c49(0x2db)]=_0xdf5388['LOG'],_0x29768d[_0x3f1c49(0x1d0)]=_0x118ab7,_0x30bb6d[_0x3f1c49(0x263)](_0x1a8291,_0x29768d);continue;case'5':const _0x43bbc8={};_0x43bbc8[_0x3f1c49(0x2db)]=_0x4ab37e['CLI_RUN_FINISHED'],_0x43bbc8[_0x3f1c49(0x1d0)]=_0x3f1c49(0x27c)+_0x4281ad,_0xae346b['sendEventToBackend'](_0x57ed09,_0x43bbc8);continue;case'6':_0x418348=_0x3f1c49(0x1f9)+_0x5a9eed+'\x20';continue;case'7':_0x461f42[_0x3f1c49(0x271)](_0x47a50f);continue;}break;}}else _0x321769=_0x455e53[_0x3f1c49(0x1bf)],await _0x455e53[_0x3f1c49(0x2ab)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53['KYBmx'],_0x455e53[_0x3f1c49(0x1ba)],_0x455e53[_0x3f1c49(0x2e4)]),logger[_0x3f1c49(0x235)](_0x321769),process['exit'](0x1);}_0x3866ba=!![],_0x221934=_0xa5f36e['clusterName'],_0x14f745=_0xa5f36e[_0x3f1c49(0x2d3)],_0x548185=_0xa5f36e['region'];}}_0xa5f36e[_0x3f1c49(0x26e)]&&(_0x455e53['ZhHLY'](_0x455e53[_0x3f1c49(0x224)],_0x455e53[_0x3f1c49(0x224)])?_0x292ada=_0x336b61[_0x4903e3[_0x3f1c49(0x21a)]]:_0x1d2b0a=_0xa5f36e[_0x3f1c49(0x26e)]);global_registry[_0x3f1c49(0x26e)]=_0x1d2b0a;if(_0x455e53['emPuL'](_0x3866ba,![])){if(_0x455e53['wYBRg'](_0x455e53[_0x3f1c49(0x1f4)],_0x455e53['rapCM']))_0x57c404[_0x3f1c49(0x271)](_0x3f1c49(0x20a)+_0x1bcfc0['stringify'](_0x2ea03d)+'\x20');else{const _0x8a61a6=_0x3f1c49(0x1b5)+AG_API_URL+_0x3f1c49(0x239)+_0x1d2b0a,_0x501a68={};_0x501a68[_0x3f1c49(0x258)]=_0xc8d625[_0x3f1c49(0x1fb)][_0x3f1c49(0x258)],_0x501a68[_0x3f1c49(0x1e6)]=_0xc8d625[_0x3f1c49(0x1fb)][_0x3f1c49(0x1e6)];const _0x43a29e={};_0x43a29e[_0x3f1c49(0x269)]=_0x8a61a6,_0x43a29e[_0x3f1c49(0x2c2)]=_0x455e53['UVask'],_0x43a29e[_0x3f1c49(0x27e)]=_0x501a68;const _0x4c318a=_0x43a29e,_0x23df3c=await _0x455e53['PXfXi'](promisifiedRequest,_0x4c318a);(_0x455e53['aPhmY'](_0x23df3c,null)||_0x455e53[_0x3f1c49(0x228)](_0x23df3c,undefined))&&(_0x455e53['SRCZV'](_0x455e53[_0x3f1c49(0x2d5)],_0x455e53[_0x3f1c49(0x1f5)])?(_0x321769=_0x455e53[_0x3f1c49(0x24d)],await _0x455e53[_0x3f1c49(0x1f2)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes['ERROR'],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53[_0x3f1c49(0x2e3)],_0x455e53[_0x3f1c49(0x2e4)]),logger[_0x3f1c49(0x235)](_0x321769),process[_0x3f1c49(0x291)](0x1)):_0x2f9d06[_0x3f1c49(0x271)](_0x3f1c49(0x20f)+_0xfeaef+'\x20'));if(_0x455e53[_0x3f1c49(0x1bc)](_0x23df3c[_0x3f1c49(0x29c)],0x191)){if(_0x455e53['rlHhG'](_0x455e53[_0x3f1c49(0x27d)],_0x455e53[_0x3f1c49(0x1dc)]))_0x321769=_0x455e53[_0x3f1c49(0x2d9)],await _0x455e53[_0x3f1c49(0x253)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53['LEjja'],_0x455e53['SoiFb']),logger[_0x3f1c49(0x235)](_0x321769),process[_0x3f1c49(0x291)](0x1);else{const _0x45cb16={};_0x45cb16[_0x3f1c49(0x202)]=_0x455e53[_0x3f1c49(0x23a)],_0x45cb16[_0x3f1c49(0x2db)]=_0x455e53[_0x3f1c49(0x2bb)];const _0x51d1d8={};_0x51d1d8[_0x3f1c49(0x202)]=_0x455e53[_0x3f1c49(0x2b7)],_0x51d1d8[_0x3f1c49(0x2db)]=_0x455e53[_0x3f1c49(0x2bb)];const _0x5676f5={};_0x5676f5[_0x3f1c49(0x202)]=_0x455e53[_0x3f1c49(0x28d)],_0x5676f5[_0x3f1c49(0x2db)]=_0x455e53['eAFUg'];const _0x2dd7c1={};_0x2dd7c1['description']=_0x455e53['SKape'],_0x2dd7c1['type']=_0x455e53[_0x3f1c49(0x2bb)];const _0x41da1b={};_0x41da1b[_0x3f1c49(0x202)]=_0x455e53[_0x3f1c49(0x237)],_0x41da1b[_0x3f1c49(0x2db)]=_0x455e53[_0x3f1c49(0x2bb)];const _0x5d1371={};return _0x5d1371[_0x3f1c49(0x212)]=_0x45cb16,_0x5d1371[_0x3f1c49(0x2a0)]=_0x51d1d8,_0x5d1371[_0x3f1c49(0x29b)]=_0x5676f5,_0x5d1371['cloud-provider']=_0x2dd7c1,_0x5d1371['region']=_0x41da1b,_0x1b9217['usage'](_0x1c01c4[_0x3f1c49(0x244)])[_0x3f1c49(0x241)](_0x2a797b)[_0x3f1c49(0x26d)](_0x5d1371)[_0x3f1c49(0x22f)](_0x455e53[_0x3f1c49(0x2b3)])['argv'];}}if(_0x455e53['GGxrN'](_0x23df3c[_0x3f1c49(0x29c)],0xc8)){if(_0x455e53['IfiVy'](_0x455e53[_0x3f1c49(0x1fa)],_0x455e53[_0x3f1c49(0x1fa)]))_0x321769=_0x3f1c49(0x2b2)+JSON[_0x3f1c49(0x2a8)](_0x23df3c),await _0x455e53[_0x3f1c49(0x1f2)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes['ERROR'],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53[_0x3f1c49(0x1c3)],_0x455e53['SoiFb']),logger[_0x3f1c49(0x235)](_0x321769),process['exit'](0x1);else throw _0x1c1b14;}const _0x47b68d=JSON[_0x3f1c49(0x1e9)](_0x23df3c[_0x3f1c49(0x1d4)]),_0x2780a6={};_0x2780a6[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x280)],_0x2780a6[_0x3f1c49(0x1d0)]=_0x3f1c49(0x217),webSocketUtils['sendEventToBackend'](_0x37da82,_0x2780a6);const _0x5f2082={};_0x5f2082[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x2b6)],_0x5f2082['message']=_0x455e53[_0x3f1c49(0x234)],webSocketUtils['sendEventToBackend'](_0x37da82,_0x5f2082);if(_0x47b68d[_0x3f1c49(0x205)]){if(_0x455e53[_0x3f1c49(0x1fd)](_0x455e53[_0x3f1c49(0x272)],_0x455e53[_0x3f1c49(0x1e7)]))_0x321769=_0x455e53['zHEFl'],await _0x455e53[_0x3f1c49(0x25b)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53['uZzrN'],_0x455e53[_0x3f1c49(0x2e4)]),logger[_0x3f1c49(0x235)](_0x321769),process[_0x3f1c49(0x291)](0x1);else{const _0x23ee91=_0x455e53[_0x3f1c49(0x23e)][_0x3f1c49(0x229)]('|');let _0x485042=0x0;while(!![]){switch(_0x23ee91[_0x485042++]){case'0':_0x38dd14[_0x3f1c49(0x2d3)]=_0x380cdd;continue;case'1':_0x8796d2=_0x3f1c49(0x28c)+_0x4cd6f0+'\x20in\x20existing\x20cluster\x20\x27'+_0x2392ea+'\x27';continue;case'2':_0x38b126[_0x3f1c49(0x1ca)]=_0x14ec16;continue;case'3':const _0x48a9c4={};_0x48a9c4[_0x3f1c49(0x2db)]=_0x5bdc80[_0x3f1c49(0x2b6)],_0x48a9c4['message']=_0x2cc5e3,_0x4ba036['sendEventToBackend'](_0x44a2a8,_0x48a9c4);continue;case'4':const _0xa95b9e={};_0xa95b9e['type']=_0x409329[_0x3f1c49(0x280)],_0xa95b9e['message']=_0x3f1c49(0x217),_0xdebad3['sendEventToBackend'](_0x2826ad,_0xa95b9e);continue;case'5':_0x46a14f['clusterName']=_0xd66da1;continue;case'6':_0x5e9683[_0x3f1c49(0x271)](_0x3d5b99);continue;}break;}}}const _0x42db86=_0x47b68d[_0x3f1c49(0x25f)];let _0xeff3a=_0x42db86[_0x47b68d[_0x3f1c49(0x287)]];if(_0xa5f36e[_0x3f1c49(0x21a)]){if(_0x455e53['emPuL'](_0x455e53[_0x3f1c49(0x2c9)],_0x455e53[_0x3f1c49(0x20c)])){const _0x4b0eb9={};_0x4b0eb9[_0x3f1c49(0x2db)]=_0x5c0e81[_0x3f1c49(0x2b6)],_0x4b0eb9[_0x3f1c49(0x1d0)]=_0x4ad867,_0xfa8bf[_0x3f1c49(0x263)](_0xd2b4bc,_0x4b0eb9,_0x455e53[_0x3f1c49(0x2e4)],!![]);}else _0xeff3a=_0x42db86[_0xa5f36e[_0x3f1c49(0x21a)]];}_0x455e53[_0x3f1c49(0x1f6)](_0xeff3a,undefined)&&(_0x455e53['emPuL'](_0x455e53[_0x3f1c49(0x2bc)],_0x455e53[_0x3f1c49(0x2bc)])?(_0x321769=_0x455e53['VwoHK'],await _0x455e53[_0x3f1c49(0x1bb)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes['ERROR'],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53[_0x3f1c49(0x1f8)],_0x455e53[_0x3f1c49(0x2e4)]),logger[_0x3f1c49(0x235)](_0x321769),process[_0x3f1c49(0x291)](0x1)):(_0x3c2842['debug'](_0x455e53[_0x3f1c49(0x1da)]),_0x455e53[_0x3f1c49(0x1c2)](_0xdaa000)));global_registry['gridProfileId']=_0xeff3a['id'],_0x321769='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x1d2b0a+_0x3f1c49(0x1fe)+_0xeff3a['name']+'\x27\x20grid\x20profile',logger[_0x3f1c49(0x271)](_0x321769);const _0x525fab={};_0x525fab['type']=WS_EVENTS['LOG'],_0x525fab['message']=_0x321769,webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x525fab),_0x14f745=_0xeff3a['cloudProvider'],_0x221934=_0xeff3a[_0x3f1c49(0x2ba)],_0x548185=_0xeff3a['region'],_0x130b38=_0xeff3a[_0x3f1c49(0x222)],_0x2e3bc1=_0xeff3a[_0x3f1c49(0x23d)],_0x5f2f3c=_0xeff3a[_0x3f1c49(0x26c)],securityGroups=_0xeff3a[_0x3f1c49(0x1db)],subnets=_0xeff3a['subnets'],_0x584351=_0xeff3a[_0x3f1c49(0x1e5)],_0x455e53['HBBzA'](updateGlobalRegistryWithConfig,_0x14f745,_0x221934,_0x548185,_0x130b38,_0x2e3bc1,_0x584351,_0xeff3a);}}else{const _0x33da7c=_0x455e53['dIHum'][_0x3f1c49(0x229)]('|');let _0x281690=0x0;while(!![]){switch(_0x33da7c[_0x281690++]){case'0':_0x321769=_0x3f1c49(0x28c)+_0x1d2b0a+_0x3f1c49(0x23c)+_0x221934+'\x27';continue;case'1':global_registry[_0x3f1c49(0x2ba)]=_0x221934;continue;case'2':const _0x312dec={};_0x312dec['type']=WS_EVENTS['LOG'],_0x312dec[_0x3f1c49(0x1d0)]=_0x321769,webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x312dec);continue;case'3':const _0x2a6f33={};_0x2a6f33[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x280)],_0x2a6f33[_0x3f1c49(0x1d0)]=_0x3f1c49(0x217),webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x2a6f33);continue;case'4':logger[_0x3f1c49(0x271)](_0x321769);continue;case'5':global_registry[_0x3f1c49(0x2d3)]=_0x14f745;continue;case'6':global_registry[_0x3f1c49(0x1ca)]=_0x548185;continue;}break;}}const _0xbb0404=_0xc8d625[_0x3f1c49(0x2d3)]||{};if(_0x455e53[_0x3f1c49(0x1f6)](_0xbb0404[_0x14f745],undefined)){logger[_0x3f1c49(0x271)](_0x455e53['ekHhv']);const [_0x18a0da,_0x414c57]=await _0x455e53[_0x3f1c49(0x21c)](inputCloudProviderKeys,_0x14f745);_0xc8d625[_0x3f1c49(0x2d3)]={};const _0x586b1f={};_0x586b1f[_0x3f1c49(0x288)]=_0x18a0da,_0x586b1f[_0x3f1c49(0x2e9)]=_0x414c57,_0xc8d625[_0x3f1c49(0x2d3)][_0x14f745]=_0x586b1f,fs[_0x3f1c49(0x2bf)](_0x455e53[_0x3f1c49(0x1c2)](getCredentialsPath),JSON[_0x3f1c49(0x2a8)](_0xc8d625)),logger[_0x3f1c49(0x2af)](_0x455e53['rzLjA']),global_registry['cloudProviderAccessKey']=_0x18a0da,global_registry[_0x3f1c49(0x252)]=_0x414c57;}else{const _0x2d4259=_0x455e53[_0x3f1c49(0x226)][_0x3f1c49(0x229)]('|');let _0x5ccc2b=0x0;while(!![]){switch(_0x2d4259[_0x5ccc2b++]){case'0':global_registry[_0x3f1c49(0x2b9)]=_0xbb0404[_0x14f745][_0x3f1c49(0x288)];continue;case'1':_0x321769=_0x455e53[_0x3f1c49(0x218)];continue;case'2':const _0x2fd5ce={};_0x2fd5ce[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x2b6)],_0x2fd5ce[_0x3f1c49(0x1d0)]=_0x321769,webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x2fd5ce);continue;case'3':logger[_0x3f1c49(0x271)](_0x321769);continue;case'4':global_registry[_0x3f1c49(0x252)]=_0xbb0404[_0x14f745][_0x3f1c49(0x2e9)];continue;}break;}}_0x455e53[_0x3f1c49(0x227)](_0x14f745,AWS)&&(logger[_0x3f1c49(0x2af)](_0x455e53['zFmdo']),_0x455e53[_0x3f1c49(0x25c)](configureAWSIfNotConfigured));let _0x5c7d6d,_0x43ca80;if(_0x455e53[_0x3f1c49(0x2c0)](_0x3866ba,![])){_0x321769='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x548185+').';const _0x4fea32={};_0x4fea32['type']=WS_EVENTS['LOG'],_0x4fea32[_0x3f1c49(0x1d0)]=_0x321769,webSocketUtils['sendEventToBackend'](_0x37da82,_0x4fea32),logger['info'](_0x321769);const _0x3a82ce=await _0x455e53['NncDE'](isClusterPresent,_0x14f745,_0x221934);let _0x3d2f4c;if(_0x3a82ce){const _0x40a773={};_0x40a773[_0x3f1c49(0x2db)]=WS_EVENTS['LOG'],_0x40a773[_0x3f1c49(0x1d0)]=_0x3f1c49(0x215)+_0x221934+_0x3f1c49(0x1d8),webSocketUtils['sendEventToBackend'](_0x37da82,_0x40a773,_0x455e53[_0x3f1c49(0x2e7)]),logger[_0x3f1c49(0x223)](_0x3f1c49(0x215)+_0x221934+_0x3f1c49(0x1d8)),_0x5c7d6d=await _0x455e53[_0x3f1c49(0x242)](getClusterInfo,_0x221934),_0x3866ba=!![];}else{const _0x205835={};_0x205835['type']=WS_EVENTS[_0x3f1c49(0x2b6)],_0x205835[_0x3f1c49(0x1d0)]=_0x455e53['cYUUA'],webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x205835),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x298)]);const _0x35b2be=_0x455e53['gwWYe'](_0x5f2f3c,null)&&_0x455e53['GGxrN'](_0x5f2f3c,undefined),_0x3caf69=_0x455e53[_0x3f1c49(0x267)](subnets,null)&&_0x455e53[_0x3f1c49(0x2ed)](subnets,undefined)&&_0x455e53[_0x3f1c49(0x276)](subnets[_0x3f1c49(0x279)],0x0);let _0x4fdb8b;if(_0x35b2be){_0x455e53[_0x3f1c49(0x1bc)](_0x3caf69,![])&&(_0x321769=_0x455e53[_0x3f1c49(0x2d1)],await _0x455e53[_0x3f1c49(0x1bb)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53['KYBmx'],_0x455e53[_0x3f1c49(0x1c5)],_0x455e53[_0x3f1c49(0x2e4)]),logger['error'](_0x321769),process['exit'](0x1));const _0x5796ce=await _0x455e53['RbKpl'](isVPCPresent,_0x5f2f3c,_0x548185);_0x455e53[_0x3f1c49(0x1ea)](_0x5796ce,![])?(_0x321769=_0x455e53[_0x3f1c49(0x2c8)],await _0x455e53[_0x3f1c49(0x1d6)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53['KYBmx'],_0x455e53[_0x3f1c49(0x23b)],_0x455e53['SoiFb']),logger['error'](_0x321769),process[_0x3f1c49(0x291)](0x1)):logger[_0x3f1c49(0x271)](_0x3f1c49(0x20f)+_0x5f2f3c+'\x20');const _0x210063=await _0x455e53[_0x3f1c49(0x26b)](isSubnetsValid,subnets,_0x5f2f3c,_0x548185);_0x455e53[_0x3f1c49(0x1ea)](_0x210063[0x0],![])?(_0x321769=_0x3f1c49(0x1c8)+_0x210063[0x1]+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x5f2f3c+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x455e53['aNFJh'](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53['KYBmx'],_0x455e53[_0x3f1c49(0x22c)],_0x455e53[_0x3f1c49(0x2e4)]),logger['error'](_0x321769),process['exit'](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON[_0x3f1c49(0x2a8)](subnets)+'\x20');const _0x17c670=await _0x455e53[_0x3f1c49(0x2c6)](createClusterStack,_0x221934,_0x5f2f3c,subnets);logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x206)]),logger[_0x3f1c49(0x271)](_0x3f1c49(0x2ee)+_0x17c670['Stacks'][0x0][_0x3f1c49(0x1cf)][0x3][_0x3f1c49(0x2bd)]+'\x20'),logger[_0x3f1c49(0x271)](_0x3f1c49(0x2a2)+_0x17c670[_0x3f1c49(0x2ad)][0x0]['Outputs'][0x1][_0x3f1c49(0x2bd)]+'\x20'),logger[_0x3f1c49(0x271)](_0x3f1c49(0x1c7)+_0x17c670[_0x3f1c49(0x2ad)][0x0][_0x3f1c49(0x1cf)][0x0][_0x3f1c49(0x2bd)][_0x3f1c49(0x229)](',')+'\x20'),logger['info'](_0x3f1c49(0x1be)+_0x17c670[_0x3f1c49(0x2ad)][0x0][_0x3f1c49(0x1cf)][0x4][_0x3f1c49(0x2bd)]+'\x20');}else{const _0x535386={};_0x535386[_0x3f1c49(0x2db)]=WS_EVENTS['LOG'],_0x535386[_0x3f1c49(0x1d0)]=_0x455e53[_0x3f1c49(0x1d7)],webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x535386),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x1d7)]),_0x455e53['kciUP'](sendAWSInfoToHST,_0x37da82);const _0x341268={};_0x341268[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x2b6)],_0x341268[_0x3f1c49(0x1d0)]=_0x455e53[_0x3f1c49(0x1c1)],webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x341268),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x221)]);const _0x4b57d5=await _0x455e53[_0x3f1c49(0x20d)](createClusterStack,_0x221934),_0x17f563=_0x4b57d5[_0x3f1c49(0x2ad)][0x0][_0x3f1c49(0x1cf)][0x0]['OutputValue']['split'](',');_0x4fdb8b=_0x4b57d5['Stacks'][0x0]['Outputs'][0x1][_0x3f1c49(0x2bd)];const _0x180fcb=_0x4b57d5[_0x3f1c49(0x2ad)][0x0]['Outputs'][0x2][_0x3f1c49(0x2bd)],_0x13117c=_0x4b57d5[_0x3f1c49(0x2ad)][0x0][_0x3f1c49(0x1cf)][0x3][_0x3f1c49(0x2bd)];_0x3d2f4c=_0x4b57d5['Stacks'][0x0][_0x3f1c49(0x1cf)][0x4]['OutputValue'];const _0x4d00ba=_0x4b57d5[_0x3f1c49(0x2ad)][0x0][_0x3f1c49(0x1cf)][0x5]['OutputValue'][_0x3f1c49(0x229)](','),_0x67cfc={};_0x67cfc[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x2b6)],_0x67cfc[_0x3f1c49(0x1d0)]='Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20'+_0x13117c+_0x3f1c49(0x2e2)+_0x4fdb8b+',\x20VPC\x20=>\x20'+_0x180fcb+_0x3f1c49(0x246)+_0x4d00ba+_0x3f1c49(0x27f)+_0x17f563+_0x3f1c49(0x2eb)+_0x3d2f4c+'\x20',webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x67cfc),logger['info'](_0x455e53['hCoIx']),logger[_0x3f1c49(0x271)]('Cluster\x20=>\x20'+_0x13117c+'\x20'),logger[_0x3f1c49(0x271)]('ClusterRole\x20=>\x20'+_0x4fdb8b+'\x20'),logger[_0x3f1c49(0x271)](_0x3f1c49(0x24c)+_0x180fcb+'\x20'),logger[_0x3f1c49(0x271)](_0x3f1c49(0x289)+_0x4d00ba+'\x20'),logger[_0x3f1c49(0x271)](_0x3f1c49(0x1c7)+_0x17f563+'\x20'),logger[_0x3f1c49(0x271)](_0x3f1c49(0x1be)+_0x3d2f4c+'\x20');const _0x4541bf={};_0x4541bf['type']=WS_EVENTS[_0x3f1c49(0x2b6)],_0x4541bf[_0x3f1c49(0x1d0)]=_0x3f1c49(0x2ae),webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x4541bf),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x261)]);}}}_0x5c7d6d=await _0x455e53[_0x3f1c49(0x242)](getClusterInfo,_0x221934);const [_0x5cc782,_0x38d9a6,_0x221aee,_0x599de4,_0x559948]=await _0x455e53[_0x3f1c49(0x260)](createK8sClient,_0x5c7d6d[_0x3f1c49(0x29a)][_0x3f1c49(0x2e6)],_0x5c7d6d['cluster'][_0x3f1c49(0x251)],_0x5c7d6d[_0x3f1c49(0x29a)][_0x3f1c49(0x25d)][_0x3f1c49(0x290)],global_registry[_0x3f1c49(0x1ca)]);if(_0x455e53[_0x3f1c49(0x2de)](_0x3866ba,![])){const _0x1c8403={};_0x1c8403['type']=WS_EVENTS['LOG'],_0x1c8403[_0x3f1c49(0x1d0)]=_0x455e53[_0x3f1c49(0x249)],webSocketUtils['sendEventToBackend'](_0x37da82,_0x1c8403),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x249)]);try{const _0x36bc2c=await _0x455e53[_0x3f1c49(0x20d)](createAutoscalerStack,_0x221934);_0x43ca80=_0x36bc2c[_0x3f1c49(0x2ad)][0x0][_0x3f1c49(0x1cf)][0x2][_0x3f1c49(0x2bd)];const _0x5d396d={};_0x5d396d[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x2b6)],_0x5d396d['message']=_0x3f1c49(0x1e4)+_0x43ca80+'\x20',webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x5d396d),logger['info'](_0x3f1c49(0x1e4)+_0x43ca80+'\x20');}catch(_0xae1eda){if(_0x455e53[_0x3f1c49(0x29e)](_0xae1eda[_0x3f1c49(0x1d0)][_0x3f1c49(0x286)](/already exists/),null)||_0x455e53[_0x3f1c49(0x1fd)](_0xae1eda[_0x3f1c49(0x1d0)][_0x3f1c49(0x286)](/already exists/),undefined))_0x321769=_0x3f1c49(0x2e0)+_0xae1eda[_0x3f1c49(0x1d0)],await _0x455e53[_0x3f1c49(0x253)](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x2ac)],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53[_0x3f1c49(0x2b1)],_0x455e53[_0x3f1c49(0x2a7)]),logger[_0x3f1c49(0x223)](_0x321769);else{const _0x33204e=_0x455e53['DKCmh'][_0x3f1c49(0x229)]('|');let _0x56af20=0x0;while(!![]){switch(_0x33204e[_0x56af20++]){case'0':process[_0x3f1c49(0x291)](0x1);continue;case'1':await _0x455e53['ilMhu'](reportToGalactusAndSendToEDS,_0xa5f36e,_0x37da82,_0x321769,messageTypes[_0x3f1c49(0x22e)],_0x455e53[_0x3f1c49(0x2ea)],_0x455e53['xTVeH'],_0x455e53['SoiFb']);continue;case'2':await _0x455e53[_0x3f1c49(0x1d9)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'3':_0x321769=_0x3f1c49(0x208)+_0xae1eda[_0x3f1c49(0x1d0)]+_0x3f1c49(0x2ca);continue;case'4':logger['error'](_0x321769);continue;}break;}}}let _0x370550=await _0x455e53['OGmyk'](getNodeGroupInfo,_0x221934,_0x221934+'-NodeGroup');nodeRole=_0x370550[_0x3f1c49(0x285)][_0x3f1c49(0x1ec)];const _0x356634=await _0x455e53['PXfXi'](createAuthConfigMap,nodeRole);await _0x5cc782[_0x3f1c49(0x2d7)](_0x455e53[_0x3f1c49(0x1df)],_0x356634)[_0x3f1c49(0x295)](_0x379e2a=>{const _0x3893df=_0x3f1c49;logger[_0x3893df(0x271)](_0x455e53[_0x3893df(0x24f)]);});}try{_0x4abc5d=_0x455e53[_0x3f1c49(0x21c)](kebabCase,_0x1d2b0a),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x2d8)]);const _0x5b97e0={};_0x5b97e0[_0x3f1c49(0x2db)]=WS_EVENTS['LOG'],_0x5b97e0[_0x3f1c49(0x1d0)]=_0x455e53[_0x3f1c49(0x2d8)],webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x5b97e0);if(_0x455e53[_0x3f1c49(0x2aa)](_0x4abc5d,_0x455e53[_0x3f1c49(0x2ef)])){const _0x56bc4b={};_0x56bc4b[_0x3f1c49(0x211)]=_0x455e53[_0x3f1c49(0x256)],_0x56bc4b['managedBy']=_0x455e53[_0x3f1c49(0x256)];const _0x461f32={};_0x461f32[_0x3f1c49(0x2e6)]=_0x4abc5d,_0x461f32[_0x3f1c49(0x1d2)]=_0x56bc4b;const _0x16dff9={};_0x16dff9[_0x3f1c49(0x281)]=_0x461f32;let _0x3d7215=_0x16dff9;await _0x5cc782[_0x3f1c49(0x24a)](_0x3d7215),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x21f)]);}const _0x4d2476={};_0x4d2476[_0x3f1c49(0x2db)]=WS_EVENTS['LOG'],_0x4d2476['message']=_0x455e53['yyDPq'],webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x4d2476);const _0x45cb18={};_0x45cb18[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x2b6)],_0x45cb18[_0x3f1c49(0x1d0)]=_0x455e53[_0x3f1c49(0x250)],webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x45cb18),logger[_0x3f1c49(0x271)](_0x455e53[_0x3f1c49(0x204)]),await _0x455e53['kvpKy'](addGridComponents,_0x5cc782,_0x38d9a6,_0x221aee,_0x599de4,_0x4abc5d,_0x221934,_0x43ca80,_0x559948),_0x321769=_0x455e53[_0x3f1c49(0x1ee)],logger['info'](_0x321769);const _0x308f79={};_0x308f79[_0x3f1c49(0x2db)]=WS_EVENTS[_0x3f1c49(0x2b6)],_0x308f79[_0x3f1c49(0x1d0)]=_0x321769,webSocketUtils['sendEventToBackend'](_0x37da82,_0x308f79),_0x321769=_0x455e53['ToBOy'],logger[_0x3f1c49(0x271)](_0x321769);const _0x1fbbbb={};_0x1fbbbb['type']=WS_EVENTS[_0x3f1c49(0x2b6)],_0x1fbbbb['message']=_0x321769,webSocketUtils['sendEventToBackend'](_0x37da82,_0x1fbbbb),await webSocketUtils[_0x3f1c49(0x1bd)](0x1388);let _0x5a363b;await _0x5cc782[_0x3f1c49(0x278)](_0x455e53[_0x3f1c49(0x266)],_0x4abc5d)['then'](_0x1c863=>{const _0x24ae4d=_0x3f1c49,_0x2304e4=_0x455e53[_0x24ae4d(0x210)][_0x24ae4d(0x229)]('|');let _0xd77663=0x0;while(!![]){switch(_0x2304e4[_0xd77663++]){case'0':const _0x49b227={};_0x49b227[_0x24ae4d(0x2db)]=WS_EVENTS['LOG'],_0x49b227['message']=_0x321769,webSocketUtils['sendEventToBackend'](_0x37da82,_0x49b227);continue;case'1':const _0x5d1d9f={};_0x5d1d9f[_0x24ae4d(0x2db)]=WS_EVENTS[_0x24ae4d(0x1ff)],_0x5d1d9f[_0x24ae4d(0x1d0)]='CLI\x20run\x20finished:\x20'+_0x5a363b,webSocketUtils[_0x24ae4d(0x263)](_0x37da82,_0x5d1d9f);continue;case'2':const _0x5c7de7={};_0x5c7de7[_0x24ae4d(0x2db)]=WS_EVENTS['LOG'],_0x5c7de7[_0x24ae4d(0x1d0)]=_0x321769,webSocketUtils[_0x24ae4d(0x263)](_0x37da82,_0x5c7de7);continue;case'3':logger[_0x24ae4d(0x271)](_0x321769);continue;case'4':logger[_0x24ae4d(0x271)](_0x321769);continue;case'5':_0x321769=_0x24ae4d(0x28f)+_0x5a363b+':4444/wd/hub';continue;case'6':_0x5a363b=_0x1c863[_0x24ae4d(0x1d4)][_0x24ae4d(0x248)][_0x24ae4d(0x24b)][_0x24ae4d(0x2a4)][0x0]['hostname'];continue;case'7':_0x321769='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x5a363b+'\x20';continue;}break;}}),await webSocketUtils[_0x3f1c49(0x1bd)](0x1f4);}catch(_0x3a4485){if(_0x455e53[_0x3f1c49(0x2de)](_0x3866ba,![]))try{logger['info'](_0x3f1c49(0x293)),await _0x455e53[_0x3f1c49(0x265)](removeGridComponents,_0x5cc782,_0x38d9a6,_0x221aee,_0x599de4,_0x4abc5d),await _0x455e53[_0x3f1c49(0x2b8)](deleteClusterAndDependencies,global_registry['clusterRegion']);}catch(_0x372644){throw _0x372644;}throw _0x3a4485;}}catch(_0x7e2dc5){const _0x572294=_0x3f1c49(0x283)+_0x7e2dc5+'\x20\x0a'+JSON['stringify'](_0x7e2dc5)+'\x20';if(_0x37da82){const _0x4c72ca={};_0x4c72ca['type']=WS_EVENTS[_0x3f1c49(0x2b6)],_0x4c72ca[_0x3f1c49(0x1d0)]=_0x572294,webSocketUtils[_0x3f1c49(0x263)](_0x37da82,_0x4c72ca,_0x455e53['SoiFb'],!![]);}const _0x3ee98f={};_0x3ee98f[_0x3f1c49(0x235)]=_0x572294,await _0x455e53[_0x3f1c49(0x274)](sendInstrumentationEvent,_0xa5f36e,_0x455e53[_0x3f1c49(0x2ea)],messageTypes['ERROR'],_0x455e53[_0x3f1c49(0x1ed)],_0x3ee98f,_0xa5f36e),logger[_0x3f1c49(0x235)](_0x572294);}process[_0x3f1c49(0x291)](0x0);};
@@ -1 +1 @@
1
- const a5_0x4018d5=a5_0x29a7;(function(_0x40a252,_0x395dcb){const _0x27f779=a5_0x29a7,_0x21eaf1=_0x40a252();while(!![]){try{const _0x5ab5d4=-parseInt(_0x27f779(0x151))/0x1+parseInt(_0x27f779(0x15f))/0x2+-parseInt(_0x27f779(0x15e))/0x3+-parseInt(_0x27f779(0x159))/0x4*(-parseInt(_0x27f779(0x152))/0x5)+-parseInt(_0x27f779(0x157))/0x6+parseInt(_0x27f779(0x153))/0x7+-parseInt(_0x27f779(0x161))/0x8*(-parseInt(_0x27f779(0x150))/0x9);if(_0x5ab5d4===_0x395dcb)break;else _0x21eaf1['push'](_0x21eaf1['shift']());}catch(_0x742198){_0x21eaf1['push'](_0x21eaf1['shift']());}}}(a5_0xc324,0xcfac9));function a5_0x29a7(_0x507776,_0x585ded){const _0xc3242a=a5_0xc324();return a5_0x29a7=function(_0x29a71b,_0x5337ac){_0x29a71b=_0x29a71b-0x150;let _0x58ef6d=_0xc3242a[_0x29a71b];return _0x58ef6d;},a5_0x29a7(_0x507776,_0x585ded);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a5_0xc324(){const _0x51f0a9=['builder','yDZFN','desc','2635851MPkUBW','925666kmiaod','rrAOi','1120yGFgxJ','command','60246loPwit','430222iGfXJX','5xgicLi','6947248cVOvjY','epilogue','strict','demandCommand','8651952zLmsoE','help','4836028Vtixcz','recommendCommands'];a5_0xc324=function(){return _0x51f0a9;};return a5_0xc324();}exports[a5_0x4018d5(0x162)]='delete',exports[a5_0x4018d5(0x15d)]='List\x20Grid\x20resources.',exports[a5_0x4018d5(0x15b)]=function(_0x4d62cf){const _0x35fc0=a5_0x4018d5,_0xfbbc60={};_0xfbbc60[_0x35fc0(0x160)]='delete_commands',_0xfbbc60[_0x35fc0(0x15c)]=_0x35fc0(0x158);const _0x3afc3d=_0xfbbc60;return _0x4d62cf['usage'](HELP_HEADER_MESSAGE['delete'])[_0x35fc0(0x154)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3afc3d[_0x35fc0(0x160)])[_0x35fc0(0x156)]()[_0x35fc0(0x15a)]()[_0x35fc0(0x155)]()['help'](_0x3afc3d[_0x35fc0(0x15c)]);},exports['handler']=function(_0x4b3b5e){};
1
+ const a5_0x2d0f80=a5_0x5c15;(function(_0x1f009a,_0x5d8ced){const _0x23b733=a5_0x5c15,_0xab9c10=_0x1f009a();while(!![]){try{const _0x1aae81=parseInt(_0x23b733(0x8f))/0x1+-parseInt(_0x23b733(0x8c))/0x2+-parseInt(_0x23b733(0x83))/0x3+-parseInt(_0x23b733(0x85))/0x4+parseInt(_0x23b733(0x88))/0x5+-parseInt(_0x23b733(0x80))/0x6+-parseInt(_0x23b733(0x86))/0x7*(-parseInt(_0x23b733(0x7f))/0x8);if(_0x1aae81===_0x5d8ced)break;else _0xab9c10['push'](_0xab9c10['shift']());}catch(_0xfb32fa){_0xab9c10['push'](_0xab9c10['shift']());}}}(a5_0x5626,0x6fd6d));function a5_0x5626(){const _0x2caf19=['desc','1807556tdOCSw','fNfib','demandCommand','142zsmCBy','commandDir','delete_commands','handler','sIqnA','24iHnSQD','354732jftBsV','../config/constants','epilogue','2684340vzwMhN','usage','846776FVxqRw','4211557TMquDz','help','3611860RNmMip','delete','builder'];a5_0x5626=function(){return _0x2caf19;};return a5_0x5626();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a5_0x2d0f80(0x81));function a5_0x5c15(_0x55f114,_0x43917b){const _0x562649=a5_0x5626();return a5_0x5c15=function(_0x5c15bb,_0x381093){_0x5c15bb=_0x5c15bb-0x7e;let _0x30227e=_0x562649[_0x5c15bb];return _0x30227e;},a5_0x5c15(_0x55f114,_0x43917b);}exports['command']='delete',exports[a5_0x2d0f80(0x8b)]='List\x20Grid\x20resources.',exports[a5_0x2d0f80(0x8a)]=function(_0x478403){const _0x545c90=a5_0x2d0f80,_0x266056={};_0x266056[_0x545c90(0x7e)]=_0x545c90(0x91),_0x266056[_0x545c90(0x8d)]=_0x545c90(0x87);const _0x492a19=_0x266056;return _0x478403[_0x545c90(0x84)](HELP_HEADER_MESSAGE[_0x545c90(0x89)])[_0x545c90(0x82)](HELP_FOOTER_MESSAGE)[_0x545c90(0x90)](_0x492a19['sIqnA'])[_0x545c90(0x8e)]()['recommendCommands']()['strict']()['help'](_0x492a19[_0x545c90(0x8d)]);},exports[a5_0x2d0f80(0x92)]=function(_0x44a98e){};
@@ -1 +1 @@
1
- const a6_0x374acb=a6_0x47a3;function a6_0x47a3(_0xa1c5e3,_0x2a2cf7){const _0x5caeea=a6_0x5cae();return a6_0x47a3=function(_0x47a330,_0xcb42f7){_0x47a330=_0x47a330-0xf2;let _0x2d76ce=_0x5caeea[_0x47a330];return _0x2d76ce;},a6_0x47a3(_0xa1c5e3,_0x2a2cf7);}(function(_0x5c42b9,_0x5727c8){const _0x89cf99=a6_0x47a3,_0x45e2a2=_0x5c42b9();while(!![]){try{const _0x481488=-parseInt(_0x89cf99(0x116))/0x1*(-parseInt(_0x89cf99(0x111))/0x2)+parseInt(_0x89cf99(0x156))/0x3+parseInt(_0x89cf99(0x146))/0x4*(-parseInt(_0x89cf99(0x120))/0x5)+-parseInt(_0x89cf99(0x167))/0x6*(-parseInt(_0x89cf99(0xf3))/0x7)+parseInt(_0x89cf99(0x108))/0x8*(-parseInt(_0x89cf99(0x158))/0x9)+parseInt(_0x89cf99(0xf6))/0xa*(parseInt(_0x89cf99(0x176))/0xb)+-parseInt(_0x89cf99(0x128))/0xc*(parseInt(_0x89cf99(0x139))/0xd);if(_0x481488===_0x5727c8)break;else _0x45e2a2['push'](_0x45e2a2['shift']());}catch(_0x2e7e0c){_0x45e2a2['push'](_0x45e2a2['shift']());}}}(a6_0x5cae,0xe3e14));const fs=require('fs'),util=require(a6_0x374acb(0x16d)),request=require(a6_0x374acb(0x125)),{v4:uuidv4}=require(a6_0x374acb(0x135)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL}=require(a6_0x374acb(0x151)),{logger}=require(a6_0x374acb(0x17c)),{getClusterInfo,configureAWSIfNotConfigured}=require(a6_0x374acb(0x16e)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,closeInput,inputCloudProviderKeys}=require(a6_0x374acb(0x143)),{createK8sClient}=require(a6_0x374acb(0x17e)),{kebabCase,getCredentialsPath,getGridDetails}=require(a6_0x374acb(0x171)),promisifiedRequest=util[a6_0x374acb(0xfb)](request);function a6_0x5cae(){const _0x58c322=['auth','bzIoN','asBSz','parse','VsBId','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','icHLI','cloudProvider','oaDYj','/packages/cli/grid/','\x22\x20and\x20ID\x20','168ChcuzR','Pass\x20the\x20ID\x20of\x20the\x20Grid','GEThh','cloudProviderSecretKey','gridId','password','epilogue','QIHDl','HYMsE','184soPUfS','certificateAuthority','WSVEh','body','DELETE','3643GtKXRS','KLWyf','exit','string','writeFileSync','region','ERROR','ufbhR','EfTuF','secret','5zeGrbQ','toLowerCase','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','AGaKr','LqIBU','request','readFileSync','name','827412baFZEd','stringify','error','stack','KEfPR','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','info','clusterSpawnedVia','uQgxN','server-error','Delete\x20an\x20Automation\x20grid.','sBqlj','https://','uuid','endpoint','requestId','browserstack:managedBy','143QTEBbH','SPXJM','accessKey','FDudW','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','kyRHk','zTDEv','type','Cluster:\x20','rXBqJ','../../utils/userInput','PATpx','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','2755336fxDYke','delete-grid-called','debug','YquQq','QGyRN','KFsAE','clusterName','vAmJO','cluster','lUZjb','gIRMF','../../config/constants','cloudProviderAccessKey','options','NdSte','help','2828082zpRWab','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','234891TjQoVA','warn','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','cOztN','argv','uBWYD','phQwC','JBIEO','init-not-called','JTXZn','clusterId','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','PVbfw','delete','clusterRegion','6XsmMrO','builder','pLjlB','GKloB','QSSRO','url','util','../../utils/AWSUtils','method','QRIdI','../../utils/utilityMethods','AEZcw','WxwwD','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','wjEOS','454399cOICve','tags','TwKiZ','username','handler','Failed\x20to\x20delete\x20resources!\x20Error:\x20','../../config/logger','vtlpA','../../utils/createk8sClient','usage','existsSync','aSoHR','invalid-input','desc','Browserstack','statusCode','LFNDm','BrowserStack','grid-id','unknown-error','VdbZz','QnlUC','onlyGridInCluster','tfNek','SMOFj','857409ymqlqT','INFO','\x22\x20with\x20ID\x20','370fAwJgu','RYEaX','TJoEM','dZfuK','GSJiq','promisify','Succesfully\x20deleted\x20the\x20grid'];a6_0x5cae=function(){return _0x58c322;};return a6_0x5cae();}exports['command']='grid',exports[a6_0x374acb(0x183)]=a6_0x374acb(0x132),exports[a6_0x374acb(0x168)]=function(_0x310312){const _0x4a0859=a6_0x374acb,_0x5e77f7={};_0x5e77f7[_0x4a0859(0x16b)]=_0x4a0859(0x109),_0x5e77f7[_0x4a0859(0x14b)]=_0x4a0859(0x119),_0x5e77f7[_0x4a0859(0x15d)]=_0x4a0859(0x155);const _0x374e47=_0x5e77f7,_0x3fa69d={};_0x3fa69d['description']=_0x374e47[_0x4a0859(0x16b)],_0x3fa69d[_0x4a0859(0x140)]=_0x374e47[_0x4a0859(0x14b)];const _0x5a3b09={};return _0x5a3b09['grid-id']=_0x3fa69d,_0x310312[_0x4a0859(0x17f)](HELP_HEADER_MESSAGE[_0x4a0859(0x165)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4a0859(0x153)](_0x5a3b09)[_0x4a0859(0x155)](_0x374e47[_0x4a0859(0x15d)])['argv'];},exports[a6_0x374acb(0x17a)]=async function(_0x54c949){const _0x1b0c78=a6_0x374acb,_0x36f42d={'sBqlj':_0x1b0c78(0x157),'WxwwD':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','NvVun':_0x1b0c78(0x109),'WzNda':_0x1b0c78(0x119),'kNjbe':_0x1b0c78(0x155),'GSJiq':function(_0x3cc75a){return _0x3cc75a();},'RYEaX':function(_0x1096c6){return _0x1096c6();},'zTDEv':function(_0x34a931,_0x1c2058){return _0x34a931===_0x1c2058;},'GEThh':_0x1b0c78(0xfe),'kyRHk':_0x1b0c78(0x13d),'vtlpA':function(_0x4f74fb,_0x8b302f,_0x33e05f,_0x4dafa7,_0x55128a,_0x3d4cb7,_0x152714){return _0x4f74fb(_0x8b302f,_0x33e05f,_0x4dafa7,_0x55128a,_0x3d4cb7,_0x152714);},'WSVEh':_0x1b0c78(0x147),'lUZjb':_0x1b0c78(0x160),'oaDYj':function(_0x5065ee,_0x2466c0){return _0x5065ee!==_0x2466c0;},'QIHDl':_0x1b0c78(0xff),'KLWyf':_0x1b0c78(0x170),'cOztN':function(_0x5bb198,_0x42dd81,_0x3bf52f,_0x37b101){return _0x5bb198(_0x42dd81,_0x3bf52f,_0x37b101);},'JLXYl':_0x1b0c78(0x184),'phQwC':function(_0xbdfb3b,_0x27f576){return _0xbdfb3b!==_0x27f576;},'uQgxN':_0x1b0c78(0x11d),'SPXJM':_0x1b0c78(0x14d),'dZfuK':function(_0x933fbb,_0x13b71a){return _0x933fbb(_0x13b71a);},'KEfPR':function(_0x1c4af4,_0x16c157){return _0x1c4af4===_0x16c157;},'JBIEO':_0x1b0c78(0x18a),'TwKiZ':_0x1b0c78(0x12d),'hPdnO':_0x1b0c78(0x182),'nMYEm':function(_0x320d69,_0x202c9a){return _0x320d69===_0x202c9a;},'QGyRN':_0x1b0c78(0x150),'SMOFj':function(_0x1b99cf,_0x27d9f3){return _0x1b99cf===_0x27d9f3;},'AEZcw':function(_0x2b0065,_0x5c7766){return _0x2b0065!==_0x5c7766;},'Otoaw':_0x1b0c78(0x11e),'FDudW':_0x1b0c78(0x154),'AGaKr':_0x1b0c78(0x15a),'icHLI':function(_0x2297ae){return _0x2297ae();},'YUtrt':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','aSoHR':_0x1b0c78(0x144),'rXBqJ':function(_0x205db4,_0x38e41e){return _0x205db4(_0x38e41e);},'TJoEM':function(_0x4b2571,_0x279ce0){return _0x4b2571(_0x279ce0);},'LFNDm':function(_0x1c1d68,_0x3c12dd,_0xe79713,_0x380092,_0x3e2c61){return _0x1c1d68(_0x3c12dd,_0xe79713,_0x380092,_0x3e2c61);},'HYMsE':function(_0x4e4613,_0x365c13,_0x19513d,_0x17db49,_0x3f5f65,_0x5d6dc0){return _0x4e4613(_0x365c13,_0x19513d,_0x17db49,_0x3f5f65,_0x5d6dc0);},'pLjlB':function(_0x2fd828,_0x160ca1){return _0x2fd828===_0x160ca1;},'JTXZn':_0x1b0c78(0x164),'LuqVG':function(_0x14cae5,_0x1e67b0){return _0x14cae5===_0x1e67b0;},'ZcxNY':_0x1b0c78(0x138),'tfNek':_0x1b0c78(0x187),'wjEOS':_0x1b0c78(0x115),'rZUlK':function(_0xf2c1d4,_0x3f39b9){return _0xf2c1d4(_0x3f39b9);},'TlumN':_0x1b0c78(0x131),'JgamK':function(_0x1b2792,_0x2ab79c){return _0x1b2792===_0x2ab79c;},'VsBId':function(_0x24568d,_0x59bae2,_0x38360b,_0x1ef683,_0x5ba137,_0x29af16,_0x22a167){return _0x24568d(_0x59bae2,_0x38360b,_0x1ef683,_0x5ba137,_0x29af16,_0x22a167);},'GKloB':'unauthorised','smUBZ':function(_0x292436,_0x29831e){return _0x292436===_0x29831e;},'QnlUC':'invalid-grid-id','YquQq':function(_0x469a16,_0x4d345d,_0x5c8354,_0x361d4c,_0x4a706f,_0x40feef,_0x582b92){return _0x469a16(_0x4d345d,_0x5c8354,_0x361d4c,_0x4a706f,_0x40feef,_0x582b92);},'LqIBU':_0x1b0c78(0x189)};try{global_registry[_0x1b0c78(0x137)]=_0x36f42d[_0x1b0c78(0xfa)](uuidv4);!fs[_0x1b0c78(0x180)](_0x36f42d['RYEaX'](getCredentialsPath))&&(_0x36f42d['zTDEv'](_0x36f42d[_0x1b0c78(0x10a)],_0x36f42d[_0x1b0c78(0x10a)])?(console[_0x1b0c78(0x12a)](_0x36f42d[_0x1b0c78(0x13e)]),await _0x36f42d[_0x1b0c78(0x17d)](sendInstrumentationEvent,_0x54c949,_0x36f42d['WSVEh'],messageTypes['ERROR'],_0x36f42d[_0x1b0c78(0x14f)],null,_0x54c949),process[_0x1b0c78(0x118)](0x1)):_0x5e5e4a['exit'](0x0));_0x36f42d['vtlpA'](sendInstrumentationEvent,_0x54c949,_0x36f42d[_0x1b0c78(0x113)],messageTypes[_0x1b0c78(0xf4)],null,null,_0x54c949);!_0x54c949[_0x1b0c78(0x10c)]&&(_0x36f42d[_0x1b0c78(0x105)](_0x36f42d[_0x1b0c78(0x10f)],_0x36f42d[_0x1b0c78(0x117)])?(console[_0x1b0c78(0x12a)](_0x36f42d['sBqlj']),process['exit'](0x1)):_0x3e5ad8=_0x2edb05[_0x1b0c78(0x14e)][_0x1b0c78(0x177)]);const _0x7e8874=JSON[_0x1b0c78(0x100)](fs[_0x1b0c78(0x126)](_0x36f42d[_0x1b0c78(0xf7)](getCredentialsPath))),_0x3c5aad=await _0x36f42d[_0x1b0c78(0x15b)](getGridDetails,_0x7e8874['Browserstack'][_0x1b0c78(0x179)],_0x7e8874[_0x1b0c78(0x184)][_0x1b0c78(0x10d)],_0x54c949[_0x1b0c78(0x10c)]);if(_0x3c5aad){const _0x479c5f=_0x3c5aad[_0x1b0c78(0x12e)];let _0x4e5f08='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x479c5f[_0x1b0c78(0x127)]+'\x22\x20and\x20ID\x20'+_0x479c5f['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x267058;_0x3c5aad[_0x1b0c78(0x18c)]&&_0x36f42d[_0x1b0c78(0x13f)](_0x3c5aad[_0x1b0c78(0x12f)],_0x36f42d['JLXYl'])&&(_0x36f42d[_0x1b0c78(0x15e)](_0x36f42d[_0x1b0c78(0x130)],_0x36f42d[_0x1b0c78(0x13a)])?_0x4e5f08=_0x1b0c78(0x163)+_0x479c5f[_0x1b0c78(0x127)]+_0x1b0c78(0x107)+_0x479c5f['id']+_0x1b0c78(0x122)+_0x479c5f[_0x1b0c78(0x14c)]+_0x1b0c78(0xf5)+_0x479c5f[_0x1b0c78(0x162)]+_0x1b0c78(0x145):_0x60388c=_0x1b0c78(0x163)+_0x908697[_0x1b0c78(0x127)]+'\x22\x20and\x20ID\x20'+_0xab9808['id']+_0x1b0c78(0x122)+_0x241f79[_0x1b0c78(0x14c)]+_0x1b0c78(0xf5)+_0x19ea2f['clusterId']+_0x1b0c78(0x145));_0x267058=await _0x36f42d[_0x1b0c78(0xf9)](inputConfirmation,_0x4e5f08);(_0x36f42d[_0x1b0c78(0x12c)](_0x267058,undefined)||_0x36f42d['zTDEv'](_0x267058,null)||!(_0x36f42d[_0x1b0c78(0x13f)](_0x267058[_0x1b0c78(0x121)](),'y')||_0x36f42d[_0x1b0c78(0x12c)](_0x267058['toLowerCase'](),'n')))&&(_0x36f42d[_0x1b0c78(0x13f)](_0x36f42d[_0x1b0c78(0x15f)],_0x36f42d[_0x1b0c78(0x15f)])?(console[_0x1b0c78(0x12a)](_0x36f42d[_0x1b0c78(0x178)]),await _0x36f42d['vtlpA'](sendInstrumentationEvent,_0x54c949,_0x36f42d[_0x1b0c78(0x113)],messageTypes[_0x1b0c78(0x11c)],_0x36f42d['hPdnO'],null,_0x54c949),process['exit'](0x1)):(_0x358234[_0x1b0c78(0x12a)](_0x36f42d[_0x1b0c78(0x133)]),_0x2633ac[_0x1b0c78(0x118)](0x1)));_0x36f42d['nMYEm'](_0x267058['toLowerCase'](),'n')&&(_0x36f42d[_0x1b0c78(0x15e)](_0x36f42d[_0x1b0c78(0x14a)],_0x36f42d[_0x1b0c78(0x14a)])?(_0x369204[_0x1b0c78(0x12e)](_0x36f42d[_0x1b0c78(0x173)]),_0x10e264['cloudProviderAccessKey']=_0x500188[_0x18b15d][_0x1b0c78(0x13b)],_0x53d8ee[_0x1b0c78(0x10b)]=_0xa69aa[_0x1eb7e0][_0x1b0c78(0x11f)]):process[_0x1b0c78(0x118)](0x0));_0x36f42d['GSJiq'](closeInput),global_registry[_0x1b0c78(0x166)]=_0x479c5f[_0x1b0c78(0x11b)];const _0x10bbe4=_0x479c5f[_0x1b0c78(0x104)],_0x4e15cb=_0x7e8874[_0x1b0c78(0x104)]||{};if(_0x36f42d[_0x1b0c78(0xf2)](_0x4e15cb[_0x10bbe4],undefined)){if(_0x36f42d[_0x1b0c78(0x172)](_0x36f42d['Otoaw'],_0x36f42d[_0x1b0c78(0x13c)])){logger[_0x1b0c78(0x12e)](_0x36f42d[_0x1b0c78(0x123)]);const [_0x6050db,_0x288b0c]=await _0x36f42d[_0x1b0c78(0xf9)](inputCloudProviderKeys,_0x10bbe4);_0x7e8874[_0x1b0c78(0x104)]={};const _0x4253a4={};_0x4253a4[_0x1b0c78(0x13b)]=_0x6050db,_0x4253a4[_0x1b0c78(0x11f)]=_0x288b0c,_0x7e8874[_0x1b0c78(0x104)][_0x10bbe4]=_0x4253a4,fs[_0x1b0c78(0x11a)](_0x36f42d[_0x1b0c78(0x103)](getCredentialsPath),JSON[_0x1b0c78(0x129)](_0x7e8874)),logger[_0x1b0c78(0x148)](_0x36f42d['YUtrt']),global_registry[_0x1b0c78(0x152)]=_0x6050db,global_registry['cloudProviderSecretKey']=_0x288b0c;}else _0x4e213b[_0x1b0c78(0x159)](_0x1b0c78(0x141)+_0x54e411['clusterName']+_0x1b0c78(0x102));}else _0x36f42d['nMYEm'](_0x36f42d[_0x1b0c78(0x181)],_0x36f42d[_0x1b0c78(0x181)])?(logger[_0x1b0c78(0x12e)](_0x36f42d[_0x1b0c78(0x173)]),global_registry[_0x1b0c78(0x152)]=_0x4e15cb[_0x10bbe4][_0x1b0c78(0x13b)],global_registry[_0x1b0c78(0x10b)]=_0x4e15cb[_0x10bbe4][_0x1b0c78(0x11f)]):(_0x2aeef4[_0x1b0c78(0x12e)]('Succesfully\x20deleted\x20the\x20grid'),_0x52222c[_0x1b0c78(0x118)](0x0));_0x36f42d[_0x1b0c78(0xfa)](configureAWSIfNotConfigured);const _0x509745=_0x36f42d[_0x1b0c78(0x142)](kebabCase,_0x479c5f[_0x1b0c78(0x127)]),_0x25528b=await _0x36f42d[_0x1b0c78(0xf8)](getClusterInfo,_0x479c5f[_0x1b0c78(0x14c)]),[_0x4a5c48,_0x4a1964,_0x49a84a,_0x25b3ca,_0x131611]=await _0x36f42d[_0x1b0c78(0x186)](createK8sClient,_0x25528b[_0x1b0c78(0x14e)][_0x1b0c78(0x127)],_0x25528b[_0x1b0c78(0x14e)][_0x1b0c78(0x136)],_0x25528b[_0x1b0c78(0x14e)][_0x1b0c78(0x112)]['data'],_0x479c5f[_0x1b0c78(0x11b)]);await _0x36f42d[_0x1b0c78(0x110)](removeGridComponents,_0x4a5c48,_0x4a1964,_0x49a84a,_0x25b3ca,_0x509745);let _0x42da30;if(_0x25528b['cluster']){if(_0x36f42d[_0x1b0c78(0x169)](_0x36f42d['JTXZn'],_0x36f42d[_0x1b0c78(0x161)]))_0x42da30=_0x25528b[_0x1b0c78(0x14e)][_0x1b0c78(0x177)];else{const _0x2337e5={};_0x2337e5['description']=_0x36f42d['NvVun'],_0x2337e5[_0x1b0c78(0x140)]=_0x36f42d['WzNda'];const _0xe2a70d={};return _0xe2a70d[_0x1b0c78(0x188)]=_0x2337e5,_0x569dcc[_0x1b0c78(0x17f)](_0x22f5a8[_0x1b0c78(0x165)])[_0x1b0c78(0x10e)](_0x4562f7)[_0x1b0c78(0x153)](_0xe2a70d)[_0x1b0c78(0x155)](_0x36f42d['kNjbe'])[_0x1b0c78(0x15c)];}}_0x3c5aad[_0x1b0c78(0x18c)]&&(_0x42da30&&_0x36f42d['LuqVG'](_0x42da30[_0x36f42d['ZcxNY']],_0x36f42d[_0x1b0c78(0x18d)])?await _0x36f42d[_0x1b0c78(0xf8)](deleteClusterAndDependencies,_0x479c5f[_0x1b0c78(0x11b)]):logger['warn'](_0x1b0c78(0x141)+_0x479c5f[_0x1b0c78(0x14c)]+_0x1b0c78(0x102)));const _0x47804e=_0x1b0c78(0x134)+AG_API_URL+_0x1b0c78(0x106)+_0x54c949[_0x1b0c78(0x10c)],_0x15408a={};_0x15408a[_0x1b0c78(0x179)]=_0x7e8874['Browserstack'][_0x1b0c78(0x179)],_0x15408a[_0x1b0c78(0x10d)]=_0x7e8874['Browserstack'][_0x1b0c78(0x10d)];const _0x1353a1={};_0x1353a1[_0x1b0c78(0x16c)]=_0x47804e,_0x1353a1[_0x1b0c78(0x16f)]=_0x36f42d[_0x1b0c78(0x175)],_0x1353a1[_0x1b0c78(0xfd)]=_0x15408a;const _0x54e7be=_0x1353a1,_0x251e1d=await _0x36f42d['rZUlK'](promisifiedRequest,_0x54e7be);_0x36f42d[_0x1b0c78(0x105)](_0x251e1d,null)&&_0x36f42d[_0x1b0c78(0x172)](_0x251e1d,undefined)&&_0x36f42d['KEfPR'](_0x251e1d['statusCode'],0xc8)&&(logger[_0x1b0c78(0x12e)](_0x1b0c78(0xfc)),process[_0x1b0c78(0x118)](0x0)),logger['error']('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x1b0c78(0x129)](_0x251e1d)),await _0x36f42d['vtlpA'](sendInstrumentationEvent,_0x54c949,_0x36f42d[_0x1b0c78(0x113)],messageTypes[_0x1b0c78(0x11c)],_0x36f42d['TlumN'],res,_0x54c949),process[_0x1b0c78(0x118)](0x1);}_0x36f42d['JgamK'](res[_0x1b0c78(0x185)],0x191)&&(logger['error'](_0x1b0c78(0x174)),await _0x36f42d[_0x1b0c78(0x101)](sendInstrumentationEvent,_0x54c949,_0x36f42d[_0x1b0c78(0x113)],messageTypes['ERROR'],_0x36f42d[_0x1b0c78(0x16a)],null,_0x54c949),process[_0x1b0c78(0x118)](0x1)),_0x36f42d['smUBZ'](res[_0x1b0c78(0x185)],0x190)&&(logger[_0x1b0c78(0x12a)](JSON[_0x1b0c78(0x100)](res[_0x1b0c78(0x114)])['message']),await _0x36f42d[_0x1b0c78(0x101)](sendInstrumentationEvent,_0x54c949,_0x36f42d[_0x1b0c78(0x113)],messageTypes[_0x1b0c78(0x11c)],_0x36f42d[_0x1b0c78(0x18b)],null,_0x54c949),process[_0x1b0c78(0x118)](0x1)),logger[_0x1b0c78(0x12a)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x1b0c78(0x129)](res)),await _0x36f42d[_0x1b0c78(0x149)](sendInstrumentationEvent,_0x54c949,_0x36f42d[_0x1b0c78(0x113)],messageTypes[_0x1b0c78(0x11c)],_0x36f42d['TlumN'],res,_0x54c949),process[_0x1b0c78(0x118)](0x1);}catch(_0x28b944){logger[_0x1b0c78(0x12a)](_0x1b0c78(0x17b)+_0x28b944[_0x1b0c78(0x12b)]),await _0x36f42d[_0x1b0c78(0x101)](sendInstrumentationEvent,_0x54c949,_0x36f42d[_0x1b0c78(0x113)],messageTypes['ERROR'],_0x36f42d[_0x1b0c78(0x124)],_0x28b944,_0x54c949),process['exit'](0x1);}};
1
+ const a6_0x1cd06a=a6_0x1e26;function a6_0x1e26(_0x1db2dc,_0x5a06a5){const _0x5cf8d1=a6_0x5cf8();return a6_0x1e26=function(_0x1e2636,_0x2cbada){_0x1e2636=_0x1e2636-0x1de;let _0x3b7b3b=_0x5cf8d1[_0x1e2636];return _0x3b7b3b;},a6_0x1e26(_0x1db2dc,_0x5a06a5);}(function(_0x539e25,_0x288fb6){const _0x3f0de0=a6_0x1e26,_0x4a6318=_0x539e25();while(!![]){try{const _0x4d2a11=parseInt(_0x3f0de0(0x23e))/0x1+-parseInt(_0x3f0de0(0x232))/0x2+parseInt(_0x3f0de0(0x21e))/0x3+-parseInt(_0x3f0de0(0x25c))/0x4+-parseInt(_0x3f0de0(0x23f))/0x5+-parseInt(_0x3f0de0(0x272))/0x6*(-parseInt(_0x3f0de0(0x1f9))/0x7)+-parseInt(_0x3f0de0(0x264))/0x8*(-parseInt(_0x3f0de0(0x218))/0x9);if(_0x4d2a11===_0x288fb6)break;else _0x4a6318['push'](_0x4a6318['shift']());}catch(_0x24c760){_0x4a6318['push'](_0x4a6318['shift']());}}}(a6_0x5cf8,0xb2685));const fs=require('fs'),util=require(a6_0x1cd06a(0x212)),request=require(a6_0x1cd06a(0x1df)),{v4:uuidv4}=require(a6_0x1cd06a(0x25a)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL}=require(a6_0x1cd06a(0x227)),{logger}=require(a6_0x1cd06a(0x215)),{getClusterInfo,configureAWSIfNotConfigured}=require('../../utils/AWSUtils'),{removeGridComponents,deleteClusterAndDependencies}=require(a6_0x1cd06a(0x205)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,closeInput,inputCloudProviderKeys}=require(a6_0x1cd06a(0x1e3)),{createK8sClient}=require(a6_0x1cd06a(0x1f1)),{kebabCase,getCredentialsPath,getGridDetails}=require(a6_0x1cd06a(0x1e2)),promisifiedRequest=util[a6_0x1cd06a(0x21f)](request);exports['command']='grid',exports['desc']='Delete\x20an\x20Automation\x20grid.',exports['builder']=function(_0x12a2ac){const _0x2705d4=a6_0x1cd06a,_0x25f0d4={};_0x25f0d4['RIntt']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x25f0d4[_0x2705d4(0x273)]='string',_0x25f0d4[_0x2705d4(0x203)]='help';const _0x50e48f=_0x25f0d4,_0x37fc54={};_0x37fc54['description']=_0x50e48f[_0x2705d4(0x26b)],_0x37fc54[_0x2705d4(0x22b)]=_0x50e48f[_0x2705d4(0x273)];const _0x3fc1dd={};return _0x3fc1dd[_0x2705d4(0x245)]=_0x37fc54,_0x12a2ac[_0x2705d4(0x22c)](HELP_HEADER_MESSAGE[_0x2705d4(0x1e7)])[_0x2705d4(0x213)](HELP_FOOTER_MESSAGE)['options'](_0x3fc1dd)[_0x2705d4(0x20d)](_0x50e48f[_0x2705d4(0x203)])[_0x2705d4(0x266)];},exports[a6_0x1cd06a(0x240)]=async function(_0x4a64c2){const _0x21ad00=a6_0x1cd06a,_0x2e0457={'QCMGR':_0x21ad00(0x22f),'sjYPl':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','awfEd':_0x21ad00(0x236),'gDlyj':_0x21ad00(0x25b),'HSEgZ':_0x21ad00(0x20d),'DfFyv':function(_0xbfec43){return _0xbfec43();},'fjNsN':function(_0x5c9cf2){return _0x5c9cf2();},'IpLig':function(_0x1697b1,_0x2c13ff){return _0x1697b1===_0x2c13ff;},'HPHff':'uBqHj','xgTNS':_0x21ad00(0x20b),'UfwDa':function(_0x2d7054,_0x322d17,_0x14dea3,_0x528813,_0xda997f,_0x670ce,_0x2cd2d7){return _0x2d7054(_0x322d17,_0x14dea3,_0x528813,_0xda997f,_0x670ce,_0x2cd2d7);},'sxxpc':_0x21ad00(0x267),'USlGr':_0x21ad00(0x230),'vVsIV':function(_0x1ff3b9,_0x37ede7,_0x38e790,_0x19936d,_0xc12309,_0xf6d6f4,_0x504faa){return _0x1ff3b9(_0x37ede7,_0x38e790,_0x19936d,_0xc12309,_0xf6d6f4,_0x504faa);},'ztKYM':_0x21ad00(0x23d),'oMkIU':_0x21ad00(0x239),'NNosI':function(_0x140ca8,_0x1c10ae,_0xa151db,_0x578215){return _0x140ca8(_0x1c10ae,_0xa151db,_0x578215);},'sIjxn':'Browserstack','atlrK':function(_0x5a54b7,_0x168fb7){return _0x5a54b7!==_0x168fb7;},'TxgqS':_0x21ad00(0x22d),'DFHbj':function(_0x1235e3,_0x539334){return _0x1235e3(_0x539334);},'tGLJb':function(_0x14dee0,_0x4ba9a6){return _0x14dee0===_0x4ba9a6;},'MoulF':function(_0x400e9,_0x56ef93){return _0x400e9===_0x56ef93;},'PjiQY':function(_0x6818d,_0xaa51bc){return _0x6818d===_0xaa51bc;},'rsvMq':function(_0x24a57e,_0x154f35){return _0x24a57e===_0x154f35;},'pgKdN':function(_0x4b74ae,_0x51aa9a){return _0x4b74ae!==_0x51aa9a;},'llToS':_0x21ad00(0x202),'TmScW':_0x21ad00(0x21d),'ZAZcd':_0x21ad00(0x208),'uJUVc':_0x21ad00(0x258),'BehLK':'yVWVl','yYgJU':_0x21ad00(0x210),'rYBmt':function(_0x1fa288){return _0x1fa288();},'JnjjI':_0x21ad00(0x1e4),'TQEqD':_0x21ad00(0x24d),'pQPVv':_0x21ad00(0x1f2),'YvsCr':_0x21ad00(0x228),'ljOWd':function(_0x444f60,_0x12625d){return _0x444f60===_0x12625d;},'utDVQ':_0x21ad00(0x244),'eeGWN':function(_0x1a3c9c){return _0x1a3c9c();},'clYiA':function(_0x33862f,_0xf086fa){return _0x33862f(_0xf086fa);},'PhNmF':function(_0x45ca2d,_0x69d788,_0x73a7b4,_0x441373,_0x578e1b){return _0x45ca2d(_0x69d788,_0x73a7b4,_0x441373,_0x578e1b);},'goWLn':function(_0x527871,_0x889022,_0x36496d,_0x38d3c8,_0x2003b5,_0xffde6f){return _0x527871(_0x889022,_0x36496d,_0x38d3c8,_0x2003b5,_0xffde6f);},'pWyrF':function(_0x2c53b3,_0x438b44){return _0x2c53b3===_0x438b44;},'mXHbp':_0x21ad00(0x24f),'LoBFa':'browserstack:managedBy','UKeoA':_0x21ad00(0x26e),'fiLRX':'DELETE','qeoiR':function(_0x4dcf89,_0x9ed668){return _0x4dcf89!==_0x9ed668;},'jghPP':function(_0x1f5d09,_0x9f5575){return _0x1f5d09!==_0x9f5575;},'eGNWt':function(_0x498012,_0x2c1d64){return _0x498012===_0x2c1d64;},'GOHJA':function(_0x4d6594,_0x1aecc3,_0x5c51c4,_0x554303,_0x28ba5b,_0x2a83c8,_0x4b53e7){return _0x4d6594(_0x1aecc3,_0x5c51c4,_0x554303,_0x28ba5b,_0x2a83c8,_0x4b53e7);},'oJKzw':_0x21ad00(0x270),'RxdWr':function(_0x4d3f85,_0x5d86f2){return _0x4d3f85===_0x5d86f2;},'sBUgE':_0x21ad00(0x1e0),'FrMGq':_0x21ad00(0x1ee),'UwuNy':function(_0x56c10b,_0x3b15ad,_0x536708,_0x508a32,_0x56df9c,_0x338b38,_0x5247b2){return _0x56c10b(_0x3b15ad,_0x536708,_0x508a32,_0x56df9c,_0x338b38,_0x5247b2);},'MowWn':'unknown-error'};try{global_registry[_0x21ad00(0x1f0)]=_0x2e0457[_0x21ad00(0x25e)](uuidv4);!fs[_0x21ad00(0x1fe)](_0x2e0457[_0x21ad00(0x242)](getCredentialsPath))&&(_0x2e0457[_0x21ad00(0x269)](_0x2e0457[_0x21ad00(0x1f7)],_0x2e0457[_0x21ad00(0x1f7)])?(console['error'](_0x2e0457[_0x21ad00(0x223)]),await _0x2e0457['UfwDa'](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes[_0x21ad00(0x233)],_0x2e0457[_0x21ad00(0x207)],null,_0x4a64c2),process[_0x21ad00(0x20f)](0x1)):_0x41c572[_0x21ad00(0x20f)](0x0));_0x2e0457[_0x21ad00(0x1f8)](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes[_0x21ad00(0x248)],null,null,_0x4a64c2);!_0x4a64c2[_0x21ad00(0x249)]&&(_0x2e0457[_0x21ad00(0x269)](_0x2e0457[_0x21ad00(0x220)],_0x2e0457[_0x21ad00(0x1f4)])?_0x2339e=_0xfd6d6c[_0x21ad00(0x243)][_0x21ad00(0x271)]:(console['error'](_0x2e0457[_0x21ad00(0x1f5)]),process[_0x21ad00(0x20f)](0x1)));const _0x22ba65=JSON[_0x21ad00(0x276)](fs[_0x21ad00(0x268)](_0x2e0457[_0x21ad00(0x25e)](getCredentialsPath))),_0x5b991c=await _0x2e0457[_0x21ad00(0x1ef)](getGridDetails,_0x22ba65['Browserstack'][_0x21ad00(0x1e8)],_0x22ba65[_0x21ad00(0x209)][_0x21ad00(0x21c)],_0x4a64c2[_0x21ad00(0x249)]);if(_0x5b991c){const _0x26be8f=_0x5b991c[_0x21ad00(0x225)];let _0x248705=_0x21ad00(0x256)+_0x26be8f['name']+_0x21ad00(0x1fd)+_0x26be8f['id']+_0x21ad00(0x1eb),_0x2331da;_0x5b991c[_0x21ad00(0x275)]&&_0x2e0457[_0x21ad00(0x269)](_0x5b991c[_0x21ad00(0x279)],_0x2e0457[_0x21ad00(0x235)])&&(_0x2e0457['atlrK'](_0x2e0457[_0x21ad00(0x224)],_0x2e0457[_0x21ad00(0x224)])?(_0x39a143['error'](_0x2e0457['QCMGR']),_0x2f66fb[_0x21ad00(0x20f)](0x1)):_0x248705=_0x21ad00(0x256)+_0x26be8f[_0x21ad00(0x20c)]+'\x22\x20and\x20ID\x20'+_0x26be8f['id']+_0x21ad00(0x221)+_0x26be8f[_0x21ad00(0x1e9)]+'\x22\x20with\x20ID\x20'+_0x26be8f['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');_0x2331da=await _0x2e0457[_0x21ad00(0x255)](inputConfirmation,_0x248705);(_0x2e0457[_0x21ad00(0x20e)](_0x2331da,undefined)||_0x2e0457[_0x21ad00(0x222)](_0x2331da,null)||!(_0x2e0457[_0x21ad00(0x1ed)](_0x2331da['toLowerCase'](),'y')||_0x2e0457[_0x21ad00(0x25d)](_0x2331da[_0x21ad00(0x20a)](),'n')))&&(_0x2e0457[_0x21ad00(0x1ff)](_0x2e0457[_0x21ad00(0x216)],_0x2e0457[_0x21ad00(0x237)])?(console[_0x21ad00(0x1e6)](_0x2e0457['ZAZcd']),await _0x2e0457[_0x21ad00(0x25f)](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes[_0x21ad00(0x233)],_0x2e0457[_0x21ad00(0x1e1)],null,_0x4a64c2),process[_0x21ad00(0x20f)](0x1)):(_0x2208e[_0x21ad00(0x225)](_0x2e0457['sjYPl']),_0x386d71['cloudProviderAccessKey']=_0x3365e6[_0x5137db][_0x21ad00(0x206)],_0x285715[_0x21ad00(0x24a)]=_0x50f1c1[_0x5e4cb5][_0x21ad00(0x219)]));_0x2e0457[_0x21ad00(0x269)](_0x2331da['toLowerCase'](),'n')&&(_0x2e0457['atlrK'](_0x2e0457[_0x21ad00(0x252)],_0x2e0457[_0x21ad00(0x265)])?process[_0x21ad00(0x20f)](0x0):_0x426492='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x332d9e[_0x21ad00(0x20c)]+_0x21ad00(0x1fd)+_0x28a1de['id']+_0x21ad00(0x221)+_0x1050ed[_0x21ad00(0x1e9)]+'\x22\x20with\x20ID\x20'+_0x116cb6[_0x21ad00(0x27b)]+_0x21ad00(0x1eb));_0x2e0457['rYBmt'](closeInput),global_registry[_0x21ad00(0x234)]=_0x26be8f[_0x21ad00(0x1fc)];const _0x5a5278=_0x26be8f[_0x21ad00(0x1ec)],_0x35a002=_0x22ba65[_0x21ad00(0x1ec)]||{};if(_0x2e0457[_0x21ad00(0x1ed)](_0x35a002[_0x5a5278],undefined)){if(_0x2e0457[_0x21ad00(0x1ff)](_0x2e0457[_0x21ad00(0x231)],_0x2e0457[_0x21ad00(0x262)])){logger[_0x21ad00(0x225)](_0x2e0457[_0x21ad00(0x217)]);const [_0x4107c9,_0x10d5f1]=await _0x2e0457['DFHbj'](inputCloudProviderKeys,_0x5a5278);_0x22ba65[_0x21ad00(0x1ec)]={};const _0x51eba1={};_0x51eba1['accessKey']=_0x4107c9,_0x51eba1[_0x21ad00(0x219)]=_0x10d5f1,_0x22ba65[_0x21ad00(0x1ec)][_0x5a5278]=_0x51eba1,fs[_0x21ad00(0x250)](_0x2e0457['rYBmt'](getCredentialsPath),JSON[_0x21ad00(0x278)](_0x22ba65)),logger['debug'](_0x2e0457['YvsCr']),global_registry[_0x21ad00(0x26c)]=_0x4107c9,global_registry[_0x21ad00(0x24a)]=_0x10d5f1;}else{const _0x4746f9={};_0x4746f9[_0x21ad00(0x211)]=_0x2e0457['awfEd'],_0x4746f9['type']=_0x2e0457[_0x21ad00(0x1f3)];const _0x6d9985={};return _0x6d9985[_0x21ad00(0x245)]=_0x4746f9,_0x58d53b['usage'](_0x432f47[_0x21ad00(0x1e7)])[_0x21ad00(0x213)](_0x4c32bf)[_0x21ad00(0x277)](_0x6d9985)['help'](_0x2e0457[_0x21ad00(0x1e5)])['argv'];}}else _0x2e0457[_0x21ad00(0x247)](_0x2e0457[_0x21ad00(0x26d)],_0x2e0457[_0x21ad00(0x26d)])?(logger[_0x21ad00(0x225)](_0x2e0457[_0x21ad00(0x1fb)]),global_registry[_0x21ad00(0x26c)]=_0x35a002[_0x5a5278]['accessKey'],global_registry[_0x21ad00(0x24a)]=_0x35a002[_0x5a5278][_0x21ad00(0x219)]):(_0xb0b7fe[_0x21ad00(0x225)](_0x21ad00(0x24e)),_0x44d4dd['exit'](0x0));_0x2e0457[_0x21ad00(0x1ea)](configureAWSIfNotConfigured);const _0xc33fe5=_0x2e0457['clYiA'](kebabCase,_0x26be8f[_0x21ad00(0x20c)]),_0x1f9972=await _0x2e0457[_0x21ad00(0x255)](getClusterInfo,_0x26be8f[_0x21ad00(0x1e9)]),[_0x15236f,_0x75dec,_0x43eaff,_0x3dc563,_0x23850c]=await _0x2e0457[_0x21ad00(0x246)](createK8sClient,_0x1f9972[_0x21ad00(0x243)][_0x21ad00(0x20c)],_0x1f9972['cluster']['endpoint'],_0x1f9972[_0x21ad00(0x243)][_0x21ad00(0x229)][_0x21ad00(0x201)],_0x26be8f[_0x21ad00(0x1fc)]);await _0x2e0457[_0x21ad00(0x1fa)](removeGridComponents,_0x15236f,_0x75dec,_0x43eaff,_0x3dc563,_0xc33fe5);let _0xfa73c8;_0x1f9972[_0x21ad00(0x243)]&&(_0x2e0457[_0x21ad00(0x22e)](_0x2e0457[_0x21ad00(0x204)],_0x2e0457[_0x21ad00(0x204)])?_0xfa73c8=_0x1f9972[_0x21ad00(0x243)][_0x21ad00(0x271)]:_0x536693[_0x21ad00(0x253)]('Cluster:\x20'+_0x36f912['clusterName']+_0x21ad00(0x263)));_0x5b991c[_0x21ad00(0x275)]&&(_0xfa73c8&&_0x2e0457[_0x21ad00(0x1ed)](_0xfa73c8[_0x2e0457[_0x21ad00(0x24b)]],_0x2e0457[_0x21ad00(0x21a)])?await _0x2e0457[_0x21ad00(0x255)](deleteClusterAndDependencies,_0x26be8f[_0x21ad00(0x1fc)]):logger[_0x21ad00(0x253)](_0x21ad00(0x238)+_0x26be8f[_0x21ad00(0x1e9)]+_0x21ad00(0x263)));const _0x1d53d7=_0x21ad00(0x27a)+AG_API_URL+_0x21ad00(0x26a)+_0x4a64c2[_0x21ad00(0x249)],_0x530298={};_0x530298[_0x21ad00(0x1e8)]=_0x22ba65[_0x21ad00(0x209)]['username'],_0x530298[_0x21ad00(0x21c)]=_0x22ba65[_0x21ad00(0x209)]['password'];const _0x246a32={};_0x246a32[_0x21ad00(0x1f6)]=_0x1d53d7,_0x246a32[_0x21ad00(0x226)]=_0x2e0457[_0x21ad00(0x24c)],_0x246a32[_0x21ad00(0x251)]=_0x530298;const _0x38232f=_0x246a32,_0x261966=await _0x2e0457[_0x21ad00(0x241)](promisifiedRequest,_0x38232f);_0x2e0457['qeoiR'](_0x261966,null)&&_0x2e0457['jghPP'](_0x261966,undefined)&&_0x2e0457[_0x21ad00(0x214)](_0x261966[_0x21ad00(0x21b)],0xc8)&&(logger[_0x21ad00(0x225)]('Succesfully\x20deleted\x20the\x20grid'),process[_0x21ad00(0x20f)](0x0)),logger['error']('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x21ad00(0x278)](_0x261966)),await _0x2e0457[_0x21ad00(0x261)](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes['ERROR'],_0x2e0457[_0x21ad00(0x260)],res,_0x4a64c2),process['exit'](0x1);}_0x2e0457[_0x21ad00(0x23b)](res['statusCode'],0x191)&&(logger[_0x21ad00(0x1e6)](_0x21ad00(0x274)),await _0x2e0457[_0x21ad00(0x1f8)](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes[_0x21ad00(0x233)],_0x2e0457[_0x21ad00(0x1de)],null,_0x4a64c2),process['exit'](0x1)),_0x2e0457[_0x21ad00(0x222)](res[_0x21ad00(0x21b)],0x190)&&(logger['error'](JSON[_0x21ad00(0x276)](res[_0x21ad00(0x26f)])[_0x21ad00(0x23a)]),await _0x2e0457[_0x21ad00(0x1f8)](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes[_0x21ad00(0x233)],_0x2e0457[_0x21ad00(0x23c)],null,_0x4a64c2),process[_0x21ad00(0x20f)](0x1)),logger[_0x21ad00(0x1e6)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](res)),await _0x2e0457[_0x21ad00(0x257)](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes['ERROR'],_0x2e0457[_0x21ad00(0x260)],res,_0x4a64c2),process[_0x21ad00(0x20f)](0x1);}catch(_0x1817e5){logger[_0x21ad00(0x1e6)](_0x21ad00(0x259)+_0x1817e5[_0x21ad00(0x22a)]),await _0x2e0457[_0x21ad00(0x25f)](sendInstrumentationEvent,_0x4a64c2,_0x2e0457[_0x21ad00(0x200)],messageTypes[_0x21ad00(0x233)],_0x2e0457[_0x21ad00(0x254)],_0x1817e5,_0x4a64c2),process[_0x21ad00(0x20f)](0x1);}};function a6_0x5cf8(){const _0x23120c=['cloudProviderAccessKey','utDVQ','BrowserStack','body','server-error','tags','6149472pClKon','LAbCr','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','onlyGridInCluster','parse','options','stringify','clusterSpawnedVia','https://','clusterId','sBUgE','request','unauthorised','uJUVc','../../utils/utilityMethods','../../utils/userInput','EWiVl','HSEgZ','error','delete','username','clusterName','eeGWN','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','cloudProvider','PjiQY','invalid-grid-id','NNosI','requestId','../../utils/createk8sClient','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','gDlyj','oMkIU','QCMGR','url','HPHff','vVsIV','7TiLZOW','goWLn','sjYPl','region','\x22\x20and\x20ID\x20','existsSync','pgKdN','sxxpc','data','DAoqC','BYrvU','mXHbp','../../utils/gridComponents','accessKey','USlGr','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Browserstack','toLowerCase','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','name','help','tGLJb','exit','xRycZ','description','util','epilogue','eGNWt','../../config/logger','llToS','pQPVv','9fvqLFd','secret','UKeoA','statusCode','password','veFhE','2702130mKuGMe','promisify','ztKYM','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','MoulF','xgTNS','TxgqS','info','method','../../config/constants','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','certificateAuthority','stack','type','usage','ZqdUv','pWyrF','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','init-not-called','JnjjI','2885166kxHIZM','ERROR','clusterRegion','sIjxn','Pass\x20the\x20ID\x20of\x20the\x20Grid','TmScW','Cluster:\x20','rxFzZ','message','RxdWr','FrMGq','ISgiU','114123quuOEQ','4068235aPVaVQ','handler','clYiA','fjNsN','cluster','gouUy','grid-id','PhNmF','ljOWd','INFO','gridId','cloudProviderSecretKey','LoBFa','fiLRX','vbcRV','Succesfully\x20deleted\x20the\x20grid','aDQNf','writeFileSync','auth','BehLK','warn','MowWn','DFHbj','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','UwuNy','invalid-input','Failed\x20to\x20delete\x20resources!\x20Error:\x20','uuid','string','4907988ByMhEp','rsvMq','DfFyv','UfwDa','oJKzw','GOHJA','TQEqD','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','17393912FeRJzU','yYgJU','argv','delete-grid-called','readFileSync','IpLig','/packages/cli/grid/','RIntt'];a6_0x5cf8=function(){return _0x23120c;};return a6_0x5cf8();}
@@ -1 +1 @@
1
- const a7_0x4eb4d4=a7_0x34be;(function(_0x21189c,_0x4406c4){const _0x24ee69=a7_0x34be,_0x180569=_0x21189c();while(!![]){try{const _0x1ac1e1=parseInt(_0x24ee69(0xe9))/0x1+-parseInt(_0x24ee69(0x119))/0x2*(-parseInt(_0x24ee69(0x14b))/0x3)+parseInt(_0x24ee69(0xf8))/0x4*(-parseInt(_0x24ee69(0xf0))/0x5)+-parseInt(_0x24ee69(0x132))/0x6+parseInt(_0x24ee69(0x11f))/0x7*(parseInt(_0x24ee69(0x121))/0x8)+-parseInt(_0x24ee69(0x100))/0x9*(-parseInt(_0x24ee69(0xf3))/0xa)+parseInt(_0x24ee69(0x10a))/0xb;if(_0x1ac1e1===_0x4406c4)break;else _0x180569['push'](_0x180569['shift']());}catch(_0x270d3d){_0x180569['push'](_0x180569['shift']());}}}(a7_0x3198,0x2d7a3));const fs=require('fs'),util=require(a7_0x4eb4d4(0xe2)),request=require('request'),{v4:uuidv4}=require('uuid'),{logger}=require(a7_0x4eb4d4(0x13e)),{inputBstackKeys}=require(a7_0x4eb4d4(0x104)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a7_0x4eb4d4(0x129)),{getDirForConfig,getCredentialsPath}=require(a7_0x4eb4d4(0xef)),{sendInstrumentationEvent}=require(a7_0x4eb4d4(0x112)),promisifiedRequest=util[a7_0x4eb4d4(0x10b)](request);exports[a7_0x4eb4d4(0x11e)]=a7_0x4eb4d4(0x128),exports[a7_0x4eb4d4(0x13b)]=a7_0x4eb4d4(0x145),exports[a7_0x4eb4d4(0xf4)]=function(_0x2f2f1f){const _0x45968c=a7_0x4eb4d4,_0x47b17a={};_0x47b17a['yvBxU']=_0x45968c(0x108),_0x47b17a[_0x45968c(0x14f)]=_0x45968c(0xfe),_0x47b17a['qNIDk']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x47b17a[_0x45968c(0x13f)]=_0x45968c(0x135);const _0x2df043=_0x47b17a,_0x4a8270={};_0x4a8270[_0x45968c(0x14a)]=_0x2df043[_0x45968c(0x123)],_0x4a8270['type']=_0x2df043[_0x45968c(0x14f)];const _0xda6ef9={};_0xda6ef9[_0x45968c(0x14a)]=_0x2df043[_0x45968c(0x115)],_0xda6ef9['type']=_0x2df043[_0x45968c(0x14f)];const _0x3cbb74={};return _0x3cbb74[_0x45968c(0x130)]=_0x4a8270,_0x3cbb74[_0x45968c(0x134)]=_0xda6ef9,_0x2f2f1f[_0x45968c(0x14e)](HELP_HEADER_MESSAGE[_0x45968c(0x128)])[_0x45968c(0xfd)](HELP_FOOTER_MESSAGE)[_0x45968c(0x120)](_0x3cbb74)['recommendCommands']()['strict']()[_0x45968c(0x135)](_0x2df043['VdVZL'])[_0x45968c(0xf6)];},exports[a7_0x4eb4d4(0x105)]=async function(_0x3279ac){const _0x3d5081=a7_0x4eb4d4,_0x73eb47={'xrvPq':function(_0x58e0a0){return _0x58e0a0();},'PaLfE':_0x3d5081(0x138),'ENfXf':_0x3d5081(0x108),'IxVgM':_0x3d5081(0xfe),'LcbQI':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ZVjkS':_0x3d5081(0x135),'hMqYs':function(_0x1e9d02){return _0x1e9d02();},'FXBrQ':function(_0x5851e8,_0x56ca70,_0x532d2d,_0xeff3a0,_0x2c75de,_0x2d1ffb,_0x5acba9){return _0x5851e8(_0x56ca70,_0x532d2d,_0xeff3a0,_0x2c75de,_0x2d1ffb,_0x5acba9);},'nPyfo':_0x3d5081(0x10f),'zgXjc':function(_0x277942){return _0x277942();},'Uhfti':function(_0x5a227b,_0x2bdb62){return _0x5a227b!==_0x2bdb62;},'qdkbt':_0x3d5081(0x116),'uyEVg':_0x3d5081(0x111),'MRKLh':function(_0x39cd75,_0x2373e5){return _0x39cd75===_0x2373e5;},'DJoGX':'IkWYc','zRexo':'BpRLd','rbwOL':_0x3d5081(0x101),'wXehy':'ZmNAJ','XAgrM':function(_0x2056a2,_0x54ce7b){return _0x2056a2!==_0x54ce7b;},'cKRgr':_0x3d5081(0xfb),'hrwvN':'EdRAB','aEysP':'VkLaD','ldxKh':function(_0x5556ce,_0x5b10ab){return _0x5556ce===_0x5b10ab;},'HXtGr':_0x3d5081(0x14c),'xTvns':_0x3d5081(0x13c),'AKonH':_0x3d5081(0x102),'wDBdb':function(_0x36c89f,_0x5506ce){return _0x36c89f(_0x5506ce);},'UmnmW':function(_0x438bf7,_0x5abf48){return _0x438bf7!==_0x5abf48;},'CEiUe':function(_0x14701a,_0x3d7762){return _0x14701a===_0x3d7762;},'ZobuN':function(_0x4d4d7b,_0x145616){return _0x4d4d7b!==_0x145616;},'uxXif':'epzwt','besRh':function(_0x6dd1b9,_0x36ad52){return _0x6dd1b9===_0x36ad52;},'CSNmT':_0x3d5081(0xe7),'pmJZV':_0x3d5081(0x12e),'bIJpj':function(_0x2cbb38){return _0x2cbb38();},'cAAQV':_0x3d5081(0xf2),'fBWgR':_0x3d5081(0x13a),'FAhjg':_0x3d5081(0x143),'fRoih':function(_0x1d47ba,_0xcc98dd,_0x189337,_0x280eac,_0x2caf00,_0xd588a2,_0x22df1b){return _0x1d47ba(_0xcc98dd,_0x189337,_0x280eac,_0x2caf00,_0xd588a2,_0x22df1b);},'IKLlb':_0x3d5081(0x117),'GMaoO':function(_0x2f84fb,_0x553c0b,_0x17a2e3,_0x2ccae3,_0x1327ea,_0x34e76a,_0x2e572a){return _0x2f84fb(_0x553c0b,_0x17a2e3,_0x2ccae3,_0x1327ea,_0x34e76a,_0x2e572a);},'xTopW':_0x3d5081(0x12f)};try{global_registry[_0x3d5081(0x12c)]=_0x73eb47['hMqYs'](uuidv4),_0x73eb47['FXBrQ'](sendInstrumentationEvent,_0x3279ac,_0x73eb47[_0x3d5081(0x10e)],messageTypes[_0x3d5081(0xfa)],null,null,_0x3279ac);const _0x47d9ff=_0x73eb47[_0x3d5081(0xf7)](getDirForConfig);!fs['existsSync'](_0x47d9ff)&&(_0x73eb47[_0x3d5081(0x148)](_0x73eb47[_0x3d5081(0x11c)],_0x73eb47['uyEVg'])?fs[_0x3d5081(0x113)](_0x47d9ff):_0x590500=_0x215501['bstackUsername']);let _0x474492,_0x4429d5;if(_0x3279ac[_0x3d5081(0xed)]){if(_0x73eb47[_0x3d5081(0xf1)](_0x73eb47[_0x3d5081(0x147)],_0x73eb47[_0x3d5081(0x144)])){let _0x24dd91={};const _0x247a1d=_0x73eb47['xrvPq'](_0x366221);_0x5e6771[_0x3d5081(0xe4)](_0x247a1d)&&(_0x24dd91=_0x70ee91[_0x3d5081(0x14d)](_0x1b9ac3[_0x3d5081(0xeb)](_0x247a1d,_0x73eb47[_0x3d5081(0x10d)])));const _0x315599={};_0x315599[_0x3d5081(0x103)]=_0x206734,_0x315599['password']=_0x1f1771,_0x24dd91[_0x3d5081(0x124)]=_0x315599,_0x3d5f38['writeFileSync'](_0x247a1d,_0x42b131[_0x3d5081(0xe5)](_0x24dd91)),_0xd8bdd6[_0x3d5081(0x139)](0x0);}else _0x474492=_0x3279ac[_0x3d5081(0xed)];}process[_0x3d5081(0x12b)]['BROWSERSTACK_USERNAME']&&(_0x73eb47[_0x3d5081(0x148)](_0x73eb47[_0x3d5081(0xe6)],_0x73eb47[_0x3d5081(0x141)])?_0x474492=process[_0x3d5081(0x12b)][_0x3d5081(0x110)]:_0x418889=_0x10a495['parse'](_0x410ada[_0x3d5081(0xeb)](_0x19182d,_0x73eb47[_0x3d5081(0x10d)])));_0x3279ac[_0x3d5081(0x126)]&&(_0x73eb47['XAgrM'](_0x73eb47[_0x3d5081(0x146)],_0x73eb47[_0x3d5081(0x140)])?_0x4429d5=_0x3279ac[_0x3d5081(0x126)]:_0x2f02b1=!![]);process[_0x3d5081(0x12b)]['BROWSERSTACK_ACCESS_KEY']&&(_0x73eb47[_0x3d5081(0xf1)](_0x73eb47[_0x3d5081(0x131)],_0x73eb47['aEysP'])?_0x4429d5=process[_0x3d5081(0x12b)]['BROWSERSTACK_ACCESS_KEY']:_0x18faf9=_0x1b2414[_0x3d5081(0x12b)][_0x3d5081(0x110)]);if(_0x73eb47['MRKLh'](_0x474492,undefined)||_0x73eb47[_0x3d5081(0xf1)](_0x4429d5,undefined)){if(_0x73eb47[_0x3d5081(0x11a)](_0x73eb47[_0x3d5081(0x122)],_0x73eb47[_0x3d5081(0x122)])){logger[_0x3d5081(0x137)](_0x73eb47['xTvns']);const [_0xbd6e3,_0x227870]=await _0x73eb47[_0x3d5081(0x11d)](inputBstackKeys);_0x474492=_0xbd6e3,_0x4429d5=_0x227870;}else _0x34887f=_0x103076[_0x3d5081(0x126)];}let _0x561238=![];const _0x561037={};_0x561037[_0x3d5081(0xfc)]='https://'+_0x474492+':'+_0x4429d5+'@'+BS_API_URL+_0x3d5081(0x136),_0x561037[_0x3d5081(0xee)]=_0x73eb47[_0x3d5081(0xea)];const _0x17ca58=_0x561037,_0x2b1bb5=await _0x73eb47['wDBdb'](promisifiedRequest,_0x17ca58);_0x73eb47[_0x3d5081(0xf9)](_0x2b1bb5,null)&&_0x73eb47['UmnmW'](_0x2b1bb5,undefined)&&_0x73eb47['CEiUe'](_0x2b1bb5['statusCode'],0xc8)&&(_0x73eb47[_0x3d5081(0x13d)](_0x73eb47[_0x3d5081(0x10c)],_0x73eb47['uxXif'])?_0x2480da=_0x420b9b[_0x3d5081(0x12b)][_0x3d5081(0x12d)]:_0x561238=!![]);if(_0x561238){if(_0x73eb47['besRh'](_0x73eb47[_0x3d5081(0xf5)],_0x73eb47['pmJZV'])){const _0x1fc6b0={};_0x1fc6b0[_0x3d5081(0x14a)]=_0x73eb47['ENfXf'],_0x1fc6b0['type']=_0x73eb47[_0x3d5081(0x11b)];const _0x337a64={};_0x337a64['description']=_0x73eb47[_0x3d5081(0x118)],_0x337a64[_0x3d5081(0x133)]=_0x73eb47[_0x3d5081(0x11b)];const _0xb73b44={};return _0xb73b44['bstack-username']=_0x1fc6b0,_0xb73b44['bstack-accesskey']=_0x337a64,_0x542bb8[_0x3d5081(0x14e)](_0x4c5497[_0x3d5081(0x128)])[_0x3d5081(0xfd)](_0xdf6036)[_0x3d5081(0x120)](_0xb73b44)[_0x3d5081(0x106)]()[_0x3d5081(0xe8)]()['help'](_0x73eb47[_0x3d5081(0xff)])[_0x3d5081(0xf6)];}else{let _0x44530f={};const _0x584cd5=_0x73eb47['bIJpj'](getCredentialsPath);fs[_0x3d5081(0xe4)](_0x584cd5)&&(_0x73eb47[_0x3d5081(0x13d)](_0x73eb47['cAAQV'],_0x73eb47[_0x3d5081(0x109)])?_0x44530f=JSON[_0x3d5081(0x14d)](fs[_0x3d5081(0xeb)](_0x584cd5,_0x73eb47[_0x3d5081(0x10d)])):_0x7e3d6a[_0x3d5081(0x113)](_0x505f4e));const _0x97ec29={};_0x97ec29[_0x3d5081(0x103)]=_0x474492,_0x97ec29[_0x3d5081(0xe3)]=_0x4429d5,_0x44530f['Browserstack']=_0x97ec29,fs[_0x3d5081(0x114)](_0x584cd5,JSON[_0x3d5081(0xe5)](_0x44530f)),process[_0x3d5081(0x139)](0x0);}}else logger[_0x3d5081(0x127)](_0x73eb47[_0x3d5081(0xec)]),await _0x73eb47[_0x3d5081(0x149)](sendInstrumentationEvent,_0x3279ac,_0x73eb47[_0x3d5081(0x10e)],messageTypes[_0x3d5081(0x107)],_0x73eb47[_0x3d5081(0x125)],null,_0x3279ac),process['exit'](0x1);}catch(_0x244add){logger[_0x3d5081(0x127)](_0x244add['stack']),await _0x73eb47[_0x3d5081(0x142)](sendInstrumentationEvent,_0x3279ac,_0x73eb47[_0x3d5081(0x10e)],messageTypes[_0x3d5081(0x107)],_0x73eb47[_0x3d5081(0x12a)],_0x244add,_0x3279ac),process[_0x3d5081(0x139)](0x1);}};function a7_0x34be(_0x2c2389,_0x232230){const _0x3198e3=a7_0x3198();return a7_0x34be=function(_0x34bed5,_0x4f5f03){_0x34bed5=_0x34bed5-0xe2;let _0x3f5152=_0x3198e3[_0x34bed5];return _0x3f5152;},a7_0x34be(_0x2c2389,_0x232230);}function a7_0x3198(){const _0x4a6233=['15743vPgLzd','options','1168iAHQAP','HXtGr','yvBxU','Browserstack','IKLlb','bstackAccesskey','error','init','../config/constants','xTopW','env','requestId','BROWSERSTACK_ACCESS_KEY','DcJRn','unknown-error','bstack-username','aEysP','2089482mJzWpX','type','bstack-accesskey','help','/automate/plan.json','debug','utf-8','exit','gUrWU','desc','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','ZobuN','../config/logger','VdVZL','hrwvN','wXehy','GMaoO','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','zRexo','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','cKRgr','DJoGX','Uhfti','fRoih','description','3627KbCpDz','GkCYH','parse','usage','JUvoD','util','password','existsSync','stringify','rbwOL','aHLjq','strict','111726RKVexY','AKonH','readFileSync','FAhjg','bstackUsername','method','../utils/utilityMethods','205VUCBXF','MRKLh','GxpKr','5710CmSQml','builder','CSNmT','argv','zgXjc','25892NzYJxE','XAgrM','INFO','vErNW','url','epilogue','string','ZVjkS','3375yIOYDn','MgFFN','GET','username','../utils/userInput','handler','recommendCommands','ERROR','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','fBWgR','352704DubXth','promisify','uxXif','PaLfE','nPyfo','init-called','BROWSERSTACK_USERNAME','lFogC','../utils/instrumentationUtils','mkdirSync','writeFileSync','qNIDk','iFzBF','wrong-creds','LcbQI','188MHNaYb','ldxKh','IxVgM','qdkbt','xrvPq','command'];a7_0x3198=function(){return _0x4a6233;};return a7_0x3198();}
1
+ const a7_0x4eedca=a7_0x626a;(function(_0x47f2eb,_0x321670){const _0x2992fa=a7_0x626a,_0x475c90=_0x47f2eb();while(!![]){try{const _0x3b32b4=-parseInt(_0x2992fa(0xbc))/0x1*(parseInt(_0x2992fa(0xd8))/0x2)+parseInt(_0x2992fa(0x108))/0x3+parseInt(_0x2992fa(0xef))/0x4*(-parseInt(_0x2992fa(0xf2))/0x5)+-parseInt(_0x2992fa(0xb9))/0x6*(-parseInt(_0x2992fa(0x107))/0x7)+parseInt(_0x2992fa(0xfe))/0x8+parseInt(_0x2992fa(0xe1))/0x9*(parseInt(_0x2992fa(0xf7))/0xa)+-parseInt(_0x2992fa(0xdf))/0xb*(parseInt(_0x2992fa(0xc4))/0xc);if(_0x3b32b4===_0x321670)break;else _0x475c90['push'](_0x475c90['shift']());}catch(_0x90ee65){_0x475c90['push'](_0x475c90['shift']());}}}(a7_0x3122,0x62455));function a7_0x626a(_0x9f3064,_0x28ddc9){const _0x3122e7=a7_0x3122();return a7_0x626a=function(_0x626af3,_0x463603){_0x626af3=_0x626af3-0xad;let _0x1b29d8=_0x3122e7[_0x626af3];return _0x1b29d8;},a7_0x626a(_0x9f3064,_0x28ddc9);}function a7_0x3122(){const _0x1eb09e=['BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','wrong-creds','kDqgS','BROWSERSTACK_USERNAME','wwnxZ','existsSync','epilogue','stack','eoDMR','tesUw','bstack-username','help','parse','command','usage','VvVQw','debug','oxHcG','GVVRM','env','136866OfowWb','https://','XkfZn','61xzHhPC','ksscQ','MkTgJ','handler','GHLGI','bstackAccesskey','promisify','InNRd','89688stpLfo','Plxgn','bstack-accesskey','../utils/utilityMethods','CbzJR','GZopd','tdEMo','hVOkA','rwDIl','readFileSync','type','HHABU','password','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ElpJS','Browserstack','utf-8','CvfiO','QuDMc','ixxmx','13990IYeJfZ','AoLBg','string','requestId','bstackUsername','uuid','GET','869wocjsI','recommendCommands','9taGqdK','UDQyK','desc','lUrXX','writeFileSync','../utils/instrumentationUtils','MkZBk','GMVvm','mkdirSync','username','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','dgdQp','strict','mRcDj','24AwfRun','ujqkx','FGpPQ','662705EWOkxw','rmabY','BROWSERSTACK_ACCESS_KEY','INFO','qQsnf','144070plHXZm','util','init','vOHnJ','PUamZ','oOYMl','yrdDS','5563648hgIDMv','nucHM','ORCHP','options','dYLpn','unknown-error','description','../config/logger','url','245QCBpFG','2119968KrYGls','exit','stringify','UThKe','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','raFGf','init-called'];a7_0x3122=function(){return _0x1eb09e;};return a7_0x3122();}const fs=require('fs'),util=require(a7_0x4eedca(0xf8)),request=require('request'),{v4:uuidv4}=require(a7_0x4eedca(0xdd)),{logger}=require(a7_0x4eedca(0x105)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath}=require(a7_0x4eedca(0xc7)),{sendInstrumentationEvent}=require(a7_0x4eedca(0xe6)),promisifiedRequest=util[a7_0x4eedca(0xc2)](request);exports[a7_0x4eedca(0xb2)]=a7_0x4eedca(0xf9),exports[a7_0x4eedca(0xe3)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports['builder']=function(_0x2b88e9){const _0x3bf502=a7_0x4eedca,_0x4e1d37={};_0x4e1d37[_0x3bf502(0xb7)]=_0x3bf502(0xd1),_0x4e1d37[_0x3bf502(0xe2)]=_0x3bf502(0xda),_0x4e1d37[_0x3bf502(0xf3)]=_0x3bf502(0x10c),_0x4e1d37[_0x3bf502(0xc3)]='help';const _0x2f0091=_0x4e1d37,_0x4a86da={};_0x4a86da[_0x3bf502(0x104)]=_0x2f0091['GVVRM'],_0x4a86da['type']=_0x2f0091['UDQyK'];const _0x52e74a={};_0x52e74a[_0x3bf502(0x104)]=_0x2f0091[_0x3bf502(0xf3)],_0x52e74a[_0x3bf502(0xce)]=_0x2f0091[_0x3bf502(0xe2)];const _0x135ed9={};return _0x135ed9[_0x3bf502(0xaf)]=_0x4a86da,_0x135ed9[_0x3bf502(0xc6)]=_0x52e74a,_0x2b88e9[_0x3bf502(0xb3)](HELP_HEADER_MESSAGE[_0x3bf502(0xf9)])[_0x3bf502(0x115)](HELP_FOOTER_MESSAGE)[_0x3bf502(0x101)](_0x135ed9)['recommendCommands']()[_0x3bf502(0xed)]()[_0x3bf502(0xb0)](_0x2f0091[_0x3bf502(0xc3)])['argv'];},exports[a7_0x4eedca(0xbf)]=async function(_0x138680){const _0x44e527=a7_0x4eedca,_0x2252b8={'wwnxZ':_0x44e527(0xd1),'PUamZ':'string','BUEtI':_0x44e527(0x10c),'IpGXP':_0x44e527(0xb0),'AoLBg':function(_0x211649){return _0x211649();},'hVOkA':_0x44e527(0xd4),'UThKe':function(_0x7a61e6,_0xb412a,_0x182370,_0x2e3133,_0x4933b0,_0xb4b377,_0xe74764){return _0x7a61e6(_0xb412a,_0x182370,_0x2e3133,_0x4933b0,_0xb4b377,_0xe74764);},'XkfZn':_0x44e527(0x10e),'nucHM':function(_0x366a48){return _0x366a48();},'dYLpn':function(_0x596aa3,_0xd5309b){return _0x596aa3!==_0xd5309b;},'MkTgJ':'wsvOx','AEaEM':_0x44e527(0xd2),'kDqgS':function(_0x25992e,_0x463ed4){return _0x25992e===_0x463ed4;},'rwDIl':_0x44e527(0xcf),'QuDMc':_0x44e527(0xb6),'FGpPQ':function(_0x1a5210,_0x2a0e3b){return _0x1a5210===_0x2a0e3b;},'raFGf':_0x44e527(0xfc),'ixxmx':'tAiGT','MkZBk':function(_0x47f7a6,_0x11de58){return _0x47f7a6!==_0x11de58;},'ORCHP':'ZARLd','CbzJR':_0x44e527(0xf6),'tesUw':_0x44e527(0xe8),'fUYrI':_0x44e527(0x10f),'tdEMo':function(_0x7ec404){return _0x7ec404();},'vVtTU':_0x44e527(0xde),'JHGPH':function(_0x5a4a92,_0x4407e2){return _0x5a4a92(_0x4407e2);},'eoDMR':function(_0x1f2c59,_0x3f67f6){return _0x1f2c59!==_0x3f67f6;},'ujqkx':function(_0x13e433,_0x489fb9){return _0x13e433===_0x489fb9;},'ksscQ':_0x44e527(0xec),'GHLGI':function(_0x358b20,_0x2d642f){return _0x358b20===_0x2d642f;},'Plxgn':_0x44e527(0xb4),'yrdDS':_0x44e527(0xd5),'GZopd':function(_0x339a6a,_0x698dff){return _0x339a6a!==_0x698dff;},'rQzdj':'KzHnV','mRcDj':'hCJji','gjREq':_0x44e527(0xeb),'vOHnJ':_0x44e527(0x110),'lUrXX':_0x44e527(0x103)};try{global_registry[_0x44e527(0xdb)]=_0x2252b8[_0x44e527(0xd9)](uuidv4),_0x2252b8[_0x44e527(0x10b)](sendInstrumentationEvent,_0x138680,_0x2252b8[_0x44e527(0xbb)],messageTypes[_0x44e527(0xf5)],null,null,_0x138680);const _0xc776e9=_0x2252b8[_0x44e527(0xff)](getDirForConfig);!fs[_0x44e527(0x114)](_0xc776e9)&&(_0x2252b8[_0x44e527(0x102)](_0x2252b8[_0x44e527(0xbe)],_0x2252b8['AEaEM'])?fs[_0x44e527(0xe9)](_0xc776e9):_0x23506a[_0x44e527(0xe9)](_0x4da86c));let _0xf1c49a,_0x374594;if(_0x138680[_0x44e527(0xdc)]){if(_0x2252b8[_0x44e527(0x111)](_0x2252b8[_0x44e527(0xcc)],_0x2252b8[_0x44e527(0xcc)]))_0xf1c49a=_0x138680[_0x44e527(0xdc)];else{const _0x3f097d={};_0x3f097d[_0x44e527(0x104)]=_0x2252b8[_0x44e527(0x113)],_0x3f097d[_0x44e527(0xce)]=_0x2252b8[_0x44e527(0xfb)];const _0x1850f1={};_0x1850f1['description']=_0x2252b8['BUEtI'],_0x1850f1[_0x44e527(0xce)]=_0x2252b8[_0x44e527(0xfb)];const _0x70ed3d={};return _0x70ed3d['bstack-username']=_0x3f097d,_0x70ed3d['bstack-accesskey']=_0x1850f1,_0xbb1de4['usage'](_0x4985f1['init'])[_0x44e527(0x115)](_0x273f93)[_0x44e527(0x101)](_0x70ed3d)[_0x44e527(0xe0)]()['strict']()[_0x44e527(0xb0)](_0x2252b8['IpGXP'])['argv'];}}process[_0x44e527(0xb8)]['BROWSERSTACK_USERNAME']&&(_0x2252b8[_0x44e527(0x102)](_0x2252b8['QuDMc'],_0x2252b8[_0x44e527(0xd6)])?_0x1bf0fa=!![]:_0xf1c49a=process[_0x44e527(0xb8)][_0x44e527(0x112)]);if(_0x138680[_0x44e527(0xc1)]){if(_0x2252b8[_0x44e527(0xf1)](_0x2252b8[_0x44e527(0x10d)],_0x2252b8[_0x44e527(0xd7)])){let _0xd6b454={};const _0x48f2cf=_0x2252b8[_0x44e527(0xd9)](_0x5a2050);_0x2b8a9a['existsSync'](_0x48f2cf)&&(_0xd6b454=_0x545c94['parse'](_0x358652[_0x44e527(0xcd)](_0x48f2cf,_0x2252b8[_0x44e527(0xcb)])));const _0x1683d4={};_0x1683d4[_0x44e527(0xea)]=_0x5e1d70,_0x1683d4['password']=_0x56d870,_0xd6b454[_0x44e527(0xd3)]=_0x1683d4,_0x5bdf3e[_0x44e527(0xe5)](_0x48f2cf,_0x32a835[_0x44e527(0x10a)](_0xd6b454)),_0x3f22f5['exit'](0x0);}else _0x374594=_0x138680[_0x44e527(0xc1)];}process['env'][_0x44e527(0xf4)]&&(_0x2252b8[_0x44e527(0xe7)](_0x2252b8[_0x44e527(0x100)],_0x2252b8[_0x44e527(0xc8)])?_0x374594=process[_0x44e527(0xb8)][_0x44e527(0xf4)]:_0x36cb6e=_0x1f508c[_0x44e527(0xb1)](_0x3309ca['readFileSync'](_0x3863ed,_0x2252b8[_0x44e527(0xcb)])));if(_0x2252b8['kDqgS'](_0xf1c49a,undefined)||_0x2252b8[_0x44e527(0x111)](_0x374594,undefined)){if(_0x2252b8[_0x44e527(0x111)](_0x2252b8[_0x44e527(0xae)],_0x2252b8[_0x44e527(0xae)])){logger[_0x44e527(0xb5)](_0x2252b8['fUYrI']);const [_0x29f3d3,_0x4e9bf2]=await _0x2252b8[_0x44e527(0xca)](inputBstackKeys);_0xf1c49a=_0x29f3d3,_0x374594=_0x4e9bf2;}else _0x5056ae=_0x1b9f95[_0x44e527(0xc1)];}let _0x2e1d4e=![];const _0x2b5f88={};_0x2b5f88[_0x44e527(0x106)]=_0x44e527(0xba)+_0xf1c49a+':'+_0x374594+'@'+BS_API_URL+'/automate/plan.json',_0x2b5f88['method']=_0x2252b8['vVtTU'];const _0x4b3e93=_0x2b5f88,_0x180918=await _0x2252b8['JHGPH'](promisifiedRequest,_0x4b3e93);_0x2252b8[_0x44e527(0xad)](_0x180918,null)&&_0x2252b8[_0x44e527(0x102)](_0x180918,undefined)&&_0x2252b8[_0x44e527(0x111)](_0x180918['statusCode'],0xc8)&&(_0x2252b8[_0x44e527(0xf0)](_0x2252b8[_0x44e527(0xbd)],_0x2252b8[_0x44e527(0xbd)])?_0x2e1d4e=!![]:_0x1c6c20=_0x170006[_0x44e527(0xdc)]);if(_0x2e1d4e){if(_0x2252b8[_0x44e527(0xc0)](_0x2252b8[_0x44e527(0xc5)],_0x2252b8[_0x44e527(0xfd)]))_0x1c9bd1=_0x3fdbfe[_0x44e527(0xb8)][_0x44e527(0xf4)];else{let _0x440ee2={};const _0x7f9c14=_0x2252b8[_0x44e527(0xca)](getCredentialsPath);fs[_0x44e527(0x114)](_0x7f9c14)&&(_0x2252b8[_0x44e527(0xc9)](_0x2252b8['rQzdj'],_0x2252b8[_0x44e527(0xee)])?_0x440ee2=JSON['parse'](fs[_0x44e527(0xcd)](_0x7f9c14,_0x2252b8['hVOkA'])):_0x2fdd8b=_0x2cd002['env'][_0x44e527(0x112)]);const _0x33984d={};_0x33984d[_0x44e527(0xea)]=_0xf1c49a,_0x33984d[_0x44e527(0xd0)]=_0x374594,_0x440ee2[_0x44e527(0xd3)]=_0x33984d,fs[_0x44e527(0xe5)](_0x7f9c14,JSON[_0x44e527(0x10a)](_0x440ee2)),process[_0x44e527(0x109)](0x0);}}else logger['error'](_0x2252b8['gjREq']),await _0x2252b8['UThKe'](sendInstrumentationEvent,_0x138680,_0x2252b8[_0x44e527(0xbb)],messageTypes['ERROR'],_0x2252b8[_0x44e527(0xfa)],null,_0x138680),process[_0x44e527(0x109)](0x1);}catch(_0x53e583){logger['error'](_0x53e583[_0x44e527(0x116)]),await _0x2252b8[_0x44e527(0x10b)](sendInstrumentationEvent,_0x138680,_0x2252b8[_0x44e527(0xbb)],messageTypes['ERROR'],_0x2252b8[_0x44e527(0xe4)],_0x53e583,_0x138680),process[_0x44e527(0x109)](0x1);}};