browserstack-node-sdk 1.55.2 → 1.55.3
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.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x90a152=a9_0x4d1d;function a9_0x6e2b(){const _0x52a1e5=['type','arheT','concurrency','AioCt','xlBEq','NibxD','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','privateGrid','GhgFJ','default','gridProfileId','iQYRY','XQuTv','KUYaI','updateClusterAlreadyPresent','RwYhs','fcKSc','joKnA','metadata','GbTGd','xoIfK','Browserstack','10084mdmkNF','cPiXA','BVKpa','../../utils/gridComponents','VSAhp','stack','eDoKu','annotations','existsSync','cloudProvider','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','://','\x20in\x20existing\x20cluster\x20\x27','WiLWs','wYCvB','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','XlIjK','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','enableHubHa','mQHsL','http','qNrJx','Adding\x20Turboscale\x20Uploader\x20deployment...','Flag\x20to\x20enable\x20Hub\x20HA','LiwsM','newCluster','boolean','Grid\x20profile\x20fetched\x20from\x20backend','QQCNw','wkBdW','epilogue','getResourceClientId','managedBy','TyJMv','Namespace\x20Created','KynNb','bstackAccesskey','setupNewCluster','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','private-grid','s3bucket','PhLMM','templates','QhEYy','../..','sendEventToBackend','xiehK','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.','isPrivateGrid','JOFmN','body','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','hubVersion','VJNfd','serviceAccountName','gDckk','gQdxN','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','AJdcs','LDGPR','create-grid-checks-auth-failed','Spawning\x20the\x20grid\x20','srpeG','5|3|4|1|2|0|7|6|8','RxHMU','mdLug','HDspD','RVFWL','description','ugNjs','RUuRx','Wsajc','ibdcd','readFileSync','get-grid-url-non-200','PbnDg','ingress-nginx','ywcRr','eWuXd','7054940hKElOh','psFda','turboscale-uploader.yaml','path','Adding\x20Secret\x20Mapping','TEJcf','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','GKGiF','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','ArwOZ','requestId','prespawned-cluster-args-not-passed','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','VlZcf','join','zoyNl','bpRUK','DSZzn','securityGroups','get-grid-url-auth-failed','54eaQgnI','UrfnI','jDbVz','kafkaPassword','lVYfd','utf-8','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','cluster-autoupgrade','cloud-provider','Spawning\x20grid\x20on\x20to\x20the\x20cluster','create-grid-checks-null-response','ZCZog','AlhND','Spawning\x20Grid\x20on\x20the\x20Cluster','\x27\x20grid\x20profile','iPbgq','browserstack','IeGzL','hub-ha','rkfMR','../../utils/createk8sClient','sendResourceDataToHST','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Will\x20be\x20spawning\x20the\x20grid\x20','Cluster:\x20','mCQHG','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','HbHDy','Creating\x20namespace','labels','error','vPOqt','dLezo','GEydX','string','instanceType','uploaderVersion','eZKzj','create','debug','flAIz','yegsN','../../utils/utilityMethods','iWred','https://','OxiZR','XKede','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','minNodes','Enabling\x20Hub\x20HA\x20flow','GZvuH','replace','usage','QAaFN','OMsQL','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','uhYNw','hPNbg','PwpIY','lrpSF','tSlND','267jLtJZl','../../config/logger','clusterAutoUpgrade','got','aNXvz','xZPFK','tjdDs','MdVqz','xruPk','hubHa','MaqED','tcGfi','PzRzG','maxNodes','QsikH','ucmUK','VhKUG','iuhCC','bjxHX','isClusterPresent','tOPTU','EaQbF','VuJGU','YwZmI','browserVersion','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','EWIqm','Grid\x20spawned\x20on\x20the\x20cluster','ERROR','Hub\x20HA\x20setup\x20completed\x20successfully.','Added\x20Kafka\x20deployment.','skip-tls-cert-verify','Skip\x20insecure\x20cert\x20verification.','gHUZU','grid-name','CLI_RUN_STARTED','grid-spawning-failed','vHOEE','rNEJH','kgEML','lUrhl','LOG','efs-csi','clusterName','RsfZN','4|1|0|2|3','isNewAWSCluster','Xhmjn','nPkzP','spec','230188kimVei','Epyd5nXbRK','builder','bOnrJ','HIeIc','hubHaNameSpace','hwuYr','kZAZI','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','EOojX','nONKX','getGridHostname','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','user','KOzpb','JhOHN','alreadyPresent','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','FjhMX','deleteCluster','FOmps','statusCode','UVyxJ','username','jVYqB','toLowerCase','gridName','js-yaml','cluster-name','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','9489nHqCdt','esfNw','fCTxU','upvrx','createdBy','get-grid-url-null-response','CJKCv','pre-spawned-invalid-subnets','AcAua','wLAUL','gridProfiles','template','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','create-grid-checks-invalid-profile','uOFqk','help','grid-profile','LBEIm','Jhzoe','gdFRV','UUPJK','nHAox','hTvAL','Create\x20a\x20private/public\x20grid.','EqaZK','uaDEt','private-ingress-nginx-controller','TqqJY','Adding\x20Kafka\x20deployment...','CronH','CIMTj','isVPCPresent','options','turboscale-managed-identity-','xIhLJ','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Namespace\x20created','grid','zPRTG','Found\x20VPC:\x20','jUEpF','Cluster\x20','YaQCG','dzuoo','route53','region','clusterRegion','vMyXb','defaultGridProfile','length','sDlJT','pQRge','jNyWV','tIHUn','KQPup','MjgCk','non-aws-azure-cluster','mZpsu','<UsernamePlaceholder>','WebSocket','Vmbgk','DLhbT','parse','https','AvvQI','VVgMj','argv','CLI\x20run\x20started','49260fCnEea','FEWIv','redisPassword','ZGbBg','exit','true','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','pkQGB','VPsvC','\x20are\x20not\x20present\x20in\x20VPC:\x20','XYKie','Cluster\x20created\x20successfully','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','ZfKye','dxiAY','Subnets:\x20','khgmH','osUZD','jwfPF','/packages/cli/create-grid-checks','1|0|4|2|3','command','JkrQz','Added\x20Secret\x20Mapping','stfDC','gjWqs','3698563fMCrWL','jrBtX','fpdVG','subnets','gCIzK','zOHMD','wzGPN','INFO','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','<PasswordPlaceholder>','createOtherResources','KIfLi','namespace','FDgEa','name','nJeJs','woopU','JSIJr','rzhGF','dKUFf','ELJFI','zIFHz','KiXvm','Plnjb','BpCDx','bstackUsername','includes','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','UkRNzNYCBU','142EPQGee','hLLgc','info','zLLYk','reconnecting-websocket','setupHubHa','create-grid-checks-grid-already-exists','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ingress-nginx-controller','Adding\x20Websocket\x20listeners','Tdzmi','CHYAN','clusterAutoupgrade','CLI\x20run\x20finished:\x20','iJQyS','eDpjt','Deleting\x20the\x20CloudFormation\x20Stacks','azurefile-csi-premium','loadAll','connectionTimeout','SUqZc','password','kafkaUploader','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','ttbhl','../../utils/instrumentationUtils','stringify','EddIU','14|11|5|12|3|6|9|7|2|15|1|0|10|8|4|13','hubharesources','\x20using\x20\x27','HFNdz','zkVVr','hFbRZ','HSiDX','RcfcG','readFileAsync','8ghEHTK','uFunu','FHSOy','CImLa','HOgpM','handler','OOSUs','gridProfile','iYcyQ','bcROY','IfJBa','WCdRe','message','dkWFc','PeFXE','3552048pbTGND','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','split','rMxRD','skipTlsCertVerify'];a9_0x6e2b=function(){return _0x52a1e5;};return a9_0x6e2b();}(function(_0xa16c70,_0x51fc24){const _0x4887df=a9_0x4d1d,_0x2fdca8=_0xa16c70();while(!![]){try{const _0x2b9e05=-parseInt(_0x4887df(0x1e3))/0x1*(parseInt(_0x4887df(0x25e))/0x2)+-parseInt(_0x4887df(0x193))/0x3*(-parseInt(_0x4887df(0x2ad))/0x4)+-parseInt(_0x4887df(0x227))/0x5*(-parseInt(_0x4887df(0x155))/0x6)+-parseInt(_0x4887df(0x1c5))/0x7*(parseInt(_0x4887df(0x283))/0x8)+parseInt(_0x4887df(0x292))/0x9+parseInt(_0x4887df(0x141))/0xa+-parseInt(_0x4887df(0x241))/0xb;if(_0x2b9e05===_0x51fc24)break;else _0x2fdca8['push'](_0x2fdca8['shift']());}catch(_0x6a1dbd){_0x2fdca8['push'](_0x2fdca8['shift']());}}}(a9_0x6e2b,0x5a6bf));const fs=require('fs'),ws=require('ws'),path=require(a9_0x90a152(0x144)),yaml=require(a9_0x90a152(0x1e0)),ReconnectingWebSocket=require(a9_0x90a152(0x262)),got=require(a9_0x90a152(0x196)),{v4:uuidv4}=require('uuid'),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x90a152(0x194)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x90a152(0x180)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x90a152(0x2b0)),{createK8sClient}=require(a9_0x90a152(0x16a)),{sendInstrumentationEvent}=require(a9_0x90a152(0x277));function a9_0x4d1d(_0x53c906,_0x17e93c){const _0x6e2b32=a9_0x6e2b();return a9_0x4d1d=function(_0x4d1d69,_0x1c0f27){_0x4d1d69=_0x4d1d69-0xfa;let _0x4439a4=_0x6e2b32[_0x4d1d69];return _0x4439a4;},a9_0x4d1d(_0x53c906,_0x17e93c);}exports[a9_0x90a152(0x23c)]=a9_0x90a152(0x208),exports['desc']='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x90a152(0x1c7)]=function(_0x42cc9c){const _0x3a19b2=a9_0x90a152,_0x1419ab={};_0x1419ab['YaQCG']=_0x3a19b2(0x275),_0x1419ab['SUqZc']=_0x3a19b2(0x178),_0x1419ab['jUEpF']=_0x3a19b2(0x1ac),_0x1419ab[_0x3a19b2(0x1db)]=_0x3a19b2(0x1e2),_0x1419ab['CIMTj']=_0x3a19b2(0x265),_0x1419ab[_0x3a19b2(0x1c9)]=_0x3a19b2(0x16c),_0x1419ab[_0x3a19b2(0x24e)]=_0x3a19b2(0x1fa),_0x1419ab['FHSOy']=_0x3a19b2(0x1b3),_0x1419ab['VuJGU']=_0x3a19b2(0x10c),_0x1419ab['ELJFI']=_0x3a19b2(0x109),_0x1419ab[_0x3a19b2(0x21a)]=_0x3a19b2(0x25c),_0x1419ab['hmsUG']=_0x3a19b2(0x1f2);const _0x2a6ea2=_0x1419ab,_0x1f09b1={};_0x1f09b1[_0x3a19b2(0x136)]=_0x2a6ea2[_0x3a19b2(0x20d)],_0x1f09b1[_0x3a19b2(0x297)]=_0x2a6ea2[_0x3a19b2(0x272)];const _0x4834f6={};_0x4834f6[_0x3a19b2(0x136)]=_0x2a6ea2[_0x3a19b2(0x20b)],_0x4834f6[_0x3a19b2(0x297)]=_0x2a6ea2[_0x3a19b2(0x272)];const _0x2035ea={};_0x2035ea['description']=_0x2a6ea2[_0x3a19b2(0x1db)],_0x2035ea[_0x3a19b2(0x297)]=_0x2a6ea2[_0x3a19b2(0x272)];const _0x41c49c={};_0x41c49c[_0x3a19b2(0x136)]=_0x2a6ea2[_0x3a19b2(0x201)],_0x41c49c[_0x3a19b2(0x297)]=_0x2a6ea2[_0x3a19b2(0x272)];const _0x29a6d2={};_0x29a6d2['description']=_0x2a6ea2[_0x3a19b2(0x1c9)],_0x29a6d2[_0x3a19b2(0x297)]=_0x2a6ea2[_0x3a19b2(0x272)];const _0x342213={};_0x342213[_0x3a19b2(0x136)]=_0x2a6ea2[_0x3a19b2(0x24e)],_0x342213['type']=_0x2a6ea2[_0x3a19b2(0x272)];const _0xa61ebc={};_0xa61ebc[_0x3a19b2(0x136)]=_0x2a6ea2[_0x3a19b2(0x285)],_0xa61ebc['type']=_0x2a6ea2[_0x3a19b2(0x1a9)],_0xa61ebc['default']=![];const _0x86049d={};_0x86049d[_0x3a19b2(0x136)]=_0x2a6ea2[_0x3a19b2(0x255)],_0x86049d['type']=_0x2a6ea2['VuJGU'],_0x86049d[_0x3a19b2(0x2a0)]=![];const _0x5d6969={};_0x5d6969['description']=_0x2a6ea2[_0x3a19b2(0x21a)],_0x5d6969['type']=_0x2a6ea2[_0x3a19b2(0x1a9)],_0x5d6969[_0x3a19b2(0x2a0)]=![];const _0x4bc9e2={};return _0x4bc9e2[_0x3a19b2(0x1b5)]=_0x1f09b1,_0x4bc9e2[_0x3a19b2(0x1f3)]=_0x4834f6,_0x4bc9e2[_0x3a19b2(0x1e1)]=_0x2035ea,_0x4bc9e2[_0x3a19b2(0x15e)]=_0x41c49c,_0x4bc9e2['region']=_0x29a6d2,_0x4bc9e2[_0x3a19b2(0x119)]=_0x342213,_0x4bc9e2['skip-tls-cert-verify']=_0xa61ebc,_0x4bc9e2[_0x3a19b2(0x168)]=_0x86049d,_0x4bc9e2[_0x3a19b2(0x15d)]=_0x5d6969,_0x42cc9c[_0x3a19b2(0x18a)](HELP_HEADER_MESSAGE[_0x3a19b2(0x17c)])[_0x3a19b2(0x110)](HELP_FOOTER_MESSAGE)[_0x3a19b2(0x203)](_0x4bc9e2)[_0x3a19b2(0x1f2)](_0x2a6ea2['hmsUG'])['argv'];},exports[a9_0x90a152(0x288)]=async function(_0x59035d){const _0x188cfc=a9_0x90a152,_0x4025d7={'IDmne':'premium-rwo','VlZcf':_0x188cfc(0x27a),'vPOqt':function(_0x226687,_0x1118a3,_0x3e0afe,_0x1e1537,_0xe2a390,_0x5a13fd,_0x235120,_0x5b85b1,_0x219632,_0x4138de,_0x154331,_0x44e7c9,_0x539ac3){return _0x226687(_0x1118a3,_0x3e0afe,_0x1e1537,_0xe2a390,_0x5a13fd,_0x235120,_0x5b85b1,_0x219632,_0x4138de,_0x154331,_0x44e7c9,_0x539ac3);},'osUZD':function(_0x6398c6,_0x4fe56c){return _0x6398c6!==_0x4fe56c;},'AJdcs':function(_0x571294,_0xc7c24e){return _0x571294(_0xc7c24e);},'kZAZI':_0x188cfc(0x23b),'vHOEE':_0x188cfc(0x166),'FOmps':_0x188cfc(0x187),'UUPJK':_0x188cfc(0x1c6),'Vmbgk':_0x188cfc(0x25d),'gDckk':_0x188cfc(0x275),'xZPFK':_0x188cfc(0x178),'Xhmjn':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Ardhb':_0x188cfc(0x1e2),'upvrx':_0x188cfc(0x265),'KiXvm':_0x188cfc(0x16c),'KQPup':_0x188cfc(0x1fa),'DFMNh':_0x188cfc(0x1b3),'VSAhp':_0x188cfc(0x10c),'wzGPN':_0x188cfc(0x109),'PeFXE':'Flag\x20to\x20enable\x20cluster\x20auto-upgrade','mdLug':_0x188cfc(0x1f2),'jrBtX':_0x188cfc(0x222),'ugNjs':_0x188cfc(0x22c),'CHYAN':_0x188cfc(0x2a0),'OOSUs':_0x188cfc(0x106),'PhLMM':'warn','pQRge':function(_0x6f9ef4,_0x427179){return _0x6f9ef4===_0x427179;},'qlRxJ':'5|4|6|8|2|1|7|3|0','YwZmI':_0x188cfc(0x226),'GZvuH':_0x188cfc(0x174),'tSlND':_0x188cfc(0x26f),'stfDC':_0x188cfc(0x12b),'RsfZN':function(_0x3254cc){return _0x3254cc();},'bOnrJ':function(_0x2db717,_0x3ec464){return _0x2db717===_0x3ec464;},'Jhzoe':'ZVEbp','dnAec':_0x188cfc(0x18d),'jNyWV':function(_0x38b50b,_0x4bfbc2,_0x4ce3a5,_0x288cb8,_0x42201a,_0x35f624,_0x1e4e67){return _0x38b50b(_0x4bfbc2,_0x4ce3a5,_0x288cb8,_0x42201a,_0x35f624,_0x1e4e67);},'bpRUK':'create-grid-called','iPbgq':'init-not-called','bEHhL':function(_0x2209d4){return _0x2209d4();},'kgEML':_0x188cfc(0x21d),'hwuYr':_0x188cfc(0x24a),'gHUZU':_0x188cfc(0x267),'GbTGd':function(_0x20f68a,_0x1ab211){return _0x20f68a===_0x1ab211;},'RVFWL':_0x188cfc(0x138),'RwYhs':_0x188cfc(0x1a1),'ywcRr':function(_0x121933,_0x4a6c5a){return _0x121933!==_0x4a6c5a;},'RicLw':_0x188cfc(0x205),'CHgeL':_0x188cfc(0x259),'xruPk':_0x188cfc(0x103),'vKDle':function(_0x38b526,_0x28a715,_0x2eae71,_0x424507,_0x4ec76c,_0x3859d0,_0x1d5dd3,_0x535e05){return _0x38b526(_0x28a715,_0x2eae71,_0x424507,_0x4ec76c,_0x3859d0,_0x1d5dd3,_0x535e05);},'yKfwz':_0x188cfc(0x14c),'hFbRZ':function(_0x5c6dc9,_0x432dc0){return _0x5c6dc9===_0x432dc0;},'sDlJT':_0x188cfc(0x132),'VVgMj':_0x188cfc(0x206),'MdVqz':function(_0x24409b,_0x247989,_0x1261f,_0x1f2fa7,_0x54d348,_0x170b38,_0x50812c,_0x27248e){return _0x24409b(_0x247989,_0x1261f,_0x1f2fa7,_0x54d348,_0x170b38,_0x50812c,_0x27248e);},'LBEIm':_0x188cfc(0x21b),'Plnjb':'ARJSE','KOzpb':_0x188cfc(0x24c),'yegsN':'jLIAT','EWIqm':_0x188cfc(0x28d),'wkBdW':_0x188cfc(0x1ec),'xZTBm':'GET','LiwsM':function(_0x698ee7,_0x5bfaf8,_0x22ed35){return _0x698ee7(_0x5bfaf8,_0x22ed35);},'rzhGF':'NCMrG','cPiXA':_0x188cfc(0x190),'bcROY':function(_0x18b0eb,_0x3eea97,_0x480a72){return _0x18b0eb(_0x3eea97,_0x480a72);},'nPkzP':function(_0x4220c8,_0x191871){return _0x4220c8===_0x191871;},'xiehK':function(_0x5a49f0,_0x2a1a6d){return _0x5a49f0!==_0x2a1a6d;},'Aasoh':_0x188cfc(0x197),'eZKzj':_0x188cfc(0x13a),'CvtvW':_0x188cfc(0x22d),'PbnDg':function(_0x3ea1c4,_0xf8ab6f,_0x44ac90,_0x59d108,_0x4c8925,_0x6f92d1,_0x457b7c,_0x10549c){return _0x3ea1c4(_0xf8ab6f,_0x44ac90,_0x59d108,_0x4c8925,_0x6f92d1,_0x457b7c,_0x10549c);},'zLLYk':_0x188cfc(0x160),'fCTxU':function(_0x2bd3b2,_0x590e34){return _0x2bd3b2!==_0x590e34;},'FjhMX':_0x188cfc(0x18c),'PzRzG':_0x188cfc(0x1a8),'pypsr':_0x188cfc(0x249),'yyMSo':_0x188cfc(0x12e),'MaqED':function(_0x3c1b92,_0x343ef1){return _0x3c1b92!==_0x343ef1;},'mQHsL':function(_0x434acc,_0x3d29d){return _0x434acc!==_0x3d29d;},'rNEJH':_0x188cfc(0x161),'eWuXd':'EnJkN','QAaFN':'create-grid-checks-non-200','dzuoo':_0x188cfc(0x10d),'TyJMv':'Bqwvz','nHAox':_0x188cfc(0x2a2),'JSIJr':_0x188cfc(0x264),'mCQHG':function(_0x47d1b8,_0x3501ec){return _0x47d1b8!==_0x3501ec;},'iuhCC':_0x188cfc(0x21c),'QhEYy':_0x188cfc(0x1f9),'QQCNw':_0x188cfc(0x1c0),'psFda':function(_0xdb7d1e,_0x13cdcb){return _0xdb7d1e===_0x13cdcb;},'KynNb':function(_0x4b6f86,_0x4055ac){return _0x4b6f86===_0x4055ac;},'IeGzL':'qVFXI','VJNfd':function(_0x5c1042,_0x3b4eb0){return _0x5c1042===_0x3b4eb0;},'lUrhl':function(_0x59df03,_0x2dace7){return _0x59df03!==_0x2dace7;},'hPNbg':_0x188cfc(0x254),'VlekE':'zPvrE','eDoKu':_0x188cfc(0x15b),'DLhbT':function(_0x44f57b,_0x454290,_0x322e2a,_0x1db284,_0x544a34,_0x2744d4,_0x5333bb,_0x1928d7){return _0x44f57b(_0x454290,_0x322e2a,_0x1db284,_0x544a34,_0x2744d4,_0x5333bb,_0x1928d7);},'Wsajc':_0x188cfc(0x1f0),'BVKpa':_0x188cfc(0x2a4),'XlIjK':function(_0x59bdf2,_0x3e3cdf){return _0x59bdf2===_0x3e3cdf;},'OxiZR':'NOswt','TEJcf':_0x188cfc(0x2a8),'arheT':function(_0x426459,_0x11ef60){return _0x426459===_0x11ef60;},'Tdzmi':'pVidW','SDGCO':function(_0x2cbf27,_0x35f85c,_0x3e2cbc,_0x16dac4,_0x4c8035,_0x4f951b,_0x3b8dbb,_0x402f2d,_0x56432e,_0x4548f0,_0x32bd2a,_0x1cdef1,_0x5bb9a6){return _0x2cbf27(_0x35f85c,_0x3e2cbc,_0x16dac4,_0x4c8035,_0x4f951b,_0x3b8dbb,_0x402f2d,_0x56432e,_0x4548f0,_0x32bd2a,_0x1cdef1,_0x5bb9a6);},'pkQGB':_0x188cfc(0xff),'HFNdz':_0x188cfc(0x2ab),'ucmUK':function(_0x180570,_0x429efb){return _0x180570===_0x429efb;},'UqVME':function(_0x2e1552,_0x5dc138){return _0x2e1552!==_0x5dc138;},'ZfKye':_0x188cfc(0x12d),'iJQyS':_0x188cfc(0x19e),'iWred':function(_0x1f5ad3,_0x1b557b){return _0x1f5ad3===_0x1b557b;},'zIFHz':_0x188cfc(0x246),'jwfPF':_0x188cfc(0x1fb),'ArwOZ':_0x188cfc(0x107),'jDbVz':function(_0x211d2d,_0x3c9c57){return _0x211d2d(_0x3c9c57);},'EddIU':function(_0x1c532c,_0x1fbb9b){return _0x1c532c!==_0x1fbb9b;},'XQuTv':_0x188cfc(0x159),'EfqKc':_0x188cfc(0x152),'WCdRe':_0x188cfc(0x131),'uaDEt':function(_0x4d8081,_0x239834,_0x1358de,_0x55268a,_0x36d210,_0x5e65d0,_0x4babc7){return _0x4d8081(_0x239834,_0x1358de,_0x55268a,_0x36d210,_0x5e65d0,_0x4babc7);},'dLezo':_0x188cfc(0x26d),'rtswB':_0x188cfc(0x231),'HWESu':function(_0xd72714,_0x8fb1d0){return _0xd72714!==_0x8fb1d0;},'TqqJY':_0x188cfc(0x28b),'HDspD':_0x188cfc(0x27e),'tOPTU':'qglMS','khgmH':_0x188cfc(0x147),'GEydX':function(_0x58706a,_0x864557){return _0x58706a!=_0x864557;},'wYCvB':function(_0x4b2cc2,_0x3358c9){return _0x4b2cc2!==_0x3358c9;},'FEWIv':function(_0x249d03,_0x29a6e9){return _0x249d03>_0x29a6e9;},'VPsvC':_0x188cfc(0xfc),'EOojX':'pre-spawned-subnets-not-selected','AlhND':function(_0x1a9817,_0xdbd7a){return _0x1a9817===_0xdbd7a;},'gQdxN':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','FaAnI':'pre-spawned-invalid-vpc','CJKCv':function(_0x1187e8,_0x118841){return _0x1187e8===_0x118841;},'uFunu':_0x188cfc(0x1ea),'rkfMR':'2|1|3|4|0','uOFqk':_0x188cfc(0x232),'dkWFc':_0x188cfc(0x121),'HOgpM':function(_0x162d73,_0x290155,_0x1f91d7){return _0x162d73(_0x290155,_0x1f91d7);},'POTtB':function(_0x2b019b,_0x18f9c2){return _0x2b019b===_0x18f9c2;},'jVYqB':function(_0x36a87e,_0x227985){return _0x36a87e===_0x227985;},'uhYNw':'Creating\x20Hub\x20HA\x20resources','zPRTG':function(_0x556d2f,_0x1617cf,_0x1d78e1){return _0x556d2f(_0x1617cf,_0x1d78e1);},'HbHDy':_0x188cfc(0x145),'JOFmN':_0x188cfc(0x11e),'gCIzK':_0x188cfc(0x11c),'AcAua':_0x188cfc(0x27b),'ZGbBg':'browserstack-secret.yaml','dxiAY':_0x188cfc(0x15a),'JkrQz':function(_0x2f5de1,_0x3f538c){return _0x2f5de1(_0x3f538c);},'MjtTK':function(_0xf8ba75,_0x16bb4b){return _0xf8ba75(_0x16bb4b);},'JhOHN':function(_0x21323a,_0x3bb791){return _0x21323a(_0x3bb791);},'RtqJp':function(_0x55ffaa,_0x19f9e9,_0x357d2c){return _0x55ffaa(_0x19f9e9,_0x357d2c);},'tjdDs':_0x188cfc(0x23e),'jzqrf':_0x188cfc(0x1bd),'tIHUn':function(_0xb48b37,_0x166201){return _0xb48b37===_0x166201;},'RcfcG':'Adding\x20Redis\x20deployment...','XlIUJ':'bitnami-redis.yaml','rMxRD':'Added\x20Redis\x20deployment.','zoyNl':_0x188cfc(0x1ff),'fpdVG':'bitnami-kafka.yaml','GEuIt':_0x188cfc(0x1b1),'UrfnI':_0x188cfc(0x108),'nONKX':_0x188cfc(0x143),'CImLa':function(_0x577db2,_0x516e8e){return _0x577db2===_0x516e8e;},'GhgFJ':'Added\x20Turboscale\x20Uploader\x20deployment.','woopU':'Created\x20Hub\x20HA\x20resources','KttsD':_0x188cfc(0x1b0),'xlBEq':'2|4|1|0|3','srpeG':'hub-ha-deployments-failed','fcKSc':_0x188cfc(0x172),'gjWqs':_0x188cfc(0x2ac),'GKGiF':_0x188cfc(0x114),'UsNqE':_0x188cfc(0x207),'BwoNI':_0x188cfc(0x15f),'esfNw':_0x188cfc(0x163),'AioCt':function(_0x400e57,_0x199956){return _0x400e57===_0x199956;},'NhPzT':function(_0x708a3,_0x44af8c,_0x2aa028,_0x28398a,_0x3f43dd,_0x3b084d,_0x3b6086,_0x15fd70,_0x2d3be6,_0xc3eafa,_0x7c51ed){return _0x708a3(_0x44af8c,_0x2aa028,_0x28398a,_0x3f43dd,_0x3b084d,_0x3b6086,_0x15fd70,_0x2d3be6,_0xc3eafa,_0x7c51ed);},'YZtgH':_0x188cfc(0x1ae),'flAIz':_0x188cfc(0x170),'HSiDX':function(_0x146dcf,_0x527e61,_0x482fef,_0x2671b6,_0x180212){return _0x146dcf(_0x527e61,_0x482fef,_0x2671b6,_0x180212);},'bjxHX':function(_0x375a19,_0x211fd3,_0x222dd5){return _0x375a19(_0x211fd3,_0x222dd5);},'XKede':_0x188cfc(0x1fd),'FPNoE':_0x188cfc(0x266),'ttbhl':_0x188cfc(0x13e),'NibxD':function(_0x47897c,_0x5eeeb9,_0x385f04){return _0x47897c(_0x5eeeb9,_0x385f04);},'mDSBJ':function(_0x39e3d4,_0x3a1250){return _0x39e3d4===_0x3a1250;},'lrpSF':_0x188cfc(0x101),'AvvQI':_0x188cfc(0x1e8),'hLLgc':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','wpSnF':function(_0x410958,_0x371101,_0x47bdcb,_0x1cf26a,_0x5e1674,_0x53c0ec,_0x504cac,_0x419bb0){return _0x410958(_0x371101,_0x47bdcb,_0x1cf26a,_0x5e1674,_0x53c0ec,_0x504cac,_0x419bb0);},'nJeJs':_0x188cfc(0x154),'CronH':function(_0x5a81ef,_0x3113bb){return _0x5a81ef!==_0x3113bb;},'vMyXb':_0x188cfc(0x13c),'gholt':function(_0x25e56c,_0x5c1c0b){return _0x25e56c===_0x5c1c0b;},'aTCiL':_0x188cfc(0x26e),'VhKUG':function(_0x4562b5,_0x2a7972,_0x1b2a56,_0x5db382,_0x4e723a,_0x34e926){return _0x4562b5(_0x2a7972,_0x1b2a56,_0x5db382,_0x4e723a,_0x34e926);},'gdFRV':function(_0x268e1f,_0x2dbb26,_0x5ce690,_0x105aef,_0x4587c5,_0x5255f5,_0x2ef0c3){return _0x268e1f(_0x2dbb26,_0x5ce690,_0x105aef,_0x4587c5,_0x5255f5,_0x2ef0c3);},'gZCbf':_0x188cfc(0x1b7)};let _0x173922=![],_0x4445f9=![],_0x56984f,_0x484576,_0x3193f,_0x4b2408,_0x1098f6,_0x4d57f5,_0xe682a9,_0x5c6677,_0x8379d7,_0x5f52e2,_0x38ea37,_0x40ff99,_0x863c26,_0x1480b4,_0x25f00e=0x1,_0x11203a=0xe;try{global_registry[_0x188cfc(0x14b)]=_0x4025d7[_0x188cfc(0x1bf)](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0x188cfc(0xfa)](_0x4025d7[_0x188cfc(0x1bf)](getCredentialsPath))&&(_0x4025d7['bOnrJ'](_0x4025d7[_0x188cfc(0x1f5)],_0x4025d7[_0x188cfc(0x1f5)])?(console['error'](_0x4025d7['dnAec']),await _0x4025d7[_0x188cfc(0x217)](sendInstrumentationEvent,_0x59035d,_0x4025d7[_0x188cfc(0x151)],messageTypes['ERROR'],_0x4025d7[_0x188cfc(0x165)],null,_0x59035d),process[_0x188cfc(0x22b)](0x1)):_0x468ab6=_0x4025d7['IDmne']);await _0x4025d7[_0x188cfc(0x217)](sendInstrumentationEvent,_0x59035d,_0x4025d7[_0x188cfc(0x151)],messageTypes[_0x188cfc(0x248)],null,null,_0x59035d);const _0x1b19ae=JSON[_0x188cfc(0x221)](fs[_0x188cfc(0x13b)](_0x4025d7['bEHhL'](getCredentialsPath)));global_registry['bstackUsername']=_0x1b19ae[_0x188cfc(0x2ac)][_0x188cfc(0x1dc)],global_registry[_0x188cfc(0x116)]=_0x1b19ae[_0x188cfc(0x2ac)][_0x188cfc(0x273)];const _0x5dd73c=WS_ENDPOINT[_0x188cfc(0x189)](_0x4025d7[_0x188cfc(0x1ba)],_0x1b19ae['Browserstack'][_0x188cfc(0x1dc)])[_0x188cfc(0x189)](_0x4025d7[_0x188cfc(0x1cb)],_0x1b19ae['Browserstack']['password']),_0x35c9c9={};_0x35c9c9[_0x188cfc(0x21e)]=ws,_0x35c9c9[_0x188cfc(0x271)]=0x36ee80,_0x40ff99=new ReconnectingWebSocket(_0x5dd73c,[],_0x35c9c9),logger[_0x188cfc(0x17d)](_0x4025d7[_0x188cfc(0x1b4)]),webSocketUtils['addListeners'](_0x40ff99,_0x59035d[_0x188cfc(0x1d2)],_0x59035d['password']);const _0x164413=_0x59035d[_0x188cfc(0x1df)]||DEFAULT_GRID_NAME;if(_0x59035d[_0x188cfc(0x1be)]||_0x59035d[_0x188cfc(0xfb)]||_0x59035d[_0x188cfc(0x210)]){if(_0x4025d7['GbTGd'](_0x4025d7[_0x188cfc(0x135)],_0x4025d7[_0x188cfc(0x2a6)])){const _0x471694=_0x4025d7[_0x188cfc(0x14e)]['split']('|');let _0x3fbf94=0x0;while(!![]){switch(_0x471694[_0x3fbf94++]){case'0':_0x387475=_0x2fca93[_0x188cfc(0x126)];continue;case'1':_0x47b1e9=_0x13ea69[_0x188cfc(0x1a0)];continue;case'2':_0xf85cd=_0x50e70f[_0x188cfc(0x11a)];continue;case'3':_0x5395e8=_0x4cf8f2[_0x188cfc(0x179)];continue;case'4':_0x4025d7['vPOqt'](_0x2c3e83,_0x351e4f,_0x564f6e,_0x4703c4,_0x2b0e1a,_0xfcec18,_0xae2dfb,_0x27deeb,_0x55973f,_0x2e2761,_0x51e767,_0x560ca5,_0x2d3148['clusterAutoupgrade']);continue;case'5':const _0x46edf1={};_0x46edf1[_0x188cfc(0x297)]=_0x50e95b[_0x188cfc(0x1bc)],_0x46edf1['message']=_0x228a99,_0x31dd87[_0x188cfc(0x11f)](_0x1386f7,_0x46edf1);continue;case'6':_0x178f6a=null;continue;case'7':_0x37c789=null;continue;case'8':_0x4025d7[_0x188cfc(0x238)](_0x6a14e0[_0x188cfc(0x29e)],_0x328a20)&&_0x99303f[_0x188cfc(0x29e)]&&(_0x1c1d58['isPrivateGrid']=!![]);continue;case'9':_0x2e4724=null;continue;case'10':_0x5f59e3=_0x32bbbf['browserVersion'];continue;case'11':_0x161dd7[_0x188cfc(0x260)](_0x1c1c91);continue;case'12':_0x436ffe=_0x21da3f[_0x188cfc(0x299)];continue;case'13':_0x1ea70f[_0x188cfc(0x104)]&&_0x4025d7[_0x188cfc(0x12c)](_0x4b0d49,_0x585b80[_0x188cfc(0x274)]);continue;case'14':_0x3df1a4='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0xd86785;continue;case'15':_0x1259f3=_0x42cf70[_0x188cfc(0x186)];continue;}break;}}else{if(!(_0x59035d[_0x188cfc(0x1be)]&&_0x59035d[_0x188cfc(0xfb)]&&_0x59035d['region'])){if(_0x4025d7[_0x188cfc(0x13f)](_0x4025d7['RicLw'],_0x4025d7['CHgeL']))_0x56984f=_0x4025d7[_0x188cfc(0x19b)],await _0x4025d7['vKDle'](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7['yKfwz'],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1);else{const _0x577e1e=_0x4025d7[_0x188cfc(0x1cc)][_0x188cfc(0x294)]('|');let _0x2759b8=0x0;while(!![]){switch(_0x577e1e[_0x2759b8++]){case'0':_0x21f15e[_0x188cfc(0x1ca)]=_0x4025d7[_0x188cfc(0x1b8)];continue;case'1':_0x58a7af['info'](_0x4025d7[_0x188cfc(0x1d9)]);continue;case'2':_0x17c676[_0x188cfc(0x158)]=_0x4025d7[_0x188cfc(0x1f7)];continue;case'3':_0x311caa[_0x188cfc(0x104)]=!![];continue;case'4':_0x480e89[_0x188cfc(0x229)]=_0x4025d7[_0x188cfc(0x21f)];continue;}break;}}}if(![AWS,AZURE,GCP][_0x188cfc(0x25b)](_0x59035d[_0x188cfc(0xfb)][_0x188cfc(0x1de)]())){if(_0x4025d7[_0x188cfc(0x27f)](_0x4025d7[_0x188cfc(0x215)],_0x4025d7[_0x188cfc(0x215)]))_0x56984f=_0x4025d7[_0x188cfc(0x224)],await _0x4025d7[_0x188cfc(0x19a)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x1f4)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1);else{const _0x5872be={};_0x5872be[_0x188cfc(0x136)]=_0x4025d7[_0x188cfc(0x129)],_0x5872be['type']=_0x4025d7[_0x188cfc(0x198)];const _0x59de48={};_0x59de48[_0x188cfc(0x136)]=_0x4025d7[_0x188cfc(0x1c2)],_0x59de48['type']=_0x4025d7[_0x188cfc(0x198)];const _0x52c089={};_0x52c089[_0x188cfc(0x136)]=_0x4025d7['Ardhb'],_0x52c089[_0x188cfc(0x297)]=_0x4025d7[_0x188cfc(0x198)];const _0x50430f={};_0x50430f[_0x188cfc(0x136)]=_0x4025d7[_0x188cfc(0x1e6)],_0x50430f[_0x188cfc(0x297)]=_0x4025d7[_0x188cfc(0x198)];const _0x22e495={};_0x22e495['description']=_0x4025d7[_0x188cfc(0x257)],_0x22e495[_0x188cfc(0x297)]=_0x4025d7[_0x188cfc(0x198)];const _0x209ce3={};_0x209ce3[_0x188cfc(0x136)]=_0x4025d7[_0x188cfc(0x219)],_0x209ce3[_0x188cfc(0x297)]=_0x4025d7[_0x188cfc(0x198)];const _0x415af4={};_0x415af4[_0x188cfc(0x136)]=_0x4025d7['DFMNh'],_0x415af4[_0x188cfc(0x297)]=_0x4025d7[_0x188cfc(0x2b1)],_0x415af4[_0x188cfc(0x2a0)]=![];const _0x31f619={};_0x31f619[_0x188cfc(0x136)]=_0x4025d7[_0x188cfc(0x247)],_0x31f619[_0x188cfc(0x297)]=_0x4025d7[_0x188cfc(0x2b1)],_0x31f619[_0x188cfc(0x2a0)]=![];const _0x5db46c={};_0x5db46c['description']=_0x4025d7[_0x188cfc(0x291)],_0x5db46c['type']=_0x4025d7['VSAhp'],_0x5db46c[_0x188cfc(0x2a0)]=![];const _0x7f931f={};return _0x7f931f[_0x188cfc(0x1b5)]=_0x5872be,_0x7f931f[_0x188cfc(0x1f3)]=_0x59de48,_0x7f931f[_0x188cfc(0x1e1)]=_0x52c089,_0x7f931f[_0x188cfc(0x15e)]=_0x50430f,_0x7f931f[_0x188cfc(0x210)]=_0x22e495,_0x7f931f[_0x188cfc(0x119)]=_0x209ce3,_0x7f931f[_0x188cfc(0x1b2)]=_0x415af4,_0x7f931f[_0x188cfc(0x168)]=_0x31f619,_0x7f931f[_0x188cfc(0x15d)]=_0x5db46c,_0x301680[_0x188cfc(0x18a)](_0x51543d[_0x188cfc(0x17c)])['epilogue'](_0x116cb3)[_0x188cfc(0x203)](_0x7f931f)[_0x188cfc(0x1f2)](_0x4025d7[_0x188cfc(0x133)])[_0x188cfc(0x225)];}}_0x59035d[_0x188cfc(0x29e)]&&_0x4025d7[_0x188cfc(0x2aa)](_0x59035d['privateGrid']['toLowerCase'](),_0x4025d7[_0x188cfc(0x137)])&&(_0x4025d7['hFbRZ'](_0x4025d7[_0x188cfc(0x258)],_0x4025d7[_0x188cfc(0x1d3)])?(_0x2300fe[_0x188cfc(0x210)]=_0x3fc2e5,_0x4487c8[_0x188cfc(0xfb)]=_0x19627d,_0x1d1ec1[_0x188cfc(0x10b)]=!![],_0x9a9e53[_0x188cfc(0x195)]=_0x36a6f4['clusterAutoupgrade']):global_registry[_0x188cfc(0x122)]=!![]);global_registry[_0x188cfc(0xfb)]=_0x59035d[_0x188cfc(0xfb)],global_registry['clusterRegion']=_0x59035d['region'],global_registry['clusterName']=_0x59035d[_0x188cfc(0x1be)];const _0x5d8556=await _0x4025d7[_0x188cfc(0x217)](getCloudProviderObject,_0x59035d['cloudProvider'],_0x59035d['clusterName'],_0x164413,_0x40ff99,webSocketUtils,_0x59035d),_0x46f61c=await _0x5d8556[_0x188cfc(0x1a6)]();!_0x46f61c?_0x4025d7[_0x188cfc(0x216)](_0x4025d7[_0x188cfc(0x17f)],_0x4025d7['yegsN'])?(logger[_0x188cfc(0x260)](_0x188cfc(0x16e)+_0x59035d['clusterName']+_0x188cfc(0x29d)),_0x173922=![],_0x4445f9=!![]):_0xbd94d1=null:_0x4025d7[_0x188cfc(0x13f)](_0x4025d7[_0x188cfc(0x1ad)],_0x4025d7['EWIqm'])?(_0x1af66f=_0x83c926[_0x188cfc(0x20f)],_0x3f1f93=_0x4025d7[_0x188cfc(0x242)]):_0x173922=!![],_0x3193f=_0x59035d[_0x188cfc(0x1be)],_0x484576=_0x59035d[_0x188cfc(0xfb)]['toLowerCase'](),_0x4b2408=_0x59035d[_0x188cfc(0x210)];}}else _0x59035d[_0x188cfc(0x28a)]&&(_0x4025d7[_0x188cfc(0x13f)](_0x4025d7[_0x188cfc(0x10f)],_0x4025d7['wkBdW'])?_0x4025d7['AJdcs'](_0x43aaca,_0x224a83['kafkaUploader']):global_registry['gridProfile']=_0x59035d[_0x188cfc(0x28a)]);global_registry[_0x188cfc(0x1df)]=_0x59035d['gridName'];const _0x5ec46a={'method':_0x4025d7['xZTBm'],'headers':_0x4025d7[_0x188cfc(0x10a)](getAuthHeader,_0x1b19ae[_0x188cfc(0x2ac)]['username'],_0x1b19ae[_0x188cfc(0x2ac)][_0x188cfc(0x273)]),'throwHttpErrors':![]},_0x4efb75={};_0x4efb75[_0x188cfc(0x1df)]=_0x164413;const _0x4d726d=_0x4efb75;_0x4445f9&&(_0x4025d7[_0x188cfc(0x216)](_0x4025d7[_0x188cfc(0x253)],_0x4025d7[_0x188cfc(0x253)])?(_0x4d726d[_0x188cfc(0x210)]=_0x4b2408,_0x4d726d[_0x188cfc(0xfb)]=_0x484576,_0x4d726d[_0x188cfc(0x10b)]=!![],_0x4d726d[_0x188cfc(0x195)]=_0x59035d[_0x188cfc(0x26a)]):_0x2a999a[_0x188cfc(0x28a)]=_0x22f1dc[_0x188cfc(0x28a)]);_0x59035d[_0x188cfc(0x26a)]&&(_0x4025d7[_0x188cfc(0x1c8)](_0x4025d7[_0x188cfc(0x2ae)],_0x4025d7['cPiXA'])?logger['info'](_0x4025d7[_0x188cfc(0x23f)]):_0x4ecbe5[_0x188cfc(0x260)](_0x188cfc(0x20a)+_0x1243f3+'\x20'));const _0xe9c7f=_0x188cfc(0x182)+AG_API_URL+_0x188cfc(0x23a),_0x1d6fdb={'searchParams':_0x4d726d,'throwHttpErrors':![],..._0x5ec46a},_0xbf83bb=_0x1d6fdb,_0x3ed7cf=await _0x4025d7[_0x188cfc(0x28c)](got,_0xe9c7f,_0xbf83bb);(_0x4025d7[_0x188cfc(0x1c8)](_0x3ed7cf,null)||_0x4025d7[_0x188cfc(0x1c3)](_0x3ed7cf,undefined))&&(_0x4025d7[_0x188cfc(0x120)](_0x4025d7['Aasoh'],_0x4025d7[_0x188cfc(0x17b)])?(_0x56984f=_0x4025d7['CvtvW'],await _0x4025d7[_0x188cfc(0x13d)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x261)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1)):_0x4025d7['AJdcs'](_0x4de9d8,_0x35f095[_0x188cfc(0x17a)]));if(_0x4025d7[_0x188cfc(0x2aa)](_0x3ed7cf[_0x188cfc(0x1da)],0x191)){if(_0x4025d7[_0x188cfc(0x1e5)](_0x4025d7[_0x188cfc(0x1d7)],_0x4025d7[_0x188cfc(0x19f)]))_0x56984f=_0x4025d7['pypsr'],await _0x4025d7[_0x188cfc(0x13d)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7['yyMSo'],_0x4025d7[_0x188cfc(0x188)]),logger['error'](_0x56984f),process[_0x188cfc(0x22b)](0x1);else throw new _0x523fb6('Cluster\x20'+_0x506b49+_0x188cfc(0x293));}if(_0x4025d7[_0x188cfc(0x19d)](_0x3ed7cf[_0x188cfc(0x1da)],0xc8)){if(_0x4025d7[_0x188cfc(0x105)](_0x4025d7[_0x188cfc(0x1b9)],_0x4025d7[_0x188cfc(0x140)]))_0x56984f=_0x188cfc(0x125)+JSON[_0x188cfc(0x278)](_0x3ed7cf['body']),await _0x4025d7[_0x188cfc(0x19a)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x18b)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process['exit'](0x1);else{const _0xdda081={'azure.workload.identity/use':_0x4025d7['ugNjs'],..._0x3d473b[0x0]['spec'][_0x188cfc(0x1ee)][_0x188cfc(0x2a9)][_0x188cfc(0x173)]};_0x11cd36[0x0][_0x188cfc(0x1c4)][_0x188cfc(0x1ee)][_0x188cfc(0x2a9)][_0x188cfc(0x173)]=_0xdda081,_0x9acf18[0x0][_0x188cfc(0x1c4)][_0x188cfc(0x1ee)][_0x188cfc(0x1c4)][_0x188cfc(0x128)]=_0x4025d7[_0x188cfc(0x269)];}}const _0x3f3ea4=JSON[_0x188cfc(0x221)](_0x3ed7cf[_0x188cfc(0x124)]),_0x4290e9={};_0x4290e9['type']=WS_EVENTS[_0x188cfc(0x1b6)],_0x4290e9[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x1aa)],webSocketUtils['sendEventToBackend'](_0x40ff99,_0x4290e9);const _0x43f6a1={};_0x43f6a1[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x43f6a1[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x20e)],webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x43f6a1);_0x3f3ea4[_0x188cfc(0x1d5)]&&(_0x4025d7[_0x188cfc(0x105)](_0x4025d7[_0x188cfc(0x113)],_0x4025d7[_0x188cfc(0x1f8)])?(_0x56984f=_0x188cfc(0x1d6)+_0x164413+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x4025d7[_0x188cfc(0x19a)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7['bpRUK'],_0x4025d7[_0x188cfc(0x252)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process['exit'](0x1)):_0x3ab798['isPrivateGrid']=!![]);const _0x569532=_0x3f3ea4[_0x188cfc(0x1ed)];let _0x33efa7=_0x569532[_0x3f3ea4[_0x188cfc(0x213)]];_0x59035d[_0x188cfc(0x28a)]&&(_0x4025d7[_0x188cfc(0x16f)](_0x4025d7['iuhCC'],_0x4025d7[_0x188cfc(0x1a4)])?_0xefd564=_0x4025d7[_0x188cfc(0x289)]:_0x33efa7=_0x569532[_0x59035d['gridProfile']]);global_registry[_0x188cfc(0x104)]=![];if(_0x59035d[_0x188cfc(0x19c)]){if(_0x4025d7[_0x188cfc(0x1c8)](_0x4025d7[_0x188cfc(0x11d)],_0x4025d7[_0x188cfc(0x11d)])){const _0x428fcc=_0x4025d7[_0x188cfc(0x10e)][_0x188cfc(0x294)]('|');let _0x49466d=0x0;while(!![]){switch(_0x428fcc[_0x49466d++]){case'0':global_registry['redisPassword']=_0x4025d7['Vmbgk'];continue;case'1':global_registry[_0x188cfc(0x1ca)]=_0x4025d7[_0x188cfc(0x1b8)];continue;case'2':global_registry[_0x188cfc(0x158)]=_0x4025d7[_0x188cfc(0x1f7)];continue;case'3':global_registry[_0x188cfc(0x104)]=!![];continue;case'4':logger[_0x188cfc(0x260)](_0x4025d7['FOmps']);continue;}break;}}else{const _0x15c6d1={};_0x15c6d1['type']=_0x3c28c2[_0x188cfc(0x1bc)],_0x15c6d1[_0x188cfc(0x28f)]=_0x188cfc(0x20c)+_0x247370+_0x188cfc(0x14d),_0x48e588['sendEventToBackend'](_0x49618e,_0x15c6d1,_0x4025d7[_0x188cfc(0x11b)]),_0x459849[_0x188cfc(0x260)](_0x188cfc(0x20c)+_0x2f02f0+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x540f62=!![];if(_0x4025d7[_0x188cfc(0x216)](_0x592afd,!![]))throw new _0x567fc8(_0x188cfc(0x20c)+_0x36b66a+_0x188cfc(0x293));}}if(_0x4025d7[_0x188cfc(0x142)](_0x173922,![])&&_0x4025d7[_0x188cfc(0x27f)](_0x4445f9,![])){if(_0x4025d7[_0x188cfc(0x115)](_0x4025d7[_0x188cfc(0x167)],_0x4025d7[_0x188cfc(0x167)])){_0x4025d7[_0x188cfc(0x127)](_0x33efa7,undefined)&&(_0x4025d7[_0x188cfc(0x1bb)](_0x4025d7[_0x188cfc(0x18f)],_0x4025d7['VlekE'])?(_0x56984f=_0x4025d7[_0x188cfc(0x2b3)],await _0x4025d7[_0x188cfc(0x220)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x139)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1)):_0x4df582[_0x188cfc(0x122)]=!![]);global_registry[_0x188cfc(0x2a1)]=_0x33efa7['id'],_0x56984f=_0x188cfc(0x16d)+_0x164413+_0x188cfc(0x27c)+_0x33efa7[_0x188cfc(0x24f)]+_0x188cfc(0x164),logger[_0x188cfc(0x260)](_0x56984f);const _0x7c8e69={};_0x7c8e69[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x7c8e69[_0x188cfc(0x28f)]=_0x56984f,webSocketUtils['sendEventToBackend'](_0x40ff99,_0x7c8e69),_0x484576=_0x33efa7[_0x188cfc(0xfb)],_0x3193f=_0x33efa7[_0x188cfc(0x1be)],_0x4b2408=_0x33efa7[_0x188cfc(0x210)],_0x1098f6=_0x33efa7[_0x188cfc(0x299)],_0x4d57f5=_0x33efa7[_0x188cfc(0x179)],_0xe682a9=_0x33efa7['vpc'],_0x5c6677=_0x33efa7[_0x188cfc(0x153)],_0x8379d7=_0x33efa7[_0x188cfc(0x244)],_0x5f52e2=_0x33efa7[_0x188cfc(0x11a)],_0x25f00e=_0x33efa7[_0x188cfc(0x186)],_0x11203a=_0x33efa7[_0x188cfc(0x1a0)],_0x863c26=_0x3f3ea4['hubVersion'],_0x1480b4=_0x3f3ea4[_0x188cfc(0x1ab)];if(_0xe682a9&&_0x4025d7[_0x188cfc(0x27f)](_0xe682a9['length'],0x0)){if(_0x4025d7['nPkzP'](_0x4025d7['BVKpa'],_0x4025d7[_0x188cfc(0x2af)]))_0xe682a9=null;else{const _0x1d1493=_0x4025d7['qlRxJ'][_0x188cfc(0x294)]('|');let _0x38dd21=0x0;while(!![]){switch(_0x1d1493[_0x38dd21++]){case'0':_0x1cbe31['browserVersion']=_0x56ffa5[_0x188cfc(0x1ab)];continue;case'1':_0x5a5100['clusterRegion']=_0x17a364;continue;case'2':_0x2b94c6['cloudProvider']=_0x2b98ec;continue;case'3':_0x1b08ad[_0x188cfc(0x126)]=_0x5094d2[_0x188cfc(0x126)];continue;case'4':_0x4f6c24=_0x188cfc(0x12f)+_0x14d254+_0x188cfc(0xfe)+_0x3ddf07+'\x27';continue;case'5':const _0x1c9bca={};_0x1c9bca[_0x188cfc(0x297)]=_0x2de7c6[_0x188cfc(0x1b6)],_0x1c9bca[_0x188cfc(0x28f)]=_0x4025d7['YwZmI'],_0x38ad70['sendEventToBackend'](_0x918997,_0x1c9bca);continue;case'6':_0x56addf[_0x188cfc(0x260)](_0x308ddb);continue;case'7':_0x1b393c[_0x188cfc(0x1be)]=_0x27d3ef;continue;case'8':const _0x8efc48={};_0x8efc48[_0x188cfc(0x297)]=_0x1cb53c[_0x188cfc(0x1bc)],_0x8efc48[_0x188cfc(0x28f)]=_0x436b17,_0x3d03d4['sendEventToBackend'](_0x3b4bb3,_0x8efc48);continue;}break;}}}_0x8379d7&&_0x4025d7[_0x188cfc(0x102)](_0x8379d7[_0x188cfc(0x214)],0x0)&&(_0x4025d7[_0x188cfc(0x1e5)](_0x4025d7[_0x188cfc(0x183)],_0x4025d7[_0x188cfc(0x146)])?_0x8379d7=null:(_0x530aec[_0x188cfc(0x260)](_0x188cfc(0x16e)+_0x4f5b9c[_0x188cfc(0x1be)]+_0x188cfc(0x29d)),_0x5a05fe=![],_0x54b162=!![]));if(_0x4025d7[_0x188cfc(0x16f)](_0x33efa7[_0x188cfc(0x29e)],undefined)&&_0x33efa7[_0x188cfc(0x29e)]){if(_0x4025d7[_0x188cfc(0x298)](_0x4025d7[_0x188cfc(0x268)],_0x4025d7[_0x188cfc(0x268)]))global_registry[_0x188cfc(0x122)]=!![];else{const _0x488570={};_0x488570[_0x188cfc(0x297)]=_0x14cc07[_0x188cfc(0x1bc)],_0x488570[_0x188cfc(0x28f)]=_0x4493ec,_0x50e17f['sendEventToBackend'](_0x7f96f4,_0x488570,_0x4025d7['GZvuH'],!![]);}}_0x4025d7['SDGCO'](updateGlobalRegistryWithConfig,_0x484576,_0x3193f,_0x4b2408,_0x1098f6,_0x4d57f5,_0x5f52e2,_0x33efa7,_0x863c26,_0x1480b4,_0x25f00e,_0x11203a,_0x59035d[_0x188cfc(0x26a)]),global_registry[_0x188cfc(0x104)]&&(_0x4025d7[_0x188cfc(0x102)](_0x4025d7[_0x188cfc(0x22e)],_0x4025d7[_0x188cfc(0x27d)])?_0x55b44d[_0x188cfc(0x174)](_0x188cfc(0x15c)+_0x4edf74+'\x20\x0a'+_0x526d22[_0x188cfc(0x278)](_0x2251bc[_0x188cfc(0x2b2)])):_0x4025d7[_0x188cfc(0x12c)](updateGlobalRegistryForHubHa,_0x3f3ea4[_0x188cfc(0x17a)]));}else _0x738a6c=_0x4025d7['tSlND'];}else{if(_0x4025d7[_0x188cfc(0x1a2)](_0x4445f9,!![])){if(_0x4025d7['UqVME'](_0x4025d7[_0x188cfc(0x234)],_0x4025d7[_0x188cfc(0x26c)])){_0x56984f=_0x188cfc(0x1d1)+_0x164413,logger[_0x188cfc(0x260)](_0x56984f);const _0x94b7d9={};_0x94b7d9['type']=WS_EVENTS[_0x188cfc(0x1bc)],_0x94b7d9['message']=_0x56984f,webSocketUtils['sendEventToBackend'](_0x40ff99,_0x94b7d9),_0x1098f6=_0x33efa7[_0x188cfc(0x299)],_0x4d57f5=_0x33efa7[_0x188cfc(0x179)],_0xe682a9=null,_0x5c6677=null,_0x8379d7=null,_0x5f52e2=_0x33efa7[_0x188cfc(0x11a)],_0x25f00e=_0x33efa7[_0x188cfc(0x186)],_0x11203a=_0x33efa7[_0x188cfc(0x1a0)],_0x863c26=_0x3f3ea4[_0x188cfc(0x126)],_0x1480b4=_0x3f3ea4[_0x188cfc(0x1ab)],_0x4025d7[_0x188cfc(0x13f)](_0x33efa7['privateGrid'],undefined)&&_0x33efa7[_0x188cfc(0x29e)]&&(_0x4025d7[_0x188cfc(0x181)](_0x4025d7[_0x188cfc(0x256)],_0x4025d7['zIFHz'])?global_registry[_0x188cfc(0x122)]=!![]:_0x406e5a=null),_0x4025d7[_0x188cfc(0x175)](updateGlobalRegistryWithConfig,_0x484576,_0x3193f,_0x4b2408,_0x1098f6,_0x4d57f5,_0x5f52e2,_0x33efa7,_0x863c26,_0x1480b4,_0x25f00e,_0x11203a,_0x59035d[_0x188cfc(0x26a)]),global_registry[_0x188cfc(0x104)]&&(_0x4025d7[_0x188cfc(0x19d)](_0x4025d7[_0x188cfc(0x239)],_0x4025d7[_0x188cfc(0x14a)])?_0x4025d7[_0x188cfc(0x157)](updateGlobalRegistryForHubHa,_0x3f3ea4[_0x188cfc(0x274)]):_0x1a7b2c=_0xf4d9e4[_0x1357cc[_0x188cfc(0x28a)]]);}else _0xa81946[_0x188cfc(0x16b)]();}else{if(_0x4025d7[_0x188cfc(0x279)](_0x4025d7[_0x188cfc(0x2a3)],_0x4025d7['EfqKc'])){const _0x38995d=_0x4025d7[_0x188cfc(0x28e)][_0x188cfc(0x294)]('|');let _0x426a48=0x0;while(!![]){switch(_0x38995d[_0x426a48++]){case'0':global_registry[_0x188cfc(0x211)]=_0x4b2408;continue;case'1':const _0x396be4={};_0x396be4[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x396be4[_0x188cfc(0x28f)]=_0x56984f,webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x396be4);continue;case'2':global_registry[_0x188cfc(0xfb)]=_0x484576;continue;case'3':_0x56984f='Spawning\x20the\x20grid\x20'+_0x164413+_0x188cfc(0xfe)+_0x3193f+'\x27';continue;case'4':logger[_0x188cfc(0x260)](_0x56984f);continue;case'5':const _0x1907af={};_0x1907af[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1b6)],_0x1907af[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x1aa)],webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x1907af);continue;case'6':global_registry[_0x188cfc(0x126)]=_0x3f3ea4[_0x188cfc(0x126)];continue;case'7':global_registry[_0x188cfc(0x1be)]=_0x3193f;continue;case'8':global_registry['browserVersion']=_0x3f3ea4[_0x188cfc(0x1ab)];continue;}break;}}else _0x43ab05=!![];}}const _0x3f809d=await _0x4025d7[_0x188cfc(0x1fc)](getCloudProviderObject,_0x484576,_0x3193f,_0x164413,_0x40ff99,webSocketUtils,_0x59035d);_0x4025d7['osUZD'](_0x484576,AZURE)&&(_0x4025d7[_0x188cfc(0x142)](_0x4025d7[_0x188cfc(0x176)],_0x4025d7['rtswB'])?_0x1d6576[_0x188cfc(0x122)]=!![]:_0x3f809d[_0x188cfc(0x16b)]());let _0xf51a1b;if(_0x4025d7[_0x188cfc(0x1c3)](_0x173922,![])){_0x56984f=_0x188cfc(0x118)+_0x4b2408+').';const _0x4c1836={};_0x4c1836['type']=WS_EVENTS['LOG'],_0x4c1836[_0x188cfc(0x28f)]=_0x56984f,webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x4c1836),logger[_0x188cfc(0x260)](_0x56984f);const _0x4ce30f=await _0x3f809d['isClusterPresent']();if(_0x4ce30f){if(_0x4025d7['HWESu'](_0x4025d7[_0x188cfc(0x1fe)],_0x4025d7['TqqJY']))_0x98e6e9[_0x188cfc(0x260)]('Found\x20Subnets:\x20'+_0x23b858['stringify'](_0x5a2e86)+'\x20');else{const _0xf3d661={};_0xf3d661[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0xf3d661[_0x188cfc(0x28f)]='Cluster\x20'+_0x3193f+_0x188cfc(0x14d),webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0xf3d661,_0x4025d7[_0x188cfc(0x11b)]),logger[_0x188cfc(0x260)]('Cluster\x20'+_0x3193f+_0x188cfc(0x14d)),_0x173922=!![];if(_0x4025d7[_0x188cfc(0x115)](_0x4445f9,!![])){if(_0x4025d7[_0x188cfc(0x102)](_0x4025d7[_0x188cfc(0x134)],_0x4025d7[_0x188cfc(0x1a7)]))_0x22d949[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x23f)]);else throw new Error('Cluster\x20'+_0x3193f+_0x188cfc(0x293));}}}else{const _0x291723={};_0x291723[_0x188cfc(0x297)]=WS_EVENTS['LOG'],_0x291723[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x237)],webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x291723),logger['info'](_0x4025d7['khgmH']);const _0xf74ff3=_0x4025d7[_0x188cfc(0x177)](_0xe682a9,null)&&_0x4025d7[_0x188cfc(0x100)](_0xe682a9,undefined),_0x37b454=_0x4025d7[_0x188cfc(0x177)](_0x8379d7,null)&&_0x4025d7[_0x188cfc(0x19d)](_0x8379d7,undefined)&&_0x4025d7[_0x188cfc(0x228)](_0x8379d7['length'],0x0);if(_0xf74ff3){_0x4025d7['psFda'](_0x37b454,![])&&(_0x56984f=_0x4025d7[_0x188cfc(0x22f)],await _0x4025d7['PbnDg'](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x1ce)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1));const _0x33ef59=await _0x3f809d[_0x188cfc(0x202)](_0xe682a9);_0x4025d7[_0x188cfc(0x162)](_0x33ef59,![])?(_0x56984f=_0x4025d7[_0x188cfc(0x12a)],await _0x4025d7[_0x188cfc(0x13d)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7['FaAnI'],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process['exit'](0x1)):logger[_0x188cfc(0x260)](_0x188cfc(0x20a)+_0xe682a9+'\x20');const _0x55716b=await _0x3f809d['isSubnetsValid'](_0x8379d7,_0xe682a9);_0x4025d7[_0x188cfc(0x1e9)](_0x55716b[0x0],![])?(_0x56984f=_0x188cfc(0x236)+JSON[_0x188cfc(0x278)](_0x55716b[0x1])+_0x188cfc(0x230)+_0xe682a9+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x4025d7['PbnDg'](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes['ERROR'],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x284)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1)):logger[_0x188cfc(0x260)]('Found\x20Subnets:\x20'+JSON[_0x188cfc(0x278)](_0x8379d7)+'\x20'),[_0xe682a9,_0x8379d7]=await _0x3f809d[_0x188cfc(0x117)](_0xe682a9,_0x8379d7);}else{const _0x49ebac=_0x4025d7[_0x188cfc(0x169)]['split']('|');let _0x4f7d47=0x0;while(!![]){switch(_0x49ebac[_0x4f7d47++]){case'0':logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x1f1)]);continue;case'1':logger['info'](_0x4025d7[_0x188cfc(0x290)]);continue;case'2':const _0x30c9af={};_0x30c9af[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x30c9af[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x290)],webSocketUtils['sendEventToBackend'](_0x40ff99,_0x30c9af);continue;case'3':[_0xe682a9,_0x8379d7]=await _0x3f809d[_0x188cfc(0x117)](_0xe682a9,_0x8379d7);continue;case'4':const _0x118d2b={};_0x118d2b[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x118d2b[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x1f1)],webSocketUtils['sendEventToBackend'](_0x40ff99,_0x118d2b);continue;}break;}}}}_0x173922&&_0x4025d7[_0x188cfc(0x298)](_0x484576,AZURE)&&(await _0x3f809d[_0x188cfc(0x2a5)](),await _0x3f809d[_0x188cfc(0x24b)]());const [_0x242a62,_0x10a794,_0x4f014e,_0x175b7d,_0x4a1584,_0x1f6914,_0x4a1cf1]=await _0x4025d7[_0x188cfc(0x287)](createK8sClient,_0x3f809d,_0x59035d[_0x188cfc(0x296)]);_0x4025d7['POTtB'](_0x173922,![])&&_0x4025d7[_0x188cfc(0x1dd)](_0x484576,AWS)&&(global_registry[_0x188cfc(0x1c1)]=!![],_0xf51a1b=await _0x3f809d['setupAutoscaler'](_0x242a62,_0x59035d));if(_0x4025d7[_0x188cfc(0x1a2)](_0x173922,![])&&global_registry[_0x188cfc(0x104)])try{await _0x3f809d[_0x188cfc(0x263)](_0x1f6914,_0x4a1cf1,_0x59035d,_0xe682a9,_0x8379d7);const _0x41481f={};_0x41481f[_0x188cfc(0x297)]=WS_EVENTS['LOG'],_0x41481f[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x18e)],webSocketUtils['sendEventToBackend'](_0x40ff99,_0x41481f);!await _0x4025d7[_0x188cfc(0x209)](namespaceExists,_0x242a62,global_registry[_0x188cfc(0x1ca)])&&await _0x4025d7[_0x188cfc(0x10a)](createNamespace,_0x242a62,global_registry[_0x188cfc(0x1ca)]);logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x171)]);let _0x26c73d=await fs[_0x188cfc(0x282)](path[_0x188cfc(0x14f)](__dirname,_0x4025d7[_0x188cfc(0x123)],_0x4025d7[_0x188cfc(0x245)],_0x4025d7[_0x188cfc(0x1eb)],_0x4025d7[_0x188cfc(0x22a)]),_0x4025d7[_0x188cfc(0x235)]);_0x26c73d=_0x26c73d[_0x188cfc(0x189)](/<RedisClientPassword>/g,_0x4025d7['JkrQz'](encodeBase64,global_registry[_0x188cfc(0x229)])),_0x26c73d=_0x26c73d[_0x188cfc(0x189)](/<KafkaClientPassword>/g,_0x4025d7[_0x188cfc(0x23d)](encodeBase64,global_registry[_0x188cfc(0x158)])),_0x26c73d=_0x26c73d[_0x188cfc(0x189)](/<BstackUsername>/g,_0x4025d7['MjtTK'](encodeBase64,global_registry[_0x188cfc(0x25a)])),_0x26c73d=_0x26c73d[_0x188cfc(0x189)](/<BstackAccessKey>/g,_0x4025d7[_0x188cfc(0x1d4)](encodeBase64,global_registry[_0x188cfc(0x116)]));const _0x2ba5fc=yaml[_0x188cfc(0x270)](_0x26c73d);await _0x4025d7['RtqJp'](kubeApply,_0x2ba5fc,_0x4a1cf1),logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x199)]);let _0x44fcbc=_0x4025d7['jzqrf'];if(_0x4025d7['GbTGd'](_0x484576,AZURE))_0x44fcbc=_0x4025d7[_0x188cfc(0x192)];else _0x4025d7[_0x188cfc(0x218)](_0x484576,GCP)&&(_0x44fcbc=_0x4025d7['IDmne']);logger['info'](_0x4025d7[_0x188cfc(0x281)]);let _0x11adc2=await fs[_0x188cfc(0x282)](path['join'](__dirname,_0x4025d7[_0x188cfc(0x123)],_0x4025d7[_0x188cfc(0x245)],_0x4025d7[_0x188cfc(0x1eb)],_0x4025d7['XlIUJ']),_0x4025d7[_0x188cfc(0x235)]);_0x11adc2=_0x11adc2['replace'](/<HubHaNameSpace>/g,global_registry[_0x188cfc(0x1ca)]),_0x11adc2=_0x11adc2[_0x188cfc(0x189)](/<StorageClassName>/g,_0x44fcbc);const _0x7375ad=yaml['loadAll'](_0x11adc2);await _0x4025d7['bcROY'](kubeApply,_0x7375ad,_0x4a1cf1),logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x295)]),logger['info'](_0x4025d7[_0x188cfc(0x150)]);let _0x1994ab=await fs['readFileAsync'](path[_0x188cfc(0x14f)](__dirname,_0x4025d7[_0x188cfc(0x123)],_0x4025d7['gCIzK'],_0x4025d7[_0x188cfc(0x1eb)],_0x4025d7[_0x188cfc(0x243)]),_0x4025d7['dxiAY']);_0x1994ab=_0x1994ab['replace'](/<HubHaNameSpace>/g,global_registry[_0x188cfc(0x1ca)]),_0x1994ab=_0x1994ab[_0x188cfc(0x189)](/<StorageClassName>/g,_0x44fcbc);const _0x8201a6=yaml[_0x188cfc(0x270)](_0x1994ab);await _0x4025d7['bcROY'](kubeApply,_0x8201a6,_0x4a1cf1),logger[_0x188cfc(0x260)](_0x4025d7['GEuIt']),logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x156)]);let _0x16a037=await fs[_0x188cfc(0x282)](path['join'](__dirname,_0x4025d7[_0x188cfc(0x123)],_0x4025d7[_0x188cfc(0x245)],_0x4025d7[_0x188cfc(0x1eb)],_0x4025d7[_0x188cfc(0x1cf)]),_0x4025d7[_0x188cfc(0x235)]);_0x16a037=_0x16a037[_0x188cfc(0x189)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x16a037=_0x16a037['replace'](/<HubHaNameSpace>/g,global_registry[_0x188cfc(0x1ca)]);const _0x2bc47e=yaml['loadAll'](_0x16a037);_0x4025d7['CImLa'](global_registry[_0x188cfc(0xfb)],AZURE)&&(_0x2bc47e[0x0][_0x188cfc(0x1c4)]['template'][_0x188cfc(0x2a9)][_0x188cfc(0x173)]={'azure.workload.identity/use':_0x4025d7[_0x188cfc(0x137)],..._0x2bc47e[0x0][_0x188cfc(0x1c4)]['template'][_0x188cfc(0x2a9)][_0x188cfc(0x173)]},_0x2bc47e[0x0][_0x188cfc(0x1c4)]['template'][_0x188cfc(0x1c4)]['serviceAccountName']=_0x4025d7['CHYAN']);await _0x4025d7[_0x188cfc(0x209)](kubeApply,_0x2bc47e,_0x4a1cf1),logger['info'](_0x4025d7[_0x188cfc(0x29f)]);const _0x307a5d={};_0x307a5d[_0x188cfc(0x297)]=WS_EVENTS['LOG'],_0x307a5d[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x251)],webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x307a5d),logger[_0x188cfc(0x260)](_0x4025d7['KttsD']);}catch(_0x17b97f){const _0x3637fc=_0x4025d7[_0x188cfc(0x29b)]['split']('|');let _0x2c062d=0x0;while(!![]){switch(_0x3637fc[_0x2c062d++]){case'0':await _0x3f809d['deleteCluster'](_0x242a62,global_registry[_0x188cfc(0x211)]);continue;case'1':await _0x4025d7['PbnDg'](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x130)],_0x4025d7[_0x188cfc(0x188)]);continue;case'2':_0x56984f=_0x188cfc(0x149)+_0x17b97f[_0x188cfc(0x28f)];continue;case'3':process[_0x188cfc(0x22b)](0x1);continue;case'4':logger['error'](_0x56984f);continue;}break;}}try{_0x38ea37=_0x4025d7['jDbVz'](kebabCase,_0x164413),logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x2a7)]);const _0x5f3e61={};_0x5f3e61['type']=WS_EVENTS[_0x188cfc(0x1bc)],_0x5f3e61[_0x188cfc(0x28f)]=_0x4025d7[_0x188cfc(0x2a7)],webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x5f3e61);if(_0x4025d7[_0x188cfc(0x100)](_0x38ea37,_0x4025d7[_0x188cfc(0x269)])){const _0x2506cf={};_0x2506cf[_0x188cfc(0x1e7)]=_0x4025d7[_0x188cfc(0x240)],_0x2506cf[_0x188cfc(0x112)]=_0x4025d7[_0x188cfc(0x240)];const _0x4c450b={};_0x4c450b[_0x188cfc(0x24f)]=_0x38ea37,_0x4c450b[_0x188cfc(0x2b4)]=_0x2506cf;const _0x2cacc6={};_0x2cacc6[_0x188cfc(0x2a9)]=_0x4c450b;const _0x5a7149=_0x2cacc6,_0xa66221={};_0xa66221[_0x188cfc(0x124)]=_0x5a7149,await _0x242a62['createNamespace'](_0xa66221),logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x148)]);}const _0x3ec676={};_0x3ec676[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x3ec676[_0x188cfc(0x28f)]=_0x4025d7['UsNqE'],webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x3ec676);const _0x306549={};_0x306549[_0x188cfc(0x297)]=WS_EVENTS['LOG'],_0x306549[_0x188cfc(0x28f)]=_0x4025d7['BwoNI'],webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x306549),logger[_0x188cfc(0x260)](_0x4025d7[_0x188cfc(0x1e4)]);let _0x527437={};_0x4025d7[_0x188cfc(0x29a)](_0x484576,AZURE)&&(_0x527437={'clientId':await _0x3f809d[_0x188cfc(0x111)](_0x188cfc(0x204)+_0x3193f)});await _0x4025d7['NhPzT'](addGridComponents,_0x242a62,_0x10a794,_0x4f014e,_0x175b7d,_0x38ea37,_0x3193f,_0xf51a1b,_0x4a1584,_0x4a1cf1,_0x527437),_0x56984f=_0x4025d7['YZtgH'],logger[_0x188cfc(0x260)](_0x56984f);const _0xf8dc9={};_0xf8dc9[_0x188cfc(0x297)]=WS_EVENTS['LOG'],_0xf8dc9['message']=_0x56984f,webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0xf8dc9),_0x56984f=_0x4025d7[_0x188cfc(0x17e)],logger[_0x188cfc(0x260)](_0x56984f);const _0x3ab1e3={};_0x3ab1e3[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x3ab1e3[_0x188cfc(0x28f)]=_0x56984f,webSocketUtils['sendEventToBackend'](_0x40ff99,_0x3ab1e3),await _0x4025d7[_0x188cfc(0x280)](waitForDeployment,_0x10a794,_0x38ea37,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x2245f2=await _0x4025d7[_0x188cfc(0x1a5)](getNamespaceUID,_0x242a62,_0x38ea37),_0x44ced8=global_registry[_0x188cfc(0x122)]?_0x4025d7[_0x188cfc(0x184)]:_0x4025d7['FPNoE'],_0x1a514f={};_0x1a514f[_0x188cfc(0x24f)]=_0x44ced8,_0x1a514f[_0x188cfc(0x24d)]=_0x4025d7[_0x188cfc(0x276)];const _0x20ee91=await _0x242a62['readNamespacedService'](_0x1a514f);let _0x50be17=_0x3f809d[_0x188cfc(0x1d0)](_0x20ee91)+'/'+_0x38ea37,_0x2cb802=_0x4025d7[_0x188cfc(0x289)];try{const _0x3fcfd7=_0x188cfc(0x182)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x2245f2,_0x56d622=await _0x4025d7[_0x188cfc(0x29c)](got,_0x3fcfd7,_0x5ec46a);(_0x4025d7[_0x188cfc(0x286)](_0x56d622,null)||_0x4025d7['mDSBJ'](_0x56d622,undefined))&&(_0x56984f=_0x4025d7[_0x188cfc(0x191)],await _0x4025d7['MdVqz'](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x223)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1));_0x4025d7[_0x188cfc(0x127)](_0x56d622[_0x188cfc(0x1da)],0x191)&&(_0x56984f=_0x4025d7[_0x188cfc(0x25f)],await _0x4025d7['wpSnF'](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7['bpRUK'],_0x4025d7[_0x188cfc(0x250)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1));_0x4025d7[_0x188cfc(0x200)](_0x56d622[_0x188cfc(0x1da)],0xc8)&&(_0x56984f=_0x188cfc(0x185)+JSON[_0x188cfc(0x278)](_0x56d622),await _0x4025d7[_0x188cfc(0x220)](reportToGalactusAndSendToEDS,_0x59035d,_0x40ff99,_0x56984f,messageTypes[_0x188cfc(0x1af)],_0x4025d7[_0x188cfc(0x151)],_0x4025d7[_0x188cfc(0x212)],_0x4025d7[_0x188cfc(0x188)]),logger[_0x188cfc(0x174)](_0x56984f),process[_0x188cfc(0x22b)](0x1));const _0x52ed3a=JSON[_0x188cfc(0x221)](_0x56d622[_0x188cfc(0x124)]);_0x52ed3a[_0x188cfc(0x20f)]&&(_0x50be17=_0x52ed3a['route53'],_0x2cb802=_0x4025d7[_0x188cfc(0x242)]),global_registry[_0x188cfc(0x122)]&&(_0x2cb802=_0x4025d7[_0x188cfc(0x289)]);}catch(_0x4af32e){}_0x56984f='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x50be17+'\x20',logger[_0x188cfc(0x260)](_0x56984f);const _0x3ba1a4={};_0x3ba1a4[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0x3ba1a4['message']=_0x56984f,webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x3ba1a4),_0x56984f=_0x188cfc(0x1cd)+_0x2cb802+_0x188cfc(0xfd)+_0x50be17+'/wd/hub',logger[_0x188cfc(0x260)](_0x56984f);const _0xc11f0f={};_0xc11f0f[_0x188cfc(0x297)]=WS_EVENTS[_0x188cfc(0x1bc)],_0xc11f0f[_0x188cfc(0x28f)]=_0x56984f,webSocketUtils['sendEventToBackend'](_0x40ff99,_0xc11f0f);const _0x1ee905={};_0x1ee905[_0x188cfc(0x297)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x1ee905[_0x188cfc(0x28f)]=_0x188cfc(0x26b)+_0x50be17,webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x1ee905),await webSocketUtils['delay'](0x7d0);}catch(_0x25f083){logger[_0x188cfc(0x174)](_0x188cfc(0x1ef)+_0x25f083+'\x20\x0a'+JSON['stringify'](_0x25f083['stack']));if(_0x4025d7['gholt'](_0x173922,![]))try{logger['info'](_0x4025d7['aTCiL']),await _0x4025d7[_0x188cfc(0x1a3)](removeGridComponents,_0x242a62,_0x10a794,_0x4f014e,_0x175b7d,_0x38ea37),await _0x3f809d[_0x188cfc(0x1d8)](_0x242a62,global_registry[_0x188cfc(0x211)]);}catch(_0x5859f0){logger[_0x188cfc(0x174)](_0x188cfc(0x15c)+_0x5859f0+'\x20\x0a'+JSON['stringify'](_0x5859f0[_0x188cfc(0x2b2)]));}throw _0x25f083;}}catch(_0x27444d){const _0x9e5063=_0x188cfc(0x233)+_0x27444d+'\x20\x0a'+JSON[_0x188cfc(0x278)](_0x27444d['stack']);if(_0x40ff99){const _0x682e4a={};_0x682e4a[_0x188cfc(0x297)]=WS_EVENTS['LOG'],_0x682e4a[_0x188cfc(0x28f)]=_0x9e5063,webSocketUtils[_0x188cfc(0x11f)](_0x40ff99,_0x682e4a,_0x4025d7['GZvuH'],!![]);}await webSocketUtils['delay'](0x7d0);const _0x1ff61f={};_0x1ff61f[_0x188cfc(0x174)]=_0x9e5063,await _0x4025d7[_0x188cfc(0x1f6)](sendInstrumentationEvent,_0x59035d,_0x4025d7[_0x188cfc(0x151)],messageTypes[_0x188cfc(0x1af)],_0x4025d7['gZCbf'],_0x1ff61f,_0x59035d),logger[_0x188cfc(0x174)](_0x9e5063);}process[_0x188cfc(0x22b)](0x0);};
|
|
1
|
+
const a9_0x1ad8b0=a9_0x298f;(function(_0x20cb48,_0x57f868){const _0x4954cd=a9_0x298f,_0x8ecfec=_0x20cb48();while(!![]){try{const _0x14a550=-parseInt(_0x4954cd(0x21d))/0x1+parseInt(_0x4954cd(0x27e))/0x2+parseInt(_0x4954cd(0x225))/0x3+parseInt(_0x4954cd(0x219))/0x4+parseInt(_0x4954cd(0x23a))/0x5*(-parseInt(_0x4954cd(0x274))/0x6)+-parseInt(_0x4954cd(0x2a1))/0x7*(-parseInt(_0x4954cd(0x30c))/0x8)+parseInt(_0x4954cd(0x1c7))/0x9*(-parseInt(_0x4954cd(0x35a))/0xa);if(_0x14a550===_0x57f868)break;else _0x8ecfec['push'](_0x8ecfec['shift']());}catch(_0x20edef){_0x8ecfec['push'](_0x8ecfec['shift']());}}}(a9_0x3730,0xce68f));const fs=require('fs'),ws=require('ws'),path=require(a9_0x1ad8b0(0x280)),yaml=require('js-yaml'),ReconnectingWebSocket=require(a9_0x1ad8b0(0x30b)),got=require(a9_0x1ad8b0(0x237)),{v4:uuidv4}=require(a9_0x1ad8b0(0x26d)),webSocketUtils=require(a9_0x1ad8b0(0x2ae)),{logger}=require(a9_0x1ad8b0(0x364)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x1ad8b0(0x1c5)),{getCloudProviderObject}=require(a9_0x1ad8b0(0x231)),{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_0x1ad8b0(0x1fb)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x1ad8b0(0x1f1)),{createK8sClient}=require(a9_0x1ad8b0(0x370)),{sendInstrumentationEvent}=require(a9_0x1ad8b0(0x30f));function a9_0x298f(_0x396886,_0xadcdf4){const _0x3730a7=a9_0x3730();return a9_0x298f=function(_0x298f8b,_0x4d7091){_0x298f8b=_0x298f8b-0x1bd;let _0x2a33ce=_0x3730a7[_0x298f8b];return _0x2a33ce;},a9_0x298f(_0x396886,_0xadcdf4);}exports[a9_0x1ad8b0(0x277)]=a9_0x1ad8b0(0x2d8),exports['desc']=a9_0x1ad8b0(0x1e8),exports['builder']=function(_0x130e59){const _0x46a6ed=a9_0x1ad8b0,_0x14e30b={};_0x14e30b[_0x46a6ed(0x1f9)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x14e30b[_0x46a6ed(0x2b5)]='string',_0x14e30b[_0x46a6ed(0x2a9)]=_0x46a6ed(0x270),_0x14e30b[_0x46a6ed(0x2b0)]=_0x46a6ed(0x375),_0x14e30b[_0x46a6ed(0x327)]=_0x46a6ed(0x36b),_0x14e30b[_0x46a6ed(0x32f)]=_0x46a6ed(0x2c0),_0x14e30b[_0x46a6ed(0x1e2)]=_0x46a6ed(0x210),_0x14e30b[_0x46a6ed(0x249)]=_0x46a6ed(0x23c),_0x14e30b[_0x46a6ed(0x262)]='boolean',_0x14e30b['QDcCO']=_0x46a6ed(0x2f2),_0x14e30b[_0x46a6ed(0x21e)]='Flag\x20to\x20enable\x20cluster\x20auto-upgrade',_0x14e30b[_0x46a6ed(0x224)]=_0x46a6ed(0x353);const _0x36aa9e=_0x14e30b,_0x37c9f8={};_0x37c9f8['description']=_0x36aa9e[_0x46a6ed(0x1f9)],_0x37c9f8[_0x46a6ed(0x374)]=_0x36aa9e[_0x46a6ed(0x2b5)];const _0x24d15c={};_0x24d15c[_0x46a6ed(0x2f3)]=_0x36aa9e[_0x46a6ed(0x2a9)],_0x24d15c[_0x46a6ed(0x374)]=_0x36aa9e[_0x46a6ed(0x2b5)];const _0x45bcb7={};_0x45bcb7['description']=_0x36aa9e['fomCK'],_0x45bcb7['type']=_0x36aa9e[_0x46a6ed(0x2b5)];const _0xa0a56b={};_0xa0a56b[_0x46a6ed(0x2f3)]=_0x36aa9e[_0x46a6ed(0x327)],_0xa0a56b[_0x46a6ed(0x374)]=_0x36aa9e[_0x46a6ed(0x2b5)];const _0x43ebe6={};_0x43ebe6[_0x46a6ed(0x2f3)]=_0x36aa9e[_0x46a6ed(0x32f)],_0x43ebe6[_0x46a6ed(0x374)]=_0x36aa9e[_0x46a6ed(0x2b5)];const _0x4e1a7b={};_0x4e1a7b['description']=_0x36aa9e[_0x46a6ed(0x1e2)],_0x4e1a7b[_0x46a6ed(0x374)]=_0x36aa9e['IAkEV'];const _0x588d21={};_0x588d21[_0x46a6ed(0x2f3)]=_0x36aa9e[_0x46a6ed(0x249)],_0x588d21[_0x46a6ed(0x374)]=_0x36aa9e[_0x46a6ed(0x262)],_0x588d21[_0x46a6ed(0x2fc)]=![];const _0x43c9c5={};_0x43c9c5[_0x46a6ed(0x2f3)]=_0x36aa9e[_0x46a6ed(0x23b)],_0x43c9c5[_0x46a6ed(0x374)]=_0x36aa9e[_0x46a6ed(0x262)],_0x43c9c5[_0x46a6ed(0x2fc)]=![];const _0x36ce42={};_0x36ce42[_0x46a6ed(0x2f3)]=_0x36aa9e[_0x46a6ed(0x21e)],_0x36ce42[_0x46a6ed(0x374)]=_0x36aa9e[_0x46a6ed(0x262)],_0x36ce42[_0x46a6ed(0x2fc)]=![];const _0x131c15={};return _0x131c15[_0x46a6ed(0x25b)]=_0x37c9f8,_0x131c15[_0x46a6ed(0x1eb)]=_0x24d15c,_0x131c15[_0x46a6ed(0x209)]=_0x45bcb7,_0x131c15[_0x46a6ed(0x2e6)]=_0xa0a56b,_0x131c15[_0x46a6ed(0x1ec)]=_0x43ebe6,_0x131c15['private-grid']=_0x4e1a7b,_0x131c15['skip-tls-cert-verify']=_0x588d21,_0x131c15[_0x46a6ed(0x1c3)]=_0x43c9c5,_0x131c15['cluster-autoupgrade']=_0x36ce42,_0x130e59['usage'](HELP_HEADER_MESSAGE[_0x46a6ed(0x348)])[_0x46a6ed(0x20b)](HELP_FOOTER_MESSAGE)[_0x46a6ed(0x20a)](_0x131c15)[_0x46a6ed(0x353)](_0x36aa9e[_0x46a6ed(0x224)])[_0x46a6ed(0x29c)];},exports[a9_0x1ad8b0(0x360)]=async function(_0x41f8c5){const _0x2815f5=a9_0x1ad8b0,_0x308cab={'xiptv':_0x2815f5(0x28e),'zDaZJ':_0x2815f5(0x2fc),'YBdtt':'8|1|0|2|6|5|3|4|7','ovvYC':_0x2815f5(0x1fd),'sbTnw':_0x2815f5(0x278),'EshAd':_0x2815f5(0x2f9),'yvBQI':_0x2815f5(0x2b6),'panzJ':'browserstack','ICTok':_0x2815f5(0x2a5),'QdGrf':'Epyd5nXbRK','QnzTt':_0x2815f5(0x2f7),'uQRHB':function(_0x273f59,_0x236cae){return _0x273f59(_0x236cae);},'pkXWP':function(_0x2721ea,_0x34179b,_0x27fd4c,_0xe12985,_0x15405b,_0x34692a,_0x545d2e,_0x5eb078,_0x32a84b,_0x33b38a,_0x33c46a,_0x47903f,_0x415edf){return _0x2721ea(_0x34179b,_0x27fd4c,_0xe12985,_0x15405b,_0x34692a,_0x545d2e,_0x5eb078,_0x32a84b,_0x33b38a,_0x33c46a,_0x47903f,_0x415edf);},'yKFRJ':function(_0x63a698,_0x3b66f6){return _0x63a698!==_0x3b66f6;},'RvoBl':function(_0x1fe86a,_0x59feba){return _0x1fe86a(_0x59feba);},'ygUXd':_0x2815f5(0x1e9),'pRCmh':_0x2815f5(0x1e0),'bURhI':_0x2815f5(0x326),'InwzF':_0x2815f5(0x214),'EsSpf':_0x2815f5(0x285),'DbHhH':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','DieSF':_0x2815f5(0x2c5),'cRmxr':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','HciFH':_0x2815f5(0x375),'SpGiY':_0x2815f5(0x36b),'QUuRT':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','JQnCd':_0x2815f5(0x210),'HBrbp':_0x2815f5(0x23c),'IPchA':_0x2815f5(0x207),'Uvybj':_0x2815f5(0x2f2),'ubPlv':_0x2815f5(0x1ff),'hRJrV':'help','RJtot':_0x2815f5(0x255),'fKBnQ':function(_0x5efcd6,_0x401ed9){return _0x5efcd6===_0x401ed9;},'lWApN':function(_0x567b2d){return _0x567b2d();},'EhofF':function(_0x44ed03){return _0x44ed03();},'DXxUi':_0x2815f5(0x2e9),'eSZxS':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yUYol':function(_0x34e52e,_0x2ca089,_0x2ca25a,_0x6012ab,_0x5712d4,_0x5478c2,_0x53fade){return _0x34e52e(_0x2ca089,_0x2ca25a,_0x6012ab,_0x5712d4,_0x5478c2,_0x53fade);},'eFgEH':_0x2815f5(0x24a),'pwDHR':_0x2815f5(0x24b),'hkNtu':_0x2815f5(0x21f),'NOitK':'<PasswordPlaceholder>','YfyTv':_0x2815f5(0x362),'Amdhf':function(_0x50b509,_0x4484de){return _0x50b509!==_0x4484de;},'qRjbt':_0x2815f5(0x238),'KXIOQ':_0x2815f5(0x2aa),'QcvFi':_0x2815f5(0x2ba),'uoAMD':function(_0xaaa740,_0x3d669c,_0x2b1a94,_0x1f5b8c,_0x4eabc3,_0x1ad200,_0x64f456,_0x4d74e2){return _0xaaa740(_0x3d669c,_0x2b1a94,_0x1f5b8c,_0x4eabc3,_0x1ad200,_0x64f456,_0x4d74e2);},'MYSbS':_0x2815f5(0x201),'fzeZp':'xgjBu','zhTXG':_0x2815f5(0x339),'JCGbB':function(_0xf65993,_0x348d33,_0x3fc64b,_0x530f90,_0x112755,_0x286d36,_0x2fefb3,_0x1d9f3f){return _0xf65993(_0x348d33,_0x3fc64b,_0x530f90,_0x112755,_0x286d36,_0x2fefb3,_0x1d9f3f);},'Btimt':_0x2815f5(0x1e3),'EyGot':function(_0x27fed6,_0x37fa66){return _0x27fed6!==_0x37fa66;},'UpVkJ':'UiBaK','aWgPq':function(_0x3d96af,_0x63d29f,_0x23c97c,_0x5b4d8b,_0x2190fa,_0x56cb5e,_0x4fe8b9){return _0x3d96af(_0x63d29f,_0x23c97c,_0x5b4d8b,_0x2190fa,_0x56cb5e,_0x4fe8b9);},'JeLkd':function(_0x183db5,_0x3a96a1){return _0x183db5===_0x3a96a1;},'ANvyG':'Ioftx','MQVxe':'Lnofd','EaxHy':function(_0x342098,_0x10aca1){return _0x342098===_0x10aca1;},'QpFDm':_0x2815f5(0x1ee),'UPUMc':'lvDAD','rmmTc':_0x2815f5(0x1f0),'xRYQT':_0x2815f5(0x20f),'DKuZu':function(_0x266744,_0x3c54dd,_0x191ab7){return _0x266744(_0x3c54dd,_0x191ab7);},'Jjeux':function(_0x342851,_0x1f8785){return _0x342851===_0x1f8785;},'ieQyA':'WmUtM','fidzr':'MOotw','fPnDj':_0x2815f5(0x2bb),'OmkdZ':function(_0x4f3ef6,_0x3b0fc7){return _0x4f3ef6===_0x3b0fc7;},'nbkMb':_0x2815f5(0x283),'gBaZG':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','EpSbp':function(_0x135ea6,_0xd96cca,_0x22b945,_0x48e1f9,_0x102f7c,_0x4b35dc,_0xc5da6f,_0x5205ab){return _0x135ea6(_0xd96cca,_0x22b945,_0x48e1f9,_0x102f7c,_0x4b35dc,_0xc5da6f,_0x5205ab);},'gQbme':_0x2815f5(0x366),'kqiJf':function(_0x14887e,_0x4c2423){return _0x14887e!==_0x4c2423;},'ySgFx':_0x2815f5(0x2be),'ZCyEa':_0x2815f5(0x27d),'NaQSt':'create-grid-checks-auth-failed','PTcBB':'hiAVN','cHbxp':_0x2815f5(0x1c9),'lrDAp':function(_0x48797a,_0x828839,_0x35ef8d,_0x227270,_0x3d4722,_0x4c1e84,_0x88b17d,_0x2bb805){return _0x48797a(_0x828839,_0x35ef8d,_0x227270,_0x3d4722,_0x4c1e84,_0x88b17d,_0x2bb805);},'wrRAN':_0x2815f5(0x287),'bEnDK':_0x2815f5(0x258),'ucCbH':function(_0xae4e3e,_0x5341e4){return _0xae4e3e===_0x5341e4;},'gGIFU':'XApqS','iEWQF':'tOcyM','tOhEZ':function(_0xcd6bc5,_0x4b8a13,_0x3d494b,_0x26e3b2,_0x5938cb,_0x1162d6,_0x1a7e23,_0x2bc204){return _0xcd6bc5(_0x4b8a13,_0x3d494b,_0x26e3b2,_0x5938cb,_0x1162d6,_0x1a7e23,_0x2bc204);},'RMovX':_0x2815f5(0x2fa),'nqBSI':_0x2815f5(0x221),'VBkRs':_0x2815f5(0x2c1),'LjtPr':function(_0x3b825e,_0x4dbd1d){return _0x3b825e!==_0x4dbd1d;},'cfIQz':'OMGke','SdLiE':_0x2815f5(0x2de),'aLUzV':'1|3|0|4|2','siqAp':function(_0x249dbb,_0x5522f3){return _0x249dbb===_0x5522f3;},'JnUOG':function(_0x1a4d44,_0x10e440){return _0x1a4d44!==_0x10e440;},'CIaqb':_0x2815f5(0x321),'XzmzX':function(_0x3cc70f,_0x5a7db1){return _0x3cc70f===_0x5a7db1;},'SACcR':function(_0x53596c,_0x35c713){return _0x53596c!==_0x35c713;},'HCuEI':_0x2815f5(0x350),'fPehN':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','mFNQX':_0x2815f5(0x371),'GTSXb':function(_0x113004,_0x474821){return _0x113004===_0x474821;},'FAaIg':_0x2815f5(0x2ac),'AYrHW':function(_0x355c73,_0x4e664a){return _0x355c73===_0x4e664a;},'nrlgr':_0x2815f5(0x26b),'qpkFY':'FcMLR','RtMkH':_0x2815f5(0x1ef),'dfyHZ':function(_0x141c00,_0x5bda85,_0x18b8ad,_0x120518,_0x13093f,_0x57e905,_0x23d679,_0x26975,_0x531028,_0x3ebf69,_0x3f30ac,_0x447ca1,_0x6c89fa){return _0x141c00(_0x5bda85,_0x18b8ad,_0x120518,_0x13093f,_0x57e905,_0x23d679,_0x26975,_0x531028,_0x3ebf69,_0x3f30ac,_0x447ca1,_0x6c89fa);},'TCqwL':_0x2815f5(0x334),'sJmDR':_0x2815f5(0x322),'gPIVq':function(_0x214569,_0x15f491){return _0x214569(_0x15f491);},'YRRlf':function(_0x39da7e,_0x1f2c20){return _0x39da7e===_0x1f2c20;},'infkw':_0x2815f5(0x2ff),'ZQADz':_0x2815f5(0x2d1),'WcTjJ':function(_0x3a86a4,_0x2a51ff){return _0x3a86a4!==_0x2a51ff;},'DmBGk':_0x2815f5(0x265),'vqgPf':'gKWFB','uHDVW':function(_0x2fbeff,_0x5a88f2){return _0x2fbeff!==_0x5a88f2;},'cCOeD':_0x2815f5(0x290),'viZXa':_0x2815f5(0x361),'QVbAr':function(_0x2aa2fb,_0x3aeca0,_0x285b2f,_0x58f165,_0x42744d,_0x5e7635,_0x5596bc){return _0x2aa2fb(_0x3aeca0,_0x285b2f,_0x58f165,_0x42744d,_0x5e7635,_0x5596bc);},'yxcRe':function(_0x50b050,_0x3b4684){return _0x50b050!==_0x3b4684;},'EiTcf':function(_0x47cc0c,_0x42afa5){return _0x47cc0c===_0x42afa5;},'zBpXO':_0x2815f5(0x21a),'vZeXz':_0x2815f5(0x243),'TAjEX':function(_0x4696aa,_0x1d472c){return _0x4696aa===_0x1d472c;},'Pniwi':_0x2815f5(0x311),'pIcDm':function(_0x340083,_0x101b70){return _0x340083===_0x101b70;},'TuwEO':function(_0x4f6155,_0x9de860){return _0x4f6155===_0x9de860;},'lMvVr':_0x2815f5(0x2b4),'LlCfZ':_0x2815f5(0x330),'hnIKB':_0x2815f5(0x1df),'RjahN':function(_0x225d28,_0x5bb866){return _0x225d28!=_0x5bb866;},'wzJUj':function(_0x3fa876,_0x2c97c4){return _0x3fa876>_0x2c97c4;},'kgwBM':_0x2815f5(0x27c),'hRiaG':function(_0x30d192,_0x7bcbc8,_0x20d237,_0x300d9b,_0x58ebf9,_0x3aa775,_0x58bec5,_0x9ed06b){return _0x30d192(_0x7bcbc8,_0x20d237,_0x300d9b,_0x58ebf9,_0x3aa775,_0x58bec5,_0x9ed06b);},'ISEUt':_0x2815f5(0x29d),'AJPhL':_0x2815f5(0x304),'TFjcb':function(_0x2df975,_0x2e3974,_0x5ba896,_0x5bd8d3,_0x34d186,_0x565800,_0x3fc0dc,_0x1641dd){return _0x2df975(_0x2e3974,_0x5ba896,_0x5bd8d3,_0x34d186,_0x565800,_0x3fc0dc,_0x1641dd);},'YYIJa':'pre-spawned-invalid-vpc','TAnaG':function(_0x3127f5,_0x1f27b8,_0x517a1d,_0x15c34a,_0x30fdbe,_0x847196,_0x52eaf8,_0xd13bd8){return _0x3127f5(_0x1f27b8,_0x517a1d,_0x15c34a,_0x30fdbe,_0x847196,_0x52eaf8,_0xd13bd8);},'wkYHJ':_0x2815f5(0x331),'sqgud':_0x2815f5(0x308),'hgOBq':_0x2815f5(0x1ea),'afdrx':_0x2815f5(0x1be),'xuiwc':function(_0x420da2,_0x136a0b,_0x433e4a){return _0x420da2(_0x136a0b,_0x433e4a);},'dtWPU':function(_0x35dd1f,_0x42e809){return _0x35dd1f===_0x42e809;},'wLEpC':function(_0x211463,_0x41adb0){return _0x211463===_0x41adb0;},'PSlxD':_0x2815f5(0x2c2),'YKbEN':function(_0x1a8952,_0x3056a0,_0x55531c){return _0x1a8952(_0x3056a0,_0x55531c);},'vCVOZ':'Adding\x20Secret\x20Mapping','QNzon':_0x2815f5(0x2d3),'rVJoG':_0x2815f5(0x368),'bhWuE':_0x2815f5(0x357),'bUXgk':_0x2815f5(0x1c0),'XQZXe':_0x2815f5(0x316),'ltaFf':function(_0x3cbe81,_0x16c619){return _0x3cbe81(_0x16c619);},'HHXod':function(_0x45141f,_0x1a9ed3){return _0x45141f(_0x1a9ed3);},'jZPhE':function(_0x42826e,_0x1358ac,_0x55cd4a){return _0x42826e(_0x1358ac,_0x55cd4a);},'McHxw':_0x2815f5(0x222),'dRQWx':_0x2815f5(0x269),'HXIGt':'Adding\x20Redis\x20deployment...','dQIFg':'bitnami-redis.yaml','FNtAR':_0x2815f5(0x1d5),'ZiBdW':_0x2815f5(0x314),'kKsYv':_0x2815f5(0x29a),'ePeSv':_0x2815f5(0x312),'SgyLK':_0x2815f5(0x279),'UaLuM':_0x2815f5(0x1bd),'kBJYZ':function(_0x269f89,_0x3e0ee6){return _0x269f89===_0x3e0ee6;},'akcXb':_0x2815f5(0x2ce),'BHZVX':'Created\x20Hub\x20HA\x20resources','ZGwdU':'Hub\x20HA\x20setup\x20completed\x20successfully.','CbMns':'2|3|4|1|0','WxFBJ':function(_0x27acf0,_0x2c5964,_0x5e5ef6,_0xaf74b8,_0x29f0de,_0x53e672,_0x5a05ea,_0x574f36){return _0x27acf0(_0x2c5964,_0x5e5ef6,_0xaf74b8,_0x29f0de,_0x53e672,_0x5a05ea,_0x574f36);},'hajYW':_0x2815f5(0x35c),'WHLfN':function(_0x560507,_0xe2c9a2){return _0x560507(_0xe2c9a2);},'FaHdr':_0x2815f5(0x2d4),'LtQjG':_0x2815f5(0x355),'MHpuv':'Namespace\x20Created','IfubF':_0x2815f5(0x202),'QvETJ':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','zhtkd':_0x2815f5(0x26c),'Nequv':function(_0x517d94,_0x1f9f42){return _0x517d94===_0x1f9f42;},'NCdDh':function(_0x14f607,_0x1166f7,_0x160bb2,_0x359573,_0xffa975,_0x3aba26,_0x1da659,_0x32bda8,_0x3be76a,_0x1bd8a6,_0x26fdb){return _0x14f607(_0x1166f7,_0x160bb2,_0x359573,_0xffa975,_0x3aba26,_0x1da659,_0x32bda8,_0x3be76a,_0x1bd8a6,_0x26fdb);},'GdCIn':_0x2815f5(0x244),'EryPI':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','mAYwX':function(_0x1c4bbf,_0x576ea1,_0x350384,_0x4a2895,_0x442439){return _0x1c4bbf(_0x576ea1,_0x350384,_0x4a2895,_0x442439);},'juoIp':function(_0x4e4478,_0x28ee68,_0x10f5b1){return _0x4e4478(_0x28ee68,_0x10f5b1);},'jmAZO':_0x2815f5(0x204),'cJjGv':'ingress-nginx-controller','jRDeG':_0x2815f5(0x228),'qXvmh':function(_0x3f5239,_0x327e5a){return _0x3f5239===_0x327e5a;},'OXCHh':function(_0x1fe531,_0x236086){return _0x1fe531===_0x236086;},'ZEaEH':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','GiEBY':function(_0x5b013a,_0x754a47,_0x29971b,_0x165f08,_0x1d20a4,_0x5e2928,_0x1a2686,_0x16e285){return _0x5b013a(_0x754a47,_0x29971b,_0x165f08,_0x1d20a4,_0x5e2928,_0x1a2686,_0x16e285);},'bfqMl':_0x2815f5(0x250),'HWvBU':function(_0x171422,_0x357f9d){return _0x171422===_0x357f9d;},'nmPmb':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','hMGkY':_0x2815f5(0x2bd),'Ieqmo':'get-grid-url-non-200','CzhjO':function(_0x31515a,_0x239c4b){return _0x31515a===_0x239c4b;},'gZwAG':_0x2815f5(0x25e),'fNsSA':function(_0x4df9a8,_0x1f96be,_0x1707c7,_0xa46e26,_0x499d56,_0x5d748a){return _0x4df9a8(_0x1f96be,_0x1707c7,_0xa46e26,_0x499d56,_0x5d748a);},'oMjOF':'grid-spawning-failed'};let _0xbb82e0=![],_0x1be896=![],_0x45e4f5,_0x31c9f0,_0x1c93a3,_0x87f0fa,_0xae078e,_0x1db7a0,_0x13c9a1,_0x27e2c9,_0x153755,_0x5e2173,_0x1ea1e1,_0x389490,_0x3055d5,_0x45131c,_0x10a02d=0x1,_0x46e05=0xe;try{global_registry[_0x2815f5(0x306)]=_0x308cab[_0x2815f5(0x2b7)](uuidv4),global_registry[_0x2815f5(0x356)]=![];if(!fs[_0x2815f5(0x2b2)](_0x308cab['EhofF'](getCredentialsPath))){if(_0x308cab['yKFRJ'](_0x308cab['DXxUi'],_0x308cab['DXxUi'])){const _0x580544={'azure.workload.identity/use':_0x308cab[_0x2815f5(0x31f)],..._0x4ba694[0x0][_0x2815f5(0x2ef)][_0x2815f5(0x2c4)][_0x2815f5(0x26f)][_0x2815f5(0x36a)]};_0xae64d9[0x0][_0x2815f5(0x2ef)][_0x2815f5(0x2c4)]['metadata'][_0x2815f5(0x36a)]=_0x580544,_0x736e7e[0x0]['spec'][_0x2815f5(0x2c4)][_0x2815f5(0x2ef)][_0x2815f5(0x2f6)]=_0x308cab[_0x2815f5(0x24e)];}else console[_0x2815f5(0x326)](_0x308cab[_0x2815f5(0x2c8)]),await _0x308cab[_0x2815f5(0x2d0)](sendInstrumentationEvent,_0x41f8c5,_0x308cab['eFgEH'],messageTypes[_0x2815f5(0x347)],_0x308cab[_0x2815f5(0x252)],null,_0x41f8c5),process[_0x2815f5(0x2eb)](0x1);}await _0x308cab[_0x2815f5(0x2d0)](sendInstrumentationEvent,_0x41f8c5,_0x308cab[_0x2815f5(0x22b)],messageTypes[_0x2815f5(0x33f)],null,null,_0x41f8c5);const _0xf34342=JSON['parse'](fs[_0x2815f5(0x2c3)](_0x308cab[_0x2815f5(0x2b7)](getCredentialsPath)));global_registry[_0x2815f5(0x320)]=_0xf34342['Browserstack'][_0x2815f5(0x2fe)],global_registry[_0x2815f5(0x295)]=_0xf34342[_0x2815f5(0x355)][_0x2815f5(0x2b8)];const _0x28f134=WS_ENDPOINT[_0x2815f5(0x34f)](_0x308cab['hkNtu'],_0xf34342[_0x2815f5(0x355)][_0x2815f5(0x2fe)])[_0x2815f5(0x34f)](_0x308cab[_0x2815f5(0x2a6)],_0xf34342[_0x2815f5(0x355)][_0x2815f5(0x2b8)]),_0xf5e7f4={};_0xf5e7f4[_0x2815f5(0x20e)]=ws,_0xf5e7f4[_0x2815f5(0x31a)]=0x36ee80,_0x389490=new ReconnectingWebSocket(_0x28f134,[],_0xf5e7f4),logger['debug'](_0x308cab[_0x2815f5(0x1e6)]),webSocketUtils['addListeners'](_0x389490,_0x41f8c5[_0x2815f5(0x2c7)],_0x41f8c5[_0x2815f5(0x2b8)]);const _0x392918=_0x41f8c5[_0x2815f5(0x22f)]||DEFAULT_GRID_NAME;if(_0x41f8c5[_0x2815f5(0x1c2)]||_0x41f8c5['cloudProvider']||_0x41f8c5[_0x2815f5(0x1ec)]){if(_0x308cab[_0x2815f5(0x352)](_0x308cab['qRjbt'],_0x308cab['qRjbt'])){const _0x33e677=_0x308cab['YBdtt'][_0x2815f5(0x34e)]('|');let _0x9bfd9b=0x0;while(!![]){switch(_0x33e677[_0x9bfd9b++]){case'0':_0x50356c['info'](_0x5a4e95);continue;case'1':_0x453780=_0x2815f5(0x36e)+_0x3864a6+_0x2815f5(0x2a0)+_0x502f7e+'\x27';continue;case'2':const _0x19c480={};_0x19c480[_0x2815f5(0x374)]=_0x319aac[_0x2815f5(0x1dc)],_0x19c480[_0x2815f5(0x2cb)]=_0x55d81e,_0x3823f3[_0x2815f5(0x35d)](_0x357e9c,_0x19c480);continue;case'3':_0x5195b0['clusterName']=_0x366acf;continue;case'4':_0x1a02fa[_0x2815f5(0x33c)]=_0x4faad5[_0x2815f5(0x33c)];continue;case'5':_0x6597ad[_0x2815f5(0x328)]=_0x401069;continue;case'6':_0xbe89aa[_0x2815f5(0x2d6)]=_0x48c963;continue;case'7':_0x23dfce[_0x2815f5(0x21b)]=_0x2194a7[_0x2815f5(0x21b)];continue;case'8':const _0x15df8a={};_0x15df8a[_0x2815f5(0x374)]=_0x1f875d[_0x2815f5(0x1ce)],_0x15df8a['message']=_0x308cab[_0x2815f5(0x22c)],_0x304442['sendEventToBackend'](_0x29bc99,_0x15df8a);continue;}break;}}else{!(_0x41f8c5[_0x2815f5(0x1c2)]&&_0x41f8c5['cloudProvider']&&_0x41f8c5['region'])&&(_0x308cab[_0x2815f5(0x25f)](_0x308cab[_0x2815f5(0x335)],_0x308cab[_0x2815f5(0x335)])?(_0x45e4f5=_0x308cab[_0x2815f5(0x28c)],await _0x308cab[_0x2815f5(0x2cf)](reportToGalactusAndSendToEDS,_0x41f8c5,_0x389490,_0x45e4f5,messageTypes[_0x2815f5(0x347)],_0x308cab[_0x2815f5(0x22b)],_0x308cab['MYSbS'],_0x308cab[_0x2815f5(0x286)]),logger[_0x2815f5(0x326)](_0x45e4f5),process[_0x2815f5(0x2eb)](0x1)):(_0x274963['info'](_0x2815f5(0x2ed)+_0x3b9099['clusterName']+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x4e4b17=![],_0x5263db=!![]));![AWS,AZURE,GCP][_0x2815f5(0x33a)](_0x41f8c5[_0x2815f5(0x2d6)]['toLowerCase']())&&(_0x308cab[_0x2815f5(0x25f)](_0x308cab[_0x2815f5(0x1fa)],_0x308cab[_0x2815f5(0x1fa)])?(_0x45e4f5=_0x308cab[_0x2815f5(0x2f4)],await _0x308cab[_0x2815f5(0x1c4)](reportToGalactusAndSendToEDS,_0x41f8c5,_0x389490,_0x45e4f5,messageTypes[_0x2815f5(0x347)],_0x308cab['eFgEH'],_0x308cab[_0x2815f5(0x2b9)],_0x308cab[_0x2815f5(0x286)]),logger[_0x2815f5(0x326)](_0x45e4f5),process['exit'](0x1)):_0x3eca4c=!![]);_0x41f8c5['privateGrid']&&_0x308cab[_0x2815f5(0x25f)](_0x41f8c5[_0x2815f5(0x1e4)]['toLowerCase'](),_0x308cab['xiptv'])&&(_0x308cab[_0x2815f5(0x22e)](_0x308cab[_0x2815f5(0x342)],_0x308cab[_0x2815f5(0x342)])?_0x368f7e=_0x308cab[_0x2815f5(0x34a)]:global_registry[_0x2815f5(0x356)]=!![]);global_registry[_0x2815f5(0x2d6)]=_0x41f8c5[_0x2815f5(0x2d6)],global_registry['clusterRegion']=_0x41f8c5[_0x2815f5(0x1ec)],global_registry[_0x2815f5(0x1c2)]=_0x41f8c5[_0x2815f5(0x1c2)];const _0x4c37b0=await _0x308cab[_0x2815f5(0x2f5)](getCloudProviderObject,_0x41f8c5['cloudProvider'],_0x41f8c5[_0x2815f5(0x1c2)],_0x392918,_0x389490,webSocketUtils,_0x41f8c5),_0x36d0c1=await _0x4c37b0['isClusterPresent']();if(!_0x36d0c1){if(_0x308cab[_0x2815f5(0x1c6)](_0x308cab[_0x2815f5(0x340)],_0x308cab[_0x2815f5(0x2a2)])){const _0x5a85b8=_0x308cab[_0x2815f5(0x354)]['split']('|');let _0x3f5233=0x0;while(!![]){switch(_0x5a85b8[_0x3f5233++]){case'0':_0xf4dea5[_0x2815f5(0x2da)]=!![];continue;case'1':_0x51f509[_0x2815f5(0x2d9)]=_0x308cab[_0x2815f5(0x333)];continue;case'2':_0x228d7f[_0x2815f5(0x1d0)]=_0x308cab[_0x2815f5(0x2ad)];continue;case'3':_0x166c69['info'](_0x308cab[_0x2815f5(0x1d6)]);continue;case'4':_0x5cd7cd[_0x2815f5(0x267)]=_0x308cab[_0x2815f5(0x223)];continue;}break;}}else logger['info'](_0x2815f5(0x2ed)+_0x41f8c5[_0x2815f5(0x1c2)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0xbb82e0=![],_0x1be896=!![];}else _0x308cab['EaxHy'](_0x308cab['QpFDm'],_0x308cab[_0x2815f5(0x338)])?_0x4d2213['gridProfile']=_0x331822[_0x2815f5(0x372)]:_0xbb82e0=!![];_0x1c93a3=_0x41f8c5[_0x2815f5(0x1c2)],_0x31c9f0=_0x41f8c5[_0x2815f5(0x2d6)][_0x2815f5(0x273)](),_0x87f0fa=_0x41f8c5['region'];}}else _0x41f8c5[_0x2815f5(0x372)]&&(_0x308cab['fKBnQ'](_0x308cab[_0x2815f5(0x2e4)],_0x308cab[_0x2815f5(0x2e4)])?global_registry['gridProfile']=_0x41f8c5[_0x2815f5(0x372)]:_0x407f4e['error']('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x58e655+'\x20\x0a'+_0x318b9c[_0x2815f5(0x276)](_0x252059[_0x2815f5(0x2ec)])));global_registry[_0x2815f5(0x22f)]=_0x41f8c5[_0x2815f5(0x22f)];const _0x3d6a1d={'method':_0x308cab[_0x2815f5(0x1f5)],'headers':_0x308cab[_0x2815f5(0x2d7)](getAuthHeader,_0xf34342[_0x2815f5(0x355)][_0x2815f5(0x2fe)],_0xf34342[_0x2815f5(0x355)]['password']),'throwHttpErrors':![]},_0x425510={};_0x425510[_0x2815f5(0x22f)]=_0x392918;const _0x12d3a9=_0x425510;_0x1be896&&(_0x308cab['Jjeux'](_0x308cab[_0x2815f5(0x33b)],_0x308cab[_0x2815f5(0x33b)])?(_0x12d3a9['region']=_0x87f0fa,_0x12d3a9[_0x2815f5(0x2d6)]=_0x31c9f0,_0x12d3a9[_0x2815f5(0x30e)]=!![],_0x12d3a9[_0x2815f5(0x226)]=_0x41f8c5[_0x2815f5(0x1de)]):(_0x3c3469[_0x2815f5(0x1ec)]=_0x2379fe,_0x327d25[_0x2815f5(0x2d6)]=_0x2a5cb0,_0x19c2cc[_0x2815f5(0x30e)]=!![],_0x5e680c[_0x2815f5(0x226)]=_0x2ac9c9[_0x2815f5(0x1de)]));if(_0x41f8c5[_0x2815f5(0x1de)]){if(_0x308cab['yKFRJ'](_0x308cab[_0x2815f5(0x34b)],_0x308cab[_0x2815f5(0x2af)]))logger['info'](_0x308cab[_0x2815f5(0x206)]);else{const _0x1fc33e=_0x308cab['QnzTt'][_0x2815f5(0x34e)]('|');let _0xc9859a=0x0;while(!![]){switch(_0x1fc33e[_0xc9859a++]){case'0':_0xf9bace=_0x12598c[_0x2815f5(0x33c)];continue;case'1':_0x5f0c65=_0x2b4434[_0x2815f5(0x36c)];continue;case'2':_0x1e6b06=null;continue;case'3':_0xbe80b7=null;continue;case'4':_0x470643=_0x2a60c5['browserVersion'];continue;case'5':_0x92a49c=_0x51d5ab[_0x2815f5(0x1da)];continue;case'6':const _0x555621={};_0x555621[_0x2815f5(0x374)]=_0x348c55[_0x2815f5(0x1dc)],_0x555621[_0x2815f5(0x2cb)]=_0x489385,_0x5bd66c['sendEventToBackend'](_0xd33b46,_0x555621);continue;case'7':_0x297a57['info'](_0x4fc1c4);continue;case'8':_0x4753c5=_0x4ce2b0[_0x2815f5(0x26a)];continue;case'9':_0x5a5b3b[_0x2815f5(0x2da)]&&_0x308cab[_0x2815f5(0x20c)](_0x34bb2d,_0x5649c0[_0x2815f5(0x247)]);continue;case'10':_0x1fdc48=_0x147346[_0x2815f5(0x31b)];continue;case'11':_0x308cab[_0x2815f5(0x2c6)](_0x3c45d4,_0x58e4c7,_0x524da7,_0x5dc130,_0x1d52c6,_0x586504,_0x6e8b74,_0x4110f7,_0x1bc3b0,_0x477a44,_0xd58c87,_0x3f08c2,_0xedaf5b[_0x2815f5(0x1de)]);continue;case'12':_0x5ef5ee='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x1316e3;continue;case'13':_0x446ba1=_0xdabd4b[_0x2815f5(0x2ca)];continue;case'14':_0x308cab[_0x2815f5(0x275)](_0x16e277[_0x2815f5(0x1e4)],_0x5e9664)&&_0x5a2067[_0x2815f5(0x1e4)]&&(_0x6b85ca[_0x2815f5(0x356)]=!![]);continue;case'15':_0x192377=null;continue;}break;}}}const _0x5a37f6=_0x2815f5(0x30d)+AG_API_URL+'/packages/cli/create-grid-checks',_0x275e2e={'searchParams':_0x12d3a9,'throwHttpErrors':![],..._0x3d6a1d},_0x26f655=_0x275e2e,_0x4b76ba=await _0x308cab[_0x2815f5(0x2d7)](got,_0x5a37f6,_0x26f655);(_0x308cab[_0x2815f5(0x22d)](_0x4b76ba,null)||_0x308cab['OmkdZ'](_0x4b76ba,undefined))&&(_0x308cab[_0x2815f5(0x27a)](_0x308cab[_0x2815f5(0x33d)],_0x308cab[_0x2815f5(0x33d)])?(_0x45e4f5=_0x308cab[_0x2815f5(0x29e)],await _0x308cab['EpSbp'](reportToGalactusAndSendToEDS,_0x41f8c5,_0x389490,_0x45e4f5,messageTypes[_0x2815f5(0x347)],_0x308cab[_0x2815f5(0x22b)],_0x308cab[_0x2815f5(0x2b3)],_0x308cab[_0x2815f5(0x286)]),logger[_0x2815f5(0x326)](_0x45e4f5),process[_0x2815f5(0x2eb)](0x1)):_0x308cab[_0x2815f5(0x259)](_0x3415f2,_0x259926['uploaderVersion']));_0x308cab[_0x2815f5(0x2f0)](_0x4b76ba[_0x2815f5(0x33e)],0x191)&&(_0x308cab['kqiJf'](_0x308cab['ySgFx'],_0x308cab['ySgFx'])?_0x92e969=_0x3498e0[_0x5c93e1[_0x2815f5(0x372)]]:(_0x45e4f5=_0x308cab[_0x2815f5(0x32c)],await _0x308cab[_0x2815f5(0x1c4)](reportToGalactusAndSendToEDS,_0x41f8c5,_0x389490,_0x45e4f5,messageTypes[_0x2815f5(0x347)],_0x308cab[_0x2815f5(0x22b)],_0x308cab['NaQSt'],_0x308cab['bURhI']),logger[_0x2815f5(0x326)](_0x45e4f5),process[_0x2815f5(0x2eb)](0x1)));_0x308cab[_0x2815f5(0x349)](_0x4b76ba[_0x2815f5(0x33e)],0xc8)&&(_0x308cab['kqiJf'](_0x308cab[_0x2815f5(0x373)],_0x308cab['cHbxp'])?(_0x45e4f5='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x2815f5(0x276)](_0x4b76ba[_0x2815f5(0x272)]),await _0x308cab[_0x2815f5(0x1e5)](reportToGalactusAndSendToEDS,_0x41f8c5,_0x389490,_0x45e4f5,messageTypes[_0x2815f5(0x347)],_0x308cab[_0x2815f5(0x22b)],_0x308cab['wrRAN'],_0x308cab[_0x2815f5(0x286)]),logger['error'](_0x45e4f5),process['exit'](0x1)):(_0x3047ca=_0x193c71[_0x2815f5(0x212)],_0x306acf=_0x308cab['ygUXd']));const _0x284e96=JSON[_0x2815f5(0x1e7)](_0x4b76ba[_0x2815f5(0x272)]),_0x5e1fc1={};_0x5e1fc1[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x1ce)],_0x5e1fc1['message']=_0x308cab[_0x2815f5(0x22c)],webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x5e1fc1);const _0x30edfa={};_0x30edfa[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x1dc)],_0x30edfa[_0x2815f5(0x2cb)]=_0x308cab[_0x2815f5(0x358)],webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x30edfa);_0x284e96[_0x2815f5(0x317)]&&(_0x308cab[_0x2815f5(0x36f)](_0x308cab[_0x2815f5(0x234)],_0x308cab[_0x2815f5(0x292)])?_0x4dcbb4[_0x2815f5(0x35f)](_0x308cab[_0x2815f5(0x206)]):(_0x45e4f5=_0x2815f5(0x2b1)+_0x392918+_0x2815f5(0x239),await _0x308cab['tOhEZ'](reportToGalactusAndSendToEDS,_0x41f8c5,_0x389490,_0x45e4f5,messageTypes[_0x2815f5(0x347)],_0x308cab[_0x2815f5(0x22b)],_0x308cab[_0x2815f5(0x30a)],_0x308cab[_0x2815f5(0x286)]),logger[_0x2815f5(0x326)](_0x45e4f5),process[_0x2815f5(0x2eb)](0x1)));const _0x49728a=_0x284e96[_0x2815f5(0x323)];let _0x2887ad=_0x49728a[_0x284e96[_0x2815f5(0x1bf)]];_0x41f8c5[_0x2815f5(0x372)]&&(_0x308cab[_0x2815f5(0x22e)](_0x308cab['nqBSI'],_0x308cab[_0x2815f5(0x1f2)])?_0x2887ad=_0x49728a[_0x41f8c5[_0x2815f5(0x372)]]:_0x308cab[_0x2815f5(0x259)](_0xf73c28,_0x656270[_0x2815f5(0x247)]));global_registry['enableHubHa']=![];if(_0x41f8c5[_0x2815f5(0x31d)]){if(_0x308cab[_0x2815f5(0x21c)](_0x308cab[_0x2815f5(0x205)],_0x308cab[_0x2815f5(0x1d8)])){const _0x4e0ce0=_0x308cab[_0x2815f5(0x20d)][_0x2815f5(0x34e)]('|');let _0xf06dc2=0x0;while(!![]){switch(_0x4e0ce0[_0xf06dc2++]){case'0':global_registry['redisPassword']=_0x308cab['yvBQI'];continue;case'1':logger[_0x2815f5(0x35f)](_0x308cab[_0x2815f5(0x1d6)]);continue;case'2':global_registry[_0x2815f5(0x2da)]=!![];continue;case'3':global_registry[_0x2815f5(0x1d0)]=_0x308cab[_0x2815f5(0x2ad)];continue;case'4':global_registry[_0x2815f5(0x267)]=_0x308cab[_0x2815f5(0x223)];continue;}break;}}else _0x232233[_0x2815f5(0x356)]=!![];}if(_0x308cab[_0x2815f5(0x2a3)](_0xbb82e0,![])&&_0x308cab[_0x2815f5(0x2a3)](_0x1be896,![])){if(_0x308cab['JnUOG'](_0x308cab['CIaqb'],_0x308cab[_0x2815f5(0x2e7)])){const _0x3374d6={};_0x3374d6[_0x2815f5(0x374)]=_0x5632eb[_0x2815f5(0x1dc)],_0x3374d6[_0x2815f5(0x2cb)]=_0x47c8d1,_0x560029[_0x2815f5(0x35d)](_0x5df69a,_0x3374d6,_0x308cab[_0x2815f5(0x286)],!![]);}else{_0x308cab[_0x2815f5(0x32b)](_0x2887ad,undefined)&&(_0x308cab[_0x2815f5(0x1f3)](_0x308cab[_0x2815f5(0x341)],_0x308cab[_0x2815f5(0x341)])?_0x4d7672=_0x308cab[_0x2815f5(0x344)]:(_0x45e4f5=_0x308cab[_0x2815f5(0x227)],await _0x308cab[_0x2815f5(0x1c4)](reportToGalactusAndSendToEDS,_0x41f8c5,_0x389490,_0x45e4f5,messageTypes[_0x2815f5(0x347)],_0x308cab[_0x2815f5(0x22b)],_0x308cab[_0x2815f5(0x35b)],_0x308cab[_0x2815f5(0x286)]),logger['error'](_0x45e4f5),process['exit'](0x1)));global_registry[_0x2815f5(0x1fc)]=_0x2887ad['id'],_0x45e4f5='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x392918+_0x2815f5(0x268)+_0x2887ad['name']+'\x27\x20grid\x20profile',logger[_0x2815f5(0x35f)](_0x45e4f5);const _0x21eeb6={};_0x21eeb6[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x1dc)],_0x21eeb6[_0x2815f5(0x2cb)]=_0x45e4f5,webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x21eeb6),_0x31c9f0=_0x2887ad[_0x2815f5(0x2d6)],_0x1c93a3=_0x2887ad[_0x2815f5(0x1c2)],_0x87f0fa=_0x2887ad[_0x2815f5(0x1ec)],_0xae078e=_0x2887ad[_0x2815f5(0x31b)],_0x1db7a0=_0x2887ad['instanceType'],_0x13c9a1=_0x2887ad[_0x2815f5(0x32e)],_0x27e2c9=_0x2887ad[_0x2815f5(0x2dd)],_0x153755=_0x2887ad[_0x2815f5(0x25c)],_0x5e2173=_0x2887ad['s3bucket'],_0x10a02d=_0x2887ad[_0x2815f5(0x2ca)],_0x46e05=_0x2887ad[_0x2815f5(0x26a)],_0x3055d5=_0x284e96[_0x2815f5(0x33c)],_0x45131c=_0x284e96['browserVersion'],_0x13c9a1&&_0x308cab[_0x2815f5(0x2a3)](_0x13c9a1[_0x2815f5(0x1f8)],0x0)&&(_0x308cab['GTSXb'](_0x308cab[_0x2815f5(0x291)],_0x308cab['FAaIg'])?_0x13c9a1=null:_0x5357fb[_0x2815f5(0x29f)]()),_0x153755&&_0x308cab[_0x2815f5(0x324)](_0x153755[_0x2815f5(0x1f8)],0x0)&&(_0x308cab[_0x2815f5(0x324)](_0x308cab[_0x2815f5(0x1f4)],_0x308cab[_0x2815f5(0x1f4)])?_0x153755=null:_0x2eb857=null),_0x308cab[_0x2815f5(0x22e)](_0x2887ad[_0x2815f5(0x1e4)],undefined)&&_0x2887ad[_0x2815f5(0x1e4)]&&(_0x308cab[_0x2815f5(0x27a)](_0x308cab[_0x2815f5(0x2d2)],_0x308cab[_0x2815f5(0x2e1)])?_0x30fb4d[_0x2815f5(0x35f)](_0x2815f5(0x2df)+_0x16d980[_0x2815f5(0x276)](_0x396ddc)+'\x20'):global_registry['isPrivateGrid']=!![]),_0x308cab[_0x2815f5(0x1cc)](updateGlobalRegistryWithConfig,_0x31c9f0,_0x1c93a3,_0x87f0fa,_0xae078e,_0x1db7a0,_0x5e2173,_0x2887ad,_0x3055d5,_0x45131c,_0x10a02d,_0x46e05,_0x41f8c5[_0x2815f5(0x1de)]),global_registry[_0x2815f5(0x2da)]&&(_0x308cab[_0x2815f5(0x22e)](_0x308cab[_0x2815f5(0x1d9)],_0x308cab[_0x2815f5(0x217)])?_0x308cab[_0x2815f5(0x216)](updateGlobalRegistryForHubHa,_0x284e96[_0x2815f5(0x318)]):_0x288a49=null);}}else{if(_0x308cab['YRRlf'](_0x1be896,!![])){if(_0x308cab[_0x2815f5(0x251)](_0x308cab[_0x2815f5(0x24f)],_0x308cab['ZQADz']))throw new _0x2b700d('Cluster\x20'+_0x5a4466+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else{_0x45e4f5=_0x2815f5(0x359)+_0x392918,logger[_0x2815f5(0x35f)](_0x45e4f5);const _0x2c97b5={};_0x2c97b5[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x1dc)],_0x2c97b5[_0x2815f5(0x2cb)]=_0x45e4f5,webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x2c97b5),_0xae078e=_0x2887ad[_0x2815f5(0x31b)],_0x1db7a0=_0x2887ad[_0x2815f5(0x36c)],_0x13c9a1=null,_0x27e2c9=null,_0x153755=null,_0x5e2173=_0x2887ad[_0x2815f5(0x1da)],_0x10a02d=_0x2887ad[_0x2815f5(0x2ca)],_0x46e05=_0x2887ad[_0x2815f5(0x26a)],_0x3055d5=_0x284e96['hubVersion'],_0x45131c=_0x284e96[_0x2815f5(0x21b)],_0x308cab[_0x2815f5(0x1f3)](_0x2887ad[_0x2815f5(0x1e4)],undefined)&&_0x2887ad[_0x2815f5(0x1e4)]&&(_0x308cab['WcTjJ'](_0x308cab[_0x2815f5(0x28f)],_0x308cab[_0x2815f5(0x28f)])?_0x3f9711[_0x2815f5(0x35f)](_0x2815f5(0x2ab)+_0x1e6848+'\x20'):global_registry[_0x2815f5(0x356)]=!![]),_0x308cab['dfyHZ'](updateGlobalRegistryWithConfig,_0x31c9f0,_0x1c93a3,_0x87f0fa,_0xae078e,_0x1db7a0,_0x5e2173,_0x2887ad,_0x3055d5,_0x45131c,_0x10a02d,_0x46e05,_0x41f8c5[_0x2815f5(0x1de)]),global_registry[_0x2815f5(0x2da)]&&(_0x308cab['LjtPr'](_0x308cab[_0x2815f5(0x1cb)],_0x308cab[_0x2815f5(0x1cb)])?_0x3b950b=_0x308cab[_0x2815f5(0x2a7)]:_0x308cab[_0x2815f5(0x216)](updateGlobalRegistryForHubHa,_0x284e96[_0x2815f5(0x247)]));}}else{if(_0x308cab[_0x2815f5(0x240)](_0x308cab[_0x2815f5(0x351)],_0x308cab[_0x2815f5(0x351)])){const _0x113c44={};_0x113c44[_0x2815f5(0x2f3)]=_0x308cab['DbHhH'],_0x113c44[_0x2815f5(0x374)]=_0x308cab[_0x2815f5(0x1ca)];const _0x19c5da={};_0x19c5da[_0x2815f5(0x2f3)]=_0x308cab[_0x2815f5(0x2bf)],_0x19c5da[_0x2815f5(0x374)]=_0x308cab[_0x2815f5(0x1ca)];const _0x25315b={};_0x25315b['description']=_0x308cab[_0x2815f5(0x24c)],_0x25315b[_0x2815f5(0x374)]=_0x308cab['DieSF'];const _0x305cbf={};_0x305cbf[_0x2815f5(0x2f3)]=_0x308cab[_0x2815f5(0x29b)],_0x305cbf[_0x2815f5(0x374)]=_0x308cab['DieSF'];const _0x42fa86={};_0x42fa86['description']=_0x308cab[_0x2815f5(0x1cd)],_0x42fa86[_0x2815f5(0x374)]=_0x308cab[_0x2815f5(0x1ca)];const _0x1cba4a={};_0x1cba4a['description']=_0x308cab[_0x2815f5(0x200)],_0x1cba4a[_0x2815f5(0x374)]=_0x308cab[_0x2815f5(0x1ca)];const _0x369d48={};_0x369d48[_0x2815f5(0x2f3)]=_0x308cab[_0x2815f5(0x1cf)],_0x369d48[_0x2815f5(0x374)]=_0x308cab['IPchA'],_0x369d48[_0x2815f5(0x2fc)]=![];const _0x1e4cf8={};_0x1e4cf8[_0x2815f5(0x2f3)]=_0x308cab[_0x2815f5(0x264)],_0x1e4cf8[_0x2815f5(0x374)]=_0x308cab[_0x2815f5(0x2bc)],_0x1e4cf8['default']=![];const _0x5adbad={};_0x5adbad['description']=_0x308cab['ubPlv'],_0x5adbad[_0x2815f5(0x374)]=_0x308cab['IPchA'],_0x5adbad[_0x2815f5(0x2fc)]=![];const _0x5c6aa8={};return _0x5c6aa8['grid-name']=_0x113c44,_0x5c6aa8[_0x2815f5(0x1eb)]=_0x19c5da,_0x5c6aa8[_0x2815f5(0x209)]=_0x25315b,_0x5c6aa8[_0x2815f5(0x2e6)]=_0x305cbf,_0x5c6aa8['region']=_0x42fa86,_0x5c6aa8[_0x2815f5(0x2d5)]=_0x1cba4a,_0x5c6aa8[_0x2815f5(0x215)]=_0x369d48,_0x5c6aa8[_0x2815f5(0x1c3)]=_0x1e4cf8,_0x5c6aa8[_0x2815f5(0x203)]=_0x5adbad,_0x38fb4b[_0x2815f5(0x345)](_0x3c9426['create'])['epilogue'](_0x2dc2b8)[_0x2815f5(0x20a)](_0x5c6aa8)[_0x2815f5(0x353)](_0x308cab['hRJrV'])[_0x2815f5(0x29c)];}else{const _0x523a2c=_0x308cab[_0x2815f5(0x2db)]['split']('|');let _0x30f5e0=0x0;while(!![]){switch(_0x523a2c[_0x30f5e0++]){case'0':global_registry[_0x2815f5(0x1c2)]=_0x1c93a3;continue;case'1':logger[_0x2815f5(0x35f)](_0x45e4f5);continue;case'2':global_registry[_0x2815f5(0x33c)]=_0x284e96[_0x2815f5(0x33c)];continue;case'3':global_registry[_0x2815f5(0x21b)]=_0x284e96[_0x2815f5(0x21b)];continue;case'4':global_registry['clusterRegion']=_0x87f0fa;continue;case'5':global_registry[_0x2815f5(0x2d6)]=_0x31c9f0;continue;case'6':const _0x39180f={};_0x39180f[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x1dc)],_0x39180f[_0x2815f5(0x2cb)]=_0x45e4f5,webSocketUtils['sendEventToBackend'](_0x389490,_0x39180f);continue;case'7':const _0x5cb3fd={};_0x5cb3fd[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x1ce)],_0x5cb3fd[_0x2815f5(0x2cb)]=_0x308cab[_0x2815f5(0x22c)],webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x5cb3fd);continue;case'8':_0x45e4f5=_0x2815f5(0x36e)+_0x392918+_0x2815f5(0x2a0)+_0x1c93a3+'\x27';continue;}break;}}}}const _0x5600df=await _0x308cab[_0x2815f5(0x302)](getCloudProviderObject,_0x31c9f0,_0x1c93a3,_0x392918,_0x389490,webSocketUtils,_0x41f8c5);if(_0x308cab[_0x2815f5(0x303)](_0x31c9f0,AZURE)){if(_0x308cab['EiTcf'](_0x308cab[_0x2815f5(0x346)],_0x308cab[_0x2815f5(0x25d)])){const _0x17fd8f={};_0x17fd8f[_0x2815f5(0x374)]=_0x415179[_0x2815f5(0x1dc)],_0x17fd8f[_0x2815f5(0x2cb)]=_0x2815f5(0x2a4)+_0x1f436b+_0x2815f5(0x235),_0x4b2310[_0x2815f5(0x35d)](_0x3fb1bb,_0x17fd8f,_0x308cab[_0x2815f5(0x211)]),_0x3b832d[_0x2815f5(0x35f)](_0x2815f5(0x2a4)+_0x2c70a6+_0x2815f5(0x235)),_0x8fb053=!![];if(_0x308cab[_0x2815f5(0x25f)](_0x3bff69,!![]))throw new _0x222901(_0x2815f5(0x2a4)+_0x52a12d+_0x2815f5(0x27f));}else _0x5600df[_0x2815f5(0x29f)]();}let _0x11dc28;if(_0x308cab[_0x2815f5(0x367)](_0xbb82e0,![])){_0x45e4f5=_0x2815f5(0x23d)+_0x87f0fa+').';const _0x39024b={};_0x39024b[_0x2815f5(0x374)]=WS_EVENTS['LOG'],_0x39024b[_0x2815f5(0x2cb)]=_0x45e4f5,webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x39024b),logger['info'](_0x45e4f5);const _0x1d9ab8=await _0x5600df['isClusterPresent']();if(_0x1d9ab8){if(_0x308cab[_0x2815f5(0x25f)](_0x308cab[_0x2815f5(0x260)],_0x308cab[_0x2815f5(0x260)])){const _0x4f37ee={};_0x4f37ee['type']=WS_EVENTS[_0x2815f5(0x1dc)],_0x4f37ee[_0x2815f5(0x2cb)]='Cluster\x20'+_0x1c93a3+_0x2815f5(0x235),webSocketUtils['sendEventToBackend'](_0x389490,_0x4f37ee,_0x308cab[_0x2815f5(0x211)]),logger[_0x2815f5(0x35f)](_0x2815f5(0x2a4)+_0x1c93a3+_0x2815f5(0x235)),_0xbb82e0=!![];if(_0x308cab['pIcDm'](_0x1be896,!![])){if(_0x308cab[_0x2815f5(0x309)](_0x308cab['lMvVr'],_0x308cab['LlCfZ']))_0x14ef65[_0x2815f5(0x356)]=!![];else throw new Error(_0x2815f5(0x2a4)+_0x1c93a3+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}else _0x5c6402[_0x2815f5(0x356)]=!![];}else{const _0x2230e5={};_0x2230e5['type']=WS_EVENTS[_0x2815f5(0x1dc)],_0x2230e5[_0x2815f5(0x2cb)]=_0x308cab[_0x2815f5(0x2e5)],webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x2230e5),logger['info'](_0x308cab[_0x2815f5(0x2e5)]);const _0x541fea=_0x308cab[_0x2815f5(0x31e)](_0x13c9a1,null)&&_0x308cab[_0x2815f5(0x303)](_0x13c9a1,undefined),_0x2038db=_0x308cab[_0x2815f5(0x31e)](_0x153755,null)&&_0x308cab[_0x2815f5(0x303)](_0x153755,undefined)&&_0x308cab[_0x2815f5(0x263)](_0x153755[_0x2815f5(0x1f8)],0x0);if(_0x541fea){_0x308cab[_0x2815f5(0x2ea)](_0x2038db,![])&&(_0x45e4f5=_0x308cab[_0x2815f5(0x298)],await _0x308cab[_0x2815f5(0x2e0)](reportToGalactusAndSendToEDS,_0x41f8c5,_0x389490,_0x45e4f5,messageTypes[_0x2815f5(0x347)],_0x308cab[_0x2815f5(0x22b)],_0x308cab[_0x2815f5(0x343)],_0x308cab[_0x2815f5(0x286)]),logger[_0x2815f5(0x326)](_0x45e4f5),process[_0x2815f5(0x2eb)](0x1));const _0x4cae46=await _0x5600df[_0x2815f5(0x2cd)](_0x13c9a1);_0x308cab[_0x2815f5(0x27a)](_0x4cae46,![])?(_0x45e4f5=_0x308cab[_0x2815f5(0x22a)],await _0x308cab[_0x2815f5(0x256)](reportToGalactusAndSendToEDS,_0x41f8c5,_0x389490,_0x45e4f5,messageTypes['ERROR'],_0x308cab['eFgEH'],_0x308cab[_0x2815f5(0x1d2)],_0x308cab['bURhI']),logger[_0x2815f5(0x326)](_0x45e4f5),process[_0x2815f5(0x2eb)](0x1)):logger[_0x2815f5(0x35f)](_0x2815f5(0x2ab)+_0x13c9a1+'\x20');const _0x2ca1ed=await _0x5600df[_0x2815f5(0x1c1)](_0x153755,_0x13c9a1);_0x308cab[_0x2815f5(0x324)](_0x2ca1ed[0x0],![])?(_0x45e4f5='Subnets:\x20'+JSON[_0x2815f5(0x276)](_0x2ca1ed[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x13c9a1+_0x2815f5(0x229),await _0x308cab[_0x2815f5(0x1c8)](reportToGalactusAndSendToEDS,_0x41f8c5,_0x389490,_0x45e4f5,messageTypes['ERROR'],_0x308cab[_0x2815f5(0x22b)],_0x308cab[_0x2815f5(0x257)],_0x308cab['bURhI']),logger[_0x2815f5(0x326)](_0x45e4f5),process[_0x2815f5(0x2eb)](0x1)):logger[_0x2815f5(0x35f)](_0x2815f5(0x2df)+JSON[_0x2815f5(0x276)](_0x153755)+'\x20'),[_0x13c9a1,_0x153755]=await _0x5600df['setupNewCluster'](_0x13c9a1,_0x153755);}else{const _0x50fd47=_0x308cab[_0x2815f5(0x35e)][_0x2815f5(0x34e)]('|');let _0x32590d=0x0;while(!![]){switch(_0x50fd47[_0x32590d++]){case'0':logger[_0x2815f5(0x35f)](_0x308cab[_0x2815f5(0x376)]);continue;case'1':logger[_0x2815f5(0x35f)](_0x308cab[_0x2815f5(0x253)]);continue;case'2':[_0x13c9a1,_0x153755]=await _0x5600df[_0x2815f5(0x208)](_0x13c9a1,_0x153755);continue;case'3':const _0x2e8364={};_0x2e8364[_0x2815f5(0x374)]=WS_EVENTS['LOG'],_0x2e8364['message']=_0x308cab[_0x2815f5(0x253)],webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x2e8364);continue;case'4':const _0x23d7e8={};_0x23d7e8[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x1dc)],_0x23d7e8[_0x2815f5(0x2cb)]=_0x308cab[_0x2815f5(0x376)],webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x23d7e8);continue;}break;}}}}_0xbb82e0&&_0x308cab[_0x2815f5(0x36d)](_0x31c9f0,AZURE)&&(await _0x5600df[_0x2815f5(0x34c)](),await _0x5600df[_0x2815f5(0x319)]());const [_0x261072,_0x5a8e04,_0x4a00cf,_0x3040fb,_0x336e39,_0x4bf66c,_0x32df0a]=await _0x308cab[_0x2815f5(0x2f8)](createK8sClient,_0x5600df,_0x41f8c5['skipTlsCertVerify']);_0x308cab[_0x2815f5(0x23f)](_0xbb82e0,![])&&_0x308cab[_0x2815f5(0x22d)](_0x31c9f0,AWS)&&(global_registry[_0x2815f5(0x296)]=!![],_0x11dc28=await _0x5600df[_0x2815f5(0x28a)](_0x261072,_0x41f8c5));if(_0x308cab['wLEpC'](_0xbb82e0,![])&&global_registry[_0x2815f5(0x2da)])try{await _0x5600df[_0x2815f5(0x31c)](_0x4bf66c,_0x32df0a,_0x41f8c5,_0x13c9a1,_0x153755);const _0x2def31={};_0x2def31[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x1dc)],_0x2def31[_0x2815f5(0x2cb)]=_0x308cab[_0x2815f5(0x2ee)],webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x2def31);!await _0x308cab[_0x2815f5(0x271)](namespaceExists,_0x261072,global_registry['hubHaNameSpace'])&&await _0x308cab[_0x2815f5(0x2d7)](createNamespace,_0x261072,global_registry[_0x2815f5(0x1d0)]);logger['info'](_0x308cab[_0x2815f5(0x2dc)]);let _0x442bb6=await fs[_0x2815f5(0x28b)](path[_0x2815f5(0x2fd)](__dirname,_0x308cab[_0x2815f5(0x310)],_0x308cab['rVJoG'],_0x308cab[_0x2815f5(0x300)],_0x308cab[_0x2815f5(0x293)]),_0x308cab[_0x2815f5(0x246)]);_0x442bb6=_0x442bb6[_0x2815f5(0x34f)](/<RedisClientPassword>/g,_0x308cab['gPIVq'](encodeBase64,global_registry[_0x2815f5(0x2d9)])),_0x442bb6=_0x442bb6[_0x2815f5(0x34f)](/<KafkaClientPassword>/g,_0x308cab[_0x2815f5(0x1e1)](encodeBase64,global_registry[_0x2815f5(0x267)])),_0x442bb6=_0x442bb6['replace'](/<BstackUsername>/g,_0x308cab[_0x2815f5(0x216)](encodeBase64,global_registry['bstackUsername'])),_0x442bb6=_0x442bb6['replace'](/<BstackAccessKey>/g,_0x308cab['HHXod'](encodeBase64,global_registry['bstackAccesskey']));const _0x3b9bd3=yaml['loadAll'](_0x442bb6);await _0x308cab[_0x2815f5(0x28d)](kubeApply,_0x3b9bd3,_0x32df0a),logger[_0x2815f5(0x35f)](_0x308cab[_0x2815f5(0x313)]);let _0x191eab=_0x308cab[_0x2815f5(0x329)];if(_0x308cab[_0x2815f5(0x32b)](_0x31c9f0,AZURE))_0x191eab=_0x308cab[_0x2815f5(0x2a7)];else _0x308cab[_0x2815f5(0x2a3)](_0x31c9f0,GCP)&&(_0x191eab=_0x308cab['sbTnw']);logger[_0x2815f5(0x35f)](_0x308cab[_0x2815f5(0x25a)]);let _0x33288e=await fs['readFileAsync'](path[_0x2815f5(0x2fd)](__dirname,_0x308cab[_0x2815f5(0x310)],_0x308cab['rVJoG'],_0x308cab[_0x2815f5(0x300)],_0x308cab[_0x2815f5(0x2fb)]),_0x308cab[_0x2815f5(0x246)]);_0x33288e=_0x33288e[_0x2815f5(0x34f)](/<HubHaNameSpace>/g,global_registry[_0x2815f5(0x1d0)]),_0x33288e=_0x33288e[_0x2815f5(0x34f)](/<StorageClassName>/g,_0x191eab);const _0x5a673f=yaml[_0x2815f5(0x236)](_0x33288e);await _0x308cab[_0x2815f5(0x28d)](kubeApply,_0x5a673f,_0x32df0a),logger['info'](_0x308cab[_0x2815f5(0x307)]),logger['info'](_0x308cab[_0x2815f5(0x27b)]);let _0x920fe=await fs[_0x2815f5(0x28b)](path[_0x2815f5(0x2fd)](__dirname,_0x308cab[_0x2815f5(0x310)],_0x308cab[_0x2815f5(0x1d4)],_0x308cab['bhWuE'],_0x308cab[_0x2815f5(0x266)]),_0x308cab[_0x2815f5(0x246)]);_0x920fe=_0x920fe[_0x2815f5(0x34f)](/<HubHaNameSpace>/g,global_registry[_0x2815f5(0x1d0)]),_0x920fe=_0x920fe['replace'](/<StorageClassName>/g,_0x191eab);const _0x2f69bf=yaml[_0x2815f5(0x236)](_0x920fe);await _0x308cab[_0x2815f5(0x2d7)](kubeApply,_0x2f69bf,_0x32df0a),logger[_0x2815f5(0x35f)](_0x308cab['ePeSv']),logger[_0x2815f5(0x35f)](_0x308cab[_0x2815f5(0x363)]);let _0x4657f2=await fs[_0x2815f5(0x28b)](path['join'](__dirname,_0x308cab['QNzon'],_0x308cab[_0x2815f5(0x1d4)],_0x308cab['bhWuE'],_0x308cab['UaLuM']),_0x308cab['XQZXe']);_0x4657f2=_0x4657f2['replace'](/<UploaderImageVersion>/g,global_registry[_0x2815f5(0x1db)]),_0x4657f2=_0x4657f2[_0x2815f5(0x34f)](/<HubHaNameSpace>/g,global_registry[_0x2815f5(0x1d0)]);const _0x799fcd=yaml[_0x2815f5(0x236)](_0x4657f2);_0x308cab[_0x2815f5(0x245)](global_registry['cloudProvider'],AZURE)&&(_0x799fcd[0x0]['spec'][_0x2815f5(0x2c4)][_0x2815f5(0x26f)]['labels']={'azure.workload.identity/use':_0x308cab['xiptv'],..._0x799fcd[0x0][_0x2815f5(0x2ef)]['template'][_0x2815f5(0x26f)][_0x2815f5(0x36a)]},_0x799fcd[0x0][_0x2815f5(0x2ef)][_0x2815f5(0x2c4)][_0x2815f5(0x2ef)][_0x2815f5(0x2f6)]=_0x308cab[_0x2815f5(0x24e)]);await _0x308cab['xuiwc'](kubeApply,_0x799fcd,_0x32df0a),logger[_0x2815f5(0x35f)](_0x308cab['akcXb']);const _0x580d75={};_0x580d75[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x1dc)],_0x580d75[_0x2815f5(0x2cb)]=_0x308cab[_0x2815f5(0x220)],webSocketUtils['sendEventToBackend'](_0x389490,_0x580d75),logger[_0x2815f5(0x35f)](_0x308cab[_0x2815f5(0x284)]);}catch(_0x230a3d){const _0x3f5dc1=_0x308cab[_0x2815f5(0x325)][_0x2815f5(0x34e)]('|');let _0x33df5c=0x0;while(!![]){switch(_0x3f5dc1[_0x33df5c++]){case'0':process[_0x2815f5(0x2eb)](0x1);continue;case'1':await _0x5600df[_0x2815f5(0x1ed)](_0x261072,global_registry[_0x2815f5(0x328)]);continue;case'2':_0x45e4f5='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x230a3d['message'];continue;case'3':logger[_0x2815f5(0x326)](_0x45e4f5);continue;case'4':await _0x308cab['WxFBJ'](reportToGalactusAndSendToEDS,_0x41f8c5,_0x389490,_0x45e4f5,messageTypes[_0x2815f5(0x347)],_0x308cab[_0x2815f5(0x22b)],_0x308cab['hajYW'],_0x308cab['bURhI']);continue;}break;}}try{_0x1ea1e1=_0x308cab[_0x2815f5(0x261)](kebabCase,_0x392918),logger[_0x2815f5(0x35f)](_0x308cab[_0x2815f5(0x297)]);const _0x5ee56d={};_0x5ee56d['type']=WS_EVENTS[_0x2815f5(0x1dc)],_0x5ee56d[_0x2815f5(0x2cb)]=_0x308cab[_0x2815f5(0x297)],webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x5ee56d);if(_0x308cab[_0x2815f5(0x303)](_0x1ea1e1,_0x308cab['zDaZJ'])){const _0x52e26f={};_0x52e26f[_0x2815f5(0x1d7)]=_0x308cab['LtQjG'],_0x52e26f[_0x2815f5(0x1f7)]=_0x308cab[_0x2815f5(0x24d)];const _0x262f4c={};_0x262f4c[_0x2815f5(0x282)]=_0x1ea1e1,_0x262f4c[_0x2815f5(0x315)]=_0x52e26f;const _0x3ba259={};_0x3ba259[_0x2815f5(0x26f)]=_0x262f4c;const _0x236845=_0x3ba259,_0x41fa22={};_0x41fa22[_0x2815f5(0x272)]=_0x236845,await _0x261072[_0x2815f5(0x2e8)](_0x41fa22),logger['info'](_0x308cab[_0x2815f5(0x34d)]);}const _0x37e8de={};_0x37e8de['type']=WS_EVENTS[_0x2815f5(0x1dc)],_0x37e8de[_0x2815f5(0x2cb)]=_0x308cab[_0x2815f5(0x1fe)],webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x37e8de);const _0x267e4e={};_0x267e4e[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x1dc)],_0x267e4e[_0x2815f5(0x2cb)]=_0x308cab[_0x2815f5(0x32d)],webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x267e4e),logger['info'](_0x308cab[_0x2815f5(0x301)]);let _0x15729c={};_0x308cab[_0x2815f5(0x294)](_0x31c9f0,AZURE)&&(_0x15729c={'clientId':await _0x5600df[_0x2815f5(0x289)]('turboscale-managed-identity-'+_0x1c93a3)});await _0x308cab[_0x2815f5(0x241)](addGridComponents,_0x261072,_0x5a8e04,_0x4a00cf,_0x3040fb,_0x1ea1e1,_0x1c93a3,_0x11dc28,_0x336e39,_0x32df0a,_0x15729c),_0x45e4f5=_0x308cab[_0x2815f5(0x23e)],logger[_0x2815f5(0x35f)](_0x45e4f5);const _0x3b50e2={};_0x3b50e2[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x1dc)],_0x3b50e2[_0x2815f5(0x2cb)]=_0x45e4f5,webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x3b50e2),_0x45e4f5=_0x308cab['EryPI'],logger['info'](_0x45e4f5);const _0x2f2d24={};_0x2f2d24[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x1dc)],_0x2f2d24[_0x2815f5(0x2cb)]=_0x45e4f5,webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x2f2d24),await _0x308cab[_0x2815f5(0x305)](waitForDeployment,_0x5a8e04,_0x1ea1e1,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x19cdf8=await _0x308cab[_0x2815f5(0x288)](getNamespaceUID,_0x261072,_0x1ea1e1),_0x407a90=global_registry[_0x2815f5(0x356)]?_0x308cab[_0x2815f5(0x1dd)]:_0x308cab['cJjGv'],_0x3e620b={};_0x3e620b[_0x2815f5(0x282)]=_0x407a90,_0x3e620b['namespace']=_0x308cab['jRDeG'];const _0x4daa3a=await _0x261072[_0x2815f5(0x369)](_0x3e620b);let _0x2df273=_0x5600df[_0x2815f5(0x332)](_0x4daa3a)+'/'+_0x1ea1e1,_0x29c838=_0x308cab[_0x2815f5(0x344)];try{const _0x437a1d='https://'+AG_API_URL+_0x2815f5(0x2e2)+_0x19cdf8,_0x372fdc=await _0x308cab['DKuZu'](got,_0x437a1d,_0x3d6a1d);(_0x308cab[_0x2815f5(0x299)](_0x372fdc,null)||_0x308cab[_0x2815f5(0x26e)](_0x372fdc,undefined))&&(_0x45e4f5=_0x308cab[_0x2815f5(0x365)],await _0x308cab[_0x2815f5(0x1d3)](reportToGalactusAndSendToEDS,_0x41f8c5,_0x389490,_0x45e4f5,messageTypes['ERROR'],_0x308cab[_0x2815f5(0x22b)],_0x308cab['bfqMl'],_0x308cab[_0x2815f5(0x286)]),logger[_0x2815f5(0x326)](_0x45e4f5),process[_0x2815f5(0x2eb)](0x1));_0x308cab[_0x2815f5(0x1d1)](_0x372fdc[_0x2815f5(0x33e)],0x191)&&(_0x45e4f5=_0x308cab[_0x2815f5(0x2c9)],await _0x308cab[_0x2815f5(0x230)](reportToGalactusAndSendToEDS,_0x41f8c5,_0x389490,_0x45e4f5,messageTypes[_0x2815f5(0x347)],_0x308cab[_0x2815f5(0x22b)],_0x308cab[_0x2815f5(0x232)],_0x308cab[_0x2815f5(0x286)]),logger['error'](_0x45e4f5),process['exit'](0x1));_0x308cab[_0x2815f5(0x1f3)](_0x372fdc[_0x2815f5(0x33e)],0xc8)&&(_0x45e4f5=_0x2815f5(0x213)+JSON[_0x2815f5(0x276)](_0x372fdc),await _0x308cab[_0x2815f5(0x336)](reportToGalactusAndSendToEDS,_0x41f8c5,_0x389490,_0x45e4f5,messageTypes[_0x2815f5(0x347)],_0x308cab[_0x2815f5(0x22b)],_0x308cab[_0x2815f5(0x2f1)],_0x308cab[_0x2815f5(0x286)]),logger[_0x2815f5(0x326)](_0x45e4f5),process[_0x2815f5(0x2eb)](0x1));const _0x495d18=JSON[_0x2815f5(0x1e7)](_0x372fdc[_0x2815f5(0x272)]);_0x495d18['route53']&&(_0x2df273=_0x495d18[_0x2815f5(0x212)],_0x29c838=_0x308cab[_0x2815f5(0x281)]),global_registry[_0x2815f5(0x356)]&&(_0x29c838=_0x308cab['InwzF']);}catch(_0x1d5e86){}_0x45e4f5=_0x2815f5(0x218)+_0x2df273+'\x20',logger['info'](_0x45e4f5);const _0x4ac85c={};_0x4ac85c[_0x2815f5(0x374)]=WS_EVENTS['LOG'],_0x4ac85c[_0x2815f5(0x2cb)]=_0x45e4f5,webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x4ac85c),_0x45e4f5=_0x2815f5(0x254)+_0x29c838+_0x2815f5(0x32a)+_0x2df273+_0x2815f5(0x233),logger[_0x2815f5(0x35f)](_0x45e4f5);const _0x588419={};_0x588419[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x1dc)],_0x588419[_0x2815f5(0x2cb)]=_0x45e4f5,webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x588419);const _0x4ac504={};_0x4ac504[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x2e3)],_0x4ac504[_0x2815f5(0x2cb)]='CLI\x20run\x20finished:\x20'+_0x2df273,webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x4ac504),await webSocketUtils[_0x2815f5(0x1f6)](0x7d0);}catch(_0x3e8086){logger['error'](_0x2815f5(0x2a8)+_0x3e8086+'\x20\x0a'+JSON[_0x2815f5(0x276)](_0x3e8086[_0x2815f5(0x2ec)]));if(_0x308cab[_0x2815f5(0x2cc)](_0xbb82e0,![]))try{logger[_0x2815f5(0x35f)](_0x308cab['gZwAG']),await _0x308cab[_0x2815f5(0x248)](removeGridComponents,_0x261072,_0x5a8e04,_0x4a00cf,_0x3040fb,_0x1ea1e1),await _0x5600df[_0x2815f5(0x1ed)](_0x261072,global_registry[_0x2815f5(0x328)]);}catch(_0x4c82c2){logger['error']('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x4c82c2+'\x20\x0a'+JSON['stringify'](_0x4c82c2['stack']));}throw _0x3e8086;}}catch(_0x50ea68){const _0x1f8c28=_0x2815f5(0x337)+_0x50ea68+'\x20\x0a'+JSON[_0x2815f5(0x276)](_0x50ea68[_0x2815f5(0x2ec)]);if(_0x389490){const _0x5bc5db={};_0x5bc5db[_0x2815f5(0x374)]=WS_EVENTS[_0x2815f5(0x1dc)],_0x5bc5db[_0x2815f5(0x2cb)]=_0x1f8c28,webSocketUtils[_0x2815f5(0x35d)](_0x389490,_0x5bc5db,_0x308cab['bURhI'],!![]);}await webSocketUtils['delay'](0x7d0);const _0x5d41b1={};_0x5d41b1['error']=_0x1f8c28,await _0x308cab['QVbAr'](sendInstrumentationEvent,_0x41f8c5,_0x308cab[_0x2815f5(0x22b)],messageTypes[_0x2815f5(0x347)],_0x308cab[_0x2815f5(0x242)],_0x5d41b1,_0x41f8c5),logger['error'](_0x1f8c28);}process['exit'](0x0);};function a9_0x3730(){const _0x5a7fba=['requestId','FNtAR','4|0|2|3|1','TuwEO','RMovX','reconnecting-websocket','8891176OvWNFV','https://','newCluster','../../utils/instrumentationUtils','QNzon','JtFHV','Added\x20Kafka\x20deployment.','McHxw','Adding\x20Kafka\x20deployment...','annotations','utf-8','alreadyPresent','uploaderVersion','createOtherResources','connectionTimeout','concurrency','setupHubHa','hubHa','RjahN','xiptv','bstackUsername','rVOVe','LMZhY','gridProfiles','AYrHW','CbMns','error','uOWEy','clusterRegion','dRQWx','://','XzmzX','ZCyEa','QvETJ','vpc','gpNhP','xHFuw','pre-spawned-invalid-subnets','getGridHostname','yvBQI','nclgT','KXIOQ','WxFBJ','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','UPUMc','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','includes','ieQyA','hubVersion','nbkMb','statusCode','INFO','ANvyG','HCuEI','UpVkJ','ISEUt','InwzF','usage','zBpXO','ERROR','create','kqiJf','sbTnw','fidzr','updateClusterAlreadyPresent','MHpuv','split','replace','lKgWF','cCOeD','Amdhf','help','EshAd','Browserstack','isPrivateGrid','hubharesources','bEnDK','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','4130940pvHiha','mFNQX','hub-ha-deployments-failed','sendEventToBackend','sqgud','info','handler','7|8|1|6|5|4|0|2|3','Adding\x20Websocket\x20listeners','SgyLK','../../config/logger','ZEaEH','create-grid-checks-null-response','TAjEX','templates','readNamespacedService','labels','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','instanceType','pIcDm','Spawning\x20the\x20grid\x20','ucCbH','../../utils/createk8sClient','create-grid-checks-invalid-profile','gridProfile','PTcBB','type','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','hgOBq','turboscale-uploader.yaml','Cluster\x20created\x20successfully','defaultGridProfile','browserstack-secret.yaml','isSubnetsValid','clusterName','hub-ha','JCGbB','../../utils/utilityMethods','JeLkd','18wsCfaE','TAnaG','yvpLK','DieSF','vqgPf','dfyHZ','QUuRT','CLI_RUN_STARTED','HBrbp','hubHaNameSpace','HWvBU','YYIJa','GiEBY','rVJoG','Added\x20Redis\x20deployment.','ICTok','createdBy','SdLiE','TCqwL','s3bucket','uploaderImageVersion','LOG','jmAZO','clusterAutoupgrade','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','ltaFf','qUsQt','non-aws-azure-cluster','privateGrid','lrDAp','YfyTv','parse','Create\x20a\x20new\x20Automation\x20grid.','https','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','grid-profile','region','deleteCluster','NUFXN','PZvzt','VKQti','../../utils/gridComponents','VBkRs','SACcR','nrlgr','xRYQT','delay','managedBy','length','sVWGE','fzeZp','../../config/constants','gridProfileId','CLI\x20run\x20started','IfubF','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','JQnCd','prespawned-cluster-args-not-passed','Namespace\x20created','cluster-autoupgrade','private-ingress-nginx-controller','cfIQz','pRCmh','boolean','setupNewCluster','cluster-name','options','epilogue','uQRHB','aLUzV','WebSocket','GET','Create\x20a\x20private/public\x20grid.','RJtot','route53','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','http','skip-tls-cert-verify','gPIVq','sJmDR','Grid\x20can\x20be\x20accessed\x20at:\x20','5384972sfDSfz','eJSXz','browserVersion','LjtPr','1166052FeZvBo','SJFrI','<UsernamePlaceholder>','BHZVX','ZWVCZ','Added\x20Secret\x20Mapping','QdGrf','EmDqR','4391232oUiaOK','clusterAutoUpgrade','fPehN','ingress-nginx','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','AJPhL','eFgEH','ovvYC','Jjeux','EyGot','gridName','EpSbp','../../cloudproviders/utils','hMGkY','/wd/hub','gGIFU','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','loadAll','got','juScX','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','5DjrNsT','QDcCO','Skip\x20insecure\x20cert\x20verification.','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','GdCIn','dtWPU','uHDVW','NCdDh','oMjOF','AULZS','Grid\x20spawned\x20on\x20the\x20cluster','kBJYZ','XQZXe','kafkaUploader','fNsSA','vVIRg','create-grid-called','init-not-called','HciFH','LtQjG','zDaZJ','infkw','get-grid-url-null-response','YRRlf','pwDHR','afdrx','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','warn','TFjcb','wkYHJ','Grid\x20profile\x20fetched\x20from\x20backend','RvoBl','HXIGt','grid-name','subnets','vZeXz','Deleting\x20the\x20CloudFormation\x20Stacks','fKBnQ','Pniwi','WHLfN','ulxVa','wzJUj','Uvybj','Qvlnz','kKsYv','kafkaPassword','\x20using\x20\x27','efs-csi','maxNodes','susBn','Spawning\x20Grid\x20on\x20the\x20Cluster','uuid','OXCHh','metadata','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','YKbEN','body','toLowerCase','8860098rgXUlP','yKFRJ','stringify','command','premium-rwo','Adding\x20Turboscale\x20Uploader\x20deployment...','EaxHy','ZiBdW','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','785988ORQlnK','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','path','ygUXd','name','fVwRK','ZGwdU','azurefile-csi-premium','bURhI','create-grid-checks-non-200','juoIp','getResourceClientId','setupAutoscaler','readFileAsync','QcvFi','jZPhE','true','DmBGk','BObzZ','FAaIg','iEWQF','bUXgk','Nequv','bstackAccesskey','isNewAWSCluster','FaHdr','kgwBM','qXvmh','bitnami-kafka.yaml','SpGiY','argv','pre-spawned-subnets-not-selected','gBaZG','sendResourceDataToHST','\x20in\x20existing\x20cluster\x20\x27','7kXSKgc','MQVxe','siqAp','Cluster\x20','Enabling\x20Hub\x20HA\x20flow','NOitK','EsSpf','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','JxEAb','fBBNW','Found\x20VPC:\x20','xDzCv','panzJ','../../utils/webSocketUtils','fPnDj','fomCK','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','existsSync','gQbme','soAUu','IAkEV','UkRNzNYCBU','lWApN','password','Btimt','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','BAwso','IPchA','get-grid-url-auth-failed','hRAxX','cRmxr','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','UkOVz','Creating\x20Hub\x20HA\x20resources','readFileSync','template','string','pkXWP','user','eSZxS','nmPmb','minNodes','message','CzhjO','isVPCPresent','Added\x20Turboscale\x20Uploader\x20deployment.','uoAMD','yUYol','vOpLj','qpkFY','../..','Creating\x20namespace','private-grid','cloudProvider','DKuZu','grid','redisPassword','enableHubHa','viZXa','vCVOZ','securityGroups','OECuv','Found\x20Subnets:\x20','hRiaG','RtMkH','/packages/cli/get-grid-url?gridIdentifier=','CLI_RUN_FINISHED','rmmTc','hnIKB','cloud-provider','CIaqb','createNamespace','iDQkp','GTSXb','exit','stack','Cluster:\x20','PSlxD','spec','OmkdZ','Ieqmo','Flag\x20to\x20enable\x20Hub\x20HA','description','zhTXG','aWgPq','serviceAccountName','12|7|6|10|1|3|2|15|5|13|8|0|4|14|11|9','xuiwc','3|2|1|4|0','create-grid-checks-grid-already-exists','dQIFg','default','join','username','EkyQC','bhWuE','zhtkd','QVbAr','yxcRe','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','mAYwX'];a9_0x3730=function(){return _0x5a7fba;};return a9_0x3730();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10_0x24019e=a10_0x20c4;(function(_0x425874,_0x502812){const _0x3728ac=a10_0x20c4,_0x2ecf1e=_0x425874();while(!![]){try{const _0x5ee94b=-parseInt(_0x3728ac(0x8a))/0x1*(-parseInt(_0x3728ac(0x86))/0x2)+parseInt(_0x3728ac(0x75))/0x3+-parseInt(_0x3728ac(0x8b))/0x4*(parseInt(_0x3728ac(0x7a))/0x5)+parseInt(_0x3728ac(0x85))/0x6+-parseInt(_0x3728ac(0x80))/0x7*(-parseInt(_0x3728ac(0x88))/0x8)+parseInt(_0x3728ac(0x89))/0x9*(parseInt(_0x3728ac(0x76))/0xa)+-parseInt(_0x3728ac(0x7c))/0xb;if(_0x5ee94b===_0x502812)break;else _0x2ecf1e['push'](_0x2ecf1e['shift']());}catch(_0xb2b4d6){_0x2ecf1e['push'](_0x2ecf1e['shift']());}}}(a10_0x5567,0xf4089));function a10_0x20c4(_0x3d1bf4,_0x702dfb){const _0x5567e0=a10_0x5567();return a10_0x20c4=function(_0x20c407,_0x13ed06){_0x20c407=_0x20c407-0x74;let _0x404d90=_0x5567e0[_0x20c407];return _0x404d90;},a10_0x20c4(_0x3d1bf4,_0x702dfb);}function a10_0x5567(){const _0x59ef9d=['delete_commands','delete','desc','19614TQfVkH','recommendCommands','demandCommand','help','tZNhW','10135890LxIfqv','576320gXDvMg','../config/constants','4608krAHGA','19251hJrZFb','1HzWVuy','26224iPoNhR','command','4585788JRKqnq','5840difagi','xFvFf','strict','commandDir','1115zmqbMx','usage','42984150IksifB'];a10_0x5567=function(){return _0x59ef9d;};return a10_0x5567();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x24019e(0x87));exports[a10_0x24019e(0x74)]=a10_0x24019e(0x7e),exports[a10_0x24019e(0x7f)]='List\x20Grid\x20resources.',exports['builder']=function(_0x200e32){const _0x4d93aa=a10_0x24019e,_0x59fc2a={};_0x59fc2a[_0x4d93aa(0x84)]=_0x4d93aa(0x7d),_0x59fc2a['xFvFf']=_0x4d93aa(0x83);const _0x44e0a9=_0x59fc2a;return _0x200e32[_0x4d93aa(0x7b)](HELP_HEADER_MESSAGE[_0x4d93aa(0x7e)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4d93aa(0x79)](_0x44e0a9['tZNhW'])[_0x4d93aa(0x82)]()[_0x4d93aa(0x81)]()[_0x4d93aa(0x78)]()[_0x4d93aa(0x83)](_0x44e0a9[_0x4d93aa(0x77)]);},exports['handler']=function(_0x5d255e){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x375c4c=a11_0x2f25;function a11_0x2121(){const _0x5fb882=['jYaXs','ERROR','catch','info','FhQNT','gIUVF','then','2546604qpphFX','<UsernamePlaceholder>','prRpz','init-not-called','hdkiO','fhArH','warn','\x22\x20with\x20ID\x20','../../utils/utilityMethods','command','TtoVh','IcqTc','DmGmM','stack','handler','exit','clusterRegion','onlyGridInCluster','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','toLowerCase','cloudProvider','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Cluster:\x20','EwUyX','Zzaxo','tdnNy','MIPSe','7583144hbtsye','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Namespace:\x20','sDBaA','tEFfa','mTXxb','NfgMD','wlsrR','grid-id','PRkNq','gxTYS','OkHUG','3035070amGDwB','214130zpJSwq','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','xrSSB','replace','nOZPK','djece','Browserstack','description','isClusterPresent','rbDRe','qvVuP','reconnecting-websocket','/packages/cli/grid/','PBcKr','INFO','epilogue','qdpdU','sGmCO','VlKow','YJmYK','bSoes','invalid-input','argv','stringify','932962aJjzKk','username','txEKI','isBrowserstackCluster','unknown-error','Failed\x20to\x20delete\x20resources!\x20Error:\x20','requestId','GAcqd','clusterId','boolean','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ztZxa','yyumX','kXmNX','default','bCChg','\x22\x20and\x20ID\x20','../../utils/gridComponents','hdTCq','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','server-error','desc','gridId','clusterSpawnedVia','FOMJm','OTNNL','../../config/logger','GUiMZ','clusterName','<PasswordPlaceholder>','vgrTg','vsOWx','DELETE','mvkdu','skipTlsCertVerify','Pass\x20the\x20ID\x20of\x20the\x20Grid','delete-grid-called','EnZzZ','got','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','sAjdG','1559102haEQQM','pruYk','hfypj','../../utils/createk8sClient','https://','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','MyLhZ','kPXYp','Bjdot','password','parse','usage','help','TsTBC','grid','../../utils/instrumentationUtils','body','uuid','JYjEv','yFbvK','name','type','GDOOm','12TkykNA','options','hQyuo','error','rUhci','aftGt','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','statusCode','TZiyO','Successfully\x20deleted\x20the\x20grid','186BwNznI','woZnK','deleteCluster','PEeFb','vpjDl','diHkL','675357HkqnKI','existsSync','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','Delete\x20an\x20Automation\x20grid.','oAtSP','halqd','YxgIp','string'];a11_0x2121=function(){return _0x5fb882;};return a11_0x2121();}(function(_0x502dc8,_0xc996c1){const _0x4405e7=a11_0x2f25,_0x1ec4d1=_0x502dc8();while(!![]){try{const _0x5703c4=parseInt(_0x4405e7(0x1d4))/0x1+-parseInt(_0x4405e7(0x1fe))/0x2+parseInt(_0x4405e7(0x225))/0x3*(parseInt(_0x4405e7(0x215))/0x4)+-parseInt(_0x4405e7(0x25b))/0x5+-parseInt(_0x4405e7(0x21f))/0x6*(parseInt(_0x4405e7(0x25c))/0x7)+parseInt(_0x4405e7(0x24f))/0x8+parseInt(_0x4405e7(0x234))/0x9;if(_0x5703c4===_0xc996c1)break;else _0x1ec4d1['push'](_0x1ec4d1['shift']());}catch(_0x5c3500){_0x1ec4d1['push'](_0x1ec4d1['shift']());}}}(a11_0x2121,0x7b1f9));function a11_0x2f25(_0x38af8c,_0x5ae4f5){const _0x2121db=a11_0x2121();return a11_0x2f25=function(_0x2f25c3,_0x415a45){_0x2f25c3=_0x2f25c3-0x1c5;let _0x56a1e0=_0x2121db[_0x2f25c3];return _0x56a1e0;},a11_0x2f25(_0x38af8c,_0x5ae4f5);}const fs=require('fs'),got=require(a11_0x375c4c(0x1fb)),{v4:uuidv4}=require(a11_0x375c4c(0x20f)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x375c4c(0x1c7)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x375c4c(0x1ef)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x375c4c(0x1e6)),{sendInstrumentationEvent}=require(a11_0x375c4c(0x20d)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x375c4c(0x201)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x375c4c(0x23c)),webSocketUtils=require('../../utils/webSocketUtils');exports[a11_0x375c4c(0x23d)]=a11_0x375c4c(0x20c),exports[a11_0x375c4c(0x1ea)]=a11_0x375c4c(0x228),exports['builder']=function(_0x57d261){const _0xec9371=a11_0x375c4c,_0x174d1b={};_0x174d1b[_0xec9371(0x1e4)]=_0xec9371(0x1f8),_0x174d1b[_0xec9371(0x23e)]=_0xec9371(0x22c),_0x174d1b[_0xec9371(0x232)]='Skip\x20insecure\x20cert\x20verification.',_0x174d1b[_0xec9371(0x224)]=_0xec9371(0x1dd),_0x174d1b[_0xec9371(0x25e)]='help';const _0x66a428=_0x174d1b,_0x6ec9c3={};_0x6ec9c3[_0xec9371(0x263)]=_0x66a428[_0xec9371(0x1e4)],_0x6ec9c3[_0xec9371(0x213)]=_0x66a428[_0xec9371(0x23e)];const _0x32dfda={};_0x32dfda[_0xec9371(0x263)]=_0x66a428[_0xec9371(0x232)],_0x32dfda[_0xec9371(0x213)]=_0x66a428['diHkL'],_0x32dfda[_0xec9371(0x1e3)]=![];const _0x52de07={};return _0x52de07[_0xec9371(0x257)]=_0x6ec9c3,_0x52de07['skip-tls-cert-verify']=_0x32dfda,_0x57d261[_0xec9371(0x209)](HELP_HEADER_MESSAGE['delete'])[_0xec9371(0x1cb)](HELP_FOOTER_MESSAGE)['options'](_0x52de07)['help'](_0x66a428[_0xec9371(0x25e)])['argv'];},exports[a11_0x375c4c(0x242)]=async function(_0xd28e94){const _0x43b67c=a11_0x375c4c,_0x34c533={'bSoes':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','PRkNq':_0x43b67c(0x21e),'GUiMZ':_0x43b67c(0x203),'tdnNy':function(_0x25ddb5,_0x30baaf){return _0x25ddb5!==_0x30baaf;},'hQyuo':'RstnN','OkHUG':'zqzUZ','IyHSp':_0x43b67c(0x1f8),'lYpvL':_0x43b67c(0x22c),'djece':'Skip\x20insecure\x20cert\x20verification.','NfgMD':_0x43b67c(0x1dd),'kXmNX':_0x43b67c(0x20a),'fhArH':_0x43b67c(0x1f4),'gGdeT':function(_0x24acd6){return _0x24acd6();},'RMCOJ':function(_0x2e115b){return _0x2e115b();},'PEeFb':function(_0x40ac3e,_0x5775ba){return _0x40ac3e===_0x5775ba;},'aftGt':'uHCpM','IcqTc':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rUhci':function(_0x356773,_0x443bc3,_0x8e771,_0x3703a3,_0x2ebb44,_0x9fc8c7,_0x894c8d){return _0x356773(_0x443bc3,_0x8e771,_0x3703a3,_0x2ebb44,_0x9fc8c7,_0x894c8d);},'VlKow':_0x43b67c(0x1f9),'YxgIp':_0x43b67c(0x237),'nOZPK':'zWrRn','pruYk':function(_0x254831){return _0x254831();},'OTNNL':function(_0x54e78a,_0xf00be6,_0x4ed4a5,_0xa31a17){return _0x54e78a(_0xf00be6,_0x4ed4a5,_0xa31a17);},'yFbvK':function(_0x19af51,_0x3b4e83){return _0x19af51===_0x3b4e83;},'jYaXs':_0x43b67c(0x262),'halqd':'OwASu','qvVuP':_0x43b67c(0x220),'txEKI':function(_0x2229c7,_0x3bd173){return _0x2229c7(_0x3bd173);},'SFbkm':_0x43b67c(0x1e1),'EnZzZ':_0x43b67c(0x240),'YJmYK':_0x43b67c(0x246),'JunOG':function(_0x108ba4,_0x551fa0,_0x46bd04,_0x471661,_0x28e84b,_0x2c1931,_0x398031){return _0x108ba4(_0x551fa0,_0x46bd04,_0x471661,_0x28e84b,_0x2c1931,_0x398031);},'vgrTg':_0x43b67c(0x1d1),'vpjDl':function(_0x591527,_0x4edb29){return _0x591527===_0x4edb29;},'GAcqd':function(_0x5dedbf,_0x4d8323){return _0x5dedbf!==_0x4d8323;},'Bjdot':_0x43b67c(0x1f6),'AowgP':_0x43b67c(0x259),'FhQNT':_0x43b67c(0x235),'kPXYp':_0x43b67c(0x1f2),'hdkiO':function(_0x330e52,_0x74a6f5,_0x15c96c,_0x1abd28,_0x4c7fa6,_0x51c53a,_0x5e9f8b){return _0x330e52(_0x74a6f5,_0x15c96c,_0x1abd28,_0x4c7fa6,_0x51c53a,_0x5e9f8b);},'sAjdG':function(_0x4a6f20,_0x3eae86){return _0x4a6f20(_0x3eae86);},'mhZzf':function(_0x3ccef8,_0x237ab3,_0x21d941){return _0x3ccef8(_0x237ab3,_0x21d941);},'hfypj':function(_0x4e7227,_0xd1d608,_0x4692bd,_0x3a3f8d,_0xcdb7e8,_0x5beac8){return _0x4e7227(_0xd1d608,_0x4692bd,_0x3a3f8d,_0xcdb7e8,_0x5beac8);},'MyLhZ':_0x43b67c(0x256),'sDBaA':_0x43b67c(0x1cd),'rbDRe':_0x43b67c(0x24c),'PBcKr':_0x43b67c(0x1f5),'oAtSP':function(_0x41b626,_0x373fa4,_0x595430){return _0x41b626(_0x373fa4,_0x595430);},'GDOOm':function(_0x326dae,_0x4dcff1){return _0x326dae===_0x4dcff1;},'ztZxa':function(_0x50100c,_0x35f807,_0x2f28bc,_0xf789a0,_0x2c7c3d,_0x47f661,_0x396eec){return _0x50100c(_0x35f807,_0x2f28bc,_0xf789a0,_0x2c7c3d,_0x47f661,_0x396eec);},'tEFfa':_0x43b67c(0x1e9),'MIPSe':_0x43b67c(0x1fc),'uGgQe':function(_0x1e4dfa,_0x48c1a2,_0x3267ef,_0x47c597,_0x3b1a68,_0x4e1f21,_0xb2b778){return _0x1e4dfa(_0x48c1a2,_0x3267ef,_0x47c597,_0x3b1a68,_0x4e1f21,_0xb2b778);},'mTXxb':'unauthorised','JYjEv':function(_0xac5219,_0x1af565){return _0xac5219===_0x1af565;},'FOMJm':function(_0x56a54a,_0xcc9c1b,_0x3d202b,_0x41fa77,_0x272262,_0x2ff427,_0x5b9640){return _0x56a54a(_0xcc9c1b,_0x3d202b,_0x41fa77,_0x272262,_0x2ff427,_0x5b9640);},'gdeLn':'invalid-grid-id','ufdxJ':function(_0x1079b5,_0x4cdef2,_0x55ce95,_0x4e85da,_0x13f618,_0x130a02,_0x5e851e){return _0x1079b5(_0x4cdef2,_0x55ce95,_0x4e85da,_0x13f618,_0x130a02,_0x5e851e);},'hdTCq':function(_0xc22b39,_0x3eb9dd,_0xe2a289,_0x1df65a,_0x2bc026,_0x506119,_0x16901c){return _0xc22b39(_0x3eb9dd,_0xe2a289,_0x1df65a,_0x2bc026,_0x506119,_0x16901c);},'qdpdU':_0x43b67c(0x1d8)};try{global_registry[_0x43b67c(0x1da)]=_0x34c533['gGdeT'](uuidv4);!fs[_0x43b67c(0x226)](_0x34c533['RMCOJ'](getCredentialsPath))&&(_0x34c533['PEeFb'](_0x34c533[_0x43b67c(0x21a)],_0x34c533[_0x43b67c(0x21a)])?(console[_0x43b67c(0x218)](_0x34c533[_0x43b67c(0x23f)]),await _0x34c533[_0x43b67c(0x219)](sendInstrumentationEvent,_0xd28e94,_0x34c533[_0x43b67c(0x1ce)],messageTypes['ERROR'],_0x34c533[_0x43b67c(0x22b)],null,_0xd28e94),process[_0x43b67c(0x243)](0x1)):(_0x2fdec5[_0x43b67c(0x218)](_0x34c533[_0x43b67c(0x1d0)]),_0x493100['exit'](0x1)));_0x34c533[_0x43b67c(0x219)](sendInstrumentationEvent,_0xd28e94,_0x34c533['VlKow'],messageTypes[_0x43b67c(0x1ca)],null,null,_0xd28e94);!_0xd28e94[_0x43b67c(0x1eb)]&&(_0x34c533[_0x43b67c(0x24d)](_0x34c533[_0x43b67c(0x260)],_0x34c533[_0x43b67c(0x260)])?_0x134aeb[_0x43b67c(0x23a)](_0x43b67c(0x24a)+_0x3cfd5f[_0x43b67c(0x1f1)]+_0x43b67c(0x250)):(console[_0x43b67c(0x218)](_0x34c533['bSoes']),process[_0x43b67c(0x243)](0x1)));const _0x1b5639=JSON['parse'](fs['readFileSync'](_0x34c533[_0x43b67c(0x1ff)](getCredentialsPath))),[_0x4a080b,_0x4ce75c]=await _0x34c533[_0x43b67c(0x1ee)](getGridDetails,_0x1b5639[_0x43b67c(0x262)][_0x43b67c(0x1d5)],_0x1b5639[_0x43b67c(0x262)]['password'],_0xd28e94['gridId']);if(_0x4ce75c){const _0x5b1a71=_0x4ce75c[_0x43b67c(0x230)];let _0x2e67e7=_0x43b67c(0x25d)+_0x5b1a71['name']+_0x43b67c(0x1e5)+_0x5b1a71['id']+_0x43b67c(0x249);_0x4ce75c[_0x43b67c(0x245)]&&_0x34c533['yFbvK'](_0x4ce75c[_0x43b67c(0x1ec)],_0x34c533[_0x43b67c(0x22d)])&&(_0x34c533[_0x43b67c(0x24d)](_0x34c533[_0x43b67c(0x22a)],_0x34c533[_0x43b67c(0x1c6)])?_0x2e67e7=_0x43b67c(0x25d)+_0x5b1a71['name']+_0x43b67c(0x1e5)+_0x5b1a71['id']+_0x43b67c(0x1e8)+_0x5b1a71['clusterName']+_0x43b67c(0x23b)+_0x5b1a71[_0x43b67c(0x1dc)]+_0x43b67c(0x249):(_0x275a79['warn'](_0x43b67c(0x251)+_0x19a18f+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0xc3b325=![]));const _0x8ec36b=await _0x34c533[_0x43b67c(0x1d6)](inputConfirmation,_0x2e67e7);(_0x34c533[_0x43b67c(0x222)](_0x8ec36b,undefined)||_0x34c533['PEeFb'](_0x8ec36b,null)||!(_0x34c533[_0x43b67c(0x211)](_0x8ec36b[_0x43b67c(0x247)](),'y')||_0x34c533['yFbvK'](_0x8ec36b['toLowerCase'](),'n')))&&(_0x34c533[_0x43b67c(0x24d)](_0x34c533['SFbkm'],_0x34c533[_0x43b67c(0x1fa)])?(console[_0x43b67c(0x218)](_0x34c533[_0x43b67c(0x1cf)]),await _0x34c533['JunOG'](sendInstrumentationEvent,_0xd28e94,_0x34c533[_0x43b67c(0x1ce)],messageTypes[_0x43b67c(0x22e)],_0x34c533[_0x43b67c(0x1f3)],null,_0xd28e94),process[_0x43b67c(0x243)](0x1)):(_0x2b3c71[_0x43b67c(0x230)](_0x34c533[_0x43b67c(0x258)]),_0x4fadca[_0x43b67c(0x243)](0x0)));_0x34c533[_0x43b67c(0x223)](_0x8ec36b[_0x43b67c(0x247)](),'n')&&(_0x34c533[_0x43b67c(0x1db)](_0x34c533[_0x43b67c(0x206)],_0x34c533['AowgP'])?process[_0x43b67c(0x243)](0x0):_0x553353['exit'](0x0));const _0x19cd61=WS_ENDPOINT[_0x43b67c(0x25f)](_0x34c533[_0x43b67c(0x231)],_0x1b5639[_0x43b67c(0x262)][_0x43b67c(0x1d5)])[_0x43b67c(0x25f)](_0x34c533[_0x43b67c(0x205)],_0x1b5639[_0x43b67c(0x262)][_0x43b67c(0x207)]),_0x129ba7={};_0x129ba7['WebSocket']=ws,_0x129ba7['connectionTimeout']=0x36ee80;const _0x2c057a=new ReconnectingWebSocket(_0x19cd61,[],_0x129ba7);global_registry[_0x43b67c(0x244)]=_0x5b1a71['region'];const _0x2ba50a=_0x5b1a71[_0x43b67c(0x248)],_0x55275a=await _0x34c533[_0x43b67c(0x238)](getCloudProviderObject,_0x2ba50a,_0x5b1a71[_0x43b67c(0x1f1)],_0x5b1a71[_0x43b67c(0x212)],_0x2c057a,webSocketUtils,_0xd28e94),_0x169217=await _0x55275a[_0x43b67c(0x264)]();if(_0x169217){const _0x46d74d=_0x34c533[_0x43b67c(0x1fd)](kebabCase,_0x5b1a71[_0x43b67c(0x212)]),[_0x228ff3,_0xb62fae,_0x48e85c,_0x485cb5,_0x3391c8,_0x36fea8]=await _0x34c533['mhZzf'](createK8sClient,_0x55275a,_0xd28e94[_0x43b67c(0x1f7)]);let _0x54b6e0=!![];const _0x28e3ce={};_0x28e3ce[_0x43b67c(0x212)]=_0x46d74d,await _0x228ff3['readNamespace'](_0x28e3ce)[_0x43b67c(0x233)](_0x470a56=>{const _0x2059aa=_0x43b67c;_0x34c533[_0x2059aa(0x24d)](_0x34c533[_0x2059aa(0x217)],_0x34c533[_0x2059aa(0x25a)])?logger[_0x2059aa(0x230)](_0x2059aa(0x251)+_0x46d74d+_0x2059aa(0x1de)):_0x8406ab['warn'](_0x34c533[_0x2059aa(0x1f0)]);})[_0x43b67c(0x22f)](_0x249bb6=>{const _0x3d462a=_0x43b67c,_0x51c746={};_0x51c746[_0x3d462a(0x236)]=_0x34c533['IyHSp'],_0x51c746[_0x3d462a(0x24b)]=_0x34c533['lYpvL'],_0x51c746[_0x3d462a(0x21d)]=_0x34c533[_0x3d462a(0x261)],_0x51c746['ewFJd']=_0x34c533[_0x3d462a(0x255)],_0x51c746[_0x3d462a(0x20b)]=_0x34c533[_0x3d462a(0x1e2)];const _0x593c9b=_0x51c746;if(_0x34c533['tdnNy'](_0x34c533[_0x3d462a(0x239)],_0x34c533[_0x3d462a(0x239)])){const _0x352710={};_0x352710[_0x3d462a(0x263)]=_0x593c9b['prRpz'],_0x352710[_0x3d462a(0x213)]=_0x593c9b[_0x3d462a(0x24b)];const _0xbe27e6={};_0xbe27e6[_0x3d462a(0x263)]=_0x593c9b[_0x3d462a(0x21d)],_0xbe27e6[_0x3d462a(0x213)]=_0x593c9b['ewFJd'],_0xbe27e6[_0x3d462a(0x1e3)]=![];const _0xd2843a={};return _0xd2843a[_0x3d462a(0x257)]=_0x352710,_0xd2843a['skip-tls-cert-verify']=_0xbe27e6,_0x20779b[_0x3d462a(0x209)](_0x378593['delete'])[_0x3d462a(0x1cb)](_0x1aa522)[_0x3d462a(0x216)](_0xd2843a)[_0x3d462a(0x20a)](_0x593c9b[_0x3d462a(0x20b)])[_0x3d462a(0x1d2)];}else logger[_0x3d462a(0x23a)](_0x3d462a(0x251)+_0x46d74d+_0x3d462a(0x21b)),_0x54b6e0=![];});if(_0x54b6e0){await _0x34c533[_0x43b67c(0x200)](removeGridComponents,_0x228ff3,_0xb62fae,_0x48e85c,_0x485cb5,_0x46d74d);if(_0x4ce75c['onlyGridInCluster']){const _0x4b7471=await _0x55275a[_0x43b67c(0x1d7)]();_0x4b7471?_0x34c533[_0x43b67c(0x1db)](_0x34c533[_0x43b67c(0x204)],_0x34c533[_0x43b67c(0x204)])?_0xa7448b=_0x43b67c(0x25d)+_0x12448b['name']+_0x43b67c(0x1e5)+_0x29f72a['id']+_0x43b67c(0x1e8)+_0x40f3bb[_0x43b67c(0x1f1)]+_0x43b67c(0x23b)+_0x3ab2ff[_0x43b67c(0x1dc)]+_0x43b67c(0x249):await _0x55275a[_0x43b67c(0x221)](_0x228ff3,_0x5b1a71['region']):_0x34c533[_0x43b67c(0x24d)](_0x34c533[_0x43b67c(0x252)],_0x34c533[_0x43b67c(0x1c5)])?logger[_0x43b67c(0x23a)](_0x43b67c(0x24a)+_0x5b1a71[_0x43b67c(0x1f1)]+_0x43b67c(0x250)):_0x438d03[_0x43b67c(0x230)](_0x43b67c(0x251)+_0x523a6e+_0x43b67c(0x1de));}}}else logger[_0x43b67c(0x23a)](_0x34c533[_0x43b67c(0x1f0)]);const _0x4b46c2=_0x43b67c(0x202)+AG_API_URL+_0x43b67c(0x1c8)+_0xd28e94[_0x43b67c(0x1eb)],_0x54f54e={'method':_0x34c533[_0x43b67c(0x1c9)],'headers':_0x34c533[_0x43b67c(0x229)](getAuthHeader,_0x1b5639[_0x43b67c(0x262)]['username'],_0x1b5639[_0x43b67c(0x262)]['password']),'throwHttpErrors':![]},_0x261660=await _0x34c533['oAtSP'](got,_0x4b46c2,_0x54f54e);_0x34c533[_0x43b67c(0x24d)](_0x261660,null)&&_0x34c533[_0x43b67c(0x1db)](_0x261660,undefined)&&_0x34c533[_0x43b67c(0x214)](_0x261660[_0x43b67c(0x21c)],0xc8)&&(logger[_0x43b67c(0x230)](_0x34c533['PRkNq']),process[_0x43b67c(0x243)](0x0)),logger[_0x43b67c(0x218)](_0x43b67c(0x227)+_0x261660['body']),await _0x34c533[_0x43b67c(0x1e0)](sendInstrumentationEvent,_0xd28e94,_0x34c533[_0x43b67c(0x1ce)],messageTypes[_0x43b67c(0x22e)],_0x34c533['tEFfa'],_0x4a080b,_0xd28e94),process[_0x43b67c(0x243)](0x1);}_0x34c533[_0x43b67c(0x223)](_0x4a080b[_0x43b67c(0x21c)],0x191)&&(logger['error'](_0x34c533[_0x43b67c(0x24e)]),await _0x34c533['uGgQe'](sendInstrumentationEvent,_0xd28e94,_0x34c533['VlKow'],messageTypes['ERROR'],_0x34c533[_0x43b67c(0x254)],null,_0xd28e94),process[_0x43b67c(0x243)](0x1)),_0x34c533[_0x43b67c(0x210)](_0x4a080b[_0x43b67c(0x21c)],0x190)&&(logger['error'](JSON[_0x43b67c(0x208)](_0x4a080b[_0x43b67c(0x20e)])['message']),await _0x34c533[_0x43b67c(0x1ed)](sendInstrumentationEvent,_0xd28e94,_0x34c533[_0x43b67c(0x1ce)],messageTypes[_0x43b67c(0x22e)],_0x34c533['gdeLn'],null,_0xd28e94),process['exit'](0x1)),logger[_0x43b67c(0x218)](_0x43b67c(0x1df)+JSON[_0x43b67c(0x1d3)](_0x4a080b)),await _0x34c533['ufdxJ'](sendInstrumentationEvent,_0xd28e94,_0x34c533['VlKow'],messageTypes[_0x43b67c(0x22e)],_0x34c533[_0x43b67c(0x253)],_0x4a080b,_0xd28e94),process[_0x43b67c(0x243)](0x1);}catch(_0x5951f6){logger[_0x43b67c(0x218)](_0x43b67c(0x1d9)+_0x5951f6[_0x43b67c(0x241)]),await _0x34c533[_0x43b67c(0x1e7)](sendInstrumentationEvent,_0xd28e94,_0x34c533[_0x43b67c(0x1ce)],messageTypes['ERROR'],_0x34c533[_0x43b67c(0x1cc)],_0x5951f6,_0xd28e94),process[_0x43b67c(0x243)](0x1);}};
|
|
1
|
+
const a11_0x3b92be=a11_0x5a28;(function(_0x236335,_0x144484){const _0x53dcfb=a11_0x5a28,_0x40d8f7=_0x236335();while(!![]){try{const _0x5d6368=-parseInt(_0x53dcfb(0x111))/0x1+parseInt(_0x53dcfb(0x13e))/0x2*(parseInt(_0x53dcfb(0x140))/0x3)+-parseInt(_0x53dcfb(0xf7))/0x4*(-parseInt(_0x53dcfb(0x157))/0x5)+parseInt(_0x53dcfb(0x148))/0x6+-parseInt(_0x53dcfb(0xe4))/0x7+-parseInt(_0x53dcfb(0x132))/0x8+parseInt(_0x53dcfb(0xfb))/0x9*(parseInt(_0x53dcfb(0xf1))/0xa);if(_0x5d6368===_0x144484)break;else _0x40d8f7['push'](_0x40d8f7['shift']());}catch(_0x51cb5c){_0x40d8f7['push'](_0x40d8f7['shift']());}}}(a11_0x2bd8,0x51691));const fs=require('fs'),got=require(a11_0x3b92be(0x169)),{v4:uuidv4}=require(a11_0x3b92be(0x12b)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x3b92be(0x12e)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x3b92be(0x146)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x3b92be(0xe7)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x3b92be(0xfd)),{sendInstrumentationEvent}=require(a11_0x3b92be(0x138)),{inputConfirmation}=require(a11_0x3b92be(0xda)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x3b92be(0x144)),webSocketUtils=require(a11_0x3b92be(0xed));exports[a11_0x3b92be(0x165)]=a11_0x3b92be(0x164),exports[a11_0x3b92be(0xdc)]=a11_0x3b92be(0x125),exports[a11_0x3b92be(0x115)]=function(_0x54a635){const _0x3db48d=a11_0x3b92be,_0x4aedc3={};_0x4aedc3[_0x3db48d(0xf6)]=_0x3db48d(0xff),_0x4aedc3[_0x3db48d(0xe5)]=_0x3db48d(0xf0),_0x4aedc3[_0x3db48d(0x12f)]=_0x3db48d(0x142),_0x4aedc3[_0x3db48d(0xf9)]='boolean',_0x4aedc3[_0x3db48d(0x107)]=_0x3db48d(0xdd);const _0x31cd7d=_0x4aedc3,_0x3fee3a={};_0x3fee3a[_0x3db48d(0xd4)]=_0x31cd7d['SgbMy'],_0x3fee3a[_0x3db48d(0x11e)]=_0x31cd7d[_0x3db48d(0xe5)];const _0x3fe97b={};_0x3fe97b[_0x3db48d(0xd4)]=_0x31cd7d[_0x3db48d(0x12f)],_0x3fe97b['type']=_0x31cd7d['KqtKS'],_0x3fe97b['default']=![];const _0x5436e4={};return _0x5436e4[_0x3db48d(0x10b)]=_0x3fee3a,_0x5436e4[_0x3db48d(0xdb)]=_0x3fe97b,_0x54a635['usage'](HELP_HEADER_MESSAGE[_0x3db48d(0x11f)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3db48d(0xe8)](_0x5436e4)['help'](_0x31cd7d[_0x3db48d(0x107)])[_0x3db48d(0xef)];},exports[a11_0x3b92be(0xd9)]=async function(_0x1e5b77){const _0x360eee=a11_0x3b92be,_0xff912f={'chgYC':_0x360eee(0xff),'lrBtZ':_0x360eee(0xf0),'hQIaO':_0x360eee(0x142),'wQzSV':_0x360eee(0x155),'jekSZ':_0x360eee(0xdd),'pcboM':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','LPFeF':_0x360eee(0x126),'JkojQ':function(_0x376731,_0x5dbf8c){return _0x376731===_0x5dbf8c;},'UcYeF':_0x360eee(0xde),'uaBNJ':'nfNdi','lfYWM':function(_0xb964dd,_0xe8918b){return _0xb964dd!==_0xe8918b;},'inZlh':_0x360eee(0x150),'UwqWY':_0x360eee(0x13f),'DlYsd':_0x360eee(0x162),'fwyCO':function(_0x135cf9){return _0x135cf9();},'xLTHV':function(_0x37116e,_0x56b7c6){return _0x37116e===_0x56b7c6;},'vawsg':_0x360eee(0x117),'tbLOd':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EqBjc':function(_0x39652a,_0x2b5a0b,_0x10fc27,_0x28d2c4,_0x388de0,_0x2d74f6,_0x5e43f4){return _0x39652a(_0x2b5a0b,_0x10fc27,_0x28d2c4,_0x388de0,_0x2d74f6,_0x5e43f4);},'IBSJV':_0x360eee(0x108),'EySLd':_0x360eee(0x133),'fBgVt':function(_0x24a92c,_0xb1836){return _0x24a92c!==_0xb1836;},'dlwPq':_0x360eee(0x154),'zbRqY':function(_0x5e23d9){return _0x5e23d9();},'EHTSx':function(_0x40779a,_0x24ecf4,_0x2fcb44,_0x4d35ee){return _0x40779a(_0x24ecf4,_0x2fcb44,_0x4d35ee);},'IiZSe':function(_0x985311,_0x45a395){return _0x985311===_0x45a395;},'tQZyK':_0x360eee(0x10a),'MbPXO':_0x360eee(0xe1),'kKUKf':function(_0x1e540c,_0x1bd631){return _0x1e540c(_0x1bd631);},'gSAow':function(_0x24da1e,_0x2bb9fa){return _0x24da1e===_0x2bb9fa;},'TMhxY':_0x360eee(0x123),'mCEMJ':_0x360eee(0x124),'zIOXC':_0x360eee(0x16c),'FfkWz':_0x360eee(0xee),'kkaTC':function(_0x348631,_0x5dfaf2){return _0x348631===_0x5dfaf2;},'Xxtlr':_0x360eee(0x11a),'OinAJ':'mMjwD','EcXWn':_0x360eee(0x152),'fLawn':'<PasswordPlaceholder>','npHcL':function(_0x3ca85b,_0x4fa689,_0x18327b){return _0x3ca85b(_0x4fa689,_0x18327b);},'KgKue':function(_0x193a55,_0x319be1,_0x56fb87,_0x2f6c24,_0x542181,_0x4d92f5){return _0x193a55(_0x319be1,_0x56fb87,_0x2f6c24,_0x542181,_0x4d92f5);},'oSuAO':function(_0x31230f,_0x1ed485){return _0x31230f===_0x1ed485;},'rjFgZ':_0x360eee(0x128),'crSTZ':_0x360eee(0xd3),'hlubT':_0x360eee(0x145),'aMJFh':_0x360eee(0x15b),'sTcwO':function(_0x5c5a57,_0x3e6cd1,_0x180373){return _0x5c5a57(_0x3e6cd1,_0x180373);},'viWVA':function(_0x31ff49,_0x12dfce){return _0x31ff49!==_0x12dfce;},'UbufZ':function(_0x511397,_0x451945,_0xd55025,_0xaed47a,_0x1acbe3,_0x749554,_0x569179){return _0x511397(_0x451945,_0xd55025,_0xaed47a,_0x1acbe3,_0x749554,_0x569179);},'QNFrX':_0x360eee(0xe6),'MQLiV':function(_0x41d987,_0x3f1569){return _0x41d987===_0x3f1569;},'JyIPl':_0x360eee(0x129),'VEFmp':_0x360eee(0x11d),'SUSSH':function(_0x12499a,_0x4979cf,_0x47616e,_0x4d4de9,_0x1bd1dc,_0x3bc00e,_0xf3dd4e){return _0x12499a(_0x4979cf,_0x47616e,_0x4d4de9,_0x1bd1dc,_0x3bc00e,_0xf3dd4e);},'lwBgp':_0x360eee(0x166),'iQUQf':_0x360eee(0x13c)};try{global_registry[_0x360eee(0x159)]=_0xff912f[_0x360eee(0x161)](uuidv4);!fs[_0x360eee(0x14b)](_0xff912f[_0x360eee(0x161)](getCredentialsPath))&&(_0xff912f[_0x360eee(0x158)](_0xff912f['vawsg'],_0xff912f[_0x360eee(0xf2)])?(console['error'](_0xff912f[_0x360eee(0xd1)]),await _0xff912f[_0x360eee(0x122)](sendInstrumentationEvent,_0x1e5b77,_0xff912f[_0x360eee(0x13b)],messageTypes[_0x360eee(0xd8)],_0xff912f['EySLd'],null,_0x1e5b77),process[_0x360eee(0xd2)](0x1)):_0x4f34aa[_0x360eee(0x13d)]('Namespace:\x20'+_0x49eccf+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'));_0xff912f[_0x360eee(0x122)](sendInstrumentationEvent,_0x1e5b77,_0xff912f[_0x360eee(0x13b)],messageTypes[_0x360eee(0x13a)],null,null,_0x1e5b77);if(!_0x1e5b77[_0x360eee(0x104)]){if(_0xff912f['fBgVt'](_0xff912f['dlwPq'],_0xff912f[_0x360eee(0x101)])){const _0x4585ca={};_0x4585ca[_0x360eee(0xd4)]=_0xff912f[_0x360eee(0x15a)],_0x4585ca[_0x360eee(0x11e)]=_0xff912f[_0x360eee(0x16d)];const _0x1ac911={};_0x1ac911[_0x360eee(0xd4)]=_0xff912f[_0x360eee(0x120)],_0x1ac911[_0x360eee(0x11e)]=_0xff912f[_0x360eee(0xe3)],_0x1ac911['default']=![];const _0x2148d7={};return _0x2148d7[_0x360eee(0x10b)]=_0x4585ca,_0x2148d7[_0x360eee(0xdb)]=_0x1ac911,_0x5cc691[_0x360eee(0x168)](_0x41104c[_0x360eee(0x11f)])['epilogue'](_0x569b05)['options'](_0x2148d7)[_0x360eee(0xdd)](_0xff912f[_0x360eee(0x112)])[_0x360eee(0xef)];}else console['error'](_0xff912f[_0x360eee(0x114)]),process[_0x360eee(0xd2)](0x1);}const _0x3a5df0=JSON[_0x360eee(0x12d)](fs[_0x360eee(0xd7)](_0xff912f['zbRqY'](getCredentialsPath))),[_0x30f754,_0x3feef0]=await _0xff912f['EHTSx'](getGridDetails,_0x3a5df0[_0x360eee(0x10a)][_0x360eee(0xe0)],_0x3a5df0[_0x360eee(0x10a)][_0x360eee(0x113)],_0x1e5b77['gridId']);if(_0x3feef0){const _0xd32044=_0x3feef0['info'];let _0x2b190b='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0xd32044[_0x360eee(0xd5)]+'\x22\x20and\x20ID\x20'+_0xd32044['id']+_0x360eee(0x14f);_0x3feef0[_0x360eee(0x121)]&&_0xff912f[_0x360eee(0x14a)](_0x3feef0['clusterSpawnedVia'],_0xff912f[_0x360eee(0xf5)])&&(_0xff912f['lfYWM'](_0xff912f[_0x360eee(0x143)],_0xff912f['MbPXO'])?_0x582d31[_0x360eee(0x134)](_0x360eee(0xfc)+_0x2f1204['clusterName']+_0x360eee(0x116)):_0x2b190b='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0xd32044[_0x360eee(0xd5)]+_0x360eee(0xec)+_0xd32044['id']+_0x360eee(0xf3)+_0xd32044[_0x360eee(0x103)]+_0x360eee(0xf4)+_0xd32044[_0x360eee(0x149)]+_0x360eee(0x14f));const _0x471d9e=await _0xff912f[_0x360eee(0x156)](inputConfirmation,_0x2b190b);(_0xff912f[_0x360eee(0x158)](_0x471d9e,undefined)||_0xff912f[_0x360eee(0x135)](_0x471d9e,null)||!(_0xff912f[_0x360eee(0x158)](_0x471d9e[_0x360eee(0x105)](),'y')||_0xff912f[_0x360eee(0x158)](_0x471d9e['toLowerCase'](),'n')))&&(_0xff912f[_0x360eee(0x141)](_0xff912f['TMhxY'],_0xff912f[_0x360eee(0xea)])?(_0x3f47e4[_0x360eee(0x134)](_0x360eee(0x119)+_0x10d53a+_0x360eee(0xe9)),_0x454812=![]):(console['error'](_0xff912f[_0x360eee(0x131)]),await _0xff912f[_0x360eee(0x122)](sendInstrumentationEvent,_0x1e5b77,_0xff912f[_0x360eee(0x13b)],messageTypes['ERROR'],_0xff912f[_0x360eee(0x14e)],null,_0x1e5b77),process['exit'](0x1)));_0xff912f['kkaTC'](_0x471d9e['toLowerCase'](),'n')&&(_0xff912f[_0x360eee(0xf8)](_0xff912f[_0x360eee(0x10c)],_0xff912f[_0x360eee(0x127)])?process[_0x360eee(0xd2)](0x0):(_0x10d5ef[_0x360eee(0xfe)](_0xff912f[_0x360eee(0x114)]),_0x2aaa55[_0x360eee(0xd2)](0x1)));const _0x21077f=WS_ENDPOINT[_0x360eee(0x16b)](_0xff912f['EcXWn'],_0x3a5df0[_0x360eee(0x10a)][_0x360eee(0xe0)])[_0x360eee(0x16b)](_0xff912f[_0x360eee(0xeb)],_0x3a5df0[_0x360eee(0x10a)]['password']),_0x50f655={};_0x50f655['WebSocket']=ws,_0x50f655[_0x360eee(0x11c)]=0x36ee80;const _0x38fc90=new ReconnectingWebSocket(_0x21077f,[],_0x50f655);global_registry[_0x360eee(0x160)]=_0xd32044[_0x360eee(0x15f)];const _0x4f741a=_0xd32044[_0x360eee(0x15d)],_0x416135=await _0xff912f[_0x360eee(0x122)](getCloudProviderObject,_0x4f741a,_0xd32044[_0x360eee(0x103)],_0xd32044[_0x360eee(0xd5)],_0x38fc90,webSocketUtils,_0x1e5b77),_0x38def7=await _0x416135['isClusterPresent']();if(_0x38def7){const _0x5bb22b=_0xff912f[_0x360eee(0x156)](kebabCase,_0xd32044[_0x360eee(0xd5)]),[_0x20f948,_0x522daf,_0xbe032c,_0x27bf06,_0x4a792a,_0x19e5ab]=await _0xff912f['npHcL'](createK8sClient,_0x416135,_0x1e5b77[_0x360eee(0x110)]);let _0x24b9f1=!![];const _0x3dd3ef={};_0x3dd3ef[_0x360eee(0xd5)]=_0x5bb22b,await _0x20f948[_0x360eee(0x16a)](_0x3dd3ef)[_0x360eee(0x14d)](_0x3db72c=>{const _0x504f8f=_0x360eee;_0xff912f[_0x504f8f(0x135)](_0xff912f['UcYeF'],_0xff912f[_0x504f8f(0x106)])?(_0x268d4e[_0x504f8f(0x13d)](_0xff912f['LPFeF']),_0x317a65['exit'](0x0)):logger['info']('Namespace:\x20'+_0x5bb22b+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion');})[_0x360eee(0xfa)](_0x16c120=>{const _0xcea396=_0x360eee;_0xff912f[_0xcea396(0xe2)](_0xff912f[_0xcea396(0x12c)],_0xff912f['UwqWY'])?(logger['warn'](_0xcea396(0x119)+_0x5bb22b+_0xcea396(0xe9)),_0x24b9f1=![]):_0x1020fc=_0xcea396(0x130)+_0x23fa5f['name']+_0xcea396(0xec)+_0x39d51f['id']+_0xcea396(0xf3)+_0x581bc9[_0xcea396(0x103)]+'\x22\x20with\x20ID\x20'+_0x268594[_0xcea396(0x149)]+_0xcea396(0x14f);});if(_0x24b9f1){await _0xff912f[_0x360eee(0x139)](removeGridComponents,_0x20f948,_0x522daf,_0xbe032c,_0x27bf06,_0x5bb22b);if(_0x3feef0[_0x360eee(0x121)]){const _0x144d2b=await _0x416135[_0x360eee(0x109)]();_0x144d2b?_0xff912f[_0x360eee(0x15c)](_0xff912f[_0x360eee(0x12a)],_0xff912f[_0x360eee(0xd6)])?_0x1a0634[_0x360eee(0xd2)](0x0):await _0x416135[_0x360eee(0x136)](_0x20f948,_0xd32044[_0x360eee(0x15f)]):_0xff912f[_0x360eee(0x14a)](_0xff912f['hlubT'],_0xff912f[_0x360eee(0x14c)])?logger['warn'](_0x360eee(0xfc)+_0xd32044['clusterName']+_0x360eee(0x116)):_0x34d90d[_0x360eee(0x134)](_0xff912f[_0x360eee(0x11b)]);}}}else logger[_0x360eee(0x134)](_0xff912f[_0x360eee(0x11b)]);const _0x18d409=_0x360eee(0x153)+AG_API_URL+_0x360eee(0x100)+_0x1e5b77[_0x360eee(0x104)],_0x26e629={'method':_0xff912f['aMJFh'],'headers':_0xff912f['sTcwO'](getAuthHeader,_0x3a5df0[_0x360eee(0x10a)]['username'],_0x3a5df0['Browserstack']['password']),'throwHttpErrors':![]},_0x3ccdfd=await _0xff912f[_0x360eee(0x10d)](got,_0x18d409,_0x26e629);_0xff912f[_0x360eee(0xe2)](_0x3ccdfd,null)&&_0xff912f[_0x360eee(0x102)](_0x3ccdfd,undefined)&&_0xff912f[_0x360eee(0x135)](_0x3ccdfd[_0x360eee(0x10f)],0xc8)&&(logger[_0x360eee(0x13d)](_0xff912f[_0x360eee(0x118)]),process[_0x360eee(0xd2)](0x0)),logger['error'](_0x360eee(0x15e)+_0x3ccdfd['body']),await _0xff912f[_0x360eee(0xdf)](sendInstrumentationEvent,_0x1e5b77,_0xff912f[_0x360eee(0x13b)],messageTypes[_0x360eee(0xd8)],_0xff912f[_0x360eee(0x151)],_0x30f754,_0x1e5b77),process['exit'](0x1);}_0xff912f['MQLiV'](_0x30f754['statusCode'],0x191)&&(logger['error'](_0xff912f['JyIPl']),await _0xff912f[_0x360eee(0x122)](sendInstrumentationEvent,_0x1e5b77,_0xff912f[_0x360eee(0x13b)],messageTypes['ERROR'],_0xff912f['VEFmp'],null,_0x1e5b77),process[_0x360eee(0xd2)](0x1)),_0xff912f[_0x360eee(0x158)](_0x30f754[_0x360eee(0x10f)],0x190)&&(logger[_0x360eee(0xfe)](JSON['parse'](_0x30f754[_0x360eee(0x167)])['message']),await _0xff912f[_0x360eee(0x147)](sendInstrumentationEvent,_0x1e5b77,_0xff912f['IBSJV'],messageTypes['ERROR'],_0xff912f['lwBgp'],null,_0x1e5b77),process['exit'](0x1)),logger[_0x360eee(0xfe)](_0x360eee(0x137)+JSON[_0x360eee(0x163)](_0x30f754)),await _0xff912f[_0x360eee(0x122)](sendInstrumentationEvent,_0x1e5b77,_0xff912f[_0x360eee(0x13b)],messageTypes[_0x360eee(0xd8)],_0xff912f[_0x360eee(0x151)],_0x30f754,_0x1e5b77),process[_0x360eee(0xd2)](0x1);}catch(_0x49d504){logger[_0x360eee(0xfe)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x49d504[_0x360eee(0x10e)]),await _0xff912f[_0x360eee(0x122)](sendInstrumentationEvent,_0x1e5b77,_0xff912f[_0x360eee(0x13b)],messageTypes[_0x360eee(0xd8)],_0xff912f['iQUQf'],_0x49d504,_0x1e5b77),process[_0x360eee(0xd2)](0x1);}};function a11_0x5a28(_0x28efa4,_0x34db2b){const _0x2bd8dc=a11_0x2bd8();return a11_0x5a28=function(_0x5a28d3,_0x4473a2){_0x5a28d3=_0x5a28d3-0xd1;let _0x48a9d1=_0x2bd8dc[_0x5a28d3];return _0x48a9d1;},a11_0x5a28(_0x28efa4,_0x34db2b);}function a11_0x2bd8(){const _0x207011=['replace','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','lrBtZ','tbLOd','exit','HVzkz','description','name','crSTZ','readFileSync','ERROR','handler','../../utils/userInput','skip-tls-cert-verify','desc','help','ZffQV','UbufZ','username','Wxiyx','lfYWM','wQzSV','4415187oQXJac','voRVs','server-error','../../cloudproviders/utils','options','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','mCEMJ','fLawn','\x22\x20and\x20ID\x20','../../utils/webSocketUtils','invalid-input','argv','string','8470LREaJC','vawsg','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','\x22\x20with\x20ID\x20','tQZyK','SgbMy','16NMjACz','fBgVt','KqtKS','catch','7857mFteKU','Cluster:\x20','../../utils/gridComponents','error','Pass\x20the\x20ID\x20of\x20the\x20Grid','/packages/cli/grid/','dlwPq','viWVA','clusterName','gridId','toLowerCase','uaBNJ','AlUNO','delete-grid-called','isBrowserstackCluster','Browserstack','grid-id','Xxtlr','npHcL','stack','statusCode','skipTlsCertVerify','552390uAQuYk','jekSZ','password','pcboM','builder','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','LVYDb','LPFeF','Namespace:\x20','sJpNQ','DlYsd','connectionTimeout','unauthorised','type','delete','hQIaO','onlyGridInCluster','EqBjc','MvxYX','LvHuL','Delete\x20an\x20Automation\x20grid.','Successfully\x20deleted\x20the\x20grid','OinAJ','dhPFR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','rjFgZ','uuid','inZlh','parse','reconnecting-websocket','KwoRG','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','zIOXC','3096480zBsMxU','init-not-called','warn','JkojQ','deleteCluster','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/instrumentationUtils','KgKue','INFO','IBSJV','unknown-error','info','4arNYbG','eIrNq','251310DomJmQ','gSAow','Skip\x20insecure\x20cert\x20verification.','MbPXO','../../utils/utilityMethods','xHeTk','../../config/constants','SUSSH','2813526RxeXBP','clusterId','IiZSe','existsSync','hlubT','then','FfkWz','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','LrGbP','QNFrX','<UsernamePlaceholder>','https://','msUEK','boolean','kKUKf','659695jYXAek','xLTHV','requestId','chgYC','DELETE','oSuAO','cloudProvider','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','region','clusterRegion','fwyCO','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','stringify','grid','command','invalid-grid-id','body','usage','got','readNamespace'];a11_0x2bd8=function(){return _0x207011;};return a11_0x2bd8();}
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x49ff2c=a12_0x5cbd;(function(_0x5a3857,_0x1d07fe){const _0x33af00=a12_0x5cbd,_0x59aa2c=_0x5a3857();while(!![]){try{const _0x5db7e6=-parseInt(_0x33af00(0x211))/0x1*(-parseInt(_0x33af00(0x1f3))/0x2)+-parseInt(_0x33af00(0x1ed))/0x3+-parseInt(_0x33af00(0x1fa))/0x4*(-parseInt(_0x33af00(0x1c6))/0x5)+parseInt(_0x33af00(0x201))/0x6*(parseInt(_0x33af00(0x1fd))/0x7)+parseInt(_0x33af00(0x1da))/0x8+parseInt(_0x33af00(0x214))/0x9+-parseInt(_0x33af00(0x1e9))/0xa;if(_0x5db7e6===_0x1d07fe)break;else _0x59aa2c['push'](_0x59aa2c['shift']());}catch(_0x2cc837){_0x59aa2c['push'](_0x59aa2c['shift']());}}}(a12_0x1744,0xc3c0a));const fs=require('fs'),util=require('util'),got=require(a12_0x49ff2c(0x1b8)),{v4:uuidv4}=require(a12_0x49ff2c(0x1ee)),{logger}=require(a12_0x49ff2c(0x20b)),{inputBstackKeys}=require(a12_0x49ff2c(0x1ef)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x49ff2c(0x215)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x49ff2c(0x1d4)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');function a12_0x5cbd(_0x3b3550,_0x2ff617){const _0x17446c=a12_0x1744();return a12_0x5cbd=function(_0x5cbd06,_0x30a7c3){_0x5cbd06=_0x5cbd06-0x1b4;let _0x271ec5=_0x17446c[_0x5cbd06];return _0x271ec5;},a12_0x5cbd(_0x3b3550,_0x2ff617);}function a12_0x1744(){const _0x5d571a=['rJjTU','Browserstack','type','ufZIA','got','statusCode','description','plzEl','rQXwH','zImqI','hrSVB','QkcYI','bstackAccesskey','BROWSERSTACK_ACCESS_KEY','AMlGd','kNthm','GuATp','handler','5gBdsbb','RYCpP','strict','parse','usage','stack','password','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','INFO','existsSync','vHhhK','/automate/plan.json','username','../utils/utilityMethods','gJIOY','KIMRV','KcvJf','wGKrv','error','5001776xWmWuP','oNrXg','qsrvB','VcOah','jPajA','argv','eMTZy','BROWSERSTACK_USERNAME','lMZqU','vBqpA','bstackUsername','oOWYb','string','debug','xihXR','22013010FAyztH','epilogue','ERROR','AKdJp','4801749gagqXJ','uuid','../utils/userInput','ijBuC','command','Wohno','112108AycdBA','zEchc','options','builder','wDJRY','https://','env','5011828yLPtjD','rElKE','AbMKe','168JUTNyf','stringify','msbVs','init-called','269328aMfFSz','OUEGv','writeFileSync','help','mkdirSync','utf-8','GnKOc','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','exit','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','../config/logger','ijaVM','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','BxivW','rYgGP','QwBxI','8LbcCEE','bQsOI','JHvql','10797867IWrSzZ','../config/constants','recommendCommands','init','bstack-username','readFileSync','AOeQf','mQfEM'];a12_0x1744=function(){return _0x5d571a;};return a12_0x1744();}exports[a12_0x49ff2c(0x1f1)]=a12_0x49ff2c(0x217),exports['desc']=a12_0x49ff2c(0x20d),exports[a12_0x49ff2c(0x1f6)]=function(_0x25900b){const _0x3f8376=a12_0x49ff2c,_0x38b60c={};_0x38b60c[_0x3f8376(0x1f0)]=_0x3f8376(0x20a),_0x38b60c['BxivW']=_0x3f8376(0x1e6),_0x38b60c['OUEGv']=_0x3f8376(0x1cd),_0x38b60c[_0x3f8376(0x1de)]='help';const _0x492216=_0x38b60c,_0x3dbde2={};_0x3dbde2[_0x3f8376(0x1ba)]=_0x492216[_0x3f8376(0x1f0)],_0x3dbde2[_0x3f8376(0x1b6)]=_0x492216[_0x3f8376(0x20e)];const _0x301dbd={};_0x301dbd['description']=_0x492216[_0x3f8376(0x202)],_0x301dbd[_0x3f8376(0x1b6)]=_0x492216['BxivW'];const _0x4c8900={};return _0x4c8900['bstack-username']=_0x3dbde2,_0x4c8900['bstack-accesskey']=_0x301dbd,_0x25900b['usage'](HELP_HEADER_MESSAGE[_0x3f8376(0x217)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3f8376(0x1f5)](_0x4c8900)[_0x3f8376(0x216)]()[_0x3f8376(0x1c8)]()[_0x3f8376(0x204)](_0x492216[_0x3f8376(0x1de)])[_0x3f8376(0x1df)];},exports[a12_0x49ff2c(0x1c5)]=async function(_0x2ee6a1){const _0x3fb95a=a12_0x49ff2c,_0x3aac17={'msbVs':_0x3fb95a(0x20a),'ehhUP':_0x3fb95a(0x1e6),'sHkMU':_0x3fb95a(0x1cd),'rYgGP':_0x3fb95a(0x204),'oNrXg':function(_0x1db3ed){return _0x1db3ed();},'zImqI':_0x3fb95a(0x206),'AKdJp':function(_0x127fba){return _0x127fba();},'RYCpP':function(_0x3d67de,_0x3d87f3,_0x1af4cc,_0x379486,_0x75f08f,_0x1d6d1b,_0x144118){return _0x3d67de(_0x3d87f3,_0x1af4cc,_0x379486,_0x75f08f,_0x1d6d1b,_0x144118);},'wDJRY':_0x3fb95a(0x200),'eMTZy':function(_0x5a5687,_0x54a07c){return _0x5a5687===_0x54a07c;},'GuATp':'ygqeW','bQsOI':_0x3fb95a(0x1fc),'KcvJf':function(_0x520ea4,_0x145e6b){return _0x520ea4!==_0x145e6b;},'zEchc':_0x3fb95a(0x1f2),'ufZIA':function(_0x29bee7,_0x4455c8){return _0x29bee7!==_0x4455c8;},'hrSVB':_0x3fb95a(0x213),'AMlGd':function(_0x8fcb3d,_0x194621){return _0x8fcb3d===_0x194621;},'oOWYb':_0x3fb95a(0x1c3),'QkcYI':function(_0x537b1e,_0x25f27c){return _0x537b1e===_0x25f27c;},'VcOah':'IBZUF','rQXwH':function(_0x1a5480,_0x5b5750){return _0x1a5480===_0x5b5750;},'ijaVM':'SvRsH','gJIOY':_0x3fb95a(0x208),'QwBxI':function(_0x3ad5dd){return _0x3ad5dd();},'wGKrv':'GET','qsrvB':function(_0x563741,_0x13d2b0,_0xeb0fc0){return _0x563741(_0x13d2b0,_0xeb0fc0);},'mQfEM':function(_0x168eb3,_0x398239){return _0x168eb3!==_0x398239;},'vBqpA':_0x3fb95a(0x1fb),'vHhhK':'dfNwn','rJjTU':function(_0x4575ca){return _0x4575ca();},'RTZXs':function(_0x58fe5e,_0x454217){return _0x58fe5e!==_0x454217;},'GnKOc':_0x3fb95a(0x1d6),'AOeQf':_0x3fb95a(0x1ce),'plzEl':function(_0x37facf,_0xa0b5b4,_0x52055c,_0x3c9ebe,_0x299125,_0x4318b8,_0xce0a07){return _0x37facf(_0xa0b5b4,_0x52055c,_0x3c9ebe,_0x299125,_0x4318b8,_0xce0a07);},'lMZqU':'wrong-creds','SNByc':function(_0x4aa19e,_0x471ce6,_0xdf200e,_0xfa4ad7,_0x10b863,_0x356973,_0x2f482b){return _0x4aa19e(_0x471ce6,_0xdf200e,_0xfa4ad7,_0x10b863,_0x356973,_0x2f482b);},'xihXR':'unknown-error'};try{global_registry['requestId']=_0x3aac17['AKdJp'](uuidv4),_0x3aac17[_0x3fb95a(0x1c7)](sendInstrumentationEvent,_0x2ee6a1,_0x3aac17[_0x3fb95a(0x1f7)],messageTypes[_0x3fb95a(0x1cf)],null,null,_0x2ee6a1);const _0xc4c8cd=_0x3aac17[_0x3fb95a(0x1ec)](getDirForConfig);!fs[_0x3fb95a(0x1d0)](_0xc4c8cd)&&(_0x3aac17[_0x3fb95a(0x1e0)](_0x3aac17[_0x3fb95a(0x1c4)],_0x3aac17[_0x3fb95a(0x212)])?_0x11b29d=_0x41fb3c[_0x3fb95a(0x1e4)]:fs[_0x3fb95a(0x205)](_0xc4c8cd));let _0x11be02,_0x13596f;process['env'][_0x3fb95a(0x1e1)]&&(_0x3aac17[_0x3fb95a(0x1d7)](_0x3aac17[_0x3fb95a(0x1f4)],_0x3aac17[_0x3fb95a(0x1f4)])?_0x12e6bd=_0x4e286e[_0x3fb95a(0x1f9)][_0x3fb95a(0x1e1)]:_0x11be02=process['env'][_0x3fb95a(0x1e1)]);if(process[_0x3fb95a(0x1f9)]['BROWSERSTACK_ACCESS_KEY']){if(_0x3aac17[_0x3fb95a(0x1b7)](_0x3aac17[_0x3fb95a(0x1be)],_0x3aac17[_0x3fb95a(0x1be)])){const _0x5ebbdb={};_0x5ebbdb[_0x3fb95a(0x1ba)]=_0x3aac17[_0x3fb95a(0x1ff)],_0x5ebbdb['type']=_0x3aac17['ehhUP'];const _0x4ba89d={};_0x4ba89d[_0x3fb95a(0x1ba)]=_0x3aac17['sHkMU'],_0x4ba89d[_0x3fb95a(0x1b6)]=_0x3aac17['ehhUP'];const _0x521bf2={};return _0x521bf2[_0x3fb95a(0x218)]=_0x5ebbdb,_0x521bf2['bstack-accesskey']=_0x4ba89d,_0xcc7d53[_0x3fb95a(0x1ca)](_0x28268c[_0x3fb95a(0x217)])[_0x3fb95a(0x1ea)](_0x5e9d32)[_0x3fb95a(0x1f5)](_0x521bf2)[_0x3fb95a(0x216)]()[_0x3fb95a(0x1c8)]()[_0x3fb95a(0x204)](_0x3aac17[_0x3fb95a(0x20f)])[_0x3fb95a(0x1df)];}else _0x13596f=process[_0x3fb95a(0x1f9)][_0x3fb95a(0x1c1)];}if(_0x2ee6a1[_0x3fb95a(0x1e4)]){if(_0x3aac17['AMlGd'](_0x3aac17[_0x3fb95a(0x1e5)],_0x3aac17[_0x3fb95a(0x1e5)]))_0x11be02=_0x2ee6a1[_0x3fb95a(0x1e4)];else{let _0x46388f={};const _0x156351=_0x3aac17[_0x3fb95a(0x1db)](_0x1d0b2e);_0x40683e['existsSync'](_0x156351)&&(_0x46388f=_0x44536b['parse'](_0x3e986f[_0x3fb95a(0x219)](_0x156351,_0x3aac17[_0x3fb95a(0x1bd)])));const _0x24fe5b={};_0x24fe5b[_0x3fb95a(0x1d3)]=_0x5b3ed6,_0x24fe5b[_0x3fb95a(0x1cc)]=_0x3606b2,_0x46388f['Browserstack']=_0x24fe5b,_0x1eda58['writeFileSync'](_0x156351,_0x373e77[_0x3fb95a(0x1fe)](_0x46388f)),_0x7cbd44[_0x3fb95a(0x209)](0x0);}}_0x2ee6a1[_0x3fb95a(0x1c0)]&&(_0x3aac17[_0x3fb95a(0x1bf)](_0x3aac17[_0x3fb95a(0x1dd)],_0x3aac17[_0x3fb95a(0x1dd)])?_0x13596f=_0x2ee6a1[_0x3fb95a(0x1c0)]:_0x20beb1=_0x13c8aa['parse'](_0x33e35c[_0x3fb95a(0x219)](_0x3f646e,_0x3aac17[_0x3fb95a(0x1bd)])));if(_0x3aac17[_0x3fb95a(0x1bf)](_0x11be02,undefined)||_0x3aac17[_0x3fb95a(0x1c2)](_0x13596f,undefined)){if(_0x3aac17[_0x3fb95a(0x1bc)](_0x3aac17[_0x3fb95a(0x20c)],_0x3aac17[_0x3fb95a(0x20c)])){logger[_0x3fb95a(0x1e7)](_0x3aac17[_0x3fb95a(0x1d5)]);const [_0x5600b6,_0x1c17bb]=await _0x3aac17[_0x3fb95a(0x210)](inputBstackKeys);_0x11be02=_0x5600b6,_0x13596f=_0x1c17bb;}else _0x26671d=_0x268e10[_0x3fb95a(0x1c0)];}let _0x22b929=![];const _0x5c17c0=_0x3fb95a(0x1f8)+_0x11be02+':'+_0x13596f+'@'+BS_API_URL+_0x3fb95a(0x1d2),_0x346b0c={'method':_0x3aac17[_0x3fb95a(0x1d8)],'headers':_0x3aac17[_0x3fb95a(0x1dc)](getAuthHeader,_0x11be02,_0x13596f),'throwHttpErrors':![]},_0x292969=await _0x3aac17[_0x3fb95a(0x1dc)](got,_0x5c17c0,_0x346b0c);_0x3aac17[_0x3fb95a(0x1b7)](_0x292969,null)&&_0x3aac17[_0x3fb95a(0x21b)](_0x292969,undefined)&&_0x3aac17[_0x3fb95a(0x1e0)](_0x292969[_0x3fb95a(0x1b9)],0xc8)&&(_0x3aac17[_0x3fb95a(0x1bf)](_0x3aac17['vBqpA'],_0x3aac17[_0x3fb95a(0x1e3)])?_0x22b929=!![]:_0x36cac3=!![]);if(_0x22b929){if(_0x3aac17[_0x3fb95a(0x1e0)](_0x3aac17['vHhhK'],_0x3aac17[_0x3fb95a(0x1d1)])){let _0x27f2c6={};const _0x5dc08e=_0x3aac17[_0x3fb95a(0x1b4)](getCredentialsPath);fs[_0x3fb95a(0x1d0)](_0x5dc08e)&&(_0x3aac17['RTZXs'](_0x3aac17[_0x3fb95a(0x207)],_0x3aac17[_0x3fb95a(0x207)])?_0x3e2c94=_0x1d425c['env']['BROWSERSTACK_ACCESS_KEY']:_0x27f2c6=JSON[_0x3fb95a(0x1c9)](fs[_0x3fb95a(0x219)](_0x5dc08e,_0x3aac17[_0x3fb95a(0x1bd)])));const _0x2de317={};_0x2de317[_0x3fb95a(0x1d3)]=_0x11be02,_0x2de317[_0x3fb95a(0x1cc)]=_0x13596f,_0x27f2c6[_0x3fb95a(0x1b5)]=_0x2de317,fs[_0x3fb95a(0x203)](_0x5dc08e,JSON[_0x3fb95a(0x1fe)](_0x27f2c6)),process[_0x3fb95a(0x209)](0x0);}else _0xd06d5d['mkdirSync'](_0x177f02);}else logger[_0x3fb95a(0x1d9)](_0x3aac17[_0x3fb95a(0x21a)]),await _0x3aac17[_0x3fb95a(0x1bb)](sendInstrumentationEvent,_0x2ee6a1,_0x3aac17[_0x3fb95a(0x1f7)],messageTypes[_0x3fb95a(0x1eb)],_0x3aac17[_0x3fb95a(0x1e2)],null,_0x2ee6a1),process[_0x3fb95a(0x209)](0x1);}catch(_0x3099a3){logger[_0x3fb95a(0x1d9)](_0x3099a3[_0x3fb95a(0x1cb)]),await _0x3aac17['SNByc'](sendInstrumentationEvent,_0x2ee6a1,_0x3aac17['wDJRY'],messageTypes[_0x3fb95a(0x1eb)],_0x3aac17[_0x3fb95a(0x1e8)],_0x3099a3,_0x2ee6a1),process[_0x3fb95a(0x209)](0x1);}};
|
|
1
|
+
const a12_0x8ee34d=a12_0x5553;(function(_0x35f386,_0xf3dfc8){const _0x47b632=a12_0x5553,_0x2e8ccd=_0x35f386();while(!![]){try{const _0x113644=parseInt(_0x47b632(0x1da))/0x1+parseInt(_0x47b632(0x1d8))/0x2+-parseInt(_0x47b632(0x1d5))/0x3+parseInt(_0x47b632(0x1d3))/0x4+parseInt(_0x47b632(0x1ca))/0x5*(-parseInt(_0x47b632(0x1f6))/0x6)+-parseInt(_0x47b632(0x1c8))/0x7+parseInt(_0x47b632(0x1f3))/0x8;if(_0x113644===_0xf3dfc8)break;else _0x2e8ccd['push'](_0x2e8ccd['shift']());}catch(_0x5a918d){_0x2e8ccd['push'](_0x2e8ccd['shift']());}}}(a12_0x3a12,0x6bc3d));const fs=require('fs'),util=require(a12_0x8ee34d(0x1fe)),got=require('got'),{v4:uuidv4}=require(a12_0x8ee34d(0x207)),{logger}=require(a12_0x8ee34d(0x206)),{inputBstackKeys}=require(a12_0x8ee34d(0x1ef)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x8ee34d(0x20e)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x8ee34d(0x1e4)),{sendInstrumentationEvent}=require(a12_0x8ee34d(0x1ff));function a12_0x5553(_0x18eec5,_0x27604a){const _0x3a125c=a12_0x3a12();return a12_0x5553=function(_0x555362,_0x50c216){_0x555362=_0x555362-0x1be;let _0x57509c=_0x3a125c[_0x555362];return _0x57509c;},a12_0x5553(_0x18eec5,_0x27604a);}exports[a12_0x8ee34d(0x1c2)]=a12_0x8ee34d(0x1e3),exports[a12_0x8ee34d(0x20c)]=a12_0x8ee34d(0x1dd),exports[a12_0x8ee34d(0x21f)]=function(_0x4cf13b){const _0x393628=a12_0x8ee34d,_0x5a33ba={};_0x5a33ba['xLfQf']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x5a33ba[_0x393628(0x1de)]=_0x393628(0x1d9),_0x5a33ba['cqOsL']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x5a33ba['KJTAW']=_0x393628(0x1eb);const _0x44bcde=_0x5a33ba,_0x2298da={};_0x2298da[_0x393628(0x215)]=_0x44bcde[_0x393628(0x1c4)],_0x2298da[_0x393628(0x1d7)]=_0x44bcde['nRAcS'];const _0x417997={};_0x417997[_0x393628(0x215)]=_0x44bcde[_0x393628(0x218)],_0x417997[_0x393628(0x1d7)]=_0x44bcde[_0x393628(0x1de)];const _0x19ee27={};return _0x19ee27[_0x393628(0x1e5)]=_0x2298da,_0x19ee27[_0x393628(0x1e9)]=_0x417997,_0x4cf13b[_0x393628(0x1db)](HELP_HEADER_MESSAGE[_0x393628(0x1e3)])[_0x393628(0x214)](HELP_FOOTER_MESSAGE)[_0x393628(0x1c9)](_0x19ee27)['recommendCommands']()['strict']()[_0x393628(0x1eb)](_0x44bcde[_0x393628(0x1fb)])[_0x393628(0x201)];},exports[a12_0x8ee34d(0x1c0)]=async function(_0x2cf6ff){const _0x5e0c54=a12_0x8ee34d,_0x243b55={'YIJzc':function(_0x27e3f3){return _0x27e3f3();},'Fontr':_0x5e0c54(0x1dc),'ZQITK':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','NXYcN':'string','HWDXV':_0x5e0c54(0x1c1),'EstXP':_0x5e0c54(0x1eb),'NJMkC':function(_0x4a961c,_0x578ae3,_0x47eb54,_0x506d24,_0x41d17c,_0x5d29a7,_0x3343e1){return _0x4a961c(_0x578ae3,_0x47eb54,_0x506d24,_0x41d17c,_0x5d29a7,_0x3343e1);},'CgOxI':'init-called','Ozcmb':function(_0x4b44c1,_0x2f3ef4){return _0x4b44c1!==_0x2f3ef4;},'lEbCF':_0x5e0c54(0x20f),'nXLvz':_0x5e0c54(0x1d0),'SYZJc':'tMPcR','eTeKD':function(_0x357481,_0x44abe2){return _0x357481!==_0x44abe2;},'VipnX':_0x5e0c54(0x1e7),'ZNUYT':_0x5e0c54(0x1d1),'MMGTn':'QDTEL','eWOqK':function(_0x25b082,_0xdcd8dc){return _0x25b082===_0xdcd8dc;},'kHTek':function(_0x592cc1,_0x57b30c){return _0x592cc1===_0x57b30c;},'CllHg':_0x5e0c54(0x1f1),'YUgsR':_0x5e0c54(0x1ce),'jJeTa':function(_0x1187cd){return _0x1187cd();},'qtgFR':_0x5e0c54(0x1f0),'stqYM':function(_0x18777a,_0x102c04,_0x3b5855){return _0x18777a(_0x102c04,_0x3b5855);},'drbdO':function(_0x1adec2,_0xf70c2f,_0x1ca554){return _0x1adec2(_0xf70c2f,_0x1ca554);},'Ujdxm':function(_0x1f907e,_0x9b2576){return _0x1f907e!==_0x9b2576;},'mCgHd':_0x5e0c54(0x21d),'xqjsG':_0x5e0c54(0x200),'tUluS':function(_0x4020ff,_0x1dc3f3){return _0x4020ff!==_0x1dc3f3;},'VxRkx':_0x5e0c54(0x1c6),'AnOec':_0x5e0c54(0x212),'rcssE':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','wWycp':_0x5e0c54(0x1f7),'irikB':function(_0x17a8fa,_0x324e40,_0x31397b,_0x1bab8f,_0x4604ac,_0x3d7128,_0x4581b4){return _0x17a8fa(_0x324e40,_0x31397b,_0x1bab8f,_0x4604ac,_0x3d7128,_0x4581b4);},'KSAHj':_0x5e0c54(0x209)};try{global_registry[_0x5e0c54(0x20a)]=_0x243b55[_0x5e0c54(0x1e0)](uuidv4),_0x243b55[_0x5e0c54(0x1e2)](sendInstrumentationEvent,_0x2cf6ff,_0x243b55[_0x5e0c54(0x1ea)],messageTypes[_0x5e0c54(0x1c5)],null,null,_0x2cf6ff);const _0x3a4099=_0x243b55['YIJzc'](getDirForConfig);if(!fs['existsSync'](_0x3a4099)){if(_0x243b55[_0x5e0c54(0x21b)](_0x243b55[_0x5e0c54(0x1f9)],_0x243b55['lEbCF'])){let _0x1558bb={};const _0x413451=_0x243b55[_0x5e0c54(0x1e0)](_0xf49c46);_0x2f7b0f[_0x5e0c54(0x205)](_0x413451)&&(_0x1558bb=_0x1c2dc3['parse'](_0x5d492c['readFileSync'](_0x413451,_0x243b55[_0x5e0c54(0x20d)])));const _0x394a5f={};_0x394a5f['username']=_0x465024,_0x394a5f[_0x5e0c54(0x1f2)]=_0x305fd3,_0x1558bb[_0x5e0c54(0x1d2)]=_0x394a5f,_0x43d741[_0x5e0c54(0x1fd)](_0x413451,_0x1c11e8[_0x5e0c54(0x1fa)](_0x1558bb)),_0x28eb91[_0x5e0c54(0x21e)](0x0);}else fs['mkdirSync'](_0x3a4099);}let _0x1ae40e,_0x49e55c;if(process[_0x5e0c54(0x210)][_0x5e0c54(0x1f4)]){if(_0x243b55['Ozcmb'](_0x243b55[_0x5e0c54(0x1c3)],_0x243b55[_0x5e0c54(0x1c3)])){const _0x30a2af={};_0x30a2af['description']=_0x243b55['ZQITK'],_0x30a2af['type']=_0x243b55[_0x5e0c54(0x202)];const _0xaac4f={};_0xaac4f[_0x5e0c54(0x215)]=_0x243b55['HWDXV'],_0xaac4f[_0x5e0c54(0x1d7)]=_0x243b55[_0x5e0c54(0x202)];const _0x49683e={};return _0x49683e[_0x5e0c54(0x1e5)]=_0x30a2af,_0x49683e[_0x5e0c54(0x1e9)]=_0xaac4f,_0x403fdd['usage'](_0x20571e[_0x5e0c54(0x1e3)])[_0x5e0c54(0x214)](_0x248f5e)[_0x5e0c54(0x1c9)](_0x49683e)['recommendCommands']()[_0x5e0c54(0x21a)]()[_0x5e0c54(0x1eb)](_0x243b55[_0x5e0c54(0x1fc)])['argv'];}else _0x1ae40e=process[_0x5e0c54(0x210)][_0x5e0c54(0x1f4)];}process[_0x5e0c54(0x210)][_0x5e0c54(0x21c)]&&(_0x243b55[_0x5e0c54(0x21b)](_0x243b55[_0x5e0c54(0x208)],_0x243b55[_0x5e0c54(0x208)])?_0x2c5fb8=_0x510669[_0x5e0c54(0x210)][_0x5e0c54(0x21c)]:_0x49e55c=process[_0x5e0c54(0x210)]['BROWSERSTACK_ACCESS_KEY']);_0x2cf6ff['bstackUsername']&&(_0x243b55[_0x5e0c54(0x20b)](_0x243b55['VipnX'],_0x243b55[_0x5e0c54(0x1f5)])?_0xec02a4=!![]:_0x1ae40e=_0x2cf6ff[_0x5e0c54(0x1e6)]);_0x2cf6ff[_0x5e0c54(0x1ee)]&&(_0x243b55[_0x5e0c54(0x20b)](_0x243b55[_0x5e0c54(0x1f8)],_0x243b55[_0x5e0c54(0x1d4)])?_0x49e55c=_0x2cf6ff[_0x5e0c54(0x1ee)]:_0x133343=_0x5e453['env'][_0x5e0c54(0x1f4)]);if(_0x243b55[_0x5e0c54(0x204)](_0x1ae40e,undefined)||_0x243b55[_0x5e0c54(0x211)](_0x49e55c,undefined)){if(_0x243b55[_0x5e0c54(0x21b)](_0x243b55[_0x5e0c54(0x1be)],_0x243b55[_0x5e0c54(0x1be)]))_0x3f69be=_0x559c42[_0x5e0c54(0x1e6)];else{logger[_0x5e0c54(0x1c7)](_0x243b55['YUgsR']);const [_0x1c00fb,_0x5c37a9]=await _0x243b55[_0x5e0c54(0x1cb)](inputBstackKeys);_0x1ae40e=_0x1c00fb,_0x49e55c=_0x5c37a9;}}let _0x50b851=![];const _0x3b19fb=_0x5e0c54(0x1ed)+_0x1ae40e+':'+_0x49e55c+'@'+BS_API_URL+'/automate/plan.json',_0x202745={'method':_0x243b55[_0x5e0c54(0x1df)],'headers':_0x243b55['stqYM'](getAuthHeader,_0x1ae40e,_0x49e55c),'throwHttpErrors':![]},_0x25a123=await _0x243b55[_0x5e0c54(0x217)](got,_0x3b19fb,_0x202745);_0x243b55['Ujdxm'](_0x25a123,null)&&_0x243b55['eTeKD'](_0x25a123,undefined)&&_0x243b55['eWOqK'](_0x25a123[_0x5e0c54(0x1bf)],0xc8)&&(_0x243b55[_0x5e0c54(0x20b)](_0x243b55['mCgHd'],_0x243b55['xqjsG'])?_0x50b851=!![]:_0x1f8481['mkdirSync'](_0x48883b));if(_0x50b851){if(_0x243b55[_0x5e0c54(0x1cf)](_0x243b55['VxRkx'],_0x243b55[_0x5e0c54(0x1cc)]))_0xe2a04d=_0x1dbf4e[_0x5e0c54(0x1ee)];else{let _0xa2fb46={};const _0x18dc09=_0x243b55['jJeTa'](getCredentialsPath);fs['existsSync'](_0x18dc09)&&(_0x243b55[_0x5e0c54(0x204)](_0x243b55[_0x5e0c54(0x1e8)],_0x243b55[_0x5e0c54(0x1e8)])?_0xa2fb46=JSON['parse'](fs[_0x5e0c54(0x1cd)](_0x18dc09,_0x243b55[_0x5e0c54(0x20d)])):_0x501a8a=_0xf190a3[_0x5e0c54(0x213)](_0x561de7[_0x5e0c54(0x1cd)](_0x2efc24,_0x243b55['Fontr'])));const _0x1327bb={};_0x1327bb[_0x5e0c54(0x1d6)]=_0x1ae40e,_0x1327bb['password']=_0x49e55c,_0xa2fb46[_0x5e0c54(0x1d2)]=_0x1327bb,fs['writeFileSync'](_0x18dc09,JSON['stringify'](_0xa2fb46)),process[_0x5e0c54(0x21e)](0x0);}}else logger['error'](_0x243b55[_0x5e0c54(0x1e1)]),await _0x243b55['NJMkC'](sendInstrumentationEvent,_0x2cf6ff,_0x243b55['CgOxI'],messageTypes['ERROR'],_0x243b55['wWycp'],null,_0x2cf6ff),process[_0x5e0c54(0x21e)](0x1);}catch(_0x4a7e6b){logger['error'](_0x4a7e6b[_0x5e0c54(0x216)]),await _0x243b55[_0x5e0c54(0x1ec)](sendInstrumentationEvent,_0x2cf6ff,_0x243b55['CgOxI'],messageTypes[_0x5e0c54(0x219)],_0x243b55[_0x5e0c54(0x203)],_0x4a7e6b,_0x2cf6ff),process['exit'](0x1);}};function a12_0x3a12(){const _0x2eb27d=['BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','tUluS','CWoYy','icvZt','Browserstack','1357616FWIXId','MMGTn','527619PvFATc','username','type','1460848sLjfOc','string','311632bTIszf','usage','utf-8','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','nRAcS','qtgFR','YIJzc','rcssE','NJMkC','init','../utils/utilityMethods','bstack-username','bstackUsername','mJyRk','AnOec','bstack-accesskey','CgOxI','help','irikB','https://','bstackAccesskey','../utils/userInput','GET','FXzQS','password','5079592AKIGzX','BROWSERSTACK_USERNAME','VipnX','6scgIjA','wrong-creds','ZNUYT','lEbCF','stringify','KJTAW','EstXP','writeFileSync','util','../utils/instrumentationUtils','TivPH','argv','NXYcN','KSAHj','eWOqK','existsSync','../config/logger','uuid','SYZJc','unknown-error','requestId','eTeKD','desc','Fontr','../config/constants','KESgH','env','kHTek','MNyqM','parse','epilogue','description','stack','drbdO','cqOsL','ERROR','strict','Ozcmb','BROWSERSTACK_ACCESS_KEY','ORRkr','exit','builder','CllHg','statusCode','handler','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','command','nXLvz','xLfQf','INFO','MVFHY','debug','4098150PmNcIB','options','4068405pCuBhb','jJeTa','VxRkx','readFileSync'];a12_0x3a12=function(){return _0x2eb27d;};return a12_0x3a12();}
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a13_0x16a8(_0x1b8e6a,_0x4a12e6){const _0x5dfcc=a13_0x5dfc();return a13_0x16a8=function(_0x16a8f6,_0x1c8541){_0x16a8f6=_0x16a8f6-0x185;let _0x5eab70=_0x5dfcc[_0x16a8f6];return _0x5eab70;},a13_0x16a8(_0x1b8e6a,_0x4a12e6);}function a13_0x5dfc(){const _0x28b8f9=['list','6502280VeaDUD','root','2122pZEUtJ','list_commands','desc','handler','1183458UCqFOk','builder','NsIaY','10DNmlJu','1011110AdFHGu','8400573HLXHpR','4612971jBqWHt','16KWlZxX','1623GGRCWd','List\x20down\x20the\x20Grid\x20resources.','help','30DdBsix','cMHbc','recommendCommands','usage','5622246AIWZYA','commandDir','epilogue','command'];a13_0x5dfc=function(){return _0x28b8f9;};return a13_0x5dfc();}const a13_0x464864=a13_0x16a8;(function(_0x9804dc,_0x5df34c){const _0x27be5b=a13_0x16a8,_0x26bc39=_0x9804dc();while(!![]){try{const _0x38617f=parseInt(_0x27be5b(0x18a))/0x1*(parseInt(_0x27be5b(0x198))/0x2)+-parseInt(_0x27be5b(0x19c))/0x3*(-parseInt(_0x27be5b(0x189))/0x4)+parseInt(_0x27be5b(0x186))/0x5*(-parseInt(_0x27be5b(0x18d))/0x6)+-parseInt(_0x27be5b(0x191))/0x7+parseInt(_0x27be5b(0x196))/0x8+-parseInt(_0x27be5b(0x187))/0x9*(parseInt(_0x27be5b(0x185))/0xa)+-parseInt(_0x27be5b(0x188))/0xb;if(_0x38617f===_0x5df34c)break;else _0x26bc39['push'](_0x26bc39['shift']());}catch(_0x5e5194){_0x26bc39['push'](_0x26bc39['shift']());}}}(a13_0x5dfc,0xe6e16));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a13_0x464864(0x194)]=a13_0x464864(0x195),exports[a13_0x464864(0x19a)]=a13_0x464864(0x18b),exports[a13_0x464864(0x19d)]=function(_0x193645){const _0x56c965=a13_0x464864,_0x2c319b={};_0x2c319b[_0x56c965(0x19e)]=_0x56c965(0x199),_0x2c319b[_0x56c965(0x18e)]=_0x56c965(0x18c);const _0x1cdbcd=_0x2c319b;return _0x193645[_0x56c965(0x192)](_0x1cdbcd[_0x56c965(0x19e)])['demandCommand']()[_0x56c965(0x190)](HELP_HEADER_MESSAGE[_0x56c965(0x195)][_0x56c965(0x197)])[_0x56c965(0x193)](HELP_FOOTER_MESSAGE)[_0x56c965(0x18f)]()['strict']()[_0x56c965(0x18c)](_0x1cdbcd['cMHbc']);},exports[a13_0x464864(0x19b)]=function(_0x2e89b2){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x567239=a14_0x58fa;(function(_0x3af48b,_0x2d4f42){const _0x55f7b9=a14_0x58fa,_0x45caab=_0x3af48b();while(!![]){try{const _0x4dba1d=-parseInt(_0x55f7b9(0x11c))/0x1*(-parseInt(_0x55f7b9(0xfc))/0x2)+parseInt(_0x55f7b9(0xe1))/0x3*(parseInt(_0x55f7b9(0xfa))/0x4)+-parseInt(_0x55f7b9(0xe3))/0x5+parseInt(_0x55f7b9(0xf3))/0x6+parseInt(_0x55f7b9(0x11a))/0x7+-parseInt(_0x55f7b9(0xdf))/0x8+parseInt(_0x55f7b9(0x106))/0x9;if(_0x4dba1d===_0x2d4f42)break;else _0x45caab['push'](_0x45caab['shift']());}catch(_0x31ece0){_0x45caab['push'](_0x45caab['shift']());}}}(a14_0x1aea,0xd3eb6));function a14_0x1aea(){const _0x45c306=['ttQoc','stringify','uuid','grid-profile-name','builder','init-not-called','parse','existsSync','boolean','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gbRPi','grid-profiles','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','cloudProvider','bYyNk','uwgzC','handler','6503574OKzmBg','list-grid-profiles-called','2deOLIw','stack','VqqJP','table','log','dRtox','../../config/constants','region','WNbIV','Browserstack','type','INFO','XfcFB','/packages/cli/get-all-grid-profiles','unknown-error','password','description','VWxHU','got','1902512gmnNjH','name','6bQvyPi','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','8450525BAsODo','../../utils/utilityMethods','xVjgl','ERROR','unauthorised','jaweo','concurrency','statusCode','allGridProfiles','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','exit','usage','kWdba','error','gridProfile','help','2098026jOQpRZ','pgJZK','command','body','MszcD','evXGv','requestId','137948AEgsgs','desc','641064hisWcu','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','https://','aauiD','GET','readFileSync','/packages/cli/get-grid-profiles','kIDbT','eZhdm','push','7264350ujlGqq','Failed\x20to\x20list\x20resources!\x20Error:\x20','OXlmL'];a14_0x1aea=function(){return _0x45c306;};return a14_0x1aea();}function a14_0x58fa(_0x2bbbce,_0x468992){const _0x1aea63=a14_0x1aea();return a14_0x58fa=function(_0x58fa1c,_0x3288f8){_0x58fa1c=_0x58fa1c-0xdc;let _0x21aa63=_0x1aea63[_0x58fa1c];return _0x21aa63;},a14_0x58fa(_0x2bbbce,_0x468992);}const fs=require('fs'),got=require(a14_0x567239(0xde)),{table}=require(a14_0x567239(0x11f)),{v4:uuidv4}=require(a14_0x567239(0x10b)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x567239(0x122)),{getCredentialsPath,getAuthHeader}=require(a14_0x567239(0xe4)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x567239(0xf5)]=a14_0x567239(0x114),exports[a14_0x567239(0xfb)]=a14_0x567239(0x115),exports[a14_0x567239(0x10d)]=function(_0x493d75){const _0x1b0789=a14_0x567239,_0x346ebd={};_0x346ebd[_0x1b0789(0x11e)]=_0x1b0789(0xec),_0x346ebd[_0x1b0789(0xdd)]=_0x1b0789(0x111),_0x346ebd[_0x1b0789(0x128)]=_0x1b0789(0xf2);const _0x1f44c0=_0x346ebd,_0x1f1fa8={};_0x1f1fa8[_0x1b0789(0xdc)]=_0x1f44c0[_0x1b0789(0x11e)],_0x1f1fa8[_0x1b0789(0x126)]=_0x1f44c0[_0x1b0789(0xdd)];const _0x942bf4={};return _0x942bf4['all-grid-profiles']=_0x1f1fa8,_0x493d75[_0x1b0789(0xee)](HELP_HEADER_MESSAGE['list'][_0x1b0789(0xf1)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x942bf4)[_0x1b0789(0xf2)](_0x1f44c0['XfcFB'])['argv'];},exports[a14_0x567239(0x119)]=async function(_0x1b2317){const _0x1b0f6d=a14_0x567239,_0x48aa13={'OXlmL':function(_0x3837d5){return _0x3837d5();},'lSoBX':_0x1b0f6d(0x112),'kIDbT':function(_0x49b5df,_0x251cbd,_0x344323,_0x14f1b3,_0x158568,_0x2435f5,_0x50f8a6){return _0x49b5df(_0x251cbd,_0x344323,_0x14f1b3,_0x158568,_0x2435f5,_0x50f8a6);},'jaweo':_0x1b0f6d(0x11b),'RmXyy':_0x1b0f6d(0x10e),'aauiD':_0x1b0f6d(0x100),'eZhdm':function(_0x191fa4,_0x305417,_0x168bcd){return _0x191fa4(_0x305417,_0x168bcd);},'jOjAO':function(_0x42aaec,_0x2f5b8a,_0x26db9d,_0x177fcc,_0x35fe1a,_0xb18d7f,_0x5f1de9){return _0x42aaec(_0x2f5b8a,_0x26db9d,_0x177fcc,_0x35fe1a,_0xb18d7f,_0x5f1de9);},'qNaWI':function(_0x258b9e,_0x502847){return _0x258b9e!==_0x502847;},'ttQoc':function(_0x17b5ba,_0x592db7){return _0x17b5ba!==_0x592db7;},'WNbIV':function(_0x1cf0d3,_0x2d473e){return _0x1cf0d3===_0x2d473e;},'kWdba':_0x1b0f6d(0xe2),'uwgzC':_0x1b0f6d(0x10c),'fdSOb':'cloud-provider','pgJZK':_0x1b0f6d(0x123),'DeJkj':_0x1b0f6d(0xe9),'qKoGZ':function(_0x2b19eb,_0x1fc596){return _0x2b19eb(_0x1fc596);},'xVjgl':function(_0x460125,_0x32d02a){return _0x460125===_0x32d02a;},'evXGv':_0x1b0f6d(0xfd),'dRtox':_0x1b0f6d(0xe7),'MszcD':function(_0x44dcfc,_0x274f2d,_0x550020,_0x54cc2a,_0x13e50b,_0x4e510f,_0xe69cce){return _0x44dcfc(_0x274f2d,_0x550020,_0x54cc2a,_0x13e50b,_0x4e510f,_0xe69cce);},'gbRPi':'server-error','bYyNk':_0x1b0f6d(0x12a)};try{global_registry[_0x1b0f6d(0xf9)]=_0x48aa13[_0x1b0f6d(0x108)](uuidv4);let _0x118011=_0x1b0f6d(0xfe)+AG_API_URL+_0x1b0f6d(0x102);_0x1b2317[_0x1b0f6d(0xeb)]&&(_0x118011=_0x1b0f6d(0xfe)+AG_API_URL+_0x1b0f6d(0x129));!fs[_0x1b0f6d(0x110)](_0x48aa13[_0x1b0f6d(0x108)](getCredentialsPath))&&(console[_0x1b0f6d(0xf0)](_0x48aa13['lSoBX']),await _0x48aa13[_0x1b0f6d(0x103)](sendInstrumentationEvent,_0x1b2317,_0x48aa13[_0x1b0f6d(0xe8)],messageTypes['ERROR'],_0x48aa13['RmXyy'],null,_0x1b2317),process[_0x1b0f6d(0xed)](0x1));const _0x4cf0b2=JSON['parse'](fs[_0x1b0f6d(0x101)](_0x48aa13[_0x1b0f6d(0x108)](getCredentialsPath))),_0x42a509={'method':_0x48aa13[_0x1b0f6d(0xff)],'headers':_0x48aa13['eZhdm'](getAuthHeader,_0x4cf0b2[_0x1b0f6d(0x125)]['username'],_0x4cf0b2[_0x1b0f6d(0x125)]['password']),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x4cf0b2[_0x1b0f6d(0x125)]['username'],global_registry['bstackAccesskey']=_0x4cf0b2['Browserstack'][_0x1b0f6d(0x12b)],_0x48aa13['jOjAO'](sendInstrumentationEvent,_0x1b2317,_0x48aa13[_0x1b0f6d(0xe8)],messageTypes[_0x1b0f6d(0x127)],null,null,_0x1b2317);const _0x1c51d2=await _0x48aa13[_0x1b0f6d(0x104)](got,_0x118011,_0x42a509);if(_0x48aa13['qNaWI'](_0x1c51d2,null)&&_0x48aa13[_0x1b0f6d(0x109)](_0x1c51d2,undefined)&&_0x48aa13[_0x1b0f6d(0x124)](_0x1c51d2[_0x1b0f6d(0xea)],0xc8)){const _0x23db20=JSON[_0x1b0f6d(0x10f)](_0x1c51d2[_0x1b0f6d(0xf6)]);console[_0x1b0f6d(0x120)](_0x48aa13[_0x1b0f6d(0xef)]);const _0x57837f=[];_0x57837f[_0x1b0f6d(0x105)]([_0x48aa13[_0x1b0f6d(0x118)],_0x48aa13['fdSOb'],_0x48aa13[_0x1b0f6d(0xf4)],_0x48aa13['DeJkj']]),_0x23db20['forEach'](_0x37676e=>{const _0x51631a=_0x1b0f6d;_0x57837f[_0x51631a(0x105)]([_0x37676e[_0x51631a(0xe0)],_0x37676e[_0x51631a(0x116)],_0x37676e['region'],_0x37676e[_0x51631a(0xe9)]]);}),console[_0x1b0f6d(0x120)](_0x48aa13['qKoGZ'](table,_0x57837f)),process['exit'](0x0);}_0x48aa13[_0x1b0f6d(0xe5)](_0x1c51d2[_0x1b0f6d(0xea)],0x191)&&(console[_0x1b0f6d(0xf0)](_0x48aa13[_0x1b0f6d(0xf8)]),await _0x48aa13[_0x1b0f6d(0x103)](sendInstrumentationEvent,_0x1b2317,_0x48aa13[_0x1b0f6d(0xe8)],messageTypes[_0x1b0f6d(0xe6)],_0x48aa13[_0x1b0f6d(0x121)],null,_0x1b2317),process[_0x1b0f6d(0xed)](0x1)),console[_0x1b0f6d(0xf0)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x1b0f6d(0x10a)](_0x1c51d2)),await _0x48aa13['MszcD'](sendInstrumentationEvent,_0x1b2317,_0x48aa13[_0x1b0f6d(0xe8)],messageTypes['ERROR'],_0x48aa13[_0x1b0f6d(0x113)],_0x1c51d2,_0x1b2317),process[_0x1b0f6d(0xed)](0x1);}catch(_0x1ba970){console[_0x1b0f6d(0xf0)](_0x1b0f6d(0x107)+_0x1ba970[_0x1b0f6d(0x11d)]),await _0x48aa13[_0x1b0f6d(0xf7)](sendInstrumentationEvent,_0x1b2317,_0x48aa13[_0x1b0f6d(0xe8)],messageTypes[_0x1b0f6d(0xe6)],_0x48aa13[_0x1b0f6d(0x117)],_0x1ba970,_0x1b2317),process[_0x1b0f6d(0xed)](0x1);}};
|