browserstack-node-sdk 1.36.0 → 1.36.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) 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/generated/sdk-messages-accessibility_grpc_pb.d.ts +1 -0
  41. package/generated/sdk-messages-accessibility_grpc_pb.js +1 -0
  42. package/generated/sdk-messages-accessibility_pb.d.ts +279 -0
  43. package/generated/sdk-messages-accessibility_pb.js +2186 -0
  44. package/generated/sdk-messages-ai_grpc_pb.d.ts +1 -0
  45. package/generated/sdk-messages-ai_grpc_pb.js +1 -0
  46. package/generated/sdk-messages-ai_pb.d.ts +217 -0
  47. package/generated/sdk-messages-ai_pb.js +1650 -0
  48. package/generated/sdk-messages-observability_grpc_pb.d.ts +1 -0
  49. package/generated/sdk-messages-observability_grpc_pb.js +1 -0
  50. package/generated/sdk-messages-observability_pb.d.ts +178 -0
  51. package/generated/sdk-messages-observability_pb.js +1377 -0
  52. package/generated/sdk-messages-percy_grpc_pb.d.ts +1 -0
  53. package/generated/sdk-messages-percy_grpc_pb.js +1 -0
  54. package/generated/sdk-messages-percy_pb.d.ts +37 -0
  55. package/generated/sdk-messages-percy_pb.js +266 -0
  56. package/generated/sdk-messages-testhub_grpc_pb.d.ts +1 -0
  57. package/generated/sdk-messages-testhub_grpc_pb.js +1 -0
  58. package/generated/sdk-messages-testhub_pb.d.ts +39 -0
  59. package/generated/sdk-messages-testhub_pb.js +290 -0
  60. package/generated/sdk-messages_grpc_pb.d.ts +1 -0
  61. package/generated/sdk-messages_grpc_pb.js +1 -0
  62. package/generated/sdk-messages_pb.d.ts +1105 -0
  63. package/generated/sdk-messages_pb.js +8580 -0
  64. package/generated/sdk_grpc_pb.d.ts +113 -0
  65. package/generated/sdk_grpc_pb.js +609 -0
  66. package/generated/sdk_pb.d.ts +9 -0
  67. package/generated/sdk_pb.js +31 -0
  68. package/package.json +7 -1
  69. package/src/ai-sdk-node/bundle.js +1 -1
  70. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  71. package/src/bin/codeceptjs/command.js +1 -1
  72. package/src/bin/codeceptjs/helper.js +1 -1
  73. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  74. package/src/bin/cucumber-js/command.js +1 -1
  75. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  76. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  77. package/src/bin/cucumber-js/test-observability.js +1 -1
  78. package/src/bin/cucumber-js/test.setup.js +1 -1
  79. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  80. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  81. package/src/bin/integrations/command.js +1 -1
  82. package/src/bin/integrations/constants.js +1 -1
  83. package/src/bin/jest/command.js +1 -1
  84. package/src/bin/jest/customImplements/customCircus.js +1 -1
  85. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  86. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  87. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  88. package/src/bin/jest/jest.setup.js +1 -1
  89. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  90. package/src/bin/jest/test-observability/helper.js +1 -1
  91. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  92. package/src/bin/jest/test-observability/test-details.js +1 -1
  93. package/src/bin/jest/test_before.setup.js +1 -1
  94. package/src/bin/launcher/launcher.js +1 -1
  95. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  96. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  97. package/src/bin/mocha/command.js +1 -1
  98. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  99. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  100. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  101. package/src/bin/mocha/test.setup.js +1 -1
  102. package/src/bin/nightwatch/command.js +1 -1
  103. package/src/bin/playwright/accessibility-helper.js +1 -1
  104. package/src/bin/playwright/command.js +1 -1
  105. package/src/bin/playwright/globalSetup.js +1 -1
  106. package/src/bin/playwright/mock-process.js +1 -1
  107. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  108. package/src/bin/playwright/patches.js +1 -1
  109. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  110. package/src/bin/playwright/reporter/reporter.js +1 -1
  111. package/src/bin/playwright/reporter/test-details.js +1 -1
  112. package/src/bin/playwright/sessionDetails.js +1 -1
  113. package/src/bin/runner.js +1 -1
  114. package/src/bin/setup.js +1 -1
  115. package/src/bin/test-runner/index.js +1 -1
  116. package/src/bin/test-runner/runTest.js +1 -1
  117. package/src/bin/test-runner/testWorker.js +1 -1
  118. package/src/bin/utils/constants.js +1 -1
  119. package/src/bin/utils/log4jsAppender.js +1 -1
  120. package/src/bin/utils/logPatcher.js +1 -1
  121. package/src/bin/utils/logReportingAPI.js +1 -1
  122. package/src/bin/v2/TestInfo.js +1 -0
  123. package/src/bin/v2/browserstackCLI.js +1 -0
  124. package/src/bin/v2/cliUtils.js +1 -0
  125. package/src/bin/v2/customTagManager.js +1 -0
  126. package/src/bin/v2/eventDispatcher.js +1 -0
  127. package/src/bin/v2/framework/automationFramework.js +1 -0
  128. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -0
  129. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -0
  130. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -0
  131. package/src/bin/v2/framework/playwrightTestFramework.js +1 -0
  132. package/src/bin/v2/framework/testFramework.js +1 -0
  133. package/src/bin/v2/grpcClient.js +1 -0
  134. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -0
  135. package/src/bin/v2/instances/testFrameworkInstance.js +1 -0
  136. package/src/bin/v2/instances/trackedContext.js +1 -0
  137. package/src/bin/v2/instances/trackedInstance.js +1 -0
  138. package/src/bin/v2/modules/accessibilityModule.js +1 -0
  139. package/src/bin/v2/modules/baseModule.js +1 -0
  140. package/src/bin/v2/modules/observabilityModule.js +1 -0
  141. package/src/bin/v2/modules/playwrightDriverModule.js +1 -0
  142. package/src/bin/v2/modules/testhubModule.js +1 -0
  143. package/src/bin/v2/state/automationFrameworkState.js +1 -0
  144. package/src/bin/v2/state/hookState.js +1 -0
  145. package/src/bin/v2/state/testFrameworkState.js +1 -0
  146. package/src/bin/v2/uploadAttachmentsManager.js +1 -0
  147. package/src/bin/vanilla-js/command.js +1 -1
  148. package/src/browserStackSdk.js +1 -1
  149. package/src/helpers/BrowserStackSetup.js +1 -1
  150. package/src/helpers/accessibility-automation/constants.js +1 -1
  151. package/src/helpers/accessibility-automation/helper.js +1 -1
  152. package/src/helpers/accessibility-automation/scripts.js +1 -1
  153. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  154. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  155. package/src/helpers/ats/constants.js +1 -1
  156. package/src/helpers/ats/helper.js +1 -1
  157. package/src/helpers/capsMapping.js +1 -1
  158. package/src/helpers/central-scanner/constants.js +1 -1
  159. package/src/helpers/central-scanner/helpers.js +1 -1
  160. package/src/helpers/classLogger.js +1 -0
  161. package/src/helpers/globals.js +1 -1
  162. package/src/helpers/helper.js +1 -1
  163. package/src/helpers/logger.js +1 -1
  164. package/src/helpers/metadata.js +1 -1
  165. package/src/helpers/patchHelper.js +1 -1
  166. package/src/helpers/patchHelpers.js +1 -1
  167. package/src/helpers/percy/Percy.js +1 -1
  168. package/src/helpers/percy/PercyBinary.js +1 -1
  169. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  170. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  171. package/src/helpers/percy/PercySDK.js +1 -1
  172. package/src/helpers/percy/index.js +1 -1
  173. package/src/helpers/percy/utils.js +1 -1
  174. package/src/helpers/performance/constants.js +1 -1
  175. package/src/helpers/performance/performance-tester.js +1 -1
  176. package/src/helpers/processHelper.js +1 -1
  177. package/src/helpers/request-spy.js +1 -1
  178. package/src/helpers/setKeepAlive.js +1 -1
  179. package/src/helpers/test-observability/constants.js +1 -1
  180. package/src/helpers/test-observability/error-handler.js +1 -1
  181. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  182. package/src/helpers/test-observability/sessionHandler.js +1 -1
  183. package/src/helpers/test-observability/utils.js +1 -1
  184. package/src/helpers/test-orchestration/fail-fast/fileHelper.js +1 -0
  185. package/src/helpers/test-orchestration/fail-fast/jest.js +1 -0
  186. package/src/helpers/test-orchestration/fail-fast/requestUtils.js +1 -0
  187. package/src/helpers/testhub/constants.js +1 -1
  188. package/src/helpers/testhub/testhubHandler.js +1 -1
  189. package/src/helpers/testhub/utils.js +1 -1
  190. package/src/helpers/timeoutPromise.js +1 -1
  191. package/src/helpers/utilities.js +1 -1
  192. package/src/helpers/w3cMapping.js +1 -1
  193. package/src/hubAllocationMethods.js +1 -1
  194. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x259a5c=a9_0x1277;function a9_0x4245(){const _0x14b18a=['Ohivd','yPuhk','WebSocket','maxNodes','McodK','addListeners','hubHaNameSpace','utf-8','statusCode','DckNp','YruZW','tujKT','create-grid-checks-grid-already-exists','SLTbW','xPJUv','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','stringify','MOLBI','jCmVv','EZUpZ','kcxzq','QhqiV','pre-spawned-invalid-vpc','BQPKP','path','get-grid-url-auth-failed','user','length','loadAll','uLZsx','1|2|4|0|3','zuuUT','1226197dprmzi','xRogs','Grid\x20profile\x20fetched\x20from\x20backend','connectionTimeout','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','xnXeF','BFNBC','rxtYY','xfsCx','aYZiz','JycJp','https','Browserstack','../../utils/createk8sClient','bstackUsername','ZHOQi','OgGdM','gridProfiles','gCLlg','OpyMd','YENrO','grid-profile','otEQP','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','reconnecting-websocket','skip-tls-cert-verify','7|3|6|1|14|9|15|5|11|2|4|8|12|0|13|10','fuerh','meEyA','ERROR','vpc','DTsKy','browserstack','../../utils/instrumentationUtils','isClusterPresent','yaBqu','TBnfu','FTIQK','hub-ha','body','DtNeB','MuKMO','error','setupHubHa','isVPCPresent','AMDGZ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','hubVersion','BrFAI','kafkaPassword','updateClusterAlreadyPresent','privateGrid','fLGUs','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','create-grid-checks-non-200','hubharesources','instanceType','templates','redisPassword','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','IIcUk','iFAFs','init-not-called','username','requestId','WdiMq','minNodes','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','zzFBw','grid-spawning-failed','XLweu','BksFo','options','boolean','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','clusterName','eMwZw','hub-ha-deployments-failed','hjVee','EHnTF','gridProfile','cluster-name','CcqjD','ODxDB','prespawned-cluster-args-not-passed','serviceAccountName','zFnXE','Gpovf','JIYdw','lnnkn','DrBbs','teeNm','AnpwC','newCluster','CFMJQ','GET','ingress-nginx-controller','toLowerCase','ehQtv','includes','efs-csi','LVhUD','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','tNzpM','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','xdvpt','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','pdLdr','true','tShvd','Added\x20Kafka\x20deployment.','Subnets:\x20','XUPmJ','Spawning\x20the\x20grid\x20','managedBy','Oumbl','835JRYEpP','tpzEL','6971166hHMElz','uePvi','split','premium-rwo','NTlcn','jmMcs','isNewAWSCluster','region','grid','IOmSD','FDfAG','nuqyy','ilWXm','nmGUE','1323135AYLzWg','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ctsGm','Adding\x20Secret\x20Mapping','pre-spawned-subnets-not-selected','uuid','4|3|1|2|0','xMcMl','Spawning\x20grid\x20on\x20to\x20the\x20cluster','eQHrm','exit','BjMrM','oTHWA','xbCdo','hZhLu','gridProfileId','private-ingress-nginx-controller','delay','subnets','hubHa','command','Ghobm','pre-spawned-invalid-subnets','Epyd5nXbRK','ddmPa','FqZQg','xqhVm','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','qXjzG','RwYXA','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','RzKWy','GvgTN','\x20in\x20existing\x20cluster\x20\x27','wwoko','type','Nljxc','INFO','replace','EUFkX','Creating\x20namespace','KnwbZ','LOG','clusterAutoupgrade','LMgyE','CIOck','cBvkb','aOHHD','deleteCluster','cluster-autoupgrade','Namespace\x20created','muBuG','567702yMluEq','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','ingress-nginx','QLPov','Spawning\x20Grid\x20on\x20the\x20Cluster','aecqf','Cluster\x20','template','TtrAf','../../utils/gridComponents','Found\x20Subnets:\x20','BweuW','Adding\x20Websocket\x20listeners','grid-name','VGmmB','readFileSync','Faize','HBrqc','Adding\x20Redis\x20deployment...','azurefile-csi-premium','uYCKS','defaultGridProfile','CLI_RUN_STARTED','create-grid-checks-invalid-profile','password','SbSPV','LMvSI','LmHbS','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','tAFWa','ztEqw','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','description','js-yaml','Vtcai','imEHJ','sendEventToBackend','https://','GTnDe','lgpBE','Cluster:\x20','parse','3600456hhVyPw','zqdRc','4|3|7|2|6|1|8|0|5','clusterAutoUpgrade','YEmzw','aKAFg','VBWwT','iQgDq','APzFx','rrxiy','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','wTScK','HSonJ','bstackAccesskey','CaWuZ','../../cloudproviders/utils','cdUNO','RysAT','http','turboscale-managed-identity-','BdHUc','stack','JQbDk','QfiQU','hwauC','Added\x20Secret\x20Mapping','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','help','DSiQA','pCugs','asrxk','waRTA','CudaN','kafkaUploader','Adding\x20Kafka\x20deployment...','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','CwMEe','xAwkQ','annotations','epilogue','PHCrM','turboscale-uploader.yaml','info','gridName','VsFuO','setupNewCluster','EUtdc','NYnno','get-grid-url-null-response','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','tzXOu','HcALt','isPrivateGrid','YLjwN','IAuNR','string','XZLcd','usage','IhPuY','lUPZy','buGCx','xJYzK','cloudProvider','Cluster\x20created\x20successfully','readNamespacedService','UnJIE','OHufO','bpMqn','labels','browserstack-secret.yaml','OWyZU','../../config/constants','AAtVE','://','fmmQh','843982AsaJRo','cxYZy','oLFOB','Creating\x20Hub\x20HA\x20resources','zyxyi','zOzGF','18TNuoLf','create','Deleting\x20the\x20CloudFormation\x20Stacks','uosDp','namespace','sWmwB','KQxXm','\x27\x20grid\x20profile','route53','rUlWU','builder','create-grid-called','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','sendResourceDataToHST','enableHubHa','uXdEw','message','Skip\x20insecure\x20cert\x20verification.','nyhCK','readFileAsync','getGridHostname','CLI\x20run\x20finished:\x20','TenaZ','uploaderVersion','default','/packages/cli/get-grid-url?gridIdentifier=','Hneye','spec','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','nXJMa','browserVersion','IZfGW','debug','dTEZl','rHWgz','create-grid-checks-auth-failed','concurrency','uSiDx','createOtherResources','oFgAx','10364jwHRiY','iTfzO','UkRNzNYCBU','laWMe','RFKeG','JEWan','join','isSubnetsValid','PqxrL','OrGCm','zwXFH','ixzTt','QAqls','LwJlj','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','s3bucket','clusterRegion','../../config/logger','<PasswordPlaceholder>','HtVzL','Create\x20a\x20private/public\x20grid.','non-aws-azure-cluster','desc','handler','Found\x20VPC:\x20','frJXt','Flag\x20to\x20enable\x20Hub\x20HA','\x20using\x20\x27','Will\x20be\x20spawning\x20the\x20grid\x20','Zqvrw','aUAdp','metadata','name','JjOtO','JxXGi','HUatN','tlRXW','ePfzK','vmbjW','fRodh','../../utils/utilityMethods','vlKKO','YLyVu','existsSync','vNlRp','XUlNy','nPEoM','dcMsw','SIVYg','Created\x20Hub\x20HA\x20resources','0|4|2|3|1','kRNoz','UnbTK','private-grid','/packages/cli/create-grid-checks','cloud-provider'];a9_0x4245=function(){return _0x14b18a;};return a9_0x4245();}(function(_0x4e817d,_0x478261){const _0x5cb4a2=a9_0x1277,_0x39f01d=_0x4e817d();while(!![]){try{const _0xdf5e66=parseInt(_0x5cb4a2(0x1f2))/0x1+parseInt(_0x5cb4a2(0x267))/0x2+parseInt(_0x5cb4a2(0x1be))/0x3+-parseInt(_0x5cb4a2(0x295))/0x4*(parseInt(_0x5cb4a2(0x1ae))/0x5)+-parseInt(_0x5cb4a2(0x26d))/0x6*(-parseInt(_0x5cb4a2(0x13a))/0x7)+-parseInt(_0x5cb4a2(0x21c))/0x8+-parseInt(_0x5cb4a2(0x1b0))/0x9;if(_0xdf5e66===_0x478261)break;else _0x39f01d['push'](_0x39f01d['shift']());}catch(_0x2bae24){_0x39f01d['push'](_0x39f01d['shift']());}}}(a9_0x4245,0x48fab));const fs=require('fs'),ws=require('ws'),path=require(a9_0x259a5c(0x132)),yaml=require(a9_0x259a5c(0x213)),ReconnectingWebSocket=require(a9_0x259a5c(0x152)),got=require('got'),{v4:uuidv4}=require(a9_0x259a5c(0x1c3)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x259a5c(0x2a6)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x259a5c(0x2bd)),{getCloudProviderObject}=require(a9_0x259a5c(0x22b)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x259a5c(0x263)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x259a5c(0x1fb)),{createK8sClient}=require(a9_0x259a5c(0x147)),{sendInstrumentationEvent}=require(a9_0x259a5c(0x15b));function a9_0x1277(_0x37980c,_0x27796a){const _0x424537=a9_0x4245();return a9_0x1277=function(_0x127791,_0x2a681f){_0x127791=_0x127791-0x12a;let _0x4869dc=_0x424537[_0x127791];return _0x4869dc;},a9_0x1277(_0x37980c,_0x27796a);}exports[a9_0x259a5c(0x1d2)]=a9_0x259a5c(0x1b8),exports[a9_0x259a5c(0x2ab)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x259a5c(0x277)]=function(_0x203cc6){const _0xe91f77=a9_0x259a5c,_0x3864cc={};_0x3864cc['FTIQK']=_0xe91f77(0x151),_0x3864cc['QAqls']=_0xe91f77(0x253),_0x3864cc['ztEqw']=_0xe91f77(0x236),_0x3864cc[_0xe91f77(0x1eb)]=_0xe91f77(0x184),_0x3864cc[_0xe91f77(0x1d7)]=_0xe91f77(0x1bf),_0x3864cc[_0xe91f77(0x25e)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3864cc[_0xe91f77(0x142)]=_0xe91f77(0x2a9),_0x3864cc[_0xe91f77(0x16a)]='Skip\x20insecure\x20cert\x20verification.',_0x3864cc[_0xe91f77(0x218)]=_0xe91f77(0x183),_0x3864cc[_0xe91f77(0x270)]=_0xe91f77(0x2af),_0x3864cc[_0xe91f77(0x12d)]=_0xe91f77(0x1dc),_0x3864cc[_0xe91f77(0x26b)]=_0xe91f77(0x237);const _0xe3ff5f=_0x3864cc,_0x1c7768={};_0x1c7768['description']=_0xe3ff5f[_0xe91f77(0x15f)],_0x1c7768['type']=_0xe3ff5f[_0xe91f77(0x2a1)];const _0x33173b={};_0x33173b['description']=_0xe3ff5f[_0xe91f77(0x210)],_0x33173b[_0xe91f77(0x1e1)]=_0xe3ff5f[_0xe91f77(0x2a1)];const _0x3222e3={};_0x3222e3[_0xe91f77(0x212)]=_0xe3ff5f[_0xe91f77(0x1eb)],_0x3222e3[_0xe91f77(0x1e1)]=_0xe3ff5f[_0xe91f77(0x2a1)];const _0x406a52={};_0x406a52[_0xe91f77(0x212)]=_0xe3ff5f[_0xe91f77(0x1d7)],_0x406a52[_0xe91f77(0x1e1)]=_0xe3ff5f['QAqls'];const _0x3b18a6={};_0x3b18a6[_0xe91f77(0x212)]=_0xe3ff5f[_0xe91f77(0x25e)],_0x3b18a6[_0xe91f77(0x1e1)]=_0xe3ff5f[_0xe91f77(0x2a1)];const _0xb5ebf={};_0xb5ebf[_0xe91f77(0x212)]=_0xe3ff5f[_0xe91f77(0x142)],_0xb5ebf['type']=_0xe3ff5f['QAqls'];const _0x2545e2={};_0x2545e2['description']=_0xe3ff5f['BrFAI'],_0x2545e2[_0xe91f77(0x1e1)]=_0xe3ff5f[_0xe91f77(0x218)],_0x2545e2['default']=![];const _0x385fcf={};_0x385fcf[_0xe91f77(0x212)]=_0xe3ff5f[_0xe91f77(0x270)],_0x385fcf[_0xe91f77(0x1e1)]=_0xe3ff5f[_0xe91f77(0x218)],_0x385fcf[_0xe91f77(0x285)]=![];const _0x41763a={};_0x41763a[_0xe91f77(0x212)]=_0xe3ff5f[_0xe91f77(0x12d)],_0x41763a['type']=_0xe3ff5f[_0xe91f77(0x218)],_0x41763a['default']=![];const _0x5ee775={};return _0x5ee775['grid-name']=_0x1c7768,_0x5ee775[_0xe91f77(0x14f)]=_0x33173b,_0x5ee775[_0xe91f77(0x18b)]=_0x3222e3,_0x5ee775['cloud-provider']=_0x406a52,_0x5ee775['region']=_0x3b18a6,_0x5ee775[_0xe91f77(0x2ca)]=_0xb5ebf,_0x5ee775[_0xe91f77(0x153)]=_0x2545e2,_0x5ee775[_0xe91f77(0x160)]=_0x385fcf,_0x5ee775[_0xe91f77(0x1ef)]=_0x41763a,_0x203cc6[_0xe91f77(0x255)](HELP_HEADER_MESSAGE[_0xe91f77(0x26e)])[_0xe91f77(0x243)](HELP_FOOTER_MESSAGE)[_0xe91f77(0x182)](_0x5ee775)[_0xe91f77(0x237)](_0xe3ff5f[_0xe91f77(0x26b)])['argv'];},exports[a9_0x259a5c(0x2ac)]=async function(_0x46df7a){const _0x170f27=a9_0x259a5c,_0x2af040={'OpyMd':_0x170f27(0x154),'Ghobm':function(_0x590dd2,_0x5d5e1b){return _0x590dd2!==_0x5d5e1b;},'eQHrm':function(_0x186ee0,_0x490689){return _0x186ee0(_0x490689);},'EUtdc':function(_0x1111c8,_0x5bdcae,_0x4c747a,_0xa66fbd,_0x5744a1,_0x288c09,_0x21b8e7,_0x4b996a,_0x2888c2,_0x1496c3,_0x2c41ac,_0x4bbbcc,_0x4b0f91){return _0x1111c8(_0x5bdcae,_0x4c747a,_0xa66fbd,_0x5744a1,_0x288c09,_0x21b8e7,_0x4b996a,_0x2888c2,_0x1496c3,_0x2c41ac,_0x4bbbcc,_0x4b0f91);},'HtVzL':_0x170f27(0x21e),'ddmPa':'CLI\x20run\x20started','mRRvI':_0x170f27(0x2c7),'uSiDx':'Enabling\x20Hub\x20HA\x20flow','nuqyy':_0x170f27(0x297),'PHCrM':_0x170f27(0x1d5),'MOLBI':_0x170f27(0x15a),'IhPuY':_0x170f27(0x22e),'yaBqu':_0x170f27(0x145),'NhBST':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','SIVYg':_0x170f27(0x253),'aArie':_0x170f27(0x236),'XUPmJ':_0x170f27(0x184),'aboaH':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','PqxrL':_0x170f27(0x175),'SbSPV':_0x170f27(0x2a9),'ePfzK':_0x170f27(0x27e),'rHWgz':_0x170f27(0x183),'Zqvrw':_0x170f27(0x2af),'LmHbS':_0x170f27(0x1dc),'rUlWU':_0x170f27(0x237),'muBuG':_0x170f27(0x1b3),'GPWQP':_0x170f27(0x205),'HUatN':'error','kRNoz':_0x170f27(0x1a6),'lgpBE':_0x170f27(0x285),'CcqjD':_0x170f27(0x2a3),'VGmmB':'warn','JycJp':function(_0x44177a,_0x10d375){return _0x44177a===_0x10d375;},'YLjwN':function(_0x5e464d,_0x21f946){return _0x5e464d(_0x21f946);},'OrGCm':function(_0x3e2be9){return _0x3e2be9();},'iFAFs':_0x170f27(0x1af),'uYCKS':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ODxDB':function(_0x11e678,_0x51bfe5,_0x37b8ca,_0x23ca8a,_0x2459c0,_0x935c8,_0xcfc4bf){return _0x11e678(_0x51bfe5,_0x37b8ca,_0x23ca8a,_0x2459c0,_0x935c8,_0xcfc4bf);},'IIcUk':_0x170f27(0x278),'XGErQ':_0x170f27(0x178),'isvmZ':function(_0xdb0a9f,_0x190b54,_0x5a4290,_0xe538f6,_0x14a64d,_0x12f305,_0x37d407){return _0xdb0a9f(_0x190b54,_0x5a4290,_0xe538f6,_0x14a64d,_0x12f305,_0x37d407);},'HSonJ':function(_0x38ac5b){return _0x38ac5b();},'bpMqn':'<UsernamePlaceholder>','Gpovf':_0x170f27(0x2a7),'fLGUs':_0x170f27(0x1fe),'AAtVE':'biGjD','Oumbl':'hEHOp','YEmzw':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','iTfzO':function(_0x57ae6a,_0x260d9b,_0x500717,_0x4b6ee7,_0x356217,_0x575c7c,_0x29b4c7,_0x1cde6a){return _0x57ae6a(_0x260d9b,_0x500717,_0x4b6ee7,_0x356217,_0x575c7c,_0x29b4c7,_0x1cde6a);},'tujKT':_0x170f27(0x18e),'dTEZl':'DvgJe','cBvkb':_0x170f27(0x224),'RysAT':_0x170f27(0x1d9),'McodK':function(_0x4e1710,_0x4d1d0a,_0x41acae,_0x502f7e,_0x143193,_0x301bab,_0x3a8ec4,_0x3dd6d0){return _0x4e1710(_0x4d1d0a,_0x41acae,_0x502f7e,_0x143193,_0x301bab,_0x3a8ec4,_0x3dd6d0);},'BFNBC':_0x170f27(0x2aa),'nCdev':_0x170f27(0x194),'xnXeF':'yhmhT','fRodh':function(_0x498132,_0x26a775){return _0x498132===_0x26a775;},'VBWwT':'lphLF','CudaN':function(_0x44721d,_0x23e41e){return _0x44721d===_0x23e41e;},'teeNm':'VKxps','zDBKI':_0x170f27(0x272),'aOHHD':_0x170f27(0x14c),'ZHOQi':_0x170f27(0x199),'XZLcd':function(_0x4124ce,_0x363c80,_0x452b79){return _0x4124ce(_0x363c80,_0x452b79);},'RzKWy':function(_0x3a215,_0x5283bc){return _0x3a215!==_0x5283bc;},'hDmLh':_0x170f27(0x1bd),'imEHJ':_0x170f27(0x22c),'uXdEw':function(_0x588397,_0x43849f){return _0x588397===_0x43849f;},'RwYXA':function(_0x1dffc3,_0x3fda3e){return _0x1dffc3!==_0x3fda3e;},'meEyA':'zaxFv','dcMsw':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','pCugs':function(_0x5cf981,_0x25d6fd,_0x288063,_0x4b0062,_0x206a5d,_0x4e8e6b,_0x44c91c,_0x5de730){return _0x5cf981(_0x25d6fd,_0x288063,_0x4b0062,_0x206a5d,_0x4e8e6b,_0x44c91c,_0x5de730);},'IRfJm':'create-grid-checks-null-response','UnJIE':function(_0x4fd123,_0x43b06a){return _0x4fd123!==_0x43b06a;},'xdvpt':_0x170f27(0x159),'vNlRp':_0x170f27(0x168),'oLFOB':function(_0x103183,_0x2cc8a0,_0x56da1b,_0x1719f6,_0x3f59bc,_0x4c3ba3,_0x51d637,_0xc9f826){return _0x103183(_0x2cc8a0,_0x56da1b,_0x1719f6,_0x3f59bc,_0x4c3ba3,_0x51d637,_0xc9f826);},'DtNeB':_0x170f27(0x290),'xWLUI':_0x170f27(0x262),'zwXFH':'gVrQL','QfiQU':function(_0x2d36c4,_0xcd4551,_0x13e2ff,_0x13ad71,_0x36f6e2,_0x1ce492,_0x265aa6,_0x295113){return _0x2d36c4(_0xcd4551,_0x13e2ff,_0x13ad71,_0x36f6e2,_0x1ce492,_0x265aa6,_0x295113);},'DckNp':_0x170f27(0x170),'tlRXW':_0x170f27(0x13c),'frJXt':function(_0x59efcf,_0x33d974){return _0x59efcf===_0x33d974;},'AnpwC':'sLmBv','cOXxO':_0x170f27(0x1ea),'JEWan':_0x170f27(0x2d9),'dDbYj':_0x170f27(0x257),'aYZiz':_0x170f27(0x225),'YLyVu':function(_0x20b1bc,_0x32f3c2){return _0x20b1bc!==_0x32f3c2;},'TtrAf':'GjPfw','JxXGi':_0x170f27(0x232),'ixzTt':'0|4|1|2|3','waRTA':function(_0x2c7fef,_0x30ca89){return _0x2c7fef===_0x30ca89;},'SLTbW':function(_0x2226e4,_0x128f49){return _0x2226e4===_0x128f49;},'WwhWX':_0x170f27(0x268),'CFMJQ':_0x170f27(0x2bb),'Faize':'xkfJM','qXjzG':_0x170f27(0x2d7),'TBnfu':_0x170f27(0x1a2),'BjMrM':_0x170f27(0x209),'Hneye':function(_0x1ff2b6,_0x1a1513){return _0x1ff2b6===_0x1a1513;},'jmMcs':'zxiEL','xMcMl':function(_0xfba269,_0x5e0fdb){return _0xfba269===_0x5e0fdb;},'GvgTN':_0x170f27(0x137),'tAFWa':function(_0xdf17fb,_0x370ef2){return _0xdf17fb===_0x370ef2;},'YENrO':_0x170f27(0x266),'ARKIH':_0x170f27(0x1ca),'iHyNa':function(_0x5b92c1,_0x4255fd,_0x57fac8,_0x22d830,_0x5b91fd,_0x15ec58,_0x1e0431,_0x2467a7,_0x3dd065,_0x3ff416,_0x14b3fa,_0x354344,_0x6256a){return _0x5b92c1(_0x4255fd,_0x57fac8,_0x22d830,_0x5b91fd,_0x15ec58,_0x1e0431,_0x2467a7,_0x3dd065,_0x3ff416,_0x14b3fa,_0x354344,_0x6256a);},'YuLPW':function(_0x436723,_0xec0c78){return _0x436723!==_0xec0c78;},'IAuNR':_0x170f27(0x19f),'tShvd':function(_0x2f1ba4,_0x1afd29){return _0x2f1ba4!==_0x1afd29;},'BQPKP':_0x170f27(0x193),'iQgDq':_0x170f27(0x12e),'QhqiV':function(_0x27f3f5,_0x2191a1){return _0x27f3f5!==_0x2191a1;},'ctsGm':function(_0x55ba05,_0x3892ca){return _0x55ba05!==_0x3892ca;},'IOmSD':'dVmhc','BweuW':function(_0x3a8303,_0x444555,_0x1ed9d8,_0x4c521c,_0x3a9e99,_0x290f36,_0x581c8d,_0x60b972,_0x1d75e3,_0x46089a,_0x2573cb,_0x8ab766,_0x139953){return _0x3a8303(_0x444555,_0x1ed9d8,_0x4c521c,_0x3a9e99,_0x290f36,_0x581c8d,_0x60b972,_0x1d75e3,_0x46089a,_0x2573cb,_0x8ab766,_0x139953);},'asrxk':_0x170f27(0x230),'vlKKO':function(_0x1d5198,_0x131292){return _0x1d5198===_0x131292;},'aKAFg':'tDCLG','jWxhk':'1|8|3|7|5|4|0|6|2','EUFkX':function(_0x37420f,_0x89c51a){return _0x37420f!==_0x89c51a;},'EHnTF':_0x170f27(0x192),'wwoko':_0x170f27(0x248),'KnwbZ':function(_0x3af529,_0x55d09f){return _0x3af529===_0x55d09f;},'IZfGW':_0x170f27(0x2db),'MuKMO':_0x170f27(0x27f),'aUAdp':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','oFgAx':function(_0x5bbc4d,_0x2d19b4){return _0x5bbc4d!=_0x2d19b4;},'Ohivd':function(_0x5c7023,_0xd81e31){return _0x5c7023!=_0xd81e31;},'YjVvc':function(_0x5c574e,_0x35796e){return _0x5c574e>_0x35796e;},'jCmVv':function(_0x23d9e0,_0x42f441){return _0x23d9e0===_0x42f441;},'Nljxc':_0x170f27(0x13e),'UnbTK':function(_0xc5508c,_0x530226,_0x49db12,_0x18a3ff,_0x51745f,_0x5631a9,_0xd08e9b,_0x2fec6e){return _0xc5508c(_0x530226,_0x49db12,_0x18a3ff,_0x51745f,_0x5631a9,_0xd08e9b,_0x2fec6e);},'tNzpM':_0x170f27(0x1c2),'XLweu':function(_0x1266eb,_0xcd6dde){return _0x1266eb===_0xcd6dde;},'fuerh':_0x170f27(0x17d),'HcALt':function(_0x407ef4,_0x2141b2,_0x1ba8bb,_0x1b2b22,_0xea41a6,_0x3f0331,_0xe448af,_0x4f5817){return _0x407ef4(_0x2141b2,_0x1ba8bb,_0x1b2b22,_0xea41a6,_0x3f0331,_0xe448af,_0x4f5817);},'NTlcn':_0x170f27(0x130),'HBrqc':function(_0x25e3f3,_0x54d476){return _0x25e3f3===_0x54d476;},'zOzGF':_0x170f27(0x1d4),'uePvi':_0x170f27(0x1c4),'KQxXm':_0x170f27(0x25b),'AMDGZ':'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.','hjVee':function(_0x57901d,_0x2f5bf9){return _0x57901d===_0x2f5bf9;},'LMvSI':function(_0x3002a7,_0x4ae287){return _0x3002a7===_0x4ae287;},'nHDJG':_0x170f27(0x26a),'hwauC':function(_0x130449,_0x257881,_0x4592ac){return _0x130449(_0x257881,_0x4592ac);},'kZGJL':_0x170f27(0x1c1),'LwJlj':'../..','tzXOu':_0x170f27(0x173),'JjOtO':_0x170f27(0x171),'OoGXs':_0x170f27(0x261),'NYnno':_0x170f27(0x2d4),'zzFBw':function(_0x43cb20,_0x2e63cf){return _0x43cb20(_0x2e63cf);},'WdiMq':function(_0x539ce2,_0x401c70){return _0x539ce2(_0x401c70);},'CwMEe':function(_0x3fb83e,_0x1086c6,_0x18a1da){return _0x3fb83e(_0x1086c6,_0x18a1da);},'aUDbk':_0x170f27(0x235),'jxOAB':_0x170f27(0x19e),'uTdEY':_0x170f27(0x204),'nPEoM':'bitnami-redis.yaml','FDfAG':'Added\x20Redis\x20deployment.','TenaZ':_0x170f27(0x23e),'zFnXE':'bitnami-kafka.yaml','tssQm':function(_0x33b588,_0x3d1c0f,_0x5eb339){return _0x33b588(_0x3d1c0f,_0x5eb339);},'xqhVm':_0x170f27(0x1a8),'XUlNy':'Adding\x20Turboscale\x20Uploader\x20deployment...','DSiQA':_0x170f27(0x245),'RFKeG':function(_0x249b2c,_0x16b154,_0xd2abcf){return _0x249b2c(_0x16b154,_0xd2abcf);},'otEQP':'Added\x20Turboscale\x20Uploader\x20deployment.','pdLdr':_0x170f27(0x2c6),'nXJMa':'Hub\x20HA\x20setup\x20completed\x20successfully.','DizBG':_0x170f27(0x138),'xRogs':function(_0x5efcc2,_0x566c36,_0x587e12,_0x11053b,_0x32f564,_0x218443,_0x5e8bfe,_0x416992){return _0x5efcc2(_0x566c36,_0x587e12,_0x11053b,_0x32f564,_0x218443,_0x5e8bfe,_0x416992);},'OMppK':_0x170f27(0x187),'zuuUT':_0x170f27(0x1e6),'ehQtv':_0x170f27(0x146),'VcCrm':'Namespace\x20Created','aecqf':_0x170f27(0x1f0),'laWMe':_0x170f27(0x1c6),'eMwZw':_0x170f27(0x1f6),'ilWXm':function(_0x490a18,_0x5dd696,_0x4b7333,_0x4fa64e,_0x1c3c84,_0x1c7bca,_0x22def2,_0x2ec20a,_0x52f7b5,_0x59bf10,_0x49780f){return _0x490a18(_0x5dd696,_0x4b7333,_0x4fa64e,_0x1c3c84,_0x1c7bca,_0x22def2,_0x2ec20a,_0x52f7b5,_0x59bf10,_0x49780f);},'xAwkQ':'Grid\x20spawned\x20on\x20the\x20cluster','wTScK':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Vtcai':function(_0x481944,_0x2eaa2e,_0x57d813,_0x4d44eb,_0x228ab9){return _0x481944(_0x2eaa2e,_0x57d813,_0x4d44eb,_0x228ab9);},'BksFo':_0x170f27(0x1ce),'byskp':_0x170f27(0x19a),'zqdRc':_0x170f27(0x1f4),'xbCdo':function(_0x3c66d5,_0x3c0fee,_0x557d6d){return _0x3c66d5(_0x3c0fee,_0x557d6d);},'xJYzK':function(_0x2e9a59,_0x1c264d){return _0x2e9a59===_0x1c264d;},'OgGdM':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','QLPov':_0x170f27(0x24c),'CaWuZ':_0x170f27(0x1f3),'buGCx':_0x170f27(0x133),'yPuhk':'get-grid-url-non-200','rxtYY':_0x170f27(0x26f),'yzwQX':function(_0x53e04c,_0x813895,_0x2b27b7,_0x4c73c9,_0xcf0d8c,_0x19f0ab){return _0x53e04c(_0x813895,_0x2b27b7,_0x4c73c9,_0xcf0d8c,_0x19f0ab);},'hZhLu':_0x170f27(0x17f)};let _0x5afe1c=![],_0x4381c7=![],_0x52088f,_0x23689a,_0x50715f,_0x22b2b6,_0x5816e3,_0x3ad6ac,_0x407cc7,_0x180906,_0x2c2c3c,_0x31fc03,_0x54be75,_0x2c678f,_0x4ea799,_0x4eeee,_0x512a4e=0x1,_0x7970f3=0xe;try{global_registry[_0x170f27(0x17a)]=_0x2af040[_0x170f27(0x29e)](uuidv4),global_registry[_0x170f27(0x250)]=![];if(!fs[_0x170f27(0x2c0)](_0x2af040['OrGCm'](getCredentialsPath))){if(_0x2af040[_0x170f27(0x1d3)](_0x2af040[_0x170f27(0x177)],_0x2af040[_0x170f27(0x177)])){const _0x3f8727=_0x2af040[_0x170f27(0x14d)]['split']('|');let _0x4b303a=0x0;while(!![]){switch(_0x3f8727[_0x4b303a++]){case'0':_0x2af040[_0x170f27(0x1d3)](_0x2463d2[_0x170f27(0x16d)],_0xe99e1)&&_0x39d678[_0x170f27(0x16d)]&&(_0x563c50[_0x170f27(0x250)]=!![]);continue;case'1':_0x3304a0=_0x5724b5[_0x170f27(0x291)];continue;case'2':_0x294584=_0x3288d5[_0x170f27(0x17c)];continue;case'3':_0x90093[_0x170f27(0x246)](_0x3dc89b);continue;case'4':_0x5d4b12=_0x1c4031['maxNodes'];continue;case'5':_0x100cf5=null;continue;case'6':const _0x2ba11a={};_0x2ba11a[_0x170f27(0x1e1)]=_0x55fa8d['LOG'],_0x2ba11a[_0x170f27(0x27d)]=_0x510b16,_0x2b0dd5['sendEventToBackend'](_0x149014,_0x2ba11a);continue;case'7':_0x14ee5c=_0x170f27(0x20e)+_0x200b51;continue;case'8':_0x1e5425=_0x515b02[_0x170f27(0x169)];continue;case'9':_0x4e1dff=null;continue;case'10':_0x1b474a['enableHubHa']&&_0x2af040[_0x170f27(0x1c7)](_0x1070c1,_0x46d188[_0x170f27(0x23d)]);continue;case'11':_0x22cef9=_0x21b553[_0x170f27(0x2a4)];continue;case'12':_0x10451a=_0x3c34e9[_0x170f27(0x28b)];continue;case'13':_0x2af040[_0x170f27(0x24a)](_0x2664ab,_0x8a52e,_0x10b2a8,_0x4410e5,_0x5818d8,_0x39e518,_0x309f2f,_0x4c1080,_0x102016,_0x6dbd33,_0x3309f9,_0xb08b6e,_0x3f1838[_0x170f27(0x1e9)]);continue;case'14':_0x3cbd29=_0x284b4d['instanceType'];continue;case'15':_0x261682=null;continue;}break;}}else console[_0x170f27(0x164)](_0x2af040[_0x170f27(0x206)]),await _0x2af040[_0x170f27(0x18d)](sendInstrumentationEvent,_0x46df7a,_0x2af040[_0x170f27(0x176)],messageTypes[_0x170f27(0x157)],_0x2af040['XGErQ'],null,_0x46df7a),process['exit'](0x1);}await _0x2af040['isvmZ'](sendInstrumentationEvent,_0x46df7a,_0x2af040['IIcUk'],messageTypes[_0x170f27(0x1e3)],null,null,_0x46df7a);const _0x46cd6b=JSON[_0x170f27(0x21b)](fs[_0x170f27(0x201)](_0x2af040[_0x170f27(0x228)](getCredentialsPath)));global_registry[_0x170f27(0x148)]=_0x46cd6b[_0x170f27(0x146)][_0x170f27(0x179)],global_registry['bstackAccesskey']=_0x46cd6b['Browserstack'][_0x170f27(0x20a)];const _0x35231=WS_ENDPOINT[_0x170f27(0x1e4)](_0x2af040[_0x170f27(0x25f)],_0x46cd6b[_0x170f27(0x146)][_0x170f27(0x179)])[_0x170f27(0x1e4)](_0x2af040[_0x170f27(0x191)],_0x46cd6b[_0x170f27(0x146)][_0x170f27(0x20a)]),_0x2e1a2d={};_0x2e1a2d[_0x170f27(0x2cf)]=ws,_0x2e1a2d[_0x170f27(0x13d)]=0x36ee80,_0x2c678f=new ReconnectingWebSocket(_0x35231,[],_0x2e1a2d),logger[_0x170f27(0x28d)](_0x2af040[_0x170f27(0x16e)]),webSocketUtils[_0x170f27(0x2d2)](_0x2c678f,_0x46df7a[_0x170f27(0x134)],_0x46df7a[_0x170f27(0x20a)]);const _0x5bc66e=_0x46df7a[_0x170f27(0x247)]||DEFAULT_GRID_NAME;if(_0x46df7a['clusterName']||_0x46df7a[_0x170f27(0x25a)]||_0x46df7a[_0x170f27(0x1b7)]){if(_0x2af040[_0x170f27(0x1d3)](_0x2af040[_0x170f27(0x264)],_0x2af040['AAtVE'])){const _0x32ff33=_0x2af040[_0x170f27(0x2a8)][_0x170f27(0x1b2)]('|');let _0x533137=0x0;while(!![]){switch(_0x32ff33[_0x533137++]){case'0':_0x289889[_0x170f27(0x169)]=_0x218614[_0x170f27(0x169)];continue;case'1':_0x3ea2b9['clusterRegion']=_0x5ee14e;continue;case'2':const _0x16f476={};_0x16f476[_0x170f27(0x1e1)]=_0x366279[_0x170f27(0x1e8)],_0x16f476['message']=_0x31345a,_0x37f23f['sendEventToBackend'](_0x5cd171,_0x16f476);continue;case'3':_0x5a08f9='Spawning\x20the\x20grid\x20'+_0x398f63+_0x170f27(0x1df)+_0x6a6f9e+'\x27';continue;case'4':const _0x39bd09={};_0x39bd09[_0x170f27(0x1e1)]=_0x274502[_0x170f27(0x208)],_0x39bd09[_0x170f27(0x27d)]=_0x2af040['ddmPa'],_0xa9b4f2['sendEventToBackend'](_0x1e1369,_0x39bd09);continue;case'5':_0x29761f[_0x170f27(0x28b)]=_0x56e6a[_0x170f27(0x28b)];continue;case'6':_0x451319['cloudProvider']=_0x2b59d4;continue;case'7':_0xf770ce['info'](_0x3714ba);continue;case'8':_0xedf698[_0x170f27(0x185)]=_0x4e47e0;continue;}break;}}else{!(_0x46df7a[_0x170f27(0x185)]&&_0x46df7a['cloudProvider']&&_0x46df7a[_0x170f27(0x1b7)])&&(_0x2af040[_0x170f27(0x1d3)](_0x2af040[_0x170f27(0x1ad)],_0x2af040[_0x170f27(0x1ad)])?_0x548e90[_0x170f27(0x250)]=!![]:(_0x52088f=_0x2af040[_0x170f27(0x220)],await _0x2af040[_0x170f27(0x296)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes['ERROR'],_0x2af040[_0x170f27(0x176)],_0x2af040[_0x170f27(0x2d8)],_0x2af040['HUatN']),logger[_0x170f27(0x164)](_0x52088f),process['exit'](0x1)));![AWS,AZURE,GCP][_0x170f27(0x19d)](_0x46df7a[_0x170f27(0x25a)][_0x170f27(0x19b)]())&&(_0x2af040[_0x170f27(0x144)](_0x2af040[_0x170f27(0x28e)],_0x2af040[_0x170f27(0x1ec)])?(_0x1bdf57['info'](_0x170f27(0x21a)+_0x21ace2[_0x170f27(0x185)]+_0x170f27(0x2dc)),_0x5147fd=![],_0x5c4e7e=!![]):(_0x52088f=_0x2af040[_0x170f27(0x22d)],await _0x2af040[_0x170f27(0x2d1)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x176)],_0x2af040[_0x170f27(0x140)],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process['exit'](0x1)));if(_0x46df7a[_0x170f27(0x16d)]&&_0x2af040['JycJp'](_0x46df7a[_0x170f27(0x16d)][_0x170f27(0x19b)](),_0x2af040[_0x170f27(0x2c8)])){if(_0x2af040['Ghobm'](_0x2af040['nCdev'],_0x2af040[_0x170f27(0x13f)]))global_registry[_0x170f27(0x250)]=!![];else{const _0x281273=_0x2af040['mRRvI'][_0x170f27(0x1b2)]('|');let _0xb469b5=0x0;while(!![]){switch(_0x281273[_0xb469b5++]){case'0':_0x117b8c[_0x170f27(0x246)](_0x2af040[_0x170f27(0x292)]);continue;case'1':_0x35b891[_0x170f27(0x27b)]=!![];continue;case'2':_0x156615[_0x170f27(0x174)]=_0x2af040[_0x170f27(0x1bb)];continue;case'3':_0x2ecb1c[_0x170f27(0x16b)]=_0x2af040['PHCrM'];continue;case'4':_0x51f084[_0x170f27(0x2d3)]=_0x2af040[_0x170f27(0x12b)];continue;}break;}}}global_registry[_0x170f27(0x25a)]=_0x46df7a[_0x170f27(0x25a)],global_registry[_0x170f27(0x2a5)]=_0x46df7a[_0x170f27(0x1b7)],global_registry[_0x170f27(0x185)]=_0x46df7a[_0x170f27(0x185)];const _0x3a19cd=await _0x2af040[_0x170f27(0x18d)](getCloudProviderObject,_0x46df7a[_0x170f27(0x25a)],_0x46df7a[_0x170f27(0x185)],_0x5bc66e,_0x2c678f,webSocketUtils,_0x46df7a),_0x280fe7=await _0x3a19cd[_0x170f27(0x15c)]();!_0x280fe7?_0x2af040[_0x170f27(0x2bc)](_0x2af040[_0x170f27(0x222)],_0x2af040[_0x170f27(0x222)])?(logger[_0x170f27(0x246)]('Cluster:\x20'+_0x46df7a[_0x170f27(0x185)]+_0x170f27(0x2dc)),_0x5afe1c=![],_0x4381c7=!![]):(_0x26c0cf[_0x170f27(0x1b7)]=_0x302dd1,_0x233009['cloudProvider']=_0x4de43c,_0x1f567b[_0x170f27(0x197)]=!![],_0x5e3e41['clusterAutoUpgrade']=_0x4c68cf['clusterAutoupgrade']):_0x2af040[_0x170f27(0x23c)](_0x2af040[_0x170f27(0x195)],_0x2af040['teeNm'])?_0x5afe1c=!![]:_0x526f4c=_0x2af040[_0x170f27(0x256)],_0x50715f=_0x46df7a[_0x170f27(0x185)],_0x23689a=_0x46df7a[_0x170f27(0x25a)][_0x170f27(0x19b)](),_0x22b2b6=_0x46df7a[_0x170f27(0x1b7)];}}else _0x46df7a[_0x170f27(0x18a)]&&(_0x2af040[_0x170f27(0x1d3)](_0x2af040['zDBKI'],_0x2af040[_0x170f27(0x1ed)])?global_registry[_0x170f27(0x18a)]=_0x46df7a['gridProfile']:_0x5a9516=null);global_registry[_0x170f27(0x247)]=_0x46df7a['gridName'];const _0x5cdc30={'method':_0x2af040[_0x170f27(0x149)],'headers':_0x2af040[_0x170f27(0x254)](getAuthHeader,_0x46cd6b[_0x170f27(0x146)][_0x170f27(0x179)],_0x46cd6b['Browserstack']['password']),'throwHttpErrors':![]},_0x4c7434={};_0x4c7434[_0x170f27(0x247)]=_0x5bc66e;const _0x4d7d8a=_0x4c7434;_0x4381c7&&(_0x2af040[_0x170f27(0x1dd)](_0x2af040['hDmLh'],_0x2af040['hDmLh'])?_0x294e22[_0x170f27(0x250)]=!![]:(_0x4d7d8a[_0x170f27(0x1b7)]=_0x22b2b6,_0x4d7d8a[_0x170f27(0x25a)]=_0x23689a,_0x4d7d8a[_0x170f27(0x197)]=!![],_0x4d7d8a[_0x170f27(0x21f)]=_0x46df7a[_0x170f27(0x1e9)]));_0x46df7a[_0x170f27(0x1e9)]&&(_0x2af040['RzKWy'](_0x2af040['imEHJ'],_0x2af040[_0x170f27(0x215)])?_0xb2bf3c[_0x170f27(0x250)]=!![]:logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x18c)]));const _0x41ed68=_0x170f27(0x217)+AG_API_URL+_0x170f27(0x2cb),_0x53556a={'searchParams':_0x4d7d8a,'throwHttpErrors':![],..._0x5cdc30},_0x19e409=_0x53556a,_0x169aa5=await _0x2af040[_0x170f27(0x254)](got,_0x41ed68,_0x19e409);(_0x2af040[_0x170f27(0x2bc)](_0x169aa5,null)||_0x2af040[_0x170f27(0x27c)](_0x169aa5,undefined))&&(_0x2af040[_0x170f27(0x1db)](_0x2af040[_0x170f27(0x156)],_0x2af040['meEyA'])?_0x33d3d5[_0x170f27(0x246)](_0x170f27(0x2ad)+_0x500be9+'\x20'):(_0x52088f=_0x2af040[_0x170f27(0x2c4)],await _0x2af040[_0x170f27(0x239)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040['IIcUk'],_0x2af040['IRfJm'],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process[_0x170f27(0x1c8)](0x1)));_0x2af040[_0x170f27(0x23c)](_0x169aa5['statusCode'],0x191)&&(_0x2af040[_0x170f27(0x25d)](_0x2af040[_0x170f27(0x1a3)],_0x2af040[_0x170f27(0x1a3)])?(_0x19c5fc=_0x27f1dd[_0x170f27(0x275)],_0x1bfaed=_0x2af040[_0x170f27(0x15d)]):(_0x52088f=_0x2af040[_0x170f27(0x2c1)],await _0x2af040[_0x170f27(0x269)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040['IIcUk'],_0x2af040[_0x170f27(0x162)],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process[_0x170f27(0x1c8)](0x1)));_0x2af040[_0x170f27(0x25d)](_0x169aa5[_0x170f27(0x2d5)],0xc8)&&(_0x2af040[_0x170f27(0x27c)](_0x2af040['xWLUI'],_0x2af040[_0x170f27(0x29f)])?_0xf71c92=!![]:(_0x52088f=_0x170f27(0x24d)+JSON[_0x170f27(0x12a)](_0x169aa5[_0x170f27(0x161)]),await _0x2af040[_0x170f27(0x233)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x176)],_0x2af040[_0x170f27(0x2d6)],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process['exit'](0x1)));const _0xea6e3f=JSON[_0x170f27(0x21b)](_0x169aa5[_0x170f27(0x161)]),_0x1ffddf={};_0x1ffddf['type']=WS_EVENTS[_0x170f27(0x208)],_0x1ffddf['message']=_0x2af040[_0x170f27(0x1d6)],webSocketUtils['sendEventToBackend'](_0x2c678f,_0x1ffddf);const _0x483ff6={};_0x483ff6['type']=WS_EVENTS['LOG'],_0x483ff6['message']=_0x2af040[_0x170f27(0x2b9)],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x483ff6);_0xea6e3f['alreadyPresent']&&(_0x2af040[_0x170f27(0x2ae)](_0x2af040[_0x170f27(0x196)],_0x2af040['cOXxO'])?_0xb56fde=null:(_0x52088f='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x5bc66e+_0x170f27(0x1a4),await _0x2af040['iTfzO'](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x176)],_0x2af040[_0x170f27(0x29a)],_0x2af040['HUatN']),logger['error'](_0x52088f),process[_0x170f27(0x1c8)](0x1)));const _0x56b830=_0xea6e3f[_0x170f27(0x14b)];let _0x1afb47=_0x56b830[_0xea6e3f[_0x170f27(0x207)]];_0x46df7a[_0x170f27(0x18a)]&&(_0x2af040[_0x170f27(0x1dd)](_0x2af040['dDbYj'],_0x2af040[_0x170f27(0x143)])?_0x1afb47=_0x56b830[_0x46df7a[_0x170f27(0x18a)]]:_0x59c753[_0x170f27(0x164)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x5e0f61+'\x20\x0a'+_0x3f33c9[_0x170f27(0x12a)](_0x37b429['stack'])));global_registry[_0x170f27(0x27b)]=![];if(_0x46df7a[_0x170f27(0x1d1)]){if(_0x2af040[_0x170f27(0x2bf)](_0x2af040[_0x170f27(0x1fa)],_0x2af040[_0x170f27(0x2b7)])){const _0x4835c3=_0x2af040[_0x170f27(0x2a0)][_0x170f27(0x1b2)]('|');let _0x1c5b2a=0x0;while(!![]){switch(_0x4835c3[_0x1c5b2a++]){case'0':logger['info'](_0x2af040[_0x170f27(0x292)]);continue;case'1':global_registry['redisPassword']=_0x2af040[_0x170f27(0x1bb)];continue;case'2':global_registry[_0x170f27(0x16b)]=_0x2af040[_0x170f27(0x244)];continue;case'3':global_registry[_0x170f27(0x27b)]=!![];continue;case'4':global_registry['hubHaNameSpace']=_0x2af040[_0x170f27(0x12b)];continue;}break;}}else{const _0x55e6a8={};_0x55e6a8[_0x170f27(0x212)]=_0x2af040['NhBST'],_0x55e6a8[_0x170f27(0x1e1)]=_0x2af040[_0x170f27(0x2c5)];const _0x31f00f={};_0x31f00f[_0x170f27(0x212)]=_0x2af040['aArie'],_0x31f00f[_0x170f27(0x1e1)]=_0x2af040[_0x170f27(0x2c5)];const _0x526eb5={};_0x526eb5[_0x170f27(0x212)]=_0x2af040[_0x170f27(0x1aa)],_0x526eb5[_0x170f27(0x1e1)]=_0x2af040[_0x170f27(0x2c5)];const _0x4bd90c={};_0x4bd90c[_0x170f27(0x212)]=_0x2af040['aboaH'],_0x4bd90c[_0x170f27(0x1e1)]=_0x2af040[_0x170f27(0x2c5)];const _0x26de6b={};_0x26de6b['description']=_0x2af040[_0x170f27(0x29d)],_0x26de6b[_0x170f27(0x1e1)]=_0x2af040[_0x170f27(0x2c5)];const _0x3138d1={};_0x3138d1[_0x170f27(0x212)]=_0x2af040[_0x170f27(0x20b)],_0x3138d1['type']=_0x2af040['SIVYg'];const _0x296354={};_0x296354[_0x170f27(0x212)]=_0x2af040[_0x170f27(0x2ba)],_0x296354[_0x170f27(0x1e1)]=_0x2af040['rHWgz'],_0x296354[_0x170f27(0x285)]=![];const _0x2d1624={};_0x2d1624[_0x170f27(0x212)]=_0x2af040[_0x170f27(0x2b2)],_0x2d1624[_0x170f27(0x1e1)]=_0x2af040[_0x170f27(0x28f)],_0x2d1624[_0x170f27(0x285)]=![];const _0x3d2ad2={};_0x3d2ad2['description']=_0x2af040[_0x170f27(0x20d)],_0x3d2ad2[_0x170f27(0x1e1)]=_0x2af040[_0x170f27(0x28f)],_0x3d2ad2[_0x170f27(0x285)]=![];const _0x29ba26={};return _0x29ba26[_0x170f27(0x1ff)]=_0x55e6a8,_0x29ba26[_0x170f27(0x14f)]=_0x31f00f,_0x29ba26[_0x170f27(0x18b)]=_0x526eb5,_0x29ba26[_0x170f27(0x2cc)]=_0x4bd90c,_0x29ba26[_0x170f27(0x1b7)]=_0x26de6b,_0x29ba26[_0x170f27(0x2ca)]=_0x3138d1,_0x29ba26['skip-tls-cert-verify']=_0x296354,_0x29ba26[_0x170f27(0x160)]=_0x2d1624,_0x29ba26[_0x170f27(0x1ef)]=_0x3d2ad2,_0x59bc6d[_0x170f27(0x255)](_0x545f1d[_0x170f27(0x26e)])[_0x170f27(0x243)](_0x391743)[_0x170f27(0x182)](_0x29ba26)[_0x170f27(0x237)](_0x2af040[_0x170f27(0x276)])['argv'];}}if(_0x2af040[_0x170f27(0x23c)](_0x5afe1c,![])&&_0x2af040[_0x170f27(0x23b)](_0x4381c7,![])){if(_0x2af040[_0x170f27(0x2da)](_0x2af040['WwhWX'],_0x2af040[_0x170f27(0x198)]))_0x19823d=_0x2af040[_0x170f27(0x1f1)];else{_0x2af040[_0x170f27(0x23c)](_0x1afb47,undefined)&&(_0x2af040[_0x170f27(0x23b)](_0x2af040[_0x170f27(0x202)],_0x2af040[_0x170f27(0x1da)])?_0x2af040[_0x170f27(0x1c7)](_0x397cc4,_0x11fe62['kafkaUploader']):(_0x52088f=_0x2af040[_0x170f27(0x15e)],await _0x2af040[_0x170f27(0x239)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x176)],_0x2af040[_0x170f27(0x1c9)],_0x2af040[_0x170f27(0x2b8)]),logger['error'](_0x52088f),process['exit'](0x1)));global_registry[_0x170f27(0x1cd)]=_0x1afb47['id'],_0x52088f=_0x170f27(0x2b1)+_0x5bc66e+_0x170f27(0x2b0)+_0x1afb47[_0x170f27(0x2b5)]+_0x170f27(0x274),logger['info'](_0x52088f);const _0x574aa4={};_0x574aa4['type']=WS_EVENTS['LOG'],_0x574aa4[_0x170f27(0x27d)]=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x574aa4),_0x23689a=_0x1afb47[_0x170f27(0x25a)],_0x50715f=_0x1afb47[_0x170f27(0x185)],_0x22b2b6=_0x1afb47[_0x170f27(0x1b7)],_0x5816e3=_0x1afb47[_0x170f27(0x291)],_0x3ad6ac=_0x1afb47[_0x170f27(0x172)],_0x407cc7=_0x1afb47[_0x170f27(0x158)],_0x180906=_0x1afb47['securityGroups'],_0x2c2c3c=_0x1afb47[_0x170f27(0x1d0)],_0x31fc03=_0x1afb47[_0x170f27(0x2a4)],_0x512a4e=_0x1afb47['minNodes'],_0x7970f3=_0x1afb47[_0x170f27(0x2d0)],_0x4ea799=_0xea6e3f[_0x170f27(0x169)],_0x4eeee=_0xea6e3f[_0x170f27(0x28b)];_0x407cc7&&_0x2af040['fRodh'](_0x407cc7[_0x170f27(0x135)],0x0)&&(_0x2af040[_0x170f27(0x287)](_0x2af040[_0x170f27(0x1b5)],_0x2af040[_0x170f27(0x1b5)])?_0x407cc7=null:_0xb20c24=_0x2af040['GPWQP']);if(_0x2c2c3c&&_0x2af040[_0x170f27(0x2da)](_0x2c2c3c[_0x170f27(0x135)],0x0)){if(_0x2af040[_0x170f27(0x1c5)](_0x2af040[_0x170f27(0x1de)],_0x2af040[_0x170f27(0x1de)]))_0x2c2c3c=null;else throw new _0x529980(_0x170f27(0x1f8)+_0x24c7af+_0x170f27(0x279));}if(_0x2af040[_0x170f27(0x1d3)](_0x1afb47[_0x170f27(0x16d)],undefined)&&_0x1afb47[_0x170f27(0x16d)]){if(_0x2af040[_0x170f27(0x20f)](_0x2af040[_0x170f27(0x14e)],_0x2af040['ARKIH'])){const _0x442bb6={};_0x442bb6[_0x170f27(0x1e1)]=_0x1e1a6c[_0x170f27(0x1e8)],_0x442bb6[_0x170f27(0x27d)]=_0x56728b,_0x30455d[_0x170f27(0x216)](_0x4e03c1,_0x442bb6,_0x2af040[_0x170f27(0x2b8)],!![]);}else global_registry[_0x170f27(0x250)]=!![];}_0x2af040['iHyNa'](updateGlobalRegistryWithConfig,_0x23689a,_0x50715f,_0x22b2b6,_0x5816e3,_0x3ad6ac,_0x31fc03,_0x1afb47,_0x4ea799,_0x4eeee,_0x512a4e,_0x7970f3,_0x46df7a[_0x170f27(0x1e9)]),global_registry[_0x170f27(0x27b)]&&(_0x2af040['YuLPW'](_0x2af040['IAuNR'],_0x2af040[_0x170f27(0x252)])?_0xa0e885[_0x170f27(0x18a)]=_0x3e37f6[_0x170f27(0x18a)]:_0x2af040['eQHrm'](updateGlobalRegistryForHubHa,_0xea6e3f[_0x170f27(0x284)]));}}else{if(_0x2af040[_0x170f27(0x20f)](_0x4381c7,!![])){if(_0x2af040[_0x170f27(0x1a7)](_0x2af040[_0x170f27(0x131)],_0x2af040[_0x170f27(0x223)])){_0x52088f=_0x170f27(0x20e)+_0x5bc66e,logger['info'](_0x52088f);const _0x3ea8b9={};_0x3ea8b9[_0x170f27(0x1e1)]=WS_EVENTS['LOG'],_0x3ea8b9[_0x170f27(0x27d)]=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x3ea8b9),_0x5816e3=_0x1afb47[_0x170f27(0x291)],_0x3ad6ac=_0x1afb47[_0x170f27(0x172)],_0x407cc7=null,_0x180906=null,_0x2c2c3c=null,_0x31fc03=_0x1afb47[_0x170f27(0x2a4)],_0x512a4e=_0x1afb47[_0x170f27(0x17c)],_0x7970f3=_0x1afb47[_0x170f27(0x2d0)],_0x4ea799=_0xea6e3f[_0x170f27(0x169)],_0x4eeee=_0xea6e3f[_0x170f27(0x28b)];if(_0x2af040['QhqiV'](_0x1afb47[_0x170f27(0x16d)],undefined)&&_0x1afb47[_0x170f27(0x16d)]){if(_0x2af040[_0x170f27(0x1c0)](_0x2af040[_0x170f27(0x1b9)],_0x2af040[_0x170f27(0x1b9)])){const _0x4df62d={'azure.workload.identity/use':_0x2af040['kRNoz'],..._0xdb76c8[0x0][_0x170f27(0x288)][_0x170f27(0x1f9)][_0x170f27(0x2b4)]['labels']};_0x5a1046[0x0]['spec']['template']['metadata'][_0x170f27(0x260)]=_0x4df62d,_0x854711[0x0][_0x170f27(0x288)][_0x170f27(0x1f9)]['spec'][_0x170f27(0x18f)]=_0x2af040[_0x170f27(0x219)];}else global_registry['isPrivateGrid']=!![];}_0x2af040[_0x170f27(0x1fd)](updateGlobalRegistryWithConfig,_0x23689a,_0x50715f,_0x22b2b6,_0x5816e3,_0x3ad6ac,_0x31fc03,_0x1afb47,_0x4ea799,_0x4eeee,_0x512a4e,_0x7970f3,_0x46df7a[_0x170f27(0x1e9)]),global_registry[_0x170f27(0x27b)]&&(_0x2af040[_0x170f27(0x12f)](_0x2af040[_0x170f27(0x23a)],_0x2af040[_0x170f27(0x23a)])?_0x5b8d02[_0x170f27(0x246)](_0x2af040[_0x170f27(0x18c)]):_0x2af040[_0x170f27(0x251)](updateGlobalRegistryForHubHa,_0xea6e3f[_0x170f27(0x23d)]));}else _0x491d36['sendResourceDataToHST']();}else{if(_0x2af040[_0x170f27(0x2be)](_0x2af040[_0x170f27(0x221)],_0x2af040[_0x170f27(0x221)])){const _0x3bea13=_0x2af040['jWxhk'][_0x170f27(0x1b2)]('|');let _0x9db490=0x0;while(!![]){switch(_0x3bea13[_0x9db490++]){case'0':global_registry[_0x170f27(0x185)]=_0x50715f;continue;case'1':const _0x59b4cc={};_0x59b4cc[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x208)],_0x59b4cc[_0x170f27(0x27d)]=_0x2af040['ddmPa'],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x59b4cc);continue;case'2':global_registry[_0x170f27(0x28b)]=_0xea6e3f[_0x170f27(0x28b)];continue;case'3':logger[_0x170f27(0x246)](_0x52088f);continue;case'4':global_registry[_0x170f27(0x2a5)]=_0x22b2b6;continue;case'5':global_registry[_0x170f27(0x25a)]=_0x23689a;continue;case'6':global_registry[_0x170f27(0x169)]=_0xea6e3f[_0x170f27(0x169)];continue;case'7':const _0x30d7a4={};_0x30d7a4[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x30d7a4[_0x170f27(0x27d)]=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x30d7a4);continue;case'8':_0x52088f=_0x170f27(0x1ab)+_0x5bc66e+_0x170f27(0x1df)+_0x50715f+'\x27';continue;}break;}}else _0x58dc11[_0x170f27(0x246)](_0x170f27(0x1fc)+_0x5a9a9e[_0x170f27(0x12a)](_0x3efe78)+'\x20');}}const _0x51627e=await _0x2af040[_0x170f27(0x18d)](getCloudProviderObject,_0x23689a,_0x50715f,_0x5bc66e,_0x2c678f,webSocketUtils,_0x46df7a);if(_0x2af040[_0x170f27(0x1e5)](_0x23689a,AZURE)){if(_0x2af040[_0x170f27(0x144)](_0x2af040[_0x170f27(0x189)],_0x2af040[_0x170f27(0x189)]))_0x51627e[_0x170f27(0x27a)]();else{const _0x3a8a7d={};_0x3a8a7d[_0x170f27(0x1e1)]=_0x213baf[_0x170f27(0x1e8)],_0x3a8a7d[_0x170f27(0x27d)]=_0x170f27(0x1f8)+_0x4f419c+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x50da7d[_0x170f27(0x216)](_0x176989,_0x3a8a7d,_0x2af040[_0x170f27(0x200)]),_0x384cdf[_0x170f27(0x246)]('Cluster\x20'+_0x1bebc9+_0x170f27(0x211)),_0x34fba4=!![];if(_0x2af040[_0x170f27(0x144)](_0x5e8899,!![]))throw new _0x152e5d(_0x170f27(0x1f8)+_0x23b886+_0x170f27(0x279));}}let _0x1de9f6;if(_0x2af040['frJXt'](_0x5afe1c,![])){_0x52088f='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x22b2b6+').';const _0x21c7eb={};_0x21c7eb[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x21c7eb[_0x170f27(0x27d)]=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x21c7eb),logger[_0x170f27(0x246)](_0x52088f);const _0x10b38f=await _0x51627e['isClusterPresent']();if(_0x10b38f){if(_0x2af040[_0x170f27(0x2bc)](_0x2af040[_0x170f27(0x1e0)],_0x2af040[_0x170f27(0x1e0)])){const _0x54e627={};_0x54e627[_0x170f27(0x1e1)]=WS_EVENTS['LOG'],_0x54e627['message']=_0x170f27(0x1f8)+_0x50715f+_0x170f27(0x211),webSocketUtils['sendEventToBackend'](_0x2c678f,_0x54e627,_0x2af040[_0x170f27(0x200)]),logger[_0x170f27(0x246)]('Cluster\x20'+_0x50715f+_0x170f27(0x211)),_0x5afe1c=!![];if(_0x2af040[_0x170f27(0x1e7)](_0x4381c7,!![])){if(_0x2af040['waRTA'](_0x2af040[_0x170f27(0x28c)],_0x2af040[_0x170f27(0x163)]))_0x2b1556=_0x4a0da4[_0x5afb56[_0x170f27(0x18a)]];else throw new Error(_0x170f27(0x1f8)+_0x50715f+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}else _0x2af040[_0x170f27(0x251)](_0x17e2f3,_0x185d2c[_0x170f27(0x284)]);}else{const _0x166e67={};_0x166e67[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x166e67[_0x170f27(0x27d)]=_0x2af040[_0x170f27(0x2b3)],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x166e67),logger[_0x170f27(0x246)](_0x2af040['aUAdp']);const _0x52fc4d=_0x2af040[_0x170f27(0x294)](_0x407cc7,null)&&_0x2af040[_0x170f27(0x1a7)](_0x407cc7,undefined),_0x2bcd17=_0x2af040[_0x170f27(0x2cd)](_0x2c2c3c,null)&&_0x2af040[_0x170f27(0x1db)](_0x2c2c3c,undefined)&&_0x2af040['YjVvc'](_0x2c2c3c[_0x170f27(0x135)],0x0);if(_0x52fc4d){_0x2af040[_0x170f27(0x12c)](_0x2bcd17,![])&&(_0x52088f=_0x2af040[_0x170f27(0x1e2)],await _0x2af040[_0x170f27(0x2c9)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040['IIcUk'],_0x2af040[_0x170f27(0x1a1)],_0x2af040['HUatN']),logger[_0x170f27(0x164)](_0x52088f),process[_0x170f27(0x1c8)](0x1));const _0x17456b=await _0x51627e[_0x170f27(0x166)](_0x407cc7);_0x2af040[_0x170f27(0x180)](_0x17456b,![])?(_0x52088f=_0x2af040[_0x170f27(0x155)],await _0x2af040[_0x170f27(0x24f)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040['IIcUk'],_0x2af040[_0x170f27(0x1b4)],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process['exit'](0x1)):logger[_0x170f27(0x246)](_0x170f27(0x2ad)+_0x407cc7+'\x20');const _0x3ae4cb=await _0x51627e[_0x170f27(0x29c)](_0x2c2c3c,_0x407cc7);_0x2af040[_0x170f27(0x203)](_0x3ae4cb[0x0],![])?(_0x52088f=_0x170f27(0x1a9)+JSON[_0x170f27(0x12a)](_0x3ae4cb[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x407cc7+_0x170f27(0x226),await _0x2af040[_0x170f27(0x2c9)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x176)],_0x2af040[_0x170f27(0x26c)],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process[_0x170f27(0x1c8)](0x1)):logger[_0x170f27(0x246)](_0x170f27(0x1fc)+JSON[_0x170f27(0x12a)](_0x2c2c3c)+'\x20'),[_0x407cc7,_0x2c2c3c]=await _0x51627e['setupNewCluster'](_0x407cc7,_0x2c2c3c);}else{const _0x13cd2d=_0x2af040[_0x170f27(0x1b1)]['split']('|');let _0x1debdb=0x0;while(!![]){switch(_0x13cd2d[_0x1debdb++]){case'0':logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x273)]);continue;case'1':[_0x407cc7,_0x2c2c3c]=await _0x51627e[_0x170f27(0x249)](_0x407cc7,_0x2c2c3c);continue;case'2':const _0x3155ed={};_0x3155ed[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x3155ed[_0x170f27(0x27d)]=_0x2af040[_0x170f27(0x273)],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x3155ed);continue;case'3':logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x167)]);continue;case'4':const _0x1da6a2={};_0x1da6a2[_0x170f27(0x1e1)]=WS_EVENTS['LOG'],_0x1da6a2['message']=_0x2af040[_0x170f27(0x167)],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x1da6a2);continue;}break;}}}}_0x5afe1c&&_0x2af040[_0x170f27(0x188)](_0x23689a,AZURE)&&(await _0x51627e[_0x170f27(0x16c)](),await _0x51627e[_0x170f27(0x293)]());const [_0x588717,_0x16ac74,_0x1192c5,_0x26d8fb,_0x2133af,_0x2717ae,_0x39def6]=await _0x2af040[_0x170f27(0x254)](createK8sClient,_0x51627e,_0x46df7a['skipTlsCertVerify']);_0x2af040[_0x170f27(0x20c)](_0x5afe1c,![])&&_0x2af040[_0x170f27(0x2bc)](_0x23689a,AWS)&&(global_registry[_0x170f27(0x1b6)]=!![],_0x1de9f6=await _0x51627e['setupAutoscaler'](_0x588717,_0x46df7a));if(_0x2af040[_0x170f27(0x2da)](_0x5afe1c,![])&&global_registry[_0x170f27(0x27b)])try{await _0x51627e[_0x170f27(0x165)](_0x2717ae,_0x39def6,_0x46df7a,_0x407cc7,_0x2c2c3c);const _0x23c8f1={};_0x23c8f1[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x23c8f1[_0x170f27(0x27d)]=_0x2af040['nHDJG'],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x23c8f1);!await _0x2af040[_0x170f27(0x254)](namespaceExists,_0x588717,global_registry[_0x170f27(0x2d3)])&&await _0x2af040[_0x170f27(0x234)](createNamespace,_0x588717,global_registry['hubHaNameSpace']);logger[_0x170f27(0x246)](_0x2af040['kZGJL']);let _0x1c0e8f=await fs['readFileAsync'](path[_0x170f27(0x29b)](__dirname,_0x2af040['LwJlj'],_0x2af040[_0x170f27(0x24e)],_0x2af040[_0x170f27(0x2b6)],_0x2af040['OoGXs']),_0x2af040[_0x170f27(0x24b)]);_0x1c0e8f=_0x1c0e8f[_0x170f27(0x1e4)](/<RedisClientPassword>/g,_0x2af040[_0x170f27(0x17e)](encodeBase64,global_registry[_0x170f27(0x174)])),_0x1c0e8f=_0x1c0e8f['replace'](/<KafkaClientPassword>/g,_0x2af040[_0x170f27(0x17e)](encodeBase64,global_registry[_0x170f27(0x16b)])),_0x1c0e8f=_0x1c0e8f[_0x170f27(0x1e4)](/<BstackUsername>/g,_0x2af040[_0x170f27(0x17e)](encodeBase64,global_registry[_0x170f27(0x148)])),_0x1c0e8f=_0x1c0e8f[_0x170f27(0x1e4)](/<BstackAccessKey>/g,_0x2af040[_0x170f27(0x17b)](encodeBase64,global_registry[_0x170f27(0x229)]));const _0x10e1cc=yaml[_0x170f27(0x136)](_0x1c0e8f);await _0x2af040[_0x170f27(0x240)](kubeApply,_0x10e1cc,_0x39def6),logger['info'](_0x2af040['aUDbk']);let _0x218194=_0x2af040['jxOAB'];if(_0x2af040[_0x170f27(0x188)](_0x23689a,AZURE))_0x218194=_0x2af040['GPWQP'];else _0x2af040[_0x170f27(0x20c)](_0x23689a,GCP)&&(_0x218194=_0x2af040[_0x170f27(0x1f1)]);logger['info'](_0x2af040['uTdEY']);let _0x1b2405=await fs[_0x170f27(0x280)](path['join'](__dirname,_0x2af040[_0x170f27(0x2a2)],_0x2af040['tzXOu'],_0x2af040['JjOtO'],_0x2af040[_0x170f27(0x2c3)]),_0x2af040[_0x170f27(0x24b)]);_0x1b2405=_0x1b2405[_0x170f27(0x1e4)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x1b2405=_0x1b2405[_0x170f27(0x1e4)](/<StorageClassName>/g,_0x218194);const _0x54207a=yaml[_0x170f27(0x136)](_0x1b2405);await _0x2af040[_0x170f27(0x234)](kubeApply,_0x54207a,_0x39def6),logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x1ba)]),logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x283)]);let _0xcc5c69=await fs[_0x170f27(0x280)](path[_0x170f27(0x29b)](__dirname,_0x2af040[_0x170f27(0x2a2)],_0x2af040['tzXOu'],_0x2af040[_0x170f27(0x2b6)],_0x2af040[_0x170f27(0x190)]),_0x2af040[_0x170f27(0x24b)]);_0xcc5c69=_0xcc5c69['replace'](/<HubHaNameSpace>/g,global_registry[_0x170f27(0x2d3)]),_0xcc5c69=_0xcc5c69[_0x170f27(0x1e4)](/<StorageClassName>/g,_0x218194);const _0x26171d=yaml[_0x170f27(0x136)](_0xcc5c69);await _0x2af040['tssQm'](kubeApply,_0x26171d,_0x39def6),logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x1d8)]),logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x2c2)]);let _0x1d6349=await fs['readFileAsync'](path[_0x170f27(0x29b)](__dirname,_0x2af040[_0x170f27(0x2a2)],_0x2af040[_0x170f27(0x24e)],_0x2af040[_0x170f27(0x2b6)],_0x2af040[_0x170f27(0x238)]),_0x2af040['NYnno']);_0x1d6349=_0x1d6349[_0x170f27(0x1e4)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x1d6349=_0x1d6349[_0x170f27(0x1e4)](/<HubHaNameSpace>/g,global_registry[_0x170f27(0x2d3)]);const _0x241ca7=yaml[_0x170f27(0x136)](_0x1d6349);_0x2af040['jCmVv'](global_registry[_0x170f27(0x25a)],AZURE)&&(_0x241ca7[0x0]['spec']['template']['metadata'][_0x170f27(0x260)]={'azure.workload.identity/use':_0x2af040[_0x170f27(0x2c8)],..._0x241ca7[0x0][_0x170f27(0x288)][_0x170f27(0x1f9)][_0x170f27(0x2b4)][_0x170f27(0x260)]},_0x241ca7[0x0][_0x170f27(0x288)][_0x170f27(0x1f9)]['spec']['serviceAccountName']=_0x2af040[_0x170f27(0x219)]);await _0x2af040[_0x170f27(0x299)](kubeApply,_0x241ca7,_0x39def6),logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x150)]);const _0x455ef6={};_0x455ef6['type']=WS_EVENTS[_0x170f27(0x1e8)],_0x455ef6['message']=_0x2af040[_0x170f27(0x1a5)],webSocketUtils['sendEventToBackend'](_0x2c678f,_0x455ef6),logger['info'](_0x2af040[_0x170f27(0x28a)]);}catch(_0x5d1d38){const _0x4b2dcc=_0x2af040['DizBG'][_0x170f27(0x1b2)]('|');let _0x512cf8=0x0;while(!![]){switch(_0x4b2dcc[_0x512cf8++]){case'0':await _0x51627e[_0x170f27(0x1ee)](_0x588717,global_registry[_0x170f27(0x2a5)]);continue;case'1':_0x52088f='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x5d1d38[_0x170f27(0x27d)];continue;case'2':logger[_0x170f27(0x164)](_0x52088f);continue;case'3':process['exit'](0x1);continue;case'4':await _0x2af040[_0x170f27(0x13b)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x176)],_0x2af040['OMppK'],_0x2af040[_0x170f27(0x2b8)]);continue;}break;}}try{_0x54be75=_0x2af040[_0x170f27(0x17b)](kebabCase,_0x5bc66e),logger['info'](_0x2af040[_0x170f27(0x139)]);const _0xc02f08={};_0xc02f08[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0xc02f08[_0x170f27(0x27d)]=_0x2af040[_0x170f27(0x139)],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0xc02f08);if(_0x2af040['EUFkX'](_0x54be75,_0x2af040[_0x170f27(0x219)])){const _0x577feb={};_0x577feb['createdBy']=_0x2af040[_0x170f27(0x19c)],_0x577feb[_0x170f27(0x1ac)]=_0x2af040[_0x170f27(0x19c)];const _0x31404d={};_0x31404d[_0x170f27(0x2b5)]=_0x54be75,_0x31404d[_0x170f27(0x242)]=_0x577feb;const _0x464b06={};_0x464b06[_0x170f27(0x2b4)]=_0x31404d;const _0x5bb5e4=_0x464b06,_0x3b5546={};_0x3b5546['body']=_0x5bb5e4,await _0x588717['createNamespace'](_0x3b5546),logger['info'](_0x2af040['VcCrm']);}const _0x58c049={};_0x58c049['type']=WS_EVENTS[_0x170f27(0x1e8)],_0x58c049['message']=_0x2af040[_0x170f27(0x1f7)],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x58c049);const _0xfa2acb={};_0xfa2acb['type']=WS_EVENTS[_0x170f27(0x1e8)],_0xfa2acb[_0x170f27(0x27d)]=_0x2af040[_0x170f27(0x298)],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0xfa2acb),logger['info'](_0x2af040[_0x170f27(0x186)]);let _0x291988={};_0x2af040['fRodh'](_0x23689a,AZURE)&&(_0x291988={'clientId':await _0x51627e['getResourceClientId'](_0x170f27(0x22f)+_0x50715f)});await _0x2af040[_0x170f27(0x1bc)](addGridComponents,_0x588717,_0x16ac74,_0x1192c5,_0x26d8fb,_0x54be75,_0x50715f,_0x1de9f6,_0x2133af,_0x39def6,_0x291988),_0x52088f=_0x2af040[_0x170f27(0x241)],logger[_0x170f27(0x246)](_0x52088f);const _0x5c86f7={};_0x5c86f7[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x5c86f7[_0x170f27(0x27d)]=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x5c86f7),_0x52088f=_0x2af040[_0x170f27(0x227)],logger['info'](_0x52088f);const _0x39c013={};_0x39c013[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x39c013[_0x170f27(0x27d)]=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x39c013),await _0x2af040[_0x170f27(0x214)](waitForDeployment,_0x16ac74,_0x54be75,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x24a348=await _0x2af040['XZLcd'](getNamespaceUID,_0x588717,_0x54be75),_0x106d62=global_registry[_0x170f27(0x250)]?_0x2af040[_0x170f27(0x181)]:_0x2af040['byskp'],_0x55cfcb={};_0x55cfcb[_0x170f27(0x2b5)]=_0x106d62,_0x55cfcb[_0x170f27(0x271)]=_0x2af040[_0x170f27(0x21d)];const _0x256801=await _0x588717[_0x170f27(0x25c)](_0x55cfcb);let _0x26a990=_0x51627e[_0x170f27(0x281)](_0x256801)+'/'+_0x54be75,_0x127b44=_0x2af040[_0x170f27(0x256)];try{const _0x5aaf06=_0x170f27(0x217)+AG_API_URL+_0x170f27(0x286)+_0x24a348,_0x20cea8=await _0x2af040[_0x170f27(0x1cb)](got,_0x5aaf06,_0x5cdc30);(_0x2af040['waRTA'](_0x20cea8,null)||_0x2af040[_0x170f27(0x259)](_0x20cea8,undefined))&&(_0x52088f=_0x2af040[_0x170f27(0x14a)],await _0x2af040[_0x170f27(0x24f)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x176)],_0x2af040[_0x170f27(0x1f5)],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process[_0x170f27(0x1c8)](0x1));_0x2af040['SLTbW'](_0x20cea8[_0x170f27(0x2d5)],0x191)&&(_0x52088f=_0x2af040[_0x170f27(0x22a)],await _0x2af040[_0x170f27(0x239)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040['IIcUk'],_0x2af040[_0x170f27(0x258)],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process['exit'](0x1));_0x2af040['EUFkX'](_0x20cea8[_0x170f27(0x2d5)],0xc8)&&(_0x52088f=_0x170f27(0x16f)+JSON[_0x170f27(0x12a)](_0x20cea8),await _0x2af040[_0x170f27(0x239)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040['IIcUk'],_0x2af040[_0x170f27(0x2ce)],_0x2af040['HUatN']),logger[_0x170f27(0x164)](_0x52088f),process[_0x170f27(0x1c8)](0x1));const _0x458caa=JSON['parse'](_0x20cea8[_0x170f27(0x161)]);_0x458caa[_0x170f27(0x275)]&&(_0x26a990=_0x458caa[_0x170f27(0x275)],_0x127b44=_0x2af040[_0x170f27(0x15d)]),global_registry[_0x170f27(0x250)]&&(_0x127b44=_0x2af040['IhPuY']);}catch(_0x3b5c26){}_0x52088f='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x26a990+'\x20',logger[_0x170f27(0x246)](_0x52088f);const _0x4aff0b={};_0x4aff0b[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x4aff0b[_0x170f27(0x27d)]=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x4aff0b),_0x52088f=_0x170f27(0x1a0)+_0x127b44+_0x170f27(0x265)+_0x26a990+'/wd/hub',logger['info'](_0x52088f);const _0x14781c={};_0x14781c[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x14781c['message']=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x14781c);const _0x389b03={};_0x389b03[_0x170f27(0x1e1)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x389b03[_0x170f27(0x27d)]=_0x170f27(0x282)+_0x26a990,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x389b03),await webSocketUtils[_0x170f27(0x1cf)](0x7d0);}catch(_0x40e4c5){logger[_0x170f27(0x164)](_0x170f27(0x289)+_0x40e4c5+'\x20\x0a'+JSON['stringify'](_0x40e4c5[_0x170f27(0x231)]));if(_0x2af040[_0x170f27(0x203)](_0x5afe1c,![]))try{logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x141)]),await _0x2af040['yzwQX'](removeGridComponents,_0x588717,_0x16ac74,_0x1192c5,_0x26d8fb,_0x54be75),await _0x51627e[_0x170f27(0x1ee)](_0x588717,global_registry[_0x170f27(0x2a5)]);}catch(_0x50f1f7){logger[_0x170f27(0x164)](_0x170f27(0x23f)+_0x50f1f7+'\x20\x0a'+JSON[_0x170f27(0x12a)](_0x50f1f7[_0x170f27(0x231)]));}throw _0x40e4c5;}}catch(_0x717e81){const _0x4fdfe6='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x717e81+'\x20\x0a'+JSON[_0x170f27(0x12a)](_0x717e81['stack']);if(_0x2c678f){const _0x3f9b98={};_0x3f9b98[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x3f9b98[_0x170f27(0x27d)]=_0x4fdfe6,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x3f9b98,_0x2af040[_0x170f27(0x2b8)],!![]);}await webSocketUtils[_0x170f27(0x1cf)](0x7d0);const _0x5cf80c={};_0x5cf80c['error']=_0x4fdfe6,await _0x2af040['isvmZ'](sendInstrumentationEvent,_0x46df7a,_0x2af040[_0x170f27(0x176)],messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x1cc)],_0x5cf80c,_0x46df7a),logger[_0x170f27(0x164)](_0x4fdfe6);}process['exit'](0x0);};
1
+ const a9_0x559df8=a9_0x3e70;(function(_0x3ccade,_0xe081ed){const _0x35161c=a9_0x3e70,_0xdac511=_0x3ccade();while(!![]){try{const _0x169493=parseInt(_0x35161c(0x243))/0x1*(-parseInt(_0x35161c(0x2ae))/0x2)+parseInt(_0x35161c(0x39c))/0x3*(parseInt(_0x35161c(0x2c2))/0x4)+-parseInt(_0x35161c(0x262))/0x5*(parseInt(_0x35161c(0x1f9))/0x6)+parseInt(_0x35161c(0x2c6))/0x7+parseInt(_0x35161c(0x285))/0x8*(parseInt(_0x35161c(0x376))/0x9)+parseInt(_0x35161c(0x283))/0xa*(parseInt(_0x35161c(0x273))/0xb)+-parseInt(_0x35161c(0x210))/0xc;if(_0x169493===_0xe081ed)break;else _0xdac511['push'](_0xdac511['shift']());}catch(_0x281b54){_0xdac511['push'](_0xdac511['shift']());}}}(a9_0x4759,0x9c534));const fs=require('fs'),ws=require('ws'),path=require(a9_0x559df8(0x382)),yaml=require(a9_0x559df8(0x1fd)),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x559df8(0x34f)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x559df8(0x34c)),{logger}=require(a9_0x559df8(0x2b8)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x559df8(0x2a9)),{getCloudProviderObject}=require(a9_0x559df8(0x216)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x559df8(0x1ee)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x559df8(0x2ac)),{createK8sClient}=require(a9_0x559df8(0x34d)),{sendInstrumentationEvent}=require(a9_0x559df8(0x33a));function a9_0x3e70(_0x474dfc,_0x1404e8){const _0x4759e8=a9_0x4759();return a9_0x3e70=function(_0x3e7068,_0x37352b){_0x3e7068=_0x3e7068-0x1ed;let _0x137bfa=_0x4759e8[_0x3e7068];return _0x137bfa;},a9_0x3e70(_0x474dfc,_0x1404e8);}function a9_0x4759(){const _0xcc8e9d=['updateClusterAlreadyPresent','hcCiv','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','130bmjiQh','xqlbR','17656fXraNy','get-grid-url-null-response','UBfxO','Subnets:\x20','Browserstack','Skip\x20insecure\x20cert\x20verification.','WajcO','KEdtS','NQJdH','WYTAE','tjhgD','alreadyPresent','aihbZ','exit','body','BGlis','fchyM','BwOZW','Created\x20Hub\x20HA\x20resources','nGnhZ','JXtHy','info','sLoBe','Cluster:\x20','hub-ha-deployments-failed','eZNIM','Adding\x20Redis\x20deployment...','Ahkfm','JTpWj','bKokM','nEMlF','kafkaPassword','MeVzz','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Enabling\x20Hub\x20HA\x20flow','Oqkom','../../utils/utilityMethods','Cluster\x20','CRexR','../../utils/gridComponents','EUZct','2836zjrwbx','clusterName','MfEBU','command','Hhnkv','securityGroups','hoysA','clusterAutoUpgrade','debug','grid-profile','../../config/logger','hubVersion','Fwitg','bjrZN','hYUyV','cluster-autoupgrade','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','tZRbq','DjvrY','dMqMF','119236aPUjyF','browserstack','labels','hub-ha','7478317DDMoza','HWCyd','OWuha','pre-spawned-invalid-subnets','Tmmlg','instanceType','bitnami-redis.yaml','\x20using\x20\x27','CbBPx','oUfkA','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','CLI\x20run\x20finished:\x20','ByaiP','MljTm','toLowerCase','fQhty','XzKhR','requestId','dzcWD','BPCFr','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','YgEpp','createNamespace','Creating\x20Hub\x20HA\x20resources','\x20are\x20not\x20present\x20in\x20VPC:\x20','MueLZ','YIwuK','XPaBM','CwoAL','MJafw','pIhvD','jTYUs','wJyeV','mloxV','create','LnwaQ','MDUZX','xLQgt','Adding\x20Turboscale\x20Uploader\x20deployment...','Flag\x20to\x20enable\x20Hub\x20HA','serviceAccountName','baVrB','bitnami-kafka.yaml','password','OFSCJ','PQDEx','xSzyA','ykQfW','readNamespacedService','6|12|8|14|10|0|1|2|13|4|9|15|3|11|5|7','sendResourceDataToHST','UUmoZ','tPOcY','message','https://','CLI_RUN_FINISHED','XVoqn','bJPZq','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','LcNxC','readFileAsync','QASXJ','asNqD','Grid\x20profile\x20fetched\x20from\x20backend','jaIRb','Spawning\x20the\x20grid\x20','WbCZt','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','HybYL','Wteon','INFO','type','spec','managedBy','length','BMxGl','JjyYh','ingress-nginx','dNtRv','VPHPM','nDpIB','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','enableHubHa','lCvqn','3|7|6|2|1|4|5|0|8','isClusterPresent','dkNgM','minNodes','builder','oUjvl','maxNodes','createdBy','route53','argv','OWPwG','ZBZvK','skip-tls-cert-verify','Found\x20Subnets:\x20','uMvnd','isSubnetsValid','JpvBT','lYfCa','newCluster','region','Grid\x20spawned\x20on\x20the\x20cluster','\x20in\x20existing\x20cluster\x20\x27','ingress-nginx-controller','gjHSe','create-grid-checks-non-200','aWGRF','pre-spawned-subnets-not-selected','redisPassword','Will\x20be\x20spawning\x20the\x20grid\x20','CkoOM','turboscale-managed-identity-','iKNWM','../../utils/instrumentationUtils','gridName','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','zoBRo','AoZaF','JhTqg','eBYeS','hubHa','ZtDno','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','string','TJZSX','/packages/cli/create-grid-checks','UdiSd','wutTb','browserVersion','yERix','sXcgq','../../utils/webSocketUtils','../../utils/createk8sClient','get-grid-url-non-200','got','help','gridProfileId','grid-name','lBdsp','name','vsSRI','SDcmE','Hxqpe','GYOTf','true','RKbXL','options','LOG','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','BBOOY','templates','tsbcx','vhAnJ','desc','sMJmp','Deleting\x20the\x20CloudFormation\x20Stacks','awcXv','Spawning\x20Grid\x20on\x20the\x20Cluster','uploaderImageVersion','Adding\x20Websocket\x20listeners','FtbpK','handler','Ewmwi','defaultGridProfile','Grid\x20can\x20be\x20accessed\x20at:\x20','join','ApSHR','gridProfile','SKTfD','3|0|4|1|2','cloudProvider','tCwlx','ERROR','4734uFMnRk','Jydzy','NmGfK','existsSync','uploaderVersion','oJrwZ','loadAll','premium-rwo','Added\x20Kafka\x20deployment.','DDBdw','wzIUw','Spawning\x20grid\x20on\x20to\x20the\x20cluster','path','SKqtx','CeJid','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','init-not-called','metadata','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','kilgx','error','PJAKf','boolean','iIjrR','BBamV','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','isVPCPresent','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','annotations','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','wUxAz','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','CHAdH','getGridHostname','sWmrh','MGcCp','concurrency','hubHaNameSpace','15ymshEy','JAJen','clusterRegion','wEtbX','XdfnS','Found\x20VPC:\x20','ZNNPA','mJgza','zzyvr','tqKPE','LrIkg','private-grid','MEbNo','pMEgn','prespawned-cluster-args-not-passed','tCBJR','koyeq','XWOlm','Cluster\x20created\x20successfully','clusterAutoupgrade','statusCode','bstackUsername','nSazz','../../config/constants','Added\x20Redis\x20deployment.','vpc','connectionTimeout','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','RWlix','create-grid-checks-invalid-profile','mjTtH','AJLYy','VFLOs','isNewAWSCluster','60CxSHAM','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','wHlKn','includes','js-yaml','aYcdN','FSgNL','ydXFu','jucjG','TfpUb','turboscale-uploader.yaml','XJRvs','epilogue','grid','Adding\x20Kafka\x20deployment...','cluster-name','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','DUiZJ','Epyd5nXbRK','create-grid-checks-grid-already-exists','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','OvNJt','default','7009800RcZRTJ','://','plFom','gIuvz','ddlmK','TRfCh','../../cloudproviders/utils','TYdWC','description','template','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','jkjxq','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.','parse','aIlOQ','username','aTMbN','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','chcaW','isPrivateGrid','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','usage','egZiM','NVpZg','pre-spawned-invalid-vpc','YoFhJ','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','XwaBs','Added\x20Turboscale\x20Uploader\x20deployment.','KvXmp','Added\x20Secret\x20Mapping','replace','tAjBh','<UsernamePlaceholder>','JNaFl','cloud-provider','gridProfiles','Adding\x20Secret\x20Mapping','stringify','kafkaUploader','KPBCf','NCOUM','efs-csi','QDaeW','DBFAV','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','FoJXh','aqlXr','setupNewCluster','WUQnl','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','283dbHvfe','gSBEn','ZCgkW','WKjTg','EoFMN','readFileSync','wTRAE','RIoKk','skipTlsCertVerify','KHizt','GMLgm','rTbFh','get-grid-url-auth-failed','oYAGt','oGtek','sendEventToBackend','SDIdK','s3bucket','PNJOm','cmWbL','dmHIT','ofbTm','ywNpT','split','lDHmr','GET','wFWvy','VKwVZ','auOCy','GTCaZ','MEsTh','520930shUHWj','IxxnC','Create\x20a\x20private/public\x20grid.','GoFdF','YlAKt','setupHubHa','WebSocket','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','zLTWP','XTuWI','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','uOufz','UOiLQ','user','delay','ZMVUP','stack','244838zVkrMK','0|4|2|3|1','uIIWi','CLI_RUN_STARTED','deleteCluster','yIkkx','KnkCQ','privateGrid','nYXbp','ZZpWy','IfbCC','bstackAccesskey'];a9_0x4759=function(){return _0xcc8e9d;};return a9_0x4759();}exports[a9_0x559df8(0x2b1)]=a9_0x559df8(0x206),exports[a9_0x559df8(0x362)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x559df8(0x31e)]=function(_0x315b89){const _0x3989f7=a9_0x559df8,_0x446e5e={};_0x446e5e[_0x3989f7(0x20a)]=_0x3989f7(0x221),_0x446e5e[_0x3989f7(0x25b)]='string',_0x446e5e[_0x3989f7(0x315)]=_0x3989f7(0x385),_0x446e5e[_0x3989f7(0x358)]=_0x3989f7(0x242),_0x446e5e[_0x3989f7(0x3a4)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x446e5e['jTYUs']=_0x3989f7(0x391),_0x446e5e[_0x3989f7(0x2fe)]=_0x3989f7(0x264),_0x446e5e[_0x3989f7(0x261)]='Skip\x20insecure\x20cert\x20verification.',_0x446e5e[_0x3989f7(0x2b4)]=_0x3989f7(0x38c),_0x446e5e[_0x3989f7(0x202)]='Flag\x20to\x20enable\x20Hub\x20HA',_0x446e5e[_0x3989f7(0x271)]='Flag\x20to\x20enable\x20cluster\x20auto-upgrade',_0x446e5e['xSzyA']=_0x3989f7(0x350);const _0x1f0ef8=_0x446e5e,_0x32e886={};_0x32e886['description']=_0x1f0ef8[_0x3989f7(0x20a)],_0x32e886['type']=_0x1f0ef8[_0x3989f7(0x25b)];const _0x4b214a={};_0x4b214a[_0x3989f7(0x218)]=_0x1f0ef8['VPHPM'],_0x4b214a[_0x3989f7(0x30d)]=_0x1f0ef8[_0x3989f7(0x25b)];const _0x593539={};_0x593539[_0x3989f7(0x218)]=_0x1f0ef8[_0x3989f7(0x358)],_0x593539[_0x3989f7(0x30d)]=_0x1f0ef8[_0x3989f7(0x25b)];const _0xa0516d={};_0xa0516d['description']=_0x1f0ef8['zzyvr'],_0xa0516d[_0x3989f7(0x30d)]=_0x1f0ef8['lDHmr'];const _0x35d592={};_0x35d592['description']=_0x1f0ef8[_0x3989f7(0x2e5)],_0x35d592[_0x3989f7(0x30d)]=_0x1f0ef8[_0x3989f7(0x25b)];const _0x405a31={};_0x405a31['description']=_0x1f0ef8[_0x3989f7(0x2fe)],_0x405a31['type']=_0x1f0ef8[_0x3989f7(0x25b)];const _0x44edd3={};_0x44edd3[_0x3989f7(0x218)]=_0x1f0ef8[_0x3989f7(0x261)],_0x44edd3[_0x3989f7(0x30d)]=_0x1f0ef8[_0x3989f7(0x2b4)],_0x44edd3['default']=![];const _0x2c1803={};_0x2c1803[_0x3989f7(0x218)]=_0x1f0ef8[_0x3989f7(0x202)],_0x2c1803[_0x3989f7(0x30d)]=_0x1f0ef8[_0x3989f7(0x2b4)],_0x2c1803[_0x3989f7(0x20f)]=![];const _0x4b5f9e={};_0x4b5f9e[_0x3989f7(0x218)]=_0x1f0ef8['ZMVUP'],_0x4b5f9e[_0x3989f7(0x30d)]=_0x1f0ef8['hoysA'],_0x4b5f9e['default']=![];const _0x3bb955={};return _0x3bb955[_0x3989f7(0x352)]=_0x32e886,_0x3bb955[_0x3989f7(0x2b7)]=_0x4b214a,_0x3bb955[_0x3989f7(0x208)]=_0x593539,_0x3bb955[_0x3989f7(0x233)]=_0xa0516d,_0x3bb955[_0x3989f7(0x32d)]=_0x35d592,_0x3bb955[_0x3989f7(0x3a7)]=_0x405a31,_0x3bb955[_0x3989f7(0x326)]=_0x44edd3,_0x3bb955[_0x3989f7(0x2c5)]=_0x2c1803,_0x3bb955[_0x3989f7(0x2bd)]=_0x4b5f9e,_0x315b89[_0x3989f7(0x225)](HELP_HEADER_MESSAGE[_0x3989f7(0x2e8)])[_0x3989f7(0x205)](HELP_FOOTER_MESSAGE)[_0x3989f7(0x35b)](_0x3bb955)[_0x3989f7(0x350)](_0x1f0ef8[_0x3989f7(0x2f4)])[_0x3989f7(0x323)];},exports[a9_0x559df8(0x36a)]=async function(_0x4046e7){const _0x93f400=a9_0x559df8,_0x40a7c5={'nEMlF':'https','RKbXL':_0x93f400(0x359),'FtbpK':_0x93f400(0x20f),'Tmmlg':_0x93f400(0x38f),'wutTb':function(_0x144851,_0x197f7c){return _0x144851(_0x197f7c);},'vsSRI':_0x93f400(0x2f7),'eBYeS':function(_0x4d46f1,_0x597920,_0x362474,_0x243b17,_0x381e41,_0x58c8a0,_0x52ff31,_0x30835c,_0x142a29,_0x165ce6,_0x16d730,_0x475e8c,_0x3774fb){return _0x4d46f1(_0x597920,_0x362474,_0x243b17,_0x381e41,_0x58c8a0,_0x52ff31,_0x30835c,_0x142a29,_0x165ce6,_0x16d730,_0x475e8c,_0x3774fb);},'aIlOQ':function(_0x5e42f1,_0x5bfcfb){return _0x5e42f1!==_0x5bfcfb;},'BPCFr':function(_0x4b4a31,_0x1e8360){return _0x4b4a31(_0x1e8360);},'dNtRv':_0x93f400(0x37d),'nYXbp':'warn','NCOUM':function(_0x5af800,_0x4d7fba){return _0x5af800===_0x4d7fba;},'dzcWD':_0x93f400(0x38a),'DOXzt':_0x93f400(0x221),'JTpWj':_0x93f400(0x344),'oRvhP':_0x93f400(0x385),'aqlXr':_0x93f400(0x242),'rAeTP':_0x93f400(0x309),'ddlmK':_0x93f400(0x391),'MueLZ':_0x93f400(0x264),'EoFMN':_0x93f400(0x28a),'CbBPx':_0x93f400(0x38c),'QASXJ':_0x93f400(0x2ed),'tjhgD':_0x93f400(0x269),'XPaBM':'help','XwaBs':'azurefile-csi-premium','Jydzy':'3|5|8|0|1|2|6|4|7','GoFdF':'CLI\x20run\x20started','DsGka':_0x93f400(0x274),'oGtek':_0x93f400(0x2a7),'HybYL':'UkRNzNYCBU','Ahkfm':_0x93f400(0x20b),'MJafw':_0x93f400(0x2c3),'WYTAE':'http','LJidQ':function(_0x29c795){return _0x29c795();},'SKTfD':function(_0x17f126){return _0x17f126();},'NQJdH':function(_0x1dfbc3,_0x315bf2){return _0x1dfbc3!==_0x315bf2;},'oUjvl':_0x93f400(0x3a2),'iIjrR':_0x93f400(0x34a),'aeOaS':_0x93f400(0x1f2),'UUmoZ':function(_0x43a063,_0xb8e381,_0x5d7d39,_0x530b31,_0x3bdabb,_0xa4b55e,_0x5c46c2){return _0x43a063(_0xb8e381,_0x5d7d39,_0x530b31,_0x3bdabb,_0xa4b55e,_0x5c46c2);},'OvNJt':'create-grid-called','TJZSX':_0x93f400(0x386),'wEtbX':function(_0x3716cb){return _0x3716cb();},'uMvnd':_0x93f400(0x231),'plFom':'<PasswordPlaceholder>','hYUyV':_0x93f400(0x368),'JNaFl':_0x93f400(0x284),'iKNWM':_0x93f400(0x389),'bNtRg':function(_0x574291,_0x314665){return _0x574291===_0x314665;},'tCBJR':_0x93f400(0x2a2),'ZCgkW':_0x93f400(0x388),'jaIRb':function(_0x37aa3b,_0x55accd,_0x460293,_0x77e0eb,_0xcb7ae1,_0x3ed5da,_0x51ca38,_0x276ae2){return _0x37aa3b(_0x55accd,_0x460293,_0x77e0eb,_0xcb7ae1,_0x3ed5da,_0x51ca38,_0x276ae2);},'Hxqpe':_0x93f400(0x3aa),'Ewmwi':function(_0x273a8e,_0x3ffef6){return _0x273a8e===_0x3ffef6;},'pIhvD':_0x93f400(0x26e),'PQDEx':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','CRexR':'non-aws-azure-cluster','wJyeV':function(_0x1acbf3,_0x3fac9a){return _0x1acbf3===_0x3fac9a;},'NVpZg':'LXWme','ywNpT':'RHkRq','AJLYy':function(_0x3ce5fd,_0x116a7a,_0x454a08,_0x442505,_0x24cd65,_0x268f28,_0x54079){return _0x3ce5fd(_0x116a7a,_0x454a08,_0x442505,_0x24cd65,_0x268f28,_0x54079);},'tPOcY':function(_0x1167f4,_0x5ee059){return _0x1167f4===_0x5ee059;},'YgEpp':_0x93f400(0x201),'tAjBh':_0x93f400(0x2ef),'tZRbq':function(_0x5a9c98,_0x244ca5){return _0x5a9c98===_0x244ca5;},'KEdtS':'eTrMc','wzIUw':_0x93f400(0x23c),'WKjTg':_0x93f400(0x25c),'KHizt':function(_0x3bc661,_0x53c4eb,_0xa36b61){return _0x3bc661(_0x53c4eb,_0xa36b61);},'LcNxC':_0x93f400(0x25f),'DjvrY':function(_0x2f360b,_0x5f4f63){return _0x2f360b===_0x5f4f63;},'chcaW':_0x93f400(0x2ff),'xuhhD':_0x93f400(0x249),'Wteon':function(_0x239ed2,_0x356993){return _0x239ed2===_0x356993;},'fchyM':'oRZVg','dkNgM':_0x93f400(0x383),'cmWbL':_0x93f400(0x2a6),'zBNDl':'create-grid-checks-null-response','awcXv':function(_0x551a32,_0x23e8eb){return _0x551a32===_0x23e8eb;},'VKwVZ':function(_0x3cc8e5,_0x531f30){return _0x3cc8e5===_0x531f30;},'aihbZ':'SAsHD','CkoOM':_0x93f400(0x21a),'sXcgq':'create-grid-checks-auth-failed','nDpIB':function(_0xc5124,_0x515bdf){return _0xc5124!==_0x515bdf;},'ZZpWy':function(_0x17e6c9,_0x38ab51){return _0x17e6c9!==_0x38ab51;},'jkjxq':_0x93f400(0x2ba),'uOufz':_0x93f400(0x278),'ofbTm':function(_0x4889db,_0x5d0c8a,_0x256ccb,_0x3a0ea9,_0x42b00a,_0x5a3b66,_0x45ecf7,_0x17e0f7){return _0x4889db(_0x5d0c8a,_0x256ccb,_0x3a0ea9,_0x42b00a,_0x5a3b66,_0x45ecf7,_0x17e0f7);},'VgVTo':_0x93f400(0x332),'uIIWi':_0x93f400(0x305),'sLoBe':function(_0x2dc591,_0x43eb2c){return _0x2dc591===_0x43eb2c;},'oUfkA':'VhHzx','cQsUj':'FUvus','sWmrh':_0x93f400(0x20c),'dGPkU':function(_0x3632b9,_0x3d53a8){return _0x3632b9===_0x3d53a8;},'OFSCJ':_0x93f400(0x260),'JpvBT':_0x93f400(0x331),'JXtHy':function(_0x152681,_0x2cf454){return _0x152681===_0x2cf454;},'WUQnl':'ZpmSl','YcWRs':_0x93f400(0x372),'eZNIM':function(_0x2f5499,_0x14997b){return _0x2f5499===_0x14997b;},'ZtDno':function(_0x1c4b8d,_0x4d7dbf){return _0x1c4b8d===_0x4d7dbf;},'JhTqg':function(_0x47d6e2,_0xcd7094){return _0x47d6e2===_0xcd7094;},'lCvqn':_0x93f400(0x27d),'sDtAZ':_0x93f400(0x384),'XdfnS':_0x93f400(0x378),'xLQgt':_0x93f400(0x209),'EUZct':_0x93f400(0x1f4),'OWPwG':function(_0x48e526,_0x195ca8){return _0x48e526===_0x195ca8;},'ykQfW':function(_0x388506,_0x3f2bc0){return _0x388506===_0x3f2bc0;},'pMEgn':_0x93f400(0x38e),'IxxnC':function(_0x13fdd8,_0x2bffd6){return _0x13fdd8===_0x2bffd6;},'tsbcx':'tbCiM','VFLOs':function(_0x4d18c4,_0x2326bd){return _0x4d18c4!==_0x2326bd;},'dmHIT':_0x93f400(0x347),'KPBCf':function(_0xf51175,_0x55d92a){return _0xf51175===_0x55d92a;},'WajcO':_0x93f400(0x394),'MEbNo':_0x93f400(0x204),'gSBEn':function(_0x40c4df,_0x3e00d3){return _0x40c4df!==_0x3e00d3;},'oJrwZ':function(_0x3fa3ef,_0x4047f8){return _0x3fa3ef===_0x4047f8;},'rTbFh':'NLIdV','IHPzb':_0x93f400(0x396),'Hhnkv':_0x93f400(0x215),'ApSHR':'hOUqc','zPDbq':_0x93f400(0x2ea),'Bbrxo':'XPzKE','BMxGl':_0x93f400(0x31a),'XzKhR':function(_0x74f2e8,_0x4539e6,_0x5e31ca,_0x951fd3,_0x2b032d,_0x249a69,_0x54b48c){return _0x74f2e8(_0x4539e6,_0x5e31ca,_0x951fd3,_0x2b032d,_0x249a69,_0x54b48c);},'JjyYh':_0x93f400(0x1fe),'YlAKt':'stKFc','DDBdw':function(_0xdb397f,_0x2edcb7){return _0xdb397f===_0x2edcb7;},'gIuvz':function(_0x5e59d6,_0x3148f8){return _0x5e59d6!==_0x3148f8;},'SDIdK':_0x93f400(0x1f3),'YIwuK':_0x93f400(0x2b0),'RRyVH':_0x93f400(0x22d),'nGnhZ':_0x93f400(0x23d),'CwoAL':function(_0x1d90f4,_0x551933){return _0x1d90f4!=_0x551933;},'KCuUp':function(_0x41b775,_0x2bce83){return _0x41b775!=_0x2bce83;},'zLTWP':function(_0x4c85e0,_0x47e409){return _0x4c85e0>_0x47e409;},'PNJOm':_0x93f400(0x282),'SDcmE':function(_0x695eac,_0x4c748d,_0x172e42,_0x573b6e,_0xe2357e,_0x553e8d,_0x278112,_0x1b6597){return _0x695eac(_0x4c748d,_0x172e42,_0x573b6e,_0xe2357e,_0x553e8d,_0x278112,_0x1b6597);},'JAJen':_0x93f400(0x334),'oVtun':_0x93f400(0x26c),'MDnHC':_0x93f400(0x228),'YoFhJ':function(_0x212446,_0x31f01b,_0x1bf21d,_0x1ba56d,_0x3493f7,_0x20bb8a,_0x1a5323,_0x4be13a){return _0x212446(_0x31f01b,_0x1bf21d,_0x1ba56d,_0x3493f7,_0x20bb8a,_0x1a5323,_0x4be13a);},'LnwaQ':_0x93f400(0x2c9),'hxqEx':'3|0|2|4|1','zoBRo':_0x93f400(0x21c),'lYfCa':_0x93f400(0x3ae),'LrIkg':function(_0x145e54,_0xf908b2){return _0x145e54===_0xf908b2;},'tCwlx':function(_0x27b2c4,_0x92fba1,_0xdedbd){return _0x27b2c4(_0x92fba1,_0xdedbd);},'vrQbG':_0x93f400(0x2dd),'koyeq':function(_0x14be45,_0x269faa,_0x25a8cc){return _0x14be45(_0x269faa,_0x25a8cc);},'wFWvy':function(_0x5307c7,_0x4fdc1c,_0x4e0809){return _0x5307c7(_0x4fdc1c,_0x4e0809);},'mJgza':_0x93f400(0x235),'FoJXh':'../..','OWuha':_0x93f400(0x35f),'UBfxO':'hubharesources','XTuWI':'browserstack-secret.yaml','GMLgm':'utf-8','BBOOY':function(_0x1f86e7,_0x3bf52c,_0x40cd08){return _0x1f86e7(_0x3bf52c,_0x40cd08);},'vFfIm':_0x93f400(0x22e),'RIoKk':_0x93f400(0x23a),'qMOgv':function(_0x34a1e3,_0x3345dd){return _0x34a1e3===_0x3345dd;},'uWVmP':function(_0x338671,_0x4bd5d8){return _0x338671===_0x4bd5d8;},'PJAKf':_0x93f400(0x29f),'BNFRR':_0x93f400(0x2cc),'FSgNL':function(_0x1f181e,_0x2e60fd,_0x1ee483){return _0x1f181e(_0x2e60fd,_0x1ee483);},'mjTtH':_0x93f400(0x1ef),'MljTm':_0x93f400(0x207),'oYAGt':_0x93f400(0x2f0),'WbCZt':_0x93f400(0x37e),'HWCyd':_0x93f400(0x2ec),'IQhyl':_0x93f400(0x203),'OxtQU':_0x93f400(0x22c),'mloxV':_0x93f400(0x297),'TYdWC':'Hub\x20HA\x20setup\x20completed\x20successfully.','XWOlm':'2|0|1|4|3','XRUzQ':function(_0x306570,_0x1c4bc4,_0x386c2c,_0x3fc02c,_0x1fa31a,_0x107e61,_0x576b55,_0x35e436){return _0x306570(_0x1c4bc4,_0x386c2c,_0x3fc02c,_0x1fa31a,_0x107e61,_0x576b55,_0x35e436);},'hcCiv':_0x93f400(0x29d),'BwOZW':'Creating\x20namespace','ByaiP':_0x93f400(0x289),'bRLYK':'Namespace\x20Created','wHlKn':'Namespace\x20created','egZiM':_0x93f400(0x381),'vhAnJ':_0x93f400(0x366),'aTMbN':function(_0x1e838e,_0x24aa34,_0x4297d3,_0x237c53,_0x340ab6,_0x83f965,_0x5a05b0,_0x1d0865,_0x3a03d1,_0xbe1bbe,_0x342119){return _0x1e838e(_0x24aa34,_0x4297d3,_0x237c53,_0x340ab6,_0x83f965,_0x5a05b0,_0x1d0865,_0x3a03d1,_0xbe1bbe,_0x342119);},'lBdsp':_0x93f400(0x32e),'dMqMF':_0x93f400(0x2d0),'bjrZN':function(_0x1acbc0,_0x361d7d,_0x3f22d6,_0x80dcf2,_0x538cbb){return _0x1acbc0(_0x361d7d,_0x3f22d6,_0x80dcf2,_0x538cbb);},'MeVzz':'private-ingress-nginx-controller','BGlis':_0x93f400(0x330),'AoZaF':_0x93f400(0x313),'asNqD':function(_0x5acdde,_0x395617,_0x58036a){return _0x5acdde(_0x395617,_0x58036a);},'Oqkom':_0x93f400(0x281),'fQhty':function(_0x413eeb,_0x8e76d5,_0x109064,_0x3c2ddf,_0x1d8786,_0x4905d2,_0x4e1379,_0x473841){return _0x413eeb(_0x8e76d5,_0x109064,_0x3c2ddf,_0x1d8786,_0x4905d2,_0x4e1379,_0x473841);},'sMJmp':_0x93f400(0x286),'ydXFu':_0x93f400(0x1fa),'KnkCQ':function(_0x530a01,_0x4f3197,_0x117896,_0xc80025,_0x15c654,_0x448ae5,_0x748bd0,_0x1ac02c){return _0x530a01(_0x4f3197,_0x117896,_0xc80025,_0x15c654,_0x448ae5,_0x748bd0,_0x1ac02c);},'nSazz':_0x93f400(0x24f),'QDaeW':function(_0x1c8210,_0xf1a34c){return _0x1c8210!==_0xf1a34c;},'MGcCp':_0x93f400(0x34e),'tqKPE':function(_0x3575ca,_0x123580){return _0x3575ca===_0x123580;},'ZBZvK':_0x93f400(0x364),'AqgeM':function(_0x4ba0a0,_0x47df3c,_0xc0e955,_0x218c21,_0x190e9d,_0x2f1abe){return _0x4ba0a0(_0x47df3c,_0xc0e955,_0x218c21,_0x190e9d,_0x2f1abe);},'aWGRF':'grid-spawning-failed'};let _0x40d8df=![],_0x4f2cdf=![],_0x19f466,_0x52ed9f,_0x2668b8,_0x1a3123,_0x2f6b0d,_0x184a17,_0x6363ea,_0x3d387d,_0xea2183,_0x5b3ddc,_0x25cc66,_0x389e93,_0x474783,_0x344092,_0x445b81=0x1,_0x45a4b7=0xe;try{global_registry[_0x93f400(0x2d7)]=_0x40a7c5['LJidQ'](uuidv4),global_registry[_0x93f400(0x223)]=![];if(!fs[_0x93f400(0x379)](_0x40a7c5[_0x93f400(0x371)](getCredentialsPath))){if(_0x40a7c5['NQJdH'](_0x40a7c5[_0x93f400(0x31f)],_0x40a7c5[_0x93f400(0x38d)]))console[_0x93f400(0x38a)](_0x40a7c5['aeOaS']),await _0x40a7c5[_0x93f400(0x2f9)](sendInstrumentationEvent,_0x4046e7,_0x40a7c5[_0x93f400(0x20e)],messageTypes['ERROR'],_0x40a7c5[_0x93f400(0x345)],null,_0x4046e7),process[_0x93f400(0x292)](0x1);else throw new _0x3d515b('Cluster\x20'+_0xdc86a3+_0x93f400(0x33c));}await _0x40a7c5[_0x93f400(0x2f9)](sendInstrumentationEvent,_0x4046e7,_0x40a7c5['OvNJt'],messageTypes[_0x93f400(0x30c)],null,null,_0x4046e7);const _0x4d2fd1=JSON['parse'](fs[_0x93f400(0x248)](_0x40a7c5[_0x93f400(0x39f)](getCredentialsPath)));global_registry[_0x93f400(0x3b1)]=_0x4d2fd1[_0x93f400(0x289)][_0x93f400(0x21f)],global_registry[_0x93f400(0x27e)]=_0x4d2fd1['Browserstack']['password'];const _0x198a84=WS_ENDPOINT['replace'](_0x40a7c5[_0x93f400(0x328)],_0x4d2fd1[_0x93f400(0x289)][_0x93f400(0x21f)])['replace'](_0x40a7c5[_0x93f400(0x212)],_0x4d2fd1[_0x93f400(0x289)][_0x93f400(0x2f1)]),_0xf2ddc4={};_0xf2ddc4[_0x93f400(0x268)]=ws,_0xf2ddc4[_0x93f400(0x1f1)]=0x36ee80,_0x389e93=new ReconnectingWebSocket(_0x198a84,[],_0xf2ddc4),logger[_0x93f400(0x2b6)](_0x40a7c5[_0x93f400(0x2bc)]),webSocketUtils['addListeners'](_0x389e93,_0x4046e7[_0x93f400(0x26f)],_0x4046e7[_0x93f400(0x2f1)]);const _0x329fb7=_0x4046e7['gridName']||DEFAULT_GRID_NAME;if(_0x4046e7[_0x93f400(0x2af)]||_0x4046e7[_0x93f400(0x373)]||_0x4046e7[_0x93f400(0x32d)]){if(_0x40a7c5[_0x93f400(0x28d)](_0x40a7c5[_0x93f400(0x232)],_0x40a7c5[_0x93f400(0x339)])){!(_0x4046e7['clusterName']&&_0x4046e7[_0x93f400(0x373)]&&_0x4046e7[_0x93f400(0x32d)])&&(_0x40a7c5['bNtRg'](_0x40a7c5[_0x93f400(0x3ab)],_0x40a7c5['tCBJR'])?(_0x19f466=_0x40a7c5[_0x93f400(0x245)],await _0x40a7c5[_0x93f400(0x306)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes['ERROR'],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x357)],_0x40a7c5[_0x93f400(0x2d8)]),logger[_0x93f400(0x38a)](_0x19f466),process['exit'](0x1)):(_0x3c85b4=_0x34dd39[_0x93f400(0x322)],_0x29760c=_0x40a7c5[_0x93f400(0x2a3)]));if(![AWS,AZURE,GCP][_0x93f400(0x1fc)](_0x4046e7[_0x93f400(0x373)][_0x93f400(0x2d4)]())){if(_0x40a7c5['Ewmwi'](_0x40a7c5[_0x93f400(0x2e4)],_0x40a7c5['pIhvD']))_0x19f466=_0x40a7c5[_0x93f400(0x2f3)],await _0x40a7c5[_0x93f400(0x306)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x2ab)],_0x40a7c5[_0x93f400(0x2d8)]),logger['error'](_0x19f466),process[_0x93f400(0x292)](0x1);else{const _0x330c6={'azure.workload.identity/use':_0x40a7c5['RKbXL'],..._0x12dc58[0x0][_0x93f400(0x30e)][_0x93f400(0x219)][_0x93f400(0x387)][_0x93f400(0x2c4)]};_0x113eb9[0x0][_0x93f400(0x30e)][_0x93f400(0x219)][_0x93f400(0x387)][_0x93f400(0x2c4)]=_0x330c6,_0x4513c5[0x0][_0x93f400(0x30e)][_0x93f400(0x219)][_0x93f400(0x30e)][_0x93f400(0x2ee)]=_0x40a7c5['FtbpK'];}}_0x4046e7[_0x93f400(0x27a)]&&_0x40a7c5[_0x93f400(0x2e6)](_0x4046e7[_0x93f400(0x27a)][_0x93f400(0x2d4)](),_0x40a7c5[_0x93f400(0x35a)])&&(_0x40a7c5[_0x93f400(0x28d)](_0x40a7c5[_0x93f400(0x227)],_0x40a7c5[_0x93f400(0x259)])?global_registry['isPrivateGrid']=!![]:(_0x5ea44c[_0x93f400(0x32d)]=_0x482b83,_0x303d71['cloudProvider']=_0x52ab91,_0x5709e5['newCluster']=!![],_0xa037e[_0x93f400(0x2b5)]=_0x5ec4bf[_0x93f400(0x3af)]));global_registry[_0x93f400(0x373)]=_0x4046e7['cloudProvider'],global_registry[_0x93f400(0x39e)]=_0x4046e7['region'],global_registry[_0x93f400(0x2af)]=_0x4046e7[_0x93f400(0x2af)];const _0x43dcc2=await _0x40a7c5[_0x93f400(0x1f6)](getCloudProviderObject,_0x4046e7[_0x93f400(0x373)],_0x4046e7[_0x93f400(0x2af)],_0x329fb7,_0x389e93,webSocketUtils,_0x4046e7),_0x27794e=await _0x43dcc2[_0x93f400(0x31b)]();!_0x27794e?_0x40a7c5['tPOcY'](_0x40a7c5[_0x93f400(0x2db)],_0x40a7c5[_0x93f400(0x230)])?_0x175232=!![]:(logger[_0x93f400(0x29a)](_0x93f400(0x29c)+_0x4046e7[_0x93f400(0x2af)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x40d8df=![],_0x4f2cdf=!![]):_0x40a7c5[_0x93f400(0x2bf)](_0x40a7c5['KEdtS'],_0x40a7c5[_0x93f400(0x28c)])?_0x40d8df=!![]:_0x42a737['info'](_0x40a7c5[_0x93f400(0x2ca)]),_0x2668b8=_0x4046e7[_0x93f400(0x2af)],_0x52ed9f=_0x4046e7['cloudProvider'][_0x93f400(0x2d4)](),_0x1a3123=_0x4046e7['region'];}else _0x5d59ad[_0x93f400(0x38a)](_0x93f400(0x2da)+_0xd00380+'\x20\x0a'+_0xe4c658[_0x93f400(0x236)](_0x174777['stack']));}else _0x4046e7[_0x93f400(0x370)]&&(_0x40a7c5['bNtRg'](_0x40a7c5[_0x93f400(0x380)],_0x40a7c5[_0x93f400(0x380)])?global_registry[_0x93f400(0x370)]=_0x4046e7[_0x93f400(0x370)]:_0x10dad8[_0x93f400(0x29a)](_0x93f400(0x327)+_0x44c3e9[_0x93f400(0x236)](_0x2dee3e)+'\x20'));global_registry[_0x93f400(0x33b)]=_0x4046e7[_0x93f400(0x33b)];const _0x1b37c7={'method':_0x40a7c5[_0x93f400(0x246)],'headers':_0x40a7c5['KHizt'](getAuthHeader,_0x4d2fd1['Browserstack']['username'],_0x4d2fd1[_0x93f400(0x289)][_0x93f400(0x2f1)]),'throwHttpErrors':![]},_0x55cfda={};_0x55cfda[_0x93f400(0x33b)]=_0x329fb7;const _0x30133c=_0x55cfda;_0x4f2cdf&&(_0x40a7c5[_0x93f400(0x28d)](_0x40a7c5[_0x93f400(0x301)],_0x40a7c5[_0x93f400(0x301)])?_0x40a7c5[_0x93f400(0x348)](_0x1798e5,_0x331bd9[_0x93f400(0x37a)]):(_0x30133c[_0x93f400(0x32d)]=_0x1a3123,_0x30133c['cloudProvider']=_0x52ed9f,_0x30133c[_0x93f400(0x32c)]=!![],_0x30133c[_0x93f400(0x2b5)]=_0x4046e7[_0x93f400(0x3af)]));if(_0x4046e7[_0x93f400(0x3af)]){if(_0x40a7c5[_0x93f400(0x2c0)](_0x40a7c5[_0x93f400(0x222)],_0x40a7c5['xuhhD'])){const _0x1ed075=_0x40a7c5[_0x93f400(0x355)][_0x93f400(0x25a)]('|');let _0x1e441c=0x0;while(!![]){switch(_0x1ed075[_0x1e441c++]){case'0':_0x34d6ee=null;continue;case'1':_0x4614d0=null;continue;case'2':_0x18b64b=null;continue;case'3':_0x4b61b5=_0x4bead5[_0x93f400(0x349)];continue;case'4':_0x27a12a=_0x4dbadd['minNodes'];continue;case'5':_0x40a7c5[_0x93f400(0x340)](_0x179374,_0x241c35,_0x4a5374,_0x2bedde,_0x488db7,_0x4e8f8e,_0x5d3ef7,_0x13bd7d,_0x1ab32b,_0x59821a,_0xcdc420,_0x568f15,_0x304d56[_0x93f400(0x3af)]);continue;case'6':_0x3cd7ab=_0x93f400(0x343)+_0x29b982;continue;case'7':_0x374d16[_0x93f400(0x318)]&&_0x40a7c5['wutTb'](_0x176e93,_0x5a2025[_0x93f400(0x237)]);continue;case'8':const _0x14a9a3={};_0x14a9a3['type']=_0x33b74d[_0x93f400(0x35c)],_0x14a9a3['message']=_0x466a4b,_0x448d60['sendEventToBackend'](_0x39bd43,_0x14a9a3);continue;case'9':_0x505405=_0xeffae2[_0x93f400(0x320)];continue;case'10':_0x1aa9fe=_0x4f560a[_0x93f400(0x2cb)];continue;case'11':_0x40a7c5[_0x93f400(0x21e)](_0x39b0a4['privateGrid'],_0x2f913a)&&_0x332fc9['privateGrid']&&(_0x332fe5[_0x93f400(0x223)]=!![]);continue;case'12':_0xca2e95[_0x93f400(0x29a)](_0x5d794d);continue;case'13':_0x1fb6c4=_0x21caf6[_0x93f400(0x254)];continue;case'14':_0x35f268=_0x267c86[_0x93f400(0x39a)];continue;case'15':_0x4567e3=_0x1454ee[_0x93f400(0x2b9)];continue;}break;}}else logger[_0x93f400(0x29a)](_0x40a7c5['Tmmlg']);}const _0x321d7a=_0x93f400(0x2fc)+AG_API_URL+_0x93f400(0x346),_0xf66340={'searchParams':_0x30133c,'throwHttpErrors':![],..._0x1b37c7},_0x544828=_0xf66340,_0x1a12d1=await _0x40a7c5[_0x93f400(0x24c)](got,_0x321d7a,_0x544828);(_0x40a7c5[_0x93f400(0x36b)](_0x1a12d1,null)||_0x40a7c5[_0x93f400(0x36b)](_0x1a12d1,undefined))&&(_0x40a7c5[_0x93f400(0x30b)](_0x40a7c5[_0x93f400(0x295)],_0x40a7c5[_0x93f400(0x31c)])?_0x40a7c5[_0x93f400(0x2d9)](_0xfbbf5,_0x44664d[_0x93f400(0x237)]):(_0x19f466=_0x40a7c5[_0x93f400(0x256)],await _0x40a7c5['jaIRb'](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5['zBNDl'],_0x40a7c5['dzcWD']),logger[_0x93f400(0x38a)](_0x19f466),process[_0x93f400(0x292)](0x1)));_0x40a7c5[_0x93f400(0x365)](_0x1a12d1[_0x93f400(0x3b0)],0x191)&&(_0x40a7c5['VKwVZ'](_0x40a7c5[_0x93f400(0x291)],_0x40a7c5[_0x93f400(0x291)])?(_0x19f466=_0x40a7c5[_0x93f400(0x337)],await _0x40a7c5[_0x93f400(0x306)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes['ERROR'],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x34b)],_0x40a7c5['dzcWD']),logger['error'](_0x19f466),process['exit'](0x1)):_0x351003[_0x93f400(0x223)]=!![]);_0x40a7c5[_0x93f400(0x316)](_0x1a12d1[_0x93f400(0x3b0)],0xc8)&&(_0x40a7c5[_0x93f400(0x27c)](_0x40a7c5[_0x93f400(0x21b)],_0x40a7c5[_0x93f400(0x26d)])?(_0x19f466=_0x93f400(0x395)+JSON[_0x93f400(0x236)](_0x1a12d1[_0x93f400(0x293)]),await _0x40a7c5[_0x93f400(0x258)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5['VgVTo'],_0x40a7c5[_0x93f400(0x2d8)]),logger[_0x93f400(0x38a)](_0x19f466),process[_0x93f400(0x292)](0x1)):_0xf6a086[_0x93f400(0x223)]=!![]);const _0x3cb9b6=JSON[_0x93f400(0x21d)](_0x1a12d1[_0x93f400(0x293)]),_0x527cca={};_0x527cca['type']=WS_EVENTS['CLI_RUN_STARTED'],_0x527cca[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x265)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x527cca);const _0x31e08d={};_0x31e08d[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x31e08d[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x275)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x31e08d);_0x3cb9b6[_0x93f400(0x290)]&&(_0x40a7c5[_0x93f400(0x29b)](_0x40a7c5[_0x93f400(0x2cf)],_0x40a7c5['cQsUj'])?_0x45848d=_0x40a7c5[_0x93f400(0x314)]:(_0x19f466=_0x93f400(0x22a)+_0x329fb7+_0x93f400(0x20d),await _0x40a7c5['jaIRb'](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x398)],_0x40a7c5['dzcWD']),logger['error'](_0x19f466),process[_0x93f400(0x292)](0x1)));const _0x213d78=_0x3cb9b6[_0x93f400(0x234)];let _0x4ed45e=_0x213d78[_0x3cb9b6[_0x93f400(0x36c)]];if(_0x4046e7[_0x93f400(0x370)]){if(_0x40a7c5['dGPkU'](_0x40a7c5[_0x93f400(0x2f2)],_0x40a7c5[_0x93f400(0x32a)])){const _0x581d6c={};_0x581d6c[_0x93f400(0x30d)]=_0x511c8c[_0x93f400(0x35c)],_0x581d6c[_0x93f400(0x2fb)]=_0x93f400(0x2aa)+_0x2c4087+_0x93f400(0x2be),_0x174ee6['sendEventToBackend'](_0x5f1d71,_0x581d6c,_0x40a7c5[_0x93f400(0x27b)]),_0x5121b6['info'](_0x93f400(0x2aa)+_0x372406+_0x93f400(0x2be)),_0x5c3b57=!![];if(_0x40a7c5[_0x93f400(0x239)](_0x72c41b,!![]))throw new _0x352182('Cluster\x20'+_0x4127e6+_0x93f400(0x33c));}else _0x4ed45e=_0x213d78[_0x4046e7[_0x93f400(0x370)]];}global_registry[_0x93f400(0x318)]=![];if(_0x4046e7[_0x93f400(0x341)]){if(_0x40a7c5[_0x93f400(0x299)](_0x40a7c5[_0x93f400(0x241)],_0x40a7c5[_0x93f400(0x241)])){const _0xc2d48a=_0x40a7c5['YcWRs'][_0x93f400(0x25a)]('|');let _0x42ad4b=0x0;while(!![]){switch(_0xc2d48a[_0x42ad4b++]){case'0':global_registry[_0x93f400(0x39b)]=_0x40a7c5['MJafw'];continue;case'1':global_registry[_0x93f400(0x2a4)]=_0x40a7c5[_0x93f400(0x2a0)];continue;case'2':global_registry['enableHubHa']=!![];continue;case'3':logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x251)]);continue;case'4':global_registry[_0x93f400(0x335)]=_0x40a7c5[_0x93f400(0x30a)];continue;}break;}}else{const _0xe08485={};_0xe08485[_0x93f400(0x30d)]=_0x3e55c8['LOG'],_0xe08485[_0x93f400(0x2fb)]=_0x128ad8,_0x472785[_0x93f400(0x252)](_0x557330,_0xe08485,_0x40a7c5[_0x93f400(0x2d8)],!![]);}}if(_0x40a7c5[_0x93f400(0x29e)](_0x40d8df,![])&&_0x40a7c5['ZtDno'](_0x4f2cdf,![])){if(_0x40a7c5[_0x93f400(0x33f)](_0x40a7c5[_0x93f400(0x319)],_0x40a7c5['lCvqn'])){_0x40a7c5['tPOcY'](_0x4ed45e,undefined)&&(_0x40a7c5['ZZpWy'](_0x40a7c5['sDtAZ'],_0x40a7c5[_0x93f400(0x3a0)])?(_0x19f466=_0x40a7c5[_0x93f400(0x2eb)],await _0x40a7c5[_0x93f400(0x258)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x2ad)],_0x40a7c5['dzcWD']),logger[_0x93f400(0x38a)](_0x19f466),process['exit'](0x1)):_0x3e1d97[_0x93f400(0x29a)](_0x93f400(0x3a1)+_0x250b08+'\x20'));global_registry[_0x93f400(0x351)]=_0x4ed45e['id'],_0x19f466=_0x93f400(0x336)+_0x329fb7+_0x93f400(0x2cd)+_0x4ed45e[_0x93f400(0x354)]+'\x27\x20grid\x20profile',logger[_0x93f400(0x29a)](_0x19f466);const _0x40fd87={};_0x40fd87[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x40fd87['message']=_0x19f466,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x40fd87),_0x52ed9f=_0x4ed45e['cloudProvider'],_0x2668b8=_0x4ed45e[_0x93f400(0x2af)],_0x1a3123=_0x4ed45e[_0x93f400(0x32d)],_0x2f6b0d=_0x4ed45e[_0x93f400(0x39a)],_0x184a17=_0x4ed45e[_0x93f400(0x2cb)],_0x6363ea=_0x4ed45e[_0x93f400(0x1f0)],_0x3d387d=_0x4ed45e[_0x93f400(0x2b3)],_0xea2183=_0x4ed45e['subnets'],_0x5b3ddc=_0x4ed45e['s3bucket'],_0x445b81=_0x4ed45e[_0x93f400(0x31d)],_0x45a4b7=_0x4ed45e[_0x93f400(0x320)],_0x474783=_0x3cb9b6[_0x93f400(0x2b9)],_0x344092=_0x3cb9b6[_0x93f400(0x349)];if(_0x6363ea&&_0x40a7c5['OWPwG'](_0x6363ea[_0x93f400(0x310)],0x0)){if(_0x40a7c5[_0x93f400(0x2f5)](_0x40a7c5[_0x93f400(0x3a9)],_0x40a7c5[_0x93f400(0x3a9)]))_0x6363ea=null;else{const _0x31857f={};_0x31857f[_0x93f400(0x218)]=_0x40a7c5['DOXzt'],_0x31857f[_0x93f400(0x30d)]=_0x40a7c5[_0x93f400(0x2a1)];const _0x64a18c={};_0x64a18c['description']=_0x40a7c5['oRvhP'],_0x64a18c[_0x93f400(0x30d)]=_0x40a7c5[_0x93f400(0x2a1)];const _0x16b37a={};_0x16b37a[_0x93f400(0x218)]=_0x40a7c5[_0x93f400(0x23f)],_0x16b37a[_0x93f400(0x30d)]=_0x40a7c5[_0x93f400(0x2a1)];const _0x1d7a51={};_0x1d7a51[_0x93f400(0x218)]=_0x40a7c5['rAeTP'],_0x1d7a51[_0x93f400(0x30d)]=_0x40a7c5[_0x93f400(0x2a1)];const _0x49dbed={};_0x49dbed['description']=_0x40a7c5[_0x93f400(0x214)],_0x49dbed[_0x93f400(0x30d)]=_0x40a7c5[_0x93f400(0x2a1)];const _0x18fca8={};_0x18fca8[_0x93f400(0x218)]=_0x40a7c5[_0x93f400(0x2df)],_0x18fca8['type']=_0x40a7c5[_0x93f400(0x2a1)];const _0x3727f2={};_0x3727f2[_0x93f400(0x218)]=_0x40a7c5[_0x93f400(0x247)],_0x3727f2['type']=_0x40a7c5[_0x93f400(0x2ce)],_0x3727f2[_0x93f400(0x20f)]=![];const _0x36620c={};_0x36620c[_0x93f400(0x218)]=_0x40a7c5[_0x93f400(0x303)],_0x36620c[_0x93f400(0x30d)]=_0x40a7c5[_0x93f400(0x2ce)],_0x36620c[_0x93f400(0x20f)]=![];const _0x487b41={};_0x487b41[_0x93f400(0x218)]=_0x40a7c5[_0x93f400(0x28f)],_0x487b41[_0x93f400(0x30d)]=_0x40a7c5[_0x93f400(0x2ce)],_0x487b41['default']=![];const _0x478393={};return _0x478393['grid-name']=_0x31857f,_0x478393['grid-profile']=_0x64a18c,_0x478393['cluster-name']=_0x16b37a,_0x478393[_0x93f400(0x233)]=_0x1d7a51,_0x478393['region']=_0x49dbed,_0x478393[_0x93f400(0x3a7)]=_0x18fca8,_0x478393['skip-tls-cert-verify']=_0x3727f2,_0x478393[_0x93f400(0x2c5)]=_0x36620c,_0x478393[_0x93f400(0x2bd)]=_0x487b41,_0x4c4dea[_0x93f400(0x225)](_0x3a1d42[_0x93f400(0x2e8)])[_0x93f400(0x205)](_0x476f66)[_0x93f400(0x35b)](_0x478393)['help'](_0x40a7c5[_0x93f400(0x2e1)])[_0x93f400(0x323)];}}_0xea2183&&_0x40a7c5['sLoBe'](_0xea2183[_0x93f400(0x310)],0x0)&&(_0x40a7c5[_0x93f400(0x263)](_0x40a7c5[_0x93f400(0x360)],_0x40a7c5[_0x93f400(0x360)])?_0xea2183=null:(_0x2e63bd[_0x93f400(0x29a)](_0x93f400(0x29c)+_0x35fdf0[_0x93f400(0x2af)]+_0x93f400(0x35d)),_0x950d17=![],_0x1eaf6b=!![])),_0x40a7c5[_0x93f400(0x27c)](_0x4ed45e[_0x93f400(0x27a)],undefined)&&_0x4ed45e[_0x93f400(0x27a)]&&(_0x40a7c5[_0x93f400(0x1f7)](_0x40a7c5[_0x93f400(0x257)],_0x40a7c5[_0x93f400(0x257)])?_0x8071eb=_0x579392[_0xcc999f[_0x93f400(0x370)]]:global_registry[_0x93f400(0x223)]=!![]),_0x40a7c5[_0x93f400(0x340)](updateGlobalRegistryWithConfig,_0x52ed9f,_0x2668b8,_0x1a3123,_0x2f6b0d,_0x184a17,_0x5b3ddc,_0x4ed45e,_0x474783,_0x344092,_0x445b81,_0x45a4b7,_0x4046e7[_0x93f400(0x3af)]),global_registry[_0x93f400(0x318)]&&(_0x40a7c5[_0x93f400(0x238)](_0x40a7c5[_0x93f400(0x28b)],_0x40a7c5[_0x93f400(0x28b)])?_0x40a7c5[_0x93f400(0x348)](updateGlobalRegistryForHubHa,_0x3cb9b6[_0x93f400(0x37a)]):_0x4599c1[_0x93f400(0x223)]=!![]);}else _0x4ff10e=null;}else{if(_0x40a7c5[_0x93f400(0x2fa)](_0x4f2cdf,!![])){if(_0x40a7c5['wJyeV'](_0x40a7c5[_0x93f400(0x3a8)],_0x40a7c5[_0x93f400(0x3a8)])){_0x19f466=_0x93f400(0x343)+_0x329fb7,logger['info'](_0x19f466);const _0x9cb216={};_0x9cb216[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x9cb216[_0x93f400(0x2fb)]=_0x19f466,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x9cb216),_0x2f6b0d=_0x4ed45e[_0x93f400(0x39a)],_0x184a17=_0x4ed45e[_0x93f400(0x2cb)],_0x6363ea=null,_0x3d387d=null,_0xea2183=null,_0x5b3ddc=_0x4ed45e[_0x93f400(0x254)],_0x445b81=_0x4ed45e[_0x93f400(0x31d)],_0x45a4b7=_0x4ed45e[_0x93f400(0x320)],_0x474783=_0x3cb9b6[_0x93f400(0x2b9)],_0x344092=_0x3cb9b6['browserVersion'],_0x40a7c5[_0x93f400(0x244)](_0x4ed45e[_0x93f400(0x27a)],undefined)&&_0x4ed45e[_0x93f400(0x27a)]&&(_0x40a7c5[_0x93f400(0x37b)](_0x40a7c5[_0x93f400(0x24e)],_0x40a7c5['IHPzb'])?_0x45612=null:global_registry[_0x93f400(0x223)]=!![]),_0x40a7c5['eBYeS'](updateGlobalRegistryWithConfig,_0x52ed9f,_0x2668b8,_0x1a3123,_0x2f6b0d,_0x184a17,_0x5b3ddc,_0x4ed45e,_0x474783,_0x344092,_0x445b81,_0x45a4b7,_0x4046e7[_0x93f400(0x3af)]),global_registry['enableHubHa']&&(_0x40a7c5[_0x93f400(0x238)](_0x40a7c5[_0x93f400(0x2b2)],_0x40a7c5[_0x93f400(0x36f)])?_0x23a5d3[_0x93f400(0x2f8)]():_0x40a7c5[_0x93f400(0x348)](updateGlobalRegistryForHubHa,_0x3cb9b6[_0x93f400(0x237)]));}else _0x102773=_0x40a7c5[_0x93f400(0x22b)];}else{if(_0x40a7c5[_0x93f400(0x36b)](_0x40a7c5['zPDbq'],_0x40a7c5['Bbrxo']))_0x35b612[_0x93f400(0x370)]=_0x57c71f[_0x93f400(0x370)];else{const _0x59100b=_0x40a7c5[_0x93f400(0x311)][_0x93f400(0x25a)]('|');let _0x393973=0x0;while(!![]){switch(_0x59100b[_0x393973++]){case'0':global_registry['hubVersion']=_0x3cb9b6[_0x93f400(0x2b9)];continue;case'1':global_registry['cloudProvider']=_0x52ed9f;continue;case'2':const _0x39beeb={};_0x39beeb[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x39beeb[_0x93f400(0x2fb)]=_0x19f466,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x39beeb);continue;case'3':const _0x3d6791={};_0x3d6791['type']=WS_EVENTS[_0x93f400(0x276)],_0x3d6791[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x265)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x3d6791);continue;case'4':global_registry[_0x93f400(0x39e)]=_0x1a3123;continue;case'5':global_registry[_0x93f400(0x2af)]=_0x2668b8;continue;case'6':logger[_0x93f400(0x29a)](_0x19f466);continue;case'7':_0x19f466=_0x93f400(0x307)+_0x329fb7+'\x20in\x20existing\x20cluster\x20\x27'+_0x2668b8+'\x27';continue;case'8':global_registry['browserVersion']=_0x3cb9b6['browserVersion'];continue;}break;}}}}const _0x4d89f2=await _0x40a7c5[_0x93f400(0x2d6)](getCloudProviderObject,_0x52ed9f,_0x2668b8,_0x329fb7,_0x389e93,webSocketUtils,_0x4046e7);if(_0x40a7c5[_0x93f400(0x244)](_0x52ed9f,AZURE)){if(_0x40a7c5[_0x93f400(0x25e)](_0x40a7c5[_0x93f400(0x312)],_0x40a7c5[_0x93f400(0x266)])){const _0x39dcaf=_0x40a7c5[_0x93f400(0x377)][_0x93f400(0x25a)]('|');let _0x5a70ce=0x0;while(!![]){switch(_0x39dcaf[_0x5a70ce++]){case'0':const _0x8642fe={};_0x8642fe[_0x93f400(0x30d)]=_0x344965[_0x93f400(0x35c)],_0x8642fe[_0x93f400(0x2fb)]=_0x1785a4,_0x46102f[_0x93f400(0x252)](_0x32550a,_0x8642fe);continue;case'1':_0x3d00e9[_0x93f400(0x373)]=_0x1bb6f2;continue;case'2':_0x15344c[_0x93f400(0x39e)]=_0x451c3a;continue;case'3':const _0x208227={};_0x208227['type']=_0x463d42['CLI_RUN_STARTED'],_0x208227[_0x93f400(0x2fb)]=_0x40a7c5['GoFdF'],_0x26ca34[_0x93f400(0x252)](_0x1c1bed,_0x208227);continue;case'4':_0x4e0630[_0x93f400(0x2b9)]=_0x14a0ed[_0x93f400(0x2b9)];continue;case'5':_0x37d21d=_0x93f400(0x307)+_0x5780ef+_0x93f400(0x32f)+_0x31190d+'\x27';continue;case'6':_0x35ef0e['clusterName']=_0x2d7a5a;continue;case'7':_0x11aa91[_0x93f400(0x349)]=_0x377a49['browserVersion'];continue;case'8':_0x4153e4[_0x93f400(0x29a)](_0x160468);continue;}break;}}else _0x4d89f2[_0x93f400(0x2f8)]();}let _0x1d5d27;if(_0x40a7c5[_0x93f400(0x37f)](_0x40d8df,![])){_0x19f466=_0x93f400(0x393)+_0x1a3123+').';const _0x3dee51={};_0x3dee51['type']=WS_EVENTS[_0x93f400(0x35c)],_0x3dee51[_0x93f400(0x2fb)]=_0x19f466,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x3dee51),logger[_0x93f400(0x29a)](_0x19f466);const _0xef4d22=await _0x4d89f2[_0x93f400(0x31b)]();if(_0xef4d22){if(_0x40a7c5[_0x93f400(0x213)](_0x40a7c5[_0x93f400(0x253)],_0x40a7c5[_0x93f400(0x253)])){const _0x22d369=_0x40a7c5['DsGka'][_0x93f400(0x25a)]('|');let _0x19202a=0x0;while(!![]){switch(_0x22d369[_0x19202a++]){case'0':_0x1dbb94[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x251)]);continue;case'1':_0x5de50c[_0x93f400(0x318)]=!![];continue;case'2':_0x150d4a[_0x93f400(0x335)]=_0x40a7c5[_0x93f400(0x30a)];continue;case'3':_0x19aa08[_0x93f400(0x2a4)]=_0x40a7c5[_0x93f400(0x2a0)];continue;case'4':_0x8b61c9[_0x93f400(0x39b)]=_0x40a7c5[_0x93f400(0x2e3)];continue;}break;}}else{const _0x47cfdd={};_0x47cfdd[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x47cfdd[_0x93f400(0x2fb)]=_0x93f400(0x2aa)+_0x2668b8+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x47cfdd,_0x40a7c5[_0x93f400(0x27b)]),logger[_0x93f400(0x29a)](_0x93f400(0x2aa)+_0x2668b8+_0x93f400(0x2be)),_0x40d8df=!![];if(_0x40a7c5['DjvrY'](_0x4f2cdf,!![])){if(_0x40a7c5[_0x93f400(0x2fa)](_0x40a7c5[_0x93f400(0x2e0)],_0x40a7c5['RRyVH']))_0x4744e5=_0x40a7c5[_0x93f400(0x28e)];else throw new Error(_0x93f400(0x2aa)+_0x2668b8+_0x93f400(0x33c));}}}else{const _0x3ce3f9={};_0x3ce3f9[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x3ce3f9[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x298)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x3ce3f9),logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x298)]);const _0x5f5cd1=_0x40a7c5[_0x93f400(0x2e2)](_0x6363ea,null)&&_0x40a7c5[_0x93f400(0x316)](_0x6363ea,undefined),_0x1ec097=_0x40a7c5['KCuUp'](_0xea2183,null)&&_0x40a7c5[_0x93f400(0x27c)](_0xea2183,undefined)&&_0x40a7c5[_0x93f400(0x26a)](_0xea2183[_0x93f400(0x310)],0x0);if(_0x5f5cd1){_0x40a7c5['awcXv'](_0x1ec097,![])&&(_0x19f466=_0x40a7c5[_0x93f400(0x255)],await _0x40a7c5[_0x93f400(0x356)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x39d)],_0x40a7c5[_0x93f400(0x2d8)]),logger[_0x93f400(0x38a)](_0x19f466),process['exit'](0x1));const _0xbfc59e=await _0x4d89f2[_0x93f400(0x390)](_0x6363ea);_0x40a7c5[_0x93f400(0x30b)](_0xbfc59e,![])?(_0x19f466=_0x40a7c5['oVtun'],await _0x40a7c5['ofbTm'](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5['MDnHC'],_0x40a7c5['dzcWD']),logger['error'](_0x19f466),process[_0x93f400(0x292)](0x1)):logger['info']('Found\x20VPC:\x20'+_0x6363ea+'\x20');const _0x1044c8=await _0x4d89f2[_0x93f400(0x329)](_0xea2183,_0x6363ea);_0x40a7c5[_0x93f400(0x30b)](_0x1044c8[0x0],![])?(_0x19f466=_0x93f400(0x288)+JSON[_0x93f400(0x236)](_0x1044c8[0x1])+_0x93f400(0x2de)+_0x6363ea+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x40a7c5[_0x93f400(0x229)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x2e9)],_0x40a7c5[_0x93f400(0x2d8)]),logger[_0x93f400(0x38a)](_0x19f466),process[_0x93f400(0x292)](0x1)):logger[_0x93f400(0x29a)]('Found\x20Subnets:\x20'+JSON[_0x93f400(0x236)](_0xea2183)+'\x20'),[_0x6363ea,_0xea2183]=await _0x4d89f2[_0x93f400(0x240)](_0x6363ea,_0xea2183);}else{const _0x57acdf=_0x40a7c5['hxqEx']['split']('|');let _0x5a74ad=0x0;while(!![]){switch(_0x57acdf[_0x5a74ad++]){case'0':logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x33d)]);continue;case'1':logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x32b)]);continue;case'2':[_0x6363ea,_0xea2183]=await _0x4d89f2['setupNewCluster'](_0x6363ea,_0xea2183);continue;case'3':const _0x19ca08={};_0x19ca08[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x19ca08[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x33d)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x19ca08);continue;case'4':const _0x3a3899={};_0x3a3899[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x3a3899[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x32b)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x3a3899);continue;}break;}}}}_0x40d8df&&_0x40a7c5[_0x93f400(0x3a6)](_0x52ed9f,AZURE)&&(await _0x4d89f2[_0x93f400(0x27f)](),await _0x4d89f2['createOtherResources']());const [_0x303202,_0x43fa61,_0x4e7579,_0x1c392d,_0x571844,_0x4acdf9,_0x1d19c7]=await _0x40a7c5[_0x93f400(0x374)](createK8sClient,_0x4d89f2,_0x4046e7[_0x93f400(0x24b)]);_0x40a7c5[_0x93f400(0x30b)](_0x40d8df,![])&&_0x40a7c5[_0x93f400(0x29e)](_0x52ed9f,AWS)&&(global_registry[_0x93f400(0x1f8)]=!![],_0x1d5d27=await _0x4d89f2['setupAutoscaler'](_0x303202,_0x4046e7));if(_0x40a7c5[_0x93f400(0x2f5)](_0x40d8df,![])&&global_registry['enableHubHa'])try{await _0x4d89f2[_0x93f400(0x267)](_0x4acdf9,_0x1d19c7,_0x4046e7,_0x6363ea,_0xea2183);const _0x15df49={};_0x15df49[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x15df49[_0x93f400(0x2fb)]=_0x40a7c5['vrQbG'],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x15df49);!await _0x40a7c5[_0x93f400(0x3ac)](namespaceExists,_0x303202,global_registry['hubHaNameSpace'])&&await _0x40a7c5[_0x93f400(0x25d)](createNamespace,_0x303202,global_registry[_0x93f400(0x39b)]);logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x3a3)]);let _0x553b3d=await fs['readFileAsync'](path['join'](__dirname,_0x40a7c5[_0x93f400(0x23e)],_0x40a7c5[_0x93f400(0x2c8)],_0x40a7c5[_0x93f400(0x287)],_0x40a7c5[_0x93f400(0x26b)]),_0x40a7c5[_0x93f400(0x24d)]);_0x553b3d=_0x553b3d[_0x93f400(0x22f)](/<RedisClientPassword>/g,_0x40a7c5[_0x93f400(0x2d9)](encodeBase64,global_registry[_0x93f400(0x335)])),_0x553b3d=_0x553b3d[_0x93f400(0x22f)](/<KafkaClientPassword>/g,_0x40a7c5['BPCFr'](encodeBase64,global_registry[_0x93f400(0x2a4)])),_0x553b3d=_0x553b3d['replace'](/<BstackUsername>/g,_0x40a7c5['BPCFr'](encodeBase64,global_registry['bstackUsername'])),_0x553b3d=_0x553b3d['replace'](/<BstackAccessKey>/g,_0x40a7c5['wutTb'](encodeBase64,global_registry[_0x93f400(0x27e)]));const _0x1ba4c5=yaml[_0x93f400(0x37c)](_0x553b3d);await _0x40a7c5[_0x93f400(0x35e)](kubeApply,_0x1ba4c5,_0x1d19c7),logger[_0x93f400(0x29a)](_0x40a7c5['vFfIm']);let _0x43c154=_0x40a7c5[_0x93f400(0x24a)];if(_0x40a7c5['qMOgv'](_0x52ed9f,AZURE))_0x43c154=_0x40a7c5[_0x93f400(0x22b)];else _0x40a7c5['uWVmP'](_0x52ed9f,GCP)&&(_0x43c154=_0x40a7c5[_0x93f400(0x314)]);logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x38b)]);let _0x50c053=await fs[_0x93f400(0x302)](path[_0x93f400(0x36e)](__dirname,_0x40a7c5[_0x93f400(0x23e)],_0x40a7c5[_0x93f400(0x2c8)],_0x40a7c5[_0x93f400(0x287)],_0x40a7c5['BNFRR']),_0x40a7c5['GMLgm']);_0x50c053=_0x50c053[_0x93f400(0x22f)](/<HubHaNameSpace>/g,global_registry[_0x93f400(0x39b)]),_0x50c053=_0x50c053[_0x93f400(0x22f)](/<StorageClassName>/g,_0x43c154);const _0xaf61d1=yaml[_0x93f400(0x37c)](_0x50c053);await _0x40a7c5[_0x93f400(0x1ff)](kubeApply,_0xaf61d1,_0x1d19c7),logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x1f5)]),logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x2d3)]);let _0x32d986=await fs[_0x93f400(0x302)](path['join'](__dirname,_0x40a7c5['FoJXh'],_0x40a7c5[_0x93f400(0x2c8)],_0x40a7c5[_0x93f400(0x287)],_0x40a7c5[_0x93f400(0x250)]),_0x40a7c5['GMLgm']);_0x32d986=_0x32d986['replace'](/<HubHaNameSpace>/g,global_registry[_0x93f400(0x39b)]),_0x32d986=_0x32d986['replace'](/<StorageClassName>/g,_0x43c154);const _0x4220a3=yaml[_0x93f400(0x37c)](_0x32d986);await _0x40a7c5[_0x93f400(0x374)](kubeApply,_0x4220a3,_0x1d19c7),logger['info'](_0x40a7c5[_0x93f400(0x308)]),logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x2c7)]);let _0x4361cf=await fs['readFileAsync'](path[_0x93f400(0x36e)](__dirname,_0x40a7c5[_0x93f400(0x23e)],_0x40a7c5[_0x93f400(0x2c8)],_0x40a7c5[_0x93f400(0x287)],_0x40a7c5['IQhyl']),_0x40a7c5[_0x93f400(0x24d)]);_0x4361cf=_0x4361cf['replace'](/<UploaderImageVersion>/g,global_registry[_0x93f400(0x367)]),_0x4361cf=_0x4361cf['replace'](/<HubHaNameSpace>/g,global_registry[_0x93f400(0x39b)]);const _0x4dff8b=yaml[_0x93f400(0x37c)](_0x4361cf);_0x40a7c5['DjvrY'](global_registry['cloudProvider'],AZURE)&&(_0x4dff8b[0x0][_0x93f400(0x30e)][_0x93f400(0x219)]['metadata']['labels']={'azure.workload.identity/use':_0x40a7c5[_0x93f400(0x35a)],..._0x4dff8b[0x0][_0x93f400(0x30e)][_0x93f400(0x219)]['metadata'][_0x93f400(0x2c4)]},_0x4dff8b[0x0][_0x93f400(0x30e)][_0x93f400(0x219)]['spec']['serviceAccountName']=_0x40a7c5[_0x93f400(0x369)]);await _0x40a7c5[_0x93f400(0x3ac)](kubeApply,_0x4dff8b,_0x1d19c7),logger['info'](_0x40a7c5['OxtQU']);const _0x4059ad={};_0x4059ad['type']=WS_EVENTS[_0x93f400(0x35c)],_0x4059ad[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x2e7)],webSocketUtils['sendEventToBackend'](_0x389e93,_0x4059ad),logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x217)]);}catch(_0x1c3849){const _0xf569f5=_0x40a7c5[_0x93f400(0x3ad)][_0x93f400(0x25a)]('|');let _0x4e4270=0x0;while(!![]){switch(_0xf569f5[_0x4e4270++]){case'0':logger[_0x93f400(0x38a)](_0x19f466);continue;case'1':await _0x40a7c5['XRUzQ'](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x280)],_0x40a7c5[_0x93f400(0x2d8)]);continue;case'2':_0x19f466='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x1c3849['message'];continue;case'3':process[_0x93f400(0x292)](0x1);continue;case'4':await _0x4d89f2[_0x93f400(0x277)](_0x303202,global_registry['clusterRegion']);continue;}break;}}try{_0x25cc66=_0x40a7c5[_0x93f400(0x348)](kebabCase,_0x329fb7),logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x296)]);const _0x507912={};_0x507912[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x507912[_0x93f400(0x2fb)]=_0x40a7c5['BwOZW'],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x507912);if(_0x40a7c5['ZZpWy'](_0x25cc66,_0x40a7c5[_0x93f400(0x369)])){const _0x7fab38={};_0x7fab38[_0x93f400(0x321)]=_0x40a7c5[_0x93f400(0x2d2)],_0x7fab38[_0x93f400(0x30f)]=_0x40a7c5[_0x93f400(0x2d2)];const _0x272a00={};_0x272a00[_0x93f400(0x354)]=_0x25cc66,_0x272a00[_0x93f400(0x392)]=_0x7fab38;const _0x10ac9a={};_0x10ac9a[_0x93f400(0x387)]=_0x272a00;const _0x440fa4=_0x10ac9a,_0x4572a7={};_0x4572a7[_0x93f400(0x293)]=_0x440fa4,await _0x303202[_0x93f400(0x2dc)](_0x4572a7),logger['info'](_0x40a7c5['bRLYK']);}const _0xda76c6={};_0xda76c6['type']=WS_EVENTS[_0x93f400(0x35c)],_0xda76c6[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x1fb)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0xda76c6);const _0x5c5227={};_0x5c5227['type']=WS_EVENTS[_0x93f400(0x35c)],_0x5c5227['message']=_0x40a7c5[_0x93f400(0x226)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x5c5227),logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x361)]);let _0x4af760={};_0x40a7c5[_0x93f400(0x342)](_0x52ed9f,AZURE)&&(_0x4af760={'clientId':await _0x4d89f2['getResourceClientId'](_0x93f400(0x338)+_0x2668b8)});await _0x40a7c5[_0x93f400(0x220)](addGridComponents,_0x303202,_0x43fa61,_0x4e7579,_0x1c392d,_0x25cc66,_0x2668b8,_0x1d5d27,_0x571844,_0x1d19c7,_0x4af760),_0x19f466=_0x40a7c5[_0x93f400(0x353)],logger['info'](_0x19f466);const _0x1d52c4={};_0x1d52c4[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x1d52c4[_0x93f400(0x2fb)]=_0x19f466,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x1d52c4),_0x19f466=_0x40a7c5[_0x93f400(0x2c1)],logger[_0x93f400(0x29a)](_0x19f466);const _0x47a6a4={};_0x47a6a4[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x47a6a4[_0x93f400(0x2fb)]=_0x19f466,webSocketUtils['sendEventToBackend'](_0x389e93,_0x47a6a4),await _0x40a7c5[_0x93f400(0x2bb)](waitForDeployment,_0x43fa61,_0x25cc66,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x36e2b1=await _0x40a7c5[_0x93f400(0x25d)](getNamespaceUID,_0x303202,_0x25cc66),_0x79886b=global_registry[_0x93f400(0x223)]?_0x40a7c5[_0x93f400(0x2a5)]:_0x40a7c5[_0x93f400(0x294)],_0xa6d9fb={};_0xa6d9fb[_0x93f400(0x354)]=_0x79886b,_0xa6d9fb['namespace']=_0x40a7c5[_0x93f400(0x33e)];const _0xfa7276=await _0x303202[_0x93f400(0x2f6)](_0xa6d9fb);let _0x15c734=_0x4d89f2[_0x93f400(0x397)](_0xfa7276)+'/'+_0x25cc66,_0x45e9d8=_0x40a7c5[_0x93f400(0x28e)];try{const _0x2917e9=_0x93f400(0x2fc)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x36e2b1,_0x12e460=await _0x40a7c5[_0x93f400(0x304)](got,_0x2917e9,_0x1b37c7);(_0x40a7c5[_0x93f400(0x37f)](_0x12e460,null)||_0x40a7c5[_0x93f400(0x324)](_0x12e460,undefined))&&(_0x19f466=_0x40a7c5[_0x93f400(0x2a8)],await _0x40a7c5[_0x93f400(0x2d5)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes['ERROR'],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x363)],_0x40a7c5[_0x93f400(0x2d8)]),logger[_0x93f400(0x38a)](_0x19f466),process['exit'](0x1));_0x40a7c5[_0x93f400(0x29b)](_0x12e460[_0x93f400(0x3b0)],0x191)&&(_0x19f466=_0x40a7c5[_0x93f400(0x200)],await _0x40a7c5[_0x93f400(0x279)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5['OvNJt'],_0x40a7c5[_0x93f400(0x1ed)],_0x40a7c5['dzcWD']),logger['error'](_0x19f466),process[_0x93f400(0x292)](0x1));_0x40a7c5[_0x93f400(0x23b)](_0x12e460[_0x93f400(0x3b0)],0xc8)&&(_0x19f466=_0x93f400(0x317)+JSON[_0x93f400(0x236)](_0x12e460),await _0x40a7c5[_0x93f400(0x356)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes['ERROR'],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x399)],_0x40a7c5['dzcWD']),logger['error'](_0x19f466),process[_0x93f400(0x292)](0x1));const _0x3fa0eb=JSON[_0x93f400(0x21d)](_0x12e460['body']);_0x3fa0eb[_0x93f400(0x322)]&&(_0x15c734=_0x3fa0eb['route53'],_0x45e9d8=_0x40a7c5[_0x93f400(0x2a3)]),global_registry[_0x93f400(0x223)]&&(_0x45e9d8=_0x40a7c5[_0x93f400(0x28e)]);}catch(_0x3d48ef){}_0x19f466=_0x93f400(0x36d)+_0x15c734+'\x20',logger[_0x93f400(0x29a)](_0x19f466);const _0x2e79f9={};_0x2e79f9['type']=WS_EVENTS['LOG'],_0x2e79f9['message']=_0x19f466,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x2e79f9),_0x19f466=_0x93f400(0x224)+_0x45e9d8+_0x93f400(0x211)+_0x15c734+'/wd/hub',logger[_0x93f400(0x29a)](_0x19f466);const _0x526cdd={};_0x526cdd[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x526cdd[_0x93f400(0x2fb)]=_0x19f466,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x526cdd);const _0x26532b={};_0x26532b[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x2fd)],_0x26532b[_0x93f400(0x2fb)]=_0x93f400(0x2d1)+_0x15c734,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x26532b),await webSocketUtils[_0x93f400(0x270)](0x7d0);}catch(_0x3812a6){logger[_0x93f400(0x38a)]('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x3812a6+'\x20\x0a'+JSON[_0x93f400(0x236)](_0x3812a6[_0x93f400(0x272)]));if(_0x40a7c5[_0x93f400(0x3a5)](_0x40d8df,![]))try{logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x325)]),await _0x40a7c5['AqgeM'](removeGridComponents,_0x303202,_0x43fa61,_0x4e7579,_0x1c392d,_0x25cc66),await _0x4d89f2[_0x93f400(0x277)](_0x303202,global_registry[_0x93f400(0x39e)]);}catch(_0x1df9df){logger[_0x93f400(0x38a)](_0x93f400(0x2da)+_0x1df9df+'\x20\x0a'+JSON['stringify'](_0x1df9df[_0x93f400(0x272)]));}throw _0x3812a6;}}catch(_0x2621e6){const _0x385cc6=_0x93f400(0x300)+_0x2621e6+'\x20\x0a'+JSON[_0x93f400(0x236)](_0x2621e6[_0x93f400(0x272)]);if(_0x389e93){const _0x30fa37={};_0x30fa37[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x30fa37['message']=_0x385cc6,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x30fa37,_0x40a7c5[_0x93f400(0x2d8)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x168fef={};_0x168fef[_0x93f400(0x38a)]=_0x385cc6,await _0x40a7c5[_0x93f400(0x2f9)](sendInstrumentationEvent,_0x4046e7,_0x40a7c5['OvNJt'],messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x333)],_0x168fef,_0x4046e7),logger[_0x93f400(0x38a)](_0x385cc6);}process['exit'](0x0);};
@@ -1 +1 @@
1
- function a10_0xa3a0(_0x6164c,_0x204140){const _0x3e6677=a10_0x3e66();return a10_0xa3a0=function(_0xa3a0a1,_0x1014ef){_0xa3a0a1=_0xa3a0a1-0x14d;let _0x187275=_0x3e6677[_0xa3a0a1];return _0x187275;},a10_0xa3a0(_0x6164c,_0x204140);}const a10_0x217263=a10_0xa3a0;(function(_0x36bba3,_0x29a78f){const _0x255151=a10_0xa3a0,_0x4f29d5=_0x36bba3();while(!![]){try{const _0x58c713=-parseInt(_0x255151(0x15a))/0x1*(parseInt(_0x255151(0x156))/0x2)+parseInt(_0x255151(0x163))/0x3+parseInt(_0x255151(0x153))/0x4*(parseInt(_0x255151(0x161))/0x5)+parseInt(_0x255151(0x15c))/0x6+-parseInt(_0x255151(0x14f))/0x7*(-parseInt(_0x255151(0x160))/0x8)+-parseInt(_0x255151(0x162))/0x9*(-parseInt(_0x255151(0x159))/0xa)+-parseInt(_0x255151(0x150))/0xb*(parseInt(_0x255151(0x155))/0xc);if(_0x58c713===_0x29a78f)break;else _0x4f29d5['push'](_0x4f29d5['shift']());}catch(_0x3a06ee){_0x4f29d5['push'](_0x4f29d5['shift']());}}}(a10_0x3e66,0x3af87));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x217263(0x157));exports[a10_0x217263(0x158)]=a10_0x217263(0x14e),exports[a10_0x217263(0x15e)]='List\x20Grid\x20resources.',exports[a10_0x217263(0x15f)]=function(_0x48e851){const _0x202071=a10_0x217263,_0x6e0fff={};_0x6e0fff[_0x202071(0x151)]='delete_commands',_0x6e0fff[_0x202071(0x15b)]='help';const _0x485cb2=_0x6e0fff;return _0x48e851['usage'](HELP_HEADER_MESSAGE[_0x202071(0x14e)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x202071(0x15d)](_0x485cb2[_0x202071(0x151)])[_0x202071(0x14d)]()[_0x202071(0x164)]()[_0x202071(0x154)]()[_0x202071(0x152)](_0x485cb2[_0x202071(0x15b)]);},exports['handler']=function(_0x1f591a){};function a10_0x3e66(){const _0x257fe0=['commandDir','desc','builder','8TRkqKW','500450ZPECLn','11637UXgbFR','445389YzrJAT','recommendCommands','demandCommand','delete','3191342RHKRyb','99ObXFdg','gYEyl','help','4ZbUbYj','strict','1013316elebgk','82xmKzdo','../config/constants','command','2020GmIifk','1094qjRQuu','cnmZY','484434atQbjd'];a10_0x3e66=function(){return _0x257fe0;};return a10_0x3e66();}
1
+ function a10_0x28d5(){const _0x4b9db6=['usage','20NpZGnj','commandDir','5158TFMhQY','epilogue','command','3942719SXcccU','YKHhx','147AHrrbo','84gzWxKi','List\x20Grid\x20resources.','help','recommendCommands','desc','10486125pMNdwC','1864083aUHqCf','handler','33702AJoPMP','../config/constants','builder','3300070nJLslH','delete','TZVQQ','4aLivrb','1330336fkrXjX'];a10_0x28d5=function(){return _0x4b9db6;};return a10_0x28d5();}const a10_0x14fdbc=a10_0x4df1;(function(_0x548d82,_0x4fc383){const _0x51d125=a10_0x4df1,_0x1e2470=_0x548d82();while(!![]){try{const _0x9e0ec5=parseInt(_0x51d125(0x8f))/0x1*(-parseInt(_0x51d125(0x95))/0x2)+parseInt(_0x51d125(0x9b))/0x3+-parseInt(_0x51d125(0x8a))/0x4*(-parseInt(_0x51d125(0xa0))/0x5)+parseInt(_0x51d125(0x9d))/0x6*(parseInt(_0x51d125(0x94))/0x7)+parseInt(_0x51d125(0x8b))/0x8+-parseInt(_0x51d125(0x9a))/0x9+parseInt(_0x51d125(0x8d))/0xa*(parseInt(_0x51d125(0x92))/0xb);if(_0x9e0ec5===_0x4fc383)break;else _0x1e2470['push'](_0x1e2470['shift']());}catch(_0x1e4fb3){_0x1e2470['push'](_0x1e2470['shift']());}}}(a10_0x28d5,0xdbe71));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x14fdbc(0x9e));function a10_0x4df1(_0x116cf5,_0x4054bb){const _0x28d5b9=a10_0x28d5();return a10_0x4df1=function(_0x4df16f,_0x161a7a){_0x4df16f=_0x4df16f-0x89;let _0x5ee3fd=_0x28d5b9[_0x4df16f];return _0x5ee3fd;},a10_0x4df1(_0x116cf5,_0x4054bb);}exports[a10_0x14fdbc(0x91)]=a10_0x14fdbc(0xa1),exports[a10_0x14fdbc(0x99)]=a10_0x14fdbc(0x96),exports[a10_0x14fdbc(0x9f)]=function(_0x370d42){const _0x223130=a10_0x14fdbc,_0x43aa1b={};_0x43aa1b[_0x223130(0x93)]='delete_commands',_0x43aa1b[_0x223130(0x89)]=_0x223130(0x97);const _0x422aa4=_0x43aa1b;return _0x370d42[_0x223130(0x8c)](HELP_HEADER_MESSAGE[_0x223130(0xa1)])[_0x223130(0x90)](HELP_FOOTER_MESSAGE)[_0x223130(0x8e)](_0x422aa4[_0x223130(0x93)])['demandCommand']()[_0x223130(0x98)]()['strict']()[_0x223130(0x97)](_0x422aa4[_0x223130(0x89)]);},exports[a10_0x14fdbc(0x9c)]=function(_0x58e2bc){};
@@ -1 +1 @@
1
- function a11_0x25be(_0x43e67c,_0x29d626){const _0x420932=a11_0x4209();return a11_0x25be=function(_0x25bee5,_0x535030){_0x25bee5=_0x25bee5-0x118;let _0x4115b8=_0x420932[_0x25bee5];return _0x4115b8;},a11_0x25be(_0x43e67c,_0x29d626);}const a11_0x10eb2b=a11_0x25be;function a11_0x4209(){const _0x38576d=['1862808uppLOb','PqfIm','rlBOV','RnGgO','reconnecting-websocket','SezlE','message','readNamespace','hwunn','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','unauthorised','XGORS','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','stringify','name','string','rOkjZ','yscCn','existsSync','body','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','skip-tls-cert-verify','region','deleteCluster','connectionTimeout','18pQlTWc','Namespace:\x20','XSdhc','Gywoo','uuid','INFO','zoZbc','gridId','jWBIN','pamWV','ZnrGI','skipTlsCertVerify','BpUDB','TrBNP','eSeYY','../../config/logger','wTppZ','grid','jJEoZ','../../utils/gridComponents','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','mIvpF','password','6ENXknG','heSJi','../../utils/webSocketUtils','YswRU','VniSZ','706070OwSnYv','/packages/cli/grid/','nvuXl','clusterRegion','<UsernamePlaceholder>','pPEYd','WebSocket','\x22\x20and\x20ID\x20','exit','GfkMV','HJSNa','vLecw','AsANa','BZPpv','189712hALaoW','4YTMkDI','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','wMHtu','statusCode','pqJtc','ArODA','zXodr','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','argv','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','../../utils/userInput','HuKPg','../../config/constants','onlyGridInCluster','ysQzF','Pass\x20the\x20ID\x20of\x20the\x20Grid','unknown-error','zxMoZ','type','AMkfM','isClusterPresent','Browserstack','help','vrneP','NcpDE','error','stack','qFpXg','replace','ERROR','VxqJE','clusterName','Failed\x20to\x20delete\x20resources!\x20Error:\x20','Baful','desc','delete','338105NSSRxe','builder','options','ATGQJ','boolean','vLDWb','usage','toLowerCase','default','Cluster:\x20','epilogue','server-error','description','DELETE','rnVPE','handler','warn','info','clusterId','2074471shXitu','username','zqxwI','eWSMO','invalid-input','HcqPf','parse','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','readFileSync','ywGYg','NvXSs','1655590JqhOfk','requestId','345201hSbhUg','https://','got','uqVId','usgdN','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','IcwuF','isBrowserstackCluster','VZtgm'];a11_0x4209=function(){return _0x38576d;};return a11_0x4209();}(function(_0x2fadc4,_0x457d9f){const _0x319ff6=a11_0x25be,_0x1c6d6e=_0x2fadc4();while(!![]){try{const _0x2eae15=-parseInt(_0x319ff6(0x12a))/0x1+-parseInt(_0x319ff6(0x196))/0x2+parseInt(_0x319ff6(0x14a))/0x3*(parseInt(_0x319ff6(0x197))/0x4)+parseInt(_0x319ff6(0x188))/0x5+-parseInt(_0x319ff6(0x183))/0x6*(-parseInt(_0x319ff6(0x13d))/0x7)+-parseInt(_0x319ff6(0x153))/0x8+parseInt(_0x319ff6(0x16c))/0x9*(parseInt(_0x319ff6(0x148))/0xa);if(_0x2eae15===_0x457d9f)break;else _0x1c6d6e['push'](_0x1c6d6e['shift']());}catch(_0x413078){_0x1c6d6e['push'](_0x1c6d6e['shift']());}}}(a11_0x4209,0x35354));const fs=require('fs'),got=require(a11_0x10eb2b(0x14c)),{v4:uuidv4}=require(a11_0x10eb2b(0x170)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x10eb2b(0x157)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x10eb2b(0x1a3)),{logger}=require(a11_0x10eb2b(0x17b)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x10eb2b(0x17f)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x10eb2b(0x1a1)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x10eb2b(0x185));exports['command']=a11_0x10eb2b(0x17d),exports[a11_0x10eb2b(0x128)]='Delete\x20an\x20Automation\x20grid.',exports[a11_0x10eb2b(0x12b)]=function(_0x369ab4){const _0x4695a1=a11_0x10eb2b,_0x3c46e4={};_0x3c46e4[_0x4695a1(0x158)]=_0x4695a1(0x1a6),_0x3c46e4[_0x4695a1(0x19b)]=_0x4695a1(0x162),_0x3c46e4[_0x4695a1(0x18a)]='Skip\x20insecure\x20cert\x20verification.',_0x3c46e4[_0x4695a1(0x1a5)]=_0x4695a1(0x12e),_0x3c46e4[_0x4695a1(0x163)]=_0x4695a1(0x11c);const _0x3ad13e=_0x3c46e4,_0x3db88={};_0x3db88[_0x4695a1(0x136)]=_0x3ad13e['SezlE'],_0x3db88[_0x4695a1(0x118)]=_0x3ad13e['pqJtc'];const _0x5be540={};_0x5be540[_0x4695a1(0x136)]=_0x3ad13e['nvuXl'],_0x5be540['type']=_0x3ad13e[_0x4695a1(0x1a5)],_0x5be540[_0x4695a1(0x132)]=![];const _0x370658={};return _0x370658['grid-id']=_0x3db88,_0x370658[_0x4695a1(0x168)]=_0x5be540,_0x369ab4[_0x4695a1(0x130)](HELP_HEADER_MESSAGE[_0x4695a1(0x129)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4695a1(0x12c)](_0x370658)[_0x4695a1(0x11c)](_0x3ad13e[_0x4695a1(0x163)])[_0x4695a1(0x19f)];},exports[a11_0x10eb2b(0x139)]=async function(_0x4c1653){const _0xb3f946=a11_0x10eb2b,_0x4f2308={'Gywoo':_0xb3f946(0x1a6),'TAVjZ':'string','IJEXe':'Skip\x20insecure\x20cert\x20verification.','VxqJE':'boolean','jJEoZ':_0xb3f946(0x11c),'ATGQJ':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','wMHtu':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','eSeYY':function(_0x1524ab,_0x306bef){return _0x1524ab!==_0x306bef;},'zxMoZ':_0xb3f946(0x186),'zXodr':'Successfully\x20deleted\x20the\x20grid','yscCn':function(_0x412dd,_0x2aa44b){return _0x412dd!==_0x2aa44b;},'HcqPf':_0xb3f946(0x15b),'BZPpv':function(_0x2dd384){return _0x2dd384();},'rnVPE':'fPGfs','HuKPg':_0xb3f946(0x15f),'wTppZ':function(_0x24e647,_0x473745,_0x4cc9c6,_0x41a941,_0x3d3cd9,_0x39f2fd,_0x3dd746){return _0x24e647(_0x473745,_0x4cc9c6,_0x41a941,_0x3d3cd9,_0x39f2fd,_0x3dd746);},'usgdN':'delete-grid-called','eWSMO':'init-not-called','vLecw':function(_0x3142d7,_0x15394b){return _0x3142d7===_0x15394b;},'FxgYZ':'FoNxV','UvKlQ':function(_0x12683e,_0x4948d5,_0x53d146,_0x4b3718){return _0x12683e(_0x4948d5,_0x53d146,_0x4b3718);},'nWnWl':_0xb3f946(0x11b),'pamWV':'WdMVf','uqVId':function(_0x50d9e1,_0x1425c7){return _0x50d9e1(_0x1425c7);},'HJSNa':function(_0x1f112e,_0x170bbd){return _0x1f112e===_0x170bbd;},'XSdhc':'FBbig','AsANa':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','BpUDB':_0xb3f946(0x141),'PqfIm':'eSOuc','NvXSs':_0xb3f946(0x18c),'yzxxV':'<PasswordPlaceholder>','zoZbc':function(_0x29858f,_0x2aad40,_0x4a7467,_0x1bbf84,_0x5efc99,_0x5328e0,_0x2769a9){return _0x29858f(_0x2aad40,_0x4a7467,_0x1bbf84,_0x5efc99,_0x5328e0,_0x2769a9);},'IiBbS':function(_0xf8cc6f,_0x12863d,_0x280f68){return _0xf8cc6f(_0x12863d,_0x280f68);},'XGORS':function(_0x501cfa,_0x48cf16,_0x40886b,_0x395bf7,_0x11703c,_0x3cb743){return _0x501cfa(_0x48cf16,_0x40886b,_0x395bf7,_0x11703c,_0x3cb743);},'RnGgO':_0xb3f946(0x155),'vrneP':_0xb3f946(0x121),'TrBNP':function(_0x4fdc1b,_0x198e9e){return _0x4fdc1b===_0x198e9e;},'VZtgm':'PRONx','ZnrGI':_0xb3f946(0x187),'ywGYg':_0xb3f946(0x137),'Baful':function(_0x1ac099,_0x292fd2,_0x443b2c){return _0x1ac099(_0x292fd2,_0x443b2c);},'fokGF':function(_0x70a45e,_0x15e3be){return _0x70a45e!==_0x15e3be;},'ArODA':function(_0x1fee1d,_0x298e4d){return _0x1fee1d!==_0x298e4d;},'mIvpF':function(_0x488d36,_0x35a5a3,_0xd51cca,_0x318fe1,_0x1f8b9f,_0x308c69,_0x1fce82){return _0x488d36(_0x35a5a3,_0xd51cca,_0x318fe1,_0x1f8b9f,_0x308c69,_0x1fce82);},'AMkfM':_0xb3f946(0x135),'vLDWb':function(_0x33d862,_0x1cfb22){return _0x33d862===_0x1cfb22;},'IcwuF':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','jWBIN':function(_0x18e3af,_0x350d6e,_0x47bdbd,_0x158a69,_0x2012bf,_0x202362,_0x28a534){return _0x18e3af(_0x350d6e,_0x47bdbd,_0x158a69,_0x2012bf,_0x202362,_0x28a534);},'heSJi':_0xb3f946(0x15d),'GfkMV':function(_0x481eea,_0x5be135,_0xf251b8,_0x1a3202,_0x2d2aeb,_0x20cd0c,_0x3866cc){return _0x481eea(_0x5be135,_0xf251b8,_0x1a3202,_0x2d2aeb,_0x20cd0c,_0x3866cc);},'pPEYd':'invalid-grid-id','NcpDE':function(_0x4bdeef,_0x310d24,_0x56c2ee,_0x473e13,_0x952cd2,_0x4ca0d8,_0x18700a){return _0x4bdeef(_0x310d24,_0x56c2ee,_0x473e13,_0x952cd2,_0x4ca0d8,_0x18700a);},'eZnxi':function(_0x4daecb,_0x5e9b88,_0x48e5b2,_0x43d7ae,_0x5851b6,_0x38f37d,_0x5bcced){return _0x4daecb(_0x5e9b88,_0x48e5b2,_0x43d7ae,_0x5851b6,_0x38f37d,_0x5bcced);},'rypxi':_0xb3f946(0x1a7)};try{global_registry[_0xb3f946(0x149)]=_0x4f2308[_0xb3f946(0x195)](uuidv4);!fs[_0xb3f946(0x165)](_0x4f2308[_0xb3f946(0x195)](getCredentialsPath))&&(_0x4f2308[_0xb3f946(0x17a)](_0x4f2308[_0xb3f946(0x138)],_0x4f2308[_0xb3f946(0x138)])?_0x329525[_0xb3f946(0x13a)](_0xb3f946(0x133)+_0x2b3a26[_0xb3f946(0x125)]+_0xb3f946(0x1a0)):(console[_0xb3f946(0x11f)](_0x4f2308[_0xb3f946(0x1a2)]),await _0x4f2308['wTppZ'](sendInstrumentationEvent,_0x4c1653,_0x4f2308['usgdN'],messageTypes['ERROR'],_0x4f2308[_0xb3f946(0x140)],null,_0x4c1653),process[_0xb3f946(0x190)](0x1)));_0x4f2308[_0xb3f946(0x17c)](sendInstrumentationEvent,_0x4c1653,_0x4f2308[_0xb3f946(0x14e)],messageTypes[_0xb3f946(0x171)],null,null,_0x4c1653);if(!_0x4c1653['gridId']){if(_0x4f2308[_0xb3f946(0x193)](_0x4f2308['FxgYZ'],_0x4f2308['FxgYZ']))console['error'](_0x4f2308[_0xb3f946(0x12d)]),process[_0xb3f946(0x190)](0x1);else{const _0x4d8d89={};_0x4d8d89[_0xb3f946(0x136)]=_0x4f2308[_0xb3f946(0x16f)],_0x4d8d89[_0xb3f946(0x118)]=_0x4f2308['TAVjZ'];const _0x467d29={};_0x467d29['description']=_0x4f2308['IJEXe'],_0x467d29[_0xb3f946(0x118)]=_0x4f2308[_0xb3f946(0x124)],_0x467d29['default']=![];const _0x20e15b={};return _0x20e15b['grid-id']=_0x4d8d89,_0x20e15b[_0xb3f946(0x168)]=_0x467d29,_0x3534ff[_0xb3f946(0x130)](_0x2c4224['delete'])[_0xb3f946(0x134)](_0x4b76c0)['options'](_0x20e15b)[_0xb3f946(0x11c)](_0x4f2308[_0xb3f946(0x17e)])[_0xb3f946(0x19f)];}}const _0x29214e=JSON[_0xb3f946(0x143)](fs[_0xb3f946(0x145)](_0x4f2308[_0xb3f946(0x195)](getCredentialsPath))),[_0x1c48d0,_0x4183f9]=await _0x4f2308['UvKlQ'](getGridDetails,_0x29214e['Browserstack'][_0xb3f946(0x13e)],_0x29214e[_0xb3f946(0x11b)][_0xb3f946(0x182)],_0x4c1653[_0xb3f946(0x173)]);if(_0x4183f9){const _0x502fb9=_0x4183f9[_0xb3f946(0x13b)];let _0x56d973=_0xb3f946(0x14f)+_0x502fb9['name']+_0xb3f946(0x18f)+_0x502fb9['id']+_0xb3f946(0x15c);_0x4183f9['onlyGridInCluster']&&_0x4f2308['vLecw'](_0x4183f9['clusterSpawnedVia'],_0x4f2308['nWnWl'])&&(_0x4f2308[_0xb3f946(0x17a)](_0x4f2308[_0xb3f946(0x175)],_0x4f2308[_0xb3f946(0x175)])?(_0x4bcf18['error'](_0x4f2308['ATGQJ']),_0xf2dc60['exit'](0x1)):_0x56d973=_0xb3f946(0x14f)+_0x502fb9[_0xb3f946(0x161)]+_0xb3f946(0x18f)+_0x502fb9['id']+_0xb3f946(0x180)+_0x502fb9['clusterName']+'\x22\x20with\x20ID\x20'+_0x502fb9[_0xb3f946(0x13c)]+_0xb3f946(0x15c));const _0x59b8e8=await _0x4f2308[_0xb3f946(0x14d)](inputConfirmation,_0x56d973);(_0x4f2308[_0xb3f946(0x193)](_0x59b8e8,undefined)||_0x4f2308[_0xb3f946(0x193)](_0x59b8e8,null)||!(_0x4f2308['HJSNa'](_0x59b8e8[_0xb3f946(0x131)](),'y')||_0x4f2308[_0xb3f946(0x193)](_0x59b8e8[_0xb3f946(0x131)](),'n')))&&(_0x4f2308[_0xb3f946(0x193)](_0x4f2308[_0xb3f946(0x16e)],_0x4f2308[_0xb3f946(0x16e)])?(console[_0xb3f946(0x11f)](_0x4f2308[_0xb3f946(0x194)]),await _0x4f2308[_0xb3f946(0x17c)](sendInstrumentationEvent,_0x4c1653,_0x4f2308[_0xb3f946(0x14e)],messageTypes[_0xb3f946(0x123)],_0x4f2308[_0xb3f946(0x178)],null,_0x4c1653),process[_0xb3f946(0x190)](0x1)):_0x12a7ef['warn'](_0x4f2308['wMHtu']));_0x4f2308['HJSNa'](_0x59b8e8[_0xb3f946(0x131)](),'n')&&(_0x4f2308[_0xb3f946(0x17a)](_0x4f2308[_0xb3f946(0x154)],_0x4f2308[_0xb3f946(0x154)])?_0x1b2bbf=_0xb3f946(0x14f)+_0x57d053['name']+_0xb3f946(0x18f)+_0x4a3624['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x31c2ec['clusterName']+'\x22\x20with\x20ID\x20'+_0x3a3134[_0xb3f946(0x13c)]+_0xb3f946(0x15c):process[_0xb3f946(0x190)](0x0));const _0x1d03ab=WS_ENDPOINT['replace'](_0x4f2308[_0xb3f946(0x147)],_0x29214e[_0xb3f946(0x11b)][_0xb3f946(0x13e)])[_0xb3f946(0x122)](_0x4f2308['yzxxV'],_0x29214e['Browserstack'][_0xb3f946(0x182)]),_0x454917={};_0x454917[_0xb3f946(0x18e)]=ws,_0x454917[_0xb3f946(0x16b)]=0x36ee80;const _0x38c038=new ReconnectingWebSocket(_0x1d03ab,[],_0x454917);global_registry[_0xb3f946(0x18b)]=_0x502fb9[_0xb3f946(0x169)];const _0x1ca134=_0x502fb9['cloudProvider'],_0x3859b0=await _0x4f2308[_0xb3f946(0x172)](getCloudProviderObject,_0x1ca134,_0x502fb9[_0xb3f946(0x125)],_0x502fb9[_0xb3f946(0x161)],_0x38c038,webSocketUtils,_0x4c1653),_0x58ff04=await _0x3859b0[_0xb3f946(0x11a)]();if(_0x58ff04){const _0x17412a=_0x4f2308[_0xb3f946(0x14d)](kebabCase,_0x502fb9[_0xb3f946(0x161)]),[_0x20c88f,_0x505dc7,_0x30dd94,_0x28333a,_0x5d5ff7,_0x5ad1cb]=await _0x4f2308['IiBbS'](createK8sClient,_0x3859b0,_0x4c1653[_0xb3f946(0x177)]);let _0x4242e8=!![];const _0x579629={};_0x579629[_0xb3f946(0x161)]=_0x17412a,await _0x20c88f[_0xb3f946(0x15a)](_0x579629)['then'](_0x251188=>{const _0x11a00e=_0xb3f946;_0x4f2308[_0x11a00e(0x17a)](_0x4f2308[_0x11a00e(0x1a8)],_0x4f2308[_0x11a00e(0x1a8)])?_0x29503e[_0x11a00e(0x13b)](_0x11a00e(0x16d)+_0x210a5f+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):logger[_0x11a00e(0x13b)](_0x11a00e(0x16d)+_0x17412a+_0x11a00e(0x144));})['catch'](_0x4a83bb=>{const _0x5b7264=_0xb3f946,_0x213048={};_0x213048[_0x5b7264(0x13f)]=_0x4f2308[_0x5b7264(0x19d)];const _0x1cebfd=_0x213048;_0x4f2308[_0x5b7264(0x164)](_0x4f2308['HcqPf'],_0x4f2308[_0x5b7264(0x142)])?(_0x12a956[_0x5b7264(0x13b)](_0x1cebfd[_0x5b7264(0x13f)]),_0xb51c3f[_0x5b7264(0x190)](0x0)):(logger[_0x5b7264(0x13a)](_0x5b7264(0x16d)+_0x17412a+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x4242e8=![]);});if(_0x4242e8){await _0x4f2308[_0xb3f946(0x15e)](removeGridComponents,_0x20c88f,_0x505dc7,_0x30dd94,_0x28333a,_0x17412a);if(_0x4183f9[_0xb3f946(0x1a4)]){const _0x362551=await _0x3859b0[_0xb3f946(0x151)]();_0x362551?_0x4f2308[_0xb3f946(0x192)](_0x4f2308[_0xb3f946(0x156)],_0x4f2308[_0xb3f946(0x11d)])?(_0x217041[_0xb3f946(0x13a)]('Namespace:\x20'+_0x15c9b9+_0xb3f946(0x198)),_0x483078=![]):await _0x3859b0[_0xb3f946(0x16a)](_0x20c88f,_0x502fb9[_0xb3f946(0x169)]):_0x4f2308[_0xb3f946(0x179)](_0x4f2308[_0xb3f946(0x152)],_0x4f2308[_0xb3f946(0x176)])?_0x277f95[_0xb3f946(0x190)](0x0):logger[_0xb3f946(0x13a)]('Cluster:\x20'+_0x502fb9[_0xb3f946(0x125)]+_0xb3f946(0x1a0));}}}else logger[_0xb3f946(0x13a)](_0x4f2308[_0xb3f946(0x199)]);const _0x556f65=_0xb3f946(0x14b)+AG_API_URL+_0xb3f946(0x189)+_0x4c1653[_0xb3f946(0x173)],_0x2da821={'method':_0x4f2308[_0xb3f946(0x146)],'headers':_0x4f2308[_0xb3f946(0x127)](getAuthHeader,_0x29214e[_0xb3f946(0x11b)][_0xb3f946(0x13e)],_0x29214e[_0xb3f946(0x11b)][_0xb3f946(0x182)]),'throwHttpErrors':![]},_0x497659=await _0x4f2308['IiBbS'](got,_0x556f65,_0x2da821);_0x4f2308['fokGF'](_0x497659,null)&&_0x4f2308[_0xb3f946(0x19c)](_0x497659,undefined)&&_0x4f2308['HJSNa'](_0x497659[_0xb3f946(0x19a)],0xc8)&&(logger['info'](_0x4f2308[_0xb3f946(0x19d)]),process[_0xb3f946(0x190)](0x0)),logger['error'](_0xb3f946(0x167)+_0x497659[_0xb3f946(0x166)]),await _0x4f2308[_0xb3f946(0x181)](sendInstrumentationEvent,_0x4c1653,_0x4f2308[_0xb3f946(0x14e)],messageTypes[_0xb3f946(0x123)],_0x4f2308['AMkfM'],_0x1c48d0,_0x4c1653),process[_0xb3f946(0x190)](0x1);}_0x4f2308[_0xb3f946(0x12f)](_0x1c48d0[_0xb3f946(0x19a)],0x191)&&(logger['error'](_0x4f2308[_0xb3f946(0x150)]),await _0x4f2308[_0xb3f946(0x174)](sendInstrumentationEvent,_0x4c1653,_0x4f2308[_0xb3f946(0x14e)],messageTypes[_0xb3f946(0x123)],_0x4f2308[_0xb3f946(0x184)],null,_0x4c1653),process['exit'](0x1)),_0x4f2308[_0xb3f946(0x179)](_0x1c48d0[_0xb3f946(0x19a)],0x190)&&(logger[_0xb3f946(0x11f)](JSON[_0xb3f946(0x143)](_0x1c48d0[_0xb3f946(0x166)])[_0xb3f946(0x159)]),await _0x4f2308[_0xb3f946(0x191)](sendInstrumentationEvent,_0x4c1653,_0x4f2308['usgdN'],messageTypes[_0xb3f946(0x123)],_0x4f2308[_0xb3f946(0x18d)],null,_0x4c1653),process[_0xb3f946(0x190)](0x1)),logger[_0xb3f946(0x11f)](_0xb3f946(0x19e)+JSON[_0xb3f946(0x160)](_0x1c48d0)),await _0x4f2308[_0xb3f946(0x11e)](sendInstrumentationEvent,_0x4c1653,_0x4f2308['usgdN'],messageTypes[_0xb3f946(0x123)],_0x4f2308[_0xb3f946(0x119)],_0x1c48d0,_0x4c1653),process[_0xb3f946(0x190)](0x1);}catch(_0x2cae4c){logger['error'](_0xb3f946(0x126)+_0x2cae4c[_0xb3f946(0x120)]),await _0x4f2308['eZnxi'](sendInstrumentationEvent,_0x4c1653,_0x4f2308[_0xb3f946(0x14e)],messageTypes[_0xb3f946(0x123)],_0x4f2308['rypxi'],_0x2cae4c,_0x4c1653),process['exit'](0x1);}};
1
+ function a11_0x1f4c(_0x16cd9e,_0x453029){const _0x1556b7=a11_0x1556();return a11_0x1f4c=function(_0x1f4c92,_0x54433e){_0x1f4c92=_0x1f4c92-0x187;let _0x3c2788=_0x1556b7[_0x1f4c92];return _0x3c2788;},a11_0x1f4c(_0x16cd9e,_0x453029);}const a11_0x5976a2=a11_0x1f4c;function a11_0x1556(){const _0x3fe7f5=['cloudProvider','ojfvr','qsuSd','nKGVE','../../utils/userInput','statusCode','3300300YYldlz','/packages/cli/grid/','wWuWv','desc','builder','got','waNQw','unauthorised','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','clusterId','<UsernamePlaceholder>','warn','boolean','817686zqgLhQ','clusterSpawnedVia','BPzro','rcCiq','QqSgC','invalid-grid-id','3066bagcHL','Ioirx','UQOng','type','default','epilogue','clusterRegion','isBrowserstackCluster','FenGf','NZGZV','LRhPv','ecpze','string','KUWUE','../../config/logger','toLowerCase','body','2919mjLlbH','argv','ERROR','readNamespace','UdlQs','options','requestId','kpkKh','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','gaMdQ','exit','skip-tls-cert-verify','QJfNE','Failed\x20to\x20delete\x20resources!\x20Error:\x20','delete','IcnUb','UKUdV','username','../../utils/utilityMethods','skipTlsCertVerify','description','XLIaF','isClusterPresent','TFxDq','readFileSync','LiGcz','parse','Delete\x20an\x20Automation\x20grid.','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','gridId','error','NieMl','rgqbw','LhjFt','ZeFVB','ZCMjS','server-error','usage','WebSocket','clusterName','xXQkT','init-not-called','command','Namespace:\x20','599qajdvg','WhNeo','XGoRC','https://','../../cloudproviders/utils','catch','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','BNZNt','help','Browserstack','1720XDNYeq','QrDSw','region','LSmPe','Cluster:\x20','GAhQf','../../utils/instrumentationUtils','<PasswordPlaceholder>','reconnecting-websocket','existsSync','gzWzz','VEQuf','../../utils/gridComponents','OwgTY','PfUFb','onlyGridInCluster','info','../../utils/createk8sClient','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','rOkMo','Skip\x20insecure\x20cert\x20verification.','UNlAf','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../config/constants','invalid-input','replace','uuid','WTKeI','2838010eIVNfA','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','then','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','\x22\x20and\x20ID\x20','OAVAE','32WNQHzH','../../utils/webSocketUtils','5267361HuAGvw','Successfully\x20deleted\x20the\x20grid','142TEXqUD','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','grid-id','grid','delete-grid-called','Epyer','2320KzOfNJ','password','Pass\x20the\x20ID\x20of\x20the\x20Grid','JYtJi','name','fjbCy','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','QKXXc','WYIIr','SLCbG','RDWex','\x22\x20with\x20ID\x20','GhUGY','pvJil','uMZBS','VaZKb','message','zjeMn','JnDGu','connectionTimeout','HsQRb'];a11_0x1556=function(){return _0x3fe7f5;};return a11_0x1556();}(function(_0x1f8daf,_0x448fff){const _0xb1605f=a11_0x1f4c,_0x3b1818=_0x1f8daf();while(!![]){try{const _0x4752c7=parseInt(_0xb1605f(0x18f))/0x1*(-parseInt(_0xb1605f(0x1bf))/0x2)+-parseInt(_0xb1605f(0x204))/0x3*(parseInt(_0xb1605f(0x199))/0x4)+-parseInt(_0xb1605f(0x1c5))/0x5*(parseInt(_0xb1605f(0x1f3))/0x6)+parseInt(_0xb1605f(0x1b5))/0x7+parseInt(_0xb1605f(0x1bb))/0x8*(parseInt(_0xb1605f(0x1ed))/0x9)+-parseInt(_0xb1605f(0x1e0))/0xa+parseInt(_0xb1605f(0x1bd))/0xb;if(_0x4752c7===_0x448fff)break;else _0x3b1818['push'](_0x3b1818['shift']());}catch(_0x45dcea){_0x3b1818['push'](_0x3b1818['shift']());}}}(a11_0x1556,0x359fc));const fs=require('fs'),got=require(a11_0x5976a2(0x1e5)),{v4:uuidv4}=require(a11_0x5976a2(0x1b3)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x5976a2(0x1a1)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x5976a2(0x1b0)),{logger}=require(a11_0x5976a2(0x201)),{getCloudProviderObject}=require(a11_0x5976a2(0x193)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x5976a2(0x1a5)),{sendInstrumentationEvent}=require(a11_0x5976a2(0x19f)),{inputConfirmation}=require(a11_0x5976a2(0x1de)),{createK8sClient}=require(a11_0x5976a2(0x1aa)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x5976a2(0x217)),webSocketUtils=require(a11_0x5976a2(0x1bc));exports[a11_0x5976a2(0x18d)]=a11_0x5976a2(0x1c2),exports[a11_0x5976a2(0x1e3)]=a11_0x5976a2(0x220),exports[a11_0x5976a2(0x1e4)]=function(_0x5bc05d){const _0x360e40=a11_0x5976a2,_0x3a3f83={};_0x3a3f83[_0x360e40(0x228)]=_0x360e40(0x1c7),_0x3a3f83[_0x360e40(0x1d3)]=_0x360e40(0x1ff),_0x3a3f83['fjbCy']=_0x360e40(0x1ad),_0x3a3f83[_0x360e40(0x227)]=_0x360e40(0x1ec),_0x3a3f83['DNKsv']=_0x360e40(0x197);const _0x3a6317=_0x3a3f83,_0x1d45bf={};_0x1d45bf[_0x360e40(0x219)]=_0x3a6317[_0x360e40(0x228)],_0x1d45bf[_0x360e40(0x1f6)]=_0x3a6317['uMZBS'];const _0x192e91={};_0x192e91['description']=_0x3a6317[_0x360e40(0x1ca)],_0x192e91[_0x360e40(0x1f6)]=_0x3a6317[_0x360e40(0x227)],_0x192e91[_0x360e40(0x1f7)]=![];const _0x19c4f7={};return _0x19c4f7[_0x360e40(0x1c1)]=_0x1d45bf,_0x19c4f7[_0x360e40(0x210)]=_0x192e91,_0x5bc05d[_0x360e40(0x188)](HELP_HEADER_MESSAGE['delete'])[_0x360e40(0x1f8)](HELP_FOOTER_MESSAGE)[_0x360e40(0x209)](_0x19c4f7)[_0x360e40(0x197)](_0x3a6317['DNKsv'])[_0x360e40(0x205)];},exports['handler']=async function(_0x56620a){const _0x428c87=a11_0x5976a2,_0x451d27={'BPzro':_0x428c87(0x195),'PfUFb':_0x428c87(0x1c7),'ojfvr':'string','gaMdQ':_0x428c87(0x1ad),'gzWzz':_0x428c87(0x1ec),'IcnUb':_0x428c87(0x197),'vaadZ':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Ioirx':function(_0x3e3c8c,_0x39f2c2){return _0x3e3c8c===_0x39f2c2;},'JYtJi':_0x428c87(0x1d9),'xXQkT':function(_0x83f75d,_0x2604ee){return _0x83f75d!==_0x2604ee;},'rcCiq':_0x428c87(0x1d2),'QJfNE':_0x428c87(0x1e2),'QqSgC':_0x428c87(0x1be),'LPlIM':function(_0x52c63f){return _0x52c63f();},'JnDGu':function(_0x4aa79b){return _0x4aa79b();},'FenGf':_0x428c87(0x1fc),'XLIaF':_0x428c87(0x215),'UQOng':_0x428c87(0x1af),'VEQuf':function(_0x4b4634,_0xd8004c,_0x3171ae,_0xb04607,_0x49df62,_0x4580ba,_0x21a439){return _0x4b4634(_0xd8004c,_0x3171ae,_0xb04607,_0x49df62,_0x4580ba,_0x21a439);},'BNZNt':_0x428c87(0x1c3),'NieMl':_0x428c87(0x18c),'Epyer':function(_0x5a23b2,_0x1c3ad7,_0x4caebb,_0x5ddf82,_0x2b4937,_0x13c81c,_0xe9c2ae){return _0x5a23b2(_0x1c3ad7,_0x4caebb,_0x5ddf82,_0x2b4937,_0x13c81c,_0xe9c2ae);},'RDWex':_0x428c87(0x225),'WhNeo':function(_0x4147cd){return _0x4147cd();},'kpkKh':function(_0x1b37d4,_0x553180,_0x456fea,_0x541d23){return _0x1b37d4(_0x553180,_0x456fea,_0x541d23);},'UdlQs':'Browserstack','rOkMo':_0x428c87(0x200),'ffQEo':function(_0x5921da,_0x5e9a1c){return _0x5921da(_0x5e9a1c);},'GAhQf':function(_0x56ce85,_0x3ec29f){return _0x56ce85===_0x3ec29f;},'VaZKb':'eihNO','ecpze':_0x428c87(0x1ab),'LRhPv':_0x428c87(0x1b1),'QrDSw':function(_0x516725,_0x4b398b){return _0x516725!==_0x4b398b;},'OwgTY':'ySlEP','erytT':_0x428c87(0x1ea),'KyVUI':_0x428c87(0x1a0),'qsuSd':function(_0x59f87f,_0x43dcb4,_0x32bf69){return _0x59f87f(_0x43dcb4,_0x32bf69);},'XGoRC':function(_0x304da5,_0x413287,_0x27b8e3,_0x1a8ea3,_0x2ba947,_0x5ea541){return _0x304da5(_0x413287,_0x27b8e3,_0x1a8ea3,_0x2ba947,_0x5ea541);},'WYIIr':_0x428c87(0x21c),'LiGcz':_0x428c87(0x1cc),'zjeMn':_0x428c87(0x19c),'WTKeI':_0x428c87(0x1dd),'UJzNN':'DELETE','IaCiZ':function(_0x17d157,_0x24590d,_0x5f1126){return _0x17d157(_0x24590d,_0x5f1126);},'LhjFt':_0x428c87(0x187),'GhUGY':function(_0x1d8dc4,_0x571923){return _0x1d8dc4===_0x571923;},'SLCbG':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','waNQw':_0x428c87(0x1e7),'UNlAf':_0x428c87(0x1f2),'OAVAE':function(_0x3fe386,_0x1c83b0,_0x362252,_0x97d42b,_0x4e64af,_0x2745bc,_0x337714){return _0x3fe386(_0x1c83b0,_0x362252,_0x97d42b,_0x4e64af,_0x2745bc,_0x337714);},'FDGDR':function(_0x517b1b,_0x38b88e,_0x4aead9,_0x5bab50,_0x3d8c4e,_0x5d69ea,_0x599c85){return _0x517b1b(_0x38b88e,_0x4aead9,_0x5bab50,_0x3d8c4e,_0x5d69ea,_0x599c85);},'MEyWY':'unknown-error'};try{global_registry[_0x428c87(0x20a)]=_0x451d27['LPlIM'](uuidv4);!fs[_0x428c87(0x1a2)](_0x451d27[_0x428c87(0x1d7)](getCredentialsPath))&&(_0x451d27['Ioirx'](_0x451d27[_0x428c87(0x1fb)],_0x451d27[_0x428c87(0x21a)])?_0x39cff1[_0x428c87(0x20f)](0x0):(console['error'](_0x451d27[_0x428c87(0x1f5)]),await _0x451d27[_0x428c87(0x1a4)](sendInstrumentationEvent,_0x56620a,_0x451d27[_0x428c87(0x196)],messageTypes[_0x428c87(0x206)],_0x451d27[_0x428c87(0x224)],null,_0x56620a),process[_0x428c87(0x20f)](0x1)));_0x451d27[_0x428c87(0x1c4)](sendInstrumentationEvent,_0x56620a,_0x451d27[_0x428c87(0x196)],messageTypes['INFO'],null,null,_0x56620a);!_0x56620a['gridId']&&(_0x451d27[_0x428c87(0x18b)](_0x451d27[_0x428c87(0x1cf)],_0x451d27[_0x428c87(0x1cf)])?_0xd5e04b[_0x428c87(0x1eb)](_0x451d27[_0x428c87(0x1ef)]):(console[_0x428c87(0x223)](_0x451d27['vaadZ']),process[_0x428c87(0x20f)](0x1)));const _0x6a5379=JSON[_0x428c87(0x21f)](fs[_0x428c87(0x21d)](_0x451d27[_0x428c87(0x190)](getCredentialsPath))),[_0x2a3405,_0xa92114]=await _0x451d27[_0x428c87(0x20b)](getGridDetails,_0x6a5379['Browserstack'][_0x428c87(0x216)],_0x6a5379[_0x428c87(0x198)][_0x428c87(0x1c6)],_0x56620a[_0x428c87(0x222)]);if(_0xa92114){const _0x4e6a98=_0xa92114[_0x428c87(0x1a9)];let _0x44cb71=_0x428c87(0x221)+_0x4e6a98[_0x428c87(0x1c9)]+_0x428c87(0x1b9)+_0x4e6a98['id']+_0x428c87(0x1b6);if(_0xa92114[_0x428c87(0x1a8)]&&_0x451d27[_0x428c87(0x1f4)](_0xa92114[_0x428c87(0x1ee)],_0x451d27[_0x428c87(0x208)])){if(_0x451d27['xXQkT'](_0x451d27[_0x428c87(0x1ac)],_0x451d27[_0x428c87(0x1ac)])){const _0x6fd9b7={};_0x6fd9b7['description']=_0x451d27[_0x428c87(0x1a7)],_0x6fd9b7[_0x428c87(0x1f6)]=_0x451d27[_0x428c87(0x1db)];const _0x50a0c3={};_0x50a0c3[_0x428c87(0x219)]=_0x451d27[_0x428c87(0x20e)],_0x50a0c3[_0x428c87(0x1f6)]=_0x451d27[_0x428c87(0x1a3)],_0x50a0c3[_0x428c87(0x1f7)]=![];const _0x2631a4={};return _0x2631a4[_0x428c87(0x1c1)]=_0x6fd9b7,_0x2631a4[_0x428c87(0x210)]=_0x50a0c3,_0x5760a0[_0x428c87(0x188)](_0x7becea[_0x428c87(0x213)])[_0x428c87(0x1f8)](_0x2c0150)['options'](_0x2631a4)['help'](_0x451d27[_0x428c87(0x214)])[_0x428c87(0x205)];}else _0x44cb71=_0x428c87(0x221)+_0x4e6a98[_0x428c87(0x1c9)]+'\x22\x20and\x20ID\x20'+_0x4e6a98['id']+_0x428c87(0x1cb)+_0x4e6a98[_0x428c87(0x18a)]+'\x22\x20with\x20ID\x20'+_0x4e6a98[_0x428c87(0x1e9)]+_0x428c87(0x1b6);}const _0x3ed252=await _0x451d27['ffQEo'](inputConfirmation,_0x44cb71);(_0x451d27[_0x428c87(0x1f4)](_0x3ed252,undefined)||_0x451d27[_0x428c87(0x1f4)](_0x3ed252,null)||!(_0x451d27[_0x428c87(0x19e)](_0x3ed252[_0x428c87(0x202)](),'y')||_0x451d27['Ioirx'](_0x3ed252[_0x428c87(0x202)](),'n')))&&(_0x451d27[_0x428c87(0x18b)](_0x451d27['VaZKb'],_0x451d27[_0x428c87(0x1d4)])?_0x170b80[_0x428c87(0x1a9)](_0x428c87(0x18e)+_0x30fc44+_0x428c87(0x1b8)):(console[_0x428c87(0x223)](_0x451d27[_0x428c87(0x1fe)]),await _0x451d27[_0x428c87(0x1c4)](sendInstrumentationEvent,_0x56620a,_0x451d27['BNZNt'],messageTypes['ERROR'],_0x451d27[_0x428c87(0x1fd)],null,_0x56620a),process[_0x428c87(0x20f)](0x1)));_0x451d27[_0x428c87(0x1f4)](_0x3ed252[_0x428c87(0x202)](),'n')&&(_0x451d27[_0x428c87(0x19a)](_0x451d27[_0x428c87(0x1a6)],_0x451d27[_0x428c87(0x1a6)])?(_0x217a58['error'](_0x451d27['vaadZ']),_0x3ccbc0['exit'](0x1)):process[_0x428c87(0x20f)](0x0));const _0x31c909=WS_ENDPOINT[_0x428c87(0x1b2)](_0x451d27['erytT'],_0x6a5379[_0x428c87(0x198)]['username'])[_0x428c87(0x1b2)](_0x451d27['KyVUI'],_0x6a5379[_0x428c87(0x198)][_0x428c87(0x1c6)]),_0x352298={};_0x352298[_0x428c87(0x189)]=ws,_0x352298[_0x428c87(0x1d8)]=0x36ee80;const _0x5c40ad=new ReconnectingWebSocket(_0x31c909,[],_0x352298);global_registry[_0x428c87(0x1f9)]=_0x4e6a98[_0x428c87(0x19b)];const _0x33af28=_0x4e6a98[_0x428c87(0x1da)],_0x56f726=await _0x451d27[_0x428c87(0x1a4)](getCloudProviderObject,_0x33af28,_0x4e6a98[_0x428c87(0x18a)],_0x4e6a98[_0x428c87(0x1c9)],_0x5c40ad,webSocketUtils,_0x56620a),_0x190273=await _0x56f726[_0x428c87(0x21b)]();if(_0x190273){const _0x125e8f=_0x451d27['ffQEo'](kebabCase,_0x4e6a98[_0x428c87(0x1c9)]),[_0x2dd956,_0x181808,_0xe768ca,_0x29082b,_0x10f0d7,_0x351539]=await _0x451d27[_0x428c87(0x1dc)](createK8sClient,_0x56f726,_0x56620a[_0x428c87(0x218)]);let _0x507c96=!![];const _0x5df83d={};_0x5df83d[_0x428c87(0x1c9)]=_0x125e8f,await _0x2dd956[_0x428c87(0x207)](_0x5df83d)[_0x428c87(0x1b7)](_0x592cd1=>{const _0x329b35=_0x428c87;_0x451d27[_0x329b35(0x1f4)](_0x451d27[_0x329b35(0x1c8)],_0x451d27['JYtJi'])?logger[_0x329b35(0x1a9)](_0x329b35(0x18e)+_0x125e8f+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):_0x4ae54b=_0x329b35(0x221)+_0x3c32ec['name']+_0x329b35(0x1b9)+_0x5de012['id']+_0x329b35(0x1cb)+_0x2e6cd9[_0x329b35(0x18a)]+_0x329b35(0x1d0)+_0x4333c7[_0x329b35(0x1e9)]+_0x329b35(0x1b6);})[_0x428c87(0x194)](_0x443604=>{const _0x5c2f17=_0x428c87;_0x451d27[_0x5c2f17(0x18b)](_0x451d27[_0x5c2f17(0x1f0)],_0x451d27[_0x5c2f17(0x211)])?(logger['warn'](_0x5c2f17(0x18e)+_0x125e8f+_0x5c2f17(0x1e8)),_0x507c96=![]):_0x527724['warn'](_0x5c2f17(0x19d)+_0x2b63d0['clusterName']+_0x5c2f17(0x1c0));});if(_0x507c96){await _0x451d27[_0x428c87(0x191)](removeGridComponents,_0x2dd956,_0x181808,_0xe768ca,_0x29082b,_0x125e8f);if(_0xa92114[_0x428c87(0x1a8)]){const _0xe0a13c=await _0x56f726[_0x428c87(0x1fa)]();_0xe0a13c?_0x451d27['xXQkT'](_0x451d27[_0x428c87(0x1cd)],_0x451d27[_0x428c87(0x21e)])?await _0x56f726['deleteCluster'](_0x2dd956,_0x4e6a98['region']):(_0x32d5c2[_0x428c87(0x1a9)](_0x451d27[_0x428c87(0x1f1)]),_0x56fa1e[_0x428c87(0x20f)](0x0)):_0x451d27[_0x428c87(0x19e)](_0x451d27[_0x428c87(0x1d6)],_0x451d27[_0x428c87(0x1b4)])?(_0x25bbd4[_0x428c87(0x1eb)](_0x428c87(0x18e)+_0x18c136+_0x428c87(0x1e8)),_0x177e3a=![]):logger[_0x428c87(0x1eb)](_0x428c87(0x19d)+_0x4e6a98['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger[_0x428c87(0x1eb)](_0x451d27['BPzro']);const _0x53426d=_0x428c87(0x192)+AG_API_URL+_0x428c87(0x1e1)+_0x56620a[_0x428c87(0x222)],_0x423230={'method':_0x451d27['UJzNN'],'headers':_0x451d27[_0x428c87(0x1dc)](getAuthHeader,_0x6a5379[_0x428c87(0x198)]['username'],_0x6a5379['Browserstack']['password']),'throwHttpErrors':![]},_0x5af010=await _0x451d27['IaCiZ'](got,_0x53426d,_0x423230);_0x451d27[_0x428c87(0x18b)](_0x5af010,null)&&_0x451d27[_0x428c87(0x18b)](_0x5af010,undefined)&&_0x451d27[_0x428c87(0x1f4)](_0x5af010[_0x428c87(0x1df)],0xc8)&&(logger[_0x428c87(0x1a9)](_0x451d27[_0x428c87(0x1f1)]),process['exit'](0x0)),logger['error']('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x5af010[_0x428c87(0x203)]),await _0x451d27['Epyer'](sendInstrumentationEvent,_0x56620a,_0x451d27[_0x428c87(0x196)],messageTypes[_0x428c87(0x206)],_0x451d27[_0x428c87(0x226)],_0x2a3405,_0x56620a),process[_0x428c87(0x20f)](0x1);}_0x451d27[_0x428c87(0x1d1)](_0x2a3405[_0x428c87(0x1df)],0x191)&&(logger[_0x428c87(0x223)](_0x451d27[_0x428c87(0x1ce)]),await _0x451d27[_0x428c87(0x1a4)](sendInstrumentationEvent,_0x56620a,_0x451d27[_0x428c87(0x196)],messageTypes[_0x428c87(0x206)],_0x451d27[_0x428c87(0x1e6)],null,_0x56620a),process['exit'](0x1)),_0x451d27[_0x428c87(0x19e)](_0x2a3405[_0x428c87(0x1df)],0x190)&&(logger[_0x428c87(0x223)](JSON[_0x428c87(0x21f)](_0x2a3405[_0x428c87(0x203)])[_0x428c87(0x1d5)]),await _0x451d27['Epyer'](sendInstrumentationEvent,_0x56620a,_0x451d27[_0x428c87(0x196)],messageTypes['ERROR'],_0x451d27[_0x428c87(0x1ae)],null,_0x56620a),process[_0x428c87(0x20f)](0x1)),logger[_0x428c87(0x223)](_0x428c87(0x20d)+JSON[_0x428c87(0x20c)](_0x2a3405)),await _0x451d27[_0x428c87(0x1ba)](sendInstrumentationEvent,_0x56620a,_0x451d27['BNZNt'],messageTypes['ERROR'],_0x451d27[_0x428c87(0x226)],_0x2a3405,_0x56620a),process[_0x428c87(0x20f)](0x1);}catch(_0x5e8836){logger[_0x428c87(0x223)](_0x428c87(0x212)+_0x5e8836['stack']),await _0x451d27['FDGDR'](sendInstrumentationEvent,_0x56620a,_0x451d27[_0x428c87(0x196)],messageTypes[_0x428c87(0x206)],_0x451d27['MEyWY'],_0x5e8836,_0x56620a),process[_0x428c87(0x20f)](0x1);}};
@@ -1 +1 @@
1
- const a12_0x45b649=a12_0x2b16;function a12_0x2b16(_0x18fc26,_0x4a3752){const _0x20c25e=a12_0x20c2();return a12_0x2b16=function(_0x2b160f,_0x1c6b16){_0x2b160f=_0x2b160f-0xa4;let _0x160599=_0x20c25e[_0x2b160f];return _0x160599;},a12_0x2b16(_0x18fc26,_0x4a3752);}function a12_0x20c2(){const _0x50d705=['NbVeW','aHZce','../utils/utilityMethods','ERROR','FMlCr','BROWSERSTACK_USERNAME','desc','3399636VGBhCI','ypYVj','stack','hUdQU','2083788ylmetw','Browserstack','handler','init-called','ufoYA','writeFileSync','78cDpFph','statusCode','recommendCommands','init','help','mkdirSync','SUILz','epilogue','rJvJx','sDKhA','CpEmh','CNyCd','GET','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','WVwzZ','argv','7494054zwofZd','bstack-username','debug','lBJNB','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','ndaFC','requestId','LWAgx','exit','xvNnv','type','bstackUsername','env','lPGWj','PSmOK','error','816381ADntHh','description','vmqVH','1483500fTaeyd','stringify','bstackAccesskey','strict','AyDlT','40eQUeSE','OfShl','existsSync','../utils/userInput','oNRqO','../config/logger','mbjnl','DSNwz','ZRpxf','FTCqn','91829eUmOqO','password','options','xogTF','77uNoPko','HINrP','41067VyuECj','../utils/instrumentationUtils','KqmJA','5jXDYKw','FFOSO','/automate/plan.json','SwFOX','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','INFO','command','bstack-accesskey','plOEh','kWYZR','parse','string','Kvsic','qewdu','https://','EzTsz','BROWSERSTACK_ACCESS_KEY','ZyXHl','DpfUM','CqspJ','olwun','username','TOEQL','GKCba','usage','oEPTP','MhftN','hIVAO'];a12_0x20c2=function(){return _0x50d705;};return a12_0x20c2();}(function(_0x301874,_0x5ab592){const _0x18ee09=a12_0x2b16,_0xe8d891=_0x301874();while(!![]){try{const _0x469ef3=parseInt(_0x18ee09(0xfc))/0x1+parseInt(_0x18ee09(0xca))/0x2*(-parseInt(_0x18ee09(0x102))/0x3)+-parseInt(_0x18ee09(0xc0))/0x4*(-parseInt(_0x18ee09(0x105))/0x5)+parseInt(_0x18ee09(0xda))/0x6+-parseInt(_0x18ee09(0xc4))/0x7+parseInt(_0x18ee09(0xf2))/0x8*(parseInt(_0x18ee09(0xea))/0x9)+-parseInt(_0x18ee09(0xed))/0xa*(parseInt(_0x18ee09(0x100))/0xb);if(_0x469ef3===_0x5ab592)break;else _0xe8d891['push'](_0xe8d891['shift']());}catch(_0x535c7f){_0xe8d891['push'](_0xe8d891['shift']());}}}(a12_0x20c2,0xbd08f));const fs=require('fs'),util=require('util'),got=require('got'),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x45b649(0xf7)),{inputBstackKeys}=require(a12_0x45b649(0xf5)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x45b649(0xbb)),{sendInstrumentationEvent}=require(a12_0x45b649(0x103));exports[a12_0x45b649(0x10b)]='init',exports[a12_0x45b649(0xbf)]=a12_0x45b649(0xde),exports['builder']=function(_0x5796d8){const _0xf9d93=a12_0x45b649,_0x25339c={};_0x25339c['lBJNB']=_0xf9d93(0xd7),_0x25339c[_0xf9d93(0xf6)]=_0xf9d93(0xa8),_0x25339c[_0xf9d93(0xc8)]=_0xf9d93(0x109),_0x25339c['yCyvo']=_0xf9d93(0xce);const _0x4731e7=_0x25339c,_0x574409={};_0x574409['description']=_0x4731e7[_0xf9d93(0xdd)],_0x574409['type']=_0x4731e7[_0xf9d93(0xf6)];const _0x48b1a6={};_0x48b1a6['description']=_0x4731e7['ufoYA'],_0x48b1a6[_0xf9d93(0xe4)]=_0x4731e7[_0xf9d93(0xf6)];const _0x35dc53={};return _0x35dc53[_0xf9d93(0xdb)]=_0x574409,_0x35dc53[_0xf9d93(0xa4)]=_0x48b1a6,_0x5796d8[_0xf9d93(0xb5)](HELP_HEADER_MESSAGE[_0xf9d93(0xcd)])[_0xf9d93(0xd1)](HELP_FOOTER_MESSAGE)[_0xf9d93(0xfe)](_0x35dc53)[_0xf9d93(0xcc)]()[_0xf9d93(0xf0)]()[_0xf9d93(0xce)](_0x4731e7['yCyvo'])['argv'];},exports[a12_0x45b649(0xc6)]=async function(_0x5c3182){const _0x45fb99=a12_0x45b649,_0xaca257={'PSmOK':function(_0x34093c){return _0x34093c();},'WVwzZ':'utf-8','ypYVj':_0x45fb99(0xd7),'Kvsic':_0x45fb99(0xa8),'HINrP':_0x45fb99(0x109),'CqspJ':_0x45fb99(0xce),'rJvJx':function(_0xceb476,_0x475ecd,_0x1854e6,_0x431713,_0x2ff5d4,_0x27f0c7,_0x30371d){return _0xceb476(_0x475ecd,_0x1854e6,_0x431713,_0x2ff5d4,_0x27f0c7,_0x30371d);},'ZyXHl':_0x45fb99(0xc7),'FTCqn':function(_0xd527fb){return _0xd527fb();},'mbjnl':function(_0x57c795,_0x5dc878){return _0x57c795===_0x5dc878;},'TOEQL':_0x45fb99(0xb7),'hUdQU':_0x45fb99(0xfa),'qewdu':function(_0x546212,_0xb7f8f7){return _0x546212===_0xb7f8f7;},'aHZce':'OCIjB','vmqVH':function(_0xc93137,_0x15dbf7){return _0xc93137===_0x15dbf7;},'lPGWj':_0x45fb99(0xf9),'DpfUM':_0x45fb99(0xb8),'xogTF':function(_0x30c125,_0x61cda4){return _0x30c125!==_0x61cda4;},'AyDlT':_0x45fb99(0xa5),'ndaFC':function(_0x4264fd,_0x1862e1){return _0x4264fd!==_0x1862e1;},'SUILz':_0x45fb99(0xd4),'xvNnv':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','sDKhA':function(_0x39179f){return _0x39179f();},'kWYZR':_0x45fb99(0xd6),'LWAgx':function(_0x1a2ef2,_0x279ed2,_0x55d4a6){return _0x1a2ef2(_0x279ed2,_0x55d4a6);},'EzTsz':function(_0x52248c,_0x11ea0a){return _0x52248c!==_0x11ea0a;},'FFOSO':function(_0xf7c5e6,_0x5cf482){return _0xf7c5e6===_0x5cf482;},'dPLMG':_0x45fb99(0xd5),'NbVeW':_0x45fb99(0xb1),'RWrxO':function(_0x1be263){return _0x1be263();},'oEPTP':function(_0xa65f3,_0x549106){return _0xa65f3!==_0x549106;},'OfShl':_0x45fb99(0xb4),'KqmJA':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','kNGny':function(_0xd481f4,_0x470268,_0x2331b9,_0x2b7696,_0x16ffd4,_0x51687c,_0x259591){return _0xd481f4(_0x470268,_0x2331b9,_0x2b7696,_0x16ffd4,_0x51687c,_0x259591);},'NSEGQ':'wrong-creds','FMlCr':function(_0x263a0a,_0x53b6e0,_0x15b553,_0x46c0a6,_0x1d376e,_0x30cc37,_0x2e8c7a){return _0x263a0a(_0x53b6e0,_0x15b553,_0x46c0a6,_0x1d376e,_0x30cc37,_0x2e8c7a);},'SwFOX':'unknown-error'};try{global_registry[_0x45fb99(0xe0)]=_0xaca257[_0x45fb99(0xe8)](uuidv4),_0xaca257[_0x45fb99(0xd2)](sendInstrumentationEvent,_0x5c3182,_0xaca257[_0x45fb99(0xae)],messageTypes[_0x45fb99(0x10a)],null,null,_0x5c3182);const _0x3f25b8=_0xaca257[_0x45fb99(0xfb)](getDirForConfig);if(!fs[_0x45fb99(0xf4)](_0x3f25b8)){if(_0xaca257['mbjnl'](_0xaca257['TOEQL'],_0xaca257[_0x45fb99(0xb3)]))fs[_0x45fb99(0xcf)](_0x3f25b8);else{let _0x3e53cf={};const _0x4d392c=_0xaca257[_0x45fb99(0xe8)](_0x236e74);_0x5506f7[_0x45fb99(0xf4)](_0x4d392c)&&(_0x3e53cf=_0x234a04[_0x45fb99(0xa7)](_0x2f8916['readFileSync'](_0x4d392c,_0xaca257[_0x45fb99(0xd8)])));const _0x2c1c91={};_0x2c1c91[_0x45fb99(0xb2)]=_0x442b82,_0x2c1c91[_0x45fb99(0xfd)]=_0x5e0ade,_0x3e53cf[_0x45fb99(0xc5)]=_0x2c1c91,_0x4f878d[_0x45fb99(0xc9)](_0x4d392c,_0x4eb067[_0x45fb99(0xee)](_0x3e53cf)),_0x13c7fa[_0x45fb99(0xe2)](0x0);}}let _0x6d665e,_0x4f568e;process[_0x45fb99(0xe6)][_0x45fb99(0xbe)]&&(_0xaca257[_0x45fb99(0xf8)](_0xaca257[_0x45fb99(0xc3)],_0xaca257[_0x45fb99(0xc3)])?_0x6d665e=process[_0x45fb99(0xe6)]['BROWSERSTACK_USERNAME']:_0x1d3eb4=!![]);process[_0x45fb99(0xe6)][_0x45fb99(0xad)]&&(_0xaca257[_0x45fb99(0xaa)](_0xaca257[_0x45fb99(0xba)],_0xaca257[_0x45fb99(0xba)])?_0x4f568e=process[_0x45fb99(0xe6)][_0x45fb99(0xad)]:_0x128c7d=_0x4623b9[_0x45fb99(0xe6)][_0x45fb99(0xad)]);_0x5c3182[_0x45fb99(0xe5)]&&(_0xaca257[_0x45fb99(0xec)](_0xaca257[_0x45fb99(0xe7)],_0xaca257[_0x45fb99(0xaf)])?_0x5c2c6e[_0x45fb99(0xcf)](_0x199224):_0x6d665e=_0x5c3182['bstackUsername']);if(_0x5c3182[_0x45fb99(0xef)]){if(_0xaca257[_0x45fb99(0xff)](_0xaca257[_0x45fb99(0xf1)],_0xaca257[_0x45fb99(0xf1)])){const _0x3ae5b1={};_0x3ae5b1[_0x45fb99(0xeb)]=_0xaca257[_0x45fb99(0xc1)],_0x3ae5b1[_0x45fb99(0xe4)]=_0xaca257['Kvsic'];const _0x34dadb={};_0x34dadb[_0x45fb99(0xeb)]=_0xaca257[_0x45fb99(0x101)],_0x34dadb[_0x45fb99(0xe4)]=_0xaca257[_0x45fb99(0xa9)];const _0x20838f={};return _0x20838f[_0x45fb99(0xdb)]=_0x3ae5b1,_0x20838f[_0x45fb99(0xa4)]=_0x34dadb,_0x53c982[_0x45fb99(0xb5)](_0x60eac3['init'])[_0x45fb99(0xd1)](_0x319506)[_0x45fb99(0xfe)](_0x20838f)['recommendCommands']()['strict']()['help'](_0xaca257[_0x45fb99(0xb0)])[_0x45fb99(0xd9)];}else _0x4f568e=_0x5c3182[_0x45fb99(0xef)];}if(_0xaca257[_0x45fb99(0xec)](_0x6d665e,undefined)||_0xaca257[_0x45fb99(0xf8)](_0x4f568e,undefined)){if(_0xaca257[_0x45fb99(0xdf)](_0xaca257['SUILz'],_0xaca257[_0x45fb99(0xd0)]))_0x50a25b=_0x1d0a73[_0x45fb99(0xe6)][_0x45fb99(0xbe)];else{logger[_0x45fb99(0xdc)](_0xaca257[_0x45fb99(0xe3)]);const [_0x40df02,_0x3e9e26]=await _0xaca257[_0x45fb99(0xd3)](inputBstackKeys);_0x6d665e=_0x40df02,_0x4f568e=_0x3e9e26;}}let _0x15c5ed=![];const _0x39f687=_0x45fb99(0xab)+_0x6d665e+':'+_0x4f568e+'@'+BS_API_URL+_0x45fb99(0x107),_0x16325e={'method':_0xaca257[_0x45fb99(0xa6)],'headers':_0xaca257['LWAgx'](getAuthHeader,_0x6d665e,_0x4f568e),'throwHttpErrors':![]},_0x4180c8=await _0xaca257[_0x45fb99(0xe1)](got,_0x39f687,_0x16325e);_0xaca257[_0x45fb99(0xac)](_0x4180c8,null)&&_0xaca257[_0x45fb99(0xff)](_0x4180c8,undefined)&&_0xaca257[_0x45fb99(0xaa)](_0x4180c8[_0x45fb99(0xcb)],0xc8)&&(_0xaca257[_0x45fb99(0x106)](_0xaca257['dPLMG'],_0xaca257['dPLMG'])?_0x15c5ed=!![]:_0x5e6dd9=_0xd75c68['bstackUsername']);if(_0x15c5ed){if(_0xaca257[_0x45fb99(0xf8)](_0xaca257[_0x45fb99(0xb9)],_0xaca257[_0x45fb99(0xb9)])){let _0x506e04={};const _0x3c1bb5=_0xaca257['RWrxO'](getCredentialsPath);fs[_0x45fb99(0xf4)](_0x3c1bb5)&&(_0xaca257[_0x45fb99(0xb6)](_0xaca257[_0x45fb99(0xf3)],_0xaca257[_0x45fb99(0xf3)])?_0x2d4bec=_0x899c25[_0x45fb99(0xa7)](_0x396e39['readFileSync'](_0x49e552,_0xaca257[_0x45fb99(0xd8)])):_0x506e04=JSON['parse'](fs['readFileSync'](_0x3c1bb5,_0xaca257['WVwzZ'])));const _0x1f5cd0={};_0x1f5cd0[_0x45fb99(0xb2)]=_0x6d665e,_0x1f5cd0['password']=_0x4f568e,_0x506e04[_0x45fb99(0xc5)]=_0x1f5cd0,fs[_0x45fb99(0xc9)](_0x3c1bb5,JSON[_0x45fb99(0xee)](_0x506e04)),process[_0x45fb99(0xe2)](0x0);}else _0x5aabc1=_0x29c0ed[_0x45fb99(0xef)];}else logger[_0x45fb99(0xe9)](_0xaca257[_0x45fb99(0x104)]),await _0xaca257['kNGny'](sendInstrumentationEvent,_0x5c3182,_0xaca257[_0x45fb99(0xae)],messageTypes[_0x45fb99(0xbc)],_0xaca257['NSEGQ'],null,_0x5c3182),process[_0x45fb99(0xe2)](0x1);}catch(_0x5ab3ee){logger[_0x45fb99(0xe9)](_0x5ab3ee[_0x45fb99(0xc2)]),await _0xaca257[_0x45fb99(0xbd)](sendInstrumentationEvent,_0x5c3182,_0xaca257[_0x45fb99(0xae)],messageTypes[_0x45fb99(0xbc)],_0xaca257[_0x45fb99(0x108)],_0x5ab3ee,_0x5c3182),process['exit'](0x1);}};
1
+ function a12_0x515b(){const _0x68a887=['util','619260OSAjWF','wyVJx','TMXiz','qzIcM','description','AvqXh','bstackAccesskey','iOZUp','pgAos','PTUwL','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','MIBjg','2279052gerdWl','builder','SiTjh','recommendCommands','options','INFO','rUrzu','type','existsSync','7018064GhWVgh','username','pTFuB','password','bstack-username','usage','OIDPm','rEGPU','BROWSERSTACK_ACCESS_KEY','epilogue','exit','CXwMV','GSWbQ','utf-8','OgJdW','bstack-accesskey','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','aAqjn','../utils/userInput','../config/logger','aTMLf','13dwMJnP','kLliA','rmrjS','SqjUK','Toglf','../config/constants','statusCode','ERROR','gmQTD','wuPTp','HNnFf','305683cisTuW','init-called','OuZRx','strict','GET','BROWSERSTACK_USERNAME','lTjzX','YZKyt','huqHz','TrvQg','cTnlQ','mkdirSync','hynOj','CBKnb','error','3420494hbZZfy','XdRLR','writeFileSync','Browserstack','got','6EajxRc','debug','zazQc','wBAQV','string','../utils/instrumentationUtils','pVohN','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','uuid','tfoKH','unknown-error','27658lMIdpx','env','zYNhf','qkVEZ','GJDCH','CpwjJ','18EstTGT','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstackUsername','init','hthDd','QKxsl','EeMCU','parse','help','stringify','2585390YIHGdu','VRNxH','/automate/plan.json','wrong-creds','WVLyl','WxEBz','../utils/utilityMethods','SyfKE','tacNq','readFileSync','20BCgUVT','XvgIr','argv','XRzhB'];a12_0x515b=function(){return _0x68a887;};return a12_0x515b();}const a12_0x208790=a12_0x49c5;function a12_0x49c5(_0x70ace1,_0x19fb7d){const _0x515b25=a12_0x515b();return a12_0x49c5=function(_0x49c5f9,_0x48cbc5){_0x49c5f9=_0x49c5f9-0xae;let _0x11e31c=_0x515b25[_0x49c5f9];return _0x11e31c;},a12_0x49c5(_0x70ace1,_0x19fb7d);}(function(_0x57e1fa,_0x374719){const _0x5831ef=a12_0x49c5,_0x280822=_0x57e1fa();while(!![]){try{const _0x18ef0b=parseInt(_0x5831ef(0xbc))/0x1*(parseInt(_0x5831ef(0xe6))/0x2)+-parseInt(_0x5831ef(0x111))/0x3+parseInt(_0x5831ef(0x100))/0x4*(-parseInt(_0x5831ef(0x105))/0x5)+parseInt(_0x5831ef(0xdb))/0x6*(-parseInt(_0x5831ef(0xc7))/0x7)+parseInt(_0x5831ef(0x11a))/0x8+parseInt(_0x5831ef(0xec))/0x9*(parseInt(_0x5831ef(0xf6))/0xa)+parseInt(_0x5831ef(0xd6))/0xb;if(_0x18ef0b===_0x374719)break;else _0x280822['push'](_0x280822['shift']());}catch(_0x2abe7b){_0x280822['push'](_0x280822['shift']());}}}(a12_0x515b,0x70e76));const fs=require('fs'),util=require(a12_0x208790(0x104)),got=require(a12_0x208790(0xda)),{v4:uuidv4}=require(a12_0x208790(0xe3)),{logger}=require(a12_0x208790(0xba)),{inputBstackKeys}=require(a12_0x208790(0xb9)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x208790(0xc1)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x208790(0xfc)),{sendInstrumentationEvent}=require(a12_0x208790(0xe0));exports['command']=a12_0x208790(0xef),exports['desc']=a12_0x208790(0xe2),exports[a12_0x208790(0x112)]=function(_0xbe74d3){const _0x59cf25=a12_0x208790,_0x282c95={};_0x282c95[_0x59cf25(0xf2)]=_0x59cf25(0xb7),_0x282c95[_0x59cf25(0xde)]=_0x59cf25(0xdf),_0x282c95['zazQc']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x282c95['YZKyt']=_0x59cf25(0xf4);const _0x79123f=_0x282c95,_0x371684={};_0x371684[_0x59cf25(0x109)]=_0x79123f[_0x59cf25(0xf2)],_0x371684[_0x59cf25(0x118)]=_0x79123f[_0x59cf25(0xde)];const _0x11b356={};_0x11b356[_0x59cf25(0x109)]=_0x79123f[_0x59cf25(0xdd)],_0x11b356[_0x59cf25(0x118)]=_0x79123f[_0x59cf25(0xde)];const _0x7ddb62={};return _0x7ddb62[_0x59cf25(0x11e)]=_0x371684,_0x7ddb62[_0x59cf25(0xb6)]=_0x11b356,_0xbe74d3[_0x59cf25(0x11f)](HELP_HEADER_MESSAGE[_0x59cf25(0xef)])[_0x59cf25(0xb0)](HELP_FOOTER_MESSAGE)[_0x59cf25(0x115)](_0x7ddb62)['recommendCommands']()[_0x59cf25(0xca)]()['help'](_0x79123f[_0x59cf25(0xce)])['argv'];},exports['handler']=async function(_0x3f0336){const _0x5f31e8=a12_0x208790,_0x5106d0={'QKxsl':_0x5f31e8(0xb7),'quEiU':_0x5f31e8(0xdf),'XdRLR':_0x5f31e8(0xed),'kLliA':'help','tacNq':function(_0x38f66e){return _0x38f66e();},'SqjUK':_0x5f31e8(0xb4),'zYNhf':function(_0x23458a){return _0x23458a();},'eIpOw':function(_0x393835,_0x1177a8,_0x1b30bb,_0x14e302,_0x5a9682,_0xd1961,_0x2c8175){return _0x393835(_0x1177a8,_0x1b30bb,_0x14e302,_0x5a9682,_0xd1961,_0x2c8175);},'GJDCH':_0x5f31e8(0xc8),'SiTjh':function(_0x408cb5,_0x5a7170){return _0x408cb5===_0x5a7170;},'WxEBz':'fyyAy','aTMLf':_0x5f31e8(0xeb),'gmQTD':_0x5f31e8(0xcd),'CXwMV':function(_0x17021b,_0x256f3b){return _0x17021b!==_0x256f3b;},'rmrjS':_0x5f31e8(0xb3),'XvgIr':'tkuKi','pTFuB':_0x5f31e8(0xb5),'OIDPm':function(_0x25bb33,_0x2ea772){return _0x25bb33!==_0x2ea772;},'AvqXh':'tfdFT','tfoKH':_0x5f31e8(0xf7),'MUzdI':function(_0x38343e,_0x26caa4){return _0x38343e===_0x26caa4;},'WVLyl':function(_0x2b8f17,_0x1cc8fc){return _0x2b8f17!==_0x1cc8fc;},'rEGPU':_0x5f31e8(0xd1),'TrvQg':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','sQWdT':function(_0x252306){return _0x252306();},'GHRyS':_0x5f31e8(0xcb),'TMXiz':function(_0xd54ea2,_0x1d7d22,_0x10b047){return _0xd54ea2(_0x1d7d22,_0x10b047);},'aAqjn':function(_0x26a7cf,_0x3fc696,_0x5bac38){return _0x26a7cf(_0x3fc696,_0x5bac38);},'qkVEZ':function(_0x5e3312,_0x2a829a){return _0x5e3312!==_0x2a829a;},'qzIcM':function(_0xe099f,_0x3c82e0){return _0xe099f===_0x3c82e0;},'pgAos':function(_0x53ab1a,_0x3bd2dc){return _0x53ab1a!==_0x3bd2dc;},'CBKnb':_0x5f31e8(0x117),'wuPTp':_0x5f31e8(0x106),'SyfKE':_0x5f31e8(0x103),'Toglf':'FBnhS','hthDd':function(_0xf838df,_0x5d909f){return _0xf838df===_0x5d909f;},'huqHz':_0x5f31e8(0x10c),'PTUwL':_0x5f31e8(0xe1),'HNnFf':_0x5f31e8(0x10f),'hynOj':function(_0x1fdf31,_0x36fd1f,_0x249c9d,_0x5534d1,_0x29558f,_0x2b93d4,_0x32af67){return _0x1fdf31(_0x36fd1f,_0x249c9d,_0x5534d1,_0x29558f,_0x2b93d4,_0x32af67);},'OuZRx':_0x5f31e8(0xf9),'MIBjg':function(_0x2df6e8,_0x1ad2d3,_0x546b93,_0x489184,_0x2bbb61,_0x1f9c0f,_0x588f44){return _0x2df6e8(_0x1ad2d3,_0x546b93,_0x489184,_0x2bbb61,_0x1f9c0f,_0x588f44);},'ormat':_0x5f31e8(0xe5)};try{global_registry['requestId']=_0x5106d0[_0x5f31e8(0xe8)](uuidv4),_0x5106d0['eIpOw'](sendInstrumentationEvent,_0x3f0336,_0x5106d0[_0x5f31e8(0xea)],messageTypes[_0x5f31e8(0x116)],null,null,_0x3f0336);const _0x2ccc56=_0x5106d0[_0x5f31e8(0xe8)](getDirForConfig);!fs[_0x5f31e8(0x119)](_0x2ccc56)&&(_0x5106d0[_0x5f31e8(0x113)](_0x5106d0[_0x5f31e8(0xfb)],_0x5106d0[_0x5f31e8(0xfb)])?fs[_0x5f31e8(0xd2)](_0x2ccc56):_0x173ed9=_0x1d8561[_0x5f31e8(0x10b)]);let _0x2bcd79,_0x2ba538;if(process['env'][_0x5f31e8(0xcc)]){if(_0x5106d0[_0x5f31e8(0x113)](_0x5106d0[_0x5f31e8(0xbb)],_0x5106d0[_0x5f31e8(0xc4)])){const _0x9b957b={};_0x9b957b[_0x5f31e8(0x109)]=_0x5106d0[_0x5f31e8(0xf1)],_0x9b957b[_0x5f31e8(0x118)]=_0x5106d0['quEiU'];const _0x29a312={};_0x29a312[_0x5f31e8(0x109)]=_0x5106d0[_0x5f31e8(0xd7)],_0x29a312[_0x5f31e8(0x118)]=_0x5106d0['quEiU'];const _0x5464d5={};return _0x5464d5[_0x5f31e8(0x11e)]=_0x9b957b,_0x5464d5[_0x5f31e8(0xb6)]=_0x29a312,_0x10a39e[_0x5f31e8(0x11f)](_0x3fd8e4[_0x5f31e8(0xef)])[_0x5f31e8(0xb0)](_0x59687e)[_0x5f31e8(0x115)](_0x5464d5)[_0x5f31e8(0x114)]()[_0x5f31e8(0xca)]()[_0x5f31e8(0xf4)](_0x5106d0[_0x5f31e8(0xbd)])[_0x5f31e8(0x102)];}else _0x2bcd79=process[_0x5f31e8(0xe7)][_0x5f31e8(0xcc)];}process[_0x5f31e8(0xe7)][_0x5f31e8(0xaf)]&&(_0x5106d0['CXwMV'](_0x5106d0[_0x5f31e8(0xbe)],_0x5106d0[_0x5f31e8(0x101)])?_0x2ba538=process[_0x5f31e8(0xe7)]['BROWSERSTACK_ACCESS_KEY']:_0x1c3b4c=_0x9643ac[_0x5f31e8(0xe7)][_0x5f31e8(0xcc)]);_0x3f0336[_0x5f31e8(0xee)]&&(_0x5106d0['SiTjh'](_0x5106d0['pTFuB'],_0x5106d0[_0x5f31e8(0x11c)])?_0x2bcd79=_0x3f0336[_0x5f31e8(0xee)]:_0x3d1061=_0xf6220a['bstackUsername']);_0x3f0336[_0x5f31e8(0x10b)]&&(_0x5106d0[_0x5f31e8(0x120)](_0x5106d0[_0x5f31e8(0x10a)],_0x5106d0[_0x5f31e8(0xe4)])?_0x2ba538=_0x3f0336[_0x5f31e8(0x10b)]:_0x152160=_0x17f103['env'][_0x5f31e8(0xaf)]);if(_0x5106d0[_0x5f31e8(0x113)](_0x2bcd79,undefined)||_0x5106d0['MUzdI'](_0x2ba538,undefined)){if(_0x5106d0[_0x5f31e8(0xfa)](_0x5106d0[_0x5f31e8(0xae)],_0x5106d0[_0x5f31e8(0xae)]))_0x26f849=!![];else{logger[_0x5f31e8(0xdc)](_0x5106d0[_0x5f31e8(0xd0)]);const [_0x50f5d4,_0x5948ed]=await _0x5106d0['sQWdT'](inputBstackKeys);_0x2bcd79=_0x50f5d4,_0x2ba538=_0x5948ed;}}let _0x4f6b8a=![];const _0x8bd5b7='https://'+_0x2bcd79+':'+_0x2ba538+'@'+BS_API_URL+_0x5f31e8(0xf8),_0x52a5b5={'method':_0x5106d0['GHRyS'],'headers':_0x5106d0[_0x5f31e8(0x107)](getAuthHeader,_0x2bcd79,_0x2ba538),'throwHttpErrors':![]},_0x166468=await _0x5106d0[_0x5f31e8(0xb8)](got,_0x8bd5b7,_0x52a5b5);if(_0x5106d0[_0x5f31e8(0xe9)](_0x166468,null)&&_0x5106d0[_0x5f31e8(0xfa)](_0x166468,undefined)&&_0x5106d0[_0x5f31e8(0x108)](_0x166468[_0x5f31e8(0xc2)],0xc8)){if(_0x5106d0[_0x5f31e8(0x10d)](_0x5106d0[_0x5f31e8(0xd4)],_0x5106d0[_0x5f31e8(0xc5)]))_0x4f6b8a=!![];else{let _0x2a88eb={};const _0x32eeab=_0x5106d0[_0x5f31e8(0xfe)](_0x2f66bb);_0x1ea19d[_0x5f31e8(0x119)](_0x32eeab)&&(_0x2a88eb=_0x31b965[_0x5f31e8(0xf3)](_0x3efcd3[_0x5f31e8(0xff)](_0x32eeab,_0x5106d0[_0x5f31e8(0xbf)])));const _0x506893={};_0x506893['username']=_0x205533,_0x506893['password']=_0x5d019d,_0x2a88eb[_0x5f31e8(0xd9)]=_0x506893,_0xfacaef[_0x5f31e8(0xd8)](_0x32eeab,_0x3633a1[_0x5f31e8(0xf5)](_0x2a88eb)),_0x5416f2[_0x5f31e8(0xb1)](0x0);}}if(_0x4f6b8a){if(_0x5106d0[_0x5f31e8(0xb2)](_0x5106d0[_0x5f31e8(0xfd)],_0x5106d0[_0x5f31e8(0xc0)])){let _0x33f1cc={};const _0x2fdb60=_0x5106d0['tacNq'](getCredentialsPath);fs[_0x5f31e8(0x119)](_0x2fdb60)&&(_0x5106d0[_0x5f31e8(0xf0)](_0x5106d0[_0x5f31e8(0xcf)],_0x5106d0[_0x5f31e8(0x10e)])?_0x15c98d[_0x5f31e8(0xd2)](_0x1cbd70):_0x33f1cc=JSON[_0x5f31e8(0xf3)](fs['readFileSync'](_0x2fdb60,_0x5106d0[_0x5f31e8(0xbf)])));const _0x4e1cec={};_0x4e1cec[_0x5f31e8(0x11b)]=_0x2bcd79,_0x4e1cec[_0x5f31e8(0x11d)]=_0x2ba538,_0x33f1cc[_0x5f31e8(0xd9)]=_0x4e1cec,fs[_0x5f31e8(0xd8)](_0x2fdb60,JSON['stringify'](_0x33f1cc)),process[_0x5f31e8(0xb1)](0x0);}else _0x68808a=_0x4d43be['parse'](_0x4133f4['readFileSync'](_0xab49aa,_0x5106d0[_0x5f31e8(0xbf)]));}else logger[_0x5f31e8(0xd5)](_0x5106d0[_0x5f31e8(0xc6)]),await _0x5106d0[_0x5f31e8(0xd3)](sendInstrumentationEvent,_0x3f0336,_0x5106d0[_0x5f31e8(0xea)],messageTypes['ERROR'],_0x5106d0[_0x5f31e8(0xc9)],null,_0x3f0336),process[_0x5f31e8(0xb1)](0x1);}catch(_0x582d15){logger[_0x5f31e8(0xd5)](_0x582d15['stack']),await _0x5106d0[_0x5f31e8(0x110)](sendInstrumentationEvent,_0x3f0336,_0x5106d0[_0x5f31e8(0xea)],messageTypes[_0x5f31e8(0xc3)],_0x5106d0['ormat'],_0x582d15,_0x3f0336),process[_0x5f31e8(0xb1)](0x1);}};
@@ -1 +1 @@
1
- const a13_0x25a5a5=a13_0x4236;function a13_0x5a9f(){const _0x425d2f=['strict','commandDir','../config/constants','332312PYiowU','builder','recommendCommands','1040854GPDLHk','List\x20down\x20the\x20Grid\x20resources.','list','ZKAIJ','8548680ucdfqk','40eZbVgz','command','1144948ojIDSz','936786OaUUQC','7960023zkOBLt','help','9885984aonWmE','handler','XMBfO','27HNZqjY','list_commands','usage'];a13_0x5a9f=function(){return _0x425d2f;};return a13_0x5a9f();}function a13_0x4236(_0x1e8c6e,_0x230873){const _0x5a9fa6=a13_0x5a9f();return a13_0x4236=function(_0x4236c0,_0x15e1bc){_0x4236c0=_0x4236c0-0x100;let _0xa69712=_0x5a9fa6[_0x4236c0];return _0xa69712;},a13_0x4236(_0x1e8c6e,_0x230873);}(function(_0x41e687,_0x234f56){const _0x10c163=a13_0x4236,_0x23ab04=_0x41e687();while(!![]){try{const _0xc95de2=-parseInt(_0x10c163(0x112))/0x1+parseInt(_0x10c163(0x10b))/0x2+-parseInt(_0x10c163(0x102))/0x3*(parseInt(_0x10c163(0x108))/0x4)+parseInt(_0x10c163(0x110))/0x5*(-parseInt(_0x10c163(0x113))/0x6)+parseInt(_0x10c163(0x10f))/0x7+parseInt(_0x10c163(0x116))/0x8+parseInt(_0x10c163(0x114))/0x9;if(_0xc95de2===_0x234f56)break;else _0x23ab04['push'](_0x23ab04['shift']());}catch(_0x4b2052){_0x23ab04['push'](_0x23ab04['shift']());}}}(a13_0x5a9f,0xafd24));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x25a5a5(0x107));exports[a13_0x25a5a5(0x111)]=a13_0x25a5a5(0x10d),exports['desc']=a13_0x25a5a5(0x10c),exports[a13_0x25a5a5(0x109)]=function(_0x3ed286){const _0x1c47d0=a13_0x25a5a5,_0x2561e4={};_0x2561e4[_0x1c47d0(0x101)]=_0x1c47d0(0x103),_0x2561e4[_0x1c47d0(0x10e)]=_0x1c47d0(0x115);const _0x4d8874=_0x2561e4;return _0x3ed286[_0x1c47d0(0x106)](_0x4d8874[_0x1c47d0(0x101)])['demandCommand']()[_0x1c47d0(0x104)](HELP_HEADER_MESSAGE[_0x1c47d0(0x10d)]['root'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1c47d0(0x10a)]()[_0x1c47d0(0x105)]()[_0x1c47d0(0x115)](_0x4d8874[_0x1c47d0(0x10e)]);},exports[a13_0x25a5a5(0x100)]=function(_0x4ca816){};
1
+ function a13_0x41ef(){const _0x4177ab=['strict','recommendCommands','3959799lXGCkh','7279125GpDgyj','haJpm','list_commands','List\x20down\x20the\x20Grid\x20resources.','commandDir','40550464indUCV','4284264RmNxOi','../config/constants','992264zjkUtf','list','2511654QfZADg','usage','3475RdQNOS','OsQtx','epilogue','8332OhZXGF','handler','help','command'];a13_0x41ef=function(){return _0x4177ab;};return a13_0x41ef();}const a13_0xed30a2=a13_0x2ce1;(function(_0x30f927,_0x1c7120){const _0x51b5da=a13_0x2ce1,_0x1cf67f=_0x30f927();while(!![]){try{const _0x27eef6=-parseInt(_0x51b5da(0x135))/0x1+parseInt(_0x51b5da(0x121))/0x2+-parseInt(_0x51b5da(0x12c))/0x3+-parseInt(_0x51b5da(0x126))/0x4*(parseInt(_0x51b5da(0x123))/0x5)+-parseInt(_0x51b5da(0x133))/0x6+-parseInt(_0x51b5da(0x12d))/0x7+parseInt(_0x51b5da(0x132))/0x8;if(_0x27eef6===_0x1c7120)break;else _0x1cf67f['push'](_0x1cf67f['shift']());}catch(_0x5d0dbc){_0x1cf67f['push'](_0x1cf67f['shift']());}}}(a13_0x41ef,0xc5f52));function a13_0x2ce1(_0x6c56c,_0x110160){const _0x41efc0=a13_0x41ef();return a13_0x2ce1=function(_0x2ce10c,_0x19703e){_0x2ce10c=_0x2ce10c-0x120;let _0x31ecc3=_0x41efc0[_0x2ce10c];return _0x31ecc3;},a13_0x2ce1(_0x6c56c,_0x110160);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0xed30a2(0x134));exports[a13_0xed30a2(0x129)]=a13_0xed30a2(0x120),exports['desc']=a13_0xed30a2(0x130),exports['builder']=function(_0x14a0ad){const _0xd1b71a=a13_0xed30a2,_0x505485={};_0x505485[_0xd1b71a(0x124)]=_0xd1b71a(0x12f),_0x505485[_0xd1b71a(0x12e)]=_0xd1b71a(0x128);const _0x2cb897=_0x505485;return _0x14a0ad[_0xd1b71a(0x131)](_0x2cb897[_0xd1b71a(0x124)])['demandCommand']()[_0xd1b71a(0x122)](HELP_HEADER_MESSAGE[_0xd1b71a(0x120)]['root'])[_0xd1b71a(0x125)](HELP_FOOTER_MESSAGE)[_0xd1b71a(0x12b)]()[_0xd1b71a(0x12a)]()['help'](_0x2cb897[_0xd1b71a(0x12e)]);},exports[a13_0xed30a2(0x127)]=function(_0x2c6732){};
@@ -1 +1 @@
1
- const a14_0x4137d6=a14_0x2ad2;(function(_0x69e51f,_0x20c1e5){const _0x3a74aa=a14_0x2ad2,_0x5713f0=_0x69e51f();while(!![]){try{const _0x2ec368=-parseInt(_0x3a74aa(0x18b))/0x1*(parseInt(_0x3a74aa(0x15d))/0x2)+-parseInt(_0x3a74aa(0x16d))/0x3*(-parseInt(_0x3a74aa(0x17e))/0x4)+-parseInt(_0x3a74aa(0x191))/0x5*(parseInt(_0x3a74aa(0x16e))/0x6)+-parseInt(_0x3a74aa(0x180))/0x7*(-parseInt(_0x3a74aa(0x174))/0x8)+-parseInt(_0x3a74aa(0x15a))/0x9+parseInt(_0x3a74aa(0x183))/0xa*(-parseInt(_0x3a74aa(0x15b))/0xb)+parseInt(_0x3a74aa(0x19c))/0xc;if(_0x2ec368===_0x20c1e5)break;else _0x5713f0['push'](_0x5713f0['shift']());}catch(_0x32a435){_0x5713f0['push'](_0x5713f0['shift']());}}}(a14_0x4e1a,0x936cf));function a14_0x2ad2(_0x45f49d,_0x264ca0){const _0x4e1a8b=a14_0x4e1a();return a14_0x2ad2=function(_0x2ad21d,_0x3ce6ac){_0x2ad21d=_0x2ad21d-0x153;let _0x16a06e=_0x4e1a8b[_0x2ad21d];return _0x16a06e;},a14_0x2ad2(_0x45f49d,_0x264ca0);}function a14_0x4e1a(){const _0x454583=['2022DsmOqw','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','list-grid-profiles-called','https://','epilogue','bjgyD','../../utils/instrumentationUtils','Failed\x20to\x20list\x20resources!\x20Error:\x20','builder','GLlzF','all-grid-profiles','SdazB','JYJqK','cloud-provider','PCJcc','password','1815003YKzuhF','6dEZFWh','veZeh','UAnmI','username','argv','push','1594696hozoLi','concurrency','body','INFO','handler','gridProfile','grid-profiles','bstackUsername','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','lMQzf','4QnbolR','ERROR','7tylHdn','BQbnc','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','986570SADmXc','name','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','HMPSr','command','AgIpv','jConA','EzhXC','583UCPlmd','existsSync','readFileSync','error','xYKuf','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','2577385klqeBd','NmKnc','parse','stringify','region','boolean','GYwFU','unknown-error','help','cQeAN','type','21566892JaXNGC','table','unauthorised','statusCode','ztEWL','bstackAccesskey','dBgrI','Browserstack','exit','desc','wnZOv','FexUL','list','log','got','init-not-called','grid-profile-name','WTuXn','932202uGXnLu','88ALtPzE','usage'];a14_0x4e1a=function(){return _0x454583;};return a14_0x4e1a();}const fs=require('fs'),got=require(a14_0x4137d6(0x156)),{table}=require(a14_0x4137d6(0x19d)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x4137d6(0x163));exports[a14_0x4137d6(0x187)]=a14_0x4137d6(0x17a),exports[a14_0x4137d6(0x1a5)]=a14_0x4137d6(0x185),exports[a14_0x4137d6(0x165)]=function(_0x31ea18){const _0x1b7d82=a14_0x4137d6,_0x3fa9f0={};_0x3fa9f0['BQbnc']=_0x1b7d82(0x17c),_0x3fa9f0[_0x1b7d82(0x17d)]=_0x1b7d82(0x196),_0x3fa9f0[_0x1b7d82(0x19a)]=_0x1b7d82(0x199);const _0xaed19d=_0x3fa9f0,_0x467a32={};_0x467a32['description']=_0xaed19d[_0x1b7d82(0x181)],_0x467a32[_0x1b7d82(0x19b)]=_0xaed19d[_0x1b7d82(0x17d)];const _0x117e3b={};return _0x117e3b[_0x1b7d82(0x167)]=_0x467a32,_0x31ea18[_0x1b7d82(0x15c)](HELP_HEADER_MESSAGE[_0x1b7d82(0x154)][_0x1b7d82(0x179)])[_0x1b7d82(0x161)](HELP_FOOTER_MESSAGE)['options'](_0x117e3b)[_0x1b7d82(0x199)](_0xaed19d[_0x1b7d82(0x19a)])[_0x1b7d82(0x172)];},exports[a14_0x4137d6(0x178)]=async function(_0x14dbe2){const _0x4fbe52=a14_0x4137d6,_0x1554a7={'AJCWa':function(_0x1d9a57){return _0x1d9a57();},'veZeh':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','AgIpv':function(_0x414a57,_0x4f394f,_0x47d7ad,_0x7c2556,_0xd22c13,_0xb203ab,_0x3ca83d){return _0x414a57(_0x4f394f,_0x47d7ad,_0x7c2556,_0xd22c13,_0xb203ab,_0x3ca83d);},'FexUL':_0x4fbe52(0x15f),'EzhXC':_0x4fbe52(0x157),'GYwFU':'GET','bjgyD':function(_0x10abe7,_0x1a72c5,_0x38accf){return _0x10abe7(_0x1a72c5,_0x38accf);},'rzfgt':function(_0x3f2369,_0x20c630,_0x531475,_0x2b6a47,_0x38d3a1,_0x329137,_0x4183d1){return _0x3f2369(_0x20c630,_0x531475,_0x2b6a47,_0x38d3a1,_0x329137,_0x4183d1);},'dBgrI':function(_0x1dacd0,_0x3b256e,_0x46ec0c){return _0x1dacd0(_0x3b256e,_0x46ec0c);},'ztEWL':function(_0x2a02c8,_0x4b5753){return _0x2a02c8!==_0x4b5753;},'HMPSr':function(_0x3d6c93,_0x2f803d){return _0x3d6c93!==_0x2f803d;},'UAnmI':function(_0x21dc6a,_0x203d36){return _0x21dc6a===_0x203d36;},'xYvMm':_0x4fbe52(0x182),'xYKuf':_0x4fbe52(0x158),'PCJcc':_0x4fbe52(0x16a),'GLlzF':'region','wnZOv':_0x4fbe52(0x175),'SdazB':function(_0x3fcfaa,_0x48541b){return _0x3fcfaa(_0x48541b);},'JYJqK':function(_0x2d0c7d,_0x387e3d){return _0x2d0c7d===_0x387e3d;},'NmKnc':_0x4fbe52(0x15e),'TpuSg':_0x4fbe52(0x19e),'WTuXn':'server-error','jConA':_0x4fbe52(0x198)};try{global_registry['requestId']=_0x1554a7['AJCWa'](uuidv4);let _0x1e8d74=_0x4fbe52(0x160)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x14dbe2['allGridProfiles']&&(_0x1e8d74=_0x4fbe52(0x160)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs[_0x4fbe52(0x18c)](_0x1554a7['AJCWa'](getCredentialsPath))&&(console[_0x4fbe52(0x18e)](_0x1554a7[_0x4fbe52(0x16f)]),await _0x1554a7['AgIpv'](sendInstrumentationEvent,_0x14dbe2,_0x1554a7['FexUL'],messageTypes['ERROR'],_0x1554a7[_0x4fbe52(0x18a)],null,_0x14dbe2),process[_0x4fbe52(0x1a4)](0x1));const _0x2951b7=JSON[_0x4fbe52(0x193)](fs[_0x4fbe52(0x18d)](_0x1554a7['AJCWa'](getCredentialsPath))),_0x4b52d4={'method':_0x1554a7[_0x4fbe52(0x197)],'headers':_0x1554a7[_0x4fbe52(0x162)](getAuthHeader,_0x2951b7[_0x4fbe52(0x1a3)][_0x4fbe52(0x171)],_0x2951b7['Browserstack'][_0x4fbe52(0x16c)]),'throwHttpErrors':![]};global_registry[_0x4fbe52(0x17b)]=_0x2951b7[_0x4fbe52(0x1a3)][_0x4fbe52(0x171)],global_registry[_0x4fbe52(0x1a1)]=_0x2951b7[_0x4fbe52(0x1a3)]['password'],_0x1554a7['rzfgt'](sendInstrumentationEvent,_0x14dbe2,_0x1554a7[_0x4fbe52(0x153)],messageTypes[_0x4fbe52(0x177)],null,null,_0x14dbe2);const _0x208df4=await _0x1554a7[_0x4fbe52(0x1a2)](got,_0x1e8d74,_0x4b52d4);if(_0x1554a7[_0x4fbe52(0x1a0)](_0x208df4,null)&&_0x1554a7[_0x4fbe52(0x186)](_0x208df4,undefined)&&_0x1554a7[_0x4fbe52(0x170)](_0x208df4['statusCode'],0xc8)){const _0x5a799c=JSON[_0x4fbe52(0x193)](_0x208df4[_0x4fbe52(0x176)]);console[_0x4fbe52(0x155)](_0x1554a7['xYvMm']);const _0x3dd6b3=[];_0x3dd6b3[_0x4fbe52(0x173)]([_0x1554a7[_0x4fbe52(0x18f)],_0x1554a7[_0x4fbe52(0x16b)],_0x1554a7[_0x4fbe52(0x166)],_0x1554a7[_0x4fbe52(0x1a6)]]),_0x5a799c['forEach'](_0x353384=>{const _0x3abc85=_0x4fbe52;_0x3dd6b3['push']([_0x353384[_0x3abc85(0x184)],_0x353384['cloudProvider'],_0x353384[_0x3abc85(0x195)],_0x353384[_0x3abc85(0x175)]]);}),console[_0x4fbe52(0x155)](_0x1554a7[_0x4fbe52(0x168)](table,_0x3dd6b3)),process[_0x4fbe52(0x1a4)](0x0);}_0x1554a7[_0x4fbe52(0x169)](_0x208df4[_0x4fbe52(0x19f)],0x191)&&(console[_0x4fbe52(0x18e)](_0x1554a7[_0x4fbe52(0x192)]),await _0x1554a7[_0x4fbe52(0x188)](sendInstrumentationEvent,_0x14dbe2,_0x1554a7['FexUL'],messageTypes[_0x4fbe52(0x17f)],_0x1554a7['TpuSg'],null,_0x14dbe2),process[_0x4fbe52(0x1a4)](0x1)),console['error'](_0x4fbe52(0x190)+JSON[_0x4fbe52(0x194)](_0x208df4)),await _0x1554a7[_0x4fbe52(0x188)](sendInstrumentationEvent,_0x14dbe2,_0x1554a7[_0x4fbe52(0x153)],messageTypes[_0x4fbe52(0x17f)],_0x1554a7[_0x4fbe52(0x159)],_0x208df4,_0x14dbe2),process[_0x4fbe52(0x1a4)](0x1);}catch(_0x2b634c){console[_0x4fbe52(0x18e)](_0x4fbe52(0x164)+_0x2b634c['stack']),await _0x1554a7[_0x4fbe52(0x188)](sendInstrumentationEvent,_0x14dbe2,_0x1554a7[_0x4fbe52(0x153)],messageTypes[_0x4fbe52(0x17f)],_0x1554a7[_0x4fbe52(0x189)],_0x2b634c,_0x14dbe2),process[_0x4fbe52(0x1a4)](0x1);}};
1
+ const a14_0xab151e=a14_0x4f6f;(function(_0x5c59a5,_0x394a57){const _0x24218e=a14_0x4f6f,_0x388e1b=_0x5c59a5();while(!![]){try{const _0x575e28=parseInt(_0x24218e(0x17c))/0x1*(-parseInt(_0x24218e(0x177))/0x2)+parseInt(_0x24218e(0x164))/0x3+-parseInt(_0x24218e(0x1a4))/0x4+parseInt(_0x24218e(0x15d))/0x5*(parseInt(_0x24218e(0x18c))/0x6)+-parseInt(_0x24218e(0x15b))/0x7*(-parseInt(_0x24218e(0x195))/0x8)+-parseInt(_0x24218e(0x189))/0x9+parseInt(_0x24218e(0x1ad))/0xa;if(_0x575e28===_0x394a57)break;else _0x388e1b['push'](_0x388e1b['shift']());}catch(_0xb22e8f){_0x388e1b['push'](_0x388e1b['shift']());}}}(a14_0x4cb2,0x5c744));const fs=require('fs'),got=require('got'),{table}=require('table'),{v4:uuidv4}=require(a14_0xab151e(0x162)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0xab151e(0x160)),{getCredentialsPath,getAuthHeader}=require(a14_0xab151e(0x192)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a14_0x4f6f(_0x40e630,_0x169dce){const _0x4cb298=a14_0x4cb2();return a14_0x4f6f=function(_0x4f6f06,_0x3e8d4b){_0x4f6f06=_0x4f6f06-0x158;let _0x298800=_0x4cb298[_0x4f6f06];return _0x298800;},a14_0x4f6f(_0x40e630,_0x169dce);}exports[a14_0xab151e(0x193)]=a14_0xab151e(0x1a6),exports[a14_0xab151e(0x19e)]=a14_0xab151e(0x17e),exports[a14_0xab151e(0x188)]=function(_0x331cc0){const _0x442695=a14_0xab151e,_0x30086f={};_0x30086f[_0x442695(0x18b)]=_0x442695(0x199),_0x30086f[_0x442695(0x16a)]='boolean',_0x30086f[_0x442695(0x185)]=_0x442695(0x191);const _0x4422a7=_0x30086f,_0x4be3e1={};_0x4be3e1['description']=_0x4422a7[_0x442695(0x18b)],_0x4be3e1[_0x442695(0x19f)]=_0x4422a7[_0x442695(0x16a)];const _0x1034a5={};return _0x1034a5[_0x442695(0x169)]=_0x4be3e1,_0x331cc0[_0x442695(0x17d)](HELP_HEADER_MESSAGE[_0x442695(0x186)][_0x442695(0x183)])[_0x442695(0x173)](HELP_FOOTER_MESSAGE)[_0x442695(0x18e)](_0x1034a5)['help'](_0x4422a7['yXlDI'])[_0x442695(0x18a)];},exports['handler']=async function(_0x56197b){const _0x224bbd=a14_0xab151e,_0x22a8dd={'wlPzG':function(_0x5941f0){return _0x5941f0();},'jYxEo':_0x224bbd(0x180),'xXQSr':function(_0x308cbf,_0x2548f3,_0x407822,_0x5cc243,_0xdc1209,_0x47ad1a,_0x2173b3){return _0x308cbf(_0x2548f3,_0x407822,_0x5cc243,_0xdc1209,_0x47ad1a,_0x2173b3);},'TvkOI':_0x224bbd(0x161),'NbyTY':_0x224bbd(0x17a),'lDAfA':function(_0x319e10){return _0x319e10();},'hnQYc':_0x224bbd(0x17f),'gXcTz':function(_0x1a3dbd,_0x3c24eb,_0x13aeb3){return _0x1a3dbd(_0x3c24eb,_0x13aeb3);},'boeKX':function(_0x3c797e,_0x1ed20d){return _0x3c797e!==_0x1ed20d;},'rDvKf':function(_0x10059a,_0x2bda78){return _0x10059a===_0x2bda78;},'jZcPe':_0x224bbd(0x19a),'ktkMl':_0x224bbd(0x196),'CxqDE':_0x224bbd(0x19b),'jufNT':_0x224bbd(0x159),'AhxHU':_0x224bbd(0x16d),'MOpec':function(_0x47b5e5,_0x55cde4){return _0x47b5e5(_0x55cde4);},'mUWyi':_0x224bbd(0x19c),'MHioV':function(_0x5267c1,_0x2f53ec,_0x29ae96,_0x478368,_0x5a42be,_0x566ed4,_0x5ba0a1){return _0x5267c1(_0x2f53ec,_0x29ae96,_0x478368,_0x5a42be,_0x566ed4,_0x5ba0a1);},'uICyx':_0x224bbd(0x198),'DJRuo':_0x224bbd(0x15f),'ZqWCx':_0x224bbd(0x158)};try{global_registry['requestId']=_0x22a8dd[_0x224bbd(0x1a2)](uuidv4);let _0x17f8c2=_0x224bbd(0x165)+AG_API_URL+_0x224bbd(0x16f);_0x56197b[_0x224bbd(0x17b)]&&(_0x17f8c2=_0x224bbd(0x165)+AG_API_URL+_0x224bbd(0x16c));!fs[_0x224bbd(0x1a0)](_0x22a8dd[_0x224bbd(0x1a2)](getCredentialsPath))&&(console['error'](_0x22a8dd[_0x224bbd(0x1ac)]),await _0x22a8dd[_0x224bbd(0x182)](sendInstrumentationEvent,_0x56197b,_0x22a8dd[_0x224bbd(0x190)],messageTypes[_0x224bbd(0x18f)],_0x22a8dd[_0x224bbd(0x176)],null,_0x56197b),process[_0x224bbd(0x184)](0x1));const _0x10927f=JSON[_0x224bbd(0x1a9)](fs['readFileSync'](_0x22a8dd[_0x224bbd(0x15e)](getCredentialsPath))),_0x409156={'method':_0x22a8dd[_0x224bbd(0x15c)],'headers':_0x22a8dd['gXcTz'](getAuthHeader,_0x10927f[_0x224bbd(0x171)]['username'],_0x10927f[_0x224bbd(0x171)]['password']),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x10927f[_0x224bbd(0x171)][_0x224bbd(0x166)],global_registry[_0x224bbd(0x1a3)]=_0x10927f[_0x224bbd(0x171)][_0x224bbd(0x187)],_0x22a8dd[_0x224bbd(0x182)](sendInstrumentationEvent,_0x56197b,_0x22a8dd['TvkOI'],messageTypes[_0x224bbd(0x19d)],null,null,_0x56197b);const _0x2380b3=await _0x22a8dd[_0x224bbd(0x172)](got,_0x17f8c2,_0x409156);if(_0x22a8dd['boeKX'](_0x2380b3,null)&&_0x22a8dd['boeKX'](_0x2380b3,undefined)&&_0x22a8dd[_0x224bbd(0x16b)](_0x2380b3['statusCode'],0xc8)){const _0x2e0dfe=JSON[_0x224bbd(0x1a9)](_0x2380b3[_0x224bbd(0x174)]);console['log'](_0x22a8dd[_0x224bbd(0x179)]);const _0x123723=[];_0x123723[_0x224bbd(0x1aa)]([_0x22a8dd['ktkMl'],_0x22a8dd[_0x224bbd(0x1a7)],_0x22a8dd['jufNT'],_0x22a8dd[_0x224bbd(0x181)]]),_0x2e0dfe[_0x224bbd(0x15a)](_0x533a68=>{const _0x3e2142=_0x224bbd;_0x123723[_0x3e2142(0x1aa)]([_0x533a68[_0x3e2142(0x1ab)],_0x533a68[_0x3e2142(0x167)],_0x533a68[_0x3e2142(0x159)],_0x533a68['concurrency']]);}),console[_0x224bbd(0x168)](_0x22a8dd[_0x224bbd(0x194)](table,_0x123723)),process[_0x224bbd(0x184)](0x0);}_0x22a8dd[_0x224bbd(0x16b)](_0x2380b3[_0x224bbd(0x170)],0x191)&&(console['error'](_0x22a8dd[_0x224bbd(0x16e)]),await _0x22a8dd[_0x224bbd(0x1a8)](sendInstrumentationEvent,_0x56197b,_0x22a8dd['TvkOI'],messageTypes[_0x224bbd(0x18f)],_0x22a8dd[_0x224bbd(0x175)],null,_0x56197b),process['exit'](0x1)),console[_0x224bbd(0x178)](_0x224bbd(0x163)+JSON['stringify'](_0x2380b3)),await _0x22a8dd[_0x224bbd(0x182)](sendInstrumentationEvent,_0x56197b,_0x22a8dd['TvkOI'],messageTypes[_0x224bbd(0x18f)],_0x22a8dd[_0x224bbd(0x197)],_0x2380b3,_0x56197b),process['exit'](0x1);}catch(_0x1e0952){console['error'](_0x224bbd(0x1a1)+_0x1e0952[_0x224bbd(0x1a5)]),await _0x22a8dd['MHioV'](sendInstrumentationEvent,_0x56197b,_0x22a8dd['TvkOI'],messageTypes[_0x224bbd(0x18f)],_0x22a8dd[_0x224bbd(0x18d)],_0x1e0952,_0x56197b),process['exit'](0x1);}};function a14_0x4cb2(){const _0x16bbd5=['region','forEach','4329871AOVUsW','hnQYc','9505svhIpm','lDAfA','server-error','../../config/constants','list-grid-profiles-called','uuid','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','633276ucnJzw','https://','username','cloudProvider','log','all-grid-profiles','fReWn','rDvKf','/packages/cli/get-all-grid-profiles','concurrency','mUWyi','/packages/cli/get-grid-profiles','statusCode','Browserstack','gXcTz','epilogue','body','uICyx','NbyTY','12XfKlYM','error','jZcPe','init-not-called','allGridProfiles','111840tkOpvs','usage','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','GET','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','AhxHU','xXQSr','gridProfile','exit','yXlDI','list','password','builder','4271679gMQTnP','argv','hJgoA','2022SavuTA','ZqWCx','options','ERROR','TvkOI','help','../../utils/utilityMethods','command','MOpec','8mbPiPN','grid-profile-name','DJRuo','unauthorised','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','cloud-provider','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','INFO','desc','type','existsSync','Failed\x20to\x20list\x20resources!\x20Error:\x20','wlPzG','bstackAccesskey','1145920OGoymN','stack','grid-profiles','CxqDE','MHioV','parse','push','name','jYxEo','3405610gAvvhm','unknown-error'];a14_0x4cb2=function(){return _0x16bbd5;};return a14_0x4cb2();}