browserstack-node-sdk 1.24.1 → 1.24.2

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 (81) 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/utils/AWSUtils.js +1 -1
  16. package/ats/src/utils/createAutoscalerStack.js +1 -1
  17. package/ats/src/utils/createClusterStack.js +1 -1
  18. package/ats/src/utils/createk8sClient.js +1 -1
  19. package/ats/src/utils/deleteStack.js +1 -1
  20. package/ats/src/utils/gridComponents.js +1 -1
  21. package/ats/src/utils/hstUtils.js +1 -1
  22. package/ats/src/utils/instrumentationUtils.js +1 -1
  23. package/ats/src/utils/userInput.js +1 -1
  24. package/ats/src/utils/utilityMethods.js +1 -1
  25. package/ats/src/utils/webSocketUtils.js +1 -1
  26. package/package.json +1 -1
  27. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  28. package/src/bin/codeceptjs/command.js +1 -1
  29. package/src/bin/cucumber-js/command.js +1 -1
  30. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  31. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  32. package/src/bin/cucumber-js/test.setup.js +1 -1
  33. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  34. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  35. package/src/bin/jest/command.js +1 -1
  36. package/src/bin/jest/customEnvironment.js +1 -1
  37. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  38. package/src/bin/jest/jest.setup.js +1 -1
  39. package/src/bin/jest/test_before.setup.js +1 -1
  40. package/src/bin/launcher/launcher.js +1 -1
  41. package/src/bin/mocha/accessibility-automation/constants.js +1 -1
  42. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  43. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  44. package/src/bin/mocha/command.js +1 -1
  45. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  46. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  47. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  48. package/src/bin/mocha/test.setup.js +1 -1
  49. package/src/bin/nightwatch/command.js +1 -1
  50. package/src/bin/playwright/command.js +1 -1
  51. package/src/bin/playwright/globalSetup.js +1 -1
  52. package/src/bin/playwright/mock-process.js +1 -1
  53. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  54. package/src/bin/playwright/reporter/reporter.js +1 -1
  55. package/src/bin/playwright/reporter/test-details.js +1 -1
  56. package/src/bin/runner.js +1 -1
  57. package/src/bin/setup.js +1 -1
  58. package/src/bin/test-runner/index.js +1 -1
  59. package/src/bin/test-runner/runTest.js +1 -1
  60. package/src/bin/test-runner/testWorker.js +1 -1
  61. package/src/bin/utils/constants.js +1 -1
  62. package/src/bin/utils/log4jsAppender.js +1 -1
  63. package/src/bin/utils/logPatcher.js +1 -1
  64. package/src/bin/utils/logReportingAPI.js +1 -1
  65. package/src/bin/vanilla-js/command.js +1 -1
  66. package/src/helpers/BrowserStackSetup.js +1 -1
  67. package/src/helpers/capsMapping.js +1 -1
  68. package/src/helpers/helper.js +1 -1
  69. package/src/helpers/logger.js +1 -1
  70. package/src/helpers/patchHelpers.js +1 -1
  71. package/src/helpers/request-spy.js +1 -1
  72. package/src/helpers/setKeepAlive.js +1 -1
  73. package/src/helpers/test-observability/constants.js +1 -1
  74. package/src/helpers/test-observability/error-handler.js +1 -1
  75. package/src/helpers/test-observability/performance-tester.js +1 -1
  76. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  77. package/src/helpers/test-observability/sessionHandler.js +1 -1
  78. package/src/helpers/test-observability/utils.js +1 -1
  79. package/src/helpers/w3cMapping.js +1 -1
  80. package/src/hubAllocationMethods.js +1 -1
  81. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a0_0x1eff(_0x39b338,_0x17f501){const _0x4dbc1c=a0_0x4dbc();return a0_0x1eff=function(_0x1eff16,_0x5db802){_0x1eff16=_0x1eff16-0x138;let _0x305a28=_0x4dbc1c[_0x1eff16];return _0x305a28;},a0_0x1eff(_0x39b338,_0x17f501);}const a0_0xeb239c=a0_0x1eff;function a0_0x4dbc(){const _0x14f5dd=['pdxva','1306990lInNbp','mChaJ','3749878joJcyQ','PdTxc','name','url','command','3CMsxef','username','290960tIbrrp','Updated\x20default\x20Grid\x20Profile\x20successfully','vJpcr','NehYS','KLZMG','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','stack','BWPez','188966fsahYZ','21zupQsx','6Feezhx','/packages/cli/configure','593272NiwjCh','profileId','QqwrV','ERROR','recommendCommands','9CWVLyu','htfZR','builder','../utils/utilityMethods','invalid-selection','core:','ompYh','ffcjQ','method','Failed\x20to\x20configure\x20resources!\x20Error:\x20','icAJo','RbhqA','unauthorised','desc','request','377046zBBEgb','body','Browserstack','\x20\x20grid-profile:\x20','password','gBYpa','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','QWQwP','\x20\x20username:\x20','MdPMb','zpwSD','SPrxF','help','usage','invalid-input','readFileSync','tadSW','list','stringify','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','toLowerCase','YLRij','OBfle','XxSip','init-not-called','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','../utils/instrumentationUtils','../utils/userInput','configure-called','handler','statusCode','https://','YQWSv','json','active','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','jFLeP','uuid','exit','DGkCd','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','Xnedp','875072OcSXBw','parse','ktnXj','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','oNvhk','PUT','log','PjXgM','rroVB','util','promisify','auth','configure','error','xcgWx','requestId','VsOdf'];a0_0x4dbc=function(){return _0x14f5dd;};return a0_0x4dbc();}(function(_0x5c357a,_0x2da282){const _0x1ecbc0=a0_0x1eff,_0x1caef0=_0x5c357a();while(!![]){try{const _0x49ecc0=parseInt(_0x1ecbc0(0x18e))/0x1+-parseInt(_0x1ecbc0(0x141))/0x2*(-parseInt(_0x1ecbc0(0x184))/0x3)+-parseInt(_0x1ecbc0(0x16b))/0x4+-parseInt(_0x1ecbc0(0x186))/0x5*(parseInt(_0x1ecbc0(0x190))/0x6)+parseInt(_0x1ecbc0(0x18f))/0x7*(parseInt(_0x1ecbc0(0x192))/0x8)+-parseInt(_0x1ecbc0(0x197))/0x9*(-parseInt(_0x1ecbc0(0x17d))/0xa)+-parseInt(_0x1ecbc0(0x17f))/0xb;if(_0x49ecc0===_0x2da282)break;else _0x1caef0['push'](_0x1caef0['shift']());}catch(_0x5a12d4){_0x1caef0['push'](_0x1caef0['shift']());}}}(a0_0x4dbc,0x1b8a7));const fs=require('fs'),util=require(a0_0xeb239c(0x174)),request=require(a0_0xeb239c(0x140)),{v4:uuidv4}=require(a0_0xeb239c(0x166)),{inputConfirmation,closeInput}=require(a0_0xeb239c(0x15c)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getCredentialsPath}=require(a0_0xeb239c(0x19a)),{sendInstrumentationEvent}=require(a0_0xeb239c(0x15b)),promisifiedRequest=util[a0_0xeb239c(0x175)](request);exports[a0_0xeb239c(0x183)]='configure',exports[a0_0xeb239c(0x13f)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports[a0_0xeb239c(0x199)]=function(_0x20029c){const _0xeebbed=a0_0xeb239c,_0x282ba2={};_0x282ba2[_0xeebbed(0x156)]=_0xeebbed(0x14d);const _0x2d1680=_0x282ba2;return _0x20029c[_0xeebbed(0x14e)](HELP_HEADER_MESSAGE[_0xeebbed(0x177)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xeebbed(0x14d)](_0x2d1680[_0xeebbed(0x156)])[_0xeebbed(0x196)]()['strict']()['argv'];},exports[a0_0xeb239c(0x15e)]=async function(_0xddcf39){const _0x3ea88e=a0_0xeb239c,_0x111231={'gBYpa':function(_0x4b941d){return _0x4b941d();},'BWPez':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','DGkCd':function(_0x30a057,_0x914e57,_0x518ea1,_0xed056f,_0xa7de04,_0x2d322c,_0x259deb){return _0x30a057(_0x914e57,_0x518ea1,_0xed056f,_0xa7de04,_0x2d322c,_0x259deb);},'pdxva':_0x3ea88e(0x15d),'zpwSD':_0x3ea88e(0x159),'VsOdf':function(_0xda3965,_0x43f0a8,_0x37d910,_0x7f3e6e,_0x2714da,_0x297894,_0x4c890f){return _0xda3965(_0x43f0a8,_0x37d910,_0x7f3e6e,_0x2714da,_0x297894,_0x4c890f);},'OBfle':function(_0x5e3e49){return _0x5e3e49();},'icAJo':'GET','oSQQD':function(_0x49a558,_0x3181c9){return _0x49a558(_0x3181c9);},'ompYh':function(_0x573ffe,_0x414b72){return _0x573ffe!==_0x414b72;},'PjXgM':function(_0x36cd30,_0x401b03){return _0x36cd30===_0x401b03;},'kZfgD':_0x3ea88e(0x15a),'OMfcw':_0x3ea88e(0x19c),'rroVB':_0x3ea88e(0x154),'KLZMG':function(_0x57b7ef,_0x1188e1){return _0x57b7ef===_0x1188e1;},'ffcjQ':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','ATHHT':_0x3ea88e(0x14f),'xcgWx':_0x3ea88e(0x169),'NehYS':function(_0x561e4e,_0x43b44e){return _0x561e4e<_0x43b44e;},'ktnXj':function(_0x343d75,_0x37669b){return _0x343d75+_0x37669b;},'vJpcr':function(_0x1e82ff,_0x591b10){return _0x1e82ff(_0x591b10);},'QWQwP':_0x3ea88e(0x16e),'QqwrV':function(_0x371d3b,_0x146c7d){return _0x371d3b(_0x146c7d);},'tadSW':function(_0x278071,_0x198188){return _0x278071<_0x198188;},'PdTxc':function(_0xcc97ee,_0xae6747){return _0xcc97ee>_0xae6747;},'Xnedp':_0x3ea88e(0x19b),'CRXdb':function(_0x4da486){return _0x4da486();},'mChaJ':function(_0x7ba644,_0x1bca69){return _0x7ba644-_0x1bca69;},'SPrxF':_0x3ea88e(0x170),'RbhqA':function(_0x21d9de,_0x5901a5){return _0x21d9de(_0x5901a5);},'MdPMb':function(_0x4222d4,_0x15368c){return _0x4222d4===_0x15368c;},'XxSip':_0x3ea88e(0x187),'oNvhk':function(_0x587255,_0x119ee0,_0x51568d,_0x446f5a,_0x57e881,_0x1b5e17,_0x154af3){return _0x587255(_0x119ee0,_0x51568d,_0x446f5a,_0x57e881,_0x1b5e17,_0x154af3);},'htfZR':_0x3ea88e(0x13e),'YQWSv':'server-error','jFLeP':'unknown-error'};try{global_registry[_0x3ea88e(0x17a)]=_0x111231[_0x3ea88e(0x146)](uuidv4);const _0x300710=_0x3ea88e(0x160)+AG_API_URL+_0x3ea88e(0x191);!fs['existsSync'](_0x111231[_0x3ea88e(0x146)](getCredentialsPath))&&(console['error'](_0x111231[_0x3ea88e(0x18d)]),await _0x111231[_0x3ea88e(0x168)](sendInstrumentationEvent,_0xddcf39,_0x111231[_0x3ea88e(0x17c)],messageTypes['ERROR'],_0x111231[_0x3ea88e(0x14b)],null,_0xddcf39),process['exit'](0x1));await _0x111231[_0x3ea88e(0x17b)](sendInstrumentationEvent,_0xddcf39,_0x111231[_0x3ea88e(0x17c)],messageTypes['INFO'],null,null,_0xddcf39);const _0x3d5787=JSON['parse'](fs[_0x3ea88e(0x150)](_0x111231[_0x3ea88e(0x157)](getCredentialsPath))),_0xba9fac={};_0xba9fac[_0x3ea88e(0x185)]=_0x3d5787[_0x3ea88e(0x143)][_0x3ea88e(0x185)],_0xba9fac[_0x3ea88e(0x145)]=_0x3d5787[_0x3ea88e(0x143)][_0x3ea88e(0x145)];const _0x3c47e7={};_0x3c47e7['url']=_0x300710,_0x3c47e7['method']=_0x111231[_0x3ea88e(0x13c)],_0x3c47e7[_0x3ea88e(0x176)]=_0xba9fac;const _0x645406=_0x3c47e7,_0x9dde5a=await _0x111231['oSQQD'](promisifiedRequest,_0x645406);if(_0x111231[_0x3ea88e(0x138)](_0x9dde5a,null)&&_0x111231[_0x3ea88e(0x138)](_0x9dde5a,undefined)&&_0x111231['PjXgM'](_0x9dde5a['statusCode'],0xc8)){const _0x4607a6=JSON[_0x3ea88e(0x16c)](_0x9dde5a[_0x3ea88e(0x142)]);console[_0x3ea88e(0x171)](_0x111231['kZfgD']),console[_0x3ea88e(0x171)](_0x111231['OMfcw']),console[_0x3ea88e(0x171)](_0x3ea88e(0x149)+_0x3d5787[_0x3ea88e(0x143)][_0x3ea88e(0x185)]),console[_0x3ea88e(0x171)](_0x3ea88e(0x144)+_0x4607a6[_0x3ea88e(0x163)][_0x3ea88e(0x181)]);const _0x2e666f=await _0x111231['oSQQD'](inputConfirmation,_0x111231[_0x3ea88e(0x173)]);(_0x111231[_0x3ea88e(0x18a)](_0x2e666f,undefined)||_0x111231[_0x3ea88e(0x172)](_0x2e666f,null)||!(_0x111231[_0x3ea88e(0x172)](_0x2e666f[_0x3ea88e(0x155)](),'y')||_0x111231['PjXgM'](_0x2e666f[_0x3ea88e(0x155)](),'n')))&&(console[_0x3ea88e(0x178)](_0x111231['ffcjQ']),await _0x111231[_0x3ea88e(0x17b)](sendInstrumentationEvent,_0xddcf39,_0x111231[_0x3ea88e(0x17c)],messageTypes[_0x3ea88e(0x195)],_0x111231['ATHHT'],null,_0xddcf39),process[_0x3ea88e(0x167)](0x1));_0x111231[_0x3ea88e(0x172)](_0x2e666f[_0x3ea88e(0x155)](),'n')&&process['exit'](0x0);console[_0x3ea88e(0x171)](_0x111231[_0x3ea88e(0x179)]);const _0x42cb1c=_0x4607a6[_0x3ea88e(0x152)]['length'];for(let _0x28ea0a=0x0;_0x111231[_0x3ea88e(0x189)](_0x28ea0a,_0x42cb1c);_0x28ea0a+=0x1){console[_0x3ea88e(0x171)]('['+_0x111231[_0x3ea88e(0x16d)](_0x28ea0a,0x1)+']\x20'+_0x4607a6[_0x3ea88e(0x152)][_0x28ea0a][_0x3ea88e(0x181)]);}const _0x5cb0f6=await _0x111231['vJpcr'](inputConfirmation,_0x111231[_0x3ea88e(0x148)]),_0x591053=_0x111231[_0x3ea88e(0x188)](Number,_0x5cb0f6);(_0x111231[_0x3ea88e(0x194)](isNaN,_0x591053)||_0x111231[_0x3ea88e(0x151)](_0x591053,0x0)||_0x111231[_0x3ea88e(0x180)](_0x591053,_0x42cb1c))&&(console[_0x3ea88e(0x178)](_0x111231[_0x3ea88e(0x139)]),await _0x111231[_0x3ea88e(0x17b)](sendInstrumentationEvent,_0xddcf39,_0x111231[_0x3ea88e(0x17c)],messageTypes[_0x3ea88e(0x195)],_0x111231[_0x3ea88e(0x16a)],null,_0xddcf39),process['exit'](0x1));_0x111231['CRXdb'](closeInput);const _0x2e6a79=_0x4607a6['list'][_0x111231[_0x3ea88e(0x17e)](_0x591053,0x1)]['id'],_0xa0bb2e={};_0xa0bb2e[_0x3ea88e(0x185)]=_0x3d5787['Browserstack']['username'],_0xa0bb2e[_0x3ea88e(0x145)]=_0x3d5787[_0x3ea88e(0x143)][_0x3ea88e(0x145)];const _0x21db89={};_0x21db89[_0x3ea88e(0x193)]=_0x2e6a79;const _0x5c8379={};_0x5c8379[_0x3ea88e(0x182)]=_0x300710,_0x5c8379[_0x3ea88e(0x13a)]=_0x111231[_0x3ea88e(0x14c)],_0x5c8379[_0x3ea88e(0x176)]=_0xa0bb2e,_0x5c8379[_0x3ea88e(0x142)]=_0x21db89,_0x5c8379[_0x3ea88e(0x162)]=!![];const _0x5e3ee7=_0x5c8379,_0x27c928=await _0x111231[_0x3ea88e(0x13d)](promisifiedRequest,_0x5e3ee7);_0x111231[_0x3ea88e(0x138)](_0x27c928,null)&&_0x111231[_0x3ea88e(0x138)](_0x27c928,undefined)&&_0x111231[_0x3ea88e(0x14a)](_0x27c928[_0x3ea88e(0x15f)],0xc8)&&(console[_0x3ea88e(0x171)](_0x111231[_0x3ea88e(0x158)]),process[_0x3ea88e(0x167)](0x0)),_0x111231[_0x3ea88e(0x18a)](_0x27c928[_0x3ea88e(0x15f)],0x191)&&(console[_0x3ea88e(0x178)](_0x3ea88e(0x18b)),await _0x111231['oNvhk'](sendInstrumentationEvent,_0xddcf39,_0x111231['pdxva'],messageTypes[_0x3ea88e(0x195)],_0x111231[_0x3ea88e(0x198)],null,_0xddcf39),process['exit'](0x1)),console[_0x3ea88e(0x178)](_0x3ea88e(0x147)+JSON[_0x3ea88e(0x153)](_0x27c928)),await _0x111231['oNvhk'](sendInstrumentationEvent,_0xddcf39,_0x111231['pdxva'],messageTypes[_0x3ea88e(0x195)],_0x111231['YQWSv'],_0x27c928,_0xddcf39),process[_0x3ea88e(0x167)](0x1);}_0x111231[_0x3ea88e(0x14a)](_0x9dde5a[_0x3ea88e(0x15f)],0x191)&&(console[_0x3ea88e(0x178)](_0x3ea88e(0x164)),await _0x111231['oNvhk'](sendInstrumentationEvent,_0xddcf39,_0x111231['pdxva'],messageTypes[_0x3ea88e(0x195)],_0x111231['htfZR'],null,_0xddcf39),process['exit'](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x3ea88e(0x153)](_0x9dde5a)),await _0x111231['oNvhk'](sendInstrumentationEvent,_0xddcf39,_0x111231['pdxva'],messageTypes[_0x3ea88e(0x195)],_0x111231[_0x3ea88e(0x161)],_0x9dde5a,_0xddcf39),process[_0x3ea88e(0x167)](0x1);}catch(_0x5e1541){console[_0x3ea88e(0x178)](_0x3ea88e(0x13b)+_0x5e1541[_0x3ea88e(0x18c)]),await _0x111231[_0x3ea88e(0x16f)](sendInstrumentationEvent,_0xddcf39,_0x111231['pdxva'],messageTypes[_0x3ea88e(0x195)],_0x111231[_0x3ea88e(0x165)],_0x5e1541,_0xddcf39),process[_0x3ea88e(0x167)](0x1);}};
1
+ const a0_0x15c0e4=a0_0x4386;(function(_0x5bbe20,_0x162651){const _0x109cd4=a0_0x4386,_0x231c5d=_0x5bbe20();while(!![]){try{const _0x7ffad0=parseInt(_0x109cd4(0x1fd))/0x1+-parseInt(_0x109cd4(0x21c))/0x2+parseInt(_0x109cd4(0x20e))/0x3*(parseInt(_0x109cd4(0x21f))/0x4)+parseInt(_0x109cd4(0x23d))/0x5+-parseInt(_0x109cd4(0x230))/0x6+parseInt(_0x109cd4(0x225))/0x7*(-parseInt(_0x109cd4(0x1eb))/0x8)+parseInt(_0x109cd4(0x216))/0x9;if(_0x7ffad0===_0x162651)break;else _0x231c5d['push'](_0x231c5d['shift']());}catch(_0x5d894d){_0x231c5d['push'](_0x231c5d['shift']());}}}(a0_0x4648,0x79563));const fs=require('fs'),util=require('util'),request=require(a0_0x15c0e4(0x22c)),{v4:uuidv4}=require(a0_0x15c0e4(0x22b)),{inputConfirmation,closeInput}=require(a0_0x15c0e4(0x22a)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a0_0x15c0e4(0x1e2)),{getCredentialsPath}=require(a0_0x15c0e4(0x217)),{sendInstrumentationEvent}=require(a0_0x15c0e4(0x21e)),promisifiedRequest=util['promisify'](request);function a0_0x4648(){const _0x2fc3dc=['username','hyvpg','\x20\x20username:\x20','requestId','kJFyY','strict','https://','handler','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','lUuCt','../config/constants','list','\x20\x20grid-profile:\x20','VjTxz','YdsmT','mQfxh','yejJg','length','unknown-error','16ftMJBq','Xdddi','init-not-called','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','exit','invalid-selection','method','body','stack','configure','hjfFU','url','Failed\x20to\x20configure\x20resources!\x20Error:\x20','PIokQ','password','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','hLjOr','461268vMyhrt','yCTqL','ZdGXg','/packages/cli/configure','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','LMzJM','PUT','stringify','yYTGa','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','readFileSync','name','argv','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','core:','builder','537564nFGoxr','existsSync','fosvW','NjInX','ERROR','OWcDr','FjSKx','desc','9611604LSuxhr','../utils/utilityMethods','log','INFO','Browserstack','CvegU','718306ySYHcE','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','../utils/instrumentationUtils','4TBQcZU','parse','lFhQI','profileId','oldZU','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','2121931wXZzEd','mNqdH','epilogue','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','TDivE','../utils/userInput','uuid','request','diGCR','oKqGj','toLowerCase','4632612zqOPPw','json','help','adWrW','Zdmjq','RBZzZ','ySRkP','Aidnb','hndIR','uhozS','yruAM','WPayN','mSezP','2630520KSxTAG','BRevW','auth','configure-called','statusCode'];a0_0x4648=function(){return _0x2fc3dc;};return a0_0x4648();}function a0_0x4386(_0x1d9d1f,_0xd6118b){const _0x4648b4=a0_0x4648();return a0_0x4386=function(_0x438670,_0x355543){_0x438670=_0x438670-0x1e2;let _0x3a3db4=_0x4648b4[_0x438670];return _0x3a3db4;},a0_0x4386(_0x1d9d1f,_0xd6118b);}exports['command']='configure',exports[a0_0x15c0e4(0x215)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports[a0_0x15c0e4(0x20d)]=function(_0x330f36){const _0x15a9dc=a0_0x15c0e4,_0x11734c={};_0x11734c['FjSKx']=_0x15a9dc(0x232);const _0x2376ce=_0x11734c;return _0x330f36['usage'](HELP_HEADER_MESSAGE[_0x15a9dc(0x1f4)])[_0x15a9dc(0x227)](HELP_FOOTER_MESSAGE)[_0x15a9dc(0x232)](_0x2376ce[_0x15a9dc(0x214)])['recommendCommands']()[_0x15a9dc(0x247)]()[_0x15a9dc(0x20a)];},exports[a0_0x15c0e4(0x249)]=async function(_0x20a072){const _0xf3c8e2=a0_0x15c0e4,_0x4c8bbe={'oKqGj':function(_0x354834){return _0x354834();},'yejJg':function(_0xa647ec){return _0xa647ec();},'aHhTw':_0xf3c8e2(0x201),'LMzJM':function(_0x1c5488,_0x516516,_0x498b6,_0x2857c3,_0x5f4b67,_0x88b065,_0x258c1a){return _0x1c5488(_0x516516,_0x498b6,_0x2857c3,_0x5f4b67,_0x88b065,_0x258c1a);},'VjTxz':_0xf3c8e2(0x240),'Zdmjq':_0xf3c8e2(0x1ed),'tUwFE':function(_0x4a103e,_0x13b064,_0xeb3df6,_0x49fb0b,_0x20d34c,_0x30e9d4,_0x40ea24){return _0x4a103e(_0x13b064,_0xeb3df6,_0x49fb0b,_0x20d34c,_0x30e9d4,_0x40ea24);},'lFhQI':'GET','lUuCt':function(_0x430cd7,_0x3e2fcb){return _0x430cd7(_0x3e2fcb);},'uhozS':function(_0x5ec9b7,_0x45c428){return _0x5ec9b7!==_0x45c428;},'oxTeZ':function(_0x541638,_0xff40d5){return _0x541638!==_0xff40d5;},'hjfFU':function(_0x16b52c,_0xbdac5f){return _0x16b52c===_0xbdac5f;},'CvegU':_0xf3c8e2(0x224),'hyvpg':_0xf3c8e2(0x20c),'fosvW':_0xf3c8e2(0x24a),'YdsmT':function(_0x27c98b,_0x29293f){return _0x27c98b===_0x29293f;},'diGCR':function(_0x1e3569,_0x597618){return _0x1e3569===_0x597618;},'ZdGXg':_0xf3c8e2(0x20b),'oldZU':function(_0x3bb77a,_0x3e5f13,_0x2be582,_0x388b2c,_0xb721b3,_0x499e8d,_0xb172f4){return _0x3bb77a(_0x3e5f13,_0x2be582,_0x388b2c,_0xb721b3,_0x499e8d,_0xb172f4);},'adWrW':'invalid-input','mNqdH':function(_0x2ebdfc,_0x5d5cf2){return _0x2ebdfc===_0x5d5cf2;},'lrwgu':_0xf3c8e2(0x228),'hndIR':function(_0x3333b9,_0x4f283c){return _0x3333b9<_0x4f283c;},'mSezP':function(_0x463c44,_0x1ec86a){return _0x463c44+_0x1ec86a;},'WPayN':function(_0x8e1d66,_0x3af037){return _0x8e1d66(_0x3af037);},'Xdddi':_0xf3c8e2(0x21d),'OWcDr':function(_0x173a27,_0x11d806){return _0x173a27(_0x11d806);},'CuGZA':function(_0x6daa6c,_0x3193b7){return _0x6daa6c(_0x3193b7);},'BRevW':function(_0x19ab4e,_0x4fcede){return _0x19ab4e>_0x4fcede;},'kJFyY':_0xf3c8e2(0x1f0),'yYTGa':function(_0x4e6081){return _0x4e6081();},'PIokQ':function(_0x3e9f6b,_0x317e81){return _0x3e9f6b-_0x317e81;},'ySRkP':_0xf3c8e2(0x203),'yCTqL':function(_0x440671,_0x16a4b2){return _0x440671(_0x16a4b2);},'TDivE':function(_0x103464,_0x335965){return _0x103464!==_0x335965;},'yruAM':'Updated\x20default\x20Grid\x20Profile\x20successfully','mQfxh':function(_0x53e835,_0x2669df){return _0x53e835===_0x2669df;},'Aidnb':'unauthorised','hLjOr':'server-error','KulwR':function(_0x31647a,_0x5c2522){return _0x31647a===_0x5c2522;},'CxAOa':function(_0x135851,_0x4d2e35,_0x3f26aa,_0x5b6d31,_0x520028,_0xef425d,_0x580796){return _0x135851(_0x4d2e35,_0x3f26aa,_0x5b6d31,_0x520028,_0xef425d,_0x580796);},'gNmmG':function(_0x104d05,_0x285c7a,_0x2e143f,_0x268c94,_0x234570,_0xe9c2b7,_0x9015d2){return _0x104d05(_0x285c7a,_0x2e143f,_0x268c94,_0x234570,_0xe9c2b7,_0x9015d2);},'RBZzZ':function(_0x4d5c57,_0x2e3049,_0x28c962,_0xb61c7d,_0x4e3d28,_0x4d4229,_0x4adcc8){return _0x4d5c57(_0x2e3049,_0x28c962,_0xb61c7d,_0x4e3d28,_0x4d4229,_0x4adcc8);},'NjInX':_0xf3c8e2(0x1ea)};try{global_registry[_0xf3c8e2(0x245)]=_0x4c8bbe[_0xf3c8e2(0x22e)](uuidv4);const _0x3cc789=_0xf3c8e2(0x248)+AG_API_URL+_0xf3c8e2(0x200);!fs[_0xf3c8e2(0x20f)](_0x4c8bbe[_0xf3c8e2(0x1e8)](getCredentialsPath))&&(console[_0xf3c8e2(0x207)](_0x4c8bbe['aHhTw']),await _0x4c8bbe[_0xf3c8e2(0x202)](sendInstrumentationEvent,_0x20a072,_0x4c8bbe['VjTxz'],messageTypes['ERROR'],_0x4c8bbe[_0xf3c8e2(0x234)],null,_0x20a072),process[_0xf3c8e2(0x1ef)](0x1));await _0x4c8bbe['tUwFE'](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes[_0xf3c8e2(0x219)],null,null,_0x20a072);const _0x1827f0=JSON[_0xf3c8e2(0x220)](fs[_0xf3c8e2(0x208)](_0x4c8bbe[_0xf3c8e2(0x1e8)](getCredentialsPath))),_0xd81b48={};_0xd81b48[_0xf3c8e2(0x242)]=_0x1827f0['Browserstack']['username'],_0xd81b48[_0xf3c8e2(0x1f9)]=_0x1827f0[_0xf3c8e2(0x21a)][_0xf3c8e2(0x1f9)];const _0x10fcf4={};_0x10fcf4['url']=_0x3cc789,_0x10fcf4[_0xf3c8e2(0x1f1)]=_0x4c8bbe[_0xf3c8e2(0x221)],_0x10fcf4[_0xf3c8e2(0x23f)]=_0xd81b48;const _0x5a5843=_0x10fcf4,_0x55ffd4=await _0x4c8bbe['lUuCt'](promisifiedRequest,_0x5a5843);if(_0x4c8bbe[_0xf3c8e2(0x239)](_0x55ffd4,null)&&_0x4c8bbe['oxTeZ'](_0x55ffd4,undefined)&&_0x4c8bbe[_0xf3c8e2(0x1f5)](_0x55ffd4[_0xf3c8e2(0x241)],0xc8)){const _0x43e868=JSON[_0xf3c8e2(0x220)](_0x55ffd4[_0xf3c8e2(0x1f2)]);console[_0xf3c8e2(0x218)](_0x4c8bbe[_0xf3c8e2(0x21b)]),console['log'](_0x4c8bbe[_0xf3c8e2(0x243)]),console[_0xf3c8e2(0x218)](_0xf3c8e2(0x244)+_0x1827f0['Browserstack']['username']),console[_0xf3c8e2(0x218)](_0xf3c8e2(0x1e4)+_0x43e868['active'][_0xf3c8e2(0x209)]);const _0x4137cc=await _0x4c8bbe[_0xf3c8e2(0x24b)](inputConfirmation,_0x4c8bbe[_0xf3c8e2(0x210)]);(_0x4c8bbe[_0xf3c8e2(0x1e6)](_0x4137cc,undefined)||_0x4c8bbe['YdsmT'](_0x4137cc,null)||!(_0x4c8bbe[_0xf3c8e2(0x1e6)](_0x4137cc['toLowerCase'](),'y')||_0x4c8bbe[_0xf3c8e2(0x22d)](_0x4137cc[_0xf3c8e2(0x22f)](),'n')))&&(console[_0xf3c8e2(0x207)](_0x4c8bbe[_0xf3c8e2(0x1ff)]),await _0x4c8bbe[_0xf3c8e2(0x223)](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes[_0xf3c8e2(0x212)],_0x4c8bbe[_0xf3c8e2(0x233)],null,_0x20a072),process[_0xf3c8e2(0x1ef)](0x1));_0x4c8bbe[_0xf3c8e2(0x226)](_0x4137cc['toLowerCase'](),'n')&&process['exit'](0x0);console[_0xf3c8e2(0x218)](_0x4c8bbe['lrwgu']);const _0x48a288=_0x43e868[_0xf3c8e2(0x1e3)][_0xf3c8e2(0x1e9)];for(let _0x293d9a=0x0;_0x4c8bbe[_0xf3c8e2(0x238)](_0x293d9a,_0x48a288);_0x293d9a+=0x1){console[_0xf3c8e2(0x218)]('['+_0x4c8bbe[_0xf3c8e2(0x23c)](_0x293d9a,0x1)+']\x20'+_0x43e868[_0xf3c8e2(0x1e3)][_0x293d9a][_0xf3c8e2(0x209)]);}const _0x1343ad=await _0x4c8bbe[_0xf3c8e2(0x23b)](inputConfirmation,_0x4c8bbe[_0xf3c8e2(0x1ec)]),_0x33119a=_0x4c8bbe[_0xf3c8e2(0x213)](Number,_0x1343ad);(_0x4c8bbe['CuGZA'](isNaN,_0x33119a)||_0x4c8bbe[_0xf3c8e2(0x238)](_0x33119a,0x0)||_0x4c8bbe[_0xf3c8e2(0x23e)](_0x33119a,_0x48a288))&&(console[_0xf3c8e2(0x207)](_0x4c8bbe['ZdGXg']),await _0x4c8bbe[_0xf3c8e2(0x223)](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes[_0xf3c8e2(0x212)],_0x4c8bbe[_0xf3c8e2(0x246)],null,_0x20a072),process[_0xf3c8e2(0x1ef)](0x1));_0x4c8bbe[_0xf3c8e2(0x205)](closeInput);const _0xb38390=_0x43e868[_0xf3c8e2(0x1e3)][_0x4c8bbe[_0xf3c8e2(0x1f8)](_0x33119a,0x1)]['id'],_0x2853e8={};_0x2853e8['username']=_0x1827f0['Browserstack'][_0xf3c8e2(0x242)],_0x2853e8[_0xf3c8e2(0x1f9)]=_0x1827f0['Browserstack'][_0xf3c8e2(0x1f9)];const _0x1c87df={};_0x1c87df[_0xf3c8e2(0x222)]=_0xb38390;const _0x2ae8bd={};_0x2ae8bd[_0xf3c8e2(0x1f6)]=_0x3cc789,_0x2ae8bd[_0xf3c8e2(0x1f1)]=_0x4c8bbe[_0xf3c8e2(0x236)],_0x2ae8bd[_0xf3c8e2(0x23f)]=_0x2853e8,_0x2ae8bd[_0xf3c8e2(0x1f2)]=_0x1c87df,_0x2ae8bd[_0xf3c8e2(0x231)]=!![];const _0xe63f41=_0x2ae8bd,_0x2c4c29=await _0x4c8bbe[_0xf3c8e2(0x1fe)](promisifiedRequest,_0xe63f41);_0x4c8bbe[_0xf3c8e2(0x229)](_0x2c4c29,null)&&_0x4c8bbe[_0xf3c8e2(0x239)](_0x2c4c29,undefined)&&_0x4c8bbe[_0xf3c8e2(0x22d)](_0x2c4c29[_0xf3c8e2(0x241)],0xc8)&&(console[_0xf3c8e2(0x218)](_0x4c8bbe[_0xf3c8e2(0x23a)]),process[_0xf3c8e2(0x1ef)](0x0)),_0x4c8bbe[_0xf3c8e2(0x1e7)](_0x2c4c29['statusCode'],0x191)&&(console[_0xf3c8e2(0x207)](_0xf3c8e2(0x1fb)),await _0x4c8bbe[_0xf3c8e2(0x223)](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes[_0xf3c8e2(0x212)],_0x4c8bbe[_0xf3c8e2(0x237)],null,_0x20a072),process[_0xf3c8e2(0x1ef)](0x1)),console[_0xf3c8e2(0x207)](_0xf3c8e2(0x1fa)+JSON['stringify'](_0x2c4c29)),await _0x4c8bbe['oldZU'](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes['ERROR'],_0x4c8bbe[_0xf3c8e2(0x1fc)],_0x2c4c29,_0x20a072),process['exit'](0x1);}_0x4c8bbe['KulwR'](_0x55ffd4[_0xf3c8e2(0x241)],0x191)&&(console[_0xf3c8e2(0x207)](_0xf3c8e2(0x1ee)),await _0x4c8bbe['CxAOa'](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes['ERROR'],_0x4c8bbe['Aidnb'],null,_0x20a072),process[_0xf3c8e2(0x1ef)](0x1)),console[_0xf3c8e2(0x207)](_0xf3c8e2(0x206)+JSON[_0xf3c8e2(0x204)](_0x55ffd4)),await _0x4c8bbe['gNmmG'](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes[_0xf3c8e2(0x212)],_0x4c8bbe[_0xf3c8e2(0x1fc)],_0x55ffd4,_0x20a072),process[_0xf3c8e2(0x1ef)](0x1);}catch(_0x477569){console[_0xf3c8e2(0x207)](_0xf3c8e2(0x1f7)+_0x477569[_0xf3c8e2(0x1f3)]),await _0x4c8bbe[_0xf3c8e2(0x235)](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes[_0xf3c8e2(0x212)],_0x4c8bbe[_0xf3c8e2(0x211)],_0x477569,_0x20a072),process[_0xf3c8e2(0x1ef)](0x1);}};
@@ -1 +1 @@
1
- function a1_0x4fcf(){const _0x541122=['389688XDHPYH','desc','3371956Jyfmrj','486qutMeK','strict','lXIEN','demandCommand','command','101190zvAyiV','1286940zWzKkf','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','uLHbp','3602gctkzQ','commandDir','help','37515RWEztH','handler','../config/constants','671804ITZywR','recommendCommands','builder','connect'];a1_0x4fcf=function(){return _0x541122;};return a1_0x4fcf();}const a1_0x2a1bb1=a1_0x3a05;(function(_0x8b4b29,_0x3df988){const _0x40159=a1_0x3a05,_0x4a8cd3=_0x8b4b29();while(!![]){try{const _0x236c64=-parseInt(_0x40159(0x18f))/0x1+-parseInt(_0x40159(0x18c))/0x2*(-parseInt(_0x40159(0x199))/0x3)+parseInt(_0x40159(0x192))/0x4+parseInt(_0x40159(0x189))/0x5+parseInt(_0x40159(0x188))/0x6+-parseInt(_0x40159(0x198))/0x7+parseInt(_0x40159(0x196))/0x8;if(_0x236c64===_0x3df988)break;else _0x4a8cd3['push'](_0x4a8cd3['shift']());}catch(_0x26003a){_0x4a8cd3['push'](_0x4a8cd3['shift']());}}}(a1_0x4fcf,0x4051e));function a1_0x3a05(_0x354bae,_0x498b75){const _0x4fcf38=a1_0x4fcf();return a1_0x3a05=function(_0x3a0583,_0x314468){_0x3a0583=_0x3a0583-0x187;let _0x49aad9=_0x4fcf38[_0x3a0583];return _0x49aad9;},a1_0x3a05(_0x354bae,_0x498b75);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a1_0x2a1bb1(0x191));exports[a1_0x2a1bb1(0x187)]=a1_0x2a1bb1(0x195),exports[a1_0x2a1bb1(0x197)]=a1_0x2a1bb1(0x18a),exports[a1_0x2a1bb1(0x194)]=function(_0x13b870){const _0x124492=a1_0x2a1bb1,_0x43262c={};_0x43262c[_0x124492(0x19b)]='connect_commands',_0x43262c[_0x124492(0x18b)]=_0x124492(0x18e);const _0x370574=_0x43262c;return _0x13b870['usage'](HELP_HEADER_MESSAGE[_0x124492(0x195)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x124492(0x18d)](_0x370574['lXIEN'])[_0x124492(0x19c)]()[_0x124492(0x193)]()[_0x124492(0x19a)]()[_0x124492(0x18e)](_0x370574[_0x124492(0x18b)]);},exports[a1_0x2a1bb1(0x190)]=function(_0x2d32f1){};
1
+ const a1_0x1ec7d5=a1_0x4a8c;(function(_0x3136f3,_0x58e386){const _0x2689d8=a1_0x4a8c,_0xd1a31e=_0x3136f3();while(!![]){try{const _0x356f69=-parseInt(_0x2689d8(0x137))/0x1+parseInt(_0x2689d8(0x13c))/0x2+-parseInt(_0x2689d8(0x136))/0x3+parseInt(_0x2689d8(0x13a))/0x4*(parseInt(_0x2689d8(0x14b))/0x5)+parseInt(_0x2689d8(0x139))/0x6*(parseInt(_0x2689d8(0x142))/0x7)+-parseInt(_0x2689d8(0x13b))/0x8+-parseInt(_0x2689d8(0x14a))/0x9;if(_0x356f69===_0x58e386)break;else _0xd1a31e['push'](_0xd1a31e['shift']());}catch(_0x59850f){_0xd1a31e['push'](_0xd1a31e['shift']());}}}(a1_0x32af,0xe3129));function a1_0x32af(){const _0xd12584=['13987560nWZvom','3688278xgBODn','builder','desc','connect','../config/constants','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','7xnYUHl','commandDir','connect_commands','Sbmxu','strict','epilogue','handler','command','14479704wFrGaA','1999400yLgdAh','VAPIr','help','1680942EIbjHY','29002wXGPNh','usage','10997562CxIvuS','12KQzfYX'];a1_0x32af=function(){return _0xd12584;};return a1_0x32af();}function a1_0x4a8c(_0x5a5c51,_0x3c5b33){const _0x32af07=a1_0x32af();return a1_0x4a8c=function(_0x4a8c18,_0x5618e1){_0x4a8c18=_0x4a8c18-0x136;let _0x437b18=_0x32af07[_0x4a8c18];return _0x437b18;},a1_0x4a8c(_0x5a5c51,_0x3c5b33);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a1_0x1ec7d5(0x140));exports[a1_0x1ec7d5(0x149)]=a1_0x1ec7d5(0x13f),exports[a1_0x1ec7d5(0x13e)]=a1_0x1ec7d5(0x141),exports[a1_0x1ec7d5(0x13d)]=function(_0xbcf176){const _0x42b16f=a1_0x1ec7d5,_0x5ecf7f={};_0x5ecf7f['Sbmxu']=_0x42b16f(0x144),_0x5ecf7f[_0x42b16f(0x14c)]='help';const _0x54c46f=_0x5ecf7f;return _0xbcf176[_0x42b16f(0x138)](HELP_HEADER_MESSAGE[_0x42b16f(0x13f)])[_0x42b16f(0x147)](HELP_FOOTER_MESSAGE)[_0x42b16f(0x143)](_0x54c46f[_0x42b16f(0x145)])['demandCommand']()['recommendCommands']()[_0x42b16f(0x146)]()[_0x42b16f(0x14d)](_0x54c46f[_0x42b16f(0x14c)]);},exports[a1_0x1ec7d5(0x148)]=function(_0x48c9c7){};
@@ -1 +1 @@
1
- const a2_0x3142b2=a2_0x49ea;function a2_0x4981(){const _0x2ab0f3=['Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','WNdxz','Grid\x20type:\x20Trial','WnihB','Pass\x20the\x20ID\x20of\x20the\x20Grid','eJGTu','xojdT','UNpxv','2040260WrkhLP','63gHuEeN','../../config/constants','4113152fFfqqB','desc','FyNYX','TXjGZ','description','string','customRepeaters','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.','OSxxb','use-staging','bstackUsername','grid-id','KsnaC','IhRtE','Pltpc','942516wIakFx','dUjte','type','wLFbk','hsZop','Wgrdb','create','OwJGp','grid','kflVu','ygjRM','119526nODocO','info','yPFDf','fMnnL','fnYKN','rZRCq','argv','FoHUo','mUBLf','5uliooj','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','KaTjo','4PgWAUJ','ZbGrl','btFbI','vXZox','demandOption','SIGINT','Txtin','8216000kMjPHD','isRunning','epilogue','fKQTh','SIGTERM','builder','bstack-username','YHpBp','../../utils/utilityMethods','gZihO','advanceOptions','accessKey','wXmXS','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','xDiOa','pKonS','true','rEBtK','options','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','advance-options','dSOxP','usage','10074843klNJnS','../../config/logger','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','browserStackLocalOptions','QPcHE','Advance\x20options\x20for\x20Browserstack\x20Local','kRNJr','1204881BDkfXI','QIIyx','OCmfH','useStaging','qqIrm','beforeExit','exit','czUBs','help','cDfkr','dMhnn','flsSP','error','HwudI','bstack-accesskey'];a2_0x4981=function(){return _0x2ab0f3;};return a2_0x4981();}function a2_0x49ea(_0x32e8c3,_0x59793e){const _0x498155=a2_0x4981();return a2_0x49ea=function(_0x49eac4,_0x311766){_0x49eac4=_0x49eac4-0x1db;let _0x28713e=_0x498155[_0x49eac4];return _0x28713e;},a2_0x49ea(_0x32e8c3,_0x59793e);}(function(_0x13ee0f,_0x44000c){const _0xb7c37f=a2_0x49ea,_0x259659=_0x13ee0f();while(!![]){try{const _0xa72055=-parseInt(_0xb7c37f(0x225))/0x1+-parseInt(_0xb7c37f(0x23c))/0x2*(-parseInt(_0xb7c37f(0x1fb))/0x3)+-parseInt(_0xb7c37f(0x213))/0x4*(parseInt(_0xb7c37f(0x239))/0x5)+-parseInt(_0xb7c37f(0x230))/0x6*(parseInt(_0xb7c37f(0x214))/0x7)+-parseInt(_0xb7c37f(0x216))/0x8+parseInt(_0xb7c37f(0x1f4))/0x9+parseInt(_0xb7c37f(0x1dd))/0xa;if(_0xa72055===_0x44000c)break;else _0x259659['push'](_0x259659['shift']());}catch(_0x448264){_0x259659['push'](_0x259659['shift']());}}}(a2_0x4981,0x920fb));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a2_0x3142b2(0x215)),{logger}=require(a2_0x3142b2(0x1f5)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a2_0x3142b2(0x1e5));exports['command']=a2_0x3142b2(0x22d),exports[a2_0x3142b2(0x217)]=a2_0x3142b2(0x1ea),exports[a2_0x3142b2(0x1e2)]=_0x2f8c66=>{const _0x505f53=a2_0x3142b2,_0x1975e8={};_0x1975e8[_0x505f53(0x1fd)]=_0x505f53(0x20b),_0x1975e8['dMhnn']=_0x505f53(0x21b),_0x1975e8[_0x505f53(0x1e9)]=_0x505f53(0x23a),_0x1975e8['dUjte']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x1975e8['ZbGrl']=_0x505f53(0x20a),_0x1975e8['fKQTh']=_0x505f53(0x1f9),_0x1975e8[_0x505f53(0x238)]=_0x505f53(0x203);const _0x5aa584=_0x1975e8,_0x1827c8={};_0x1827c8[_0x505f53(0x21a)]=_0x5aa584[_0x505f53(0x1fd)],_0x1827c8['type']=_0x5aa584['dMhnn'];const _0x861e7={};_0x861e7['description']=_0x5aa584['wXmXS'],_0x861e7[_0x505f53(0x227)]=_0x5aa584[_0x505f53(0x205)];const _0x449f9d={};_0x449f9d[_0x505f53(0x240)]=!![],_0x449f9d['description']=_0x5aa584[_0x505f53(0x226)],_0x449f9d[_0x505f53(0x227)]=_0x5aa584['dMhnn'];const _0xc57231={};_0xc57231[_0x505f53(0x21a)]=_0x5aa584[_0x505f53(0x23d)],_0xc57231['type']=_0x5aa584['dMhnn'];const _0x5b672b={};_0x5b672b[_0x505f53(0x21a)]=_0x5aa584[_0x505f53(0x1e0)],_0x5b672b['type']=_0x5aa584['dMhnn'];const _0x2ce83a={};return _0x2ce83a[_0x505f53(0x1e3)]=_0x1827c8,_0x2ce83a[_0x505f53(0x209)]=_0x861e7,_0x2ce83a[_0x505f53(0x221)]=_0x449f9d,_0x2ce83a[_0x505f53(0x21f)]=_0xc57231,_0x2ce83a[_0x505f53(0x1f1)]=_0x5b672b,_0x2f8c66[_0x505f53(0x1f3)](HELP_HEADER_MESSAGE[_0x505f53(0x22b)])[_0x505f53(0x1df)](HELP_FOOTER_MESSAGE)[_0x505f53(0x1ef)](_0x2ce83a)[_0x505f53(0x203)](_0x5aa584[_0x505f53(0x238)])['argv'];},exports['handler']=async _0x244d2d=>{const _0x30b91d=a2_0x3142b2,_0x187e62={'cDfkr':function(_0x4f6e58,_0x4d4370){return _0x4f6e58(_0x4d4370);},'QPcHE':function(_0x2146c7,_0x546341){return _0x2146c7!==_0x546341;},'kflVu':'pOaaf','xojdT':function(_0x1aa8bc,_0x48331d){return _0x1aa8bc==_0x48331d;},'TXjGZ':function(_0x240cc0,_0x2ca9d2){return _0x240cc0(_0x2ca9d2);},'gZihO':function(_0x54a230,_0x1e1e8a){return _0x54a230(_0x1e1e8a);},'wLFbk':function(_0x114147,_0x4446aa){return _0x114147(_0x4446aa);},'WnihB':_0x30b91d(0x200),'KsnaC':_0x30b91d(0x1db),'OSxxb':_0x30b91d(0x1e1),'fnYKN':_0x30b91d(0x20b),'QIIyx':_0x30b91d(0x21b),'vXZox':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','FyNYX':_0x30b91d(0x20f),'cJxlB':_0x30b91d(0x20a),'HwudI':_0x30b91d(0x1f9),'hsZop':'help','flsSP':_0x30b91d(0x23e),'rEBtK':function(_0x46d79d,_0x32d49b){return _0x46d79d==_0x32d49b;},'dSOxP':function(_0x11c49a,_0x181522,_0x46337a){return _0x11c49a(_0x181522,_0x46337a);},'IhRtE':function(_0x5cb9cc,_0xe005f0){return _0x5cb9cc&&_0xe005f0;},'rZRCq':function(_0x284da8,_0x29c729){return _0x284da8===_0x29c729;},'KaTjo':_0x30b91d(0x1dc),'yPFDf':function(_0x284108,_0x22e3be,_0x56d872,_0x2f635f){return _0x284108(_0x22e3be,_0x56d872,_0x2f635f);},'fMnnL':function(_0x1f6b9f,_0xaee08e){return _0x1f6b9f!==_0xaee08e;},'kRNJr':_0x30b91d(0x1ff),'ZbPFc':_0x30b91d(0x1ed),'Uhuif':function(_0x4d7a43,_0x556a38){return _0x4d7a43!==_0x556a38;},'eJGTu':_0x30b91d(0x20c),'evAbo':_0x30b91d(0x1eb),'Wgrdb':function(_0x50322a,_0x6d9b77){return _0x50322a!==_0x6d9b77;},'Pltpc':'rrlod','OwJGp':_0x30b91d(0x202),'UNpxv':_0x30b91d(0x1ec)};let _0xb76707=_0x244d2d[_0x30b91d(0x220)],_0x294033=_0x244d2d['bstackAccesskey'],_0x263115=_0x244d2d[_0x30b91d(0x1e7)];const _0x514d46=_0x10ccf1=>{const _0x46e84a=_0x30b91d,_0x5b89d7={'ygjRM':function(_0xa3991e,_0x3fe7d9){const _0x22a0ed=a2_0x49ea;return _0x187e62[_0x22a0ed(0x204)](_0xa3991e,_0x3fe7d9);}};_0x187e62[_0x46e84a(0x1f8)](_0x187e62[_0x46e84a(0x22e)],_0x187e62[_0x46e84a(0x22e)])?_0x5b89d7[_0x46e84a(0x22f)](_0x2e1e11,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid'):(logger[_0x46e84a(0x207)](_0x10ccf1),process[_0x46e84a(0x201)](0x1));};[_0xb76707,_0x294033]=_0x187e62[_0x30b91d(0x1f2)](fetchOrUpdateUserConfig,_0xb76707,_0x294033);!_0x187e62[_0x30b91d(0x223)](_0xb76707,_0x294033)&&(_0x187e62[_0x30b91d(0x235)](_0x187e62['KaTjo'],_0x187e62[_0x30b91d(0x23b)])?_0x187e62[_0x30b91d(0x1e6)](_0x514d46,_0x30b91d(0x1f0)):(_0x26970a++,_0x187e62[_0x30b91d(0x211)](_0x1771e5,0x1)&&_0x3b0b21&&_0x346985[_0x30b91d(0x1de)]()&&_0x187e62['TXjGZ'](_0x315ad4,_0x203792)));let _0x4e6300=_0x244d2d['gridId'],_0x2fac43=await _0x187e62[_0x30b91d(0x232)](getGridDetails,_0xb76707,_0x294033,_0x4e6300);if(!_0x2fac43){if(_0x187e62[_0x30b91d(0x233)](_0x187e62[_0x30b91d(0x1fa)],_0x187e62['kRNJr'])){const _0x24cb47={'FoHUo':function(_0x1c4611,_0x311cb9){return _0x187e62['xojdT'](_0x1c4611,_0x311cb9);},'YHpBp':function(_0x8afde0,_0x1a7947){const _0x2c112b=_0x30b91d;return _0x187e62[_0x2c112b(0x1e6)](_0x8afde0,_0x1a7947);}},_0x24ba13={};_0x24ba13[_0x30b91d(0x1e8)]=_0x5ec6b9,_0x24ba13[_0x30b91d(0x21c)]=_0x346006[_0x30b91d(0x21c)],_0x24ba13[_0x30b91d(0x1f7)]=_0x5297ba;const _0x1f1a4c=_0x24ba13,_0xe45b06=_0x187e62[_0x30b91d(0x228)](_0x52cbe9,_0x1f1a4c);let _0x3d194e=0x0;const _0x43f8de=async()=>{const _0x42d91a=_0x30b91d;_0x3d194e++,_0x24cb47[_0x42d91a(0x237)](_0x3d194e,0x1)&&_0xe45b06&&_0xe45b06[_0x42d91a(0x1de)]()&&_0x24cb47[_0x42d91a(0x1e4)](_0xb81239,_0xe45b06);};_0x155bfb['on'](_0x187e62[_0x30b91d(0x20e)],_0x43f8de),_0x2a89ca['on'](_0x187e62['KsnaC'],_0x43f8de),_0x95a5e8['on'](_0x187e62[_0x30b91d(0x21e)],_0x43f8de),_0x13e336='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.',_0x2dea8c[_0x30b91d(0x231)](_0x3a5597);}else _0x187e62[_0x30b91d(0x1e6)](_0x514d46,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier');}let _0x2baa07=_0x187e62['rZRCq'](_0x244d2d[_0x30b91d(0x1fe)],_0x187e62['ZbPFc'])?!![]:![];if(_0x2fac43&&_0x2fac43['isTrialGrid']&&_0x2baa07){if(_0x187e62['Uhuif'](_0x187e62[_0x30b91d(0x210)],_0x187e62['evAbo'])){logMessage=_0x30b91d(0x20d),logger[_0x30b91d(0x231)](logMessage);try{if(_0x187e62[_0x30b91d(0x22a)](_0x187e62[_0x30b91d(0x224)],_0x187e62[_0x30b91d(0x22c)])){const _0x523995={};_0x523995['accessKey']=_0x294033,_0x523995['customRepeaters']=_0x2fac43[_0x30b91d(0x21c)],_0x523995[_0x30b91d(0x1f7)]=_0x263115;const _0x5f2e17=_0x523995,_0xcb4289=_0x187e62[_0x30b91d(0x228)](startLocalBinarySync,_0x5f2e17);let _0x5391bc=0x0;const _0x1dfb05=async()=>{const _0x259d5d=_0x30b91d;if(_0x187e62['QPcHE'](_0x187e62[_0x259d5d(0x206)],_0x187e62[_0x259d5d(0x206)])){const _0x4fb76d={};_0x4fb76d[_0x259d5d(0x21a)]=_0x187e62[_0x259d5d(0x234)],_0x4fb76d[_0x259d5d(0x227)]=_0x187e62['QIIyx'];const _0x2bd131={};_0x2bd131[_0x259d5d(0x21a)]=_0x187e62[_0x259d5d(0x23f)],_0x2bd131[_0x259d5d(0x227)]=_0x187e62[_0x259d5d(0x1fc)];const _0x2e2895={};_0x2e2895[_0x259d5d(0x240)]=!![],_0x2e2895[_0x259d5d(0x21a)]=_0x187e62[_0x259d5d(0x218)],_0x2e2895[_0x259d5d(0x227)]=_0x187e62[_0x259d5d(0x1fc)];const _0x5315f9={};_0x5315f9[_0x259d5d(0x21a)]=_0x187e62['cJxlB'],_0x5315f9[_0x259d5d(0x227)]=_0x187e62[_0x259d5d(0x1fc)];const _0x1de637={};_0x1de637[_0x259d5d(0x21a)]=_0x187e62[_0x259d5d(0x208)],_0x1de637[_0x259d5d(0x227)]=_0x187e62[_0x259d5d(0x1fc)];const _0xce89fa={};return _0xce89fa[_0x259d5d(0x1e3)]=_0x4fb76d,_0xce89fa['bstack-accesskey']=_0x2bd131,_0xce89fa[_0x259d5d(0x221)]=_0x2e2895,_0xce89fa[_0x259d5d(0x21f)]=_0x5315f9,_0xce89fa[_0x259d5d(0x1f1)]=_0x1de637,_0xf1eb70['usage'](_0x4e95da[_0x259d5d(0x22b)])['epilogue'](_0x2e690c)[_0x259d5d(0x1ef)](_0xce89fa)[_0x259d5d(0x203)](_0x187e62[_0x259d5d(0x229)])[_0x259d5d(0x236)];}else _0x5391bc++,_0x187e62['rEBtK'](_0x5391bc,0x1)&&_0xcb4289&&_0xcb4289[_0x259d5d(0x1de)]()&&_0x187e62[_0x259d5d(0x219)](stopLocalBinary,_0xcb4289);};process['on'](_0x187e62['WnihB'],_0x1dfb05),process['on'](_0x187e62[_0x30b91d(0x222)],_0x1dfb05),process['on'](_0x187e62['OSxxb'],_0x1dfb05),logMessage=_0x30b91d(0x21d),logger[_0x30b91d(0x231)](logMessage);}else{_0x121297=_0x30b91d(0x20d),_0x366a21[_0x30b91d(0x231)](_0x4a4e23);try{const _0xb728ea={};_0xb728ea[_0x30b91d(0x1e8)]=_0x1cf35d,_0xb728ea[_0x30b91d(0x21c)]=_0x353286[_0x30b91d(0x21c)],_0xb728ea[_0x30b91d(0x1f7)]=_0x2647f2;const _0x32a166=_0xb728ea,_0x722d4c=_0x187e62[_0x30b91d(0x1e6)](_0x57a9c3,_0x32a166);let _0x5889e6=0x0;const _0x2d16f2=async()=>{const _0x7ef764=_0x30b91d;_0x5889e6++,_0x187e62[_0x7ef764(0x1ee)](_0x5889e6,0x1)&&_0x722d4c&&_0x722d4c['isRunning']()&&_0x187e62['TXjGZ'](_0x23beaf,_0x722d4c);};_0xc21aa7['on'](_0x187e62[_0x30b91d(0x20e)],_0x2d16f2),_0x4c6ccf['on'](_0x187e62[_0x30b91d(0x222)],_0x2d16f2),_0x490180['on'](_0x187e62[_0x30b91d(0x21e)],_0x2d16f2),_0x96203f=_0x30b91d(0x21d),_0x48dd75[_0x30b91d(0x231)](_0x33fa38);}catch(_0xb8449a){_0x187e62[_0x30b91d(0x228)](_0x1c1571,_0x30b91d(0x1f6));}}}catch(_0x3081e1){_0x187e62['QPcHE'](_0x187e62['UNpxv'],_0x187e62[_0x30b91d(0x212)])?_0x187e62['gZihO'](_0x5dfd00,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier'):_0x187e62[_0x30b91d(0x228)](_0x514d46,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}else _0x1025e6[_0x30b91d(0x207)](_0xf4926c),_0x4b06e3[_0x30b91d(0x201)](0x1);}process[_0x30b91d(0x201)](0x0);};
1
+ const a2_0x369a87=a2_0x3826;(function(_0x196eeb,_0x5ba07c){const _0xc5cf7c=a2_0x3826,_0x12a767=_0x196eeb();while(!![]){try{const _0x55b55a=parseInt(_0xc5cf7c(0xc7))/0x1+-parseInt(_0xc5cf7c(0xb3))/0x2*(-parseInt(_0xc5cf7c(0xa0))/0x3)+-parseInt(_0xc5cf7c(0xa1))/0x4+-parseInt(_0xc5cf7c(0x73))/0x5+parseInt(_0xc5cf7c(0xb1))/0x6+-parseInt(_0xc5cf7c(0xbc))/0x7*(-parseInt(_0xc5cf7c(0xcd))/0x8)+parseInt(_0xc5cf7c(0xb8))/0x9*(-parseInt(_0xc5cf7c(0x92))/0xa);if(_0x55b55a===_0x5ba07c)break;else _0x12a767['push'](_0x12a767['shift']());}catch(_0x19c110){_0x12a767['push'](_0x12a767['shift']());}}}(a2_0x53b5,0xe4b98));function a2_0x53b5(){const _0x2f3f17=['create','4163140DeKMND','HnmcZ','use-staging','useStaging','FHIGJ','command','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','cMGbP','advance-options','LkiYY','MbzmF','HbiLz','uZhPw','advanceOptions','VQnqF','MSLYu','VwrZV','mRENI','Pass\x20the\x20ID\x20of\x20the\x20Grid','VPDmS','DWohi','Fqnkj','string','options','zTmPB','IiunY','../../config/logger','LJPBA','UWhDV','Eqbgn','isRunning','30womPpR','elUyy','grid-id','true','Hbibt','accessKey','SdgJD','ffbTq','NjPAJ','gridId','SIGINT','usage','WcByt','bstack-username','42NLSQNq','108448SPBuwS','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.','argv','BADYV','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','type','error','UhrNf','epilogue','jGEvN','FvoFi','customRepeaters','UlIyb','uZDvR','builder','TDPzJ','3395814zQxfyt','help','126858SRwfWE','NYoeU','description','vPTdm','khhjo','5345451bVZoIP','isTrialGrid','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','QFbAI','7sSSnRe','desc','../../utils/utilityMethods','gWnpq','Mywlm','Advance\x20options\x20for\x20Browserstack\x20Local','grid','browserStackLocalOptions','CHfBD','exit','ObWLV','282869dnvPwH','grFGa','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','xGIqr','Grid\x20type:\x20Trial','bstack-accesskey','14732552zTDnWL','BcuiW','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','handler','gAHwj','info'];a2_0x53b5=function(){return _0x2f3f17;};return a2_0x53b5();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a2_0x369a87(0x8d)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a2_0x369a87(0xbe));function a2_0x3826(_0x535fe9,_0x4864ef){const _0x53b5ac=a2_0x53b5();return a2_0x3826=function(_0x382653,_0x174952){_0x382653=_0x382653-0x6f;let _0x5b1863=_0x53b5ac[_0x382653];return _0x5b1863;},a2_0x3826(_0x535fe9,_0x4864ef);}exports[a2_0x369a87(0x78)]=a2_0x369a87(0xc2),exports[a2_0x369a87(0xbd)]=a2_0x369a87(0xcf),exports[a2_0x369a87(0xaf)]=_0xfff293=>{const _0x5e7cce=a2_0x369a87,_0x6e9bd9={};_0x6e9bd9[_0x5e7cce(0xc6)]=_0x5e7cce(0xa5),_0x6e9bd9['FvoFi']=_0x5e7cce(0x89),_0x6e9bd9['vIcYG']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x6e9bd9['QFbAI']=_0x5e7cce(0x85),_0x6e9bd9[_0x5e7cce(0xb7)]='Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.',_0x6e9bd9[_0x5e7cce(0x8c)]=_0x5e7cce(0xc1),_0x6e9bd9[_0x5e7cce(0x87)]='help';const _0x45d77f=_0x6e9bd9,_0x3df739={};_0x3df739['description']=_0x45d77f[_0x5e7cce(0xc6)],_0x3df739['type']=_0x45d77f[_0x5e7cce(0xab)];const _0x635340={};_0x635340[_0x5e7cce(0xb5)]=_0x45d77f['vIcYG'],_0x635340[_0x5e7cce(0xa6)]=_0x45d77f[_0x5e7cce(0xab)];const _0x2c89ab={};_0x2c89ab['demandOption']=!![],_0x2c89ab['description']=_0x45d77f[_0x5e7cce(0xbb)],_0x2c89ab['type']=_0x45d77f['FvoFi'];const _0x934d05={};_0x934d05[_0x5e7cce(0xb5)]=_0x45d77f['khhjo'],_0x934d05['type']=_0x45d77f[_0x5e7cce(0xab)];const _0x574045={};_0x574045[_0x5e7cce(0xb5)]=_0x45d77f['IiunY'],_0x574045[_0x5e7cce(0xa6)]=_0x45d77f[_0x5e7cce(0xab)];const _0x27b037={};return _0x27b037[_0x5e7cce(0x9f)]=_0x3df739,_0x27b037['bstack-accesskey']=_0x635340,_0x27b037[_0x5e7cce(0x94)]=_0x2c89ab,_0x27b037['use-staging']=_0x934d05,_0x27b037[_0x5e7cce(0x7b)]=_0x574045,_0xfff293[_0x5e7cce(0x9d)](HELP_HEADER_MESSAGE[_0x5e7cce(0x72)])[_0x5e7cce(0xa9)](HELP_FOOTER_MESSAGE)[_0x5e7cce(0x8a)](_0x27b037)[_0x5e7cce(0xb2)](_0x45d77f[_0x5e7cce(0x87)])[_0x5e7cce(0xa3)];},exports[a2_0x369a87(0x6f)]=async _0x373250=>{const _0x1f165d=a2_0x369a87,_0x3916a6={'gAHwj':function(_0x44fb10,_0x5c3553){return _0x44fb10!==_0x5c3553;},'LkiYY':_0x1f165d(0x7e),'VwrZV':function(_0x2fcd21,_0x5038aa){return _0x2fcd21(_0x5038aa);},'UhrNf':function(_0x153207,_0x41c45e){return _0x153207(_0x41c45e);},'NYoeU':_0x1f165d(0xa5),'VPDmS':_0x1f165d(0x89),'jGEvN':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','HUPdB':_0x1f165d(0x85),'LJPBA':'Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','pxccT':'Advance\x20options\x20for\x20Browserstack\x20Local','WcByt':_0x1f165d(0xb2),'Hbibt':function(_0x312590,_0x55c224){return _0x312590==_0x55c224;},'elUyy':function(_0x214626,_0x39f879){return _0x214626(_0x39f879);},'FHIGJ':function(_0x3aca92,_0xaac86e){return _0x3aca92(_0xaac86e);},'UlIyb':'beforeExit','cMGbP':_0x1f165d(0x9c),'CHfBD':'SIGTERM','vPTdm':_0x1f165d(0x8b),'VQnqF':_0x1f165d(0x82),'Mywlm':function(_0x34e9e8,_0x37912f){return _0x34e9e8(_0x37912f);},'iJCpt':function(_0x2090b2,_0x4e5698,_0x1cb4e4){return _0x2090b2(_0x4e5698,_0x1cb4e4);},'NjPAJ':function(_0x4e250d,_0x1c2168){return _0x4e250d&&_0x1c2168;},'TDPzJ':function(_0x532733,_0x3c7958){return _0x532733===_0x3c7958;},'ffbTq':_0x1f165d(0x90),'pCRYX':function(_0x569654,_0x43b1a3,_0x1bf38a,_0x970297){return _0x569654(_0x43b1a3,_0x1bf38a,_0x970297);},'HnmcZ':function(_0x558622,_0x5ada13){return _0x558622!==_0x5ada13;},'xGIqr':'MBaYg','gtMSB':'sPNVE','Fqnkj':function(_0x487690,_0x1e3e6d){return _0x487690===_0x1e3e6d;},'uZhPw':_0x1f165d(0x95),'mRENI':_0x1f165d(0xae),'XhLvk':_0x1f165d(0x98),'BcuiW':_0x1f165d(0xc8),'UWhDV':_0x1f165d(0xbf)};let _0x2fcb80=_0x373250['bstackUsername'],_0x12b5d1=_0x373250['bstackAccesskey'],_0x431b6c=_0x373250[_0x1f165d(0x80)];const _0x2d43b3=_0x1a870b=>{const _0x4e93d7=_0x1f165d;_0x3916a6[_0x4e93d7(0x70)](_0x3916a6[_0x4e93d7(0x7c)],_0x3916a6[_0x4e93d7(0x7c)])?(_0xaea783[_0x4e93d7(0xa7)](_0x37f756),_0x81833e[_0x4e93d7(0xc5)](0x1)):(logger['error'](_0x1a870b),process[_0x4e93d7(0xc5)](0x1));};[_0x2fcb80,_0x12b5d1]=_0x3916a6['iJCpt'](fetchOrUpdateUserConfig,_0x2fcb80,_0x12b5d1);!_0x3916a6[_0x1f165d(0x9a)](_0x2fcb80,_0x12b5d1)&&(_0x3916a6['TDPzJ'](_0x3916a6[_0x1f165d(0x99)],_0x3916a6[_0x1f165d(0x99)])?_0x3916a6[_0x1f165d(0xa8)](_0x2d43b3,_0x1f165d(0xba)):_0x3916a6[_0x1f165d(0x83)](_0x107c32,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid'));let _0x17c108=_0x373250[_0x1f165d(0x9b)],_0x2fa7af=await _0x3916a6['pCRYX'](getGridDetails,_0x2fcb80,_0x12b5d1,_0x17c108);!_0x2fa7af&&(_0x3916a6[_0x1f165d(0x74)](_0x3916a6[_0x1f165d(0xca)],_0x3916a6['gtMSB'])?_0x3916a6[_0x1f165d(0x83)](_0x2d43b3,_0x1f165d(0xc9)):_0x3916a6['UhrNf'](_0x42464a,_0x1f165d(0xc9)));let _0xaef1c4=_0x3916a6[_0x1f165d(0x88)](_0x373250[_0x1f165d(0x76)],_0x3916a6[_0x1f165d(0x7f)])?!![]:![];if(_0x2fa7af&&_0x2fa7af[_0x1f165d(0xb9)]&&_0xaef1c4){if(_0x3916a6[_0x1f165d(0x88)](_0x3916a6[_0x1f165d(0x84)],_0x3916a6['XhLvk'])){const _0x311117={};_0x311117['description']=_0x3916a6[_0x1f165d(0xb4)],_0x311117[_0x1f165d(0xa6)]=_0x3916a6[_0x1f165d(0x86)];const _0x2b389a={};_0x2b389a[_0x1f165d(0xb5)]=_0x3916a6[_0x1f165d(0xaa)],_0x2b389a['type']=_0x3916a6[_0x1f165d(0x86)];const _0x544984={};_0x544984['demandOption']=!![],_0x544984['description']=_0x3916a6['HUPdB'],_0x544984[_0x1f165d(0xa6)]=_0x3916a6[_0x1f165d(0x86)];const _0x44606b={};_0x44606b['description']=_0x3916a6[_0x1f165d(0x8e)],_0x44606b[_0x1f165d(0xa6)]=_0x3916a6['VPDmS'];const _0x5f03d9={};_0x5f03d9[_0x1f165d(0xb5)]=_0x3916a6['pxccT'],_0x5f03d9[_0x1f165d(0xa6)]=_0x3916a6[_0x1f165d(0x86)];const _0x23f8a2={};return _0x23f8a2[_0x1f165d(0x9f)]=_0x311117,_0x23f8a2[_0x1f165d(0xcc)]=_0x2b389a,_0x23f8a2['grid-id']=_0x544984,_0x23f8a2[_0x1f165d(0x75)]=_0x44606b,_0x23f8a2[_0x1f165d(0x7b)]=_0x5f03d9,_0x42e0f5[_0x1f165d(0x9d)](_0x22ea5f[_0x1f165d(0x72)])[_0x1f165d(0xa9)](_0x25f5a8)[_0x1f165d(0x8a)](_0x23f8a2)[_0x1f165d(0xb2)](_0x3916a6[_0x1f165d(0x9e)])[_0x1f165d(0xa3)];}else{logMessage=_0x1f165d(0xcb),logger[_0x1f165d(0x71)](logMessage);try{if(_0x3916a6[_0x1f165d(0x74)](_0x3916a6[_0x1f165d(0xce)],_0x3916a6[_0x1f165d(0xce)])){const _0x4331b4={};_0x4331b4['accessKey']=_0x5200a6,_0x4331b4[_0x1f165d(0xac)]=_0x34b5e5[_0x1f165d(0xac)],_0x4331b4['browserStackLocalOptions']=_0x183b95;const _0x2b4bf1=_0x4331b4,_0xc99dc6=_0x3916a6[_0x1f165d(0x77)](_0x17c6eb,_0x2b4bf1);let _0x270ef6=0x0;const _0x18512f=async()=>{const _0x2a6f8d=_0x1f165d;_0x270ef6++,_0x3916a6[_0x2a6f8d(0x96)](_0x270ef6,0x1)&&_0xc99dc6&&_0xc99dc6[_0x2a6f8d(0x91)]()&&_0x3916a6[_0x2a6f8d(0x93)](_0x2cce7b,_0xc99dc6);};_0x23b3ca['on'](_0x3916a6[_0x1f165d(0xad)],_0x18512f),_0x4060c4['on'](_0x3916a6['cMGbP'],_0x18512f),_0x5618b9['on'](_0x3916a6[_0x1f165d(0xc4)],_0x18512f),_0x5bbd8d=_0x1f165d(0xa2),_0x2577a9['info'](_0x3fe9a0);}else{const _0x47812a={};_0x47812a[_0x1f165d(0x97)]=_0x12b5d1,_0x47812a[_0x1f165d(0xac)]=_0x2fa7af[_0x1f165d(0xac)],_0x47812a['browserStackLocalOptions']=_0x431b6c;const _0x5d502e=_0x47812a,_0x342d67=_0x3916a6[_0x1f165d(0x77)](startLocalBinarySync,_0x5d502e);let _0x47cfdd=0x0;const _0x2e5e0d=async()=>{const _0x258ce6=_0x1f165d;if(_0x3916a6['gAHwj'](_0x3916a6[_0x258ce6(0xb6)],_0x3916a6[_0x258ce6(0x81)]))_0x47cfdd++,_0x3916a6[_0x258ce6(0x96)](_0x47cfdd,0x1)&&_0x342d67&&_0x342d67[_0x258ce6(0x91)]()&&_0x3916a6[_0x258ce6(0xc0)](stopLocalBinary,_0x342d67);else{const _0x1f70b6={'BADYV':function(_0x4e37c,_0x5f3799){const _0x41f162=_0x258ce6;return _0x3916a6[_0x41f162(0x96)](_0x4e37c,_0x5f3799);},'MbzmF':function(_0x58470d,_0x55c970){return _0x3916a6['FHIGJ'](_0x58470d,_0x55c970);}};_0x57eea4=_0x258ce6(0xcb),_0x1ba16e[_0x258ce6(0x71)](_0x6b3b3f);try{const _0x2c1c88={};_0x2c1c88[_0x258ce6(0x97)]=_0x5c5d43,_0x2c1c88[_0x258ce6(0xac)]=_0x12a8ee['customRepeaters'],_0x2c1c88[_0x258ce6(0xc3)]=_0x2dd53c;const _0x228785=_0x2c1c88,_0x3a726=_0x3916a6[_0x258ce6(0x93)](_0x36ee83,_0x228785);let _0x323ccf=0x0;const _0x259285=async()=>{const _0x42f030=_0x258ce6;_0x323ccf++,_0x1f70b6[_0x42f030(0xa4)](_0x323ccf,0x1)&&_0x3a726&&_0x3a726[_0x42f030(0x91)]()&&_0x1f70b6[_0x42f030(0x7d)](_0x148aee,_0x3a726);};_0x27aba3['on'](_0x3916a6[_0x258ce6(0xad)],_0x259285),_0x1dfa6b['on'](_0x3916a6[_0x258ce6(0x7a)],_0x259285),_0x820a67['on'](_0x3916a6[_0x258ce6(0xc4)],_0x259285),_0x539d9e='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.',_0xe901c0['info'](_0xbed84b);}catch(_0x449d00){_0x3916a6['VwrZV'](_0x43b661,_0x258ce6(0x79));}}};process['on'](_0x3916a6[_0x1f165d(0xad)],_0x2e5e0d),process['on'](_0x3916a6['cMGbP'],_0x2e5e0d),process['on'](_0x3916a6[_0x1f165d(0xc4)],_0x2e5e0d),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[_0x1f165d(0x71)](logMessage);}}catch(_0x38deb8){_0x3916a6[_0x1f165d(0xb0)](_0x3916a6[_0x1f165d(0x8f)],_0x3916a6[_0x1f165d(0x8f)])?_0x3916a6[_0x1f165d(0xa8)](_0x2d43b3,_0x1f165d(0x79)):_0x3916a6[_0x1f165d(0x83)](_0x4ce5d3,_0x1f165d(0xba));}}}process[_0x1f165d(0xc5)](0x0);};
@@ -1 +1 @@
1
- function a3_0x1125(){const _0x5c47bc=['iYiLg','1291011YsSzUl','epilogue','../config/constants','demandCommand','Create\x20a\x20new\x20Automation\x20grid.','create','1454964PyvoRR','command','2ziQjEq','strict','DOyFc','2262860jCcFff','help','commandDir','builder','7798PlMCli','2544MUlVNi','3793880vmOHFr','16gxHBhi','1803150LKUDaD','342952ZFxqnh','create_commands','desc','recommendCommands'];a3_0x1125=function(){return _0x5c47bc;};return a3_0x1125();}const a3_0x112c08=a3_0x2417;function a3_0x2417(_0x36c7f4,_0x16af5c){const _0x112556=a3_0x1125();return a3_0x2417=function(_0x241738,_0x4aec06){_0x241738=_0x241738-0xc2;let _0x521b46=_0x112556[_0x241738];return _0x521b46;},a3_0x2417(_0x36c7f4,_0x16af5c);}(function(_0x273fa,_0x34ca78){const _0x545def=a3_0x2417,_0x50cf42=_0x273fa();while(!![]){try{const _0x3c18e1=parseInt(_0x545def(0xcf))/0x1*(parseInt(_0x545def(0xc2))/0x2)+-parseInt(_0x545def(0xc7))/0x3+parseInt(_0x545def(0xcd))/0x4+-parseInt(_0x545def(0xd2))/0x5+-parseInt(_0x545def(0xd7))/0x6*(-parseInt(_0x545def(0xd6))/0x7)+parseInt(_0x545def(0xd9))/0x8*(parseInt(_0x545def(0xda))/0x9)+-parseInt(_0x545def(0xd8))/0xa;if(_0x3c18e1===_0x34ca78)break;else _0x50cf42['push'](_0x50cf42['shift']());}catch(_0x9d6147){_0x50cf42['push'](_0x50cf42['shift']());}}}(a3_0x1125,0x4d7f8));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a3_0x112c08(0xc9));exports[a3_0x112c08(0xce)]=a3_0x112c08(0xcc),exports[a3_0x112c08(0xc4)]=a3_0x112c08(0xcb),exports[a3_0x112c08(0xd5)]=function(_0x27ae92){const _0x3566e5=a3_0x112c08,_0x5c8fb9={};_0x5c8fb9[_0x3566e5(0xd1)]=_0x3566e5(0xc3),_0x5c8fb9[_0x3566e5(0xc6)]='help';const _0x364240=_0x5c8fb9;return _0x27ae92['usage'](HELP_HEADER_MESSAGE[_0x3566e5(0xcc)])[_0x3566e5(0xc8)](HELP_FOOTER_MESSAGE)[_0x3566e5(0xd4)](_0x364240[_0x3566e5(0xd1)])[_0x3566e5(0xca)]()[_0x3566e5(0xc5)]()[_0x3566e5(0xd0)]()[_0x3566e5(0xd3)](_0x364240['iYiLg']);},exports['handler']=function(_0x4ee794){};
1
+ const a3_0x2316a9=a3_0x138d;(function(_0x167556,_0x3b8fa0){const _0x595b92=a3_0x138d,_0x416432=_0x167556();while(!![]){try{const _0x3a4009=-parseInt(_0x595b92(0xf1))/0x1+parseInt(_0x595b92(0xfe))/0x2*(parseInt(_0x595b92(0xeb))/0x3)+-parseInt(_0x595b92(0xf2))/0x4*(parseInt(_0x595b92(0xfb))/0x5)+parseInt(_0x595b92(0xe8))/0x6*(parseInt(_0x595b92(0xff))/0x7)+-parseInt(_0x595b92(0xfc))/0x8*(-parseInt(_0x595b92(0xf9))/0x9)+-parseInt(_0x595b92(0xef))/0xa*(-parseInt(_0x595b92(0xf8))/0xb)+-parseInt(_0x595b92(0xfa))/0xc*(parseInt(_0x595b92(0xf6))/0xd);if(_0x3a4009===_0x3b8fa0)break;else _0x416432['push'](_0x416432['shift']());}catch(_0x37b8df){_0x416432['push'](_0x416432['shift']());}}}(a3_0x1c22,0x6a47c));function a3_0x1c22(){const _0x5c1ed4=['help','desc','345110MtnHJy','builder','417629TpYStN','500JQYriR','handler','epilogue','CJSJL','559OohCRS','../config/constants','121joppzQ','23121pZPhWj','215772zetGwd','24935hPbZTr','2504sNzLJo','usage','12644fdQzQE','917MylHzA','38970fVSRtd','create','Create\x20a\x20new\x20Automation\x20grid.','102dDmBLi','DOwYw'];a3_0x1c22=function(){return _0x5c1ed4;};return a3_0x1c22();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a3_0x2316a9(0xf7));function a3_0x138d(_0x2cf262,_0x2e4f93){const _0x1c222c=a3_0x1c22();return a3_0x138d=function(_0x138dff,_0xd04c17){_0x138dff=_0x138dff-0xe8;let _0xc6e506=_0x1c222c[_0x138dff];return _0xc6e506;},a3_0x138d(_0x2cf262,_0x2e4f93);}exports['command']=a3_0x2316a9(0xe9),exports[a3_0x2316a9(0xee)]=a3_0x2316a9(0xea),exports[a3_0x2316a9(0xf0)]=function(_0x40c830){const _0x56da80=a3_0x2316a9,_0x1f793a={};_0x1f793a[_0x56da80(0xf5)]='create_commands',_0x1f793a[_0x56da80(0xec)]=_0x56da80(0xed);const _0x5ae3a3=_0x1f793a;return _0x40c830[_0x56da80(0xfd)](HELP_HEADER_MESSAGE[_0x56da80(0xe9)])[_0x56da80(0xf4)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5ae3a3['CJSJL'])['demandCommand']()['recommendCommands']()['strict']()[_0x56da80(0xed)](_0x5ae3a3[_0x56da80(0xec)]);},exports[a3_0x2316a9(0xf3)]=function(_0x4d2d95){};
@@ -1 +1 @@
1
- const a4_0x21d604=a4_0x1c99;function a4_0x334d(){const _0x3ea307=['uuid','ZFtCA','builder','Namespace\x20Created','../../utils/webSocketUtils','nbeaD','pre-spawned-invalid-subnets','qXguI','\x20in\x20existing\x20cluster\x20\x27','request','bstackUsername','type','gridProfile','LOG','annotations','\x20using\x20\x27','message','Namespace\x20created',':4444/wd/hub','pre-spawned-invalid-vpc','exit','zGSSn','AJQWz','Cluster\x20=>\x20','2|7|4|0|5|3|1|6','Found\x20VPC:\x20','CLI_RUN_STARTED','Spawning\x20grid\x20on\x20to\x20the\x20cluster','8641xsQrTI','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','nodegroup','toLowerCase','stringify','Zkrgy','username','Xmgpx','XgtOV','epilogue','2172vkXHPS','MWCmH','Subnets:\x20','accessKey','securityGroups','../../utils/createClusterStack','argv','mxgcS','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','svBBv','readFileSync','createdBy','xmEHO','kFRLU','3|0|2|4|1','fZjbZ','ejYSj','match','user','util','fQfvR','FboHE','Wjeos','IsaQF','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','alreadyPresent','Grid\x20can\x20be\x20accessed\x20at:\x20','Stacks','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','9Mqjpci','bstackAccesskey','LfuDi','gridName','reconnecting-websocket','nfjDe','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Creating\x20Autoscaler\x20Role','lMVgk','ZzqIX','GuFPE','Create\x20a\x20new\x20Automation\x20grid.','Deleting\x20the\x20CloudFormation\x20Stacks','CAYhj','SecurityGroups\x20=>\x20','PpCmt','syeRz','create-grid-called','parse',',\x20VPC\x20=>\x20','hcgzu','WARNING','2336514HZHuBa','LYeXt','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','GsXPq','eGdOw','warning','<UsernamePlaceholder>','prespawned-cluster-args-not-passed','PzHHy','TATZf','JnGcT','IvksV','error','HfqOg','CWYzi','zTXEG','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','BGVJK','kJNYo','gridProfiles','LpBAt','status','rjqAf','mHmjq','default','ApCmZ','HNHRw','clusterName','uPdDk','ZGKMb','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','readNamespacedService','nFIGj','ZfvJA','gwpay','concurrency','cluster','endpoint','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','-NodeGroup','OWzwC','region','Browserstack','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','info','pjirF',',\x20ClusterRole\x20=>\x20','../../utils/instrumentationUtils','MMmbX','help','EngJy','KRFqr','delay','fgUBv','../../config/logger','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','Dyokx','dkNqq','eRses','Adding\x20Websocket\x20listeners','gridProfileId','../../utils/userInput','../../config/constants','UMfGD','YXSFW','kiegk','RnXBK','promisify','oIBAX','RzDra','pre-spawned-subnets-not-selected','replace','certificateAuthority','gtlKm','hHFzx','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','rNWpV','statusCode','bgvMA','reportToGalactusAndSendToEDS','aws','dmYko','nodeRole','grid','subnets','PZFvA','grid-spawning-failed','WYBjc','command',',\x20SecurityGroups\x20=>\x20','Grid\x20profile\x20fetched\x20from\x20backend','password','OutputValue','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','../../utils/createAutoscalerStack','996056OijaqQ','../../utils/gridComponents','Autoscaler\x20Role\x20created.ARN:\x20','TQzPz','JbBze','tvNsK','495790egBHzL','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','jlQqs','\x27\x20grid\x20profile','CuWqf','GUkis','AeXyi','yuPov','CLI\x20run\x20finished:\x20','ztHlW','uvVtV','PIDDN','../../utils/createk8sClient','nQJfe','1|0|4|2|3','Configuring\x20AWS','Spawning\x20the\x20grid\x20','CvOFy','split','string','wprpb','eHgnL','CLI_RUN_FINISHED','create-grid-checks-grid-already-exists','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','oddpT','warn','\x20are\x20not\x20present\x20in\x20VPC:\x20','ingress','AQETm','BJFfY','https://','autoscaler-creation-failed','usage','Creating\x20namespace','20933xaihtO','ZIbBq','cluster-name','zhMLE','qUfin','body','6|5|2|1|0|4|7|3','managedBy','JXKlh','../../utils/utilityMethods','EVRpa','uguWx','Found\x20Subnets:\x20','ipEWo','debug','CcJEY','description','create','CLI\x20run\x20started','cloudProvider','GET','AbYOM','HRrlI','sendEventToBackend','nUPFB','akBXI','fHkID','FhybI','GBHXY','NYHOR','Outputs','1|2|4|3|0','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.','metadata','6|0|4|2|3|1|5','writeFileSync','options','nAqwN','vKnjz','existsSync','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','zMiPC','../../utils/AWSUtils','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://','WmepY','../../utils/deleteStack','zmAss','vpc','CDUDS','grid-name','cloudProviderAccessKey','Cluster\x20','oTDgK',',\x20Subnets\x20=>\x20','EpxVe','zIwCP','3rSSeDn','Cluster\x20and\x20node\x20group\x20created\x20successfully','kBTKp','cloudProviderSecretKey','EEdyy','<PasswordPlaceholder>','create-grid-checks-auth-failed','kmRJu','ClusterRole\x20=>\x20','xZkfz','hostname','JHyGB','tHrFG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','2287600upbnJL','cloud-provider','lpyIC','grid-profile','HDvJd','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use--grid\x20-\x20name\x20option\x20to\x20provide\x20another\x20grid\x20name','../../utils/hstUtils','create-grid-checks-non-200','clusterRegion','7yZUOwe','xXmLY','auth','4129228BKCxHI','ImEku','loadBalancer','ERROR','ofJSs','name','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','secret','ysfCI','rSHDo','RVOMj','browserstack-turboscale-grid-service','120ngsnmN','NodeRole\x20=>\x20'];a4_0x334d=function(){return _0x3ea307;};return a4_0x334d();}(function(_0x9c77b9,_0x2ae852){const _0x3c5db0=a4_0x1c99,_0x543a1d=_0x9c77b9();while(!![]){try{const _0x1d8d34=-parseInt(_0x3c5db0(0x263))/0x1*(parseInt(_0x3c5db0(0x245))/0x2)+-parseInt(_0x3c5db0(0x21e))/0x3*(-parseInt(_0x3c5db0(0x238))/0x4)+-parseInt(_0x3c5db0(0x22c))/0x5+parseInt(_0x3c5db0(0x2a0))/0x6*(parseInt(_0x3c5db0(0x235))/0x7)+-parseInt(_0x3c5db0(0x1bc))/0x8+-parseInt(_0x3c5db0(0x28a))/0x9*(-parseInt(_0x3c5db0(0x1c2))/0xa)+-parseInt(_0x3c5db0(0x1e5))/0xb*(-parseInt(_0x3c5db0(0x26d))/0xc);if(_0x1d8d34===_0x2ae852)break;else _0x543a1d['push'](_0x543a1d['shift']());}catch(_0x2b714c){_0x543a1d['push'](_0x543a1d['shift']());}}}(a4_0x334d,0xae9fd));const fs=require('fs'),ws=require('ws'),util=require(a4_0x21d604(0x280)),ReconnectingWebSocket=require(a4_0x21d604(0x28e)),request=require(a4_0x21d604(0x250)),{v4:uuidv4}=require(a4_0x21d604(0x247)),webSocketUtils=require(a4_0x21d604(0x24b)),{logger}=require(a4_0x21d604(0x193)),{inputCloudProviderKeys}=require(a4_0x21d604(0x19a)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a4_0x21d604(0x1ee)),{sendAWSInfoToHST}=require(a4_0x21d604(0x232)),{isClusterPresent,getClusterInfo,configureAWSIfNotConfigured,createAuthConfigMap,getNodeGroupInfo,isVPCPresent,isSubnetsValid}=require(a4_0x21d604(0x210)),{addGridComponents,deleteClusterAndDependencies,removeGridComponents}=require(a4_0x21d604(0x1bd)),{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_0x21d604(0x19b)),{createClusterStack}=require(a4_0x21d604(0x272)),{createAutoscalerStack}=require(a4_0x21d604(0x1bb)),{createK8sClient}=require(a4_0x21d604(0x1ce)),{sendInstrumentationEvent}=require(a4_0x21d604(0x18c)),{deleteClusterStack}=require(a4_0x21d604(0x213)),promisifiedRequest=util[a4_0x21d604(0x1a0)](request);function a4_0x1c99(_0x3fcffe,_0x5c0a42){const _0x334d35=a4_0x334d();return a4_0x1c99=function(_0x1c99a9,_0xbefc04){_0x1c99a9=_0x1c99a9-0x17a;let _0x1dd8ca=_0x334d35[_0x1c99a9];return _0x1dd8ca;},a4_0x1c99(_0x3fcffe,_0x5c0a42);}exports[a4_0x21d604(0x1b5)]=a4_0x21d604(0x1b0),exports['desc']=a4_0x21d604(0x295),exports[a4_0x21d604(0x249)]=function(_0x1f47c3){const _0x40f1a0=a4_0x21d604,_0x10bd9d={};_0x10bd9d[_0x40f1a0(0x1db)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x10bd9d['ZfvJA']=_0x40f1a0(0x1d5),_0x10bd9d[_0x40f1a0(0x2ba)]=_0x40f1a0(0x2a2),_0x10bd9d['QKTyW']=_0x40f1a0(0x188),_0x10bd9d[_0x40f1a0(0x279)]=_0x40f1a0(0x1c3),_0x10bd9d[_0x40f1a0(0x1ae)]=_0x40f1a0(0x289),_0x10bd9d[_0x40f1a0(0x222)]=_0x40f1a0(0x18e);const _0x83fc05=_0x10bd9d,_0x130c6f={};_0x130c6f[_0x40f1a0(0x1f5)]=_0x83fc05[_0x40f1a0(0x1db)],_0x130c6f[_0x40f1a0(0x252)]=_0x83fc05[_0x40f1a0(0x17e)];const _0x2106d4={};_0x2106d4[_0x40f1a0(0x1f5)]=_0x83fc05['HNHRw'],_0x2106d4['type']=_0x83fc05[_0x40f1a0(0x17e)];const _0x2b3c2d={};_0x2b3c2d[_0x40f1a0(0x1f5)]=_0x83fc05['QKTyW'],_0x2b3c2d['type']=_0x83fc05['ZfvJA'];const _0xc14f3a={};_0xc14f3a[_0x40f1a0(0x1f5)]=_0x83fc05[_0x40f1a0(0x279)],_0xc14f3a['type']=_0x83fc05[_0x40f1a0(0x17e)];const _0x526e80={};_0x526e80['description']=_0x83fc05['dmYko'],_0x526e80[_0x40f1a0(0x252)]=_0x83fc05['ZfvJA'];const _0x559314={};return _0x559314[_0x40f1a0(0x217)]=_0x130c6f,_0x559314[_0x40f1a0(0x22f)]=_0x2106d4,_0x559314[_0x40f1a0(0x1e7)]=_0x2b3c2d,_0x559314['cloud-provider']=_0xc14f3a,_0x559314['region']=_0x526e80,_0x1f47c3[_0x40f1a0(0x1e3)](HELP_HEADER_MESSAGE['create'])[_0x40f1a0(0x26c)](HELP_FOOTER_MESSAGE)['options'](_0x559314)['help'](_0x83fc05['EEdyy'])[_0x40f1a0(0x273)];},exports['handler']=async function(_0xb178fb){const _0x48c030=a4_0x21d604,_0x43d380={'cXAnh':_0x48c030(0x207),'nfjDe':_0x48c030(0x25f),'HDvJd':'Authmap\x20already\x20exists.\x20Not\x20updating','PzHHy':_0x48c030(0x27b),'nbeaD':_0x48c030(0x23e),'Wjeos':_0x48c030(0x1d1),'fgUBv':function(_0x2eaed7){return _0x2eaed7();},'jlQqs':_0x48c030(0x2b0),'GuFPE':_0x48c030(0x1d5),'qAcHO':_0x48c030(0x2a2),'PIDDN':_0x48c030(0x188),'FBDPH':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','LfuDi':_0x48c030(0x289),'LpBAt':'help','IsaQF':_0x48c030(0x2ac),'iNDjy':_0x48c030(0x1eb),'zGSSn':function(_0x3da30c){return _0x3da30c();},'GsXPq':function(_0x486b10,_0x40d885){return _0x486b10!==_0x40d885;},'AQETm':_0x48c030(0x220),'hHFzx':_0x48c030(0x22b),'Dyokx':function(_0x31660b,_0xa04c1a,_0x46eabc,_0x1d1876,_0x3e39b0,_0x247c9e,_0x42ca9c){return _0x31660b(_0xa04c1a,_0x46eabc,_0x1d1876,_0x3e39b0,_0x247c9e,_0x42ca9c);},'oTDgK':_0x48c030(0x29b),'RnXBK':'init-not-called','IvksV':function(_0xb270a){return _0xb270a();},'svBBv':_0x48c030(0x2a6),'LrWaK':_0x48c030(0x223),'hYRUv':_0x48c030(0x198),'CvOFy':'WhamI','kiegk':function(_0x187a13,_0x223808){return _0x187a13===_0x223808;},'RVOMj':_0x48c030(0x297),'AMiNd':_0x48c030(0x281),'PZFvA':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','LYeXt':function(_0x186cdf,_0x133ca8,_0x386017,_0x328b08,_0xf46e3e,_0x4426b2,_0x5d10a9,_0x15d812){return _0x186cdf(_0x133ca8,_0x386017,_0x328b08,_0xf46e3e,_0x4426b2,_0x5d10a9,_0x15d812);},'tHrFG':_0x48c030(0x2a7),'aBxKy':function(_0x5aa177,_0x883a10){return _0x5aa177!==_0x883a10;},'DXNXO':_0x48c030(0x1ad),'kFRLU':function(_0x4427a0,_0x2e8836){return _0x4427a0===_0x2e8836;},'SUWoZ':_0x48c030(0x18a),'ImEku':_0x48c030(0x282),'uvVtV':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20only\x20AWS\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ofJSs':function(_0x365814,_0x2de5e0,_0xb74ae7,_0xbed6b3,_0x56b6fd,_0x17b96c,_0x24abc8,_0x1154e5){return _0x365814(_0x2de5e0,_0xb74ae7,_0xbed6b3,_0x56b6fd,_0x17b96c,_0x24abc8,_0x1154e5);},'uMvHs':'non-aws-cluster','Zkrgy':_0x48c030(0x1cf),'nFIGj':function(_0x141772,_0x2ef205){return _0x141772===_0x2ef205;},'Xmgpx':function(_0x335a4c,_0x2a3e02){return _0x335a4c!==_0x2a3e02;},'ApCmZ':_0x48c030(0x1e0),'iCsGC':_0x48c030(0x1a9),'GBHXY':_0x48c030(0x1f9),'rjqAf':function(_0x368220,_0x5a0dd5){return _0x368220(_0x5a0dd5);},'nAqwN':function(_0x57fb70,_0x5e02ba){return _0x57fb70==_0x5e02ba;},'uPdDk':function(_0x3718ef,_0x260b1b){return _0x3718ef==_0x260b1b;},'XgtOV':_0x48c030(0x185),'CcJEY':_0x48c030(0x200),'NYHOR':_0x48c030(0x183),'AbYOM':function(_0x4d8484,_0x4acd5f,_0x19035c,_0x1cad76,_0x5c3407,_0x12f522,_0x20b33a,_0xab26f1){return _0x4d8484(_0x4acd5f,_0x19035c,_0x1cad76,_0x5c3407,_0x12f522,_0x20b33a,_0xab26f1);},'ipEWo':'create-grid-checks-null-response','ztHlW':function(_0x1872c4,_0x2a6bd8){return _0x1872c4===_0x2a6bd8;},'xZkfz':'ZTgUU','ZIbBq':_0x48c030(0x264),'PpCmt':_0x48c030(0x224),'tvNsK':function(_0x13fff7,_0x517697){return _0x13fff7!==_0x517697;},'AJQWz':function(_0xfec55f,_0x21f3e8){return _0xfec55f===_0x21f3e8;},'uguWx':_0x48c030(0x1bf),'ZGKMb':_0x48c030(0x233),'zMiPC':_0x48c030(0x1b7),'zAmAW':function(_0x44968c,_0x51abb1){return _0x44968c===_0x51abb1;},'CuWqf':_0x48c030(0x229),'BGVJK':_0x48c030(0x1b4),'fHkID':_0x48c030(0x231),'CWYzi':_0x48c030(0x1d9),'rvdDW':function(_0x545a20,_0x28b96c){return _0x545a20!==_0x28b96c;},'RzDra':_0x48c030(0x1e9),'bgvMA':function(_0x1ea7f2,_0x3334dc){return _0x1ea7f2===_0x3334dc;},'ejYSj':function(_0x8d0786,_0x288a5d){return _0x8d0786!==_0x288a5d;},'GUkis':'cnKPS','zTXEG':_0x48c030(0x23f),'PyJnU':function(_0x4382ad,_0x5525af,_0x45906f,_0x4209a4,_0x1eafaa,_0x32efc6,_0x5678e7,_0x27b628){return _0x4382ad(_0x5525af,_0x45906f,_0x4209a4,_0x1eafaa,_0x32efc6,_0x5678e7,_0x27b628);},'JbBze':'create-grid-checks-invalid-profile','mHmjq':'2|4|0|3|1|6|5','yVoob':_0x48c030(0x194),'zhMLE':function(_0x64052e,_0x10152a){return _0x64052e(_0x10152a);},'dkNqq':function(_0x270c4f){return _0x270c4f();},'kmRJu':_0x48c030(0x1da),'AeXyi':_0x48c030(0x204),'Dxeub':function(_0x36c64b,_0x41ffdf){return _0x36c64b===_0x41ffdf;},'fZjbZ':function(_0x55e28b){return _0x55e28b();},'gtlKm':function(_0x52b6c3,_0x30b92e,_0x1e6e10){return _0x52b6c3(_0x30b92e,_0x1e6e10);},'HfqOg':_0x48c030(0x1dc),'rSHDo':_0x48c030(0x20d),'vKnjz':function(_0x293045,_0x45fd8f){return _0x293045!=_0x45fd8f;},'zmAss':function(_0x2a247e,_0x1c3cbb){return _0x2a247e!=_0x1c3cbb;},'agFUY':function(_0x1cba0c,_0x3e0239){return _0x1cba0c!==_0x3e0239;},'nUPFB':_0x48c030(0x1a8),'POLPg':_0x48c030(0x1a3),'KRFqr':_0x48c030(0x290),'fyBkW':function(_0x199350,_0x16a264,_0xba8fa0,_0x474c7f,_0x462ff0,_0x40b721,_0x1c02b4,_0x4cc08d){return _0x199350(_0x16a264,_0xba8fa0,_0x474c7f,_0x462ff0,_0x40b721,_0x1c02b4,_0x4cc08d);},'YXSFW':_0x48c030(0x25a),'wprpb':function(_0x2f1d1b,_0x284f62,_0x28a2ad,_0x170016){return _0x2f1d1b(_0x284f62,_0x28a2ad,_0x170016);},'TATZf':_0x48c030(0x24d),'eRses':'Following\x20resources\x20are\x20created:','oIBAX':_0x48c030(0x205),'xXmLY':function(_0xd026cc,_0x89252a){return _0xd026cc(_0x89252a);},'ZzqIX':'Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','lpyIC':'Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','UMfGD':'Cluster\x20and\x20node\x20group\x20created\x20successfully','HRrlI':function(_0x5ca323,_0x46e190,_0x492945,_0x22f625,_0x2307ff){return _0x5ca323(_0x46e190,_0x492945,_0x22f625,_0x2307ff);},'uXdgU':function(_0x1d6cd0,_0x2b530a){return _0x1d6cd0===_0x2b530a;},'qXguI':_0x48c030(0x291),'eHgnL':function(_0x3bbf34,_0x384d1a){return _0x3bbf34!==_0x384d1a;},'EpxVe':_0x48c030(0x1ac),'syeRz':_0x48c030(0x2a5),'JnGcT':_0x48c030(0x1d0),'gwpay':function(_0x444b86,_0x264329,_0x182445,_0x57d7e8,_0xed0e6d,_0x491614,_0x5f5ba9,_0x4b0430){return _0x444b86(_0x264329,_0x182445,_0x57d7e8,_0xed0e6d,_0x491614,_0x5f5ba9,_0x4b0430);},'CDUDS':_0x48c030(0x1e2),'WmepY':function(_0x7f80e7,_0x24fe81){return _0x7f80e7(_0x24fe81);},'zIwCP':'kube-system','ZFtCA':function(_0x37e168,_0x5ef59a){return _0x37e168(_0x5ef59a);},'kJNYo':_0x48c030(0x1e4),'lMVgk':function(_0x3989e2,_0x237891){return _0x3989e2!==_0x237891;},'MWCmH':_0x48c030(0x2b8),'eGdOw':_0x48c030(0x187),'mxgcS':_0x48c030(0x24a),'EVRpa':_0x48c030(0x258),'JXKlh':_0x48c030(0x262),'ysfCI':'Spawning\x20Grid\x20on\x20the\x20Cluster','yuPov':'Grid\x20spawned\x20on\x20the\x20cluster','hcgzu':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','MMmbX':_0x48c030(0x244),'akBXI':function(_0x3b6bba,_0x529190,_0x42de18,_0x575304,_0x1cdb1b,_0x58d0ad){return _0x3b6bba(_0x529190,_0x42de18,_0x575304,_0x1cdb1b,_0x58d0ad);},'EngJy':_0x48c030(0x1b3)};let _0x2148b1=![],_0xb40dbd,_0x25f37d,_0x1f05d9,_0x40649a,_0x94c939,_0x5e058a,_0x3d67c6,_0x582d00,_0x2dfb49,_0x433ff2;try{global_registry['requestId']=_0x43d380[_0x48c030(0x25c)](uuidv4);if(!fs[_0x48c030(0x20c)](_0x43d380[_0x48c030(0x192)](getCredentialsPath))){if(_0x43d380[_0x48c030(0x2a3)](_0x43d380[_0x48c030(0x1df)],_0x43d380[_0x48c030(0x1df)])){const _0x285c76=_0x43d380['cXAnh'][_0x48c030(0x1d4)]('|');let _0x148843=0x0;while(!![]){switch(_0x285c76[_0x148843++]){case'0':_0x1166c7=_0x48c030(0x1d2)+_0x37e050+_0x48c030(0x24f)+_0x58e502+'\x27';continue;case'1':_0x39c362[_0x48c030(0x234)]=_0x49fb20;continue;case'2':const _0x6edcae={};_0x6edcae['type']=_0x437587[_0x48c030(0x254)],_0x6edcae[_0x48c030(0x257)]=_0x2d71a4,_0x432d14['sendEventToBackend'](_0xda36d,_0x6edcae);continue;case'3':_0x42699c[_0x48c030(0x1f8)]=_0x14a217;continue;case'4':_0x3594f4[_0x48c030(0x189)](_0x526661);continue;case'5':_0x53cc7e[_0x48c030(0x2bb)]=_0x5c731d;continue;case'6':const _0x41f923={};_0x41f923['type']=_0x4e06f0[_0x48c030(0x261)],_0x41f923['message']=_0x48c030(0x1f7),_0x42bc99[_0x48c030(0x1fc)](_0x2784e4,_0x41f923);continue;}break;}}else console[_0x48c030(0x2ac)](_0x43d380[_0x48c030(0x1a7)]),await _0x43d380[_0x48c030(0x195)](sendInstrumentationEvent,_0xb178fb,_0x43d380[_0x48c030(0x21a)],messageTypes[_0x48c030(0x23b)],_0x43d380[_0x48c030(0x19f)],null,_0xb178fb),process[_0x48c030(0x25b)](0x1);}await _0x43d380[_0x48c030(0x195)](sendInstrumentationEvent,_0xb178fb,_0x43d380[_0x48c030(0x21a)],messageTypes['ERROR'],null,null,_0xb178fb);const _0x529533=JSON[_0x48c030(0x29c)](fs[_0x48c030(0x277)](_0x43d380[_0x48c030(0x2ab)](getCredentialsPath)));global_registry[_0x48c030(0x251)]=_0x529533[_0x48c030(0x187)][_0x48c030(0x269)],global_registry[_0x48c030(0x28b)]=_0x529533['Browserstack'][_0x48c030(0x1b8)];const _0x54fdfe=WS_ENDPOINT[_0x48c030(0x1a4)](_0x43d380[_0x48c030(0x276)],_0x529533[_0x48c030(0x187)][_0x48c030(0x269)])[_0x48c030(0x1a4)](_0x43d380['LrWaK'],_0x529533['Browserstack'][_0x48c030(0x1b8)]),_0x103228={};_0x103228['WebSocket']=ws,_0x433ff2=new ReconnectingWebSocket(_0x54fdfe,[],_0x103228),logger[_0x48c030(0x1f3)](_0x43d380['hYRUv']),webSocketUtils['addListeners'](_0x433ff2,_0xb178fb[_0x48c030(0x27f)],_0xb178fb[_0x48c030(0x1b8)]);let _0x1320c5=DEFAULT_GRID_NAME;if(_0xb178fb[_0x48c030(0x2bb)]||_0xb178fb[_0x48c030(0x1f8)]||_0xb178fb['region']){if(_0x43d380['GsXPq'](_0x43d380['CvOFy'],_0x43d380[_0x48c030(0x1d3)])){const _0x2c17fa=_0x43d380[_0x48c030(0x28f)][_0x48c030(0x1d4)]('|');let _0xa25158=0x0;while(!![]){switch(_0x2c17fa[_0xa25158++]){case'0':const _0x25ad28={};_0x25ad28[_0x48c030(0x252)]=_0x3ad15a[_0x48c030(0x254)],_0x25ad28[_0x48c030(0x257)]=_0x511ea6,_0x319da3['sendEventToBackend'](_0x41cb18,_0x25ad28);continue;case'1':const _0x1854f5={};_0x1854f5[_0x48c030(0x252)]=_0x7168be[_0x48c030(0x254)],_0x1854f5[_0x48c030(0x257)]=_0x403cde,_0x4e7970[_0x48c030(0x1fc)](_0x26000f,_0x1854f5);continue;case'2':_0x458a54=_0x11293a[_0x48c030(0x1ea)][_0x48c030(0x2b5)]['loadBalancer'][_0x48c030(0x1de)][0x0][_0x48c030(0x228)];continue;case'3':_0x323506[_0x48c030(0x189)](_0x33b7ab);continue;case'4':_0x38fd8c['info'](_0x59858a);continue;case'5':_0x1ae980=_0x48c030(0x211)+_0x2d9854+_0x48c030(0x259);continue;case'6':const _0x54eb48={};_0x54eb48[_0x48c030(0x252)]=_0x3bae85[_0x48c030(0x1d8)],_0x54eb48[_0x48c030(0x257)]=_0x48c030(0x1ca)+_0x31b1a6,_0x2a74f2['sendEventToBackend'](_0x516f94,_0x54eb48);continue;case'7':_0x138b00=_0x48c030(0x287)+_0x3572ac+'\x20';continue;}break;}}else{!(_0xb178fb['clusterName']&&_0xb178fb[_0x48c030(0x1f8)]&&_0xb178fb[_0x48c030(0x186)])&&(_0x43d380[_0x48c030(0x19e)](_0x43d380[_0x48c030(0x243)],_0x43d380['AMiNd'])?_0x122cf0[_0x48c030(0x189)](_0x43d380[_0x48c030(0x230)]):(_0xb40dbd=_0x43d380[_0x48c030(0x1b2)],await _0x43d380[_0x48c030(0x2a1)](reportToGalactusAndSendToEDS,_0xb178fb,_0x433ff2,_0xb40dbd,messageTypes[_0x48c030(0x23b)],_0x43d380[_0x48c030(0x21a)],_0x43d380[_0x48c030(0x22a)],_0x43d380[_0x48c030(0x284)]),logger[_0x48c030(0x2ac)](_0xb40dbd),process[_0x48c030(0x25b)](0x1)));if(_0x43d380['aBxKy'](_0xb178fb['cloudProvider'][_0x48c030(0x266)](),_0x43d380['DXNXO'])){if(_0x43d380[_0x48c030(0x27a)](_0x43d380['SUWoZ'],_0x43d380[_0x48c030(0x239)])){const _0x43432f=_0x43d380[_0x48c030(0x2a8)][_0x48c030(0x1d4)]('|');let _0x529039=0x0;while(!![]){switch(_0x43432f[_0x529039++]){case'0':const _0x319185={};_0x319185[_0x48c030(0x252)]=_0x27c5c0['LOG'],_0x319185[_0x48c030(0x257)]=_0x1eeaf9,_0x5af12a[_0x48c030(0x1fc)](_0x5b0a96,_0x319185);continue;case'1':_0x4ba884[_0x48c030(0x221)]=_0x3f20ed[_0x41fd43][_0x48c030(0x240)];continue;case'2':_0x219362[_0x48c030(0x189)](_0x3d1bbe);continue;case'3':_0x1017ef=_0x43d380[_0x48c030(0x24c)];continue;case'4':_0x164e6e[_0x48c030(0x218)]=_0x283499[_0x1990a7][_0x48c030(0x270)];continue;}break;}}else _0xb40dbd=_0x43d380[_0x48c030(0x1cc)],await _0x43d380[_0x48c030(0x23c)](reportToGalactusAndSendToEDS,_0xb178fb,_0x433ff2,_0xb40dbd,messageTypes['ERROR'],_0x43d380[_0x48c030(0x21a)],_0x43d380['uMvHs'],_0x43d380['IsaQF']),logger[_0x48c030(0x2ac)](_0xb40dbd),process[_0x48c030(0x25b)](0x1);}_0x2148b1=!![],_0x1f05d9=_0xb178fb['clusterName'],_0x25f37d=_0xb178fb[_0x48c030(0x1f8)],_0x40649a=_0xb178fb[_0x48c030(0x186)];}}_0xb178fb[_0x48c030(0x28d)]&&(_0x43d380[_0x48c030(0x2a3)](_0x43d380[_0x48c030(0x268)],_0x43d380['Zkrgy'])?(_0x545b31[_0x48c030(0x1f3)](_0x43d380['Wjeos']),_0x43d380['fgUBv'](_0x55d6f1)):_0x1320c5=_0xb178fb['gridName']);global_registry[_0x48c030(0x28d)]=_0x1320c5;if(_0x43d380[_0x48c030(0x17d)](_0x2148b1,![])){if(_0x43d380['Xmgpx'](_0x43d380[_0x48c030(0x2b9)],_0x43d380['iCsGC'])){const _0x5a6d20=_0x48c030(0x1e1)+AG_API_URL+'/packages/cli/create-grid-checks?gridName='+_0x1320c5,_0x965fc1={};_0x965fc1[_0x48c030(0x269)]=_0x529533['Browserstack'][_0x48c030(0x269)],_0x965fc1['password']=_0x529533[_0x48c030(0x187)][_0x48c030(0x1b8)];const _0x3723a3={};_0x3723a3['url']=_0x5a6d20,_0x3723a3['method']=_0x43d380[_0x48c030(0x201)],_0x3723a3[_0x48c030(0x237)]=_0x965fc1;const _0x578bdd=_0x3723a3,_0x2a359a=await _0x43d380[_0x48c030(0x2b6)](promisifiedRequest,_0x578bdd);if(_0x43d380[_0x48c030(0x20a)](_0x2a359a,null)||_0x43d380[_0x48c030(0x2bc)](_0x2a359a,undefined)){if(_0x43d380[_0x48c030(0x19e)](_0x43d380[_0x48c030(0x26b)],_0x43d380[_0x48c030(0x1f4)]))throw _0x2e53cc;else _0xb40dbd=_0x43d380[_0x48c030(0x202)],await _0x43d380[_0x48c030(0x1fa)](reportToGalactusAndSendToEDS,_0xb178fb,_0x433ff2,_0xb40dbd,messageTypes[_0x48c030(0x23b)],_0x43d380[_0x48c030(0x21a)],_0x43d380[_0x48c030(0x1f2)],_0x43d380[_0x48c030(0x284)]),logger[_0x48c030(0x2ac)](_0xb40dbd),process[_0x48c030(0x25b)](0x1);}_0x43d380[_0x48c030(0x27a)](_0x2a359a['statusCode'],0x191)&&(_0x43d380[_0x48c030(0x1cb)](_0x43d380[_0x48c030(0x227)],_0x43d380[_0x48c030(0x227)])?(_0xb40dbd=_0x43d380[_0x48c030(0x1e6)],await _0x43d380['LYeXt'](reportToGalactusAndSendToEDS,_0xb178fb,_0x433ff2,_0xb40dbd,messageTypes['ERROR'],_0x43d380[_0x48c030(0x21a)],_0x43d380[_0x48c030(0x299)],_0x43d380['IsaQF']),logger['error'](_0xb40dbd),process[_0x48c030(0x25b)](0x1)):_0x26398a=_0x9ab69d[_0x48c030(0x28d)]);_0x43d380[_0x48c030(0x1c1)](_0x2a359a[_0x48c030(0x1aa)],0xc8)&&(_0x43d380[_0x48c030(0x25d)](_0x43d380['uguWx'],_0x43d380[_0x48c030(0x1f0)])?(_0xb40dbd=_0x48c030(0x275)+JSON['stringify'](_0x2a359a),await _0x43d380['AbYOM'](reportToGalactusAndSendToEDS,_0xb178fb,_0x433ff2,_0xb40dbd,messageTypes['ERROR'],_0x43d380[_0x48c030(0x21a)],_0x43d380[_0x48c030(0x17a)],_0x43d380[_0x48c030(0x284)]),logger['error'](_0xb40dbd),process[_0x48c030(0x25b)](0x1)):_0x49f585=_0x210157[_0x824aa5[_0x48c030(0x253)]]);const _0x4acfd3=JSON[_0x48c030(0x29c)](_0x2a359a[_0x48c030(0x1ea)]),_0x3611ef={};_0x3611ef['type']=WS_EVENTS[_0x48c030(0x261)],_0x3611ef[_0x48c030(0x257)]=_0x48c030(0x1f7),webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x3611ef);const _0x474666={};_0x474666[_0x48c030(0x252)]=WS_EVENTS[_0x48c030(0x254)],_0x474666[_0x48c030(0x257)]=_0x43d380[_0x48c030(0x20f)],webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x474666);_0x4acfd3[_0x48c030(0x286)]&&(_0x43d380['zAmAW'](_0x43d380[_0x48c030(0x1c6)],_0x43d380[_0x48c030(0x2b1)])?_0x4a861c['info'](_0x48c030(0x1f1)+_0x511d83['stringify'](_0x4779ad)+'\x20'):(_0xb40dbd=_0x43d380[_0x48c030(0x1ff)],await _0x43d380[_0x48c030(0x1fa)](reportToGalactusAndSendToEDS,_0xb178fb,_0x433ff2,_0xb40dbd,messageTypes[_0x48c030(0x23b)],_0x43d380['oTDgK'],_0x43d380[_0x48c030(0x2ae)],_0x43d380[_0x48c030(0x284)]),logger[_0x48c030(0x2ac)](_0xb40dbd),process['exit'](0x1)));const _0x5ed8ad=_0x4acfd3[_0x48c030(0x2b3)];let _0x20875e=_0x5ed8ad[_0x4acfd3['defaultGridProfile']];_0xb178fb[_0x48c030(0x253)]&&(_0x43d380['rvdDW'](_0x43d380[_0x48c030(0x1a2)],_0x43d380[_0x48c030(0x1a2)])?_0x40c681[_0x48c030(0x189)](_0x48c030(0x260)+_0x5859cf+'\x20'):_0x20875e=_0x5ed8ad[_0xb178fb[_0x48c030(0x253)]]);if(_0x43d380[_0x48c030(0x1ab)](_0x20875e,undefined)){if(_0x43d380[_0x48c030(0x27d)](_0x43d380[_0x48c030(0x1c7)],_0x43d380['GUkis'])){const _0xf0531e={};_0xf0531e[_0x48c030(0x1f5)]=_0x43d380[_0x48c030(0x1c4)],_0xf0531e[_0x48c030(0x252)]=_0x43d380['GuFPE'];const _0x1a7af0={};_0x1a7af0[_0x48c030(0x1f5)]=_0x43d380['qAcHO'],_0x1a7af0[_0x48c030(0x252)]=_0x43d380['GuFPE'];const _0x39d73e={};_0x39d73e['description']=_0x43d380[_0x48c030(0x1cd)],_0x39d73e['type']=_0x43d380['GuFPE'];const _0x4c3f98={};_0x4c3f98[_0x48c030(0x1f5)]=_0x43d380['FBDPH'],_0x4c3f98['type']=_0x43d380['GuFPE'];const _0x438ccf={};_0x438ccf[_0x48c030(0x1f5)]=_0x43d380[_0x48c030(0x28c)],_0x438ccf[_0x48c030(0x252)]=_0x43d380[_0x48c030(0x294)];const _0x1f1bfc={};return _0x1f1bfc[_0x48c030(0x217)]=_0xf0531e,_0x1f1bfc[_0x48c030(0x22f)]=_0x1a7af0,_0x1f1bfc[_0x48c030(0x1e7)]=_0x39d73e,_0x1f1bfc[_0x48c030(0x22d)]=_0x4c3f98,_0x1f1bfc['region']=_0x438ccf,_0x3c5576[_0x48c030(0x1e3)](_0x423b67[_0x48c030(0x1f6)])['epilogue'](_0x39cbc2)[_0x48c030(0x209)](_0x1f1bfc)['help'](_0x43d380[_0x48c030(0x2b4)])[_0x48c030(0x273)];}else _0xb40dbd=_0x43d380[_0x48c030(0x2af)],await _0x43d380['PyJnU'](reportToGalactusAndSendToEDS,_0xb178fb,_0x433ff2,_0xb40dbd,messageTypes[_0x48c030(0x23b)],_0x43d380['oTDgK'],_0x43d380[_0x48c030(0x1c0)],_0x43d380[_0x48c030(0x284)]),logger[_0x48c030(0x2ac)](_0xb40dbd),process[_0x48c030(0x25b)](0x1);}global_registry[_0x48c030(0x199)]=_0x20875e['id'],_0xb40dbd='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x1320c5+_0x48c030(0x256)+_0x20875e[_0x48c030(0x23d)]+_0x48c030(0x1c5),logger[_0x48c030(0x189)](_0xb40dbd);const _0x44da33={};_0x44da33['type']=WS_EVENTS[_0x48c030(0x254)],_0x44da33[_0x48c030(0x257)]=_0xb40dbd,webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x44da33),_0x25f37d=_0x20875e[_0x48c030(0x1f8)],_0x1f05d9=_0x20875e[_0x48c030(0x2bb)],_0x40649a=_0x20875e[_0x48c030(0x186)],_0x94c939=_0x20875e[_0x48c030(0x180)],_0x5e058a=_0x20875e['instanceType'],_0x3d67c6=_0x20875e[_0x48c030(0x215)],securityGroups=_0x20875e[_0x48c030(0x271)],subnets=_0x20875e[_0x48c030(0x1b1)],_0x582d00=_0x20875e['s3bucket'],_0x43d380['PyJnU'](updateGlobalRegistryWithConfig,_0x25f37d,_0x1f05d9,_0x40649a,_0x94c939,_0x5e058a,_0x582d00,_0x20875e);}else{const _0x3794c2={};_0x3794c2[_0x48c030(0x252)]=_0x4d4ac1[_0x48c030(0x254)],_0x3794c2[_0x48c030(0x257)]=_0x9cadea,_0x47bf5b['sendEventToBackend'](_0x1c4d39,_0x3794c2,_0x43d380[_0x48c030(0x284)],!![]);}}else{const _0x2d9151=_0x43d380[_0x48c030(0x2b7)][_0x48c030(0x1d4)]('|');let _0x3d0655=0x0;while(!![]){switch(_0x2d9151[_0x3d0655++]){case'0':logger[_0x48c030(0x189)](_0xb40dbd);continue;case'1':global_registry[_0x48c030(0x1f8)]=_0x25f37d;continue;case'2':const _0x3ccf10={};_0x3ccf10[_0x48c030(0x252)]=WS_EVENTS[_0x48c030(0x261)],_0x3ccf10[_0x48c030(0x257)]='CLI\x20run\x20started',webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x3ccf10);continue;case'3':const _0x3f85ad={};_0x3f85ad[_0x48c030(0x252)]=WS_EVENTS[_0x48c030(0x254)],_0x3f85ad[_0x48c030(0x257)]=_0xb40dbd,webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x3f85ad);continue;case'4':_0xb40dbd='Spawning\x20the\x20grid\x20'+_0x1320c5+_0x48c030(0x24f)+_0x1f05d9+'\x27';continue;case'5':global_registry[_0x48c030(0x2bb)]=_0x1f05d9;continue;case'6':global_registry['clusterRegion']=_0x40649a;continue;}break;}}const _0x73d13e=_0x529533[_0x48c030(0x1f8)]||{};if(_0x43d380[_0x48c030(0x19e)](_0x73d13e[_0x25f37d],undefined)){logger[_0x48c030(0x189)](_0x43d380['yVoob']);const [_0x872ded,_0x3b8a41]=await _0x43d380[_0x48c030(0x1e8)](inputCloudProviderKeys,_0x25f37d);_0x529533[_0x48c030(0x1f8)]={};const _0x2b48b7={};_0x2b48b7[_0x48c030(0x270)]=_0x872ded,_0x2b48b7[_0x48c030(0x240)]=_0x3b8a41,_0x529533[_0x48c030(0x1f8)][_0x25f37d]=_0x2b48b7,fs[_0x48c030(0x208)](_0x43d380[_0x48c030(0x196)](getCredentialsPath),JSON['stringify'](_0x529533)),logger[_0x48c030(0x1f3)](_0x43d380[_0x48c030(0x225)]),global_registry[_0x48c030(0x218)]=_0x872ded,global_registry['cloudProviderSecretKey']=_0x3b8a41;}else{const _0x20fbb7=_0x43d380[_0x48c030(0x1c8)][_0x48c030(0x1d4)]('|');let _0x45abc4=0x0;while(!![]){switch(_0x20fbb7[_0x45abc4++]){case'0':global_registry[_0x48c030(0x221)]=_0x73d13e[_0x25f37d][_0x48c030(0x240)];continue;case'1':_0xb40dbd=_0x43d380[_0x48c030(0x24c)];continue;case'2':const _0x5c0931={};_0x5c0931['type']=WS_EVENTS['LOG'],_0x5c0931[_0x48c030(0x257)]=_0xb40dbd,webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x5c0931);continue;case'3':global_registry[_0x48c030(0x218)]=_0x73d13e[_0x25f37d][_0x48c030(0x270)];continue;case'4':logger[_0x48c030(0x189)](_0xb40dbd);continue;}break;}}_0x43d380['Dxeub'](_0x25f37d,AWS)&&(logger['debug'](_0x43d380[_0x48c030(0x283)]),_0x43d380[_0x48c030(0x27c)](configureAWSIfNotConfigured));let _0x595e7e,_0x160694;if(_0x43d380['bgvMA'](_0x2148b1,![])){_0xb40dbd=_0x48c030(0x20e)+_0x40649a+').';const _0xafbda9={};_0xafbda9[_0x48c030(0x252)]=WS_EVENTS[_0x48c030(0x254)],_0xafbda9['message']=_0xb40dbd,webSocketUtils['sendEventToBackend'](_0x433ff2,_0xafbda9),logger['info'](_0xb40dbd);const _0x59099e=await _0x43d380['gtlKm'](isClusterPresent,_0x25f37d,_0x1f05d9);let _0x12ef8b;if(_0x59099e){const _0x1e5cfc={};_0x1e5cfc['type']=WS_EVENTS[_0x48c030(0x254)],_0x1e5cfc[_0x48c030(0x257)]='Cluster\x20'+_0x1f05d9+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x1e5cfc,_0x43d380[_0x48c030(0x2ad)]),logger[_0x48c030(0x1dc)](_0x48c030(0x219)+_0x1f05d9+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x595e7e=await _0x43d380[_0x48c030(0x2b6)](getClusterInfo,_0x1f05d9),_0x2148b1=!![];}else{const _0x28d79d={};_0x28d79d[_0x48c030(0x252)]=WS_EVENTS[_0x48c030(0x254)],_0x28d79d[_0x48c030(0x257)]=_0x43d380['rSHDo'],webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x28d79d),logger[_0x48c030(0x189)](_0x43d380[_0x48c030(0x242)]);const _0x17d9ea=_0x43d380[_0x48c030(0x20b)](_0x3d67c6,null)&&_0x43d380[_0x48c030(0x26a)](_0x3d67c6,undefined),_0x1ad0d3=_0x43d380[_0x48c030(0x214)](subnets,null)&&_0x43d380['agFUY'](subnets,undefined);let _0x4694d7;if(_0x17d9ea){_0x43d380[_0x48c030(0x25d)](_0x1ad0d3,![])&&(_0xb40dbd=_0x43d380[_0x48c030(0x1fd)],await _0x43d380[_0x48c030(0x2a1)](reportToGalactusAndSendToEDS,_0xb178fb,_0x433ff2,_0xb40dbd,messageTypes['ERROR'],_0x43d380[_0x48c030(0x21a)],_0x43d380['POLPg'],_0x43d380[_0x48c030(0x284)]),logger[_0x48c030(0x2ac)](_0xb40dbd),process[_0x48c030(0x25b)](0x1));const _0x1f590a=await _0x43d380[_0x48c030(0x1a6)](isVPCPresent,_0x3d67c6,_0x40649a);_0x43d380[_0x48c030(0x1ab)](_0x1f590a,![])?(_0xb40dbd=_0x43d380[_0x48c030(0x190)],await _0x43d380['fyBkW'](reportToGalactusAndSendToEDS,_0xb178fb,_0x433ff2,_0xb40dbd,messageTypes[_0x48c030(0x23b)],_0x43d380[_0x48c030(0x21a)],_0x43d380[_0x48c030(0x19d)],_0x43d380[_0x48c030(0x284)]),logger['error'](_0xb40dbd),process[_0x48c030(0x25b)](0x1)):logger[_0x48c030(0x189)](_0x48c030(0x260)+_0x3d67c6+'\x20');const _0x44d131=await _0x43d380['wprpb'](isSubnetsValid,subnets,_0x3d67c6,_0x40649a);_0x43d380['Dxeub'](_0x44d131[0x0],![])?(_0xb40dbd=_0x48c030(0x26f)+_0x44d131[0x1]+_0x48c030(0x1dd)+_0x3d67c6+_0x48c030(0x17b),await _0x43d380[_0x48c030(0x1fa)](reportToGalactusAndSendToEDS,_0xb178fb,_0x433ff2,_0xb40dbd,messageTypes[_0x48c030(0x23b)],_0x43d380['oTDgK'],_0x43d380[_0x48c030(0x2a9)],_0x43d380[_0x48c030(0x284)]),logger[_0x48c030(0x2ac)](_0xb40dbd),process[_0x48c030(0x25b)](0x1)):logger['info'](_0x48c030(0x1f1)+JSON[_0x48c030(0x267)](subnets)+'\x20');const _0x42a77c=await _0x43d380[_0x48c030(0x1d6)](createClusterStack,_0x1f05d9,_0x3d67c6,subnets);logger[_0x48c030(0x189)](_0x43d380[_0x48c030(0x197)]),logger['info'](_0x48c030(0x25e)+_0x42a77c['Stacks'][0x0][_0x48c030(0x203)][0x3][_0x48c030(0x1b9)]+'\x20'),logger[_0x48c030(0x189)](_0x48c030(0x226)+_0x42a77c[_0x48c030(0x288)][0x0][_0x48c030(0x203)][0x1]['OutputValue']+'\x20'),logger[_0x48c030(0x189)](_0x48c030(0x298)+_0x42a77c[_0x48c030(0x288)][0x0]['Outputs'][0x0]['OutputValue'][_0x48c030(0x1d4)](',')+'\x20'),logger[_0x48c030(0x189)](_0x48c030(0x246)+_0x42a77c[_0x48c030(0x288)][0x0][_0x48c030(0x203)][0x4]['OutputValue']+'\x20');}else{const _0x57ad5b={};_0x57ad5b[_0x48c030(0x252)]=WS_EVENTS[_0x48c030(0x254)],_0x57ad5b[_0x48c030(0x257)]=_0x43d380[_0x48c030(0x1a1)],webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x57ad5b),logger[_0x48c030(0x189)](_0x43d380[_0x48c030(0x1a1)]),_0x43d380[_0x48c030(0x236)](sendAWSInfoToHST,_0x433ff2);const _0x4f6be9={};_0x4f6be9['type']=WS_EVENTS[_0x48c030(0x254)],_0x4f6be9['message']=_0x43d380[_0x48c030(0x293)],webSocketUtils['sendEventToBackend'](_0x433ff2,_0x4f6be9),logger[_0x48c030(0x189)](_0x43d380[_0x48c030(0x22e)]);const _0x4cf477=await _0x43d380['xXmLY'](createClusterStack,_0x1f05d9),_0x2019a7=_0x4cf477[_0x48c030(0x288)][0x0]['Outputs'][0x0][_0x48c030(0x1b9)]['split'](',');_0x4694d7=_0x4cf477[_0x48c030(0x288)][0x0][_0x48c030(0x203)][0x1][_0x48c030(0x1b9)];const _0x4a17f8=_0x4cf477[_0x48c030(0x288)][0x0][_0x48c030(0x203)][0x2]['OutputValue'],_0x2d472f=_0x4cf477['Stacks'][0x0][_0x48c030(0x203)][0x3][_0x48c030(0x1b9)];_0x12ef8b=_0x4cf477[_0x48c030(0x288)][0x0]['Outputs'][0x4][_0x48c030(0x1b9)];const _0x5ed0e4=_0x4cf477[_0x48c030(0x288)][0x0][_0x48c030(0x203)][0x5][_0x48c030(0x1b9)]['split'](','),_0x342d66={};_0x342d66[_0x48c030(0x252)]=WS_EVENTS[_0x48c030(0x254)],_0x342d66[_0x48c030(0x257)]=_0x48c030(0x1ba)+_0x2d472f+_0x48c030(0x18b)+_0x4694d7+_0x48c030(0x29d)+_0x4a17f8+_0x48c030(0x21b)+_0x5ed0e4+_0x48c030(0x1b6)+_0x2019a7+',\x20NodeRole\x20=>\x20'+_0x12ef8b+'\x20',webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x342d66),logger[_0x48c030(0x189)](_0x43d380['eRses']),logger[_0x48c030(0x189)]('Cluster\x20=>\x20'+_0x2d472f+'\x20'),logger[_0x48c030(0x189)](_0x48c030(0x226)+_0x4694d7+'\x20'),logger[_0x48c030(0x189)]('VPC\x20=>\x20'+_0x4a17f8+'\x20'),logger[_0x48c030(0x189)]('Subnets\x20=>\x20'+_0x5ed0e4+'\x20'),logger[_0x48c030(0x189)](_0x48c030(0x298)+_0x2019a7+'\x20'),logger['info'](_0x48c030(0x246)+_0x12ef8b+'\x20');const _0x3780e1={};_0x3780e1[_0x48c030(0x252)]=WS_EVENTS[_0x48c030(0x254)],_0x3780e1[_0x48c030(0x257)]=_0x48c030(0x21f),webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x3780e1),logger['info'](_0x43d380[_0x48c030(0x19c)]);}}}_0x595e7e=await _0x43d380[_0x48c030(0x2b6)](getClusterInfo,_0x1f05d9);const [_0x321f6a,_0x381d56,_0x383b85,_0xba1843]=await _0x43d380[_0x48c030(0x1fb)](createK8sClient,_0x595e7e[_0x48c030(0x181)]['name'],_0x595e7e[_0x48c030(0x181)][_0x48c030(0x182)],_0x595e7e[_0x48c030(0x181)][_0x48c030(0x1a5)]['data'],global_registry['clusterRegion']);if(_0x43d380['uXdgU'](_0x2148b1,![])){const _0x4d16e6={};_0x4d16e6[_0x48c030(0x252)]=WS_EVENTS['LOG'],_0x4d16e6[_0x48c030(0x257)]=_0x43d380[_0x48c030(0x24e)],webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x4d16e6),logger['info'](_0x43d380['qXguI']);try{const _0x2a55fb=await _0x43d380[_0x48c030(0x236)](createAutoscalerStack,_0x1f05d9);_0x160694=_0x2a55fb[_0x48c030(0x288)][0x0][_0x48c030(0x203)][0x2][_0x48c030(0x1b9)];const _0xa25aff={};_0xa25aff['type']=WS_EVENTS[_0x48c030(0x254)],_0xa25aff['message']=_0x48c030(0x1be)+_0x160694+'\x20',webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0xa25aff),logger[_0x48c030(0x189)]('Autoscaler\x20Role\x20created.ARN:\x20'+_0x160694+'\x20');}catch(_0x4fdda9){if(_0x43d380[_0x48c030(0x27d)](_0x4fdda9['message'][_0x48c030(0x27e)](/already exists/),null)||_0x43d380[_0x48c030(0x1d7)](_0x4fdda9[_0x48c030(0x257)]['match'](/already exists/),undefined))_0xb40dbd='Skipping\x20Autoscaler\x20due\x20to:\x20'+_0x4fdda9[_0x48c030(0x257)],await _0x43d380['AbYOM'](reportToGalactusAndSendToEDS,_0xb178fb,_0x433ff2,_0xb40dbd,messageTypes[_0x48c030(0x29f)],_0x43d380[_0x48c030(0x21a)],_0x43d380[_0x48c030(0x21c)],_0x43d380[_0x48c030(0x29a)]),logger[_0x48c030(0x1dc)](_0xb40dbd);else{const _0x2d5c38=_0x43d380[_0x48c030(0x2aa)][_0x48c030(0x1d4)]('|');let _0x3b171e=0x0;while(!![]){switch(_0x2d5c38[_0x3b171e++]){case'0':await _0x43d380[_0x48c030(0x17f)](reportToGalactusAndSendToEDS,_0xb178fb,_0x433ff2,_0xb40dbd,messageTypes['ERROR'],_0x43d380[_0x48c030(0x21a)],_0x43d380[_0x48c030(0x216)],_0x43d380[_0x48c030(0x284)]);continue;case'1':_0xb40dbd=_0x48c030(0x285)+_0x4fdda9[_0x48c030(0x257)]+'.\x20Deleting\x20all\x20the\x20stacks';continue;case'2':await _0x43d380[_0x48c030(0x236)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'3':process[_0x48c030(0x25b)](0x1);continue;case'4':logger['error'](_0xb40dbd);continue;}break;}}}let _0x61cab3=await _0x43d380['gtlKm'](getNodeGroupInfo,_0x1f05d9,_0x1f05d9+_0x48c030(0x184));nodeRole=_0x61cab3[_0x48c030(0x265)][_0x48c030(0x1af)];const _0x64fe7f=await _0x43d380['WmepY'](createAuthConfigMap,nodeRole);await _0x321f6a['createNamespacedConfigMap'](_0x43d380[_0x48c030(0x21d)],_0x64fe7f)['catch'](_0x35d4d6=>{const _0x3e10a4=_0x48c030;logger[_0x3e10a4(0x189)](_0x43d380[_0x3e10a4(0x230)]);});}try{_0x2dfb49=_0x43d380[_0x48c030(0x248)](kebabCase,_0x1320c5),logger[_0x48c030(0x189)](_0x43d380[_0x48c030(0x2b2)]);const _0x4ed8e7={};_0x4ed8e7[_0x48c030(0x252)]=WS_EVENTS[_0x48c030(0x254)],_0x4ed8e7['message']=_0x43d380[_0x48c030(0x2b2)],webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x4ed8e7);if(_0x43d380[_0x48c030(0x292)](_0x2dfb49,_0x43d380[_0x48c030(0x26e)])){const _0x54835b={};_0x54835b[_0x48c030(0x278)]=_0x43d380[_0x48c030(0x2a4)],_0x54835b[_0x48c030(0x1ec)]=_0x43d380['eGdOw'];const _0x5271f9={};_0x5271f9[_0x48c030(0x23d)]=_0x2dfb49,_0x5271f9[_0x48c030(0x255)]=_0x54835b;const _0x17bbd7={};_0x17bbd7[_0x48c030(0x206)]=_0x5271f9;let _0x18eb31=_0x17bbd7;await _0x321f6a['createNamespace'](_0x18eb31),logger[_0x48c030(0x189)](_0x43d380[_0x48c030(0x274)]);}const _0x2f549c={};_0x2f549c['type']=WS_EVENTS[_0x48c030(0x254)],_0x2f549c[_0x48c030(0x257)]=_0x43d380[_0x48c030(0x1ef)],webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x2f549c);const _0x482ba7={};_0x482ba7[_0x48c030(0x252)]=WS_EVENTS[_0x48c030(0x254)],_0x482ba7[_0x48c030(0x257)]=_0x43d380[_0x48c030(0x1ed)],webSocketUtils['sendEventToBackend'](_0x433ff2,_0x482ba7),logger[_0x48c030(0x189)](_0x43d380[_0x48c030(0x241)]),await _0x43d380['PyJnU'](addGridComponents,_0x321f6a,_0x381d56,_0x383b85,_0xba1843,_0x2dfb49,_0x1f05d9,_0x160694),_0xb40dbd=_0x43d380[_0x48c030(0x1c9)],logger[_0x48c030(0x189)](_0xb40dbd);const _0x35e747={};_0x35e747[_0x48c030(0x252)]=WS_EVENTS[_0x48c030(0x254)],_0x35e747[_0x48c030(0x257)]=_0xb40dbd,webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x35e747),_0xb40dbd=_0x43d380[_0x48c030(0x29e)],logger[_0x48c030(0x189)](_0xb40dbd);const _0x3136b3={};_0x3136b3[_0x48c030(0x252)]=WS_EVENTS[_0x48c030(0x254)],_0x3136b3[_0x48c030(0x257)]=_0xb40dbd,webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x3136b3),await webSocketUtils[_0x48c030(0x191)](0x1388);let _0x3c8863;await _0x321f6a[_0x48c030(0x17c)](_0x43d380[_0x48c030(0x18d)],_0x2dfb49)['then'](_0x5c2c52=>{const _0x2965f9=_0x48c030,_0x31e7fc=_0x43d380['iNDjy'][_0x2965f9(0x1d4)]('|');let _0x161ce0=0x0;while(!![]){switch(_0x31e7fc[_0x161ce0++]){case'0':_0xb40dbd=_0x2965f9(0x211)+_0x3c8863+':4444/wd/hub';continue;case'1':const _0x337dd0={};_0x337dd0['type']=WS_EVENTS[_0x2965f9(0x254)],_0x337dd0['message']=_0xb40dbd,webSocketUtils[_0x2965f9(0x1fc)](_0x433ff2,_0x337dd0);continue;case'2':logger['info'](_0xb40dbd);continue;case'3':const _0x46cb22={};_0x46cb22[_0x2965f9(0x252)]=WS_EVENTS[_0x2965f9(0x1d8)],_0x46cb22['message']='CLI\x20run\x20finished:\x20'+_0x3c8863,webSocketUtils[_0x2965f9(0x1fc)](_0x433ff2,_0x46cb22);continue;case'4':logger[_0x2965f9(0x189)](_0xb40dbd);continue;case'5':_0xb40dbd=_0x2965f9(0x287)+_0x3c8863+'\x20';continue;case'6':_0x3c8863=_0x5c2c52[_0x2965f9(0x1ea)]['status'][_0x2965f9(0x23a)][_0x2965f9(0x1de)][0x0][_0x2965f9(0x228)];continue;case'7':const _0x229851={};_0x229851[_0x2965f9(0x252)]=WS_EVENTS['LOG'],_0x229851[_0x2965f9(0x257)]=_0xb40dbd,webSocketUtils['sendEventToBackend'](_0x433ff2,_0x229851);continue;}break;}}),await webSocketUtils[_0x48c030(0x191)](0x1f4);}catch(_0x41a6f9){if(_0x43d380[_0x48c030(0x1cb)](_0x2148b1,![]))try{logger[_0x48c030(0x189)](_0x48c030(0x296)),await _0x43d380[_0x48c030(0x1fe)](removeGridComponents,_0x321f6a,_0x381d56,_0x383b85,_0xba1843,_0x2dfb49),await _0x43d380[_0x48c030(0x212)](deleteClusterAndDependencies,global_registry[_0x48c030(0x234)]);}catch(_0x17cafd){throw _0x17cafd;}throw _0x41a6f9;}}catch(_0x2e7848){const _0x2335f1='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x2e7848+'\x20\x0a'+JSON['stringify'](_0x2e7848)+'\x20';if(_0x433ff2){const _0x332e35={};_0x332e35[_0x48c030(0x252)]=WS_EVENTS['LOG'],_0x332e35[_0x48c030(0x257)]=_0x2335f1,webSocketUtils[_0x48c030(0x1fc)](_0x433ff2,_0x332e35,_0x43d380[_0x48c030(0x284)],!![]);}const _0x35a901={};_0x35a901[_0x48c030(0x2ac)]=_0x2335f1,await _0x43d380['Dyokx'](sendInstrumentationEvent,_0xb178fb,_0x43d380[_0x48c030(0x21a)],messageTypes['ERROR'],_0x43d380[_0x48c030(0x18f)],_0x35a901,_0xb178fb),logger[_0x48c030(0x2ac)](_0x2335f1);}process[_0x48c030(0x25b)](0x0);};
1
+ const a4_0x570ba1=a4_0x343f;(function(_0x276adf,_0x3fdb05){const _0x2201c0=a4_0x343f,_0x47760f=_0x276adf();while(!![]){try{const _0x333aa7=-parseInt(_0x2201c0(0x198))/0x1*(parseInt(_0x2201c0(0x18b))/0x2)+parseInt(_0x2201c0(0x10e))/0x3*(-parseInt(_0x2201c0(0x1da))/0x4)+-parseInt(_0x2201c0(0xe2))/0x5+-parseInt(_0x2201c0(0x1ef))/0x6+-parseInt(_0x2201c0(0x108))/0x7+-parseInt(_0x2201c0(0x138))/0x8*(parseInt(_0x2201c0(0x148))/0x9)+parseInt(_0x2201c0(0xcf))/0xa*(parseInt(_0x2201c0(0x1c7))/0xb);if(_0x333aa7===_0x3fdb05)break;else _0x47760f['push'](_0x47760f['shift']());}catch(_0xc02b44){_0x47760f['push'](_0x47760f['shift']());}}}(a4_0x214b,0x5bd5e));function a4_0x343f(_0x5cfff6,_0x4da4bb){const _0x214b2d=a4_0x214b();return a4_0x343f=function(_0x343f4d,_0x41adef){_0x343f4d=_0x343f4d-0xc0;let _0x135ee9=_0x214b2d[_0x343f4d];return _0x135ee9;},a4_0x343f(_0x5cfff6,_0x4da4bb);}const fs=require('fs'),ws=require('ws'),util=require(a4_0x570ba1(0xc6)),ReconnectingWebSocket=require(a4_0x570ba1(0x1be)),request=require(a4_0x570ba1(0xd6)),{v4:uuidv4}=require(a4_0x570ba1(0x1c1)),webSocketUtils=require(a4_0x570ba1(0x1ec)),{logger}=require(a4_0x570ba1(0x1b8)),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{sendAWSInfoToHST}=require('../../utils/hstUtils'),{isClusterPresent,getClusterInfo,configureAWSIfNotConfigured,createAuthConfigMap,getNodeGroupInfo,isVPCPresent,isSubnetsValid}=require('../../utils/AWSUtils'),{addGridComponents,deleteClusterAndDependencies,removeGridComponents}=require(a4_0x570ba1(0x106)),{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_0x570ba1(0xff)),{createClusterStack}=require(a4_0x570ba1(0x17c)),{createAutoscalerStack}=require(a4_0x570ba1(0x196)),{createK8sClient}=require(a4_0x570ba1(0x135)),{sendInstrumentationEvent}=require(a4_0x570ba1(0xeb)),{deleteClusterStack}=require(a4_0x570ba1(0x1a8)),promisifiedRequest=util[a4_0x570ba1(0x1cd)](request);function a4_0x214b(){const _0xf3cb1e=['ARuZU','bmUEm','iDxRK','info','create-grid-checks-auth-failed','PmsJR','wMWOs','type','IhXYo','builder','WJKsz','grid-profile','UnmTw','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','createNamespace','Stacks','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','sendEventToBackend','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','desc','nodeRole','DeBId','Spawning\x20grid\x20on\x20to\x20the\x20cluster','WNXSi','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://','YeOGY','kqquv','../../utils/createk8sClient','kQQXs','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','16mXhpUl','wgheg','argv','CLI_RUN_STARTED','Creating\x20Autoscaler\x20Role','pre-spawned-invalid-vpc','s3bucket','debug','statusCode','XUbIO','NUThY','loadBalancer','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','mBtpP','aUIFH','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','3137058vgKrnj','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','data','tPjHS','\x20in\x20existing\x20cluster\x20\x27','asCJY','qANki','YGSMb','AEUll','createdBy','warning','Found\x20VPC:\x20','vhKiW','<UsernamePlaceholder>','UsNsW','options','VPC\x20=>\x20','oeLTX','Cluster\x20=>\x20','PmSqF','WWzop','YpKPN','nmfOk','SecurityGroups\x20=>\x20','zGlOR','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','clusterRegion','secret',',\x20ClusterRole\x20=>\x20','TMnTZ','user','gxRvy','CLI_RUN_FINISHED','https://','RuDss','bstackAccesskey','Grid\x20can\x20be\x20accessed\x20at:\x20','ShGGM','WfVms','kMdad','string','pkOTv','IAJZS','LcrEB','instanceType','status','help','clusterName','-NodeGroup','sYfPZ','ZodvI','Mjkne','../../utils/createClusterStack','aOYfT','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','xcTZu','4|3|1|0|2','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','match','non-aws-cluster','Browserstack','gridProfiles','Configuring\x20AWS','Namespace\x20created','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','CLI\x20run\x20finished:\x20','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','13934ueqzEa','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','WfTLx','handler','annotations','UCdAY','IlXsx','aCspA','KOMEC','region','then','../../utils/createAutoscalerStack','JAKTL','21uFWsba','gridName','AVxsH','hchwl','wYxns','TTBPV','RYHJG','fYykT','meynl','reportToGalactusAndSendToEDS','erXCC','Xvzzg','XdpIC','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','default','qfsAM','../../utils/deleteStack','2|3|4|0|1','KFTjO','alreadyPresent','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','wTFyq','epilogue','bstackUsername','\x20using\x20\x27','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','FAvmj','OutputValue','Cluster\x20and\x20node\x20group\x20created\x20successfully','VmgVa','Adding\x20Websocket\x20listeners','create-grid-checks-invalid-profile','../../config/logger','jqWlb','warn','NodeRole\x20=>\x20','nLTfi','create-grid-checks-grid-already-exists','reconnecting-websocket','Deleting\x20the\x20CloudFormation\x20Stacks','stringify','uuid','create-grid-checks-non-200','requestId','ERROR','/packages/cli/create-grid-checks?gridName=','Gbasv','77aFXJKx','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20only\x20AWS\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','kvmls','nMrzS','ELcLo','FZXJG','promisify','certificateAuthority','existsSync','ingress','bwxlW','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','pre-spawned-invalid-subnets','parse','managedBy','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','eRkDx',':4444/wd/hub','error','4hVOwrZ','aRjSm','BQuFc','cloud-provider','subnets','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','YUiOZ',',\x20Subnets\x20=>\x20','vQAHS','grid-name','xeEgZ','<PasswordPlaceholder>','JJOFW','IznZf','KIvtO','ClusterRole\x20=>\x20','vpc','CjjDP','../../utils/webSocketUtils','Outputs','gridProfile','4251606fIyNQX','OpJhf','GET','ilDXK','FzzxK','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','Grid\x20spawned\x20on\x20the\x20cluster','WebSocket','metadata','TytgT','dLinr','.\x20Deleting\x20all\x20the\x20stacks','PZLfs','aydmn','pQkeM','biqnD','cluster','gqddA','util','oOEhp','hostname','rINsh','kube-system','rbOGC','securityGroups','tCYAs','7|2|3|0|6|5|4|1','4354830cSdmgP','Zvnof','usage','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Spawning\x20the\x20grid\x20','QNBfJ','lXfef','request','gkadd','password',',\x20SecurityGroups\x20=>\x20','accessKey','Cluster\x20','SMpeD','name','addListeners','uLSFM','QAWCy','Found\x20Subnets:\x20','2182610zPyLUz','gridProfileId','method','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','cWAEw','cloudProvider','fYNNM','CLI\x20run\x20started','cloudProviderAccessKey','../../utils/instrumentationUtils','XqBIO','WARNING','TsBMK','LGKoj','vWzyC','Authmap\x20already\x20exists.\x20Not\x20updating','BkNnB','Evctj','koBhU','body','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','aMZsh','message','cluster-name','qdplX','IVWCO','Autoscaler\x20Role\x20created.ARN:\x20','createNamespacedConfigMap','Subnets\x20=>\x20','../../config/constants','username','create','lSndm','4|2|0|3|1','endpoint','hSwqK','../../utils/gridComponents','WUIVE','569730hEPuNt','ZLZll','prespawned-cluster-args-not-passed','LOG','toLowerCase','\x20are\x20not\x20present\x20in\x20VPC:\x20','1806837PXcQnc','exit','replace','catch','description','grid','PpdLh','megva','cloudProviderSecretKey','Subnets:\x20','split'];a4_0x214b=function(){return _0xf3cb1e;};return a4_0x214b();}exports['command']=a4_0x570ba1(0x113),exports[a4_0x570ba1(0x12d)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a4_0x570ba1(0x122)]=function(_0x41b5b5){const _0x27ca7d=a4_0x570ba1,_0x51e1ad={};_0x51e1ad[_0x27ca7d(0x11f)]=_0x27ca7d(0x188),_0x51e1ad[_0x27ca7d(0x11a)]=_0x27ca7d(0x170),_0x51e1ad[_0x27ca7d(0x1cb)]=_0x27ca7d(0x17e),_0x51e1ad[_0x27ca7d(0x197)]=_0x27ca7d(0x1d2),_0x51e1ad[_0x27ca7d(0x191)]=_0x27ca7d(0x18c),_0x51e1ad[_0x27ca7d(0x1cc)]=_0x27ca7d(0x1d6),_0x51e1ad[_0x27ca7d(0x156)]=_0x27ca7d(0x176);const _0x19a38d=_0x51e1ad,_0x355762={};_0x355762[_0x27ca7d(0x112)]=_0x19a38d[_0x27ca7d(0x11f)],_0x355762['type']=_0x19a38d[_0x27ca7d(0x11a)];const _0x1a671f={};_0x1a671f['description']=_0x19a38d[_0x27ca7d(0x1cb)],_0x1a671f[_0x27ca7d(0x120)]=_0x19a38d['bmUEm'];const _0x26caa8={};_0x26caa8[_0x27ca7d(0x112)]=_0x19a38d[_0x27ca7d(0x197)],_0x26caa8['type']=_0x19a38d[_0x27ca7d(0x11a)];const _0x38f09e={};_0x38f09e['description']=_0x19a38d[_0x27ca7d(0x191)],_0x38f09e[_0x27ca7d(0x120)]=_0x19a38d[_0x27ca7d(0x11a)];const _0x478776={};_0x478776['description']=_0x19a38d[_0x27ca7d(0x1cc)],_0x478776['type']=_0x19a38d[_0x27ca7d(0x11a)];const _0x103ca6={};return _0x103ca6[_0x27ca7d(0x1e3)]=_0x355762,_0x103ca6['grid-profile']=_0x1a671f,_0x103ca6[_0x27ca7d(0xf9)]=_0x26caa8,_0x103ca6[_0x27ca7d(0x1dd)]=_0x38f09e,_0x103ca6[_0x27ca7d(0x194)]=_0x478776,_0x41b5b5[_0x27ca7d(0xd1)](HELP_HEADER_MESSAGE[_0x27ca7d(0x101)])[_0x27ca7d(0x1ae)](HELP_FOOTER_MESSAGE)[_0x27ca7d(0x157)](_0x103ca6)['help'](_0x19a38d[_0x27ca7d(0x156)])['argv'];},exports[a4_0x570ba1(0x18e)]=async function(_0x1c764e){const _0x2faca7=a4_0x570ba1,_0x531648={'lcLgl':_0x2faca7(0x188),'IznZf':_0x2faca7(0x170),'fYNNM':_0x2faca7(0x17e),'uLSFM':_0x2faca7(0x1d2),'XZbvt':_0x2faca7(0x18c),'eAcwL':_0x2faca7(0x1d6),'oeLTX':'help','FAvmj':'7|6|5|3|4|0|2|1','wYxns':_0x2faca7(0xf1),'IAJZS':_0x2faca7(0x186),'SMpeD':function(_0x27735a){return _0x27735a();},'twEIB':_0x2faca7(0x1a9),'YUiOZ':_0x2faca7(0x161),'KOMEC':'3|1|2|5|6|4|0','koBhU':_0x2faca7(0x1d9),'XqBIO':_0x2faca7(0xce),'hchwl':function(_0x5aff28,_0x457758){return _0x5aff28===_0x457758;},'kvmls':_0x2faca7(0x167),'qANki':_0x2faca7(0x1eb),'fYykT':_0x2faca7(0x1b1),'sYfPZ':function(_0x18c2bd,_0x1e1892,_0x3f85ad,_0x36348b,_0x2554a2,_0x417979,_0x1d899d){return _0x18c2bd(_0x1e1892,_0x3f85ad,_0x36348b,_0x2554a2,_0x417979,_0x1d899d);},'cWAEw':'create-grid-called','WWzop':'init-not-called','dLinr':_0x2faca7(0x155),'iDxRK':_0x2faca7(0x1e5),'PmsJR':_0x2faca7(0x1b6),'hSwqK':function(_0x309ad1,_0x1730d4){return _0x309ad1===_0x1730d4;},'kQQXs':'yZHtJ','ShGGM':_0x2faca7(0x1e2),'Zvnof':function(_0x4754e6,_0x870bce){return _0x4754e6===_0x870bce;},'ZiapB':_0x2faca7(0x17d),'wTFyq':_0x2faca7(0x1a7),'ZodvI':_0x2faca7(0x1f4),'qdplX':function(_0x1a87cd,_0xe9754b,_0x4c95ed,_0x32d187,_0x509bee,_0x56e1f9,_0x6081bd,_0x129511){return _0x1a87cd(_0xe9754b,_0x4c95ed,_0x32d187,_0x509bee,_0x56e1f9,_0x6081bd,_0x129511);},'erXCC':_0x2faca7(0x10a),'oOEhp':function(_0x428964,_0x61be2c){return _0x428964!==_0x61be2c;},'WfTLx':'aws','HHQuc':_0x2faca7(0x1f2),'VmgVa':'YafQe','jqWlb':_0x2faca7(0x1c8),'IVWCO':_0x2faca7(0x183),'OpJhf':function(_0x448b21,_0x144c77){return _0x448b21===_0x144c77;},'rbOGC':_0x2faca7(0xf2),'Gbasv':_0x2faca7(0x15d),'kqquv':function(_0x17f3ce,_0x5900e8){return _0x17f3ce===_0x5900e8;},'YGSMb':function(_0x733b42,_0x367419){return _0x733b42===_0x367419;},'PmSqF':'ZlVBw','IhXYo':_0x2faca7(0x1f1),'TytgT':function(_0x44b7db,_0x571604){return _0x44b7db(_0x571604);},'dGSTw':function(_0xf16a6a,_0x149667){return _0xf16a6a==_0x149667;},'aRjSm':function(_0x41f03e,_0x5ed8a7){return _0x41f03e!==_0x5ed8a7;},'WUIVE':_0x2faca7(0xc5),'aMZsh':_0x2faca7(0x137),'Xvzzg':function(_0x36f360,_0x127347,_0x36a66f,_0x46092d,_0x4fb8dc,_0x4ce2a8,_0x5db4db,_0x253917){return _0x36f360(_0x127347,_0x36a66f,_0x46092d,_0x4fb8dc,_0x4ce2a8,_0x5db4db,_0x253917);},'aydmn':'create-grid-checks-null-response','Mjkne':_0x2faca7(0x115),'LcrEB':_0x2faca7(0x1ac),'aCspA':function(_0x45d09f,_0x1fd58a,_0x2602ef,_0x219d7b,_0x43f7fb,_0x921dd9,_0x1c4d6c,_0x35f973){return _0x45d09f(_0x1fd58a,_0x2602ef,_0x219d7b,_0x43f7fb,_0x921dd9,_0x1c4d6c,_0x35f973);},'ncCPK':_0x2faca7(0x11d),'XdpIC':_0x2faca7(0x15e),'muhht':_0x2faca7(0xd7),'PZLfs':_0x2faca7(0x1c2),'rINsh':'Grid\x20profile\x20fetched\x20from\x20backend','bnSRm':_0x2faca7(0xc2),'xeEgZ':'qGjKY','rQyQG':'An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use--grid\x20-\x20name\x20option\x20to\x20provide\x20another\x20grid\x20name','TTBPV':_0x2faca7(0x1bd),'YdZYm':'wBdbp','wgheg':_0x2faca7(0x1a0),'RYHJG':_0x2faca7(0xd4),'XUbIO':_0x2faca7(0x1d7),'WNXSi':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','XnOkl':_0x2faca7(0x1b7),'BzQcU':'3|0|1|4|2|5|6','WJKsz':_0x2faca7(0x126),'TsBMK':function(_0x41baaa,_0x1b6d4d){return _0x41baaa(_0x1b6d4d);},'TMnTZ':function(_0x1b5e90){return _0x1b5e90();},'bwxlW':_0x2faca7(0xe5),'KIvtO':_0x2faca7(0x103),'ARuZU':function(_0x15bace,_0x6ce8e2,_0x3ef234){return _0x15bace(_0x6ce8e2,_0x3ef234);},'vWzyC':_0x2faca7(0x1ba),'KFTjO':function(_0xee3caf,_0x55749b){return _0xee3caf(_0x55749b);},'lSndm':_0x2faca7(0x18a),'nLTfi':function(_0x5a4ac1,_0x333ea2){return _0x5a4ac1!=_0x333ea2;},'AVxsH':function(_0x16b78b,_0x32781a){return _0x16b78b!==_0x32781a;},'UnmTw':function(_0x3e7dee,_0x4fc0bb){return _0x3e7dee!=_0x4fc0bb;},'YeOGY':_0x2faca7(0x129),'HjWDT':'pre-spawned-subnets-not-selected','DeBId':function(_0x1a0d88,_0x23c4f7,_0x21a858){return _0x1a0d88(_0x23c4f7,_0x21a858);},'QAWCy':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','vhKiW':function(_0x11dc6b,_0x5065c5,_0xa25625,_0xe60a8f,_0x2d3889,_0x4aa53b,_0x1d125c,_0x277813){return _0x11dc6b(_0x5065c5,_0xa25625,_0xe60a8f,_0x2d3889,_0x4aa53b,_0x1d125c,_0x277813);},'aUcZX':_0x2faca7(0x13d),'mBtpP':function(_0x22a1a6,_0x357d8a,_0x10462f,_0x318950){return _0x22a1a6(_0x357d8a,_0x10462f,_0x318950);},'RuDss':function(_0x661060,_0x4d227f){return _0x661060===_0x4d227f;},'BQuFc':_0x2faca7(0x1d3),'rMCIw':function(_0x76e8c2,_0xdbf47e,_0x4ef550,_0x433aa1){return _0x76e8c2(_0xdbf47e,_0x4ef550,_0x433aa1);},'MDsBt':'Following\x20resources\x20are\x20created:','UCdAY':'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.','PpdLh':_0x2faca7(0xf6),'Evctj':_0x2faca7(0x149),'WfVms':_0x2faca7(0x1b4),'ZLZll':function(_0x52f948,_0x334c5a){return _0x52f948(_0x334c5a);},'LGKoj':function(_0x25e207,_0x124312,_0x5b6a3b,_0x4d5b9b,_0x262d61){return _0x25e207(_0x124312,_0x5b6a3b,_0x4d5b9b,_0x262d61);},'pkOTv':function(_0x54dafc,_0x475ace){return _0x54dafc===_0x475ace;},'FzzxK':_0x2faca7(0x13c),'rfJNs':_0x2faca7(0x1a1),'aUIFH':_0x2faca7(0x152),'biqnD':_0x2faca7(0x180),'AEUll':function(_0x32a823,_0x463d97){return _0x32a823(_0x463d97);},'NUThY':'autoscaler-creation-failed','tCYAs':function(_0x6624ca,_0x43237b,_0x293877){return _0x6624ca(_0x43237b,_0x293877);},'asCJY':_0x2faca7(0xca),'xcTZu':'Creating\x20namespace','zGlOR':_0x2faca7(0x1a6),'tPjHS':'Browserstack','kMdad':'Namespace\x20Created','RMLbt':_0x2faca7(0x187),'lXfef':_0x2faca7(0x130),'JyvHc':'Spawning\x20Grid\x20on\x20the\x20Cluster','JJOFW':_0x2faca7(0x1f5),'nMrzS':_0x2faca7(0x12b),'yHrwy':'browserstack-turboscale-grid-service','fMywL':function(_0x35a315,_0x8dfe35,_0x57d7fa,_0x2bddc6,_0x25b7c0,_0x376713){return _0x35a315(_0x8dfe35,_0x57d7fa,_0x2bddc6,_0x25b7c0,_0x376713);},'qAama':'grid-spawning-failed'};let _0x2d994c=![],_0x48f3e1,_0xd093c6,_0x46ca4a,_0x2e9b01,_0xc0de1c,_0x38c16c,_0x89ce34,_0x31a620,_0x14f434,_0x5c025a;try{global_registry[_0x2faca7(0x1c3)]=_0x531648['SMpeD'](uuidv4);if(!fs[_0x2faca7(0x1cf)](_0x531648[_0x2faca7(0xdc)](getCredentialsPath))){if(_0x531648[_0x2faca7(0x19b)](_0x531648[_0x2faca7(0x1c9)],_0x531648[_0x2faca7(0x14e)])){const _0x57dca1={};_0x57dca1[_0x2faca7(0x112)]=_0x531648['lcLgl'],_0x57dca1['type']=_0x531648[_0x2faca7(0x1e7)];const _0xc08f8={};_0xc08f8[_0x2faca7(0x112)]=_0x531648[_0x2faca7(0xe8)],_0xc08f8[_0x2faca7(0x120)]=_0x531648[_0x2faca7(0x1e7)];const _0x444091={};_0x444091[_0x2faca7(0x112)]=_0x531648[_0x2faca7(0xdf)],_0x444091[_0x2faca7(0x120)]=_0x531648['IznZf'];const _0x50091c={};_0x50091c[_0x2faca7(0x112)]=_0x531648['XZbvt'],_0x50091c[_0x2faca7(0x120)]=_0x531648[_0x2faca7(0x1e7)];const _0x2dce04={};_0x2dce04[_0x2faca7(0x112)]=_0x531648['eAcwL'],_0x2dce04[_0x2faca7(0x120)]=_0x531648['IznZf'];const _0x5cc39f={};return _0x5cc39f[_0x2faca7(0x1e3)]=_0x57dca1,_0x5cc39f[_0x2faca7(0x124)]=_0xc08f8,_0x5cc39f['cluster-name']=_0x444091,_0x5cc39f[_0x2faca7(0x1dd)]=_0x50091c,_0x5cc39f[_0x2faca7(0x194)]=_0x2dce04,_0x704af['usage'](_0x42b40a[_0x2faca7(0x101)])['epilogue'](_0x14e369)['options'](_0x5cc39f)[_0x2faca7(0x176)](_0x531648[_0x2faca7(0x159)])[_0x2faca7(0x13a)];}else console[_0x2faca7(0x1d9)](_0x531648[_0x2faca7(0x19f)]),await _0x531648[_0x2faca7(0x179)](sendInstrumentationEvent,_0x1c764e,_0x531648['cWAEw'],messageTypes[_0x2faca7(0x1c4)],_0x531648[_0x2faca7(0x15c)],null,_0x1c764e),process['exit'](0x1);}await _0x531648['sYfPZ'](sendInstrumentationEvent,_0x1c764e,_0x531648[_0x2faca7(0xe6)],messageTypes[_0x2faca7(0x1c4)],null,null,_0x1c764e);const _0x30c744=JSON['parse'](fs['readFileSync'](_0x531648[_0x2faca7(0xdc)](getCredentialsPath)));global_registry[_0x2faca7(0x1af)]=_0x30c744[_0x2faca7(0x184)]['username'],global_registry[_0x2faca7(0x16b)]=_0x30c744[_0x2faca7(0x184)][_0x2faca7(0xd8)];const _0x9f18c1=WS_ENDPOINT[_0x2faca7(0x110)](_0x531648[_0x2faca7(0x1f9)],_0x30c744['Browserstack'][_0x2faca7(0x100)])[_0x2faca7(0x110)](_0x531648[_0x2faca7(0x11b)],_0x30c744[_0x2faca7(0x184)][_0x2faca7(0xd8)]),_0x45df65={};_0x45df65[_0x2faca7(0x1f6)]=ws,_0x5c025a=new ReconnectingWebSocket(_0x9f18c1,[],_0x45df65),logger[_0x2faca7(0x13f)](_0x531648[_0x2faca7(0x11e)]),webSocketUtils[_0x2faca7(0xde)](_0x5c025a,_0x1c764e[_0x2faca7(0x166)],_0x1c764e['password']);let _0x32e7ca=DEFAULT_GRID_NAME;if(_0x1c764e[_0x2faca7(0x177)]||_0x1c764e[_0x2faca7(0xe7)]||_0x1c764e[_0x2faca7(0x194)]){if(_0x531648[_0x2faca7(0x105)](_0x531648[_0x2faca7(0x136)],_0x531648[_0x2faca7(0x16d)])){const _0x5fcb2=_0x531648[_0x2faca7(0x1b2)][_0x2faca7(0x118)]('|');let _0x409c1d=0x0;while(!![]){switch(_0x5fcb2[_0x409c1d++]){case'0':_0x54fe7d[_0x2faca7(0x11c)](_0x7c811a);continue;case'1':const _0x487873={};_0x487873[_0x2faca7(0x120)]=_0x56dce0[_0x2faca7(0x168)],_0x487873[_0x2faca7(0xf8)]=_0x2faca7(0x189)+_0x2fac34,_0x44ba8c[_0x2faca7(0x12a)](_0x5824c0,_0x487873);continue;case'2':const _0x714e15={};_0x714e15[_0x2faca7(0x120)]=_0x1f8a49['LOG'],_0x714e15['message']=_0x3f5300,_0x1dce1a[_0x2faca7(0x12a)](_0x5292a6,_0x714e15);continue;case'3':const _0x35befd={};_0x35befd[_0x2faca7(0x120)]=_0x18f437[_0x2faca7(0x10b)],_0x35befd['message']=_0x10170d,_0x71a466[_0x2faca7(0x12a)](_0x677650,_0x35befd);continue;case'4':_0x537444='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://'+_0x44f364+_0x2faca7(0x1d8);continue;case'5':_0x4b96c1[_0x2faca7(0x11c)](_0x47d4ec);continue;case'6':_0xd4f0a5=_0x2faca7(0x16c)+_0x4c9dd9+'\x20';continue;case'7':_0x57f65b=_0x3df9b6[_0x2faca7(0xf5)]['status'][_0x2faca7(0x143)][_0x2faca7(0x1d0)][0x0][_0x2faca7(0xc8)];continue;}break;}}else!(_0x1c764e[_0x2faca7(0x177)]&&_0x1c764e[_0x2faca7(0xe7)]&&_0x1c764e[_0x2faca7(0x194)])&&(_0x531648[_0x2faca7(0xd0)](_0x531648['ZiapB'],_0x531648[_0x2faca7(0x1ad)])?_0x5afbc8[_0x2faca7(0x11c)](_0x531648[_0x2faca7(0x19c)]):(_0x48f3e1=_0x531648[_0x2faca7(0x17a)],await _0x531648['qdplX'](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0x1c4)],_0x531648[_0x2faca7(0xe6)],_0x531648[_0x2faca7(0x1a2)],_0x531648['koBhU']),logger['error'](_0x48f3e1),process[_0x2faca7(0x10f)](0x1))),_0x531648[_0x2faca7(0xc7)](_0x1c764e[_0x2faca7(0xe7)][_0x2faca7(0x10c)](),_0x531648[_0x2faca7(0x18d)])&&(_0x531648[_0x2faca7(0x105)](_0x531648['HHQuc'],_0x531648[_0x2faca7(0x1b5)])?_0x5f1a59[_0x2faca7(0x11c)](_0x2faca7(0x153)+_0x57391f+'\x20'):(_0x48f3e1=_0x531648[_0x2faca7(0x1b9)],await _0x531648['qdplX'](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0x1c4)],_0x531648[_0x2faca7(0xe6)],_0x531648[_0x2faca7(0xfb)],_0x531648[_0x2faca7(0xf4)]),logger[_0x2faca7(0x1d9)](_0x48f3e1),process[_0x2faca7(0x10f)](0x1))),_0x2d994c=!![],_0x46ca4a=_0x1c764e[_0x2faca7(0x177)],_0xd093c6=_0x1c764e[_0x2faca7(0xe7)],_0x2e9b01=_0x1c764e[_0x2faca7(0x194)];}_0x1c764e[_0x2faca7(0x199)]&&(_0x531648[_0x2faca7(0x1f0)](_0x531648[_0x2faca7(0xcb)],_0x531648[_0x2faca7(0x1c6)])?_0x2e6eec=_0x4cfcec[_0x205239['gridProfile']]:_0x32e7ca=_0x1c764e['gridName']);global_registry['gridName']=_0x32e7ca;if(_0x531648[_0x2faca7(0x134)](_0x2d994c,![])){if(_0x531648[_0x2faca7(0x14f)](_0x531648[_0x2faca7(0x15b)],_0x531648[_0x2faca7(0x15b)])){const _0x2fe65f=_0x2faca7(0x169)+AG_API_URL+_0x2faca7(0x1c5)+_0x32e7ca,_0x25e6b9={};_0x25e6b9[_0x2faca7(0x100)]=_0x30c744[_0x2faca7(0x184)][_0x2faca7(0x100)],_0x25e6b9[_0x2faca7(0xd8)]=_0x30c744[_0x2faca7(0x184)][_0x2faca7(0xd8)];const _0x10b076={};_0x10b076['url']=_0x2fe65f,_0x10b076[_0x2faca7(0xe4)]=_0x531648[_0x2faca7(0x121)],_0x10b076['auth']=_0x25e6b9;const _0x34b10b=_0x10b076,_0x3108f1=await _0x531648[_0x2faca7(0x1f8)](promisifiedRequest,_0x34b10b);(_0x531648['dGSTw'](_0x3108f1,null)||_0x531648['dGSTw'](_0x3108f1,undefined))&&(_0x531648[_0x2faca7(0x1db)](_0x531648[_0x2faca7(0x107)],_0x531648[_0x2faca7(0x107)])?(_0x2027f9[_0x2faca7(0x13f)](_0x531648['IAJZS']),_0x531648[_0x2faca7(0xdc)](_0x587764)):(_0x48f3e1=_0x531648[_0x2faca7(0xf7)],await _0x531648[_0x2faca7(0x1a3)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0x1c4)],_0x531648[_0x2faca7(0xe6)],_0x531648[_0x2faca7(0xc1)],_0x531648[_0x2faca7(0xf4)]),logger[_0x2faca7(0x1d9)](_0x48f3e1),process[_0x2faca7(0x10f)](0x1)));_0x531648[_0x2faca7(0x14f)](_0x3108f1[_0x2faca7(0x140)],0x191)&&(_0x531648[_0x2faca7(0x14f)](_0x531648[_0x2faca7(0x17b)],_0x531648[_0x2faca7(0x17b)])?(_0x48f3e1=_0x531648[_0x2faca7(0x173)],await _0x531648[_0x2faca7(0x192)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes['ERROR'],_0x531648[_0x2faca7(0xe6)],_0x531648['ncCPK'],_0x531648[_0x2faca7(0xf4)]),logger['error'](_0x48f3e1),process['exit'](0x1)):_0x104c6b=_0x30ed28['gridName']);if(_0x531648[_0x2faca7(0x1db)](_0x3108f1[_0x2faca7(0x140)],0xc8)){if(_0x531648['aRjSm'](_0x531648[_0x2faca7(0x1a4)],_0x531648['muhht']))_0x48f3e1=_0x2faca7(0xd2)+JSON[_0x2faca7(0x1c0)](_0x3108f1),await _0x531648[_0x2faca7(0x1a3)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0x1c4)],_0x531648[_0x2faca7(0xe6)],_0x531648[_0x2faca7(0xc0)],_0x531648[_0x2faca7(0xf4)]),logger['error'](_0x48f3e1),process[_0x2faca7(0x10f)](0x1);else{const _0x5d1f00=_0x531648['twEIB'][_0x2faca7(0x118)]('|');let _0x232442=0x0;while(!![]){switch(_0x5d1f00[_0x232442++]){case'0':_0x5ec22e[_0x2faca7(0xea)]=_0x480541[_0x30a575][_0x2faca7(0xda)];continue;case'1':_0x1f6088[_0x2faca7(0x116)]=_0x895421[_0x41fdc5][_0x2faca7(0x163)];continue;case'2':_0x3590f0=_0x531648[_0x2faca7(0x1e0)];continue;case'3':const _0x316c29={};_0x316c29['type']=_0x3e13f5[_0x2faca7(0x10b)],_0x316c29[_0x2faca7(0xf8)]=_0x143166,_0x526215['sendEventToBackend'](_0x551e22,_0x316c29);continue;case'4':_0x1c863f['info'](_0x84835c);continue;}break;}}}const _0x3b0222=JSON[_0x2faca7(0x1d4)](_0x3108f1[_0x2faca7(0xf5)]),_0x50820c={};_0x50820c[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x13b)],_0x50820c[_0x2faca7(0xf8)]=_0x2faca7(0xe9),webSocketUtils['sendEventToBackend'](_0x5c025a,_0x50820c);const _0x248277={};_0x248277[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x248277['message']=_0x531648[_0x2faca7(0xc9)],webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x248277);if(_0x3b0222[_0x2faca7(0x1ab)]){if(_0x531648[_0x2faca7(0x105)](_0x531648['bnSRm'],_0x531648[_0x2faca7(0x1e4)])){const _0x6f6aaa=_0x531648[_0x2faca7(0x193)]['split']('|');let _0x38b150=0x0;while(!![]){switch(_0x6f6aaa[_0x38b150++]){case'0':_0x1a9355[_0x2faca7(0x177)]=_0x2857d2;continue;case'1':_0x169424=_0x2faca7(0xd3)+_0x432d61+_0x2faca7(0x14c)+_0xfa1a94+'\x27';continue;case'2':_0x43f924['info'](_0x3fcfab);continue;case'3':const _0x43e368={};_0x43e368['type']=_0x2c6083[_0x2faca7(0x13b)],_0x43e368[_0x2faca7(0xf8)]='CLI\x20run\x20started',_0x33b88b[_0x2faca7(0x12a)](_0x53dc54,_0x43e368);continue;case'4':_0x11c2a6[_0x2faca7(0x162)]=_0x25a4e2;continue;case'5':const _0x27ed11={};_0x27ed11[_0x2faca7(0x120)]=_0x34da7f[_0x2faca7(0x10b)],_0x27ed11[_0x2faca7(0xf8)]=_0x2b52eb,_0x6604a1[_0x2faca7(0x12a)](_0x400e49,_0x27ed11);continue;case'6':_0x2fb6b4[_0x2faca7(0xe7)]=_0x4eff18;continue;}break;}}else _0x48f3e1=_0x531648['rQyQG'],await _0x531648['aCspA'](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0x1c4)],_0x531648['cWAEw'],_0x531648[_0x2faca7(0x19d)],_0x531648['koBhU']),logger['error'](_0x48f3e1),process['exit'](0x1);}const _0xe0fe04=_0x3b0222[_0x2faca7(0x185)];let _0x15e737=_0xe0fe04[_0x3b0222['defaultGridProfile']];_0x1c764e[_0x2faca7(0x1ee)]&&(_0x531648['OpJhf'](_0x531648['YdZYm'],_0x531648[_0x2faca7(0x139)])?_0x12ce77[_0x2faca7(0x11c)](_0x2faca7(0xe1)+_0x71c84f['stringify'](_0x5810bd)+'\x20'):_0x15e737=_0xe0fe04[_0x1c764e[_0x2faca7(0x1ee)]]);if(_0x531648[_0x2faca7(0xd0)](_0x15e737,undefined)){if(_0x531648[_0x2faca7(0x1f0)](_0x531648[_0x2faca7(0x19e)],_0x531648[_0x2faca7(0x141)])){const _0x45cd0e={};_0x45cd0e['type']=_0xb17dc0['LOG'],_0x45cd0e[_0x2faca7(0xf8)]=_0x5cd52c,_0x4bb0a7[_0x2faca7(0x12a)](_0x5ee03f,_0x45cd0e,_0x531648[_0x2faca7(0xf4)],!![]);}else _0x48f3e1=_0x531648[_0x2faca7(0x131)],await _0x531648[_0x2faca7(0x192)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0x1c4)],_0x531648['cWAEw'],_0x531648['XnOkl'],_0x531648[_0x2faca7(0xf4)]),logger['error'](_0x48f3e1),process[_0x2faca7(0x10f)](0x1);}global_registry[_0x2faca7(0xe3)]=_0x15e737['id'],_0x48f3e1='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x32e7ca+_0x2faca7(0x1b0)+_0x15e737[_0x2faca7(0xdd)]+'\x27\x20grid\x20profile',logger[_0x2faca7(0x11c)](_0x48f3e1);const _0x5b8ea3={};_0x5b8ea3[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x5b8ea3[_0x2faca7(0xf8)]=_0x48f3e1,webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x5b8ea3),_0xd093c6=_0x15e737[_0x2faca7(0xe7)],_0x46ca4a=_0x15e737[_0x2faca7(0x177)],_0x2e9b01=_0x15e737[_0x2faca7(0x194)],_0xc0de1c=_0x15e737['concurrency'],_0x38c16c=_0x15e737[_0x2faca7(0x174)],_0x89ce34=_0x15e737[_0x2faca7(0x1ea)],securityGroups=_0x15e737[_0x2faca7(0xcc)],subnets=_0x15e737[_0x2faca7(0x1de)],_0x31a620=_0x15e737[_0x2faca7(0x13e)],_0x531648['Xvzzg'](updateGlobalRegistryWithConfig,_0xd093c6,_0x46ca4a,_0x2e9b01,_0xc0de1c,_0x38c16c,_0x31a620,_0x15e737);}else throw _0xc93f78;}else{const _0x427e0a=_0x531648['BzQcU'][_0x2faca7(0x118)]('|');let _0x209d66=0x0;while(!![]){switch(_0x427e0a[_0x209d66++]){case'0':_0x48f3e1=_0x2faca7(0xd3)+_0x32e7ca+_0x2faca7(0x14c)+_0x46ca4a+'\x27';continue;case'1':logger[_0x2faca7(0x11c)](_0x48f3e1);continue;case'2':global_registry[_0x2faca7(0xe7)]=_0xd093c6;continue;case'3':const _0x516323={};_0x516323['type']=WS_EVENTS[_0x2faca7(0x13b)],_0x516323[_0x2faca7(0xf8)]='CLI\x20run\x20started',webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x516323);continue;case'4':const _0x3ca6dd={};_0x3ca6dd[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x3ca6dd['message']=_0x48f3e1,webSocketUtils['sendEventToBackend'](_0x5c025a,_0x3ca6dd);continue;case'5':global_registry['clusterRegion']=_0x2e9b01;continue;case'6':global_registry[_0x2faca7(0x177)]=_0x46ca4a;continue;}break;}}const _0x471292=_0x30c744[_0x2faca7(0xe7)]||{};if(_0x531648[_0x2faca7(0x1f0)](_0x471292[_0xd093c6],undefined)){logger['info'](_0x531648[_0x2faca7(0x123)]);const [_0x586bc7,_0x137438]=await _0x531648['TsBMK'](inputCloudProviderKeys,_0xd093c6);_0x30c744[_0x2faca7(0xe7)]={};const _0x4808ea={};_0x4808ea[_0x2faca7(0xda)]=_0x586bc7,_0x4808ea[_0x2faca7(0x163)]=_0x137438,_0x30c744['cloudProvider'][_0xd093c6]=_0x4808ea,fs['writeFileSync'](_0x531648[_0x2faca7(0x165)](getCredentialsPath),JSON[_0x2faca7(0x1c0)](_0x30c744)),logger[_0x2faca7(0x13f)](_0x531648[_0x2faca7(0x1d1)]),global_registry[_0x2faca7(0xea)]=_0x586bc7,global_registry['cloudProviderSecretKey']=_0x137438;}else{const _0x329190=_0x531648[_0x2faca7(0x1e8)][_0x2faca7(0x118)]('|');let _0xf48096=0x0;while(!![]){switch(_0x329190[_0xf48096++]){case'0':logger['info'](_0x48f3e1);continue;case'1':global_registry[_0x2faca7(0x116)]=_0x471292[_0xd093c6][_0x2faca7(0x163)];continue;case'2':const _0x53f8a8={};_0x53f8a8[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x53f8a8[_0x2faca7(0xf8)]=_0x48f3e1,webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x53f8a8);continue;case'3':global_registry[_0x2faca7(0xea)]=_0x471292[_0xd093c6][_0x2faca7(0xda)];continue;case'4':_0x48f3e1=_0x531648['YUiOZ'];continue;}break;}}_0x531648[_0x2faca7(0x1f0)](_0xd093c6,AWS)&&(logger[_0x2faca7(0x13f)](_0x531648[_0x2faca7(0x172)]),_0x531648[_0x2faca7(0xdc)](configureAWSIfNotConfigured));let _0x57b05d,_0x1c2404;if(_0x531648['OpJhf'](_0x2d994c,![])){_0x48f3e1=_0x2faca7(0x1a5)+_0x2e9b01+').';const _0x5ccf9c={};_0x5ccf9c[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x5ccf9c[_0x2faca7(0xf8)]=_0x48f3e1,webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x5ccf9c),logger['info'](_0x48f3e1);const _0x4f0e1a=await _0x531648[_0x2faca7(0x119)](isClusterPresent,_0xd093c6,_0x46ca4a);let _0x3cf686;if(_0x4f0e1a){const _0x4d1aca={};_0x4d1aca[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x4d1aca['message']=_0x2faca7(0xdb)+_0x46ca4a+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils['sendEventToBackend'](_0x5c025a,_0x4d1aca,_0x531648[_0x2faca7(0xf0)]),logger[_0x2faca7(0x1ba)](_0x2faca7(0xdb)+_0x46ca4a+_0x2faca7(0x147)),_0x57b05d=await _0x531648['KFTjO'](getClusterInfo,_0x46ca4a),_0x2d994c=!![];}else{const _0x435704={};_0x435704[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x435704[_0x2faca7(0xf8)]=_0x531648[_0x2faca7(0x102)],webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x435704),logger[_0x2faca7(0x11c)](_0x531648[_0x2faca7(0x102)]);const _0x115c36=_0x531648[_0x2faca7(0x1bc)](_0x89ce34,null)&&_0x531648[_0x2faca7(0x19a)](_0x89ce34,undefined),_0x580adc=_0x531648[_0x2faca7(0x125)](subnets,null)&&_0x531648[_0x2faca7(0x1db)](subnets,undefined);let _0x5c2019;if(_0x115c36){_0x531648['hSwqK'](_0x580adc,![])&&(_0x48f3e1=_0x531648[_0x2faca7(0x133)],await _0x531648['aCspA'](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes['ERROR'],_0x531648['cWAEw'],_0x531648['HjWDT'],_0x531648['koBhU']),logger['error'](_0x48f3e1),process[_0x2faca7(0x10f)](0x1));const _0x1c51c6=await _0x531648[_0x2faca7(0x12f)](isVPCPresent,_0x89ce34,_0x2e9b01);_0x531648[_0x2faca7(0x134)](_0x1c51c6,![])?(_0x48f3e1=_0x531648[_0x2faca7(0xe0)],await _0x531648[_0x2faca7(0x154)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes['ERROR'],_0x531648[_0x2faca7(0xe6)],_0x531648['aUcZX'],_0x531648[_0x2faca7(0xf4)]),logger[_0x2faca7(0x1d9)](_0x48f3e1),process[_0x2faca7(0x10f)](0x1)):logger['info'](_0x2faca7(0x153)+_0x89ce34+'\x20');const _0xc067a8=await _0x531648[_0x2faca7(0x145)](isSubnetsValid,subnets,_0x89ce34,_0x2e9b01);_0x531648[_0x2faca7(0x16a)](_0xc067a8[0x0],![])?(_0x48f3e1=_0x2faca7(0x117)+_0xc067a8[0x1]+_0x2faca7(0x10d)+_0x89ce34+_0x2faca7(0x1df),await _0x531648[_0x2faca7(0x1a3)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0x1c4)],_0x531648['cWAEw'],_0x531648[_0x2faca7(0x1dc)],_0x531648['koBhU']),logger[_0x2faca7(0x1d9)](_0x48f3e1),process[_0x2faca7(0x10f)](0x1)):logger[_0x2faca7(0x11c)]('Found\x20Subnets:\x20'+JSON[_0x2faca7(0x1c0)](subnets)+'\x20');const _0x4332f2=await _0x531648['rMCIw'](createClusterStack,_0x46ca4a,_0x89ce34,subnets);logger[_0x2faca7(0x11c)](_0x531648['MDsBt']),logger['info'](_0x2faca7(0x15a)+_0x4332f2['Stacks'][0x0]['Outputs'][0x3][_0x2faca7(0x1b3)]+'\x20'),logger[_0x2faca7(0x11c)](_0x2faca7(0x1e9)+_0x4332f2[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x1][_0x2faca7(0x1b3)]+'\x20'),logger[_0x2faca7(0x11c)](_0x2faca7(0x15f)+_0x4332f2[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x0]['OutputValue'][_0x2faca7(0x118)](',')+'\x20'),logger[_0x2faca7(0x11c)](_0x2faca7(0x1bb)+_0x4332f2[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x4][_0x2faca7(0x1b3)]+'\x20');}else{const _0x5a05fd={};_0x5a05fd['type']=WS_EVENTS['LOG'],_0x5a05fd[_0x2faca7(0xf8)]=_0x531648[_0x2faca7(0x190)],webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x5a05fd),logger[_0x2faca7(0x11c)](_0x531648['UCdAY']),_0x531648[_0x2faca7(0x1f8)](sendAWSInfoToHST,_0x5c025a);const _0x24ac88={};_0x24ac88[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x24ac88['message']=_0x531648[_0x2faca7(0x114)],webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x24ac88),logger[_0x2faca7(0x11c)](_0x531648[_0x2faca7(0xf3)]);const _0x4d8baf=await _0x531648[_0x2faca7(0x1aa)](createClusterStack,_0x46ca4a),_0x525647=_0x4d8baf[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x0]['OutputValue'][_0x2faca7(0x118)](',');_0x5c2019=_0x4d8baf[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x1][_0x2faca7(0x1b3)];const _0x4f76e7=_0x4d8baf[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x2][_0x2faca7(0x1b3)],_0x11ac8f=_0x4d8baf[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x3]['OutputValue'];_0x3cf686=_0x4d8baf[_0x2faca7(0x128)][0x0]['Outputs'][0x4][_0x2faca7(0x1b3)];const _0x108ed3=_0x4d8baf[_0x2faca7(0x128)][0x0]['Outputs'][0x5][_0x2faca7(0x1b3)][_0x2faca7(0x118)](','),_0x3fb1a7={};_0x3fb1a7[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x3fb1a7[_0x2faca7(0xf8)]=_0x2faca7(0x12c)+_0x11ac8f+_0x2faca7(0x164)+_0x5c2019+',\x20VPC\x20=>\x20'+_0x4f76e7+_0x2faca7(0x1e1)+_0x108ed3+_0x2faca7(0xd9)+_0x525647+',\x20NodeRole\x20=>\x20'+_0x3cf686+'\x20',webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x3fb1a7),logger[_0x2faca7(0x11c)](_0x531648['MDsBt']),logger[_0x2faca7(0x11c)]('Cluster\x20=>\x20'+_0x11ac8f+'\x20'),logger['info'](_0x2faca7(0x1e9)+_0x5c2019+'\x20'),logger['info'](_0x2faca7(0x158)+_0x4f76e7+'\x20'),logger[_0x2faca7(0x11c)](_0x2faca7(0xfe)+_0x108ed3+'\x20'),logger[_0x2faca7(0x11c)](_0x2faca7(0x15f)+_0x525647+'\x20'),logger[_0x2faca7(0x11c)](_0x2faca7(0x1bb)+_0x3cf686+'\x20');const _0x522044={};_0x522044[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x522044[_0x2faca7(0xf8)]=_0x2faca7(0x1b4),webSocketUtils['sendEventToBackend'](_0x5c025a,_0x522044),logger['info'](_0x531648[_0x2faca7(0x16e)]);}}}_0x57b05d=await _0x531648['ZLZll'](getClusterInfo,_0x46ca4a);const [_0x4e094b,_0xa9904f,_0x51d049,_0x55906b]=await _0x531648[_0x2faca7(0xef)](createK8sClient,_0x57b05d['cluster']['name'],_0x57b05d[_0x2faca7(0xc4)][_0x2faca7(0x104)],_0x57b05d[_0x2faca7(0xc4)][_0x2faca7(0x1ce)][_0x2faca7(0x14a)],global_registry[_0x2faca7(0x162)]);if(_0x531648[_0x2faca7(0x171)](_0x2d994c,![])){const _0x3a14a5={};_0x3a14a5[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x3a14a5[_0x2faca7(0xf8)]=_0x531648[_0x2faca7(0x1f3)],webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x3a14a5),logger[_0x2faca7(0x11c)](_0x531648[_0x2faca7(0x1f3)]);try{const _0x485f0e=await _0x531648['TsBMK'](createAutoscalerStack,_0x46ca4a);_0x1c2404=_0x485f0e[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x2][_0x2faca7(0x1b3)];const _0x5f175e={};_0x5f175e['type']=WS_EVENTS[_0x2faca7(0x10b)],_0x5f175e[_0x2faca7(0xf8)]=_0x2faca7(0xfc)+_0x1c2404+'\x20',webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x5f175e),logger[_0x2faca7(0x11c)](_0x2faca7(0xfc)+_0x1c2404+'\x20');}catch(_0x53c8f8){if(_0x531648[_0x2faca7(0x1db)](_0x53c8f8['message'][_0x2faca7(0x182)](/already exists/),null)||_0x531648[_0x2faca7(0xc7)](_0x53c8f8['message'][_0x2faca7(0x182)](/already exists/),undefined))_0x48f3e1='Skipping\x20Autoscaler\x20due\x20to:\x20'+_0x53c8f8[_0x2faca7(0xf8)],await _0x531648[_0x2faca7(0x154)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0xed)],_0x531648[_0x2faca7(0xe6)],_0x531648['rfJNs'],_0x531648[_0x2faca7(0x146)]),logger[_0x2faca7(0x1ba)](_0x48f3e1);else{const _0xdee56e=_0x531648[_0x2faca7(0xc3)][_0x2faca7(0x118)]('|');let _0x140872=0x0;while(!![]){switch(_0xdee56e[_0x140872++]){case'0':await _0x531648[_0x2faca7(0x150)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'1':logger[_0x2faca7(0x1d9)](_0x48f3e1);continue;case'2':process[_0x2faca7(0x10f)](0x1);continue;case'3':await _0x531648[_0x2faca7(0xfa)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes['ERROR'],_0x531648[_0x2faca7(0xe6)],_0x531648[_0x2faca7(0x142)],_0x531648[_0x2faca7(0xf4)]);continue;case'4':_0x48f3e1=_0x2faca7(0x144)+_0x53c8f8[_0x2faca7(0xf8)]+_0x2faca7(0x1fa);continue;}break;}}}let _0x36f2ff=await _0x531648[_0x2faca7(0xcd)](getNodeGroupInfo,_0x46ca4a,_0x46ca4a+_0x2faca7(0x178));nodeRole=_0x36f2ff['nodegroup'][_0x2faca7(0x12e)];const _0x1772ae=await _0x531648[_0x2faca7(0x109)](createAuthConfigMap,nodeRole);await _0x4e094b[_0x2faca7(0xfd)](_0x531648[_0x2faca7(0x14d)],_0x1772ae)[_0x2faca7(0x111)](_0x3be210=>{const _0x1dab38=_0x2faca7;logger[_0x1dab38(0x11c)](_0x531648[_0x1dab38(0x19c)]);});}try{_0x14f434=_0x531648[_0x2faca7(0xee)](kebabCase,_0x32e7ca),logger[_0x2faca7(0x11c)](_0x531648[_0x2faca7(0x17f)]);const _0x5c5f2e={};_0x5c5f2e[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x5c5f2e[_0x2faca7(0xf8)]=_0x531648[_0x2faca7(0x17f)],webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x5c5f2e);if(_0x531648[_0x2faca7(0x19a)](_0x14f434,_0x531648[_0x2faca7(0x160)])){const _0x2d2702={};_0x2d2702[_0x2faca7(0x151)]=_0x531648[_0x2faca7(0x14b)],_0x2d2702[_0x2faca7(0x1d5)]=_0x531648[_0x2faca7(0x14b)];const _0x4570e6={};_0x4570e6[_0x2faca7(0xdd)]=_0x14f434,_0x4570e6[_0x2faca7(0x18f)]=_0x2d2702;const _0x6b188e={};_0x6b188e[_0x2faca7(0x1f7)]=_0x4570e6;let _0x589105=_0x6b188e;await _0x4e094b[_0x2faca7(0x127)](_0x589105),logger[_0x2faca7(0x11c)](_0x531648[_0x2faca7(0x16f)]);}const _0x8dab57={};_0x8dab57[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x8dab57['message']=_0x531648['RMLbt'],webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x8dab57);const _0x43fde7={};_0x43fde7[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x43fde7[_0x2faca7(0xf8)]=_0x531648[_0x2faca7(0xd5)],webSocketUtils['sendEventToBackend'](_0x5c025a,_0x43fde7),logger[_0x2faca7(0x11c)](_0x531648['JyvHc']),await _0x531648[_0x2faca7(0x192)](addGridComponents,_0x4e094b,_0xa9904f,_0x51d049,_0x55906b,_0x14f434,_0x46ca4a,_0x1c2404),_0x48f3e1=_0x531648[_0x2faca7(0x1e6)],logger[_0x2faca7(0x11c)](_0x48f3e1);const _0x37b791={};_0x37b791[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x37b791['message']=_0x48f3e1,webSocketUtils['sendEventToBackend'](_0x5c025a,_0x37b791),_0x48f3e1=_0x531648[_0x2faca7(0x1ca)],logger[_0x2faca7(0x11c)](_0x48f3e1);const _0x554e4d={};_0x554e4d[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x554e4d[_0x2faca7(0xf8)]=_0x48f3e1,webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x554e4d),await webSocketUtils['delay'](0x1388);let _0x109749;await _0x4e094b['readNamespacedService'](_0x531648['yHrwy'],_0x14f434)[_0x2faca7(0x195)](_0x3fbdba=>{const _0x262a01=_0x2faca7,_0x23caa5=_0x531648[_0x262a01(0xec)][_0x262a01(0x118)]('|');let _0x5ac870=0x0;while(!![]){switch(_0x23caa5[_0x5ac870++]){case'0':const _0x5ba669={};_0x5ba669[_0x262a01(0x120)]=WS_EVENTS[_0x262a01(0x10b)],_0x5ba669[_0x262a01(0xf8)]=_0x48f3e1,webSocketUtils['sendEventToBackend'](_0x5c025a,_0x5ba669);continue;case'1':const _0x592b6a={};_0x592b6a['type']=WS_EVENTS[_0x262a01(0x168)],_0x592b6a[_0x262a01(0xf8)]=_0x262a01(0x189)+_0x109749,webSocketUtils[_0x262a01(0x12a)](_0x5c025a,_0x592b6a);continue;case'2':_0x48f3e1=_0x262a01(0x16c)+_0x109749+'\x20';continue;case'3':logger[_0x262a01(0x11c)](_0x48f3e1);continue;case'4':const _0x4b4870={};_0x4b4870['type']=WS_EVENTS[_0x262a01(0x10b)],_0x4b4870[_0x262a01(0xf8)]=_0x48f3e1,webSocketUtils[_0x262a01(0x12a)](_0x5c025a,_0x4b4870);continue;case'5':logger['info'](_0x48f3e1);continue;case'6':_0x48f3e1=_0x262a01(0x132)+_0x109749+':4444/wd/hub';continue;case'7':_0x109749=_0x3fbdba['body'][_0x262a01(0x175)][_0x262a01(0x143)][_0x262a01(0x1d0)][0x0][_0x262a01(0xc8)];continue;}break;}}),await webSocketUtils['delay'](0x1f4);}catch(_0x10c74d){if(_0x531648['hSwqK'](_0x2d994c,![]))try{logger[_0x2faca7(0x11c)](_0x2faca7(0x1bf)),await _0x531648['fMywL'](removeGridComponents,_0x4e094b,_0xa9904f,_0x51d049,_0x55906b,_0x14f434),await _0x531648[_0x2faca7(0x1aa)](deleteClusterAndDependencies,global_registry['clusterRegion']);}catch(_0x5b2db6){throw _0x5b2db6;}throw _0x10c74d;}}catch(_0x2de185){const _0x56f5bd=_0x2faca7(0x181)+_0x2de185+'\x20\x0a'+JSON[_0x2faca7(0x1c0)](_0x2de185)+'\x20';if(_0x5c025a){const _0x2ebaf0={};_0x2ebaf0[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x2ebaf0[_0x2faca7(0xf8)]=_0x56f5bd,webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x2ebaf0,_0x531648['koBhU'],!![]);}const _0x55f6c9={};_0x55f6c9[_0x2faca7(0x1d9)]=_0x56f5bd,await _0x531648[_0x2faca7(0x179)](sendInstrumentationEvent,_0x1c764e,_0x531648[_0x2faca7(0xe6)],messageTypes['ERROR'],_0x531648['qAama'],_0x55f6c9,_0x1c764e),logger[_0x2faca7(0x1d9)](_0x56f5bd);}process[_0x2faca7(0x10f)](0x0);};
@@ -1 +1 @@
1
- const a5_0x198ebf=a5_0x6ba4;(function(_0x1d22c5,_0x4a055a){const _0x21928d=a5_0x6ba4,_0x20cd78=_0x1d22c5();while(!![]){try{const _0x56f5c7=parseInt(_0x21928d(0xf7))/0x1*(-parseInt(_0x21928d(0xe6))/0x2)+-parseInt(_0x21928d(0xf0))/0x3+parseInt(_0x21928d(0xe7))/0x4+-parseInt(_0x21928d(0xe3))/0x5*(-parseInt(_0x21928d(0xe8))/0x6)+parseInt(_0x21928d(0xe9))/0x7+parseInt(_0x21928d(0xe0))/0x8*(-parseInt(_0x21928d(0xea))/0x9)+-parseInt(_0x21928d(0xf1))/0xa*(parseInt(_0x21928d(0xf5))/0xb);if(_0x56f5c7===_0x4a055a)break;else _0x20cd78['push'](_0x20cd78['shift']());}catch(_0x2485a1){_0x20cd78['push'](_0x20cd78['shift']());}}}(a5_0x5cd2,0x92f3a));function a5_0x6ba4(_0x396287,_0x43de65){const _0x5cd248=a5_0x5cd2();return a5_0x6ba4=function(_0x6ba43b,_0x53a93f){_0x6ba43b=_0x6ba43b-0xe0;let _0x5ca20a=_0x5cd248[_0x6ba43b];return _0x5ca20a;},a5_0x6ba4(_0x396287,_0x43de65);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a5_0x198ebf(0xf6));exports[a5_0x198ebf(0xe4)]='delete',exports[a5_0x198ebf(0xf8)]=a5_0x198ebf(0xef),exports['builder']=function(_0x38c5c8){const _0x84d3b5=a5_0x198ebf,_0x4795e0={};_0x4795e0[_0x84d3b5(0xf3)]=_0x84d3b5(0xed),_0x4795e0[_0x84d3b5(0xe1)]='help';const _0x4b5cd6=_0x4795e0;return _0x38c5c8[_0x84d3b5(0xf4)](HELP_HEADER_MESSAGE[_0x84d3b5(0xeb)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x4b5cd6[_0x84d3b5(0xf3)])[_0x84d3b5(0xe2)]()[_0x84d3b5(0xe5)]()[_0x84d3b5(0xec)]()[_0x84d3b5(0xf2)](_0x4b5cd6[_0x84d3b5(0xe1)]);},exports[a5_0x198ebf(0xee)]=function(_0x1affdf){};function a5_0x5cd2(){const _0x4e51d2=['command','recommendCommands','1728ktMFmR','1959672gOnQbY','1443366uKUMfr','8212834QPTWYh','716193jbVLaL','delete','strict','delete_commands','handler','List\x20Grid\x20resources.','1440648UFbsCr','2740DnxXTr','help','RWskB','usage','29755FXmhaM','../config/constants','1pmhHps','desc','8EIdoNS','mKaqm','demandCommand','5BiZiaG'];a5_0x5cd2=function(){return _0x4e51d2;};return a5_0x5cd2();}
1
+ const a5_0xee11f6=a5_0x9600;function a5_0x9600(_0x135331,_0x4a6377){const _0x224817=a5_0x2248();return a5_0x9600=function(_0x960097,_0x5b69f8){_0x960097=_0x960097-0xcf;let _0x1e7428=_0x224817[_0x960097];return _0x1e7428;},a5_0x9600(_0x135331,_0x4a6377);}(function(_0x1c7d24,_0x4d5269){const _0x4bf5fb=a5_0x9600,_0x3e8c54=_0x1c7d24();while(!![]){try{const _0x5458b7=parseInt(_0x4bf5fb(0xdc))/0x1+parseInt(_0x4bf5fb(0xe2))/0x2*(parseInt(_0x4bf5fb(0xe3))/0x3)+-parseInt(_0x4bf5fb(0xda))/0x4*(parseInt(_0x4bf5fb(0xd6))/0x5)+-parseInt(_0x4bf5fb(0xd2))/0x6*(parseInt(_0x4bf5fb(0xe1))/0x7)+-parseInt(_0x4bf5fb(0xde))/0x8+-parseInt(_0x4bf5fb(0xd7))/0x9+parseInt(_0x4bf5fb(0xd4))/0xa*(parseInt(_0x4bf5fb(0xd1))/0xb);if(_0x5458b7===_0x4d5269)break;else _0x3e8c54['push'](_0x3e8c54['shift']());}catch(_0x1ecdd9){_0x3e8c54['push'](_0x3e8c54['shift']());}}}(a5_0x2248,0xe398b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a5_0xee11f6(0xdf));function a5_0x2248(){const _0x25339c=['3838235mqhcti','2694609SfbzFx','eLeiK','builder','4EQGdsM','desc','1393294oJtqmm','recommendCommands','14109504YWAcZk','../config/constants','List\x20Grid\x20resources.','588kfGYul','2088334VyRZem','3tRKsIH','demandCommand','strict','delete_commands','11BsZCSv','103698kZjpBK','XFMIj','27772820VIGYTd','help'];a5_0x2248=function(){return _0x25339c;};return a5_0x2248();}exports['command']='delete',exports[a5_0xee11f6(0xdb)]=a5_0xee11f6(0xe0),exports[a5_0xee11f6(0xd9)]=function(_0x53ab7d){const _0x106f5d=a5_0xee11f6,_0x50e925={};_0x50e925[_0x106f5d(0xd8)]=_0x106f5d(0xd0),_0x50e925[_0x106f5d(0xd3)]='help';const _0x5b3f4e=_0x50e925;return _0x53ab7d['usage'](HELP_HEADER_MESSAGE['delete'])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x5b3f4e[_0x106f5d(0xd8)])[_0x106f5d(0xe4)]()[_0x106f5d(0xdd)]()[_0x106f5d(0xcf)]()[_0x106f5d(0xd5)](_0x5b3f4e['XFMIj']);},exports['handler']=function(_0x253ad4){};
@@ -1 +1 @@
1
- const a6_0x2d6228=a6_0x5b97;function a6_0x5b97(_0x509a2c,_0x1d0da1){const _0x2d25ac=a6_0x2d25();return a6_0x5b97=function(_0x5b9749,_0x446d3e){_0x5b9749=_0x5b9749-0x11c;let _0x2cfb26=_0x2d25ac[_0x5b9749];return _0x2cfb26;},a6_0x5b97(_0x509a2c,_0x1d0da1);}(function(_0x4c241a,_0x52873d){const _0x55fe4d=a6_0x5b97,_0x5ed80d=_0x4c241a();while(!![]){try{const _0x15020d=-parseInt(_0x55fe4d(0x137))/0x1*(-parseInt(_0x55fe4d(0x138))/0x2)+parseInt(_0x55fe4d(0x192))/0x3*(parseInt(_0x55fe4d(0x177))/0x4)+-parseInt(_0x55fe4d(0x186))/0x5+-parseInt(_0x55fe4d(0x18c))/0x6*(-parseInt(_0x55fe4d(0x154))/0x7)+-parseInt(_0x55fe4d(0x1a9))/0x8+-parseInt(_0x55fe4d(0x17e))/0x9+-parseInt(_0x55fe4d(0x123))/0xa*(-parseInt(_0x55fe4d(0x17d))/0xb);if(_0x15020d===_0x52873d)break;else _0x5ed80d['push'](_0x5ed80d['shift']());}catch(_0xc9d1df){_0x5ed80d['push'](_0x5ed80d['shift']());}}}(a6_0x2d25,0x5ce3d));function a6_0x2d25(){const _0xd35c72=['1979550FQqTmS','hdCjs','auth','WzQVF','init-not-called','mTARU','qVfUg','uuid','2066595uTmkCg','description','tags','KzgNE','vbwdH','OQCJu','522306nALkLt','Cluster:\x20','https://','KvhXc','ZCmDg','VwCnx','6FnxMxj','delete','url','bRZEo','cloudProvider','clusterName','Succesfully\x20deleted\x20the\x20grid','data','existsSync','Wicfi','cloudProviderSecretKey','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','desc','NeROF','BRPCS','onlyGridInCluster','secret','BfNJQ','grid','accessKey','stringify','clusterSpawnedVia','knUFV','3849112XDcuUe','password','request','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','../../utils/utilityMethods','INFO','unknown-error','invalid-input','usage','username','ERROR','ruOxe','options','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','NshfV','browserstack:managedBy','AQqvP','dvdRb','bZWJr','invalid-grid-id','gridId','7500YsqwWN','statusCode','BrowserStack','BrQgj','../../utils/userInput','BEdnk','RWMSb','hUUPT','message','delete-grid-called','YGWQH','fbUeT','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cluster','BpNnX','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','mQOcs','ykLmp','DELETE','aBpYt','76327ItCcVV','14lzqIpl','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','OaaPR','Knuyd','handler','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','OBAeE','epilogue','server-error','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','help','veIoB','hKhPS','name','Thbmz','../../utils/gridComponents','hZrDO','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','sFGzv','../../utils/instrumentationUtils','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','unauthorised','\x22\x20with\x20ID\x20','exit','region','LRooT','TGhOE','util','14MZbjmm','eNlNm','error','qSwme','LziLh','lMUcl','DVBRJ','XdVOs','builder','warn','WdoiP','grid-id','toLowerCase','VRFHr','body','Gglwv','rHhVz','cloudProviderAccessKey','Delete\x20an\x20Automation\x20grid.','nAKyC','/packages/cli/grid/','kjYIj','Browserstack','string','HRSpR','NYDPF','parse','info','clusterId','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','fGLPh','argv','IRMZr','ikXsD','\x22\x20and\x20ID\x20','1310488JSvAYc','readFileSync','../../config/constants','endpoint','Pass\x20the\x20ID\x20of\x20the\x20Grid','WOleq','1925jBXfER'];a6_0x2d25=function(){return _0xd35c72;};return a6_0x2d25();}const fs=require('fs'),util=require(a6_0x2d6228(0x153)),request=require(a6_0x2d6228(0x1ab)),{v4:uuidv4}=require(a6_0x2d6228(0x185)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL}=require(a6_0x2d6228(0x179)),{logger}=require('../../config/logger'),{getClusterInfo,configureAWSIfNotConfigured}=require('../../utils/AWSUtils'),{removeGridComponents,deleteClusterAndDependencies}=require(a6_0x2d6228(0x147)),{sendInstrumentationEvent}=require(a6_0x2d6228(0x14b)),{inputConfirmation,closeInput}=require(a6_0x2d6228(0x127)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails}=require(a6_0x2d6228(0x1ae)),promisifiedRequest=util['promisify'](request);exports['command']=a6_0x2d6228(0x1a4),exports[a6_0x2d6228(0x19e)]=a6_0x2d6228(0x166),exports[a6_0x2d6228(0x15c)]=function(_0x41306d){const _0x579583=a6_0x2d6228,_0x249400={};_0x249400[_0x579583(0x18a)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x249400['NeROF']=_0x579583(0x16b),_0x249400[_0x579583(0x12a)]=_0x579583(0x142);const _0x845128=_0x249400,_0x24e7ae={};_0x24e7ae[_0x579583(0x187)]=_0x845128[_0x579583(0x18a)],_0x24e7ae['type']=_0x845128[_0x579583(0x19f)];const _0x41b1={};return _0x41b1['grid-id']=_0x24e7ae,_0x41306d['usage'](HELP_HEADER_MESSAGE['delete'])[_0x579583(0x13f)](HELP_FOOTER_MESSAGE)[_0x579583(0x1b6)](_0x41b1)[_0x579583(0x142)](_0x845128[_0x579583(0x12a)])[_0x579583(0x173)];},exports[a6_0x2d6228(0x13c)]=async function(_0x2ea77e){const _0x4c0405=a6_0x2d6228,_0x2725ff={'OBAeE':_0x4c0405(0x13d),'lMUcl':_0x4c0405(0x14c),'bZWJr':_0x4c0405(0x17b),'aOkAL':_0x4c0405(0x16b),'oMini':_0x4c0405(0x142),'TGhOE':function(_0x3db09f){return _0x3db09f();},'AAyOz':function(_0x1bdde1){return _0x1bdde1();},'KvhXc':function(_0x5e424f,_0x53f6a0){return _0x5e424f!==_0x53f6a0;},'BfNJQ':_0x4c0405(0x151),'WOleq':_0x4c0405(0x12f),'mTARU':function(_0x1f083c,_0x4d790e,_0x54d9d0,_0x60a92a,_0x363741,_0x40f498,_0x405b73){return _0x1f083c(_0x4d790e,_0x54d9d0,_0x60a92a,_0x363741,_0x40f498,_0x405b73);},'ZCmDg':_0x4c0405(0x12c),'BrQgj':_0x4c0405(0x182),'qVfUg':function(_0x31a05a,_0x3cbc56,_0x254451,_0x3d16e5,_0x2e9305,_0x7ad5d8,_0x4ec75d){return _0x31a05a(_0x3cbc56,_0x254451,_0x3d16e5,_0x2e9305,_0x7ad5d8,_0x4ec75d);},'KFEzq':function(_0x580873,_0x28d72f){return _0x580873!==_0x28d72f;},'qSwme':_0x4c0405(0x14a),'Wicfi':function(_0x59002d){return _0x59002d();},'DVBRJ':function(_0x57a6ca,_0x59a2f3,_0x179511,_0x403484){return _0x57a6ca(_0x59a2f3,_0x179511,_0x403484);},'YGWQH':function(_0x50304b,_0x20347e){return _0x50304b===_0x20347e;},'BRPCS':_0x4c0405(0x16a),'fbUeT':function(_0x298cd2,_0x550759){return _0x298cd2!==_0x550759;},'ikXsD':_0x4c0405(0x11e),'dvdRb':function(_0x33e7a9,_0x57c48d){return _0x33e7a9(_0x57c48d);},'ykLmp':function(_0x28ce99,_0x1a8585){return _0x28ce99===_0x1a8585;},'VRFHr':function(_0x692294,_0x131818){return _0x692294===_0x131818;},'vqZTK':function(_0x50e9a6,_0x43df47){return _0x50e9a6!==_0x43df47;},'ruOxe':'VNDGE','BpNnX':_0x4c0405(0x171),'fBlqR':_0x4c0405(0x1b1),'hBqlL':function(_0x25fc21,_0x18f115){return _0x25fc21===_0x18f115;},'eNlNm':function(_0x5c3cf3,_0x245f23){return _0x5c3cf3===_0x245f23;},'NshfV':_0x4c0405(0x15e),'onfgx':_0x4c0405(0x169),'Knuyd':function(_0x20cb48){return _0x20cb48();},'KzgNE':function(_0xdbe751,_0x2141ed){return _0xdbe751===_0x2141ed;},'WuANc':function(_0x3731aa,_0x2dfae2){return _0x3731aa===_0x2dfae2;},'HRSpR':_0x4c0405(0x143),'BEdnk':_0x4c0405(0x144),'bRZEo':_0x4c0405(0x1b7),'azZFq':function(_0x37d250){return _0x37d250();},'OaaPR':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','rHhVz':function(_0x38a497,_0x420720){return _0x38a497!==_0x420720;},'RWMSb':_0x4c0405(0x15b),'hdCjs':_0x4c0405(0x191),'aBpYt':function(_0xadfcf){return _0xadfcf();},'knUFV':function(_0x2a3d6a,_0x1e1eb4){return _0x2a3d6a(_0x1e1eb4);},'fGLPh':function(_0x3a0cb9,_0x148620){return _0x3a0cb9(_0x148620);},'OQCJu':function(_0x35cdc3,_0x2e8818,_0x43064a,_0x3efd3a,_0x5c123b){return _0x35cdc3(_0x2e8818,_0x43064a,_0x3efd3a,_0x5c123b);},'mQOcs':function(_0x42401a,_0x49c16d,_0x5b5955,_0x143bfb,_0x22914d,_0xca3630){return _0x42401a(_0x49c16d,_0x5b5955,_0x143bfb,_0x22914d,_0xca3630);},'yZjzf':'bisvz','Thbmz':_0x4c0405(0x158),'IRMZr':function(_0x849123,_0x312c65){return _0x849123===_0x312c65;},'hfMrC':_0x4c0405(0x11d),'nAKyC':_0x4c0405(0x125),'Gglwv':_0x4c0405(0x135),'JLlUv':function(_0x3d24a9,_0x4f1b47){return _0x3d24a9!==_0x4f1b47;},'WzQVF':function(_0x397c93,_0x92cb09,_0x3f3350,_0xd736a2,_0xf5b844,_0x24982b,_0x5c3ec8){return _0x397c93(_0x92cb09,_0x3f3350,_0xd736a2,_0xf5b844,_0x24982b,_0x5c3ec8);},'hZrDO':_0x4c0405(0x140),'NYDPF':function(_0x321f46,_0x2c768a,_0x5e251b,_0x23fbb8,_0xd79502,_0x402f7a,_0x3e120a){return _0x321f46(_0x2c768a,_0x5e251b,_0x23fbb8,_0xd79502,_0x402f7a,_0x3e120a);},'vvukP':_0x4c0405(0x14d),'KgbEO':_0x4c0405(0x121),'dQubn':_0x4c0405(0x1b0)};try{global_registry['requestId']=_0x2725ff[_0x4c0405(0x152)](uuidv4);!fs[_0x4c0405(0x19a)](_0x2725ff['AAyOz'](getCredentialsPath))&&(_0x2725ff[_0x4c0405(0x18f)](_0x2725ff[_0x4c0405(0x1a3)],_0x2725ff[_0x4c0405(0x1a3)])?_0x20cbfc=_0x4c0405(0x139)+_0x18756c[_0x4c0405(0x145)]+_0x4c0405(0x176)+_0x5b4651['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x41311e['clusterName']+_0x4c0405(0x14e)+_0x46a12b[_0x4c0405(0x170)]+_0x4c0405(0x1ad):(console[_0x4c0405(0x156)](_0x2725ff[_0x4c0405(0x17c)]),await _0x2725ff[_0x4c0405(0x183)](sendInstrumentationEvent,_0x2ea77e,_0x2725ff[_0x4c0405(0x190)],messageTypes[_0x4c0405(0x1b4)],_0x2725ff[_0x4c0405(0x126)],null,_0x2ea77e),process['exit'](0x1)));_0x2725ff[_0x4c0405(0x184)](sendInstrumentationEvent,_0x2ea77e,_0x2725ff['ZCmDg'],messageTypes[_0x4c0405(0x1af)],null,null,_0x2ea77e);!_0x2ea77e['gridId']&&(_0x2725ff['KFEzq'](_0x2725ff[_0x4c0405(0x157)],_0x2725ff[_0x4c0405(0x157)])?(_0x58f847['info'](_0x4c0405(0x198)),_0x461c56[_0x4c0405(0x14f)](0x0)):(console[_0x4c0405(0x156)](_0x2725ff[_0x4c0405(0x13e)]),process[_0x4c0405(0x14f)](0x1)));const _0x5b5c1f=JSON[_0x4c0405(0x16e)](fs[_0x4c0405(0x178)](_0x2725ff[_0x4c0405(0x19b)](getCredentialsPath))),_0x2f75a6=await _0x2725ff[_0x4c0405(0x15a)](getGridDetails,_0x5b5c1f[_0x4c0405(0x16a)][_0x4c0405(0x1b3)],_0x5b5c1f[_0x4c0405(0x16a)][_0x4c0405(0x1aa)],_0x2ea77e[_0x4c0405(0x122)]);if(_0x2f75a6){const _0x2b1fd0=_0x2f75a6['info'];let _0x25e36e='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x2b1fd0['name']+_0x4c0405(0x176)+_0x2b1fd0['id']+_0x4c0405(0x1ad),_0x5babf5;_0x2f75a6[_0x4c0405(0x1a1)]&&_0x2725ff[_0x4c0405(0x12d)](_0x2f75a6[_0x4c0405(0x1a7)],_0x2725ff[_0x4c0405(0x1a0)])&&(_0x2725ff['fbUeT'](_0x2725ff[_0x4c0405(0x175)],_0x2725ff[_0x4c0405(0x175)])?(_0x2ae98f[_0x4c0405(0x156)](_0x2725ff[_0x4c0405(0x13e)]),_0x6af30c['exit'](0x1)):_0x25e36e=_0x4c0405(0x139)+_0x2b1fd0['name']+_0x4c0405(0x176)+_0x2b1fd0['id']+_0x4c0405(0x141)+_0x2b1fd0[_0x4c0405(0x197)]+_0x4c0405(0x14e)+_0x2b1fd0[_0x4c0405(0x170)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');_0x5babf5=await _0x2725ff['dvdRb'](inputConfirmation,_0x25e36e);(_0x2725ff[_0x4c0405(0x134)](_0x5babf5,undefined)||_0x2725ff[_0x4c0405(0x12d)](_0x5babf5,null)||!(_0x2725ff[_0x4c0405(0x12d)](_0x5babf5[_0x4c0405(0x160)](),'y')||_0x2725ff[_0x4c0405(0x161)](_0x5babf5[_0x4c0405(0x160)](),'n')))&&(_0x2725ff['vqZTK'](_0x2725ff[_0x4c0405(0x1b5)],_0x2725ff[_0x4c0405(0x1b5)])?(_0xdb2c8d[_0x4c0405(0x16f)](_0x2725ff['lMUcl']),_0x6c7d68['cloudProviderAccessKey']=_0x4d9d82[_0x566313][_0x4c0405(0x1a5)],_0x21d602[_0x4c0405(0x19c)]=_0x50cc81[_0x9cfe03][_0x4c0405(0x1a2)]):(console['error'](_0x2725ff[_0x4c0405(0x131)]),await _0x2725ff['mTARU'](sendInstrumentationEvent,_0x2ea77e,_0x2725ff[_0x4c0405(0x190)],messageTypes[_0x4c0405(0x1b4)],_0x2725ff['fBlqR'],null,_0x2ea77e),process[_0x4c0405(0x14f)](0x1)));_0x2725ff['hBqlL'](_0x5babf5[_0x4c0405(0x160)](),'n')&&(_0x2725ff[_0x4c0405(0x155)](_0x2725ff[_0x4c0405(0x11c)],_0x2725ff['onfgx'])?_0x3ca089=_0x52106e[_0x4c0405(0x130)][_0x4c0405(0x188)]:process['exit'](0x0));_0x2725ff[_0x4c0405(0x13b)](closeInput),global_registry['clusterRegion']=_0x2b1fd0[_0x4c0405(0x150)];const _0x82faa0=_0x2b1fd0[_0x4c0405(0x196)],_0x162ef8=_0x5b5c1f[_0x4c0405(0x196)]||{};if(_0x2725ff[_0x4c0405(0x189)](_0x162ef8[_0x82faa0],undefined)){if(_0x2725ff['WuANc'](_0x2725ff[_0x4c0405(0x16c)],_0x2725ff[_0x4c0405(0x128)]))_0x13869f[_0x4c0405(0x14f)](0x0);else{logger[_0x4c0405(0x16f)](_0x2725ff[_0x4c0405(0x195)]);const [_0x45cb8e,_0x58432e]=await _0x2725ff[_0x4c0405(0x11f)](inputCloudProviderKeys,_0x82faa0);_0x5b5c1f[_0x4c0405(0x196)]={};const _0x4773ba={};_0x4773ba['accessKey']=_0x45cb8e,_0x4773ba[_0x4c0405(0x1a2)]=_0x58432e,_0x5b5c1f['cloudProvider'][_0x82faa0]=_0x4773ba,fs['writeFileSync'](_0x2725ff['azZFq'](getCredentialsPath),JSON[_0x4c0405(0x1a6)](_0x5b5c1f)),logger['debug'](_0x2725ff[_0x4c0405(0x13a)]),global_registry[_0x4c0405(0x165)]=_0x45cb8e,global_registry[_0x4c0405(0x19c)]=_0x58432e;}}else _0x2725ff[_0x4c0405(0x164)](_0x2725ff[_0x4c0405(0x129)],_0x2725ff[_0x4c0405(0x17f)])?(logger[_0x4c0405(0x16f)](_0x2725ff[_0x4c0405(0x159)]),global_registry[_0x4c0405(0x165)]=_0x162ef8[_0x82faa0][_0x4c0405(0x1a5)],global_registry[_0x4c0405(0x19c)]=_0x162ef8[_0x82faa0][_0x4c0405(0x1a2)]):_0x591136['warn'](_0x4c0405(0x18d)+_0x171920['clusterName']+_0x4c0405(0x132));_0x2725ff[_0x4c0405(0x136)](configureAWSIfNotConfigured);const _0x47d4da=_0x2725ff[_0x4c0405(0x1a8)](kebabCase,_0x2b1fd0['name']),_0x2c2617=await _0x2725ff[_0x4c0405(0x172)](getClusterInfo,_0x2b1fd0[_0x4c0405(0x197)]),[_0x11fab2,_0x2d95da,_0x516a01,_0x351c68]=await _0x2725ff[_0x4c0405(0x18b)](createK8sClient,_0x2c2617[_0x4c0405(0x130)][_0x4c0405(0x145)],_0x2c2617[_0x4c0405(0x130)][_0x4c0405(0x17a)],_0x2c2617[_0x4c0405(0x130)]['certificateAuthority'][_0x4c0405(0x199)],_0x2b1fd0[_0x4c0405(0x150)]);await _0x2725ff[_0x4c0405(0x133)](removeGridComponents,_0x11fab2,_0x2d95da,_0x516a01,_0x351c68,_0x47d4da);let _0x49102c;if(_0x2c2617[_0x4c0405(0x130)]){if(_0x2725ff['KFEzq'](_0x2725ff['yZjzf'],_0x2725ff[_0x4c0405(0x146)]))_0x49102c=_0x2c2617['cluster'][_0x4c0405(0x188)];else{const _0x27f642={};_0x27f642[_0x4c0405(0x187)]=_0x2725ff[_0x4c0405(0x120)],_0x27f642['type']=_0x2725ff['aOkAL'];const _0x3deb94={};return _0x3deb94[_0x4c0405(0x15f)]=_0x27f642,_0x5d598c[_0x4c0405(0x1b2)](_0x11d9b6[_0x4c0405(0x193)])[_0x4c0405(0x13f)](_0x5b3b6c)[_0x4c0405(0x1b6)](_0x3deb94)[_0x4c0405(0x142)](_0x2725ff['oMini'])['argv'];}}_0x2f75a6['onlyGridInCluster']&&(_0x49102c&&_0x2725ff[_0x4c0405(0x174)](_0x49102c[_0x2725ff['hfMrC']],_0x2725ff[_0x4c0405(0x167)])?await _0x2725ff['dvdRb'](deleteClusterAndDependencies,_0x2b1fd0[_0x4c0405(0x150)]):logger[_0x4c0405(0x15d)](_0x4c0405(0x18d)+_0x2b1fd0[_0x4c0405(0x197)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));const _0x2e0aec=_0x4c0405(0x18e)+AG_API_URL+_0x4c0405(0x168)+_0x2ea77e[_0x4c0405(0x122)],_0x3601dd={};_0x3601dd[_0x4c0405(0x1b3)]=_0x5b5c1f[_0x4c0405(0x16a)][_0x4c0405(0x1b3)],_0x3601dd[_0x4c0405(0x1aa)]=_0x5b5c1f['Browserstack']['password'];const _0x2bb84a={};_0x2bb84a[_0x4c0405(0x194)]=_0x2e0aec,_0x2bb84a['method']=_0x2725ff[_0x4c0405(0x163)],_0x2bb84a[_0x4c0405(0x180)]=_0x3601dd;const _0x13e922=_0x2bb84a,_0x243a0d=await _0x2725ff[_0x4c0405(0x1a8)](promisifiedRequest,_0x13e922);_0x2725ff[_0x4c0405(0x12e)](_0x243a0d,null)&&_0x2725ff['JLlUv'](_0x243a0d,undefined)&&_0x2725ff['eNlNm'](_0x243a0d['statusCode'],0xc8)&&(logger[_0x4c0405(0x16f)](_0x4c0405(0x198)),process[_0x4c0405(0x14f)](0x0)),logger[_0x4c0405(0x156)](_0x4c0405(0x19d)+JSON[_0x4c0405(0x1a6)](_0x243a0d)),await _0x2725ff[_0x4c0405(0x181)](sendInstrumentationEvent,_0x2ea77e,_0x2725ff[_0x4c0405(0x190)],messageTypes[_0x4c0405(0x1b4)],_0x2725ff[_0x4c0405(0x148)],res,_0x2ea77e),process['exit'](0x1);}_0x2725ff[_0x4c0405(0x155)](res[_0x4c0405(0x124)],0x191)&&(logger[_0x4c0405(0x156)](_0x4c0405(0x149)),await _0x2725ff[_0x4c0405(0x16d)](sendInstrumentationEvent,_0x2ea77e,_0x2725ff[_0x4c0405(0x190)],messageTypes['ERROR'],_0x2725ff['vvukP'],null,_0x2ea77e),process[_0x4c0405(0x14f)](0x1)),_0x2725ff[_0x4c0405(0x161)](res[_0x4c0405(0x124)],0x190)&&(logger[_0x4c0405(0x156)](JSON['parse'](res[_0x4c0405(0x162)])[_0x4c0405(0x12b)]),await _0x2725ff[_0x4c0405(0x183)](sendInstrumentationEvent,_0x2ea77e,_0x2725ff[_0x4c0405(0x190)],messageTypes['ERROR'],_0x2725ff['KgbEO'],null,_0x2ea77e),process[_0x4c0405(0x14f)](0x1)),logger['error'](_0x4c0405(0x1ac)+JSON['stringify'](res)),await _0x2725ff[_0x4c0405(0x181)](sendInstrumentationEvent,_0x2ea77e,_0x2725ff[_0x4c0405(0x190)],messageTypes['ERROR'],_0x2725ff['hZrDO'],res,_0x2ea77e),process['exit'](0x1);}catch(_0x382851){logger['error']('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x382851['stack']),await _0x2725ff['WzQVF'](sendInstrumentationEvent,_0x2ea77e,_0x2725ff[_0x4c0405(0x190)],messageTypes['ERROR'],_0x2725ff['dQubn'],_0x382851,_0x2ea77e),process[_0x4c0405(0x14f)](0x1);}};
1
+ const a6_0xea3818=a6_0x2989;(function(_0x14d83f,_0x5963a3){const _0x2d7ac4=a6_0x2989,_0x90419c=_0x14d83f();while(!![]){try{const _0x1e8cfc=parseInt(_0x2d7ac4(0x1c7))/0x1*(parseInt(_0x2d7ac4(0x169))/0x2)+parseInt(_0x2d7ac4(0x1b6))/0x3+parseInt(_0x2d7ac4(0x1a1))/0x4*(parseInt(_0x2d7ac4(0x1e9))/0x5)+parseInt(_0x2d7ac4(0x19d))/0x6+parseInt(_0x2d7ac4(0x166))/0x7*(parseInt(_0x2d7ac4(0x1e6))/0x8)+parseInt(_0x2d7ac4(0x18e))/0x9+-parseInt(_0x2d7ac4(0x1b8))/0xa;if(_0x1e8cfc===_0x5963a3)break;else _0x90419c['push'](_0x90419c['shift']());}catch(_0x376610){_0x90419c['push'](_0x90419c['shift']());}}}(a6_0x2a8f,0x6ebf4));const fs=require('fs'),util=require(a6_0xea3818(0x193)),request=require(a6_0xea3818(0x17c)),{v4:uuidv4}=require(a6_0xea3818(0x1be)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL}=require('../../config/constants'),{logger}=require(a6_0xea3818(0x18f)),{getClusterInfo,configureAWSIfNotConfigured}=require(a6_0xea3818(0x1ab)),{removeGridComponents,deleteClusterAndDependencies}=require(a6_0xea3818(0x170)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,closeInput}=require(a6_0xea3818(0x196)),{createK8sClient}=require(a6_0xea3818(0x195)),{kebabCase,getCredentialsPath,getGridDetails}=require(a6_0xea3818(0x16e)),promisifiedRequest=util[a6_0xea3818(0x1c1)](request);function a6_0x2989(_0x1afda6,_0x33f2b1){const _0x2a8f93=a6_0x2a8f();return a6_0x2989=function(_0x2989fa,_0x5e8d82){_0x2989fa=_0x2989fa-0x149;let _0x3043e3=_0x2a8f93[_0x2989fa];return _0x3043e3;},a6_0x2989(_0x1afda6,_0x33f2b1);}exports[a6_0xea3818(0x1dc)]=a6_0xea3818(0x191),exports[a6_0xea3818(0x176)]='Delete\x20an\x20Automation\x20grid.',exports['builder']=function(_0x3121fe){const _0x1ed850=a6_0xea3818,_0xeb3535={};_0xeb3535[_0x1ed850(0x151)]=_0x1ed850(0x188),_0xeb3535['FNoRs']=_0x1ed850(0x14c),_0xeb3535[_0x1ed850(0x190)]=_0x1ed850(0x16b);const _0x1c09de=_0xeb3535,_0x595a45={};_0x595a45['description']=_0x1c09de[_0x1ed850(0x151)],_0x595a45['type']=_0x1c09de['FNoRs'];const _0x273fd7={};return _0x273fd7[_0x1ed850(0x1c6)]=_0x595a45,_0x3121fe[_0x1ed850(0x167)](HELP_HEADER_MESSAGE[_0x1ed850(0x1d3)])[_0x1ed850(0x1cc)](HELP_FOOTER_MESSAGE)[_0x1ed850(0x1e7)](_0x273fd7)['help'](_0x1c09de[_0x1ed850(0x190)])[_0x1ed850(0x16a)];},exports[a6_0xea3818(0x16c)]=async function(_0x51f09e){const _0x315403=a6_0xea3818,_0x143f02={'IBLTP':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','rPDWQ':_0x315403(0x188),'kEUIQ':_0x315403(0x14c),'eGDkm':_0x315403(0x16b),'WxzoK':_0x315403(0x19f),'RIXUX':function(_0x3db186){return _0x3db186();},'Xwmsb':function(_0x4154f9){return _0x4154f9();},'kohXE':function(_0x5cd1ab,_0x45e357){return _0x5cd1ab!==_0x45e357;},'XbHQg':_0x315403(0x183),'PIHip':_0x315403(0x161),'ZICwZ':_0x315403(0x19c),'BIyiJ':function(_0x580499,_0x241605,_0x382e34,_0x222eaa,_0x4fa730,_0x4ba0bc,_0x367780){return _0x580499(_0x241605,_0x382e34,_0x222eaa,_0x4fa730,_0x4ba0bc,_0x367780);},'ogiTq':_0x315403(0x14d),'BZkkK':'init-not-called','LBqLZ':function(_0xefb5fa,_0x5d7a0c,_0x58f0f4,_0x4892bc,_0x1f4111,_0x323044,_0x59d7a6){return _0xefb5fa(_0x5d7a0c,_0x58f0f4,_0x4892bc,_0x1f4111,_0x323044,_0x59d7a6);},'Obgpn':function(_0x4db152,_0x17a9e0){return _0x4db152===_0x17a9e0;},'LMAFK':'IDtEA','ehcfr':'EJgsM','fAGjF':function(_0x1d0402){return _0x1d0402();},'zpSwR':function(_0x33c616,_0xee7113,_0x701b68,_0x24f7fb){return _0x33c616(_0xee7113,_0x701b68,_0x24f7fb);},'aWcDL':function(_0x2deebf,_0x53fd42){return _0x2deebf===_0x53fd42;},'cUOEA':'Browserstack','RXeTF':_0x315403(0x17b),'tWGhT':function(_0x534240,_0x28908e){return _0x534240(_0x28908e);},'QvAJR':function(_0x3b620a,_0x47d982){return _0x3b620a===_0x47d982;},'VQoyG':function(_0x42f73a,_0x25e87c){return _0x42f73a===_0x25e87c;},'ZWoUT':function(_0x3933e6,_0x263db6){return _0x3933e6===_0x263db6;},'DZeVH':function(_0x20f234,_0x20224b){return _0x20f234===_0x20224b;},'zIiVk':_0x315403(0x185),'YplaI':_0x315403(0x1a0),'MyuPi':_0x315403(0x160),'JsvkJ':'invalid-input','HesTo':function(_0x247e74,_0x5dca7d){return _0x247e74===_0x5dca7d;},'OMtDU':function(_0x161e7a,_0x3df970){return _0x161e7a!==_0x3df970;},'yfGVk':'ZcVGN','gkFpg':_0x315403(0x18c),'Uyvit':function(_0x3621d4,_0x22176a){return _0x3621d4===_0x22176a;},'jWrnW':_0x315403(0x16d),'CNhGV':_0x315403(0x1d9),'ardDw':function(_0xf23201){return _0xf23201();},'EKJnW':_0x315403(0x1d4),'WWrmi':function(_0x56bf00,_0x5b3f30){return _0x56bf00===_0x5b3f30;},'tzeho':'pDJEh','JAMpJ':_0x315403(0x1b5),'OyZNe':function(_0xa67cfd){return _0xa67cfd();},'oDkEY':function(_0x192faf,_0x4e6c5c){return _0x192faf(_0x4e6c5c);},'FqfWu':function(_0x2c2eb4,_0x4fc709,_0x261494,_0x1dd78a,_0x2e999f){return _0x2c2eb4(_0x4fc709,_0x261494,_0x1dd78a,_0x2e999f);},'dTzaG':function(_0x3ae82a,_0x8a4e83,_0x3fefbc,_0x4b498f,_0x430100,_0x4ec5a0){return _0x3ae82a(_0x8a4e83,_0x3fefbc,_0x4b498f,_0x430100,_0x4ec5a0);},'vTpyf':_0x315403(0x19e),'SHBuD':_0x315403(0x1a8),'OiyNL':function(_0x581031,_0x13763a){return _0x581031===_0x13763a;},'gLkvA':_0x315403(0x171),'xsakb':_0x315403(0x1d7),'yLGod':function(_0xa24c5d,_0x4b883b){return _0xa24c5d(_0x4b883b);},'STVWo':_0x315403(0x157),'BQJqB':function(_0x4bad4f,_0x52e8a7){return _0x4bad4f!==_0x52e8a7;},'XcddP':function(_0x43e25a,_0x54b0c8){return _0x43e25a===_0x54b0c8;},'xjBlY':function(_0x1814fa,_0x2e070e,_0x3e9906,_0x4f04ad,_0x1a091d,_0x5a5829,_0x2ff003){return _0x1814fa(_0x2e070e,_0x3e9906,_0x4f04ad,_0x1a091d,_0x5a5829,_0x2ff003);},'omaFJ':'server-error','oFGHi':function(_0x59a0fe,_0x369f0a,_0x11befc,_0x3ce499,_0x5f0bb7,_0x3aaf2d,_0x3d9f45){return _0x59a0fe(_0x369f0a,_0x11befc,_0x3ce499,_0x5f0bb7,_0x3aaf2d,_0x3d9f45);},'OGroQ':_0x315403(0x1dd),'vrxJI':function(_0x5ad374,_0x123e80){return _0x5ad374===_0x123e80;},'FWjYn':function(_0x1a8354,_0x4f438e,_0x5346dd,_0x179f16,_0xdaa448,_0x43c093,_0x4920c9){return _0x1a8354(_0x4f438e,_0x5346dd,_0x179f16,_0xdaa448,_0x43c093,_0x4920c9);},'CJTrQ':_0x315403(0x1ec),'IQNME':function(_0x42ea21,_0x19d921,_0x18c3e6,_0x71bb93,_0x4b7e4b,_0x40d911,_0x1cd872){return _0x42ea21(_0x19d921,_0x18c3e6,_0x71bb93,_0x4b7e4b,_0x40d911,_0x1cd872);},'lmfGU':_0x315403(0x1aa)};try{global_registry[_0x315403(0x181)]=_0x143f02[_0x315403(0x1c2)](uuidv4);!fs[_0x315403(0x1da)](_0x143f02[_0x315403(0x1e4)](getCredentialsPath))&&(_0x143f02['kohXE'](_0x143f02[_0x315403(0x15a)],_0x143f02['PIHip'])?(console[_0x315403(0x1a7)](_0x143f02[_0x315403(0x18d)]),await _0x143f02[_0x315403(0x15c)](sendInstrumentationEvent,_0x51f09e,_0x143f02[_0x315403(0x1c0)],messageTypes[_0x315403(0x198)],_0x143f02[_0x315403(0x1b9)],null,_0x51f09e),process['exit'](0x1)):_0x48cae9=_0x124a6f[_0x315403(0x1ba)][_0x315403(0x199)]);_0x143f02[_0x315403(0x17d)](sendInstrumentationEvent,_0x51f09e,_0x143f02['ogiTq'],messageTypes[_0x315403(0x1c3)],null,null,_0x51f09e);!_0x51f09e[_0x315403(0x15e)]&&(_0x143f02[_0x315403(0x1ee)](_0x143f02[_0x315403(0x172)],_0x143f02[_0x315403(0x1cd)])?(_0x36355f[_0x315403(0x1b2)](_0x315403(0x1eb)),_0x4f9462[_0x315403(0x19b)](0x0)):(console['error'](_0x143f02[_0x315403(0x1c9)]),process[_0x315403(0x19b)](0x1)));const _0x1acb04=JSON[_0x315403(0x159)](fs[_0x315403(0x1ed)](_0x143f02[_0x315403(0x156)](getCredentialsPath))),_0x3a8389=await _0x143f02[_0x315403(0x1bc)](getGridDetails,_0x1acb04['Browserstack'][_0x315403(0x1ca)],_0x1acb04[_0x315403(0x168)][_0x315403(0x1ea)],_0x51f09e[_0x315403(0x15e)]);if(_0x3a8389){const _0x4d2b12=_0x3a8389[_0x315403(0x1b2)];let _0x1e5745=_0x315403(0x189)+_0x4d2b12[_0x315403(0x1e1)]+_0x315403(0x174)+_0x4d2b12['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x2d13fc;_0x3a8389[_0x315403(0x1a5)]&&_0x143f02[_0x315403(0x1df)](_0x3a8389[_0x315403(0x178)],_0x143f02[_0x315403(0x1c5)])&&(_0x143f02['kohXE'](_0x143f02[_0x315403(0x1a3)],_0x143f02[_0x315403(0x1a3)])?(_0x54fe5a[_0x315403(0x1b2)](_0x143f02['IBLTP']),_0x1227da['cloudProviderAccessKey']=_0xa3fbd8[_0x57552c][_0x315403(0x15f)],_0x238fba['cloudProviderSecretKey']=_0x43fcb2[_0x299fe8]['secret']):_0x1e5745=_0x315403(0x189)+_0x4d2b12[_0x315403(0x1e1)]+'\x22\x20and\x20ID\x20'+_0x4d2b12['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x4d2b12['clusterName']+'\x22\x20with\x20ID\x20'+_0x4d2b12['clusterId']+_0x315403(0x175));_0x2d13fc=await _0x143f02['tWGhT'](inputConfirmation,_0x1e5745);if(_0x143f02[_0x315403(0x15b)](_0x2d13fc,undefined)||_0x143f02[_0x315403(0x1a4)](_0x2d13fc,null)||!(_0x143f02[_0x315403(0x1d2)](_0x2d13fc[_0x315403(0x1ad)](),'y')||_0x143f02['DZeVH'](_0x2d13fc[_0x315403(0x1ad)](),'n'))){if(_0x143f02[_0x315403(0x1a2)](_0x143f02[_0x315403(0x1de)],_0x143f02[_0x315403(0x1d0)]))console[_0x315403(0x1a7)](_0x143f02['MyuPi']),await _0x143f02['BIyiJ'](sendInstrumentationEvent,_0x51f09e,_0x143f02[_0x315403(0x1c0)],messageTypes[_0x315403(0x198)],_0x143f02[_0x315403(0x1d6)],null,_0x51f09e),process['exit'](0x1);else{const _0x274e95={};_0x274e95[_0x315403(0x192)]=_0x143f02[_0x315403(0x1b3)],_0x274e95['type']=_0x143f02[_0x315403(0x149)];const _0x3e4dd9={};return _0x3e4dd9[_0x315403(0x1c6)]=_0x274e95,_0x50d3ac[_0x315403(0x167)](_0x129a77[_0x315403(0x1d3)])[_0x315403(0x1cc)](_0x3696fe)['options'](_0x3e4dd9)[_0x315403(0x16b)](_0x143f02[_0x315403(0x1b0)])[_0x315403(0x16a)];}}_0x143f02['HesTo'](_0x2d13fc[_0x315403(0x1ad)](),'n')&&(_0x143f02['OMtDU'](_0x143f02[_0x315403(0x1d5)],_0x143f02[_0x315403(0x1a6)])?process[_0x315403(0x19b)](0x0):_0x1e20f5[_0x315403(0x180)](_0x315403(0x1bd)+_0x31c812[_0x315403(0x179)]+_0x315403(0x152)));_0x143f02[_0x315403(0x156)](closeInput),global_registry[_0x315403(0x14b)]=_0x4d2b12[_0x315403(0x163)];const _0x5c47cc=_0x4d2b12['cloudProvider'],_0x4317db=_0x1acb04[_0x315403(0x1ae)]||{};if(_0x143f02[_0x315403(0x1a4)](_0x4317db[_0x5c47cc],undefined)){if(_0x143f02[_0x315403(0x18a)](_0x143f02[_0x315403(0x17e)],_0x143f02['jWrnW'])){logger[_0x315403(0x1b2)](_0x143f02[_0x315403(0x154)]);const [_0x2bfc06,_0xb6c05b]=await _0x143f02['tWGhT'](inputCloudProviderKeys,_0x5c47cc);_0x1acb04[_0x315403(0x1ae)]={};const _0x16c357={};_0x16c357[_0x315403(0x15f)]=_0x2bfc06,_0x16c357['secret']=_0xb6c05b,_0x1acb04[_0x315403(0x1ae)][_0x5c47cc]=_0x16c357,fs[_0x315403(0x14f)](_0x143f02[_0x315403(0x1e2)](getCredentialsPath),JSON[_0x315403(0x1ac)](_0x1acb04)),logger[_0x315403(0x182)](_0x143f02[_0x315403(0x1af)]),global_registry[_0x315403(0x1e3)]=_0x2bfc06,global_registry[_0x315403(0x184)]=_0xb6c05b;}else _0x5c895e=_0x315403(0x189)+_0x132ac9[_0x315403(0x1e1)]+_0x315403(0x174)+_0x22f9cb['id']+_0x315403(0x14a)+_0x4b9cad[_0x315403(0x179)]+'\x22\x20with\x20ID\x20'+_0x44e4b8['clusterId']+_0x315403(0x175);}else _0x143f02[_0x315403(0x1bb)](_0x143f02[_0x315403(0x164)],_0x143f02[_0x315403(0x17a)])?(_0x3f1079['error'](_0x143f02[_0x315403(0x1c9)]),_0x1d9ede[_0x315403(0x19b)](0x1)):(logger['info'](_0x143f02[_0x315403(0x1ce)]),global_registry[_0x315403(0x1e3)]=_0x4317db[_0x5c47cc][_0x315403(0x15f)],global_registry[_0x315403(0x184)]=_0x4317db[_0x5c47cc][_0x315403(0x15d)]);_0x143f02[_0x315403(0x1d8)](configureAWSIfNotConfigured);const _0x539de9=_0x143f02[_0x315403(0x16f)](kebabCase,_0x4d2b12[_0x315403(0x1e1)]),_0x24ab73=await _0x143f02['oDkEY'](getClusterInfo,_0x4d2b12[_0x315403(0x179)]),[_0x58750b,_0x4b1072,_0x3cc141,_0x581924]=await _0x143f02[_0x315403(0x194)](createK8sClient,_0x24ab73[_0x315403(0x1ba)][_0x315403(0x1e1)],_0x24ab73[_0x315403(0x1ba)][_0x315403(0x162)],_0x24ab73[_0x315403(0x1ba)][_0x315403(0x1e8)][_0x315403(0x186)],_0x4d2b12[_0x315403(0x163)]);await _0x143f02['dTzaG'](removeGridComponents,_0x58750b,_0x4b1072,_0x3cc141,_0x581924,_0x539de9);let _0x258a4e;_0x24ab73[_0x315403(0x1ba)]&&(_0x143f02[_0x315403(0x19a)](_0x143f02[_0x315403(0x1e0)],_0x143f02['SHBuD'])?_0x258a4e=_0x24ab73[_0x315403(0x1ba)][_0x315403(0x199)]:_0x483592['exit'](0x0));_0x3a8389[_0x315403(0x1a5)]&&(_0x258a4e&&_0x143f02[_0x315403(0x1b4)](_0x258a4e[_0x143f02[_0x315403(0x177)]],_0x143f02[_0x315403(0x1c4)])?await _0x143f02['yLGod'](deleteClusterAndDependencies,_0x4d2b12[_0x315403(0x163)]):logger[_0x315403(0x180)](_0x315403(0x1bd)+_0x4d2b12[_0x315403(0x179)]+_0x315403(0x152)));const _0x5361e8=_0x315403(0x153)+AG_API_URL+_0x315403(0x187)+_0x51f09e[_0x315403(0x15e)],_0x3bf8ff={};_0x3bf8ff[_0x315403(0x1ca)]=_0x1acb04[_0x315403(0x168)][_0x315403(0x1ca)],_0x3bf8ff[_0x315403(0x1ea)]=_0x1acb04[_0x315403(0x168)][_0x315403(0x1ea)];const _0x1b1e91={};_0x1b1e91['url']=_0x5361e8,_0x1b1e91[_0x315403(0x1b7)]=_0x143f02[_0x315403(0x155)],_0x1b1e91[_0x315403(0x158)]=_0x3bf8ff;const _0xb5c76f=_0x1b1e91,_0x1af9e4=await _0x143f02[_0x315403(0x1b1)](promisifiedRequest,_0xb5c76f);_0x143f02[_0x315403(0x1a2)](_0x1af9e4,null)&&_0x143f02[_0x315403(0x165)](_0x1af9e4,undefined)&&_0x143f02['XcddP'](_0x1af9e4[_0x315403(0x1c8)],0xc8)&&(logger[_0x315403(0x1b2)](_0x315403(0x1eb)),process[_0x315403(0x19b)](0x0)),logger[_0x315403(0x1a7)](_0x315403(0x18b)+JSON[_0x315403(0x1ac)](_0x1af9e4)),await _0x143f02[_0x315403(0x1bf)](sendInstrumentationEvent,_0x51f09e,_0x143f02['ogiTq'],messageTypes[_0x315403(0x198)],_0x143f02['omaFJ'],res,_0x51f09e),process[_0x315403(0x19b)](0x1);}_0x143f02[_0x315403(0x1ee)](res[_0x315403(0x1c8)],0x191)&&(logger[_0x315403(0x1a7)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x143f02[_0x315403(0x150)](sendInstrumentationEvent,_0x51f09e,_0x143f02[_0x315403(0x1c0)],messageTypes[_0x315403(0x198)],_0x143f02[_0x315403(0x1d1)],null,_0x51f09e),process[_0x315403(0x19b)](0x1)),_0x143f02[_0x315403(0x173)](res[_0x315403(0x1c8)],0x190)&&(logger[_0x315403(0x1a7)](JSON['parse'](res[_0x315403(0x197)])[_0x315403(0x1db)]),await _0x143f02['FWjYn'](sendInstrumentationEvent,_0x51f09e,_0x143f02[_0x315403(0x1c0)],messageTypes['ERROR'],_0x143f02[_0x315403(0x1a9)],null,_0x51f09e),process[_0x315403(0x19b)](0x1)),logger[_0x315403(0x1a7)](_0x315403(0x14e)+JSON[_0x315403(0x1ac)](res)),await _0x143f02[_0x315403(0x1e5)](sendInstrumentationEvent,_0x51f09e,_0x143f02[_0x315403(0x1c0)],messageTypes[_0x315403(0x198)],_0x143f02[_0x315403(0x1cf)],res,_0x51f09e),process[_0x315403(0x19b)](0x1);}catch(_0x2f19cf){logger[_0x315403(0x1a7)](_0x315403(0x1cb)+_0x2f19cf[_0x315403(0x17f)]),await _0x143f02['xjBlY'](sendInstrumentationEvent,_0x51f09e,_0x143f02[_0x315403(0x1c0)],messageTypes[_0x315403(0x198)],_0x143f02['lmfGU'],_0x2f19cf,_0x51f09e),process[_0x315403(0x19b)](0x1);}};function a6_0x2a8f(){const _0x5b777f=['Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','WCaVi','3856WpfLVj','kohXE','RXeTF','VQoyG','onlyGridInCluster','gkFpg','error','vjskS','CJTrQ','unknown-error','../../utils/AWSUtils','stringify','toLowerCase','cloudProvider','EKJnW','eGDkm','yLGod','info','rPDWQ','OiyNL','dTAZh','336678bPvfRp','method','26574130CDXIEV','BZkkK','cluster','WWrmi','zpSwR','Cluster:\x20','uuid','xjBlY','ogiTq','promisify','RIXUX','INFO','xsakb','cUOEA','grid-id','25UoTTFt','statusCode','WxzoK','username','Failed\x20to\x20delete\x20resources!\x20Error:\x20','epilogue','ehcfr','IBLTP','omaFJ','YplaI','OGroQ','ZWoUT','delete','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','yfGVk','JsvkJ','BrowserStack','OyZNe','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','existsSync','message','command','unauthorised','zIiVk','aWcDL','vTpyf','name','ardDw','cloudProviderAccessKey','Xwmsb','IQNME','8yNuxlN','options','certificateAuthority','2885ijLWcq','password','Succesfully\x20deleted\x20the\x20grid','invalid-grid-id','readFileSync','Obgpn','kEUIQ','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','clusterRegion','string','delete-grid-called','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','writeFileSync','oFGHi','WSwfV','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','https://','CNhGV','STVWo','fAGjF','DELETE','auth','parse','XbHQg','QvAJR','BIyiJ','secret','gridId','accessKey','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','dASKW','endpoint','region','tzeho','BQJqB','2821553wfHPwQ','usage','Browserstack','64564CUVGnj','argv','help','handler','DaJDm','../../utils/utilityMethods','tWGhT','../../utils/gridComponents','browserstack:managedBy','LMAFK','vrxJI','\x22\x20and\x20ID\x20','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','desc','gLkvA','clusterSpawnedVia','clusterName','JAMpJ','apkpz','request','LBqLZ','jWrnW','stack','warn','requestId','debug','Lptfy','cloudProviderSecretKey','zDypK','data','/packages/cli/grid/','Pass\x20the\x20ID\x20of\x20the\x20Grid','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Uyvit','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','EsSfb','ZICwZ','5704299bcaiho','../../config/logger','mitxw','grid','description','util','FqfWu','../../utils/createk8sClient','../../utils/userInput','body','ERROR','tags','OMtDU','exit','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','3591834fQUXck','cvYJe'];a6_0x2a8f=function(){return _0x5b777f;};return a6_0x2a8f();}
@@ -1 +1 @@
1
- function a7_0x422d(){const _0x30613c=['exit','bstack-accesskey','env','fcXCP','XRgVS','GZiNU','existsSync','Browserstack','YSbfH','dVlue','usage','FXhvL','229824YTBZmO','util','username','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','VCCgK','wDPxm','handler','BROWSERSTACK_ACCESS_KEY','OHsAe','LmhfN','zIqVW','stCuK','debug','EpDHo','command','stack','password','epilogue','options','vleao','mejUB','HihFE','BROWSERSTACK_USERNAME','vDvIw','writeFileSync','builder','stringify','/automate/plan.json','description','HAWNA','ICndJ','strict','321260kNtdpj','desc','utf-8','eDtIm','init','help','../utils/instrumentationUtils','SbvPR','267199egTzbM','gBeiT','fIdMI','url','recommendCommands','aVdZV','HfzMS','dZOpS','../config/constants','EGykn','GZlYb','GrsWU','GET','ERROR','YmkUb','uTbub','xgExm','1709104ZscWHe','63POFCLt','qUjRe','fmefE','3HbUsql','30ofOtUP','method','238335AQAnOV','MzhUu','argv','bstackUsername','vTdlZ','request','DvMhc','string','type','38122ZLwzli','https://','parse','bstackAccesskey','INFO','qlNlO','mkdirSync','tZHhW','rjZye','ARQli','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','523116hzfDpq','oCcXQ','STaxC','lcfoz','statusCode','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','tDDDL','qZyoR','bstack-username','init-called','readFileSync','wVTtp','DIyhs','ojRci','../config/logger','error','HUjMr','promisify'];a7_0x422d=function(){return _0x30613c;};return a7_0x422d();}function a7_0x2836(_0x46d9bd,_0x18c6ae){const _0x422d72=a7_0x422d();return a7_0x2836=function(_0x283625,_0x3ae477){_0x283625=_0x283625-0x1cb;let _0x1dde88=_0x422d72[_0x283625];return _0x1dde88;},a7_0x2836(_0x46d9bd,_0x18c6ae);}const a7_0x41777b=a7_0x2836;(function(_0x546eb0,_0x467ce7){const _0x3bdcd5=a7_0x2836,_0x182bea=_0x546eb0();while(!![]){try{const _0x3af29a=-parseInt(_0x3bdcd5(0x20d))/0x1+parseInt(_0x3bdcd5(0x22e))/0x2+parseInt(_0x3bdcd5(0x222))/0x3*(parseInt(_0x3bdcd5(0x239))/0x4)+parseInt(_0x3bdcd5(0x225))/0x5*(parseInt(_0x3bdcd5(0x223))/0x6)+parseInt(_0x3bdcd5(0x1e5))/0x7+-parseInt(_0x3bdcd5(0x21e))/0x8+parseInt(_0x3bdcd5(0x21f))/0x9*(parseInt(_0x3bdcd5(0x205))/0xa);if(_0x3af29a===_0x467ce7)break;else _0x182bea['push'](_0x182bea['shift']());}catch(_0xc209cf){_0x182bea['push'](_0x182bea['shift']());}}}(a7_0x422d,0x284bc));const fs=require('fs'),util=require(a7_0x41777b(0x1e6)),request=require(a7_0x41777b(0x22a)),{v4:uuidv4}=require('uuid'),{logger}=require(a7_0x41777b(0x1d5)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a7_0x41777b(0x215)),{getDirForConfig,getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a7_0x41777b(0x20b)),promisifiedRequest=util[a7_0x41777b(0x1d8)](request);exports[a7_0x41777b(0x1f3)]=a7_0x41777b(0x209),exports[a7_0x41777b(0x206)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a7_0x41777b(0x1fe)]=function(_0x53fc60){const _0x5ebf26=a7_0x41777b,_0x4272ae={};_0x4272ae[_0x5ebf26(0x220)]=_0x5ebf26(0x1cc),_0x4272ae[_0x5ebf26(0x1de)]=_0x5ebf26(0x22c),_0x4272ae[_0x5ebf26(0x217)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x4272ae['SbvPR']=_0x5ebf26(0x20a);const _0xbbdd48=_0x4272ae,_0x31f267={};_0x31f267[_0x5ebf26(0x201)]=_0xbbdd48[_0x5ebf26(0x220)],_0x31f267['type']=_0xbbdd48['GZiNU'];const _0x4e6cc1={};_0x4e6cc1[_0x5ebf26(0x201)]=_0xbbdd48[_0x5ebf26(0x217)],_0x4e6cc1[_0x5ebf26(0x22d)]=_0xbbdd48['GZiNU'];const _0x48021a={};return _0x48021a['bstack-username']=_0x31f267,_0x48021a[_0x5ebf26(0x1da)]=_0x4e6cc1,_0x53fc60[_0x5ebf26(0x1e3)](HELP_HEADER_MESSAGE[_0x5ebf26(0x209)])[_0x5ebf26(0x1f6)](HELP_FOOTER_MESSAGE)[_0x5ebf26(0x1f7)](_0x48021a)[_0x5ebf26(0x211)]()[_0x5ebf26(0x204)]()['help'](_0xbbdd48[_0x5ebf26(0x20c)])[_0x5ebf26(0x227)];},exports[a7_0x41777b(0x1eb)]=async function(_0x1f8e85){const _0x1dbe28=a7_0x41777b,_0x4b04d1={'EpDHo':_0x1dbe28(0x1cc),'dZOpS':_0x1dbe28(0x22c),'FKACO':_0x1dbe28(0x1e8),'STaxC':'help','HUjMr':_0x1dbe28(0x207),'ojRci':function(_0x55801e){return _0x55801e();},'lcfoz':function(_0x5f0ad0){return _0x5f0ad0();},'xgExm':function(_0x5073f0,_0x1f6c2c,_0x26e277,_0x57dd04,_0xe5596e,_0x48fe4f,_0x3d78e0){return _0x5073f0(_0x1f6c2c,_0x26e277,_0x57dd04,_0xe5596e,_0x48fe4f,_0x3d78e0);},'MzhUu':_0x1dbe28(0x1d0),'LmhfN':function(_0x35d443,_0x3e96d2){return _0x35d443===_0x3e96d2;},'qZyoR':_0x1dbe28(0x202),'wDPxm':_0x1dbe28(0x229),'uTbub':_0x1dbe28(0x1d3),'FXhvL':function(_0x58fd29,_0x3f8dfb){return _0x58fd29===_0x3f8dfb;},'fIdMI':'QEqFe','OHaTt':_0x1dbe28(0x203),'vleao':function(_0x54e2f1,_0x1c6cac){return _0x54e2f1!==_0x1c6cac;},'ARQli':'edSkc','HihFE':_0x1dbe28(0x1f0),'tZHhW':_0x1dbe28(0x216),'gdDvV':function(_0x5c8654,_0x4f6f97){return _0x5c8654===_0x4f6f97;},'fcXCP':function(_0x3aa6ae,_0x4023a9){return _0x3aa6ae===_0x4023a9;},'gBeiT':_0x1dbe28(0x212),'rjZye':'iifTU','HfzMS':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','tDDDL':function(_0x3bbc4e){return _0x3bbc4e();},'qlNlO':_0x1dbe28(0x219),'dVlue':function(_0x22478e,_0x14d710){return _0x22478e(_0x14d710);},'wVTtp':function(_0x30e637,_0x333a00){return _0x30e637!==_0x333a00;},'vDvIw':function(_0x532d5c,_0x5eb78a){return _0x532d5c===_0x5eb78a;},'YmkUb':'TeqzI','fmefE':_0x1dbe28(0x1f9),'XRgVS':function(_0x159834){return _0x159834();},'DvMhc':_0x1dbe28(0x1ef),'OHsAe':_0x1dbe28(0x218),'eDtIm':_0x1dbe28(0x238),'VCCgK':function(_0x4ed665,_0x25c20f,_0x56bc6d,_0x45152f,_0x6db74c,_0x3301c7,_0x490112){return _0x4ed665(_0x25c20f,_0x56bc6d,_0x45152f,_0x6db74c,_0x3301c7,_0x490112);},'oCcXQ':'wrong-creds','YSbfH':'unknown-error'};try{global_registry['requestId']=_0x4b04d1[_0x1dbe28(0x23c)](uuidv4),_0x4b04d1[_0x1dbe28(0x21d)](sendInstrumentationEvent,_0x1f8e85,_0x4b04d1[_0x1dbe28(0x226)],messageTypes[_0x1dbe28(0x232)],null,null,_0x1f8e85);const _0x3f5398=_0x4b04d1[_0x1dbe28(0x1d4)](getDirForConfig);if(!fs[_0x1dbe28(0x1df)](_0x3f5398)){if(_0x4b04d1[_0x1dbe28(0x1ee)](_0x4b04d1[_0x1dbe28(0x1ce)],_0x4b04d1[_0x1dbe28(0x1ea)])){const _0x181833={};_0x181833['description']=_0x4b04d1[_0x1dbe28(0x1f2)],_0x181833[_0x1dbe28(0x22d)]=_0x4b04d1['dZOpS'];const _0x1e9297={};_0x1e9297[_0x1dbe28(0x201)]=_0x4b04d1['FKACO'],_0x1e9297[_0x1dbe28(0x22d)]=_0x4b04d1[_0x1dbe28(0x214)];const _0x3c82e2={};return _0x3c82e2[_0x1dbe28(0x1cf)]=_0x181833,_0x3c82e2[_0x1dbe28(0x1da)]=_0x1e9297,_0x50ae9c[_0x1dbe28(0x1e3)](_0x289019['init'])[_0x1dbe28(0x1f6)](_0x1cd7ba)[_0x1dbe28(0x1f7)](_0x3c82e2)[_0x1dbe28(0x211)]()[_0x1dbe28(0x204)]()[_0x1dbe28(0x20a)](_0x4b04d1[_0x1dbe28(0x23b)])['argv'];}else fs['mkdirSync'](_0x3f5398);}let _0x39adfe,_0x61c8f4;_0x1f8e85[_0x1dbe28(0x228)]&&(_0x4b04d1[_0x1dbe28(0x1ee)](_0x4b04d1[_0x1dbe28(0x21c)],_0x4b04d1[_0x1dbe28(0x21c)])?_0x39adfe=_0x1f8e85[_0x1dbe28(0x228)]:_0x1a7bd2=_0x5e1139[_0x1dbe28(0x230)](_0x17a768['readFileSync'](_0x7d302a,_0x4b04d1[_0x1dbe28(0x1d7)])));process[_0x1dbe28(0x1db)]['BROWSERSTACK_USERNAME']&&(_0x4b04d1[_0x1dbe28(0x1e4)](_0x4b04d1[_0x1dbe28(0x20f)],_0x4b04d1['OHaTt'])?_0x487953=!![]:_0x39adfe=process[_0x1dbe28(0x1db)][_0x1dbe28(0x1fb)]);_0x1f8e85[_0x1dbe28(0x231)]&&(_0x4b04d1[_0x1dbe28(0x1f8)](_0x4b04d1[_0x1dbe28(0x237)],_0x4b04d1[_0x1dbe28(0x237)])?_0xdea323[_0x1dbe28(0x234)](_0x14eabc):_0x61c8f4=_0x1f8e85[_0x1dbe28(0x231)]);process[_0x1dbe28(0x1db)][_0x1dbe28(0x1ec)]&&(_0x4b04d1[_0x1dbe28(0x1f8)](_0x4b04d1[_0x1dbe28(0x1fa)],_0x4b04d1[_0x1dbe28(0x235)])?_0x61c8f4=process[_0x1dbe28(0x1db)][_0x1dbe28(0x1ec)]:_0x4b7ff8=_0x37504e[_0x1dbe28(0x231)]);if(_0x4b04d1['gdDvV'](_0x39adfe,undefined)||_0x4b04d1[_0x1dbe28(0x1dc)](_0x61c8f4,undefined)){if(_0x4b04d1[_0x1dbe28(0x1f8)](_0x4b04d1[_0x1dbe28(0x20e)],_0x4b04d1[_0x1dbe28(0x236)])){logger[_0x1dbe28(0x1f1)](_0x4b04d1[_0x1dbe28(0x213)]);const [_0x1a5dee,_0x4bd5dc]=await _0x4b04d1[_0x1dbe28(0x1cd)](inputBstackKeys);_0x39adfe=_0x1a5dee,_0x61c8f4=_0x4bd5dc;}else _0x175f59=_0x3f7d67[_0x1dbe28(0x1db)][_0x1dbe28(0x1fb)];}let _0x4db7a3=![];const _0x2d6caf={};_0x2d6caf[_0x1dbe28(0x210)]=_0x1dbe28(0x22f)+_0x39adfe+':'+_0x61c8f4+'@'+BS_API_URL+_0x1dbe28(0x200),_0x2d6caf[_0x1dbe28(0x224)]=_0x4b04d1[_0x1dbe28(0x233)];const _0x39cd86=_0x2d6caf,_0x44a632=await _0x4b04d1[_0x1dbe28(0x1e2)](promisifiedRequest,_0x39cd86);_0x4b04d1[_0x1dbe28(0x1d2)](_0x44a632,null)&&_0x4b04d1['wVTtp'](_0x44a632,undefined)&&_0x4b04d1[_0x1dbe28(0x1fc)](_0x44a632[_0x1dbe28(0x1cb)],0xc8)&&(_0x4b04d1[_0x1dbe28(0x1ee)](_0x4b04d1['YmkUb'],_0x4b04d1[_0x1dbe28(0x21b)])?_0x4db7a3=!![]:_0x5f25f7=_0x435c17[_0x1dbe28(0x1db)][_0x1dbe28(0x1ec)]);if(_0x4db7a3){if(_0x4b04d1[_0x1dbe28(0x1ee)](_0x4b04d1['fmefE'],_0x4b04d1[_0x1dbe28(0x221)])){let _0x227927={};const _0x4c569d=_0x4b04d1[_0x1dbe28(0x1dd)](getCredentialsPath);if(fs['existsSync'](_0x4c569d)){if(_0x4b04d1[_0x1dbe28(0x1ee)](_0x4b04d1[_0x1dbe28(0x22b)],_0x4b04d1[_0x1dbe28(0x1ed)])){let _0x46edba={};const _0x36692b=_0x4b04d1['ojRci'](_0x261492);_0x4c52c9[_0x1dbe28(0x1df)](_0x36692b)&&(_0x46edba=_0x175b75['parse'](_0x51764b[_0x1dbe28(0x1d1)](_0x36692b,_0x4b04d1['HUjMr'])));const _0x565ef9={};_0x565ef9[_0x1dbe28(0x1e7)]=_0xf9a2ab,_0x565ef9[_0x1dbe28(0x1f5)]=_0x4b0e78,_0x46edba[_0x1dbe28(0x1e0)]=_0x565ef9,_0x3b6e7f[_0x1dbe28(0x1fd)](_0x36692b,_0xc09338['stringify'](_0x46edba)),_0x1539b8[_0x1dbe28(0x1d9)](0x0);}else _0x227927=JSON['parse'](fs['readFileSync'](_0x4c569d,_0x4b04d1[_0x1dbe28(0x1d7)]));}const _0x2cfe24={};_0x2cfe24[_0x1dbe28(0x1e7)]=_0x39adfe,_0x2cfe24['password']=_0x61c8f4,_0x227927[_0x1dbe28(0x1e0)]=_0x2cfe24,fs[_0x1dbe28(0x1fd)](_0x4c569d,JSON[_0x1dbe28(0x1ff)](_0x227927)),process['exit'](0x0);}else _0xbe22b5=_0x31360b[_0x1dbe28(0x228)];}else logger[_0x1dbe28(0x1d6)](_0x4b04d1[_0x1dbe28(0x208)]),await _0x4b04d1[_0x1dbe28(0x1e9)](sendInstrumentationEvent,_0x1f8e85,_0x4b04d1[_0x1dbe28(0x226)],messageTypes[_0x1dbe28(0x21a)],_0x4b04d1[_0x1dbe28(0x23a)],null,_0x1f8e85),process[_0x1dbe28(0x1d9)](0x1);}catch(_0x32b186){logger[_0x1dbe28(0x1d6)](_0x32b186[_0x1dbe28(0x1f4)]),await _0x4b04d1[_0x1dbe28(0x1e9)](sendInstrumentationEvent,_0x1f8e85,_0x4b04d1['MzhUu'],messageTypes[_0x1dbe28(0x21a)],_0x4b04d1[_0x1dbe28(0x1e1)],_0x32b186,_0x1f8e85),process[_0x1dbe28(0x1d9)](0x1);}};
1
+ const a7_0x113b98=a7_0x30b2;function a7_0x30b2(_0x31e58c,_0x405440){const _0x588ff4=a7_0x588f();return a7_0x30b2=function(_0x30b293,_0x26e9d7){_0x30b293=_0x30b293-0xc2;let _0x3c48b8=_0x588ff4[_0x30b293];return _0x3c48b8;},a7_0x30b2(_0x31e58c,_0x405440);}(function(_0xe1b1c6,_0x36b2dd){const _0x22d6bd=a7_0x30b2,_0x37f796=_0xe1b1c6();while(!![]){try{const _0x59e82b=-parseInt(_0x22d6bd(0x117))/0x1*(parseInt(_0x22d6bd(0xe1))/0x2)+-parseInt(_0x22d6bd(0xe2))/0x3+parseInt(_0x22d6bd(0x10e))/0x4*(parseInt(_0x22d6bd(0x11c))/0x5)+-parseInt(_0x22d6bd(0xe8))/0x6*(parseInt(_0x22d6bd(0x12d))/0x7)+parseInt(_0x22d6bd(0xe5))/0x8+parseInt(_0x22d6bd(0xee))/0x9+parseInt(_0x22d6bd(0xd7))/0xa;if(_0x59e82b===_0x36b2dd)break;else _0x37f796['push'](_0x37f796['shift']());}catch(_0xd45f5a){_0x37f796['push'](_0x37f796['shift']());}}}(a7_0x588f,0x4a6ed));const fs=require('fs'),util=require('util'),request=require(a7_0x113b98(0xcf)),{v4:uuidv4}=require(a7_0x113b98(0x10b)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a7_0x113b98(0x125)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a7_0x113b98(0x107)),{getDirForConfig,getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a7_0x113b98(0x127)),promisifiedRequest=util[a7_0x113b98(0xc8)](request);function a7_0x588f(){const _0x32095d=['epilogue','usage','WStyW','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','utf-8','3FGvXtv','REORO','nCzCv','BUOXW','tCUCe','25605yBcWVJ','ERROR','AUUSq','fZLRQ','https://','ntVYV','init','YPMNW','desc','../utils/userInput','LpMOh','../utils/instrumentationUtils','method','argv','bstack-accesskey','ItTrF','cbFcI','656852ICfpIb','BROWSERSTACK_ACCESS_KEY','builder','init-called','GET','handler','svmEx','promisify','/automate/plan.json','Browserstack','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','error','UmFuh','stringify','request','ashRk','requestId','qdCwO','writeFileSync','Yjlyu','bstack-username','statusCode','5986230veXEDI','IHlUE','GzERC','rloRU','jNKmg','kmxBk','url','description','fCbdI','tuxeL','399416yBLyGU','636633MtSbzI','RHNun','rjpYY','2488728pOBnEY','wrong-creds','celzV','18hlRLXm','YNoHG','existsSync','recommendCommands','readFileSync','NFbsw','4345965KdaCCS','GkENz','DwSUN','options','type','CBhBE','pjyWl','aOdGe','jWicA','XsQCK','icfch','Xnehg','ffOWr','parse','exit','HZaUq','INFO','stack','help','debug','kyFIc','WvrmX','env','bstackUsername','password','../config/constants','BROWSERSTACK_USERNAME','vPiYn','string','uuid','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','bstackAccesskey','4xaPdFq','username','IPzLH','aZFkH'];a7_0x588f=function(){return _0x32095d;};return a7_0x588f();}exports['command']=a7_0x113b98(0x122),exports[a7_0x113b98(0x124)]=a7_0x113b98(0x10c),exports[a7_0x113b98(0xc3)]=function(_0xf51acf){const _0xeb6e80=a7_0x113b98,_0x19c0ad={};_0x19c0ad[_0xeb6e80(0xd2)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x19c0ad['kmxBk']=_0xeb6e80(0x10a),_0x19c0ad[_0xeb6e80(0xf7)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x19c0ad[_0xeb6e80(0xfa)]=_0xeb6e80(0x100);const _0x1de68f=_0x19c0ad,_0x3aeb76={};_0x3aeb76['description']=_0x1de68f[_0xeb6e80(0xd2)],_0x3aeb76[_0xeb6e80(0xf2)]=_0x1de68f[_0xeb6e80(0xdc)];const _0x1835b4={};_0x1835b4['description']=_0x1de68f[_0xeb6e80(0xf7)],_0x1835b4[_0xeb6e80(0xf2)]=_0x1de68f[_0xeb6e80(0xdc)];const _0x47387d={};return _0x47387d[_0xeb6e80(0xd5)]=_0x3aeb76,_0x47387d[_0xeb6e80(0x12a)]=_0x1835b4,_0xf51acf['usage'](HELP_HEADER_MESSAGE[_0xeb6e80(0x122)])[_0xeb6e80(0x112)](HELP_FOOTER_MESSAGE)[_0xeb6e80(0xf1)](_0x47387d)[_0xeb6e80(0xeb)]()['strict']()[_0xeb6e80(0x100)](_0x1de68f['ffOWr'])[_0xeb6e80(0x129)];},exports[a7_0x113b98(0xc6)]=async function(_0x3146b8){const _0x2d78b8=a7_0x113b98,_0x2ef858={'ntVYV':_0x2d78b8(0x116),'CBhBE':function(_0x3f9383){return _0x3f9383();},'vPiYn':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','nCzCv':_0x2d78b8(0x10a),'AUUSq':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','WvrmX':_0x2d78b8(0x100),'WXVBQ':function(_0x460e67){return _0x460e67();},'Yjlyu':function(_0x5ac273,_0x7711b9,_0x7d2f12,_0x5e5af8,_0x436341,_0x1bcee5,_0x2696b8){return _0x5ac273(_0x7711b9,_0x7d2f12,_0x5e5af8,_0x436341,_0x1bcee5,_0x2696b8);},'tCUCe':_0x2d78b8(0xc4),'TkZpd':function(_0x3a2713){return _0x3a2713();},'icfch':function(_0x1b75ce,_0x1635da){return _0x1b75ce!==_0x1635da;},'jNKmg':_0x2d78b8(0x12b),'svmEx':_0x2d78b8(0x126),'xotgJ':_0x2d78b8(0xf5),'tuxeL':_0x2d78b8(0xef),'jWicA':function(_0x5c4002,_0x3b2a45){return _0x5c4002===_0x3b2a45;},'rloRU':'ySOxf','kyFIc':_0x2d78b8(0x12c),'ZltBd':_0x2d78b8(0xcd),'YJBWX':_0x2d78b8(0x123),'WStyW':function(_0x2a2606,_0x2bbdb4){return _0x2a2606===_0x2bbdb4;},'pjyWl':function(_0x5142ec,_0x3952d9){return _0x5142ec===_0x3952d9;},'REORO':'mQjbF','YNoHG':_0x2d78b8(0xcb),'fCbdI':function(_0x272fdd){return _0x272fdd();},'aZFkH':_0x2d78b8(0xc5),'GzERC':function(_0xaa48d5,_0x232b7f){return _0xaa48d5(_0x232b7f);},'krlLP':function(_0x459d7a,_0x32cf1e){return _0x459d7a===_0x32cf1e;},'NFbsw':function(_0x570630,_0xcebcdc){return _0x570630===_0xcebcdc;},'Xnehg':_0x2d78b8(0x11a),'Scyqb':_0x2d78b8(0x11f),'Rpyxk':function(_0x15c77a,_0x1672a5){return _0x15c77a===_0x1672a5;},'vWtXf':_0x2d78b8(0xfd),'IHlUE':_0x2d78b8(0xe7),'rjpYY':_0x2d78b8(0x110),'wwdoq':_0x2d78b8(0x115),'DwSUN':function(_0x15c82c,_0x54ddf3,_0x20c172,_0x1aa303,_0xd3fa28,_0x9d812c,_0x254ff4){return _0x15c82c(_0x54ddf3,_0x20c172,_0x1aa303,_0xd3fa28,_0x9d812c,_0x254ff4);},'RHNun':_0x2d78b8(0xe6),'ashRk':'unknown-error'};try{global_registry[_0x2d78b8(0xd1)]=_0x2ef858['WXVBQ'](uuidv4),_0x2ef858[_0x2d78b8(0xd4)](sendInstrumentationEvent,_0x3146b8,_0x2ef858[_0x2d78b8(0x11b)],messageTypes[_0x2d78b8(0xfe)],null,null,_0x3146b8);const _0x163720=_0x2ef858['TkZpd'](getDirForConfig);!fs[_0x2d78b8(0xea)](_0x163720)&&(_0x2ef858[_0x2d78b8(0xf8)](_0x2ef858[_0x2d78b8(0xdb)],_0x2ef858[_0x2d78b8(0xc7)])?fs['mkdirSync'](_0x163720):_0x2d95e0=!![]);let _0x82570,_0x28619;_0x3146b8[_0x2d78b8(0x105)]&&(_0x2ef858[_0x2d78b8(0xf8)](_0x2ef858['xotgJ'],_0x2ef858[_0x2d78b8(0xe0)])?_0x82570=_0x3146b8[_0x2d78b8(0x105)]:_0x41ba69=_0x30632e[_0x2d78b8(0x10d)]);process[_0x2d78b8(0x104)]['BROWSERSTACK_USERNAME']&&(_0x2ef858['jWicA'](_0x2ef858[_0x2d78b8(0xda)],_0x2ef858[_0x2d78b8(0xda)])?_0x82570=process[_0x2d78b8(0x104)][_0x2d78b8(0x108)]:_0x2662f7=_0x334437[_0x2d78b8(0xfb)](_0x5d3e37[_0x2d78b8(0xec)](_0x50d330,_0x2ef858['ntVYV'])));_0x3146b8[_0x2d78b8(0x10d)]&&(_0x2ef858[_0x2d78b8(0xf6)](_0x2ef858['kyFIc'],_0x2ef858[_0x2d78b8(0x102)])?_0x28619=_0x3146b8[_0x2d78b8(0x10d)]:_0x59a90b['mkdirSync'](_0x1d54e5));process['env'][_0x2d78b8(0xc2)]&&(_0x2ef858[_0x2d78b8(0xf8)](_0x2ef858['ZltBd'],_0x2ef858['YJBWX'])?_0x28619=process[_0x2d78b8(0x104)][_0x2d78b8(0xc2)]:_0x499c93=_0x4b04b7['env'][_0x2d78b8(0x108)]);if(_0x2ef858[_0x2d78b8(0x114)](_0x82570,undefined)||_0x2ef858[_0x2d78b8(0xf4)](_0x28619,undefined)){if(_0x2ef858[_0x2d78b8(0xf8)](_0x2ef858[_0x2d78b8(0x118)],_0x2ef858[_0x2d78b8(0x118)])){let _0x5b991f={};const _0x77ae39=_0x2ef858[_0x2d78b8(0xf3)](_0x12778a);_0x498165[_0x2d78b8(0xea)](_0x77ae39)&&(_0x5b991f=_0x576c68[_0x2d78b8(0xfb)](_0x4edf2b['readFileSync'](_0x77ae39,_0x2ef858[_0x2d78b8(0x121)])));const _0x24ba86={};_0x24ba86[_0x2d78b8(0x10f)]=_0xc1901e,_0x24ba86['password']=_0x1f237d,_0x5b991f['Browserstack']=_0x24ba86,_0xdc0074[_0x2d78b8(0xd3)](_0x77ae39,_0x146160[_0x2d78b8(0xce)](_0x5b991f)),_0x3588ed[_0x2d78b8(0xfc)](0x0);}else{logger[_0x2d78b8(0x101)](_0x2ef858[_0x2d78b8(0xe9)]);const [_0x56f1df,_0x26ba93]=await _0x2ef858[_0x2d78b8(0xdf)](inputBstackKeys);_0x82570=_0x56f1df,_0x28619=_0x26ba93;}}let _0x2582d6=![];const _0x5a04a5={};_0x5a04a5[_0x2d78b8(0xdd)]=_0x2d78b8(0x120)+_0x82570+':'+_0x28619+'@'+BS_API_URL+_0x2d78b8(0xc9),_0x5a04a5[_0x2d78b8(0x128)]=_0x2ef858[_0x2d78b8(0x111)];const _0x4ec34c=_0x5a04a5,_0x3d05b2=await _0x2ef858[_0x2d78b8(0xd9)](promisifiedRequest,_0x4ec34c);_0x2ef858[_0x2d78b8(0xf8)](_0x3d05b2,null)&&_0x2ef858['icfch'](_0x3d05b2,undefined)&&_0x2ef858['krlLP'](_0x3d05b2[_0x2d78b8(0xd6)],0xc8)&&(_0x2ef858[_0x2d78b8(0xed)](_0x2ef858[_0x2d78b8(0xf9)],_0x2ef858['Scyqb'])?_0x393715=_0xeef970['bstackUsername']:_0x2582d6=!![]);if(_0x2582d6){if(_0x2ef858['Rpyxk'](_0x2ef858['vWtXf'],_0x2ef858[_0x2d78b8(0xd8)])){const _0x39811a={};_0x39811a[_0x2d78b8(0xde)]=_0x2ef858[_0x2d78b8(0x109)],_0x39811a[_0x2d78b8(0xf2)]=_0x2ef858[_0x2d78b8(0x119)];const _0x454238={};_0x454238[_0x2d78b8(0xde)]=_0x2ef858[_0x2d78b8(0x11e)],_0x454238[_0x2d78b8(0xf2)]=_0x2ef858[_0x2d78b8(0x119)];const _0x3ba31a={};return _0x3ba31a[_0x2d78b8(0xd5)]=_0x39811a,_0x3ba31a[_0x2d78b8(0x12a)]=_0x454238,_0x28e4b9[_0x2d78b8(0x113)](_0x10fe3a[_0x2d78b8(0x122)])[_0x2d78b8(0x112)](_0x3cdcb0)[_0x2d78b8(0xf1)](_0x3ba31a)['recommendCommands']()['strict']()['help'](_0x2ef858[_0x2d78b8(0x103)])[_0x2d78b8(0x129)];}else{let _0x5675d8={};const _0x474f62=_0x2ef858[_0x2d78b8(0xf3)](getCredentialsPath);fs[_0x2d78b8(0xea)](_0x474f62)&&(_0x2ef858[_0x2d78b8(0xed)](_0x2ef858[_0x2d78b8(0xe4)],_0x2ef858[_0x2d78b8(0xe4)])?_0x5675d8=JSON[_0x2d78b8(0xfb)](fs[_0x2d78b8(0xec)](_0x474f62,_0x2ef858[_0x2d78b8(0x121)])):_0x5a1a9a=_0x356eb6[_0x2d78b8(0x104)][_0x2d78b8(0xc2)]);const _0x266303={};_0x266303[_0x2d78b8(0x10f)]=_0x82570,_0x266303[_0x2d78b8(0x106)]=_0x28619,_0x5675d8[_0x2d78b8(0xca)]=_0x266303,fs['writeFileSync'](_0x474f62,JSON['stringify'](_0x5675d8)),process['exit'](0x0);}}else logger['error'](_0x2ef858['wwdoq']),await _0x2ef858[_0x2d78b8(0xf0)](sendInstrumentationEvent,_0x3146b8,_0x2ef858[_0x2d78b8(0x11b)],messageTypes[_0x2d78b8(0x11d)],_0x2ef858[_0x2d78b8(0xe3)],null,_0x3146b8),process['exit'](0x1);}catch(_0x4bd2c3){logger[_0x2d78b8(0xcc)](_0x4bd2c3[_0x2d78b8(0xff)]),await _0x2ef858['Yjlyu'](sendInstrumentationEvent,_0x3146b8,_0x2ef858[_0x2d78b8(0x11b)],messageTypes[_0x2d78b8(0x11d)],_0x2ef858[_0x2d78b8(0xd0)],_0x4bd2c3,_0x3146b8),process[_0x2d78b8(0xfc)](0x1);}};