browserstack-node-sdk 1.50.0 → 1.50.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 (186) 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 +1 -1
  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/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x1b1b58=a9_0x41ff;(function(_0x40e3e6,_0x41306b){const _0x1b59c2=a9_0x41ff,_0x128e96=_0x40e3e6();while(!![]){try{const _0x48b5ac=parseInt(_0x1b59c2(0x2c9))/0x1*(parseInt(_0x1b59c2(0x2c0))/0x2)+-parseInt(_0x1b59c2(0x2dd))/0x3+parseInt(_0x1b59c2(0x24f))/0x4+-parseInt(_0x1b59c2(0x25a))/0x5*(-parseInt(_0x1b59c2(0x267))/0x6)+parseInt(_0x1b59c2(0x2b0))/0x7*(-parseInt(_0x1b59c2(0x2ca))/0x8)+-parseInt(_0x1b59c2(0x36e))/0x9*(-parseInt(_0x1b59c2(0x340))/0xa)+-parseInt(_0x1b59c2(0x355))/0xb;if(_0x48b5ac===_0x41306b)break;else _0x128e96['push'](_0x128e96['shift']());}catch(_0x248982){_0x128e96['push'](_0x128e96['shift']());}}}(a9_0x5f3f,0x8d0f2));const fs=require('fs'),ws=require('ws'),path=require(a9_0x1b1b58(0x2eb)),yaml=require(a9_0x1b1b58(0x2fa)),ReconnectingWebSocket=require(a9_0x1b1b58(0x2d7)),got=require('got'),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x1b1b58(0x1ee)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x1b1b58(0x362)),{getCloudProviderObject}=require(a9_0x1b1b58(0x391)),{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('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x1b1b58(0x252)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a9_0x1b1b58(0x240));function a9_0x41ff(_0x5ab45d,_0x56ab4d){const _0x5f3f48=a9_0x5f3f();return a9_0x41ff=function(_0x41ff2b,_0x2f7658){_0x41ff2b=_0x41ff2b-0x1ed;let _0x526702=_0x5f3f48[_0x41ff2b];return _0x526702;},a9_0x41ff(_0x5ab45d,_0x56ab4d);}function a9_0x5f3f(){const _0x4d9bb5=['lqjpa','LKIzE','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','Huzxb','private-grid','Added\x20Turboscale\x20Uploader\x20deployment.','eHrAx','\x20are\x20not\x20present\x20in\x20VPC:\x20','620048JSkmgK','browserstack-secret.yaml','PjeRD','../../utils/gridComponents','Spawning\x20the\x20grid\x20','gMxfl','IhyVx','CjSfM','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','wSyOR','YvJkc','5281895vAMgrW','qdVfx','GZEKi','ALvYB','FWOgE','wBMRE','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','LejUu','qSoTU','hccoO','AzKmN','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','length','6dNSuFJ','pWPQJ','xrqGF','wpPXP','../..','newCluster','eGFzx','gurtC','mapdz','kafkaPassword','utf-8','PEpbY','statusCode','NSrVD','Skip\x20insecure\x20cert\x20verification.','LNUnD','alreadyPresent','vjFtQ','KdDwG','Spawning\x20grid\x20on\x20to\x20the\x20cluster','uploaderVersion','join','iiurH','get-grid-url-null-response','HAoJy','vsCqj','gHeHc','Created\x20Hub\x20HA\x20resources','Xamga','OGJfE','CApIN','delay','TTsQP','gridName','2|15|6|14|12|4|11|5|1|13|3|9|7|8|10|0','KLSPz','wrQhS','twjWb','JEgpD','desc','RlDFs','fGwAl','create-grid-called','string','browserVersion','Enabling\x20Hub\x20HA\x20flow','THDoD','create-grid-checks-invalid-profile','XTcMr','LahOm','Adding\x20Secret\x20Mapping','GET','gridProfiles','zDZPU','pre-spawned-invalid-vpc','NRbih','iJtsu','dFhyn','Cluster:\x20','pwdeY','hubVersion','UEVTr','command','redisPassword','DWIfP','addListeners','wIRVn','iQyYa','instanceType','clusterAutoUpgrade','XfuOP','epilogue','warn','14pQVFWk','nuCmF','mUylG','stringify','EWFpK','name','SiAOq','spec','OdPDt','pre-spawned-invalid-subnets','PRKuM','zgQjf','gWLdt','serviceAccountName','\x20in\x20existing\x20cluster\x20\x27','mcXFU','1118342ZCTGEu','glndF','qVjlq','managedBy','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','zgsDA','uKWsQ','KNOAC','1hWCsSk','3227032SFvIVK','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','bstackUsername','username','hub-ha-deployments-failed','hmRCM','getResourceClientId','boRSD','azurefile-csi-premium','DWPWc','cluster-name','DWXrJ','premium-rwo','reconnecting-websocket','bkfKP','LKYnw','CQmxu','stack','templates','327039exkMdn','cloud-provider','kgLDZ','turboscale-uploader.yaml','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','DlUiZ','ingress-nginx-controller','createdBy','kLjkh','oOupl','parse','Dlixe','route53','description','path','Creating\x20Hub\x20HA\x20resources','usage','Jhjps','uKugf','vSsBz','HyBQj','FKUds','qZvyB','default','ERROR','Deleting\x20the\x20CloudFormation\x20Stacks','bitnami-kafka.yaml','hJaxy','jrGfl','js-yaml','create-grid-checks-grid-already-exists','subnets','abfqJ','Added\x20Kafka\x20deployment.','HLFpM','FkHHI','updateClusterAlreadyPresent','Grid\x20profile\x20fetched\x20from\x20backend','qnqTa','init-not-called','btGmb','EzznY','zUuvE','error','boolean','PnHWX','/packages/cli/create-grid-checks','eSXPe','user','sendEventToBackend','minNodes','CLI_RUN_FINISHED','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','enableHubHa','SLkFE','prespawned-cluster-args-not-passed','concurrency','MRPgH','isClusterPresent','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','template','zXxbl','XFchN','SOiPz','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','TclJc','toLowerCase','NnLKA','turboscale-managed-identity-','IvQJj','browserstack','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','BvkxH','GCBTy','qAyhO','grid-profile','securityGroups','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','Ceeew','WQSKx','jHbai','wPNwQ','WaGnB','voAgi','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','pzBkq','https://','BMeuA','PGCLz','cloudProvider','Added\x20Redis\x20deployment.','INFO','/packages/cli/get-grid-url?gridIdentifier=','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Found\x20VPC:\x20','XaCWN','\x20using\x20\x27','yXyiL','92980udhFDW','yTCJA','message','qYtJc','readNamespacedService','ymamh','ndmQO','HbbSZ','Adding\x20Redis\x20deployment...','region','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','lJbvx','BobXV','Cluster\x20','heEmY','TgSPE','info','BcHVh','CPXYZ','XSQxW','getGridHostname','12968109HZpPOQ','Create\x20a\x20new\x20Automation\x20grid.','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','zTuDL','loadAll','fKlGp','aSZWf','tIcYg','YaKwS','requestId','options','clusterAutoupgrade','xJlDD','../../utils/utilityMethods','JdHeL','Grid\x20spawned\x20on\x20the\x20cluster','DNGht','CZaIg','WvXHT','VVuYj','VdqLK','connectionTimeout','LOG','clusterName','dolYb','873MUDwbi','JsiZI','VZDfp','ZGiPF','TuGSg','setupNewCluster','2|6|4|5|3|0|8|1|7','FCCYu','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','isNewAWSCluster','fQIfr','Create\x20a\x20private/public\x20grid.','WebSocket','grid-spawning-failed','body','Adding\x20Websocket\x20listeners','gEZOf','maxNodes','HHXNm','Grid\x20can\x20be\x20accessed\x20at:\x20','1|4|2|3|0','Adding\x20Kafka\x20deployment...','nyLiU','aWjIO','gGCtx','createOtherResources','DYKPu','bitnami-redis.yaml','Adding\x20Turboscale\x20Uploader\x20deployment...','XoEYt','type','KYFXU','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Htqxi','../../cloudproviders/utils','argv','isSubnetsValid','laoGC','zPLaQ','ingress-nginx','kTYeB','ZPDFz','XnCBA','hubHaNameSpace','<UsernamePlaceholder>','LdBKF','taUJd','OKazF','isPrivateGrid','sfnvc','GHoJT','bNVWr','labels','../../utils/webSocketUtils','fKmoP','Flag\x20to\x20enable\x20Hub\x20HA','kCmpr','metadata','DKRBh','QGIYP','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.','efs-csi','FqQnm','apKYx','createNamespace','sUlQn','XHMlK','Found\x20Subnets:\x20','pre-spawned-subnets-not-selected','CLI_RUN_STARTED','glSlY','kafkaUploader','GHgLa','HtLVB','UnPCN','gridProfileId','cZOaj','gridProfile','xzDrH','ZiNax','OUTFb','jpeRe','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','create','hub-ha','TSpTJ','isVPCPresent','eAslK','GaSIV','ZOvAV','pRvFT','fxgdH','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','XaZJC','sGhRb','UuOcF','guYeA','QkfJw','awDSn','create-grid-checks-auth-failed','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','tOUba','https','s3bucket','toVmV','Namespace\x20Created','defaultGridProfile','password','split','clusterRegion','Creating\x20namespace','EbbXI','http','includes','exit','LrgPT','Epyd5nXbRK','dQVpf','jaYeO','BeMmH','Subnets:\x20','ONVHi','Cluster\x20created\x20successfully','replace','skip-tls-cert-verify','sendResourceDataToHST','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','help','deleteCluster','oRVBW','Browserstack','ZnApF','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','privateGrid','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','../../utils/instrumentationUtils','WRTBf','WNqKB','lUmQD','non-aws-azure-cluster','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','readFileAsync'];a9_0x5f3f=function(){return _0x4d9bb5;};return a9_0x5f3f();}exports[a9_0x1b1b58(0x2a5)]='grid',exports[a9_0x1b1b58(0x28e)]=a9_0x1b1b58(0x356),exports['builder']=function(_0x51770e){const _0x2a023a=a9_0x1b1b58,_0x469eb0={};_0x469eb0['gurtC']=_0x2a023a(0x215),_0x469eb0[_0x2a023a(0x2da)]=_0x2a023a(0x292),_0x469eb0[_0x2a023a(0x28f)]=_0x2a023a(0x21d),_0x469eb0[_0x2a023a(0x272)]=_0x2a023a(0x318),_0x469eb0[_0x2a023a(0x2bc)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x469eb0[_0x2a023a(0x230)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x469eb0[_0x2a023a(0x258)]=_0x2a023a(0x37a),_0x469eb0['ZOvAV']=_0x2a023a(0x275),_0x469eb0[_0x2a023a(0x2ee)]=_0x2a023a(0x309),_0x469eb0['aYpvL']=_0x2a023a(0x1f0),_0x469eb0['boRSD']=_0x2a023a(0x249),_0x469eb0[_0x2a023a(0x351)]='help';const _0x26d344=_0x469eb0,_0x3e9c25={};_0x3e9c25[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x26e)],_0x3e9c25[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2da)];const _0x3a1d13={};_0x3a1d13[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x28f)],_0x3a1d13[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2da)];const _0x5e2edc={};_0x5e2edc[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x272)],_0x5e2edc[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2da)];const _0x3027ce={};_0x3027ce[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x2bc)],_0x3027ce[_0x2a023a(0x38d)]=_0x26d344['CQmxu'];const _0x33117={};_0x33117[_0x2a023a(0x2ea)]=_0x26d344['BeMmH'],_0x33117[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2da)];const _0x22b272={};_0x22b272[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x258)],_0x22b272[_0x2a023a(0x38d)]=_0x26d344['CQmxu'];const _0x142674={};_0x142674[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x212)],_0x142674[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2ee)],_0x142674['default']=![];const _0x224b90={};_0x224b90[_0x2a023a(0x2ea)]=_0x26d344['aYpvL'],_0x224b90[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2ee)],_0x224b90[_0x2a023a(0x2f4)]=![];const _0x2cb344={};_0x2cb344[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x2d1)],_0x2cb344[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2ee)],_0x2cb344['default']=![];const _0x18a06e={};return _0x18a06e['grid-name']=_0x3e9c25,_0x18a06e[_0x2a023a(0x328)]=_0x3a1d13,_0x18a06e[_0x2a023a(0x2d4)]=_0x5e2edc,_0x18a06e[_0x2a023a(0x2de)]=_0x3027ce,_0x18a06e['region']=_0x33117,_0x18a06e['private-grid']=_0x22b272,_0x18a06e[_0x2a023a(0x235)]=_0x142674,_0x18a06e[_0x2a023a(0x20d)]=_0x224b90,_0x18a06e['cluster-autoupgrade']=_0x2cb344,_0x51770e[_0x2a023a(0x2ed)](HELP_HEADER_MESSAGE[_0x2a023a(0x20c)])[_0x2a023a(0x2ae)](HELP_FOOTER_MESSAGE)[_0x2a023a(0x35f)](_0x18a06e)['help'](_0x26d344[_0x2a023a(0x351)])[_0x2a023a(0x392)];},exports['handler']=async function(_0x17916f){const _0xe49f0c=a9_0x1b1b58,_0x4f26e5={'Huzxb':_0xe49f0c(0x383),'KYFXU':_0xe49f0c(0x294),'LKIzE':'UkRNzNYCBU','TgSPE':_0xe49f0c(0x22d),'LejUu':_0xe49f0c(0x323),'ZnApF':_0xe49f0c(0x308),'FEImw':_0xe49f0c(0x289),'zvRxm':function(_0x4be510,_0x3b62cb){return _0x4be510(_0x3b62cb);},'WRTBf':function(_0x3cb39c,_0x596e0e){return _0x3cb39c!==_0x596e0e;},'cZOaj':function(_0x172927,_0x1a1845,_0x1d79e0,_0x15b8fe,_0x4b0aa7,_0x46f943,_0x24ccc6,_0x47ac04,_0x18ccac,_0x31e5e6,_0x50e152,_0x34bdf2,_0x2007aa){return _0x172927(_0x1a1845,_0x1d79e0,_0x15b8fe,_0x4b0aa7,_0x46f943,_0x24ccc6,_0x47ac04,_0x18ccac,_0x31e5e6,_0x50e152,_0x34bdf2,_0x2007aa);},'HAoJy':_0xe49f0c(0x229),'WQSKx':function(_0x178c4b,_0x2dde15){return _0x178c4b(_0x2dde15);},'TGkHI':'1|0|2|8|6|4|5|3|7','EzznY':'CLI\x20run\x20started','NRbih':'true','GCBTy':_0xe49f0c(0x2f4),'WaGnB':_0xe49f0c(0x2d2),'jpeRe':_0xe49f0c(0x20b),'fGwAl':function(_0x313d94,_0x282b3e){return _0x313d94(_0x282b3e);},'Lsikp':_0xe49f0c(0x2d6),'wIRVn':_0xe49f0c(0x215),'NSrVD':_0xe49f0c(0x292),'VdqLK':_0xe49f0c(0x21d),'bJgkJ':_0xe49f0c(0x318),'FLmLy':_0xe49f0c(0x33b),'bkfKP':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','VZDfp':_0xe49f0c(0x37a),'gMxfl':_0xe49f0c(0x275),'zUuvE':_0xe49f0c(0x309),'ymSNt':_0xe49f0c(0x1f0),'XnCBA':'Flag\x20to\x20enable\x20cluster\x20auto-upgrade','Ceeew':'help','zgsDA':_0xe49f0c(0x2af),'qdVfx':function(_0x211a40,_0x72c403){return _0x211a40===_0x72c403;},'HtLVB':_0xe49f0c(0x21f),'PRKuM':function(_0x5bb42e){return _0x5bb42e();},'WvXHT':function(_0x1204f6){return _0x1204f6();},'kCmpr':function(_0xfac1c7,_0x2bfc49){return _0xfac1c7===_0x2bfc49;},'iQyYa':'OEQBX','gGCtx':_0xe49f0c(0x26f),'aSZWf':_0xe49f0c(0x324),'eGFzx':function(_0x51fbe5,_0x2f37f5,_0x34e9d3,_0x322446,_0x393bf3,_0x2db520,_0x249c7b){return _0x51fbe5(_0x2f37f5,_0x34e9d3,_0x322446,_0x393bf3,_0x2db520,_0x249c7b);},'ONVHi':_0xe49f0c(0x291),'ZHFcF':_0xe49f0c(0x304),'oOupl':function(_0x1b3533){return _0x1b3533();},'hJaxy':_0xe49f0c(0x39b),'BvkxH':'<PasswordPlaceholder>','uKWsQ':_0xe49f0c(0x37e),'EWFpK':function(_0x5ab9e2,_0x5484e7){return _0x5ab9e2===_0x5484e7;},'twjWb':_0xe49f0c(0x201),'dQVpf':function(_0x2fa268,_0x199b67){return _0x2fa268!==_0x199b67;},'OdPDt':_0xe49f0c(0x347),'ALvYB':_0xe49f0c(0x260),'FWOgE':function(_0x57a475,_0x54cc53,_0x1387b0,_0x3aca94,_0x188900,_0xf7cbe1,_0x1ed11a,_0x596e81){return _0x57a475(_0x54cc53,_0x1387b0,_0x3aca94,_0x188900,_0xf7cbe1,_0x1ed11a,_0x596e81);},'FalnZ':_0xe49f0c(0x314),'yTCJA':_0xe49f0c(0x365),'zPLaQ':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','vSsBz':function(_0x5c3be5,_0x51ee70,_0x2d2216,_0x2549bd,_0x564c26,_0x2559bc,_0x158426,_0x5b6ece){return _0x5c3be5(_0x51ee70,_0x2d2216,_0x2549bd,_0x564c26,_0x2559bc,_0x158426,_0x5b6ece);},'pRvFT':_0xe49f0c(0x244),'wpPXP':'DRMok','ymamh':_0xe49f0c(0x322),'XHMlK':function(_0x101a8c,_0x3f9063,_0x4b1b8d,_0x14890c,_0x28c0f7,_0x55e741,_0x3f90d0){return _0x101a8c(_0x3f9063,_0x4b1b8d,_0x14890c,_0x28c0f7,_0x55e741,_0x3f90d0);},'mcXFU':'EQZdP','hmRCM':_0xe49f0c(0x22c),'glSlY':'MXFxU','PQtqB':_0xe49f0c(0x2f9),'GZEKi':_0xe49f0c(0x29a),'xzDrH':function(_0x100309,_0x17bcfe,_0xda1ca6){return _0x100309(_0x17bcfe,_0xda1ca6);},'btGmb':function(_0x577560,_0x4f9795){return _0x577560!==_0x4f9795;},'LKYnw':_0xe49f0c(0x2e2),'LNUnD':_0xe49f0c(0x330),'GHoJT':'jOsqB','AzKmN':_0xe49f0c(0x31c),'xMLDS':function(_0x5b9c54,_0x580e72,_0x1c6d70){return _0x5b9c54(_0x580e72,_0x1c6d70);},'IhyVx':function(_0x230f36,_0x14d9eb){return _0x230f36===_0x14d9eb;},'OKazF':function(_0x330604,_0x4f1e56){return _0x330604===_0x4f1e56;},'THDoD':_0xe49f0c(0x210),'XSQxW':_0xe49f0c(0x311),'CjSfM':'create-grid-checks-null-response','bCYBG':function(_0x507ad9,_0x2de782){return _0x507ad9===_0x2de782;},'qnqTa':function(_0x120c7f,_0x173051){return _0x120c7f!==_0x173051;},'EbbXI':'HWcro','HLFpM':_0xe49f0c(0x2e8),'NXEoU':_0xe49f0c(0x31d),'pWPQJ':function(_0x4db6b0,_0x3aa127,_0x15f086,_0x3492ad,_0x4fd965,_0x26eb1a,_0x27a362,_0x59e616){return _0x4db6b0(_0x3aa127,_0x15f086,_0x3492ad,_0x4fd965,_0x26eb1a,_0x27a362,_0x59e616);},'KdDwG':_0xe49f0c(0x21c),'UuOcF':function(_0x2f7d8a,_0x5cf73c){return _0x2f7d8a!==_0x5cf73c;},'oRVBW':'oqyXk','aWjIO':_0xe49f0c(0x34b),'tIcYg':function(_0x56162c,_0x2f3f64,_0x44608d,_0x1e8fe5,_0x972005,_0x247d9b,_0x2d59e0,_0x29f4a4){return _0x56162c(_0x2f3f64,_0x44608d,_0x1e8fe5,_0x972005,_0x247d9b,_0x2d59e0,_0x29f4a4);},'Edrxs':'create-grid-checks-non-200','lUmQD':_0xe49f0c(0x302),'CApIN':function(_0x512a61,_0x159062){return _0x512a61!==_0x159062;},'toVmV':_0xe49f0c(0x278),'XFchN':_0xe49f0c(0x2fb),'wBMRE':function(_0x4639fa,_0x4cf8bd){return _0x4639fa!==_0x4cf8bd;},'sUlQn':_0xe49f0c(0x283),'ZGiPF':_0xe49f0c(0x346),'QGIYP':'1|0|2|3|4','CPXYZ':function(_0x11b646,_0x293b00){return _0x11b646===_0x293b00;},'fQIfr':function(_0x3b8652,_0x3f1cd7){return _0x3b8652===_0x3f1cd7;},'LdBKF':_0xe49f0c(0x30c),'GYZiA':'xLUCk','wrQhS':_0xe49f0c(0x332),'XaZJC':function(_0x3d0a28,_0x345f7b,_0x1fa9b6,_0x1802b7,_0x38017c,_0x503d27,_0x53759c,_0x2db5d7){return _0x3d0a28(_0x345f7b,_0x1fa9b6,_0x1802b7,_0x38017c,_0x503d27,_0x53759c,_0x2db5d7);},'Htqxi':_0xe49f0c(0x296),'TTsQP':function(_0x521a9e,_0x4a7d31){return _0x521a9e===_0x4a7d31;},'KNOAC':'EEuaj','guYeA':_0xe49f0c(0x28a),'YaKwS':function(_0x2deda0,_0x2e700b){return _0x2deda0!==_0x2e700b;},'iJtsu':function(_0x53f79c,_0x458375){return _0x53f79c!==_0x458375;},'TSpTJ':_0xe49f0c(0x2c1),'ePxwB':function(_0x42259b,_0xfdd05e,_0x28d1f3,_0x26ba78,_0xcfa238,_0x4a375f,_0x1c3ead,_0x5bd5b6,_0x55f6dc,_0x8f1427,_0x1f8ada,_0x78a597,_0x1afa91){return _0x42259b(_0xfdd05e,_0x28d1f3,_0x26ba78,_0xcfa238,_0x4a375f,_0x1c3ead,_0x5bd5b6,_0x55f6dc,_0x8f1427,_0x1f8ada,_0x78a597,_0x1afa91);},'ZiNax':_0xe49f0c(0x1f3),'CGoMr':_0xe49f0c(0x397),'nyLiU':function(_0x5bb832,_0x4cf990){return _0x5bb832===_0x4cf990;},'gEZOf':_0xe49f0c(0x247),'apKYx':_0xe49f0c(0x34c),'pwdeY':function(_0x269a4a,_0x53dbbe){return _0x269a4a===_0x53dbbe;},'DWIfP':'GhEot','kLjkh':_0xe49f0c(0x2d5),'qSoTU':function(_0x49a211,_0x20c4a4,_0x4718f8,_0x2dfcd9,_0x347e32,_0x1318ac,_0x1f8bbc,_0x36a2ea,_0x4c2a30,_0x11aa36,_0x3d3e48,_0x2ba0bf,_0x409bd5){return _0x49a211(_0x20c4a4,_0x4718f8,_0x2dfcd9,_0x347e32,_0x1318ac,_0x1f8bbc,_0x36a2ea,_0x4c2a30,_0x11aa36,_0x3d3e48,_0x2ba0bf,_0x409bd5);},'abfqJ':function(_0x7a0f16,_0xbbbf8e){return _0x7a0f16!==_0xbbbf8e;},'tOUba':'Fpgve','XoEYt':function(_0x5d33ed,_0x17daa3){return _0x5d33ed(_0x17daa3);},'zDZPU':function(_0x36d858,_0x1d67b9){return _0x36d858===_0x1d67b9;},'lcmXo':_0xe49f0c(0x363),'qVjlq':_0xe49f0c(0x374),'nuCmF':function(_0x4a5c3d,_0x1fe38b,_0x16f0fc,_0x34082a,_0x3a7447,_0x58ef12,_0x3020d8){return _0x4a5c3d(_0x1fe38b,_0x16f0fc,_0x34082a,_0x3a7447,_0x58ef12,_0x3020d8);},'zWodw':function(_0x5a34fa,_0xeef227){return _0x5a34fa!==_0xeef227;},'xrqGF':'BjgEU','FKUds':_0xe49f0c(0x211),'oFHBX':function(_0x4e43fa,_0x13dce2){return _0x4e43fa!==_0x13dce2;},'VVuYj':_0xe49f0c(0x209),'CZaIg':_0xe49f0c(0x284),'UnPCN':_0xe49f0c(0x32d),'zXxbl':'esVJs','fxgdH':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','kgLDZ':function(_0x390f3d,_0x2300c2){return _0x390f3d!=_0x2300c2;},'dFhyn':function(_0x4038cc,_0x144ac2){return _0x4038cc!==_0x144ac2;},'xJlDD':function(_0x2ca690,_0x4af954){return _0x2ca690>_0x4af954;},'LahOm':function(_0x103b79,_0x44fc8a){return _0x103b79===_0x44fc8a;},'hccoO':_0xe49f0c(0x257),'UsAoN':_0xe49f0c(0x1fd),'zTuDL':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','TSyKC':function(_0x37c807,_0xe3d1a9,_0x37c192,_0x3c1448,_0x475cf5,_0x2f418e,_0x67c146,_0x3fbbc2){return _0x37c807(_0xe3d1a9,_0x37c192,_0x3c1448,_0x475cf5,_0x2f418e,_0x67c146,_0x3fbbc2);},'TclJc':_0xe49f0c(0x29d),'JEgpD':function(_0x2d88f3,_0xcafc7a){return _0x2d88f3===_0xcafc7a;},'fKlGp':function(_0x160edc,_0x101257,_0x52531d,_0x30ddef,_0x1188ee,_0x4f46d0,_0x3f8dd2,_0x10480d){return _0x160edc(_0x101257,_0x52531d,_0x30ddef,_0x1188ee,_0x4f46d0,_0x3f8dd2,_0x10480d);},'awDSn':_0xe49f0c(0x2b9),'yXyiL':'2|1|4|0|3','QkfJw':_0xe49f0c(0x233),'WNqKB':_0xe49f0c(0x1f5),'gxxGr':function(_0x15d167,_0x1a39da){return _0x15d167===_0x1a39da;},'wPNwQ':function(_0x24c9ad,_0x8192d7,_0xd55e3d){return _0x24c9ad(_0x8192d7,_0xd55e3d);},'PPqsH':function(_0x9ee69e,_0x207490){return _0x9ee69e===_0x207490;},'PnHWX':function(_0x51e2e3,_0x33d354){return _0x51e2e3===_0x33d354;},'YvJkc':function(_0x32a231,_0x1d0e16){return _0x32a231===_0x1d0e16;},'uKugf':_0xe49f0c(0x2ec),'TWnqg':_0xe49f0c(0x299),'taUJd':_0xe49f0c(0x26b),'ZPDFz':_0xe49f0c(0x2dc),'HHXNm':'hubharesources','HyBQj':_0xe49f0c(0x250),'FCCYu':_0xe49f0c(0x271),'KqVcz':function(_0x372667,_0x35b0e5){return _0x372667(_0x35b0e5);},'iiurH':function(_0xaf8fce,_0xefb7f5){return _0xaf8fce(_0xefb7f5);},'odpov':function(_0x2e2150,_0x222b9d){return _0x2e2150(_0x222b9d);},'NnLKA':function(_0x555002,_0x4516a2,_0x46295b){return _0x555002(_0x4516a2,_0x46295b);},'BMeuA':'Added\x20Secret\x20Mapping','mUylG':_0xe49f0c(0x1f6),'PEdAc':function(_0x490740,_0x525a44){return _0x490740===_0x525a44;},'vsCqj':function(_0x1b36e7,_0x33c4a4){return _0x1b36e7===_0x33c4a4;},'yNPtu':_0xe49f0c(0x348),'DWPWc':_0xe49f0c(0x38a),'xwKqO':_0xe49f0c(0x338),'MRPgH':_0xe49f0c(0x384),'qZvyB':_0xe49f0c(0x2f7),'ioBqP':_0xe49f0c(0x2fe),'FlSdN':_0xe49f0c(0x38b),'zkLGL':_0xe49f0c(0x2e0),'DYKPu':function(_0x41590d,_0x1da08b){return _0x41590d===_0x1da08b;},'hfFUM':_0xe49f0c(0x24c),'PjeRD':_0xe49f0c(0x282),'hkaPS':'Hub\x20HA\x20setup\x20completed\x20successfully.','lgAJL':'0|1|3|2|4','gHeHc':_0xe49f0c(0x2ce),'qYtJc':function(_0x388162,_0x3a82fd){return _0x388162(_0x3a82fd);},'XTcMr':_0xe49f0c(0x227),'pzBkq':_0xe49f0c(0x23b),'XfuOP':_0xe49f0c(0x222),'FkHHI':'Namespace\x20created','dolYb':_0xe49f0c(0x27a),'TuGSg':'Spawning\x20Grid\x20on\x20the\x20Cluster','JsiZI':function(_0x565d67,_0x181485,_0x32e28f,_0x543e19,_0x20d881,_0x2d6674,_0x7d0e0b,_0x3581b0,_0x4bfbf4,_0x2fcd16,_0x37dbbc){return _0x565d67(_0x181485,_0x32e28f,_0x543e19,_0x20d881,_0x2d6674,_0x7d0e0b,_0x3581b0,_0x4bfbf4,_0x2fcd16,_0x37dbbc);},'rdWXj':_0xe49f0c(0x364),'UEVTr':_0xe49f0c(0x2e1),'ATNDZ':function(_0x1d662f,_0x3851f6,_0x40aff,_0x190d94,_0x2eac71){return _0x1d662f(_0x3851f6,_0x40aff,_0x190d94,_0x2eac71);},'sGhRb':function(_0xa43a1f,_0x257143,_0x2d9128){return _0xa43a1f(_0x257143,_0x2d9128);},'XaCWN':'private-ingress-nginx-controller','PGCLz':_0xe49f0c(0x2e3),'SiAOq':_0xe49f0c(0x396),'bNVWr':function(_0x70d637,_0xa0b08d,_0x588a1b){return _0x70d637(_0xa0b08d,_0x588a1b);},'wQUxi':function(_0x50317f,_0xd6a95a){return _0x50317f===_0xd6a95a;},'zgQjf':function(_0x3b5780,_0x264bf0){return _0x3b5780===_0x264bf0;},'LihMX':_0xe49f0c(0x265),'RUxvB':function(_0x46557f,_0x43d447,_0x58bd51,_0x946c48,_0x3f4ac1,_0x11fd9a,_0x358e98,_0x4ab00c){return _0x46557f(_0x43d447,_0x58bd51,_0x946c48,_0x3f4ac1,_0x11fd9a,_0x358e98,_0x4ab00c);},'FqQnm':_0xe49f0c(0x27e),'jaYeO':_0xe49f0c(0x237),'SLkFE':'get-grid-url-auth-failed','LWpoN':function(_0x31c17f,_0x5b3a81){return _0x31c17f!==_0x5b3a81;},'fKmoP':function(_0x2aa951,_0x2294c9,_0x238a74,_0x5ba6d7,_0x138293,_0x116325,_0x1569dc,_0x572857){return _0x2aa951(_0x2294c9,_0x238a74,_0x5ba6d7,_0x138293,_0x116325,_0x1569dc,_0x572857);},'eHrAx':'get-grid-url-non-200','sfnvc':_0xe49f0c(0x2f6),'qAyhO':function(_0x52c7f7,_0x1f33b1,_0x2ffc9d,_0xfd4acb,_0x1cd65b,_0x5568b2){return _0x52c7f7(_0x1f33b1,_0x2ffc9d,_0xfd4acb,_0x1cd65b,_0x5568b2);},'laoGC':function(_0xa1325c,_0x1bc54d,_0x267007,_0x5075f5,_0x453d8d,_0x1ab44a,_0x5585b0){return _0xa1325c(_0x1bc54d,_0x267007,_0x5075f5,_0x453d8d,_0x1ab44a,_0x5585b0);},'heEmY':_0xe49f0c(0x37c)};let _0x2904c8=![],_0x5a5dd1=![],_0xd25d67,_0x1e89ff,_0x537733,_0x5a0358,_0x496265,_0x379deb,_0x5216d5,_0x1233be,_0x4fb761,_0x21510f,_0x3c2bd6,_0x5a17a7,_0x31e7cd,_0x1a5b4e,_0x59d056=0x1,_0x47921b=0xe;try{global_registry[_0xe49f0c(0x35e)]=_0x4f26e5[_0xe49f0c(0x2ba)](uuidv4),global_registry[_0xe49f0c(0x39f)]=![];if(!fs['existsSync'](_0x4f26e5[_0xe49f0c(0x367)](getCredentialsPath))){if(_0x4f26e5[_0xe49f0c(0x1f1)](_0x4f26e5[_0xe49f0c(0x2aa)],_0x4f26e5[_0xe49f0c(0x387)])){const _0x5e9d1f=_0x4f26e5[_0xe49f0c(0x24a)]['split']('|');let _0x3e9047=0x0;while(!![]){switch(_0x5e9d1f[_0x3e9047++]){case'0':_0x440a6a['enableHubHa']=!![];continue;case'1':_0x4ab91f[_0xe49f0c(0x350)](_0x4f26e5['KYFXU']);continue;case'2':_0x5799ea[_0xe49f0c(0x2a6)]=_0x4f26e5['LKIzE'];continue;case'3':_0xb45555['kafkaPassword']=_0x4f26e5[_0xe49f0c(0x34f)];continue;case'4':_0x569606[_0xe49f0c(0x39a)]=_0x4f26e5[_0xe49f0c(0x261)];continue;}break;}}else console[_0xe49f0c(0x308)](_0x4f26e5[_0xe49f0c(0x35b)]),await _0x4f26e5['eGFzx'](sendInstrumentationEvent,_0x17916f,_0x4f26e5[_0xe49f0c(0x232)],messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5['ZHFcF'],null,_0x17916f),process['exit'](0x1);}await _0x4f26e5[_0xe49f0c(0x26d)](sendInstrumentationEvent,_0x17916f,_0x4f26e5[_0xe49f0c(0x232)],messageTypes[_0xe49f0c(0x339)],null,null,_0x17916f);const _0x408930=JSON[_0xe49f0c(0x2e7)](fs['readFileSync'](_0x4f26e5[_0xe49f0c(0x2e6)](getCredentialsPath)));global_registry[_0xe49f0c(0x2cc)]=_0x408930[_0xe49f0c(0x23b)][_0xe49f0c(0x2cd)],global_registry['bstackAccesskey']=_0x408930[_0xe49f0c(0x23b)][_0xe49f0c(0x224)];const _0x5b3ff6=WS_ENDPOINT[_0xe49f0c(0x234)](_0x4f26e5[_0xe49f0c(0x2f8)],_0x408930[_0xe49f0c(0x23b)][_0xe49f0c(0x2cd)])['replace'](_0x4f26e5[_0xe49f0c(0x325)],_0x408930['Browserstack']['password']),_0x263b69={};_0x263b69[_0xe49f0c(0x37b)]=ws,_0x263b69[_0xe49f0c(0x36a)]=0x36ee80,_0x5a17a7=new ReconnectingWebSocket(_0x5b3ff6,[],_0x263b69),logger['debug'](_0x4f26e5[_0xe49f0c(0x2c7)]),webSocketUtils[_0xe49f0c(0x2a8)](_0x5a17a7,_0x17916f[_0xe49f0c(0x30d)],_0x17916f[_0xe49f0c(0x224)]);const _0x39fb3a=_0x17916f[_0xe49f0c(0x288)]||DEFAULT_GRID_NAME;if(_0x17916f[_0xe49f0c(0x36c)]||_0x17916f['cloudProvider']||_0x17916f[_0xe49f0c(0x349)]){if(_0x4f26e5['EWFpK'](_0x4f26e5[_0xe49f0c(0x28c)],_0x4f26e5[_0xe49f0c(0x28c)])){if(!(_0x17916f['clusterName']&&_0x17916f[_0xe49f0c(0x337)]&&_0x17916f[_0xe49f0c(0x349)])){if(_0x4f26e5[_0xe49f0c(0x22e)](_0x4f26e5[_0xe49f0c(0x2b8)],_0x4f26e5[_0xe49f0c(0x2b8)])){const _0x1c514c={};_0x1c514c[_0xe49f0c(0x38d)]=_0x4c172b[_0xe49f0c(0x36b)],_0x1c514c[_0xe49f0c(0x342)]=_0x265018,_0x3359b0[_0xe49f0c(0x30e)](_0x4499e6,_0x1c514c,_0x4f26e5[_0xe49f0c(0x23c)],!![]);}else _0xd25d67=_0x4f26e5[_0xe49f0c(0x25d)],await _0x4f26e5['FWOgE'](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5['ONVHi'],_0x4f26e5['FalnZ'],_0x4f26e5['ZnApF']),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1);}![AWS,AZURE,GCP][_0xe49f0c(0x22a)](_0x17916f['cloudProvider'][_0xe49f0c(0x31f)]())&&(_0x4f26e5[_0xe49f0c(0x25b)](_0x4f26e5[_0xe49f0c(0x341)],_0x4f26e5[_0xe49f0c(0x341)])?(_0xd25d67=_0x4f26e5[_0xe49f0c(0x395)],await _0x4f26e5[_0xe49f0c(0x2f0)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x213)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1)):_0x4c86e7[_0xe49f0c(0x206)]=_0x1613b3[_0xe49f0c(0x206)]);_0x17916f[_0xe49f0c(0x23e)]&&_0x4f26e5[_0xe49f0c(0x2b4)](_0x17916f['privateGrid'][_0xe49f0c(0x31f)](),_0x4f26e5['NRbih'])&&(_0x4f26e5[_0xe49f0c(0x25b)](_0x4f26e5[_0xe49f0c(0x26a)],_0x4f26e5[_0xe49f0c(0x345)])?_0x1ede23[_0xe49f0c(0x350)](_0xe49f0c(0x1fc)+_0x28c20d[_0xe49f0c(0x2b3)](_0x3edbfb)+'\x20'):global_registry['isPrivateGrid']=!![]);global_registry[_0xe49f0c(0x337)]=_0x17916f[_0xe49f0c(0x337)],global_registry[_0xe49f0c(0x226)]=_0x17916f[_0xe49f0c(0x349)],global_registry[_0xe49f0c(0x36c)]=_0x17916f[_0xe49f0c(0x36c)];const _0x3a7752=await _0x4f26e5[_0xe49f0c(0x1fb)](getCloudProviderObject,_0x17916f[_0xe49f0c(0x337)],_0x17916f[_0xe49f0c(0x36c)],_0x39fb3a,_0x5a17a7,webSocketUtils,_0x17916f),_0x3943c3=await _0x3a7752['isClusterPresent']();if(!_0x3943c3)_0x4f26e5[_0xe49f0c(0x2b4)](_0x4f26e5['mcXFU'],_0x4f26e5[_0xe49f0c(0x2bf)])?(logger['info'](_0xe49f0c(0x2a1)+_0x17916f[_0xe49f0c(0x36c)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x2904c8=![],_0x5a5dd1=!![]):_0xf96833[_0xe49f0c(0x236)]();else{if(_0x4f26e5['EWFpK'](_0x4f26e5[_0xe49f0c(0x2cf)],_0x4f26e5['hmRCM']))_0x2904c8=!![];else{const _0x42e6ae=_0x4f26e5['FEImw'][_0xe49f0c(0x225)]('|');let _0x46f61c=0x0;while(!![]){switch(_0x42e6ae[_0x46f61c++]){case'0':_0x6cefc4[_0xe49f0c(0x312)]&&_0x4f26e5['zvRxm'](_0x145d3e,_0x39cb87['kafkaUploader']);continue;case'1':_0x255c69=_0x42fca1[_0xe49f0c(0x220)];continue;case'2':_0xa1d420='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x34c18f;continue;case'3':_0x2dbe9e=_0x32da0a[_0xe49f0c(0x380)];continue;case'4':_0x48dff0=null;continue;case'5':_0x4a3307=null;continue;case'6':const _0x20d663={};_0x20d663[_0xe49f0c(0x38d)]=_0x17a994[_0xe49f0c(0x36b)],_0x20d663[_0xe49f0c(0x342)]=_0x5ccd5a,_0x16784f[_0xe49f0c(0x30e)](_0x48a598,_0x20d663);continue;case'7':_0x532d9c=_0x2f38c1[_0xe49f0c(0x293)];continue;case'8':_0x4f26e5[_0xe49f0c(0x241)](_0x740dca['privateGrid'],_0x262aca)&&_0x1819bd[_0xe49f0c(0x23e)]&&(_0x1bba79['isPrivateGrid']=!![]);continue;case'9':_0x28d407=_0x513544[_0xe49f0c(0x2a3)];continue;case'10':_0x4f26e5[_0xe49f0c(0x205)](_0x92372f,_0x326f81,_0x448275,_0x4f4f1e,_0x314f48,_0x1e78e6,_0x43e546,_0x3da4be,_0x4867dd,_0xb5630d,_0x5de431,_0x30882e,_0x1724c9[_0xe49f0c(0x360)]);continue;case'11':_0x471b19=null;continue;case'12':_0x5082c8=_0x52623c[_0xe49f0c(0x2ab)];continue;case'13':_0x45e668=_0x5db7f4['minNodes'];continue;case'14':_0x408e7b=_0x18f95f[_0xe49f0c(0x315)];continue;case'15':_0x134cd8[_0xe49f0c(0x350)](_0x4f6ff9);continue;}break;}}}_0x537733=_0x17916f[_0xe49f0c(0x36c)],_0x1e89ff=_0x17916f[_0xe49f0c(0x337)]['toLowerCase'](),_0x5a0358=_0x17916f[_0xe49f0c(0x349)];}else _0x2f8705[_0xe49f0c(0x350)](_0xe49f0c(0x33c)+_0x295d47+'\x20');}else _0x17916f[_0xe49f0c(0x206)]&&(_0x4f26e5[_0xe49f0c(0x2b4)](_0x4f26e5[_0xe49f0c(0x1ff)],_0x4f26e5['PQtqB'])?_0x10405e=!![]:global_registry['gridProfile']=_0x17916f['gridProfile']);global_registry[_0xe49f0c(0x288)]=_0x17916f['gridName'];const _0x51baee={'method':_0x4f26e5[_0xe49f0c(0x25c)],'headers':_0x4f26e5[_0xe49f0c(0x207)](getAuthHeader,_0x408930[_0xe49f0c(0x23b)][_0xe49f0c(0x2cd)],_0x408930['Browserstack']['password']),'throwHttpErrors':![]},_0x253e74={};_0x253e74[_0xe49f0c(0x288)]=_0x39fb3a;const _0x279cd0=_0x253e74;_0x5a5dd1&&(_0x4f26e5[_0xe49f0c(0x305)](_0x4f26e5[_0xe49f0c(0x2d9)],_0x4f26e5[_0xe49f0c(0x276)])?(_0x279cd0[_0xe49f0c(0x349)]=_0x5a0358,_0x279cd0[_0xe49f0c(0x337)]=_0x1e89ff,_0x279cd0[_0xe49f0c(0x26c)]=!![],_0x279cd0[_0xe49f0c(0x2ac)]=_0x17916f['clusterAutoupgrade']):(_0x1ca9ca[_0xe49f0c(0x350)](_0xe49f0c(0x2a1)+_0x2a850a['clusterName']+_0xe49f0c(0x331)),_0x49cc1f=![],_0x5052e4=!![]));_0x17916f['clusterAutoupgrade']&&(_0x4f26e5['btGmb'](_0x4f26e5[_0xe49f0c(0x3a1)],_0x4f26e5[_0xe49f0c(0x264)])?logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x20a)]):_0x247b06=_0x4f26e5[_0xe49f0c(0x27f)]);const _0xdc1399=_0xe49f0c(0x334)+AG_API_URL+_0xe49f0c(0x30b),_0x18f9a2={'searchParams':_0x279cd0,'throwHttpErrors':![],..._0x51baee},_0x27b04b=_0x18f9a2,_0x5b991e=await _0x4f26e5['xMLDS'](got,_0xdc1399,_0x27b04b);(_0x4f26e5[_0xe49f0c(0x255)](_0x5b991e,null)||_0x4f26e5[_0xe49f0c(0x39e)](_0x5b991e,undefined))&&(_0x4f26e5['dQVpf'](_0x4f26e5[_0xe49f0c(0x295)],_0x4f26e5[_0xe49f0c(0x295)])?_0x4f26e5[_0xe49f0c(0x32c)](_0x13a22e,_0x4374ec[_0xe49f0c(0x27b)]):(_0xd25d67=_0x4f26e5[_0xe49f0c(0x353)],await _0x4f26e5[_0xe49f0c(0x2f0)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes['ERROR'],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x256)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process['exit'](0x1)));if(_0x4f26e5['bCYBG'](_0x5b991e['statusCode'],0x191)){if(_0x4f26e5[_0xe49f0c(0x303)](_0x4f26e5[_0xe49f0c(0x228)],_0x4f26e5[_0xe49f0c(0x2ff)]))_0xd25d67=_0x4f26e5['NXEoU'],await _0x4f26e5[_0xe49f0c(0x268)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5['ONVHi'],_0x4f26e5[_0xe49f0c(0x279)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1);else{const _0x2c6cef=_0x4f26e5['TGkHI'][_0xe49f0c(0x225)]('|');let _0x2b7a7e=0x0;while(!![]){switch(_0x2c6cef[_0x2b7a7e++]){case'0':_0x2569c9=_0xe49f0c(0x253)+_0x51416f+_0xe49f0c(0x2be)+_0x31f54f+'\x27';continue;case'1':const _0x2cb7c6={};_0x2cb7c6['type']=_0x981da4[_0xe49f0c(0x1fe)],_0x2cb7c6[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x306)],_0x3ed13d[_0xe49f0c(0x30e)](_0x142ca9,_0x2cb7c6);continue;case'2':_0x6f67cb[_0xe49f0c(0x350)](_0x3e96da);continue;case'3':_0x2a0d4a[_0xe49f0c(0x2a3)]=_0x4530a2[_0xe49f0c(0x2a3)];continue;case'4':_0xa195d7[_0xe49f0c(0x226)]=_0x57f725;continue;case'5':_0xe36c4f[_0xe49f0c(0x36c)]=_0xba4c4c;continue;case'6':_0x544144['cloudProvider']=_0x2aeeed;continue;case'7':_0x5cc60c[_0xe49f0c(0x293)]=_0x248419[_0xe49f0c(0x293)];continue;case'8':const _0x3466f9={};_0x3466f9['type']=_0x302402[_0xe49f0c(0x36b)],_0x3466f9[_0xe49f0c(0x342)]=_0x583cf2,_0x2df41e[_0xe49f0c(0x30e)](_0x231507,_0x3466f9);continue;}break;}}}if(_0x4f26e5[_0xe49f0c(0x218)](_0x5b991e[_0xe49f0c(0x273)],0xc8)){if(_0x4f26e5[_0xe49f0c(0x303)](_0x4f26e5[_0xe49f0c(0x23a)],_0x4f26e5[_0xe49f0c(0x386)]))_0xd25d67=_0xe49f0c(0x357)+JSON[_0xe49f0c(0x2b3)](_0x5b991e['body']),await _0x4f26e5[_0xe49f0c(0x35c)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5['Edrxs'],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1);else{const _0x13d562={'azure.workload.identity/use':_0x4f26e5['NRbih'],..._0x241705[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)][_0xe49f0c(0x1f2)][_0xe49f0c(0x1ed)]};_0x56f375[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)][_0xe49f0c(0x1f2)][_0xe49f0c(0x1ed)]=_0x13d562,_0x18239a[0x0]['spec'][_0xe49f0c(0x319)][_0xe49f0c(0x2b7)][_0xe49f0c(0x2bd)]=_0x4f26e5[_0xe49f0c(0x326)];}}const _0x3cc883=JSON[_0xe49f0c(0x2e7)](_0x5b991e[_0xe49f0c(0x37d)]),_0x54c365={};_0x54c365[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x1fe)],_0x54c365[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x306)],webSocketUtils['sendEventToBackend'](_0x5a17a7,_0x54c365);const _0x1fa05f={};_0x1fa05f[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x1fa05f[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x243)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x1fa05f);_0x3cc883[_0xe49f0c(0x277)]&&(_0x4f26e5['CApIN'](_0x4f26e5['toVmV'],_0x4f26e5[_0xe49f0c(0x221)])?_0x1f48af=_0x4f26e5[_0xe49f0c(0x32f)]:(_0xd25d67=_0xe49f0c(0x2c4)+_0x39fb3a+_0xe49f0c(0x377),await _0x4f26e5[_0xe49f0c(0x268)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x31b)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1)));const _0x39175d=_0x3cc883[_0xe49f0c(0x29b)];let _0x11eff4=_0x39175d[_0x3cc883[_0xe49f0c(0x223)]];_0x17916f['gridProfile']&&(_0x4f26e5['wBMRE'](_0x4f26e5[_0xe49f0c(0x1fa)],_0x4f26e5[_0xe49f0c(0x1fa)])?_0x46fcfc[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x20a)]):_0x11eff4=_0x39175d[_0x17916f[_0xe49f0c(0x206)]]);global_registry[_0xe49f0c(0x312)]=![];if(_0x17916f['hubHa']){if(_0x4f26e5[_0xe49f0c(0x25f)](_0x4f26e5['ZGiPF'],_0x4f26e5[_0xe49f0c(0x371)]))_0x3366a3=_0x4580b6[_0x184916['gridProfile']];else{const _0x1ee1b8=_0x4f26e5[_0xe49f0c(0x1f4)][_0xe49f0c(0x225)]('|');let _0x41e335=0x0;while(!![]){switch(_0x1ee1b8[_0x41e335++]){case'0':global_registry[_0xe49f0c(0x39a)]=_0x4f26e5[_0xe49f0c(0x261)];continue;case'1':logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x38e)]);continue;case'2':global_registry['redisPassword']=_0x4f26e5[_0xe49f0c(0x248)];continue;case'3':global_registry[_0xe49f0c(0x270)]=_0x4f26e5[_0xe49f0c(0x34f)];continue;case'4':global_registry[_0xe49f0c(0x312)]=!![];continue;}break;}}}if(_0x4f26e5[_0xe49f0c(0x39e)](_0x2904c8,![])&&_0x4f26e5[_0xe49f0c(0x352)](_0x5a5dd1,![])){if(_0x4f26e5[_0xe49f0c(0x379)](_0x4f26e5[_0xe49f0c(0x39c)],_0x4f26e5[_0xe49f0c(0x39c)])){_0x4f26e5['OKazF'](_0x11eff4,undefined)&&(_0x4f26e5[_0xe49f0c(0x22e)](_0x4f26e5['GYZiA'],_0x4f26e5['GYZiA'])?_0x33eabc[_0xe49f0c(0x308)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x5ba084+'\x20\x0a'+_0x5e78ef['stringify'](_0x2d174c[_0xe49f0c(0x2db)])):(_0xd25d67=_0x4f26e5[_0xe49f0c(0x28b)],await _0x4f26e5[_0xe49f0c(0x216)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x390)],_0x4f26e5['ZnApF']),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1)));global_registry[_0xe49f0c(0x204)]=_0x11eff4['id'],_0xd25d67='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x39fb3a+_0xe49f0c(0x33e)+_0x11eff4[_0xe49f0c(0x2b5)]+'\x27\x20grid\x20profile',logger[_0xe49f0c(0x350)](_0xd25d67);const _0xafee68={};_0xafee68[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0xafee68['message']=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0xafee68),_0x1e89ff=_0x11eff4[_0xe49f0c(0x337)],_0x537733=_0x11eff4[_0xe49f0c(0x36c)],_0x5a0358=_0x11eff4[_0xe49f0c(0x349)],_0x496265=_0x11eff4['concurrency'],_0x379deb=_0x11eff4['instanceType'],_0x5216d5=_0x11eff4['vpc'],_0x1233be=_0x11eff4[_0xe49f0c(0x329)],_0x4fb761=_0x11eff4[_0xe49f0c(0x2fc)],_0x21510f=_0x11eff4[_0xe49f0c(0x220)],_0x59d056=_0x11eff4['minNodes'],_0x47921b=_0x11eff4[_0xe49f0c(0x380)],_0x31e7cd=_0x3cc883[_0xe49f0c(0x2a3)],_0x1a5b4e=_0x3cc883[_0xe49f0c(0x293)],_0x5216d5&&_0x4f26e5[_0xe49f0c(0x287)](_0x5216d5['length'],0x0)&&(_0x4f26e5['CPXYZ'](_0x4f26e5['KNOAC'],_0x4f26e5[_0xe49f0c(0x2c8)])?_0x5216d5=null:_0x4f26e5[_0xe49f0c(0x290)](_0x3fe2ae,_0x375fce['kafkaUploader'])),_0x4fb761&&_0x4f26e5[_0xe49f0c(0x25b)](_0x4fb761['length'],0x0)&&(_0x4f26e5[_0xe49f0c(0x285)](_0x4f26e5[_0xe49f0c(0x219)],_0x4f26e5[_0xe49f0c(0x219)])?_0x2ad023=null:_0x4fb761=null),_0x4f26e5[_0xe49f0c(0x35d)](_0x11eff4['privateGrid'],undefined)&&_0x11eff4[_0xe49f0c(0x23e)]&&(_0x4f26e5[_0xe49f0c(0x29f)](_0x4f26e5[_0xe49f0c(0x20e)],_0x4f26e5[_0xe49f0c(0x20e)])?(_0x3b50e7[_0xe49f0c(0x349)]=_0x43057b,_0x34dca0[_0xe49f0c(0x337)]=_0x14f26f,_0x248803[_0xe49f0c(0x26c)]=!![],_0x274e93[_0xe49f0c(0x2ac)]=_0x4c2f1e['clusterAutoupgrade']):global_registry[_0xe49f0c(0x39f)]=!![]),_0x4f26e5['ePxwB'](updateGlobalRegistryWithConfig,_0x1e89ff,_0x537733,_0x5a0358,_0x496265,_0x379deb,_0x21510f,_0x11eff4,_0x31e7cd,_0x1a5b4e,_0x59d056,_0x47921b,_0x17916f[_0xe49f0c(0x360)]),global_registry[_0xe49f0c(0x312)]&&(_0x4f26e5[_0xe49f0c(0x39e)](_0x4f26e5[_0xe49f0c(0x208)],_0x4f26e5['CGoMr'])?_0x90e085=_0x4f26e5['Lsikp']:_0x4f26e5[_0xe49f0c(0x32c)](updateGlobalRegistryForHubHa,_0x3cc883[_0xe49f0c(0x27b)]));}else _0x22a060[_0xe49f0c(0x39f)]=!![];}else{if(_0x4f26e5['IhyVx'](_0x5a5dd1,!![])){if(_0x4f26e5[_0xe49f0c(0x385)](_0x4f26e5[_0xe49f0c(0x37f)],_0x4f26e5[_0xe49f0c(0x1f8)]))_0x36276b['isPrivateGrid']=!![];else{_0xd25d67=_0xe49f0c(0x32a)+_0x39fb3a,logger[_0xe49f0c(0x350)](_0xd25d67);const _0x1fae05={};_0x1fae05[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x1fae05[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x1fae05),_0x496265=_0x11eff4[_0xe49f0c(0x315)],_0x379deb=_0x11eff4[_0xe49f0c(0x2ab)],_0x5216d5=null,_0x1233be=null,_0x4fb761=null,_0x21510f=_0x11eff4[_0xe49f0c(0x220)],_0x59d056=_0x11eff4[_0xe49f0c(0x30f)],_0x47921b=_0x11eff4[_0xe49f0c(0x380)],_0x31e7cd=_0x3cc883[_0xe49f0c(0x2a3)],_0x1a5b4e=_0x3cc883[_0xe49f0c(0x293)],_0x4f26e5[_0xe49f0c(0x35d)](_0x11eff4[_0xe49f0c(0x23e)],undefined)&&_0x11eff4[_0xe49f0c(0x23e)]&&(_0x4f26e5[_0xe49f0c(0x2a2)](_0x4f26e5[_0xe49f0c(0x2a7)],_0x4f26e5[_0xe49f0c(0x2e5)])?_0x277130[_0xe49f0c(0x39f)]=!![]:global_registry['isPrivateGrid']=!![]),_0x4f26e5[_0xe49f0c(0x262)](updateGlobalRegistryWithConfig,_0x1e89ff,_0x537733,_0x5a0358,_0x496265,_0x379deb,_0x21510f,_0x11eff4,_0x31e7cd,_0x1a5b4e,_0x59d056,_0x47921b,_0x17916f['clusterAutoupgrade']),global_registry['enableHubHa']&&(_0x4f26e5[_0xe49f0c(0x2fd)](_0x4f26e5[_0xe49f0c(0x21e)],_0x4f26e5[_0xe49f0c(0x21e)])?_0x12795d=null:_0x4f26e5[_0xe49f0c(0x38c)](updateGlobalRegistryForHubHa,_0x3cc883[_0xe49f0c(0x200)]));}}else{if(_0x4f26e5[_0xe49f0c(0x29c)](_0x4f26e5['lcmXo'],_0x4f26e5['lcmXo'])){const _0x264774=_0x4f26e5[_0xe49f0c(0x2c2)]['split']('|');let _0x2d7d7d=0x0;while(!![]){switch(_0x264774[_0x2d7d7d++]){case'0':global_registry['clusterRegion']=_0x5a0358;continue;case'1':global_registry['hubVersion']=_0x3cc883[_0xe49f0c(0x2a3)];continue;case'2':const _0x35bf2e={};_0x35bf2e['type']=WS_EVENTS[_0xe49f0c(0x1fe)],_0x35bf2e[_0xe49f0c(0x342)]=_0x4f26e5['EzznY'],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x35bf2e);continue;case'3':global_registry[_0xe49f0c(0x337)]=_0x1e89ff;continue;case'4':logger['info'](_0xd25d67);continue;case'5':const _0x5684a0={};_0x5684a0['type']=WS_EVENTS[_0xe49f0c(0x36b)],_0x5684a0[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x5684a0);continue;case'6':_0xd25d67=_0xe49f0c(0x253)+_0x39fb3a+_0xe49f0c(0x2be)+_0x537733+'\x27';continue;case'7':global_registry[_0xe49f0c(0x293)]=_0x3cc883[_0xe49f0c(0x293)];continue;case'8':global_registry[_0xe49f0c(0x36c)]=_0x537733;continue;}break;}}else{const _0x2e4472={};_0x2e4472[_0xe49f0c(0x2ea)]=_0x4f26e5[_0xe49f0c(0x2a9)],_0x2e4472['type']=_0x4f26e5[_0xe49f0c(0x274)];const _0x2112f9={};_0x2112f9['description']=_0x4f26e5[_0xe49f0c(0x369)],_0x2112f9[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x27860e={};_0x27860e['description']=_0x4f26e5['bJgkJ'],_0x27860e[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x2ec73b={};_0x2ec73b['description']=_0x4f26e5['FLmLy'],_0x2ec73b[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x306963={};_0x306963[_0xe49f0c(0x2ea)]=_0x4f26e5[_0xe49f0c(0x2d8)],_0x306963[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x307ae4={};_0x307ae4[_0xe49f0c(0x2ea)]=_0x4f26e5[_0xe49f0c(0x370)],_0x307ae4[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x1277e7={};_0x1277e7[_0xe49f0c(0x2ea)]=_0x4f26e5[_0xe49f0c(0x254)],_0x1277e7[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x307)],_0x1277e7['default']=![];const _0x295fa1={};_0x295fa1['description']=_0x4f26e5['ymSNt'],_0x295fa1['type']=_0x4f26e5[_0xe49f0c(0x307)],_0x295fa1['default']=![];const _0x2178bb={};_0x2178bb['description']=_0x4f26e5[_0xe49f0c(0x399)],_0x2178bb['type']=_0x4f26e5[_0xe49f0c(0x307)],_0x2178bb[_0xe49f0c(0x2f4)]=![];const _0x1809f3={};return _0x1809f3['grid-name']=_0x2e4472,_0x1809f3[_0xe49f0c(0x328)]=_0x2112f9,_0x1809f3['cluster-name']=_0x27860e,_0x1809f3[_0xe49f0c(0x2de)]=_0x2ec73b,_0x1809f3[_0xe49f0c(0x349)]=_0x306963,_0x1809f3[_0xe49f0c(0x24b)]=_0x307ae4,_0x1809f3['skip-tls-cert-verify']=_0x1277e7,_0x1809f3['hub-ha']=_0x295fa1,_0x1809f3['cluster-autoupgrade']=_0x2178bb,_0x220279[_0xe49f0c(0x2ed)](_0x130b67['create'])[_0xe49f0c(0x2ae)](_0x18833f)['options'](_0x1809f3)[_0xe49f0c(0x238)](_0x4f26e5[_0xe49f0c(0x32b)])['argv'];}}}const _0x2a7575=await _0x4f26e5[_0xe49f0c(0x2b1)](getCloudProviderObject,_0x1e89ff,_0x537733,_0x39fb3a,_0x5a17a7,webSocketUtils,_0x17916f);if(_0x4f26e5['zWodw'](_0x1e89ff,AZURE)){if(_0x4f26e5[_0xe49f0c(0x285)](_0x4f26e5[_0xe49f0c(0x269)],_0x4f26e5[_0xe49f0c(0x2f2)]))_0x2a7575[_0xe49f0c(0x236)]();else{const _0x118079={};_0x118079['type']=_0x7e3387['LOG'],_0x118079[_0xe49f0c(0x342)]='Cluster\x20'+_0x49b145+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x14a8a3['sendEventToBackend'](_0x33b51a,_0x118079,_0x4f26e5[_0xe49f0c(0x2c6)]),_0x420a4e['info'](_0xe49f0c(0x34d)+_0x116d51+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0xa78f06=!![];if(_0x4f26e5[_0xe49f0c(0x25b)](_0x578e04,!![]))throw new _0x296570('Cluster\x20'+_0x55add9+_0xe49f0c(0x34a));}}let _0x4cac17;if(_0x4f26e5[_0xe49f0c(0x2a2)](_0x2904c8,![])){_0xd25d67=_0xe49f0c(0x38f)+_0x5a0358+').';const _0x2474f3={};_0x2474f3['type']=WS_EVENTS[_0xe49f0c(0x36b)],_0x2474f3[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x2474f3),logger[_0xe49f0c(0x350)](_0xd25d67);const _0x5e4650=await _0x2a7575[_0xe49f0c(0x317)]();if(_0x5e4650){if(_0x4f26e5['oFHBX'](_0x4f26e5[_0xe49f0c(0x368)],_0x4f26e5[_0xe49f0c(0x366)])){const _0x22c606={};_0x22c606['type']=WS_EVENTS[_0xe49f0c(0x36b)],_0x22c606['message']=_0xe49f0c(0x34d)+_0x537733+_0xe49f0c(0x245),webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x22c606,_0x4f26e5['zgsDA']),logger[_0xe49f0c(0x350)]('Cluster\x20'+_0x537733+_0xe49f0c(0x245)),_0x2904c8=!![];if(_0x4f26e5[_0xe49f0c(0x25b)](_0x5a5dd1,!![])){if(_0x4f26e5['CApIN'](_0x4f26e5[_0xe49f0c(0x203)],_0x4f26e5[_0xe49f0c(0x31a)]))throw new Error('Cluster\x20'+_0x537733+_0xe49f0c(0x34a));else throw new _0x2e67f7(_0xe49f0c(0x34d)+_0x3df36c+_0xe49f0c(0x34a));}}else _0x450aff=_0x4e6b2a[_0xe49f0c(0x2e9)],_0x3fddc6=_0x4f26e5['HtLVB'];}else{const _0x26fb94={};_0x26fb94[_0xe49f0c(0x38d)]=WS_EVENTS['LOG'],_0x26fb94['message']=_0x4f26e5[_0xe49f0c(0x214)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x26fb94),logger[_0xe49f0c(0x350)](_0x4f26e5['fxgdH']);const _0x587ff1=_0x4f26e5[_0xe49f0c(0x2df)](_0x5216d5,null)&&_0x4f26e5[_0xe49f0c(0x2a0)](_0x5216d5,undefined),_0x11be44=_0x4f26e5[_0xe49f0c(0x2df)](_0x4fb761,null)&&_0x4f26e5['YaKwS'](_0x4fb761,undefined)&&_0x4f26e5[_0xe49f0c(0x361)](_0x4fb761[_0xe49f0c(0x266)],0x0);if(_0x587ff1){_0x4f26e5[_0xe49f0c(0x298)](_0x11be44,![])&&(_0xd25d67=_0x4f26e5[_0xe49f0c(0x263)],await _0x4f26e5[_0xe49f0c(0x35c)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes['ERROR'],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5['UsAoN'],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1));const _0x4e5ef5=await _0x2a7575[_0xe49f0c(0x20f)](_0x5216d5);_0x4f26e5['qdVfx'](_0x4e5ef5,![])?(_0xd25d67=_0x4f26e5[_0xe49f0c(0x358)],await _0x4f26e5['TSyKC'](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes['ERROR'],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x31e)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1)):logger[_0xe49f0c(0x350)]('Found\x20VPC:\x20'+_0x5216d5+'\x20');const _0x2ca590=await _0x2a7575[_0xe49f0c(0x393)](_0x4fb761,_0x5216d5);_0x4f26e5[_0xe49f0c(0x28d)](_0x2ca590[0x0],![])?(_0xd25d67=_0xe49f0c(0x231)+JSON['stringify'](_0x2ca590[0x1])+_0xe49f0c(0x24e)+_0x5216d5+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x4f26e5[_0xe49f0c(0x35a)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x21b)],_0x4f26e5['ZnApF']),logger[_0xe49f0c(0x308)](_0xd25d67),process['exit'](0x1)):logger[_0xe49f0c(0x350)](_0xe49f0c(0x1fc)+JSON['stringify'](_0x4fb761)+'\x20'),[_0x5216d5,_0x4fb761]=await _0x2a7575['setupNewCluster'](_0x5216d5,_0x4fb761);}else{const _0x4e7207=_0x4f26e5[_0xe49f0c(0x33f)][_0xe49f0c(0x225)]('|');let _0x4d30b8=0x0;while(!![]){switch(_0x4e7207[_0x4d30b8++]){case'0':const _0x312f9f={};_0x312f9f[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x312f9f[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x21a)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x312f9f);continue;case'1':logger['info'](_0x4f26e5[_0xe49f0c(0x242)]);continue;case'2':const _0x5f06c4={};_0x5f06c4[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x5f06c4[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x242)],webSocketUtils['sendEventToBackend'](_0x5a17a7,_0x5f06c4);continue;case'3':logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x21a)]);continue;case'4':[_0x5216d5,_0x4fb761]=await _0x2a7575[_0xe49f0c(0x373)](_0x5216d5,_0x4fb761);continue;}break;}}}}_0x2904c8&&_0x4f26e5['gxxGr'](_0x1e89ff,AZURE)&&(await _0x2a7575[_0xe49f0c(0x301)](),await _0x2a7575[_0xe49f0c(0x388)]());const [_0x425abc,_0x536553,_0x57dbd5,_0x314ad2,_0x9e0dd4,_0x5ae4f3,_0x30b07e]=await _0x4f26e5[_0xe49f0c(0x32e)](createK8sClient,_0x2a7575,_0x17916f['skipTlsCertVerify']);_0x4f26e5['PPqsH'](_0x2904c8,![])&&_0x4f26e5[_0xe49f0c(0x30a)](_0x1e89ff,AWS)&&(global_registry[_0xe49f0c(0x378)]=!![],_0x4cac17=await _0x2a7575['setupAutoscaler'](_0x425abc,_0x17916f));if(_0x4f26e5[_0xe49f0c(0x259)](_0x2904c8,![])&&global_registry['enableHubHa'])try{await _0x2a7575['setupHubHa'](_0x5ae4f3,_0x30b07e,_0x17916f,_0x5216d5,_0x4fb761);const _0x2299ea={};_0x2299ea[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x2299ea[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x2ef)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x2299ea);!await _0x4f26e5[_0xe49f0c(0x207)](namespaceExists,_0x425abc,global_registry[_0xe49f0c(0x39a)])&&await _0x4f26e5[_0xe49f0c(0x32e)](createNamespace,_0x425abc,global_registry[_0xe49f0c(0x39a)]);logger[_0xe49f0c(0x350)](_0x4f26e5['TWnqg']);let _0x4f159e=await fs[_0xe49f0c(0x246)](path[_0xe49f0c(0x27c)](__dirname,_0x4f26e5['taUJd'],_0x4f26e5[_0xe49f0c(0x398)],_0x4f26e5[_0xe49f0c(0x381)],_0x4f26e5[_0xe49f0c(0x2f1)]),_0x4f26e5[_0xe49f0c(0x375)]);_0x4f159e=_0x4f159e[_0xe49f0c(0x234)](/<RedisClientPassword>/g,_0x4f26e5['KqVcz'](encodeBase64,global_registry['redisPassword'])),_0x4f159e=_0x4f159e[_0xe49f0c(0x234)](/<KafkaClientPassword>/g,_0x4f26e5[_0xe49f0c(0x27d)](encodeBase64,global_registry[_0xe49f0c(0x270)])),_0x4f159e=_0x4f159e[_0xe49f0c(0x234)](/<BstackUsername>/g,_0x4f26e5['odpov'](encodeBase64,global_registry[_0xe49f0c(0x2cc)])),_0x4f159e=_0x4f159e[_0xe49f0c(0x234)](/<BstackAccessKey>/g,_0x4f26e5[_0xe49f0c(0x38c)](encodeBase64,global_registry['bstackAccesskey']));const _0x2ae9d4=yaml[_0xe49f0c(0x359)](_0x4f159e);await _0x4f26e5[_0xe49f0c(0x320)](kubeApply,_0x2ae9d4,_0x30b07e),logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x335)]);let _0x2df9b6=_0x4f26e5[_0xe49f0c(0x2b2)];if(_0x4f26e5['PEdAc'](_0x1e89ff,AZURE))_0x2df9b6=_0x4f26e5[_0xe49f0c(0x32f)];else _0x4f26e5[_0xe49f0c(0x280)](_0x1e89ff,GCP)&&(_0x2df9b6=_0x4f26e5['Lsikp']);logger[_0xe49f0c(0x350)](_0x4f26e5['yNPtu']);let _0x22f47c=await fs[_0xe49f0c(0x246)](path[_0xe49f0c(0x27c)](__dirname,_0x4f26e5[_0xe49f0c(0x39d)],_0x4f26e5[_0xe49f0c(0x398)],_0x4f26e5[_0xe49f0c(0x381)],_0x4f26e5[_0xe49f0c(0x2d3)]),_0x4f26e5[_0xe49f0c(0x375)]);_0x22f47c=_0x22f47c[_0xe49f0c(0x234)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x22f47c=_0x22f47c[_0xe49f0c(0x234)](/<StorageClassName>/g,_0x2df9b6);const _0x2891c0=yaml[_0xe49f0c(0x359)](_0x22f47c);await _0x4f26e5[_0xe49f0c(0x32e)](kubeApply,_0x2891c0,_0x30b07e),logger['info'](_0x4f26e5['xwKqO']),logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x316)]);let _0x4a1943=await fs[_0xe49f0c(0x246)](path[_0xe49f0c(0x27c)](__dirname,_0x4f26e5[_0xe49f0c(0x39d)],_0x4f26e5['ZPDFz'],_0x4f26e5[_0xe49f0c(0x381)],_0x4f26e5[_0xe49f0c(0x2f3)]),_0x4f26e5[_0xe49f0c(0x375)]);_0x4a1943=_0x4a1943[_0xe49f0c(0x234)](/<HubHaNameSpace>/g,global_registry[_0xe49f0c(0x39a)]),_0x4a1943=_0x4a1943[_0xe49f0c(0x234)](/<StorageClassName>/g,_0x2df9b6);const _0x508bba=yaml['loadAll'](_0x4a1943);await _0x4f26e5[_0xe49f0c(0x207)](kubeApply,_0x508bba,_0x30b07e),logger[_0xe49f0c(0x350)](_0x4f26e5['ioBqP']),logger[_0xe49f0c(0x350)](_0x4f26e5['FlSdN']);let _0x5d3cc4=await fs[_0xe49f0c(0x246)](path[_0xe49f0c(0x27c)](__dirname,_0x4f26e5[_0xe49f0c(0x39d)],_0x4f26e5[_0xe49f0c(0x398)],_0x4f26e5[_0xe49f0c(0x381)],_0x4f26e5['zkLGL']),_0x4f26e5[_0xe49f0c(0x375)]);_0x5d3cc4=_0x5d3cc4[_0xe49f0c(0x234)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x5d3cc4=_0x5d3cc4[_0xe49f0c(0x234)](/<HubHaNameSpace>/g,global_registry[_0xe49f0c(0x39a)]);const _0xa25092=yaml[_0xe49f0c(0x359)](_0x5d3cc4);_0x4f26e5[_0xe49f0c(0x389)](global_registry[_0xe49f0c(0x337)],AZURE)&&(_0xa25092[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)][_0xe49f0c(0x1f2)][_0xe49f0c(0x1ed)]={'azure.workload.identity/use':_0x4f26e5[_0xe49f0c(0x29e)],..._0xa25092[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)][_0xe49f0c(0x1f2)][_0xe49f0c(0x1ed)]},_0xa25092[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)]['spec']['serviceAccountName']=_0x4f26e5[_0xe49f0c(0x326)]);await _0x4f26e5[_0xe49f0c(0x320)](kubeApply,_0xa25092,_0x30b07e),logger[_0xe49f0c(0x350)](_0x4f26e5['hfFUM']);const _0x22a434={};_0x22a434[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x22a434[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x251)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x22a434),logger[_0xe49f0c(0x350)](_0x4f26e5['hkaPS']);}catch(_0x1a628b){const _0x5d9f19=_0x4f26e5['lgAJL'][_0xe49f0c(0x225)]('|');let _0x3f5291=0x0;while(!![]){switch(_0x5d9f19[_0x3f5291++]){case'0':_0xd25d67='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x1a628b['message'];continue;case'1':logger[_0xe49f0c(0x308)](_0xd25d67);continue;case'2':await _0x2a7575[_0xe49f0c(0x239)](_0x425abc,global_registry[_0xe49f0c(0x226)]);continue;case'3':await _0x4f26e5[_0xe49f0c(0x268)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5['ONVHi'],_0x4f26e5[_0xe49f0c(0x281)],_0x4f26e5[_0xe49f0c(0x23c)]);continue;case'4':process['exit'](0x1);continue;}break;}}try{_0x3c2bd6=_0x4f26e5[_0xe49f0c(0x343)](kebabCase,_0x39fb3a),logger['info'](_0x4f26e5[_0xe49f0c(0x297)]);const _0x25480d={};_0x25480d[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x25480d['message']=_0x4f26e5[_0xe49f0c(0x297)],webSocketUtils['sendEventToBackend'](_0x5a17a7,_0x25480d);if(_0x4f26e5[_0xe49f0c(0x303)](_0x3c2bd6,_0x4f26e5['GCBTy'])){const _0x337194={};_0x337194[_0xe49f0c(0x2e4)]=_0x4f26e5['pzBkq'],_0x337194[_0xe49f0c(0x2c3)]=_0x4f26e5[_0xe49f0c(0x333)];const _0x395171={};_0x395171[_0xe49f0c(0x2b5)]=_0x3c2bd6,_0x395171['annotations']=_0x337194;const _0x45ec0c={};_0x45ec0c['metadata']=_0x395171;const _0x1a4ad4=_0x45ec0c,_0x1ac9c9={};_0x1ac9c9[_0xe49f0c(0x37d)]=_0x1a4ad4,await _0x425abc[_0xe49f0c(0x1f9)](_0x1ac9c9),logger['info'](_0x4f26e5[_0xe49f0c(0x2ad)]);}const _0x24f8f3={};_0x24f8f3[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x24f8f3[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x300)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x24f8f3);const _0x54c135={};_0x54c135[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x54c135[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x36d)],webSocketUtils['sendEventToBackend'](_0x5a17a7,_0x54c135),logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x372)]);let _0x1a5223={};_0x4f26e5[_0xe49f0c(0x28d)](_0x1e89ff,AZURE)&&(_0x1a5223={'clientId':await _0x2a7575[_0xe49f0c(0x2d0)](_0xe49f0c(0x321)+_0x537733)});await _0x4f26e5[_0xe49f0c(0x36f)](addGridComponents,_0x425abc,_0x536553,_0x57dbd5,_0x314ad2,_0x3c2bd6,_0x537733,_0x4cac17,_0x9e0dd4,_0x30b07e,_0x1a5223),_0xd25d67=_0x4f26e5['rdWXj'],logger[_0xe49f0c(0x350)](_0xd25d67);const _0xd1fb54={};_0xd1fb54[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0xd1fb54[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils['sendEventToBackend'](_0x5a17a7,_0xd1fb54),_0xd25d67=_0x4f26e5[_0xe49f0c(0x2a4)],logger['info'](_0xd25d67);const _0x447baf={};_0x447baf[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x447baf[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x447baf),await _0x4f26e5['ATNDZ'](waitForDeployment,_0x536553,_0x3c2bd6,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x5dae7e=await _0x4f26e5[_0xe49f0c(0x217)](getNamespaceUID,_0x425abc,_0x3c2bd6),_0x3d9849=global_registry['isPrivateGrid']?_0x4f26e5[_0xe49f0c(0x33d)]:_0x4f26e5[_0xe49f0c(0x336)],_0x3f912f={};_0x3f912f[_0xe49f0c(0x2b5)]=_0x3d9849,_0x3f912f['namespace']=_0x4f26e5[_0xe49f0c(0x2b6)];const _0x981f32=await _0x425abc[_0xe49f0c(0x344)](_0x3f912f);let _0x78a5ba=_0x2a7575[_0xe49f0c(0x354)](_0x981f32)+'/'+_0x3c2bd6,_0x2033c0=_0x4f26e5[_0xe49f0c(0x27f)];try{const _0xe06889='https://'+AG_API_URL+_0xe49f0c(0x33a)+_0x5dae7e,_0x5905c4=await _0x4f26e5[_0xe49f0c(0x3a2)](got,_0xe06889,_0x51baee);(_0x4f26e5['wQUxi'](_0x5905c4,null)||_0x4f26e5[_0xe49f0c(0x2bb)](_0x5905c4,undefined))&&(_0xd25d67=_0x4f26e5['LihMX'],await _0x4f26e5['RUxvB'](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x1f7)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1));_0x4f26e5['qdVfx'](_0x5905c4[_0xe49f0c(0x273)],0x191)&&(_0xd25d67=_0x4f26e5[_0xe49f0c(0x22f)],await _0x4f26e5[_0xe49f0c(0x25e)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x313)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1));_0x4f26e5['LWpoN'](_0x5905c4[_0xe49f0c(0x273)],0xc8)&&(_0xd25d67=_0xe49f0c(0x2cb)+JSON['stringify'](_0x5905c4),await _0x4f26e5[_0xe49f0c(0x1ef)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x24d)],_0x4f26e5['ZnApF']),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1));const _0x3b221f=JSON[_0xe49f0c(0x2e7)](_0x5905c4[_0xe49f0c(0x37d)]);_0x3b221f[_0xe49f0c(0x2e9)]&&(_0x78a5ba=_0x3b221f['route53'],_0x2033c0=_0x4f26e5[_0xe49f0c(0x202)]),global_registry['isPrivateGrid']&&(_0x2033c0=_0x4f26e5[_0xe49f0c(0x27f)]);}catch(_0x38dcc7){}_0xd25d67=_0xe49f0c(0x382)+_0x78a5ba+'\x20',logger['info'](_0xd25d67);const _0x157f4d={};_0x157f4d[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x157f4d[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x157f4d),_0xd25d67=_0xe49f0c(0x2c5)+_0x2033c0+'://'+_0x78a5ba+'/wd/hub',logger['info'](_0xd25d67);const _0x1c0ab7={};_0x1c0ab7[_0xe49f0c(0x38d)]=WS_EVENTS['LOG'],_0x1c0ab7[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x1c0ab7);const _0x67318b={};_0x67318b[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x310)],_0x67318b[_0xe49f0c(0x342)]='CLI\x20run\x20finished:\x20'+_0x78a5ba,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x67318b),await webSocketUtils[_0xe49f0c(0x286)](0x7d0);}catch(_0x642436){logger[_0xe49f0c(0x308)](_0xe49f0c(0x376)+_0x642436+'\x20\x0a'+JSON['stringify'](_0x642436['stack']));if(_0x4f26e5['YvJkc'](_0x2904c8,![]))try{logger['info'](_0x4f26e5[_0xe49f0c(0x3a0)]),await _0x4f26e5[_0xe49f0c(0x327)](removeGridComponents,_0x425abc,_0x536553,_0x57dbd5,_0x314ad2,_0x3c2bd6),await _0x2a7575[_0xe49f0c(0x239)](_0x425abc,global_registry[_0xe49f0c(0x226)]);}catch(_0x551ca6){logger[_0xe49f0c(0x308)](_0xe49f0c(0x23d)+_0x551ca6+'\x20\x0a'+JSON['stringify'](_0x551ca6[_0xe49f0c(0x2db)]));}throw _0x642436;}}catch(_0x2b667b){const _0x3d79f2=_0xe49f0c(0x23f)+_0x2b667b+'\x20\x0a'+JSON[_0xe49f0c(0x2b3)](_0x2b667b[_0xe49f0c(0x2db)]);if(_0x5a17a7){const _0x585ce3={};_0x585ce3[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x585ce3[_0xe49f0c(0x342)]=_0x3d79f2,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x585ce3,_0x4f26e5[_0xe49f0c(0x23c)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x4dfc45={};_0x4dfc45[_0xe49f0c(0x308)]=_0x3d79f2,await _0x4f26e5[_0xe49f0c(0x394)](sendInstrumentationEvent,_0x17916f,_0x4f26e5[_0xe49f0c(0x232)],messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x34e)],_0x4dfc45,_0x17916f),logger[_0xe49f0c(0x308)](_0x3d79f2);}process[_0xe49f0c(0x22b)](0x0);};
1
+ const a9_0x4b4f93=a9_0x35a4;(function(_0x4cd85f,_0x37c668){const _0x564609=a9_0x35a4,_0x2fdc75=_0x4cd85f();while(!![]){try{const _0x42af36=parseInt(_0x564609(0x25a))/0x1*(parseInt(_0x564609(0x2fd))/0x2)+parseInt(_0x564609(0x2c0))/0x3+-parseInt(_0x564609(0x24e))/0x4*(-parseInt(_0x564609(0x1d2))/0x5)+parseInt(_0x564609(0x2a5))/0x6*(-parseInt(_0x564609(0x249))/0x7)+-parseInt(_0x564609(0x229))/0x8*(-parseInt(_0x564609(0x2aa))/0x9)+-parseInt(_0x564609(0x2d8))/0xa+-parseInt(_0x564609(0x1ef))/0xb*(-parseInt(_0x564609(0x165))/0xc);if(_0x42af36===_0x37c668)break;else _0x2fdc75['push'](_0x2fdc75['shift']());}catch(_0x5c4584){_0x2fdc75['push'](_0x2fdc75['shift']());}}}(a9_0x53c8,0xac16a));function a9_0x35a4(_0x416757,_0x159a7f){const _0x53c848=a9_0x53c8();return a9_0x35a4=function(_0x35a409,_0x18ebd8){_0x35a409=_0x35a409-0x14b;let _0x492391=_0x53c848[_0x35a409];return _0x492391;},a9_0x35a4(_0x416757,_0x159a7f);}function a9_0x53c8(){const _0x1b0585=['haXfh','QNIwV','SdTbt','BZukH','HDejH','hJGtZ','metadata','poOwb','GursJ','clusterAutoupgrade','../../utils/createk8sClient','cloudProvider','fsJRe','serviceAccountName','<UsernamePlaceholder>','Spawning\x20grid\x20on\x20to\x20the\x20cluster','Cluster:\x20','BImdF','ZEkwb','newCluster','command','huROs','ERROR','atdXJ','qHVYg','yOfNc','NAWtm','KjiYs','Cluster\x20created\x20successfully','join','clusterName','redisPassword','Skip\x20insecure\x20cert\x20verification.','utf-8','cluster-autoupgrade','FIOka','IECTL','../../utils/webSocketUtils','Added\x20Turboscale\x20Uploader\x20deployment.','mmqEr','clusterAutoUpgrade','ZDEGZ','Spawning\x20the\x20grid\x20','builder','HQakP','route53','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','readFileAsync','Found\x20Subnets:\x20','RkWPM','namespace','rUGrK','\x27\x20grid\x20profile','whmBL','qhhiL','uploaderImageVersion','XMbzm','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','warn','eetbW','uploaderVersion','region','stringify','path','izecv','177570kwrjGE','lsbCe','create','rTpbk','daQdv','exit','gWNvG','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','hub-ha','xVsji','mlfvT','setupAutoscaler','SpGOR','FcRlt','premium-rwo','wpYYk','gridProfile','jrxUI','rzONz','MvhUJ','GZhfY','Adding\x20Websocket\x20listeners','grid','hubVersion','kafkaUploader','/packages/cli/get-grid-url?gridIdentifier=','WbdoF','password','rQkFu','1504283evzwra','BKUNO','ZlnMc','vZKoJ','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','heuAe','type','HMiWQ','labels','cFerj','yVyAF','vpBXY','CLI\x20run\x20finished:\x20','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','6|4|5|0|3|1|7|8|2','LtsXi','../../utils/utilityMethods','ErrVf','private-grid','kImoe','ingress-nginx-controller','KjHaF','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','vkWwz','4|2|3|0|1','SvSwP','error','DvPXz','otOMd','create-grid-checks-non-200','fCeAy','wgsnN','Adding\x20Turboscale\x20Uploader\x20deployment...','VPsqE','IChKU','yepLM','1|4|3|2|0','nDKqL','Created\x20Hub\x20HA\x20resources','grid-profile','../../utils/gridComponents','OuNtZ','eOaWl','efs-csi','toLowerCase','<PasswordPlaceholder>','hubharesources','xhpyj','vpc','info','name','updateClusterAlreadyPresent','DANCX','fDKIj','SnxiH','KPdOW','maxNodes','kAXKx','140632YGQhWL','Grid\x20can\x20be\x20accessed\x20at:\x20','qtBDV','../..','DHmKv','aWYfV','default','JPqml','help','hutYT','Tbrge','skip-tls-cert-verify','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.','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','description','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','get-grid-url-null-response','debug','tVnGJ','true','bstackAccesskey','create-grid-called','QSltz','QldNA','string','mSoAX','create-grid-checks-auth-failed','isPrivateGrid','usage','sendEventToBackend','Mykat','1|4|3|2|5|8|7|0|6','203annAeE','zoivZ','Flag\x20to\x20enable\x20Hub\x20HA','\x20in\x20existing\x20cluster\x20\x27','Ubzxe','16jzensK','browserstack-secret.yaml','PudgS','grid-spawning-failed','loadAll','YPzzC','MurhF','ZHiHQ','kbMrF','replace','XUSPi','length','2371bwnoDa','vudWQ','templates','bwTzm','ruVeh','private-ingress-nginx-controller','CLI\x20run\x20started','FcBCk','split','rdKwu','KgUFs','GFyec','12|7|8|15|11|4|10|9|6|13|1|2|14|0|3|5','turboscale-managed-identity-','hhbvx','uvdTi','sendResourceDataToHST','gridName','clusterRegion','bstackUsername','OstSW','CLI_RUN_STARTED','aRxyt','get-grid-url-auth-failed','managedBy','spec','VQngh','KUtjB','SAyjt','WebSocket','createNamespace','zpbbB','yNwUB','xefHG','stack','WWzwV','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','connectionTimeout','STyBd','MMWRB','pre-spawned-invalid-subnets','hlaxa','existsSync','deleteCluster','EOgRa','init-not-called','ZNeSr','CLI_RUN_FINISHED','ROlTr','Vlkth','Adding\x20Secret\x20Mapping','jUsbd','includes','nPgdl','pJfWW','WpETf','createOtherResources','EAViu','LOG','csVMk','4|1|2|3|0','QxNHq','Create\x20a\x20private/public\x20grid.','zQznZ','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','epdGm','xadJI','https','luYHR','Will\x20be\x20spawning\x20the\x20grid\x20','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','PFqEa','hcCDw','message','hub-ha-deployments-failed','108318VhHYWF','TfAAk','../../config/logger','hubHa','tqoRr','225nNvZgf','Tfcbq','jgyHK','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','epilogue','zYpNE','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','\x20using\x20\x27','ceQMU','dLkEN','cloud-provider','Yqhke','wjxCU','s3bucket','dHFNZ','NCWlu','qSToT','Soayt','browserVersion','readFileSync','GoGXx','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','3736275lYBOrY','pzMMw','isVPCPresent','createdBy','vEuzO','create-grid-checks-null-response','jAzrE','YcNlE','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','KvcJC','aiJKG','UkRNzNYCBU','LSLOC','Grid\x20spawned\x20on\x20the\x20cluster','yQeUe','mYKWK','zNZMW','UiaCE','llqQT','BZIec','cluster-name','skipTlsCertVerify','options','minNodes','11273540fkBHuS','tNXwL','leHos','Create\x20a\x20new\x20Automation\x20grid.','\x20are\x20not\x20present\x20in\x20VPC:\x20','gridProfiles','ingress-nginx','peHrP','czolt','qdLdY','ZeNXF','vLrNE','SwKFU','statusCode','NnWDu','XnBVx','odfqq','GET','Adding\x20Kafka\x20deployment...','grid-name','CoGjf','turboscale-uploader.yaml','UwJra','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','LwQET','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Hwwds','LVUCK','concurrency','Hub\x20HA\x20setup\x20completed\x20successfully.','gridProfileId','user','https://','browserstack','HlGgb','RZINC','100ZErJHl','uuid','template','IsDdg','XXJGi','UNzpx','oqpZh','got','bitnami-redis.yaml','wbxpl','Enabling\x20Hub\x20HA\x20flow','Spawning\x20Grid\x20on\x20the\x20Cluster','NbDth','sdtgc','SpNHB','SrPIS','GbAIu','setupNewCluster','scuhC','reconnecting-websocket','pre-spawned-invalid-vpc','alreadyPresent','kafkaPassword','Zgpmf','boolean','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Fxnwu','Browserstack','Grid\x20profile\x20fetched\x20from\x20backend','qjHCh','vhoNM','../../utils/instrumentationUtils','isClusterPresent','enableHubHa','subnets','36yHhfUd','BmNFw','get-grid-url-non-200','non-aws-azure-cluster','OWONx','NqXqG','RaRve','zNZnC','username','UyMwX','TthIp','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','body','/wd/hub','defaultGridProfile','hubHaNameSpace','KDrnS','bVUli','privateGrid','parse','vGtXP','Cluster\x20','Vicwr','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','pvCwa','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Found\x20VPC:\x20','Creating\x20namespace','setupHubHa','annotations','WPHDo','Naowf','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','eOzUd','mNIqE','AyDzR','VbFTt','delay','JKBuX','osnuC','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','JWKlU','http','xnHen'];a9_0x53c8=function(){return _0x1b0585;};return a9_0x53c8();}const fs=require('fs'),ws=require('ws'),path=require(a9_0x4b4f93(0x1d0)),yaml=require('js-yaml'),ReconnectingWebSocket=require(a9_0x4b4f93(0x155)),got=require(a9_0x4b4f93(0x304)),{v4:uuidv4}=require(a9_0x4b4f93(0x2fe)),webSocketUtils=require(a9_0x4b4f93(0x1b6)),{logger}=require(a9_0x4b4f93(0x2a7)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x4b4f93(0x1ff)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{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('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x4b4f93(0x217)),{createK8sClient}=require(a9_0x4b4f93(0x19b)),{sendInstrumentationEvent}=require(a9_0x4b4f93(0x161));exports[a9_0x4b4f93(0x1a5)]=a9_0x4b4f93(0x1e8),exports['desc']=a9_0x4b4f93(0x2db),exports[a9_0x4b4f93(0x1bc)]=function(_0x14011f){const _0x5d4bec=a9_0x4b4f93,_0xce3142={};_0xce3142[_0x5d4bec(0x26e)]=_0x5d4bec(0x170),_0xce3142[_0x5d4bec(0x2f3)]='string',_0xce3142[_0x5d4bec(0x256)]=_0x5d4bec(0x17c),_0xce3142['KgUFs']=_0x5d4bec(0x1ca),_0xce3142[_0x5d4bec(0x20e)]=_0x5d4bec(0x29a),_0xce3142[_0x5d4bec(0x1f6)]=_0x5d4bec(0x2bf),_0xce3142[_0x5d4bec(0x2c9)]=_0x5d4bec(0x298),_0xce3142['lsbCe']=_0x5d4bec(0x1b1),_0xce3142['sdtgc']=_0x5d4bec(0x15a),_0xce3142[_0x5d4bec(0x25e)]=_0x5d4bec(0x24b),_0xce3142[_0x5d4bec(0x28f)]='Flag\x20to\x20enable\x20cluster\x20auto-upgrade',_0xce3142[_0x5d4bec(0x192)]=_0x5d4bec(0x231);const _0x3c186e=_0xce3142,_0x36f47c={};_0x36f47c[_0x5d4bec(0x237)]=_0x3c186e[_0x5d4bec(0x26e)],_0x36f47c[_0x5d4bec(0x1f5)]=_0x3c186e['Hwwds'];const _0x778515={};_0x778515['description']=_0x3c186e['kbMrF'],_0x778515[_0x5d4bec(0x1f5)]=_0x3c186e['Hwwds'];const _0x437e61={};_0x437e61['description']=_0x3c186e[_0x5d4bec(0x264)],_0x437e61[_0x5d4bec(0x1f5)]=_0x3c186e[_0x5d4bec(0x2f3)];const _0x1245a1={};_0x1245a1[_0x5d4bec(0x237)]=_0x3c186e[_0x5d4bec(0x20e)],_0x1245a1[_0x5d4bec(0x1f5)]=_0x3c186e[_0x5d4bec(0x2f3)];const _0x2cb80a={};_0x2cb80a['description']=_0x3c186e['HMiWQ'],_0x2cb80a['type']=_0x3c186e['Hwwds'];const _0x1ab095={};_0x1ab095[_0x5d4bec(0x237)]=_0x3c186e['KvcJC'],_0x1ab095[_0x5d4bec(0x1f5)]=_0x3c186e[_0x5d4bec(0x2f3)];const _0x427f67={};_0x427f67['description']=_0x3c186e[_0x5d4bec(0x1d3)],_0x427f67[_0x5d4bec(0x1f5)]=_0x3c186e[_0x5d4bec(0x14f)],_0x427f67[_0x5d4bec(0x22f)]=![];const _0x1d8427={};_0x1d8427[_0x5d4bec(0x237)]=_0x3c186e[_0x5d4bec(0x25e)],_0x1d8427[_0x5d4bec(0x1f5)]=_0x3c186e[_0x5d4bec(0x14f)],_0x1d8427[_0x5d4bec(0x22f)]=![];const _0x44d5de={};_0x44d5de[_0x5d4bec(0x237)]=_0x3c186e[_0x5d4bec(0x28f)],_0x44d5de[_0x5d4bec(0x1f5)]=_0x3c186e['sdtgc'],_0x44d5de[_0x5d4bec(0x22f)]=![];const _0x1b8235={};return _0x1b8235[_0x5d4bec(0x2eb)]=_0x36f47c,_0x1b8235[_0x5d4bec(0x216)]=_0x778515,_0x1b8235[_0x5d4bec(0x2d4)]=_0x437e61,_0x1b8235[_0x5d4bec(0x2b4)]=_0x1245a1,_0x1b8235[_0x5d4bec(0x1ce)]=_0x2cb80a,_0x1b8235['private-grid']=_0x1ab095,_0x1b8235[_0x5d4bec(0x234)]=_0x427f67,_0x1b8235[_0x5d4bec(0x1da)]=_0x1d8427,_0x1b8235[_0x5d4bec(0x1b3)]=_0x44d5de,_0x14011f[_0x5d4bec(0x245)](HELP_HEADER_MESSAGE[_0x5d4bec(0x1d4)])[_0x5d4bec(0x2ae)](HELP_FOOTER_MESSAGE)[_0x5d4bec(0x2d6)](_0x1b8235)[_0x5d4bec(0x231)](_0x3c186e[_0x5d4bec(0x192)])['argv'];},exports['handler']=async function(_0x15d755){const _0x6bf6ea=a9_0x4b4f93,_0x328c29={'IsDdg':_0x6bf6ea(0x170),'ErrVf':_0x6bf6ea(0x241),'NLrDo':_0x6bf6ea(0x17c),'hJGtZ':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','kxPId':_0x6bf6ea(0x29a),'UyMwX':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','qjHCh':_0x6bf6ea(0x298),'qtBDV':'Skip\x20insecure\x20cert\x20verification.','xhpyj':_0x6bf6ea(0x15a),'GoGXx':_0x6bf6ea(0x24b),'GursJ':'Flag\x20to\x20enable\x20cluster\x20auto-upgrade','TJDAU':_0x6bf6ea(0x231),'MVGbi':_0x6bf6ea(0x18f),'YPzzC':_0x6bf6ea(0x248),'XMbzm':_0x6bf6ea(0x260),'FcRlt':'Cluster\x20Auto\x20Upgrade\x20is\x20enabled','EAViu':_0x6bf6ea(0x209),'fDKIj':_0x6bf6ea(0x29d),'AyDzR':_0x6bf6ea(0x213),'VPsqE':_0x6bf6ea(0x14c),'BZIec':'Epyd5nXbRK','aRxyt':_0x6bf6ea(0x2cb),'otOMd':_0x6bf6ea(0x2fa),'Zgpmf':_0x6bf6ea(0x23c),'zNZnC':_0x6bf6ea(0x22f),'ROlTr':_0x6bf6ea(0x1cb),'gWNvG':function(_0x1f06a9,_0x5224da){return _0x1f06a9===_0x5224da;},'bwTzm':_0x6bf6ea(0x266),'jUsbd':function(_0x1a1d3c,_0x4a05f2){return _0x1a1d3c!==_0x4a05f2;},'MvhUJ':function(_0x14d113,_0x577fac,_0x3a60ad,_0x105672,_0x279938,_0xf57d88,_0x3346f7,_0x13c690,_0x1bbbfa,_0x3d0872,_0x17a21f,_0xcc9f66,_0x4f7314){return _0x14d113(_0x577fac,_0x3a60ad,_0x105672,_0x279938,_0xf57d88,_0x3346f7,_0x13c690,_0x1bbbfa,_0x3d0872,_0x17a21f,_0xcc9f66,_0x4f7314);},'Ubzxe':function(_0x4ac0ec,_0x3b59b9){return _0x4ac0ec(_0x3b59b9);},'RZINC':function(_0x133465,_0x5122f1){return _0x133465(_0x5122f1);},'UwJra':'azurefile-csi-premium','dbsFg':_0x6bf6ea(0x1e0),'ZNeSr':function(_0x1c9e9e){return _0x1c9e9e();},'kAXKx':function(_0x29d48c){return _0x29d48c();},'fsJRe':_0x6bf6ea(0x176),'vhoNM':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GFyec':function(_0x10ad70,_0x4bd22f,_0x3dbbd1,_0x596b54,_0x27ad99,_0xc4711b,_0x15799c){return _0x10ad70(_0x4bd22f,_0x3dbbd1,_0x596b54,_0x27ad99,_0xc4711b,_0x15799c);},'SpNHB':_0x6bf6ea(0x23e),'jrxUI':_0x6bf6ea(0x287),'WWzwV':function(_0x14bb68,_0x4fab6c,_0xe9f931,_0x59a7da,_0x312f7d,_0x1050e4,_0x17cdea){return _0x14bb68(_0x4fab6c,_0xe9f931,_0x59a7da,_0x312f7d,_0x1050e4,_0x17cdea);},'LtsXi':_0x6bf6ea(0x19f),'eOzUd':_0x6bf6ea(0x21c),'LGeZw':_0x6bf6ea(0x1e7),'epdGm':_0x6bf6ea(0x2df),'yOfNc':_0x6bf6ea(0x230),'tNXwL':_0x6bf6ea(0x23b),'NnWDu':_0x6bf6ea(0x2f0),'ZDEGZ':function(_0x56c7aa,_0x2049a5,_0x22aab7,_0x27b57a,_0xda6696,_0x2d8ece,_0x590c0f,_0x101a78){return _0x56c7aa(_0x2049a5,_0x22aab7,_0x27b57a,_0xda6696,_0x2d8ece,_0x590c0f,_0x101a78);},'Fxnwu':'prespawned-cluster-args-not-passed','XbmZa':_0x6bf6ea(0x2fb),'aITMG':'QbDfK','ZJQfD':_0x6bf6ea(0x1fc),'aiJKG':function(_0x23dfe6,_0x2a21c0,_0x2cf15b,_0x4f91a2,_0x35b1cb,_0x438921,_0x11fff2,_0x3703f0){return _0x23dfe6(_0x2a21c0,_0x2cf15b,_0x4f91a2,_0x35b1cb,_0x438921,_0x11fff2,_0x3703f0);},'NQLgw':_0x6bf6ea(0x168),'IECTL':function(_0x1a9bd8,_0x28a8c1){return _0x1a9bd8===_0x28a8c1;},'wqJKF':_0x6bf6ea(0x14b),'rTpbk':'KHQjQ','yQeUe':function(_0x1f38b3,_0x3502eb,_0x40e86f,_0x702a0d,_0x4bc9c4,_0x21fc59,_0x52d3ac){return _0x1f38b3(_0x3502eb,_0x40e86f,_0x702a0d,_0x4bc9c4,_0x21fc59,_0x52d3ac);},'LSLOC':_0x6bf6ea(0x1c2),'RaRve':_0x6bf6ea(0x275),'pvCwa':_0x6bf6ea(0x154),'uvdTi':function(_0x21f89e,_0x5700b8){return _0x21f89e!==_0x5700b8;},'Soayt':_0x6bf6ea(0x276),'vkWwz':_0x6bf6ea(0x2e9),'OWONx':function(_0x2052a6,_0x569262,_0x12e94d){return _0x2052a6(_0x569262,_0x12e94d);},'xnHen':'yDLip','OuNtZ':_0x6bf6ea(0x261),'nDKqL':function(_0x345feb,_0x3ff1c1){return _0x345feb!==_0x3ff1c1;},'vpBXY':_0x6bf6ea(0x212),'BmNFw':'OWaLB','BKUNO':function(_0x2992f5,_0x2f0559,_0x1d7d45){return _0x2992f5(_0x2f0559,_0x1d7d45);},'jAzrE':function(_0x4f6b58,_0x389d83){return _0x4f6b58===_0x389d83;},'BZukH':function(_0x109207,_0x208873){return _0x109207===_0x208873;},'DHmKv':function(_0x59bf0a,_0x5189c5){return _0x59bf0a!==_0x5189c5;},'AdijE':_0x6bf6ea(0x297),'JWKlU':_0x6bf6ea(0x2f2),'hutYT':function(_0x4c6f28,_0x51d9d9,_0x1efeb9,_0x535e5f,_0x1332ae,_0x3e1d43,_0x5dce75,_0x477f3d){return _0x4c6f28(_0x51d9d9,_0x1efeb9,_0x535e5f,_0x1332ae,_0x3e1d43,_0x5dce75,_0x477f3d);},'UNzpx':_0x6bf6ea(0x2c5),'NAWtm':function(_0x302994,_0x478570){return _0x302994===_0x478570;},'CoGjf':function(_0x14cf3e,_0x29dd6f){return _0x14cf3e===_0x29dd6f;},'daQdv':_0x6bf6ea(0x25b),'xefHG':_0x6bf6ea(0x27e),'QldNA':_0x6bf6ea(0x243),'KDrnS':function(_0x17270c,_0x1739d4){return _0x17270c===_0x1739d4;},'HKLDu':'eeUyA','UmkIH':_0x6bf6ea(0x20c),'eetbW':_0x6bf6ea(0x15e),'rdKwu':_0x6bf6ea(0x2d1),'wpYYk':_0x6bf6ea(0x2e7),'rQkFu':'create-grid-checks-grid-already-exists','rzONz':_0x6bf6ea(0x179),'oqpZh':_0x6bf6ea(0x20d),'ZEkwb':function(_0x38edf0,_0x5ba6d4){return _0x38edf0!==_0x5ba6d4;},'WPHDo':_0x6bf6ea(0x1de),'STyBd':_0x6bf6ea(0x296),'YddwI':function(_0x58f906,_0x49edd3){return _0x58f906===_0x49edd3;},'csVMk':function(_0x26ad36,_0x48a736){return _0x26ad36!==_0x48a736;},'yVyAF':_0x6bf6ea(0x208),'fvqrT':function(_0x173cf5,_0xde6167){return _0x173cf5===_0xde6167;},'QSltz':function(_0x10cd1a,_0x43a9d5){return _0x10cd1a===_0x43a9d5;},'mabqY':_0x6bf6ea(0x299),'PFqEa':_0x6bf6ea(0x2ef),'ceQMU':function(_0x429798,_0x53eaf7,_0xf0ceba,_0xb00fbd,_0x1d3d96,_0x259e95,_0x33e0ae,_0x513c64){return _0x429798(_0x53eaf7,_0xf0ceba,_0xb00fbd,_0x1d3d96,_0x259e95,_0x33e0ae,_0x513c64);},'XybYD':'create-grid-checks-invalid-profile','Tbrge':function(_0xa16e9b,_0x422950){return _0xa16e9b===_0x422950;},'GZhfY':_0x6bf6ea(0x2a2),'upRWH':_0x6bf6ea(0x18b),'osnuC':function(_0x2f32ae,_0x5e39b3){return _0x2f32ae===_0x5e39b3;},'YcNlE':_0x6bf6ea(0x2d2),'czolt':_0x6bf6ea(0x2da),'zpbbB':function(_0x853519,_0x17b67c){return _0x853519!==_0x17b67c;},'NtGrX':'RMbcX','xCqGl':_0x6bf6ea(0x2a9),'NCWlu':function(_0x3f86a5,_0x4b6976,_0x8fec3,_0x1e0685,_0x6614a3,_0x54d4e3,_0xb34e86,_0x12d06b,_0x3948f3,_0x4d0c97,_0x20f32e,_0x3af25d,_0x396400){return _0x3f86a5(_0x4b6976,_0x8fec3,_0x1e0685,_0x6614a3,_0x54d4e3,_0xb34e86,_0x12d06b,_0x3948f3,_0x4d0c97,_0x20f32e,_0x3af25d,_0x396400);},'mSoAX':function(_0x4a50a,_0x55f2a7){return _0x4a50a===_0x55f2a7;},'Vicwr':_0x6bf6ea(0x274),'EOgRa':function(_0x1f59ec,_0x5dcd6a){return _0x1f59ec===_0x5dcd6a;},'wjxCU':function(_0x581248,_0xd1ceb7){return _0x581248!==_0xd1ceb7;},'ZeNXF':_0x6bf6ea(0x1c4),'pJfWW':function(_0x1fca73,_0x1e5dd3){return _0x1fca73!==_0x1e5dd3;},'zYpNE':function(_0x25c572,_0x205f47){return _0x25c572===_0x205f47;},'ZlnMc':'UoMxx','DYbvk':_0x6bf6ea(0x2f4),'UCrfn':function(_0x3378d2,_0x1183e4){return _0x3378d2(_0x1183e4);},'CYwIL':function(_0x43729c,_0x4de232){return _0x43729c===_0x4de232;},'hhbvx':'HTAWS','NbDth':_0x6bf6ea(0x1fd),'hlaxa':function(_0x512c6e,_0x5cb5b){return _0x512c6e!==_0x5cb5b;},'eQAxM':_0x6bf6ea(0x2e1),'FIOka':_0x6bf6ea(0x1a8),'HQakP':_0x6bf6ea(0x1f2),'XXJGi':_0x6bf6ea(0x225),'dHFNZ':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','MurhF':function(_0x2de526,_0x11d213){return _0x2de526!=_0x11d213;},'WYOhI':function(_0x60d39e,_0xebc819){return _0x60d39e!==_0xebc819;},'odfqq':function(_0x42d065,_0x52cd17){return _0x42d065!=_0x52cd17;},'vLrNE':function(_0x40a48b,_0x338699){return _0x40a48b>_0x338699;},'RFvuc':_0x6bf6ea(0x1d9),'aWYfV':function(_0x59a01c,_0x5f3743,_0x411a8e,_0x2ac019,_0xdcdaf5,_0x4bbe93,_0xc6746e,_0x4c6cff){return _0x59a01c(_0x5f3743,_0x411a8e,_0x2ac019,_0xdcdaf5,_0x4bbe93,_0xc6746e,_0x4c6cff);},'wIXfJ':'pre-spawned-subnets-not-selected','kImoe':_0x6bf6ea(0x2b0),'mlfvT':function(_0x4d7277,_0x1aa98b,_0xfa7ab1,_0x27c25b,_0x561c38,_0x111930,_0x53f5b1,_0x22552b){return _0x4d7277(_0x1aa98b,_0xfa7ab1,_0x27c25b,_0x561c38,_0x111930,_0x53f5b1,_0x22552b);},'mNIqE':_0x6bf6ea(0x156),'RtYUo':function(_0x3e99d0,_0x1e60e2){return _0x3e99d0===_0x1e60e2;},'gsUyb':function(_0x543c7f,_0x645a67,_0x5bb022,_0x4e4676,_0x248a41,_0x501681,_0x1918ea,_0x5a863d){return _0x543c7f(_0x645a67,_0x5bb022,_0x4e4676,_0x248a41,_0x501681,_0x1918ea,_0x5a863d);},'whmBL':_0x6bf6ea(0x282),'yNwUB':'4|1|0|3|2','DvPXz':_0x6bf6ea(0x235),'qHVYg':_0x6bf6ea(0x1ad),'dLkEN':function(_0x3a8920,_0x4b9f09){return _0x3a8920===_0x4b9f09;},'TthIp':'Creating\x20Hub\x20HA\x20resources','MMWRB':function(_0x11f907,_0x30ae96,_0x23cf59){return _0x11f907(_0x30ae96,_0x23cf59);},'Vlkth':function(_0x19a95c,_0x4e1a2d,_0x1fed47){return _0x19a95c(_0x4e1a2d,_0x1fed47);},'GbAIu':_0x6bf6ea(0x28c),'zoivZ':_0x6bf6ea(0x22c),'mmqEr':_0x6bf6ea(0x25c),'BImdF':_0x6bf6ea(0x21d),'XUSPi':_0x6bf6ea(0x24f),'qSToT':_0x6bf6ea(0x1b2),'pzMMw':function(_0x5f506d,_0x53bece){return _0x5f506d(_0x53bece);},'zNZMW':function(_0xc748ab,_0x2db062){return _0xc748ab(_0x2db062);},'RxDhb':function(_0x422e9,_0x161710){return _0x422e9(_0x161710);},'vEuzO':function(_0x4f0e80,_0x1828a5,_0x4396ec){return _0x4f0e80(_0x1828a5,_0x4396ec);},'lxexo':'Added\x20Secret\x20Mapping','PudgS':_0x6bf6ea(0x21a),'LwQET':function(_0x26111e,_0xc361d1){return _0x26111e===_0xc361d1;},'heuAe':'Adding\x20Redis\x20deployment...','WbdoF':_0x6bf6ea(0x305),'cFerj':'Added\x20Redis\x20deployment.','WpETf':_0x6bf6ea(0x2ea),'jKgBB':'bitnami-kafka.yaml','Yqhke':'Added\x20Kafka\x20deployment.','NqXqG':_0x6bf6ea(0x20f),'poOwb':_0x6bf6ea(0x2ed),'SdTbt':function(_0x13486f,_0x21428a,_0x4dca52){return _0x13486f(_0x21428a,_0x4dca52);},'CHLpR':_0x6bf6ea(0x1b7),'KjHaF':_0x6bf6ea(0x215),'VbFTt':_0x6bf6ea(0x2f6),'zDoRA':_0x6bf6ea(0x207),'GUxTf':_0x6bf6ea(0x2a4),'Mykat':_0x6bf6ea(0x180),'HDejH':_0x6bf6ea(0x15d),'haXfh':'Namespace\x20Created','SrPIS':'Namespace\x20created','SwKFU':_0x6bf6ea(0x1a0),'izecv':_0x6bf6ea(0x14d),'TfAAk':function(_0x339de1,_0x4aeba0){return _0x339de1===_0x4aeba0;},'luYHR':function(_0x4fbc04,_0x175965,_0x3e19f6,_0x30a688,_0x3a3e9c,_0x4fcc1b,_0x666c8d,_0x4f327d,_0x18710d,_0xb52e46,_0x3f0aaa){return _0x4fbc04(_0x175965,_0x3e19f6,_0x30a688,_0x3a3e9c,_0x4fcc1b,_0x666c8d,_0x4f327d,_0x18710d,_0xb52e46,_0x3f0aaa);},'eOaWl':_0x6bf6ea(0x2cd),'xVsji':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','ZHiHQ':function(_0x25845a,_0x567103,_0x2e3d8a,_0x2b607a,_0x29ce08){return _0x25845a(_0x567103,_0x2e3d8a,_0x2b607a,_0x29ce08);},'JDqrW':_0x6bf6ea(0x25f),'xadJI':_0x6bf6ea(0x203),'KPdOW':_0x6bf6ea(0x2de),'mYKWK':function(_0x123c02,_0x2efe65){return _0x123c02===_0x2efe65;},'Tfcbq':_0x6bf6ea(0x238),'jmyNo':_0x6bf6ea(0x239),'KjiYs':function(_0x1cc55f,_0x1b4e6f){return _0x1cc55f===_0x1b4e6f;},'DANCX':_0x6bf6ea(0x185),'huROs':function(_0x7faf52,_0x22db6c,_0x11237b,_0x1ea57f,_0x1928f0,_0x46cdce,_0x4b3b0a,_0x49ae1a){return _0x7faf52(_0x22db6c,_0x11237b,_0x1ea57f,_0x1928f0,_0x46cdce,_0x4b3b0a,_0x49ae1a);},'jgyHK':_0x6bf6ea(0x271),'GmhJp':function(_0x19af12,_0x19cb11){return _0x19af12!==_0x19cb11;},'Naowf':_0x6bf6ea(0x167),'iJqIo':'Deleting\x20the\x20CloudFormation\x20Stacks','mKSJv':function(_0x50930a,_0x51ffac,_0x28d7a5,_0x4fcba6,_0x18d594,_0x165271){return _0x50930a(_0x51ffac,_0x28d7a5,_0x4fcba6,_0x18d594,_0x165271);},'qhhiL':function(_0x336352,_0x4b7935,_0xceebee,_0x24513c,_0x244f92,_0x41a962,_0xbc1b99){return _0x336352(_0x4b7935,_0xceebee,_0x24513c,_0x244f92,_0x41a962,_0xbc1b99);},'IChKU':_0x6bf6ea(0x251)};let _0x53b82c=![],_0x400c45=![],_0x49b27e,_0x4b8761,_0x5ce6aa,_0x570508,_0x403c43,_0x1181bf,_0x465076,_0xb7310c,_0x274c69,_0x28ca7f,_0x4e2760,_0x264308,_0x5c35b9,_0x479634,_0x3d1838=0x1,_0x10918b=0xe;try{global_registry['requestId']=_0x328c29[_0x6bf6ea(0x288)](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0x6bf6ea(0x284)](_0x328c29[_0x6bf6ea(0x228)](getCredentialsPath))&&(_0x328c29[_0x6bf6ea(0x1d8)](_0x328c29['fsJRe'],_0x328c29[_0x6bf6ea(0x19d)])?(console['error'](_0x328c29[_0x6bf6ea(0x160)]),await _0x328c29[_0x6bf6ea(0x265)](sendInstrumentationEvent,_0x15d755,_0x328c29[_0x6bf6ea(0x150)],messageTypes[_0x6bf6ea(0x1a7)],_0x328c29[_0x6bf6ea(0x1e3)],null,_0x15d755),process[_0x6bf6ea(0x1d7)](0x1)):(_0x2f103c[_0x6bf6ea(0x1ce)]=_0x2f31fb,_0x2c2b6f['cloudProvider']=_0x5bb763,_0x428a05[_0x6bf6ea(0x1a4)]=!![],_0x377914['clusterAutoUpgrade']=_0x363e86[_0x6bf6ea(0x19a)]));await _0x328c29[_0x6bf6ea(0x27d)](sendInstrumentationEvent,_0x15d755,_0x328c29[_0x6bf6ea(0x150)],messageTypes['INFO'],null,null,_0x15d755);const _0x497bc8=JSON[_0x6bf6ea(0x178)](fs[_0x6bf6ea(0x2bd)](_0x328c29[_0x6bf6ea(0x228)](getCredentialsPath)));global_registry[_0x6bf6ea(0x26d)]=_0x497bc8[_0x6bf6ea(0x15d)][_0x6bf6ea(0x16d)],global_registry[_0x6bf6ea(0x23d)]=_0x497bc8['Browserstack'][_0x6bf6ea(0x1ed)];const _0x70769d=WS_ENDPOINT[_0x6bf6ea(0x257)](_0x328c29[_0x6bf6ea(0x1fe)],_0x497bc8[_0x6bf6ea(0x15d)]['username'])[_0x6bf6ea(0x257)](_0x328c29[_0x6bf6ea(0x186)],_0x497bc8[_0x6bf6ea(0x15d)][_0x6bf6ea(0x1ed)]),_0x413744={};_0x413744[_0x6bf6ea(0x277)]=ws,_0x413744[_0x6bf6ea(0x27f)]=0x36ee80,_0x264308=new ReconnectingWebSocket(_0x70769d,[],_0x413744),logger[_0x6bf6ea(0x23a)](_0x328c29['LGeZw']),webSocketUtils['addListeners'](_0x264308,_0x15d755[_0x6bf6ea(0x2f8)],_0x15d755['password']);const _0xebc23e=_0x15d755['gridName']||DEFAULT_GRID_NAME;if(_0x15d755[_0x6bf6ea(0x1af)]||_0x15d755[_0x6bf6ea(0x19c)]||_0x15d755[_0x6bf6ea(0x1ce)]){if(_0x328c29[_0x6bf6ea(0x28d)](_0x328c29[_0x6bf6ea(0x29b)],_0x328c29['epdGm'])){const _0x507ba8={};_0x507ba8['description']=_0x328c29[_0x6bf6ea(0x300)],_0x507ba8['type']=_0x328c29['ErrVf'];const _0x12c3a2={};_0x12c3a2[_0x6bf6ea(0x237)]=_0x328c29['NLrDo'],_0x12c3a2['type']=_0x328c29['ErrVf'];const _0x4aac08={};_0x4aac08[_0x6bf6ea(0x237)]=_0x328c29[_0x6bf6ea(0x196)],_0x4aac08[_0x6bf6ea(0x1f5)]=_0x328c29['ErrVf'];const _0x5501ce={};_0x5501ce['description']=_0x328c29['kxPId'],_0x5501ce[_0x6bf6ea(0x1f5)]=_0x328c29['ErrVf'];const _0x4c611b={};_0x4c611b[_0x6bf6ea(0x237)]=_0x328c29[_0x6bf6ea(0x16e)],_0x4c611b[_0x6bf6ea(0x1f5)]=_0x328c29[_0x6bf6ea(0x200)];const _0x306200={};_0x306200[_0x6bf6ea(0x237)]=_0x328c29[_0x6bf6ea(0x15f)],_0x306200['type']=_0x328c29[_0x6bf6ea(0x200)];const _0x14563e={};_0x14563e['description']=_0x328c29[_0x6bf6ea(0x22b)],_0x14563e['type']=_0x328c29[_0x6bf6ea(0x21e)],_0x14563e['default']=![];const _0x4da048={};_0x4da048['description']=_0x328c29[_0x6bf6ea(0x2be)],_0x4da048[_0x6bf6ea(0x1f5)]=_0x328c29[_0x6bf6ea(0x21e)],_0x4da048[_0x6bf6ea(0x22f)]=![];const _0x2c3908={};_0x2c3908[_0x6bf6ea(0x237)]=_0x328c29[_0x6bf6ea(0x199)],_0x2c3908[_0x6bf6ea(0x1f5)]=_0x328c29[_0x6bf6ea(0x21e)],_0x2c3908[_0x6bf6ea(0x22f)]=![];const _0x1161ef={};return _0x1161ef[_0x6bf6ea(0x2eb)]=_0x507ba8,_0x1161ef['grid-profile']=_0x12c3a2,_0x1161ef['cluster-name']=_0x4aac08,_0x1161ef['cloud-provider']=_0x5501ce,_0x1161ef[_0x6bf6ea(0x1ce)]=_0x4c611b,_0x1161ef[_0x6bf6ea(0x201)]=_0x306200,_0x1161ef[_0x6bf6ea(0x234)]=_0x14563e,_0x1161ef[_0x6bf6ea(0x1da)]=_0x4da048,_0x1161ef[_0x6bf6ea(0x1b3)]=_0x2c3908,_0x55da25[_0x6bf6ea(0x245)](_0x11a0c5[_0x6bf6ea(0x1d4)])['epilogue'](_0x45b5d0)[_0x6bf6ea(0x2d6)](_0x1161ef)[_0x6bf6ea(0x231)](_0x328c29['TJDAU'])['argv'];}else{!(_0x15d755['clusterName']&&_0x15d755[_0x6bf6ea(0x19c)]&&_0x15d755[_0x6bf6ea(0x1ce)])&&(_0x328c29[_0x6bf6ea(0x28d)](_0x328c29[_0x6bf6ea(0x1aa)],_0x328c29[_0x6bf6ea(0x2d9)])?(_0x49b27e=_0x328c29[_0x6bf6ea(0x2e6)],await _0x328c29[_0x6bf6ea(0x1ba)](reportToGalactusAndSendToEDS,_0x15d755,_0x264308,_0x49b27e,messageTypes[_0x6bf6ea(0x1a7)],_0x328c29[_0x6bf6ea(0x150)],_0x328c29[_0x6bf6ea(0x15c)],_0x328c29[_0x6bf6ea(0x293)]),logger[_0x6bf6ea(0x209)](_0x49b27e),process['exit'](0x1)):_0x4e5b7b['isPrivateGrid']=!![]);![AWS,AZURE,GCP][_0x6bf6ea(0x28e)](_0x15d755['cloudProvider']['toLowerCase']())&&(_0x328c29['gWNvG'](_0x328c29['XbmZa'],_0x328c29['aITMG'])?_0x5e3609=_0x328c29['MVGbi']:(_0x49b27e=_0x328c29['ZJQfD'],await _0x328c29['aiJKG'](reportToGalactusAndSendToEDS,_0x15d755,_0x264308,_0x49b27e,messageTypes['ERROR'],_0x328c29[_0x6bf6ea(0x150)],_0x328c29['NQLgw'],_0x328c29[_0x6bf6ea(0x293)]),logger['error'](_0x49b27e),process[_0x6bf6ea(0x1d7)](0x1)));if(_0x15d755[_0x6bf6ea(0x177)]&&_0x328c29[_0x6bf6ea(0x1b5)](_0x15d755[_0x6bf6ea(0x177)]['toLowerCase'](),_0x328c29[_0x6bf6ea(0x159)])){if(_0x328c29[_0x6bf6ea(0x28d)](_0x328c29['wqJKF'],_0x328c29[_0x6bf6ea(0x1d5)]))global_registry[_0x6bf6ea(0x244)]=!![];else{const _0x194433=_0x328c29[_0x6bf6ea(0x253)][_0x6bf6ea(0x262)]('|');let _0xa32912=0x0;while(!![]){switch(_0x194433[_0xa32912++]){case'0':_0x5396c3[_0x6bf6ea(0x1e9)]=_0x13947f[_0x6bf6ea(0x1e9)];continue;case'1':const _0x49545a={};_0x49545a[_0x6bf6ea(0x1f5)]=_0x37b973[_0x6bf6ea(0x26f)],_0x49545a[_0x6bf6ea(0x2a3)]=_0x328c29['XMbzm'],_0xf11d88[_0x6bf6ea(0x246)](_0x174e70,_0x49545a);continue;case'2':const _0xe016ad={};_0xe016ad['type']=_0x522fb2[_0x6bf6ea(0x294)],_0xe016ad[_0x6bf6ea(0x2a3)]=_0x541f93,_0x29e74a[_0x6bf6ea(0x246)](_0x4d96a0,_0xe016ad);continue;case'3':_0x40e658[_0x6bf6ea(0x220)](_0x38dfd4);continue;case'4':_0xdebdc0=_0x6bf6ea(0x1bb)+_0x53057b+'\x20in\x20existing\x20cluster\x20\x27'+_0x52891c+'\x27';continue;case'5':_0x55d80c['cloudProvider']=_0x2927c3;continue;case'6':_0x213403[_0x6bf6ea(0x2bc)]=_0x2748af[_0x6bf6ea(0x2bc)];continue;case'7':_0x16b000['clusterName']=_0x402fd3;continue;case'8':_0x338c77[_0x6bf6ea(0x26c)]=_0x12e359;continue;}break;}}}global_registry[_0x6bf6ea(0x19c)]=_0x15d755['cloudProvider'],global_registry[_0x6bf6ea(0x26c)]=_0x15d755['region'],global_registry[_0x6bf6ea(0x1af)]=_0x15d755[_0x6bf6ea(0x1af)];const _0x45661d=await _0x328c29[_0x6bf6ea(0x2ce)](getCloudProviderObject,_0x15d755['cloudProvider'],_0x15d755[_0x6bf6ea(0x1af)],_0xebc23e,_0x264308,webSocketUtils,_0x15d755),_0x1ec59c=await _0x45661d[_0x6bf6ea(0x162)]();if(!_0x1ec59c)_0x328c29[_0x6bf6ea(0x1d8)](_0x328c29['LSLOC'],_0x328c29[_0x6bf6ea(0x2cc)])?(logger['info']('Cluster:\x20'+_0x15d755[_0x6bf6ea(0x1af)]+_0x6bf6ea(0x236)),_0x53b82c=![],_0x400c45=!![]):_0x48088d[_0x6bf6ea(0x220)](_0x328c29[_0x6bf6ea(0x1df)]);else{if(_0x328c29[_0x6bf6ea(0x28d)](_0x328c29[_0x6bf6ea(0x16b)],_0x328c29[_0x6bf6ea(0x17d)]))_0x53b82c=!![];else{const _0x28d979={};_0x28d979[_0x6bf6ea(0x1f5)]=_0xf9a579[_0x6bf6ea(0x294)],_0x28d979[_0x6bf6ea(0x2a3)]=_0x355dfa,_0x10ad9a[_0x6bf6ea(0x246)](_0x158251,_0x28d979,_0x328c29['EAViu'],!![]);}}_0x5ce6aa=_0x15d755[_0x6bf6ea(0x1af)],_0x4b8761=_0x15d755['cloudProvider'][_0x6bf6ea(0x21b)](),_0x570508=_0x15d755[_0x6bf6ea(0x1ce)];}}else _0x15d755['gridProfile']&&(_0x328c29[_0x6bf6ea(0x269)](_0x328c29[_0x6bf6ea(0x2bb)],_0x328c29['Soayt'])?(_0x47ce0e=_0x48022f[_0x6bf6ea(0x1be)],_0x48b4c8=_0x328c29[_0x6bf6ea(0x224)]):global_registry[_0x6bf6ea(0x1e2)]=_0x15d755[_0x6bf6ea(0x1e2)]);global_registry[_0x6bf6ea(0x26b)]=_0x15d755[_0x6bf6ea(0x26b)];const _0x27b613={'method':_0x328c29[_0x6bf6ea(0x206)],'headers':_0x328c29[_0x6bf6ea(0x169)](getAuthHeader,_0x497bc8[_0x6bf6ea(0x15d)][_0x6bf6ea(0x16d)],_0x497bc8['Browserstack'][_0x6bf6ea(0x1ed)]),'throwHttpErrors':![]},_0x19df50={};_0x19df50['gridName']=_0xebc23e;const _0x1a5a18=_0x19df50;_0x400c45&&(_0x328c29[_0x6bf6ea(0x1b5)](_0x328c29[_0x6bf6ea(0x190)],_0x328c29[_0x6bf6ea(0x218)])?_0x2e3cda[_0x6bf6ea(0x220)](_0x6bf6ea(0x1c1)+_0x3231e8[_0x6bf6ea(0x1cf)](_0x2c93c7)+'\x20'):(_0x1a5a18[_0x6bf6ea(0x1ce)]=_0x570508,_0x1a5a18[_0x6bf6ea(0x19c)]=_0x4b8761,_0x1a5a18[_0x6bf6ea(0x1a4)]=!![],_0x1a5a18[_0x6bf6ea(0x1b9)]=_0x15d755[_0x6bf6ea(0x19a)]));if(_0x15d755['clusterAutoupgrade']){if(_0x328c29[_0x6bf6ea(0x214)](_0x328c29[_0x6bf6ea(0x1fa)],_0x328c29[_0x6bf6ea(0x166)]))logger[_0x6bf6ea(0x220)](_0x328c29[_0x6bf6ea(0x1df)]);else{const _0x2584bb=_0x328c29[_0x6bf6ea(0x188)][_0x6bf6ea(0x262)]('|');let _0x5338f3=0x0;while(!![]){switch(_0x2584bb[_0x5338f3++]){case'0':_0xdcce70[_0x6bf6ea(0x163)]=!![];continue;case'1':_0x1f7461[_0x6bf6ea(0x220)](_0x328c29[_0x6bf6ea(0x210)]);continue;case'2':_0x4a51ba['kafkaPassword']=_0x328c29[_0x6bf6ea(0x2d3)];continue;case'3':_0x425887[_0x6bf6ea(0x1b0)]=_0x328c29['aRxyt'];continue;case'4':_0x478e4b[_0x6bf6ea(0x174)]=_0x328c29['otOMd'];continue;}break;}}}const _0x471466=_0x6bf6ea(0x2f9)+AG_API_URL+'/packages/cli/create-grid-checks',_0x44513c={'searchParams':_0x1a5a18,'throwHttpErrors':![],..._0x27b613},_0x1dc792=_0x44513c,_0x4d2819=await _0x328c29[_0x6bf6ea(0x1f0)](got,_0x471466,_0x1dc792);if(_0x328c29['jAzrE'](_0x4d2819,null)||_0x328c29[_0x6bf6ea(0x194)](_0x4d2819,undefined)){if(_0x328c29[_0x6bf6ea(0x22d)](_0x328c29['AdijE'],_0x328c29['AdijE'])){const _0x32a440={'azure.workload.identity/use':_0x328c29[_0x6bf6ea(0x159)],..._0x3be940[0x0][_0x6bf6ea(0x273)][_0x6bf6ea(0x2ff)][_0x6bf6ea(0x197)][_0x6bf6ea(0x1f7)]};_0x2729e0[0x0][_0x6bf6ea(0x273)][_0x6bf6ea(0x2ff)][_0x6bf6ea(0x197)][_0x6bf6ea(0x1f7)]=_0x32a440,_0x4acd15[0x0][_0x6bf6ea(0x273)]['template'][_0x6bf6ea(0x273)]['serviceAccountName']=_0x328c29[_0x6bf6ea(0x16c)];}else _0x49b27e=_0x328c29[_0x6bf6ea(0x18e)],await _0x328c29[_0x6bf6ea(0x232)](reportToGalactusAndSendToEDS,_0x15d755,_0x264308,_0x49b27e,messageTypes[_0x6bf6ea(0x1a7)],_0x328c29[_0x6bf6ea(0x150)],_0x328c29[_0x6bf6ea(0x302)],_0x328c29[_0x6bf6ea(0x293)]),logger[_0x6bf6ea(0x209)](_0x49b27e),process[_0x6bf6ea(0x1d7)](0x1);}_0x328c29[_0x6bf6ea(0x1ab)](_0x4d2819['statusCode'],0x191)&&(_0x328c29[_0x6bf6ea(0x2ec)](_0x328c29[_0x6bf6ea(0x1d6)],_0x328c29[_0x6bf6ea(0x1d6)])?(_0x49b27e=_0x328c29[_0x6bf6ea(0x27b)],await _0x328c29[_0x6bf6ea(0x1ba)](reportToGalactusAndSendToEDS,_0x15d755,_0x264308,_0x49b27e,messageTypes[_0x6bf6ea(0x1a7)],_0x328c29['SpNHB'],_0x328c29[_0x6bf6ea(0x240)],_0x328c29[_0x6bf6ea(0x293)]),logger[_0x6bf6ea(0x209)](_0x49b27e),process[_0x6bf6ea(0x1d7)](0x1)):_0x5cc714=null);_0x328c29['jUsbd'](_0x4d2819[_0x6bf6ea(0x2e5)],0xc8)&&(_0x328c29[_0x6bf6ea(0x175)](_0x328c29['HKLDu'],_0x328c29['HKLDu'])?(_0x49b27e=_0x6bf6ea(0x15b)+JSON[_0x6bf6ea(0x1cf)](_0x4d2819[_0x6bf6ea(0x171)]),await _0x328c29[_0x6bf6ea(0x2ca)](reportToGalactusAndSendToEDS,_0x15d755,_0x264308,_0x49b27e,messageTypes[_0x6bf6ea(0x1a7)],_0x328c29[_0x6bf6ea(0x150)],_0x328c29['UmkIH'],_0x328c29[_0x6bf6ea(0x293)]),logger[_0x6bf6ea(0x209)](_0x49b27e),process[_0x6bf6ea(0x1d7)](0x1)):(_0x2021f4[_0x6bf6ea(0x220)](_0x6bf6ea(0x1a1)+_0x14921e[_0x6bf6ea(0x1af)]+_0x6bf6ea(0x236)),_0x57823f=![],_0x36f67a=!![]));const _0x57d79b=JSON[_0x6bf6ea(0x178)](_0x4d2819['body']),_0xd3d3d6={};_0xd3d3d6[_0x6bf6ea(0x1f5)]=WS_EVENTS[_0x6bf6ea(0x26f)],_0xd3d3d6[_0x6bf6ea(0x2a3)]=_0x328c29[_0x6bf6ea(0x1c9)],webSocketUtils['sendEventToBackend'](_0x264308,_0xd3d3d6);const _0x37abb1={};_0x37abb1[_0x6bf6ea(0x1f5)]=WS_EVENTS[_0x6bf6ea(0x294)],_0x37abb1[_0x6bf6ea(0x2a3)]=_0x328c29[_0x6bf6ea(0x1cc)],webSocketUtils['sendEventToBackend'](_0x264308,_0x37abb1);_0x57d79b[_0x6bf6ea(0x157)]&&(_0x328c29['DHmKv'](_0x328c29[_0x6bf6ea(0x263)],_0x328c29[_0x6bf6ea(0x1e1)])?(_0x49b27e='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0xebc23e+_0x6bf6ea(0x2ad),await _0x328c29[_0x6bf6ea(0x232)](reportToGalactusAndSendToEDS,_0x15d755,_0x264308,_0x49b27e,messageTypes[_0x6bf6ea(0x1a7)],_0x328c29[_0x6bf6ea(0x150)],_0x328c29[_0x6bf6ea(0x1ee)],_0x328c29[_0x6bf6ea(0x293)]),logger[_0x6bf6ea(0x209)](_0x49b27e),process[_0x6bf6ea(0x1d7)](0x1)):_0x51b42f=null);const _0x439028=_0x57d79b[_0x6bf6ea(0x2dd)];let _0xaa2e92=_0x439028[_0x57d79b[_0x6bf6ea(0x173)]];if(_0x15d755[_0x6bf6ea(0x1e2)]){if(_0x328c29[_0x6bf6ea(0x28d)](_0x328c29[_0x6bf6ea(0x1e4)],_0x328c29[_0x6bf6ea(0x303)]))_0xaa2e92=_0x439028[_0x15d755[_0x6bf6ea(0x1e2)]];else{const _0x5e2dd4={};_0x5e2dd4[_0x6bf6ea(0x1f5)]=_0x5dde33[_0x6bf6ea(0x294)],_0x5e2dd4[_0x6bf6ea(0x2a3)]=_0x6bf6ea(0x17a)+_0x31021b+_0x6bf6ea(0x18d),_0x28bdf1[_0x6bf6ea(0x246)](_0xf64d1,_0x5e2dd4,_0x328c29[_0x6bf6ea(0x28a)]),_0x4212d2['info'](_0x6bf6ea(0x17a)+_0x24d25a+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x2aac97=!![];if(_0x328c29['gWNvG'](_0x4e6bd6,!![]))throw new _0x3628ce(_0x6bf6ea(0x17a)+_0x1f0ab6+_0x6bf6ea(0x2c8));}}global_registry['enableHubHa']=![];if(_0x15d755[_0x6bf6ea(0x2a8)]){if(_0x328c29[_0x6bf6ea(0x1a3)](_0x328c29[_0x6bf6ea(0x183)],_0x328c29[_0x6bf6ea(0x183)]))throw new _0x1d1cdb(_0x6bf6ea(0x17a)+_0x1cc9ec+_0x6bf6ea(0x2c8));else{const _0x250f2f=_0x328c29[_0x6bf6ea(0x280)]['split']('|');let _0x48380d=0x0;while(!![]){switch(_0x250f2f[_0x48380d++]){case'0':global_registry[_0x6bf6ea(0x163)]=!![];continue;case'1':global_registry[_0x6bf6ea(0x174)]=_0x328c29[_0x6bf6ea(0x20b)];continue;case'2':global_registry[_0x6bf6ea(0x1b0)]=_0x328c29[_0x6bf6ea(0x270)];continue;case'3':global_registry[_0x6bf6ea(0x158)]=_0x328c29[_0x6bf6ea(0x2d3)];continue;case'4':logger['info'](_0x328c29[_0x6bf6ea(0x210)]);continue;}break;}}}if(_0x328c29['YddwI'](_0x53b82c,![])&&_0x328c29[_0x6bf6ea(0x2ec)](_0x400c45,![])){if(_0x328c29[_0x6bf6ea(0x295)](_0x328c29['yVyAF'],_0x328c29[_0x6bf6ea(0x1f9)])){const _0x569512=_0x328c29[_0x6bf6ea(0x25d)][_0x6bf6ea(0x262)]('|');let _0x1c00e1=0x0;while(!![]){switch(_0x569512[_0x1c00e1++]){case'0':_0x328c29['jUsbd'](_0x1d5fc3[_0x6bf6ea(0x177)],_0x3d6f0c)&&_0x1c6279[_0x6bf6ea(0x177)]&&(_0x5e962e[_0x6bf6ea(0x244)]=!![]);continue;case'1':_0x5834f2=_0x57bfe0['maxNodes'];continue;case'2':_0x1acbdf=_0x542834[_0x6bf6ea(0x1e9)];continue;case'3':_0x328c29[_0x6bf6ea(0x1e5)](_0x47c82c,_0x1fff45,_0x4fc10a,_0x19e8c9,_0x92826b,_0x279a3a,_0x286bbf,_0x30e5dc,_0x317ecb,_0x277c98,_0x35728d,_0x494520,_0x36a630[_0x6bf6ea(0x19a)]);continue;case'4':_0x1a410e=null;continue;case'5':_0x330d83['enableHubHa']&&_0x328c29['Ubzxe'](_0xb5e3f2,_0x634f68[_0x6bf6ea(0x1ea)]);continue;case'6':_0x225f82=_0x41f956['s3bucket'];continue;case'7':_0xd648ed[_0x6bf6ea(0x220)](_0x58fa42);continue;case'8':const _0x24ac39={};_0x24ac39['type']=_0x395cf1[_0x6bf6ea(0x294)],_0x24ac39[_0x6bf6ea(0x2a3)]=_0x4248d3,_0x39cd09[_0x6bf6ea(0x246)](_0x181bfc,_0x24ac39);continue;case'9':_0x2d6e4b=null;continue;case'10':_0x1bb930=null;continue;case'11':_0x3c065b=_0x317d60['instanceType'];continue;case'12':_0xe867a7=_0x6bf6ea(0x1bf)+_0x509964;continue;case'13':_0x43785a=_0x25827e[_0x6bf6ea(0x2d7)];continue;case'14':_0x4449f4=_0x264c8f['browserVersion'];continue;case'15':_0x28d906=_0x37d0b2[_0x6bf6ea(0x2f5)];continue;}break;}}else{_0x328c29['fvqrT'](_0xaa2e92,undefined)&&(_0x328c29[_0x6bf6ea(0x23f)](_0x328c29['mabqY'],_0x328c29['mabqY'])?(_0x49b27e=_0x328c29[_0x6bf6ea(0x2a1)],await _0x328c29[_0x6bf6ea(0x2b2)](reportToGalactusAndSendToEDS,_0x15d755,_0x264308,_0x49b27e,messageTypes[_0x6bf6ea(0x1a7)],_0x328c29['SpNHB'],_0x328c29['XybYD'],_0x328c29[_0x6bf6ea(0x293)]),logger['error'](_0x49b27e),process[_0x6bf6ea(0x1d7)](0x1)):_0x328c29[_0x6bf6ea(0x2fc)](_0xff1087,_0x3a4e59[_0x6bf6ea(0x1cd)]));global_registry[_0x6bf6ea(0x2f7)]=_0xaa2e92['id'],_0x49b27e=_0x6bf6ea(0x29f)+_0xebc23e+_0x6bf6ea(0x2b1)+_0xaa2e92['name']+_0x6bf6ea(0x1c5),logger[_0x6bf6ea(0x220)](_0x49b27e);const _0x17c27a={};_0x17c27a[_0x6bf6ea(0x1f5)]=WS_EVENTS[_0x6bf6ea(0x294)],_0x17c27a[_0x6bf6ea(0x2a3)]=_0x49b27e,webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0x17c27a),_0x4b8761=_0xaa2e92[_0x6bf6ea(0x19c)],_0x5ce6aa=_0xaa2e92[_0x6bf6ea(0x1af)],_0x570508=_0xaa2e92[_0x6bf6ea(0x1ce)],_0x403c43=_0xaa2e92[_0x6bf6ea(0x2f5)],_0x1181bf=_0xaa2e92['instanceType'],_0x465076=_0xaa2e92[_0x6bf6ea(0x21f)],_0xb7310c=_0xaa2e92['securityGroups'],_0x274c69=_0xaa2e92[_0x6bf6ea(0x164)],_0x28ca7f=_0xaa2e92[_0x6bf6ea(0x2b7)],_0x3d1838=_0xaa2e92['minNodes'],_0x10918b=_0xaa2e92[_0x6bf6ea(0x227)],_0x5c35b9=_0x57d79b[_0x6bf6ea(0x1e9)],_0x479634=_0x57d79b['browserVersion'],_0x465076&&_0x328c29[_0x6bf6ea(0x233)](_0x465076[_0x6bf6ea(0x259)],0x0)&&(_0x328c29['nDKqL'](_0x328c29[_0x6bf6ea(0x1e6)],_0x328c29['upRWH'])?_0x465076=null:_0x2d7f94[_0x6bf6ea(0x244)]=!![]),_0x274c69&&_0x328c29[_0x6bf6ea(0x18c)](_0x274c69[_0x6bf6ea(0x259)],0x0)&&(_0x328c29['KDrnS'](_0x328c29[_0x6bf6ea(0x2c7)],_0x328c29[_0x6bf6ea(0x2e0)])?_0x3b05ac=_0x42e828[_0x419650[_0x6bf6ea(0x1e2)]]:_0x274c69=null),_0x328c29[_0x6bf6ea(0x279)](_0xaa2e92[_0x6bf6ea(0x177)],undefined)&&_0xaa2e92[_0x6bf6ea(0x177)]&&(_0x328c29[_0x6bf6ea(0x233)](_0x328c29['NtGrX'],_0x328c29['xCqGl'])?_0x51a486=_0x328c29[_0x6bf6ea(0x2ee)]:global_registry['isPrivateGrid']=!![]),_0x328c29[_0x6bf6ea(0x2b9)](updateGlobalRegistryWithConfig,_0x4b8761,_0x5ce6aa,_0x570508,_0x403c43,_0x1181bf,_0x28ca7f,_0xaa2e92,_0x5c35b9,_0x479634,_0x3d1838,_0x10918b,_0x15d755[_0x6bf6ea(0x19a)]),global_registry[_0x6bf6ea(0x163)]&&(_0x328c29[_0x6bf6ea(0x242)](_0x328c29[_0x6bf6ea(0x17b)],_0x328c29[_0x6bf6ea(0x17b)])?_0x328c29[_0x6bf6ea(0x24d)](updateGlobalRegistryForHubHa,_0x57d79b[_0x6bf6ea(0x1cd)]):_0x244916[_0x6bf6ea(0x220)](_0x6bf6ea(0x17f)+_0x4ecc94+'\x20'));}}else{if(_0x328c29[_0x6bf6ea(0x286)](_0x400c45,!![])){if(_0x328c29[_0x6bf6ea(0x2b6)](_0x328c29[_0x6bf6ea(0x2e2)],_0x328c29['ZeNXF']))_0x534e14=_0x328c29['dbsFg'];else{_0x49b27e=_0x6bf6ea(0x1bf)+_0xebc23e,logger[_0x6bf6ea(0x220)](_0x49b27e);const _0xcaa3e8={};_0xcaa3e8[_0x6bf6ea(0x1f5)]=WS_EVENTS[_0x6bf6ea(0x294)],_0xcaa3e8[_0x6bf6ea(0x2a3)]=_0x49b27e,webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0xcaa3e8),_0x403c43=_0xaa2e92[_0x6bf6ea(0x2f5)],_0x1181bf=_0xaa2e92['instanceType'],_0x465076=null,_0xb7310c=null,_0x274c69=null,_0x28ca7f=_0xaa2e92[_0x6bf6ea(0x2b7)],_0x3d1838=_0xaa2e92[_0x6bf6ea(0x2d7)],_0x10918b=_0xaa2e92[_0x6bf6ea(0x227)],_0x5c35b9=_0x57d79b[_0x6bf6ea(0x1e9)],_0x479634=_0x57d79b[_0x6bf6ea(0x2bc)],_0x328c29[_0x6bf6ea(0x290)](_0xaa2e92[_0x6bf6ea(0x177)],undefined)&&_0xaa2e92[_0x6bf6ea(0x177)]&&(_0x328c29[_0x6bf6ea(0x2af)](_0x328c29['ZlnMc'],_0x328c29[_0x6bf6ea(0x1f1)])?global_registry['isPrivateGrid']=!![]:_0x328c29['Ubzxe'](_0x59c2a8,_0x4230ec[_0x6bf6ea(0x1ea)])),_0x328c29[_0x6bf6ea(0x2b9)](updateGlobalRegistryWithConfig,_0x4b8761,_0x5ce6aa,_0x570508,_0x403c43,_0x1181bf,_0x28ca7f,_0xaa2e92,_0x5c35b9,_0x479634,_0x3d1838,_0x10918b,_0x15d755[_0x6bf6ea(0x19a)]),global_registry[_0x6bf6ea(0x163)]&&(_0x328c29[_0x6bf6ea(0x279)](_0x328c29['DYbvk'],_0x328c29['DYbvk'])?_0x30c27e[_0x6bf6ea(0x26a)]():_0x328c29['UCrfn'](updateGlobalRegistryForHubHa,_0x57d79b['kafkaUploader']));}}else{if(_0x328c29['CYwIL'](_0x328c29[_0x6bf6ea(0x268)],_0x328c29[_0x6bf6ea(0x268)])){const _0x103d6a=_0x328c29[_0x6bf6ea(0x14e)][_0x6bf6ea(0x262)]('|');let _0x737930=0x0;while(!![]){switch(_0x103d6a[_0x737930++]){case'0':const _0x1a2fac={};_0x1a2fac[_0x6bf6ea(0x1f5)]=WS_EVENTS[_0x6bf6ea(0x294)],_0x1a2fac[_0x6bf6ea(0x2a3)]=_0x49b27e,webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0x1a2fac);continue;case'1':global_registry[_0x6bf6ea(0x26c)]=_0x570508;continue;case'2':global_registry[_0x6bf6ea(0x2bc)]=_0x57d79b['browserVersion'];continue;case'3':global_registry[_0x6bf6ea(0x19c)]=_0x4b8761;continue;case'4':_0x49b27e=_0x6bf6ea(0x1bb)+_0xebc23e+_0x6bf6ea(0x24c)+_0x5ce6aa+'\x27';continue;case'5':logger[_0x6bf6ea(0x220)](_0x49b27e);continue;case'6':const _0x21f8fb={};_0x21f8fb[_0x6bf6ea(0x1f5)]=WS_EVENTS[_0x6bf6ea(0x26f)],_0x21f8fb[_0x6bf6ea(0x2a3)]=_0x328c29[_0x6bf6ea(0x1c9)],webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0x21f8fb);continue;case'7':global_registry['clusterName']=_0x5ce6aa;continue;case'8':global_registry[_0x6bf6ea(0x1e9)]=_0x57d79b[_0x6bf6ea(0x1e9)];continue;}break;}}else _0x36a3d8=!![];}}const _0xd0e9ec=await _0x328c29[_0x6bf6ea(0x265)](getCloudProviderObject,_0x4b8761,_0x5ce6aa,_0xebc23e,_0x264308,webSocketUtils,_0x15d755);_0x328c29[_0x6bf6ea(0x2b6)](_0x4b8761,AZURE)&&(_0x328c29[_0x6bf6ea(0x283)](_0x328c29['eQAxM'],_0x328c29[_0x6bf6ea(0x1b4)])?_0xd0e9ec['sendResourceDataToHST']():_0x28d4c1[_0x6bf6ea(0x209)](_0x6bf6ea(0x2a0)+_0x4323fc+'\x20\x0a'+_0x4ed747[_0x6bf6ea(0x1cf)](_0x5cd5b1[_0x6bf6ea(0x27c)])));let _0xa375cb;if(_0x328c29[_0x6bf6ea(0x194)](_0x53b82c,![])){_0x49b27e=_0x6bf6ea(0x1f3)+_0x570508+').';const _0x19c298={};_0x19c298[_0x6bf6ea(0x1f5)]=WS_EVENTS['LOG'],_0x19c298['message']=_0x49b27e,webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0x19c298),logger[_0x6bf6ea(0x220)](_0x49b27e);const _0x1f004e=await _0xd0e9ec['isClusterPresent']();if(_0x1f004e){if(_0x328c29['hlaxa'](_0x328c29[_0x6bf6ea(0x1bd)],_0x328c29[_0x6bf6ea(0x1bd)]))_0x3a5c60[_0x6bf6ea(0x1e2)]=_0x3bacca[_0x6bf6ea(0x1e2)];else{const _0xf868b3={};_0xf868b3['type']=WS_EVENTS[_0x6bf6ea(0x294)],_0xf868b3[_0x6bf6ea(0x2a3)]=_0x6bf6ea(0x17a)+_0x5ce6aa+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0xf868b3,_0x328c29[_0x6bf6ea(0x28a)]),logger[_0x6bf6ea(0x220)]('Cluster\x20'+_0x5ce6aa+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x53b82c=!![];if(_0x328c29['QSltz'](_0x400c45,!![])){if(_0x328c29[_0x6bf6ea(0x283)](_0x328c29[_0x6bf6ea(0x301)],_0x328c29[_0x6bf6ea(0x301)]))_0x3508d8['isPrivateGrid']=!![];else throw new Error(_0x6bf6ea(0x17a)+_0x5ce6aa+_0x6bf6ea(0x2c8));}}}else{const _0x1ba8a1={};_0x1ba8a1['type']=WS_EVENTS[_0x6bf6ea(0x294)],_0x1ba8a1['message']=_0x328c29[_0x6bf6ea(0x2b8)],webSocketUtils['sendEventToBackend'](_0x264308,_0x1ba8a1),logger[_0x6bf6ea(0x220)](_0x328c29[_0x6bf6ea(0x2b8)]);const _0xbb9fe6=_0x328c29[_0x6bf6ea(0x254)](_0x465076,null)&&_0x328c29['WYOhI'](_0x465076,undefined),_0x3733cf=_0x328c29[_0x6bf6ea(0x2e8)](_0x274c69,null)&&_0x328c29[_0x6bf6ea(0x269)](_0x274c69,undefined)&&_0x328c29[_0x6bf6ea(0x2e3)](_0x274c69['length'],0x0);if(_0xbb9fe6){_0x328c29[_0x6bf6ea(0x233)](_0x3733cf,![])&&(_0x49b27e=_0x328c29['RFvuc'],await _0x328c29['aWYfV'](reportToGalactusAndSendToEDS,_0x15d755,_0x264308,_0x49b27e,messageTypes[_0x6bf6ea(0x1a7)],_0x328c29['SpNHB'],_0x328c29['wIXfJ'],_0x328c29[_0x6bf6ea(0x293)]),logger['error'](_0x49b27e),process['exit'](0x1));const _0x3378a8=await _0xd0e9ec[_0x6bf6ea(0x2c2)](_0x465076);_0x328c29[_0x6bf6ea(0x1b5)](_0x3378a8,![])?(_0x49b27e=_0x328c29[_0x6bf6ea(0x202)],await _0x328c29[_0x6bf6ea(0x1dc)](reportToGalactusAndSendToEDS,_0x15d755,_0x264308,_0x49b27e,messageTypes[_0x6bf6ea(0x1a7)],_0x328c29[_0x6bf6ea(0x150)],_0x328c29[_0x6bf6ea(0x187)],_0x328c29[_0x6bf6ea(0x293)]),logger[_0x6bf6ea(0x209)](_0x49b27e),process[_0x6bf6ea(0x1d7)](0x1)):logger['info']('Found\x20VPC:\x20'+_0x465076+'\x20');const _0x1b0009=await _0xd0e9ec['isSubnetsValid'](_0x274c69,_0x465076);_0x328c29['RtYUo'](_0x1b0009[0x0],![])?(_0x49b27e='Subnets:\x20'+JSON[_0x6bf6ea(0x1cf)](_0x1b0009[0x1])+_0x6bf6ea(0x2dc)+_0x465076+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x328c29['gsUyb'](reportToGalactusAndSendToEDS,_0x15d755,_0x264308,_0x49b27e,messageTypes[_0x6bf6ea(0x1a7)],_0x328c29[_0x6bf6ea(0x150)],_0x328c29[_0x6bf6ea(0x1c6)],_0x328c29['EAViu']),logger['error'](_0x49b27e),process[_0x6bf6ea(0x1d7)](0x1)):logger[_0x6bf6ea(0x220)](_0x6bf6ea(0x1c1)+JSON['stringify'](_0x274c69)+'\x20'),[_0x465076,_0x274c69]=await _0xd0e9ec[_0x6bf6ea(0x153)](_0x465076,_0x274c69);}else{const _0x402624=_0x328c29[_0x6bf6ea(0x27a)][_0x6bf6ea(0x262)]('|');let _0x1b3666=0x0;while(!![]){switch(_0x402624[_0x1b3666++]){case'0':[_0x465076,_0x274c69]=await _0xd0e9ec[_0x6bf6ea(0x153)](_0x465076,_0x274c69);continue;case'1':logger['info'](_0x328c29[_0x6bf6ea(0x20a)]);continue;case'2':logger['info'](_0x328c29[_0x6bf6ea(0x1a9)]);continue;case'3':const _0x104625={};_0x104625[_0x6bf6ea(0x1f5)]=WS_EVENTS[_0x6bf6ea(0x294)],_0x104625[_0x6bf6ea(0x2a3)]=_0x328c29[_0x6bf6ea(0x1a9)],webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0x104625);continue;case'4':const _0x3711e1={};_0x3711e1[_0x6bf6ea(0x1f5)]=WS_EVENTS['LOG'],_0x3711e1[_0x6bf6ea(0x2a3)]=_0x328c29['DvPXz'],webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0x3711e1);continue;}break;}}}}_0x53b82c&&_0x328c29[_0x6bf6ea(0x2c6)](_0x4b8761,AZURE)&&(await _0xd0e9ec[_0x6bf6ea(0x222)](),await _0xd0e9ec[_0x6bf6ea(0x292)]());const [_0x59f72a,_0x358e4e,_0x12e22e,_0x168285,_0x3a4c20,_0x371f7e,_0x1bed41]=await _0x328c29[_0x6bf6ea(0x1f0)](createK8sClient,_0xd0e9ec,_0x15d755[_0x6bf6ea(0x2d5)]);_0x328c29[_0x6bf6ea(0x242)](_0x53b82c,![])&&_0x328c29[_0x6bf6ea(0x1d8)](_0x4b8761,AWS)&&(global_registry['isNewAWSCluster']=!![],_0xa375cb=await _0xd0e9ec[_0x6bf6ea(0x1dd)](_0x59f72a,_0x15d755));if(_0x328c29[_0x6bf6ea(0x2b3)](_0x53b82c,![])&&global_registry[_0x6bf6ea(0x163)])try{await _0xd0e9ec[_0x6bf6ea(0x181)](_0x371f7e,_0x1bed41,_0x15d755,_0x465076,_0x274c69);const _0x220a33={};_0x220a33[_0x6bf6ea(0x1f5)]=WS_EVENTS[_0x6bf6ea(0x294)],_0x220a33['message']=_0x328c29[_0x6bf6ea(0x16f)],webSocketUtils['sendEventToBackend'](_0x264308,_0x220a33);!await _0x328c29[_0x6bf6ea(0x281)](namespaceExists,_0x59f72a,global_registry[_0x6bf6ea(0x174)])&&await _0x328c29[_0x6bf6ea(0x28b)](createNamespace,_0x59f72a,global_registry['hubHaNameSpace']);logger[_0x6bf6ea(0x220)](_0x328c29[_0x6bf6ea(0x152)]);let _0x705d5a=await fs[_0x6bf6ea(0x1c0)](path[_0x6bf6ea(0x1ae)](__dirname,_0x328c29['zoivZ'],_0x328c29[_0x6bf6ea(0x1b8)],_0x328c29['BImdF'],_0x328c29[_0x6bf6ea(0x258)]),_0x328c29['qSToT']);_0x705d5a=_0x705d5a[_0x6bf6ea(0x257)](/<RedisClientPassword>/g,_0x328c29[_0x6bf6ea(0x2c1)](encodeBase64,global_registry['redisPassword'])),_0x705d5a=_0x705d5a[_0x6bf6ea(0x257)](/<KafkaClientPassword>/g,_0x328c29[_0x6bf6ea(0x2d0)](encodeBase64,global_registry[_0x6bf6ea(0x158)])),_0x705d5a=_0x705d5a['replace'](/<BstackUsername>/g,_0x328c29[_0x6bf6ea(0x2fc)](encodeBase64,global_registry[_0x6bf6ea(0x26d)])),_0x705d5a=_0x705d5a['replace'](/<BstackAccessKey>/g,_0x328c29['RxDhb'](encodeBase64,global_registry[_0x6bf6ea(0x23d)]));const _0x456c78=yaml[_0x6bf6ea(0x252)](_0x705d5a);await _0x328c29[_0x6bf6ea(0x2c4)](kubeApply,_0x456c78,_0x1bed41),logger[_0x6bf6ea(0x220)](_0x328c29['lxexo']);let _0x22ebe4=_0x328c29[_0x6bf6ea(0x250)];if(_0x328c29['Tbrge'](_0x4b8761,AZURE))_0x22ebe4=_0x328c29[_0x6bf6ea(0x2ee)];else _0x328c29['LwQET'](_0x4b8761,GCP)&&(_0x22ebe4=_0x328c29['dbsFg']);logger['info'](_0x328c29[_0x6bf6ea(0x1f4)]);let _0x318d12=await fs[_0x6bf6ea(0x1c0)](path[_0x6bf6ea(0x1ae)](__dirname,_0x328c29[_0x6bf6ea(0x24a)],_0x328c29[_0x6bf6ea(0x1b8)],_0x328c29[_0x6bf6ea(0x1a2)],_0x328c29[_0x6bf6ea(0x1ec)]),_0x328c29[_0x6bf6ea(0x2ba)]);_0x318d12=_0x318d12['replace'](/<HubHaNameSpace>/g,global_registry[_0x6bf6ea(0x174)]),_0x318d12=_0x318d12['replace'](/<StorageClassName>/g,_0x22ebe4);const _0x51082f=yaml[_0x6bf6ea(0x252)](_0x318d12);await _0x328c29['BKUNO'](kubeApply,_0x51082f,_0x1bed41),logger[_0x6bf6ea(0x220)](_0x328c29[_0x6bf6ea(0x1f8)]),logger[_0x6bf6ea(0x220)](_0x328c29[_0x6bf6ea(0x291)]);let _0xabc281=await fs[_0x6bf6ea(0x1c0)](path[_0x6bf6ea(0x1ae)](__dirname,_0x328c29[_0x6bf6ea(0x24a)],_0x328c29[_0x6bf6ea(0x1b8)],_0x328c29[_0x6bf6ea(0x1a2)],_0x328c29['jKgBB']),_0x328c29[_0x6bf6ea(0x2ba)]);_0xabc281=_0xabc281[_0x6bf6ea(0x257)](/<HubHaNameSpace>/g,global_registry[_0x6bf6ea(0x174)]),_0xabc281=_0xabc281[_0x6bf6ea(0x257)](/<StorageClassName>/g,_0x22ebe4);const _0x62974c=yaml[_0x6bf6ea(0x252)](_0xabc281);await _0x328c29[_0x6bf6ea(0x2c4)](kubeApply,_0x62974c,_0x1bed41),logger['info'](_0x328c29[_0x6bf6ea(0x2b5)]),logger[_0x6bf6ea(0x220)](_0x328c29[_0x6bf6ea(0x16a)]);let _0x3c7e2d=await fs[_0x6bf6ea(0x1c0)](path['join'](__dirname,_0x328c29[_0x6bf6ea(0x24a)],_0x328c29[_0x6bf6ea(0x1b8)],_0x328c29[_0x6bf6ea(0x1a2)],_0x328c29[_0x6bf6ea(0x198)]),_0x328c29[_0x6bf6ea(0x2ba)]);_0x3c7e2d=_0x3c7e2d['replace'](/<UploaderImageVersion>/g,global_registry[_0x6bf6ea(0x1c8)]),_0x3c7e2d=_0x3c7e2d[_0x6bf6ea(0x257)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']);const _0x5a4f03=yaml['loadAll'](_0x3c7e2d);_0x328c29[_0x6bf6ea(0x2f1)](global_registry[_0x6bf6ea(0x19c)],AZURE)&&(_0x5a4f03[0x0][_0x6bf6ea(0x273)][_0x6bf6ea(0x2ff)][_0x6bf6ea(0x197)][_0x6bf6ea(0x1f7)]={'azure.workload.identity/use':_0x328c29[_0x6bf6ea(0x159)],..._0x5a4f03[0x0][_0x6bf6ea(0x273)]['template'][_0x6bf6ea(0x197)][_0x6bf6ea(0x1f7)]},_0x5a4f03[0x0][_0x6bf6ea(0x273)][_0x6bf6ea(0x2ff)][_0x6bf6ea(0x273)][_0x6bf6ea(0x19e)]=_0x328c29[_0x6bf6ea(0x16c)]);await _0x328c29[_0x6bf6ea(0x193)](kubeApply,_0x5a4f03,_0x1bed41),logger[_0x6bf6ea(0x220)](_0x328c29['CHLpR']);const _0x111a13={};_0x111a13[_0x6bf6ea(0x1f5)]=WS_EVENTS[_0x6bf6ea(0x294)],_0x111a13[_0x6bf6ea(0x2a3)]=_0x328c29[_0x6bf6ea(0x204)],webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0x111a13),logger[_0x6bf6ea(0x220)](_0x328c29[_0x6bf6ea(0x189)]);}catch(_0x3014af){const _0x2a344d=_0x328c29['zDoRA'][_0x6bf6ea(0x262)]('|');let _0x12e52d=0x0;while(!![]){switch(_0x2a344d[_0x12e52d++]){case'0':await _0xd0e9ec['deleteCluster'](_0x59f72a,global_registry[_0x6bf6ea(0x26c)]);continue;case'1':process['exit'](0x1);continue;case'2':logger[_0x6bf6ea(0x209)](_0x49b27e);continue;case'3':await _0x328c29['hutYT'](reportToGalactusAndSendToEDS,_0x15d755,_0x264308,_0x49b27e,messageTypes['ERROR'],_0x328c29[_0x6bf6ea(0x150)],_0x328c29['GUxTf'],_0x328c29[_0x6bf6ea(0x293)]);continue;case'4':_0x49b27e='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x3014af[_0x6bf6ea(0x2a3)];continue;}break;}}try{_0x4e2760=_0x328c29[_0x6bf6ea(0x24d)](kebabCase,_0xebc23e),logger[_0x6bf6ea(0x220)](_0x328c29[_0x6bf6ea(0x247)]);const _0x126bd6={};_0x126bd6['type']=WS_EVENTS['LOG'],_0x126bd6[_0x6bf6ea(0x2a3)]=_0x328c29['Mykat'],webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0x126bd6);if(_0x328c29[_0x6bf6ea(0x295)](_0x4e2760,_0x328c29['zNZnC'])){const _0x38ec27={};_0x38ec27[_0x6bf6ea(0x2c3)]=_0x328c29[_0x6bf6ea(0x195)],_0x38ec27[_0x6bf6ea(0x272)]=_0x328c29[_0x6bf6ea(0x195)];const _0x3558d2={};_0x3558d2[_0x6bf6ea(0x221)]=_0x4e2760,_0x3558d2[_0x6bf6ea(0x182)]=_0x38ec27;const _0x112c39={};_0x112c39['metadata']=_0x3558d2;const _0x5d903d=_0x112c39,_0x32b78e={};_0x32b78e['body']=_0x5d903d,await _0x59f72a[_0x6bf6ea(0x278)](_0x32b78e),logger[_0x6bf6ea(0x220)](_0x328c29[_0x6bf6ea(0x191)]);}const _0x18c4cd={};_0x18c4cd[_0x6bf6ea(0x1f5)]=WS_EVENTS[_0x6bf6ea(0x294)],_0x18c4cd[_0x6bf6ea(0x2a3)]=_0x328c29[_0x6bf6ea(0x151)],webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0x18c4cd);const _0x541159={};_0x541159[_0x6bf6ea(0x1f5)]=WS_EVENTS['LOG'],_0x541159['message']=_0x328c29[_0x6bf6ea(0x2e4)],webSocketUtils['sendEventToBackend'](_0x264308,_0x541159),logger['info'](_0x328c29[_0x6bf6ea(0x1d1)]);let _0x355618={};_0x328c29[_0x6bf6ea(0x2a6)](_0x4b8761,AZURE)&&(_0x355618={'clientId':await _0xd0e9ec['getResourceClientId'](_0x6bf6ea(0x267)+_0x5ce6aa)});await _0x328c29[_0x6bf6ea(0x29e)](addGridComponents,_0x59f72a,_0x358e4e,_0x12e22e,_0x168285,_0x4e2760,_0x5ce6aa,_0xa375cb,_0x3a4c20,_0x1bed41,_0x355618),_0x49b27e=_0x328c29[_0x6bf6ea(0x219)],logger['info'](_0x49b27e);const _0x4d2162={};_0x4d2162[_0x6bf6ea(0x1f5)]=WS_EVENTS[_0x6bf6ea(0x294)],_0x4d2162[_0x6bf6ea(0x2a3)]=_0x49b27e,webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0x4d2162),_0x49b27e=_0x328c29[_0x6bf6ea(0x1db)],logger[_0x6bf6ea(0x220)](_0x49b27e);const _0x2510e4={};_0x2510e4[_0x6bf6ea(0x1f5)]=WS_EVENTS['LOG'],_0x2510e4['message']=_0x49b27e,webSocketUtils['sendEventToBackend'](_0x264308,_0x2510e4),await _0x328c29[_0x6bf6ea(0x255)](waitForDeployment,_0x358e4e,_0x4e2760,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x14dcd1=await _0x328c29[_0x6bf6ea(0x281)](getNamespaceUID,_0x59f72a,_0x4e2760),_0x58d060=global_registry[_0x6bf6ea(0x244)]?_0x328c29['JDqrW']:_0x328c29[_0x6bf6ea(0x29c)],_0x17525a={};_0x17525a[_0x6bf6ea(0x221)]=_0x58d060,_0x17525a[_0x6bf6ea(0x1c3)]=_0x328c29[_0x6bf6ea(0x226)];const _0x353b38=await _0x59f72a['readNamespacedService'](_0x17525a);let _0x5316c2=_0xd0e9ec['getGridHostname'](_0x353b38)+'/'+_0x4e2760,_0x209c6a=_0x328c29['MVGbi'];try{const _0x1350b0='https://'+AG_API_URL+_0x6bf6ea(0x1eb)+_0x14dcd1,_0x327572=await _0x328c29['vEuzO'](got,_0x1350b0,_0x27b613);(_0x328c29[_0x6bf6ea(0x23f)](_0x327572,null)||_0x328c29[_0x6bf6ea(0x2cf)](_0x327572,undefined))&&(_0x49b27e=_0x328c29[_0x6bf6ea(0x2ab)],await _0x328c29['aWYfV'](reportToGalactusAndSendToEDS,_0x15d755,_0x264308,_0x49b27e,messageTypes['ERROR'],_0x328c29[_0x6bf6ea(0x150)],_0x328c29['jmyNo'],_0x328c29[_0x6bf6ea(0x293)]),logger[_0x6bf6ea(0x209)](_0x49b27e),process[_0x6bf6ea(0x1d7)](0x1));_0x328c29[_0x6bf6ea(0x1ac)](_0x327572[_0x6bf6ea(0x2e5)],0x191)&&(_0x49b27e=_0x328c29[_0x6bf6ea(0x223)],await _0x328c29[_0x6bf6ea(0x1a6)](reportToGalactusAndSendToEDS,_0x15d755,_0x264308,_0x49b27e,messageTypes['ERROR'],_0x328c29[_0x6bf6ea(0x150)],_0x328c29[_0x6bf6ea(0x2ac)],_0x328c29[_0x6bf6ea(0x293)]),logger[_0x6bf6ea(0x209)](_0x49b27e),process[_0x6bf6ea(0x1d7)](0x1));_0x328c29['GmhJp'](_0x327572[_0x6bf6ea(0x2e5)],0xc8)&&(_0x49b27e=_0x6bf6ea(0x17e)+JSON['stringify'](_0x327572),await _0x328c29[_0x6bf6ea(0x22e)](reportToGalactusAndSendToEDS,_0x15d755,_0x264308,_0x49b27e,messageTypes[_0x6bf6ea(0x1a7)],_0x328c29['SpNHB'],_0x328c29[_0x6bf6ea(0x184)],_0x328c29[_0x6bf6ea(0x293)]),logger['error'](_0x49b27e),process[_0x6bf6ea(0x1d7)](0x1));const _0x307786=JSON[_0x6bf6ea(0x178)](_0x327572[_0x6bf6ea(0x171)]);_0x307786['route53']&&(_0x5316c2=_0x307786[_0x6bf6ea(0x1be)],_0x209c6a=_0x328c29[_0x6bf6ea(0x224)]),global_registry[_0x6bf6ea(0x244)]&&(_0x209c6a=_0x328c29['MVGbi']);}catch(_0x535aac){}_0x49b27e=_0x6bf6ea(0x22a)+_0x5316c2+'\x20',logger[_0x6bf6ea(0x220)](_0x49b27e);const _0x1398bf={};_0x1398bf[_0x6bf6ea(0x1f5)]=WS_EVENTS[_0x6bf6ea(0x294)],_0x1398bf['message']=_0x49b27e,webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0x1398bf),_0x49b27e='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x209c6a+'://'+_0x5316c2+_0x6bf6ea(0x172),logger[_0x6bf6ea(0x220)](_0x49b27e);const _0x26e6ec={};_0x26e6ec['type']=WS_EVENTS['LOG'],_0x26e6ec[_0x6bf6ea(0x2a3)]=_0x49b27e,webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0x26e6ec);const _0x3b4aa7={};_0x3b4aa7[_0x6bf6ea(0x1f5)]=WS_EVENTS[_0x6bf6ea(0x289)],_0x3b4aa7[_0x6bf6ea(0x2a3)]=_0x6bf6ea(0x1fb)+_0x5316c2,webSocketUtils['sendEventToBackend'](_0x264308,_0x3b4aa7),await webSocketUtils[_0x6bf6ea(0x18a)](0x7d0);}catch(_0x59cb75){logger[_0x6bf6ea(0x209)](_0x6bf6ea(0x205)+_0x59cb75+'\x20\x0a'+JSON[_0x6bf6ea(0x1cf)](_0x59cb75[_0x6bf6ea(0x27c)]));if(_0x328c29[_0x6bf6ea(0x2cf)](_0x53b82c,![]))try{logger[_0x6bf6ea(0x220)](_0x328c29['iJqIo']),await _0x328c29['mKSJv'](removeGridComponents,_0x59f72a,_0x358e4e,_0x12e22e,_0x168285,_0x4e2760),await _0xd0e9ec[_0x6bf6ea(0x285)](_0x59f72a,global_registry[_0x6bf6ea(0x26c)]);}catch(_0xe43b5e){logger[_0x6bf6ea(0x209)](_0x6bf6ea(0x2a0)+_0xe43b5e+'\x20\x0a'+JSON[_0x6bf6ea(0x1cf)](_0xe43b5e[_0x6bf6ea(0x27c)]));}throw _0x59cb75;}}catch(_0x23c214){const _0x5ca2b2='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x23c214+'\x20\x0a'+JSON[_0x6bf6ea(0x1cf)](_0x23c214[_0x6bf6ea(0x27c)]);if(_0x264308){const _0xbddb05={};_0xbddb05['type']=WS_EVENTS[_0x6bf6ea(0x294)],_0xbddb05[_0x6bf6ea(0x2a3)]=_0x5ca2b2,webSocketUtils[_0x6bf6ea(0x246)](_0x264308,_0xbddb05,_0x328c29[_0x6bf6ea(0x293)],!![]);}await webSocketUtils['delay'](0x7d0);const _0xe7214e={};_0xe7214e[_0x6bf6ea(0x209)]=_0x5ca2b2,await _0x328c29[_0x6bf6ea(0x1c7)](sendInstrumentationEvent,_0x15d755,_0x328c29['SpNHB'],messageTypes[_0x6bf6ea(0x1a7)],_0x328c29[_0x6bf6ea(0x211)],_0xe7214e,_0x15d755),logger['error'](_0x5ca2b2);}process[_0x6bf6ea(0x1d7)](0x0);};
@@ -1 +1 @@
1
- const a10_0x1d6679=a10_0x845d;(function(_0x56bf5d,_0x3fb7bc){const _0x1dc838=a10_0x845d,_0x171450=_0x56bf5d();while(!![]){try{const _0x2e9185=parseInt(_0x1dc838(0x138))/0x1*(-parseInt(_0x1dc838(0x14a))/0x2)+parseInt(_0x1dc838(0x143))/0x3+parseInt(_0x1dc838(0x145))/0x4+-parseInt(_0x1dc838(0x13c))/0x5+parseInt(_0x1dc838(0x14b))/0x6+parseInt(_0x1dc838(0x139))/0x7*(parseInt(_0x1dc838(0x13b))/0x8)+parseInt(_0x1dc838(0x147))/0x9;if(_0x2e9185===_0x3fb7bc)break;else _0x171450['push'](_0x171450['shift']());}catch(_0x46e433){_0x171450['push'](_0x171450['shift']());}}}(a10_0x2f43,0x4c0ac));function a10_0x2f43(){const _0x571639=['865254TlqrSr','commandDir','epilogue','4607RfkOPm','225596jSAOvc','delete','56HvGLCM','1077615ShQdWV','desc','../config/constants','strict','NQJff','command','builder','173382VXBlFf','cxNxp','952136sabQLm','List\x20Grid\x20resources.','3022911vExqTJ','usage','help','206GkEIBp'];a10_0x2f43=function(){return _0x571639;};return a10_0x2f43();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x1d6679(0x13e));function a10_0x845d(_0x24608e,_0x21612e){const _0x2f43b4=a10_0x2f43();return a10_0x845d=function(_0x845d4e,_0x422617){_0x845d4e=_0x845d4e-0x138;let _0x546123=_0x2f43b4[_0x845d4e];return _0x546123;},a10_0x845d(_0x24608e,_0x21612e);}exports[a10_0x1d6679(0x141)]=a10_0x1d6679(0x13a),exports[a10_0x1d6679(0x13d)]=a10_0x1d6679(0x146),exports[a10_0x1d6679(0x142)]=function(_0x55d05e){const _0x4e9408=a10_0x1d6679,_0x123fbc={};_0x123fbc[_0x4e9408(0x140)]='delete_commands',_0x123fbc[_0x4e9408(0x144)]=_0x4e9408(0x149);const _0x55373e=_0x123fbc;return _0x55d05e[_0x4e9408(0x148)](HELP_HEADER_MESSAGE[_0x4e9408(0x13a)])[_0x4e9408(0x14d)](HELP_FOOTER_MESSAGE)[_0x4e9408(0x14c)](_0x55373e[_0x4e9408(0x140)])['demandCommand']()['recommendCommands']()[_0x4e9408(0x13f)]()[_0x4e9408(0x149)](_0x55373e[_0x4e9408(0x144)]);},exports['handler']=function(_0x507fda){};
1
+ const a10_0x563271=a10_0x446e;function a10_0x1f31(){const _0x387347=['commandDir','../config/constants','command','demandCommand','desc','206806fODOmx','13741785JzLrkh','recommendCommands','2073RFUBLf','strict','usage','14dcVWKo','16GfJJid','48aPWNVz','2084646aEbpKU','1616xmoNQN','pDFgw','handler','16178591OWyNQF','delete_commands','help','HTimi','4924328xBAqAb','4718740RHyhRc','epilogue','delete','20nAAFBw'];a10_0x1f31=function(){return _0x387347;};return a10_0x1f31();}(function(_0x27c997,_0x26f590){const _0x52853c=a10_0x446e,_0x3fc319=_0x27c997();while(!![]){try{const _0x4602cf=parseInt(_0x52853c(0x148))/0x1*(-parseInt(_0x52853c(0x134))/0x2)+parseInt(_0x52853c(0x14b))/0x3*(parseInt(_0x52853c(0x137))/0x4)+-parseInt(_0x52853c(0x142))/0x5*(parseInt(_0x52853c(0x136))/0x6)+-parseInt(_0x52853c(0x133))/0x7*(parseInt(_0x52853c(0x13e))/0x8)+-parseInt(_0x52853c(0x149))/0x9+parseInt(_0x52853c(0x13f))/0xa+parseInt(_0x52853c(0x13a))/0xb*(parseInt(_0x52853c(0x135))/0xc);if(_0x4602cf===_0x26f590)break;else _0x3fc319['push'](_0x3fc319['shift']());}catch(_0xc05dff){_0x3fc319['push'](_0x3fc319['shift']());}}}(a10_0x1f31,0xcb203));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x563271(0x144));function a10_0x446e(_0x4248a7,_0x3517fc){const _0x1f315b=a10_0x1f31();return a10_0x446e=function(_0x446e5d,_0x498b79){_0x446e5d=_0x446e5d-0x133;let _0x156d2b=_0x1f315b[_0x446e5d];return _0x156d2b;},a10_0x446e(_0x4248a7,_0x3517fc);}exports[a10_0x563271(0x145)]=a10_0x563271(0x141),exports[a10_0x563271(0x147)]='List\x20Grid\x20resources.',exports['builder']=function(_0x4c5acd){const _0x284626=a10_0x563271,_0x105f39={};_0x105f39['HTimi']=_0x284626(0x13b),_0x105f39[_0x284626(0x138)]='help';const _0x2c9c5b=_0x105f39;return _0x4c5acd[_0x284626(0x14d)](HELP_HEADER_MESSAGE[_0x284626(0x141)])[_0x284626(0x140)](HELP_FOOTER_MESSAGE)[_0x284626(0x143)](_0x2c9c5b[_0x284626(0x13d)])[_0x284626(0x146)]()[_0x284626(0x14a)]()[_0x284626(0x14c)]()[_0x284626(0x13c)](_0x2c9c5b[_0x284626(0x138)]);},exports[a10_0x563271(0x139)]=function(_0x4f611b){};
@@ -1 +1 @@
1
- const a11_0x2c13ba=a11_0x3df8;(function(_0x4b28ee,_0x208116){const _0x5a99f2=a11_0x3df8,_0x46809d=_0x4b28ee();while(!![]){try{const _0x4a9209=-parseInt(_0x5a99f2(0x1b0))/0x1+parseInt(_0x5a99f2(0x1d6))/0x2+-parseInt(_0x5a99f2(0x1df))/0x3+parseInt(_0x5a99f2(0x185))/0x4+-parseInt(_0x5a99f2(0x1b1))/0x5*(-parseInt(_0x5a99f2(0x1cf))/0x6)+parseInt(_0x5a99f2(0x1b2))/0x7*(parseInt(_0x5a99f2(0x1d8))/0x8)+-parseInt(_0x5a99f2(0x189))/0x9*(parseInt(_0x5a99f2(0x1b3))/0xa);if(_0x4a9209===_0x208116)break;else _0x46809d['push'](_0x46809d['shift']());}catch(_0x17c11a){_0x46809d['push'](_0x46809d['shift']());}}}(a11_0x2ff0,0xf170f));function a11_0x2ff0(){const _0x108958=['UoHxe','NGPih','FhfDE','xqCGf','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','body','password','unauthorised','PUmya','builder','tCYDP','isClusterPresent','Desnq','FnCft','replace','message','../../utils/gridComponents','614290JQuhFf','10CgenKA','21jQVaMb','3931090iAcGSW','Skip\x20insecure\x20cert\x20verification.','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','IBfno','onlyGridInCluster','parse','aPVZK','requestId','../../cloudproviders/utils','ATGVL','zpzex','ERROR','nwlNK','bfMOC','bsGSE','Jeqrd','fGQrg','exopW','grid-id','INFO','usage','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','\x22\x20with\x20ID\x20','slKQg','clusterSpawnedVia','Delete\x20an\x20Automation\x20grid.','fYKvV','niPQg','2788662VnPwWJ','description','XKKUu','isBrowserstackCluster','got','stringify','unknown-error','3630558QYNwCt','jrqPz','4278904VkKvrL','zYbqJ','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','warn','Nowns','RUHfL','iKAQS','2066166RfEXeu','readNamespace','KByqf','nTCMX','clusterName','ZuQWE','gridId','jYqgx','/packages/cli/grid/','type','exit','ONTUg','argv','clusterId','TVOuq','username','DELETE','invalid-input','AWjlA','RsoWh','clusterRegion','npSzD','CNIEQ','toLowerCase','skipTlsCertVerify','aSUAG','pDHWk','region','Pass\x20the\x20ID\x20of\x20the\x20Grid','EvIMi','TsbXC','error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Namespace:\x20','uSjmL','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','Browserstack','Successfully\x20deleted\x20the\x20grid','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','cloudProvider','uPHTe','invalid-grid-id','QaRIo','cepvH','https://','\x22\x20and\x20ID\x20','Cluster:\x20','SLBVp','LXmzK','../../config/logger','MoXMH','../../utils/createk8sClient','xCutn','tweXd','HzWtw','default','../../config/constants','epilogue','handler','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','command','../../utils/userInput','pnAtR','JFZVy','then','string','7494492DiVXuW','delete','skip-tls-cert-verify','MOieA','90lAPeSk','RSHBt','connectionTimeout','<UsernamePlaceholder>','../../utils/utilityMethods','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','../../utils/webSocketUtils','vbAxI','WebSocket','statusCode','desc','info','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','../../utils/instrumentationUtils','zobec','sRxlG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','<PasswordPlaceholder>','bKPmx','name','ZmgnQ','Failed\x20to\x20delete\x20resources!\x20Error:\x20'];a11_0x2ff0=function(){return _0x108958;};return a11_0x2ff0();}const fs=require('fs'),got=require(a11_0x2c13ba(0x1d3)),{v4:uuidv4}=require('uuid'),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_0x2c13ba(0x17b)),{logger}=require(a11_0x2c13ba(0x174)),{getCloudProviderObject}=require(a11_0x2c13ba(0x1bb)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x2c13ba(0x1af)),{sendInstrumentationEvent}=require(a11_0x2c13ba(0x196)),{inputConfirmation}=require(a11_0x2c13ba(0x180)),{createK8sClient}=require(a11_0x2c13ba(0x176)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x2c13ba(0x18d)),webSocketUtils=require(a11_0x2c13ba(0x18f));function a11_0x3df8(_0x373394,_0x3dacb3){const _0x2ff024=a11_0x2ff0();return a11_0x3df8=function(_0x3df823,_0x488a8b){_0x3df823=_0x3df823-0x153;let _0x1c907b=_0x2ff024[_0x3df823];return _0x1c907b;},a11_0x3df8(_0x373394,_0x3dacb3);}exports[a11_0x2c13ba(0x17f)]='grid',exports[a11_0x2c13ba(0x193)]=a11_0x2c13ba(0x1cc),exports[a11_0x2c13ba(0x1a8)]=function(_0x423284){const _0x44acbb=a11_0x2c13ba,_0x2058e9={};_0x2058e9[_0x44acbb(0x1dd)]=_0x44acbb(0x15e),_0x2058e9['Jeqrd']=_0x44acbb(0x184),_0x2058e9[_0x44acbb(0x1ea)]=_0x44acbb(0x1b4),_0x2058e9[_0x44acbb(0x1ed)]='boolean',_0x2058e9[_0x44acbb(0x16e)]='help';const _0x6800b4=_0x2058e9,_0x88629d={};_0x88629d['description']=_0x6800b4[_0x44acbb(0x1dd)],_0x88629d['type']=_0x6800b4[_0x44acbb(0x1c2)];const _0x4751d1={};_0x4751d1['description']=_0x6800b4[_0x44acbb(0x1ea)],_0x4751d1[_0x44acbb(0x1e8)]=_0x6800b4[_0x44acbb(0x1ed)],_0x4751d1[_0x44acbb(0x17a)]=![];const _0x2efffa={};return _0x2efffa[_0x44acbb(0x1c5)]=_0x88629d,_0x2efffa['skip-tls-cert-verify']=_0x4751d1,_0x423284[_0x44acbb(0x1c7)](HELP_HEADER_MESSAGE[_0x44acbb(0x186)])[_0x44acbb(0x17c)](HELP_FOOTER_MESSAGE)['options'](_0x2efffa)['help'](_0x6800b4[_0x44acbb(0x16e)])['argv'];},exports[a11_0x2c13ba(0x17d)]=async function(_0x3823c9){const _0xde672f=a11_0x2c13ba,_0x4b2245={'NARHC':_0xde672f(0x15e),'aSUAG':_0xde672f(0x184),'jYqgx':_0xde672f(0x1b4),'oVYgy':'boolean','LvHLm':'help','LXmzK':_0xde672f(0x169),'sRxlG':_0xde672f(0x168),'UoHxe':_0xde672f(0x163),'FhfDE':function(_0x52b0b6,_0x4b20c2){return _0x52b0b6!==_0x4b20c2;},'xqCGf':_0xde672f(0x181),'KByqf':_0xde672f(0x178),'RSHBt':function(_0x82b9ea,_0x9f2096){return _0x82b9ea===_0x9f2096;},'ZmgnQ':'luZmy','HzWtw':function(_0x5d9845){return _0x5d9845();},'nwlNK':'cRqtW','PUmya':_0xde672f(0x1d7),'ZjwIb':_0xde672f(0x199),'zYbqJ':function(_0x5bfc9a,_0x5e4193,_0x488f54,_0x49b00c,_0xaf4a3a,_0x230157,_0x3ac46a){return _0x5bfc9a(_0x5e4193,_0x488f54,_0x49b00c,_0xaf4a3a,_0x230157,_0x3ac46a);},'QaRIo':'delete-grid-called','CNIEQ':'init-not-called','uPHTe':_0xde672f(0x1ab),'JFZVy':function(_0x4752a4,_0x2fff08,_0x58dca5,_0xc002c1){return _0x4752a4(_0x2fff08,_0x58dca5,_0xc002c1);},'AWjlA':function(_0xff7069,_0x29994a){return _0xff7069===_0x29994a;},'IBfno':'Browserstack','aPVZK':_0xde672f(0x1d1),'iKAQS':'jUhDl','UyjBk':function(_0x40dd17,_0x6c697f){return _0x40dd17(_0x6c697f);},'EvIMi':function(_0x128854,_0x4f2284){return _0x128854===_0x4f2284;},'FnCft':function(_0xc88b11,_0x7c580e){return _0xc88b11===_0x7c580e;},'MoXMH':function(_0x1f130b,_0x5edd4a){return _0x1f130b===_0x5edd4a;},'niPQg':'SfGCa','nTCMX':_0xde672f(0x1a3),'bKPmx':_0xde672f(0x153),'NGPih':function(_0x59eb59,_0x2c9d36){return _0x59eb59===_0x2c9d36;},'slKQg':function(_0x3a8c18,_0x3e4c5e){return _0x3a8c18!==_0x3e4c5e;},'ATGVL':_0xde672f(0x1c4),'npSzD':_0xde672f(0x18c),'zpzex':_0xde672f(0x19a),'IKgai':function(_0x3e64f9,_0x284b86){return _0x3e64f9(_0x284b86);},'vbAxI':function(_0x18edc1,_0x3b3b1a,_0x51b09c){return _0x18edc1(_0x3b3b1a,_0x51b09c);},'RsoWh':function(_0x194c6a,_0x123d0a,_0x761c9,_0x5a84b2,_0x352752,_0x359ad1){return _0x194c6a(_0x123d0a,_0x761c9,_0x5a84b2,_0x352752,_0x359ad1);},'TKNnW':function(_0xfb4fb7,_0x44fdf3){return _0xfb4fb7!==_0x44fdf3;},'uSjmL':_0xde672f(0x172),'cfSWj':_0xde672f(0x1cd),'Nowns':'hPyJk','TsbXC':_0xde672f(0x1ef),'bsGSE':function(_0x2fcd35,_0x1dc0d5,_0x3333df){return _0x2fcd35(_0x1dc0d5,_0x3333df);},'VMMPb':function(_0x2e41c9,_0x121da6){return _0x2e41c9!==_0x121da6;},'pDHWk':function(_0x2485c1,_0x57d8f7,_0x55c36a,_0x3fdd06,_0xcb9b5d,_0x50d3c2,_0x1d9765){return _0x2485c1(_0x57d8f7,_0x55c36a,_0x3fdd06,_0xcb9b5d,_0x50d3c2,_0x1d9765);},'zobec':'server-error','fGQrg':_0xde672f(0x162),'xCutn':_0xde672f(0x1a6),'MOieA':function(_0x5cda20,_0x546df3){return _0x5cda20===_0x546df3;},'ZuQWE':function(_0x2d60e7,_0x5698af,_0x7a892a,_0x4eb2a6,_0xcf203,_0x2acf5c,_0x521bf1){return _0x2d60e7(_0x5698af,_0x7a892a,_0x4eb2a6,_0xcf203,_0x2acf5c,_0x521bf1);},'tCYDP':_0xde672f(0x16c),'bfMOC':_0xde672f(0x1d5)};try{global_registry[_0xde672f(0x1ba)]=_0x4b2245[_0xde672f(0x179)](uuidv4);!fs['existsSync'](_0x4b2245['HzWtw'](getCredentialsPath))&&(_0x4b2245['RSHBt'](_0x4b2245[_0xde672f(0x1bf)],_0x4b2245[_0xde672f(0x1a7)])?_0x414b0a=_0xde672f(0x18e)+_0x476173[_0xde672f(0x19c)]+_0xde672f(0x170)+_0x470749['id']+_0xde672f(0x17e)+_0x5ee91f[_0xde672f(0x1e3)]+_0xde672f(0x1c9)+_0x3172bd[_0xde672f(0x1ec)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(console[_0xde672f(0x161)](_0x4b2245['ZjwIb']),await _0x4b2245[_0xde672f(0x1d9)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x158)],null,_0x3823c9),process[_0xde672f(0x1e9)](0x1)));_0x4b2245['zYbqJ'](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1c6)],null,null,_0x3823c9);if(!_0x3823c9[_0xde672f(0x1e5)]){if(_0x4b2245[_0xde672f(0x1a1)](_0x4b2245[_0xde672f(0x16b)],_0x4b2245[_0xde672f(0x16b)])){const _0x51c119={};_0x51c119[_0xde672f(0x1d0)]=_0x4b2245['NARHC'],_0x51c119['type']=_0x4b2245[_0xde672f(0x15b)];const _0x429ea8={};_0x429ea8[_0xde672f(0x1d0)]=_0x4b2245[_0xde672f(0x1e6)],_0x429ea8['type']=_0x4b2245['oVYgy'],_0x429ea8[_0xde672f(0x17a)]=![];const _0x2f8b49={};return _0x2f8b49[_0xde672f(0x1c5)]=_0x51c119,_0x2f8b49[_0xde672f(0x187)]=_0x429ea8,_0x41049b[_0xde672f(0x1c7)](_0x58d019[_0xde672f(0x186)])[_0xde672f(0x17c)](_0x3f4bea)['options'](_0x2f8b49)['help'](_0x4b2245['LvHLm'])[_0xde672f(0x1eb)];}else console[_0xde672f(0x161)](_0x4b2245[_0xde672f(0x19f)]),process[_0xde672f(0x1e9)](0x1);}const _0x536382=JSON[_0xde672f(0x1b8)](fs['readFileSync'](_0x4b2245[_0xde672f(0x179)](getCredentialsPath))),[_0xb0a723,_0x4ac30b]=await _0x4b2245[_0xde672f(0x182)](getGridDetails,_0x536382[_0xde672f(0x167)]['username'],_0x536382['Browserstack'][_0xde672f(0x1a5)],_0x3823c9[_0xde672f(0x1e5)]);if(_0x4ac30b){const _0x3d7993=_0x4ac30b[_0xde672f(0x194)];let _0x437b60='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x3d7993['name']+_0xde672f(0x170)+_0x3d7993['id']+_0xde672f(0x1c8);_0x4ac30b[_0xde672f(0x1b7)]&&_0x4b2245[_0xde672f(0x154)](_0x4ac30b[_0xde672f(0x1cb)],_0x4b2245[_0xde672f(0x1b6)])&&(_0x4b2245[_0xde672f(0x18a)](_0x4b2245[_0xde672f(0x1b9)],_0x4b2245[_0xde672f(0x1de)])?_0x5e9f79[_0xde672f(0x1db)](_0x4b2245['LXmzK']):_0x437b60=_0xde672f(0x18e)+_0x3d7993[_0xde672f(0x19c)]+_0xde672f(0x170)+_0x3d7993['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x3d7993[_0xde672f(0x1e3)]+_0xde672f(0x1c9)+_0x3d7993[_0xde672f(0x1ec)]+_0xde672f(0x1c8));const _0x3736dc=await _0x4b2245['UyjBk'](inputConfirmation,_0x437b60);(_0x4b2245[_0xde672f(0x18a)](_0x3736dc,undefined)||_0x4b2245[_0xde672f(0x15f)](_0x3736dc,null)||!(_0x4b2245[_0xde672f(0x1ac)](_0x3736dc[_0xde672f(0x159)](),'y')||_0x4b2245[_0xde672f(0x175)](_0x3736dc[_0xde672f(0x159)](),'n')))&&(_0x4b2245[_0xde672f(0x154)](_0x4b2245[_0xde672f(0x1ce)],_0x4b2245[_0xde672f(0x1ce)])?(console[_0xde672f(0x161)](_0x4b2245[_0xde672f(0x1e2)]),await _0x4b2245[_0xde672f(0x1d9)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x19b)],null,_0x3823c9),process[_0xde672f(0x1e9)](0x1)):_0x12fc36[_0xde672f(0x1e9)](0x0));_0x4b2245[_0xde672f(0x1a0)](_0x3736dc[_0xde672f(0x159)](),'n')&&(_0x4b2245[_0xde672f(0x1ca)](_0x4b2245['ATGVL'],_0x4b2245[_0xde672f(0x1bc)])?(_0x58908c['info'](_0x4b2245[_0xde672f(0x198)]),_0x21fa55['exit'](0x0)):process[_0xde672f(0x1e9)](0x0));const _0x29d1d6=WS_ENDPOINT[_0xde672f(0x1ad)](_0x4b2245[_0xde672f(0x157)],_0x536382[_0xde672f(0x167)][_0xde672f(0x1ee)])[_0xde672f(0x1ad)](_0x4b2245[_0xde672f(0x1bd)],_0x536382[_0xde672f(0x167)][_0xde672f(0x1a5)]),_0x18503c={};_0x18503c[_0xde672f(0x191)]=ws,_0x18503c[_0xde672f(0x18b)]=0x36ee80;const _0x4feef2=new ReconnectingWebSocket(_0x29d1d6,[],_0x18503c);global_registry[_0xde672f(0x156)]=_0x3d7993['region'];const _0x252905=_0x3d7993[_0xde672f(0x16a)],_0x2af435=await _0x4b2245[_0xde672f(0x1d9)](getCloudProviderObject,_0x252905,_0x3d7993[_0xde672f(0x1e3)],_0x3d7993[_0xde672f(0x19c)],_0x4feef2,webSocketUtils,_0x3823c9),_0x36186a=await _0x2af435[_0xde672f(0x1aa)]();if(_0x36186a){const _0x5d56a4=_0x4b2245['IKgai'](kebabCase,_0x3d7993[_0xde672f(0x19c)]),[_0x5e2920,_0x46113e,_0x5f4ae5,_0x234beb,_0x41ae4b,_0x377b40]=await _0x4b2245[_0xde672f(0x190)](createK8sClient,_0x2af435,_0x3823c9[_0xde672f(0x15a)]);let _0x378f50=!![];const _0x22909c={};_0x22909c[_0xde672f(0x19c)]=_0x5d56a4,await _0x5e2920[_0xde672f(0x1e0)](_0x22909c)[_0xde672f(0x183)](_0x589fa4=>{const _0x375f8c=_0xde672f;_0x4b2245[_0x375f8c(0x1a1)](_0x4b2245[_0x375f8c(0x1a2)],_0x4b2245[_0x375f8c(0x1e1)])?logger[_0x375f8c(0x194)]('Namespace:\x20'+_0x5d56a4+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):(_0x5c97ed[_0x375f8c(0x161)](_0x4b2245[_0x375f8c(0x19f)]),_0x43cf55[_0x375f8c(0x1e9)](0x1));})['catch'](_0xb84426=>{const _0x44297a=_0xde672f;_0x4b2245[_0x44297a(0x18a)](_0x4b2245[_0x44297a(0x19d)],_0x4b2245[_0x44297a(0x19d)])?(logger['warn'](_0x44297a(0x164)+_0x5d56a4+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x378f50=![]):(_0x237ea6[_0x44297a(0x1db)](_0x44297a(0x164)+_0xf0b34c+_0x44297a(0x1b5)),_0x104f32=![]);});if(_0x378f50){await _0x4b2245[_0xde672f(0x155)](removeGridComponents,_0x5e2920,_0x46113e,_0x5f4ae5,_0x234beb,_0x5d56a4);if(_0x4ac30b['onlyGridInCluster']){const _0x30232f=await _0x2af435[_0xde672f(0x1d2)]();_0x30232f?_0x4b2245['TKNnW'](_0x4b2245[_0xde672f(0x165)],_0x4b2245['cfSWj'])?await _0x2af435['deleteCluster'](_0x5e2920,_0x3d7993[_0xde672f(0x15d)]):_0x326177[_0xde672f(0x1db)](_0xde672f(0x171)+_0x574bf2[_0xde672f(0x1e3)]+_0xde672f(0x195)):_0x4b2245[_0xde672f(0x1a1)](_0x4b2245[_0xde672f(0x1dc)],_0x4b2245[_0xde672f(0x1dc)])?_0x119bd2[_0xde672f(0x194)](_0xde672f(0x164)+_0x71bdc7+_0xde672f(0x1da)):logger[_0xde672f(0x1db)]('Cluster:\x20'+_0x3d7993[_0xde672f(0x1e3)]+_0xde672f(0x195));}}}else logger[_0xde672f(0x1db)](_0x4b2245[_0xde672f(0x173)]);const _0x4b62b8=_0xde672f(0x16f)+AG_API_URL+_0xde672f(0x1e7)+_0x3823c9[_0xde672f(0x1e5)],_0x29a90e={'method':_0x4b2245[_0xde672f(0x160)],'headers':_0x4b2245[_0xde672f(0x1c1)](getAuthHeader,_0x536382[_0xde672f(0x167)]['username'],_0x536382[_0xde672f(0x167)][_0xde672f(0x1a5)]),'throwHttpErrors':![]},_0x69466f=await _0x4b2245[_0xde672f(0x1c1)](got,_0x4b62b8,_0x29a90e);_0x4b2245['VMMPb'](_0x69466f,null)&&_0x4b2245[_0xde672f(0x1ca)](_0x69466f,undefined)&&_0x4b2245['EvIMi'](_0x69466f[_0xde672f(0x192)],0xc8)&&(logger[_0xde672f(0x194)](_0x4b2245[_0xde672f(0x198)]),process['exit'](0x0)),logger[_0xde672f(0x161)](_0xde672f(0x166)+_0x69466f['body']),await _0x4b2245[_0xde672f(0x15c)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x197)],_0xb0a723,_0x3823c9),process['exit'](0x1);}_0x4b2245[_0xde672f(0x154)](_0xb0a723[_0xde672f(0x192)],0x191)&&(logger['error'](_0x4b2245[_0xde672f(0x1c3)]),await _0x4b2245[_0xde672f(0x1d9)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x177)],null,_0x3823c9),process[_0xde672f(0x1e9)](0x1)),_0x4b2245[_0xde672f(0x188)](_0xb0a723[_0xde672f(0x192)],0x190)&&(logger[_0xde672f(0x161)](JSON[_0xde672f(0x1b8)](_0xb0a723[_0xde672f(0x1a4)])[_0xde672f(0x1ae)]),await _0x4b2245[_0xde672f(0x1e4)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x1a9)],null,_0x3823c9),process['exit'](0x1)),logger[_0xde672f(0x161)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0xde672f(0x1d4)](_0xb0a723)),await _0x4b2245[_0xde672f(0x15c)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x197)],_0xb0a723,_0x3823c9),process['exit'](0x1);}catch(_0x372b59){logger[_0xde672f(0x161)](_0xde672f(0x19e)+_0x372b59['stack']),await _0x4b2245['zYbqJ'](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x1c0)],_0x372b59,_0x3823c9),process[_0xde672f(0x1e9)](0x1);}};
1
+ const a11_0x72b796=a11_0x120c;function a11_0x120c(_0x28cda2,_0x2298ee){const _0x5652db=a11_0x5652();return a11_0x120c=function(_0x120cf8,_0x31f164){_0x120cf8=_0x120cf8-0x15c;let _0x56fafd=_0x5652db[_0x120cf8];return _0x56fafd;},a11_0x120c(_0x28cda2,_0x2298ee);}(function(_0x5ca71a,_0x13e13c){const _0x5521d8=a11_0x120c,_0x4e7515=_0x5ca71a();while(!![]){try{const _0x32596b=-parseInt(_0x5521d8(0x1bd))/0x1+parseInt(_0x5521d8(0x170))/0x2*(-parseInt(_0x5521d8(0x1d8))/0x3)+parseInt(_0x5521d8(0x1f6))/0x4*(-parseInt(_0x5521d8(0x174))/0x5)+-parseInt(_0x5521d8(0x1b5))/0x6*(-parseInt(_0x5521d8(0x15e))/0x7)+parseInt(_0x5521d8(0x16d))/0x8+parseInt(_0x5521d8(0x18a))/0x9+-parseInt(_0x5521d8(0x1c6))/0xa*(-parseInt(_0x5521d8(0x1eb))/0xb);if(_0x32596b===_0x13e13c)break;else _0x4e7515['push'](_0x4e7515['shift']());}catch(_0x375930){_0x4e7515['push'](_0x4e7515['shift']());}}}(a11_0x5652,0x37378));const fs=require('fs'),got=require(a11_0x72b796(0x1f4)),{v4:uuidv4}=require(a11_0x72b796(0x182)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x72b796(0x17f)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x72b796(0x179)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x72b796(0x1a0)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x72b796(0x19f)),{inputConfirmation}=require(a11_0x72b796(0x1d1)),{createK8sClient}=require(a11_0x72b796(0x1e4)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x72b796(0x1e3)),webSocketUtils=require(a11_0x72b796(0x169));exports[a11_0x72b796(0x1a4)]=a11_0x72b796(0x16b),exports[a11_0x72b796(0x15c)]=a11_0x72b796(0x1f8),exports[a11_0x72b796(0x160)]=function(_0xbf3f00){const _0x5f3fb2=a11_0x72b796,_0x481a47={};_0x481a47[_0x5f3fb2(0x18b)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x481a47['PgPDy']=_0x5f3fb2(0x1d0),_0x481a47[_0x5f3fb2(0x177)]=_0x5f3fb2(0x1ea),_0x481a47[_0x5f3fb2(0x19e)]=_0x5f3fb2(0x184),_0x481a47[_0x5f3fb2(0x1f9)]='help';const _0x1cd3bb=_0x481a47,_0xd7de26={};_0xd7de26[_0x5f3fb2(0x1aa)]=_0x1cd3bb[_0x5f3fb2(0x18b)],_0xd7de26[_0x5f3fb2(0x193)]=_0x1cd3bb[_0x5f3fb2(0x1f3)];const _0x1e5909={};_0x1e5909[_0x5f3fb2(0x1aa)]=_0x1cd3bb[_0x5f3fb2(0x177)],_0x1e5909[_0x5f3fb2(0x193)]=_0x1cd3bb[_0x5f3fb2(0x19e)],_0x1e5909['default']=![];const _0x2e3d3c={};return _0x2e3d3c[_0x5f3fb2(0x1cd)]=_0xd7de26,_0x2e3d3c[_0x5f3fb2(0x1b8)]=_0x1e5909,_0xbf3f00['usage'](HELP_HEADER_MESSAGE[_0x5f3fb2(0x1a9)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5f3fb2(0x1c5)](_0x2e3d3c)[_0x5f3fb2(0x187)](_0x1cd3bb['ZvQnl'])['argv'];},exports[a11_0x72b796(0x1a2)]=async function(_0x220e57){const _0xb572c3=a11_0x72b796,_0x7cb779={'yAhMi':'Successfully\x20deleted\x20the\x20grid','QyePU':_0xb572c3(0x166),'YFeqp':_0xb572c3(0x1d0),'cNTOI':_0xb572c3(0x1ea),'WrONq':_0xb572c3(0x184),'adjQj':_0xb572c3(0x187),'bKMwB':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','VKWVy':function(_0x3dee37,_0x3256bc){return _0x3dee37!==_0x3256bc;},'IyPDq':_0xb572c3(0x1c2),'aRrYI':function(_0x7a1f1f,_0x129ac8){return _0x7a1f1f===_0x129ac8;},'Xcydq':_0xb572c3(0x1d4),'uDKaF':_0xb572c3(0x172),'WZZhp':function(_0x5b56af){return _0x5b56af();},'dbtyX':function(_0x50457d,_0x3643a2){return _0x50457d!==_0x3643a2;},'IavWN':_0xb572c3(0x17c),'OIRWK':_0xb572c3(0x168),'fygtR':function(_0x29679f,_0x483019,_0xa85ea3,_0x29f428,_0x4e8856,_0x2616e0,_0x5f326a){return _0x29679f(_0x483019,_0xa85ea3,_0x29f428,_0x4e8856,_0x2616e0,_0x5f326a);},'arAeL':'delete-grid-called','beALO':'init-not-called','bjtIX':function(_0x399af3,_0x253c79){return _0x399af3===_0x253c79;},'NjHWg':_0xb572c3(0x1d5),'gCOtZ':function(_0xb04217){return _0xb04217();},'HFOCh':function(_0x52c96a,_0x57edb3,_0x5d3555,_0x3f994b){return _0x52c96a(_0x57edb3,_0x5d3555,_0x3f994b);},'jLKfc':function(_0x3c2c60,_0x33a5d3){return _0x3c2c60===_0x33a5d3;},'KgDgv':'Browserstack','bEZJf':_0xb572c3(0x15f),'iJUuW':function(_0x592feb,_0x13340c){return _0x592feb(_0x13340c);},'rkEdr':function(_0x12b97e,_0xc45b3c){return _0x12b97e===_0xc45b3c;},'unHCN':function(_0x537161,_0x1c1815){return _0x537161===_0x1c1815;},'HHvgU':_0xb572c3(0x17b),'Tfhxo':_0xb572c3(0x1de),'ighov':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','qLiUp':_0xb572c3(0x1da),'qbMtG':function(_0x3777a9,_0x5d23fe){return _0x3777a9===_0x5d23fe;},'FaTRS':function(_0x4c6202,_0x5e2157){return _0x4c6202===_0x5e2157;},'hnFOK':'ktTUe','QTHdP':_0xb572c3(0x191),'cNgKP':_0xb572c3(0x197),'jozlx':function(_0x390b42,_0x2cd5c0,_0x4b429e,_0x2b8c42,_0x187798,_0x5211fc,_0x2874ec){return _0x390b42(_0x2cd5c0,_0x4b429e,_0x2b8c42,_0x187798,_0x5211fc,_0x2874ec);},'qoaeI':function(_0x13f127,_0x238887,_0x2d81c5){return _0x13f127(_0x238887,_0x2d81c5);},'FdmOq':function(_0x19f8ba,_0x1ac8fc,_0x203e10,_0x4a6141,_0x4e9543,_0x28342a){return _0x19f8ba(_0x1ac8fc,_0x203e10,_0x4a6141,_0x4e9543,_0x28342a);},'RLLVu':_0xb572c3(0x1ca),'Mhxvf':_0xb572c3(0x1be),'ZqOmU':'fDoGR','TnOlv':_0xb572c3(0x1b7),'gusuq':function(_0x194976,_0x3cb291,_0x27d26b){return _0x194976(_0x3cb291,_0x27d26b);},'BDArp':function(_0x7ce5e5,_0x2a21c2,_0x3a557d){return _0x7ce5e5(_0x2a21c2,_0x3a557d);},'HZXnL':function(_0x284997,_0xff57ea){return _0x284997!==_0xff57ea;},'TokPQ':_0xb572c3(0x1e8),'nRxJc':_0xb572c3(0x1b3),'yNTum':function(_0x2e3254,_0x530064,_0x5716b9,_0x59d255,_0x13b2e6,_0x51ae55,_0x15ffd1){return _0x2e3254(_0x530064,_0x5716b9,_0x59d255,_0x13b2e6,_0x51ae55,_0x15ffd1);},'LlTPY':_0xb572c3(0x1a7),'QeJXx':function(_0x4eec89,_0x20b922){return _0x4eec89===_0x20b922;},'TBGPo':_0xb572c3(0x1e2),'prbeH':function(_0x53fce2,_0x4d4163,_0x3d3011,_0x2025e4,_0x1e354b,_0x550eaf,_0x3de36e){return _0x53fce2(_0x4d4163,_0x3d3011,_0x2025e4,_0x1e354b,_0x550eaf,_0x3de36e);},'EozQk':_0xb572c3(0x18f)};try{global_registry[_0xb572c3(0x1bb)]=_0x7cb779[_0xb572c3(0x171)](uuidv4);!fs[_0xb572c3(0x1c8)](_0x7cb779['WZZhp'](getCredentialsPath))&&(_0x7cb779[_0xb572c3(0x190)](_0x7cb779[_0xb572c3(0x1b2)],_0x7cb779[_0xb572c3(0x1b2)])?_0x45e2d5[_0xb572c3(0x161)](_0xb572c3(0x1ed)+_0x54f103[_0xb572c3(0x1d3)]+_0xb572c3(0x19b)):(console[_0xb572c3(0x1ac)](_0x7cb779[_0xb572c3(0x1db)]),await _0x7cb779['fygtR'](sendInstrumentationEvent,_0x220e57,_0x7cb779[_0xb572c3(0x194)],messageTypes['ERROR'],_0x7cb779[_0xb572c3(0x185)],null,_0x220e57),process[_0xb572c3(0x1cb)](0x1)));_0x7cb779[_0xb572c3(0x1d9)](sendInstrumentationEvent,_0x220e57,_0x7cb779[_0xb572c3(0x194)],messageTypes['INFO'],null,null,_0x220e57);!_0x220e57[_0xb572c3(0x183)]&&(_0x7cb779[_0xb572c3(0x163)](_0x7cb779[_0xb572c3(0x18e)],_0x7cb779['NjHWg'])?(console[_0xb572c3(0x1ac)](_0x7cb779[_0xb572c3(0x165)]),process[_0xb572c3(0x1cb)](0x1)):_0x1616d7=_0xb572c3(0x1cf)+_0xdd83c4[_0xb572c3(0x19d)]+_0xb572c3(0x1ba)+_0x5b3a18['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x1aa1b1[_0xb572c3(0x1d3)]+_0xb572c3(0x1a8)+_0x5024ab[_0xb572c3(0x1ee)]+_0xb572c3(0x189));const _0x34886b=JSON[_0xb572c3(0x1c7)](fs[_0xb572c3(0x17e)](_0x7cb779[_0xb572c3(0x1ad)](getCredentialsPath))),[_0x2f295f,_0x594a7d]=await _0x7cb779[_0xb572c3(0x1e9)](getGridDetails,_0x34886b[_0xb572c3(0x1e0)][_0xb572c3(0x181)],_0x34886b[_0xb572c3(0x1e0)][_0xb572c3(0x1ce)],_0x220e57[_0xb572c3(0x183)]);if(_0x594a7d){const _0x132ab7=_0x594a7d['info'];let _0x49131e='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x132ab7['name']+_0xb572c3(0x1ba)+_0x132ab7['id']+_0xb572c3(0x189);_0x594a7d[_0xb572c3(0x17d)]&&_0x7cb779[_0xb572c3(0x1b1)](_0x594a7d['clusterSpawnedVia'],_0x7cb779[_0xb572c3(0x1a6)])&&(_0x7cb779[_0xb572c3(0x163)](_0x7cb779['bEZJf'],_0x7cb779[_0xb572c3(0x180)])?_0x49131e=_0xb572c3(0x1cf)+_0x132ab7[_0xb572c3(0x19d)]+_0xb572c3(0x1ba)+_0x132ab7['id']+_0xb572c3(0x1c3)+_0x132ab7[_0xb572c3(0x1d3)]+_0xb572c3(0x1a8)+_0x132ab7[_0xb572c3(0x1ee)]+_0xb572c3(0x189):(_0x3adbab[_0xb572c3(0x161)](_0xb572c3(0x1df)+_0x2666c5+_0xb572c3(0x18d)),_0x5a2617=![]));const _0x3d6a10=await _0x7cb779[_0xb572c3(0x1c9)](inputConfirmation,_0x49131e);(_0x7cb779[_0xb572c3(0x1b1)](_0x3d6a10,undefined)||_0x7cb779[_0xb572c3(0x175)](_0x3d6a10,null)||!(_0x7cb779[_0xb572c3(0x1b1)](_0x3d6a10[_0xb572c3(0x1dc)](),'y')||_0x7cb779['rkEdr'](_0x3d6a10['toLowerCase'](),'n')))&&(_0x7cb779[_0xb572c3(0x16a)](_0x7cb779['HHvgU'],_0x7cb779[_0xb572c3(0x1e7)])?(_0x1ea31b[_0xb572c3(0x1a1)](_0x7cb779[_0xb572c3(0x1ec)]),_0x4b4626[_0xb572c3(0x1cb)](0x0)):(console[_0xb572c3(0x1ac)](_0x7cb779['ighov']),await _0x7cb779[_0xb572c3(0x1d9)](sendInstrumentationEvent,_0x220e57,_0x7cb779['arAeL'],messageTypes[_0xb572c3(0x17a)],_0x7cb779[_0xb572c3(0x196)],null,_0x220e57),process['exit'](0x1)));if(_0x7cb779[_0xb572c3(0x1a3)](_0x3d6a10['toLowerCase'](),'n')){if(_0x7cb779[_0xb572c3(0x1e5)](_0x7cb779[_0xb572c3(0x176)],_0x7cb779[_0xb572c3(0x176)]))process[_0xb572c3(0x1cb)](0x0);else{const _0x36a7fc={};_0x36a7fc['description']=_0x7cb779['QyePU'],_0x36a7fc[_0xb572c3(0x193)]=_0x7cb779[_0xb572c3(0x1bc)];const _0xb1a4cc={};_0xb1a4cc[_0xb572c3(0x1aa)]=_0x7cb779[_0xb572c3(0x198)],_0xb1a4cc[_0xb572c3(0x193)]=_0x7cb779['WrONq'],_0xb1a4cc[_0xb572c3(0x16f)]=![];const _0x4ab9f6={};return _0x4ab9f6[_0xb572c3(0x1cd)]=_0x36a7fc,_0x4ab9f6[_0xb572c3(0x1b8)]=_0xb1a4cc,_0x21440c['usage'](_0x43c7dc[_0xb572c3(0x1a9)])[_0xb572c3(0x1b9)](_0x4991ea)[_0xb572c3(0x1c5)](_0x4ab9f6)[_0xb572c3(0x187)](_0x7cb779[_0xb572c3(0x19a)])[_0xb572c3(0x1ef)];}}const _0x56aeee=WS_ENDPOINT[_0xb572c3(0x1e6)](_0x7cb779[_0xb572c3(0x1af)],_0x34886b[_0xb572c3(0x1e0)]['username'])['replace'](_0x7cb779[_0xb572c3(0x1b4)],_0x34886b[_0xb572c3(0x1e0)][_0xb572c3(0x1ce)]),_0x5b8ae1={};_0x5b8ae1[_0xb572c3(0x1b0)]=ws,_0x5b8ae1['connectionTimeout']=0x36ee80;const _0x5b74b9=new ReconnectingWebSocket(_0x56aeee,[],_0x5b8ae1);global_registry['clusterRegion']=_0x132ab7[_0xb572c3(0x1f2)];const _0x27b003=_0x132ab7[_0xb572c3(0x1d7)],_0xe6be81=await _0x7cb779[_0xb572c3(0x1e1)](getCloudProviderObject,_0x27b003,_0x132ab7['clusterName'],_0x132ab7[_0xb572c3(0x19d)],_0x5b74b9,webSocketUtils,_0x220e57),_0x1b1844=await _0xe6be81[_0xb572c3(0x1f0)]();if(_0x1b1844){const _0x406d20=_0x7cb779[_0xb572c3(0x1c9)](kebabCase,_0x132ab7[_0xb572c3(0x19d)]),[_0x4873fa,_0x2ffb88,_0x108b3d,_0x316c81,_0x5843d4,_0x192506]=await _0x7cb779[_0xb572c3(0x1f7)](createK8sClient,_0xe6be81,_0x220e57[_0xb572c3(0x1ab)]);let _0x391431=!![];const _0x529e71={};_0x529e71[_0xb572c3(0x19d)]=_0x406d20,await _0x4873fa['readNamespace'](_0x529e71)['then'](_0x3e6dd6=>{const _0x14da70=_0xb572c3,_0x4b94d9={};_0x4b94d9[_0x14da70(0x1dd)]=_0x7cb779['bKMwB'];const _0xea34a6=_0x4b94d9;_0x7cb779['VKWVy'](_0x7cb779[_0x14da70(0x19c)],_0x7cb779[_0x14da70(0x19c)])?_0x1c78de['warn'](_0xea34a6[_0x14da70(0x1dd)]):logger[_0x14da70(0x1a1)](_0x14da70(0x1df)+_0x406d20+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion');})[_0xb572c3(0x1b6)](_0x5a7e11=>{const _0x2ec60f=_0xb572c3;_0x7cb779['aRrYI'](_0x7cb779['Xcydq'],_0x7cb779[_0x2ec60f(0x1c1)])?(logger[_0x2ec60f(0x161)]('Namespace:\x20'+_0x406d20+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x391431=![]):_0xbf4345[_0x2ec60f(0x1cb)](0x0);});if(_0x391431){await _0x7cb779[_0xb572c3(0x173)](removeGridComponents,_0x4873fa,_0x2ffb88,_0x108b3d,_0x316c81,_0x406d20);if(_0x594a7d[_0xb572c3(0x17d)]){const _0x1cdfff=await _0xe6be81[_0xb572c3(0x1c0)]();_0x1cdfff?_0x7cb779[_0xb572c3(0x1a3)](_0x7cb779[_0xb572c3(0x1c4)],_0x7cb779[_0xb572c3(0x1c4)])?await _0xe6be81['deleteCluster'](_0x4873fa,_0x132ab7[_0xb572c3(0x1f2)]):_0x3f145c['info'](_0xb572c3(0x1df)+_0x165096+_0xb572c3(0x1f1)):_0x7cb779[_0xb572c3(0x1e5)](_0x7cb779['Mhxvf'],_0x7cb779[_0xb572c3(0x1bf)])?(_0x428828[_0xb572c3(0x1ac)](_0x7cb779[_0xb572c3(0x165)]),_0x368118['exit'](0x1)):logger['warn'](_0xb572c3(0x1ed)+_0x132ab7[_0xb572c3(0x1d3)]+_0xb572c3(0x19b));}}}else logger[_0xb572c3(0x161)](_0x7cb779[_0xb572c3(0x1f5)]);const _0x10695d=_0xb572c3(0x178)+AG_API_URL+_0xb572c3(0x167)+_0x220e57[_0xb572c3(0x183)],_0x431f2c={'method':_0x7cb779['TnOlv'],'headers':_0x7cb779['gusuq'](getAuthHeader,_0x34886b['Browserstack'][_0xb572c3(0x181)],_0x34886b[_0xb572c3(0x1e0)][_0xb572c3(0x1ce)]),'throwHttpErrors':![]},_0xf9de00=await _0x7cb779[_0xb572c3(0x16c)](got,_0x10695d,_0x431f2c);_0x7cb779['HZXnL'](_0xf9de00,null)&&_0x7cb779[_0xb572c3(0x18c)](_0xf9de00,undefined)&&_0x7cb779[_0xb572c3(0x16a)](_0xf9de00[_0xb572c3(0x1d2)],0xc8)&&(logger[_0xb572c3(0x1a1)](_0x7cb779[_0xb572c3(0x1ec)]),process[_0xb572c3(0x1cb)](0x0)),logger[_0xb572c3(0x1ac)](_0xb572c3(0x188)+_0xf9de00[_0xb572c3(0x16e)]),await _0x7cb779[_0xb572c3(0x1e1)](sendInstrumentationEvent,_0x220e57,_0x7cb779[_0xb572c3(0x194)],messageTypes[_0xb572c3(0x17a)],_0x7cb779[_0xb572c3(0x195)],_0x2f295f,_0x220e57),process['exit'](0x1);}_0x7cb779[_0xb572c3(0x163)](_0x2f295f[_0xb572c3(0x1d2)],0x191)&&(logger[_0xb572c3(0x1ac)](_0x7cb779[_0xb572c3(0x199)]),await _0x7cb779['yNTum'](sendInstrumentationEvent,_0x220e57,_0x7cb779[_0xb572c3(0x194)],messageTypes[_0xb572c3(0x17a)],_0x7cb779[_0xb572c3(0x1ae)],null,_0x220e57),process[_0xb572c3(0x1cb)](0x1)),_0x7cb779[_0xb572c3(0x1cc)](_0x2f295f[_0xb572c3(0x1d2)],0x190)&&(logger[_0xb572c3(0x1ac)](JSON[_0xb572c3(0x1c7)](_0x2f295f['body'])[_0xb572c3(0x1d6)]),await _0x7cb779['yNTum'](sendInstrumentationEvent,_0x220e57,_0x7cb779[_0xb572c3(0x194)],messageTypes[_0xb572c3(0x17a)],_0x7cb779[_0xb572c3(0x1a5)],null,_0x220e57),process[_0xb572c3(0x1cb)](0x1)),logger[_0xb572c3(0x1ac)](_0xb572c3(0x15d)+JSON['stringify'](_0x2f295f)),await _0x7cb779[_0xb572c3(0x164)](sendInstrumentationEvent,_0x220e57,_0x7cb779[_0xb572c3(0x194)],messageTypes[_0xb572c3(0x17a)],_0x7cb779[_0xb572c3(0x195)],_0x2f295f,_0x220e57),process[_0xb572c3(0x1cb)](0x1);}catch(_0x31e566){logger['error'](_0xb572c3(0x162)+_0x31e566[_0xb572c3(0x186)]),await _0x7cb779[_0xb572c3(0x192)](sendInstrumentationEvent,_0x220e57,_0x7cb779['arAeL'],messageTypes[_0xb572c3(0x17a)],_0x7cb779['EozQk'],_0x31e566,_0x220e57),process[_0xb572c3(0x1cb)](0x1);}};function a11_0x5652(){const _0xbaef26=['QTHdP','WebSocket','jLKfc','IavWN','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cNgKP','910038OBInsG','catch','DELETE','skip-tls-cert-verify','epilogue','\x22\x20and\x20ID\x20','requestId','YFeqp','185128mUjCps','IvARr','ZqOmU','isBrowserstackCluster','Xcydq','KaDcy','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','RLLVu','options','93820SczBuN','parse','existsSync','iJUuW','ckSUX','exit','QeJXx','grid-id','password','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','string','../../utils/userInput','statusCode','clusterName','sMhPQ','obOPW','message','cloudProvider','23682SYRojU','fygtR','invalid-input','OIRWK','toLowerCase','Tlbcd','FAjFo','Namespace:\x20','Browserstack','jozlx','invalid-grid-id','../../utils/utilityMethods','../../utils/createk8sClient','FaTRS','replace','Tfhxo','server-error','HFOCh','Skip\x20insecure\x20cert\x20verification.','341FuwgCP','yAhMi','Cluster:\x20','clusterId','argv','isClusterPresent','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','region','PgPDy','got','bKMwB','881284YPgYpv','qoaeI','Delete\x20an\x20Automation\x20grid.','ZvQnl','desc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','14Jpmfjc','AmzIP','builder','warn','Failed\x20to\x20delete\x20resources!\x20Error:\x20','bjtIX','yNTum','uDKaF','Pass\x20the\x20ID\x20of\x20the\x20Grid','/packages/cli/grid/','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/webSocketUtils','unHCN','grid','BDArp','2749144wcgQMo','body','default','78gMjamC','WZZhp','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','FdmOq','5LsAheS','aRrYI','hnFOK','zGRMH','https://','../../config/constants','ERROR','bUsUW','XzQMU','onlyGridInCluster','readFileSync','reconnecting-websocket','bEZJf','username','uuid','gridId','boolean','beALO','stack','help','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','14868BmLPMK','oviHG','HZXnL','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','NjHWg','unknown-error','dbtyX','<UsernamePlaceholder>','prbeH','type','arAeL','TokPQ','qLiUp','<PasswordPlaceholder>','cNTOI','nRxJc','adjQj','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','IyPDq','name','fUYsd','../../utils/instrumentationUtils','../../cloudproviders/utils','info','handler','qbMtG','command','TBGPo','KgDgv','unauthorised','\x22\x20with\x20ID\x20','delete','description','skipTlsCertVerify','error','gCOtZ','LlTPY'];a11_0x5652=function(){return _0xbaef26;};return a11_0x5652();}
@@ -1 +1 @@
1
- const a12_0x3efbb3=a12_0x2ceb;function a12_0x9acd(){const _0x53c072=['pUUlJ','CfUjV','zXDBm','bstack-accesskey','vhbLm','zqTbI','description','writeFileSync','uuid','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','usage','uzZDp','util','OqvFc','AdOSX','QoyhJ','exit','124506LKcswu','10nkGLVW','xnlUj','recommendCommands','npNyf','CVnWa','dDWyH','/automate/plan.json','wrong-creds','SSdrw','INFO','init-called','QuHGt','BROWSERSTACK_USERNAME','BROWSERSTACK_ACCESS_KEY','9285591YNZANR','handler','34572771EBnsoq','FvFCK','SHJqw','builder','options','355QoYExu','OQLnh','nPThm','4hdvRlk','stringify','Browserstack','3111448hnGQnA','XZLxU','EHSRE','bstackUsername','env','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ZQROI','https://','SadhN','oKkDk','../config/constants','mkdirSync','TBZRs','pTViD','ERROR','UhpRG','LHxRf','OapNm','JEQgu','mjiMy','../utils/instrumentationUtils','NZZjp','JVSEC','IYEKg','existsSync','string','epilogue','ZZtbF','pxSHt','IFdQz','readFileSync','strict','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','cHffz','bstackAccesskey','KfRQz','bstack-username','argv','username','JgYtG','kSDqO','type','rCccC','fsPcs','2799579qxXpHF','1074532GTkiFI','../utils/userInput','error','command','statusCode','help','stack','parse','REEVW','got','1041574pQzlEb','password','jpKbR','debug','OQLGF'];a12_0x9acd=function(){return _0x53c072;};return a12_0x9acd();}(function(_0x216e9a,_0x2c54e0){const _0x26b55a=a12_0x2ceb,_0x49a05f=_0x216e9a();while(!![]){try{const _0x54be63=-parseInt(_0x26b55a(0x200))/0x1+-parseInt(_0x26b55a(0x20a))/0x2+-parseInt(_0x26b55a(0x1ff))/0x3*(parseInt(_0x26b55a(0x1d0))/0x4)+parseInt(_0x26b55a(0x1cd))/0x5*(-parseInt(_0x26b55a(0x220))/0x6)+parseInt(_0x26b55a(0x1c6))/0x7+-parseInt(_0x26b55a(0x1d3))/0x8+parseInt(_0x26b55a(0x1c8))/0x9*(parseInt(_0x26b55a(0x221))/0xa);if(_0x54be63===_0x2c54e0)break;else _0x49a05f['push'](_0x49a05f['shift']());}catch(_0x17e1db){_0x49a05f['push'](_0x49a05f['shift']());}}}(a12_0x9acd,0xbdbd0));const fs=require('fs'),util=require(a12_0x3efbb3(0x21b)),got=require(a12_0x3efbb3(0x209)),{v4:uuidv4}=require(a12_0x3efbb3(0x217)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x3efbb3(0x201)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x3efbb3(0x1dd)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x3efbb3(0x1e7));function a12_0x2ceb(_0xba31dc,_0x52c27c){const _0x9acd29=a12_0x9acd();return a12_0x2ceb=function(_0x2cebeb,_0x1a18ae){_0x2cebeb=_0x2cebeb-0x1c5;let _0x100d70=_0x9acd29[_0x2cebeb];return _0x100d70;},a12_0x2ceb(_0xba31dc,_0x52c27c);}exports[a12_0x3efbb3(0x203)]='init',exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x3efbb3(0x1cb)]=function(_0x23958f){const _0x5a187b=a12_0x3efbb3,_0x2440ab={};_0x2440ab['FvFCK']=_0x5a187b(0x1d8),_0x2440ab[_0x5a187b(0x1f4)]=_0x5a187b(0x1ec),_0x2440ab['kSDqO']=_0x5a187b(0x218),_0x2440ab[_0x5a187b(0x1fd)]=_0x5a187b(0x205);const _0x4635b3=_0x2440ab,_0x4bd0b8={};_0x4bd0b8[_0x5a187b(0x215)]=_0x4635b3[_0x5a187b(0x1c9)],_0x4bd0b8[_0x5a187b(0x1fc)]=_0x4635b3['cHffz'];const _0x5299f3={};_0x5299f3['description']=_0x4635b3[_0x5a187b(0x1fb)],_0x5299f3[_0x5a187b(0x1fc)]=_0x4635b3[_0x5a187b(0x1f4)];const _0xa0ed33={};return _0xa0ed33['bstack-username']=_0x4bd0b8,_0xa0ed33[_0x5a187b(0x212)]=_0x5299f3,_0x23958f['usage'](HELP_HEADER_MESSAGE['init'])[_0x5a187b(0x1ed)](HELP_FOOTER_MESSAGE)[_0x5a187b(0x1cc)](_0xa0ed33)[_0x5a187b(0x223)]()[_0x5a187b(0x1f2)]()[_0x5a187b(0x205)](_0x4635b3[_0x5a187b(0x1fd)])[_0x5a187b(0x1f8)];},exports[a12_0x3efbb3(0x1c7)]=async function(_0x2bf9c5){const _0x1bc836=a12_0x3efbb3,_0x5421ac={'pxSHt':'utf-8','mjiMy':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','JgYtG':_0x1bc836(0x1ec),'NZZjp':_0x1bc836(0x218),'oKkDk':_0x1bc836(0x205),'REEVW':function(_0x5ed1b4){return _0x5ed1b4();},'IYEKg':function(_0x55339a,_0x2cf55d,_0x565967,_0x156f12,_0x51bee7,_0x23b6bb,_0x35afbe){return _0x55339a(_0x2cf55d,_0x565967,_0x156f12,_0x51bee7,_0x23b6bb,_0x35afbe);},'EHSRE':_0x1bc836(0x22b),'SHJqw':function(_0x3f5c5f,_0x34ee71){return _0x3f5c5f===_0x34ee71;},'pTViD':_0x1bc836(0x1df),'npNyf':function(_0x5c8189,_0x25ceea){return _0x5c8189!==_0x25ceea;},'zXDBm':_0x1bc836(0x1f6),'OQLnh':_0x1bc836(0x1d4),'ZZtbF':_0x1bc836(0x1e5),'pUUlJ':function(_0x326847,_0x4b033c){return _0x326847===_0x4b033c;},'UhpRG':_0x1bc836(0x1e9),'IFdQz':_0x1bc836(0x1e3),'dDWyH':function(_0x199b9c,_0x5560b2){return _0x199b9c===_0x5560b2;},'OQLGF':_0x1bc836(0x1db),'kbDjV':_0x1bc836(0x229),'fSxIf':_0x1bc836(0x1f3),'uzZDp':'GET','xnlUj':function(_0x924840,_0x331cd6,_0x237deb){return _0x924840(_0x331cd6,_0x237deb);},'nPThm':function(_0x473016,_0x371179){return _0x473016!==_0x371179;},'fsPcs':function(_0x36d8a9,_0x31a2c5){return _0x36d8a9!==_0x31a2c5;},'QuHGt':function(_0x1359a5,_0x192375){return _0x1359a5===_0x192375;},'OqvFc':_0x1bc836(0x21d),'vhbLm':_0x1bc836(0x21e),'CVnWa':function(_0x5575ef){return _0x5575ef();},'jpKbR':_0x1bc836(0x1e4),'CfUjV':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','zqTbI':_0x1bc836(0x228),'ZQROI':'unknown-error'};try{global_registry['requestId']=_0x5421ac['REEVW'](uuidv4),_0x5421ac[_0x1bc836(0x1ea)](sendInstrumentationEvent,_0x2bf9c5,_0x5421ac[_0x1bc836(0x1d5)],messageTypes[_0x1bc836(0x22a)],null,null,_0x2bf9c5);const _0x53ef57=_0x5421ac['REEVW'](getDirForConfig);!fs[_0x1bc836(0x1eb)](_0x53ef57)&&(_0x5421ac['SHJqw'](_0x5421ac[_0x1bc836(0x1e0)],_0x5421ac[_0x1bc836(0x1e0)])?fs[_0x1bc836(0x1de)](_0x53ef57):_0x2a3d17=_0x22e489[_0x1bc836(0x1d6)]);let _0x52fe84,_0x268e03;process[_0x1bc836(0x1d7)]['BROWSERSTACK_USERNAME']&&(_0x5421ac[_0x1bc836(0x224)](_0x5421ac[_0x1bc836(0x211)],_0x5421ac[_0x1bc836(0x211)])?_0x4ae486=_0x538bb3['parse'](_0x3d4c8b[_0x1bc836(0x1f1)](_0x5015aa,_0x5421ac[_0x1bc836(0x1ef)])):_0x52fe84=process[_0x1bc836(0x1d7)][_0x1bc836(0x22d)]);process['env'][_0x1bc836(0x1c5)]&&(_0x5421ac[_0x1bc836(0x224)](_0x5421ac[_0x1bc836(0x1ce)],_0x5421ac[_0x1bc836(0x1ce)])?_0xe79f4c=_0xf7e064[_0x1bc836(0x1d7)][_0x1bc836(0x22d)]:_0x268e03=process[_0x1bc836(0x1d7)]['BROWSERSTACK_ACCESS_KEY']);_0x2bf9c5[_0x1bc836(0x1d6)]&&(_0x5421ac[_0x1bc836(0x224)](_0x5421ac[_0x1bc836(0x1ee)],_0x5421ac[_0x1bc836(0x1ee)])?_0x2ee7da=_0x30e63e['bstackAccesskey']:_0x52fe84=_0x2bf9c5[_0x1bc836(0x1d6)]);if(_0x2bf9c5['bstackAccesskey']){if(_0x5421ac[_0x1bc836(0x20f)](_0x5421ac[_0x1bc836(0x1e2)],_0x5421ac[_0x1bc836(0x1f0)])){const _0x3405e9={};_0x3405e9[_0x1bc836(0x215)]=_0x5421ac[_0x1bc836(0x1e6)],_0x3405e9[_0x1bc836(0x1fc)]=_0x5421ac[_0x1bc836(0x1fa)];const _0x2221b1={};_0x2221b1[_0x1bc836(0x215)]=_0x5421ac[_0x1bc836(0x1e8)],_0x2221b1[_0x1bc836(0x1fc)]=_0x5421ac[_0x1bc836(0x1fa)];const _0x239146={};return _0x239146[_0x1bc836(0x1f7)]=_0x3405e9,_0x239146[_0x1bc836(0x212)]=_0x2221b1,_0x3978ee[_0x1bc836(0x219)](_0x1549c6['init'])['epilogue'](_0x4b2934)[_0x1bc836(0x1cc)](_0x239146)[_0x1bc836(0x223)]()[_0x1bc836(0x1f2)]()['help'](_0x5421ac[_0x1bc836(0x1dc)])[_0x1bc836(0x1f8)];}else _0x268e03=_0x2bf9c5[_0x1bc836(0x1f5)];}if(_0x5421ac[_0x1bc836(0x226)](_0x52fe84,undefined)||_0x5421ac[_0x1bc836(0x20f)](_0x268e03,undefined)){if(_0x5421ac[_0x1bc836(0x1ca)](_0x5421ac[_0x1bc836(0x20e)],_0x5421ac['kbDjV'])){let _0xfc9fb0={};const _0x3d63e5=_0x5421ac[_0x1bc836(0x208)](_0x106529);_0x35da3f[_0x1bc836(0x1eb)](_0x3d63e5)&&(_0xfc9fb0=_0x48ce90[_0x1bc836(0x207)](_0x52e90e[_0x1bc836(0x1f1)](_0x3d63e5,_0x5421ac['pxSHt'])));const _0x4be633={};_0x4be633['username']=_0x48ea1f,_0x4be633[_0x1bc836(0x20b)]=_0x9ab744,_0xfc9fb0[_0x1bc836(0x1d2)]=_0x4be633,_0x1d8de4[_0x1bc836(0x216)](_0x3d63e5,_0x543111[_0x1bc836(0x1d1)](_0xfc9fb0)),_0x2ba4d1[_0x1bc836(0x21f)](0x0);}else{logger[_0x1bc836(0x20d)](_0x5421ac['fSxIf']);const [_0x539e71,_0x12307c]=await _0x5421ac[_0x1bc836(0x208)](inputBstackKeys);_0x52fe84=_0x539e71,_0x268e03=_0x12307c;}}let _0x23890e=![];const _0x313da7=_0x1bc836(0x1da)+_0x52fe84+':'+_0x268e03+'@'+BS_API_URL+_0x1bc836(0x227),_0x47a964={'method':_0x5421ac[_0x1bc836(0x21a)],'headers':_0x5421ac[_0x1bc836(0x222)](getAuthHeader,_0x52fe84,_0x268e03),'throwHttpErrors':![]},_0x1a9f25=await _0x5421ac[_0x1bc836(0x222)](got,_0x313da7,_0x47a964);_0x5421ac[_0x1bc836(0x1cf)](_0x1a9f25,null)&&_0x5421ac[_0x1bc836(0x1fe)](_0x1a9f25,undefined)&&_0x5421ac[_0x1bc836(0x22c)](_0x1a9f25[_0x1bc836(0x204)],0xc8)&&(_0x5421ac[_0x1bc836(0x224)](_0x5421ac['OqvFc'],_0x5421ac[_0x1bc836(0x21c)])?_0x19dfad=!![]:_0x23890e=!![]);if(_0x23890e){if(_0x5421ac['dDWyH'](_0x5421ac[_0x1bc836(0x213)],_0x5421ac[_0x1bc836(0x213)])){let _0x4a6985={};const _0x36c34f=_0x5421ac[_0x1bc836(0x225)](getCredentialsPath);fs[_0x1bc836(0x1eb)](_0x36c34f)&&(_0x5421ac[_0x1bc836(0x1fe)](_0x5421ac[_0x1bc836(0x20c)],_0x5421ac[_0x1bc836(0x20c)])?_0x58bd7f=_0x5f5db4[_0x1bc836(0x1d7)]['BROWSERSTACK_ACCESS_KEY']:_0x4a6985=JSON[_0x1bc836(0x207)](fs[_0x1bc836(0x1f1)](_0x36c34f,_0x5421ac[_0x1bc836(0x1ef)])));const _0xdd106d={};_0xdd106d[_0x1bc836(0x1f9)]=_0x52fe84,_0xdd106d[_0x1bc836(0x20b)]=_0x268e03,_0x4a6985[_0x1bc836(0x1d2)]=_0xdd106d,fs[_0x1bc836(0x216)](_0x36c34f,JSON['stringify'](_0x4a6985)),process[_0x1bc836(0x21f)](0x0);}else _0x1e4a0a[_0x1bc836(0x1de)](_0x4d4b42);}else logger[_0x1bc836(0x202)](_0x5421ac[_0x1bc836(0x210)]),await _0x5421ac[_0x1bc836(0x1ea)](sendInstrumentationEvent,_0x2bf9c5,_0x5421ac[_0x1bc836(0x1d5)],messageTypes[_0x1bc836(0x1e1)],_0x5421ac[_0x1bc836(0x214)],null,_0x2bf9c5),process['exit'](0x1);}catch(_0x18eb45){logger[_0x1bc836(0x202)](_0x18eb45[_0x1bc836(0x206)]),await _0x5421ac[_0x1bc836(0x1ea)](sendInstrumentationEvent,_0x2bf9c5,_0x5421ac[_0x1bc836(0x1d5)],messageTypes[_0x1bc836(0x1e1)],_0x5421ac[_0x1bc836(0x1d9)],_0x18eb45,_0x2bf9c5),process[_0x1bc836(0x21f)](0x1);}};
1
+ function a12_0x3a23(_0x38a23c,_0x29b871){const _0x3123cc=a12_0x3123();return a12_0x3a23=function(_0x3a23b8,_0x36eecf){_0x3a23b8=_0x3a23b8-0x104;let _0x190ba0=_0x3123cc[_0x3a23b8];return _0x190ba0;},a12_0x3a23(_0x38a23c,_0x29b871);}function a12_0x3123(){const _0xf0d85f=['bstackAccesskey','4rDtrlJ','SqfoP','kyCGV','ueqMs','gSlAS','PScAt','argv','builder','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','error','unknown-error','recommendCommands','GET','epilogue','oeqEd','writeFileSync','iQnoF','RsQKE','stringify','SBmCj','JWbPO','../utils/userInput','env','string','BROWSERSTACK_USERNAME','bstack-accesskey','gZmjI','1165050wClSAn','SucdJ','JwKYQ','RvzJe','desc','XtKLT','password','2370648ylyKCA','OAPHN','stack','OzuAg','https://','bstack-username','got','WXyrl','type','dBPrh','GuCru','YXttK','fczRu','VPpbQ','usage','24XFlhjq','utf-8','AhXOs','3196251vqmddF','exit','help','590371etWLmJ','description','1023150Guhtlm','ERROR','init','strict','eJLfJ','sguyj','ctfYQ','BROWSERSTACK_ACCESS_KEY','oOiHv','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','Browserstack','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','2023315MOfWmn','username','CqffY','bYFJd','mkdirSync','debug','util','GASxU','naFyQ','RsIDR','init-called','nGBPN','options','statusCode','uIhoa','../config/logger','../utils/utilityMethods','orlHM','scIUA','nRneZ','../utils/instrumentationUtils','readFileSync','CGfAG','ImWbs','existsSync','command','requestId','HbQbK','qrCfK','1662411BLLmEU','INFO','parse','bstackUsername','wOlmE','wQEHf'];a12_0x3123=function(){return _0xf0d85f;};return a12_0x3123();}const a12_0x388d38=a12_0x3a23;(function(_0x54a7ac,_0x4ee040){const _0x2c551d=a12_0x3a23,_0x28b96a=_0x54a7ac();while(!![]){try{const _0x31af2e=-parseInt(_0x2c551d(0x136))/0x1+parseInt(_0x2c551d(0x121))/0x2+parseInt(_0x2c551d(0x161))/0x3*(parseInt(_0x2c551d(0x168))/0x4)+parseInt(_0x2c551d(0x138))/0x5+-parseInt(_0x2c551d(0x11a))/0x6+parseInt(_0x2c551d(0x144))/0x7*(-parseInt(_0x2c551d(0x130))/0x8)+parseInt(_0x2c551d(0x133))/0x9;if(_0x31af2e===_0x4ee040)break;else _0x28b96a['push'](_0x28b96a['shift']());}catch(_0x4e997f){_0x28b96a['push'](_0x28b96a['shift']());}}}(a12_0x3123,0x9e17d));const fs=require('fs'),util=require(a12_0x388d38(0x14a)),got=require(a12_0x388d38(0x127)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x388d38(0x153)),{inputBstackKeys}=require(a12_0x388d38(0x114)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x388d38(0x154)),{sendInstrumentationEvent}=require(a12_0x388d38(0x158));exports[a12_0x388d38(0x15d)]=a12_0x388d38(0x13a),exports[a12_0x388d38(0x11e)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x388d38(0x106)]=function(_0x2aea14){const _0x5aa41b=a12_0x388d38,_0x5a4833={};_0x5a4833[_0x5aa41b(0x124)]=_0x5aa41b(0x143),_0x5a4833[_0x5aa41b(0x110)]='string',_0x5a4833[_0x5aa41b(0x12c)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x5a4833[_0x5aa41b(0x113)]=_0x5aa41b(0x135);const _0x5dcd58=_0x5a4833,_0x4f8127={};_0x4f8127[_0x5aa41b(0x137)]=_0x5dcd58['OzuAg'],_0x4f8127[_0x5aa41b(0x129)]=_0x5dcd58[_0x5aa41b(0x110)];const _0x45b6b9={};_0x45b6b9[_0x5aa41b(0x137)]=_0x5dcd58[_0x5aa41b(0x12c)],_0x45b6b9['type']=_0x5dcd58[_0x5aa41b(0x110)];const _0x506b44={};return _0x506b44[_0x5aa41b(0x126)]=_0x4f8127,_0x506b44[_0x5aa41b(0x118)]=_0x45b6b9,_0x2aea14[_0x5aa41b(0x12f)](HELP_HEADER_MESSAGE[_0x5aa41b(0x13a)])[_0x5aa41b(0x10c)](HELP_FOOTER_MESSAGE)[_0x5aa41b(0x150)](_0x506b44)[_0x5aa41b(0x10a)]()[_0x5aa41b(0x13b)]()[_0x5aa41b(0x135)](_0x5dcd58['JWbPO'])[_0x5aa41b(0x105)];},exports['handler']=async function(_0x285c9c){const _0x1c2205=a12_0x388d38,_0x3c938f={'qrCfK':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','naFyQ':_0x1c2205(0x116),'HbQbK':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','SBmCj':_0x1c2205(0x135),'AhXOs':_0x1c2205(0x131),'nRneZ':function(_0x39e285){return _0x39e285();},'nGBPN':function(_0x24a001,_0x2ec044,_0x581b81,_0x41ee82,_0x25eb17,_0x1f80a6,_0x3c7ffe){return _0x24a001(_0x2ec044,_0x581b81,_0x41ee82,_0x25eb17,_0x1f80a6,_0x3c7ffe);},'orlHM':_0x1c2205(0x14e),'sguyj':function(_0x88541c,_0x31a2b1){return _0x88541c===_0x31a2b1;},'GuCru':_0x1c2205(0x10f),'GASxU':function(_0x11cfe2,_0x5a8dc6){return _0x11cfe2===_0x5a8dc6;},'gSlAS':'uIiVk','ffQNZ':_0x1c2205(0x15b),'MKkuR':_0x1c2205(0x140),'VPpbQ':'rPRPC','wQEHf':function(_0x1bdc2e,_0x38b4f0){return _0x1bdc2e===_0x38b4f0;},'WXyrl':_0x1c2205(0x13c),'jwPAM':_0x1c2205(0x14d),'OloPg':_0x1c2205(0x146),'dBPrh':function(_0x4711b3,_0x39253c){return _0x4711b3===_0x39253c;},'WRYOm':function(_0x2e3b27,_0x28823a){return _0x2e3b27!==_0x28823a;},'JwKYQ':_0x1c2205(0x16b),'scIUA':_0x1c2205(0x141),'LWlmv':function(_0x46d023){return _0x46d023();},'wOlmE':_0x1c2205(0x10b),'SqfoP':function(_0xdded6d,_0x17c550,_0xfe5484){return _0xdded6d(_0x17c550,_0xfe5484);},'XtKLT':function(_0x4abcc1,_0x4e6dec){return _0x4abcc1!==_0x4e6dec;},'ctfYQ':_0x1c2205(0x11b),'gZmjI':function(_0x1acc22,_0x23d9d2){return _0x1acc22!==_0x23d9d2;},'fczRu':_0x1c2205(0x122),'PScAt':function(_0x5ba981){return _0x5ba981();},'bYFJd':'rYdIZ','kyCGV':_0x1c2205(0x107),'uIhoa':function(_0x44baaf,_0x2f49c1,_0x430df9,_0x704bed,_0x5617c0,_0x165882,_0x3846bb){return _0x44baaf(_0x2f49c1,_0x430df9,_0x704bed,_0x5617c0,_0x165882,_0x3846bb);},'oeqEd':'wrong-creds','CGfAG':function(_0x572cd1,_0x4d6a8c,_0x459de2,_0x206ac8,_0x3da583,_0x22cb55,_0x3eb536){return _0x572cd1(_0x4d6a8c,_0x459de2,_0x206ac8,_0x3da583,_0x22cb55,_0x3eb536);},'RvzJe':_0x1c2205(0x109)};try{global_registry[_0x1c2205(0x15e)]=_0x3c938f['nRneZ'](uuidv4),_0x3c938f[_0x1c2205(0x14f)](sendInstrumentationEvent,_0x285c9c,_0x3c938f['orlHM'],messageTypes[_0x1c2205(0x162)],null,null,_0x285c9c);const _0x133045=_0x3c938f[_0x1c2205(0x157)](getDirForConfig);!fs[_0x1c2205(0x15c)](_0x133045)&&(_0x3c938f['sguyj'](_0x3c938f[_0x1c2205(0x12b)],_0x3c938f[_0x1c2205(0x12b)])?fs[_0x1c2205(0x148)](_0x133045):_0x35628a=_0x4a974e[_0x1c2205(0x167)]);let _0xeaf103,_0x476691;process[_0x1c2205(0x115)]['BROWSERSTACK_USERNAME']&&(_0x3c938f[_0x1c2205(0x14b)](_0x3c938f[_0x1c2205(0x16c)],_0x3c938f['ffQNZ'])?_0xf0854a=!![]:_0xeaf103=process[_0x1c2205(0x115)][_0x1c2205(0x117)]);if(process['env'][_0x1c2205(0x13f)]){if(_0x3c938f[_0x1c2205(0x14b)](_0x3c938f['MKkuR'],_0x3c938f[_0x1c2205(0x12e)])){const _0x55fc5c={};_0x55fc5c[_0x1c2205(0x137)]=_0x3c938f[_0x1c2205(0x160)],_0x55fc5c[_0x1c2205(0x129)]=_0x3c938f[_0x1c2205(0x14c)];const _0x1a480a={};_0x1a480a[_0x1c2205(0x137)]=_0x3c938f[_0x1c2205(0x15f)],_0x1a480a[_0x1c2205(0x129)]=_0x3c938f['naFyQ'];const _0x2bb78a={};return _0x2bb78a[_0x1c2205(0x126)]=_0x55fc5c,_0x2bb78a[_0x1c2205(0x118)]=_0x1a480a,_0x5102a2['usage'](_0x10d85f[_0x1c2205(0x13a)])[_0x1c2205(0x10c)](_0x5be072)['options'](_0x2bb78a)[_0x1c2205(0x10a)]()[_0x1c2205(0x13b)]()[_0x1c2205(0x135)](_0x3c938f[_0x1c2205(0x112)])[_0x1c2205(0x105)];}else _0x476691=process[_0x1c2205(0x115)][_0x1c2205(0x13f)];}_0x285c9c['bstackUsername']&&(_0x3c938f[_0x1c2205(0x166)](_0x3c938f[_0x1c2205(0x128)],_0x3c938f['WXyrl'])?_0xeaf103=_0x285c9c[_0x1c2205(0x164)]:_0x42925a=_0x384c1f[_0x1c2205(0x115)]['BROWSERSTACK_USERNAME']);_0x285c9c['bstackAccesskey']&&(_0x3c938f[_0x1c2205(0x14b)](_0x3c938f['jwPAM'],_0x3c938f['OloPg'])?_0xa903e7=_0xef5c4d[_0x1c2205(0x163)](_0xfba637[_0x1c2205(0x159)](_0x1d9142,_0x3c938f[_0x1c2205(0x132)])):_0x476691=_0x285c9c[_0x1c2205(0x167)]);if(_0x3c938f[_0x1c2205(0x14b)](_0xeaf103,undefined)||_0x3c938f[_0x1c2205(0x12a)](_0x476691,undefined)){if(_0x3c938f['WRYOm'](_0x3c938f[_0x1c2205(0x11c)],_0x3c938f['JwKYQ']))_0x5b9055=_0x5c545f['env'][_0x1c2205(0x13f)];else{logger[_0x1c2205(0x149)](_0x3c938f[_0x1c2205(0x156)]);const [_0xf45d6e,_0x291d47]=await _0x3c938f['LWlmv'](inputBstackKeys);_0xeaf103=_0xf45d6e,_0x476691=_0x291d47;}}let _0x10f40f=![];const _0xba538b=_0x1c2205(0x125)+_0xeaf103+':'+_0x476691+'@'+BS_API_URL+'/automate/plan.json',_0x1fee40={'method':_0x3c938f[_0x1c2205(0x165)],'headers':_0x3c938f['SqfoP'](getAuthHeader,_0xeaf103,_0x476691),'throwHttpErrors':![]},_0xb0754a=await _0x3c938f[_0x1c2205(0x169)](got,_0xba538b,_0x1fee40);_0x3c938f[_0x1c2205(0x11f)](_0xb0754a,null)&&_0x3c938f[_0x1c2205(0x11f)](_0xb0754a,undefined)&&_0x3c938f[_0x1c2205(0x13d)](_0xb0754a[_0x1c2205(0x151)],0xc8)&&(_0x3c938f['XtKLT'](_0x3c938f[_0x1c2205(0x13e)],_0x3c938f[_0x1c2205(0x13e)])?_0x173681=_0x1da4bb[_0x1c2205(0x164)]:_0x10f40f=!![]);if(_0x10f40f){if(_0x3c938f[_0x1c2205(0x119)](_0x3c938f[_0x1c2205(0x12d)],_0x3c938f[_0x1c2205(0x12d)])){let _0x5dc91e={};const _0x1aaad2=_0x3c938f[_0x1c2205(0x157)](_0x33333f);_0x3dfc1f[_0x1c2205(0x15c)](_0x1aaad2)&&(_0x5dc91e=_0x471fd2[_0x1c2205(0x163)](_0x3dba46[_0x1c2205(0x159)](_0x1aaad2,_0x3c938f[_0x1c2205(0x132)])));const _0x754ad5={};_0x754ad5['username']=_0x176c86,_0x754ad5[_0x1c2205(0x120)]=_0x52f034,_0x5dc91e['Browserstack']=_0x754ad5,_0x5e95ba[_0x1c2205(0x10e)](_0x1aaad2,_0x4375eb['stringify'](_0x5dc91e)),_0x1aceb1[_0x1c2205(0x134)](0x0);}else{let _0x3a841f={};const _0x44d208=_0x3c938f[_0x1c2205(0x104)](getCredentialsPath);fs[_0x1c2205(0x15c)](_0x44d208)&&(_0x3c938f[_0x1c2205(0x13d)](_0x3c938f[_0x1c2205(0x147)],_0x3c938f[_0x1c2205(0x147)])?_0x3a841f=JSON[_0x1c2205(0x163)](fs[_0x1c2205(0x159)](_0x44d208,_0x3c938f['AhXOs'])):_0x4eced9['mkdirSync'](_0x2ac7a2));const _0x4137d2={};_0x4137d2[_0x1c2205(0x145)]=_0xeaf103,_0x4137d2[_0x1c2205(0x120)]=_0x476691,_0x3a841f[_0x1c2205(0x142)]=_0x4137d2,fs[_0x1c2205(0x10e)](_0x44d208,JSON[_0x1c2205(0x111)](_0x3a841f)),process['exit'](0x0);}}else logger[_0x1c2205(0x108)](_0x3c938f[_0x1c2205(0x16a)]),await _0x3c938f[_0x1c2205(0x152)](sendInstrumentationEvent,_0x285c9c,_0x3c938f[_0x1c2205(0x155)],messageTypes[_0x1c2205(0x139)],_0x3c938f[_0x1c2205(0x10d)],null,_0x285c9c),process[_0x1c2205(0x134)](0x1);}catch(_0x184c71){logger[_0x1c2205(0x108)](_0x184c71[_0x1c2205(0x123)]),await _0x3c938f[_0x1c2205(0x15a)](sendInstrumentationEvent,_0x285c9c,_0x3c938f[_0x1c2205(0x155)],messageTypes[_0x1c2205(0x139)],_0x3c938f[_0x1c2205(0x11d)],_0x184c71,_0x285c9c),process[_0x1c2205(0x134)](0x1);}};
@@ -1 +1 @@
1
- const a13_0xb8a32d=a13_0x5a20;(function(_0x49ed19,_0x399d10){const _0x3018c2=a13_0x5a20,_0xc15d61=_0x49ed19();while(!![]){try{const _0x3dd8a3=-parseInt(_0x3018c2(0x13b))/0x1+parseInt(_0x3018c2(0x141))/0x2*(-parseInt(_0x3018c2(0x14a))/0x3)+parseInt(_0x3018c2(0x138))/0x4+parseInt(_0x3018c2(0x146))/0x5*(parseInt(_0x3018c2(0x13a))/0x6)+parseInt(_0x3018c2(0x14c))/0x7+parseInt(_0x3018c2(0x140))/0x8*(-parseInt(_0x3018c2(0x13f))/0x9)+-parseInt(_0x3018c2(0x14b))/0xa*(-parseInt(_0x3018c2(0x144))/0xb);if(_0x3dd8a3===_0x399d10)break;else _0xc15d61['push'](_0xc15d61['shift']());}catch(_0x5a0584){_0xc15d61['push'](_0xc15d61['shift']());}}}(a13_0x487c,0x5d428));function a13_0x487c(){const _0x3472fd=['65285rubVjn','recommendCommands','25JTqdLf','list','epilogue','command','69gwmQvp','370mKTidm','1862651XyyeIJ','tMtGU','list_commands','builder','2974044SlPPYJ','commandDir','162486dnfKUW','602346GQTiKc','root','FDlNn','demandCommand','135090tWRwAu','96lSDqkc','17404EojWZN','usage','help'];a13_0x487c=function(){return _0x3472fd;};return a13_0x487c();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a13_0x5a20(_0x2fbf2c,_0x3c507d){const _0x487c92=a13_0x487c();return a13_0x5a20=function(_0x5a2033,_0x6a56f4){_0x5a2033=_0x5a2033-0x138;let _0x380a4c=_0x487c92[_0x5a2033];return _0x380a4c;},a13_0x5a20(_0x2fbf2c,_0x3c507d);}exports[a13_0xb8a32d(0x149)]='list',exports['desc']='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0xb8a32d(0x14f)]=function(_0x304d25){const _0x1ac948=a13_0xb8a32d,_0x33850e={};_0x33850e[_0x1ac948(0x14d)]=_0x1ac948(0x14e),_0x33850e['FDlNn']=_0x1ac948(0x143);const _0x2c58f1=_0x33850e;return _0x304d25[_0x1ac948(0x139)](_0x2c58f1[_0x1ac948(0x14d)])[_0x1ac948(0x13e)]()[_0x1ac948(0x142)](HELP_HEADER_MESSAGE[_0x1ac948(0x147)][_0x1ac948(0x13c)])[_0x1ac948(0x148)](HELP_FOOTER_MESSAGE)[_0x1ac948(0x145)]()['strict']()[_0x1ac948(0x143)](_0x2c58f1[_0x1ac948(0x13d)]);},exports['handler']=function(_0x10fc2c){};
1
+ const a13_0x3e5ad9=a13_0x2c31;function a13_0x51cd(){const _0xa99701=['YIhyP','75580CAQSzt','usage','3983HNyiqG','28125VRoNmk','builder','List\x20down\x20the\x20Grid\x20resources.','61Vxmjwi','help','8168225ZkbMFt','recommendCommands','list','command','4254gcmhdC','root','35042XILNQL','121LJdxRb','340KXzORS','xomjI','50084508TtwbBQ','18OYSTmo','1125416ZKGaAy','epilogue'];a13_0x51cd=function(){return _0xa99701;};return a13_0x51cd();}function a13_0x2c31(_0x3f36fb,_0x5c6ade){const _0x51cd30=a13_0x51cd();return a13_0x2c31=function(_0x2c316e,_0x10df1c){_0x2c316e=_0x2c316e-0x7f;let _0x4a7e84=_0x51cd30[_0x2c316e];return _0x4a7e84;},a13_0x2c31(_0x3f36fb,_0x5c6ade);}(function(_0x41e4df,_0xb06e0d){const _0x5405c2=a13_0x2c31,_0x4d29a0=_0x41e4df();while(!![]){try{const _0x8f0308=parseInt(_0x5405c2(0x91))/0x1*(-parseInt(_0x5405c2(0x82))/0x2)+parseInt(_0x5405c2(0x8e))/0x3*(-parseInt(_0x5405c2(0x84))/0x4)+-parseInt(_0x5405c2(0x93))/0x5+-parseInt(_0x5405c2(0x80))/0x6*(-parseInt(_0x5405c2(0x8d))/0x7)+-parseInt(_0x5405c2(0x88))/0x8*(parseInt(_0x5405c2(0x87))/0x9)+-parseInt(_0x5405c2(0x8b))/0xa*(-parseInt(_0x5405c2(0x83))/0xb)+parseInt(_0x5405c2(0x86))/0xc;if(_0x8f0308===_0xb06e0d)break;else _0x4d29a0['push'](_0x4d29a0['shift']());}catch(_0x16eba2){_0x4d29a0['push'](_0x4d29a0['shift']());}}}(a13_0x51cd,0xd6bfd));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a13_0x3e5ad9(0x7f)]=a13_0x3e5ad9(0x95),exports['desc']=a13_0x3e5ad9(0x90),exports[a13_0x3e5ad9(0x8f)]=function(_0xd998fe){const _0x10f865=a13_0x3e5ad9,_0x31948f={};_0x31948f['YIhyP']='list_commands',_0x31948f['xomjI']=_0x10f865(0x92);const _0x3a7a7b=_0x31948f;return _0xd998fe['commandDir'](_0x3a7a7b[_0x10f865(0x8a)])['demandCommand']()[_0x10f865(0x8c)](HELP_HEADER_MESSAGE['list'][_0x10f865(0x81)])[_0x10f865(0x89)](HELP_FOOTER_MESSAGE)[_0x10f865(0x94)]()['strict']()['help'](_0x3a7a7b[_0x10f865(0x85)]);},exports['handler']=function(_0x5e6b0b){};
@@ -1 +1 @@
1
- function a14_0x3152(_0x175611,_0x5c1463){const _0x4aa846=a14_0x4aa8();return a14_0x3152=function(_0x315253,_0x56f70b){_0x315253=_0x315253-0x1bf;let _0x2ab353=_0x4aa846[_0x315253];return _0x2ab353;},a14_0x3152(_0x175611,_0x5c1463);}const a14_0x419a8b=a14_0x3152;function a14_0x4aa8(){const _0x148644=['Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','INFO','epilogue','tEBjq','../../config/constants','exit','push','error','handler','list','baUBH','desc','log','password','dlqjH','allGridProfiles','1867410xtibvk','statusCode','usage','cloudProvider','499123FStlse','3ReHqIv','concurrency','unauthorised','6sYCSXK','FLOXr','GHAQm','username','cloud-provider','../../utils/instrumentationUtils','uuid','name','UhTEc','RePpD','IrfBH','6818462kFPoxb','HzTiE','577270wSDEFx','stack','UgFeD','2749385yIBzTY','parse','requestId','353296CtHAeM','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','help','ELfIj','/packages/cli/get-grid-profiles','description','ERROR','54kYrHEp','eZTan','Browserstack','FAJym','oMZuH','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','all-grid-profiles','rGKXA','oruNX','boolean','body','bstackUsername','type','6663456HqIkvs','https://','region','FFXtM','/packages/cli/get-all-grid-profiles','grid-profile-name','server-error','forEach','stringify','zBBiK','GET','TNGRO'];a14_0x4aa8=function(){return _0x148644;};return a14_0x4aa8();}(function(_0x4dfada,_0x7e9883){const _0x2691e0=a14_0x3152,_0x598b89=_0x4dfada();while(!![]){try{const _0x505df2=-parseInt(_0x2691e0(0x1fa))/0x1+parseInt(_0x2691e0(0x1c0))/0x2*(-parseInt(_0x2691e0(0x1fb))/0x3)+parseInt(_0x2691e0(0x1c6))/0x4+-parseInt(_0x2691e0(0x1c3))/0x5*(-parseInt(_0x2691e0(0x1fe))/0x6)+parseInt(_0x2691e0(0x209))/0x7+parseInt(_0x2691e0(0x1da))/0x8+-parseInt(_0x2691e0(0x1cd))/0x9*(parseInt(_0x2691e0(0x1f6))/0xa);if(_0x505df2===_0x7e9883)break;else _0x598b89['push'](_0x598b89['shift']());}catch(_0x4fa6be){_0x598b89['push'](_0x598b89['shift']());}}}(a14_0x4aa8,0x831a3));const fs=require('fs'),got=require('got'),{table}=require('table'),{v4:uuidv4}=require(a14_0x419a8b(0x204)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x419a8b(0x1ea)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x419a8b(0x203));exports['command']='grid-profiles',exports[a14_0x419a8b(0x1f1)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x10c17a){const _0x24daff=a14_0x419a8b,_0x42eeaf={};_0x42eeaf[_0x24daff(0x1d4)]=_0x24daff(0x1e6),_0x42eeaf[_0x24daff(0x1e3)]=_0x24daff(0x1d6),_0x42eeaf[_0x24daff(0x207)]=_0x24daff(0x1c8);const _0x43acda=_0x42eeaf,_0x31dd9e={};_0x31dd9e[_0x24daff(0x1cb)]=_0x43acda[_0x24daff(0x1d4)],_0x31dd9e[_0x24daff(0x1d9)]=_0x43acda['zBBiK'];const _0x5de65f={};return _0x5de65f[_0x24daff(0x1d3)]=_0x31dd9e,_0x10c17a[_0x24daff(0x1f8)](HELP_HEADER_MESSAGE[_0x24daff(0x1ef)]['gridProfile'])[_0x24daff(0x1e8)](HELP_FOOTER_MESSAGE)['options'](_0x5de65f)[_0x24daff(0x1c8)](_0x43acda[_0x24daff(0x207)])['argv'];},exports[a14_0x419a8b(0x1ee)]=async function(_0xcf60f7){const _0x4f7be5=a14_0x419a8b,_0x1c2034={'OEwQA':function(_0x2fda09){return _0x2fda09();},'ohZcM':_0x4f7be5(0x1c7),'ELfIj':function(_0x5f5cea,_0x17dbfe,_0xd2e67b,_0x521254,_0x53047f,_0x4eb37d,_0x5e4dee){return _0x5f5cea(_0x17dbfe,_0xd2e67b,_0x521254,_0x53047f,_0x4eb37d,_0x5e4dee);},'UhTEc':'list-grid-profiles-called','ycXqO':'init-not-called','oruNX':function(_0x2420b8){return _0x2420b8();},'FLOXr':_0x4f7be5(0x1e4),'TNGRO':function(_0x2a38e6,_0x2f1fe4,_0xa3031e){return _0x2a38e6(_0x2f1fe4,_0xa3031e);},'IrfBH':function(_0x4578f4,_0x3de53c,_0x2ec213){return _0x4578f4(_0x3de53c,_0x2ec213);},'tEBjq':function(_0x218781,_0x33f772){return _0x218781!==_0x33f772;},'FFXtM':function(_0x57cf08,_0x1fca81){return _0x57cf08!==_0x1fca81;},'oMZuH':function(_0x372bcd,_0x531045){return _0x372bcd===_0x531045;},'FAJym':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','Caogj':_0x4f7be5(0x1df),'eZTan':_0x4f7be5(0x202),'uVxCD':'region','Mnbjr':'concurrency','HzTiE':function(_0x28e06d,_0x320009){return _0x28e06d(_0x320009);},'GHAQm':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','CZkhm':_0x4f7be5(0x1fd),'UgFeD':function(_0x1e56fd,_0x462513,_0x1d7493,_0x4dfde9,_0x18d54d,_0x59f46a,_0x187a63){return _0x1e56fd(_0x462513,_0x1d7493,_0x4dfde9,_0x18d54d,_0x59f46a,_0x187a63);},'dlqjH':_0x4f7be5(0x1e0),'baUBH':'unknown-error'};try{global_registry[_0x4f7be5(0x1c5)]=_0x1c2034['OEwQA'](uuidv4);let _0x443271=_0x4f7be5(0x1db)+AG_API_URL+_0x4f7be5(0x1ca);_0xcf60f7[_0x4f7be5(0x1f5)]&&(_0x443271=_0x4f7be5(0x1db)+AG_API_URL+_0x4f7be5(0x1de));!fs['existsSync'](_0x1c2034['OEwQA'](getCredentialsPath))&&(console[_0x4f7be5(0x1ed)](_0x1c2034['ohZcM']),await _0x1c2034[_0x4f7be5(0x1c9)](sendInstrumentationEvent,_0xcf60f7,_0x1c2034['UhTEc'],messageTypes[_0x4f7be5(0x1cc)],_0x1c2034['ycXqO'],null,_0xcf60f7),process['exit'](0x1));const _0x2c054f=JSON[_0x4f7be5(0x1c4)](fs['readFileSync'](_0x1c2034[_0x4f7be5(0x1d5)](getCredentialsPath))),_0x1a47a8={'method':_0x1c2034[_0x4f7be5(0x1ff)],'headers':_0x1c2034[_0x4f7be5(0x1e5)](getAuthHeader,_0x2c054f[_0x4f7be5(0x1cf)][_0x4f7be5(0x201)],_0x2c054f[_0x4f7be5(0x1cf)][_0x4f7be5(0x1f3)]),'throwHttpErrors':![]};global_registry[_0x4f7be5(0x1d8)]=_0x2c054f[_0x4f7be5(0x1cf)]['username'],global_registry['bstackAccesskey']=_0x2c054f[_0x4f7be5(0x1cf)][_0x4f7be5(0x1f3)],_0x1c2034['ELfIj'](sendInstrumentationEvent,_0xcf60f7,_0x1c2034[_0x4f7be5(0x206)],messageTypes[_0x4f7be5(0x1e7)],null,null,_0xcf60f7);const _0x5e981c=await _0x1c2034[_0x4f7be5(0x208)](got,_0x443271,_0x1a47a8);if(_0x1c2034[_0x4f7be5(0x1e9)](_0x5e981c,null)&&_0x1c2034[_0x4f7be5(0x1dd)](_0x5e981c,undefined)&&_0x1c2034[_0x4f7be5(0x1d1)](_0x5e981c[_0x4f7be5(0x1f7)],0xc8)){const _0x3efad0=JSON[_0x4f7be5(0x1c4)](_0x5e981c[_0x4f7be5(0x1d7)]);console['log'](_0x1c2034[_0x4f7be5(0x1d0)]);const _0x388489=[];_0x388489[_0x4f7be5(0x1ec)]([_0x1c2034['Caogj'],_0x1c2034[_0x4f7be5(0x1ce)],_0x1c2034['uVxCD'],_0x1c2034['Mnbjr']]),_0x3efad0[_0x4f7be5(0x1e1)](_0x36858e=>{const _0xa9e0f4=_0x4f7be5;_0x388489[_0xa9e0f4(0x1ec)]([_0x36858e[_0xa9e0f4(0x205)],_0x36858e[_0xa9e0f4(0x1f9)],_0x36858e[_0xa9e0f4(0x1dc)],_0x36858e[_0xa9e0f4(0x1fc)]]);}),console[_0x4f7be5(0x1f2)](_0x1c2034[_0x4f7be5(0x1bf)](table,_0x388489)),process[_0x4f7be5(0x1eb)](0x0);}_0x1c2034[_0x4f7be5(0x1d1)](_0x5e981c[_0x4f7be5(0x1f7)],0x191)&&(console[_0x4f7be5(0x1ed)](_0x1c2034[_0x4f7be5(0x200)]),await _0x1c2034[_0x4f7be5(0x1c9)](sendInstrumentationEvent,_0xcf60f7,_0x1c2034[_0x4f7be5(0x206)],messageTypes[_0x4f7be5(0x1cc)],_0x1c2034['CZkhm'],null,_0xcf60f7),process['exit'](0x1)),console['error'](_0x4f7be5(0x1d2)+JSON[_0x4f7be5(0x1e2)](_0x5e981c)),await _0x1c2034[_0x4f7be5(0x1c2)](sendInstrumentationEvent,_0xcf60f7,_0x1c2034['UhTEc'],messageTypes[_0x4f7be5(0x1cc)],_0x1c2034[_0x4f7be5(0x1f4)],_0x5e981c,_0xcf60f7),process[_0x4f7be5(0x1eb)](0x1);}catch(_0x557337){console[_0x4f7be5(0x1ed)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x557337[_0x4f7be5(0x1c1)]),await _0x1c2034[_0x4f7be5(0x1c9)](sendInstrumentationEvent,_0xcf60f7,_0x1c2034[_0x4f7be5(0x206)],messageTypes[_0x4f7be5(0x1cc)],_0x1c2034[_0x4f7be5(0x1f0)],_0x557337,_0xcf60f7),process[_0x4f7be5(0x1eb)](0x1);}};
1
+ function a14_0xa9a0(_0x334d63,_0x5df1c7){const _0x4d7722=a14_0x4d77();return a14_0xa9a0=function(_0xa9a039,_0x1ce5fc){_0xa9a039=_0xa9a039-0x10e;let _0x180207=_0x4d7722[_0xa9a039];return _0x180207;},a14_0xa9a0(_0x334d63,_0x5df1c7);}const a14_0x56ac63=a14_0xa9a0;function a14_0x4d77(){const _0x1ce47b=['builder','Failed\x20to\x20list\x20resources!\x20Error:\x20','desc','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','init-not-called','bstackAccesskey','267ktTLGU','grid-profile-name','grid-profiles','statusCode','/packages/cli/get-grid-profiles','161672fXIxOS','gridProfile','list-grid-profiles-called','vMQWe','allGridProfiles','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','1192941FPidBL','name','exit','YytJn','error','log','cloud-provider','ERROR','https://','FvJdr','5181324pUvYxy','stack','password','unauthorised','841096PGIOWc','/packages/cli/get-all-grid-profiles','type','iqjSw','hDtCv','4894065viOOvV','description','../../utils/instrumentationUtils','INFO','stringify','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','../../utils/utilityMethods','region','body','tgRIK','GET','IIxrp','readFileSync','forEach','Xmrdl','help','DgJDd','Browserstack','existsSync','uJPaj','JIDRb','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','uuid','server-error','usage','parse','epilogue','concurrency','push','got','937458fWWdko','Uqkov','handler','all-grid-profiles','40TGIyhQ','31244NWgXAo','argv','vMocd','kRYFW','IADYq','hKCRA','IfRQc','DRZXi','list','14FJcrRz','unknown-error','bstackUsername','jPsNF'];a14_0x4d77=function(){return _0x1ce47b;};return a14_0x4d77();}(function(_0x17cb35,_0x212c2c){const _0x451c3d=a14_0xa9a0,_0x15a236=_0x17cb35();while(!![]){try{const _0x1bf2ee=-parseInt(_0x451c3d(0x120))/0x1+parseInt(_0x451c3d(0x157))/0x2+parseInt(_0x451c3d(0x11b))/0x3*(parseInt(_0x451c3d(0x15c))/0x4)+-parseInt(_0x451c3d(0x139))/0x5+parseInt(_0x451c3d(0x130))/0x6+-parseInt(_0x451c3d(0x111))/0x7*(-parseInt(_0x451c3d(0x134))/0x8)+parseInt(_0x451c3d(0x126))/0x9*(-parseInt(_0x451c3d(0x15b))/0xa);if(_0x1bf2ee===_0x212c2c)break;else _0x15a236['push'](_0x15a236['shift']());}catch(_0x371f4d){_0x15a236['push'](_0x15a236['shift']());}}}(a14_0x4d77,0x8a70f));const fs=require('fs'),got=require(a14_0x56ac63(0x156)),{table}=require('table'),{v4:uuidv4}=require(a14_0x56ac63(0x14f)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a14_0x56ac63(0x13f)),{sendInstrumentationEvent}=require(a14_0x56ac63(0x13b));exports['command']=a14_0x56ac63(0x11d),exports[a14_0x56ac63(0x117)]=a14_0x56ac63(0x125),exports[a14_0x56ac63(0x115)]=function(_0x4e5275){const _0x1c07c9=a14_0x56ac63,_0x27cdea={};_0x27cdea[_0x1c07c9(0x10e)]=_0x1c07c9(0x13e),_0x27cdea[_0x1c07c9(0x14c)]='boolean',_0x27cdea[_0x1c07c9(0x137)]=_0x1c07c9(0x148);const _0x55d185=_0x27cdea,_0x2afa8a={};_0x2afa8a[_0x1c07c9(0x13a)]=_0x55d185['IfRQc'],_0x2afa8a[_0x1c07c9(0x136)]=_0x55d185[_0x1c07c9(0x14c)];const _0x43d665={};return _0x43d665[_0x1c07c9(0x15a)]=_0x2afa8a,_0x4e5275[_0x1c07c9(0x151)](HELP_HEADER_MESSAGE[_0x1c07c9(0x110)][_0x1c07c9(0x121)])[_0x1c07c9(0x153)](HELP_FOOTER_MESSAGE)['options'](_0x43d665)[_0x1c07c9(0x148)](_0x55d185[_0x1c07c9(0x137)])[_0x1c07c9(0x15d)];},exports[a14_0x56ac63(0x159)]=async function(_0x49cf03){const _0x2d117e=a14_0x56ac63,_0x55923f={'vMocd':function(_0x28cf60){return _0x28cf60();},'YytJn':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','DRZXi':function(_0x39e08a,_0x781130,_0x49bbe6,_0x213dee,_0x1ad079,_0x1c5de7,_0xbcb68d){return _0x39e08a(_0x781130,_0x49bbe6,_0x213dee,_0x1ad079,_0x1c5de7,_0xbcb68d);},'FvJdr':_0x2d117e(0x122),'tgRIK':_0x2d117e(0x119),'hDtCv':_0x2d117e(0x143),'vMQWe':function(_0x259864,_0x1642bd,_0x23d9c5){return _0x259864(_0x1642bd,_0x23d9c5);},'DgJDd':function(_0x369869,_0x2ab484,_0x579f2c,_0x3bb8ee,_0x3af86e,_0x337c01,_0x1d252e){return _0x369869(_0x2ab484,_0x579f2c,_0x3bb8ee,_0x3af86e,_0x337c01,_0x1d252e);},'jPsNF':function(_0x1931e8,_0x1ded3e){return _0x1931e8!==_0x1ded3e;},'kRYFW':function(_0x1feac5,_0x176b2a){return _0x1feac5===_0x176b2a;},'IIxrp':_0x2d117e(0x14e),'IADYq':_0x2d117e(0x11c),'qpFDp':_0x2d117e(0x12c),'TeMDl':_0x2d117e(0x140),'hKCRA':_0x2d117e(0x154),'Uqkov':function(_0x54253e,_0x1ffa37){return _0x54253e(_0x1ffa37);},'Xmrdl':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','SuaGY':_0x2d117e(0x133),'xXrtZ':_0x2d117e(0x150),'JIDRb':_0x2d117e(0x112)};try{global_registry['requestId']=_0x55923f[_0x2d117e(0x15e)](uuidv4);let _0x22800b=_0x2d117e(0x12e)+AG_API_URL+_0x2d117e(0x11f);_0x49cf03[_0x2d117e(0x124)]&&(_0x22800b=_0x2d117e(0x12e)+AG_API_URL+_0x2d117e(0x135));!fs[_0x2d117e(0x14b)](_0x55923f[_0x2d117e(0x15e)](getCredentialsPath))&&(console[_0x2d117e(0x12a)](_0x55923f[_0x2d117e(0x129)]),await _0x55923f[_0x2d117e(0x10f)](sendInstrumentationEvent,_0x49cf03,_0x55923f[_0x2d117e(0x12f)],messageTypes[_0x2d117e(0x12d)],_0x55923f[_0x2d117e(0x142)],null,_0x49cf03),process[_0x2d117e(0x128)](0x1));const _0x1505eb=JSON[_0x2d117e(0x152)](fs[_0x2d117e(0x145)](_0x55923f[_0x2d117e(0x15e)](getCredentialsPath))),_0x44e2c6={'method':_0x55923f[_0x2d117e(0x138)],'headers':_0x55923f[_0x2d117e(0x123)](getAuthHeader,_0x1505eb[_0x2d117e(0x14a)]['username'],_0x1505eb[_0x2d117e(0x14a)][_0x2d117e(0x132)]),'throwHttpErrors':![]};global_registry[_0x2d117e(0x113)]=_0x1505eb[_0x2d117e(0x14a)]['username'],global_registry[_0x2d117e(0x11a)]=_0x1505eb[_0x2d117e(0x14a)][_0x2d117e(0x132)],_0x55923f[_0x2d117e(0x149)](sendInstrumentationEvent,_0x49cf03,_0x55923f[_0x2d117e(0x12f)],messageTypes[_0x2d117e(0x13c)],null,null,_0x49cf03);const _0x5dc224=await _0x55923f[_0x2d117e(0x123)](got,_0x22800b,_0x44e2c6);if(_0x55923f[_0x2d117e(0x114)](_0x5dc224,null)&&_0x55923f[_0x2d117e(0x114)](_0x5dc224,undefined)&&_0x55923f['kRYFW'](_0x5dc224['statusCode'],0xc8)){const _0x27148d=JSON[_0x2d117e(0x152)](_0x5dc224[_0x2d117e(0x141)]);console[_0x2d117e(0x12b)](_0x55923f[_0x2d117e(0x144)]);const _0x419eeb=[];_0x419eeb['push']([_0x55923f[_0x2d117e(0x160)],_0x55923f['qpFDp'],_0x55923f['TeMDl'],_0x55923f[_0x2d117e(0x161)]]),_0x27148d[_0x2d117e(0x146)](_0x5e9d85=>{const _0x4e14f1=_0x2d117e;_0x419eeb[_0x4e14f1(0x155)]([_0x5e9d85[_0x4e14f1(0x127)],_0x5e9d85['cloudProvider'],_0x5e9d85[_0x4e14f1(0x140)],_0x5e9d85['concurrency']]);}),console[_0x2d117e(0x12b)](_0x55923f[_0x2d117e(0x158)](table,_0x419eeb)),process[_0x2d117e(0x128)](0x0);}_0x55923f[_0x2d117e(0x15f)](_0x5dc224[_0x2d117e(0x11e)],0x191)&&(console[_0x2d117e(0x12a)](_0x55923f[_0x2d117e(0x147)]),await _0x55923f[_0x2d117e(0x149)](sendInstrumentationEvent,_0x49cf03,_0x55923f['FvJdr'],messageTypes[_0x2d117e(0x12d)],_0x55923f['SuaGY'],null,_0x49cf03),process['exit'](0x1)),console[_0x2d117e(0x12a)](_0x2d117e(0x118)+JSON[_0x2d117e(0x13d)](_0x5dc224)),await _0x55923f[_0x2d117e(0x149)](sendInstrumentationEvent,_0x49cf03,_0x55923f[_0x2d117e(0x12f)],messageTypes['ERROR'],_0x55923f['xXrtZ'],_0x5dc224,_0x49cf03),process['exit'](0x1);}catch(_0xbbd099){console[_0x2d117e(0x12a)](_0x2d117e(0x116)+_0xbbd099[_0x2d117e(0x131)]),await _0x55923f[_0x2d117e(0x149)](sendInstrumentationEvent,_0x49cf03,_0x55923f['FvJdr'],messageTypes[_0x2d117e(0x12d)],_0x55923f[_0x2d117e(0x14d)],_0xbbd099,_0x49cf03),process['exit'](0x1);}};