browserstack-node-sdk 1.36.3 → 1.36.4

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 (137) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  60. package/src/bin/jest/jest.setup.js +1 -1
  61. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  62. package/src/bin/jest/test-observability/helper.js +1 -1
  63. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  64. package/src/bin/jest/test-observability/test-details.js +1 -1
  65. package/src/bin/jest/test_before.setup.js +1 -1
  66. package/src/bin/launcher/launcher.js +1 -1
  67. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  68. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  69. package/src/bin/mocha/command.js +1 -1
  70. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  71. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  72. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  73. package/src/bin/mocha/test.setup.js +1 -1
  74. package/src/bin/nightwatch/command.js +1 -1
  75. package/src/bin/playwright/accessibility-helper.js +1 -1
  76. package/src/bin/playwright/command.js +1 -1
  77. package/src/bin/playwright/globalSetup.js +1 -1
  78. package/src/bin/playwright/mock-process.js +1 -1
  79. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  80. package/src/bin/playwright/patches.js +1 -1
  81. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  82. package/src/bin/playwright/reporter/reporter.js +1 -1
  83. package/src/bin/playwright/reporter/test-details.js +1 -1
  84. package/src/bin/playwright/sessionDetails.js +1 -1
  85. package/src/bin/runner.js +1 -1
  86. package/src/bin/setup.js +1 -1
  87. package/src/bin/test-runner/index.js +1 -1
  88. package/src/bin/test-runner/runTest.js +1 -1
  89. package/src/bin/test-runner/testWorker.js +1 -1
  90. package/src/bin/utils/constants.js +1 -1
  91. package/src/bin/utils/log4jsAppender.js +1 -1
  92. package/src/bin/utils/logPatcher.js +1 -1
  93. package/src/bin/utils/logReportingAPI.js +1 -1
  94. package/src/bin/vanilla-js/command.js +1 -1
  95. package/src/browserStackSdk.js +1 -1
  96. package/src/helpers/BrowserStackSetup.js +1 -1
  97. package/src/helpers/accessibility-automation/constants.js +1 -1
  98. package/src/helpers/accessibility-automation/helper.js +1 -1
  99. package/src/helpers/accessibility-automation/scripts.js +1 -1
  100. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  101. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  102. package/src/helpers/ats/constants.js +1 -1
  103. package/src/helpers/ats/helper.js +1 -1
  104. package/src/helpers/capsMapping.js +1 -1
  105. package/src/helpers/central-scanner/constants.js +1 -1
  106. package/src/helpers/central-scanner/helpers.js +1 -1
  107. package/src/helpers/globals.js +1 -1
  108. package/src/helpers/helper.js +1 -1
  109. package/src/helpers/logger.js +1 -1
  110. package/src/helpers/metadata.js +1 -1
  111. package/src/helpers/patchHelper.js +1 -1
  112. package/src/helpers/patchHelpers.js +1 -1
  113. package/src/helpers/percy/Percy.js +1 -1
  114. package/src/helpers/percy/PercyBinary.js +1 -1
  115. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  116. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  117. package/src/helpers/percy/PercySDK.js +1 -1
  118. package/src/helpers/percy/index.js +1 -1
  119. package/src/helpers/percy/utils.js +1 -1
  120. package/src/helpers/performance/constants.js +1 -1
  121. package/src/helpers/performance/performance-tester.js +1 -1
  122. package/src/helpers/processHelper.js +1 -1
  123. package/src/helpers/request-spy.js +1 -1
  124. package/src/helpers/setKeepAlive.js +1 -1
  125. package/src/helpers/test-observability/constants.js +1 -1
  126. package/src/helpers/test-observability/error-handler.js +1 -1
  127. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  128. package/src/helpers/test-observability/sessionHandler.js +1 -1
  129. package/src/helpers/test-observability/utils.js +1 -1
  130. package/src/helpers/testhub/constants.js +1 -1
  131. package/src/helpers/testhub/testhubHandler.js +1 -1
  132. package/src/helpers/testhub/utils.js +1 -1
  133. package/src/helpers/timeoutPromise.js +1 -1
  134. package/src/helpers/utilities.js +1 -1
  135. package/src/helpers/w3cMapping.js +1 -1
  136. package/src/hubAllocationMethods.js +1 -1
  137. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a9_0x5105(_0x491415,_0x237608){const _0x475ec0=a9_0x475e();return a9_0x5105=function(_0x510527,_0x24ccb7){_0x510527=_0x510527-0xbd;let _0x407d82=_0x475ec0[_0x510527];return _0x407d82;},a9_0x5105(_0x491415,_0x237608);}const a9_0x492444=a9_0x5105;(function(_0xec9a1a,_0x5d7388){const _0x5db623=a9_0x5105,_0x1d3b74=_0xec9a1a();while(!![]){try{const _0x5e214e=-parseInt(_0x5db623(0x111))/0x1+-parseInt(_0x5db623(0xfb))/0x2*(-parseInt(_0x5db623(0x1f8))/0x3)+parseInt(_0x5db623(0x1c1))/0x4+parseInt(_0x5db623(0x1ff))/0x5+-parseInt(_0x5db623(0x11a))/0x6*(parseInt(_0x5db623(0x23a))/0x7)+parseInt(_0x5db623(0x155))/0x8*(parseInt(_0x5db623(0xda))/0x9)+-parseInt(_0x5db623(0x240))/0xa*(parseInt(_0x5db623(0x1a1))/0xb);if(_0x5e214e===_0x5d7388)break;else _0x1d3b74['push'](_0x1d3b74['shift']());}catch(_0xb33a72){_0x1d3b74['push'](_0x1d3b74['shift']());}}}(a9_0x475e,0x23b41));const fs=require('fs'),ws=require('ws'),path=require(a9_0x492444(0x162)),yaml=require(a9_0x492444(0x197)),ReconnectingWebSocket=require(a9_0x492444(0x222)),got=require('got'),{v4:uuidv4}=require(a9_0x492444(0x18a)),webSocketUtils=require(a9_0x492444(0x160)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x492444(0x15b)),{getCloudProviderObject}=require(a9_0x492444(0x198)),{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_0x492444(0x243)),{createK8sClient}=require(a9_0x492444(0x1d4)),{sendInstrumentationEvent}=require(a9_0x492444(0x227));function a9_0x475e(){const _0x23d1c3=['OAFdh','clusterRegion','864879OQeNMn','LOG','CLI\x20run\x20started','ACHrq','LGuxj','SMaNe','xojbF','140645FmaBLF','XoatK','yVucK','hgEgk','tVcnO','ZKrBX','grid-spawning-failed','type','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','hub-ha','lPjtV','MVzOg','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.','kuddg','ugYAq','https','gridName','Create\x20a\x20new\x20Automation\x20grid.','kMiuT','mxhVm','private-ingress-nginx-controller','wZinR','UWnOT','Swetx','mNytw','QvRTC','vDzbj','XpPTF','cgJFV','DemrM','serviceAccountName','0|2|1|4|3','LnOtA','OQlgI','hubHaNameSpace','reconnecting-websocket','iivzC','rSnpk','statusCode','zLEtR','../../utils/instrumentationUtils','UfmUn','Added\x20Kafka\x20deployment.','dqmyK','atUbd','browserVersion','clusterName','Wrvyj','WcEPb','setupNewCluster','KrHXm','true','QSaxs','USFwO','Ooiqx','HkczA','qKFnG','JTIJx','zsnbm','13573eztgBY','NMcEp','EBltU','UlWaQ','gridProfiles','3|4|6|1|0|2|5|7|8','331780ROHGar','sendResourceDataToHST','vwBlY','../../utils/gridComponents','EJLTU','jAVqf','\x20are\x20not\x20present\x20in\x20VPC:\x20','prespawned-cluster-args-not-passed','bZQwi','YvBzs','username','cBukN','vvtwR','newCluster','RWfRC','UiHiW','template','minNodes','kafkaPassword','templates','OBMKb','hubHa','pre-spawned-invalid-vpc','TmSVM','uploaderVersion','Flag\x20to\x20enable\x20Hub\x20HA','iSzGw','Rozae','create-grid-checks-grid-already-exists','kCago','Skip\x20insecure\x20cert\x20verification.','nCuxJ','sqFYe','getResourceClientId','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','Adding\x20Kafka\x20deployment...','get-grid-url-null-response','wNeCR','tTTZx','CmozS','PqYze','enableHubHa','browserstack-secret.yaml','gMuLI','Found\x20VPC:\x20','DVwwd','qlGZc','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','vkSpd','vpc','POOYr','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','init-not-called','dMamO','clusterAutoUpgrade','AFveU','ZCNNE','iTGQH','RfjtW','create','builder','GET','handler','IdUjU','GrkVC','PSUNW','CpURt','UzfZc','jZzbR','SgZtR','NZgWC','TkoHL','2027313rRkcUM','lOkPO','cloudProvider','Adding\x20Websocket\x20listeners','s3bucket','Enabling\x20Hub\x20HA\x20flow','exit','region','xpoxs','ERROR','turboscale-managed-identity-','rsDjR','string','mhIBJ','loadAll','HdApo','\x20in\x20existing\x20cluster\x20\x27','xJatF','create-grid-checks-auth-failed','nCvml','Deleting\x20the\x20CloudFormation\x20Stacks','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','createOtherResources','bKxwk','tXGfE','pikXU','theMa','WpJCZ','private-grid','viSbw','includes','BeiML','help','2xjsbKC','GgZdH','pvSCF','Namespace\x20created','FFHbu','Hub\x20HA\x20setup\x20completed\x20successfully.','\x20using\x20\x27','\x27\x20grid\x20profile','GSREd','https://','Adding\x20Redis\x20deployment...','Eqbdl','NqdZY','metadata','Created\x20Hub\x20HA\x20resources','ydLzO','Cluster\x20created\x20successfully','subnets','qTkSI','isPrivateGrid','description','knCSl','4295zDYaxE','argv','length','JhplQ','ARVOz','ENrHi','hubVersion','KBIJE','jDiDG','834YHMxIa','xMPzX','deleteCluster','RVEWb','HTqBj','Subnets:\x20','isSubnetsValid','message','ewluu','Spawning\x20grid\x20on\x20to\x20the\x20cluster','alreadyPresent','desc','stack','cUUix','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','NKLbD','xqqud','QuFQk','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','http','wAjPI','NlzcG','connectionTimeout','BzdZq','createNamespace','bitnami-redis.yaml','OTrEo','RxQuj','BoYBw','bstackAccesskey','NXBgn','Lhzwg','yOQlP','CLI_RUN_STARTED','ffiRl','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','instanceType','lLFdg','readFileSync','OfMgH','password','YFtgF','Nkhkh','kafkaUploader','cluster-autoupgrade','privateGrid','ZINyV','spec','LvbQj','iSomj','ubMcJ','sCUHW','toLowerCase','JPnhs','bstackUsername','cloud-provider','concurrency','BeOUD','PVKMr','8LIorQA','XajtA','Grid\x20can\x20be\x20accessed\x20at:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','kFFJG','stringify','../../utils/utilityMethods','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','/packages/cli/create-grid-checks','qERQz','4|2|0|3|1','../../utils/webSocketUtils','gscnO','path','skip-tls-cert-verify','utf-8','NmIzp','join','FfAvx','premium-rwo','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','acYhv','HPADv','CLI\x20run\x20finished:\x20','get-grid-url-non-200','vVwAM','Cluster\x20','gridProfileId','ocueQ','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Mqzcu','EjsTS','FaDYf','body','setupHubHa','xXcvm','hfkHi','name','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','gBagN','redisPassword','grid','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Ikcwc','Xqfcv','VRBWA','EoHBk','gyYzw','PLfuh','xWAxr','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Namespace\x20Created','uuid','Added\x20Redis\x20deployment.','NGmHQ','arMvp','oEkfu','Cluster:\x20','non-aws-azure-cluster','qCDOc','oGJmI','yByCG','Spawning\x20the\x20grid\x20','readNamespacedService','qGSdA','js-yaml','../../cloudproviders/utils','cZTZk','mbMjd','UFsDf','wJfax','Found\x20Subnets:\x20','Creating\x20Hub\x20HA\x20resources','rmWPJ','maxNodes','99KLlnno','clusterAutoupgrade','info','azurefile-csi-premium','Usrzd','Mrtao','hqVGE','getGridHostname','FdHXu','0|3|2|1|4','tjOfj','sendEventToBackend','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','create-grid-checks-non-200','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','ZuACD','BzMcO','INFO','error','route53','setupAutoscaler','readFileAsync','ingress-nginx','cluster-name','YzvqZ','qQLFu','wuyfn','Spawning\x20Grid\x20on\x20the\x20Cluster','options','JUGfL','eZpyb','yFtri','707920rifRvm','replace','PDBDM','isClusterPresent','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','EedWo','RogHV','QFkVj','Ikpup','split','hubharesources','gridProfile','parse','Added\x20Turboscale\x20Uploader\x20deployment.','managedBy','grid-name','iOEAP','Browserstack','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','../../utils/createk8sClient','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','wFUPP','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','create-grid-checks-null-response','SWwfO','HpVud','jtbVj','addListeners','DtkuY','tguBE','ybvhN','Grid\x20spawned\x20on\x20the\x20cluster','mliyb','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','UkfET','default','create-grid-called','KssRb','dOqaI','createdBy','grid-profile','pxtrG','browserstack','labels','epilogue','user','Creating\x20namespace','hNxxt','WvNpl','vMBfV','MCXJe','MGcri'];a9_0x475e=function(){return _0x23d1c3;};return a9_0x475e();}exports['command']=a9_0x492444(0x17f),exports[a9_0x492444(0x125)]=a9_0x492444(0x210),exports[a9_0x492444(0xce)]=function(_0x6d67ad){const _0x5de7cc=a9_0x492444,_0x48bae4={};_0x48bae4[_0x5de7cc(0x257)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x48bae4['sCUHW']='string',_0x48bae4['iivzC']=_0x5de7cc(0x207),_0x48bae4[_0x5de7cc(0x183)]=_0x5de7cc(0x1ad),_0x48bae4['xojbF']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x48bae4['VKKqE']=_0x5de7cc(0x173),_0x48bae4[_0x5de7cc(0x22a)]='Create\x20a\x20private/public\x20grid.',_0x48bae4[_0x5de7cc(0x16b)]=_0x5de7cc(0x25e),_0x48bae4[_0x5de7cc(0xff)]='boolean',_0x48bae4[_0x5de7cc(0x1bf)]='Flag\x20to\x20enable\x20Hub\x20HA',_0x48bae4[_0x5de7cc(0x1c9)]='Flag\x20to\x20enable\x20cluster\x20auto-upgrade',_0x48bae4[_0x5de7cc(0x16c)]=_0x5de7cc(0xfa);const _0x271b21=_0x48bae4,_0xfac60d={};_0xfac60d[_0x5de7cc(0x10f)]=_0x271b21['TmSVM'],_0xfac60d[_0x5de7cc(0x206)]=_0x271b21[_0x5de7cc(0x14d)];const _0x3fac33={};_0x3fac33[_0x5de7cc(0x10f)]=_0x271b21[_0x5de7cc(0x223)],_0x3fac33[_0x5de7cc(0x206)]=_0x271b21[_0x5de7cc(0x14d)];const _0x59e4f4={};_0x59e4f4['description']=_0x271b21[_0x5de7cc(0x183)],_0x59e4f4['type']=_0x271b21[_0x5de7cc(0x14d)];const _0x47b171={};_0x47b171[_0x5de7cc(0x10f)]=_0x271b21[_0x5de7cc(0x1fe)],_0x47b171['type']=_0x271b21[_0x5de7cc(0x14d)];const _0x4cd1a1={};_0x4cd1a1[_0x5de7cc(0x10f)]=_0x271b21['VKKqE'],_0x4cd1a1[_0x5de7cc(0x206)]=_0x271b21[_0x5de7cc(0x14d)];const _0x364318={};_0x364318[_0x5de7cc(0x10f)]=_0x271b21['dqmyK'],_0x364318[_0x5de7cc(0x206)]=_0x271b21[_0x5de7cc(0x14d)];const _0x4fbdf8={};_0x4fbdf8[_0x5de7cc(0x10f)]=_0x271b21[_0x5de7cc(0x16b)],_0x4fbdf8['type']=_0x271b21['FFHbu'],_0x4fbdf8['default']=![];const _0x466f9d={};_0x466f9d[_0x5de7cc(0x10f)]=_0x271b21[_0x5de7cc(0x1bf)],_0x466f9d['type']=_0x271b21[_0x5de7cc(0xff)],_0x466f9d[_0x5de7cc(0x1e5)]=![];const _0x3937ae={};_0x3937ae[_0x5de7cc(0x10f)]=_0x271b21[_0x5de7cc(0x1c9)],_0x3937ae[_0x5de7cc(0x206)]=_0x271b21[_0x5de7cc(0xff)],_0x3937ae[_0x5de7cc(0x1e5)]=![];const _0x40352c={};return _0x40352c[_0x5de7cc(0x1d0)]=_0xfac60d,_0x40352c[_0x5de7cc(0x1ea)]=_0x3fac33,_0x40352c['cluster-name']=_0x59e4f4,_0x40352c[_0x5de7cc(0x151)]=_0x47b171,_0x40352c['region']=_0x4cd1a1,_0x40352c['private-grid']=_0x364318,_0x40352c[_0x5de7cc(0x163)]=_0x4fbdf8,_0x40352c[_0x5de7cc(0x208)]=_0x466f9d,_0x40352c['cluster-autoupgrade']=_0x3937ae,_0x6d67ad['usage'](HELP_HEADER_MESSAGE[_0x5de7cc(0xcd)])[_0x5de7cc(0x1ee)](HELP_FOOTER_MESSAGE)[_0x5de7cc(0x1bd)](_0x40352c)[_0x5de7cc(0xfa)](_0x271b21[_0x5de7cc(0x16c)])[_0x5de7cc(0x112)];},exports[a9_0x492444(0xd0)]=async function(_0x4a4ac4){const _0x5c5804=a9_0x492444,_0x1f4d49={'xpoxs':_0x5c5804(0x232),'ACHrq':_0x5c5804(0x1e5),'Xbabs':'1|4|0|2|3','fasZy':'UkRNzNYCBU','MGcri':_0x5c5804(0xdf),'OQlgI':'Epyd5nXbRK','tTTZx':_0x5c5804(0x1ec),'xJatF':'15|2|4|9|11|6|3|5|8|1|7|13|0|10|12|14','Xqfcv':function(_0x1349d8,_0x36acb4){return _0x1349d8!==_0x36acb4;},'xMPzX':function(_0x448935,_0x40fc0a,_0x1192e1,_0x2d12f7,_0x2e5830,_0x262dff,_0xf7776a,_0x54b651,_0x40f9f2,_0x356dcc,_0x52436a,_0xa74c19,_0xdfce13){return _0x448935(_0x40fc0a,_0x1192e1,_0x2d12f7,_0x2e5830,_0x262dff,_0xf7776a,_0x54b651,_0x40f9f2,_0x356dcc,_0x52436a,_0xa74c19,_0xdfce13);},'HTqBj':function(_0x3e80ca,_0x493b59){return _0x3e80ca(_0x493b59);},'MCXJe':_0x5c5804(0x12d),'ewluu':'warn','GrkVC':function(_0x1161ac,_0x4c84f7){return _0x1161ac===_0x4c84f7;},'wZinR':function(_0x252e47,_0x2768e4){return _0x252e47(_0x2768e4);},'rXdKA':_0x5c5804(0x168),'SMaNe':_0x5c5804(0x1b3),'BzdZq':_0x5c5804(0x1a4),'yByCG':_0x5c5804(0x23f),'Wrvyj':_0x5c5804(0x1fa),'SgZtR':_0x5c5804(0x12c),'qTkSI':_0x5c5804(0x20e),'PLfuh':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','ugYAq':_0x5c5804(0xe6),'kMiuT':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','EoHBk':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','rmWPJ':_0x5c5804(0x1d6),'Lhzwg':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','ybvhN':'Create\x20a\x20private/public\x20grid.','nCuxJ':_0x5c5804(0x25e),'NqdZY':'boolean','wNeCR':_0x5c5804(0x259),'POOYr':_0x5c5804(0x1c5),'wJfax':_0x5c5804(0xfa),'AavRk':function(_0x1b16f4){return _0x1b16f4();},'PDBDM':function(_0x54864c){return _0x54864c();},'USFwO':_0x5c5804(0xf2),'IdUjU':_0x5c5804(0xc0),'QFkVj':_0x5c5804(0x158),'ydLzO':function(_0x2f343e,_0x335a5b,_0x5b6f07,_0x4f5da6,_0x3b3a3f,_0x24235c,_0x408a32){return _0x2f343e(_0x335a5b,_0x5b6f07,_0x4f5da6,_0x3b3a3f,_0x24235c,_0x408a32);},'XpPTF':_0x5c5804(0x1e6),'JOvpd':_0x5c5804(0xc6),'JTIJx':function(_0x18bba1){return _0x18bba1();},'UfmUn':'<UsernamePlaceholder>','yVucK':'<PasswordPlaceholder>','DjeGL':_0x5c5804(0xdd),'FaDYf':_0x5c5804(0x1da),'rSSfW':_0x5c5804(0x25a),'HpVud':'LuhLW','LvbQj':_0x5c5804(0x13d),'sqFYe':function(_0x35b086,_0x39b1c9,_0x40eae7,_0x2a3e13,_0xc618c2,_0x12438e,_0x3b73e2,_0xd80a98){return _0x35b086(_0x39b1c9,_0x40eae7,_0x2a3e13,_0xc618c2,_0x12438e,_0x3b73e2,_0xd80a98);},'iSomj':_0x5c5804(0x247),'mbMjd':_0x5c5804(0x11d),'OBMKb':_0x5c5804(0xfc),'bKxwk':_0x5c5804(0x128),'kuddg':function(_0x517d5b,_0x296fcc,_0x4a7197,_0x4aafb6,_0x244f08,_0x3e0853,_0x468349,_0x24de35){return _0x517d5b(_0x296fcc,_0x4a7197,_0x4aafb6,_0x244f08,_0x3e0853,_0x468349,_0x24de35);},'tVcnO':_0x5c5804(0x190),'YFtgF':function(_0x48199a,_0xdee5){return _0x48199a===_0xdee5;},'rsDjR':function(_0x23e51f,_0x3663cb){return _0x23e51f===_0x3663cb;},'Eefdt':'IKAUH','EBltU':'GWsWa','iOEAP':_0x5c5804(0x14f),'uThji':_0x5c5804(0xbf),'RxQuj':function(_0x428365,_0x3cd49c){return _0x428365===_0x3cd49c;},'cNdyD':'ytssa','jtbVj':function(_0xdc7a44,_0x5c82fc){return _0xdc7a44!==_0x5c82fc;},'mQlpF':_0x5c5804(0x21f),'vOatx':'RwLSa','giamB':_0x5c5804(0xcf),'RogHV':function(_0xf899b4,_0x18d51e,_0x3b365e){return _0xf899b4(_0x18d51e,_0x3b365e);},'KrHXm':function(_0x473610,_0x1ce5b9){return _0x473610!==_0x1ce5b9;},'YvBzs':_0x5c5804(0x136),'cBukN':_0x5c5804(0x24f),'PqYze':_0x5c5804(0x1ab),'lLFdg':_0x5c5804(0xc5),'mliyb':_0x5c5804(0x1d9),'DemrM':function(_0x17e9a2,_0x20d933){return _0x17e9a2===_0x20d933;},'iJOwG':function(_0x4cb453,_0x335af9){return _0x4cb453!==_0x335af9;},'udGxq':_0x5c5804(0x1f6),'Vzfli':_0x5c5804(0x224),'MVzOg':_0x5c5804(0x1af),'vwBlY':_0x5c5804(0xec),'GWQon':_0x5c5804(0x18c),'gMuLI':_0x5c5804(0x156),'bZQwi':function(_0xe1ebc,_0x1bce17,_0x2e7221,_0x4e1df0,_0x46b332,_0x4416de,_0x3eb385,_0x3dec36){return _0xe1ebc(_0x1bce17,_0x2e7221,_0x4e1df0,_0x46b332,_0x4416de,_0x3eb385,_0x3dec36);},'qKFnG':_0x5c5804(0x1ae),'UlWaQ':'Grid\x20profile\x20fetched\x20from\x20backend','kFFJG':'nSQIA','iTGQH':'kbUKL','xXcvm':_0x5c5804(0x25c),'NKLbD':_0x5c5804(0x24e),'AFveU':_0x5c5804(0x115),'QSaxs':function(_0x54f393,_0x30790b){return _0x54f393===_0x30790b;},'gscnO':_0x5c5804(0xcc),'hgEgk':_0x5c5804(0x1aa),'yFtri':function(_0x118e30,_0x170f10){return _0x118e30===_0x170f10;},'ZINyV':function(_0x17fc2c,_0xeae726){return _0x17fc2c===_0xeae726;},'viSbw':_0x5c5804(0x134),'vvtwR':function(_0x38422a,_0x2162c8){return _0x38422a!==_0x2162c8;},'jAVqf':'KVOlZ','Mqzcu':'BbEZT','qCDOc':_0x5c5804(0x180),'HkczA':function(_0x230f66,_0x2ddf16,_0x6a869b,_0x1fc8c3,_0x373afe,_0x5cf7c9,_0xa31a31,_0x546f36){return _0x230f66(_0x2ddf16,_0x6a869b,_0x1fc8c3,_0x373afe,_0x5cf7c9,_0xa31a31,_0x546f36);},'lOkPO':'create-grid-checks-invalid-profile','vVwAM':function(_0x3c1d28,_0x169c8b){return _0x3c1d28===_0x169c8b;},'IBayW':function(_0x5e37fc,_0x16d1a6){return _0x5e37fc!==_0x16d1a6;},'NXBgn':_0x5c5804(0x114),'YzvqZ':function(_0xbf95e7,_0x3013cc){return _0xbf95e7===_0x3013cc;},'xqqud':_0x5c5804(0x1d7),'Mrtao':'dVEUh','hqVGE':function(_0x1c0b32,_0x1a25e5){return _0x1c0b32!==_0x1a25e5;},'knCSl':_0x5c5804(0x1a9),'Eqbdl':function(_0x5ce8f5,_0x4e4036){return _0x5ce8f5===_0x4e4036;},'dMamO':'SFVGm','WcEPb':function(_0x1a77f7,_0x2af8f2){return _0x1a77f7(_0x2af8f2);},'dOqaI':_0x5c5804(0xed),'OfMgH':_0x5c5804(0x235),'gyYzw':function(_0x4b63fa,_0x4e7bdf){return _0x4b63fa!==_0x4e7bdf;},'frERn':_0x5c5804(0x212),'OuUqX':_0x5c5804(0x165),'KssRb':function(_0x1e8c8d,_0x5e8553,_0x4315ed,_0x16bfb5,_0xa2e51b,_0x31b374,_0x1f5ca6,_0x152154,_0x5e2355,_0x453435,_0x4033d7,_0x3e9599,_0x487609){return _0x1e8c8d(_0x5e8553,_0x4315ed,_0x16bfb5,_0xa2e51b,_0x31b374,_0x1f5ca6,_0x152154,_0x5e2355,_0x453435,_0x4033d7,_0x3e9599,_0x487609);},'NlzcG':function(_0x1f72d2,_0x1161b9){return _0x1f72d2===_0x1161b9;},'WvNpl':'sbbDI','NEyKb':function(_0xbea401,_0x3b7faf){return _0xbea401!==_0x3b7faf;},'hfkHi':_0x5c5804(0x1f1),'Ikcwc':_0x5c5804(0x244),'oEkfu':'4|7|5|8|6|3|1|0|2','cbkij':function(_0x393c1a,_0x30d411,_0x16415c,_0x3286fd,_0x26c271,_0x8c0932,_0x24069e){return _0x393c1a(_0x30d411,_0x16415c,_0x3286fd,_0x26c271,_0x8c0932,_0x24069e);},'pvSCF':function(_0x2fe011,_0x237e4f){return _0x2fe011!==_0x237e4f;},'YNGhi':_0x5c5804(0x1de),'PSUNW':_0x5c5804(0x15e),'LGuxj':'SCafu','iPzdC':_0x5c5804(0xd8),'WpJCZ':_0x5c5804(0x1d8),'FfAvx':function(_0x55b367,_0x3469be){return _0x55b367!=_0x3469be;},'CmozS':function(_0x366321,_0x539e9f){return _0x366321!==_0x539e9f;},'kCago':function(_0x4da38b,_0x51c288){return _0x4da38b>_0x51c288;},'vMBfV':function(_0x2823e0,_0x3760b1){return _0x2823e0===_0x3760b1;},'TkoHL':_0x5c5804(0x188),'ocueQ':'pre-spawned-subnets-not-selected','Ulutq':_0x5c5804(0x17c),'Vhemi':_0x5c5804(0x256),'BeOUD':'pre-spawned-invalid-subnets','UWnOT':_0x5c5804(0x21e),'pikXU':_0x5c5804(0x20b),'UzfZc':_0x5c5804(0x10b),'jDiDG':function(_0x433274,_0x401236){return _0x433274===_0x401236;},'ubMcJ':_0x5c5804(0x19e),'XoatK':function(_0x233e30,_0x5578a1,_0x3d0b83){return _0x233e30(_0x5578a1,_0x3d0b83);},'wAjPI':'Adding\x20Secret\x20Mapping','tguBE':'../..','qGSdA':_0x5c5804(0x253),'mNytw':_0x5c5804(0x1cb),'UFsDf':_0x5c5804(0x26a),'yOQlP':_0x5c5804(0x164),'arMvp':function(_0x212831,_0x4bb347){return _0x212831(_0x4bb347);},'nkAkb':function(_0x1fd149,_0x1e6af6){return _0x1fd149(_0x1e6af6);},'vDzbj':'Added\x20Secret\x20Mapping','ZCNNE':'efs-csi','FwPlW':_0x5c5804(0x105),'wuyfn':_0x5c5804(0x133),'PEVEC':function(_0x306f81,_0x4c0fa6,_0x1b705d){return _0x306f81(_0x4c0fa6,_0x1b705d);},'EjsTS':_0x5c5804(0x18b),'qQLFu':_0x5c5804(0x263),'ZuACD':'bitnami-kafka.yaml','Nkhkh':_0x5c5804(0x229),'mhIBJ':'Adding\x20Turboscale\x20Uploader\x20deployment...','niaQN':'turboscale-uploader.yaml','BzMcO':_0x5c5804(0x1ce),'gBagN':_0x5c5804(0x109),'NMcEp':_0x5c5804(0x100),'cgJFV':_0x5c5804(0x15f),'QuFQk':function(_0x49f724,_0x5669d6,_0x5082a5,_0x1f77e9,_0x34f49b,_0x4f0e39,_0x179b09,_0xd19071){return _0x49f724(_0x5669d6,_0x5082a5,_0x1f77e9,_0x34f49b,_0x4f0e39,_0x179b09,_0xd19071);},'Rozae':'hub-ha-deployments-failed','BeiML':function(_0x52d5a5,_0x40c781){return _0x52d5a5(_0x40c781);},'xWAxr':_0x5c5804(0x1f0),'jZzbR':_0x5c5804(0x1d2),'cUUix':_0x5c5804(0x189),'ffiRl':_0x5c5804(0xfe),'pnDXT':_0x5c5804(0x123),'UkfET':_0x5c5804(0x1bc),'ENrHi':function(_0x28a51a,_0x5419d1){return _0x28a51a===_0x5419d1;},'ZKrBX':function(_0x4c1b40,_0x1d60c5,_0x441b48,_0x5ca1fe,_0x3cffb1,_0x3197b5,_0x427930,_0x40909a,_0x5d2d95,_0x5e8f87,_0x5734b8){return _0x4c1b40(_0x1d60c5,_0x441b48,_0x5ca1fe,_0x3cffb1,_0x3197b5,_0x427930,_0x40909a,_0x5d2d95,_0x5e8f87,_0x5734b8);},'EedWo':_0x5c5804(0x1e1),'JUGfL':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','CpURt':function(_0x48d3f7,_0x570609,_0x19b362,_0x36d7cd,_0x34694f){return _0x48d3f7(_0x570609,_0x19b362,_0x36d7cd,_0x34694f);},'pxtrG':function(_0x578ba2,_0x18a17b,_0x4952bd){return _0x578ba2(_0x18a17b,_0x4952bd);},'Usrzd':_0x5c5804(0x213),'GSREd':'ingress-nginx-controller','NLhXD':_0x5c5804(0x1b7),'zLEtR':function(_0x4c8dfb,_0x1c889a,_0x5de6c9){return _0x4c8dfb(_0x1c889a,_0x5de6c9);},'atUbd':function(_0x2b0725,_0x3b7ae0){return _0x2b0725===_0x3b7ae0;},'zsnbm':_0x5c5804(0xef),'KBIJE':function(_0x34e052,_0x527782,_0x40a5b9,_0x51e52e,_0x23b4aa,_0x2e48cb,_0x2aac08,_0x2574d0){return _0x34e052(_0x527782,_0x40a5b9,_0x51e52e,_0x23b4aa,_0x2e48cb,_0x2aac08,_0x2574d0);},'HdApo':_0x5c5804(0x264),'Swetx':function(_0x109d06,_0x60df81){return _0x109d06===_0x60df81;},'MUBCo':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','PVKMr':function(_0x15d323,_0x5853f3,_0x5969cf,_0x4ff7bb,_0x2d551e,_0x55b6c1,_0x339068,_0x34dfc0){return _0x15d323(_0x5853f3,_0x5969cf,_0x4ff7bb,_0x2d551e,_0x55b6c1,_0x339068,_0x34dfc0);},'vkSpd':'get-grid-url-auth-failed','theMa':function(_0xf5f3eb,_0x409b93){return _0xf5f3eb!==_0x409b93;},'oGJmI':function(_0x4f78e,_0x12ca40,_0x4d4509,_0x2bdb18,_0xe307b2,_0x54aaae,_0x1030d2,_0x2df7cf){return _0x4f78e(_0x12ca40,_0x4d4509,_0x2bdb18,_0xe307b2,_0x54aaae,_0x1030d2,_0x2df7cf);},'lPjtV':_0x5c5804(0x16e),'cZTZk':_0x5c5804(0xee),'HvmhZ':function(_0x8981cc,_0x181904,_0x2633df,_0xf9f47a,_0x5dc1a1,_0x2eb6e6){return _0x8981cc(_0x181904,_0x2633df,_0xf9f47a,_0x5dc1a1,_0x2eb6e6);},'QvRTC':_0x5c5804(0x205)};let _0x385bc8=![],_0x2b36ee=![],_0x5f48c3,_0x158f3c,_0x3516dd,_0x22dbc0,_0x47b1a7,_0x1dfb06,_0x268b1b,_0x5e5a8e,_0x292d8f,_0x2ae358,_0x75f723,_0x5a7a97,_0x56e74b,_0x2aea2d,_0x170945=0x1,_0x31ba88=0xe;try{global_registry['requestId']=_0x1f4d49['AavRk'](uuidv4),global_registry[_0x5c5804(0x10e)]=![];!fs['existsSync'](_0x1f4d49[_0x5c5804(0x1c3)](getCredentialsPath))&&(_0x1f4d49['GrkVC'](_0x1f4d49[_0x5c5804(0x234)],_0x1f4d49[_0x5c5804(0xd1)])?_0x4314cb=_0x80f277[_0x142b25[_0x5c5804(0x1cc)]]:(console[_0x5c5804(0x1b3)](_0x1f4d49[_0x5c5804(0x1c8)]),await _0x1f4d49[_0x5c5804(0x10a)](sendInstrumentationEvent,_0x4a4ac4,_0x1f4d49[_0x5c5804(0x21a)],messageTypes[_0x5c5804(0xe3)],_0x1f4d49['JOvpd'],null,_0x4a4ac4),process[_0x5c5804(0xe0)](0x1)));await _0x1f4d49[_0x5c5804(0x10a)](sendInstrumentationEvent,_0x4a4ac4,_0x1f4d49[_0x5c5804(0x21a)],messageTypes[_0x5c5804(0x1b2)],null,null,_0x4a4ac4);const _0x2df7de=JSON[_0x5c5804(0x1cd)](fs[_0x5c5804(0x140)](_0x1f4d49[_0x5c5804(0x238)](getCredentialsPath)));global_registry['bstackUsername']=_0x2df7de[_0x5c5804(0x1d2)][_0x5c5804(0x24a)],global_registry[_0x5c5804(0x137)]=_0x2df7de[_0x5c5804(0x1d2)]['password'];const _0x4d2396=WS_ENDPOINT['replace'](_0x1f4d49[_0x5c5804(0x228)],_0x2df7de['Browserstack'][_0x5c5804(0x24a)])[_0x5c5804(0x1c2)](_0x1f4d49[_0x5c5804(0x201)],_0x2df7de[_0x5c5804(0x1d2)][_0x5c5804(0x142)]),_0x54845e={};_0x54845e['WebSocket']=ws,_0x54845e[_0x5c5804(0x130)]=0x36ee80,_0x5a7a97=new ReconnectingWebSocket(_0x4d2396,[],_0x54845e),logger['debug'](_0x1f4d49['DjeGL']),webSocketUtils[_0x5c5804(0x1dd)](_0x5a7a97,_0x4a4ac4[_0x5c5804(0x1ef)],_0x4a4ac4[_0x5c5804(0x142)]);const _0x55e802=_0x4a4ac4[_0x5c5804(0x20f)]||DEFAULT_GRID_NAME;if(_0x4a4ac4['clusterName']||_0x4a4ac4['cloudProvider']||_0x4a4ac4[_0x5c5804(0xe1)]){if(_0x1f4d49['Xqfcv'](_0x1f4d49[_0x5c5804(0x176)],_0x1f4d49['rSSfW'])){!(_0x4a4ac4[_0x5c5804(0x22d)]&&_0x4a4ac4['cloudProvider']&&_0x4a4ac4['region'])&&(_0x1f4d49[_0x5c5804(0x182)](_0x1f4d49[_0x5c5804(0x1db)],_0x1f4d49[_0x5c5804(0x1db)])?(_0x570fd4[_0x5c5804(0xe1)]=_0x28d2bb,_0x3ef013[_0x5c5804(0xdc)]=_0x52a6e8,_0xdb5b1[_0x5c5804(0x24d)]=!![],_0x30a23d[_0x5c5804(0xc8)]=_0x29670f[_0x5c5804(0x1a2)]):(_0x5f48c3=_0x1f4d49[_0x5c5804(0x14a)],await _0x1f4d49[_0x5c5804(0x260)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49['XpPTF'],_0x1f4d49[_0x5c5804(0x14b)],_0x1f4d49[_0x5c5804(0x1fd)]),logger['error'](_0x5f48c3),process['exit'](0x1)));if(![AWS,AZURE,GCP][_0x5c5804(0xf8)](_0x4a4ac4['cloudProvider'][_0x5c5804(0x14e)]())){if(_0x1f4d49[_0x5c5804(0x182)](_0x1f4d49[_0x5c5804(0x19a)],_0x1f4d49[_0x5c5804(0x254)]))_0x5f48c3=_0x1f4d49[_0x5c5804(0xf1)],await _0x1f4d49[_0x5c5804(0x20c)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x203)],_0x1f4d49[_0x5c5804(0x1fd)]),logger['error'](_0x5f48c3),process[_0x5c5804(0xe0)](0x1);else throw new _0x55468c(_0x5c5804(0x170)+_0x4edd1f+_0x5c5804(0x262));}_0x4a4ac4[_0x5c5804(0x147)]&&_0x1f4d49[_0x5c5804(0x143)](_0x4a4ac4[_0x5c5804(0x147)][_0x5c5804(0x14e)](),_0x1f4d49[_0x5c5804(0xe2)])&&(_0x1f4d49[_0x5c5804(0xe5)](_0x1f4d49['Eefdt'],_0x1f4d49[_0x5c5804(0x23c)])?_0x597f2e[_0x5c5804(0x10e)]=!![]:global_registry[_0x5c5804(0x10e)]=!![]);global_registry[_0x5c5804(0xdc)]=_0x4a4ac4[_0x5c5804(0xdc)],global_registry[_0x5c5804(0x1f7)]=_0x4a4ac4['region'],global_registry[_0x5c5804(0x22d)]=_0x4a4ac4[_0x5c5804(0x22d)];const _0x158a0b=await _0x1f4d49['ydLzO'](getCloudProviderObject,_0x4a4ac4['cloudProvider'],_0x4a4ac4['clusterName'],_0x55e802,_0x5a7a97,webSocketUtils,_0x4a4ac4),_0x1c3749=await _0x158a0b[_0x5c5804(0x1c4)]();if(!_0x1c3749)_0x1f4d49[_0x5c5804(0x182)](_0x1f4d49[_0x5c5804(0x1d1)],_0x1f4d49['uThji'])?(logger['info'](_0x5c5804(0x18f)+_0x4a4ac4[_0x5c5804(0x22d)]+_0x5c5804(0x1d5)),_0x385bc8=![],_0x2b36ee=!![]):_0x32eaf7[_0x5c5804(0x10e)]=!![];else{if(_0x1f4d49[_0x5c5804(0x135)](_0x1f4d49['cNdyD'],_0x1f4d49['cNdyD']))_0x385bc8=!![];else{const _0x83e4a6={'azure.workload.identity/use':_0x1f4d49['xpoxs'],..._0x81c277[0x0]['spec'][_0x5c5804(0x250)][_0x5c5804(0x108)][_0x5c5804(0x1ed)]};_0x17fc72[0x0]['spec']['template'][_0x5c5804(0x108)][_0x5c5804(0x1ed)]=_0x83e4a6,_0x71a7d7[0x0][_0x5c5804(0x149)]['template'][_0x5c5804(0x149)][_0x5c5804(0x21d)]=_0x1f4d49[_0x5c5804(0x1fb)];}}_0x3516dd=_0x4a4ac4[_0x5c5804(0x22d)],_0x158f3c=_0x4a4ac4['cloudProvider']['toLowerCase'](),_0x22dbc0=_0x4a4ac4[_0x5c5804(0xe1)];}else{const _0x60e616=_0x1f4d49['Xbabs']['split']('|');let _0x19c2f5=0x0;while(!![]){switch(_0x60e616[_0x19c2f5++]){case'0':_0x3158ba[_0x5c5804(0x17e)]=_0x1f4d49['fasZy'];continue;case'1':_0x52ea7a[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x1f5)]);continue;case'2':_0x3f5bac[_0x5c5804(0x252)]=_0x1f4d49['OQlgI'];continue;case'3':_0x61b485[_0x5c5804(0x269)]=!![];continue;case'4':_0x13828f[_0x5c5804(0x221)]=_0x1f4d49['tTTZx'];continue;}break;}}}else _0x4a4ac4[_0x5c5804(0x1cc)]&&(_0x1f4d49[_0x5c5804(0x1dc)](_0x1f4d49['mQlpF'],_0x1f4d49['vOatx'])?global_registry[_0x5c5804(0x1cc)]=_0x4a4ac4[_0x5c5804(0x1cc)]:_0x225564['sendResourceDataToHST']());global_registry[_0x5c5804(0x20f)]=_0x4a4ac4['gridName'];const _0x1b6e58={'method':_0x1f4d49['giamB'],'headers':_0x1f4d49[_0x5c5804(0x1c7)](getAuthHeader,_0x2df7de[_0x5c5804(0x1d2)][_0x5c5804(0x24a)],_0x2df7de[_0x5c5804(0x1d2)]['password']),'throwHttpErrors':![]},_0x15815d={};_0x15815d[_0x5c5804(0x20f)]=_0x55e802;const _0x26a2af=_0x15815d;if(_0x2b36ee){if(_0x1f4d49[_0x5c5804(0x231)](_0x1f4d49[_0x5c5804(0x249)],_0x1f4d49[_0x5c5804(0x249)])){const _0x33c586=_0x1f4d49[_0x5c5804(0xeb)][_0x5c5804(0x1ca)]('|');let _0x5c839a=0x0;while(!![]){switch(_0x33c586[_0x5c839a++]){case'0':_0x3b11f1=_0x4f5e28[_0x5c5804(0x22c)];continue;case'1':_0x344b92=_0x503b94[_0x5c5804(0x251)];continue;case'2':_0x2b3447[_0x5c5804(0x1a3)](_0x367406);continue;case'3':_0x2f9a4f=null;continue;case'4':const _0x4bda28={};_0x4bda28['type']=_0x24682b[_0x5c5804(0x1f9)],_0x4bda28['message']=_0x3a0b2a,_0x2e39a1[_0x5c5804(0x1ac)](_0x590cb0,_0x4bda28);continue;case'5':_0x121929=null;continue;case'6':_0x41c83e=null;continue;case'7':_0x2b6cf9=_0x5d16b9['maxNodes'];continue;case'8':_0x31b61c=_0x45a90e['s3bucket'];continue;case'9':_0x2905e4=_0x5810ff['concurrency'];continue;case'10':_0x1f4d49[_0x5c5804(0x182)](_0x4c3984['privateGrid'],_0x3f384f)&&_0x23d4a5[_0x5c5804(0x147)]&&(_0x176a88['isPrivateGrid']=!![]);continue;case'11':_0x4e8dd0=_0xe4eb97[_0x5c5804(0x13e)];continue;case'12':_0x1f4d49[_0x5c5804(0x11b)](_0x5cd705,_0x37a96e,_0x51d1e7,_0x1ef58e,_0x67d3a8,_0x3514b6,_0x18af58,_0x190234,_0x501189,_0x1e643c,_0x587d0b,_0x428bc2,_0x43c54e[_0x5c5804(0x1a2)]);continue;case'13':_0x2b19e6=_0x1879a9[_0x5c5804(0x117)];continue;case'14':_0x1d16aa[_0x5c5804(0x269)]&&_0x1f4d49[_0x5c5804(0x11e)](_0x549a27,_0x368580[_0x5c5804(0x145)]);continue;case'15':_0x45b89f=_0x5c5804(0xc1)+_0x57e866;continue;}break;}}else _0x26a2af[_0x5c5804(0xe1)]=_0x22dbc0,_0x26a2af[_0x5c5804(0xdc)]=_0x158f3c,_0x26a2af[_0x5c5804(0x24d)]=!![],_0x26a2af[_0x5c5804(0xc8)]=_0x4a4ac4[_0x5c5804(0x1a2)];}_0x4a4ac4[_0x5c5804(0x1a2)]&&(_0x1f4d49[_0x5c5804(0x143)](_0x1f4d49['cBukN'],_0x1f4d49[_0x5c5804(0x24b)])?logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0xd7)]):_0x216b71=_0x1f4d49[_0x5c5804(0x1f4)]);const _0x2bf578=_0x5c5804(0x104)+AG_API_URL+_0x5c5804(0x15d),_0xb5b60c={'searchParams':_0x26a2af,'throwHttpErrors':![],..._0x1b6e58},_0x427ad6=_0xb5b60c,_0x4b8140=await _0x1f4d49['RogHV'](got,_0x2bf578,_0x427ad6);(_0x1f4d49[_0x5c5804(0x143)](_0x4b8140,null)||_0x1f4d49[_0x5c5804(0x135)](_0x4b8140,undefined))&&(_0x1f4d49[_0x5c5804(0x1dc)](_0x1f4d49[_0x5c5804(0x268)],_0x1f4d49[_0x5c5804(0x268)])?_0x56c363[_0x5c5804(0x1b3)](_0x5c5804(0x1d3)+_0x121273+'\x20\x0a'+_0x481c89[_0x5c5804(0x15a)](_0x4ab48b[_0x5c5804(0x126)])):(_0x5f48c3=_0x1f4d49[_0x5c5804(0x13f)],await _0x1f4d49[_0x5c5804(0x20c)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x1e2)],_0x1f4d49[_0x5c5804(0x1fd)]),logger['error'](_0x5f48c3),process[_0x5c5804(0xe0)](0x1)));if(_0x1f4d49[_0x5c5804(0x21c)](_0x4b8140[_0x5c5804(0x225)],0x191)){if(_0x1f4d49['iJOwG'](_0x1f4d49['udGxq'],_0x1f4d49['Vzfli']))_0x5f48c3=_0x1f4d49[_0x5c5804(0x20a)],await _0x1f4d49[_0x5c5804(0x20c)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes['ERROR'],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x242)],_0x1f4d49[_0x5c5804(0x1fd)]),logger[_0x5c5804(0x1b3)](_0x5f48c3),process['exit'](0x1);else{const _0x315c1c={};_0x315c1c[_0x5c5804(0x206)]=_0x3017da[_0x5c5804(0x1f9)],_0x315c1c[_0x5c5804(0x121)]=_0x5c5804(0x170)+_0x1371d9+_0x5c5804(0x169),_0x4d87d8[_0x5c5804(0x1ac)](_0x5e546a,_0x315c1c,_0x1f4d49[_0x5c5804(0x122)]),_0x1e2509[_0x5c5804(0x1a3)](_0x5c5804(0x170)+_0x5da1d2+_0x5c5804(0x169)),_0x2246f2=!![];if(_0x1f4d49[_0x5c5804(0xd2)](_0x2a6398,!![]))throw new _0x15f388(_0x5c5804(0x170)+_0x13fc4f+_0x5c5804(0x262));}}_0x1f4d49['Xqfcv'](_0x4b8140[_0x5c5804(0x225)],0xc8)&&(_0x1f4d49[_0x5c5804(0x21c)](_0x1f4d49['GWQon'],_0x1f4d49[_0x5c5804(0xbd)])?_0x4ae9e1[_0x5c5804(0x1a3)](_0x5c5804(0xbe)+_0x437de+'\x20'):(_0x5f48c3='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x5c5804(0x15a)](_0x4b8140['body']),await _0x1f4d49[_0x5c5804(0x248)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x237)],_0x1f4d49[_0x5c5804(0x1fd)]),logger['error'](_0x5f48c3),process['exit'](0x1)));const _0x4d9cd6=JSON[_0x5c5804(0x1cd)](_0x4b8140[_0x5c5804(0x177)]),_0x5e76ca={};_0x5e76ca[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x13b)],_0x5e76ca['message']=_0x1f4d49[_0x5c5804(0x22e)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x5e76ca);const _0x243ba4={};_0x243ba4[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x243ba4[_0x5c5804(0x121)]=_0x1f4d49[_0x5c5804(0x23d)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x243ba4);_0x4d9cd6[_0x5c5804(0x124)]&&(_0x1f4d49['RxQuj'](_0x1f4d49[_0x5c5804(0x159)],_0x1f4d49[_0x5c5804(0xcb)])?_0x1f4d49['wZinR'](_0x1d4bda,_0x417e20[_0x5c5804(0x258)]):(_0x5f48c3=_0x5c5804(0x1e3)+_0x55e802+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x1f4d49[_0x5c5804(0x20c)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes['ERROR'],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x179)],_0x1f4d49['SMaNe']),logger[_0x5c5804(0x1b3)](_0x5f48c3),process[_0x5c5804(0xe0)](0x1)));const _0x4e206a=_0x4d9cd6[_0x5c5804(0x23e)];let _0x1d469a=_0x4e206a[_0x4d9cd6['defaultGridProfile']];_0x4a4ac4[_0x5c5804(0x1cc)]&&(_0x1f4d49[_0x5c5804(0x143)](_0x1f4d49[_0x5c5804(0x129)],_0x1f4d49[_0x5c5804(0xc9)])?_0x55dd6a=_0x1f4d49['rXdKA']:_0x1d469a=_0x4e206a[_0x4a4ac4[_0x5c5804(0x1cc)]]);global_registry[_0x5c5804(0x269)]=![];if(_0x4a4ac4[_0x5c5804(0x255)]){if(_0x1f4d49[_0x5c5804(0x233)](_0x1f4d49['gscnO'],_0x1f4d49[_0x5c5804(0x161)])){const _0xd0e3bd=_0x1f4d49[_0x5c5804(0x202)][_0x5c5804(0x1ca)]('|');let _0x53ada1=0x0;while(!![]){switch(_0xd0e3bd[_0x53ada1++]){case'0':logger['info'](_0x1f4d49[_0x5c5804(0x1f5)]);continue;case'1':global_registry[_0x5c5804(0x252)]=_0x1f4d49[_0x5c5804(0x220)];continue;case'2':global_registry['redisPassword']=_0x1f4d49['fasZy'];continue;case'3':global_registry['hubHaNameSpace']=_0x1f4d49[_0x5c5804(0x266)];continue;case'4':global_registry[_0x5c5804(0x269)]=!![];continue;}break;}}else _0x1f4d49[_0x5c5804(0x214)](_0x5f935c,_0x5d7354['kafkaUploader']);}if(_0x1f4d49[_0x5c5804(0x1c0)](_0x385bc8,![])&&_0x1f4d49[_0x5c5804(0x148)](_0x2b36ee,![])){if(_0x1f4d49[_0x5c5804(0x143)](_0x1f4d49[_0x5c5804(0xf7)],_0x1f4d49[_0x5c5804(0xf7)])){_0x1f4d49[_0x5c5804(0x233)](_0x1d469a,undefined)&&(_0x1f4d49[_0x5c5804(0x24c)](_0x1f4d49[_0x5c5804(0x245)],_0x1f4d49[_0x5c5804(0x174)])?(_0x5f48c3=_0x1f4d49[_0x5c5804(0x191)],await _0x1f4d49[_0x5c5804(0x236)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes['ERROR'],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0xdb)],_0x1f4d49['SMaNe']),logger[_0x5c5804(0x1b3)](_0x5f48c3),process[_0x5c5804(0xe0)](0x1)):_0x5a2fc1[_0x5c5804(0x1cc)]=_0x272ebf[_0x5c5804(0x1cc)]);global_registry[_0x5c5804(0x171)]=_0x1d469a['id'],_0x5f48c3='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x55e802+_0x5c5804(0x101)+_0x1d469a[_0x5c5804(0x17b)]+_0x5c5804(0x102),logger[_0x5c5804(0x1a3)](_0x5f48c3);const _0x1aa625={};_0x1aa625[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x1aa625[_0x5c5804(0x121)]=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x1aa625),_0x158f3c=_0x1d469a['cloudProvider'],_0x3516dd=_0x1d469a[_0x5c5804(0x22d)],_0x22dbc0=_0x1d469a['region'],_0x47b1a7=_0x1d469a[_0x5c5804(0x152)],_0x1dfb06=_0x1d469a[_0x5c5804(0x13e)],_0x268b1b=_0x1d469a[_0x5c5804(0xc3)],_0x5e5a8e=_0x1d469a['securityGroups'],_0x292d8f=_0x1d469a[_0x5c5804(0x10c)],_0x2ae358=_0x1d469a[_0x5c5804(0xde)],_0x170945=_0x1d469a[_0x5c5804(0x251)],_0x31ba88=_0x1d469a[_0x5c5804(0x1a0)],_0x56e74b=_0x4d9cd6[_0x5c5804(0x117)],_0x2aea2d=_0x4d9cd6['browserVersion'];if(_0x268b1b&&_0x1f4d49['vVwAM'](_0x268b1b['length'],0x0)){if(_0x1f4d49['IBayW'](_0x1f4d49[_0x5c5804(0x138)],_0x1f4d49[_0x5c5804(0x138)])){const _0x2898b9={};_0x2898b9[_0x5c5804(0x206)]=_0x28d008['LOG'],_0x2898b9[_0x5c5804(0x121)]=_0x3de4b3,_0x11fc2d[_0x5c5804(0x1ac)](_0x28a139,_0x2898b9,_0x1f4d49[_0x5c5804(0x1fd)],!![]);}else _0x268b1b=null;}_0x292d8f&&_0x1f4d49[_0x5c5804(0x1b9)](_0x292d8f[_0x5c5804(0x113)],0x0)&&(_0x1f4d49[_0x5c5804(0xd2)](_0x1f4d49[_0x5c5804(0x12a)],_0x1f4d49[_0x5c5804(0x1a6)])?_0x52ec12[_0x5c5804(0x1a3)]('Found\x20Subnets:\x20'+_0x4c872b[_0x5c5804(0x15a)](_0x20c4bd)+'\x20'):_0x292d8f=null),_0x1f4d49[_0x5c5804(0x1a7)](_0x1d469a[_0x5c5804(0x147)],undefined)&&_0x1d469a[_0x5c5804(0x147)]&&(_0x1f4d49['ZINyV'](_0x1f4d49['knCSl'],_0x1f4d49[_0x5c5804(0x110)])?global_registry['isPrivateGrid']=!![]:_0x4415f7=_0x1f4d49[_0x5c5804(0x131)]),_0x1f4d49[_0x5c5804(0x11b)](updateGlobalRegistryWithConfig,_0x158f3c,_0x3516dd,_0x22dbc0,_0x47b1a7,_0x1dfb06,_0x2ae358,_0x1d469a,_0x56e74b,_0x2aea2d,_0x170945,_0x31ba88,_0x4a4ac4[_0x5c5804(0x1a2)]),global_registry['enableHubHa']&&(_0x1f4d49[_0x5c5804(0x106)](_0x1f4d49[_0x5c5804(0xc7)],_0x1f4d49['dMamO'])?_0x1f4d49['WcEPb'](updateGlobalRegistryForHubHa,_0x4d9cd6[_0x5c5804(0x258)]):_0x1a64d4=null);}else _0x5d61f4[_0x5c5804(0x1a3)](_0x5c5804(0x18f)+_0x5d78ed['clusterName']+_0x5c5804(0x1d5)),_0x2278b2=![],_0x591ff1=!![];}else{if(_0x1f4d49['GrkVC'](_0x2b36ee,!![])){if(_0x1f4d49[_0x5c5804(0x24c)](_0x1f4d49[_0x5c5804(0x1e8)],_0x1f4d49[_0x5c5804(0x141)])){_0x5f48c3=_0x5c5804(0xc1)+_0x55e802,logger[_0x5c5804(0x1a3)](_0x5f48c3);const _0x4820fd={};_0x4820fd[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x4820fd[_0x5c5804(0x121)]=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x4820fd),_0x47b1a7=_0x1d469a[_0x5c5804(0x152)],_0x1dfb06=_0x1d469a[_0x5c5804(0x13e)],_0x268b1b=null,_0x5e5a8e=null,_0x292d8f=null,_0x2ae358=_0x1d469a[_0x5c5804(0xde)],_0x170945=_0x1d469a[_0x5c5804(0x251)],_0x31ba88=_0x1d469a['maxNodes'],_0x56e74b=_0x4d9cd6['hubVersion'],_0x2aea2d=_0x4d9cd6[_0x5c5804(0x22c)];_0x1f4d49[_0x5c5804(0x185)](_0x1d469a[_0x5c5804(0x147)],undefined)&&_0x1d469a['privateGrid']&&(_0x1f4d49[_0x5c5804(0x16f)](_0x1f4d49['frERn'],_0x1f4d49['OuUqX'])?_0x26ba26=!![]:global_registry['isPrivateGrid']=!![]);_0x1f4d49[_0x5c5804(0x1e7)](updateGlobalRegistryWithConfig,_0x158f3c,_0x3516dd,_0x22dbc0,_0x47b1a7,_0x1dfb06,_0x2ae358,_0x1d469a,_0x56e74b,_0x2aea2d,_0x170945,_0x31ba88,_0x4a4ac4['clusterAutoupgrade']);if(global_registry[_0x5c5804(0x269)]){if(_0x1f4d49['NlzcG'](_0x1f4d49[_0x5c5804(0x1f2)],_0x1f4d49['WvNpl']))_0x1f4d49['WcEPb'](updateGlobalRegistryForHubHa,_0x4d9cd6['kafkaUploader']);else{const _0x391ad0=_0x1f4d49[_0x5c5804(0x193)]['split']('|');let _0xb5ee42=0x0;while(!![]){switch(_0x391ad0[_0xb5ee42++]){case'0':_0x564b1b[_0x5c5804(0xdc)]=_0x420eed;continue;case'1':const _0x5735c3={};_0x5735c3['type']=_0xdbf9e3[_0x5c5804(0x1f9)],_0x5735c3['message']=_0x1edbc9,_0x185607[_0x5c5804(0x1ac)](_0x519176,_0x5735c3);continue;case'2':_0x53a35b[_0x5c5804(0x1f7)]=_0x59282a;continue;case'3':const _0x429229={};_0x429229[_0x5c5804(0x206)]=_0x37d2d6[_0x5c5804(0x13b)],_0x429229[_0x5c5804(0x121)]=_0x1f4d49['Wrvyj'],_0x2044fb[_0x5c5804(0x1ac)](_0x5a98a4,_0x429229);continue;case'4':_0x209224=_0x5c5804(0x194)+_0x45d345+_0x5c5804(0xea)+_0x392d68+'\x27';continue;case'5':_0x13254[_0x5c5804(0x22d)]=_0x8cf0a2;continue;case'6':_0x3cd03a[_0x5c5804(0x1a3)](_0x21a64c);continue;case'7':_0x25ce85[_0x5c5804(0x117)]=_0x4e4f18[_0x5c5804(0x117)];continue;case'8':_0x40aedd[_0x5c5804(0x22c)]=_0x3f12c1[_0x5c5804(0x22c)];continue;}break;}}}}else _0x2d7b69=null;}else{if(_0x1f4d49['NEyKb'](_0x1f4d49[_0x5c5804(0x17a)],_0x1f4d49[_0x5c5804(0x181)])){const _0x2a3b43=_0x1f4d49[_0x5c5804(0x18e)][_0x5c5804(0x1ca)]('|');let _0x52d6a9=0x0;while(!![]){switch(_0x2a3b43[_0x52d6a9++]){case'0':global_registry['hubVersion']=_0x4d9cd6[_0x5c5804(0x117)];continue;case'1':global_registry[_0x5c5804(0x22d)]=_0x3516dd;continue;case'2':global_registry[_0x5c5804(0x22c)]=_0x4d9cd6[_0x5c5804(0x22c)];continue;case'3':global_registry[_0x5c5804(0x1f7)]=_0x22dbc0;continue;case'4':const _0x2e87f1={};_0x2e87f1[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x13b)],_0x2e87f1[_0x5c5804(0x121)]=_0x1f4d49[_0x5c5804(0x22e)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x2e87f1);continue;case'5':logger['info'](_0x5f48c3);continue;case'6':global_registry[_0x5c5804(0xdc)]=_0x158f3c;continue;case'7':_0x5f48c3=_0x5c5804(0x194)+_0x55e802+'\x20in\x20existing\x20cluster\x20\x27'+_0x3516dd+'\x27';continue;case'8':const _0x615778={};_0x615778[_0x5c5804(0x206)]=WS_EVENTS['LOG'],_0x615778[_0x5c5804(0x121)]=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x615778);continue;}break;}}else _0x584906[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0xd7)]);}}const _0x7d93d=await _0x1f4d49['cbkij'](getCloudProviderObject,_0x158f3c,_0x3516dd,_0x55e802,_0x5a7a97,webSocketUtils,_0x4a4ac4);_0x1f4d49[_0x5c5804(0xfd)](_0x158f3c,AZURE)&&(_0x1f4d49[_0x5c5804(0x1b9)](_0x1f4d49['YNGhi'],_0x1f4d49['YNGhi'])?_0x7d93d[_0x5c5804(0x241)]():(_0x11b16b=_0x254fdd[_0x5c5804(0x1b4)],_0x226ebc=_0x1f4d49[_0x5c5804(0x10d)]));let _0x2a5c04;if(_0x1f4d49[_0x5c5804(0x16f)](_0x385bc8,![])){_0x5f48c3='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x22dbc0+').';const _0x3b9a7b={};_0x3b9a7b[_0x5c5804(0x206)]=WS_EVENTS['LOG'],_0x3b9a7b[_0x5c5804(0x121)]=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x3b9a7b),logger[_0x5c5804(0x1a3)](_0x5f48c3);const _0x38b619=await _0x7d93d[_0x5c5804(0x1c4)]();if(_0x38b619){if(_0x1f4d49[_0x5c5804(0x143)](_0x1f4d49[_0x5c5804(0xd3)],_0x1f4d49[_0x5c5804(0xd3)])){const _0x3a03c4={};_0x3a03c4[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x3a03c4[_0x5c5804(0x121)]=_0x5c5804(0x170)+_0x3516dd+_0x5c5804(0x169),webSocketUtils['sendEventToBackend'](_0x5a7a97,_0x3a03c4,_0x1f4d49[_0x5c5804(0x122)]),logger[_0x5c5804(0x1a3)](_0x5c5804(0x170)+_0x3516dd+_0x5c5804(0x169)),_0x385bc8=!![];if(_0x1f4d49['YFtgF'](_0x2b36ee,!![])){if(_0x1f4d49[_0x5c5804(0x24c)](_0x1f4d49[_0x5c5804(0x1fc)],_0x1f4d49['iPzdC']))throw new Error(_0x5c5804(0x170)+_0x3516dd+_0x5c5804(0x262));else _0x47eb92[_0x5c5804(0x10e)]=!![];}}else{const _0x4e8dcf={};_0x4e8dcf[_0x5c5804(0x10f)]=_0x1f4d49[_0x5c5804(0x186)],_0x4e8dcf[_0x5c5804(0x206)]=_0x1f4d49[_0x5c5804(0x20d)];const _0x571fb8={};_0x571fb8[_0x5c5804(0x10f)]=_0x1f4d49[_0x5c5804(0x211)],_0x571fb8[_0x5c5804(0x206)]=_0x1f4d49['ugYAq'];const _0x3f338b={};_0x3f338b[_0x5c5804(0x10f)]=_0x1f4d49[_0x5c5804(0x184)],_0x3f338b[_0x5c5804(0x206)]=_0x1f4d49[_0x5c5804(0x20d)];const _0x55b833={};_0x55b833['description']=_0x1f4d49[_0x5c5804(0x19f)],_0x55b833['type']=_0x1f4d49[_0x5c5804(0x20d)];const _0x52ade5={};_0x52ade5['description']=_0x1f4d49[_0x5c5804(0x139)],_0x52ade5[_0x5c5804(0x206)]=_0x1f4d49['ugYAq'];const _0x2b6b2f={};_0x2b6b2f[_0x5c5804(0x10f)]=_0x1f4d49[_0x5c5804(0x1e0)],_0x2b6b2f['type']=_0x1f4d49['ugYAq'];const _0x281c42={};_0x281c42['description']=_0x1f4d49[_0x5c5804(0x25f)],_0x281c42[_0x5c5804(0x206)]=_0x1f4d49[_0x5c5804(0x107)],_0x281c42[_0x5c5804(0x1e5)]=![];const _0x1baf8d={};_0x1baf8d['description']=_0x1f4d49[_0x5c5804(0x265)],_0x1baf8d[_0x5c5804(0x206)]=_0x1f4d49[_0x5c5804(0x107)],_0x1baf8d['default']=![];const _0x464a6f={};_0x464a6f['description']=_0x1f4d49[_0x5c5804(0xc4)],_0x464a6f[_0x5c5804(0x206)]=_0x1f4d49['NqdZY'],_0x464a6f[_0x5c5804(0x1e5)]=![];const _0x279420={};return _0x279420[_0x5c5804(0x1d0)]=_0x4e8dcf,_0x279420[_0x5c5804(0x1ea)]=_0x571fb8,_0x279420[_0x5c5804(0x1b8)]=_0x3f338b,_0x279420[_0x5c5804(0x151)]=_0x55b833,_0x279420[_0x5c5804(0xe1)]=_0x52ade5,_0x279420[_0x5c5804(0xf6)]=_0x2b6b2f,_0x279420[_0x5c5804(0x163)]=_0x281c42,_0x279420[_0x5c5804(0x208)]=_0x1baf8d,_0x279420[_0x5c5804(0x146)]=_0x464a6f,_0x36f478['usage'](_0x52bf38[_0x5c5804(0xcd)])[_0x5c5804(0x1ee)](_0x5747b1)[_0x5c5804(0x1bd)](_0x279420)['help'](_0x1f4d49[_0x5c5804(0x19c)])[_0x5c5804(0x112)];}}else{const _0x3c2d48={};_0x3c2d48[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x3c2d48[_0x5c5804(0x121)]=_0x1f4d49[_0x5c5804(0xf5)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x3c2d48),logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0xf5)]);const _0x32e156=_0x1f4d49[_0x5c5804(0x167)](_0x268b1b,null)&&_0x1f4d49[_0x5c5804(0x1dc)](_0x268b1b,undefined),_0x1b60ba=_0x1f4d49[_0x5c5804(0x167)](_0x292d8f,null)&&_0x1f4d49[_0x5c5804(0x267)](_0x292d8f,undefined)&&_0x1f4d49[_0x5c5804(0x25d)](_0x292d8f['length'],0x0);if(_0x32e156){_0x1f4d49[_0x5c5804(0x1f3)](_0x1b60ba,![])&&(_0x5f48c3=_0x1f4d49[_0x5c5804(0xd9)],await _0x1f4d49[_0x5c5804(0x20c)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x172)],_0x1f4d49[_0x5c5804(0x1fd)]),logger[_0x5c5804(0x1b3)](_0x5f48c3),process['exit'](0x1));const _0x9aa34b=await _0x7d93d['isVPCPresent'](_0x268b1b);_0x1f4d49[_0x5c5804(0x143)](_0x9aa34b,![])?(_0x5f48c3=_0x1f4d49['Ulutq'],await _0x1f4d49[_0x5c5804(0x20c)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49['Vhemi'],_0x1f4d49[_0x5c5804(0x1fd)]),logger[_0x5c5804(0x1b3)](_0x5f48c3),process[_0x5c5804(0xe0)](0x1)):logger[_0x5c5804(0x1a3)](_0x5c5804(0xbe)+_0x268b1b+'\x20');const _0xd96df0=await _0x7d93d[_0x5c5804(0x120)](_0x292d8f,_0x268b1b);_0x1f4d49[_0x5c5804(0x16f)](_0xd96df0[0x0],![])?(_0x5f48c3=_0x5c5804(0x11f)+JSON[_0x5c5804(0x15a)](_0xd96df0[0x1])+_0x5c5804(0x246)+_0x268b1b+_0x5c5804(0x16a),await _0x1f4d49[_0x5c5804(0x248)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x153)],_0x1f4d49['SMaNe']),logger[_0x5c5804(0x1b3)](_0x5f48c3),process[_0x5c5804(0xe0)](0x1)):logger['info'](_0x5c5804(0x19d)+JSON[_0x5c5804(0x15a)](_0x292d8f)+'\x20'),[_0x268b1b,_0x292d8f]=await _0x7d93d['setupNewCluster'](_0x268b1b,_0x292d8f);}else{const _0x50a3f1=_0x1f4d49[_0x5c5804(0x215)][_0x5c5804(0x1ca)]('|');let _0x40e16a=0x0;while(!![]){switch(_0x50a3f1[_0x40e16a++]){case'0':const _0x292348={};_0x292348[_0x5c5804(0x206)]=WS_EVENTS['LOG'],_0x292348[_0x5c5804(0x121)]=_0x1f4d49[_0x5c5804(0xf3)],webSocketUtils['sendEventToBackend'](_0x5a7a97,_0x292348);continue;case'1':[_0x268b1b,_0x292d8f]=await _0x7d93d[_0x5c5804(0x230)](_0x268b1b,_0x292d8f);continue;case'2':logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0xf3)]);continue;case'3':logger['info'](_0x1f4d49[_0x5c5804(0xd5)]);continue;case'4':const _0x21e394={};_0x21e394[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x21e394['message']=_0x1f4d49[_0x5c5804(0xd5)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x21e394);continue;}break;}}}}_0x385bc8&&_0x1f4d49[_0x5c5804(0x233)](_0x158f3c,AZURE)&&(await _0x7d93d['updateClusterAlreadyPresent'](),await _0x7d93d[_0x5c5804(0xf0)]());const [_0x37c10d,_0x150db6,_0xe87a4f,_0x467670,_0x7ad926,_0x269680,_0x2e044c]=await _0x1f4d49[_0x5c5804(0x1c7)](createK8sClient,_0x7d93d,_0x4a4ac4['skipTlsCertVerify']);_0x1f4d49[_0x5c5804(0x119)](_0x385bc8,![])&&_0x1f4d49[_0x5c5804(0x12f)](_0x158f3c,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x2a5c04=await _0x7d93d[_0x5c5804(0x1b5)](_0x37c10d,_0x4a4ac4));if(_0x1f4d49[_0x5c5804(0x119)](_0x385bc8,![])&&global_registry['enableHubHa'])try{await _0x7d93d[_0x5c5804(0x178)](_0x269680,_0x2e044c,_0x4a4ac4,_0x268b1b,_0x292d8f);const _0xef8fe1={};_0xef8fe1[_0x5c5804(0x206)]=WS_EVENTS['LOG'],_0xef8fe1[_0x5c5804(0x121)]=_0x1f4d49[_0x5c5804(0x14c)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0xef8fe1);!await _0x1f4d49[_0x5c5804(0x200)](namespaceExists,_0x37c10d,global_registry['hubHaNameSpace'])&&await _0x1f4d49['RogHV'](createNamespace,_0x37c10d,global_registry[_0x5c5804(0x221)]);logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x12e)]);let _0x1469bd=await fs['readFileAsync'](path['join'](__dirname,_0x1f4d49[_0x5c5804(0x1df)],_0x1f4d49[_0x5c5804(0x196)],_0x1f4d49[_0x5c5804(0x217)],_0x1f4d49[_0x5c5804(0x19b)]),_0x1f4d49[_0x5c5804(0x13a)]);_0x1469bd=_0x1469bd[_0x5c5804(0x1c2)](/<RedisClientPassword>/g,_0x1f4d49[_0x5c5804(0x22f)](encodeBase64,global_registry[_0x5c5804(0x17e)])),_0x1469bd=_0x1469bd[_0x5c5804(0x1c2)](/<KafkaClientPassword>/g,_0x1f4d49[_0x5c5804(0x18d)](encodeBase64,global_registry[_0x5c5804(0x252)])),_0x1469bd=_0x1469bd[_0x5c5804(0x1c2)](/<BstackUsername>/g,_0x1f4d49['nkAkb'](encodeBase64,global_registry[_0x5c5804(0x150)])),_0x1469bd=_0x1469bd[_0x5c5804(0x1c2)](/<BstackAccessKey>/g,_0x1f4d49[_0x5c5804(0x11e)](encodeBase64,global_registry[_0x5c5804(0x137)]));const _0x3fbb73=yaml[_0x5c5804(0xe8)](_0x1469bd);await _0x1f4d49[_0x5c5804(0x1c7)](kubeApply,_0x3fbb73,_0x2e044c),logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x219)]);let _0x155631=_0x1f4d49[_0x5c5804(0xca)];if(_0x1f4d49[_0x5c5804(0x143)](_0x158f3c,AZURE))_0x155631=_0x1f4d49[_0x5c5804(0x131)];else _0x1f4d49[_0x5c5804(0x1b9)](_0x158f3c,GCP)&&(_0x155631=_0x1f4d49['rXdKA']);logger[_0x5c5804(0x1a3)](_0x1f4d49['FwPlW']);let _0x1f7c14=await fs[_0x5c5804(0x1b6)](path['join'](__dirname,_0x1f4d49[_0x5c5804(0x1df)],_0x1f4d49[_0x5c5804(0x196)],_0x1f4d49[_0x5c5804(0x217)],_0x1f4d49[_0x5c5804(0x1bb)]),_0x1f4d49[_0x5c5804(0x13a)]);_0x1f7c14=_0x1f7c14[_0x5c5804(0x1c2)](/<HubHaNameSpace>/g,global_registry[_0x5c5804(0x221)]),_0x1f7c14=_0x1f7c14[_0x5c5804(0x1c2)](/<StorageClassName>/g,_0x155631);const _0x355be0=yaml[_0x5c5804(0xe8)](_0x1f7c14);await _0x1f4d49['PEVEC'](kubeApply,_0x355be0,_0x2e044c),logger['info'](_0x1f4d49[_0x5c5804(0x175)]),logger['info'](_0x1f4d49[_0x5c5804(0x1ba)]);let _0x528d34=await fs['readFileAsync'](path[_0x5c5804(0x166)](__dirname,_0x1f4d49[_0x5c5804(0x1df)],_0x1f4d49['qGSdA'],_0x1f4d49[_0x5c5804(0x217)],_0x1f4d49[_0x5c5804(0x1b0)]),_0x1f4d49[_0x5c5804(0x13a)]);_0x528d34=_0x528d34[_0x5c5804(0x1c2)](/<HubHaNameSpace>/g,global_registry[_0x5c5804(0x221)]),_0x528d34=_0x528d34[_0x5c5804(0x1c2)](/<StorageClassName>/g,_0x155631);const _0x5372bb=yaml['loadAll'](_0x528d34);await _0x1f4d49['RogHV'](kubeApply,_0x5372bb,_0x2e044c),logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x144)]),logger['info'](_0x1f4d49[_0x5c5804(0xe7)]);let _0x4d6d8b=await fs['readFileAsync'](path[_0x5c5804(0x166)](__dirname,_0x1f4d49['tguBE'],_0x1f4d49['qGSdA'],_0x1f4d49[_0x5c5804(0x217)],_0x1f4d49['niaQN']),_0x1f4d49['yOQlP']);_0x4d6d8b=_0x4d6d8b[_0x5c5804(0x1c2)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x4d6d8b=_0x4d6d8b[_0x5c5804(0x1c2)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']);const _0x5b2aec=yaml[_0x5c5804(0xe8)](_0x4d6d8b);_0x1f4d49[_0x5c5804(0x135)](global_registry[_0x5c5804(0xdc)],AZURE)&&(_0x5b2aec[0x0]['spec'][_0x5c5804(0x250)]['metadata'][_0x5c5804(0x1ed)]={'azure.workload.identity/use':_0x1f4d49[_0x5c5804(0xe2)],..._0x5b2aec[0x0][_0x5c5804(0x149)][_0x5c5804(0x250)][_0x5c5804(0x108)][_0x5c5804(0x1ed)]},_0x5b2aec[0x0]['spec'][_0x5c5804(0x250)][_0x5c5804(0x149)][_0x5c5804(0x21d)]=_0x1f4d49[_0x5c5804(0x1fb)]);await _0x1f4d49[_0x5c5804(0x200)](kubeApply,_0x5b2aec,_0x2e044c),logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x1b1)]);const _0x408aa={};_0x408aa[_0x5c5804(0x206)]=WS_EVENTS['LOG'],_0x408aa[_0x5c5804(0x121)]=_0x1f4d49[_0x5c5804(0x17d)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x408aa),logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x23b)]);}catch(_0x52cc31){const _0x243d26=_0x1f4d49[_0x5c5804(0x21b)]['split']('|');let _0x22daee=0x0;while(!![]){switch(_0x243d26[_0x22daee++]){case'0':await _0x1f4d49[_0x5c5804(0x12b)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes['ERROR'],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x25b)],_0x1f4d49[_0x5c5804(0x1fd)]);continue;case'1':process['exit'](0x1);continue;case'2':logger[_0x5c5804(0x1b3)](_0x5f48c3);continue;case'3':await _0x7d93d['deleteCluster'](_0x37c10d,global_registry[_0x5c5804(0x1f7)]);continue;case'4':_0x5f48c3='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x52cc31['message'];continue;}break;}}try{_0x75f723=_0x1f4d49[_0x5c5804(0xf9)](kebabCase,_0x55e802),logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x187)]);const _0x17f0af={};_0x17f0af['type']=WS_EVENTS['LOG'],_0x17f0af['message']=_0x1f4d49[_0x5c5804(0x187)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x17f0af);if(_0x1f4d49[_0x5c5804(0x1a7)](_0x75f723,_0x1f4d49[_0x5c5804(0x1fb)])){const _0x308de3={};_0x308de3[_0x5c5804(0x1e9)]=_0x1f4d49['jZzbR'],_0x308de3[_0x5c5804(0x1cf)]=_0x1f4d49[_0x5c5804(0xd6)];const _0x32155a={};_0x32155a[_0x5c5804(0x17b)]=_0x75f723,_0x32155a['annotations']=_0x308de3;const _0x2896e0={};_0x2896e0[_0x5c5804(0x108)]=_0x32155a;const _0x55a686=_0x2896e0,_0x3cdb02={};_0x3cdb02[_0x5c5804(0x177)]=_0x55a686,await _0x37c10d[_0x5c5804(0x132)](_0x3cdb02),logger['info'](_0x1f4d49[_0x5c5804(0x127)]);}const _0x5431f6={};_0x5431f6[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x5431f6['message']=_0x1f4d49[_0x5c5804(0x13c)],webSocketUtils['sendEventToBackend'](_0x5a7a97,_0x5431f6);const _0xfd28a7={};_0xfd28a7[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0xfd28a7[_0x5c5804(0x121)]=_0x1f4d49['pnDXT'],webSocketUtils['sendEventToBackend'](_0x5a7a97,_0xfd28a7),logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x1e4)]);let _0x10c08a={};_0x1f4d49[_0x5c5804(0x116)](_0x158f3c,AZURE)&&(_0x10c08a={'clientId':await _0x7d93d[_0x5c5804(0x261)](_0x5c5804(0xe4)+_0x3516dd)});await _0x1f4d49[_0x5c5804(0x204)](addGridComponents,_0x37c10d,_0x150db6,_0xe87a4f,_0x467670,_0x75f723,_0x3516dd,_0x2a5c04,_0x7ad926,_0x2e044c,_0x10c08a),_0x5f48c3=_0x1f4d49[_0x5c5804(0x1c6)],logger[_0x5c5804(0x1a3)](_0x5f48c3);const _0x555529={};_0x555529[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x555529['message']=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x555529),_0x5f48c3=_0x1f4d49[_0x5c5804(0x1be)],logger['info'](_0x5f48c3);const _0x57b65f={};_0x57b65f['type']=WS_EVENTS[_0x5c5804(0x1f9)],_0x57b65f[_0x5c5804(0x121)]=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x57b65f),await _0x1f4d49[_0x5c5804(0xd4)](waitForDeployment,_0x150db6,_0x75f723,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x1aa91a=await _0x1f4d49[_0x5c5804(0x1eb)](getNamespaceUID,_0x37c10d,_0x75f723),_0x55b87a=global_registry['isPrivateGrid']?_0x1f4d49[_0x5c5804(0x1a5)]:_0x1f4d49[_0x5c5804(0x103)],_0x52d429={};_0x52d429[_0x5c5804(0x17b)]=_0x55b87a,_0x52d429['namespace']=_0x1f4d49['NLhXD'];const _0x6ddff7=await _0x37c10d[_0x5c5804(0x195)](_0x52d429);let _0x56a579=_0x7d93d[_0x5c5804(0x1a8)](_0x6ddff7)+'/'+_0x75f723,_0x3bdff9=_0x1f4d49[_0x5c5804(0x1f4)];try{const _0x56c9f2=_0x5c5804(0x104)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x1aa91a,_0x46dab9=await _0x1f4d49[_0x5c5804(0x226)](got,_0x56c9f2,_0x1b6e58);(_0x1f4d49[_0x5c5804(0x16f)](_0x46dab9,null)||_0x1f4d49[_0x5c5804(0x22b)](_0x46dab9,undefined))&&(_0x5f48c3=_0x1f4d49[_0x5c5804(0x239)],await _0x1f4d49[_0x5c5804(0x118)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0xe9)],_0x1f4d49[_0x5c5804(0x1fd)]),logger[_0x5c5804(0x1b3)](_0x5f48c3),process['exit'](0x1));_0x1f4d49[_0x5c5804(0x216)](_0x46dab9[_0x5c5804(0x225)],0x191)&&(_0x5f48c3=_0x1f4d49['MUBCo'],await _0x1f4d49[_0x5c5804(0x154)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes['ERROR'],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0xc2)],_0x1f4d49[_0x5c5804(0x1fd)]),logger[_0x5c5804(0x1b3)](_0x5f48c3),process[_0x5c5804(0xe0)](0x1));_0x1f4d49[_0x5c5804(0xf4)](_0x46dab9[_0x5c5804(0x225)],0xc8)&&(_0x5f48c3='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x5c5804(0x15a)](_0x46dab9),await _0x1f4d49[_0x5c5804(0x192)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x209)],_0x1f4d49[_0x5c5804(0x1fd)]),logger['error'](_0x5f48c3),process[_0x5c5804(0xe0)](0x1));const _0xa5e41=JSON[_0x5c5804(0x1cd)](_0x46dab9[_0x5c5804(0x177)]);_0xa5e41[_0x5c5804(0x1b4)]&&(_0x56a579=_0xa5e41[_0x5c5804(0x1b4)],_0x3bdff9=_0x1f4d49[_0x5c5804(0x10d)]),global_registry[_0x5c5804(0x10e)]&&(_0x3bdff9=_0x1f4d49['MCXJe']);}catch(_0x52dabc){}_0x5f48c3=_0x5c5804(0x157)+_0x56a579+'\x20',logger[_0x5c5804(0x1a3)](_0x5f48c3);const _0x34f1ba={};_0x34f1ba[_0x5c5804(0x206)]=WS_EVENTS['LOG'],_0x34f1ba[_0x5c5804(0x121)]=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x34f1ba),_0x5f48c3='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x3bdff9+'://'+_0x56a579+'/wd/hub',logger[_0x5c5804(0x1a3)](_0x5f48c3);const _0x529884={};_0x529884[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x529884[_0x5c5804(0x121)]=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x529884);const _0xbcca2={};_0xbcca2[_0x5c5804(0x206)]=WS_EVENTS['CLI_RUN_FINISHED'],_0xbcca2['message']=_0x5c5804(0x16d)+_0x56a579,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0xbcca2),await webSocketUtils['delay'](0x7d0);}catch(_0x86f727){logger['error'](_0x5c5804(0x15c)+_0x86f727+'\x20\x0a'+JSON[_0x5c5804(0x15a)](_0x86f727['stack']));if(_0x1f4d49[_0x5c5804(0x12f)](_0x385bc8,![]))try{logger['info'](_0x1f4d49[_0x5c5804(0x199)]),await _0x1f4d49['HvmhZ'](removeGridComponents,_0x37c10d,_0x150db6,_0xe87a4f,_0x467670,_0x75f723),await _0x7d93d[_0x5c5804(0x11c)](_0x37c10d,global_registry[_0x5c5804(0x1f7)]);}catch(_0x13063d){logger['error'](_0x5c5804(0x1d3)+_0x13063d+'\x20\x0a'+JSON[_0x5c5804(0x15a)](_0x13063d[_0x5c5804(0x126)]));}throw _0x86f727;}}catch(_0x487583){const _0x379be4='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x487583+'\x20\x0a'+JSON[_0x5c5804(0x15a)](_0x487583[_0x5c5804(0x126)]);if(_0x5a7a97){const _0x2a9817={};_0x2a9817[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x2a9817[_0x5c5804(0x121)]=_0x379be4,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x2a9817,_0x1f4d49['SMaNe'],!![]);}await webSocketUtils['delay'](0x7d0);const _0x1d98ab={};_0x1d98ab[_0x5c5804(0x1b3)]=_0x379be4,await _0x1f4d49[_0x5c5804(0x10a)](sendInstrumentationEvent,_0x4a4ac4,_0x1f4d49[_0x5c5804(0x21a)],messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x218)],_0x1d98ab,_0x4a4ac4),logger[_0x5c5804(0x1b3)](_0x379be4);}process['exit'](0x0);};
1
+ const a9_0x59ac18=a9_0x157e;function a9_0x2eba(){const _0x34c97b=['fTggk','HMyTi','OGoBe','NAUuR','body','Browserstack','wlTHI','TUOZw','Cluster\x20created\x20successfully','/packages/cli/create-grid-checks','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','\x20are\x20not\x20present\x20in\x20VPC:\x20','KmgkL','arUkm','error','BlyPp','NaWMW','clusterAutoUpgrade','region','TQMbY','UUBat','HSoyb','concurrency','caEns','aXhvu','RgXxC','qRMvB','true','hubVersion','lJrsv','eClVS','Kehfp','options','LDrKJ','KzTLe','builder','FUdGB','AZPOj','AYFhl','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Found\x20Subnets:\x20','8|1|4|5|2|0|6|7|3','qRDnY','upFxQ','gQqqa','Cluster\x20','Qonhc','IBEBQ','HIJpj','statusCode','SWtBL','gPhnc','addListeners','EoCgD','1|3|0|2|4','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','cpQui','ERROR','Skip\x20insecure\x20cert\x20verification.','newCluster','Opvxj','CLI\x20run\x20started','hub-ha-deployments-failed','parse','/packages/cli/get-grid-url?gridIdentifier=','zgXHL','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Spawning\x20grid\x20on\x20to\x20the\x20cluster','getGridHostname','NsPse','jebKf','kHlmS','YBncu','grid-spawning-failed','COTur','TIUqt','UAghC','mdazP','VPXHN','qDCls','create-grid-checks-auth-failed','browserstack-secret.yaml','MVGCh','https://','help','setupNewCluster','dTBga','browserVersion','bstackAccesskey','clusterName','Added\x20Kafka\x20deployment.','JwhRF','hubHaNameSpace','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','UGhxe','PFbxF','RDrUW','JNXwS','xyNQI','privateGrid','EXSkw','0|4|3|2|1','isSubnetsValid','QaIxt','premium-rwo','reconnecting-websocket','Created\x20Hub\x20HA\x20resources','FJbkw','FdDGz','ZrQWa','../../config/constants','Found\x20VPC:\x20','EXPAV','azurefile-csi-premium','mgsep','wxeGU','grid','username','mhPcl','dylXf','2|3|4|0|1','ubVeP','3|1|2|4|0','securityGroups','get-grid-url-auth-failed','uDbpF','QnoKp','VBYbw','BILhY','VmVpt','jazPT','maxNodes','route53','sQihB','xuAAF','aChuJ','default','gridProfileId','esAfq','DgWla','command','Hub\x20HA\x20setup\x20completed\x20successfully.','63CgRlfx','nEieu','GJsTZ','SpLtq','eQxjk','ctAsN','xkjIO','drsqU','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','8577819jcgeRk','hubHa','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','OjNdq','got','annotations','labels','uFHvc','HKKvK','WqCCe','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.','uERkB','uploaderVersion','split','aUcUk','ftTHd','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Bpujg','yGAgb','4lgJqDu','YLLPg','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','defaultGridProfile','clusterAutoupgrade','YwZLS','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','yRXLo','kafkaPassword','gridProfile','LwNeh','1|4|2|0|8|7|3|6|5','ayTLd','init-not-called','delay','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','jbXHT','wISXt','7967080lsmGTA','utf-8','HcCcm','ihKSs','wtWeo','cluster-autoupgrade','dkBtg','sendResourceDataToHST','dtjqT','Enabling\x20Hub\x20HA\x20flow','RdoSO','wlVnI','WKCZe','wEPIm','Spawning\x20the\x20grid\x20','GET','sjkrI','boEEE','create-grid-checks-non-200','metadata','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','HMyNX','WIbZs','sendEventToBackend','clusterRegion','1VqquVN','naObj','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','\x20using\x20\x27','Creating\x20Hub\x20HA\x20resources','KsDNw','yjmAk','FyqfQ','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','replace','rpuJN','stringify','isVPCPresent','Gvylc','PMVpD','boolean','description','isPrivateGrid','JWbXZ','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','create-grid-called','zEwlC','EevFe','OHQXn','hxlqf','serviceAccountName','readFileSync','non-aws-azure-cluster','s3bucket','AZXFz','Subnets:\x20','hubharesources','turboscale-uploader.yaml','JVutL','IpbMO','TmoYI','create-grid-checks-null-response','Adding\x20Turboscale\x20Uploader\x20deployment...','Deleting\x20the\x20CloudFormation\x20Stacks','usage','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','stOAj','biKDe','Cluster:\x20','BujCC','OmQpC','Namespace\x20Created','browserstack','WebSocket','nkaUL','\x20in\x20existing\x20cluster\x20\x27','cloud-provider','hJHbQ','Grid\x20spawned\x20on\x20the\x20cluster','create','qWPwG','VPeGK','../../utils/createk8sClient','LOG','managedBy','GUMZu','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','../../config/logger','subnets','turboscale-managed-identity-','WzdPL','isNewAWSCluster','minNodes','length','get-grid-url-non-200','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','../../cloudproviders/utils','desc','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','user','bitnami-redis.yaml','ingress-nginx-controller','NVncp','HsvLP','GHbnp','cluster-name','enableHubHa','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','2680647UoKhZn','czYhS','279232zxxlHt','jLQXW','exit','requestId','1829818geoDil','HHHZv','loadAll','WDqLD','skip-tls-cert-verify','svXFw','gNlgh','KJmAf','setupAutoscaler','FRuhj','../../utils/instrumentationUtils','GXCLA','kafkaUploader','jXEmM','AKavY','stack','http','instanceType','NnPyz','CLI_RUN_FINISHED','SyuhA','jlTsq','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','createOtherResources','Creating\x20namespace','spec','BItvX','jkTOw','pre-spawned-subnets-not-selected','VFXOz','message','isClusterPresent','uLakk','MRHfx','Added\x20Redis\x20deployment.','pre-spawned-invalid-vpc','Grid\x20can\x20be\x20accessed\x20at:\x20','RHUlY','BedKM','Spawning\x20Grid\x20on\x20the\x20Cluster','aKusZ','fMhQb','YnRYe','connectionTimeout','QXxcp','PYLYf','uuid','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','uZDAM','type','deleteCluster','DGIUm','ymMoP','DyzMQ','lXEqi','nuFex','YtDIp','readFileAsync','setupHubHa','JZxCE','LwlsY','hub-ha','name','ratok','readNamespacedService','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','handler','DNZGI','Epyd5nXbRK','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','createNamespace','existsSync','pcLCl','0|7|3|4|14|1|6|2|12|10|15|13|5|8|11|9','BVexR','Cirau','cloudProvider','uDgDY','ImISJ','SCabh','fvhwI','DSCyV','vcSVQ','info','template','qfdtO','path','epilogue','bppte','ShpJm','wFium','UkRNzNYCBU','DuzgP','://','OARvC','/wd/hub','XYsAU','RfdAY','BiHsx','5634084yIaklE','SvdEn','vpc','Namespace\x20created','Flag\x20to\x20enable\x20Hub\x20HA','bstackUsername','WuLfH','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','lGaxp','cHSgc','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ajByD','warn','yuulR','KWsGT','toLowerCase','NIHHa','EimoW','private-grid','PFBtl','hkhUr','createdBy','eXOBi','WijLI','grid-profile','rsyYA','tuQJb','vjdtG','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','4510085yeUVWT','redisPassword','iLXoO','password','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','gridName','Create\x20a\x20private/public\x20grid.','efs-csi','pLhPJ','yxIKc'];a9_0x2eba=function(){return _0x34c97b;};return a9_0x2eba();}function a9_0x157e(_0x44dd5b,_0x54bdf3){const _0x2eba4c=a9_0x2eba();return a9_0x157e=function(_0x157e9e,_0x10a970){_0x157e9e=_0x157e9e-0x169;let _0x5d4ccd=_0x2eba4c[_0x157e9e];return _0x5d4ccd;},a9_0x157e(_0x44dd5b,_0x54bdf3);}(function(_0x17cd9f,_0x2128bf){const _0x4b4c62=a9_0x157e,_0x309ee5=_0x17cd9f();while(!![]){try{const _0x23e51d=-parseInt(_0x4b4c62(0x2b6))/0x1*(parseInt(_0x4b4c62(0x30f))/0x2)+parseInt(_0x4b4c62(0x309))/0x3+parseInt(_0x4b4c62(0x28a))/0x4*(-parseInt(_0x4b4c62(0x1d5))/0x5)+parseInt(_0x4b4c62(0x1b8))/0x6+parseInt(_0x4b4c62(0x26d))/0x7*(parseInt(_0x4b4c62(0x30b))/0x8)+parseInt(_0x4b4c62(0x276))/0x9+-parseInt(_0x4b4c62(0x29d))/0xa;if(_0x23e51d===_0x2128bf)break;else _0x309ee5['push'](_0x309ee5['shift']());}catch(_0x444bb0){_0x309ee5['push'](_0x309ee5['shift']());}}}(a9_0x2eba,0x76b0c));const fs=require('fs'),ws=require('ws'),path=require(a9_0x59ac18(0x1ab)),yaml=require('js-yaml'),ReconnectingWebSocket=require(a9_0x59ac18(0x248)),got=require(a9_0x59ac18(0x27b)),{v4:uuidv4}=require(a9_0x59ac18(0x182)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x59ac18(0x2f4)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a9_0x59ac18(0x2fd)),{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_0x59ac18(0x24d)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x59ac18(0x2ef)),{sendInstrumentationEvent}=require(a9_0x59ac18(0x319));exports[a9_0x59ac18(0x26b)]=a9_0x59ac18(0x253),exports[a9_0x59ac18(0x2fe)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x59ac18(0x202)]=function(_0x4e0701){const _0x4cf0a9=a9_0x59ac18,_0x3bd2c5={};_0x3bd2c5[_0x4cf0a9(0x220)]=_0x4cf0a9(0x2de),_0x3bd2c5[_0x4cf0a9(0x304)]='string',_0x3bd2c5[_0x4cf0a9(0x270)]=_0x4cf0a9(0x199),_0x3bd2c5[_0x4cf0a9(0x180)]=_0x4cf0a9(0x275),_0x3bd2c5[_0x4cf0a9(0x282)]=_0x4cf0a9(0x16a),_0x3bd2c5[_0x4cf0a9(0x2e3)]=_0x4cf0a9(0x290),_0x3bd2c5[_0x4cf0a9(0x1e2)]=_0x4cf0a9(0x1db),_0x3bd2c5['pCQke']=_0x4cf0a9(0x219),_0x3bd2c5[_0x4cf0a9(0x2bb)]=_0x4cf0a9(0x2c5),_0x3bd2c5[_0x4cf0a9(0x26e)]=_0x4cf0a9(0x1bc),_0x3bd2c5[_0x4cf0a9(0x1ce)]='Flag\x20to\x20enable\x20cluster\x20auto-upgrade',_0x3bd2c5[_0x4cf0a9(0x1aa)]=_0x4cf0a9(0x233);const _0x42271e=_0x3bd2c5,_0x473ea4={};_0x473ea4[_0x4cf0a9(0x2c6)]=_0x42271e[_0x4cf0a9(0x220)],_0x473ea4['type']=_0x42271e[_0x4cf0a9(0x304)];const _0x24fb81={};_0x24fb81[_0x4cf0a9(0x2c6)]=_0x42271e[_0x4cf0a9(0x270)],_0x24fb81[_0x4cf0a9(0x185)]=_0x42271e[_0x4cf0a9(0x304)];const _0x2139a8={};_0x2139a8[_0x4cf0a9(0x2c6)]=_0x42271e[_0x4cf0a9(0x180)],_0x2139a8[_0x4cf0a9(0x185)]=_0x42271e['HsvLP'];const _0x58e470={};_0x58e470[_0x4cf0a9(0x2c6)]=_0x42271e[_0x4cf0a9(0x282)],_0x58e470[_0x4cf0a9(0x185)]=_0x42271e['HsvLP'];const _0x258543={};_0x258543['description']=_0x42271e['OmQpC'],_0x258543[_0x4cf0a9(0x185)]=_0x42271e[_0x4cf0a9(0x304)];const _0x52caf9={};_0x52caf9['description']=_0x42271e[_0x4cf0a9(0x1e2)],_0x52caf9[_0x4cf0a9(0x185)]=_0x42271e['HsvLP'];const _0x400be4={};_0x400be4[_0x4cf0a9(0x2c6)]=_0x42271e['pCQke'],_0x400be4[_0x4cf0a9(0x185)]=_0x42271e['KsDNw'],_0x400be4['default']=![];const _0x15a326={};_0x15a326[_0x4cf0a9(0x2c6)]=_0x42271e['nEieu'],_0x15a326[_0x4cf0a9(0x185)]=_0x42271e[_0x4cf0a9(0x2bb)],_0x15a326[_0x4cf0a9(0x267)]=![];const _0x2259f8={};_0x2259f8[_0x4cf0a9(0x2c6)]=_0x42271e[_0x4cf0a9(0x1ce)],_0x2259f8[_0x4cf0a9(0x185)]=_0x42271e['KsDNw'],_0x2259f8[_0x4cf0a9(0x267)]=![];const _0x15f022={};return _0x15f022['grid-name']=_0x473ea4,_0x15f022[_0x4cf0a9(0x1d0)]=_0x24fb81,_0x15f022[_0x4cf0a9(0x306)]=_0x2139a8,_0x15f022[_0x4cf0a9(0x2e9)]=_0x58e470,_0x15f022[_0x4cf0a9(0x1f1)]=_0x258543,_0x15f022[_0x4cf0a9(0x1ca)]=_0x52caf9,_0x15f022[_0x4cf0a9(0x313)]=_0x400be4,_0x15f022[_0x4cf0a9(0x191)]=_0x15a326,_0x15f022[_0x4cf0a9(0x2a2)]=_0x2259f8,_0x4e0701['usage'](HELP_HEADER_MESSAGE[_0x4cf0a9(0x2ec)])[_0x4cf0a9(0x1ac)](HELP_FOOTER_MESSAGE)['options'](_0x15f022)['help'](_0x42271e['qfdtO'])['argv'];},exports[a9_0x59ac18(0x196)]=async function(_0x295b87){const _0x2f5441=a9_0x59ac18,_0x3d79c5={'DGIUm':'https','ctAsN':_0x2f5441(0x2de),'HMyTi':'string','Kehfp':_0x2f5441(0x199),'IBEBQ':_0x2f5441(0x275),'rsyYA':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','fMhQb':_0x2f5441(0x290),'BItvX':_0x2f5441(0x1db),'JwhRF':_0x2f5441(0x219),'FUdGB':'boolean','naObj':_0x2f5441(0x1bc),'mgsep':_0x2f5441(0x1d9),'cpQui':_0x2f5441(0x233),'aUcUk':_0x2f5441(0x259),'qRDnY':_0x2f5441(0x2e5),'jXEmM':_0x2f5441(0x1b0),'aKusZ':_0x2f5441(0x2a6),'hkhUr':_0x2f5441(0x198),'apwNP':_0x2f5441(0x31f),'gQqqa':_0x2f5441(0x1ed),'SyuhA':_0x2f5441(0x1fa),'uDgDY':_0x2f5441(0x267),'mdazP':_0x2f5441(0x247),'PMVpD':function(_0x57a55e,_0x32c92c){return _0x57a55e(_0x32c92c);},'DgWla':'Cluster\x20Auto\x20Upgrade\x20is\x20enabled','stOAj':_0x2f5441(0x295),'czYhS':_0x2f5441(0x21c),'AZPOj':_0x2f5441(0x250),'hsPdd':_0x2f5441(0x19e),'esAfq':function(_0x30475e,_0x158319){return _0x30475e!==_0x158319;},'jazPT':function(_0xcd1416,_0x2eba3a){return _0xcd1416(_0x2eba3a);},'sjkrI':function(_0x40eb22,_0x4813ec,_0x52f047,_0x3d7d0c,_0x39d90f,_0x2a64f7,_0x5dfe64,_0x2a058e,_0x2eede2,_0x57797d,_0x34177d,_0x4d3062,_0x3bc202){return _0x40eb22(_0x4813ec,_0x52f047,_0x3d7d0c,_0x39d90f,_0x2a64f7,_0x5dfe64,_0x2a058e,_0x2eede2,_0x57797d,_0x34177d,_0x4d3062,_0x3bc202);},'wlTHI':_0x2f5441(0x1c4),'BujCC':function(_0xef143,_0x239164){return _0xef143===_0x239164;},'uLakk':function(_0x4966b5){return _0x4966b5();},'zuIMn':function(_0x5366db,_0x52be27){return _0x5366db===_0x52be27;},'UUBat':'KfpUa','MMDKi':_0x2f5441(0x308),'yuulR':function(_0x4d6c4e,_0x58b125,_0x75f90c,_0x207cae,_0x39195f,_0x526c3d,_0x304f06){return _0x4d6c4e(_0x58b125,_0x75f90c,_0x207cae,_0x39195f,_0x526c3d,_0x304f06);},'RgXxC':_0x2f5441(0x2ca),'LmJfK':_0x2f5441(0x297),'wxeGU':function(_0x3e9dd4){return _0x3e9dd4();},'wtWeo':'<UsernamePlaceholder>','KmgkL':'<PasswordPlaceholder>','GHbnp':'Adding\x20Websocket\x20listeners','LwlsY':function(_0x32eb35,_0xfa8a4f){return _0x32eb35===_0xfa8a4f;},'OHQXn':_0x2f5441(0x1b3),'dkBtg':function(_0x215133,_0x18ac85){return _0x215133===_0x18ac85;},'VmVpt':'AfNoW','ubVeP':_0x2f5441(0x29a),'AKavY':function(_0x4b69ca,_0x1f784d,_0x2b6578,_0x4d6337,_0x1645f3,_0x238a79,_0x582b73,_0x1515a2){return _0x4b69ca(_0x1f784d,_0x2b6578,_0x4d6337,_0x1645f3,_0x238a79,_0x582b73,_0x1515a2);},'TfEbt':'prespawned-cluster-args-not-passed','nJqGW':_0x2f5441(0x310),'KWsGT':'QbHcN','WzdPL':_0x2f5441(0x1c2),'rMveW':_0x2f5441(0x2d1),'eClVS':function(_0x1987c0,_0x536e4e){return _0x1987c0===_0x536e4e;},'ZrQWa':_0x2f5441(0x2b3),'mhPcl':_0x2f5441(0x1be),'Wdkff':_0x2f5441(0x273),'ODeVt':'fiiPN','BiHsx':_0x2f5441(0x27f),'BlyPp':_0x2f5441(0x201),'aXhvu':_0x2f5441(0x17a),'NVncp':_0x2f5441(0x2c3),'FdDGz':_0x2f5441(0x2ac),'fvhwI':function(_0x352f35,_0x9fa983,_0x165a10){return _0x352f35(_0x9fa983,_0x165a10);},'OGoBe':function(_0x484acd,_0x43cd7a){return _0x484acd!==_0x43cd7a;},'dylXf':_0x2f5441(0x2f2),'izgpE':_0x2f5441(0x2cc),'OjNdq':function(_0x11f106,_0x25645e){return _0x11f106!==_0x25645e;},'KJmAf':_0x2f5441(0x2ee),'YBncu':function(_0x18a873,_0x4e6e40,_0x25c1c5){return _0x18a873(_0x4e6e40,_0x25c1c5);},'boEEE':function(_0xe3d460,_0x323127){return _0xe3d460===_0x323127;},'YvdOB':function(_0x3e23f9,_0xf7f97){return _0x3e23f9===_0xf7f97;},'ajByD':function(_0x350838,_0x15c15e){return _0x350838!==_0x15c15e;},'FyqfQ':_0x2f5441(0x181),'NnPyz':_0x2f5441(0x19a),'FnyhC':_0x2f5441(0x2da),'xlTks':_0x2f5441(0x18b),'dliCy':_0x2f5441(0x16f),'rnzix':_0x2f5441(0x299),'aChuJ':_0x2f5441(0x22f),'RHUlY':function(_0x34e4f6,_0x2dc395){return _0x34e4f6!==_0x2dc395;},'COTur':_0x2f5441(0x1f6),'MRHfx':function(_0x192cb1,_0x5c5cba,_0x1717bb,_0x469a55,_0x23b733,_0x1e91cb,_0x38a5d,_0x28c560){return _0x192cb1(_0x5c5cba,_0x1717bb,_0x469a55,_0x23b733,_0x1e91cb,_0x38a5d,_0x28c560);},'DSCyV':_0x2f5441(0x2af),'ZixLw':'Grid\x20profile\x20fetched\x20from\x20backend','pcLCl':'oALFQ','qWPwG':_0x2f5441(0x286),'QnoKp':'create-grid-checks-grid-already-exists','Qonhc':function(_0x1607c4,_0x103dfe){return _0x1607c4===_0x103dfe;},'jlTsq':_0x2f5441(0x24f),'svXFw':_0x2f5441(0x1a4),'wFium':_0x2f5441(0x2e0),'SWtBL':_0x2f5441(0x215),'AYFhl':function(_0x39dd4b,_0x2b03ca){return _0x39dd4b===_0x2b03ca;},'TQMbY':function(_0x23e655,_0x55e0e7){return _0x23e655!==_0x55e0e7;},'gPhnc':'orcuF','YLLPg':_0x2f5441(0x17e),'TIUqt':function(_0x2d7618,_0x5bafaa){return _0x2d7618===_0x5bafaa;},'VwhZy':'ACJKw','GXCLA':_0x2f5441(0x312),'tuQJb':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','JZxCE':'create-grid-checks-invalid-profile','DyzMQ':function(_0x1f8eda,_0x4dbc67){return _0x1f8eda===_0x4dbc67;},'oFSCA':function(_0x32a504,_0x3f7741){return _0x32a504!==_0x3f7741;},'VFXOz':'aoliO','GnHNd':_0x2f5441(0x291),'drsqU':function(_0x47bd51,_0x27de1a){return _0x47bd51===_0x27de1a;},'HSoyb':_0x2f5441(0x20a),'cHSgc':function(_0x3ce178,_0x296019){return _0x3ce178!==_0x296019;},'VBYbw':_0x2f5441(0x1f9),'NsPse':_0x2f5441(0x30c),'YwZLS':function(_0x472a3f,_0x4caa7f,_0x4e3132,_0x490356,_0x1ad702,_0x5d4e12,_0x2bc7bb,_0x5dec6e,_0x27a1f8,_0x1e6a02,_0x4ff0ee,_0x4cb5d9,_0x2a098a){return _0x472a3f(_0x4caa7f,_0x4e3132,_0x490356,_0x1ad702,_0x5d4e12,_0x2bc7bb,_0x5dec6e,_0x27a1f8,_0x1e6a02,_0x4ff0ee,_0x4cb5d9,_0x2a098a);},'arUkm':_0x2f5441(0x1c8),'BVexR':_0x2f5441(0x2a9),'pLhPJ':function(_0x37a8b4,_0x26fc05){return _0x37a8b4(_0x26fc05);},'EoAKZ':function(_0x4708f0,_0x536e00){return _0x4708f0!==_0x536e00;},'RdoSO':_0x2f5441(0x29c),'JWbXZ':_0x2f5441(0x23f),'ZhCuc':_0x2f5441(0x22e),'fCbwS':_0x2f5441(0x1b1),'rpuJN':function(_0x371747,_0xcc257d){return _0x371747!==_0xcc257d;},'DNZGI':_0x2f5441(0x2a8),'Bpujg':'DddPa','ymMoP':function(_0x4112a5,_0x59accb){return _0x4112a5(_0x59accb);},'GJsTZ':_0x2f5441(0x296),'VPXHN':_0x2f5441(0x208),'PFBtl':_0x2f5441(0x264),'vjdtG':'YFrQY','vcSVQ':function(_0x1b9b07,_0x3ebfd1){return _0x1b9b07===_0x3ebfd1;},'FJbkw':'JrtcH','LDrKJ':function(_0x423bee,_0x583ce7){return _0x423bee===_0x583ce7;},'jbXHT':_0x2f5441(0x22b),'WyfEN':'gtQgU','FRuhj':_0x2f5441(0x287),'cqzvN':function(_0x4a9e87,_0x3882d7){return _0x4a9e87!=_0x3882d7;},'iLXoO':function(_0x573d66,_0x2b60cb){return _0x573d66!==_0x2b60cb;},'fvFIC':function(_0x5c8822,_0x5ae2ba){return _0x5c8822!=_0x5ae2ba;},'dTBga':function(_0x5d8184,_0xcc020c){return _0x5d8184!==_0xcc020c;},'lqRYM':function(_0x5854c7,_0x1c1303){return _0x5854c7>_0x1c1303;},'imxUt':function(_0x5e53df,_0x1b64ea){return _0x5e53df===_0x1b64ea;},'WijLI':_0x2f5441(0x2fc),'OAKVJ':function(_0x3f49c8,_0x278706,_0x119728,_0x321daa,_0x3e71d7,_0x1c7e08,_0x1548ba,_0x638c9f){return _0x3f49c8(_0x278706,_0x119728,_0x321daa,_0x3e71d7,_0x1c7e08,_0x1548ba,_0x638c9f);},'pdhfr':_0x2f5441(0x170),'xyNQI':function(_0x1825be,_0x42261e){return _0x1825be===_0x42261e;},'kHlmS':_0x2f5441(0x1e9),'gNlgh':_0x2f5441(0x177),'BILhY':'pre-spawned-invalid-subnets','nkaUL':_0x2f5441(0x257),'WqCCe':_0x2f5441(0x1e7),'xuAAF':_0x2f5441(0x281),'JVutL':function(_0x6a119b,_0x87ad9f,_0x57aa0d){return _0x6a119b(_0x87ad9f,_0x57aa0d);},'hJHbQ':function(_0x538bd8,_0x1335d6){return _0x538bd8===_0x1335d6;},'jebKf':function(_0x3099bd,_0x5636ee){return _0x3099bd===_0x5636ee;},'lJrsv':_0x2f5441(0x2ba),'RfdAY':function(_0x3fa1fa,_0x163f5c,_0x57c611){return _0x3fa1fa(_0x163f5c,_0x57c611);},'IpbMO':'Adding\x20Secret\x20Mapping','LwNeh':'../..','HMyNX':'templates','fTggk':_0x2f5441(0x2d5),'TUOZw':_0x2f5441(0x230),'uZDAM':_0x2f5441(0x29e),'SvdEn':function(_0x31bf8f,_0x2ca39f){return _0x31bf8f(_0x2ca39f);},'Cirau':function(_0x2069cd,_0x2a051e){return _0x2069cd(_0x2a051e);},'uDbpF':function(_0x210bf8,_0x5d3bd0,_0x8e35f1){return _0x210bf8(_0x5d3bd0,_0x8e35f1);},'auoPN':'Added\x20Secret\x20Mapping','HJhDd':_0x2f5441(0x1dc),'ImISJ':function(_0x4245ab,_0x349838){return _0x4245ab===_0x349838;},'MVGCh':'Adding\x20Redis\x20deployment...','ihKSs':_0x2f5441(0x301),'GGxKf':_0x2f5441(0x176),'yxIKc':'Adding\x20Kafka\x20deployment...','ShpJm':'bitnami-kafka.yaml','MkWyG':_0x2f5441(0x239),'XYsAU':_0x2f5441(0x2db),'bppte':_0x2f5441(0x2d6),'lXEqi':function(_0x43e3d0,_0x2476c4){return _0x43e3d0===_0x2476c4;},'YtDIp':function(_0x35289a,_0x3ad222,_0x323f32){return _0x35289a(_0x3ad222,_0x323f32);},'ratok':'Added\x20Turboscale\x20Uploader\x20deployment.','HcCcm':_0x2f5441(0x249),'dtjqT':_0x2f5441(0x26c),'yGAgb':_0x2f5441(0x244),'ulLwd':_0x2f5441(0x21d),'UGhxe':_0x2f5441(0x16c),'EimoW':function(_0x13d0dc,_0x35668a){return _0x13d0dc!==_0x35668a;},'lGaxp':_0x2f5441(0x1e4),'NaWMW':_0x2f5441(0x2e4),'akXeQ':_0x2f5441(0x1bb),'eQxjk':_0x2f5441(0x222),'ddSDm':_0x2f5441(0x17b),'InzDk':function(_0x1765c1,_0x312f89){return _0x1765c1===_0x312f89;},'VsBJb':function(_0x26414c,_0x4a2650,_0x337820,_0x1594f7,_0x5c1c69,_0x2edd3b,_0x4b606d,_0x1348dc,_0x2fa28f,_0x42f2fd,_0x3e9e57){return _0x26414c(_0x4a2650,_0x337820,_0x1594f7,_0x5c1c69,_0x2edd3b,_0x4b606d,_0x1348dc,_0x2fa28f,_0x42f2fd,_0x3e9e57);},'HIJpj':_0x2f5441(0x2eb),'EXSkw':_0x2f5441(0x2b1),'Opvxj':function(_0x4f4285,_0x1a3b7b,_0x13dfdd,_0x523f33,_0x131366){return _0x4f4285(_0x1a3b7b,_0x13dfdd,_0x523f33,_0x131366);},'JNXwS':'private-ingress-nginx-controller','AZXFz':_0x2f5441(0x302),'PFbxF':'ingress-nginx','eZJOG':function(_0x278782,_0x2a2e82){return _0x278782===_0x2a2e82;},'yjmAk':_0x2f5441(0x23c),'MwCOg':'get-grid-url-null-response','hxlqf':_0x2f5441(0x279),'wEPIm':function(_0x273420,_0x3ecd36,_0x59ded4,_0x327448,_0x15fd66,_0x17ac2a,_0x2ebe44,_0x45463d){return _0x273420(_0x3ecd36,_0x59ded4,_0x327448,_0x15fd66,_0x17ac2a,_0x2ebe44,_0x45463d);},'mQLNb':_0x2f5441(0x25b),'zEwlC':function(_0x1be52c,_0x156438){return _0x1be52c!==_0x156438;},'QaIxt':_0x2f5441(0x2fb),'TmoYI':_0x2f5441(0x2dc),'uFHvc':function(_0x52960c,_0x1dce80,_0x4a6190,_0x5675b3,_0x12ec92,_0x3ff113){return _0x52960c(_0x1dce80,_0x4a6190,_0x5675b3,_0x12ec92,_0x3ff113);},'EoCgD':_0x2f5441(0x228)};let _0x3ed916=![],_0x2daa1a=![],_0x11e2f3,_0x3715c9,_0x453c7a,_0x4b1b37,_0x2798b3,_0x37486a,_0x8c25c2,_0x227f91,_0xd011c1,_0x246a33,_0x32e111,_0x306e4c,_0x4c53b7,_0x25b9fc,_0x1da280=0x1,_0x59d8f9=0xe;try{global_registry[_0x2f5441(0x30e)]=_0x3d79c5[_0x2f5441(0x174)](uuidv4),global_registry[_0x2f5441(0x2c7)]=![];!fs[_0x2f5441(0x19c)](_0x3d79c5[_0x2f5441(0x174)](getCredentialsPath))&&(_0x3d79c5['zuIMn'](_0x3d79c5['UUBat'],_0x3d79c5[_0x2f5441(0x1f3)])?(console[_0x2f5441(0x1ed)](_0x3d79c5['MMDKi']),await _0x3d79c5[_0x2f5441(0x1c5)](sendInstrumentationEvent,_0x295b87,_0x3d79c5[_0x2f5441(0x1f8)],messageTypes[_0x2f5441(0x218)],_0x3d79c5['LmJfK'],null,_0x295b87),process[_0x2f5441(0x30d)](0x1)):_0x5de644[_0x2f5441(0x2a4)]());await _0x3d79c5['yuulR'](sendInstrumentationEvent,_0x295b87,_0x3d79c5[_0x2f5441(0x1f8)],messageTypes['INFO'],null,null,_0x295b87);const _0x122917=JSON[_0x2f5441(0x21e)](fs[_0x2f5441(0x2d0)](_0x3d79c5[_0x2f5441(0x252)](getCredentialsPath)));global_registry[_0x2f5441(0x1bd)]=_0x122917[_0x2f5441(0x1e4)]['username'],global_registry[_0x2f5441(0x237)]=_0x122917['Browserstack'][_0x2f5441(0x1d8)];const _0x384563=WS_ENDPOINT[_0x2f5441(0x2bf)](_0x3d79c5[_0x2f5441(0x2a1)],_0x122917['Browserstack'][_0x2f5441(0x254)])['replace'](_0x3d79c5[_0x2f5441(0x1eb)],_0x122917[_0x2f5441(0x1e4)][_0x2f5441(0x1d8)]),_0x32c609={};_0x32c609[_0x2f5441(0x2e6)]=ws,_0x32c609[_0x2f5441(0x17f)]=0x36ee80,_0x306e4c=new ReconnectingWebSocket(_0x384563,[],_0x32c609),logger['debug'](_0x3d79c5[_0x2f5441(0x305)]),webSocketUtils[_0x2f5441(0x213)](_0x306e4c,_0x295b87[_0x2f5441(0x300)],_0x295b87[_0x2f5441(0x1d8)]);const _0x5956fb=_0x295b87['gridName']||DEFAULT_GRID_NAME;if(_0x295b87[_0x2f5441(0x238)]||_0x295b87[_0x2f5441(0x1a1)]||_0x295b87['region']){if(_0x3d79c5[_0x2f5441(0x190)](_0x3d79c5[_0x2f5441(0x2cd)],_0x3d79c5[_0x2f5441(0x2cd)])){!(_0x295b87[_0x2f5441(0x238)]&&_0x295b87[_0x2f5441(0x1a1)]&&_0x295b87[_0x2f5441(0x1f1)])&&(_0x3d79c5['dkBtg'](_0x3d79c5[_0x2f5441(0x260)],_0x3d79c5[_0x2f5441(0x260)])?(_0x11e2f3=_0x3d79c5[_0x2f5441(0x258)],await _0x3d79c5[_0x2f5441(0x31d)](reportToGalactusAndSendToEDS,_0x295b87,_0x306e4c,_0x11e2f3,messageTypes[_0x2f5441(0x218)],_0x3d79c5[_0x2f5441(0x1f8)],_0x3d79c5['TfEbt'],_0x3d79c5[_0x2f5441(0x20b)]),logger[_0x2f5441(0x1ed)](_0x11e2f3),process['exit'](0x1)):(_0x41b178=_0x5747ae[_0x2f5441(0x263)],_0x17c98a=_0x3d79c5[_0x2f5441(0x187)]));if(![AWS,AZURE,GCP]['includes'](_0x295b87[_0x2f5441(0x1a1)][_0x2f5441(0x1c7)]())){if(_0x3d79c5[_0x2f5441(0x269)](_0x3d79c5['nJqGW'],_0x3d79c5[_0x2f5441(0x1c6)]))_0x11e2f3=_0x3d79c5[_0x2f5441(0x2f7)],await _0x3d79c5[_0x2f5441(0x31d)](reportToGalactusAndSendToEDS,_0x295b87,_0x306e4c,_0x11e2f3,messageTypes[_0x2f5441(0x218)],_0x3d79c5[_0x2f5441(0x1f8)],_0x3d79c5['rMveW'],_0x3d79c5[_0x2f5441(0x20b)]),logger[_0x2f5441(0x1ed)](_0x11e2f3),process[_0x2f5441(0x30d)](0x1);else{const _0x215768={};_0x215768[_0x2f5441(0x2c6)]=_0x3d79c5[_0x2f5441(0x272)],_0x215768['type']=_0x3d79c5[_0x2f5441(0x1e0)];const _0xa4343e={};_0xa4343e[_0x2f5441(0x2c6)]=_0x3d79c5[_0x2f5441(0x1fe)],_0xa4343e[_0x2f5441(0x185)]=_0x3d79c5[_0x2f5441(0x1e0)];const _0x478f47={};_0x478f47[_0x2f5441(0x2c6)]=_0x3d79c5[_0x2f5441(0x20e)],_0x478f47[_0x2f5441(0x185)]=_0x3d79c5[_0x2f5441(0x1e0)];const _0x5b8d8a={};_0x5b8d8a[_0x2f5441(0x2c6)]=_0x3d79c5[_0x2f5441(0x1d1)],_0x5b8d8a[_0x2f5441(0x185)]=_0x3d79c5[_0x2f5441(0x1e0)];const _0x587125={};_0x587125[_0x2f5441(0x2c6)]=_0x3d79c5[_0x2f5441(0x17d)],_0x587125['type']=_0x3d79c5['HMyTi'];const _0x41da67={};_0x41da67[_0x2f5441(0x2c6)]=_0x3d79c5[_0x2f5441(0x16e)],_0x41da67[_0x2f5441(0x185)]=_0x3d79c5[_0x2f5441(0x1e0)];const _0x1b6ad9={};_0x1b6ad9['description']=_0x3d79c5[_0x2f5441(0x23a)],_0x1b6ad9[_0x2f5441(0x185)]=_0x3d79c5[_0x2f5441(0x203)],_0x1b6ad9['default']=![];const _0x111594={};_0x111594['description']=_0x3d79c5[_0x2f5441(0x2b7)],_0x111594[_0x2f5441(0x185)]=_0x3d79c5[_0x2f5441(0x203)],_0x111594[_0x2f5441(0x267)]=![];const _0x469f95={};_0x469f95[_0x2f5441(0x2c6)]=_0x3d79c5[_0x2f5441(0x251)],_0x469f95[_0x2f5441(0x185)]=_0x3d79c5[_0x2f5441(0x203)],_0x469f95[_0x2f5441(0x267)]=![];const _0x38f0f8={};return _0x38f0f8['grid-name']=_0x215768,_0x38f0f8[_0x2f5441(0x1d0)]=_0xa4343e,_0x38f0f8[_0x2f5441(0x306)]=_0x478f47,_0x38f0f8['cloud-provider']=_0x5b8d8a,_0x38f0f8[_0x2f5441(0x1f1)]=_0x587125,_0x38f0f8[_0x2f5441(0x1ca)]=_0x41da67,_0x38f0f8[_0x2f5441(0x313)]=_0x1b6ad9,_0x38f0f8[_0x2f5441(0x191)]=_0x111594,_0x38f0f8[_0x2f5441(0x2a2)]=_0x469f95,_0x2b6ef2[_0x2f5441(0x2dd)](_0x491a6a['create'])[_0x2f5441(0x1ac)](_0x27be9a)[_0x2f5441(0x1ff)](_0x38f0f8)['help'](_0x3d79c5[_0x2f5441(0x217)])['argv'];}}if(_0x295b87[_0x2f5441(0x242)]&&_0x3d79c5[_0x2f5441(0x2a3)](_0x295b87['privateGrid'][_0x2f5441(0x1c7)](),_0x3d79c5[_0x2f5441(0x323)])){if(_0x3d79c5[_0x2f5441(0x1fd)](_0x3d79c5[_0x2f5441(0x24c)],_0x3d79c5[_0x2f5441(0x255)])){const _0x3b7438=_0x3d79c5[_0x2f5441(0x285)]['split']('|');let _0x13f9ce=0x0;while(!![]){switch(_0x3b7438[_0x13f9ce++]){case'0':_0x2b5467[_0x2f5441(0x307)]=!![];continue;case'1':_0x21236c[_0x2f5441(0x23b)]=_0x3d79c5[_0x2f5441(0x209)];continue;case'2':_0x370a50['redisPassword']=_0x3d79c5[_0x2f5441(0x31c)];continue;case'3':_0x3a6634['info'](_0x3d79c5[_0x2f5441(0x17c)]);continue;case'4':_0x179398['kafkaPassword']=_0x3d79c5['hkhUr'];continue;}break;}}else global_registry[_0x2f5441(0x2c7)]=!![];}global_registry[_0x2f5441(0x1a1)]=_0x295b87[_0x2f5441(0x1a1)],global_registry[_0x2f5441(0x2b5)]=_0x295b87[_0x2f5441(0x1f1)],global_registry[_0x2f5441(0x238)]=_0x295b87[_0x2f5441(0x238)];const _0x348ab2=await _0x3d79c5[_0x2f5441(0x1c5)](getCloudProviderObject,_0x295b87[_0x2f5441(0x1a1)],_0x295b87[_0x2f5441(0x238)],_0x5956fb,_0x306e4c,webSocketUtils,_0x295b87),_0x500e25=await _0x348ab2[_0x2f5441(0x173)]();!_0x500e25?_0x3d79c5['esAfq'](_0x3d79c5['Wdkff'],_0x3d79c5['ODeVt'])?(logger['info'](_0x2f5441(0x2e1)+_0x295b87['clusterName']+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x3ed916=![],_0x2daa1a=!![]):_0x479f87=_0x3d79c5['apwNP']:_0x3d79c5['esAfq'](_0x3d79c5[_0x2f5441(0x1b7)],_0x3d79c5[_0x2f5441(0x1ee)])?_0x3ed916=!![]:_0x5c5cec[_0x2f5441(0x293)]=_0x1b19e3['gridProfile'],_0x453c7a=_0x295b87[_0x2f5441(0x238)],_0x3715c9=_0x295b87[_0x2f5441(0x1a1)][_0x2f5441(0x1c7)](),_0x4b1b37=_0x295b87[_0x2f5441(0x1f1)];}else _0x20e3a5=!![];}else _0x295b87[_0x2f5441(0x293)]&&(_0x3d79c5['esAfq'](_0x3d79c5[_0x2f5441(0x1f7)],_0x3d79c5[_0x2f5441(0x303)])?global_registry[_0x2f5441(0x293)]=_0x295b87[_0x2f5441(0x293)]:_0x4bf1ec=null);global_registry['gridName']=_0x295b87[_0x2f5441(0x1da)];const _0x3478d2={'method':_0x3d79c5[_0x2f5441(0x24b)],'headers':_0x3d79c5[_0x2f5441(0x1a5)](getAuthHeader,_0x122917[_0x2f5441(0x1e4)]['username'],_0x122917[_0x2f5441(0x1e4)][_0x2f5441(0x1d8)]),'throwHttpErrors':![]},_0x4b609f={};_0x4b609f[_0x2f5441(0x1da)]=_0x5956fb;const _0xb056c6=_0x4b609f;if(_0x2daa1a){if(_0x3d79c5[_0x2f5441(0x1e1)](_0x3d79c5[_0x2f5441(0x256)],_0x3d79c5['izgpE']))_0xb056c6[_0x2f5441(0x1f1)]=_0x4b1b37,_0xb056c6['cloudProvider']=_0x3715c9,_0xb056c6[_0x2f5441(0x21a)]=!![],_0xb056c6[_0x2f5441(0x1f0)]=_0x295b87['clusterAutoupgrade'];else{const _0x385b55={};_0x385b55[_0x2f5441(0x185)]=_0x1126ec['LOG'],_0x385b55[_0x2f5441(0x172)]=_0x1f778d,_0xe938d6[_0x2f5441(0x2b4)](_0x3ffa6e,_0x385b55,_0x3d79c5['gQqqa'],!![]);}}_0x295b87[_0x2f5441(0x28e)]&&(_0x3d79c5[_0x2f5441(0x27a)](_0x3d79c5[_0x2f5441(0x316)],_0x3d79c5['KJmAf'])?(_0x14956f[_0x2f5441(0x1a8)]('Cluster:\x20'+_0x4c774b[_0x2f5441(0x238)]+_0x2f5441(0x2c9)),_0x2e2b40=![],_0x36192d=!![]):logger[_0x2f5441(0x1a8)](_0x3d79c5[_0x2f5441(0x26a)]));const _0x11cc98=_0x2f5441(0x232)+AG_API_URL+_0x2f5441(0x1e8),_0x3e5292={'searchParams':_0xb056c6,'throwHttpErrors':![],..._0x3478d2},_0x543691=_0x3e5292,_0x3f22bd=await _0x3d79c5[_0x2f5441(0x227)](got,_0x11cc98,_0x543691);(_0x3d79c5[_0x2f5441(0x2ae)](_0x3f22bd,null)||_0x3d79c5['YvdOB'](_0x3f22bd,undefined))&&(_0x3d79c5[_0x2f5441(0x1c3)](_0x3d79c5[_0x2f5441(0x2bd)],_0x3d79c5['FyqfQ'])?(_0x283512['region']=_0xf60cca,_0x2bc50d[_0x2f5441(0x1a1)]=_0x4e20cf,_0x45cb47[_0x2f5441(0x21a)]=!![],_0x5659c2['clusterAutoUpgrade']=_0xd02670[_0x2f5441(0x28e)]):(_0x11e2f3=_0x3d79c5[_0x2f5441(0x321)],await _0x3d79c5[_0x2f5441(0x31d)](reportToGalactusAndSendToEDS,_0x295b87,_0x306e4c,_0x11e2f3,messageTypes['ERROR'],_0x3d79c5[_0x2f5441(0x1f8)],_0x3d79c5['FnyhC'],_0x3d79c5['gQqqa']),logger[_0x2f5441(0x1ed)](_0x11e2f3),process['exit'](0x1)));if(_0x3d79c5['boEEE'](_0x3f22bd[_0x2f5441(0x210)],0x191)){if(_0x3d79c5[_0x2f5441(0x269)](_0x3d79c5['xlTks'],_0x3d79c5['dliCy']))_0x11e2f3=_0x3d79c5['rnzix'],await _0x3d79c5['AKavY'](reportToGalactusAndSendToEDS,_0x295b87,_0x306e4c,_0x11e2f3,messageTypes[_0x2f5441(0x218)],_0x3d79c5[_0x2f5441(0x1f8)],_0x3d79c5[_0x2f5441(0x266)],_0x3d79c5['gQqqa']),logger[_0x2f5441(0x1ed)](_0x11e2f3),process[_0x2f5441(0x30d)](0x1);else throw new _0x4a2756(_0x2f5441(0x20c)+_0x4ff2ac+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}_0x3d79c5[_0x2f5441(0x1c3)](_0x3f22bd[_0x2f5441(0x210)],0xc8)&&(_0x3d79c5[_0x2f5441(0x179)](_0x3d79c5['COTur'],_0x3d79c5[_0x2f5441(0x229)])?_0x42083e=null:(_0x11e2f3=_0x2f5441(0x2f3)+JSON[_0x2f5441(0x2c1)](_0x3f22bd['body']),await _0x3d79c5[_0x2f5441(0x175)](reportToGalactusAndSendToEDS,_0x295b87,_0x306e4c,_0x11e2f3,messageTypes[_0x2f5441(0x218)],_0x3d79c5[_0x2f5441(0x1f8)],_0x3d79c5[_0x2f5441(0x1a6)],_0x3d79c5[_0x2f5441(0x20b)]),logger[_0x2f5441(0x1ed)](_0x11e2f3),process[_0x2f5441(0x30d)](0x1)));const _0x35a5bc=JSON[_0x2f5441(0x21e)](_0x3f22bd[_0x2f5441(0x1e3)]),_0x1f4d7f={};_0x1f4d7f[_0x2f5441(0x185)]=WS_EVENTS['CLI_RUN_STARTED'],_0x1f4d7f['message']=_0x3d79c5[_0x2f5441(0x30a)],webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0x1f4d7f);const _0x4f7b5f={};_0x4f7b5f['type']=WS_EVENTS[_0x2f5441(0x2f0)],_0x4f7b5f[_0x2f5441(0x172)]=_0x3d79c5['ZixLw'],webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0x4f7b5f);_0x35a5bc['alreadyPresent']&&(_0x3d79c5[_0x2f5441(0x1e1)](_0x3d79c5[_0x2f5441(0x19d)],_0x3d79c5[_0x2f5441(0x2ed)])?(_0x11e2f3=_0x2f5441(0x183)+_0x5956fb+_0x2f5441(0x278),await _0x3d79c5['AKavY'](reportToGalactusAndSendToEDS,_0x295b87,_0x306e4c,_0x11e2f3,messageTypes[_0x2f5441(0x218)],_0x3d79c5[_0x2f5441(0x1f8)],_0x3d79c5[_0x2f5441(0x25d)],_0x3d79c5[_0x2f5441(0x20b)]),logger['error'](_0x11e2f3),process['exit'](0x1)):_0x328ef4[_0x2f5441(0x2c7)]=!![]);const _0x5782bd=_0x35a5bc['gridProfiles'];let _0x6f9e7a=_0x5782bd[_0x35a5bc[_0x2f5441(0x28d)]];_0x295b87[_0x2f5441(0x293)]&&(_0x3d79c5[_0x2f5441(0x20d)](_0x3d79c5[_0x2f5441(0x169)],_0x3d79c5[_0x2f5441(0x314)])?_0x43eb48[_0x2f5441(0x2c7)]=!![]:_0x6f9e7a=_0x5782bd[_0x295b87[_0x2f5441(0x293)]]);global_registry['enableHubHa']=![];if(_0x295b87[_0x2f5441(0x277)]){if(_0x3d79c5[_0x2f5441(0x2ae)](_0x3d79c5[_0x2f5441(0x1af)],_0x3d79c5[_0x2f5441(0x1af)])){const _0x30e61f=_0x3d79c5[_0x2f5441(0x211)]['split']('|');let _0x2a6884=0x0;while(!![]){switch(_0x30e61f[_0x2a6884++]){case'0':global_registry[_0x2f5441(0x1d6)]=_0x3d79c5['jXEmM'];continue;case'1':logger[_0x2f5441(0x1a8)](_0x3d79c5['aKusZ']);continue;case'2':global_registry['kafkaPassword']=_0x3d79c5[_0x2f5441(0x1cc)];continue;case'3':global_registry[_0x2f5441(0x23b)]=_0x3d79c5[_0x2f5441(0x209)];continue;case'4':global_registry['enableHubHa']=!![];continue;}break;}}else{const _0x462e0a={'azure.workload.identity/use':_0x3d79c5['SyuhA'],..._0xf1bc2e[0x0][_0x2f5441(0x16d)][_0x2f5441(0x1a9)]['metadata'][_0x2f5441(0x27d)]};_0x3d66e7[0x0]['spec']['template'][_0x2f5441(0x2b0)]['labels']=_0x462e0a,_0x1b44c8[0x0][_0x2f5441(0x16d)][_0x2f5441(0x1a9)]['spec'][_0x2f5441(0x2cf)]=_0x3d79c5[_0x2f5441(0x1a2)];}}if(_0x3d79c5[_0x2f5441(0x205)](_0x3ed916,![])&&_0x3d79c5['AYFhl'](_0x2daa1a,![])){if(_0x3d79c5[_0x2f5441(0x1f2)](_0x3d79c5[_0x2f5441(0x212)],_0x3d79c5[_0x2f5441(0x28b)])){_0x3d79c5[_0x2f5441(0x22a)](_0x6f9e7a,undefined)&&(_0x3d79c5[_0x2f5441(0x27a)](_0x3d79c5['VwhZy'],_0x3d79c5[_0x2f5441(0x31a)])?(_0x11e2f3=_0x3d79c5[_0x2f5441(0x1d2)],await _0x3d79c5[_0x2f5441(0x31d)](reportToGalactusAndSendToEDS,_0x295b87,_0x306e4c,_0x11e2f3,messageTypes[_0x2f5441(0x218)],_0x3d79c5[_0x2f5441(0x1f8)],_0x3d79c5[_0x2f5441(0x18f)],_0x3d79c5[_0x2f5441(0x20b)]),logger['error'](_0x11e2f3),process[_0x2f5441(0x30d)](0x1)):_0x566224[_0x2f5441(0x1a8)](_0x2f5441(0x24e)+_0x320273+'\x20'));global_registry[_0x2f5441(0x268)]=_0x6f9e7a['id'],_0x11e2f3='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x5956fb+_0x2f5441(0x2b9)+_0x6f9e7a[_0x2f5441(0x192)]+'\x27\x20grid\x20profile',logger[_0x2f5441(0x1a8)](_0x11e2f3);const _0x37b0c4={};_0x37b0c4[_0x2f5441(0x185)]=WS_EVENTS['LOG'],_0x37b0c4[_0x2f5441(0x172)]=_0x11e2f3,webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0x37b0c4),_0x3715c9=_0x6f9e7a[_0x2f5441(0x1a1)],_0x453c7a=_0x6f9e7a[_0x2f5441(0x238)],_0x4b1b37=_0x6f9e7a[_0x2f5441(0x1f1)],_0x2798b3=_0x6f9e7a['concurrency'],_0x37486a=_0x6f9e7a['instanceType'],_0x8c25c2=_0x6f9e7a[_0x2f5441(0x1ba)],_0x227f91=_0x6f9e7a[_0x2f5441(0x25a)],_0xd011c1=_0x6f9e7a[_0x2f5441(0x2f5)],_0x246a33=_0x6f9e7a[_0x2f5441(0x2d2)],_0x1da280=_0x6f9e7a['minNodes'],_0x59d8f9=_0x6f9e7a[_0x2f5441(0x262)],_0x4c53b7=_0x35a5bc[_0x2f5441(0x1fb)],_0x25b9fc=_0x35a5bc[_0x2f5441(0x236)],_0x8c25c2&&_0x3d79c5[_0x2f5441(0x189)](_0x8c25c2['length'],0x0)&&(_0x3d79c5['oFSCA'](_0x3d79c5[_0x2f5441(0x171)],_0x3d79c5['GnHNd'])?_0x8c25c2=null:_0x5e1db6=_0x3d79c5[_0x2f5441(0x22c)]),_0xd011c1&&_0x3d79c5['drsqU'](_0xd011c1[_0x2f5441(0x2fa)],0x0)&&(_0x3d79c5['BujCC'](_0x3d79c5[_0x2f5441(0x1f4)],_0x3d79c5['HSoyb'])?_0xd011c1=null:_0x22a2d6[_0x2f5441(0x2c7)]=!![]),_0x3d79c5[_0x2f5441(0x27a)](_0x6f9e7a['privateGrid'],undefined)&&_0x6f9e7a['privateGrid']&&(_0x3d79c5[_0x2f5441(0x1c1)](_0x3d79c5[_0x2f5441(0x25e)],_0x3d79c5[_0x2f5441(0x224)])?global_registry[_0x2f5441(0x2c7)]=!![]:_0x3d79c5[_0x2f5441(0x2c4)](_0x2ba1f3,_0x5cca3b[_0x2f5441(0x31b)])),_0x3d79c5[_0x2f5441(0x28f)](updateGlobalRegistryWithConfig,_0x3715c9,_0x453c7a,_0x4b1b37,_0x2798b3,_0x37486a,_0x246a33,_0x6f9e7a,_0x4c53b7,_0x25b9fc,_0x1da280,_0x59d8f9,_0x295b87[_0x2f5441(0x28e)]),global_registry[_0x2f5441(0x307)]&&(_0x3d79c5[_0x2f5441(0x189)](_0x3d79c5[_0x2f5441(0x1ec)],_0x3d79c5[_0x2f5441(0x19f)])?_0x2109ff[_0x2f5441(0x1a8)](_0x3d79c5[_0x2f5441(0x26a)]):_0x3d79c5[_0x2f5441(0x1dd)](updateGlobalRegistryForHubHa,_0x35a5bc[_0x2f5441(0x283)]));}else{const _0x3ccf53=_0x3d79c5[_0x2f5441(0x2df)]['split']('|');let _0x526bf8=0x0;while(!![]){switch(_0x3ccf53[_0x526bf8++]){case'0':const _0x267e1f={};_0x267e1f['type']=_0x196ab1['LOG'],_0x267e1f['message']=_0x3e5727,_0x555203[_0x2f5441(0x2b4)](_0x322f00,_0x267e1f);continue;case'1':const _0x67f362={};_0x67f362[_0x2f5441(0x185)]=_0x1da09a['CLI_RUN_STARTED'],_0x67f362[_0x2f5441(0x172)]=_0x3d79c5['czYhS'],_0x3e296c[_0x2f5441(0x2b4)](_0x4328f1,_0x67f362);continue;case'2':_0x3e8090[_0x2f5441(0x1a8)](_0x3677e3);continue;case'3':_0x4cfb0a[_0x2f5441(0x238)]=_0x931aac;continue;case'4':_0xc336e=_0x2f5441(0x2ab)+_0x4be51d+_0x2f5441(0x2e8)+_0x15f12b+'\x27';continue;case'5':_0x293bfc[_0x2f5441(0x236)]=_0x235f2f['browserVersion'];continue;case'6':_0xd13566['hubVersion']=_0x5e037d['hubVersion'];continue;case'7':_0x4971fe['clusterRegion']=_0x411b38;continue;case'8':_0x51e0fd[_0x2f5441(0x1a1)]=_0x2fba87;continue;}break;}}}else{if(_0x3d79c5[_0x2f5441(0x205)](_0x2daa1a,!![])){if(_0x3d79c5['EoAKZ'](_0x3d79c5[_0x2f5441(0x2a7)],_0x3d79c5[_0x2f5441(0x2c8)])){_0x11e2f3=_0x2f5441(0x2ff)+_0x5956fb,logger[_0x2f5441(0x1a8)](_0x11e2f3);const _0x41057e={};_0x41057e[_0x2f5441(0x185)]=WS_EVENTS[_0x2f5441(0x2f0)],_0x41057e[_0x2f5441(0x172)]=_0x11e2f3,webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0x41057e),_0x2798b3=_0x6f9e7a[_0x2f5441(0x1f5)],_0x37486a=_0x6f9e7a[_0x2f5441(0x320)],_0x8c25c2=null,_0x227f91=null,_0xd011c1=null,_0x246a33=_0x6f9e7a[_0x2f5441(0x2d2)],_0x1da280=_0x6f9e7a[_0x2f5441(0x2f9)],_0x59d8f9=_0x6f9e7a[_0x2f5441(0x262)],_0x4c53b7=_0x35a5bc[_0x2f5441(0x1fb)],_0x25b9fc=_0x35a5bc[_0x2f5441(0x236)],_0x3d79c5[_0x2f5441(0x1c1)](_0x6f9e7a['privateGrid'],undefined)&&_0x6f9e7a['privateGrid']&&(_0x3d79c5[_0x2f5441(0x274)](_0x3d79c5['ZhCuc'],_0x3d79c5['fCbwS'])?_0x3d79c5[_0x2f5441(0x2c4)](_0x366199,_0x4dc16c[_0x2f5441(0x283)]):global_registry[_0x2f5441(0x2c7)]=!![]),_0x3d79c5[_0x2f5441(0x2ad)](updateGlobalRegistryWithConfig,_0x3715c9,_0x453c7a,_0x4b1b37,_0x2798b3,_0x37486a,_0x246a33,_0x6f9e7a,_0x4c53b7,_0x25b9fc,_0x1da280,_0x59d8f9,_0x295b87[_0x2f5441(0x28e)]),global_registry['enableHubHa']&&(_0x3d79c5[_0x2f5441(0x2c0)](_0x3d79c5[_0x2f5441(0x197)],_0x3d79c5[_0x2f5441(0x288)])?_0x3d79c5[_0x2f5441(0x188)](updateGlobalRegistryForHubHa,_0x35a5bc[_0x2f5441(0x31b)]):_0x1dfd94['error'](_0x2f5441(0x2be)+_0x57b926+'\x20\x0a'+_0x48ecf6[_0x2f5441(0x2c1)](_0x57445b['stack'])));}else _0x2fe2f5=_0x3d79c5[_0x2f5441(0x204)];}else{if(_0x3d79c5[_0x2f5441(0x205)](_0x3d79c5['GJsTZ'],_0x3d79c5[_0x2f5441(0x26f)])){const _0x20abac=_0x3d79c5[_0x2f5441(0x22d)][_0x2f5441(0x284)]('|');let _0x37fe7a=0x0;while(!![]){switch(_0x20abac[_0x37fe7a++]){case'0':global_registry[_0x2f5441(0x2b5)]=_0x4b1b37;continue;case'1':_0x11e2f3=_0x2f5441(0x2ab)+_0x5956fb+_0x2f5441(0x2e8)+_0x453c7a+'\x27';continue;case'2':global_registry[_0x2f5441(0x1a1)]=_0x3715c9;continue;case'3':global_registry[_0x2f5441(0x236)]=_0x35a5bc['browserVersion'];continue;case'4':logger[_0x2f5441(0x1a8)](_0x11e2f3);continue;case'5':const _0x42c3f7={};_0x42c3f7[_0x2f5441(0x185)]=WS_EVENTS['LOG'],_0x42c3f7[_0x2f5441(0x172)]=_0x11e2f3,webSocketUtils['sendEventToBackend'](_0x306e4c,_0x42c3f7);continue;case'6':global_registry['clusterName']=_0x453c7a;continue;case'7':global_registry[_0x2f5441(0x1fb)]=_0x35a5bc[_0x2f5441(0x1fb)];continue;case'8':const _0x1c7463={};_0x1c7463[_0x2f5441(0x185)]=WS_EVENTS['CLI_RUN_STARTED'],_0x1c7463[_0x2f5441(0x172)]=_0x3d79c5[_0x2f5441(0x30a)],webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0x1c7463);continue;}break;}}else _0x1d51aa=_0x518690[_0x1f06c6[_0x2f5441(0x293)]];}}const _0x26d386=await _0x3d79c5[_0x2f5441(0x1c5)](getCloudProviderObject,_0x3715c9,_0x453c7a,_0x5956fb,_0x306e4c,webSocketUtils,_0x295b87);if(_0x3d79c5[_0x2f5441(0x1c3)](_0x3715c9,AZURE)){if(_0x3d79c5[_0x2f5441(0x27a)](_0x3d79c5[_0x2f5441(0x1cb)],_0x3d79c5[_0x2f5441(0x1d3)]))_0x26d386[_0x2f5441(0x2a4)]();else{const _0x9ac2b=_0x3d79c5['hsPdd'][_0x2f5441(0x284)]('|');let _0x57effe=0x0;while(!![]){switch(_0x9ac2b[_0x57effe++]){case'0':_0x1adc33=_0x2f5441(0x2ff)+_0x4c6960;continue;case'1':_0x2706f4=null;continue;case'2':_0x48b740=null;continue;case'3':const _0x43d0ab={};_0x43d0ab[_0x2f5441(0x185)]=_0x6ea042['LOG'],_0x43d0ab[_0x2f5441(0x172)]=_0x283c0b,_0x181428[_0x2f5441(0x2b4)](_0x49f018,_0x43d0ab);continue;case'4':_0x528ae8=_0x5a7279['concurrency'];continue;case'5':_0x280080=_0x29d9d3[_0x2f5441(0x236)];continue;case'6':_0x43e6fd=null;continue;case'7':_0x307ee1[_0x2f5441(0x1a8)](_0x24c9b5);continue;case'8':_0x3d79c5['esAfq'](_0x2cc3ee['privateGrid'],_0x5dca53)&&_0x36d26a[_0x2f5441(0x242)]&&(_0x433b81['isPrivateGrid']=!![]);continue;case'9':_0x340e94[_0x2f5441(0x307)]&&_0x3d79c5['jazPT'](_0x44568a,_0x12db07[_0x2f5441(0x31b)]);continue;case'10':_0x166466=_0x462026['minNodes'];continue;case'11':_0x3d79c5[_0x2f5441(0x2ad)](_0x4fb038,_0x37d9a2,_0x50f65b,_0x3250e4,_0x2be098,_0x4b62fb,_0x5cfe65,_0x1563c7,_0x29aa17,_0x4a7528,_0x3c4371,_0x334ee9,_0x5b7f8c['clusterAutoupgrade']);continue;case'12':_0x422cdf=_0x57f7ca[_0x2f5441(0x2d2)];continue;case'13':_0x5d6334=_0x424cd9['hubVersion'];continue;case'14':_0x581cdd=_0x2eac5a[_0x2f5441(0x320)];continue;case'15':_0x192a21=_0x2880e5[_0x2f5441(0x262)];continue;}break;}}}let _0x4d1f31;if(_0x3d79c5[_0x2f5441(0x1a7)](_0x3ed916,![])){_0x11e2f3=_0x2f5441(0x2b8)+_0x4b1b37+').';const _0x5127cd={};_0x5127cd[_0x2f5441(0x185)]=WS_EVENTS[_0x2f5441(0x2f0)],_0x5127cd['message']=_0x11e2f3,webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0x5127cd),logger[_0x2f5441(0x1a8)](_0x11e2f3);const _0x3d26c3=await _0x26d386[_0x2f5441(0x173)]();if(_0x3d26c3){if(_0x3d79c5[_0x2f5441(0x22a)](_0x3d79c5['FJbkw'],_0x3d79c5[_0x2f5441(0x24a)])){const _0xd9d318={};_0xd9d318['type']=WS_EVENTS[_0x2f5441(0x2f0)],_0xd9d318[_0x2f5441(0x172)]=_0x2f5441(0x20c)+_0x453c7a+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0xd9d318,_0x3d79c5[_0x2f5441(0x1e5)]),logger[_0x2f5441(0x1a8)](_0x2f5441(0x20c)+_0x453c7a+_0x2f5441(0x1d4)),_0x3ed916=!![];if(_0x3d79c5['zuIMn'](_0x2daa1a,!![])){if(_0x3d79c5[_0x2f5441(0x200)](_0x3d79c5[_0x2f5441(0x29b)],_0x3d79c5['WyfEN'])){const _0x14d672={};_0x14d672['type']=_0x3ab5ae[_0x2f5441(0x2f0)],_0x14d672[_0x2f5441(0x172)]='Cluster\x20'+_0x38ceae+_0x2f5441(0x1d4),_0x33b03a['sendEventToBackend'](_0x43b428,_0x14d672,_0x3d79c5[_0x2f5441(0x1e5)]),_0x31329a[_0x2f5441(0x1a8)](_0x2f5441(0x20c)+_0x110ea5+_0x2f5441(0x1d4)),_0x5250b8=!![];if(_0x3d79c5[_0x2f5441(0x2e2)](_0x31175f,!![]))throw new _0xa9cc3a('Cluster\x20'+_0x247d21+_0x2f5441(0x195));}else throw new Error(_0x2f5441(0x20c)+_0x453c7a+_0x2f5441(0x195));}}else _0x155bc6[_0x2f5441(0x1a8)](_0x2f5441(0x207)+_0x4c2e42['stringify'](_0x7598f1)+'\x20');}else{const _0x181c50={};_0x181c50['type']=WS_EVENTS['LOG'],_0x181c50[_0x2f5441(0x172)]=_0x3d79c5['FRuhj'],webSocketUtils['sendEventToBackend'](_0x306e4c,_0x181c50),logger['info'](_0x3d79c5[_0x2f5441(0x318)]);const _0x428081=_0x3d79c5['cqzvN'](_0x8c25c2,null)&&_0x3d79c5[_0x2f5441(0x1d7)](_0x8c25c2,undefined),_0x55ac73=_0x3d79c5['fvFIC'](_0xd011c1,null)&&_0x3d79c5[_0x2f5441(0x235)](_0xd011c1,undefined)&&_0x3d79c5['lqRYM'](_0xd011c1[_0x2f5441(0x2fa)],0x0);if(_0x428081){_0x3d79c5['imxUt'](_0x55ac73,![])&&(_0x11e2f3=_0x3d79c5[_0x2f5441(0x1cf)],await _0x3d79c5['OAKVJ'](reportToGalactusAndSendToEDS,_0x295b87,_0x306e4c,_0x11e2f3,messageTypes[_0x2f5441(0x218)],_0x3d79c5[_0x2f5441(0x1f8)],_0x3d79c5['pdhfr'],_0x3d79c5[_0x2f5441(0x20b)]),logger[_0x2f5441(0x1ed)](_0x11e2f3),process[_0x2f5441(0x30d)](0x1));const _0x459592=await _0x26d386[_0x2f5441(0x2c2)](_0x8c25c2);_0x3d79c5[_0x2f5441(0x241)](_0x459592,![])?(_0x11e2f3=_0x3d79c5[_0x2f5441(0x226)],await _0x3d79c5[_0x2f5441(0x31d)](reportToGalactusAndSendToEDS,_0x295b87,_0x306e4c,_0x11e2f3,messageTypes[_0x2f5441(0x218)],_0x3d79c5[_0x2f5441(0x1f8)],_0x3d79c5[_0x2f5441(0x315)],_0x3d79c5[_0x2f5441(0x20b)]),logger[_0x2f5441(0x1ed)](_0x11e2f3),process[_0x2f5441(0x30d)](0x1)):logger[_0x2f5441(0x1a8)](_0x2f5441(0x24e)+_0x8c25c2+'\x20');const _0x97f7e3=await _0x26d386[_0x2f5441(0x245)](_0xd011c1,_0x8c25c2);_0x3d79c5[_0x2f5441(0x189)](_0x97f7e3[0x0],![])?(_0x11e2f3=_0x2f5441(0x2d4)+JSON['stringify'](_0x97f7e3[0x1])+_0x2f5441(0x1ea)+_0x8c25c2+_0x2f5441(0x1bf),await _0x3d79c5[_0x2f5441(0x31d)](reportToGalactusAndSendToEDS,_0x295b87,_0x306e4c,_0x11e2f3,messageTypes[_0x2f5441(0x218)],_0x3d79c5[_0x2f5441(0x1f8)],_0x3d79c5[_0x2f5441(0x25f)],_0x3d79c5[_0x2f5441(0x20b)]),logger[_0x2f5441(0x1ed)](_0x11e2f3),process[_0x2f5441(0x30d)](0x1)):logger['info'](_0x2f5441(0x207)+JSON[_0x2f5441(0x2c1)](_0xd011c1)+'\x20'),[_0x8c25c2,_0xd011c1]=await _0x26d386[_0x2f5441(0x234)](_0x8c25c2,_0xd011c1);}else{const _0x33a015=_0x3d79c5[_0x2f5441(0x2e7)][_0x2f5441(0x284)]('|');let _0x3d91fe=0x0;while(!![]){switch(_0x33a015[_0x3d91fe++]){case'0':const _0x43f84e={};_0x43f84e[_0x2f5441(0x185)]=WS_EVENTS[_0x2f5441(0x2f0)],_0x43f84e[_0x2f5441(0x172)]=_0x3d79c5['WqCCe'],webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0x43f84e);continue;case'1':logger[_0x2f5441(0x1a8)](_0x3d79c5[_0x2f5441(0x280)]);continue;case'2':const _0x2a7272={};_0x2a7272[_0x2f5441(0x185)]=WS_EVENTS[_0x2f5441(0x2f0)],_0x2a7272[_0x2f5441(0x172)]=_0x3d79c5['xuAAF'],webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0x2a7272);continue;case'3':logger[_0x2f5441(0x1a8)](_0x3d79c5[_0x2f5441(0x265)]);continue;case'4':[_0x8c25c2,_0xd011c1]=await _0x26d386['setupNewCluster'](_0x8c25c2,_0xd011c1);continue;}break;}}}}_0x3ed916&&_0x3d79c5[_0x2f5441(0x2a3)](_0x3715c9,AZURE)&&(await _0x26d386['updateClusterAlreadyPresent'](),await _0x26d386[_0x2f5441(0x16b)]());const [_0x2b3030,_0x36c16c,_0x11a8cb,_0x1da3e3,_0x360664,_0x210773,_0x40eb5c]=await _0x3d79c5[_0x2f5441(0x2d7)](createK8sClient,_0x26d386,_0x295b87['skipTlsCertVerify']);_0x3d79c5[_0x2f5441(0x2ea)](_0x3ed916,![])&&_0x3d79c5[_0x2f5441(0x2ea)](_0x3715c9,AWS)&&(global_registry[_0x2f5441(0x2f8)]=!![],_0x4d1f31=await _0x26d386[_0x2f5441(0x317)](_0x2b3030,_0x295b87));if(_0x3d79c5[_0x2f5441(0x225)](_0x3ed916,![])&&global_registry['enableHubHa'])try{await _0x26d386[_0x2f5441(0x18e)](_0x210773,_0x40eb5c,_0x295b87,_0x8c25c2,_0xd011c1);const _0x364dfa={};_0x364dfa[_0x2f5441(0x185)]=WS_EVENTS[_0x2f5441(0x2f0)],_0x364dfa[_0x2f5441(0x172)]=_0x3d79c5[_0x2f5441(0x1fc)],webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0x364dfa);!await _0x3d79c5[_0x2f5441(0x1b6)](namespaceExists,_0x2b3030,global_registry[_0x2f5441(0x23b)])&&await _0x3d79c5['fvhwI'](createNamespace,_0x2b3030,global_registry[_0x2f5441(0x23b)]);logger[_0x2f5441(0x1a8)](_0x3d79c5[_0x2f5441(0x2d8)]);let _0x7a26dc=await fs[_0x2f5441(0x18d)](path['join'](__dirname,_0x3d79c5[_0x2f5441(0x294)],_0x3d79c5[_0x2f5441(0x2b2)],_0x3d79c5[_0x2f5441(0x1df)],_0x3d79c5[_0x2f5441(0x1e6)]),_0x3d79c5[_0x2f5441(0x184)]);_0x7a26dc=_0x7a26dc[_0x2f5441(0x2bf)](/<RedisClientPassword>/g,_0x3d79c5[_0x2f5441(0x2c4)](encodeBase64,global_registry[_0x2f5441(0x1d6)])),_0x7a26dc=_0x7a26dc['replace'](/<KafkaClientPassword>/g,_0x3d79c5[_0x2f5441(0x1b9)](encodeBase64,global_registry[_0x2f5441(0x292)])),_0x7a26dc=_0x7a26dc[_0x2f5441(0x2bf)](/<BstackUsername>/g,_0x3d79c5[_0x2f5441(0x1a0)](encodeBase64,global_registry[_0x2f5441(0x1bd)])),_0x7a26dc=_0x7a26dc['replace'](/<BstackAccessKey>/g,_0x3d79c5[_0x2f5441(0x188)](encodeBase64,global_registry[_0x2f5441(0x237)]));const _0x5858aa=yaml[_0x2f5441(0x311)](_0x7a26dc);await _0x3d79c5[_0x2f5441(0x25c)](kubeApply,_0x5858aa,_0x40eb5c),logger[_0x2f5441(0x1a8)](_0x3d79c5['auoPN']);let _0x5d1c0a=_0x3d79c5['HJhDd'];if(_0x3d79c5[_0x2f5441(0x2ea)](_0x3715c9,AZURE))_0x5d1c0a=_0x3d79c5[_0x2f5441(0x204)];else _0x3d79c5[_0x2f5441(0x1a3)](_0x3715c9,GCP)&&(_0x5d1c0a=_0x3d79c5[_0x2f5441(0x22c)]);logger['info'](_0x3d79c5[_0x2f5441(0x231)]);let _0x2b683a=await fs[_0x2f5441(0x18d)](path['join'](__dirname,_0x3d79c5[_0x2f5441(0x294)],_0x3d79c5[_0x2f5441(0x2b2)],_0x3d79c5[_0x2f5441(0x1df)],_0x3d79c5[_0x2f5441(0x2a0)]),_0x3d79c5['uZDAM']);_0x2b683a=_0x2b683a[_0x2f5441(0x2bf)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x2b683a=_0x2b683a['replace'](/<StorageClassName>/g,_0x5d1c0a);const _0x2a27d8=yaml['loadAll'](_0x2b683a);await _0x3d79c5[_0x2f5441(0x1b6)](kubeApply,_0x2a27d8,_0x40eb5c),logger['info'](_0x3d79c5['GGxKf']),logger['info'](_0x3d79c5[_0x2f5441(0x1de)]);let _0x3a069a=await fs[_0x2f5441(0x18d)](path['join'](__dirname,_0x3d79c5[_0x2f5441(0x294)],_0x3d79c5[_0x2f5441(0x2b2)],_0x3d79c5['fTggk'],_0x3d79c5[_0x2f5441(0x1ae)]),_0x3d79c5[_0x2f5441(0x184)]);_0x3a069a=_0x3a069a[_0x2f5441(0x2bf)](/<HubHaNameSpace>/g,global_registry[_0x2f5441(0x23b)]),_0x3a069a=_0x3a069a[_0x2f5441(0x2bf)](/<StorageClassName>/g,_0x5d1c0a);const _0x5eccdd=yaml['loadAll'](_0x3a069a);await _0x3d79c5[_0x2f5441(0x1a5)](kubeApply,_0x5eccdd,_0x40eb5c),logger[_0x2f5441(0x1a8)](_0x3d79c5['MkWyG']),logger[_0x2f5441(0x1a8)](_0x3d79c5[_0x2f5441(0x1b5)]);let _0x35ff7d=await fs[_0x2f5441(0x18d)](path['join'](__dirname,_0x3d79c5[_0x2f5441(0x294)],_0x3d79c5['HMyNX'],_0x3d79c5[_0x2f5441(0x1df)],_0x3d79c5[_0x2f5441(0x1ad)]),_0x3d79c5[_0x2f5441(0x184)]);_0x35ff7d=_0x35ff7d['replace'](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x35ff7d=_0x35ff7d[_0x2f5441(0x2bf)](/<HubHaNameSpace>/g,global_registry[_0x2f5441(0x23b)]);const _0x550615=yaml[_0x2f5441(0x311)](_0x35ff7d);_0x3d79c5[_0x2f5441(0x18a)](global_registry[_0x2f5441(0x1a1)],AZURE)&&(_0x550615[0x0][_0x2f5441(0x16d)]['template'][_0x2f5441(0x2b0)][_0x2f5441(0x27d)]={'azure.workload.identity/use':_0x3d79c5[_0x2f5441(0x323)],..._0x550615[0x0][_0x2f5441(0x16d)][_0x2f5441(0x1a9)][_0x2f5441(0x2b0)][_0x2f5441(0x27d)]},_0x550615[0x0][_0x2f5441(0x16d)][_0x2f5441(0x1a9)][_0x2f5441(0x16d)][_0x2f5441(0x2cf)]=_0x3d79c5['uDgDY']);await _0x3d79c5[_0x2f5441(0x18c)](kubeApply,_0x550615,_0x40eb5c),logger['info'](_0x3d79c5[_0x2f5441(0x193)]);const _0x178281={};_0x178281[_0x2f5441(0x185)]=WS_EVENTS[_0x2f5441(0x2f0)],_0x178281[_0x2f5441(0x172)]=_0x3d79c5[_0x2f5441(0x29f)],webSocketUtils['sendEventToBackend'](_0x306e4c,_0x178281),logger[_0x2f5441(0x1a8)](_0x3d79c5[_0x2f5441(0x2a5)]);}catch(_0x53fa9a){const _0x5d12ab=_0x3d79c5[_0x2f5441(0x289)][_0x2f5441(0x284)]('|');let _0x38a439=0x0;while(!![]){switch(_0x5d12ab[_0x38a439++]){case'0':_0x11e2f3=_0x2f5441(0x216)+_0x53fa9a[_0x2f5441(0x172)];continue;case'1':process['exit'](0x1);continue;case'2':await _0x26d386[_0x2f5441(0x186)](_0x2b3030,global_registry[_0x2f5441(0x2b5)]);continue;case'3':await _0x3d79c5[_0x2f5441(0x175)](reportToGalactusAndSendToEDS,_0x295b87,_0x306e4c,_0x11e2f3,messageTypes['ERROR'],_0x3d79c5['RgXxC'],_0x3d79c5['ulLwd'],_0x3d79c5[_0x2f5441(0x20b)]);continue;case'4':logger['error'](_0x11e2f3);continue;}break;}}try{_0x32e111=_0x3d79c5[_0x2f5441(0x261)](kebabCase,_0x5956fb),logger[_0x2f5441(0x1a8)](_0x3d79c5[_0x2f5441(0x23d)]);const _0x18e970={};_0x18e970[_0x2f5441(0x185)]=WS_EVENTS['LOG'],_0x18e970[_0x2f5441(0x172)]=_0x3d79c5[_0x2f5441(0x23d)],webSocketUtils['sendEventToBackend'](_0x306e4c,_0x18e970);if(_0x3d79c5[_0x2f5441(0x1c9)](_0x32e111,_0x3d79c5[_0x2f5441(0x1a2)])){const _0x2ca11b={};_0x2ca11b[_0x2f5441(0x1cd)]=_0x3d79c5[_0x2f5441(0x1c0)],_0x2ca11b[_0x2f5441(0x2f1)]=_0x3d79c5['lGaxp'];const _0x441382={};_0x441382[_0x2f5441(0x192)]=_0x32e111,_0x441382[_0x2f5441(0x27c)]=_0x2ca11b;const _0x59d6f8={};_0x59d6f8[_0x2f5441(0x2b0)]=_0x441382;const _0x26017a=_0x59d6f8,_0x23bd1c={};_0x23bd1c[_0x2f5441(0x1e3)]=_0x26017a,await _0x2b3030[_0x2f5441(0x19b)](_0x23bd1c),logger['info'](_0x3d79c5[_0x2f5441(0x1ef)]);}const _0x4744b1={};_0x4744b1[_0x2f5441(0x185)]=WS_EVENTS[_0x2f5441(0x2f0)],_0x4744b1[_0x2f5441(0x172)]=_0x3d79c5['akXeQ'],webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0x4744b1);const _0x4331af={};_0x4331af[_0x2f5441(0x185)]=WS_EVENTS[_0x2f5441(0x2f0)],_0x4331af[_0x2f5441(0x172)]=_0x3d79c5[_0x2f5441(0x271)],webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0x4331af),logger[_0x2f5441(0x1a8)](_0x3d79c5['ddSDm']);let _0x290463={};_0x3d79c5['InzDk'](_0x3715c9,AZURE)&&(_0x290463={'clientId':await _0x26d386['getResourceClientId'](_0x2f5441(0x2f6)+_0x453c7a)});await _0x3d79c5['VsBJb'](addGridComponents,_0x2b3030,_0x36c16c,_0x11a8cb,_0x1da3e3,_0x32e111,_0x453c7a,_0x4d1f31,_0x360664,_0x40eb5c,_0x290463),_0x11e2f3=_0x3d79c5[_0x2f5441(0x20f)],logger[_0x2f5441(0x1a8)](_0x11e2f3);const _0xfa30f4={};_0xfa30f4[_0x2f5441(0x185)]=WS_EVENTS[_0x2f5441(0x2f0)],_0xfa30f4['message']=_0x11e2f3,webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0xfa30f4),_0x11e2f3=_0x3d79c5[_0x2f5441(0x243)],logger[_0x2f5441(0x1a8)](_0x11e2f3);const _0x1304a8={};_0x1304a8[_0x2f5441(0x185)]=WS_EVENTS[_0x2f5441(0x2f0)],_0x1304a8[_0x2f5441(0x172)]=_0x11e2f3,webSocketUtils['sendEventToBackend'](_0x306e4c,_0x1304a8),await _0x3d79c5[_0x2f5441(0x21b)](waitForDeployment,_0x36c16c,_0x32e111,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x444c19=await _0x3d79c5[_0x2f5441(0x227)](getNamespaceUID,_0x2b3030,_0x32e111),_0x3fda38=global_registry['isPrivateGrid']?_0x3d79c5[_0x2f5441(0x240)]:_0x3d79c5[_0x2f5441(0x2d3)],_0x1698f2={};_0x1698f2['name']=_0x3fda38,_0x1698f2['namespace']=_0x3d79c5[_0x2f5441(0x23e)];const _0x22be15=await _0x2b3030[_0x2f5441(0x194)](_0x1698f2);let _0x465d35=_0x26d386[_0x2f5441(0x223)](_0x22be15)+'/'+_0x32e111,_0x5e72c8=_0x3d79c5['apwNP'];try{const _0x44f637=_0x2f5441(0x232)+AG_API_URL+_0x2f5441(0x21f)+_0x444c19,_0x3143de=await _0x3d79c5['uDbpF'](got,_0x44f637,_0x3478d2);(_0x3d79c5[_0x2f5441(0x2ea)](_0x3143de,null)||_0x3d79c5['eZJOG'](_0x3143de,undefined))&&(_0x11e2f3=_0x3d79c5[_0x2f5441(0x2bc)],await _0x3d79c5[_0x2f5441(0x175)](reportToGalactusAndSendToEDS,_0x295b87,_0x306e4c,_0x11e2f3,messageTypes[_0x2f5441(0x218)],_0x3d79c5['RgXxC'],_0x3d79c5['MwCOg'],_0x3d79c5[_0x2f5441(0x20b)]),logger['error'](_0x11e2f3),process['exit'](0x1));_0x3d79c5[_0x2f5441(0x1fd)](_0x3143de[_0x2f5441(0x210)],0x191)&&(_0x11e2f3=_0x3d79c5[_0x2f5441(0x2ce)],await _0x3d79c5[_0x2f5441(0x2aa)](reportToGalactusAndSendToEDS,_0x295b87,_0x306e4c,_0x11e2f3,messageTypes['ERROR'],_0x3d79c5[_0x2f5441(0x1f8)],_0x3d79c5['mQLNb'],_0x3d79c5[_0x2f5441(0x20b)]),logger[_0x2f5441(0x1ed)](_0x11e2f3),process[_0x2f5441(0x30d)](0x1));_0x3d79c5[_0x2f5441(0x2cb)](_0x3143de[_0x2f5441(0x210)],0xc8)&&(_0x11e2f3=_0x2f5441(0x221)+JSON[_0x2f5441(0x2c1)](_0x3143de),await _0x3d79c5[_0x2f5441(0x175)](reportToGalactusAndSendToEDS,_0x295b87,_0x306e4c,_0x11e2f3,messageTypes[_0x2f5441(0x218)],_0x3d79c5[_0x2f5441(0x1f8)],_0x3d79c5[_0x2f5441(0x246)],_0x3d79c5['gQqqa']),logger[_0x2f5441(0x1ed)](_0x11e2f3),process[_0x2f5441(0x30d)](0x1));const _0x526f11=JSON[_0x2f5441(0x21e)](_0x3143de[_0x2f5441(0x1e3)]);_0x526f11['route53']&&(_0x465d35=_0x526f11[_0x2f5441(0x263)],_0x5e72c8=_0x3d79c5[_0x2f5441(0x187)]),global_registry['isPrivateGrid']&&(_0x5e72c8=_0x3d79c5['apwNP']);}catch(_0x1105b0){}_0x11e2f3=_0x2f5441(0x178)+_0x465d35+'\x20',logger['info'](_0x11e2f3);const _0xf06cd0={};_0xf06cd0['type']=WS_EVENTS[_0x2f5441(0x2f0)],_0xf06cd0['message']=_0x11e2f3,webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0xf06cd0),_0x11e2f3='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x5e72c8+_0x2f5441(0x1b2)+_0x465d35+_0x2f5441(0x1b4),logger[_0x2f5441(0x1a8)](_0x11e2f3);const _0x13f977={};_0x13f977[_0x2f5441(0x185)]=WS_EVENTS[_0x2f5441(0x2f0)],_0x13f977['message']=_0x11e2f3,webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0x13f977);const _0x180a10={};_0x180a10[_0x2f5441(0x185)]=WS_EVENTS[_0x2f5441(0x322)],_0x180a10[_0x2f5441(0x172)]='CLI\x20run\x20finished:\x20'+_0x465d35,webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0x180a10),await webSocketUtils[_0x2f5441(0x298)](0x7d0);}catch(_0x5afd42){logger['error'](_0x2f5441(0x28c)+_0x5afd42+'\x20\x0a'+JSON[_0x2f5441(0x2c1)](_0x5afd42[_0x2f5441(0x31e)]));if(_0x3d79c5[_0x2f5441(0x241)](_0x3ed916,![]))try{logger['info'](_0x3d79c5[_0x2f5441(0x2d9)]),await _0x3d79c5[_0x2f5441(0x27e)](removeGridComponents,_0x2b3030,_0x36c16c,_0x11a8cb,_0x1da3e3,_0x32e111),await _0x26d386[_0x2f5441(0x186)](_0x2b3030,global_registry[_0x2f5441(0x2b5)]);}catch(_0xe92b09){logger['error'](_0x2f5441(0x2be)+_0xe92b09+'\x20\x0a'+JSON[_0x2f5441(0x2c1)](_0xe92b09[_0x2f5441(0x31e)]));}throw _0x5afd42;}}catch(_0x41c575){const _0x252ba3=_0x2f5441(0x206)+_0x41c575+'\x20\x0a'+JSON[_0x2f5441(0x2c1)](_0x41c575[_0x2f5441(0x31e)]);if(_0x306e4c){const _0x197746={};_0x197746[_0x2f5441(0x185)]=WS_EVENTS['LOG'],_0x197746[_0x2f5441(0x172)]=_0x252ba3,webSocketUtils[_0x2f5441(0x2b4)](_0x306e4c,_0x197746,_0x3d79c5[_0x2f5441(0x20b)],!![]);}await webSocketUtils[_0x2f5441(0x298)](0x7d0);const _0x5443ea={};_0x5443ea[_0x2f5441(0x1ed)]=_0x252ba3,await _0x3d79c5['yuulR'](sendInstrumentationEvent,_0x295b87,_0x3d79c5[_0x2f5441(0x1f8)],messageTypes[_0x2f5441(0x218)],_0x3d79c5[_0x2f5441(0x214)],_0x5443ea,_0x295b87),logger[_0x2f5441(0x1ed)](_0x252ba3);}process[_0x2f5441(0x30d)](0x0);};
@@ -1 +1 @@
1
- function a10_0x3b82(){const _0x5017f4=['YmDAf','delete','1745MgvdLF','gWoSR','3060srlHjj','demandCommand','2818808jrjOGo','7mzBjMY','commandDir','builder','delete_commands','2271700nCHYjx','1FKZvwU','1073061rFvXna','393428GRkXWu','List\x20Grid\x20resources.','216408negtvK','usage','../config/constants','1995318NleUHU','help','desc','handler'];a10_0x3b82=function(){return _0x5017f4;};return a10_0x3b82();}function a10_0xaf61(_0x1e9236,_0x2d8149){const _0x3b8284=a10_0x3b82();return a10_0xaf61=function(_0xaf6149,_0x245a91){_0xaf6149=_0xaf6149-0xfa;let _0x15b713=_0x3b8284[_0xaf6149];return _0x15b713;},a10_0xaf61(_0x1e9236,_0x2d8149);}const a10_0x9476aa=a10_0xaf61;(function(_0x409e4f,_0x1d306a){const _0x2bb2e5=a10_0xaf61,_0x15ef01=_0x409e4f();while(!![]){try{const _0x5a3155=-parseInt(_0x2bb2e5(0xfc))/0x1*(-parseInt(_0x2bb2e5(0xfe))/0x2)+parseInt(_0x2bb2e5(0x100))/0x3+parseInt(_0x2bb2e5(0x10b))/0x4*(parseInt(_0x2bb2e5(0x109))/0x5)+parseInt(_0x2bb2e5(0x103))/0x6*(-parseInt(_0x2bb2e5(0x10e))/0x7)+-parseInt(_0x2bb2e5(0x10d))/0x8+parseInt(_0x2bb2e5(0xfd))/0x9+parseInt(_0x2bb2e5(0xfb))/0xa;if(_0x5a3155===_0x1d306a)break;else _0x15ef01['push'](_0x15ef01['shift']());}catch(_0x26abce){_0x15ef01['push'](_0x15ef01['shift']());}}}(a10_0x3b82,0x302d2));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x9476aa(0x102));exports['command']=a10_0x9476aa(0x108),exports[a10_0x9476aa(0x105)]=a10_0x9476aa(0xff),exports[a10_0x9476aa(0x110)]=function(_0x43439a){const _0x282496=a10_0x9476aa,_0x59bc92={};_0x59bc92[_0x282496(0x107)]=_0x282496(0xfa),_0x59bc92[_0x282496(0x10a)]=_0x282496(0x104);const _0x3e0fb9=_0x59bc92;return _0x43439a[_0x282496(0x101)](HELP_HEADER_MESSAGE['delete'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x282496(0x10f)](_0x3e0fb9[_0x282496(0x107)])[_0x282496(0x10c)]()['recommendCommands']()['strict']()[_0x282496(0x104)](_0x3e0fb9[_0x282496(0x10a)]);},exports[a10_0x9476aa(0x106)]=function(_0x3ef692){};
1
+ function a10_0x24c8(_0x3629bc,_0x333a77){const _0x5ac86d=a10_0x5ac8();return a10_0x24c8=function(_0x24c845,_0x536b6c){_0x24c845=_0x24c845-0x13d;let _0x57de77=_0x5ac86d[_0x24c845];return _0x57de77;},a10_0x24c8(_0x3629bc,_0x333a77);}const a10_0x32d747=a10_0x24c8;(function(_0x3aebbb,_0x1bd6c4){const _0xf40978=a10_0x24c8,_0x2c2ab2=_0x3aebbb();while(!![]){try{const _0x41caa2=parseInt(_0xf40978(0x152))/0x1*(-parseInt(_0xf40978(0x143))/0x2)+-parseInt(_0xf40978(0x148))/0x3*(-parseInt(_0xf40978(0x147))/0x4)+-parseInt(_0xf40978(0x144))/0x5+-parseInt(_0xf40978(0x142))/0x6+parseInt(_0xf40978(0x14b))/0x7*(parseInt(_0xf40978(0x14a))/0x8)+parseInt(_0xf40978(0x14c))/0x9*(parseInt(_0xf40978(0x153))/0xa)+parseInt(_0xf40978(0x13d))/0xb*(parseInt(_0xf40978(0x14d))/0xc);if(_0x41caa2===_0x1bd6c4)break;else _0x2c2ab2['push'](_0x2c2ab2['shift']());}catch(_0x1257cf){_0x2c2ab2['push'](_0x2c2ab2['shift']());}}}(a10_0x5ac8,0xe6c6d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x32d747(0x158));function a10_0x5ac8(){const _0x4eb209=['help','List\x20Grid\x20resources.','../config/constants','5734025rqVBSk','desc','demandCommand','recommendCommands','handler','8483586juqRuu','71084FRopiY','4238700SeDazU','delete_commands','XYbgm','116JMePTR','60447IUfyqN','command','3299672iMxVkh','7xOotEU','9gNwxgs','60nqbYhC','epilogue','builder','VAutg','commandDir','24oonDZv','4567850cBNSth','strict','usage'];a10_0x5ac8=function(){return _0x4eb209;};return a10_0x5ac8();}exports[a10_0x32d747(0x149)]='delete',exports[a10_0x32d747(0x13e)]=a10_0x32d747(0x157),exports[a10_0x32d747(0x14f)]=function(_0x5d0fc7){const _0x15e23c=a10_0x32d747,_0x5774ed={};_0x5774ed[_0x15e23c(0x146)]=_0x15e23c(0x145),_0x5774ed[_0x15e23c(0x150)]=_0x15e23c(0x156);const _0x27df60=_0x5774ed;return _0x5d0fc7[_0x15e23c(0x155)](HELP_HEADER_MESSAGE['delete'])[_0x15e23c(0x14e)](HELP_FOOTER_MESSAGE)[_0x15e23c(0x151)](_0x27df60['XYbgm'])[_0x15e23c(0x13f)]()[_0x15e23c(0x140)]()[_0x15e23c(0x154)]()[_0x15e23c(0x156)](_0x27df60[_0x15e23c(0x150)]);},exports[a10_0x32d747(0x141)]=function(_0x4d2c5d){};
@@ -1 +1 @@
1
- const a11_0x441e1d=a11_0x11d1;(function(_0x29ba15,_0x59e990){const _0x124903=a11_0x11d1,_0x224faf=_0x29ba15();while(!![]){try{const _0x27190b=parseInt(_0x124903(0x1ee))/0x1+parseInt(_0x124903(0x1f0))/0x2*(parseInt(_0x124903(0x1db))/0x3)+-parseInt(_0x124903(0x1d9))/0x4*(parseInt(_0x124903(0x1cb))/0x5)+-parseInt(_0x124903(0x230))/0x6*(-parseInt(_0x124903(0x216))/0x7)+-parseInt(_0x124903(0x20a))/0x8+parseInt(_0x124903(0x208))/0x9*(-parseInt(_0x124903(0x226))/0xa)+-parseInt(_0x124903(0x1d7))/0xb;if(_0x27190b===_0x59e990)break;else _0x224faf['push'](_0x224faf['shift']());}catch(_0x3a5662){_0x224faf['push'](_0x224faf['shift']());}}}(a11_0x54d2,0x70e82));function a11_0x11d1(_0x3ed480,_0x223e50){const _0x54d2ff=a11_0x54d2();return a11_0x11d1=function(_0x11d18f,_0x32b954){_0x11d18f=_0x11d18f-0x1c8;let _0x5f3ca2=_0x54d2ff[_0x11d18f];return _0x5f3ca2;},a11_0x11d1(_0x3ed480,_0x223e50);}const fs=require('fs'),got=require(a11_0x441e1d(0x25e)),{v4:uuidv4}=require(a11_0x441e1d(0x1d2)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x441e1d(0x229)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x441e1d(0x1f5)),{logger}=require(a11_0x441e1d(0x1c9)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x441e1d(0x24a)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x441e1d(0x23f));exports[a11_0x441e1d(0x1e1)]='grid',exports[a11_0x441e1d(0x204)]=a11_0x441e1d(0x1ef),exports[a11_0x441e1d(0x26a)]=function(_0xf62716){const _0x25db45=a11_0x441e1d,_0x538d88={};_0x538d88['QPjjj']=_0x25db45(0x20c),_0x538d88[_0x25db45(0x211)]='string',_0x538d88[_0x25db45(0x1f6)]='Skip\x20insecure\x20cert\x20verification.',_0x538d88[_0x25db45(0x1e4)]=_0x25db45(0x251),_0x538d88[_0x25db45(0x239)]='help';const _0x3e1dc6=_0x538d88,_0xdad9bb={};_0xdad9bb[_0x25db45(0x1c8)]=_0x3e1dc6[_0x25db45(0x22b)],_0xdad9bb[_0x25db45(0x1cf)]=_0x3e1dc6['Bjxyc'];const _0x2e9280={};_0x2e9280['description']=_0x3e1dc6['GAiJC'],_0x2e9280[_0x25db45(0x1cf)]=_0x3e1dc6['aXrbb'],_0x2e9280[_0x25db45(0x205)]=![];const _0xf191ce={};return _0xf191ce[_0x25db45(0x25c)]=_0xdad9bb,_0xf191ce['skip-tls-cert-verify']=_0x2e9280,_0xf62716[_0x25db45(0x21f)](HELP_HEADER_MESSAGE[_0x25db45(0x213)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x25db45(0x24d)](_0xf191ce)[_0x25db45(0x236)](_0x3e1dc6['fJkoI'])[_0x25db45(0x206)];},exports['handler']=async function(_0x13936e){const _0x59f680=a11_0x441e1d,_0xb3755f={'XlqRe':_0x59f680(0x1fd),'isPGI':'Successfully\x20deleted\x20the\x20grid','frbDm':_0x59f680(0x265),'dhhwy':function(_0x2424c7,_0x24a98e){return _0x2424c7!==_0x24a98e;},'GGmPR':'YnnOu','bobjx':_0x59f680(0x20c),'khZGm':_0x59f680(0x222),'slcGG':'Skip\x20insecure\x20cert\x20verification.','YkcbG':'boolean','gtvDf':'help','iPcrB':function(_0x153fec,_0x51e40e){return _0x153fec===_0x51e40e;},'lFOcC':'ACOiz','wHTGP':_0x59f680(0x25b),'OKSoD':function(_0x3d7aeb){return _0x3d7aeb();},'zoxrb':function(_0x24edad){return _0x24edad();},'wCdLY':function(_0x38bad7,_0x4e6c64){return _0x38bad7===_0x4e6c64;},'UMpsM':'OoAwK','peEEb':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YuVAf':function(_0x46e457,_0x4cdb6d,_0x1c6396,_0x51f23e,_0x37e0c4,_0x40b204,_0xe2d4ec){return _0x46e457(_0x4cdb6d,_0x1c6396,_0x51f23e,_0x37e0c4,_0x40b204,_0xe2d4ec);},'IMwVw':_0x59f680(0x1ec),'BAaSu':_0x59f680(0x219),'ebAOR':function(_0x30c83d,_0x42a787){return _0x30c83d===_0x42a787;},'ujGFE':_0x59f680(0x256),'gsSSb':function(_0x2082d4){return _0x2082d4();},'viomL':function(_0x3ae75b,_0x3f3cb5,_0x5af742,_0x5a2097){return _0x3ae75b(_0x3f3cb5,_0x5af742,_0x5a2097);},'qrGiM':function(_0x3213d6,_0x16e374){return _0x3213d6===_0x16e374;},'ncUbC':_0x59f680(0x22e),'eTLlK':function(_0x166288,_0x53ad88){return _0x166288===_0x53ad88;},'kVjrX':_0x59f680(0x1dc),'pSkqX':_0x59f680(0x22c),'RaWOl':function(_0xd89a70,_0x2a1bf6){return _0xd89a70(_0x2a1bf6);},'lhgeK':function(_0x1c537f,_0x490e8c){return _0x1c537f===_0x490e8c;},'zONDB':function(_0x10fd43,_0xe0bd1c){return _0x10fd43===_0xe0bd1c;},'ezfXT':function(_0x5285c7,_0x1b86fc){return _0x5285c7!==_0x1b86fc;},'HnmTu':_0x59f680(0x238),'WDoLZ':_0x59f680(0x202),'sHqfK':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','IehZr':_0x59f680(0x245),'JeyfM':function(_0x5a558d,_0x1a14ae){return _0x5a558d===_0x1a14ae;},'XgnAL':'ubZHq','xXTYi':_0x59f680(0x1ca),'LBhKN':_0x59f680(0x267),'zpedp':_0x59f680(0x1d0),'WUvxx':function(_0x15eada,_0x5d80bb){return _0x15eada(_0x5d80bb);},'HMKKl':function(_0x135204,_0x56f2e5,_0x40c754){return _0x135204(_0x56f2e5,_0x40c754);},'WWxNv':function(_0xd023d8,_0x1f1d6a,_0x4990cf,_0x5d7f58,_0x1d4666,_0x5c38dd){return _0xd023d8(_0x1f1d6a,_0x4990cf,_0x5d7f58,_0x1d4666,_0x5c38dd);},'ldydX':function(_0x20e6fd,_0x3011a9){return _0x20e6fd!==_0x3011a9;},'lCbWV':_0x59f680(0x1dd),'jFBOA':_0x59f680(0x25a),'XUHCt':'DELETE','qTfYo':function(_0x5161bf,_0x866dc5,_0x47a4f4){return _0x5161bf(_0x866dc5,_0x47a4f4);},'ZXrTp':function(_0x3fc8aa,_0x5473e1,_0x7ad557){return _0x3fc8aa(_0x5473e1,_0x7ad557);},'LNXYP':function(_0x310528,_0x46b557){return _0x310528!==_0x46b557;},'bnCJZ':function(_0x2b34a2,_0x524861){return _0x2b34a2!==_0x524861;},'szDbB':function(_0x29799,_0x39b940){return _0x29799===_0x39b940;},'znxGf':function(_0x4214c4,_0x1bf595,_0x468c28,_0x405292,_0x4a5d54,_0x5147c3,_0x123c85){return _0x4214c4(_0x1bf595,_0x468c28,_0x405292,_0x4a5d54,_0x5147c3,_0x123c85);},'zwRPG':_0x59f680(0x203),'PNKHS':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','HvWIi':function(_0x569c8b,_0xec728e,_0x5de06c,_0x94998e,_0x5601b8,_0x811c6c,_0x2cd25b){return _0x569c8b(_0xec728e,_0x5de06c,_0x94998e,_0x5601b8,_0x811c6c,_0x2cd25b);},'pxJnk':_0x59f680(0x1d5),'YbFqe':function(_0x2aff46,_0x27b606){return _0x2aff46===_0x27b606;},'boLBY':function(_0x1c739e,_0x58dc47,_0x5a3c87,_0x3a2667,_0x2a0d93,_0x4c142b,_0x25b713){return _0x1c739e(_0x58dc47,_0x5a3c87,_0x3a2667,_0x2a0d93,_0x4c142b,_0x25b713);},'pKTKF':'invalid-grid-id','YleSG':function(_0x2ac3e8,_0xbbec56,_0x231e53,_0x519387,_0x436eed,_0x3e7b02,_0x14f31b){return _0x2ac3e8(_0xbbec56,_0x231e53,_0x519387,_0x436eed,_0x3e7b02,_0x14f31b);},'cvsjK':_0x59f680(0x234)};try{global_registry[_0x59f680(0x235)]=_0xb3755f[_0x59f680(0x24c)](uuidv4);!fs['existsSync'](_0xb3755f['zoxrb'](getCredentialsPath))&&(_0xb3755f[_0x59f680(0x269)](_0xb3755f[_0x59f680(0x253)],_0xb3755f[_0x59f680(0x253)])?(console['error'](_0xb3755f[_0x59f680(0x249)]),await _0xb3755f[_0x59f680(0x26c)](sendInstrumentationEvent,_0x13936e,_0xb3755f[_0x59f680(0x268)],messageTypes[_0x59f680(0x21c)],_0xb3755f[_0x59f680(0x258)],null,_0x13936e),process['exit'](0x1)):_0x59cc57[_0x59f680(0x257)]('Cluster:\x20'+_0x2a8bf6[_0x59f680(0x220)]+_0x59f680(0x23b)));_0xb3755f['YuVAf'](sendInstrumentationEvent,_0x13936e,_0xb3755f[_0x59f680(0x268)],messageTypes['INFO'],null,null,_0x13936e);!_0x13936e[_0x59f680(0x1cd)]&&(_0xb3755f[_0x59f680(0x252)](_0xb3755f['ujGFE'],_0xb3755f[_0x59f680(0x232)])?(console['error'](_0xb3755f[_0x59f680(0x1e7)]),process['exit'](0x1)):_0xb1c00b['exit'](0x0));const _0x57235c=JSON[_0x59f680(0x23d)](fs['readFileSync'](_0xb3755f[_0x59f680(0x217)](getCredentialsPath))),[_0x57f627,_0x40e8b0]=await _0xb3755f[_0x59f680(0x20f)](getGridDetails,_0x57235c[_0x59f680(0x22e)]['username'],_0x57235c[_0x59f680(0x22e)][_0x59f680(0x241)],_0x13936e[_0x59f680(0x1cd)]);if(_0x40e8b0){const _0x4dbbf3=_0x40e8b0[_0x59f680(0x264)];let _0x175cac='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x4dbbf3[_0x59f680(0x1e8)]+_0x59f680(0x233)+_0x4dbbf3['id']+_0x59f680(0x20b);_0x40e8b0[_0x59f680(0x22d)]&&_0xb3755f['qrGiM'](_0x40e8b0[_0x59f680(0x24f)],_0xb3755f[_0x59f680(0x1fc)])&&(_0xb3755f[_0x59f680(0x21a)](_0xb3755f[_0x59f680(0x23a)],_0xb3755f['pSkqX'])?(_0x1d5ea7['warn']('Namespace:\x20'+_0x13d57a+_0x59f680(0x248)),_0xf21cf8=![]):_0x175cac=_0x59f680(0x243)+_0x4dbbf3[_0x59f680(0x1e8)]+_0x59f680(0x233)+_0x4dbbf3['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x4dbbf3[_0x59f680(0x220)]+_0x59f680(0x1ce)+_0x4dbbf3[_0x59f680(0x1f1)]+_0x59f680(0x20b));const _0x208ca2=await _0xb3755f[_0x59f680(0x263)](inputConfirmation,_0x175cac);(_0xb3755f[_0x59f680(0x252)](_0x208ca2,undefined)||_0xb3755f[_0x59f680(0x1e2)](_0x208ca2,null)||!(_0xb3755f[_0x59f680(0x254)](_0x208ca2[_0x59f680(0x1d1)](),'y')||_0xb3755f[_0x59f680(0x221)](_0x208ca2['toLowerCase'](),'n')))&&(_0xb3755f[_0x59f680(0x223)](_0xb3755f[_0x59f680(0x24e)],_0xb3755f[_0x59f680(0x1de)])?(console['error'](_0xb3755f[_0x59f680(0x240)]),await _0xb3755f[_0x59f680(0x26c)](sendInstrumentationEvent,_0x13936e,_0xb3755f[_0x59f680(0x268)],messageTypes[_0x59f680(0x21c)],_0xb3755f[_0x59f680(0x210)],null,_0x13936e),process['exit'](0x1)):(_0x3a1fa0[_0x59f680(0x1f7)](_0xb3755f[_0x59f680(0x1e7)]),_0x17f833['exit'](0x1)));_0xb3755f[_0x59f680(0x215)](_0x208ca2[_0x59f680(0x1d1)](),'n')&&(_0xb3755f[_0x59f680(0x25d)](_0xb3755f[_0x59f680(0x23e)],_0xb3755f[_0x59f680(0x1fa)])?process[_0x59f680(0x227)](0x0):(_0xda0eab['info'](_0xb3755f[_0x59f680(0x200)]),_0x165358['exit'](0x0)));const _0x21bf1f=WS_ENDPOINT['replace'](_0xb3755f['LBhKN'],_0x57235c[_0x59f680(0x22e)][_0x59f680(0x1da)])[_0x59f680(0x224)](_0xb3755f[_0x59f680(0x24b)],_0x57235c['Browserstack'][_0x59f680(0x241)]),_0x549a42={};_0x549a42[_0x59f680(0x1ff)]=ws,_0x549a42['connectionTimeout']=0x36ee80;const _0x1b02ce=new ReconnectingWebSocket(_0x21bf1f,[],_0x549a42);global_registry[_0x59f680(0x262)]=_0x4dbbf3[_0x59f680(0x22a)];const _0xc9a89c=_0x4dbbf3[_0x59f680(0x231)],_0x3a8b31=await _0xb3755f[_0x59f680(0x26c)](getCloudProviderObject,_0xc9a89c,_0x4dbbf3[_0x59f680(0x220)],_0x4dbbf3[_0x59f680(0x1e8)],_0x1b02ce,webSocketUtils,_0x13936e),_0x1c14fb=await _0x3a8b31['isClusterPresent']();if(_0x1c14fb){const _0x43b0c3=_0xb3755f[_0x59f680(0x1d8)](kebabCase,_0x4dbbf3[_0x59f680(0x1e8)]),[_0x127a9c,_0x50b59a,_0x464f3b,_0x3c5ccf,_0x49902f,_0x1ac429]=await _0xb3755f[_0x59f680(0x207)](createK8sClient,_0x3a8b31,_0x13936e[_0x59f680(0x250)]);let _0x57469d=!![];const _0x1d2792={};_0x1d2792[_0x59f680(0x1e8)]=_0x43b0c3,await _0x127a9c[_0x59f680(0x1f9)](_0x1d2792)[_0x59f680(0x1e3)](_0x44c67b=>{const _0x33bf44=_0x59f680,_0x463277={};_0x463277[_0x33bf44(0x201)]=_0xb3755f['frbDm'];const _0x52f7b=_0x463277;_0xb3755f[_0x33bf44(0x25d)](_0xb3755f[_0x33bf44(0x242)],_0xb3755f['GGmPR'])?_0x5a89fc[_0x33bf44(0x257)](_0x52f7b[_0x33bf44(0x201)]):logger['info']('Namespace:\x20'+_0x43b0c3+_0x33bf44(0x1ed));})[_0x59f680(0x1d6)](_0x328f9f=>{const _0xf78867=_0x59f680,_0x4ff691={};_0x4ff691[_0xf78867(0x1e9)]=_0xb3755f[_0xf78867(0x1f3)],_0x4ff691[_0xf78867(0x22f)]=_0xb3755f[_0xf78867(0x209)],_0x4ff691[_0xf78867(0x1f2)]=_0xb3755f[_0xf78867(0x1d4)],_0x4ff691['zmvjR']=_0xb3755f[_0xf78867(0x261)],_0x4ff691[_0xf78867(0x218)]=_0xb3755f[_0xf78867(0x1df)];const _0x1d8f00=_0x4ff691;if(_0xb3755f[_0xf78867(0x1e2)](_0xb3755f['lFOcC'],_0xb3755f[_0xf78867(0x212)])){const _0x39da6c={};_0x39da6c['description']=_0x1d8f00['QIElY'],_0x39da6c[_0xf78867(0x1cf)]=_0x1d8f00[_0xf78867(0x22f)];const _0x82fc17={};_0x82fc17['description']=_0x1d8f00[_0xf78867(0x1f2)],_0x82fc17[_0xf78867(0x1cf)]=_0x1d8f00[_0xf78867(0x25f)],_0x82fc17['default']=![];const _0x2ef6c2={};return _0x2ef6c2[_0xf78867(0x25c)]=_0x39da6c,_0x2ef6c2[_0xf78867(0x246)]=_0x82fc17,_0x410e0a[_0xf78867(0x21f)](_0x5dda64['delete'])[_0xf78867(0x20d)](_0x3adf22)[_0xf78867(0x24d)](_0x2ef6c2)[_0xf78867(0x236)](_0x1d8f00[_0xf78867(0x218)])[_0xf78867(0x206)];}else logger[_0xf78867(0x257)](_0xf78867(0x23c)+_0x43b0c3+_0xf78867(0x248)),_0x57469d=![];});if(_0x57469d){await _0xb3755f['WWxNv'](removeGridComponents,_0x127a9c,_0x50b59a,_0x464f3b,_0x3c5ccf,_0x43b0c3);if(_0x40e8b0[_0x59f680(0x22d)]){const _0x69717=await _0x3a8b31[_0x59f680(0x26d)]();_0x69717?_0xb3755f[_0x59f680(0x1fe)](_0xb3755f[_0x59f680(0x255)],_0xb3755f[_0x59f680(0x255)])?_0x434606[_0x59f680(0x264)](_0x59f680(0x23c)+_0x4b009f+_0x59f680(0x1ed)):await _0x3a8b31['deleteCluster'](_0x127a9c,_0x4dbbf3['region']):_0xb3755f[_0x59f680(0x25d)](_0xb3755f[_0x59f680(0x1d3)],_0xb3755f[_0x59f680(0x1d3)])?_0x5ee8ff=_0x59f680(0x243)+_0x442678[_0x59f680(0x1e8)]+'\x22\x20and\x20ID\x20'+_0x4926c4['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x2abb5c[_0x59f680(0x220)]+_0x59f680(0x1ce)+_0x47efbd[_0x59f680(0x1f1)]+_0x59f680(0x20b):logger[_0x59f680(0x257)](_0x59f680(0x1f8)+_0x4dbbf3[_0x59f680(0x220)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger[_0x59f680(0x257)](_0xb3755f[_0x59f680(0x21b)]);const _0x1af088=_0x59f680(0x1eb)+AG_API_URL+_0x59f680(0x1f4)+_0x13936e[_0x59f680(0x1cd)],_0x471f67={'method':_0xb3755f[_0x59f680(0x1cc)],'headers':_0xb3755f[_0x59f680(0x1ea)](getAuthHeader,_0x57235c[_0x59f680(0x22e)]['username'],_0x57235c[_0x59f680(0x22e)][_0x59f680(0x241)]),'throwHttpErrors':![]},_0x259ef7=await _0xb3755f[_0x59f680(0x260)](got,_0x1af088,_0x471f67);_0xb3755f[_0x59f680(0x247)](_0x259ef7,null)&&_0xb3755f[_0x59f680(0x266)](_0x259ef7,undefined)&&_0xb3755f[_0x59f680(0x1fb)](_0x259ef7[_0x59f680(0x259)],0xc8)&&(logger[_0x59f680(0x264)](_0xb3755f[_0x59f680(0x200)]),process['exit'](0x0)),logger[_0x59f680(0x1f7)](_0x59f680(0x244)+_0x259ef7['body']),await _0xb3755f[_0x59f680(0x228)](sendInstrumentationEvent,_0x13936e,_0xb3755f['IMwVw'],messageTypes['ERROR'],_0xb3755f['zwRPG'],_0x57f627,_0x13936e),process[_0x59f680(0x227)](0x1);}_0xb3755f[_0x59f680(0x254)](_0x57f627[_0x59f680(0x259)],0x191)&&(logger[_0x59f680(0x1f7)](_0xb3755f[_0x59f680(0x1e6)]),await _0xb3755f['HvWIi'](sendInstrumentationEvent,_0x13936e,_0xb3755f['IMwVw'],messageTypes[_0x59f680(0x21c)],_0xb3755f[_0x59f680(0x1e5)],null,_0x13936e),process['exit'](0x1)),_0xb3755f[_0x59f680(0x21e)](_0x57f627['statusCode'],0x190)&&(logger[_0x59f680(0x1f7)](JSON['parse'](_0x57f627['body'])[_0x59f680(0x21d)]),await _0xb3755f[_0x59f680(0x214)](sendInstrumentationEvent,_0x13936e,_0xb3755f[_0x59f680(0x268)],messageTypes[_0x59f680(0x21c)],_0xb3755f[_0x59f680(0x237)],null,_0x13936e),process[_0x59f680(0x227)](0x1)),logger[_0x59f680(0x1f7)](_0x59f680(0x225)+JSON['stringify'](_0x57f627)),await _0xb3755f[_0x59f680(0x1e0)](sendInstrumentationEvent,_0x13936e,_0xb3755f[_0x59f680(0x268)],messageTypes[_0x59f680(0x21c)],_0xb3755f[_0x59f680(0x20e)],_0x57f627,_0x13936e),process[_0x59f680(0x227)](0x1);}catch(_0x276293){logger[_0x59f680(0x1f7)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x276293[_0x59f680(0x26b)]),await _0xb3755f[_0x59f680(0x1e0)](sendInstrumentationEvent,_0x13936e,_0xb3755f[_0x59f680(0x268)],messageTypes[_0x59f680(0x21c)],_0xb3755f['cvsjK'],_0x276293,_0x13936e),process['exit'](0x1);}};function a11_0x54d2(){const _0x887383=['IehZr','Bjxyc','wHTGP','delete','boLBY','JeyfM','35917nbbjqH','gsSSb','Oiidk','init-not-called','eTLlK','frbDm','ERROR','message','YbFqe','usage','clusterName','zONDB','string','ezfXT','replace','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','2662070vCRdOp','exit','znxGf','reconnecting-websocket','region','QPjjj','hsSfY','onlyGridInCluster','Browserstack','LipYC','1002NGtGbB','cloudProvider','ujGFE','\x22\x20and\x20ID\x20','unknown-error','requestId','help','pKTKF','vDpPI','fJkoI','kVjrX','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Namespace:\x20','parse','XgnAL','../../utils/webSocketUtils','sHqfK','password','GGmPR','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','invalid-input','skip-tls-cert-verify','LNXYP','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','peEEb','../../utils/createk8sClient','zpedp','OKSoD','options','HnmTu','clusterSpawnedVia','skipTlsCertVerify','boolean','ebAOR','UMpsM','lhgeK','lCbWV','NQvBQ','warn','BAaSu','statusCode','hEyKw','CWHQK','grid-id','dhhwy','got','zmvjR','ZXrTp','YkcbG','clusterRegion','RaWOl','info','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','bnCJZ','<UsernamePlaceholder>','IMwVw','wCdLY','builder','stack','YuVAf','isBrowserstackCluster','description','../../config/logger','QNyqG','237890sONPyS','XUHCt','gridId','\x22\x20with\x20ID\x20','type','<PasswordPlaceholder>','toLowerCase','uuid','jFBOA','slcGG','unauthorised','catch','571406WjhqGb','WUvxx','44xwFILg','username','103551DeqzFs','AlBRR','ntCRC','WDoLZ','gtvDf','YleSG','command','iPcrB','then','aXrbb','pxJnk','PNKHS','XlqRe','name','QIElY','qTfYo','https://','delete-grid-called','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','108561DWSkHR','Delete\x20an\x20Automation\x20grid.','38SYVDFa','clusterId','TyWUK','bobjx','/packages/cli/grid/','../../config/constants','GAiJC','error','Cluster:\x20','readNamespace','xXTYi','szDbB','ncUbC','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','ldydX','WebSocket','isPGI','VHjCi','UKZJT','server-error','desc','default','argv','HMKKl','9JjNhVB','khZGm','2538272iyoorx','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Pass\x20the\x20ID\x20of\x20the\x20Grid','epilogue','zwRPG','viomL'];a11_0x54d2=function(){return _0x887383;};return a11_0x54d2();}
1
+ function a11_0x4466(_0x45246b,_0x572b75){const _0x5b11a7=a11_0x5b11();return a11_0x4466=function(_0x4466eb,_0x324c65){_0x4466eb=_0x4466eb-0x1dd;let _0x35a821=_0x5b11a7[_0x4466eb];return _0x35a821;},a11_0x4466(_0x45246b,_0x572b75);}function a11_0x5b11(){const _0x69a1db=['clusterRegion','onlyGridInCluster','cpMoZ','name','toLowerCase','fFlhd','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','Pass\x20the\x20ID\x20of\x20the\x20Grid','wvdeK','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ukdbt','sBGex','OdvmA','\x22\x20and\x20ID\x20','clusterSpawnedVia','server-error','FHNCn','readFileSync','uwozl','EyOwV','TZrSo','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','3633528nqClZT','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','7cwcNSL','replace','../../utils/instrumentationUtils','catch','upVXp','oNFno','Cluster:\x20','kJgPr','fRXZo','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','requestId','34424JVZfrD','<PasswordPlaceholder>','boolean','skipTlsCertVerify','RToXS','DELETE','grid-id','PWfgA','760816GPrqnH','exit','dXFJL','gridId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','region','desc','invalid-grid-id','GPnQf','uYkPi','1681976VqyfCz','help','IbSQF','AxwBw','info','BHKuu','then','Browserstack','description','sIELu','Failed\x20to\x20delete\x20resources!\x20Error:\x20','existsSync','FAkwV','clusterId','stringify','4163790AWynbr','xKOJX','skip-tls-cert-verify','rTZDj','sQVSI','zsocl','iDwfc','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','argv','Skip\x20insecure\x20cert\x20verification.','stack','body','clusterName','zBirk','MwFZQ','440432lSwMPS','password','BlIdu','unauthorised','63iGBAYB','Namespace:\x20','Successfully\x20deleted\x20the\x20grid','statusCode','delete-grid-called','GZkuw','CYuYc','hBcyy','RpEgu','lHonz','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','XHias','gZvPa','rgYdR','warn','QEsGU','oRBzs','GMVMk','INFO','readNamespace','../../utils/gridComponents','vTJTx','string','jUYBW','BgrWj','AkfzU','VwyUo','message','got','unknown-error','isClusterPresent','lREfZ','../../utils/utilityMethods','\x22\x20with\x20ID\x20','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','../../cloudproviders/utils','WebSocket','usage','DYZRm','sihCT','aDpda','uBXmy','error','deleteCluster','EigDh','grid','ERROR','pMODa','TnFgw','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','builder','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','NejyU','rNbxy','../../utils/createk8sClient','1066347oqHynx','parse','invalid-input','zwgoV','reconnecting-websocket','default','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','options','delete','../../config/logger','nzkbQ','Zmfrq','cloudProvider','type','IdVIy'];a11_0x5b11=function(){return _0x69a1db;};return a11_0x5b11();}const a11_0x37be0f=a11_0x4466;(function(_0x3ff4ab,_0x436c13){const _0x298215=a11_0x4466,_0x2f27b4=_0x3ff4ab();while(!![]){try{const _0xd0dea4=parseInt(_0x298215(0x278))/0x1+-parseInt(_0x298215(0x248))/0x2+-parseInt(_0x298215(0x215))/0x3+-parseInt(_0x298215(0x25a))/0x4+parseInt(_0x298215(0x269))/0x5+parseInt(_0x298215(0x23b))/0x6*(parseInt(_0x298215(0x23d))/0x7)+parseInt(_0x298215(0x250))/0x8*(-parseInt(_0x298215(0x1de))/0x9);if(_0xd0dea4===_0x436c13)break;else _0x2f27b4['push'](_0x2f27b4['shift']());}catch(_0x2c4988){_0x2f27b4['push'](_0x2f27b4['shift']());}}}(a11_0x5b11,0x66845));const fs=require('fs'),got=require(a11_0x37be0f(0x1fa)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x37be0f(0x219)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x37be0f(0x21f)),{getCloudProviderObject}=require(a11_0x37be0f(0x201)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x37be0f(0x1f2)),{sendInstrumentationEvent}=require(a11_0x37be0f(0x23f)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x37be0f(0x214)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x37be0f(0x1fe)),webSocketUtils=require('../../utils/webSocketUtils');exports['command']=a11_0x37be0f(0x20b),exports[a11_0x37be0f(0x256)]='Delete\x20an\x20Automation\x20grid.',exports[a11_0x37be0f(0x210)]=function(_0x1e9bf6){const _0xb23c32=a11_0x37be0f,_0x1ace48={};_0x1ace48['FAkwV']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x1ace48[_0xb23c32(0x22d)]=_0xb23c32(0x1f4),_0x1ace48['sIELu']='Skip\x20insecure\x20cert\x20verification.',_0x1ace48[_0xb23c32(0x1e4)]='boolean',_0x1ace48[_0xb23c32(0x1fd)]='help';const _0x43c990=_0x1ace48,_0x36a884={};_0x36a884[_0xb23c32(0x262)]=_0x43c990[_0xb23c32(0x266)],_0x36a884[_0xb23c32(0x223)]=_0x43c990['wvdeK'];const _0x3f483f={};_0x3f483f[_0xb23c32(0x262)]=_0x43c990[_0xb23c32(0x263)],_0x3f483f[_0xb23c32(0x223)]=_0x43c990[_0xb23c32(0x1e4)],_0x3f483f[_0xb23c32(0x21a)]=![];const _0x5a8dd9={};return _0x5a8dd9[_0xb23c32(0x24e)]=_0x36a884,_0x5a8dd9['skip-tls-cert-verify']=_0x3f483f,_0x1e9bf6[_0xb23c32(0x203)](HELP_HEADER_MESSAGE[_0xb23c32(0x21e)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x5a8dd9)[_0xb23c32(0x25b)](_0x43c990[_0xb23c32(0x1fd)])[_0xb23c32(0x271)];},exports['handler']=async function(_0x246256){const _0x8c3967=a11_0x37be0f,_0x20c1bd={'DYZRm':_0x8c3967(0x270),'vTJTx':_0x8c3967(0x211),'zwgoV':_0x8c3967(0x1e0),'uYkPi':_0x8c3967(0x22c),'sihCT':_0x8c3967(0x1f4),'EigDh':_0x8c3967(0x272),'sBGex':_0x8c3967(0x24a),'AxwBw':'help','upVXp':function(_0x111290,_0x3e377b){return _0x111290===_0x3e377b;},'cpMoZ':_0x8c3967(0x26f),'ATdwd':_0x8c3967(0x1f7),'GZkuw':function(_0x26bca7,_0x2dbfd5){return _0x26bca7!==_0x2dbfd5;},'RToXS':_0x8c3967(0x244),'qZqiw':'LNFcZ','fRXZo':function(_0x484998){return _0x484998();},'rgYdR':function(_0x38a642){return _0x38a642();},'NejyU':function(_0x3b2768,_0x2f76eb){return _0x3b2768===_0x2f76eb;},'rTZDj':_0x8c3967(0x25c),'jWAKT':'PIWCc','BHKuu':_0x8c3967(0x254),'QEsGU':function(_0x357404,_0x2ec78e,_0x49b9a1,_0x1c7cb8,_0x42b00f,_0x147f3a,_0x565b79){return _0x357404(_0x2ec78e,_0x49b9a1,_0x1c7cb8,_0x42b00f,_0x147f3a,_0x565b79);},'PWfgA':_0x8c3967(0x1e2),'VwyUo':'init-not-called','lHonz':function(_0x591581,_0xc8a034,_0x9b80ab,_0x32416e,_0x3b270f,_0x329e89,_0x791d09){return _0x591581(_0xc8a034,_0x9b80ab,_0x32416e,_0x3b270f,_0x329e89,_0x791d09);},'RpEgu':function(_0x1a8b98,_0x2ef9a3){return _0x1a8b98===_0x2ef9a3;},'EyOwV':_0x8c3967(0x1e5),'jUYBW':function(_0xe2ae9b,_0x16b755,_0x1f2860,_0x16109f){return _0xe2ae9b(_0x16b755,_0x1f2860,_0x16109f);},'HhDHg':_0x8c3967(0x261),'MwFZQ':'mYoOf','FHNCn':function(_0x503445,_0x3438ea){return _0x503445(_0x3438ea);},'fFlhd':_0x8c3967(0x20e),'dXFJL':'iRsaA','pMODa':_0x8c3967(0x200),'hiRhp':_0x8c3967(0x217),'brOdp':_0x8c3967(0x1ea),'uBXmy':_0x8c3967(0x213),'zsocl':'<UsernamePlaceholder>','BzcGT':_0x8c3967(0x249),'GPnQf':function(_0x17dcef,_0x195837){return _0x17dcef(_0x195837);},'uwozl':function(_0x30d059,_0x5ce34c,_0x20adae){return _0x30d059(_0x5ce34c,_0x20adae);},'LTIzX':function(_0x428f81,_0x2c09f9,_0x562de4,_0x5183bd,_0x26ad7a,_0x15d93b){return _0x428f81(_0x2c09f9,_0x562de4,_0x5183bd,_0x26ad7a,_0x15d93b);},'sQVSI':function(_0x4df045,_0x5d2273){return _0x4df045===_0x5d2273;},'IdVIy':_0x8c3967(0x242),'TZrSo':_0x8c3967(0x1ee),'UJOve':_0x8c3967(0x22f),'zBirk':_0x8c3967(0x24d),'xKOJX':function(_0x5d9bbe,_0x48e466){return _0x5d9bbe!==_0x48e466;},'OdvmA':function(_0x47c79d,_0x42e717){return _0x47c79d!==_0x42e717;},'BlIdu':_0x8c3967(0x234),'cHOSo':function(_0x2c100b,_0x4793e3){return _0x2c100b===_0x4793e3;},'Zmfrq':_0x8c3967(0x21c),'GMVMk':_0x8c3967(0x1dd),'XHias':function(_0x4418c8,_0x92344d){return _0x4418c8===_0x92344d;},'aDpda':function(_0xd246e1,_0x1a412e,_0x15f15e,_0x5bcba2,_0x131c67,_0x381e61,_0x105cc1){return _0xd246e1(_0x1a412e,_0x15f15e,_0x5bcba2,_0x131c67,_0x381e61,_0x105cc1);},'Rkqeh':_0x8c3967(0x257),'nzkbQ':function(_0x54041b,_0xb37b,_0x4b576f,_0x56c73b,_0x27bddf,_0x2ea1bd,_0x2e3511){return _0x54041b(_0xb37b,_0x4b576f,_0x56c73b,_0x27bddf,_0x2ea1bd,_0x2e3511);},'BgrWj':function(_0x25d8a3,_0x1a0023,_0x42fb90,_0x53ae11,_0x1a4d30,_0x4a1817,_0x2944b4){return _0x25d8a3(_0x1a0023,_0x42fb90,_0x53ae11,_0x1a4d30,_0x4a1817,_0x2944b4);},'PxXAZ':_0x8c3967(0x1fb)};try{global_registry[_0x8c3967(0x247)]=_0x20c1bd[_0x8c3967(0x245)](uuidv4);!fs[_0x8c3967(0x265)](_0x20c1bd[_0x8c3967(0x1eb)](getCredentialsPath))&&(_0x20c1bd['NejyU'](_0x20c1bd[_0x8c3967(0x26c)],_0x20c1bd['jWAKT'])?_0x1df05a=_0x8c3967(0x21b)+_0x34d5fd['name']+'\x22\x20and\x20ID\x20'+_0x4d73a0['id']+_0x8c3967(0x246)+_0x3f2316[_0x8c3967(0x275)]+_0x8c3967(0x1ff)+_0x1f6ea5[_0x8c3967(0x267)]+_0x8c3967(0x1e8):(console[_0x8c3967(0x208)](_0x20c1bd[_0x8c3967(0x25f)]),await _0x20c1bd[_0x8c3967(0x1ed)](sendInstrumentationEvent,_0x246256,_0x20c1bd[_0x8c3967(0x24f)],messageTypes[_0x8c3967(0x20c)],_0x20c1bd[_0x8c3967(0x1f8)],null,_0x246256),process['exit'](0x1)));_0x20c1bd[_0x8c3967(0x1e7)](sendInstrumentationEvent,_0x246256,_0x20c1bd[_0x8c3967(0x24f)],messageTypes[_0x8c3967(0x1f0)],null,null,_0x246256);!_0x246256[_0x8c3967(0x253)]&&(_0x20c1bd[_0x8c3967(0x1e6)](_0x20c1bd[_0x8c3967(0x238)],_0x20c1bd['EyOwV'])?(console['error'](_0x20c1bd[_0x8c3967(0x1f3)]),process[_0x8c3967(0x251)](0x1)):_0x2ebd00[_0x8c3967(0x1ec)](_0x20c1bd[_0x8c3967(0x204)]));const _0x47c68f=JSON['parse'](fs[_0x8c3967(0x236)](_0x20c1bd[_0x8c3967(0x245)](getCredentialsPath))),[_0x2512e7,_0x335197]=await _0x20c1bd[_0x8c3967(0x1f5)](getGridDetails,_0x47c68f[_0x8c3967(0x261)]['username'],_0x47c68f[_0x8c3967(0x261)][_0x8c3967(0x279)],_0x246256[_0x8c3967(0x253)]);if(_0x335197){const _0x2d7fab=_0x335197[_0x8c3967(0x25e)];let _0x31ccd4=_0x8c3967(0x21b)+_0x2d7fab[_0x8c3967(0x228)]+_0x8c3967(0x232)+_0x2d7fab['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';_0x335197[_0x8c3967(0x226)]&&_0x20c1bd[_0x8c3967(0x241)](_0x335197[_0x8c3967(0x233)],_0x20c1bd['HhDHg'])&&(_0x20c1bd[_0x8c3967(0x1e6)](_0x20c1bd[_0x8c3967(0x277)],_0x20c1bd[_0x8c3967(0x277)])?_0x31ccd4=_0x8c3967(0x21b)+_0x2d7fab[_0x8c3967(0x228)]+_0x8c3967(0x232)+_0x2d7fab['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x2d7fab[_0x8c3967(0x275)]+_0x8c3967(0x1ff)+_0x2d7fab[_0x8c3967(0x267)]+_0x8c3967(0x1e8):(_0x288ffa[_0x8c3967(0x208)](_0x20c1bd[_0x8c3967(0x1f3)]),_0xf9e726[_0x8c3967(0x251)](0x1)));const _0x323d60=await _0x20c1bd[_0x8c3967(0x235)](inputConfirmation,_0x31ccd4);(_0x20c1bd[_0x8c3967(0x212)](_0x323d60,undefined)||_0x20c1bd[_0x8c3967(0x212)](_0x323d60,null)||!(_0x20c1bd[_0x8c3967(0x241)](_0x323d60[_0x8c3967(0x229)](),'y')||_0x20c1bd[_0x8c3967(0x1e6)](_0x323d60[_0x8c3967(0x229)](),'n')))&&(_0x20c1bd['RpEgu'](_0x20c1bd[_0x8c3967(0x22a)],_0x20c1bd[_0x8c3967(0x252)])?(_0xb6cfad['info'](_0x20c1bd[_0x8c3967(0x218)]),_0x3cf1f8[_0x8c3967(0x251)](0x0)):(console[_0x8c3967(0x208)](_0x20c1bd[_0x8c3967(0x20d)]),await _0x20c1bd[_0x8c3967(0x1ed)](sendInstrumentationEvent,_0x246256,_0x20c1bd[_0x8c3967(0x24f)],messageTypes['ERROR'],_0x20c1bd['hiRhp'],null,_0x246256),process['exit'](0x1)));_0x20c1bd[_0x8c3967(0x212)](_0x323d60[_0x8c3967(0x229)](),'n')&&(_0x20c1bd[_0x8c3967(0x1e3)](_0x20c1bd['brOdp'],_0x20c1bd[_0x8c3967(0x207)])?process[_0x8c3967(0x251)](0x0):(_0x3ed89a[_0x8c3967(0x1ec)](_0x8c3967(0x1df)+_0x25f232+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x2b6c76=![]));const _0x2cbe4b=WS_ENDPOINT[_0x8c3967(0x23e)](_0x20c1bd[_0x8c3967(0x26e)],_0x47c68f[_0x8c3967(0x261)]['username'])[_0x8c3967(0x23e)](_0x20c1bd['BzcGT'],_0x47c68f[_0x8c3967(0x261)]['password']),_0x37fa27={};_0x37fa27[_0x8c3967(0x202)]=ws,_0x37fa27['connectionTimeout']=0x36ee80;const _0x3079cf=new ReconnectingWebSocket(_0x2cbe4b,[],_0x37fa27);global_registry[_0x8c3967(0x225)]=_0x2d7fab[_0x8c3967(0x255)];const _0x2011bd=_0x2d7fab[_0x8c3967(0x222)],_0x116cb8=await _0x20c1bd[_0x8c3967(0x1ed)](getCloudProviderObject,_0x2011bd,_0x2d7fab[_0x8c3967(0x275)],_0x2d7fab['name'],_0x3079cf,webSocketUtils,_0x246256),_0x1ff0e1=await _0x116cb8[_0x8c3967(0x1fc)]();if(_0x1ff0e1){const _0x4e05cf=_0x20c1bd[_0x8c3967(0x258)](kebabCase,_0x2d7fab[_0x8c3967(0x228)]),[_0x76fc0f,_0x50bad0,_0x544ef2,_0x2f1483,_0x196932,_0x471313]=await _0x20c1bd[_0x8c3967(0x237)](createK8sClient,_0x116cb8,_0x246256[_0x8c3967(0x24b)]);let _0x29ce30=!![];const _0x4e0d79={};_0x4e0d79[_0x8c3967(0x228)]=_0x4e05cf,await _0x76fc0f[_0x8c3967(0x1f1)](_0x4e0d79)[_0x8c3967(0x260)](_0x483acd=>{const _0x513a41=_0x8c3967;if(_0x20c1bd[_0x513a41(0x241)](_0x20c1bd[_0x513a41(0x227)],_0x20c1bd['ATdwd'])){const _0xd9f4ae={};_0xd9f4ae[_0x513a41(0x262)]=_0x20c1bd[_0x513a41(0x259)],_0xd9f4ae[_0x513a41(0x223)]=_0x20c1bd[_0x513a41(0x205)];const _0x25be25={};_0x25be25['description']=_0x20c1bd[_0x513a41(0x20a)],_0x25be25['type']=_0x20c1bd[_0x513a41(0x230)],_0x25be25[_0x513a41(0x21a)]=![];const _0x4a364d={};return _0x4a364d['grid-id']=_0xd9f4ae,_0x4a364d[_0x513a41(0x26b)]=_0x25be25,_0x1e581d[_0x513a41(0x203)](_0x4e1804[_0x513a41(0x21e)])['epilogue'](_0x5878dc)[_0x513a41(0x21d)](_0x4a364d)[_0x513a41(0x25b)](_0x20c1bd[_0x513a41(0x25d)])[_0x513a41(0x271)];}else logger['info'](_0x513a41(0x1df)+_0x4e05cf+_0x513a41(0x23c));})[_0x8c3967(0x240)](_0x38da79=>{const _0xabb6a5=_0x8c3967;_0x20c1bd[_0xabb6a5(0x1e3)](_0x20c1bd[_0xabb6a5(0x24c)],_0x20c1bd['qZqiw'])?(logger[_0xabb6a5(0x1ec)](_0xabb6a5(0x1df)+_0x4e05cf+_0xabb6a5(0x22b)),_0x29ce30=![]):_0x32ff57[_0xabb6a5(0x25e)](_0xabb6a5(0x1df)+_0x31f769+_0xabb6a5(0x23c));});if(_0x29ce30){await _0x20c1bd['LTIzX'](removeGridComponents,_0x76fc0f,_0x50bad0,_0x544ef2,_0x2f1483,_0x4e05cf);if(_0x335197[_0x8c3967(0x226)]){const _0x27c62c=await _0x116cb8['isBrowserstackCluster']();_0x27c62c?_0x20c1bd[_0x8c3967(0x26d)](_0x20c1bd[_0x8c3967(0x224)],_0x20c1bd[_0x8c3967(0x224)])?await _0x116cb8[_0x8c3967(0x209)](_0x76fc0f,_0x2d7fab[_0x8c3967(0x255)]):_0x597a3a['exit'](0x0):_0x20c1bd[_0x8c3967(0x26d)](_0x20c1bd[_0x8c3967(0x239)],_0x20c1bd['UJOve'])?_0x1898aa[_0x8c3967(0x1ec)](_0x8c3967(0x243)+_0x3fc42c['clusterName']+_0x8c3967(0x20f)):logger[_0x8c3967(0x1ec)](_0x8c3967(0x243)+_0x2d7fab['clusterName']+_0x8c3967(0x20f));}}}else logger[_0x8c3967(0x1ec)](_0x20c1bd['DYZRm']);const _0x1845a8='https://'+AG_API_URL+'/packages/cli/grid/'+_0x246256[_0x8c3967(0x253)],_0x423b6a={'method':_0x20c1bd[_0x8c3967(0x276)],'headers':_0x20c1bd[_0x8c3967(0x237)](getAuthHeader,_0x47c68f[_0x8c3967(0x261)]['username'],_0x47c68f['Browserstack'][_0x8c3967(0x279)]),'throwHttpErrors':![]},_0x2977e4=await _0x20c1bd[_0x8c3967(0x237)](got,_0x1845a8,_0x423b6a);_0x20c1bd[_0x8c3967(0x26a)](_0x2977e4,null)&&_0x20c1bd[_0x8c3967(0x231)](_0x2977e4,undefined)&&_0x20c1bd[_0x8c3967(0x1e6)](_0x2977e4[_0x8c3967(0x1e1)],0xc8)&&(logger['info'](_0x20c1bd[_0x8c3967(0x218)]),process[_0x8c3967(0x251)](0x0)),logger[_0x8c3967(0x208)](_0x8c3967(0x23a)+_0x2977e4[_0x8c3967(0x274)]),await _0x20c1bd[_0x8c3967(0x1e7)](sendInstrumentationEvent,_0x246256,_0x20c1bd[_0x8c3967(0x24f)],messageTypes[_0x8c3967(0x20c)],_0x20c1bd[_0x8c3967(0x27a)],_0x2512e7,_0x246256),process['exit'](0x1);}_0x20c1bd['cHOSo'](_0x2512e7['statusCode'],0x191)&&(logger['error'](_0x20c1bd[_0x8c3967(0x221)]),await _0x20c1bd[_0x8c3967(0x1ed)](sendInstrumentationEvent,_0x246256,_0x20c1bd[_0x8c3967(0x24f)],messageTypes[_0x8c3967(0x20c)],_0x20c1bd[_0x8c3967(0x1ef)],null,_0x246256),process['exit'](0x1)),_0x20c1bd[_0x8c3967(0x1e9)](_0x2512e7[_0x8c3967(0x1e1)],0x190)&&(logger['error'](JSON[_0x8c3967(0x216)](_0x2512e7[_0x8c3967(0x274)])[_0x8c3967(0x1f9)]),await _0x20c1bd[_0x8c3967(0x206)](sendInstrumentationEvent,_0x246256,_0x20c1bd[_0x8c3967(0x24f)],messageTypes[_0x8c3967(0x20c)],_0x20c1bd['Rkqeh'],null,_0x246256),process['exit'](0x1)),logger['error'](_0x8c3967(0x22e)+JSON[_0x8c3967(0x268)](_0x2512e7)),await _0x20c1bd[_0x8c3967(0x220)](sendInstrumentationEvent,_0x246256,_0x20c1bd['PWfgA'],messageTypes[_0x8c3967(0x20c)],_0x20c1bd[_0x8c3967(0x27a)],_0x2512e7,_0x246256),process[_0x8c3967(0x251)](0x1);}catch(_0x23398b){logger[_0x8c3967(0x208)](_0x8c3967(0x264)+_0x23398b[_0x8c3967(0x273)]),await _0x20c1bd[_0x8c3967(0x1f6)](sendInstrumentationEvent,_0x246256,_0x20c1bd['PWfgA'],messageTypes[_0x8c3967(0x20c)],_0x20c1bd['PxXAZ'],_0x23398b,_0x246256),process[_0x8c3967(0x251)](0x1);}};
@@ -1 +1 @@
1
- const a12_0x2ade79=a12_0x276b;function a12_0x276b(_0x5e8264,_0x1c84b9){const _0x434280=a12_0x4342();return a12_0x276b=function(_0x276bbb,_0x595ce5){_0x276bbb=_0x276bbb-0x123;let _0x2eb59d=_0x434280[_0x276bbb];return _0x2eb59d;},a12_0x276b(_0x5e8264,_0x1c84b9);}function a12_0x4342(){const _0x57c47d=['command','GVezK','vkGnq','exit','ueRMg','OQkRK','2412UXkGpc','usage','hAPZp','3864wyQYjr','ERROR','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','RJhMj','aLNwy','nrKBt','5576210qUaWci','3674082GekRFi','epilogue','MIYFH','SsUlk','INFO','Orwpr','JPEfb','EPjiA','description','AtVOf','mkdirSync','ibVPF','pkIkQ','GiHQS','zsbMK','slJbk','pQPpJ','password','stringify','sblEL','qtMuB','154EqrlMk','EvnwA','desc','recommendCommands','readFileSync','bstackUsername','bstackAccesskey','type','JfiaH','2mUUQFd','ugpMU','statusCode','KaMZe','PeroR','wrong-creds','NaaZu','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','Browserstack','writeFileSync','bstack-accesskey','BROWSERSTACK_USERNAME','BROWSERSTACK_ACCESS_KEY','rYBWB','KhNIv','MXrMK','mKpeK','string','VEAwx','../config/logger','init','env','options','qKSBI','utf-8','FEzhd','UnjUF','kEKtK','1125624jkSUNX','existsSync','error','URvta','SEXhX','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','username','strict','PpZeb','475482JAmxvD','../utils/instrumentationUtils','ctMBq','parse','/automate/plan.json','haLvX','help','avZzr','573304uJhAuK','lqNCR','builder','bstack-username','247653GZXNuH','got','DuJSC','../utils/utilityMethods','requestId','lOVQJ','wNJnc','hmdQM','init-called','handler','util','CqFSr','7kLwfuX','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','unknown-error','10oEfxCi','argv'];a12_0x4342=function(){return _0x57c47d;};return a12_0x4342();}(function(_0x79a903,_0x2414de){const _0x4c76a1=a12_0x276b,_0x43e565=_0x79a903();while(!![]){try{const _0x199d8d=parseInt(_0x4c76a1(0x166))/0x1*(-parseInt(_0x4c76a1(0x18b))/0x2)+-parseInt(_0x4c76a1(0x13e))/0x3*(parseInt(_0x4c76a1(0x141))/0x4)+parseInt(_0x4c76a1(0x147))/0x5+parseInt(_0x4c76a1(0x148))/0x6*(-parseInt(_0x4c76a1(0x133))/0x7)+parseInt(_0x4c76a1(0x123))/0x8+parseInt(_0x4c76a1(0x127))/0x9*(-parseInt(_0x4c76a1(0x136))/0xa)+-parseInt(_0x4c76a1(0x15d))/0xb*(-parseInt(_0x4c76a1(0x182))/0xc);if(_0x199d8d===_0x2414de)break;else _0x43e565['push'](_0x43e565['shift']());}catch(_0x400ada){_0x43e565['push'](_0x43e565['shift']());}}}(a12_0x4342,0x9477b));const fs=require('fs'),util=require(a12_0x2ade79(0x131)),got=require(a12_0x2ade79(0x128)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x2ade79(0x179)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x2ade79(0x12a)),{sendInstrumentationEvent}=require(a12_0x2ade79(0x18c));exports[a12_0x2ade79(0x138)]=a12_0x2ade79(0x17a),exports[a12_0x2ade79(0x15f)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x2ade79(0x125)]=function(_0xaae269){const _0x19572a=a12_0x2ade79,_0x2a655f={};_0x2a655f['vkGnq']=_0x19572a(0x134),_0x2a655f['udoin']=_0x19572a(0x177),_0x2a655f[_0x19572a(0x153)]=_0x19572a(0x187),_0x2a655f[_0x19572a(0x157)]='help';const _0x253567=_0x2a655f,_0x5a7855={};_0x5a7855[_0x19572a(0x150)]=_0x253567[_0x19572a(0x13a)],_0x5a7855[_0x19572a(0x164)]=_0x253567['udoin'];const _0x5e76ac={};_0x5e76ac[_0x19572a(0x150)]=_0x253567['ibVPF'],_0x5e76ac[_0x19572a(0x164)]=_0x253567['udoin'];const _0x5f1342={};return _0x5f1342[_0x19572a(0x126)]=_0x5a7855,_0x5f1342[_0x19572a(0x170)]=_0x5e76ac,_0xaae269[_0x19572a(0x13f)](HELP_HEADER_MESSAGE[_0x19572a(0x17a)])[_0x19572a(0x149)](HELP_FOOTER_MESSAGE)['options'](_0x5f1342)[_0x19572a(0x160)]()[_0x19572a(0x189)]()[_0x19572a(0x191)](_0x253567[_0x19572a(0x157)])[_0x19572a(0x137)];},exports[a12_0x2ade79(0x130)]=async function(_0x319167){const _0x39fe15=a12_0x2ade79,_0x520f5b={'wIfRv':_0x39fe15(0x134),'FEzhd':_0x39fe15(0x177),'zsbMK':_0x39fe15(0x187),'MXrMK':'help','mKpeK':function(_0x23469e){return _0x23469e();},'PpZeb':_0x39fe15(0x17e),'EvnwA':function(_0x2d53da){return _0x2d53da();},'OQkRK':function(_0x322be9,_0x3bab7b,_0x3ae5ee,_0x4df736,_0x402d9f,_0x59131f,_0x56570a){return _0x322be9(_0x3bab7b,_0x3ae5ee,_0x4df736,_0x402d9f,_0x59131f,_0x56570a);},'aLNwy':_0x39fe15(0x12f),'KhNIv':function(_0x4cc0b7,_0x190945){return _0x4cc0b7!==_0x190945;},'qKSBI':_0x39fe15(0x15c),'eetRz':_0x39fe15(0x18d),'JfiaH':function(_0x1f1494,_0x435069){return _0x1f1494===_0x435069;},'hAPZp':_0x39fe15(0x14f),'UnjUF':function(_0x3099f7,_0x17da44){return _0x3099f7===_0x17da44;},'sblEL':_0x39fe15(0x12d),'WlNrK':'wRIdl','ugpMU':_0x39fe15(0x173),'JPEfb':function(_0x4fea7f,_0x386bf1){return _0x4fea7f===_0x386bf1;},'pQPpJ':_0x39fe15(0x14a),'GiHQS':_0x39fe15(0x178),'lOVQJ':function(_0x1fa374,_0x500f29){return _0x1fa374!==_0x500f29;},'NaaZu':_0x39fe15(0x16a),'DuJSC':_0x39fe15(0x143),'kEKtK':function(_0x3ce120){return _0x3ce120();},'pkIkQ':'GET','ABEId':function(_0xc15d6a,_0x15addb,_0x258a0a){return _0xc15d6a(_0x15addb,_0x258a0a);},'RJhMj':function(_0x2a118e,_0x4bb7ff){return _0x2a118e===_0x4bb7ff;},'Orwpr':function(_0x33a735,_0x15ce25){return _0x33a735!==_0x15ce25;},'KtPwR':_0x39fe15(0x12e),'nrKBt':_0x39fe15(0x14b),'gaTtn':function(_0x213a64,_0xed64e4){return _0x213a64===_0xed64e4;},'KaMZe':'lHWLK','kfwYA':function(_0x300088){return _0x300088();},'haLvX':function(_0x2f2afd,_0x2c6fcc){return _0x2f2afd!==_0x2c6fcc;},'oMJLj':_0x39fe15(0x151),'URvta':_0x39fe15(0x139),'SEXhX':_0x39fe15(0x16d),'CqFSr':function(_0x542f7f,_0x3fabc5,_0x47a5d6,_0x1c9f6c,_0x56ea6d,_0x4caf9d,_0x126a43){return _0x542f7f(_0x3fabc5,_0x47a5d6,_0x1c9f6c,_0x56ea6d,_0x4caf9d,_0x126a43);},'avZzr':_0x39fe15(0x16b),'lqNCR':function(_0x175bbe,_0x4c2df7,_0x3e89d3,_0x1763e7,_0x458617,_0x34c47a,_0x2d1754){return _0x175bbe(_0x4c2df7,_0x3e89d3,_0x1763e7,_0x458617,_0x34c47a,_0x2d1754);},'ueRMg':_0x39fe15(0x135)};try{global_registry[_0x39fe15(0x12b)]=_0x520f5b[_0x39fe15(0x15e)](uuidv4),_0x520f5b[_0x39fe15(0x13d)](sendInstrumentationEvent,_0x319167,_0x520f5b[_0x39fe15(0x145)],messageTypes[_0x39fe15(0x14c)],null,null,_0x319167);const _0x4dcf3f=_0x520f5b['mKpeK'](getDirForConfig);!fs[_0x39fe15(0x183)](_0x4dcf3f)&&(_0x520f5b[_0x39fe15(0x174)](_0x520f5b[_0x39fe15(0x17d)],_0x520f5b['eetRz'])?fs[_0x39fe15(0x152)](_0x4dcf3f):_0x4fe213=_0x14dab9[_0x39fe15(0x163)]);let _0x5cc657,_0x3765e0;if(process['env']['BROWSERSTACK_USERNAME']){if(_0x520f5b[_0x39fe15(0x165)](_0x520f5b[_0x39fe15(0x140)],_0x520f5b[_0x39fe15(0x140)]))_0x5cc657=process[_0x39fe15(0x17b)]['BROWSERSTACK_USERNAME'];else{const _0x50190a={};_0x50190a[_0x39fe15(0x150)]=_0x520f5b['wIfRv'],_0x50190a['type']=_0x520f5b['FEzhd'];const _0x490f9c={};_0x490f9c[_0x39fe15(0x150)]=_0x520f5b[_0x39fe15(0x156)],_0x490f9c['type']=_0x520f5b[_0x39fe15(0x17f)];const _0x5bbd69={};return _0x5bbd69[_0x39fe15(0x126)]=_0x50190a,_0x5bbd69[_0x39fe15(0x170)]=_0x490f9c,_0x121306[_0x39fe15(0x13f)](_0xf3b11e['init'])[_0x39fe15(0x149)](_0x505b91)[_0x39fe15(0x17c)](_0x5bbd69)[_0x39fe15(0x160)]()[_0x39fe15(0x189)]()[_0x39fe15(0x191)](_0x520f5b[_0x39fe15(0x175)])[_0x39fe15(0x137)];}}process[_0x39fe15(0x17b)][_0x39fe15(0x172)]&&(_0x520f5b[_0x39fe15(0x180)](_0x520f5b[_0x39fe15(0x15b)],_0x520f5b['WlNrK'])?_0xe1e2a9[_0x39fe15(0x152)](_0x48936e):_0x3765e0=process['env'][_0x39fe15(0x172)]);if(_0x319167[_0x39fe15(0x162)]){if(_0x520f5b['JfiaH'](_0x520f5b[_0x39fe15(0x167)],_0x520f5b[_0x39fe15(0x167)]))_0x5cc657=_0x319167[_0x39fe15(0x162)];else{let _0x36bed9={};const _0x13bdde=_0x520f5b[_0x39fe15(0x176)](_0x2d2a1a);_0x46730a[_0x39fe15(0x183)](_0x13bdde)&&(_0x36bed9=_0x48740f['parse'](_0x4a4712[_0x39fe15(0x161)](_0x13bdde,_0x520f5b[_0x39fe15(0x18a)])));const _0x512d45={};_0x512d45[_0x39fe15(0x188)]=_0x22508a,_0x512d45[_0x39fe15(0x159)]=_0x51418d,_0x36bed9['Browserstack']=_0x512d45,_0x271066[_0x39fe15(0x16f)](_0x13bdde,_0x9be397[_0x39fe15(0x15a)](_0x36bed9)),_0x27d30d[_0x39fe15(0x13b)](0x0);}}_0x319167[_0x39fe15(0x163)]&&(_0x520f5b['JPEfb'](_0x520f5b[_0x39fe15(0x158)],_0x520f5b[_0x39fe15(0x155)])?_0x3e5e43=_0x346498[_0x39fe15(0x18e)](_0x53957a['readFileSync'](_0xca9e52,_0x520f5b['PpZeb'])):_0x3765e0=_0x319167[_0x39fe15(0x163)]);if(_0x520f5b[_0x39fe15(0x180)](_0x5cc657,undefined)||_0x520f5b[_0x39fe15(0x14e)](_0x3765e0,undefined)){if(_0x520f5b['lOVQJ'](_0x520f5b['NaaZu'],_0x520f5b[_0x39fe15(0x16c)]))_0x385ada=_0x383b8b[_0x39fe15(0x17b)][_0x39fe15(0x172)];else{logger['debug'](_0x520f5b[_0x39fe15(0x129)]);const [_0x49ed32,_0x58e55e]=await _0x520f5b[_0x39fe15(0x181)](inputBstackKeys);_0x5cc657=_0x49ed32,_0x3765e0=_0x58e55e;}}let _0x37de42=![];const _0x307e59='https://'+_0x5cc657+':'+_0x3765e0+'@'+BS_API_URL+_0x39fe15(0x18f),_0x1b3f3b={'method':_0x520f5b[_0x39fe15(0x154)],'headers':_0x520f5b['ABEId'](getAuthHeader,_0x5cc657,_0x3765e0),'throwHttpErrors':![]},_0xbf9409=await _0x520f5b['ABEId'](got,_0x307e59,_0x1b3f3b);_0x520f5b[_0x39fe15(0x12c)](_0xbf9409,null)&&_0x520f5b['lOVQJ'](_0xbf9409,undefined)&&_0x520f5b[_0x39fe15(0x144)](_0xbf9409[_0x39fe15(0x168)],0xc8)&&(_0x520f5b[_0x39fe15(0x14d)](_0x520f5b['KtPwR'],_0x520f5b[_0x39fe15(0x146)])?_0x37de42=!![]:_0x1f7e1b=_0x528b16[_0x39fe15(0x162)]);if(_0x37de42){if(_0x520f5b['gaTtn'](_0x520f5b[_0x39fe15(0x169)],_0x520f5b[_0x39fe15(0x169)])){let _0x86a4e6={};const _0x1d2e3d=_0x520f5b['kfwYA'](getCredentialsPath);fs[_0x39fe15(0x183)](_0x1d2e3d)&&(_0x520f5b[_0x39fe15(0x190)](_0x520f5b['oMJLj'],_0x520f5b[_0x39fe15(0x185)])?_0x86a4e6=JSON[_0x39fe15(0x18e)](fs[_0x39fe15(0x161)](_0x1d2e3d,_0x520f5b[_0x39fe15(0x18a)])):_0x227531=!![]);const _0x228ecb={};_0x228ecb[_0x39fe15(0x188)]=_0x5cc657,_0x228ecb[_0x39fe15(0x159)]=_0x3765e0,_0x86a4e6[_0x39fe15(0x16e)]=_0x228ecb,fs[_0x39fe15(0x16f)](_0x1d2e3d,JSON[_0x39fe15(0x15a)](_0x86a4e6)),process[_0x39fe15(0x13b)](0x0);}else _0x1af7d9=_0x34a379[_0x39fe15(0x17b)][_0x39fe15(0x171)];}else logger['error'](_0x520f5b[_0x39fe15(0x186)]),await _0x520f5b[_0x39fe15(0x132)](sendInstrumentationEvent,_0x319167,_0x520f5b[_0x39fe15(0x145)],messageTypes['ERROR'],_0x520f5b[_0x39fe15(0x192)],null,_0x319167),process[_0x39fe15(0x13b)](0x1);}catch(_0x2ce228){logger[_0x39fe15(0x184)](_0x2ce228['stack']),await _0x520f5b[_0x39fe15(0x124)](sendInstrumentationEvent,_0x319167,_0x520f5b[_0x39fe15(0x145)],messageTypes[_0x39fe15(0x142)],_0x520f5b[_0x39fe15(0x13c)],_0x2ce228,_0x319167),process[_0x39fe15(0x13b)](0x1);}};
1
+ function a12_0x4254(){const _0x2e460a=['writeFileSync','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','yqKYZ','env','ywObd','oiYWD','2KLarMZ','DGlQf','SuoqC','wrong-creds','248ecJAMm','bstackAccesskey','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','6856640xjZqXd','aADaf','33419124wWKsEe','64338llyNEz','BROWSERSTACK_ACCESS_KEY','awuAw','xPHuk','VcykK','fPOmt','MzBRw','MxwGo','dPUDD','BROWSERSTACK_USERNAME','usage','FAUHF','OvFlQ','../utils/utilityMethods','sRmMK','handler','VCdGz','exit','ByVBJ','gyzmF','15ZWTYsu','1363398zvDdGq','OIOck','password','error','QCKwh','9174344cuidGz','gceCL','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','command','hCzSb','11kITWhO','AbYRz','ALyUB','/automate/plan.json','yYSDW','recommendCommands','ASpiM','ADPih','bstack-username','GET','string','options','readFileSync','bstack-accesskey','init-called','stringify','Browserstack','mkdirSync','ZXDWk','vHUcL','username','strict','ZUWcu','argv','oXWXS','statusCode','FHaYF','https://','aDbcn','parse','description','bwnjs','BFCdZ','Ccubu','13102209FWXADS','rTFZp','help','nmjcm','fXTSs','bstackUsername','cURNj','McpWT','ERROR','ylPiP','uuid','INFO','debug','init','type','7nKgRMA','408325uFvjlu','rSQuU','UamEA','../config/logger','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','existsSync','LenJK','FZQiL','util','utf-8','bzYWK','epilogue','LbIkV','desc'];a12_0x4254=function(){return _0x2e460a;};return a12_0x4254();}const a12_0x123b41=a12_0x1471;function a12_0x1471(_0x438f76,_0x575e5d){const _0x425460=a12_0x4254();return a12_0x1471=function(_0x147163,_0x418612){_0x147163=_0x147163-0xb6;let _0x16b945=_0x425460[_0x147163];return _0x16b945;},a12_0x1471(_0x438f76,_0x575e5d);}(function(_0x21b540,_0x5aef51){const _0x4bf3d3=a12_0x1471,_0x32bca9=_0x21b540();while(!![]){try{const _0x1404bd=parseInt(_0x4bf3d3(0x124))/0x1*(-parseInt(_0x4bf3d3(0xc9))/0x2)+-parseInt(_0x4bf3d3(0xd3))/0x3*(-parseInt(_0x4bf3d3(0xcd))/0x4)+parseInt(_0x4bf3d3(0xe7))/0x5*(parseInt(_0x4bf3d3(0xe8))/0x6)+parseInt(_0x4bf3d3(0x123))/0x7*(parseInt(_0x4bf3d3(0xed))/0x8)+parseInt(_0x4bf3d3(0x114))/0x9+-parseInt(_0x4bf3d3(0xd0))/0xa+-parseInt(_0x4bf3d3(0xf2))/0xb*(parseInt(_0x4bf3d3(0xd2))/0xc);if(_0x1404bd===_0x5aef51)break;else _0x32bca9['push'](_0x32bca9['shift']());}catch(_0x248cbc){_0x32bca9['push'](_0x32bca9['shift']());}}}(a12_0x4254,0xb3735));const fs=require('fs'),util=require(a12_0x123b41(0xbd)),got=require('got'),{v4:uuidv4}=require(a12_0x123b41(0x11e)),{logger}=require(a12_0x123b41(0xb8)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x123b41(0xe0)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a12_0x123b41(0xf0)]=a12_0x123b41(0x121),exports[a12_0x123b41(0xc2)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports['builder']=function(_0x164e5){const _0x29d6a2=a12_0x123b41,_0x153ef1={};_0x153ef1['awuAw']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x153ef1['MxwGo']=_0x29d6a2(0xfc),_0x153ef1[_0x29d6a2(0x11b)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x153ef1['UamEA']='help';const _0x5ace35=_0x153ef1,_0x222fbe={};_0x222fbe[_0x29d6a2(0x110)]=_0x5ace35[_0x29d6a2(0xd5)],_0x222fbe[_0x29d6a2(0x122)]=_0x5ace35[_0x29d6a2(0xda)];const _0x1f678c={};_0x1f678c['description']=_0x5ace35['McpWT'],_0x1f678c[_0x29d6a2(0x122)]=_0x5ace35[_0x29d6a2(0xda)];const _0x470a8b={};return _0x470a8b[_0x29d6a2(0xfa)]=_0x222fbe,_0x470a8b[_0x29d6a2(0xff)]=_0x1f678c,_0x164e5['usage'](HELP_HEADER_MESSAGE[_0x29d6a2(0x121)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x29d6a2(0xfd)](_0x470a8b)[_0x29d6a2(0xf7)]()['strict']()['help'](_0x5ace35[_0x29d6a2(0xb7)])['argv'];},exports[a12_0x123b41(0xe2)]=async function(_0x468a32){const _0x329c21=a12_0x123b41,_0x49c674={'nmjcm':_0x329c21(0xc4),'FZQiL':_0x329c21(0xfc),'gyzmF':_0x329c21(0xcf),'oiYWD':_0x329c21(0x116),'BFCdZ':function(_0x18a3d7){return _0x18a3d7();},'dPUDD':_0x329c21(0xbe),'sNdYE':function(_0x86212e,_0x5b5f07,_0x4d3a0b,_0x22da25,_0x14b93b,_0x484847,_0x2093cf){return _0x86212e(_0x5b5f07,_0x4d3a0b,_0x22da25,_0x14b93b,_0x484847,_0x2093cf);},'Ccubu':_0x329c21(0x100),'rSQuU':function(_0xf78253,_0xe157d){return _0xf78253===_0xe157d;},'ZXDWk':_0x329c21(0xf8),'ByVBJ':_0x329c21(0xe3),'ALyUB':_0x329c21(0xd1),'yqKYZ':_0x329c21(0x11a),'rTFZp':function(_0x272a48,_0x2a1c5c){return _0x272a48===_0x2a1c5c;},'iQhYJ':_0x329c21(0x10c),'ZUWcu':_0x329c21(0x118),'DGlQf':function(_0x2db4f5,_0x2f2949){return _0x2db4f5!==_0x2f2949;},'OvFlQ':_0x329c21(0xcb),'FAUHF':_0x329c21(0xc7),'vHUcL':_0x329c21(0x10a),'gceCL':_0x329c21(0xf1),'EGpXe':_0x329c21(0xef),'ylPiP':function(_0x5185bf){return _0x5185bf();},'ToFZi':_0x329c21(0xfb),'xPHuk':function(_0x4270d4,_0x5db113,_0x5a085d){return _0x4270d4(_0x5db113,_0x5a085d);},'sRmMK':function(_0x5f3192,_0x292dfa){return _0x5f3192!==_0x292dfa;},'AbYRz':function(_0x4b08df,_0x18fee9){return _0x4b08df===_0x18fee9;},'tLgzT':function(_0x34b0ce,_0x2325cd){return _0x34b0ce===_0x2325cd;},'fPOmt':_0x329c21(0xf9),'bwnjs':_0x329c21(0xc1),'QCKwh':_0x329c21(0xbb),'aDbcn':_0x329c21(0xf6),'MzBRw':_0x329c21(0xb9),'VcykK':function(_0x13d133,_0xbf12e2,_0x242e6c,_0x253fc2,_0x431860,_0x32958b,_0x4d8375){return _0x13d133(_0xbf12e2,_0x242e6c,_0x253fc2,_0x431860,_0x32958b,_0x4d8375);},'GlpUR':_0x329c21(0xcc),'OIOck':function(_0x5cfdc2,_0x2c2313,_0x394a87,_0x395fdd,_0x287e8a,_0x31c846,_0x3eaa98){return _0x5cfdc2(_0x2c2313,_0x394a87,_0x395fdd,_0x287e8a,_0x31c846,_0x3eaa98);},'bzYWK':'unknown-error'};try{global_registry['requestId']=_0x49c674[_0x329c21(0x112)](uuidv4),_0x49c674['sNdYE'](sendInstrumentationEvent,_0x468a32,_0x49c674[_0x329c21(0x113)],messageTypes[_0x329c21(0x11f)],null,null,_0x468a32);const _0x5d78dd=_0x49c674[_0x329c21(0x112)](getDirForConfig);if(!fs[_0x329c21(0xba)](_0x5d78dd)){if(_0x49c674[_0x329c21(0xb6)](_0x49c674[_0x329c21(0x104)],_0x49c674[_0x329c21(0xe5)])){const _0x51e02f={};_0x51e02f[_0x329c21(0x110)]=_0x49c674[_0x329c21(0x117)],_0x51e02f['type']=_0x49c674[_0x329c21(0xbc)];const _0x37b3ee={};_0x37b3ee[_0x329c21(0x110)]=_0x49c674[_0x329c21(0xe6)],_0x37b3ee[_0x329c21(0x122)]=_0x49c674[_0x329c21(0xbc)];const _0xb5d70e={};return _0xb5d70e['bstack-username']=_0x51e02f,_0xb5d70e[_0x329c21(0xff)]=_0x37b3ee,_0x502b70[_0x329c21(0xdd)](_0xc9189e[_0x329c21(0x121)])[_0x329c21(0xc0)](_0x59a374)[_0x329c21(0xfd)](_0xb5d70e)[_0x329c21(0xf7)]()[_0x329c21(0x107)]()[_0x329c21(0x116)](_0x49c674[_0x329c21(0xc8)])[_0x329c21(0x109)];}else fs['mkdirSync'](_0x5d78dd);}let _0x27df72,_0x3b3859;process[_0x329c21(0xc6)]['BROWSERSTACK_USERNAME']&&(_0x49c674['rSQuU'](_0x49c674[_0x329c21(0xf4)],_0x49c674[_0x329c21(0xc5)])?_0x710efb=_0x4142ce[_0x329c21(0x119)]:_0x27df72=process[_0x329c21(0xc6)]['BROWSERSTACK_USERNAME']);process[_0x329c21(0xc6)][_0x329c21(0xd4)]&&(_0x49c674[_0x329c21(0x115)](_0x49c674['iQhYJ'],_0x49c674[_0x329c21(0x108)])?_0x182e6c[_0x329c21(0x103)](_0x445b84):_0x3b3859=process['env'][_0x329c21(0xd4)]);_0x468a32[_0x329c21(0x119)]&&(_0x49c674[_0x329c21(0xca)](_0x49c674[_0x329c21(0xdf)],_0x49c674[_0x329c21(0xdf)])?_0x922e59=_0xffd6bc[_0x329c21(0xc6)][_0x329c21(0xdc)]:_0x27df72=_0x468a32[_0x329c21(0x119)]);if(_0x468a32['bstackAccesskey']){if(_0x49c674[_0x329c21(0xca)](_0x49c674[_0x329c21(0xde)],_0x49c674['FAUHF'])){let _0x26e29e={};const _0x560302=_0x49c674['BFCdZ'](_0x456142);_0x2b1dc4[_0x329c21(0xba)](_0x560302)&&(_0x26e29e=_0x69137[_0x329c21(0x10f)](_0x2cdd37[_0x329c21(0xfe)](_0x560302,_0x49c674[_0x329c21(0xdb)])));const _0x60520e={};_0x60520e[_0x329c21(0x106)]=_0x520aef,_0x60520e['password']=_0x21cba3,_0x26e29e[_0x329c21(0x102)]=_0x60520e,_0x7585d1[_0x329c21(0xc3)](_0x560302,_0x55f4e8[_0x329c21(0x101)](_0x26e29e)),_0x4a601d['exit'](0x0);}else _0x3b3859=_0x468a32[_0x329c21(0xce)];}if(_0x49c674['rTFZp'](_0x27df72,undefined)||_0x49c674[_0x329c21(0xb6)](_0x3b3859,undefined)){if(_0x49c674['DGlQf'](_0x49c674[_0x329c21(0x105)],_0x49c674[_0x329c21(0xee)])){logger[_0x329c21(0x120)](_0x49c674['EGpXe']);const [_0x1c9d7b,_0x140bfc]=await _0x49c674[_0x329c21(0x11d)](inputBstackKeys);_0x27df72=_0x1c9d7b,_0x3b3859=_0x140bfc;}else _0x4f7ed9=_0x5928bb['parse'](_0x13c15b[_0x329c21(0xfe)](_0x3258e8,_0x49c674[_0x329c21(0xdb)]));}let _0x447977=![];const _0x4c662d=_0x329c21(0x10d)+_0x27df72+':'+_0x3b3859+'@'+BS_API_URL+_0x329c21(0xf5),_0x5344e7={'method':_0x49c674['ToFZi'],'headers':_0x49c674[_0x329c21(0xd6)](getAuthHeader,_0x27df72,_0x3b3859),'throwHttpErrors':![]},_0x4969ec=await _0x49c674[_0x329c21(0xd6)](got,_0x4c662d,_0x5344e7);_0x49c674[_0x329c21(0xca)](_0x4969ec,null)&&_0x49c674[_0x329c21(0xe1)](_0x4969ec,undefined)&&_0x49c674[_0x329c21(0xf3)](_0x4969ec[_0x329c21(0x10b)],0xc8)&&(_0x49c674['tLgzT'](_0x49c674['fPOmt'],_0x49c674[_0x329c21(0xd8)])?_0x447977=!![]:_0x42f52a=_0x33eec7[_0x329c21(0xc6)][_0x329c21(0xd4)]);if(_0x447977){if(_0x49c674['tLgzT'](_0x49c674[_0x329c21(0x111)],_0x49c674['bwnjs'])){let _0x25bce7={};const _0x23c15a=_0x49c674['ylPiP'](getCredentialsPath);fs[_0x329c21(0xba)](_0x23c15a)&&(_0x49c674[_0x329c21(0xe1)](_0x49c674[_0x329c21(0xec)],_0x49c674[_0x329c21(0x10e)])?_0x25bce7=JSON[_0x329c21(0x10f)](fs[_0x329c21(0xfe)](_0x23c15a,_0x49c674['dPUDD'])):_0x2f2d0a=!![]);const _0x4f34a2={};_0x4f34a2[_0x329c21(0x106)]=_0x27df72,_0x4f34a2[_0x329c21(0xea)]=_0x3b3859,_0x25bce7[_0x329c21(0x102)]=_0x4f34a2,fs[_0x329c21(0xc3)](_0x23c15a,JSON['stringify'](_0x25bce7)),process['exit'](0x0);}else _0x4a0381=_0x4c477d[_0x329c21(0xce)];}else logger[_0x329c21(0xeb)](_0x49c674[_0x329c21(0xd9)]),await _0x49c674[_0x329c21(0xd7)](sendInstrumentationEvent,_0x468a32,_0x49c674['Ccubu'],messageTypes[_0x329c21(0x11c)],_0x49c674['GlpUR'],null,_0x468a32),process[_0x329c21(0xe4)](0x1);}catch(_0x5806d7){logger[_0x329c21(0xeb)](_0x5806d7['stack']),await _0x49c674[_0x329c21(0xe9)](sendInstrumentationEvent,_0x468a32,_0x49c674['Ccubu'],messageTypes[_0x329c21(0x11c)],_0x49c674[_0x329c21(0xbf)],_0x5806d7,_0x468a32),process[_0x329c21(0xe4)](0x1);}};
@@ -1 +1 @@
1
- function a13_0x4584(){const _0x5376d1=['root','64452IGBQXZ','usage','commandDir','list','CkHVK','1343052ARAusK','epilogue','command','6057336IXdylv','rPWqp','959ChaUwo','demandCommand','1105896zFDlmv','recommendCommands','help','1207980eprbSW','451954ILfdyz','1487690UQwgrp','8tbFBXD','List\x20down\x20the\x20Grid\x20resources.','builder'];a13_0x4584=function(){return _0x5376d1;};return a13_0x4584();}const a13_0xd99d96=a13_0x2916;function a13_0x2916(_0x4ec5c5,_0x26a99c){const _0x458477=a13_0x4584();return a13_0x2916=function(_0x2916e9,_0x255ae3){_0x2916e9=_0x2916e9-0x1e5;let _0x292605=_0x458477[_0x2916e9];return _0x292605;},a13_0x2916(_0x4ec5c5,_0x26a99c);}(function(_0x1922ac,_0x5342e9){const _0x5901b6=a13_0x2916,_0x573633=_0x1922ac();while(!![]){try{const _0x49d1ca=-parseInt(_0x5901b6(0x1ed))/0x1+-parseInt(_0x5901b6(0x1ec))/0x2+-parseInt(_0x5901b6(0x1e8))/0x3+parseInt(_0x5901b6(0x1fa))/0x4+-parseInt(_0x5901b6(0x1eb))/0x5+parseInt(_0x5901b6(0x1f2))/0x6*(parseInt(_0x5901b6(0x1e6))/0x7)+parseInt(_0x5901b6(0x1ee))/0x8*(parseInt(_0x5901b6(0x1f7))/0x9);if(_0x49d1ca===_0x5342e9)break;else _0x573633['push'](_0x573633['shift']());}catch(_0x5d1446){_0x573633['push'](_0x573633['shift']());}}}(a13_0x4584,0xc6139));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a13_0xd99d96(0x1f9)]=a13_0xd99d96(0x1f5),exports['desc']=a13_0xd99d96(0x1ef),exports[a13_0xd99d96(0x1f0)]=function(_0x1e67ca){const _0x8d23b0=a13_0xd99d96,_0x3d8c69={};_0x3d8c69['CkHVK']='list_commands',_0x3d8c69[_0x8d23b0(0x1e5)]=_0x8d23b0(0x1ea);const _0x1847e2=_0x3d8c69;return _0x1e67ca[_0x8d23b0(0x1f4)](_0x1847e2[_0x8d23b0(0x1f6)])[_0x8d23b0(0x1e7)]()[_0x8d23b0(0x1f3)](HELP_HEADER_MESSAGE[_0x8d23b0(0x1f5)][_0x8d23b0(0x1f1)])[_0x8d23b0(0x1f8)](HELP_FOOTER_MESSAGE)[_0x8d23b0(0x1e9)]()['strict']()[_0x8d23b0(0x1ea)](_0x1847e2[_0x8d23b0(0x1e5)]);},exports['handler']=function(_0x5a5a46){};
1
+ const a13_0x47be82=a13_0xd35b;function a13_0x1e8b(){const _0x558d1a=['424911wMSoOn','11lljZlN','list','handler','root','1242472NnRURH','List\x20down\x20the\x20Grid\x20resources.','epilogue','jFwjT','commandDir','builder','BUfKw','20058ammOWK','16CCbtmH','demandCommand','12389193aVaUuu','command','224241qldUvS','36MkQvQb','70FtjSLe','strict','12601970JPSVYg','help','desc','7066451qGqlUo'];a13_0x1e8b=function(){return _0x558d1a;};return a13_0x1e8b();}(function(_0x3a1726,_0x57c4d0){const _0x1ca25d=a13_0xd35b,_0x5be852=_0x3a1726();while(!![]){try{const _0x1fc170=parseInt(_0x1ca25d(0x100))/0x1*(-parseInt(_0x1ca25d(0xfc))/0x2)+-parseInt(_0x1ca25d(0x108))/0x3*(-parseInt(_0x1ca25d(0x101))/0x4)+-parseInt(_0x1ca25d(0x102))/0x5*(parseInt(_0x1ca25d(0xfb))/0x6)+-parseInt(_0x1ca25d(0x107))/0x7+-parseInt(_0x1ca25d(0x10d))/0x8+parseInt(_0x1ca25d(0xfe))/0x9+-parseInt(_0x1ca25d(0x104))/0xa*(-parseInt(_0x1ca25d(0x109))/0xb);if(_0x1fc170===_0x57c4d0)break;else _0x5be852['push'](_0x5be852['shift']());}catch(_0x2a3760){_0x5be852['push'](_0x5be852['shift']());}}}(a13_0x1e8b,0xdd2f7));function a13_0xd35b(_0x448100,_0x412da6){const _0x1e8b9b=a13_0x1e8b();return a13_0xd35b=function(_0xd35bd2,_0x7c158f){_0xd35bd2=_0xd35bd2-0xf6;let _0x2e493c=_0x1e8b9b[_0xd35bd2];return _0x2e493c;},a13_0xd35b(_0x448100,_0x412da6);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a13_0x47be82(0xff)]=a13_0x47be82(0x10a),exports[a13_0x47be82(0x106)]=a13_0x47be82(0x10e),exports[a13_0x47be82(0xf9)]=function(_0x12f247){const _0x20ae62=a13_0x47be82,_0x172769={};_0x172769[_0x20ae62(0xf7)]='list_commands',_0x172769[_0x20ae62(0xfa)]='help';const _0x182664=_0x172769;return _0x12f247[_0x20ae62(0xf8)](_0x182664[_0x20ae62(0xf7)])[_0x20ae62(0xfd)]()['usage'](HELP_HEADER_MESSAGE['list'][_0x20ae62(0x10c)])[_0x20ae62(0xf6)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x20ae62(0x103)]()[_0x20ae62(0x105)](_0x182664[_0x20ae62(0xfa)]);},exports[a13_0x47be82(0x10b)]=function(_0x5a1075){};
@@ -1 +1 @@
1
- function a14_0x4378(_0x52f98c,_0x12658b){const _0x9cf397=a14_0x9cf3();return a14_0x4378=function(_0x43783b,_0x577846){_0x43783b=_0x43783b-0x168;let _0x22fd80=_0x9cf397[_0x43783b];return _0x22fd80;},a14_0x4378(_0x52f98c,_0x12658b);}const a14_0x46d732=a14_0x4378;(function(_0x176fe1,_0x638866){const _0x3bfc9d=a14_0x4378,_0x1d6384=_0x176fe1();while(!![]){try{const _0x5e8055=parseInt(_0x3bfc9d(0x1a3))/0x1*(parseInt(_0x3bfc9d(0x16a))/0x2)+-parseInt(_0x3bfc9d(0x18d))/0x3+-parseInt(_0x3bfc9d(0x1b0))/0x4*(-parseInt(_0x3bfc9d(0x16d))/0x5)+parseInt(_0x3bfc9d(0x1ba))/0x6+parseInt(_0x3bfc9d(0x1ac))/0x7*(-parseInt(_0x3bfc9d(0x19d))/0x8)+parseInt(_0x3bfc9d(0x185))/0x9*(parseInt(_0x3bfc9d(0x181))/0xa)+-parseInt(_0x3bfc9d(0x171))/0xb;if(_0x5e8055===_0x638866)break;else _0x1d6384['push'](_0x1d6384['shift']());}catch(_0x515462){_0x1d6384['push'](_0x1d6384['shift']());}}}(a14_0x9cf3,0x96cf5));const fs=require('fs'),got=require(a14_0x46d732(0x17a)),{table}=require(a14_0x46d732(0x197)),{v4:uuidv4}=require(a14_0x46d732(0x170)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a14_0x46d732(0x178)),{sendInstrumentationEvent}=require(a14_0x46d732(0x183));exports['command']=a14_0x46d732(0x176),exports[a14_0x46d732(0x194)]=a14_0x46d732(0x190),exports['builder']=function(_0x125525){const _0x96e910=a14_0x46d732,_0x4b0d85={};_0x4b0d85[_0x96e910(0x1b4)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x4b0d85[_0x96e910(0x175)]=_0x96e910(0x198),_0x4b0d85[_0x96e910(0x1a8)]=_0x96e910(0x1a5);const _0x4db5af=_0x4b0d85,_0x2eb2c6={};_0x2eb2c6[_0x96e910(0x196)]=_0x4db5af[_0x96e910(0x1b4)],_0x2eb2c6[_0x96e910(0x1bb)]=_0x4db5af['mzsZB'];const _0x28fc3d={};return _0x28fc3d['all-grid-profiles']=_0x2eb2c6,_0x125525[_0x96e910(0x17d)](HELP_HEADER_MESSAGE[_0x96e910(0x1ad)][_0x96e910(0x17f)])[_0x96e910(0x173)](HELP_FOOTER_MESSAGE)[_0x96e910(0x199)](_0x28fc3d)[_0x96e910(0x1a5)](_0x4db5af[_0x96e910(0x1a8)])[_0x96e910(0x192)];},exports[a14_0x46d732(0x1bd)]=async function(_0x436b3d){const _0xe3d359=a14_0x46d732,_0x1a90c3={'ThgFo':function(_0x2fd059){return _0x2fd059();},'oJvyR':function(_0x54b929){return _0x54b929();},'NcNhB':_0xe3d359(0x180),'yNJkP':function(_0x3974fb,_0x5243cd,_0x63aedc,_0x33bb51,_0x2eaf96,_0x554e68,_0x43ccb2){return _0x3974fb(_0x5243cd,_0x63aedc,_0x33bb51,_0x2eaf96,_0x554e68,_0x43ccb2);},'TtjTn':'list-grid-profiles-called','OIYTO':_0xe3d359(0x19e),'hKsfN':function(_0x40f4da){return _0x40f4da();},'nmtJG':_0xe3d359(0x18b),'FPJOf':function(_0x598ba7,_0x1a22b1,_0x5da94f){return _0x598ba7(_0x1a22b1,_0x5da94f);},'awUoh':function(_0x38c7f5,_0x4e0ffb){return _0x38c7f5!==_0x4e0ffb;},'pXYSR':function(_0x510b08,_0xb6c98e){return _0x510b08===_0xb6c98e;},'iGzNE':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','xenZx':'grid-profile-name','vWJwp':_0xe3d359(0x174),'pkeZP':_0xe3d359(0x16f),'zcNeU':'concurrency','hJRZf':function(_0x37903c,_0x56d951){return _0x37903c(_0x56d951);},'MdqSx':_0xe3d359(0x1aa),'SdXoC':function(_0x4144c4,_0x3ae4e7,_0x40e441,_0x12e6e7,_0x428ead,_0x28c783,_0x3205f6){return _0x4144c4(_0x3ae4e7,_0x40e441,_0x12e6e7,_0x428ead,_0x28c783,_0x3205f6);},'svSNt':_0xe3d359(0x187),'rAjPg':'server-error','oieSf':_0xe3d359(0x1ae)};try{global_registry[_0xe3d359(0x17e)]=_0x1a90c3[_0xe3d359(0x191)](uuidv4);let _0x98946d=_0xe3d359(0x18a)+AG_API_URL+_0xe3d359(0x177);_0x436b3d[_0xe3d359(0x1b1)]&&(_0x98946d='https://'+AG_API_URL+_0xe3d359(0x17b));!fs[_0xe3d359(0x1af)](_0x1a90c3[_0xe3d359(0x19a)](getCredentialsPath))&&(console[_0xe3d359(0x1a2)](_0x1a90c3[_0xe3d359(0x16b)]),await _0x1a90c3['yNJkP'](sendInstrumentationEvent,_0x436b3d,_0x1a90c3[_0xe3d359(0x1a9)],messageTypes['ERROR'],_0x1a90c3[_0xe3d359(0x1a0)],null,_0x436b3d),process[_0xe3d359(0x18c)](0x1));const _0x43ce19=JSON[_0xe3d359(0x1b9)](fs[_0xe3d359(0x168)](_0x1a90c3['hKsfN'](getCredentialsPath))),_0x32eecd={'method':_0x1a90c3[_0xe3d359(0x179)],'headers':_0x1a90c3[_0xe3d359(0x19f)](getAuthHeader,_0x43ce19[_0xe3d359(0x182)][_0xe3d359(0x18e)],_0x43ce19[_0xe3d359(0x182)][_0xe3d359(0x188)]),'throwHttpErrors':![]};global_registry[_0xe3d359(0x1c0)]=_0x43ce19[_0xe3d359(0x182)]['username'],global_registry[_0xe3d359(0x1b5)]=_0x43ce19[_0xe3d359(0x182)]['password'],_0x1a90c3[_0xe3d359(0x189)](sendInstrumentationEvent,_0x436b3d,_0x1a90c3['TtjTn'],messageTypes[_0xe3d359(0x1b6)],null,null,_0x436b3d);const _0x59b9ff=await _0x1a90c3['FPJOf'](got,_0x98946d,_0x32eecd);if(_0x1a90c3['awUoh'](_0x59b9ff,null)&&_0x1a90c3[_0xe3d359(0x1b8)](_0x59b9ff,undefined)&&_0x1a90c3[_0xe3d359(0x16e)](_0x59b9ff['statusCode'],0xc8)){const _0x1c7c89=JSON['parse'](_0x59b9ff[_0xe3d359(0x172)]);console['log'](_0x1a90c3[_0xe3d359(0x1b7)]);const _0x383263=[];_0x383263[_0xe3d359(0x19c)]([_0x1a90c3[_0xe3d359(0x1a7)],_0x1a90c3[_0xe3d359(0x184)],_0x1a90c3['pkeZP'],_0x1a90c3[_0xe3d359(0x17c)]]),_0x1c7c89[_0xe3d359(0x169)](_0x4e2c15=>{const _0x420217=_0xe3d359;_0x383263['push']([_0x4e2c15['name'],_0x4e2c15[_0x420217(0x1ab)],_0x4e2c15[_0x420217(0x16f)],_0x4e2c15[_0x420217(0x1bf)]]);}),console[_0xe3d359(0x1be)](_0x1a90c3[_0xe3d359(0x186)](table,_0x383263)),process[_0xe3d359(0x18c)](0x0);}_0x1a90c3[_0xe3d359(0x16e)](_0x59b9ff[_0xe3d359(0x1bc)],0x191)&&(console[_0xe3d359(0x1a2)](_0x1a90c3[_0xe3d359(0x1a6)]),await _0x1a90c3[_0xe3d359(0x195)](sendInstrumentationEvent,_0x436b3d,_0x1a90c3[_0xe3d359(0x1a9)],messageTypes[_0xe3d359(0x1b3)],_0x1a90c3[_0xe3d359(0x1b2)],null,_0x436b3d),process[_0xe3d359(0x18c)](0x1)),console[_0xe3d359(0x1a2)](_0xe3d359(0x16c)+JSON[_0xe3d359(0x193)](_0x59b9ff)),await _0x1a90c3[_0xe3d359(0x195)](sendInstrumentationEvent,_0x436b3d,_0x1a90c3[_0xe3d359(0x1a9)],messageTypes[_0xe3d359(0x1b3)],_0x1a90c3[_0xe3d359(0x18f)],_0x59b9ff,_0x436b3d),process[_0xe3d359(0x18c)](0x1);}catch(_0x41ffe7){console[_0xe3d359(0x1a2)](_0xe3d359(0x1a4)+_0x41ffe7[_0xe3d359(0x19b)]),await _0x1a90c3['SdXoC'](sendInstrumentationEvent,_0x436b3d,_0x1a90c3[_0xe3d359(0x1a9)],messageTypes[_0xe3d359(0x1b3)],_0x1a90c3[_0xe3d359(0x1a1)],_0x41ffe7,_0x436b3d),process[_0xe3d359(0x18c)](0x1);}};function a14_0x9cf3(){const _0x8a9f7c=['bstackAccesskey','INFO','iGzNE','awUoh','parse','1198326OJqiPL','type','statusCode','handler','log','concurrency','bstackUsername','readFileSync','forEach','22OVgmdC','NcNhB','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','10mWAvJF','pXYSR','region','uuid','8905182NtDLia','body','epilogue','cloud-provider','mzsZB','grid-profiles','/packages/cli/get-grid-profiles','../../utils/utilityMethods','nmtJG','got','/packages/cli/get-all-grid-profiles','zcNeU','usage','requestId','gridProfile','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','80pZEwXr','Browserstack','../../utils/instrumentationUtils','vWJwp','477207LywsUN','hJRZf','unauthorised','password','yNJkP','https://','GET','exit','3021444VBaZED','username','rAjPg','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','ThgFo','argv','stringify','desc','SdXoC','description','table','boolean','options','oJvyR','stack','push','288RuNeXK','init-not-called','FPJOf','OIYTO','oieSf','error','91110pheiOK','Failed\x20to\x20list\x20resources!\x20Error:\x20','help','MdqSx','xenZx','ovSVj','TtjTn','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cloudProvider','21469SJPXOu','list','unknown-error','existsSync','1837448OWXuaK','allGridProfiles','svSNt','ERROR','gJuOd'];a14_0x9cf3=function(){return _0x8a9f7c;};return a14_0x9cf3();}
1
+ function a14_0x51a8(){const _0x252e58=['requestId','https://','132sRFrbK','epilogue','password','MDUwg','table','3615502tzCpuR','description','push','../../utils/utilityMethods','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','dpMop','boolean','name','readFileSync','log','init-not-called','bstackAccesskey','parse','Failed\x20to\x20list\x20resources!\x20Error:\x20','stringify','OMDpw','151867yBRpmd','rpwCr','body','EafFj','concurrency','522PXeCIr','gnEcn','bstackUsername','3mwakDs','1122726GTJaRr','aVOei','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','FqUCh','list','70pWdsLr','usage','INFO','desc','/packages/cli/get-grid-profiles','zZHaa','drIKF','allGridProfiles','error','help','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','BaTAF','server-error','unknown-error','region','2004260YEbzoL','EDqUY','TuenF','/packages/cli/get-all-grid-profiles','forEach','grid-profile-name','../../utils/instrumentationUtils','got','username','cTZKO','Browserstack','219032LmGXXw','exit','ytHzL','grid-profiles','ORYrh','469147IVAOYr','statusCode','769900qNvpZp','gridProfile','stack','TvICH','lbbFz','ERROR','gfQQM'];a14_0x51a8=function(){return _0x252e58;};return a14_0x51a8();}const a14_0x3f14bf=a14_0x4b25;(function(_0x162be7,_0x580cd0){const _0x469909=a14_0x4b25,_0x4b2994=_0x162be7();while(!![]){try{const _0x26cc7b=parseInt(_0x469909(0x193))/0x1+parseInt(_0x469909(0x183))/0x2*(parseInt(_0x469909(0x19b))/0x3)+parseInt(_0x469909(0x175))/0x4+-parseInt(_0x469909(0x163))/0x5+parseInt(_0x469909(0x17e))/0x6*(parseInt(_0x469909(0x173))/0x7)+-parseInt(_0x469909(0x16e))/0x8*(parseInt(_0x469909(0x198))/0x9)+parseInt(_0x469909(0x153))/0xa*(-parseInt(_0x469909(0x19c))/0xb);if(_0x26cc7b===_0x580cd0)break;else _0x4b2994['push'](_0x4b2994['shift']());}catch(_0x49bea){_0x4b2994['push'](_0x4b2994['shift']());}}}(a14_0x51a8,0xe167b));function a14_0x4b25(_0xf34279,_0xf5a8e4){const _0x51a84d=a14_0x51a8();return a14_0x4b25=function(_0x4b257a,_0x470313){_0x4b257a=_0x4b257a-0x150;let _0x403a92=_0x51a84d[_0x4b257a];return _0x403a92;},a14_0x4b25(_0xf34279,_0xf5a8e4);}const fs=require('fs'),got=require(a14_0x3f14bf(0x16a)),{table}=require(a14_0x3f14bf(0x182)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a14_0x3f14bf(0x186)),{sendInstrumentationEvent}=require(a14_0x3f14bf(0x169));exports['command']=a14_0x3f14bf(0x171),exports[a14_0x3f14bf(0x156)]=a14_0x3f14bf(0x187),exports['builder']=function(_0xe66b3e){const _0x36c068=a14_0x3f14bf,_0x468007={};_0x468007[_0x36c068(0x19d)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x468007[_0x36c068(0x194)]=_0x36c068(0x189),_0x468007[_0x36c068(0x181)]=_0x36c068(0x15c);const _0x1861fc=_0x468007,_0x5084e4={};_0x5084e4[_0x36c068(0x184)]=_0x1861fc[_0x36c068(0x19d)],_0x5084e4['type']=_0x1861fc[_0x36c068(0x194)];const _0xfe7cf2={};return _0xfe7cf2['all-grid-profiles']=_0x5084e4,_0xe66b3e[_0x36c068(0x154)](HELP_HEADER_MESSAGE[_0x36c068(0x152)][_0x36c068(0x176)])[_0x36c068(0x17f)](HELP_FOOTER_MESSAGE)['options'](_0xfe7cf2)[_0x36c068(0x15c)](_0x1861fc[_0x36c068(0x181)])['argv'];},exports['handler']=async function(_0x1b1d5a){const _0x59d6ac=a14_0x3f14bf,_0x54c6b8={'TuenF':function(_0x27a069){return _0x27a069();},'IRiah':_0x59d6ac(0x150),'gnEcn':function(_0x3c4fef,_0x8edc34,_0x1a0f67,_0x287d06,_0xa26d75,_0xcd6ed1,_0x5464d1){return _0x3c4fef(_0x8edc34,_0x1a0f67,_0x287d06,_0xa26d75,_0xcd6ed1,_0x5464d1);},'FqUCh':'list-grid-profiles-called','dpMop':_0x59d6ac(0x18d),'ytHzL':function(_0x3dc5a6){return _0x3dc5a6();},'cTZKO':'GET','EJARO':function(_0x68d9bd,_0x532592,_0x3038ff){return _0x68d9bd(_0x532592,_0x3038ff);},'OMDpw':function(_0x489f19,_0x4085a9,_0x277280){return _0x489f19(_0x4085a9,_0x277280);},'owdVr':function(_0x5b2dab,_0x334660){return _0x5b2dab!==_0x334660;},'EDqUY':function(_0xe30540,_0x49f0dc){return _0xe30540!==_0x49f0dc;},'lbbFz':function(_0x5ab56f,_0x5225e1){return _0x5ab56f===_0x5225e1;},'cNlkr':_0x59d6ac(0x15e),'nUguO':_0x59d6ac(0x168),'zZHaa':'cloud-provider','EafFj':_0x59d6ac(0x162),'ZyTtW':_0x59d6ac(0x197),'hbisD':function(_0x16942a,_0xb3b168){return _0x16942a(_0xb3b168);},'ORYrh':function(_0x144ebc,_0x47d1d1){return _0x144ebc===_0x47d1d1;},'TvICH':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','unbBD':'unauthorised','bmIQl':function(_0x21cbe9,_0x13f484,_0x5e8a71,_0x1bfb98,_0x2bd704,_0x49a3b1,_0x1f5722){return _0x21cbe9(_0x13f484,_0x5e8a71,_0x1bfb98,_0x2bd704,_0x49a3b1,_0x1f5722);},'gfQQM':_0x59d6ac(0x160),'drIKF':function(_0x50e8e0,_0x45c0f6,_0x350993,_0x1c9bdd,_0x76814f,_0x4602e9,_0x28919c){return _0x50e8e0(_0x45c0f6,_0x350993,_0x1c9bdd,_0x76814f,_0x4602e9,_0x28919c);},'BaTAF':_0x59d6ac(0x161)};try{global_registry[_0x59d6ac(0x17c)]=_0x54c6b8[_0x59d6ac(0x165)](uuidv4);let _0x48f268=_0x59d6ac(0x17d)+AG_API_URL+_0x59d6ac(0x157);_0x1b1d5a[_0x59d6ac(0x15a)]&&(_0x48f268=_0x59d6ac(0x17d)+AG_API_URL+_0x59d6ac(0x166));!fs['existsSync'](_0x54c6b8['TuenF'](getCredentialsPath))&&(console['error'](_0x54c6b8['IRiah']),await _0x54c6b8[_0x59d6ac(0x199)](sendInstrumentationEvent,_0x1b1d5a,_0x54c6b8[_0x59d6ac(0x151)],messageTypes[_0x59d6ac(0x17a)],_0x54c6b8[_0x59d6ac(0x188)],null,_0x1b1d5a),process['exit'](0x1));const _0x22032a=JSON[_0x59d6ac(0x18f)](fs[_0x59d6ac(0x18b)](_0x54c6b8[_0x59d6ac(0x170)](getCredentialsPath))),_0x1138bb={'method':_0x54c6b8[_0x59d6ac(0x16c)],'headers':_0x54c6b8['EJARO'](getAuthHeader,_0x22032a[_0x59d6ac(0x16d)][_0x59d6ac(0x16b)],_0x22032a['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x59d6ac(0x19a)]=_0x22032a[_0x59d6ac(0x16d)][_0x59d6ac(0x16b)],global_registry[_0x59d6ac(0x18e)]=_0x22032a[_0x59d6ac(0x16d)][_0x59d6ac(0x180)],_0x54c6b8[_0x59d6ac(0x199)](sendInstrumentationEvent,_0x1b1d5a,_0x54c6b8['FqUCh'],messageTypes[_0x59d6ac(0x155)],null,null,_0x1b1d5a);const _0x373dfb=await _0x54c6b8[_0x59d6ac(0x192)](got,_0x48f268,_0x1138bb);if(_0x54c6b8['owdVr'](_0x373dfb,null)&&_0x54c6b8[_0x59d6ac(0x164)](_0x373dfb,undefined)&&_0x54c6b8[_0x59d6ac(0x179)](_0x373dfb[_0x59d6ac(0x174)],0xc8)){const _0x1949de=JSON['parse'](_0x373dfb[_0x59d6ac(0x195)]);console[_0x59d6ac(0x18c)](_0x54c6b8['cNlkr']);const _0x1343d2=[];_0x1343d2[_0x59d6ac(0x185)]([_0x54c6b8['nUguO'],_0x54c6b8[_0x59d6ac(0x158)],_0x54c6b8[_0x59d6ac(0x196)],_0x54c6b8['ZyTtW']]),_0x1949de[_0x59d6ac(0x167)](_0x3c00ef=>{const _0x391d9f=_0x59d6ac;_0x1343d2['push']([_0x3c00ef[_0x391d9f(0x18a)],_0x3c00ef['cloudProvider'],_0x3c00ef[_0x391d9f(0x162)],_0x3c00ef[_0x391d9f(0x197)]]);}),console[_0x59d6ac(0x18c)](_0x54c6b8['hbisD'](table,_0x1343d2)),process[_0x59d6ac(0x16f)](0x0);}_0x54c6b8[_0x59d6ac(0x172)](_0x373dfb['statusCode'],0x191)&&(console[_0x59d6ac(0x15b)](_0x54c6b8[_0x59d6ac(0x178)]),await _0x54c6b8[_0x59d6ac(0x199)](sendInstrumentationEvent,_0x1b1d5a,_0x54c6b8[_0x59d6ac(0x151)],messageTypes[_0x59d6ac(0x17a)],_0x54c6b8['unbBD'],null,_0x1b1d5a),process['exit'](0x1)),console[_0x59d6ac(0x15b)](_0x59d6ac(0x15d)+JSON[_0x59d6ac(0x191)](_0x373dfb)),await _0x54c6b8['bmIQl'](sendInstrumentationEvent,_0x1b1d5a,_0x54c6b8[_0x59d6ac(0x151)],messageTypes[_0x59d6ac(0x17a)],_0x54c6b8[_0x59d6ac(0x17b)],_0x373dfb,_0x1b1d5a),process['exit'](0x1);}catch(_0x44edd6){console[_0x59d6ac(0x15b)](_0x59d6ac(0x190)+_0x44edd6[_0x59d6ac(0x177)]),await _0x54c6b8[_0x59d6ac(0x159)](sendInstrumentationEvent,_0x1b1d5a,_0x54c6b8['FqUCh'],messageTypes[_0x59d6ac(0x17a)],_0x54c6b8[_0x59d6ac(0x15f)],_0x44edd6,_0x1b1d5a),process['exit'](0x1);}};