browserstack-node-sdk 1.49.11 → 1.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +2 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x1ab5db=a9_0x4bdd;(function(_0x44d136,_0x45f851){const _0x5616ff=a9_0x4bdd,_0x31dee5=_0x44d136();while(!![]){try{const _0x404f82=-parseInt(_0x5616ff(0xb6))/0x1*(parseInt(_0x5616ff(0x10f))/0x2)+-parseInt(_0x5616ff(0x12c))/0x3*(parseInt(_0x5616ff(0x158))/0x4)+parseInt(_0x5616ff(0x1c6))/0x5*(parseInt(_0x5616ff(0x1eb))/0x6)+parseInt(_0x5616ff(0x132))/0x7+-parseInt(_0x5616ff(0x160))/0x8+parseInt(_0x5616ff(0x149))/0x9*(-parseInt(_0x5616ff(0xe9))/0xa)+parseInt(_0x5616ff(0xbf))/0xb;if(_0x404f82===_0x45f851)break;else _0x31dee5['push'](_0x31dee5['shift']());}catch(_0x1b69b4){_0x31dee5['push'](_0x31dee5['shift']());}}}(a9_0x5e19,0xdf27f));function a9_0x4bdd(_0x371b30,_0x140b5e){const _0x5e1938=a9_0x5e19();return a9_0x4bdd=function(_0x4bddff,_0x1beb19){_0x4bddff=_0x4bddff-0x78;let _0x4ad899=_0x5e1938[_0x4bddff];return _0x4ad899;},a9_0x4bdd(_0x371b30,_0x140b5e);}const fs=require('fs'),ws=require('ws'),path=require(a9_0x1ab5db(0x1fe)),yaml=require(a9_0x1ab5db(0xfe)),ReconnectingWebSocket=require(a9_0x1ab5db(0x1f1)),got=require(a9_0x1ab5db(0x1f4)),{v4:uuidv4}=require(a9_0x1ab5db(0x16e)),webSocketUtils=require(a9_0x1ab5db(0xf8)),{logger}=require(a9_0x1ab5db(0x20a)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x1ab5db(0x154)),{getCloudProviderObject}=require(a9_0x1ab5db(0x1b6)),{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_0x1ab5db(0xcc)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a9_0x1ab5db(0x9d));exports['command']=a9_0x1ab5db(0x164),exports[a9_0x1ab5db(0x211)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x1ab5db(0x91)]=function(_0x566185){const _0x8c4e28=a9_0x1ab5db,_0x4d86a6={};_0x4d86a6[_0x8c4e28(0x109)]=_0x8c4e28(0x204),_0x4d86a6[_0x8c4e28(0x1fd)]=_0x8c4e28(0x97),_0x4d86a6[_0x8c4e28(0x83)]=_0x8c4e28(0x1af),_0x4d86a6['eLsRI']=_0x8c4e28(0x128),_0x4d86a6[_0x8c4e28(0xdc)]=_0x8c4e28(0x14d),_0x4d86a6[_0x8c4e28(0x94)]=_0x8c4e28(0xb5),_0x4d86a6[_0x8c4e28(0x173)]=_0x8c4e28(0x1c8),_0x4d86a6[_0x8c4e28(0x88)]=_0x8c4e28(0x108),_0x4d86a6[_0x8c4e28(0x100)]=_0x8c4e28(0xce),_0x4d86a6[_0x8c4e28(0x16a)]='Flag\x20to\x20enable\x20Hub\x20HA',_0x4d86a6['nXLoL']=_0x8c4e28(0x1ad),_0x4d86a6['VuTic']=_0x8c4e28(0x14c);const _0x55c8b0=_0x4d86a6,_0x5a514c={};_0x5a514c['description']=_0x55c8b0[_0x8c4e28(0x109)],_0x5a514c[_0x8c4e28(0xaa)]=_0x55c8b0[_0x8c4e28(0x1fd)];const _0x57eab1={};_0x57eab1['description']=_0x55c8b0[_0x8c4e28(0x83)],_0x57eab1[_0x8c4e28(0xaa)]=_0x55c8b0[_0x8c4e28(0x1fd)];const _0x35ff3b={};_0x35ff3b[_0x8c4e28(0x136)]=_0x55c8b0[_0x8c4e28(0x103)],_0x35ff3b['type']=_0x55c8b0[_0x8c4e28(0x1fd)];const _0x3113fe={};_0x3113fe[_0x8c4e28(0x136)]=_0x55c8b0[_0x8c4e28(0xdc)],_0x3113fe[_0x8c4e28(0xaa)]=_0x55c8b0[_0x8c4e28(0x1fd)];const _0x2b6dc5={};_0x2b6dc5[_0x8c4e28(0x136)]=_0x55c8b0[_0x8c4e28(0x94)],_0x2b6dc5[_0x8c4e28(0xaa)]=_0x55c8b0[_0x8c4e28(0x1fd)];const _0x545d9e={};_0x545d9e[_0x8c4e28(0x136)]=_0x55c8b0['zGHmz'],_0x545d9e['type']=_0x55c8b0[_0x8c4e28(0x1fd)];const _0x39730a={};_0x39730a[_0x8c4e28(0x136)]=_0x55c8b0['EHqAp'],_0x39730a[_0x8c4e28(0xaa)]=_0x55c8b0[_0x8c4e28(0x100)],_0x39730a[_0x8c4e28(0x150)]=![];const _0xb992cf={};_0xb992cf[_0x8c4e28(0x136)]=_0x55c8b0[_0x8c4e28(0x16a)],_0xb992cf[_0x8c4e28(0xaa)]=_0x55c8b0['LbSmD'],_0xb992cf['default']=![];const _0x5ad978={};_0x5ad978[_0x8c4e28(0x136)]=_0x55c8b0[_0x8c4e28(0xfc)],_0x5ad978[_0x8c4e28(0xaa)]=_0x55c8b0[_0x8c4e28(0x100)],_0x5ad978['default']=![];const _0x492f04={};return _0x492f04['grid-name']=_0x5a514c,_0x492f04[_0x8c4e28(0xc7)]=_0x57eab1,_0x492f04[_0x8c4e28(0x90)]=_0x35ff3b,_0x492f04[_0x8c4e28(0xdf)]=_0x3113fe,_0x492f04[_0x8c4e28(0x10b)]=_0x2b6dc5,_0x492f04[_0x8c4e28(0x9c)]=_0x545d9e,_0x492f04[_0x8c4e28(0xf1)]=_0x39730a,_0x492f04[_0x8c4e28(0x1a0)]=_0xb992cf,_0x492f04['cluster-autoupgrade']=_0x5ad978,_0x566185[_0x8c4e28(0x1e6)](HELP_HEADER_MESSAGE[_0x8c4e28(0x18e)])[_0x8c4e28(0xde)](HELP_FOOTER_MESSAGE)['options'](_0x492f04)[_0x8c4e28(0x14c)](_0x55c8b0['VuTic'])[_0x8c4e28(0x114)];},exports[a9_0x1ab5db(0x1ca)]=async function(_0x1e0c52){const _0x484335=a9_0x1ab5db,_0x5b74a0={'HHZuO':function(_0x41cf82,_0x2d7721){return _0x41cf82(_0x2d7721);},'RYAma':_0x484335(0x204),'AmeWO':_0x484335(0x97),'IZGPw':_0x484335(0x1af),'jTzNy':_0x484335(0x128),'QUCrv':_0x484335(0x14d),'HVgWb':_0x484335(0xb5),'iVLtE':_0x484335(0x1c8),'IlXcs':_0x484335(0x108),'HQmvs':_0x484335(0xce),'MCyNt':'Flag\x20to\x20enable\x20Hub\x20HA','NftmV':_0x484335(0x1ad),'ODQaW':_0x484335(0x14c),'epmKt':_0x484335(0x202),'iQUfq':_0x484335(0x163),'OiOhp':_0x484335(0x1b1),'NxIuu':_0x484335(0x118),'xgIbp':_0x484335(0x93),'Ogaow':_0x484335(0x10e),'OYBcY':'true','jPwkk':_0x484335(0x150),'ZWgNB':_0x484335(0xb9),'kfoeL':_0x484335(0x125),'guSlF':'CLI\x20run\x20started','AiVxH':function(_0x5e1dd1,_0x4b9d96){return _0x5e1dd1(_0x4b9d96);},'XkUDj':_0x484335(0x1c3),'NyLFI':_0x484335(0x155),'AqDVp':_0x484335(0x15f),'wxJJf':_0x484335(0xdb),'CFYOK':_0x484335(0x122),'GuoaM':function(_0x317962,_0x19a8d0){return _0x317962===_0x19a8d0;},'brWmS':_0x484335(0x191),'WPedt':function(_0x3ed614,_0x3fa61b,_0x484957,_0x93fbce,_0x520302,_0x41b1b6,_0x20f4e3,_0x467b79,_0x2ec96b,_0x3ed327,_0x33fb94,_0x22fff6,_0x511ae4){return _0x3ed614(_0x3fa61b,_0x484957,_0x93fbce,_0x520302,_0x41b1b6,_0x20f4e3,_0x467b79,_0x2ec96b,_0x3ed327,_0x33fb94,_0x22fff6,_0x511ae4);},'OLHCG':function(_0x50674f,_0x19e4e9){return _0x50674f(_0x19e4e9);},'guhGj':function(_0x1decf4,_0x118775){return _0x1decf4!==_0x118775;},'wfAiH':function(_0x1dd9ca){return _0x1dd9ca();},'VSAbU':_0x484335(0x124),'OPGKo':'vRnGo','BybFB':_0x484335(0x96),'Dtfie':function(_0x57262a,_0x125b04,_0x4ee959,_0x560378,_0x8e508c,_0xbf1d9,_0x21a4b9){return _0x57262a(_0x125b04,_0x4ee959,_0x560378,_0x8e508c,_0xbf1d9,_0x21a4b9);},'KwwOa':_0x484335(0x168),'ATxVs':_0x484335(0x12f),'BQpYN':function(_0x377821){return _0x377821();},'QAIji':'<UsernamePlaceholder>','MRiRt':'<PasswordPlaceholder>','zUYTb':_0x484335(0x1a6),'BxIoX':function(_0x3298f9,_0x165329){return _0x3298f9!==_0x165329;},'CLnTj':_0x484335(0x18a),'SviOt':function(_0x28a379,_0x4e0921){return _0x28a379!==_0x4e0921;},'peAea':'oXdig','XDKDU':_0x484335(0x8c),'fzRWY':function(_0x145e1c,_0x157815,_0x3161ce,_0xd5c45b,_0x1a2c2f,_0x40a2d3,_0x26e343,_0x12a53d){return _0x145e1c(_0x157815,_0x3161ce,_0xd5c45b,_0x1a2c2f,_0x40a2d3,_0x26e343,_0x12a53d);},'kQgCQ':_0x484335(0x166),'DskfQ':function(_0x39feaa,_0x2764ac){return _0x39feaa===_0x2764ac;},'zXyco':_0x484335(0x17c),'eGdYW':'BaweK','cpnzk':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','jKciy':function(_0x3056a2,_0x10580e,_0x2c9c03,_0x5d7741,_0x34b7ff,_0x53aa24,_0x311df3,_0x32f1ca){return _0x3056a2(_0x10580e,_0x2c9c03,_0x5d7741,_0x34b7ff,_0x53aa24,_0x311df3,_0x32f1ca);},'GDIgJ':_0x484335(0x1a8),'JrGWu':function(_0x15121c,_0x435a84){return _0x15121c===_0x435a84;},'nShbJ':'drjKj','iVJqq':_0x484335(0xe7),'pYwYz':_0x484335(0xff),'fGylv':function(_0x25936c,_0x1bee8f){return _0x25936c===_0x1bee8f;},'SOlPJ':'OAIXF','BBVIQ':_0x484335(0xbb),'vynpH':'ubURo','qXEBT':_0x484335(0x123),'Hdecj':function(_0x5ea894,_0x31a31e,_0x5b28c2){return _0x5ea894(_0x31a31e,_0x5b28c2);},'iKgwz':function(_0x3855ca,_0x550113){return _0x3855ca!==_0x550113;},'IaVGE':_0x484335(0x1c9),'inOoy':_0x484335(0x101),'Kfcde':_0x484335(0x15a),'txROS':_0x484335(0x131),'ubpsu':function(_0x252ec4,_0x3d6dde,_0x2e5aa9){return _0x252ec4(_0x3d6dde,_0x2e5aa9);},'XlRJz':function(_0x390661,_0xe9d739){return _0x390661===_0xe9d739;},'NKEmZ':'oWuiZ','huoXo':_0x484335(0x10c),'qvelM':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','fwEyT':_0x484335(0x222),'bcyoM':function(_0x29282a,_0x5dbdc2){return _0x29282a===_0x5dbdc2;},'bZsoJ':_0x484335(0x207),'JYMeu':_0x484335(0x1d8),'NhOFz':_0x484335(0x16c),'CaFWw':function(_0x5eee94,_0x1bddcd,_0x2583d5,_0x154a6d,_0x18deae,_0x54ab7d,_0x8cca45,_0x4588df){return _0x5eee94(_0x1bddcd,_0x2583d5,_0x154a6d,_0x18deae,_0x54ab7d,_0x8cca45,_0x4588df);},'UjIzP':_0x484335(0x19a),'TxMJd':_0x484335(0xd1),'RUsFI':_0x484335(0xf4),'ZzPlo':_0x484335(0xc4),'rRweQ':function(_0x3bebd6,_0x9a3587){return _0x3bebd6!==_0x9a3587;},'IUOLu':_0x484335(0x1e9),'VpisM':_0x484335(0x138),'qeOTb':function(_0x452f20,_0x110361,_0x4823ba,_0x3d93b1,_0x60580d,_0xab88fc,_0x294601,_0x63d3c6){return _0x452f20(_0x110361,_0x4823ba,_0x3d93b1,_0x60580d,_0xab88fc,_0x294601,_0x63d3c6);},'fHmXO':'create-grid-checks-grid-already-exists','bMMME':_0x484335(0xb4),'ezTMt':'xewyr','rySLa':function(_0x2e56c6,_0x5cb038){return _0x2e56c6===_0x5cb038;},'PuDBT':_0x484335(0x1cb),'YLdiv':'ZZIpy','mgBwS':'1|3|0|2|4','TEZkZ':function(_0x4fed6d,_0x3bcc9c){return _0x4fed6d===_0x3bcc9c;},'JZqQn':function(_0x35deb0,_0x36dd93){return _0x35deb0===_0x36dd93;},'yBdCZ':_0x484335(0x119),'qYjSm':'QbXNY','iFNou':function(_0x49c7f7,_0x27603b){return _0x49c7f7===_0x27603b;},'GRRxR':function(_0x88faee,_0x185373){return _0x88faee===_0x185373;},'soNCE':_0x484335(0x137),'icuhc':'VgjHj','fLpRh':_0x484335(0xe4),'Wxdud':function(_0x26aaee,_0x5639a2,_0x5f0e16,_0x291c5e,_0x582a8d,_0x40c856,_0x4a9fb3,_0xd8dad6){return _0x26aaee(_0x5639a2,_0x5f0e16,_0x291c5e,_0x582a8d,_0x40c856,_0x4a9fb3,_0xd8dad6);},'hWWhv':_0x484335(0x20f),'XtWyc':_0x484335(0x14b),'CIRkj':'lwkkd','pPwDk':_0x484335(0x197),'CeBaf':function(_0x24368d,_0x9178b5){return _0x24368d===_0x9178b5;},'SooEk':_0x484335(0x102),'CWyBO':function(_0x1b10d2,_0x41b7c7,_0xcc1edf,_0x3ea97b,_0x35cdca,_0x288c60,_0x115aaa,_0x769ada,_0x5a68c5,_0x49c9b6,_0xcc7601,_0x5c60b3,_0x22ba88){return _0x1b10d2(_0x41b7c7,_0xcc1edf,_0x3ea97b,_0x35cdca,_0x288c60,_0x115aaa,_0x769ada,_0x5a68c5,_0x49c9b6,_0xcc7601,_0x5c60b3,_0x22ba88);},'jQddp':_0x484335(0xf6),'NMxWd':function(_0x1ab9ea,_0x1cac34){return _0x1ab9ea===_0x1cac34;},'sQKeb':'qoVeO','Kidfa':'rrcZh','Sxcvv':function(_0x52238d,_0x5579b6){return _0x52238d!==_0x5579b6;},'qtMWU':_0x484335(0x161),'RpTyr':_0x484335(0x1b2),'MDzcc':function(_0x359089,_0x50b3de){return _0x359089(_0x50b3de);},'YUYtV':_0x484335(0x116),'lSxYp':'TqrOv','Ynguk':_0x484335(0x174),'bgUId':'QGhrK','JIcJk':function(_0x210290,_0xdb3525){return _0x210290===_0xdb3525;},'sGPKI':'zRqmh','bdGLh':_0x484335(0x82),'itzxa':_0x484335(0x7f),'eoUTR':_0x484335(0x127),'jYuXQ':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','nOnpz':function(_0x1f8589,_0x4d1702){return _0x1f8589!=_0x4d1702;},'ShNGX':function(_0x66ab64,_0x400a06){return _0x66ab64!=_0x400a06;},'CaRMU':function(_0x8104e9,_0x17012e){return _0x8104e9!==_0x17012e;},'bTzeH':function(_0x1a160e,_0x346022){return _0x1a160e>_0x346022;},'BnGaL':_0x484335(0x1e2),'TGpjG':_0x484335(0x214),'WiJPS':function(_0x541858,_0x449ce5){return _0x541858===_0x449ce5;},'Cemjn':_0x484335(0xd6),'lojKh':function(_0x1951a0,_0x55271d,_0x20482a,_0x320cb9,_0x256699,_0x4414a4,_0x247f00,_0x317053){return _0x1951a0(_0x55271d,_0x20482a,_0x320cb9,_0x256699,_0x4414a4,_0x247f00,_0x317053);},'taIWE':'pre-spawned-invalid-vpc','VOukz':_0x484335(0xac),'hdfAq':'1|4|3|2|0','yMEaW':'Cluster\x20created\x20successfully','VuSiD':_0x484335(0xc3),'eOENU':function(_0x292d8e,_0x58803b){return _0x292d8e===_0x58803b;},'HDTFt':'Creating\x20Hub\x20HA\x20resources','bXNtm':_0x484335(0x22a),'KwuyF':_0x484335(0x178),'LBnoV':'templates','OvJQi':'hubharesources','tPznW':'browserstack-secret.yaml','PawEy':_0x484335(0x170),'eyAdg':function(_0x19a720,_0x345ff1,_0x47c002){return _0x19a720(_0x345ff1,_0x47c002);},'fwGFS':'Added\x20Secret\x20Mapping','sbzwb':'efs-csi','VRIIv':function(_0x5a05cf,_0x20cb17){return _0x5a05cf===_0x20cb17;},'yPKgD':_0x484335(0x13c),'lFmdF':_0x484335(0x1f8),'ocsgM':_0x484335(0x1fa),'HoANL':_0x484335(0x1a1),'GRBuM':_0x484335(0x1c4),'eAoKW':_0x484335(0x1a7),'qPewB':_0x484335(0x159),'USpqB':_0x484335(0x8d),'YPXye':function(_0x393470,_0x565fb9,_0x274f5a){return _0x393470(_0x565fb9,_0x274f5a);},'odYxs':_0x484335(0x227),'JsTeR':_0x484335(0xe6),'UnklD':_0x484335(0xcb),'BEHCB':_0x484335(0x198),'VsHTC':function(_0x15e05e,_0x60db28,_0x355e80,_0x5262bd,_0x842ea1,_0x1c3e97,_0x4d3ae0,_0x4b795d){return _0x15e05e(_0x60db28,_0x355e80,_0x5262bd,_0x842ea1,_0x1c3e97,_0x4d3ae0,_0x4b795d);},'DdIeu':_0x484335(0x21d),'vcXaW':function(_0x4707cd,_0xeec82a){return _0x4707cd(_0xeec82a);},'wfvGZ':_0x484335(0x89),'pfPnG':'Browserstack','IUnDQ':_0x484335(0x146),'ICQnO':_0x484335(0x1c5),'DQRRf':_0x484335(0x1da),'aPOOl':_0x484335(0x1be),'GiNmi':function(_0x4665f6,_0x5d8803){return _0x4665f6===_0x5d8803;},'dVpQw':function(_0x3bd799,_0x1e6161,_0x1227c0,_0x568fd4,_0x83039b,_0x53e43c,_0x2fe46c,_0x4dc2b5,_0x29faed,_0x337017,_0x4bba73){return _0x3bd799(_0x1e6161,_0x1227c0,_0x568fd4,_0x83039b,_0x53e43c,_0x2fe46c,_0x4dc2b5,_0x29faed,_0x337017,_0x4bba73);},'NCqsL':_0x484335(0xe5),'yNjSD':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','BGTci':function(_0x338ae4,_0x3c8966,_0x567370,_0x4a74b6,_0x13c4a9){return _0x338ae4(_0x3c8966,_0x567370,_0x4a74b6,_0x13c4a9);},'xMeWc':function(_0x3a1013,_0x5ef683,_0x4b849c){return _0x3a1013(_0x5ef683,_0x4b849c);},'LiABG':_0x484335(0x7d),'AylxT':_0x484335(0x1dc),'KKotf':'ingress-nginx','AqFav':function(_0xe44299,_0x4b42d5){return _0xe44299===_0x4b42d5;},'BDemS':_0x484335(0x1b8),'DGXlG':function(_0x2160f7,_0xa5ccbd,_0x20a297,_0x1762b2,_0x17a1cb,_0x335d6f,_0x4e2c75,_0x269509){return _0x2160f7(_0xa5ccbd,_0x20a297,_0x1762b2,_0x17a1cb,_0x335d6f,_0x4e2c75,_0x269509);},'BbjQG':_0x484335(0x1ba),'XeHVo':function(_0x5147de,_0x2f8731){return _0x5147de===_0x2f8731;},'UBXPu':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','YoTEu':_0x484335(0x18f),'AHcwc':function(_0x35f465,_0x220e67){return _0x35f465!==_0x220e67;},'OImUI':function(_0x1d10ea,_0x5c70b3,_0x3f53fb,_0x54390d,_0x5c88de,_0x5347e4,_0x22b40a,_0x32eba4){return _0x1d10ea(_0x5c70b3,_0x3f53fb,_0x54390d,_0x5c88de,_0x5347e4,_0x22b40a,_0x32eba4);},'EUPiX':_0x484335(0x1ef),'gaxIJ':function(_0x1418ab,_0xb6efa5){return _0x1418ab===_0xb6efa5;},'PIdWp':_0x484335(0x21e),'TGbWi':function(_0xda6a6a,_0x4c15f0,_0x3906eb,_0x31b18d,_0x5e6f33,_0x3a0927){return _0xda6a6a(_0x4c15f0,_0x3906eb,_0x31b18d,_0x5e6f33,_0x3a0927);},'dMJSH':function(_0x4adaa1,_0x470b0a,_0x142d5d,_0x348f61,_0x49ca96,_0xaf7397,_0x5b4c85){return _0x4adaa1(_0x470b0a,_0x142d5d,_0x348f61,_0x49ca96,_0xaf7397,_0x5b4c85);},'PeooS':_0x484335(0xab)};let _0xf0dbd8=![],_0x554f87=![],_0x1c5d43,_0x24a942,_0x349080,_0x4f48bc,_0x3df37e,_0x3676c2,_0x4bd24a,_0x959a50,_0x350422,_0x232572,_0x194053,_0xf83b41,_0x4172f8,_0x5ef327,_0x4c6c04=0x1,_0x151c51=0xe;try{global_registry['requestId']=_0x5b74a0[_0x484335(0x179)](uuidv4),global_registry[_0x484335(0xa1)]=![];!fs[_0x484335(0x1a3)](_0x5b74a0['wfAiH'](getCredentialsPath))&&(_0x5b74a0['guhGj'](_0x5b74a0['VSAbU'],_0x5b74a0[_0x484335(0x1b3)])?(console['error'](_0x5b74a0[_0x484335(0xa5)]),await _0x5b74a0[_0x484335(0x1f2)](sendInstrumentationEvent,_0x1e0c52,_0x5b74a0['KwwOa'],messageTypes[_0x484335(0xb8)],_0x5b74a0['ATxVs'],null,_0x1e0c52),process[_0x484335(0xe8)](0x1)):_0x5b74a0[_0x484335(0x78)](_0x423f47,_0xecad37['uploaderVersion']));await _0x5b74a0[_0x484335(0x1f2)](sendInstrumentationEvent,_0x1e0c52,_0x5b74a0[_0x484335(0x15b)],messageTypes[_0x484335(0x201)],null,null,_0x1e0c52);const _0x25bdda=JSON[_0x484335(0xe0)](fs[_0x484335(0x134)](_0x5b74a0[_0x484335(0x1b4)](getCredentialsPath)));global_registry['bstackUsername']=_0x25bdda[_0x484335(0x113)][_0x484335(0x110)],global_registry[_0x484335(0xa2)]=_0x25bdda[_0x484335(0x113)][_0x484335(0x14e)];const _0x28c636=WS_ENDPOINT[_0x484335(0x1e1)](_0x5b74a0['QAIji'],_0x25bdda[_0x484335(0x113)][_0x484335(0x110)])['replace'](_0x5b74a0[_0x484335(0xd9)],_0x25bdda['Browserstack']['password']),_0x262c95={};_0x262c95['WebSocket']=ws,_0x262c95['connectionTimeout']=0x36ee80,_0xf83b41=new ReconnectingWebSocket(_0x28c636,[],_0x262c95),logger['debug'](_0x5b74a0['zUYTb']),webSocketUtils[_0x484335(0x13a)](_0xf83b41,_0x1e0c52[_0x484335(0x220)],_0x1e0c52[_0x484335(0x14e)]);const _0x963fc0=_0x1e0c52[_0x484335(0x152)]||DEFAULT_GRID_NAME;if(_0x1e0c52[_0x484335(0x169)]||_0x1e0c52[_0x484335(0x1d3)]||_0x1e0c52['region']){if(_0x5b74a0[_0x484335(0x80)](_0x5b74a0[_0x484335(0xec)],_0x5b74a0[_0x484335(0xec)])){const _0x314cfa={};_0x314cfa[_0x484335(0x136)]=_0x5b74a0[_0x484335(0xc0)],_0x314cfa['type']=_0x5b74a0[_0x484335(0x7a)];const _0x5b0861={};_0x5b0861[_0x484335(0x136)]=_0x5b74a0[_0x484335(0x219)],_0x5b0861[_0x484335(0xaa)]=_0x5b74a0[_0x484335(0x7a)];const _0x5ba94d={};_0x5ba94d[_0x484335(0x136)]=_0x5b74a0[_0x484335(0x215)],_0x5ba94d[_0x484335(0xaa)]=_0x5b74a0[_0x484335(0x7a)];const _0x49f5ee={};_0x49f5ee[_0x484335(0x136)]=_0x5b74a0[_0x484335(0x99)],_0x49f5ee[_0x484335(0xaa)]=_0x5b74a0[_0x484335(0x7a)];const _0x56b947={};_0x56b947[_0x484335(0x136)]=_0x5b74a0[_0x484335(0x181)],_0x56b947[_0x484335(0xaa)]=_0x5b74a0[_0x484335(0x7a)];const _0x3dd644={};_0x3dd644['description']=_0x5b74a0[_0x484335(0xc5)],_0x3dd644[_0x484335(0xaa)]=_0x5b74a0[_0x484335(0x7a)];const _0x48333e={};_0x48333e[_0x484335(0x136)]=_0x5b74a0[_0x484335(0x1c1)],_0x48333e[_0x484335(0xaa)]=_0x5b74a0['HQmvs'],_0x48333e[_0x484335(0x150)]=![];const _0x3ac46f={};_0x3ac46f['description']=_0x5b74a0[_0x484335(0xb2)],_0x3ac46f[_0x484335(0xaa)]=_0x5b74a0[_0x484335(0xa0)],_0x3ac46f[_0x484335(0x150)]=![];const _0x45c7d8={};_0x45c7d8[_0x484335(0x136)]=_0x5b74a0[_0x484335(0x225)],_0x45c7d8[_0x484335(0xaa)]=_0x5b74a0['HQmvs'],_0x45c7d8['default']=![];const _0x582cdc={};return _0x582cdc[_0x484335(0x1d0)]=_0x314cfa,_0x582cdc['grid-profile']=_0x5b0861,_0x582cdc[_0x484335(0x90)]=_0x5ba94d,_0x582cdc['cloud-provider']=_0x49f5ee,_0x582cdc[_0x484335(0x10b)]=_0x56b947,_0x582cdc['private-grid']=_0x3dd644,_0x582cdc[_0x484335(0xf1)]=_0x48333e,_0x582cdc[_0x484335(0x1a0)]=_0x3ac46f,_0x582cdc[_0x484335(0x7e)]=_0x45c7d8,_0x5b64f1['usage'](_0x5e8306[_0x484335(0x18e)])[_0x484335(0xde)](_0x5a1683)['options'](_0x582cdc)['help'](_0x5b74a0['ODQaW'])['argv'];}else{if(!(_0x1e0c52[_0x484335(0x169)]&&_0x1e0c52[_0x484335(0x1d3)]&&_0x1e0c52[_0x484335(0x10b)])){if(_0x5b74a0[_0x484335(0x171)](_0x5b74a0['peAea'],_0x5b74a0[_0x484335(0xb3)])){const _0x24bdf3=_0x5b74a0['epmKt']['split']('|');let _0x56fe53=0x0;while(!![]){switch(_0x24bdf3[_0x56fe53++]){case'0':_0x1a910d[_0x484335(0x1fb)]=_0x5b74a0[_0x484335(0x183)];continue;case'1':_0x3980c8[_0x484335(0x17a)]=_0x5b74a0[_0x484335(0x19f)];continue;case'2':_0x1193b5[_0x484335(0x1d5)](_0x5b74a0[_0x484335(0x194)]);continue;case'3':_0x63378f[_0x484335(0xc2)]=!![];continue;case'4':_0xb8ee1e[_0x484335(0x1f3)]=_0x5b74a0['xgIbp'];continue;}break;}}else _0x1c5d43=_0x5b74a0[_0x484335(0x228)],await _0x5b74a0[_0x484335(0x21c)](reportToGalactusAndSendToEDS,_0x1e0c52,_0xf83b41,_0x1c5d43,messageTypes[_0x484335(0xb8)],_0x5b74a0[_0x484335(0x15b)],_0x5b74a0['kQgCQ'],_0x5b74a0[_0x484335(0x1a2)]),logger[_0x484335(0xb9)](_0x1c5d43),process[_0x484335(0xe8)](0x1);}![AWS,AZURE,GCP][_0x484335(0x1df)](_0x1e0c52[_0x484335(0x1d3)][_0x484335(0xae)]())&&(_0x5b74a0[_0x484335(0x223)](_0x5b74a0[_0x484335(0x98)],_0x5b74a0['eGdYW'])?_0x2cb0cb[_0x484335(0x1d5)](_0x484335(0xbd)+_0x1ae21f[_0x484335(0xca)](_0x256c65)+'\x20'):(_0x1c5d43=_0x5b74a0[_0x484335(0x20d)],await _0x5b74a0[_0x484335(0x144)](reportToGalactusAndSendToEDS,_0x1e0c52,_0xf83b41,_0x1c5d43,messageTypes['ERROR'],_0x5b74a0['KwwOa'],_0x5b74a0[_0x484335(0x112)],_0x5b74a0[_0x484335(0x1a2)]),logger[_0x484335(0xb9)](_0x1c5d43),process[_0x484335(0xe8)](0x1)));_0x1e0c52[_0x484335(0x1e5)]&&_0x5b74a0[_0x484335(0x105)](_0x1e0c52[_0x484335(0x1e5)][_0x484335(0xae)](),_0x5b74a0['OYBcY'])&&(_0x5b74a0[_0x484335(0x80)](_0x5b74a0['nShbJ'],_0x5b74a0[_0x484335(0x9b)])?_0x31a2f7[_0x484335(0x1d5)](_0x484335(0x218)+_0x2619f6+'\x20'):global_registry[_0x484335(0xa1)]=!![]);global_registry[_0x484335(0x1d3)]=_0x1e0c52[_0x484335(0x1d3)],global_registry[_0x484335(0x1e0)]=_0x1e0c52[_0x484335(0x10b)],global_registry[_0x484335(0x169)]=_0x1e0c52[_0x484335(0x169)];const _0x2ccda8=await _0x5b74a0[_0x484335(0x1f2)](getCloudProviderObject,_0x1e0c52[_0x484335(0x1d3)],_0x1e0c52[_0x484335(0x169)],_0x963fc0,_0xf83b41,webSocketUtils,_0x1e0c52),_0x51ba44=await _0x2ccda8[_0x484335(0x1a4)]();if(!_0x51ba44)_0x5b74a0[_0x484335(0x193)](_0x5b74a0[_0x484335(0xd0)],_0x5b74a0[_0x484335(0x1b0)])?(logger[_0x484335(0x1d5)](_0x484335(0x187)+_0x1e0c52[_0x484335(0x169)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0xf0dbd8=![],_0x554f87=!![]):_0x221509=_0x5b74a0['Ogaow'];else{if(_0x5b74a0[_0x484335(0x217)](_0x5b74a0[_0x484335(0x1dd)],_0x5b74a0[_0x484335(0x1e3)])){const _0x34c067={'azure.workload.identity/use':_0x5b74a0[_0x484335(0x1ce)],..._0x5865a6[0x0]['spec'][_0x484335(0x21a)][_0x484335(0x180)][_0x484335(0xaf)]};_0x58da39[0x0]['spec'][_0x484335(0x21a)][_0x484335(0x180)][_0x484335(0xaf)]=_0x34c067,_0x3b3dbc[0x0][_0x484335(0xa7)][_0x484335(0x21a)][_0x484335(0xa7)][_0x484335(0x18c)]=_0x5b74a0[_0x484335(0x15d)];}else _0xf0dbd8=!![];}_0x349080=_0x1e0c52[_0x484335(0x169)],_0x24a942=_0x1e0c52[_0x484335(0x1d3)][_0x484335(0xae)](),_0x4f48bc=_0x1e0c52['region'];}}else{if(_0x1e0c52[_0x484335(0x19d)]){if(_0x5b74a0[_0x484335(0x217)](_0x5b74a0[_0x484335(0xa6)],_0x5b74a0[_0x484335(0xa6)]))global_registry[_0x484335(0x19d)]=_0x1e0c52[_0x484335(0x19d)];else{const _0x2a8e17={};_0x2a8e17[_0x484335(0xaa)]=_0x19b6a6['LOG'],_0x2a8e17['message']=_0xf7b396,_0x3313b8[_0x484335(0x1c7)](_0x20ed38,_0x2a8e17,_0x5b74a0[_0x484335(0x1a2)],!![]);}}}global_registry[_0x484335(0x152)]=_0x1e0c52[_0x484335(0x152)];const _0xb097e7={'method':_0x5b74a0[_0x484335(0x139)],'headers':_0x5b74a0[_0x484335(0x92)](getAuthHeader,_0x25bdda[_0x484335(0x113)][_0x484335(0x110)],_0x25bdda[_0x484335(0x113)][_0x484335(0x14e)]),'throwHttpErrors':![]},_0x2d1d67={};_0x2d1d67['gridName']=_0x963fc0;const _0x26a4a9=_0x2d1d67;_0x554f87&&(_0x5b74a0[_0x484335(0x165)](_0x5b74a0['IaVGE'],_0x5b74a0[_0x484335(0x1b5)])?(_0x26a4a9['region']=_0x4f48bc,_0x26a4a9[_0x484335(0x1d3)]=_0x24a942,_0x26a4a9['newCluster']=!![],_0x26a4a9[_0x484335(0x1d1)]=_0x1e0c52['clusterAutoupgrade']):_0xf79a57=null);_0x1e0c52['clusterAutoupgrade']&&(_0x5b74a0[_0x484335(0x105)](_0x5b74a0[_0x484335(0x1f6)],_0x5b74a0['txROS'])?_0x1b1a39=!![]:logger[_0x484335(0x1d5)](_0x5b74a0['XkUDj']));const _0xcd4bb7=_0x484335(0x104)+AG_API_URL+_0x484335(0x95),_0x3c1c44={'searchParams':_0x26a4a9,'throwHttpErrors':![],..._0xb097e7},_0x57958d=_0x3c1c44,_0x37d149=await _0x5b74a0[_0x484335(0xfd)](got,_0xcd4bb7,_0x57958d);(_0x5b74a0[_0x484335(0x1ae)](_0x37d149,null)||_0x5b74a0['GuoaM'](_0x37d149,undefined))&&(_0x5b74a0[_0x484335(0x193)](_0x5b74a0[_0x484335(0x1c0)],_0x5b74a0['huoXo'])?(_0x1c5d43=_0x5b74a0['qvelM'],await _0x5b74a0[_0x484335(0x21c)](reportToGalactusAndSendToEDS,_0x1e0c52,_0xf83b41,_0x1c5d43,messageTypes['ERROR'],_0x5b74a0[_0x484335(0x15b)],_0x5b74a0[_0x484335(0x205)],_0x5b74a0[_0x484335(0x1a2)]),logger['error'](_0x1c5d43),process[_0x484335(0xe8)](0x1)):_0x3eb2ad[_0x484335(0xa1)]=!![]);_0x5b74a0['bcyoM'](_0x37d149[_0x484335(0x175)],0x191)&&(_0x5b74a0[_0x484335(0x80)](_0x5b74a0[_0x484335(0x1a9)],_0x5b74a0['JYMeu'])?(_0x1c5d43=_0x5b74a0['NhOFz'],await _0x5b74a0['CaFWw'](reportToGalactusAndSendToEDS,_0x1e0c52,_0xf83b41,_0x1c5d43,messageTypes['ERROR'],_0x5b74a0['KwwOa'],_0x5b74a0[_0x484335(0x14f)],_0x5b74a0['ZWgNB']),logger['error'](_0x1c5d43),process[_0x484335(0xe8)](0x1)):(_0x57bc41['region']=_0x8fa31f,_0x2765cf[_0x484335(0x1d3)]=_0x414ec9,_0x46c8e5[_0x484335(0x20c)]=!![],_0x3da6ea[_0x484335(0x1d1)]=_0x5a86ca[_0x484335(0x1bd)]));_0x5b74a0[_0x484335(0x80)](_0x37d149[_0x484335(0x175)],0xc8)&&(_0x5b74a0['JrGWu'](_0x5b74a0[_0x484335(0xe3)],_0x5b74a0[_0x484335(0xe3)])?(_0x1c5d43=_0x484335(0xfb)+JSON[_0x484335(0xca)](_0x37d149[_0x484335(0x126)]),await _0x5b74a0[_0x484335(0x21c)](reportToGalactusAndSendToEDS,_0x1e0c52,_0xf83b41,_0x1c5d43,messageTypes[_0x484335(0xb8)],_0x5b74a0[_0x484335(0x15b)],_0x5b74a0[_0x484335(0x1e7)],_0x5b74a0[_0x484335(0x1a2)]),logger['error'](_0x1c5d43),process['exit'](0x1)):_0x1d534b['isPrivateGrid']=!![]);const _0x3fc923=JSON[_0x484335(0xe0)](_0x37d149['body']),_0x3a7a91={};_0x3a7a91[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0x145)],_0x3a7a91['message']=_0x5b74a0['guSlF'],webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x3a7a91);const _0x4c34eb={};_0x4c34eb['type']=WS_EVENTS[_0x484335(0x151)],_0x4c34eb[_0x484335(0xad)]=_0x5b74a0[_0x484335(0x135)],webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x4c34eb);if(_0x3fc923['alreadyPresent']){if(_0x5b74a0[_0x484335(0x14a)](_0x5b74a0['IUOLu'],_0x5b74a0[_0x484335(0x1bf)]))_0x1c5d43=_0x484335(0x1ec)+_0x963fc0+_0x484335(0x106),await _0x5b74a0[_0x484335(0x12b)](reportToGalactusAndSendToEDS,_0x1e0c52,_0xf83b41,_0x1c5d43,messageTypes[_0x484335(0xb8)],_0x5b74a0[_0x484335(0x15b)],_0x5b74a0['fHmXO'],_0x5b74a0[_0x484335(0x1a2)]),logger[_0x484335(0xb9)](_0x1c5d43),process[_0x484335(0xe8)](0x1);else{const _0x19c567=_0x5b74a0['kfoeL'][_0x484335(0x12a)]('|');let _0x16df33=0x0;while(!![]){switch(_0x19c567[_0x16df33++]){case'0':const _0x556a37={};_0x556a37[_0x484335(0xaa)]=_0x2eb133[_0x484335(0x145)],_0x556a37[_0x484335(0xad)]=_0x5b74a0[_0x484335(0x176)],_0x4c321b[_0x484335(0x1c7)](_0x34ceb2,_0x556a37);continue;case'1':_0x18a543[_0x484335(0x19b)]=_0x92bb56[_0x484335(0x19b)];continue;case'2':_0xdab6ff[_0x484335(0x1e0)]=_0x354eba;continue;case'3':_0x179129='Spawning\x20the\x20grid\x20'+_0x187416+'\x20in\x20existing\x20cluster\x20\x27'+_0x4247f5+'\x27';continue;case'4':_0x4e73dc['hubVersion']=_0x45dca0[_0x484335(0x1d7)];continue;case'5':const _0x4ae32a={};_0x4ae32a[_0x484335(0xaa)]=_0x4fa5ab[_0x484335(0x151)],_0x4ae32a[_0x484335(0xad)]=_0xb38a3f,_0xd55a41[_0x484335(0x1c7)](_0xdddf52,_0x4ae32a);continue;case'6':_0x2bb5cd[_0x484335(0x1d3)]=_0x49a28e;continue;case'7':_0x409ae5[_0x484335(0x1d5)](_0x107681);continue;case'8':_0x1c9859['clusterName']=_0x367b73;continue;}break;}}}const _0x426bdd=_0x3fc923['gridProfiles'];let _0xe52201=_0x426bdd[_0x3fc923['defaultGridProfile']];_0x1e0c52[_0x484335(0x19d)]&&(_0x5b74a0[_0x484335(0x193)](_0x5b74a0['bMMME'],_0x5b74a0['ezTMt'])?_0xe52201=_0x426bdd[_0x1e0c52[_0x484335(0x19d)]]:_0x20d541=_0x282a3a[_0x357a22['gridProfile']]);global_registry[_0x484335(0xc2)]=![];if(_0x1e0c52[_0x484335(0x115)]){if(_0x5b74a0['rySLa'](_0x5b74a0[_0x484335(0x84)],_0x5b74a0[_0x484335(0x210)]))_0x5b74a0[_0x484335(0x21f)](_0x2d8ecd,_0xffeac5['kafkaUploader']);else{const _0x49641a=_0x5b74a0['mgBwS'][_0x484335(0x12a)]('|');let _0x38cd9b=0x0;while(!![]){switch(_0x49641a[_0x38cd9b++]){case'0':global_registry['redisPassword']=_0x5b74a0[_0x484335(0x190)];continue;case'1':logger['info'](_0x5b74a0[_0x484335(0x194)]);continue;case'2':global_registry[_0x484335(0x17a)]=_0x5b74a0[_0x484335(0x19f)];continue;case'3':global_registry[_0x484335(0x1fb)]=_0x5b74a0[_0x484335(0x183)];continue;case'4':global_registry[_0x484335(0xc2)]=!![];continue;}break;}}}if(_0x5b74a0['TEZkZ'](_0xf0dbd8,![])&&_0x5b74a0['JZqQn'](_0x554f87,![])){if(_0x5b74a0[_0x484335(0x165)](_0x5b74a0[_0x484335(0xb1)],_0x5b74a0[_0x484335(0x7b)])){if(_0x5b74a0[_0x484335(0x11f)](_0xe52201,undefined)){if(_0x5b74a0[_0x484335(0x200)](_0x5b74a0['soNCE'],_0x5b74a0[_0x484335(0xda)]))throw new _0x43ead7(_0x484335(0x1d4)+_0x31b4fe+_0x484335(0x86));else _0x1c5d43=_0x5b74a0[_0x484335(0x17f)],await _0x5b74a0['Wxdud'](reportToGalactusAndSendToEDS,_0x1e0c52,_0xf83b41,_0x1c5d43,messageTypes[_0x484335(0xb8)],_0x5b74a0['KwwOa'],_0x5b74a0[_0x484335(0x140)],_0x5b74a0[_0x484335(0x1a2)]),logger['error'](_0x1c5d43),process['exit'](0x1);}global_registry[_0x484335(0x1f9)]=_0xe52201['id'],_0x1c5d43=_0x484335(0xd3)+_0x963fc0+_0x484335(0xed)+_0xe52201['name']+_0x484335(0x1ee),logger['info'](_0x1c5d43);const _0x2aac40={};_0x2aac40[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0x151)],_0x2aac40[_0x484335(0xad)]=_0x1c5d43,webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x2aac40),_0x24a942=_0xe52201[_0x484335(0x1d3)],_0x349080=_0xe52201[_0x484335(0x169)],_0x4f48bc=_0xe52201[_0x484335(0x10b)],_0x3df37e=_0xe52201['concurrency'],_0x3676c2=_0xe52201[_0x484335(0xd2)],_0x4bd24a=_0xe52201[_0x484335(0x182)],_0x959a50=_0xe52201[_0x484335(0xbc)],_0x350422=_0xe52201[_0x484335(0x1c2)],_0x232572=_0xe52201[_0x484335(0x15e)],_0x4c6c04=_0xe52201['minNodes'],_0x151c51=_0xe52201['maxNodes'],_0x4172f8=_0x3fc923[_0x484335(0x1d7)],_0x5ef327=_0x3fc923[_0x484335(0x19b)],_0x4bd24a&&_0x5b74a0[_0x484335(0x17b)](_0x4bd24a['length'],0x0)&&(_0x5b74a0[_0x484335(0x217)](_0x5b74a0[_0x484335(0xa9)],_0x5b74a0[_0x484335(0xa9)])?_0x4bd24a=null:_0x2116e6[_0x484335(0x19d)]=_0x1ea36e['gridProfile']),_0x350422&&_0x5b74a0['XlRJz'](_0x350422['length'],0x0)&&(_0x5b74a0[_0x484335(0x171)](_0x5b74a0[_0x484335(0x13d)],_0x5b74a0[_0x484335(0x1ff)])?_0x350422=null:_0x171234['info'](_0x5b74a0[_0x484335(0xf9)])),_0x5b74a0[_0x484335(0x193)](_0xe52201[_0x484335(0x1e5)],undefined)&&_0xe52201[_0x484335(0x1e5)]&&(_0x5b74a0[_0x484335(0xf0)](_0x5b74a0['SooEk'],_0x5b74a0[_0x484335(0x18d)])?global_registry[_0x484335(0xa1)]=!![]:_0x3a8434[_0x484335(0xa1)]=!![]),_0x5b74a0[_0x484335(0x12d)](updateGlobalRegistryWithConfig,_0x24a942,_0x349080,_0x4f48bc,_0x3df37e,_0x3676c2,_0x232572,_0xe52201,_0x4172f8,_0x5ef327,_0x4c6c04,_0x151c51,_0x1e0c52[_0x484335(0x1bd)]),global_registry[_0x484335(0xc2)]&&(_0x5b74a0[_0x484335(0xd4)](_0x5b74a0[_0x484335(0xc6)],_0x5b74a0[_0x484335(0xc6)])?_0x5b74a0[_0x484335(0x142)](updateGlobalRegistryForHubHa,_0x3fc923[_0x484335(0x172)]):_0x5342e5['error'](_0x484335(0xbe)+_0x13b8d4+'\x20\x0a'+_0x26e765[_0x484335(0xca)](_0x2f35b4[_0x484335(0x209)])));}else _0x300e31[_0x484335(0x1d5)]('Cluster:\x20'+_0x57a047[_0x484335(0x169)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x1dc21e=![],_0x55dde5=!![];}else{if(_0x5b74a0['XlRJz'](_0x554f87,!![])){if(_0x5b74a0[_0x484335(0x1a5)](_0x5b74a0[_0x484335(0x20e)],_0x5b74a0[_0x484335(0x9f)]))_0x3ad404=_0x5d5aaa[_0x484335(0x85)],_0x199afa=_0x5b74a0[_0x484335(0xfa)];else{_0x1c5d43=_0x484335(0x11b)+_0x963fc0,logger['info'](_0x1c5d43);const _0x429f0c={};_0x429f0c['type']=WS_EVENTS[_0x484335(0x151)],_0x429f0c[_0x484335(0xad)]=_0x1c5d43,webSocketUtils['sendEventToBackend'](_0xf83b41,_0x429f0c),_0x3df37e=_0xe52201[_0x484335(0x229)],_0x3676c2=_0xe52201[_0x484335(0xd2)],_0x4bd24a=null,_0x959a50=null,_0x350422=null,_0x232572=_0xe52201[_0x484335(0x15e)],_0x4c6c04=_0xe52201[_0x484335(0x224)],_0x151c51=_0xe52201[_0x484335(0xba)],_0x4172f8=_0x3fc923['hubVersion'],_0x5ef327=_0x3fc923[_0x484335(0x19b)],_0x5b74a0[_0x484335(0x1e4)](_0xe52201[_0x484335(0x1e5)],undefined)&&_0xe52201[_0x484335(0x1e5)]&&(_0x5b74a0[_0x484335(0x1e4)](_0x5b74a0[_0x484335(0x133)],_0x5b74a0[_0x484335(0x133)])?_0x101de0[_0x484335(0x15c)]():global_registry[_0x484335(0xa1)]=!![]),_0x5b74a0['CWyBO'](updateGlobalRegistryWithConfig,_0x24a942,_0x349080,_0x4f48bc,_0x3df37e,_0x3676c2,_0x232572,_0xe52201,_0x4172f8,_0x5ef327,_0x4c6c04,_0x151c51,_0x1e0c52[_0x484335(0x1bd)]),global_registry['enableHubHa']&&(_0x5b74a0[_0x484335(0xa8)](_0x5b74a0['RpTyr'],_0x5b74a0[_0x484335(0xcd)])?_0x5b74a0[_0x484335(0xf5)](updateGlobalRegistryForHubHa,_0x3fc923[_0x484335(0x87)]):_0x15d35c=null);}}else{if(_0x5b74a0[_0x484335(0x14a)](_0x5b74a0['YUYtV'],_0x5b74a0[_0x484335(0x8f)])){const _0x5d0ba5=_0x5b74a0['Ynguk']['split']('|');let _0x3eb2a7=0x0;while(!![]){switch(_0x5d0ba5[_0x3eb2a7++]){case'0':_0x1c5d43='Spawning\x20the\x20grid\x20'+_0x963fc0+'\x20in\x20existing\x20cluster\x20\x27'+_0x349080+'\x27';continue;case'1':const _0x282f2e={};_0x282f2e[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0x145)],_0x282f2e[_0x484335(0xad)]=_0x5b74a0[_0x484335(0x176)],webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x282f2e);continue;case'2':global_registry['browserVersion']=_0x3fc923[_0x484335(0x19b)];continue;case'3':const _0x4dc452={};_0x4dc452['type']=WS_EVENTS[_0x484335(0x151)],_0x4dc452[_0x484335(0xad)]=_0x1c5d43,webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x4dc452);continue;case'4':global_registry[_0x484335(0x1d3)]=_0x24a942;continue;case'5':logger[_0x484335(0x1d5)](_0x1c5d43);continue;case'6':global_registry[_0x484335(0x169)]=_0x349080;continue;case'7':global_registry[_0x484335(0x1d7)]=_0x3fc923['hubVersion'];continue;case'8':global_registry[_0x484335(0x1e0)]=_0x4f48bc;continue;}break;}}else _0x460faa=_0x5b74a0['AqDVp'];}}const _0x269dd8=await _0x5b74a0['Dtfie'](getCloudProviderObject,_0x24a942,_0x349080,_0x963fc0,_0xf83b41,webSocketUtils,_0x1e0c52);_0x5b74a0[_0x484335(0x14a)](_0x24a942,AZURE)&&(_0x5b74a0['JrGWu'](_0x5b74a0['bgUId'],_0x5b74a0[_0x484335(0x199)])?_0x269dd8[_0x484335(0x15c)]():_0xfd5d47=_0x5b74a0[_0x484335(0x153)]);let _0x3ca1fc;if(_0x5b74a0[_0x484335(0x1cc)](_0xf0dbd8,![])){_0x1c5d43=_0x484335(0x216)+_0x4f48bc+').';const _0x1278ff={};_0x1278ff['type']=WS_EVENTS[_0x484335(0x151)],_0x1278ff[_0x484335(0xad)]=_0x1c5d43,webSocketUtils['sendEventToBackend'](_0xf83b41,_0x1278ff),logger[_0x484335(0x1d5)](_0x1c5d43);const _0x1e7ebb=await _0x269dd8['isClusterPresent']();if(_0x1e7ebb){if(_0x5b74a0[_0x484335(0x171)](_0x5b74a0[_0x484335(0x167)],_0x5b74a0['bdGLh'])){const _0x1e944a={};_0x1e944a[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0x151)],_0x1e944a['message']=_0x484335(0x1d4)+_0x349080+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x1e944a,_0x5b74a0[_0x484335(0x212)]),logger[_0x484335(0x1d5)](_0x484335(0x1d4)+_0x349080+_0x484335(0xe2)),_0xf0dbd8=!![];if(_0x5b74a0[_0x484335(0x200)](_0x554f87,!![])){if(_0x5b74a0[_0x484335(0x165)](_0x5b74a0[_0x484335(0xb7)],_0x5b74a0[_0x484335(0x11e)]))throw new Error(_0x484335(0x1d4)+_0x349080+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else{const _0x159fdb={};_0x159fdb[_0x484335(0xaa)]=_0x536740[_0x484335(0x151)],_0x159fdb[_0x484335(0xad)]='Cluster\x20'+_0x3dd785+_0x484335(0xe2),_0xb46092['sendEventToBackend'](_0x103354,_0x159fdb,_0x5b74a0[_0x484335(0x212)]),_0x21d0bd[_0x484335(0x1d5)](_0x484335(0x1d4)+_0x193046+_0x484335(0xe2)),_0x5d7fb6=!![];if(_0x5b74a0[_0x484335(0xa8)](_0x353d97,!![]))throw new _0x2adca0(_0x484335(0x1d4)+_0x552766+_0x484335(0x86));}}}else{const _0x2c09d0=_0x5b74a0[_0x484335(0xd5)]['split']('|');let _0x5393bc=0x0;while(!![]){switch(_0x2c09d0[_0x5393bc++]){case'0':_0x568ef7=_0x182ae0[_0x484335(0x224)];continue;case'1':_0x5b74a0[_0x484335(0x1f7)](_0x1d6741,_0x2cb6cd,_0x3e7276,_0x51f415,_0x2fff8f,_0x5d2db8,_0x1af2e7,_0x281557,_0x2917d7,_0x373685,_0x17f6bf,_0x23229f,_0x4a24cd[_0x484335(0x1bd)]);continue;case'2':_0x395248[_0x484335(0xc2)]&&_0x5b74a0['OLHCG'](_0x4013c3,_0xe41104[_0x484335(0x87)]);continue;case'3':_0x2b2085=_0x484335(0x11b)+_0x264ba0;continue;case'4':_0xc070e4=_0x32741a[_0x484335(0xba)];continue;case'5':_0x1105d2=_0x1351d8['browserVersion'];continue;case'6':_0x5b74a0['guhGj'](_0x4801c4[_0x484335(0x1e5)],_0x599c0a)&&_0x32a9cc[_0x484335(0x1e5)]&&(_0x4bdcd0[_0x484335(0xa1)]=!![]);continue;case'7':_0x27039b=_0x507d94[_0x484335(0xd2)];continue;case'8':_0x2ff755=_0x4783b6[_0x484335(0x1d7)];continue;case'9':_0x3f7c21=_0x4a7c90[_0x484335(0x15e)];continue;case'10':_0x742027=null;continue;case'11':_0x577761[_0x484335(0x1d5)](_0x4691d6);continue;case'12':_0x2793d2=null;continue;case'13':_0x2ace30=null;continue;case'14':const _0x4c29de={};_0x4c29de[_0x484335(0xaa)]=_0x27cf35[_0x484335(0x151)],_0x4c29de[_0x484335(0xad)]=_0x26fe36,_0x367331['sendEventToBackend'](_0x154dac,_0x4c29de);continue;case'15':_0x2405f7=_0x3d9791['concurrency'];continue;}break;}}}else{const _0x54c0d4={};_0x54c0d4[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0x151)],_0x54c0d4[_0x484335(0xad)]=_0x5b74a0['jYuXQ'],webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x54c0d4),logger[_0x484335(0x1d5)](_0x5b74a0['jYuXQ']);const _0x46cd3b=_0x5b74a0[_0x484335(0x8e)](_0x4bd24a,null)&&_0x5b74a0[_0x484335(0x14a)](_0x4bd24a,undefined),_0x4caba3=_0x5b74a0[_0x484335(0x195)](_0x350422,null)&&_0x5b74a0[_0x484335(0x1ac)](_0x350422,undefined)&&_0x5b74a0[_0x484335(0x10d)](_0x350422[_0x484335(0x13b)],0x0);if(_0x46cd3b){_0x5b74a0['bcyoM'](_0x4caba3,![])&&(_0x1c5d43=_0x5b74a0['BnGaL'],await _0x5b74a0['fzRWY'](reportToGalactusAndSendToEDS,_0x1e0c52,_0xf83b41,_0x1c5d43,messageTypes[_0x484335(0xb8)],_0x5b74a0[_0x484335(0x15b)],_0x5b74a0[_0x484335(0x1cd)],_0x5b74a0['ZWgNB']),logger[_0x484335(0xb9)](_0x1c5d43),process['exit'](0x1));const _0x695d46=await _0x269dd8[_0x484335(0x7c)](_0x4bd24a);_0x5b74a0[_0x484335(0x1bc)](_0x695d46,![])?(_0x1c5d43=_0x5b74a0[_0x484335(0x157)],await _0x5b74a0[_0x484335(0x111)](reportToGalactusAndSendToEDS,_0x1e0c52,_0xf83b41,_0x1c5d43,messageTypes[_0x484335(0xb8)],_0x5b74a0[_0x484335(0x15b)],_0x5b74a0['taIWE'],_0x5b74a0[_0x484335(0x1a2)]),logger['error'](_0x1c5d43),process[_0x484335(0xe8)](0x1)):logger['info'](_0x484335(0x218)+_0x4bd24a+'\x20');const _0x751f78=await _0x269dd8[_0x484335(0x156)](_0x350422,_0x4bd24a);_0x5b74a0[_0x484335(0x1b9)](_0x751f78[0x0],![])?(_0x1c5d43=_0x484335(0x147)+JSON[_0x484335(0xca)](_0x751f78[0x1])+_0x484335(0x20b)+_0x4bd24a+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x5b74a0[_0x484335(0x21c)](reportToGalactusAndSendToEDS,_0x1e0c52,_0xf83b41,_0x1c5d43,messageTypes[_0x484335(0xb8)],_0x5b74a0[_0x484335(0x15b)],_0x5b74a0['VOukz'],_0x5b74a0['ZWgNB']),logger['error'](_0x1c5d43),process['exit'](0x1)):logger['info'](_0x484335(0xbd)+JSON[_0x484335(0xca)](_0x350422)+'\x20'),[_0x4bd24a,_0x350422]=await _0x269dd8[_0x484335(0x12e)](_0x4bd24a,_0x350422);}else{const _0xb8ba87=_0x5b74a0[_0x484335(0x177)][_0x484335(0x12a)]('|');let _0x52d26b=0x0;while(!![]){switch(_0xb8ba87[_0x52d26b++]){case'0':logger['info'](_0x5b74a0[_0x484335(0x17d)]);continue;case'1':const _0x480b3f={};_0x480b3f[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0x151)],_0x480b3f[_0x484335(0xad)]=_0x5b74a0[_0x484335(0x226)],webSocketUtils['sendEventToBackend'](_0xf83b41,_0x480b3f);continue;case'2':const _0x3ddf46={};_0x3ddf46['type']=WS_EVENTS[_0x484335(0x151)],_0x3ddf46[_0x484335(0xad)]=_0x5b74a0['yMEaW'],webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x3ddf46);continue;case'3':[_0x4bd24a,_0x350422]=await _0x269dd8['setupNewCluster'](_0x4bd24a,_0x350422);continue;case'4':logger[_0x484335(0x1d5)](_0x5b74a0[_0x484335(0x226)]);continue;}break;}}}}_0xf0dbd8&&_0x5b74a0[_0x484335(0x1db)](_0x24a942,AZURE)&&(await _0x269dd8[_0x484335(0x1ed)](),await _0x269dd8['createOtherResources']());const [_0x31c7ea,_0x254fdd,_0x12927d,_0x3832bc,_0x527e27,_0x401299,_0x7b5ad0]=await _0x5b74a0[_0x484335(0x92)](createK8sClient,_0x269dd8,_0x1e0c52[_0x484335(0x143)]);_0x5b74a0[_0x484335(0x162)](_0xf0dbd8,![])&&_0x5b74a0[_0x484335(0x1bc)](_0x24a942,AWS)&&(global_registry[_0x484335(0x185)]=!![],_0x3ca1fc=await _0x269dd8[_0x484335(0x11d)](_0x31c7ea,_0x1e0c52));if(_0x5b74a0['GRRxR'](_0xf0dbd8,![])&&global_registry[_0x484335(0xc2)])try{await _0x269dd8['setupHubHa'](_0x401299,_0x7b5ad0,_0x1e0c52,_0x4bd24a,_0x350422);const _0x532be9={};_0x532be9[_0x484335(0xaa)]=WS_EVENTS['LOG'],_0x532be9[_0x484335(0xad)]=_0x5b74a0[_0x484335(0x1ea)],webSocketUtils['sendEventToBackend'](_0xf83b41,_0x532be9);!await _0x5b74a0['ubpsu'](namespaceExists,_0x31c7ea,global_registry[_0x484335(0x1fb)])&&await _0x5b74a0[_0x484335(0xfd)](createNamespace,_0x31c7ea,global_registry[_0x484335(0x1fb)]);logger[_0x484335(0x1d5)](_0x5b74a0['bXNtm']);let _0x55b27d=await fs[_0x484335(0x1f0)](path[_0x484335(0x11a)](__dirname,_0x5b74a0[_0x484335(0xf3)],_0x5b74a0[_0x484335(0x1ab)],_0x5b74a0[_0x484335(0x129)],_0x5b74a0[_0x484335(0x117)]),_0x5b74a0['PawEy']);_0x55b27d=_0x55b27d[_0x484335(0x1e1)](/<RedisClientPassword>/g,_0x5b74a0[_0x484335(0x78)](encodeBase64,global_registry['redisPassword'])),_0x55b27d=_0x55b27d[_0x484335(0x1e1)](/<KafkaClientPassword>/g,_0x5b74a0[_0x484335(0x142)](encodeBase64,global_registry['kafkaPassword'])),_0x55b27d=_0x55b27d['replace'](/<BstackUsername>/g,_0x5b74a0[_0x484335(0x78)](encodeBase64,global_registry[_0x484335(0x188)])),_0x55b27d=_0x55b27d[_0x484335(0x1e1)](/<BstackAccessKey>/g,_0x5b74a0[_0x484335(0xf5)](encodeBase64,global_registry[_0x484335(0xa2)]));const _0x505ba3=yaml[_0x484335(0x203)](_0x55b27d);await _0x5b74a0[_0x484335(0x19c)](kubeApply,_0x505ba3,_0x7b5ad0),logger['info'](_0x5b74a0[_0x484335(0x189)]);let _0x13a5e3=_0x5b74a0[_0x484335(0x18b)];if(_0x5b74a0[_0x484335(0x1db)](_0x24a942,AZURE))_0x13a5e3=_0x5b74a0['Ogaow'];else _0x5b74a0['VRIIv'](_0x24a942,GCP)&&(_0x13a5e3=_0x5b74a0['wxJJf']);logger[_0x484335(0x1d5)](_0x5b74a0['yPKgD']);let _0x212e20=await fs[_0x484335(0x1f0)](path[_0x484335(0x11a)](__dirname,_0x5b74a0[_0x484335(0xf3)],_0x5b74a0['LBnoV'],_0x5b74a0[_0x484335(0x129)],_0x5b74a0[_0x484335(0xc8)]),_0x5b74a0[_0x484335(0x16d)]);_0x212e20=_0x212e20[_0x484335(0x1e1)](/<HubHaNameSpace>/g,global_registry[_0x484335(0x1fb)]),_0x212e20=_0x212e20['replace'](/<StorageClassName>/g,_0x13a5e3);const _0x344db3=yaml[_0x484335(0x203)](_0x212e20);await _0x5b74a0[_0x484335(0x19c)](kubeApply,_0x344db3,_0x7b5ad0),logger['info'](_0x5b74a0[_0x484335(0x13f)]),logger[_0x484335(0x1d5)](_0x5b74a0[_0x484335(0xe1)]);let _0x46180a=await fs['readFileAsync'](path[_0x484335(0x11a)](__dirname,_0x5b74a0[_0x484335(0xf3)],_0x5b74a0[_0x484335(0x1ab)],_0x5b74a0[_0x484335(0x129)],_0x5b74a0[_0x484335(0xf2)]),_0x5b74a0['PawEy']);_0x46180a=_0x46180a[_0x484335(0x1e1)](/<HubHaNameSpace>/g,global_registry[_0x484335(0x1fb)]),_0x46180a=_0x46180a[_0x484335(0x1e1)](/<StorageClassName>/g,_0x13a5e3);const _0x57e7c6=yaml[_0x484335(0x203)](_0x46180a);await _0x5b74a0['Hdecj'](kubeApply,_0x57e7c6,_0x7b5ad0),logger[_0x484335(0x1d5)](_0x5b74a0[_0x484335(0x17e)]),logger[_0x484335(0x1d5)](_0x5b74a0[_0x484335(0x213)]);let _0x5d99db=await fs[_0x484335(0x1f0)](path[_0x484335(0x11a)](__dirname,_0x5b74a0[_0x484335(0xf3)],_0x5b74a0[_0x484335(0x1ab)],_0x5b74a0[_0x484335(0x129)],_0x5b74a0[_0x484335(0xd8)]),_0x5b74a0[_0x484335(0x16d)]);_0x5d99db=_0x5d99db[_0x484335(0x1e1)](/<UploaderImageVersion>/g,global_registry[_0x484335(0x1f5)]),_0x5d99db=_0x5d99db[_0x484335(0x1e1)](/<HubHaNameSpace>/g,global_registry[_0x484335(0x1fb)]);const _0x4077d8=yaml[_0x484335(0x203)](_0x5d99db);_0x5b74a0[_0x484335(0xd4)](global_registry['cloudProvider'],AZURE)&&(_0x4077d8[0x0]['spec']['template'][_0x484335(0x180)][_0x484335(0xaf)]={'azure.workload.identity/use':_0x5b74a0['OYBcY'],..._0x4077d8[0x0]['spec'][_0x484335(0x21a)][_0x484335(0x180)][_0x484335(0xaf)]},_0x4077d8[0x0][_0x484335(0xa7)]['template'][_0x484335(0xa7)][_0x484335(0x18c)]=_0x5b74a0[_0x484335(0x15d)]);await _0x5b74a0['YPXye'](kubeApply,_0x4077d8,_0x7b5ad0),logger[_0x484335(0x1d5)](_0x5b74a0[_0x484335(0x208)]);const _0xeeabb2={};_0xeeabb2[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0x151)],_0xeeabb2[_0x484335(0xad)]=_0x5b74a0['JsTeR'],webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0xeeabb2),logger[_0x484335(0x1d5)](_0x5b74a0['UnklD']);}catch(_0x35b39d){const _0x158c6c=_0x5b74a0[_0x484335(0xea)]['split']('|');let _0x26c0a5=0x0;while(!![]){switch(_0x158c6c[_0x26c0a5++]){case'0':logger[_0x484335(0xb9)](_0x1c5d43);continue;case'1':await _0x269dd8[_0x484335(0xd7)](_0x31c7ea,global_registry['clusterRegion']);continue;case'2':_0x1c5d43=_0x484335(0x79)+_0x35b39d[_0x484335(0xad)];continue;case'3':await _0x5b74a0[_0x484335(0x81)](reportToGalactusAndSendToEDS,_0x1e0c52,_0xf83b41,_0x1c5d43,messageTypes[_0x484335(0xb8)],_0x5b74a0[_0x484335(0x15b)],_0x5b74a0[_0x484335(0x130)],_0x5b74a0[_0x484335(0x1a2)]);continue;case'4':process[_0x484335(0xe8)](0x1);continue;}break;}}try{_0x194053=_0x5b74a0[_0x484335(0x16f)](kebabCase,_0x963fc0),logger['info'](_0x5b74a0[_0x484335(0xf7)]);const _0x1126fe={};_0x1126fe[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0x151)],_0x1126fe[_0x484335(0xad)]=_0x5b74a0[_0x484335(0xf7)],webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x1126fe);if(_0x5b74a0['CaRMU'](_0x194053,_0x5b74a0[_0x484335(0x15d)])){const _0x5d4465={};_0x5d4465[_0x484335(0x192)]=_0x5b74a0[_0x484335(0x1de)],_0x5d4465['managedBy']=_0x5b74a0[_0x484335(0x1de)];const _0x1075fd={};_0x1075fd['name']=_0x194053,_0x1075fd[_0x484335(0x1e8)]=_0x5d4465;const _0x220cd7={};_0x220cd7[_0x484335(0x180)]=_0x1075fd;const _0x3adf1d=_0x220cd7,_0xbb7815={};_0xbb7815[_0x484335(0x126)]=_0x3adf1d,await _0x31c7ea[_0x484335(0x221)](_0xbb7815),logger['info'](_0x5b74a0[_0x484335(0x1aa)]);}const _0x14c8a2={};_0x14c8a2[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0x151)],_0x14c8a2[_0x484335(0xad)]=_0x5b74a0['ICQnO'],webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x14c8a2);const _0x5b69cd={};_0x5b69cd[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0x151)],_0x5b69cd[_0x484335(0xad)]=_0x5b74a0[_0x484335(0x1bb)],webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x5b69cd),logger[_0x484335(0x1d5)](_0x5b74a0[_0x484335(0x141)]);let _0x448857={};_0x5b74a0[_0x484335(0xc9)](_0x24a942,AZURE)&&(_0x448857={'clientId':await _0x269dd8[_0x484335(0x10a)]('turboscale-managed-identity-'+_0x349080)});await _0x5b74a0[_0x484335(0x16b)](addGridComponents,_0x31c7ea,_0x254fdd,_0x12927d,_0x3832bc,_0x194053,_0x349080,_0x3ca1fc,_0x527e27,_0x7b5ad0,_0x448857),_0x1c5d43=_0x5b74a0[_0x484335(0xcf)],logger[_0x484335(0x1d5)](_0x1c5d43);const _0x51173f={};_0x51173f[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0x151)],_0x51173f[_0x484335(0xad)]=_0x1c5d43,webSocketUtils['sendEventToBackend'](_0xf83b41,_0x51173f),_0x1c5d43=_0x5b74a0[_0x484335(0x186)],logger[_0x484335(0x1d5)](_0x1c5d43);const _0x4ca255={};_0x4ca255[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0x151)],_0x4ca255[_0x484335(0xad)]=_0x1c5d43,webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x4ca255),await _0x5b74a0[_0x484335(0x8a)](waitForDeployment,_0x254fdd,_0x194053,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x511eb1=await _0x5b74a0[_0x484335(0xeb)](getNamespaceUID,_0x31c7ea,_0x194053),_0x39de47=global_registry['isPrivateGrid']?_0x5b74a0[_0x484335(0xee)]:_0x5b74a0[_0x484335(0x1d9)],_0x368824={};_0x368824[_0x484335(0x21b)]=_0x39de47,_0x368824[_0x484335(0xa4)]=_0x5b74a0['KKotf'];const _0x12d82f=await _0x31c7ea[_0x484335(0x148)](_0x368824);let _0x5b958e=_0x269dd8['getGridHostname'](_0x12d82f)+'/'+_0x194053,_0x3445c8=_0x5b74a0['AqDVp'];try{const _0x5e91be=_0x484335(0x104)+AG_API_URL+_0x484335(0x8b)+_0x511eb1,_0x249661=await _0x5b74a0['eyAdg'](got,_0x5e91be,_0xb097e7);(_0x5b74a0['NMxWd'](_0x249661,null)||_0x5b74a0[_0x484335(0x184)](_0x249661,undefined))&&(_0x1c5d43=_0x5b74a0[_0x484335(0x9a)],await _0x5b74a0['DGXlG'](reportToGalactusAndSendToEDS,_0x1e0c52,_0xf83b41,_0x1c5d43,messageTypes[_0x484335(0xb8)],_0x5b74a0[_0x484335(0x15b)],_0x5b74a0['BbjQG'],_0x5b74a0[_0x484335(0x1a2)]),logger[_0x484335(0xb9)](_0x1c5d43),process['exit'](0x1));_0x5b74a0[_0x484335(0x11c)](_0x249661['statusCode'],0x191)&&(_0x1c5d43=_0x5b74a0[_0x484335(0x9e)],await _0x5b74a0['VsHTC'](reportToGalactusAndSendToEDS,_0x1e0c52,_0xf83b41,_0x1c5d43,messageTypes['ERROR'],_0x5b74a0['KwwOa'],_0x5b74a0[_0x484335(0xa3)],_0x5b74a0[_0x484335(0x1a2)]),logger[_0x484335(0xb9)](_0x1c5d43),process['exit'](0x1));_0x5b74a0[_0x484335(0x1b7)](_0x249661[_0x484335(0x175)],0xc8)&&(_0x1c5d43=_0x484335(0x13e)+JSON[_0x484335(0xca)](_0x249661),await _0x5b74a0[_0x484335(0xef)](reportToGalactusAndSendToEDS,_0x1e0c52,_0xf83b41,_0x1c5d43,messageTypes[_0x484335(0xb8)],_0x5b74a0[_0x484335(0x15b)],_0x5b74a0[_0x484335(0x120)],_0x5b74a0[_0x484335(0x1a2)]),logger[_0x484335(0xb9)](_0x1c5d43),process[_0x484335(0xe8)](0x1));const _0x1b1af5=JSON[_0x484335(0xe0)](_0x249661[_0x484335(0x126)]);_0x1b1af5['route53']&&(_0x5b958e=_0x1b1af5[_0x484335(0x85)],_0x3445c8=_0x5b74a0['NyLFI']),global_registry['isPrivateGrid']&&(_0x3445c8=_0x5b74a0['AqDVp']);}catch(_0xbd61f4){}_0x1c5d43=_0x484335(0x1d2)+_0x5b958e+'\x20',logger[_0x484335(0x1d5)](_0x1c5d43);const _0x54218d={};_0x54218d[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0x151)],_0x54218d[_0x484335(0xad)]=_0x1c5d43,webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x54218d),_0x1c5d43=_0x484335(0x1cf)+_0x3445c8+_0x484335(0x107)+_0x5b958e+_0x484335(0x206),logger['info'](_0x1c5d43);const _0x4a7f3e={};_0x4a7f3e[_0x484335(0xaa)]=WS_EVENTS['LOG'],_0x4a7f3e[_0x484335(0xad)]=_0x1c5d43,webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x4a7f3e);const _0x332fa4={};_0x332fa4[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0xdd)],_0x332fa4[_0x484335(0xad)]='CLI\x20run\x20finished:\x20'+_0x5b958e,webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x332fa4),await webSocketUtils['delay'](0x7d0);}catch(_0x15a938){logger[_0x484335(0xb9)](_0x484335(0x196)+_0x15a938+'\x20\x0a'+JSON[_0x484335(0xca)](_0x15a938[_0x484335(0x209)]));if(_0x5b74a0[_0x484335(0x19e)](_0xf0dbd8,![]))try{logger['info'](_0x5b74a0[_0x484335(0xb0)]),await _0x5b74a0[_0x484335(0x1fc)](removeGridComponents,_0x31c7ea,_0x254fdd,_0x12927d,_0x3832bc,_0x194053),await _0x269dd8[_0x484335(0xd7)](_0x31c7ea,global_registry[_0x484335(0x1e0)]);}catch(_0x886a98){logger[_0x484335(0xb9)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x886a98+'\x20\x0a'+JSON['stringify'](_0x886a98[_0x484335(0x209)]));}throw _0x15a938;}}catch(_0x266ac3){const _0x165c8d='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x266ac3+'\x20\x0a'+JSON[_0x484335(0xca)](_0x266ac3[_0x484335(0x209)]);if(_0xf83b41){const _0x289453={};_0x289453[_0x484335(0xaa)]=WS_EVENTS[_0x484335(0x151)],_0x289453[_0x484335(0xad)]=_0x165c8d,webSocketUtils[_0x484335(0x1c7)](_0xf83b41,_0x289453,_0x5b74a0['ZWgNB'],!![]);}await webSocketUtils[_0x484335(0x1d6)](0x7d0);const _0x32e9bf={};_0x32e9bf[_0x484335(0xb9)]=_0x165c8d,await _0x5b74a0[_0x484335(0xc1)](sendInstrumentationEvent,_0x1e0c52,_0x5b74a0['KwwOa'],messageTypes['ERROR'],_0x5b74a0[_0x484335(0x121)],_0x32e9bf,_0x1e0c52),logger[_0x484335(0xb9)](_0x165c8d);}process['exit'](0x0);};function a9_0x5e19(){const _0x33bafe=['iQUfq','AqFav','isNewAWSCluster','yNjSD','Cluster:\x20','bstackUsername','fwGFS','Sbqhj','sbzwb','serviceAccountName','SooEk','create','get-grid-url-auth-failed','xgIbp','3|11|14|15|7|13|10|12|9|0|4|8|5|6|1|2','createdBy','guhGj','NxIuu','ShNGX','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','SOglX','2|0|3|1|4','bgUId','create-grid-checks-auth-failed','browserVersion','eyAdg','gridProfile','gaxIJ','OiOhp','hub-ha','Adding\x20Kafka\x20deployment...','ZWgNB','existsSync','isClusterPresent','NMxWd','Adding\x20Websocket\x20listeners','Added\x20Kafka\x20deployment.','non-aws-azure-cluster','bZsoJ','IUnDQ','LBnoV','CaRMU','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','XlRJz','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','pYwYz','Epyd5nXbRK','ZaGBT','OPGKo','BQpYN','inOoy','../../cloudproviders/utils','AHcwc','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','rySLa','get-grid-url-null-response','DQRRf','WiJPS','clusterAutoupgrade','Spawning\x20Grid\x20on\x20the\x20Cluster','VpisM','NKEmZ','IlXcs','subnets','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','bitnami-kafka.yaml','Namespace\x20created','14475moXIns','sendEventToBackend','Create\x20a\x20private/public\x20grid.','esQRD','handler','WiRDW','JIcJk','TGpjG','OYBcY','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','grid-name','clusterAutoUpgrade','Grid\x20can\x20be\x20accessed\x20at:\x20','cloudProvider','Cluster\x20','info','delay','hubVersion','AlAoM','AylxT','Spawning\x20grid\x20on\x20to\x20the\x20cluster','eOENU','ingress-nginx-controller','SOlPJ','pfPnG','includes','clusterRegion','replace','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','BBVIQ','Sxcvv','privateGrid','usage','RUsFI','annotations','GTSBa','HDTFt','186taodHJ','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','updateClusterAlreadyPresent','\x27\x20grid\x20profile','get-grid-url-non-200','readFileAsync','reconnecting-websocket','Dtfie','redisPassword','got','uploaderImageVersion','Kfcde','WPedt','bitnami-redis.yaml','gridProfileId','Added\x20Redis\x20deployment.','hubHaNameSpace','TGbWi','FltTz','path','pPwDk','GRRxR','INFO','2|0|4|1|3','loadAll','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','fwEyT','/wd/hub','tjwPH','odYxs','stack','../../config/logger','\x20are\x20not\x20present\x20in\x20VPC:\x20','newCluster','cpnzk','sQKeb','create-grid-checks-invalid-profile','YLdiv','desc','CFYOK','qPewB','pre-spawned-subnets-not-selected','jTzNy','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','fGylv','Found\x20VPC:\x20','IZGPw','template','name','fzRWY','hub-ha-deployments-failed','Deleting\x20the\x20CloudFormation\x20Stacks','AiVxH','user','createNamespace','create-grid-checks-null-response','DskfQ','minNodes','NftmV','VuSiD','Added\x20Turboscale\x20Uploader\x20deployment.','XDKDU','concurrency','Adding\x20Secret\x20Mapping','HHZuO','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','AmeWO','qYjSm','isVPCPresent','private-ingress-nginx-controller','cluster-autoupgrade','yIFqd','BxIoX','VsHTC','GhEhz','bWobP','PuDBT','route53','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','kafkaUploader','EHqAp','Creating\x20namespace','BGTci','/packages/cli/get-grid-url?gridIdentifier=','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','turboscale-uploader.yaml','nOnpz','lSxYp','cluster-name','builder','Hdecj','UkRNzNYCBU','yygTf','/packages/cli/create-grid-checks','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','string','zXyco','QUCrv','BDemS','nShbJ','private-grid','../../utils/instrumentationUtils','UBXPu','Kidfa','HQmvs','isPrivateGrid','bstackAccesskey','YoTEu','namespace','BybFB','vynpH','spec','GuoaM','XtWyc','type','grid-spawning-failed','pre-spawned-invalid-subnets','message','toLowerCase','labels','PIdWp','yBdCZ','MCyNt','peAea','cnXon','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','1XTjgjQ','itzxa','ERROR','error','maxNodes','QJMxB','securityGroups','Found\x20Subnets:\x20','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','46556829YbYHkd','RYAma','dMJSH','enableHubHa','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.','Grid\x20profile\x20fetched\x20from\x20backend','iVLtE','jQddp','grid-profile','lFmdF','GiNmi','stringify','Hub\x20HA\x20setup\x20completed\x20successfully.','../../config/constants','RpTyr','boolean','NCqsL','iVJqq','nLzaA','instanceType','Will\x20be\x20spawning\x20the\x20grid\x20','TEZkZ','brWmS','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','deleteCluster','USpqB','MRiRt','icuhc','premium-rwo','TPaFC','CLI_RUN_FINISHED','epilogue','cloud-provider','parse','HoANL','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','TxMJd','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Grid\x20spawned\x20on\x20the\x20cluster','Created\x20Hub\x20HA\x20resources','XdoPU','exit','370urcvek','BEHCB','xMeWc','CLnTj','\x20using\x20\x27','LiABG','OImUI','CeBaf','skip-tls-cert-verify','GRBuM','KwuyF','create-grid-checks-non-200','MDzcc','iRgmS','wfvGZ','../../utils/webSocketUtils','XkUDj','NyLFI','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','nXLoL','ubpsu','js-yaml','ijKeG','LbSmD','pgQgi','wCCjF','eLsRI','https://','JrGWu','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','://','Skip\x20insecure\x20cert\x20verification.','Oualc','getResourceClientId','region','RFWPa','bTzeH','azurefile-csi-premium','3529490QHBnOQ','username','lojKh','GDIgJ','Browserstack','argv','hubHa','jUvRE','tPznW','Enabling\x20Hub\x20HA\x20flow','yqHCQ','join','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','XeHVo','setupAutoscaler','eoUTR','iFNou','EUPiX','PeooS','warn','GET','mcFtQ','0|3|7|5|6|2|8|4|1','body','jZmMn','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','OvJQi','split','qeOTb','556362AuxlOd','CWyBO','setupNewCluster','init-not-called','DdIeu','GVUup','1488046LGzUcG','qtMWU','readFileSync','ZzPlo','description','jDpCk','tNeVo','qXEBT','addListeners','length','Adding\x20Redis\x20deployment...','CIRkj','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','ocsgM','hWWhv','aPOOl','OLHCG','skipTlsCertVerify','jKciy','CLI_RUN_STARTED','Namespace\x20Created','Subnets:\x20','readNamespacedService','23004OKqaLh','rRweQ','tUBMm','help','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','password','UjIzP','default','LOG','gridName','wxJJf','../../utils/utilityMethods','https','isSubnetsValid','Cemjn','16CuhOyd','Adding\x20Turboscale\x20Uploader\x20deployment...','xbdbd','KwwOa','sendResourceDataToHST','jPwkk','s3bucket','http','8156656ygGuRv','QuLcw','bcyoM','browserstack','grid','iKgwz','prespawned-cluster-args-not-passed','sGPKI','create-grid-called','clusterName','usvwG','dVpQw','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','PawEy','uuid','vcXaW','utf-8','SviOt','uploaderVersion','zGHmz','1|0|5|3|4|8|6|7|2','statusCode','guSlF','hdfAq','../..','wfAiH','kafkaPassword','JZqQn','mNSPm','yMEaW','eAoKW','fLpRh','metadata','HVgWb','vpc'];a9_0x5e19=function(){return _0x33bafe;};return a9_0x5e19();}
1
+ const a9_0x1b1b58=a9_0x41ff;(function(_0x40e3e6,_0x41306b){const _0x1b59c2=a9_0x41ff,_0x128e96=_0x40e3e6();while(!![]){try{const _0x48b5ac=parseInt(_0x1b59c2(0x2c9))/0x1*(parseInt(_0x1b59c2(0x2c0))/0x2)+-parseInt(_0x1b59c2(0x2dd))/0x3+parseInt(_0x1b59c2(0x24f))/0x4+-parseInt(_0x1b59c2(0x25a))/0x5*(-parseInt(_0x1b59c2(0x267))/0x6)+parseInt(_0x1b59c2(0x2b0))/0x7*(-parseInt(_0x1b59c2(0x2ca))/0x8)+-parseInt(_0x1b59c2(0x36e))/0x9*(-parseInt(_0x1b59c2(0x340))/0xa)+-parseInt(_0x1b59c2(0x355))/0xb;if(_0x48b5ac===_0x41306b)break;else _0x128e96['push'](_0x128e96['shift']());}catch(_0x248982){_0x128e96['push'](_0x128e96['shift']());}}}(a9_0x5f3f,0x8d0f2));const fs=require('fs'),ws=require('ws'),path=require(a9_0x1b1b58(0x2eb)),yaml=require(a9_0x1b1b58(0x2fa)),ReconnectingWebSocket=require(a9_0x1b1b58(0x2d7)),got=require('got'),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x1b1b58(0x1ee)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x1b1b58(0x362)),{getCloudProviderObject}=require(a9_0x1b1b58(0x391)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x1b1b58(0x252)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a9_0x1b1b58(0x240));function a9_0x41ff(_0x5ab45d,_0x56ab4d){const _0x5f3f48=a9_0x5f3f();return a9_0x41ff=function(_0x41ff2b,_0x2f7658){_0x41ff2b=_0x41ff2b-0x1ed;let _0x526702=_0x5f3f48[_0x41ff2b];return _0x526702;},a9_0x41ff(_0x5ab45d,_0x56ab4d);}function a9_0x5f3f(){const _0x4d9bb5=['lqjpa','LKIzE','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','Huzxb','private-grid','Added\x20Turboscale\x20Uploader\x20deployment.','eHrAx','\x20are\x20not\x20present\x20in\x20VPC:\x20','620048JSkmgK','browserstack-secret.yaml','PjeRD','../../utils/gridComponents','Spawning\x20the\x20grid\x20','gMxfl','IhyVx','CjSfM','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','wSyOR','YvJkc','5281895vAMgrW','qdVfx','GZEKi','ALvYB','FWOgE','wBMRE','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','LejUu','qSoTU','hccoO','AzKmN','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','length','6dNSuFJ','pWPQJ','xrqGF','wpPXP','../..','newCluster','eGFzx','gurtC','mapdz','kafkaPassword','utf-8','PEpbY','statusCode','NSrVD','Skip\x20insecure\x20cert\x20verification.','LNUnD','alreadyPresent','vjFtQ','KdDwG','Spawning\x20grid\x20on\x20to\x20the\x20cluster','uploaderVersion','join','iiurH','get-grid-url-null-response','HAoJy','vsCqj','gHeHc','Created\x20Hub\x20HA\x20resources','Xamga','OGJfE','CApIN','delay','TTsQP','gridName','2|15|6|14|12|4|11|5|1|13|3|9|7|8|10|0','KLSPz','wrQhS','twjWb','JEgpD','desc','RlDFs','fGwAl','create-grid-called','string','browserVersion','Enabling\x20Hub\x20HA\x20flow','THDoD','create-grid-checks-invalid-profile','XTcMr','LahOm','Adding\x20Secret\x20Mapping','GET','gridProfiles','zDZPU','pre-spawned-invalid-vpc','NRbih','iJtsu','dFhyn','Cluster:\x20','pwdeY','hubVersion','UEVTr','command','redisPassword','DWIfP','addListeners','wIRVn','iQyYa','instanceType','clusterAutoUpgrade','XfuOP','epilogue','warn','14pQVFWk','nuCmF','mUylG','stringify','EWFpK','name','SiAOq','spec','OdPDt','pre-spawned-invalid-subnets','PRKuM','zgQjf','gWLdt','serviceAccountName','\x20in\x20existing\x20cluster\x20\x27','mcXFU','1118342ZCTGEu','glndF','qVjlq','managedBy','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','zgsDA','uKWsQ','KNOAC','1hWCsSk','3227032SFvIVK','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','bstackUsername','username','hub-ha-deployments-failed','hmRCM','getResourceClientId','boRSD','azurefile-csi-premium','DWPWc','cluster-name','DWXrJ','premium-rwo','reconnecting-websocket','bkfKP','LKYnw','CQmxu','stack','templates','327039exkMdn','cloud-provider','kgLDZ','turboscale-uploader.yaml','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','DlUiZ','ingress-nginx-controller','createdBy','kLjkh','oOupl','parse','Dlixe','route53','description','path','Creating\x20Hub\x20HA\x20resources','usage','Jhjps','uKugf','vSsBz','HyBQj','FKUds','qZvyB','default','ERROR','Deleting\x20the\x20CloudFormation\x20Stacks','bitnami-kafka.yaml','hJaxy','jrGfl','js-yaml','create-grid-checks-grid-already-exists','subnets','abfqJ','Added\x20Kafka\x20deployment.','HLFpM','FkHHI','updateClusterAlreadyPresent','Grid\x20profile\x20fetched\x20from\x20backend','qnqTa','init-not-called','btGmb','EzznY','zUuvE','error','boolean','PnHWX','/packages/cli/create-grid-checks','eSXPe','user','sendEventToBackend','minNodes','CLI_RUN_FINISHED','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','enableHubHa','SLkFE','prespawned-cluster-args-not-passed','concurrency','MRPgH','isClusterPresent','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','template','zXxbl','XFchN','SOiPz','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','TclJc','toLowerCase','NnLKA','turboscale-managed-identity-','IvQJj','browserstack','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','BvkxH','GCBTy','qAyhO','grid-profile','securityGroups','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','Ceeew','WQSKx','jHbai','wPNwQ','WaGnB','voAgi','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','pzBkq','https://','BMeuA','PGCLz','cloudProvider','Added\x20Redis\x20deployment.','INFO','/packages/cli/get-grid-url?gridIdentifier=','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Found\x20VPC:\x20','XaCWN','\x20using\x20\x27','yXyiL','92980udhFDW','yTCJA','message','qYtJc','readNamespacedService','ymamh','ndmQO','HbbSZ','Adding\x20Redis\x20deployment...','region','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','lJbvx','BobXV','Cluster\x20','heEmY','TgSPE','info','BcHVh','CPXYZ','XSQxW','getGridHostname','12968109HZpPOQ','Create\x20a\x20new\x20Automation\x20grid.','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','zTuDL','loadAll','fKlGp','aSZWf','tIcYg','YaKwS','requestId','options','clusterAutoupgrade','xJlDD','../../utils/utilityMethods','JdHeL','Grid\x20spawned\x20on\x20the\x20cluster','DNGht','CZaIg','WvXHT','VVuYj','VdqLK','connectionTimeout','LOG','clusterName','dolYb','873MUDwbi','JsiZI','VZDfp','ZGiPF','TuGSg','setupNewCluster','2|6|4|5|3|0|8|1|7','FCCYu','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','isNewAWSCluster','fQIfr','Create\x20a\x20private/public\x20grid.','WebSocket','grid-spawning-failed','body','Adding\x20Websocket\x20listeners','gEZOf','maxNodes','HHXNm','Grid\x20can\x20be\x20accessed\x20at:\x20','1|4|2|3|0','Adding\x20Kafka\x20deployment...','nyLiU','aWjIO','gGCtx','createOtherResources','DYKPu','bitnami-redis.yaml','Adding\x20Turboscale\x20Uploader\x20deployment...','XoEYt','type','KYFXU','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Htqxi','../../cloudproviders/utils','argv','isSubnetsValid','laoGC','zPLaQ','ingress-nginx','kTYeB','ZPDFz','XnCBA','hubHaNameSpace','<UsernamePlaceholder>','LdBKF','taUJd','OKazF','isPrivateGrid','sfnvc','GHoJT','bNVWr','labels','../../utils/webSocketUtils','fKmoP','Flag\x20to\x20enable\x20Hub\x20HA','kCmpr','metadata','DKRBh','QGIYP','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','efs-csi','FqQnm','apKYx','createNamespace','sUlQn','XHMlK','Found\x20Subnets:\x20','pre-spawned-subnets-not-selected','CLI_RUN_STARTED','glSlY','kafkaUploader','GHgLa','HtLVB','UnPCN','gridProfileId','cZOaj','gridProfile','xzDrH','ZiNax','OUTFb','jpeRe','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','create','hub-ha','TSpTJ','isVPCPresent','eAslK','GaSIV','ZOvAV','pRvFT','fxgdH','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','XaZJC','sGhRb','UuOcF','guYeA','QkfJw','awDSn','create-grid-checks-auth-failed','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','tOUba','https','s3bucket','toVmV','Namespace\x20Created','defaultGridProfile','password','split','clusterRegion','Creating\x20namespace','EbbXI','http','includes','exit','LrgPT','Epyd5nXbRK','dQVpf','jaYeO','BeMmH','Subnets:\x20','ONVHi','Cluster\x20created\x20successfully','replace','skip-tls-cert-verify','sendResourceDataToHST','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','help','deleteCluster','oRVBW','Browserstack','ZnApF','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','privateGrid','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','../../utils/instrumentationUtils','WRTBf','WNqKB','lUmQD','non-aws-azure-cluster','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','readFileAsync'];a9_0x5f3f=function(){return _0x4d9bb5;};return a9_0x5f3f();}exports[a9_0x1b1b58(0x2a5)]='grid',exports[a9_0x1b1b58(0x28e)]=a9_0x1b1b58(0x356),exports['builder']=function(_0x51770e){const _0x2a023a=a9_0x1b1b58,_0x469eb0={};_0x469eb0['gurtC']=_0x2a023a(0x215),_0x469eb0[_0x2a023a(0x2da)]=_0x2a023a(0x292),_0x469eb0[_0x2a023a(0x28f)]=_0x2a023a(0x21d),_0x469eb0[_0x2a023a(0x272)]=_0x2a023a(0x318),_0x469eb0[_0x2a023a(0x2bc)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x469eb0[_0x2a023a(0x230)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x469eb0[_0x2a023a(0x258)]=_0x2a023a(0x37a),_0x469eb0['ZOvAV']=_0x2a023a(0x275),_0x469eb0[_0x2a023a(0x2ee)]=_0x2a023a(0x309),_0x469eb0['aYpvL']=_0x2a023a(0x1f0),_0x469eb0['boRSD']=_0x2a023a(0x249),_0x469eb0[_0x2a023a(0x351)]='help';const _0x26d344=_0x469eb0,_0x3e9c25={};_0x3e9c25[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x26e)],_0x3e9c25[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2da)];const _0x3a1d13={};_0x3a1d13[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x28f)],_0x3a1d13[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2da)];const _0x5e2edc={};_0x5e2edc[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x272)],_0x5e2edc[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2da)];const _0x3027ce={};_0x3027ce[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x2bc)],_0x3027ce[_0x2a023a(0x38d)]=_0x26d344['CQmxu'];const _0x33117={};_0x33117[_0x2a023a(0x2ea)]=_0x26d344['BeMmH'],_0x33117[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2da)];const _0x22b272={};_0x22b272[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x258)],_0x22b272[_0x2a023a(0x38d)]=_0x26d344['CQmxu'];const _0x142674={};_0x142674[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x212)],_0x142674[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2ee)],_0x142674['default']=![];const _0x224b90={};_0x224b90[_0x2a023a(0x2ea)]=_0x26d344['aYpvL'],_0x224b90[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2ee)],_0x224b90[_0x2a023a(0x2f4)]=![];const _0x2cb344={};_0x2cb344[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x2d1)],_0x2cb344[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2ee)],_0x2cb344['default']=![];const _0x18a06e={};return _0x18a06e['grid-name']=_0x3e9c25,_0x18a06e[_0x2a023a(0x328)]=_0x3a1d13,_0x18a06e[_0x2a023a(0x2d4)]=_0x5e2edc,_0x18a06e[_0x2a023a(0x2de)]=_0x3027ce,_0x18a06e['region']=_0x33117,_0x18a06e['private-grid']=_0x22b272,_0x18a06e[_0x2a023a(0x235)]=_0x142674,_0x18a06e[_0x2a023a(0x20d)]=_0x224b90,_0x18a06e['cluster-autoupgrade']=_0x2cb344,_0x51770e[_0x2a023a(0x2ed)](HELP_HEADER_MESSAGE[_0x2a023a(0x20c)])[_0x2a023a(0x2ae)](HELP_FOOTER_MESSAGE)[_0x2a023a(0x35f)](_0x18a06e)['help'](_0x26d344[_0x2a023a(0x351)])[_0x2a023a(0x392)];},exports['handler']=async function(_0x17916f){const _0xe49f0c=a9_0x1b1b58,_0x4f26e5={'Huzxb':_0xe49f0c(0x383),'KYFXU':_0xe49f0c(0x294),'LKIzE':'UkRNzNYCBU','TgSPE':_0xe49f0c(0x22d),'LejUu':_0xe49f0c(0x323),'ZnApF':_0xe49f0c(0x308),'FEImw':_0xe49f0c(0x289),'zvRxm':function(_0x4be510,_0x3b62cb){return _0x4be510(_0x3b62cb);},'WRTBf':function(_0x3cb39c,_0x596e0e){return _0x3cb39c!==_0x596e0e;},'cZOaj':function(_0x172927,_0x1a1845,_0x1d79e0,_0x15b8fe,_0x4b0aa7,_0x46f943,_0x24ccc6,_0x47ac04,_0x18ccac,_0x31e5e6,_0x50e152,_0x34bdf2,_0x2007aa){return _0x172927(_0x1a1845,_0x1d79e0,_0x15b8fe,_0x4b0aa7,_0x46f943,_0x24ccc6,_0x47ac04,_0x18ccac,_0x31e5e6,_0x50e152,_0x34bdf2,_0x2007aa);},'HAoJy':_0xe49f0c(0x229),'WQSKx':function(_0x178c4b,_0x2dde15){return _0x178c4b(_0x2dde15);},'TGkHI':'1|0|2|8|6|4|5|3|7','EzznY':'CLI\x20run\x20started','NRbih':'true','GCBTy':_0xe49f0c(0x2f4),'WaGnB':_0xe49f0c(0x2d2),'jpeRe':_0xe49f0c(0x20b),'fGwAl':function(_0x313d94,_0x282b3e){return _0x313d94(_0x282b3e);},'Lsikp':_0xe49f0c(0x2d6),'wIRVn':_0xe49f0c(0x215),'NSrVD':_0xe49f0c(0x292),'VdqLK':_0xe49f0c(0x21d),'bJgkJ':_0xe49f0c(0x318),'FLmLy':_0xe49f0c(0x33b),'bkfKP':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','VZDfp':_0xe49f0c(0x37a),'gMxfl':_0xe49f0c(0x275),'zUuvE':_0xe49f0c(0x309),'ymSNt':_0xe49f0c(0x1f0),'XnCBA':'Flag\x20to\x20enable\x20cluster\x20auto-upgrade','Ceeew':'help','zgsDA':_0xe49f0c(0x2af),'qdVfx':function(_0x211a40,_0x72c403){return _0x211a40===_0x72c403;},'HtLVB':_0xe49f0c(0x21f),'PRKuM':function(_0x5bb42e){return _0x5bb42e();},'WvXHT':function(_0x1204f6){return _0x1204f6();},'kCmpr':function(_0xfac1c7,_0x2bfc49){return _0xfac1c7===_0x2bfc49;},'iQyYa':'OEQBX','gGCtx':_0xe49f0c(0x26f),'aSZWf':_0xe49f0c(0x324),'eGFzx':function(_0x51fbe5,_0x2f37f5,_0x34e9d3,_0x322446,_0x393bf3,_0x2db520,_0x249c7b){return _0x51fbe5(_0x2f37f5,_0x34e9d3,_0x322446,_0x393bf3,_0x2db520,_0x249c7b);},'ONVHi':_0xe49f0c(0x291),'ZHFcF':_0xe49f0c(0x304),'oOupl':function(_0x1b3533){return _0x1b3533();},'hJaxy':_0xe49f0c(0x39b),'BvkxH':'<PasswordPlaceholder>','uKWsQ':_0xe49f0c(0x37e),'EWFpK':function(_0x5ab9e2,_0x5484e7){return _0x5ab9e2===_0x5484e7;},'twjWb':_0xe49f0c(0x201),'dQVpf':function(_0x2fa268,_0x199b67){return _0x2fa268!==_0x199b67;},'OdPDt':_0xe49f0c(0x347),'ALvYB':_0xe49f0c(0x260),'FWOgE':function(_0x57a475,_0x54cc53,_0x1387b0,_0x3aca94,_0x188900,_0xf7cbe1,_0x1ed11a,_0x596e81){return _0x57a475(_0x54cc53,_0x1387b0,_0x3aca94,_0x188900,_0xf7cbe1,_0x1ed11a,_0x596e81);},'FalnZ':_0xe49f0c(0x314),'yTCJA':_0xe49f0c(0x365),'zPLaQ':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','vSsBz':function(_0x5c3be5,_0x51ee70,_0x2d2216,_0x2549bd,_0x564c26,_0x2559bc,_0x158426,_0x5b6ece){return _0x5c3be5(_0x51ee70,_0x2d2216,_0x2549bd,_0x564c26,_0x2559bc,_0x158426,_0x5b6ece);},'pRvFT':_0xe49f0c(0x244),'wpPXP':'DRMok','ymamh':_0xe49f0c(0x322),'XHMlK':function(_0x101a8c,_0x3f9063,_0x4b1b8d,_0x14890c,_0x28c0f7,_0x55e741,_0x3f90d0){return _0x101a8c(_0x3f9063,_0x4b1b8d,_0x14890c,_0x28c0f7,_0x55e741,_0x3f90d0);},'mcXFU':'EQZdP','hmRCM':_0xe49f0c(0x22c),'glSlY':'MXFxU','PQtqB':_0xe49f0c(0x2f9),'GZEKi':_0xe49f0c(0x29a),'xzDrH':function(_0x100309,_0x17bcfe,_0xda1ca6){return _0x100309(_0x17bcfe,_0xda1ca6);},'btGmb':function(_0x577560,_0x4f9795){return _0x577560!==_0x4f9795;},'LKYnw':_0xe49f0c(0x2e2),'LNUnD':_0xe49f0c(0x330),'GHoJT':'jOsqB','AzKmN':_0xe49f0c(0x31c),'xMLDS':function(_0x5b9c54,_0x580e72,_0x1c6d70){return _0x5b9c54(_0x580e72,_0x1c6d70);},'IhyVx':function(_0x230f36,_0x14d9eb){return _0x230f36===_0x14d9eb;},'OKazF':function(_0x330604,_0x4f1e56){return _0x330604===_0x4f1e56;},'THDoD':_0xe49f0c(0x210),'XSQxW':_0xe49f0c(0x311),'CjSfM':'create-grid-checks-null-response','bCYBG':function(_0x507ad9,_0x2de782){return _0x507ad9===_0x2de782;},'qnqTa':function(_0x120c7f,_0x173051){return _0x120c7f!==_0x173051;},'EbbXI':'HWcro','HLFpM':_0xe49f0c(0x2e8),'NXEoU':_0xe49f0c(0x31d),'pWPQJ':function(_0x4db6b0,_0x3aa127,_0x15f086,_0x3492ad,_0x4fd965,_0x26eb1a,_0x27a362,_0x59e616){return _0x4db6b0(_0x3aa127,_0x15f086,_0x3492ad,_0x4fd965,_0x26eb1a,_0x27a362,_0x59e616);},'KdDwG':_0xe49f0c(0x21c),'UuOcF':function(_0x2f7d8a,_0x5cf73c){return _0x2f7d8a!==_0x5cf73c;},'oRVBW':'oqyXk','aWjIO':_0xe49f0c(0x34b),'tIcYg':function(_0x56162c,_0x2f3f64,_0x44608d,_0x1e8fe5,_0x972005,_0x247d9b,_0x2d59e0,_0x29f4a4){return _0x56162c(_0x2f3f64,_0x44608d,_0x1e8fe5,_0x972005,_0x247d9b,_0x2d59e0,_0x29f4a4);},'Edrxs':'create-grid-checks-non-200','lUmQD':_0xe49f0c(0x302),'CApIN':function(_0x512a61,_0x159062){return _0x512a61!==_0x159062;},'toVmV':_0xe49f0c(0x278),'XFchN':_0xe49f0c(0x2fb),'wBMRE':function(_0x4639fa,_0x4cf8bd){return _0x4639fa!==_0x4cf8bd;},'sUlQn':_0xe49f0c(0x283),'ZGiPF':_0xe49f0c(0x346),'QGIYP':'1|0|2|3|4','CPXYZ':function(_0x11b646,_0x293b00){return _0x11b646===_0x293b00;},'fQIfr':function(_0x3b8652,_0x3f1cd7){return _0x3b8652===_0x3f1cd7;},'LdBKF':_0xe49f0c(0x30c),'GYZiA':'xLUCk','wrQhS':_0xe49f0c(0x332),'XaZJC':function(_0x3d0a28,_0x345f7b,_0x1fa9b6,_0x1802b7,_0x38017c,_0x503d27,_0x53759c,_0x2db5d7){return _0x3d0a28(_0x345f7b,_0x1fa9b6,_0x1802b7,_0x38017c,_0x503d27,_0x53759c,_0x2db5d7);},'Htqxi':_0xe49f0c(0x296),'TTsQP':function(_0x521a9e,_0x4a7d31){return _0x521a9e===_0x4a7d31;},'KNOAC':'EEuaj','guYeA':_0xe49f0c(0x28a),'YaKwS':function(_0x2deda0,_0x2e700b){return _0x2deda0!==_0x2e700b;},'iJtsu':function(_0x53f79c,_0x458375){return _0x53f79c!==_0x458375;},'TSpTJ':_0xe49f0c(0x2c1),'ePxwB':function(_0x42259b,_0xfdd05e,_0x28d1f3,_0x26ba78,_0xcfa238,_0x4a375f,_0x1c3ead,_0x5bd5b6,_0x55f6dc,_0x8f1427,_0x1f8ada,_0x78a597,_0x1afa91){return _0x42259b(_0xfdd05e,_0x28d1f3,_0x26ba78,_0xcfa238,_0x4a375f,_0x1c3ead,_0x5bd5b6,_0x55f6dc,_0x8f1427,_0x1f8ada,_0x78a597,_0x1afa91);},'ZiNax':_0xe49f0c(0x1f3),'CGoMr':_0xe49f0c(0x397),'nyLiU':function(_0x5bb832,_0x4cf990){return _0x5bb832===_0x4cf990;},'gEZOf':_0xe49f0c(0x247),'apKYx':_0xe49f0c(0x34c),'pwdeY':function(_0x269a4a,_0x53dbbe){return _0x269a4a===_0x53dbbe;},'DWIfP':'GhEot','kLjkh':_0xe49f0c(0x2d5),'qSoTU':function(_0x49a211,_0x20c4a4,_0x4718f8,_0x2dfcd9,_0x347e32,_0x1318ac,_0x1f8bbc,_0x36a2ea,_0x4c2a30,_0x11aa36,_0x3d3e48,_0x2ba0bf,_0x409bd5){return _0x49a211(_0x20c4a4,_0x4718f8,_0x2dfcd9,_0x347e32,_0x1318ac,_0x1f8bbc,_0x36a2ea,_0x4c2a30,_0x11aa36,_0x3d3e48,_0x2ba0bf,_0x409bd5);},'abfqJ':function(_0x7a0f16,_0xbbbf8e){return _0x7a0f16!==_0xbbbf8e;},'tOUba':'Fpgve','XoEYt':function(_0x5d33ed,_0x17daa3){return _0x5d33ed(_0x17daa3);},'zDZPU':function(_0x36d858,_0x1d67b9){return _0x36d858===_0x1d67b9;},'lcmXo':_0xe49f0c(0x363),'qVjlq':_0xe49f0c(0x374),'nuCmF':function(_0x4a5c3d,_0x1fe38b,_0x16f0fc,_0x34082a,_0x3a7447,_0x58ef12,_0x3020d8){return _0x4a5c3d(_0x1fe38b,_0x16f0fc,_0x34082a,_0x3a7447,_0x58ef12,_0x3020d8);},'zWodw':function(_0x5a34fa,_0xeef227){return _0x5a34fa!==_0xeef227;},'xrqGF':'BjgEU','FKUds':_0xe49f0c(0x211),'oFHBX':function(_0x4e43fa,_0x13dce2){return _0x4e43fa!==_0x13dce2;},'VVuYj':_0xe49f0c(0x209),'CZaIg':_0xe49f0c(0x284),'UnPCN':_0xe49f0c(0x32d),'zXxbl':'esVJs','fxgdH':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','kgLDZ':function(_0x390f3d,_0x2300c2){return _0x390f3d!=_0x2300c2;},'dFhyn':function(_0x4038cc,_0x144ac2){return _0x4038cc!==_0x144ac2;},'xJlDD':function(_0x2ca690,_0x4af954){return _0x2ca690>_0x4af954;},'LahOm':function(_0x103b79,_0x44fc8a){return _0x103b79===_0x44fc8a;},'hccoO':_0xe49f0c(0x257),'UsAoN':_0xe49f0c(0x1fd),'zTuDL':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','TSyKC':function(_0x37c807,_0xe3d1a9,_0x37c192,_0x3c1448,_0x475cf5,_0x2f418e,_0x67c146,_0x3fbbc2){return _0x37c807(_0xe3d1a9,_0x37c192,_0x3c1448,_0x475cf5,_0x2f418e,_0x67c146,_0x3fbbc2);},'TclJc':_0xe49f0c(0x29d),'JEgpD':function(_0x2d88f3,_0xcafc7a){return _0x2d88f3===_0xcafc7a;},'fKlGp':function(_0x160edc,_0x101257,_0x52531d,_0x30ddef,_0x1188ee,_0x4f46d0,_0x3f8dd2,_0x10480d){return _0x160edc(_0x101257,_0x52531d,_0x30ddef,_0x1188ee,_0x4f46d0,_0x3f8dd2,_0x10480d);},'awDSn':_0xe49f0c(0x2b9),'yXyiL':'2|1|4|0|3','QkfJw':_0xe49f0c(0x233),'WNqKB':_0xe49f0c(0x1f5),'gxxGr':function(_0x15d167,_0x1a39da){return _0x15d167===_0x1a39da;},'wPNwQ':function(_0x24c9ad,_0x8192d7,_0xd55e3d){return _0x24c9ad(_0x8192d7,_0xd55e3d);},'PPqsH':function(_0x9ee69e,_0x207490){return _0x9ee69e===_0x207490;},'PnHWX':function(_0x51e2e3,_0x33d354){return _0x51e2e3===_0x33d354;},'YvJkc':function(_0x32a231,_0x1d0e16){return _0x32a231===_0x1d0e16;},'uKugf':_0xe49f0c(0x2ec),'TWnqg':_0xe49f0c(0x299),'taUJd':_0xe49f0c(0x26b),'ZPDFz':_0xe49f0c(0x2dc),'HHXNm':'hubharesources','HyBQj':_0xe49f0c(0x250),'FCCYu':_0xe49f0c(0x271),'KqVcz':function(_0x372667,_0x35b0e5){return _0x372667(_0x35b0e5);},'iiurH':function(_0xaf8fce,_0xefb7f5){return _0xaf8fce(_0xefb7f5);},'odpov':function(_0x2e2150,_0x222b9d){return _0x2e2150(_0x222b9d);},'NnLKA':function(_0x555002,_0x4516a2,_0x46295b){return _0x555002(_0x4516a2,_0x46295b);},'BMeuA':'Added\x20Secret\x20Mapping','mUylG':_0xe49f0c(0x1f6),'PEdAc':function(_0x490740,_0x525a44){return _0x490740===_0x525a44;},'vsCqj':function(_0x1b36e7,_0x33c4a4){return _0x1b36e7===_0x33c4a4;},'yNPtu':_0xe49f0c(0x348),'DWPWc':_0xe49f0c(0x38a),'xwKqO':_0xe49f0c(0x338),'MRPgH':_0xe49f0c(0x384),'qZvyB':_0xe49f0c(0x2f7),'ioBqP':_0xe49f0c(0x2fe),'FlSdN':_0xe49f0c(0x38b),'zkLGL':_0xe49f0c(0x2e0),'DYKPu':function(_0x41590d,_0x1da08b){return _0x41590d===_0x1da08b;},'hfFUM':_0xe49f0c(0x24c),'PjeRD':_0xe49f0c(0x282),'hkaPS':'Hub\x20HA\x20setup\x20completed\x20successfully.','lgAJL':'0|1|3|2|4','gHeHc':_0xe49f0c(0x2ce),'qYtJc':function(_0x388162,_0x3a82fd){return _0x388162(_0x3a82fd);},'XTcMr':_0xe49f0c(0x227),'pzBkq':_0xe49f0c(0x23b),'XfuOP':_0xe49f0c(0x222),'FkHHI':'Namespace\x20created','dolYb':_0xe49f0c(0x27a),'TuGSg':'Spawning\x20Grid\x20on\x20the\x20Cluster','JsiZI':function(_0x565d67,_0x181485,_0x32e28f,_0x543e19,_0x20d881,_0x2d6674,_0x7d0e0b,_0x3581b0,_0x4bfbf4,_0x2fcd16,_0x37dbbc){return _0x565d67(_0x181485,_0x32e28f,_0x543e19,_0x20d881,_0x2d6674,_0x7d0e0b,_0x3581b0,_0x4bfbf4,_0x2fcd16,_0x37dbbc);},'rdWXj':_0xe49f0c(0x364),'UEVTr':_0xe49f0c(0x2e1),'ATNDZ':function(_0x1d662f,_0x3851f6,_0x40aff,_0x190d94,_0x2eac71){return _0x1d662f(_0x3851f6,_0x40aff,_0x190d94,_0x2eac71);},'sGhRb':function(_0xa43a1f,_0x257143,_0x2d9128){return _0xa43a1f(_0x257143,_0x2d9128);},'XaCWN':'private-ingress-nginx-controller','PGCLz':_0xe49f0c(0x2e3),'SiAOq':_0xe49f0c(0x396),'bNVWr':function(_0x70d637,_0xa0b08d,_0x588a1b){return _0x70d637(_0xa0b08d,_0x588a1b);},'wQUxi':function(_0x50317f,_0xd6a95a){return _0x50317f===_0xd6a95a;},'zgQjf':function(_0x3b5780,_0x264bf0){return _0x3b5780===_0x264bf0;},'LihMX':_0xe49f0c(0x265),'RUxvB':function(_0x46557f,_0x43d447,_0x58bd51,_0x946c48,_0x3f4ac1,_0x11fd9a,_0x358e98,_0x4ab00c){return _0x46557f(_0x43d447,_0x58bd51,_0x946c48,_0x3f4ac1,_0x11fd9a,_0x358e98,_0x4ab00c);},'FqQnm':_0xe49f0c(0x27e),'jaYeO':_0xe49f0c(0x237),'SLkFE':'get-grid-url-auth-failed','LWpoN':function(_0x31c17f,_0x5b3a81){return _0x31c17f!==_0x5b3a81;},'fKmoP':function(_0x2aa951,_0x2294c9,_0x238a74,_0x5ba6d7,_0x138293,_0x116325,_0x1569dc,_0x572857){return _0x2aa951(_0x2294c9,_0x238a74,_0x5ba6d7,_0x138293,_0x116325,_0x1569dc,_0x572857);},'eHrAx':'get-grid-url-non-200','sfnvc':_0xe49f0c(0x2f6),'qAyhO':function(_0x52c7f7,_0x1f33b1,_0x2ffc9d,_0xfd4acb,_0x1cd65b,_0x5568b2){return _0x52c7f7(_0x1f33b1,_0x2ffc9d,_0xfd4acb,_0x1cd65b,_0x5568b2);},'laoGC':function(_0xa1325c,_0x1bc54d,_0x267007,_0x5075f5,_0x453d8d,_0x1ab44a,_0x5585b0){return _0xa1325c(_0x1bc54d,_0x267007,_0x5075f5,_0x453d8d,_0x1ab44a,_0x5585b0);},'heEmY':_0xe49f0c(0x37c)};let _0x2904c8=![],_0x5a5dd1=![],_0xd25d67,_0x1e89ff,_0x537733,_0x5a0358,_0x496265,_0x379deb,_0x5216d5,_0x1233be,_0x4fb761,_0x21510f,_0x3c2bd6,_0x5a17a7,_0x31e7cd,_0x1a5b4e,_0x59d056=0x1,_0x47921b=0xe;try{global_registry[_0xe49f0c(0x35e)]=_0x4f26e5[_0xe49f0c(0x2ba)](uuidv4),global_registry[_0xe49f0c(0x39f)]=![];if(!fs['existsSync'](_0x4f26e5[_0xe49f0c(0x367)](getCredentialsPath))){if(_0x4f26e5[_0xe49f0c(0x1f1)](_0x4f26e5[_0xe49f0c(0x2aa)],_0x4f26e5[_0xe49f0c(0x387)])){const _0x5e9d1f=_0x4f26e5[_0xe49f0c(0x24a)]['split']('|');let _0x3e9047=0x0;while(!![]){switch(_0x5e9d1f[_0x3e9047++]){case'0':_0x440a6a['enableHubHa']=!![];continue;case'1':_0x4ab91f[_0xe49f0c(0x350)](_0x4f26e5['KYFXU']);continue;case'2':_0x5799ea[_0xe49f0c(0x2a6)]=_0x4f26e5['LKIzE'];continue;case'3':_0xb45555['kafkaPassword']=_0x4f26e5[_0xe49f0c(0x34f)];continue;case'4':_0x569606[_0xe49f0c(0x39a)]=_0x4f26e5[_0xe49f0c(0x261)];continue;}break;}}else console[_0xe49f0c(0x308)](_0x4f26e5[_0xe49f0c(0x35b)]),await _0x4f26e5['eGFzx'](sendInstrumentationEvent,_0x17916f,_0x4f26e5[_0xe49f0c(0x232)],messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5['ZHFcF'],null,_0x17916f),process['exit'](0x1);}await _0x4f26e5[_0xe49f0c(0x26d)](sendInstrumentationEvent,_0x17916f,_0x4f26e5[_0xe49f0c(0x232)],messageTypes[_0xe49f0c(0x339)],null,null,_0x17916f);const _0x408930=JSON[_0xe49f0c(0x2e7)](fs['readFileSync'](_0x4f26e5[_0xe49f0c(0x2e6)](getCredentialsPath)));global_registry[_0xe49f0c(0x2cc)]=_0x408930[_0xe49f0c(0x23b)][_0xe49f0c(0x2cd)],global_registry['bstackAccesskey']=_0x408930[_0xe49f0c(0x23b)][_0xe49f0c(0x224)];const _0x5b3ff6=WS_ENDPOINT[_0xe49f0c(0x234)](_0x4f26e5[_0xe49f0c(0x2f8)],_0x408930[_0xe49f0c(0x23b)][_0xe49f0c(0x2cd)])['replace'](_0x4f26e5[_0xe49f0c(0x325)],_0x408930['Browserstack']['password']),_0x263b69={};_0x263b69[_0xe49f0c(0x37b)]=ws,_0x263b69[_0xe49f0c(0x36a)]=0x36ee80,_0x5a17a7=new ReconnectingWebSocket(_0x5b3ff6,[],_0x263b69),logger['debug'](_0x4f26e5[_0xe49f0c(0x2c7)]),webSocketUtils[_0xe49f0c(0x2a8)](_0x5a17a7,_0x17916f[_0xe49f0c(0x30d)],_0x17916f[_0xe49f0c(0x224)]);const _0x39fb3a=_0x17916f[_0xe49f0c(0x288)]||DEFAULT_GRID_NAME;if(_0x17916f[_0xe49f0c(0x36c)]||_0x17916f['cloudProvider']||_0x17916f[_0xe49f0c(0x349)]){if(_0x4f26e5['EWFpK'](_0x4f26e5[_0xe49f0c(0x28c)],_0x4f26e5[_0xe49f0c(0x28c)])){if(!(_0x17916f['clusterName']&&_0x17916f[_0xe49f0c(0x337)]&&_0x17916f[_0xe49f0c(0x349)])){if(_0x4f26e5[_0xe49f0c(0x22e)](_0x4f26e5[_0xe49f0c(0x2b8)],_0x4f26e5[_0xe49f0c(0x2b8)])){const _0x1c514c={};_0x1c514c[_0xe49f0c(0x38d)]=_0x4c172b[_0xe49f0c(0x36b)],_0x1c514c[_0xe49f0c(0x342)]=_0x265018,_0x3359b0[_0xe49f0c(0x30e)](_0x4499e6,_0x1c514c,_0x4f26e5[_0xe49f0c(0x23c)],!![]);}else _0xd25d67=_0x4f26e5[_0xe49f0c(0x25d)],await _0x4f26e5['FWOgE'](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5['ONVHi'],_0x4f26e5['FalnZ'],_0x4f26e5['ZnApF']),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1);}![AWS,AZURE,GCP][_0xe49f0c(0x22a)](_0x17916f['cloudProvider'][_0xe49f0c(0x31f)]())&&(_0x4f26e5[_0xe49f0c(0x25b)](_0x4f26e5[_0xe49f0c(0x341)],_0x4f26e5[_0xe49f0c(0x341)])?(_0xd25d67=_0x4f26e5[_0xe49f0c(0x395)],await _0x4f26e5[_0xe49f0c(0x2f0)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x213)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1)):_0x4c86e7[_0xe49f0c(0x206)]=_0x1613b3[_0xe49f0c(0x206)]);_0x17916f[_0xe49f0c(0x23e)]&&_0x4f26e5[_0xe49f0c(0x2b4)](_0x17916f['privateGrid'][_0xe49f0c(0x31f)](),_0x4f26e5['NRbih'])&&(_0x4f26e5[_0xe49f0c(0x25b)](_0x4f26e5[_0xe49f0c(0x26a)],_0x4f26e5[_0xe49f0c(0x345)])?_0x1ede23[_0xe49f0c(0x350)](_0xe49f0c(0x1fc)+_0x28c20d[_0xe49f0c(0x2b3)](_0x3edbfb)+'\x20'):global_registry['isPrivateGrid']=!![]);global_registry[_0xe49f0c(0x337)]=_0x17916f[_0xe49f0c(0x337)],global_registry[_0xe49f0c(0x226)]=_0x17916f[_0xe49f0c(0x349)],global_registry[_0xe49f0c(0x36c)]=_0x17916f[_0xe49f0c(0x36c)];const _0x3a7752=await _0x4f26e5[_0xe49f0c(0x1fb)](getCloudProviderObject,_0x17916f[_0xe49f0c(0x337)],_0x17916f[_0xe49f0c(0x36c)],_0x39fb3a,_0x5a17a7,webSocketUtils,_0x17916f),_0x3943c3=await _0x3a7752['isClusterPresent']();if(!_0x3943c3)_0x4f26e5[_0xe49f0c(0x2b4)](_0x4f26e5['mcXFU'],_0x4f26e5[_0xe49f0c(0x2bf)])?(logger['info'](_0xe49f0c(0x2a1)+_0x17916f[_0xe49f0c(0x36c)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x2904c8=![],_0x5a5dd1=!![]):_0xf96833[_0xe49f0c(0x236)]();else{if(_0x4f26e5['EWFpK'](_0x4f26e5[_0xe49f0c(0x2cf)],_0x4f26e5['hmRCM']))_0x2904c8=!![];else{const _0x42e6ae=_0x4f26e5['FEImw'][_0xe49f0c(0x225)]('|');let _0x46f61c=0x0;while(!![]){switch(_0x42e6ae[_0x46f61c++]){case'0':_0x6cefc4[_0xe49f0c(0x312)]&&_0x4f26e5['zvRxm'](_0x145d3e,_0x39cb87['kafkaUploader']);continue;case'1':_0x255c69=_0x42fca1[_0xe49f0c(0x220)];continue;case'2':_0xa1d420='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x34c18f;continue;case'3':_0x2dbe9e=_0x32da0a[_0xe49f0c(0x380)];continue;case'4':_0x48dff0=null;continue;case'5':_0x4a3307=null;continue;case'6':const _0x20d663={};_0x20d663[_0xe49f0c(0x38d)]=_0x17a994[_0xe49f0c(0x36b)],_0x20d663[_0xe49f0c(0x342)]=_0x5ccd5a,_0x16784f[_0xe49f0c(0x30e)](_0x48a598,_0x20d663);continue;case'7':_0x532d9c=_0x2f38c1[_0xe49f0c(0x293)];continue;case'8':_0x4f26e5[_0xe49f0c(0x241)](_0x740dca['privateGrid'],_0x262aca)&&_0x1819bd[_0xe49f0c(0x23e)]&&(_0x1bba79['isPrivateGrid']=!![]);continue;case'9':_0x28d407=_0x513544[_0xe49f0c(0x2a3)];continue;case'10':_0x4f26e5[_0xe49f0c(0x205)](_0x92372f,_0x326f81,_0x448275,_0x4f4f1e,_0x314f48,_0x1e78e6,_0x43e546,_0x3da4be,_0x4867dd,_0xb5630d,_0x5de431,_0x30882e,_0x1724c9[_0xe49f0c(0x360)]);continue;case'11':_0x471b19=null;continue;case'12':_0x5082c8=_0x52623c[_0xe49f0c(0x2ab)];continue;case'13':_0x45e668=_0x5db7f4['minNodes'];continue;case'14':_0x408e7b=_0x18f95f[_0xe49f0c(0x315)];continue;case'15':_0x134cd8[_0xe49f0c(0x350)](_0x4f6ff9);continue;}break;}}}_0x537733=_0x17916f[_0xe49f0c(0x36c)],_0x1e89ff=_0x17916f[_0xe49f0c(0x337)]['toLowerCase'](),_0x5a0358=_0x17916f[_0xe49f0c(0x349)];}else _0x2f8705[_0xe49f0c(0x350)](_0xe49f0c(0x33c)+_0x295d47+'\x20');}else _0x17916f[_0xe49f0c(0x206)]&&(_0x4f26e5[_0xe49f0c(0x2b4)](_0x4f26e5[_0xe49f0c(0x1ff)],_0x4f26e5['PQtqB'])?_0x10405e=!![]:global_registry['gridProfile']=_0x17916f['gridProfile']);global_registry[_0xe49f0c(0x288)]=_0x17916f['gridName'];const _0x51baee={'method':_0x4f26e5[_0xe49f0c(0x25c)],'headers':_0x4f26e5[_0xe49f0c(0x207)](getAuthHeader,_0x408930[_0xe49f0c(0x23b)][_0xe49f0c(0x2cd)],_0x408930['Browserstack']['password']),'throwHttpErrors':![]},_0x253e74={};_0x253e74[_0xe49f0c(0x288)]=_0x39fb3a;const _0x279cd0=_0x253e74;_0x5a5dd1&&(_0x4f26e5[_0xe49f0c(0x305)](_0x4f26e5[_0xe49f0c(0x2d9)],_0x4f26e5[_0xe49f0c(0x276)])?(_0x279cd0[_0xe49f0c(0x349)]=_0x5a0358,_0x279cd0[_0xe49f0c(0x337)]=_0x1e89ff,_0x279cd0[_0xe49f0c(0x26c)]=!![],_0x279cd0[_0xe49f0c(0x2ac)]=_0x17916f['clusterAutoupgrade']):(_0x1ca9ca[_0xe49f0c(0x350)](_0xe49f0c(0x2a1)+_0x2a850a['clusterName']+_0xe49f0c(0x331)),_0x49cc1f=![],_0x5052e4=!![]));_0x17916f['clusterAutoupgrade']&&(_0x4f26e5['btGmb'](_0x4f26e5[_0xe49f0c(0x3a1)],_0x4f26e5[_0xe49f0c(0x264)])?logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x20a)]):_0x247b06=_0x4f26e5[_0xe49f0c(0x27f)]);const _0xdc1399=_0xe49f0c(0x334)+AG_API_URL+_0xe49f0c(0x30b),_0x18f9a2={'searchParams':_0x279cd0,'throwHttpErrors':![],..._0x51baee},_0x27b04b=_0x18f9a2,_0x5b991e=await _0x4f26e5['xMLDS'](got,_0xdc1399,_0x27b04b);(_0x4f26e5[_0xe49f0c(0x255)](_0x5b991e,null)||_0x4f26e5[_0xe49f0c(0x39e)](_0x5b991e,undefined))&&(_0x4f26e5['dQVpf'](_0x4f26e5[_0xe49f0c(0x295)],_0x4f26e5[_0xe49f0c(0x295)])?_0x4f26e5[_0xe49f0c(0x32c)](_0x13a22e,_0x4374ec[_0xe49f0c(0x27b)]):(_0xd25d67=_0x4f26e5[_0xe49f0c(0x353)],await _0x4f26e5[_0xe49f0c(0x2f0)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes['ERROR'],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x256)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process['exit'](0x1)));if(_0x4f26e5['bCYBG'](_0x5b991e['statusCode'],0x191)){if(_0x4f26e5[_0xe49f0c(0x303)](_0x4f26e5[_0xe49f0c(0x228)],_0x4f26e5[_0xe49f0c(0x2ff)]))_0xd25d67=_0x4f26e5['NXEoU'],await _0x4f26e5[_0xe49f0c(0x268)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5['ONVHi'],_0x4f26e5[_0xe49f0c(0x279)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1);else{const _0x2c6cef=_0x4f26e5['TGkHI'][_0xe49f0c(0x225)]('|');let _0x2b7a7e=0x0;while(!![]){switch(_0x2c6cef[_0x2b7a7e++]){case'0':_0x2569c9=_0xe49f0c(0x253)+_0x51416f+_0xe49f0c(0x2be)+_0x31f54f+'\x27';continue;case'1':const _0x2cb7c6={};_0x2cb7c6['type']=_0x981da4[_0xe49f0c(0x1fe)],_0x2cb7c6[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x306)],_0x3ed13d[_0xe49f0c(0x30e)](_0x142ca9,_0x2cb7c6);continue;case'2':_0x6f67cb[_0xe49f0c(0x350)](_0x3e96da);continue;case'3':_0x2a0d4a[_0xe49f0c(0x2a3)]=_0x4530a2[_0xe49f0c(0x2a3)];continue;case'4':_0xa195d7[_0xe49f0c(0x226)]=_0x57f725;continue;case'5':_0xe36c4f[_0xe49f0c(0x36c)]=_0xba4c4c;continue;case'6':_0x544144['cloudProvider']=_0x2aeeed;continue;case'7':_0x5cc60c[_0xe49f0c(0x293)]=_0x248419[_0xe49f0c(0x293)];continue;case'8':const _0x3466f9={};_0x3466f9['type']=_0x302402[_0xe49f0c(0x36b)],_0x3466f9[_0xe49f0c(0x342)]=_0x583cf2,_0x2df41e[_0xe49f0c(0x30e)](_0x231507,_0x3466f9);continue;}break;}}}if(_0x4f26e5[_0xe49f0c(0x218)](_0x5b991e[_0xe49f0c(0x273)],0xc8)){if(_0x4f26e5[_0xe49f0c(0x303)](_0x4f26e5[_0xe49f0c(0x23a)],_0x4f26e5[_0xe49f0c(0x386)]))_0xd25d67=_0xe49f0c(0x357)+JSON[_0xe49f0c(0x2b3)](_0x5b991e['body']),await _0x4f26e5[_0xe49f0c(0x35c)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5['Edrxs'],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1);else{const _0x13d562={'azure.workload.identity/use':_0x4f26e5['NRbih'],..._0x241705[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)][_0xe49f0c(0x1f2)][_0xe49f0c(0x1ed)]};_0x56f375[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)][_0xe49f0c(0x1f2)][_0xe49f0c(0x1ed)]=_0x13d562,_0x18239a[0x0]['spec'][_0xe49f0c(0x319)][_0xe49f0c(0x2b7)][_0xe49f0c(0x2bd)]=_0x4f26e5[_0xe49f0c(0x326)];}}const _0x3cc883=JSON[_0xe49f0c(0x2e7)](_0x5b991e[_0xe49f0c(0x37d)]),_0x54c365={};_0x54c365[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x1fe)],_0x54c365[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x306)],webSocketUtils['sendEventToBackend'](_0x5a17a7,_0x54c365);const _0x1fa05f={};_0x1fa05f[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x1fa05f[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x243)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x1fa05f);_0x3cc883[_0xe49f0c(0x277)]&&(_0x4f26e5['CApIN'](_0x4f26e5['toVmV'],_0x4f26e5[_0xe49f0c(0x221)])?_0x1f48af=_0x4f26e5[_0xe49f0c(0x32f)]:(_0xd25d67=_0xe49f0c(0x2c4)+_0x39fb3a+_0xe49f0c(0x377),await _0x4f26e5[_0xe49f0c(0x268)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x31b)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1)));const _0x39175d=_0x3cc883[_0xe49f0c(0x29b)];let _0x11eff4=_0x39175d[_0x3cc883[_0xe49f0c(0x223)]];_0x17916f['gridProfile']&&(_0x4f26e5['wBMRE'](_0x4f26e5[_0xe49f0c(0x1fa)],_0x4f26e5[_0xe49f0c(0x1fa)])?_0x46fcfc[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x20a)]):_0x11eff4=_0x39175d[_0x17916f[_0xe49f0c(0x206)]]);global_registry[_0xe49f0c(0x312)]=![];if(_0x17916f['hubHa']){if(_0x4f26e5[_0xe49f0c(0x25f)](_0x4f26e5['ZGiPF'],_0x4f26e5[_0xe49f0c(0x371)]))_0x3366a3=_0x4580b6[_0x184916['gridProfile']];else{const _0x1ee1b8=_0x4f26e5[_0xe49f0c(0x1f4)][_0xe49f0c(0x225)]('|');let _0x41e335=0x0;while(!![]){switch(_0x1ee1b8[_0x41e335++]){case'0':global_registry[_0xe49f0c(0x39a)]=_0x4f26e5[_0xe49f0c(0x261)];continue;case'1':logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x38e)]);continue;case'2':global_registry['redisPassword']=_0x4f26e5[_0xe49f0c(0x248)];continue;case'3':global_registry[_0xe49f0c(0x270)]=_0x4f26e5[_0xe49f0c(0x34f)];continue;case'4':global_registry[_0xe49f0c(0x312)]=!![];continue;}break;}}}if(_0x4f26e5[_0xe49f0c(0x39e)](_0x2904c8,![])&&_0x4f26e5[_0xe49f0c(0x352)](_0x5a5dd1,![])){if(_0x4f26e5[_0xe49f0c(0x379)](_0x4f26e5[_0xe49f0c(0x39c)],_0x4f26e5[_0xe49f0c(0x39c)])){_0x4f26e5['OKazF'](_0x11eff4,undefined)&&(_0x4f26e5[_0xe49f0c(0x22e)](_0x4f26e5['GYZiA'],_0x4f26e5['GYZiA'])?_0x33eabc[_0xe49f0c(0x308)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x5ba084+'\x20\x0a'+_0x5e78ef['stringify'](_0x2d174c[_0xe49f0c(0x2db)])):(_0xd25d67=_0x4f26e5[_0xe49f0c(0x28b)],await _0x4f26e5[_0xe49f0c(0x216)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x390)],_0x4f26e5['ZnApF']),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1)));global_registry[_0xe49f0c(0x204)]=_0x11eff4['id'],_0xd25d67='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x39fb3a+_0xe49f0c(0x33e)+_0x11eff4[_0xe49f0c(0x2b5)]+'\x27\x20grid\x20profile',logger[_0xe49f0c(0x350)](_0xd25d67);const _0xafee68={};_0xafee68[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0xafee68['message']=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0xafee68),_0x1e89ff=_0x11eff4[_0xe49f0c(0x337)],_0x537733=_0x11eff4[_0xe49f0c(0x36c)],_0x5a0358=_0x11eff4[_0xe49f0c(0x349)],_0x496265=_0x11eff4['concurrency'],_0x379deb=_0x11eff4['instanceType'],_0x5216d5=_0x11eff4['vpc'],_0x1233be=_0x11eff4[_0xe49f0c(0x329)],_0x4fb761=_0x11eff4[_0xe49f0c(0x2fc)],_0x21510f=_0x11eff4[_0xe49f0c(0x220)],_0x59d056=_0x11eff4['minNodes'],_0x47921b=_0x11eff4[_0xe49f0c(0x380)],_0x31e7cd=_0x3cc883[_0xe49f0c(0x2a3)],_0x1a5b4e=_0x3cc883[_0xe49f0c(0x293)],_0x5216d5&&_0x4f26e5[_0xe49f0c(0x287)](_0x5216d5['length'],0x0)&&(_0x4f26e5['CPXYZ'](_0x4f26e5['KNOAC'],_0x4f26e5[_0xe49f0c(0x2c8)])?_0x5216d5=null:_0x4f26e5[_0xe49f0c(0x290)](_0x3fe2ae,_0x375fce['kafkaUploader'])),_0x4fb761&&_0x4f26e5[_0xe49f0c(0x25b)](_0x4fb761['length'],0x0)&&(_0x4f26e5[_0xe49f0c(0x285)](_0x4f26e5[_0xe49f0c(0x219)],_0x4f26e5[_0xe49f0c(0x219)])?_0x2ad023=null:_0x4fb761=null),_0x4f26e5[_0xe49f0c(0x35d)](_0x11eff4['privateGrid'],undefined)&&_0x11eff4[_0xe49f0c(0x23e)]&&(_0x4f26e5[_0xe49f0c(0x29f)](_0x4f26e5[_0xe49f0c(0x20e)],_0x4f26e5[_0xe49f0c(0x20e)])?(_0x3b50e7[_0xe49f0c(0x349)]=_0x43057b,_0x34dca0[_0xe49f0c(0x337)]=_0x14f26f,_0x248803[_0xe49f0c(0x26c)]=!![],_0x274e93[_0xe49f0c(0x2ac)]=_0x4c2f1e['clusterAutoupgrade']):global_registry[_0xe49f0c(0x39f)]=!![]),_0x4f26e5['ePxwB'](updateGlobalRegistryWithConfig,_0x1e89ff,_0x537733,_0x5a0358,_0x496265,_0x379deb,_0x21510f,_0x11eff4,_0x31e7cd,_0x1a5b4e,_0x59d056,_0x47921b,_0x17916f[_0xe49f0c(0x360)]),global_registry[_0xe49f0c(0x312)]&&(_0x4f26e5[_0xe49f0c(0x39e)](_0x4f26e5[_0xe49f0c(0x208)],_0x4f26e5['CGoMr'])?_0x90e085=_0x4f26e5['Lsikp']:_0x4f26e5[_0xe49f0c(0x32c)](updateGlobalRegistryForHubHa,_0x3cc883[_0xe49f0c(0x27b)]));}else _0x22a060[_0xe49f0c(0x39f)]=!![];}else{if(_0x4f26e5['IhyVx'](_0x5a5dd1,!![])){if(_0x4f26e5[_0xe49f0c(0x385)](_0x4f26e5[_0xe49f0c(0x37f)],_0x4f26e5[_0xe49f0c(0x1f8)]))_0x36276b['isPrivateGrid']=!![];else{_0xd25d67=_0xe49f0c(0x32a)+_0x39fb3a,logger[_0xe49f0c(0x350)](_0xd25d67);const _0x1fae05={};_0x1fae05[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x1fae05[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x1fae05),_0x496265=_0x11eff4[_0xe49f0c(0x315)],_0x379deb=_0x11eff4[_0xe49f0c(0x2ab)],_0x5216d5=null,_0x1233be=null,_0x4fb761=null,_0x21510f=_0x11eff4[_0xe49f0c(0x220)],_0x59d056=_0x11eff4[_0xe49f0c(0x30f)],_0x47921b=_0x11eff4[_0xe49f0c(0x380)],_0x31e7cd=_0x3cc883[_0xe49f0c(0x2a3)],_0x1a5b4e=_0x3cc883[_0xe49f0c(0x293)],_0x4f26e5[_0xe49f0c(0x35d)](_0x11eff4[_0xe49f0c(0x23e)],undefined)&&_0x11eff4[_0xe49f0c(0x23e)]&&(_0x4f26e5[_0xe49f0c(0x2a2)](_0x4f26e5[_0xe49f0c(0x2a7)],_0x4f26e5[_0xe49f0c(0x2e5)])?_0x277130[_0xe49f0c(0x39f)]=!![]:global_registry['isPrivateGrid']=!![]),_0x4f26e5[_0xe49f0c(0x262)](updateGlobalRegistryWithConfig,_0x1e89ff,_0x537733,_0x5a0358,_0x496265,_0x379deb,_0x21510f,_0x11eff4,_0x31e7cd,_0x1a5b4e,_0x59d056,_0x47921b,_0x17916f['clusterAutoupgrade']),global_registry['enableHubHa']&&(_0x4f26e5[_0xe49f0c(0x2fd)](_0x4f26e5[_0xe49f0c(0x21e)],_0x4f26e5[_0xe49f0c(0x21e)])?_0x12795d=null:_0x4f26e5[_0xe49f0c(0x38c)](updateGlobalRegistryForHubHa,_0x3cc883[_0xe49f0c(0x200)]));}}else{if(_0x4f26e5[_0xe49f0c(0x29c)](_0x4f26e5['lcmXo'],_0x4f26e5['lcmXo'])){const _0x264774=_0x4f26e5[_0xe49f0c(0x2c2)]['split']('|');let _0x2d7d7d=0x0;while(!![]){switch(_0x264774[_0x2d7d7d++]){case'0':global_registry['clusterRegion']=_0x5a0358;continue;case'1':global_registry['hubVersion']=_0x3cc883[_0xe49f0c(0x2a3)];continue;case'2':const _0x35bf2e={};_0x35bf2e['type']=WS_EVENTS[_0xe49f0c(0x1fe)],_0x35bf2e[_0xe49f0c(0x342)]=_0x4f26e5['EzznY'],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x35bf2e);continue;case'3':global_registry[_0xe49f0c(0x337)]=_0x1e89ff;continue;case'4':logger['info'](_0xd25d67);continue;case'5':const _0x5684a0={};_0x5684a0['type']=WS_EVENTS[_0xe49f0c(0x36b)],_0x5684a0[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x5684a0);continue;case'6':_0xd25d67=_0xe49f0c(0x253)+_0x39fb3a+_0xe49f0c(0x2be)+_0x537733+'\x27';continue;case'7':global_registry[_0xe49f0c(0x293)]=_0x3cc883[_0xe49f0c(0x293)];continue;case'8':global_registry[_0xe49f0c(0x36c)]=_0x537733;continue;}break;}}else{const _0x2e4472={};_0x2e4472[_0xe49f0c(0x2ea)]=_0x4f26e5[_0xe49f0c(0x2a9)],_0x2e4472['type']=_0x4f26e5[_0xe49f0c(0x274)];const _0x2112f9={};_0x2112f9['description']=_0x4f26e5[_0xe49f0c(0x369)],_0x2112f9[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x27860e={};_0x27860e['description']=_0x4f26e5['bJgkJ'],_0x27860e[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x2ec73b={};_0x2ec73b['description']=_0x4f26e5['FLmLy'],_0x2ec73b[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x306963={};_0x306963[_0xe49f0c(0x2ea)]=_0x4f26e5[_0xe49f0c(0x2d8)],_0x306963[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x307ae4={};_0x307ae4[_0xe49f0c(0x2ea)]=_0x4f26e5[_0xe49f0c(0x370)],_0x307ae4[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x1277e7={};_0x1277e7[_0xe49f0c(0x2ea)]=_0x4f26e5[_0xe49f0c(0x254)],_0x1277e7[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x307)],_0x1277e7['default']=![];const _0x295fa1={};_0x295fa1['description']=_0x4f26e5['ymSNt'],_0x295fa1['type']=_0x4f26e5[_0xe49f0c(0x307)],_0x295fa1['default']=![];const _0x2178bb={};_0x2178bb['description']=_0x4f26e5[_0xe49f0c(0x399)],_0x2178bb['type']=_0x4f26e5[_0xe49f0c(0x307)],_0x2178bb[_0xe49f0c(0x2f4)]=![];const _0x1809f3={};return _0x1809f3['grid-name']=_0x2e4472,_0x1809f3[_0xe49f0c(0x328)]=_0x2112f9,_0x1809f3['cluster-name']=_0x27860e,_0x1809f3[_0xe49f0c(0x2de)]=_0x2ec73b,_0x1809f3[_0xe49f0c(0x349)]=_0x306963,_0x1809f3[_0xe49f0c(0x24b)]=_0x307ae4,_0x1809f3['skip-tls-cert-verify']=_0x1277e7,_0x1809f3['hub-ha']=_0x295fa1,_0x1809f3['cluster-autoupgrade']=_0x2178bb,_0x220279[_0xe49f0c(0x2ed)](_0x130b67['create'])[_0xe49f0c(0x2ae)](_0x18833f)['options'](_0x1809f3)[_0xe49f0c(0x238)](_0x4f26e5[_0xe49f0c(0x32b)])['argv'];}}}const _0x2a7575=await _0x4f26e5[_0xe49f0c(0x2b1)](getCloudProviderObject,_0x1e89ff,_0x537733,_0x39fb3a,_0x5a17a7,webSocketUtils,_0x17916f);if(_0x4f26e5['zWodw'](_0x1e89ff,AZURE)){if(_0x4f26e5[_0xe49f0c(0x285)](_0x4f26e5[_0xe49f0c(0x269)],_0x4f26e5[_0xe49f0c(0x2f2)]))_0x2a7575[_0xe49f0c(0x236)]();else{const _0x118079={};_0x118079['type']=_0x7e3387['LOG'],_0x118079[_0xe49f0c(0x342)]='Cluster\x20'+_0x49b145+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x14a8a3['sendEventToBackend'](_0x33b51a,_0x118079,_0x4f26e5[_0xe49f0c(0x2c6)]),_0x420a4e['info'](_0xe49f0c(0x34d)+_0x116d51+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0xa78f06=!![];if(_0x4f26e5[_0xe49f0c(0x25b)](_0x578e04,!![]))throw new _0x296570('Cluster\x20'+_0x55add9+_0xe49f0c(0x34a));}}let _0x4cac17;if(_0x4f26e5[_0xe49f0c(0x2a2)](_0x2904c8,![])){_0xd25d67=_0xe49f0c(0x38f)+_0x5a0358+').';const _0x2474f3={};_0x2474f3['type']=WS_EVENTS[_0xe49f0c(0x36b)],_0x2474f3[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x2474f3),logger[_0xe49f0c(0x350)](_0xd25d67);const _0x5e4650=await _0x2a7575[_0xe49f0c(0x317)]();if(_0x5e4650){if(_0x4f26e5['oFHBX'](_0x4f26e5[_0xe49f0c(0x368)],_0x4f26e5[_0xe49f0c(0x366)])){const _0x22c606={};_0x22c606['type']=WS_EVENTS[_0xe49f0c(0x36b)],_0x22c606['message']=_0xe49f0c(0x34d)+_0x537733+_0xe49f0c(0x245),webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x22c606,_0x4f26e5['zgsDA']),logger[_0xe49f0c(0x350)]('Cluster\x20'+_0x537733+_0xe49f0c(0x245)),_0x2904c8=!![];if(_0x4f26e5[_0xe49f0c(0x25b)](_0x5a5dd1,!![])){if(_0x4f26e5['CApIN'](_0x4f26e5[_0xe49f0c(0x203)],_0x4f26e5[_0xe49f0c(0x31a)]))throw new Error('Cluster\x20'+_0x537733+_0xe49f0c(0x34a));else throw new _0x2e67f7(_0xe49f0c(0x34d)+_0x3df36c+_0xe49f0c(0x34a));}}else _0x450aff=_0x4e6b2a[_0xe49f0c(0x2e9)],_0x3fddc6=_0x4f26e5['HtLVB'];}else{const _0x26fb94={};_0x26fb94[_0xe49f0c(0x38d)]=WS_EVENTS['LOG'],_0x26fb94['message']=_0x4f26e5[_0xe49f0c(0x214)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x26fb94),logger[_0xe49f0c(0x350)](_0x4f26e5['fxgdH']);const _0x587ff1=_0x4f26e5[_0xe49f0c(0x2df)](_0x5216d5,null)&&_0x4f26e5[_0xe49f0c(0x2a0)](_0x5216d5,undefined),_0x11be44=_0x4f26e5[_0xe49f0c(0x2df)](_0x4fb761,null)&&_0x4f26e5['YaKwS'](_0x4fb761,undefined)&&_0x4f26e5[_0xe49f0c(0x361)](_0x4fb761[_0xe49f0c(0x266)],0x0);if(_0x587ff1){_0x4f26e5[_0xe49f0c(0x298)](_0x11be44,![])&&(_0xd25d67=_0x4f26e5[_0xe49f0c(0x263)],await _0x4f26e5[_0xe49f0c(0x35c)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes['ERROR'],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5['UsAoN'],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1));const _0x4e5ef5=await _0x2a7575[_0xe49f0c(0x20f)](_0x5216d5);_0x4f26e5['qdVfx'](_0x4e5ef5,![])?(_0xd25d67=_0x4f26e5[_0xe49f0c(0x358)],await _0x4f26e5['TSyKC'](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes['ERROR'],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x31e)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1)):logger[_0xe49f0c(0x350)]('Found\x20VPC:\x20'+_0x5216d5+'\x20');const _0x2ca590=await _0x2a7575[_0xe49f0c(0x393)](_0x4fb761,_0x5216d5);_0x4f26e5[_0xe49f0c(0x28d)](_0x2ca590[0x0],![])?(_0xd25d67=_0xe49f0c(0x231)+JSON['stringify'](_0x2ca590[0x1])+_0xe49f0c(0x24e)+_0x5216d5+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x4f26e5[_0xe49f0c(0x35a)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x21b)],_0x4f26e5['ZnApF']),logger[_0xe49f0c(0x308)](_0xd25d67),process['exit'](0x1)):logger[_0xe49f0c(0x350)](_0xe49f0c(0x1fc)+JSON['stringify'](_0x4fb761)+'\x20'),[_0x5216d5,_0x4fb761]=await _0x2a7575['setupNewCluster'](_0x5216d5,_0x4fb761);}else{const _0x4e7207=_0x4f26e5[_0xe49f0c(0x33f)][_0xe49f0c(0x225)]('|');let _0x4d30b8=0x0;while(!![]){switch(_0x4e7207[_0x4d30b8++]){case'0':const _0x312f9f={};_0x312f9f[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x312f9f[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x21a)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x312f9f);continue;case'1':logger['info'](_0x4f26e5[_0xe49f0c(0x242)]);continue;case'2':const _0x5f06c4={};_0x5f06c4[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x5f06c4[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x242)],webSocketUtils['sendEventToBackend'](_0x5a17a7,_0x5f06c4);continue;case'3':logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x21a)]);continue;case'4':[_0x5216d5,_0x4fb761]=await _0x2a7575[_0xe49f0c(0x373)](_0x5216d5,_0x4fb761);continue;}break;}}}}_0x2904c8&&_0x4f26e5['gxxGr'](_0x1e89ff,AZURE)&&(await _0x2a7575[_0xe49f0c(0x301)](),await _0x2a7575[_0xe49f0c(0x388)]());const [_0x425abc,_0x536553,_0x57dbd5,_0x314ad2,_0x9e0dd4,_0x5ae4f3,_0x30b07e]=await _0x4f26e5[_0xe49f0c(0x32e)](createK8sClient,_0x2a7575,_0x17916f['skipTlsCertVerify']);_0x4f26e5['PPqsH'](_0x2904c8,![])&&_0x4f26e5[_0xe49f0c(0x30a)](_0x1e89ff,AWS)&&(global_registry[_0xe49f0c(0x378)]=!![],_0x4cac17=await _0x2a7575['setupAutoscaler'](_0x425abc,_0x17916f));if(_0x4f26e5[_0xe49f0c(0x259)](_0x2904c8,![])&&global_registry['enableHubHa'])try{await _0x2a7575['setupHubHa'](_0x5ae4f3,_0x30b07e,_0x17916f,_0x5216d5,_0x4fb761);const _0x2299ea={};_0x2299ea[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x2299ea[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x2ef)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x2299ea);!await _0x4f26e5[_0xe49f0c(0x207)](namespaceExists,_0x425abc,global_registry[_0xe49f0c(0x39a)])&&await _0x4f26e5[_0xe49f0c(0x32e)](createNamespace,_0x425abc,global_registry[_0xe49f0c(0x39a)]);logger[_0xe49f0c(0x350)](_0x4f26e5['TWnqg']);let _0x4f159e=await fs[_0xe49f0c(0x246)](path[_0xe49f0c(0x27c)](__dirname,_0x4f26e5['taUJd'],_0x4f26e5[_0xe49f0c(0x398)],_0x4f26e5[_0xe49f0c(0x381)],_0x4f26e5[_0xe49f0c(0x2f1)]),_0x4f26e5[_0xe49f0c(0x375)]);_0x4f159e=_0x4f159e[_0xe49f0c(0x234)](/<RedisClientPassword>/g,_0x4f26e5['KqVcz'](encodeBase64,global_registry['redisPassword'])),_0x4f159e=_0x4f159e[_0xe49f0c(0x234)](/<KafkaClientPassword>/g,_0x4f26e5[_0xe49f0c(0x27d)](encodeBase64,global_registry[_0xe49f0c(0x270)])),_0x4f159e=_0x4f159e[_0xe49f0c(0x234)](/<BstackUsername>/g,_0x4f26e5['odpov'](encodeBase64,global_registry[_0xe49f0c(0x2cc)])),_0x4f159e=_0x4f159e[_0xe49f0c(0x234)](/<BstackAccessKey>/g,_0x4f26e5[_0xe49f0c(0x38c)](encodeBase64,global_registry['bstackAccesskey']));const _0x2ae9d4=yaml[_0xe49f0c(0x359)](_0x4f159e);await _0x4f26e5[_0xe49f0c(0x320)](kubeApply,_0x2ae9d4,_0x30b07e),logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x335)]);let _0x2df9b6=_0x4f26e5[_0xe49f0c(0x2b2)];if(_0x4f26e5['PEdAc'](_0x1e89ff,AZURE))_0x2df9b6=_0x4f26e5[_0xe49f0c(0x32f)];else _0x4f26e5[_0xe49f0c(0x280)](_0x1e89ff,GCP)&&(_0x2df9b6=_0x4f26e5['Lsikp']);logger[_0xe49f0c(0x350)](_0x4f26e5['yNPtu']);let _0x22f47c=await fs[_0xe49f0c(0x246)](path[_0xe49f0c(0x27c)](__dirname,_0x4f26e5[_0xe49f0c(0x39d)],_0x4f26e5[_0xe49f0c(0x398)],_0x4f26e5[_0xe49f0c(0x381)],_0x4f26e5[_0xe49f0c(0x2d3)]),_0x4f26e5[_0xe49f0c(0x375)]);_0x22f47c=_0x22f47c[_0xe49f0c(0x234)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x22f47c=_0x22f47c[_0xe49f0c(0x234)](/<StorageClassName>/g,_0x2df9b6);const _0x2891c0=yaml[_0xe49f0c(0x359)](_0x22f47c);await _0x4f26e5[_0xe49f0c(0x32e)](kubeApply,_0x2891c0,_0x30b07e),logger['info'](_0x4f26e5['xwKqO']),logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x316)]);let _0x4a1943=await fs[_0xe49f0c(0x246)](path[_0xe49f0c(0x27c)](__dirname,_0x4f26e5[_0xe49f0c(0x39d)],_0x4f26e5['ZPDFz'],_0x4f26e5[_0xe49f0c(0x381)],_0x4f26e5[_0xe49f0c(0x2f3)]),_0x4f26e5[_0xe49f0c(0x375)]);_0x4a1943=_0x4a1943[_0xe49f0c(0x234)](/<HubHaNameSpace>/g,global_registry[_0xe49f0c(0x39a)]),_0x4a1943=_0x4a1943[_0xe49f0c(0x234)](/<StorageClassName>/g,_0x2df9b6);const _0x508bba=yaml['loadAll'](_0x4a1943);await _0x4f26e5[_0xe49f0c(0x207)](kubeApply,_0x508bba,_0x30b07e),logger[_0xe49f0c(0x350)](_0x4f26e5['ioBqP']),logger[_0xe49f0c(0x350)](_0x4f26e5['FlSdN']);let _0x5d3cc4=await fs[_0xe49f0c(0x246)](path[_0xe49f0c(0x27c)](__dirname,_0x4f26e5[_0xe49f0c(0x39d)],_0x4f26e5[_0xe49f0c(0x398)],_0x4f26e5[_0xe49f0c(0x381)],_0x4f26e5['zkLGL']),_0x4f26e5[_0xe49f0c(0x375)]);_0x5d3cc4=_0x5d3cc4[_0xe49f0c(0x234)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x5d3cc4=_0x5d3cc4[_0xe49f0c(0x234)](/<HubHaNameSpace>/g,global_registry[_0xe49f0c(0x39a)]);const _0xa25092=yaml[_0xe49f0c(0x359)](_0x5d3cc4);_0x4f26e5[_0xe49f0c(0x389)](global_registry[_0xe49f0c(0x337)],AZURE)&&(_0xa25092[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)][_0xe49f0c(0x1f2)][_0xe49f0c(0x1ed)]={'azure.workload.identity/use':_0x4f26e5[_0xe49f0c(0x29e)],..._0xa25092[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)][_0xe49f0c(0x1f2)][_0xe49f0c(0x1ed)]},_0xa25092[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)]['spec']['serviceAccountName']=_0x4f26e5[_0xe49f0c(0x326)]);await _0x4f26e5[_0xe49f0c(0x320)](kubeApply,_0xa25092,_0x30b07e),logger[_0xe49f0c(0x350)](_0x4f26e5['hfFUM']);const _0x22a434={};_0x22a434[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x22a434[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x251)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x22a434),logger[_0xe49f0c(0x350)](_0x4f26e5['hkaPS']);}catch(_0x1a628b){const _0x5d9f19=_0x4f26e5['lgAJL'][_0xe49f0c(0x225)]('|');let _0x3f5291=0x0;while(!![]){switch(_0x5d9f19[_0x3f5291++]){case'0':_0xd25d67='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x1a628b['message'];continue;case'1':logger[_0xe49f0c(0x308)](_0xd25d67);continue;case'2':await _0x2a7575[_0xe49f0c(0x239)](_0x425abc,global_registry[_0xe49f0c(0x226)]);continue;case'3':await _0x4f26e5[_0xe49f0c(0x268)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5['ONVHi'],_0x4f26e5[_0xe49f0c(0x281)],_0x4f26e5[_0xe49f0c(0x23c)]);continue;case'4':process['exit'](0x1);continue;}break;}}try{_0x3c2bd6=_0x4f26e5[_0xe49f0c(0x343)](kebabCase,_0x39fb3a),logger['info'](_0x4f26e5[_0xe49f0c(0x297)]);const _0x25480d={};_0x25480d[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x25480d['message']=_0x4f26e5[_0xe49f0c(0x297)],webSocketUtils['sendEventToBackend'](_0x5a17a7,_0x25480d);if(_0x4f26e5[_0xe49f0c(0x303)](_0x3c2bd6,_0x4f26e5['GCBTy'])){const _0x337194={};_0x337194[_0xe49f0c(0x2e4)]=_0x4f26e5['pzBkq'],_0x337194[_0xe49f0c(0x2c3)]=_0x4f26e5[_0xe49f0c(0x333)];const _0x395171={};_0x395171[_0xe49f0c(0x2b5)]=_0x3c2bd6,_0x395171['annotations']=_0x337194;const _0x45ec0c={};_0x45ec0c['metadata']=_0x395171;const _0x1a4ad4=_0x45ec0c,_0x1ac9c9={};_0x1ac9c9[_0xe49f0c(0x37d)]=_0x1a4ad4,await _0x425abc[_0xe49f0c(0x1f9)](_0x1ac9c9),logger['info'](_0x4f26e5[_0xe49f0c(0x2ad)]);}const _0x24f8f3={};_0x24f8f3[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x24f8f3[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x300)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x24f8f3);const _0x54c135={};_0x54c135[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x54c135[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x36d)],webSocketUtils['sendEventToBackend'](_0x5a17a7,_0x54c135),logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x372)]);let _0x1a5223={};_0x4f26e5[_0xe49f0c(0x28d)](_0x1e89ff,AZURE)&&(_0x1a5223={'clientId':await _0x2a7575[_0xe49f0c(0x2d0)](_0xe49f0c(0x321)+_0x537733)});await _0x4f26e5[_0xe49f0c(0x36f)](addGridComponents,_0x425abc,_0x536553,_0x57dbd5,_0x314ad2,_0x3c2bd6,_0x537733,_0x4cac17,_0x9e0dd4,_0x30b07e,_0x1a5223),_0xd25d67=_0x4f26e5['rdWXj'],logger[_0xe49f0c(0x350)](_0xd25d67);const _0xd1fb54={};_0xd1fb54[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0xd1fb54[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils['sendEventToBackend'](_0x5a17a7,_0xd1fb54),_0xd25d67=_0x4f26e5[_0xe49f0c(0x2a4)],logger['info'](_0xd25d67);const _0x447baf={};_0x447baf[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x447baf[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x447baf),await _0x4f26e5['ATNDZ'](waitForDeployment,_0x536553,_0x3c2bd6,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x5dae7e=await _0x4f26e5[_0xe49f0c(0x217)](getNamespaceUID,_0x425abc,_0x3c2bd6),_0x3d9849=global_registry['isPrivateGrid']?_0x4f26e5[_0xe49f0c(0x33d)]:_0x4f26e5[_0xe49f0c(0x336)],_0x3f912f={};_0x3f912f[_0xe49f0c(0x2b5)]=_0x3d9849,_0x3f912f['namespace']=_0x4f26e5[_0xe49f0c(0x2b6)];const _0x981f32=await _0x425abc[_0xe49f0c(0x344)](_0x3f912f);let _0x78a5ba=_0x2a7575[_0xe49f0c(0x354)](_0x981f32)+'/'+_0x3c2bd6,_0x2033c0=_0x4f26e5[_0xe49f0c(0x27f)];try{const _0xe06889='https://'+AG_API_URL+_0xe49f0c(0x33a)+_0x5dae7e,_0x5905c4=await _0x4f26e5[_0xe49f0c(0x3a2)](got,_0xe06889,_0x51baee);(_0x4f26e5['wQUxi'](_0x5905c4,null)||_0x4f26e5[_0xe49f0c(0x2bb)](_0x5905c4,undefined))&&(_0xd25d67=_0x4f26e5['LihMX'],await _0x4f26e5['RUxvB'](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x1f7)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1));_0x4f26e5['qdVfx'](_0x5905c4[_0xe49f0c(0x273)],0x191)&&(_0xd25d67=_0x4f26e5[_0xe49f0c(0x22f)],await _0x4f26e5[_0xe49f0c(0x25e)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x313)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1));_0x4f26e5['LWpoN'](_0x5905c4[_0xe49f0c(0x273)],0xc8)&&(_0xd25d67=_0xe49f0c(0x2cb)+JSON['stringify'](_0x5905c4),await _0x4f26e5[_0xe49f0c(0x1ef)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x24d)],_0x4f26e5['ZnApF']),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1));const _0x3b221f=JSON[_0xe49f0c(0x2e7)](_0x5905c4[_0xe49f0c(0x37d)]);_0x3b221f[_0xe49f0c(0x2e9)]&&(_0x78a5ba=_0x3b221f['route53'],_0x2033c0=_0x4f26e5[_0xe49f0c(0x202)]),global_registry['isPrivateGrid']&&(_0x2033c0=_0x4f26e5[_0xe49f0c(0x27f)]);}catch(_0x38dcc7){}_0xd25d67=_0xe49f0c(0x382)+_0x78a5ba+'\x20',logger['info'](_0xd25d67);const _0x157f4d={};_0x157f4d[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x157f4d[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x157f4d),_0xd25d67=_0xe49f0c(0x2c5)+_0x2033c0+'://'+_0x78a5ba+'/wd/hub',logger['info'](_0xd25d67);const _0x1c0ab7={};_0x1c0ab7[_0xe49f0c(0x38d)]=WS_EVENTS['LOG'],_0x1c0ab7[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x1c0ab7);const _0x67318b={};_0x67318b[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x310)],_0x67318b[_0xe49f0c(0x342)]='CLI\x20run\x20finished:\x20'+_0x78a5ba,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x67318b),await webSocketUtils[_0xe49f0c(0x286)](0x7d0);}catch(_0x642436){logger[_0xe49f0c(0x308)](_0xe49f0c(0x376)+_0x642436+'\x20\x0a'+JSON['stringify'](_0x642436['stack']));if(_0x4f26e5['YvJkc'](_0x2904c8,![]))try{logger['info'](_0x4f26e5[_0xe49f0c(0x3a0)]),await _0x4f26e5[_0xe49f0c(0x327)](removeGridComponents,_0x425abc,_0x536553,_0x57dbd5,_0x314ad2,_0x3c2bd6),await _0x2a7575[_0xe49f0c(0x239)](_0x425abc,global_registry[_0xe49f0c(0x226)]);}catch(_0x551ca6){logger[_0xe49f0c(0x308)](_0xe49f0c(0x23d)+_0x551ca6+'\x20\x0a'+JSON['stringify'](_0x551ca6[_0xe49f0c(0x2db)]));}throw _0x642436;}}catch(_0x2b667b){const _0x3d79f2=_0xe49f0c(0x23f)+_0x2b667b+'\x20\x0a'+JSON[_0xe49f0c(0x2b3)](_0x2b667b[_0xe49f0c(0x2db)]);if(_0x5a17a7){const _0x585ce3={};_0x585ce3[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x585ce3[_0xe49f0c(0x342)]=_0x3d79f2,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x585ce3,_0x4f26e5[_0xe49f0c(0x23c)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x4dfc45={};_0x4dfc45[_0xe49f0c(0x308)]=_0x3d79f2,await _0x4f26e5[_0xe49f0c(0x394)](sendInstrumentationEvent,_0x17916f,_0x4f26e5[_0xe49f0c(0x232)],messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x34e)],_0x4dfc45,_0x17916f),logger[_0xe49f0c(0x308)](_0x3d79f2);}process[_0xe49f0c(0x22b)](0x0);};
@@ -1 +1 @@
1
- function a10_0x2110(_0x5af0b4,_0x4b50ce){const _0x20be82=a10_0x20be();return a10_0x2110=function(_0x2110ba,_0xc4040b){_0x2110ba=_0x2110ba-0x19c;let _0x56d3be=_0x20be82[_0x2110ba];return _0x56d3be;},a10_0x2110(_0x5af0b4,_0x4b50ce);}function a10_0x20be(){const _0x2329e5=['recommendCommands','7298811tCoLzS','../config/constants','epilogue','22487196qHSYOS','11oZXiIJ','builder','102178HMLMyY','command','10775032IXTgYH','List\x20Grid\x20resources.','delete_commands','10HhQQCk','7932beKfIK','delete','1541380DJKezr','DiwFn','1295NizlCQ','desc','5yRzRrn','help','usage','30VQqLkJ','bPCin','644457KUcccb','demandCommand'];a10_0x20be=function(){return _0x2329e5;};return a10_0x20be();}const a10_0x708401=a10_0x2110;(function(_0x1cafef,_0x215ffd){const _0x43f9fd=a10_0x2110,_0x2790f7=_0x1cafef();while(!![]){try{const _0x4c16cb=parseInt(_0x43f9fd(0x1a7))/0x1+parseInt(_0x43f9fd(0x1b0))/0x2*(-parseInt(_0x43f9fd(0x1a5))/0x3)+-parseInt(_0x43f9fd(0x19e))/0x4*(parseInt(_0x43f9fd(0x1a2))/0x5)+-parseInt(_0x43f9fd(0x19c))/0x6*(parseInt(_0x43f9fd(0x1a0))/0x7)+-parseInt(_0x43f9fd(0x1b2))/0x8+-parseInt(_0x43f9fd(0x1aa))/0x9*(-parseInt(_0x43f9fd(0x1b5))/0xa)+parseInt(_0x43f9fd(0x1ae))/0xb*(parseInt(_0x43f9fd(0x1ad))/0xc);if(_0x4c16cb===_0x215ffd)break;else _0x2790f7['push'](_0x2790f7['shift']());}catch(_0x5e3c21){_0x2790f7['push'](_0x2790f7['shift']());}}}(a10_0x20be,0xcd7d5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x708401(0x1ab));exports[a10_0x708401(0x1b1)]='delete',exports[a10_0x708401(0x1a1)]=a10_0x708401(0x1b3),exports[a10_0x708401(0x1af)]=function(_0x11727b){const _0x1139ad=a10_0x708401,_0x425be4={};_0x425be4['DiwFn']=_0x1139ad(0x1b4),_0x425be4[_0x1139ad(0x1a6)]=_0x1139ad(0x1a3);const _0x53be08=_0x425be4;return _0x11727b[_0x1139ad(0x1a4)](HELP_HEADER_MESSAGE[_0x1139ad(0x19d)])[_0x1139ad(0x1ac)](HELP_FOOTER_MESSAGE)['commandDir'](_0x53be08[_0x1139ad(0x19f)])[_0x1139ad(0x1a8)]()[_0x1139ad(0x1a9)]()['strict']()[_0x1139ad(0x1a3)](_0x53be08[_0x1139ad(0x1a6)]);},exports['handler']=function(_0x1478d6){};
1
+ const a10_0x1d6679=a10_0x845d;(function(_0x56bf5d,_0x3fb7bc){const _0x1dc838=a10_0x845d,_0x171450=_0x56bf5d();while(!![]){try{const _0x2e9185=parseInt(_0x1dc838(0x138))/0x1*(-parseInt(_0x1dc838(0x14a))/0x2)+parseInt(_0x1dc838(0x143))/0x3+parseInt(_0x1dc838(0x145))/0x4+-parseInt(_0x1dc838(0x13c))/0x5+parseInt(_0x1dc838(0x14b))/0x6+parseInt(_0x1dc838(0x139))/0x7*(parseInt(_0x1dc838(0x13b))/0x8)+parseInt(_0x1dc838(0x147))/0x9;if(_0x2e9185===_0x3fb7bc)break;else _0x171450['push'](_0x171450['shift']());}catch(_0x46e433){_0x171450['push'](_0x171450['shift']());}}}(a10_0x2f43,0x4c0ac));function a10_0x2f43(){const _0x571639=['865254TlqrSr','commandDir','epilogue','4607RfkOPm','225596jSAOvc','delete','56HvGLCM','1077615ShQdWV','desc','../config/constants','strict','NQJff','command','builder','173382VXBlFf','cxNxp','952136sabQLm','List\x20Grid\x20resources.','3022911vExqTJ','usage','help','206GkEIBp'];a10_0x2f43=function(){return _0x571639;};return a10_0x2f43();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x1d6679(0x13e));function a10_0x845d(_0x24608e,_0x21612e){const _0x2f43b4=a10_0x2f43();return a10_0x845d=function(_0x845d4e,_0x422617){_0x845d4e=_0x845d4e-0x138;let _0x546123=_0x2f43b4[_0x845d4e];return _0x546123;},a10_0x845d(_0x24608e,_0x21612e);}exports[a10_0x1d6679(0x141)]=a10_0x1d6679(0x13a),exports[a10_0x1d6679(0x13d)]=a10_0x1d6679(0x146),exports[a10_0x1d6679(0x142)]=function(_0x55d05e){const _0x4e9408=a10_0x1d6679,_0x123fbc={};_0x123fbc[_0x4e9408(0x140)]='delete_commands',_0x123fbc[_0x4e9408(0x144)]=_0x4e9408(0x149);const _0x55373e=_0x123fbc;return _0x55d05e[_0x4e9408(0x148)](HELP_HEADER_MESSAGE[_0x4e9408(0x13a)])[_0x4e9408(0x14d)](HELP_FOOTER_MESSAGE)[_0x4e9408(0x14c)](_0x55373e[_0x4e9408(0x140)])['demandCommand']()['recommendCommands']()[_0x4e9408(0x13f)]()[_0x4e9408(0x149)](_0x55373e[_0x4e9408(0x144)]);},exports['handler']=function(_0x507fda){};
@@ -1 +1 @@
1
- function a11_0x25b1(){const _0x204bd0=['4287NQbvFm','cbuHT','DkqIS','INFO','init-not-called','DiCCk','BMtLX','EgvkN','ERROR','NyZzm','../../config/logger','BESKP','desc','warn','error','type','hJCsw','13AxcHnU','TqUyu','statusCode','existsSync','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','BXowV','KXMQK','toLowerCase','PrbuD','Delete\x20an\x20Automation\x20grid.','clusterRegion','../../utils/createk8sClient','invalid-input','\x22\x20with\x20ID\x20','Failed\x20to\x20delete\x20resources!\x20Error:\x20','FEVAN','default','EDnju','clusterId','yPmub','QMyZt','clusterName','VBISd','LamTn','invalid-grid-id','GGngz','KlvAZ','NRNBX','yuqeH','CWxEN','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','\x22\x20and\x20ID\x20','../../utils/userInput','help','ISCFd','RYWfk','EEkSf','NClmv','cAdVo','../../utils/instrumentationUtils','AaYbQ','onlyGridInCluster','RTqFr','delete','TWLzk','DEaaz','4386250oCZtiw','grid-id','cxErh','GbpBS','jLuhH','JZScg','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','YnnJH','../../config/constants','stack','options','8526555yRLfQv','then','177412VTVfoE','info','PsevA','isClusterPresent','string','Vvhiu','isBrowserstackCluster','clusterSpawnedVia','grid','xxGPX','BCkER','command','rNTsH','ZFmXC','stringify','sWyyb','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','unauthorised','RDotH','body','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','replace','HoJVi','8wNczLP','password','uuid','kncii','deleteCluster','UCPJp','description','dXyDL','Browserstack','Pass\x20the\x20ID\x20of\x20the\x20Grid','cloudProvider','boolean','skip-tls-cert-verify','1631987xQeINi','lpDsK','5553770ecefFg','argv','xwLjq','server-error','iOmTF','2332SxaWII','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','skipTlsCertVerify','Cluster:\x20','PPuPN','name','Qfmwz','Skip\x20insecure\x20cert\x20verification.','36yhysPu','gridId','yUAcF','username','IWuSb','exit','IZJDq','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','AKQai','AgEzi','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/webSocketUtils','ZBVKm','CouZJ','message','../../cloudproviders/utils','delete-grid-called','../../utils/utilityMethods','Namespace:\x20','unknown-error','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','parse','BxxaQ','usage','BNCOC','region','1616045FJWzus','catch','JPBGm'];a11_0x25b1=function(){return _0x204bd0;};return a11_0x25b1();}const a11_0x16a8c6=a11_0x22eb;(function(_0x1d5357,_0x5e4c9f){const _0x1bbb47=a11_0x22eb,_0x1d6d3f=_0x1d5357();while(!![]){try{const _0x21efda=-parseInt(_0x1bbb47(0x178))/0x1*(parseInt(_0x1bbb47(0x117))/0x2)+parseInt(_0x1bbb47(0x167))/0x3*(-parseInt(_0x1bbb47(0x142))/0x4)+parseInt(_0x1bbb47(0x164))/0x5*(parseInt(_0x1bbb47(0x14a))/0x6)+parseInt(_0x1bbb47(0x13b))/0x7+parseInt(_0x1bbb47(0x12e))/0x8*(parseInt(_0x1bbb47(0x115))/0x9)+-parseInt(_0x1bbb47(0x13d))/0xa+parseInt(_0x1bbb47(0x10a))/0xb;if(_0x21efda===_0x5e4c9f)break;else _0x1d6d3f['push'](_0x1d6d3f['shift']());}catch(_0x19a8bd){_0x1d6d3f['push'](_0x1d6d3f['shift']());}}}(a11_0x25b1,0xee7ee));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a11_0x16a8c6(0x130)),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x16a8c6(0x112)),{logger}=require(a11_0x16a8c6(0x171)),{getCloudProviderObject}=require(a11_0x16a8c6(0x159)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x16a8c6(0x103)),{inputConfirmation}=require(a11_0x16a8c6(0xfc)),{createK8sClient}=require(a11_0x16a8c6(0xe7)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x16a8c6(0x15b)),webSocketUtils=require(a11_0x16a8c6(0x155));function a11_0x22eb(_0x2faea1,_0x377328){const _0x25b1a8=a11_0x25b1();return a11_0x22eb=function(_0x22eb19,_0x3b91cd){_0x22eb19=_0x22eb19-0xe7;let _0x900cfd=_0x25b1a8[_0x22eb19];return _0x900cfd;},a11_0x22eb(_0x2faea1,_0x377328);}exports[a11_0x16a8c6(0x122)]=a11_0x16a8c6(0x11f),exports[a11_0x16a8c6(0x173)]=a11_0x16a8c6(0x181),exports['builder']=function(_0x773a77){const _0x485125=a11_0x16a8c6,_0x29afc6={};_0x29afc6[_0x485125(0x109)]=_0x485125(0x137),_0x29afc6[_0x485125(0x180)]=_0x485125(0x11b),_0x29afc6[_0x485125(0x166)]=_0x485125(0x149),_0x29afc6[_0x485125(0x133)]=_0x485125(0x139),_0x29afc6[_0x485125(0x162)]='help';const _0x3b4bce=_0x29afc6,_0x22371a={};_0x22371a[_0x485125(0x134)]=_0x3b4bce[_0x485125(0x109)],_0x22371a[_0x485125(0x176)]=_0x3b4bce[_0x485125(0x180)];const _0x42fe51={};_0x42fe51['description']=_0x3b4bce[_0x485125(0x166)],_0x42fe51[_0x485125(0x176)]=_0x3b4bce['UCPJp'],_0x42fe51[_0x485125(0xec)]=![];const _0x4ca9af={};return _0x4ca9af[_0x485125(0x10b)]=_0x22371a,_0x4ca9af[_0x485125(0x13a)]=_0x42fe51,_0x773a77['usage'](HELP_HEADER_MESSAGE[_0x485125(0x107)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x485125(0x114)](_0x4ca9af)['help'](_0x3b4bce[_0x485125(0x162)])[_0x485125(0x13e)];},exports['handler']=async function(_0x1599f4){const _0x379ec8=a11_0x16a8c6,_0x200746={'QMyZt':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','iOmTF':'Successfully\x20deleted\x20the\x20grid','AKQai':function(_0x3ca1d2,_0x18fa24){return _0x3ca1d2!==_0x18fa24;},'cAdVo':_0x379ec8(0xf8),'eMAaI':_0x379ec8(0x16d),'GbpBS':_0x379ec8(0x17c),'TWLzk':_0x379ec8(0x101),'TqUyu':_0x379ec8(0x137),'AaYbQ':_0x379ec8(0x11b),'EEkSf':_0x379ec8(0x149),'Vvhiu':_0x379ec8(0x139),'BCkER':_0x379ec8(0xfd),'dlAtW':function(_0x4cafdc){return _0x4cafdc();},'yPmub':function(_0x4dd285){return _0x4dd285();},'HoJVi':function(_0x27bf,_0x4a90b0){return _0x27bf===_0x4a90b0;},'YnnJH':_0x379ec8(0x156),'LTQmT':_0x379ec8(0x12b),'PsevA':function(_0x5b39c7,_0x189eb5,_0x55800d,_0x535d10,_0x5d9303,_0x27eb78,_0xd899){return _0x5b39c7(_0x189eb5,_0x55800d,_0x535d10,_0x5d9303,_0x27eb78,_0xd899);},'EgvkN':_0x379ec8(0x15a),'Qfmwz':_0x379ec8(0x16b),'PJdHJ':'aqhcD','DkqIS':'yzdod','RTqFr':function(_0x20a76c,_0x23afc5,_0x4c3ba1,_0x19aaf4){return _0x20a76c(_0x23afc5,_0x4c3ba1,_0x19aaf4);},'LamTn':function(_0x58d20f,_0x41592d){return _0x58d20f===_0x41592d;},'EDnju':'Browserstack','yUAcF':function(_0x130e99,_0x2b64e9){return _0x130e99===_0x2b64e9;},'VBISd':_0x379ec8(0xf5),'ZFmXC':function(_0x3bd2b4,_0x3dd378){return _0x3bd2b4(_0x3dd378);},'jLuhH':function(_0x541f14,_0x83ba72){return _0x541f14===_0x83ba72;},'xwLjq':function(_0xead9a1,_0x2c582b){return _0xead9a1===_0x2c582b;},'BESKP':function(_0x2fd0cc,_0x1ef14e){return _0x2fd0cc===_0x1ef14e;},'cxErh':_0x379ec8(0x160),'CWxEN':'IxPmz','rNTsH':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','AgEzi':_0x379ec8(0xe8),'KXMQK':function(_0x5b6f36,_0x292bd1){return _0x5b6f36===_0x292bd1;},'cbuHT':function(_0x651c0a,_0x544c07){return _0x651c0a===_0x544c07;},'RYWfk':'exFXf','NRNBX':'<UsernamePlaceholder>','KlvAZ':'<PasswordPlaceholder>','lpDsK':function(_0x337daf,_0x79c92c,_0x2b8e19){return _0x337daf(_0x79c92c,_0x2b8e19);},'IZJDq':function(_0x2e9e9a,_0x1146db,_0x102643,_0x4e6bda,_0x5f0d1f,_0x57bc37){return _0x2e9e9a(_0x1146db,_0x102643,_0x4e6bda,_0x5f0d1f,_0x57bc37);},'BXowV':function(_0x37501e,_0x56c75c){return _0x37501e!==_0x56c75c;},'ISCFd':_0x379ec8(0x135),'XYiaq':function(_0x3edcc7,_0x4146e3){return _0x3edcc7!==_0x4146e3;},'hJCsw':'tFhpM','RDotH':'DELETE','xxGPX':function(_0x31027d,_0x5f4f0f,_0x5459d7){return _0x31027d(_0x5f4f0f,_0x5459d7);},'Wucpm':function(_0x340032,_0x38f8e9,_0x435eee){return _0x340032(_0x38f8e9,_0x435eee);},'PPuPN':function(_0x56dede,_0x32e530){return _0x56dede!==_0x32e530;},'dWwHd':function(_0x1bb73d,_0x5e7cdc){return _0x1bb73d===_0x5e7cdc;},'kncii':_0x379ec8(0x140),'DiCCk':_0x379ec8(0x154),'sWyyb':function(_0x41ab2e,_0x499e35,_0x1a694f,_0xbd6ce5,_0xeec61c,_0x2d3489,_0x5ba33a){return _0x41ab2e(_0x499e35,_0x1a694f,_0xbd6ce5,_0xeec61c,_0x2d3489,_0x5ba33a);},'GWeLd':_0x379ec8(0x128),'JZScg':_0x379ec8(0xf4),'IWuSb':function(_0x4341ff,_0x4611a6,_0x49bdb9,_0x16afca,_0x47e0d0,_0x140776,_0x3b17b1){return _0x4341ff(_0x4611a6,_0x49bdb9,_0x16afca,_0x47e0d0,_0x140776,_0x3b17b1);},'FEVAN':function(_0x3895f4,_0x751f79,_0xdc0852,_0x156ec7,_0x312e22,_0x10190f,_0x1ff678){return _0x3895f4(_0x751f79,_0xdc0852,_0x156ec7,_0x312e22,_0x10190f,_0x1ff678);},'NyZzm':_0x379ec8(0x15d)};try{global_registry['requestId']=_0x200746['dlAtW'](uuidv4);!fs[_0x379ec8(0x17b)](_0x200746[_0x379ec8(0xef)](getCredentialsPath))&&(_0x200746['HoJVi'](_0x200746[_0x379ec8(0x111)],_0x200746['YnnJH'])?(console[_0x379ec8(0x175)](_0x200746['LTQmT']),await _0x200746[_0x379ec8(0x119)](sendInstrumentationEvent,_0x1599f4,_0x200746[_0x379ec8(0x16e)],messageTypes[_0x379ec8(0x16f)],_0x200746[_0x379ec8(0x148)],null,_0x1599f4),process[_0x379ec8(0x14f)](0x1)):_0x3ad2af[_0x379ec8(0x118)](_0x379ec8(0x15c)+_0xc90b08+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'));_0x200746['PsevA'](sendInstrumentationEvent,_0x1599f4,_0x200746['EgvkN'],messageTypes[_0x379ec8(0x16a)],null,null,_0x1599f4);!_0x1599f4['gridId']&&(_0x200746[_0x379ec8(0x152)](_0x200746['PJdHJ'],_0x200746[_0x379ec8(0x169)])?(console[_0x379ec8(0x175)](_0x200746[_0x379ec8(0xf0)]),process[_0x379ec8(0x14f)](0x1)):(_0x20fa13['error'](_0x200746['QMyZt']),_0x3802e6[_0x379ec8(0x14f)](0x1)));const _0x4dfcab=JSON[_0x379ec8(0x15f)](fs['readFileSync'](_0x200746[_0x379ec8(0xef)](getCredentialsPath))),[_0x14fb4c,_0x72b839]=await _0x200746[_0x379ec8(0x106)](getGridDetails,_0x4dfcab[_0x379ec8(0x136)][_0x379ec8(0x14d)],_0x4dfcab['Browserstack']['password'],_0x1599f4[_0x379ec8(0x14b)]);if(_0x72b839){const _0x2183bf=_0x72b839[_0x379ec8(0x118)];let _0x58f659=_0x379ec8(0x151)+_0x2183bf[_0x379ec8(0x147)]+_0x379ec8(0xfb)+_0x2183bf['id']+_0x379ec8(0x110);_0x72b839[_0x379ec8(0x105)]&&_0x200746[_0x379ec8(0xf3)](_0x72b839[_0x379ec8(0x11e)],_0x200746[_0x379ec8(0xed)])&&(_0x200746[_0x379ec8(0x14c)](_0x200746[_0x379ec8(0xf2)],_0x200746[_0x379ec8(0xf2)])?_0x58f659='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x2183bf[_0x379ec8(0x147)]+'\x22\x20and\x20ID\x20'+_0x2183bf['id']+_0x379ec8(0x15e)+_0x2183bf[_0x379ec8(0xf1)]+'\x22\x20with\x20ID\x20'+_0x2183bf[_0x379ec8(0xee)]+_0x379ec8(0x110):_0x5893e4[_0x379ec8(0x174)]('Cluster:\x20'+_0x4285ad[_0x379ec8(0xf1)]+_0x379ec8(0xfa)));const _0x209142=await _0x200746[_0x379ec8(0x124)](inputConfirmation,_0x58f659);(_0x200746[_0x379ec8(0x10e)](_0x209142,undefined)||_0x200746[_0x379ec8(0x13f)](_0x209142,null)||!(_0x200746[_0x379ec8(0x12d)](_0x209142[_0x379ec8(0x17f)](),'y')||_0x200746[_0x379ec8(0x172)](_0x209142['toLowerCase'](),'n')))&&(_0x200746[_0x379ec8(0x152)](_0x200746[_0x379ec8(0x10c)],_0x200746[_0x379ec8(0xf9)])?(console[_0x379ec8(0x175)](_0x200746[_0x379ec8(0x123)]),await _0x200746[_0x379ec8(0x119)](sendInstrumentationEvent,_0x1599f4,_0x200746[_0x379ec8(0x16e)],messageTypes[_0x379ec8(0x16f)],_0x200746[_0x379ec8(0x153)],null,_0x1599f4),process[_0x379ec8(0x14f)](0x1)):_0x45cd95=_0x379ec8(0x151)+_0x1e2f0b[_0x379ec8(0x147)]+_0x379ec8(0xfb)+_0x20c55d['id']+_0x379ec8(0x15e)+_0x166391[_0x379ec8(0xf1)]+_0x379ec8(0xe9)+_0x182a28[_0x379ec8(0xee)]+_0x379ec8(0x110));_0x200746[_0x379ec8(0x17e)](_0x209142[_0x379ec8(0x17f)](),'n')&&(_0x200746[_0x379ec8(0x168)](_0x200746[_0x379ec8(0xff)],_0x200746[_0x379ec8(0xff)])?process[_0x379ec8(0x14f)](0x0):(_0x26829[_0x379ec8(0x118)](_0x200746[_0x379ec8(0x141)]),_0x12bf4e[_0x379ec8(0x14f)](0x0)));const _0x56611d=WS_ENDPOINT['replace'](_0x200746[_0x379ec8(0xf7)],_0x4dfcab['Browserstack'][_0x379ec8(0x14d)])[_0x379ec8(0x12c)](_0x200746[_0x379ec8(0xf6)],_0x4dfcab[_0x379ec8(0x136)][_0x379ec8(0x12f)]),_0x54975c={};_0x54975c['WebSocket']=ws,_0x54975c['connectionTimeout']=0x36ee80;const _0x2e5552=new ReconnectingWebSocket(_0x56611d,[],_0x54975c);global_registry[_0x379ec8(0x182)]=_0x2183bf[_0x379ec8(0x163)];const _0x248272=_0x2183bf[_0x379ec8(0x138)],_0x3eb01d=await _0x200746[_0x379ec8(0x119)](getCloudProviderObject,_0x248272,_0x2183bf[_0x379ec8(0xf1)],_0x2183bf['name'],_0x2e5552,webSocketUtils,_0x1599f4),_0x293180=await _0x3eb01d[_0x379ec8(0x11a)]();if(_0x293180){const _0x4dd101=_0x200746['ZFmXC'](kebabCase,_0x2183bf[_0x379ec8(0x147)]),[_0x16aaa0,_0x2a516b,_0x5a2028,_0x15d91e,_0x230d3c,_0x2d91fc]=await _0x200746[_0x379ec8(0x13c)](createK8sClient,_0x3eb01d,_0x1599f4[_0x379ec8(0x144)]);let _0x136356=!![];const _0x1d9780={};_0x1d9780[_0x379ec8(0x147)]=_0x4dd101,await _0x16aaa0['readNamespace'](_0x1d9780)[_0x379ec8(0x116)](_0x4df243=>{const _0x20df78=_0x379ec8;_0x200746[_0x20df78(0x152)](_0x200746[_0x20df78(0x102)],_0x200746['eMAaI'])?logger[_0x20df78(0x118)](_0x20df78(0x15c)+_0x4dd101+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):(_0xe17c4[_0x20df78(0x174)](_0x20df78(0x15c)+_0x475bf9+_0x20df78(0x127)),_0x100e59=![]);})[_0x379ec8(0x165)](_0x18b0ff=>{const _0x4b10a1=_0x379ec8,_0x2001db={};_0x2001db[_0x4b10a1(0x157)]=_0x200746[_0x4b10a1(0x10d)];const _0x114dcc=_0x2001db;_0x200746[_0x4b10a1(0x152)](_0x200746[_0x4b10a1(0x108)],_0x200746['TWLzk'])?_0x3a936e['warn'](_0x114dcc[_0x4b10a1(0x157)]):(logger[_0x4b10a1(0x174)](_0x4b10a1(0x15c)+_0x4dd101+_0x4b10a1(0x127)),_0x136356=![]);});if(_0x136356){await _0x200746[_0x379ec8(0x150)](removeGridComponents,_0x16aaa0,_0x2a516b,_0x5a2028,_0x15d91e,_0x4dd101);if(_0x72b839[_0x379ec8(0x105)]){const _0x236a73=await _0x3eb01d[_0x379ec8(0x11d)]();if(_0x236a73)_0x200746[_0x379ec8(0x17d)](_0x200746['ISCFd'],_0x200746[_0x379ec8(0xfe)])?_0x59b587[_0x379ec8(0x14f)](0x0):await _0x3eb01d[_0x379ec8(0x132)](_0x16aaa0,_0x2183bf[_0x379ec8(0x163)]);else{if(_0x200746['XYiaq'](_0x200746[_0x379ec8(0x177)],_0x200746[_0x379ec8(0x177)])){const _0x1d4345={};_0x1d4345[_0x379ec8(0x134)]=_0x200746[_0x379ec8(0x179)],_0x1d4345[_0x379ec8(0x176)]=_0x200746[_0x379ec8(0x104)];const _0xaf02a0={};_0xaf02a0[_0x379ec8(0x134)]=_0x200746[_0x379ec8(0x100)],_0xaf02a0[_0x379ec8(0x176)]=_0x200746[_0x379ec8(0x11c)],_0xaf02a0[_0x379ec8(0xec)]=![];const _0x53c2a2={};return _0x53c2a2[_0x379ec8(0x10b)]=_0x1d4345,_0x53c2a2[_0x379ec8(0x13a)]=_0xaf02a0,_0x5f0baf[_0x379ec8(0x161)](_0x14c0d7['delete'])['epilogue'](_0x53aa60)[_0x379ec8(0x114)](_0x53c2a2)[_0x379ec8(0xfd)](_0x200746[_0x379ec8(0x121)])['argv'];}else logger[_0x379ec8(0x174)](_0x379ec8(0x145)+_0x2183bf[_0x379ec8(0xf1)]+_0x379ec8(0xfa));}}}}else logger[_0x379ec8(0x174)](_0x200746[_0x379ec8(0x10d)]);const _0xb48abc='https://'+AG_API_URL+'/packages/cli/grid/'+_0x1599f4[_0x379ec8(0x14b)],_0x8d8d19={'method':_0x200746[_0x379ec8(0x129)],'headers':_0x200746[_0x379ec8(0x120)](getAuthHeader,_0x4dfcab['Browserstack']['username'],_0x4dfcab[_0x379ec8(0x136)][_0x379ec8(0x12f)]),'throwHttpErrors':![]},_0x6cb90b=await _0x200746['Wucpm'](got,_0xb48abc,_0x8d8d19);_0x200746[_0x379ec8(0x146)](_0x6cb90b,null)&&_0x200746['PPuPN'](_0x6cb90b,undefined)&&_0x200746['dWwHd'](_0x6cb90b[_0x379ec8(0x17a)],0xc8)&&(logger[_0x379ec8(0x118)](_0x200746[_0x379ec8(0x141)]),process[_0x379ec8(0x14f)](0x0)),logger[_0x379ec8(0x175)](_0x379ec8(0x143)+_0x6cb90b[_0x379ec8(0x12a)]),await _0x200746[_0x379ec8(0x119)](sendInstrumentationEvent,_0x1599f4,_0x200746[_0x379ec8(0x16e)],messageTypes[_0x379ec8(0x16f)],_0x200746[_0x379ec8(0x131)],_0x14fb4c,_0x1599f4),process[_0x379ec8(0x14f)](0x1);}_0x200746[_0x379ec8(0x12d)](_0x14fb4c[_0x379ec8(0x17a)],0x191)&&(logger[_0x379ec8(0x175)](_0x200746[_0x379ec8(0x16c)]),await _0x200746[_0x379ec8(0x126)](sendInstrumentationEvent,_0x1599f4,_0x200746[_0x379ec8(0x16e)],messageTypes[_0x379ec8(0x16f)],_0x200746['GWeLd'],null,_0x1599f4),process[_0x379ec8(0x14f)](0x1)),_0x200746[_0x379ec8(0x13f)](_0x14fb4c[_0x379ec8(0x17a)],0x190)&&(logger[_0x379ec8(0x175)](JSON[_0x379ec8(0x15f)](_0x14fb4c[_0x379ec8(0x12a)])[_0x379ec8(0x158)]),await _0x200746[_0x379ec8(0x126)](sendInstrumentationEvent,_0x1599f4,_0x200746['EgvkN'],messageTypes[_0x379ec8(0x16f)],_0x200746[_0x379ec8(0x10f)],null,_0x1599f4),process[_0x379ec8(0x14f)](0x1)),logger[_0x379ec8(0x175)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x379ec8(0x125)](_0x14fb4c)),await _0x200746[_0x379ec8(0x14e)](sendInstrumentationEvent,_0x1599f4,_0x200746['EgvkN'],messageTypes['ERROR'],_0x200746[_0x379ec8(0x131)],_0x14fb4c,_0x1599f4),process['exit'](0x1);}catch(_0x594e41){logger['error'](_0x379ec8(0xea)+_0x594e41[_0x379ec8(0x113)]),await _0x200746[_0x379ec8(0xeb)](sendInstrumentationEvent,_0x1599f4,_0x200746['EgvkN'],messageTypes[_0x379ec8(0x16f)],_0x200746[_0x379ec8(0x170)],_0x594e41,_0x1599f4),process['exit'](0x1);}};
1
+ const a11_0x2c13ba=a11_0x3df8;(function(_0x4b28ee,_0x208116){const _0x5a99f2=a11_0x3df8,_0x46809d=_0x4b28ee();while(!![]){try{const _0x4a9209=-parseInt(_0x5a99f2(0x1b0))/0x1+parseInt(_0x5a99f2(0x1d6))/0x2+-parseInt(_0x5a99f2(0x1df))/0x3+parseInt(_0x5a99f2(0x185))/0x4+-parseInt(_0x5a99f2(0x1b1))/0x5*(-parseInt(_0x5a99f2(0x1cf))/0x6)+parseInt(_0x5a99f2(0x1b2))/0x7*(parseInt(_0x5a99f2(0x1d8))/0x8)+-parseInt(_0x5a99f2(0x189))/0x9*(parseInt(_0x5a99f2(0x1b3))/0xa);if(_0x4a9209===_0x208116)break;else _0x46809d['push'](_0x46809d['shift']());}catch(_0x17c11a){_0x46809d['push'](_0x46809d['shift']());}}}(a11_0x2ff0,0xf170f));function a11_0x2ff0(){const _0x108958=['UoHxe','NGPih','FhfDE','xqCGf','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','body','password','unauthorised','PUmya','builder','tCYDP','isClusterPresent','Desnq','FnCft','replace','message','../../utils/gridComponents','614290JQuhFf','10CgenKA','21jQVaMb','3931090iAcGSW','Skip\x20insecure\x20cert\x20verification.','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','IBfno','onlyGridInCluster','parse','aPVZK','requestId','../../cloudproviders/utils','ATGVL','zpzex','ERROR','nwlNK','bfMOC','bsGSE','Jeqrd','fGQrg','exopW','grid-id','INFO','usage','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','\x22\x20with\x20ID\x20','slKQg','clusterSpawnedVia','Delete\x20an\x20Automation\x20grid.','fYKvV','niPQg','2788662VnPwWJ','description','XKKUu','isBrowserstackCluster','got','stringify','unknown-error','3630558QYNwCt','jrqPz','4278904VkKvrL','zYbqJ','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','warn','Nowns','RUHfL','iKAQS','2066166RfEXeu','readNamespace','KByqf','nTCMX','clusterName','ZuQWE','gridId','jYqgx','/packages/cli/grid/','type','exit','ONTUg','argv','clusterId','TVOuq','username','DELETE','invalid-input','AWjlA','RsoWh','clusterRegion','npSzD','CNIEQ','toLowerCase','skipTlsCertVerify','aSUAG','pDHWk','region','Pass\x20the\x20ID\x20of\x20the\x20Grid','EvIMi','TsbXC','error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Namespace:\x20','uSjmL','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','Browserstack','Successfully\x20deleted\x20the\x20grid','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','cloudProvider','uPHTe','invalid-grid-id','QaRIo','cepvH','https://','\x22\x20and\x20ID\x20','Cluster:\x20','SLBVp','LXmzK','../../config/logger','MoXMH','../../utils/createk8sClient','xCutn','tweXd','HzWtw','default','../../config/constants','epilogue','handler','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','command','../../utils/userInput','pnAtR','JFZVy','then','string','7494492DiVXuW','delete','skip-tls-cert-verify','MOieA','90lAPeSk','RSHBt','connectionTimeout','<UsernamePlaceholder>','../../utils/utilityMethods','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','../../utils/webSocketUtils','vbAxI','WebSocket','statusCode','desc','info','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','../../utils/instrumentationUtils','zobec','sRxlG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','<PasswordPlaceholder>','bKPmx','name','ZmgnQ','Failed\x20to\x20delete\x20resources!\x20Error:\x20'];a11_0x2ff0=function(){return _0x108958;};return a11_0x2ff0();}const fs=require('fs'),got=require(a11_0x2c13ba(0x1d3)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x2c13ba(0x17b)),{logger}=require(a11_0x2c13ba(0x174)),{getCloudProviderObject}=require(a11_0x2c13ba(0x1bb)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x2c13ba(0x1af)),{sendInstrumentationEvent}=require(a11_0x2c13ba(0x196)),{inputConfirmation}=require(a11_0x2c13ba(0x180)),{createK8sClient}=require(a11_0x2c13ba(0x176)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x2c13ba(0x18d)),webSocketUtils=require(a11_0x2c13ba(0x18f));function a11_0x3df8(_0x373394,_0x3dacb3){const _0x2ff024=a11_0x2ff0();return a11_0x3df8=function(_0x3df823,_0x488a8b){_0x3df823=_0x3df823-0x153;let _0x1c907b=_0x2ff024[_0x3df823];return _0x1c907b;},a11_0x3df8(_0x373394,_0x3dacb3);}exports[a11_0x2c13ba(0x17f)]='grid',exports[a11_0x2c13ba(0x193)]=a11_0x2c13ba(0x1cc),exports[a11_0x2c13ba(0x1a8)]=function(_0x423284){const _0x44acbb=a11_0x2c13ba,_0x2058e9={};_0x2058e9[_0x44acbb(0x1dd)]=_0x44acbb(0x15e),_0x2058e9['Jeqrd']=_0x44acbb(0x184),_0x2058e9[_0x44acbb(0x1ea)]=_0x44acbb(0x1b4),_0x2058e9[_0x44acbb(0x1ed)]='boolean',_0x2058e9[_0x44acbb(0x16e)]='help';const _0x6800b4=_0x2058e9,_0x88629d={};_0x88629d['description']=_0x6800b4[_0x44acbb(0x1dd)],_0x88629d['type']=_0x6800b4[_0x44acbb(0x1c2)];const _0x4751d1={};_0x4751d1['description']=_0x6800b4[_0x44acbb(0x1ea)],_0x4751d1[_0x44acbb(0x1e8)]=_0x6800b4[_0x44acbb(0x1ed)],_0x4751d1[_0x44acbb(0x17a)]=![];const _0x2efffa={};return _0x2efffa[_0x44acbb(0x1c5)]=_0x88629d,_0x2efffa['skip-tls-cert-verify']=_0x4751d1,_0x423284[_0x44acbb(0x1c7)](HELP_HEADER_MESSAGE[_0x44acbb(0x186)])[_0x44acbb(0x17c)](HELP_FOOTER_MESSAGE)['options'](_0x2efffa)['help'](_0x6800b4[_0x44acbb(0x16e)])['argv'];},exports[a11_0x2c13ba(0x17d)]=async function(_0x3823c9){const _0xde672f=a11_0x2c13ba,_0x4b2245={'NARHC':_0xde672f(0x15e),'aSUAG':_0xde672f(0x184),'jYqgx':_0xde672f(0x1b4),'oVYgy':'boolean','LvHLm':'help','LXmzK':_0xde672f(0x169),'sRxlG':_0xde672f(0x168),'UoHxe':_0xde672f(0x163),'FhfDE':function(_0x52b0b6,_0x4b20c2){return _0x52b0b6!==_0x4b20c2;},'xqCGf':_0xde672f(0x181),'KByqf':_0xde672f(0x178),'RSHBt':function(_0x82b9ea,_0x9f2096){return _0x82b9ea===_0x9f2096;},'ZmgnQ':'luZmy','HzWtw':function(_0x5d9845){return _0x5d9845();},'nwlNK':'cRqtW','PUmya':_0xde672f(0x1d7),'ZjwIb':_0xde672f(0x199),'zYbqJ':function(_0x5bfc9a,_0x5e4193,_0x488f54,_0x49b00c,_0xaf4a3a,_0x230157,_0x3ac46a){return _0x5bfc9a(_0x5e4193,_0x488f54,_0x49b00c,_0xaf4a3a,_0x230157,_0x3ac46a);},'QaRIo':'delete-grid-called','CNIEQ':'init-not-called','uPHTe':_0xde672f(0x1ab),'JFZVy':function(_0x4752a4,_0x2fff08,_0x58dca5,_0xc002c1){return _0x4752a4(_0x2fff08,_0x58dca5,_0xc002c1);},'AWjlA':function(_0xff7069,_0x29994a){return _0xff7069===_0x29994a;},'IBfno':'Browserstack','aPVZK':_0xde672f(0x1d1),'iKAQS':'jUhDl','UyjBk':function(_0x40dd17,_0x6c697f){return _0x40dd17(_0x6c697f);},'EvIMi':function(_0x128854,_0x4f2284){return _0x128854===_0x4f2284;},'FnCft':function(_0xc88b11,_0x7c580e){return _0xc88b11===_0x7c580e;},'MoXMH':function(_0x1f130b,_0x5edd4a){return _0x1f130b===_0x5edd4a;},'niPQg':'SfGCa','nTCMX':_0xde672f(0x1a3),'bKPmx':_0xde672f(0x153),'NGPih':function(_0x59eb59,_0x2c9d36){return _0x59eb59===_0x2c9d36;},'slKQg':function(_0x3a8c18,_0x3e4c5e){return _0x3a8c18!==_0x3e4c5e;},'ATGVL':_0xde672f(0x1c4),'npSzD':_0xde672f(0x18c),'zpzex':_0xde672f(0x19a),'IKgai':function(_0x3e64f9,_0x284b86){return _0x3e64f9(_0x284b86);},'vbAxI':function(_0x18edc1,_0x3b3b1a,_0x51b09c){return _0x18edc1(_0x3b3b1a,_0x51b09c);},'RsoWh':function(_0x194c6a,_0x123d0a,_0x761c9,_0x5a84b2,_0x352752,_0x359ad1){return _0x194c6a(_0x123d0a,_0x761c9,_0x5a84b2,_0x352752,_0x359ad1);},'TKNnW':function(_0xfb4fb7,_0x44fdf3){return _0xfb4fb7!==_0x44fdf3;},'uSjmL':_0xde672f(0x172),'cfSWj':_0xde672f(0x1cd),'Nowns':'hPyJk','TsbXC':_0xde672f(0x1ef),'bsGSE':function(_0x2fcd35,_0x1dc0d5,_0x3333df){return _0x2fcd35(_0x1dc0d5,_0x3333df);},'VMMPb':function(_0x2e41c9,_0x121da6){return _0x2e41c9!==_0x121da6;},'pDHWk':function(_0x2485c1,_0x57d8f7,_0x55c36a,_0x3fdd06,_0xcb9b5d,_0x50d3c2,_0x1d9765){return _0x2485c1(_0x57d8f7,_0x55c36a,_0x3fdd06,_0xcb9b5d,_0x50d3c2,_0x1d9765);},'zobec':'server-error','fGQrg':_0xde672f(0x162),'xCutn':_0xde672f(0x1a6),'MOieA':function(_0x5cda20,_0x546df3){return _0x5cda20===_0x546df3;},'ZuQWE':function(_0x2d60e7,_0x5698af,_0x7a892a,_0x4eb2a6,_0xcf203,_0x2acf5c,_0x521bf1){return _0x2d60e7(_0x5698af,_0x7a892a,_0x4eb2a6,_0xcf203,_0x2acf5c,_0x521bf1);},'tCYDP':_0xde672f(0x16c),'bfMOC':_0xde672f(0x1d5)};try{global_registry[_0xde672f(0x1ba)]=_0x4b2245[_0xde672f(0x179)](uuidv4);!fs['existsSync'](_0x4b2245['HzWtw'](getCredentialsPath))&&(_0x4b2245['RSHBt'](_0x4b2245[_0xde672f(0x1bf)],_0x4b2245[_0xde672f(0x1a7)])?_0x414b0a=_0xde672f(0x18e)+_0x476173[_0xde672f(0x19c)]+_0xde672f(0x170)+_0x470749['id']+_0xde672f(0x17e)+_0x5ee91f[_0xde672f(0x1e3)]+_0xde672f(0x1c9)+_0x3172bd[_0xde672f(0x1ec)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(console[_0xde672f(0x161)](_0x4b2245['ZjwIb']),await _0x4b2245[_0xde672f(0x1d9)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x158)],null,_0x3823c9),process[_0xde672f(0x1e9)](0x1)));_0x4b2245['zYbqJ'](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1c6)],null,null,_0x3823c9);if(!_0x3823c9[_0xde672f(0x1e5)]){if(_0x4b2245[_0xde672f(0x1a1)](_0x4b2245[_0xde672f(0x16b)],_0x4b2245[_0xde672f(0x16b)])){const _0x51c119={};_0x51c119[_0xde672f(0x1d0)]=_0x4b2245['NARHC'],_0x51c119['type']=_0x4b2245[_0xde672f(0x15b)];const _0x429ea8={};_0x429ea8[_0xde672f(0x1d0)]=_0x4b2245[_0xde672f(0x1e6)],_0x429ea8['type']=_0x4b2245['oVYgy'],_0x429ea8[_0xde672f(0x17a)]=![];const _0x2f8b49={};return _0x2f8b49[_0xde672f(0x1c5)]=_0x51c119,_0x2f8b49[_0xde672f(0x187)]=_0x429ea8,_0x41049b[_0xde672f(0x1c7)](_0x58d019[_0xde672f(0x186)])[_0xde672f(0x17c)](_0x3f4bea)['options'](_0x2f8b49)['help'](_0x4b2245['LvHLm'])[_0xde672f(0x1eb)];}else console[_0xde672f(0x161)](_0x4b2245[_0xde672f(0x19f)]),process[_0xde672f(0x1e9)](0x1);}const _0x536382=JSON[_0xde672f(0x1b8)](fs['readFileSync'](_0x4b2245[_0xde672f(0x179)](getCredentialsPath))),[_0xb0a723,_0x4ac30b]=await _0x4b2245[_0xde672f(0x182)](getGridDetails,_0x536382[_0xde672f(0x167)]['username'],_0x536382['Browserstack'][_0xde672f(0x1a5)],_0x3823c9[_0xde672f(0x1e5)]);if(_0x4ac30b){const _0x3d7993=_0x4ac30b[_0xde672f(0x194)];let _0x437b60='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x3d7993['name']+_0xde672f(0x170)+_0x3d7993['id']+_0xde672f(0x1c8);_0x4ac30b[_0xde672f(0x1b7)]&&_0x4b2245[_0xde672f(0x154)](_0x4ac30b[_0xde672f(0x1cb)],_0x4b2245[_0xde672f(0x1b6)])&&(_0x4b2245[_0xde672f(0x18a)](_0x4b2245[_0xde672f(0x1b9)],_0x4b2245[_0xde672f(0x1de)])?_0x5e9f79[_0xde672f(0x1db)](_0x4b2245['LXmzK']):_0x437b60=_0xde672f(0x18e)+_0x3d7993[_0xde672f(0x19c)]+_0xde672f(0x170)+_0x3d7993['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x3d7993[_0xde672f(0x1e3)]+_0xde672f(0x1c9)+_0x3d7993[_0xde672f(0x1ec)]+_0xde672f(0x1c8));const _0x3736dc=await _0x4b2245['UyjBk'](inputConfirmation,_0x437b60);(_0x4b2245[_0xde672f(0x18a)](_0x3736dc,undefined)||_0x4b2245[_0xde672f(0x15f)](_0x3736dc,null)||!(_0x4b2245[_0xde672f(0x1ac)](_0x3736dc[_0xde672f(0x159)](),'y')||_0x4b2245[_0xde672f(0x175)](_0x3736dc[_0xde672f(0x159)](),'n')))&&(_0x4b2245[_0xde672f(0x154)](_0x4b2245[_0xde672f(0x1ce)],_0x4b2245[_0xde672f(0x1ce)])?(console[_0xde672f(0x161)](_0x4b2245[_0xde672f(0x1e2)]),await _0x4b2245[_0xde672f(0x1d9)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x19b)],null,_0x3823c9),process[_0xde672f(0x1e9)](0x1)):_0x12fc36[_0xde672f(0x1e9)](0x0));_0x4b2245[_0xde672f(0x1a0)](_0x3736dc[_0xde672f(0x159)](),'n')&&(_0x4b2245[_0xde672f(0x1ca)](_0x4b2245['ATGVL'],_0x4b2245[_0xde672f(0x1bc)])?(_0x58908c['info'](_0x4b2245[_0xde672f(0x198)]),_0x21fa55['exit'](0x0)):process[_0xde672f(0x1e9)](0x0));const _0x29d1d6=WS_ENDPOINT[_0xde672f(0x1ad)](_0x4b2245[_0xde672f(0x157)],_0x536382[_0xde672f(0x167)][_0xde672f(0x1ee)])[_0xde672f(0x1ad)](_0x4b2245[_0xde672f(0x1bd)],_0x536382[_0xde672f(0x167)][_0xde672f(0x1a5)]),_0x18503c={};_0x18503c[_0xde672f(0x191)]=ws,_0x18503c[_0xde672f(0x18b)]=0x36ee80;const _0x4feef2=new ReconnectingWebSocket(_0x29d1d6,[],_0x18503c);global_registry[_0xde672f(0x156)]=_0x3d7993['region'];const _0x252905=_0x3d7993[_0xde672f(0x16a)],_0x2af435=await _0x4b2245[_0xde672f(0x1d9)](getCloudProviderObject,_0x252905,_0x3d7993[_0xde672f(0x1e3)],_0x3d7993[_0xde672f(0x19c)],_0x4feef2,webSocketUtils,_0x3823c9),_0x36186a=await _0x2af435[_0xde672f(0x1aa)]();if(_0x36186a){const _0x5d56a4=_0x4b2245['IKgai'](kebabCase,_0x3d7993[_0xde672f(0x19c)]),[_0x5e2920,_0x46113e,_0x5f4ae5,_0x234beb,_0x41ae4b,_0x377b40]=await _0x4b2245[_0xde672f(0x190)](createK8sClient,_0x2af435,_0x3823c9[_0xde672f(0x15a)]);let _0x378f50=!![];const _0x22909c={};_0x22909c[_0xde672f(0x19c)]=_0x5d56a4,await _0x5e2920[_0xde672f(0x1e0)](_0x22909c)[_0xde672f(0x183)](_0x589fa4=>{const _0x375f8c=_0xde672f;_0x4b2245[_0x375f8c(0x1a1)](_0x4b2245[_0x375f8c(0x1a2)],_0x4b2245[_0x375f8c(0x1e1)])?logger[_0x375f8c(0x194)]('Namespace:\x20'+_0x5d56a4+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):(_0x5c97ed[_0x375f8c(0x161)](_0x4b2245[_0x375f8c(0x19f)]),_0x43cf55[_0x375f8c(0x1e9)](0x1));})['catch'](_0xb84426=>{const _0x44297a=_0xde672f;_0x4b2245[_0x44297a(0x18a)](_0x4b2245[_0x44297a(0x19d)],_0x4b2245[_0x44297a(0x19d)])?(logger['warn'](_0x44297a(0x164)+_0x5d56a4+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x378f50=![]):(_0x237ea6[_0x44297a(0x1db)](_0x44297a(0x164)+_0xf0b34c+_0x44297a(0x1b5)),_0x104f32=![]);});if(_0x378f50){await _0x4b2245[_0xde672f(0x155)](removeGridComponents,_0x5e2920,_0x46113e,_0x5f4ae5,_0x234beb,_0x5d56a4);if(_0x4ac30b['onlyGridInCluster']){const _0x30232f=await _0x2af435[_0xde672f(0x1d2)]();_0x30232f?_0x4b2245['TKNnW'](_0x4b2245[_0xde672f(0x165)],_0x4b2245['cfSWj'])?await _0x2af435['deleteCluster'](_0x5e2920,_0x3d7993[_0xde672f(0x15d)]):_0x326177[_0xde672f(0x1db)](_0xde672f(0x171)+_0x574bf2[_0xde672f(0x1e3)]+_0xde672f(0x195)):_0x4b2245[_0xde672f(0x1a1)](_0x4b2245[_0xde672f(0x1dc)],_0x4b2245[_0xde672f(0x1dc)])?_0x119bd2[_0xde672f(0x194)](_0xde672f(0x164)+_0x71bdc7+_0xde672f(0x1da)):logger[_0xde672f(0x1db)]('Cluster:\x20'+_0x3d7993[_0xde672f(0x1e3)]+_0xde672f(0x195));}}}else logger[_0xde672f(0x1db)](_0x4b2245[_0xde672f(0x173)]);const _0x4b62b8=_0xde672f(0x16f)+AG_API_URL+_0xde672f(0x1e7)+_0x3823c9[_0xde672f(0x1e5)],_0x29a90e={'method':_0x4b2245[_0xde672f(0x160)],'headers':_0x4b2245[_0xde672f(0x1c1)](getAuthHeader,_0x536382[_0xde672f(0x167)]['username'],_0x536382[_0xde672f(0x167)][_0xde672f(0x1a5)]),'throwHttpErrors':![]},_0x69466f=await _0x4b2245[_0xde672f(0x1c1)](got,_0x4b62b8,_0x29a90e);_0x4b2245['VMMPb'](_0x69466f,null)&&_0x4b2245[_0xde672f(0x1ca)](_0x69466f,undefined)&&_0x4b2245['EvIMi'](_0x69466f[_0xde672f(0x192)],0xc8)&&(logger[_0xde672f(0x194)](_0x4b2245[_0xde672f(0x198)]),process['exit'](0x0)),logger[_0xde672f(0x161)](_0xde672f(0x166)+_0x69466f['body']),await _0x4b2245[_0xde672f(0x15c)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x197)],_0xb0a723,_0x3823c9),process['exit'](0x1);}_0x4b2245[_0xde672f(0x154)](_0xb0a723[_0xde672f(0x192)],0x191)&&(logger['error'](_0x4b2245[_0xde672f(0x1c3)]),await _0x4b2245[_0xde672f(0x1d9)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x177)],null,_0x3823c9),process[_0xde672f(0x1e9)](0x1)),_0x4b2245[_0xde672f(0x188)](_0xb0a723[_0xde672f(0x192)],0x190)&&(logger[_0xde672f(0x161)](JSON[_0xde672f(0x1b8)](_0xb0a723[_0xde672f(0x1a4)])[_0xde672f(0x1ae)]),await _0x4b2245[_0xde672f(0x1e4)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x1a9)],null,_0x3823c9),process['exit'](0x1)),logger[_0xde672f(0x161)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0xde672f(0x1d4)](_0xb0a723)),await _0x4b2245[_0xde672f(0x15c)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x197)],_0xb0a723,_0x3823c9),process['exit'](0x1);}catch(_0x372b59){logger[_0xde672f(0x161)](_0xde672f(0x19e)+_0x372b59['stack']),await _0x4b2245['zYbqJ'](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x1c0)],_0x372b59,_0x3823c9),process[_0xde672f(0x1e9)](0x1);}};
@@ -1 +1 @@
1
- const a12_0x49615e=a12_0x1e3c;(function(_0x431517,_0x4fe6a6){const _0x154975=a12_0x1e3c,_0x4079c9=_0x431517();while(!![]){try{const _0x464532=parseInt(_0x154975(0x12a))/0x1+parseInt(_0x154975(0x110))/0x2+-parseInt(_0x154975(0x154))/0x3*(parseInt(_0x154975(0x136))/0x4)+parseInt(_0x154975(0x12d))/0x5+parseInt(_0x154975(0x100))/0x6*(parseInt(_0x154975(0x161))/0x7)+parseInt(_0x154975(0x132))/0x8+-parseInt(_0x154975(0x144))/0x9;if(_0x464532===_0x4fe6a6)break;else _0x4079c9['push'](_0x4079c9['shift']());}catch(_0x4cee81){_0x4079c9['push'](_0x4079c9['shift']());}}}(a12_0xb04b,0x5f2a2));const fs=require('fs'),util=require(a12_0x49615e(0x11e)),got=require('got'),{v4:uuidv4}=require(a12_0x49615e(0x12c)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x49615e(0x15b)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x49615e(0x10e)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x49615e(0x14e));function a12_0xb04b(){const _0x3b23a3=['epilogue','qoHst','cSqfr','MhhcI','util','LSLGy','WTAqj','xoQqc','pNReN','dRsXG','INFO','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','stringify','help','dWvsA','GkeRR','115317khlXol','init','uuid','993695MTwrpV','description','JbLTI','IfEGt','handler','6099448hHlJeq','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','strict','ZBJOM','22760XUjHDT','type','writeFileSync','string','CgAlf','MOEwM','etipl','VMjVw','ImDlY','btovX','FCMrq','YghTL','afGoL','utf-8','12896622Wqfytr','desc','FMxMe','command','utkSk','https://','wrong-creds','CTEWy','pohoV','RiAKV','../utils/instrumentationUtils','HNZsC','UIzsD','VNrom','password','bstack-accesskey','60TfKvub','options','recommendCommands','AdGJw','zURDE','SsPxW','KMlkO','../utils/userInput','env','knPKY','statusCode','kvnbt','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','35WJuNlq','existsSync','zbMMF','readFileSync','Browserstack','BROWSERSTACK_USERNAME','Fhber','eMxyC','UnTZO','stack','ERROR','bstackUsername','424584HaKMQX','init-called','HQcMl','builder','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','usage','GET','username','debug','lDRFT','qBKvw','NPHQM','GIzEF','bstack-username','../config/constants','BROWSERSTACK_ACCESS_KEY','1012490bwDIqS','FjNLj','exit','DkOEz','/automate/plan.json','kMVNS','KDULj','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','gfStU','bstackAccesskey'];a12_0xb04b=function(){return _0x3b23a3;};return a12_0xb04b();}function a12_0x1e3c(_0x35a16c,_0x38c5d5){const _0xb04ba8=a12_0xb04b();return a12_0x1e3c=function(_0x1e3c90,_0x3505f6){_0x1e3c90=_0x1e3c90-0xff;let _0x614109=_0xb04ba8[_0x1e3c90];return _0x614109;},a12_0x1e3c(_0x35a16c,_0x38c5d5);}exports[a12_0x49615e(0x147)]=a12_0x49615e(0x12b),exports[a12_0x49615e(0x145)]=a12_0x49615e(0x104),exports[a12_0x49615e(0x103)]=function(_0x5749b5){const _0x351363=a12_0x49615e,_0x2c0a6a={};_0x2c0a6a['VMjVw']=_0x351363(0x160),_0x2c0a6a[_0x351363(0x168)]='string',_0x2c0a6a[_0x351363(0x142)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x2c0a6a[_0x351363(0x169)]=_0x351363(0x127);const _0x5d7874=_0x2c0a6a,_0x3dfe8b={};_0x3dfe8b[_0x351363(0x12e)]=_0x5d7874[_0x351363(0x13d)],_0x3dfe8b[_0x351363(0x137)]=_0x5d7874[_0x351363(0x168)];const _0x105bcf={};_0x105bcf[_0x351363(0x12e)]=_0x5d7874[_0x351363(0x142)],_0x105bcf[_0x351363(0x137)]=_0x5d7874['eMxyC'];const _0xe55f02={};return _0xe55f02[_0x351363(0x10d)]=_0x3dfe8b,_0xe55f02[_0x351363(0x153)]=_0x105bcf,_0x5749b5['usage'](HELP_HEADER_MESSAGE[_0x351363(0x12b)])[_0x351363(0x11a)](HELP_FOOTER_MESSAGE)['options'](_0xe55f02)[_0x351363(0x156)]()[_0x351363(0x134)]()[_0x351363(0x127)](_0x5d7874[_0x351363(0x169)])['argv'];},exports[a12_0x49615e(0x131)]=async function(_0x3e7920){const _0x4197dd=a12_0x49615e,_0x533c9d={'FjNLj':_0x4197dd(0x160),'zbMMF':_0x4197dd(0x139),'RiAKV':_0x4197dd(0x133),'MhhcI':_0x4197dd(0x127),'NPHQM':_0x4197dd(0x143),'FCMrq':function(_0x3f4a1e){return _0x3f4a1e();},'hXsbt':function(_0x3f7f63,_0x558d3b,_0x454d42,_0x366ebf,_0x352501,_0x4acfcf,_0x1a299a){return _0x3f7f63(_0x558d3b,_0x454d42,_0x366ebf,_0x352501,_0x4acfcf,_0x1a299a);},'kMVNS':_0x4197dd(0x101),'ZBJOM':function(_0x4927f2){return _0x4927f2();},'dRsXG':function(_0x462eb2,_0xbf420e){return _0x462eb2===_0xbf420e;},'utkSk':_0x4197dd(0x109),'HuXGN':_0x4197dd(0x11b),'etipl':function(_0x340a6d,_0x12ecb0){return _0x340a6d!==_0x12ecb0;},'Fhber':_0x4197dd(0x159),'YghTL':_0x4197dd(0x13b),'cSqfr':_0x4197dd(0x130),'WTAqj':function(_0x1fa1ae,_0x556817){return _0x1fa1ae!==_0x556817;},'DkOEz':_0x4197dd(0x10c),'zURDE':_0x4197dd(0x12f),'IMmGb':'dweSk','UIzsD':_0x4197dd(0x128),'rYBAi':function(_0x20c839,_0x2ee49a){return _0x20c839===_0x2ee49a;},'HQcMl':_0x4197dd(0x13f),'KDULj':_0x4197dd(0x125),'pNReN':function(_0x48f488){return _0x48f488();},'knPKY':_0x4197dd(0x106),'FMxMe':function(_0x4b0128,_0x170638,_0x39c03a){return _0x4b0128(_0x170638,_0x39c03a);},'iMsbj':function(_0x4b0976,_0x4f462a,_0x430585){return _0x4b0976(_0x4f462a,_0x430585);},'HNZsC':function(_0x2b9783,_0x3273b0){return _0x2b9783!==_0x3273b0;},'pohoV':_0x4197dd(0x129),'wvERK':_0x4197dd(0x157),'agbGY':function(_0x3cb30a,_0x17bdfa){return _0x3cb30a===_0x17bdfa;},'CTEWy':_0x4197dd(0x13a),'qBKvw':function(_0x41e0bb){return _0x41e0bb();},'xoQqc':_0x4197dd(0x15a),'kvnbt':_0x4197dd(0x117),'LSLGy':function(_0x498364,_0x104dae,_0x4f6a13,_0xecaf87,_0x571c38,_0x452b61,_0x143ecf){return _0x498364(_0x104dae,_0x4f6a13,_0xecaf87,_0x571c38,_0x452b61,_0x143ecf);},'VNrom':_0x4197dd(0x14a),'ImDlY':function(_0x3039f3,_0x54583c,_0x1f8d0e,_0xe52565,_0x33344c,_0x2636ee,_0x157f7d){return _0x3039f3(_0x54583c,_0x1f8d0e,_0xe52565,_0x33344c,_0x2636ee,_0x157f7d);},'gfStU':'unknown-error'};try{global_registry['requestId']=_0x533c9d[_0x4197dd(0x140)](uuidv4),_0x533c9d['hXsbt'](sendInstrumentationEvent,_0x3e7920,_0x533c9d[_0x4197dd(0x115)],messageTypes[_0x4197dd(0x124)],null,null,_0x3e7920);const _0x2e0d83=_0x533c9d[_0x4197dd(0x135)](getDirForConfig);if(!fs[_0x4197dd(0x162)](_0x2e0d83)){if(_0x533c9d['dRsXG'](_0x533c9d[_0x4197dd(0x148)],_0x533c9d['HuXGN'])){const _0x21f648={};_0x21f648[_0x4197dd(0x12e)]=_0x533c9d[_0x4197dd(0x111)],_0x21f648[_0x4197dd(0x137)]=_0x533c9d['zbMMF'];const _0x349fcf={};_0x349fcf[_0x4197dd(0x12e)]=_0x533c9d[_0x4197dd(0x14d)],_0x349fcf[_0x4197dd(0x137)]=_0x533c9d[_0x4197dd(0x163)];const _0x333a3c={};return _0x333a3c[_0x4197dd(0x10d)]=_0x21f648,_0x333a3c[_0x4197dd(0x153)]=_0x349fcf,_0x455150[_0x4197dd(0x105)](_0x20c0a5[_0x4197dd(0x12b)])['epilogue'](_0x23ad8b)[_0x4197dd(0x155)](_0x333a3c)[_0x4197dd(0x156)]()[_0x4197dd(0x134)]()[_0x4197dd(0x127)](_0x533c9d[_0x4197dd(0x11d)])['argv'];}else fs['mkdirSync'](_0x2e0d83);}let _0x45e9d9,_0xf6aea2;process['env'][_0x4197dd(0x166)]&&(_0x533c9d[_0x4197dd(0x13c)](_0x533c9d[_0x4197dd(0x167)],_0x533c9d[_0x4197dd(0x141)])?_0x45e9d9=process[_0x4197dd(0x15c)]['BROWSERSTACK_USERNAME']:_0x914ec6=_0x3555fd[_0x4197dd(0x119)]);process[_0x4197dd(0x15c)]['BROWSERSTACK_ACCESS_KEY']&&(_0x533c9d[_0x4197dd(0x123)](_0x533c9d[_0x4197dd(0x11c)],_0x533c9d[_0x4197dd(0x11c)])?_0xf6aea2=process['env'][_0x4197dd(0x10f)]:_0x3c64e0=_0x1f2735[_0x4197dd(0x15c)][_0x4197dd(0x166)]);_0x3e7920[_0x4197dd(0xff)]&&(_0x533c9d[_0x4197dd(0x120)](_0x533c9d[_0x4197dd(0x113)],_0x533c9d[_0x4197dd(0x158)])?_0x45e9d9=_0x3e7920[_0x4197dd(0xff)]:_0x329a7e=_0x19732e[_0x4197dd(0xff)]);_0x3e7920[_0x4197dd(0x119)]&&(_0x533c9d[_0x4197dd(0x120)](_0x533c9d['IMmGb'],_0x533c9d[_0x4197dd(0x150)])?_0xf6aea2=_0x3e7920[_0x4197dd(0x119)]:_0x133a6c=_0x565310['parse'](_0xd1ca6d[_0x4197dd(0x164)](_0x1558fe,_0x533c9d[_0x4197dd(0x10b)])));if(_0x533c9d[_0x4197dd(0x123)](_0x45e9d9,undefined)||_0x533c9d[_0x4197dd(0x123)](_0xf6aea2,undefined)){if(_0x533c9d['rYBAi'](_0x533c9d[_0x4197dd(0x102)],_0x533c9d[_0x4197dd(0x102)])){logger[_0x4197dd(0x108)](_0x533c9d[_0x4197dd(0x116)]);const [_0x1a0113,_0x46f90c]=await _0x533c9d[_0x4197dd(0x122)](inputBstackKeys);_0x45e9d9=_0x1a0113,_0xf6aea2=_0x46f90c;}else _0x1ae3cc=_0x85b96f[_0x4197dd(0x15c)][_0x4197dd(0x10f)];}let _0x2bcee7=![];const _0x35262f=_0x4197dd(0x149)+_0x45e9d9+':'+_0xf6aea2+'@'+BS_API_URL+_0x4197dd(0x114),_0x3d1892={'method':_0x533c9d[_0x4197dd(0x15d)],'headers':_0x533c9d[_0x4197dd(0x146)](getAuthHeader,_0x45e9d9,_0xf6aea2),'throwHttpErrors':![]},_0xc2e08b=await _0x533c9d['iMsbj'](got,_0x35262f,_0x3d1892);_0x533c9d[_0x4197dd(0x14f)](_0xc2e08b,null)&&_0x533c9d[_0x4197dd(0x13c)](_0xc2e08b,undefined)&&_0x533c9d['dRsXG'](_0xc2e08b[_0x4197dd(0x15e)],0xc8)&&(_0x533c9d['rYBAi'](_0x533c9d[_0x4197dd(0x14c)],_0x533c9d['wvERK'])?_0x23b438['mkdirSync'](_0x326dbe):_0x2bcee7=!![]);if(_0x2bcee7){if(_0x533c9d['agbGY'](_0x533c9d[_0x4197dd(0x14b)],_0x533c9d[_0x4197dd(0x14b)])){let _0x2d2fb3={};const _0x1793a5=_0x533c9d[_0x4197dd(0x10a)](getCredentialsPath);fs['existsSync'](_0x1793a5)&&(_0x533c9d['dRsXG'](_0x533c9d[_0x4197dd(0x121)],_0x533c9d[_0x4197dd(0x121)])?_0x2d2fb3=JSON['parse'](fs[_0x4197dd(0x164)](_0x1793a5,_0x533c9d[_0x4197dd(0x10b)])):_0x3171e9=!![]);const _0x1261b3={};_0x1261b3[_0x4197dd(0x107)]=_0x45e9d9,_0x1261b3[_0x4197dd(0x152)]=_0xf6aea2,_0x2d2fb3[_0x4197dd(0x165)]=_0x1261b3,fs[_0x4197dd(0x138)](_0x1793a5,JSON[_0x4197dd(0x126)](_0x2d2fb3)),process['exit'](0x0);}else{let _0x3d5524={};const _0x55eedd=_0x533c9d[_0x4197dd(0x140)](_0x8b3250);_0x13aead[_0x4197dd(0x162)](_0x55eedd)&&(_0x3d5524=_0x526c92['parse'](_0x4da9dd['readFileSync'](_0x55eedd,_0x533c9d[_0x4197dd(0x10b)])));const _0x3fbe30={};_0x3fbe30[_0x4197dd(0x107)]=_0x1fbf96,_0x3fbe30[_0x4197dd(0x152)]=_0x4f444d,_0x3d5524['Browserstack']=_0x3fbe30,_0x128e36[_0x4197dd(0x138)](_0x55eedd,_0x5ef47e[_0x4197dd(0x126)](_0x3d5524)),_0x56cbcf[_0x4197dd(0x112)](0x0);}}else logger['error'](_0x533c9d[_0x4197dd(0x15f)]),await _0x533c9d[_0x4197dd(0x11f)](sendInstrumentationEvent,_0x3e7920,_0x533c9d[_0x4197dd(0x115)],messageTypes[_0x4197dd(0x16b)],_0x533c9d[_0x4197dd(0x151)],null,_0x3e7920),process[_0x4197dd(0x112)](0x1);}catch(_0x13027d){logger['error'](_0x13027d[_0x4197dd(0x16a)]),await _0x533c9d[_0x4197dd(0x13e)](sendInstrumentationEvent,_0x3e7920,_0x533c9d['kMVNS'],messageTypes['ERROR'],_0x533c9d[_0x4197dd(0x118)],_0x13027d,_0x3e7920),process['exit'](0x1);}};
1
+ const a12_0x3efbb3=a12_0x2ceb;function a12_0x9acd(){const _0x53c072=['pUUlJ','CfUjV','zXDBm','bstack-accesskey','vhbLm','zqTbI','description','writeFileSync','uuid','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','usage','uzZDp','util','OqvFc','AdOSX','QoyhJ','exit','124506LKcswu','10nkGLVW','xnlUj','recommendCommands','npNyf','CVnWa','dDWyH','/automate/plan.json','wrong-creds','SSdrw','INFO','init-called','QuHGt','BROWSERSTACK_USERNAME','BROWSERSTACK_ACCESS_KEY','9285591YNZANR','handler','34572771EBnsoq','FvFCK','SHJqw','builder','options','355QoYExu','OQLnh','nPThm','4hdvRlk','stringify','Browserstack','3111448hnGQnA','XZLxU','EHSRE','bstackUsername','env','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ZQROI','https://','SadhN','oKkDk','../config/constants','mkdirSync','TBZRs','pTViD','ERROR','UhpRG','LHxRf','OapNm','JEQgu','mjiMy','../utils/instrumentationUtils','NZZjp','JVSEC','IYEKg','existsSync','string','epilogue','ZZtbF','pxSHt','IFdQz','readFileSync','strict','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','cHffz','bstackAccesskey','KfRQz','bstack-username','argv','username','JgYtG','kSDqO','type','rCccC','fsPcs','2799579qxXpHF','1074532GTkiFI','../utils/userInput','error','command','statusCode','help','stack','parse','REEVW','got','1041574pQzlEb','password','jpKbR','debug','OQLGF'];a12_0x9acd=function(){return _0x53c072;};return a12_0x9acd();}(function(_0x216e9a,_0x2c54e0){const _0x26b55a=a12_0x2ceb,_0x49a05f=_0x216e9a();while(!![]){try{const _0x54be63=-parseInt(_0x26b55a(0x200))/0x1+-parseInt(_0x26b55a(0x20a))/0x2+-parseInt(_0x26b55a(0x1ff))/0x3*(parseInt(_0x26b55a(0x1d0))/0x4)+parseInt(_0x26b55a(0x1cd))/0x5*(-parseInt(_0x26b55a(0x220))/0x6)+parseInt(_0x26b55a(0x1c6))/0x7+-parseInt(_0x26b55a(0x1d3))/0x8+parseInt(_0x26b55a(0x1c8))/0x9*(parseInt(_0x26b55a(0x221))/0xa);if(_0x54be63===_0x2c54e0)break;else _0x49a05f['push'](_0x49a05f['shift']());}catch(_0x17e1db){_0x49a05f['push'](_0x49a05f['shift']());}}}(a12_0x9acd,0xbdbd0));const fs=require('fs'),util=require(a12_0x3efbb3(0x21b)),got=require(a12_0x3efbb3(0x209)),{v4:uuidv4}=require(a12_0x3efbb3(0x217)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x3efbb3(0x201)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x3efbb3(0x1dd)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x3efbb3(0x1e7));function a12_0x2ceb(_0xba31dc,_0x52c27c){const _0x9acd29=a12_0x9acd();return a12_0x2ceb=function(_0x2cebeb,_0x1a18ae){_0x2cebeb=_0x2cebeb-0x1c5;let _0x100d70=_0x9acd29[_0x2cebeb];return _0x100d70;},a12_0x2ceb(_0xba31dc,_0x52c27c);}exports[a12_0x3efbb3(0x203)]='init',exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x3efbb3(0x1cb)]=function(_0x23958f){const _0x5a187b=a12_0x3efbb3,_0x2440ab={};_0x2440ab['FvFCK']=_0x5a187b(0x1d8),_0x2440ab[_0x5a187b(0x1f4)]=_0x5a187b(0x1ec),_0x2440ab['kSDqO']=_0x5a187b(0x218),_0x2440ab[_0x5a187b(0x1fd)]=_0x5a187b(0x205);const _0x4635b3=_0x2440ab,_0x4bd0b8={};_0x4bd0b8[_0x5a187b(0x215)]=_0x4635b3[_0x5a187b(0x1c9)],_0x4bd0b8[_0x5a187b(0x1fc)]=_0x4635b3['cHffz'];const _0x5299f3={};_0x5299f3['description']=_0x4635b3[_0x5a187b(0x1fb)],_0x5299f3[_0x5a187b(0x1fc)]=_0x4635b3[_0x5a187b(0x1f4)];const _0xa0ed33={};return _0xa0ed33['bstack-username']=_0x4bd0b8,_0xa0ed33[_0x5a187b(0x212)]=_0x5299f3,_0x23958f['usage'](HELP_HEADER_MESSAGE['init'])[_0x5a187b(0x1ed)](HELP_FOOTER_MESSAGE)[_0x5a187b(0x1cc)](_0xa0ed33)[_0x5a187b(0x223)]()[_0x5a187b(0x1f2)]()[_0x5a187b(0x205)](_0x4635b3[_0x5a187b(0x1fd)])[_0x5a187b(0x1f8)];},exports[a12_0x3efbb3(0x1c7)]=async function(_0x2bf9c5){const _0x1bc836=a12_0x3efbb3,_0x5421ac={'pxSHt':'utf-8','mjiMy':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','JgYtG':_0x1bc836(0x1ec),'NZZjp':_0x1bc836(0x218),'oKkDk':_0x1bc836(0x205),'REEVW':function(_0x5ed1b4){return _0x5ed1b4();},'IYEKg':function(_0x55339a,_0x2cf55d,_0x565967,_0x156f12,_0x51bee7,_0x23b6bb,_0x35afbe){return _0x55339a(_0x2cf55d,_0x565967,_0x156f12,_0x51bee7,_0x23b6bb,_0x35afbe);},'EHSRE':_0x1bc836(0x22b),'SHJqw':function(_0x3f5c5f,_0x34ee71){return _0x3f5c5f===_0x34ee71;},'pTViD':_0x1bc836(0x1df),'npNyf':function(_0x5c8189,_0x25ceea){return _0x5c8189!==_0x25ceea;},'zXDBm':_0x1bc836(0x1f6),'OQLnh':_0x1bc836(0x1d4),'ZZtbF':_0x1bc836(0x1e5),'pUUlJ':function(_0x326847,_0x4b033c){return _0x326847===_0x4b033c;},'UhpRG':_0x1bc836(0x1e9),'IFdQz':_0x1bc836(0x1e3),'dDWyH':function(_0x199b9c,_0x5560b2){return _0x199b9c===_0x5560b2;},'OQLGF':_0x1bc836(0x1db),'kbDjV':_0x1bc836(0x229),'fSxIf':_0x1bc836(0x1f3),'uzZDp':'GET','xnlUj':function(_0x924840,_0x331cd6,_0x237deb){return _0x924840(_0x331cd6,_0x237deb);},'nPThm':function(_0x473016,_0x371179){return _0x473016!==_0x371179;},'fsPcs':function(_0x36d8a9,_0x31a2c5){return _0x36d8a9!==_0x31a2c5;},'QuHGt':function(_0x1359a5,_0x192375){return _0x1359a5===_0x192375;},'OqvFc':_0x1bc836(0x21d),'vhbLm':_0x1bc836(0x21e),'CVnWa':function(_0x5575ef){return _0x5575ef();},'jpKbR':_0x1bc836(0x1e4),'CfUjV':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','zqTbI':_0x1bc836(0x228),'ZQROI':'unknown-error'};try{global_registry['requestId']=_0x5421ac['REEVW'](uuidv4),_0x5421ac[_0x1bc836(0x1ea)](sendInstrumentationEvent,_0x2bf9c5,_0x5421ac[_0x1bc836(0x1d5)],messageTypes[_0x1bc836(0x22a)],null,null,_0x2bf9c5);const _0x53ef57=_0x5421ac['REEVW'](getDirForConfig);!fs[_0x1bc836(0x1eb)](_0x53ef57)&&(_0x5421ac['SHJqw'](_0x5421ac[_0x1bc836(0x1e0)],_0x5421ac[_0x1bc836(0x1e0)])?fs[_0x1bc836(0x1de)](_0x53ef57):_0x2a3d17=_0x22e489[_0x1bc836(0x1d6)]);let _0x52fe84,_0x268e03;process[_0x1bc836(0x1d7)]['BROWSERSTACK_USERNAME']&&(_0x5421ac[_0x1bc836(0x224)](_0x5421ac[_0x1bc836(0x211)],_0x5421ac[_0x1bc836(0x211)])?_0x4ae486=_0x538bb3['parse'](_0x3d4c8b[_0x1bc836(0x1f1)](_0x5015aa,_0x5421ac[_0x1bc836(0x1ef)])):_0x52fe84=process[_0x1bc836(0x1d7)][_0x1bc836(0x22d)]);process['env'][_0x1bc836(0x1c5)]&&(_0x5421ac[_0x1bc836(0x224)](_0x5421ac[_0x1bc836(0x1ce)],_0x5421ac[_0x1bc836(0x1ce)])?_0xe79f4c=_0xf7e064[_0x1bc836(0x1d7)][_0x1bc836(0x22d)]:_0x268e03=process[_0x1bc836(0x1d7)]['BROWSERSTACK_ACCESS_KEY']);_0x2bf9c5[_0x1bc836(0x1d6)]&&(_0x5421ac[_0x1bc836(0x224)](_0x5421ac[_0x1bc836(0x1ee)],_0x5421ac[_0x1bc836(0x1ee)])?_0x2ee7da=_0x30e63e['bstackAccesskey']:_0x52fe84=_0x2bf9c5[_0x1bc836(0x1d6)]);if(_0x2bf9c5['bstackAccesskey']){if(_0x5421ac[_0x1bc836(0x20f)](_0x5421ac[_0x1bc836(0x1e2)],_0x5421ac[_0x1bc836(0x1f0)])){const _0x3405e9={};_0x3405e9[_0x1bc836(0x215)]=_0x5421ac[_0x1bc836(0x1e6)],_0x3405e9[_0x1bc836(0x1fc)]=_0x5421ac[_0x1bc836(0x1fa)];const _0x2221b1={};_0x2221b1[_0x1bc836(0x215)]=_0x5421ac[_0x1bc836(0x1e8)],_0x2221b1[_0x1bc836(0x1fc)]=_0x5421ac[_0x1bc836(0x1fa)];const _0x239146={};return _0x239146[_0x1bc836(0x1f7)]=_0x3405e9,_0x239146[_0x1bc836(0x212)]=_0x2221b1,_0x3978ee[_0x1bc836(0x219)](_0x1549c6['init'])['epilogue'](_0x4b2934)[_0x1bc836(0x1cc)](_0x239146)[_0x1bc836(0x223)]()[_0x1bc836(0x1f2)]()['help'](_0x5421ac[_0x1bc836(0x1dc)])[_0x1bc836(0x1f8)];}else _0x268e03=_0x2bf9c5[_0x1bc836(0x1f5)];}if(_0x5421ac[_0x1bc836(0x226)](_0x52fe84,undefined)||_0x5421ac[_0x1bc836(0x20f)](_0x268e03,undefined)){if(_0x5421ac[_0x1bc836(0x1ca)](_0x5421ac[_0x1bc836(0x20e)],_0x5421ac['kbDjV'])){let _0xfc9fb0={};const _0x3d63e5=_0x5421ac[_0x1bc836(0x208)](_0x106529);_0x35da3f[_0x1bc836(0x1eb)](_0x3d63e5)&&(_0xfc9fb0=_0x48ce90[_0x1bc836(0x207)](_0x52e90e[_0x1bc836(0x1f1)](_0x3d63e5,_0x5421ac['pxSHt'])));const _0x4be633={};_0x4be633['username']=_0x48ea1f,_0x4be633[_0x1bc836(0x20b)]=_0x9ab744,_0xfc9fb0[_0x1bc836(0x1d2)]=_0x4be633,_0x1d8de4[_0x1bc836(0x216)](_0x3d63e5,_0x543111[_0x1bc836(0x1d1)](_0xfc9fb0)),_0x2ba4d1[_0x1bc836(0x21f)](0x0);}else{logger[_0x1bc836(0x20d)](_0x5421ac['fSxIf']);const [_0x539e71,_0x12307c]=await _0x5421ac[_0x1bc836(0x208)](inputBstackKeys);_0x52fe84=_0x539e71,_0x268e03=_0x12307c;}}let _0x23890e=![];const _0x313da7=_0x1bc836(0x1da)+_0x52fe84+':'+_0x268e03+'@'+BS_API_URL+_0x1bc836(0x227),_0x47a964={'method':_0x5421ac[_0x1bc836(0x21a)],'headers':_0x5421ac[_0x1bc836(0x222)](getAuthHeader,_0x52fe84,_0x268e03),'throwHttpErrors':![]},_0x1a9f25=await _0x5421ac[_0x1bc836(0x222)](got,_0x313da7,_0x47a964);_0x5421ac[_0x1bc836(0x1cf)](_0x1a9f25,null)&&_0x5421ac[_0x1bc836(0x1fe)](_0x1a9f25,undefined)&&_0x5421ac[_0x1bc836(0x22c)](_0x1a9f25[_0x1bc836(0x204)],0xc8)&&(_0x5421ac[_0x1bc836(0x224)](_0x5421ac['OqvFc'],_0x5421ac[_0x1bc836(0x21c)])?_0x19dfad=!![]:_0x23890e=!![]);if(_0x23890e){if(_0x5421ac['dDWyH'](_0x5421ac[_0x1bc836(0x213)],_0x5421ac[_0x1bc836(0x213)])){let _0x4a6985={};const _0x36c34f=_0x5421ac[_0x1bc836(0x225)](getCredentialsPath);fs[_0x1bc836(0x1eb)](_0x36c34f)&&(_0x5421ac[_0x1bc836(0x1fe)](_0x5421ac[_0x1bc836(0x20c)],_0x5421ac[_0x1bc836(0x20c)])?_0x58bd7f=_0x5f5db4[_0x1bc836(0x1d7)]['BROWSERSTACK_ACCESS_KEY']:_0x4a6985=JSON[_0x1bc836(0x207)](fs[_0x1bc836(0x1f1)](_0x36c34f,_0x5421ac[_0x1bc836(0x1ef)])));const _0xdd106d={};_0xdd106d[_0x1bc836(0x1f9)]=_0x52fe84,_0xdd106d[_0x1bc836(0x20b)]=_0x268e03,_0x4a6985[_0x1bc836(0x1d2)]=_0xdd106d,fs[_0x1bc836(0x216)](_0x36c34f,JSON['stringify'](_0x4a6985)),process[_0x1bc836(0x21f)](0x0);}else _0x1e4a0a[_0x1bc836(0x1de)](_0x4d4b42);}else logger[_0x1bc836(0x202)](_0x5421ac[_0x1bc836(0x210)]),await _0x5421ac[_0x1bc836(0x1ea)](sendInstrumentationEvent,_0x2bf9c5,_0x5421ac[_0x1bc836(0x1d5)],messageTypes[_0x1bc836(0x1e1)],_0x5421ac[_0x1bc836(0x214)],null,_0x2bf9c5),process['exit'](0x1);}catch(_0x18eb45){logger[_0x1bc836(0x202)](_0x18eb45[_0x1bc836(0x206)]),await _0x5421ac[_0x1bc836(0x1ea)](sendInstrumentationEvent,_0x2bf9c5,_0x5421ac[_0x1bc836(0x1d5)],messageTypes[_0x1bc836(0x1e1)],_0x5421ac[_0x1bc836(0x1d9)],_0x18eb45,_0x2bf9c5),process[_0x1bc836(0x21f)](0x1);}};
@@ -1 +1 @@
1
- function a13_0xc45d(){const _0x1f4243=['LaDnp','list','6379048dmgwpq','6043761pOhnsb','root','../config/constants','List\x20down\x20the\x20Grid\x20resources.','command','22071NLnXPS','5036418qJkeRX','62sWfBvW','recommendCommands','959329wyXHKt','builder','desc','list_commands','8odrWnW','help','2925559QrnziC','handler','commandDir','demandCommand','strict','usage','1081105uppKXP'];a13_0xc45d=function(){return _0x1f4243;};return a13_0xc45d();}const a13_0x1c2329=a13_0x5876;(function(_0x4cd2e4,_0x27b4ea){const _0x23b2f1=a13_0x5876,_0x35f0ec=_0x4cd2e4();while(!![]){try{const _0x492bd1=parseInt(_0x23b2f1(0x11a))/0x1+parseInt(_0x23b2f1(0x118))/0x2*(parseInt(_0x23b2f1(0x116))/0x3)+parseInt(_0x23b2f1(0x11e))/0x4*(-parseInt(_0x23b2f1(0x10d))/0x5)+parseInt(_0x23b2f1(0x117))/0x6+parseInt(_0x23b2f1(0x107))/0x7+-parseInt(_0x23b2f1(0x110))/0x8+-parseInt(_0x23b2f1(0x111))/0x9;if(_0x492bd1===_0x27b4ea)break;else _0x35f0ec['push'](_0x35f0ec['shift']());}catch(_0x3169cc){_0x35f0ec['push'](_0x35f0ec['shift']());}}}(a13_0xc45d,0x84a98));function a13_0x5876(_0x35e472,_0x9515ad){const _0xc45d22=a13_0xc45d();return a13_0x5876=function(_0x5876f6,_0x39016f){_0x5876f6=_0x5876f6-0x107;let _0x52d5f8=_0xc45d22[_0x5876f6];return _0x52d5f8;},a13_0x5876(_0x35e472,_0x9515ad);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x1c2329(0x113));exports[a13_0x1c2329(0x115)]='list',exports[a13_0x1c2329(0x11c)]=a13_0x1c2329(0x114),exports[a13_0x1c2329(0x11b)]=function(_0x7a1b00){const _0x117986=a13_0x1c2329,_0x11be67={};_0x11be67['QnjlA']=_0x117986(0x11d),_0x11be67[_0x117986(0x10e)]=_0x117986(0x11f);const _0xe7ca2d=_0x11be67;return _0x7a1b00[_0x117986(0x109)](_0xe7ca2d['QnjlA'])[_0x117986(0x10a)]()[_0x117986(0x10c)](HELP_HEADER_MESSAGE[_0x117986(0x10f)][_0x117986(0x112)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x117986(0x119)]()[_0x117986(0x10b)]()[_0x117986(0x11f)](_0xe7ca2d[_0x117986(0x10e)]);},exports[a13_0x1c2329(0x108)]=function(_0x40c2f2){};
1
+ const a13_0xb8a32d=a13_0x5a20;(function(_0x49ed19,_0x399d10){const _0x3018c2=a13_0x5a20,_0xc15d61=_0x49ed19();while(!![]){try{const _0x3dd8a3=-parseInt(_0x3018c2(0x13b))/0x1+parseInt(_0x3018c2(0x141))/0x2*(-parseInt(_0x3018c2(0x14a))/0x3)+parseInt(_0x3018c2(0x138))/0x4+parseInt(_0x3018c2(0x146))/0x5*(parseInt(_0x3018c2(0x13a))/0x6)+parseInt(_0x3018c2(0x14c))/0x7+parseInt(_0x3018c2(0x140))/0x8*(-parseInt(_0x3018c2(0x13f))/0x9)+-parseInt(_0x3018c2(0x14b))/0xa*(-parseInt(_0x3018c2(0x144))/0xb);if(_0x3dd8a3===_0x399d10)break;else _0xc15d61['push'](_0xc15d61['shift']());}catch(_0x5a0584){_0xc15d61['push'](_0xc15d61['shift']());}}}(a13_0x487c,0x5d428));function a13_0x487c(){const _0x3472fd=['65285rubVjn','recommendCommands','25JTqdLf','list','epilogue','command','69gwmQvp','370mKTidm','1862651XyyeIJ','tMtGU','list_commands','builder','2974044SlPPYJ','commandDir','162486dnfKUW','602346GQTiKc','root','FDlNn','demandCommand','135090tWRwAu','96lSDqkc','17404EojWZN','usage','help'];a13_0x487c=function(){return _0x3472fd;};return a13_0x487c();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a13_0x5a20(_0x2fbf2c,_0x3c507d){const _0x487c92=a13_0x487c();return a13_0x5a20=function(_0x5a2033,_0x6a56f4){_0x5a2033=_0x5a2033-0x138;let _0x380a4c=_0x487c92[_0x5a2033];return _0x380a4c;},a13_0x5a20(_0x2fbf2c,_0x3c507d);}exports[a13_0xb8a32d(0x149)]='list',exports['desc']='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0xb8a32d(0x14f)]=function(_0x304d25){const _0x1ac948=a13_0xb8a32d,_0x33850e={};_0x33850e[_0x1ac948(0x14d)]=_0x1ac948(0x14e),_0x33850e['FDlNn']=_0x1ac948(0x143);const _0x2c58f1=_0x33850e;return _0x304d25[_0x1ac948(0x139)](_0x2c58f1[_0x1ac948(0x14d)])[_0x1ac948(0x13e)]()[_0x1ac948(0x142)](HELP_HEADER_MESSAGE[_0x1ac948(0x147)][_0x1ac948(0x13c)])[_0x1ac948(0x148)](HELP_FOOTER_MESSAGE)[_0x1ac948(0x145)]()['strict']()[_0x1ac948(0x143)](_0x2c58f1[_0x1ac948(0x13d)]);},exports['handler']=function(_0x10fc2c){};
@@ -1 +1 @@
1
- const a14_0x3a9056=a14_0x50ff;(function(_0x1c1ecb,_0x6c5ba5){const _0x4a2273=a14_0x50ff,_0x43afbb=_0x1c1ecb();while(!![]){try{const _0x5ab66f=-parseInt(_0x4a2273(0x110))/0x1+parseInt(_0x4a2273(0xf8))/0x2*(-parseInt(_0x4a2273(0xc1))/0x3)+parseInt(_0x4a2273(0xfb))/0x4*(parseInt(_0x4a2273(0xc3))/0x5)+-parseInt(_0x4a2273(0x100))/0x6*(parseInt(_0x4a2273(0xc9))/0x7)+parseInt(_0x4a2273(0xc8))/0x8+parseInt(_0x4a2273(0x101))/0x9+-parseInt(_0x4a2273(0xdf))/0xa;if(_0x5ab66f===_0x6c5ba5)break;else _0x43afbb['push'](_0x43afbb['shift']());}catch(_0x3808fe){_0x43afbb['push'](_0x43afbb['shift']());}}}(a14_0xcc6b,0x7fbe1));function a14_0xcc6b(){const _0x2607f8=['help','log','parse','/packages/cli/get-grid-profiles','MAJqi','requestId','GQDRQ','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','HxfeC','readFileSync','ERROR','https://','exit','MobMW','table','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','../../config/constants','error','statusCode','init-not-called','12004270fkEpnh','region','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GUbEd','builder','unknown-error','ZviQj','push','iRjHP','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','stringify','existsSync','gridProfile','server-error','all-grid-profiles','type','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','username','aoNLI','Zyxgn','aUQIi','desc','AsXFf','BtDmU','unauthorised','1252uotVpO','INFO','OeDqm','716grodPq','hXDpz','concurrency','got','bstackAccesskey','6YflkMM','3633291kWeBtn','FvxDW','allGridProfiles','list-grid-profiles-called','uuid','../../utils/instrumentationUtils','Etkma','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','command','iPVRK','/packages/cli/get-all-grid-profiles','kDVxD','Failed\x20to\x20list\x20resources!\x20Error:\x20','HvuND','GMqGV','256150BoQeZA','Browserstack','grid-profile-name','argv','VsKfw','grid-profiles','NdRun','417dGnxGY','options','25815ehxxGB','name','usage','boolean','rNAPU','8038232oQiAkO','1860817zWprtV','password'];a14_0xcc6b=function(){return _0x2607f8;};return a14_0xcc6b();}const fs=require('fs'),got=require(a14_0x3a9056(0xfe)),{table}=require(a14_0x3a9056(0xd9)),{v4:uuidv4}=require(a14_0x3a9056(0x105)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x3a9056(0xdb)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x3a9056(0x106));function a14_0x50ff(_0x4f9dea,_0x5ced82){const _0xcc6b3b=a14_0xcc6b();return a14_0x50ff=function(_0x50ffa1,_0x39e8fe){_0x50ffa1=_0x50ffa1-0xbd;let _0x115136=_0xcc6b3b[_0x50ffa1];return _0x115136;},a14_0x50ff(_0x4f9dea,_0x5ced82);}exports[a14_0x3a9056(0x109)]=a14_0x3a9056(0xbf),exports[a14_0x3a9056(0xf4)]=a14_0x3a9056(0xef),exports[a14_0x3a9056(0xe3)]=function(_0x4fb286){const _0x42e4ef=a14_0x3a9056,_0x4bae16={};_0x4bae16[_0x42e4ef(0xf3)]=_0x42e4ef(0xe8),_0x4bae16['zvtfB']=_0x42e4ef(0xc6),_0x4bae16[_0x42e4ef(0xe5)]=_0x42e4ef(0xcb);const _0x335c2c=_0x4bae16,_0x2ecda7={};_0x2ecda7['description']=_0x335c2c[_0x42e4ef(0xf3)],_0x2ecda7[_0x42e4ef(0xee)]=_0x335c2c['zvtfB'];const _0x397cfe={};return _0x397cfe[_0x42e4ef(0xed)]=_0x2ecda7,_0x4fb286[_0x42e4ef(0xc5)](HELP_HEADER_MESSAGE['list'][_0x42e4ef(0xeb)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x42e4ef(0xc2)](_0x397cfe)[_0x42e4ef(0xcb)](_0x335c2c['ZviQj'])[_0x42e4ef(0xbd)];},exports['handler']=async function(_0x1ae436){const _0x84f357=a14_0x3a9056,_0x5b6b55={'GQDRQ':function(_0x4dc3bd){return _0x4dc3bd();},'GMqGV':function(_0x5b67fd){return _0x5b67fd();},'rNAPU':_0x84f357(0xe1),'Zyxgn':function(_0x164a7a,_0x388abf,_0x41c628,_0x47e059,_0x5f5065,_0x21edad,_0x5da45a){return _0x164a7a(_0x388abf,_0x41c628,_0x47e059,_0x5f5065,_0x21edad,_0x5da45a);},'MAJqi':_0x84f357(0x104),'NdRun':_0x84f357(0xde),'OeDqm':function(_0x48624e){return _0x48624e();},'GUbEd':'GET','aoNLI':function(_0x593b24,_0x3482ef,_0x1542fc){return _0x593b24(_0x3482ef,_0x1542fc);},'BtDmU':function(_0x50b29f,_0x2c7ebb,_0x1dd9bd,_0xa1b631,_0x3cc9a8,_0x4ac156,_0x1881e2){return _0x50b29f(_0x2c7ebb,_0x1dd9bd,_0xa1b631,_0x3cc9a8,_0x4ac156,_0x1881e2);},'AsXFf':function(_0x6cbc77,_0x1ac78c,_0x34e9ea){return _0x6cbc77(_0x1ac78c,_0x34e9ea);},'VsKfw':function(_0x200a9a,_0x9f3fc1){return _0x200a9a!==_0x9f3fc1;},'uYBDB':function(_0x366dd7,_0x27f0e3){return _0x366dd7===_0x27f0e3;},'EFYlN':_0x84f357(0xda),'HxfeC':_0x84f357(0x112),'EAVnb':'cloud-provider','FvxDW':_0x84f357(0xe0),'HvuND':_0x84f357(0xfd),'MobMW':function(_0x10c115,_0x54c0c3){return _0x10c115(_0x54c0c3);},'iPVRK':function(_0x4d5d88,_0x209207){return _0x4d5d88===_0x209207;},'xRRjq':_0x84f357(0x108),'Etkma':_0x84f357(0xf7),'iRjHP':function(_0x1baf28,_0x4e0e9f,_0x580c57,_0x426ae5,_0x1c10c8,_0x1c2a94,_0x101d34){return _0x1baf28(_0x4e0e9f,_0x580c57,_0x426ae5,_0x1c10c8,_0x1c2a94,_0x101d34);},'kDVxD':_0x84f357(0xec),'hXDpz':_0x84f357(0xe4)};try{global_registry[_0x84f357(0xd0)]=_0x5b6b55[_0x84f357(0xd1)](uuidv4);let _0x29664d=_0x84f357(0xd6)+AG_API_URL+_0x84f357(0xce);_0x1ae436[_0x84f357(0x103)]&&(_0x29664d='https://'+AG_API_URL+_0x84f357(0x10b));!fs[_0x84f357(0xea)](_0x5b6b55[_0x84f357(0x10f)](getCredentialsPath))&&(console[_0x84f357(0xdc)](_0x5b6b55[_0x84f357(0xc7)]),await _0x5b6b55[_0x84f357(0xf2)](sendInstrumentationEvent,_0x1ae436,_0x5b6b55[_0x84f357(0xcf)],messageTypes[_0x84f357(0xd5)],_0x5b6b55[_0x84f357(0xc0)],null,_0x1ae436),process[_0x84f357(0xd7)](0x1));const _0x503db3=JSON[_0x84f357(0xcd)](fs[_0x84f357(0xd4)](_0x5b6b55[_0x84f357(0xfa)](getCredentialsPath))),_0x190103={'method':_0x5b6b55[_0x84f357(0xe2)],'headers':_0x5b6b55[_0x84f357(0xf1)](getAuthHeader,_0x503db3[_0x84f357(0x111)][_0x84f357(0xf0)],_0x503db3['Browserstack'][_0x84f357(0xca)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x503db3[_0x84f357(0x111)][_0x84f357(0xf0)],global_registry[_0x84f357(0xff)]=_0x503db3[_0x84f357(0x111)][_0x84f357(0xca)],_0x5b6b55[_0x84f357(0xf6)](sendInstrumentationEvent,_0x1ae436,_0x5b6b55[_0x84f357(0xcf)],messageTypes[_0x84f357(0xf9)],null,null,_0x1ae436);const _0x324c2e=await _0x5b6b55[_0x84f357(0xf5)](got,_0x29664d,_0x190103);if(_0x5b6b55[_0x84f357(0xbe)](_0x324c2e,null)&&_0x5b6b55[_0x84f357(0xbe)](_0x324c2e,undefined)&&_0x5b6b55['uYBDB'](_0x324c2e['statusCode'],0xc8)){const _0x4d9e76=JSON[_0x84f357(0xcd)](_0x324c2e['body']);console['log'](_0x5b6b55['EFYlN']);const _0x194c06=[];_0x194c06[_0x84f357(0xe6)]([_0x5b6b55[_0x84f357(0xd3)],_0x5b6b55['EAVnb'],_0x5b6b55[_0x84f357(0x102)],_0x5b6b55[_0x84f357(0x10e)]]),_0x4d9e76['forEach'](_0x1e0499=>{const _0x313d34=_0x84f357;_0x194c06[_0x313d34(0xe6)]([_0x1e0499[_0x313d34(0xc4)],_0x1e0499['cloudProvider'],_0x1e0499[_0x313d34(0xe0)],_0x1e0499[_0x313d34(0xfd)]]);}),console[_0x84f357(0xcc)](_0x5b6b55[_0x84f357(0xd8)](table,_0x194c06)),process[_0x84f357(0xd7)](0x0);}_0x5b6b55[_0x84f357(0x10a)](_0x324c2e[_0x84f357(0xdd)],0x191)&&(console[_0x84f357(0xdc)](_0x5b6b55['xRRjq']),await _0x5b6b55[_0x84f357(0xf2)](sendInstrumentationEvent,_0x1ae436,_0x5b6b55[_0x84f357(0xcf)],messageTypes['ERROR'],_0x5b6b55[_0x84f357(0x107)],null,_0x1ae436),process[_0x84f357(0xd7)](0x1)),console[_0x84f357(0xdc)](_0x84f357(0xd2)+JSON[_0x84f357(0xe9)](_0x324c2e)),await _0x5b6b55[_0x84f357(0xe7)](sendInstrumentationEvent,_0x1ae436,_0x5b6b55['MAJqi'],messageTypes[_0x84f357(0xd5)],_0x5b6b55[_0x84f357(0x10c)],_0x324c2e,_0x1ae436),process[_0x84f357(0xd7)](0x1);}catch(_0x3ed63c){console['error'](_0x84f357(0x10d)+_0x3ed63c['stack']),await _0x5b6b55[_0x84f357(0xf6)](sendInstrumentationEvent,_0x1ae436,_0x5b6b55[_0x84f357(0xcf)],messageTypes[_0x84f357(0xd5)],_0x5b6b55[_0x84f357(0xfc)],_0x3ed63c,_0x1ae436),process[_0x84f357(0xd7)](0x1);}};
1
+ function a14_0x3152(_0x175611,_0x5c1463){const _0x4aa846=a14_0x4aa8();return a14_0x3152=function(_0x315253,_0x56f70b){_0x315253=_0x315253-0x1bf;let _0x2ab353=_0x4aa846[_0x315253];return _0x2ab353;},a14_0x3152(_0x175611,_0x5c1463);}const a14_0x419a8b=a14_0x3152;function a14_0x4aa8(){const _0x148644=['Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','INFO','epilogue','tEBjq','../../config/constants','exit','push','error','handler','list','baUBH','desc','log','password','dlqjH','allGridProfiles','1867410xtibvk','statusCode','usage','cloudProvider','499123FStlse','3ReHqIv','concurrency','unauthorised','6sYCSXK','FLOXr','GHAQm','username','cloud-provider','../../utils/instrumentationUtils','uuid','name','UhTEc','RePpD','IrfBH','6818462kFPoxb','HzTiE','577270wSDEFx','stack','UgFeD','2749385yIBzTY','parse','requestId','353296CtHAeM','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','help','ELfIj','/packages/cli/get-grid-profiles','description','ERROR','54kYrHEp','eZTan','Browserstack','FAJym','oMZuH','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','all-grid-profiles','rGKXA','oruNX','boolean','body','bstackUsername','type','6663456HqIkvs','https://','region','FFXtM','/packages/cli/get-all-grid-profiles','grid-profile-name','server-error','forEach','stringify','zBBiK','GET','TNGRO'];a14_0x4aa8=function(){return _0x148644;};return a14_0x4aa8();}(function(_0x4dfada,_0x7e9883){const _0x2691e0=a14_0x3152,_0x598b89=_0x4dfada();while(!![]){try{const _0x505df2=-parseInt(_0x2691e0(0x1fa))/0x1+parseInt(_0x2691e0(0x1c0))/0x2*(-parseInt(_0x2691e0(0x1fb))/0x3)+parseInt(_0x2691e0(0x1c6))/0x4+-parseInt(_0x2691e0(0x1c3))/0x5*(-parseInt(_0x2691e0(0x1fe))/0x6)+parseInt(_0x2691e0(0x209))/0x7+parseInt(_0x2691e0(0x1da))/0x8+-parseInt(_0x2691e0(0x1cd))/0x9*(parseInt(_0x2691e0(0x1f6))/0xa);if(_0x505df2===_0x7e9883)break;else _0x598b89['push'](_0x598b89['shift']());}catch(_0x4fa6be){_0x598b89['push'](_0x598b89['shift']());}}}(a14_0x4aa8,0x831a3));const fs=require('fs'),got=require('got'),{table}=require('table'),{v4:uuidv4}=require(a14_0x419a8b(0x204)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x419a8b(0x1ea)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x419a8b(0x203));exports['command']='grid-profiles',exports[a14_0x419a8b(0x1f1)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x10c17a){const _0x24daff=a14_0x419a8b,_0x42eeaf={};_0x42eeaf[_0x24daff(0x1d4)]=_0x24daff(0x1e6),_0x42eeaf[_0x24daff(0x1e3)]=_0x24daff(0x1d6),_0x42eeaf[_0x24daff(0x207)]=_0x24daff(0x1c8);const _0x43acda=_0x42eeaf,_0x31dd9e={};_0x31dd9e[_0x24daff(0x1cb)]=_0x43acda[_0x24daff(0x1d4)],_0x31dd9e[_0x24daff(0x1d9)]=_0x43acda['zBBiK'];const _0x5de65f={};return _0x5de65f[_0x24daff(0x1d3)]=_0x31dd9e,_0x10c17a[_0x24daff(0x1f8)](HELP_HEADER_MESSAGE[_0x24daff(0x1ef)]['gridProfile'])[_0x24daff(0x1e8)](HELP_FOOTER_MESSAGE)['options'](_0x5de65f)[_0x24daff(0x1c8)](_0x43acda[_0x24daff(0x207)])['argv'];},exports[a14_0x419a8b(0x1ee)]=async function(_0xcf60f7){const _0x4f7be5=a14_0x419a8b,_0x1c2034={'OEwQA':function(_0x2fda09){return _0x2fda09();},'ohZcM':_0x4f7be5(0x1c7),'ELfIj':function(_0x5f5cea,_0x17dbfe,_0xd2e67b,_0x521254,_0x53047f,_0x4eb37d,_0x5e4dee){return _0x5f5cea(_0x17dbfe,_0xd2e67b,_0x521254,_0x53047f,_0x4eb37d,_0x5e4dee);},'UhTEc':'list-grid-profiles-called','ycXqO':'init-not-called','oruNX':function(_0x2420b8){return _0x2420b8();},'FLOXr':_0x4f7be5(0x1e4),'TNGRO':function(_0x2a38e6,_0x2f1fe4,_0xa3031e){return _0x2a38e6(_0x2f1fe4,_0xa3031e);},'IrfBH':function(_0x4578f4,_0x3de53c,_0x2ec213){return _0x4578f4(_0x3de53c,_0x2ec213);},'tEBjq':function(_0x218781,_0x33f772){return _0x218781!==_0x33f772;},'FFXtM':function(_0x57cf08,_0x1fca81){return _0x57cf08!==_0x1fca81;},'oMZuH':function(_0x372bcd,_0x531045){return _0x372bcd===_0x531045;},'FAJym':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','Caogj':_0x4f7be5(0x1df),'eZTan':_0x4f7be5(0x202),'uVxCD':'region','Mnbjr':'concurrency','HzTiE':function(_0x28e06d,_0x320009){return _0x28e06d(_0x320009);},'GHAQm':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','CZkhm':_0x4f7be5(0x1fd),'UgFeD':function(_0x1e56fd,_0x462513,_0x1d7493,_0x4dfde9,_0x18d54d,_0x59f46a,_0x187a63){return _0x1e56fd(_0x462513,_0x1d7493,_0x4dfde9,_0x18d54d,_0x59f46a,_0x187a63);},'dlqjH':_0x4f7be5(0x1e0),'baUBH':'unknown-error'};try{global_registry[_0x4f7be5(0x1c5)]=_0x1c2034['OEwQA'](uuidv4);let _0x443271=_0x4f7be5(0x1db)+AG_API_URL+_0x4f7be5(0x1ca);_0xcf60f7[_0x4f7be5(0x1f5)]&&(_0x443271=_0x4f7be5(0x1db)+AG_API_URL+_0x4f7be5(0x1de));!fs['existsSync'](_0x1c2034['OEwQA'](getCredentialsPath))&&(console[_0x4f7be5(0x1ed)](_0x1c2034['ohZcM']),await _0x1c2034[_0x4f7be5(0x1c9)](sendInstrumentationEvent,_0xcf60f7,_0x1c2034['UhTEc'],messageTypes[_0x4f7be5(0x1cc)],_0x1c2034['ycXqO'],null,_0xcf60f7),process['exit'](0x1));const _0x2c054f=JSON[_0x4f7be5(0x1c4)](fs['readFileSync'](_0x1c2034[_0x4f7be5(0x1d5)](getCredentialsPath))),_0x1a47a8={'method':_0x1c2034[_0x4f7be5(0x1ff)],'headers':_0x1c2034[_0x4f7be5(0x1e5)](getAuthHeader,_0x2c054f[_0x4f7be5(0x1cf)][_0x4f7be5(0x201)],_0x2c054f[_0x4f7be5(0x1cf)][_0x4f7be5(0x1f3)]),'throwHttpErrors':![]};global_registry[_0x4f7be5(0x1d8)]=_0x2c054f[_0x4f7be5(0x1cf)]['username'],global_registry['bstackAccesskey']=_0x2c054f[_0x4f7be5(0x1cf)][_0x4f7be5(0x1f3)],_0x1c2034['ELfIj'](sendInstrumentationEvent,_0xcf60f7,_0x1c2034[_0x4f7be5(0x206)],messageTypes[_0x4f7be5(0x1e7)],null,null,_0xcf60f7);const _0x5e981c=await _0x1c2034[_0x4f7be5(0x208)](got,_0x443271,_0x1a47a8);if(_0x1c2034[_0x4f7be5(0x1e9)](_0x5e981c,null)&&_0x1c2034[_0x4f7be5(0x1dd)](_0x5e981c,undefined)&&_0x1c2034[_0x4f7be5(0x1d1)](_0x5e981c[_0x4f7be5(0x1f7)],0xc8)){const _0x3efad0=JSON[_0x4f7be5(0x1c4)](_0x5e981c[_0x4f7be5(0x1d7)]);console['log'](_0x1c2034[_0x4f7be5(0x1d0)]);const _0x388489=[];_0x388489[_0x4f7be5(0x1ec)]([_0x1c2034['Caogj'],_0x1c2034[_0x4f7be5(0x1ce)],_0x1c2034['uVxCD'],_0x1c2034['Mnbjr']]),_0x3efad0[_0x4f7be5(0x1e1)](_0x36858e=>{const _0xa9e0f4=_0x4f7be5;_0x388489[_0xa9e0f4(0x1ec)]([_0x36858e[_0xa9e0f4(0x205)],_0x36858e[_0xa9e0f4(0x1f9)],_0x36858e[_0xa9e0f4(0x1dc)],_0x36858e[_0xa9e0f4(0x1fc)]]);}),console[_0x4f7be5(0x1f2)](_0x1c2034[_0x4f7be5(0x1bf)](table,_0x388489)),process[_0x4f7be5(0x1eb)](0x0);}_0x1c2034[_0x4f7be5(0x1d1)](_0x5e981c[_0x4f7be5(0x1f7)],0x191)&&(console[_0x4f7be5(0x1ed)](_0x1c2034[_0x4f7be5(0x200)]),await _0x1c2034[_0x4f7be5(0x1c9)](sendInstrumentationEvent,_0xcf60f7,_0x1c2034[_0x4f7be5(0x206)],messageTypes[_0x4f7be5(0x1cc)],_0x1c2034['CZkhm'],null,_0xcf60f7),process['exit'](0x1)),console['error'](_0x4f7be5(0x1d2)+JSON[_0x4f7be5(0x1e2)](_0x5e981c)),await _0x1c2034[_0x4f7be5(0x1c2)](sendInstrumentationEvent,_0xcf60f7,_0x1c2034['UhTEc'],messageTypes[_0x4f7be5(0x1cc)],_0x1c2034[_0x4f7be5(0x1f4)],_0x5e981c,_0xcf60f7),process[_0x4f7be5(0x1eb)](0x1);}catch(_0x557337){console[_0x4f7be5(0x1ed)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x557337[_0x4f7be5(0x1c1)]),await _0x1c2034[_0x4f7be5(0x1c9)](sendInstrumentationEvent,_0xcf60f7,_0x1c2034[_0x4f7be5(0x206)],messageTypes[_0x4f7be5(0x1cc)],_0x1c2034[_0x4f7be5(0x1f0)],_0x557337,_0xcf60f7),process[_0x4f7be5(0x1eb)](0x1);}};