browserstack-node-sdk 1.36.2 → 1.36.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 -7
- 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/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_before.setup.js +1 -1
- package/src/bin/launcher/launcher.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/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/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/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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.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/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/processHelper.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/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
- package/generated/sdk-messages-accessibility_grpc_pb.d.ts +0 -1
- package/generated/sdk-messages-accessibility_grpc_pb.js +0 -1
- package/generated/sdk-messages-accessibility_pb.d.ts +0 -279
- package/generated/sdk-messages-accessibility_pb.js +0 -2186
- package/generated/sdk-messages-ai_grpc_pb.d.ts +0 -1
- package/generated/sdk-messages-ai_grpc_pb.js +0 -1
- package/generated/sdk-messages-ai_pb.d.ts +0 -217
- package/generated/sdk-messages-ai_pb.js +0 -1650
- package/generated/sdk-messages-observability_grpc_pb.d.ts +0 -1
- package/generated/sdk-messages-observability_grpc_pb.js +0 -1
- package/generated/sdk-messages-observability_pb.d.ts +0 -178
- package/generated/sdk-messages-observability_pb.js +0 -1377
- package/generated/sdk-messages-percy_grpc_pb.d.ts +0 -1
- package/generated/sdk-messages-percy_grpc_pb.js +0 -1
- package/generated/sdk-messages-percy_pb.d.ts +0 -37
- package/generated/sdk-messages-percy_pb.js +0 -266
- package/generated/sdk-messages-testhub_grpc_pb.d.ts +0 -1
- package/generated/sdk-messages-testhub_grpc_pb.js +0 -1
- package/generated/sdk-messages-testhub_pb.d.ts +0 -39
- package/generated/sdk-messages-testhub_pb.js +0 -290
- package/generated/sdk-messages_grpc_pb.d.ts +0 -1
- package/generated/sdk-messages_grpc_pb.js +0 -1
- package/generated/sdk-messages_pb.d.ts +0 -1105
- package/generated/sdk-messages_pb.js +0 -8580
- package/generated/sdk_grpc_pb.d.ts +0 -113
- package/generated/sdk_grpc_pb.js +0 -609
- package/generated/sdk_pb.d.ts +0 -9
- package/generated/sdk_pb.js +0 -31
- package/src/bin/v2/TestInfo.js +0 -1
- package/src/bin/v2/browserstackCLI.js +0 -1
- package/src/bin/v2/cliUtils.js +0 -1
- package/src/bin/v2/customTagManager.js +0 -1
- package/src/bin/v2/eventDispatcher.js +0 -1
- package/src/bin/v2/framework/automationFramework.js +0 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +0 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +0 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +0 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +0 -1
- package/src/bin/v2/framework/testFramework.js +0 -1
- package/src/bin/v2/grpcClient.js +0 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +0 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +0 -1
- package/src/bin/v2/instances/trackedContext.js +0 -1
- package/src/bin/v2/instances/trackedInstance.js +0 -1
- package/src/bin/v2/modules/accessibilityModule.js +0 -1
- package/src/bin/v2/modules/baseModule.js +0 -1
- package/src/bin/v2/modules/observabilityModule.js +0 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +0 -1
- package/src/bin/v2/modules/testhubModule.js +0 -1
- package/src/bin/v2/state/automationFrameworkState.js +0 -1
- package/src/bin/v2/state/hookState.js +0 -1
- package/src/bin/v2/state/testFrameworkState.js +0 -1
- package/src/bin/v2/uploadAttachmentsManager.js +0 -1
- package/src/helpers/classLogger.js +0 -1
- package/src/helpers/test-orchestration/fail-fast/fileHelper.js +0 -1
- package/src/helpers/test-orchestration/fail-fast/jest.js +0 -1
- package/src/helpers/test-orchestration/fail-fast/requestUtils.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x559df8=a9_0x3e70;(function(_0x3ccade,_0xe081ed){const _0x35161c=a9_0x3e70,_0xdac511=_0x3ccade();while(!![]){try{const _0x169493=parseInt(_0x35161c(0x243))/0x1*(-parseInt(_0x35161c(0x2ae))/0x2)+parseInt(_0x35161c(0x39c))/0x3*(parseInt(_0x35161c(0x2c2))/0x4)+-parseInt(_0x35161c(0x262))/0x5*(parseInt(_0x35161c(0x1f9))/0x6)+parseInt(_0x35161c(0x2c6))/0x7+parseInt(_0x35161c(0x285))/0x8*(parseInt(_0x35161c(0x376))/0x9)+parseInt(_0x35161c(0x283))/0xa*(parseInt(_0x35161c(0x273))/0xb)+-parseInt(_0x35161c(0x210))/0xc;if(_0x169493===_0xe081ed)break;else _0xdac511['push'](_0xdac511['shift']());}catch(_0x281b54){_0xdac511['push'](_0xdac511['shift']());}}}(a9_0x4759,0x9c534));const fs=require('fs'),ws=require('ws'),path=require(a9_0x559df8(0x382)),yaml=require(a9_0x559df8(0x1fd)),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x559df8(0x34f)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x559df8(0x34c)),{logger}=require(a9_0x559df8(0x2b8)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x559df8(0x2a9)),{getCloudProviderObject}=require(a9_0x559df8(0x216)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x559df8(0x1ee)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x559df8(0x2ac)),{createK8sClient}=require(a9_0x559df8(0x34d)),{sendInstrumentationEvent}=require(a9_0x559df8(0x33a));function a9_0x3e70(_0x474dfc,_0x1404e8){const _0x4759e8=a9_0x4759();return a9_0x3e70=function(_0x3e7068,_0x37352b){_0x3e7068=_0x3e7068-0x1ed;let _0x137bfa=_0x4759e8[_0x3e7068];return _0x137bfa;},a9_0x3e70(_0x474dfc,_0x1404e8);}function a9_0x4759(){const _0xcc8e9d=['updateClusterAlreadyPresent','hcCiv','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','130bmjiQh','xqlbR','17656fXraNy','get-grid-url-null-response','UBfxO','Subnets:\x20','Browserstack','Skip\x20insecure\x20cert\x20verification.','WajcO','KEdtS','NQJdH','WYTAE','tjhgD','alreadyPresent','aihbZ','exit','body','BGlis','fchyM','BwOZW','Created\x20Hub\x20HA\x20resources','nGnhZ','JXtHy','info','sLoBe','Cluster:\x20','hub-ha-deployments-failed','eZNIM','Adding\x20Redis\x20deployment...','Ahkfm','JTpWj','bKokM','nEMlF','kafkaPassword','MeVzz','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Enabling\x20Hub\x20HA\x20flow','Oqkom','../../utils/utilityMethods','Cluster\x20','CRexR','../../utils/gridComponents','EUZct','2836zjrwbx','clusterName','MfEBU','command','Hhnkv','securityGroups','hoysA','clusterAutoUpgrade','debug','grid-profile','../../config/logger','hubVersion','Fwitg','bjrZN','hYUyV','cluster-autoupgrade','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','tZRbq','DjvrY','dMqMF','119236aPUjyF','browserstack','labels','hub-ha','7478317DDMoza','HWCyd','OWuha','pre-spawned-invalid-subnets','Tmmlg','instanceType','bitnami-redis.yaml','\x20using\x20\x27','CbBPx','oUfkA','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','CLI\x20run\x20finished:\x20','ByaiP','MljTm','toLowerCase','fQhty','XzKhR','requestId','dzcWD','BPCFr','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','YgEpp','createNamespace','Creating\x20Hub\x20HA\x20resources','\x20are\x20not\x20present\x20in\x20VPC:\x20','MueLZ','YIwuK','XPaBM','CwoAL','MJafw','pIhvD','jTYUs','wJyeV','mloxV','create','LnwaQ','MDUZX','xLQgt','Adding\x20Turboscale\x20Uploader\x20deployment...','Flag\x20to\x20enable\x20Hub\x20HA','serviceAccountName','baVrB','bitnami-kafka.yaml','password','OFSCJ','PQDEx','xSzyA','ykQfW','readNamespacedService','6|12|8|14|10|0|1|2|13|4|9|15|3|11|5|7','sendResourceDataToHST','UUmoZ','tPOcY','message','https://','CLI_RUN_FINISHED','XVoqn','bJPZq','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','LcNxC','readFileAsync','QASXJ','asNqD','Grid\x20profile\x20fetched\x20from\x20backend','jaIRb','Spawning\x20the\x20grid\x20','WbCZt','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','HybYL','Wteon','INFO','type','spec','managedBy','length','BMxGl','JjyYh','ingress-nginx','dNtRv','VPHPM','nDpIB','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','enableHubHa','lCvqn','3|7|6|2|1|4|5|0|8','isClusterPresent','dkNgM','minNodes','builder','oUjvl','maxNodes','createdBy','route53','argv','OWPwG','ZBZvK','skip-tls-cert-verify','Found\x20Subnets:\x20','uMvnd','isSubnetsValid','JpvBT','lYfCa','newCluster','region','Grid\x20spawned\x20on\x20the\x20cluster','\x20in\x20existing\x20cluster\x20\x27','ingress-nginx-controller','gjHSe','create-grid-checks-non-200','aWGRF','pre-spawned-subnets-not-selected','redisPassword','Will\x20be\x20spawning\x20the\x20grid\x20','CkoOM','turboscale-managed-identity-','iKNWM','../../utils/instrumentationUtils','gridName','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','zoBRo','AoZaF','JhTqg','eBYeS','hubHa','ZtDno','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','string','TJZSX','/packages/cli/create-grid-checks','UdiSd','wutTb','browserVersion','yERix','sXcgq','../../utils/webSocketUtils','../../utils/createk8sClient','get-grid-url-non-200','got','help','gridProfileId','grid-name','lBdsp','name','vsSRI','SDcmE','Hxqpe','GYOTf','true','RKbXL','options','LOG','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','BBOOY','templates','tsbcx','vhAnJ','desc','sMJmp','Deleting\x20the\x20CloudFormation\x20Stacks','awcXv','Spawning\x20Grid\x20on\x20the\x20Cluster','uploaderImageVersion','Adding\x20Websocket\x20listeners','FtbpK','handler','Ewmwi','defaultGridProfile','Grid\x20can\x20be\x20accessed\x20at:\x20','join','ApSHR','gridProfile','SKTfD','3|0|4|1|2','cloudProvider','tCwlx','ERROR','4734uFMnRk','Jydzy','NmGfK','existsSync','uploaderVersion','oJrwZ','loadAll','premium-rwo','Added\x20Kafka\x20deployment.','DDBdw','wzIUw','Spawning\x20grid\x20on\x20to\x20the\x20cluster','path','SKqtx','CeJid','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','init-not-called','metadata','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','kilgx','error','PJAKf','boolean','iIjrR','BBamV','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','isVPCPresent','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','annotations','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','wUxAz','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','CHAdH','getGridHostname','sWmrh','MGcCp','concurrency','hubHaNameSpace','15ymshEy','JAJen','clusterRegion','wEtbX','XdfnS','Found\x20VPC:\x20','ZNNPA','mJgza','zzyvr','tqKPE','LrIkg','private-grid','MEbNo','pMEgn','prespawned-cluster-args-not-passed','tCBJR','koyeq','XWOlm','Cluster\x20created\x20successfully','clusterAutoupgrade','statusCode','bstackUsername','nSazz','../../config/constants','Added\x20Redis\x20deployment.','vpc','connectionTimeout','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','RWlix','create-grid-checks-invalid-profile','mjTtH','AJLYy','VFLOs','isNewAWSCluster','60CxSHAM','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','wHlKn','includes','js-yaml','aYcdN','FSgNL','ydXFu','jucjG','TfpUb','turboscale-uploader.yaml','XJRvs','epilogue','grid','Adding\x20Kafka\x20deployment...','cluster-name','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','DUiZJ','Epyd5nXbRK','create-grid-checks-grid-already-exists','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','OvNJt','default','7009800RcZRTJ','://','plFom','gIuvz','ddlmK','TRfCh','../../cloudproviders/utils','TYdWC','description','template','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','jkjxq','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','parse','aIlOQ','username','aTMbN','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','chcaW','isPrivateGrid','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','usage','egZiM','NVpZg','pre-spawned-invalid-vpc','YoFhJ','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','XwaBs','Added\x20Turboscale\x20Uploader\x20deployment.','KvXmp','Added\x20Secret\x20Mapping','replace','tAjBh','<UsernamePlaceholder>','JNaFl','cloud-provider','gridProfiles','Adding\x20Secret\x20Mapping','stringify','kafkaUploader','KPBCf','NCOUM','efs-csi','QDaeW','DBFAV','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','FoJXh','aqlXr','setupNewCluster','WUQnl','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','283dbHvfe','gSBEn','ZCgkW','WKjTg','EoFMN','readFileSync','wTRAE','RIoKk','skipTlsCertVerify','KHizt','GMLgm','rTbFh','get-grid-url-auth-failed','oYAGt','oGtek','sendEventToBackend','SDIdK','s3bucket','PNJOm','cmWbL','dmHIT','ofbTm','ywNpT','split','lDHmr','GET','wFWvy','VKwVZ','auOCy','GTCaZ','MEsTh','520930shUHWj','IxxnC','Create\x20a\x20private/public\x20grid.','GoFdF','YlAKt','setupHubHa','WebSocket','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','zLTWP','XTuWI','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','uOufz','UOiLQ','user','delay','ZMVUP','stack','244838zVkrMK','0|4|2|3|1','uIIWi','CLI_RUN_STARTED','deleteCluster','yIkkx','KnkCQ','privateGrid','nYXbp','ZZpWy','IfbCC','bstackAccesskey'];a9_0x4759=function(){return _0xcc8e9d;};return a9_0x4759();}exports[a9_0x559df8(0x2b1)]=a9_0x559df8(0x206),exports[a9_0x559df8(0x362)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x559df8(0x31e)]=function(_0x315b89){const _0x3989f7=a9_0x559df8,_0x446e5e={};_0x446e5e[_0x3989f7(0x20a)]=_0x3989f7(0x221),_0x446e5e[_0x3989f7(0x25b)]='string',_0x446e5e[_0x3989f7(0x315)]=_0x3989f7(0x385),_0x446e5e[_0x3989f7(0x358)]=_0x3989f7(0x242),_0x446e5e[_0x3989f7(0x3a4)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x446e5e['jTYUs']=_0x3989f7(0x391),_0x446e5e[_0x3989f7(0x2fe)]=_0x3989f7(0x264),_0x446e5e[_0x3989f7(0x261)]='Skip\x20insecure\x20cert\x20verification.',_0x446e5e[_0x3989f7(0x2b4)]=_0x3989f7(0x38c),_0x446e5e[_0x3989f7(0x202)]='Flag\x20to\x20enable\x20Hub\x20HA',_0x446e5e[_0x3989f7(0x271)]='Flag\x20to\x20enable\x20cluster\x20auto-upgrade',_0x446e5e['xSzyA']=_0x3989f7(0x350);const _0x1f0ef8=_0x446e5e,_0x32e886={};_0x32e886['description']=_0x1f0ef8[_0x3989f7(0x20a)],_0x32e886['type']=_0x1f0ef8[_0x3989f7(0x25b)];const _0x4b214a={};_0x4b214a[_0x3989f7(0x218)]=_0x1f0ef8['VPHPM'],_0x4b214a[_0x3989f7(0x30d)]=_0x1f0ef8[_0x3989f7(0x25b)];const _0x593539={};_0x593539[_0x3989f7(0x218)]=_0x1f0ef8[_0x3989f7(0x358)],_0x593539[_0x3989f7(0x30d)]=_0x1f0ef8[_0x3989f7(0x25b)];const _0xa0516d={};_0xa0516d['description']=_0x1f0ef8['zzyvr'],_0xa0516d[_0x3989f7(0x30d)]=_0x1f0ef8['lDHmr'];const _0x35d592={};_0x35d592['description']=_0x1f0ef8[_0x3989f7(0x2e5)],_0x35d592[_0x3989f7(0x30d)]=_0x1f0ef8[_0x3989f7(0x25b)];const _0x405a31={};_0x405a31['description']=_0x1f0ef8[_0x3989f7(0x2fe)],_0x405a31['type']=_0x1f0ef8[_0x3989f7(0x25b)];const _0x44edd3={};_0x44edd3[_0x3989f7(0x218)]=_0x1f0ef8[_0x3989f7(0x261)],_0x44edd3[_0x3989f7(0x30d)]=_0x1f0ef8[_0x3989f7(0x2b4)],_0x44edd3['default']=![];const _0x2c1803={};_0x2c1803[_0x3989f7(0x218)]=_0x1f0ef8[_0x3989f7(0x202)],_0x2c1803[_0x3989f7(0x30d)]=_0x1f0ef8[_0x3989f7(0x2b4)],_0x2c1803[_0x3989f7(0x20f)]=![];const _0x4b5f9e={};_0x4b5f9e[_0x3989f7(0x218)]=_0x1f0ef8['ZMVUP'],_0x4b5f9e[_0x3989f7(0x30d)]=_0x1f0ef8['hoysA'],_0x4b5f9e['default']=![];const _0x3bb955={};return _0x3bb955[_0x3989f7(0x352)]=_0x32e886,_0x3bb955[_0x3989f7(0x2b7)]=_0x4b214a,_0x3bb955[_0x3989f7(0x208)]=_0x593539,_0x3bb955[_0x3989f7(0x233)]=_0xa0516d,_0x3bb955[_0x3989f7(0x32d)]=_0x35d592,_0x3bb955[_0x3989f7(0x3a7)]=_0x405a31,_0x3bb955[_0x3989f7(0x326)]=_0x44edd3,_0x3bb955[_0x3989f7(0x2c5)]=_0x2c1803,_0x3bb955[_0x3989f7(0x2bd)]=_0x4b5f9e,_0x315b89[_0x3989f7(0x225)](HELP_HEADER_MESSAGE[_0x3989f7(0x2e8)])[_0x3989f7(0x205)](HELP_FOOTER_MESSAGE)[_0x3989f7(0x35b)](_0x3bb955)[_0x3989f7(0x350)](_0x1f0ef8[_0x3989f7(0x2f4)])[_0x3989f7(0x323)];},exports[a9_0x559df8(0x36a)]=async function(_0x4046e7){const _0x93f400=a9_0x559df8,_0x40a7c5={'nEMlF':'https','RKbXL':_0x93f400(0x359),'FtbpK':_0x93f400(0x20f),'Tmmlg':_0x93f400(0x38f),'wutTb':function(_0x144851,_0x197f7c){return _0x144851(_0x197f7c);},'vsSRI':_0x93f400(0x2f7),'eBYeS':function(_0x4d46f1,_0x597920,_0x362474,_0x243b17,_0x381e41,_0x58c8a0,_0x52ff31,_0x30835c,_0x142a29,_0x165ce6,_0x16d730,_0x475e8c,_0x3774fb){return _0x4d46f1(_0x597920,_0x362474,_0x243b17,_0x381e41,_0x58c8a0,_0x52ff31,_0x30835c,_0x142a29,_0x165ce6,_0x16d730,_0x475e8c,_0x3774fb);},'aIlOQ':function(_0x5e42f1,_0x5bfcfb){return _0x5e42f1!==_0x5bfcfb;},'BPCFr':function(_0x4b4a31,_0x1e8360){return _0x4b4a31(_0x1e8360);},'dNtRv':_0x93f400(0x37d),'nYXbp':'warn','NCOUM':function(_0x5af800,_0x4d7fba){return _0x5af800===_0x4d7fba;},'dzcWD':_0x93f400(0x38a),'DOXzt':_0x93f400(0x221),'JTpWj':_0x93f400(0x344),'oRvhP':_0x93f400(0x385),'aqlXr':_0x93f400(0x242),'rAeTP':_0x93f400(0x309),'ddlmK':_0x93f400(0x391),'MueLZ':_0x93f400(0x264),'EoFMN':_0x93f400(0x28a),'CbBPx':_0x93f400(0x38c),'QASXJ':_0x93f400(0x2ed),'tjhgD':_0x93f400(0x269),'XPaBM':'help','XwaBs':'azurefile-csi-premium','Jydzy':'3|5|8|0|1|2|6|4|7','GoFdF':'CLI\x20run\x20started','DsGka':_0x93f400(0x274),'oGtek':_0x93f400(0x2a7),'HybYL':'UkRNzNYCBU','Ahkfm':_0x93f400(0x20b),'MJafw':_0x93f400(0x2c3),'WYTAE':'http','LJidQ':function(_0x29c795){return _0x29c795();},'SKTfD':function(_0x17f126){return _0x17f126();},'NQJdH':function(_0x1dfbc3,_0x315bf2){return _0x1dfbc3!==_0x315bf2;},'oUjvl':_0x93f400(0x3a2),'iIjrR':_0x93f400(0x34a),'aeOaS':_0x93f400(0x1f2),'UUmoZ':function(_0x43a063,_0xb8e381,_0x5d7d39,_0x530b31,_0x3bdabb,_0xa4b55e,_0x5c46c2){return _0x43a063(_0xb8e381,_0x5d7d39,_0x530b31,_0x3bdabb,_0xa4b55e,_0x5c46c2);},'OvNJt':'create-grid-called','TJZSX':_0x93f400(0x386),'wEtbX':function(_0x3716cb){return _0x3716cb();},'uMvnd':_0x93f400(0x231),'plFom':'<PasswordPlaceholder>','hYUyV':_0x93f400(0x368),'JNaFl':_0x93f400(0x284),'iKNWM':_0x93f400(0x389),'bNtRg':function(_0x574291,_0x314665){return _0x574291===_0x314665;},'tCBJR':_0x93f400(0x2a2),'ZCgkW':_0x93f400(0x388),'jaIRb':function(_0x37aa3b,_0x55accd,_0x460293,_0x77e0eb,_0xcb7ae1,_0x3ed5da,_0x51ca38,_0x276ae2){return _0x37aa3b(_0x55accd,_0x460293,_0x77e0eb,_0xcb7ae1,_0x3ed5da,_0x51ca38,_0x276ae2);},'Hxqpe':_0x93f400(0x3aa),'Ewmwi':function(_0x273a8e,_0x3ffef6){return _0x273a8e===_0x3ffef6;},'pIhvD':_0x93f400(0x26e),'PQDEx':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','CRexR':'non-aws-azure-cluster','wJyeV':function(_0x1acbf3,_0x3fac9a){return _0x1acbf3===_0x3fac9a;},'NVpZg':'LXWme','ywNpT':'RHkRq','AJLYy':function(_0x3ce5fd,_0x116a7a,_0x454a08,_0x442505,_0x24cd65,_0x268f28,_0x54079){return _0x3ce5fd(_0x116a7a,_0x454a08,_0x442505,_0x24cd65,_0x268f28,_0x54079);},'tPOcY':function(_0x1167f4,_0x5ee059){return _0x1167f4===_0x5ee059;},'YgEpp':_0x93f400(0x201),'tAjBh':_0x93f400(0x2ef),'tZRbq':function(_0x5a9c98,_0x244ca5){return _0x5a9c98===_0x244ca5;},'KEdtS':'eTrMc','wzIUw':_0x93f400(0x23c),'WKjTg':_0x93f400(0x25c),'KHizt':function(_0x3bc661,_0x53c4eb,_0xa36b61){return _0x3bc661(_0x53c4eb,_0xa36b61);},'LcNxC':_0x93f400(0x25f),'DjvrY':function(_0x2f360b,_0x5f4f63){return _0x2f360b===_0x5f4f63;},'chcaW':_0x93f400(0x2ff),'xuhhD':_0x93f400(0x249),'Wteon':function(_0x239ed2,_0x356993){return _0x239ed2===_0x356993;},'fchyM':'oRZVg','dkNgM':_0x93f400(0x383),'cmWbL':_0x93f400(0x2a6),'zBNDl':'create-grid-checks-null-response','awcXv':function(_0x551a32,_0x23e8eb){return _0x551a32===_0x23e8eb;},'VKwVZ':function(_0x3cc8e5,_0x531f30){return _0x3cc8e5===_0x531f30;},'aihbZ':'SAsHD','CkoOM':_0x93f400(0x21a),'sXcgq':'create-grid-checks-auth-failed','nDpIB':function(_0xc5124,_0x515bdf){return _0xc5124!==_0x515bdf;},'ZZpWy':function(_0x17e6c9,_0x38ab51){return _0x17e6c9!==_0x38ab51;},'jkjxq':_0x93f400(0x2ba),'uOufz':_0x93f400(0x278),'ofbTm':function(_0x4889db,_0x5d0c8a,_0x256ccb,_0x3a0ea9,_0x42b00a,_0x5a3b66,_0x45ecf7,_0x17e0f7){return _0x4889db(_0x5d0c8a,_0x256ccb,_0x3a0ea9,_0x42b00a,_0x5a3b66,_0x45ecf7,_0x17e0f7);},'VgVTo':_0x93f400(0x332),'uIIWi':_0x93f400(0x305),'sLoBe':function(_0x2dc591,_0x43eb2c){return _0x2dc591===_0x43eb2c;},'oUfkA':'VhHzx','cQsUj':'FUvus','sWmrh':_0x93f400(0x20c),'dGPkU':function(_0x3632b9,_0x3d53a8){return _0x3632b9===_0x3d53a8;},'OFSCJ':_0x93f400(0x260),'JpvBT':_0x93f400(0x331),'JXtHy':function(_0x152681,_0x2cf454){return _0x152681===_0x2cf454;},'WUQnl':'ZpmSl','YcWRs':_0x93f400(0x372),'eZNIM':function(_0x2f5499,_0x14997b){return _0x2f5499===_0x14997b;},'ZtDno':function(_0x1c4b8d,_0x4d7dbf){return _0x1c4b8d===_0x4d7dbf;},'JhTqg':function(_0x47d6e2,_0xcd7094){return _0x47d6e2===_0xcd7094;},'lCvqn':_0x93f400(0x27d),'sDtAZ':_0x93f400(0x384),'XdfnS':_0x93f400(0x378),'xLQgt':_0x93f400(0x209),'EUZct':_0x93f400(0x1f4),'OWPwG':function(_0x48e526,_0x195ca8){return _0x48e526===_0x195ca8;},'ykQfW':function(_0x388506,_0x3f2bc0){return _0x388506===_0x3f2bc0;},'pMEgn':_0x93f400(0x38e),'IxxnC':function(_0x13fdd8,_0x2bffd6){return _0x13fdd8===_0x2bffd6;},'tsbcx':'tbCiM','VFLOs':function(_0x4d18c4,_0x2326bd){return _0x4d18c4!==_0x2326bd;},'dmHIT':_0x93f400(0x347),'KPBCf':function(_0xf51175,_0x55d92a){return _0xf51175===_0x55d92a;},'WajcO':_0x93f400(0x394),'MEbNo':_0x93f400(0x204),'gSBEn':function(_0x40c4df,_0x3e00d3){return _0x40c4df!==_0x3e00d3;},'oJrwZ':function(_0x3fa3ef,_0x4047f8){return _0x3fa3ef===_0x4047f8;},'rTbFh':'NLIdV','IHPzb':_0x93f400(0x396),'Hhnkv':_0x93f400(0x215),'ApSHR':'hOUqc','zPDbq':_0x93f400(0x2ea),'Bbrxo':'XPzKE','BMxGl':_0x93f400(0x31a),'XzKhR':function(_0x74f2e8,_0x4539e6,_0x5e31ca,_0x951fd3,_0x2b032d,_0x249a69,_0x54b48c){return _0x74f2e8(_0x4539e6,_0x5e31ca,_0x951fd3,_0x2b032d,_0x249a69,_0x54b48c);},'JjyYh':_0x93f400(0x1fe),'YlAKt':'stKFc','DDBdw':function(_0xdb397f,_0x2edcb7){return _0xdb397f===_0x2edcb7;},'gIuvz':function(_0x5e59d6,_0x3148f8){return _0x5e59d6!==_0x3148f8;},'SDIdK':_0x93f400(0x1f3),'YIwuK':_0x93f400(0x2b0),'RRyVH':_0x93f400(0x22d),'nGnhZ':_0x93f400(0x23d),'CwoAL':function(_0x1d90f4,_0x551933){return _0x1d90f4!=_0x551933;},'KCuUp':function(_0x41b775,_0x2bce83){return _0x41b775!=_0x2bce83;},'zLTWP':function(_0x4c85e0,_0x47e409){return _0x4c85e0>_0x47e409;},'PNJOm':_0x93f400(0x282),'SDcmE':function(_0x695eac,_0x4c748d,_0x172e42,_0x573b6e,_0xe2357e,_0x553e8d,_0x278112,_0x1b6597){return _0x695eac(_0x4c748d,_0x172e42,_0x573b6e,_0xe2357e,_0x553e8d,_0x278112,_0x1b6597);},'JAJen':_0x93f400(0x334),'oVtun':_0x93f400(0x26c),'MDnHC':_0x93f400(0x228),'YoFhJ':function(_0x212446,_0x31f01b,_0x1bf21d,_0x1ba56d,_0x3493f7,_0x20bb8a,_0x1a5323,_0x4be13a){return _0x212446(_0x31f01b,_0x1bf21d,_0x1ba56d,_0x3493f7,_0x20bb8a,_0x1a5323,_0x4be13a);},'LnwaQ':_0x93f400(0x2c9),'hxqEx':'3|0|2|4|1','zoBRo':_0x93f400(0x21c),'lYfCa':_0x93f400(0x3ae),'LrIkg':function(_0x145e54,_0xf908b2){return _0x145e54===_0xf908b2;},'tCwlx':function(_0x27b2c4,_0x92fba1,_0xdedbd){return _0x27b2c4(_0x92fba1,_0xdedbd);},'vrQbG':_0x93f400(0x2dd),'koyeq':function(_0x14be45,_0x269faa,_0x25a8cc){return _0x14be45(_0x269faa,_0x25a8cc);},'wFWvy':function(_0x5307c7,_0x4fdc1c,_0x4e0809){return _0x5307c7(_0x4fdc1c,_0x4e0809);},'mJgza':_0x93f400(0x235),'FoJXh':'../..','OWuha':_0x93f400(0x35f),'UBfxO':'hubharesources','XTuWI':'browserstack-secret.yaml','GMLgm':'utf-8','BBOOY':function(_0x1f86e7,_0x3bf52c,_0x40cd08){return _0x1f86e7(_0x3bf52c,_0x40cd08);},'vFfIm':_0x93f400(0x22e),'RIoKk':_0x93f400(0x23a),'qMOgv':function(_0x34a1e3,_0x3345dd){return _0x34a1e3===_0x3345dd;},'uWVmP':function(_0x338671,_0x4bd5d8){return _0x338671===_0x4bd5d8;},'PJAKf':_0x93f400(0x29f),'BNFRR':_0x93f400(0x2cc),'FSgNL':function(_0x1f181e,_0x2e60fd,_0x1ee483){return _0x1f181e(_0x2e60fd,_0x1ee483);},'mjTtH':_0x93f400(0x1ef),'MljTm':_0x93f400(0x207),'oYAGt':_0x93f400(0x2f0),'WbCZt':_0x93f400(0x37e),'HWCyd':_0x93f400(0x2ec),'IQhyl':_0x93f400(0x203),'OxtQU':_0x93f400(0x22c),'mloxV':_0x93f400(0x297),'TYdWC':'Hub\x20HA\x20setup\x20completed\x20successfully.','XWOlm':'2|0|1|4|3','XRUzQ':function(_0x306570,_0x1c4bc4,_0x386c2c,_0x3fc02c,_0x1fa31a,_0x107e61,_0x576b55,_0x35e436){return _0x306570(_0x1c4bc4,_0x386c2c,_0x3fc02c,_0x1fa31a,_0x107e61,_0x576b55,_0x35e436);},'hcCiv':_0x93f400(0x29d),'BwOZW':'Creating\x20namespace','ByaiP':_0x93f400(0x289),'bRLYK':'Namespace\x20Created','wHlKn':'Namespace\x20created','egZiM':_0x93f400(0x381),'vhAnJ':_0x93f400(0x366),'aTMbN':function(_0x1e838e,_0x24aa34,_0x4297d3,_0x237c53,_0x340ab6,_0x83f965,_0x5a05b0,_0x1d0865,_0x3a03d1,_0xbe1bbe,_0x342119){return _0x1e838e(_0x24aa34,_0x4297d3,_0x237c53,_0x340ab6,_0x83f965,_0x5a05b0,_0x1d0865,_0x3a03d1,_0xbe1bbe,_0x342119);},'lBdsp':_0x93f400(0x32e),'dMqMF':_0x93f400(0x2d0),'bjrZN':function(_0x1acbc0,_0x361d7d,_0x3f22d6,_0x80dcf2,_0x538cbb){return _0x1acbc0(_0x361d7d,_0x3f22d6,_0x80dcf2,_0x538cbb);},'MeVzz':'private-ingress-nginx-controller','BGlis':_0x93f400(0x330),'AoZaF':_0x93f400(0x313),'asNqD':function(_0x5acdde,_0x395617,_0x58036a){return _0x5acdde(_0x395617,_0x58036a);},'Oqkom':_0x93f400(0x281),'fQhty':function(_0x413eeb,_0x8e76d5,_0x109064,_0x3c2ddf,_0x1d8786,_0x4905d2,_0x4e1379,_0x473841){return _0x413eeb(_0x8e76d5,_0x109064,_0x3c2ddf,_0x1d8786,_0x4905d2,_0x4e1379,_0x473841);},'sMJmp':_0x93f400(0x286),'ydXFu':_0x93f400(0x1fa),'KnkCQ':function(_0x530a01,_0x4f3197,_0x117896,_0xc80025,_0x15c654,_0x448ae5,_0x748bd0,_0x1ac02c){return _0x530a01(_0x4f3197,_0x117896,_0xc80025,_0x15c654,_0x448ae5,_0x748bd0,_0x1ac02c);},'nSazz':_0x93f400(0x24f),'QDaeW':function(_0x1c8210,_0xf1a34c){return _0x1c8210!==_0xf1a34c;},'MGcCp':_0x93f400(0x34e),'tqKPE':function(_0x3575ca,_0x123580){return _0x3575ca===_0x123580;},'ZBZvK':_0x93f400(0x364),'AqgeM':function(_0x4ba0a0,_0x47df3c,_0xc0e955,_0x218c21,_0x190e9d,_0x2f1abe){return _0x4ba0a0(_0x47df3c,_0xc0e955,_0x218c21,_0x190e9d,_0x2f1abe);},'aWGRF':'grid-spawning-failed'};let _0x40d8df=![],_0x4f2cdf=![],_0x19f466,_0x52ed9f,_0x2668b8,_0x1a3123,_0x2f6b0d,_0x184a17,_0x6363ea,_0x3d387d,_0xea2183,_0x5b3ddc,_0x25cc66,_0x389e93,_0x474783,_0x344092,_0x445b81=0x1,_0x45a4b7=0xe;try{global_registry[_0x93f400(0x2d7)]=_0x40a7c5['LJidQ'](uuidv4),global_registry[_0x93f400(0x223)]=![];if(!fs[_0x93f400(0x379)](_0x40a7c5[_0x93f400(0x371)](getCredentialsPath))){if(_0x40a7c5['NQJdH'](_0x40a7c5[_0x93f400(0x31f)],_0x40a7c5[_0x93f400(0x38d)]))console[_0x93f400(0x38a)](_0x40a7c5['aeOaS']),await _0x40a7c5[_0x93f400(0x2f9)](sendInstrumentationEvent,_0x4046e7,_0x40a7c5[_0x93f400(0x20e)],messageTypes['ERROR'],_0x40a7c5[_0x93f400(0x345)],null,_0x4046e7),process[_0x93f400(0x292)](0x1);else throw new _0x3d515b('Cluster\x20'+_0xdc86a3+_0x93f400(0x33c));}await _0x40a7c5[_0x93f400(0x2f9)](sendInstrumentationEvent,_0x4046e7,_0x40a7c5['OvNJt'],messageTypes[_0x93f400(0x30c)],null,null,_0x4046e7);const _0x4d2fd1=JSON['parse'](fs[_0x93f400(0x248)](_0x40a7c5[_0x93f400(0x39f)](getCredentialsPath)));global_registry[_0x93f400(0x3b1)]=_0x4d2fd1[_0x93f400(0x289)][_0x93f400(0x21f)],global_registry[_0x93f400(0x27e)]=_0x4d2fd1['Browserstack']['password'];const _0x198a84=WS_ENDPOINT['replace'](_0x40a7c5[_0x93f400(0x328)],_0x4d2fd1[_0x93f400(0x289)][_0x93f400(0x21f)])['replace'](_0x40a7c5[_0x93f400(0x212)],_0x4d2fd1[_0x93f400(0x289)][_0x93f400(0x2f1)]),_0xf2ddc4={};_0xf2ddc4[_0x93f400(0x268)]=ws,_0xf2ddc4[_0x93f400(0x1f1)]=0x36ee80,_0x389e93=new ReconnectingWebSocket(_0x198a84,[],_0xf2ddc4),logger[_0x93f400(0x2b6)](_0x40a7c5[_0x93f400(0x2bc)]),webSocketUtils['addListeners'](_0x389e93,_0x4046e7[_0x93f400(0x26f)],_0x4046e7[_0x93f400(0x2f1)]);const _0x329fb7=_0x4046e7['gridName']||DEFAULT_GRID_NAME;if(_0x4046e7[_0x93f400(0x2af)]||_0x4046e7[_0x93f400(0x373)]||_0x4046e7[_0x93f400(0x32d)]){if(_0x40a7c5[_0x93f400(0x28d)](_0x40a7c5[_0x93f400(0x232)],_0x40a7c5[_0x93f400(0x339)])){!(_0x4046e7['clusterName']&&_0x4046e7[_0x93f400(0x373)]&&_0x4046e7[_0x93f400(0x32d)])&&(_0x40a7c5['bNtRg'](_0x40a7c5[_0x93f400(0x3ab)],_0x40a7c5['tCBJR'])?(_0x19f466=_0x40a7c5[_0x93f400(0x245)],await _0x40a7c5[_0x93f400(0x306)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes['ERROR'],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x357)],_0x40a7c5[_0x93f400(0x2d8)]),logger[_0x93f400(0x38a)](_0x19f466),process['exit'](0x1)):(_0x3c85b4=_0x34dd39[_0x93f400(0x322)],_0x29760c=_0x40a7c5[_0x93f400(0x2a3)]));if(![AWS,AZURE,GCP][_0x93f400(0x1fc)](_0x4046e7[_0x93f400(0x373)][_0x93f400(0x2d4)]())){if(_0x40a7c5['Ewmwi'](_0x40a7c5[_0x93f400(0x2e4)],_0x40a7c5['pIhvD']))_0x19f466=_0x40a7c5[_0x93f400(0x2f3)],await _0x40a7c5[_0x93f400(0x306)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x2ab)],_0x40a7c5[_0x93f400(0x2d8)]),logger['error'](_0x19f466),process[_0x93f400(0x292)](0x1);else{const _0x330c6={'azure.workload.identity/use':_0x40a7c5['RKbXL'],..._0x12dc58[0x0][_0x93f400(0x30e)][_0x93f400(0x219)][_0x93f400(0x387)][_0x93f400(0x2c4)]};_0x113eb9[0x0][_0x93f400(0x30e)][_0x93f400(0x219)][_0x93f400(0x387)][_0x93f400(0x2c4)]=_0x330c6,_0x4513c5[0x0][_0x93f400(0x30e)][_0x93f400(0x219)][_0x93f400(0x30e)][_0x93f400(0x2ee)]=_0x40a7c5['FtbpK'];}}_0x4046e7[_0x93f400(0x27a)]&&_0x40a7c5[_0x93f400(0x2e6)](_0x4046e7[_0x93f400(0x27a)][_0x93f400(0x2d4)](),_0x40a7c5[_0x93f400(0x35a)])&&(_0x40a7c5[_0x93f400(0x28d)](_0x40a7c5[_0x93f400(0x227)],_0x40a7c5[_0x93f400(0x259)])?global_registry['isPrivateGrid']=!![]:(_0x5ea44c[_0x93f400(0x32d)]=_0x482b83,_0x303d71['cloudProvider']=_0x52ab91,_0x5709e5['newCluster']=!![],_0xa037e[_0x93f400(0x2b5)]=_0x5ec4bf[_0x93f400(0x3af)]));global_registry[_0x93f400(0x373)]=_0x4046e7['cloudProvider'],global_registry[_0x93f400(0x39e)]=_0x4046e7['region'],global_registry[_0x93f400(0x2af)]=_0x4046e7[_0x93f400(0x2af)];const _0x43dcc2=await _0x40a7c5[_0x93f400(0x1f6)](getCloudProviderObject,_0x4046e7[_0x93f400(0x373)],_0x4046e7[_0x93f400(0x2af)],_0x329fb7,_0x389e93,webSocketUtils,_0x4046e7),_0x27794e=await _0x43dcc2[_0x93f400(0x31b)]();!_0x27794e?_0x40a7c5['tPOcY'](_0x40a7c5[_0x93f400(0x2db)],_0x40a7c5[_0x93f400(0x230)])?_0x175232=!![]:(logger[_0x93f400(0x29a)](_0x93f400(0x29c)+_0x4046e7[_0x93f400(0x2af)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x40d8df=![],_0x4f2cdf=!![]):_0x40a7c5[_0x93f400(0x2bf)](_0x40a7c5['KEdtS'],_0x40a7c5[_0x93f400(0x28c)])?_0x40d8df=!![]:_0x42a737['info'](_0x40a7c5[_0x93f400(0x2ca)]),_0x2668b8=_0x4046e7[_0x93f400(0x2af)],_0x52ed9f=_0x4046e7['cloudProvider'][_0x93f400(0x2d4)](),_0x1a3123=_0x4046e7['region'];}else _0x5d59ad[_0x93f400(0x38a)](_0x93f400(0x2da)+_0xd00380+'\x20\x0a'+_0xe4c658[_0x93f400(0x236)](_0x174777['stack']));}else _0x4046e7[_0x93f400(0x370)]&&(_0x40a7c5['bNtRg'](_0x40a7c5[_0x93f400(0x380)],_0x40a7c5[_0x93f400(0x380)])?global_registry[_0x93f400(0x370)]=_0x4046e7[_0x93f400(0x370)]:_0x10dad8[_0x93f400(0x29a)](_0x93f400(0x327)+_0x44c3e9[_0x93f400(0x236)](_0x2dee3e)+'\x20'));global_registry[_0x93f400(0x33b)]=_0x4046e7[_0x93f400(0x33b)];const _0x1b37c7={'method':_0x40a7c5[_0x93f400(0x246)],'headers':_0x40a7c5['KHizt'](getAuthHeader,_0x4d2fd1['Browserstack']['username'],_0x4d2fd1[_0x93f400(0x289)][_0x93f400(0x2f1)]),'throwHttpErrors':![]},_0x55cfda={};_0x55cfda[_0x93f400(0x33b)]=_0x329fb7;const _0x30133c=_0x55cfda;_0x4f2cdf&&(_0x40a7c5[_0x93f400(0x28d)](_0x40a7c5[_0x93f400(0x301)],_0x40a7c5[_0x93f400(0x301)])?_0x40a7c5[_0x93f400(0x348)](_0x1798e5,_0x331bd9[_0x93f400(0x37a)]):(_0x30133c[_0x93f400(0x32d)]=_0x1a3123,_0x30133c['cloudProvider']=_0x52ed9f,_0x30133c[_0x93f400(0x32c)]=!![],_0x30133c[_0x93f400(0x2b5)]=_0x4046e7[_0x93f400(0x3af)]));if(_0x4046e7[_0x93f400(0x3af)]){if(_0x40a7c5[_0x93f400(0x2c0)](_0x40a7c5[_0x93f400(0x222)],_0x40a7c5['xuhhD'])){const _0x1ed075=_0x40a7c5[_0x93f400(0x355)][_0x93f400(0x25a)]('|');let _0x1e441c=0x0;while(!![]){switch(_0x1ed075[_0x1e441c++]){case'0':_0x34d6ee=null;continue;case'1':_0x4614d0=null;continue;case'2':_0x18b64b=null;continue;case'3':_0x4b61b5=_0x4bead5[_0x93f400(0x349)];continue;case'4':_0x27a12a=_0x4dbadd['minNodes'];continue;case'5':_0x40a7c5[_0x93f400(0x340)](_0x179374,_0x241c35,_0x4a5374,_0x2bedde,_0x488db7,_0x4e8f8e,_0x5d3ef7,_0x13bd7d,_0x1ab32b,_0x59821a,_0xcdc420,_0x568f15,_0x304d56[_0x93f400(0x3af)]);continue;case'6':_0x3cd7ab=_0x93f400(0x343)+_0x29b982;continue;case'7':_0x374d16[_0x93f400(0x318)]&&_0x40a7c5['wutTb'](_0x176e93,_0x5a2025[_0x93f400(0x237)]);continue;case'8':const _0x14a9a3={};_0x14a9a3['type']=_0x33b74d[_0x93f400(0x35c)],_0x14a9a3['message']=_0x466a4b,_0x448d60['sendEventToBackend'](_0x39bd43,_0x14a9a3);continue;case'9':_0x505405=_0xeffae2[_0x93f400(0x320)];continue;case'10':_0x1aa9fe=_0x4f560a[_0x93f400(0x2cb)];continue;case'11':_0x40a7c5[_0x93f400(0x21e)](_0x39b0a4['privateGrid'],_0x2f913a)&&_0x332fc9['privateGrid']&&(_0x332fe5[_0x93f400(0x223)]=!![]);continue;case'12':_0xca2e95[_0x93f400(0x29a)](_0x5d794d);continue;case'13':_0x1fb6c4=_0x21caf6[_0x93f400(0x254)];continue;case'14':_0x35f268=_0x267c86[_0x93f400(0x39a)];continue;case'15':_0x4567e3=_0x1454ee[_0x93f400(0x2b9)];continue;}break;}}else logger[_0x93f400(0x29a)](_0x40a7c5['Tmmlg']);}const _0x321d7a=_0x93f400(0x2fc)+AG_API_URL+_0x93f400(0x346),_0xf66340={'searchParams':_0x30133c,'throwHttpErrors':![],..._0x1b37c7},_0x544828=_0xf66340,_0x1a12d1=await _0x40a7c5[_0x93f400(0x24c)](got,_0x321d7a,_0x544828);(_0x40a7c5[_0x93f400(0x36b)](_0x1a12d1,null)||_0x40a7c5[_0x93f400(0x36b)](_0x1a12d1,undefined))&&(_0x40a7c5[_0x93f400(0x30b)](_0x40a7c5[_0x93f400(0x295)],_0x40a7c5[_0x93f400(0x31c)])?_0x40a7c5[_0x93f400(0x2d9)](_0xfbbf5,_0x44664d[_0x93f400(0x237)]):(_0x19f466=_0x40a7c5[_0x93f400(0x256)],await _0x40a7c5['jaIRb'](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5['zBNDl'],_0x40a7c5['dzcWD']),logger[_0x93f400(0x38a)](_0x19f466),process[_0x93f400(0x292)](0x1)));_0x40a7c5[_0x93f400(0x365)](_0x1a12d1[_0x93f400(0x3b0)],0x191)&&(_0x40a7c5['VKwVZ'](_0x40a7c5[_0x93f400(0x291)],_0x40a7c5[_0x93f400(0x291)])?(_0x19f466=_0x40a7c5[_0x93f400(0x337)],await _0x40a7c5[_0x93f400(0x306)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes['ERROR'],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x34b)],_0x40a7c5['dzcWD']),logger['error'](_0x19f466),process['exit'](0x1)):_0x351003[_0x93f400(0x223)]=!![]);_0x40a7c5[_0x93f400(0x316)](_0x1a12d1[_0x93f400(0x3b0)],0xc8)&&(_0x40a7c5[_0x93f400(0x27c)](_0x40a7c5[_0x93f400(0x21b)],_0x40a7c5[_0x93f400(0x26d)])?(_0x19f466=_0x93f400(0x395)+JSON[_0x93f400(0x236)](_0x1a12d1[_0x93f400(0x293)]),await _0x40a7c5[_0x93f400(0x258)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5['VgVTo'],_0x40a7c5[_0x93f400(0x2d8)]),logger[_0x93f400(0x38a)](_0x19f466),process[_0x93f400(0x292)](0x1)):_0xf6a086[_0x93f400(0x223)]=!![]);const _0x3cb9b6=JSON[_0x93f400(0x21d)](_0x1a12d1[_0x93f400(0x293)]),_0x527cca={};_0x527cca['type']=WS_EVENTS['CLI_RUN_STARTED'],_0x527cca[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x265)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x527cca);const _0x31e08d={};_0x31e08d[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x31e08d[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x275)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x31e08d);_0x3cb9b6[_0x93f400(0x290)]&&(_0x40a7c5[_0x93f400(0x29b)](_0x40a7c5[_0x93f400(0x2cf)],_0x40a7c5['cQsUj'])?_0x45848d=_0x40a7c5[_0x93f400(0x314)]:(_0x19f466=_0x93f400(0x22a)+_0x329fb7+_0x93f400(0x20d),await _0x40a7c5['jaIRb'](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x398)],_0x40a7c5['dzcWD']),logger['error'](_0x19f466),process[_0x93f400(0x292)](0x1)));const _0x213d78=_0x3cb9b6[_0x93f400(0x234)];let _0x4ed45e=_0x213d78[_0x3cb9b6[_0x93f400(0x36c)]];if(_0x4046e7[_0x93f400(0x370)]){if(_0x40a7c5['dGPkU'](_0x40a7c5[_0x93f400(0x2f2)],_0x40a7c5[_0x93f400(0x32a)])){const _0x581d6c={};_0x581d6c[_0x93f400(0x30d)]=_0x511c8c[_0x93f400(0x35c)],_0x581d6c[_0x93f400(0x2fb)]=_0x93f400(0x2aa)+_0x2c4087+_0x93f400(0x2be),_0x174ee6['sendEventToBackend'](_0x5f1d71,_0x581d6c,_0x40a7c5[_0x93f400(0x27b)]),_0x5121b6['info'](_0x93f400(0x2aa)+_0x372406+_0x93f400(0x2be)),_0x5c3b57=!![];if(_0x40a7c5[_0x93f400(0x239)](_0x72c41b,!![]))throw new _0x352182('Cluster\x20'+_0x4127e6+_0x93f400(0x33c));}else _0x4ed45e=_0x213d78[_0x4046e7[_0x93f400(0x370)]];}global_registry[_0x93f400(0x318)]=![];if(_0x4046e7[_0x93f400(0x341)]){if(_0x40a7c5[_0x93f400(0x299)](_0x40a7c5[_0x93f400(0x241)],_0x40a7c5[_0x93f400(0x241)])){const _0xc2d48a=_0x40a7c5['YcWRs'][_0x93f400(0x25a)]('|');let _0x42ad4b=0x0;while(!![]){switch(_0xc2d48a[_0x42ad4b++]){case'0':global_registry[_0x93f400(0x39b)]=_0x40a7c5['MJafw'];continue;case'1':global_registry[_0x93f400(0x2a4)]=_0x40a7c5[_0x93f400(0x2a0)];continue;case'2':global_registry['enableHubHa']=!![];continue;case'3':logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x251)]);continue;case'4':global_registry[_0x93f400(0x335)]=_0x40a7c5[_0x93f400(0x30a)];continue;}break;}}else{const _0xe08485={};_0xe08485[_0x93f400(0x30d)]=_0x3e55c8['LOG'],_0xe08485[_0x93f400(0x2fb)]=_0x128ad8,_0x472785[_0x93f400(0x252)](_0x557330,_0xe08485,_0x40a7c5[_0x93f400(0x2d8)],!![]);}}if(_0x40a7c5[_0x93f400(0x29e)](_0x40d8df,![])&&_0x40a7c5['ZtDno'](_0x4f2cdf,![])){if(_0x40a7c5[_0x93f400(0x33f)](_0x40a7c5[_0x93f400(0x319)],_0x40a7c5['lCvqn'])){_0x40a7c5['tPOcY'](_0x4ed45e,undefined)&&(_0x40a7c5['ZZpWy'](_0x40a7c5['sDtAZ'],_0x40a7c5[_0x93f400(0x3a0)])?(_0x19f466=_0x40a7c5[_0x93f400(0x2eb)],await _0x40a7c5[_0x93f400(0x258)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x2ad)],_0x40a7c5['dzcWD']),logger[_0x93f400(0x38a)](_0x19f466),process['exit'](0x1)):_0x3e1d97[_0x93f400(0x29a)](_0x93f400(0x3a1)+_0x250b08+'\x20'));global_registry[_0x93f400(0x351)]=_0x4ed45e['id'],_0x19f466=_0x93f400(0x336)+_0x329fb7+_0x93f400(0x2cd)+_0x4ed45e[_0x93f400(0x354)]+'\x27\x20grid\x20profile',logger[_0x93f400(0x29a)](_0x19f466);const _0x40fd87={};_0x40fd87[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x40fd87['message']=_0x19f466,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x40fd87),_0x52ed9f=_0x4ed45e['cloudProvider'],_0x2668b8=_0x4ed45e[_0x93f400(0x2af)],_0x1a3123=_0x4ed45e[_0x93f400(0x32d)],_0x2f6b0d=_0x4ed45e[_0x93f400(0x39a)],_0x184a17=_0x4ed45e[_0x93f400(0x2cb)],_0x6363ea=_0x4ed45e[_0x93f400(0x1f0)],_0x3d387d=_0x4ed45e[_0x93f400(0x2b3)],_0xea2183=_0x4ed45e['subnets'],_0x5b3ddc=_0x4ed45e['s3bucket'],_0x445b81=_0x4ed45e[_0x93f400(0x31d)],_0x45a4b7=_0x4ed45e[_0x93f400(0x320)],_0x474783=_0x3cb9b6[_0x93f400(0x2b9)],_0x344092=_0x3cb9b6[_0x93f400(0x349)];if(_0x6363ea&&_0x40a7c5['OWPwG'](_0x6363ea[_0x93f400(0x310)],0x0)){if(_0x40a7c5[_0x93f400(0x2f5)](_0x40a7c5[_0x93f400(0x3a9)],_0x40a7c5[_0x93f400(0x3a9)]))_0x6363ea=null;else{const _0x31857f={};_0x31857f[_0x93f400(0x218)]=_0x40a7c5['DOXzt'],_0x31857f[_0x93f400(0x30d)]=_0x40a7c5[_0x93f400(0x2a1)];const _0x64a18c={};_0x64a18c['description']=_0x40a7c5['oRvhP'],_0x64a18c[_0x93f400(0x30d)]=_0x40a7c5[_0x93f400(0x2a1)];const _0x16b37a={};_0x16b37a[_0x93f400(0x218)]=_0x40a7c5[_0x93f400(0x23f)],_0x16b37a[_0x93f400(0x30d)]=_0x40a7c5[_0x93f400(0x2a1)];const _0x1d7a51={};_0x1d7a51[_0x93f400(0x218)]=_0x40a7c5['rAeTP'],_0x1d7a51[_0x93f400(0x30d)]=_0x40a7c5[_0x93f400(0x2a1)];const _0x49dbed={};_0x49dbed['description']=_0x40a7c5[_0x93f400(0x214)],_0x49dbed[_0x93f400(0x30d)]=_0x40a7c5[_0x93f400(0x2a1)];const _0x18fca8={};_0x18fca8[_0x93f400(0x218)]=_0x40a7c5[_0x93f400(0x2df)],_0x18fca8['type']=_0x40a7c5[_0x93f400(0x2a1)];const _0x3727f2={};_0x3727f2[_0x93f400(0x218)]=_0x40a7c5[_0x93f400(0x247)],_0x3727f2['type']=_0x40a7c5[_0x93f400(0x2ce)],_0x3727f2[_0x93f400(0x20f)]=![];const _0x36620c={};_0x36620c[_0x93f400(0x218)]=_0x40a7c5[_0x93f400(0x303)],_0x36620c[_0x93f400(0x30d)]=_0x40a7c5[_0x93f400(0x2ce)],_0x36620c[_0x93f400(0x20f)]=![];const _0x487b41={};_0x487b41[_0x93f400(0x218)]=_0x40a7c5[_0x93f400(0x28f)],_0x487b41[_0x93f400(0x30d)]=_0x40a7c5[_0x93f400(0x2ce)],_0x487b41['default']=![];const _0x478393={};return _0x478393['grid-name']=_0x31857f,_0x478393['grid-profile']=_0x64a18c,_0x478393['cluster-name']=_0x16b37a,_0x478393[_0x93f400(0x233)]=_0x1d7a51,_0x478393['region']=_0x49dbed,_0x478393[_0x93f400(0x3a7)]=_0x18fca8,_0x478393['skip-tls-cert-verify']=_0x3727f2,_0x478393[_0x93f400(0x2c5)]=_0x36620c,_0x478393[_0x93f400(0x2bd)]=_0x487b41,_0x4c4dea[_0x93f400(0x225)](_0x3a1d42[_0x93f400(0x2e8)])[_0x93f400(0x205)](_0x476f66)[_0x93f400(0x35b)](_0x478393)['help'](_0x40a7c5[_0x93f400(0x2e1)])[_0x93f400(0x323)];}}_0xea2183&&_0x40a7c5['sLoBe'](_0xea2183[_0x93f400(0x310)],0x0)&&(_0x40a7c5[_0x93f400(0x263)](_0x40a7c5[_0x93f400(0x360)],_0x40a7c5[_0x93f400(0x360)])?_0xea2183=null:(_0x2e63bd[_0x93f400(0x29a)](_0x93f400(0x29c)+_0x35fdf0[_0x93f400(0x2af)]+_0x93f400(0x35d)),_0x950d17=![],_0x1eaf6b=!![])),_0x40a7c5[_0x93f400(0x27c)](_0x4ed45e[_0x93f400(0x27a)],undefined)&&_0x4ed45e[_0x93f400(0x27a)]&&(_0x40a7c5[_0x93f400(0x1f7)](_0x40a7c5[_0x93f400(0x257)],_0x40a7c5[_0x93f400(0x257)])?_0x8071eb=_0x579392[_0xcc999f[_0x93f400(0x370)]]:global_registry[_0x93f400(0x223)]=!![]),_0x40a7c5[_0x93f400(0x340)](updateGlobalRegistryWithConfig,_0x52ed9f,_0x2668b8,_0x1a3123,_0x2f6b0d,_0x184a17,_0x5b3ddc,_0x4ed45e,_0x474783,_0x344092,_0x445b81,_0x45a4b7,_0x4046e7[_0x93f400(0x3af)]),global_registry[_0x93f400(0x318)]&&(_0x40a7c5[_0x93f400(0x238)](_0x40a7c5[_0x93f400(0x28b)],_0x40a7c5[_0x93f400(0x28b)])?_0x40a7c5[_0x93f400(0x348)](updateGlobalRegistryForHubHa,_0x3cb9b6[_0x93f400(0x37a)]):_0x4599c1[_0x93f400(0x223)]=!![]);}else _0x4ff10e=null;}else{if(_0x40a7c5[_0x93f400(0x2fa)](_0x4f2cdf,!![])){if(_0x40a7c5['wJyeV'](_0x40a7c5[_0x93f400(0x3a8)],_0x40a7c5[_0x93f400(0x3a8)])){_0x19f466=_0x93f400(0x343)+_0x329fb7,logger['info'](_0x19f466);const _0x9cb216={};_0x9cb216[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x9cb216[_0x93f400(0x2fb)]=_0x19f466,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x9cb216),_0x2f6b0d=_0x4ed45e[_0x93f400(0x39a)],_0x184a17=_0x4ed45e[_0x93f400(0x2cb)],_0x6363ea=null,_0x3d387d=null,_0xea2183=null,_0x5b3ddc=_0x4ed45e[_0x93f400(0x254)],_0x445b81=_0x4ed45e[_0x93f400(0x31d)],_0x45a4b7=_0x4ed45e[_0x93f400(0x320)],_0x474783=_0x3cb9b6[_0x93f400(0x2b9)],_0x344092=_0x3cb9b6['browserVersion'],_0x40a7c5[_0x93f400(0x244)](_0x4ed45e[_0x93f400(0x27a)],undefined)&&_0x4ed45e[_0x93f400(0x27a)]&&(_0x40a7c5[_0x93f400(0x37b)](_0x40a7c5[_0x93f400(0x24e)],_0x40a7c5['IHPzb'])?_0x45612=null:global_registry[_0x93f400(0x223)]=!![]),_0x40a7c5['eBYeS'](updateGlobalRegistryWithConfig,_0x52ed9f,_0x2668b8,_0x1a3123,_0x2f6b0d,_0x184a17,_0x5b3ddc,_0x4ed45e,_0x474783,_0x344092,_0x445b81,_0x45a4b7,_0x4046e7[_0x93f400(0x3af)]),global_registry['enableHubHa']&&(_0x40a7c5[_0x93f400(0x238)](_0x40a7c5[_0x93f400(0x2b2)],_0x40a7c5[_0x93f400(0x36f)])?_0x23a5d3[_0x93f400(0x2f8)]():_0x40a7c5[_0x93f400(0x348)](updateGlobalRegistryForHubHa,_0x3cb9b6[_0x93f400(0x237)]));}else _0x102773=_0x40a7c5[_0x93f400(0x22b)];}else{if(_0x40a7c5[_0x93f400(0x36b)](_0x40a7c5['zPDbq'],_0x40a7c5['Bbrxo']))_0x35b612[_0x93f400(0x370)]=_0x57c71f[_0x93f400(0x370)];else{const _0x59100b=_0x40a7c5[_0x93f400(0x311)][_0x93f400(0x25a)]('|');let _0x393973=0x0;while(!![]){switch(_0x59100b[_0x393973++]){case'0':global_registry['hubVersion']=_0x3cb9b6[_0x93f400(0x2b9)];continue;case'1':global_registry['cloudProvider']=_0x52ed9f;continue;case'2':const _0x39beeb={};_0x39beeb[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x39beeb[_0x93f400(0x2fb)]=_0x19f466,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x39beeb);continue;case'3':const _0x3d6791={};_0x3d6791['type']=WS_EVENTS[_0x93f400(0x276)],_0x3d6791[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x265)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x3d6791);continue;case'4':global_registry[_0x93f400(0x39e)]=_0x1a3123;continue;case'5':global_registry[_0x93f400(0x2af)]=_0x2668b8;continue;case'6':logger[_0x93f400(0x29a)](_0x19f466);continue;case'7':_0x19f466=_0x93f400(0x307)+_0x329fb7+'\x20in\x20existing\x20cluster\x20\x27'+_0x2668b8+'\x27';continue;case'8':global_registry['browserVersion']=_0x3cb9b6['browserVersion'];continue;}break;}}}}const _0x4d89f2=await _0x40a7c5[_0x93f400(0x2d6)](getCloudProviderObject,_0x52ed9f,_0x2668b8,_0x329fb7,_0x389e93,webSocketUtils,_0x4046e7);if(_0x40a7c5[_0x93f400(0x244)](_0x52ed9f,AZURE)){if(_0x40a7c5[_0x93f400(0x25e)](_0x40a7c5[_0x93f400(0x312)],_0x40a7c5[_0x93f400(0x266)])){const _0x39dcaf=_0x40a7c5[_0x93f400(0x377)][_0x93f400(0x25a)]('|');let _0x5a70ce=0x0;while(!![]){switch(_0x39dcaf[_0x5a70ce++]){case'0':const _0x8642fe={};_0x8642fe[_0x93f400(0x30d)]=_0x344965[_0x93f400(0x35c)],_0x8642fe[_0x93f400(0x2fb)]=_0x1785a4,_0x46102f[_0x93f400(0x252)](_0x32550a,_0x8642fe);continue;case'1':_0x3d00e9[_0x93f400(0x373)]=_0x1bb6f2;continue;case'2':_0x15344c[_0x93f400(0x39e)]=_0x451c3a;continue;case'3':const _0x208227={};_0x208227['type']=_0x463d42['CLI_RUN_STARTED'],_0x208227[_0x93f400(0x2fb)]=_0x40a7c5['GoFdF'],_0x26ca34[_0x93f400(0x252)](_0x1c1bed,_0x208227);continue;case'4':_0x4e0630[_0x93f400(0x2b9)]=_0x14a0ed[_0x93f400(0x2b9)];continue;case'5':_0x37d21d=_0x93f400(0x307)+_0x5780ef+_0x93f400(0x32f)+_0x31190d+'\x27';continue;case'6':_0x35ef0e['clusterName']=_0x2d7a5a;continue;case'7':_0x11aa91[_0x93f400(0x349)]=_0x377a49['browserVersion'];continue;case'8':_0x4153e4[_0x93f400(0x29a)](_0x160468);continue;}break;}}else _0x4d89f2[_0x93f400(0x2f8)]();}let _0x1d5d27;if(_0x40a7c5[_0x93f400(0x37f)](_0x40d8df,![])){_0x19f466=_0x93f400(0x393)+_0x1a3123+').';const _0x3dee51={};_0x3dee51['type']=WS_EVENTS[_0x93f400(0x35c)],_0x3dee51[_0x93f400(0x2fb)]=_0x19f466,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x3dee51),logger[_0x93f400(0x29a)](_0x19f466);const _0xef4d22=await _0x4d89f2[_0x93f400(0x31b)]();if(_0xef4d22){if(_0x40a7c5[_0x93f400(0x213)](_0x40a7c5[_0x93f400(0x253)],_0x40a7c5[_0x93f400(0x253)])){const _0x22d369=_0x40a7c5['DsGka'][_0x93f400(0x25a)]('|');let _0x19202a=0x0;while(!![]){switch(_0x22d369[_0x19202a++]){case'0':_0x1dbb94[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x251)]);continue;case'1':_0x5de50c[_0x93f400(0x318)]=!![];continue;case'2':_0x150d4a[_0x93f400(0x335)]=_0x40a7c5[_0x93f400(0x30a)];continue;case'3':_0x19aa08[_0x93f400(0x2a4)]=_0x40a7c5[_0x93f400(0x2a0)];continue;case'4':_0x8b61c9[_0x93f400(0x39b)]=_0x40a7c5[_0x93f400(0x2e3)];continue;}break;}}else{const _0x47cfdd={};_0x47cfdd[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x47cfdd[_0x93f400(0x2fb)]=_0x93f400(0x2aa)+_0x2668b8+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x47cfdd,_0x40a7c5[_0x93f400(0x27b)]),logger[_0x93f400(0x29a)](_0x93f400(0x2aa)+_0x2668b8+_0x93f400(0x2be)),_0x40d8df=!![];if(_0x40a7c5['DjvrY'](_0x4f2cdf,!![])){if(_0x40a7c5[_0x93f400(0x2fa)](_0x40a7c5[_0x93f400(0x2e0)],_0x40a7c5['RRyVH']))_0x4744e5=_0x40a7c5[_0x93f400(0x28e)];else throw new Error(_0x93f400(0x2aa)+_0x2668b8+_0x93f400(0x33c));}}}else{const _0x3ce3f9={};_0x3ce3f9[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x3ce3f9[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x298)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x3ce3f9),logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x298)]);const _0x5f5cd1=_0x40a7c5[_0x93f400(0x2e2)](_0x6363ea,null)&&_0x40a7c5[_0x93f400(0x316)](_0x6363ea,undefined),_0x1ec097=_0x40a7c5['KCuUp'](_0xea2183,null)&&_0x40a7c5[_0x93f400(0x27c)](_0xea2183,undefined)&&_0x40a7c5[_0x93f400(0x26a)](_0xea2183[_0x93f400(0x310)],0x0);if(_0x5f5cd1){_0x40a7c5['awcXv'](_0x1ec097,![])&&(_0x19f466=_0x40a7c5[_0x93f400(0x255)],await _0x40a7c5[_0x93f400(0x356)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x39d)],_0x40a7c5[_0x93f400(0x2d8)]),logger[_0x93f400(0x38a)](_0x19f466),process['exit'](0x1));const _0xbfc59e=await _0x4d89f2[_0x93f400(0x390)](_0x6363ea);_0x40a7c5[_0x93f400(0x30b)](_0xbfc59e,![])?(_0x19f466=_0x40a7c5['oVtun'],await _0x40a7c5['ofbTm'](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5['MDnHC'],_0x40a7c5['dzcWD']),logger['error'](_0x19f466),process[_0x93f400(0x292)](0x1)):logger['info']('Found\x20VPC:\x20'+_0x6363ea+'\x20');const _0x1044c8=await _0x4d89f2[_0x93f400(0x329)](_0xea2183,_0x6363ea);_0x40a7c5[_0x93f400(0x30b)](_0x1044c8[0x0],![])?(_0x19f466=_0x93f400(0x288)+JSON[_0x93f400(0x236)](_0x1044c8[0x1])+_0x93f400(0x2de)+_0x6363ea+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x40a7c5[_0x93f400(0x229)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x2e9)],_0x40a7c5[_0x93f400(0x2d8)]),logger[_0x93f400(0x38a)](_0x19f466),process[_0x93f400(0x292)](0x1)):logger[_0x93f400(0x29a)]('Found\x20Subnets:\x20'+JSON[_0x93f400(0x236)](_0xea2183)+'\x20'),[_0x6363ea,_0xea2183]=await _0x4d89f2[_0x93f400(0x240)](_0x6363ea,_0xea2183);}else{const _0x57acdf=_0x40a7c5['hxqEx']['split']('|');let _0x5a74ad=0x0;while(!![]){switch(_0x57acdf[_0x5a74ad++]){case'0':logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x33d)]);continue;case'1':logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x32b)]);continue;case'2':[_0x6363ea,_0xea2183]=await _0x4d89f2['setupNewCluster'](_0x6363ea,_0xea2183);continue;case'3':const _0x19ca08={};_0x19ca08[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x19ca08[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x33d)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x19ca08);continue;case'4':const _0x3a3899={};_0x3a3899[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x3a3899[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x32b)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x3a3899);continue;}break;}}}}_0x40d8df&&_0x40a7c5[_0x93f400(0x3a6)](_0x52ed9f,AZURE)&&(await _0x4d89f2[_0x93f400(0x27f)](),await _0x4d89f2['createOtherResources']());const [_0x303202,_0x43fa61,_0x4e7579,_0x1c392d,_0x571844,_0x4acdf9,_0x1d19c7]=await _0x40a7c5[_0x93f400(0x374)](createK8sClient,_0x4d89f2,_0x4046e7[_0x93f400(0x24b)]);_0x40a7c5[_0x93f400(0x30b)](_0x40d8df,![])&&_0x40a7c5[_0x93f400(0x29e)](_0x52ed9f,AWS)&&(global_registry[_0x93f400(0x1f8)]=!![],_0x1d5d27=await _0x4d89f2['setupAutoscaler'](_0x303202,_0x4046e7));if(_0x40a7c5[_0x93f400(0x2f5)](_0x40d8df,![])&&global_registry['enableHubHa'])try{await _0x4d89f2[_0x93f400(0x267)](_0x4acdf9,_0x1d19c7,_0x4046e7,_0x6363ea,_0xea2183);const _0x15df49={};_0x15df49[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x15df49[_0x93f400(0x2fb)]=_0x40a7c5['vrQbG'],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x15df49);!await _0x40a7c5[_0x93f400(0x3ac)](namespaceExists,_0x303202,global_registry['hubHaNameSpace'])&&await _0x40a7c5[_0x93f400(0x25d)](createNamespace,_0x303202,global_registry[_0x93f400(0x39b)]);logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x3a3)]);let _0x553b3d=await fs['readFileAsync'](path['join'](__dirname,_0x40a7c5[_0x93f400(0x23e)],_0x40a7c5[_0x93f400(0x2c8)],_0x40a7c5[_0x93f400(0x287)],_0x40a7c5[_0x93f400(0x26b)]),_0x40a7c5[_0x93f400(0x24d)]);_0x553b3d=_0x553b3d[_0x93f400(0x22f)](/<RedisClientPassword>/g,_0x40a7c5[_0x93f400(0x2d9)](encodeBase64,global_registry[_0x93f400(0x335)])),_0x553b3d=_0x553b3d[_0x93f400(0x22f)](/<KafkaClientPassword>/g,_0x40a7c5['BPCFr'](encodeBase64,global_registry[_0x93f400(0x2a4)])),_0x553b3d=_0x553b3d['replace'](/<BstackUsername>/g,_0x40a7c5['BPCFr'](encodeBase64,global_registry['bstackUsername'])),_0x553b3d=_0x553b3d['replace'](/<BstackAccessKey>/g,_0x40a7c5['wutTb'](encodeBase64,global_registry[_0x93f400(0x27e)]));const _0x1ba4c5=yaml[_0x93f400(0x37c)](_0x553b3d);await _0x40a7c5[_0x93f400(0x35e)](kubeApply,_0x1ba4c5,_0x1d19c7),logger[_0x93f400(0x29a)](_0x40a7c5['vFfIm']);let _0x43c154=_0x40a7c5[_0x93f400(0x24a)];if(_0x40a7c5['qMOgv'](_0x52ed9f,AZURE))_0x43c154=_0x40a7c5[_0x93f400(0x22b)];else _0x40a7c5['uWVmP'](_0x52ed9f,GCP)&&(_0x43c154=_0x40a7c5[_0x93f400(0x314)]);logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x38b)]);let _0x50c053=await fs[_0x93f400(0x302)](path[_0x93f400(0x36e)](__dirname,_0x40a7c5[_0x93f400(0x23e)],_0x40a7c5[_0x93f400(0x2c8)],_0x40a7c5[_0x93f400(0x287)],_0x40a7c5['BNFRR']),_0x40a7c5['GMLgm']);_0x50c053=_0x50c053[_0x93f400(0x22f)](/<HubHaNameSpace>/g,global_registry[_0x93f400(0x39b)]),_0x50c053=_0x50c053[_0x93f400(0x22f)](/<StorageClassName>/g,_0x43c154);const _0xaf61d1=yaml[_0x93f400(0x37c)](_0x50c053);await _0x40a7c5[_0x93f400(0x1ff)](kubeApply,_0xaf61d1,_0x1d19c7),logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x1f5)]),logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x2d3)]);let _0x32d986=await fs[_0x93f400(0x302)](path['join'](__dirname,_0x40a7c5['FoJXh'],_0x40a7c5[_0x93f400(0x2c8)],_0x40a7c5[_0x93f400(0x287)],_0x40a7c5[_0x93f400(0x250)]),_0x40a7c5['GMLgm']);_0x32d986=_0x32d986['replace'](/<HubHaNameSpace>/g,global_registry[_0x93f400(0x39b)]),_0x32d986=_0x32d986['replace'](/<StorageClassName>/g,_0x43c154);const _0x4220a3=yaml[_0x93f400(0x37c)](_0x32d986);await _0x40a7c5[_0x93f400(0x374)](kubeApply,_0x4220a3,_0x1d19c7),logger['info'](_0x40a7c5[_0x93f400(0x308)]),logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x2c7)]);let _0x4361cf=await fs['readFileAsync'](path[_0x93f400(0x36e)](__dirname,_0x40a7c5[_0x93f400(0x23e)],_0x40a7c5[_0x93f400(0x2c8)],_0x40a7c5[_0x93f400(0x287)],_0x40a7c5['IQhyl']),_0x40a7c5[_0x93f400(0x24d)]);_0x4361cf=_0x4361cf['replace'](/<UploaderImageVersion>/g,global_registry[_0x93f400(0x367)]),_0x4361cf=_0x4361cf['replace'](/<HubHaNameSpace>/g,global_registry[_0x93f400(0x39b)]);const _0x4dff8b=yaml[_0x93f400(0x37c)](_0x4361cf);_0x40a7c5['DjvrY'](global_registry['cloudProvider'],AZURE)&&(_0x4dff8b[0x0][_0x93f400(0x30e)][_0x93f400(0x219)]['metadata']['labels']={'azure.workload.identity/use':_0x40a7c5[_0x93f400(0x35a)],..._0x4dff8b[0x0][_0x93f400(0x30e)][_0x93f400(0x219)]['metadata'][_0x93f400(0x2c4)]},_0x4dff8b[0x0][_0x93f400(0x30e)][_0x93f400(0x219)]['spec']['serviceAccountName']=_0x40a7c5[_0x93f400(0x369)]);await _0x40a7c5[_0x93f400(0x3ac)](kubeApply,_0x4dff8b,_0x1d19c7),logger['info'](_0x40a7c5['OxtQU']);const _0x4059ad={};_0x4059ad['type']=WS_EVENTS[_0x93f400(0x35c)],_0x4059ad[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x2e7)],webSocketUtils['sendEventToBackend'](_0x389e93,_0x4059ad),logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x217)]);}catch(_0x1c3849){const _0xf569f5=_0x40a7c5[_0x93f400(0x3ad)][_0x93f400(0x25a)]('|');let _0x4e4270=0x0;while(!![]){switch(_0xf569f5[_0x4e4270++]){case'0':logger[_0x93f400(0x38a)](_0x19f466);continue;case'1':await _0x40a7c5['XRUzQ'](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x280)],_0x40a7c5[_0x93f400(0x2d8)]);continue;case'2':_0x19f466='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x1c3849['message'];continue;case'3':process[_0x93f400(0x292)](0x1);continue;case'4':await _0x4d89f2[_0x93f400(0x277)](_0x303202,global_registry['clusterRegion']);continue;}break;}}try{_0x25cc66=_0x40a7c5[_0x93f400(0x348)](kebabCase,_0x329fb7),logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x296)]);const _0x507912={};_0x507912[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x507912[_0x93f400(0x2fb)]=_0x40a7c5['BwOZW'],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x507912);if(_0x40a7c5['ZZpWy'](_0x25cc66,_0x40a7c5[_0x93f400(0x369)])){const _0x7fab38={};_0x7fab38[_0x93f400(0x321)]=_0x40a7c5[_0x93f400(0x2d2)],_0x7fab38[_0x93f400(0x30f)]=_0x40a7c5[_0x93f400(0x2d2)];const _0x272a00={};_0x272a00[_0x93f400(0x354)]=_0x25cc66,_0x272a00[_0x93f400(0x392)]=_0x7fab38;const _0x10ac9a={};_0x10ac9a[_0x93f400(0x387)]=_0x272a00;const _0x440fa4=_0x10ac9a,_0x4572a7={};_0x4572a7[_0x93f400(0x293)]=_0x440fa4,await _0x303202[_0x93f400(0x2dc)](_0x4572a7),logger['info'](_0x40a7c5['bRLYK']);}const _0xda76c6={};_0xda76c6['type']=WS_EVENTS[_0x93f400(0x35c)],_0xda76c6[_0x93f400(0x2fb)]=_0x40a7c5[_0x93f400(0x1fb)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0xda76c6);const _0x5c5227={};_0x5c5227['type']=WS_EVENTS[_0x93f400(0x35c)],_0x5c5227['message']=_0x40a7c5[_0x93f400(0x226)],webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x5c5227),logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x361)]);let _0x4af760={};_0x40a7c5[_0x93f400(0x342)](_0x52ed9f,AZURE)&&(_0x4af760={'clientId':await _0x4d89f2['getResourceClientId'](_0x93f400(0x338)+_0x2668b8)});await _0x40a7c5[_0x93f400(0x220)](addGridComponents,_0x303202,_0x43fa61,_0x4e7579,_0x1c392d,_0x25cc66,_0x2668b8,_0x1d5d27,_0x571844,_0x1d19c7,_0x4af760),_0x19f466=_0x40a7c5[_0x93f400(0x353)],logger['info'](_0x19f466);const _0x1d52c4={};_0x1d52c4[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x1d52c4[_0x93f400(0x2fb)]=_0x19f466,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x1d52c4),_0x19f466=_0x40a7c5[_0x93f400(0x2c1)],logger[_0x93f400(0x29a)](_0x19f466);const _0x47a6a4={};_0x47a6a4[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x47a6a4[_0x93f400(0x2fb)]=_0x19f466,webSocketUtils['sendEventToBackend'](_0x389e93,_0x47a6a4),await _0x40a7c5[_0x93f400(0x2bb)](waitForDeployment,_0x43fa61,_0x25cc66,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x36e2b1=await _0x40a7c5[_0x93f400(0x25d)](getNamespaceUID,_0x303202,_0x25cc66),_0x79886b=global_registry[_0x93f400(0x223)]?_0x40a7c5[_0x93f400(0x2a5)]:_0x40a7c5[_0x93f400(0x294)],_0xa6d9fb={};_0xa6d9fb[_0x93f400(0x354)]=_0x79886b,_0xa6d9fb['namespace']=_0x40a7c5[_0x93f400(0x33e)];const _0xfa7276=await _0x303202[_0x93f400(0x2f6)](_0xa6d9fb);let _0x15c734=_0x4d89f2[_0x93f400(0x397)](_0xfa7276)+'/'+_0x25cc66,_0x45e9d8=_0x40a7c5[_0x93f400(0x28e)];try{const _0x2917e9=_0x93f400(0x2fc)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x36e2b1,_0x12e460=await _0x40a7c5[_0x93f400(0x304)](got,_0x2917e9,_0x1b37c7);(_0x40a7c5[_0x93f400(0x37f)](_0x12e460,null)||_0x40a7c5[_0x93f400(0x324)](_0x12e460,undefined))&&(_0x19f466=_0x40a7c5[_0x93f400(0x2a8)],await _0x40a7c5[_0x93f400(0x2d5)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes['ERROR'],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x363)],_0x40a7c5[_0x93f400(0x2d8)]),logger[_0x93f400(0x38a)](_0x19f466),process['exit'](0x1));_0x40a7c5[_0x93f400(0x29b)](_0x12e460[_0x93f400(0x3b0)],0x191)&&(_0x19f466=_0x40a7c5[_0x93f400(0x200)],await _0x40a7c5[_0x93f400(0x279)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes[_0x93f400(0x375)],_0x40a7c5['OvNJt'],_0x40a7c5[_0x93f400(0x1ed)],_0x40a7c5['dzcWD']),logger['error'](_0x19f466),process[_0x93f400(0x292)](0x1));_0x40a7c5[_0x93f400(0x23b)](_0x12e460[_0x93f400(0x3b0)],0xc8)&&(_0x19f466=_0x93f400(0x317)+JSON[_0x93f400(0x236)](_0x12e460),await _0x40a7c5[_0x93f400(0x356)](reportToGalactusAndSendToEDS,_0x4046e7,_0x389e93,_0x19f466,messageTypes['ERROR'],_0x40a7c5[_0x93f400(0x20e)],_0x40a7c5[_0x93f400(0x399)],_0x40a7c5['dzcWD']),logger['error'](_0x19f466),process[_0x93f400(0x292)](0x1));const _0x3fa0eb=JSON[_0x93f400(0x21d)](_0x12e460['body']);_0x3fa0eb[_0x93f400(0x322)]&&(_0x15c734=_0x3fa0eb['route53'],_0x45e9d8=_0x40a7c5[_0x93f400(0x2a3)]),global_registry[_0x93f400(0x223)]&&(_0x45e9d8=_0x40a7c5[_0x93f400(0x28e)]);}catch(_0x3d48ef){}_0x19f466=_0x93f400(0x36d)+_0x15c734+'\x20',logger[_0x93f400(0x29a)](_0x19f466);const _0x2e79f9={};_0x2e79f9['type']=WS_EVENTS['LOG'],_0x2e79f9['message']=_0x19f466,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x2e79f9),_0x19f466=_0x93f400(0x224)+_0x45e9d8+_0x93f400(0x211)+_0x15c734+'/wd/hub',logger[_0x93f400(0x29a)](_0x19f466);const _0x526cdd={};_0x526cdd[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x526cdd[_0x93f400(0x2fb)]=_0x19f466,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x526cdd);const _0x26532b={};_0x26532b[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x2fd)],_0x26532b[_0x93f400(0x2fb)]=_0x93f400(0x2d1)+_0x15c734,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x26532b),await webSocketUtils[_0x93f400(0x270)](0x7d0);}catch(_0x3812a6){logger[_0x93f400(0x38a)]('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x3812a6+'\x20\x0a'+JSON[_0x93f400(0x236)](_0x3812a6[_0x93f400(0x272)]));if(_0x40a7c5[_0x93f400(0x3a5)](_0x40d8df,![]))try{logger[_0x93f400(0x29a)](_0x40a7c5[_0x93f400(0x325)]),await _0x40a7c5['AqgeM'](removeGridComponents,_0x303202,_0x43fa61,_0x4e7579,_0x1c392d,_0x25cc66),await _0x4d89f2[_0x93f400(0x277)](_0x303202,global_registry[_0x93f400(0x39e)]);}catch(_0x1df9df){logger[_0x93f400(0x38a)](_0x93f400(0x2da)+_0x1df9df+'\x20\x0a'+JSON['stringify'](_0x1df9df[_0x93f400(0x272)]));}throw _0x3812a6;}}catch(_0x2621e6){const _0x385cc6=_0x93f400(0x300)+_0x2621e6+'\x20\x0a'+JSON[_0x93f400(0x236)](_0x2621e6[_0x93f400(0x272)]);if(_0x389e93){const _0x30fa37={};_0x30fa37[_0x93f400(0x30d)]=WS_EVENTS[_0x93f400(0x35c)],_0x30fa37['message']=_0x385cc6,webSocketUtils[_0x93f400(0x252)](_0x389e93,_0x30fa37,_0x40a7c5[_0x93f400(0x2d8)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x168fef={};_0x168fef[_0x93f400(0x38a)]=_0x385cc6,await _0x40a7c5[_0x93f400(0x2f9)](sendInstrumentationEvent,_0x4046e7,_0x40a7c5['OvNJt'],messageTypes[_0x93f400(0x375)],_0x40a7c5[_0x93f400(0x333)],_0x168fef,_0x4046e7),logger[_0x93f400(0x38a)](_0x385cc6);}process['exit'](0x0);};
|
|
1
|
+
function a9_0x5105(_0x491415,_0x237608){const _0x475ec0=a9_0x475e();return a9_0x5105=function(_0x510527,_0x24ccb7){_0x510527=_0x510527-0xbd;let _0x407d82=_0x475ec0[_0x510527];return _0x407d82;},a9_0x5105(_0x491415,_0x237608);}const a9_0x492444=a9_0x5105;(function(_0xec9a1a,_0x5d7388){const _0x5db623=a9_0x5105,_0x1d3b74=_0xec9a1a();while(!![]){try{const _0x5e214e=-parseInt(_0x5db623(0x111))/0x1+-parseInt(_0x5db623(0xfb))/0x2*(-parseInt(_0x5db623(0x1f8))/0x3)+parseInt(_0x5db623(0x1c1))/0x4+parseInt(_0x5db623(0x1ff))/0x5+-parseInt(_0x5db623(0x11a))/0x6*(parseInt(_0x5db623(0x23a))/0x7)+parseInt(_0x5db623(0x155))/0x8*(parseInt(_0x5db623(0xda))/0x9)+-parseInt(_0x5db623(0x240))/0xa*(parseInt(_0x5db623(0x1a1))/0xb);if(_0x5e214e===_0x5d7388)break;else _0x1d3b74['push'](_0x1d3b74['shift']());}catch(_0xb33a72){_0x1d3b74['push'](_0x1d3b74['shift']());}}}(a9_0x475e,0x23b41));const fs=require('fs'),ws=require('ws'),path=require(a9_0x492444(0x162)),yaml=require(a9_0x492444(0x197)),ReconnectingWebSocket=require(a9_0x492444(0x222)),got=require('got'),{v4:uuidv4}=require(a9_0x492444(0x18a)),webSocketUtils=require(a9_0x492444(0x160)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x492444(0x15b)),{getCloudProviderObject}=require(a9_0x492444(0x198)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x492444(0x243)),{createK8sClient}=require(a9_0x492444(0x1d4)),{sendInstrumentationEvent}=require(a9_0x492444(0x227));function a9_0x475e(){const _0x23d1c3=['OAFdh','clusterRegion','864879OQeNMn','LOG','CLI\x20run\x20started','ACHrq','LGuxj','SMaNe','xojbF','140645FmaBLF','XoatK','yVucK','hgEgk','tVcnO','ZKrBX','grid-spawning-failed','type','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','hub-ha','lPjtV','MVzOg','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','kuddg','ugYAq','https','gridName','Create\x20a\x20new\x20Automation\x20grid.','kMiuT','mxhVm','private-ingress-nginx-controller','wZinR','UWnOT','Swetx','mNytw','QvRTC','vDzbj','XpPTF','cgJFV','DemrM','serviceAccountName','0|2|1|4|3','LnOtA','OQlgI','hubHaNameSpace','reconnecting-websocket','iivzC','rSnpk','statusCode','zLEtR','../../utils/instrumentationUtils','UfmUn','Added\x20Kafka\x20deployment.','dqmyK','atUbd','browserVersion','clusterName','Wrvyj','WcEPb','setupNewCluster','KrHXm','true','QSaxs','USFwO','Ooiqx','HkczA','qKFnG','JTIJx','zsnbm','13573eztgBY','NMcEp','EBltU','UlWaQ','gridProfiles','3|4|6|1|0|2|5|7|8','331780ROHGar','sendResourceDataToHST','vwBlY','../../utils/gridComponents','EJLTU','jAVqf','\x20are\x20not\x20present\x20in\x20VPC:\x20','prespawned-cluster-args-not-passed','bZQwi','YvBzs','username','cBukN','vvtwR','newCluster','RWfRC','UiHiW','template','minNodes','kafkaPassword','templates','OBMKb','hubHa','pre-spawned-invalid-vpc','TmSVM','uploaderVersion','Flag\x20to\x20enable\x20Hub\x20HA','iSzGw','Rozae','create-grid-checks-grid-already-exists','kCago','Skip\x20insecure\x20cert\x20verification.','nCuxJ','sqFYe','getResourceClientId','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','Adding\x20Kafka\x20deployment...','get-grid-url-null-response','wNeCR','tTTZx','CmozS','PqYze','enableHubHa','browserstack-secret.yaml','gMuLI','Found\x20VPC:\x20','DVwwd','qlGZc','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','vkSpd','vpc','POOYr','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','init-not-called','dMamO','clusterAutoUpgrade','AFveU','ZCNNE','iTGQH','RfjtW','create','builder','GET','handler','IdUjU','GrkVC','PSUNW','CpURt','UzfZc','jZzbR','SgZtR','NZgWC','TkoHL','2027313rRkcUM','lOkPO','cloudProvider','Adding\x20Websocket\x20listeners','s3bucket','Enabling\x20Hub\x20HA\x20flow','exit','region','xpoxs','ERROR','turboscale-managed-identity-','rsDjR','string','mhIBJ','loadAll','HdApo','\x20in\x20existing\x20cluster\x20\x27','xJatF','create-grid-checks-auth-failed','nCvml','Deleting\x20the\x20CloudFormation\x20Stacks','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','createOtherResources','bKxwk','tXGfE','pikXU','theMa','WpJCZ','private-grid','viSbw','includes','BeiML','help','2xjsbKC','GgZdH','pvSCF','Namespace\x20created','FFHbu','Hub\x20HA\x20setup\x20completed\x20successfully.','\x20using\x20\x27','\x27\x20grid\x20profile','GSREd','https://','Adding\x20Redis\x20deployment...','Eqbdl','NqdZY','metadata','Created\x20Hub\x20HA\x20resources','ydLzO','Cluster\x20created\x20successfully','subnets','qTkSI','isPrivateGrid','description','knCSl','4295zDYaxE','argv','length','JhplQ','ARVOz','ENrHi','hubVersion','KBIJE','jDiDG','834YHMxIa','xMPzX','deleteCluster','RVEWb','HTqBj','Subnets:\x20','isSubnetsValid','message','ewluu','Spawning\x20grid\x20on\x20to\x20the\x20cluster','alreadyPresent','desc','stack','cUUix','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','NKLbD','xqqud','QuFQk','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','http','wAjPI','NlzcG','connectionTimeout','BzdZq','createNamespace','bitnami-redis.yaml','OTrEo','RxQuj','BoYBw','bstackAccesskey','NXBgn','Lhzwg','yOQlP','CLI_RUN_STARTED','ffiRl','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','instanceType','lLFdg','readFileSync','OfMgH','password','YFtgF','Nkhkh','kafkaUploader','cluster-autoupgrade','privateGrid','ZINyV','spec','LvbQj','iSomj','ubMcJ','sCUHW','toLowerCase','JPnhs','bstackUsername','cloud-provider','concurrency','BeOUD','PVKMr','8LIorQA','XajtA','Grid\x20can\x20be\x20accessed\x20at:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','kFFJG','stringify','../../utils/utilityMethods','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','/packages/cli/create-grid-checks','qERQz','4|2|0|3|1','../../utils/webSocketUtils','gscnO','path','skip-tls-cert-verify','utf-8','NmIzp','join','FfAvx','premium-rwo','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','acYhv','HPADv','CLI\x20run\x20finished:\x20','get-grid-url-non-200','vVwAM','Cluster\x20','gridProfileId','ocueQ','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Mqzcu','EjsTS','FaDYf','body','setupHubHa','xXcvm','hfkHi','name','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','gBagN','redisPassword','grid','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Ikcwc','Xqfcv','VRBWA','EoHBk','gyYzw','PLfuh','xWAxr','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Namespace\x20Created','uuid','Added\x20Redis\x20deployment.','NGmHQ','arMvp','oEkfu','Cluster:\x20','non-aws-azure-cluster','qCDOc','oGJmI','yByCG','Spawning\x20the\x20grid\x20','readNamespacedService','qGSdA','js-yaml','../../cloudproviders/utils','cZTZk','mbMjd','UFsDf','wJfax','Found\x20Subnets:\x20','Creating\x20Hub\x20HA\x20resources','rmWPJ','maxNodes','99KLlnno','clusterAutoupgrade','info','azurefile-csi-premium','Usrzd','Mrtao','hqVGE','getGridHostname','FdHXu','0|3|2|1|4','tjOfj','sendEventToBackend','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','create-grid-checks-non-200','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','ZuACD','BzMcO','INFO','error','route53','setupAutoscaler','readFileAsync','ingress-nginx','cluster-name','YzvqZ','qQLFu','wuyfn','Spawning\x20Grid\x20on\x20the\x20Cluster','options','JUGfL','eZpyb','yFtri','707920rifRvm','replace','PDBDM','isClusterPresent','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','EedWo','RogHV','QFkVj','Ikpup','split','hubharesources','gridProfile','parse','Added\x20Turboscale\x20Uploader\x20deployment.','managedBy','grid-name','iOEAP','Browserstack','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','../../utils/createk8sClient','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','wFUPP','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','create-grid-checks-null-response','SWwfO','HpVud','jtbVj','addListeners','DtkuY','tguBE','ybvhN','Grid\x20spawned\x20on\x20the\x20cluster','mliyb','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','UkfET','default','create-grid-called','KssRb','dOqaI','createdBy','grid-profile','pxtrG','browserstack','labels','epilogue','user','Creating\x20namespace','hNxxt','WvNpl','vMBfV','MCXJe','MGcri'];a9_0x475e=function(){return _0x23d1c3;};return a9_0x475e();}exports['command']=a9_0x492444(0x17f),exports[a9_0x492444(0x125)]=a9_0x492444(0x210),exports[a9_0x492444(0xce)]=function(_0x6d67ad){const _0x5de7cc=a9_0x492444,_0x48bae4={};_0x48bae4[_0x5de7cc(0x257)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x48bae4['sCUHW']='string',_0x48bae4['iivzC']=_0x5de7cc(0x207),_0x48bae4[_0x5de7cc(0x183)]=_0x5de7cc(0x1ad),_0x48bae4['xojbF']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x48bae4['VKKqE']=_0x5de7cc(0x173),_0x48bae4[_0x5de7cc(0x22a)]='Create\x20a\x20private/public\x20grid.',_0x48bae4[_0x5de7cc(0x16b)]=_0x5de7cc(0x25e),_0x48bae4[_0x5de7cc(0xff)]='boolean',_0x48bae4[_0x5de7cc(0x1bf)]='Flag\x20to\x20enable\x20Hub\x20HA',_0x48bae4[_0x5de7cc(0x1c9)]='Flag\x20to\x20enable\x20cluster\x20auto-upgrade',_0x48bae4[_0x5de7cc(0x16c)]=_0x5de7cc(0xfa);const _0x271b21=_0x48bae4,_0xfac60d={};_0xfac60d[_0x5de7cc(0x10f)]=_0x271b21['TmSVM'],_0xfac60d[_0x5de7cc(0x206)]=_0x271b21[_0x5de7cc(0x14d)];const _0x3fac33={};_0x3fac33[_0x5de7cc(0x10f)]=_0x271b21[_0x5de7cc(0x223)],_0x3fac33[_0x5de7cc(0x206)]=_0x271b21[_0x5de7cc(0x14d)];const _0x59e4f4={};_0x59e4f4['description']=_0x271b21[_0x5de7cc(0x183)],_0x59e4f4['type']=_0x271b21[_0x5de7cc(0x14d)];const _0x47b171={};_0x47b171[_0x5de7cc(0x10f)]=_0x271b21[_0x5de7cc(0x1fe)],_0x47b171['type']=_0x271b21[_0x5de7cc(0x14d)];const _0x4cd1a1={};_0x4cd1a1[_0x5de7cc(0x10f)]=_0x271b21['VKKqE'],_0x4cd1a1[_0x5de7cc(0x206)]=_0x271b21[_0x5de7cc(0x14d)];const _0x364318={};_0x364318[_0x5de7cc(0x10f)]=_0x271b21['dqmyK'],_0x364318[_0x5de7cc(0x206)]=_0x271b21[_0x5de7cc(0x14d)];const _0x4fbdf8={};_0x4fbdf8[_0x5de7cc(0x10f)]=_0x271b21[_0x5de7cc(0x16b)],_0x4fbdf8['type']=_0x271b21['FFHbu'],_0x4fbdf8['default']=![];const _0x466f9d={};_0x466f9d[_0x5de7cc(0x10f)]=_0x271b21[_0x5de7cc(0x1bf)],_0x466f9d['type']=_0x271b21[_0x5de7cc(0xff)],_0x466f9d[_0x5de7cc(0x1e5)]=![];const _0x3937ae={};_0x3937ae[_0x5de7cc(0x10f)]=_0x271b21[_0x5de7cc(0x1c9)],_0x3937ae[_0x5de7cc(0x206)]=_0x271b21[_0x5de7cc(0xff)],_0x3937ae[_0x5de7cc(0x1e5)]=![];const _0x40352c={};return _0x40352c[_0x5de7cc(0x1d0)]=_0xfac60d,_0x40352c[_0x5de7cc(0x1ea)]=_0x3fac33,_0x40352c['cluster-name']=_0x59e4f4,_0x40352c[_0x5de7cc(0x151)]=_0x47b171,_0x40352c['region']=_0x4cd1a1,_0x40352c['private-grid']=_0x364318,_0x40352c[_0x5de7cc(0x163)]=_0x4fbdf8,_0x40352c[_0x5de7cc(0x208)]=_0x466f9d,_0x40352c['cluster-autoupgrade']=_0x3937ae,_0x6d67ad['usage'](HELP_HEADER_MESSAGE[_0x5de7cc(0xcd)])[_0x5de7cc(0x1ee)](HELP_FOOTER_MESSAGE)[_0x5de7cc(0x1bd)](_0x40352c)[_0x5de7cc(0xfa)](_0x271b21[_0x5de7cc(0x16c)])[_0x5de7cc(0x112)];},exports[a9_0x492444(0xd0)]=async function(_0x4a4ac4){const _0x5c5804=a9_0x492444,_0x1f4d49={'xpoxs':_0x5c5804(0x232),'ACHrq':_0x5c5804(0x1e5),'Xbabs':'1|4|0|2|3','fasZy':'UkRNzNYCBU','MGcri':_0x5c5804(0xdf),'OQlgI':'Epyd5nXbRK','tTTZx':_0x5c5804(0x1ec),'xJatF':'15|2|4|9|11|6|3|5|8|1|7|13|0|10|12|14','Xqfcv':function(_0x1349d8,_0x36acb4){return _0x1349d8!==_0x36acb4;},'xMPzX':function(_0x448935,_0x40fc0a,_0x1192e1,_0x2d12f7,_0x2e5830,_0x262dff,_0xf7776a,_0x54b651,_0x40f9f2,_0x356dcc,_0x52436a,_0xa74c19,_0xdfce13){return _0x448935(_0x40fc0a,_0x1192e1,_0x2d12f7,_0x2e5830,_0x262dff,_0xf7776a,_0x54b651,_0x40f9f2,_0x356dcc,_0x52436a,_0xa74c19,_0xdfce13);},'HTqBj':function(_0x3e80ca,_0x493b59){return _0x3e80ca(_0x493b59);},'MCXJe':_0x5c5804(0x12d),'ewluu':'warn','GrkVC':function(_0x1161ac,_0x4c84f7){return _0x1161ac===_0x4c84f7;},'wZinR':function(_0x252e47,_0x2768e4){return _0x252e47(_0x2768e4);},'rXdKA':_0x5c5804(0x168),'SMaNe':_0x5c5804(0x1b3),'BzdZq':_0x5c5804(0x1a4),'yByCG':_0x5c5804(0x23f),'Wrvyj':_0x5c5804(0x1fa),'SgZtR':_0x5c5804(0x12c),'qTkSI':_0x5c5804(0x20e),'PLfuh':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','ugYAq':_0x5c5804(0xe6),'kMiuT':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','EoHBk':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','rmWPJ':_0x5c5804(0x1d6),'Lhzwg':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','ybvhN':'Create\x20a\x20private/public\x20grid.','nCuxJ':_0x5c5804(0x25e),'NqdZY':'boolean','wNeCR':_0x5c5804(0x259),'POOYr':_0x5c5804(0x1c5),'wJfax':_0x5c5804(0xfa),'AavRk':function(_0x1b16f4){return _0x1b16f4();},'PDBDM':function(_0x54864c){return _0x54864c();},'USFwO':_0x5c5804(0xf2),'IdUjU':_0x5c5804(0xc0),'QFkVj':_0x5c5804(0x158),'ydLzO':function(_0x2f343e,_0x335a5b,_0x5b6f07,_0x4f5da6,_0x3b3a3f,_0x24235c,_0x408a32){return _0x2f343e(_0x335a5b,_0x5b6f07,_0x4f5da6,_0x3b3a3f,_0x24235c,_0x408a32);},'XpPTF':_0x5c5804(0x1e6),'JOvpd':_0x5c5804(0xc6),'JTIJx':function(_0x18bba1){return _0x18bba1();},'UfmUn':'<UsernamePlaceholder>','yVucK':'<PasswordPlaceholder>','DjeGL':_0x5c5804(0xdd),'FaDYf':_0x5c5804(0x1da),'rSSfW':_0x5c5804(0x25a),'HpVud':'LuhLW','LvbQj':_0x5c5804(0x13d),'sqFYe':function(_0x35b086,_0x39b1c9,_0x40eae7,_0x2a3e13,_0xc618c2,_0x12438e,_0x3b73e2,_0xd80a98){return _0x35b086(_0x39b1c9,_0x40eae7,_0x2a3e13,_0xc618c2,_0x12438e,_0x3b73e2,_0xd80a98);},'iSomj':_0x5c5804(0x247),'mbMjd':_0x5c5804(0x11d),'OBMKb':_0x5c5804(0xfc),'bKxwk':_0x5c5804(0x128),'kuddg':function(_0x517d5b,_0x296fcc,_0x4a7197,_0x4aafb6,_0x244f08,_0x3e0853,_0x468349,_0x24de35){return _0x517d5b(_0x296fcc,_0x4a7197,_0x4aafb6,_0x244f08,_0x3e0853,_0x468349,_0x24de35);},'tVcnO':_0x5c5804(0x190),'YFtgF':function(_0x48199a,_0xdee5){return _0x48199a===_0xdee5;},'rsDjR':function(_0x23e51f,_0x3663cb){return _0x23e51f===_0x3663cb;},'Eefdt':'IKAUH','EBltU':'GWsWa','iOEAP':_0x5c5804(0x14f),'uThji':_0x5c5804(0xbf),'RxQuj':function(_0x428365,_0x3cd49c){return _0x428365===_0x3cd49c;},'cNdyD':'ytssa','jtbVj':function(_0xdc7a44,_0x5c82fc){return _0xdc7a44!==_0x5c82fc;},'mQlpF':_0x5c5804(0x21f),'vOatx':'RwLSa','giamB':_0x5c5804(0xcf),'RogHV':function(_0xf899b4,_0x18d51e,_0x3b365e){return _0xf899b4(_0x18d51e,_0x3b365e);},'KrHXm':function(_0x473610,_0x1ce5b9){return _0x473610!==_0x1ce5b9;},'YvBzs':_0x5c5804(0x136),'cBukN':_0x5c5804(0x24f),'PqYze':_0x5c5804(0x1ab),'lLFdg':_0x5c5804(0xc5),'mliyb':_0x5c5804(0x1d9),'DemrM':function(_0x17e9a2,_0x20d933){return _0x17e9a2===_0x20d933;},'iJOwG':function(_0x4cb453,_0x335af9){return _0x4cb453!==_0x335af9;},'udGxq':_0x5c5804(0x1f6),'Vzfli':_0x5c5804(0x224),'MVzOg':_0x5c5804(0x1af),'vwBlY':_0x5c5804(0xec),'GWQon':_0x5c5804(0x18c),'gMuLI':_0x5c5804(0x156),'bZQwi':function(_0xe1ebc,_0x1bce17,_0x2e7221,_0x4e1df0,_0x46b332,_0x4416de,_0x3eb385,_0x3dec36){return _0xe1ebc(_0x1bce17,_0x2e7221,_0x4e1df0,_0x46b332,_0x4416de,_0x3eb385,_0x3dec36);},'qKFnG':_0x5c5804(0x1ae),'UlWaQ':'Grid\x20profile\x20fetched\x20from\x20backend','kFFJG':'nSQIA','iTGQH':'kbUKL','xXcvm':_0x5c5804(0x25c),'NKLbD':_0x5c5804(0x24e),'AFveU':_0x5c5804(0x115),'QSaxs':function(_0x54f393,_0x30790b){return _0x54f393===_0x30790b;},'gscnO':_0x5c5804(0xcc),'hgEgk':_0x5c5804(0x1aa),'yFtri':function(_0x118e30,_0x170f10){return _0x118e30===_0x170f10;},'ZINyV':function(_0x17fc2c,_0xeae726){return _0x17fc2c===_0xeae726;},'viSbw':_0x5c5804(0x134),'vvtwR':function(_0x38422a,_0x2162c8){return _0x38422a!==_0x2162c8;},'jAVqf':'KVOlZ','Mqzcu':'BbEZT','qCDOc':_0x5c5804(0x180),'HkczA':function(_0x230f66,_0x2ddf16,_0x6a869b,_0x1fc8c3,_0x373afe,_0x5cf7c9,_0xa31a31,_0x546f36){return _0x230f66(_0x2ddf16,_0x6a869b,_0x1fc8c3,_0x373afe,_0x5cf7c9,_0xa31a31,_0x546f36);},'lOkPO':'create-grid-checks-invalid-profile','vVwAM':function(_0x3c1d28,_0x169c8b){return _0x3c1d28===_0x169c8b;},'IBayW':function(_0x5e37fc,_0x16d1a6){return _0x5e37fc!==_0x16d1a6;},'NXBgn':_0x5c5804(0x114),'YzvqZ':function(_0xbf95e7,_0x3013cc){return _0xbf95e7===_0x3013cc;},'xqqud':_0x5c5804(0x1d7),'Mrtao':'dVEUh','hqVGE':function(_0x1c0b32,_0x1a25e5){return _0x1c0b32!==_0x1a25e5;},'knCSl':_0x5c5804(0x1a9),'Eqbdl':function(_0x5ce8f5,_0x4e4036){return _0x5ce8f5===_0x4e4036;},'dMamO':'SFVGm','WcEPb':function(_0x1a77f7,_0x2af8f2){return _0x1a77f7(_0x2af8f2);},'dOqaI':_0x5c5804(0xed),'OfMgH':_0x5c5804(0x235),'gyYzw':function(_0x4b63fa,_0x4e7bdf){return _0x4b63fa!==_0x4e7bdf;},'frERn':_0x5c5804(0x212),'OuUqX':_0x5c5804(0x165),'KssRb':function(_0x1e8c8d,_0x5e8553,_0x4315ed,_0x16bfb5,_0xa2e51b,_0x31b374,_0x1f5ca6,_0x152154,_0x5e2355,_0x453435,_0x4033d7,_0x3e9599,_0x487609){return _0x1e8c8d(_0x5e8553,_0x4315ed,_0x16bfb5,_0xa2e51b,_0x31b374,_0x1f5ca6,_0x152154,_0x5e2355,_0x453435,_0x4033d7,_0x3e9599,_0x487609);},'NlzcG':function(_0x1f72d2,_0x1161b9){return _0x1f72d2===_0x1161b9;},'WvNpl':'sbbDI','NEyKb':function(_0xbea401,_0x3b7faf){return _0xbea401!==_0x3b7faf;},'hfkHi':_0x5c5804(0x1f1),'Ikcwc':_0x5c5804(0x244),'oEkfu':'4|7|5|8|6|3|1|0|2','cbkij':function(_0x393c1a,_0x30d411,_0x16415c,_0x3286fd,_0x26c271,_0x8c0932,_0x24069e){return _0x393c1a(_0x30d411,_0x16415c,_0x3286fd,_0x26c271,_0x8c0932,_0x24069e);},'pvSCF':function(_0x2fe011,_0x237e4f){return _0x2fe011!==_0x237e4f;},'YNGhi':_0x5c5804(0x1de),'PSUNW':_0x5c5804(0x15e),'LGuxj':'SCafu','iPzdC':_0x5c5804(0xd8),'WpJCZ':_0x5c5804(0x1d8),'FfAvx':function(_0x55b367,_0x3469be){return _0x55b367!=_0x3469be;},'CmozS':function(_0x366321,_0x539e9f){return _0x366321!==_0x539e9f;},'kCago':function(_0x4da38b,_0x51c288){return _0x4da38b>_0x51c288;},'vMBfV':function(_0x2823e0,_0x3760b1){return _0x2823e0===_0x3760b1;},'TkoHL':_0x5c5804(0x188),'ocueQ':'pre-spawned-subnets-not-selected','Ulutq':_0x5c5804(0x17c),'Vhemi':_0x5c5804(0x256),'BeOUD':'pre-spawned-invalid-subnets','UWnOT':_0x5c5804(0x21e),'pikXU':_0x5c5804(0x20b),'UzfZc':_0x5c5804(0x10b),'jDiDG':function(_0x433274,_0x401236){return _0x433274===_0x401236;},'ubMcJ':_0x5c5804(0x19e),'XoatK':function(_0x233e30,_0x5578a1,_0x3d0b83){return _0x233e30(_0x5578a1,_0x3d0b83);},'wAjPI':'Adding\x20Secret\x20Mapping','tguBE':'../..','qGSdA':_0x5c5804(0x253),'mNytw':_0x5c5804(0x1cb),'UFsDf':_0x5c5804(0x26a),'yOQlP':_0x5c5804(0x164),'arMvp':function(_0x212831,_0x4bb347){return _0x212831(_0x4bb347);},'nkAkb':function(_0x1fd149,_0x1e6af6){return _0x1fd149(_0x1e6af6);},'vDzbj':'Added\x20Secret\x20Mapping','ZCNNE':'efs-csi','FwPlW':_0x5c5804(0x105),'wuyfn':_0x5c5804(0x133),'PEVEC':function(_0x306f81,_0x4c0fa6,_0x1b705d){return _0x306f81(_0x4c0fa6,_0x1b705d);},'EjsTS':_0x5c5804(0x18b),'qQLFu':_0x5c5804(0x263),'ZuACD':'bitnami-kafka.yaml','Nkhkh':_0x5c5804(0x229),'mhIBJ':'Adding\x20Turboscale\x20Uploader\x20deployment...','niaQN':'turboscale-uploader.yaml','BzMcO':_0x5c5804(0x1ce),'gBagN':_0x5c5804(0x109),'NMcEp':_0x5c5804(0x100),'cgJFV':_0x5c5804(0x15f),'QuFQk':function(_0x49f724,_0x5669d6,_0x5082a5,_0x1f77e9,_0x34f49b,_0x4f0e39,_0x179b09,_0xd19071){return _0x49f724(_0x5669d6,_0x5082a5,_0x1f77e9,_0x34f49b,_0x4f0e39,_0x179b09,_0xd19071);},'Rozae':'hub-ha-deployments-failed','BeiML':function(_0x52d5a5,_0x40c781){return _0x52d5a5(_0x40c781);},'xWAxr':_0x5c5804(0x1f0),'jZzbR':_0x5c5804(0x1d2),'cUUix':_0x5c5804(0x189),'ffiRl':_0x5c5804(0xfe),'pnDXT':_0x5c5804(0x123),'UkfET':_0x5c5804(0x1bc),'ENrHi':function(_0x28a51a,_0x5419d1){return _0x28a51a===_0x5419d1;},'ZKrBX':function(_0x4c1b40,_0x1d60c5,_0x441b48,_0x5ca1fe,_0x3cffb1,_0x3197b5,_0x427930,_0x40909a,_0x5d2d95,_0x5e8f87,_0x5734b8){return _0x4c1b40(_0x1d60c5,_0x441b48,_0x5ca1fe,_0x3cffb1,_0x3197b5,_0x427930,_0x40909a,_0x5d2d95,_0x5e8f87,_0x5734b8);},'EedWo':_0x5c5804(0x1e1),'JUGfL':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','CpURt':function(_0x48d3f7,_0x570609,_0x19b362,_0x36d7cd,_0x34694f){return _0x48d3f7(_0x570609,_0x19b362,_0x36d7cd,_0x34694f);},'pxtrG':function(_0x578ba2,_0x18a17b,_0x4952bd){return _0x578ba2(_0x18a17b,_0x4952bd);},'Usrzd':_0x5c5804(0x213),'GSREd':'ingress-nginx-controller','NLhXD':_0x5c5804(0x1b7),'zLEtR':function(_0x4c8dfb,_0x1c889a,_0x5de6c9){return _0x4c8dfb(_0x1c889a,_0x5de6c9);},'atUbd':function(_0x2b0725,_0x3b7ae0){return _0x2b0725===_0x3b7ae0;},'zsnbm':_0x5c5804(0xef),'KBIJE':function(_0x34e052,_0x527782,_0x40a5b9,_0x51e52e,_0x23b4aa,_0x2e48cb,_0x2aac08,_0x2574d0){return _0x34e052(_0x527782,_0x40a5b9,_0x51e52e,_0x23b4aa,_0x2e48cb,_0x2aac08,_0x2574d0);},'HdApo':_0x5c5804(0x264),'Swetx':function(_0x109d06,_0x60df81){return _0x109d06===_0x60df81;},'MUBCo':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','PVKMr':function(_0x15d323,_0x5853f3,_0x5969cf,_0x4ff7bb,_0x2d551e,_0x55b6c1,_0x339068,_0x34dfc0){return _0x15d323(_0x5853f3,_0x5969cf,_0x4ff7bb,_0x2d551e,_0x55b6c1,_0x339068,_0x34dfc0);},'vkSpd':'get-grid-url-auth-failed','theMa':function(_0xf5f3eb,_0x409b93){return _0xf5f3eb!==_0x409b93;},'oGJmI':function(_0x4f78e,_0x12ca40,_0x4d4509,_0x2bdb18,_0xe307b2,_0x54aaae,_0x1030d2,_0x2df7cf){return _0x4f78e(_0x12ca40,_0x4d4509,_0x2bdb18,_0xe307b2,_0x54aaae,_0x1030d2,_0x2df7cf);},'lPjtV':_0x5c5804(0x16e),'cZTZk':_0x5c5804(0xee),'HvmhZ':function(_0x8981cc,_0x181904,_0x2633df,_0xf9f47a,_0x5dc1a1,_0x2eb6e6){return _0x8981cc(_0x181904,_0x2633df,_0xf9f47a,_0x5dc1a1,_0x2eb6e6);},'QvRTC':_0x5c5804(0x205)};let _0x385bc8=![],_0x2b36ee=![],_0x5f48c3,_0x158f3c,_0x3516dd,_0x22dbc0,_0x47b1a7,_0x1dfb06,_0x268b1b,_0x5e5a8e,_0x292d8f,_0x2ae358,_0x75f723,_0x5a7a97,_0x56e74b,_0x2aea2d,_0x170945=0x1,_0x31ba88=0xe;try{global_registry['requestId']=_0x1f4d49['AavRk'](uuidv4),global_registry[_0x5c5804(0x10e)]=![];!fs['existsSync'](_0x1f4d49[_0x5c5804(0x1c3)](getCredentialsPath))&&(_0x1f4d49['GrkVC'](_0x1f4d49[_0x5c5804(0x234)],_0x1f4d49[_0x5c5804(0xd1)])?_0x4314cb=_0x80f277[_0x142b25[_0x5c5804(0x1cc)]]:(console[_0x5c5804(0x1b3)](_0x1f4d49[_0x5c5804(0x1c8)]),await _0x1f4d49[_0x5c5804(0x10a)](sendInstrumentationEvent,_0x4a4ac4,_0x1f4d49[_0x5c5804(0x21a)],messageTypes[_0x5c5804(0xe3)],_0x1f4d49['JOvpd'],null,_0x4a4ac4),process[_0x5c5804(0xe0)](0x1)));await _0x1f4d49[_0x5c5804(0x10a)](sendInstrumentationEvent,_0x4a4ac4,_0x1f4d49[_0x5c5804(0x21a)],messageTypes[_0x5c5804(0x1b2)],null,null,_0x4a4ac4);const _0x2df7de=JSON[_0x5c5804(0x1cd)](fs[_0x5c5804(0x140)](_0x1f4d49[_0x5c5804(0x238)](getCredentialsPath)));global_registry['bstackUsername']=_0x2df7de[_0x5c5804(0x1d2)][_0x5c5804(0x24a)],global_registry[_0x5c5804(0x137)]=_0x2df7de[_0x5c5804(0x1d2)]['password'];const _0x4d2396=WS_ENDPOINT['replace'](_0x1f4d49[_0x5c5804(0x228)],_0x2df7de['Browserstack'][_0x5c5804(0x24a)])[_0x5c5804(0x1c2)](_0x1f4d49[_0x5c5804(0x201)],_0x2df7de[_0x5c5804(0x1d2)][_0x5c5804(0x142)]),_0x54845e={};_0x54845e['WebSocket']=ws,_0x54845e[_0x5c5804(0x130)]=0x36ee80,_0x5a7a97=new ReconnectingWebSocket(_0x4d2396,[],_0x54845e),logger['debug'](_0x1f4d49['DjeGL']),webSocketUtils[_0x5c5804(0x1dd)](_0x5a7a97,_0x4a4ac4[_0x5c5804(0x1ef)],_0x4a4ac4[_0x5c5804(0x142)]);const _0x55e802=_0x4a4ac4[_0x5c5804(0x20f)]||DEFAULT_GRID_NAME;if(_0x4a4ac4['clusterName']||_0x4a4ac4['cloudProvider']||_0x4a4ac4[_0x5c5804(0xe1)]){if(_0x1f4d49['Xqfcv'](_0x1f4d49[_0x5c5804(0x176)],_0x1f4d49['rSSfW'])){!(_0x4a4ac4[_0x5c5804(0x22d)]&&_0x4a4ac4['cloudProvider']&&_0x4a4ac4['region'])&&(_0x1f4d49[_0x5c5804(0x182)](_0x1f4d49[_0x5c5804(0x1db)],_0x1f4d49[_0x5c5804(0x1db)])?(_0x570fd4[_0x5c5804(0xe1)]=_0x28d2bb,_0x3ef013[_0x5c5804(0xdc)]=_0x52a6e8,_0xdb5b1[_0x5c5804(0x24d)]=!![],_0x30a23d[_0x5c5804(0xc8)]=_0x29670f[_0x5c5804(0x1a2)]):(_0x5f48c3=_0x1f4d49[_0x5c5804(0x14a)],await _0x1f4d49[_0x5c5804(0x260)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49['XpPTF'],_0x1f4d49[_0x5c5804(0x14b)],_0x1f4d49[_0x5c5804(0x1fd)]),logger['error'](_0x5f48c3),process['exit'](0x1)));if(![AWS,AZURE,GCP][_0x5c5804(0xf8)](_0x4a4ac4['cloudProvider'][_0x5c5804(0x14e)]())){if(_0x1f4d49[_0x5c5804(0x182)](_0x1f4d49[_0x5c5804(0x19a)],_0x1f4d49[_0x5c5804(0x254)]))_0x5f48c3=_0x1f4d49[_0x5c5804(0xf1)],await _0x1f4d49[_0x5c5804(0x20c)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x203)],_0x1f4d49[_0x5c5804(0x1fd)]),logger['error'](_0x5f48c3),process[_0x5c5804(0xe0)](0x1);else throw new _0x55468c(_0x5c5804(0x170)+_0x4edd1f+_0x5c5804(0x262));}_0x4a4ac4[_0x5c5804(0x147)]&&_0x1f4d49[_0x5c5804(0x143)](_0x4a4ac4[_0x5c5804(0x147)][_0x5c5804(0x14e)](),_0x1f4d49[_0x5c5804(0xe2)])&&(_0x1f4d49[_0x5c5804(0xe5)](_0x1f4d49['Eefdt'],_0x1f4d49[_0x5c5804(0x23c)])?_0x597f2e[_0x5c5804(0x10e)]=!![]:global_registry[_0x5c5804(0x10e)]=!![]);global_registry[_0x5c5804(0xdc)]=_0x4a4ac4[_0x5c5804(0xdc)],global_registry[_0x5c5804(0x1f7)]=_0x4a4ac4['region'],global_registry[_0x5c5804(0x22d)]=_0x4a4ac4[_0x5c5804(0x22d)];const _0x158a0b=await _0x1f4d49['ydLzO'](getCloudProviderObject,_0x4a4ac4['cloudProvider'],_0x4a4ac4['clusterName'],_0x55e802,_0x5a7a97,webSocketUtils,_0x4a4ac4),_0x1c3749=await _0x158a0b[_0x5c5804(0x1c4)]();if(!_0x1c3749)_0x1f4d49[_0x5c5804(0x182)](_0x1f4d49[_0x5c5804(0x1d1)],_0x1f4d49['uThji'])?(logger['info'](_0x5c5804(0x18f)+_0x4a4ac4[_0x5c5804(0x22d)]+_0x5c5804(0x1d5)),_0x385bc8=![],_0x2b36ee=!![]):_0x32eaf7[_0x5c5804(0x10e)]=!![];else{if(_0x1f4d49[_0x5c5804(0x135)](_0x1f4d49['cNdyD'],_0x1f4d49['cNdyD']))_0x385bc8=!![];else{const _0x83e4a6={'azure.workload.identity/use':_0x1f4d49['xpoxs'],..._0x81c277[0x0]['spec'][_0x5c5804(0x250)][_0x5c5804(0x108)][_0x5c5804(0x1ed)]};_0x17fc72[0x0]['spec']['template'][_0x5c5804(0x108)][_0x5c5804(0x1ed)]=_0x83e4a6,_0x71a7d7[0x0][_0x5c5804(0x149)]['template'][_0x5c5804(0x149)][_0x5c5804(0x21d)]=_0x1f4d49[_0x5c5804(0x1fb)];}}_0x3516dd=_0x4a4ac4[_0x5c5804(0x22d)],_0x158f3c=_0x4a4ac4['cloudProvider']['toLowerCase'](),_0x22dbc0=_0x4a4ac4[_0x5c5804(0xe1)];}else{const _0x60e616=_0x1f4d49['Xbabs']['split']('|');let _0x19c2f5=0x0;while(!![]){switch(_0x60e616[_0x19c2f5++]){case'0':_0x3158ba[_0x5c5804(0x17e)]=_0x1f4d49['fasZy'];continue;case'1':_0x52ea7a[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x1f5)]);continue;case'2':_0x3f5bac[_0x5c5804(0x252)]=_0x1f4d49['OQlgI'];continue;case'3':_0x61b485[_0x5c5804(0x269)]=!![];continue;case'4':_0x13828f[_0x5c5804(0x221)]=_0x1f4d49['tTTZx'];continue;}break;}}}else _0x4a4ac4[_0x5c5804(0x1cc)]&&(_0x1f4d49[_0x5c5804(0x1dc)](_0x1f4d49['mQlpF'],_0x1f4d49['vOatx'])?global_registry[_0x5c5804(0x1cc)]=_0x4a4ac4[_0x5c5804(0x1cc)]:_0x225564['sendResourceDataToHST']());global_registry[_0x5c5804(0x20f)]=_0x4a4ac4['gridName'];const _0x1b6e58={'method':_0x1f4d49['giamB'],'headers':_0x1f4d49[_0x5c5804(0x1c7)](getAuthHeader,_0x2df7de[_0x5c5804(0x1d2)][_0x5c5804(0x24a)],_0x2df7de[_0x5c5804(0x1d2)]['password']),'throwHttpErrors':![]},_0x15815d={};_0x15815d[_0x5c5804(0x20f)]=_0x55e802;const _0x26a2af=_0x15815d;if(_0x2b36ee){if(_0x1f4d49[_0x5c5804(0x231)](_0x1f4d49[_0x5c5804(0x249)],_0x1f4d49[_0x5c5804(0x249)])){const _0x33c586=_0x1f4d49[_0x5c5804(0xeb)][_0x5c5804(0x1ca)]('|');let _0x5c839a=0x0;while(!![]){switch(_0x33c586[_0x5c839a++]){case'0':_0x3b11f1=_0x4f5e28[_0x5c5804(0x22c)];continue;case'1':_0x344b92=_0x503b94[_0x5c5804(0x251)];continue;case'2':_0x2b3447[_0x5c5804(0x1a3)](_0x367406);continue;case'3':_0x2f9a4f=null;continue;case'4':const _0x4bda28={};_0x4bda28['type']=_0x24682b[_0x5c5804(0x1f9)],_0x4bda28['message']=_0x3a0b2a,_0x2e39a1[_0x5c5804(0x1ac)](_0x590cb0,_0x4bda28);continue;case'5':_0x121929=null;continue;case'6':_0x41c83e=null;continue;case'7':_0x2b6cf9=_0x5d16b9['maxNodes'];continue;case'8':_0x31b61c=_0x45a90e['s3bucket'];continue;case'9':_0x2905e4=_0x5810ff['concurrency'];continue;case'10':_0x1f4d49[_0x5c5804(0x182)](_0x4c3984['privateGrid'],_0x3f384f)&&_0x23d4a5[_0x5c5804(0x147)]&&(_0x176a88['isPrivateGrid']=!![]);continue;case'11':_0x4e8dd0=_0xe4eb97[_0x5c5804(0x13e)];continue;case'12':_0x1f4d49[_0x5c5804(0x11b)](_0x5cd705,_0x37a96e,_0x51d1e7,_0x1ef58e,_0x67d3a8,_0x3514b6,_0x18af58,_0x190234,_0x501189,_0x1e643c,_0x587d0b,_0x428bc2,_0x43c54e[_0x5c5804(0x1a2)]);continue;case'13':_0x2b19e6=_0x1879a9[_0x5c5804(0x117)];continue;case'14':_0x1d16aa[_0x5c5804(0x269)]&&_0x1f4d49[_0x5c5804(0x11e)](_0x549a27,_0x368580[_0x5c5804(0x145)]);continue;case'15':_0x45b89f=_0x5c5804(0xc1)+_0x57e866;continue;}break;}}else _0x26a2af[_0x5c5804(0xe1)]=_0x22dbc0,_0x26a2af[_0x5c5804(0xdc)]=_0x158f3c,_0x26a2af[_0x5c5804(0x24d)]=!![],_0x26a2af[_0x5c5804(0xc8)]=_0x4a4ac4[_0x5c5804(0x1a2)];}_0x4a4ac4[_0x5c5804(0x1a2)]&&(_0x1f4d49[_0x5c5804(0x143)](_0x1f4d49['cBukN'],_0x1f4d49[_0x5c5804(0x24b)])?logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0xd7)]):_0x216b71=_0x1f4d49[_0x5c5804(0x1f4)]);const _0x2bf578=_0x5c5804(0x104)+AG_API_URL+_0x5c5804(0x15d),_0xb5b60c={'searchParams':_0x26a2af,'throwHttpErrors':![],..._0x1b6e58},_0x427ad6=_0xb5b60c,_0x4b8140=await _0x1f4d49['RogHV'](got,_0x2bf578,_0x427ad6);(_0x1f4d49[_0x5c5804(0x143)](_0x4b8140,null)||_0x1f4d49[_0x5c5804(0x135)](_0x4b8140,undefined))&&(_0x1f4d49[_0x5c5804(0x1dc)](_0x1f4d49[_0x5c5804(0x268)],_0x1f4d49[_0x5c5804(0x268)])?_0x56c363[_0x5c5804(0x1b3)](_0x5c5804(0x1d3)+_0x121273+'\x20\x0a'+_0x481c89[_0x5c5804(0x15a)](_0x4ab48b[_0x5c5804(0x126)])):(_0x5f48c3=_0x1f4d49[_0x5c5804(0x13f)],await _0x1f4d49[_0x5c5804(0x20c)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x1e2)],_0x1f4d49[_0x5c5804(0x1fd)]),logger['error'](_0x5f48c3),process[_0x5c5804(0xe0)](0x1)));if(_0x1f4d49[_0x5c5804(0x21c)](_0x4b8140[_0x5c5804(0x225)],0x191)){if(_0x1f4d49['iJOwG'](_0x1f4d49['udGxq'],_0x1f4d49['Vzfli']))_0x5f48c3=_0x1f4d49[_0x5c5804(0x20a)],await _0x1f4d49[_0x5c5804(0x20c)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes['ERROR'],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x242)],_0x1f4d49[_0x5c5804(0x1fd)]),logger[_0x5c5804(0x1b3)](_0x5f48c3),process['exit'](0x1);else{const _0x315c1c={};_0x315c1c[_0x5c5804(0x206)]=_0x3017da[_0x5c5804(0x1f9)],_0x315c1c[_0x5c5804(0x121)]=_0x5c5804(0x170)+_0x1371d9+_0x5c5804(0x169),_0x4d87d8[_0x5c5804(0x1ac)](_0x5e546a,_0x315c1c,_0x1f4d49[_0x5c5804(0x122)]),_0x1e2509[_0x5c5804(0x1a3)](_0x5c5804(0x170)+_0x5da1d2+_0x5c5804(0x169)),_0x2246f2=!![];if(_0x1f4d49[_0x5c5804(0xd2)](_0x2a6398,!![]))throw new _0x15f388(_0x5c5804(0x170)+_0x13fc4f+_0x5c5804(0x262));}}_0x1f4d49['Xqfcv'](_0x4b8140[_0x5c5804(0x225)],0xc8)&&(_0x1f4d49[_0x5c5804(0x21c)](_0x1f4d49['GWQon'],_0x1f4d49[_0x5c5804(0xbd)])?_0x4ae9e1[_0x5c5804(0x1a3)](_0x5c5804(0xbe)+_0x437de+'\x20'):(_0x5f48c3='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x5c5804(0x15a)](_0x4b8140['body']),await _0x1f4d49[_0x5c5804(0x248)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x237)],_0x1f4d49[_0x5c5804(0x1fd)]),logger['error'](_0x5f48c3),process['exit'](0x1)));const _0x4d9cd6=JSON[_0x5c5804(0x1cd)](_0x4b8140[_0x5c5804(0x177)]),_0x5e76ca={};_0x5e76ca[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x13b)],_0x5e76ca['message']=_0x1f4d49[_0x5c5804(0x22e)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x5e76ca);const _0x243ba4={};_0x243ba4[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x243ba4[_0x5c5804(0x121)]=_0x1f4d49[_0x5c5804(0x23d)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x243ba4);_0x4d9cd6[_0x5c5804(0x124)]&&(_0x1f4d49['RxQuj'](_0x1f4d49[_0x5c5804(0x159)],_0x1f4d49[_0x5c5804(0xcb)])?_0x1f4d49['wZinR'](_0x1d4bda,_0x417e20[_0x5c5804(0x258)]):(_0x5f48c3=_0x5c5804(0x1e3)+_0x55e802+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x1f4d49[_0x5c5804(0x20c)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes['ERROR'],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x179)],_0x1f4d49['SMaNe']),logger[_0x5c5804(0x1b3)](_0x5f48c3),process[_0x5c5804(0xe0)](0x1)));const _0x4e206a=_0x4d9cd6[_0x5c5804(0x23e)];let _0x1d469a=_0x4e206a[_0x4d9cd6['defaultGridProfile']];_0x4a4ac4[_0x5c5804(0x1cc)]&&(_0x1f4d49[_0x5c5804(0x143)](_0x1f4d49[_0x5c5804(0x129)],_0x1f4d49[_0x5c5804(0xc9)])?_0x55dd6a=_0x1f4d49['rXdKA']:_0x1d469a=_0x4e206a[_0x4a4ac4[_0x5c5804(0x1cc)]]);global_registry[_0x5c5804(0x269)]=![];if(_0x4a4ac4[_0x5c5804(0x255)]){if(_0x1f4d49[_0x5c5804(0x233)](_0x1f4d49['gscnO'],_0x1f4d49[_0x5c5804(0x161)])){const _0xd0e3bd=_0x1f4d49[_0x5c5804(0x202)][_0x5c5804(0x1ca)]('|');let _0x53ada1=0x0;while(!![]){switch(_0xd0e3bd[_0x53ada1++]){case'0':logger['info'](_0x1f4d49[_0x5c5804(0x1f5)]);continue;case'1':global_registry[_0x5c5804(0x252)]=_0x1f4d49[_0x5c5804(0x220)];continue;case'2':global_registry['redisPassword']=_0x1f4d49['fasZy'];continue;case'3':global_registry['hubHaNameSpace']=_0x1f4d49[_0x5c5804(0x266)];continue;case'4':global_registry[_0x5c5804(0x269)]=!![];continue;}break;}}else _0x1f4d49[_0x5c5804(0x214)](_0x5f935c,_0x5d7354['kafkaUploader']);}if(_0x1f4d49[_0x5c5804(0x1c0)](_0x385bc8,![])&&_0x1f4d49[_0x5c5804(0x148)](_0x2b36ee,![])){if(_0x1f4d49[_0x5c5804(0x143)](_0x1f4d49[_0x5c5804(0xf7)],_0x1f4d49[_0x5c5804(0xf7)])){_0x1f4d49[_0x5c5804(0x233)](_0x1d469a,undefined)&&(_0x1f4d49[_0x5c5804(0x24c)](_0x1f4d49[_0x5c5804(0x245)],_0x1f4d49[_0x5c5804(0x174)])?(_0x5f48c3=_0x1f4d49[_0x5c5804(0x191)],await _0x1f4d49[_0x5c5804(0x236)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes['ERROR'],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0xdb)],_0x1f4d49['SMaNe']),logger[_0x5c5804(0x1b3)](_0x5f48c3),process[_0x5c5804(0xe0)](0x1)):_0x5a2fc1[_0x5c5804(0x1cc)]=_0x272ebf[_0x5c5804(0x1cc)]);global_registry[_0x5c5804(0x171)]=_0x1d469a['id'],_0x5f48c3='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x55e802+_0x5c5804(0x101)+_0x1d469a[_0x5c5804(0x17b)]+_0x5c5804(0x102),logger[_0x5c5804(0x1a3)](_0x5f48c3);const _0x1aa625={};_0x1aa625[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x1aa625[_0x5c5804(0x121)]=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x1aa625),_0x158f3c=_0x1d469a['cloudProvider'],_0x3516dd=_0x1d469a[_0x5c5804(0x22d)],_0x22dbc0=_0x1d469a['region'],_0x47b1a7=_0x1d469a[_0x5c5804(0x152)],_0x1dfb06=_0x1d469a[_0x5c5804(0x13e)],_0x268b1b=_0x1d469a[_0x5c5804(0xc3)],_0x5e5a8e=_0x1d469a['securityGroups'],_0x292d8f=_0x1d469a[_0x5c5804(0x10c)],_0x2ae358=_0x1d469a[_0x5c5804(0xde)],_0x170945=_0x1d469a[_0x5c5804(0x251)],_0x31ba88=_0x1d469a[_0x5c5804(0x1a0)],_0x56e74b=_0x4d9cd6[_0x5c5804(0x117)],_0x2aea2d=_0x4d9cd6['browserVersion'];if(_0x268b1b&&_0x1f4d49['vVwAM'](_0x268b1b['length'],0x0)){if(_0x1f4d49['IBayW'](_0x1f4d49[_0x5c5804(0x138)],_0x1f4d49[_0x5c5804(0x138)])){const _0x2898b9={};_0x2898b9[_0x5c5804(0x206)]=_0x28d008['LOG'],_0x2898b9[_0x5c5804(0x121)]=_0x3de4b3,_0x11fc2d[_0x5c5804(0x1ac)](_0x28a139,_0x2898b9,_0x1f4d49[_0x5c5804(0x1fd)],!![]);}else _0x268b1b=null;}_0x292d8f&&_0x1f4d49[_0x5c5804(0x1b9)](_0x292d8f[_0x5c5804(0x113)],0x0)&&(_0x1f4d49[_0x5c5804(0xd2)](_0x1f4d49[_0x5c5804(0x12a)],_0x1f4d49[_0x5c5804(0x1a6)])?_0x52ec12[_0x5c5804(0x1a3)]('Found\x20Subnets:\x20'+_0x4c872b[_0x5c5804(0x15a)](_0x20c4bd)+'\x20'):_0x292d8f=null),_0x1f4d49[_0x5c5804(0x1a7)](_0x1d469a[_0x5c5804(0x147)],undefined)&&_0x1d469a[_0x5c5804(0x147)]&&(_0x1f4d49['ZINyV'](_0x1f4d49['knCSl'],_0x1f4d49[_0x5c5804(0x110)])?global_registry['isPrivateGrid']=!![]:_0x4415f7=_0x1f4d49[_0x5c5804(0x131)]),_0x1f4d49[_0x5c5804(0x11b)](updateGlobalRegistryWithConfig,_0x158f3c,_0x3516dd,_0x22dbc0,_0x47b1a7,_0x1dfb06,_0x2ae358,_0x1d469a,_0x56e74b,_0x2aea2d,_0x170945,_0x31ba88,_0x4a4ac4[_0x5c5804(0x1a2)]),global_registry['enableHubHa']&&(_0x1f4d49[_0x5c5804(0x106)](_0x1f4d49[_0x5c5804(0xc7)],_0x1f4d49['dMamO'])?_0x1f4d49['WcEPb'](updateGlobalRegistryForHubHa,_0x4d9cd6[_0x5c5804(0x258)]):_0x1a64d4=null);}else _0x5d61f4[_0x5c5804(0x1a3)](_0x5c5804(0x18f)+_0x5d78ed['clusterName']+_0x5c5804(0x1d5)),_0x2278b2=![],_0x591ff1=!![];}else{if(_0x1f4d49['GrkVC'](_0x2b36ee,!![])){if(_0x1f4d49[_0x5c5804(0x24c)](_0x1f4d49[_0x5c5804(0x1e8)],_0x1f4d49[_0x5c5804(0x141)])){_0x5f48c3=_0x5c5804(0xc1)+_0x55e802,logger[_0x5c5804(0x1a3)](_0x5f48c3);const _0x4820fd={};_0x4820fd[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x4820fd[_0x5c5804(0x121)]=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x4820fd),_0x47b1a7=_0x1d469a[_0x5c5804(0x152)],_0x1dfb06=_0x1d469a[_0x5c5804(0x13e)],_0x268b1b=null,_0x5e5a8e=null,_0x292d8f=null,_0x2ae358=_0x1d469a[_0x5c5804(0xde)],_0x170945=_0x1d469a[_0x5c5804(0x251)],_0x31ba88=_0x1d469a['maxNodes'],_0x56e74b=_0x4d9cd6['hubVersion'],_0x2aea2d=_0x4d9cd6[_0x5c5804(0x22c)];_0x1f4d49[_0x5c5804(0x185)](_0x1d469a[_0x5c5804(0x147)],undefined)&&_0x1d469a['privateGrid']&&(_0x1f4d49[_0x5c5804(0x16f)](_0x1f4d49['frERn'],_0x1f4d49['OuUqX'])?_0x26ba26=!![]:global_registry['isPrivateGrid']=!![]);_0x1f4d49[_0x5c5804(0x1e7)](updateGlobalRegistryWithConfig,_0x158f3c,_0x3516dd,_0x22dbc0,_0x47b1a7,_0x1dfb06,_0x2ae358,_0x1d469a,_0x56e74b,_0x2aea2d,_0x170945,_0x31ba88,_0x4a4ac4['clusterAutoupgrade']);if(global_registry[_0x5c5804(0x269)]){if(_0x1f4d49['NlzcG'](_0x1f4d49[_0x5c5804(0x1f2)],_0x1f4d49['WvNpl']))_0x1f4d49['WcEPb'](updateGlobalRegistryForHubHa,_0x4d9cd6['kafkaUploader']);else{const _0x391ad0=_0x1f4d49[_0x5c5804(0x193)]['split']('|');let _0xb5ee42=0x0;while(!![]){switch(_0x391ad0[_0xb5ee42++]){case'0':_0x564b1b[_0x5c5804(0xdc)]=_0x420eed;continue;case'1':const _0x5735c3={};_0x5735c3['type']=_0xdbf9e3[_0x5c5804(0x1f9)],_0x5735c3['message']=_0x1edbc9,_0x185607[_0x5c5804(0x1ac)](_0x519176,_0x5735c3);continue;case'2':_0x53a35b[_0x5c5804(0x1f7)]=_0x59282a;continue;case'3':const _0x429229={};_0x429229[_0x5c5804(0x206)]=_0x37d2d6[_0x5c5804(0x13b)],_0x429229[_0x5c5804(0x121)]=_0x1f4d49['Wrvyj'],_0x2044fb[_0x5c5804(0x1ac)](_0x5a98a4,_0x429229);continue;case'4':_0x209224=_0x5c5804(0x194)+_0x45d345+_0x5c5804(0xea)+_0x392d68+'\x27';continue;case'5':_0x13254[_0x5c5804(0x22d)]=_0x8cf0a2;continue;case'6':_0x3cd03a[_0x5c5804(0x1a3)](_0x21a64c);continue;case'7':_0x25ce85[_0x5c5804(0x117)]=_0x4e4f18[_0x5c5804(0x117)];continue;case'8':_0x40aedd[_0x5c5804(0x22c)]=_0x3f12c1[_0x5c5804(0x22c)];continue;}break;}}}}else _0x2d7b69=null;}else{if(_0x1f4d49['NEyKb'](_0x1f4d49[_0x5c5804(0x17a)],_0x1f4d49[_0x5c5804(0x181)])){const _0x2a3b43=_0x1f4d49[_0x5c5804(0x18e)][_0x5c5804(0x1ca)]('|');let _0x52d6a9=0x0;while(!![]){switch(_0x2a3b43[_0x52d6a9++]){case'0':global_registry['hubVersion']=_0x4d9cd6[_0x5c5804(0x117)];continue;case'1':global_registry[_0x5c5804(0x22d)]=_0x3516dd;continue;case'2':global_registry[_0x5c5804(0x22c)]=_0x4d9cd6[_0x5c5804(0x22c)];continue;case'3':global_registry[_0x5c5804(0x1f7)]=_0x22dbc0;continue;case'4':const _0x2e87f1={};_0x2e87f1[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x13b)],_0x2e87f1[_0x5c5804(0x121)]=_0x1f4d49[_0x5c5804(0x22e)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x2e87f1);continue;case'5':logger['info'](_0x5f48c3);continue;case'6':global_registry[_0x5c5804(0xdc)]=_0x158f3c;continue;case'7':_0x5f48c3=_0x5c5804(0x194)+_0x55e802+'\x20in\x20existing\x20cluster\x20\x27'+_0x3516dd+'\x27';continue;case'8':const _0x615778={};_0x615778[_0x5c5804(0x206)]=WS_EVENTS['LOG'],_0x615778[_0x5c5804(0x121)]=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x615778);continue;}break;}}else _0x584906[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0xd7)]);}}const _0x7d93d=await _0x1f4d49['cbkij'](getCloudProviderObject,_0x158f3c,_0x3516dd,_0x55e802,_0x5a7a97,webSocketUtils,_0x4a4ac4);_0x1f4d49[_0x5c5804(0xfd)](_0x158f3c,AZURE)&&(_0x1f4d49[_0x5c5804(0x1b9)](_0x1f4d49['YNGhi'],_0x1f4d49['YNGhi'])?_0x7d93d[_0x5c5804(0x241)]():(_0x11b16b=_0x254fdd[_0x5c5804(0x1b4)],_0x226ebc=_0x1f4d49[_0x5c5804(0x10d)]));let _0x2a5c04;if(_0x1f4d49[_0x5c5804(0x16f)](_0x385bc8,![])){_0x5f48c3='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x22dbc0+').';const _0x3b9a7b={};_0x3b9a7b[_0x5c5804(0x206)]=WS_EVENTS['LOG'],_0x3b9a7b[_0x5c5804(0x121)]=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x3b9a7b),logger[_0x5c5804(0x1a3)](_0x5f48c3);const _0x38b619=await _0x7d93d[_0x5c5804(0x1c4)]();if(_0x38b619){if(_0x1f4d49[_0x5c5804(0x143)](_0x1f4d49[_0x5c5804(0xd3)],_0x1f4d49[_0x5c5804(0xd3)])){const _0x3a03c4={};_0x3a03c4[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x3a03c4[_0x5c5804(0x121)]=_0x5c5804(0x170)+_0x3516dd+_0x5c5804(0x169),webSocketUtils['sendEventToBackend'](_0x5a7a97,_0x3a03c4,_0x1f4d49[_0x5c5804(0x122)]),logger[_0x5c5804(0x1a3)](_0x5c5804(0x170)+_0x3516dd+_0x5c5804(0x169)),_0x385bc8=!![];if(_0x1f4d49['YFtgF'](_0x2b36ee,!![])){if(_0x1f4d49[_0x5c5804(0x24c)](_0x1f4d49[_0x5c5804(0x1fc)],_0x1f4d49['iPzdC']))throw new Error(_0x5c5804(0x170)+_0x3516dd+_0x5c5804(0x262));else _0x47eb92[_0x5c5804(0x10e)]=!![];}}else{const _0x4e8dcf={};_0x4e8dcf[_0x5c5804(0x10f)]=_0x1f4d49[_0x5c5804(0x186)],_0x4e8dcf[_0x5c5804(0x206)]=_0x1f4d49[_0x5c5804(0x20d)];const _0x571fb8={};_0x571fb8[_0x5c5804(0x10f)]=_0x1f4d49[_0x5c5804(0x211)],_0x571fb8[_0x5c5804(0x206)]=_0x1f4d49['ugYAq'];const _0x3f338b={};_0x3f338b[_0x5c5804(0x10f)]=_0x1f4d49[_0x5c5804(0x184)],_0x3f338b[_0x5c5804(0x206)]=_0x1f4d49[_0x5c5804(0x20d)];const _0x55b833={};_0x55b833['description']=_0x1f4d49[_0x5c5804(0x19f)],_0x55b833['type']=_0x1f4d49[_0x5c5804(0x20d)];const _0x52ade5={};_0x52ade5['description']=_0x1f4d49[_0x5c5804(0x139)],_0x52ade5[_0x5c5804(0x206)]=_0x1f4d49['ugYAq'];const _0x2b6b2f={};_0x2b6b2f[_0x5c5804(0x10f)]=_0x1f4d49[_0x5c5804(0x1e0)],_0x2b6b2f['type']=_0x1f4d49['ugYAq'];const _0x281c42={};_0x281c42['description']=_0x1f4d49[_0x5c5804(0x25f)],_0x281c42[_0x5c5804(0x206)]=_0x1f4d49[_0x5c5804(0x107)],_0x281c42[_0x5c5804(0x1e5)]=![];const _0x1baf8d={};_0x1baf8d['description']=_0x1f4d49[_0x5c5804(0x265)],_0x1baf8d[_0x5c5804(0x206)]=_0x1f4d49[_0x5c5804(0x107)],_0x1baf8d['default']=![];const _0x464a6f={};_0x464a6f['description']=_0x1f4d49[_0x5c5804(0xc4)],_0x464a6f[_0x5c5804(0x206)]=_0x1f4d49['NqdZY'],_0x464a6f[_0x5c5804(0x1e5)]=![];const _0x279420={};return _0x279420[_0x5c5804(0x1d0)]=_0x4e8dcf,_0x279420[_0x5c5804(0x1ea)]=_0x571fb8,_0x279420[_0x5c5804(0x1b8)]=_0x3f338b,_0x279420[_0x5c5804(0x151)]=_0x55b833,_0x279420[_0x5c5804(0xe1)]=_0x52ade5,_0x279420[_0x5c5804(0xf6)]=_0x2b6b2f,_0x279420[_0x5c5804(0x163)]=_0x281c42,_0x279420[_0x5c5804(0x208)]=_0x1baf8d,_0x279420[_0x5c5804(0x146)]=_0x464a6f,_0x36f478['usage'](_0x52bf38[_0x5c5804(0xcd)])[_0x5c5804(0x1ee)](_0x5747b1)[_0x5c5804(0x1bd)](_0x279420)['help'](_0x1f4d49[_0x5c5804(0x19c)])[_0x5c5804(0x112)];}}else{const _0x3c2d48={};_0x3c2d48[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x3c2d48[_0x5c5804(0x121)]=_0x1f4d49[_0x5c5804(0xf5)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x3c2d48),logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0xf5)]);const _0x32e156=_0x1f4d49[_0x5c5804(0x167)](_0x268b1b,null)&&_0x1f4d49[_0x5c5804(0x1dc)](_0x268b1b,undefined),_0x1b60ba=_0x1f4d49[_0x5c5804(0x167)](_0x292d8f,null)&&_0x1f4d49[_0x5c5804(0x267)](_0x292d8f,undefined)&&_0x1f4d49[_0x5c5804(0x25d)](_0x292d8f['length'],0x0);if(_0x32e156){_0x1f4d49[_0x5c5804(0x1f3)](_0x1b60ba,![])&&(_0x5f48c3=_0x1f4d49[_0x5c5804(0xd9)],await _0x1f4d49[_0x5c5804(0x20c)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x172)],_0x1f4d49[_0x5c5804(0x1fd)]),logger[_0x5c5804(0x1b3)](_0x5f48c3),process['exit'](0x1));const _0x9aa34b=await _0x7d93d['isVPCPresent'](_0x268b1b);_0x1f4d49[_0x5c5804(0x143)](_0x9aa34b,![])?(_0x5f48c3=_0x1f4d49['Ulutq'],await _0x1f4d49[_0x5c5804(0x20c)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49['Vhemi'],_0x1f4d49[_0x5c5804(0x1fd)]),logger[_0x5c5804(0x1b3)](_0x5f48c3),process[_0x5c5804(0xe0)](0x1)):logger[_0x5c5804(0x1a3)](_0x5c5804(0xbe)+_0x268b1b+'\x20');const _0xd96df0=await _0x7d93d[_0x5c5804(0x120)](_0x292d8f,_0x268b1b);_0x1f4d49[_0x5c5804(0x16f)](_0xd96df0[0x0],![])?(_0x5f48c3=_0x5c5804(0x11f)+JSON[_0x5c5804(0x15a)](_0xd96df0[0x1])+_0x5c5804(0x246)+_0x268b1b+_0x5c5804(0x16a),await _0x1f4d49[_0x5c5804(0x248)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x153)],_0x1f4d49['SMaNe']),logger[_0x5c5804(0x1b3)](_0x5f48c3),process[_0x5c5804(0xe0)](0x1)):logger['info'](_0x5c5804(0x19d)+JSON[_0x5c5804(0x15a)](_0x292d8f)+'\x20'),[_0x268b1b,_0x292d8f]=await _0x7d93d['setupNewCluster'](_0x268b1b,_0x292d8f);}else{const _0x50a3f1=_0x1f4d49[_0x5c5804(0x215)][_0x5c5804(0x1ca)]('|');let _0x40e16a=0x0;while(!![]){switch(_0x50a3f1[_0x40e16a++]){case'0':const _0x292348={};_0x292348[_0x5c5804(0x206)]=WS_EVENTS['LOG'],_0x292348[_0x5c5804(0x121)]=_0x1f4d49[_0x5c5804(0xf3)],webSocketUtils['sendEventToBackend'](_0x5a7a97,_0x292348);continue;case'1':[_0x268b1b,_0x292d8f]=await _0x7d93d[_0x5c5804(0x230)](_0x268b1b,_0x292d8f);continue;case'2':logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0xf3)]);continue;case'3':logger['info'](_0x1f4d49[_0x5c5804(0xd5)]);continue;case'4':const _0x21e394={};_0x21e394[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x21e394['message']=_0x1f4d49[_0x5c5804(0xd5)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x21e394);continue;}break;}}}}_0x385bc8&&_0x1f4d49[_0x5c5804(0x233)](_0x158f3c,AZURE)&&(await _0x7d93d['updateClusterAlreadyPresent'](),await _0x7d93d[_0x5c5804(0xf0)]());const [_0x37c10d,_0x150db6,_0xe87a4f,_0x467670,_0x7ad926,_0x269680,_0x2e044c]=await _0x1f4d49[_0x5c5804(0x1c7)](createK8sClient,_0x7d93d,_0x4a4ac4['skipTlsCertVerify']);_0x1f4d49[_0x5c5804(0x119)](_0x385bc8,![])&&_0x1f4d49[_0x5c5804(0x12f)](_0x158f3c,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x2a5c04=await _0x7d93d[_0x5c5804(0x1b5)](_0x37c10d,_0x4a4ac4));if(_0x1f4d49[_0x5c5804(0x119)](_0x385bc8,![])&&global_registry['enableHubHa'])try{await _0x7d93d[_0x5c5804(0x178)](_0x269680,_0x2e044c,_0x4a4ac4,_0x268b1b,_0x292d8f);const _0xef8fe1={};_0xef8fe1[_0x5c5804(0x206)]=WS_EVENTS['LOG'],_0xef8fe1[_0x5c5804(0x121)]=_0x1f4d49[_0x5c5804(0x14c)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0xef8fe1);!await _0x1f4d49[_0x5c5804(0x200)](namespaceExists,_0x37c10d,global_registry['hubHaNameSpace'])&&await _0x1f4d49['RogHV'](createNamespace,_0x37c10d,global_registry[_0x5c5804(0x221)]);logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x12e)]);let _0x1469bd=await fs['readFileAsync'](path['join'](__dirname,_0x1f4d49[_0x5c5804(0x1df)],_0x1f4d49[_0x5c5804(0x196)],_0x1f4d49[_0x5c5804(0x217)],_0x1f4d49[_0x5c5804(0x19b)]),_0x1f4d49[_0x5c5804(0x13a)]);_0x1469bd=_0x1469bd[_0x5c5804(0x1c2)](/<RedisClientPassword>/g,_0x1f4d49[_0x5c5804(0x22f)](encodeBase64,global_registry[_0x5c5804(0x17e)])),_0x1469bd=_0x1469bd[_0x5c5804(0x1c2)](/<KafkaClientPassword>/g,_0x1f4d49[_0x5c5804(0x18d)](encodeBase64,global_registry[_0x5c5804(0x252)])),_0x1469bd=_0x1469bd[_0x5c5804(0x1c2)](/<BstackUsername>/g,_0x1f4d49['nkAkb'](encodeBase64,global_registry[_0x5c5804(0x150)])),_0x1469bd=_0x1469bd[_0x5c5804(0x1c2)](/<BstackAccessKey>/g,_0x1f4d49[_0x5c5804(0x11e)](encodeBase64,global_registry[_0x5c5804(0x137)]));const _0x3fbb73=yaml[_0x5c5804(0xe8)](_0x1469bd);await _0x1f4d49[_0x5c5804(0x1c7)](kubeApply,_0x3fbb73,_0x2e044c),logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x219)]);let _0x155631=_0x1f4d49[_0x5c5804(0xca)];if(_0x1f4d49[_0x5c5804(0x143)](_0x158f3c,AZURE))_0x155631=_0x1f4d49[_0x5c5804(0x131)];else _0x1f4d49[_0x5c5804(0x1b9)](_0x158f3c,GCP)&&(_0x155631=_0x1f4d49['rXdKA']);logger[_0x5c5804(0x1a3)](_0x1f4d49['FwPlW']);let _0x1f7c14=await fs[_0x5c5804(0x1b6)](path['join'](__dirname,_0x1f4d49[_0x5c5804(0x1df)],_0x1f4d49[_0x5c5804(0x196)],_0x1f4d49[_0x5c5804(0x217)],_0x1f4d49[_0x5c5804(0x1bb)]),_0x1f4d49[_0x5c5804(0x13a)]);_0x1f7c14=_0x1f7c14[_0x5c5804(0x1c2)](/<HubHaNameSpace>/g,global_registry[_0x5c5804(0x221)]),_0x1f7c14=_0x1f7c14[_0x5c5804(0x1c2)](/<StorageClassName>/g,_0x155631);const _0x355be0=yaml[_0x5c5804(0xe8)](_0x1f7c14);await _0x1f4d49['PEVEC'](kubeApply,_0x355be0,_0x2e044c),logger['info'](_0x1f4d49[_0x5c5804(0x175)]),logger['info'](_0x1f4d49[_0x5c5804(0x1ba)]);let _0x528d34=await fs['readFileAsync'](path[_0x5c5804(0x166)](__dirname,_0x1f4d49[_0x5c5804(0x1df)],_0x1f4d49['qGSdA'],_0x1f4d49[_0x5c5804(0x217)],_0x1f4d49[_0x5c5804(0x1b0)]),_0x1f4d49[_0x5c5804(0x13a)]);_0x528d34=_0x528d34[_0x5c5804(0x1c2)](/<HubHaNameSpace>/g,global_registry[_0x5c5804(0x221)]),_0x528d34=_0x528d34[_0x5c5804(0x1c2)](/<StorageClassName>/g,_0x155631);const _0x5372bb=yaml['loadAll'](_0x528d34);await _0x1f4d49['RogHV'](kubeApply,_0x5372bb,_0x2e044c),logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x144)]),logger['info'](_0x1f4d49[_0x5c5804(0xe7)]);let _0x4d6d8b=await fs['readFileAsync'](path[_0x5c5804(0x166)](__dirname,_0x1f4d49['tguBE'],_0x1f4d49['qGSdA'],_0x1f4d49[_0x5c5804(0x217)],_0x1f4d49['niaQN']),_0x1f4d49['yOQlP']);_0x4d6d8b=_0x4d6d8b[_0x5c5804(0x1c2)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x4d6d8b=_0x4d6d8b[_0x5c5804(0x1c2)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']);const _0x5b2aec=yaml[_0x5c5804(0xe8)](_0x4d6d8b);_0x1f4d49[_0x5c5804(0x135)](global_registry[_0x5c5804(0xdc)],AZURE)&&(_0x5b2aec[0x0]['spec'][_0x5c5804(0x250)]['metadata'][_0x5c5804(0x1ed)]={'azure.workload.identity/use':_0x1f4d49[_0x5c5804(0xe2)],..._0x5b2aec[0x0][_0x5c5804(0x149)][_0x5c5804(0x250)][_0x5c5804(0x108)][_0x5c5804(0x1ed)]},_0x5b2aec[0x0]['spec'][_0x5c5804(0x250)][_0x5c5804(0x149)][_0x5c5804(0x21d)]=_0x1f4d49[_0x5c5804(0x1fb)]);await _0x1f4d49[_0x5c5804(0x200)](kubeApply,_0x5b2aec,_0x2e044c),logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x1b1)]);const _0x408aa={};_0x408aa[_0x5c5804(0x206)]=WS_EVENTS['LOG'],_0x408aa[_0x5c5804(0x121)]=_0x1f4d49[_0x5c5804(0x17d)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x408aa),logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x23b)]);}catch(_0x52cc31){const _0x243d26=_0x1f4d49[_0x5c5804(0x21b)]['split']('|');let _0x22daee=0x0;while(!![]){switch(_0x243d26[_0x22daee++]){case'0':await _0x1f4d49[_0x5c5804(0x12b)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes['ERROR'],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x25b)],_0x1f4d49[_0x5c5804(0x1fd)]);continue;case'1':process['exit'](0x1);continue;case'2':logger[_0x5c5804(0x1b3)](_0x5f48c3);continue;case'3':await _0x7d93d['deleteCluster'](_0x37c10d,global_registry[_0x5c5804(0x1f7)]);continue;case'4':_0x5f48c3='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x52cc31['message'];continue;}break;}}try{_0x75f723=_0x1f4d49[_0x5c5804(0xf9)](kebabCase,_0x55e802),logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x187)]);const _0x17f0af={};_0x17f0af['type']=WS_EVENTS['LOG'],_0x17f0af['message']=_0x1f4d49[_0x5c5804(0x187)],webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x17f0af);if(_0x1f4d49[_0x5c5804(0x1a7)](_0x75f723,_0x1f4d49[_0x5c5804(0x1fb)])){const _0x308de3={};_0x308de3[_0x5c5804(0x1e9)]=_0x1f4d49['jZzbR'],_0x308de3[_0x5c5804(0x1cf)]=_0x1f4d49[_0x5c5804(0xd6)];const _0x32155a={};_0x32155a[_0x5c5804(0x17b)]=_0x75f723,_0x32155a['annotations']=_0x308de3;const _0x2896e0={};_0x2896e0[_0x5c5804(0x108)]=_0x32155a;const _0x55a686=_0x2896e0,_0x3cdb02={};_0x3cdb02[_0x5c5804(0x177)]=_0x55a686,await _0x37c10d[_0x5c5804(0x132)](_0x3cdb02),logger['info'](_0x1f4d49[_0x5c5804(0x127)]);}const _0x5431f6={};_0x5431f6[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x5431f6['message']=_0x1f4d49[_0x5c5804(0x13c)],webSocketUtils['sendEventToBackend'](_0x5a7a97,_0x5431f6);const _0xfd28a7={};_0xfd28a7[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0xfd28a7[_0x5c5804(0x121)]=_0x1f4d49['pnDXT'],webSocketUtils['sendEventToBackend'](_0x5a7a97,_0xfd28a7),logger[_0x5c5804(0x1a3)](_0x1f4d49[_0x5c5804(0x1e4)]);let _0x10c08a={};_0x1f4d49[_0x5c5804(0x116)](_0x158f3c,AZURE)&&(_0x10c08a={'clientId':await _0x7d93d[_0x5c5804(0x261)](_0x5c5804(0xe4)+_0x3516dd)});await _0x1f4d49[_0x5c5804(0x204)](addGridComponents,_0x37c10d,_0x150db6,_0xe87a4f,_0x467670,_0x75f723,_0x3516dd,_0x2a5c04,_0x7ad926,_0x2e044c,_0x10c08a),_0x5f48c3=_0x1f4d49[_0x5c5804(0x1c6)],logger[_0x5c5804(0x1a3)](_0x5f48c3);const _0x555529={};_0x555529[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x555529['message']=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x555529),_0x5f48c3=_0x1f4d49[_0x5c5804(0x1be)],logger['info'](_0x5f48c3);const _0x57b65f={};_0x57b65f['type']=WS_EVENTS[_0x5c5804(0x1f9)],_0x57b65f[_0x5c5804(0x121)]=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x57b65f),await _0x1f4d49[_0x5c5804(0xd4)](waitForDeployment,_0x150db6,_0x75f723,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x1aa91a=await _0x1f4d49[_0x5c5804(0x1eb)](getNamespaceUID,_0x37c10d,_0x75f723),_0x55b87a=global_registry['isPrivateGrid']?_0x1f4d49[_0x5c5804(0x1a5)]:_0x1f4d49[_0x5c5804(0x103)],_0x52d429={};_0x52d429[_0x5c5804(0x17b)]=_0x55b87a,_0x52d429['namespace']=_0x1f4d49['NLhXD'];const _0x6ddff7=await _0x37c10d[_0x5c5804(0x195)](_0x52d429);let _0x56a579=_0x7d93d[_0x5c5804(0x1a8)](_0x6ddff7)+'/'+_0x75f723,_0x3bdff9=_0x1f4d49[_0x5c5804(0x1f4)];try{const _0x56c9f2=_0x5c5804(0x104)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x1aa91a,_0x46dab9=await _0x1f4d49[_0x5c5804(0x226)](got,_0x56c9f2,_0x1b6e58);(_0x1f4d49[_0x5c5804(0x16f)](_0x46dab9,null)||_0x1f4d49[_0x5c5804(0x22b)](_0x46dab9,undefined))&&(_0x5f48c3=_0x1f4d49[_0x5c5804(0x239)],await _0x1f4d49[_0x5c5804(0x118)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0xe9)],_0x1f4d49[_0x5c5804(0x1fd)]),logger[_0x5c5804(0x1b3)](_0x5f48c3),process['exit'](0x1));_0x1f4d49[_0x5c5804(0x216)](_0x46dab9[_0x5c5804(0x225)],0x191)&&(_0x5f48c3=_0x1f4d49['MUBCo'],await _0x1f4d49[_0x5c5804(0x154)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes['ERROR'],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0xc2)],_0x1f4d49[_0x5c5804(0x1fd)]),logger[_0x5c5804(0x1b3)](_0x5f48c3),process[_0x5c5804(0xe0)](0x1));_0x1f4d49[_0x5c5804(0xf4)](_0x46dab9[_0x5c5804(0x225)],0xc8)&&(_0x5f48c3='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x5c5804(0x15a)](_0x46dab9),await _0x1f4d49[_0x5c5804(0x192)](reportToGalactusAndSendToEDS,_0x4a4ac4,_0x5a7a97,_0x5f48c3,messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x21a)],_0x1f4d49[_0x5c5804(0x209)],_0x1f4d49[_0x5c5804(0x1fd)]),logger['error'](_0x5f48c3),process[_0x5c5804(0xe0)](0x1));const _0xa5e41=JSON[_0x5c5804(0x1cd)](_0x46dab9[_0x5c5804(0x177)]);_0xa5e41[_0x5c5804(0x1b4)]&&(_0x56a579=_0xa5e41[_0x5c5804(0x1b4)],_0x3bdff9=_0x1f4d49[_0x5c5804(0x10d)]),global_registry[_0x5c5804(0x10e)]&&(_0x3bdff9=_0x1f4d49['MCXJe']);}catch(_0x52dabc){}_0x5f48c3=_0x5c5804(0x157)+_0x56a579+'\x20',logger[_0x5c5804(0x1a3)](_0x5f48c3);const _0x34f1ba={};_0x34f1ba[_0x5c5804(0x206)]=WS_EVENTS['LOG'],_0x34f1ba[_0x5c5804(0x121)]=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x34f1ba),_0x5f48c3='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x3bdff9+'://'+_0x56a579+'/wd/hub',logger[_0x5c5804(0x1a3)](_0x5f48c3);const _0x529884={};_0x529884[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x529884[_0x5c5804(0x121)]=_0x5f48c3,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x529884);const _0xbcca2={};_0xbcca2[_0x5c5804(0x206)]=WS_EVENTS['CLI_RUN_FINISHED'],_0xbcca2['message']=_0x5c5804(0x16d)+_0x56a579,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0xbcca2),await webSocketUtils['delay'](0x7d0);}catch(_0x86f727){logger['error'](_0x5c5804(0x15c)+_0x86f727+'\x20\x0a'+JSON[_0x5c5804(0x15a)](_0x86f727['stack']));if(_0x1f4d49[_0x5c5804(0x12f)](_0x385bc8,![]))try{logger['info'](_0x1f4d49[_0x5c5804(0x199)]),await _0x1f4d49['HvmhZ'](removeGridComponents,_0x37c10d,_0x150db6,_0xe87a4f,_0x467670,_0x75f723),await _0x7d93d[_0x5c5804(0x11c)](_0x37c10d,global_registry[_0x5c5804(0x1f7)]);}catch(_0x13063d){logger['error'](_0x5c5804(0x1d3)+_0x13063d+'\x20\x0a'+JSON[_0x5c5804(0x15a)](_0x13063d[_0x5c5804(0x126)]));}throw _0x86f727;}}catch(_0x487583){const _0x379be4='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x487583+'\x20\x0a'+JSON[_0x5c5804(0x15a)](_0x487583[_0x5c5804(0x126)]);if(_0x5a7a97){const _0x2a9817={};_0x2a9817[_0x5c5804(0x206)]=WS_EVENTS[_0x5c5804(0x1f9)],_0x2a9817[_0x5c5804(0x121)]=_0x379be4,webSocketUtils[_0x5c5804(0x1ac)](_0x5a7a97,_0x2a9817,_0x1f4d49['SMaNe'],!![]);}await webSocketUtils['delay'](0x7d0);const _0x1d98ab={};_0x1d98ab[_0x5c5804(0x1b3)]=_0x379be4,await _0x1f4d49[_0x5c5804(0x10a)](sendInstrumentationEvent,_0x4a4ac4,_0x1f4d49[_0x5c5804(0x21a)],messageTypes[_0x5c5804(0xe3)],_0x1f4d49[_0x5c5804(0x218)],_0x1d98ab,_0x4a4ac4),logger[_0x5c5804(0x1b3)](_0x379be4);}process['exit'](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a10_0x3b82(){const _0x5017f4=['YmDAf','delete','1745MgvdLF','gWoSR','3060srlHjj','demandCommand','2818808jrjOGo','7mzBjMY','commandDir','builder','delete_commands','2271700nCHYjx','1FKZvwU','1073061rFvXna','393428GRkXWu','List\x20Grid\x20resources.','216408negtvK','usage','../config/constants','1995318NleUHU','help','desc','handler'];a10_0x3b82=function(){return _0x5017f4;};return a10_0x3b82();}function a10_0xaf61(_0x1e9236,_0x2d8149){const _0x3b8284=a10_0x3b82();return a10_0xaf61=function(_0xaf6149,_0x245a91){_0xaf6149=_0xaf6149-0xfa;let _0x15b713=_0x3b8284[_0xaf6149];return _0x15b713;},a10_0xaf61(_0x1e9236,_0x2d8149);}const a10_0x9476aa=a10_0xaf61;(function(_0x409e4f,_0x1d306a){const _0x2bb2e5=a10_0xaf61,_0x15ef01=_0x409e4f();while(!![]){try{const _0x5a3155=-parseInt(_0x2bb2e5(0xfc))/0x1*(-parseInt(_0x2bb2e5(0xfe))/0x2)+parseInt(_0x2bb2e5(0x100))/0x3+parseInt(_0x2bb2e5(0x10b))/0x4*(parseInt(_0x2bb2e5(0x109))/0x5)+parseInt(_0x2bb2e5(0x103))/0x6*(-parseInt(_0x2bb2e5(0x10e))/0x7)+-parseInt(_0x2bb2e5(0x10d))/0x8+parseInt(_0x2bb2e5(0xfd))/0x9+parseInt(_0x2bb2e5(0xfb))/0xa;if(_0x5a3155===_0x1d306a)break;else _0x15ef01['push'](_0x15ef01['shift']());}catch(_0x26abce){_0x15ef01['push'](_0x15ef01['shift']());}}}(a10_0x3b82,0x302d2));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x9476aa(0x102));exports['command']=a10_0x9476aa(0x108),exports[a10_0x9476aa(0x105)]=a10_0x9476aa(0xff),exports[a10_0x9476aa(0x110)]=function(_0x43439a){const _0x282496=a10_0x9476aa,_0x59bc92={};_0x59bc92[_0x282496(0x107)]=_0x282496(0xfa),_0x59bc92[_0x282496(0x10a)]=_0x282496(0x104);const _0x3e0fb9=_0x59bc92;return _0x43439a[_0x282496(0x101)](HELP_HEADER_MESSAGE['delete'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x282496(0x10f)](_0x3e0fb9[_0x282496(0x107)])[_0x282496(0x10c)]()['recommendCommands']()['strict']()[_0x282496(0x104)](_0x3e0fb9[_0x282496(0x10a)]);},exports[a10_0x9476aa(0x106)]=function(_0x3ef692){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a11_0x1f4c(_0x16cd9e,_0x453029){const _0x1556b7=a11_0x1556();return a11_0x1f4c=function(_0x1f4c92,_0x54433e){_0x1f4c92=_0x1f4c92-0x187;let _0x3c2788=_0x1556b7[_0x1f4c92];return _0x3c2788;},a11_0x1f4c(_0x16cd9e,_0x453029);}const a11_0x5976a2=a11_0x1f4c;function a11_0x1556(){const _0x3fe7f5=['cloudProvider','ojfvr','qsuSd','nKGVE','../../utils/userInput','statusCode','3300300YYldlz','/packages/cli/grid/','wWuWv','desc','builder','got','waNQw','unauthorised','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','clusterId','<UsernamePlaceholder>','warn','boolean','817686zqgLhQ','clusterSpawnedVia','BPzro','rcCiq','QqSgC','invalid-grid-id','3066bagcHL','Ioirx','UQOng','type','default','epilogue','clusterRegion','isBrowserstackCluster','FenGf','NZGZV','LRhPv','ecpze','string','KUWUE','../../config/logger','toLowerCase','body','2919mjLlbH','argv','ERROR','readNamespace','UdlQs','options','requestId','kpkKh','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','gaMdQ','exit','skip-tls-cert-verify','QJfNE','Failed\x20to\x20delete\x20resources!\x20Error:\x20','delete','IcnUb','UKUdV','username','../../utils/utilityMethods','skipTlsCertVerify','description','XLIaF','isClusterPresent','TFxDq','readFileSync','LiGcz','parse','Delete\x20an\x20Automation\x20grid.','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','gridId','error','NieMl','rgqbw','LhjFt','ZeFVB','ZCMjS','server-error','usage','WebSocket','clusterName','xXQkT','init-not-called','command','Namespace:\x20','599qajdvg','WhNeo','XGoRC','https://','../../cloudproviders/utils','catch','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','BNZNt','help','Browserstack','1720XDNYeq','QrDSw','region','LSmPe','Cluster:\x20','GAhQf','../../utils/instrumentationUtils','<PasswordPlaceholder>','reconnecting-websocket','existsSync','gzWzz','VEQuf','../../utils/gridComponents','OwgTY','PfUFb','onlyGridInCluster','info','../../utils/createk8sClient','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','rOkMo','Skip\x20insecure\x20cert\x20verification.','UNlAf','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../config/constants','invalid-input','replace','uuid','WTKeI','2838010eIVNfA','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','then','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','\x22\x20and\x20ID\x20','OAVAE','32WNQHzH','../../utils/webSocketUtils','5267361HuAGvw','Successfully\x20deleted\x20the\x20grid','142TEXqUD','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','grid-id','grid','delete-grid-called','Epyer','2320KzOfNJ','password','Pass\x20the\x20ID\x20of\x20the\x20Grid','JYtJi','name','fjbCy','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','QKXXc','WYIIr','SLCbG','RDWex','\x22\x20with\x20ID\x20','GhUGY','pvJil','uMZBS','VaZKb','message','zjeMn','JnDGu','connectionTimeout','HsQRb'];a11_0x1556=function(){return _0x3fe7f5;};return a11_0x1556();}(function(_0x1f8daf,_0x448fff){const _0xb1605f=a11_0x1f4c,_0x3b1818=_0x1f8daf();while(!![]){try{const _0x4752c7=parseInt(_0xb1605f(0x18f))/0x1*(-parseInt(_0xb1605f(0x1bf))/0x2)+-parseInt(_0xb1605f(0x204))/0x3*(parseInt(_0xb1605f(0x199))/0x4)+-parseInt(_0xb1605f(0x1c5))/0x5*(parseInt(_0xb1605f(0x1f3))/0x6)+parseInt(_0xb1605f(0x1b5))/0x7+parseInt(_0xb1605f(0x1bb))/0x8*(parseInt(_0xb1605f(0x1ed))/0x9)+-parseInt(_0xb1605f(0x1e0))/0xa+parseInt(_0xb1605f(0x1bd))/0xb;if(_0x4752c7===_0x448fff)break;else _0x3b1818['push'](_0x3b1818['shift']());}catch(_0x45dcea){_0x3b1818['push'](_0x3b1818['shift']());}}}(a11_0x1556,0x359fc));const fs=require('fs'),got=require(a11_0x5976a2(0x1e5)),{v4:uuidv4}=require(a11_0x5976a2(0x1b3)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x5976a2(0x1a1)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x5976a2(0x1b0)),{logger}=require(a11_0x5976a2(0x201)),{getCloudProviderObject}=require(a11_0x5976a2(0x193)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x5976a2(0x1a5)),{sendInstrumentationEvent}=require(a11_0x5976a2(0x19f)),{inputConfirmation}=require(a11_0x5976a2(0x1de)),{createK8sClient}=require(a11_0x5976a2(0x1aa)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x5976a2(0x217)),webSocketUtils=require(a11_0x5976a2(0x1bc));exports[a11_0x5976a2(0x18d)]=a11_0x5976a2(0x1c2),exports[a11_0x5976a2(0x1e3)]=a11_0x5976a2(0x220),exports[a11_0x5976a2(0x1e4)]=function(_0x5bc05d){const _0x360e40=a11_0x5976a2,_0x3a3f83={};_0x3a3f83[_0x360e40(0x228)]=_0x360e40(0x1c7),_0x3a3f83[_0x360e40(0x1d3)]=_0x360e40(0x1ff),_0x3a3f83['fjbCy']=_0x360e40(0x1ad),_0x3a3f83[_0x360e40(0x227)]=_0x360e40(0x1ec),_0x3a3f83['DNKsv']=_0x360e40(0x197);const _0x3a6317=_0x3a3f83,_0x1d45bf={};_0x1d45bf[_0x360e40(0x219)]=_0x3a6317[_0x360e40(0x228)],_0x1d45bf[_0x360e40(0x1f6)]=_0x3a6317['uMZBS'];const _0x192e91={};_0x192e91['description']=_0x3a6317[_0x360e40(0x1ca)],_0x192e91[_0x360e40(0x1f6)]=_0x3a6317[_0x360e40(0x227)],_0x192e91[_0x360e40(0x1f7)]=![];const _0x19c4f7={};return _0x19c4f7[_0x360e40(0x1c1)]=_0x1d45bf,_0x19c4f7[_0x360e40(0x210)]=_0x192e91,_0x5bc05d[_0x360e40(0x188)](HELP_HEADER_MESSAGE['delete'])[_0x360e40(0x1f8)](HELP_FOOTER_MESSAGE)[_0x360e40(0x209)](_0x19c4f7)[_0x360e40(0x197)](_0x3a6317['DNKsv'])[_0x360e40(0x205)];},exports['handler']=async function(_0x56620a){const _0x428c87=a11_0x5976a2,_0x451d27={'BPzro':_0x428c87(0x195),'PfUFb':_0x428c87(0x1c7),'ojfvr':'string','gaMdQ':_0x428c87(0x1ad),'gzWzz':_0x428c87(0x1ec),'IcnUb':_0x428c87(0x197),'vaadZ':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Ioirx':function(_0x3e3c8c,_0x39f2c2){return _0x3e3c8c===_0x39f2c2;},'JYtJi':_0x428c87(0x1d9),'xXQkT':function(_0x83f75d,_0x2604ee){return _0x83f75d!==_0x2604ee;},'rcCiq':_0x428c87(0x1d2),'QJfNE':_0x428c87(0x1e2),'QqSgC':_0x428c87(0x1be),'LPlIM':function(_0x52c63f){return _0x52c63f();},'JnDGu':function(_0x4aa79b){return _0x4aa79b();},'FenGf':_0x428c87(0x1fc),'XLIaF':_0x428c87(0x215),'UQOng':_0x428c87(0x1af),'VEQuf':function(_0x4b4634,_0xd8004c,_0x3171ae,_0xb04607,_0x49df62,_0x4580ba,_0x21a439){return _0x4b4634(_0xd8004c,_0x3171ae,_0xb04607,_0x49df62,_0x4580ba,_0x21a439);},'BNZNt':_0x428c87(0x1c3),'NieMl':_0x428c87(0x18c),'Epyer':function(_0x5a23b2,_0x1c3ad7,_0x4caebb,_0x5ddf82,_0x2b4937,_0x13c81c,_0xe9c2ae){return _0x5a23b2(_0x1c3ad7,_0x4caebb,_0x5ddf82,_0x2b4937,_0x13c81c,_0xe9c2ae);},'RDWex':_0x428c87(0x225),'WhNeo':function(_0x4147cd){return _0x4147cd();},'kpkKh':function(_0x1b37d4,_0x553180,_0x456fea,_0x541d23){return _0x1b37d4(_0x553180,_0x456fea,_0x541d23);},'UdlQs':'Browserstack','rOkMo':_0x428c87(0x200),'ffQEo':function(_0x5921da,_0x5e9a1c){return _0x5921da(_0x5e9a1c);},'GAhQf':function(_0x56ce85,_0x3ec29f){return _0x56ce85===_0x3ec29f;},'VaZKb':'eihNO','ecpze':_0x428c87(0x1ab),'LRhPv':_0x428c87(0x1b1),'QrDSw':function(_0x516725,_0x4b398b){return _0x516725!==_0x4b398b;},'OwgTY':'ySlEP','erytT':_0x428c87(0x1ea),'KyVUI':_0x428c87(0x1a0),'qsuSd':function(_0x59f87f,_0x43dcb4,_0x32bf69){return _0x59f87f(_0x43dcb4,_0x32bf69);},'XGoRC':function(_0x304da5,_0x413287,_0x27b8e3,_0x1a8ea3,_0x2ba947,_0x5ea541){return _0x304da5(_0x413287,_0x27b8e3,_0x1a8ea3,_0x2ba947,_0x5ea541);},'WYIIr':_0x428c87(0x21c),'LiGcz':_0x428c87(0x1cc),'zjeMn':_0x428c87(0x19c),'WTKeI':_0x428c87(0x1dd),'UJzNN':'DELETE','IaCiZ':function(_0x17d157,_0x24590d,_0x5f1126){return _0x17d157(_0x24590d,_0x5f1126);},'LhjFt':_0x428c87(0x187),'GhUGY':function(_0x1d8dc4,_0x571923){return _0x1d8dc4===_0x571923;},'SLCbG':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','waNQw':_0x428c87(0x1e7),'UNlAf':_0x428c87(0x1f2),'OAVAE':function(_0x3fe386,_0x1c83b0,_0x362252,_0x97d42b,_0x4e64af,_0x2745bc,_0x337714){return _0x3fe386(_0x1c83b0,_0x362252,_0x97d42b,_0x4e64af,_0x2745bc,_0x337714);},'FDGDR':function(_0x517b1b,_0x38b88e,_0x4aead9,_0x5bab50,_0x3d8c4e,_0x5d69ea,_0x599c85){return _0x517b1b(_0x38b88e,_0x4aead9,_0x5bab50,_0x3d8c4e,_0x5d69ea,_0x599c85);},'MEyWY':'unknown-error'};try{global_registry[_0x428c87(0x20a)]=_0x451d27['LPlIM'](uuidv4);!fs[_0x428c87(0x1a2)](_0x451d27[_0x428c87(0x1d7)](getCredentialsPath))&&(_0x451d27['Ioirx'](_0x451d27[_0x428c87(0x1fb)],_0x451d27[_0x428c87(0x21a)])?_0x39cff1[_0x428c87(0x20f)](0x0):(console['error'](_0x451d27[_0x428c87(0x1f5)]),await _0x451d27[_0x428c87(0x1a4)](sendInstrumentationEvent,_0x56620a,_0x451d27[_0x428c87(0x196)],messageTypes[_0x428c87(0x206)],_0x451d27[_0x428c87(0x224)],null,_0x56620a),process[_0x428c87(0x20f)](0x1)));_0x451d27[_0x428c87(0x1c4)](sendInstrumentationEvent,_0x56620a,_0x451d27[_0x428c87(0x196)],messageTypes['INFO'],null,null,_0x56620a);!_0x56620a['gridId']&&(_0x451d27[_0x428c87(0x18b)](_0x451d27[_0x428c87(0x1cf)],_0x451d27[_0x428c87(0x1cf)])?_0xd5e04b[_0x428c87(0x1eb)](_0x451d27[_0x428c87(0x1ef)]):(console[_0x428c87(0x223)](_0x451d27['vaadZ']),process[_0x428c87(0x20f)](0x1)));const _0x6a5379=JSON[_0x428c87(0x21f)](fs[_0x428c87(0x21d)](_0x451d27[_0x428c87(0x190)](getCredentialsPath))),[_0x2a3405,_0xa92114]=await _0x451d27[_0x428c87(0x20b)](getGridDetails,_0x6a5379['Browserstack'][_0x428c87(0x216)],_0x6a5379[_0x428c87(0x198)][_0x428c87(0x1c6)],_0x56620a[_0x428c87(0x222)]);if(_0xa92114){const _0x4e6a98=_0xa92114[_0x428c87(0x1a9)];let _0x44cb71=_0x428c87(0x221)+_0x4e6a98[_0x428c87(0x1c9)]+_0x428c87(0x1b9)+_0x4e6a98['id']+_0x428c87(0x1b6);if(_0xa92114[_0x428c87(0x1a8)]&&_0x451d27[_0x428c87(0x1f4)](_0xa92114[_0x428c87(0x1ee)],_0x451d27[_0x428c87(0x208)])){if(_0x451d27['xXQkT'](_0x451d27[_0x428c87(0x1ac)],_0x451d27[_0x428c87(0x1ac)])){const _0x6fd9b7={};_0x6fd9b7['description']=_0x451d27[_0x428c87(0x1a7)],_0x6fd9b7[_0x428c87(0x1f6)]=_0x451d27[_0x428c87(0x1db)];const _0x50a0c3={};_0x50a0c3[_0x428c87(0x219)]=_0x451d27[_0x428c87(0x20e)],_0x50a0c3[_0x428c87(0x1f6)]=_0x451d27[_0x428c87(0x1a3)],_0x50a0c3[_0x428c87(0x1f7)]=![];const _0x2631a4={};return _0x2631a4[_0x428c87(0x1c1)]=_0x6fd9b7,_0x2631a4[_0x428c87(0x210)]=_0x50a0c3,_0x5760a0[_0x428c87(0x188)](_0x7becea[_0x428c87(0x213)])[_0x428c87(0x1f8)](_0x2c0150)['options'](_0x2631a4)['help'](_0x451d27[_0x428c87(0x214)])[_0x428c87(0x205)];}else _0x44cb71=_0x428c87(0x221)+_0x4e6a98[_0x428c87(0x1c9)]+'\x22\x20and\x20ID\x20'+_0x4e6a98['id']+_0x428c87(0x1cb)+_0x4e6a98[_0x428c87(0x18a)]+'\x22\x20with\x20ID\x20'+_0x4e6a98[_0x428c87(0x1e9)]+_0x428c87(0x1b6);}const _0x3ed252=await _0x451d27['ffQEo'](inputConfirmation,_0x44cb71);(_0x451d27[_0x428c87(0x1f4)](_0x3ed252,undefined)||_0x451d27[_0x428c87(0x1f4)](_0x3ed252,null)||!(_0x451d27[_0x428c87(0x19e)](_0x3ed252[_0x428c87(0x202)](),'y')||_0x451d27['Ioirx'](_0x3ed252[_0x428c87(0x202)](),'n')))&&(_0x451d27[_0x428c87(0x18b)](_0x451d27['VaZKb'],_0x451d27[_0x428c87(0x1d4)])?_0x170b80[_0x428c87(0x1a9)](_0x428c87(0x18e)+_0x30fc44+_0x428c87(0x1b8)):(console[_0x428c87(0x223)](_0x451d27[_0x428c87(0x1fe)]),await _0x451d27[_0x428c87(0x1c4)](sendInstrumentationEvent,_0x56620a,_0x451d27['BNZNt'],messageTypes['ERROR'],_0x451d27[_0x428c87(0x1fd)],null,_0x56620a),process[_0x428c87(0x20f)](0x1)));_0x451d27[_0x428c87(0x1f4)](_0x3ed252[_0x428c87(0x202)](),'n')&&(_0x451d27[_0x428c87(0x19a)](_0x451d27[_0x428c87(0x1a6)],_0x451d27[_0x428c87(0x1a6)])?(_0x217a58['error'](_0x451d27['vaadZ']),_0x3ccbc0['exit'](0x1)):process[_0x428c87(0x20f)](0x0));const _0x31c909=WS_ENDPOINT[_0x428c87(0x1b2)](_0x451d27['erytT'],_0x6a5379[_0x428c87(0x198)]['username'])[_0x428c87(0x1b2)](_0x451d27['KyVUI'],_0x6a5379[_0x428c87(0x198)][_0x428c87(0x1c6)]),_0x352298={};_0x352298[_0x428c87(0x189)]=ws,_0x352298[_0x428c87(0x1d8)]=0x36ee80;const _0x5c40ad=new ReconnectingWebSocket(_0x31c909,[],_0x352298);global_registry[_0x428c87(0x1f9)]=_0x4e6a98[_0x428c87(0x19b)];const _0x33af28=_0x4e6a98[_0x428c87(0x1da)],_0x56f726=await _0x451d27[_0x428c87(0x1a4)](getCloudProviderObject,_0x33af28,_0x4e6a98[_0x428c87(0x18a)],_0x4e6a98[_0x428c87(0x1c9)],_0x5c40ad,webSocketUtils,_0x56620a),_0x190273=await _0x56f726[_0x428c87(0x21b)]();if(_0x190273){const _0x125e8f=_0x451d27['ffQEo'](kebabCase,_0x4e6a98[_0x428c87(0x1c9)]),[_0x2dd956,_0x181808,_0xe768ca,_0x29082b,_0x10f0d7,_0x351539]=await _0x451d27[_0x428c87(0x1dc)](createK8sClient,_0x56f726,_0x56620a[_0x428c87(0x218)]);let _0x507c96=!![];const _0x5df83d={};_0x5df83d[_0x428c87(0x1c9)]=_0x125e8f,await _0x2dd956[_0x428c87(0x207)](_0x5df83d)[_0x428c87(0x1b7)](_0x592cd1=>{const _0x329b35=_0x428c87;_0x451d27[_0x329b35(0x1f4)](_0x451d27[_0x329b35(0x1c8)],_0x451d27['JYtJi'])?logger[_0x329b35(0x1a9)](_0x329b35(0x18e)+_0x125e8f+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):_0x4ae54b=_0x329b35(0x221)+_0x3c32ec['name']+_0x329b35(0x1b9)+_0x5de012['id']+_0x329b35(0x1cb)+_0x2e6cd9[_0x329b35(0x18a)]+_0x329b35(0x1d0)+_0x4333c7[_0x329b35(0x1e9)]+_0x329b35(0x1b6);})[_0x428c87(0x194)](_0x443604=>{const _0x5c2f17=_0x428c87;_0x451d27[_0x5c2f17(0x18b)](_0x451d27[_0x5c2f17(0x1f0)],_0x451d27[_0x5c2f17(0x211)])?(logger['warn'](_0x5c2f17(0x18e)+_0x125e8f+_0x5c2f17(0x1e8)),_0x507c96=![]):_0x527724['warn'](_0x5c2f17(0x19d)+_0x2b63d0['clusterName']+_0x5c2f17(0x1c0));});if(_0x507c96){await _0x451d27[_0x428c87(0x191)](removeGridComponents,_0x2dd956,_0x181808,_0xe768ca,_0x29082b,_0x125e8f);if(_0xa92114[_0x428c87(0x1a8)]){const _0xe0a13c=await _0x56f726[_0x428c87(0x1fa)]();_0xe0a13c?_0x451d27['xXQkT'](_0x451d27[_0x428c87(0x1cd)],_0x451d27[_0x428c87(0x21e)])?await _0x56f726['deleteCluster'](_0x2dd956,_0x4e6a98['region']):(_0x32d5c2[_0x428c87(0x1a9)](_0x451d27[_0x428c87(0x1f1)]),_0x56fa1e[_0x428c87(0x20f)](0x0)):_0x451d27[_0x428c87(0x19e)](_0x451d27[_0x428c87(0x1d6)],_0x451d27[_0x428c87(0x1b4)])?(_0x25bbd4[_0x428c87(0x1eb)](_0x428c87(0x18e)+_0x18c136+_0x428c87(0x1e8)),_0x177e3a=![]):logger[_0x428c87(0x1eb)](_0x428c87(0x19d)+_0x4e6a98['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger[_0x428c87(0x1eb)](_0x451d27['BPzro']);const _0x53426d=_0x428c87(0x192)+AG_API_URL+_0x428c87(0x1e1)+_0x56620a[_0x428c87(0x222)],_0x423230={'method':_0x451d27['UJzNN'],'headers':_0x451d27[_0x428c87(0x1dc)](getAuthHeader,_0x6a5379[_0x428c87(0x198)]['username'],_0x6a5379['Browserstack']['password']),'throwHttpErrors':![]},_0x5af010=await _0x451d27['IaCiZ'](got,_0x53426d,_0x423230);_0x451d27[_0x428c87(0x18b)](_0x5af010,null)&&_0x451d27[_0x428c87(0x18b)](_0x5af010,undefined)&&_0x451d27[_0x428c87(0x1f4)](_0x5af010[_0x428c87(0x1df)],0xc8)&&(logger[_0x428c87(0x1a9)](_0x451d27[_0x428c87(0x1f1)]),process['exit'](0x0)),logger['error']('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x5af010[_0x428c87(0x203)]),await _0x451d27['Epyer'](sendInstrumentationEvent,_0x56620a,_0x451d27[_0x428c87(0x196)],messageTypes[_0x428c87(0x206)],_0x451d27[_0x428c87(0x226)],_0x2a3405,_0x56620a),process[_0x428c87(0x20f)](0x1);}_0x451d27[_0x428c87(0x1d1)](_0x2a3405[_0x428c87(0x1df)],0x191)&&(logger[_0x428c87(0x223)](_0x451d27[_0x428c87(0x1ce)]),await _0x451d27[_0x428c87(0x1a4)](sendInstrumentationEvent,_0x56620a,_0x451d27[_0x428c87(0x196)],messageTypes[_0x428c87(0x206)],_0x451d27[_0x428c87(0x1e6)],null,_0x56620a),process['exit'](0x1)),_0x451d27[_0x428c87(0x19e)](_0x2a3405[_0x428c87(0x1df)],0x190)&&(logger[_0x428c87(0x223)](JSON[_0x428c87(0x21f)](_0x2a3405[_0x428c87(0x203)])[_0x428c87(0x1d5)]),await _0x451d27['Epyer'](sendInstrumentationEvent,_0x56620a,_0x451d27[_0x428c87(0x196)],messageTypes['ERROR'],_0x451d27[_0x428c87(0x1ae)],null,_0x56620a),process[_0x428c87(0x20f)](0x1)),logger[_0x428c87(0x223)](_0x428c87(0x20d)+JSON[_0x428c87(0x20c)](_0x2a3405)),await _0x451d27[_0x428c87(0x1ba)](sendInstrumentationEvent,_0x56620a,_0x451d27['BNZNt'],messageTypes['ERROR'],_0x451d27[_0x428c87(0x226)],_0x2a3405,_0x56620a),process[_0x428c87(0x20f)](0x1);}catch(_0x5e8836){logger[_0x428c87(0x223)](_0x428c87(0x212)+_0x5e8836['stack']),await _0x451d27['FDGDR'](sendInstrumentationEvent,_0x56620a,_0x451d27[_0x428c87(0x196)],messageTypes[_0x428c87(0x206)],_0x451d27['MEyWY'],_0x5e8836,_0x56620a),process[_0x428c87(0x20f)](0x1);}};
|
|
1
|
+
const a11_0x441e1d=a11_0x11d1;(function(_0x29ba15,_0x59e990){const _0x124903=a11_0x11d1,_0x224faf=_0x29ba15();while(!![]){try{const _0x27190b=parseInt(_0x124903(0x1ee))/0x1+parseInt(_0x124903(0x1f0))/0x2*(parseInt(_0x124903(0x1db))/0x3)+-parseInt(_0x124903(0x1d9))/0x4*(parseInt(_0x124903(0x1cb))/0x5)+-parseInt(_0x124903(0x230))/0x6*(-parseInt(_0x124903(0x216))/0x7)+-parseInt(_0x124903(0x20a))/0x8+parseInt(_0x124903(0x208))/0x9*(-parseInt(_0x124903(0x226))/0xa)+-parseInt(_0x124903(0x1d7))/0xb;if(_0x27190b===_0x59e990)break;else _0x224faf['push'](_0x224faf['shift']());}catch(_0x3a5662){_0x224faf['push'](_0x224faf['shift']());}}}(a11_0x54d2,0x70e82));function a11_0x11d1(_0x3ed480,_0x223e50){const _0x54d2ff=a11_0x54d2();return a11_0x11d1=function(_0x11d18f,_0x32b954){_0x11d18f=_0x11d18f-0x1c8;let _0x5f3ca2=_0x54d2ff[_0x11d18f];return _0x5f3ca2;},a11_0x11d1(_0x3ed480,_0x223e50);}const fs=require('fs'),got=require(a11_0x441e1d(0x25e)),{v4:uuidv4}=require(a11_0x441e1d(0x1d2)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x441e1d(0x229)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x441e1d(0x1f5)),{logger}=require(a11_0x441e1d(0x1c9)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x441e1d(0x24a)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x441e1d(0x23f));exports[a11_0x441e1d(0x1e1)]='grid',exports[a11_0x441e1d(0x204)]=a11_0x441e1d(0x1ef),exports[a11_0x441e1d(0x26a)]=function(_0xf62716){const _0x25db45=a11_0x441e1d,_0x538d88={};_0x538d88['QPjjj']=_0x25db45(0x20c),_0x538d88[_0x25db45(0x211)]='string',_0x538d88[_0x25db45(0x1f6)]='Skip\x20insecure\x20cert\x20verification.',_0x538d88[_0x25db45(0x1e4)]=_0x25db45(0x251),_0x538d88[_0x25db45(0x239)]='help';const _0x3e1dc6=_0x538d88,_0xdad9bb={};_0xdad9bb[_0x25db45(0x1c8)]=_0x3e1dc6[_0x25db45(0x22b)],_0xdad9bb[_0x25db45(0x1cf)]=_0x3e1dc6['Bjxyc'];const _0x2e9280={};_0x2e9280['description']=_0x3e1dc6['GAiJC'],_0x2e9280[_0x25db45(0x1cf)]=_0x3e1dc6['aXrbb'],_0x2e9280[_0x25db45(0x205)]=![];const _0xf191ce={};return _0xf191ce[_0x25db45(0x25c)]=_0xdad9bb,_0xf191ce['skip-tls-cert-verify']=_0x2e9280,_0xf62716[_0x25db45(0x21f)](HELP_HEADER_MESSAGE[_0x25db45(0x213)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x25db45(0x24d)](_0xf191ce)[_0x25db45(0x236)](_0x3e1dc6['fJkoI'])[_0x25db45(0x206)];},exports['handler']=async function(_0x13936e){const _0x59f680=a11_0x441e1d,_0xb3755f={'XlqRe':_0x59f680(0x1fd),'isPGI':'Successfully\x20deleted\x20the\x20grid','frbDm':_0x59f680(0x265),'dhhwy':function(_0x2424c7,_0x24a98e){return _0x2424c7!==_0x24a98e;},'GGmPR':'YnnOu','bobjx':_0x59f680(0x20c),'khZGm':_0x59f680(0x222),'slcGG':'Skip\x20insecure\x20cert\x20verification.','YkcbG':'boolean','gtvDf':'help','iPcrB':function(_0x153fec,_0x51e40e){return _0x153fec===_0x51e40e;},'lFOcC':'ACOiz','wHTGP':_0x59f680(0x25b),'OKSoD':function(_0x3d7aeb){return _0x3d7aeb();},'zoxrb':function(_0x24edad){return _0x24edad();},'wCdLY':function(_0x38bad7,_0x4e6c64){return _0x38bad7===_0x4e6c64;},'UMpsM':'OoAwK','peEEb':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YuVAf':function(_0x46e457,_0x4cdb6d,_0x1c6396,_0x51f23e,_0x37e0c4,_0x40b204,_0xe2d4ec){return _0x46e457(_0x4cdb6d,_0x1c6396,_0x51f23e,_0x37e0c4,_0x40b204,_0xe2d4ec);},'IMwVw':_0x59f680(0x1ec),'BAaSu':_0x59f680(0x219),'ebAOR':function(_0x30c83d,_0x42a787){return _0x30c83d===_0x42a787;},'ujGFE':_0x59f680(0x256),'gsSSb':function(_0x2082d4){return _0x2082d4();},'viomL':function(_0x3ae75b,_0x3f3cb5,_0x5af742,_0x5a2097){return _0x3ae75b(_0x3f3cb5,_0x5af742,_0x5a2097);},'qrGiM':function(_0x3213d6,_0x16e374){return _0x3213d6===_0x16e374;},'ncUbC':_0x59f680(0x22e),'eTLlK':function(_0x166288,_0x53ad88){return _0x166288===_0x53ad88;},'kVjrX':_0x59f680(0x1dc),'pSkqX':_0x59f680(0x22c),'RaWOl':function(_0xd89a70,_0x2a1bf6){return _0xd89a70(_0x2a1bf6);},'lhgeK':function(_0x1c537f,_0x490e8c){return _0x1c537f===_0x490e8c;},'zONDB':function(_0x10fd43,_0xe0bd1c){return _0x10fd43===_0xe0bd1c;},'ezfXT':function(_0x5285c7,_0x1b86fc){return _0x5285c7!==_0x1b86fc;},'HnmTu':_0x59f680(0x238),'WDoLZ':_0x59f680(0x202),'sHqfK':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','IehZr':_0x59f680(0x245),'JeyfM':function(_0x5a558d,_0x1a14ae){return _0x5a558d===_0x1a14ae;},'XgnAL':'ubZHq','xXTYi':_0x59f680(0x1ca),'LBhKN':_0x59f680(0x267),'zpedp':_0x59f680(0x1d0),'WUvxx':function(_0x15eada,_0x5d80bb){return _0x15eada(_0x5d80bb);},'HMKKl':function(_0x135204,_0x56f2e5,_0x40c754){return _0x135204(_0x56f2e5,_0x40c754);},'WWxNv':function(_0xd023d8,_0x1f1d6a,_0x4990cf,_0x5d7f58,_0x1d4666,_0x5c38dd){return _0xd023d8(_0x1f1d6a,_0x4990cf,_0x5d7f58,_0x1d4666,_0x5c38dd);},'ldydX':function(_0x20e6fd,_0x3011a9){return _0x20e6fd!==_0x3011a9;},'lCbWV':_0x59f680(0x1dd),'jFBOA':_0x59f680(0x25a),'XUHCt':'DELETE','qTfYo':function(_0x5161bf,_0x866dc5,_0x47a4f4){return _0x5161bf(_0x866dc5,_0x47a4f4);},'ZXrTp':function(_0x3fc8aa,_0x5473e1,_0x7ad557){return _0x3fc8aa(_0x5473e1,_0x7ad557);},'LNXYP':function(_0x310528,_0x46b557){return _0x310528!==_0x46b557;},'bnCJZ':function(_0x2b34a2,_0x524861){return _0x2b34a2!==_0x524861;},'szDbB':function(_0x29799,_0x39b940){return _0x29799===_0x39b940;},'znxGf':function(_0x4214c4,_0x1bf595,_0x468c28,_0x405292,_0x4a5d54,_0x5147c3,_0x123c85){return _0x4214c4(_0x1bf595,_0x468c28,_0x405292,_0x4a5d54,_0x5147c3,_0x123c85);},'zwRPG':_0x59f680(0x203),'PNKHS':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','HvWIi':function(_0x569c8b,_0xec728e,_0x5de06c,_0x94998e,_0x5601b8,_0x811c6c,_0x2cd25b){return _0x569c8b(_0xec728e,_0x5de06c,_0x94998e,_0x5601b8,_0x811c6c,_0x2cd25b);},'pxJnk':_0x59f680(0x1d5),'YbFqe':function(_0x2aff46,_0x27b606){return _0x2aff46===_0x27b606;},'boLBY':function(_0x1c739e,_0x58dc47,_0x5a3c87,_0x3a2667,_0x2a0d93,_0x4c142b,_0x25b713){return _0x1c739e(_0x58dc47,_0x5a3c87,_0x3a2667,_0x2a0d93,_0x4c142b,_0x25b713);},'pKTKF':'invalid-grid-id','YleSG':function(_0x2ac3e8,_0xbbec56,_0x231e53,_0x519387,_0x436eed,_0x3e7b02,_0x14f31b){return _0x2ac3e8(_0xbbec56,_0x231e53,_0x519387,_0x436eed,_0x3e7b02,_0x14f31b);},'cvsjK':_0x59f680(0x234)};try{global_registry[_0x59f680(0x235)]=_0xb3755f[_0x59f680(0x24c)](uuidv4);!fs['existsSync'](_0xb3755f['zoxrb'](getCredentialsPath))&&(_0xb3755f[_0x59f680(0x269)](_0xb3755f[_0x59f680(0x253)],_0xb3755f[_0x59f680(0x253)])?(console['error'](_0xb3755f[_0x59f680(0x249)]),await _0xb3755f[_0x59f680(0x26c)](sendInstrumentationEvent,_0x13936e,_0xb3755f[_0x59f680(0x268)],messageTypes[_0x59f680(0x21c)],_0xb3755f[_0x59f680(0x258)],null,_0x13936e),process['exit'](0x1)):_0x59cc57[_0x59f680(0x257)]('Cluster:\x20'+_0x2a8bf6[_0x59f680(0x220)]+_0x59f680(0x23b)));_0xb3755f['YuVAf'](sendInstrumentationEvent,_0x13936e,_0xb3755f[_0x59f680(0x268)],messageTypes['INFO'],null,null,_0x13936e);!_0x13936e[_0x59f680(0x1cd)]&&(_0xb3755f[_0x59f680(0x252)](_0xb3755f['ujGFE'],_0xb3755f[_0x59f680(0x232)])?(console['error'](_0xb3755f[_0x59f680(0x1e7)]),process['exit'](0x1)):_0xb1c00b['exit'](0x0));const _0x57235c=JSON[_0x59f680(0x23d)](fs['readFileSync'](_0xb3755f[_0x59f680(0x217)](getCredentialsPath))),[_0x57f627,_0x40e8b0]=await _0xb3755f[_0x59f680(0x20f)](getGridDetails,_0x57235c[_0x59f680(0x22e)]['username'],_0x57235c[_0x59f680(0x22e)][_0x59f680(0x241)],_0x13936e[_0x59f680(0x1cd)]);if(_0x40e8b0){const _0x4dbbf3=_0x40e8b0[_0x59f680(0x264)];let _0x175cac='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x4dbbf3[_0x59f680(0x1e8)]+_0x59f680(0x233)+_0x4dbbf3['id']+_0x59f680(0x20b);_0x40e8b0[_0x59f680(0x22d)]&&_0xb3755f['qrGiM'](_0x40e8b0[_0x59f680(0x24f)],_0xb3755f[_0x59f680(0x1fc)])&&(_0xb3755f[_0x59f680(0x21a)](_0xb3755f[_0x59f680(0x23a)],_0xb3755f['pSkqX'])?(_0x1d5ea7['warn']('Namespace:\x20'+_0x13d57a+_0x59f680(0x248)),_0xf21cf8=![]):_0x175cac=_0x59f680(0x243)+_0x4dbbf3[_0x59f680(0x1e8)]+_0x59f680(0x233)+_0x4dbbf3['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x4dbbf3[_0x59f680(0x220)]+_0x59f680(0x1ce)+_0x4dbbf3[_0x59f680(0x1f1)]+_0x59f680(0x20b));const _0x208ca2=await _0xb3755f[_0x59f680(0x263)](inputConfirmation,_0x175cac);(_0xb3755f[_0x59f680(0x252)](_0x208ca2,undefined)||_0xb3755f[_0x59f680(0x1e2)](_0x208ca2,null)||!(_0xb3755f[_0x59f680(0x254)](_0x208ca2[_0x59f680(0x1d1)](),'y')||_0xb3755f[_0x59f680(0x221)](_0x208ca2['toLowerCase'](),'n')))&&(_0xb3755f[_0x59f680(0x223)](_0xb3755f[_0x59f680(0x24e)],_0xb3755f[_0x59f680(0x1de)])?(console['error'](_0xb3755f[_0x59f680(0x240)]),await _0xb3755f[_0x59f680(0x26c)](sendInstrumentationEvent,_0x13936e,_0xb3755f[_0x59f680(0x268)],messageTypes[_0x59f680(0x21c)],_0xb3755f[_0x59f680(0x210)],null,_0x13936e),process['exit'](0x1)):(_0x3a1fa0[_0x59f680(0x1f7)](_0xb3755f[_0x59f680(0x1e7)]),_0x17f833['exit'](0x1)));_0xb3755f[_0x59f680(0x215)](_0x208ca2[_0x59f680(0x1d1)](),'n')&&(_0xb3755f[_0x59f680(0x25d)](_0xb3755f[_0x59f680(0x23e)],_0xb3755f[_0x59f680(0x1fa)])?process[_0x59f680(0x227)](0x0):(_0xda0eab['info'](_0xb3755f[_0x59f680(0x200)]),_0x165358['exit'](0x0)));const _0x21bf1f=WS_ENDPOINT['replace'](_0xb3755f['LBhKN'],_0x57235c[_0x59f680(0x22e)][_0x59f680(0x1da)])[_0x59f680(0x224)](_0xb3755f[_0x59f680(0x24b)],_0x57235c['Browserstack'][_0x59f680(0x241)]),_0x549a42={};_0x549a42[_0x59f680(0x1ff)]=ws,_0x549a42['connectionTimeout']=0x36ee80;const _0x1b02ce=new ReconnectingWebSocket(_0x21bf1f,[],_0x549a42);global_registry[_0x59f680(0x262)]=_0x4dbbf3[_0x59f680(0x22a)];const _0xc9a89c=_0x4dbbf3[_0x59f680(0x231)],_0x3a8b31=await _0xb3755f[_0x59f680(0x26c)](getCloudProviderObject,_0xc9a89c,_0x4dbbf3[_0x59f680(0x220)],_0x4dbbf3[_0x59f680(0x1e8)],_0x1b02ce,webSocketUtils,_0x13936e),_0x1c14fb=await _0x3a8b31['isClusterPresent']();if(_0x1c14fb){const _0x43b0c3=_0xb3755f[_0x59f680(0x1d8)](kebabCase,_0x4dbbf3[_0x59f680(0x1e8)]),[_0x127a9c,_0x50b59a,_0x464f3b,_0x3c5ccf,_0x49902f,_0x1ac429]=await _0xb3755f[_0x59f680(0x207)](createK8sClient,_0x3a8b31,_0x13936e[_0x59f680(0x250)]);let _0x57469d=!![];const _0x1d2792={};_0x1d2792[_0x59f680(0x1e8)]=_0x43b0c3,await _0x127a9c[_0x59f680(0x1f9)](_0x1d2792)[_0x59f680(0x1e3)](_0x44c67b=>{const _0x33bf44=_0x59f680,_0x463277={};_0x463277[_0x33bf44(0x201)]=_0xb3755f['frbDm'];const _0x52f7b=_0x463277;_0xb3755f[_0x33bf44(0x25d)](_0xb3755f[_0x33bf44(0x242)],_0xb3755f['GGmPR'])?_0x5a89fc[_0x33bf44(0x257)](_0x52f7b[_0x33bf44(0x201)]):logger['info']('Namespace:\x20'+_0x43b0c3+_0x33bf44(0x1ed));})[_0x59f680(0x1d6)](_0x328f9f=>{const _0xf78867=_0x59f680,_0x4ff691={};_0x4ff691[_0xf78867(0x1e9)]=_0xb3755f[_0xf78867(0x1f3)],_0x4ff691[_0xf78867(0x22f)]=_0xb3755f[_0xf78867(0x209)],_0x4ff691[_0xf78867(0x1f2)]=_0xb3755f[_0xf78867(0x1d4)],_0x4ff691['zmvjR']=_0xb3755f[_0xf78867(0x261)],_0x4ff691[_0xf78867(0x218)]=_0xb3755f[_0xf78867(0x1df)];const _0x1d8f00=_0x4ff691;if(_0xb3755f[_0xf78867(0x1e2)](_0xb3755f['lFOcC'],_0xb3755f[_0xf78867(0x212)])){const _0x39da6c={};_0x39da6c['description']=_0x1d8f00['QIElY'],_0x39da6c[_0xf78867(0x1cf)]=_0x1d8f00[_0xf78867(0x22f)];const _0x82fc17={};_0x82fc17['description']=_0x1d8f00[_0xf78867(0x1f2)],_0x82fc17[_0xf78867(0x1cf)]=_0x1d8f00[_0xf78867(0x25f)],_0x82fc17['default']=![];const _0x2ef6c2={};return _0x2ef6c2[_0xf78867(0x25c)]=_0x39da6c,_0x2ef6c2[_0xf78867(0x246)]=_0x82fc17,_0x410e0a[_0xf78867(0x21f)](_0x5dda64['delete'])[_0xf78867(0x20d)](_0x3adf22)[_0xf78867(0x24d)](_0x2ef6c2)[_0xf78867(0x236)](_0x1d8f00[_0xf78867(0x218)])[_0xf78867(0x206)];}else logger[_0xf78867(0x257)](_0xf78867(0x23c)+_0x43b0c3+_0xf78867(0x248)),_0x57469d=![];});if(_0x57469d){await _0xb3755f['WWxNv'](removeGridComponents,_0x127a9c,_0x50b59a,_0x464f3b,_0x3c5ccf,_0x43b0c3);if(_0x40e8b0[_0x59f680(0x22d)]){const _0x69717=await _0x3a8b31[_0x59f680(0x26d)]();_0x69717?_0xb3755f[_0x59f680(0x1fe)](_0xb3755f[_0x59f680(0x255)],_0xb3755f[_0x59f680(0x255)])?_0x434606[_0x59f680(0x264)](_0x59f680(0x23c)+_0x4b009f+_0x59f680(0x1ed)):await _0x3a8b31['deleteCluster'](_0x127a9c,_0x4dbbf3['region']):_0xb3755f[_0x59f680(0x25d)](_0xb3755f[_0x59f680(0x1d3)],_0xb3755f[_0x59f680(0x1d3)])?_0x5ee8ff=_0x59f680(0x243)+_0x442678[_0x59f680(0x1e8)]+'\x22\x20and\x20ID\x20'+_0x4926c4['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x2abb5c[_0x59f680(0x220)]+_0x59f680(0x1ce)+_0x47efbd[_0x59f680(0x1f1)]+_0x59f680(0x20b):logger[_0x59f680(0x257)](_0x59f680(0x1f8)+_0x4dbbf3[_0x59f680(0x220)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger[_0x59f680(0x257)](_0xb3755f[_0x59f680(0x21b)]);const _0x1af088=_0x59f680(0x1eb)+AG_API_URL+_0x59f680(0x1f4)+_0x13936e[_0x59f680(0x1cd)],_0x471f67={'method':_0xb3755f[_0x59f680(0x1cc)],'headers':_0xb3755f[_0x59f680(0x1ea)](getAuthHeader,_0x57235c[_0x59f680(0x22e)]['username'],_0x57235c[_0x59f680(0x22e)][_0x59f680(0x241)]),'throwHttpErrors':![]},_0x259ef7=await _0xb3755f[_0x59f680(0x260)](got,_0x1af088,_0x471f67);_0xb3755f[_0x59f680(0x247)](_0x259ef7,null)&&_0xb3755f[_0x59f680(0x266)](_0x259ef7,undefined)&&_0xb3755f[_0x59f680(0x1fb)](_0x259ef7[_0x59f680(0x259)],0xc8)&&(logger[_0x59f680(0x264)](_0xb3755f[_0x59f680(0x200)]),process['exit'](0x0)),logger[_0x59f680(0x1f7)](_0x59f680(0x244)+_0x259ef7['body']),await _0xb3755f[_0x59f680(0x228)](sendInstrumentationEvent,_0x13936e,_0xb3755f['IMwVw'],messageTypes['ERROR'],_0xb3755f['zwRPG'],_0x57f627,_0x13936e),process[_0x59f680(0x227)](0x1);}_0xb3755f[_0x59f680(0x254)](_0x57f627[_0x59f680(0x259)],0x191)&&(logger[_0x59f680(0x1f7)](_0xb3755f[_0x59f680(0x1e6)]),await _0xb3755f['HvWIi'](sendInstrumentationEvent,_0x13936e,_0xb3755f['IMwVw'],messageTypes[_0x59f680(0x21c)],_0xb3755f[_0x59f680(0x1e5)],null,_0x13936e),process['exit'](0x1)),_0xb3755f[_0x59f680(0x21e)](_0x57f627['statusCode'],0x190)&&(logger[_0x59f680(0x1f7)](JSON['parse'](_0x57f627['body'])[_0x59f680(0x21d)]),await _0xb3755f[_0x59f680(0x214)](sendInstrumentationEvent,_0x13936e,_0xb3755f[_0x59f680(0x268)],messageTypes[_0x59f680(0x21c)],_0xb3755f[_0x59f680(0x237)],null,_0x13936e),process[_0x59f680(0x227)](0x1)),logger[_0x59f680(0x1f7)](_0x59f680(0x225)+JSON['stringify'](_0x57f627)),await _0xb3755f[_0x59f680(0x1e0)](sendInstrumentationEvent,_0x13936e,_0xb3755f[_0x59f680(0x268)],messageTypes[_0x59f680(0x21c)],_0xb3755f[_0x59f680(0x20e)],_0x57f627,_0x13936e),process[_0x59f680(0x227)](0x1);}catch(_0x276293){logger[_0x59f680(0x1f7)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x276293[_0x59f680(0x26b)]),await _0xb3755f[_0x59f680(0x1e0)](sendInstrumentationEvent,_0x13936e,_0xb3755f[_0x59f680(0x268)],messageTypes[_0x59f680(0x21c)],_0xb3755f['cvsjK'],_0x276293,_0x13936e),process['exit'](0x1);}};function a11_0x54d2(){const _0x887383=['IehZr','Bjxyc','wHTGP','delete','boLBY','JeyfM','35917nbbjqH','gsSSb','Oiidk','init-not-called','eTLlK','frbDm','ERROR','message','YbFqe','usage','clusterName','zONDB','string','ezfXT','replace','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','2662070vCRdOp','exit','znxGf','reconnecting-websocket','region','QPjjj','hsSfY','onlyGridInCluster','Browserstack','LipYC','1002NGtGbB','cloudProvider','ujGFE','\x22\x20and\x20ID\x20','unknown-error','requestId','help','pKTKF','vDpPI','fJkoI','kVjrX','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Namespace:\x20','parse','XgnAL','../../utils/webSocketUtils','sHqfK','password','GGmPR','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','invalid-input','skip-tls-cert-verify','LNXYP','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','peEEb','../../utils/createk8sClient','zpedp','OKSoD','options','HnmTu','clusterSpawnedVia','skipTlsCertVerify','boolean','ebAOR','UMpsM','lhgeK','lCbWV','NQvBQ','warn','BAaSu','statusCode','hEyKw','CWHQK','grid-id','dhhwy','got','zmvjR','ZXrTp','YkcbG','clusterRegion','RaWOl','info','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','bnCJZ','<UsernamePlaceholder>','IMwVw','wCdLY','builder','stack','YuVAf','isBrowserstackCluster','description','../../config/logger','QNyqG','237890sONPyS','XUHCt','gridId','\x22\x20with\x20ID\x20','type','<PasswordPlaceholder>','toLowerCase','uuid','jFBOA','slcGG','unauthorised','catch','571406WjhqGb','WUvxx','44xwFILg','username','103551DeqzFs','AlBRR','ntCRC','WDoLZ','gtvDf','YleSG','command','iPcrB','then','aXrbb','pxJnk','PNKHS','XlqRe','name','QIElY','qTfYo','https://','delete-grid-called','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','108561DWSkHR','Delete\x20an\x20Automation\x20grid.','38SYVDFa','clusterId','TyWUK','bobjx','/packages/cli/grid/','../../config/constants','GAiJC','error','Cluster:\x20','readNamespace','xXTYi','szDbB','ncUbC','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','ldydX','WebSocket','isPGI','VHjCi','UKZJT','server-error','desc','default','argv','HMKKl','9JjNhVB','khZGm','2538272iyoorx','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Pass\x20the\x20ID\x20of\x20the\x20Grid','epilogue','zwRPG','viomL'];a11_0x54d2=function(){return _0x887383;};return a11_0x54d2();}
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0x515b(){const _0x68a887=['util','619260OSAjWF','wyVJx','TMXiz','qzIcM','description','AvqXh','bstackAccesskey','iOZUp','pgAos','PTUwL','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','MIBjg','2279052gerdWl','builder','SiTjh','recommendCommands','options','INFO','rUrzu','type','existsSync','7018064GhWVgh','username','pTFuB','password','bstack-username','usage','OIDPm','rEGPU','BROWSERSTACK_ACCESS_KEY','epilogue','exit','CXwMV','GSWbQ','utf-8','OgJdW','bstack-accesskey','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','aAqjn','../utils/userInput','../config/logger','aTMLf','13dwMJnP','kLliA','rmrjS','SqjUK','Toglf','../config/constants','statusCode','ERROR','gmQTD','wuPTp','HNnFf','305683cisTuW','init-called','OuZRx','strict','GET','BROWSERSTACK_USERNAME','lTjzX','YZKyt','huqHz','TrvQg','cTnlQ','mkdirSync','hynOj','CBKnb','error','3420494hbZZfy','XdRLR','writeFileSync','Browserstack','got','6EajxRc','debug','zazQc','wBAQV','string','../utils/instrumentationUtils','pVohN','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','uuid','tfoKH','unknown-error','27658lMIdpx','env','zYNhf','qkVEZ','GJDCH','CpwjJ','18EstTGT','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstackUsername','init','hthDd','QKxsl','EeMCU','parse','help','stringify','2585390YIHGdu','VRNxH','/automate/plan.json','wrong-creds','WVLyl','WxEBz','../utils/utilityMethods','SyfKE','tacNq','readFileSync','20BCgUVT','XvgIr','argv','XRzhB'];a12_0x515b=function(){return _0x68a887;};return a12_0x515b();}const a12_0x208790=a12_0x49c5;function a12_0x49c5(_0x70ace1,_0x19fb7d){const _0x515b25=a12_0x515b();return a12_0x49c5=function(_0x49c5f9,_0x48cbc5){_0x49c5f9=_0x49c5f9-0xae;let _0x11e31c=_0x515b25[_0x49c5f9];return _0x11e31c;},a12_0x49c5(_0x70ace1,_0x19fb7d);}(function(_0x57e1fa,_0x374719){const _0x5831ef=a12_0x49c5,_0x280822=_0x57e1fa();while(!![]){try{const _0x18ef0b=parseInt(_0x5831ef(0xbc))/0x1*(parseInt(_0x5831ef(0xe6))/0x2)+-parseInt(_0x5831ef(0x111))/0x3+parseInt(_0x5831ef(0x100))/0x4*(-parseInt(_0x5831ef(0x105))/0x5)+parseInt(_0x5831ef(0xdb))/0x6*(-parseInt(_0x5831ef(0xc7))/0x7)+parseInt(_0x5831ef(0x11a))/0x8+parseInt(_0x5831ef(0xec))/0x9*(parseInt(_0x5831ef(0xf6))/0xa)+parseInt(_0x5831ef(0xd6))/0xb;if(_0x18ef0b===_0x374719)break;else _0x280822['push'](_0x280822['shift']());}catch(_0x2abe7b){_0x280822['push'](_0x280822['shift']());}}}(a12_0x515b,0x70e76));const fs=require('fs'),util=require(a12_0x208790(0x104)),got=require(a12_0x208790(0xda)),{v4:uuidv4}=require(a12_0x208790(0xe3)),{logger}=require(a12_0x208790(0xba)),{inputBstackKeys}=require(a12_0x208790(0xb9)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x208790(0xc1)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x208790(0xfc)),{sendInstrumentationEvent}=require(a12_0x208790(0xe0));exports['command']=a12_0x208790(0xef),exports['desc']=a12_0x208790(0xe2),exports[a12_0x208790(0x112)]=function(_0xbe74d3){const _0x59cf25=a12_0x208790,_0x282c95={};_0x282c95[_0x59cf25(0xf2)]=_0x59cf25(0xb7),_0x282c95[_0x59cf25(0xde)]=_0x59cf25(0xdf),_0x282c95['zazQc']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x282c95['YZKyt']=_0x59cf25(0xf4);const _0x79123f=_0x282c95,_0x371684={};_0x371684[_0x59cf25(0x109)]=_0x79123f[_0x59cf25(0xf2)],_0x371684[_0x59cf25(0x118)]=_0x79123f[_0x59cf25(0xde)];const _0x11b356={};_0x11b356[_0x59cf25(0x109)]=_0x79123f[_0x59cf25(0xdd)],_0x11b356[_0x59cf25(0x118)]=_0x79123f[_0x59cf25(0xde)];const _0x7ddb62={};return _0x7ddb62[_0x59cf25(0x11e)]=_0x371684,_0x7ddb62[_0x59cf25(0xb6)]=_0x11b356,_0xbe74d3[_0x59cf25(0x11f)](HELP_HEADER_MESSAGE[_0x59cf25(0xef)])[_0x59cf25(0xb0)](HELP_FOOTER_MESSAGE)[_0x59cf25(0x115)](_0x7ddb62)['recommendCommands']()[_0x59cf25(0xca)]()['help'](_0x79123f[_0x59cf25(0xce)])['argv'];},exports['handler']=async function(_0x3f0336){const _0x5f31e8=a12_0x208790,_0x5106d0={'QKxsl':_0x5f31e8(0xb7),'quEiU':_0x5f31e8(0xdf),'XdRLR':_0x5f31e8(0xed),'kLliA':'help','tacNq':function(_0x38f66e){return _0x38f66e();},'SqjUK':_0x5f31e8(0xb4),'zYNhf':function(_0x23458a){return _0x23458a();},'eIpOw':function(_0x393835,_0x1177a8,_0x1b30bb,_0x14e302,_0x5a9682,_0xd1961,_0x2c8175){return _0x393835(_0x1177a8,_0x1b30bb,_0x14e302,_0x5a9682,_0xd1961,_0x2c8175);},'GJDCH':_0x5f31e8(0xc8),'SiTjh':function(_0x408cb5,_0x5a7170){return _0x408cb5===_0x5a7170;},'WxEBz':'fyyAy','aTMLf':_0x5f31e8(0xeb),'gmQTD':_0x5f31e8(0xcd),'CXwMV':function(_0x17021b,_0x256f3b){return _0x17021b!==_0x256f3b;},'rmrjS':_0x5f31e8(0xb3),'XvgIr':'tkuKi','pTFuB':_0x5f31e8(0xb5),'OIDPm':function(_0x25bb33,_0x2ea772){return _0x25bb33!==_0x2ea772;},'AvqXh':'tfdFT','tfoKH':_0x5f31e8(0xf7),'MUzdI':function(_0x38343e,_0x26caa4){return _0x38343e===_0x26caa4;},'WVLyl':function(_0x2b8f17,_0x1cc8fc){return _0x2b8f17!==_0x1cc8fc;},'rEGPU':_0x5f31e8(0xd1),'TrvQg':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','sQWdT':function(_0x252306){return _0x252306();},'GHRyS':_0x5f31e8(0xcb),'TMXiz':function(_0xd54ea2,_0x1d7d22,_0x10b047){return _0xd54ea2(_0x1d7d22,_0x10b047);},'aAqjn':function(_0x26a7cf,_0x3fc696,_0x5bac38){return _0x26a7cf(_0x3fc696,_0x5bac38);},'qkVEZ':function(_0x5e3312,_0x2a829a){return _0x5e3312!==_0x2a829a;},'qzIcM':function(_0xe099f,_0x3c82e0){return _0xe099f===_0x3c82e0;},'pgAos':function(_0x53ab1a,_0x3bd2dc){return _0x53ab1a!==_0x3bd2dc;},'CBKnb':_0x5f31e8(0x117),'wuPTp':_0x5f31e8(0x106),'SyfKE':_0x5f31e8(0x103),'Toglf':'FBnhS','hthDd':function(_0xf838df,_0x5d909f){return _0xf838df===_0x5d909f;},'huqHz':_0x5f31e8(0x10c),'PTUwL':_0x5f31e8(0xe1),'HNnFf':_0x5f31e8(0x10f),'hynOj':function(_0x1fdf31,_0x36fd1f,_0x249c9d,_0x5534d1,_0x29558f,_0x2b93d4,_0x32af67){return _0x1fdf31(_0x36fd1f,_0x249c9d,_0x5534d1,_0x29558f,_0x2b93d4,_0x32af67);},'OuZRx':_0x5f31e8(0xf9),'MIBjg':function(_0x2df6e8,_0x1ad2d3,_0x546b93,_0x489184,_0x2bbb61,_0x1f9c0f,_0x588f44){return _0x2df6e8(_0x1ad2d3,_0x546b93,_0x489184,_0x2bbb61,_0x1f9c0f,_0x588f44);},'ormat':_0x5f31e8(0xe5)};try{global_registry['requestId']=_0x5106d0[_0x5f31e8(0xe8)](uuidv4),_0x5106d0['eIpOw'](sendInstrumentationEvent,_0x3f0336,_0x5106d0[_0x5f31e8(0xea)],messageTypes[_0x5f31e8(0x116)],null,null,_0x3f0336);const _0x2ccc56=_0x5106d0[_0x5f31e8(0xe8)](getDirForConfig);!fs[_0x5f31e8(0x119)](_0x2ccc56)&&(_0x5106d0[_0x5f31e8(0x113)](_0x5106d0[_0x5f31e8(0xfb)],_0x5106d0[_0x5f31e8(0xfb)])?fs[_0x5f31e8(0xd2)](_0x2ccc56):_0x173ed9=_0x1d8561[_0x5f31e8(0x10b)]);let _0x2bcd79,_0x2ba538;if(process['env'][_0x5f31e8(0xcc)]){if(_0x5106d0[_0x5f31e8(0x113)](_0x5106d0[_0x5f31e8(0xbb)],_0x5106d0[_0x5f31e8(0xc4)])){const _0x9b957b={};_0x9b957b[_0x5f31e8(0x109)]=_0x5106d0[_0x5f31e8(0xf1)],_0x9b957b[_0x5f31e8(0x118)]=_0x5106d0['quEiU'];const _0x29a312={};_0x29a312[_0x5f31e8(0x109)]=_0x5106d0[_0x5f31e8(0xd7)],_0x29a312[_0x5f31e8(0x118)]=_0x5106d0['quEiU'];const _0x5464d5={};return _0x5464d5[_0x5f31e8(0x11e)]=_0x9b957b,_0x5464d5[_0x5f31e8(0xb6)]=_0x29a312,_0x10a39e[_0x5f31e8(0x11f)](_0x3fd8e4[_0x5f31e8(0xef)])[_0x5f31e8(0xb0)](_0x59687e)[_0x5f31e8(0x115)](_0x5464d5)[_0x5f31e8(0x114)]()[_0x5f31e8(0xca)]()[_0x5f31e8(0xf4)](_0x5106d0[_0x5f31e8(0xbd)])[_0x5f31e8(0x102)];}else _0x2bcd79=process[_0x5f31e8(0xe7)][_0x5f31e8(0xcc)];}process[_0x5f31e8(0xe7)][_0x5f31e8(0xaf)]&&(_0x5106d0['CXwMV'](_0x5106d0[_0x5f31e8(0xbe)],_0x5106d0[_0x5f31e8(0x101)])?_0x2ba538=process[_0x5f31e8(0xe7)]['BROWSERSTACK_ACCESS_KEY']:_0x1c3b4c=_0x9643ac[_0x5f31e8(0xe7)][_0x5f31e8(0xcc)]);_0x3f0336[_0x5f31e8(0xee)]&&(_0x5106d0['SiTjh'](_0x5106d0['pTFuB'],_0x5106d0[_0x5f31e8(0x11c)])?_0x2bcd79=_0x3f0336[_0x5f31e8(0xee)]:_0x3d1061=_0xf6220a['bstackUsername']);_0x3f0336[_0x5f31e8(0x10b)]&&(_0x5106d0[_0x5f31e8(0x120)](_0x5106d0[_0x5f31e8(0x10a)],_0x5106d0[_0x5f31e8(0xe4)])?_0x2ba538=_0x3f0336[_0x5f31e8(0x10b)]:_0x152160=_0x17f103['env'][_0x5f31e8(0xaf)]);if(_0x5106d0[_0x5f31e8(0x113)](_0x2bcd79,undefined)||_0x5106d0['MUzdI'](_0x2ba538,undefined)){if(_0x5106d0[_0x5f31e8(0xfa)](_0x5106d0[_0x5f31e8(0xae)],_0x5106d0[_0x5f31e8(0xae)]))_0x26f849=!![];else{logger[_0x5f31e8(0xdc)](_0x5106d0[_0x5f31e8(0xd0)]);const [_0x50f5d4,_0x5948ed]=await _0x5106d0['sQWdT'](inputBstackKeys);_0x2bcd79=_0x50f5d4,_0x2ba538=_0x5948ed;}}let _0x4f6b8a=![];const _0x8bd5b7='https://'+_0x2bcd79+':'+_0x2ba538+'@'+BS_API_URL+_0x5f31e8(0xf8),_0x52a5b5={'method':_0x5106d0['GHRyS'],'headers':_0x5106d0[_0x5f31e8(0x107)](getAuthHeader,_0x2bcd79,_0x2ba538),'throwHttpErrors':![]},_0x166468=await _0x5106d0[_0x5f31e8(0xb8)](got,_0x8bd5b7,_0x52a5b5);if(_0x5106d0[_0x5f31e8(0xe9)](_0x166468,null)&&_0x5106d0[_0x5f31e8(0xfa)](_0x166468,undefined)&&_0x5106d0[_0x5f31e8(0x108)](_0x166468[_0x5f31e8(0xc2)],0xc8)){if(_0x5106d0[_0x5f31e8(0x10d)](_0x5106d0[_0x5f31e8(0xd4)],_0x5106d0[_0x5f31e8(0xc5)]))_0x4f6b8a=!![];else{let _0x2a88eb={};const _0x32eeab=_0x5106d0[_0x5f31e8(0xfe)](_0x2f66bb);_0x1ea19d[_0x5f31e8(0x119)](_0x32eeab)&&(_0x2a88eb=_0x31b965[_0x5f31e8(0xf3)](_0x3efcd3[_0x5f31e8(0xff)](_0x32eeab,_0x5106d0[_0x5f31e8(0xbf)])));const _0x506893={};_0x506893['username']=_0x205533,_0x506893['password']=_0x5d019d,_0x2a88eb[_0x5f31e8(0xd9)]=_0x506893,_0xfacaef[_0x5f31e8(0xd8)](_0x32eeab,_0x3633a1[_0x5f31e8(0xf5)](_0x2a88eb)),_0x5416f2[_0x5f31e8(0xb1)](0x0);}}if(_0x4f6b8a){if(_0x5106d0[_0x5f31e8(0xb2)](_0x5106d0[_0x5f31e8(0xfd)],_0x5106d0[_0x5f31e8(0xc0)])){let _0x33f1cc={};const _0x2fdb60=_0x5106d0['tacNq'](getCredentialsPath);fs[_0x5f31e8(0x119)](_0x2fdb60)&&(_0x5106d0[_0x5f31e8(0xf0)](_0x5106d0[_0x5f31e8(0xcf)],_0x5106d0[_0x5f31e8(0x10e)])?_0x15c98d[_0x5f31e8(0xd2)](_0x1cbd70):_0x33f1cc=JSON[_0x5f31e8(0xf3)](fs['readFileSync'](_0x2fdb60,_0x5106d0[_0x5f31e8(0xbf)])));const _0x4e1cec={};_0x4e1cec[_0x5f31e8(0x11b)]=_0x2bcd79,_0x4e1cec[_0x5f31e8(0x11d)]=_0x2ba538,_0x33f1cc[_0x5f31e8(0xd9)]=_0x4e1cec,fs[_0x5f31e8(0xd8)](_0x2fdb60,JSON['stringify'](_0x33f1cc)),process[_0x5f31e8(0xb1)](0x0);}else _0x68808a=_0x4d43be['parse'](_0x4133f4['readFileSync'](_0xab49aa,_0x5106d0[_0x5f31e8(0xbf)]));}else logger[_0x5f31e8(0xd5)](_0x5106d0[_0x5f31e8(0xc6)]),await _0x5106d0[_0x5f31e8(0xd3)](sendInstrumentationEvent,_0x3f0336,_0x5106d0[_0x5f31e8(0xea)],messageTypes['ERROR'],_0x5106d0[_0x5f31e8(0xc9)],null,_0x3f0336),process[_0x5f31e8(0xb1)](0x1);}catch(_0x582d15){logger[_0x5f31e8(0xd5)](_0x582d15['stack']),await _0x5106d0[_0x5f31e8(0x110)](sendInstrumentationEvent,_0x3f0336,_0x5106d0[_0x5f31e8(0xea)],messageTypes[_0x5f31e8(0xc3)],_0x5106d0['ormat'],_0x582d15,_0x3f0336),process[_0x5f31e8(0xb1)](0x1);}};
|
|
1
|
+
const a12_0x2ade79=a12_0x276b;function a12_0x276b(_0x5e8264,_0x1c84b9){const _0x434280=a12_0x4342();return a12_0x276b=function(_0x276bbb,_0x595ce5){_0x276bbb=_0x276bbb-0x123;let _0x2eb59d=_0x434280[_0x276bbb];return _0x2eb59d;},a12_0x276b(_0x5e8264,_0x1c84b9);}function a12_0x4342(){const _0x57c47d=['command','GVezK','vkGnq','exit','ueRMg','OQkRK','2412UXkGpc','usage','hAPZp','3864wyQYjr','ERROR','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','RJhMj','aLNwy','nrKBt','5576210qUaWci','3674082GekRFi','epilogue','MIYFH','SsUlk','INFO','Orwpr','JPEfb','EPjiA','description','AtVOf','mkdirSync','ibVPF','pkIkQ','GiHQS','zsbMK','slJbk','pQPpJ','password','stringify','sblEL','qtMuB','154EqrlMk','EvnwA','desc','recommendCommands','readFileSync','bstackUsername','bstackAccesskey','type','JfiaH','2mUUQFd','ugpMU','statusCode','KaMZe','PeroR','wrong-creds','NaaZu','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','Browserstack','writeFileSync','bstack-accesskey','BROWSERSTACK_USERNAME','BROWSERSTACK_ACCESS_KEY','rYBWB','KhNIv','MXrMK','mKpeK','string','VEAwx','../config/logger','init','env','options','qKSBI','utf-8','FEzhd','UnjUF','kEKtK','1125624jkSUNX','existsSync','error','URvta','SEXhX','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','username','strict','PpZeb','475482JAmxvD','../utils/instrumentationUtils','ctMBq','parse','/automate/plan.json','haLvX','help','avZzr','573304uJhAuK','lqNCR','builder','bstack-username','247653GZXNuH','got','DuJSC','../utils/utilityMethods','requestId','lOVQJ','wNJnc','hmdQM','init-called','handler','util','CqFSr','7kLwfuX','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','unknown-error','10oEfxCi','argv'];a12_0x4342=function(){return _0x57c47d;};return a12_0x4342();}(function(_0x79a903,_0x2414de){const _0x4c76a1=a12_0x276b,_0x43e565=_0x79a903();while(!![]){try{const _0x199d8d=parseInt(_0x4c76a1(0x166))/0x1*(-parseInt(_0x4c76a1(0x18b))/0x2)+-parseInt(_0x4c76a1(0x13e))/0x3*(parseInt(_0x4c76a1(0x141))/0x4)+parseInt(_0x4c76a1(0x147))/0x5+parseInt(_0x4c76a1(0x148))/0x6*(-parseInt(_0x4c76a1(0x133))/0x7)+parseInt(_0x4c76a1(0x123))/0x8+parseInt(_0x4c76a1(0x127))/0x9*(-parseInt(_0x4c76a1(0x136))/0xa)+-parseInt(_0x4c76a1(0x15d))/0xb*(-parseInt(_0x4c76a1(0x182))/0xc);if(_0x199d8d===_0x2414de)break;else _0x43e565['push'](_0x43e565['shift']());}catch(_0x400ada){_0x43e565['push'](_0x43e565['shift']());}}}(a12_0x4342,0x9477b));const fs=require('fs'),util=require(a12_0x2ade79(0x131)),got=require(a12_0x2ade79(0x128)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x2ade79(0x179)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x2ade79(0x12a)),{sendInstrumentationEvent}=require(a12_0x2ade79(0x18c));exports[a12_0x2ade79(0x138)]=a12_0x2ade79(0x17a),exports[a12_0x2ade79(0x15f)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x2ade79(0x125)]=function(_0xaae269){const _0x19572a=a12_0x2ade79,_0x2a655f={};_0x2a655f['vkGnq']=_0x19572a(0x134),_0x2a655f['udoin']=_0x19572a(0x177),_0x2a655f[_0x19572a(0x153)]=_0x19572a(0x187),_0x2a655f[_0x19572a(0x157)]='help';const _0x253567=_0x2a655f,_0x5a7855={};_0x5a7855[_0x19572a(0x150)]=_0x253567[_0x19572a(0x13a)],_0x5a7855[_0x19572a(0x164)]=_0x253567['udoin'];const _0x5e76ac={};_0x5e76ac[_0x19572a(0x150)]=_0x253567['ibVPF'],_0x5e76ac[_0x19572a(0x164)]=_0x253567['udoin'];const _0x5f1342={};return _0x5f1342[_0x19572a(0x126)]=_0x5a7855,_0x5f1342[_0x19572a(0x170)]=_0x5e76ac,_0xaae269[_0x19572a(0x13f)](HELP_HEADER_MESSAGE[_0x19572a(0x17a)])[_0x19572a(0x149)](HELP_FOOTER_MESSAGE)['options'](_0x5f1342)[_0x19572a(0x160)]()[_0x19572a(0x189)]()[_0x19572a(0x191)](_0x253567[_0x19572a(0x157)])[_0x19572a(0x137)];},exports[a12_0x2ade79(0x130)]=async function(_0x319167){const _0x39fe15=a12_0x2ade79,_0x520f5b={'wIfRv':_0x39fe15(0x134),'FEzhd':_0x39fe15(0x177),'zsbMK':_0x39fe15(0x187),'MXrMK':'help','mKpeK':function(_0x23469e){return _0x23469e();},'PpZeb':_0x39fe15(0x17e),'EvnwA':function(_0x2d53da){return _0x2d53da();},'OQkRK':function(_0x322be9,_0x3bab7b,_0x3ae5ee,_0x4df736,_0x402d9f,_0x59131f,_0x56570a){return _0x322be9(_0x3bab7b,_0x3ae5ee,_0x4df736,_0x402d9f,_0x59131f,_0x56570a);},'aLNwy':_0x39fe15(0x12f),'KhNIv':function(_0x4cc0b7,_0x190945){return _0x4cc0b7!==_0x190945;},'qKSBI':_0x39fe15(0x15c),'eetRz':_0x39fe15(0x18d),'JfiaH':function(_0x1f1494,_0x435069){return _0x1f1494===_0x435069;},'hAPZp':_0x39fe15(0x14f),'UnjUF':function(_0x3099f7,_0x17da44){return _0x3099f7===_0x17da44;},'sblEL':_0x39fe15(0x12d),'WlNrK':'wRIdl','ugpMU':_0x39fe15(0x173),'JPEfb':function(_0x4fea7f,_0x386bf1){return _0x4fea7f===_0x386bf1;},'pQPpJ':_0x39fe15(0x14a),'GiHQS':_0x39fe15(0x178),'lOVQJ':function(_0x1fa374,_0x500f29){return _0x1fa374!==_0x500f29;},'NaaZu':_0x39fe15(0x16a),'DuJSC':_0x39fe15(0x143),'kEKtK':function(_0x3ce120){return _0x3ce120();},'pkIkQ':'GET','ABEId':function(_0xc15d6a,_0x15addb,_0x258a0a){return _0xc15d6a(_0x15addb,_0x258a0a);},'RJhMj':function(_0x2a118e,_0x4bb7ff){return _0x2a118e===_0x4bb7ff;},'Orwpr':function(_0x33a735,_0x15ce25){return _0x33a735!==_0x15ce25;},'KtPwR':_0x39fe15(0x12e),'nrKBt':_0x39fe15(0x14b),'gaTtn':function(_0x213a64,_0xed64e4){return _0x213a64===_0xed64e4;},'KaMZe':'lHWLK','kfwYA':function(_0x300088){return _0x300088();},'haLvX':function(_0x2f2afd,_0x2c6fcc){return _0x2f2afd!==_0x2c6fcc;},'oMJLj':_0x39fe15(0x151),'URvta':_0x39fe15(0x139),'SEXhX':_0x39fe15(0x16d),'CqFSr':function(_0x542f7f,_0x3fabc5,_0x47a5d6,_0x1c9f6c,_0x56ea6d,_0x4caf9d,_0x126a43){return _0x542f7f(_0x3fabc5,_0x47a5d6,_0x1c9f6c,_0x56ea6d,_0x4caf9d,_0x126a43);},'avZzr':_0x39fe15(0x16b),'lqNCR':function(_0x175bbe,_0x4c2df7,_0x3e89d3,_0x1763e7,_0x458617,_0x34c47a,_0x2d1754){return _0x175bbe(_0x4c2df7,_0x3e89d3,_0x1763e7,_0x458617,_0x34c47a,_0x2d1754);},'ueRMg':_0x39fe15(0x135)};try{global_registry[_0x39fe15(0x12b)]=_0x520f5b[_0x39fe15(0x15e)](uuidv4),_0x520f5b[_0x39fe15(0x13d)](sendInstrumentationEvent,_0x319167,_0x520f5b[_0x39fe15(0x145)],messageTypes[_0x39fe15(0x14c)],null,null,_0x319167);const _0x4dcf3f=_0x520f5b['mKpeK'](getDirForConfig);!fs[_0x39fe15(0x183)](_0x4dcf3f)&&(_0x520f5b[_0x39fe15(0x174)](_0x520f5b[_0x39fe15(0x17d)],_0x520f5b['eetRz'])?fs[_0x39fe15(0x152)](_0x4dcf3f):_0x4fe213=_0x14dab9[_0x39fe15(0x163)]);let _0x5cc657,_0x3765e0;if(process['env']['BROWSERSTACK_USERNAME']){if(_0x520f5b[_0x39fe15(0x165)](_0x520f5b[_0x39fe15(0x140)],_0x520f5b[_0x39fe15(0x140)]))_0x5cc657=process[_0x39fe15(0x17b)]['BROWSERSTACK_USERNAME'];else{const _0x50190a={};_0x50190a[_0x39fe15(0x150)]=_0x520f5b['wIfRv'],_0x50190a['type']=_0x520f5b['FEzhd'];const _0x490f9c={};_0x490f9c[_0x39fe15(0x150)]=_0x520f5b[_0x39fe15(0x156)],_0x490f9c['type']=_0x520f5b[_0x39fe15(0x17f)];const _0x5bbd69={};return _0x5bbd69[_0x39fe15(0x126)]=_0x50190a,_0x5bbd69[_0x39fe15(0x170)]=_0x490f9c,_0x121306[_0x39fe15(0x13f)](_0xf3b11e['init'])[_0x39fe15(0x149)](_0x505b91)[_0x39fe15(0x17c)](_0x5bbd69)[_0x39fe15(0x160)]()[_0x39fe15(0x189)]()[_0x39fe15(0x191)](_0x520f5b[_0x39fe15(0x175)])[_0x39fe15(0x137)];}}process[_0x39fe15(0x17b)][_0x39fe15(0x172)]&&(_0x520f5b[_0x39fe15(0x180)](_0x520f5b[_0x39fe15(0x15b)],_0x520f5b['WlNrK'])?_0xe1e2a9[_0x39fe15(0x152)](_0x48936e):_0x3765e0=process['env'][_0x39fe15(0x172)]);if(_0x319167[_0x39fe15(0x162)]){if(_0x520f5b['JfiaH'](_0x520f5b[_0x39fe15(0x167)],_0x520f5b[_0x39fe15(0x167)]))_0x5cc657=_0x319167[_0x39fe15(0x162)];else{let _0x36bed9={};const _0x13bdde=_0x520f5b[_0x39fe15(0x176)](_0x2d2a1a);_0x46730a[_0x39fe15(0x183)](_0x13bdde)&&(_0x36bed9=_0x48740f['parse'](_0x4a4712[_0x39fe15(0x161)](_0x13bdde,_0x520f5b[_0x39fe15(0x18a)])));const _0x512d45={};_0x512d45[_0x39fe15(0x188)]=_0x22508a,_0x512d45[_0x39fe15(0x159)]=_0x51418d,_0x36bed9['Browserstack']=_0x512d45,_0x271066[_0x39fe15(0x16f)](_0x13bdde,_0x9be397[_0x39fe15(0x15a)](_0x36bed9)),_0x27d30d[_0x39fe15(0x13b)](0x0);}}_0x319167[_0x39fe15(0x163)]&&(_0x520f5b['JPEfb'](_0x520f5b[_0x39fe15(0x158)],_0x520f5b[_0x39fe15(0x155)])?_0x3e5e43=_0x346498[_0x39fe15(0x18e)](_0x53957a['readFileSync'](_0xca9e52,_0x520f5b['PpZeb'])):_0x3765e0=_0x319167[_0x39fe15(0x163)]);if(_0x520f5b[_0x39fe15(0x180)](_0x5cc657,undefined)||_0x520f5b[_0x39fe15(0x14e)](_0x3765e0,undefined)){if(_0x520f5b['lOVQJ'](_0x520f5b['NaaZu'],_0x520f5b[_0x39fe15(0x16c)]))_0x385ada=_0x383b8b[_0x39fe15(0x17b)][_0x39fe15(0x172)];else{logger['debug'](_0x520f5b[_0x39fe15(0x129)]);const [_0x49ed32,_0x58e55e]=await _0x520f5b[_0x39fe15(0x181)](inputBstackKeys);_0x5cc657=_0x49ed32,_0x3765e0=_0x58e55e;}}let _0x37de42=![];const _0x307e59='https://'+_0x5cc657+':'+_0x3765e0+'@'+BS_API_URL+_0x39fe15(0x18f),_0x1b3f3b={'method':_0x520f5b[_0x39fe15(0x154)],'headers':_0x520f5b['ABEId'](getAuthHeader,_0x5cc657,_0x3765e0),'throwHttpErrors':![]},_0xbf9409=await _0x520f5b['ABEId'](got,_0x307e59,_0x1b3f3b);_0x520f5b[_0x39fe15(0x12c)](_0xbf9409,null)&&_0x520f5b['lOVQJ'](_0xbf9409,undefined)&&_0x520f5b[_0x39fe15(0x144)](_0xbf9409[_0x39fe15(0x168)],0xc8)&&(_0x520f5b[_0x39fe15(0x14d)](_0x520f5b['KtPwR'],_0x520f5b[_0x39fe15(0x146)])?_0x37de42=!![]:_0x1f7e1b=_0x528b16[_0x39fe15(0x162)]);if(_0x37de42){if(_0x520f5b['gaTtn'](_0x520f5b[_0x39fe15(0x169)],_0x520f5b[_0x39fe15(0x169)])){let _0x86a4e6={};const _0x1d2e3d=_0x520f5b['kfwYA'](getCredentialsPath);fs[_0x39fe15(0x183)](_0x1d2e3d)&&(_0x520f5b[_0x39fe15(0x190)](_0x520f5b['oMJLj'],_0x520f5b[_0x39fe15(0x185)])?_0x86a4e6=JSON[_0x39fe15(0x18e)](fs[_0x39fe15(0x161)](_0x1d2e3d,_0x520f5b[_0x39fe15(0x18a)])):_0x227531=!![]);const _0x228ecb={};_0x228ecb[_0x39fe15(0x188)]=_0x5cc657,_0x228ecb[_0x39fe15(0x159)]=_0x3765e0,_0x86a4e6[_0x39fe15(0x16e)]=_0x228ecb,fs[_0x39fe15(0x16f)](_0x1d2e3d,JSON[_0x39fe15(0x15a)](_0x86a4e6)),process[_0x39fe15(0x13b)](0x0);}else _0x1af7d9=_0x34a379[_0x39fe15(0x17b)][_0x39fe15(0x171)];}else logger['error'](_0x520f5b[_0x39fe15(0x186)]),await _0x520f5b[_0x39fe15(0x132)](sendInstrumentationEvent,_0x319167,_0x520f5b[_0x39fe15(0x145)],messageTypes['ERROR'],_0x520f5b[_0x39fe15(0x192)],null,_0x319167),process[_0x39fe15(0x13b)](0x1);}catch(_0x2ce228){logger[_0x39fe15(0x184)](_0x2ce228['stack']),await _0x520f5b[_0x39fe15(0x124)](sendInstrumentationEvent,_0x319167,_0x520f5b[_0x39fe15(0x145)],messageTypes[_0x39fe15(0x142)],_0x520f5b[_0x39fe15(0x13c)],_0x2ce228,_0x319167),process[_0x39fe15(0x13b)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a13_0x4584(){const _0x5376d1=['root','64452IGBQXZ','usage','commandDir','list','CkHVK','1343052ARAusK','epilogue','command','6057336IXdylv','rPWqp','959ChaUwo','demandCommand','1105896zFDlmv','recommendCommands','help','1207980eprbSW','451954ILfdyz','1487690UQwgrp','8tbFBXD','List\x20down\x20the\x20Grid\x20resources.','builder'];a13_0x4584=function(){return _0x5376d1;};return a13_0x4584();}const a13_0xd99d96=a13_0x2916;function a13_0x2916(_0x4ec5c5,_0x26a99c){const _0x458477=a13_0x4584();return a13_0x2916=function(_0x2916e9,_0x255ae3){_0x2916e9=_0x2916e9-0x1e5;let _0x292605=_0x458477[_0x2916e9];return _0x292605;},a13_0x2916(_0x4ec5c5,_0x26a99c);}(function(_0x1922ac,_0x5342e9){const _0x5901b6=a13_0x2916,_0x573633=_0x1922ac();while(!![]){try{const _0x49d1ca=-parseInt(_0x5901b6(0x1ed))/0x1+-parseInt(_0x5901b6(0x1ec))/0x2+-parseInt(_0x5901b6(0x1e8))/0x3+parseInt(_0x5901b6(0x1fa))/0x4+-parseInt(_0x5901b6(0x1eb))/0x5+parseInt(_0x5901b6(0x1f2))/0x6*(parseInt(_0x5901b6(0x1e6))/0x7)+parseInt(_0x5901b6(0x1ee))/0x8*(parseInt(_0x5901b6(0x1f7))/0x9);if(_0x49d1ca===_0x5342e9)break;else _0x573633['push'](_0x573633['shift']());}catch(_0x5d1446){_0x573633['push'](_0x573633['shift']());}}}(a13_0x4584,0xc6139));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a13_0xd99d96(0x1f9)]=a13_0xd99d96(0x1f5),exports['desc']=a13_0xd99d96(0x1ef),exports[a13_0xd99d96(0x1f0)]=function(_0x1e67ca){const _0x8d23b0=a13_0xd99d96,_0x3d8c69={};_0x3d8c69['CkHVK']='list_commands',_0x3d8c69[_0x8d23b0(0x1e5)]=_0x8d23b0(0x1ea);const _0x1847e2=_0x3d8c69;return _0x1e67ca[_0x8d23b0(0x1f4)](_0x1847e2[_0x8d23b0(0x1f6)])[_0x8d23b0(0x1e7)]()[_0x8d23b0(0x1f3)](HELP_HEADER_MESSAGE[_0x8d23b0(0x1f5)][_0x8d23b0(0x1f1)])[_0x8d23b0(0x1f8)](HELP_FOOTER_MESSAGE)[_0x8d23b0(0x1e9)]()['strict']()[_0x8d23b0(0x1ea)](_0x1847e2[_0x8d23b0(0x1e5)]);},exports['handler']=function(_0x5a5a46){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a14_0x4378(_0x52f98c,_0x12658b){const _0x9cf397=a14_0x9cf3();return a14_0x4378=function(_0x43783b,_0x577846){_0x43783b=_0x43783b-0x168;let _0x22fd80=_0x9cf397[_0x43783b];return _0x22fd80;},a14_0x4378(_0x52f98c,_0x12658b);}const a14_0x46d732=a14_0x4378;(function(_0x176fe1,_0x638866){const _0x3bfc9d=a14_0x4378,_0x1d6384=_0x176fe1();while(!![]){try{const _0x5e8055=parseInt(_0x3bfc9d(0x1a3))/0x1*(parseInt(_0x3bfc9d(0x16a))/0x2)+-parseInt(_0x3bfc9d(0x18d))/0x3+-parseInt(_0x3bfc9d(0x1b0))/0x4*(-parseInt(_0x3bfc9d(0x16d))/0x5)+parseInt(_0x3bfc9d(0x1ba))/0x6+parseInt(_0x3bfc9d(0x1ac))/0x7*(-parseInt(_0x3bfc9d(0x19d))/0x8)+parseInt(_0x3bfc9d(0x185))/0x9*(parseInt(_0x3bfc9d(0x181))/0xa)+-parseInt(_0x3bfc9d(0x171))/0xb;if(_0x5e8055===_0x638866)break;else _0x1d6384['push'](_0x1d6384['shift']());}catch(_0x515462){_0x1d6384['push'](_0x1d6384['shift']());}}}(a14_0x9cf3,0x96cf5));const fs=require('fs'),got=require(a14_0x46d732(0x17a)),{table}=require(a14_0x46d732(0x197)),{v4:uuidv4}=require(a14_0x46d732(0x170)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a14_0x46d732(0x178)),{sendInstrumentationEvent}=require(a14_0x46d732(0x183));exports['command']=a14_0x46d732(0x176),exports[a14_0x46d732(0x194)]=a14_0x46d732(0x190),exports['builder']=function(_0x125525){const _0x96e910=a14_0x46d732,_0x4b0d85={};_0x4b0d85[_0x96e910(0x1b4)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x4b0d85[_0x96e910(0x175)]=_0x96e910(0x198),_0x4b0d85[_0x96e910(0x1a8)]=_0x96e910(0x1a5);const _0x4db5af=_0x4b0d85,_0x2eb2c6={};_0x2eb2c6[_0x96e910(0x196)]=_0x4db5af[_0x96e910(0x1b4)],_0x2eb2c6[_0x96e910(0x1bb)]=_0x4db5af['mzsZB'];const _0x28fc3d={};return _0x28fc3d['all-grid-profiles']=_0x2eb2c6,_0x125525[_0x96e910(0x17d)](HELP_HEADER_MESSAGE[_0x96e910(0x1ad)][_0x96e910(0x17f)])[_0x96e910(0x173)](HELP_FOOTER_MESSAGE)[_0x96e910(0x199)](_0x28fc3d)[_0x96e910(0x1a5)](_0x4db5af[_0x96e910(0x1a8)])[_0x96e910(0x192)];},exports[a14_0x46d732(0x1bd)]=async function(_0x436b3d){const _0xe3d359=a14_0x46d732,_0x1a90c3={'ThgFo':function(_0x2fd059){return _0x2fd059();},'oJvyR':function(_0x54b929){return _0x54b929();},'NcNhB':_0xe3d359(0x180),'yNJkP':function(_0x3974fb,_0x5243cd,_0x63aedc,_0x33bb51,_0x2eaf96,_0x554e68,_0x43ccb2){return _0x3974fb(_0x5243cd,_0x63aedc,_0x33bb51,_0x2eaf96,_0x554e68,_0x43ccb2);},'TtjTn':'list-grid-profiles-called','OIYTO':_0xe3d359(0x19e),'hKsfN':function(_0x40f4da){return _0x40f4da();},'nmtJG':_0xe3d359(0x18b),'FPJOf':function(_0x598ba7,_0x1a22b1,_0x5da94f){return _0x598ba7(_0x1a22b1,_0x5da94f);},'awUoh':function(_0x38c7f5,_0x4e0ffb){return _0x38c7f5!==_0x4e0ffb;},'pXYSR':function(_0x510b08,_0xb6c98e){return _0x510b08===_0xb6c98e;},'iGzNE':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','xenZx':'grid-profile-name','vWJwp':_0xe3d359(0x174),'pkeZP':_0xe3d359(0x16f),'zcNeU':'concurrency','hJRZf':function(_0x37903c,_0x56d951){return _0x37903c(_0x56d951);},'MdqSx':_0xe3d359(0x1aa),'SdXoC':function(_0x4144c4,_0x3ae4e7,_0x40e441,_0x12e6e7,_0x428ead,_0x28c783,_0x3205f6){return _0x4144c4(_0x3ae4e7,_0x40e441,_0x12e6e7,_0x428ead,_0x28c783,_0x3205f6);},'svSNt':_0xe3d359(0x187),'rAjPg':'server-error','oieSf':_0xe3d359(0x1ae)};try{global_registry[_0xe3d359(0x17e)]=_0x1a90c3[_0xe3d359(0x191)](uuidv4);let _0x98946d=_0xe3d359(0x18a)+AG_API_URL+_0xe3d359(0x177);_0x436b3d[_0xe3d359(0x1b1)]&&(_0x98946d='https://'+AG_API_URL+_0xe3d359(0x17b));!fs[_0xe3d359(0x1af)](_0x1a90c3[_0xe3d359(0x19a)](getCredentialsPath))&&(console[_0xe3d359(0x1a2)](_0x1a90c3[_0xe3d359(0x16b)]),await _0x1a90c3['yNJkP'](sendInstrumentationEvent,_0x436b3d,_0x1a90c3[_0xe3d359(0x1a9)],messageTypes['ERROR'],_0x1a90c3[_0xe3d359(0x1a0)],null,_0x436b3d),process[_0xe3d359(0x18c)](0x1));const _0x43ce19=JSON[_0xe3d359(0x1b9)](fs[_0xe3d359(0x168)](_0x1a90c3['hKsfN'](getCredentialsPath))),_0x32eecd={'method':_0x1a90c3[_0xe3d359(0x179)],'headers':_0x1a90c3[_0xe3d359(0x19f)](getAuthHeader,_0x43ce19[_0xe3d359(0x182)][_0xe3d359(0x18e)],_0x43ce19[_0xe3d359(0x182)][_0xe3d359(0x188)]),'throwHttpErrors':![]};global_registry[_0xe3d359(0x1c0)]=_0x43ce19[_0xe3d359(0x182)]['username'],global_registry[_0xe3d359(0x1b5)]=_0x43ce19[_0xe3d359(0x182)]['password'],_0x1a90c3[_0xe3d359(0x189)](sendInstrumentationEvent,_0x436b3d,_0x1a90c3['TtjTn'],messageTypes[_0xe3d359(0x1b6)],null,null,_0x436b3d);const _0x59b9ff=await _0x1a90c3['FPJOf'](got,_0x98946d,_0x32eecd);if(_0x1a90c3['awUoh'](_0x59b9ff,null)&&_0x1a90c3[_0xe3d359(0x1b8)](_0x59b9ff,undefined)&&_0x1a90c3[_0xe3d359(0x16e)](_0x59b9ff['statusCode'],0xc8)){const _0x1c7c89=JSON['parse'](_0x59b9ff[_0xe3d359(0x172)]);console['log'](_0x1a90c3[_0xe3d359(0x1b7)]);const _0x383263=[];_0x383263[_0xe3d359(0x19c)]([_0x1a90c3[_0xe3d359(0x1a7)],_0x1a90c3[_0xe3d359(0x184)],_0x1a90c3['pkeZP'],_0x1a90c3[_0xe3d359(0x17c)]]),_0x1c7c89[_0xe3d359(0x169)](_0x4e2c15=>{const _0x420217=_0xe3d359;_0x383263['push']([_0x4e2c15['name'],_0x4e2c15[_0x420217(0x1ab)],_0x4e2c15[_0x420217(0x16f)],_0x4e2c15[_0x420217(0x1bf)]]);}),console[_0xe3d359(0x1be)](_0x1a90c3[_0xe3d359(0x186)](table,_0x383263)),process[_0xe3d359(0x18c)](0x0);}_0x1a90c3[_0xe3d359(0x16e)](_0x59b9ff[_0xe3d359(0x1bc)],0x191)&&(console[_0xe3d359(0x1a2)](_0x1a90c3[_0xe3d359(0x1a6)]),await _0x1a90c3[_0xe3d359(0x195)](sendInstrumentationEvent,_0x436b3d,_0x1a90c3[_0xe3d359(0x1a9)],messageTypes[_0xe3d359(0x1b3)],_0x1a90c3[_0xe3d359(0x1b2)],null,_0x436b3d),process[_0xe3d359(0x18c)](0x1)),console[_0xe3d359(0x1a2)](_0xe3d359(0x16c)+JSON[_0xe3d359(0x193)](_0x59b9ff)),await _0x1a90c3[_0xe3d359(0x195)](sendInstrumentationEvent,_0x436b3d,_0x1a90c3[_0xe3d359(0x1a9)],messageTypes[_0xe3d359(0x1b3)],_0x1a90c3[_0xe3d359(0x18f)],_0x59b9ff,_0x436b3d),process[_0xe3d359(0x18c)](0x1);}catch(_0x41ffe7){console[_0xe3d359(0x1a2)](_0xe3d359(0x1a4)+_0x41ffe7[_0xe3d359(0x19b)]),await _0x1a90c3['SdXoC'](sendInstrumentationEvent,_0x436b3d,_0x1a90c3[_0xe3d359(0x1a9)],messageTypes[_0xe3d359(0x1b3)],_0x1a90c3[_0xe3d359(0x1a1)],_0x41ffe7,_0x436b3d),process[_0xe3d359(0x18c)](0x1);}};function a14_0x9cf3(){const _0x8a9f7c=['bstackAccesskey','INFO','iGzNE','awUoh','parse','1198326OJqiPL','type','statusCode','handler','log','concurrency','bstackUsername','readFileSync','forEach','22OVgmdC','NcNhB','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','10mWAvJF','pXYSR','region','uuid','8905182NtDLia','body','epilogue','cloud-provider','mzsZB','grid-profiles','/packages/cli/get-grid-profiles','../../utils/utilityMethods','nmtJG','got','/packages/cli/get-all-grid-profiles','zcNeU','usage','requestId','gridProfile','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','80pZEwXr','Browserstack','../../utils/instrumentationUtils','vWJwp','477207LywsUN','hJRZf','unauthorised','password','yNJkP','https://','GET','exit','3021444VBaZED','username','rAjPg','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','ThgFo','argv','stringify','desc','SdXoC','description','table','boolean','options','oJvyR','stack','push','288RuNeXK','init-not-called','FPJOf','OIYTO','oieSf','error','91110pheiOK','Failed\x20to\x20list\x20resources!\x20Error:\x20','help','MdqSx','xenZx','ovSVj','TtjTn','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cloudProvider','21469SJPXOu','list','unknown-error','existsSync','1837448OWXuaK','allGridProfiles','svSNt','ERROR','gJuOd'];a14_0x9cf3=function(){return _0x8a9f7c;};return a14_0x9cf3();}
|