browserstack-node-sdk 1.35.4 → 1.35.5
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 +60 -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/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0xaed964=a9_0x3bf8;function a9_0x3bf8(_0xb9d742,_0x2b7ae0){const _0x3ef6cb=a9_0x3ef6();return a9_0x3bf8=function(_0x3bf860,_0x261278){_0x3bf860=_0x3bf860-0x1bd;let _0x3fbb5c=_0x3ef6cb[_0x3bf860];return _0x3fbb5c;},a9_0x3bf8(_0xb9d742,_0x2b7ae0);}(function(_0x2f567f,_0x31792c){const _0x5ea02d=a9_0x3bf8,_0x300324=_0x2f567f();while(!![]){try{const _0x2cee15=parseInt(_0x5ea02d(0x268))/0x1*(-parseInt(_0x5ea02d(0x25f))/0x2)+parseInt(_0x5ea02d(0x2d8))/0x3*(-parseInt(_0x5ea02d(0x1dc))/0x4)+-parseInt(_0x5ea02d(0x24a))/0x5+parseInt(_0x5ea02d(0x22c))/0x6*(-parseInt(_0x5ea02d(0x34f))/0x7)+-parseInt(_0x5ea02d(0x29f))/0x8+parseInt(_0x5ea02d(0x1ca))/0x9+parseInt(_0x5ea02d(0x1de))/0xa;if(_0x2cee15===_0x31792c)break;else _0x300324['push'](_0x300324['shift']());}catch(_0x4580d9){_0x300324['push'](_0x300324['shift']());}}}(a9_0x3ef6,0xd6aab));const fs=require('fs'),ws=require('ws'),path=require(a9_0xaed964(0x1e1)),yaml=require('js-yaml'),ReconnectingWebSocket=require(a9_0xaed964(0x227)),got=require(a9_0xaed964(0x35a)),{v4:uuidv4}=require(a9_0xaed964(0x1ef)),webSocketUtils=require(a9_0xaed964(0x296)),{logger}=require(a9_0xaed964(0x293)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0xaed964(0x294)),{getCloudProviderObject}=require(a9_0xaed964(0x32a)),{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_0xaed964(0x2de)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0xaed964(0x2a1)),{createK8sClient}=require(a9_0xaed964(0x2bc)),{sendInstrumentationEvent}=require(a9_0xaed964(0x34a));function a9_0x3ef6(){const _0x36f981=['pqYdz','PbwSv','rwpth','Grid\x20spawned\x20on\x20the\x20cluster','uMtiU','CjfGS','ERROR','CNeul','bstackUsername','pQRpN','non-aws-azure-cluster','lljuI','EYXTw','error','sBsUk','Create\x20a\x20new\x20Automation\x20grid.','QuOGi','https','ZxSBZ','\x27\x20grid\x20profile','rOeVI','updateClusterAlreadyPresent','nrSaa','uploaderVersion','jDezN','CLI_RUN_STARTED','vajAG','ndyCA','Found\x20VPC:\x20','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','qAzgg','HtDSY','bstackAccesskey','NSPWC','delay','hub-ha','KdqCs','UkRNzNYCBU','MmXhm','create-grid-checks-invalid-profile','fHdNe','oFdor','labels','INFO','CLI\x20run\x20finished:\x20','sAmOf','sALDz','0|1|4|2|3','txMLG','sBYmO','vpc','CnmAN','https://','Found\x20Subnets:\x20','Cluster:\x20','ffODV','create','eruhp','0|1|3|2|4','metadata','KpNEg','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','qaYed','ffWEm','../../cloudproviders/utils','warn','OwSUD','gealr','cBuZU','epilogue','Skip\x20insecure\x20cert\x20verification.','EsrqP','HFWsF','HQjBK','XbhRA','Create\x20a\x20private/public\x20grid.','NudPT','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Bjigp','URJbI','cluster-name','zETHY','jkJad','skipTlsCertVerify','serviceAccountName','ingress-nginx','jEBja','2|7|6|1|3|5|0|4|8','get-grid-url-non-200','jTTdN','Pfbpe','hubVersion','azurefile-csi-premium','LOxOM','JXAtN','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.','../../utils/instrumentationUtils','jlotG','eHxCv','KBKoT','replace','609bFttIx','pre-spawned-invalid-vpc','minNodes','KfvJP','stack','boolean','loadAll','Spawning\x20the\x20grid\x20','sendResourceDataToHST','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','ngyMM','got','cloudProvider','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','statusCode','cFvkS','FTQJs','get-grid-url-auth-failed','namespace','EmdpB','browserVersion','hub-ha-deployments-failed','GvDlz','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WkQdx','uviNU','split','QqqiF','qLFCC','ENSxa','default','region','jHEXK','DSxLu','Added\x20Kafka\x20deployment.','deleteCluster','zqRFv','SGGqX','njFOf','kxpgd','MOQIk','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','7460748afMtYL','newCluster','clusterRegion','username','argv','message','\x20in\x20existing\x20cluster\x20\x27','Xzvre','kSYJg','jrSun','cuSwS','ErPJD','LgrPU','UWwRS','2|0|3|1|4','turboscale-uploader.yaml','hubharesources','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','188ZKXaRx','hubHa','41603480eEbQFL','fpXWR','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','path','hubHaNameSpace','nMnvp','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','password','LcdXQ','oWkfY','create-grid-checks-auth-failed','join','Adding\x20Redis\x20deployment...','rgwUf','xYRRQ','GnUdc','browserstack','uuid','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','usage','CNDdt','cnNia','gWvyq','qGREX','oNUzS','type','s3bucket','LVEaB','eDlBH','kBfCP','/packages/cli/get-grid-url?gridIdentifier=','qihhe','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','concurrency','Flag\x20to\x20enable\x20Hub\x20HA','uTeuB','oYovj','spec','QwDEk','defaultGridProfile','dGNsV','nfxXH','GTsnA','body','grid-profile','jzxMQ','xvrmf','aGrkA','privateGrid','FQmwV','ISnQd','oLHQi','Cluster\x20created\x20successfully','kafkaUploader','parse','CeKcV','gXInY','yQLBP','sppaJ','hetQx','tHZJK','ENrLT','NoqXk','EmaOw','OwsXw','CWDPR','wsfoR','FFCdx','sMmne','Qqwcm','VodOT','xWSNi','XxcEC','reconnecting-websocket','gridProfiles','help','clusterName','XIriM','12006RYwrjl','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','YUlEl','length','redisPassword','Added\x20Turboscale\x20Uploader\x20deployment.','10|6|14|13|5|7|12|11|2|1|8|4|0|9|3|15','gridProfile','getResourceClientId','Adding\x20Websocket\x20listeners','gridName','LOG','LTdzG','prespawned-cluster-args-not-passed','thAbH','enableHubHa','Cluster\x20','Dkweh','VlxXd','Grid\x20can\x20be\x20accessed\x20at:\x20','isPrivateGrid','sJxHM','connectionTimeout','Namespace\x20Created','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','options','managedBy','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','<PasswordPlaceholder>','5649425wIvFcD','cloud-provider','INaSp','HCoCX','createdBy','xWGam','skip-tls-cert-verify','rmhRn','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','HQjIp','wfZyg','string','xEGoS','handler','true','aKlEf','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','uatwH','KWOWu','AhKQA','zFsTM','4772slOlEq','GJwjZ','info','UWQXI','bFftg','maxNodes','create-grid-checks-null-response','readFileAsync','Spawning\x20Grid\x20on\x20the\x20Cluster','652ciWDPj','njjzT','1|5|4|6|2|7|0|8|3','isSubnetsValid','Browserstack','desc','zHrVK','pFEFw','jhlgd','Adding\x20Turboscale\x20Uploader\x20deployment...','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','stringify','Enabling\x20Hub\x20HA\x20flow','CLI_RUN_FINISHED','bfVqP','SrQdO','grid-name','Epyd5nXbRK','zSapo','://','readNamespacedService','createOtherResources','TqOvU','idszV','MrcfC','xiKuJ','ZafRT','bitnami-redis.yaml','JJUJW','YPUYn','kLJfi','Fvexy','Creating\x20Hub\x20HA\x20resources','toLowerCase','IIOAV','builder','init-not-called','OQQHJ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','NbZJN','RthWm','amrrA','command','../../config/logger','../../utils/utilityMethods','Spawning\x20grid\x20on\x20to\x20the\x20cluster','../../utils/webSocketUtils','sendEventToBackend','Hub\x20HA\x20setup\x20completed\x20successfully.','GztHa','includes','PqjLS','TougW','KgWkh','sBCCG','7775032BdwVzi','3|4|0|1|2','../../utils/gridComponents','grid-spawning-failed','ingress-nginx-controller','description','ikoau','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','ppqhf','yUDVO','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','mwPim','instanceType','utf-8','readFileSync','ulSIh','MQYSB','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','BHBSk','qGXit','templates','CZPWb','pre-spawned-subnets-not-selected','ZaVZX','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','FxWME','eUegx','gEfZT','QuKlV','../../utils/createk8sClient','FRGnQ','pre-spawned-invalid-subnets','WebSocket','isVPCPresent','Added\x20Secret\x20Mapping','premium-rwo','iAWik','zvBKR','/wd/hub','rHdxR','zxHpo','tHdYj','LYGNb','OBHzo','efs-csi','UkYRT','cihWG','RKhGy','/packages/cli/create-grid-checks','Will\x20be\x20spawning\x20the\x20grid\x20','alreadyPresent','JKpvZ','Added\x20Redis\x20deployment.','Oywol','../..','AICnQ','private-grid','17778YuJeCM','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','atjyr','exit','template','UPdAU','../../config/constants','route53','lShZN','hFibp','kafkaPassword','CmzNo','nQXdU','grid','isClusterPresent','create-grid-called','gZTos'];a9_0x3ef6=function(){return _0x36f981;};return a9_0x3ef6();}exports[a9_0xaed964(0x292)]=a9_0xaed964(0x2e5),exports[a9_0xaed964(0x26d)]=a9_0xaed964(0x2f8),exports[a9_0xaed964(0x28b)]=function(_0x50fd23){const _0x164479=a9_0xaed964,_0x41ae40={};_0x41ae40[_0x164479(0x2ca)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x41ae40[_0x164479(0x22b)]='string',_0x41ae40[_0x164479(0x256)]=_0x164479(0x2d9),_0x41ae40['ppqhf']=_0x164479(0x337),_0x41ae40['rHdxR']=_0x164479(0x252),_0x41ae40['hFibp']=_0x164479(0x35c),_0x41ae40[_0x164479(0x2d4)]='Create\x20a\x20private/public\x20grid.',_0x41ae40[_0x164479(0x304)]=_0x164479(0x330),_0x41ae40[_0x164479(0x2c8)]=_0x164479(0x354),_0x41ae40[_0x164479(0x331)]='Flag\x20to\x20enable\x20Hub\x20HA',_0x41ae40[_0x164479(0x290)]=_0x164479(0x229);const _0x4a8398=_0x41ae40,_0x2787f1={};_0x2787f1[_0x164479(0x2a4)]=_0x4a8398[_0x164479(0x2ca)],_0x2787f1[_0x164479(0x1f7)]=_0x4a8398[_0x164479(0x22b)];const _0x493d80={};_0x493d80[_0x164479(0x2a4)]=_0x4a8398[_0x164479(0x256)],_0x493d80['type']=_0x4a8398[_0x164479(0x22b)];const _0x4df36e={};_0x4df36e[_0x164479(0x2a4)]=_0x4a8398[_0x164479(0x2a7)],_0x4df36e[_0x164479(0x1f7)]=_0x4a8398[_0x164479(0x22b)];const _0x44e650={};_0x44e650[_0x164479(0x2a4)]=_0x4a8398[_0x164479(0x2c6)],_0x44e650['type']=_0x4a8398[_0x164479(0x22b)];const _0x1458ef={};_0x1458ef[_0x164479(0x2a4)]=_0x4a8398[_0x164479(0x2e1)],_0x1458ef[_0x164479(0x1f7)]=_0x4a8398[_0x164479(0x22b)];const _0x3e0c07={};_0x3e0c07[_0x164479(0x2a4)]=_0x4a8398['Oywol'],_0x3e0c07[_0x164479(0x1f7)]=_0x4a8398[_0x164479(0x22b)];const _0x46777b={};_0x46777b[_0x164479(0x2a4)]=_0x4a8398[_0x164479(0x304)],_0x46777b['type']=_0x4a8398[_0x164479(0x2c8)],_0x46777b[_0x164479(0x1be)]=![];const _0x3fad30={};_0x3fad30[_0x164479(0x2a4)]=_0x4a8398[_0x164479(0x331)],_0x3fad30[_0x164479(0x1f7)]=_0x4a8398[_0x164479(0x2c8)],_0x3fad30['default']=![];const _0x14ac58={};return _0x14ac58[_0x164479(0x278)]=_0x2787f1,_0x14ac58[_0x164479(0x20a)]=_0x493d80,_0x14ac58[_0x164479(0x33a)]=_0x4df36e,_0x14ac58[_0x164479(0x24b)]=_0x44e650,_0x14ac58[_0x164479(0x1bf)]=_0x1458ef,_0x14ac58['private-grid']=_0x3e0c07,_0x14ac58[_0x164479(0x250)]=_0x46777b,_0x14ac58[_0x164479(0x30d)]=_0x3fad30,_0x50fd23[_0x164479(0x1f1)](HELP_HEADER_MESSAGE[_0x164479(0x322)])[_0x164479(0x32f)](HELP_FOOTER_MESSAGE)[_0x164479(0x245)](_0x14ac58)[_0x164479(0x229)](_0x4a8398['RthWm'])['argv'];},exports[a9_0xaed964(0x257)]=async function(_0x380b04){const _0x3fc2a9=a9_0xaed964,_0x3259f1={'LgrPU':_0x3fc2a9(0x2f6),'zETHY':function(_0x241c5e,_0x564e68){return _0x241c5e(_0x564e68);},'QhZCw':_0x3fc2a9(0x341),'njFOf':'CLI\x20run\x20started','aGrkA':_0x3fc2a9(0x232),'FQmwV':function(_0x5d028e,_0x9a7311,_0x1f40f8,_0x2088c0,_0x424e92,_0x12decf,_0x1f8672,_0x1880d4,_0x36be69,_0x131e04,_0x34aa39,_0x34aa5a){return _0x5d028e(_0x9a7311,_0x1f40f8,_0x2088c0,_0x424e92,_0x12decf,_0x1f8672,_0x1880d4,_0x36be69,_0x131e04,_0x34aa39,_0x34aa5a);},'KpNEg':function(_0x4c6d71,_0x13979d){return _0x4c6d71!==_0x13979d;},'zHrVK':function(_0x3d1101,_0x4413eb){return _0x3d1101(_0x4413eb);},'nthDn':_0x3fc2a9(0x248),'zFsTM':_0x3fc2a9(0x255),'PdzAc':_0x3fc2a9(0x2d9),'QqqiF':_0x3fc2a9(0x337),'dOMmj':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','EmaOw':_0x3fc2a9(0x35c),'EYXTw':_0x3fc2a9(0x335),'WqPdL':'Skip\x20insecure\x20cert\x20verification.','DOvmh':_0x3fc2a9(0x354),'KBKoT':_0x3fc2a9(0x200),'MrcfC':'help','sMmne':_0x3fc2a9(0x258),'YUlEl':'default','xiKuJ':'http','KWOWu':_0x3fc2a9(0x319),'CeKcV':_0x3fc2a9(0x274),'jrSun':_0x3fc2a9(0x1ee),'HtDSY':_0x3fc2a9(0x279),'qLFCC':_0x3fc2a9(0x30f),'Fvexy':_0x3fc2a9(0x2fa),'CjfGS':_0x3fc2a9(0x346),'sppaJ':_0x3fc2a9(0x32b),'FRGnQ':function(_0x3df500,_0x4d6fdb){return _0x3df500===_0x4d6fdb;},'cFvkS':_0x3fc2a9(0x2c2),'CZPWb':function(_0x101de9){return _0x101de9();},'QnRaR':function(_0x518f67){return _0x518f67();},'EhZow':_0x3fc2a9(0x340),'HQjBK':_0x3fc2a9(0x34b),'ZaVZX':_0x3fc2a9(0x366),'atjyr':function(_0x1ead9e,_0x4f0dc0,_0x2a7103,_0x26c4dd,_0x59f70c,_0xe9f500,_0x5be9){return _0x1ead9e(_0x4f0dc0,_0x2a7103,_0x26c4dd,_0x59f70c,_0xe9f500,_0x5be9);},'sBCCG':_0x3fc2a9(0x2e7),'bLmkI':_0x3fc2a9(0x28c),'xYRRQ':function(_0x305b38){return _0x305b38();},'URJbI':'<UsernamePlaceholder>','mwPim':_0x3fc2a9(0x249),'nrSaa':_0x3fc2a9(0x235),'lljuI':function(_0x59a2aa,_0x34b922){return _0x59a2aa!==_0x34b922;},'sJxHM':'XyZJl','qGXit':_0x3fc2a9(0x285),'FxWME':function(_0x442277,_0x1d71a1){return _0x442277===_0x1d71a1;},'CmzNo':_0x3fc2a9(0x2d2),'LcdXQ':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','wsfoR':function(_0x45b0b9,_0x710e52,_0x4ce38b,_0x1e937d,_0x1a28cf,_0x7bf6e4,_0x1715c4,_0x1e0c04){return _0x45b0b9(_0x710e52,_0x4ce38b,_0x1e937d,_0x1a28cf,_0x7bf6e4,_0x1715c4,_0x1e0c04);},'LTdzG':_0x3fc2a9(0x239),'FTQJs':_0x3fc2a9(0x2af),'jTTdN':_0x3fc2a9(0x306),'CnmAN':_0x3fc2a9(0x2f3),'Qqwcm':function(_0xbdd4a8,_0x4751db){return _0xbdd4a8===_0x4751db;},'ZxSBZ':_0x3fc2a9(0x226),'ISnQd':function(_0x2df643,_0x396b9f,_0x3d6530,_0x3f578d,_0x8a5ed5,_0x4bef8c,_0xfdd40b){return _0x2df643(_0x396b9f,_0x3d6530,_0x3f578d,_0x8a5ed5,_0x4bef8c,_0xfdd40b);},'gZTos':function(_0xd759b1,_0x1cf2aa){return _0xd759b1===_0x1cf2aa;},'HCoCX':_0x3fc2a9(0x368),'jzxMQ':'wSVOj','gWvyq':function(_0x4d021b,_0x515244){return _0x4d021b!==_0x515244;},'Dkweh':_0x3fc2a9(0x23a),'XbhRA':'GET','xvrmf':function(_0x1dfaf7,_0x495cf0,_0x58804a){return _0x1dfaf7(_0x495cf0,_0x58804a);},'ipilU':function(_0x4cb803,_0x417a48){return _0x4cb803===_0x417a48;},'nQXdU':'Ciihb','qCOCi':_0x3fc2a9(0x303),'UWQXI':function(_0x26a51a,_0x23042e){return _0x26a51a===_0x23042e;},'sBsUk':function(_0x3de0e1,_0x48a68f){return _0x3de0e1!==_0x48a68f;},'zxHpo':_0x3fc2a9(0x1df),'iwXMv':_0x3fc2a9(0x2b7),'meDYQ':function(_0x14ffba,_0x4af510,_0x434449,_0x3cdbe3,_0x665165,_0x4ef9ed,_0x413f5c,_0x2623e7){return _0x14ffba(_0x4af510,_0x434449,_0x3cdbe3,_0x665165,_0x4ef9ed,_0x413f5c,_0x2623e7);},'LVEaB':_0x3fc2a9(0x265),'AICnQ':function(_0x5de1d6,_0x390267){return _0x5de1d6===_0x390267;},'AAgcC':function(_0x5c4085,_0x36c8ad){return _0x5c4085!==_0x36c8ad;},'ngyMM':'KDaaC','pqYdz':'utGdn','pQRpN':_0x3fc2a9(0x1fe),'egxIH':_0x3fc2a9(0x1e8),'SrQdO':function(_0x590014,_0x4f6ccb){return _0x590014!==_0x4f6ccb;},'rwpth':'mdNdO','Xzvre':'create-grid-checks-non-200','qAzgg':'Grid\x20profile\x20fetched\x20from\x20backend','hetQx':function(_0x5573ff,_0x2a43f9){return _0x5573ff===_0x2a43f9;},'nMnvp':_0x3fc2a9(0x2fd),'CNeul':'create-grid-checks-grid-already-exists','eDlBH':function(_0x2fb45f,_0x53205b){return _0x2fb45f===_0x53205b;},'cihWG':_0x3fc2a9(0x32d),'uMtiU':_0x3fc2a9(0x30b),'MOQIk':_0x3fc2a9(0x324),'ulSIh':function(_0x44d2b1,_0x34d72c){return _0x44d2b1===_0x34d72c;},'kLJfi':function(_0x185a29,_0x2aa837){return _0x185a29!==_0x2aa837;},'uatwH':_0x3fc2a9(0x1d7),'yUDVO':_0x3fc2a9(0x1c1),'BHBSk':'AicCN','UPdAU':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','oWkfY':function(_0x551113,_0x4f3956,_0x3e864b,_0x247e46,_0x3d341f,_0x2d2375,_0xd2d81e,_0x278f18){return _0x551113(_0x4f3956,_0x3e864b,_0x247e46,_0x3d341f,_0x2d2375,_0xd2d81e,_0x278f18);},'eUegx':_0x3fc2a9(0x311),'ikoau':function(_0x51741b,_0x4bc5ca){return _0x51741b===_0x4bc5ca;},'rgwUf':function(_0x44c45f,_0x597ae1){return _0x44c45f===_0x597ae1;},'cnNia':'jkuQr','bAHLp':_0x3fc2a9(0x1f5),'GTsnA':function(_0x13bf2b,_0x2e72df){return _0x13bf2b===_0x2e72df;},'jkJad':function(_0x5a34cd,_0x53361d){return _0x5a34cd===_0x53361d;},'KgWkh':_0x3fc2a9(0x338),'ffWEm':_0x3fc2a9(0x202),'TqOvU':function(_0x155e89,_0xfec7e4){return _0x155e89!==_0xfec7e4;},'eruhp':function(_0x165a63,_0x554ac3){return _0x165a63===_0x554ac3;},'KfvJP':_0x3fc2a9(0x276),'TcjVF':'NRGff','Pfbpe':function(_0x5ca3a9,_0x3a27b0){return _0x5ca3a9!==_0x3a27b0;},'uTeuB':_0x3fc2a9(0x25d),'sBYmO':_0x3fc2a9(0x2bb),'OwsXw':function(_0x426c9f,_0x3b13f6){return _0x426c9f!==_0x3b13f6;},'uleAa':'pQdpY','oLHQi':_0x3fc2a9(0x225),'ZafRT':_0x3fc2a9(0x29b),'cBuZU':function(_0x3090c3,_0x31f139){return _0x3090c3(_0x31f139);},'amrrA':_0x3fc2a9(0x1d5),'iOOAX':_0x3fc2a9(0x26a),'JXAtN':function(_0x30d04e,_0x32fd74){return _0x30d04e!==_0x32fd74;},'aKlEf':_0x3fc2a9(0x312),'kykcK':_0x3fc2a9(0x1bd),'ENrLT':function(_0x37219a,_0x2bac95){return _0x37219a!==_0x2bac95;},'MmXhm':_0x3fc2a9(0x269),'PbwSv':function(_0x83eb30,_0x25000e){return _0x83eb30!==_0x25000e;},'JGUls':_0x3fc2a9(0x30e),'GPfDI':_0x3fc2a9(0x224),'WkQdx':_0x3fc2a9(0x1db),'dGNsV':function(_0x9c3ea8,_0x55b50c){return _0x9c3ea8!=_0x55b50c;},'oFdor':function(_0x2e58b9,_0x45d525){return _0x2e58b9!==_0x45d525;},'VlxXd':function(_0x385588,_0x25bdc2){return _0x385588!==_0x25bdc2;},'idszV':function(_0x39c92c,_0x390a33){return _0x39c92c>_0x390a33;},'WxNdM':function(_0xbf2a0,_0x913d82){return _0xbf2a0===_0x913d82;},'SGGqX':_0x3fc2a9(0x1e4),'sAmOf':function(_0x109ff5,_0x14f4b5,_0x46bbc7,_0x492de0,_0x574c69,_0x51f19f,_0x254c34,_0x3d2a0c){return _0x109ff5(_0x14f4b5,_0x46bbc7,_0x492de0,_0x574c69,_0x51f19f,_0x254c34,_0x3d2a0c);},'iWvCC':_0x3fc2a9(0x2b5),'tHZJK':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','NudPT':_0x3fc2a9(0x350),'qaYed':_0x3fc2a9(0x2be),'QuOGi':_0x3fc2a9(0x2a0),'UkYRT':_0x3fc2a9(0x212),'jHEXK':_0x3fc2a9(0x349),'qihhe':function(_0x45914b,_0xb691a6){return _0x45914b===_0xb691a6;},'JJUJW':function(_0x44e940,_0xd3ca53,_0x492d2e){return _0x44e940(_0xd3ca53,_0x492d2e);},'cuSwS':_0x3fc2a9(0x288),'RyKXl':'Adding\x20Secret\x20Mapping','GnUdc':_0x3fc2a9(0x2d5),'CNDdt':_0x3fc2a9(0x2b3),'xWGam':_0x3fc2a9(0x1da),'lShZN':'browserstack-secret.yaml','nfxXH':_0x3fc2a9(0x2ac),'NoqXk':function(_0x1502ae,_0x480d19){return _0x1502ae(_0x480d19);},'sxVvj':function(_0x4929f7,_0x34b843){return _0x4929f7(_0x34b843);},'sALDz':_0x3fc2a9(0x2c1),'ffODV':_0x3fc2a9(0x2cb),'GztHa':function(_0x18aa61,_0xc4ef29){return _0x18aa61===_0xc4ef29;},'kBfCP':_0x3fc2a9(0x1ea),'bISWr':_0x3fc2a9(0x283),'GvDlz':function(_0x25938a,_0x3a7ca8,_0x183ffc){return _0x25938a(_0x3a7ca8,_0x183ffc);},'OQQHJ':_0x3fc2a9(0x2d3),'UQzCI':'Adding\x20Kafka\x20deployment...','pFEFw':'bitnami-kafka.yaml','jhlgd':_0x3fc2a9(0x1c2),'OwSUD':_0x3fc2a9(0x271),'POdcX':_0x3fc2a9(0x1d9),'Ixvva':function(_0x1278f2,_0xd2123a){return _0x1278f2===_0xd2123a;},'NbZJN':function(_0x25698d,_0x25837b,_0x2a2e44){return _0x25698d(_0x25837b,_0x2a2e44);},'iAWik':_0x3fc2a9(0x231),'yQLBP':'Created\x20Hub\x20HA\x20resources','gEfZT':_0x3fc2a9(0x298),'txMLG':_0x3fc2a9(0x1d8),'GJwjZ':function(_0x42f682,_0x22201b,_0x5d4587,_0x42288d,_0xff60d8,_0x59d82f,_0x536892,_0x162e30){return _0x42f682(_0x22201b,_0x5d4587,_0x42288d,_0xff60d8,_0x59d82f,_0x536892,_0x162e30);},'hVcky':_0x3fc2a9(0x364),'QzkRT':function(_0x355704,_0x5700fd){return _0x355704(_0x5700fd);},'zSapo':'Creating\x20namespace','TougW':_0x3fc2a9(0x26c),'EmdpB':_0x3fc2a9(0x243),'LYGNb':'Namespace\x20created','LihlI':_0x3fc2a9(0x295),'QwDEk':_0x3fc2a9(0x267),'FFCdx':function(_0x1e4327,_0xa5c33d){return _0x1e4327===_0xa5c33d;},'RKhGy':function(_0x573e47,_0x5e0209,_0x5f10b4,_0x1deab2,_0x36b83b,_0x414a71,_0x586508,_0xc6bd7a,_0x2f6130,_0x1c809c,_0x57934c){return _0x573e47(_0x5e0209,_0x5f10b4,_0x1deab2,_0x36b83b,_0x414a71,_0x586508,_0xc6bd7a,_0x2f6130,_0x1c809c,_0x57934c);},'gXInY':_0x3fc2a9(0x2ec),'wfZyg':_0x3fc2a9(0x2a9),'HQjIp':function(_0x2445be,_0x4278bb,_0x4bcf63,_0x541dbc,_0xe0bcfd){return _0x2445be(_0x4278bb,_0x4bcf63,_0x541dbc,_0xe0bcfd);},'zqRFv':'private-ingress-nginx-controller','tOgXv':_0x3fc2a9(0x2a3),'rmhRn':_0x3fc2a9(0x33f),'jDezN':function(_0x34c471,_0x2bb6a1){return _0x34c471===_0x2bb6a1;},'kxpgd':_0x3fc2a9(0x22d),'hFoaW':function(_0x3a9fab,_0x526c14,_0x48158e,_0x5ea7d4,_0x24b1ef,_0x9cd13a,_0x1ef69a,_0x1b6db3){return _0x3a9fab(_0x526c14,_0x48158e,_0x5ea7d4,_0x24b1ef,_0x9cd13a,_0x1ef69a,_0x1b6db3);},'IIOAV':'get-grid-url-null-response','bFftg':function(_0x4685a6,_0x4a1fa0){return _0x4685a6===_0x4a1fa0;},'LOxOM':_0x3fc2a9(0x1c9),'eHxCv':_0x3fc2a9(0x360),'HFWsF':function(_0x4c7d44,_0x4ab714){return _0x4c7d44!==_0x4ab714;},'oNUzS':function(_0x2bce90,_0x3e09c2,_0x48bd06,_0x5d8ce5,_0x2b2839,_0x393361,_0x5ecf7f,_0x5a693d){return _0x2bce90(_0x3e09c2,_0x48bd06,_0x5d8ce5,_0x2b2839,_0x393361,_0x5ecf7f,_0x5a693d);},'INaSp':_0x3fc2a9(0x342),'kSYJg':function(_0x18eb8b,_0x4dac20){return _0x18eb8b===_0x4dac20;},'nxStU':'Deleting\x20the\x20CloudFormation\x20Stacks','zvBKR':function(_0x1f07d0,_0x3dbfc0,_0x52d971,_0x35f079,_0x5cf07a,_0x13c638){return _0x1f07d0(_0x3dbfc0,_0x52d971,_0x35f079,_0x5cf07a,_0x13c638);},'CWDPR':_0x3fc2a9(0x2a2)};let _0x4fa3bd=![],_0x459300=![],_0x27a4bf,_0x17b304,_0x32bd38,_0x365a75,_0x2f5180,_0x318011,_0x40ed9a,_0x333cf1,_0xded7a8,_0x5b227a,_0x4f8b5c,_0x3601d9,_0x4e8a02,_0xfae697,_0x8be1fa=0x1,_0x1deb5d=0xe;try{global_registry['requestId']=_0x3259f1[_0x3fc2a9(0x2b4)](uuidv4),global_registry['isPrivateGrid']=![];if(!fs['existsSync'](_0x3259f1['QnRaR'](getCredentialsPath))){if(_0x3259f1[_0x3fc2a9(0x326)](_0x3259f1['EhZow'],_0x3259f1[_0x3fc2a9(0x333)]))console[_0x3fc2a9(0x2f6)](_0x3259f1[_0x3fc2a9(0x2b6)]),await _0x3259f1[_0x3fc2a9(0x2da)](sendInstrumentationEvent,_0x380b04,_0x3259f1[_0x3fc2a9(0x29e)],messageTypes['ERROR'],_0x3259f1['bLmkI'],null,_0x380b04),process['exit'](0x1);else{const _0x4050ed={};_0x4050ed[_0x3fc2a9(0x1f7)]=_0x390c62[_0x3fc2a9(0x237)],_0x4050ed['message']=_0x3e432a,_0x3c7dd9[_0x3fc2a9(0x297)](_0x39d978,_0x4050ed,_0x3259f1['LgrPU'],!![]);}}await _0x3259f1[_0x3fc2a9(0x2da)](sendInstrumentationEvent,_0x380b04,_0x3259f1[_0x3fc2a9(0x29e)],messageTypes[_0x3fc2a9(0x315)],null,null,_0x380b04);const _0x1ca14a=JSON[_0x3fc2a9(0x214)](fs[_0x3fc2a9(0x2ad)](_0x3259f1[_0x3fc2a9(0x1ec)](getCredentialsPath)));global_registry[_0x3fc2a9(0x2f1)]=_0x1ca14a['Browserstack'][_0x3fc2a9(0x1cd)],global_registry[_0x3fc2a9(0x30a)]=_0x1ca14a[_0x3fc2a9(0x26c)][_0x3fc2a9(0x1e5)];const _0x4a4d0=WS_ENDPOINT['replace'](_0x3259f1[_0x3fc2a9(0x339)],_0x1ca14a[_0x3fc2a9(0x26c)][_0x3fc2a9(0x1cd)])['replace'](_0x3259f1[_0x3fc2a9(0x2aa)],_0x1ca14a[_0x3fc2a9(0x26c)][_0x3fc2a9(0x1e5)]),_0x539c3b={};_0x539c3b[_0x3fc2a9(0x2bf)]=ws,_0x539c3b[_0x3fc2a9(0x242)]=0x36ee80,_0x3601d9=new ReconnectingWebSocket(_0x4a4d0,[],_0x539c3b),logger['debug'](_0x3259f1[_0x3fc2a9(0x2ff)]),webSocketUtils['addListeners'](_0x3601d9,_0x380b04['user'],_0x380b04[_0x3fc2a9(0x1e5)]);const _0x196bb9=_0x380b04[_0x3fc2a9(0x236)]||DEFAULT_GRID_NAME;if(_0x380b04[_0x3fc2a9(0x22a)]||_0x380b04[_0x3fc2a9(0x35b)]||_0x380b04[_0x3fc2a9(0x1bf)]){if(_0x3259f1['lljuI'](_0x3259f1[_0x3fc2a9(0x241)],_0x3259f1[_0x3fc2a9(0x2b2)])){!(_0x380b04[_0x3fc2a9(0x22a)]&&_0x380b04['cloudProvider']&&_0x380b04['region'])&&(_0x3259f1[_0x3fc2a9(0x2b8)](_0x3259f1[_0x3fc2a9(0x2e3)],_0x3259f1[_0x3fc2a9(0x2e3)])?(_0x27a4bf=_0x3259f1[_0x3fc2a9(0x1e6)],await _0x3259f1[_0x3fc2a9(0x220)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x238)],_0x3259f1[_0x3fc2a9(0x1d6)]),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1)):_0x3259f1['zETHY'](_0x1db4ca,_0x8caffc[_0x3fc2a9(0x300)]));![AWS,AZURE,GCP][_0x3fc2a9(0x29a)](_0x380b04[_0x3fc2a9(0x35b)][_0x3fc2a9(0x289)]())&&(_0x3259f1[_0x3fc2a9(0x2b8)](_0x3259f1[_0x3fc2a9(0x35f)],_0x3259f1[_0x3fc2a9(0x35f)])?(_0x27a4bf=_0x3259f1[_0x3fc2a9(0x343)],await _0x3259f1[_0x3fc2a9(0x220)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x31d)],_0x3259f1[_0x3fc2a9(0x1d6)]),logger['error'](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1)):_0x3c948e[_0x3fc2a9(0x357)]());if(_0x380b04[_0x3fc2a9(0x20e)]&&_0x3259f1['Qqwcm'](_0x380b04[_0x3fc2a9(0x20e)][_0x3fc2a9(0x289)](),_0x3259f1[_0x3fc2a9(0x222)])){if(_0x3259f1[_0x3fc2a9(0x2bd)](_0x3259f1['ZxSBZ'],_0x3259f1[_0x3fc2a9(0x2fb)]))global_registry['isPrivateGrid']=!![];else{const _0x51f453=_0x3259f1['QhZCw'][_0x3fc2a9(0x369)]('|');let _0x28e0a8=0x0;while(!![]){switch(_0x51f453[_0x28e0a8++]){case'0':_0x398c06[_0x3fc2a9(0x22a)]=_0x568105;continue;case'1':const _0x426142={};_0x426142[_0x3fc2a9(0x1f7)]=_0x355dca[_0x3fc2a9(0x237)],_0x426142[_0x3fc2a9(0x1cf)]=_0x5202c8,_0x6ae5a6[_0x3fc2a9(0x297)](_0x12283f,_0x426142);continue;case'2':const _0x49cc4a={};_0x49cc4a[_0x3fc2a9(0x1f7)]=_0x1fb0a6[_0x3fc2a9(0x302)],_0x49cc4a[_0x3fc2a9(0x1cf)]=_0x3259f1[_0x3fc2a9(0x1c6)],_0x523fa6[_0x3fc2a9(0x297)](_0x30b47f,_0x49cc4a);continue;case'3':_0x2af615['cloudProvider']=_0x242f66;continue;case'4':_0x9f5753['hubVersion']=_0x138330[_0x3fc2a9(0x345)];continue;case'5':_0xef7588['clusterRegion']=_0x52710f;continue;case'6':_0x2071d6[_0x3fc2a9(0x261)](_0x1191a6);continue;case'7':_0x35e440='Spawning\x20the\x20grid\x20'+_0x42b2a1+_0x3fc2a9(0x1d0)+_0x42345f+'\x27';continue;case'8':_0x24ccc0[_0x3fc2a9(0x363)]=_0x2520f5[_0x3fc2a9(0x363)];continue;}break;}}}global_registry[_0x3fc2a9(0x35b)]=_0x380b04[_0x3fc2a9(0x35b)],global_registry[_0x3fc2a9(0x1cc)]=_0x380b04[_0x3fc2a9(0x1bf)],global_registry[_0x3fc2a9(0x22a)]=_0x380b04['clusterName'];const _0x3f3d22=await _0x3259f1[_0x3fc2a9(0x210)](getCloudProviderObject,_0x380b04[_0x3fc2a9(0x35b)],_0x380b04[_0x3fc2a9(0x22a)],_0x196bb9,_0x3601d9,webSocketUtils,_0x380b04),_0x221d00=await _0x3f3d22['isClusterPresent']();!_0x221d00?_0x3259f1[_0x3fc2a9(0x2e8)](_0x3259f1[_0x3fc2a9(0x24d)],_0x3259f1['HCoCX'])?(logger[_0x3fc2a9(0x261)](_0x3fc2a9(0x320)+_0x380b04[_0x3fc2a9(0x22a)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x4fa3bd=![],_0x459300=!![]):_0x5af2d9['isPrivateGrid']=!![]:_0x3259f1[_0x3fc2a9(0x2f4)](_0x3259f1[_0x3fc2a9(0x20b)],_0x3259f1['jzxMQ'])?_0x3157c2=!![]:_0x4fa3bd=!![],_0x32bd38=_0x380b04[_0x3fc2a9(0x22a)],_0x17b304=_0x380b04[_0x3fc2a9(0x35b)][_0x3fc2a9(0x289)](),_0x365a75=_0x380b04['region'];}else _0x4bc322=null;}else{if(_0x380b04[_0x3fc2a9(0x233)]){if(_0x3259f1[_0x3fc2a9(0x1f4)](_0x3259f1[_0x3fc2a9(0x23d)],_0x3259f1['Dkweh'])){const _0x4d91cb=_0x3259f1[_0x3fc2a9(0x20d)][_0x3fc2a9(0x369)]('|');let _0x3a5be9=0x0;while(!![]){switch(_0x4d91cb[_0x3a5be9++]){case'0':_0xf8cbb5=_0x415bda[_0x3fc2a9(0x363)];continue;case'1':_0x20ccb3=_0x599e06[_0x3fc2a9(0x351)];continue;case'2':_0x9b26cc=_0x1a8a07['s3bucket'];continue;case'3':_0x3259f1[_0x3fc2a9(0x20f)](_0x425c7f,_0x37675f,_0x242e89,_0xd7d2d9,_0x5cfebb,_0x26f6f6,_0x5b57b6,_0x47a87b,_0x1b7455,_0x1531ab,_0x15ac27,_0x51d177);continue;case'4':_0x42db8e=_0x45fe32['hubVersion'];continue;case'5':_0x5f3b53=_0x4d4684[_0x3fc2a9(0x2ab)];continue;case'6':_0xedd093[_0x3fc2a9(0x261)](_0x448d93);continue;case'7':_0x2121e2=null;continue;case'8':_0x5b7d85=_0x5cde48['maxNodes'];continue;case'9':_0x3259f1['KpNEg'](_0x59c4ee[_0x3fc2a9(0x20e)],_0x5e3226)&&_0x3ce007['privateGrid']&&(_0x52f4fa[_0x3fc2a9(0x240)]=!![]);continue;case'10':_0xaab870=_0x3fc2a9(0x247)+_0x4ec390;continue;case'11':_0x3a768c=null;continue;case'12':_0x5af88d=null;continue;case'13':_0x48bad1=_0x37a7f1[_0x3fc2a9(0x1ff)];continue;case'14':const _0x4e8220={};_0x4e8220[_0x3fc2a9(0x1f7)]=_0x3e5f1c[_0x3fc2a9(0x237)],_0x4e8220[_0x3fc2a9(0x1cf)]=_0x1bbf7b,_0x4932ba['sendEventToBackend'](_0x2196a1,_0x4e8220);continue;case'15':_0x199ba1[_0x3fc2a9(0x23b)]&&_0x3259f1[_0x3fc2a9(0x33b)](_0x177d8f,_0x3844fa[_0x3fc2a9(0x213)]);continue;}break;}}else global_registry[_0x3fc2a9(0x233)]=_0x380b04['gridProfile'];}}global_registry[_0x3fc2a9(0x236)]=_0x380b04['gridName'];const _0x4f95e8={'method':_0x3259f1[_0x3fc2a9(0x334)],'headers':_0x3259f1['xvrmf'](getAuthHeader,_0x1ca14a['Browserstack']['username'],_0x1ca14a[_0x3fc2a9(0x26c)][_0x3fc2a9(0x1e5)]),'throwHttpErrors':![]},_0x636f26={};_0x636f26[_0x3fc2a9(0x236)]=_0x196bb9;const _0x544a20=_0x636f26;_0x459300&&(_0x3259f1['ipilU'](_0x3259f1[_0x3fc2a9(0x2e4)],_0x3259f1['qCOCi'])?_0x3259f1[_0x3fc2a9(0x26e)](_0x1c5d3f,_0x162b87[_0x3fc2a9(0x213)]):(_0x544a20[_0x3fc2a9(0x1bf)]=_0x365a75,_0x544a20['cloudProvider']=_0x17b304,_0x544a20['newCluster']=!![]));const _0x234e6e=_0x3fc2a9(0x31e)+AG_API_URL+_0x3fc2a9(0x2cf),_0x3bf966={'searchParams':_0x544a20,'throwHttpErrors':![],..._0x4f95e8},_0x3ee8ae=_0x3bf966,_0x4874d4=await _0x3259f1[_0x3fc2a9(0x20c)](got,_0x234e6e,_0x3ee8ae);if(_0x3259f1[_0x3fc2a9(0x262)](_0x4874d4,null)||_0x3259f1[_0x3fc2a9(0x262)](_0x4874d4,undefined)){if(_0x3259f1['sBsUk'](_0x3259f1[_0x3fc2a9(0x2c7)],_0x3259f1[_0x3fc2a9(0x2c7)])){const _0x4e4f85={};_0x4e4f85[_0x3fc2a9(0x2a4)]=_0x3259f1['nthDn'],_0x4e4f85[_0x3fc2a9(0x1f7)]=_0x3259f1[_0x3fc2a9(0x25e)];const _0x3732f4={};_0x3732f4['description']=_0x3259f1['PdzAc'],_0x3732f4[_0x3fc2a9(0x1f7)]=_0x3259f1[_0x3fc2a9(0x25e)];const _0x519957={};_0x519957[_0x3fc2a9(0x2a4)]=_0x3259f1[_0x3fc2a9(0x36a)],_0x519957[_0x3fc2a9(0x1f7)]=_0x3259f1[_0x3fc2a9(0x25e)];const _0x4e1d12={};_0x4e1d12['description']=_0x3259f1['dOMmj'],_0x4e1d12[_0x3fc2a9(0x1f7)]=_0x3259f1[_0x3fc2a9(0x25e)];const _0x13d79c={};_0x13d79c[_0x3fc2a9(0x2a4)]=_0x3259f1[_0x3fc2a9(0x21d)],_0x13d79c[_0x3fc2a9(0x1f7)]=_0x3259f1[_0x3fc2a9(0x25e)];const _0x5a9dc1={};_0x5a9dc1['description']=_0x3259f1[_0x3fc2a9(0x2f5)],_0x5a9dc1['type']=_0x3259f1[_0x3fc2a9(0x25e)];const _0x28c977={};_0x28c977[_0x3fc2a9(0x2a4)]=_0x3259f1['WqPdL'],_0x28c977[_0x3fc2a9(0x1f7)]=_0x3259f1['DOvmh'],_0x28c977['default']=![];const _0x14a4a1={};_0x14a4a1[_0x3fc2a9(0x2a4)]=_0x3259f1[_0x3fc2a9(0x34d)],_0x14a4a1[_0x3fc2a9(0x1f7)]=_0x3259f1['DOvmh'],_0x14a4a1['default']=![];const _0x55d2d8={};return _0x55d2d8[_0x3fc2a9(0x278)]=_0x4e4f85,_0x55d2d8[_0x3fc2a9(0x20a)]=_0x3732f4,_0x55d2d8[_0x3fc2a9(0x33a)]=_0x519957,_0x55d2d8[_0x3fc2a9(0x24b)]=_0x4e1d12,_0x55d2d8[_0x3fc2a9(0x1bf)]=_0x13d79c,_0x55d2d8[_0x3fc2a9(0x2d7)]=_0x5a9dc1,_0x55d2d8['skip-tls-cert-verify']=_0x28c977,_0x55d2d8['hub-ha']=_0x14a4a1,_0x56e4a0[_0x3fc2a9(0x1f1)](_0x1d88d0[_0x3fc2a9(0x322)])[_0x3fc2a9(0x32f)](_0x4662ac)[_0x3fc2a9(0x245)](_0x55d2d8)[_0x3fc2a9(0x229)](_0x3259f1[_0x3fc2a9(0x280)])[_0x3fc2a9(0x1ce)];}else _0x27a4bf=_0x3259f1['iwXMv'],await _0x3259f1['meDYQ'](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x1f9)],_0x3259f1['LgrPU']),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1);}if(_0x3259f1[_0x3fc2a9(0x2d6)](_0x4874d4[_0x3fc2a9(0x35d)],0x191)){if(_0x3259f1['AAgcC'](_0x3259f1[_0x3fc2a9(0x359)],_0x3259f1[_0x3fc2a9(0x2e9)]))_0x27a4bf=_0x3259f1[_0x3fc2a9(0x2f2)],await _0x3259f1[_0x3fc2a9(0x220)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1['egxIH'],_0x3259f1['LgrPU']),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1);else{const _0x445a61={'azure.workload.identity/use':_0x3259f1[_0x3fc2a9(0x222)],..._0x4b0d9d[0x0][_0x3fc2a9(0x203)][_0x3fc2a9(0x2dc)][_0x3fc2a9(0x325)]['labels']};_0x525642[0x0][_0x3fc2a9(0x203)]['template'][_0x3fc2a9(0x325)][_0x3fc2a9(0x314)]=_0x445a61,_0x19ee36[0x0]['spec']['template'][_0x3fc2a9(0x203)][_0x3fc2a9(0x33e)]=_0x3259f1['YUlEl'];}}_0x3259f1['AAgcC'](_0x4874d4['statusCode'],0xc8)&&(_0x3259f1[_0x3fc2a9(0x277)](_0x3259f1[_0x3fc2a9(0x2eb)],_0x3259f1[_0x3fc2a9(0x2eb)])?_0x315688=null:(_0x27a4bf=_0x3fc2a9(0x28e)+JSON[_0x3fc2a9(0x273)](_0x4874d4['body']),await _0x3259f1['meDYQ'](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x1d1)],_0x3259f1[_0x3fc2a9(0x1d6)]),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1)));const _0x10ceaa=JSON[_0x3fc2a9(0x214)](_0x4874d4[_0x3fc2a9(0x209)]),_0xad3fda={};_0xad3fda['type']=WS_EVENTS[_0x3fc2a9(0x302)],_0xad3fda[_0x3fc2a9(0x1cf)]=_0x3259f1[_0x3fc2a9(0x1c6)],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0xad3fda);const _0x28453={};_0x28453[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x28453[_0x3fc2a9(0x1cf)]=_0x3259f1[_0x3fc2a9(0x308)],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x28453);_0x10ceaa[_0x3fc2a9(0x2d1)]&&(_0x3259f1['hetQx'](_0x3259f1['nMnvp'],_0x3259f1[_0x3fc2a9(0x1e3)])?(_0x27a4bf='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x196bb9+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x3259f1['meDYQ'](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x2f0)],_0x3259f1[_0x3fc2a9(0x1d6)]),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1)):_0x1261df[_0x3fc2a9(0x261)]('Found\x20VPC:\x20'+_0x2c0479+'\x20'));const _0xe6f7c7=_0x10ceaa[_0x3fc2a9(0x228)];let _0x121ff9=_0xe6f7c7[_0x10ceaa[_0x3fc2a9(0x205)]];_0x380b04[_0x3fc2a9(0x233)]&&(_0x3259f1[_0x3fc2a9(0x1fa)](_0x3259f1[_0x3fc2a9(0x2cd)],_0x3259f1['cihWG'])?_0x121ff9=_0xe6f7c7[_0x380b04[_0x3fc2a9(0x233)]]:_0xaa2af8[_0x3fc2a9(0x233)]=_0x6d71a8[_0x3fc2a9(0x233)]);global_registry['enableHubHa']=![];if(_0x380b04[_0x3fc2a9(0x1dd)]){if(_0x3259f1[_0x3fc2a9(0x326)](_0x3259f1[_0x3fc2a9(0x2ed)],_0x3259f1[_0x3fc2a9(0x2ed)]))_0xa081d8=_0x3259f1[_0x3fc2a9(0x281)];else{const _0x5c7ae6=_0x3259f1[_0x3fc2a9(0x1c8)][_0x3fc2a9(0x369)]('|');let _0x3f739c=0x0;while(!![]){switch(_0x5c7ae6[_0x3f739c++]){case'0':logger[_0x3fc2a9(0x261)](_0x3259f1['CeKcV']);continue;case'1':global_registry[_0x3fc2a9(0x1e2)]=_0x3259f1[_0x3fc2a9(0x1d3)];continue;case'2':global_registry[_0x3fc2a9(0x2e2)]=_0x3259f1[_0x3fc2a9(0x309)];continue;case'3':global_registry[_0x3fc2a9(0x230)]=_0x3259f1[_0x3fc2a9(0x36b)];continue;case'4':global_registry['enableHubHa']=!![];continue;}break;}}}if(_0x3259f1[_0x3fc2a9(0x2ae)](_0x4fa3bd,![])&&_0x3259f1[_0x3fc2a9(0x2b8)](_0x459300,![])){if(_0x3259f1['kLJfi'](_0x3259f1[_0x3fc2a9(0x25b)],_0x3259f1[_0x3fc2a9(0x2a8)])){_0x3259f1[_0x3fc2a9(0x219)](_0x121ff9,undefined)&&(_0x3259f1[_0x3fc2a9(0x219)](_0x3259f1[_0x3fc2a9(0x2b1)],_0x3259f1['BHBSk'])?(_0x27a4bf=_0x3259f1[_0x3fc2a9(0x2dd)],await _0x3259f1[_0x3fc2a9(0x1e7)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1['sBCCG'],_0x3259f1[_0x3fc2a9(0x2b9)],_0x3259f1[_0x3fc2a9(0x1d6)]),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1)):_0x4463e9[_0x3fc2a9(0x2f6)](_0x3fc2a9(0x2a6)+_0x12c361+'\x20\x0a'+_0x5b198f[_0x3fc2a9(0x273)](_0x54226d['stack'])));global_registry['gridProfileId']=_0x121ff9['id'],_0x27a4bf=_0x3fc2a9(0x2d0)+_0x196bb9+'\x20using\x20\x27'+_0x121ff9['name']+_0x3fc2a9(0x2fc),logger[_0x3fc2a9(0x261)](_0x27a4bf);const _0x1ce1f5={};_0x1ce1f5['type']=WS_EVENTS[_0x3fc2a9(0x237)],_0x1ce1f5[_0x3fc2a9(0x1cf)]=_0x27a4bf,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x1ce1f5),_0x17b304=_0x121ff9[_0x3fc2a9(0x35b)],_0x32bd38=_0x121ff9[_0x3fc2a9(0x22a)],_0x365a75=_0x121ff9['region'],_0x2f5180=_0x121ff9[_0x3fc2a9(0x1ff)],_0x318011=_0x121ff9[_0x3fc2a9(0x2ab)],_0x40ed9a=_0x121ff9[_0x3fc2a9(0x31c)],_0x333cf1=_0x121ff9['securityGroups'],_0xded7a8=_0x121ff9['subnets'],_0x5b227a=_0x121ff9[_0x3fc2a9(0x1f8)],_0x8be1fa=_0x121ff9[_0x3fc2a9(0x351)],_0x1deb5d=_0x121ff9[_0x3fc2a9(0x264)],_0x4e8a02=_0x10ceaa['hubVersion'],_0xfae697=_0x10ceaa[_0x3fc2a9(0x363)];if(_0x40ed9a&&_0x3259f1['ikoau'](_0x40ed9a['length'],0x0)){if(_0x3259f1[_0x3fc2a9(0x1eb)](_0x3259f1[_0x3fc2a9(0x1f3)],_0x3259f1['bAHLp']))throw new _0x23eea2(_0x3fc2a9(0x23c)+_0x2e3245+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else _0x40ed9a=null;}_0xded7a8&&_0x3259f1[_0x3fc2a9(0x208)](_0xded7a8[_0x3fc2a9(0x22f)],0x0)&&(_0x3259f1[_0x3fc2a9(0x33c)](_0x3259f1[_0x3fc2a9(0x29d)],_0x3259f1[_0x3fc2a9(0x329)])?(_0x295470[_0x3fc2a9(0x1bf)]=_0xa69098,_0x59a6b5[_0x3fc2a9(0x35b)]=_0x3646b5,_0x1d693f[_0x3fc2a9(0x1cb)]=!![]):_0xded7a8=null);_0x3259f1[_0x3fc2a9(0x27e)](_0x121ff9[_0x3fc2a9(0x20e)],undefined)&&_0x121ff9[_0x3fc2a9(0x20e)]&&(_0x3259f1['eruhp'](_0x3259f1[_0x3fc2a9(0x352)],_0x3259f1['TcjVF'])?_0x5663bc=_0x1e62b8[_0x5cca29['gridProfile']]:global_registry[_0x3fc2a9(0x240)]=!![]);_0x3259f1[_0x3fc2a9(0x20f)](updateGlobalRegistryWithConfig,_0x17b304,_0x32bd38,_0x365a75,_0x2f5180,_0x318011,_0x5b227a,_0x121ff9,_0x4e8a02,_0xfae697,_0x8be1fa,_0x1deb5d);if(global_registry[_0x3fc2a9(0x23b)]){if(_0x3259f1[_0x3fc2a9(0x344)](_0x3259f1[_0x3fc2a9(0x201)],_0x3259f1[_0x3fc2a9(0x201)])){const _0x381e21=_0x3259f1[_0x3fc2a9(0x25c)][_0x3fc2a9(0x369)]('|');let _0x1c7c98=0x0;while(!![]){switch(_0x381e21[_0x1c7c98++]){case'0':_0x23159b[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x215)]);continue;case'1':_0x280de2[_0x3fc2a9(0x1e2)]=_0x3259f1[_0x3fc2a9(0x1d3)];continue;case'2':_0x53048e[_0x3fc2a9(0x2e2)]=_0x3259f1[_0x3fc2a9(0x309)];continue;case'3':_0x2ffbfe[_0x3fc2a9(0x23b)]=!![];continue;case'4':_0x44f057[_0x3fc2a9(0x230)]=_0x3259f1['qLFCC'];continue;}break;}}else _0x3259f1[_0x3fc2a9(0x33b)](updateGlobalRegistryForHubHa,_0x10ceaa['uploaderVersion']);}}else _0x1e9f56=_0x1669b9[_0x3fc2a9(0x2df)],_0x373e1b=_0x3259f1[_0x3fc2a9(0x287)];}else{if(_0x3259f1[_0x3fc2a9(0x323)](_0x459300,!![])){if(_0x3259f1[_0x3fc2a9(0x2f7)](_0x3259f1[_0x3fc2a9(0x31b)],_0x3259f1[_0x3fc2a9(0x31b)]))_0xb13622[_0x3fc2a9(0x261)]('Cluster:\x20'+_0x44c99f['clusterName']+_0x3fc2a9(0x1e0)),_0x44f8a3=![],_0x2643b7=!![];else{_0x27a4bf=_0x3fc2a9(0x247)+_0x196bb9,logger[_0x3fc2a9(0x261)](_0x27a4bf);const _0xd9bcf8={};_0xd9bcf8[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0xd9bcf8['message']=_0x27a4bf,webSocketUtils['sendEventToBackend'](_0x3601d9,_0xd9bcf8),_0x2f5180=_0x121ff9['concurrency'],_0x318011=_0x121ff9[_0x3fc2a9(0x2ab)],_0x40ed9a=null,_0x333cf1=null,_0xded7a8=null,_0x5b227a=_0x121ff9['s3bucket'],_0x8be1fa=_0x121ff9[_0x3fc2a9(0x351)],_0x1deb5d=_0x121ff9['maxNodes'],_0x4e8a02=_0x10ceaa[_0x3fc2a9(0x345)],_0xfae697=_0x10ceaa[_0x3fc2a9(0x363)],_0x3259f1[_0x3fc2a9(0x286)](_0x121ff9[_0x3fc2a9(0x20e)],undefined)&&_0x121ff9[_0x3fc2a9(0x20e)]&&(_0x3259f1[_0x3fc2a9(0x21e)](_0x3259f1['uleAa'],_0x3259f1[_0x3fc2a9(0x211)])?global_registry[_0x3fc2a9(0x240)]=!![]:_0x259f35=_0x3259f1[_0x3fc2a9(0x2ee)]),_0x3259f1['FQmwV'](updateGlobalRegistryWithConfig,_0x17b304,_0x32bd38,_0x365a75,_0x2f5180,_0x318011,_0x5b227a,_0x121ff9,_0x4e8a02,_0xfae697,_0x8be1fa,_0x1deb5d),global_registry[_0x3fc2a9(0x23b)]&&(_0x3259f1[_0x3fc2a9(0x219)](_0x3259f1[_0x3fc2a9(0x282)],_0x3259f1[_0x3fc2a9(0x282)])?_0x3259f1[_0x3fc2a9(0x32e)](updateGlobalRegistryForHubHa,_0x10ceaa[_0x3fc2a9(0x213)]):_0x58b579[_0x3fc2a9(0x240)]=!![]);}}else{if(_0x3259f1['OwsXw'](_0x3259f1[_0x3fc2a9(0x291)],_0x3259f1[_0x3fc2a9(0x291)])){const _0x400fa7={};_0x400fa7[_0x3fc2a9(0x1f7)]=_0x13433c[_0x3fc2a9(0x237)],_0x400fa7['message']='Cluster\x20'+_0x4a3b62+_0x3fc2a9(0x244),_0x3048ec[_0x3fc2a9(0x297)](_0x4d8b53,_0x400fa7,_0x3259f1[_0x3fc2a9(0x218)]),_0x141785[_0x3fc2a9(0x261)](_0x3fc2a9(0x23c)+_0x1d81e9+_0x3fc2a9(0x244)),_0x421eb8=!![];if(_0x3259f1[_0x3fc2a9(0x2bd)](_0x223d3a,!![]))throw new _0x481b09(_0x3fc2a9(0x23c)+_0x22b73f+_0x3fc2a9(0x2b0));}else{const _0xa72c34=_0x3259f1['iOOAX'][_0x3fc2a9(0x369)]('|');let _0x2fe161=0x0;while(!![]){switch(_0xa72c34[_0x2fe161++]){case'0':global_registry[_0x3fc2a9(0x22a)]=_0x32bd38;continue;case'1':const _0x1ef00a={};_0x1ef00a['type']=WS_EVENTS[_0x3fc2a9(0x302)],_0x1ef00a[_0x3fc2a9(0x1cf)]=_0x3259f1['njFOf'],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x1ef00a);continue;case'2':global_registry['cloudProvider']=_0x17b304;continue;case'3':global_registry[_0x3fc2a9(0x363)]=_0x10ceaa[_0x3fc2a9(0x363)];continue;case'4':logger[_0x3fc2a9(0x261)](_0x27a4bf);continue;case'5':_0x27a4bf=_0x3fc2a9(0x356)+_0x196bb9+'\x20in\x20existing\x20cluster\x20\x27'+_0x32bd38+'\x27';continue;case'6':const _0x1abde0={};_0x1abde0[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x1abde0[_0x3fc2a9(0x1cf)]=_0x27a4bf,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x1abde0);continue;case'7':global_registry[_0x3fc2a9(0x1cc)]=_0x365a75;continue;case'8':global_registry[_0x3fc2a9(0x345)]=_0x10ceaa[_0x3fc2a9(0x345)];continue;}break;}}}}const _0x304498=await _0x3259f1[_0x3fc2a9(0x210)](getCloudProviderObject,_0x17b304,_0x32bd38,_0x196bb9,_0x3601d9,webSocketUtils,_0x380b04);_0x3259f1['gWvyq'](_0x17b304,AZURE)&&(_0x3259f1[_0x3fc2a9(0x348)](_0x3259f1[_0x3fc2a9(0x259)],_0x3259f1['kykcK'])?_0x304498['sendResourceDataToHST']():_0x5c700f[_0x3fc2a9(0x240)]=!![]);let _0x313f4c;if(_0x3259f1['eDlBH'](_0x4fa3bd,![])){_0x27a4bf=_0x3fc2a9(0x25a)+_0x365a75+').';const _0x11387b={};_0x11387b['type']=WS_EVENTS[_0x3fc2a9(0x237)],_0x11387b[_0x3fc2a9(0x1cf)]=_0x27a4bf,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x11387b),logger['info'](_0x27a4bf);const _0x13ae25=await _0x304498[_0x3fc2a9(0x2e6)]();if(_0x13ae25){if(_0x3259f1[_0x3fc2a9(0x21b)](_0x3259f1[_0x3fc2a9(0x310)],_0x3259f1[_0x3fc2a9(0x310)]))_0x4574ff['info']('Found\x20Subnets:\x20'+_0x48b757[_0x3fc2a9(0x273)](_0x49d37f)+'\x20');else{const _0x59264a={};_0x59264a[_0x3fc2a9(0x1f7)]=WS_EVENTS['LOG'],_0x59264a[_0x3fc2a9(0x1cf)]=_0x3fc2a9(0x23c)+_0x32bd38+_0x3fc2a9(0x244),webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x59264a,_0x3259f1[_0x3fc2a9(0x218)]),logger[_0x3fc2a9(0x261)](_0x3fc2a9(0x23c)+_0x32bd38+_0x3fc2a9(0x244)),_0x4fa3bd=!![];if(_0x3259f1['ulSIh'](_0x459300,!![])){if(_0x3259f1[_0x3fc2a9(0x2ea)](_0x3259f1['JGUls'],_0x3259f1['GPfDI']))throw new Error(_0x3fc2a9(0x23c)+_0x32bd38+_0x3fc2a9(0x2b0));else _0x34dacf=_0x3259f1[_0x3fc2a9(0x35e)];}}}else{const _0x1c6aba={};_0x1c6aba[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x1c6aba[_0x3fc2a9(0x1cf)]=_0x3259f1['WkQdx'],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x1c6aba),logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x367)]);const _0x4d6cd6=_0x3259f1[_0x3fc2a9(0x206)](_0x40ed9a,null)&&_0x3259f1[_0x3fc2a9(0x313)](_0x40ed9a,undefined),_0x23df2b=_0x3259f1[_0x3fc2a9(0x206)](_0xded7a8,null)&&_0x3259f1[_0x3fc2a9(0x23e)](_0xded7a8,undefined)&&_0x3259f1[_0x3fc2a9(0x27f)](_0xded7a8[_0x3fc2a9(0x22f)],0x0);if(_0x4d6cd6){_0x3259f1['WxNdM'](_0x23df2b,![])&&(_0x27a4bf=_0x3259f1[_0x3fc2a9(0x1c5)],await _0x3259f1[_0x3fc2a9(0x317)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes['ERROR'],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1['iWvCC'],_0x3259f1['LgrPU']),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1));const _0x385d35=await _0x304498[_0x3fc2a9(0x2c0)](_0x40ed9a);_0x3259f1[_0x3fc2a9(0x223)](_0x385d35,![])?(_0x27a4bf=_0x3259f1[_0x3fc2a9(0x21a)],await _0x3259f1[_0x3fc2a9(0x1e7)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x336)],_0x3259f1[_0x3fc2a9(0x1d6)]),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process['exit'](0x1)):logger[_0x3fc2a9(0x261)](_0x3fc2a9(0x305)+_0x40ed9a+'\x20');const _0x28f512=await _0x304498[_0x3fc2a9(0x26b)](_0xded7a8,_0x40ed9a);_0x3259f1[_0x3fc2a9(0x262)](_0x28f512[0x0],![])?(_0x27a4bf='Subnets:\x20'+JSON[_0x3fc2a9(0x273)](_0x28f512[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x40ed9a+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x3259f1['meDYQ'](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x328)],_0x3259f1['LgrPU']),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process['exit'](0x1)):logger['info'](_0x3fc2a9(0x31f)+JSON[_0x3fc2a9(0x273)](_0xded7a8)+'\x20'),[_0x40ed9a,_0xded7a8]=await _0x304498['setupNewCluster'](_0x40ed9a,_0xded7a8);}else{const _0xb83e9c=_0x3259f1[_0x3fc2a9(0x2f9)]['split']('|');let _0x10c90c=0x0;while(!![]){switch(_0xb83e9c[_0x10c90c++]){case'0':[_0x40ed9a,_0xded7a8]=await _0x304498['setupNewCluster'](_0x40ed9a,_0xded7a8);continue;case'1':const _0x5c6957={};_0x5c6957[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x5c6957[_0x3fc2a9(0x1cf)]=_0x3259f1['UkYRT'],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x5c6957);continue;case'2':logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x2cc)]);continue;case'3':const _0x52e1db={};_0x52e1db['type']=WS_EVENTS['LOG'],_0x52e1db['message']=_0x3259f1[_0x3fc2a9(0x1c0)],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x52e1db);continue;case'4':logger['info'](_0x3259f1[_0x3fc2a9(0x1c0)]);continue;}break;}}}}_0x4fa3bd&&_0x3259f1[_0x3fc2a9(0x1fd)](_0x17b304,AZURE)&&(await _0x304498[_0x3fc2a9(0x2fe)](),await _0x304498[_0x3fc2a9(0x27d)]());const [_0x3a3ac3,_0x3f9a72,_0x1579f1,_0x3e6995,_0x158cb3,_0x5dd1cd,_0x37b1e3]=await _0x3259f1['JJUJW'](createK8sClient,_0x304498,_0x380b04[_0x3fc2a9(0x33d)]);_0x3259f1[_0x3fc2a9(0x2b8)](_0x4fa3bd,![])&&_0x3259f1[_0x3fc2a9(0x2a5)](_0x17b304,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x313f4c=await _0x304498['setupAutoscaler'](_0x3a3ac3,_0x380b04));if(_0x3259f1[_0x3fc2a9(0x2e8)](_0x4fa3bd,![])&&global_registry[_0x3fc2a9(0x23b)])try{await _0x304498['setupHubHa'](_0x5dd1cd,_0x37b1e3,_0x380b04,_0x40ed9a,_0xded7a8);const _0x1fb975={};_0x1fb975['type']=WS_EVENTS[_0x3fc2a9(0x237)],_0x1fb975['message']=_0x3259f1[_0x3fc2a9(0x1d4)],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x1fb975);!await _0x3259f1[_0x3fc2a9(0x284)](namespaceExists,_0x3a3ac3,global_registry[_0x3fc2a9(0x1e2)])&&await _0x3259f1[_0x3fc2a9(0x20c)](createNamespace,_0x3a3ac3,global_registry['hubHaNameSpace']);logger[_0x3fc2a9(0x261)](_0x3259f1['RyKXl']);let _0x3d810a=await fs[_0x3fc2a9(0x266)](path[_0x3fc2a9(0x1e9)](__dirname,_0x3259f1[_0x3fc2a9(0x1ed)],_0x3259f1[_0x3fc2a9(0x1f2)],_0x3259f1['xWGam'],_0x3259f1[_0x3fc2a9(0x2e0)]),_0x3259f1['nfxXH']);_0x3d810a=_0x3d810a[_0x3fc2a9(0x34e)](/<RedisClientPassword>/g,_0x3259f1[_0x3fc2a9(0x21c)](encodeBase64,global_registry[_0x3fc2a9(0x230)])),_0x3d810a=_0x3d810a[_0x3fc2a9(0x34e)](/<KafkaClientPassword>/g,_0x3259f1[_0x3fc2a9(0x21c)](encodeBase64,global_registry['kafkaPassword'])),_0x3d810a=_0x3d810a[_0x3fc2a9(0x34e)](/<BstackUsername>/g,_0x3259f1['zHrVK'](encodeBase64,global_registry[_0x3fc2a9(0x2f1)])),_0x3d810a=_0x3d810a['replace'](/<BstackAccessKey>/g,_0x3259f1['sxVvj'](encodeBase64,global_registry[_0x3fc2a9(0x30a)]));const _0x1b1d56=yaml[_0x3fc2a9(0x355)](_0x3d810a);await _0x3259f1[_0x3fc2a9(0x284)](kubeApply,_0x1b1d56,_0x37b1e3),logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x318)]);let _0xe44856=_0x3259f1[_0x3fc2a9(0x321)];if(_0x3259f1[_0x3fc2a9(0x2ae)](_0x17b304,AZURE))_0xe44856=_0x3259f1[_0x3fc2a9(0x2ee)];else _0x3259f1[_0x3fc2a9(0x299)](_0x17b304,GCP)&&(_0xe44856=_0x3259f1[_0x3fc2a9(0x35e)]);logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x1fb)]);let _0x1850dc=await fs['readFileAsync'](path['join'](__dirname,_0x3259f1[_0x3fc2a9(0x1ed)],_0x3259f1[_0x3fc2a9(0x1f2)],_0x3259f1[_0x3fc2a9(0x24f)],_0x3259f1['bISWr']),_0x3259f1[_0x3fc2a9(0x207)]);_0x1850dc=_0x1850dc[_0x3fc2a9(0x34e)](/<HubHaNameSpace>/g,global_registry[_0x3fc2a9(0x1e2)]),_0x1850dc=_0x1850dc['replace'](/<StorageClassName>/g,_0xe44856);const _0x1698b4=yaml[_0x3fc2a9(0x355)](_0x1850dc);await _0x3259f1[_0x3fc2a9(0x365)](kubeApply,_0x1698b4,_0x37b1e3),logger['info'](_0x3259f1[_0x3fc2a9(0x28d)]),logger[_0x3fc2a9(0x261)](_0x3259f1['UQzCI']);let _0x3fad8c=await fs[_0x3fc2a9(0x266)](path[_0x3fc2a9(0x1e9)](__dirname,_0x3259f1[_0x3fc2a9(0x1ed)],_0x3259f1[_0x3fc2a9(0x1f2)],_0x3259f1['xWGam'],_0x3259f1[_0x3fc2a9(0x26f)]),_0x3259f1['nfxXH']);_0x3fad8c=_0x3fad8c['replace'](/<HubHaNameSpace>/g,global_registry[_0x3fc2a9(0x1e2)]),_0x3fad8c=_0x3fad8c['replace'](/<StorageClassName>/g,_0xe44856);const _0x423961=yaml['loadAll'](_0x3fad8c);await _0x3259f1['JJUJW'](kubeApply,_0x423961,_0x37b1e3),logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x270)]),logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x32c)]);let _0x571e98=await fs[_0x3fc2a9(0x266)](path['join'](__dirname,_0x3259f1[_0x3fc2a9(0x1ed)],_0x3259f1[_0x3fc2a9(0x1f2)],_0x3259f1[_0x3fc2a9(0x24f)],_0x3259f1['POdcX']),_0x3259f1['nfxXH']);_0x571e98=_0x571e98['replace'](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x571e98=_0x571e98['replace'](/<HubHaNameSpace>/g,global_registry[_0x3fc2a9(0x1e2)]);const _0x48831e=yaml[_0x3fc2a9(0x355)](_0x571e98);_0x3259f1['Ixvva'](global_registry[_0x3fc2a9(0x35b)],AZURE)&&(_0x48831e[0x0][_0x3fc2a9(0x203)][_0x3fc2a9(0x2dc)][_0x3fc2a9(0x325)][_0x3fc2a9(0x314)]={'azure.workload.identity/use':_0x3259f1[_0x3fc2a9(0x222)],..._0x48831e[0x0][_0x3fc2a9(0x203)][_0x3fc2a9(0x2dc)][_0x3fc2a9(0x325)]['labels']},_0x48831e[0x0][_0x3fc2a9(0x203)]['template'][_0x3fc2a9(0x203)][_0x3fc2a9(0x33e)]=_0x3259f1[_0x3fc2a9(0x22e)]);await _0x3259f1[_0x3fc2a9(0x28f)](kubeApply,_0x48831e,_0x37b1e3),logger['info'](_0x3259f1[_0x3fc2a9(0x2c3)]);const _0x5ab0e7={};_0x5ab0e7[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x5ab0e7[_0x3fc2a9(0x1cf)]=_0x3259f1[_0x3fc2a9(0x217)],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x5ab0e7),logger['info'](_0x3259f1[_0x3fc2a9(0x2ba)]);}catch(_0x4c57bf){const _0x5d5a3a=_0x3259f1[_0x3fc2a9(0x31a)][_0x3fc2a9(0x369)]('|');let _0x1c7aa5=0x0;while(!![]){switch(_0x5d5a3a[_0x1c7aa5++]){case'0':logger[_0x3fc2a9(0x2f6)](_0x27a4bf);continue;case'1':await _0x304498['deleteCluster'](_0x3a3ac3,global_registry[_0x3fc2a9(0x1cc)]);continue;case'2':_0x27a4bf=_0x3fc2a9(0x272)+_0x4c57bf[_0x3fc2a9(0x1cf)];continue;case'3':await _0x3259f1[_0x3fc2a9(0x260)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1['hVcky'],_0x3259f1[_0x3fc2a9(0x1d6)]);continue;case'4':process[_0x3fc2a9(0x2db)](0x1);continue;}break;}}try{_0x4f8b5c=_0x3259f1['QzkRT'](kebabCase,_0x196bb9),logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x27a)]);const _0x472ebe={};_0x472ebe[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x472ebe[_0x3fc2a9(0x1cf)]=_0x3259f1[_0x3fc2a9(0x27a)],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x472ebe);if(_0x3259f1['sBsUk'](_0x4f8b5c,_0x3259f1[_0x3fc2a9(0x22e)])){const _0x5369a7={};_0x5369a7[_0x3fc2a9(0x24e)]=_0x3259f1[_0x3fc2a9(0x29c)],_0x5369a7[_0x3fc2a9(0x246)]=_0x3259f1[_0x3fc2a9(0x29c)];const _0x5b94f8={};_0x5b94f8['name']=_0x4f8b5c,_0x5b94f8['annotations']=_0x5369a7;const _0x6655ce={};_0x6655ce[_0x3fc2a9(0x325)]=_0x5b94f8;const _0x21ea58=_0x6655ce,_0x1043e8={};_0x1043e8[_0x3fc2a9(0x209)]=_0x21ea58,await _0x3a3ac3['createNamespace'](_0x1043e8),logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x362)]);}const _0x520708={};_0x520708[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x520708['message']=_0x3259f1[_0x3fc2a9(0x2c9)],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x520708);const _0x5c535e={};_0x5c535e['type']=WS_EVENTS[_0x3fc2a9(0x237)],_0x5c535e[_0x3fc2a9(0x1cf)]=_0x3259f1['LihlI'],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x5c535e),logger['info'](_0x3259f1[_0x3fc2a9(0x204)]);let _0x27f61f={};_0x3259f1[_0x3fc2a9(0x221)](_0x17b304,AZURE)&&(_0x27f61f={'clientId':await _0x304498[_0x3fc2a9(0x234)]('turboscale-managed-identity-'+_0x32bd38)});await _0x3259f1[_0x3fc2a9(0x2ce)](addGridComponents,_0x3a3ac3,_0x3f9a72,_0x1579f1,_0x3e6995,_0x4f8b5c,_0x32bd38,_0x313f4c,_0x158cb3,_0x37b1e3,_0x27f61f),_0x27a4bf=_0x3259f1[_0x3fc2a9(0x216)],logger[_0x3fc2a9(0x261)](_0x27a4bf);const _0x19f1b3={};_0x19f1b3['type']=WS_EVENTS[_0x3fc2a9(0x237)],_0x19f1b3['message']=_0x27a4bf,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x19f1b3),_0x27a4bf=_0x3259f1[_0x3fc2a9(0x254)],logger['info'](_0x27a4bf);const _0x285216={};_0x285216[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x285216[_0x3fc2a9(0x1cf)]=_0x27a4bf,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x285216),await _0x3259f1[_0x3fc2a9(0x253)](waitForDeployment,_0x3f9a72,_0x4f8b5c,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x5dfb87=await _0x3259f1[_0x3fc2a9(0x28f)](getNamespaceUID,_0x3a3ac3,_0x4f8b5c),_0x7b9f64=global_registry[_0x3fc2a9(0x240)]?_0x3259f1[_0x3fc2a9(0x1c4)]:_0x3259f1['tOgXv'],_0x1f55f7={};_0x1f55f7['name']=_0x7b9f64,_0x1f55f7[_0x3fc2a9(0x361)]=_0x3259f1[_0x3fc2a9(0x251)];const _0x3727f8=await _0x3a3ac3[_0x3fc2a9(0x27c)](_0x1f55f7);let _0x498588=_0x304498['getGridHostname'](_0x3727f8)+'/'+_0x4f8b5c,_0x3cca76=_0x3259f1[_0x3fc2a9(0x281)];try{const _0x18492c=_0x3fc2a9(0x31e)+AG_API_URL+_0x3fc2a9(0x1fc)+_0x5dfb87,_0x4ecf2b=await _0x3259f1[_0x3fc2a9(0x365)](got,_0x18492c,_0x4f95e8);(_0x3259f1[_0x3fc2a9(0x301)](_0x4ecf2b,null)||_0x3259f1[_0x3fc2a9(0x221)](_0x4ecf2b,undefined))&&(_0x27a4bf=_0x3259f1[_0x3fc2a9(0x1c7)],await _0x3259f1['hFoaW'](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x28a)],_0x3259f1['LgrPU']),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process['exit'](0x1));_0x3259f1[_0x3fc2a9(0x263)](_0x4ecf2b[_0x3fc2a9(0x35d)],0x191)&&(_0x27a4bf=_0x3259f1[_0x3fc2a9(0x347)],await _0x3259f1[_0x3fc2a9(0x317)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1['sBCCG'],_0x3259f1[_0x3fc2a9(0x34c)],_0x3259f1['LgrPU']),logger['error'](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1));_0x3259f1[_0x3fc2a9(0x332)](_0x4ecf2b[_0x3fc2a9(0x35d)],0xc8)&&(_0x27a4bf=_0x3fc2a9(0x1f0)+JSON[_0x3fc2a9(0x273)](_0x4ecf2b),await _0x3259f1[_0x3fc2a9(0x1f6)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1['sBCCG'],_0x3259f1[_0x3fc2a9(0x24c)],_0x3259f1[_0x3fc2a9(0x1d6)]),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1));const _0x3f9f5e=JSON[_0x3fc2a9(0x214)](_0x4ecf2b[_0x3fc2a9(0x209)]);_0x3f9f5e[_0x3fc2a9(0x2df)]&&(_0x498588=_0x3f9f5e[_0x3fc2a9(0x2df)],_0x3cca76=_0x3259f1[_0x3fc2a9(0x287)]),global_registry[_0x3fc2a9(0x240)]&&(_0x3cca76=_0x3259f1[_0x3fc2a9(0x281)]);}catch(_0x2b232d){}_0x27a4bf=_0x3fc2a9(0x23f)+_0x498588+'\x20',logger[_0x3fc2a9(0x261)](_0x27a4bf);const _0xe7e325={};_0xe7e325[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0xe7e325[_0x3fc2a9(0x1cf)]=_0x27a4bf,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0xe7e325),_0x27a4bf=_0x3fc2a9(0x307)+_0x3cca76+_0x3fc2a9(0x27b)+_0x498588+_0x3fc2a9(0x2c5),logger[_0x3fc2a9(0x261)](_0x27a4bf);const _0x25d3fd={};_0x25d3fd[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x25d3fd['message']=_0x27a4bf,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x25d3fd);const _0x1e8394={};_0x1e8394[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x275)],_0x1e8394[_0x3fc2a9(0x1cf)]=_0x3fc2a9(0x316)+_0x498588,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x1e8394),await webSocketUtils[_0x3fc2a9(0x30c)](0x7d0);}catch(_0x4b281b){logger['error'](_0x3fc2a9(0x358)+_0x4b281b+'\x20\x0a'+JSON[_0x3fc2a9(0x273)](_0x4b281b[_0x3fc2a9(0x353)]));if(_0x3259f1[_0x3fc2a9(0x1d2)](_0x4fa3bd,![]))try{logger[_0x3fc2a9(0x261)](_0x3259f1['nxStU']),await _0x3259f1[_0x3fc2a9(0x2c4)](removeGridComponents,_0x3a3ac3,_0x3f9a72,_0x1579f1,_0x3e6995,_0x4f8b5c),await _0x304498[_0x3fc2a9(0x1c3)](_0x3a3ac3,global_registry[_0x3fc2a9(0x1cc)]);}catch(_0x2b3c75){logger[_0x3fc2a9(0x2f6)](_0x3fc2a9(0x2a6)+_0x2b3c75+'\x20\x0a'+JSON[_0x3fc2a9(0x273)](_0x2b3c75[_0x3fc2a9(0x353)]));}throw _0x4b281b;}}catch(_0x1f82fa){const _0x323f26=_0x3fc2a9(0x327)+_0x1f82fa+'\x20\x0a'+JSON[_0x3fc2a9(0x273)](_0x1f82fa[_0x3fc2a9(0x353)]);if(_0x3601d9){const _0x2b09a3={};_0x2b09a3[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x2b09a3[_0x3fc2a9(0x1cf)]=_0x323f26,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x2b09a3,_0x3259f1[_0x3fc2a9(0x1d6)],!![]);}await webSocketUtils[_0x3fc2a9(0x30c)](0x7d0);const _0x4d7c15={};_0x4d7c15['error']=_0x323f26,await _0x3259f1[_0x3fc2a9(0x2da)](sendInstrumentationEvent,_0x380b04,_0x3259f1[_0x3fc2a9(0x29e)],messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x21f)],_0x4d7c15,_0x380b04),logger[_0x3fc2a9(0x2f6)](_0x323f26);}process[_0x3fc2a9(0x2db)](0x0);};
|
|
1
|
+
const a9_0x75528a=a9_0x2fd2;(function(_0x19c603,_0x3d80fb){const _0x2a9679=a9_0x2fd2,_0x4682b7=_0x19c603();while(!![]){try{const _0x5e8110=parseInt(_0x2a9679(0x1fe))/0x1+parseInt(_0x2a9679(0x1e8))/0x2+-parseInt(_0x2a9679(0x29f))/0x3+-parseInt(_0x2a9679(0x33a))/0x4*(parseInt(_0x2a9679(0x249))/0x5)+-parseInt(_0x2a9679(0x277))/0x6*(-parseInt(_0x2a9679(0x334))/0x7)+-parseInt(_0x2a9679(0x204))/0x8*(parseInt(_0x2a9679(0x335))/0x9)+parseInt(_0x2a9679(0x304))/0xa;if(_0x5e8110===_0x3d80fb)break;else _0x4682b7['push'](_0x4682b7['shift']());}catch(_0x16a31e){_0x4682b7['push'](_0x4682b7['shift']());}}}(a9_0x2962,0xe9dd5));const fs=require('fs'),ws=require('ws'),path=require(a9_0x75528a(0x232)),yaml=require(a9_0x75528a(0x33f)),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x75528a(0x2aa)),{v4:uuidv4}=require(a9_0x75528a(0x2ec)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x75528a(0x2a2)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x75528a(0x2c0)),{getCloudProviderObject}=require(a9_0x75528a(0x36d)),{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_0x75528a(0x282)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x75528a(0x2a3)),{sendInstrumentationEvent}=require(a9_0x75528a(0x20e));function a9_0x2fd2(_0x546714,_0x1f057f){const _0x2962db=a9_0x2962();return a9_0x2fd2=function(_0x2fd269,_0x11d038){_0x2fd269=_0x2fd269-0x1e1;let _0x38dcb6=_0x2962db[_0x2fd269];return _0x38dcb6;},a9_0x2fd2(_0x546714,_0x1f057f);}exports[a9_0x75528a(0x37b)]=a9_0x75528a(0x366),exports[a9_0x75528a(0x2d5)]=a9_0x75528a(0x373),exports[a9_0x75528a(0x2b5)]=function(_0xf054cd){const _0x1e1e4a=a9_0x75528a,_0x1de758={};_0x1de758[_0x1e1e4a(0x313)]=_0x1e1e4a(0x358),_0x1de758[_0x1e1e4a(0x370)]='string',_0x1de758[_0x1e1e4a(0x224)]=_0x1e1e4a(0x327),_0x1de758[_0x1e1e4a(0x298)]=_0x1e1e4a(0x2d2),_0x1de758[_0x1e1e4a(0x205)]=_0x1e1e4a(0x2db),_0x1de758[_0x1e1e4a(0x281)]=_0x1e1e4a(0x31f),_0x1de758[_0x1e1e4a(0x299)]=_0x1e1e4a(0x288),_0x1de758['XtoCR']=_0x1e1e4a(0x24d),_0x1de758[_0x1e1e4a(0x1eb)]=_0x1e1e4a(0x379),_0x1de758[_0x1e1e4a(0x333)]='Flag\x20to\x20enable\x20Hub\x20HA',_0x1de758[_0x1e1e4a(0x378)]=_0x1e1e4a(0x381);const _0x5b3957=_0x1de758,_0x3ee4fe={};_0x3ee4fe[_0x1e1e4a(0x280)]=_0x5b3957[_0x1e1e4a(0x313)],_0x3ee4fe[_0x1e1e4a(0x289)]=_0x5b3957[_0x1e1e4a(0x370)];const _0x27e820={};_0x27e820['description']=_0x5b3957['pkmeV'],_0x27e820[_0x1e1e4a(0x289)]=_0x5b3957[_0x1e1e4a(0x370)];const _0x207f91={};_0x207f91[_0x1e1e4a(0x280)]=_0x5b3957[_0x1e1e4a(0x298)],_0x207f91[_0x1e1e4a(0x289)]=_0x5b3957[_0x1e1e4a(0x370)];const _0xf45920={};_0xf45920[_0x1e1e4a(0x280)]=_0x5b3957[_0x1e1e4a(0x205)],_0xf45920[_0x1e1e4a(0x289)]=_0x5b3957[_0x1e1e4a(0x370)];const _0x29378b={};_0x29378b[_0x1e1e4a(0x280)]=_0x5b3957['LDZFd'],_0x29378b[_0x1e1e4a(0x289)]=_0x5b3957[_0x1e1e4a(0x370)];const _0xdd57f8={};_0xdd57f8['description']=_0x5b3957[_0x1e1e4a(0x299)],_0xdd57f8[_0x1e1e4a(0x289)]=_0x5b3957[_0x1e1e4a(0x370)];const _0x446acb={};_0x446acb[_0x1e1e4a(0x280)]=_0x5b3957[_0x1e1e4a(0x243)],_0x446acb['type']=_0x5b3957['nOkpd'],_0x446acb[_0x1e1e4a(0x2da)]=![];const _0x54ee52={};_0x54ee52[_0x1e1e4a(0x280)]=_0x5b3957[_0x1e1e4a(0x333)],_0x54ee52[_0x1e1e4a(0x289)]=_0x5b3957[_0x1e1e4a(0x1eb)],_0x54ee52['default']=![];const _0x33b1e1={};return _0x33b1e1[_0x1e1e4a(0x231)]=_0x3ee4fe,_0x33b1e1[_0x1e1e4a(0x386)]=_0x27e820,_0x33b1e1[_0x1e1e4a(0x265)]=_0x207f91,_0x33b1e1[_0x1e1e4a(0x236)]=_0xf45920,_0x33b1e1[_0x1e1e4a(0x207)]=_0x29378b,_0x33b1e1[_0x1e1e4a(0x28d)]=_0xdd57f8,_0x33b1e1['skip-tls-cert-verify']=_0x446acb,_0x33b1e1['hub-ha']=_0x54ee52,_0xf054cd[_0x1e1e4a(0x2a5)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x33b1e1)['help'](_0x5b3957[_0x1e1e4a(0x378)])[_0x1e1e4a(0x331)];},exports[a9_0x75528a(0x305)]=async function(_0x5e0e2a){const _0x208777=a9_0x75528a,_0x39f78c={'mniRN':'azurefile-csi-premium','PCJke':_0x208777(0x241),'JXTVN':_0x208777(0x291),'JbyOn':_0x208777(0x2da),'zuSoX':_0x208777(0x358),'dXhCN':'string','qyimW':_0x208777(0x327),'SRorl':_0x208777(0x2d2),'crsUH':_0x208777(0x2db),'HhuaB':_0x208777(0x31f),'xjPWx':_0x208777(0x288),'MXvwY':_0x208777(0x24d),'lIDrC':_0x208777(0x379),'pIMbu':'Flag\x20to\x20enable\x20Hub\x20HA','HTaZc':_0x208777(0x381),'qNBPG':_0x208777(0x27e),'JxHmP':function(_0x3f53af,_0x3ece6e){return _0x3f53af===_0x3ece6e;},'mOoSX':'error','gqhlM':_0x208777(0x1e1),'phfEp':_0x208777(0x210),'YsgCA':function(_0x462826,_0x55c390,_0x139fd1,_0x42ed52,_0xae46b6,_0x509bc3,_0x3eba04,_0x4d9321,_0x2f0df4,_0x50404d,_0x56ede6,_0x30e40c){return _0x462826(_0x55c390,_0x139fd1,_0x42ed52,_0xae46b6,_0x509bc3,_0x3eba04,_0x4d9321,_0x2f0df4,_0x50404d,_0x56ede6,_0x30e40c);},'bLstW':function(_0x50318a,_0x27b514){return _0x50318a!==_0x27b514;},'Mgsms':function(_0xaae14,_0x2e9beb){return _0xaae14(_0x2e9beb);},'EAgxM':_0x208777(0x229),'cYwji':_0x208777(0x34e),'KgLXi':_0x208777(0x1ed),'AiFYS':_0x208777(0x311),'LWcvf':'UkRNzNYCBU','iChnw':_0x208777(0x2fc),'ASDok':_0x208777(0x32b),'kChcc':_0x208777(0x275),'zKyZp':function(_0x33aa01){return _0x33aa01();},'iwneX':function(_0x34d612){return _0x34d612();},'wpVTb':function(_0x496ac8,_0x1514b7){return _0x496ac8!==_0x1514b7;},'yimuN':_0x208777(0x1fb),'hLjPs':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','SAxHn':function(_0x5bc091,_0x356773,_0x2c7a8e,_0x36d1eb,_0x42c0d6,_0x16be2a,_0x104162){return _0x5bc091(_0x356773,_0x2c7a8e,_0x36d1eb,_0x42c0d6,_0x16be2a,_0x104162);},'VZNlr':_0x208777(0x29e),'UTnig':_0x208777(0x2e5),'mEEdq':function(_0x3d71cb,_0x1f1be9,_0x9ca509,_0x20dccb,_0x17ec88,_0x165e14,_0x2b114){return _0x3d71cb(_0x1f1be9,_0x9ca509,_0x20dccb,_0x17ec88,_0x165e14,_0x2b114);},'GCLlI':function(_0x330c24){return _0x330c24();},'VFkZO':_0x208777(0x30a),'MnNmu':_0x208777(0x257),'GnIbE':_0x208777(0x30d),'bMpBH':function(_0x4fff85,_0x29c1f8){return _0x4fff85===_0x29c1f8;},'xWzQS':'JdGsF','IzWzC':'gNLhj','ysAzl':_0x208777(0x273),'npwZP':_0x208777(0x2b4),'meMqZ':function(_0x4bf3d3,_0x510e37,_0x4f7d73,_0x5d3bf5,_0x1d8425,_0x236a5b,_0x4ead5b,_0xf93bd9){return _0x4bf3d3(_0x510e37,_0x4f7d73,_0x5d3bf5,_0x1d8425,_0x236a5b,_0x4ead5b,_0xf93bd9);},'RtCNB':_0x208777(0x2fa),'lxQZD':function(_0x235cc6,_0x2582b1){return _0x235cc6!==_0x2582b1;},'nVAZc':_0x208777(0x27b),'LsjkX':_0x208777(0x340),'hYyLA':function(_0x59b2e5,_0x3a4c66,_0x4623ba,_0x429e7a,_0x33dd39,_0x5c1cf5,_0x40af8d,_0x3ec6f8){return _0x59b2e5(_0x3a4c66,_0x4623ba,_0x429e7a,_0x33dd39,_0x5c1cf5,_0x40af8d,_0x3ec6f8);},'rwXiz':_0x208777(0x2e3),'qjNJR':function(_0x2c47ee,_0x566999){return _0x2c47ee===_0x566999;},'cMDTN':function(_0x13f98c,_0x4b63a3){return _0x13f98c!==_0x4b63a3;},'RJwrZ':_0x208777(0x307),'uWtIj':_0x208777(0x26d),'DDmtD':_0x208777(0x20f),'nvFUQ':_0x208777(0x27d),'cOmJn':function(_0x38a85c,_0x596ac9){return _0x38a85c!==_0x596ac9;},'tauXS':'kneHq','QPTeT':function(_0x26260b,_0x8b385c){return _0x26260b===_0x8b385c;},'UvyjM':_0x208777(0x25c),'LgNwI':_0x208777(0x25f),'CxsGr':'GET','iaKKr':function(_0x2e4768,_0x305b3b,_0x3f458d){return _0x2e4768(_0x305b3b,_0x3f458d);},'aVgyB':function(_0x58321b,_0x3d5fb1){return _0x58321b!==_0x3d5fb1;},'BFBjf':_0x208777(0x26c),'fyBUu':function(_0x88e73c,_0x22178d,_0x376225){return _0x88e73c(_0x22178d,_0x376225);},'aYaHw':_0x208777(0x228),'YFOzL':_0x208777(0x320),'dCriQ':_0x208777(0x24c),'OXOGh':'create-grid-checks-null-response','GkuwT':function(_0x3acd06,_0x3ff017){return _0x3acd06===_0x3ff017;},'SYGVY':function(_0x43849c,_0x23a80e){return _0x43849c!==_0x23a80e;},'UhbEM':_0x208777(0x268),'ZTkOt':_0x208777(0x220),'mnVkZ':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','zFgTD':_0x208777(0x2e7),'XdJvs':function(_0x3e56bd,_0x349258){return _0x3e56bd!==_0x349258;},'RwcQR':'doINV','tDsIH':'create-grid-checks-non-200','wEEvI':'Grid\x20profile\x20fetched\x20from\x20backend','NRRyP':_0x208777(0x397),'bjBcX':_0x208777(0x287),'cLVjG':_0x208777(0x2ae),'Sveei':_0x208777(0x20c),'imwEN':'HbRNH','KnrBC':_0x208777(0x2a7),'kQmel':_0x208777(0x278),'EjDJQ':function(_0xea5e62,_0x4b4a25){return _0xea5e62!==_0x4b4a25;},'dAQqd':_0x208777(0x22d),'PvYiX':function(_0x1ed716,_0x30873d){return _0x1ed716===_0x30873d;},'bcwVD':function(_0x13fcf7,_0x44a8e0){return _0x13fcf7!==_0x44a8e0;},'caJqN':_0x208777(0x357),'BGRSM':_0x208777(0x1f8),'GeFag':_0x208777(0x276),'MOmZD':function(_0xaa3e15,_0x4bccd4){return _0xaa3e15===_0x4bccd4;},'PgNmG':function(_0x2f615c,_0x4b9d8e){return _0x2f615c===_0x4b9d8e;},'xScpB':'fTTQL','pRGcV':function(_0x2ee817,_0x29abf9){return _0x2ee817===_0x29abf9;},'vSyHZ':_0x208777(0x2dc),'QXExN':function(_0x2cf556,_0x2c0dad){return _0x2cf556!==_0x2c0dad;},'DBsJu':_0x208777(0x212),'vMylu':_0x208777(0x1f6),'UYPxD':function(_0x32c557,_0x2d00ae,_0x513a28,_0x415362,_0x39b2f3,_0x39b5a,_0x177e8a,_0x4ad923,_0xde9cbc,_0x316d42,_0x2752de,_0x60fb22){return _0x32c557(_0x2d00ae,_0x513a28,_0x415362,_0x39b2f3,_0x39b5a,_0x177e8a,_0x4ad923,_0xde9cbc,_0x316d42,_0x2752de,_0x60fb22);},'fJzfB':function(_0x35da1f,_0x470e5e){return _0x35da1f===_0x470e5e;},'uSAvG':_0x208777(0x35b),'fBGlr':function(_0x219281,_0x22b2ff){return _0x219281===_0x22b2ff;},'kQcce':_0x208777(0x2c2),'EOFEN':_0x208777(0x37d),'fHNTl':function(_0xae0701,_0x53a447){return _0xae0701!==_0x53a447;},'mkNTy':function(_0x5b20d0,_0x31b9c6){return _0x5b20d0!==_0x31b9c6;},'DQXVT':_0x208777(0x24e),'EwSpS':'XDntQ','CWdJM':function(_0x2e6d2f,_0x4ed8a1,_0x5e83b5,_0x4cfd03,_0x578188,_0x5d2eb1,_0x551137,_0x30ddc0,_0x2e92ef,_0x25c377,_0x37c640,_0x44d921){return _0x2e6d2f(_0x4ed8a1,_0x5e83b5,_0x4cfd03,_0x578188,_0x5d2eb1,_0x551137,_0x30ddc0,_0x2e92ef,_0x25c377,_0x37c640,_0x44d921);},'bVfEb':function(_0x2972f5,_0x14b3cd){return _0x2972f5===_0x14b3cd;},'nsPEv':_0x208777(0x21b),'cxjoL':_0x208777(0x2bd),'mYpKC':function(_0x178077,_0xffd736){return _0x178077(_0xffd736);},'uZJQg':function(_0x11c4cb,_0xaa64e5){return _0x11c4cb===_0xaa64e5;},'JZQKY':'NBLYy','cdSdV':_0x208777(0x206),'AETzT':'8|1|4|2|6|0|3|7|5','YRRmK':function(_0x568396,_0x23e825){return _0x568396!==_0x23e825;},'PaAeh':_0x208777(0x29a),'SQwWn':function(_0x507f3f,_0xf4d095){return _0x507f3f===_0xf4d095;},'lgDqQ':_0x208777(0x326),'tepLE':_0x208777(0x350),'qXOJe':function(_0x21512b,_0x5eda66){return _0x21512b===_0x5eda66;},'dTIGa':_0x208777(0x318),'IpMwM':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','kugfC':function(_0x3832ee,_0x161d9a){return _0x3832ee!=_0x161d9a;},'ZREXI':function(_0x567fe4,_0x4ab1ac){return _0x567fe4!=_0x4ab1ac;},'UJUSD':function(_0x3beb48,_0x1a3c90){return _0x3beb48!==_0x1a3c90;},'tDhaL':function(_0x3825ee,_0x57b82d){return _0x3825ee>_0x57b82d;},'dzmIQ':function(_0x27a33e,_0x27792d){return _0x27a33e===_0x27792d;},'mzXol':_0x208777(0x20d),'DRugg':'pre-spawned-subnets-not-selected','aZEuE':function(_0x4729fb,_0x157047){return _0x4729fb===_0x157047;},'FZCaK':_0x208777(0x322),'yhCQG':'pre-spawned-invalid-vpc','bNwZu':function(_0x30af18,_0x315d04){return _0x30af18===_0x315d04;},'vyZJN':function(_0x3feff0,_0x4a191f,_0x3becf4,_0xf73d1d,_0x351efa,_0x2d0bcf,_0x133d0e,_0x30999a){return _0x3feff0(_0x4a191f,_0x3becf4,_0xf73d1d,_0x351efa,_0x2d0bcf,_0x133d0e,_0x30999a);},'NHTHZ':_0x208777(0x1f5),'JJGVL':_0x208777(0x394),'KeuIL':_0x208777(0x22c),'ybeCI':'Cluster\x20created\x20successfully','LTclt':function(_0x58c293,_0x430a20){return _0x58c293===_0x430a20;},'NXxXt':function(_0x553f0d,_0x54e653,_0x255539){return _0x553f0d(_0x54e653,_0x255539);},'saVVm':function(_0x1d03ef,_0x217673){return _0x1d03ef===_0x217673;},'lBDSi':function(_0x1030ef,_0xe417eb){return _0x1030ef===_0xe417eb;},'qyBHx':function(_0x13e4e6,_0x51b017){return _0x13e4e6===_0x51b017;},'pIHzC':_0x208777(0x297),'TaBuz':'Adding\x20Secret\x20Mapping','TJrVW':_0x208777(0x294),'alyJg':'templates','VqUAb':'hubharesources','OBCaE':_0x208777(0x38e),'tozel':'utf-8','CmOxt':function(_0x6bc7a5,_0x375785){return _0x6bc7a5(_0x375785);},'tnjnT':function(_0x4718b2,_0x77dc40){return _0x4718b2(_0x77dc40);},'Hbosk':function(_0x27516d,_0x4428e4,_0x4063e4){return _0x27516d(_0x4428e4,_0x4063e4);},'LNnfe':_0x208777(0x1e6),'ucUMi':_0x208777(0x2c5),'IEhAr':function(_0x36fe31,_0x58f548){return _0x36fe31===_0x58f548;},'LrbjU':_0x208777(0x295),'pVLOJ':_0x208777(0x36b),'lSovA':_0x208777(0x25b),'iQsJA':_0x208777(0x2ba),'DaFmd':_0x208777(0x356),'Cpxfd':_0x208777(0x2c7),'MopSM':'Adding\x20Turboscale\x20Uploader\x20deployment...','PXlCZ':'turboscale-uploader.yaml','arOXN':function(_0x9e211c,_0x53ab8d){return _0x9e211c===_0x53ab8d;},'PhgUU':_0x208777(0x2c4),'yEnVa':_0x208777(0x32c),'RIsCK':_0x208777(0x323),'TSpdW':'3|4|2|1|0','gsfFK':_0x208777(0x253),'islws':_0x208777(0x33d),'oGODn':function(_0x3ad712,_0x33baf4){return _0x3ad712!==_0x33baf4;},'LANuh':_0x208777(0x2b1),'CQZot':'Namespace\x20Created','pkSuF':_0x208777(0x384),'UqOjp':_0x208777(0x36c),'pyrJG':_0x208777(0x392),'vbxEk':function(_0x37bb77,_0x54f94f,_0x1e0d7c,_0x1b9c3d,_0x2cb656,_0x511f29,_0x22376d,_0x2fb0b9,_0x48c058,_0x5c8553,_0x28b471){return _0x37bb77(_0x54f94f,_0x1e0d7c,_0x1b9c3d,_0x2cb656,_0x511f29,_0x22376d,_0x2fb0b9,_0x48c058,_0x5c8553,_0x28b471);},'GzGWI':'Grid\x20spawned\x20on\x20the\x20cluster','ggjHa':_0x208777(0x308),'IsaDU':function(_0x3c5cc5,_0x24f9fd,_0x31febf,_0x597e03,_0x3f0ca0){return _0x3c5cc5(_0x24f9fd,_0x31febf,_0x597e03,_0x3f0ca0);},'HySUG':function(_0x54d87e,_0x1dbe91,_0x30cd66){return _0x54d87e(_0x1dbe91,_0x30cd66);},'jaOnT':_0x208777(0x285),'dwzJN':_0x208777(0x274),'nGjzK':'ingress-nginx','venrN':_0x208777(0x332),'sJiJl':function(_0x3059d3,_0x5d11ad,_0x3571a6,_0x4c5a68,_0x4ac1e5,_0x50787b,_0x2105cf,_0x8f9e6){return _0x3059d3(_0x5d11ad,_0x3571a6,_0x4c5a68,_0x4ac1e5,_0x50787b,_0x2105cf,_0x8f9e6);},'YWMYu':_0x208777(0x2dd),'tzYRL':function(_0x3483fb,_0x2f2afe){return _0x3483fb===_0x2f2afe;},'dgYWx':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','RMYTR':_0x208777(0x22f),'ADZNj':function(_0x5b3c58,_0xffb793){return _0x5b3c58!==_0xffb793;},'vjcWP':function(_0x16cb7b,_0x2b47db,_0x42f13b,_0xf2798b,_0x14d7bc,_0x2c5146,_0x2aadee,_0x26e438){return _0x16cb7b(_0x2b47db,_0x42f13b,_0xf2798b,_0x14d7bc,_0x2c5146,_0x2aadee,_0x26e438);},'PjIOB':_0x208777(0x208),'HyWDe':_0x208777(0x247),'jehLB':function(_0xdf5ce1,_0x5907fa,_0x4e5dc5,_0x58d208,_0x315043,_0x449555){return _0xdf5ce1(_0x5907fa,_0x4e5dc5,_0x58d208,_0x315043,_0x449555);},'FDUbQ':_0x208777(0x24a)};let _0x3e3801=![],_0x49cd7e=![],_0x1df599,_0x3a31be,_0xa9f31f,_0x1a8246,_0xbe72a,_0x18293f,_0x5cba7e,_0x46ed5f,_0xf64940,_0x45e492,_0x15e041,_0x162011,_0x506873,_0x499685,_0x4f384d=0x1,_0x104d04=0xe;try{global_registry[_0x208777(0x2f4)]=_0x39f78c[_0x208777(0x25a)](uuidv4),global_registry[_0x208777(0x354)]=![];!fs[_0x208777(0x284)](_0x39f78c['iwneX'](getCredentialsPath))&&(_0x39f78c[_0x208777(0x262)](_0x39f78c['yimuN'],_0x39f78c[_0x208777(0x32a)])?_0x492a54[_0x208777(0x354)]=!![]:(console['error'](_0x39f78c['hLjPs']),await _0x39f78c[_0x208777(0x336)](sendInstrumentationEvent,_0x5e0e2a,_0x39f78c[_0x208777(0x2a9)],messageTypes['ERROR'],_0x39f78c[_0x208777(0x1ea)],null,_0x5e0e2a),process[_0x208777(0x2b9)](0x1)));await _0x39f78c['mEEdq'](sendInstrumentationEvent,_0x5e0e2a,_0x39f78c[_0x208777(0x2a9)],messageTypes[_0x208777(0x2de)],null,null,_0x5e0e2a);const _0x18fa2c=JSON[_0x208777(0x35e)](fs['readFileSync'](_0x39f78c[_0x208777(0x25e)](getCredentialsPath)));global_registry['bstackUsername']=_0x18fa2c['Browserstack']['username'],global_registry[_0x208777(0x2e6)]=_0x18fa2c[_0x208777(0x2b1)][_0x208777(0x374)];const _0x2d3830=WS_ENDPOINT[_0x208777(0x286)](_0x39f78c[_0x208777(0x2b7)],_0x18fa2c[_0x208777(0x2b1)]['username'])[_0x208777(0x286)](_0x39f78c[_0x208777(0x28c)],_0x18fa2c[_0x208777(0x2b1)][_0x208777(0x374)]),_0x3e71f3={};_0x3e71f3[_0x208777(0x300)]=ws,_0x3e71f3[_0x208777(0x37c)]=0x36ee80,_0x162011=new ReconnectingWebSocket(_0x2d3830,[],_0x3e71f3),logger[_0x208777(0x1f2)](_0x39f78c[_0x208777(0x34a)]),webSocketUtils[_0x208777(0x2bc)](_0x162011,_0x5e0e2a[_0x208777(0x1fd)],_0x5e0e2a[_0x208777(0x374)]);const _0x4ab324=_0x5e0e2a['gridName']||DEFAULT_GRID_NAME;if(_0x5e0e2a['clusterName']||_0x5e0e2a[_0x208777(0x240)]||_0x5e0e2a[_0x208777(0x207)]){if(_0x39f78c[_0x208777(0x2d8)](_0x39f78c[_0x208777(0x351)],_0x39f78c[_0x208777(0x222)]))throw new _0x3e3f03(_0x208777(0x20a)+_0x2bcf1c+_0x208777(0x30e));else{!(_0x5e0e2a['clusterName']&&_0x5e0e2a[_0x208777(0x240)]&&_0x5e0e2a['region'])&&(_0x39f78c['wpVTb'](_0x39f78c[_0x208777(0x238)],_0x39f78c[_0x208777(0x238)])?_0x1db052[_0x208777(0x354)]=!![]:(_0x1df599=_0x39f78c[_0x208777(0x22e)],await _0x39f78c[_0x208777(0x383)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x230)],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1)));![AWS,AZURE,GCP][_0x208777(0x367)](_0x5e0e2a[_0x208777(0x240)][_0x208777(0x38a)]())&&(_0x39f78c[_0x208777(0x2d9)](_0x39f78c[_0x208777(0x342)],_0x39f78c[_0x208777(0x342)])?_0x5f9798=_0x39f78c[_0x208777(0x33c)]:(_0x1df599=_0x39f78c['LsjkX'],await _0x39f78c[_0x208777(0x226)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes['ERROR'],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x233)],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1)));_0x5e0e2a['privateGrid']&&_0x39f78c[_0x208777(0x2bf)](_0x5e0e2a[_0x208777(0x2d4)][_0x208777(0x38a)](),_0x39f78c[_0x208777(0x242)])&&(_0x39f78c[_0x208777(0x21e)](_0x39f78c[_0x208777(0x2e2)],_0x39f78c['uWtIj'])?global_registry[_0x208777(0x354)]=!![]:_0x521d7a['info']('Found\x20VPC:\x20'+_0x1e63df+'\x20'));global_registry[_0x208777(0x240)]=_0x5e0e2a['cloudProvider'],global_registry[_0x208777(0x2fd)]=_0x5e0e2a['region'],global_registry[_0x208777(0x246)]=_0x5e0e2a[_0x208777(0x246)];const _0x2957fc=await _0x39f78c[_0x208777(0x203)](getCloudProviderObject,_0x5e0e2a[_0x208777(0x240)],_0x5e0e2a[_0x208777(0x246)],_0x4ab324,_0x162011,webSocketUtils,_0x5e0e2a),_0x25c615=await _0x2957fc['isClusterPresent']();!_0x25c615?_0x39f78c[_0x208777(0x262)](_0x39f78c['DDmtD'],_0x39f78c[_0x208777(0x35f)])?(logger['info']('Cluster:\x20'+_0x5e0e2a['clusterName']+_0x208777(0x22a)),_0x3e3801=![],_0x49cd7e=!![]):_0x1ea002=null:_0x39f78c[_0x208777(0x1e7)](_0x39f78c['tauXS'],_0x39f78c[_0x208777(0x29d)])?(_0x5df85c['region']=_0x3ba2e0,_0x5eacf3['cloudProvider']=_0x56fce0,_0x630a02[_0x208777(0x2d6)]=!![]):_0x3e3801=!![],_0xa9f31f=_0x5e0e2a['clusterName'],_0x3a31be=_0x5e0e2a[_0x208777(0x240)][_0x208777(0x38a)](),_0x1a8246=_0x5e0e2a['region'];}}else _0x5e0e2a[_0x208777(0x347)]&&(_0x39f78c[_0x208777(0x2f0)](_0x39f78c[_0x208777(0x296)],_0x39f78c[_0x208777(0x24b)])?(_0x1815e8=_0x37f62b[_0x208777(0x30b)],_0x3e16a7=_0x39f78c[_0x208777(0x38c)]):global_registry[_0x208777(0x347)]=_0x5e0e2a['gridProfile']);global_registry[_0x208777(0x2a4)]=_0x5e0e2a['gridName'];const _0x352673={'method':_0x39f78c[_0x208777(0x2cd)],'headers':_0x39f78c[_0x208777(0x1e2)](getAuthHeader,_0x18fa2c[_0x208777(0x2b1)][_0x208777(0x36e)],_0x18fa2c['Browserstack']['password']),'throwHttpErrors':![]},_0x166aba={};_0x166aba[_0x208777(0x2a4)]=_0x4ab324;const _0x404fe6=_0x166aba;if(_0x49cd7e){if(_0x39f78c[_0x208777(0x2b6)](_0x39f78c['BFBjf'],_0x39f78c[_0x208777(0x38f)])){const _0x3bf6c9={'azure.workload.identity/use':_0x39f78c[_0x208777(0x242)],..._0x105682[0x0][_0x208777(0x31d)][_0x208777(0x2ee)][_0x208777(0x213)]['labels']};_0x483cdb[0x0][_0x208777(0x31d)][_0x208777(0x2ee)][_0x208777(0x213)][_0x208777(0x2e0)]=_0x3bf6c9,_0xfe6ec[0x0]['spec'][_0x208777(0x2ee)][_0x208777(0x31d)]['serviceAccountName']=_0x39f78c['JbyOn'];}else _0x404fe6[_0x208777(0x207)]=_0x1a8246,_0x404fe6['cloudProvider']=_0x3a31be,_0x404fe6['newCluster']=!![];}const _0x85bdb6=_0x208777(0x346)+AG_API_URL+'/packages/cli/create-grid-checks',_0x34f7fd={'searchParams':_0x404fe6,'throwHttpErrors':![],..._0x352673},_0x87bedf=_0x34f7fd,_0xd2ccc6=await _0x39f78c[_0x208777(0x2eb)](got,_0x85bdb6,_0x87bedf);(_0x39f78c[_0x208777(0x2bf)](_0xd2ccc6,null)||_0x39f78c[_0x208777(0x369)](_0xd2ccc6,undefined))&&(_0x39f78c[_0x208777(0x262)](_0x39f78c[_0x208777(0x26f)],_0x39f78c[_0x208777(0x315)])?(_0x1df599=_0x39f78c[_0x208777(0x1e3)],await _0x39f78c[_0x208777(0x383)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c['OXOGh'],_0x39f78c['mOoSX']),logger['error'](_0x1df599),process[_0x208777(0x2b9)](0x1)):_0x3143fb['error'](_0x208777(0x317)+_0x49450a+'\x20\x0a'+_0x52d787[_0x208777(0x2e9)](_0x496fa7['stack'])));_0x39f78c[_0x208777(0x2df)](_0xd2ccc6['statusCode'],0x191)&&(_0x39f78c['SYGVY'](_0x39f78c[_0x208777(0x2f1)],_0x39f78c[_0x208777(0x2ff)])?(_0x1df599=_0x39f78c[_0x208777(0x279)],await _0x39f78c[_0x208777(0x226)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c['VZNlr'],_0x39f78c[_0x208777(0x27f)],_0x39f78c['mOoSX']),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1)):_0x33a091=_0x57f5f3[_0x2c6669[_0x208777(0x347)]]);_0x39f78c[_0x208777(0x37e)](_0xd2ccc6[_0x208777(0x272)],0xc8)&&(_0x39f78c[_0x208777(0x2d9)](_0x39f78c[_0x208777(0x34f)],_0x39f78c[_0x208777(0x34f)])?(_0x50cc00[_0x208777(0x269)](_0x208777(0x260)+_0x145242[_0x208777(0x246)]+_0x208777(0x22a)),_0x367d2d=![],_0x29b605=!![]):(_0x1df599='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0xd2ccc6[_0x208777(0x38d)]),await _0x39f78c[_0x208777(0x226)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes['ERROR'],_0x39f78c[_0x208777(0x2a9)],_0x39f78c['tDsIH'],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process['exit'](0x1)));const _0x20f548=JSON[_0x208777(0x35e)](_0xd2ccc6[_0x208777(0x38d)]),_0x46853c={};_0x46853c[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x2ef)],_0x46853c['message']=_0x39f78c[_0x208777(0x223)],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x46853c);const _0x5b4844={};_0x5b4844['type']=WS_EVENTS[_0x208777(0x1f7)],_0x5b4844[_0x208777(0x266)]=_0x39f78c[_0x208777(0x2c1)],webSocketUtils['sendEventToBackend'](_0x162011,_0x5b4844);_0x20f548['alreadyPresent']&&(_0x39f78c[_0x208777(0x262)](_0x39f78c[_0x208777(0x1ff)],_0x39f78c[_0x208777(0x1ff)])?_0x2f71b2[_0x208777(0x269)]('Found\x20Subnets:\x20'+_0x519e84[_0x208777(0x2e9)](_0x1afb1d)+'\x20'):(_0x1df599=_0x208777(0x337)+_0x4ab324+_0x208777(0x30f),await _0x39f78c[_0x208777(0x383)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x309)],_0x39f78c[_0x208777(0x218)]),logger['error'](_0x1df599),process[_0x208777(0x2b9)](0x1)));const _0x4465f7=_0x20f548[_0x208777(0x2b3)];let _0x4be71e=_0x4465f7[_0x20f548[_0x208777(0x258)]];_0x5e0e2a[_0x208777(0x347)]&&(_0x39f78c['XdJvs'](_0x39f78c[_0x208777(0x33e)],_0x39f78c[_0x208777(0x217)])?_0x4be71e=_0x4465f7[_0x5e0e2a[_0x208777(0x347)]]:_0x2000d7[_0x208777(0x347)]=_0x55606e['gridProfile']);global_registry[_0x208777(0x1f3)]=![];if(_0x5e0e2a[_0x208777(0x363)]){if(_0x39f78c[_0x208777(0x37e)](_0x39f78c[_0x208777(0x2f6)],_0x39f78c[_0x208777(0x1ee)])){const _0x567149=_0x39f78c[_0x208777(0x330)][_0x208777(0x34d)]('|');let _0xad585f=0x0;while(!![]){switch(_0x567149[_0xad585f++]){case'0':global_registry['enableHubHa']=!![];continue;case'1':global_registry[_0x208777(0x359)]=_0x39f78c['kChcc'];continue;case'2':global_registry[_0x208777(0x24f)]=_0x39f78c[_0x208777(0x239)];continue;case'3':global_registry['hubHaNameSpace']=_0x39f78c[_0x208777(0x227)];continue;case'4':logger['info'](_0x39f78c[_0x208777(0x343)]);continue;}break;}}else{const _0x52558b={};_0x52558b[_0x208777(0x280)]=_0x39f78c[_0x208777(0x1f1)],_0x52558b[_0x208777(0x289)]=_0x39f78c[_0x208777(0x2e4)];const _0x82523b={};_0x82523b[_0x208777(0x280)]=_0x39f78c[_0x208777(0x303)],_0x82523b['type']=_0x39f78c['dXhCN'];const _0x1c5603={};_0x1c5603['description']=_0x39f78c['SRorl'],_0x1c5603[_0x208777(0x289)]=_0x39f78c[_0x208777(0x2e4)];const _0x2a8b2a={};_0x2a8b2a[_0x208777(0x280)]=_0x39f78c[_0x208777(0x316)],_0x2a8b2a[_0x208777(0x289)]=_0x39f78c[_0x208777(0x2e4)];const _0x34006b={};_0x34006b['description']=_0x39f78c[_0x208777(0x290)],_0x34006b[_0x208777(0x289)]=_0x39f78c[_0x208777(0x2e4)];const _0x19a4a4={};_0x19a4a4[_0x208777(0x280)]=_0x39f78c['xjPWx'],_0x19a4a4['type']=_0x39f78c['dXhCN'];const _0x596fd7={};_0x596fd7[_0x208777(0x280)]=_0x39f78c[_0x208777(0x250)],_0x596fd7[_0x208777(0x289)]=_0x39f78c[_0x208777(0x2a0)],_0x596fd7[_0x208777(0x2da)]=![];const _0x5c1dd9={};_0x5c1dd9[_0x208777(0x280)]=_0x39f78c[_0x208777(0x371)],_0x5c1dd9[_0x208777(0x289)]=_0x39f78c[_0x208777(0x2a0)],_0x5c1dd9[_0x208777(0x2da)]=![];const _0x4098f5={};return _0x4098f5[_0x208777(0x231)]=_0x52558b,_0x4098f5[_0x208777(0x386)]=_0x82523b,_0x4098f5[_0x208777(0x265)]=_0x1c5603,_0x4098f5[_0x208777(0x236)]=_0x2a8b2a,_0x4098f5[_0x208777(0x207)]=_0x34006b,_0x4098f5[_0x208777(0x28d)]=_0x19a4a4,_0x4098f5[_0x208777(0x328)]=_0x596fd7,_0x4098f5[_0x208777(0x219)]=_0x5c1dd9,_0x4981d3[_0x208777(0x2a5)](_0x1490ff[_0x208777(0x348)])[_0x208777(0x2b8)](_0x562f70)[_0x208777(0x1f9)](_0x4098f5)[_0x208777(0x381)](_0x39f78c[_0x208777(0x393)])[_0x208777(0x331)];}}if(_0x39f78c[_0x208777(0x2bf)](_0x3e3801,![])&&_0x39f78c[_0x208777(0x2df)](_0x49cd7e,![])){if(_0x39f78c[_0x208777(0x32f)](_0x39f78c['dAQqd'],_0x39f78c[_0x208777(0x2ab)])){const _0x101f66={};_0x101f66[_0x208777(0x289)]=_0x9ccf90[_0x208777(0x1f7)],_0x101f66['message']=_0x208777(0x20a)+_0x20394d+_0x208777(0x28b),_0x359fc4[_0x208777(0x23a)](_0x126de5,_0x101f66,_0x39f78c[_0x208777(0x21f)]),_0x21934e['info'](_0x208777(0x20a)+_0x18dc1a+_0x208777(0x28b)),_0x484f8f=!![];if(_0x39f78c[_0x208777(0x369)](_0x416de3,!![]))throw new _0x2bd052(_0x208777(0x20a)+_0x3378d7+_0x208777(0x30e));}else{_0x39f78c[_0x208777(0x1e9)](_0x4be71e,undefined)&&(_0x39f78c[_0x208777(0x380)](_0x39f78c[_0x208777(0x200)],_0x39f78c['caJqN'])?_0x59986d[_0x208777(0x21d)]():(_0x1df599=_0x39f78c[_0x208777(0x264)],await _0x39f78c['hYyLA'](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes['ERROR'],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x254)],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1)));global_registry[_0x208777(0x37a)]=_0x4be71e['id'],_0x1df599=_0x208777(0x339)+_0x4ab324+_0x208777(0x234)+_0x4be71e[_0x208777(0x237)]+_0x208777(0x2a6),logger['info'](_0x1df599);const _0x4f067f={};_0x4f067f['type']=WS_EVENTS['LOG'],_0x4f067f[_0x208777(0x266)]=_0x1df599,webSocketUtils[_0x208777(0x23a)](_0x162011,_0x4f067f),_0x3a31be=_0x4be71e['cloudProvider'],_0xa9f31f=_0x4be71e[_0x208777(0x246)],_0x1a8246=_0x4be71e[_0x208777(0x207)],_0xbe72a=_0x4be71e[_0x208777(0x244)],_0x18293f=_0x4be71e['instanceType'],_0x5cba7e=_0x4be71e['vpc'],_0x46ed5f=_0x4be71e[_0x208777(0x29c)],_0xf64940=_0x4be71e['subnets'],_0x45e492=_0x4be71e[_0x208777(0x26a)],_0x4f384d=_0x4be71e[_0x208777(0x2d7)],_0x104d04=_0x4be71e[_0x208777(0x2f2)],_0x506873=_0x20f548[_0x208777(0x202)],_0x499685=_0x20f548['browserVersion'];_0x5cba7e&&_0x39f78c['MOmZD'](_0x5cba7e['length'],0x0)&&(_0x39f78c[_0x208777(0x23d)](_0x39f78c[_0x208777(0x2ce)],_0x39f78c[_0x208777(0x2ce)])?_0x5cba7e=null:_0x519381[_0x208777(0x354)]=!![]);if(_0xf64940&&_0x39f78c[_0x208777(0x22b)](_0xf64940[_0x208777(0x2e8)],0x0)){if(_0x39f78c[_0x208777(0x369)](_0x39f78c[_0x208777(0x2fe)],_0x39f78c[_0x208777(0x2fe)]))_0xf64940=null;else{const _0x11fea8={};_0x11fea8[_0x208777(0x289)]=_0x14a056[_0x208777(0x1f7)],_0x11fea8[_0x208777(0x266)]=_0x536ca2,_0x2e72f3[_0x208777(0x23a)](_0x3084e6,_0x11fea8,_0x39f78c[_0x208777(0x218)],!![]);}}_0x39f78c[_0x208777(0x1e7)](_0x4be71e[_0x208777(0x2d4)],undefined)&&_0x4be71e[_0x208777(0x2d4)]&&(_0x39f78c[_0x208777(0x2fb)](_0x39f78c[_0x208777(0x338)],_0x39f78c[_0x208777(0x245)])?global_registry[_0x208777(0x354)]=!![]:_0x508065=_0x39f78c[_0x208777(0x36f)]);_0x39f78c[_0x208777(0x387)](updateGlobalRegistryWithConfig,_0x3a31be,_0xa9f31f,_0x1a8246,_0xbe72a,_0x18293f,_0x45e492,_0x4be71e,_0x506873,_0x499685,_0x4f384d,_0x104d04);if(global_registry[_0x208777(0x1f3)]){if(_0x39f78c[_0x208777(0x27c)](_0x39f78c[_0x208777(0x28a)],_0x39f78c[_0x208777(0x28a)]))_0x39f78c[_0x208777(0x390)](updateGlobalRegistryForHubHa,_0x20f548[_0x208777(0x344)]);else{const _0x49a9bd=_0x39f78c[_0x208777(0x2cf)][_0x208777(0x34d)]('|');let _0x98caf3=0x0;while(!![]){switch(_0x49a9bd[_0x98caf3++]){case'0':_0x23349b=_0x72421f[_0x208777(0x244)];continue;case'1':_0x39f78c[_0x208777(0x30c)](_0x54790e,_0x7a2796,_0x54f943,_0x370ff7,_0x255fab,_0x2a9a32,_0x134fda,_0x5b7fe0,_0x3d6831,_0x5deac3,_0xb31325,_0xeee5c7);continue;case'2':_0x10d179=_0x14baa4[_0x208777(0x2d7)];continue;case'3':_0x38e4a6='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x52c601;continue;case'4':_0x427a0a=_0x494cd9[_0x208777(0x202)];continue;case'5':_0x4d2d67[_0x208777(0x269)](_0x227e54);continue;case'6':_0x39f78c[_0x208777(0x33b)](_0x3afb8b[_0x208777(0x2d4)],_0x570501)&&_0x4cee84[_0x208777(0x2d4)]&&(_0x22fa2d[_0x208777(0x354)]=!![]);continue;case'7':_0x324e0b=null;continue;case'8':_0x23b6fc=_0x25bcc8[_0x208777(0x26a)];continue;case'9':_0x50eeb1=_0x285c2a[_0x208777(0x28f)];continue;case'10':_0x26cf4d=null;continue;case'11':_0x183215['enableHubHa']&&_0x39f78c[_0x208777(0x390)](_0x4a9151,_0x32bcf0[_0x208777(0x23f)]);continue;case'12':_0xcb4a09=null;continue;case'13':_0x1cb6bd=_0x340d5e[_0x208777(0x2f2)];continue;case'14':const _0x3e1973={};_0x3e1973[_0x208777(0x289)]=_0x3e4785[_0x208777(0x1f7)],_0x3e1973[_0x208777(0x266)]=_0xd816c4,_0x1d7eb0[_0x208777(0x23a)](_0x4e4882,_0x3e1973);continue;case'15':_0x229711=_0x4a27fc['browserVersion'];continue;}break;}}}}}else{if(_0x39f78c['PgNmG'](_0x49cd7e,!![])){if(_0x39f78c[_0x208777(0x353)](_0x39f78c[_0x208777(0x21c)],_0x39f78c[_0x208777(0x1ef)])){const _0x2be441=_0x39f78c[_0x208777(0x2e1)][_0x208777(0x34d)]('|');let _0x2c5907=0x0;while(!![]){switch(_0x2be441[_0x2c5907++]){case'0':_0x3c4792='Spawning\x20the\x20grid\x20'+_0x1751d6+_0x208777(0x26b)+_0x2ae1e9+'\x27';continue;case'1':_0x11fdff[_0x208777(0x246)]=_0xd14841;continue;case'2':_0x1673de[_0x208777(0x2fd)]=_0x178af4;continue;case'3':const _0x139411={};_0x139411[_0x208777(0x289)]=_0x1dd554[_0x208777(0x1f7)],_0x139411[_0x208777(0x266)]=_0x5a7a89,_0x3bae96[_0x208777(0x23a)](_0x3bd64a,_0x139411);continue;case'4':_0x16ff32[_0x208777(0x269)](_0x57266d);continue;case'5':_0x2744c0[_0x208777(0x202)]=_0x4b4e49[_0x208777(0x202)];continue;case'6':_0x2a1b12[_0x208777(0x211)]=_0x16ac9b[_0x208777(0x211)];continue;case'7':const _0x3d761b={};_0x3d761b[_0x208777(0x289)]=_0x2c130f[_0x208777(0x2ef)],_0x3d761b[_0x208777(0x266)]=_0x39f78c[_0x208777(0x223)],_0xa945c0[_0x208777(0x23a)](_0x424198,_0x3d761b);continue;case'8':_0x34398b[_0x208777(0x240)]=_0x26d06e;continue;}break;}}else{_0x1df599=_0x208777(0x360)+_0x4ab324,logger[_0x208777(0x269)](_0x1df599);const _0x45da95={};_0x45da95[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0x45da95[_0x208777(0x266)]=_0x1df599,webSocketUtils[_0x208777(0x23a)](_0x162011,_0x45da95),_0xbe72a=_0x4be71e['concurrency'],_0x18293f=_0x4be71e[_0x208777(0x28f)],_0x5cba7e=null,_0x46ed5f=null,_0xf64940=null,_0x45e492=_0x4be71e['s3bucket'],_0x4f384d=_0x4be71e[_0x208777(0x2d7)],_0x104d04=_0x4be71e[_0x208777(0x2f2)],_0x506873=_0x20f548[_0x208777(0x202)],_0x499685=_0x20f548[_0x208777(0x211)],_0x39f78c[_0x208777(0x310)](_0x4be71e['privateGrid'],undefined)&&_0x4be71e[_0x208777(0x2d4)]&&(_0x39f78c[_0x208777(0x36a)](_0x39f78c[_0x208777(0x2f8)],_0x39f78c['EwSpS'])?global_registry[_0x208777(0x354)]=!![]:_0x50db49=_0x39f78c['KgLXi']),_0x39f78c['CWdJM'](updateGlobalRegistryWithConfig,_0x3a31be,_0xa9f31f,_0x1a8246,_0xbe72a,_0x18293f,_0x45e492,_0x4be71e,_0x506873,_0x499685,_0x4f384d,_0x104d04),global_registry[_0x208777(0x1f3)]&&(_0x39f78c[_0x208777(0x372)](_0x39f78c[_0x208777(0x21a)],_0x39f78c['cxjoL'])?_0x39f78c[_0x208777(0x390)](_0xe34f34,_0x15036a[_0x208777(0x23f)]):_0x39f78c['mYpKC'](updateGlobalRegistryForHubHa,_0x20f548[_0x208777(0x23f)]));}}else{if(_0x39f78c[_0x208777(0x255)](_0x39f78c[_0x208777(0x2af)],_0x39f78c[_0x208777(0x201)]))_0x5dd5fd=!![];else{const _0x53f3b0=_0x39f78c['AETzT'][_0x208777(0x34d)]('|');let _0x419e0a=0x0;while(!![]){switch(_0x53f3b0[_0x419e0a++]){case'0':global_registry['clusterRegion']=_0x1a8246;continue;case'1':_0x1df599='Spawning\x20the\x20grid\x20'+_0x4ab324+_0x208777(0x26b)+_0xa9f31f+'\x27';continue;case'2':const _0x3d4587={};_0x3d4587[_0x208777(0x289)]=WS_EVENTS['LOG'],_0x3d4587[_0x208777(0x266)]=_0x1df599,webSocketUtils[_0x208777(0x23a)](_0x162011,_0x3d4587);continue;case'3':global_registry[_0x208777(0x246)]=_0xa9f31f;continue;case'4':logger[_0x208777(0x269)](_0x1df599);continue;case'5':global_registry[_0x208777(0x211)]=_0x20f548[_0x208777(0x211)];continue;case'6':global_registry['cloudProvider']=_0x3a31be;continue;case'7':global_registry[_0x208777(0x202)]=_0x20f548[_0x208777(0x202)];continue;case'8':const _0x6659fa={};_0x6659fa['type']=WS_EVENTS[_0x208777(0x2ef)],_0x6659fa['message']=_0x39f78c['cYwji'],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x6659fa);continue;}break;}}}}const _0x30dbc5=await _0x39f78c[_0x208777(0x203)](getCloudProviderObject,_0x3a31be,_0xa9f31f,_0x4ab324,_0x162011,webSocketUtils,_0x5e0e2a);if(_0x39f78c[_0x208777(0x382)](_0x3a31be,AZURE)){if(_0x39f78c[_0x208777(0x2d9)](_0x39f78c[_0x208777(0x29b)],_0x39f78c[_0x208777(0x29b)])){const _0x3d75a6=_0x39f78c[_0x208777(0x364)][_0x208777(0x34d)]('|');let _0x55046c=0x0;while(!![]){switch(_0x3d75a6[_0x55046c++]){case'0':_0x183e4b[_0x208777(0x24f)]=_0x39f78c['LWcvf'];continue;case'1':_0x5ee08b[_0x208777(0x1f3)]=!![];continue;case'2':_0x426920[_0x208777(0x2be)]=_0x39f78c[_0x208777(0x227)];continue;case'3':_0x10bdfd[_0x208777(0x269)](_0x39f78c[_0x208777(0x343)]);continue;case'4':_0xe97fe3['kafkaPassword']=_0x39f78c['kChcc'];continue;}break;}}else _0x30dbc5['sendResourceDataToHST']();}let _0x31643b;if(_0x39f78c[_0x208777(0x365)](_0x3e3801,![])){_0x1df599='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x1a8246+').';const _0xd5d2f2={};_0xd5d2f2[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0xd5d2f2[_0x208777(0x266)]=_0x1df599,webSocketUtils[_0x208777(0x23a)](_0x162011,_0xd5d2f2),logger[_0x208777(0x269)](_0x1df599);const _0x2a91ad=await _0x30dbc5[_0x208777(0x306)]();if(_0x2a91ad){if(_0x39f78c['YRRmK'](_0x39f78c[_0x208777(0x2c3)],_0x39f78c[_0x208777(0x31c)])){const _0x51bf16={};_0x51bf16[_0x208777(0x289)]=WS_EVENTS['LOG'],_0x51bf16[_0x208777(0x266)]=_0x208777(0x20a)+_0xa9f31f+_0x208777(0x28b),webSocketUtils[_0x208777(0x23a)](_0x162011,_0x51bf16,_0x39f78c[_0x208777(0x21f)]),logger['info'](_0x208777(0x20a)+_0xa9f31f+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x3e3801=!![];if(_0x39f78c[_0x208777(0x341)](_0x49cd7e,!![])){if(_0x39f78c[_0x208777(0x2f0)](_0x39f78c['dTIGa'],_0x39f78c[_0x208777(0x395)]))throw new Error(_0x208777(0x20a)+_0xa9f31f+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else _0x39f78c[_0x208777(0x390)](_0x32cc96,_0x1228cd['uploaderVersion']);}}else _0x30fd5b=null;}else{const _0xa1d1d7={};_0xa1d1d7[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0xa1d1d7[_0x208777(0x266)]=_0x39f78c[_0x208777(0x355)],webSocketUtils['sendEventToBackend'](_0x162011,_0xa1d1d7),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x355)]);const _0x1c967e=_0x39f78c['kugfC'](_0x5cba7e,null)&&_0x39f78c[_0x208777(0x37e)](_0x5cba7e,undefined),_0x4ed09a=_0x39f78c[_0x208777(0x389)](_0xf64940,null)&&_0x39f78c['UJUSD'](_0xf64940,undefined)&&_0x39f78c[_0x208777(0x2ea)](_0xf64940[_0x208777(0x2e8)],0x0);if(_0x1c967e){_0x39f78c[_0x208777(0x2ad)](_0x4ed09a,![])&&(_0x1df599=_0x39f78c[_0x208777(0x2d0)],await _0x39f78c['hYyLA'](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x361)],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1));const _0x5a3e0c=await _0x30dbc5['isVPCPresent'](_0x5cba7e);_0x39f78c[_0x208777(0x362)](_0x5a3e0c,![])?(_0x1df599=_0x39f78c['FZCaK'],await _0x39f78c[_0x208777(0x226)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x28e)],_0x39f78c['mOoSX']),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1)):logger['info'](_0x208777(0x2cc)+_0x5cba7e+'\x20');const _0x595543=await _0x30dbc5['isSubnetsValid'](_0xf64940,_0x5cba7e);_0x39f78c[_0x208777(0x377)](_0x595543[0x0],![])?(_0x1df599=_0x208777(0x349)+JSON['stringify'](_0x595543[0x1])+_0x208777(0x388)+_0x5cba7e+_0x208777(0x34c),await _0x39f78c[_0x208777(0x32d)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes['ERROR'],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x32e)],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1)):logger[_0x208777(0x269)]('Found\x20Subnets:\x20'+JSON['stringify'](_0xf64940)+'\x20'),[_0x5cba7e,_0xf64940]=await _0x30dbc5[_0x208777(0x1e5)](_0x5cba7e,_0xf64940);}else{const _0x71f588=_0x39f78c[_0x208777(0x319)]['split']('|');let _0xc7c3c6=0x0;while(!![]){switch(_0x71f588[_0xc7c3c6++]){case'0':logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x35a)]);continue;case'1':[_0x5cba7e,_0xf64940]=await _0x30dbc5[_0x208777(0x1e5)](_0x5cba7e,_0xf64940);continue;case'2':const _0x29eb97={};_0x29eb97[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0x29eb97[_0x208777(0x266)]=_0x39f78c[_0x208777(0x35a)],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x29eb97);continue;case'3':const _0x2324e2={};_0x2324e2['type']=WS_EVENTS[_0x208777(0x1f7)],_0x2324e2[_0x208777(0x266)]=_0x39f78c[_0x208777(0x375)],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x2324e2);continue;case'4':logger['info'](_0x39f78c[_0x208777(0x375)]);continue;}break;}}}}_0x3e3801&&_0x39f78c[_0x208777(0x27a)](_0x3a31be,AZURE)&&(await _0x30dbc5[_0x208777(0x321)](),await _0x30dbc5['createOtherResources']());const [_0x413b6c,_0x5a0763,_0x13413c,_0x19bb22,_0x2ec9e9,_0xaf3aa4,_0x4263e7]=await _0x39f78c[_0x208777(0x398)](createK8sClient,_0x30dbc5,_0x5e0e2a[_0x208777(0x35d)]);_0x39f78c[_0x208777(0x214)](_0x3e3801,![])&&_0x39f78c['lBDSi'](_0x3a31be,AWS)&&(global_registry[_0x208777(0x2c8)]=!![],_0x31643b=await _0x30dbc5['setupAutoscaler'](_0x413b6c,_0x5e0e2a));if(_0x39f78c[_0x208777(0x293)](_0x3e3801,![])&&global_registry[_0x208777(0x1f3)])try{await _0x30dbc5[_0x208777(0x396)](_0xaf3aa4,_0x4263e7,_0x5e0e2a,_0x5cba7e,_0xf64940);const _0x566a12={};_0x566a12[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0x566a12[_0x208777(0x266)]=_0x39f78c['pIHzC'],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x566a12);!await _0x39f78c[_0x208777(0x398)](namespaceExists,_0x413b6c,global_registry[_0x208777(0x2be)])&&await _0x39f78c[_0x208777(0x2eb)](createNamespace,_0x413b6c,global_registry['hubHaNameSpace']);logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x2ca)]);let _0x59229b=await fs[_0x208777(0x263)](path[_0x208777(0x324)](__dirname,_0x39f78c[_0x208777(0x1e4)],_0x39f78c[_0x208777(0x2ac)],_0x39f78c['VqUAb'],_0x39f78c[_0x208777(0x235)]),_0x39f78c[_0x208777(0x225)]);_0x59229b=_0x59229b[_0x208777(0x286)](/<RedisClientPassword>/g,_0x39f78c[_0x208777(0x325)](encodeBase64,global_registry[_0x208777(0x24f)])),_0x59229b=_0x59229b[_0x208777(0x286)](/<KafkaClientPassword>/g,_0x39f78c['mYpKC'](encodeBase64,global_registry[_0x208777(0x359)])),_0x59229b=_0x59229b[_0x208777(0x286)](/<BstackUsername>/g,_0x39f78c[_0x208777(0x2f5)](encodeBase64,global_registry['bstackUsername'])),_0x59229b=_0x59229b['replace'](/<BstackAccessKey>/g,_0x39f78c[_0x208777(0x376)](encodeBase64,global_registry['bstackAccesskey']));const _0x586dfb=yaml['loadAll'](_0x59229b);await _0x39f78c['Hbosk'](kubeApply,_0x586dfb,_0x4263e7),logger[_0x208777(0x269)](_0x39f78c['LNnfe']);let _0x2fafaa=_0x39f78c[_0x208777(0x209)];if(_0x39f78c[_0x208777(0x270)](_0x3a31be,AZURE))_0x2fafaa=_0x39f78c['mniRN'];else _0x39f78c[_0x208777(0x270)](_0x3a31be,GCP)&&(_0x2fafaa=_0x39f78c['KgLXi']);logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x302)]);let _0x5ca19e=await fs[_0x208777(0x263)](path[_0x208777(0x324)](__dirname,_0x39f78c[_0x208777(0x1e4)],_0x39f78c[_0x208777(0x2ac)],_0x39f78c['VqUAb'],_0x39f78c[_0x208777(0x38b)]),_0x39f78c[_0x208777(0x225)]);_0x5ca19e=_0x5ca19e[_0x208777(0x286)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x5ca19e=_0x5ca19e[_0x208777(0x286)](/<StorageClassName>/g,_0x2fafaa);const _0x1392a8=yaml['loadAll'](_0x5ca19e);await _0x39f78c['NXxXt'](kubeApply,_0x1392a8,_0x4263e7),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x261)]),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x2a1)]);let _0x5abd58=await fs[_0x208777(0x263)](path[_0x208777(0x324)](__dirname,_0x39f78c[_0x208777(0x1e4)],_0x39f78c[_0x208777(0x2ac)],_0x39f78c['VqUAb'],_0x39f78c['DaFmd']),_0x39f78c[_0x208777(0x225)]);_0x5abd58=_0x5abd58['replace'](/<HubHaNameSpace>/g,global_registry[_0x208777(0x2be)]),_0x5abd58=_0x5abd58['replace'](/<StorageClassName>/g,_0x2fafaa);const _0x92c344=yaml[_0x208777(0x26e)](_0x5abd58);await _0x39f78c[_0x208777(0x1e2)](kubeApply,_0x92c344,_0x4263e7),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x23c)]),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x2f7)]);let _0x41042c=await fs[_0x208777(0x263)](path[_0x208777(0x324)](__dirname,_0x39f78c['TJrVW'],_0x39f78c[_0x208777(0x2ac)],_0x39f78c[_0x208777(0x34b)],_0x39f78c[_0x208777(0x2a8)]),_0x39f78c[_0x208777(0x225)]);_0x41042c=_0x41042c[_0x208777(0x286)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x41042c=_0x41042c[_0x208777(0x286)](/<HubHaNameSpace>/g,global_registry[_0x208777(0x2be)]);const _0x1e0294=yaml[_0x208777(0x26e)](_0x41042c);_0x39f78c['arOXN'](global_registry[_0x208777(0x240)],AZURE)&&(_0x1e0294[0x0][_0x208777(0x31d)][_0x208777(0x2ee)][_0x208777(0x213)][_0x208777(0x2e0)]={'azure.workload.identity/use':_0x39f78c[_0x208777(0x242)],..._0x1e0294[0x0][_0x208777(0x31d)][_0x208777(0x2ee)]['metadata'][_0x208777(0x2e0)]},_0x1e0294[0x0][_0x208777(0x31d)][_0x208777(0x2ee)][_0x208777(0x31d)][_0x208777(0x1fc)]=_0x39f78c[_0x208777(0x1fa)]);await _0x39f78c['NXxXt'](kubeApply,_0x1e0294,_0x4263e7),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x31a)]);const _0x409b3b={};_0x409b3b['type']=WS_EVENTS[_0x208777(0x1f7)],_0x409b3b[_0x208777(0x266)]=_0x39f78c[_0x208777(0x283)],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x409b3b),logger[_0x208777(0x269)](_0x39f78c['RIsCK']);}catch(_0x3b5224){const _0x30ae15=_0x39f78c[_0x208777(0x271)][_0x208777(0x34d)]('|');let _0x5bec00=0x0;while(!![]){switch(_0x30ae15[_0x5bec00++]){case'0':process[_0x208777(0x2b9)](0x1);continue;case'1':await _0x30dbc5[_0x208777(0x267)](_0x413b6c,global_registry[_0x208777(0x2fd)]);continue;case'2':await _0x39f78c[_0x208777(0x226)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x20b)],_0x39f78c['mOoSX']);continue;case'3':_0x1df599=_0x208777(0x312)+_0x3b5224[_0x208777(0x266)];continue;case'4':logger[_0x208777(0x23e)](_0x1df599);continue;}break;}}try{_0x15e041=_0x39f78c[_0x208777(0x376)](kebabCase,_0x4ab324),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x215)]);const _0x476b5d={};_0x476b5d[_0x208777(0x289)]=WS_EVENTS['LOG'],_0x476b5d['message']=_0x39f78c['islws'],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x476b5d);if(_0x39f78c[_0x208777(0x1ec)](_0x15e041,_0x39f78c[_0x208777(0x1fa)])){const _0x5df276={};_0x5df276[_0x208777(0x25d)]=_0x39f78c[_0x208777(0x368)],_0x5df276[_0x208777(0x329)]=_0x39f78c[_0x208777(0x368)];const _0x56503c={};_0x56503c[_0x208777(0x237)]=_0x15e041,_0x56503c[_0x208777(0x35c)]=_0x5df276;const _0x1e254b={};_0x1e254b[_0x208777(0x213)]=_0x56503c;const _0x197686=_0x1e254b,_0x1592fa={};_0x1592fa[_0x208777(0x38d)]=_0x197686,await _0x413b6c[_0x208777(0x31b)](_0x1592fa),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x221)]);}const _0xdcd192={};_0xdcd192[_0x208777(0x289)]=WS_EVENTS['LOG'],_0xdcd192[_0x208777(0x266)]=_0x39f78c['pkSuF'],webSocketUtils[_0x208777(0x23a)](_0x162011,_0xdcd192);const _0x498792={};_0x498792['type']=WS_EVENTS[_0x208777(0x1f7)],_0x498792[_0x208777(0x266)]=_0x39f78c[_0x208777(0x248)],webSocketUtils[_0x208777(0x23a)](_0x162011,_0x498792),logger[_0x208777(0x269)](_0x39f78c[_0x208777(0x251)]);let _0x2112b4={};_0x39f78c[_0x208777(0x341)](_0x3a31be,AZURE)&&(_0x2112b4={'clientId':await _0x30dbc5['getResourceClientId']('turboscale-managed-identity-'+_0xa9f31f)});await _0x39f78c[_0x208777(0x2b0)](addGridComponents,_0x413b6c,_0x5a0763,_0x13413c,_0x19bb22,_0x15e041,_0xa9f31f,_0x31643b,_0x2ec9e9,_0x4263e7,_0x2112b4),_0x1df599=_0x39f78c[_0x208777(0x2b2)],logger[_0x208777(0x269)](_0x1df599);const _0x4a993d={};_0x4a993d[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0x4a993d[_0x208777(0x266)]=_0x1df599,webSocketUtils[_0x208777(0x23a)](_0x162011,_0x4a993d),_0x1df599=_0x39f78c[_0x208777(0x216)],logger[_0x208777(0x269)](_0x1df599);const _0x49eed5={};_0x49eed5[_0x208777(0x289)]=WS_EVENTS['LOG'],_0x49eed5['message']=_0x1df599,webSocketUtils[_0x208777(0x23a)](_0x162011,_0x49eed5),await _0x39f78c[_0x208777(0x2f3)](waitForDeployment,_0x5a0763,_0x15e041,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x57d1d5=await _0x39f78c[_0x208777(0x352)](getNamespaceUID,_0x413b6c,_0x15e041),_0x268a33=global_registry[_0x208777(0x354)]?_0x39f78c[_0x208777(0x2c9)]:_0x39f78c[_0x208777(0x259)],_0x5e97f9={};_0x5e97f9[_0x208777(0x237)]=_0x268a33,_0x5e97f9[_0x208777(0x256)]=_0x39f78c[_0x208777(0x23b)];const _0x32d8a6=await _0x413b6c[_0x208777(0x292)](_0x5e97f9);let _0x1da81f=_0x30dbc5['getGridHostname'](_0x32d8a6)+'/'+_0x15e041,_0x2f1668=_0x39f78c['gqhlM'];try{const _0xf10f92='https://'+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x57d1d5,_0x1f2c9c=await _0x39f78c[_0x208777(0x37f)](got,_0xf10f92,_0x352673);(_0x39f78c[_0x208777(0x214)](_0x1f2c9c,null)||_0x39f78c[_0x208777(0x23d)](_0x1f2c9c,undefined))&&(_0x1df599=_0x39f78c[_0x208777(0x301)],await _0x39f78c[_0x208777(0x385)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x2d1)],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1));_0x39f78c[_0x208777(0x2ed)](_0x1f2c9c[_0x208777(0x272)],0x191)&&(_0x1df599=_0x39f78c['dgYWx'],await _0x39f78c[_0x208777(0x226)](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes['ERROR'],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x345)],_0x39f78c[_0x208777(0x218)]),logger['error'](_0x1df599),process['exit'](0x1));_0x39f78c['ADZNj'](_0x1f2c9c[_0x208777(0x272)],0xc8)&&(_0x1df599='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x208777(0x2e9)](_0x1f2c9c),await _0x39f78c['vjcWP'](reportToGalactusAndSendToEDS,_0x5e0e2a,_0x162011,_0x1df599,messageTypes[_0x208777(0x31e)],_0x39f78c[_0x208777(0x2a9)],_0x39f78c[_0x208777(0x2d3)],_0x39f78c[_0x208777(0x218)]),logger[_0x208777(0x23e)](_0x1df599),process[_0x208777(0x2b9)](0x1));const _0x8b22a6=JSON['parse'](_0x1f2c9c[_0x208777(0x38d)]);_0x8b22a6[_0x208777(0x30b)]&&(_0x1da81f=_0x8b22a6[_0x208777(0x30b)],_0x2f1668=_0x39f78c[_0x208777(0x38c)]),global_registry[_0x208777(0x354)]&&(_0x2f1668=_0x39f78c[_0x208777(0x36f)]);}catch(_0x536b34){}_0x1df599='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x1da81f+'\x20',logger[_0x208777(0x269)](_0x1df599);const _0xc658cc={};_0xc658cc[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0xc658cc['message']=_0x1df599,webSocketUtils['sendEventToBackend'](_0x162011,_0xc658cc),_0x1df599=_0x208777(0x314)+_0x2f1668+_0x208777(0x2bb)+_0x1da81f+'/wd/hub',logger[_0x208777(0x269)](_0x1df599);const _0xf6269c={};_0xf6269c[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0xf6269c[_0x208777(0x266)]=_0x1df599,webSocketUtils[_0x208777(0x23a)](_0x162011,_0xf6269c);const _0x2c787d={};_0x2c787d['type']=WS_EVENTS[_0x208777(0x2c6)],_0x2c787d[_0x208777(0x266)]='CLI\x20run\x20finished:\x20'+_0x1da81f,webSocketUtils[_0x208777(0x23a)](_0x162011,_0x2c787d),await webSocketUtils['delay'](0x7d0);}catch(_0x46ff58){logger[_0x208777(0x23e)](_0x208777(0x2cb)+_0x46ff58+'\x20\x0a'+JSON[_0x208777(0x2e9)](_0x46ff58[_0x208777(0x1f4)]));if(_0x39f78c[_0x208777(0x2ed)](_0x3e3801,![]))try{logger[_0x208777(0x269)](_0x39f78c['HyWDe']),await _0x39f78c[_0x208777(0x1f0)](removeGridComponents,_0x413b6c,_0x5a0763,_0x13413c,_0x19bb22,_0x15e041),await _0x30dbc5[_0x208777(0x267)](_0x413b6c,global_registry[_0x208777(0x2fd)]);}catch(_0x270f0d){logger[_0x208777(0x23e)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x270f0d+'\x20\x0a'+JSON[_0x208777(0x2e9)](_0x270f0d[_0x208777(0x1f4)]));}throw _0x46ff58;}}catch(_0x24f499){const _0x5447ff=_0x208777(0x2f9)+_0x24f499+'\x20\x0a'+JSON[_0x208777(0x2e9)](_0x24f499[_0x208777(0x1f4)]);if(_0x162011){const _0x3ba8e4={};_0x3ba8e4[_0x208777(0x289)]=WS_EVENTS[_0x208777(0x1f7)],_0x3ba8e4[_0x208777(0x266)]=_0x5447ff,webSocketUtils[_0x208777(0x23a)](_0x162011,_0x3ba8e4,_0x39f78c[_0x208777(0x218)],!![]);}await webSocketUtils[_0x208777(0x391)](0x7d0);const _0x520685={};_0x520685[_0x208777(0x23e)]=_0x5447ff,await _0x39f78c[_0x208777(0x203)](sendInstrumentationEvent,_0x5e0e2a,_0x39f78c['VZNlr'],messageTypes['ERROR'],_0x39f78c[_0x208777(0x252)],_0x520685,_0x5e0e2a),logger[_0x208777(0x23e)](_0x5447ff);}process[_0x208777(0x2b9)](0x0);};function a9_0x2962(){const _0x408e17=['MopSM','DQXVT','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','prespawned-cluster-args-not-passed','QXExN','browserstack','clusterRegion','vSyHZ','ZTkOt','WebSocket','venrN','LrbjU','qyimW','15643860ztGjQC','handler','isClusterPresent','QjCXl','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','bjBcX','<UsernamePlaceholder>','route53','YsgCA','Adding\x20Websocket\x20listeners','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','fHNTl','3|2|0|4|1','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','UxmSS','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','YFOzL','crsUH','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','SVLLR','JJGVL','PhgUU','createNamespace','tepLE','spec','ERROR','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','CQbKb','updateClusterAlreadyPresent','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Hub\x20HA\x20setup\x20completed\x20successfully.','join','CmOxt','jiuDd','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','skip-tls-cert-verify','managedBy','yimuN','Enabling\x20Hub\x20HA\x20flow','Created\x20Hub\x20HA\x20resources','vyZJN','NHTHZ','EjDJQ','kQmel','argv','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','cNdOj','7dHvYrO','16480575JiaPra','SAxHn','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','DBsJu','Will\x20be\x20spawning\x20the\x20grid\x20','404IVZYEh','bLstW','mniRN','Creating\x20namespace','cLVjG','js-yaml','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','qXOJe','nVAZc','ASDok','uploaderVersion','RMYTR','https://','gridProfile','create','Subnets:\x20','GnIbE','VqUAb','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','split','CLI\x20run\x20started','RwcQR','GriQd','xWzQS','HySUG','fBGlr','isPrivateGrid','IpMwM','bitnami-kafka.yaml','IFqzm','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','kafkaPassword','KeuIL','hDUFe','annotations','skipTlsCertVerify','parse','nvFUQ','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','DRugg','aZEuE','hubHa','AiFYS','SQwWn','grid','includes','LANuh','JxHmP','mkNTy','bitnami-redis.yaml','Spawning\x20grid\x20on\x20to\x20the\x20cluster','../../cloudproviders/utils','username','gqhlM','pgtko','pIMbu','bVfEb','Create\x20a\x20new\x20Automation\x20grid.','password','ybeCI','tnjnT','bNwZu','CCiDa','boolean','gridProfileId','command','connectionTimeout','ZIyxs','XdJvs','Hbosk','bcwVD','help','YRRmK','meMqZ','Namespace\x20created','sJiJl','grid-profile','UYPxD','\x20are\x20not\x20present\x20in\x20VPC:\x20','ZREXI','toLowerCase','pVLOJ','PCJke','body','browserstack-secret.yaml','BFBjf','Mgsms','delay','Spawning\x20Grid\x20on\x20the\x20Cluster','HTaZc','2|0|1|3|4','dTIGa','setupHubHa','HiEOg','NXxXt','http','iaKKr','dCriQ','TJrVW','setupNewCluster','Added\x20Secret\x20Mapping','cOmJn','2043946mSjerk','PvYiX','UTnig','nOkpd','oGODn','premium-rwo','KnrBC','EOFEN','jehLB','zuSoX','debug','enableHubHa','stack','pre-spawned-invalid-subnets','yUUsb','LOG','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','options','JbyOn','quXRB','serviceAccountName','user','1364072LGUknS','NRRyP','caJqN','cdSdV','hubVersion','mEEdq','8AyFmYf','aWhKm','bZKyP','region','get-grid-url-non-200','ucUMi','Cluster\x20','gsfFK','SvSsl','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','../../utils/instrumentationUtils','cGMOf','3|5|14|0|9|7|10|12|8|2|13|4|15|6|1|11','browserVersion','yZikN','metadata','saVVm','islws','ggjHa','Sveei','mOoSX','hub-ha','nsPEv','VfYig','kQcce','sendResourceDataToHST','cMDTN','qNBPG','MylYg','CQZot','IzWzC','cYwji','pkmeV','tozel','hYyLA','iChnw','gWaKF','7|0|4|3|8|2|1|5|6','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','pRGcV','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.','AwoAF','npwZP','get-grid-url-auth-failed','RtCNB','grid-name','path','rwXiz','\x20using\x20\x27','OBCaE','cloud-provider','name','ysAzl','LWcvf','sendEventToBackend','nGjzK','Cpxfd','PgNmG','error','kafkaUploader','cloudProvider','https','JXTVN','XtoCR','concurrency','vMylu','clusterName','Deleting\x20the\x20CloudFormation\x20Stacks','UqOjp','60535jrWySj','grid-spawning-failed','LgNwI','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Skip\x20insecure\x20cert\x20verification.','LlaTK','redisPassword','MXvwY','pyrJG','FDUbQ','hub-ha-deployments-failed','GeFag','uZJQg','namespace','<PasswordPlaceholder>','defaultGridProfile','dwzJN','zKyZp','Added\x20Redis\x20deployment.','xdfBQ','createdBy','GCLlI','OQPyX','Cluster:\x20','lSovA','wpVTb','readFileAsync','BGRSM','cluster-name','message','deleteCluster','IuuwJ','info','s3bucket','\x20in\x20existing\x20cluster\x20\x27','QOaDB','STxHY','loadAll','aYaHw','IEhAr','TSpdW','statusCode','moajC','ingress-nginx-controller','Epyd5nXbRK','create-grid-checks-invalid-profile','3972618rApPhq','4|3|2|1|0','mnVkZ','LTclt','mnYAq','fJzfB','ZEKeX','warn','zFgTD','description','LDZFd','../../config/constants','yEnVa','existsSync','private-ingress-nginx-controller','replace','create-grid-checks-grid-already-exists','Create\x20a\x20private/public\x20grid.','type','uSAvG','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','MnNmu','private-grid','yhCQG','instanceType','HhuaB','true','readNamespacedService','qyBHx','../..','Adding\x20Redis\x20deployment...','UvyjM','Creating\x20Hub\x20HA\x20resources','KjCOb','hrxdV','HOkkZ','PaAeh','securityGroups','tauXS','create-grid-called','1801929rUuvDE','lIDrC','iQsJA','../../config/logger','../../utils/createk8sClient','gridName','usage','\x27\x20grid\x20profile','sHKPi','PXlCZ','VZNlr','got','dAQqd','alyJg','dzmIQ','tQunJ','JZQKY','vbxEk','Browserstack','GzGWI','gridProfiles','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','builder','aVgyB','VFkZO','epilogue','exit','Adding\x20Kafka\x20deployment...','://','addListeners','SJodf','hubHaNameSpace','qjNJR','../../utils/utilityMethods','wEEvI','mzhjc','lgDqQ','Added\x20Turboscale\x20Uploader\x20deployment.','efs-csi','CLI_RUN_FINISHED','Added\x20Kafka\x20deployment.','isNewAWSCluster','jaOnT','TaBuz','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','Found\x20VPC:\x20','CxsGr','xScpB','phfEp','mzXol','YWMYu','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','PjIOB','privateGrid','desc','newCluster','minNodes','bMpBH','lxQZD','default','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','yRRnV','get-grid-url-null-response','INFO','GkuwT','labels','EAgxM','RJwrZ','non-aws-azure-cluster','dXhCN','init-not-called','bstackAccesskey','create-grid-checks-auth-failed','length','stringify','tDhaL','fyBUu','uuid','tzYRL','template','CLI_RUN_STARTED','QPTeT','UhbEM','maxNodes','IsaDU','requestId','mYpKC','imwEN'];a9_0x2962=function(){return _0x408e17;};return a9_0x2962();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10_0x333f97=a10_0x5e3a;(function(_0x47e8ac,_0x96f7b1){const _0x21bb19=a10_0x5e3a,_0x2f2731=_0x47e8ac();while(!![]){try{const _0x487d00=parseInt(_0x21bb19(0xbe))/0x1+parseInt(_0x21bb19(0xb3))/0x2*(-parseInt(_0x21bb19(0xb0))/0x3)+parseInt(_0x21bb19(0xc4))/0x4*(parseInt(_0x21bb19(0xb8))/0x5)+-parseInt(_0x21bb19(0xbb))/0x6*(-parseInt(_0x21bb19(0xc2))/0x7)+-parseInt(_0x21bb19(0xbd))/0x8*(-parseInt(_0x21bb19(0xc3))/0x9)+parseInt(_0x21bb19(0xae))/0xa+-parseInt(_0x21bb19(0xc6))/0xb*(parseInt(_0x21bb19(0xc5))/0xc);if(_0x487d00===_0x96f7b1)break;else _0x2f2731['push'](_0x2f2731['shift']());}catch(_0x3577a4){_0x2f2731['push'](_0x2f2731['shift']());}}}(a10_0x3c3e,0xee236));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a10_0x5e3a(_0x4798de,_0x21a265){const _0x3c3e28=a10_0x3c3e();return a10_0x5e3a=function(_0x5e3a55,_0x90990){_0x5e3a55=_0x5e3a55-0xad;let _0x26252b=_0x3c3e28[_0x5e3a55];return _0x26252b;},a10_0x5e3a(_0x4798de,_0x21a265);}exports[a10_0x333f97(0xaf)]='delete',exports[a10_0x333f97(0xbc)]='List\x20Grid\x20resources.',exports[a10_0x333f97(0xbf)]=function(_0x17fe99){const _0x375c23=a10_0x333f97,_0x5d87e8={};_0x5d87e8[_0x375c23(0xb1)]=_0x375c23(0xb9),_0x5d87e8[_0x375c23(0xb7)]=_0x375c23(0xc1);const _0x5a42ed=_0x5d87e8;return _0x17fe99[_0x375c23(0xb4)](HELP_HEADER_MESSAGE['delete'])[_0x375c23(0xad)](HELP_FOOTER_MESSAGE)[_0x375c23(0xb6)](_0x5a42ed[_0x375c23(0xb1)])[_0x375c23(0xb5)]()[_0x375c23(0xba)]()[_0x375c23(0xb2)]()[_0x375c23(0xc1)](_0x5a42ed['tnYgK']);},exports[a10_0x333f97(0xc0)]=function(_0xa70c8b){};function a10_0x3c3e(){const _0x6345de=['15232330RJjyFN','command','1067223YWBmJi','heGvB','strict','4hqNJJV','usage','demandCommand','commandDir','tnYgK','18785UqrEAM','delete_commands','recommendCommands','6xlEFDC','desc','353512JRLgKI','824338iofDVr','builder','handler','help','9974251gflPYT','369kGNEUh','732DcMpES','24WMHqwc','25216664qniLhF','epilogue'];a10_0x3c3e=function(){return _0x6345de;};return a10_0x3c3e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x295761=a11_0x5c4f;function a11_0x3dc4(){const _0x14e26f=['dkOZq','reconnecting-websocket','AAmnn','zQppq','INusq','replace','yGMMk','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','zUFzL','wIPJw','AdDlc','readNamespace','info','FfEXo','fCOSc','invalid-input','BAiTB','pdPsO','onlyGridInCluster','gOQaV','lvazm','BCieh','278839NzfKMK','../../utils/instrumentationUtils','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','isBrowserstackCluster','default','oLKdW','error','36470JUOVAL','cwell','unauthorised','delete','<PasswordPlaceholder>','catch','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','hAWYb','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','type','ANzJF','Cluster:\x20','invalid-grid-id','eKoSN','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','toLowerCase','got','225IIQODL','handler','UCeln','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','TDqDl','PjVXk','../../utils/createk8sClient','body','grid-id','97846XdNYKY','xUrDD','server-error','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','ERROR','PxGHp','cloudProvider','region','rGojZ','RGGfk','132FSrbVA','YutdY','Successfully\x20deleted\x20the\x20grid','DELETE','xMTzL','skip-tls-cert-verify','AGrah','BUrti','message','string','gridId','/packages/cli/grid/','description','Namespace:\x20','131010YJfaDp','stringify','EarQS','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','CvyOp','heSPI','../../utils/utilityMethods','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','dORgS','hNTkp','stack','PrmWF','RzzQm','gQAhf','kokfK','skGKC','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','clusterSpawnedVia','isClusterPresent','argv','statusCode','8XESipc','ieXuG','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','ARmlp','VzrpS','1290102xRoQmF','deleteCluster','\x22\x20and\x20ID\x20','Ltmob','xOJey','gKQNE','CPufx','help','readFileSync','eXeVJ','dKaHq','maYaw','parse','requestId','ZAnbw','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','username','EXeHL','uBkMf','Failed\x20to\x20delete\x20resources!\x20Error:\x20','EtttA','bkxpA','<UsernamePlaceholder>','VLmxT','clusterId','32rlQyqx','../../utils/userInput','BGNaV','eoWPx','bLQUI','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','yZbSt','usage','warn','EzkgG','exit','xeQnP','MCsOi','command','epilogue','290908GXPxmm','unknown-error','then','564hPgRSR','CFUnR','name','password','qwyii','Browserstack','uuid','Skip\x20insecure\x20cert\x20verification.','nuNZh','clusterRegion','uqqrk','../../config/constants','26953uBGjFt','clusterName','boolean','INFO','jkShJ'];a11_0x3dc4=function(){return _0x14e26f;};return a11_0x3dc4();}function a11_0x5c4f(_0x12505c,_0xd59bd4){const _0x3dc41c=a11_0x3dc4();return a11_0x5c4f=function(_0x5c4ffd,_0x3fca83){_0x5c4ffd=_0x5c4ffd-0x132;let _0xbb0b4a=_0x3dc41c[_0x5c4ffd];return _0xbb0b4a;},a11_0x5c4f(_0x12505c,_0xd59bd4);}(function(_0x4d794e,_0x51e05a){const _0x5f01cd=a11_0x5c4f,_0x22b1ee=_0x4d794e();while(!![]){try{const _0x3a585b=-parseInt(_0x5f01cd(0x1b7))/0x1*(parseInt(_0x5f01cd(0x199))/0x2)+-parseInt(_0x5f01cd(0x180))/0x3+parseInt(_0x5f01cd(0x1a8))/0x4+parseInt(_0x5f01cd(0x134))/0x5*(parseInt(_0x5f01cd(0x158))/0x6)+-parseInt(_0x5f01cd(0x14e))/0x7*(-parseInt(_0x5f01cd(0x17b))/0x8)+-parseInt(_0x5f01cd(0x145))/0x9*(parseInt(_0x5f01cd(0x166))/0xa)+-parseInt(_0x5f01cd(0x1d2))/0xb*(-parseInt(_0x5f01cd(0x1ab))/0xc);if(_0x3a585b===_0x51e05a)break;else _0x22b1ee['push'](_0x22b1ee['shift']());}catch(_0x58f92d){_0x22b1ee['push'](_0x22b1ee['shift']());}}}(a11_0x3dc4,0x3cfa9));const fs=require('fs'),got=require(a11_0x295761(0x144)),{v4:uuidv4}=require(a11_0x295761(0x1b1)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x295761(0x1bd)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x295761(0x1b6)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x295761(0x1d3)),{inputConfirmation}=require(a11_0x295761(0x19a)),{createK8sClient}=require(a11_0x295761(0x14b)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x295761(0x16c)),webSocketUtils=require('../../utils/webSocketUtils');exports[a11_0x295761(0x1a6)]='grid',exports['desc']='Delete\x20an\x20Automation\x20grid.',exports['builder']=function(_0x47a222){const _0x490155=a11_0x295761,_0xb0a1fa={};_0xb0a1fa[_0x490155(0x15c)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0xb0a1fa[_0x490155(0x197)]=_0x490155(0x161),_0xb0a1fa[_0x490155(0x1ac)]=_0x490155(0x1b2),_0xb0a1fa['BMhVK']=_0x490155(0x1b9),_0xb0a1fa[_0x490155(0x191)]=_0x490155(0x187);const _0x5c699e=_0xb0a1fa,_0x1ea887={};_0x1ea887[_0x490155(0x164)]=_0x5c699e[_0x490155(0x15c)],_0x1ea887[_0x490155(0x13d)]=_0x5c699e[_0x490155(0x197)];const _0x31565d={};_0x31565d[_0x490155(0x164)]=_0x5c699e[_0x490155(0x1ac)],_0x31565d['type']=_0x5c699e['BMhVK'],_0x31565d[_0x490155(0x1d6)]=![];const _0x216be0={};return _0x216be0[_0x490155(0x14d)]=_0x1ea887,_0x216be0[_0x490155(0x15d)]=_0x31565d,_0x47a222[_0x490155(0x1a0)](HELP_HEADER_MESSAGE[_0x490155(0x137)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x216be0)[_0x490155(0x187)](_0x5c699e['EXeHL'])['argv'];},exports[a11_0x295761(0x146)]=async function(_0x5e7621){const _0x1bcd2c=a11_0x295761,_0xde35d3={'oLKdW':_0x1bcd2c(0x15a),'fCOSc':_0x1bcd2c(0x1d4),'uqqrk':_0x1bcd2c(0x17d),'qhOrh':function(_0x54571e,_0x369c1f){return _0x54571e!==_0x369c1f;},'VzrpS':_0x1bcd2c(0x1c0),'EtttA':function(_0x4f98cd,_0x35221c){return _0x4f98cd!==_0x35221c;},'ClqzF':_0x1bcd2c(0x1bc),'ARmlp':'Pass\x20the\x20ID\x20of\x20the\x20Grid','hNTkp':'string','CvyOp':_0x1bcd2c(0x1b2),'FfEXo':_0x1bcd2c(0x1b9),'PxGHp':'help','uBkMf':function(_0x3067fc){return _0x3067fc();},'kPCGj':function(_0x570d7f){return _0x570d7f();},'xeQnP':function(_0x1f2e41,_0x2f3b72){return _0x1f2e41===_0x2f3b72;},'AGrah':'bkUQp','eKoSN':_0x1bcd2c(0x174),'luMEM':_0x1bcd2c(0x142),'RzzQm':function(_0x45a488,_0x212c1f,_0xaade2,_0x581fa6,_0x15181,_0x870360,_0x41b9ac){return _0x45a488(_0x212c1f,_0xaade2,_0x581fa6,_0x15181,_0x870360,_0x41b9ac);},'BCieh':'delete-grid-called','eoWPx':'init-not-called','bkxpA':function(_0x50e6c4,_0x1d1674,_0x1cb82c,_0x1181a3,_0x557424,_0x29f81e,_0x2aabb1){return _0x50e6c4(_0x1d1674,_0x1cb82c,_0x1181a3,_0x557424,_0x29f81e,_0x2aabb1);},'RGGfk':'gDZsV','gOQaV':_0x1bcd2c(0x18e),'pdPsO':function(_0x3390d3){return _0x3390d3();},'nuNZh':function(_0x663761,_0x561de8,_0x38b6a,_0x5d8653){return _0x663761(_0x561de8,_0x38b6a,_0x5d8653);},'lvazm':function(_0x43df71,_0xd7bbb3){return _0x43df71===_0xd7bbb3;},'AAmnn':_0x1bcd2c(0x1b0),'PjVXk':function(_0x1f7029,_0x179adf){return _0x1f7029===_0x179adf;},'CPufx':_0x1bcd2c(0x1bf),'OpgFW':_0x1bcd2c(0x1af),'BUrti':function(_0x31ae45,_0x252166){return _0x31ae45(_0x252166);},'dKaHq':function(_0x393103,_0x2fb541){return _0x393103===_0x2fb541;},'ieXuG':function(_0x43fce1,_0x1bf220){return _0x43fce1===_0x1bf220;},'EzkgG':function(_0xbf6246,_0xe04571){return _0xbf6246!==_0xe04571;},'CUpmL':_0x1bcd2c(0x13e),'yGMMk':'asljE','zUFzL':_0x1bcd2c(0x18f),'BIdOu':function(_0xa21448,_0x5c0567,_0x9fcd30,_0x56657b,_0x58e7fb,_0x47474d,_0x1f450b){return _0xa21448(_0x5c0567,_0x9fcd30,_0x56657b,_0x58e7fb,_0x47474d,_0x1f450b);},'xOJey':_0x1bcd2c(0x1cb),'heSPI':function(_0xcfb8c2,_0x4cd311){return _0xcfb8c2===_0x4cd311;},'wIPJw':_0x1bcd2c(0x19d),'MCsOi':_0x1bcd2c(0x173),'rGojZ':_0x1bcd2c(0x196),'dORgS':_0x1bcd2c(0x138),'mCXMY':function(_0x1b272f,_0x2fa00c,_0x59e5ca,_0x1ca4b9,_0x50e78a,_0x5a9b0b,_0xf4d755){return _0x1b272f(_0x2fa00c,_0x59e5ca,_0x1ca4b9,_0x50e78a,_0x5a9b0b,_0xf4d755);},'YvQUE':function(_0x282a8a,_0x5130ce){return _0x282a8a(_0x5130ce);},'Ltmob':function(_0x42289e,_0x54b78c,_0x44d447){return _0x42289e(_0x54b78c,_0x44d447);},'eXeVJ':function(_0x1b7fdb,_0x3c01af,_0x4b03a6,_0x3c81ba,_0xa00f56,_0x3a4047){return _0x1b7fdb(_0x3c01af,_0x4b03a6,_0x3c81ba,_0xa00f56,_0x3a4047);},'UlXxW':function(_0x19e8f9,_0x145158){return _0x19e8f9!==_0x145158;},'BAiTB':_0x1bcd2c(0x149),'cwell':_0x1bcd2c(0x185),'tmqla':_0x1bcd2c(0x14f),'UCeln':_0x1bcd2c(0x168),'skGKC':_0x1bcd2c(0x15b),'hAWYb':function(_0x3bfc4d,_0x25bd92){return _0x3bfc4d!==_0x25bd92;},'PrmWF':function(_0x1c1a1c,_0x2c1103){return _0x1c1a1c!==_0x2c1103;},'BGNaV':_0x1bcd2c(0x150),'NVMuE':function(_0x473b52,_0x144a3c){return _0x473b52===_0x144a3c;},'hjPOP':_0x1bcd2c(0x1c3),'jkShJ':function(_0x3dc6c4,_0x265c24,_0x1e503c,_0x538070,_0x2ba55e,_0x457e63,_0x3323ef){return _0x3dc6c4(_0x265c24,_0x1e503c,_0x538070,_0x2ba55e,_0x457e63,_0x3323ef);},'YutdY':_0x1bcd2c(0x136),'AdDlc':function(_0x26c2f8,_0x4467d2){return _0x26c2f8===_0x4467d2;},'maYaw':_0x1bcd2c(0x140),'yZbSt':_0x1bcd2c(0x1a9)};try{global_registry[_0x1bcd2c(0x18d)]=_0xde35d3[_0x1bcd2c(0x192)](uuidv4);!fs['existsSync'](_0xde35d3['kPCGj'](getCredentialsPath))&&(_0xde35d3[_0x1bcd2c(0x1a4)](_0xde35d3[_0x1bcd2c(0x15e)],_0xde35d3[_0x1bcd2c(0x141)])?_0x2c07c3=_0x1bcd2c(0x19e)+_0x52f3d8[_0x1bcd2c(0x1ad)]+'\x22\x20and\x20ID\x20'+_0x2a6b1d['id']+_0x1bcd2c(0x148)+_0xf61b64[_0x1bcd2c(0x1b8)]+'\x22\x20with\x20ID\x20'+_0x5c0ce5[_0x1bcd2c(0x198)]+_0x1bcd2c(0x169):(console[_0x1bcd2c(0x133)](_0xde35d3['luMEM']),await _0xde35d3[_0x1bcd2c(0x172)](sendInstrumentationEvent,_0x5e7621,_0xde35d3[_0x1bcd2c(0x1d1)],messageTypes[_0x1bcd2c(0x152)],_0xde35d3[_0x1bcd2c(0x19c)],null,_0x5e7621),process['exit'](0x1)));_0xde35d3[_0x1bcd2c(0x195)](sendInstrumentationEvent,_0x5e7621,_0xde35d3['BCieh'],messageTypes[_0x1bcd2c(0x1ba)],null,null,_0x5e7621);!_0x5e7621['gridId']&&(_0xde35d3['xeQnP'](_0xde35d3[_0x1bcd2c(0x157)],_0xde35d3[_0x1bcd2c(0x1cf)])?(_0x298a34['info'](_0xde35d3[_0x1bcd2c(0x132)]),_0x3e1051[_0x1bcd2c(0x1a3)](0x0)):(console['error'](_0xde35d3[_0x1bcd2c(0x1ca)]),process[_0x1bcd2c(0x1a3)](0x1)));const _0xa73b75=JSON[_0x1bcd2c(0x18c)](fs[_0x1bcd2c(0x188)](_0xde35d3[_0x1bcd2c(0x1cd)](getCredentialsPath))),[_0x319294,_0xdbbc2f]=await _0xde35d3[_0x1bcd2c(0x1b3)](getGridDetails,_0xa73b75['Browserstack']['username'],_0xa73b75[_0x1bcd2c(0x1b0)][_0x1bcd2c(0x1ae)],_0x5e7621[_0x1bcd2c(0x162)]);if(_0xdbbc2f){const _0x38f9cf=_0xdbbc2f['info'];let _0x24daff=_0x1bcd2c(0x19e)+_0x38f9cf[_0x1bcd2c(0x1ad)]+_0x1bcd2c(0x182)+_0x38f9cf['id']+_0x1bcd2c(0x169);_0xdbbc2f[_0x1bcd2c(0x1ce)]&&_0xde35d3[_0x1bcd2c(0x1d0)](_0xdbbc2f[_0x1bcd2c(0x177)],_0xde35d3[_0x1bcd2c(0x1be)])&&(_0xde35d3[_0x1bcd2c(0x14a)](_0xde35d3[_0x1bcd2c(0x186)],_0xde35d3['OpgFW'])?(_0x1077e8[_0x1bcd2c(0x1a1)](_0x1bcd2c(0x165)+_0x46a970+_0x1bcd2c(0x151)),_0x19ce95=![]):_0x24daff='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x38f9cf['name']+_0x1bcd2c(0x182)+_0x38f9cf['id']+_0x1bcd2c(0x148)+_0x38f9cf[_0x1bcd2c(0x1b8)]+'\x22\x20with\x20ID\x20'+_0x38f9cf[_0x1bcd2c(0x198)]+_0x1bcd2c(0x169));const _0x4fee45=await _0xde35d3[_0x1bcd2c(0x15f)](inputConfirmation,_0x24daff);(_0xde35d3[_0x1bcd2c(0x18a)](_0x4fee45,undefined)||_0xde35d3['PjVXk'](_0x4fee45,null)||!(_0xde35d3[_0x1bcd2c(0x17c)](_0x4fee45[_0x1bcd2c(0x143)](),'y')||_0xde35d3[_0x1bcd2c(0x18a)](_0x4fee45[_0x1bcd2c(0x143)](),'n')))&&(_0xde35d3[_0x1bcd2c(0x1a2)](_0xde35d3['CUpmL'],_0xde35d3[_0x1bcd2c(0x1c2)])?(console[_0x1bcd2c(0x133)](_0xde35d3[_0x1bcd2c(0x1c4)]),await _0xde35d3['BIdOu'](sendInstrumentationEvent,_0x5e7621,_0xde35d3[_0x1bcd2c(0x1d1)],messageTypes[_0x1bcd2c(0x152)],_0xde35d3[_0x1bcd2c(0x184)],null,_0x5e7621),process[_0x1bcd2c(0x1a3)](0x1)):(_0x395211['error'](_0xde35d3[_0x1bcd2c(0x1ca)]),_0x17f4fe[_0x1bcd2c(0x1a3)](0x1)));_0xde35d3[_0x1bcd2c(0x16b)](_0x4fee45[_0x1bcd2c(0x143)](),'n')&&(_0xde35d3['dKaHq'](_0xde35d3[_0x1bcd2c(0x1c5)],_0xde35d3[_0x1bcd2c(0x1a5)])?_0x3553dc[_0x1bcd2c(0x1a1)](_0xde35d3[_0x1bcd2c(0x1b5)]):process[_0x1bcd2c(0x1a3)](0x0));const _0x331b48=WS_ENDPOINT[_0x1bcd2c(0x1c1)](_0xde35d3[_0x1bcd2c(0x156)],_0xa73b75[_0x1bcd2c(0x1b0)][_0x1bcd2c(0x190)])[_0x1bcd2c(0x1c1)](_0xde35d3[_0x1bcd2c(0x16e)],_0xa73b75['Browserstack'][_0x1bcd2c(0x1ae)]),_0x2a6f3c={};_0x2a6f3c['WebSocket']=ws,_0x2a6f3c['connectionTimeout']=0x36ee80;const _0x890b6f=new ReconnectingWebSocket(_0x331b48,[],_0x2a6f3c);global_registry[_0x1bcd2c(0x1b4)]=_0x38f9cf['region'];const _0x38a983=_0x38f9cf[_0x1bcd2c(0x154)],_0x4371ec=await _0xde35d3['mCXMY'](getCloudProviderObject,_0x38a983,_0x38f9cf['clusterName'],_0x38f9cf[_0x1bcd2c(0x1ad)],_0x890b6f,webSocketUtils,_0x5e7621),_0x2aaa5c=await _0x4371ec[_0x1bcd2c(0x178)]();if(_0x2aaa5c){const _0x1ded34=_0xde35d3['YvQUE'](kebabCase,_0x38f9cf[_0x1bcd2c(0x1ad)]),[_0x28dd7d,_0x542797,_0x474dd2,_0x520532,_0x9815a7,_0x1090c9]=await _0xde35d3[_0x1bcd2c(0x183)](createK8sClient,_0x4371ec,_0x5e7621['skipTlsCertVerify']);let _0x2260f6=!![];const _0x539f10={};_0x539f10['name']=_0x1ded34,await _0x28dd7d[_0x1bcd2c(0x1c7)](_0x539f10)[_0x1bcd2c(0x1aa)](_0x389605=>{const _0xbc8f9b=_0x1bcd2c;_0xde35d3['qhOrh'](_0xde35d3[_0xbc8f9b(0x17f)],_0xde35d3[_0xbc8f9b(0x17f)])?_0x173bd6[_0xbc8f9b(0x1a3)](0x0):logger[_0xbc8f9b(0x1c8)](_0xbc8f9b(0x165)+_0x1ded34+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion');})[_0x1bcd2c(0x139)](_0x252f00=>{const _0x280261=_0x1bcd2c;_0xde35d3[_0x280261(0x194)](_0xde35d3['ClqzF'],_0xde35d3['ClqzF'])?_0x4eda85[_0x280261(0x1c8)]('Namespace:\x20'+_0x531ac4+_0x280261(0x176)):(logger[_0x280261(0x1a1)](_0x280261(0x165)+_0x1ded34+_0x280261(0x151)),_0x2260f6=![]);});if(_0x2260f6){await _0xde35d3[_0x1bcd2c(0x189)](removeGridComponents,_0x28dd7d,_0x542797,_0x474dd2,_0x520532,_0x1ded34);if(_0xdbbc2f[_0x1bcd2c(0x1ce)]){const _0x13c42f=await _0x4371ec[_0x1bcd2c(0x1d5)]();if(_0x13c42f){if(_0xde35d3['UlXxW'](_0xde35d3[_0x1bcd2c(0x1cc)],_0xde35d3[_0x1bcd2c(0x135)]))await _0x4371ec[_0x1bcd2c(0x181)](_0x28dd7d,_0x38f9cf[_0x1bcd2c(0x155)]);else{const _0x18405f={};_0x18405f[_0x1bcd2c(0x164)]=_0xde35d3[_0x1bcd2c(0x17e)],_0x18405f[_0x1bcd2c(0x13d)]=_0xde35d3[_0x1bcd2c(0x16f)];const _0x2b4cda={};_0x2b4cda['description']=_0xde35d3[_0x1bcd2c(0x16a)],_0x2b4cda['type']=_0xde35d3[_0x1bcd2c(0x1c9)],_0x2b4cda['default']=![];const _0x400cfc={};return _0x400cfc[_0x1bcd2c(0x14d)]=_0x18405f,_0x400cfc['skip-tls-cert-verify']=_0x2b4cda,_0x24d20d[_0x1bcd2c(0x1a0)](_0x299016[_0x1bcd2c(0x137)])[_0x1bcd2c(0x1a7)](_0xd2896e)['options'](_0x400cfc)[_0x1bcd2c(0x187)](_0xde35d3[_0x1bcd2c(0x153)])[_0x1bcd2c(0x179)];}}else _0xde35d3[_0x1bcd2c(0x194)](_0xde35d3['tmqla'],_0xde35d3[_0x1bcd2c(0x147)])?logger[_0x1bcd2c(0x1a1)](_0x1bcd2c(0x13f)+_0x38f9cf[_0x1bcd2c(0x1b8)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):_0x3a8ee2['warn'](_0x1bcd2c(0x13f)+_0x2bf57e[_0x1bcd2c(0x1b8)]+_0x1bcd2c(0x16d));}}}else logger[_0x1bcd2c(0x1a1)](_0xde35d3[_0x1bcd2c(0x1b5)]);const _0x1d7ca8='https://'+AG_API_URL+_0x1bcd2c(0x163)+_0x5e7621[_0x1bcd2c(0x162)],_0x3c1967={'method':_0xde35d3[_0x1bcd2c(0x175)],'headers':_0xde35d3['Ltmob'](getAuthHeader,_0xa73b75[_0x1bcd2c(0x1b0)][_0x1bcd2c(0x190)],_0xa73b75[_0x1bcd2c(0x1b0)][_0x1bcd2c(0x1ae)]),'throwHttpErrors':![]},_0x41b179=await _0xde35d3[_0x1bcd2c(0x183)](got,_0x1d7ca8,_0x3c1967);_0xde35d3[_0x1bcd2c(0x13b)](_0x41b179,null)&&_0xde35d3[_0x1bcd2c(0x171)](_0x41b179,undefined)&&_0xde35d3[_0x1bcd2c(0x18a)](_0x41b179[_0x1bcd2c(0x17a)],0xc8)&&(logger[_0x1bcd2c(0x1c8)](_0xde35d3['oLKdW']),process['exit'](0x0)),logger['error'](_0x1bcd2c(0x13c)+_0x41b179[_0x1bcd2c(0x14c)]),await _0xde35d3[_0x1bcd2c(0x195)](sendInstrumentationEvent,_0x5e7621,_0xde35d3[_0x1bcd2c(0x1d1)],messageTypes[_0x1bcd2c(0x152)],_0xde35d3[_0x1bcd2c(0x19b)],_0x319294,_0x5e7621),process[_0x1bcd2c(0x1a3)](0x1);}_0xde35d3['NVMuE'](_0x319294[_0x1bcd2c(0x17a)],0x191)&&(logger['error'](_0xde35d3['hjPOP']),await _0xde35d3[_0x1bcd2c(0x1bb)](sendInstrumentationEvent,_0x5e7621,_0xde35d3[_0x1bcd2c(0x1d1)],messageTypes[_0x1bcd2c(0x152)],_0xde35d3[_0x1bcd2c(0x159)],null,_0x5e7621),process[_0x1bcd2c(0x1a3)](0x1)),_0xde35d3[_0x1bcd2c(0x1c6)](_0x319294['statusCode'],0x190)&&(logger['error'](JSON[_0x1bcd2c(0x18c)](_0x319294[_0x1bcd2c(0x14c)])[_0x1bcd2c(0x160)]),await _0xde35d3[_0x1bcd2c(0x195)](sendInstrumentationEvent,_0x5e7621,_0xde35d3[_0x1bcd2c(0x1d1)],messageTypes[_0x1bcd2c(0x152)],_0xde35d3[_0x1bcd2c(0x18b)],null,_0x5e7621),process[_0x1bcd2c(0x1a3)](0x1)),logger[_0x1bcd2c(0x133)](_0x1bcd2c(0x13a)+JSON[_0x1bcd2c(0x167)](_0x319294)),await _0xde35d3[_0x1bcd2c(0x172)](sendInstrumentationEvent,_0x5e7621,_0xde35d3[_0x1bcd2c(0x1d1)],messageTypes[_0x1bcd2c(0x152)],_0xde35d3['BGNaV'],_0x319294,_0x5e7621),process[_0x1bcd2c(0x1a3)](0x1);}catch(_0x177e7f){logger[_0x1bcd2c(0x133)](_0x1bcd2c(0x193)+_0x177e7f[_0x1bcd2c(0x170)]),await _0xde35d3[_0x1bcd2c(0x172)](sendInstrumentationEvent,_0x5e7621,_0xde35d3[_0x1bcd2c(0x1d1)],messageTypes[_0x1bcd2c(0x152)],_0xde35d3[_0x1bcd2c(0x19f)],_0x177e7f,_0x5e7621),process[_0x1bcd2c(0x1a3)](0x1);}};
|
|
1
|
+
const a11_0x5b992a=a11_0xd24a;function a11_0xd24a(_0x4e4472,_0x5ac3ea){const _0x2a8889=a11_0x2a88();return a11_0xd24a=function(_0xd24a9d,_0x2ebf62){_0xd24a9d=_0xd24a9d-0x85;let _0x45427c=_0x2a8889[_0xd24a9d];return _0x45427c;},a11_0xd24a(_0x4e4472,_0x5ac3ea);}(function(_0x1fce98,_0x32911e){const _0x3aab26=a11_0xd24a,_0x5935ad=_0x1fce98();while(!![]){try{const _0x1e9e53=parseInt(_0x3aab26(0x9e))/0x1+-parseInt(_0x3aab26(0xae))/0x2*(parseInt(_0x3aab26(0xbb))/0x3)+-parseInt(_0x3aab26(0xba))/0x4+parseInt(_0x3aab26(0xb7))/0x5+parseInt(_0x3aab26(0x10e))/0x6+parseInt(_0x3aab26(0xb9))/0x7*(-parseInt(_0x3aab26(0xce))/0x8)+parseInt(_0x3aab26(0xe7))/0x9;if(_0x1e9e53===_0x32911e)break;else _0x5935ad['push'](_0x5935ad['shift']());}catch(_0x31f984){_0x5935ad['push'](_0x5935ad['shift']());}}}(a11_0x2a88,0x7691c));function a11_0x2a88(){const _0x4a1d3f=['grid','command','Delete\x20an\x20Automation\x20grid.','yyQTc','clyCF','aXnwJ','FtPXf','xVZKZ','yKlMN','password','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','YLqJN','stack','lrpNp','204168aZbhDI','Successfully\x20deleted\x20the\x20grid','hOvNs','../../config/logger','oqpvb','HTHch','\x22\x20with\x20ID\x20','existsSync','isBrowserstackCluster','default','Jqybz','type','cuSOk','../../utils/utilityMethods','../../utils/gridComponents','../../cloudproviders/utils','137158ZnjNRL','../../utils/instrumentationUtils','AiZKY','jEZYl','TDQhL','name','WebSocket','invalid-input','handler','2336830SvAbWz','stringify','18473qMoASl','2371340qiIRhd','42ehTxiT','replace','TPzrk','aPwxV','vNqFh','reconnecting-websocket','Zrgbg','YTemt','../../utils/webSocketUtils','ERROR','UBMmk','<UsernamePlaceholder>','NWTCV','rlAKV','help','BKbOr','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','then','hfcWw','632VVSvdm','exit','KFEYH','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','qECyv','cloudProvider','parse','clusterId','epilogue','clusterName','ImThG','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','OKyqc','../../config/constants','REvXC','mfCyJ','requestId','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','zoOLP','Fpzel','invalid-grid-id','\x22\x20and\x20ID\x20','warn','daeuU','dNKNY','14144787XoGRpK','region','hujij','boolean','delete','Namespace:\x20','statusCode','readFileSync','OVSoq','../../utils/createk8sClient','body','RsyEd','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','pjVKw','RWOSN','string','ylLRm','onlyGridInCluster','Browserstack','Pass\x20the\x20ID\x20of\x20the\x20Grid','wavha','skip-tls-cert-verify','CaDsI','gridId','lZaLF','toLowerCase','Skip\x20insecure\x20cert\x20verification.','description','xbfwk','clusterRegion','/packages/cli/grid/','username','PMDEd','EBsdp','ZNZSF','MGoAY','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','options','nWRxk','23430yPSqJl','https://','unknown-error','init-not-called','Failed\x20to\x20delete\x20resources!\x20Error:\x20','clusterSpawnedVia','Cluster:\x20','aUxLE','skipTlsCertVerify','QEdfl','ZHmBd','awIOb','QoaMa','readNamespace','argv','gDHAt','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','info','sYAFu','BcDMx','grid-id','CqBgk','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error','FGOcj','oXAQV','server-error','zCqAI'];a11_0x2a88=function(){return _0x4a1d3f;};return a11_0x2a88();}const fs=require('fs'),got=require('got'),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x5b992a(0xc0)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x5b992a(0xdb)),{logger}=require(a11_0x5b992a(0xa1)),{getCloudProviderObject}=require(a11_0x5b992a(0xad)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x5b992a(0xac)),{sendInstrumentationEvent}=require(a11_0x5b992a(0xaf)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x5b992a(0xf0)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x5b992a(0xab)),webSocketUtils=require(a11_0x5b992a(0xc3));exports[a11_0x5b992a(0x91)]=a11_0x5b992a(0x90),exports['desc']=a11_0x5b992a(0x92),exports['builder']=function(_0x2ffe3e){const _0x593dd6=a11_0x5b992a,_0x5784dc={};_0x5784dc[_0x593dd6(0x118)]=_0x593dd6(0xfa),_0x5784dc['mfCyJ']=_0x593dd6(0xf6),_0x5784dc[_0x593dd6(0x115)]=_0x593dd6(0x101),_0x5784dc[_0x593dd6(0x117)]=_0x593dd6(0xea),_0x5784dc['ZNZSF']='help';const _0x46d26c=_0x5784dc,_0x1e6c23={};_0x1e6c23[_0x593dd6(0x102)]=_0x46d26c['ZHmBd'],_0x1e6c23[_0x593dd6(0xa9)]=_0x46d26c[_0x593dd6(0xdd)];const _0x13f6b0={};_0x13f6b0[_0x593dd6(0x102)]=_0x46d26c[_0x593dd6(0x115)],_0x13f6b0['type']=_0x46d26c[_0x593dd6(0x117)],_0x13f6b0[_0x593dd6(0xa7)]=![];const _0x3eb19b={};return _0x3eb19b[_0x593dd6(0x88)]=_0x1e6c23,_0x3eb19b['skip-tls-cert-verify']=_0x13f6b0,_0x2ffe3e['usage'](HELP_HEADER_MESSAGE[_0x593dd6(0xeb)])[_0x593dd6(0xd6)](HELP_FOOTER_MESSAGE)[_0x593dd6(0x10c)](_0x3eb19b)[_0x593dd6(0xc9)](_0x46d26c[_0x593dd6(0x109)])['argv'];},exports[a11_0x5b992a(0xb6)]=async function(_0xbdda03){const _0x28288e=a11_0x5b992a,_0x14b867={'YDGgv':'Pass\x20the\x20ID\x20of\x20the\x20Grid','CqBgk':_0x28288e(0xf6),'Jqybz':_0x28288e(0x101),'BcDMx':_0x28288e(0xea),'aPwxV':'help','MGoAY':_0x28288e(0xd1),'oXAQV':function(_0x426ce1,_0x1bd5f2){return _0x426ce1===_0x1bd5f2;},'dNKNY':_0x28288e(0xdc),'YLqJN':_0x28288e(0xb0),'CaDsI':_0x28288e(0x9f),'TDQhL':function(_0x32cc29,_0x2fe3a2){return _0x32cc29!==_0x2fe3a2;},'yyQTc':_0x28288e(0xda),'TPzrk':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','yKlMN':function(_0x384533){return _0x384533();},'BKbOr':function(_0x91884a,_0x55610c){return _0x91884a===_0x55610c;},'QoaMa':_0x28288e(0x11d),'cuSOk':'Utlzn','NWTCV':_0x28288e(0x8a),'RWOSN':function(_0x166726,_0x574d19,_0x16f2ea,_0x2fca9d,_0x358401,_0x183e10,_0x2c014c){return _0x166726(_0x574d19,_0x16f2ea,_0x2fca9d,_0x358401,_0x183e10,_0x2c014c);},'ImThG':'delete-grid-called','EGJVc':_0x28288e(0x111),'aXnwJ':_0x28288e(0xff),'xbfwk':function(_0x4b284a){return _0x4b284a();},'xVZKZ':function(_0x10f464,_0x3d7953,_0x43a7e2,_0x2dc94f){return _0x10f464(_0x3d7953,_0x43a7e2,_0x2dc94f);},'jEZYl':function(_0x5b2d85,_0x3d816e){return _0x5b2d85===_0x3d816e;},'nWRxk':_0x28288e(0xf9),'qECyv':_0x28288e(0xe5),'FtPXf':function(_0x17b845,_0x1a5db2){return _0x17b845(_0x1a5db2);},'hOvNs':function(_0x4eaa39,_0x1f64e9){return _0x4eaa39===_0x1f64e9;},'zCqAI':function(_0x332a28,_0x5443bc){return _0x332a28===_0x5443bc;},'HtmIn':_0x28288e(0xc5),'HTHch':'jAymS','wavha':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','rlAKV':_0x28288e(0xb5),'EOghc':function(_0x78058a,_0xc4ee70){return _0x78058a===_0xc4ee70;},'lrpNp':function(_0x1bc716,_0x4e7287){return _0x1bc716!==_0x4e7287;},'oqpvb':_0x28288e(0xf4),'Fpzel':_0x28288e(0xcd),'OVSoq':_0x28288e(0xc6),'GWjIv':'<PasswordPlaceholder>','hujij':function(_0x107700,_0x142702,_0x3ad51a){return _0x107700(_0x142702,_0x3ad51a);},'UrPRf':function(_0x326e27,_0x2d585e,_0x4e2f0e,_0x29a991,_0x2cde4e,_0x24acdb){return _0x326e27(_0x2d585e,_0x4e2f0e,_0x29a991,_0x2cde4e,_0x24acdb);},'vNqFh':function(_0x2c5773,_0x44fbbe){return _0x2c5773!==_0x44fbbe;},'clyCF':'xpRBX','zoOLP':function(_0x496ca8,_0x9abff0){return _0x496ca8===_0x9abff0;},'oMUnT':'CWeCZ','EBsdp':'HHfUt','ylLRm':'DELETE','YTemt':function(_0x47192f,_0x5a9aa9,_0x4b92ff){return _0x47192f(_0x5a9aa9,_0x4b92ff);},'TBNXa':function(_0xb858a6,_0x20209f){return _0xb858a6!==_0x20209f;},'Zrgbg':function(_0x30d9b4,_0x35a254){return _0x30d9b4!==_0x35a254;},'sYAFu':_0x28288e(0x8e),'qWMQb':function(_0xf5c7a7,_0x595b88){return _0xf5c7a7===_0x595b88;},'PMDEd':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','awIOb':function(_0x308ba5,_0x62e79,_0x122974,_0x47e4a6,_0x818bd2,_0x33b4d7,_0x4bbf89){return _0x308ba5(_0x62e79,_0x122974,_0x47e4a6,_0x818bd2,_0x33b4d7,_0x4bbf89);},'KFEYH':'unauthorised','onvNW':_0x28288e(0xe2),'FGOcj':function(_0x414066,_0x3b72ca,_0x145c72,_0x946dfe,_0x3d39aa,_0x2e853a,_0x484a32){return _0x414066(_0x3b72ca,_0x145c72,_0x946dfe,_0x3d39aa,_0x2e853a,_0x484a32);},'RsyEd':_0x28288e(0x110)};try{global_registry[_0x28288e(0xde)]=_0x14b867['yKlMN'](uuidv4);if(!fs[_0x28288e(0xa5)](_0x14b867[_0x28288e(0x98)](getCredentialsPath))){if(_0x14b867[_0x28288e(0xca)](_0x14b867[_0x28288e(0x11a)],_0x14b867[_0x28288e(0xaa)])){const _0x4e47b8={};_0x4e47b8[_0x28288e(0x102)]=_0x14b867['YDGgv'],_0x4e47b8[_0x28288e(0xa9)]=_0x14b867[_0x28288e(0x89)];const _0x4c43c8={};_0x4c43c8['description']=_0x14b867[_0x28288e(0xa8)],_0x4c43c8[_0x28288e(0xa9)]=_0x14b867[_0x28288e(0x87)],_0x4c43c8['default']=![];const _0x5191f5={};return _0x5191f5[_0x28288e(0x88)]=_0x4e47b8,_0x5191f5[_0x28288e(0xfc)]=_0x4c43c8,_0x41bb0c['usage'](_0x42e26e[_0x28288e(0xeb)])[_0x28288e(0xd6)](_0x20824e)['options'](_0x5191f5)[_0x28288e(0xc9)](_0x14b867[_0x28288e(0xbe)])[_0x28288e(0x11c)];}else console[_0x28288e(0x8b)](_0x14b867[_0x28288e(0xc7)]),await _0x14b867['RWOSN'](sendInstrumentationEvent,_0xbdda03,_0x14b867[_0x28288e(0xd8)],messageTypes[_0x28288e(0xc4)],_0x14b867['EGJVc'],null,_0xbdda03),process[_0x28288e(0xcf)](0x1);}_0x14b867[_0x28288e(0xf5)](sendInstrumentationEvent,_0xbdda03,_0x14b867['ImThG'],messageTypes['INFO'],null,null,_0xbdda03);!_0xbdda03['gridId']&&(_0x14b867['BKbOr'](_0x14b867[_0x28288e(0x95)],_0x14b867['aXnwJ'])?(console[_0x28288e(0x8b)](_0x14b867['MGoAY']),process[_0x28288e(0xcf)](0x1)):(_0x5dec0c[_0x28288e(0x8b)](_0x14b867[_0x28288e(0x10a)]),_0x248868[_0x28288e(0xcf)](0x1)));const _0x23a6eb=JSON['parse'](fs[_0x28288e(0xee)](_0x14b867[_0x28288e(0x103)](getCredentialsPath))),[_0x33ee48,_0x414233]=await _0x14b867[_0x28288e(0x97)](getGridDetails,_0x23a6eb[_0x28288e(0xf9)][_0x28288e(0x106)],_0x23a6eb[_0x28288e(0xf9)]['password'],_0xbdda03[_0x28288e(0xfe)]);if(_0x414233){const _0x22c698=_0x414233[_0x28288e(0x85)];let _0x436f91=_0x28288e(0x11e)+_0x22c698[_0x28288e(0xb3)]+_0x28288e(0xe3)+_0x22c698['id']+_0x28288e(0x10b);_0x414233[_0x28288e(0xf8)]&&_0x14b867[_0x28288e(0xb1)](_0x414233[_0x28288e(0x113)],_0x14b867[_0x28288e(0x10d)])&&(_0x14b867[_0x28288e(0xb2)](_0x14b867['qECyv'],_0x14b867[_0x28288e(0xd2)])?_0x22c943['exit'](0x0):_0x436f91=_0x28288e(0x11e)+_0x22c698[_0x28288e(0xb3)]+'\x22\x20and\x20ID\x20'+_0x22c698['id']+_0x28288e(0x9a)+_0x22c698[_0x28288e(0xd7)]+_0x28288e(0xa4)+_0x22c698[_0x28288e(0xd5)]+_0x28288e(0x10b));const _0x4c6ff0=await _0x14b867[_0x28288e(0x96)](inputConfirmation,_0x436f91);(_0x14b867[_0x28288e(0xa0)](_0x4c6ff0,undefined)||_0x14b867[_0x28288e(0xa0)](_0x4c6ff0,null)||!(_0x14b867[_0x28288e(0xb1)](_0x4c6ff0[_0x28288e(0x100)](),'y')||_0x14b867[_0x28288e(0x8f)](_0x4c6ff0[_0x28288e(0x100)](),'n')))&&(_0x14b867['TDQhL'](_0x14b867['HtmIn'],_0x14b867[_0x28288e(0xa3)])?(console['error'](_0x14b867[_0x28288e(0xfb)]),await _0x14b867[_0x28288e(0xf5)](sendInstrumentationEvent,_0xbdda03,_0x14b867[_0x28288e(0xd8)],messageTypes[_0x28288e(0xc4)],_0x14b867[_0x28288e(0xc8)],null,_0xbdda03),process[_0x28288e(0xcf)](0x1)):_0x2b8d23['warn'](_0x28288e(0x114)+_0x273367[_0x28288e(0xd7)]+_0x28288e(0xf3)));_0x14b867['EOghc'](_0x4c6ff0[_0x28288e(0x100)](),'n')&&(_0x14b867[_0x28288e(0x9d)](_0x14b867[_0x28288e(0xa2)],_0x14b867[_0x28288e(0xe1)])?process[_0x28288e(0xcf)](0x0):_0x47bf56=_0x28288e(0x11e)+_0x572ef7[_0x28288e(0xb3)]+_0x28288e(0xe3)+_0x2436de['id']+_0x28288e(0x9a)+_0x163504['clusterName']+_0x28288e(0xa4)+_0x122c97['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0x59319e=WS_ENDPOINT[_0x28288e(0xbc)](_0x14b867[_0x28288e(0xef)],_0x23a6eb[_0x28288e(0xf9)][_0x28288e(0x106)])['replace'](_0x14b867['GWjIv'],_0x23a6eb[_0x28288e(0xf9)]['password']),_0x166eb8={};_0x166eb8[_0x28288e(0xb4)]=ws,_0x166eb8['connectionTimeout']=0x36ee80;const _0x25487a=new ReconnectingWebSocket(_0x59319e,[],_0x166eb8);global_registry[_0x28288e(0x104)]=_0x22c698[_0x28288e(0xe8)];const _0x5bde3a=_0x22c698[_0x28288e(0xd3)],_0x1a6c3c=await _0x14b867[_0x28288e(0xf5)](getCloudProviderObject,_0x5bde3a,_0x22c698['clusterName'],_0x22c698[_0x28288e(0xb3)],_0x25487a,webSocketUtils,_0xbdda03),_0x1f5251=await _0x1a6c3c['isClusterPresent']();if(_0x1f5251){const _0x51fbcf=_0x14b867['FtPXf'](kebabCase,_0x22c698['name']),[_0x405b7f,_0x57ce36,_0x3c8854,_0x48f8f7,_0xb869f6,_0x46e3e3]=await _0x14b867[_0x28288e(0xe9)](createK8sClient,_0x1a6c3c,_0xbdda03[_0x28288e(0x116)]);let _0x36d5e7=!![];const _0x154cfa={};_0x154cfa[_0x28288e(0xb3)]=_0x51fbcf,await _0x405b7f[_0x28288e(0x11b)](_0x154cfa)[_0x28288e(0xcc)](_0x441a43=>{const _0x3643cb=_0x28288e;_0x14b867[_0x3643cb(0x8d)](_0x14b867[_0x3643cb(0xe6)],_0x14b867[_0x3643cb(0x9b)])?(_0x1a15fd['warn'](_0x3643cb(0xec)+_0x2022b0+_0x3643cb(0xdf)),_0x2357ed=![]):logger[_0x3643cb(0x85)](_0x3643cb(0xec)+_0x51fbcf+_0x3643cb(0xcb));})['catch'](_0x154950=>{const _0x21d18a=_0x28288e;_0x14b867['TDQhL'](_0x14b867[_0x21d18a(0x93)],_0x14b867['yyQTc'])?(_0x3f9d7b['info'](_0x14b867[_0x21d18a(0xfd)]),_0x1842bb[_0x21d18a(0xcf)](0x0)):(logger['warn']('Namespace:\x20'+_0x51fbcf+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x36d5e7=![]);});if(_0x36d5e7){await _0x14b867['UrPRf'](removeGridComponents,_0x405b7f,_0x57ce36,_0x3c8854,_0x48f8f7,_0x51fbcf);if(_0x414233[_0x28288e(0xf8)]){const _0x1515c9=await _0x1a6c3c[_0x28288e(0xa6)]();_0x1515c9?_0x14b867[_0x28288e(0xbf)](_0x14b867[_0x28288e(0x94)],_0x14b867[_0x28288e(0x94)])?_0x2a04ed[_0x28288e(0x85)](_0x28288e(0xec)+_0x29ff97+_0x28288e(0xcb)):await _0x1a6c3c['deleteCluster'](_0x405b7f,_0x22c698[_0x28288e(0xe8)]):_0x14b867[_0x28288e(0xe0)](_0x14b867['oMUnT'],_0x14b867[_0x28288e(0x108)])?_0x423e5e['warn'](_0x14b867[_0x28288e(0xbd)]):logger['warn']('Cluster:\x20'+_0x22c698[_0x28288e(0xd7)]+_0x28288e(0xf3));}}}else logger[_0x28288e(0xe4)](_0x14b867['TPzrk']);const _0x454a4f=_0x28288e(0x10f)+AG_API_URL+_0x28288e(0x105)+_0xbdda03['gridId'],_0x5d6070={'method':_0x14b867[_0x28288e(0xf7)],'headers':_0x14b867[_0x28288e(0xc2)](getAuthHeader,_0x23a6eb[_0x28288e(0xf9)][_0x28288e(0x106)],_0x23a6eb['Browserstack'][_0x28288e(0x99)]),'throwHttpErrors':![]},_0x4579b3=await _0x14b867[_0x28288e(0xc2)](got,_0x454a4f,_0x5d6070);_0x14b867['TBNXa'](_0x4579b3,null)&&_0x14b867[_0x28288e(0xc1)](_0x4579b3,undefined)&&_0x14b867[_0x28288e(0xa0)](_0x4579b3[_0x28288e(0xed)],0xc8)&&(logger[_0x28288e(0x85)](_0x14b867[_0x28288e(0xfd)]),process[_0x28288e(0xcf)](0x0)),logger['error'](_0x28288e(0xd9)+_0x4579b3[_0x28288e(0xf1)]),await _0x14b867['RWOSN'](sendInstrumentationEvent,_0xbdda03,_0x14b867[_0x28288e(0xd8)],messageTypes['ERROR'],_0x14b867['sYAFu'],_0x33ee48,_0xbdda03),process[_0x28288e(0xcf)](0x1);}_0x14b867['qWMQb'](_0x33ee48[_0x28288e(0xed)],0x191)&&(logger[_0x28288e(0x8b)](_0x14b867[_0x28288e(0x107)]),await _0x14b867[_0x28288e(0x119)](sendInstrumentationEvent,_0xbdda03,_0x14b867[_0x28288e(0xd8)],messageTypes[_0x28288e(0xc4)],_0x14b867[_0x28288e(0xd0)],null,_0xbdda03),process[_0x28288e(0xcf)](0x1)),_0x14b867[_0x28288e(0x8d)](_0x33ee48['statusCode'],0x190)&&(logger[_0x28288e(0x8b)](JSON[_0x28288e(0xd4)](_0x33ee48[_0x28288e(0xf1)])['message']),await _0x14b867['awIOb'](sendInstrumentationEvent,_0xbdda03,_0x14b867[_0x28288e(0xd8)],messageTypes[_0x28288e(0xc4)],_0x14b867['onvNW'],null,_0xbdda03),process[_0x28288e(0xcf)](0x1)),logger[_0x28288e(0x8b)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x28288e(0xb8)](_0x33ee48)),await _0x14b867[_0x28288e(0xf5)](sendInstrumentationEvent,_0xbdda03,_0x14b867[_0x28288e(0xd8)],messageTypes[_0x28288e(0xc4)],_0x14b867[_0x28288e(0x86)],_0x33ee48,_0xbdda03),process['exit'](0x1);}catch(_0x5c28b7){logger[_0x28288e(0x8b)](_0x28288e(0x112)+_0x5c28b7[_0x28288e(0x9c)]),await _0x14b867[_0x28288e(0x8c)](sendInstrumentationEvent,_0xbdda03,_0x14b867[_0x28288e(0xd8)],messageTypes[_0x28288e(0xc4)],_0x14b867[_0x28288e(0xf2)],_0x5c28b7,_0xbdda03),process['exit'](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x5b690d=a12_0x4ebc;(function(_0x3a168d,_0x2fbc9b){const _0x2b49a3=a12_0x4ebc,_0x51544a=_0x3a168d();while(!![]){try{const _0x2b109f=parseInt(_0x2b49a3(0x1a1))/0x1*(-parseInt(_0x2b49a3(0x1be))/0x2)+parseInt(_0x2b49a3(0x17f))/0x3+-parseInt(_0x2b49a3(0x1df))/0x4*(-parseInt(_0x2b49a3(0x1bc))/0x5)+parseInt(_0x2b49a3(0x1c7))/0x6+-parseInt(_0x2b49a3(0x1bb))/0x7+-parseInt(_0x2b49a3(0x195))/0x8+-parseInt(_0x2b49a3(0x18e))/0x9*(-parseInt(_0x2b49a3(0x1d7))/0xa);if(_0x2b109f===_0x2fbc9b)break;else _0x51544a['push'](_0x51544a['shift']());}catch(_0x3037e4){_0x51544a['push'](_0x51544a['shift']());}}}(a12_0x2f80,0x91b57));const fs=require('fs'),util=require(a12_0x5b690d(0x199)),got=require(a12_0x5b690d(0x1af)),{v4:uuidv4}=require(a12_0x5b690d(0x1dc)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x5b690d(0x1d5)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x5b690d(0x1d4)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x5b690d(0x1d3));function a12_0x4ebc(_0x4324f8,_0x32f5dd){const _0x2f80fe=a12_0x2f80();return a12_0x4ebc=function(_0x4ebce2,_0x1f8f8d){_0x4ebce2=_0x4ebce2-0x17a;let _0x229d56=_0x2f80fe[_0x4ebce2];return _0x229d56;},a12_0x4ebc(_0x4324f8,_0x32f5dd);}exports[a12_0x5b690d(0x17c)]=a12_0x5b690d(0x1c6),exports['desc']=a12_0x5b690d(0x18d),exports[a12_0x5b690d(0x19c)]=function(_0x1e10f7){const _0x5bfa5c=a12_0x5b690d,_0x52ca22={};_0x52ca22[_0x5bfa5c(0x193)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x52ca22['FbYyW']=_0x5bfa5c(0x1b6),_0x52ca22['CKRyc']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x52ca22['POqrJ']=_0x5bfa5c(0x1ad);const _0xb16022=_0x52ca22,_0x1500a3={};_0x1500a3['description']=_0xb16022[_0x5bfa5c(0x193)],_0x1500a3['type']=_0xb16022[_0x5bfa5c(0x1bd)];const _0x126ab1={};_0x126ab1[_0x5bfa5c(0x1a0)]=_0xb16022[_0x5bfa5c(0x19b)],_0x126ab1[_0x5bfa5c(0x1a7)]=_0xb16022[_0x5bfa5c(0x1bd)];const _0x5cacdb={};return _0x5cacdb['bstack-username']=_0x1500a3,_0x5cacdb['bstack-accesskey']=_0x126ab1,_0x1e10f7[_0x5bfa5c(0x1ab)](HELP_HEADER_MESSAGE[_0x5bfa5c(0x1c6)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x5cacdb)[_0x5bfa5c(0x1b0)]()[_0x5bfa5c(0x185)]()['help'](_0xb16022['POqrJ'])[_0x5bfa5c(0x1cf)];},exports[a12_0x5b690d(0x1da)]=async function(_0x26d48d){const _0x17548e=a12_0x5b690d,_0x3bc84b={'uhGQq':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','LQxfM':_0x17548e(0x1b6),'VeaYs':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','lXTbC':_0x17548e(0x1ad),'rvjXa':function(_0x53c5a3){return _0x53c5a3();},'BspZJ':_0x17548e(0x1cb),'PXbTy':function(_0x3e809f){return _0x3e809f();},'oSKaS':function(_0x3988c6,_0x4730b5,_0x1c18d0,_0x3ac33a,_0x2561d6,_0xa47b07,_0x3e245a){return _0x3988c6(_0x4730b5,_0x1c18d0,_0x3ac33a,_0x2561d6,_0xa47b07,_0x3e245a);},'ErynZ':'init-called','jXsdl':function(_0x448124){return _0x448124();},'UOiHV':function(_0x5290cc,_0x4cc4ef){return _0x5290cc!==_0x4cc4ef;},'blOeT':'lnXII','Ksdkl':function(_0x7d83c8,_0x5bb83b){return _0x7d83c8===_0x5bb83b;},'nnGyD':_0x17548e(0x1ac),'FtpOM':'dVzJb','ReuPK':function(_0x3a30d0,_0x3c461e){return _0x3a30d0!==_0x3c461e;},'kkXDT':_0x17548e(0x19a),'maoOy':_0x17548e(0x1de),'KreMq':function(_0x10f69f,_0x374ca9){return _0x10f69f!==_0x374ca9;},'Eouuv':_0x17548e(0x1cc),'sZUNt':function(_0x4727b2,_0x35892d){return _0x4727b2!==_0x35892d;},'tgBRT':_0x17548e(0x1db),'SdpbD':_0x17548e(0x1c5),'CMCIJ':function(_0x12409f,_0x42f54f){return _0x12409f===_0x42f54f;},'uvgmJ':_0x17548e(0x1c9),'iAjAf':_0x17548e(0x1d0),'rSxxR':_0x17548e(0x197),'ELOyp':function(_0x39a10c){return _0x39a10c();},'qGjwT':_0x17548e(0x1a9),'rkjtg':function(_0x2e3e0c,_0x5230ad,_0xe39e78){return _0x2e3e0c(_0x5230ad,_0xe39e78);},'usuKm':function(_0x4a0f6f,_0x2b4d3a,_0x31d101){return _0x4a0f6f(_0x2b4d3a,_0x31d101);},'eRbOM':function(_0x436098,_0x55aa69){return _0x436098!==_0x55aa69;},'MXShn':_0x17548e(0x196),'HJdfz':'PANCR','DjiPq':function(_0x2fc19e,_0x109002){return _0x2fc19e===_0x109002;},'idpWF':_0x17548e(0x1c2),'wouVn':_0x17548e(0x1b7),'neruo':_0x17548e(0x191),'XINBv':_0x17548e(0x181),'RlrGo':'unknown-error'};try{global_registry[_0x17548e(0x1e0)]=_0x3bc84b['PXbTy'](uuidv4),_0x3bc84b[_0x17548e(0x1ae)](sendInstrumentationEvent,_0x26d48d,_0x3bc84b[_0x17548e(0x1cd)],messageTypes[_0x17548e(0x182)],null,null,_0x26d48d);const _0x5a1a88=_0x3bc84b[_0x17548e(0x1a4)](getDirForConfig);!fs[_0x17548e(0x1ce)](_0x5a1a88)&&(_0x3bc84b[_0x17548e(0x1a3)](_0x3bc84b[_0x17548e(0x194)],_0x3bc84b[_0x17548e(0x194)])?_0x3e1289=!![]:fs[_0x17548e(0x188)](_0x5a1a88));let _0x37961b,_0xd1be3e;if(process[_0x17548e(0x1b4)][_0x17548e(0x18c)]){if(_0x3bc84b[_0x17548e(0x1c0)](_0x3bc84b[_0x17548e(0x1bf)],_0x3bc84b['FtpOM'])){const _0x4a7b28={};_0x4a7b28[_0x17548e(0x1a0)]=_0x3bc84b[_0x17548e(0x1ca)],_0x4a7b28[_0x17548e(0x1a7)]=_0x3bc84b[_0x17548e(0x1b9)];const _0x258a86={};_0x258a86[_0x17548e(0x1a0)]=_0x3bc84b['VeaYs'],_0x258a86['type']=_0x3bc84b['LQxfM'];const _0x201502={};return _0x201502['bstack-username']=_0x4a7b28,_0x201502['bstack-accesskey']=_0x258a86,_0x2905fa['usage'](_0x4ea5c2[_0x17548e(0x1c6)])[_0x17548e(0x17e)](_0x497e5c)[_0x17548e(0x1d1)](_0x201502)[_0x17548e(0x1b0)]()[_0x17548e(0x185)]()['help'](_0x3bc84b['lXTbC'])['argv'];}else _0x37961b=process[_0x17548e(0x1b4)][_0x17548e(0x18c)];}if(process[_0x17548e(0x1b4)]['BROWSERSTACK_ACCESS_KEY']){if(_0x3bc84b['ReuPK'](_0x3bc84b[_0x17548e(0x184)],_0x3bc84b[_0x17548e(0x190)]))_0xd1be3e=process[_0x17548e(0x1b4)][_0x17548e(0x192)];else{let _0x5ed476={};const _0x310d9f=_0x3bc84b[_0x17548e(0x180)](_0x4b880b);_0x77b1da['existsSync'](_0x310d9f)&&(_0x5ed476=_0x2758ec[_0x17548e(0x1b3)](_0x4bf421[_0x17548e(0x18a)](_0x310d9f,_0x3bc84b['BspZJ'])));const _0x3ff6d6={};_0x3ff6d6[_0x17548e(0x187)]=_0x3550ae,_0x3ff6d6[_0x17548e(0x17a)]=_0x26c46b,_0x5ed476[_0x17548e(0x17d)]=_0x3ff6d6,_0x2b57fc[_0x17548e(0x1ba)](_0x310d9f,_0x35967f['stringify'](_0x5ed476)),_0xa6a01a[_0x17548e(0x1a2)](0x0);}}_0x26d48d[_0x17548e(0x1c3)]&&(_0x3bc84b[_0x17548e(0x1d9)](_0x3bc84b[_0x17548e(0x19e)],_0x3bc84b[_0x17548e(0x19e)])?_0x11d0be=_0xeeaf5['env'][_0x17548e(0x18c)]:_0x37961b=_0x26d48d[_0x17548e(0x1c3)]);_0x26d48d[_0x17548e(0x1a8)]&&(_0x3bc84b[_0x17548e(0x198)](_0x3bc84b[_0x17548e(0x19d)],_0x3bc84b['SdpbD'])?_0xd1be3e=_0x26d48d[_0x17548e(0x1a8)]:_0x945cec=_0x19b63f[_0x17548e(0x1b3)](_0x361057[_0x17548e(0x18a)](_0x1f7631,_0x3bc84b[_0x17548e(0x1d8)])));if(_0x3bc84b[_0x17548e(0x18f)](_0x37961b,undefined)||_0x3bc84b[_0x17548e(0x18f)](_0xd1be3e,undefined)){if(_0x3bc84b[_0x17548e(0x183)](_0x3bc84b['uvgmJ'],_0x3bc84b[_0x17548e(0x1d2)])){logger[_0x17548e(0x1a6)](_0x3bc84b[_0x17548e(0x189)]);const [_0x1c87c0,_0x3f4783]=await _0x3bc84b[_0x17548e(0x1b8)](inputBstackKeys);_0x37961b=_0x1c87c0,_0xd1be3e=_0x3f4783;}else _0x99da1c=_0x3d918e['bstackUsername'];}let _0x6bfd97=![];const _0x5742b8=_0x17548e(0x1c4)+_0x37961b+':'+_0xd1be3e+'@'+BS_API_URL+_0x17548e(0x1b2),_0x2ea480={'method':_0x3bc84b[_0x17548e(0x1aa)],'headers':_0x3bc84b[_0x17548e(0x1b5)](getAuthHeader,_0x37961b,_0xd1be3e),'throwHttpErrors':![]},_0x87b171=await _0x3bc84b[_0x17548e(0x18b)](got,_0x5742b8,_0x2ea480);_0x3bc84b[_0x17548e(0x1c1)](_0x87b171,null)&&_0x3bc84b['KreMq'](_0x87b171,undefined)&&_0x3bc84b[_0x17548e(0x18f)](_0x87b171['statusCode'],0xc8)&&(_0x3bc84b['Ksdkl'](_0x3bc84b[_0x17548e(0x1a5)],_0x3bc84b['MXShn'])?_0x6bfd97=!![]:_0x1a2bcc[_0x17548e(0x188)](_0x36db21));if(_0x6bfd97){if(_0x3bc84b[_0x17548e(0x183)](_0x3bc84b['HJdfz'],_0x3bc84b[_0x17548e(0x1d6)]))_0x5d6fcf=_0xcaec06['bstackAccesskey'];else{let _0x4ba03c={};const _0x307c78=_0x3bc84b[_0x17548e(0x1b8)](getCredentialsPath);fs[_0x17548e(0x1ce)](_0x307c78)&&(_0x3bc84b[_0x17548e(0x17b)](_0x3bc84b[_0x17548e(0x1c8)],_0x3bc84b['wouVn'])?_0x2cb15a=_0xd14990['env'][_0x17548e(0x192)]:_0x4ba03c=JSON[_0x17548e(0x1b3)](fs['readFileSync'](_0x307c78,_0x3bc84b[_0x17548e(0x1d8)])));const _0x4636bc={};_0x4636bc[_0x17548e(0x187)]=_0x37961b,_0x4636bc['password']=_0xd1be3e,_0x4ba03c[_0x17548e(0x17d)]=_0x4636bc,fs['writeFileSync'](_0x307c78,JSON['stringify'](_0x4ba03c)),process[_0x17548e(0x1a2)](0x0);}}else logger[_0x17548e(0x1dd)](_0x3bc84b['neruo']),await _0x3bc84b[_0x17548e(0x1ae)](sendInstrumentationEvent,_0x26d48d,_0x3bc84b[_0x17548e(0x1cd)],messageTypes[_0x17548e(0x186)],_0x3bc84b[_0x17548e(0x19f)],null,_0x26d48d),process[_0x17548e(0x1a2)](0x1);}catch(_0x1ce55a){logger[_0x17548e(0x1dd)](_0x1ce55a[_0x17548e(0x1b1)]),await _0x3bc84b[_0x17548e(0x1ae)](sendInstrumentationEvent,_0x26d48d,_0x3bc84b[_0x17548e(0x1cd)],messageTypes[_0x17548e(0x186)],_0x3bc84b['RlrGo'],_0x1ce55a,_0x26d48d),process[_0x17548e(0x1a2)](0x1);}};function a12_0x2f80(){const _0x161a76=['UnVOy','init','2241318yuqTgd','idpWF','qZJDQ','uhGQq','utf-8','xBbYE','ErynZ','existsSync','argv','JOiKO','options','iAjAf','../utils/instrumentationUtils','../config/constants','../utils/userInput','HJdfz','70KtGcAm','BspZJ','KreMq','handler','BRBzf','uuid','error','CkDTs','543572ffcOmq','requestId','password','DjiPq','command','Browserstack','epilogue','2100759voSdQk','rvjXa','wrong-creds','INFO','ReuPK','kkXDT','strict','ERROR','username','mkdirSync','rSxxR','readFileSync','usuKm','BROWSERSTACK_USERNAME','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','1176543Wofgmq','CMCIJ','maoOy','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','BROWSERSTACK_ACCESS_KEY','yEVIx','blOeT','663160ibGTUZ','ZrVSU','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','sZUNt','util','ZGLNg','CKRyc','builder','tgBRT','Eouuv','XINBv','description','194330BraYOX','exit','UOiHV','jXsdl','MXShn','debug','type','bstackAccesskey','GET','qGjwT','usage','HGOvF','help','oSKaS','got','recommendCommands','stack','/automate/plan.json','parse','env','rkjtg','string','QkFYx','ELOyp','LQxfM','writeFileSync','7394870QwWwlX','5yQaCNi','FbYyW','4KUTKdQ','nnGyD','Ksdkl','eRbOM','gKCOK','bstackUsername','https://'];a12_0x2f80=function(){return _0x161a76;};return a12_0x2f80();}
|
|
1
|
+
function a12_0x80d6(_0x42b165,_0x2600f6){const _0x420edb=a12_0x420e();return a12_0x80d6=function(_0x80d665,_0x3ac798){_0x80d665=_0x80d665-0xdb;let _0x5a8e07=_0x420edb[_0x80d665];return _0x5a8e07;},a12_0x80d6(_0x42b165,_0x2600f6);}function a12_0x420e(){const _0x17a6bf=['wrong-creds','GET','1532PPopYZ','tIjdJ','type','1354osBwHt','MtkSd','env','vZplQ','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','CZiZP','pHgnR','14ZXvBUL','121mMTqtA','error','gaVVX','YWFlp','uMWPC','3350mXhmns','mXirb','parse','init','dEFSC','strict','requestId','1071ALpYBl','epilogue','PsTab','BROWSERSTACK_ACCESS_KEY','stringify','tURFs','string','builder','../utils/utilityMethods','WtOoz','SXCkX','bstackUsername','/automate/plan.json','username','2892648NJXVKc','vZVcv','2985Msirmb','dNKCc','niXUu','6095rYeUot','util','BROWSERSTACK_USERNAME','EKPzU','zdsxK','2279920NpqNfu','options','password','FkOrj','fDmBe','HtIdU','ZFxLF','jjWev','help','oRnwe','wluGH','desc','readFileSync','uuid','writeFileSync','YnKiB','QRsfH','VgQdE','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','sBbxH','EWPfD','argv','KcwQo','got','4584876oJbFDW','eokog','IjBnj','VYHwL','statusCode','QDexa','FUnGb','../config/logger','UMNRx','DtevM','skdPW','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','ZoBJM','OIEog','bstack-username','279940VkDRjW','kKfRs','description','recommendCommands','yFKBq','../utils/userInput','bstackAccesskey','kKEQL','https://','RrvXr','cLnxe','ERROR','Browserstack','aDlot','hqQlv','utf-8','qYWba','ojZVu','exit','bstack-accesskey','UgptF','debug','INFO','usage'];a12_0x420e=function(){return _0x17a6bf;};return a12_0x420e();}const a12_0x2bd790=a12_0x80d6;(function(_0x41d68a,_0x174972){const _0x5deb72=a12_0x80d6,_0x31654a=_0x41d68a();while(!![]){try{const _0x2614c3=parseInt(_0x5deb72(0x11c))/0x1+-parseInt(_0x5deb72(0x139))/0x2*(parseInt(_0x5deb72(0xed))/0x3)+parseInt(_0x5deb72(0x136))/0x4*(-parseInt(_0x5deb72(0xf0))/0x5)+-parseInt(_0x5deb72(0x10d))/0x6+parseInt(_0x5deb72(0x140))/0x7*(-parseInt(_0x5deb72(0xf5))/0x8)+-parseInt(_0x5deb72(0xdd))/0x9*(parseInt(_0x5deb72(0x146))/0xa)+-parseInt(_0x5deb72(0x141))/0xb*(-parseInt(_0x5deb72(0xeb))/0xc);if(_0x2614c3===_0x174972)break;else _0x31654a['push'](_0x31654a['shift']());}catch(_0x3d85cf){_0x31654a['push'](_0x31654a['shift']());}}}(a12_0x420e,0x65d1b));const fs=require('fs'),util=require(a12_0x2bd790(0xf1)),got=require(a12_0x2bd790(0x10c)),{v4:uuidv4}=require(a12_0x2bd790(0x102)),{logger}=require(a12_0x2bd790(0x114)),{inputBstackKeys}=require(a12_0x2bd790(0x121)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x2bd790(0xe5)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports['command']=a12_0x2bd790(0x149),exports[a12_0x2bd790(0x100)]=a12_0x2bd790(0x118),exports[a12_0x2bd790(0xe4)]=function(_0x1b4ef6){const _0x5dbd80=a12_0x2bd790,_0x3b8460={};_0x3b8460[_0x5dbd80(0xfa)]=_0x5dbd80(0x107),_0x3b8460[_0x5dbd80(0x143)]=_0x5dbd80(0xe3),_0x3b8460[_0x5dbd80(0xff)]=_0x5dbd80(0x13d),_0x3b8460[_0x5dbd80(0x104)]=_0x5dbd80(0xfd);const _0x4cbec7=_0x3b8460,_0x397509={};_0x397509['description']=_0x4cbec7[_0x5dbd80(0xfa)],_0x397509[_0x5dbd80(0x138)]=_0x4cbec7[_0x5dbd80(0x143)];const _0x45962a={};_0x45962a['description']=_0x4cbec7[_0x5dbd80(0xff)],_0x45962a['type']=_0x4cbec7[_0x5dbd80(0x143)];const _0x2842c8={};return _0x2842c8[_0x5dbd80(0x11b)]=_0x397509,_0x2842c8['bstack-accesskey']=_0x45962a,_0x1b4ef6[_0x5dbd80(0x133)](HELP_HEADER_MESSAGE[_0x5dbd80(0x149)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5dbd80(0xf6)](_0x2842c8)[_0x5dbd80(0x11f)]()[_0x5dbd80(0xdb)]()[_0x5dbd80(0xfd)](_0x4cbec7[_0x5dbd80(0x104)])[_0x5dbd80(0x10a)];},exports['handler']=async function(_0x1463a0){const _0x2a2ac8=a12_0x2bd790,_0x3dcc2d={'auvvZ':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ojZVu':_0x2a2ac8(0xe3),'zdsxK':_0x2a2ac8(0x13d),'IjBnj':_0x2a2ac8(0xfd),'eokog':_0x2a2ac8(0x12b),'VgQdE':function(_0x3d72f1){return _0x3d72f1();},'CZiZP':function(_0x2e57ac){return _0x2e57ac();},'dEFSC':function(_0x15ecdc,_0x200936,_0x362a78,_0x187028,_0x1e841d,_0x3bcbd5,_0x10b2aa){return _0x15ecdc(_0x200936,_0x362a78,_0x187028,_0x1e841d,_0x3bcbd5,_0x10b2aa);},'FkOrj':'init-called','DtevM':function(_0x1bee25){return _0x1bee25();},'oRnwe':function(_0x9a321f,_0x3daa34){return _0x9a321f!==_0x3daa34;},'UMNRx':'fjQmD','skdPW':_0x2a2ac8(0x12a),'RrvXr':_0x2a2ac8(0xe7),'YWFlp':_0x2a2ac8(0xfc),'ZoBJM':function(_0x57644e,_0x30972b){return _0x57644e===_0x30972b;},'pHgnR':_0x2a2ac8(0xdf),'kKfRs':_0x2a2ac8(0x147),'tIjdJ':function(_0x12731e,_0x223148){return _0x12731e===_0x223148;},'UgptF':_0x2a2ac8(0xee),'ZFxLF':_0x2a2ac8(0x129),'EWPfD':function(_0x366b26,_0x4aa2d7){return _0x366b26===_0x4aa2d7;},'tURFs':function(_0xf7b2a7,_0x5bbbf1){return _0xf7b2a7===_0x5bbbf1;},'sBbxH':function(_0x2cad0c,_0x52e2d6){return _0x2cad0c===_0x52e2d6;},'VYHwL':'BMcfG','qYWba':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','ZUnCG':_0x2a2ac8(0x135),'wKnOO':function(_0x4caf06,_0x183db3,_0x440ddd){return _0x4caf06(_0x183db3,_0x440ddd);},'niXUu':function(_0x273630,_0x3b922e){return _0x273630!==_0x3b922e;},'DRXrz':function(_0x4c3a0b,_0xf54774){return _0x4c3a0b!==_0xf54774;},'uMWPC':function(_0x3c23df,_0x447632){return _0x3c23df===_0x447632;},'fDmBe':function(_0x277c2c,_0x2f98e7){return _0x277c2c!==_0x2f98e7;},'WtOoz':_0x2a2ac8(0x112),'OIEog':_0x2a2ac8(0x105),'MtkSd':_0x2a2ac8(0x123),'cLnxe':_0x2a2ac8(0x113),'JxXSX':_0x2a2ac8(0x10b),'vZVcv':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','vZplQ':_0x2a2ac8(0x134),'EKPzU':function(_0x191503,_0x380dea,_0x1ee0a8,_0x28b871,_0x393ec9,_0x1e9d09,_0x4dc68e){return _0x191503(_0x380dea,_0x1ee0a8,_0x28b871,_0x393ec9,_0x1e9d09,_0x4dc68e);},'yFKBq':'unknown-error'};try{global_registry[_0x2a2ac8(0xdc)]=_0x3dcc2d[_0x2a2ac8(0x13e)](uuidv4),_0x3dcc2d[_0x2a2ac8(0x14a)](sendInstrumentationEvent,_0x1463a0,_0x3dcc2d['FkOrj'],messageTypes[_0x2a2ac8(0x132)],null,null,_0x1463a0);const _0xc9e30e=_0x3dcc2d[_0x2a2ac8(0x116)](getDirForConfig);!fs['existsSync'](_0xc9e30e)&&(_0x3dcc2d[_0x2a2ac8(0xfe)](_0x3dcc2d[_0x2a2ac8(0x115)],_0x3dcc2d[_0x2a2ac8(0x117)])?fs['mkdirSync'](_0xc9e30e):_0x481471=!![]);let _0x127952,_0x17405a;process['env'][_0x2a2ac8(0xf2)]&&(_0x3dcc2d[_0x2a2ac8(0xfe)](_0x3dcc2d[_0x2a2ac8(0x125)],_0x3dcc2d[_0x2a2ac8(0x144)])?_0x127952=process[_0x2a2ac8(0x13b)]['BROWSERSTACK_USERNAME']:_0x416707=_0xc4b1a8[_0x2a2ac8(0x13b)]['BROWSERSTACK_USERNAME']);if(process[_0x2a2ac8(0x13b)][_0x2a2ac8(0xe0)]){if(_0x3dcc2d[_0x2a2ac8(0x119)](_0x3dcc2d[_0x2a2ac8(0x13f)],_0x3dcc2d[_0x2a2ac8(0x11d)])){const _0x3d8332={};_0x3d8332[_0x2a2ac8(0x11e)]=_0x3dcc2d['auvvZ'],_0x3d8332[_0x2a2ac8(0x138)]=_0x3dcc2d[_0x2a2ac8(0x12d)];const _0x1a7571={};_0x1a7571['description']=_0x3dcc2d[_0x2a2ac8(0xf4)],_0x1a7571[_0x2a2ac8(0x138)]=_0x3dcc2d[_0x2a2ac8(0x12d)];const _0x423498={};return _0x423498[_0x2a2ac8(0x11b)]=_0x3d8332,_0x423498[_0x2a2ac8(0x12f)]=_0x1a7571,_0x25a0be[_0x2a2ac8(0x133)](_0x33a218[_0x2a2ac8(0x149)])[_0x2a2ac8(0xde)](_0x324dc4)[_0x2a2ac8(0xf6)](_0x423498)[_0x2a2ac8(0x11f)]()[_0x2a2ac8(0xdb)]()[_0x2a2ac8(0xfd)](_0x3dcc2d[_0x2a2ac8(0x10f)])[_0x2a2ac8(0x10a)];}else _0x17405a=process[_0x2a2ac8(0x13b)]['BROWSERSTACK_ACCESS_KEY'];}_0x1463a0[_0x2a2ac8(0xe8)]&&(_0x3dcc2d[_0x2a2ac8(0x137)](_0x3dcc2d[_0x2a2ac8(0x130)],_0x3dcc2d[_0x2a2ac8(0x130)])?_0x127952=_0x1463a0[_0x2a2ac8(0xe8)]:_0x5672a1=_0x45a24f[_0x2a2ac8(0x148)](_0x864f60[_0x2a2ac8(0x101)](_0xa54e7b,_0x3dcc2d[_0x2a2ac8(0x10e)])));_0x1463a0[_0x2a2ac8(0x122)]&&(_0x3dcc2d['oRnwe'](_0x3dcc2d[_0x2a2ac8(0xfb)],_0x3dcc2d['ZFxLF'])?_0x518f17=_0x3fda9f[_0x2a2ac8(0x13b)][_0x2a2ac8(0xe0)]:_0x17405a=_0x1463a0[_0x2a2ac8(0x122)]);if(_0x3dcc2d['EWPfD'](_0x127952,undefined)||_0x3dcc2d[_0x2a2ac8(0xe2)](_0x17405a,undefined)){if(_0x3dcc2d[_0x2a2ac8(0x108)](_0x3dcc2d[_0x2a2ac8(0x110)],_0x3dcc2d[_0x2a2ac8(0x110)])){logger[_0x2a2ac8(0x131)](_0x3dcc2d[_0x2a2ac8(0x12c)]);const [_0x13f3a8,_0x31d7c7]=await _0x3dcc2d['CZiZP'](inputBstackKeys);_0x127952=_0x13f3a8,_0x17405a=_0x31d7c7;}else _0x425524=_0x50090f['bstackUsername'];}let _0x128ba2=![];const _0x25d4f3=_0x2a2ac8(0x124)+_0x127952+':'+_0x17405a+'@'+BS_API_URL+_0x2a2ac8(0xe9),_0x28ffb7={'method':_0x3dcc2d['ZUnCG'],'headers':_0x3dcc2d['wKnOO'](getAuthHeader,_0x127952,_0x17405a),'throwHttpErrors':![]},_0x5957d0=await _0x3dcc2d['wKnOO'](got,_0x25d4f3,_0x28ffb7);_0x3dcc2d[_0x2a2ac8(0xef)](_0x5957d0,null)&&_0x3dcc2d['DRXrz'](_0x5957d0,undefined)&&_0x3dcc2d[_0x2a2ac8(0x145)](_0x5957d0[_0x2a2ac8(0x111)],0xc8)&&(_0x3dcc2d[_0x2a2ac8(0xf9)](_0x3dcc2d[_0x2a2ac8(0xe6)],_0x3dcc2d[_0x2a2ac8(0x11a)])?_0x128ba2=!![]:_0x36e73b=_0x39e73c[_0x2a2ac8(0x122)]);if(_0x128ba2){if(_0x3dcc2d[_0x2a2ac8(0x109)](_0x3dcc2d[_0x2a2ac8(0x13a)],_0x3dcc2d[_0x2a2ac8(0x13a)])){let _0x341749={};const _0x4f3d41=_0x3dcc2d[_0x2a2ac8(0x106)](getCredentialsPath);if(fs['existsSync'](_0x4f3d41)){if(_0x3dcc2d[_0x2a2ac8(0x119)](_0x3dcc2d[_0x2a2ac8(0x126)],_0x3dcc2d['JxXSX'])){let _0xab660e={};const _0x54cb43=_0x3dcc2d[_0x2a2ac8(0x106)](_0xb686ec);_0x34b74f['existsSync'](_0x54cb43)&&(_0xab660e=_0x34fa8a[_0x2a2ac8(0x148)](_0x569a6a[_0x2a2ac8(0x101)](_0x54cb43,_0x3dcc2d[_0x2a2ac8(0x10e)])));const _0x16c913={};_0x16c913[_0x2a2ac8(0xea)]=_0x7d5fc9,_0x16c913[_0x2a2ac8(0xf7)]=_0x1a63a2,_0xab660e[_0x2a2ac8(0x128)]=_0x16c913,_0x1def4d[_0x2a2ac8(0x103)](_0x54cb43,_0x3c5dbb['stringify'](_0xab660e)),_0x57f1b7['exit'](0x0);}else _0x341749=JSON['parse'](fs[_0x2a2ac8(0x101)](_0x4f3d41,_0x3dcc2d[_0x2a2ac8(0x10e)]));}const _0x3e52fc={};_0x3e52fc[_0x2a2ac8(0xea)]=_0x127952,_0x3e52fc[_0x2a2ac8(0xf7)]=_0x17405a,_0x341749[_0x2a2ac8(0x128)]=_0x3e52fc,fs['writeFileSync'](_0x4f3d41,JSON[_0x2a2ac8(0xe1)](_0x341749)),process[_0x2a2ac8(0x12e)](0x0);}else _0x168a63['mkdirSync'](_0x52991a);}else logger[_0x2a2ac8(0x142)](_0x3dcc2d[_0x2a2ac8(0xec)]),await _0x3dcc2d[_0x2a2ac8(0x14a)](sendInstrumentationEvent,_0x1463a0,_0x3dcc2d[_0x2a2ac8(0xf8)],messageTypes[_0x2a2ac8(0x127)],_0x3dcc2d[_0x2a2ac8(0x13c)],null,_0x1463a0),process[_0x2a2ac8(0x12e)](0x1);}catch(_0x53661d){logger[_0x2a2ac8(0x142)](_0x53661d['stack']),await _0x3dcc2d[_0x2a2ac8(0xf3)](sendInstrumentationEvent,_0x1463a0,_0x3dcc2d[_0x2a2ac8(0xf8)],messageTypes['ERROR'],_0x3dcc2d[_0x2a2ac8(0x120)],_0x53661d,_0x1463a0),process['exit'](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a13_0x1d9b17=a13_0x1a27;function a13_0x1e44(){const _0x4ddc02=['recommendCommands','4BOHLUZ','command','1686951IOazKM','help','3354114aLJyGn','2424zQVYks','61748IRUXMC','desc','list','4562304FuMIRP','1016216fFZqIp','list_commands','../config/constants','uHfDb','usage','95724EONKgL','root','4919845cQMvBG','List\x20down\x20the\x20Grid\x20resources.','commandDir','epilogue'];a13_0x1e44=function(){return _0x4ddc02;};return a13_0x1e44();}(function(_0x3f7a2f,_0x216d47){const _0x47c741=a13_0x1a27,_0x32edd8=_0x3f7a2f();while(!![]){try{const _0x45cbc8=parseInt(_0x47c741(0x16d))/0x1+parseInt(_0x47c741(0x15b))/0x2+parseInt(_0x47c741(0x16b))/0x3*(-parseInt(_0x47c741(0x167))/0x4)+-parseInt(_0x47c741(0x162))/0x5+-parseInt(_0x47c741(0x170))/0x6+-parseInt(_0x47c741(0x169))/0x7+parseInt(_0x47c741(0x16c))/0x8*(parseInt(_0x47c741(0x160))/0x9);if(_0x45cbc8===_0x216d47)break;else _0x32edd8['push'](_0x32edd8['shift']());}catch(_0x5c49ae){_0x32edd8['push'](_0x32edd8['shift']());}}}(a13_0x1e44,0xa841c));function a13_0x1a27(_0x5360b3,_0x3fb103){const _0x1e4472=a13_0x1e44();return a13_0x1a27=function(_0x1a27e8,_0x45f226){_0x1a27e8=_0x1a27e8-0x15b;let _0x141fe6=_0x1e4472[_0x1a27e8];return _0x141fe6;},a13_0x1a27(_0x5360b3,_0x3fb103);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x1d9b17(0x15d));exports[a13_0x1d9b17(0x168)]=a13_0x1d9b17(0x16f),exports[a13_0x1d9b17(0x16e)]=a13_0x1d9b17(0x163),exports['builder']=function(_0x2731c3){const _0x4e7af7=a13_0x1d9b17,_0x408e3b={};_0x408e3b[_0x4e7af7(0x15e)]=_0x4e7af7(0x15c),_0x408e3b['LdatT']=_0x4e7af7(0x16a);const _0x5e61d0=_0x408e3b;return _0x2731c3[_0x4e7af7(0x164)](_0x5e61d0[_0x4e7af7(0x15e)])['demandCommand']()[_0x4e7af7(0x15f)](HELP_HEADER_MESSAGE[_0x4e7af7(0x16f)][_0x4e7af7(0x161)])[_0x4e7af7(0x165)](HELP_FOOTER_MESSAGE)[_0x4e7af7(0x166)]()['strict']()['help'](_0x5e61d0['LdatT']);},exports['handler']=function(_0x19fb4b){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x42259c=a14_0x39ce;function a14_0x54b6(){const _0x491ade=['https://','37182563ZBuTPk','1526260BrqVUK','zKIpW','gridProfile','26831Yuinmv','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','1878WDiFjn','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','hPstM','readFileSync','YoSew','bstackAccesskey','3964415SQOFPC','builder','tHmaH','log','TQIne','ERROR','KZRak','GET','faSox','MZGbP','options','stack','dmMEx','RLCCk','boolean','700453bVyjTA','Jixvq','password','jGWNa','WchmO','statusCode','push','command','../../config/constants','8FgAMSO','gBrDX','PNMxJ','init-not-called','description','exit','URmgn','uuid','756358ylVBzB','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','unknown-error','4eCcvud','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','username','list','bstackUsername','PCfRS','komkf','unauthorised','Browserstack','Lfggr','guBop','got','grid-profile-name','forEach','grid-profiles','allGridProfiles','Failed\x20to\x20list\x20resources!\x20Error:\x20','cloudProvider','../../utils/instrumentationUtils','handler','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','parse','fjbLi','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','hDWdi','help','concurrency','6fpXpLQ','argv','INFO','type','oztvi','6327198cXfWss'];a14_0x54b6=function(){return _0x491ade;};return a14_0x54b6();}function a14_0x39ce(_0x1e4ace,_0x101b5a){const _0x54b667=a14_0x54b6();return a14_0x39ce=function(_0x39cec7,_0x5e8a6e){_0x39cec7=_0x39cec7-0xe6;let _0x21985b=_0x54b667[_0x39cec7];return _0x21985b;},a14_0x39ce(_0x1e4ace,_0x101b5a);}(function(_0xbff828,_0x4bf2fd){const _0x115b3b=a14_0x39ce,_0x1ab861=_0xbff828();while(!![]){try{const _0x44bdca=parseInt(_0x115b3b(0x123))/0x1+parseInt(_0x115b3b(0x134))/0x2*(parseInt(_0x115b3b(0x101))/0x3)+parseInt(_0x115b3b(0xe6))/0x4*(parseInt(_0x115b3b(0x114))/0x5)+parseInt(_0x115b3b(0x10e))/0x6*(parseInt(_0x115b3b(0x10c))/0x7)+-parseInt(_0x115b3b(0x12c))/0x8*(-parseInt(_0x115b3b(0x106))/0x9)+-parseInt(_0x115b3b(0x109))/0xa+-parseInt(_0x115b3b(0x108))/0xb;if(_0x44bdca===_0x4bf2fd)break;else _0x1ab861['push'](_0x1ab861['shift']());}catch(_0x2c24b9){_0x1ab861['push'](_0x1ab861['shift']());}}}(a14_0x54b6,0x97442));const fs=require('fs'),got=require(a14_0x42259c(0xf1)),{table}=require('table'),{v4:uuidv4}=require(a14_0x42259c(0x133)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x42259c(0x12b)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x42259c(0xf8));exports[a14_0x42259c(0x12a)]=a14_0x42259c(0xf4),exports['desc']=a14_0x42259c(0xe7),exports[a14_0x42259c(0x115)]=function(_0x138740){const _0x5dd9b5=a14_0x42259c,_0x2b9e29={};_0x2b9e29[_0x5dd9b5(0x12d)]=_0x5dd9b5(0xfd),_0x2b9e29[_0x5dd9b5(0xec)]=_0x5dd9b5(0x122),_0x2b9e29[_0x5dd9b5(0x132)]='help';const _0x3030c0=_0x2b9e29,_0x581e62={};_0x581e62[_0x5dd9b5(0x130)]=_0x3030c0[_0x5dd9b5(0x12d)],_0x581e62[_0x5dd9b5(0x104)]=_0x3030c0[_0x5dd9b5(0xec)];const _0x2922c0={};return _0x2922c0['all-grid-profiles']=_0x581e62,_0x138740['usage'](HELP_HEADER_MESSAGE[_0x5dd9b5(0xe9)][_0x5dd9b5(0x10b)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5dd9b5(0x11e)](_0x2922c0)[_0x5dd9b5(0xff)](_0x3030c0[_0x5dd9b5(0x132)])[_0x5dd9b5(0x102)];},exports[a14_0x42259c(0xf9)]=async function(_0x3b2576){const _0x45b45d=a14_0x42259c,_0x3ddf5c={'zKIpW':function(_0xcb134){return _0xcb134();},'TQIne':_0x45b45d(0xfa),'KZRak':function(_0x3a3500,_0x2e07d6,_0x17f3ce,_0x47ad89,_0x52a530,_0x2abc03,_0x371788){return _0x3a3500(_0x2e07d6,_0x17f3ce,_0x47ad89,_0x52a530,_0x2abc03,_0x371788);},'guBop':'list-grid-profiles-called','YoSew':_0x45b45d(0x12f),'eHmyj':_0x45b45d(0x11b),'WchmO':function(_0x25bf0b,_0x39fc2f,_0x2f105b){return _0x25bf0b(_0x39fc2f,_0x2f105b);},'faSox':function(_0xfac895,_0x29efa4,_0x2cba5d){return _0xfac895(_0x29efa4,_0x2cba5d);},'fjbLi':function(_0x164047,_0x235d60){return _0x164047!==_0x235d60;},'hPstM':function(_0x4dfcaa,_0x4dc339){return _0x4dfcaa!==_0x4dc339;},'PNMxJ':function(_0x234572,_0x1d8ee3){return _0x234572===_0x1d8ee3;},'PCfRS':_0x45b45d(0x10f),'oztvi':_0x45b45d(0xf2),'HQQlH':'cloud-provider','RLCCk':'region','Jixvq':_0x45b45d(0x100),'jGWNa':function(_0x984230,_0x2efc54){return _0x984230(_0x2efc54);},'MZGbP':_0x45b45d(0x135),'Lfggr':function(_0x1c2fdb,_0x444cd8,_0x35a0e7,_0x539577,_0x1f1085,_0xda22f2,_0x4902fe){return _0x1c2fdb(_0x444cd8,_0x35a0e7,_0x539577,_0x1f1085,_0xda22f2,_0x4902fe);},'dmMEx':_0x45b45d(0xed),'tHmaH':'server-error','hDWdi':_0x45b45d(0x136)};try{global_registry['requestId']=_0x3ddf5c[_0x45b45d(0x10a)](uuidv4);let _0x189289=_0x45b45d(0x107)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x3b2576[_0x45b45d(0xf5)]&&(_0x189289=_0x45b45d(0x107)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs['existsSync'](_0x3ddf5c[_0x45b45d(0x10a)](getCredentialsPath))&&(console['error'](_0x3ddf5c[_0x45b45d(0x118)]),await _0x3ddf5c['KZRak'](sendInstrumentationEvent,_0x3b2576,_0x3ddf5c[_0x45b45d(0xf0)],messageTypes[_0x45b45d(0x119)],_0x3ddf5c[_0x45b45d(0x112)],null,_0x3b2576),process[_0x45b45d(0x131)](0x1));const _0x5ed868=JSON['parse'](fs[_0x45b45d(0x111)](_0x3ddf5c['zKIpW'](getCredentialsPath))),_0x162251={'method':_0x3ddf5c['eHmyj'],'headers':_0x3ddf5c[_0x45b45d(0x127)](getAuthHeader,_0x5ed868[_0x45b45d(0xee)]['username'],_0x5ed868['Browserstack'][_0x45b45d(0x125)]),'throwHttpErrors':![]};global_registry[_0x45b45d(0xea)]=_0x5ed868[_0x45b45d(0xee)][_0x45b45d(0xe8)],global_registry[_0x45b45d(0x113)]=_0x5ed868[_0x45b45d(0xee)]['password'],_0x3ddf5c[_0x45b45d(0x11a)](sendInstrumentationEvent,_0x3b2576,_0x3ddf5c[_0x45b45d(0xf0)],messageTypes[_0x45b45d(0x103)],null,null,_0x3b2576);const _0x85a72f=await _0x3ddf5c[_0x45b45d(0x11c)](got,_0x189289,_0x162251);if(_0x3ddf5c[_0x45b45d(0xfc)](_0x85a72f,null)&&_0x3ddf5c[_0x45b45d(0x110)](_0x85a72f,undefined)&&_0x3ddf5c[_0x45b45d(0x12e)](_0x85a72f[_0x45b45d(0x128)],0xc8)){const _0x4ef66d=JSON[_0x45b45d(0xfb)](_0x85a72f['body']);console['log'](_0x3ddf5c[_0x45b45d(0xeb)]);const _0x40e216=[];_0x40e216[_0x45b45d(0x129)]([_0x3ddf5c[_0x45b45d(0x105)],_0x3ddf5c['HQQlH'],_0x3ddf5c[_0x45b45d(0x121)],_0x3ddf5c[_0x45b45d(0x124)]]),_0x4ef66d[_0x45b45d(0xf3)](_0x5dc0ef=>{const _0x57d09b=_0x45b45d;_0x40e216[_0x57d09b(0x129)]([_0x5dc0ef['name'],_0x5dc0ef[_0x57d09b(0xf7)],_0x5dc0ef['region'],_0x5dc0ef[_0x57d09b(0x100)]]);}),console[_0x45b45d(0x117)](_0x3ddf5c[_0x45b45d(0x126)](table,_0x40e216)),process['exit'](0x0);}_0x3ddf5c['PNMxJ'](_0x85a72f[_0x45b45d(0x128)],0x191)&&(console['error'](_0x3ddf5c[_0x45b45d(0x11d)]),await _0x3ddf5c[_0x45b45d(0xef)](sendInstrumentationEvent,_0x3b2576,_0x3ddf5c[_0x45b45d(0xf0)],messageTypes[_0x45b45d(0x119)],_0x3ddf5c[_0x45b45d(0x120)],null,_0x3b2576),process[_0x45b45d(0x131)](0x1)),console['error'](_0x45b45d(0x10d)+JSON['stringify'](_0x85a72f)),await _0x3ddf5c[_0x45b45d(0x11a)](sendInstrumentationEvent,_0x3b2576,_0x3ddf5c[_0x45b45d(0xf0)],messageTypes[_0x45b45d(0x119)],_0x3ddf5c[_0x45b45d(0x116)],_0x85a72f,_0x3b2576),process[_0x45b45d(0x131)](0x1);}catch(_0x1021aa){console['error'](_0x45b45d(0xf6)+_0x1021aa[_0x45b45d(0x11f)]),await _0x3ddf5c[_0x45b45d(0x11a)](sendInstrumentationEvent,_0x3b2576,_0x3ddf5c[_0x45b45d(0xf0)],messageTypes[_0x45b45d(0x119)],_0x3ddf5c[_0x45b45d(0xfe)],_0x1021aa,_0x3b2576),process['exit'](0x1);}};
|