browserstack-node-sdk 1.53.6 → 1.54.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +10 -9
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x2240f5=a9_0x384d;(function(_0x36dae8,_0x544124){const _0xa86d79=a9_0x384d,_0xb44652=_0x36dae8();while(!![]){try{const _0x414e33=parseInt(_0xa86d79(0x1f5))/0x1*(-parseInt(_0xa86d79(0x245))/0x2)+-parseInt(_0xa86d79(0x146))/0x3+-parseInt(_0xa86d79(0x1ca))/0x4*(-parseInt(_0xa86d79(0x119))/0x5)+parseInt(_0xa86d79(0x147))/0x6+parseInt(_0xa86d79(0x1fa))/0x7+-parseInt(_0xa86d79(0x26c))/0x8*(-parseInt(_0xa86d79(0x215))/0x9)+parseInt(_0xa86d79(0x14b))/0xa*(-parseInt(_0xa86d79(0x125))/0xb);if(_0x414e33===_0x544124)break;else _0xb44652['push'](_0xb44652['shift']());}catch(_0x459153){_0xb44652['push'](_0xb44652['shift']());}}}(a9_0x5c96,0x44c3a));function a9_0x5c96(){const _0x3fe36a=['gsbZa','argv','IIowu','pQkXX','uJRBH','ABXtt','../../utils/utilityMethods','hubHaNameSpace','eIluk','clusterName','stringify','Found\x20VPC:\x20','RzgUQ','TUlVk','ynCXq','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Hub\x20HA\x20setup\x20completed\x20successfully.','bstackAccesskey','Creating\x20Hub\x20HA\x20resources','qfzOB','phrfm','515AUUzhN','uMckm','createOtherResources','private-grid','gvGSY','1220569UOJJYH','OGKgg','utf-8','UYxOp','skip-tls-cert-verify','hub-ha-deployments-failed','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','cTDDg','yKdIY','minNodes','clusterRegion','oXFWe','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','IDMFM','kUjMb','uploaderVersion','Added\x20Turboscale\x20Uploader\x20deployment.','reconnecting-websocket','cRRDh','grid','GfwHX','xuhJc','cloudProvider','CLI_RUN_STARTED','name','TKxVC','concurrency','1877328AOWkll','getGridHostname','/wd/hub','KnKKA','premium-rwo','INFO','uuid','browserstack-secret.yaml','boolean','gridProfiles','https','flfNV','hTTTN','Skip\x20insecure\x20cert\x20verification.','crZrZ','oVFOT','NOvWN','\x20are\x20not\x20present\x20in\x20VPC:\x20','securityGroups','sendEventToBackend','QWEvb','CLI_RUN_FINISHED','split','gridProfileId','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','uRdvD','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','FrvAu','DtCJe','includes','gcTUj','efs-csi','../../utils/createk8sClient','redisPassword','isSubnetsValid','WebSocket','HGrSf','IzLvN','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','Grid\x20spawned\x20on\x20the\x20cluster','XTnGz','MqxIf','jBKLy','nZPzU','stack','spec','Will\x20be\x20spawning\x20the\x20grid\x20','uploaderImageVersion','1492oeiWqG','gRUjy','wdcTu','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','aBeDd','warn','defaultGridProfile','bitnami-kafka.yaml','newCluster','hfrse','tnvPa','username','FoyfP','templates','get-grid-url-null-response','JHqWG','lbglq','metadata','description','mKXNg','../../utils/instrumentationUtils','delay','yNskz','sendResourceDataToHST','subnets','FuRDB','PcOlz','../../config/logger','toLowerCase','tmQJU','rGdIF','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.','js-yaml','Cluster\x20','RUEYD','DkSGp','default','Grid\x20can\x20be\x20accessed\x20at:\x20','Adding\x20Websocket\x20listeners','16NodHeQ','password','GuKHf','CxtEN','RWBOV','Found\x20Subnets:\x20','Adding\x20Secret\x20Mapping','../../utils/gridComponents','create-grid-checks-null-response','fsOAg','SIXVu','vQIqc','error','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','ERROR','gridProfile','ZwgJs','Spawning\x20the\x20grid\x20','ihgBI','VjhZI','pre-spawned-invalid-subnets','://','GET','bkavd','cluster-name','ugjRM','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','zXXkW','TXtTl','JwGUj','nkAHo','create-grid-checks-grid-already-exists','NTDcB','Mvtnh','TZqbN','tdFHg','uKRHK','QjMgu','ingress-nginx','privateGrid','XYjmC','init-not-called','AqgXR','create-grid-checks-non-200','alreadyPresent','length','AusHa','SiQPv','kafkaUploader','yPzmQ','fOpRZ','pre-spawned-invalid-vpc','kpsMT','azurefile-csi-premium','ovMqO','mggKl','tQPKL','\x20in\x20existing\x20cluster\x20\x27','prespawned-cluster-args-not-passed','JrAIB','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','cloud-provider','QgyMT','GtTti','bCEan','Created\x20Hub\x20HA\x20resources','Cluster:\x20','setupAutoscaler','wmoAi','serviceAccountName','ChWQE','SdqDU','hubVersion','instanceType','dMDqi','qUkLY','turboscale-managed-identity-','Creating\x20namespace','fQBdK','mcAFr','AOKYk','fRmGA','SGkFx','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','asvoJ','Adding\x20Turboscale\x20Uploader\x20deployment...','replace','command','BzfBZ','HfcoN','sinmk','lgiUG','eqFEn','desc','wuljH','nyTTi','fjBpG','parse','oVOSD','629450dRSUws','readFileAsync','dXnbO','grid-spawning-failed','grid-name','SqQXt','updateClusterAlreadyPresent','MEgwJ','dygED','hubharesources','WULwi','create-grid-checks-invalid-profile','188485lQIzMC','pWdKi','pQxsx','route53','connectionTimeout','ycdom','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','vmuYv','labels','YwQCA','Izgmn','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','NgVKq','NLGlN','http','pUNSc','isClusterPresent','zSFKV','setupHubHa','RifPI','mgAPH','Cluster\x20created\x20successfully','UqOsT','GUoJS','LKHAD','hubHa','isPrivateGrid','Create\x20a\x20new\x20Automation\x20grid.','Enabling\x20Hub\x20HA\x20flow','ZNqlE','CLI\x20run\x20started','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','bmMZa','1024134edGcIT','2217090qGCFLb','8|4|0|15|7|6|1|2|11|5|13|12|9|10|3|14','bitnami-redis.yaml','yQSsM','120jTPEMF','skipTlsCertVerify','loadAll','deleteCluster','FyVLh','createNamespace','/packages/cli/get-grid-url?gridIdentifier=','Adding\x20Redis\x20deployment...','wKTzD','../..','kafkaPassword','wCWoy','lDPby','setupNewCluster','UohHq','ukeoT','Spawning\x20grid\x20on\x20to\x20the\x20cluster','zoOjM','requestId','rgsYa','bstackUsername','UWUCZ','addListeners','Browserstack','MdCwb','template','Added\x20Kafka\x20deployment.','fEaQX','IeytK','options','KnDKq','create','LEuIp','KGbBk','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','eGSiV','WZBdo','type','help','<UsernamePlaceholder>','CoDON','vTpbe','LTYrV','zDZFD','ukQxW','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','MdInB','1|3|2|0|4','UoghQ','XtjfU','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','bJlNV','../../config/constants','../../cloudproviders/utils','lgeoN','Mdtug','zdJbm','Adding\x20Kafka\x20deployment...','jwdOq','dOhUE','LOG','zQCAm','ZlOue','clusterAutoUpgrade','cluster-autoupgrade','CLI\x20run\x20finished:\x20','OVDbu','exit','/packages/cli/create-grid-checks','gridName','clusterAutoupgrade','existsSync','maxNodes','pbQVZ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','browserstack','aEiTs','AhPKc','0|2|5|1|3|4|6|8|7','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','csCGg','fmaYf','body','HufNh','true','BFigu','ADlKc','enableHubHa','OnmIO','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','statusCode','jNfEE','annotations','usage','PXMoZ','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','xGPMY','path','Cssvj','message','FJXce','ZmRrn','HvODq','ORTsx','s3bucket','Epyd5nXbRK','YSkBL','QgNgt','VBKQq','region','Subnets:\x20','info','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','DuenJ','browserVersion','hub-ha','isVPCPresent','PBntM','qzlTM','1|0|4|3|2','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','FknCb','Create\x20a\x20private/public\x20grid.','WJRGY','mXnQP','8ZVLViH','btMvo','<PasswordPlaceholder>','Spawning\x20Grid\x20on\x20the\x20Cluster','AxTnP','grqKN','nFWTN','namespace','../../utils/webSocketUtils','SjbuJ','private-ingress-nginx-controller','VjbeL','qoCbj','zPdXi','epilogue','grid-profile','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','user','hsugq','join','IYoqn','rDcom'];a9_0x5c96=function(){return _0x3fe36a;};return a9_0x5c96();}const fs=require('fs'),ws=require('ws'),path=require(a9_0x2240f5(0x1ae)),yaml=require(a9_0x2240f5(0x265)),ReconnectingWebSocket=require(a9_0x2240f5(0x20b)),got=require('got'),{v4:uuidv4}=require(a9_0x2240f5(0x21b)),webSocketUtils=require(a9_0x2240f5(0x1d2)),{logger}=require(a9_0x2240f5(0x260)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x2240f5(0x1e6)),{getCloudProviderObject}=require(a9_0x2240f5(0x180)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x2240f5(0x17f)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x2240f5(0x273)),{createK8sClient}=require(a9_0x2240f5(0x235)),{sendInstrumentationEvent}=require(a9_0x2240f5(0x259));function a9_0x384d(_0x46aa8c,_0x4e224b){const _0x5c9612=a9_0x5c96();return a9_0x384d=function(_0x384d1a,_0x1fe27d){_0x384d1a=_0x384d1a-0xdd;let _0x411ceb=_0x5c9612[_0x384d1a];return _0x411ceb;},a9_0x384d(_0x46aa8c,_0x4e224b);}exports[a9_0x2240f5(0x10d)]=a9_0x2240f5(0x20d),exports[a9_0x2240f5(0x113)]=a9_0x2240f5(0x140),exports['builder']=function(_0x40f445){const _0x2db259=a9_0x2240f5,_0x320c70={};_0x320c70['IDMFM']=_0x2db259(0x1ef),_0x320c70[_0x2db259(0x186)]='string',_0x320c70[_0x2db259(0x1c3)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x320c70['sinmk']=_0x2db259(0x12b),_0x320c70[_0x2db259(0x131)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x320c70[_0x2db259(0x166)]=_0x2db259(0x19a),_0x320c70[_0x2db259(0x1a2)]=_0x2db259(0x1c7),_0x320c70[_0x2db259(0x201)]=_0x2db259(0x222),_0x320c70[_0x2db259(0x1df)]=_0x2db259(0x21d),_0x320c70[_0x2db259(0x1f4)]='Flag\x20to\x20enable\x20Hub\x20HA',_0x320c70[_0x2db259(0x1d3)]=_0x2db259(0x17d),_0x320c70['jwdOq']='help';const _0x31d780=_0x320c70,_0x3be13e={};_0x3be13e[_0x2db259(0x257)]=_0x31d780[_0x2db259(0x207)],_0x3be13e[_0x2db259(0x170)]=_0x31d780[_0x2db259(0x186)];const _0x4246dd={};_0x4246dd['description']=_0x31d780[_0x2db259(0x1c3)],_0x4246dd[_0x2db259(0x170)]=_0x31d780[_0x2db259(0x186)];const _0x23f954={};_0x23f954[_0x2db259(0x257)]=_0x31d780[_0x2db259(0x110)],_0x23f954[_0x2db259(0x170)]=_0x31d780[_0x2db259(0x186)];const _0x5b2eac={};_0x5b2eac[_0x2db259(0x257)]=_0x31d780[_0x2db259(0x131)],_0x5b2eac[_0x2db259(0x170)]=_0x31d780[_0x2db259(0x186)];const _0x381280={};_0x381280[_0x2db259(0x257)]=_0x31d780[_0x2db259(0x166)],_0x381280['type']=_0x31d780[_0x2db259(0x186)];const _0x44ea8d={};_0x44ea8d['description']=_0x31d780[_0x2db259(0x1a2)],_0x44ea8d[_0x2db259(0x170)]=_0x31d780[_0x2db259(0x186)];const _0xc527b0={};_0xc527b0[_0x2db259(0x257)]=_0x31d780[_0x2db259(0x201)],_0xc527b0['type']=_0x31d780[_0x2db259(0x1df)],_0xc527b0[_0x2db259(0x269)]=![];const _0x239bd1={};_0x239bd1[_0x2db259(0x257)]=_0x31d780[_0x2db259(0x1f4)],_0x239bd1[_0x2db259(0x170)]=_0x31d780['rDcom'],_0x239bd1[_0x2db259(0x269)]=![];const _0x580ba4={};_0x580ba4[_0x2db259(0x257)]=_0x31d780[_0x2db259(0x1d3)],_0x580ba4[_0x2db259(0x170)]=_0x31d780[_0x2db259(0x1df)],_0x580ba4['default']=![];const _0x409730={};return _0x409730[_0x2db259(0x11d)]=_0x3be13e,_0x409730[_0x2db259(0x1d9)]=_0x4246dd,_0x409730[_0x2db259(0x284)]=_0x23f954,_0x409730[_0x2db259(0xf2)]=_0x5b2eac,_0x409730[_0x2db259(0x1ba)]=_0x381280,_0x409730['private-grid']=_0x44ea8d,_0x409730[_0x2db259(0x1fe)]=_0xc527b0,_0x409730[_0x2db259(0x1c0)]=_0x239bd1,_0x409730[_0x2db259(0x18b)]=_0x580ba4,_0x40f445[_0x2db259(0x1aa)](HELP_HEADER_MESSAGE[_0x2db259(0x16a)])[_0x2db259(0x1d8)](HELP_FOOTER_MESSAGE)[_0x2db259(0x168)](_0x409730)['help'](_0x31d780[_0x2db259(0x185)])[_0x2db259(0x1e1)];},exports['handler']=async function(_0x16911a){const _0x540951=a9_0x2240f5,_0x81072={'yPzmQ':_0x540951(0x133),'IzLvN':function(_0xf74bde,_0x49a6d0){return _0xf74bde(_0x49a6d0);},'JrAIB':_0x540951(0x199),'IIowu':_0x540951(0x143),'uMckm':_0x540951(0x24a),'rgsYa':function(_0x55e3dc,_0x3976f7){return _0x55e3dc===_0x3976f7;},'rGdIF':_0x540951(0x21f),'UqOsT':'Cluster\x20Auto\x20Upgrade\x20is\x20enabled','cRRDh':_0x540951(0x219),'kpsMT':_0x540951(0x1a0),'lbglq':_0x540951(0x269),'xuhJc':_0x540951(0xea),'oXFWe':_0x540951(0x1c4),'mcAFr':_0x540951(0x196),'NOvWN':_0x540951(0x141),'QgNgt':_0x540951(0x1b6),'TXpeH':'UkRNzNYCBU','wCWoy':_0x540951(0x148),'BzfBZ':function(_0x48be3c,_0x12af0b,_0x456202,_0x50c742,_0x3cf275,_0x1d224d,_0x267176,_0x30a954,_0x219c30,_0x508b01,_0x186dea,_0x561f29,_0x17f5eb){return _0x48be3c(_0x12af0b,_0x456202,_0x50c742,_0x3cf275,_0x1d224d,_0x267176,_0x30a954,_0x219c30,_0x508b01,_0x186dea,_0x561f29,_0x17f5eb);},'flfNV':function(_0xb8addb,_0x11334e){return _0xb8addb!==_0x11334e;},'nyTTi':function(_0x13c51c,_0x4c0dc6){return _0x13c51c(_0x4c0dc6);},'yKdIY':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','UohHq':'string','gsbZa':_0x540951(0x1ac),'iIQxl':_0x540951(0x12b),'MqxIf':_0x540951(0x1bd),'Yrqso':_0x540951(0x19a),'BWPZf':_0x540951(0x1c7),'oVOSD':_0x540951(0x222),'zXXkW':_0x540951(0x21d),'syGDd':'Flag\x20to\x20enable\x20Hub\x20HA','PXMoZ':_0x540951(0x17d),'zPdXi':_0x540951(0x171),'crZrZ':_0x540951(0x278),'JHqWG':function(_0x30958b){return _0x30958b();},'fmaYf':function(_0x1b4894,_0x481e2d){return _0x1b4894===_0x481e2d;},'INfFe':_0x540951(0x288),'mKXNg':'BZEUd','HfcoN':_0x540951(0x130),'FJXce':function(_0x31c22b,_0x92b31e,_0xbe9706,_0x3ec76a,_0x629420,_0x118ae6,_0x4fb519){return _0x31c22b(_0x92b31e,_0xbe9706,_0x3ec76a,_0x629420,_0x118ae6,_0x4fb519);},'PcOlz':'create-grid-called','oQgEF':_0x540951(0xde),'MEgwJ':function(_0x5b92d7){return _0x5b92d7();},'AqgXR':_0x540951(0x172),'FuRDB':_0x540951(0x1cc),'ukeoT':_0x540951(0x26b),'GUoJS':_0x540951(0x246),'ukQxW':function(_0x206da2,_0x19f5fc){return _0x206da2===_0x19f5fc;},'ZwgJs':_0x540951(0x25b),'KnKKA':_0x540951(0x139),'eteye':_0x540951(0x178),'Mvtnh':function(_0x56d0b9,_0x4abdc0,_0x4ea6c2,_0x5318af,_0x3f3dd7,_0x5b3409,_0x49b091,_0x7cb635){return _0x56d0b9(_0x4abdc0,_0x4ea6c2,_0x5318af,_0x3f3dd7,_0x5b3409,_0x49b091,_0x7cb635);},'jNfEE':_0x540951(0xef),'WULwi':function(_0x22cef4,_0x1ef440){return _0x22cef4===_0x1ef440;},'BJhsb':_0x540951(0x28c),'aEiTs':_0x540951(0x109),'nZPzU':function(_0x1f21ae,_0x401453,_0x2a729b,_0x7346f4,_0x1090ab,_0x59f2ba,_0x10a1ec,_0x50209d){return _0x1f21ae(_0x401453,_0x2a729b,_0x7346f4,_0x1090ab,_0x59f2ba,_0x10a1ec,_0x50209d);},'wuljH':'non-aws-azure-cluster','HvODq':_0x540951(0x24e),'LEuIp':function(_0x4ba7b4,_0x59082a,_0x27b1fa,_0xa44de2,_0x388ac4,_0x797d05,_0x4ea8c3){return _0x4ba7b4(_0x59082a,_0x27b1fa,_0xa44de2,_0x388ac4,_0x797d05,_0x4ea8c3);},'ChWQE':function(_0x2f6c62,_0x5e89fa){return _0x2f6c62!==_0x5e89fa;},'lqOuK':_0x540951(0x1cb),'UWUCZ':_0x540951(0x1b7),'CuJmn':_0x540951(0x198),'ZPLxg':_0x540951(0xf3),'XTnGz':'XqyFe','WJRGY':_0x540951(0x1b2),'wmoAi':_0x540951(0x282),'zdJbm':function(_0x461a16,_0x5824ee,_0x21c25f){return _0x461a16(_0x5824ee,_0x21c25f);},'GSVwu':_0x540951(0x239),'RiZSR':_0x540951(0x221),'aBeDd':function(_0x269a64,_0x54c9c7){return _0x269a64===_0x54c9c7;},'fRmGA':_0x540951(0x182),'lgeoN':function(_0x551c1c,_0x52e3dc){return _0x551c1c===_0x52e3dc;},'fjBpG':function(_0x467a2c,_0x6621ea){return _0x467a2c===_0x6621ea;},'ihgBI':_0x540951(0x276),'Izgmn':'NqMPM','yQSsM':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','QjMgu':_0x540951(0x274),'ABXtt':function(_0x422568,_0x406fb4){return _0x422568===_0x406fb4;},'ynCXq':function(_0x460de4,_0x79d63c){return _0x460de4!==_0x79d63c;},'OVDbu':_0x540951(0x290),'XYjmC':_0x540951(0x195),'FrvAu':'create-grid-checks-auth-failed','qUkLY':function(_0x369cf1,_0x52d683){return _0x369cf1!==_0x52d683;},'FoyfP':_0x540951(0x19f),'bmMZa':function(_0x254c2d,_0x20d372,_0x26eedb,_0x4fbeb1,_0x1ff0a0,_0x4c1ba3,_0x2d0d57,_0x4d2b58){return _0x254c2d(_0x20d372,_0x26eedb,_0x4fbeb1,_0x1ff0a0,_0x4c1ba3,_0x2d0d57,_0x4d2b58);},'vcTBl':_0x540951(0xe0),'LKHAD':'Grid\x20profile\x20fetched\x20from\x20backend','zSFKV':_0x540951(0x19c),'FRtlc':function(_0x571b2d,_0x8ebc75,_0x1a385c,_0x11276b,_0x5689ac,_0x33da2d,_0x502ccf,_0x154c7f){return _0x571b2d(_0x8ebc75,_0x1a385c,_0x11276b,_0x5689ac,_0x33da2d,_0x502ccf,_0x154c7f);},'ugjRM':_0x540951(0x28b),'scYFo':function(_0x533571,_0x5618e5){return _0x533571!==_0x5618e5;},'hsugq':_0x540951(0x1e8),'PDIsL':_0x540951(0x142),'Enlva':'4|0|1|3|2','tQPKL':function(_0x19b14b,_0x1631e6){return _0x19b14b===_0x1631e6;},'wdcTu':function(_0xddda2a,_0x19464a){return _0xddda2a!==_0x19464a;},'tMabt':_0x540951(0xf5),'mggKl':_0x540951(0x1d0),'zoOjM':function(_0x1e5453,_0x4382cb){return _0x1e5453===_0x4382cb;},'RifPI':function(_0xcc0873,_0x4f0af9){return _0xcc0873!==_0x4f0af9;},'VjbeL':'bKDrR','nkAHo':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','fQBdK':_0x540951(0x124),'GfwHX':function(_0x54ead5,_0x29079d){return _0x54ead5!==_0x29079d;},'ovMqO':_0x540951(0x112),'PbCLa':function(_0x3e483a,_0x5794f5){return _0x3e483a===_0x5794f5;},'kUjMb':_0x540951(0x1e4),'SdqDU':_0x540951(0x11e),'gcTUj':'QiJzM','TZqbN':function(_0x564d92,_0x33a387,_0x5eb717,_0x59e4b7,_0x19237f,_0x73301,_0x3c8f00,_0x54369d,_0x3ce732,_0xdfaff4,_0x1eab1d,_0x57ad66,_0x3cf3c8){return _0x564d92(_0x33a387,_0x5eb717,_0x59e4b7,_0x19237f,_0x73301,_0x3c8f00,_0x54369d,_0x3ce732,_0xdfaff4,_0x1eab1d,_0x57ad66,_0x3cf3c8);},'zDZFD':function(_0x3348ab,_0x585ac0){return _0x3348ab!==_0x585ac0;},'zQCAm':'QGYZk','acFzO':_0x540951(0x12e),'ORTsx':function(_0x37e1fb,_0x2cb35c){return _0x37e1fb===_0x2cb35c;},'UoghQ':_0x540951(0x179),'AOKYk':'MYNBj','VadBO':function(_0x854e67,_0x181753){return _0x854e67!==_0x181753;},'pQkXX':function(_0x304ffb,_0x5d7152){return _0x304ffb!==_0x5d7152;},'KnDKq':_0x540951(0x27f),'XtjfU':function(_0x48f4e3,_0x65e91b){return _0x48f4e3===_0x65e91b;},'pbQVZ':_0x540951(0xe3),'QnpKN':function(_0x51353e,_0x51e608){return _0x51353e===_0x51e608;},'bJlNV':_0x540951(0x127),'CxtEN':'0|5|1|7|4|8|2|3|6','gvGSY':function(_0xca5e77,_0x77c60d){return _0xca5e77!==_0x77c60d;},'AxTnP':function(_0x17f991,_0x2e3ca8){return _0x17f991!==_0x2e3ca8;},'SiQPv':_0x540951(0x163),'WZBdo':function(_0x1fed11,_0x18669a){return _0x1fed11===_0x18669a;},'lgiUG':'lOsyi','oVFOT':'YpRKP','tdFHg':'qLOhP','FyVLh':_0x540951(0x22d),'DtCJe':function(_0x5af7a6,_0x59b4bf){return _0x5af7a6!=_0x59b4bf;},'llwbp':function(_0x5c243b,_0x2dcf9d){return _0x5c243b>_0x2dcf9d;},'wKTzD':function(_0x6707ad,_0x368d7e){return _0x6707ad===_0x368d7e;},'PBntM':_0x540951(0x1a5),'oWpMX':'pre-spawned-subnets-not-selected','grqKN':_0x540951(0xf1),'cTPlO':_0x540951(0xe8),'DkSGp':function(_0x241002,_0x3c982b){return _0x241002===_0x3c982b;},'LTYrV':function(_0x144971,_0x42a64f,_0x12d8a5,_0x4ba43d,_0x323989,_0x174434,_0x380c17,_0xcb22cb){return _0x144971(_0x42a64f,_0x12d8a5,_0x4ba43d,_0x323989,_0x174434,_0x380c17,_0xcb22cb);},'GuKHf':_0x540951(0x280),'KGbBk':'2|0|3|1|4','gzeQO':_0x540951(0x264),'tmQJU':_0x540951(0x13a),'lDPby':function(_0x4cc6b3,_0x485ffc){return _0x4cc6b3===_0x485ffc;},'VFkjv':function(_0x359d31,_0x24ea77){return _0x359d31===_0x24ea77;},'pUNSc':function(_0x45ff6f,_0x264544){return _0x45ff6f===_0x264544;},'CoDON':_0x540951(0x1f2),'DuenJ':function(_0x29fe38,_0x261354,_0x12c381){return _0x29fe38(_0x261354,_0x12c381);},'RUEYD':_0x540951(0x272),'OGKgg':_0x540951(0x154),'eGSiV':_0x540951(0x252),'mXnQP':_0x540951(0x122),'FknCb':_0x540951(0x21c),'tnvPa':_0x540951(0x1fc),'VBKQq':function(_0x5c9218,_0x2251d0){return _0x5c9218(_0x2251d0);},'emuTf':function(_0x1ec6d1,_0x3a37ef){return _0x1ec6d1(_0x3a37ef);},'TUlVk':function(_0x4ece1c,_0x10ade7,_0x2859de){return _0x4ece1c(_0x10ade7,_0x2859de);},'IeytK':'Added\x20Secret\x20Mapping','uRdvD':_0x540951(0x234),'UYxOp':function(_0x4acde3,_0x39d069){return _0x4acde3===_0x39d069;},'tejzi':function(_0x3be6f0,_0x4d1221){return _0x3be6f0===_0x4d1221;},'ajZCJ':_0x540951(0x152),'IYoqn':_0x540951(0x149),'xGPMY':function(_0x567fc5,_0x222207,_0x99ecb3){return _0x567fc5(_0x222207,_0x99ecb3);},'dygED':'Added\x20Redis\x20deployment.','UmrMP':_0x540951(0x184),'TKxVC':_0x540951(0x24c),'QUHWB':_0x540951(0x165),'fOpRZ':_0x540951(0x10b),'njKxM':'turboscale-uploader.yaml','RzgUQ':function(_0x454ae5,_0x8f257b,_0x191aeb){return _0x454ae5(_0x8f257b,_0x191aeb);},'SNuOr':_0x540951(0x20a),'dlJkt':_0x540951(0xf6),'pWdKi':_0x540951(0x1f0),'vQIqc':_0x540951(0x17a),'ZlOue':function(_0x1bfe2a,_0x50c6b5,_0x23ca83,_0x48d912,_0x13d77a,_0xf3ff40,_0x250b29,_0x24ea71){return _0x1bfe2a(_0x50c6b5,_0x23ca83,_0x48d912,_0x13d77a,_0xf3ff40,_0x250b29,_0x24ea71);},'GtTti':_0x540951(0x1ff),'RWBOV':function(_0xde6942,_0x4ab4b3){return _0xde6942(_0x4ab4b3);},'JwGUj':_0x540951(0x102),'dMDqi':_0x540951(0x162),'asvoJ':'Namespace\x20Created','NLGlN':'Namespace\x20created','YCLhj':_0x540951(0x15b),'lllbb':_0x540951(0x1cd),'vTpbe':function(_0x5b62f8,_0x4d3550,_0x24585b,_0x4a98d0,_0x46a0ad,_0x9dc29c,_0x4895ea,_0x20e867,_0x55cf77,_0x374a65,_0x25c2d5){return _0x5b62f8(_0x4d3550,_0x24585b,_0x4a98d0,_0x46a0ad,_0x9dc29c,_0x4895ea,_0x20e867,_0x55cf77,_0x374a65,_0x25c2d5);},'dXnbO':_0x540951(0x23c),'ZblWp':_0x540951(0x206),'bkavd':function(_0x48b1e9,_0x4c3871,_0x34cab4,_0x46bfd0,_0x5aa178){return _0x48b1e9(_0x4c3871,_0x34cab4,_0x46bfd0,_0x5aa178);},'OnmIO':_0x540951(0x1d4),'fsOAg':'ingress-nginx-controller','wZgPO':_0x540951(0x292),'vmuYv':function(_0x390deb,_0x4939bf){return _0x390deb===_0x4939bf;},'xLmry':_0x540951(0x144),'QWEvb':function(_0x7016e8,_0x44f21f,_0x164a0a,_0x55cdd5,_0x33d48c,_0xb007,_0x1fd44d,_0x15d410){return _0x7016e8(_0x44f21f,_0x164a0a,_0x55cdd5,_0x33d48c,_0xb007,_0x1fd44d,_0x15d410);},'ycdom':_0x540951(0x253),'tgFol':_0x540951(0x248),'BFigu':'get-grid-url-auth-failed','qfzOB':'get-grid-url-non-200','SGkFx':function(_0x2c24e6,_0x29ac3b){return _0x2c24e6===_0x29ac3b;},'jBKLy':'Deleting\x20the\x20CloudFormation\x20Stacks','yUJgT':function(_0x5be4bb,_0x1d16e0,_0x5e24bd,_0x5dcb7b,_0x3e886a,_0x5373f9){return _0x5be4bb(_0x1d16e0,_0x5e24bd,_0x5dcb7b,_0x3e886a,_0x5373f9);},'qoCbj':function(_0x1dbc27,_0x4ad9ec,_0x577b10,_0x19a695,_0x4e199b,_0x310dec,_0x2e0165){return _0x1dbc27(_0x4ad9ec,_0x577b10,_0x19a695,_0x4e199b,_0x310dec,_0x2e0165);},'Cssvj':_0x540951(0x11c)};let _0x6ecbe1=![],_0x175428=![],_0x244ba5,_0x437ea7,_0x6580d4,_0x5c7fd3,_0x926345,_0x14a099,_0x5f394b,_0xb60b64,_0x58b29d,_0x426175,_0x3efe3c,_0x24c9da,_0x5f53a0,_0x31d1f4,_0x5c14d2=0x1,_0x12d099=0xe;try{global_registry[_0x540951(0x15d)]=_0x81072[_0x540951(0x254)](uuidv4),global_registry[_0x540951(0x13f)]=![];!fs[_0x540951(0x192)](_0x81072[_0x540951(0x254)](getCredentialsPath))&&(_0x81072[_0x540951(0x19d)](_0x81072['INfFe'],_0x81072[_0x540951(0x258)])?_0x5cc9e1=_0x81072[_0x540951(0xe6)]:(console[_0x540951(0x278)](_0x81072[_0x540951(0x10f)]),await _0x81072[_0x540951(0x1b1)](sendInstrumentationEvent,_0x16911a,_0x81072[_0x540951(0x25f)],messageTypes[_0x540951(0x27a)],_0x81072['oQgEF'],null,_0x16911a),process['exit'](0x1)));await _0x81072[_0x540951(0x1b1)](sendInstrumentationEvent,_0x16911a,_0x81072['PcOlz'],messageTypes[_0x540951(0x21a)],null,null,_0x16911a);const _0x56c32d=JSON[_0x540951(0x117)](fs['readFileSync'](_0x81072[_0x540951(0x120)](getCredentialsPath)));global_registry[_0x540951(0x15f)]=_0x56c32d[_0x540951(0x162)][_0x540951(0x250)],global_registry[_0x540951(0x1f1)]=_0x56c32d[_0x540951(0x162)][_0x540951(0x26d)];const _0x32d125=WS_ENDPOINT[_0x540951(0x10c)](_0x81072[_0x540951(0xdf)],_0x56c32d[_0x540951(0x162)][_0x540951(0x250)])[_0x540951(0x10c)](_0x81072[_0x540951(0x25e)],_0x56c32d[_0x540951(0x162)][_0x540951(0x26d)]),_0x5ca0b1={};_0x5ca0b1[_0x540951(0x238)]=ws,_0x5ca0b1[_0x540951(0x129)]=0x36ee80,_0x24c9da=new ReconnectingWebSocket(_0x32d125,[],_0x5ca0b1),logger['debug'](_0x81072[_0x540951(0x15a)]),webSocketUtils[_0x540951(0x161)](_0x24c9da,_0x16911a[_0x540951(0x1db)],_0x16911a[_0x540951(0x26d)]);const _0x3e1cea=_0x16911a['gridName']||DEFAULT_GRID_NAME;if(_0x16911a[_0x540951(0x1e9)]||_0x16911a[_0x540951(0x210)]||_0x16911a[_0x540951(0x1ba)]){if(_0x81072[_0x540951(0x220)](_0x81072[_0x540951(0x13c)],_0x81072[_0x540951(0x13c)]))_0x81072[_0x540951(0x23a)](_0x2f0e5a,_0x3f2003[_0x540951(0xe5)]);else{if(!(_0x16911a[_0x540951(0x1e9)]&&_0x16911a[_0x540951(0x210)]&&_0x16911a[_0x540951(0x1ba)])){if(_0x81072[_0x540951(0x177)](_0x81072[_0x540951(0x27c)],_0x81072[_0x540951(0x218)])){const _0x4e87fa=_0x81072[_0x540951(0xf0)]['split']('|');let _0x4665b2=0x0;while(!![]){switch(_0x4e87fa[_0x4665b2++]){case'0':const _0x19d539={};_0x19d539[_0x540951(0x170)]=_0x323ea4[_0x540951(0x211)],_0x19d539['message']=_0x81072[_0x540951(0x1e2)],_0x2b2a48[_0x540951(0x228)](_0x4ca2e6,_0x19d539);continue;case'1':const _0x300247={};_0x300247[_0x540951(0x170)]=_0x1de37c[_0x540951(0x187)],_0x300247[_0x540951(0x1b0)]=_0x50d5de,_0x10c6d6[_0x540951(0x228)](_0xa11018,_0x300247);continue;case'2':_0x6f32ff='Spawning\x20the\x20grid\x20'+_0x1e089d+_0x540951(0xee)+_0x3b832f+'\x27';continue;case'3':_0x1a4d9b[_0x540951(0x210)]=_0x162866;continue;case'4':_0x4a81b5[_0x540951(0x204)]=_0x4be4ec;continue;case'5':_0x64111b[_0x540951(0x1bc)](_0x514075);continue;case'6':_0x3be3ba[_0x540951(0x1e9)]=_0x5970dc;continue;case'7':_0x3737e8[_0x540951(0x1bf)]=_0x3fe5e3[_0x540951(0x1bf)];continue;case'8':_0x508df6['hubVersion']=_0x470a4e[_0x540951(0xfd)];continue;}break;}}else _0x244ba5=_0x81072['eteye'],await _0x81072[_0x540951(0x28d)](reportToGalactusAndSendToEDS,_0x16911a,_0x24c9da,_0x244ba5,messageTypes[_0x540951(0x27a)],_0x81072['PcOlz'],_0x81072[_0x540951(0x1a8)],_0x81072[_0x540951(0x223)]),logger[_0x540951(0x278)](_0x244ba5),process[_0x540951(0x18e)](0x1);}![AWS,AZURE,GCP][_0x540951(0x232)](_0x16911a[_0x540951(0x210)][_0x540951(0x261)]())&&(_0x81072[_0x540951(0x123)](_0x81072['BJhsb'],_0x81072['BJhsb'])?(_0x244ba5=_0x81072[_0x540951(0x197)],await _0x81072[_0x540951(0x240)](reportToGalactusAndSendToEDS,_0x16911a,_0x24c9da,_0x244ba5,messageTypes['ERROR'],_0x81072[_0x540951(0x25f)],_0x81072[_0x540951(0x114)],_0x81072['crZrZ']),logger[_0x540951(0x278)](_0x244ba5),process[_0x540951(0x18e)](0x1)):_0x4786a6=!![]);if(_0x16911a[_0x540951(0x293)]&&_0x81072[_0x540951(0x19d)](_0x16911a[_0x540951(0x293)][_0x540951(0x261)](),_0x81072[_0x540951(0xe9)])){if(_0x81072[_0x540951(0x177)](_0x81072[_0x540951(0x1b3)],_0x81072[_0x540951(0x1b3)]))global_registry[_0x540951(0x13f)]=!![];else{const _0x38f5aa={};_0x38f5aa[_0x540951(0x170)]=_0x372190['LOG'],_0x38f5aa[_0x540951(0x1b0)]=_0x540951(0x266)+_0x153ec5+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x1c03ac[_0x540951(0x228)](_0x4ec67c,_0x38f5aa,_0x81072[_0x540951(0x1f6)]),_0x1cd6d7['info'](_0x540951(0x266)+_0x1d2339+_0x540951(0x16d)),_0x380823=!![];if(_0x81072[_0x540951(0x15e)](_0x515b8f,!![]))throw new _0x5d731b(_0x540951(0x266)+_0x31e3aa+_0x540951(0x1c5));}}global_registry['cloudProvider']=_0x16911a[_0x540951(0x210)],global_registry[_0x540951(0x204)]=_0x16911a[_0x540951(0x1ba)],global_registry['clusterName']=_0x16911a[_0x540951(0x1e9)];const _0x333040=await _0x81072[_0x540951(0x16b)](getCloudProviderObject,_0x16911a[_0x540951(0x210)],_0x16911a['clusterName'],_0x3e1cea,_0x24c9da,webSocketUtils,_0x16911a),_0x26f13c=await _0x333040[_0x540951(0x135)]();!_0x26f13c?_0x81072[_0x540951(0xfb)](_0x81072['lqOuK'],_0x81072[_0x540951(0x160)])?(logger[_0x540951(0x1bc)](_0x540951(0xf7)+_0x16911a[_0x540951(0x1e9)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x6ecbe1=![],_0x175428=!![]):(_0x307fc9=_0x411668['route53'],_0x9ff51e=_0x81072[_0x540951(0x263)]):_0x81072[_0x540951(0x220)](_0x81072['CuJmn'],_0x81072['ZPLxg'])?_0x6ecbe1=!![]:_0x81072[_0x540951(0x23a)](_0x589610,_0x14cc53['uploaderVersion']),_0x6580d4=_0x16911a[_0x540951(0x1e9)],_0x437ea7=_0x16911a[_0x540951(0x210)][_0x540951(0x261)](),_0x5c7fd3=_0x16911a[_0x540951(0x1ba)];}}else _0x16911a[_0x540951(0x27b)]&&(_0x81072['ukQxW'](_0x81072[_0x540951(0x23d)],_0x81072[_0x540951(0x1c8)])?(_0x3a5e1f[_0x540951(0x1ba)]=_0x5ae59c,_0x348346[_0x540951(0x210)]=_0x4d35c3,_0x549d1b[_0x540951(0x24d)]=!![],_0x355cc6[_0x540951(0x18a)]=_0xcb07a8['clusterAutoupgrade']):global_registry[_0x540951(0x27b)]=_0x16911a[_0x540951(0x27b)]);global_registry['gridName']=_0x16911a['gridName'];const _0x19f234={'method':_0x81072[_0x540951(0xf9)],'headers':_0x81072['zdJbm'](getAuthHeader,_0x56c32d[_0x540951(0x162)][_0x540951(0x250)],_0x56c32d[_0x540951(0x162)][_0x540951(0x26d)]),'throwHttpErrors':![]},_0x1211ae={};_0x1211ae[_0x540951(0x190)]=_0x3e1cea;const _0x10922f=_0x1211ae;_0x175428&&(_0x81072[_0x540951(0xfb)](_0x81072['GSVwu'],_0x81072['RiZSR'])?(_0x10922f[_0x540951(0x1ba)]=_0x5c7fd3,_0x10922f[_0x540951(0x210)]=_0x437ea7,_0x10922f[_0x540951(0x24d)]=!![],_0x10922f[_0x540951(0x18a)]=_0x16911a['clusterAutoupgrade']):_0x296c55[_0x540951(0x13f)]=!![]);_0x16911a['clusterAutoupgrade']&&(_0x81072[_0x540951(0x249)](_0x81072[_0x540951(0x106)],_0x81072[_0x540951(0x106)])?logger[_0x540951(0x1bc)](_0x81072[_0x540951(0x13b)]):_0x156a7c[_0x540951(0x25c)]());const _0x24d7eb='https://'+AG_API_URL+_0x540951(0x18f),_0x431401={'searchParams':_0x10922f,'throwHttpErrors':![],..._0x19f234},_0x18db1a=_0x431401,_0x46173f=await _0x81072[_0x540951(0x183)](got,_0x24d7eb,_0x18db1a);(_0x81072[_0x540951(0x181)](_0x46173f,null)||_0x81072[_0x540951(0x116)](_0x46173f,undefined))&&(_0x81072[_0x540951(0x181)](_0x81072[_0x540951(0x27e)],_0x81072[_0x540951(0x12f)])?_0x315100['info'](_0x540951(0x1eb)+_0x271141+'\x20'):(_0x244ba5=_0x81072[_0x540951(0x14a)],await _0x81072[_0x540951(0x28d)](reportToGalactusAndSendToEDS,_0x16911a,_0x24c9da,_0x244ba5,messageTypes[_0x540951(0x27a)],_0x81072[_0x540951(0x25f)],_0x81072[_0x540951(0x291)],_0x81072['crZrZ']),logger['error'](_0x244ba5),process[_0x540951(0x18e)](0x1)));_0x81072[_0x540951(0x1e5)](_0x46173f[_0x540951(0x1a7)],0x191)&&(_0x81072['ynCXq'](_0x81072[_0x540951(0x18d)],_0x81072[_0x540951(0x18d)])?_0x5a5861=null:(_0x244ba5=_0x81072[_0x540951(0xdd)],await _0x81072[_0x540951(0x28d)](reportToGalactusAndSendToEDS,_0x16911a,_0x24c9da,_0x244ba5,messageTypes[_0x540951(0x27a)],_0x81072[_0x540951(0x25f)],_0x81072[_0x540951(0x230)],_0x81072[_0x540951(0x223)]),logger[_0x540951(0x278)](_0x244ba5),process[_0x540951(0x18e)](0x1)));_0x81072[_0x540951(0x100)](_0x46173f[_0x540951(0x1a7)],0xc8)&&(_0x81072[_0x540951(0x220)](_0x81072[_0x540951(0x251)],_0x81072[_0x540951(0x251)])?(_0x578da3[_0x540951(0x1bc)](_0x540951(0xf7)+_0x51a314['clusterName']+_0x540951(0x22f)),_0x4fa9be=![],_0x171f2f=!![]):(_0x244ba5=_0x540951(0x108)+JSON['stringify'](_0x46173f['body']),await _0x81072[_0x540951(0x145)](reportToGalactusAndSendToEDS,_0x16911a,_0x24c9da,_0x244ba5,messageTypes[_0x540951(0x27a)],_0x81072[_0x540951(0x25f)],_0x81072['vcTBl'],_0x81072[_0x540951(0x223)]),logger[_0x540951(0x278)](_0x244ba5),process[_0x540951(0x18e)](0x1)));const _0x44acee=JSON[_0x540951(0x117)](_0x46173f[_0x540951(0x19e)]),_0x3c4d94={};_0x3c4d94['type']=WS_EVENTS['CLI_RUN_STARTED'],_0x3c4d94[_0x540951(0x1b0)]=_0x81072[_0x540951(0x1e2)],webSocketUtils[_0x540951(0x228)](_0x24c9da,_0x3c4d94);const _0x1825a7={};_0x1825a7[_0x540951(0x170)]=WS_EVENTS[_0x540951(0x187)],_0x1825a7[_0x540951(0x1b0)]=_0x81072[_0x540951(0x13d)],webSocketUtils['sendEventToBackend'](_0x24c9da,_0x1825a7);_0x44acee[_0x540951(0xe1)]&&(_0x81072[_0x540951(0x15e)](_0x81072[_0x540951(0x136)],_0x81072['zSFKV'])?(_0x244ba5='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x3e1cea+_0x540951(0x286),await _0x81072['FRtlc'](reportToGalactusAndSendToEDS,_0x16911a,_0x24c9da,_0x244ba5,messageTypes[_0x540951(0x27a)],_0x81072[_0x540951(0x25f)],_0x81072[_0x540951(0x285)],_0x81072['crZrZ']),logger[_0x540951(0x278)](_0x244ba5),process[_0x540951(0x18e)](0x1)):_0x3c453d['info'](_0x81072[_0x540951(0x13b)]));const _0x426b8d=_0x44acee[_0x540951(0x21e)];let _0x18c9a7=_0x426b8d[_0x44acee[_0x540951(0x24b)]];_0x16911a[_0x540951(0x27b)]&&(_0x81072['scYFo'](_0x81072['hsugq'],_0x81072[_0x540951(0x1dc)])?_0x47f473=_0x81072[_0x540951(0x20c)]:_0x18c9a7=_0x426b8d[_0x16911a['gridProfile']]);global_registry[_0x540951(0x1a3)]=![];if(_0x16911a[_0x540951(0x13e)]){if(_0x81072['WULwi'](_0x81072['PDIsL'],_0x81072['PDIsL'])){const _0x1d650c=_0x81072['Enlva'][_0x540951(0x22b)]('|');let _0x4109d3=0x0;while(!![]){switch(_0x1d650c[_0x4109d3++]){case'0':global_registry[_0x540951(0x1e7)]=_0x81072[_0x540951(0x104)];continue;case'1':global_registry[_0x540951(0x236)]=_0x81072['TXpeH'];continue;case'2':global_registry[_0x540951(0x1a3)]=!![];continue;case'3':global_registry[_0x540951(0x155)]=_0x81072['QgNgt'];continue;case'4':logger[_0x540951(0x1bc)](_0x81072[_0x540951(0x225)]);continue;}break;}}else _0x1dd663[_0x540951(0x278)](_0x540951(0x1da)+_0x5ec120+'\x20\x0a'+_0x16f3a6[_0x540951(0x1ea)](_0x1d8e3e['stack']));}if(_0x81072[_0x540951(0x181)](_0x6ecbe1,![])&&_0x81072[_0x540951(0xed)](_0x175428,![])){if(_0x81072[_0x540951(0x247)](_0x81072['tMabt'],_0x81072[_0x540951(0xec)])){_0x81072[_0x540951(0x15c)](_0x18c9a7,undefined)&&(_0x81072['RifPI'](_0x81072[_0x540951(0x1d5)],_0x81072[_0x540951(0x1d5)])?_0x33eb02[_0x540951(0x13f)]=!![]:(_0x244ba5=_0x81072[_0x540951(0x28a)],await _0x81072[_0x540951(0x145)](reportToGalactusAndSendToEDS,_0x16911a,_0x24c9da,_0x244ba5,messageTypes[_0x540951(0x27a)],_0x81072[_0x540951(0x25f)],_0x81072[_0x540951(0x103)],_0x81072[_0x540951(0x223)]),logger[_0x540951(0x278)](_0x244ba5),process['exit'](0x1)));global_registry[_0x540951(0x22c)]=_0x18c9a7['id'],_0x244ba5=_0x540951(0x243)+_0x3e1cea+'\x20using\x20\x27'+_0x18c9a7[_0x540951(0x212)]+'\x27\x20grid\x20profile',logger[_0x540951(0x1bc)](_0x244ba5);const _0x5bc01e={};_0x5bc01e[_0x540951(0x170)]=WS_EVENTS['LOG'],_0x5bc01e[_0x540951(0x1b0)]=_0x244ba5,webSocketUtils[_0x540951(0x228)](_0x24c9da,_0x5bc01e),_0x437ea7=_0x18c9a7[_0x540951(0x210)],_0x6580d4=_0x18c9a7[_0x540951(0x1e9)],_0x5c7fd3=_0x18c9a7[_0x540951(0x1ba)],_0x926345=_0x18c9a7['concurrency'],_0x14a099=_0x18c9a7[_0x540951(0xfe)],_0x5f394b=_0x18c9a7['vpc'],_0xb60b64=_0x18c9a7[_0x540951(0x227)],_0x58b29d=_0x18c9a7[_0x540951(0x25d)],_0x426175=_0x18c9a7[_0x540951(0x1b5)],_0x5c14d2=_0x18c9a7['minNodes'],_0x12d099=_0x18c9a7[_0x540951(0x193)],_0x5f53a0=_0x44acee[_0x540951(0xfd)],_0x31d1f4=_0x44acee[_0x540951(0x1bf)];if(_0x5f394b&&_0x81072[_0x540951(0x15e)](_0x5f394b['length'],0x0)){if(_0x81072[_0x540951(0x20e)](_0x81072[_0x540951(0xeb)],_0x81072[_0x540951(0xeb)])){const _0x3068ef={'azure.workload.identity/use':_0x81072[_0x540951(0xe9)],..._0x3d432c[0x0][_0x540951(0x242)][_0x540951(0x164)][_0x540951(0x256)][_0x540951(0x12d)]};_0x28a3b6[0x0][_0x540951(0x242)]['template'][_0x540951(0x256)][_0x540951(0x12d)]=_0x3068ef,_0x3e3ea8[0x0]['spec']['template'][_0x540951(0x242)][_0x540951(0xfa)]=_0x81072['lbglq'];}else _0x5f394b=null;}_0x58b29d&&_0x81072['PbCLa'](_0x58b29d[_0x540951(0xe2)],0x0)&&(_0x81072[_0x540951(0x1ee)](_0x81072[_0x540951(0x208)],_0x81072[_0x540951(0xfc)])?_0x58b29d=null:_0x4e4268[_0x540951(0x27b)]=_0x18a38f[_0x540951(0x27b)]);_0x81072[_0x540951(0x100)](_0x18c9a7[_0x540951(0x293)],undefined)&&_0x18c9a7[_0x540951(0x293)]&&(_0x81072[_0x540951(0x138)](_0x81072[_0x540951(0x233)],_0x81072[_0x540951(0x233)])?_0x583f5d=_0x81072['xuhJc']:global_registry[_0x540951(0x13f)]=!![]);_0x81072[_0x540951(0x28e)](updateGlobalRegistryWithConfig,_0x437ea7,_0x6580d4,_0x5c7fd3,_0x926345,_0x14a099,_0x426175,_0x18c9a7,_0x5f53a0,_0x31d1f4,_0x5c14d2,_0x12d099,_0x16911a[_0x540951(0x191)]);if(global_registry['enableHubHa']){if(_0x81072[_0x540951(0x176)](_0x81072[_0x540951(0x188)],_0x81072['acFzO']))_0x81072['nyTTi'](updateGlobalRegistryForHubHa,_0x44acee[_0x540951(0x209)]);else{const _0xbe7ee8=_0x81072[_0x540951(0x205)]['split']('|');let _0x4e3ce8=0x0;while(!![]){switch(_0xbe7ee8[_0x4e3ce8++]){case'0':_0x4ade89[_0x540951(0x1e7)]=_0x81072[_0x540951(0x104)];continue;case'1':_0x31e540[_0x540951(0x1bc)](_0x81072[_0x540951(0x225)]);continue;case'2':_0x192f3[_0x540951(0x1a3)]=!![];continue;case'3':_0x140131[_0x540951(0x155)]=_0x81072[_0x540951(0x1b8)];continue;case'4':_0x1d5beb[_0x540951(0x236)]=_0x81072['TXpeH'];continue;}break;}}}}else _0x46dd3e['isPrivateGrid']=!![];}else{if(_0x81072[_0x540951(0x1b4)](_0x175428,!![])){if(_0x81072[_0x540951(0x15c)](_0x81072[_0x540951(0x17b)],_0x81072[_0x540951(0x105)])){const _0x44e112=_0x81072[_0x540951(0x156)][_0x540951(0x22b)]('|');let _0x3cabb9=0x0;while(!![]){switch(_0x44e112[_0x3cabb9++]){case'0':const _0x2fe137={};_0x2fe137[_0x540951(0x170)]=_0x19e9fd[_0x540951(0x187)],_0x2fe137[_0x540951(0x1b0)]=_0x46a377,_0x2e2553['sendEventToBackend'](_0x293f0e,_0x2fe137);continue;case'1':_0x59fe44=null;continue;case'2':_0x460ac3=null;continue;case'3':_0x81072[_0x540951(0x10e)](_0x430327,_0x450425,_0x5ef99f,_0x4f6e52,_0x409a89,_0x318b12,_0x561f9c,_0x4b7ab1,_0x8d6c27,_0x4a752c,_0x2b6635,_0x1885bc,_0x300ea4[_0x540951(0x191)]);continue;case'4':_0x4966ba[_0x540951(0x1bc)](_0x1df158);continue;case'5':_0x334546=_0x1639bc[_0x540951(0x203)];continue;case'6':_0x20f48f=null;continue;case'7':_0x1188a1=_0x1afd45['instanceType'];continue;case'8':_0x38a598=_0x540951(0x23b)+_0x5424fd;continue;case'9':_0xc2220c=_0x75292d[_0x540951(0x1bf)];continue;case'10':_0x81072[_0x540951(0x220)](_0x35e409[_0x540951(0x293)],_0x5627d0)&&_0x3e7fb9[_0x540951(0x293)]&&(_0x56a52d[_0x540951(0x13f)]=!![]);continue;case'11':_0x4f5331=_0x3842d0[_0x540951(0x1b5)];continue;case'12':_0x195f22=_0x3af1b1[_0x540951(0xfd)];continue;case'13':_0x7c47d8=_0x32d9ed[_0x540951(0x193)];continue;case'14':_0x3c9f0a[_0x540951(0x1a3)]&&_0x81072[_0x540951(0x115)](_0x4d2c66,_0x28c5f3['kafkaUploader']);continue;case'15':_0x11117a=_0x45dd0d[_0x540951(0x214)];continue;}break;}}else{_0x244ba5='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x3e1cea,logger[_0x540951(0x1bc)](_0x244ba5);const _0x5d38e6={};_0x5d38e6[_0x540951(0x170)]=WS_EVENTS[_0x540951(0x187)],_0x5d38e6[_0x540951(0x1b0)]=_0x244ba5,webSocketUtils['sendEventToBackend'](_0x24c9da,_0x5d38e6),_0x926345=_0x18c9a7[_0x540951(0x214)],_0x14a099=_0x18c9a7[_0x540951(0xfe)],_0x5f394b=null,_0xb60b64=null,_0x58b29d=null,_0x426175=_0x18c9a7[_0x540951(0x1b5)],_0x5c14d2=_0x18c9a7[_0x540951(0x203)],_0x12d099=_0x18c9a7[_0x540951(0x193)],_0x5f53a0=_0x44acee[_0x540951(0xfd)],_0x31d1f4=_0x44acee[_0x540951(0x1bf)];_0x81072['VadBO'](_0x18c9a7['privateGrid'],undefined)&&_0x18c9a7['privateGrid']&&(_0x81072[_0x540951(0x1e3)](_0x81072['KnDKq'],_0x81072[_0x540951(0x169)])?_0x23dc2a[_0x540951(0x1bc)]('Found\x20Subnets:\x20'+_0x58a44a[_0x540951(0x1ea)](_0x18db23)+'\x20'):global_registry[_0x540951(0x13f)]=!![]);_0x81072[_0x540951(0x28e)](updateGlobalRegistryWithConfig,_0x437ea7,_0x6580d4,_0x5c7fd3,_0x926345,_0x14a099,_0x426175,_0x18c9a7,_0x5f53a0,_0x31d1f4,_0x5c14d2,_0x12d099,_0x16911a['clusterAutoupgrade']);if(global_registry['enableHubHa']){if(_0x81072[_0x540951(0x17c)](_0x81072['pbQVZ'],_0x81072[_0x540951(0x194)]))_0x81072[_0x540951(0x23a)](updateGlobalRegistryForHubHa,_0x44acee[_0x540951(0xe5)]);else{const _0x3955b6={};_0x3955b6[_0x540951(0x257)]=_0x81072[_0x540951(0x202)],_0x3955b6['type']=_0x81072[_0x540951(0x159)];const _0x81527a={};_0x81527a[_0x540951(0x257)]=_0x81072[_0x540951(0x1e0)],_0x81527a['type']=_0x81072['UohHq'];const _0x5edc74={};_0x5edc74['description']=_0x81072['iIQxl'],_0x5edc74[_0x540951(0x170)]=_0x81072[_0x540951(0x159)];const _0xf481b0={};_0xf481b0[_0x540951(0x257)]=_0x81072[_0x540951(0x23e)],_0xf481b0[_0x540951(0x170)]=_0x81072[_0x540951(0x159)];const _0x4a90d5={};_0x4a90d5['description']=_0x81072['Yrqso'],_0x4a90d5['type']=_0x81072['UohHq'];const _0x18eea7={};_0x18eea7['description']=_0x81072['BWPZf'],_0x18eea7['type']=_0x81072[_0x540951(0x159)];const _0x45094d={};_0x45094d[_0x540951(0x257)]=_0x81072[_0x540951(0x118)],_0x45094d[_0x540951(0x170)]=_0x81072[_0x540951(0x287)],_0x45094d[_0x540951(0x269)]=![];const _0x28c8d6={};_0x28c8d6[_0x540951(0x257)]=_0x81072['syGDd'],_0x28c8d6['type']=_0x81072[_0x540951(0x287)],_0x28c8d6[_0x540951(0x269)]=![];const _0x44703e={};_0x44703e['description']=_0x81072[_0x540951(0x1ab)],_0x44703e[_0x540951(0x170)]=_0x81072[_0x540951(0x287)],_0x44703e[_0x540951(0x269)]=![];const _0x566660={};return _0x566660[_0x540951(0x11d)]=_0x3955b6,_0x566660[_0x540951(0x1d9)]=_0x81527a,_0x566660[_0x540951(0x284)]=_0x5edc74,_0x566660[_0x540951(0xf2)]=_0xf481b0,_0x566660['region']=_0x4a90d5,_0x566660[_0x540951(0x1f8)]=_0x18eea7,_0x566660[_0x540951(0x1fe)]=_0x45094d,_0x566660[_0x540951(0x1c0)]=_0x28c8d6,_0x566660[_0x540951(0x18b)]=_0x44703e,_0x50672b[_0x540951(0x1aa)](_0x3e9bfe['create'])[_0x540951(0x1d8)](_0x432486)['options'](_0x566660)[_0x540951(0x171)](_0x81072[_0x540951(0x1d7)])[_0x540951(0x1e1)];}}}}else{if(_0x81072['QnpKN'](_0x81072[_0x540951(0x17e)],_0x81072[_0x540951(0x17e)])){const _0x43b276=_0x81072[_0x540951(0x26f)][_0x540951(0x22b)]('|');let _0x96a684=0x0;while(!![]){switch(_0x43b276[_0x96a684++]){case'0':const _0x24e58c={};_0x24e58c[_0x540951(0x170)]=WS_EVENTS['CLI_RUN_STARTED'],_0x24e58c[_0x540951(0x1b0)]=_0x81072[_0x540951(0x1e2)],webSocketUtils[_0x540951(0x228)](_0x24c9da,_0x24e58c);continue;case'1':logger['info'](_0x244ba5);continue;case'2':global_registry[_0x540951(0x1e9)]=_0x6580d4;continue;case'3':global_registry[_0x540951(0xfd)]=_0x44acee[_0x540951(0xfd)];continue;case'4':global_registry[_0x540951(0x210)]=_0x437ea7;continue;case'5':_0x244ba5=_0x540951(0x27d)+_0x3e1cea+_0x540951(0xee)+_0x6580d4+'\x27';continue;case'6':global_registry[_0x540951(0x1bf)]=_0x44acee[_0x540951(0x1bf)];continue;case'7':const _0x1a23c9={};_0x1a23c9[_0x540951(0x170)]=WS_EVENTS[_0x540951(0x187)],_0x1a23c9[_0x540951(0x1b0)]=_0x244ba5,webSocketUtils['sendEventToBackend'](_0x24c9da,_0x1a23c9);continue;case'8':global_registry[_0x540951(0x204)]=_0x5c7fd3;continue;}break;}}else _0x27d5c5=null;}}const _0x24b162=await _0x81072['FJXce'](getCloudProviderObject,_0x437ea7,_0x6580d4,_0x3e1cea,_0x24c9da,webSocketUtils,_0x16911a);if(_0x81072[_0x540951(0x1f9)](_0x437ea7,AZURE)){if(_0x81072[_0x540951(0x1ce)](_0x81072[_0x540951(0xe4)],_0x81072[_0x540951(0xe4)])){const _0x531c4d={};_0x531c4d['type']=_0x44a1b4[_0x540951(0x187)],_0x531c4d[_0x540951(0x1b0)]=_0x36c9ef,_0xba4130['sendEventToBackend'](_0x497489,_0x531c4d,_0x81072['crZrZ'],!![]);}else _0x24b162[_0x540951(0x25c)]();}let _0x5e616e;if(_0x81072[_0x540951(0x16f)](_0x6ecbe1,![])){_0x244ba5='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x5c7fd3+').';const _0x194668={};_0x194668[_0x540951(0x170)]=WS_EVENTS['LOG'],_0x194668[_0x540951(0x1b0)]=_0x244ba5,webSocketUtils[_0x540951(0x228)](_0x24c9da,_0x194668),logger['info'](_0x244ba5);const _0x45cb36=await _0x24b162[_0x540951(0x135)]();if(_0x45cb36){if(_0x81072['VadBO'](_0x81072[_0x540951(0x111)],_0x81072[_0x540951(0x224)])){const _0x10fc1c={};_0x10fc1c['type']=WS_EVENTS[_0x540951(0x187)],_0x10fc1c[_0x540951(0x1b0)]=_0x540951(0x266)+_0x6580d4+_0x540951(0x16d),webSocketUtils[_0x540951(0x228)](_0x24c9da,_0x10fc1c,_0x81072['uMckm']),logger[_0x540951(0x1bc)](_0x540951(0x266)+_0x6580d4+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x6ecbe1=!![];if(_0x81072[_0x540951(0x177)](_0x175428,!![])){if(_0x81072['GfwHX'](_0x81072[_0x540951(0x28f)],_0x81072[_0x540951(0x28f)]))_0x33760f=_0x5a05ce[_0x270f80[_0x540951(0x27b)]];else throw new Error(_0x540951(0x266)+_0x6580d4+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}else throw new _0x4f61e6('Cluster\x20'+_0x535dd9+_0x540951(0x1c5));}else{const _0x44c971={};_0x44c971[_0x540951(0x170)]=WS_EVENTS[_0x540951(0x187)],_0x44c971[_0x540951(0x1b0)]=_0x81072['FyVLh'],webSocketUtils[_0x540951(0x228)](_0x24c9da,_0x44c971),logger[_0x540951(0x1bc)](_0x81072[_0x540951(0x14f)]);const _0x5b0cbc=_0x81072[_0x540951(0x231)](_0x5f394b,null)&&_0x81072['pQkXX'](_0x5f394b,undefined),_0x1342b5=_0x81072['DtCJe'](_0x58b29d,null)&&_0x81072[_0x540951(0x100)](_0x58b29d,undefined)&&_0x81072['llwbp'](_0x58b29d[_0x540951(0xe2)],0x0);if(_0x5b0cbc){_0x81072[_0x540951(0x153)](_0x1342b5,![])&&(_0x244ba5=_0x81072[_0x540951(0x1c2)],await _0x81072[_0x540951(0x28d)](reportToGalactusAndSendToEDS,_0x16911a,_0x24c9da,_0x244ba5,messageTypes[_0x540951(0x27a)],_0x81072[_0x540951(0x25f)],_0x81072['oWpMX'],_0x81072[_0x540951(0x223)]),logger[_0x540951(0x278)](_0x244ba5),process[_0x540951(0x18e)](0x1));const _0x33a5cf=await _0x24b162[_0x540951(0x1c1)](_0x5f394b);_0x81072[_0x540951(0xed)](_0x33a5cf,![])?(_0x244ba5=_0x81072[_0x540951(0x1cf)],await _0x81072[_0x540951(0x28d)](reportToGalactusAndSendToEDS,_0x16911a,_0x24c9da,_0x244ba5,messageTypes['ERROR'],_0x81072[_0x540951(0x25f)],_0x81072['cTPlO'],_0x81072[_0x540951(0x223)]),logger[_0x540951(0x278)](_0x244ba5),process[_0x540951(0x18e)](0x1)):logger['info'](_0x540951(0x1eb)+_0x5f394b+'\x20');const _0x14e6c4=await _0x24b162[_0x540951(0x237)](_0x58b29d,_0x5f394b);_0x81072[_0x540951(0x268)](_0x14e6c4[0x0],![])?(_0x244ba5=_0x540951(0x1bb)+JSON[_0x540951(0x1ea)](_0x14e6c4[0x1])+_0x540951(0x226)+_0x5f394b+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x81072[_0x540951(0x175)](reportToGalactusAndSendToEDS,_0x16911a,_0x24c9da,_0x244ba5,messageTypes[_0x540951(0x27a)],_0x81072[_0x540951(0x25f)],_0x81072[_0x540951(0x26e)],_0x81072['crZrZ']),logger[_0x540951(0x278)](_0x244ba5),process[_0x540951(0x18e)](0x1)):logger[_0x540951(0x1bc)](_0x540951(0x271)+JSON[_0x540951(0x1ea)](_0x58b29d)+'\x20'),[_0x5f394b,_0x58b29d]=await _0x24b162[_0x540951(0x158)](_0x5f394b,_0x58b29d);}else{const _0x5b4072=_0x81072[_0x540951(0x16c)][_0x540951(0x22b)]('|');let _0xbff10c=0x0;while(!![]){switch(_0x5b4072[_0xbff10c++]){case'0':logger['info'](_0x81072['gzeQO']);continue;case'1':const _0x196423={};_0x196423['type']=WS_EVENTS[_0x540951(0x187)],_0x196423[_0x540951(0x1b0)]=_0x81072[_0x540951(0x262)],webSocketUtils[_0x540951(0x228)](_0x24c9da,_0x196423);continue;case'2':const _0x504a33={};_0x504a33[_0x540951(0x170)]=WS_EVENTS[_0x540951(0x187)],_0x504a33[_0x540951(0x1b0)]=_0x81072['gzeQO'],webSocketUtils['sendEventToBackend'](_0x24c9da,_0x504a33);continue;case'3':[_0x5f394b,_0x58b29d]=await _0x24b162[_0x540951(0x158)](_0x5f394b,_0x58b29d);continue;case'4':logger[_0x540951(0x1bc)](_0x81072['tmQJU']);continue;}break;}}}}_0x6ecbe1&&_0x81072['lDPby'](_0x437ea7,AZURE)&&(await _0x24b162[_0x540951(0x11f)](),await _0x24b162[_0x540951(0x1f7)]());const [_0x38ebbd,_0x3a5e00,_0x640322,_0x1663cf,_0x44223f,_0x5a910c,_0x2881f0]=await _0x81072[_0x540951(0x183)](createK8sClient,_0x24b162,_0x16911a[_0x540951(0x14c)]);_0x81072[_0x540951(0x123)](_0x6ecbe1,![])&&_0x81072['VFkjv'](_0x437ea7,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x5e616e=await _0x24b162[_0x540951(0xf8)](_0x38ebbd,_0x16911a));if(_0x81072[_0x540951(0x134)](_0x6ecbe1,![])&&global_registry[_0x540951(0x1a3)])try{await _0x24b162[_0x540951(0x137)](_0x5a910c,_0x2881f0,_0x16911a,_0x5f394b,_0x58b29d);const _0x5358f8={};_0x5358f8[_0x540951(0x170)]=WS_EVENTS['LOG'],_0x5358f8[_0x540951(0x1b0)]=_0x81072[_0x540951(0x173)],webSocketUtils[_0x540951(0x228)](_0x24c9da,_0x5358f8);!await _0x81072[_0x540951(0x1be)](namespaceExists,_0x38ebbd,global_registry['hubHaNameSpace'])&&await _0x81072['DuenJ'](createNamespace,_0x38ebbd,global_registry[_0x540951(0x1e7)]);logger[_0x540951(0x1bc)](_0x81072[_0x540951(0x267)]);let _0x4a8be6=await fs[_0x540951(0x11a)](path['join'](__dirname,_0x81072[_0x540951(0x1fb)],_0x81072[_0x540951(0x16e)],_0x81072[_0x540951(0x1c9)],_0x81072[_0x540951(0x1c6)]),_0x81072['tnvPa']);_0x4a8be6=_0x4a8be6['replace'](/<RedisClientPassword>/g,_0x81072['IzLvN'](encodeBase64,global_registry[_0x540951(0x236)])),_0x4a8be6=_0x4a8be6[_0x540951(0x10c)](/<KafkaClientPassword>/g,_0x81072[_0x540951(0x1b9)](encodeBase64,global_registry['kafkaPassword'])),_0x4a8be6=_0x4a8be6[_0x540951(0x10c)](/<BstackUsername>/g,_0x81072['emuTf'](encodeBase64,global_registry[_0x540951(0x15f)])),_0x4a8be6=_0x4a8be6[_0x540951(0x10c)](/<BstackAccessKey>/g,_0x81072[_0x540951(0x115)](encodeBase64,global_registry['bstackAccesskey']));const _0x20f518=yaml[_0x540951(0x14d)](_0x4a8be6);await _0x81072[_0x540951(0x1ed)](kubeApply,_0x20f518,_0x2881f0),logger[_0x540951(0x1bc)](_0x81072[_0x540951(0x167)]);let _0x3b4f9a=_0x81072[_0x540951(0x22e)];if(_0x81072[_0x540951(0x1fd)](_0x437ea7,AZURE))_0x3b4f9a=_0x81072[_0x540951(0x20f)];else _0x81072['tejzi'](_0x437ea7,GCP)&&(_0x3b4f9a=_0x81072[_0x540951(0x20c)]);logger['info'](_0x81072['ajZCJ']);let _0x443c22=await fs['readFileAsync'](path[_0x540951(0x1dd)](__dirname,_0x81072[_0x540951(0x1fb)],_0x81072[_0x540951(0x16e)],_0x81072[_0x540951(0x1c9)],_0x81072[_0x540951(0x1de)]),_0x81072[_0x540951(0x24f)]);_0x443c22=_0x443c22[_0x540951(0x10c)](/<HubHaNameSpace>/g,global_registry[_0x540951(0x1e7)]),_0x443c22=_0x443c22[_0x540951(0x10c)](/<StorageClassName>/g,_0x3b4f9a);const _0x3c5f26=yaml[_0x540951(0x14d)](_0x443c22);await _0x81072[_0x540951(0x1ad)](kubeApply,_0x3c5f26,_0x2881f0),logger[_0x540951(0x1bc)](_0x81072[_0x540951(0x121)]),logger['info'](_0x81072['UmrMP']);let _0x5bf2b6=await fs[_0x540951(0x11a)](path['join'](__dirname,_0x81072[_0x540951(0x1fb)],_0x81072[_0x540951(0x16e)],_0x81072[_0x540951(0x1c9)],_0x81072[_0x540951(0x213)]),_0x81072[_0x540951(0x24f)]);_0x5bf2b6=_0x5bf2b6[_0x540951(0x10c)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x5bf2b6=_0x5bf2b6['replace'](/<StorageClassName>/g,_0x3b4f9a);const _0x45b37a=yaml['loadAll'](_0x5bf2b6);await _0x81072[_0x540951(0x1ad)](kubeApply,_0x45b37a,_0x2881f0),logger['info'](_0x81072['QUHWB']),logger[_0x540951(0x1bc)](_0x81072[_0x540951(0xe7)]);let _0x2566c1=await fs[_0x540951(0x11a)](path[_0x540951(0x1dd)](__dirname,_0x81072['OGKgg'],_0x81072['eGSiV'],_0x81072[_0x540951(0x1c9)],_0x81072['njKxM']),_0x81072['tnvPa']);_0x2566c1=_0x2566c1[_0x540951(0x10c)](/<UploaderImageVersion>/g,global_registry[_0x540951(0x244)]),_0x2566c1=_0x2566c1[_0x540951(0x10c)](/<HubHaNameSpace>/g,global_registry[_0x540951(0x1e7)]);const _0x3386fa=yaml[_0x540951(0x14d)](_0x2566c1);_0x81072[_0x540951(0x157)](global_registry[_0x540951(0x210)],AZURE)&&(_0x3386fa[0x0][_0x540951(0x242)][_0x540951(0x164)][_0x540951(0x256)][_0x540951(0x12d)]={'azure.workload.identity/use':_0x81072[_0x540951(0xe9)],..._0x3386fa[0x0][_0x540951(0x242)][_0x540951(0x164)][_0x540951(0x256)][_0x540951(0x12d)]},_0x3386fa[0x0][_0x540951(0x242)][_0x540951(0x164)]['spec'][_0x540951(0xfa)]=_0x81072[_0x540951(0x255)]);await _0x81072[_0x540951(0x1ec)](kubeApply,_0x3386fa,_0x2881f0),logger[_0x540951(0x1bc)](_0x81072['SNuOr']);const _0x2417dc={};_0x2417dc['type']=WS_EVENTS[_0x540951(0x187)],_0x2417dc[_0x540951(0x1b0)]=_0x81072['dlJkt'],webSocketUtils['sendEventToBackend'](_0x24c9da,_0x2417dc),logger[_0x540951(0x1bc)](_0x81072[_0x540951(0x126)]);}catch(_0x49683d){const _0x348609=_0x81072[_0x540951(0x277)][_0x540951(0x22b)]('|');let _0x287bcd=0x0;while(!![]){switch(_0x348609[_0x287bcd++]){case'0':await _0x24b162[_0x540951(0x14e)](_0x38ebbd,global_registry[_0x540951(0x204)]);continue;case'1':_0x244ba5=_0x540951(0x19b)+_0x49683d[_0x540951(0x1b0)];continue;case'2':await _0x81072[_0x540951(0x189)](reportToGalactusAndSendToEDS,_0x16911a,_0x24c9da,_0x244ba5,messageTypes[_0x540951(0x27a)],_0x81072[_0x540951(0x25f)],_0x81072[_0x540951(0xf4)],_0x81072['crZrZ']);continue;case'3':logger['error'](_0x244ba5);continue;case'4':process[_0x540951(0x18e)](0x1);continue;}break;}}try{_0x3efe3c=_0x81072[_0x540951(0x270)](kebabCase,_0x3e1cea),logger['info'](_0x81072['JwGUj']);const _0x4357c1={};_0x4357c1['type']=WS_EVENTS['LOG'],_0x4357c1[_0x540951(0x1b0)]=_0x81072[_0x540951(0x289)],webSocketUtils[_0x540951(0x228)](_0x24c9da,_0x4357c1);if(_0x81072[_0x540951(0xfb)](_0x3efe3c,_0x81072[_0x540951(0x255)])){const _0x3e08d4={};_0x3e08d4['createdBy']=_0x81072['dMDqi'],_0x3e08d4['managedBy']=_0x81072[_0x540951(0xff)];const _0x478c02={};_0x478c02['name']=_0x3efe3c,_0x478c02[_0x540951(0x1a9)]=_0x3e08d4;const _0x311663={};_0x311663[_0x540951(0x256)]=_0x478c02;const _0x240b09=_0x311663,_0x3fa93a={};_0x3fa93a['body']=_0x240b09,await _0x38ebbd[_0x540951(0x150)](_0x3fa93a),logger['info'](_0x81072[_0x540951(0x10a)]);}const _0x19e148={};_0x19e148[_0x540951(0x170)]=WS_EVENTS[_0x540951(0x187)],_0x19e148[_0x540951(0x1b0)]=_0x81072[_0x540951(0x132)],webSocketUtils[_0x540951(0x228)](_0x24c9da,_0x19e148);const _0x45892b={};_0x45892b['type']=WS_EVENTS['LOG'],_0x45892b[_0x540951(0x1b0)]=_0x81072['YCLhj'],webSocketUtils[_0x540951(0x228)](_0x24c9da,_0x45892b),logger[_0x540951(0x1bc)](_0x81072['lllbb']);let _0xa43291={};_0x81072['WZBdo'](_0x437ea7,AZURE)&&(_0xa43291={'clientId':await _0x24b162['getResourceClientId'](_0x540951(0x101)+_0x6580d4)});await _0x81072[_0x540951(0x174)](addGridComponents,_0x38ebbd,_0x3a5e00,_0x640322,_0x1663cf,_0x3efe3c,_0x6580d4,_0x5e616e,_0x44223f,_0x2881f0,_0xa43291),_0x244ba5=_0x81072[_0x540951(0x11b)],logger[_0x540951(0x1bc)](_0x244ba5);const _0x3f2ef9={};_0x3f2ef9['type']=WS_EVENTS[_0x540951(0x187)],_0x3f2ef9['message']=_0x244ba5,webSocketUtils['sendEventToBackend'](_0x24c9da,_0x3f2ef9),_0x244ba5=_0x81072['ZblWp'],logger[_0x540951(0x1bc)](_0x244ba5);const _0x9c0019={};_0x9c0019[_0x540951(0x170)]=WS_EVENTS[_0x540951(0x187)],_0x9c0019['message']=_0x244ba5,webSocketUtils[_0x540951(0x228)](_0x24c9da,_0x9c0019),await _0x81072[_0x540951(0x283)](waitForDeployment,_0x3a5e00,_0x3efe3c,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0xbf089c=await _0x81072[_0x540951(0x183)](getNamespaceUID,_0x38ebbd,_0x3efe3c),_0x2bc8a3=global_registry[_0x540951(0x13f)]?_0x81072[_0x540951(0x1a4)]:_0x81072[_0x540951(0x275)],_0x3ec62c={};_0x3ec62c[_0x540951(0x212)]=_0x2bc8a3,_0x3ec62c[_0x540951(0x1d1)]=_0x81072['wZgPO'];const _0x5b8495=await _0x38ebbd['readNamespacedService'](_0x3ec62c);let _0x538864=_0x24b162[_0x540951(0x216)](_0x5b8495)+'/'+_0x3efe3c,_0x2af500=_0x81072['yPzmQ'];try{const _0x33bbfe='https://'+AG_API_URL+_0x540951(0x151)+_0xbf089c,_0x223392=await _0x81072[_0x540951(0x1ed)](got,_0x33bbfe,_0x19f234);(_0x81072['ukQxW'](_0x223392,null)||_0x81072[_0x540951(0x12c)](_0x223392,undefined))&&(_0x244ba5=_0x81072['xLmry'],await _0x81072[_0x540951(0x229)](reportToGalactusAndSendToEDS,_0x16911a,_0x24c9da,_0x244ba5,messageTypes[_0x540951(0x27a)],_0x81072[_0x540951(0x25f)],_0x81072[_0x540951(0x12a)],_0x81072['crZrZ']),logger[_0x540951(0x278)](_0x244ba5),process['exit'](0x1));_0x81072[_0x540951(0x17c)](_0x223392['statusCode'],0x191)&&(_0x244ba5=_0x81072['tgFol'],await _0x81072[_0x540951(0x189)](reportToGalactusAndSendToEDS,_0x16911a,_0x24c9da,_0x244ba5,messageTypes[_0x540951(0x27a)],_0x81072['PcOlz'],_0x81072[_0x540951(0x1a1)],_0x81072[_0x540951(0x223)]),logger[_0x540951(0x278)](_0x244ba5),process[_0x540951(0x18e)](0x1));_0x81072[_0x540951(0x220)](_0x223392[_0x540951(0x1a7)],0xc8)&&(_0x244ba5='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x540951(0x1ea)](_0x223392),await _0x81072[_0x540951(0x28d)](reportToGalactusAndSendToEDS,_0x16911a,_0x24c9da,_0x244ba5,messageTypes[_0x540951(0x27a)],_0x81072[_0x540951(0x25f)],_0x81072[_0x540951(0x1f3)],_0x81072[_0x540951(0x223)]),logger['error'](_0x244ba5),process['exit'](0x1));const _0x42c4ff=JSON[_0x540951(0x117)](_0x223392[_0x540951(0x19e)]);_0x42c4ff[_0x540951(0x128)]&&(_0x538864=_0x42c4ff['route53'],_0x2af500=_0x81072[_0x540951(0x263)]),global_registry[_0x540951(0x13f)]&&(_0x2af500=_0x81072[_0x540951(0xe6)]);}catch(_0x25584b){}_0x244ba5=_0x540951(0x26a)+_0x538864+'\x20',logger[_0x540951(0x1bc)](_0x244ba5);const _0xa49c47={};_0xa49c47[_0x540951(0x170)]=WS_EVENTS[_0x540951(0x187)],_0xa49c47[_0x540951(0x1b0)]=_0x244ba5,webSocketUtils[_0x540951(0x228)](_0x24c9da,_0xa49c47),_0x244ba5=_0x540951(0x1a6)+_0x2af500+_0x540951(0x281)+_0x538864+_0x540951(0x217),logger[_0x540951(0x1bc)](_0x244ba5);const _0x1983fd={};_0x1983fd[_0x540951(0x170)]=WS_EVENTS[_0x540951(0x187)],_0x1983fd[_0x540951(0x1b0)]=_0x244ba5,webSocketUtils[_0x540951(0x228)](_0x24c9da,_0x1983fd);const _0xd7e793={};_0xd7e793[_0x540951(0x170)]=WS_EVENTS[_0x540951(0x22a)],_0xd7e793[_0x540951(0x1b0)]=_0x540951(0x18c)+_0x538864,webSocketUtils[_0x540951(0x228)](_0x24c9da,_0xd7e793),await webSocketUtils[_0x540951(0x25a)](0x7d0);}catch(_0x2a95cb){logger[_0x540951(0x278)](_0x540951(0x200)+_0x2a95cb+'\x20\x0a'+JSON[_0x540951(0x1ea)](_0x2a95cb[_0x540951(0x241)]));if(_0x81072[_0x540951(0x107)](_0x6ecbe1,![]))try{logger[_0x540951(0x1bc)](_0x81072[_0x540951(0x23f)]),await _0x81072['yUJgT'](removeGridComponents,_0x38ebbd,_0x3a5e00,_0x640322,_0x1663cf,_0x3efe3c),await _0x24b162['deleteCluster'](_0x38ebbd,global_registry[_0x540951(0x204)]);}catch(_0x3f0135){logger[_0x540951(0x278)](_0x540951(0x1da)+_0x3f0135+'\x20\x0a'+JSON['stringify'](_0x3f0135[_0x540951(0x241)]));}throw _0x2a95cb;}}catch(_0x4ebd08){const _0x5bfa81=_0x540951(0x279)+_0x4ebd08+'\x20\x0a'+JSON['stringify'](_0x4ebd08['stack']);if(_0x24c9da){const _0x1fc434={};_0x1fc434[_0x540951(0x170)]=WS_EVENTS[_0x540951(0x187)],_0x1fc434[_0x540951(0x1b0)]=_0x5bfa81,webSocketUtils[_0x540951(0x228)](_0x24c9da,_0x1fc434,_0x81072['crZrZ'],!![]);}await webSocketUtils['delay'](0x7d0);const _0x11c36b={};_0x11c36b[_0x540951(0x278)]=_0x5bfa81,await _0x81072[_0x540951(0x1d6)](sendInstrumentationEvent,_0x16911a,_0x81072[_0x540951(0x25f)],messageTypes[_0x540951(0x27a)],_0x81072[_0x540951(0x1af)],_0x11c36b,_0x16911a),logger['error'](_0x5bfa81);}process['exit'](0x0);};
1
+ const a9_0x559040=a9_0x49b7;(function(_0x1e5de3,_0x204065){const _0x572c81=a9_0x49b7,_0x5a050b=_0x1e5de3();while(!![]){try{const _0x33c4aa=-parseInt(_0x572c81(0x227))/0x1+parseInt(_0x572c81(0x380))/0x2+-parseInt(_0x572c81(0x332))/0x3*(parseInt(_0x572c81(0x2f1))/0x4)+-parseInt(_0x572c81(0x364))/0x5+parseInt(_0x572c81(0x2e0))/0x6+-parseInt(_0x572c81(0x1f2))/0x7+parseInt(_0x572c81(0x24d))/0x8;if(_0x33c4aa===_0x204065)break;else _0x5a050b['push'](_0x5a050b['shift']());}catch(_0x2f35a1){_0x5a050b['push'](_0x5a050b['shift']());}}}(a9_0x1c4f,0xb3d66));function a9_0x49b7(_0x14dcd4,_0x249a5d){const _0x1c4fcb=a9_0x1c4f();return a9_0x49b7=function(_0x49b786,_0x311179){_0x49b786=_0x49b786-0x1ef;let _0x530248=_0x1c4fcb[_0x49b786];return _0x530248;},a9_0x49b7(_0x14dcd4,_0x249a5d);}const fs=require('fs'),ws=require('ws'),path=require('path'),yaml=require('js-yaml'),ReconnectingWebSocket=require(a9_0x559040(0x33c)),got=require(a9_0x559040(0x373)),{v4:uuidv4}=require(a9_0x559040(0x237)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x559040(0x241)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x559040(0x38e)),{getCloudProviderObject}=require(a9_0x559040(0x382)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x559040(0x39e)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x559040(0x39c)),{createK8sClient}=require(a9_0x559040(0x223)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a9_0x1c4f(){const _0x711ccd=['dxnto','hMioY','statusCode','usage','true','dcxki','lROxN','jvScn','loadAll','WKpaR','annotations','skipTlsCertVerify','HDVrX','VmJHI','templates','name','VNdut','jELpT','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','KWruX','grid','uqyKJ','mdYAc','DmgTE','PsQAJ','skip-tls-cert-verify','Grid\x20profile\x20fetched\x20from\x20backend','message','epilogue','command','miAlW','UZHsm','mCCEj','Cluster:\x20','setupHubHa','uFLZq','yapBY','labels','gridName','JDhwu','Bzqkz','isSubnetsValid','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','createdBy','bstackUsername','readFileSync','hiGgp','luiQQ','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','yQFvo','nzshx','jzYVX','rpPiT','hubVersion','wEhUc','rdtTB','GKewg','eGvEC','Cluster\x20created\x20successfully','Adding\x20Websocket\x20listeners','alreadyPresent','bstackAccesskey','bitnami-redis.yaml','ciqqH','EMmoC','nnPzL','readFileAsync','../..','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','ROVAZ','setupAutoscaler','KnbAQ','Created\x20Hub\x20HA\x20resources','etwnc','cloudProvider','vLQSr','requestId','azurefile-csi-premium','VWlsc','utf-8','s3bucket','Epyd5nXbRK','doRAc','grid-profile','sFpXS','metadata','/packages/cli/get-grid-url?gridIdentifier=','NfYEL','flHUj','IIJoa','PzruI','Creating\x20Hub\x20HA\x20resources','username','8|0|5|7|3|4|2|1|6','kafkaUploader','POmey','WbWaw','private-grid','namespace','ePGIQ','uploaderVersion','GET','defaultGridProfile','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','newCluster','parse','kPfTd','7168806DYcOaP','builder','duCDb','wkCTe','://','TaotH','zvWpr','nJXvd','handler','yiGMh','replace','bzbWn','VcNva','\x27\x20grid\x20profile','Cluster\x20','CLI\x20run\x20started','mxrae','1572dePaKu','15|9|7|10|12|8|14|11|5|13|0|1|3|2|4|6','clusterName','debug','turboscale-managed-identity-','ynwyj','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','stack','AvjpZ','route53','yPtdG','gridProfile','UHTrg','xoylO','Aiyjk','grid-name','argv','kafkaPassword','kKflg','FqyDm','connectionTimeout','Adding\x20Kafka\x20deployment...','instanceType','get-grid-url-auth-failed','gZzhT','IXBou','error','zbpjR','hBJYc','create-grid-called','xsntu','rZmCs','ogMNr','redisPassword','evstU','spec','WSKIQ','OBenQ','string','Grid\x20can\x20be\x20accessed\x20at:\x20','concurrency','SaZvi','pYjZu','lkpbS','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','toLowerCase','Flag\x20to\x20enable\x20Hub\x20HA','deleteCluster','nGLKQ','createOtherResources','RRSAK','includes','IQtEz','default','FbWxD','plQHI','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','AXuYU','OBwXk','bitnami-kafka.yaml','fCKFr','create-grid-checks-auth-failed','https://','1197FYrtdr','BpUQh','LVYuU','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','split','Added\x20Turboscale\x20Uploader\x20deployment.','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','\x20in\x20existing\x20cluster\x20\x27','boolean','pPwLq','reconnecting-websocket','JGTgm','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','gxizT','JkuVr','SUcet','type','mbgjR','KzkeZ','uploaderImageVersion','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','iKGnL','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','wIAxc','hbTnr','eLbxk','levfY','DusHh','cloud-provider','DzezK','pre-spawned-invalid-vpc','exit','create-grid-checks-invalid-profile','enableHubHa','QiHwB','browserstack','hGuQJ','mSMNx','naelv','yWYpC','PFotA','XIJXn','OPEMS','clusterRegion','Added\x20Kafka\x20deployment.','help','isPrivateGrid','MJiZk','\x20are\x20not\x20present\x20in\x20VPC:\x20','Spawning\x20Grid\x20on\x20the\x20Cluster','4427715npPHEO','mGBQe','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','create','pre-spawned-subnets-not-selected','sendEventToBackend','Ncplm','Spawning\x20grid\x20on\x20to\x20the\x20cluster','privateGrid','Grid\x20spawned\x20on\x20the\x20cluster','pHXnU','HsVXm','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','STPiJ','Added\x20Secret\x20Mapping','got','VQgQD','UkRNzNYCBU','get-grid-url-null-response','isVPCPresent','minNodes','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','SrbMV','QcySa','mkFSL','faJWJ','cVgva','KoVFL','1439746mUCXMe','yFuHb','../../cloudproviders/utils','CLI_RUN_FINISHED','/packages/cli/create-grid-checks','non-aws-azure-cluster','CfmCK','Found\x20VPC:\x20','password','EQAOE','MXvxS','sendResourceDataToHST','lSTOa','Bbpaf','../../utils/utilityMethods','<UsernamePlaceholder>','warn','private-ingress-nginx-controller','XEwsc','cKSMu','TZolf','readNamespacedService','KTGvc','LLVxh','region','WfFxc','kiFvg','Skip\x20insecure\x20cert\x20verification.','../../utils/gridComponents','setupNewCluster','../../config/constants','rTZtd','getGridHostname','Hwddr','Browserstack','cYCHq','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','HIyYd','9943955OOsvWD','join','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','clusterAutoUpgrade','NTZeW','LOG','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','CLI_RUN_STARTED','aWjPl','TTbzS','mXPjB','opBrb','Wnhpb','browserVersion','aigTX','cluster-name','efs-csi','bhrVZ','Adding\x20Turboscale\x20Uploader\x20deployment...','uxaNy','bmlGC','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','gridProfileId','length','Creating\x20namespace','template','delay','HZBcM','xoomo','hLWYb','Subnets:\x20','FFqqW','otzID','cluster-autoupgrade','Xkgcn','grid-spawning-failed','yAldS','Create\x20a\x20new\x20Automation\x20grid.','FjeON','securityGroups','DoiCx','SsyYs','MJwFD','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','maxNodes','user','UzFFb','clusterAutoupgrade','aDTlq','../../utils/createk8sClient','ULZKr','DhHdZ','YNQAz','177482ttdDUT','MlyFa','Fseiy','body','TQeFN','DexLK','ogQeJ','oSGEU','2|1|4|0|3','WieeK','description','jbShr','euNDz','aZlaV','pnGnq','WOWkL','uuid','Deleting\x20the\x20CloudFormation\x20Stacks','jUnFq','GfTQB','prespawned-cluster-args-not-passed','LAyhD','hub-ha','qpovo','info','xrcLp','../../config/logger','Added\x20Redis\x20deployment.','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','HUmDI','jqepU','/wd/hub','yUbDU','YKatN','CwpQk','TzZCp','Found\x20Subnets:\x20','hmjKx','11698696osxERg','dgrIv','https','RAGPH','WkrzH','Namespace\x20Created','ybqPP','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','6|8|5|4|0|3|2|7|1','ingress-nginx','hubHaNameSpace','stringify','WjxNz','Jfwdk','hzxUc','tqSbO','Ydfsu','ZlSUX','managedBy','DBOkB','aqqKc','zJIwZ','EYDRi','BNClr','create-grid-checks-null-response','create-grid-checks-non-200','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','hubharesources','options','isClusterPresent','Adding\x20Secret\x20Mapping','wQdtV','POCeB','onFif','Hub\x20HA\x20setup\x20completed\x20successfully.','Spawning\x20the\x20grid\x20','ERROR','tCVUa'];a9_0x1c4f=function(){return _0x711ccd;};return a9_0x1c4f();}exports[a9_0x559040(0x291)]=a9_0x559040(0x288),exports['desc']=a9_0x559040(0x217),exports[a9_0x559040(0x2e1)]=function(_0x568351){const _0x164d86=a9_0x559040,_0xadf024={};_0xadf024[_0x164d86(0x359)]=_0x164d86(0x2dc),_0xadf024[_0x164d86(0x244)]=_0x164d86(0x318),_0xadf024['IIJoa']=_0x164d86(0x346),_0xadf024[_0x164d86(0x225)]=_0x164d86(0x31e),_0xadf024[_0x164d86(0x234)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0xadf024[_0x164d86(0x27d)]=_0x164d86(0x1f0),_0xadf024[_0x164d86(0x29b)]='Create\x20a\x20private/public\x20grid.',_0xadf024[_0x164d86(0x2b4)]=_0x164d86(0x39b),_0xadf024[_0x164d86(0x1f1)]=_0x164d86(0x33a),_0xadf024[_0x164d86(0x2f6)]=_0x164d86(0x320),_0xadf024[_0x164d86(0x203)]=_0x164d86(0x21d),_0xadf024[_0x164d86(0x31b)]=_0x164d86(0x35f);const _0x2ffb50=_0xadf024,_0x5b4c80={};_0x5b4c80[_0x164d86(0x231)]=_0x2ffb50[_0x164d86(0x359)],_0x5b4c80[_0x164d86(0x342)]=_0x2ffb50[_0x164d86(0x244)];const _0x99dc47={};_0x99dc47[_0x164d86(0x231)]=_0x2ffb50[_0x164d86(0x2ce)],_0x99dc47[_0x164d86(0x342)]=_0x2ffb50[_0x164d86(0x244)];const _0x480552={};_0x480552[_0x164d86(0x231)]=_0x2ffb50[_0x164d86(0x225)],_0x480552[_0x164d86(0x342)]=_0x2ffb50['HUmDI'];const _0x51d51b={};_0x51d51b[_0x164d86(0x231)]=_0x2ffb50[_0x164d86(0x234)],_0x51d51b[_0x164d86(0x342)]=_0x2ffb50[_0x164d86(0x244)];const _0x3a51bf={};_0x3a51bf[_0x164d86(0x231)]=_0x2ffb50[_0x164d86(0x27d)],_0x3a51bf[_0x164d86(0x342)]=_0x2ffb50[_0x164d86(0x244)];const _0x31152f={};_0x31152f[_0x164d86(0x231)]=_0x2ffb50[_0x164d86(0x29b)],_0x31152f[_0x164d86(0x342)]=_0x2ffb50[_0x164d86(0x244)];const _0x4d5d40={};_0x4d5d40['description']=_0x2ffb50['ciqqH'],_0x4d5d40['type']=_0x2ffb50[_0x164d86(0x1f1)],_0x4d5d40[_0x164d86(0x327)]=![];const _0xc7fbc8={};_0xc7fbc8[_0x164d86(0x231)]=_0x2ffb50[_0x164d86(0x2f6)],_0xc7fbc8[_0x164d86(0x342)]=_0x2ffb50[_0x164d86(0x1f1)],_0xc7fbc8['default']=![];const _0x1ddef7={};_0x1ddef7[_0x164d86(0x231)]=_0x2ffb50[_0x164d86(0x203)],_0x1ddef7[_0x164d86(0x342)]=_0x2ffb50['HIyYd'],_0x1ddef7[_0x164d86(0x327)]=![];const _0x14a63d={};return _0x14a63d[_0x164d86(0x301)]=_0x5b4c80,_0x14a63d[_0x164d86(0x2c8)]=_0x99dc47,_0x14a63d[_0x164d86(0x201)]=_0x480552,_0x14a63d[_0x164d86(0x34e)]=_0x51d51b,_0x14a63d[_0x164d86(0x398)]=_0x3a51bf,_0x14a63d[_0x164d86(0x2d6)]=_0x31152f,_0x14a63d[_0x164d86(0x28d)]=_0x4d5d40,_0x14a63d[_0x164d86(0x23d)]=_0xc7fbc8,_0x14a63d[_0x164d86(0x213)]=_0x1ddef7,_0x568351['usage'](HELP_HEADER_MESSAGE[_0x164d86(0x367)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x164d86(0x26a)](_0x14a63d)['help'](_0x2ffb50[_0x164d86(0x31b)])[_0x164d86(0x302)];},exports[a9_0x559040(0x2e8)]=async function(_0x2e2f6f){const _0x2cb1c8=a9_0x559040,_0x462ab6={'pnGnq':_0x2cb1c8(0x390),'WbWaw':function(_0x378a85,_0x202569){return _0x378a85===_0x202569;},'JGTgm':_0x2cb1c8(0x278),'VNdut':'default','MJiZk':'premium-rwo','lkpbS':_0x2cb1c8(0x22f),'zxiiz':_0x2cb1c8(0x2c6),'SsyYs':_0x2cb1c8(0x355),'YNQAz':'Enabling\x20Hub\x20HA\x20flow','xoylO':_0x2cb1c8(0x375),'mxrae':_0x2cb1c8(0x2f8),'KzkeZ':function(_0x61245c,_0x4405fc){return _0x61245c(_0x4405fc);},'POmey':_0x2cb1c8(0x24f),'hmjKx':_0x2cb1c8(0x2c2),'KnbAQ':_0x2cb1c8(0x2f2),'plQHI':function(_0xb6d7e2,_0x23817f){return _0xb6d7e2!==_0x23817f;},'MXvxS':function(_0x177a4f,_0x183c2c,_0x35e496,_0x3d3d13,_0x561dc3,_0x3391b6,_0x2fe6f7,_0x2cb9f8,_0x5ca411,_0x1b90be,_0x264112,_0x4879d6,_0x5d024f){return _0x177a4f(_0x183c2c,_0x35e496,_0x3d3d13,_0x561dc3,_0x3391b6,_0x2fe6f7,_0x2cb9f8,_0x5ca411,_0x1b90be,_0x264112,_0x4879d6,_0x5d024f);},'fCKFr':_0x2cb1c8(0x30c),'nMYha':_0x2cb1c8(0x2dc),'iKGnL':_0x2cb1c8(0x318),'uqyKJ':_0x2cb1c8(0x346),'JhJom':_0x2cb1c8(0x31e),'onFif':_0x2cb1c8(0x379),'inurt':_0x2cb1c8(0x1f0),'yQFvo':'Create\x20a\x20private/public\x20grid.','LAyhD':'Skip\x20insecure\x20cert\x20verification.','lROxN':_0x2cb1c8(0x33a),'FjeON':_0x2cb1c8(0x320),'yAldS':_0x2cb1c8(0x21d),'rTZtd':_0x2cb1c8(0x35f),'aQEUm':_0x2cb1c8(0x2d2),'wQdtV':_0x2cb1c8(0x2ef),'ybqPP':'http','jbShr':function(_0x14df44){return _0x14df44();},'KcPWH':function(_0x57a068){return _0x57a068();},'aigTX':_0x2cb1c8(0x326),'oSGEU':_0x2cb1c8(0x32a),'faJWJ':function(_0x563710,_0xe674d4,_0xb40dfe,_0x69cf52,_0x5d8999,_0x6e0c3d,_0x58961f){return _0x563710(_0xe674d4,_0xb40dfe,_0x69cf52,_0x5d8999,_0x6e0c3d,_0x58961f);},'aWjPl':_0x2cb1c8(0x30f),'eROvQ':'init-not-called','qpovo':function(_0x367458,_0x2f0959,_0x47054d,_0x7f7630,_0x1a1926,_0x12c7ae,_0xe861cc){return _0x367458(_0x2f0959,_0x47054d,_0x7f7630,_0x1a1926,_0x12c7ae,_0xe861cc);},'mdYAc':function(_0x2ff078){return _0x2ff078();},'EncPY':_0x2cb1c8(0x38f),'AXuYU':'<PasswordPlaceholder>','GfTQB':_0x2cb1c8(0x2b0),'VcNva':_0x2cb1c8(0x2e2),'mXPjB':'rnoSZ','naelv':_0x2cb1c8(0x287),'PzruI':_0x2cb1c8(0x286),'yapBY':function(_0x41cc63,_0x37924c,_0x36dbaf,_0x6f7665,_0x599027,_0x68172b,_0x447416,_0x396755){return _0x41cc63(_0x37924c,_0x36dbaf,_0x6f7665,_0x599027,_0x68172b,_0x447416,_0x396755);},'OBwXk':_0x2cb1c8(0x23b),'Ncplm':function(_0x2d4eb7,_0x278f49){return _0x2d4eb7===_0x278f49;},'cKSMu':_0x2cb1c8(0x2a2),'EMmoC':_0x2cb1c8(0x2c3),'Jfwdk':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Gwioi':_0x2cb1c8(0x385),'TzZCp':_0x2cb1c8(0x305),'JGXlb':_0x2cb1c8(0x24e),'MJwFD':_0x2cb1c8(0x38c),'euNDz':'dkxjr','pHXnU':'mTPzh','PFotA':_0x2cb1c8(0x30e),'nnPzL':_0x2cb1c8(0x2da),'ZlSUX':function(_0x342290,_0x3c6ec9,_0x19af08){return _0x342290(_0x3c6ec9,_0x19af08);},'UHTrg':function(_0x3c8714,_0xb5e0a0){return _0x3c8714!==_0xb5e0a0;},'rpPiT':_0x2cb1c8(0x2cd),'wIAxc':_0x2cb1c8(0x33b),'EYDRi':function(_0xa31462,_0x5ed1c7){return _0xa31462!==_0x5ed1c7;},'nJXvd':_0x2cb1c8(0x356),'bzbWn':function(_0x2d5e22,_0x47c37e,_0x5922fb){return _0x2d5e22(_0x47c37e,_0x5922fb);},'aqqKc':function(_0x169b5d,_0x375ee5){return _0x169b5d===_0x375ee5;},'mGBQe':function(_0x3cbf2c,_0x28223e){return _0x3cbf2c===_0x28223e;},'RAGPH':function(_0x3e69e4,_0x54b2ef){return _0x3e69e4!==_0x54b2ef;},'WkrzH':_0x2cb1c8(0x20d),'fcwfO':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','BctpQ':_0x2cb1c8(0x266),'otzID':function(_0x335f62,_0x563ce2){return _0x335f62!==_0x563ce2;},'TQeFN':'KlFWw','tqSbO':_0x2cb1c8(0x29e),'zbpjR':_0x2cb1c8(0x330),'pYjZu':function(_0x446ffd,_0x4f51f1){return _0x446ffd!==_0x4f51f1;},'VmOgo':_0x2cb1c8(0x26e),'XIJXn':_0x2cb1c8(0x292),'SyTyz':_0x2cb1c8(0x267),'luiQQ':_0x2cb1c8(0x28e),'rdtTB':_0x2cb1c8(0x2cc),'hbTnr':function(_0x440ca9,_0x5f85a3,_0x117596,_0x1a39ea,_0x568949,_0x15b46e,_0x3dcbd3,_0x34c2eb){return _0x440ca9(_0x5f85a3,_0x117596,_0x1a39ea,_0x568949,_0x15b46e,_0x3dcbd3,_0x34c2eb);},'HsVXm':'create-grid-checks-grid-already-exists','RRSAK':function(_0x1ff4b1,_0x4b558){return _0x1ff4b1===_0x4b558;},'GKewg':_0x2cb1c8(0x316),'xsntu':function(_0x3a2670,_0x406d62){return _0x3a2670!==_0x406d62;},'eGvEC':_0x2cb1c8(0x37a),'PsQAJ':'2|3|1|4|0','QcySa':function(_0x1a5e2c,_0x25dc5a){return _0x1a5e2c===_0x25dc5a;},'Wnhpb':_0x2cb1c8(0x2a8),'hqGRx':_0x2cb1c8(0x22c),'kKflg':_0x2cb1c8(0x341),'gZzhT':_0x2cb1c8(0x2a5),'xoomo':_0x2cb1c8(0x352),'STPiJ':function(_0x251eff,_0xef5f51){return _0x251eff!==_0xef5f51;},'Bbpaf':_0x2cb1c8(0x37f),'DusHh':_0x2cb1c8(0x27b),'LVYuU':function(_0x1f7faa,_0x44dcc6){return _0x1f7faa===_0x44dcc6;},'TTbzS':_0x2cb1c8(0x280),'dxnto':function(_0x472534,_0x1f021c){return _0x472534!==_0x1f021c;},'ayZtR':_0x2cb1c8(0x28b),'mSMNx':_0x2cb1c8(0x263),'COgmH':function(_0x52cf82,_0x9c503,_0x3e9254,_0x10eff4,_0x5287c8,_0x574949,_0x46d8b8,_0x30ec63,_0x3e4034,_0x360ff9,_0x2cc1ab,_0x2720e9,_0x1879eb){return _0x52cf82(_0x9c503,_0x3e9254,_0x10eff4,_0x5287c8,_0x574949,_0x46d8b8,_0x30ec63,_0x3e4034,_0x360ff9,_0x2cc1ab,_0x2720e9,_0x1879eb);},'CfmCK':_0x2cb1c8(0x224),'WjxNz':function(_0xcf466d,_0x5bb7a5){return _0xcf466d(_0x5bb7a5);},'sFpXS':function(_0x17cab2,_0x23e552){return _0x17cab2===_0x23e552;},'uxaNy':function(_0x1bf22a,_0x4ab33e){return _0x1bf22a!==_0x4ab33e;},'EQAOE':'UTXKs','OBenQ':function(_0xd24363,_0x620fcb){return _0xd24363!==_0x620fcb;},'jUnFq':_0x2cb1c8(0x354),'mkFSL':_0x2cb1c8(0x247),'XEwsc':_0x2cb1c8(0x230),'wkCTe':function(_0x1cfeda,_0x3f6a92){return _0x1cfeda(_0x3f6a92);},'bxrfv':_0x2cb1c8(0x2e5),'hzxUc':_0x2cb1c8(0x256),'hLWYb':'FKNgx','RSDJc':function(_0x265ad7,_0x25173f){return _0x265ad7===_0x25173f;},'opBrb':_0x2cb1c8(0x399),'jELpT':_0x2cb1c8(0x2c7),'DBOkB':'KOcap','yiGMh':_0x2cb1c8(0x207),'Fseiy':function(_0x1af7de,_0x2f193d){return _0x1af7de!=_0x2f193d;},'dhsjv':function(_0x1ce0c0,_0xef987f){return _0x1ce0c0!=_0xef987f;},'uFLZq':function(_0x8b4692,_0x312b05){return _0x8b4692>_0x312b05;},'DzezK':function(_0x513a81,_0x2592b1){return _0x513a81===_0x2592b1;},'ogQeJ':_0x2cb1c8(0x268),'NTZeW':function(_0x3cd31c,_0x5a6e27,_0x236a09,_0x4325bd,_0x51e668,_0x14c2e5,_0xbd0c85,_0x3c969a){return _0x3cd31c(_0x5a6e27,_0x236a09,_0x4325bd,_0x51e668,_0x14c2e5,_0xbd0c85,_0x3c969a);},'YKatN':_0x2cb1c8(0x368),'Bzqkz':function(_0x4939c7,_0x1bc573){return _0x4939c7===_0x1bc573;},'mbgjR':_0x2cb1c8(0x32b),'Hwddr':_0x2cb1c8(0x350),'dcxki':'pre-spawned-invalid-subnets','nzshx':'4|1|0|2|3','FFqqW':'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.','vLQSr':_0x2cb1c8(0x2af),'aDTlq':function(_0x482a0a,_0x3b6a10){return _0x482a0a===_0x3b6a10;},'aqmUg':function(_0xf2fa7b,_0x2e1909){return _0xf2fa7b===_0x2e1909;},'IOAyP':function(_0x551c95,_0x826825){return _0x551c95===_0x826825;},'OPEMS':_0x2cb1c8(0x2d0),'VQgQD':function(_0x2e9eab,_0x2bf349,_0x1b4266){return _0x2e9eab(_0x2bf349,_0x1b4266);},'bIoqm':_0x2cb1c8(0x26c),'Ydfsu':_0x2cb1c8(0x2b8),'wEhUc':_0x2cb1c8(0x282),'gxizT':_0x2cb1c8(0x269),'ePGIQ':'browserstack-secret.yaml','TZolf':_0x2cb1c8(0x2c4),'Aiyjk':function(_0x5aaa46,_0x4a0cf2){return _0x5aaa46(_0x4a0cf2);},'BpUQh':function(_0x4f4d21,_0x4f7921){return _0x4f4d21(_0x4f7921);},'tCVUa':function(_0x3fd94c,_0x5f0c69){return _0x3fd94c(_0x5f0c69);},'FbWxD':_0x2cb1c8(0x372),'ogMNr':_0x2cb1c8(0x202),'BqhYq':function(_0x1dfc6d,_0x42f7fc){return _0x1dfc6d===_0x42f7fc;},'LLVxh':'Adding\x20Redis\x20deployment...','kiFvg':_0x2cb1c8(0x2b3),'cVgva':function(_0x58ea58,_0x47a2b6,_0x376c1e){return _0x58ea58(_0x47a2b6,_0x376c1e);},'ROVAZ':_0x2cb1c8(0x242),'UZHsm':_0x2cb1c8(0x307),'levfY':_0x2cb1c8(0x32e),'OuWMv':function(_0x3b2e27,_0x5bc71e,_0x50e9ee){return _0x3b2e27(_0x5bc71e,_0x50e9ee);},'Xkgcn':_0x2cb1c8(0x35e),'Snwdw':_0x2cb1c8(0x204),'CwpQk':'turboscale-uploader.yaml','VmJHI':function(_0x1c07e3,_0x5e6ac6,_0x4cb4e9){return _0x1c07e3(_0x5e6ac6,_0x4cb4e9);},'bmlGC':_0x2cb1c8(0x337),'jqepU':_0x2cb1c8(0x2bd),'CUpMa':_0x2cb1c8(0x270),'rZmCs':'4|2|3|1|0','DoiCx':function(_0x3794a2,_0x6c19f5,_0x1e3ba0,_0x33752b,_0x1d8a7f,_0x1e7481,_0x226639,_0x4ca0d7){return _0x3794a2(_0x6c19f5,_0x1e3ba0,_0x33752b,_0x1d8a7f,_0x1e7481,_0x226639,_0x4ca0d7);},'IXBou':'hub-ha-deployments-failed','cYCHq':_0x2cb1c8(0x20a),'mCCEj':_0x2cb1c8(0x3a2),'WOWkL':_0x2cb1c8(0x252),'zvWpr':'Namespace\x20created','evstU':_0x2cb1c8(0x36b),'ROINr':_0x2cb1c8(0x363),'yPtdG':function(_0xd8a17f,_0x499c16){return _0xd8a17f===_0x499c16;},'awAZE':function(_0x2d940e,_0x1d7e9f,_0x215ece,_0x11c3a7,_0x265253,_0x72b22d,_0x27c2cb,_0x2109b4,_0x84ab84,_0x514acc,_0x88804f){return _0x2d940e(_0x1d7e9f,_0x215ece,_0x11c3a7,_0x265253,_0x72b22d,_0x27c2cb,_0x2109b4,_0x84ab84,_0x514acc,_0x88804f);},'KTGvc':_0x2cb1c8(0x36d),'kPfTd':_0x2cb1c8(0x2a4),'eLbxk':function(_0x31fe40,_0x3e49ef,_0x2d8493,_0x3ca72a,_0x2c4191){return _0x31fe40(_0x3e49ef,_0x2d8493,_0x3ca72a,_0x2c4191);},'kruWJ':function(_0x1f7dac,_0x4df656,_0x81ca20){return _0x1f7dac(_0x4df656,_0x81ca20);},'IhiMY':_0x2cb1c8(0x391),'JkuVr':'ingress-nginx-controller','IEmIz':_0x2cb1c8(0x257),'xrcLp':function(_0x326227,_0xeee871,_0x43e4dd){return _0x326227(_0xeee871,_0x43e4dd);},'QXhMs':function(_0x5e1c00,_0x248915){return _0x5e1c00===_0x248915;},'BNClr':function(_0x1350ab,_0x81e895){return _0x1350ab===_0x81e895;},'OOKkg':_0x2cb1c8(0x254),'etwnc':_0x2cb1c8(0x376),'AvjpZ':function(_0x16f634,_0x177509){return _0x16f634===_0x177509;},'VMesz':_0x2cb1c8(0x366),'wRcNd':function(_0x47362e,_0x5467e5,_0xe0c58c,_0x23bf99,_0x4568b2,_0x3a3707,_0x6f96f7,_0x407fb1){return _0x47362e(_0x5467e5,_0xe0c58c,_0x23bf99,_0x4568b2,_0x3a3707,_0x6f96f7,_0x407fb1);},'HskFy':_0x2cb1c8(0x309),'WQpjo':function(_0x433164,_0x299bba){return _0x433164!==_0x299bba;},'yFuHb':function(_0x15493f,_0x2ab992,_0x378b71,_0x1b6b88,_0x287193,_0x223508,_0x4c88f1,_0xe70774){return _0x15493f(_0x2ab992,_0x378b71,_0x1b6b88,_0x287193,_0x223508,_0x4c88f1,_0xe70774);},'MlyFa':'get-grid-url-non-200','nGLKQ':function(_0x27d338,_0x41e3fd){return _0x27d338===_0x41e3fd;},'OWfIh':_0x2cb1c8(0x238),'UzFFb':function(_0x46b3c1,_0x370701,_0x39859b,_0x2f8e2f,_0x400754,_0x1ac032){return _0x46b3c1(_0x370701,_0x39859b,_0x2f8e2f,_0x400754,_0x1ac032);},'ldZIR':function(_0x381ad7,_0x267138,_0x4dd46f,_0x31cf2d,_0x19d48e,_0x3f586d,_0x2a8389){return _0x381ad7(_0x267138,_0x4dd46f,_0x31cf2d,_0x19d48e,_0x3f586d,_0x2a8389);},'hMioY':_0x2cb1c8(0x215)};let _0x55c989=![],_0x486cb0=![],_0x545413,_0x4668fd,_0x364d9e,_0x39dd9a,_0x39e345,_0x5ea58d,_0x278508,_0x3b5668,_0x31d26d,_0x1c29e9,_0x100016,_0x3e62ed,_0x34e56e,_0x781a0a,_0x16fe99=0x1,_0x33cf9d=0xe;try{global_registry[_0x2cb1c8(0x2c1)]=_0x462ab6[_0x2cb1c8(0x232)](uuidv4),global_registry[_0x2cb1c8(0x360)]=![];if(!fs['existsSync'](_0x462ab6['KcPWH'](getCredentialsPath))){if(_0x462ab6['plQHI'](_0x462ab6[_0x2cb1c8(0x200)],_0x462ab6['aigTX']))throw new _0xa655ab(_0x2cb1c8(0x2ee)+_0x4a9dda+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else console['error'](_0x462ab6[_0x2cb1c8(0x22e)]),await _0x462ab6[_0x2cb1c8(0x37d)](sendInstrumentationEvent,_0x2e2f6f,_0x462ab6[_0x2cb1c8(0x1fa)],messageTypes[_0x2cb1c8(0x272)],_0x462ab6['eROvQ'],null,_0x2e2f6f),process[_0x2cb1c8(0x351)](0x1);}await _0x462ab6[_0x2cb1c8(0x23e)](sendInstrumentationEvent,_0x2e2f6f,_0x462ab6[_0x2cb1c8(0x1fa)],messageTypes['INFO'],null,null,_0x2e2f6f);const _0xee31c6=JSON[_0x2cb1c8(0x2de)](fs[_0x2cb1c8(0x2a1)](_0x462ab6[_0x2cb1c8(0x28a)](getCredentialsPath)));global_registry[_0x2cb1c8(0x2a0)]=_0xee31c6[_0x2cb1c8(0x3a2)]['username'],global_registry[_0x2cb1c8(0x2b2)]=_0xee31c6[_0x2cb1c8(0x3a2)][_0x2cb1c8(0x388)];const _0x4a43d7=WS_ENDPOINT[_0x2cb1c8(0x2ea)](_0x462ab6['EncPY'],_0xee31c6['Browserstack'][_0x2cb1c8(0x2d1)])[_0x2cb1c8(0x2ea)](_0x462ab6[_0x2cb1c8(0x32c)],_0xee31c6[_0x2cb1c8(0x3a2)][_0x2cb1c8(0x388)]),_0x2f8485={};_0x2f8485['WebSocket']=ws,_0x2f8485[_0x2cb1c8(0x306)]=0x36ee80,_0x3e62ed=new ReconnectingWebSocket(_0x4a43d7,[],_0x2f8485),logger[_0x2cb1c8(0x2f4)](_0x462ab6[_0x2cb1c8(0x23a)]),webSocketUtils['addListeners'](_0x3e62ed,_0x2e2f6f[_0x2cb1c8(0x21f)],_0x2e2f6f[_0x2cb1c8(0x388)]);const _0xb85b5=_0x2e2f6f[_0x2cb1c8(0x29a)]||DEFAULT_GRID_NAME;if(_0x2e2f6f[_0x2cb1c8(0x2f3)]||_0x2e2f6f[_0x2cb1c8(0x2bf)]||_0x2e2f6f[_0x2cb1c8(0x398)]){if(_0x462ab6[_0x2cb1c8(0x2d5)](_0x462ab6[_0x2cb1c8(0x2ec)],_0x462ab6[_0x2cb1c8(0x2ec)])){!(_0x2e2f6f[_0x2cb1c8(0x2f3)]&&_0x2e2f6f[_0x2cb1c8(0x2bf)]&&_0x2e2f6f[_0x2cb1c8(0x398)])&&(_0x462ab6[_0x2cb1c8(0x329)](_0x462ab6[_0x2cb1c8(0x1fc)],_0x462ab6[_0x2cb1c8(0x358)])?(_0x545413=_0x462ab6[_0x2cb1c8(0x2cf)],await _0x462ab6[_0x2cb1c8(0x298)](reportToGalactusAndSendToEDS,_0x2e2f6f,_0x3e62ed,_0x545413,messageTypes[_0x2cb1c8(0x272)],_0x462ab6[_0x2cb1c8(0x1fa)],_0x462ab6[_0x2cb1c8(0x32d)],_0x462ab6[_0x2cb1c8(0x32f)]),logger[_0x2cb1c8(0x30c)](_0x545413),process[_0x2cb1c8(0x351)](0x1)):_0x52421a=_0x165645[_0x12580d['gridProfile']]);![AWS,AZURE,GCP][_0x2cb1c8(0x325)](_0x2e2f6f[_0x2cb1c8(0x2bf)][_0x2cb1c8(0x31f)]())&&(_0x462ab6[_0x2cb1c8(0x36a)](_0x462ab6[_0x2cb1c8(0x393)],_0x462ab6[_0x2cb1c8(0x2b5)])?(_0x371538[_0x2cb1c8(0x398)]=_0x33a038,_0x26239f['cloudProvider']=_0x59a0c2,_0x31efed[_0x2cb1c8(0x2dd)]=!![],_0x3c5ffb[_0x2cb1c8(0x1f5)]=_0x5bef48[_0x2cb1c8(0x221)]):(_0x545413=_0x462ab6[_0x2cb1c8(0x25b)],await _0x462ab6[_0x2cb1c8(0x298)](reportToGalactusAndSendToEDS,_0x2e2f6f,_0x3e62ed,_0x545413,messageTypes['ERROR'],_0x462ab6[_0x2cb1c8(0x1fa)],_0x462ab6['Gwioi'],_0x462ab6[_0x2cb1c8(0x32f)]),logger[_0x2cb1c8(0x30c)](_0x545413),process[_0x2cb1c8(0x351)](0x1)));if(_0x2e2f6f[_0x2cb1c8(0x36c)]&&_0x462ab6[_0x2cb1c8(0x2d5)](_0x2e2f6f[_0x2cb1c8(0x36c)]['toLowerCase'](),_0x462ab6['JGTgm'])){if(_0x462ab6[_0x2cb1c8(0x329)](_0x462ab6[_0x2cb1c8(0x24a)],_0x462ab6['JGXlb']))global_registry[_0x2cb1c8(0x360)]=!![];else{const _0x39cf8b={};_0x39cf8b[_0x2cb1c8(0x342)]=_0x48298d[_0x2cb1c8(0x1f7)],_0x39cf8b[_0x2cb1c8(0x28f)]=_0x2cb1c8(0x2ee)+_0x47ef41+_0x2cb1c8(0x33e),_0x443e0c[_0x2cb1c8(0x369)](_0x340f83,_0x39cf8b,_0x462ab6[_0x2cb1c8(0x235)]),_0x412b7a[_0x2cb1c8(0x23f)](_0x2cb1c8(0x2ee)+_0x39a1c4+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x5e1cb5=!![];if(_0x462ab6[_0x2cb1c8(0x2d5)](_0xeb2c9c,!![]))throw new _0x49dc86('Cluster\x20'+_0xdc5229+_0x2cb1c8(0x370));}}global_registry['cloudProvider']=_0x2e2f6f['cloudProvider'],global_registry[_0x2cb1c8(0x35d)]=_0x2e2f6f[_0x2cb1c8(0x398)],global_registry[_0x2cb1c8(0x2f3)]=_0x2e2f6f[_0x2cb1c8(0x2f3)];const _0x508708=await _0x462ab6[_0x2cb1c8(0x37d)](getCloudProviderObject,_0x2e2f6f[_0x2cb1c8(0x2bf)],_0x2e2f6f['clusterName'],_0xb85b5,_0x3e62ed,webSocketUtils,_0x2e2f6f),_0x28949a=await _0x508708[_0x2cb1c8(0x26b)]();!_0x28949a?_0x462ab6[_0x2cb1c8(0x329)](_0x462ab6['MJwFD'],_0x462ab6[_0x2cb1c8(0x21c)])?_0x52a5f0[_0x2cb1c8(0x360)]=!![]:(logger[_0x2cb1c8(0x23f)]('Cluster:\x20'+_0x2e2f6f['clusterName']+_0x2cb1c8(0x255)),_0x55c989=![],_0x486cb0=!![]):_0x462ab6[_0x2cb1c8(0x329)](_0x462ab6[_0x2cb1c8(0x233)],_0x462ab6[_0x2cb1c8(0x233)])?_0x610536=null:_0x55c989=!![],_0x364d9e=_0x2e2f6f[_0x2cb1c8(0x2f3)],_0x4668fd=_0x2e2f6f[_0x2cb1c8(0x2bf)][_0x2cb1c8(0x31f)](),_0x39dd9a=_0x2e2f6f[_0x2cb1c8(0x398)];}else{const _0x2993c6={'azure.workload.identity/use':_0x462ab6[_0x2cb1c8(0x33d)],..._0x4b6637[0x0][_0x2cb1c8(0x315)][_0x2cb1c8(0x20b)][_0x2cb1c8(0x2ca)][_0x2cb1c8(0x299)]};_0x184e2e[0x0][_0x2cb1c8(0x315)]['template'][_0x2cb1c8(0x2ca)][_0x2cb1c8(0x299)]=_0x2993c6,_0x9ecbda[0x0][_0x2cb1c8(0x315)][_0x2cb1c8(0x20b)][_0x2cb1c8(0x315)]['serviceAccountName']=_0x462ab6['VNdut'];}}else _0x2e2f6f[_0x2cb1c8(0x2fd)]&&(_0x462ab6['plQHI'](_0x462ab6[_0x2cb1c8(0x36e)],_0x462ab6[_0x2cb1c8(0x35a)])?global_registry[_0x2cb1c8(0x2fd)]=_0x2e2f6f[_0x2cb1c8(0x2fd)]:_0x2bb496=_0x462ab6[_0x2cb1c8(0x361)]);global_registry['gridName']=_0x2e2f6f['gridName'];const _0x76a716={'method':_0x462ab6[_0x2cb1c8(0x2b6)],'headers':_0x462ab6['ZlSUX'](getAuthHeader,_0xee31c6[_0x2cb1c8(0x3a2)][_0x2cb1c8(0x2d1)],_0xee31c6['Browserstack'][_0x2cb1c8(0x388)]),'throwHttpErrors':![]},_0x56f373={};_0x56f373[_0x2cb1c8(0x29a)]=_0xb85b5;const _0x13d253=_0x56f373;_0x486cb0&&(_0x462ab6[_0x2cb1c8(0x2fe)](_0x462ab6[_0x2cb1c8(0x2a9)],_0x462ab6[_0x2cb1c8(0x349)])?(_0x13d253[_0x2cb1c8(0x398)]=_0x39dd9a,_0x13d253[_0x2cb1c8(0x2bf)]=_0x4668fd,_0x13d253[_0x2cb1c8(0x2dd)]=!![],_0x13d253[_0x2cb1c8(0x1f5)]=_0x2e2f6f[_0x2cb1c8(0x221)]):_0x267bd1[_0x2cb1c8(0x2fd)]=_0x35496a[_0x2cb1c8(0x2fd)]);if(_0x2e2f6f[_0x2cb1c8(0x221)]){if(_0x462ab6[_0x2cb1c8(0x264)](_0x462ab6[_0x2cb1c8(0x2e7)],_0x462ab6['nJXvd'])){const _0x1a493a=_0x462ab6[_0x2cb1c8(0x31d)][_0x2cb1c8(0x336)]('|');let _0x5b7bc1=0x0;while(!![]){switch(_0x1a493a[_0x5b7bc1++]){case'0':_0x4bc383[_0x2cb1c8(0x303)]=_0x462ab6['zxiiz'];continue;case'1':_0x28fbb3[_0x2cb1c8(0x258)]=_0x462ab6[_0x2cb1c8(0x21b)];continue;case'2':_0x575918['info'](_0x462ab6[_0x2cb1c8(0x226)]);continue;case'3':_0x43e102[_0x2cb1c8(0x353)]=!![];continue;case'4':_0xff76e3[_0x2cb1c8(0x313)]=_0x462ab6[_0x2cb1c8(0x2ff)];continue;}break;}}else logger[_0x2cb1c8(0x23f)](_0x462ab6[_0x2cb1c8(0x2f0)]);}const _0x99e4a7=_0x2cb1c8(0x331)+AG_API_URL+_0x2cb1c8(0x384),_0x2f055a={'searchParams':_0x13d253,'throwHttpErrors':![],..._0x76a716},_0x38b015=_0x2f055a,_0x1c39be=await _0x462ab6[_0x2cb1c8(0x2eb)](got,_0x99e4a7,_0x38b015);(_0x462ab6['aqqKc'](_0x1c39be,null)||_0x462ab6['mGBQe'](_0x1c39be,undefined))&&(_0x462ab6[_0x2cb1c8(0x250)](_0x462ab6['WkrzH'],_0x462ab6[_0x2cb1c8(0x251)])?_0x362806=!![]:(_0x545413=_0x462ab6['fcwfO'],await _0x462ab6[_0x2cb1c8(0x298)](reportToGalactusAndSendToEDS,_0x2e2f6f,_0x3e62ed,_0x545413,messageTypes[_0x2cb1c8(0x272)],_0x462ab6['aWjPl'],_0x462ab6['BctpQ'],_0x462ab6[_0x2cb1c8(0x32f)]),logger[_0x2cb1c8(0x30c)](_0x545413),process[_0x2cb1c8(0x351)](0x1)));_0x462ab6[_0x2cb1c8(0x262)](_0x1c39be[_0x2cb1c8(0x276)],0x191)&&(_0x462ab6['otzID'](_0x462ab6[_0x2cb1c8(0x22b)],_0x462ab6['TQeFN'])?_0x1aeb45[_0x2cb1c8(0x23f)](_0x462ab6[_0x2cb1c8(0x2f0)]):(_0x545413=_0x462ab6[_0x2cb1c8(0x25d)],await _0x462ab6[_0x2cb1c8(0x298)](reportToGalactusAndSendToEDS,_0x2e2f6f,_0x3e62ed,_0x545413,messageTypes['ERROR'],_0x462ab6['aWjPl'],_0x462ab6[_0x2cb1c8(0x30d)],_0x462ab6[_0x2cb1c8(0x32f)]),logger[_0x2cb1c8(0x30c)](_0x545413),process[_0x2cb1c8(0x351)](0x1)));_0x462ab6[_0x2cb1c8(0x31c)](_0x1c39be[_0x2cb1c8(0x276)],0xc8)&&(_0x462ab6[_0x2cb1c8(0x36a)](_0x462ab6['VmOgo'],_0x462ab6[_0x2cb1c8(0x35b)])?_0xe3a604=null:(_0x545413=_0x2cb1c8(0x2f7)+JSON[_0x2cb1c8(0x259)](_0x1c39be[_0x2cb1c8(0x22a)]),await _0x462ab6['yapBY'](reportToGalactusAndSendToEDS,_0x2e2f6f,_0x3e62ed,_0x545413,messageTypes[_0x2cb1c8(0x272)],_0x462ab6[_0x2cb1c8(0x1fa)],_0x462ab6['SyTyz'],_0x462ab6[_0x2cb1c8(0x32f)]),logger[_0x2cb1c8(0x30c)](_0x545413),process['exit'](0x1)));const _0x5ccdc2=JSON[_0x2cb1c8(0x2de)](_0x1c39be[_0x2cb1c8(0x22a)]),_0x579519={};_0x579519[_0x2cb1c8(0x342)]=WS_EVENTS[_0x2cb1c8(0x1f9)],_0x579519[_0x2cb1c8(0x28f)]=_0x462ab6[_0x2cb1c8(0x26d)],webSocketUtils['sendEventToBackend'](_0x3e62ed,_0x579519);const _0x3accd4={};_0x3accd4[_0x2cb1c8(0x342)]=WS_EVENTS[_0x2cb1c8(0x1f7)],_0x3accd4[_0x2cb1c8(0x28f)]=_0x462ab6[_0x2cb1c8(0x2a3)],webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0x3accd4);_0x5ccdc2[_0x2cb1c8(0x2b1)]&&(_0x462ab6[_0x2cb1c8(0x329)](_0x462ab6[_0x2cb1c8(0x2ac)],_0x462ab6[_0x2cb1c8(0x2ac)])?_0x462ab6[_0x2cb1c8(0x344)](_0x4e9194,_0xd59ca9[_0x2cb1c8(0x2d9)]):(_0x545413=_0x2cb1c8(0x335)+_0xb85b5+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x462ab6['hbTnr'](reportToGalactusAndSendToEDS,_0x2e2f6f,_0x3e62ed,_0x545413,messageTypes[_0x2cb1c8(0x272)],_0x462ab6[_0x2cb1c8(0x1fa)],_0x462ab6[_0x2cb1c8(0x36f)],_0x462ab6[_0x2cb1c8(0x32f)]),logger[_0x2cb1c8(0x30c)](_0x545413),process['exit'](0x1)));const _0x4e4015=_0x5ccdc2['gridProfiles'];let _0x508768=_0x4e4015[_0x5ccdc2[_0x2cb1c8(0x2db)]];_0x2e2f6f[_0x2cb1c8(0x2fd)]&&(_0x462ab6[_0x2cb1c8(0x324)](_0x462ab6[_0x2cb1c8(0x2ad)],_0x462ab6[_0x2cb1c8(0x2ad)])?_0x508768=_0x4e4015[_0x2e2f6f[_0x2cb1c8(0x2fd)]]:_0x42a767[_0x2cb1c8(0x30c)](_0x2cb1c8(0x1f8)+_0x29e677+'\x20\x0a'+_0x4a285a[_0x2cb1c8(0x259)](_0x166c41[_0x2cb1c8(0x2f9)])));global_registry['enableHubHa']=![];if(_0x2e2f6f['hubHa']){if(_0x462ab6[_0x2cb1c8(0x310)](_0x462ab6[_0x2cb1c8(0x2ae)],_0x462ab6[_0x2cb1c8(0x2ae)]))_0x497980=_0x4f10df[_0x2cb1c8(0x2fb)],_0x3d8778=_0x462ab6['POmey'];else{const _0x339117=_0x462ab6[_0x2cb1c8(0x28c)][_0x2cb1c8(0x336)]('|');let _0x2fc7b5=0x0;while(!![]){switch(_0x339117[_0x2fc7b5++]){case'0':global_registry[_0x2cb1c8(0x353)]=!![];continue;case'1':global_registry[_0x2cb1c8(0x313)]=_0x462ab6[_0x2cb1c8(0x2ff)];continue;case'2':logger[_0x2cb1c8(0x23f)](_0x462ab6['YNQAz']);continue;case'3':global_registry['hubHaNameSpace']=_0x462ab6[_0x2cb1c8(0x21b)];continue;case'4':global_registry['kafkaPassword']=_0x462ab6['zxiiz'];continue;}break;}}}if(_0x462ab6[_0x2cb1c8(0x37b)](_0x55c989,![])&&_0x462ab6[_0x2cb1c8(0x37b)](_0x486cb0,![])){if(_0x462ab6[_0x2cb1c8(0x262)](_0x462ab6[_0x2cb1c8(0x1fe)],_0x462ab6['hqGRx']))_0x1e6fff=_0x462ab6[_0x2cb1c8(0x24c)];else{_0x462ab6['WbWaw'](_0x508768,undefined)&&(_0x462ab6[_0x2cb1c8(0x31c)](_0x462ab6[_0x2cb1c8(0x304)],_0x462ab6[_0x2cb1c8(0x304)])?_0x44d18['isPrivateGrid']=!![]:(_0x545413=_0x462ab6[_0x2cb1c8(0x30a)],await _0x462ab6['yapBY'](reportToGalactusAndSendToEDS,_0x2e2f6f,_0x3e62ed,_0x545413,messageTypes[_0x2cb1c8(0x272)],_0x462ab6['aWjPl'],_0x462ab6[_0x2cb1c8(0x20e)],_0x462ab6[_0x2cb1c8(0x32f)]),logger[_0x2cb1c8(0x30c)](_0x545413),process[_0x2cb1c8(0x351)](0x1)));global_registry[_0x2cb1c8(0x208)]=_0x508768['id'],_0x545413='Will\x20be\x20spawning\x20the\x20grid\x20'+_0xb85b5+'\x20using\x20\x27'+_0x508768[_0x2cb1c8(0x283)]+_0x2cb1c8(0x2ed),logger['info'](_0x545413);const _0x2af95c={};_0x2af95c[_0x2cb1c8(0x342)]=WS_EVENTS[_0x2cb1c8(0x1f7)],_0x2af95c['message']=_0x545413,webSocketUtils['sendEventToBackend'](_0x3e62ed,_0x2af95c),_0x4668fd=_0x508768[_0x2cb1c8(0x2bf)],_0x364d9e=_0x508768[_0x2cb1c8(0x2f3)],_0x39dd9a=_0x508768[_0x2cb1c8(0x398)],_0x39e345=_0x508768[_0x2cb1c8(0x31a)],_0x5ea58d=_0x508768[_0x2cb1c8(0x308)],_0x278508=_0x508768['vpc'],_0x3b5668=_0x508768[_0x2cb1c8(0x219)],_0x31d26d=_0x508768['subnets'],_0x1c29e9=_0x508768[_0x2cb1c8(0x2c5)],_0x16fe99=_0x508768[_0x2cb1c8(0x378)],_0x33cf9d=_0x508768[_0x2cb1c8(0x21e)],_0x34e56e=_0x5ccdc2[_0x2cb1c8(0x2aa)],_0x781a0a=_0x5ccdc2[_0x2cb1c8(0x1ff)];if(_0x278508&&_0x462ab6[_0x2cb1c8(0x2d5)](_0x278508[_0x2cb1c8(0x209)],0x0)){if(_0x462ab6[_0x2cb1c8(0x371)](_0x462ab6[_0x2cb1c8(0x38d)],_0x462ab6[_0x2cb1c8(0x34d)]))_0x278508=null;else{const _0x2f4e61=_0x462ab6[_0x2cb1c8(0x2bc)][_0x2cb1c8(0x336)]('|');let _0xf2d5fe=0x0;while(!![]){switch(_0x2f4e61[_0xf2d5fe++]){case'0':_0x3eab4a=_0x102d3e['maxNodes'];continue;case'1':_0x5b9184=_0x373801[_0x2cb1c8(0x2aa)];continue;case'2':_0x462ab6['plQHI'](_0x42b926[_0x2cb1c8(0x36c)],_0x4efa8a)&&_0x469d0b[_0x2cb1c8(0x36c)]&&(_0x119423[_0x2cb1c8(0x360)]=!![]);continue;case'3':_0xbeb8b5=_0x556a7e[_0x2cb1c8(0x1ff)];continue;case'4':_0x462ab6[_0x2cb1c8(0x38a)](_0xccbab7,_0x27d6e0,_0x4ccab3,_0x8f193,_0x46dc44,_0x5f0e7c,_0x564461,_0x5941c1,_0x41b93a,_0xdd6088,_0x3c385c,_0x534781,_0x4c1e36['clusterAutoupgrade']);continue;case'5':_0x50bf9e=_0x10b599[_0x2cb1c8(0x2c5)];continue;case'6':_0x47e035[_0x2cb1c8(0x353)]&&_0x462ab6['KzkeZ'](_0x9027c5,_0x36ffe2[_0x2cb1c8(0x2d3)]);continue;case'7':const _0xe4b854={};_0xe4b854[_0x2cb1c8(0x342)]=_0x28eef2[_0x2cb1c8(0x1f7)],_0xe4b854[_0x2cb1c8(0x28f)]=_0x48a459,_0x582918['sendEventToBackend'](_0x2e1d3c,_0xe4b854);continue;case'8':_0x58843b=null;continue;case'9':_0x4b5c36[_0x2cb1c8(0x23f)](_0x4411b8);continue;case'10':_0x3b8add=_0x135a79['concurrency'];continue;case'11':_0x32db7a=null;continue;case'12':_0x53fb4b=_0x4b52b5[_0x2cb1c8(0x308)];continue;case'13':_0x54eedb=_0x7a611f['minNodes'];continue;case'14':_0x4ca228=null;continue;case'15':_0x13007f=_0x2cb1c8(0x243)+_0x2e133a;continue;}break;}}}_0x31d26d&&_0x462ab6[_0x2cb1c8(0x334)](_0x31d26d[_0x2cb1c8(0x209)],0x0)&&(_0x462ab6[_0x2cb1c8(0x365)](_0x462ab6[_0x2cb1c8(0x1fb)],_0x462ab6[_0x2cb1c8(0x1fb)])?_0x31d26d=null:_0x198ee9['sendResourceDataToHST']());_0x462ab6['plQHI'](_0x508768[_0x2cb1c8(0x36c)],undefined)&&_0x508768[_0x2cb1c8(0x36c)]&&(_0x462ab6['dxnto'](_0x462ab6['ayZtR'],_0x462ab6[_0x2cb1c8(0x357)])?global_registry[_0x2cb1c8(0x360)]=!![]:_0x25cd36[_0x2cb1c8(0x23f)](_0x2cb1c8(0x387)+_0x7d3fd+'\x20'));_0x462ab6['COgmH'](updateGlobalRegistryWithConfig,_0x4668fd,_0x364d9e,_0x39dd9a,_0x39e345,_0x5ea58d,_0x1c29e9,_0x508768,_0x34e56e,_0x781a0a,_0x16fe99,_0x33cf9d,_0x2e2f6f[_0x2cb1c8(0x221)]);if(global_registry['enableHubHa']){if(_0x462ab6['STPiJ'](_0x462ab6[_0x2cb1c8(0x386)],_0x462ab6[_0x2cb1c8(0x386)])){const _0x55e1b9={};_0x55e1b9['type']=_0x35818d[_0x2cb1c8(0x1f7)],_0x55e1b9[_0x2cb1c8(0x28f)]=_0x32f663,_0x48e985['sendEventToBackend'](_0x650c63,_0x55e1b9,_0x462ab6[_0x2cb1c8(0x32f)],!![]);}else _0x462ab6[_0x2cb1c8(0x25a)](updateGlobalRegistryForHubHa,_0x5ccdc2[_0x2cb1c8(0x2d9)]);}}}else{if(_0x462ab6[_0x2cb1c8(0x2c9)](_0x486cb0,!![])){if(_0x462ab6['uxaNy'](_0x462ab6[_0x2cb1c8(0x389)],_0x462ab6[_0x2cb1c8(0x389)])){const _0x1e6fae={};_0x1e6fae[_0x2cb1c8(0x231)]=_0x462ab6['nMYha'],_0x1e6fae[_0x2cb1c8(0x342)]=_0x462ab6[_0x2cb1c8(0x347)];const _0x557106={};_0x557106[_0x2cb1c8(0x231)]=_0x462ab6[_0x2cb1c8(0x289)],_0x557106[_0x2cb1c8(0x342)]=_0x462ab6['iKGnL'];const _0x1c834b={};_0x1c834b[_0x2cb1c8(0x231)]=_0x462ab6['JhJom'],_0x1c834b['type']=_0x462ab6[_0x2cb1c8(0x347)];const _0xc2b1b0={};_0xc2b1b0[_0x2cb1c8(0x231)]=_0x462ab6[_0x2cb1c8(0x26f)],_0xc2b1b0[_0x2cb1c8(0x342)]=_0x462ab6[_0x2cb1c8(0x347)];const _0x2cc15e={};_0x2cc15e[_0x2cb1c8(0x231)]=_0x462ab6['inurt'],_0x2cc15e['type']=_0x462ab6[_0x2cb1c8(0x347)];const _0xd6889e={};_0xd6889e['description']=_0x462ab6[_0x2cb1c8(0x2a6)],_0xd6889e[_0x2cb1c8(0x342)]=_0x462ab6[_0x2cb1c8(0x347)];const _0x3ecc62={};_0x3ecc62[_0x2cb1c8(0x231)]=_0x462ab6[_0x2cb1c8(0x23c)],_0x3ecc62[_0x2cb1c8(0x342)]=_0x462ab6['lROxN'],_0x3ecc62[_0x2cb1c8(0x327)]=![];const _0x276b4e={};_0x276b4e['description']=_0x462ab6[_0x2cb1c8(0x218)],_0x276b4e[_0x2cb1c8(0x342)]=_0x462ab6[_0x2cb1c8(0x27a)],_0x276b4e[_0x2cb1c8(0x327)]=![];const _0x43fdb8={};_0x43fdb8['description']=_0x462ab6[_0x2cb1c8(0x216)],_0x43fdb8['type']=_0x462ab6['lROxN'],_0x43fdb8['default']=![];const _0x1a7d18={};return _0x1a7d18[_0x2cb1c8(0x301)]=_0x1e6fae,_0x1a7d18[_0x2cb1c8(0x2c8)]=_0x557106,_0x1a7d18[_0x2cb1c8(0x201)]=_0x1c834b,_0x1a7d18['cloud-provider']=_0xc2b1b0,_0x1a7d18['region']=_0x2cc15e,_0x1a7d18[_0x2cb1c8(0x2d6)]=_0xd6889e,_0x1a7d18['skip-tls-cert-verify']=_0x3ecc62,_0x1a7d18[_0x2cb1c8(0x23d)]=_0x276b4e,_0x1a7d18['cluster-autoupgrade']=_0x43fdb8,_0x2b83ad[_0x2cb1c8(0x277)](_0x525f3e[_0x2cb1c8(0x367)])[_0x2cb1c8(0x290)](_0x3a8512)['options'](_0x1a7d18)[_0x2cb1c8(0x35f)](_0x462ab6[_0x2cb1c8(0x39f)])['argv'];}else{_0x545413=_0x2cb1c8(0x243)+_0xb85b5,logger[_0x2cb1c8(0x23f)](_0x545413);const _0x3b6b92={};_0x3b6b92[_0x2cb1c8(0x342)]=WS_EVENTS['LOG'],_0x3b6b92[_0x2cb1c8(0x28f)]=_0x545413,webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0x3b6b92),_0x39e345=_0x508768['concurrency'],_0x5ea58d=_0x508768['instanceType'],_0x278508=null,_0x3b5668=null,_0x31d26d=null,_0x1c29e9=_0x508768[_0x2cb1c8(0x2c5)],_0x16fe99=_0x508768['minNodes'],_0x33cf9d=_0x508768[_0x2cb1c8(0x21e)],_0x34e56e=_0x5ccdc2['hubVersion'],_0x781a0a=_0x5ccdc2[_0x2cb1c8(0x1ff)];if(_0x462ab6[_0x2cb1c8(0x317)](_0x508768[_0x2cb1c8(0x36c)],undefined)&&_0x508768[_0x2cb1c8(0x36c)]){if(_0x462ab6[_0x2cb1c8(0x205)](_0x462ab6[_0x2cb1c8(0x239)],_0x462ab6[_0x2cb1c8(0x239)])){const _0x2ce7aa=_0x462ab6['aQEUm'][_0x2cb1c8(0x336)]('|');let _0x4c3d7d=0x0;while(!![]){switch(_0x2ce7aa[_0x4c3d7d++]){case'0':_0x3c6a5c=_0x2cb1c8(0x271)+_0x254f7d+'\x20in\x20existing\x20cluster\x20\x27'+_0x2e4683+'\x27';continue;case'1':_0x4cce41['hubVersion']=_0x1958b2[_0x2cb1c8(0x2aa)];continue;case'2':_0x29465e[_0x2cb1c8(0x2f3)]=_0x2cc685;continue;case'3':_0x1f81c6[_0x2cb1c8(0x2bf)]=_0x555cb8;continue;case'4':_0x346de0[_0x2cb1c8(0x35d)]=_0x12d924;continue;case'5':_0xb9c679[_0x2cb1c8(0x23f)](_0x47b95b);continue;case'6':_0x224950[_0x2cb1c8(0x1ff)]=_0x1e790e[_0x2cb1c8(0x1ff)];continue;case'7':const _0x424a12={};_0x424a12[_0x2cb1c8(0x342)]=_0x3f40df[_0x2cb1c8(0x1f7)],_0x424a12[_0x2cb1c8(0x28f)]=_0x3fe86d,_0x140a2c['sendEventToBackend'](_0x244dbd,_0x424a12);continue;case'8':const _0x257aff={};_0x257aff['type']=_0x4a1fb3['CLI_RUN_STARTED'],_0x257aff[_0x2cb1c8(0x28f)]=_0x462ab6['wQdtV'],_0x114546[_0x2cb1c8(0x369)](_0x5c623f,_0x257aff);continue;}break;}}else global_registry[_0x2cb1c8(0x360)]=!![];}_0x462ab6['MXvxS'](updateGlobalRegistryWithConfig,_0x4668fd,_0x364d9e,_0x39dd9a,_0x39e345,_0x5ea58d,_0x1c29e9,_0x508768,_0x34e56e,_0x781a0a,_0x16fe99,_0x33cf9d,_0x2e2f6f[_0x2cb1c8(0x221)]),global_registry['enableHubHa']&&(_0x462ab6[_0x2cb1c8(0x329)](_0x462ab6[_0x2cb1c8(0x37c)],_0x462ab6[_0x2cb1c8(0x392)])?_0x462ab6[_0x2cb1c8(0x2e3)](updateGlobalRegistryForHubHa,_0x5ccdc2[_0x2cb1c8(0x2d3)]):(_0x56a4ec[_0x2cb1c8(0x23f)](_0x2cb1c8(0x295)+_0x151bd1[_0x2cb1c8(0x2f3)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x740fdd=![],_0x23e00e=!![]));}}else{if(_0x462ab6[_0x2cb1c8(0x31c)](_0x462ab6['bxrfv'],_0x462ab6['bxrfv']))_0xec1bc7[_0x2cb1c8(0x23f)](_0x2cb1c8(0x24b)+_0x5ca9d2[_0x2cb1c8(0x259)](_0x40cf54)+'\x20');else{const _0x377de9=_0x462ab6[_0x2cb1c8(0x25c)][_0x2cb1c8(0x336)]('|');let _0x565a4c=0x0;while(!![]){switch(_0x377de9[_0x565a4c++]){case'0':global_registry[_0x2cb1c8(0x2bf)]=_0x4668fd;continue;case'1':global_registry[_0x2cb1c8(0x1ff)]=_0x5ccdc2['browserVersion'];continue;case'2':global_registry['clusterName']=_0x364d9e;continue;case'3':global_registry['clusterRegion']=_0x39dd9a;continue;case'4':const _0x39b5c={};_0x39b5c[_0x2cb1c8(0x342)]=WS_EVENTS[_0x2cb1c8(0x1f7)],_0x39b5c[_0x2cb1c8(0x28f)]=_0x545413,webSocketUtils['sendEventToBackend'](_0x3e62ed,_0x39b5c);continue;case'5':logger[_0x2cb1c8(0x23f)](_0x545413);continue;case'6':const _0x4140e0={};_0x4140e0['type']=WS_EVENTS[_0x2cb1c8(0x1f9)],_0x4140e0[_0x2cb1c8(0x28f)]=_0x462ab6[_0x2cb1c8(0x26d)],webSocketUtils['sendEventToBackend'](_0x3e62ed,_0x4140e0);continue;case'7':global_registry[_0x2cb1c8(0x2aa)]=_0x5ccdc2[_0x2cb1c8(0x2aa)];continue;case'8':_0x545413=_0x2cb1c8(0x271)+_0xb85b5+_0x2cb1c8(0x339)+_0x364d9e+'\x27';continue;}break;}}}}const _0x167960=await _0x462ab6['qpovo'](getCloudProviderObject,_0x4668fd,_0x364d9e,_0xb85b5,_0x3e62ed,webSocketUtils,_0x2e2f6f);_0x462ab6[_0x2cb1c8(0x274)](_0x4668fd,AZURE)&&(_0x462ab6[_0x2cb1c8(0x2c9)](_0x462ab6[_0x2cb1c8(0x20f)],_0x462ab6[_0x2cb1c8(0x20f)])?_0x167960[_0x2cb1c8(0x38b)]():_0x2b3f51=_0x462ab6[_0x2cb1c8(0x253)]);let _0x1fae81;if(_0x462ab6[_0x2cb1c8(0x262)](_0x55c989,![])){_0x545413=_0x2cb1c8(0x1f4)+_0x39dd9a+').';const _0x3b30c6={};_0x3b30c6[_0x2cb1c8(0x342)]=WS_EVENTS['LOG'],_0x3b30c6[_0x2cb1c8(0x28f)]=_0x545413,webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0x3b30c6),logger[_0x2cb1c8(0x23f)](_0x545413);const _0x4cebb7=await _0x167960[_0x2cb1c8(0x26b)]();if(_0x4cebb7){if(_0x462ab6['RSDJc'](_0x462ab6[_0x2cb1c8(0x1fd)],_0x462ab6[_0x2cb1c8(0x285)]))_0x41f85b[_0x2cb1c8(0x360)]=!![];else{const _0x38f892={};_0x38f892['type']=WS_EVENTS[_0x2cb1c8(0x1f7)],_0x38f892[_0x2cb1c8(0x28f)]=_0x2cb1c8(0x2ee)+_0x364d9e+_0x2cb1c8(0x33e),webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0x38f892,_0x462ab6['pnGnq']),logger[_0x2cb1c8(0x23f)]('Cluster\x20'+_0x364d9e+_0x2cb1c8(0x33e)),_0x55c989=!![];if(_0x462ab6[_0x2cb1c8(0x365)](_0x486cb0,!![])){if(_0x462ab6[_0x2cb1c8(0x205)](_0x462ab6['DBOkB'],_0x462ab6[_0x2cb1c8(0x261)]))_0x462ab6['KzkeZ'](_0x72f1fe,_0x245e67['kafkaUploader']);else throw new Error(_0x2cb1c8(0x2ee)+_0x364d9e+_0x2cb1c8(0x370));}}}else{const _0x3647e0={};_0x3647e0['type']=WS_EVENTS[_0x2cb1c8(0x1f7)],_0x3647e0[_0x2cb1c8(0x28f)]=_0x462ab6[_0x2cb1c8(0x2e9)],webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0x3647e0),logger[_0x2cb1c8(0x23f)](_0x462ab6[_0x2cb1c8(0x2e9)]);const _0x1ac268=_0x462ab6[_0x2cb1c8(0x229)](_0x278508,null)&&_0x462ab6[_0x2cb1c8(0x212)](_0x278508,undefined),_0x4f12dd=_0x462ab6['dhsjv'](_0x31d26d,null)&&_0x462ab6[_0x2cb1c8(0x310)](_0x31d26d,undefined)&&_0x462ab6[_0x2cb1c8(0x297)](_0x31d26d['length'],0x0);if(_0x1ac268){_0x462ab6[_0x2cb1c8(0x34f)](_0x4f12dd,![])&&(_0x545413=_0x462ab6[_0x2cb1c8(0x22d)],await _0x462ab6[_0x2cb1c8(0x1f6)](reportToGalactusAndSendToEDS,_0x2e2f6f,_0x3e62ed,_0x545413,messageTypes[_0x2cb1c8(0x272)],_0x462ab6[_0x2cb1c8(0x1fa)],_0x462ab6[_0x2cb1c8(0x248)],_0x462ab6['fCKFr']),logger[_0x2cb1c8(0x30c)](_0x545413),process[_0x2cb1c8(0x351)](0x1));const _0x351457=await _0x167960[_0x2cb1c8(0x377)](_0x278508);_0x462ab6[_0x2cb1c8(0x29c)](_0x351457,![])?(_0x545413=_0x462ab6[_0x2cb1c8(0x343)],await _0x462ab6[_0x2cb1c8(0x34a)](reportToGalactusAndSendToEDS,_0x2e2f6f,_0x3e62ed,_0x545413,messageTypes[_0x2cb1c8(0x272)],_0x462ab6[_0x2cb1c8(0x1fa)],_0x462ab6[_0x2cb1c8(0x3a1)],_0x462ab6[_0x2cb1c8(0x32f)]),logger[_0x2cb1c8(0x30c)](_0x545413),process[_0x2cb1c8(0x351)](0x1)):logger['info'](_0x2cb1c8(0x387)+_0x278508+'\x20');const _0xa58d62=await _0x167960[_0x2cb1c8(0x29d)](_0x31d26d,_0x278508);_0x462ab6[_0x2cb1c8(0x36a)](_0xa58d62[0x0],![])?(_0x545413=_0x2cb1c8(0x210)+JSON[_0x2cb1c8(0x259)](_0xa58d62[0x1])+_0x2cb1c8(0x362)+_0x278508+_0x2cb1c8(0x348),await _0x462ab6[_0x2cb1c8(0x1f6)](reportToGalactusAndSendToEDS,_0x2e2f6f,_0x3e62ed,_0x545413,messageTypes['ERROR'],_0x462ab6[_0x2cb1c8(0x1fa)],_0x462ab6[_0x2cb1c8(0x279)],_0x462ab6['fCKFr']),logger['error'](_0x545413),process[_0x2cb1c8(0x351)](0x1)):logger[_0x2cb1c8(0x23f)](_0x2cb1c8(0x24b)+JSON[_0x2cb1c8(0x259)](_0x31d26d)+'\x20'),[_0x278508,_0x31d26d]=await _0x167960[_0x2cb1c8(0x39d)](_0x278508,_0x31d26d);}else{const _0x3c1ecf=_0x462ab6[_0x2cb1c8(0x2a7)][_0x2cb1c8(0x336)]('|');let _0xa1c22b=0x0;while(!![]){switch(_0x3c1ecf[_0xa1c22b++]){case'0':[_0x278508,_0x31d26d]=await _0x167960['setupNewCluster'](_0x278508,_0x31d26d);continue;case'1':logger[_0x2cb1c8(0x23f)](_0x462ab6[_0x2cb1c8(0x211)]);continue;case'2':const _0xe1817a={};_0xe1817a[_0x2cb1c8(0x342)]=WS_EVENTS[_0x2cb1c8(0x1f7)],_0xe1817a[_0x2cb1c8(0x28f)]=_0x462ab6[_0x2cb1c8(0x2c0)],webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0xe1817a);continue;case'3':logger[_0x2cb1c8(0x23f)](_0x462ab6['vLQSr']);continue;case'4':const _0x59facb={};_0x59facb[_0x2cb1c8(0x342)]=WS_EVENTS['LOG'],_0x59facb[_0x2cb1c8(0x28f)]=_0x462ab6['FFqqW'],webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0x59facb);continue;}break;}}}}_0x55c989&&_0x462ab6[_0x2cb1c8(0x222)](_0x4668fd,AZURE)&&(await _0x167960['updateClusterAlreadyPresent'](),await _0x167960[_0x2cb1c8(0x323)]());const [_0x4bf747,_0x93c529,_0x137eb2,_0x1cba46,_0xc4661c,_0x1bdccf,_0x3dfcc4]=await _0x462ab6[_0x2cb1c8(0x2eb)](createK8sClient,_0x167960,_0x2e2f6f[_0x2cb1c8(0x27f)]);_0x462ab6['aqmUg'](_0x55c989,![])&&_0x462ab6[_0x2cb1c8(0x36a)](_0x4668fd,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x1fae81=await _0x167960[_0x2cb1c8(0x2bb)](_0x4bf747,_0x2e2f6f));if(_0x462ab6['IOAyP'](_0x55c989,![])&&global_registry['enableHubHa'])try{await _0x167960[_0x2cb1c8(0x296)](_0x1bdccf,_0x3dfcc4,_0x2e2f6f,_0x278508,_0x31d26d);const _0x433936={};_0x433936[_0x2cb1c8(0x342)]=WS_EVENTS[_0x2cb1c8(0x1f7)],_0x433936[_0x2cb1c8(0x28f)]=_0x462ab6[_0x2cb1c8(0x35c)],webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0x433936);!await _0x462ab6[_0x2cb1c8(0x374)](namespaceExists,_0x4bf747,global_registry[_0x2cb1c8(0x258)])&&await _0x462ab6[_0x2cb1c8(0x25f)](createNamespace,_0x4bf747,global_registry['hubHaNameSpace']);logger[_0x2cb1c8(0x23f)](_0x462ab6['bIoqm']);let _0x58a34e=await fs[_0x2cb1c8(0x2b7)](path[_0x2cb1c8(0x1f3)](__dirname,_0x462ab6['Ydfsu'],_0x462ab6[_0x2cb1c8(0x2ab)],_0x462ab6[_0x2cb1c8(0x33f)],_0x462ab6[_0x2cb1c8(0x2d8)]),_0x462ab6['TZolf']);_0x58a34e=_0x58a34e[_0x2cb1c8(0x2ea)](/<RedisClientPassword>/g,_0x462ab6[_0x2cb1c8(0x300)](encodeBase64,global_registry[_0x2cb1c8(0x313)])),_0x58a34e=_0x58a34e['replace'](/<KafkaClientPassword>/g,_0x462ab6[_0x2cb1c8(0x333)](encodeBase64,global_registry['kafkaPassword'])),_0x58a34e=_0x58a34e[_0x2cb1c8(0x2ea)](/<BstackUsername>/g,_0x462ab6[_0x2cb1c8(0x273)](encodeBase64,global_registry[_0x2cb1c8(0x2a0)])),_0x58a34e=_0x58a34e['replace'](/<BstackAccessKey>/g,_0x462ab6[_0x2cb1c8(0x25a)](encodeBase64,global_registry[_0x2cb1c8(0x2b2)]));const _0x545422=yaml[_0x2cb1c8(0x27c)](_0x58a34e);await _0x462ab6[_0x2cb1c8(0x374)](kubeApply,_0x545422,_0x3dfcc4),logger['info'](_0x462ab6[_0x2cb1c8(0x328)]);let _0x417229=_0x462ab6[_0x2cb1c8(0x312)];if(_0x462ab6['BqhYq'](_0x4668fd,AZURE))_0x417229=_0x462ab6[_0x2cb1c8(0x24c)];else _0x462ab6[_0x2cb1c8(0x334)](_0x4668fd,GCP)&&(_0x417229=_0x462ab6[_0x2cb1c8(0x361)]);logger[_0x2cb1c8(0x23f)](_0x462ab6[_0x2cb1c8(0x397)]);let _0x35e185=await fs['readFileAsync'](path[_0x2cb1c8(0x1f3)](__dirname,_0x462ab6[_0x2cb1c8(0x25e)],_0x462ab6['wEhUc'],_0x462ab6[_0x2cb1c8(0x33f)],_0x462ab6[_0x2cb1c8(0x39a)]),_0x462ab6[_0x2cb1c8(0x394)]);_0x35e185=_0x35e185[_0x2cb1c8(0x2ea)](/<HubHaNameSpace>/g,global_registry[_0x2cb1c8(0x258)]),_0x35e185=_0x35e185[_0x2cb1c8(0x2ea)](/<StorageClassName>/g,_0x417229);const _0x20f5ae=yaml['loadAll'](_0x35e185);await _0x462ab6[_0x2cb1c8(0x37e)](kubeApply,_0x20f5ae,_0x3dfcc4),logger['info'](_0x462ab6[_0x2cb1c8(0x2ba)]),logger[_0x2cb1c8(0x23f)](_0x462ab6[_0x2cb1c8(0x293)]);let _0x38f457=await fs[_0x2cb1c8(0x2b7)](path['join'](__dirname,_0x462ab6[_0x2cb1c8(0x25e)],_0x462ab6[_0x2cb1c8(0x2ab)],_0x462ab6[_0x2cb1c8(0x33f)],_0x462ab6[_0x2cb1c8(0x34c)]),_0x462ab6['TZolf']);_0x38f457=_0x38f457[_0x2cb1c8(0x2ea)](/<HubHaNameSpace>/g,global_registry[_0x2cb1c8(0x258)]),_0x38f457=_0x38f457[_0x2cb1c8(0x2ea)](/<StorageClassName>/g,_0x417229);const _0xaefc70=yaml[_0x2cb1c8(0x27c)](_0x38f457);await _0x462ab6['OuWMv'](kubeApply,_0xaefc70,_0x3dfcc4),logger[_0x2cb1c8(0x23f)](_0x462ab6[_0x2cb1c8(0x214)]),logger[_0x2cb1c8(0x23f)](_0x462ab6['Snwdw']);let _0x3d2156=await fs[_0x2cb1c8(0x2b7)](path[_0x2cb1c8(0x1f3)](__dirname,_0x462ab6[_0x2cb1c8(0x25e)],_0x462ab6[_0x2cb1c8(0x2ab)],_0x462ab6[_0x2cb1c8(0x33f)],_0x462ab6[_0x2cb1c8(0x249)]),_0x462ab6[_0x2cb1c8(0x394)]);_0x3d2156=_0x3d2156['replace'](/<UploaderImageVersion>/g,global_registry[_0x2cb1c8(0x345)]),_0x3d2156=_0x3d2156['replace'](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']);const _0x28b41b=yaml[_0x2cb1c8(0x27c)](_0x3d2156);_0x462ab6['BqhYq'](global_registry[_0x2cb1c8(0x2bf)],AZURE)&&(_0x28b41b[0x0][_0x2cb1c8(0x315)][_0x2cb1c8(0x20b)][_0x2cb1c8(0x2ca)][_0x2cb1c8(0x299)]={'azure.workload.identity/use':_0x462ab6[_0x2cb1c8(0x33d)],..._0x28b41b[0x0]['spec'][_0x2cb1c8(0x20b)][_0x2cb1c8(0x2ca)][_0x2cb1c8(0x299)]},_0x28b41b[0x0][_0x2cb1c8(0x315)][_0x2cb1c8(0x20b)][_0x2cb1c8(0x315)]['serviceAccountName']=_0x462ab6[_0x2cb1c8(0x284)]);await _0x462ab6[_0x2cb1c8(0x281)](kubeApply,_0x28b41b,_0x3dfcc4),logger[_0x2cb1c8(0x23f)](_0x462ab6[_0x2cb1c8(0x206)]);const _0x1c8807={};_0x1c8807[_0x2cb1c8(0x342)]=WS_EVENTS[_0x2cb1c8(0x1f7)],_0x1c8807[_0x2cb1c8(0x28f)]=_0x462ab6[_0x2cb1c8(0x245)],webSocketUtils['sendEventToBackend'](_0x3e62ed,_0x1c8807),logger['info'](_0x462ab6['CUpMa']);}catch(_0x2e6848){const _0x5e219f=_0x462ab6[_0x2cb1c8(0x311)][_0x2cb1c8(0x336)]('|');let _0x523221=0x0;while(!![]){switch(_0x5e219f[_0x523221++]){case'0':process[_0x2cb1c8(0x351)](0x1);continue;case'1':await _0x167960[_0x2cb1c8(0x321)](_0x4bf747,global_registry[_0x2cb1c8(0x35d)]);continue;case'2':logger[_0x2cb1c8(0x30c)](_0x545413);continue;case'3':await _0x462ab6[_0x2cb1c8(0x21a)](reportToGalactusAndSendToEDS,_0x2e2f6f,_0x3e62ed,_0x545413,messageTypes[_0x2cb1c8(0x272)],_0x462ab6[_0x2cb1c8(0x1fa)],_0x462ab6[_0x2cb1c8(0x30b)],_0x462ab6['fCKFr']);continue;case'4':_0x545413='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x2e6848[_0x2cb1c8(0x28f)];continue;}break;}}try{_0x100016=_0x462ab6['wkCTe'](kebabCase,_0xb85b5),logger[_0x2cb1c8(0x23f)](_0x462ab6[_0x2cb1c8(0x1ef)]);const _0x4b0e19={};_0x4b0e19[_0x2cb1c8(0x342)]=WS_EVENTS['LOG'],_0x4b0e19[_0x2cb1c8(0x28f)]=_0x462ab6[_0x2cb1c8(0x1ef)],webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0x4b0e19);if(_0x462ab6[_0x2cb1c8(0x317)](_0x100016,_0x462ab6['VNdut'])){const _0x226001={};_0x226001[_0x2cb1c8(0x29f)]=_0x462ab6[_0x2cb1c8(0x294)],_0x226001[_0x2cb1c8(0x260)]=_0x462ab6[_0x2cb1c8(0x294)];const _0x468162={};_0x468162[_0x2cb1c8(0x283)]=_0x100016,_0x468162[_0x2cb1c8(0x27e)]=_0x226001;const _0x4f9830={};_0x4f9830[_0x2cb1c8(0x2ca)]=_0x468162;const _0x844cfc=_0x4f9830,_0x227f0d={};_0x227f0d[_0x2cb1c8(0x22a)]=_0x844cfc,await _0x4bf747['createNamespace'](_0x227f0d),logger['info'](_0x462ab6[_0x2cb1c8(0x236)]);}const _0x371bd4={};_0x371bd4[_0x2cb1c8(0x342)]=WS_EVENTS['LOG'],_0x371bd4[_0x2cb1c8(0x28f)]=_0x462ab6[_0x2cb1c8(0x2e6)],webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0x371bd4);const _0x1e931c={};_0x1e931c['type']=WS_EVENTS[_0x2cb1c8(0x1f7)],_0x1e931c['message']=_0x462ab6[_0x2cb1c8(0x314)],webSocketUtils['sendEventToBackend'](_0x3e62ed,_0x1e931c),logger[_0x2cb1c8(0x23f)](_0x462ab6['ROINr']);let _0x50891d={};_0x462ab6[_0x2cb1c8(0x2fc)](_0x4668fd,AZURE)&&(_0x50891d={'clientId':await _0x167960['getResourceClientId'](_0x2cb1c8(0x2f5)+_0x364d9e)});await _0x462ab6['awAZE'](addGridComponents,_0x4bf747,_0x93c529,_0x137eb2,_0x1cba46,_0x100016,_0x364d9e,_0x1fae81,_0xc4661c,_0x3dfcc4,_0x50891d),_0x545413=_0x462ab6[_0x2cb1c8(0x396)],logger[_0x2cb1c8(0x23f)](_0x545413);const _0x2159e2={};_0x2159e2[_0x2cb1c8(0x342)]=WS_EVENTS[_0x2cb1c8(0x1f7)],_0x2159e2[_0x2cb1c8(0x28f)]=_0x545413,webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0x2159e2),_0x545413=_0x462ab6[_0x2cb1c8(0x2df)],logger[_0x2cb1c8(0x23f)](_0x545413);const _0x57f89a={};_0x57f89a[_0x2cb1c8(0x342)]=WS_EVENTS['LOG'],_0x57f89a['message']=_0x545413,webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0x57f89a),await _0x462ab6[_0x2cb1c8(0x34b)](waitForDeployment,_0x93c529,_0x100016,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0xc3f4e6=await _0x462ab6['kruWJ'](getNamespaceUID,_0x4bf747,_0x100016),_0x4ebaed=global_registry['isPrivateGrid']?_0x462ab6['IhiMY']:_0x462ab6[_0x2cb1c8(0x340)],_0x26fdcd={};_0x26fdcd[_0x2cb1c8(0x283)]=_0x4ebaed,_0x26fdcd[_0x2cb1c8(0x2d7)]=_0x462ab6['IEmIz'];const _0x1d7096=await _0x4bf747[_0x2cb1c8(0x395)](_0x26fdcd);let _0x283a1e=_0x167960[_0x2cb1c8(0x3a0)](_0x1d7096)+'/'+_0x100016,_0x5df574=_0x462ab6[_0x2cb1c8(0x253)];try{const _0x2844a4=_0x2cb1c8(0x331)+AG_API_URL+_0x2cb1c8(0x2cb)+_0xc3f4e6,_0x4c8292=await _0x462ab6[_0x2cb1c8(0x240)](got,_0x2844a4,_0x76a716);(_0x462ab6['QXhMs'](_0x4c8292,null)||_0x462ab6[_0x2cb1c8(0x265)](_0x4c8292,undefined))&&(_0x545413=_0x462ab6['OOKkg'],await _0x462ab6[_0x2cb1c8(0x298)](reportToGalactusAndSendToEDS,_0x2e2f6f,_0x3e62ed,_0x545413,messageTypes['ERROR'],_0x462ab6[_0x2cb1c8(0x1fa)],_0x462ab6[_0x2cb1c8(0x2be)],_0x462ab6[_0x2cb1c8(0x32f)]),logger[_0x2cb1c8(0x30c)](_0x545413),process[_0x2cb1c8(0x351)](0x1));_0x462ab6[_0x2cb1c8(0x2fa)](_0x4c8292[_0x2cb1c8(0x276)],0x191)&&(_0x545413=_0x462ab6['VMesz'],await _0x462ab6['wRcNd'](reportToGalactusAndSendToEDS,_0x2e2f6f,_0x3e62ed,_0x545413,messageTypes[_0x2cb1c8(0x272)],_0x462ab6[_0x2cb1c8(0x1fa)],_0x462ab6['HskFy'],_0x462ab6[_0x2cb1c8(0x32f)]),logger[_0x2cb1c8(0x30c)](_0x545413),process[_0x2cb1c8(0x351)](0x1));_0x462ab6['WQpjo'](_0x4c8292[_0x2cb1c8(0x276)],0xc8)&&(_0x545413=_0x2cb1c8(0x338)+JSON['stringify'](_0x4c8292),await _0x462ab6[_0x2cb1c8(0x381)](reportToGalactusAndSendToEDS,_0x2e2f6f,_0x3e62ed,_0x545413,messageTypes[_0x2cb1c8(0x272)],_0x462ab6[_0x2cb1c8(0x1fa)],_0x462ab6[_0x2cb1c8(0x228)],_0x462ab6[_0x2cb1c8(0x32f)]),logger[_0x2cb1c8(0x30c)](_0x545413),process[_0x2cb1c8(0x351)](0x1));const _0x32c06c=JSON[_0x2cb1c8(0x2de)](_0x4c8292['body']);_0x32c06c[_0x2cb1c8(0x2fb)]&&(_0x283a1e=_0x32c06c[_0x2cb1c8(0x2fb)],_0x5df574=_0x462ab6[_0x2cb1c8(0x2d4)]),global_registry[_0x2cb1c8(0x360)]&&(_0x5df574=_0x462ab6[_0x2cb1c8(0x253)]);}catch(_0x5f4ca8){}_0x545413=_0x2cb1c8(0x319)+_0x283a1e+'\x20',logger[_0x2cb1c8(0x23f)](_0x545413);const _0x53bcb7={};_0x53bcb7['type']=WS_EVENTS[_0x2cb1c8(0x1f7)],_0x53bcb7[_0x2cb1c8(0x28f)]=_0x545413,webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0x53bcb7),_0x545413='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x5df574+_0x2cb1c8(0x2e4)+_0x283a1e+_0x2cb1c8(0x246),logger[_0x2cb1c8(0x23f)](_0x545413);const _0x5e3b70={};_0x5e3b70[_0x2cb1c8(0x342)]=WS_EVENTS[_0x2cb1c8(0x1f7)],_0x5e3b70[_0x2cb1c8(0x28f)]=_0x545413,webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0x5e3b70);const _0x101c05={};_0x101c05[_0x2cb1c8(0x342)]=WS_EVENTS[_0x2cb1c8(0x383)],_0x101c05[_0x2cb1c8(0x28f)]='CLI\x20run\x20finished:\x20'+_0x283a1e,webSocketUtils['sendEventToBackend'](_0x3e62ed,_0x101c05),await webSocketUtils['delay'](0x7d0);}catch(_0x514fe2){logger[_0x2cb1c8(0x30c)]('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x514fe2+'\x20\x0a'+JSON[_0x2cb1c8(0x259)](_0x514fe2[_0x2cb1c8(0x2f9)]));if(_0x462ab6[_0x2cb1c8(0x322)](_0x55c989,![]))try{logger['info'](_0x462ab6['OWfIh']),await _0x462ab6[_0x2cb1c8(0x220)](removeGridComponents,_0x4bf747,_0x93c529,_0x137eb2,_0x1cba46,_0x100016),await _0x167960[_0x2cb1c8(0x321)](_0x4bf747,global_registry[_0x2cb1c8(0x35d)]);}catch(_0xfb4a69){logger[_0x2cb1c8(0x30c)](_0x2cb1c8(0x1f8)+_0xfb4a69+'\x20\x0a'+JSON[_0x2cb1c8(0x259)](_0xfb4a69[_0x2cb1c8(0x2f9)]));}throw _0x514fe2;}}catch(_0x283088){const _0x584aa5=_0x2cb1c8(0x2b9)+_0x283088+'\x20\x0a'+JSON[_0x2cb1c8(0x259)](_0x283088['stack']);if(_0x3e62ed){const _0x2cc5d4={};_0x2cc5d4[_0x2cb1c8(0x342)]=WS_EVENTS['LOG'],_0x2cc5d4[_0x2cb1c8(0x28f)]=_0x584aa5,webSocketUtils[_0x2cb1c8(0x369)](_0x3e62ed,_0x2cc5d4,_0x462ab6['fCKFr'],!![]);}await webSocketUtils[_0x2cb1c8(0x20c)](0x7d0);const _0x3f1f44={};_0x3f1f44[_0x2cb1c8(0x30c)]=_0x584aa5,await _0x462ab6['ldZIR'](sendInstrumentationEvent,_0x2e2f6f,_0x462ab6['aWjPl'],messageTypes[_0x2cb1c8(0x272)],_0x462ab6[_0x2cb1c8(0x275)],_0x3f1f44,_0x2e2f6f),logger['error'](_0x584aa5);}process['exit'](0x0);};
@@ -1 +1 @@
1
- const a10_0x4d6a42=a10_0x11cc;(function(_0x1bfe8b,_0x44fbdc){const _0x4b07b8=a10_0x11cc,_0x4bf7dd=_0x1bfe8b();while(!![]){try{const _0x1b399e=parseInt(_0x4b07b8(0x14b))/0x1*(parseInt(_0x4b07b8(0x152))/0x2)+-parseInt(_0x4b07b8(0x14e))/0x3*(parseInt(_0x4b07b8(0x159))/0x4)+-parseInt(_0x4b07b8(0x14f))/0x5*(parseInt(_0x4b07b8(0x150))/0x6)+parseInt(_0x4b07b8(0x155))/0x7*(-parseInt(_0x4b07b8(0x153))/0x8)+parseInt(_0x4b07b8(0x15c))/0x9*(parseInt(_0x4b07b8(0x151))/0xa)+parseInt(_0x4b07b8(0x148))/0xb*(parseInt(_0x4b07b8(0x157))/0xc)+parseInt(_0x4b07b8(0x15b))/0xd;if(_0x1b399e===_0x44fbdc)break;else _0x4bf7dd['push'](_0x4bf7dd['shift']());}catch(_0x5c0402){_0x4bf7dd['push'](_0x4bf7dd['shift']());}}}(a10_0x241e,0x3fbe4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a10_0x11cc(_0x1f45aa,_0x90432b){const _0x241e5b=a10_0x241e();return a10_0x11cc=function(_0x11cce7,_0xa863f2){_0x11cce7=_0x11cce7-0x146;let _0x31bf4a=_0x241e5b[_0x11cce7];return _0x31bf4a;},a10_0x11cc(_0x1f45aa,_0x90432b);}exports['command']=a10_0x4d6a42(0x149),exports['desc']=a10_0x4d6a42(0x14a),exports[a10_0x4d6a42(0x15d)]=function(_0xbb0bc5){const _0x47eb26=a10_0x4d6a42,_0x19bc22={};_0x19bc22[_0x47eb26(0x14c)]='delete_commands',_0x19bc22[_0x47eb26(0x158)]='help';const _0x343472=_0x19bc22;return _0xbb0bc5['usage'](HELP_HEADER_MESSAGE[_0x47eb26(0x149)])[_0x47eb26(0x146)](HELP_FOOTER_MESSAGE)[_0x47eb26(0x154)](_0x343472[_0x47eb26(0x14c)])[_0x47eb26(0x147)]()['recommendCommands']()[_0x47eb26(0x15a)]()[_0x47eb26(0x156)](_0x343472[_0x47eb26(0x158)]);},exports[a10_0x4d6a42(0x14d)]=function(_0x15030c){};function a10_0x241e(){const _0x45152a=['167193ASiIwa','builder','epilogue','demandCommand','11UBvSXp','delete','List\x20Grid\x20resources.','117596uMIzpb','WNPWg','handler','3HQkrBh','1084255CjqXQN','12yScINc','150gpfSwT','2UtdhpY','193936TzxVgE','commandDir','77LEhdrp','help','2575836nZGCQS','UZWhz','563252SEyBqA','strict','6387745UCrPga'];a10_0x241e=function(){return _0x45152a;};return a10_0x241e();}
1
+ const a10_0x227386=a10_0x4dbf;function a10_0x56f2(){const _0x8a4ea9=['1GrPggE','desc','handler','426559yjTaMv','usage','recommendCommands','help','2416941YAHeBT','1402694aXWMMB','4908930pVAcbo','demandCommand','delete','../config/constants','531CSPgAl','3020328gzjfXQ','IFPdt','List\x20Grid\x20resources.','67048UHtlkt','17122160XxbpRB','command','90WmPkDs','fgKcN','delete_commands','builder','strict'];a10_0x56f2=function(){return _0x8a4ea9;};return a10_0x56f2();}function a10_0x4dbf(_0x5ca30f,_0x127711){const _0x56f21d=a10_0x56f2();return a10_0x4dbf=function(_0x4dbfb9,_0x3dce88){_0x4dbfb9=_0x4dbfb9-0x86;let _0x105864=_0x56f21d[_0x4dbfb9];return _0x105864;},a10_0x4dbf(_0x5ca30f,_0x127711);}(function(_0x421368,_0x737f13){const _0x3963cd=a10_0x4dbf,_0x59e21c=_0x421368();while(!![]){try{const _0x223b20=-parseInt(_0x3963cd(0x9a))/0x1*(parseInt(_0x3963cd(0x89))/0x2)+parseInt(_0x3963cd(0x88))/0x3+-parseInt(_0x3963cd(0x8f))/0x4+-parseInt(_0x3963cd(0x8a))/0x5+parseInt(_0x3963cd(0x95))/0x6*(parseInt(_0x3963cd(0x9d))/0x7)+parseInt(_0x3963cd(0x92))/0x8*(-parseInt(_0x3963cd(0x8e))/0x9)+parseInt(_0x3963cd(0x93))/0xa;if(_0x223b20===_0x737f13)break;else _0x59e21c['push'](_0x59e21c['shift']());}catch(_0x3012aa){_0x59e21c['push'](_0x59e21c['shift']());}}}(a10_0x56f2,0x79e18));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x227386(0x8d));exports[a10_0x227386(0x94)]='delete',exports[a10_0x227386(0x9b)]=a10_0x227386(0x91),exports[a10_0x227386(0x98)]=function(_0x1a7245){const _0x2f6dbe=a10_0x227386,_0x52a160={};_0x52a160[_0x2f6dbe(0x96)]=_0x2f6dbe(0x97),_0x52a160[_0x2f6dbe(0x90)]='help';const _0x5758f1=_0x52a160;return _0x1a7245[_0x2f6dbe(0x9e)](HELP_HEADER_MESSAGE[_0x2f6dbe(0x8c)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x5758f1[_0x2f6dbe(0x96)])[_0x2f6dbe(0x8b)]()[_0x2f6dbe(0x86)]()[_0x2f6dbe(0x99)]()[_0x2f6dbe(0x87)](_0x5758f1[_0x2f6dbe(0x90)]);},exports[a10_0x227386(0x9c)]=function(_0x4c0bcb){};
@@ -1 +1 @@
1
- function a11_0x1858(_0xcad6e0,_0x47c0fc){const _0x545a53=a11_0x545a();return a11_0x1858=function(_0x1858c5,_0x1d3072){_0x1858c5=_0x1858c5-0x1c5;let _0x1f6922=_0x545a53[_0x1858c5];return _0x1f6922;},a11_0x1858(_0xcad6e0,_0x47c0fc);}const a11_0x48ffa4=a11_0x1858;function a11_0x545a(){const _0x5acd15=['sggPh','Namespace:\x20','Vwppn','gridId','Wskha','unknown-error','1017660hjrmbB','cedUL','eztZg','JNqHi','ukPNg','BXZXB','nLfdf','init-not-called','invalid-input','QDVCq','skip-tls-cert-verify','/packages/cli/grid/','exit','isClusterPresent','Skip\x20insecure\x20cert\x20verification.','WebSocket','xXDeF','password','225026GSpAMf','2362038gmGLQy','QZezb','HDtqG','type','BHGTh','../../utils/createk8sClient','mUULE','parse','5706075KjBWyD','egtrI','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','nNZxI','error','gLTmU','MjHQB','DElim','DELETE','Tpaql','SGgAX','usage','WxAsf','argv','skipTlsCertVerify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Phphw','sEcBy','KTsKT','eMnke','eTgIR','dJXtK','builder','IqAiB','LyKQl','dZDNh','body','vADjg','RZZba','deleteCluster','Failed\x20to\x20delete\x20resources!\x20Error:\x20','../../config/constants','catch','boolean','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','server-error','help','Browserstack','WPvPc','dLRBi','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','warn','requestId','LsaLC','5890596gHxNPb','onlyGridInCluster','JMffe','mBFWd','jWCJg','info','ERROR','Cluster:\x20','string','epilogue','JlOfR','TlDet','1212507fYKgYZ','EJyxv','tznnb','../../utils/userInput','then','../../utils/webSocketUtils','grid-id','pAsun','wnMPW','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','connectionTimeout','description','invalid-grid-id','../../utils/gridComponents','sKdGc','tYVMn','../../config/logger','LYTwn','eRApl','clusterId','OYxrd','https://','replace','delete-grid-called','gUykV','khzCF','vykmo','../../utils/instrumentationUtils','uuid','command','JUcIg','clusterName','region','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','readNamespace','../../utils/utilityMethods','AIgnS','username','lipgH','8VoumVD','XfpCP','readFileSync','default','statusCode','options','INFO','\x22\x20and\x20ID\x20','\x22\x20with\x20ID\x20','stringify','toLowerCase','XanmS','NEPGR','DbZAx','3329288nhygVZ','handler','name','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Successfully\x20deleted\x20the\x20grid','pArKu','xmQQT','PWMln','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','cloudProvider','got','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','Pass\x20the\x20ID\x20of\x20the\x20Grid','isBrowserstackCluster'];a11_0x545a=function(){return _0x5acd15;};return a11_0x545a();}(function(_0x20a07c,_0x197331){const _0x1878ab=a11_0x1858,_0x187d07=_0x20a07c();while(!![]){try{const _0x29dc35=parseInt(_0x1878ab(0x202))/0x1+parseInt(_0x1878ab(0x25d))/0x2+parseInt(_0x1878ab(0x24b))/0x3+-parseInt(_0x1878ab(0x237))/0x4+parseInt(_0x1878ab(0x1c9))/0x5+-parseInt(_0x1878ab(0x1f6))/0x6+-parseInt(_0x1878ab(0x25e))/0x7*(parseInt(_0x1878ab(0x229))/0x8);if(_0x29dc35===_0x197331)break;else _0x187d07['push'](_0x187d07['shift']());}catch(_0x3e217e){_0x187d07['push'](_0x187d07['shift']());}}}(a11_0x545a,0x9fa6d));const fs=require('fs'),got=require(a11_0x48ffa4(0x241)),{v4:uuidv4}=require(a11_0x48ffa4(0x21e)),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x48ffa4(0x1e8)),{logger}=require(a11_0x48ffa4(0x212)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x48ffa4(0x20f)),{sendInstrumentationEvent}=require(a11_0x48ffa4(0x21d)),{inputConfirmation}=require(a11_0x48ffa4(0x205)),{createK8sClient}=require(a11_0x48ffa4(0x1c6)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x48ffa4(0x225)),webSocketUtils=require(a11_0x48ffa4(0x207));exports[a11_0x48ffa4(0x21f)]='grid',exports['desc']='Delete\x20an\x20Automation\x20grid.',exports[a11_0x48ffa4(0x1df)]=function(_0x11c279){const _0x126c64=a11_0x48ffa4,_0x4e3287={};_0x4e3287['dJXtK']=_0x126c64(0x243),_0x4e3287['pAsun']=_0x126c64(0x1fe),_0x4e3287[_0x126c64(0x21c)]='Skip\x20insecure\x20cert\x20verification.',_0x4e3287[_0x126c64(0x23d)]=_0x126c64(0x1ea),_0x4e3287[_0x126c64(0x1f9)]=_0x126c64(0x1ed);const _0x3b3da9=_0x4e3287,_0xb54078={};_0xb54078['description']=_0x3b3da9[_0x126c64(0x1de)],_0xb54078['type']=_0x3b3da9[_0x126c64(0x209)];const _0x583986={};_0x583986[_0x126c64(0x20d)]=_0x3b3da9[_0x126c64(0x21c)],_0x583986[_0x126c64(0x261)]=_0x3b3da9[_0x126c64(0x23d)],_0x583986['default']=![];const _0x44ef16={};return _0x44ef16[_0x126c64(0x208)]=_0xb54078,_0x44ef16[_0x126c64(0x255)]=_0x583986,_0x11c279[_0x126c64(0x1d4)](HELP_HEADER_MESSAGE['delete'])[_0x126c64(0x1ff)](HELP_FOOTER_MESSAGE)[_0x126c64(0x22e)](_0x44ef16)[_0x126c64(0x1ed)](_0x3b3da9['mBFWd'])[_0x126c64(0x1d6)];},exports[a11_0x48ffa4(0x238)]=async function(_0x5b7028){const _0x7a9feb=a11_0x48ffa4,_0x98109={'egtrI':_0x7a9feb(0x23b),'gUykV':_0x7a9feb(0x1cb),'wnMPW':function(_0x3f4b4f,_0x41138b){return _0x3f4b4f===_0x41138b;},'LYTwn':_0x7a9feb(0x245),'BXZXB':_0x7a9feb(0x25b),'vADjg':'QaYWr','mUULE':'Pass\x20the\x20ID\x20of\x20the\x20Grid','gLTmU':_0x7a9feb(0x1fe),'vzdci':_0x7a9feb(0x259),'Tpaql':'boolean','RZZba':_0x7a9feb(0x1ed),'nLfdf':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','tznnb':function(_0x55c73c){return _0x55c73c();},'nNZxI':function(_0x2a19f8){return _0x2a19f8();},'ukPNg':function(_0x33136b,_0x46f2fa){return _0x33136b!==_0x46f2fa;},'pArKu':_0x7a9feb(0x1e1),'sKdGc':_0x7a9feb(0x1d8),'zLhsB':function(_0xbde57e,_0x4ad2f0,_0x572ac2,_0x405f26,_0x10f88f,_0x1f5486,_0x1ea5bd){return _0xbde57e(_0x4ad2f0,_0x572ac2,_0x405f26,_0x10f88f,_0x1f5486,_0x1ea5bd);},'TlDet':_0x7a9feb(0x219),'Vwppn':_0x7a9feb(0x252),'eMnke':function(_0x483675,_0x15604e,_0xe89aae,_0x4fff41,_0x7e6999,_0x373a30,_0xa2dc18){return _0x483675(_0x15604e,_0xe89aae,_0x4fff41,_0x7e6999,_0x373a30,_0xa2dc18);},'JNqHi':function(_0x132720,_0x5e98e0){return _0x132720!==_0x5e98e0;},'JMffe':'ZphuN','lipgH':function(_0x204450){return _0x204450();},'QZezb':function(_0x4c31e8,_0x5d96c8,_0x5a9c72,_0x5c0e4a){return _0x4c31e8(_0x5d96c8,_0x5a9c72,_0x5c0e4a);},'dLRBi':_0x7a9feb(0x1ee),'JlOfR':'WckAM','AIgnS':function(_0x513a91,_0x597194){return _0x513a91(_0x597194);},'dZDNh':function(_0x12cc3d,_0x509895){return _0x12cc3d===_0x509895;},'PWMln':function(_0x19ef5a,_0x5d1360){return _0x19ef5a===_0x5d1360;},'MjHQB':'KhQFY','JUcIg':_0x7a9feb(0x1dd),'WPvPc':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','DElim':function(_0x4b5328,_0x5ad542,_0x400f70,_0x2a2c3f,_0x5b7927,_0x5b67ad,_0x158496){return _0x4b5328(_0x5ad542,_0x400f70,_0x2a2c3f,_0x5b7927,_0x5b67ad,_0x158496);},'eRApl':_0x7a9feb(0x253),'WxAsf':function(_0x47b783,_0x45552d){return _0x47b783!==_0x45552d;},'QDVCq':_0x7a9feb(0x24c),'mighU':'<UsernamePlaceholder>','tYVMn':'<PasswordPlaceholder>','eztZg':function(_0x268afa,_0x37f0c8){return _0x268afa(_0x37f0c8);},'jWCJg':function(_0xed8dae,_0x1b8b86,_0xfafc21){return _0xed8dae(_0x1b8b86,_0xfafc21);},'BHGTh':function(_0x5d0921,_0x2ab3d4,_0x4c190b,_0x39252b,_0x5be763,_0x5de3ee){return _0x5d0921(_0x2ab3d4,_0x4c190b,_0x39252b,_0x5be763,_0x5de3ee);},'EJyxv':_0x7a9feb(0x234),'SGgAX':'LsdeB','KTsKT':function(_0x5b0205,_0x3fc7ea){return _0x5b0205!==_0x3fc7ea;},'DbZAx':'hJeFR','khzCF':_0x7a9feb(0x1d1),'IqAiB':function(_0x3afba1,_0x58b05c,_0x588b4c){return _0x3afba1(_0x58b05c,_0x588b4c);},'Phphw':function(_0x5d63f6,_0x26687b){return _0x5d63f6!==_0x26687b;},'HDtqG':function(_0x356cb2,_0x44b80b){return _0x356cb2===_0x44b80b;},'SzqiM':_0x7a9feb(0x1ec),'sEcBy':function(_0x7704e3,_0x120c8e){return _0x7704e3===_0x120c8e;},'XfpCP':_0x7a9feb(0x20b),'iQvmy':function(_0x99feff,_0x2a758d,_0x4a4e1b,_0x299ca1,_0x1b4874,_0x5ecccb,_0x391f6f){return _0x99feff(_0x2a758d,_0x4a4e1b,_0x299ca1,_0x1b4874,_0x5ecccb,_0x391f6f);},'oLTIo':'unauthorised','OYxrd':function(_0x206982,_0x4394a4){return _0x206982===_0x4394a4;},'qsHna':_0x7a9feb(0x20e),'Wskha':function(_0x44938d,_0x2fc502,_0xe1a6a1,_0x2e63a2,_0xb973c3,_0x4c36c5,_0x5f5458){return _0x44938d(_0x2fc502,_0xe1a6a1,_0x2e63a2,_0xb973c3,_0x4c36c5,_0x5f5458);},'LsaLC':function(_0x502df7,_0x3d6f74,_0x2b5b7a,_0x28f6fa,_0x52aa35,_0x556df9,_0x34191b){return _0x502df7(_0x3d6f74,_0x2b5b7a,_0x28f6fa,_0x52aa35,_0x556df9,_0x34191b);},'NEPGR':_0x7a9feb(0x24a)};try{global_registry[_0x7a9feb(0x1f4)]=_0x98109[_0x7a9feb(0x204)](uuidv4);!fs['existsSync'](_0x98109[_0x7a9feb(0x1cc)](getCredentialsPath))&&(_0x98109[_0x7a9feb(0x24f)](_0x98109[_0x7a9feb(0x23c)],_0x98109[_0x7a9feb(0x23c)])?_0xff1eb0[_0x7a9feb(0x1f3)](_0x7a9feb(0x1fd)+_0x2a8b51[_0x7a9feb(0x221)]+_0x7a9feb(0x1eb)):(console[_0x7a9feb(0x1cd)](_0x98109[_0x7a9feb(0x210)]),await _0x98109['zLhsB'](sendInstrumentationEvent,_0x5b7028,_0x98109[_0x7a9feb(0x201)],messageTypes[_0x7a9feb(0x1fc)],_0x98109[_0x7a9feb(0x247)],null,_0x5b7028),process['exit'](0x1)));_0x98109[_0x7a9feb(0x1dc)](sendInstrumentationEvent,_0x5b7028,_0x98109[_0x7a9feb(0x201)],messageTypes[_0x7a9feb(0x22f)],null,null,_0x5b7028);!_0x5b7028['gridId']&&(_0x98109[_0x7a9feb(0x24e)](_0x98109[_0x7a9feb(0x1f8)],_0x98109[_0x7a9feb(0x1f8)])?_0x4e8792=_0x7a9feb(0x23a)+_0x35abb2[_0x7a9feb(0x239)]+_0x7a9feb(0x230)+_0x3b8e3b['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x1384c7[_0x7a9feb(0x221)]+_0x7a9feb(0x231)+_0x357dee[_0x7a9feb(0x215)]+_0x7a9feb(0x23f):(console[_0x7a9feb(0x1cd)](_0x98109[_0x7a9feb(0x21a)]),process[_0x7a9feb(0x257)](0x1)));const _0x248252=JSON[_0x7a9feb(0x1c8)](fs[_0x7a9feb(0x22b)](_0x98109[_0x7a9feb(0x228)](getCredentialsPath))),[_0x20883b,_0x304ba9]=await _0x98109[_0x7a9feb(0x25f)](getGridDetails,_0x248252[_0x7a9feb(0x1ee)][_0x7a9feb(0x227)],_0x248252[_0x7a9feb(0x1ee)][_0x7a9feb(0x25c)],_0x5b7028[_0x7a9feb(0x248)]);if(_0x304ba9){const _0x286be2=_0x304ba9[_0x7a9feb(0x1fb)];let _0x4c8f3f=_0x7a9feb(0x23a)+_0x286be2[_0x7a9feb(0x239)]+_0x7a9feb(0x230)+_0x286be2['id']+_0x7a9feb(0x23f);_0x304ba9[_0x7a9feb(0x1f7)]&&_0x98109[_0x7a9feb(0x20a)](_0x304ba9['clusterSpawnedVia'],_0x98109[_0x7a9feb(0x1f0)])&&(_0x98109['wnMPW'](_0x98109[_0x7a9feb(0x200)],_0x98109[_0x7a9feb(0x200)])?_0x4c8f3f=_0x7a9feb(0x23a)+_0x286be2[_0x7a9feb(0x239)]+_0x7a9feb(0x230)+_0x286be2['id']+_0x7a9feb(0x1f1)+_0x286be2['clusterName']+_0x7a9feb(0x231)+_0x286be2[_0x7a9feb(0x215)]+_0x7a9feb(0x23f):(_0x561a45[_0x7a9feb(0x1fb)](_0x98109[_0x7a9feb(0x1ca)]),_0xba3385[_0x7a9feb(0x257)](0x0)));const _0x3b0e39=await _0x98109[_0x7a9feb(0x226)](inputConfirmation,_0x4c8f3f);(_0x98109[_0x7a9feb(0x20a)](_0x3b0e39,undefined)||_0x98109[_0x7a9feb(0x1e2)](_0x3b0e39,null)||!(_0x98109[_0x7a9feb(0x1e2)](_0x3b0e39[_0x7a9feb(0x233)](),'y')||_0x98109[_0x7a9feb(0x23e)](_0x3b0e39['toLowerCase'](),'n')))&&(_0x98109[_0x7a9feb(0x23e)](_0x98109[_0x7a9feb(0x1cf)],_0x98109[_0x7a9feb(0x220)])?(_0x17d70a[_0x7a9feb(0x1f3)]('Namespace:\x20'+_0x1d1646+_0x7a9feb(0x242)),_0x54e9ff=![]):(console[_0x7a9feb(0x1cd)](_0x98109[_0x7a9feb(0x1ef)]),await _0x98109[_0x7a9feb(0x1d0)](sendInstrumentationEvent,_0x5b7028,_0x98109[_0x7a9feb(0x201)],messageTypes[_0x7a9feb(0x1fc)],_0x98109[_0x7a9feb(0x214)],null,_0x5b7028),process['exit'](0x1)));_0x98109['wnMPW'](_0x3b0e39[_0x7a9feb(0x233)](),'n')&&(_0x98109[_0x7a9feb(0x1d5)](_0x98109['QDVCq'],_0x98109[_0x7a9feb(0x254)])?(_0x4fea74[_0x7a9feb(0x1cd)](_0x98109[_0x7a9feb(0x21a)]),_0xa8e86d[_0x7a9feb(0x257)](0x1)):process['exit'](0x0));const _0x4b3cb1=WS_ENDPOINT['replace'](_0x98109['mighU'],_0x248252[_0x7a9feb(0x1ee)][_0x7a9feb(0x227)])[_0x7a9feb(0x218)](_0x98109[_0x7a9feb(0x211)],_0x248252[_0x7a9feb(0x1ee)][_0x7a9feb(0x25c)]),_0x333de2={};_0x333de2[_0x7a9feb(0x25a)]=ws,_0x333de2[_0x7a9feb(0x20c)]=0x36ee80;const _0x44c5cb=new ReconnectingWebSocket(_0x4b3cb1,[],_0x333de2);global_registry['clusterRegion']=_0x286be2['region'];const _0x11d2ee=_0x286be2[_0x7a9feb(0x240)],_0x2cf666=await _0x98109[_0x7a9feb(0x1dc)](getCloudProviderObject,_0x11d2ee,_0x286be2[_0x7a9feb(0x221)],_0x286be2[_0x7a9feb(0x239)],_0x44c5cb,webSocketUtils,_0x5b7028),_0x30b168=await _0x2cf666[_0x7a9feb(0x258)]();if(_0x30b168){const _0xa9982f=_0x98109[_0x7a9feb(0x24d)](kebabCase,_0x286be2[_0x7a9feb(0x239)]),[_0x389029,_0x4daf96,_0x4b4542,_0x34923b,_0x38fb65,_0x57b342]=await _0x98109[_0x7a9feb(0x1fa)](createK8sClient,_0x2cf666,_0x5b7028[_0x7a9feb(0x1d7)]);let _0x11953e=!![];const _0x121929={};_0x121929[_0x7a9feb(0x239)]=_0xa9982f,await _0x389029[_0x7a9feb(0x224)](_0x121929)[_0x7a9feb(0x206)](_0x30ae92=>{const _0x2f5b79=_0x7a9feb;_0x98109[_0x2f5b79(0x20a)](_0x98109[_0x2f5b79(0x213)],_0x98109[_0x2f5b79(0x250)])?_0x2d44ec[_0x2f5b79(0x1fb)](_0x2f5b79(0x246)+_0x1f0d34+_0x2f5b79(0x223)):logger[_0x2f5b79(0x1fb)]('Namespace:\x20'+_0xa9982f+_0x2f5b79(0x223));})[_0x7a9feb(0x1e9)](_0x191fc3=>{const _0x33d416=_0x7a9feb;_0x98109['wnMPW'](_0x98109[_0x33d416(0x1e4)],_0x98109[_0x33d416(0x1e4)])?(logger[_0x33d416(0x1f3)](_0x33d416(0x246)+_0xa9982f+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x11953e=![]):_0x3123e1[_0x33d416(0x257)](0x0);});if(_0x11953e){await _0x98109[_0x7a9feb(0x1c5)](removeGridComponents,_0x389029,_0x4daf96,_0x4b4542,_0x34923b,_0xa9982f);if(_0x304ba9[_0x7a9feb(0x1f7)]){const _0x36c71a=await _0x2cf666[_0x7a9feb(0x244)]();if(_0x36c71a){if(_0x98109[_0x7a9feb(0x1e2)](_0x98109[_0x7a9feb(0x203)],_0x98109[_0x7a9feb(0x1d3)])){const _0x3f8ddd={};_0x3f8ddd['description']=_0x98109[_0x7a9feb(0x1c7)],_0x3f8ddd[_0x7a9feb(0x261)]=_0x98109[_0x7a9feb(0x1ce)];const _0x4b7414={};_0x4b7414[_0x7a9feb(0x20d)]=_0x98109['vzdci'],_0x4b7414['type']=_0x98109[_0x7a9feb(0x1d2)],_0x4b7414[_0x7a9feb(0x22c)]=![];const _0x5ef7cb={};return _0x5ef7cb[_0x7a9feb(0x208)]=_0x3f8ddd,_0x5ef7cb[_0x7a9feb(0x255)]=_0x4b7414,_0x37d810[_0x7a9feb(0x1d4)](_0x1028bc['delete'])[_0x7a9feb(0x1ff)](_0x5c2051)['options'](_0x5ef7cb)[_0x7a9feb(0x1ed)](_0x98109[_0x7a9feb(0x1e5)])['argv'];}else await _0x2cf666[_0x7a9feb(0x1e6)](_0x389029,_0x286be2[_0x7a9feb(0x222)]);}else _0x98109[_0x7a9feb(0x1db)](_0x98109[_0x7a9feb(0x236)],_0x98109[_0x7a9feb(0x236)])?_0x35f855[_0x7a9feb(0x1f3)](_0x98109[_0x7a9feb(0x251)]):logger[_0x7a9feb(0x1f3)]('Cluster:\x20'+_0x286be2[_0x7a9feb(0x221)]+_0x7a9feb(0x1eb));}}}else logger[_0x7a9feb(0x1f3)](_0x98109[_0x7a9feb(0x251)]);const _0xa5f47b=_0x7a9feb(0x217)+AG_API_URL+_0x7a9feb(0x256)+_0x5b7028[_0x7a9feb(0x248)],_0x99ad2c={'method':_0x98109[_0x7a9feb(0x21b)],'headers':_0x98109[_0x7a9feb(0x1fa)](getAuthHeader,_0x248252[_0x7a9feb(0x1ee)]['username'],_0x248252[_0x7a9feb(0x1ee)][_0x7a9feb(0x25c)]),'throwHttpErrors':![]},_0xd63bed=await _0x98109[_0x7a9feb(0x1e0)](got,_0xa5f47b,_0x99ad2c);_0x98109[_0x7a9feb(0x1db)](_0xd63bed,null)&&_0x98109[_0x7a9feb(0x1d9)](_0xd63bed,undefined)&&_0x98109[_0x7a9feb(0x260)](_0xd63bed['statusCode'],0xc8)&&(logger['info'](_0x98109[_0x7a9feb(0x1ca)]),process[_0x7a9feb(0x257)](0x0)),logger[_0x7a9feb(0x1cd)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0xd63bed[_0x7a9feb(0x1e3)]),await _0x98109[_0x7a9feb(0x1dc)](sendInstrumentationEvent,_0x5b7028,_0x98109[_0x7a9feb(0x201)],messageTypes[_0x7a9feb(0x1fc)],_0x98109['SzqiM'],_0x20883b,_0x5b7028),process[_0x7a9feb(0x257)](0x1);}_0x98109[_0x7a9feb(0x1da)](_0x20883b[_0x7a9feb(0x22d)],0x191)&&(logger[_0x7a9feb(0x1cd)](_0x98109[_0x7a9feb(0x22a)]),await _0x98109['iQvmy'](sendInstrumentationEvent,_0x5b7028,_0x98109['TlDet'],messageTypes[_0x7a9feb(0x1fc)],_0x98109['oLTIo'],null,_0x5b7028),process[_0x7a9feb(0x257)](0x1)),_0x98109[_0x7a9feb(0x216)](_0x20883b['statusCode'],0x190)&&(logger[_0x7a9feb(0x1cd)](JSON[_0x7a9feb(0x1c8)](_0x20883b[_0x7a9feb(0x1e3)])['message']),await _0x98109['iQvmy'](sendInstrumentationEvent,_0x5b7028,_0x98109['TlDet'],messageTypes[_0x7a9feb(0x1fc)],_0x98109['qsHna'],null,_0x5b7028),process['exit'](0x1)),logger[_0x7a9feb(0x1cd)](_0x7a9feb(0x1f2)+JSON[_0x7a9feb(0x232)](_0x20883b)),await _0x98109[_0x7a9feb(0x249)](sendInstrumentationEvent,_0x5b7028,_0x98109[_0x7a9feb(0x201)],messageTypes[_0x7a9feb(0x1fc)],_0x98109['SzqiM'],_0x20883b,_0x5b7028),process[_0x7a9feb(0x257)](0x1);}catch(_0x490d76){logger[_0x7a9feb(0x1cd)](_0x7a9feb(0x1e7)+_0x490d76['stack']),await _0x98109[_0x7a9feb(0x1f5)](sendInstrumentationEvent,_0x5b7028,_0x98109[_0x7a9feb(0x201)],messageTypes['ERROR'],_0x98109[_0x7a9feb(0x235)],_0x490d76,_0x5b7028),process['exit'](0x1);}};
1
+ const a11_0x50ee28=a11_0xb1c8;(function(_0x1e8231,_0x1119af){const _0x855510=a11_0xb1c8,_0x6f325d=_0x1e8231();while(!![]){try{const _0xac6364=-parseInt(_0x855510(0x196))/0x1*(-parseInt(_0x855510(0x217))/0x2)+parseInt(_0x855510(0x1c2))/0x3*(-parseInt(_0x855510(0x1ae))/0x4)+parseInt(_0x855510(0x20d))/0x5+-parseInt(_0x855510(0x1bc))/0x6+parseInt(_0x855510(0x1b8))/0x7+-parseInt(_0x855510(0x1ad))/0x8*(parseInt(_0x855510(0x209))/0x9)+-parseInt(_0x855510(0x1df))/0xa*(-parseInt(_0x855510(0x1ab))/0xb);if(_0xac6364===_0x1119af)break;else _0x6f325d['push'](_0x6f325d['shift']());}catch(_0x1b748b){_0x6f325d['push'](_0x6f325d['shift']());}}}(a11_0x969f,0xe6273));const fs=require('fs'),got=require(a11_0x50ee28(0x1e1)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x50ee28(0x1f2)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x50ee28(0x1cc)),{getCloudProviderObject}=require(a11_0x50ee28(0x21d)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x50ee28(0x1f8)),{sendInstrumentationEvent}=require(a11_0x50ee28(0x1d8)),{inputConfirmation}=require(a11_0x50ee28(0x211)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x50ee28(0x1d4)),webSocketUtils=require('../../utils/webSocketUtils');function a11_0xb1c8(_0x512552,_0x264958){const _0x969fec=a11_0x969f();return a11_0xb1c8=function(_0xb1c8ad,_0x500807){_0xb1c8ad=_0xb1c8ad-0x185;let _0x312468=_0x969fec[_0xb1c8ad];return _0x312468;},a11_0xb1c8(_0x512552,_0x264958);}function a11_0x969f(){const _0x5884b3=['FoWBM','handler','14080759aUngnv','isBrowserstackCluster','376LSRajF','108dCMsFV','NDniB','gridId','JRGCs','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','aGzuY','yiSnl','qGafO','zyOsz','<PasswordPlaceholder>','12911101xwmfxn','DqXtb','name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','7744644ryXVhi','mdKMU','clusterSpawnedVia','sJsIM','deleteCluster','wqVNJ','150216JZXJJH','options','help','DFvJk','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','VWRrB','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','readNamespace','cloudProvider','qYEGb','../../config/logger','bheyM','QjNbr','string','boolean','\x22\x20and\x20ID\x20','connectionTimeout','EXQem','../../utils/utilityMethods','fOxPS','then','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','../../utils/instrumentationUtils','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Pass\x20the\x20ID\x20of\x20the\x20Grid','unauthorised','info','mNRIp','parse','10AJnrca','body','got','rNJvI','gWCDw','EFhhv','GlQZi','SwmoX','skipTlsCertVerify','WZpcQ','default','argv','Browserstack','wxAXF','QduKs','gEllk','Cluster:\x20','Namespace:\x20','<UsernamePlaceholder>','reconnecting-websocket','DejsG','ZjiOL','AodDt','ICRfz','OiJxV','../../utils/gridComponents','https://','isClusterPresent','fnpug','delete-grid-called','gUFpj','desc','DWqaM','XTZij','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','delete','type','/packages/cli/grid/','username','onlyGridInCluster','PneUN','builder','292437RWCCyw','LLqWJ','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Skip\x20insecure\x20cert\x20verification.','5104115bFOBEh','exit','yLLuv','zNlrZ','../../utils/userInput','srAnq','error','Failed\x20to\x20delete\x20resources!\x20Error:\x20','sJxwP','xWAiy','2LWyOug','aeQTa','DELETE','toLowerCase','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','grid-id','../../cloudproviders/utils','clusterName','QHHwq','APmRU','grid','PWwyR','catch','message','wTITJ','utfXo','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','password','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','server-error','gjWSe','mMFZN','clusterId','HXdmI','tCbfU','ERROR','967261ejBbBt','epilogue','warn','command','WebSocket','description','CbBPv','statusCode','AEyUt','region','vDFln','pLlbB','invalid-input','kCqyT','\x22\x20with\x20ID\x20','qdJAK','BIzkR','MNSGD','replace'];a11_0x969f=function(){return _0x5884b3;};return a11_0x969f();}exports[a11_0x50ee28(0x199)]=a11_0x50ee28(0x186),exports[a11_0x50ee28(0x1fe)]='Delete\x20an\x20Automation\x20grid.',exports[a11_0x50ee28(0x208)]=function(_0x335ffa){const _0x6e92cd=a11_0x50ee28,_0xca9017={};_0xca9017[_0x6e92cd(0x1a3)]=_0x6e92cd(0x1da),_0xca9017[_0x6e92cd(0x1bf)]=_0x6e92cd(0x1cf),_0xca9017[_0x6e92cd(0x210)]=_0x6e92cd(0x20c),_0xca9017[_0x6e92cd(0x1a6)]=_0x6e92cd(0x1d0),_0xca9017['MNSGD']='help';const _0x189d10=_0xca9017,_0x505b05={};_0x505b05['description']=_0x189d10[_0x6e92cd(0x1a3)],_0x505b05['type']=_0x189d10[_0x6e92cd(0x1bf)];const _0x53c442={};_0x53c442[_0x6e92cd(0x19b)]=_0x189d10[_0x6e92cd(0x210)],_0x53c442['type']=_0x189d10[_0x6e92cd(0x1a6)],_0x53c442[_0x6e92cd(0x1e9)]=![];const _0x1419af={};return _0x1419af[_0x6e92cd(0x21c)]=_0x505b05,_0x1419af['skip-tls-cert-verify']=_0x53c442,_0x335ffa['usage'](HELP_HEADER_MESSAGE['delete'])[_0x6e92cd(0x197)](HELP_FOOTER_MESSAGE)[_0x6e92cd(0x1c3)](_0x1419af)[_0x6e92cd(0x1c4)](_0x189d10[_0x6e92cd(0x1a7)])[_0x6e92cd(0x1ea)];},exports[a11_0x50ee28(0x1aa)]=async function(_0x2442d4){const _0x239e03=a11_0x50ee28,_0x556b7b={'GlQZi':_0x239e03(0x1da),'eyOLL':_0x239e03(0x1cf),'qGafO':_0x239e03(0x20c),'tCbfU':_0x239e03(0x1d0),'AEyUt':_0x239e03(0x1c4),'pLlbB':_0x239e03(0x21b),'mdKMU':function(_0x3fd6fd,_0x57daca){return _0x3fd6fd!==_0x57daca;},'PneUN':_0x239e03(0x1ed),'VWRrB':_0x239e03(0x18e),'OiJxV':function(_0x7029a7,_0x5663dd){return _0x7029a7===_0x5663dd;},'gWCDw':_0x239e03(0x1f6),'NDniB':'Successfully\x20deleted\x20the\x20grid','JRGCs':function(_0x3383dc){return _0x3383dc();},'PWwyR':function(_0x57047d){return _0x57047d();},'ZjiOL':function(_0x45e737,_0x2d17d0){return _0x45e737!==_0x2d17d0;},'DqXtb':'DYAHB','QHHwq':_0x239e03(0x1c8),'fnpug':function(_0x5a92f9,_0x36c46e,_0x4ea501,_0x15a6e5,_0x3da828,_0x51f7b9,_0x33db60){return _0x5a92f9(_0x36c46e,_0x4ea501,_0x15a6e5,_0x3da828,_0x51f7b9,_0x33db60);},'wqVNJ':_0x239e03(0x1fc),'vDFln':'init-not-called','aGzuY':function(_0x5d4d76,_0x552abc,_0x5cf49f,_0x1e5964,_0x5b684c,_0x17c5af,_0xc45388){return _0x5d4d76(_0x552abc,_0x5cf49f,_0x1e5964,_0x5b684c,_0x17c5af,_0xc45388);},'DFvJk':'yUXHB','DejsG':'nyuhD','CbBPv':function(_0x562457){return _0x562457();},'sJxwP':function(_0x49eb9c,_0xdb43b2,_0x1fb866,_0x499441){return _0x49eb9c(_0xdb43b2,_0x1fb866,_0x499441);},'SooAg':function(_0x3c815c,_0x26f154){return _0x3c815c===_0x26f154;},'aeQTa':'Browserstack','oIIZL':_0x239e03(0x200),'aLRJn':_0x239e03(0x193),'amxQv':function(_0x26e7d3,_0x51a2f1){return _0x26e7d3(_0x51a2f1);},'EFhhv':function(_0x17839b,_0x5b74af){return _0x17839b===_0x5b74af;},'wxAXF':function(_0x1e908f,_0x5e4999){return _0x1e908f===_0x5e4999;},'gEllk':_0x239e03(0x1a5),'xWAiy':_0x239e03(0x201),'QjNbr':_0x239e03(0x1a2),'gjWSe':function(_0x2c0045,_0x4e3a70){return _0x2c0045===_0x4e3a70;},'rNJvI':_0x239e03(0x1cb),'YRwBB':_0x239e03(0x1f1),'gUFpj':_0x239e03(0x1b7),'zyOsz':function(_0x108835,_0x1ed090){return _0x108835(_0x1ed090);},'LLqWJ':function(_0xd12c8f,_0x3ec136,_0x6dc602){return _0xd12c8f(_0x3ec136,_0x6dc602);},'APmRU':function(_0xd7fa9e,_0x25f3ab,_0x54acd9,_0x300c56,_0x37d27e,_0x201df0){return _0xd7fa9e(_0x25f3ab,_0x54acd9,_0x300c56,_0x37d27e,_0x201df0);},'sBwYR':function(_0x4e5555,_0xd8af84){return _0x4e5555!==_0xd8af84;},'srAnq':_0x239e03(0x1b4),'DWqaM':_0x239e03(0x1e8),'mMFZN':_0x239e03(0x1d5),'SwmoX':_0x239e03(0x219),'utfXo':function(_0x2ed360,_0x2a4a88,_0x428c8d){return _0x2ed360(_0x2a4a88,_0x428c8d);},'yLLuv':function(_0x1d66d9,_0x18f962){return _0x1d66d9!==_0x18f962;},'kPwkl':function(_0x589d8f,_0x484494){return _0x589d8f===_0x484494;},'EXQem':function(_0x55de45,_0x226d9a,_0x5e71be,_0x35e702,_0x443340,_0x1521c1,_0x3d1ad4){return _0x55de45(_0x226d9a,_0x5e71be,_0x35e702,_0x443340,_0x1521c1,_0x3d1ad4);},'AodDt':_0x239e03(0x18f),'LtDvM':_0x239e03(0x1bb),'wTITJ':function(_0x2ff98e,_0x1675aa,_0x195c68,_0x363c20,_0x479601,_0x4aa1b4,_0xc1df44){return _0x2ff98e(_0x1675aa,_0x195c68,_0x363c20,_0x479601,_0x4aa1b4,_0xc1df44);},'FoWBM':_0x239e03(0x1db),'bheyM':'invalid-grid-id','gguoD':'unknown-error'};try{global_registry['requestId']=_0x556b7b[_0x239e03(0x1b1)](uuidv4);!fs['existsSync'](_0x556b7b[_0x239e03(0x187)](getCredentialsPath))&&(_0x556b7b[_0x239e03(0x1f4)](_0x556b7b[_0x239e03(0x1b9)],_0x556b7b[_0x239e03(0x1b9)])?_0x3e7c80[_0x239e03(0x1dc)](_0x239e03(0x1f0)+_0x5cd14c+_0x239e03(0x1d7)):(console[_0x239e03(0x213)](_0x556b7b[_0x239e03(0x21f)]),await _0x556b7b[_0x239e03(0x1fb)](sendInstrumentationEvent,_0x2442d4,_0x556b7b[_0x239e03(0x1c1)],messageTypes[_0x239e03(0x195)],_0x556b7b[_0x239e03(0x1a0)],null,_0x2442d4),process['exit'](0x1)));_0x556b7b[_0x239e03(0x1b3)](sendInstrumentationEvent,_0x2442d4,_0x556b7b[_0x239e03(0x1c1)],messageTypes['INFO'],null,null,_0x2442d4);if(!_0x2442d4[_0x239e03(0x1b0)]){if(_0x556b7b[_0x239e03(0x1bd)](_0x556b7b[_0x239e03(0x1c5)],_0x556b7b[_0x239e03(0x1f3)]))console[_0x239e03(0x213)](_0x556b7b['pLlbB']),process[_0x239e03(0x20e)](0x1);else{const _0x14a5e3={};_0x14a5e3[_0x239e03(0x19b)]=_0x556b7b[_0x239e03(0x1e5)],_0x14a5e3[_0x239e03(0x203)]=_0x556b7b['eyOLL'];const _0x1699af={};_0x1699af[_0x239e03(0x19b)]=_0x556b7b[_0x239e03(0x1b5)],_0x1699af[_0x239e03(0x203)]=_0x556b7b[_0x239e03(0x194)],_0x1699af[_0x239e03(0x1e9)]=![];const _0xdb7036={};return _0xdb7036[_0x239e03(0x21c)]=_0x14a5e3,_0xdb7036['skip-tls-cert-verify']=_0x1699af,_0x3ebfa2['usage'](_0x8532ba[_0x239e03(0x202)])[_0x239e03(0x197)](_0x17bb63)[_0x239e03(0x1c3)](_0xdb7036)['help'](_0x556b7b[_0x239e03(0x19e)])[_0x239e03(0x1ea)];}}const _0xd264c5=JSON[_0x239e03(0x1de)](fs['readFileSync'](_0x556b7b[_0x239e03(0x19c)](getCredentialsPath))),[_0x516705,_0x5f539c]=await _0x556b7b[_0x239e03(0x215)](getGridDetails,_0xd264c5[_0x239e03(0x1eb)]['username'],_0xd264c5[_0x239e03(0x1eb)][_0x239e03(0x18d)],_0x2442d4[_0x239e03(0x1b0)]);if(_0x5f539c){const _0x226b5c=_0x5f539c[_0x239e03(0x1dc)];let _0x48d742=_0x239e03(0x1b2)+_0x226b5c['name']+_0x239e03(0x1d1)+_0x226b5c['id']+_0x239e03(0x1c6);_0x5f539c[_0x239e03(0x206)]&&_0x556b7b['SooAg'](_0x5f539c[_0x239e03(0x1be)],_0x556b7b[_0x239e03(0x218)])&&(_0x556b7b[_0x239e03(0x1bd)](_0x556b7b['oIIZL'],_0x556b7b['aLRJn'])?_0x48d742=_0x239e03(0x1b2)+_0x226b5c[_0x239e03(0x1ba)]+_0x239e03(0x1d1)+_0x226b5c['id']+_0x239e03(0x1d9)+_0x226b5c['clusterName']+_0x239e03(0x1a4)+_0x226b5c[_0x239e03(0x192)]+_0x239e03(0x1c6):_0x1e4abb='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x435b69[_0x239e03(0x1ba)]+_0x239e03(0x1d1)+_0x35d0b2['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x4cd470[_0x239e03(0x21e)]+_0x239e03(0x1a4)+_0x56ae81[_0x239e03(0x192)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0x3d1e52=await _0x556b7b['amxQv'](inputConfirmation,_0x48d742);(_0x556b7b[_0x239e03(0x1f7)](_0x3d1e52,undefined)||_0x556b7b[_0x239e03(0x1e4)](_0x3d1e52,null)||!(_0x556b7b[_0x239e03(0x1ec)](_0x3d1e52['toLowerCase'](),'y')||_0x556b7b[_0x239e03(0x1ec)](_0x3d1e52[_0x239e03(0x21a)](),'n')))&&(_0x556b7b[_0x239e03(0x1bd)](_0x556b7b[_0x239e03(0x1ee)],_0x556b7b[_0x239e03(0x1ee)])?_0x4038f5['exit'](0x0):(console[_0x239e03(0x213)](_0x556b7b[_0x239e03(0x216)]),await _0x556b7b[_0x239e03(0x1fb)](sendInstrumentationEvent,_0x2442d4,_0x556b7b['wqVNJ'],messageTypes[_0x239e03(0x195)],_0x556b7b[_0x239e03(0x1ce)],null,_0x2442d4),process[_0x239e03(0x20e)](0x1)));_0x556b7b[_0x239e03(0x1e4)](_0x3d1e52['toLowerCase'](),'n')&&(_0x556b7b[_0x239e03(0x190)](_0x556b7b[_0x239e03(0x1e2)],_0x556b7b[_0x239e03(0x1e2)])?process[_0x239e03(0x20e)](0x0):(_0x40b5e1[_0x239e03(0x213)](_0x556b7b[_0x239e03(0x1a1)]),_0x540a59[_0x239e03(0x20e)](0x1)));const _0x39ef8d=WS_ENDPOINT[_0x239e03(0x1a8)](_0x556b7b['YRwBB'],_0xd264c5[_0x239e03(0x1eb)][_0x239e03(0x205)])[_0x239e03(0x1a8)](_0x556b7b[_0x239e03(0x1fd)],_0xd264c5[_0x239e03(0x1eb)][_0x239e03(0x18d)]),_0x1d701c={};_0x1d701c[_0x239e03(0x19a)]=ws,_0x1d701c[_0x239e03(0x1d2)]=0x36ee80;const _0x1cec91=new ReconnectingWebSocket(_0x39ef8d,[],_0x1d701c);global_registry['clusterRegion']=_0x226b5c[_0x239e03(0x19f)];const _0x24d49d=_0x226b5c[_0x239e03(0x1ca)],_0x104749=await _0x556b7b[_0x239e03(0x1b3)](getCloudProviderObject,_0x24d49d,_0x226b5c['clusterName'],_0x226b5c[_0x239e03(0x1ba)],_0x1cec91,webSocketUtils,_0x2442d4),_0x37526e=await _0x104749[_0x239e03(0x1fa)]();if(_0x37526e){const _0x3a3c5c=_0x556b7b[_0x239e03(0x1b6)](kebabCase,_0x226b5c['name']),[_0x40c4d0,_0x12bc33,_0x1c414f,_0x4759c2,_0x298188,_0x47980f]=await _0x556b7b[_0x239e03(0x20a)](createK8sClient,_0x104749,_0x2442d4[_0x239e03(0x1e7)]);let _0x23df02=!![];const _0x174005={};_0x174005[_0x239e03(0x1ba)]=_0x3a3c5c,await _0x40c4d0[_0x239e03(0x1c9)](_0x174005)[_0x239e03(0x1d6)](_0x16264d=>{const _0x3c7990=_0x239e03;_0x556b7b[_0x3c7990(0x1bd)](_0x556b7b[_0x3c7990(0x207)],_0x556b7b['PneUN'])?_0x55ab0b['warn'](_0x3c7990(0x1ef)+_0x333731['clusterName']+_0x3c7990(0x20b)):logger['info']('Namespace:\x20'+_0x3a3c5c+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion');})[_0x239e03(0x188)](_0x228c03=>{const _0x284113=_0x239e03,_0x4a1bad={};_0x4a1bad[_0x284113(0x1dd)]=_0x556b7b[_0x284113(0x1c7)];const _0x2be98f=_0x4a1bad;_0x556b7b['OiJxV'](_0x556b7b[_0x284113(0x1e3)],_0x556b7b['gWCDw'])?(logger[_0x284113(0x198)](_0x284113(0x1f0)+_0x3a3c5c+_0x284113(0x18c)),_0x23df02=![]):_0x5b66e0[_0x284113(0x198)](_0x2be98f[_0x284113(0x1dd)]);});if(_0x23df02){await _0x556b7b[_0x239e03(0x185)](removeGridComponents,_0x40c4d0,_0x12bc33,_0x1c414f,_0x4759c2,_0x3a3c5c);if(_0x5f539c['onlyGridInCluster']){const _0x50b42f=await _0x104749[_0x239e03(0x1ac)]();_0x50b42f?_0x556b7b['sBwYR'](_0x556b7b[_0x239e03(0x212)],_0x556b7b[_0x239e03(0x1ff)])?await _0x104749[_0x239e03(0x1c0)](_0x40c4d0,_0x226b5c[_0x239e03(0x19f)]):(_0x4b42fa[_0x239e03(0x1dc)](_0x556b7b[_0x239e03(0x1af)]),_0x2850d9['exit'](0x0)):_0x556b7b['mdKMU'](_0x556b7b[_0x239e03(0x191)],_0x556b7b[_0x239e03(0x191)])?(_0x19e5ac['warn'](_0x239e03(0x1f0)+_0x199ed5+_0x239e03(0x18c)),_0x44eec6=![]):logger[_0x239e03(0x198)](_0x239e03(0x1ef)+_0x226b5c[_0x239e03(0x21e)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger[_0x239e03(0x198)](_0x556b7b[_0x239e03(0x1c7)]);const _0x2cd638=_0x239e03(0x1f9)+AG_API_URL+_0x239e03(0x204)+_0x2442d4[_0x239e03(0x1b0)],_0x600a4d={'method':_0x556b7b[_0x239e03(0x1e6)],'headers':_0x556b7b[_0x239e03(0x18b)](getAuthHeader,_0xd264c5['Browserstack']['username'],_0xd264c5['Browserstack'][_0x239e03(0x18d)]),'throwHttpErrors':![]},_0xd8a73=await _0x556b7b['utfXo'](got,_0x2cd638,_0x600a4d);_0x556b7b[_0x239e03(0x20f)](_0xd8a73,null)&&_0x556b7b['ZjiOL'](_0xd8a73,undefined)&&_0x556b7b['kPwkl'](_0xd8a73[_0x239e03(0x19d)],0xc8)&&(logger[_0x239e03(0x1dc)](_0x556b7b['NDniB']),process[_0x239e03(0x20e)](0x0)),logger['error']('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0xd8a73[_0x239e03(0x1e0)]),await _0x556b7b[_0x239e03(0x1d3)](sendInstrumentationEvent,_0x2442d4,_0x556b7b[_0x239e03(0x1c1)],messageTypes['ERROR'],_0x556b7b[_0x239e03(0x1f5)],_0x516705,_0x2442d4),process[_0x239e03(0x20e)](0x1);}_0x556b7b[_0x239e03(0x1f7)](_0x516705['statusCode'],0x191)&&(logger['error'](_0x556b7b['LtDvM']),await _0x556b7b[_0x239e03(0x18a)](sendInstrumentationEvent,_0x2442d4,_0x556b7b[_0x239e03(0x1c1)],messageTypes[_0x239e03(0x195)],_0x556b7b[_0x239e03(0x1a9)],null,_0x2442d4),process[_0x239e03(0x20e)](0x1)),_0x556b7b[_0x239e03(0x190)](_0x516705[_0x239e03(0x19d)],0x190)&&(logger[_0x239e03(0x213)](JSON['parse'](_0x516705[_0x239e03(0x1e0)])[_0x239e03(0x189)]),await _0x556b7b['EXQem'](sendInstrumentationEvent,_0x2442d4,_0x556b7b['wqVNJ'],messageTypes[_0x239e03(0x195)],_0x556b7b[_0x239e03(0x1cd)],null,_0x2442d4),process['exit'](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x516705)),await _0x556b7b[_0x239e03(0x1d3)](sendInstrumentationEvent,_0x2442d4,_0x556b7b['wqVNJ'],messageTypes[_0x239e03(0x195)],_0x556b7b['AodDt'],_0x516705,_0x2442d4),process['exit'](0x1);}catch(_0x59e344){logger['error'](_0x239e03(0x214)+_0x59e344['stack']),await _0x556b7b[_0x239e03(0x18a)](sendInstrumentationEvent,_0x2442d4,_0x556b7b[_0x239e03(0x1c1)],messageTypes[_0x239e03(0x195)],_0x556b7b['gguoD'],_0x59e344,_0x2442d4),process[_0x239e03(0x20e)](0x1);}};
@@ -1 +1 @@
1
- const a12_0x3b773f=a12_0x4b87;function a12_0x4b87(_0x1eeaa0,_0x396568){const _0x4d20f9=a12_0x4d20();return a12_0x4b87=function(_0x4b8777,_0x385862){_0x4b8777=_0x4b8777-0x199;let _0x3f090d=_0x4d20f9[_0x4b8777];return _0x3f090d;},a12_0x4b87(_0x1eeaa0,_0x396568);}(function(_0x51da19,_0x180e23){const _0x3bca11=a12_0x4b87,_0x135dbb=_0x51da19();while(!![]){try{const _0x2afef1=parseInt(_0x3bca11(0x1ab))/0x1+-parseInt(_0x3bca11(0x1f2))/0x2+parseInt(_0x3bca11(0x1e2))/0x3+-parseInt(_0x3bca11(0x1f0))/0x4*(parseInt(_0x3bca11(0x1f9))/0x5)+-parseInt(_0x3bca11(0x1d2))/0x6+parseInt(_0x3bca11(0x1d9))/0x7+-parseInt(_0x3bca11(0x1ca))/0x8;if(_0x2afef1===_0x180e23)break;else _0x135dbb['push'](_0x135dbb['shift']());}catch(_0x60c3a6){_0x135dbb['push'](_0x135dbb['shift']());}}}(a12_0x4d20,0x647d3));function a12_0x4d20(){const _0x343024=['ULHBe','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstackAccesskey','BROWSERSTACK_USERNAME','aGqLv','TIhFF','utf-8','PExeW','bstack-username','requestId','AyMPJ','ldUXa','EQPYK','fYFYz','mkdirSync','INFO','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Qmpwr','readFileSync','afHME','stringify','hNTsz','MwOXR','1395664OrAzFf','PrpwS','AXqlM','argv','ssdnO','BROWSERSTACK_ACCESS_KEY','string','REIfX','1376496xuuKSS','NfIaO','aWjJE','desc','exit','xVDld','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','5627111ytmpkP','ERROR','uNOsK','XzhqV','Zctms','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','DiSDC','error','427011ZVhuRz','CpTlJ','uuid','tqDPe','init','UIybe','KXaXo','builder','DthYj','epilogue','GET','XnlWp','unknown-error','usage','21004YrJuZM','https://','745094uJiEdZ','jfGlV','XdYWx','bstack-accesskey','debug','Browserstack','dzXVB','295rzguME','GfOLW','type','../utils/utilityMethods','help','writeFileSync','vWNHL','util','options','command','env','username','wrong-creds','password','bvVzd','stack','strict','parse','MHOyk','recommendCommands','pCXaF','DDEzV','bstackUsername','RJAIP','VWvTD','551623jqyaob','../utils/userInput','GZwOj','description','handler','statusCode','wnDGv','jiosR'];a12_0x4d20=function(){return _0x343024;};return a12_0x4d20();}const fs=require('fs'),util=require(a12_0x3b773f(0x199)),got=require('got'),{v4:uuidv4}=require(a12_0x3b773f(0x1e4)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x3b773f(0x1ac)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x3b773f(0x1fc)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a12_0x3b773f(0x19b)]='init',exports[a12_0x3b773f(0x1d5)]=a12_0x3b773f(0x1d8),exports[a12_0x3b773f(0x1e9)]=function(_0x109ba7){const _0x50bba0=a12_0x3b773f,_0xe9d602={};_0xe9d602[_0x50bba0(0x1d3)]=_0x50bba0(0x1c3),_0xe9d602['DiSDC']='string',_0xe9d602[_0x50bba0(0x1db)]=_0x50bba0(0x1b4),_0xe9d602[_0x50bba0(0x1ff)]=_0x50bba0(0x1fd);const _0x354ec5=_0xe9d602,_0x5df0f8={};_0x5df0f8[_0x50bba0(0x1ae)]=_0x354ec5['NfIaO'],_0x5df0f8[_0x50bba0(0x1fb)]=_0x354ec5[_0x50bba0(0x1e0)];const _0x5a1a9a={};_0x5a1a9a[_0x50bba0(0x1ae)]=_0x354ec5[_0x50bba0(0x1db)],_0x5a1a9a[_0x50bba0(0x1fb)]=_0x354ec5[_0x50bba0(0x1e0)];const _0x2aaa7c={};return _0x2aaa7c[_0x50bba0(0x1bb)]=_0x5df0f8,_0x2aaa7c[_0x50bba0(0x1f5)]=_0x5a1a9a,_0x109ba7['usage'](HELP_HEADER_MESSAGE[_0x50bba0(0x1e6)])[_0x50bba0(0x1eb)](HELP_FOOTER_MESSAGE)['options'](_0x2aaa7c)[_0x50bba0(0x1a5)]()[_0x50bba0(0x1a2)]()['help'](_0x354ec5[_0x50bba0(0x1ff)])[_0x50bba0(0x1cd)];},exports[a12_0x3b773f(0x1af)]=async function(_0x38bda7){const _0x501df4=a12_0x3b773f,_0x556d69={'ssdnO':_0x501df4(0x1b9),'REIfX':function(_0x5f176c){return _0x5f176c();},'AyMPJ':_0x501df4(0x1c3),'ldUXa':_0x501df4(0x1d0),'DDEzV':_0x501df4(0x1b4),'afHME':_0x501df4(0x1fd),'EQPYK':function(_0x5f00a9,_0x565a5f,_0x3e8ed4,_0x35657e,_0x3f7424,_0x3aae4e,_0x343761){return _0x5f00a9(_0x565a5f,_0x3e8ed4,_0x35657e,_0x3f7424,_0x3aae4e,_0x343761);},'PrpwS':'init-called','bvVzd':function(_0x56f901){return _0x56f901();},'AXqlM':function(_0x3356f7,_0x1b5329){return _0x3356f7!==_0x1b5329;},'hNTsz':_0x501df4(0x1e3),'tqDPe':function(_0x139975,_0x279adc){return _0x139975===_0x279adc;},'wnDGv':_0x501df4(0x1c4),'TIhFF':_0x501df4(0x1d4),'sGrAa':_0x501df4(0x1ed),'XdYWx':_0x501df4(0x1f3),'dzXVB':function(_0x1c1891,_0x329a54){return _0x1c1891!==_0x329a54;},'StYwU':_0x501df4(0x1e8),'GZwOj':_0x501df4(0x1a4),'AoKnx':function(_0x1d6b10,_0x2a1409){return _0x1d6b10!==_0x2a1409;},'fYFYz':_0x501df4(0x1d7),'TOIuY':_0x501df4(0x1de),'jiosR':_0x501df4(0x1ec),'MwOXR':function(_0x321353,_0xeaab87,_0x3d06dd){return _0x321353(_0xeaab87,_0x3d06dd);},'DthYj':function(_0xa5fd89,_0x550a62){return _0xa5fd89!==_0x550a62;},'pCXaF':_0x501df4(0x1e7),'PExeW':function(_0x12429a,_0x1fb328){return _0x12429a===_0x1fb328;},'GfOLW':_0x501df4(0x1a9),'XzhqV':'Toguj','aGqLv':_0x501df4(0x1df),'VWvTD':function(_0x4db5f8,_0x4d42f1,_0x118544,_0x15b10c,_0x4a190c,_0x1dfb79,_0x4d6d39){return _0x4db5f8(_0x4d42f1,_0x118544,_0x15b10c,_0x4a190c,_0x1dfb79,_0x4d6d39);},'ADcGr':_0x501df4(0x19e),'Zctms':function(_0x97e733,_0x2959ac,_0x1c4903,_0x212fc0,_0x3efd9f,_0xb97110,_0x17c867){return _0x97e733(_0x2959ac,_0x1c4903,_0x212fc0,_0x3efd9f,_0xb97110,_0x17c867);},'ULHBe':_0x501df4(0x1ee)};try{global_registry[_0x501df4(0x1bc)]=_0x556d69[_0x501df4(0x1d1)](uuidv4),_0x556d69[_0x501df4(0x1bf)](sendInstrumentationEvent,_0x38bda7,_0x556d69[_0x501df4(0x1cb)],messageTypes[_0x501df4(0x1c2)],null,null,_0x38bda7);const _0x695ca8=_0x556d69[_0x501df4(0x1a0)](getDirForConfig);!fs['existsSync'](_0x695ca8)&&(_0x556d69['AXqlM'](_0x556d69['hNTsz'],_0x556d69[_0x501df4(0x1c8)])?_0x342ae1=_0x414029[_0x501df4(0x1b5)]:fs[_0x501df4(0x1c1)](_0x695ca8));let _0x4fc323,_0x55543e;process[_0x501df4(0x19c)][_0x501df4(0x1b6)]&&(_0x556d69[_0x501df4(0x1e5)](_0x556d69[_0x501df4(0x1b1)],_0x556d69[_0x501df4(0x1b1)])?_0x4fc323=process[_0x501df4(0x19c)][_0x501df4(0x1b6)]:_0x4ebb78=_0xb56af2[_0x501df4(0x1a3)](_0x18cc1d[_0x501df4(0x1c5)](_0x599b28,_0x556d69[_0x501df4(0x1ce)])));if(process[_0x501df4(0x19c)][_0x501df4(0x1cf)]){if(_0x556d69[_0x501df4(0x1cc)](_0x556d69[_0x501df4(0x1b8)],_0x556d69['sGrAa']))_0x55543e=process[_0x501df4(0x19c)][_0x501df4(0x1cf)];else{let _0x45daae={};const _0x2ef676=_0x556d69[_0x501df4(0x1d1)](_0x341e11);_0x125e5c['existsSync'](_0x2ef676)&&(_0x45daae=_0x455f91[_0x501df4(0x1a3)](_0x638912[_0x501df4(0x1c5)](_0x2ef676,_0x556d69[_0x501df4(0x1ce)])));const _0x4b193f={};_0x4b193f[_0x501df4(0x19d)]=_0x5f29d9,_0x4b193f[_0x501df4(0x19f)]=_0x2eba4d,_0x45daae[_0x501df4(0x1f7)]=_0x4b193f,_0x3b7810['writeFileSync'](_0x2ef676,_0x2e0ae5['stringify'](_0x45daae)),_0x10e1b5[_0x501df4(0x1d6)](0x0);}}_0x38bda7[_0x501df4(0x1a8)]&&(_0x556d69[_0x501df4(0x1e5)](_0x556d69[_0x501df4(0x1f4)],_0x556d69['XdYWx'])?_0x4fc323=_0x38bda7[_0x501df4(0x1a8)]:_0x254b95=!![]);_0x38bda7[_0x501df4(0x1b5)]&&(_0x556d69[_0x501df4(0x1f8)](_0x556d69['StYwU'],_0x556d69[_0x501df4(0x1ad)])?_0x55543e=_0x38bda7[_0x501df4(0x1b5)]:_0x12f7f7[_0x501df4(0x1c1)](_0x58fddf));if(_0x556d69[_0x501df4(0x1e5)](_0x4fc323,undefined)||_0x556d69['tqDPe'](_0x55543e,undefined)){if(_0x556d69['AoKnx'](_0x556d69[_0x501df4(0x1c0)],_0x556d69[_0x501df4(0x1c0)])){const _0xccd3a4={};_0xccd3a4['description']=_0x556d69[_0x501df4(0x1bd)],_0xccd3a4['type']=_0x556d69[_0x501df4(0x1be)];const _0x3d07c4={};_0x3d07c4[_0x501df4(0x1ae)]=_0x556d69[_0x501df4(0x1a7)],_0x3d07c4[_0x501df4(0x1fb)]=_0x556d69['ldUXa'];const _0xb20049={};return _0xb20049['bstack-username']=_0xccd3a4,_0xb20049[_0x501df4(0x1f5)]=_0x3d07c4,_0x5d9b00[_0x501df4(0x1ef)](_0x162c08['init'])[_0x501df4(0x1eb)](_0x1cabc1)[_0x501df4(0x19a)](_0xb20049)[_0x501df4(0x1a5)]()[_0x501df4(0x1a2)]()[_0x501df4(0x1fd)](_0x556d69[_0x501df4(0x1c6)])['argv'];}else{logger[_0x501df4(0x1f6)](_0x556d69['TOIuY']);const [_0x150e25,_0x3a255c]=await _0x556d69['bvVzd'](inputBstackKeys);_0x4fc323=_0x150e25,_0x55543e=_0x3a255c;}}let _0xb98912=![];const _0x54f6d5=_0x501df4(0x1f1)+_0x4fc323+':'+_0x55543e+'@'+BS_API_URL+'/automate/plan.json',_0x480200={'method':_0x556d69[_0x501df4(0x1b2)],'headers':_0x556d69[_0x501df4(0x1c9)](getAuthHeader,_0x4fc323,_0x55543e),'throwHttpErrors':![]},_0x38d143=await _0x556d69['MwOXR'](got,_0x54f6d5,_0x480200);_0x556d69[_0x501df4(0x1cc)](_0x38d143,null)&&_0x556d69[_0x501df4(0x1ea)](_0x38d143,undefined)&&_0x556d69['tqDPe'](_0x38d143[_0x501df4(0x1b0)],0xc8)&&(_0x556d69[_0x501df4(0x1f8)](_0x556d69[_0x501df4(0x1a6)],_0x556d69[_0x501df4(0x1a6)])?_0xce0d70=_0x4981e7['bstackUsername']:_0xb98912=!![]);if(_0xb98912){if(_0x556d69['PExeW'](_0x556d69[_0x501df4(0x1fa)],_0x556d69['GfOLW'])){let _0x23eb4b={};const _0x5ca031=_0x556d69[_0x501df4(0x1a0)](getCredentialsPath);fs['existsSync'](_0x5ca031)&&(_0x556d69[_0x501df4(0x1ba)](_0x556d69[_0x501df4(0x1dc)],_0x556d69[_0x501df4(0x1dc)])?_0x23eb4b=JSON[_0x501df4(0x1a3)](fs[_0x501df4(0x1c5)](_0x5ca031,_0x556d69[_0x501df4(0x1ce)])):_0x6adc2c=_0x3517a3[_0x501df4(0x19c)][_0x501df4(0x1b6)]);const _0x50205c={};_0x50205c['username']=_0x4fc323,_0x50205c['password']=_0x55543e,_0x23eb4b[_0x501df4(0x1f7)]=_0x50205c,fs[_0x501df4(0x1fe)](_0x5ca031,JSON[_0x501df4(0x1c7)](_0x23eb4b)),process['exit'](0x0);}else _0x598f6d=_0x1f4be7[_0x501df4(0x19c)][_0x501df4(0x1cf)];}else logger[_0x501df4(0x1e1)](_0x556d69[_0x501df4(0x1b7)]),await _0x556d69[_0x501df4(0x1aa)](sendInstrumentationEvent,_0x38bda7,_0x556d69['PrpwS'],messageTypes[_0x501df4(0x1da)],_0x556d69['ADcGr'],null,_0x38bda7),process[_0x501df4(0x1d6)](0x1);}catch(_0x21cf13){logger['error'](_0x21cf13[_0x501df4(0x1a1)]),await _0x556d69[_0x501df4(0x1dd)](sendInstrumentationEvent,_0x38bda7,_0x556d69[_0x501df4(0x1cb)],messageTypes['ERROR'],_0x556d69[_0x501df4(0x1b3)],_0x21cf13,_0x38bda7),process['exit'](0x1);}};
1
+ const a12_0x5a9485=a12_0x46fb;function a12_0x46fb(_0x25bf60,_0x17e9f0){const _0x427ce8=a12_0x427c();return a12_0x46fb=function(_0x46fb91,_0x5743e4){_0x46fb91=_0x46fb91-0x15b;let _0x58fb9e=_0x427ce8[_0x46fb91];return _0x58fb9e;},a12_0x46fb(_0x25bf60,_0x17e9f0);}(function(_0x1be02c,_0x32ca03){const _0x47a3da=a12_0x46fb,_0x6b5cf2=_0x1be02c();while(!![]){try{const _0x7be9af=-parseInt(_0x47a3da(0x178))/0x1+parseInt(_0x47a3da(0x15f))/0x2+-parseInt(_0x47a3da(0x1b0))/0x3+-parseInt(_0x47a3da(0x196))/0x4*(parseInt(_0x47a3da(0x1b8))/0x5)+parseInt(_0x47a3da(0x186))/0x6*(parseInt(_0x47a3da(0x191))/0x7)+-parseInt(_0x47a3da(0x1a7))/0x8*(parseInt(_0x47a3da(0x170))/0x9)+parseInt(_0x47a3da(0x17a))/0xa;if(_0x7be9af===_0x32ca03)break;else _0x6b5cf2['push'](_0x6b5cf2['shift']());}catch(_0x40f071){_0x6b5cf2['push'](_0x6b5cf2['shift']());}}}(a12_0x427c,0x47d3b));const fs=require('fs'),util=require(a12_0x5a9485(0x18c)),got=require(a12_0x5a9485(0x184)),{v4:uuidv4}=require(a12_0x5a9485(0x15c)),{logger}=require('../config/logger'),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x5a9485(0x1b9)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x5a9485(0x173)),{sendInstrumentationEvent}=require(a12_0x5a9485(0x1ab));function a12_0x427c(){const _0x4008b4=['499981XNyoEk','bstack-username','16639500KnMrmR','OYPQm','tTYWv','BROWSERSTACK_USERNAME','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Azowd','type','bstackAccesskey','ubhUB','password','got','hkMEt','193332XlnZvi','debug','requestId','dvKwN','PXtWH','existsSync','util','FFuMn','SEadf','AjFLb','Browserstack','14UYmgtA','command','bstackUsername','bstack-accesskey','argv','116SOafBR','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','ntrek','SMLIP','ngUzR','UAXjz','stack','writeFileSync','error','kvveg','utf-8','OlRbA','readFileSync','dMtaX','handler','/automate/plan.json','JZfLR','1013584zhyIhA','DxSus','uFdvm','help','../utils/instrumentationUtils','oYJZv','BGnQf','epilogue','ERROR','1674642OdBind','Ragkt','fVcNt','GET','vhcQD','zcarh','string','recommendCommands','75085wdQizD','../config/constants','NVcWf','rgNMP','uuid','options','init-called','1132578WJLoEp','nYWoo','parse','stringify','JCtUp','unknown-error','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','username','mkdirSync','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','env','strict','exit','mZskh','LSIMf','description','GTbVH','36YrbwJo','wrong-creds','desc','../utils/utilityMethods','init','BROWSERSTACK_ACCESS_KEY','hJalH','jciSg'];a12_0x427c=function(){return _0x4008b4;};return a12_0x427c();}exports[a12_0x5a9485(0x192)]=a12_0x5a9485(0x174),exports[a12_0x5a9485(0x172)]=a12_0x5a9485(0x165),exports['builder']=function(_0x29aeef){const _0x1c1ecd=a12_0x5a9485,_0x148a8c={};_0x148a8c[_0x1c1ecd(0x1b1)]=_0x1c1ecd(0x168),_0x148a8c[_0x1c1ecd(0x1ac)]=_0x1c1ecd(0x1b6),_0x148a8c[_0x1c1ecd(0x1a9)]=_0x1c1ecd(0x17e),_0x148a8c[_0x1c1ecd(0x19f)]=_0x1c1ecd(0x1aa);const _0xfbf8d1=_0x148a8c,_0x2a1d49={};_0x2a1d49[_0x1c1ecd(0x16e)]=_0xfbf8d1[_0x1c1ecd(0x1b1)],_0x2a1d49[_0x1c1ecd(0x180)]=_0xfbf8d1[_0x1c1ecd(0x1ac)];const _0x11a1d2={};_0x11a1d2['description']=_0xfbf8d1[_0x1c1ecd(0x1a9)],_0x11a1d2[_0x1c1ecd(0x180)]=_0xfbf8d1[_0x1c1ecd(0x1ac)];const _0x579309={};return _0x579309[_0x1c1ecd(0x179)]=_0x2a1d49,_0x579309[_0x1c1ecd(0x194)]=_0x11a1d2,_0x29aeef['usage'](HELP_HEADER_MESSAGE['init'])[_0x1c1ecd(0x1ae)](HELP_FOOTER_MESSAGE)['options'](_0x579309)[_0x1c1ecd(0x1b7)]()['strict']()[_0x1c1ecd(0x1aa)](_0xfbf8d1[_0x1c1ecd(0x19f)])[_0x1c1ecd(0x195)];},exports[a12_0x5a9485(0x1a4)]=async function(_0x2a20cf){const _0xb37561=a12_0x5a9485,_0xa2447={'vhcQD':_0xb37561(0x1a0),'wilPt':_0xb37561(0x168),'fVcNt':_0xb37561(0x1b6),'aNyED':_0xb37561(0x17e),'SMLIP':_0xb37561(0x1aa),'ngUzR':function(_0x5ea5ee){return _0x5ea5ee();},'coUlV':function(_0x3c73c4,_0x37d669,_0x3a2e66,_0x3a2092,_0x212111,_0x349b92,_0x2d997f){return _0x3c73c4(_0x37d669,_0x3a2e66,_0x3a2092,_0x212111,_0x349b92,_0x2d997f);},'FFuMn':_0xb37561(0x15e),'dvKwN':function(_0x29847a,_0x2ab817){return _0x29847a===_0x2ab817;},'GTbVH':'IIZiN','PXtWH':function(_0x368e2f,_0x209497){return _0x368e2f===_0x209497;},'Azowd':_0xb37561(0x160),'ntrek':function(_0x5d5300,_0x3babb4){return _0x5d5300===_0x3babb4;},'DxSus':_0xb37561(0x1b5),'ubhUB':'ajznC','JZfLR':function(_0x2d3b96,_0x4c44bf){return _0x2d3b96!==_0x4c44bf;},'qhtBf':'ipyJo','iOkxI':'TzdFx','dMtaX':function(_0x50483a,_0x156ef1){return _0x50483a===_0x156ef1;},'NVcWf':function(_0x1a675a,_0x10c877){return _0x1a675a===_0x10c877;},'BGnQf':function(_0x3cac16,_0x2bb350){return _0x3cac16!==_0x2bb350;},'jciSg':_0xb37561(0x18f),'oIqUS':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','UAXjz':_0xb37561(0x1b3),'ZynQQ':function(_0x54dbc1,_0x13409a,_0x567686){return _0x54dbc1(_0x13409a,_0x567686);},'hkMEt':function(_0x3fdb22,_0x158ac9,_0x512fd1){return _0x3fdb22(_0x158ac9,_0x512fd1);},'hJalH':function(_0x3e73ac,_0x37c885){return _0x3e73ac===_0x37c885;},'MhGln':'ydgsp','tTYWv':_0xb37561(0x1a1),'JCtUp':'adZno','SEadf':'BNPwB','rgNMP':_0xb37561(0x197),'LSIMf':_0xb37561(0x171),'OYPQm':function(_0x48ee0c,_0x5411bc,_0x1b3601,_0x2728e4,_0xd2847a,_0x49b5e2,_0xc0da3){return _0x48ee0c(_0x5411bc,_0x1b3601,_0x2728e4,_0xd2847a,_0x49b5e2,_0xc0da3);},'mZskh':_0xb37561(0x164)};try{global_registry[_0xb37561(0x188)]=_0xa2447[_0xb37561(0x19a)](uuidv4),_0xa2447['coUlV'](sendInstrumentationEvent,_0x2a20cf,_0xa2447[_0xb37561(0x18d)],messageTypes['INFO'],null,null,_0x2a20cf);const _0x11c6ad=_0xa2447[_0xb37561(0x19a)](getDirForConfig);!fs['existsSync'](_0x11c6ad)&&(_0xa2447[_0xb37561(0x189)](_0xa2447[_0xb37561(0x16f)],_0xa2447[_0xb37561(0x16f)])?fs[_0xb37561(0x167)](_0x11c6ad):_0x1c4176=!![]);let _0x4af204,_0x440c14;process['env'][_0xb37561(0x17d)]&&(_0xa2447[_0xb37561(0x18a)](_0xa2447[_0xb37561(0x17f)],_0xa2447[_0xb37561(0x17f)])?_0x4af204=process[_0xb37561(0x169)][_0xb37561(0x17d)]:_0x166ff9=_0x1ab76e[_0xb37561(0x193)]);process[_0xb37561(0x169)][_0xb37561(0x175)]&&(_0xa2447[_0xb37561(0x198)](_0xa2447['DxSus'],_0xa2447[_0xb37561(0x1a8)])?_0x440c14=process[_0xb37561(0x169)][_0xb37561(0x175)]:_0x593574=_0x196ff1[_0xb37561(0x161)](_0x2a60ea[_0xb37561(0x1a2)](_0x23b6e1,_0xa2447[_0xb37561(0x1b4)])));if(_0x2a20cf[_0xb37561(0x193)]){if(_0xa2447[_0xb37561(0x189)](_0xa2447[_0xb37561(0x182)],_0xa2447[_0xb37561(0x182)]))_0x4af204=_0x2a20cf['bstackUsername'];else{const _0x5bc4ef={};_0x5bc4ef[_0xb37561(0x16e)]=_0xa2447['wilPt'],_0x5bc4ef[_0xb37561(0x180)]=_0xa2447[_0xb37561(0x1b2)];const _0x4c9ac6={};_0x4c9ac6['description']=_0xa2447['aNyED'],_0x4c9ac6[_0xb37561(0x180)]=_0xa2447['fVcNt'];const _0xa21572={};return _0xa21572['bstack-username']=_0x5bc4ef,_0xa21572['bstack-accesskey']=_0x4c9ac6,_0x44f206['usage'](_0x29e37e[_0xb37561(0x174)])[_0xb37561(0x1ae)](_0x422f3d)[_0xb37561(0x15d)](_0xa21572)[_0xb37561(0x1b7)]()[_0xb37561(0x16a)]()[_0xb37561(0x1aa)](_0xa2447[_0xb37561(0x199)])[_0xb37561(0x195)];}}_0x2a20cf[_0xb37561(0x181)]&&(_0xa2447['JZfLR'](_0xa2447['qhtBf'],_0xa2447['iOkxI'])?_0x440c14=_0x2a20cf[_0xb37561(0x181)]:_0x325b9e=_0x3f8f50[_0xb37561(0x169)][_0xb37561(0x17d)]);if(_0xa2447[_0xb37561(0x1a3)](_0x4af204,undefined)||_0xa2447['NVcWf'](_0x440c14,undefined)){if(_0xa2447[_0xb37561(0x1ad)](_0xa2447[_0xb37561(0x177)],_0xa2447[_0xb37561(0x177)]))_0x180322=_0x52903e['bstackAccesskey'];else{logger[_0xb37561(0x187)](_0xa2447['oIqUS']);const [_0x26b5f1,_0x49e1e7]=await _0xa2447['ngUzR'](inputBstackKeys);_0x4af204=_0x26b5f1,_0x440c14=_0x49e1e7;}}let _0x5d7344=![];const _0x51a5c0='https://'+_0x4af204+':'+_0x440c14+'@'+BS_API_URL+_0xb37561(0x1a5),_0x7a57b7={'method':_0xa2447[_0xb37561(0x19b)],'headers':_0xa2447['ZynQQ'](getAuthHeader,_0x4af204,_0x440c14),'throwHttpErrors':![]},_0x418fae=await _0xa2447[_0xb37561(0x185)](got,_0x51a5c0,_0x7a57b7);if(_0xa2447['BGnQf'](_0x418fae,null)&&_0xa2447[_0xb37561(0x1a6)](_0x418fae,undefined)&&_0xa2447[_0xb37561(0x1ba)](_0x418fae['statusCode'],0xc8)){if(_0xa2447[_0xb37561(0x176)](_0xa2447['MhGln'],_0xa2447[_0xb37561(0x17c)])){let _0x5091dc={};const _0x30217b=_0xa2447[_0xb37561(0x19a)](_0xbffc98);_0x2dd173[_0xb37561(0x18b)](_0x30217b)&&(_0x5091dc=_0x5a002f[_0xb37561(0x161)](_0xaad147['readFileSync'](_0x30217b,_0xa2447['vhcQD'])));const _0x3fdaf0={};_0x3fdaf0[_0xb37561(0x166)]=_0x3274f7,_0x3fdaf0[_0xb37561(0x183)]=_0x51e90b,_0x5091dc[_0xb37561(0x190)]=_0x3fdaf0,_0x2f74da[_0xb37561(0x19d)](_0x30217b,_0x4a2732['stringify'](_0x5091dc)),_0x2daf64[_0xb37561(0x16b)](0x0);}else _0x5d7344=!![];}if(_0x5d7344){if(_0xa2447['NVcWf'](_0xa2447[_0xb37561(0x163)],_0xa2447[_0xb37561(0x163)])){let _0x5ba7b2={};const _0x10ae12=_0xa2447['ngUzR'](getCredentialsPath);fs[_0xb37561(0x18b)](_0x10ae12)&&(_0xa2447[_0xb37561(0x176)](_0xa2447[_0xb37561(0x18e)],_0xa2447[_0xb37561(0x18e)])?_0x5ba7b2=JSON['parse'](fs[_0xb37561(0x1a2)](_0x10ae12,_0xa2447['vhcQD'])):_0x1169ac=_0xd12ce3[_0xb37561(0x169)][_0xb37561(0x175)]);const _0x2102b6={};_0x2102b6[_0xb37561(0x166)]=_0x4af204,_0x2102b6[_0xb37561(0x183)]=_0x440c14,_0x5ba7b2['Browserstack']=_0x2102b6,fs['writeFileSync'](_0x10ae12,JSON[_0xb37561(0x162)](_0x5ba7b2)),process['exit'](0x0);}else _0x53c5a4[_0xb37561(0x167)](_0x12dfc4);}else logger[_0xb37561(0x19e)](_0xa2447[_0xb37561(0x15b)]),await _0xa2447['coUlV'](sendInstrumentationEvent,_0x2a20cf,_0xa2447['FFuMn'],messageTypes[_0xb37561(0x1af)],_0xa2447[_0xb37561(0x16d)],null,_0x2a20cf),process['exit'](0x1);}catch(_0xff003c){logger[_0xb37561(0x19e)](_0xff003c[_0xb37561(0x19c)]),await _0xa2447[_0xb37561(0x17b)](sendInstrumentationEvent,_0x2a20cf,_0xa2447[_0xb37561(0x18d)],messageTypes[_0xb37561(0x1af)],_0xa2447[_0xb37561(0x16c)],_0xff003c,_0x2a20cf),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a13_0x212dd6=a13_0xafbd;(function(_0x266175,_0x56ef98){const _0xcad2a7=a13_0xafbd,_0x2b37f4=_0x266175();while(!![]){try{const _0x109b5b=-parseInt(_0xcad2a7(0x184))/0x1+-parseInt(_0xcad2a7(0x19a))/0x2*(parseInt(_0xcad2a7(0x187))/0x3)+parseInt(_0xcad2a7(0x194))/0x4*(parseInt(_0xcad2a7(0x192))/0x5)+-parseInt(_0xcad2a7(0x19d))/0x6*(parseInt(_0xcad2a7(0x197))/0x7)+parseInt(_0xcad2a7(0x18a))/0x8*(parseInt(_0xcad2a7(0x198))/0x9)+parseInt(_0xcad2a7(0x199))/0xa*(parseInt(_0xcad2a7(0x193))/0xb)+parseInt(_0xcad2a7(0x188))/0xc;if(_0x109b5b===_0x56ef98)break;else _0x2b37f4['push'](_0x2b37f4['shift']());}catch(_0x3ca481){_0x2b37f4['push'](_0x2b37f4['shift']());}}}(a13_0x2cdf,0x72a10));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x212dd6(0x196));function a13_0xafbd(_0x39a5d0,_0x51ee60){const _0x2cdf73=a13_0x2cdf();return a13_0xafbd=function(_0xafbd6,_0x187099){_0xafbd6=_0xafbd6-0x183;let _0x100e68=_0x2cdf73[_0xafbd6];return _0x100e68;},a13_0xafbd(_0x39a5d0,_0x51ee60);}exports[a13_0x212dd6(0x189)]=a13_0x212dd6(0x190),exports['desc']=a13_0x212dd6(0x19c),exports[a13_0x212dd6(0x19b)]=function(_0x5501f1){const _0x466214=a13_0x212dd6,_0x33fee1={};_0x33fee1[_0x466214(0x191)]=_0x466214(0x195),_0x33fee1[_0x466214(0x18d)]=_0x466214(0x18e);const _0x4f4e52=_0x33fee1;return _0x5501f1[_0x466214(0x18c)](_0x4f4e52[_0x466214(0x191)])[_0x466214(0x185)]()[_0x466214(0x19e)](HELP_HEADER_MESSAGE[_0x466214(0x190)][_0x466214(0x183)])[_0x466214(0x18b)](HELP_FOOTER_MESSAGE)[_0x466214(0x186)]()['strict']()[_0x466214(0x18e)](_0x4f4e52[_0x466214(0x18d)]);},exports[a13_0x212dd6(0x18f)]=function(_0x58590c){};function a13_0x2cdf(){const _0x2fbf19=['494002rSChAE','demandCommand','recommendCommands','201AwNmRW','4732392JzdiNe','command','16ZsvWtP','epilogue','commandDir','DptcQ','help','handler','list','SmaCw','131750NkWoOz','11ZfQIAx','92Wmpvgm','list_commands','../config/constants','26334hSjHGa','3287259HNGnYm','307810VKjOeQ','7206oGUzsb','builder','List\x20down\x20the\x20Grid\x20resources.','888jQEwJM','usage','root'];a13_0x2cdf=function(){return _0x2fbf19;};return a13_0x2cdf();}
1
+ function a13_0x1413(_0x6a247a,_0x207b4e){const _0x283d75=a13_0x283d();return a13_0x1413=function(_0x141390,_0x56f0b9){_0x141390=_0x141390-0x1d9;let _0x51cda5=_0x283d75[_0x141390];return _0x51cda5;},a13_0x1413(_0x6a247a,_0x207b4e);}function a13_0x283d(){const _0x1a4506=['command','4lixFvt','handler','1321102zqKxyj','206790eIdoOw','recommendCommands','36UGmVmC','vvLGQ','strict','desc','2817mXKmRh','31432vDqmFh','WTgYb','root','help','1104711gnWzRD','560330mLdvRB','4348092umfCAJ','epilogue','121tbeFlA','list','3026024HERYeZ','demandCommand','list_commands'];a13_0x283d=function(){return _0x1a4506;};return a13_0x283d();}const a13_0x193d76=a13_0x1413;(function(_0x3326cf,_0x570d27){const _0x5e3775=a13_0x1413,_0x197171=_0x3326cf();while(!![]){try{const _0x25911c=-parseInt(_0x5e3775(0x1de))/0x1+parseInt(_0x5e3775(0x1dc))/0x2*(-parseInt(_0x5e3775(0x1ea))/0x3)+parseInt(_0x5e3775(0x1f0))/0x4+parseInt(_0x5e3775(0x1df))/0x5*(-parseInt(_0x5e3775(0x1e1))/0x6)+parseInt(_0x5e3775(0x1ec))/0x7+parseInt(_0x5e3775(0x1e6))/0x8*(parseInt(_0x5e3775(0x1e5))/0x9)+-parseInt(_0x5e3775(0x1eb))/0xa*(-parseInt(_0x5e3775(0x1ee))/0xb);if(_0x25911c===_0x570d27)break;else _0x197171['push'](_0x197171['shift']());}catch(_0x5782bc){_0x197171['push'](_0x197171['shift']());}}}(a13_0x283d,0xe023e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a13_0x193d76(0x1db)]=a13_0x193d76(0x1ef),exports[a13_0x193d76(0x1e4)]='List\x20down\x20the\x20Grid\x20resources.',exports['builder']=function(_0x3944fd){const _0x3558ec=a13_0x193d76,_0x1e81ae={};_0x1e81ae['vvLGQ']=_0x3558ec(0x1da),_0x1e81ae[_0x3558ec(0x1e7)]=_0x3558ec(0x1e9);const _0x271061=_0x1e81ae;return _0x3944fd['commandDir'](_0x271061[_0x3558ec(0x1e2)])[_0x3558ec(0x1d9)]()['usage'](HELP_HEADER_MESSAGE[_0x3558ec(0x1ef)][_0x3558ec(0x1e8)])[_0x3558ec(0x1ed)](HELP_FOOTER_MESSAGE)[_0x3558ec(0x1e0)]()[_0x3558ec(0x1e3)]()['help'](_0x271061[_0x3558ec(0x1e7)]);},exports[a13_0x193d76(0x1dd)]=function(_0x1a1dd9){};
@@ -1 +1 @@
1
- const a14_0x23e22b=a14_0x37c7;function a14_0x3449(){const _0x5774f7=['unauthorised','3298568FlEGwZ','region','Qfgog','../../config/constants','statusCode','help','type','922mFNrgB','existsSync','bvLYt','zFhSI','XLvwD','rDOAZ','GLfqX','epilogue','SCBnx','readFileSync','eWFvr','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','88700LOYVOq','DtPYT','exit','ddcnA','list','got','https://','name','command','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','dqLzP','PgzQR','QrRGK','2335jONWDi','kCKdD','password','Browserstack','LGjks','unknown-error','JqAej','../../utils/utilityMethods','1998528fTlevi','stringify','COwlQ','UnDyL','uuid','grid-profiles','1177EhLxzS','8Kibtlv','3516021axaSpC','/packages/cli/get-all-grid-profiles','builder','TcnJu','table','cddVH','handler','544ItSMgK','bstackAccesskey','HgtDo','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','desc','AUYjI','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','description','server-error','3330250dkofzZ','concurrency','push','boolean','error','13956DyIkPc','forEach','QoprL','WfZFy','username','argv','log','cloud-provider','parse','list-grid-profiles-called','ERROR','grid-profile-name','JDgCp','bstackUsername','allGridProfiles'];a14_0x3449=function(){return _0x5774f7;};return a14_0x3449();}function a14_0x37c7(_0x21aaf9,_0x56d35c){const _0x34495e=a14_0x3449();return a14_0x37c7=function(_0x37c7e4,_0x442836){_0x37c7e4=_0x37c7e4-0x175;let _0x42dcbc=_0x34495e[_0x37c7e4];return _0x42dcbc;},a14_0x37c7(_0x21aaf9,_0x56d35c);}(function(_0x4af195,_0x500f1e){const _0xf235cb=a14_0x37c7,_0x1e6ad4=_0x4af195();while(!![]){try{const _0x70b745=-parseInt(_0xf235cb(0x1c9))/0x1*(-parseInt(_0xf235cb(0x199))/0x2)+parseInt(_0xf235cb(0x1ba))/0x3+parseInt(_0xf235cb(0x192))/0x4+parseInt(_0xf235cb(0x1b2))/0x5*(-parseInt(_0xf235cb(0x182))/0x6)+parseInt(_0xf235cb(0x17d))/0x7+-parseInt(_0xf235cb(0x1c1))/0x8*(-parseInt(_0xf235cb(0x1c2))/0x9)+-parseInt(_0xf235cb(0x1a5))/0xa*(parseInt(_0xf235cb(0x1c0))/0xb);if(_0x70b745===_0x500f1e)break;else _0x1e6ad4['push'](_0x1e6ad4['shift']());}catch(_0x4d9cab){_0x1e6ad4['push'](_0x1e6ad4['shift']());}}}(a14_0x3449,0x8bd11));const fs=require('fs'),got=require(a14_0x23e22b(0x1aa)),{table}=require(a14_0x23e22b(0x1c6)),{v4:uuidv4}=require(a14_0x23e22b(0x1be)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x23e22b(0x195)),{getCredentialsPath,getAuthHeader}=require(a14_0x23e22b(0x1b9)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x23e22b(0x1ad)]=a14_0x23e22b(0x1bf),exports[a14_0x23e22b(0x178)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a14_0x23e22b(0x1c4)]=function(_0x45c292){const _0x10b304=a14_0x23e22b,_0x2522aa={};_0x2522aa['COwlQ']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x2522aa['QoprL']=_0x10b304(0x180),_0x2522aa[_0x10b304(0x19e)]='help';const _0x42eb1d=_0x2522aa,_0x98b567={};_0x98b567[_0x10b304(0x17b)]=_0x42eb1d[_0x10b304(0x1bc)],_0x98b567[_0x10b304(0x198)]=_0x42eb1d[_0x10b304(0x184)];const _0x867f8f={};return _0x867f8f['all-grid-profiles']=_0x98b567,_0x45c292['usage'](HELP_HEADER_MESSAGE[_0x10b304(0x1a9)]['gridProfile'])[_0x10b304(0x1a0)](HELP_FOOTER_MESSAGE)['options'](_0x867f8f)[_0x10b304(0x197)](_0x42eb1d['rDOAZ'])[_0x10b304(0x187)];},exports[a14_0x23e22b(0x1c8)]=async function(_0x36b3bb){const _0x233eec=a14_0x23e22b,_0x4ea1b2={'LGjks':function(_0x580a4f){return _0x580a4f();},'Qfgog':function(_0x4f33c5){return _0x4f33c5();},'QrRGK':_0x233eec(0x1ae),'kCKdD':function(_0x213271,_0x2ee81c,_0x4338f5,_0x40516b,_0x169312,_0x43e05e,_0x41e28a){return _0x213271(_0x2ee81c,_0x4338f5,_0x40516b,_0x169312,_0x43e05e,_0x41e28a);},'UnDyL':_0x233eec(0x18b),'SCBnx':'init-not-called','cOdkP':'GET','JqAej':function(_0x14d976,_0x42d354,_0x2c1703){return _0x14d976(_0x42d354,_0x2c1703);},'ddcnA':function(_0x480086,_0x55b644,_0x2578f8,_0x30f43d,_0x27a484,_0xdd128d,_0x4aaa5c){return _0x480086(_0x55b644,_0x2578f8,_0x30f43d,_0x27a484,_0xdd128d,_0x4aaa5c);},'WfZFy':function(_0xe16ad,_0x14ca07,_0x46eecb){return _0xe16ad(_0x14ca07,_0x46eecb);},'bvLYt':function(_0x4a47a4,_0x7cdddd){return _0x4a47a4!==_0x7cdddd;},'zFhSI':function(_0x20851a,_0x32dcdc){return _0x20851a!==_0x32dcdc;},'PgzQR':function(_0x2e72af,_0x45b277){return _0x2e72af===_0x45b277;},'nANNt':_0x233eec(0x177),'GLfqX':_0x233eec(0x18d),'HgtDo':_0x233eec(0x189),'XLvwD':_0x233eec(0x193),'eWFvr':_0x233eec(0x17e),'JDgCp':function(_0x50b73a,_0x402889){return _0x50b73a(_0x402889);},'dqLzP':function(_0x36bacd,_0x126543){return _0x36bacd===_0x126543;},'iFvoU':_0x233eec(0x17a),'TcnJu':_0x233eec(0x191),'cddVH':function(_0x3fb2ae,_0x4800bb,_0x5d996d,_0x1c0943,_0x4da693,_0x314427,_0x42cd10){return _0x3fb2ae(_0x4800bb,_0x5d996d,_0x1c0943,_0x4da693,_0x314427,_0x42cd10);},'AUYjI':_0x233eec(0x17c),'DtPYT':_0x233eec(0x1b7)};try{global_registry['requestId']=_0x4ea1b2[_0x233eec(0x1b6)](uuidv4);let _0x2335a8=_0x233eec(0x1ab)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x36b3bb[_0x233eec(0x190)]&&(_0x2335a8='https://'+AG_API_URL+_0x233eec(0x1c3));!fs[_0x233eec(0x19a)](_0x4ea1b2['Qfgog'](getCredentialsPath))&&(console[_0x233eec(0x181)](_0x4ea1b2[_0x233eec(0x1b1)]),await _0x4ea1b2[_0x233eec(0x1b3)](sendInstrumentationEvent,_0x36b3bb,_0x4ea1b2[_0x233eec(0x1bd)],messageTypes[_0x233eec(0x18c)],_0x4ea1b2[_0x233eec(0x1a1)],null,_0x36b3bb),process[_0x233eec(0x1a7)](0x1));const _0x36dadf=JSON[_0x233eec(0x18a)](fs[_0x233eec(0x1a2)](_0x4ea1b2[_0x233eec(0x194)](getCredentialsPath))),_0x18ad4e={'method':_0x4ea1b2['cOdkP'],'headers':_0x4ea1b2[_0x233eec(0x1b8)](getAuthHeader,_0x36dadf[_0x233eec(0x1b5)]['username'],_0x36dadf['Browserstack'][_0x233eec(0x1b4)]),'throwHttpErrors':![]};global_registry[_0x233eec(0x18f)]=_0x36dadf[_0x233eec(0x1b5)][_0x233eec(0x186)],global_registry[_0x233eec(0x175)]=_0x36dadf[_0x233eec(0x1b5)]['password'],_0x4ea1b2[_0x233eec(0x1a8)](sendInstrumentationEvent,_0x36b3bb,_0x4ea1b2['UnDyL'],messageTypes['INFO'],null,null,_0x36b3bb);const _0x328247=await _0x4ea1b2[_0x233eec(0x185)](got,_0x2335a8,_0x18ad4e);if(_0x4ea1b2[_0x233eec(0x19b)](_0x328247,null)&&_0x4ea1b2[_0x233eec(0x19c)](_0x328247,undefined)&&_0x4ea1b2[_0x233eec(0x1b0)](_0x328247[_0x233eec(0x196)],0xc8)){const _0x1519fa=JSON[_0x233eec(0x18a)](_0x328247['body']);console['log'](_0x4ea1b2['nANNt']);const _0x4ed271=[];_0x4ed271[_0x233eec(0x17f)]([_0x4ea1b2[_0x233eec(0x19f)],_0x4ea1b2[_0x233eec(0x176)],_0x4ea1b2[_0x233eec(0x19d)],_0x4ea1b2[_0x233eec(0x1a3)]]),_0x1519fa[_0x233eec(0x183)](_0x1af07e=>{const _0x56556f=_0x233eec;_0x4ed271[_0x56556f(0x17f)]([_0x1af07e[_0x56556f(0x1ac)],_0x1af07e['cloudProvider'],_0x1af07e[_0x56556f(0x193)],_0x1af07e[_0x56556f(0x17e)]]);}),console[_0x233eec(0x188)](_0x4ea1b2[_0x233eec(0x18e)](table,_0x4ed271)),process[_0x233eec(0x1a7)](0x0);}_0x4ea1b2[_0x233eec(0x1af)](_0x328247[_0x233eec(0x196)],0x191)&&(console[_0x233eec(0x181)](_0x4ea1b2['iFvoU']),await _0x4ea1b2[_0x233eec(0x1a8)](sendInstrumentationEvent,_0x36b3bb,_0x4ea1b2['UnDyL'],messageTypes[_0x233eec(0x18c)],_0x4ea1b2[_0x233eec(0x1c5)],null,_0x36b3bb),process[_0x233eec(0x1a7)](0x1)),console[_0x233eec(0x181)](_0x233eec(0x1a4)+JSON[_0x233eec(0x1bb)](_0x328247)),await _0x4ea1b2[_0x233eec(0x1c7)](sendInstrumentationEvent,_0x36b3bb,_0x4ea1b2[_0x233eec(0x1bd)],messageTypes[_0x233eec(0x18c)],_0x4ea1b2[_0x233eec(0x179)],_0x328247,_0x36b3bb),process[_0x233eec(0x1a7)](0x1);}catch(_0x2b0db3){console[_0x233eec(0x181)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x2b0db3['stack']),await _0x4ea1b2[_0x233eec(0x1c7)](sendInstrumentationEvent,_0x36b3bb,_0x4ea1b2[_0x233eec(0x1bd)],messageTypes[_0x233eec(0x18c)],_0x4ea1b2[_0x233eec(0x1a6)],_0x2b0db3,_0x36b3bb),process[_0x233eec(0x1a7)](0x1);}};
1
+ const a14_0x23a394=a14_0x5822;function a14_0x5822(_0x1e5169,_0x185b36){const _0x28e391=a14_0x28e3();return a14_0x5822=function(_0x58226a,_0x5d4d7a){_0x58226a=_0x58226a-0xfa;let _0x1210fe=_0x28e391[_0x58226a];return _0x1210fe;},a14_0x5822(_0x1e5169,_0x185b36);}(function(_0x500572,_0x5a713b){const _0x18658f=a14_0x5822,_0x53e1e5=_0x500572();while(!![]){try{const _0x3541a0=parseInt(_0x18658f(0x14a))/0x1*(parseInt(_0x18658f(0x13a))/0x2)+-parseInt(_0x18658f(0x137))/0x3*(-parseInt(_0x18658f(0x13f))/0x4)+parseInt(_0x18658f(0x134))/0x5+-parseInt(_0x18658f(0xfe))/0x6*(parseInt(_0x18658f(0xff))/0x7)+parseInt(_0x18658f(0x13c))/0x8+-parseInt(_0x18658f(0x133))/0x9*(-parseInt(_0x18658f(0x140))/0xa)+parseInt(_0x18658f(0x131))/0xb*(-parseInt(_0x18658f(0x120))/0xc);if(_0x3541a0===_0x5a713b)break;else _0x53e1e5['push'](_0x53e1e5['shift']());}catch(_0x58aa69){_0x53e1e5['push'](_0x53e1e5['shift']());}}}(a14_0x28e3,0xa7922));function a14_0x28e3(){const _0x4a62a6=['162WtiRJX','1996115mJiBeV','bstackUsername','desc','171xbGwhi','KOWBO','stack','1099646DuKhVE','njrnb','6823704vyZIwn','cewQC','ymXHJ','61552fOwJwh','586150zDkVNU','body','Browserstack','/packages/cli/get-all-grid-profiles','bSaIr','table','CTmWt','description','parse','/packages/cli/get-grid-profiles','1RQMnTV','jNZKP','error','ERROR','INFO','bKvMn','requestId','builder','6IQrzpO','6439139ZXOTSv','handler','argv','qRPyZ','zWBtE','cloud-provider','uuid','init-not-called','boolean','forEach','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','concurrency','Nlpcp','../../config/constants','region','log','../../utils/instrumentationUtils','password','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','username','options','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','type','AzfWO','KYhwy','all-grid-profiles','command','TeNRj','https://','gridProfile','GxGjz','push','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','12767688XrVxTK','IUoBU','unknown-error','stringify','lBxsz','fCHpW','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','exit','bstackAccesskey','GET','unauthorised','got','allGridProfiles','omqCz','statusCode','epilogue','usage','22mcIEtN','grid-profile-name'];a14_0x28e3=function(){return _0x4a62a6;};return a14_0x28e3();}const fs=require('fs'),got=require(a14_0x23a394(0x12b)),{table}=require(a14_0x23a394(0x145)),{v4:uuidv4}=require(a14_0x23a394(0x105)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x23a394(0x10c)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x23a394(0x10f));exports[a14_0x23a394(0x119)]='grid-profiles',exports[a14_0x23a394(0x136)]=a14_0x23a394(0x109),exports[a14_0x23a394(0xfd)]=function(_0x42682e){const _0x12b53b=a14_0x23a394,_0x1ae495={};_0x1ae495['njBdV']=_0x12b53b(0x114),_0x1ae495[_0x12b53b(0x138)]=_0x12b53b(0x107),_0x1ae495['IUoBU']='help';const _0x2ba2ae=_0x1ae495,_0x3f7081={};_0x3f7081[_0x12b53b(0x147)]=_0x2ba2ae['njBdV'],_0x3f7081[_0x12b53b(0x115)]=_0x2ba2ae[_0x12b53b(0x138)];const _0x5c63aa={};return _0x5c63aa[_0x12b53b(0x118)]=_0x3f7081,_0x42682e[_0x12b53b(0x130)](HELP_HEADER_MESSAGE['list'][_0x12b53b(0x11c)])[_0x12b53b(0x12f)](HELP_FOOTER_MESSAGE)[_0x12b53b(0x113)](_0x5c63aa)['help'](_0x2ba2ae[_0x12b53b(0x121)])[_0x12b53b(0x101)];},exports[a14_0x23a394(0x100)]=async function(_0x5aee7e){const _0x2b0bbd=a14_0x23a394,_0x53a256={'njrnb':function(_0xdfbae9){return _0xdfbae9();},'zWBtE':_0x2b0bbd(0x11f),'ymXHJ':function(_0x481641,_0x5cea17,_0x2ad124,_0x5d2828,_0x15284b,_0x2a20fc,_0x30c255){return _0x481641(_0x5cea17,_0x2ad124,_0x5d2828,_0x15284b,_0x2a20fc,_0x30c255);},'AzfWO':'list-grid-profiles-called','Nlpcp':_0x2b0bbd(0x106),'CTmWt':function(_0x291fbc){return _0x291fbc();},'omqCz':_0x2b0bbd(0x129),'ihfIU':function(_0x234e5a,_0x3476a3,_0x4ae568){return _0x234e5a(_0x3476a3,_0x4ae568);},'AbGCu':function(_0x4865ae,_0x17f98c,_0x5b9185,_0x3701de,_0x419700,_0x2f9eb5,_0xa81d48){return _0x4865ae(_0x17f98c,_0x5b9185,_0x3701de,_0x419700,_0x2f9eb5,_0xa81d48);},'xLSij':function(_0x3e4f6d,_0x212dde,_0x48e9e3){return _0x3e4f6d(_0x212dde,_0x48e9e3);},'FDKBS':function(_0x316521,_0x3a933c){return _0x316521!==_0x3a933c;},'fCHpW':function(_0x2dd625,_0x20ac59){return _0x2dd625!==_0x20ac59;},'qRPyZ':function(_0x3ca889,_0x3b797a){return _0x3ca889===_0x3b797a;},'hMXil':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','SyyKR':_0x2b0bbd(0x132),'lBxsz':_0x2b0bbd(0x104),'wWgqL':_0x2b0bbd(0x10d),'KYhwy':_0x2b0bbd(0x10a),'bSaIr':function(_0x512a99,_0x516c70){return _0x512a99(_0x516c70);},'cewQC':_0x2b0bbd(0x111),'jNZKP':_0x2b0bbd(0x12a),'bKvMn':function(_0x1a24df,_0x3a6366,_0x68d2a6,_0x3904be,_0x193485,_0x319852,_0x44be5b){return _0x1a24df(_0x3a6366,_0x68d2a6,_0x3904be,_0x193485,_0x319852,_0x44be5b);},'GxGjz':'server-error','TeNRj':_0x2b0bbd(0x122)};try{global_registry[_0x2b0bbd(0xfc)]=_0x53a256[_0x2b0bbd(0x13b)](uuidv4);let _0x4da871=_0x2b0bbd(0x11b)+AG_API_URL+_0x2b0bbd(0x149);_0x5aee7e[_0x2b0bbd(0x12c)]&&(_0x4da871=_0x2b0bbd(0x11b)+AG_API_URL+_0x2b0bbd(0x143));!fs['existsSync'](_0x53a256['njrnb'](getCredentialsPath))&&(console[_0x2b0bbd(0x14c)](_0x53a256[_0x2b0bbd(0x103)]),await _0x53a256[_0x2b0bbd(0x13e)](sendInstrumentationEvent,_0x5aee7e,_0x53a256[_0x2b0bbd(0x116)],messageTypes[_0x2b0bbd(0x14d)],_0x53a256[_0x2b0bbd(0x10b)],null,_0x5aee7e),process['exit'](0x1));const _0x5c3a34=JSON[_0x2b0bbd(0x148)](fs['readFileSync'](_0x53a256[_0x2b0bbd(0x146)](getCredentialsPath))),_0x598c3c={'method':_0x53a256[_0x2b0bbd(0x12d)],'headers':_0x53a256['ihfIU'](getAuthHeader,_0x5c3a34[_0x2b0bbd(0x142)][_0x2b0bbd(0x112)],_0x5c3a34[_0x2b0bbd(0x142)][_0x2b0bbd(0x110)]),'throwHttpErrors':![]};global_registry[_0x2b0bbd(0x135)]=_0x5c3a34[_0x2b0bbd(0x142)]['username'],global_registry[_0x2b0bbd(0x128)]=_0x5c3a34[_0x2b0bbd(0x142)][_0x2b0bbd(0x110)],_0x53a256['AbGCu'](sendInstrumentationEvent,_0x5aee7e,_0x53a256[_0x2b0bbd(0x116)],messageTypes[_0x2b0bbd(0xfa)],null,null,_0x5aee7e);const _0x34e1a7=await _0x53a256['xLSij'](got,_0x4da871,_0x598c3c);if(_0x53a256['FDKBS'](_0x34e1a7,null)&&_0x53a256[_0x2b0bbd(0x125)](_0x34e1a7,undefined)&&_0x53a256[_0x2b0bbd(0x102)](_0x34e1a7['statusCode'],0xc8)){const _0x207c35=JSON[_0x2b0bbd(0x148)](_0x34e1a7[_0x2b0bbd(0x141)]);console[_0x2b0bbd(0x10e)](_0x53a256['hMXil']);const _0x4f87af=[];_0x4f87af[_0x2b0bbd(0x11e)]([_0x53a256['SyyKR'],_0x53a256[_0x2b0bbd(0x124)],_0x53a256['wWgqL'],_0x53a256[_0x2b0bbd(0x117)]]),_0x207c35[_0x2b0bbd(0x108)](_0x59900b=>{const _0x1dac84=_0x2b0bbd;_0x4f87af[_0x1dac84(0x11e)]([_0x59900b['name'],_0x59900b['cloudProvider'],_0x59900b['region'],_0x59900b[_0x1dac84(0x10a)]]);}),console[_0x2b0bbd(0x10e)](_0x53a256[_0x2b0bbd(0x144)](table,_0x4f87af)),process['exit'](0x0);}_0x53a256[_0x2b0bbd(0x102)](_0x34e1a7[_0x2b0bbd(0x12e)],0x191)&&(console[_0x2b0bbd(0x14c)](_0x53a256[_0x2b0bbd(0x13d)]),await _0x53a256['AbGCu'](sendInstrumentationEvent,_0x5aee7e,_0x53a256[_0x2b0bbd(0x116)],messageTypes[_0x2b0bbd(0x14d)],_0x53a256[_0x2b0bbd(0x14b)],null,_0x5aee7e),process[_0x2b0bbd(0x127)](0x1)),console[_0x2b0bbd(0x14c)](_0x2b0bbd(0x126)+JSON[_0x2b0bbd(0x123)](_0x34e1a7)),await _0x53a256[_0x2b0bbd(0xfb)](sendInstrumentationEvent,_0x5aee7e,_0x53a256[_0x2b0bbd(0x116)],messageTypes[_0x2b0bbd(0x14d)],_0x53a256[_0x2b0bbd(0x11d)],_0x34e1a7,_0x5aee7e),process[_0x2b0bbd(0x127)](0x1);}catch(_0x2f83bf){console['error']('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x2f83bf[_0x2b0bbd(0x139)]),await _0x53a256[_0x2b0bbd(0xfb)](sendInstrumentationEvent,_0x5aee7e,_0x53a256['AzfWO'],messageTypes[_0x2b0bbd(0x14d)],_0x53a256[_0x2b0bbd(0x11a)],_0x2f83bf,_0x5aee7e),process[_0x2b0bbd(0x127)](0x1);}};