browserstack-node-sdk 1.50.0 → 1.50.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/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/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x1b1b58=a9_0x41ff;(function(_0x40e3e6,_0x41306b){const _0x1b59c2=a9_0x41ff,_0x128e96=_0x40e3e6();while(!![]){try{const _0x48b5ac=parseInt(_0x1b59c2(0x2c9))/0x1*(parseInt(_0x1b59c2(0x2c0))/0x2)+-parseInt(_0x1b59c2(0x2dd))/0x3+parseInt(_0x1b59c2(0x24f))/0x4+-parseInt(_0x1b59c2(0x25a))/0x5*(-parseInt(_0x1b59c2(0x267))/0x6)+parseInt(_0x1b59c2(0x2b0))/0x7*(-parseInt(_0x1b59c2(0x2ca))/0x8)+-parseInt(_0x1b59c2(0x36e))/0x9*(-parseInt(_0x1b59c2(0x340))/0xa)+-parseInt(_0x1b59c2(0x355))/0xb;if(_0x48b5ac===_0x41306b)break;else _0x128e96['push'](_0x128e96['shift']());}catch(_0x248982){_0x128e96['push'](_0x128e96['shift']());}}}(a9_0x5f3f,0x8d0f2));const fs=require('fs'),ws=require('ws'),path=require(a9_0x1b1b58(0x2eb)),yaml=require(a9_0x1b1b58(0x2fa)),ReconnectingWebSocket=require(a9_0x1b1b58(0x2d7)),got=require('got'),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x1b1b58(0x1ee)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x1b1b58(0x362)),{getCloudProviderObject}=require(a9_0x1b1b58(0x391)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x1b1b58(0x252)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a9_0x1b1b58(0x240));function a9_0x41ff(_0x5ab45d,_0x56ab4d){const _0x5f3f48=a9_0x5f3f();return a9_0x41ff=function(_0x41ff2b,_0x2f7658){_0x41ff2b=_0x41ff2b-0x1ed;let _0x526702=_0x5f3f48[_0x41ff2b];return _0x526702;},a9_0x41ff(_0x5ab45d,_0x56ab4d);}function a9_0x5f3f(){const _0x4d9bb5=['lqjpa','LKIzE','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','Huzxb','private-grid','Added\x20Turboscale\x20Uploader\x20deployment.','eHrAx','\x20are\x20not\x20present\x20in\x20VPC:\x20','620048JSkmgK','browserstack-secret.yaml','PjeRD','../../utils/gridComponents','Spawning\x20the\x20grid\x20','gMxfl','IhyVx','CjSfM','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','wSyOR','YvJkc','5281895vAMgrW','qdVfx','GZEKi','ALvYB','FWOgE','wBMRE','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','LejUu','qSoTU','hccoO','AzKmN','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','length','6dNSuFJ','pWPQJ','xrqGF','wpPXP','../..','newCluster','eGFzx','gurtC','mapdz','kafkaPassword','utf-8','PEpbY','statusCode','NSrVD','Skip\x20insecure\x20cert\x20verification.','LNUnD','alreadyPresent','vjFtQ','KdDwG','Spawning\x20grid\x20on\x20to\x20the\x20cluster','uploaderVersion','join','iiurH','get-grid-url-null-response','HAoJy','vsCqj','gHeHc','Created\x20Hub\x20HA\x20resources','Xamga','OGJfE','CApIN','delay','TTsQP','gridName','2|15|6|14|12|4|11|5|1|13|3|9|7|8|10|0','KLSPz','wrQhS','twjWb','JEgpD','desc','RlDFs','fGwAl','create-grid-called','string','browserVersion','Enabling\x20Hub\x20HA\x20flow','THDoD','create-grid-checks-invalid-profile','XTcMr','LahOm','Adding\x20Secret\x20Mapping','GET','gridProfiles','zDZPU','pre-spawned-invalid-vpc','NRbih','iJtsu','dFhyn','Cluster:\x20','pwdeY','hubVersion','UEVTr','command','redisPassword','DWIfP','addListeners','wIRVn','iQyYa','instanceType','clusterAutoUpgrade','XfuOP','epilogue','warn','14pQVFWk','nuCmF','mUylG','stringify','EWFpK','name','SiAOq','spec','OdPDt','pre-spawned-invalid-subnets','PRKuM','zgQjf','gWLdt','serviceAccountName','\x20in\x20existing\x20cluster\x20\x27','mcXFU','1118342ZCTGEu','glndF','qVjlq','managedBy','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','zgsDA','uKWsQ','KNOAC','1hWCsSk','3227032SFvIVK','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','bstackUsername','username','hub-ha-deployments-failed','hmRCM','getResourceClientId','boRSD','azurefile-csi-premium','DWPWc','cluster-name','DWXrJ','premium-rwo','reconnecting-websocket','bkfKP','LKYnw','CQmxu','stack','templates','327039exkMdn','cloud-provider','kgLDZ','turboscale-uploader.yaml','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','DlUiZ','ingress-nginx-controller','createdBy','kLjkh','oOupl','parse','Dlixe','route53','description','path','Creating\x20Hub\x20HA\x20resources','usage','Jhjps','uKugf','vSsBz','HyBQj','FKUds','qZvyB','default','ERROR','Deleting\x20the\x20CloudFormation\x20Stacks','bitnami-kafka.yaml','hJaxy','jrGfl','js-yaml','create-grid-checks-grid-already-exists','subnets','abfqJ','Added\x20Kafka\x20deployment.','HLFpM','FkHHI','updateClusterAlreadyPresent','Grid\x20profile\x20fetched\x20from\x20backend','qnqTa','init-not-called','btGmb','EzznY','zUuvE','error','boolean','PnHWX','/packages/cli/create-grid-checks','eSXPe','user','sendEventToBackend','minNodes','CLI_RUN_FINISHED','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','enableHubHa','SLkFE','prespawned-cluster-args-not-passed','concurrency','MRPgH','isClusterPresent','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','template','zXxbl','XFchN','SOiPz','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','TclJc','toLowerCase','NnLKA','turboscale-managed-identity-','IvQJj','browserstack','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','BvkxH','GCBTy','qAyhO','grid-profile','securityGroups','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','Ceeew','WQSKx','jHbai','wPNwQ','WaGnB','voAgi','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','pzBkq','https://','BMeuA','PGCLz','cloudProvider','Added\x20Redis\x20deployment.','INFO','/packages/cli/get-grid-url?gridIdentifier=','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Found\x20VPC:\x20','XaCWN','\x20using\x20\x27','yXyiL','92980udhFDW','yTCJA','message','qYtJc','readNamespacedService','ymamh','ndmQO','HbbSZ','Adding\x20Redis\x20deployment...','region','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','lJbvx','BobXV','Cluster\x20','heEmY','TgSPE','info','BcHVh','CPXYZ','XSQxW','getGridHostname','12968109HZpPOQ','Create\x20a\x20new\x20Automation\x20grid.','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','zTuDL','loadAll','fKlGp','aSZWf','tIcYg','YaKwS','requestId','options','clusterAutoupgrade','xJlDD','../../utils/utilityMethods','JdHeL','Grid\x20spawned\x20on\x20the\x20cluster','DNGht','CZaIg','WvXHT','VVuYj','VdqLK','connectionTimeout','LOG','clusterName','dolYb','873MUDwbi','JsiZI','VZDfp','ZGiPF','TuGSg','setupNewCluster','2|6|4|5|3|0|8|1|7','FCCYu','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','isNewAWSCluster','fQIfr','Create\x20a\x20private/public\x20grid.','WebSocket','grid-spawning-failed','body','Adding\x20Websocket\x20listeners','gEZOf','maxNodes','HHXNm','Grid\x20can\x20be\x20accessed\x20at:\x20','1|4|2|3|0','Adding\x20Kafka\x20deployment...','nyLiU','aWjIO','gGCtx','createOtherResources','DYKPu','bitnami-redis.yaml','Adding\x20Turboscale\x20Uploader\x20deployment...','XoEYt','type','KYFXU','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Htqxi','../../cloudproviders/utils','argv','isSubnetsValid','laoGC','zPLaQ','ingress-nginx','kTYeB','ZPDFz','XnCBA','hubHaNameSpace','<UsernamePlaceholder>','LdBKF','taUJd','OKazF','isPrivateGrid','sfnvc','GHoJT','bNVWr','labels','../../utils/webSocketUtils','fKmoP','Flag\x20to\x20enable\x20Hub\x20HA','kCmpr','metadata','DKRBh','QGIYP','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','efs-csi','FqQnm','apKYx','createNamespace','sUlQn','XHMlK','Found\x20Subnets:\x20','pre-spawned-subnets-not-selected','CLI_RUN_STARTED','glSlY','kafkaUploader','GHgLa','HtLVB','UnPCN','gridProfileId','cZOaj','gridProfile','xzDrH','ZiNax','OUTFb','jpeRe','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','create','hub-ha','TSpTJ','isVPCPresent','eAslK','GaSIV','ZOvAV','pRvFT','fxgdH','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','XaZJC','sGhRb','UuOcF','guYeA','QkfJw','awDSn','create-grid-checks-auth-failed','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','tOUba','https','s3bucket','toVmV','Namespace\x20Created','defaultGridProfile','password','split','clusterRegion','Creating\x20namespace','EbbXI','http','includes','exit','LrgPT','Epyd5nXbRK','dQVpf','jaYeO','BeMmH','Subnets:\x20','ONVHi','Cluster\x20created\x20successfully','replace','skip-tls-cert-verify','sendResourceDataToHST','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','help','deleteCluster','oRVBW','Browserstack','ZnApF','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','privateGrid','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','../../utils/instrumentationUtils','WRTBf','WNqKB','lUmQD','non-aws-azure-cluster','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','readFileAsync'];a9_0x5f3f=function(){return _0x4d9bb5;};return a9_0x5f3f();}exports[a9_0x1b1b58(0x2a5)]='grid',exports[a9_0x1b1b58(0x28e)]=a9_0x1b1b58(0x356),exports['builder']=function(_0x51770e){const _0x2a023a=a9_0x1b1b58,_0x469eb0={};_0x469eb0['gurtC']=_0x2a023a(0x215),_0x469eb0[_0x2a023a(0x2da)]=_0x2a023a(0x292),_0x469eb0[_0x2a023a(0x28f)]=_0x2a023a(0x21d),_0x469eb0[_0x2a023a(0x272)]=_0x2a023a(0x318),_0x469eb0[_0x2a023a(0x2bc)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x469eb0[_0x2a023a(0x230)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x469eb0[_0x2a023a(0x258)]=_0x2a023a(0x37a),_0x469eb0['ZOvAV']=_0x2a023a(0x275),_0x469eb0[_0x2a023a(0x2ee)]=_0x2a023a(0x309),_0x469eb0['aYpvL']=_0x2a023a(0x1f0),_0x469eb0['boRSD']=_0x2a023a(0x249),_0x469eb0[_0x2a023a(0x351)]='help';const _0x26d344=_0x469eb0,_0x3e9c25={};_0x3e9c25[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x26e)],_0x3e9c25[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2da)];const _0x3a1d13={};_0x3a1d13[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x28f)],_0x3a1d13[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2da)];const _0x5e2edc={};_0x5e2edc[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x272)],_0x5e2edc[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2da)];const _0x3027ce={};_0x3027ce[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x2bc)],_0x3027ce[_0x2a023a(0x38d)]=_0x26d344['CQmxu'];const _0x33117={};_0x33117[_0x2a023a(0x2ea)]=_0x26d344['BeMmH'],_0x33117[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2da)];const _0x22b272={};_0x22b272[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x258)],_0x22b272[_0x2a023a(0x38d)]=_0x26d344['CQmxu'];const _0x142674={};_0x142674[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x212)],_0x142674[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2ee)],_0x142674['default']=![];const _0x224b90={};_0x224b90[_0x2a023a(0x2ea)]=_0x26d344['aYpvL'],_0x224b90[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2ee)],_0x224b90[_0x2a023a(0x2f4)]=![];const _0x2cb344={};_0x2cb344[_0x2a023a(0x2ea)]=_0x26d344[_0x2a023a(0x2d1)],_0x2cb344[_0x2a023a(0x38d)]=_0x26d344[_0x2a023a(0x2ee)],_0x2cb344['default']=![];const _0x18a06e={};return _0x18a06e['grid-name']=_0x3e9c25,_0x18a06e[_0x2a023a(0x328)]=_0x3a1d13,_0x18a06e[_0x2a023a(0x2d4)]=_0x5e2edc,_0x18a06e[_0x2a023a(0x2de)]=_0x3027ce,_0x18a06e['region']=_0x33117,_0x18a06e['private-grid']=_0x22b272,_0x18a06e[_0x2a023a(0x235)]=_0x142674,_0x18a06e[_0x2a023a(0x20d)]=_0x224b90,_0x18a06e['cluster-autoupgrade']=_0x2cb344,_0x51770e[_0x2a023a(0x2ed)](HELP_HEADER_MESSAGE[_0x2a023a(0x20c)])[_0x2a023a(0x2ae)](HELP_FOOTER_MESSAGE)[_0x2a023a(0x35f)](_0x18a06e)['help'](_0x26d344[_0x2a023a(0x351)])[_0x2a023a(0x392)];},exports['handler']=async function(_0x17916f){const _0xe49f0c=a9_0x1b1b58,_0x4f26e5={'Huzxb':_0xe49f0c(0x383),'KYFXU':_0xe49f0c(0x294),'LKIzE':'UkRNzNYCBU','TgSPE':_0xe49f0c(0x22d),'LejUu':_0xe49f0c(0x323),'ZnApF':_0xe49f0c(0x308),'FEImw':_0xe49f0c(0x289),'zvRxm':function(_0x4be510,_0x3b62cb){return _0x4be510(_0x3b62cb);},'WRTBf':function(_0x3cb39c,_0x596e0e){return _0x3cb39c!==_0x596e0e;},'cZOaj':function(_0x172927,_0x1a1845,_0x1d79e0,_0x15b8fe,_0x4b0aa7,_0x46f943,_0x24ccc6,_0x47ac04,_0x18ccac,_0x31e5e6,_0x50e152,_0x34bdf2,_0x2007aa){return _0x172927(_0x1a1845,_0x1d79e0,_0x15b8fe,_0x4b0aa7,_0x46f943,_0x24ccc6,_0x47ac04,_0x18ccac,_0x31e5e6,_0x50e152,_0x34bdf2,_0x2007aa);},'HAoJy':_0xe49f0c(0x229),'WQSKx':function(_0x178c4b,_0x2dde15){return _0x178c4b(_0x2dde15);},'TGkHI':'1|0|2|8|6|4|5|3|7','EzznY':'CLI\x20run\x20started','NRbih':'true','GCBTy':_0xe49f0c(0x2f4),'WaGnB':_0xe49f0c(0x2d2),'jpeRe':_0xe49f0c(0x20b),'fGwAl':function(_0x313d94,_0x282b3e){return _0x313d94(_0x282b3e);},'Lsikp':_0xe49f0c(0x2d6),'wIRVn':_0xe49f0c(0x215),'NSrVD':_0xe49f0c(0x292),'VdqLK':_0xe49f0c(0x21d),'bJgkJ':_0xe49f0c(0x318),'FLmLy':_0xe49f0c(0x33b),'bkfKP':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','VZDfp':_0xe49f0c(0x37a),'gMxfl':_0xe49f0c(0x275),'zUuvE':_0xe49f0c(0x309),'ymSNt':_0xe49f0c(0x1f0),'XnCBA':'Flag\x20to\x20enable\x20cluster\x20auto-upgrade','Ceeew':'help','zgsDA':_0xe49f0c(0x2af),'qdVfx':function(_0x211a40,_0x72c403){return _0x211a40===_0x72c403;},'HtLVB':_0xe49f0c(0x21f),'PRKuM':function(_0x5bb42e){return _0x5bb42e();},'WvXHT':function(_0x1204f6){return _0x1204f6();},'kCmpr':function(_0xfac1c7,_0x2bfc49){return _0xfac1c7===_0x2bfc49;},'iQyYa':'OEQBX','gGCtx':_0xe49f0c(0x26f),'aSZWf':_0xe49f0c(0x324),'eGFzx':function(_0x51fbe5,_0x2f37f5,_0x34e9d3,_0x322446,_0x393bf3,_0x2db520,_0x249c7b){return _0x51fbe5(_0x2f37f5,_0x34e9d3,_0x322446,_0x393bf3,_0x2db520,_0x249c7b);},'ONVHi':_0xe49f0c(0x291),'ZHFcF':_0xe49f0c(0x304),'oOupl':function(_0x1b3533){return _0x1b3533();},'hJaxy':_0xe49f0c(0x39b),'BvkxH':'<PasswordPlaceholder>','uKWsQ':_0xe49f0c(0x37e),'EWFpK':function(_0x5ab9e2,_0x5484e7){return _0x5ab9e2===_0x5484e7;},'twjWb':_0xe49f0c(0x201),'dQVpf':function(_0x2fa268,_0x199b67){return _0x2fa268!==_0x199b67;},'OdPDt':_0xe49f0c(0x347),'ALvYB':_0xe49f0c(0x260),'FWOgE':function(_0x57a475,_0x54cc53,_0x1387b0,_0x3aca94,_0x188900,_0xf7cbe1,_0x1ed11a,_0x596e81){return _0x57a475(_0x54cc53,_0x1387b0,_0x3aca94,_0x188900,_0xf7cbe1,_0x1ed11a,_0x596e81);},'FalnZ':_0xe49f0c(0x314),'yTCJA':_0xe49f0c(0x365),'zPLaQ':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','vSsBz':function(_0x5c3be5,_0x51ee70,_0x2d2216,_0x2549bd,_0x564c26,_0x2559bc,_0x158426,_0x5b6ece){return _0x5c3be5(_0x51ee70,_0x2d2216,_0x2549bd,_0x564c26,_0x2559bc,_0x158426,_0x5b6ece);},'pRvFT':_0xe49f0c(0x244),'wpPXP':'DRMok','ymamh':_0xe49f0c(0x322),'XHMlK':function(_0x101a8c,_0x3f9063,_0x4b1b8d,_0x14890c,_0x28c0f7,_0x55e741,_0x3f90d0){return _0x101a8c(_0x3f9063,_0x4b1b8d,_0x14890c,_0x28c0f7,_0x55e741,_0x3f90d0);},'mcXFU':'EQZdP','hmRCM':_0xe49f0c(0x22c),'glSlY':'MXFxU','PQtqB':_0xe49f0c(0x2f9),'GZEKi':_0xe49f0c(0x29a),'xzDrH':function(_0x100309,_0x17bcfe,_0xda1ca6){return _0x100309(_0x17bcfe,_0xda1ca6);},'btGmb':function(_0x577560,_0x4f9795){return _0x577560!==_0x4f9795;},'LKYnw':_0xe49f0c(0x2e2),'LNUnD':_0xe49f0c(0x330),'GHoJT':'jOsqB','AzKmN':_0xe49f0c(0x31c),'xMLDS':function(_0x5b9c54,_0x580e72,_0x1c6d70){return _0x5b9c54(_0x580e72,_0x1c6d70);},'IhyVx':function(_0x230f36,_0x14d9eb){return _0x230f36===_0x14d9eb;},'OKazF':function(_0x330604,_0x4f1e56){return _0x330604===_0x4f1e56;},'THDoD':_0xe49f0c(0x210),'XSQxW':_0xe49f0c(0x311),'CjSfM':'create-grid-checks-null-response','bCYBG':function(_0x507ad9,_0x2de782){return _0x507ad9===_0x2de782;},'qnqTa':function(_0x120c7f,_0x173051){return _0x120c7f!==_0x173051;},'EbbXI':'HWcro','HLFpM':_0xe49f0c(0x2e8),'NXEoU':_0xe49f0c(0x31d),'pWPQJ':function(_0x4db6b0,_0x3aa127,_0x15f086,_0x3492ad,_0x4fd965,_0x26eb1a,_0x27a362,_0x59e616){return _0x4db6b0(_0x3aa127,_0x15f086,_0x3492ad,_0x4fd965,_0x26eb1a,_0x27a362,_0x59e616);},'KdDwG':_0xe49f0c(0x21c),'UuOcF':function(_0x2f7d8a,_0x5cf73c){return _0x2f7d8a!==_0x5cf73c;},'oRVBW':'oqyXk','aWjIO':_0xe49f0c(0x34b),'tIcYg':function(_0x56162c,_0x2f3f64,_0x44608d,_0x1e8fe5,_0x972005,_0x247d9b,_0x2d59e0,_0x29f4a4){return _0x56162c(_0x2f3f64,_0x44608d,_0x1e8fe5,_0x972005,_0x247d9b,_0x2d59e0,_0x29f4a4);},'Edrxs':'create-grid-checks-non-200','lUmQD':_0xe49f0c(0x302),'CApIN':function(_0x512a61,_0x159062){return _0x512a61!==_0x159062;},'toVmV':_0xe49f0c(0x278),'XFchN':_0xe49f0c(0x2fb),'wBMRE':function(_0x4639fa,_0x4cf8bd){return _0x4639fa!==_0x4cf8bd;},'sUlQn':_0xe49f0c(0x283),'ZGiPF':_0xe49f0c(0x346),'QGIYP':'1|0|2|3|4','CPXYZ':function(_0x11b646,_0x293b00){return _0x11b646===_0x293b00;},'fQIfr':function(_0x3b8652,_0x3f1cd7){return _0x3b8652===_0x3f1cd7;},'LdBKF':_0xe49f0c(0x30c),'GYZiA':'xLUCk','wrQhS':_0xe49f0c(0x332),'XaZJC':function(_0x3d0a28,_0x345f7b,_0x1fa9b6,_0x1802b7,_0x38017c,_0x503d27,_0x53759c,_0x2db5d7){return _0x3d0a28(_0x345f7b,_0x1fa9b6,_0x1802b7,_0x38017c,_0x503d27,_0x53759c,_0x2db5d7);},'Htqxi':_0xe49f0c(0x296),'TTsQP':function(_0x521a9e,_0x4a7d31){return _0x521a9e===_0x4a7d31;},'KNOAC':'EEuaj','guYeA':_0xe49f0c(0x28a),'YaKwS':function(_0x2deda0,_0x2e700b){return _0x2deda0!==_0x2e700b;},'iJtsu':function(_0x53f79c,_0x458375){return _0x53f79c!==_0x458375;},'TSpTJ':_0xe49f0c(0x2c1),'ePxwB':function(_0x42259b,_0xfdd05e,_0x28d1f3,_0x26ba78,_0xcfa238,_0x4a375f,_0x1c3ead,_0x5bd5b6,_0x55f6dc,_0x8f1427,_0x1f8ada,_0x78a597,_0x1afa91){return _0x42259b(_0xfdd05e,_0x28d1f3,_0x26ba78,_0xcfa238,_0x4a375f,_0x1c3ead,_0x5bd5b6,_0x55f6dc,_0x8f1427,_0x1f8ada,_0x78a597,_0x1afa91);},'ZiNax':_0xe49f0c(0x1f3),'CGoMr':_0xe49f0c(0x397),'nyLiU':function(_0x5bb832,_0x4cf990){return _0x5bb832===_0x4cf990;},'gEZOf':_0xe49f0c(0x247),'apKYx':_0xe49f0c(0x34c),'pwdeY':function(_0x269a4a,_0x53dbbe){return _0x269a4a===_0x53dbbe;},'DWIfP':'GhEot','kLjkh':_0xe49f0c(0x2d5),'qSoTU':function(_0x49a211,_0x20c4a4,_0x4718f8,_0x2dfcd9,_0x347e32,_0x1318ac,_0x1f8bbc,_0x36a2ea,_0x4c2a30,_0x11aa36,_0x3d3e48,_0x2ba0bf,_0x409bd5){return _0x49a211(_0x20c4a4,_0x4718f8,_0x2dfcd9,_0x347e32,_0x1318ac,_0x1f8bbc,_0x36a2ea,_0x4c2a30,_0x11aa36,_0x3d3e48,_0x2ba0bf,_0x409bd5);},'abfqJ':function(_0x7a0f16,_0xbbbf8e){return _0x7a0f16!==_0xbbbf8e;},'tOUba':'Fpgve','XoEYt':function(_0x5d33ed,_0x17daa3){return _0x5d33ed(_0x17daa3);},'zDZPU':function(_0x36d858,_0x1d67b9){return _0x36d858===_0x1d67b9;},'lcmXo':_0xe49f0c(0x363),'qVjlq':_0xe49f0c(0x374),'nuCmF':function(_0x4a5c3d,_0x1fe38b,_0x16f0fc,_0x34082a,_0x3a7447,_0x58ef12,_0x3020d8){return _0x4a5c3d(_0x1fe38b,_0x16f0fc,_0x34082a,_0x3a7447,_0x58ef12,_0x3020d8);},'zWodw':function(_0x5a34fa,_0xeef227){return _0x5a34fa!==_0xeef227;},'xrqGF':'BjgEU','FKUds':_0xe49f0c(0x211),'oFHBX':function(_0x4e43fa,_0x13dce2){return _0x4e43fa!==_0x13dce2;},'VVuYj':_0xe49f0c(0x209),'CZaIg':_0xe49f0c(0x284),'UnPCN':_0xe49f0c(0x32d),'zXxbl':'esVJs','fxgdH':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','kgLDZ':function(_0x390f3d,_0x2300c2){return _0x390f3d!=_0x2300c2;},'dFhyn':function(_0x4038cc,_0x144ac2){return _0x4038cc!==_0x144ac2;},'xJlDD':function(_0x2ca690,_0x4af954){return _0x2ca690>_0x4af954;},'LahOm':function(_0x103b79,_0x44fc8a){return _0x103b79===_0x44fc8a;},'hccoO':_0xe49f0c(0x257),'UsAoN':_0xe49f0c(0x1fd),'zTuDL':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','TSyKC':function(_0x37c807,_0xe3d1a9,_0x37c192,_0x3c1448,_0x475cf5,_0x2f418e,_0x67c146,_0x3fbbc2){return _0x37c807(_0xe3d1a9,_0x37c192,_0x3c1448,_0x475cf5,_0x2f418e,_0x67c146,_0x3fbbc2);},'TclJc':_0xe49f0c(0x29d),'JEgpD':function(_0x2d88f3,_0xcafc7a){return _0x2d88f3===_0xcafc7a;},'fKlGp':function(_0x160edc,_0x101257,_0x52531d,_0x30ddef,_0x1188ee,_0x4f46d0,_0x3f8dd2,_0x10480d){return _0x160edc(_0x101257,_0x52531d,_0x30ddef,_0x1188ee,_0x4f46d0,_0x3f8dd2,_0x10480d);},'awDSn':_0xe49f0c(0x2b9),'yXyiL':'2|1|4|0|3','QkfJw':_0xe49f0c(0x233),'WNqKB':_0xe49f0c(0x1f5),'gxxGr':function(_0x15d167,_0x1a39da){return _0x15d167===_0x1a39da;},'wPNwQ':function(_0x24c9ad,_0x8192d7,_0xd55e3d){return _0x24c9ad(_0x8192d7,_0xd55e3d);},'PPqsH':function(_0x9ee69e,_0x207490){return _0x9ee69e===_0x207490;},'PnHWX':function(_0x51e2e3,_0x33d354){return _0x51e2e3===_0x33d354;},'YvJkc':function(_0x32a231,_0x1d0e16){return _0x32a231===_0x1d0e16;},'uKugf':_0xe49f0c(0x2ec),'TWnqg':_0xe49f0c(0x299),'taUJd':_0xe49f0c(0x26b),'ZPDFz':_0xe49f0c(0x2dc),'HHXNm':'hubharesources','HyBQj':_0xe49f0c(0x250),'FCCYu':_0xe49f0c(0x271),'KqVcz':function(_0x372667,_0x35b0e5){return _0x372667(_0x35b0e5);},'iiurH':function(_0xaf8fce,_0xefb7f5){return _0xaf8fce(_0xefb7f5);},'odpov':function(_0x2e2150,_0x222b9d){return _0x2e2150(_0x222b9d);},'NnLKA':function(_0x555002,_0x4516a2,_0x46295b){return _0x555002(_0x4516a2,_0x46295b);},'BMeuA':'Added\x20Secret\x20Mapping','mUylG':_0xe49f0c(0x1f6),'PEdAc':function(_0x490740,_0x525a44){return _0x490740===_0x525a44;},'vsCqj':function(_0x1b36e7,_0x33c4a4){return _0x1b36e7===_0x33c4a4;},'yNPtu':_0xe49f0c(0x348),'DWPWc':_0xe49f0c(0x38a),'xwKqO':_0xe49f0c(0x338),'MRPgH':_0xe49f0c(0x384),'qZvyB':_0xe49f0c(0x2f7),'ioBqP':_0xe49f0c(0x2fe),'FlSdN':_0xe49f0c(0x38b),'zkLGL':_0xe49f0c(0x2e0),'DYKPu':function(_0x41590d,_0x1da08b){return _0x41590d===_0x1da08b;},'hfFUM':_0xe49f0c(0x24c),'PjeRD':_0xe49f0c(0x282),'hkaPS':'Hub\x20HA\x20setup\x20completed\x20successfully.','lgAJL':'0|1|3|2|4','gHeHc':_0xe49f0c(0x2ce),'qYtJc':function(_0x388162,_0x3a82fd){return _0x388162(_0x3a82fd);},'XTcMr':_0xe49f0c(0x227),'pzBkq':_0xe49f0c(0x23b),'XfuOP':_0xe49f0c(0x222),'FkHHI':'Namespace\x20created','dolYb':_0xe49f0c(0x27a),'TuGSg':'Spawning\x20Grid\x20on\x20the\x20Cluster','JsiZI':function(_0x565d67,_0x181485,_0x32e28f,_0x543e19,_0x20d881,_0x2d6674,_0x7d0e0b,_0x3581b0,_0x4bfbf4,_0x2fcd16,_0x37dbbc){return _0x565d67(_0x181485,_0x32e28f,_0x543e19,_0x20d881,_0x2d6674,_0x7d0e0b,_0x3581b0,_0x4bfbf4,_0x2fcd16,_0x37dbbc);},'rdWXj':_0xe49f0c(0x364),'UEVTr':_0xe49f0c(0x2e1),'ATNDZ':function(_0x1d662f,_0x3851f6,_0x40aff,_0x190d94,_0x2eac71){return _0x1d662f(_0x3851f6,_0x40aff,_0x190d94,_0x2eac71);},'sGhRb':function(_0xa43a1f,_0x257143,_0x2d9128){return _0xa43a1f(_0x257143,_0x2d9128);},'XaCWN':'private-ingress-nginx-controller','PGCLz':_0xe49f0c(0x2e3),'SiAOq':_0xe49f0c(0x396),'bNVWr':function(_0x70d637,_0xa0b08d,_0x588a1b){return _0x70d637(_0xa0b08d,_0x588a1b);},'wQUxi':function(_0x50317f,_0xd6a95a){return _0x50317f===_0xd6a95a;},'zgQjf':function(_0x3b5780,_0x264bf0){return _0x3b5780===_0x264bf0;},'LihMX':_0xe49f0c(0x265),'RUxvB':function(_0x46557f,_0x43d447,_0x58bd51,_0x946c48,_0x3f4ac1,_0x11fd9a,_0x358e98,_0x4ab00c){return _0x46557f(_0x43d447,_0x58bd51,_0x946c48,_0x3f4ac1,_0x11fd9a,_0x358e98,_0x4ab00c);},'FqQnm':_0xe49f0c(0x27e),'jaYeO':_0xe49f0c(0x237),'SLkFE':'get-grid-url-auth-failed','LWpoN':function(_0x31c17f,_0x5b3a81){return _0x31c17f!==_0x5b3a81;},'fKmoP':function(_0x2aa951,_0x2294c9,_0x238a74,_0x5ba6d7,_0x138293,_0x116325,_0x1569dc,_0x572857){return _0x2aa951(_0x2294c9,_0x238a74,_0x5ba6d7,_0x138293,_0x116325,_0x1569dc,_0x572857);},'eHrAx':'get-grid-url-non-200','sfnvc':_0xe49f0c(0x2f6),'qAyhO':function(_0x52c7f7,_0x1f33b1,_0x2ffc9d,_0xfd4acb,_0x1cd65b,_0x5568b2){return _0x52c7f7(_0x1f33b1,_0x2ffc9d,_0xfd4acb,_0x1cd65b,_0x5568b2);},'laoGC':function(_0xa1325c,_0x1bc54d,_0x267007,_0x5075f5,_0x453d8d,_0x1ab44a,_0x5585b0){return _0xa1325c(_0x1bc54d,_0x267007,_0x5075f5,_0x453d8d,_0x1ab44a,_0x5585b0);},'heEmY':_0xe49f0c(0x37c)};let _0x2904c8=![],_0x5a5dd1=![],_0xd25d67,_0x1e89ff,_0x537733,_0x5a0358,_0x496265,_0x379deb,_0x5216d5,_0x1233be,_0x4fb761,_0x21510f,_0x3c2bd6,_0x5a17a7,_0x31e7cd,_0x1a5b4e,_0x59d056=0x1,_0x47921b=0xe;try{global_registry[_0xe49f0c(0x35e)]=_0x4f26e5[_0xe49f0c(0x2ba)](uuidv4),global_registry[_0xe49f0c(0x39f)]=![];if(!fs['existsSync'](_0x4f26e5[_0xe49f0c(0x367)](getCredentialsPath))){if(_0x4f26e5[_0xe49f0c(0x1f1)](_0x4f26e5[_0xe49f0c(0x2aa)],_0x4f26e5[_0xe49f0c(0x387)])){const _0x5e9d1f=_0x4f26e5[_0xe49f0c(0x24a)]['split']('|');let _0x3e9047=0x0;while(!![]){switch(_0x5e9d1f[_0x3e9047++]){case'0':_0x440a6a['enableHubHa']=!![];continue;case'1':_0x4ab91f[_0xe49f0c(0x350)](_0x4f26e5['KYFXU']);continue;case'2':_0x5799ea[_0xe49f0c(0x2a6)]=_0x4f26e5['LKIzE'];continue;case'3':_0xb45555['kafkaPassword']=_0x4f26e5[_0xe49f0c(0x34f)];continue;case'4':_0x569606[_0xe49f0c(0x39a)]=_0x4f26e5[_0xe49f0c(0x261)];continue;}break;}}else console[_0xe49f0c(0x308)](_0x4f26e5[_0xe49f0c(0x35b)]),await _0x4f26e5['eGFzx'](sendInstrumentationEvent,_0x17916f,_0x4f26e5[_0xe49f0c(0x232)],messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5['ZHFcF'],null,_0x17916f),process['exit'](0x1);}await _0x4f26e5[_0xe49f0c(0x26d)](sendInstrumentationEvent,_0x17916f,_0x4f26e5[_0xe49f0c(0x232)],messageTypes[_0xe49f0c(0x339)],null,null,_0x17916f);const _0x408930=JSON[_0xe49f0c(0x2e7)](fs['readFileSync'](_0x4f26e5[_0xe49f0c(0x2e6)](getCredentialsPath)));global_registry[_0xe49f0c(0x2cc)]=_0x408930[_0xe49f0c(0x23b)][_0xe49f0c(0x2cd)],global_registry['bstackAccesskey']=_0x408930[_0xe49f0c(0x23b)][_0xe49f0c(0x224)];const _0x5b3ff6=WS_ENDPOINT[_0xe49f0c(0x234)](_0x4f26e5[_0xe49f0c(0x2f8)],_0x408930[_0xe49f0c(0x23b)][_0xe49f0c(0x2cd)])['replace'](_0x4f26e5[_0xe49f0c(0x325)],_0x408930['Browserstack']['password']),_0x263b69={};_0x263b69[_0xe49f0c(0x37b)]=ws,_0x263b69[_0xe49f0c(0x36a)]=0x36ee80,_0x5a17a7=new ReconnectingWebSocket(_0x5b3ff6,[],_0x263b69),logger['debug'](_0x4f26e5[_0xe49f0c(0x2c7)]),webSocketUtils[_0xe49f0c(0x2a8)](_0x5a17a7,_0x17916f[_0xe49f0c(0x30d)],_0x17916f[_0xe49f0c(0x224)]);const _0x39fb3a=_0x17916f[_0xe49f0c(0x288)]||DEFAULT_GRID_NAME;if(_0x17916f[_0xe49f0c(0x36c)]||_0x17916f['cloudProvider']||_0x17916f[_0xe49f0c(0x349)]){if(_0x4f26e5['EWFpK'](_0x4f26e5[_0xe49f0c(0x28c)],_0x4f26e5[_0xe49f0c(0x28c)])){if(!(_0x17916f['clusterName']&&_0x17916f[_0xe49f0c(0x337)]&&_0x17916f[_0xe49f0c(0x349)])){if(_0x4f26e5[_0xe49f0c(0x22e)](_0x4f26e5[_0xe49f0c(0x2b8)],_0x4f26e5[_0xe49f0c(0x2b8)])){const _0x1c514c={};_0x1c514c[_0xe49f0c(0x38d)]=_0x4c172b[_0xe49f0c(0x36b)],_0x1c514c[_0xe49f0c(0x342)]=_0x265018,_0x3359b0[_0xe49f0c(0x30e)](_0x4499e6,_0x1c514c,_0x4f26e5[_0xe49f0c(0x23c)],!![]);}else _0xd25d67=_0x4f26e5[_0xe49f0c(0x25d)],await _0x4f26e5['FWOgE'](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5['ONVHi'],_0x4f26e5['FalnZ'],_0x4f26e5['ZnApF']),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1);}![AWS,AZURE,GCP][_0xe49f0c(0x22a)](_0x17916f['cloudProvider'][_0xe49f0c(0x31f)]())&&(_0x4f26e5[_0xe49f0c(0x25b)](_0x4f26e5[_0xe49f0c(0x341)],_0x4f26e5[_0xe49f0c(0x341)])?(_0xd25d67=_0x4f26e5[_0xe49f0c(0x395)],await _0x4f26e5[_0xe49f0c(0x2f0)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x213)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1)):_0x4c86e7[_0xe49f0c(0x206)]=_0x1613b3[_0xe49f0c(0x206)]);_0x17916f[_0xe49f0c(0x23e)]&&_0x4f26e5[_0xe49f0c(0x2b4)](_0x17916f['privateGrid'][_0xe49f0c(0x31f)](),_0x4f26e5['NRbih'])&&(_0x4f26e5[_0xe49f0c(0x25b)](_0x4f26e5[_0xe49f0c(0x26a)],_0x4f26e5[_0xe49f0c(0x345)])?_0x1ede23[_0xe49f0c(0x350)](_0xe49f0c(0x1fc)+_0x28c20d[_0xe49f0c(0x2b3)](_0x3edbfb)+'\x20'):global_registry['isPrivateGrid']=!![]);global_registry[_0xe49f0c(0x337)]=_0x17916f[_0xe49f0c(0x337)],global_registry[_0xe49f0c(0x226)]=_0x17916f[_0xe49f0c(0x349)],global_registry[_0xe49f0c(0x36c)]=_0x17916f[_0xe49f0c(0x36c)];const _0x3a7752=await _0x4f26e5[_0xe49f0c(0x1fb)](getCloudProviderObject,_0x17916f[_0xe49f0c(0x337)],_0x17916f[_0xe49f0c(0x36c)],_0x39fb3a,_0x5a17a7,webSocketUtils,_0x17916f),_0x3943c3=await _0x3a7752['isClusterPresent']();if(!_0x3943c3)_0x4f26e5[_0xe49f0c(0x2b4)](_0x4f26e5['mcXFU'],_0x4f26e5[_0xe49f0c(0x2bf)])?(logger['info'](_0xe49f0c(0x2a1)+_0x17916f[_0xe49f0c(0x36c)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x2904c8=![],_0x5a5dd1=!![]):_0xf96833[_0xe49f0c(0x236)]();else{if(_0x4f26e5['EWFpK'](_0x4f26e5[_0xe49f0c(0x2cf)],_0x4f26e5['hmRCM']))_0x2904c8=!![];else{const _0x42e6ae=_0x4f26e5['FEImw'][_0xe49f0c(0x225)]('|');let _0x46f61c=0x0;while(!![]){switch(_0x42e6ae[_0x46f61c++]){case'0':_0x6cefc4[_0xe49f0c(0x312)]&&_0x4f26e5['zvRxm'](_0x145d3e,_0x39cb87['kafkaUploader']);continue;case'1':_0x255c69=_0x42fca1[_0xe49f0c(0x220)];continue;case'2':_0xa1d420='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x34c18f;continue;case'3':_0x2dbe9e=_0x32da0a[_0xe49f0c(0x380)];continue;case'4':_0x48dff0=null;continue;case'5':_0x4a3307=null;continue;case'6':const _0x20d663={};_0x20d663[_0xe49f0c(0x38d)]=_0x17a994[_0xe49f0c(0x36b)],_0x20d663[_0xe49f0c(0x342)]=_0x5ccd5a,_0x16784f[_0xe49f0c(0x30e)](_0x48a598,_0x20d663);continue;case'7':_0x532d9c=_0x2f38c1[_0xe49f0c(0x293)];continue;case'8':_0x4f26e5[_0xe49f0c(0x241)](_0x740dca['privateGrid'],_0x262aca)&&_0x1819bd[_0xe49f0c(0x23e)]&&(_0x1bba79['isPrivateGrid']=!![]);continue;case'9':_0x28d407=_0x513544[_0xe49f0c(0x2a3)];continue;case'10':_0x4f26e5[_0xe49f0c(0x205)](_0x92372f,_0x326f81,_0x448275,_0x4f4f1e,_0x314f48,_0x1e78e6,_0x43e546,_0x3da4be,_0x4867dd,_0xb5630d,_0x5de431,_0x30882e,_0x1724c9[_0xe49f0c(0x360)]);continue;case'11':_0x471b19=null;continue;case'12':_0x5082c8=_0x52623c[_0xe49f0c(0x2ab)];continue;case'13':_0x45e668=_0x5db7f4['minNodes'];continue;case'14':_0x408e7b=_0x18f95f[_0xe49f0c(0x315)];continue;case'15':_0x134cd8[_0xe49f0c(0x350)](_0x4f6ff9);continue;}break;}}}_0x537733=_0x17916f[_0xe49f0c(0x36c)],_0x1e89ff=_0x17916f[_0xe49f0c(0x337)]['toLowerCase'](),_0x5a0358=_0x17916f[_0xe49f0c(0x349)];}else _0x2f8705[_0xe49f0c(0x350)](_0xe49f0c(0x33c)+_0x295d47+'\x20');}else _0x17916f[_0xe49f0c(0x206)]&&(_0x4f26e5[_0xe49f0c(0x2b4)](_0x4f26e5[_0xe49f0c(0x1ff)],_0x4f26e5['PQtqB'])?_0x10405e=!![]:global_registry['gridProfile']=_0x17916f['gridProfile']);global_registry[_0xe49f0c(0x288)]=_0x17916f['gridName'];const _0x51baee={'method':_0x4f26e5[_0xe49f0c(0x25c)],'headers':_0x4f26e5[_0xe49f0c(0x207)](getAuthHeader,_0x408930[_0xe49f0c(0x23b)][_0xe49f0c(0x2cd)],_0x408930['Browserstack']['password']),'throwHttpErrors':![]},_0x253e74={};_0x253e74[_0xe49f0c(0x288)]=_0x39fb3a;const _0x279cd0=_0x253e74;_0x5a5dd1&&(_0x4f26e5[_0xe49f0c(0x305)](_0x4f26e5[_0xe49f0c(0x2d9)],_0x4f26e5[_0xe49f0c(0x276)])?(_0x279cd0[_0xe49f0c(0x349)]=_0x5a0358,_0x279cd0[_0xe49f0c(0x337)]=_0x1e89ff,_0x279cd0[_0xe49f0c(0x26c)]=!![],_0x279cd0[_0xe49f0c(0x2ac)]=_0x17916f['clusterAutoupgrade']):(_0x1ca9ca[_0xe49f0c(0x350)](_0xe49f0c(0x2a1)+_0x2a850a['clusterName']+_0xe49f0c(0x331)),_0x49cc1f=![],_0x5052e4=!![]));_0x17916f['clusterAutoupgrade']&&(_0x4f26e5['btGmb'](_0x4f26e5[_0xe49f0c(0x3a1)],_0x4f26e5[_0xe49f0c(0x264)])?logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x20a)]):_0x247b06=_0x4f26e5[_0xe49f0c(0x27f)]);const _0xdc1399=_0xe49f0c(0x334)+AG_API_URL+_0xe49f0c(0x30b),_0x18f9a2={'searchParams':_0x279cd0,'throwHttpErrors':![],..._0x51baee},_0x27b04b=_0x18f9a2,_0x5b991e=await _0x4f26e5['xMLDS'](got,_0xdc1399,_0x27b04b);(_0x4f26e5[_0xe49f0c(0x255)](_0x5b991e,null)||_0x4f26e5[_0xe49f0c(0x39e)](_0x5b991e,undefined))&&(_0x4f26e5['dQVpf'](_0x4f26e5[_0xe49f0c(0x295)],_0x4f26e5[_0xe49f0c(0x295)])?_0x4f26e5[_0xe49f0c(0x32c)](_0x13a22e,_0x4374ec[_0xe49f0c(0x27b)]):(_0xd25d67=_0x4f26e5[_0xe49f0c(0x353)],await _0x4f26e5[_0xe49f0c(0x2f0)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes['ERROR'],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x256)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process['exit'](0x1)));if(_0x4f26e5['bCYBG'](_0x5b991e['statusCode'],0x191)){if(_0x4f26e5[_0xe49f0c(0x303)](_0x4f26e5[_0xe49f0c(0x228)],_0x4f26e5[_0xe49f0c(0x2ff)]))_0xd25d67=_0x4f26e5['NXEoU'],await _0x4f26e5[_0xe49f0c(0x268)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5['ONVHi'],_0x4f26e5[_0xe49f0c(0x279)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1);else{const _0x2c6cef=_0x4f26e5['TGkHI'][_0xe49f0c(0x225)]('|');let _0x2b7a7e=0x0;while(!![]){switch(_0x2c6cef[_0x2b7a7e++]){case'0':_0x2569c9=_0xe49f0c(0x253)+_0x51416f+_0xe49f0c(0x2be)+_0x31f54f+'\x27';continue;case'1':const _0x2cb7c6={};_0x2cb7c6['type']=_0x981da4[_0xe49f0c(0x1fe)],_0x2cb7c6[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x306)],_0x3ed13d[_0xe49f0c(0x30e)](_0x142ca9,_0x2cb7c6);continue;case'2':_0x6f67cb[_0xe49f0c(0x350)](_0x3e96da);continue;case'3':_0x2a0d4a[_0xe49f0c(0x2a3)]=_0x4530a2[_0xe49f0c(0x2a3)];continue;case'4':_0xa195d7[_0xe49f0c(0x226)]=_0x57f725;continue;case'5':_0xe36c4f[_0xe49f0c(0x36c)]=_0xba4c4c;continue;case'6':_0x544144['cloudProvider']=_0x2aeeed;continue;case'7':_0x5cc60c[_0xe49f0c(0x293)]=_0x248419[_0xe49f0c(0x293)];continue;case'8':const _0x3466f9={};_0x3466f9['type']=_0x302402[_0xe49f0c(0x36b)],_0x3466f9[_0xe49f0c(0x342)]=_0x583cf2,_0x2df41e[_0xe49f0c(0x30e)](_0x231507,_0x3466f9);continue;}break;}}}if(_0x4f26e5[_0xe49f0c(0x218)](_0x5b991e[_0xe49f0c(0x273)],0xc8)){if(_0x4f26e5[_0xe49f0c(0x303)](_0x4f26e5[_0xe49f0c(0x23a)],_0x4f26e5[_0xe49f0c(0x386)]))_0xd25d67=_0xe49f0c(0x357)+JSON[_0xe49f0c(0x2b3)](_0x5b991e['body']),await _0x4f26e5[_0xe49f0c(0x35c)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5['Edrxs'],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1);else{const _0x13d562={'azure.workload.identity/use':_0x4f26e5['NRbih'],..._0x241705[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)][_0xe49f0c(0x1f2)][_0xe49f0c(0x1ed)]};_0x56f375[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)][_0xe49f0c(0x1f2)][_0xe49f0c(0x1ed)]=_0x13d562,_0x18239a[0x0]['spec'][_0xe49f0c(0x319)][_0xe49f0c(0x2b7)][_0xe49f0c(0x2bd)]=_0x4f26e5[_0xe49f0c(0x326)];}}const _0x3cc883=JSON[_0xe49f0c(0x2e7)](_0x5b991e[_0xe49f0c(0x37d)]),_0x54c365={};_0x54c365[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x1fe)],_0x54c365[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x306)],webSocketUtils['sendEventToBackend'](_0x5a17a7,_0x54c365);const _0x1fa05f={};_0x1fa05f[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x1fa05f[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x243)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x1fa05f);_0x3cc883[_0xe49f0c(0x277)]&&(_0x4f26e5['CApIN'](_0x4f26e5['toVmV'],_0x4f26e5[_0xe49f0c(0x221)])?_0x1f48af=_0x4f26e5[_0xe49f0c(0x32f)]:(_0xd25d67=_0xe49f0c(0x2c4)+_0x39fb3a+_0xe49f0c(0x377),await _0x4f26e5[_0xe49f0c(0x268)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x31b)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1)));const _0x39175d=_0x3cc883[_0xe49f0c(0x29b)];let _0x11eff4=_0x39175d[_0x3cc883[_0xe49f0c(0x223)]];_0x17916f['gridProfile']&&(_0x4f26e5['wBMRE'](_0x4f26e5[_0xe49f0c(0x1fa)],_0x4f26e5[_0xe49f0c(0x1fa)])?_0x46fcfc[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x20a)]):_0x11eff4=_0x39175d[_0x17916f[_0xe49f0c(0x206)]]);global_registry[_0xe49f0c(0x312)]=![];if(_0x17916f['hubHa']){if(_0x4f26e5[_0xe49f0c(0x25f)](_0x4f26e5['ZGiPF'],_0x4f26e5[_0xe49f0c(0x371)]))_0x3366a3=_0x4580b6[_0x184916['gridProfile']];else{const _0x1ee1b8=_0x4f26e5[_0xe49f0c(0x1f4)][_0xe49f0c(0x225)]('|');let _0x41e335=0x0;while(!![]){switch(_0x1ee1b8[_0x41e335++]){case'0':global_registry[_0xe49f0c(0x39a)]=_0x4f26e5[_0xe49f0c(0x261)];continue;case'1':logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x38e)]);continue;case'2':global_registry['redisPassword']=_0x4f26e5[_0xe49f0c(0x248)];continue;case'3':global_registry[_0xe49f0c(0x270)]=_0x4f26e5[_0xe49f0c(0x34f)];continue;case'4':global_registry[_0xe49f0c(0x312)]=!![];continue;}break;}}}if(_0x4f26e5[_0xe49f0c(0x39e)](_0x2904c8,![])&&_0x4f26e5[_0xe49f0c(0x352)](_0x5a5dd1,![])){if(_0x4f26e5[_0xe49f0c(0x379)](_0x4f26e5[_0xe49f0c(0x39c)],_0x4f26e5[_0xe49f0c(0x39c)])){_0x4f26e5['OKazF'](_0x11eff4,undefined)&&(_0x4f26e5[_0xe49f0c(0x22e)](_0x4f26e5['GYZiA'],_0x4f26e5['GYZiA'])?_0x33eabc[_0xe49f0c(0x308)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x5ba084+'\x20\x0a'+_0x5e78ef['stringify'](_0x2d174c[_0xe49f0c(0x2db)])):(_0xd25d67=_0x4f26e5[_0xe49f0c(0x28b)],await _0x4f26e5[_0xe49f0c(0x216)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x390)],_0x4f26e5['ZnApF']),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1)));global_registry[_0xe49f0c(0x204)]=_0x11eff4['id'],_0xd25d67='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x39fb3a+_0xe49f0c(0x33e)+_0x11eff4[_0xe49f0c(0x2b5)]+'\x27\x20grid\x20profile',logger[_0xe49f0c(0x350)](_0xd25d67);const _0xafee68={};_0xafee68[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0xafee68['message']=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0xafee68),_0x1e89ff=_0x11eff4[_0xe49f0c(0x337)],_0x537733=_0x11eff4[_0xe49f0c(0x36c)],_0x5a0358=_0x11eff4[_0xe49f0c(0x349)],_0x496265=_0x11eff4['concurrency'],_0x379deb=_0x11eff4['instanceType'],_0x5216d5=_0x11eff4['vpc'],_0x1233be=_0x11eff4[_0xe49f0c(0x329)],_0x4fb761=_0x11eff4[_0xe49f0c(0x2fc)],_0x21510f=_0x11eff4[_0xe49f0c(0x220)],_0x59d056=_0x11eff4['minNodes'],_0x47921b=_0x11eff4[_0xe49f0c(0x380)],_0x31e7cd=_0x3cc883[_0xe49f0c(0x2a3)],_0x1a5b4e=_0x3cc883[_0xe49f0c(0x293)],_0x5216d5&&_0x4f26e5[_0xe49f0c(0x287)](_0x5216d5['length'],0x0)&&(_0x4f26e5['CPXYZ'](_0x4f26e5['KNOAC'],_0x4f26e5[_0xe49f0c(0x2c8)])?_0x5216d5=null:_0x4f26e5[_0xe49f0c(0x290)](_0x3fe2ae,_0x375fce['kafkaUploader'])),_0x4fb761&&_0x4f26e5[_0xe49f0c(0x25b)](_0x4fb761['length'],0x0)&&(_0x4f26e5[_0xe49f0c(0x285)](_0x4f26e5[_0xe49f0c(0x219)],_0x4f26e5[_0xe49f0c(0x219)])?_0x2ad023=null:_0x4fb761=null),_0x4f26e5[_0xe49f0c(0x35d)](_0x11eff4['privateGrid'],undefined)&&_0x11eff4[_0xe49f0c(0x23e)]&&(_0x4f26e5[_0xe49f0c(0x29f)](_0x4f26e5[_0xe49f0c(0x20e)],_0x4f26e5[_0xe49f0c(0x20e)])?(_0x3b50e7[_0xe49f0c(0x349)]=_0x43057b,_0x34dca0[_0xe49f0c(0x337)]=_0x14f26f,_0x248803[_0xe49f0c(0x26c)]=!![],_0x274e93[_0xe49f0c(0x2ac)]=_0x4c2f1e['clusterAutoupgrade']):global_registry[_0xe49f0c(0x39f)]=!![]),_0x4f26e5['ePxwB'](updateGlobalRegistryWithConfig,_0x1e89ff,_0x537733,_0x5a0358,_0x496265,_0x379deb,_0x21510f,_0x11eff4,_0x31e7cd,_0x1a5b4e,_0x59d056,_0x47921b,_0x17916f[_0xe49f0c(0x360)]),global_registry[_0xe49f0c(0x312)]&&(_0x4f26e5[_0xe49f0c(0x39e)](_0x4f26e5[_0xe49f0c(0x208)],_0x4f26e5['CGoMr'])?_0x90e085=_0x4f26e5['Lsikp']:_0x4f26e5[_0xe49f0c(0x32c)](updateGlobalRegistryForHubHa,_0x3cc883[_0xe49f0c(0x27b)]));}else _0x22a060[_0xe49f0c(0x39f)]=!![];}else{if(_0x4f26e5['IhyVx'](_0x5a5dd1,!![])){if(_0x4f26e5[_0xe49f0c(0x385)](_0x4f26e5[_0xe49f0c(0x37f)],_0x4f26e5[_0xe49f0c(0x1f8)]))_0x36276b['isPrivateGrid']=!![];else{_0xd25d67=_0xe49f0c(0x32a)+_0x39fb3a,logger[_0xe49f0c(0x350)](_0xd25d67);const _0x1fae05={};_0x1fae05[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x1fae05[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x1fae05),_0x496265=_0x11eff4[_0xe49f0c(0x315)],_0x379deb=_0x11eff4[_0xe49f0c(0x2ab)],_0x5216d5=null,_0x1233be=null,_0x4fb761=null,_0x21510f=_0x11eff4[_0xe49f0c(0x220)],_0x59d056=_0x11eff4[_0xe49f0c(0x30f)],_0x47921b=_0x11eff4[_0xe49f0c(0x380)],_0x31e7cd=_0x3cc883[_0xe49f0c(0x2a3)],_0x1a5b4e=_0x3cc883[_0xe49f0c(0x293)],_0x4f26e5[_0xe49f0c(0x35d)](_0x11eff4[_0xe49f0c(0x23e)],undefined)&&_0x11eff4[_0xe49f0c(0x23e)]&&(_0x4f26e5[_0xe49f0c(0x2a2)](_0x4f26e5[_0xe49f0c(0x2a7)],_0x4f26e5[_0xe49f0c(0x2e5)])?_0x277130[_0xe49f0c(0x39f)]=!![]:global_registry['isPrivateGrid']=!![]),_0x4f26e5[_0xe49f0c(0x262)](updateGlobalRegistryWithConfig,_0x1e89ff,_0x537733,_0x5a0358,_0x496265,_0x379deb,_0x21510f,_0x11eff4,_0x31e7cd,_0x1a5b4e,_0x59d056,_0x47921b,_0x17916f['clusterAutoupgrade']),global_registry['enableHubHa']&&(_0x4f26e5[_0xe49f0c(0x2fd)](_0x4f26e5[_0xe49f0c(0x21e)],_0x4f26e5[_0xe49f0c(0x21e)])?_0x12795d=null:_0x4f26e5[_0xe49f0c(0x38c)](updateGlobalRegistryForHubHa,_0x3cc883[_0xe49f0c(0x200)]));}}else{if(_0x4f26e5[_0xe49f0c(0x29c)](_0x4f26e5['lcmXo'],_0x4f26e5['lcmXo'])){const _0x264774=_0x4f26e5[_0xe49f0c(0x2c2)]['split']('|');let _0x2d7d7d=0x0;while(!![]){switch(_0x264774[_0x2d7d7d++]){case'0':global_registry['clusterRegion']=_0x5a0358;continue;case'1':global_registry['hubVersion']=_0x3cc883[_0xe49f0c(0x2a3)];continue;case'2':const _0x35bf2e={};_0x35bf2e['type']=WS_EVENTS[_0xe49f0c(0x1fe)],_0x35bf2e[_0xe49f0c(0x342)]=_0x4f26e5['EzznY'],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x35bf2e);continue;case'3':global_registry[_0xe49f0c(0x337)]=_0x1e89ff;continue;case'4':logger['info'](_0xd25d67);continue;case'5':const _0x5684a0={};_0x5684a0['type']=WS_EVENTS[_0xe49f0c(0x36b)],_0x5684a0[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x5684a0);continue;case'6':_0xd25d67=_0xe49f0c(0x253)+_0x39fb3a+_0xe49f0c(0x2be)+_0x537733+'\x27';continue;case'7':global_registry[_0xe49f0c(0x293)]=_0x3cc883[_0xe49f0c(0x293)];continue;case'8':global_registry[_0xe49f0c(0x36c)]=_0x537733;continue;}break;}}else{const _0x2e4472={};_0x2e4472[_0xe49f0c(0x2ea)]=_0x4f26e5[_0xe49f0c(0x2a9)],_0x2e4472['type']=_0x4f26e5[_0xe49f0c(0x274)];const _0x2112f9={};_0x2112f9['description']=_0x4f26e5[_0xe49f0c(0x369)],_0x2112f9[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x27860e={};_0x27860e['description']=_0x4f26e5['bJgkJ'],_0x27860e[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x2ec73b={};_0x2ec73b['description']=_0x4f26e5['FLmLy'],_0x2ec73b[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x306963={};_0x306963[_0xe49f0c(0x2ea)]=_0x4f26e5[_0xe49f0c(0x2d8)],_0x306963[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x307ae4={};_0x307ae4[_0xe49f0c(0x2ea)]=_0x4f26e5[_0xe49f0c(0x370)],_0x307ae4[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x274)];const _0x1277e7={};_0x1277e7[_0xe49f0c(0x2ea)]=_0x4f26e5[_0xe49f0c(0x254)],_0x1277e7[_0xe49f0c(0x38d)]=_0x4f26e5[_0xe49f0c(0x307)],_0x1277e7['default']=![];const _0x295fa1={};_0x295fa1['description']=_0x4f26e5['ymSNt'],_0x295fa1['type']=_0x4f26e5[_0xe49f0c(0x307)],_0x295fa1['default']=![];const _0x2178bb={};_0x2178bb['description']=_0x4f26e5[_0xe49f0c(0x399)],_0x2178bb['type']=_0x4f26e5[_0xe49f0c(0x307)],_0x2178bb[_0xe49f0c(0x2f4)]=![];const _0x1809f3={};return _0x1809f3['grid-name']=_0x2e4472,_0x1809f3[_0xe49f0c(0x328)]=_0x2112f9,_0x1809f3['cluster-name']=_0x27860e,_0x1809f3[_0xe49f0c(0x2de)]=_0x2ec73b,_0x1809f3[_0xe49f0c(0x349)]=_0x306963,_0x1809f3[_0xe49f0c(0x24b)]=_0x307ae4,_0x1809f3['skip-tls-cert-verify']=_0x1277e7,_0x1809f3['hub-ha']=_0x295fa1,_0x1809f3['cluster-autoupgrade']=_0x2178bb,_0x220279[_0xe49f0c(0x2ed)](_0x130b67['create'])[_0xe49f0c(0x2ae)](_0x18833f)['options'](_0x1809f3)[_0xe49f0c(0x238)](_0x4f26e5[_0xe49f0c(0x32b)])['argv'];}}}const _0x2a7575=await _0x4f26e5[_0xe49f0c(0x2b1)](getCloudProviderObject,_0x1e89ff,_0x537733,_0x39fb3a,_0x5a17a7,webSocketUtils,_0x17916f);if(_0x4f26e5['zWodw'](_0x1e89ff,AZURE)){if(_0x4f26e5[_0xe49f0c(0x285)](_0x4f26e5[_0xe49f0c(0x269)],_0x4f26e5[_0xe49f0c(0x2f2)]))_0x2a7575[_0xe49f0c(0x236)]();else{const _0x118079={};_0x118079['type']=_0x7e3387['LOG'],_0x118079[_0xe49f0c(0x342)]='Cluster\x20'+_0x49b145+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x14a8a3['sendEventToBackend'](_0x33b51a,_0x118079,_0x4f26e5[_0xe49f0c(0x2c6)]),_0x420a4e['info'](_0xe49f0c(0x34d)+_0x116d51+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0xa78f06=!![];if(_0x4f26e5[_0xe49f0c(0x25b)](_0x578e04,!![]))throw new _0x296570('Cluster\x20'+_0x55add9+_0xe49f0c(0x34a));}}let _0x4cac17;if(_0x4f26e5[_0xe49f0c(0x2a2)](_0x2904c8,![])){_0xd25d67=_0xe49f0c(0x38f)+_0x5a0358+').';const _0x2474f3={};_0x2474f3['type']=WS_EVENTS[_0xe49f0c(0x36b)],_0x2474f3[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x2474f3),logger[_0xe49f0c(0x350)](_0xd25d67);const _0x5e4650=await _0x2a7575[_0xe49f0c(0x317)]();if(_0x5e4650){if(_0x4f26e5['oFHBX'](_0x4f26e5[_0xe49f0c(0x368)],_0x4f26e5[_0xe49f0c(0x366)])){const _0x22c606={};_0x22c606['type']=WS_EVENTS[_0xe49f0c(0x36b)],_0x22c606['message']=_0xe49f0c(0x34d)+_0x537733+_0xe49f0c(0x245),webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x22c606,_0x4f26e5['zgsDA']),logger[_0xe49f0c(0x350)]('Cluster\x20'+_0x537733+_0xe49f0c(0x245)),_0x2904c8=!![];if(_0x4f26e5[_0xe49f0c(0x25b)](_0x5a5dd1,!![])){if(_0x4f26e5['CApIN'](_0x4f26e5[_0xe49f0c(0x203)],_0x4f26e5[_0xe49f0c(0x31a)]))throw new Error('Cluster\x20'+_0x537733+_0xe49f0c(0x34a));else throw new _0x2e67f7(_0xe49f0c(0x34d)+_0x3df36c+_0xe49f0c(0x34a));}}else _0x450aff=_0x4e6b2a[_0xe49f0c(0x2e9)],_0x3fddc6=_0x4f26e5['HtLVB'];}else{const _0x26fb94={};_0x26fb94[_0xe49f0c(0x38d)]=WS_EVENTS['LOG'],_0x26fb94['message']=_0x4f26e5[_0xe49f0c(0x214)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x26fb94),logger[_0xe49f0c(0x350)](_0x4f26e5['fxgdH']);const _0x587ff1=_0x4f26e5[_0xe49f0c(0x2df)](_0x5216d5,null)&&_0x4f26e5[_0xe49f0c(0x2a0)](_0x5216d5,undefined),_0x11be44=_0x4f26e5[_0xe49f0c(0x2df)](_0x4fb761,null)&&_0x4f26e5['YaKwS'](_0x4fb761,undefined)&&_0x4f26e5[_0xe49f0c(0x361)](_0x4fb761[_0xe49f0c(0x266)],0x0);if(_0x587ff1){_0x4f26e5[_0xe49f0c(0x298)](_0x11be44,![])&&(_0xd25d67=_0x4f26e5[_0xe49f0c(0x263)],await _0x4f26e5[_0xe49f0c(0x35c)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes['ERROR'],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5['UsAoN'],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1));const _0x4e5ef5=await _0x2a7575[_0xe49f0c(0x20f)](_0x5216d5);_0x4f26e5['qdVfx'](_0x4e5ef5,![])?(_0xd25d67=_0x4f26e5[_0xe49f0c(0x358)],await _0x4f26e5['TSyKC'](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes['ERROR'],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x31e)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1)):logger[_0xe49f0c(0x350)]('Found\x20VPC:\x20'+_0x5216d5+'\x20');const _0x2ca590=await _0x2a7575[_0xe49f0c(0x393)](_0x4fb761,_0x5216d5);_0x4f26e5[_0xe49f0c(0x28d)](_0x2ca590[0x0],![])?(_0xd25d67=_0xe49f0c(0x231)+JSON['stringify'](_0x2ca590[0x1])+_0xe49f0c(0x24e)+_0x5216d5+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x4f26e5[_0xe49f0c(0x35a)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x21b)],_0x4f26e5['ZnApF']),logger[_0xe49f0c(0x308)](_0xd25d67),process['exit'](0x1)):logger[_0xe49f0c(0x350)](_0xe49f0c(0x1fc)+JSON['stringify'](_0x4fb761)+'\x20'),[_0x5216d5,_0x4fb761]=await _0x2a7575['setupNewCluster'](_0x5216d5,_0x4fb761);}else{const _0x4e7207=_0x4f26e5[_0xe49f0c(0x33f)][_0xe49f0c(0x225)]('|');let _0x4d30b8=0x0;while(!![]){switch(_0x4e7207[_0x4d30b8++]){case'0':const _0x312f9f={};_0x312f9f[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x312f9f[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x21a)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x312f9f);continue;case'1':logger['info'](_0x4f26e5[_0xe49f0c(0x242)]);continue;case'2':const _0x5f06c4={};_0x5f06c4[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x5f06c4[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x242)],webSocketUtils['sendEventToBackend'](_0x5a17a7,_0x5f06c4);continue;case'3':logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x21a)]);continue;case'4':[_0x5216d5,_0x4fb761]=await _0x2a7575[_0xe49f0c(0x373)](_0x5216d5,_0x4fb761);continue;}break;}}}}_0x2904c8&&_0x4f26e5['gxxGr'](_0x1e89ff,AZURE)&&(await _0x2a7575[_0xe49f0c(0x301)](),await _0x2a7575[_0xe49f0c(0x388)]());const [_0x425abc,_0x536553,_0x57dbd5,_0x314ad2,_0x9e0dd4,_0x5ae4f3,_0x30b07e]=await _0x4f26e5[_0xe49f0c(0x32e)](createK8sClient,_0x2a7575,_0x17916f['skipTlsCertVerify']);_0x4f26e5['PPqsH'](_0x2904c8,![])&&_0x4f26e5[_0xe49f0c(0x30a)](_0x1e89ff,AWS)&&(global_registry[_0xe49f0c(0x378)]=!![],_0x4cac17=await _0x2a7575['setupAutoscaler'](_0x425abc,_0x17916f));if(_0x4f26e5[_0xe49f0c(0x259)](_0x2904c8,![])&&global_registry['enableHubHa'])try{await _0x2a7575['setupHubHa'](_0x5ae4f3,_0x30b07e,_0x17916f,_0x5216d5,_0x4fb761);const _0x2299ea={};_0x2299ea[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x2299ea[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x2ef)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x2299ea);!await _0x4f26e5[_0xe49f0c(0x207)](namespaceExists,_0x425abc,global_registry[_0xe49f0c(0x39a)])&&await _0x4f26e5[_0xe49f0c(0x32e)](createNamespace,_0x425abc,global_registry[_0xe49f0c(0x39a)]);logger[_0xe49f0c(0x350)](_0x4f26e5['TWnqg']);let _0x4f159e=await fs[_0xe49f0c(0x246)](path[_0xe49f0c(0x27c)](__dirname,_0x4f26e5['taUJd'],_0x4f26e5[_0xe49f0c(0x398)],_0x4f26e5[_0xe49f0c(0x381)],_0x4f26e5[_0xe49f0c(0x2f1)]),_0x4f26e5[_0xe49f0c(0x375)]);_0x4f159e=_0x4f159e[_0xe49f0c(0x234)](/<RedisClientPassword>/g,_0x4f26e5['KqVcz'](encodeBase64,global_registry['redisPassword'])),_0x4f159e=_0x4f159e[_0xe49f0c(0x234)](/<KafkaClientPassword>/g,_0x4f26e5[_0xe49f0c(0x27d)](encodeBase64,global_registry[_0xe49f0c(0x270)])),_0x4f159e=_0x4f159e[_0xe49f0c(0x234)](/<BstackUsername>/g,_0x4f26e5['odpov'](encodeBase64,global_registry[_0xe49f0c(0x2cc)])),_0x4f159e=_0x4f159e[_0xe49f0c(0x234)](/<BstackAccessKey>/g,_0x4f26e5[_0xe49f0c(0x38c)](encodeBase64,global_registry['bstackAccesskey']));const _0x2ae9d4=yaml[_0xe49f0c(0x359)](_0x4f159e);await _0x4f26e5[_0xe49f0c(0x320)](kubeApply,_0x2ae9d4,_0x30b07e),logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x335)]);let _0x2df9b6=_0x4f26e5[_0xe49f0c(0x2b2)];if(_0x4f26e5['PEdAc'](_0x1e89ff,AZURE))_0x2df9b6=_0x4f26e5[_0xe49f0c(0x32f)];else _0x4f26e5[_0xe49f0c(0x280)](_0x1e89ff,GCP)&&(_0x2df9b6=_0x4f26e5['Lsikp']);logger[_0xe49f0c(0x350)](_0x4f26e5['yNPtu']);let _0x22f47c=await fs[_0xe49f0c(0x246)](path[_0xe49f0c(0x27c)](__dirname,_0x4f26e5[_0xe49f0c(0x39d)],_0x4f26e5[_0xe49f0c(0x398)],_0x4f26e5[_0xe49f0c(0x381)],_0x4f26e5[_0xe49f0c(0x2d3)]),_0x4f26e5[_0xe49f0c(0x375)]);_0x22f47c=_0x22f47c[_0xe49f0c(0x234)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x22f47c=_0x22f47c[_0xe49f0c(0x234)](/<StorageClassName>/g,_0x2df9b6);const _0x2891c0=yaml[_0xe49f0c(0x359)](_0x22f47c);await _0x4f26e5[_0xe49f0c(0x32e)](kubeApply,_0x2891c0,_0x30b07e),logger['info'](_0x4f26e5['xwKqO']),logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x316)]);let _0x4a1943=await fs[_0xe49f0c(0x246)](path[_0xe49f0c(0x27c)](__dirname,_0x4f26e5[_0xe49f0c(0x39d)],_0x4f26e5['ZPDFz'],_0x4f26e5[_0xe49f0c(0x381)],_0x4f26e5[_0xe49f0c(0x2f3)]),_0x4f26e5[_0xe49f0c(0x375)]);_0x4a1943=_0x4a1943[_0xe49f0c(0x234)](/<HubHaNameSpace>/g,global_registry[_0xe49f0c(0x39a)]),_0x4a1943=_0x4a1943[_0xe49f0c(0x234)](/<StorageClassName>/g,_0x2df9b6);const _0x508bba=yaml['loadAll'](_0x4a1943);await _0x4f26e5[_0xe49f0c(0x207)](kubeApply,_0x508bba,_0x30b07e),logger[_0xe49f0c(0x350)](_0x4f26e5['ioBqP']),logger[_0xe49f0c(0x350)](_0x4f26e5['FlSdN']);let _0x5d3cc4=await fs[_0xe49f0c(0x246)](path[_0xe49f0c(0x27c)](__dirname,_0x4f26e5[_0xe49f0c(0x39d)],_0x4f26e5[_0xe49f0c(0x398)],_0x4f26e5[_0xe49f0c(0x381)],_0x4f26e5['zkLGL']),_0x4f26e5[_0xe49f0c(0x375)]);_0x5d3cc4=_0x5d3cc4[_0xe49f0c(0x234)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x5d3cc4=_0x5d3cc4[_0xe49f0c(0x234)](/<HubHaNameSpace>/g,global_registry[_0xe49f0c(0x39a)]);const _0xa25092=yaml[_0xe49f0c(0x359)](_0x5d3cc4);_0x4f26e5[_0xe49f0c(0x389)](global_registry[_0xe49f0c(0x337)],AZURE)&&(_0xa25092[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)][_0xe49f0c(0x1f2)][_0xe49f0c(0x1ed)]={'azure.workload.identity/use':_0x4f26e5[_0xe49f0c(0x29e)],..._0xa25092[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)][_0xe49f0c(0x1f2)][_0xe49f0c(0x1ed)]},_0xa25092[0x0][_0xe49f0c(0x2b7)][_0xe49f0c(0x319)]['spec']['serviceAccountName']=_0x4f26e5[_0xe49f0c(0x326)]);await _0x4f26e5[_0xe49f0c(0x320)](kubeApply,_0xa25092,_0x30b07e),logger[_0xe49f0c(0x350)](_0x4f26e5['hfFUM']);const _0x22a434={};_0x22a434[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x22a434[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x251)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x22a434),logger[_0xe49f0c(0x350)](_0x4f26e5['hkaPS']);}catch(_0x1a628b){const _0x5d9f19=_0x4f26e5['lgAJL'][_0xe49f0c(0x225)]('|');let _0x3f5291=0x0;while(!![]){switch(_0x5d9f19[_0x3f5291++]){case'0':_0xd25d67='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x1a628b['message'];continue;case'1':logger[_0xe49f0c(0x308)](_0xd25d67);continue;case'2':await _0x2a7575[_0xe49f0c(0x239)](_0x425abc,global_registry[_0xe49f0c(0x226)]);continue;case'3':await _0x4f26e5[_0xe49f0c(0x268)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5['ONVHi'],_0x4f26e5[_0xe49f0c(0x281)],_0x4f26e5[_0xe49f0c(0x23c)]);continue;case'4':process['exit'](0x1);continue;}break;}}try{_0x3c2bd6=_0x4f26e5[_0xe49f0c(0x343)](kebabCase,_0x39fb3a),logger['info'](_0x4f26e5[_0xe49f0c(0x297)]);const _0x25480d={};_0x25480d[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x25480d['message']=_0x4f26e5[_0xe49f0c(0x297)],webSocketUtils['sendEventToBackend'](_0x5a17a7,_0x25480d);if(_0x4f26e5[_0xe49f0c(0x303)](_0x3c2bd6,_0x4f26e5['GCBTy'])){const _0x337194={};_0x337194[_0xe49f0c(0x2e4)]=_0x4f26e5['pzBkq'],_0x337194[_0xe49f0c(0x2c3)]=_0x4f26e5[_0xe49f0c(0x333)];const _0x395171={};_0x395171[_0xe49f0c(0x2b5)]=_0x3c2bd6,_0x395171['annotations']=_0x337194;const _0x45ec0c={};_0x45ec0c['metadata']=_0x395171;const _0x1a4ad4=_0x45ec0c,_0x1ac9c9={};_0x1ac9c9[_0xe49f0c(0x37d)]=_0x1a4ad4,await _0x425abc[_0xe49f0c(0x1f9)](_0x1ac9c9),logger['info'](_0x4f26e5[_0xe49f0c(0x2ad)]);}const _0x24f8f3={};_0x24f8f3[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x24f8f3[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x300)],webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x24f8f3);const _0x54c135={};_0x54c135[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x54c135[_0xe49f0c(0x342)]=_0x4f26e5[_0xe49f0c(0x36d)],webSocketUtils['sendEventToBackend'](_0x5a17a7,_0x54c135),logger[_0xe49f0c(0x350)](_0x4f26e5[_0xe49f0c(0x372)]);let _0x1a5223={};_0x4f26e5[_0xe49f0c(0x28d)](_0x1e89ff,AZURE)&&(_0x1a5223={'clientId':await _0x2a7575[_0xe49f0c(0x2d0)](_0xe49f0c(0x321)+_0x537733)});await _0x4f26e5[_0xe49f0c(0x36f)](addGridComponents,_0x425abc,_0x536553,_0x57dbd5,_0x314ad2,_0x3c2bd6,_0x537733,_0x4cac17,_0x9e0dd4,_0x30b07e,_0x1a5223),_0xd25d67=_0x4f26e5['rdWXj'],logger[_0xe49f0c(0x350)](_0xd25d67);const _0xd1fb54={};_0xd1fb54[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0xd1fb54[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils['sendEventToBackend'](_0x5a17a7,_0xd1fb54),_0xd25d67=_0x4f26e5[_0xe49f0c(0x2a4)],logger['info'](_0xd25d67);const _0x447baf={};_0x447baf[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x447baf[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x447baf),await _0x4f26e5['ATNDZ'](waitForDeployment,_0x536553,_0x3c2bd6,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x5dae7e=await _0x4f26e5[_0xe49f0c(0x217)](getNamespaceUID,_0x425abc,_0x3c2bd6),_0x3d9849=global_registry['isPrivateGrid']?_0x4f26e5[_0xe49f0c(0x33d)]:_0x4f26e5[_0xe49f0c(0x336)],_0x3f912f={};_0x3f912f[_0xe49f0c(0x2b5)]=_0x3d9849,_0x3f912f['namespace']=_0x4f26e5[_0xe49f0c(0x2b6)];const _0x981f32=await _0x425abc[_0xe49f0c(0x344)](_0x3f912f);let _0x78a5ba=_0x2a7575[_0xe49f0c(0x354)](_0x981f32)+'/'+_0x3c2bd6,_0x2033c0=_0x4f26e5[_0xe49f0c(0x27f)];try{const _0xe06889='https://'+AG_API_URL+_0xe49f0c(0x33a)+_0x5dae7e,_0x5905c4=await _0x4f26e5[_0xe49f0c(0x3a2)](got,_0xe06889,_0x51baee);(_0x4f26e5['wQUxi'](_0x5905c4,null)||_0x4f26e5[_0xe49f0c(0x2bb)](_0x5905c4,undefined))&&(_0xd25d67=_0x4f26e5['LihMX'],await _0x4f26e5['RUxvB'](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x1f7)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1));_0x4f26e5['qdVfx'](_0x5905c4[_0xe49f0c(0x273)],0x191)&&(_0xd25d67=_0x4f26e5[_0xe49f0c(0x22f)],await _0x4f26e5[_0xe49f0c(0x25e)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x313)],_0x4f26e5[_0xe49f0c(0x23c)]),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1));_0x4f26e5['LWpoN'](_0x5905c4[_0xe49f0c(0x273)],0xc8)&&(_0xd25d67=_0xe49f0c(0x2cb)+JSON['stringify'](_0x5905c4),await _0x4f26e5[_0xe49f0c(0x1ef)](reportToGalactusAndSendToEDS,_0x17916f,_0x5a17a7,_0xd25d67,messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x232)],_0x4f26e5[_0xe49f0c(0x24d)],_0x4f26e5['ZnApF']),logger[_0xe49f0c(0x308)](_0xd25d67),process[_0xe49f0c(0x22b)](0x1));const _0x3b221f=JSON[_0xe49f0c(0x2e7)](_0x5905c4[_0xe49f0c(0x37d)]);_0x3b221f[_0xe49f0c(0x2e9)]&&(_0x78a5ba=_0x3b221f['route53'],_0x2033c0=_0x4f26e5[_0xe49f0c(0x202)]),global_registry['isPrivateGrid']&&(_0x2033c0=_0x4f26e5[_0xe49f0c(0x27f)]);}catch(_0x38dcc7){}_0xd25d67=_0xe49f0c(0x382)+_0x78a5ba+'\x20',logger['info'](_0xd25d67);const _0x157f4d={};_0x157f4d[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x157f4d[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x157f4d),_0xd25d67=_0xe49f0c(0x2c5)+_0x2033c0+'://'+_0x78a5ba+'/wd/hub',logger['info'](_0xd25d67);const _0x1c0ab7={};_0x1c0ab7[_0xe49f0c(0x38d)]=WS_EVENTS['LOG'],_0x1c0ab7[_0xe49f0c(0x342)]=_0xd25d67,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x1c0ab7);const _0x67318b={};_0x67318b[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x310)],_0x67318b[_0xe49f0c(0x342)]='CLI\x20run\x20finished:\x20'+_0x78a5ba,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x67318b),await webSocketUtils[_0xe49f0c(0x286)](0x7d0);}catch(_0x642436){logger[_0xe49f0c(0x308)](_0xe49f0c(0x376)+_0x642436+'\x20\x0a'+JSON['stringify'](_0x642436['stack']));if(_0x4f26e5['YvJkc'](_0x2904c8,![]))try{logger['info'](_0x4f26e5[_0xe49f0c(0x3a0)]),await _0x4f26e5[_0xe49f0c(0x327)](removeGridComponents,_0x425abc,_0x536553,_0x57dbd5,_0x314ad2,_0x3c2bd6),await _0x2a7575[_0xe49f0c(0x239)](_0x425abc,global_registry[_0xe49f0c(0x226)]);}catch(_0x551ca6){logger[_0xe49f0c(0x308)](_0xe49f0c(0x23d)+_0x551ca6+'\x20\x0a'+JSON['stringify'](_0x551ca6[_0xe49f0c(0x2db)]));}throw _0x642436;}}catch(_0x2b667b){const _0x3d79f2=_0xe49f0c(0x23f)+_0x2b667b+'\x20\x0a'+JSON[_0xe49f0c(0x2b3)](_0x2b667b[_0xe49f0c(0x2db)]);if(_0x5a17a7){const _0x585ce3={};_0x585ce3[_0xe49f0c(0x38d)]=WS_EVENTS[_0xe49f0c(0x36b)],_0x585ce3[_0xe49f0c(0x342)]=_0x3d79f2,webSocketUtils[_0xe49f0c(0x30e)](_0x5a17a7,_0x585ce3,_0x4f26e5[_0xe49f0c(0x23c)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x4dfc45={};_0x4dfc45[_0xe49f0c(0x308)]=_0x3d79f2,await _0x4f26e5[_0xe49f0c(0x394)](sendInstrumentationEvent,_0x17916f,_0x4f26e5[_0xe49f0c(0x232)],messageTypes[_0xe49f0c(0x2f5)],_0x4f26e5[_0xe49f0c(0x34e)],_0x4dfc45,_0x17916f),logger[_0xe49f0c(0x308)](_0x3d79f2);}process[_0xe49f0c(0x22b)](0x0);};
|
|
1
|
+
const a9_0x67b2df=a9_0xd4df;function a9_0x5493(){const _0x26c41b=['namespace','LVEfN','get-grid-url-auth-failed','QelIp','Adding\x20Secret\x20Mapping','gridProfileId','private-grid','route53','WttzH','zWlJm','yJXOg','setupHubHa','WrQqh','xJZfm','HrOKl','uyGBN','../../utils/gridComponents','ImnNJ','region','BpEIl','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','akyPr','Irich','\x20using\x20\x27','xBUJy','/wd/hub','auieE','clusterRegion','isPrivateGrid','1|2|4|0|3','newCluster','pre-spawned-invalid-vpc','TxdXK','nMxiF','pLoTz','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','redisPassword','Grid\x20spawned\x20on\x20the\x20cluster','rEWwd','etnxK','IHnvr','VgPAI','stringify','IHePJ','CLI_RUN_STARTED','GPyNq','https','Found\x20Subnets:\x20','azurefile-csi-premium','create-grid-checks-invalid-profile','gynwn','YKbly','XROfv','minNodes','password','setupAutoscaler','mIuGN','://','private-ingress-nginx-controller','Browserstack','GjhBi','grid-spawning-failed','AsIWw','body','GET','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','utf-8','jTBtH','CLI_RUN_FINISHED','description','qIhdZ','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','OEbfL','init-not-called','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','length','zCuJh','jVfDS','privateGrid','REXen','defaultGridProfile','getResourceClientId','cltVT','options','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','BdOmH','isClusterPresent','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','BGhgI','SwUrp','sosgT','managedBy','lDAfP','isSubnetsValid','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','2|1|8|0|4|5|3|7|6','requestId','XFPVY','1055157kYZGFX','Added\x20Redis\x20deployment.','NPDpT','hZaAW','premium-rwo','Adding\x20Redis\x20deployment...','UkXkV','DYBhf','template','hGeBw','RoEbZ','info','MiOIK','1|0|4|3|2','join','Grid\x20profile\x20fetched\x20from\x20backend','createOtherResources','gridName','MapNg','sxMPn','browserstack','Namespace\x20Created','grid','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','jzfku','IRneD','vXhuE','vHGKw','Subnets:\x20','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','hubVersion','create','xpwxG','GgGyP','jaHkJ','BvDkN','wWnQn','jnpIb','vqAuj','reconnecting-websocket','zfgaX','rqmgT','jVpin','spec','ingress-nginx-controller','gpjpj','XmtWH','EhkwN','fsYFA','AdeXi','HEMFd','subnets','SAroG','DUqzn','instanceType','VTITb','jsMUl','gUsWo','statusCode','includes','isVPCPresent','MdZbu','pre-spawned-invalid-subnets','Cluster\x20','../../utils/webSocketUtils','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','clusterAutoupgrade','addListeners','Flag\x20to\x20enable\x20Hub\x20HA','readFileAsync','toLowerCase','js-yaml','ERROR','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','get-grid-url-null-response','name','MuJnQ','FoGbh','Creating\x20namespace','create-grid-checks-null-response','YjJRr','labels','ojuFL','gridProfile','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','7246440WvvMKX','uvrRo','zrKdB','1576wPzrSx','argv','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','DQtME','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','syfef','hub-ha-deployments-failed','BqdDn','GOEag','ISIYD','existsSync','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','uuid','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','sendEventToBackend','exit','XOXpw','grid-profile','annotations','CgGJt','deleteCluster','cloud-provider','UPCQt','replace','11305782VWvOTB','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','fTVSc','cloudProvider','../../config/constants','Auges','stack','bstackAccesskey','pxnjZ','eBVen','bZEwf','BKVNO','lMxDB','handler','cluster-name','kaoMl','KIDUN','Iwtjc','boolean','wyfSR','/packages/cli/create-grid-checks','rhjXK','xDabR','UpoeM','HYBhh','builder','clusterAutoUpgrade','XraMF','YfOpZ','turboscale-uploader.yaml','Arqpv','getGridHostname','SOyGE','MNclx','non-aws-azure-cluster','WGyGs','FPrSE','JztcU','TbhJV','nqiyy','zDPyY','gopbD','ISYeL','enableHubHa','Added\x20Turboscale\x20Uploader\x20deployment.','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','RbhAL','VeIHm','Deleting\x20the\x20CloudFormation\x20Stacks','ehyJn','clusterName','default','hubHa','grid-name','create-grid-checks-grid-already-exists','QUgLq','lKAQA','BgtZH','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','\x27\x20grid\x20profile','concurrency','bQIjf','BItAL','nhhSw','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','GwybK','kafkaUploader','Creating\x20Hub\x20HA\x20resources','ZnRGg','cTwza','ZFNXj','8|9|7|13|14|5|3|15|12|0|11|1|6|10|4|2','RUTsb','path','5834995IgQCri','help','wNKND','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','DmhYx','UsNQb','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','sDZpc','kafkaPassword','Epyd5nXbRK','MuvZJ','uZFbQ','rXheO','xvYil','create-grid-called','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','eqGcK','username','\x20are\x20not\x20present\x20in\x20VPC:\x20','nDTJj','DZvMV','hjlzt','delay','20QkATrj','JyUqs','/packages/cli/get-grid-url?gridIdentifier=','lrqgv','qVrhb','eKIZF','ZRhVu','szMYS','isNewAWSCluster','yEkqO','PnyAV','TELMw','mejPl','bstackUsername','pwmdz','string','sendResourceDataToHST','INFO','metadata','PbMjK','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Cluster\x20created\x20successfully','dFpTW','lJcVO','2|4|3|1|0','hub-ha','UHZFa','../../utils/createk8sClient','UkRNzNYCBU','bitnami-kafka.yaml','lBizd','MvRqL','get-grid-url-non-200','ingress-nginx','vtEyl','HpmOg','3056784TUcXtr','maxNodes','serviceAccountName','oFyEb','IJDFu','MyDkr','user','FupDN','6750457txpExG','rjBLK','../../utils/utilityMethods','ysbnu','browserVersion','6oLvXsS','Found\x20VPC:\x20','hubHaNameSpace','rjBLX','cVOMs','sPmSC','Skip\x20insecure\x20cert\x20verification.','Enabling\x20Hub\x20HA\x20flow','HRxnl','split','Create\x20a\x20new\x20Automation\x20grid.','feGwG','yCQCD','AJcJh','CjaYO','templates','setupNewCluster','type','lgiJh','ciklA','nVsNS','eViRD','VEKom','pre-spawned-subnets-not-selected','readNamespacedService','message','hfpOk','kNjaI','AfXfc','yTEMx','mbcsD','oUydN','error','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','oRpOC','lBHsD','CLI\x20run\x20started','yORgF','BejeZ','wDTlm','Spawning\x20the\x20grid\x20','VNllR','Created\x20Hub\x20HA\x20resources','Create\x20a\x20private/public\x20grid.','FdNRa','updateClusterAlreadyPresent','uploaderVersion','KDQUK','HtaAi','1076iTRYiz','oULAS','https://','usage','TMbdc','nAyzj','../../cloudproviders/utils','rtShP','<PasswordPlaceholder>','s3bucket','OtzUA','bITTt','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','aUfFh','TbSmG','PFEAF','prespawned-cluster-args-not-passed','DXQZA','LOG','oNBTR','WEFlf','TyTrb','command','true','McHhO','UirzJ','NeZHK','TDIVQ','BgvKk','got','parse','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','iEvuP','yFLMA','NvwbE','\x20in\x20existing\x20cluster\x20\x27','BHvjS','OZEjT','XdQof','gridProfiles','JVqjH','loadAll','<UsernamePlaceholder>','4|1|3|2|0','EGRTN','WYmAv','NPCka','Added\x20Kafka\x20deployment.','cluster-autoupgrade','STWjw','alreadyPresent'];a9_0x5493=function(){return _0x26c41b;};return a9_0x5493();}(function(_0x386111,_0x15cec4){const _0x39afa4=a9_0xd4df,_0x4c4418=_0x386111();while(!![]){try{const _0x4dc99b=parseInt(_0x39afa4(0x1da))/0x1*(parseInt(_0x39afa4(0xed))/0x2)+parseInt(_0x39afa4(0x182))/0x3+parseInt(_0x39afa4(0x277))/0x4+-parseInt(_0x39afa4(0x23c))/0x5*(-parseInt(_0x39afa4(0x284))/0x6)+parseInt(_0x39afa4(0x27f))/0x7+-parseInt(_0x39afa4(0x1d7))/0x8+parseInt(_0x39afa4(0x1f2))/0x9*(-parseInt(_0x39afa4(0x253))/0xa);if(_0x4dc99b===_0x15cec4)break;else _0x4c4418['push'](_0x4c4418['shift']());}catch(_0x221965){_0x4c4418['push'](_0x4c4418['shift']());}}}(a9_0x5493,0xa5458));const fs=require('fs'),ws=require('ws'),path=require(a9_0x67b2df(0x23b)),yaml=require(a9_0x67b2df(0x1c9)),ReconnectingWebSocket=require(a9_0x67b2df(0x1a9)),got=require(a9_0x67b2df(0x10a)),{v4:uuidv4}=require(a9_0x67b2df(0x1e6)),webSocketUtils=require(a9_0x67b2df(0x1c2)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x67b2df(0x281)),{getCloudProviderObject}=require(a9_0x67b2df(0xf3)),{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_0x67b2df(0x1f6)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x67b2df(0x130)),{createK8sClient}=require(a9_0x67b2df(0x26e)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a9_0xd4df(_0x5c899c,_0x3356e8){const _0x54934b=a9_0x5493();return a9_0xd4df=function(_0xd4df2,_0x690726){_0xd4df2=_0xd4df2-0xe3;let _0x5ea352=_0x54934b[_0xd4df2];return _0x5ea352;},a9_0xd4df(_0x5c899c,_0x3356e8);}exports[a9_0x67b2df(0x103)]=a9_0x67b2df(0x198),exports['desc']=a9_0x67b2df(0x28e),exports[a9_0x67b2df(0x20b)]=function(_0x52b0e8){const _0x3006e0=a9_0x67b2df,_0x5cd71e={};_0x5cd71e[_0x3006e0(0x1df)]=_0x3006e0(0x21f),_0x5cd71e[_0x3006e0(0x230)]=_0x3006e0(0x262),_0x5cd71e[_0x3006e0(0x14d)]=_0x3006e0(0x232),_0x5cd71e['EGRTN']=_0x3006e0(0x174),_0x5cd71e[_0x3006e0(0x105)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x5cd71e['DZvMV']=_0x3006e0(0x16a),_0x5cd71e[_0x3006e0(0xfe)]=_0x3006e0(0xe7),_0x5cd71e[_0x3006e0(0x1fc)]=_0x3006e0(0x28a),_0x5cd71e[_0x3006e0(0x218)]='boolean',_0x5cd71e[_0x3006e0(0x12c)]=_0x3006e0(0x1c6),_0x5cd71e[_0x3006e0(0x1fe)]=_0x3006e0(0x17e),_0x5cd71e[_0x3006e0(0x15c)]=_0x3006e0(0x23d);const _0x56a756=_0x5cd71e,_0x539776={};_0x539776[_0x3006e0(0x165)]=_0x56a756[_0x3006e0(0x1df)],_0x539776['type']=_0x56a756[_0x3006e0(0x230)];const _0x3da8bb={};_0x3da8bb[_0x3006e0(0x165)]=_0x56a756['GPyNq'],_0x3da8bb[_0x3006e0(0x295)]=_0x56a756[_0x3006e0(0x230)];const _0x10985d={};_0x10985d[_0x3006e0(0x165)]=_0x56a756[_0x3006e0(0x119)],_0x10985d[_0x3006e0(0x295)]=_0x56a756['BItAL'];const _0x4cb16f={};_0x4cb16f[_0x3006e0(0x165)]=_0x56a756[_0x3006e0(0x105)],_0x4cb16f['type']=_0x56a756['BItAL'];const _0x112ffe={};_0x112ffe[_0x3006e0(0x165)]=_0x56a756[_0x3006e0(0x250)],_0x112ffe[_0x3006e0(0x295)]=_0x56a756[_0x3006e0(0x230)];const _0x578a74={};_0x578a74[_0x3006e0(0x165)]=_0x56a756['DXQZA'],_0x578a74[_0x3006e0(0x295)]=_0x56a756[_0x3006e0(0x230)];const _0x2348e6={};_0x2348e6[_0x3006e0(0x165)]=_0x56a756[_0x3006e0(0x1fc)],_0x2348e6[_0x3006e0(0x295)]=_0x56a756[_0x3006e0(0x218)],_0x2348e6[_0x3006e0(0x225)]=![];const _0x3a3b3a={};_0x3a3b3a[_0x3006e0(0x165)]=_0x56a756[_0x3006e0(0x12c)],_0x3a3b3a[_0x3006e0(0x295)]=_0x56a756[_0x3006e0(0x218)],_0x3a3b3a[_0x3006e0(0x225)]=![];const _0x2fed7b={};_0x2fed7b[_0x3006e0(0x165)]=_0x56a756[_0x3006e0(0x1fe)],_0x2fed7b[_0x3006e0(0x295)]=_0x56a756[_0x3006e0(0x218)],_0x2fed7b[_0x3006e0(0x225)]=![];const _0x270327={};return _0x270327['grid-name']=_0x539776,_0x270327[_0x3006e0(0x1eb)]=_0x3da8bb,_0x270327[_0x3006e0(0x200)]=_0x10985d,_0x270327[_0x3006e0(0x1ef)]=_0x4cb16f,_0x270327['region']=_0x112ffe,_0x270327[_0x3006e0(0x126)]=_0x578a74,_0x270327['skip-tls-cert-verify']=_0x2348e6,_0x270327[_0x3006e0(0x26c)]=_0x3a3b3a,_0x270327[_0x3006e0(0x11d)]=_0x2fed7b,_0x52b0e8[_0x3006e0(0xf0)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3006e0(0x173)](_0x270327)['help'](_0x56a756[_0x3006e0(0x15c)])['argv'];},exports[a9_0x67b2df(0x1ff)]=async function(_0x4ae819){const _0x58b0e4=a9_0x67b2df,_0x150149={'lDAfP':'http','BpEIl':function(_0x271dc4,_0x4f3b4f){return _0x271dc4(_0x4f3b4f);},'oULAS':_0x58b0e4(0x14e),'sPmSC':_0x58b0e4(0x1cb),'UsNQb':function(_0x47efa6,_0xe5538f){return _0x47efa6(_0xe5538f);},'jTBtH':_0x58b0e4(0x2a4),'AJcJh':_0x58b0e4(0x186),'jVfDS':_0x58b0e4(0x150),'aUfFh':'4|6|0|8|2|7|5|3|1','RbhAL':_0x58b0e4(0x2a8),'IPhml':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','feGwG':_0x58b0e4(0x262),'lrqgv':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','MNclx':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','pwmdz':_0x58b0e4(0x1e7),'uvrRo':_0x58b0e4(0x16a),'MvRqL':_0x58b0e4(0xe7),'vtEyl':_0x58b0e4(0x28a),'UPCQt':_0x58b0e4(0x204),'lBHsD':'Flag\x20to\x20enable\x20Hub\x20HA','mbcsD':_0x58b0e4(0x17e),'KIDUN':_0x58b0e4(0x23d),'rXheO':'warn','AdeXi':function(_0x4695bf,_0x98903){return _0x4695bf===_0x98903;},'hfpOk':_0x58b0e4(0x239),'GwybK':function(_0x4214bb,_0x459b2f,_0x14d8cc,_0x4ac540,_0x42d855,_0x4484b8,_0xb0524b,_0x3b04d0,_0x58cece,_0x3ff538,_0x8b6e41,_0x338da9,_0x4c8f51){return _0x4214bb(_0x459b2f,_0x14d8cc,_0x4ac540,_0x42d855,_0x4484b8,_0xb0524b,_0x3b04d0,_0x58cece,_0x3ff538,_0x8b6e41,_0x338da9,_0x4c8f51);},'TMbdc':function(_0x14909c,_0x443d79){return _0x14909c!==_0x443d79;},'dFpTW':_0x58b0e4(0x18f),'ehyJn':_0x58b0e4(0x196),'jaHkJ':_0x58b0e4(0x28b),'yEkqO':_0x58b0e4(0x245),'etnxK':_0x58b0e4(0x26f),'rjBLK':_0x58b0e4(0x104),'oUydN':_0x58b0e4(0x225),'Olxnw':function(_0x553598){return _0x553598();},'iCWWR':function(_0x32c8dd){return _0x32c8dd();},'nVsNS':_0x58b0e4(0x236),'vHGKw':_0x58b0e4(0x177),'xBUJy':function(_0x38ae05,_0x1dd719,_0x3af95e,_0x5978d2,_0x1cb6be,_0x40d505,_0x2cfeca){return _0x38ae05(_0x1dd719,_0x3af95e,_0x5978d2,_0x1cb6be,_0x40d505,_0x2cfeca);},'RoEbZ':_0x58b0e4(0x24a),'DmhYx':_0x58b0e4(0x169),'OaOHZ':function(_0xdb301e,_0x2eb3e4,_0x239b6b,_0x1a8efc,_0x4e546b,_0x3309c5,_0xd6d45c){return _0xdb301e(_0x2eb3e4,_0x239b6b,_0x1a8efc,_0x4e546b,_0x3309c5,_0xd6d45c);},'yCQCD':function(_0x13849a){return _0x13849a();},'lBizd':_0x58b0e4(0x117),'ISIYD':_0x58b0e4(0xf5),'QUgLq':'Adding\x20Websocket\x20listeners','QelIp':'owAyJ','XmtWH':function(_0x32d71e,_0x2da741){return _0x32d71e===_0x2da741;},'wWnQn':_0x58b0e4(0x287),'rEWwd':'ayyiR','xvYil':_0x58b0e4(0x1dc),'SwUrp':function(_0xcac531,_0xe5f14e,_0x2c91ab,_0x14ed6a,_0x12a2b0,_0x122900,_0x926d2b,_0x41cc06){return _0xcac531(_0xe5f14e,_0x2c91ab,_0x14ed6a,_0x12a2b0,_0x122900,_0x926d2b,_0x41cc06);},'BKVNO':_0x58b0e4(0xfd),'Juoqn':function(_0x16008d,_0xfd451e){return _0x16008d!==_0xfd451e;},'MyDkr':_0x58b0e4(0x128),'MeWRw':_0x58b0e4(0x2a5),'xDabR':_0x58b0e4(0x214),'UkXkV':function(_0x2f61b9,_0x15ccd0){return _0x2f61b9===_0x15ccd0;},'eqGcK':_0x58b0e4(0x12d),'nqiyy':function(_0x13a472,_0x935eb4){return _0x13a472!==_0x935eb4;},'GgGyP':_0x58b0e4(0xe5),'TxdXK':_0x58b0e4(0x1b6),'NeZHK':function(_0x38c8f9,_0x4040fa){return _0x38c8f9===_0x4040fa;},'HRxnl':_0x58b0e4(0x2a6),'MdZbu':_0x58b0e4(0x29a),'kaoMl':function(_0xf2698d,_0x118a67){return _0xf2698d===_0x118a67;},'IHePJ':_0x58b0e4(0x166),'AfXfc':_0x58b0e4(0x26a),'jzfku':_0x58b0e4(0x160),'zWlJm':function(_0x48b9d2,_0x5ec605,_0x2a89d1){return _0x48b9d2(_0x5ec605,_0x2a89d1);},'tYoAJ':function(_0x5dac92,_0x550ee0){return _0x5dac92!==_0x550ee0;},'gUsWo':_0x58b0e4(0x251),'PbMjK':_0x58b0e4(0x27a),'MuvZJ':function(_0x4da822,_0x3a9967){return _0x4da822===_0x3a9967;},'zDPyY':function(_0x1f1cf7,_0x478351){return _0x1f1cf7===_0x478351;},'hGeBw':function(_0x546fa5,_0x2aac62){return _0x546fa5===_0x2aac62;},'lKAQA':_0x58b0e4(0x1a5),'TyTrb':_0x58b0e4(0x1ab),'eViRD':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','nhhSw':_0x58b0e4(0x1d1),'bQIjf':function(_0x72d698,_0x8b7223){return _0x72d698!==_0x8b7223;},'geRUE':_0x58b0e4(0x1e1),'ufYyO':'cozuW','zrKdB':_0x58b0e4(0x1de),'DQtME':'create-grid-checks-auth-failed','nMxiF':function(_0x77b3c0,_0x4196bb){return _0x77b3c0!==_0x4196bb;},'JyUqs':function(_0x50dc4d,_0x38a623){return _0x50dc4d===_0x38a623;},'gopbD':_0x58b0e4(0x189),'CgGJt':'create-grid-checks-non-200','lgiJh':_0x58b0e4(0x191),'TBdPL':_0x58b0e4(0x215),'vqAuj':_0x58b0e4(0x153),'BgvKk':_0x58b0e4(0x228),'cTwza':_0x58b0e4(0x288),'CjaYO':_0x58b0e4(0x19b),'MapNg':function(_0x1e6835,_0x2bc555){return _0x1e6835!==_0x2bc555;},'JztcU':_0x58b0e4(0xf7),'mIuGN':_0x58b0e4(0x13d),'HtaAi':function(_0x1931f9,_0x206805){return _0x1931f9===_0x206805;},'ImnNJ':function(_0x2337f2,_0x57b312){return _0x2337f2===_0x57b312;},'WEFlf':_0x58b0e4(0x148),'xpwxG':_0x58b0e4(0x203),'yORgF':'dzpZp','ILslN':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','yJXOg':_0x58b0e4(0x151),'WOiZq':_0x58b0e4(0x23a),'wyfSR':_0x58b0e4(0x136),'fsYFA':function(_0xc38798,_0x385c12){return _0xc38798!==_0x385c12;},'wNKND':_0x58b0e4(0x1f7),'ciklA':_0x58b0e4(0x276),'KojUH':function(_0x4505c2,_0x1b65c3){return _0x4505c2!==_0x1b65c3;},'PFEAF':_0x58b0e4(0x154),'pLoTz':_0x58b0e4(0x178),'BHvjS':function(_0x44bdcb,_0x4dc613){return _0x44bdcb(_0x4dc613);},'vXhuE':function(_0xdef05f,_0x3fbe10){return _0xdef05f===_0x3fbe10;},'XOXpw':_0x58b0e4(0x108),'LQmRy':_0x58b0e4(0x112),'gpjpj':function(_0x415b73,_0x5bb549){return _0x415b73===_0x5bb549;},'NvwbE':_0x58b0e4(0x258),'FupDN':_0x58b0e4(0x259),'yTEMx':function(_0x18e171,_0x24b0d6,_0x15f843,_0x15a02b,_0x38f224,_0x161c4a,_0x16e2e7,_0x47d4f0,_0x2787e4,_0x2965b5,_0x2945ec,_0xaff45b,_0xe765ce){return _0x18e171(_0x24b0d6,_0x15f843,_0x15a02b,_0x38f224,_0x161c4a,_0x16e2e7,_0x47d4f0,_0x2787e4,_0x2965b5,_0x2945ec,_0xaff45b,_0xe765ce);},'sosgT':'fgVUr','XFPVY':'fWeye','FdNRa':_0x58b0e4(0x17f),'AhPQh':'soDdK','nAyzj':_0x58b0e4(0x1a7),'npNiJ':_0x58b0e4(0xe3),'MiOIK':_0x58b0e4(0x15e),'XraMF':function(_0x510e18,_0x40c8f8){return _0x510e18===_0x40c8f8;},'YfOpZ':_0x58b0e4(0x11a),'NPDpT':_0x58b0e4(0x134),'ysbnu':function(_0x93df2b,_0x5cea7c){return _0x93df2b!=_0x5cea7c;},'dgvkB':function(_0x74708d,_0xec535a){return _0x74708d!==_0xec535a;},'sxMPn':function(_0x5537f4,_0x177a77){return _0x5537f4!=_0x177a77;},'vfPon':function(_0x232161,_0x308219){return _0x232161!==_0x308219;},'GFcgE':function(_0x5d66c2,_0x175eb6){return _0x5d66c2>_0x175eb6;},'uyGBN':_0x58b0e4(0x267),'NPCka':function(_0x1bed51,_0x49e2e6,_0x362e99,_0x336b42,_0x928466,_0x26fa17,_0x170c57,_0x5c06d3){return _0x1bed51(_0x49e2e6,_0x362e99,_0x336b42,_0x928466,_0x26fa17,_0x170c57,_0x5c06d3);},'akyPr':_0x58b0e4(0x29b),'bITTt':function(_0x4ffee0,_0x4b1a08){return _0x4ffee0===_0x4b1a08;},'sDZpc':_0x58b0e4(0xf9),'UHZFa':_0x58b0e4(0x13f),'rtShP':function(_0x53f6ac,_0x4ff430){return _0x53f6ac===_0x4ff430;},'eBVen':_0x58b0e4(0x1c0),'jsMUl':_0x58b0e4(0x26b),'PLASY':_0x58b0e4(0x268),'FPrSE':'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.','mejPl':function(_0x2720ec,_0xe5bd15,_0x575945){return _0x2720ec(_0xe5bd15,_0x575945);},'auieE':function(_0xe54be1,_0x33674e){return _0xe54be1===_0x33674e;},'ZFNXj':_0x58b0e4(0x235),'IJDFu':_0x58b0e4(0x124),'VgPAI':'../..','fTVSc':_0x58b0e4(0x293),'BejeZ':'hubharesources','hZaAW':'browserstack-secret.yaml','jVpin':_0x58b0e4(0x162),'BgtZH':function(_0x5886de,_0x3bc42f){return _0x5886de(_0x3bc42f);},'MuJnQ':function(_0x2cc2bb,_0x4f1420){return _0x2cc2bb(_0x4f1420);},'TbSmG':'Added\x20Secret\x20Mapping','BdOmH':'efs-csi','uZFbQ':_0x58b0e4(0x187),'LVEfN':'bitnami-redis.yaml','OEbfL':function(_0xe1fbd1,_0x2fcd03,_0x47f2e6){return _0xe1fbd1(_0x2fcd03,_0x47f2e6);},'HrOKl':_0x58b0e4(0x183),'TELMw':'Adding\x20Kafka\x20deployment...','pxnjZ':_0x58b0e4(0x270),'qVrhb':function(_0x3fb96b,_0x5a6d10,_0x4d300e){return _0x3fb96b(_0x5a6d10,_0x4d300e);},'EhkwN':_0x58b0e4(0x11c),'ISYeL':'Adding\x20Turboscale\x20Uploader\x20deployment...','gynwn':_0x58b0e4(0x20f),'rhjXK':function(_0x4c2405,_0x3a71be,_0xc484e2){return _0x4c2405(_0x3a71be,_0xc484e2);},'FoGbh':_0x58b0e4(0x21e),'PnyAV':_0x58b0e4(0xe6),'vnMRV':'Hub\x20HA\x20setup\x20completed\x20successfully.','rLCGP':_0x58b0e4(0x118),'REXen':function(_0x5aaf22,_0x5f257a,_0x5b3aef,_0x43a822,_0x483b64,_0x264eed,_0x33a167,_0x5a0fef){return _0x5aaf22(_0x5f257a,_0x5b3aef,_0x43a822,_0x483b64,_0x264eed,_0x33a167,_0x5a0fef);},'VeIHm':_0x58b0e4(0x1e0),'Arqpv':function(_0x1cfaff,_0x465812){return _0x1cfaff(_0x465812);},'VTITb':_0x58b0e4(0x1d0),'zfgaX':function(_0x5891fd,_0x28a54a){return _0x5891fd!==_0x28a54a;},'oNBTR':'Browserstack','ItEtz':_0x58b0e4(0x197),'cltVT':'Namespace\x20created','HCdla':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','UpoeM':'Spawning\x20Grid\x20on\x20the\x20Cluster','ojuFL':function(_0x321d74,_0x2d3309,_0x1c67f4,_0x5dd182,_0x2f5344,_0x3c96c6,_0x2a3c9f,_0x313177,_0x53e96e,_0x26f794,_0x2b3843){return _0x321d74(_0x2d3309,_0x1c67f4,_0x5dd182,_0x2f5344,_0x3c96c6,_0x2a3c9f,_0x313177,_0x53e96e,_0x26f794,_0x2b3843);},'SOyGE':_0x58b0e4(0x145),'DUqzn':_0x58b0e4(0x143),'RvUNZ':function(_0x4f3acd,_0x3882a6,_0x36cc67,_0x11373f,_0x4bcb09){return _0x4f3acd(_0x3882a6,_0x36cc67,_0x11373f,_0x4bcb09);},'zCuJh':_0x58b0e4(0x15a),'GOEag':_0x58b0e4(0x1ae),'kNjaI':_0x58b0e4(0x274),'YjJRr':function(_0x5d8871,_0x4768fd,_0x366ff7){return _0x5d8871(_0x4768fd,_0x366ff7);},'KDQUK':function(_0x402e9e,_0x12443b){return _0x402e9e===_0x12443b;},'yFLMA':function(_0x298897,_0x5efb33){return _0x298897===_0x5efb33;},'HYBhh':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','XdQof':_0x58b0e4(0x1cc),'szMYS':_0x58b0e4(0x161),'BnYSO':function(_0x4241f4,_0x189e5a,_0x2e93bb,_0x562caa,_0x290e4c,_0x1fa4a7,_0x1731a0,_0x61bc12){return _0x4241f4(_0x189e5a,_0x2e93bb,_0x562caa,_0x290e4c,_0x1fa4a7,_0x1731a0,_0x61bc12);},'nDTJj':_0x58b0e4(0x122),'JVqjH':function(_0x520c65,_0x1a6e32){return _0x520c65!==_0x1a6e32;},'iEvuP':_0x58b0e4(0x273),'STWjw':function(_0x4baf56,_0x3d71c0){return _0x4baf56===_0x3d71c0;},'JCpWI':_0x58b0e4(0x222),'UirzJ':function(_0x45c94d,_0x264b55,_0x38a58a,_0x4d9948,_0x4fca43,_0x25b028){return _0x45c94d(_0x264b55,_0x38a58a,_0x4d9948,_0x4fca43,_0x25b028);},'FQBNp':function(_0x53e9b6,_0x4df9c1,_0x42398c,_0x487af0,_0x4a6c0d,_0x9e4f6b,_0x39f19f){return _0x53e9b6(_0x4df9c1,_0x42398c,_0x487af0,_0x4a6c0d,_0x9e4f6b,_0x39f19f);},'HEMFd':_0x58b0e4(0x15d)};let _0x3a3d44=![],_0x17a3db=![],_0x2fa085,_0x1afdd5,_0x19895c,_0x283ad0,_0x44e68f,_0x3853ae,_0xa869f6,_0x271a0e,_0x2daa29,_0x430dd0,_0x456ab6,_0x1eb6b0,_0xa437a8,_0x4fc5fa,_0x520496=0x1,_0x1cfd21=0xe;try{global_registry[_0x58b0e4(0x180)]=_0x150149['Olxnw'](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0x58b0e4(0x1e4)](_0x150149['iCWWR'](getCredentialsPath))&&(_0x150149[_0x58b0e4(0x1b3)](_0x150149[_0x58b0e4(0x298)],_0x150149[_0x58b0e4(0x298)])?(console['error'](_0x150149[_0x58b0e4(0x19d)]),await _0x150149['xBUJy'](sendInstrumentationEvent,_0x4ae819,_0x150149[_0x58b0e4(0x18c)],messageTypes[_0x58b0e4(0x1ca)],_0x150149[_0x58b0e4(0x240)],null,_0x4ae819),process['exit'](0x1)):_0x115357=_0x25f9cb[_0x487942['gridProfile']]);await _0x150149['OaOHZ'](sendInstrumentationEvent,_0x4ae819,_0x150149['RoEbZ'],messageTypes[_0x58b0e4(0x264)],null,null,_0x4ae819);const _0x15ce3c=JSON[_0x58b0e4(0x10b)](fs['readFileSync'](_0x150149[_0x58b0e4(0x290)](getCredentialsPath)));global_registry[_0x58b0e4(0x260)]=_0x15ce3c[_0x58b0e4(0x15b)][_0x58b0e4(0x24d)],global_registry[_0x58b0e4(0x1f9)]=_0x15ce3c[_0x58b0e4(0x15b)][_0x58b0e4(0x156)];const _0x25d365=WS_ENDPOINT['replace'](_0x150149[_0x58b0e4(0x271)],_0x15ce3c[_0x58b0e4(0x15b)]['username'])[_0x58b0e4(0x1f1)](_0x150149[_0x58b0e4(0x1e3)],_0x15ce3c['Browserstack'][_0x58b0e4(0x156)]),_0x597fef={};_0x597fef['WebSocket']=ws,_0x597fef['connectionTimeout']=0x36ee80,_0x1eb6b0=new ReconnectingWebSocket(_0x25d365,[],_0x597fef),logger['debug'](_0x150149[_0x58b0e4(0x229)]),webSocketUtils[_0x58b0e4(0x1c5)](_0x1eb6b0,_0x4ae819[_0x58b0e4(0x27d)],_0x4ae819['password']);const _0x9f8f48=_0x4ae819[_0x58b0e4(0x193)]||DEFAULT_GRID_NAME;if(_0x4ae819['clusterName']||_0x4ae819['cloudProvider']||_0x4ae819[_0x58b0e4(0x132)]){if(_0x150149[_0x58b0e4(0xf1)](_0x150149[_0x58b0e4(0x123)],_0x150149['QelIp']))_0x1ed708['isPrivateGrid']=!![];else{!(_0x4ae819['clusterName']&&_0x4ae819[_0x58b0e4(0x1f5)]&&_0x4ae819['region'])&&(_0x150149['XmtWH'](_0x150149[_0x58b0e4(0x1a6)],_0x150149[_0x58b0e4(0x146)])?_0x42f908[_0x58b0e4(0x263)]():(_0x2fa085=_0x150149[_0x58b0e4(0x249)],await _0x150149['SwUrp'](reportToGalactusAndSendToEDS,_0x4ae819,_0x1eb6b0,_0x2fa085,messageTypes[_0x58b0e4(0x1ca)],_0x150149[_0x58b0e4(0x18c)],_0x150149[_0x58b0e4(0x1fd)],_0x150149[_0x58b0e4(0x163)]),logger['error'](_0x2fa085),process[_0x58b0e4(0x1e9)](0x1)));![AWS,AZURE,GCP][_0x58b0e4(0x1bd)](_0x4ae819[_0x58b0e4(0x1f5)][_0x58b0e4(0x1c8)]())&&(_0x150149['Juoqn'](_0x150149[_0x58b0e4(0x27c)],_0x150149[_0x58b0e4(0x27c)])?_0x5f2935[_0x58b0e4(0x18d)](_0x58b0e4(0x14f)+_0x516f16[_0x58b0e4(0x14a)](_0x108658)+'\x20'):(_0x2fa085=_0x150149['MeWRw'],await _0x150149['SwUrp'](reportToGalactusAndSendToEDS,_0x4ae819,_0x1eb6b0,_0x2fa085,messageTypes[_0x58b0e4(0x1ca)],_0x150149[_0x58b0e4(0x18c)],_0x150149[_0x58b0e4(0x208)],_0x150149[_0x58b0e4(0x163)]),logger[_0x58b0e4(0x2a4)](_0x2fa085),process[_0x58b0e4(0x1e9)](0x1)));_0x4ae819['privateGrid']&&_0x150149[_0x58b0e4(0x188)](_0x4ae819[_0x58b0e4(0x16e)][_0x58b0e4(0x1c8)](),_0x150149['rjBLK'])&&(_0x150149[_0x58b0e4(0x1b3)](_0x150149[_0x58b0e4(0x24c)],_0x150149['eqGcK'])?global_registry['isPrivateGrid']=!![]:_0xf0e97f=_0x150149[_0x58b0e4(0x17c)]);global_registry[_0x58b0e4(0x1f5)]=_0x4ae819[_0x58b0e4(0x1f5)],global_registry[_0x58b0e4(0x13b)]=_0x4ae819[_0x58b0e4(0x132)],global_registry['clusterName']=_0x4ae819[_0x58b0e4(0x224)];const _0x178ea5=await _0x150149['OaOHZ'](getCloudProviderObject,_0x4ae819[_0x58b0e4(0x1f5)],_0x4ae819[_0x58b0e4(0x224)],_0x9f8f48,_0x1eb6b0,webSocketUtils,_0x4ae819),_0x1353cf=await _0x178ea5[_0x58b0e4(0x176)]();!_0x1353cf?_0x150149['nqiyy'](_0x150149[_0x58b0e4(0x1a3)],_0x150149[_0x58b0e4(0x140)])?(logger['info']('Cluster:\x20'+_0x4ae819[_0x58b0e4(0x224)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x3a3d44=![],_0x17a3db=!![]):_0x3841ef=null:_0x150149['NeZHK'](_0x150149[_0x58b0e4(0x28c)],_0x150149[_0x58b0e4(0x1bf)])?_0x150149[_0x58b0e4(0x133)](_0x381c65,_0x50b551[_0x58b0e4(0x234)]):_0x3a3d44=!![],_0x19895c=_0x4ae819[_0x58b0e4(0x224)],_0x1afdd5=_0x4ae819[_0x58b0e4(0x1f5)][_0x58b0e4(0x1c8)](),_0x283ad0=_0x4ae819[_0x58b0e4(0x132)];}}else _0x4ae819[_0x58b0e4(0x1d5)]&&(_0x150149[_0x58b0e4(0x201)](_0x150149[_0x58b0e4(0x14b)],_0x150149[_0x58b0e4(0x2a0)])?_0x24c049[_0x58b0e4(0x13c)]=!![]:global_registry[_0x58b0e4(0x1d5)]=_0x4ae819[_0x58b0e4(0x1d5)]);global_registry[_0x58b0e4(0x193)]=_0x4ae819['gridName'];const _0x58ac44={'method':_0x150149[_0x58b0e4(0x19a)],'headers':_0x150149['zWlJm'](getAuthHeader,_0x15ce3c[_0x58b0e4(0x15b)][_0x58b0e4(0x24d)],_0x15ce3c[_0x58b0e4(0x15b)]['password']),'throwHttpErrors':![]},_0x15a8ff={};_0x15a8ff[_0x58b0e4(0x193)]=_0x9f8f48;const _0xd605cd=_0x15a8ff;_0x17a3db&&(_0x150149['tYoAJ'](_0x150149['gUsWo'],_0x150149[_0x58b0e4(0x1bb)])?(_0x4b871e=_0x1444ed['route53'],_0x16f9ac=_0x150149[_0x58b0e4(0xee)]):(_0xd605cd[_0x58b0e4(0x132)]=_0x283ad0,_0xd605cd[_0x58b0e4(0x1f5)]=_0x1afdd5,_0xd605cd[_0x58b0e4(0x13e)]=!![],_0xd605cd[_0x58b0e4(0x20c)]=_0x4ae819['clusterAutoupgrade']));_0x4ae819['clusterAutoupgrade']&&(_0x150149[_0x58b0e4(0x201)](_0x150149[_0x58b0e4(0x266)],_0x150149['PbMjK'])?logger['info'](_0x150149[_0x58b0e4(0x289)]):_0x4735e4[_0x58b0e4(0x13c)]=!![]);const _0x5996b9=_0x58b0e4(0xef)+AG_API_URL+_0x58b0e4(0x206),_0x1ba811={'searchParams':_0xd605cd,'throwHttpErrors':![],..._0x58ac44},_0x174215=_0x1ba811,_0x4b9c7a=await _0x150149[_0x58b0e4(0x129)](got,_0x5996b9,_0x174215);(_0x150149[_0x58b0e4(0x246)](_0x4b9c7a,null)||_0x150149[_0x58b0e4(0x21a)](_0x4b9c7a,undefined))&&(_0x150149[_0x58b0e4(0x18b)](_0x150149[_0x58b0e4(0x22a)],_0x150149[_0x58b0e4(0x102)])?_0x3f6034[_0x58b0e4(0x18d)](_0x150149[_0x58b0e4(0x289)]):(_0x2fa085=_0x150149[_0x58b0e4(0x299)],await _0x150149[_0x58b0e4(0x179)](reportToGalactusAndSendToEDS,_0x4ae819,_0x1eb6b0,_0x2fa085,messageTypes[_0x58b0e4(0x1ca)],_0x150149[_0x58b0e4(0x18c)],_0x150149[_0x58b0e4(0x231)],_0x150149[_0x58b0e4(0x163)]),logger['error'](_0x2fa085),process[_0x58b0e4(0x1e9)](0x1)));_0x150149['MuvZJ'](_0x4b9c7a['statusCode'],0x191)&&(_0x150149[_0x58b0e4(0x22f)](_0x150149['geRUE'],_0x150149['ufYyO'])?(_0x2fa085=_0x150149[_0x58b0e4(0x1d9)],await _0x150149[_0x58b0e4(0x179)](reportToGalactusAndSendToEDS,_0x4ae819,_0x1eb6b0,_0x2fa085,messageTypes[_0x58b0e4(0x1ca)],_0x150149[_0x58b0e4(0x18c)],_0x150149[_0x58b0e4(0x1dd)],_0x150149[_0x58b0e4(0x163)]),logger[_0x58b0e4(0x2a4)](_0x2fa085),process[_0x58b0e4(0x1e9)](0x1)):_0x150149[_0x58b0e4(0x241)](_0x1d0d90,_0x42ec54[_0x58b0e4(0xea)]));if(_0x150149['nMxiF'](_0x4b9c7a['statusCode'],0xc8)){if(_0x150149[_0x58b0e4(0x254)](_0x150149[_0x58b0e4(0x21b)],_0x150149[_0x58b0e4(0x21b)]))_0x2fa085=_0x58b0e4(0x22c)+JSON[_0x58b0e4(0x14a)](_0x4b9c7a[_0x58b0e4(0x15f)]),await _0x150149['SwUrp'](reportToGalactusAndSendToEDS,_0x4ae819,_0x1eb6b0,_0x2fa085,messageTypes['ERROR'],_0x150149[_0x58b0e4(0x18c)],_0x150149[_0x58b0e4(0x1ed)],_0x150149['jTBtH']),logger[_0x58b0e4(0x2a4)](_0x2fa085),process['exit'](0x1);else{const _0x4365a3={};_0x4365a3[_0x58b0e4(0x295)]=_0x7c9b73[_0x58b0e4(0xff)],_0x4365a3[_0x58b0e4(0x29d)]=_0x3f69da,_0x273840[_0x58b0e4(0x1e8)](_0x44da7c,_0x4365a3,_0x150149[_0x58b0e4(0x163)],!![]);}}const _0x4657b8=JSON[_0x58b0e4(0x10b)](_0x4b9c7a[_0x58b0e4(0x15f)]),_0x4736c5={};_0x4736c5[_0x58b0e4(0x295)]=WS_EVENTS[_0x58b0e4(0x14c)],_0x4736c5[_0x58b0e4(0x29d)]=_0x150149[_0x58b0e4(0x220)],webSocketUtils['sendEventToBackend'](_0x1eb6b0,_0x4736c5);const _0x1ad2ed={};_0x1ad2ed[_0x58b0e4(0x295)]=WS_EVENTS[_0x58b0e4(0xff)],_0x1ad2ed['message']=_0x150149[_0x58b0e4(0x296)],webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x1ad2ed);_0x4657b8[_0x58b0e4(0x11f)]&&(_0x150149['hGeBw'](_0x150149['TBdPL'],_0x150149[_0x58b0e4(0x1a8)])?_0xe55498=_0x150149['AJcJh']:(_0x2fa085='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x9f8f48+_0x58b0e4(0x1f3),await _0x150149[_0x58b0e4(0x179)](reportToGalactusAndSendToEDS,_0x4ae819,_0x1eb6b0,_0x2fa085,messageTypes[_0x58b0e4(0x1ca)],_0x150149[_0x58b0e4(0x18c)],_0x150149[_0x58b0e4(0x109)],_0x150149[_0x58b0e4(0x163)]),logger[_0x58b0e4(0x2a4)](_0x2fa085),process[_0x58b0e4(0x1e9)](0x1)));const _0x219138=_0x4657b8[_0x58b0e4(0x114)];let _0x5a7af5=_0x219138[_0x4657b8[_0x58b0e4(0x170)]];_0x4ae819[_0x58b0e4(0x1d5)]&&(_0x150149[_0x58b0e4(0x1b0)](_0x150149[_0x58b0e4(0x237)],_0x150149[_0x58b0e4(0x292)])?_0x2b22ad=_0x150149[_0x58b0e4(0x16d)]:_0x5a7af5=_0x219138[_0x4ae819[_0x58b0e4(0x1d5)]]);global_registry[_0x58b0e4(0x21d)]=![];if(_0x4ae819[_0x58b0e4(0x226)]){if(_0x150149[_0x58b0e4(0x194)](_0x150149[_0x58b0e4(0x217)],_0x150149[_0x58b0e4(0x217)]))_0x24c1a1=null;else{const _0x50c1c4=_0x150149[_0x58b0e4(0x158)][_0x58b0e4(0x28d)]('|');let _0x59b008=0x0;while(!![]){switch(_0x50c1c4[_0x59b008++]){case'0':global_registry['kafkaPassword']=_0x150149[_0x58b0e4(0x25c)];continue;case'1':logger[_0x58b0e4(0x18d)](_0x150149['jaHkJ']);continue;case'2':global_registry[_0x58b0e4(0x286)]=_0x150149[_0x58b0e4(0x223)];continue;case'3':global_registry[_0x58b0e4(0x21d)]=!![];continue;case'4':global_registry[_0x58b0e4(0x144)]=_0x150149[_0x58b0e4(0x147)];continue;}break;}}}if(_0x150149[_0x58b0e4(0xec)](_0x3a3d44,![])&&_0x150149[_0x58b0e4(0x131)](_0x17a3db,![])){if(_0x150149[_0x58b0e4(0x21a)](_0x150149[_0x58b0e4(0x101)],_0x150149[_0x58b0e4(0x1a2)])){const _0x1ce79e=_0x150149[_0x58b0e4(0xfa)][_0x58b0e4(0x28d)]('|');let _0x5e7ee2=0x0;while(!![]){switch(_0x1ce79e[_0x5e7ee2++]){case'0':_0x3a33c6[_0x58b0e4(0x18d)](_0x28f814);continue;case'1':_0x85d1db[_0x58b0e4(0x283)]=_0x2bb9c7['browserVersion'];continue;case'2':_0x293508[_0x58b0e4(0x1f5)]=_0x2d69db;continue;case'3':_0x163d0f[_0x58b0e4(0x1a0)]=_0x8988dc[_0x58b0e4(0x1a0)];continue;case'4':const _0x37204d={};_0x37204d[_0x58b0e4(0x295)]=_0x271b2c[_0x58b0e4(0x14c)],_0x37204d['message']=_0x150149[_0x58b0e4(0x220)],_0x226236[_0x58b0e4(0x1e8)](_0x4b613c,_0x37204d);continue;case'5':_0x2da938[_0x58b0e4(0x224)]=_0x23b669;continue;case'6':_0x3db5cb=_0x58b0e4(0xe4)+_0x1c4721+_0x58b0e4(0x110)+_0x7f32c6+'\x27';continue;case'7':_0x3c1c76[_0x58b0e4(0x13b)]=_0x3d7d36;continue;case'8':const _0x32abdc={};_0x32abdc[_0x58b0e4(0x295)]=_0x46a270[_0x58b0e4(0xff)],_0x32abdc['message']=_0x25a226,_0x10914a[_0x58b0e4(0x1e8)](_0x45ff94,_0x32abdc);continue;}break;}}else{if(_0x150149[_0x58b0e4(0x188)](_0x5a7af5,undefined)){if(_0x150149[_0x58b0e4(0x194)](_0x150149['yORgF'],_0x150149[_0x58b0e4(0x2a9)]))throw new _0x196709(_0x58b0e4(0x1c1)+_0x1b057a+_0x58b0e4(0x242));else _0x2fa085=_0x150149['ILslN'],await _0x150149['SwUrp'](reportToGalactusAndSendToEDS,_0x4ae819,_0x1eb6b0,_0x2fa085,messageTypes[_0x58b0e4(0x1ca)],_0x150149[_0x58b0e4(0x18c)],_0x150149[_0x58b0e4(0x12a)],_0x150149[_0x58b0e4(0x163)]),logger['error'](_0x2fa085),process[_0x58b0e4(0x1e9)](0x1);}global_registry[_0x58b0e4(0x125)]=_0x5a7af5['id'],_0x2fa085='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x9f8f48+_0x58b0e4(0x137)+_0x5a7af5[_0x58b0e4(0x1cd)]+_0x58b0e4(0x22d),logger[_0x58b0e4(0x18d)](_0x2fa085);const _0x443cae={};_0x443cae['type']=WS_EVENTS[_0x58b0e4(0xff)],_0x443cae[_0x58b0e4(0x29d)]=_0x2fa085,webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x443cae),_0x1afdd5=_0x5a7af5['cloudProvider'],_0x19895c=_0x5a7af5[_0x58b0e4(0x224)],_0x283ad0=_0x5a7af5[_0x58b0e4(0x132)],_0x44e68f=_0x5a7af5['concurrency'],_0x3853ae=_0x5a7af5[_0x58b0e4(0x1b8)],_0xa869f6=_0x5a7af5['vpc'],_0x271a0e=_0x5a7af5['securityGroups'],_0x2daa29=_0x5a7af5[_0x58b0e4(0x1b5)],_0x430dd0=_0x5a7af5[_0x58b0e4(0xf6)],_0x520496=_0x5a7af5[_0x58b0e4(0x155)],_0x1cfd21=_0x5a7af5[_0x58b0e4(0x278)],_0xa437a8=_0x4657b8[_0x58b0e4(0x1a0)],_0x4fc5fa=_0x4657b8['browserVersion'];if(_0xa869f6&&_0x150149[_0x58b0e4(0x201)](_0xa869f6[_0x58b0e4(0x16b)],0x0)){if(_0x150149['zDPyY'](_0x150149['WOiZq'],_0x150149[_0x58b0e4(0x205)])){const _0x1613d0={};_0x1613d0[_0x58b0e4(0x165)]=_0x150149['IPhml'],_0x1613d0[_0x58b0e4(0x295)]=_0x150149[_0x58b0e4(0x28f)];const _0x3b4cc4={};_0x3b4cc4['description']=_0x150149[_0x58b0e4(0x256)],_0x3b4cc4['type']=_0x150149['feGwG'];const _0x2dba0c={};_0x2dba0c['description']=_0x150149[_0x58b0e4(0x213)],_0x2dba0c[_0x58b0e4(0x295)]=_0x150149[_0x58b0e4(0x28f)];const _0x56a7d4={};_0x56a7d4[_0x58b0e4(0x165)]=_0x150149[_0x58b0e4(0x261)],_0x56a7d4[_0x58b0e4(0x295)]=_0x150149[_0x58b0e4(0x28f)];const _0x295386={};_0x295386[_0x58b0e4(0x165)]=_0x150149[_0x58b0e4(0x1d8)],_0x295386['type']=_0x150149[_0x58b0e4(0x28f)];const _0x160efe={};_0x160efe[_0x58b0e4(0x165)]=_0x150149[_0x58b0e4(0x272)],_0x160efe[_0x58b0e4(0x295)]=_0x150149['feGwG'];const _0x483318={};_0x483318[_0x58b0e4(0x165)]=_0x150149[_0x58b0e4(0x275)],_0x483318[_0x58b0e4(0x295)]=_0x150149[_0x58b0e4(0x1f0)],_0x483318['default']=![];const _0x163eec={};_0x163eec[_0x58b0e4(0x165)]=_0x150149[_0x58b0e4(0x2a7)],_0x163eec[_0x58b0e4(0x295)]=_0x150149[_0x58b0e4(0x1f0)],_0x163eec[_0x58b0e4(0x225)]=![];const _0x38d86a={};_0x38d86a[_0x58b0e4(0x165)]=_0x150149[_0x58b0e4(0x2a2)],_0x38d86a['type']=_0x150149['UPCQt'],_0x38d86a[_0x58b0e4(0x225)]=![];const _0x4a2223={};return _0x4a2223[_0x58b0e4(0x227)]=_0x1613d0,_0x4a2223[_0x58b0e4(0x1eb)]=_0x3b4cc4,_0x4a2223['cluster-name']=_0x2dba0c,_0x4a2223[_0x58b0e4(0x1ef)]=_0x56a7d4,_0x4a2223['region']=_0x295386,_0x4a2223[_0x58b0e4(0x126)]=_0x160efe,_0x4a2223['skip-tls-cert-verify']=_0x483318,_0x4a2223[_0x58b0e4(0x26c)]=_0x163eec,_0x4a2223[_0x58b0e4(0x11d)]=_0x38d86a,_0x47fc3e[_0x58b0e4(0xf0)](_0x4c6190[_0x58b0e4(0x1a1)])['epilogue'](_0x1463d1)[_0x58b0e4(0x173)](_0x4a2223)['help'](_0x150149[_0x58b0e4(0x202)])[_0x58b0e4(0x1db)];}else _0xa869f6=null;}_0x2daa29&&_0x150149[_0x58b0e4(0x1b0)](_0x2daa29[_0x58b0e4(0x16b)],0x0)&&(_0x150149[_0x58b0e4(0x1b2)](_0x150149[_0x58b0e4(0x23e)],_0x150149[_0x58b0e4(0x23e)])?(_0x508ffd[_0x58b0e4(0x18d)]('Cluster:\x20'+_0x3858ac['clusterName']+_0x58b0e4(0x167)),_0x1910e7=![],_0x1eb076=!![]):_0x2daa29=null),_0x150149[_0x58b0e4(0x194)](_0x5a7af5[_0x58b0e4(0x16e)],undefined)&&_0x5a7af5[_0x58b0e4(0x16e)]&&(_0x150149[_0x58b0e4(0x21a)](_0x150149[_0x58b0e4(0x297)],_0x150149[_0x58b0e4(0x297)])?global_registry[_0x58b0e4(0x13c)]=!![]:_0x389c63=!![]),_0x150149[_0x58b0e4(0x233)](updateGlobalRegistryWithConfig,_0x1afdd5,_0x19895c,_0x283ad0,_0x44e68f,_0x3853ae,_0x430dd0,_0x5a7af5,_0xa437a8,_0x4fc5fa,_0x520496,_0x1cfd21,_0x4ae819[_0x58b0e4(0x1c4)]),global_registry[_0x58b0e4(0x21d)]&&(_0x150149['KojUH'](_0x150149[_0x58b0e4(0xfc)],_0x150149[_0x58b0e4(0x142)])?_0x150149[_0x58b0e4(0x111)](updateGlobalRegistryForHubHa,_0x4657b8[_0x58b0e4(0xea)]):_0x53de5e[_0x58b0e4(0x1d5)]=_0x1ff21c[_0x58b0e4(0x1d5)]);}}else{if(_0x150149[_0x58b0e4(0x18b)](_0x17a3db,!![])){if(_0x150149[_0x58b0e4(0x19c)](_0x150149[_0x58b0e4(0x1ea)],_0x150149['LQmRy'])){const _0x514e74={};_0x514e74['type']=_0x36975e[_0x58b0e4(0xff)],_0x514e74[_0x58b0e4(0x29d)]='Cluster\x20'+_0x24ca5c+_0x58b0e4(0x10c),_0x2eaf0c[_0x58b0e4(0x1e8)](_0x21006c,_0x514e74,_0x150149[_0x58b0e4(0x248)]),_0x1e9bd9[_0x58b0e4(0x18d)]('Cluster\x20'+_0x2c12de+_0x58b0e4(0x10c)),_0x170758=!![];if(_0x150149[_0x58b0e4(0x1b3)](_0x3a90a8,!![]))throw new _0x47d995('Cluster\x20'+_0xf1a360+_0x58b0e4(0x242));}else{_0x2fa085=_0x58b0e4(0x1c3)+_0x9f8f48,logger['info'](_0x2fa085);const _0x490eb6={};_0x490eb6['type']=WS_EVENTS['LOG'],_0x490eb6[_0x58b0e4(0x29d)]=_0x2fa085,webSocketUtils['sendEventToBackend'](_0x1eb6b0,_0x490eb6),_0x44e68f=_0x5a7af5['concurrency'],_0x3853ae=_0x5a7af5[_0x58b0e4(0x1b8)],_0xa869f6=null,_0x271a0e=null,_0x2daa29=null,_0x430dd0=_0x5a7af5['s3bucket'],_0x520496=_0x5a7af5['minNodes'],_0x1cfd21=_0x5a7af5[_0x58b0e4(0x278)],_0xa437a8=_0x4657b8[_0x58b0e4(0x1a0)],_0x4fc5fa=_0x4657b8[_0x58b0e4(0x283)],_0x150149[_0x58b0e4(0x141)](_0x5a7af5[_0x58b0e4(0x16e)],undefined)&&_0x5a7af5[_0x58b0e4(0x16e)]&&(_0x150149[_0x58b0e4(0x1af)](_0x150149[_0x58b0e4(0x10f)],_0x150149[_0x58b0e4(0x27e)])?_0x27440a[_0x58b0e4(0x18d)](_0x58b0e4(0x285)+_0x1958d2+'\x20'):global_registry[_0x58b0e4(0x13c)]=!![]),_0x150149[_0x58b0e4(0x2a1)](updateGlobalRegistryWithConfig,_0x1afdd5,_0x19895c,_0x283ad0,_0x44e68f,_0x3853ae,_0x430dd0,_0x5a7af5,_0xa437a8,_0x4fc5fa,_0x520496,_0x1cfd21,_0x4ae819[_0x58b0e4(0x1c4)]),global_registry[_0x58b0e4(0x21d)]&&(_0x150149['nMxiF'](_0x150149[_0x58b0e4(0x17a)],_0x150149[_0x58b0e4(0x17a)])?_0x2fd67a['error'](_0x58b0e4(0x24b)+_0x3987fe+'\x20\x0a'+_0xf2552d[_0x58b0e4(0x14a)](_0x2358e8[_0x58b0e4(0x1f8)])):_0x150149['UsNQb'](updateGlobalRegistryForHubHa,_0x4657b8[_0x58b0e4(0x234)]));}}else{if(_0x150149[_0x58b0e4(0x21a)](_0x150149[_0x58b0e4(0x181)],_0x150149[_0x58b0e4(0x181)])){const _0x1db073=_0x150149[_0x58b0e4(0xe8)][_0x58b0e4(0x28d)]('|');let _0x2d8a14=0x0;while(!![]){switch(_0x1db073[_0x2d8a14++]){case'0':const _0x2de78d={};_0x2de78d[_0x58b0e4(0x295)]=WS_EVENTS[_0x58b0e4(0xff)],_0x2de78d['message']=_0x2fa085,webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x2de78d);continue;case'1':_0x2fa085=_0x58b0e4(0xe4)+_0x9f8f48+'\x20in\x20existing\x20cluster\x20\x27'+_0x19895c+'\x27';continue;case'2':const _0x1c6df8={};_0x1c6df8[_0x58b0e4(0x295)]=WS_EVENTS[_0x58b0e4(0x14c)],_0x1c6df8[_0x58b0e4(0x29d)]=_0x150149[_0x58b0e4(0x220)],webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x1c6df8);continue;case'3':global_registry['clusterName']=_0x19895c;continue;case'4':global_registry['cloudProvider']=_0x1afdd5;continue;case'5':global_registry[_0x58b0e4(0x13b)]=_0x283ad0;continue;case'6':global_registry[_0x58b0e4(0x283)]=_0x4657b8[_0x58b0e4(0x283)];continue;case'7':global_registry['hubVersion']=_0x4657b8[_0x58b0e4(0x1a0)];continue;case'8':logger['info'](_0x2fa085);continue;}break;}}else _0x3d6526['region']=_0x26ca79,_0x1b6fdc[_0x58b0e4(0x1f5)]=_0x4b8583,_0x4acb7b[_0x58b0e4(0x13e)]=!![],_0x53cbf2['clusterAutoUpgrade']=_0x557a0f[_0x58b0e4(0x1c4)];}}const _0x3573d9=await _0x150149[_0x58b0e4(0x138)](getCloudProviderObject,_0x1afdd5,_0x19895c,_0x9f8f48,_0x1eb6b0,webSocketUtils,_0x4ae819);if(_0x150149[_0x58b0e4(0x22f)](_0x1afdd5,AZURE)){if(_0x150149['nqiyy'](_0x150149['AhPQh'],_0x150149[_0x58b0e4(0xf2)]))_0x3573d9[_0x58b0e4(0x263)]();else{const _0x46f75a=_0x150149[_0x58b0e4(0x29e)][_0x58b0e4(0x28d)]('|');let _0x38b49a=0x0;while(!![]){switch(_0x46f75a[_0x38b49a++]){case'0':_0x36df99=_0x11b36a['minNodes'];continue;case'1':_0x540715=_0x4afc08[_0x58b0e4(0x1a0)];continue;case'2':_0x3f7aa6[_0x58b0e4(0x21d)]&&_0x150149[_0x58b0e4(0x241)](_0x5261e6,_0x5d4cd4[_0x58b0e4(0x234)]);continue;case'3':_0x5acf33=null;continue;case'4':_0x150149['GwybK'](_0x3e68e5,_0x4edde3,_0x2793cb,_0x43c671,_0x572ed9,_0x5372ee,_0x41ca89,_0xebfebf,_0x57ddff,_0x33e6ac,_0x26e61b,_0x377c05,_0xfad447[_0x58b0e4(0x1c4)]);continue;case'5':_0x7c552a=null;continue;case'6':_0x29b1a1=_0x4a72d9[_0x58b0e4(0x283)];continue;case'7':const _0x550712={};_0x550712[_0x58b0e4(0x295)]=_0x2ae645[_0x58b0e4(0xff)],_0x550712[_0x58b0e4(0x29d)]=_0x247aab,_0x4e491c[_0x58b0e4(0x1e8)](_0x39f8c2,_0x550712);continue;case'8':_0x2f643c=_0x58b0e4(0x1c3)+_0x2d064e;continue;case'9':_0x38fb38[_0x58b0e4(0x18d)](_0x1678b4);continue;case'10':_0x150149[_0x58b0e4(0xf1)](_0xccb6e5[_0x58b0e4(0x16e)],_0x176678)&&_0x79f49e[_0x58b0e4(0x16e)]&&(_0x148ce4[_0x58b0e4(0x13c)]=!![]);continue;case'11':_0x350bcd=_0x5984a1[_0x58b0e4(0x278)];continue;case'12':_0x5dc36f=_0x46d135[_0x58b0e4(0xf6)];continue;case'13':_0x4e0e8a=_0x3f3d98[_0x58b0e4(0x22e)];continue;case'14':_0x51a4e2=_0x2ef774[_0x58b0e4(0x1b8)];continue;case'15':_0x4aed99=null;continue;}break;}}}let _0x2e4c7f;if(_0x150149['zDPyY'](_0x3a3d44,![])){_0x2fa085=_0x58b0e4(0x199)+_0x283ad0+').';const _0x57d28a={};_0x57d28a[_0x58b0e4(0x295)]=WS_EVENTS['LOG'],_0x57d28a[_0x58b0e4(0x29d)]=_0x2fa085,webSocketUtils['sendEventToBackend'](_0x1eb6b0,_0x57d28a),logger[_0x58b0e4(0x18d)](_0x2fa085);const _0x1d2557=await _0x3573d9[_0x58b0e4(0x176)]();if(_0x1d2557){if(_0x150149['zDPyY'](_0x150149['npNiJ'],_0x150149[_0x58b0e4(0x18e)])){const _0x47c2bf=_0x150149[_0x58b0e4(0x269)][_0x58b0e4(0x28d)]('|');let _0x4d1054=0x0;while(!![]){switch(_0x47c2bf[_0x4d1054++]){case'0':_0x26f1d9[_0x58b0e4(0x286)]=_0x150149['ehyJn'];continue;case'1':_0x466437[_0x58b0e4(0x18d)](_0x150149[_0x58b0e4(0x1a4)]);continue;case'2':_0x315096['enableHubHa']=!![];continue;case'3':_0x1d31a1[_0x58b0e4(0x244)]=_0x150149[_0x58b0e4(0x25c)];continue;case'4':_0x1aa15f['redisPassword']=_0x150149[_0x58b0e4(0x147)];continue;}break;}}else{const _0x4f7648={};_0x4f7648[_0x58b0e4(0x295)]=WS_EVENTS['LOG'],_0x4f7648['message']='Cluster\x20'+_0x19895c+_0x58b0e4(0x10c),webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x4f7648,_0x150149[_0x58b0e4(0x248)]),logger[_0x58b0e4(0x18d)](_0x58b0e4(0x1c1)+_0x19895c+_0x58b0e4(0x10c)),_0x3a3d44=!![];if(_0x150149[_0x58b0e4(0x20d)](_0x17a3db,!![])){if(_0x150149[_0x58b0e4(0x219)](_0x150149[_0x58b0e4(0x20e)],_0x150149[_0x58b0e4(0x20e)])){const _0x370620={'azure.workload.identity/use':_0x150149[_0x58b0e4(0x280)],..._0x4c4219[0x0][_0x58b0e4(0x1ad)]['template'][_0x58b0e4(0x265)][_0x58b0e4(0x1d3)]};_0x2546fe[0x0][_0x58b0e4(0x1ad)]['template'][_0x58b0e4(0x265)]['labels']=_0x370620,_0x5bb0a4[0x0][_0x58b0e4(0x1ad)][_0x58b0e4(0x18a)][_0x58b0e4(0x1ad)][_0x58b0e4(0x279)]=_0x150149[_0x58b0e4(0x2a3)];}else throw new Error(_0x58b0e4(0x1c1)+_0x19895c+_0x58b0e4(0x242));}}}else{const _0x7c3529={};_0x7c3529[_0x58b0e4(0x295)]=WS_EVENTS[_0x58b0e4(0xff)],_0x7c3529['message']=_0x150149[_0x58b0e4(0x184)],webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x7c3529),logger[_0x58b0e4(0x18d)](_0x150149[_0x58b0e4(0x184)]);const _0x363601=_0x150149[_0x58b0e4(0x282)](_0xa869f6,null)&&_0x150149['dgvkB'](_0xa869f6,undefined),_0x211058=_0x150149[_0x58b0e4(0x195)](_0x2daa29,null)&&_0x150149['vfPon'](_0x2daa29,undefined)&&_0x150149['GFcgE'](_0x2daa29['length'],0x0);if(_0x363601){_0x150149[_0x58b0e4(0x21a)](_0x211058,![])&&(_0x2fa085=_0x150149[_0x58b0e4(0x12f)],await _0x150149['NPCka'](reportToGalactusAndSendToEDS,_0x4ae819,_0x1eb6b0,_0x2fa085,messageTypes['ERROR'],_0x150149[_0x58b0e4(0x18c)],_0x150149[_0x58b0e4(0x135)],_0x150149[_0x58b0e4(0x163)]),logger[_0x58b0e4(0x2a4)](_0x2fa085),process[_0x58b0e4(0x1e9)](0x1));const _0x757542=await _0x3573d9[_0x58b0e4(0x1be)](_0xa869f6);_0x150149[_0x58b0e4(0xf8)](_0x757542,![])?(_0x2fa085=_0x150149[_0x58b0e4(0x243)],await _0x150149[_0x58b0e4(0x179)](reportToGalactusAndSendToEDS,_0x4ae819,_0x1eb6b0,_0x2fa085,messageTypes[_0x58b0e4(0x1ca)],_0x150149[_0x58b0e4(0x18c)],_0x150149[_0x58b0e4(0x26d)],_0x150149['jTBtH']),logger[_0x58b0e4(0x2a4)](_0x2fa085),process[_0x58b0e4(0x1e9)](0x1)):logger[_0x58b0e4(0x18d)](_0x58b0e4(0x285)+_0xa869f6+'\x20');const _0x369d7c=await _0x3573d9[_0x58b0e4(0x17d)](_0x2daa29,_0xa869f6);_0x150149[_0x58b0e4(0xf4)](_0x369d7c[0x0],![])?(_0x2fa085=_0x58b0e4(0x19e)+JSON[_0x58b0e4(0x14a)](_0x369d7c[0x1])+_0x58b0e4(0x24e)+_0xa869f6+_0x58b0e4(0x1e5),await _0x150149[_0x58b0e4(0x179)](reportToGalactusAndSendToEDS,_0x4ae819,_0x1eb6b0,_0x2fa085,messageTypes[_0x58b0e4(0x1ca)],_0x150149[_0x58b0e4(0x18c)],_0x150149[_0x58b0e4(0x1fb)],_0x150149[_0x58b0e4(0x163)]),logger[_0x58b0e4(0x2a4)](_0x2fa085),process['exit'](0x1)):logger['info'](_0x58b0e4(0x14f)+JSON[_0x58b0e4(0x14a)](_0x2daa29)+'\x20'),[_0xa869f6,_0x2daa29]=await _0x3573d9[_0x58b0e4(0x294)](_0xa869f6,_0x2daa29);}else{const _0x2fc000=_0x150149[_0x58b0e4(0x1ba)]['split']('|');let _0xe92e37=0x0;while(!![]){switch(_0x2fc000[_0xe92e37++]){case'0':logger['info'](_0x150149['PLASY']);continue;case'1':const _0x332133={};_0x332133[_0x58b0e4(0x295)]=WS_EVENTS[_0x58b0e4(0xff)],_0x332133[_0x58b0e4(0x29d)]=_0x150149['PLASY'],webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x332133);continue;case'2':const _0x58283e={};_0x58283e['type']=WS_EVENTS[_0x58b0e4(0xff)],_0x58283e[_0x58b0e4(0x29d)]=_0x150149[_0x58b0e4(0x216)],webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x58283e);continue;case'3':[_0xa869f6,_0x2daa29]=await _0x3573d9['setupNewCluster'](_0xa869f6,_0x2daa29);continue;case'4':logger['info'](_0x150149[_0x58b0e4(0x216)]);continue;}break;}}}}_0x3a3d44&&_0x150149['vXhuE'](_0x1afdd5,AZURE)&&(await _0x3573d9[_0x58b0e4(0xe9)](),await _0x3573d9[_0x58b0e4(0x192)]());const [_0x4665b3,_0x29b856,_0x392bcf,_0x5c937d,_0x1e9427,_0x5490fd,_0x528849]=await _0x150149[_0x58b0e4(0x25f)](createK8sClient,_0x3573d9,_0x4ae819['skipTlsCertVerify']);_0x150149[_0x58b0e4(0x254)](_0x3a3d44,![])&&_0x150149[_0x58b0e4(0x13a)](_0x1afdd5,AWS)&&(global_registry[_0x58b0e4(0x25b)]=!![],_0x2e4c7f=await _0x3573d9[_0x58b0e4(0x157)](_0x4665b3,_0x4ae819));if(_0x150149['XraMF'](_0x3a3d44,![])&&global_registry[_0x58b0e4(0x21d)])try{await _0x3573d9[_0x58b0e4(0x12b)](_0x5490fd,_0x528849,_0x4ae819,_0xa869f6,_0x2daa29);const _0x372c2c={};_0x372c2c[_0x58b0e4(0x295)]=WS_EVENTS[_0x58b0e4(0xff)],_0x372c2c[_0x58b0e4(0x29d)]=_0x150149[_0x58b0e4(0x238)],webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x372c2c);!await _0x150149['zWlJm'](namespaceExists,_0x4665b3,global_registry[_0x58b0e4(0x286)])&&await _0x150149[_0x58b0e4(0x25f)](createNamespace,_0x4665b3,global_registry[_0x58b0e4(0x286)]);logger[_0x58b0e4(0x18d)](_0x150149[_0x58b0e4(0x27b)]);let _0x14c8ef=await fs[_0x58b0e4(0x1c7)](path[_0x58b0e4(0x190)](__dirname,_0x150149['VgPAI'],_0x150149[_0x58b0e4(0x1f4)],_0x150149[_0x58b0e4(0x2aa)],_0x150149[_0x58b0e4(0x185)]),_0x150149[_0x58b0e4(0x1ac)]);_0x14c8ef=_0x14c8ef[_0x58b0e4(0x1f1)](/<RedisClientPassword>/g,_0x150149[_0x58b0e4(0x22b)](encodeBase64,global_registry[_0x58b0e4(0x144)])),_0x14c8ef=_0x14c8ef[_0x58b0e4(0x1f1)](/<KafkaClientPassword>/g,_0x150149[_0x58b0e4(0x1ce)](encodeBase64,global_registry[_0x58b0e4(0x244)])),_0x14c8ef=_0x14c8ef[_0x58b0e4(0x1f1)](/<BstackUsername>/g,_0x150149['BgtZH'](encodeBase64,global_registry[_0x58b0e4(0x260)])),_0x14c8ef=_0x14c8ef['replace'](/<BstackAccessKey>/g,_0x150149[_0x58b0e4(0x111)](encodeBase64,global_registry[_0x58b0e4(0x1f9)]));const _0x1dc9da=yaml[_0x58b0e4(0x116)](_0x14c8ef);await _0x150149['mejPl'](kubeApply,_0x1dc9da,_0x528849),logger[_0x58b0e4(0x18d)](_0x150149[_0x58b0e4(0xfb)]);let _0x5c3ead=_0x150149[_0x58b0e4(0x175)];if(_0x150149[_0x58b0e4(0x188)](_0x1afdd5,AZURE))_0x5c3ead=_0x150149[_0x58b0e4(0x16d)];else _0x150149[_0x58b0e4(0x107)](_0x1afdd5,GCP)&&(_0x5c3ead=_0x150149[_0x58b0e4(0x291)]);logger[_0x58b0e4(0x18d)](_0x150149[_0x58b0e4(0x247)]);let _0x574047=await fs[_0x58b0e4(0x1c7)](path[_0x58b0e4(0x190)](__dirname,_0x150149[_0x58b0e4(0x149)],_0x150149[_0x58b0e4(0x1f4)],_0x150149[_0x58b0e4(0x2aa)],_0x150149[_0x58b0e4(0x121)]),_0x150149[_0x58b0e4(0x1ac)]);_0x574047=_0x574047['replace'](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x574047=_0x574047[_0x58b0e4(0x1f1)](/<StorageClassName>/g,_0x5c3ead);const _0x5f2dd0=yaml[_0x58b0e4(0x116)](_0x574047);await _0x150149[_0x58b0e4(0x168)](kubeApply,_0x5f2dd0,_0x528849),logger[_0x58b0e4(0x18d)](_0x150149[_0x58b0e4(0x12e)]),logger[_0x58b0e4(0x18d)](_0x150149[_0x58b0e4(0x25e)]);let _0x566560=await fs['readFileAsync'](path[_0x58b0e4(0x190)](__dirname,_0x150149[_0x58b0e4(0x149)],_0x150149['fTVSc'],_0x150149[_0x58b0e4(0x2aa)],_0x150149[_0x58b0e4(0x1fa)]),_0x150149[_0x58b0e4(0x1ac)]);_0x566560=_0x566560[_0x58b0e4(0x1f1)](/<HubHaNameSpace>/g,global_registry[_0x58b0e4(0x286)]),_0x566560=_0x566560['replace'](/<StorageClassName>/g,_0x5c3ead);const _0x3ae5e1=yaml['loadAll'](_0x566560);await _0x150149[_0x58b0e4(0x257)](kubeApply,_0x3ae5e1,_0x528849),logger[_0x58b0e4(0x18d)](_0x150149[_0x58b0e4(0x1b1)]),logger[_0x58b0e4(0x18d)](_0x150149[_0x58b0e4(0x21c)]);let _0x4177d8=await fs[_0x58b0e4(0x1c7)](path[_0x58b0e4(0x190)](__dirname,_0x150149[_0x58b0e4(0x149)],_0x150149[_0x58b0e4(0x1f4)],_0x150149[_0x58b0e4(0x2aa)],_0x150149[_0x58b0e4(0x152)]),_0x150149[_0x58b0e4(0x1ac)]);_0x4177d8=_0x4177d8[_0x58b0e4(0x1f1)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x4177d8=_0x4177d8['replace'](/<HubHaNameSpace>/g,global_registry[_0x58b0e4(0x286)]);const _0x5cfd65=yaml['loadAll'](_0x4177d8);_0x150149[_0x58b0e4(0x201)](global_registry[_0x58b0e4(0x1f5)],AZURE)&&(_0x5cfd65[0x0][_0x58b0e4(0x1ad)][_0x58b0e4(0x18a)][_0x58b0e4(0x265)]['labels']={'azure.workload.identity/use':_0x150149[_0x58b0e4(0x280)],..._0x5cfd65[0x0]['spec'][_0x58b0e4(0x18a)]['metadata']['labels']},_0x5cfd65[0x0]['spec']['template'][_0x58b0e4(0x1ad)][_0x58b0e4(0x279)]=_0x150149[_0x58b0e4(0x2a3)]);await _0x150149[_0x58b0e4(0x207)](kubeApply,_0x5cfd65,_0x528849),logger['info'](_0x150149[_0x58b0e4(0x1cf)]);const _0x225f3a={};_0x225f3a['type']=WS_EVENTS[_0x58b0e4(0xff)],_0x225f3a[_0x58b0e4(0x29d)]=_0x150149[_0x58b0e4(0x25d)],webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x225f3a),logger[_0x58b0e4(0x18d)](_0x150149['vnMRV']);}catch(_0x9b5752){const _0x1fca65=_0x150149['rLCGP']['split']('|');let _0x3a61d4=0x0;while(!![]){switch(_0x1fca65[_0x3a61d4++]){case'0':process[_0x58b0e4(0x1e9)](0x1);continue;case'1':logger[_0x58b0e4(0x2a4)](_0x2fa085);continue;case'2':await _0x3573d9[_0x58b0e4(0x1ee)](_0x4665b3,global_registry[_0x58b0e4(0x13b)]);continue;case'3':await _0x150149['REXen'](reportToGalactusAndSendToEDS,_0x4ae819,_0x1eb6b0,_0x2fa085,messageTypes[_0x58b0e4(0x1ca)],_0x150149[_0x58b0e4(0x18c)],_0x150149[_0x58b0e4(0x221)],_0x150149[_0x58b0e4(0x163)]);continue;case'4':_0x2fa085=_0x58b0e4(0x23f)+_0x9b5752[_0x58b0e4(0x29d)];continue;}break;}}try{_0x456ab6=_0x150149[_0x58b0e4(0x210)](kebabCase,_0x9f8f48),logger['info'](_0x150149[_0x58b0e4(0x1b9)]);const _0x14a0fc={};_0x14a0fc[_0x58b0e4(0x295)]=WS_EVENTS[_0x58b0e4(0xff)],_0x14a0fc[_0x58b0e4(0x29d)]=_0x150149[_0x58b0e4(0x1b9)],webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x14a0fc);if(_0x150149[_0x58b0e4(0x1aa)](_0x456ab6,_0x150149[_0x58b0e4(0x2a3)])){const _0x42afae={};_0x42afae['createdBy']=_0x150149[_0x58b0e4(0x100)],_0x42afae[_0x58b0e4(0x17b)]=_0x150149[_0x58b0e4(0x100)];const _0x581cbb={};_0x581cbb['name']=_0x456ab6,_0x581cbb[_0x58b0e4(0x1ec)]=_0x42afae;const _0x21428f={};_0x21428f[_0x58b0e4(0x265)]=_0x581cbb;const _0x2adab8=_0x21428f,_0x67e2c0={};_0x67e2c0[_0x58b0e4(0x15f)]=_0x2adab8,await _0x4665b3['createNamespace'](_0x67e2c0),logger[_0x58b0e4(0x18d)](_0x150149['ItEtz']);}const _0x23703c={};_0x23703c['type']=WS_EVENTS[_0x58b0e4(0xff)],_0x23703c['message']=_0x150149[_0x58b0e4(0x172)],webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x23703c);const _0x16b147={};_0x16b147['type']=WS_EVENTS['LOG'],_0x16b147['message']=_0x150149['HCdla'],webSocketUtils['sendEventToBackend'](_0x1eb6b0,_0x16b147),logger[_0x58b0e4(0x18d)](_0x150149[_0x58b0e4(0x209)]);let _0x39ad38={};_0x150149[_0x58b0e4(0x201)](_0x1afdd5,AZURE)&&(_0x39ad38={'clientId':await _0x3573d9[_0x58b0e4(0x171)]('turboscale-managed-identity-'+_0x19895c)});await _0x150149[_0x58b0e4(0x1d4)](addGridComponents,_0x4665b3,_0x29b856,_0x392bcf,_0x5c937d,_0x456ab6,_0x19895c,_0x2e4c7f,_0x1e9427,_0x528849,_0x39ad38),_0x2fa085=_0x150149[_0x58b0e4(0x212)],logger[_0x58b0e4(0x18d)](_0x2fa085);const _0x4a3020={};_0x4a3020[_0x58b0e4(0x295)]=WS_EVENTS[_0x58b0e4(0xff)],_0x4a3020[_0x58b0e4(0x29d)]=_0x2fa085,webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x4a3020),_0x2fa085=_0x150149[_0x58b0e4(0x1b7)],logger[_0x58b0e4(0x18d)](_0x2fa085);const _0xd98b96={};_0xd98b96['type']=WS_EVENTS[_0x58b0e4(0xff)],_0xd98b96['message']=_0x2fa085,webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0xd98b96),await _0x150149['RvUNZ'](waitForDeployment,_0x29b856,_0x456ab6,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x41bfd8=await _0x150149[_0x58b0e4(0x257)](getNamespaceUID,_0x4665b3,_0x456ab6),_0x125561=global_registry[_0x58b0e4(0x13c)]?_0x150149[_0x58b0e4(0x16c)]:_0x150149[_0x58b0e4(0x1e2)],_0x2fa63a={};_0x2fa63a[_0x58b0e4(0x1cd)]=_0x125561,_0x2fa63a[_0x58b0e4(0x120)]=_0x150149[_0x58b0e4(0x29f)];const _0x25eeb5=await _0x4665b3[_0x58b0e4(0x29c)](_0x2fa63a);let _0xc0d748=_0x3573d9[_0x58b0e4(0x211)](_0x25eeb5)+'/'+_0x456ab6,_0xbf74b8=_0x150149[_0x58b0e4(0x17c)];try{const _0x5c518f='https://'+AG_API_URL+_0x58b0e4(0x255)+_0x41bfd8,_0x29a167=await _0x150149[_0x58b0e4(0x1d2)](got,_0x5c518f,_0x58ac44);(_0x150149[_0x58b0e4(0xeb)](_0x29a167,null)||_0x150149[_0x58b0e4(0x10e)](_0x29a167,undefined))&&(_0x2fa085=_0x150149[_0x58b0e4(0x20a)],await _0x150149[_0x58b0e4(0x16f)](reportToGalactusAndSendToEDS,_0x4ae819,_0x1eb6b0,_0x2fa085,messageTypes[_0x58b0e4(0x1ca)],_0x150149[_0x58b0e4(0x18c)],_0x150149[_0x58b0e4(0x113)],_0x150149['jTBtH']),logger[_0x58b0e4(0x2a4)](_0x2fa085),process[_0x58b0e4(0x1e9)](0x1));_0x150149['bITTt'](_0x29a167['statusCode'],0x191)&&(_0x2fa085=_0x150149[_0x58b0e4(0x25a)],await _0x150149['BnYSO'](reportToGalactusAndSendToEDS,_0x4ae819,_0x1eb6b0,_0x2fa085,messageTypes[_0x58b0e4(0x1ca)],_0x150149[_0x58b0e4(0x18c)],_0x150149[_0x58b0e4(0x24f)],_0x150149[_0x58b0e4(0x163)]),logger['error'](_0x2fa085),process['exit'](0x1));_0x150149[_0x58b0e4(0x115)](_0x29a167[_0x58b0e4(0x1bc)],0xc8)&&(_0x2fa085='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x58b0e4(0x14a)](_0x29a167),await _0x150149[_0x58b0e4(0x11b)](reportToGalactusAndSendToEDS,_0x4ae819,_0x1eb6b0,_0x2fa085,messageTypes[_0x58b0e4(0x1ca)],_0x150149['RoEbZ'],_0x150149[_0x58b0e4(0x10d)],_0x150149[_0x58b0e4(0x163)]),logger[_0x58b0e4(0x2a4)](_0x2fa085),process[_0x58b0e4(0x1e9)](0x1));const _0x276dac=JSON[_0x58b0e4(0x10b)](_0x29a167[_0x58b0e4(0x15f)]);_0x276dac[_0x58b0e4(0x127)]&&(_0xc0d748=_0x276dac[_0x58b0e4(0x127)],_0xbf74b8=_0x150149[_0x58b0e4(0xee)]),global_registry['isPrivateGrid']&&(_0xbf74b8=_0x150149[_0x58b0e4(0x17c)]);}catch(_0x1c473f){}_0x2fa085='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0xc0d748+'\x20',logger[_0x58b0e4(0x18d)](_0x2fa085);const _0x40970b={};_0x40970b[_0x58b0e4(0x295)]=WS_EVENTS[_0x58b0e4(0xff)],_0x40970b['message']=_0x2fa085,webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x40970b),_0x2fa085='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0xbf74b8+_0x58b0e4(0x159)+_0xc0d748+_0x58b0e4(0x139),logger['info'](_0x2fa085);const _0x46232c={};_0x46232c['type']=WS_EVENTS[_0x58b0e4(0xff)],_0x46232c[_0x58b0e4(0x29d)]=_0x2fa085,webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x46232c);const _0x1da509={};_0x1da509[_0x58b0e4(0x295)]=WS_EVENTS[_0x58b0e4(0x164)],_0x1da509[_0x58b0e4(0x29d)]='CLI\x20run\x20finished:\x20'+_0xc0d748,webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x1da509),await webSocketUtils['delay'](0x7d0);}catch(_0x13a626){logger['error'](_0x58b0e4(0x1d6)+_0x13a626+'\x20\x0a'+JSON[_0x58b0e4(0x14a)](_0x13a626['stack']));if(_0x150149[_0x58b0e4(0x11e)](_0x3a3d44,![]))try{logger[_0x58b0e4(0x18d)](_0x150149['JCpWI']),await _0x150149[_0x58b0e4(0x106)](removeGridComponents,_0x4665b3,_0x29b856,_0x392bcf,_0x5c937d,_0x456ab6),await _0x3573d9[_0x58b0e4(0x1ee)](_0x4665b3,global_registry[_0x58b0e4(0x13b)]);}catch(_0x27ea38){logger[_0x58b0e4(0x2a4)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x27ea38+'\x20\x0a'+JSON[_0x58b0e4(0x14a)](_0x27ea38['stack']));}throw _0x13a626;}}catch(_0x3bcfd8){const _0x457f2f=_0x58b0e4(0x19f)+_0x3bcfd8+'\x20\x0a'+JSON['stringify'](_0x3bcfd8[_0x58b0e4(0x1f8)]);if(_0x1eb6b0){const _0x51dc3e={};_0x51dc3e[_0x58b0e4(0x295)]=WS_EVENTS[_0x58b0e4(0xff)],_0x51dc3e[_0x58b0e4(0x29d)]=_0x457f2f,webSocketUtils[_0x58b0e4(0x1e8)](_0x1eb6b0,_0x51dc3e,_0x150149['jTBtH'],!![]);}await webSocketUtils[_0x58b0e4(0x252)](0x7d0);const _0x518134={};_0x518134[_0x58b0e4(0x2a4)]=_0x457f2f,await _0x150149['FQBNp'](sendInstrumentationEvent,_0x4ae819,_0x150149['RoEbZ'],messageTypes[_0x58b0e4(0x1ca)],_0x150149[_0x58b0e4(0x1b4)],_0x518134,_0x4ae819),logger['error'](_0x457f2f);}process[_0x58b0e4(0x1e9)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a10_0x2ccf(_0x373238,_0x508b32){const _0x3cdc21=a10_0x3cdc();return a10_0x2ccf=function(_0x2ccf89,_0x2f907c){_0x2ccf89=_0x2ccf89-0x1bb;let _0x2390c3=_0x3cdc21[_0x2ccf89];return _0x2390c3;},a10_0x2ccf(_0x373238,_0x508b32);}const a10_0x19a847=a10_0x2ccf;(function(_0x43565f,_0x1b7c79){const _0x2c37e4=a10_0x2ccf,_0x37d813=_0x43565f();while(!![]){try{const _0x3f7e64=parseInt(_0x2c37e4(0x1d3))/0x1+-parseInt(_0x2c37e4(0x1d0))/0x2+parseInt(_0x2c37e4(0x1cd))/0x3+-parseInt(_0x2c37e4(0x1ce))/0x4+parseInt(_0x2c37e4(0x1ca))/0x5*(-parseInt(_0x2c37e4(0x1bf))/0x6)+parseInt(_0x2c37e4(0x1c9))/0x7*(-parseInt(_0x2c37e4(0x1c6))/0x8)+parseInt(_0x2c37e4(0x1c8))/0x9*(parseInt(_0x2c37e4(0x1bb))/0xa);if(_0x3f7e64===_0x1b7c79)break;else _0x37d813['push'](_0x37d813['shift']());}catch(_0x251558){_0x37d813['push'](_0x37d813['shift']());}}}(a10_0x3cdc,0x36308));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x19a847(0x1d2));function a10_0x3cdc(){const _0x3b14ef=['852LIjvrp','strict','recommendCommands','delete','builder','command','List\x20Grid\x20resources.','109432ZptrfN','demandCommand','153FcuWFu','7IQmtRv','10460XWaXTW','commandDir','delete_commands','804795dwSQGk','472512KtkumL','hUJQf','173396EecAdf','xJSpX','../config/constants','351539ThUyRX','69250FXHygD','help','desc','usage'];a10_0x3cdc=function(){return _0x3b14ef;};return a10_0x3cdc();}exports[a10_0x19a847(0x1c4)]=a10_0x19a847(0x1c2),exports[a10_0x19a847(0x1bd)]=a10_0x19a847(0x1c5),exports[a10_0x19a847(0x1c3)]=function(_0x418eb4){const _0x25e678=a10_0x19a847,_0x19fdfa={};_0x19fdfa[_0x25e678(0x1cf)]=_0x25e678(0x1cc),_0x19fdfa[_0x25e678(0x1d1)]=_0x25e678(0x1bc);const _0x38c542=_0x19fdfa;return _0x418eb4[_0x25e678(0x1be)](HELP_HEADER_MESSAGE[_0x25e678(0x1c2)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x25e678(0x1cb)](_0x38c542[_0x25e678(0x1cf)])[_0x25e678(0x1c7)]()[_0x25e678(0x1c1)]()[_0x25e678(0x1c0)]()[_0x25e678(0x1bc)](_0x38c542['xJSpX']);},exports['handler']=function(_0x1786ac){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x2c13ba=a11_0x3df8;(function(_0x4b28ee,_0x208116){const _0x5a99f2=a11_0x3df8,_0x46809d=_0x4b28ee();while(!![]){try{const _0x4a9209=-parseInt(_0x5a99f2(0x1b0))/0x1+parseInt(_0x5a99f2(0x1d6))/0x2+-parseInt(_0x5a99f2(0x1df))/0x3+parseInt(_0x5a99f2(0x185))/0x4+-parseInt(_0x5a99f2(0x1b1))/0x5*(-parseInt(_0x5a99f2(0x1cf))/0x6)+parseInt(_0x5a99f2(0x1b2))/0x7*(parseInt(_0x5a99f2(0x1d8))/0x8)+-parseInt(_0x5a99f2(0x189))/0x9*(parseInt(_0x5a99f2(0x1b3))/0xa);if(_0x4a9209===_0x208116)break;else _0x46809d['push'](_0x46809d['shift']());}catch(_0x17c11a){_0x46809d['push'](_0x46809d['shift']());}}}(a11_0x2ff0,0xf170f));function a11_0x2ff0(){const _0x108958=['UoHxe','NGPih','FhfDE','xqCGf','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','body','password','unauthorised','PUmya','builder','tCYDP','isClusterPresent','Desnq','FnCft','replace','message','../../utils/gridComponents','614290JQuhFf','10CgenKA','21jQVaMb','3931090iAcGSW','Skip\x20insecure\x20cert\x20verification.','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','IBfno','onlyGridInCluster','parse','aPVZK','requestId','../../cloudproviders/utils','ATGVL','zpzex','ERROR','nwlNK','bfMOC','bsGSE','Jeqrd','fGQrg','exopW','grid-id','INFO','usage','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','\x22\x20with\x20ID\x20','slKQg','clusterSpawnedVia','Delete\x20an\x20Automation\x20grid.','fYKvV','niPQg','2788662VnPwWJ','description','XKKUu','isBrowserstackCluster','got','stringify','unknown-error','3630558QYNwCt','jrqPz','4278904VkKvrL','zYbqJ','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','warn','Nowns','RUHfL','iKAQS','2066166RfEXeu','readNamespace','KByqf','nTCMX','clusterName','ZuQWE','gridId','jYqgx','/packages/cli/grid/','type','exit','ONTUg','argv','clusterId','TVOuq','username','DELETE','invalid-input','AWjlA','RsoWh','clusterRegion','npSzD','CNIEQ','toLowerCase','skipTlsCertVerify','aSUAG','pDHWk','region','Pass\x20the\x20ID\x20of\x20the\x20Grid','EvIMi','TsbXC','error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Namespace:\x20','uSjmL','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','Browserstack','Successfully\x20deleted\x20the\x20grid','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','cloudProvider','uPHTe','invalid-grid-id','QaRIo','cepvH','https://','\x22\x20and\x20ID\x20','Cluster:\x20','SLBVp','LXmzK','../../config/logger','MoXMH','../../utils/createk8sClient','xCutn','tweXd','HzWtw','default','../../config/constants','epilogue','handler','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','command','../../utils/userInput','pnAtR','JFZVy','then','string','7494492DiVXuW','delete','skip-tls-cert-verify','MOieA','90lAPeSk','RSHBt','connectionTimeout','<UsernamePlaceholder>','../../utils/utilityMethods','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','../../utils/webSocketUtils','vbAxI','WebSocket','statusCode','desc','info','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','../../utils/instrumentationUtils','zobec','sRxlG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','<PasswordPlaceholder>','bKPmx','name','ZmgnQ','Failed\x20to\x20delete\x20resources!\x20Error:\x20'];a11_0x2ff0=function(){return _0x108958;};return a11_0x2ff0();}const fs=require('fs'),got=require(a11_0x2c13ba(0x1d3)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x2c13ba(0x17b)),{logger}=require(a11_0x2c13ba(0x174)),{getCloudProviderObject}=require(a11_0x2c13ba(0x1bb)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x2c13ba(0x1af)),{sendInstrumentationEvent}=require(a11_0x2c13ba(0x196)),{inputConfirmation}=require(a11_0x2c13ba(0x180)),{createK8sClient}=require(a11_0x2c13ba(0x176)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x2c13ba(0x18d)),webSocketUtils=require(a11_0x2c13ba(0x18f));function a11_0x3df8(_0x373394,_0x3dacb3){const _0x2ff024=a11_0x2ff0();return a11_0x3df8=function(_0x3df823,_0x488a8b){_0x3df823=_0x3df823-0x153;let _0x1c907b=_0x2ff024[_0x3df823];return _0x1c907b;},a11_0x3df8(_0x373394,_0x3dacb3);}exports[a11_0x2c13ba(0x17f)]='grid',exports[a11_0x2c13ba(0x193)]=a11_0x2c13ba(0x1cc),exports[a11_0x2c13ba(0x1a8)]=function(_0x423284){const _0x44acbb=a11_0x2c13ba,_0x2058e9={};_0x2058e9[_0x44acbb(0x1dd)]=_0x44acbb(0x15e),_0x2058e9['Jeqrd']=_0x44acbb(0x184),_0x2058e9[_0x44acbb(0x1ea)]=_0x44acbb(0x1b4),_0x2058e9[_0x44acbb(0x1ed)]='boolean',_0x2058e9[_0x44acbb(0x16e)]='help';const _0x6800b4=_0x2058e9,_0x88629d={};_0x88629d['description']=_0x6800b4[_0x44acbb(0x1dd)],_0x88629d['type']=_0x6800b4[_0x44acbb(0x1c2)];const _0x4751d1={};_0x4751d1['description']=_0x6800b4[_0x44acbb(0x1ea)],_0x4751d1[_0x44acbb(0x1e8)]=_0x6800b4[_0x44acbb(0x1ed)],_0x4751d1[_0x44acbb(0x17a)]=![];const _0x2efffa={};return _0x2efffa[_0x44acbb(0x1c5)]=_0x88629d,_0x2efffa['skip-tls-cert-verify']=_0x4751d1,_0x423284[_0x44acbb(0x1c7)](HELP_HEADER_MESSAGE[_0x44acbb(0x186)])[_0x44acbb(0x17c)](HELP_FOOTER_MESSAGE)['options'](_0x2efffa)['help'](_0x6800b4[_0x44acbb(0x16e)])['argv'];},exports[a11_0x2c13ba(0x17d)]=async function(_0x3823c9){const _0xde672f=a11_0x2c13ba,_0x4b2245={'NARHC':_0xde672f(0x15e),'aSUAG':_0xde672f(0x184),'jYqgx':_0xde672f(0x1b4),'oVYgy':'boolean','LvHLm':'help','LXmzK':_0xde672f(0x169),'sRxlG':_0xde672f(0x168),'UoHxe':_0xde672f(0x163),'FhfDE':function(_0x52b0b6,_0x4b20c2){return _0x52b0b6!==_0x4b20c2;},'xqCGf':_0xde672f(0x181),'KByqf':_0xde672f(0x178),'RSHBt':function(_0x82b9ea,_0x9f2096){return _0x82b9ea===_0x9f2096;},'ZmgnQ':'luZmy','HzWtw':function(_0x5d9845){return _0x5d9845();},'nwlNK':'cRqtW','PUmya':_0xde672f(0x1d7),'ZjwIb':_0xde672f(0x199),'zYbqJ':function(_0x5bfc9a,_0x5e4193,_0x488f54,_0x49b00c,_0xaf4a3a,_0x230157,_0x3ac46a){return _0x5bfc9a(_0x5e4193,_0x488f54,_0x49b00c,_0xaf4a3a,_0x230157,_0x3ac46a);},'QaRIo':'delete-grid-called','CNIEQ':'init-not-called','uPHTe':_0xde672f(0x1ab),'JFZVy':function(_0x4752a4,_0x2fff08,_0x58dca5,_0xc002c1){return _0x4752a4(_0x2fff08,_0x58dca5,_0xc002c1);},'AWjlA':function(_0xff7069,_0x29994a){return _0xff7069===_0x29994a;},'IBfno':'Browserstack','aPVZK':_0xde672f(0x1d1),'iKAQS':'jUhDl','UyjBk':function(_0x40dd17,_0x6c697f){return _0x40dd17(_0x6c697f);},'EvIMi':function(_0x128854,_0x4f2284){return _0x128854===_0x4f2284;},'FnCft':function(_0xc88b11,_0x7c580e){return _0xc88b11===_0x7c580e;},'MoXMH':function(_0x1f130b,_0x5edd4a){return _0x1f130b===_0x5edd4a;},'niPQg':'SfGCa','nTCMX':_0xde672f(0x1a3),'bKPmx':_0xde672f(0x153),'NGPih':function(_0x59eb59,_0x2c9d36){return _0x59eb59===_0x2c9d36;},'slKQg':function(_0x3a8c18,_0x3e4c5e){return _0x3a8c18!==_0x3e4c5e;},'ATGVL':_0xde672f(0x1c4),'npSzD':_0xde672f(0x18c),'zpzex':_0xde672f(0x19a),'IKgai':function(_0x3e64f9,_0x284b86){return _0x3e64f9(_0x284b86);},'vbAxI':function(_0x18edc1,_0x3b3b1a,_0x51b09c){return _0x18edc1(_0x3b3b1a,_0x51b09c);},'RsoWh':function(_0x194c6a,_0x123d0a,_0x761c9,_0x5a84b2,_0x352752,_0x359ad1){return _0x194c6a(_0x123d0a,_0x761c9,_0x5a84b2,_0x352752,_0x359ad1);},'TKNnW':function(_0xfb4fb7,_0x44fdf3){return _0xfb4fb7!==_0x44fdf3;},'uSjmL':_0xde672f(0x172),'cfSWj':_0xde672f(0x1cd),'Nowns':'hPyJk','TsbXC':_0xde672f(0x1ef),'bsGSE':function(_0x2fcd35,_0x1dc0d5,_0x3333df){return _0x2fcd35(_0x1dc0d5,_0x3333df);},'VMMPb':function(_0x2e41c9,_0x121da6){return _0x2e41c9!==_0x121da6;},'pDHWk':function(_0x2485c1,_0x57d8f7,_0x55c36a,_0x3fdd06,_0xcb9b5d,_0x50d3c2,_0x1d9765){return _0x2485c1(_0x57d8f7,_0x55c36a,_0x3fdd06,_0xcb9b5d,_0x50d3c2,_0x1d9765);},'zobec':'server-error','fGQrg':_0xde672f(0x162),'xCutn':_0xde672f(0x1a6),'MOieA':function(_0x5cda20,_0x546df3){return _0x5cda20===_0x546df3;},'ZuQWE':function(_0x2d60e7,_0x5698af,_0x7a892a,_0x4eb2a6,_0xcf203,_0x2acf5c,_0x521bf1){return _0x2d60e7(_0x5698af,_0x7a892a,_0x4eb2a6,_0xcf203,_0x2acf5c,_0x521bf1);},'tCYDP':_0xde672f(0x16c),'bfMOC':_0xde672f(0x1d5)};try{global_registry[_0xde672f(0x1ba)]=_0x4b2245[_0xde672f(0x179)](uuidv4);!fs['existsSync'](_0x4b2245['HzWtw'](getCredentialsPath))&&(_0x4b2245['RSHBt'](_0x4b2245[_0xde672f(0x1bf)],_0x4b2245[_0xde672f(0x1a7)])?_0x414b0a=_0xde672f(0x18e)+_0x476173[_0xde672f(0x19c)]+_0xde672f(0x170)+_0x470749['id']+_0xde672f(0x17e)+_0x5ee91f[_0xde672f(0x1e3)]+_0xde672f(0x1c9)+_0x3172bd[_0xde672f(0x1ec)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(console[_0xde672f(0x161)](_0x4b2245['ZjwIb']),await _0x4b2245[_0xde672f(0x1d9)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x158)],null,_0x3823c9),process[_0xde672f(0x1e9)](0x1)));_0x4b2245['zYbqJ'](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1c6)],null,null,_0x3823c9);if(!_0x3823c9[_0xde672f(0x1e5)]){if(_0x4b2245[_0xde672f(0x1a1)](_0x4b2245[_0xde672f(0x16b)],_0x4b2245[_0xde672f(0x16b)])){const _0x51c119={};_0x51c119[_0xde672f(0x1d0)]=_0x4b2245['NARHC'],_0x51c119['type']=_0x4b2245[_0xde672f(0x15b)];const _0x429ea8={};_0x429ea8[_0xde672f(0x1d0)]=_0x4b2245[_0xde672f(0x1e6)],_0x429ea8['type']=_0x4b2245['oVYgy'],_0x429ea8[_0xde672f(0x17a)]=![];const _0x2f8b49={};return _0x2f8b49[_0xde672f(0x1c5)]=_0x51c119,_0x2f8b49[_0xde672f(0x187)]=_0x429ea8,_0x41049b[_0xde672f(0x1c7)](_0x58d019[_0xde672f(0x186)])[_0xde672f(0x17c)](_0x3f4bea)['options'](_0x2f8b49)['help'](_0x4b2245['LvHLm'])[_0xde672f(0x1eb)];}else console[_0xde672f(0x161)](_0x4b2245[_0xde672f(0x19f)]),process[_0xde672f(0x1e9)](0x1);}const _0x536382=JSON[_0xde672f(0x1b8)](fs['readFileSync'](_0x4b2245[_0xde672f(0x179)](getCredentialsPath))),[_0xb0a723,_0x4ac30b]=await _0x4b2245[_0xde672f(0x182)](getGridDetails,_0x536382[_0xde672f(0x167)]['username'],_0x536382['Browserstack'][_0xde672f(0x1a5)],_0x3823c9[_0xde672f(0x1e5)]);if(_0x4ac30b){const _0x3d7993=_0x4ac30b[_0xde672f(0x194)];let _0x437b60='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x3d7993['name']+_0xde672f(0x170)+_0x3d7993['id']+_0xde672f(0x1c8);_0x4ac30b[_0xde672f(0x1b7)]&&_0x4b2245[_0xde672f(0x154)](_0x4ac30b[_0xde672f(0x1cb)],_0x4b2245[_0xde672f(0x1b6)])&&(_0x4b2245[_0xde672f(0x18a)](_0x4b2245[_0xde672f(0x1b9)],_0x4b2245[_0xde672f(0x1de)])?_0x5e9f79[_0xde672f(0x1db)](_0x4b2245['LXmzK']):_0x437b60=_0xde672f(0x18e)+_0x3d7993[_0xde672f(0x19c)]+_0xde672f(0x170)+_0x3d7993['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x3d7993[_0xde672f(0x1e3)]+_0xde672f(0x1c9)+_0x3d7993[_0xde672f(0x1ec)]+_0xde672f(0x1c8));const _0x3736dc=await _0x4b2245['UyjBk'](inputConfirmation,_0x437b60);(_0x4b2245[_0xde672f(0x18a)](_0x3736dc,undefined)||_0x4b2245[_0xde672f(0x15f)](_0x3736dc,null)||!(_0x4b2245[_0xde672f(0x1ac)](_0x3736dc[_0xde672f(0x159)](),'y')||_0x4b2245[_0xde672f(0x175)](_0x3736dc[_0xde672f(0x159)](),'n')))&&(_0x4b2245[_0xde672f(0x154)](_0x4b2245[_0xde672f(0x1ce)],_0x4b2245[_0xde672f(0x1ce)])?(console[_0xde672f(0x161)](_0x4b2245[_0xde672f(0x1e2)]),await _0x4b2245[_0xde672f(0x1d9)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x19b)],null,_0x3823c9),process[_0xde672f(0x1e9)](0x1)):_0x12fc36[_0xde672f(0x1e9)](0x0));_0x4b2245[_0xde672f(0x1a0)](_0x3736dc[_0xde672f(0x159)](),'n')&&(_0x4b2245[_0xde672f(0x1ca)](_0x4b2245['ATGVL'],_0x4b2245[_0xde672f(0x1bc)])?(_0x58908c['info'](_0x4b2245[_0xde672f(0x198)]),_0x21fa55['exit'](0x0)):process[_0xde672f(0x1e9)](0x0));const _0x29d1d6=WS_ENDPOINT[_0xde672f(0x1ad)](_0x4b2245[_0xde672f(0x157)],_0x536382[_0xde672f(0x167)][_0xde672f(0x1ee)])[_0xde672f(0x1ad)](_0x4b2245[_0xde672f(0x1bd)],_0x536382[_0xde672f(0x167)][_0xde672f(0x1a5)]),_0x18503c={};_0x18503c[_0xde672f(0x191)]=ws,_0x18503c[_0xde672f(0x18b)]=0x36ee80;const _0x4feef2=new ReconnectingWebSocket(_0x29d1d6,[],_0x18503c);global_registry[_0xde672f(0x156)]=_0x3d7993['region'];const _0x252905=_0x3d7993[_0xde672f(0x16a)],_0x2af435=await _0x4b2245[_0xde672f(0x1d9)](getCloudProviderObject,_0x252905,_0x3d7993[_0xde672f(0x1e3)],_0x3d7993[_0xde672f(0x19c)],_0x4feef2,webSocketUtils,_0x3823c9),_0x36186a=await _0x2af435[_0xde672f(0x1aa)]();if(_0x36186a){const _0x5d56a4=_0x4b2245['IKgai'](kebabCase,_0x3d7993[_0xde672f(0x19c)]),[_0x5e2920,_0x46113e,_0x5f4ae5,_0x234beb,_0x41ae4b,_0x377b40]=await _0x4b2245[_0xde672f(0x190)](createK8sClient,_0x2af435,_0x3823c9[_0xde672f(0x15a)]);let _0x378f50=!![];const _0x22909c={};_0x22909c[_0xde672f(0x19c)]=_0x5d56a4,await _0x5e2920[_0xde672f(0x1e0)](_0x22909c)[_0xde672f(0x183)](_0x589fa4=>{const _0x375f8c=_0xde672f;_0x4b2245[_0x375f8c(0x1a1)](_0x4b2245[_0x375f8c(0x1a2)],_0x4b2245[_0x375f8c(0x1e1)])?logger[_0x375f8c(0x194)]('Namespace:\x20'+_0x5d56a4+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):(_0x5c97ed[_0x375f8c(0x161)](_0x4b2245[_0x375f8c(0x19f)]),_0x43cf55[_0x375f8c(0x1e9)](0x1));})['catch'](_0xb84426=>{const _0x44297a=_0xde672f;_0x4b2245[_0x44297a(0x18a)](_0x4b2245[_0x44297a(0x19d)],_0x4b2245[_0x44297a(0x19d)])?(logger['warn'](_0x44297a(0x164)+_0x5d56a4+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x378f50=![]):(_0x237ea6[_0x44297a(0x1db)](_0x44297a(0x164)+_0xf0b34c+_0x44297a(0x1b5)),_0x104f32=![]);});if(_0x378f50){await _0x4b2245[_0xde672f(0x155)](removeGridComponents,_0x5e2920,_0x46113e,_0x5f4ae5,_0x234beb,_0x5d56a4);if(_0x4ac30b['onlyGridInCluster']){const _0x30232f=await _0x2af435[_0xde672f(0x1d2)]();_0x30232f?_0x4b2245['TKNnW'](_0x4b2245[_0xde672f(0x165)],_0x4b2245['cfSWj'])?await _0x2af435['deleteCluster'](_0x5e2920,_0x3d7993[_0xde672f(0x15d)]):_0x326177[_0xde672f(0x1db)](_0xde672f(0x171)+_0x574bf2[_0xde672f(0x1e3)]+_0xde672f(0x195)):_0x4b2245[_0xde672f(0x1a1)](_0x4b2245[_0xde672f(0x1dc)],_0x4b2245[_0xde672f(0x1dc)])?_0x119bd2[_0xde672f(0x194)](_0xde672f(0x164)+_0x71bdc7+_0xde672f(0x1da)):logger[_0xde672f(0x1db)]('Cluster:\x20'+_0x3d7993[_0xde672f(0x1e3)]+_0xde672f(0x195));}}}else logger[_0xde672f(0x1db)](_0x4b2245[_0xde672f(0x173)]);const _0x4b62b8=_0xde672f(0x16f)+AG_API_URL+_0xde672f(0x1e7)+_0x3823c9[_0xde672f(0x1e5)],_0x29a90e={'method':_0x4b2245[_0xde672f(0x160)],'headers':_0x4b2245[_0xde672f(0x1c1)](getAuthHeader,_0x536382[_0xde672f(0x167)]['username'],_0x536382[_0xde672f(0x167)][_0xde672f(0x1a5)]),'throwHttpErrors':![]},_0x69466f=await _0x4b2245[_0xde672f(0x1c1)](got,_0x4b62b8,_0x29a90e);_0x4b2245['VMMPb'](_0x69466f,null)&&_0x4b2245[_0xde672f(0x1ca)](_0x69466f,undefined)&&_0x4b2245['EvIMi'](_0x69466f[_0xde672f(0x192)],0xc8)&&(logger[_0xde672f(0x194)](_0x4b2245[_0xde672f(0x198)]),process['exit'](0x0)),logger[_0xde672f(0x161)](_0xde672f(0x166)+_0x69466f['body']),await _0x4b2245[_0xde672f(0x15c)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x197)],_0xb0a723,_0x3823c9),process['exit'](0x1);}_0x4b2245[_0xde672f(0x154)](_0xb0a723[_0xde672f(0x192)],0x191)&&(logger['error'](_0x4b2245[_0xde672f(0x1c3)]),await _0x4b2245[_0xde672f(0x1d9)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x177)],null,_0x3823c9),process[_0xde672f(0x1e9)](0x1)),_0x4b2245[_0xde672f(0x188)](_0xb0a723[_0xde672f(0x192)],0x190)&&(logger[_0xde672f(0x161)](JSON[_0xde672f(0x1b8)](_0xb0a723[_0xde672f(0x1a4)])[_0xde672f(0x1ae)]),await _0x4b2245[_0xde672f(0x1e4)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x1a9)],null,_0x3823c9),process['exit'](0x1)),logger[_0xde672f(0x161)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0xde672f(0x1d4)](_0xb0a723)),await _0x4b2245[_0xde672f(0x15c)](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x197)],_0xb0a723,_0x3823c9),process['exit'](0x1);}catch(_0x372b59){logger[_0xde672f(0x161)](_0xde672f(0x19e)+_0x372b59['stack']),await _0x4b2245['zYbqJ'](sendInstrumentationEvent,_0x3823c9,_0x4b2245[_0xde672f(0x16d)],messageTypes[_0xde672f(0x1be)],_0x4b2245[_0xde672f(0x1c0)],_0x372b59,_0x3823c9),process[_0xde672f(0x1e9)](0x1);}};
|
|
1
|
+
const a11_0x1c2d7a=a11_0x4771;function a11_0x8199(){const _0x470c01=['lVZzp','stringify','../../config/constants','unauthorised','connectionTimeout','cCqsX','5199534jgkplV','DqcKb','skip-tls-cert-verify','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','info','JDhPW','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','3MnSkQB','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','../../config/logger','Delete\x20an\x20Automation\x20grid.','<PasswordPlaceholder>','cOoIw','INFO','zLtkb','CTNPW','bqftR','options','ERROR','UFyQy','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','handler','eNSJA','HIlJs','gridId','reconnecting-websocket','aPZty','\x22\x20with\x20ID\x20','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Namespace:\x20','default','DELETE','name','flRIF','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','init-not-called','../../utils/createk8sClient','FzFmX','boolean','atzbD','IGUAX','CcVWX','usage','argv','Pass\x20the\x20ID\x20of\x20the\x20Grid','bHjMX','3914440Mzonen','password','EEYWE','got','FCjRE','sKoou','description','existsSync','server-error','statusCode','clusterSpawnedVia','VMbDj','yGVnJ','<UsernamePlaceholder>','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Yygdl','body','1021300wAvQND','obLmO','16807960CiFOXK','replace','../../utils/instrumentationUtils','type','Bovnr','sXcWy','4314772ABDfrB','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','KvGuB','uuid','clusterRegion','yFvKN','region','iYtXP','onlyGridInCluster','ERyGC','Mnrla','\x22\x20and\x20ID\x20','Browserstack','string','vdxRV','warn','error','fHHUB','418270uagSkt','SWOgp','grid-id','delete','BWtVZ','1DoVcSQ','https://','delete-grid-called','Yrjsl','requestId','BGKUw','help','RBXFU','isBrowserstackCluster','zYkSZ','XaeMa','XkAha','hKJzc','bWovG','fHpro','UCjsr','pkqeP','Skip\x20insecure\x20cert\x20verification.','unknown-error','deleteCluster','BUXTD','exit','Gyceo','invalid-input','desc','jVdNt','Ccupy','../../utils/gridComponents','42dxHCTR','ZqQGz','../../utils/utilityMethods','then','parse','LrquH','clusterName','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','../../cloudproviders/utils','Ytqju','ijMCU','catch','clusterId','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','username','1935152tGiGpP','cloudProvider','CpTZk','wgQle','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'];a11_0x8199=function(){return _0x470c01;};return a11_0x8199();}(function(_0x35586c,_0x4a2ffd){const _0x3ac797=a11_0x4771,_0x285595=_0x35586c();while(!![]){try{const _0x404176=parseInt(_0x3ac797(0x101))/0x1*(parseInt(_0x3ac797(0xe2))/0x2)+-parseInt(_0x3ac797(0x13e))/0x3*(parseInt(_0x3ac797(0x12c))/0x4)+parseInt(_0x3ac797(0xfc))/0x5*(-parseInt(_0x3ac797(0x11d))/0x6)+-parseInt(_0x3ac797(0xea))/0x7+parseInt(_0x3ac797(0xd1))/0x8+-parseInt(_0x3ac797(0x137))/0x9+parseInt(_0x3ac797(0xe4))/0xa;if(_0x404176===_0x4a2ffd)break;else _0x285595['push'](_0x285595['shift']());}catch(_0x31ce0c){_0x285595['push'](_0x285595['shift']());}}}(a11_0x8199,0x65def));function a11_0x4771(_0x1059aa,_0x37dc0b){const _0x819967=a11_0x8199();return a11_0x4771=function(_0x4771c1,_0x3f3da2){_0x4771c1=_0x4771c1-0xc4;let _0x2203c0=_0x819967[_0x4771c1];return _0x2203c0;},a11_0x4771(_0x1059aa,_0x37dc0b);}const fs=require('fs'),got=require(a11_0x1c2d7a(0xd4)),{v4:uuidv4}=require(a11_0x1c2d7a(0xed)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x1c2d7a(0x150)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x1c2d7a(0x133)),{logger}=require(a11_0x1c2d7a(0x140)),{getCloudProviderObject}=require(a11_0x1c2d7a(0x125)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x1c2d7a(0x11c)),{sendInstrumentationEvent}=require(a11_0x1c2d7a(0xe6)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x1c2d7a(0xc7)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x1c2d7a(0x11f)),webSocketUtils=require('../../utils/webSocketUtils');exports['command']='grid',exports[a11_0x1c2d7a(0x119)]=a11_0x1c2d7a(0x141),exports['builder']=function(_0x38ddb3){const _0x23d1da=a11_0x1c2d7a,_0x4392dc={};_0x4392dc['hRowT']=_0x23d1da(0xcf),_0x4392dc[_0x23d1da(0xf1)]='string',_0x4392dc['Mnrla']=_0x23d1da(0x112),_0x4392dc[_0x23d1da(0x10f)]=_0x23d1da(0xc9),_0x4392dc[_0x23d1da(0xf8)]=_0x23d1da(0x107);const _0x1e7ac9=_0x4392dc,_0x3f3d1c={};_0x3f3d1c[_0x23d1da(0xd7)]=_0x1e7ac9['hRowT'],_0x3f3d1c['type']=_0x1e7ac9[_0x23d1da(0xf1)];const _0x1dc44c={};_0x1dc44c[_0x23d1da(0xd7)]=_0x1e7ac9[_0x23d1da(0xf4)],_0x1dc44c[_0x23d1da(0xe7)]=_0x1e7ac9[_0x23d1da(0x10f)],_0x1dc44c[_0x23d1da(0x155)]=![];const _0x164faf={};return _0x164faf[_0x23d1da(0xfe)]=_0x3f3d1c,_0x164faf[_0x23d1da(0x139)]=_0x1dc44c,_0x38ddb3[_0x23d1da(0xcd)](HELP_HEADER_MESSAGE[_0x23d1da(0xff)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x23d1da(0x148)](_0x164faf)[_0x23d1da(0x107)](_0x1e7ac9['vdxRV'])[_0x23d1da(0xce)];},exports[a11_0x1c2d7a(0x14c)]=async function(_0x59d233){const _0x4f0a48=a11_0x1c2d7a,_0x11ca85={'LrquH':'Successfully\x20deleted\x20the\x20grid','bWovG':'Pass\x20the\x20ID\x20of\x20the\x20Grid','uzYfP':_0x4f0a48(0xf7),'lVZzp':'Skip\x20insecure\x20cert\x20verification.','yGVnJ':_0x4f0a48(0xc9),'aPZty':_0x4f0a48(0x107),'RBXFU':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','mCwdR':function(_0x4b449d,_0x329616){return _0x4b449d!==_0x329616;},'nVlFN':_0x4f0a48(0xd3),'eNSJA':_0x4f0a48(0xd6),'UFyQy':_0x4f0a48(0x153),'Ytqju':function(_0x4feb2e,_0xa4329d){return _0x4feb2e!==_0xa4329d;},'zYkSZ':_0x4f0a48(0xe9),'hfXOO':_0x4f0a48(0x12f),'flRIF':function(_0x2c0e8c){return _0x2c0e8c();},'CTNPW':function(_0x195f03){return _0x195f03();},'hKJzc':function(_0x26830e,_0xcad45b){return _0x26830e===_0xcad45b;},'kIeUc':_0x4f0a48(0xca),'vRzPp':_0x4f0a48(0xc5),'JDhPW':function(_0x3ed2ef,_0x3dbb95,_0x20ab05,_0x4e0f20,_0x25d9a4,_0x53cf80,_0x4dfe86){return _0x3ed2ef(_0x3dbb95,_0x20ab05,_0x4e0f20,_0x25d9a4,_0x53cf80,_0x4dfe86);},'UCjsr':_0x4f0a48(0x103),'jVdNt':_0x4f0a48(0xc6),'cOoIw':'SfOpk','CcVWX':'eEAsi','bqftR':function(_0x2d5c36){return _0x2d5c36();},'uvxqj':function(_0x22653c,_0x539785,_0x185b82,_0x10af9f){return _0x22653c(_0x539785,_0x185b82,_0x10af9f);},'HIlJs':_0x4f0a48(0xf6),'pkqeP':'aAufJ','BWtVZ':'vPzsY','Gyceo':function(_0x5aadda,_0x1183cf){return _0x5aadda(_0x1183cf);},'Bovnr':function(_0x4f8b7b,_0x199e1a){return _0x4f8b7b===_0x199e1a;},'obLmO':function(_0x527bc7,_0x32433e){return _0x527bc7===_0x32433e;},'bHjMX':'aRBUr','FzFmX':_0x4f0a48(0x14b),'SWOgp':_0x4f0a48(0x118),'FCjRE':function(_0x5dc686,_0x35c1f9){return _0x5dc686===_0x35c1f9;},'ERyGC':function(_0x2ad3a1,_0x583db3){return _0x2ad3a1!==_0x583db3;},'ZqQGz':_0x4f0a48(0x12e),'XkAha':_0x4f0a48(0xfb),'cCqsX':_0x4f0a48(0xde),'yFvKN':_0x4f0a48(0x142),'DqcKb':function(_0x42f486,_0x3cb944){return _0x42f486(_0x3cb944);},'BUXTD':function(_0x507600,_0xbbe693,_0x179ff1){return _0x507600(_0xbbe693,_0x179ff1);},'Yygdl':function(_0x3341b9,_0x228468,_0x44d131,_0x2c6328,_0x4bbe14,_0x1c6909){return _0x3341b9(_0x228468,_0x44d131,_0x2c6328,_0x4bbe14,_0x1c6909);},'Yrjsl':_0x4f0a48(0xdc),'BGKUw':_0x4f0a48(0xcb),'CifSK':'lCPog','XaeMa':_0x4f0a48(0x156),'iZmOX':function(_0x300619,_0x284695,_0x1d3cff){return _0x300619(_0x284695,_0x1d3cff);},'Gdlqg':function(_0x495f40,_0x691d06){return _0x495f40!==_0x691d06;},'ijMCU':function(_0x326711,_0x524e10,_0x488845,_0x4da32d,_0x3c10ce,_0x445779,_0x3f7abe){return _0x326711(_0x524e10,_0x488845,_0x4da32d,_0x3c10ce,_0x445779,_0x3f7abe);},'KvGuB':_0x4f0a48(0xd9),'WrBdO':_0x4f0a48(0x13d),'bnlVx':_0x4f0a48(0x134),'iQzUc':function(_0x2d998f,_0x51637b,_0x531a68,_0x18c9dd,_0x14a0a1,_0x2223ea,_0x17dd2e){return _0x2d998f(_0x51637b,_0x531a68,_0x18c9dd,_0x14a0a1,_0x2223ea,_0x17dd2e);},'OBomI':'invalid-grid-id','Ccupy':function(_0x53c222,_0x50ce8e,_0x246424,_0x5486f5,_0x47387e,_0x5a14cc,_0x4221ad){return _0x53c222(_0x50ce8e,_0x246424,_0x5486f5,_0x47387e,_0x5a14cc,_0x4221ad);},'zLtkb':_0x4f0a48(0x113)};try{global_registry[_0x4f0a48(0x105)]=_0x11ca85[_0x4f0a48(0xc4)](uuidv4);!fs[_0x4f0a48(0xd8)](_0x11ca85[_0x4f0a48(0x146)](getCredentialsPath))&&(_0x11ca85[_0x4f0a48(0x10d)](_0x11ca85['kIeUc'],_0x11ca85['kIeUc'])?(console[_0x4f0a48(0xfa)](_0x11ca85['vRzPp']),await _0x11ca85[_0x4f0a48(0x13c)](sendInstrumentationEvent,_0x59d233,_0x11ca85[_0x4f0a48(0x110)],messageTypes['ERROR'],_0x11ca85[_0x4f0a48(0x11a)],null,_0x59d233),process[_0x4f0a48(0x116)](0x1)):(_0xb5678a[_0x4f0a48(0x13b)](_0x11ca85[_0x4f0a48(0x122)]),_0x30d449['exit'](0x0)));_0x11ca85[_0x4f0a48(0x13c)](sendInstrumentationEvent,_0x59d233,_0x11ca85[_0x4f0a48(0x110)],messageTypes[_0x4f0a48(0x144)],null,null,_0x59d233);!_0x59d233['gridId']&&(_0x11ca85['Ytqju'](_0x11ca85[_0x4f0a48(0x143)],_0x11ca85[_0x4f0a48(0xcc)])?(console[_0x4f0a48(0xfa)](_0x11ca85['UFyQy']),process[_0x4f0a48(0x116)](0x1)):_0x58bdb3='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x33f1a4['name']+'\x22\x20and\x20ID\x20'+_0xbb8481['id']+_0x4f0a48(0xdf)+_0x154e81[_0x4f0a48(0x123)]+_0x4f0a48(0x152)+_0x3b0a02[_0x4f0a48(0x129)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0x4d6db6=JSON[_0x4f0a48(0x121)](fs['readFileSync'](_0x11ca85[_0x4f0a48(0x147)](getCredentialsPath))),[_0x31d30d,_0x49ca9f]=await _0x11ca85['uvxqj'](getGridDetails,_0x4d6db6[_0x4f0a48(0xf6)]['username'],_0x4d6db6[_0x4f0a48(0xf6)][_0x4f0a48(0xd2)],_0x59d233[_0x4f0a48(0x14f)]);if(_0x49ca9f){const _0x27da5e=_0x49ca9f['info'];let _0x3310de=_0x4f0a48(0x13a)+_0x27da5e['name']+_0x4f0a48(0xf5)+_0x27da5e['id']+_0x4f0a48(0x13f);if(_0x49ca9f[_0x4f0a48(0xf2)]&&_0x11ca85[_0x4f0a48(0x10d)](_0x49ca9f[_0x4f0a48(0xdb)],_0x11ca85[_0x4f0a48(0x14e)])){if(_0x11ca85[_0x4f0a48(0x126)](_0x11ca85[_0x4f0a48(0x111)],_0x11ca85[_0x4f0a48(0x100)]))_0x3310de=_0x4f0a48(0x13a)+_0x27da5e['name']+_0x4f0a48(0xf5)+_0x27da5e['id']+_0x4f0a48(0xdf)+_0x27da5e[_0x4f0a48(0x123)]+_0x4f0a48(0x152)+_0x27da5e[_0x4f0a48(0x129)]+_0x4f0a48(0x13f);else{const _0x3740a5={};_0x3740a5[_0x4f0a48(0xd7)]=_0x11ca85[_0x4f0a48(0x10e)],_0x3740a5[_0x4f0a48(0xe7)]=_0x11ca85['uzYfP'];const _0xc45989={};_0xc45989[_0x4f0a48(0xd7)]=_0x11ca85[_0x4f0a48(0x131)],_0xc45989[_0x4f0a48(0xe7)]=_0x11ca85[_0x4f0a48(0xdd)],_0xc45989[_0x4f0a48(0x155)]=![];const _0x25967a={};return _0x25967a[_0x4f0a48(0xfe)]=_0x3740a5,_0x25967a['skip-tls-cert-verify']=_0xc45989,_0x5121bd[_0x4f0a48(0xcd)](_0x341f09[_0x4f0a48(0xff)])['epilogue'](_0x220cf3)['options'](_0x25967a)[_0x4f0a48(0x107)](_0x11ca85[_0x4f0a48(0x151)])[_0x4f0a48(0xce)];}}const _0x327b05=await _0x11ca85[_0x4f0a48(0x117)](inputConfirmation,_0x3310de);(_0x11ca85['hKJzc'](_0x327b05,undefined)||_0x11ca85[_0x4f0a48(0x10d)](_0x327b05,null)||!(_0x11ca85['hKJzc'](_0x327b05['toLowerCase'](),'y')||_0x11ca85[_0x4f0a48(0xe8)](_0x327b05['toLowerCase'](),'n')))&&(_0x11ca85[_0x4f0a48(0xe3)](_0x11ca85[_0x4f0a48(0xd0)],_0x11ca85[_0x4f0a48(0xd0)])?(console[_0x4f0a48(0xfa)](_0x11ca85[_0x4f0a48(0xc8)]),await _0x11ca85[_0x4f0a48(0x13c)](sendInstrumentationEvent,_0x59d233,_0x11ca85[_0x4f0a48(0x110)],messageTypes['ERROR'],_0x11ca85[_0x4f0a48(0xfd)],null,_0x59d233),process['exit'](0x1)):_0x4bcf41[_0x4f0a48(0xf9)]('Cluster:\x20'+_0x305902[_0x4f0a48(0x123)]+_0x4f0a48(0x124)));_0x11ca85[_0x4f0a48(0xd5)](_0x327b05['toLowerCase'](),'n')&&(_0x11ca85[_0x4f0a48(0xf3)](_0x11ca85[_0x4f0a48(0x11e)],_0x11ca85[_0x4f0a48(0x10c)])?process['exit'](0x0):_0x5ec894[_0x4f0a48(0xf9)](_0x11ca85[_0x4f0a48(0x108)]));const _0x507045=WS_ENDPOINT[_0x4f0a48(0xe5)](_0x11ca85[_0x4f0a48(0x136)],_0x4d6db6[_0x4f0a48(0xf6)][_0x4f0a48(0x12b)])[_0x4f0a48(0xe5)](_0x11ca85[_0x4f0a48(0xef)],_0x4d6db6[_0x4f0a48(0xf6)][_0x4f0a48(0xd2)]),_0x488266={};_0x488266['WebSocket']=ws,_0x488266[_0x4f0a48(0x135)]=0x36ee80;const _0x12dae5=new ReconnectingWebSocket(_0x507045,[],_0x488266);global_registry[_0x4f0a48(0xee)]=_0x27da5e[_0x4f0a48(0xf0)];const _0x32a4b4=_0x27da5e[_0x4f0a48(0x12d)],_0x8f856e=await _0x11ca85[_0x4f0a48(0x13c)](getCloudProviderObject,_0x32a4b4,_0x27da5e[_0x4f0a48(0x123)],_0x27da5e['name'],_0x12dae5,webSocketUtils,_0x59d233),_0x5dc844=await _0x8f856e['isClusterPresent']();if(_0x5dc844){const _0x410871=_0x11ca85[_0x4f0a48(0x138)](kebabCase,_0x27da5e[_0x4f0a48(0x157)]),[_0x5901e1,_0x5091cf,_0x374528,_0x3ef62f,_0x424c79,_0x50e498]=await _0x11ca85[_0x4f0a48(0x115)](createK8sClient,_0x8f856e,_0x59d233['skipTlsCertVerify']);let _0x2ee4b1=!![];const _0x10eb73={};_0x10eb73[_0x4f0a48(0x157)]=_0x410871,await _0x5901e1['readNamespace'](_0x10eb73)[_0x4f0a48(0x120)](_0x276994=>{const _0x4b42b4=_0x4f0a48;_0x11ca85['mCwdR'](_0x11ca85['nVlFN'],_0x11ca85[_0x4b42b4(0x14d)])?logger['info'](_0x4b42b4(0x154)+_0x410871+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):(_0x36994f[_0x4b42b4(0xf9)](_0x4b42b4(0x154)+_0x9716b9+_0x4b42b4(0x12a)),_0x108b61=![]);})[_0x4f0a48(0x128)](_0x363b0e=>{const _0x276236=_0x4f0a48;_0x11ca85[_0x276236(0x126)](_0x11ca85[_0x276236(0x10a)],_0x11ca85['hfXOO'])?(logger[_0x276236(0xf9)](_0x276236(0x154)+_0x410871+_0x276236(0x12a)),_0x2ee4b1=![]):(_0x57498f[_0x276236(0xfa)](_0x11ca85[_0x276236(0x14a)]),_0xe83a8a[_0x276236(0x116)](0x1));});if(_0x2ee4b1){await _0x11ca85[_0x4f0a48(0xe0)](removeGridComponents,_0x5901e1,_0x5091cf,_0x374528,_0x3ef62f,_0x410871);if(_0x49ca9f[_0x4f0a48(0xf2)]){const _0x521f59=await _0x8f856e[_0x4f0a48(0x109)]();_0x521f59?_0x11ca85[_0x4f0a48(0xf3)](_0x11ca85['Yrjsl'],_0x11ca85[_0x4f0a48(0x104)])?_0x4c145e[_0x4f0a48(0x13b)](_0x4f0a48(0x154)+_0x2cdd03+_0x4f0a48(0xeb)):await _0x8f856e[_0x4f0a48(0x114)](_0x5901e1,_0x27da5e[_0x4f0a48(0xf0)]):_0x11ca85[_0x4f0a48(0x126)](_0x11ca85[_0x4f0a48(0x106)],_0x11ca85['CifSK'])?logger[_0x4f0a48(0xf9)]('Cluster:\x20'+_0x27da5e['clusterName']+_0x4f0a48(0x124)):_0x300058[_0x4f0a48(0x116)](0x0);}}}else logger[_0x4f0a48(0xf9)](_0x11ca85[_0x4f0a48(0x108)]);const _0xf43bf2=_0x4f0a48(0x102)+AG_API_URL+'/packages/cli/grid/'+_0x59d233['gridId'],_0x2b776d={'method':_0x11ca85[_0x4f0a48(0x10b)],'headers':_0x11ca85[_0x4f0a48(0x115)](getAuthHeader,_0x4d6db6[_0x4f0a48(0xf6)]['username'],_0x4d6db6[_0x4f0a48(0xf6)][_0x4f0a48(0xd2)]),'throwHttpErrors':![]},_0x4b8b25=await _0x11ca85['iZmOX'](got,_0xf43bf2,_0x2b776d);_0x11ca85['Gdlqg'](_0x4b8b25,null)&&_0x11ca85[_0x4f0a48(0x126)](_0x4b8b25,undefined)&&_0x11ca85['obLmO'](_0x4b8b25[_0x4f0a48(0xda)],0xc8)&&(logger['info'](_0x11ca85[_0x4f0a48(0x122)]),process[_0x4f0a48(0x116)](0x0)),logger['error'](_0x4f0a48(0x130)+_0x4b8b25[_0x4f0a48(0xe1)]),await _0x11ca85['ijMCU'](sendInstrumentationEvent,_0x59d233,_0x11ca85[_0x4f0a48(0x110)],messageTypes[_0x4f0a48(0x149)],_0x11ca85[_0x4f0a48(0xec)],_0x31d30d,_0x59d233),process['exit'](0x1);}_0x11ca85[_0x4f0a48(0xd5)](_0x31d30d['statusCode'],0x191)&&(logger[_0x4f0a48(0xfa)](_0x11ca85['WrBdO']),await _0x11ca85['JDhPW'](sendInstrumentationEvent,_0x59d233,_0x11ca85[_0x4f0a48(0x110)],messageTypes['ERROR'],_0x11ca85['bnlVx'],null,_0x59d233),process['exit'](0x1)),_0x11ca85[_0x4f0a48(0x10d)](_0x31d30d['statusCode'],0x190)&&(logger[_0x4f0a48(0xfa)](JSON['parse'](_0x31d30d['body'])['message']),await _0x11ca85['iQzUc'](sendInstrumentationEvent,_0x59d233,_0x11ca85[_0x4f0a48(0x110)],messageTypes[_0x4f0a48(0x149)],_0x11ca85['OBomI'],null,_0x59d233),process[_0x4f0a48(0x116)](0x1)),logger[_0x4f0a48(0xfa)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4f0a48(0x132)](_0x31d30d)),await _0x11ca85[_0x4f0a48(0x127)](sendInstrumentationEvent,_0x59d233,_0x11ca85[_0x4f0a48(0x110)],messageTypes[_0x4f0a48(0x149)],_0x11ca85[_0x4f0a48(0xec)],_0x31d30d,_0x59d233),process['exit'](0x1);}catch(_0x130d67){logger[_0x4f0a48(0xfa)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x130d67['stack']),await _0x11ca85[_0x4f0a48(0x11b)](sendInstrumentationEvent,_0x59d233,_0x11ca85['UCjsr'],messageTypes['ERROR'],_0x11ca85[_0x4f0a48(0x145)],_0x130d67,_0x59d233),process['exit'](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x3efbb3=a12_0x2ceb;function a12_0x9acd(){const _0x53c072=['pUUlJ','CfUjV','zXDBm','bstack-accesskey','vhbLm','zqTbI','description','writeFileSync','uuid','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','usage','uzZDp','util','OqvFc','AdOSX','QoyhJ','exit','124506LKcswu','10nkGLVW','xnlUj','recommendCommands','npNyf','CVnWa','dDWyH','/automate/plan.json','wrong-creds','SSdrw','INFO','init-called','QuHGt','BROWSERSTACK_USERNAME','BROWSERSTACK_ACCESS_KEY','9285591YNZANR','handler','34572771EBnsoq','FvFCK','SHJqw','builder','options','355QoYExu','OQLnh','nPThm','4hdvRlk','stringify','Browserstack','3111448hnGQnA','XZLxU','EHSRE','bstackUsername','env','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ZQROI','https://','SadhN','oKkDk','../config/constants','mkdirSync','TBZRs','pTViD','ERROR','UhpRG','LHxRf','OapNm','JEQgu','mjiMy','../utils/instrumentationUtils','NZZjp','JVSEC','IYEKg','existsSync','string','epilogue','ZZtbF','pxSHt','IFdQz','readFileSync','strict','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','cHffz','bstackAccesskey','KfRQz','bstack-username','argv','username','JgYtG','kSDqO','type','rCccC','fsPcs','2799579qxXpHF','1074532GTkiFI','../utils/userInput','error','command','statusCode','help','stack','parse','REEVW','got','1041574pQzlEb','password','jpKbR','debug','OQLGF'];a12_0x9acd=function(){return _0x53c072;};return a12_0x9acd();}(function(_0x216e9a,_0x2c54e0){const _0x26b55a=a12_0x2ceb,_0x49a05f=_0x216e9a();while(!![]){try{const _0x54be63=-parseInt(_0x26b55a(0x200))/0x1+-parseInt(_0x26b55a(0x20a))/0x2+-parseInt(_0x26b55a(0x1ff))/0x3*(parseInt(_0x26b55a(0x1d0))/0x4)+parseInt(_0x26b55a(0x1cd))/0x5*(-parseInt(_0x26b55a(0x220))/0x6)+parseInt(_0x26b55a(0x1c6))/0x7+-parseInt(_0x26b55a(0x1d3))/0x8+parseInt(_0x26b55a(0x1c8))/0x9*(parseInt(_0x26b55a(0x221))/0xa);if(_0x54be63===_0x2c54e0)break;else _0x49a05f['push'](_0x49a05f['shift']());}catch(_0x17e1db){_0x49a05f['push'](_0x49a05f['shift']());}}}(a12_0x9acd,0xbdbd0));const fs=require('fs'),util=require(a12_0x3efbb3(0x21b)),got=require(a12_0x3efbb3(0x209)),{v4:uuidv4}=require(a12_0x3efbb3(0x217)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x3efbb3(0x201)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x3efbb3(0x1dd)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x3efbb3(0x1e7));function a12_0x2ceb(_0xba31dc,_0x52c27c){const _0x9acd29=a12_0x9acd();return a12_0x2ceb=function(_0x2cebeb,_0x1a18ae){_0x2cebeb=_0x2cebeb-0x1c5;let _0x100d70=_0x9acd29[_0x2cebeb];return _0x100d70;},a12_0x2ceb(_0xba31dc,_0x52c27c);}exports[a12_0x3efbb3(0x203)]='init',exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x3efbb3(0x1cb)]=function(_0x23958f){const _0x5a187b=a12_0x3efbb3,_0x2440ab={};_0x2440ab['FvFCK']=_0x5a187b(0x1d8),_0x2440ab[_0x5a187b(0x1f4)]=_0x5a187b(0x1ec),_0x2440ab['kSDqO']=_0x5a187b(0x218),_0x2440ab[_0x5a187b(0x1fd)]=_0x5a187b(0x205);const _0x4635b3=_0x2440ab,_0x4bd0b8={};_0x4bd0b8[_0x5a187b(0x215)]=_0x4635b3[_0x5a187b(0x1c9)],_0x4bd0b8[_0x5a187b(0x1fc)]=_0x4635b3['cHffz'];const _0x5299f3={};_0x5299f3['description']=_0x4635b3[_0x5a187b(0x1fb)],_0x5299f3[_0x5a187b(0x1fc)]=_0x4635b3[_0x5a187b(0x1f4)];const _0xa0ed33={};return _0xa0ed33['bstack-username']=_0x4bd0b8,_0xa0ed33[_0x5a187b(0x212)]=_0x5299f3,_0x23958f['usage'](HELP_HEADER_MESSAGE['init'])[_0x5a187b(0x1ed)](HELP_FOOTER_MESSAGE)[_0x5a187b(0x1cc)](_0xa0ed33)[_0x5a187b(0x223)]()[_0x5a187b(0x1f2)]()[_0x5a187b(0x205)](_0x4635b3[_0x5a187b(0x1fd)])[_0x5a187b(0x1f8)];},exports[a12_0x3efbb3(0x1c7)]=async function(_0x2bf9c5){const _0x1bc836=a12_0x3efbb3,_0x5421ac={'pxSHt':'utf-8','mjiMy':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','JgYtG':_0x1bc836(0x1ec),'NZZjp':_0x1bc836(0x218),'oKkDk':_0x1bc836(0x205),'REEVW':function(_0x5ed1b4){return _0x5ed1b4();},'IYEKg':function(_0x55339a,_0x2cf55d,_0x565967,_0x156f12,_0x51bee7,_0x23b6bb,_0x35afbe){return _0x55339a(_0x2cf55d,_0x565967,_0x156f12,_0x51bee7,_0x23b6bb,_0x35afbe);},'EHSRE':_0x1bc836(0x22b),'SHJqw':function(_0x3f5c5f,_0x34ee71){return _0x3f5c5f===_0x34ee71;},'pTViD':_0x1bc836(0x1df),'npNyf':function(_0x5c8189,_0x25ceea){return _0x5c8189!==_0x25ceea;},'zXDBm':_0x1bc836(0x1f6),'OQLnh':_0x1bc836(0x1d4),'ZZtbF':_0x1bc836(0x1e5),'pUUlJ':function(_0x326847,_0x4b033c){return _0x326847===_0x4b033c;},'UhpRG':_0x1bc836(0x1e9),'IFdQz':_0x1bc836(0x1e3),'dDWyH':function(_0x199b9c,_0x5560b2){return _0x199b9c===_0x5560b2;},'OQLGF':_0x1bc836(0x1db),'kbDjV':_0x1bc836(0x229),'fSxIf':_0x1bc836(0x1f3),'uzZDp':'GET','xnlUj':function(_0x924840,_0x331cd6,_0x237deb){return _0x924840(_0x331cd6,_0x237deb);},'nPThm':function(_0x473016,_0x371179){return _0x473016!==_0x371179;},'fsPcs':function(_0x36d8a9,_0x31a2c5){return _0x36d8a9!==_0x31a2c5;},'QuHGt':function(_0x1359a5,_0x192375){return _0x1359a5===_0x192375;},'OqvFc':_0x1bc836(0x21d),'vhbLm':_0x1bc836(0x21e),'CVnWa':function(_0x5575ef){return _0x5575ef();},'jpKbR':_0x1bc836(0x1e4),'CfUjV':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','zqTbI':_0x1bc836(0x228),'ZQROI':'unknown-error'};try{global_registry['requestId']=_0x5421ac['REEVW'](uuidv4),_0x5421ac[_0x1bc836(0x1ea)](sendInstrumentationEvent,_0x2bf9c5,_0x5421ac[_0x1bc836(0x1d5)],messageTypes[_0x1bc836(0x22a)],null,null,_0x2bf9c5);const _0x53ef57=_0x5421ac['REEVW'](getDirForConfig);!fs[_0x1bc836(0x1eb)](_0x53ef57)&&(_0x5421ac['SHJqw'](_0x5421ac[_0x1bc836(0x1e0)],_0x5421ac[_0x1bc836(0x1e0)])?fs[_0x1bc836(0x1de)](_0x53ef57):_0x2a3d17=_0x22e489[_0x1bc836(0x1d6)]);let _0x52fe84,_0x268e03;process[_0x1bc836(0x1d7)]['BROWSERSTACK_USERNAME']&&(_0x5421ac[_0x1bc836(0x224)](_0x5421ac[_0x1bc836(0x211)],_0x5421ac[_0x1bc836(0x211)])?_0x4ae486=_0x538bb3['parse'](_0x3d4c8b[_0x1bc836(0x1f1)](_0x5015aa,_0x5421ac[_0x1bc836(0x1ef)])):_0x52fe84=process[_0x1bc836(0x1d7)][_0x1bc836(0x22d)]);process['env'][_0x1bc836(0x1c5)]&&(_0x5421ac[_0x1bc836(0x224)](_0x5421ac[_0x1bc836(0x1ce)],_0x5421ac[_0x1bc836(0x1ce)])?_0xe79f4c=_0xf7e064[_0x1bc836(0x1d7)][_0x1bc836(0x22d)]:_0x268e03=process[_0x1bc836(0x1d7)]['BROWSERSTACK_ACCESS_KEY']);_0x2bf9c5[_0x1bc836(0x1d6)]&&(_0x5421ac[_0x1bc836(0x224)](_0x5421ac[_0x1bc836(0x1ee)],_0x5421ac[_0x1bc836(0x1ee)])?_0x2ee7da=_0x30e63e['bstackAccesskey']:_0x52fe84=_0x2bf9c5[_0x1bc836(0x1d6)]);if(_0x2bf9c5['bstackAccesskey']){if(_0x5421ac[_0x1bc836(0x20f)](_0x5421ac[_0x1bc836(0x1e2)],_0x5421ac[_0x1bc836(0x1f0)])){const _0x3405e9={};_0x3405e9[_0x1bc836(0x215)]=_0x5421ac[_0x1bc836(0x1e6)],_0x3405e9[_0x1bc836(0x1fc)]=_0x5421ac[_0x1bc836(0x1fa)];const _0x2221b1={};_0x2221b1[_0x1bc836(0x215)]=_0x5421ac[_0x1bc836(0x1e8)],_0x2221b1[_0x1bc836(0x1fc)]=_0x5421ac[_0x1bc836(0x1fa)];const _0x239146={};return _0x239146[_0x1bc836(0x1f7)]=_0x3405e9,_0x239146[_0x1bc836(0x212)]=_0x2221b1,_0x3978ee[_0x1bc836(0x219)](_0x1549c6['init'])['epilogue'](_0x4b2934)[_0x1bc836(0x1cc)](_0x239146)[_0x1bc836(0x223)]()[_0x1bc836(0x1f2)]()['help'](_0x5421ac[_0x1bc836(0x1dc)])[_0x1bc836(0x1f8)];}else _0x268e03=_0x2bf9c5[_0x1bc836(0x1f5)];}if(_0x5421ac[_0x1bc836(0x226)](_0x52fe84,undefined)||_0x5421ac[_0x1bc836(0x20f)](_0x268e03,undefined)){if(_0x5421ac[_0x1bc836(0x1ca)](_0x5421ac[_0x1bc836(0x20e)],_0x5421ac['kbDjV'])){let _0xfc9fb0={};const _0x3d63e5=_0x5421ac[_0x1bc836(0x208)](_0x106529);_0x35da3f[_0x1bc836(0x1eb)](_0x3d63e5)&&(_0xfc9fb0=_0x48ce90[_0x1bc836(0x207)](_0x52e90e[_0x1bc836(0x1f1)](_0x3d63e5,_0x5421ac['pxSHt'])));const _0x4be633={};_0x4be633['username']=_0x48ea1f,_0x4be633[_0x1bc836(0x20b)]=_0x9ab744,_0xfc9fb0[_0x1bc836(0x1d2)]=_0x4be633,_0x1d8de4[_0x1bc836(0x216)](_0x3d63e5,_0x543111[_0x1bc836(0x1d1)](_0xfc9fb0)),_0x2ba4d1[_0x1bc836(0x21f)](0x0);}else{logger[_0x1bc836(0x20d)](_0x5421ac['fSxIf']);const [_0x539e71,_0x12307c]=await _0x5421ac[_0x1bc836(0x208)](inputBstackKeys);_0x52fe84=_0x539e71,_0x268e03=_0x12307c;}}let _0x23890e=![];const _0x313da7=_0x1bc836(0x1da)+_0x52fe84+':'+_0x268e03+'@'+BS_API_URL+_0x1bc836(0x227),_0x47a964={'method':_0x5421ac[_0x1bc836(0x21a)],'headers':_0x5421ac[_0x1bc836(0x222)](getAuthHeader,_0x52fe84,_0x268e03),'throwHttpErrors':![]},_0x1a9f25=await _0x5421ac[_0x1bc836(0x222)](got,_0x313da7,_0x47a964);_0x5421ac[_0x1bc836(0x1cf)](_0x1a9f25,null)&&_0x5421ac[_0x1bc836(0x1fe)](_0x1a9f25,undefined)&&_0x5421ac[_0x1bc836(0x22c)](_0x1a9f25[_0x1bc836(0x204)],0xc8)&&(_0x5421ac[_0x1bc836(0x224)](_0x5421ac['OqvFc'],_0x5421ac[_0x1bc836(0x21c)])?_0x19dfad=!![]:_0x23890e=!![]);if(_0x23890e){if(_0x5421ac['dDWyH'](_0x5421ac[_0x1bc836(0x213)],_0x5421ac[_0x1bc836(0x213)])){let _0x4a6985={};const _0x36c34f=_0x5421ac[_0x1bc836(0x225)](getCredentialsPath);fs[_0x1bc836(0x1eb)](_0x36c34f)&&(_0x5421ac[_0x1bc836(0x1fe)](_0x5421ac[_0x1bc836(0x20c)],_0x5421ac[_0x1bc836(0x20c)])?_0x58bd7f=_0x5f5db4[_0x1bc836(0x1d7)]['BROWSERSTACK_ACCESS_KEY']:_0x4a6985=JSON[_0x1bc836(0x207)](fs[_0x1bc836(0x1f1)](_0x36c34f,_0x5421ac[_0x1bc836(0x1ef)])));const _0xdd106d={};_0xdd106d[_0x1bc836(0x1f9)]=_0x52fe84,_0xdd106d[_0x1bc836(0x20b)]=_0x268e03,_0x4a6985[_0x1bc836(0x1d2)]=_0xdd106d,fs[_0x1bc836(0x216)](_0x36c34f,JSON['stringify'](_0x4a6985)),process[_0x1bc836(0x21f)](0x0);}else _0x1e4a0a[_0x1bc836(0x1de)](_0x4d4b42);}else logger[_0x1bc836(0x202)](_0x5421ac[_0x1bc836(0x210)]),await _0x5421ac[_0x1bc836(0x1ea)](sendInstrumentationEvent,_0x2bf9c5,_0x5421ac[_0x1bc836(0x1d5)],messageTypes[_0x1bc836(0x1e1)],_0x5421ac[_0x1bc836(0x214)],null,_0x2bf9c5),process['exit'](0x1);}catch(_0x18eb45){logger[_0x1bc836(0x202)](_0x18eb45[_0x1bc836(0x206)]),await _0x5421ac[_0x1bc836(0x1ea)](sendInstrumentationEvent,_0x2bf9c5,_0x5421ac[_0x1bc836(0x1d5)],messageTypes[_0x1bc836(0x1e1)],_0x5421ac[_0x1bc836(0x1d9)],_0x18eb45,_0x2bf9c5),process[_0x1bc836(0x21f)](0x1);}};
|
|
1
|
+
function a12_0x4091(_0x3f7b9b,_0x27eb81){const _0x4f525b=a12_0x4f52();return a12_0x4091=function(_0x4091a7,_0x3f641f){_0x4091a7=_0x4091a7-0x152;let _0x42cbf9=_0x4f525b[_0x4091a7];return _0x42cbf9;},a12_0x4091(_0x3f7b9b,_0x27eb81);}function a12_0x4f52(){const _0x21b86d=['SVPGI','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','recommendCommands','existsSync','NNorJ','726ZlVAVs','55557QAfkLw','wsoIH','writeFileSync','bstackAccesskey','description','onSpm','Qxtig','options','phvVe','vqLxX','37HfcNkJ','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','wuaVa','https://','SlTlI','statusCode','kgiqQ','1264004ZwChWo','bcURv','password','jWHGw','YlBhV','GfhIr','358413EEMdWR','init-called','cKyij','ZMaKv','faODH','got','JXhKD','BrybP','pveZg','npLHq','error','exit','epilogue','string','yKzpb','stack','177824hGkXdl','9098hYpzjK','BNGkC','DcRPu','type','strict','870138MOuxJZ','peNYd','vlzVP','BROWSERSTACK_ACCESS_KEY','Alaji','XQTgr','7820EmAyvV','utf-8','Jpdwy','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstackUsername','uMJbu','init','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','taAjH','readFileSync','qGsja','help','SlctN','vTWKR','WAjKm','usage','medzh','WSEKb','50dNmNzd','bstack-username','rEiRR','builder','handler','stringify','QGqPi','BROWSERSTACK_USERNAME','argv','parse','yogOU','asbgF','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','MQxBc','desc','KmYvs','username','REZVJ','ERROR','AlEnE','bstack-accesskey','GET','../utils/instrumentationUtils','KwotV','env','util','INFO','20eIUyIp','Browserstack','MUBzQ','mkdirSync'];a12_0x4f52=function(){return _0x21b86d;};return a12_0x4f52();}const a12_0x403b95=a12_0x4091;(function(_0x30280a,_0x542a19){const _0x1a4f88=a12_0x4091,_0x2ffa0a=_0x30280a();while(!![]){try{const _0x33cb2b=parseInt(_0x1a4f88(0x156))/0x1*(parseInt(_0x1a4f88(0x174))/0x2)+parseInt(_0x1a4f88(0x1b6))/0x3*(-parseInt(_0x1a4f88(0x1ac))/0x4)+parseInt(_0x1a4f88(0x17f))/0x5*(parseInt(_0x1a4f88(0x1b5))/0x6)+-parseInt(_0x1a4f88(0x15d))/0x7+-parseInt(_0x1a4f88(0x173))/0x8+-parseInt(_0x1a4f88(0x179))/0x9+parseInt(_0x1a4f88(0x191))/0xa*(parseInt(_0x1a4f88(0x163))/0xb);if(_0x33cb2b===_0x542a19)break;else _0x2ffa0a['push'](_0x2ffa0a['shift']());}catch(_0x7cae9d){_0x2ffa0a['push'](_0x2ffa0a['shift']());}}}(a12_0x4f52,0x1f58b));const fs=require('fs'),util=require(a12_0x403b95(0x1aa)),got=require(a12_0x403b95(0x168)),{v4:uuidv4}=require('uuid'),{logger}=require('../config/logger'),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x403b95(0x1a7));exports['command']=a12_0x403b95(0x185),exports[a12_0x403b95(0x19f)]=a12_0x403b95(0x157),exports[a12_0x403b95(0x194)]=function(_0x26d0c2){const _0x4a246a=a12_0x403b95,_0xca58ce={};_0xca58ce[_0x4a246a(0x17a)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0xca58ce['bcURv']='string',_0xca58ce['vTWKR']=_0x4a246a(0x182),_0xca58ce[_0x4a246a(0x18b)]=_0x4a246a(0x18a);const _0x5556e5=_0xca58ce,_0x283d98={};_0x283d98[_0x4a246a(0x1ba)]=_0x5556e5[_0x4a246a(0x17a)],_0x283d98['type']=_0x5556e5[_0x4a246a(0x15e)];const _0x34e67f={};_0x34e67f[_0x4a246a(0x1ba)]=_0x5556e5[_0x4a246a(0x18c)],_0x34e67f[_0x4a246a(0x177)]=_0x5556e5['bcURv'];const _0xcdf5a3={};return _0xcdf5a3[_0x4a246a(0x192)]=_0x283d98,_0xcdf5a3[_0x4a246a(0x1a5)]=_0x34e67f,_0x26d0c2[_0x4a246a(0x18e)](HELP_HEADER_MESSAGE[_0x4a246a(0x185)])[_0x4a246a(0x16f)](HELP_FOOTER_MESSAGE)[_0x4a246a(0x153)](_0xcdf5a3)[_0x4a246a(0x1b2)]()[_0x4a246a(0x178)]()[_0x4a246a(0x18a)](_0x5556e5[_0x4a246a(0x18b)])[_0x4a246a(0x199)];},exports[a12_0x403b95(0x195)]=async function(_0x2c7f35){const _0x22c8a7=a12_0x403b95,_0x3b1a5d={'DhmWv':_0x22c8a7(0x1b1),'Jpdwy':_0x22c8a7(0x170),'EgbfB':_0x22c8a7(0x182),'MQxBc':_0x22c8a7(0x18a),'JXhKD':_0x22c8a7(0x180),'phvVe':function(_0x9152d2){return _0x9152d2();},'pveZg':function(_0xd376f,_0x52c3cb,_0x217d8d,_0x326550,_0x2017f8,_0x188f01,_0x52f5c8){return _0xd376f(_0x52c3cb,_0x217d8d,_0x326550,_0x2017f8,_0x188f01,_0x52f5c8);},'BrybP':_0x22c8a7(0x164),'SlTlI':function(_0x50df37){return _0x50df37();},'YlBhV':function(_0x1bcb89,_0xf0b68e){return _0x1bcb89!==_0xf0b68e;},'vlzVP':_0x22c8a7(0x152),'KmYvs':function(_0x1c51a8,_0x3d2f00){return _0x1c51a8!==_0x3d2f00;},'onSpm':_0x22c8a7(0x17e),'JIvPU':_0x22c8a7(0x166),'vqLxX':_0x22c8a7(0x1b4),'REZVJ':_0x22c8a7(0x18d),'uMJbu':_0x22c8a7(0x17d),'DcRPu':function(_0x55245b,_0x34e212){return _0x55245b===_0x34e212;},'npLHq':_0x22c8a7(0x1b7),'kgiqQ':function(_0x154b36,_0x2dfa87){return _0x154b36===_0x2dfa87;},'BNGkC':function(_0x2c9ad3,_0x3f6988){return _0x2c9ad3===_0x3f6988;},'rEiRR':_0x22c8a7(0x160),'MUBzQ':_0x22c8a7(0x19d),'SVPGI':function(_0x2cc7a3){return _0x2cc7a3();},'wuaVa':_0x22c8a7(0x1a6),'yKzpb':function(_0x425e4c,_0x4b60b9,_0x39ac1f){return _0x425e4c(_0x4b60b9,_0x39ac1f);},'QGqPi':function(_0x2ca78a,_0x120dc3){return _0x2ca78a===_0x120dc3;},'qGsja':_0x22c8a7(0x162),'AlEnE':_0x22c8a7(0x18f),'YsLhV':function(_0x31eabe,_0x1ebe8b){return _0x31eabe!==_0x1ebe8b;},'cKyij':_0x22c8a7(0x167),'asbgF':function(_0x323dc6,_0x35c894){return _0x323dc6===_0x35c894;},'KwotV':_0x22c8a7(0x19b),'WSEKb':_0x22c8a7(0x186),'ZwEib':'wrong-creds','taAjH':'unknown-error'};try{global_registry['requestId']=_0x3b1a5d['phvVe'](uuidv4),_0x3b1a5d[_0x22c8a7(0x16b)](sendInstrumentationEvent,_0x2c7f35,_0x3b1a5d[_0x22c8a7(0x16a)],messageTypes[_0x22c8a7(0x1ab)],null,null,_0x2c7f35);const _0x57e903=_0x3b1a5d['SlTlI'](getDirForConfig);!fs[_0x22c8a7(0x1b3)](_0x57e903)&&(_0x3b1a5d[_0x22c8a7(0x161)](_0x3b1a5d[_0x22c8a7(0x17b)],_0x3b1a5d[_0x22c8a7(0x17b)])?_0xd7b666=_0x1a0da5[_0x22c8a7(0x1a9)][_0x22c8a7(0x17c)]:fs['mkdirSync'](_0x57e903));let _0xe421b3,_0xf35c16;process['env']['BROWSERSTACK_USERNAME']&&(_0x3b1a5d[_0x22c8a7(0x1a0)](_0x3b1a5d[_0x22c8a7(0x1bb)],_0x3b1a5d[_0x22c8a7(0x1bb)])?_0x30f9b2=_0x53fd89[_0x22c8a7(0x1b9)]:_0xe421b3=process[_0x22c8a7(0x1a9)]['BROWSERSTACK_USERNAME']);process[_0x22c8a7(0x1a9)][_0x22c8a7(0x17c)]&&(_0x3b1a5d['KmYvs'](_0x3b1a5d['JIvPU'],_0x3b1a5d[_0x22c8a7(0x155)])?_0xf35c16=process[_0x22c8a7(0x1a9)]['BROWSERSTACK_ACCESS_KEY']:_0x32b7a6=!![]);_0x2c7f35[_0x22c8a7(0x183)]&&(_0x3b1a5d[_0x22c8a7(0x1a0)](_0x3b1a5d[_0x22c8a7(0x1a2)],_0x3b1a5d[_0x22c8a7(0x184)])?_0xe421b3=_0x2c7f35['bstackUsername']:_0x174579=_0x13d191[_0x22c8a7(0x1a9)][_0x22c8a7(0x198)]);_0x2c7f35['bstackAccesskey']&&(_0x3b1a5d[_0x22c8a7(0x176)](_0x3b1a5d[_0x22c8a7(0x16c)],_0x3b1a5d['npLHq'])?_0xf35c16=_0x2c7f35[_0x22c8a7(0x1b9)]:_0xbccc8d=_0x1279a5['bstackUsername']);if(_0x3b1a5d[_0x22c8a7(0x15c)](_0xe421b3,undefined)||_0x3b1a5d[_0x22c8a7(0x175)](_0xf35c16,undefined)){if(_0x3b1a5d[_0x22c8a7(0x1a0)](_0x3b1a5d[_0x22c8a7(0x193)],_0x3b1a5d[_0x22c8a7(0x193)])){const _0x266c02={};_0x266c02[_0x22c8a7(0x1ba)]=_0x3b1a5d['DhmWv'],_0x266c02[_0x22c8a7(0x177)]=_0x3b1a5d[_0x22c8a7(0x181)];const _0x3f9dfc={};_0x3f9dfc[_0x22c8a7(0x1ba)]=_0x3b1a5d['EgbfB'],_0x3f9dfc['type']=_0x3b1a5d['Jpdwy'];const _0xf2e15e={};return _0xf2e15e[_0x22c8a7(0x192)]=_0x266c02,_0xf2e15e[_0x22c8a7(0x1a5)]=_0x3f9dfc,_0x426da0[_0x22c8a7(0x18e)](_0x130c23[_0x22c8a7(0x185)])[_0x22c8a7(0x16f)](_0x661c74)['options'](_0xf2e15e)[_0x22c8a7(0x1b2)]()['strict']()[_0x22c8a7(0x18a)](_0x3b1a5d[_0x22c8a7(0x19e)])[_0x22c8a7(0x199)];}else{logger['debug'](_0x3b1a5d[_0x22c8a7(0x1ae)]);const [_0x1b23eb,_0x5827ff]=await _0x3b1a5d[_0x22c8a7(0x1b0)](inputBstackKeys);_0xe421b3=_0x1b23eb,_0xf35c16=_0x5827ff;}}let _0x52f761=![];const _0x1eb2c3=_0x22c8a7(0x159)+_0xe421b3+':'+_0xf35c16+'@'+BS_API_URL+'/automate/plan.json',_0x288484={'method':_0x3b1a5d[_0x22c8a7(0x158)],'headers':_0x3b1a5d[_0x22c8a7(0x171)](getAuthHeader,_0xe421b3,_0xf35c16),'throwHttpErrors':![]},_0x354dda=await _0x3b1a5d['yKzpb'](got,_0x1eb2c3,_0x288484);_0x3b1a5d[_0x22c8a7(0x161)](_0x354dda,null)&&_0x3b1a5d[_0x22c8a7(0x161)](_0x354dda,undefined)&&_0x3b1a5d[_0x22c8a7(0x197)](_0x354dda[_0x22c8a7(0x15b)],0xc8)&&(_0x3b1a5d[_0x22c8a7(0x161)](_0x3b1a5d[_0x22c8a7(0x189)],_0x3b1a5d[_0x22c8a7(0x1a4)])?_0x52f761=!![]:_0x3ee4de[_0x22c8a7(0x1af)](_0xd7cf));if(_0x52f761){if(_0x3b1a5d['YsLhV'](_0x3b1a5d[_0x22c8a7(0x165)],_0x3b1a5d['cKyij']))_0xf1c9b=_0x3ea6d1['parse'](_0x3c0767[_0x22c8a7(0x188)](_0x1c9d3c,_0x3b1a5d[_0x22c8a7(0x169)]));else{let _0x3fc616={};const _0x5ed121=_0x3b1a5d[_0x22c8a7(0x15a)](getCredentialsPath);if(fs[_0x22c8a7(0x1b3)](_0x5ed121)){if(_0x3b1a5d[_0x22c8a7(0x19c)](_0x3b1a5d[_0x22c8a7(0x1a8)],_0x3b1a5d[_0x22c8a7(0x1a8)]))_0x3fc616=JSON['parse'](fs[_0x22c8a7(0x188)](_0x5ed121,_0x3b1a5d['JXhKD']));else{let _0x1c297b={};const _0xf6ca19=_0x3b1a5d[_0x22c8a7(0x154)](_0x94905b);_0x211825[_0x22c8a7(0x1b3)](_0xf6ca19)&&(_0x1c297b=_0x3a8e73[_0x22c8a7(0x19a)](_0x55494b[_0x22c8a7(0x188)](_0xf6ca19,_0x3b1a5d['JXhKD'])));const _0x2070a2={};_0x2070a2[_0x22c8a7(0x1a1)]=_0x2748f4,_0x2070a2[_0x22c8a7(0x15f)]=_0x4d6bc7,_0x1c297b[_0x22c8a7(0x1ad)]=_0x2070a2,_0x15ecd4[_0x22c8a7(0x1b8)](_0xf6ca19,_0xcf552f[_0x22c8a7(0x196)](_0x1c297b)),_0x570192['exit'](0x0);}}const _0x3ef034={};_0x3ef034[_0x22c8a7(0x1a1)]=_0xe421b3,_0x3ef034[_0x22c8a7(0x15f)]=_0xf35c16,_0x3fc616['Browserstack']=_0x3ef034,fs[_0x22c8a7(0x1b8)](_0x5ed121,JSON[_0x22c8a7(0x196)](_0x3fc616)),process[_0x22c8a7(0x16e)](0x0);}}else logger[_0x22c8a7(0x16d)](_0x3b1a5d[_0x22c8a7(0x190)]),await _0x3b1a5d[_0x22c8a7(0x16b)](sendInstrumentationEvent,_0x2c7f35,_0x3b1a5d[_0x22c8a7(0x16a)],messageTypes['ERROR'],_0x3b1a5d['ZwEib'],null,_0x2c7f35),process['exit'](0x1);}catch(_0x5a3fd8){logger[_0x22c8a7(0x16d)](_0x5a3fd8[_0x22c8a7(0x172)]),await _0x3b1a5d['pveZg'](sendInstrumentationEvent,_0x2c7f35,_0x3b1a5d[_0x22c8a7(0x16a)],messageTypes[_0x22c8a7(0x1a3)],_0x3b1a5d[_0x22c8a7(0x187)],_0x5a3fd8,_0x2c7f35),process['exit'](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a13_0x305c(_0x1c129f,_0x1166d0){const _0x11ba6f=a13_0x11ba();return a13_0x305c=function(_0x305cf0,_0x705a3c){_0x305cf0=_0x305cf0-0x135;let _0x238181=_0x11ba6f[_0x305cf0];return _0x238181;},a13_0x305c(_0x1c129f,_0x1166d0);}const a13_0x544fc5=a13_0x305c;(function(_0xcd40ee,_0x1f9b93){const _0x18cba3=a13_0x305c,_0x4d96dc=_0xcd40ee();while(!![]){try{const _0x209a05=-parseInt(_0x18cba3(0x13b))/0x1+parseInt(_0x18cba3(0x144))/0x2+-parseInt(_0x18cba3(0x136))/0x3*(-parseInt(_0x18cba3(0x148))/0x4)+parseInt(_0x18cba3(0x147))/0x5*(parseInt(_0x18cba3(0x13a))/0x6)+parseInt(_0x18cba3(0x13d))/0x7*(-parseInt(_0x18cba3(0x13e))/0x8)+-parseInt(_0x18cba3(0x14c))/0x9+-parseInt(_0x18cba3(0x140))/0xa*(-parseInt(_0x18cba3(0x142))/0xb);if(_0x209a05===_0x1f9b93)break;else _0x4d96dc['push'](_0x4d96dc['shift']());}catch(_0x3d651c){_0x4d96dc['push'](_0x4d96dc['shift']());}}}(a13_0x11ba,0x30952));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a13_0x11ba(){const _0xba1720=['1826aSIieA','handler','725978MhoqOD','MGnuM','List\x20down\x20the\x20Grid\x20resources.','15EYrvSd','420HRvyFg','strict','list_commands','demandCommand','3262230awXmQa','root','help','1365hwDphx','vipJW','epilogue','builder','114750hQZEcq','250910SkWVVU','list','889hEnykG','2680uqIXlG','command','23300insvdz','usage'];a13_0x11ba=function(){return _0xba1720;};return a13_0x11ba();}exports[a13_0x544fc5(0x13f)]=a13_0x544fc5(0x13c),exports['desc']=a13_0x544fc5(0x146),exports[a13_0x544fc5(0x139)]=function(_0x30e936){const _0x2155f7=a13_0x544fc5,_0x3815eb={};_0x3815eb[_0x2155f7(0x145)]=_0x2155f7(0x14a),_0x3815eb[_0x2155f7(0x137)]=_0x2155f7(0x135);const _0x4f73db=_0x3815eb;return _0x30e936['commandDir'](_0x4f73db[_0x2155f7(0x145)])[_0x2155f7(0x14b)]()[_0x2155f7(0x141)](HELP_HEADER_MESSAGE[_0x2155f7(0x13c)][_0x2155f7(0x14d)])[_0x2155f7(0x138)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x2155f7(0x149)]()[_0x2155f7(0x135)](_0x4f73db[_0x2155f7(0x137)]);},exports[a13_0x544fc5(0x143)]=function(_0x54f037){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a14_0x4774aa=a14_0x6c16;function a14_0x58f1(){const _0x4cb3d8=['allGridProfiles','bODwF','pinpy','command','PPAzm','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','Browserstack','../../config/constants','cJgez','server-error','list','bstackUsername','concurrency','fGLfU','206530EQqObB','466884mTgKQc','lGVnW','bstackAccesskey','VGfIL','region','requestId','forEach','YZoAK','xAvdz','GNGxr','parse','anzVd','GET','options','24ztJZuo','statusCode','list-grid-profiles-called','all-grid-profiles','OncWn','hltJo','argv','QhOHD','iSgcD','unknown-error','type','exit','Failed\x20to\x20list\x20resources!\x20Error:\x20','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','7KCECoJ','got','usage','PHUXf','KLxLu','body','16YeraFI','ERROR','handler','iAwqw','INFO','LPWvJ','stack','grid-profile-name','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','849290RSXfIU','135czWmfO','password','log','1248665YYEMvw','error','tjFXC','unauthorised','cloudProvider','13198163plnRxU','OzPPK','description','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','RCwbM','https://','269889kPmPjW','mXlQP','name','../../utils/utilityMethods','stringify','GtpKH','epilogue','jwnRS','cloud-provider','998168vjoHVb'];a14_0x58f1=function(){return _0x4cb3d8;};return a14_0x58f1();}function a14_0x6c16(_0x79969e,_0x3e3be9){const _0x58f1a3=a14_0x58f1();return a14_0x6c16=function(_0x6c16fb,_0x32253a){_0x6c16fb=_0x6c16fb-0xc9;let _0x2c62d8=_0x58f1a3[_0x6c16fb];return _0x2c62d8;},a14_0x6c16(_0x79969e,_0x3e3be9);}(function(_0x33d17e,_0x18b11a){const _0x3e3d8e=a14_0x6c16,_0x172074=_0x33d17e();while(!![]){try{const _0x153bea=parseInt(_0x3e3d8e(0x111))/0x1+parseInt(_0x3e3d8e(0x112))/0x2+-parseInt(_0x3e3d8e(0xf9))/0x3*(parseInt(_0x3e3d8e(0xe1))/0x4)+parseInt(_0x3e3d8e(0xee))/0x5*(parseInt(_0x3e3d8e(0xcd))/0x6)+parseInt(_0x3e3d8e(0xdb))/0x7*(-parseInt(_0x3e3d8e(0x102))/0x8)+-parseInt(_0x3e3d8e(0xeb))/0x9*(parseInt(_0x3e3d8e(0xea))/0xa)+parseInt(_0x3e3d8e(0xf3))/0xb;if(_0x153bea===_0x18b11a)break;else _0x172074['push'](_0x172074['shift']());}catch(_0x11cf33){_0x172074['push'](_0x172074['shift']());}}}(a14_0x58f1,0xd6e33));const fs=require('fs'),got=require(a14_0x4774aa(0xdc)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x4774aa(0x10a)),{getCredentialsPath,getAuthHeader}=require(a14_0x4774aa(0xfc)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x4774aa(0x106)]='grid-profiles',exports['desc']='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x3d6293){const _0x574578=a14_0x4774aa,_0x5935f2={};_0x5935f2[_0x574578(0x104)]=_0x574578(0xda),_0x5935f2[_0x574578(0xf0)]='boolean',_0x5935f2[_0x574578(0xfa)]='help';const _0x32ddb1=_0x5935f2,_0x3e8832={};_0x3e8832[_0x574578(0xf5)]=_0x32ddb1[_0x574578(0x104)],_0x3e8832[_0x574578(0xd7)]=_0x32ddb1[_0x574578(0xf0)];const _0x447a54={};return _0x447a54[_0x574578(0xd0)]=_0x3e8832,_0x3d6293[_0x574578(0xdd)](HELP_HEADER_MESSAGE[_0x574578(0x10d)]['gridProfile'])[_0x574578(0xff)](HELP_FOOTER_MESSAGE)[_0x574578(0xcc)](_0x447a54)['help'](_0x32ddb1['mXlQP'])[_0x574578(0xd3)];},exports[a14_0x4774aa(0xe3)]=async function(_0x2ed172){const _0x4125dc=a14_0x4774aa,_0x30c4e5={'KLxLu':function(_0x2e254f){return _0x2e254f();},'lGVnW':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','pinpy':function(_0x133b02,_0x4a8223,_0x2107fa,_0x287351,_0x729180,_0x16b1cd,_0x364fd8){return _0x133b02(_0x4a8223,_0x2107fa,_0x287351,_0x729180,_0x16b1cd,_0x364fd8);},'iSgcD':_0x4125dc(0xcf),'GtpKH':'init-not-called','iAwqw':function(_0x2847fe){return _0x2847fe();},'jwnRS':_0x4125dc(0xcb),'OzPPK':function(_0x1bb00e,_0xef286a,_0x3d4755){return _0x1bb00e(_0xef286a,_0x3d4755);},'hltJo':function(_0x5b889f,_0x677a11){return _0x5b889f!==_0x677a11;},'PPAzm':function(_0x2b58f6,_0x5025d2){return _0x2b58f6!==_0x5025d2;},'VGfIL':function(_0x56868d,_0x5d9948){return _0x56868d===_0x5d9948;},'xAvdz':_0x4125dc(0x108),'YZoAK':_0x4125dc(0xe8),'RCwbM':_0x4125dc(0x101),'KJNOV':'region','LPWvJ':_0x4125dc(0x10f),'GNGxr':function(_0xa3c6d9,_0xafac03){return _0xa3c6d9(_0xafac03);},'QhOHD':function(_0x549077,_0x436a07){return _0x549077===_0x436a07;},'cJgez':_0x4125dc(0xf6),'OncWn':function(_0x2c293e,_0x366403,_0x3ca8b2,_0x1ef16a,_0x1378b0,_0xa57ae8,_0x565e92){return _0x2c293e(_0x366403,_0x3ca8b2,_0x1ef16a,_0x1378b0,_0xa57ae8,_0x565e92);},'tgdbh':_0x4125dc(0xf1),'PHUXf':_0x4125dc(0x10c),'fGLfU':function(_0x16b3a5,_0x33437e,_0x4ce05c,_0x3f7b30,_0x18fc61,_0x137cec,_0x42f485){return _0x16b3a5(_0x33437e,_0x4ce05c,_0x3f7b30,_0x18fc61,_0x137cec,_0x42f485);},'anzVd':_0x4125dc(0xd6)};try{global_registry[_0x4125dc(0x117)]=_0x30c4e5[_0x4125dc(0xdf)](uuidv4);let _0x534676='https://'+AG_API_URL+'/packages/cli/get-grid-profiles';_0x2ed172[_0x4125dc(0x103)]&&(_0x534676=_0x4125dc(0xf8)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs['existsSync'](_0x30c4e5[_0x4125dc(0xdf)](getCredentialsPath))&&(console[_0x4125dc(0xef)](_0x30c4e5[_0x4125dc(0x113)]),await _0x30c4e5[_0x4125dc(0x105)](sendInstrumentationEvent,_0x2ed172,_0x30c4e5[_0x4125dc(0xd5)],messageTypes[_0x4125dc(0xe2)],_0x30c4e5[_0x4125dc(0xfe)],null,_0x2ed172),process['exit'](0x1));const _0x43e7f3=JSON['parse'](fs['readFileSync'](_0x30c4e5[_0x4125dc(0xe4)](getCredentialsPath))),_0x2e1eea={'method':_0x30c4e5[_0x4125dc(0x100)],'headers':_0x30c4e5[_0x4125dc(0xf4)](getAuthHeader,_0x43e7f3[_0x4125dc(0x109)]['username'],_0x43e7f3['Browserstack'][_0x4125dc(0xec)]),'throwHttpErrors':![]};global_registry[_0x4125dc(0x10e)]=_0x43e7f3[_0x4125dc(0x109)]['username'],global_registry[_0x4125dc(0x114)]=_0x43e7f3[_0x4125dc(0x109)][_0x4125dc(0xec)],_0x30c4e5[_0x4125dc(0x105)](sendInstrumentationEvent,_0x2ed172,_0x30c4e5['iSgcD'],messageTypes[_0x4125dc(0xe5)],null,null,_0x2ed172);const _0x26d124=await _0x30c4e5[_0x4125dc(0xf4)](got,_0x534676,_0x2e1eea);if(_0x30c4e5[_0x4125dc(0xd2)](_0x26d124,null)&&_0x30c4e5[_0x4125dc(0x107)](_0x26d124,undefined)&&_0x30c4e5[_0x4125dc(0x115)](_0x26d124['statusCode'],0xc8)){const _0x2771e8=JSON[_0x4125dc(0xc9)](_0x26d124[_0x4125dc(0xe0)]);console[_0x4125dc(0xed)](_0x30c4e5[_0x4125dc(0x11a)]);const _0x14609f=[];_0x14609f['push']([_0x30c4e5[_0x4125dc(0x119)],_0x30c4e5[_0x4125dc(0xf7)],_0x30c4e5['KJNOV'],_0x30c4e5[_0x4125dc(0xe6)]]),_0x2771e8[_0x4125dc(0x118)](_0x3919cd=>{const _0x35e839=_0x4125dc;_0x14609f['push']([_0x3919cd[_0x35e839(0xfb)],_0x3919cd[_0x35e839(0xf2)],_0x3919cd[_0x35e839(0x116)],_0x3919cd[_0x35e839(0x10f)]]);}),console[_0x4125dc(0xed)](_0x30c4e5[_0x4125dc(0x11b)](table,_0x14609f)),process[_0x4125dc(0xd8)](0x0);}_0x30c4e5[_0x4125dc(0xd4)](_0x26d124[_0x4125dc(0xce)],0x191)&&(console[_0x4125dc(0xef)](_0x30c4e5[_0x4125dc(0x10b)]),await _0x30c4e5[_0x4125dc(0xd1)](sendInstrumentationEvent,_0x2ed172,_0x30c4e5[_0x4125dc(0xd5)],messageTypes[_0x4125dc(0xe2)],_0x30c4e5['tgdbh'],null,_0x2ed172),process[_0x4125dc(0xd8)](0x1)),console['error'](_0x4125dc(0xe9)+JSON[_0x4125dc(0xfd)](_0x26d124)),await _0x30c4e5['pinpy'](sendInstrumentationEvent,_0x2ed172,_0x30c4e5[_0x4125dc(0xd5)],messageTypes[_0x4125dc(0xe2)],_0x30c4e5[_0x4125dc(0xde)],_0x26d124,_0x2ed172),process[_0x4125dc(0xd8)](0x1);}catch(_0xa295a9){console[_0x4125dc(0xef)](_0x4125dc(0xd9)+_0xa295a9[_0x4125dc(0xe7)]),await _0x30c4e5[_0x4125dc(0x110)](sendInstrumentationEvent,_0x2ed172,_0x30c4e5[_0x4125dc(0xd5)],messageTypes[_0x4125dc(0xe2)],_0x30c4e5[_0x4125dc(0xca)],_0xa295a9,_0x2ed172),process[_0x4125dc(0xd8)](0x1);}};
|