browserstack-node-sdk 1.34.23 → 1.34.24
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/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/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/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/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-tester.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_0x46d1ad=a9_0x26ee;(function(_0x5610f5,_0xa5e664){const _0x2dea46=a9_0x26ee,_0x3a9543=_0x5610f5();while(!![]){try{const _0x388d94=-parseInt(_0x2dea46(0xfa))/0x1+-parseInt(_0x2dea46(0x12e))/0x2+parseInt(_0x2dea46(0x1fe))/0x3*(parseInt(_0x2dea46(0x1e4))/0x4)+parseInt(_0x2dea46(0x1b6))/0x5*(parseInt(_0x2dea46(0x147))/0x6)+parseInt(_0x2dea46(0x188))/0x7+parseInt(_0x2dea46(0x18a))/0x8+-parseInt(_0x2dea46(0x223))/0x9;if(_0x388d94===_0xa5e664)break;else _0x3a9543['push'](_0x3a9543['shift']());}catch(_0x1632d7){_0x3a9543['push'](_0x3a9543['shift']());}}}(a9_0x4e49,0x3b532));function a9_0x4e49(){const _0x3a55e7=['381308ZFvAvh','gridProfile','ACftm','yDmYi','Grid\x20profile\x20fetched\x20from\x20backend','get-grid-url-auth-failed','UBuKU','createNamespace','createOtherResources','VVyPd','WebSocket','yFyMs','JDFuL','message','WMWQG','VHNIY','Deleting\x20the\x20CloudFormation\x20Stacks','Creating\x20namespace','jtZhz','https','PbkrD','\x27\x20grid\x20profile','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','UcAGq','sendEventToBackend','738GHzVgJ','ddxON','ingress-nginx','OtQiw','rZhIs','fmGpr','zgOcZ','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','AxqMv','AbKGK','Create\x20a\x20private/public\x20grid.','VEzuZ','eSgrP','3|2|4|1|0','eslWa','qYUZI','ixEHu','uOMyd','cxNgs','bsRiA','RjnCa','XCwcP','MuoSW','getGridHostname','body','create-grid-checks-non-200','AhqrM','gridName','TOqvL','string','stack','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','handler','pre-spawned-subnets-not-selected','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','fxxlx','default','JlwiS','connectionTimeout','tRzXs','subnets','Grid\x20can\x20be\x20accessed\x20at:\x20','/packages/cli/get-grid-url?gridIdentifier=','ERROR','MVAFC','CGxZO','VYXWa','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','grid','cluster-name','instanceType','grid-name','JuDzy','sMoET','readNamespacedService','namespace','create-grid-called','UBmdU','EczER','MBuDy','paOcg','description','\x20are\x20not\x20present\x20in\x20VPC:\x20','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','minNodes','1805594xBCFVW','rPuXJ','1997216mGXCHi','kWWrH','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','RKwQP','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','cXqJp','ywhBg','WbmTu','UzHLw','gJiHd','managedBy','length','isVPCPresent','Browserstack','Namespace\x20created','Found\x20Subnets:\x20','PijzG','kwjRa','name','../../utils/webSocketUtils','APIeI','includes','../../utils/utilityMethods','parse','uuid','BElBd','QxKOF','s3bucket','alreadyPresent','ESIjx','\x20using\x20\x27','newCluster','Found\x20VPC:\x20','dLgzD','pbzTX','split','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','wPLgX','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','Cluster\x20','eexEX','true','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','pMLUI','14085VrKJXa','OaGej','JXFQj','KroDT','isNewAWSCluster','error','zEXoU','metadata','isPrivateGrid','ZVxmj','UlwDY','aKlIx','VjRku','info','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','<PasswordPlaceholder>','AWjMu','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','CXGFS','OjsPz','qSdck','EdgBB','mpRMU','bstackUsername','desc','clusterRegion','tKcxO','sendResourceDataToHST','create-grid-checks-null-response','cloud-provider','qJehA','esipw','QYmJL','nqxJB','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.','xdrEs','Subnets:\x20','Klwlg','bTJvz','wFiRD','zSOso','YhcHF','debug','annotations','stringify','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','627604nfkFQO','QhACi','DlTpr','EELBu','type','CLI_RUN_FINISHED','epilogue','browserVersion','URDRV','private-grid','privateGrid','bblFF','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Wwblf','route53','get-grid-url-null-response','gVyaC','zfXtX','NcJNB','get-grid-url-non-200','vpc','exit','Cluster:\x20','TpzFy','\x20in\x20existing\x20cluster\x20\x27','skip-tls-cert-verify','3OHJieF','delay','ajZZJ','cxqZt','jPGCg','argv','WZLlX','GKMiy','eVmIE','../../utils/instrumentationUtils','https://','cloudProvider','Skip\x20insecure\x20cert\x20verification.','private-ingress-nginx-controller','BIuGB','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','GqwiO','cPSyY','maxNodes','4|8|3|0|7|5|2|1|6','setupNewCluster','SPQcQ','cyOoe','ezJOv','CLI\x20run\x20started','gridProfiles','../../config/constants','lJgHj','AiuIt','gOehs','hBmJO','RlkSA','Hnjak','concurrency','2|10|1|5|0|14|7|9|3|6|12|4|8|11|13','../../utils/gridComponents','createdBy','3514212QVNMnm','eEJJE','awVDs','gijYN','statusCode','TEeHt','xpxmu','xconk','fPocS','RGEKU','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','tbnnW','GsLJj','juVyg','toLowerCase','ZlNIv','oYWxt','MUXXq','rPxLw','bstackAccesskey','pre-spawned-invalid-subnets','UVRmd','region','/wd/hub','EpTSF','jLxwM','cgUAb','VnYIQ','MSTFx','brQJa','grid-profile','QAxTl','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','iMQTG','186870mpSXNz','bVGQl','DdsUM','../../utils/createk8sClient','aPajm','lUgfd','ZjaMz','password','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','replace','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','sXyvh','HBhIM','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','INFO','ORdRS','Cluster\x20created\x20successfully','boolean','isClusterPresent','Spawning\x20the\x20grid\x20','username','Will\x20be\x20spawning\x20the\x20grid\x20','../../cloudproviders/utils','GbvMK','snZqG','HsmUJ','JRcvP','got','QTpld','IkJTm','xFtqo','options','help','YnLEa','create-grid-checks-invalid-profile','clusterName','addListeners','hubVersion','CLI_RUN_STARTED','rdMVD','Spawning\x20Grid\x20on\x20the\x20Cluster','CLI\x20run\x20finished:\x20','JRqlR','BJZso','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','create','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','LOG','uqRKU','RngUh','<UsernamePlaceholder>','aTOub'];a9_0x4e49=function(){return _0x3a55e7;};return a9_0x4e49();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x46d1ad(0x115)),{v4:uuidv4}=require(a9_0x46d1ad(0x1a2)),webSocketUtils=require(a9_0x46d1ad(0x19d)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x46d1ad(0x1a0)),{getCloudProviderObject}=require(a9_0x46d1ad(0x110)),{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_0x46d1ad(0x218)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x46d1ad(0x221)),{createK8sClient}=require(a9_0x46d1ad(0xfd)),{sendInstrumentationEvent}=require(a9_0x46d1ad(0x207));function a9_0x26ee(_0x5556c5,_0x26dba5){const _0x4e49c2=a9_0x4e49();return a9_0x26ee=function(_0x26eedf,_0x144b7c){_0x26eedf=_0x26eedf-0xde;let _0x1271ea=_0x4e49c2[_0x26eedf];return _0x1271ea;},a9_0x26ee(_0x5556c5,_0x26dba5);}exports['command']=a9_0x46d1ad(0x177),exports[a9_0x46d1ad(0x1ce)]='Create\x20a\x20new\x20Automation\x20grid.',exports['builder']=function(_0x59779f){const _0xb428ba=a9_0x46d1ad,_0x65d4c7={};_0x65d4c7[_0xb428ba(0x163)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x65d4c7['QxKOF']='string',_0x65d4c7[_0xb428ba(0x21b)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x65d4c7[_0xb428ba(0x1c6)]=_0xb428ba(0x20d),_0x65d4c7[_0xb428ba(0xe2)]=_0xb428ba(0x1c4),_0x65d4c7['RGEKU']=_0xb428ba(0xf7),_0x65d4c7['lJgHj']='Create\x20a\x20private/public\x20grid.',_0x65d4c7['Klwlg']=_0xb428ba(0x20a),_0x65d4c7[_0xb428ba(0x1f4)]=_0xb428ba(0x10b),_0x65d4c7[_0xb428ba(0xf6)]=_0xb428ba(0x11a);const _0x271aa9=_0x65d4c7,_0x2ce00a={};_0x2ce00a[_0xb428ba(0x184)]=_0x271aa9[_0xb428ba(0x163)],_0x2ce00a[_0xb428ba(0x1e8)]=_0x271aa9['QxKOF'];const _0x515a32={};_0x515a32['description']=_0x271aa9['gOehs'],_0x515a32[_0xb428ba(0x1e8)]=_0x271aa9[_0xb428ba(0x1a4)];const _0x42393f={};_0x42393f[_0xb428ba(0x184)]=_0x271aa9['AWjMu'],_0x42393f[_0xb428ba(0x1e8)]=_0x271aa9[_0xb428ba(0x1a4)];const _0x198864={};_0x198864[_0xb428ba(0x184)]=_0x271aa9[_0xb428ba(0xe2)],_0x198864['type']=_0x271aa9['QxKOF'];const _0x142c22={};_0x142c22[_0xb428ba(0x184)]=_0x271aa9[_0xb428ba(0xe0)],_0x142c22['type']=_0x271aa9['QxKOF'];const _0x5893bb={};_0x5893bb['description']=_0x271aa9[_0xb428ba(0x219)],_0x5893bb[_0xb428ba(0x1e8)]=_0x271aa9[_0xb428ba(0x1a4)];const _0x2266b0={};_0x2266b0[_0xb428ba(0x184)]=_0x271aa9[_0xb428ba(0x1db)],_0x2266b0[_0xb428ba(0x1e8)]=_0x271aa9[_0xb428ba(0x1f4)],_0x2266b0[_0xb428ba(0x16b)]=![];const _0x1b452c={};return _0x1b452c[_0xb428ba(0x17a)]=_0x2ce00a,_0x1b452c[_0xb428ba(0xf5)]=_0x515a32,_0x1b452c[_0xb428ba(0x178)]=_0x42393f,_0x1b452c[_0xb428ba(0x1d3)]=_0x198864,_0x1b452c[_0xb428ba(0xed)]=_0x142c22,_0x1b452c[_0xb428ba(0x1ed)]=_0x5893bb,_0x1b452c['skip-tls-cert-verify']=_0x2266b0,_0x59779f['usage'](HELP_HEADER_MESSAGE[_0xb428ba(0x127)])[_0xb428ba(0x1ea)](HELP_FOOTER_MESSAGE)[_0xb428ba(0x119)](_0x1b452c)[_0xb428ba(0x11a)](_0x271aa9[_0xb428ba(0xf6)])[_0xb428ba(0x203)];},exports[a9_0x46d1ad(0x167)]=async function(_0x1c27c0){const _0x36c5bc=a9_0x46d1ad,_0x37c55c={'JRqlR':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','EpTSF':_0x36c5bc(0x164),'JieHf':_0x36c5bc(0x126),'cyOoe':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','CGxZO':_0x36c5bc(0x1c4),'DlTpr':_0x36c5bc(0xf7),'RGlDD':_0x36c5bc(0x151),'TpzFy':_0x36c5bc(0x20a),'JbMQn':_0x36c5bc(0x10b),'QTpld':_0x36c5bc(0x11a),'xpxmu':_0x36c5bc(0x1bb),'zgOcZ':_0x36c5bc(0x220),'gijYN':function(_0x3e22dd,_0x1c6a6a){return _0x3e22dd!==_0x1c6a6a;},'UBuKU':function(_0xc8f6e3,_0x427cea,_0x166de3,_0x2a85c8,_0x3d5c06,_0x53d400,_0x4a69e0,_0x57503e,_0x2ae519,_0x57a314,_0x50731c,_0x56b1e5){return _0xc8f6e3(_0x427cea,_0x166de3,_0x2a85c8,_0x3d5c06,_0x53d400,_0x4a69e0,_0x57503e,_0x2ae519,_0x57a314,_0x50731c,_0x56b1e5);},'juVyg':'http','VnYIQ':'1|4|6|2|5|8|0|7|3','bTJvz':_0x36c5bc(0x216),'brQJa':_0x36c5bc(0x141),'AxqMv':'warn','MSTFx':function(_0x2a3ad1,_0x3d43af){return _0x2a3ad1===_0x3d43af;},'rgisx':function(_0xbcf7e8){return _0xbcf7e8();},'iMQTG':function(_0x1e2891){return _0x1e2891();},'BJZso':'DUtKy','QJBJD':_0x36c5bc(0x1c9),'aTOub':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','JDFuL':function(_0x40b584,_0x5789d1,_0x6ce225,_0x257e97,_0x2f3d96,_0x3328b7,_0x57393f){return _0x40b584(_0x5789d1,_0x6ce225,_0x257e97,_0x2f3d96,_0x3328b7,_0x57393f);},'PijzG':_0x36c5bc(0x17f),'jPGCg':'init-not-called','sGkwf':function(_0x34d5fd,_0x325d50,_0x42451f,_0xf2f2da,_0x1cf64c,_0x3715e8,_0x29bb5e){return _0x34d5fd(_0x325d50,_0x42451f,_0xf2f2da,_0x1cf64c,_0x3715e8,_0x29bb5e);},'xFtqo':function(_0x1a8a25){return _0x1a8a25();},'ESIjx':_0x36c5bc(0x12c),'XCwcP':_0x36c5bc(0x1c5),'paOcg':'Adding\x20Websocket\x20listeners','jtZhz':_0x36c5bc(0x17b),'MUXXq':function(_0x2f56ad,_0xb11dcb){return _0x2f56ad!==_0xb11dcb;},'eexEX':_0x36c5bc(0x16c),'GKMiy':_0x36c5bc(0x14e),'JXFQj':function(_0x2b17a7,_0x116409,_0xe0d6ec,_0x1fbe6d,_0x19a6d2,_0xfdd8fa,_0x2e9a40,_0x50a8c1){return _0x2b17a7(_0x116409,_0xe0d6ec,_0x1fbe6d,_0x19a6d2,_0xfdd8fa,_0x2e9a40,_0x50a8c1);},'zfXtX':'prespawned-cluster-args-not-passed','CXGFS':function(_0x1dd7c4,_0x39cda1){return _0x1dd7c4===_0x39cda1;},'bsRiA':_0x36c5bc(0x109),'OaGej':_0x36c5bc(0x144),'sXyvh':'non-aws-azure-cluster','UcAGq':function(_0x21ea6e,_0x4e5abd){return _0x21ea6e===_0x4e5abd;},'IkJTm':_0x36c5bc(0x1b3),'EELBu':'dTxJQ','rPuXJ':_0x36c5bc(0x1bc),'AiuIt':_0x36c5bc(0xec),'YhcHF':'iRlPO','QYmJL':_0x36c5bc(0x1d0),'TEeHt':_0x36c5bc(0x112),'EBZAk':_0x36c5bc(0x1f6),'BIuGB':'GET','wwphd':function(_0x4cea86,_0x10e764,_0x2612f4){return _0x4cea86(_0x10e764,_0x2612f4);},'gJiHd':function(_0x52eeea,_0x4328fb){return _0x52eeea===_0x4328fb;},'OtQiw':'kbnbL','cxNgs':function(_0xe32c41,_0xf9c9bc){return _0xe32c41===_0xf9c9bc;},'YnLEa':function(_0x4dba36,_0x40247c){return _0x4dba36===_0x40247c;},'eEJJE':'tJLFS','cGDhd':_0x36c5bc(0x1e5),'cXzmc':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','HqckP':_0x36c5bc(0x1d2),'ACftm':function(_0xab0118,_0x446e69){return _0xab0118!==_0x446e69;},'URvRM':_0x36c5bc(0xdf),'UzHLw':'ebuhA','epWoa':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','SPQcQ':function(_0x4fd268,_0x5bdde6,_0x4d3f58,_0x54423f,_0x14a933,_0x4d091a,_0x1a3360,_0x34bbf2){return _0x4fd268(_0x5bdde6,_0x4d3f58,_0x54423f,_0x14a933,_0x4d091a,_0x1a3360,_0x34bbf2);},'rZhIs':'create-grid-checks-auth-failed','qYUZI':function(_0x3eb846,_0x18fc22){return _0x3eb846!==_0x18fc22;},'GsLJj':_0x36c5bc(0x17c),'hBmJO':_0x36c5bc(0x160),'WbmTu':_0x36c5bc(0x132),'KroDT':function(_0x2e2629,_0x1d5a62){return _0x2e2629===_0x1d5a62;},'mpRMU':_0x36c5bc(0x175),'UBmdU':function(_0x15ef5f,_0x1094a8,_0x48d5b3,_0xc12ffd,_0x55f2fd,_0x3b575d,_0x3be3a5,_0x4fd40f){return _0x15ef5f(_0x1094a8,_0x48d5b3,_0xc12ffd,_0x55f2fd,_0x3b575d,_0x3be3a5,_0x4fd40f);},'MVAFC':'create-grid-checks-grid-already-exists','ZVxmj':_0x36c5bc(0x1c2),'RngUh':'kHmJz','yFyMs':function(_0x1edf68,_0x3449ea){return _0x1edf68===_0x3449ea;},'GqwiO':_0x36c5bc(0x12a),'APIeI':_0x36c5bc(0xfc),'UlwDY':function(_0x3b3971,_0xbffde4){return _0x3b3971===_0xbffde4;},'ddxON':function(_0x2f49ea,_0x370b5f){return _0x2f49ea===_0x370b5f;},'cXqJp':'XLGKd','URDRV':'JPLsl','WZLlX':_0x36c5bc(0x169),'kwjRa':function(_0x1a49c9,_0x364c1f,_0x16814f,_0x42f2be,_0xa1b206,_0xb2d780,_0x15fe2c,_0x35e1f8){return _0x1a49c9(_0x364c1f,_0x16814f,_0x42f2be,_0xa1b206,_0xb2d780,_0x15fe2c,_0x35e1f8);},'bOQMI':_0x36c5bc(0x11c),'sDfyC':_0x36c5bc(0x13c),'BElBd':'nuTTG','MuoSW':function(_0x330c5b,_0x5bb250){return _0x330c5b!==_0x5bb250;},'EdgBB':_0x36c5bc(0x200),'ZjaMz':_0x36c5bc(0x131),'eSgrP':_0x36c5bc(0xe7),'xconk':_0x36c5bc(0x13d),'AbKGK':function(_0x2b4bff,_0x2f00c5){return _0x2b4bff!==_0x2f00c5;},'xdrEs':function(_0x4e1d0e,_0x4d94bf){return _0x4e1d0e!==_0x4d94bf;},'HsmUJ':'GGBxI','cxqZt':function(_0x4bd9c8,_0x304166){return _0x4bd9c8===_0x304166;},'JRcvP':_0x36c5bc(0x21e),'ZlNIv':_0x36c5bc(0x1d4),'aKlIx':_0x36c5bc(0x211),'rdMVD':function(_0x4fe422,_0x1fca6f){return _0x4fe422!==_0x1fca6f;},'tRzXs':function(_0x51bc83,_0x3c2356){return _0x51bc83===_0x3c2356;},'RjnCa':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','PbkrD':function(_0x24b9ba,_0xcb9c58){return _0x24b9ba!=_0xcb9c58;},'lDwsj':function(_0x3259eb,_0x2f6011){return _0x3259eb!=_0x2f6011;},'esipw':function(_0x178cd1,_0x58ffd5){return _0x178cd1!==_0x58ffd5;},'zSOso':function(_0x1e5bed,_0x4c5fd1){return _0x1e5bed>_0x4c5fd1;},'wPLgX':_0x36c5bc(0xe1),'GbvMK':function(_0x5eaf00,_0x2cd15e,_0x3ba5fc,_0x10170e,_0x1e61bb,_0xe79032,_0x546717,_0x316bb9){return _0x5eaf00(_0x2cd15e,_0x3ba5fc,_0x10170e,_0x1e61bb,_0xe79032,_0x546717,_0x316bb9);},'RKwQP':_0x36c5bc(0x168),'ixEHu':_0x36c5bc(0x18c),'nqxJB':'pre-spawned-invalid-vpc','kWWrH':_0x36c5bc(0xeb),'ozVtt':_0x36c5bc(0x154),'dLgzD':_0x36c5bc(0x10a),'cPSyY':_0x36c5bc(0x1d8),'bVGQl':function(_0x49429a,_0x332785){return _0x49429a===_0x332785;},'uOMyd':function(_0x1f1f2b,_0xf9a9cc,_0x41b504){return _0x1f1f2b(_0xf9a9cc,_0x41b504);},'aPajm':function(_0x5e951a,_0x411f7c){return _0x5e951a===_0x411f7c;},'pbzTX':function(_0x57bf07,_0xa6ee0e){return _0x57bf07(_0xa6ee0e);},'fxxlx':_0x36c5bc(0x13f),'eVmIE':function(_0x7c16f1,_0xbd2886){return _0x7c16f1!==_0xbd2886;},'SzZec':'default','lUgfd':_0x36c5bc(0x197),'ywhBg':'Namespace\x20Created','UsvII':_0x36c5bc(0x198),'MBuDy':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','qSdck':_0x36c5bc(0x122),'bblFF':function(_0xfe0f0,_0x5313be,_0x317922,_0x46676f,_0xa01aa2,_0x506dd8,_0x52d753,_0xc681bd,_0x5baeb0,_0x2201e0,_0x544c66){return _0xfe0f0(_0x5313be,_0x317922,_0x46676f,_0xa01aa2,_0x506dd8,_0x52d753,_0xc681bd,_0x5baeb0,_0x2201e0,_0x544c66);},'cgUAb':'Grid\x20spawned\x20on\x20the\x20cluster','VEzuZ':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Wwblf':function(_0x43aac8,_0x33ac9d,_0x1bbb07,_0x3b4952,_0x4552f9){return _0x43aac8(_0x33ac9d,_0x1bbb07,_0x3b4952,_0x4552f9);},'fmGpr':_0x36c5bc(0x20b),'pMLUI':'ingress-nginx-controller','HBhIM':_0x36c5bc(0x149),'EczER':_0x36c5bc(0x18e),'RlkSA':function(_0x5a5d66,_0x2445d8,_0x5efb99,_0x49a37c,_0x4d5035,_0x1eda30,_0x11b5e2,_0xd00090){return _0x5a5d66(_0x2445d8,_0x5efb99,_0x49a37c,_0x4d5035,_0x1eda30,_0x11b5e2,_0xd00090);},'wFiRD':_0x36c5bc(0x1f3),'ezJOv':_0x36c5bc(0x1c7),'ySAED':_0x36c5bc(0x133),'awVDs':function(_0xb58467,_0x4f3f33){return _0xb58467!==_0x4f3f33;},'eslWa':_0x36c5bc(0x1f7),'jLxwM':_0x36c5bc(0x13e),'rPxLw':function(_0xf997db,_0x20182a,_0x4076e5,_0x4f0e78,_0x23513c,_0x35c15e){return _0xf997db(_0x20182a,_0x4076e5,_0x4f0e78,_0x23513c,_0x35c15e);},'VVyPd':function(_0xe393c3,_0x34c40e,_0xaa8155,_0x58ccbb,_0x36205a,_0xa0ec98,_0x5646f0){return _0xe393c3(_0x34c40e,_0xaa8155,_0x58ccbb,_0x36205a,_0xa0ec98,_0x5646f0);},'AhqrM':'grid-spawning-failed'};let _0x592cda=![],_0x23951c=![],_0x14a123,_0x1f5be3,_0xeb4943,_0x3dcbb9,_0x44e994,_0x3d00ac,_0x584d90,_0x27b907,_0x5a1461,_0x313009,_0x4baa9a,_0x363b83,_0x31bbec,_0x42cfcf,_0x99aedb=0x1,_0x48dac6=0xe;try{global_registry['requestId']=_0x37c55c['rgisx'](uuidv4),global_registry['isPrivateGrid']=![];if(!fs['existsSync'](_0x37c55c[_0x36c5bc(0xf9)](getCredentialsPath))){if(_0x37c55c[_0x36c5bc(0x226)](_0x37c55c[_0x36c5bc(0x125)],_0x37c55c['QJBJD']))console[_0x36c5bc(0x1bb)](_0x37c55c[_0x36c5bc(0x12d)]),await _0x37c55c[_0x36c5bc(0x13a)](sendInstrumentationEvent,_0x1c27c0,_0x37c55c[_0x36c5bc(0x19a)],messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x202)],null,_0x1c27c0),process[_0x36c5bc(0x1f9)](0x1);else{const _0x557fb0={};_0x557fb0['description']=_0x37c55c[_0x36c5bc(0x124)],_0x557fb0[_0x36c5bc(0x1e8)]=_0x37c55c[_0x36c5bc(0xef)];const _0x47b381={};_0x47b381['description']=_0x37c55c['JieHf'],_0x47b381[_0x36c5bc(0x1e8)]=_0x37c55c['EpTSF'];const _0x4278ad={};_0x4278ad[_0x36c5bc(0x184)]=_0x37c55c[_0x36c5bc(0x214)],_0x4278ad['type']=_0x37c55c[_0x36c5bc(0xef)];const _0x126195={};_0x126195[_0x36c5bc(0x184)]=_0x37c55c[_0x36c5bc(0x174)],_0x126195[_0x36c5bc(0x1e8)]=_0x37c55c[_0x36c5bc(0xef)];const _0x477845={};_0x477845[_0x36c5bc(0x184)]=_0x37c55c[_0x36c5bc(0x1e6)],_0x477845[_0x36c5bc(0x1e8)]=_0x37c55c[_0x36c5bc(0xef)];const _0x26eea2={};_0x26eea2[_0x36c5bc(0x184)]=_0x37c55c['RGlDD'],_0x26eea2[_0x36c5bc(0x1e8)]=_0x37c55c[_0x36c5bc(0xef)];const _0x5af0a6={};_0x5af0a6[_0x36c5bc(0x184)]=_0x37c55c[_0x36c5bc(0x1fb)],_0x5af0a6[_0x36c5bc(0x1e8)]=_0x37c55c['JbMQn'],_0x5af0a6[_0x36c5bc(0x16b)]=![];const _0x890000={};return _0x890000[_0x36c5bc(0x17a)]=_0x557fb0,_0x890000[_0x36c5bc(0xf5)]=_0x47b381,_0x890000[_0x36c5bc(0x178)]=_0x4278ad,_0x890000[_0x36c5bc(0x1d3)]=_0x126195,_0x890000[_0x36c5bc(0xed)]=_0x477845,_0x890000[_0x36c5bc(0x1ed)]=_0x26eea2,_0x890000[_0x36c5bc(0x1fd)]=_0x5af0a6,_0x3fb468['usage'](_0x28e3ed[_0x36c5bc(0x127)])[_0x36c5bc(0x1ea)](_0x471b67)[_0x36c5bc(0x119)](_0x890000)['help'](_0x37c55c[_0x36c5bc(0x116)])[_0x36c5bc(0x203)];}}await _0x37c55c['sGkwf'](sendInstrumentationEvent,_0x1c27c0,_0x37c55c[_0x36c5bc(0x19a)],messageTypes[_0x36c5bc(0x108)],null,null,_0x1c27c0);const _0x353408=JSON[_0x36c5bc(0x1a1)](fs['readFileSync'](_0x37c55c[_0x36c5bc(0x118)](getCredentialsPath)));global_registry[_0x36c5bc(0x1cd)]=_0x353408['Browserstack'][_0x36c5bc(0x10e)],global_registry[_0x36c5bc(0xea)]=_0x353408['Browserstack'][_0x36c5bc(0x101)];const _0x358303=WS_ENDPOINT[_0x36c5bc(0x103)](_0x37c55c[_0x36c5bc(0x1a7)],_0x353408['Browserstack']['username'])[_0x36c5bc(0x103)](_0x37c55c[_0x36c5bc(0x15c)],_0x353408['Browserstack']['password']),_0x3e7f5b={};_0x3e7f5b[_0x36c5bc(0x138)]=ws,_0x3e7f5b[_0x36c5bc(0x16d)]=0x36ee80,_0x363b83=new ReconnectingWebSocket(_0x358303,[],_0x3e7f5b),logger[_0x36c5bc(0x1e0)](_0x37c55c[_0x36c5bc(0x183)]),webSocketUtils[_0x36c5bc(0x11e)](_0x363b83,_0x1c27c0['user'],_0x1c27c0[_0x36c5bc(0x101)]);const _0x44810f=_0x1c27c0[_0x36c5bc(0x162)]||DEFAULT_GRID_NAME;if(_0x1c27c0['clusterName']||_0x1c27c0[_0x36c5bc(0x209)]||_0x1c27c0[_0x36c5bc(0xed)]){if(_0x37c55c[_0x36c5bc(0xf3)](_0x37c55c['jtZhz'],_0x37c55c[_0x36c5bc(0x140)])){!(_0x1c27c0['clusterName']&&_0x1c27c0[_0x36c5bc(0x209)]&&_0x1c27c0[_0x36c5bc(0xed)])&&(_0x37c55c[_0x36c5bc(0xe8)](_0x37c55c[_0x36c5bc(0x1b2)],_0x37c55c[_0x36c5bc(0x1b2)])?(_0x2a01ca[_0x36c5bc(0x1c3)]('Cluster:\x20'+_0x52cd6e[_0x36c5bc(0x11d)]+_0x36c5bc(0x1b0)),_0x4d7291=![],_0x9c719=!![]):(_0x14a123=_0x37c55c[_0x36c5bc(0x205)],await _0x37c55c['JXFQj'](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c['PijzG'],_0x37c55c[_0x36c5bc(0x1f5)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)));if(![AWS,AZURE,GCP][_0x36c5bc(0x19f)](_0x1c27c0[_0x36c5bc(0x209)][_0x36c5bc(0xe5)]())){if(_0x37c55c[_0x36c5bc(0x1c8)](_0x37c55c[_0x36c5bc(0x15a)],_0x37c55c[_0x36c5bc(0x15a)]))_0x14a123=_0x37c55c[_0x36c5bc(0x1b7)],await _0x37c55c[_0x36c5bc(0x1b8)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x105)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1);else throw new _0x5061f9(_0x36c5bc(0x1b1)+_0xcf026a+_0x36c5bc(0x107));}_0x1c27c0[_0x36c5bc(0x1ee)]&&_0x37c55c[_0x36c5bc(0x145)](_0x1c27c0[_0x36c5bc(0x1ee)][_0x36c5bc(0xe5)](),_0x37c55c[_0x36c5bc(0x117)])&&(_0x37c55c[_0x36c5bc(0x226)](_0x37c55c[_0x36c5bc(0x1e7)],_0x37c55c[_0x36c5bc(0x1e7)])?_0x3a475f=null:global_registry[_0x36c5bc(0x1be)]=!![]);global_registry[_0x36c5bc(0x209)]=_0x1c27c0[_0x36c5bc(0x209)],global_registry[_0x36c5bc(0x1cf)]=_0x1c27c0[_0x36c5bc(0xed)],global_registry[_0x36c5bc(0x11d)]=_0x1c27c0[_0x36c5bc(0x11d)];const _0x472a70=await _0x37c55c['JDFuL'](getCloudProviderObject,_0x1c27c0['cloudProvider'],_0x1c27c0[_0x36c5bc(0x11d)],_0x44810f,_0x363b83,webSocketUtils,_0x1c27c0),_0x3352a8=await _0x472a70[_0x36c5bc(0x10c)]();if(!_0x3352a8)_0x37c55c['CXGFS'](_0x37c55c[_0x36c5bc(0x189)],_0x37c55c[_0x36c5bc(0x21a)])?_0x2ba702[_0x36c5bc(0x1bb)](_0x36c5bc(0x102)+_0x33739d+'\x20\x0a'+_0x255695[_0x36c5bc(0x1e2)](_0x2cff26[_0x36c5bc(0x165)])):(logger[_0x36c5bc(0x1c3)](_0x36c5bc(0x1fa)+_0x1c27c0[_0x36c5bc(0x11d)]+_0x36c5bc(0x1b0)),_0x592cda=![],_0x23951c=!![]);else{if(_0x37c55c[_0x36c5bc(0xe8)](_0x37c55c[_0x36c5bc(0x1df)],_0x37c55c[_0x36c5bc(0x1d6)]))_0x592cda=!![];else{const _0x5efff7={};_0x5efff7[_0x36c5bc(0x1e8)]=_0x2fa009[_0x36c5bc(0x129)],_0x5efff7[_0x36c5bc(0x13b)]=_0x4852aa,_0x3e1b8f['sendEventToBackend'](_0x3c0a21,_0x5efff7,_0x37c55c[_0x36c5bc(0x229)],!![]);}}_0xeb4943=_0x1c27c0[_0x36c5bc(0x11d)],_0x1f5be3=_0x1c27c0[_0x36c5bc(0x209)]['toLowerCase'](),_0x3dcbb9=_0x1c27c0[_0x36c5bc(0xed)];}else _0x32fd7f['region']=_0x4d11a3,_0x169276['cloudProvider']=_0x3acadf,_0x1babcb[_0x36c5bc(0x1a9)]=!![];}else _0x1c27c0['gridProfile']&&(_0x37c55c[_0x36c5bc(0xf3)](_0x37c55c[_0x36c5bc(0x228)],_0x37c55c['EBZAk'])?_0x539571['isPrivateGrid']=!![]:global_registry['gridProfile']=_0x1c27c0[_0x36c5bc(0x12f)]);global_registry[_0x36c5bc(0x162)]=_0x1c27c0[_0x36c5bc(0x162)];const _0x1c6bff={'method':_0x37c55c[_0x36c5bc(0x20c)],'headers':_0x37c55c['wwphd'](getAuthHeader,_0x353408[_0x36c5bc(0x197)][_0x36c5bc(0x10e)],_0x353408[_0x36c5bc(0x197)][_0x36c5bc(0x101)]),'throwHttpErrors':![]},_0x125a53={};_0x125a53[_0x36c5bc(0x162)]=_0x44810f;const _0x419206=_0x125a53;_0x23951c&&(_0x37c55c[_0x36c5bc(0x193)](_0x37c55c[_0x36c5bc(0x14a)],_0x37c55c[_0x36c5bc(0x14a)])?(_0x419206[_0x36c5bc(0xed)]=_0x3dcbb9,_0x419206[_0x36c5bc(0x209)]=_0x1f5be3,_0x419206['newCluster']=!![]):_0x339b83[_0x36c5bc(0x1be)]=!![]);const _0x558100=_0x36c5bc(0x208)+AG_API_URL+'/packages/cli/create-grid-checks',_0x374c9a={'searchParams':_0x419206,'throwHttpErrors':![],..._0x1c6bff},_0xab3f18=_0x374c9a,_0x20a06c=await _0x37c55c['wwphd'](got,_0x558100,_0xab3f18);(_0x37c55c[_0x36c5bc(0x159)](_0x20a06c,null)||_0x37c55c[_0x36c5bc(0x11b)](_0x20a06c,undefined))&&(_0x37c55c[_0x36c5bc(0xf3)](_0x37c55c[_0x36c5bc(0x224)],_0x37c55c['cGDhd'])?_0x4962d3=_0x14e3d5[_0x162cef[_0x36c5bc(0x12f)]]:(_0x14a123=_0x37c55c['cXzmc'],await _0x37c55c[_0x36c5bc(0x1b8)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c['HqckP'],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process['exit'](0x1)));_0x37c55c[_0x36c5bc(0x145)](_0x20a06c['statusCode'],0x191)&&(_0x37c55c[_0x36c5bc(0x130)](_0x37c55c['URvRM'],_0x37c55c[_0x36c5bc(0x192)])?(_0x14a123=_0x37c55c['epWoa'],await _0x37c55c[_0x36c5bc(0x213)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c['PijzG'],_0x37c55c[_0x36c5bc(0x14b)],_0x37c55c['xpxmu']),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)):_0x2e6de0[_0x36c5bc(0x12f)]=_0x47881a['gridProfile']);_0x37c55c[_0x36c5bc(0x156)](_0x20a06c[_0x36c5bc(0x227)],0xc8)&&(_0x37c55c[_0x36c5bc(0x130)](_0x37c55c['GsLJj'],_0x37c55c[_0x36c5bc(0xe3)])?_0x5647e7=!![]:(_0x14a123='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x20a06c[_0x36c5bc(0x15f)]),await _0x37c55c['SPQcQ'](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x21c)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)));const _0xd596e=JSON[_0x36c5bc(0x1a1)](_0x20a06c['body']),_0x1f0dec={};_0x1f0dec[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x120)],_0x1f0dec[_0x36c5bc(0x13b)]=_0x37c55c['bTJvz'],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x1f0dec);const _0x44b10e={};_0x44b10e['type']=WS_EVENTS[_0x36c5bc(0x129)],_0x44b10e[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x191)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x44b10e);if(_0xd596e[_0x36c5bc(0x1a6)]){if(_0x37c55c[_0x36c5bc(0x1b9)](_0x37c55c[_0x36c5bc(0x1cc)],_0x37c55c[_0x36c5bc(0x1cc)]))_0x14a123=_0x36c5bc(0x1e3)+_0x44810f+_0x36c5bc(0x1f0),await _0x37c55c[_0x36c5bc(0x180)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x173)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1);else{const _0x34b779=_0x37c55c[_0x36c5bc(0x14d)][_0x36c5bc(0x1ad)]('|');let _0x1fb486=0x0;while(!![]){switch(_0x34b779[_0x1fb486++]){case'0':_0x78f1cb=_0x3fe463[_0x36c5bc(0x179)];continue;case'1':const _0x17944c={};_0x17944c['type']=_0x42dbe4[_0x36c5bc(0x129)],_0x17944c['message']=_0x4f2a2e,_0x158466[_0x36c5bc(0x146)](_0x2a97f4,_0x17944c);continue;case'2':_0x43cab8='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x4c1ed0;continue;case'3':_0x4f3c59=_0x186c4c[_0x36c5bc(0x1a5)];continue;case'4':_0x1176bd=_0x49a6e5[_0x36c5bc(0x11f)];continue;case'5':_0x3d7865=_0x1032c7[_0x36c5bc(0x21f)];continue;case'6':_0x56ebc2=_0x35b9a8[_0x36c5bc(0x187)];continue;case'7':_0x57092b=null;continue;case'8':_0xa4124e=_0x125df2[_0x36c5bc(0x1eb)];continue;case'9':_0x5d2f5d=null;continue;case'10':_0x2c6092[_0x36c5bc(0x1c3)](_0x131e17);continue;case'11':_0x37c55c['gijYN'](_0xba160['privateGrid'],_0x48ec56)&&_0x29b59e[_0x36c5bc(0x1ee)]&&(_0x43d4b6[_0x36c5bc(0x1be)]=!![]);continue;case'12':_0x18a62b=_0x41f6fa[_0x36c5bc(0x210)];continue;case'13':_0x37c55c[_0x36c5bc(0x134)](_0xe5503,_0x1aab40,_0x4c9a3c,_0x304a13,_0x45de18,_0x541630,_0x1cbd33,_0x15db32,_0x201fc4,_0x11702b,_0x2eb11c,_0x215a21);continue;case'14':_0x47a2b4=null;continue;}break;}}}const _0x369e3a=_0xd596e[_0x36c5bc(0x217)];let _0x4d76be=_0x369e3a[_0xd596e['defaultGridProfile']];_0x1c27c0[_0x36c5bc(0x12f)]&&(_0x37c55c[_0x36c5bc(0x130)](_0x37c55c[_0x36c5bc(0x1bf)],_0x37c55c[_0x36c5bc(0x12b)])?_0x4d76be=_0x369e3a[_0x1c27c0[_0x36c5bc(0x12f)]]:_0x4a6642[_0x36c5bc(0x1c3)](_0x36c5bc(0x1aa)+_0x2dd870+'\x20'));if(_0x37c55c[_0x36c5bc(0x1c8)](_0x592cda,![])&&_0x37c55c['MSTFx'](_0x23951c,![])){if(_0x37c55c[_0x36c5bc(0x139)](_0x37c55c[_0x36c5bc(0x20e)],_0x37c55c[_0x36c5bc(0x19e)]))_0x402ab8[_0x36c5bc(0x1d1)]();else{_0x37c55c[_0x36c5bc(0x1c0)](_0x4d76be,undefined)&&(_0x37c55c[_0x36c5bc(0x148)](_0x37c55c[_0x36c5bc(0x18f)],_0x37c55c[_0x36c5bc(0x1ec)])?_0x48b9f7=_0x37c55c[_0x36c5bc(0xe4)]:(_0x14a123=_0x37c55c[_0x36c5bc(0x204)],await _0x37c55c[_0x36c5bc(0x19b)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c['PijzG'],_0x37c55c['bOQMI'],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)));global_registry['gridProfileId']=_0x4d76be['id'],_0x14a123=_0x36c5bc(0x10f)+_0x44810f+_0x36c5bc(0x1a8)+_0x4d76be[_0x36c5bc(0x19c)]+_0x36c5bc(0x143),logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x2ec0dc={};_0x2ec0dc[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x2ec0dc[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils['sendEventToBackend'](_0x363b83,_0x2ec0dc),_0x1f5be3=_0x4d76be[_0x36c5bc(0x209)],_0xeb4943=_0x4d76be['clusterName'],_0x3dcbb9=_0x4d76be[_0x36c5bc(0xed)],_0x44e994=_0x4d76be[_0x36c5bc(0x21f)],_0x3d00ac=_0x4d76be[_0x36c5bc(0x179)],_0x584d90=_0x4d76be[_0x36c5bc(0x1f8)],_0x27b907=_0x4d76be['securityGroups'],_0x5a1461=_0x4d76be[_0x36c5bc(0x16f)],_0x313009=_0x4d76be[_0x36c5bc(0x1a5)],_0x99aedb=_0x4d76be[_0x36c5bc(0x187)],_0x48dac6=_0x4d76be[_0x36c5bc(0x210)],_0x31bbec=_0xd596e[_0x36c5bc(0x11f)],_0x42cfcf=_0xd596e[_0x36c5bc(0x1eb)];_0x584d90&&_0x37c55c[_0x36c5bc(0x139)](_0x584d90[_0x36c5bc(0x195)],0x0)&&(_0x37c55c[_0x36c5bc(0x156)](_0x37c55c['sDfyC'],_0x37c55c[_0x36c5bc(0x1a3)])?_0x584d90=null:_0x19924e[_0x36c5bc(0x1c3)](_0x36c5bc(0x199)+_0x7db34e[_0x36c5bc(0x1e2)](_0x40600b)+'\x20'));_0x5a1461&&_0x37c55c[_0x36c5bc(0x11b)](_0x5a1461[_0x36c5bc(0x195)],0x0)&&(_0x37c55c[_0x36c5bc(0x15d)](_0x37c55c[_0x36c5bc(0x1cb)],_0x37c55c['EdgBB'])?_0x231b72=null:_0x5a1461=null);if(_0x37c55c[_0x36c5bc(0x130)](_0x4d76be['privateGrid'],undefined)&&_0x4d76be[_0x36c5bc(0x1ee)]){if(_0x37c55c[_0x36c5bc(0x159)](_0x37c55c['ZjaMz'],_0x37c55c[_0x36c5bc(0x100)]))global_registry['isPrivateGrid']=!![];else{const _0x4f1053=_0x37c55c[_0x36c5bc(0xf2)][_0x36c5bc(0x1ad)]('|');let _0x518e80=0x0;while(!![]){switch(_0x4f1053[_0x518e80++]){case'0':_0x1fea57[_0x36c5bc(0x11d)]=_0x39f091;continue;case'1':const _0x2246b4={};_0x2246b4[_0x36c5bc(0x1e8)]=_0x9d7878[_0x36c5bc(0x120)],_0x2246b4[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x1dc)],_0x3d4b54['sendEventToBackend'](_0x2ced65,_0x2246b4);continue;case'2':const _0x133fc6={};_0x133fc6[_0x36c5bc(0x1e8)]=_0x5459f7[_0x36c5bc(0x129)],_0x133fc6[_0x36c5bc(0x13b)]=_0x535dff,_0x3eba50[_0x36c5bc(0x146)](_0x34be6b,_0x133fc6);continue;case'3':_0x123418[_0x36c5bc(0x1eb)]=_0x50a5f1['browserVersion'];continue;case'4':_0x55166f=_0x36c5bc(0x10d)+_0x48406c+_0x36c5bc(0x1fc)+_0x2d563e+'\x27';continue;case'5':_0x232488[_0x36c5bc(0x209)]=_0x308406;continue;case'6':_0x38d1a5[_0x36c5bc(0x1c3)](_0xbba055);continue;case'7':_0x4cfc6c['hubVersion']=_0x340ba9[_0x36c5bc(0x11f)];continue;case'8':_0x58b113['clusterRegion']=_0x28accf;continue;}break;}}}_0x37c55c[_0x36c5bc(0x134)](updateGlobalRegistryWithConfig,_0x1f5be3,_0xeb4943,_0x3dcbb9,_0x44e994,_0x3d00ac,_0x313009,_0x4d76be,_0x31bbec,_0x42cfcf,_0x99aedb,_0x48dac6);}}else{if(_0x37c55c[_0x36c5bc(0x139)](_0x23951c,!![])){if(_0x37c55c[_0x36c5bc(0x1c8)](_0x37c55c[_0x36c5bc(0x153)],_0x37c55c[_0x36c5bc(0xde)]))_0x4678fa[_0x36c5bc(0x1be)]=!![];else{_0x14a123=_0x36c5bc(0x166)+_0x44810f,logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x445309={};_0x445309[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x445309[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x445309),_0x44e994=_0x4d76be[_0x36c5bc(0x21f)],_0x3d00ac=_0x4d76be[_0x36c5bc(0x179)],_0x584d90=null,_0x27b907=null,_0x5a1461=null,_0x313009=_0x4d76be['s3bucket'],_0x99aedb=_0x4d76be[_0x36c5bc(0x187)],_0x48dac6=_0x4d76be[_0x36c5bc(0x210)],_0x31bbec=_0xd596e[_0x36c5bc(0x11f)],_0x42cfcf=_0xd596e[_0x36c5bc(0x1eb)],_0x37c55c[_0x36c5bc(0x150)](_0x4d76be[_0x36c5bc(0x1ee)],undefined)&&_0x4d76be[_0x36c5bc(0x1ee)]&&(_0x37c55c[_0x36c5bc(0x1d9)](_0x37c55c[_0x36c5bc(0x113)],_0x37c55c[_0x36c5bc(0x113)])?(_0x1ebc61=_0x352458['route53'],_0x105563=_0x37c55c[_0x36c5bc(0xf4)]):global_registry['isPrivateGrid']=!![]),_0x37c55c[_0x36c5bc(0x134)](updateGlobalRegistryWithConfig,_0x1f5be3,_0xeb4943,_0x3dcbb9,_0x44e994,_0x3d00ac,_0x313009,_0x4d76be,_0x31bbec,_0x42cfcf,_0x99aedb,_0x48dac6);}}else{if(_0x37c55c[_0x36c5bc(0x201)](_0x37c55c[_0x36c5bc(0x114)],_0x37c55c[_0x36c5bc(0xe6)])){const _0x2c7c93={};_0x2c7c93['type']=_0x17ce3c[_0x36c5bc(0x129)],_0x2c7c93[_0x36c5bc(0x13b)]=_0x36c5bc(0x1b1)+_0x1cf469+_0x36c5bc(0x186),_0x1e1e99[_0x36c5bc(0x146)](_0x42bc39,_0x2c7c93,_0x37c55c[_0x36c5bc(0x14f)]),_0x50c571['info'](_0x36c5bc(0x1b1)+_0x1e4de6+_0x36c5bc(0x186)),_0x53a844=!![];if(_0x37c55c[_0x36c5bc(0xf3)](_0x4a0a4f,!![]))throw new _0x53786f(_0x36c5bc(0x1b1)+_0x53c2df+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}else{const _0x27c87c=_0x37c55c[_0x36c5bc(0x1c1)][_0x36c5bc(0x1ad)]('|');let _0xeaf314=0x0;while(!![]){switch(_0x27c87c[_0xeaf314++]){case'0':const _0x107aae={};_0x107aae[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x107aae[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils['sendEventToBackend'](_0x363b83,_0x107aae);continue;case'1':global_registry[_0x36c5bc(0x11f)]=_0xd596e['hubVersion'];continue;case'2':global_registry[_0x36c5bc(0x11d)]=_0xeb4943;continue;case'3':logger['info'](_0x14a123);continue;case'4':const _0x9de30d={};_0x9de30d[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x120)],_0x9de30d[_0x36c5bc(0x13b)]=_0x37c55c['bTJvz'],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x9de30d);continue;case'5':global_registry[_0x36c5bc(0x1cf)]=_0x3dcbb9;continue;case'6':global_registry['browserVersion']=_0xd596e['browserVersion'];continue;case'7':global_registry['cloudProvider']=_0x1f5be3;continue;case'8':_0x14a123=_0x36c5bc(0x10d)+_0x44810f+_0x36c5bc(0x1fc)+_0xeb4943+'\x27';continue;}break;}}}}const _0x3e59f1=await _0x37c55c['sGkwf'](getCloudProviderObject,_0x1f5be3,_0xeb4943,_0x44810f,_0x363b83,webSocketUtils,_0x1c27c0);_0x37c55c[_0x36c5bc(0x121)](_0x1f5be3,AZURE)&&_0x3e59f1[_0x36c5bc(0x1d1)]();let _0x28c8fd;if(_0x37c55c[_0x36c5bc(0x16e)](_0x592cda,![])){_0x14a123=_0x36c5bc(0x176)+_0x3dcbb9+').';const _0x4df2ce={};_0x4df2ce[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x4df2ce[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils['sendEventToBackend'](_0x363b83,_0x4df2ce),logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x363bd6=await _0x3e59f1[_0x36c5bc(0x10c)]();if(_0x363bd6){const _0x2e8767={};_0x2e8767[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x2e8767[_0x36c5bc(0x13b)]=_0x36c5bc(0x1b1)+_0xeb4943+_0x36c5bc(0x186),webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x2e8767,_0x37c55c[_0x36c5bc(0x14f)]),logger[_0x36c5bc(0x1c3)]('Cluster\x20'+_0xeb4943+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x592cda=!![];if(_0x37c55c[_0x36c5bc(0x139)](_0x23951c,!![]))throw new Error(_0x36c5bc(0x1b1)+_0xeb4943+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}else{const _0x1873a6={};_0x1873a6['type']=WS_EVENTS['LOG'],_0x1873a6[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x15b)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x1873a6),logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x15b)]);const _0x2b25de=_0x37c55c[_0x36c5bc(0x142)](_0x584d90,null)&&_0x37c55c[_0x36c5bc(0x156)](_0x584d90,undefined),_0x5be318=_0x37c55c['lDwsj'](_0x5a1461,null)&&_0x37c55c[_0x36c5bc(0x1d5)](_0x5a1461,undefined)&&_0x37c55c[_0x36c5bc(0x1de)](_0x5a1461['length'],0x0);if(_0x2b25de){_0x37c55c[_0x36c5bc(0x159)](_0x5be318,![])&&(_0x14a123=_0x37c55c[_0x36c5bc(0x1af)],await _0x37c55c[_0x36c5bc(0x111)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x18d)],_0x37c55c[_0x36c5bc(0x229)]),logger['error'](_0x14a123),process[_0x36c5bc(0x1f9)](0x1));const _0x3281b8=await _0x3e59f1[_0x36c5bc(0x196)](_0x584d90);_0x37c55c[_0x36c5bc(0x11b)](_0x3281b8,![])?(_0x14a123=_0x37c55c[_0x36c5bc(0x157)],await _0x37c55c[_0x36c5bc(0x180)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x1d7)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)):logger['info'](_0x36c5bc(0x1aa)+_0x584d90+'\x20');const _0x2809c2=await _0x3e59f1['isSubnetsValid'](_0x5a1461,_0x584d90);_0x37c55c['cxNgs'](_0x2809c2[0x0],![])?(_0x14a123=_0x36c5bc(0x1da)+JSON[_0x36c5bc(0x1e2)](_0x2809c2[0x1])+_0x36c5bc(0x185)+_0x584d90+_0x36c5bc(0x104),await _0x37c55c[_0x36c5bc(0x1b8)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x18b)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process['exit'](0x1)):logger[_0x36c5bc(0x1c3)](_0x36c5bc(0x199)+JSON[_0x36c5bc(0x1e2)](_0x5a1461)+'\x20'),await _0x3e59f1['setupNewCluster'](_0x584d90,_0x5a1461);}else{const _0x4562e5=_0x37c55c['ozVtt'][_0x36c5bc(0x1ad)]('|');let _0x54933d=0x0;while(!![]){switch(_0x4562e5[_0x54933d++]){case'0':logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x1ab)]);continue;case'1':const _0x16d39d={};_0x16d39d['type']=WS_EVENTS[_0x36c5bc(0x129)],_0x16d39d[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x1ab)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x16d39d);continue;case'2':logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x20f)]);continue;case'3':const _0x379c6d={};_0x379c6d[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x379c6d[_0x36c5bc(0x13b)]=_0x37c55c['cPSyY'],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x379c6d);continue;case'4':await _0x3e59f1[_0x36c5bc(0x212)](_0x584d90,_0x5a1461);continue;}break;}}}}_0x592cda&&_0x37c55c[_0x36c5bc(0xfb)](_0x1f5be3,AZURE)&&(await _0x3e59f1['updateClusterAlreadyPresent'](),await _0x3e59f1[_0x36c5bc(0x136)]());const [_0x4b62ac,_0x3388fa,_0x50b53b,_0x307452,_0x5aca63,_0x4ac675]=await _0x37c55c[_0x36c5bc(0x158)](createK8sClient,_0x3e59f1,_0x1c27c0['skipTlsCertVerify']);_0x37c55c[_0x36c5bc(0xfe)](_0x592cda,![])&&_0x37c55c['KroDT'](_0x1f5be3,AWS)&&(global_registry[_0x36c5bc(0x1ba)]=!![],_0x28c8fd=await _0x3e59f1['setupAutoscaler'](_0x4b62ac,_0x1c27c0));try{_0x4baa9a=_0x37c55c[_0x36c5bc(0x1ac)](kebabCase,_0x44810f),logger[_0x36c5bc(0x1c3)](_0x37c55c['fxxlx']);const _0x3ce639={};_0x3ce639[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x3ce639[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x16a)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x3ce639);if(_0x37c55c[_0x36c5bc(0x206)](_0x4baa9a,_0x37c55c['SzZec'])){const _0x594f84={};_0x594f84[_0x36c5bc(0x222)]=_0x37c55c[_0x36c5bc(0xff)],_0x594f84[_0x36c5bc(0x194)]=_0x37c55c[_0x36c5bc(0xff)];const _0x404c9b={};_0x404c9b[_0x36c5bc(0x19c)]=_0x4baa9a,_0x404c9b[_0x36c5bc(0x1e1)]=_0x594f84;const _0x4cb42e={};_0x4cb42e[_0x36c5bc(0x1bd)]=_0x404c9b;const _0xbeac77=_0x4cb42e,_0x17d38a={};_0x17d38a[_0x36c5bc(0x15f)]=_0xbeac77,await _0x4b62ac[_0x36c5bc(0x135)](_0x17d38a),logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x190)]);}const _0x3db11b={};_0x3db11b[_0x36c5bc(0x1e8)]=WS_EVENTS['LOG'],_0x3db11b[_0x36c5bc(0x13b)]=_0x37c55c['UsvII'],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x3db11b);const _0x56db50={};_0x56db50[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x56db50[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x182)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x56db50),logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x1ca)]);let _0x1fcee7={};_0x37c55c[_0x36c5bc(0x1c0)](_0x1f5be3,AZURE)&&(_0x1fcee7={'clientId':await _0x3e59f1['getResourceClientId']('turboscale-managed-identity-'+_0xeb4943)});await _0x37c55c[_0x36c5bc(0x1ef)](addGridComponents,_0x4b62ac,_0x3388fa,_0x50b53b,_0x307452,_0x4baa9a,_0xeb4943,_0x28c8fd,_0x5aca63,_0x4ac675,_0x1fcee7),_0x14a123=_0x37c55c[_0x36c5bc(0xf1)],logger['info'](_0x14a123);const _0x4faba2={};_0x4faba2[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x4faba2['message']=_0x14a123,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x4faba2),_0x14a123=_0x37c55c[_0x36c5bc(0x152)],logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x1df75d={};_0x1df75d['type']=WS_EVENTS['LOG'],_0x1df75d['message']=_0x14a123,webSocketUtils['sendEventToBackend'](_0x363b83,_0x1df75d),await _0x37c55c[_0x36c5bc(0x1f1)](waitForDeployment,_0x3388fa,_0x4baa9a,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x22517d=await _0x37c55c['wwphd'](getNamespaceUID,_0x4b62ac,_0x4baa9a),_0x3ed1b9=global_registry[_0x36c5bc(0x1be)]?_0x37c55c[_0x36c5bc(0x14c)]:_0x37c55c[_0x36c5bc(0x1b5)],_0x13050e={};_0x13050e[_0x36c5bc(0x19c)]=_0x3ed1b9,_0x13050e[_0x36c5bc(0x17e)]=_0x37c55c[_0x36c5bc(0x106)];const _0x3387f4=await _0x4b62ac[_0x36c5bc(0x17d)](_0x13050e);let _0x5b653f=_0x3e59f1[_0x36c5bc(0x15e)](_0x3387f4)+'/'+_0x4baa9a,_0x5b0e41=_0x37c55c[_0x36c5bc(0xe4)];try{const _0x4d43b1='https://'+AG_API_URL+_0x36c5bc(0x171)+_0x22517d,_0x6d31bc=await _0x37c55c[_0x36c5bc(0x158)](got,_0x4d43b1,_0x1c6bff);(_0x37c55c[_0x36c5bc(0x16e)](_0x6d31bc,null)||_0x37c55c[_0x36c5bc(0x16e)](_0x6d31bc,undefined))&&(_0x14a123=_0x37c55c[_0x36c5bc(0x181)],await _0x37c55c[_0x36c5bc(0x21d)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x1dd)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1));_0x37c55c[_0x36c5bc(0xfe)](_0x6d31bc['statusCode'],0x191)&&(_0x14a123=_0x37c55c[_0x36c5bc(0x215)],await _0x37c55c[_0x36c5bc(0x111)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c['ySAED'],_0x37c55c['xpxmu']),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1));_0x37c55c[_0x36c5bc(0x225)](_0x6d31bc[_0x36c5bc(0x227)],0xc8)&&(_0x14a123=_0x36c5bc(0xf8)+JSON[_0x36c5bc(0x1e2)](_0x6d31bc),await _0x37c55c[_0x36c5bc(0x111)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x155)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1));const _0x556ec2=JSON[_0x36c5bc(0x1a1)](_0x6d31bc[_0x36c5bc(0x15f)]);_0x556ec2[_0x36c5bc(0x1f2)]&&(_0x5b653f=_0x556ec2[_0x36c5bc(0x1f2)],_0x5b0e41=_0x37c55c[_0x36c5bc(0xf4)]),global_registry[_0x36c5bc(0x1be)]&&(_0x5b0e41=_0x37c55c[_0x36c5bc(0xe4)]);}catch(_0x1a2a8e){}_0x14a123=_0x36c5bc(0x170)+_0x5b653f+'\x20',logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x316649={};_0x316649['type']=WS_EVENTS[_0x36c5bc(0x129)],_0x316649[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x316649),_0x14a123=_0x36c5bc(0x1ae)+_0x5b0e41+'://'+_0x5b653f+_0x36c5bc(0xee),logger['info'](_0x14a123);const _0x33c2db={};_0x33c2db[_0x36c5bc(0x1e8)]=WS_EVENTS['LOG'],_0x33c2db['message']=_0x14a123,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x33c2db);const _0xd578ca={};_0xd578ca['type']=WS_EVENTS[_0x36c5bc(0x1e9)],_0xd578ca[_0x36c5bc(0x13b)]=_0x36c5bc(0x123)+_0x5b653f,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0xd578ca),await webSocketUtils[_0x36c5bc(0x1ff)](0x7d0);}catch(_0x18ee6d){logger[_0x36c5bc(0x1bb)](_0x36c5bc(0x1b4)+_0x18ee6d+'\x20\x0a'+JSON['stringify'](_0x18ee6d['stack']));if(_0x37c55c[_0x36c5bc(0x145)](_0x592cda,![]))try{logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0xf0)]),await _0x37c55c[_0x36c5bc(0xe9)](removeGridComponents,_0x4b62ac,_0x3388fa,_0x50b53b,_0x307452,_0x4baa9a),await _0x3e59f1['deleteCluster'](_0x4b62ac,global_registry['clusterRegion']);}catch(_0x2f157f){logger[_0x36c5bc(0x1bb)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x2f157f+'\x20\x0a'+JSON[_0x36c5bc(0x1e2)](_0x2f157f[_0x36c5bc(0x165)]));}throw _0x18ee6d;}}catch(_0x192f61){const _0x251ffc=_0x36c5bc(0x128)+_0x192f61+'\x20\x0a'+JSON[_0x36c5bc(0x1e2)](_0x192f61[_0x36c5bc(0x165)]);if(_0x363b83){const _0x2e8b6c={};_0x2e8b6c['type']=WS_EVENTS[_0x36c5bc(0x129)],_0x2e8b6c[_0x36c5bc(0x13b)]=_0x251ffc,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x2e8b6c,_0x37c55c[_0x36c5bc(0x229)],!![]);}await webSocketUtils['delay'](0x7d0);const _0xf90d72={};_0xf90d72[_0x36c5bc(0x1bb)]=_0x251ffc,await _0x37c55c[_0x36c5bc(0x137)](sendInstrumentationEvent,_0x1c27c0,_0x37c55c[_0x36c5bc(0x19a)],messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x161)],_0xf90d72,_0x1c27c0),logger[_0x36c5bc(0x1bb)](_0x251ffc);}process['exit'](0x0);};
|
|
1
|
+
const a9_0x4fe302=a9_0x331d;(function(_0x1a6fb7,_0x16e630){const _0x2c3181=a9_0x331d,_0x12151d=_0x1a6fb7();while(!![]){try{const _0x335309=parseInt(_0x2c3181(0x27a))/0x1*(parseInt(_0x2c3181(0x180))/0x2)+parseInt(_0x2c3181(0x1fc))/0x3*(parseInt(_0x2c3181(0x1be))/0x4)+parseInt(_0x2c3181(0x1fd))/0x5+parseInt(_0x2c3181(0x1cd))/0x6*(parseInt(_0x2c3181(0x269))/0x7)+-parseInt(_0x2c3181(0x27d))/0x8*(-parseInt(_0x2c3181(0x1e5))/0x9)+parseInt(_0x2c3181(0x19c))/0xa*(-parseInt(_0x2c3181(0x16b))/0xb)+-parseInt(_0x2c3181(0x1ba))/0xc*(parseInt(_0x2c3181(0x23f))/0xd);if(_0x335309===_0x16e630)break;else _0x12151d['push'](_0x12151d['shift']());}catch(_0x185ad9){_0x12151d['push'](_0x12151d['shift']());}}}(a9_0x14d3,0xc7635));function a9_0x331d(_0x45a81e,_0xf221e7){const _0x14d37a=a9_0x14d3();return a9_0x331d=function(_0x331dd5,_0x5bce76){_0x331dd5=_0x331dd5-0x144;let _0x2d576d=_0x14d37a[_0x331dd5];return _0x2d576d;},a9_0x331d(_0x45a81e,_0xf221e7);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x4fe302(0x166)),got=require('got'),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x4fe302(0x16f)),{logger}=require(a9_0x4fe302(0x1c8)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x4fe302(0x209)),{getCloudProviderObject}=require(a9_0x4fe302(0x15f)),{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_0x4fe302(0x155)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x4fe302(0x275)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a9_0x4fe302(0x207)]=a9_0x4fe302(0x272),exports[a9_0x4fe302(0x17c)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x4fe302(0x1fb)]=function(_0x47a0b8){const _0x1bd396=a9_0x4fe302,_0x59b284={};_0x59b284[_0x1bd396(0x16a)]=_0x1bd396(0x232),_0x59b284['yGJoT']=_0x1bd396(0x1f2),_0x59b284[_0x1bd396(0x17f)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x59b284[_0x1bd396(0x1ac)]=_0x1bd396(0x1c3),_0x59b284[_0x1bd396(0x268)]=_0x1bd396(0x1e1),_0x59b284[_0x1bd396(0x271)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x59b284[_0x1bd396(0x249)]=_0x1bd396(0x18c),_0x59b284['Gttmv']='Skip\x20insecure\x20cert\x20verification.',_0x59b284['VhpiQ']=_0x1bd396(0x147),_0x59b284['ExCEH']=_0x1bd396(0x170);const _0x2335b8=_0x59b284,_0x3e0e81={};_0x3e0e81[_0x1bd396(0x1b7)]=_0x2335b8[_0x1bd396(0x16a)],_0x3e0e81[_0x1bd396(0x22c)]=_0x2335b8[_0x1bd396(0x205)];const _0x12ef50={};_0x12ef50['description']=_0x2335b8['nzTAk'],_0x12ef50[_0x1bd396(0x22c)]=_0x2335b8[_0x1bd396(0x205)];const _0x500b79={};_0x500b79[_0x1bd396(0x1b7)]=_0x2335b8['EdDxq'],_0x500b79['type']=_0x2335b8[_0x1bd396(0x205)];const _0x375736={};_0x375736['description']=_0x2335b8['OFZWL'],_0x375736[_0x1bd396(0x22c)]=_0x2335b8[_0x1bd396(0x205)];const _0xfcc3={};_0xfcc3[_0x1bd396(0x1b7)]=_0x2335b8[_0x1bd396(0x271)],_0xfcc3[_0x1bd396(0x22c)]=_0x2335b8[_0x1bd396(0x205)];const _0x3d023d={};_0x3d023d[_0x1bd396(0x1b7)]=_0x2335b8[_0x1bd396(0x249)],_0x3d023d[_0x1bd396(0x22c)]=_0x2335b8[_0x1bd396(0x205)];const _0x2fa616={};_0x2fa616[_0x1bd396(0x1b7)]=_0x2335b8[_0x1bd396(0x23c)],_0x2fa616[_0x1bd396(0x22c)]=_0x2335b8['VhpiQ'],_0x2fa616[_0x1bd396(0x22e)]=![];const _0x11c8e8={};return _0x11c8e8[_0x1bd396(0x14f)]=_0x3e0e81,_0x11c8e8['grid-profile']=_0x12ef50,_0x11c8e8[_0x1bd396(0x22d)]=_0x500b79,_0x11c8e8[_0x1bd396(0x286)]=_0x375736,_0x11c8e8[_0x1bd396(0x22b)]=_0xfcc3,_0x11c8e8[_0x1bd396(0x152)]=_0x3d023d,_0x11c8e8[_0x1bd396(0x228)]=_0x2fa616,_0x47a0b8[_0x1bd396(0x278)](HELP_HEADER_MESSAGE[_0x1bd396(0x1d8)])[_0x1bd396(0x23a)](HELP_FOOTER_MESSAGE)[_0x1bd396(0x197)](_0x11c8e8)[_0x1bd396(0x170)](_0x2335b8[_0x1bd396(0x179)])['argv'];},exports[a9_0x4fe302(0x1e4)]=async function(_0xb447a5){const _0x3ab92d=a9_0x4fe302,_0x39dedd={'YzdBk':'http','rZwOX':_0x3ab92d(0x232),'XshOt':_0x3ab92d(0x1f2),'jJBcM':_0x3ab92d(0x1e0),'MVyea':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','AKPUA':_0x3ab92d(0x1e1),'ollXu':_0x3ab92d(0x151),'BgDsP':'Create\x20a\x20private/public\x20grid.','imomt':_0x3ab92d(0x17b),'FKwhx':_0x3ab92d(0x147),'HbBJS':_0x3ab92d(0x170),'SbnkV':'0|7|1|3|5|8|2|6|4','gIFMQ':_0x3ab92d(0x26a),'GJWZW':_0x3ab92d(0x1d7),'iEMEG':_0x3ab92d(0x28d),'MPazf':function(_0x303b12,_0x214801){return _0x303b12===_0x214801;},'rrpTl':_0x3ab92d(0x16c),'mucGo':function(_0x2f801c,_0x53ac70){return _0x2f801c!==_0x53ac70;},'MLmXU':function(_0x22b06f,_0x41596c,_0x5d5713,_0xe088f2,_0x547329,_0xce9497,_0x4fb8a9,_0x2213d7,_0x3e6ff6,_0x4eff84,_0xdc0179,_0xdfff59){return _0x22b06f(_0x41596c,_0x5d5713,_0xe088f2,_0x547329,_0xce9497,_0x4fb8a9,_0x2213d7,_0x3e6ff6,_0x4eff84,_0xdc0179,_0xdfff59);},'wFbmF':_0x3ab92d(0x164),'RgvST':function(_0x15857d){return _0x15857d();},'YCCQw':function(_0x1f8848){return _0x1f8848();},'mqhBv':function(_0x412828,_0x5d3f55){return _0x412828!==_0x5d3f55;},'opCAb':_0x3ab92d(0x219),'Zeabo':_0x3ab92d(0x18b),'fTnfP':_0x3ab92d(0x203),'cypbA':function(_0x147a3e,_0x279393,_0x5251c1,_0x182f8d,_0x424970,_0x12f6bd,_0x9fd1af){return _0x147a3e(_0x279393,_0x5251c1,_0x182f8d,_0x424970,_0x12f6bd,_0x9fd1af);},'HdXnm':_0x3ab92d(0x238),'DyNvl':_0x3ab92d(0x19a),'fJyay':_0x3ab92d(0x182),'kTovD':'<PasswordPlaceholder>','ZWJvE':'Adding\x20Websocket\x20listeners','TFtbY':function(_0x40302d,_0x37d5a6){return _0x40302d!==_0x37d5a6;},'JmLDI':'QoaRK','Hkscs':_0x3ab92d(0x198),'RJqUV':_0x3ab92d(0x20b),'BHDrH':_0x3ab92d(0x169),'xCSZU':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','wCsFP':function(_0x4c6070,_0x1e7154,_0x469e0c,_0x507984,_0x5d9c19,_0x22685a,_0x4d4bfd,_0x22e449){return _0x4c6070(_0x1e7154,_0x469e0c,_0x507984,_0x5d9c19,_0x22685a,_0x4d4bfd,_0x22e449);},'wXKZC':_0x3ab92d(0x292),'ZDCYh':'gPInq','qSQHT':_0x3ab92d(0x1e3),'Tqkup':function(_0x4a4e3a,_0x3910ff,_0x3caf5f,_0x1a0250,_0x30805b,_0x1a674f,_0x31be60,_0xe97bd5){return _0x4a4e3a(_0x3910ff,_0x3caf5f,_0x1a0250,_0x30805b,_0x1a674f,_0x31be60,_0xe97bd5);},'zyUIn':_0x3ab92d(0x200),'qenoZ':function(_0x56ce16,_0x5f940d){return _0x56ce16===_0x5f940d;},'udQIY':_0x3ab92d(0x177),'GfqGA':_0x3ab92d(0x206),'Rcmvr':function(_0x54ed70,_0x20c638){return _0x54ed70===_0x20c638;},'Vtqem':_0x3ab92d(0x243),'fWqDH':function(_0x1f6407,_0x1bb08c){return _0x1f6407!==_0x1bb08c;},'iKxKc':_0x3ab92d(0x235),'BcFQK':function(_0x5ccf63,_0x297bb5){return _0x5ccf63!==_0x297bb5;},'ZQfSX':_0x3ab92d(0x25c),'edpIo':'NASfz','mncIC':_0x3ab92d(0x241),'rFmcI':function(_0x1bc70e,_0x10f804,_0x12425b){return _0x1bc70e(_0x10f804,_0x12425b);},'boQEa':function(_0x404f47,_0x3df56e){return _0x404f47!==_0x3df56e;},'OCXtX':_0x3ab92d(0x199),'NQYAH':function(_0x460367,_0xa9c138){return _0x460367===_0xa9c138;},'wBDxS':'hRCOd','mWgEL':_0x3ab92d(0x263),'mriOj':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','haEMs':'create-grid-checks-null-response','qJyRd':function(_0x1a06be,_0x18b88a){return _0x1a06be===_0x18b88a;},'WaGkx':_0x3ab92d(0x1ef),'Unlqt':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','hfgxa':function(_0x241fa2,_0x2d77d1,_0x419340,_0x7783d0,_0x5e0241,_0x13f118,_0x5938ff,_0x12eb3a){return _0x241fa2(_0x2d77d1,_0x419340,_0x7783d0,_0x5e0241,_0x13f118,_0x5938ff,_0x12eb3a);},'BWJbI':_0x3ab92d(0x160),'LpVyz':_0x3ab92d(0x225),'uzAJi':'create-grid-checks-non-200','vbMmw':_0x3ab92d(0x144),'fLIfW':_0x3ab92d(0x28a),'IZPjj':function(_0x42e6d4,_0x20f4df,_0x2ca3e0,_0x53e102,_0x2faae5,_0x2f3c23,_0x5b1a5d,_0x5f05d0){return _0x42e6d4(_0x20f4df,_0x2ca3e0,_0x53e102,_0x2faae5,_0x2f3c23,_0x5b1a5d,_0x5f05d0);},'tlOaR':'create-grid-checks-grid-already-exists','ckTcN':_0x3ab92d(0x1bf),'KBZMN':_0x3ab92d(0x153),'Mthkv':_0x3ab92d(0x19b),'iWNiE':_0x3ab92d(0x1d3),'mIkNv':_0x3ab92d(0x22a),'tqdys':function(_0x187579,_0x1834e4){return _0x187579===_0x1834e4;},'ShQNQ':function(_0x308b5c,_0xd48e67){return _0x308b5c===_0xd48e67;},'Apvzs':_0x3ab92d(0x245),'qZiuA':'BZEYz','cOpYo':function(_0x447231,_0x155fe3){return _0x447231===_0x155fe3;},'NxOuM':_0x3ab92d(0x234),'fctUV':function(_0x41673b,_0x34a32e){return _0x41673b!==_0x34a32e;},'tpfJF':_0x3ab92d(0x165),'esWUe':function(_0x14b0f0,_0x158b4c,_0x1c0d04,_0x2acfb1,_0x51efb4,_0x17a7a9,_0x51c41d,_0x470442,_0x45b945,_0x4af619,_0x4f2e72,_0x42704c){return _0x14b0f0(_0x158b4c,_0x1c0d04,_0x2acfb1,_0x51efb4,_0x17a7a9,_0x51c41d,_0x470442,_0x45b945,_0x4af619,_0x4f2e72,_0x42704c);},'YbfXu':function(_0x59abe6,_0x2e7459){return _0x59abe6===_0x2e7459;},'imKsE':_0x3ab92d(0x25a),'pQWeA':'YrcTw','VXhWt':_0x3ab92d(0x256),'hVHZy':_0x3ab92d(0x1ff),'NYpjz':function(_0x14696e,_0x40fc5d,_0x44276a,_0x333e31,_0x1de3a8,_0x5340d5,_0x3c211b,_0x4b90dd,_0x6f3bf4,_0x963cde,_0x11fe66,_0x354d70){return _0x14696e(_0x40fc5d,_0x44276a,_0x333e31,_0x1de3a8,_0x5340d5,_0x3c211b,_0x4b90dd,_0x6f3bf4,_0x963cde,_0x11fe66,_0x354d70);},'yuCBt':_0x3ab92d(0x1c9),'ddJjY':_0x3ab92d(0x259),'fGpej':_0x3ab92d(0x1f7),'xQvHS':function(_0x433a79,_0x3b2e1f,_0x3c9612,_0x5effa2,_0x2e87a1,_0x24f66d,_0x2403e9){return _0x433a79(_0x3b2e1f,_0x3c9612,_0x5effa2,_0x2e87a1,_0x24f66d,_0x2403e9);},'ndpMu':function(_0x5ddeeb,_0x591c8a){return _0x5ddeeb!==_0x591c8a;},'HLFNO':_0x3ab92d(0x20f),'ILYfD':function(_0x33f629,_0x2cc052){return _0x33f629!=_0x2cc052;},'TzzOL':function(_0x470ae6,_0x39bd04){return _0x470ae6!==_0x39bd04;},'wPJak':function(_0x56b132,_0x12f4a0){return _0x56b132!==_0x12f4a0;},'TxOpQ':function(_0x5f04a9,_0x266e8b){return _0x5f04a9>_0x266e8b;},'bJlXx':_0x3ab92d(0x21e),'oMRHc':_0x3ab92d(0x281),'WatbA':function(_0x41d3c4,_0x3cf152){return _0x41d3c4===_0x3cf152;},'eCFTd':_0x3ab92d(0x273),'hPoNa':_0x3ab92d(0x258),'Gjvnq':function(_0x81a503,_0x5e73a8){return _0x81a503===_0x5e73a8;},'BPHAo':function(_0x42f6bd,_0x5d17ee,_0x190c72,_0x1a07b2,_0x89871b,_0x42d07c,_0x464d7e,_0x1a85e5){return _0x42f6bd(_0x5d17ee,_0x190c72,_0x1a07b2,_0x89871b,_0x42d07c,_0x464d7e,_0x1a85e5);},'OKzTm':_0x3ab92d(0x1dd),'xEDzT':'2|4|1|0|3','NBKit':_0x3ab92d(0x242),'BjVob':_0x3ab92d(0x24e),'juShH':function(_0x10fe5e,_0x4dabce,_0x32f72f){return _0x10fe5e(_0x4dabce,_0x32f72f);},'obzcp':function(_0x3a2a4f,_0x4b3c51){return _0x3a2a4f(_0x4b3c51);},'UjPwI':_0x3ab92d(0x280),'CTaDw':_0x3ab92d(0x22e),'OeHVw':_0x3ab92d(0x25e),'EMYoo':'Namespace\x20Created','mybgp':_0x3ab92d(0x15e),'cyZXo':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','FjeEb':_0x3ab92d(0x1d1),'UiEQR':function(_0x5cf0cb,_0x1ec848){return _0x5cf0cb===_0x1ec848;},'nZwov':function(_0x5b7b7d,_0x1ca681,_0x4f94f2,_0x5205a7,_0x2462e6,_0x11d97b,_0x4a8e3d,_0x1e7965,_0x554207,_0xd3e5fd,_0x2af734){return _0x5b7b7d(_0x1ca681,_0x4f94f2,_0x5205a7,_0x2462e6,_0x11d97b,_0x4a8e3d,_0x1e7965,_0x554207,_0xd3e5fd,_0x2af734);},'GZlXJ':'Grid\x20spawned\x20on\x20the\x20cluster','ozkVB':_0x3ab92d(0x17e),'RuMZW':function(_0x34ffd8,_0x3e1ac2,_0x55308b,_0x1e9cf8,_0x1f9577){return _0x34ffd8(_0x3e1ac2,_0x55308b,_0x1e9cf8,_0x1f9577);},'ovEKU':_0x3ab92d(0x1cb),'bQBCo':'ingress-nginx-controller','UhBOU':_0x3ab92d(0x1f4),'nEjRp':function(_0x4eb7ce,_0x425ee8,_0x982c7f){return _0x4eb7ce(_0x425ee8,_0x982c7f);},'QxMbc':function(_0xde1dea,_0x5d0e02){return _0xde1dea===_0x5d0e02;},'oFwnU':_0x3ab92d(0x28c),'XYOms':_0x3ab92d(0x27c),'eacCa':_0x3ab92d(0x167),'itNTU':'get-grid-url-auth-failed','XhOOz':_0x3ab92d(0x18a),'TmzWr':function(_0x456336,_0x13aa9e){return _0x456336===_0x13aa9e;},'mTVlL':_0x3ab92d(0x289),'pFJCK':function(_0x429fc2,_0x3011b4,_0x173cc0,_0x2b9b4e,_0x1707e2,_0x21b4e6){return _0x429fc2(_0x3011b4,_0x173cc0,_0x2b9b4e,_0x1707e2,_0x21b4e6);},'cWduq':function(_0xf510b4,_0x27595c,_0x23c2ca,_0x303302,_0x4f1ccd,_0x388060,_0x3a6f92){return _0xf510b4(_0x27595c,_0x23c2ca,_0x303302,_0x4f1ccd,_0x388060,_0x3a6f92);},'rscqc':_0x3ab92d(0x17d)};let _0x5ae8eb=![],_0x715ae2=![],_0x410ece,_0x3fceae,_0x449adf,_0xa30b42,_0x5302df,_0x3330e3,_0x55df78,_0x2e1526,_0x7c0b1c,_0x5b6524,_0x4543f5,_0x52523e,_0x3c131b,_0x24ccb7,_0x827fd0=0x1,_0x1c537a=0xe;try{global_registry[_0x3ab92d(0x282)]=_0x39dedd[_0x3ab92d(0x176)](uuidv4),global_registry[_0x3ab92d(0x196)]=![];!fs[_0x3ab92d(0x28b)](_0x39dedd[_0x3ab92d(0x1a1)](getCredentialsPath))&&(_0x39dedd[_0x3ab92d(0x21b)](_0x39dedd[_0x3ab92d(0x159)],_0x39dedd['Zeabo'])?(console['error'](_0x39dedd['fTnfP']),await _0x39dedd['cypbA'](sendInstrumentationEvent,_0xb447a5,_0x39dedd[_0x3ab92d(0x285)],messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x20e)],null,_0xb447a5),process['exit'](0x1)):_0x441872=!![]);await _0x39dedd[_0x3ab92d(0x1d0)](sendInstrumentationEvent,_0xb447a5,_0x39dedd[_0x3ab92d(0x285)],messageTypes[_0x3ab92d(0x1f8)],null,null,_0xb447a5);const _0x989e82=JSON[_0x3ab92d(0x1f1)](fs[_0x3ab92d(0x1de)](_0x39dedd['RgvST'](getCredentialsPath)));global_registry['bstackUsername']=_0x989e82['Browserstack'][_0x3ab92d(0x19e)],global_registry[_0x3ab92d(0x240)]=_0x989e82[_0x3ab92d(0x25e)][_0x3ab92d(0x277)];const _0x41aeb9=WS_ENDPOINT['replace'](_0x39dedd[_0x3ab92d(0x212)],_0x989e82[_0x3ab92d(0x25e)][_0x3ab92d(0x19e)])[_0x3ab92d(0x1eb)](_0x39dedd[_0x3ab92d(0x1c0)],_0x989e82[_0x3ab92d(0x25e)]['password']),_0x11ab3b={};_0x11ab3b['WebSocket']=ws,_0x11ab3b[_0x3ab92d(0x1b1)]=0x36ee80,_0x52523e=new ReconnectingWebSocket(_0x41aeb9,[],_0x11ab3b),logger['debug'](_0x39dedd['ZWJvE']),webSocketUtils[_0x3ab92d(0x16e)](_0x52523e,_0xb447a5[_0x3ab92d(0x1d6)],_0xb447a5[_0x3ab92d(0x277)]);const _0x375250=_0xb447a5[_0x3ab92d(0x1fe)]||DEFAULT_GRID_NAME;if(_0xb447a5[_0x3ab92d(0x244)]||_0xb447a5['cloudProvider']||_0xb447a5[_0x3ab92d(0x22b)]){if(_0x39dedd[_0x3ab92d(0x157)](_0x39dedd[_0x3ab92d(0x1ed)],_0x39dedd[_0x3ab92d(0x27e)])){!(_0xb447a5['clusterName']&&_0xb447a5[_0x3ab92d(0x28e)]&&_0xb447a5[_0x3ab92d(0x22b)])&&(_0x39dedd['MPazf'](_0x39dedd['RJqUV'],_0x39dedd[_0x3ab92d(0x250)])?(_0x3e8331[_0x3ab92d(0x22b)]=_0x3cc1fb,_0x263e2a['cloudProvider']=_0x2cbe40,_0x37dbaa[_0x3ab92d(0x15b)]=!![]):(_0x410ece=_0x39dedd[_0x3ab92d(0x287)],await _0x39dedd[_0x3ab92d(0x211)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd['wXKZC'],_0x39dedd[_0x3ab92d(0x154)]),logger[_0x3ab92d(0x164)](_0x410ece),process[_0x3ab92d(0x202)](0x1)));![AWS,AZURE,GCP][_0x3ab92d(0x1dc)](_0xb447a5[_0x3ab92d(0x28e)][_0x3ab92d(0x1ea)]())&&(_0x39dedd[_0x3ab92d(0x22f)](_0x39dedd[_0x3ab92d(0x1ad)],_0x39dedd[_0x3ab92d(0x1ad)])?(_0x410ece=_0x39dedd[_0x3ab92d(0x14b)],await _0x39dedd[_0x3ab92d(0x24b)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd['HdXnm'],_0x39dedd[_0x3ab92d(0x15c)],_0x39dedd[_0x3ab92d(0x154)]),logger[_0x3ab92d(0x164)](_0x410ece),process[_0x3ab92d(0x202)](0x1)):_0x187fbd=_0x39dedd[_0x3ab92d(0x257)]);_0xb447a5[_0x3ab92d(0x183)]&&_0x39dedd[_0x3ab92d(0x264)](_0xb447a5[_0x3ab92d(0x183)][_0x3ab92d(0x1ea)](),_0x39dedd['udQIY'])&&(_0x39dedd[_0x3ab92d(0x264)](_0x39dedd[_0x3ab92d(0x26f)],_0x39dedd[_0x3ab92d(0x26f)])?global_registry[_0x3ab92d(0x196)]=!![]:_0x4286b1=null);global_registry[_0x3ab92d(0x28e)]=_0xb447a5[_0x3ab92d(0x28e)],global_registry['clusterRegion']=_0xb447a5[_0x3ab92d(0x22b)],global_registry[_0x3ab92d(0x244)]=_0xb447a5[_0x3ab92d(0x244)];const _0x145ec0=await _0x39dedd['cypbA'](getCloudProviderObject,_0xb447a5[_0x3ab92d(0x28e)],_0xb447a5[_0x3ab92d(0x244)],_0x375250,_0x52523e,webSocketUtils,_0xb447a5),_0x2feede=await _0x145ec0['isClusterPresent']();!_0x2feede?_0x39dedd[_0x3ab92d(0x266)](_0x39dedd[_0x3ab92d(0x1f5)],_0x39dedd[_0x3ab92d(0x1f5)])?(logger[_0x3ab92d(0x204)](_0x3ab92d(0x145)+_0xb447a5['clusterName']+_0x3ab92d(0x227)),_0x5ae8eb=![],_0x715ae2=!![]):_0x4ba0c5[_0x3ab92d(0x196)]=!![]:_0x39dedd['fWqDH'](_0x39dedd['iKxKc'],_0x39dedd[_0x3ab92d(0x1a0)])?_0x29311c=_0x2bf88f[_0xb8b776['gridProfile']]:_0x5ae8eb=!![],_0x449adf=_0xb447a5[_0x3ab92d(0x244)],_0x3fceae=_0xb447a5['cloudProvider'][_0x3ab92d(0x1ea)](),_0xa30b42=_0xb447a5[_0x3ab92d(0x22b)];}else _0x1672f0[_0x3ab92d(0x204)](_0x3ab92d(0x14a)+_0x491f89+'\x20');}else{if(_0xb447a5[_0x3ab92d(0x171)]){if(_0x39dedd['BcFQK'](_0x39dedd[_0x3ab92d(0x261)],_0x39dedd[_0x3ab92d(0x20a)]))global_registry[_0x3ab92d(0x171)]=_0xb447a5['gridProfile'];else{const _0x5f7797={};_0x5f7797[_0x3ab92d(0x1b7)]=_0x39dedd[_0x3ab92d(0x1b4)],_0x5f7797[_0x3ab92d(0x22c)]=_0x39dedd['XshOt'];const _0x11ab65={};_0x11ab65[_0x3ab92d(0x1b7)]=_0x39dedd[_0x3ab92d(0x224)],_0x11ab65[_0x3ab92d(0x22c)]=_0x39dedd[_0x3ab92d(0x214)];const _0x296f86={};_0x296f86[_0x3ab92d(0x1b7)]=_0x39dedd[_0x3ab92d(0x26e)],_0x296f86['type']=_0x39dedd[_0x3ab92d(0x214)];const _0x611203={};_0x611203['description']=_0x39dedd[_0x3ab92d(0x192)],_0x611203[_0x3ab92d(0x22c)]=_0x39dedd['XshOt'];const _0x214f44={};_0x214f44[_0x3ab92d(0x1b7)]=_0x39dedd[_0x3ab92d(0x1a2)],_0x214f44['type']=_0x39dedd[_0x3ab92d(0x214)];const _0x1f839d={};_0x1f839d[_0x3ab92d(0x1b7)]=_0x39dedd[_0x3ab92d(0x252)],_0x1f839d[_0x3ab92d(0x22c)]=_0x39dedd[_0x3ab92d(0x214)];const _0x2363a7={};_0x2363a7[_0x3ab92d(0x1b7)]=_0x39dedd[_0x3ab92d(0x191)],_0x2363a7[_0x3ab92d(0x22c)]=_0x39dedd[_0x3ab92d(0x208)],_0x2363a7[_0x3ab92d(0x22e)]=![];const _0x292ad3={};return _0x292ad3[_0x3ab92d(0x14f)]=_0x5f7797,_0x292ad3[_0x3ab92d(0x1a6)]=_0x11ab65,_0x292ad3[_0x3ab92d(0x22d)]=_0x296f86,_0x292ad3['cloud-provider']=_0x611203,_0x292ad3['region']=_0x214f44,_0x292ad3['private-grid']=_0x1f839d,_0x292ad3[_0x3ab92d(0x228)]=_0x2363a7,_0x4b4ff4['usage'](_0x17dcf1['create'])[_0x3ab92d(0x23a)](_0x595898)['options'](_0x292ad3)[_0x3ab92d(0x170)](_0x39dedd[_0x3ab92d(0x1b5)])[_0x3ab92d(0x237)];}}}global_registry[_0x3ab92d(0x1fe)]=_0xb447a5[_0x3ab92d(0x1fe)];const _0x35b590={'method':_0x39dedd['mncIC'],'headers':_0x39dedd[_0x3ab92d(0x1a8)](getAuthHeader,_0x989e82[_0x3ab92d(0x25e)][_0x3ab92d(0x19e)],_0x989e82[_0x3ab92d(0x25e)][_0x3ab92d(0x277)]),'throwHttpErrors':![]},_0x5477e9={};_0x5477e9[_0x3ab92d(0x1fe)]=_0x375250;const _0x4acaf1=_0x5477e9;if(_0x715ae2){if(_0x39dedd[_0x3ab92d(0x230)](_0x39dedd[_0x3ab92d(0x158)],_0x39dedd[_0x3ab92d(0x158)])){const _0x503e56=_0x39dedd[_0x3ab92d(0x195)][_0x3ab92d(0x1d5)]('|');let _0x48f667=0x0;while(!![]){switch(_0x503e56[_0x48f667++]){case'0':const _0x345564={};_0x345564['type']=_0x303eb9[_0x3ab92d(0x248)],_0x345564[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x284)],_0xf139e1[_0x3ab92d(0x215)](_0x31f4dd,_0x345564);continue;case'1':_0x2c8bb6[_0x3ab92d(0x204)](_0x4c0176);continue;case'2':_0x9207ea[_0x3ab92d(0x244)]=_0x8a365f;continue;case'3':const _0x23bbf5={};_0x23bbf5[_0x3ab92d(0x22c)]=_0x3012c1[_0x3ab92d(0x1e8)],_0x23bbf5[_0x3ab92d(0x1b3)]=_0x1940da,_0x57c92d['sendEventToBackend'](_0x26bb12,_0x23bbf5);continue;case'4':_0xb2bdd7[_0x3ab92d(0x1e2)]=_0x106360[_0x3ab92d(0x1e2)];continue;case'5':_0x5d5dce[_0x3ab92d(0x28e)]=_0x1369f2;continue;case'6':_0x42c4e[_0x3ab92d(0x210)]=_0x59e684['hubVersion'];continue;case'7':_0x14cccf=_0x3ab92d(0x222)+_0x1e23a1+'\x20in\x20existing\x20cluster\x20\x27'+_0x19b0da+'\x27';continue;case'8':_0x16141d['clusterRegion']=_0x2636f7;continue;}break;}}else _0x4acaf1['region']=_0xa30b42,_0x4acaf1[_0x3ab92d(0x28e)]=_0x3fceae,_0x4acaf1[_0x3ab92d(0x15b)]=!![];}const _0x359a72='https://'+AG_API_URL+_0x3ab92d(0x18f),_0x1e5148={'searchParams':_0x4acaf1,'throwHttpErrors':![],..._0x35b590},_0xf6da9f=_0x1e5148,_0x3c81fb=await _0x39dedd[_0x3ab92d(0x1a8)](got,_0x359a72,_0xf6da9f);(_0x39dedd[_0x3ab92d(0x1d4)](_0x3c81fb,null)||_0x39dedd[_0x3ab92d(0x22f)](_0x3c81fb,undefined))&&(_0x39dedd['qenoZ'](_0x39dedd['wBDxS'],_0x39dedd['mWgEL'])?(_0x49878d=_0x26bfc0[_0x3ab92d(0x1e9)],_0x59a2f4=_0x39dedd[_0x3ab92d(0x236)]):(_0x410ece=_0x39dedd[_0x3ab92d(0x1c2)],await _0x39dedd[_0x3ab92d(0x211)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes['ERROR'],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd['haEMs'],_0x39dedd[_0x3ab92d(0x154)]),logger[_0x3ab92d(0x164)](_0x410ece),process[_0x3ab92d(0x202)](0x1)));_0x39dedd[_0x3ab92d(0x172)](_0x3c81fb[_0x3ab92d(0x149)],0x191)&&(_0x39dedd[_0x3ab92d(0x230)](_0x39dedd[_0x3ab92d(0x254)],_0x39dedd[_0x3ab92d(0x254)])?_0x4a55d0=null:(_0x410ece=_0x39dedd[_0x3ab92d(0x267)],await _0x39dedd[_0x3ab92d(0x163)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd['HdXnm'],_0x39dedd['BWJbI'],_0x39dedd[_0x3ab92d(0x154)]),logger[_0x3ab92d(0x164)](_0x410ece),process['exit'](0x1)));if(_0x39dedd[_0x3ab92d(0x21b)](_0x3c81fb[_0x3ab92d(0x149)],0xc8)){if(_0x39dedd[_0x3ab92d(0x21b)](_0x39dedd[_0x3ab92d(0x186)],_0x39dedd[_0x3ab92d(0x186)])){const _0x321a77={};_0x321a77[_0x3ab92d(0x22c)]=_0x8f1620[_0x3ab92d(0x1e8)],_0x321a77[_0x3ab92d(0x1b3)]=_0x3ab92d(0x288)+_0x59f09b+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x58bce4[_0x3ab92d(0x215)](_0x59deae,_0x321a77,_0x39dedd[_0x3ab92d(0x150)]),_0x2821de[_0x3ab92d(0x204)](_0x3ab92d(0x288)+_0x35eb1d+_0x3ab92d(0x1ce)),_0x85c0b7=!![];if(_0x39dedd[_0x3ab92d(0x22f)](_0x50533e,!![]))throw new _0x477515(_0x3ab92d(0x288)+_0x1ff4ae+_0x3ab92d(0x226));}else _0x410ece=_0x3ab92d(0x1df)+JSON[_0x3ab92d(0x25b)](_0x3c81fb[_0x3ab92d(0x25f)]),await _0x39dedd[_0x3ab92d(0x163)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd[_0x3ab92d(0x24f)],_0x39dedd[_0x3ab92d(0x154)]),logger['error'](_0x410ece),process[_0x3ab92d(0x202)](0x1);}const _0x924db4=JSON[_0x3ab92d(0x1f1)](_0x3c81fb['body']),_0x19bb50={};_0x19bb50[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x248)],_0x19bb50[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x284)],webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x19bb50);const _0x5bdece={};_0x5bdece['type']=WS_EVENTS[_0x3ab92d(0x1e8)],_0x5bdece[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x217)],webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x5bdece);_0x924db4[_0x3ab92d(0x173)]&&(_0x39dedd['boQEa'](_0x39dedd[_0x3ab92d(0x255)],_0x39dedd[_0x3ab92d(0x255)])?_0x40d93a[_0x3ab92d(0x1e7)]():(_0x410ece=_0x3ab92d(0x1d2)+_0x375250+_0x3ab92d(0x1af),await _0x39dedd[_0x3ab92d(0x279)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd[_0x3ab92d(0x21f)],_0x39dedd[_0x3ab92d(0x154)]),logger['error'](_0x410ece),process[_0x3ab92d(0x202)](0x1)));const _0x22134e=_0x924db4['gridProfiles'];let _0x4c5511=_0x22134e[_0x924db4[_0x3ab92d(0x23e)]];if(_0xb447a5['gridProfile']){if(_0x39dedd[_0x3ab92d(0x172)](_0x39dedd[_0x3ab92d(0x162)],_0x39dedd[_0x3ab92d(0x162)]))_0x4c5511=_0x22134e[_0xb447a5[_0x3ab92d(0x171)]];else{const _0x3fb0f1=_0x39dedd['rrpTl'][_0x3ab92d(0x1d5)]('|');let _0x4b0466=0x0;while(!![]){switch(_0x3fb0f1[_0x4b0466++]){case'0':_0x130b6b=_0x3ab92d(0x23b)+_0x2fb26f;continue;case'1':_0x2bc683=_0x13821d[_0x3ab92d(0x26c)];continue;case'2':_0x46ca9e=null;continue;case'3':_0xd00fe3=_0x354181['minNodes'];continue;case'4':_0x1bb51a=_0x36f88a[_0x3ab92d(0x1e2)];continue;case'5':_0x920b50=_0x47154b[_0x3ab92d(0x21c)];continue;case'6':_0x1cbedd=_0x28756e[_0x3ab92d(0x210)];continue;case'7':_0x1e1219=null;continue;case'8':_0x39dedd[_0x3ab92d(0x220)](_0x9c8b15[_0x3ab92d(0x183)],_0x29099e)&&_0x11fc8f[_0x3ab92d(0x183)]&&(_0x52db01['isPrivateGrid']=!![]);continue;case'9':_0x3885ff=_0x38438a[_0x3ab92d(0x233)];continue;case'10':_0x39dedd['MLmXU'](_0x413dcf,_0x52b4bd,_0x544ca6,_0x32bb9e,_0x16b3a7,_0x4ec78e,_0x49b6df,_0x3647a7,_0x58937e,_0x20b76a,_0x1fa634,_0x496af2);continue;case'11':_0x1902a0=_0x183adf[_0x3ab92d(0x25d)];continue;case'12':_0x4cb023=null;continue;case'13':_0x2997f0[_0x3ab92d(0x204)](_0x1886c0);continue;case'14':const _0x5cfa12={};_0x5cfa12[_0x3ab92d(0x22c)]=_0x1f8894[_0x3ab92d(0x1e8)],_0x5cfa12[_0x3ab92d(0x1b3)]=_0x499261,_0x4c788b[_0x3ab92d(0x215)](_0x578aee,_0x5cfa12);continue;}break;}}}if(_0x39dedd[_0x3ab92d(0x172)](_0x5ae8eb,![])&&_0x39dedd[_0x3ab92d(0x1d4)](_0x715ae2,![])){if(_0x39dedd[_0x3ab92d(0x157)](_0x39dedd[_0x3ab92d(0x19f)],_0x39dedd[_0x3ab92d(0x19f)]))_0x26e4ea['isPrivateGrid']=!![];else{_0x39dedd[_0x3ab92d(0x1d4)](_0x4c5511,undefined)&&(_0x39dedd['fWqDH'](_0x39dedd[_0x3ab92d(0x168)],_0x39dedd[_0x3ab92d(0x168)])?_0x40a3f2[_0x3ab92d(0x164)](_0x3ab92d(0x239)+_0xff4bbc+'\x20\x0a'+_0x3b3bdd[_0x3ab92d(0x25b)](_0x4343b2[_0x3ab92d(0x23d)])):(_0x410ece=_0x39dedd['iWNiE'],await _0x39dedd['Tqkup'](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd['mIkNv'],_0x39dedd[_0x3ab92d(0x154)]),logger[_0x3ab92d(0x164)](_0x410ece),process[_0x3ab92d(0x202)](0x1)));global_registry[_0x3ab92d(0x276)]=_0x4c5511['id'],_0x410ece=_0x3ab92d(0x1b0)+_0x375250+_0x3ab92d(0x229)+_0x4c5511['name']+_0x3ab92d(0x251),logger[_0x3ab92d(0x204)](_0x410ece);const _0xf43886={};_0xf43886['type']=WS_EVENTS[_0x3ab92d(0x1e8)],_0xf43886[_0x3ab92d(0x1b3)]=_0x410ece,webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0xf43886),_0x3fceae=_0x4c5511[_0x3ab92d(0x28e)],_0x449adf=_0x4c5511[_0x3ab92d(0x244)],_0xa30b42=_0x4c5511[_0x3ab92d(0x22b)],_0x5302df=_0x4c5511[_0x3ab92d(0x233)],_0x3330e3=_0x4c5511[_0x3ab92d(0x25d)],_0x55df78=_0x4c5511[_0x3ab92d(0x18d)],_0x2e1526=_0x4c5511[_0x3ab92d(0x1b2)],_0x7c0b1c=_0x4c5511['subnets'],_0x5b6524=_0x4c5511[_0x3ab92d(0x21c)],_0x827fd0=_0x4c5511[_0x3ab92d(0x1cf)],_0x1c537a=_0x4c5511[_0x3ab92d(0x26c)],_0x3c131b=_0x924db4['hubVersion'],_0x24ccb7=_0x924db4[_0x3ab92d(0x1e2)];if(_0x55df78&&_0x39dedd['tqdys'](_0x55df78[_0x3ab92d(0x1bd)],0x0)){if(_0x39dedd[_0x3ab92d(0x20c)](_0x39dedd[_0x3ab92d(0x1d9)],_0x39dedd[_0x3ab92d(0x1f0)]))throw new _0x343814('Cluster\x20'+_0x1197e7+_0x3ab92d(0x226));else _0x55df78=null;}_0x7c0b1c&&_0x39dedd[_0x3ab92d(0x1f9)](_0x7c0b1c[_0x3ab92d(0x1bd)],0x0)&&(_0x39dedd[_0x3ab92d(0x20c)](_0x39dedd['NxOuM'],_0x39dedd[_0x3ab92d(0x1db)])?_0x7c0b1c=null:_0x21e0d1[_0x3ab92d(0x171)]=_0x251b2c[_0x3ab92d(0x171)]),_0x39dedd[_0x3ab92d(0x220)](_0x4c5511[_0x3ab92d(0x183)],undefined)&&_0x4c5511['privateGrid']&&(_0x39dedd[_0x3ab92d(0x231)](_0x39dedd[_0x3ab92d(0x188)],_0x39dedd['tpfJF'])?(_0x37db92[_0x3ab92d(0x204)]('Cluster:\x20'+_0x41e7f5[_0x3ab92d(0x244)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x4bfd47=![],_0x1adb6d=!![]):global_registry[_0x3ab92d(0x196)]=!![]),_0x39dedd[_0x3ab92d(0x24a)](updateGlobalRegistryWithConfig,_0x3fceae,_0x449adf,_0xa30b42,_0x5302df,_0x3330e3,_0x5b6524,_0x4c5511,_0x3c131b,_0x24ccb7,_0x827fd0,_0x1c537a);}}else{if(_0x39dedd[_0x3ab92d(0x270)](_0x715ae2,!![])){if(_0x39dedd[_0x3ab92d(0x157)](_0x39dedd[_0x3ab92d(0x15d)],_0x39dedd[_0x3ab92d(0x1f6)])){_0x410ece=_0x3ab92d(0x23b)+_0x375250,logger[_0x3ab92d(0x204)](_0x410ece);const _0xcc8c2c={};_0xcc8c2c[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0xcc8c2c[_0x3ab92d(0x1b3)]=_0x410ece,webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0xcc8c2c),_0x5302df=_0x4c5511[_0x3ab92d(0x233)],_0x3330e3=_0x4c5511[_0x3ab92d(0x25d)],_0x55df78=null,_0x2e1526=null,_0x7c0b1c=null,_0x5b6524=_0x4c5511['s3bucket'],_0x827fd0=_0x4c5511['minNodes'],_0x1c537a=_0x4c5511[_0x3ab92d(0x26c)],_0x3c131b=_0x924db4[_0x3ab92d(0x210)],_0x24ccb7=_0x924db4['browserVersion'],_0x39dedd[_0x3ab92d(0x21b)](_0x4c5511[_0x3ab92d(0x183)],undefined)&&_0x4c5511['privateGrid']&&(_0x39dedd[_0x3ab92d(0x231)](_0x39dedd['VXhWt'],_0x39dedd['hVHZy'])?global_registry[_0x3ab92d(0x196)]=!![]:_0x2daf1f[_0x3ab92d(0x196)]=!![]),_0x39dedd[_0x3ab92d(0x247)](updateGlobalRegistryWithConfig,_0x3fceae,_0x449adf,_0xa30b42,_0x5302df,_0x3330e3,_0x5b6524,_0x4c5511,_0x3c131b,_0x24ccb7,_0x827fd0,_0x1c537a);}else{const _0x2c6c4e={};_0x2c6c4e[_0x3ab92d(0x22c)]=_0x13f3f0[_0x3ab92d(0x1e8)],_0x2c6c4e[_0x3ab92d(0x1b3)]=_0x44dac3,_0x503230['sendEventToBackend'](_0x3eea2d,_0x2c6c4e,_0x39dedd[_0x3ab92d(0x154)],!![]);}}else{if(_0x39dedd['fctUV'](_0x39dedd['yuCBt'],_0x39dedd[_0x3ab92d(0x1c6)])){const _0x20f7ab=_0x39dedd[_0x3ab92d(0x260)]['split']('|');let _0x3f21b7=0x0;while(!![]){switch(_0x20f7ab[_0x3f21b7++]){case'0':global_registry[_0x3ab92d(0x1e2)]=_0x924db4[_0x3ab92d(0x1e2)];continue;case'1':global_registry['clusterName']=_0x449adf;continue;case'2':const _0x23ddf6={};_0x23ddf6[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x248)],_0x23ddf6[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x284)],webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x23ddf6);continue;case'3':logger[_0x3ab92d(0x204)](_0x410ece);continue;case'4':const _0x39123d={};_0x39123d['type']=WS_EVENTS[_0x3ab92d(0x1e8)],_0x39123d[_0x3ab92d(0x1b3)]=_0x410ece,webSocketUtils['sendEventToBackend'](_0x52523e,_0x39123d);continue;case'5':global_registry[_0x3ab92d(0x210)]=_0x924db4[_0x3ab92d(0x210)];continue;case'6':_0x410ece=_0x3ab92d(0x222)+_0x375250+_0x3ab92d(0x1ee)+_0x449adf+'\x27';continue;case'7':global_registry[_0x3ab92d(0x1ae)]=_0xa30b42;continue;case'8':global_registry[_0x3ab92d(0x28e)]=_0x3fceae;continue;}break;}}else _0x594e6b['info']('Found\x20Subnets:\x20'+_0x49ed0e[_0x3ab92d(0x25b)](_0x3e3862)+'\x20');}}const _0x1ed526=await _0x39dedd['xQvHS'](getCloudProviderObject,_0x3fceae,_0x449adf,_0x375250,_0x52523e,webSocketUtils,_0xb447a5);_0x39dedd[_0x3ab92d(0x253)](_0x3fceae,AZURE)&&_0x1ed526[_0x3ab92d(0x1e7)]();let _0x150c02;if(_0x39dedd[_0x3ab92d(0x264)](_0x5ae8eb,![])){_0x410ece=_0x3ab92d(0x146)+_0xa30b42+').';const _0x418059={};_0x418059[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x418059[_0x3ab92d(0x1b3)]=_0x410ece,webSocketUtils['sendEventToBackend'](_0x52523e,_0x418059),logger[_0x3ab92d(0x204)](_0x410ece);const _0x19d430=await _0x1ed526[_0x3ab92d(0x1c4)]();if(_0x19d430){const _0x263ddc={};_0x263ddc[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x263ddc['message']=_0x3ab92d(0x288)+_0x449adf+_0x3ab92d(0x1ce),webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x263ddc,_0x39dedd[_0x3ab92d(0x150)]),logger[_0x3ab92d(0x204)](_0x3ab92d(0x288)+_0x449adf+_0x3ab92d(0x1ce)),_0x5ae8eb=!![];if(_0x39dedd[_0x3ab92d(0x264)](_0x715ae2,!![]))throw new Error('Cluster\x20'+_0x449adf+_0x3ab92d(0x226));}else{const _0x353ccd={};_0x353ccd[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x353ccd[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x1bb)],webSocketUtils['sendEventToBackend'](_0x52523e,_0x353ccd),logger['info'](_0x39dedd['HLFNO']);const _0x22b4f1=_0x39dedd[_0x3ab92d(0x14e)](_0x55df78,null)&&_0x39dedd[_0x3ab92d(0x1cc)](_0x55df78,undefined),_0x547a0d=_0x39dedd[_0x3ab92d(0x14e)](_0x7c0b1c,null)&&_0x39dedd[_0x3ab92d(0x216)](_0x7c0b1c,undefined)&&_0x39dedd[_0x3ab92d(0x185)](_0x7c0b1c[_0x3ab92d(0x1bd)],0x0);if(_0x22b4f1){_0x39dedd[_0x3ab92d(0x172)](_0x547a0d,![])&&(_0x410ece=_0x39dedd[_0x3ab92d(0x1a3)],await _0x39dedd[_0x3ab92d(0x211)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes['ERROR'],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd[_0x3ab92d(0x178)],_0x39dedd[_0x3ab92d(0x154)]),logger['error'](_0x410ece),process[_0x3ab92d(0x202)](0x1));const _0x46e1ff=await _0x1ed526['isVPCPresent'](_0x55df78);_0x39dedd['WatbA'](_0x46e1ff,![])?(_0x410ece=_0x39dedd['eCFTd'],await _0x39dedd[_0x3ab92d(0x211)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes['ERROR'],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd['hPoNa'],_0x39dedd[_0x3ab92d(0x154)]),logger[_0x3ab92d(0x164)](_0x410ece),process[_0x3ab92d(0x202)](0x1)):logger[_0x3ab92d(0x204)](_0x3ab92d(0x14a)+_0x55df78+'\x20');const _0x2d976a=await _0x1ed526[_0x3ab92d(0x274)](_0x7c0b1c,_0x55df78);_0x39dedd[_0x3ab92d(0x24d)](_0x2d976a[0x0],![])?(_0x410ece=_0x3ab92d(0x193)+JSON[_0x3ab92d(0x25b)](_0x2d976a[0x1])+_0x3ab92d(0x16d)+_0x55df78+_0x3ab92d(0x1fa),await _0x39dedd[_0x3ab92d(0x19d)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd['OKzTm'],_0x39dedd['wFbmF']),logger[_0x3ab92d(0x164)](_0x410ece),process[_0x3ab92d(0x202)](0x1)):logger[_0x3ab92d(0x204)]('Found\x20Subnets:\x20'+JSON[_0x3ab92d(0x25b)](_0x7c0b1c)+'\x20'),await _0x1ed526[_0x3ab92d(0x223)](_0x55df78,_0x7c0b1c);}else{const _0x352f9b=_0x39dedd[_0x3ab92d(0x17a)]['split']('|');let _0x2cff91=0x0;while(!![]){switch(_0x352f9b[_0x2cff91++]){case'0':const _0x270d7e={};_0x270d7e['type']=WS_EVENTS['LOG'],_0x270d7e[_0x3ab92d(0x1b3)]=_0x39dedd['NBKit'],webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x270d7e);continue;case'1':await _0x1ed526['setupNewCluster'](_0x55df78,_0x7c0b1c);continue;case'2':const _0x50c5a8={};_0x50c5a8[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x50c5a8[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x265)],webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x50c5a8);continue;case'3':logger[_0x3ab92d(0x204)](_0x39dedd[_0x3ab92d(0x1ec)]);continue;case'4':logger[_0x3ab92d(0x204)](_0x39dedd[_0x3ab92d(0x265)]);continue;}break;}}}}_0x5ae8eb&&_0x39dedd[_0x3ab92d(0x20c)](_0x3fceae,AZURE)&&(await _0x1ed526[_0x3ab92d(0x1a5)](),await _0x1ed526[_0x3ab92d(0x1b8)]());const [_0x4a945f,_0xe3cf99,_0x25e026,_0x2a5d9a,_0x59025e,_0x236b0b]=await _0x39dedd[_0x3ab92d(0x15a)](createK8sClient,_0x1ed526,_0xb447a5[_0x3ab92d(0x26d)]);_0x39dedd[_0x3ab92d(0x264)](_0x5ae8eb,![])&&_0x39dedd[_0x3ab92d(0x14d)](_0x3fceae,AWS)&&(global_registry[_0x3ab92d(0x1aa)]=!![],_0x150c02=await _0x1ed526[_0x3ab92d(0x1a4)](_0x4a945f,_0xb447a5));try{_0x4543f5=_0x39dedd[_0x3ab92d(0x14c)](kebabCase,_0x375250),logger[_0x3ab92d(0x204)](_0x39dedd[_0x3ab92d(0x291)]);const _0x37c0d3={};_0x37c0d3[_0x3ab92d(0x22c)]=WS_EVENTS['LOG'],_0x37c0d3[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x291)],webSocketUtils['sendEventToBackend'](_0x52523e,_0x37c0d3);if(_0x39dedd[_0x3ab92d(0x230)](_0x4543f5,_0x39dedd[_0x3ab92d(0x194)])){const _0x197870={};_0x197870['createdBy']=_0x39dedd['OeHVw'],_0x197870['managedBy']=_0x39dedd[_0x3ab92d(0x1b6)];const _0x4dce87={};_0x4dce87[_0x3ab92d(0x262)]=_0x4543f5,_0x4dce87[_0x3ab92d(0x1c1)]=_0x197870;const _0x246c84={};_0x246c84[_0x3ab92d(0x1c5)]=_0x4dce87;const _0x49b4eb=_0x246c84,_0x5c689d={};_0x5c689d[_0x3ab92d(0x25f)]=_0x49b4eb,await _0x4a945f['createNamespace'](_0x5c689d),logger[_0x3ab92d(0x204)](_0x39dedd[_0x3ab92d(0x21d)]);}const _0x370b92={};_0x370b92[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x370b92[_0x3ab92d(0x1b3)]=_0x39dedd[_0x3ab92d(0x174)],webSocketUtils['sendEventToBackend'](_0x52523e,_0x370b92);const _0x54add8={};_0x54add8[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x54add8['message']=_0x39dedd[_0x3ab92d(0x1b9)],webSocketUtils['sendEventToBackend'](_0x52523e,_0x54add8),logger[_0x3ab92d(0x204)](_0x39dedd['FjeEb']);let _0x2ca068={};_0x39dedd[_0x3ab92d(0x148)](_0x3fceae,AZURE)&&(_0x2ca068={'clientId':await _0x1ed526['getResourceClientId'](_0x3ab92d(0x156)+_0x449adf)});await _0x39dedd['nZwov'](addGridComponents,_0x4a945f,_0xe3cf99,_0x25e026,_0x2a5d9a,_0x4543f5,_0x449adf,_0x150c02,_0x59025e,_0x236b0b,_0x2ca068),_0x410ece=_0x39dedd[_0x3ab92d(0x1a9)],logger[_0x3ab92d(0x204)](_0x410ece);const _0x4b6e48={};_0x4b6e48[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x4b6e48[_0x3ab92d(0x1b3)]=_0x410ece,webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x4b6e48),_0x410ece=_0x39dedd[_0x3ab92d(0x1ca)],logger[_0x3ab92d(0x204)](_0x410ece);const _0x2fb4ef={};_0x2fb4ef[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x2fb4ef[_0x3ab92d(0x1b3)]=_0x410ece,webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x2fb4ef),await _0x39dedd[_0x3ab92d(0x1ab)](waitForDeployment,_0xe3cf99,_0x4543f5,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4cb359=await _0x39dedd[_0x3ab92d(0x15a)](getNamespaceUID,_0x4a945f,_0x4543f5),_0x564a45=global_registry[_0x3ab92d(0x196)]?_0x39dedd['ovEKU']:_0x39dedd[_0x3ab92d(0x28f)],_0x3670cd={};_0x3670cd[_0x3ab92d(0x262)]=_0x564a45,_0x3670cd['namespace']=_0x39dedd[_0x3ab92d(0x201)];const _0x4f5c57=await _0x4a945f[_0x3ab92d(0x24c)](_0x3670cd);let _0x21fd4f=_0x1ed526[_0x3ab92d(0x1f3)](_0x4f5c57)+'/'+_0x4543f5,_0x5de53c=_0x39dedd[_0x3ab92d(0x257)];try{const _0x5b0cea=_0x3ab92d(0x1c7)+AG_API_URL+_0x3ab92d(0x21a)+_0x4cb359,_0x29ec1c=await _0x39dedd['nEjRp'](got,_0x5b0cea,_0x35b590);(_0x39dedd[_0x3ab92d(0x20d)](_0x29ec1c,null)||_0x39dedd[_0x3ab92d(0x172)](_0x29ec1c,undefined))&&(_0x410ece=_0x39dedd[_0x3ab92d(0x184)],await _0x39dedd['wCsFP'](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd[_0x3ab92d(0x246)],_0x39dedd['wFbmF']),logger['error'](_0x410ece),process[_0x3ab92d(0x202)](0x1));_0x39dedd[_0x3ab92d(0x1d4)](_0x29ec1c[_0x3ab92d(0x149)],0x191)&&(_0x410ece=_0x39dedd[_0x3ab92d(0x1bc)],await _0x39dedd['Tqkup'](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd[_0x3ab92d(0x175)],_0x39dedd['wFbmF']),logger['error'](_0x410ece),process[_0x3ab92d(0x202)](0x1));_0x39dedd[_0x3ab92d(0x253)](_0x29ec1c[_0x3ab92d(0x149)],0xc8)&&(_0x410ece=_0x3ab92d(0x283)+JSON[_0x3ab92d(0x25b)](_0x29ec1c),await _0x39dedd[_0x3ab92d(0x24b)](reportToGalactusAndSendToEDS,_0xb447a5,_0x52523e,_0x410ece,messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x285)],_0x39dedd[_0x3ab92d(0x190)],_0x39dedd['wFbmF']),logger['error'](_0x410ece),process[_0x3ab92d(0x202)](0x1));const _0x113458=JSON[_0x3ab92d(0x1f1)](_0x29ec1c[_0x3ab92d(0x25f)]);_0x113458[_0x3ab92d(0x1e9)]&&(_0x21fd4f=_0x113458[_0x3ab92d(0x1e9)],_0x5de53c=_0x39dedd[_0x3ab92d(0x236)]),global_registry[_0x3ab92d(0x196)]&&(_0x5de53c=_0x39dedd['YzdBk']);}catch(_0xc5ea99){}_0x410ece=_0x3ab92d(0x218)+_0x21fd4f+'\x20',logger[_0x3ab92d(0x204)](_0x410ece);const _0x43b303={};_0x43b303['type']=WS_EVENTS[_0x3ab92d(0x1e8)],_0x43b303['message']=_0x410ece,webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x43b303),_0x410ece=_0x3ab92d(0x27b)+_0x5de53c+_0x3ab92d(0x181)+_0x21fd4f+_0x3ab92d(0x1a7),logger[_0x3ab92d(0x204)](_0x410ece);const _0x192152={};_0x192152[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1e8)],_0x192152[_0x3ab92d(0x1b3)]=_0x410ece,webSocketUtils['sendEventToBackend'](_0x52523e,_0x192152);const _0x9218b5={};_0x9218b5[_0x3ab92d(0x22c)]=WS_EVENTS[_0x3ab92d(0x1da)],_0x9218b5[_0x3ab92d(0x1b3)]=_0x3ab92d(0x221)+_0x21fd4f,webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x9218b5),await webSocketUtils[_0x3ab92d(0x290)](0x7d0);}catch(_0x2d0ed8){logger[_0x3ab92d(0x164)](_0x3ab92d(0x26b)+_0x2d0ed8+'\x20\x0a'+JSON['stringify'](_0x2d0ed8[_0x3ab92d(0x23d)]));if(_0x39dedd[_0x3ab92d(0x213)](_0x5ae8eb,![]))try{logger[_0x3ab92d(0x204)](_0x39dedd[_0x3ab92d(0x187)]),await _0x39dedd[_0x3ab92d(0x1e6)](removeGridComponents,_0x4a945f,_0xe3cf99,_0x25e026,_0x2a5d9a,_0x4543f5),await _0x1ed526[_0x3ab92d(0x18e)](_0x4a945f,global_registry[_0x3ab92d(0x1ae)]);}catch(_0x342fc1){logger[_0x3ab92d(0x164)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x342fc1+'\x20\x0a'+JSON[_0x3ab92d(0x25b)](_0x342fc1[_0x3ab92d(0x23d)]));}throw _0x2d0ed8;}}catch(_0x36eed7){const _0x25487a=_0x3ab92d(0x161)+_0x36eed7+'\x20\x0a'+JSON['stringify'](_0x36eed7['stack']);if(_0x52523e){const _0x38e838={};_0x38e838[_0x3ab92d(0x22c)]=WS_EVENTS['LOG'],_0x38e838[_0x3ab92d(0x1b3)]=_0x25487a,webSocketUtils[_0x3ab92d(0x215)](_0x52523e,_0x38e838,_0x39dedd[_0x3ab92d(0x154)],!![]);}await webSocketUtils[_0x3ab92d(0x290)](0x7d0);const _0x3eee6c={};_0x3eee6c[_0x3ab92d(0x164)]=_0x25487a,await _0x39dedd['cWduq'](sendInstrumentationEvent,_0xb447a5,_0x39dedd[_0x3ab92d(0x285)],messageTypes[_0x3ab92d(0x189)],_0x39dedd[_0x3ab92d(0x27f)],_0x3eee6c,_0xb447a5),logger[_0x3ab92d(0x164)](_0x25487a);}process[_0x3ab92d(0x202)](0x0);};function a9_0x14d3(){const _0x54afb3=['Cluster\x20created\x20successfully','CAOPf','clusterName','wkRBg','XYOms','NYpjz','CLI_RUN_STARTED','JboPa','esWUe','Tqkup','readNamespacedService','Gjvnq','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.','uzAJi','BHDrH','\x27\x20grid\x20profile','BgDsP','ndpMu','WaGkx','fLIfW','idKmu','YzdBk','pre-spawned-invalid-vpc','oVHOi','FZXYN','stringify','OFYAs','instanceType','Browserstack','body','fGpej','ZQfSX','name','cjrUI','qenoZ','BjVob','Rcmvr','Unlqt','OFZWL','295610pXzXey','CLI\x20run\x20started','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','maxNodes','skipTlsCertVerify','MVyea','GfqGA','YbfXu','QZDPb','grid','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','isSubnetsValid','../../utils/createk8sClient','gridProfileId','password','usage','IZPjj','3bJoWln','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','get-grid-url-null-response','560EaWECg','Hkscs','rscqc','Creating\x20namespace','pre-spawned-subnets-not-selected','requestId','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','gIFMQ','HdXnm','cloud-provider','xCSZU','Cluster\x20','Deleting\x20the\x20CloudFormation\x20Stacks','quOhW','existsSync','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','warn','cloudProvider','bQBCo','delay','UjPwI','prespawned-cluster-args-not-passed','Grid\x20profile\x20fetched\x20from\x20backend','Cluster:\x20','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','boolean','UiEQR','statusCode','Found\x20VPC:\x20','qSQHT','obzcp','WatbA','ILYfD','grid-name','iEMEG','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','private-grid','dQbvm','wFbmF','../../config/constants','turboscale-managed-identity-','TFtbY','OCXtX','opCAb','juShH','newCluster','zyUIn','imKsE','Namespace\x20created','../../cloudproviders/utils','create-grid-checks-auth-failed','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','ckTcN','hfgxa','error','FqXQe','reconnecting-websocket','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','Mthkv','fsXoq','JTMBb','11tnjNvF','0|13|14|9|11|12|7|2|5|3|1|6|4|8|10','\x20are\x20not\x20present\x20in\x20VPC:\x20','addListeners','../../utils/webSocketUtils','help','gridProfile','qJyRd','alreadyPresent','mybgp','itNTU','RgvST','true','oMRHc','ExCEH','xEDzT','Skip\x20insecure\x20cert\x20verification.','desc','grid-spawning-failed','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','nzTAk','667196TRqJpJ','://','<UsernamePlaceholder>','privateGrid','oFwnU','TxOpQ','LpVyz','mTVlL','tpfJF','ERROR','get-grid-url-non-200','HtYfy','Create\x20a\x20private/public\x20grid.','vpc','deleteCluster','/packages/cli/create-grid-checks','XhOOz','imomt','AKPUA','Subnets:\x20','CTaDw','SbnkV','isPrivateGrid','options','BoiCf','sucmn','init-not-called','lXKmJ','9693770wAPFzY','BPHAo','username','KBZMN','iKxKc','YCCQw','ollXu','bJlXx','setupAutoscaler','updateClusterAlreadyPresent','grid-profile','/wd/hub','rFmcI','GZlXJ','isNewAWSCluster','RuMZW','EdDxq','ZDCYh','clusterRegion','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Will\x20be\x20spawning\x20the\x20grid\x20','connectionTimeout','securityGroups','message','rZwOX','HbBJS','OeHVw','description','createOtherResources','cyZXo','132wAbaxp','HLFNO','eacCa','length','53612QOEbhq','AOIbN','kTovD','annotations','mriOj','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','isClusterPresent','metadata','ddJjY','https://','../../config/logger','ElnRX','ozkVB','private-ingress-nginx-controller','TzzOL','102KFhltj','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','minNodes','cypbA','Spawning\x20Grid\x20on\x20the\x20Cluster','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','NQYAH','split','user','https','create','Apvzs','CLI_RUN_FINISHED','NxOuM','includes','pre-spawned-invalid-subnets','readFileSync','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','browserVersion','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','handler','50769jqvVdb','pFJCK','sendResourceDataToHST','LOG','route53','toLowerCase','replace','NBKit','JmLDI','\x20in\x20existing\x20cluster\x20\x27','hOYiR','qZiuA','parse','string','getGridHostname','ingress-nginx','Vtqem','pQWeA','2|6|3|4|8|7|1|5|0','INFO','cOpYo','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','builder','174OYplxb','4751040NJpeCl','gridName','xgRty','non-aws-azure-cluster','UhBOU','exit','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','info','yGJoT','FTpPS','command','FKwhx','../../utils/utilityMethods','edpIo','vXlnF','ShQNQ','QxMbc','DyNvl','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','hubVersion','wCsFP','fJyay','TmzWr','XshOt','sendEventToBackend','wPJak','vbMmw','Grid\x20can\x20be\x20accessed\x20at:\x20','EXmRw','/packages/cli/get-grid-url?gridIdentifier=','mqhBv','s3bucket','EMYoo','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','tlOaR','mucGo','CLI\x20run\x20finished:\x20','Spawning\x20the\x20grid\x20','setupNewCluster','jJBcM','afEfa','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','skip-tls-cert-verify','\x20using\x20\x27','create-grid-checks-invalid-profile','region','type','cluster-name','default','MPazf','boQEa','fctUV','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','concurrency','pHJkf','VYdpu','GJWZW','argv','create-grid-called','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','epilogue','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','Gttmv','stack','defaultGridProfile','2428738vdOZdC','bstackAccesskey','GET'];a9_0x14d3=function(){return _0x54afb3;};return a9_0x14d3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a10_0x2b4d(){const _0x1d7da9=['257529lLeSAc','epilogue','strict','9tGHwiO','demandCommand','1988682gVfQhe','../config/constants','commandDir','recommendCommands','usage','builder','346LkNYvt','pzeym','7196090IRUCie','3681nUCxKz','5WokjIh','desc','8701nOFyBq','2516644lsaDpO','delete_commands','7bMXMPS','handler','delete','912XdmncK','IWVON','help','6378576qTPklD'];a10_0x2b4d=function(){return _0x1d7da9;};return a10_0x2b4d();}const a10_0x4e671e=a10_0x35f1;function a10_0x35f1(_0x2c8790,_0x23f549){const _0x2b4d9d=a10_0x2b4d();return a10_0x35f1=function(_0x35f16e,_0x433238){_0x35f16e=_0x35f16e-0xc0;let _0x3fb663=_0x2b4d9d[_0x35f16e];return _0x3fb663;},a10_0x35f1(_0x2c8790,_0x23f549);}(function(_0x22b012,_0x3d36a8){const _0x471f23=a10_0x35f1,_0x3a560b=_0x22b012();while(!![]){try{const _0x14a08d=-parseInt(_0x471f23(0xce))/0x1+parseInt(_0x471f23(0xd9))/0x2*(parseInt(_0x471f23(0xc1))/0x3)+parseInt(_0x471f23(0xc5))/0x4*(-parseInt(_0x471f23(0xc2))/0x5)+parseInt(_0x471f23(0xd3))/0x6*(-parseInt(_0x471f23(0xc7))/0x7)+parseInt(_0x471f23(0xcd))/0x8+parseInt(_0x471f23(0xd1))/0x9*(parseInt(_0x471f23(0xc0))/0xa)+parseInt(_0x471f23(0xc4))/0xb*(-parseInt(_0x471f23(0xca))/0xc);if(_0x14a08d===_0x3d36a8)break;else _0x3a560b['push'](_0x3a560b['shift']());}catch(_0x2e03b7){_0x3a560b['push'](_0x3a560b['shift']());}}}(a10_0x2b4d,0x6e185));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x4e671e(0xd4));exports['command']=a10_0x4e671e(0xc9),exports[a10_0x4e671e(0xc3)]='List\x20Grid\x20resources.',exports[a10_0x4e671e(0xd8)]=function(_0x383cfa){const _0x4d1e42=a10_0x4e671e,_0x3f7854={};_0x3f7854[_0x4d1e42(0xcb)]=_0x4d1e42(0xc6),_0x3f7854['pzeym']=_0x4d1e42(0xcc);const _0x2ebe00=_0x3f7854;return _0x383cfa[_0x4d1e42(0xd7)](HELP_HEADER_MESSAGE['delete'])[_0x4d1e42(0xcf)](HELP_FOOTER_MESSAGE)[_0x4d1e42(0xd5)](_0x2ebe00[_0x4d1e42(0xcb)])[_0x4d1e42(0xd2)]()[_0x4d1e42(0xd6)]()[_0x4d1e42(0xd0)]()['help'](_0x2ebe00[_0x4d1e42(0xda)]);},exports[a10_0x4e671e(0xc8)]=function(_0x54e2e1){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a11_0xc06f(_0x1640ba,_0x42cca9){const _0x2bfde2=a11_0x2bfd();return a11_0xc06f=function(_0xc06f36,_0x3c0e0b){_0xc06f36=_0xc06f36-0xf0;let _0x1570cb=_0x2bfde2[_0xc06f36];return _0x1570cb;},a11_0xc06f(_0x1640ba,_0x42cca9);}const a11_0x4b589d=a11_0xc06f;(function(_0x419b8d,_0x1ffac2){const _0x54d002=a11_0xc06f,_0x4dc529=_0x419b8d();while(!![]){try{const _0x281bc5=-parseInt(_0x54d002(0x102))/0x1*(-parseInt(_0x54d002(0x188))/0x2)+parseInt(_0x54d002(0x181))/0x3+-parseInt(_0x54d002(0x124))/0x4*(-parseInt(_0x54d002(0x129))/0x5)+-parseInt(_0x54d002(0x127))/0x6+-parseInt(_0x54d002(0x161))/0x7+-parseInt(_0x54d002(0x141))/0x8+parseInt(_0x54d002(0xfc))/0x9*(-parseInt(_0x54d002(0x16b))/0xa);if(_0x281bc5===_0x1ffac2)break;else _0x4dc529['push'](_0x4dc529['shift']());}catch(_0x105f2e){_0x4dc529['push'](_0x4dc529['shift']());}}}(a11_0x2bfd,0xc1388));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a11_0x4b589d(0x11b)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x4b589d(0x132)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x4b589d(0xfa)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x4b589d(0x159)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x4b589d(0x12e)),{inputConfirmation}=require(a11_0x4b589d(0x165)),{createK8sClient}=require(a11_0x4b589d(0x187)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x4b589d(0x142));function a11_0x2bfd(){const _0x110878=['clusterSpawnedVia','onlyGridInCluster','TCGAZ','GJeIx','unauthorised','4253703cxIMPp','https://','connectionTimeout','ezhpo','uSJIe','EHcxo','../../utils/createk8sClient','4xQOKSh','help','OveMb','nwtQg','string','qgzUd','kWnIx','dgeJN','replace','Cluster:\x20','default','stbIt','../../config/constants','RqWKy','351dxvwnD','clusterId','Delete\x20an\x20Automation\x20grid.','existsSync','yrFGm','TbgtC','30721AoNpAg','yejCk','CWctX','region','handler','name','Successfully\x20deleted\x20the\x20grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','invalid-input','OSnxh','password','azNth','wWVuR','OPaUh','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','delete-grid-called','JUHoH','RDMFL','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Skip\x20insecure\x20cert\x20verification.','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','shhjR','VeepP','vtNER','vvNrT','uuid','ERROR','\x22\x20and\x20ID\x20','ERnnB','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Inpiv','<UsernamePlaceholder>','type','vxlEZ','12PKkvNn','warn','then','5852244fNpRtm','clusterRegion','2501095SJXrjU','cloudProvider','hQtbB','qfMjF','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','../../utils/instrumentationUtils','cvppL','jyXVb','Browserstack','reconnecting-websocket','yDbwa','WebSocket','readFileSync','exit','UXVqB','usage','pHCca','ITgIX','argv','HQiJh','skip-tls-cert-verify','options','isClusterPresent','kdNjv','1900712utlpsm','../../utils/webSocketUtils','vnovi','gridId','bLlGm','epilogue','DcsGk','skipTlsCertVerify','stack','UKoff','uvvuh','info','clusterName','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','unknown-error','desc','eIpkH','mKykG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','boolean','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','PEHxd','../../cloudproviders/utils','toLowerCase','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','command','body','username','invalid-grid-id','deleteCluster','819413JRfSjQ','PDoLL','GjOst','description','../../utils/userInput','parse','jHDAg','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','bKEIA','delete','220140YqQdLk','BQnnx','XVOHg','requestId','cpshk','\x22\x20with\x20ID\x20','HHbcS','ucppt','/packages/cli/grid/','CLsYr','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Namespace:\x20','xrFkd','yepNC','statusCode','JiZCE','init-not-called'];a11_0x2bfd=function(){return _0x110878;};return a11_0x2bfd();}exports[a11_0x4b589d(0x15c)]='grid',exports[a11_0x4b589d(0x150)]=a11_0x4b589d(0xfe),exports['builder']=function(_0x135dab){const _0x27f1ed=a11_0x4b589d,_0x2b8036={};_0x2b8036['OSnxh']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x2b8036[_0x27f1ed(0xf9)]=_0x27f1ed(0xf2),_0x2b8036[_0x27f1ed(0x119)]='Skip\x20insecure\x20cert\x20verification.',_0x2b8036[_0x27f1ed(0x120)]=_0x27f1ed(0x156),_0x2b8036[_0x27f1ed(0xf0)]=_0x27f1ed(0x189);const _0x1bdc40=_0x2b8036,_0x287885={};_0x287885[_0x27f1ed(0x164)]=_0x1bdc40[_0x27f1ed(0x10b)],_0x287885[_0x27f1ed(0x122)]=_0x1bdc40[_0x27f1ed(0xf9)];const _0x37ff2d={};_0x37ff2d[_0x27f1ed(0x164)]=_0x1bdc40['vtNER'],_0x37ff2d['type']=_0x1bdc40[_0x27f1ed(0x120)],_0x37ff2d[_0x27f1ed(0xf8)]=![];const _0x5abbf6={};return _0x5abbf6['grid-id']=_0x287885,_0x5abbf6[_0x27f1ed(0x13d)]=_0x37ff2d,_0x135dab[_0x27f1ed(0x138)](HELP_HEADER_MESSAGE['delete'])[_0x27f1ed(0x146)](HELP_FOOTER_MESSAGE)['options'](_0x5abbf6)['help'](_0x1bdc40[_0x27f1ed(0xf0)])[_0x27f1ed(0x13b)];},exports[a11_0x4b589d(0x106)]=async function(_0x503469){const _0x1537fa=a11_0x4b589d,_0x469d82={'jHDAg':_0x1537fa(0x108),'CLsYr':_0x1537fa(0x114),'ezhpo':function(_0x46df98,_0x208a33){return _0x46df98!==_0x208a33;},'HQiJh':'gFLUf','jyXVb':'JOJdF','bKEIA':_0x1537fa(0xf3),'eIpkH':'Pass\x20the\x20ID\x20of\x20the\x20Grid','usGVR':'string','pRrNv':_0x1537fa(0x115),'nwtQg':_0x1537fa(0x156),'JUHoH':_0x1537fa(0x189),'bLlGm':_0x1537fa(0x14e),'UXVqB':function(_0x129870){return _0x129870();},'XVJEE':function(_0x50e664){return _0x50e664();},'BQnnx':function(_0x310af8,_0x2784ac){return _0x310af8===_0x2784ac;},'OPaUh':_0x1537fa(0x13a),'vvNrT':_0x1537fa(0x153),'uvvuh':function(_0x765cb8,_0x143982,_0x12e5c6,_0x111262,_0x1fff80,_0x5a7cc6,_0x43c5ce){return _0x765cb8(_0x143982,_0x12e5c6,_0x111262,_0x1fff80,_0x5a7cc6,_0x43c5ce);},'cvppL':_0x1537fa(0x111),'TbgtC':_0x1537fa(0x17b),'CWctX':function(_0x582c60,_0x542a22){return _0x582c60!==_0x542a22;},'vnovi':_0x1537fa(0x16d),'yejCk':function(_0x47b6ad){return _0x47b6ad();},'shhjR':function(_0x1c4748,_0x4491e3,_0x4b9236,_0x4f0db7){return _0x1c4748(_0x4491e3,_0x4b9236,_0x4f0db7);},'UKoff':_0x1537fa(0x131),'dgeJN':_0x1537fa(0x10e),'uSJIe':function(_0x159572,_0x2d8236){return _0x159572(_0x2d8236);},'DcsGk':_0x1537fa(0x100),'yepNC':_0x1537fa(0x186),'VeepP':_0x1537fa(0x11f),'xrFkd':_0x1537fa(0x10a),'kWnIx':_0x1537fa(0x133),'pHCca':_0x1537fa(0x121),'ZxbLc':'<PasswordPlaceholder>','ERnnB':function(_0xc49fbb,_0x40f9af,_0x1b8886,_0x29d860,_0x5394f3,_0xa962e1,_0x2139dd){return _0xc49fbb(_0x40f9af,_0x1b8886,_0x29d860,_0x5394f3,_0xa962e1,_0x2139dd);},'ucppt':function(_0x408746,_0x432b20,_0x1363c8){return _0x408746(_0x432b20,_0x1363c8);},'HBzJQ':function(_0x341bd4,_0x2da2c2,_0x11a057,_0x1d01fd,_0x283b60,_0x59531a){return _0x341bd4(_0x2da2c2,_0x11a057,_0x1d01fd,_0x283b60,_0x59531a);},'cpshk':function(_0x4529d7,_0x4adc67){return _0x4529d7===_0x4adc67;},'mKykG':_0x1537fa(0x162),'RDMFL':_0x1537fa(0x17e),'JiZCE':'DELETE','GjOst':function(_0x5ef728,_0x357eb7,_0x43684c){return _0x5ef728(_0x357eb7,_0x43684c);},'azNth':function(_0x3e1be7,_0x64e202){return _0x3e1be7!==_0x64e202;},'vxlEZ':function(_0x47d9d0,_0x5afaaf){return _0x47d9d0===_0x5afaaf;},'qfMjF':function(_0x41e692,_0x1a14d8,_0x1c15f4,_0x4cf792,_0x1c2960,_0x48e90d,_0x56e20f){return _0x41e692(_0x1a14d8,_0x1c15f4,_0x4cf792,_0x1c2960,_0x48e90d,_0x56e20f);},'HHbcS':'server-error','RqWKy':function(_0x1345d1,_0x2bdaf9){return _0x1345d1===_0x2bdaf9;},'zuxpc':_0x1537fa(0x110),'PEHxd':_0x1537fa(0x180),'hQtbB':function(_0x59c370,_0x4e6680,_0x428654,_0x3dd866,_0x178ad3,_0x108e70,_0x5a9167){return _0x59c370(_0x4e6680,_0x428654,_0x3dd866,_0x178ad3,_0x108e70,_0x5a9167);},'GJeIx':_0x1537fa(0x15f),'Ocdtd':function(_0x3161fe,_0x4b4eea,_0xda8a2e,_0x5d2b9a,_0x484f5d,_0x35ce35,_0x474449){return _0x3161fe(_0x4b4eea,_0xda8a2e,_0x5d2b9a,_0x484f5d,_0x35ce35,_0x474449);},'kdNjv':_0x1537fa(0x14f)};try{global_registry[_0x1537fa(0x16e)]=_0x469d82[_0x1537fa(0x137)](uuidv4);!fs[_0x1537fa(0xff)](_0x469d82['XVJEE'](getCredentialsPath))&&(_0x469d82[_0x1537fa(0x16c)](_0x469d82[_0x1537fa(0x10f)],_0x469d82[_0x1537fa(0x10f)])?(console[_0x1537fa(0x154)](_0x469d82[_0x1537fa(0x11a)]),await _0x469d82['uvvuh'](sendInstrumentationEvent,_0x503469,_0x469d82['cvppL'],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x101)],null,_0x503469),process[_0x1537fa(0x136)](0x1)):_0x30d37a[_0x1537fa(0x125)](_0x1537fa(0xf7)+_0x5a4cf8['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));_0x469d82['uvvuh'](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes['INFO'],null,null,_0x503469);!_0x503469['gridId']&&(_0x469d82[_0x1537fa(0x104)](_0x469d82[_0x1537fa(0x143)],_0x469d82[_0x1537fa(0x143)])?_0x1c4df7=_0x1537fa(0x15b)+_0x5967ef[_0x1537fa(0x107)]+_0x1537fa(0x11d)+_0x12efb3['id']+_0x1537fa(0x168)+_0x13055c[_0x1537fa(0x14d)]+'\x22\x20with\x20ID\x20'+_0xa5587e['clusterId']+_0x1537fa(0x157):(console[_0x1537fa(0x154)](_0x469d82[_0x1537fa(0x174)]),process[_0x1537fa(0x136)](0x1)));const _0x23e592=JSON[_0x1537fa(0x166)](fs[_0x1537fa(0x135)](_0x469d82[_0x1537fa(0x103)](getCredentialsPath))),[_0x13da76,_0x28eb5f]=await _0x469d82[_0x1537fa(0x117)](getGridDetails,_0x23e592['Browserstack'][_0x1537fa(0x15e)],_0x23e592[_0x1537fa(0x131)][_0x1537fa(0x10c)],_0x503469[_0x1537fa(0x144)]);if(_0x28eb5f){const _0x132a32=_0x28eb5f[_0x1537fa(0x14c)];let _0x3eacc0=_0x1537fa(0x15b)+_0x132a32['name']+_0x1537fa(0x11d)+_0x132a32['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';_0x28eb5f[_0x1537fa(0x17d)]&&_0x469d82[_0x1537fa(0x16c)](_0x28eb5f[_0x1537fa(0x17c)],_0x469d82[_0x1537fa(0x14a)])&&(_0x469d82[_0x1537fa(0x16c)](_0x469d82[_0x1537fa(0xf5)],_0x469d82[_0x1537fa(0xf5)])?_0x3eacc0='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x132a32['name']+_0x1537fa(0x11d)+_0x132a32['id']+_0x1537fa(0x168)+_0x132a32[_0x1537fa(0x14d)]+_0x1537fa(0x170)+_0x132a32[_0x1537fa(0xfd)]+_0x1537fa(0x157):(_0x30bdd9[_0x1537fa(0x14c)](_0x469d82[_0x1537fa(0x167)]),_0x2e1d67[_0x1537fa(0x136)](0x0)));const _0x156fe4=await _0x469d82[_0x1537fa(0x185)](inputConfirmation,_0x3eacc0);(_0x469d82[_0x1537fa(0x16c)](_0x156fe4,undefined)||_0x469d82[_0x1537fa(0x16c)](_0x156fe4,null)||!(_0x469d82[_0x1537fa(0x16c)](_0x156fe4[_0x1537fa(0x15a)](),'y')||_0x469d82['BQnnx'](_0x156fe4['toLowerCase'](),'n')))&&(_0x469d82[_0x1537fa(0x104)](_0x469d82[_0x1537fa(0x147)],_0x469d82[_0x1537fa(0x178)])?(console[_0x1537fa(0x154)](_0x469d82[_0x1537fa(0x118)]),await _0x469d82[_0x1537fa(0x14b)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x177)],null,_0x503469),process['exit'](0x1)):_0x547ffc[_0x1537fa(0x14c)](_0x1537fa(0x176)+_0x5ba362+_0x1537fa(0x12d)));_0x469d82[_0x1537fa(0x16c)](_0x156fe4[_0x1537fa(0x15a)](),'n')&&(_0x469d82['ezhpo'](_0x469d82[_0x1537fa(0xf4)],_0x469d82['kWnIx'])?(_0x21dc54[_0x1537fa(0x154)](_0x469d82[_0x1537fa(0x174)]),_0x1744b0['exit'](0x1)):process['exit'](0x0));const _0x21f6ec=WS_ENDPOINT[_0x1537fa(0xf6)](_0x469d82[_0x1537fa(0x139)],_0x23e592[_0x1537fa(0x131)]['username'])[_0x1537fa(0xf6)](_0x469d82['ZxbLc'],_0x23e592[_0x1537fa(0x131)][_0x1537fa(0x10c)]),_0x12da54={};_0x12da54[_0x1537fa(0x134)]=ws,_0x12da54[_0x1537fa(0x183)]=0x36ee80;const _0x1210dc=new ReconnectingWebSocket(_0x21f6ec,[],_0x12da54);global_registry[_0x1537fa(0x128)]=_0x132a32[_0x1537fa(0x105)];const _0x3e0d1c=_0x132a32[_0x1537fa(0x12a)],_0x5d072c=await _0x469d82['ERnnB'](getCloudProviderObject,_0x3e0d1c,_0x132a32[_0x1537fa(0x14d)],_0x132a32[_0x1537fa(0x107)],_0x1210dc,webSocketUtils,_0x503469),_0x5d31a0=await _0x5d072c[_0x1537fa(0x13f)]();if(_0x5d31a0){const _0x1b91e5=_0x469d82[_0x1537fa(0x185)](kebabCase,_0x132a32[_0x1537fa(0x107)]),[_0x3b0adc,_0x18fe5c,_0x1954ee,_0xae18d7,_0xd9e8fd,_0x1dd20d]=await _0x469d82[_0x1537fa(0x172)](createK8sClient,_0x5d072c,_0x503469[_0x1537fa(0x148)]);let _0x540032=!![];const _0x3f6f1a={};_0x3f6f1a[_0x1537fa(0x107)]=_0x1b91e5,await _0x3b0adc['readNamespace'](_0x3f6f1a)[_0x1537fa(0x126)](_0x2bb048=>{const _0x4ead59=_0x1537fa;_0x469d82[_0x4ead59(0x184)](_0x469d82[_0x4ead59(0x13c)],_0x469d82[_0x4ead59(0x13c)])?(_0x40c775['warn'](_0x4ead59(0x176)+_0x215a4b+_0x4ead59(0x155)),_0x580809=![]):logger[_0x4ead59(0x14c)](_0x4ead59(0x176)+_0x1b91e5+_0x4ead59(0x12d));})['catch'](_0x5c8836=>{const _0x2459ad=_0x1537fa;_0x469d82[_0x2459ad(0x184)](_0x469d82[_0x2459ad(0x130)],_0x469d82[_0x2459ad(0x169)])?(logger[_0x2459ad(0x125)](_0x2459ad(0x176)+_0x1b91e5+_0x2459ad(0x155)),_0x540032=![]):_0xf8ba8f[_0x2459ad(0x136)](0x0);});if(_0x540032){await _0x469d82['HBzJQ'](removeGridComponents,_0x3b0adc,_0x18fe5c,_0x1954ee,_0xae18d7,_0x1b91e5);if(_0x28eb5f[_0x1537fa(0x17d)]){const _0x49844a=await _0x5d072c['isBrowserstackCluster']();if(_0x49844a){if(_0x469d82[_0x1537fa(0x16f)](_0x469d82[_0x1537fa(0x152)],_0x469d82[_0x1537fa(0x152)]))await _0x5d072c[_0x1537fa(0x160)](_0x3b0adc,_0x132a32['region']);else{const _0x4484b8={};_0x4484b8[_0x1537fa(0x164)]=_0x469d82[_0x1537fa(0x151)],_0x4484b8['type']=_0x469d82['usGVR'];const _0xe02ec9={};_0xe02ec9[_0x1537fa(0x164)]=_0x469d82['pRrNv'],_0xe02ec9[_0x1537fa(0x122)]=_0x469d82[_0x1537fa(0xf1)],_0xe02ec9[_0x1537fa(0xf8)]=![];const _0x2e1155={};return _0x2e1155['grid-id']=_0x4484b8,_0x2e1155[_0x1537fa(0x13d)]=_0xe02ec9,_0x463b34[_0x1537fa(0x138)](_0x1a07c0[_0x1537fa(0x16a)])[_0x1537fa(0x146)](_0xabd589)[_0x1537fa(0x13e)](_0x2e1155)['help'](_0x469d82[_0x1537fa(0x112)])[_0x1537fa(0x13b)];}}else _0x469d82['CWctX'](_0x469d82[_0x1537fa(0x113)],_0x469d82[_0x1537fa(0x113)])?_0x260985[_0x1537fa(0x125)](_0x469d82[_0x1537fa(0x145)]):logger['warn'](_0x1537fa(0xf7)+_0x132a32['clusterName']+_0x1537fa(0x175));}}}else logger[_0x1537fa(0x125)](_0x469d82['bLlGm']);const _0x4a5eac=_0x1537fa(0x182)+AG_API_URL+_0x1537fa(0x173)+_0x503469[_0x1537fa(0x144)],_0x529008={'method':_0x469d82[_0x1537fa(0x17a)],'headers':_0x469d82['GjOst'](getAuthHeader,_0x23e592[_0x1537fa(0x131)][_0x1537fa(0x15e)],_0x23e592['Browserstack']['password']),'throwHttpErrors':![]},_0x20bff1=await _0x469d82[_0x1537fa(0x163)](got,_0x4a5eac,_0x529008);_0x469d82[_0x1537fa(0x10d)](_0x20bff1,null)&&_0x469d82[_0x1537fa(0x10d)](_0x20bff1,undefined)&&_0x469d82[_0x1537fa(0x123)](_0x20bff1[_0x1537fa(0x179)],0xc8)&&(logger[_0x1537fa(0x14c)](_0x469d82[_0x1537fa(0x167)]),process['exit'](0x0)),logger[_0x1537fa(0x154)](_0x1537fa(0x116)+_0x20bff1[_0x1537fa(0x15d)]),await _0x469d82[_0x1537fa(0x12c)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x171)],_0x13da76,_0x503469),process['exit'](0x1);}_0x469d82[_0x1537fa(0xfb)](_0x13da76[_0x1537fa(0x179)],0x191)&&(logger['error'](_0x469d82['zuxpc']),await _0x469d82[_0x1537fa(0x11e)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x158)],null,_0x503469),process['exit'](0x1)),_0x469d82[_0x1537fa(0x123)](_0x13da76[_0x1537fa(0x179)],0x190)&&(logger[_0x1537fa(0x154)](JSON['parse'](_0x13da76[_0x1537fa(0x15d)])['message']),await _0x469d82[_0x1537fa(0x12b)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes['ERROR'],_0x469d82[_0x1537fa(0x17f)],null,_0x503469),process['exit'](0x1)),logger[_0x1537fa(0x154)](_0x1537fa(0x109)+JSON['stringify'](_0x13da76)),await _0x469d82['Ocdtd'](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes['ERROR'],_0x469d82[_0x1537fa(0x171)],_0x13da76,_0x503469),process[_0x1537fa(0x136)](0x1);}catch(_0x175c86){logger['error']('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x175c86[_0x1537fa(0x149)]),await _0x469d82[_0x1537fa(0x12c)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x140)],_0x175c86,_0x503469),process[_0x1537fa(0x136)](0x1);}};
|
|
1
|
+
function a11_0x31d8(){const _0x2269ed=['6UkPEvM','uuid','../../utils/gridComponents','boolean','delete-grid-called','LFccb','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','jbmoq','\x22\x20and\x20ID\x20','PCivh','Delete\x20an\x20Automation\x20grid.','vFNek','https://','PxZEl','YxkvK','TxGIE','UdMhq','clusterId','ypMEO','hQmTn','delete','epilogue','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','server-error','sIftU','usage','gridId','Xboei','tQABn','2440140WWllAf','clusterRegion','feiFl','317600MSpZpB','mGlZv','command','got','isBrowserstackCluster','fPhyr','connectionTimeout','fiipP','pArvh','54lFQjmD','then','wdbbX','existsSync','YiTFh','SBlka','Cluster:\x20','region','mnLnD','../../utils/createk8sClient','VdWtI','pMQLD','QMtiN','NNscn','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','50277QernSm','hynCV','136gocZKx','body','warn','3931907LoVIfG','stack','Failed\x20to\x20delete\x20resources!\x20Error:\x20','description','556760SSDyZz','type','erYmM','WOUZH','uLKLT','requestId','Mczbr','error','QHsaM','ahRSE','password','skipTlsCertVerify','skip-tls-cert-verify','name','isClusterPresent','message','2638705aJmeCt','../../utils/webSocketUtils','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','MxXAK','builder','exit','../../utils/userInput','GfWIu','aVEeU','RZTLV','RyLuP','nwvtZ','YqUew','options','asbQD','invalid-grid-id','/packages/cli/grid/','grid-id','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','default','SgVqq','cAWwY','ZPFBJ','grid','itOwl','633244GGFywN','wvbQW','NaZai','../../config/logger','invalid-input','whqDB','AKZLW','abJYZ','Namespace:\x20','mdOOB','argv','<UsernamePlaceholder>','info','parse','desc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','clusterName','statusCode','Pass\x20the\x20ID\x20of\x20the\x20Grid','onlyGridInCluster','gWFXh','Ujbyy','Dcreo','FXsRq','ERROR','<PasswordPlaceholder>','Successfully\x20deleted\x20the\x20grid','Browserstack','readNamespace','WebSocket','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','init-not-called','../../config/constants','unauthorised','handler','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Skip\x20insecure\x20cert\x20verification.','CwjtC','../../cloudproviders/utils','help','toLowerCase','\x22\x20with\x20ID\x20','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','ZThcZ','CAMWR','username'];a11_0x31d8=function(){return _0x2269ed;};return a11_0x31d8();}const a11_0x1fec45=a11_0x2051;(function(_0x6d591a,_0x18e008){const _0x5a8c=a11_0x2051,_0x4ebc20=_0x6d591a();while(!![]){try{const _0x5e4d8c=parseInt(_0x5a8c(0x22a))/0x1+parseInt(_0x5a8c(0x201))/0x2+-parseInt(_0x5a8c(0x1f8))/0x3*(-parseInt(_0x5a8c(0x1fa))/0x4)+parseInt(_0x5a8c(0x211))/0x5*(-parseInt(_0x5a8c(0x1c0))/0x6)+-parseInt(_0x5a8c(0x1fd))/0x7+-parseInt(_0x5a8c(0x1e0))/0x8*(parseInt(_0x5a8c(0x1e9))/0x9)+parseInt(_0x5a8c(0x1dd))/0xa;if(_0x5e4d8c===_0x18e008)break;else _0x4ebc20['push'](_0x4ebc20['shift']());}catch(_0x5215cf){_0x4ebc20['push'](_0x4ebc20['shift']());}}}(a11_0x31d8,0x611ea));const fs=require('fs'),got=require(a11_0x1fec45(0x1e3)),{v4:uuidv4}=require(a11_0x1fec45(0x1c1)),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x1fec45(0x1b0)),{logger}=require(a11_0x1fec45(0x22d)),{getCloudProviderObject}=require(a11_0x1fec45(0x1b6)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x1fec45(0x1c2)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x1fec45(0x217)),{createK8sClient}=require(a11_0x1fec45(0x1f2)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x1fec45(0x212));function a11_0x2051(_0x102116,_0x132251){const _0x31d814=a11_0x31d8();return a11_0x2051=function(_0x205106,_0x4c676e){_0x205106=_0x205106-0x1af;let _0x26c25b=_0x31d814[_0x205106];return _0x26c25b;},a11_0x2051(_0x102116,_0x132251);}exports[a11_0x1fec45(0x1e2)]=a11_0x1fec45(0x228),exports[a11_0x1fec45(0x238)]=a11_0x1fec45(0x1ca),exports[a11_0x1fec45(0x215)]=function(_0x3a70ee){const _0x1d5e4b=a11_0x1fec45,_0x3ff045={};_0x3ff045[_0x1d5e4b(0x1d0)]=_0x1d5e4b(0x23c),_0x3ff045[_0x1d5e4b(0x22c)]='string',_0x3ff045['pMQLD']='Skip\x20insecure\x20cert\x20verification.',_0x3ff045['pArvh']=_0x1d5e4b(0x1c3),_0x3ff045[_0x1d5e4b(0x227)]='help';const _0x502a45=_0x3ff045,_0x4feb1a={};_0x4feb1a[_0x1d5e4b(0x200)]=_0x502a45[_0x1d5e4b(0x1d0)],_0x4feb1a[_0x1d5e4b(0x202)]=_0x502a45['NaZai'];const _0x2dcd8f={};_0x2dcd8f[_0x1d5e4b(0x200)]=_0x502a45[_0x1d5e4b(0x1f4)],_0x2dcd8f[_0x1d5e4b(0x202)]=_0x502a45[_0x1d5e4b(0x1e8)],_0x2dcd8f[_0x1d5e4b(0x224)]=![];const _0x12e923={};return _0x12e923[_0x1d5e4b(0x222)]=_0x4feb1a,_0x12e923[_0x1d5e4b(0x20d)]=_0x2dcd8f,_0x3a70ee[_0x1d5e4b(0x1d9)](HELP_HEADER_MESSAGE[_0x1d5e4b(0x1d4)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1d5e4b(0x21e)](_0x12e923)['help'](_0x502a45['ZPFBJ'])['argv'];},exports[a11_0x1fec45(0x1b2)]=async function(_0x1a5892){const _0x5086c8=a11_0x1fec45,_0x2df648={'gWFXh':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','ZyVPc':_0x5086c8(0x23c),'Ujbyy':'string','whqDB':_0x5086c8(0x1b4),'asbQD':_0x5086c8(0x1c3),'CAMWR':_0x5086c8(0x1b7),'aVEeU':_0x5086c8(0x244),'YqUew':_0x5086c8(0x213),'RyLuP':function(_0x375377,_0x48d5e4){return _0x375377===_0x48d5e4;},'cAWwY':_0x5086c8(0x1db),'tQABn':'iIuUf','Dcreo':function(_0x3ed916,_0x4722e0){return _0x3ed916===_0x4722e0;},'erYmM':_0x5086c8(0x1c5),'NNscn':function(_0x45d216){return _0x45d216();},'WOUZH':function(_0x75c09){return _0x75c09();},'GfWIu':_0x5086c8(0x21c),'yFYfF':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YxkvK':function(_0x1caea6,_0x250986,_0x5c577b,_0x5d72a3,_0x55ff02,_0xa411a0,_0x544804){return _0x1caea6(_0x250986,_0x5c577b,_0x5d72a3,_0x55ff02,_0xa411a0,_0x544804);},'itOwl':_0x5086c8(0x1c4),'cVaAm':_0x5086c8(0x1af),'mwJPF':function(_0x3864b3,_0x46316e,_0x515d87,_0x3332c5,_0x2e9398,_0x77d6fe,_0x497073){return _0x3864b3(_0x46316e,_0x515d87,_0x3332c5,_0x2e9398,_0x77d6fe,_0x497073);},'RZTLV':'oHAbt','fiipP':'jtCgm','hQmTn':function(_0x3df850){return _0x3df850();},'fPhyr':function(_0x1d2990,_0x4e7d10,_0x3c9157,_0xac6c1){return _0x1d2990(_0x4e7d10,_0x3c9157,_0xac6c1);},'feiFl':function(_0x24c7f9,_0x31df87){return _0x24c7f9===_0x31df87;},'mnLnD':'Browserstack','VdWtI':function(_0x54a531,_0x3b5135){return _0x54a531!==_0x3b5135;},'mGlZv':_0x5086c8(0x1cd),'JTVMT':function(_0xd6f622,_0x2f693e){return _0xd6f622(_0x2f693e);},'SBlka':function(_0x42e1e4,_0x3d15bd){return _0x42e1e4===_0x3d15bd;},'MxXAK':_0x5086c8(0x20a),'iCTgP':_0x5086c8(0x1d6),'uLKLT':_0x5086c8(0x22e),'SgVqq':_0x5086c8(0x1d2),'wvbQW':_0x5086c8(0x235),'HGyIM':_0x5086c8(0x243),'wdbbX':function(_0x36c7db,_0x34b78e){return _0x36c7db(_0x34b78e);},'QHsaM':function(_0x7c6572,_0x4dab35,_0x49e8bf){return _0x7c6572(_0x4dab35,_0x49e8bf);},'ZThcZ':function(_0x414d3f,_0x40c038,_0x46370d,_0x51143d,_0x32a7f7,_0x2c5af4){return _0x414d3f(_0x40c038,_0x46370d,_0x51143d,_0x32a7f7,_0x2c5af4);},'vFNek':_0x5086c8(0x241),'mdOOB':_0x5086c8(0x1b5),'HFMQF':_0x5086c8(0x1ed),'Mczbr':'DELETE','QMtiN':function(_0x48d7c9,_0x26abec,_0x47b069){return _0x48d7c9(_0x26abec,_0x47b069);},'kUwmx':function(_0x4586d4,_0x5c4c3c){return _0x4586d4!==_0x5c4c3c;},'AKZLW':function(_0x4d9a12,_0x15d2e0){return _0x4d9a12===_0x15d2e0;},'hynCV':_0x5086c8(0x1d7),'RDPhl':function(_0x59a397,_0xe26a8c){return _0x59a397===_0xe26a8c;},'sIftU':_0x5086c8(0x239),'abJYZ':_0x5086c8(0x1b1),'jbmoq':function(_0x1e0b27,_0x10141d){return _0x1e0b27===_0x10141d;},'OevRj':_0x5086c8(0x220),'PCivh':function(_0x3bdc96,_0x4fb092,_0x3fec6e,_0x37331e,_0x1632ec,_0x1d3ca1,_0x4cb8c0){return _0x3bdc96(_0x4fb092,_0x3fec6e,_0x37331e,_0x1632ec,_0x1d3ca1,_0x4cb8c0);},'KpfDC':function(_0x486a0c,_0x16959a,_0x346672,_0x43d30f,_0x1d829e,_0x5f41b6,_0x530946){return _0x486a0c(_0x16959a,_0x346672,_0x43d30f,_0x1d829e,_0x5f41b6,_0x530946);},'TxGIE':'unknown-error'};try{global_registry[_0x5086c8(0x206)]=_0x2df648[_0x5086c8(0x1f6)](uuidv4);!fs[_0x5086c8(0x1ec)](_0x2df648[_0x5086c8(0x204)](getCredentialsPath))&&(_0x2df648[_0x5086c8(0x240)](_0x2df648[_0x5086c8(0x218)],_0x2df648[_0x5086c8(0x218)])?(console[_0x5086c8(0x208)](_0x2df648['yFYfF']),await _0x2df648[_0x5086c8(0x1ce)](sendInstrumentationEvent,_0x1a5892,_0x2df648['itOwl'],messageTypes['ERROR'],_0x2df648['cVaAm'],null,_0x1a5892),process[_0x5086c8(0x216)](0x1)):_0x1ffae0['warn'](_0x2df648[_0x5086c8(0x23e)]));_0x2df648['mwJPF'](sendInstrumentationEvent,_0x1a5892,_0x2df648[_0x5086c8(0x229)],messageTypes['INFO'],null,null,_0x1a5892);!_0x1a5892[_0x5086c8(0x1da)]&&(_0x2df648[_0x5086c8(0x240)](_0x2df648[_0x5086c8(0x21a)],_0x2df648[_0x5086c8(0x1e7)])?_0x91d425[_0x5086c8(0x236)]('Namespace:\x20'+_0x399193+_0x5086c8(0x223)):(console[_0x5086c8(0x208)](_0x2df648[_0x5086c8(0x21d)]),process[_0x5086c8(0x216)](0x1)));const _0xa145a0=JSON[_0x5086c8(0x237)](fs['readFileSync'](_0x2df648[_0x5086c8(0x1d3)](getCredentialsPath))),[_0xd8c6c2,_0x2503c8]=await _0x2df648[_0x5086c8(0x1e5)](getGridDetails,_0xa145a0[_0x5086c8(0x245)][_0x5086c8(0x1bf)],_0xa145a0['Browserstack'][_0x5086c8(0x20b)],_0x1a5892[_0x5086c8(0x1da)]);if(_0x2503c8){const _0x1d7956=_0x2503c8['info'];let _0x509175=_0x5086c8(0x248)+_0x1d7956[_0x5086c8(0x20e)]+_0x5086c8(0x1c8)+_0x1d7956['id']+_0x5086c8(0x1b3);if(_0x2503c8[_0x5086c8(0x23d)]&&_0x2df648[_0x5086c8(0x1df)](_0x2503c8['clusterSpawnedVia'],_0x2df648[_0x5086c8(0x1f1)])){if(_0x2df648[_0x5086c8(0x1f3)](_0x2df648[_0x5086c8(0x1e1)],_0x2df648[_0x5086c8(0x1e1)])){const _0x2b2fd3={};_0x2b2fd3[_0x5086c8(0x200)]=_0x2df648['ZyVPc'],_0x2b2fd3['type']=_0x2df648[_0x5086c8(0x23f)];const _0x1eba24={};_0x1eba24[_0x5086c8(0x200)]=_0x2df648[_0x5086c8(0x22f)],_0x1eba24[_0x5086c8(0x202)]=_0x2df648[_0x5086c8(0x21f)],_0x1eba24[_0x5086c8(0x224)]=![];const _0x3b2791={};return _0x3b2791[_0x5086c8(0x222)]=_0x2b2fd3,_0x3b2791['skip-tls-cert-verify']=_0x1eba24,_0x337f55['usage'](_0x2c856c[_0x5086c8(0x1d4)])[_0x5086c8(0x1d5)](_0x476c7d)[_0x5086c8(0x21e)](_0x3b2791)[_0x5086c8(0x1b7)](_0x2df648[_0x5086c8(0x1be)])[_0x5086c8(0x234)];}else _0x509175=_0x5086c8(0x248)+_0x1d7956['name']+_0x5086c8(0x1c8)+_0x1d7956['id']+_0x5086c8(0x1bb)+_0x1d7956['clusterName']+'\x22\x20with\x20ID\x20'+_0x1d7956[_0x5086c8(0x1d1)]+_0x5086c8(0x1b3);}const _0x1c5322=await _0x2df648['JTVMT'](inputConfirmation,_0x509175);(_0x2df648[_0x5086c8(0x1df)](_0x1c5322,undefined)||_0x2df648['SBlka'](_0x1c5322,null)||!(_0x2df648[_0x5086c8(0x1df)](_0x1c5322[_0x5086c8(0x1b8)](),'y')||_0x2df648[_0x5086c8(0x1ee)](_0x1c5322[_0x5086c8(0x1b8)](),'n')))&&(_0x2df648['VdWtI'](_0x2df648['MxXAK'],_0x2df648[_0x5086c8(0x214)])?(_0x4c3cbb[_0x5086c8(0x236)](_0x2df648[_0x5086c8(0x219)]),_0x38f257['exit'](0x0)):(console['error'](_0x2df648['iCTgP']),await _0x2df648[_0x5086c8(0x1ce)](sendInstrumentationEvent,_0x1a5892,_0x2df648[_0x5086c8(0x229)],messageTypes['ERROR'],_0x2df648[_0x5086c8(0x205)],null,_0x1a5892),process['exit'](0x1)));_0x2df648[_0x5086c8(0x1ee)](_0x1c5322[_0x5086c8(0x1b8)](),'n')&&(_0x2df648['RyLuP'](_0x2df648[_0x5086c8(0x225)],_0x2df648[_0x5086c8(0x225)])?process[_0x5086c8(0x216)](0x0):_0x4395ab[_0x5086c8(0x216)](0x0));const _0x2c0880=WS_ENDPOINT['replace'](_0x2df648[_0x5086c8(0x22b)],_0xa145a0[_0x5086c8(0x245)][_0x5086c8(0x1bf)])['replace'](_0x2df648['HGyIM'],_0xa145a0[_0x5086c8(0x245)][_0x5086c8(0x20b)]),_0x72738b={};_0x72738b[_0x5086c8(0x247)]=ws,_0x72738b[_0x5086c8(0x1e6)]=0x36ee80;const _0x1beb06=new ReconnectingWebSocket(_0x2c0880,[],_0x72738b);global_registry[_0x5086c8(0x1de)]=_0x1d7956[_0x5086c8(0x1f0)];const _0x5ae1ef=_0x1d7956['cloudProvider'],_0xe834e6=await _0x2df648[_0x5086c8(0x1ce)](getCloudProviderObject,_0x5ae1ef,_0x1d7956[_0x5086c8(0x23a)],_0x1d7956[_0x5086c8(0x20e)],_0x1beb06,webSocketUtils,_0x1a5892),_0x21fc93=await _0xe834e6[_0x5086c8(0x20f)]();if(_0x21fc93){const _0x4d2c80=_0x2df648[_0x5086c8(0x1eb)](kebabCase,_0x1d7956[_0x5086c8(0x20e)]),[_0x98ade5,_0x445525,_0x1aa7f7,_0xea6d3f,_0x2b61d7,_0x4b416b]=await _0x2df648[_0x5086c8(0x209)](createK8sClient,_0xe834e6,_0x1a5892[_0x5086c8(0x20c)]);let _0x17cc6e=!![];const _0x562b76={};_0x562b76[_0x5086c8(0x20e)]=_0x4d2c80,await _0x98ade5[_0x5086c8(0x246)](_0x562b76)[_0x5086c8(0x1ea)](_0x2c4054=>{const _0x302175=_0x5086c8;_0x2df648[_0x302175(0x21b)](_0x2df648[_0x302175(0x226)],_0x2df648[_0x302175(0x1dc)])?(_0x2112df[_0x302175(0x208)](_0x2df648['YqUew']),_0x2f8cad[_0x302175(0x216)](0x1)):logger[_0x302175(0x236)]('Namespace:\x20'+_0x4d2c80+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion');})['catch'](_0x53547b=>{const _0x3f6984=_0x5086c8;_0x2df648[_0x3f6984(0x240)](_0x2df648[_0x3f6984(0x203)],_0x2df648[_0x3f6984(0x203)])?(logger[_0x3f6984(0x1fc)](_0x3f6984(0x232)+_0x4d2c80+_0x3f6984(0x1ba)),_0x17cc6e=![]):_0x4b37bd=_0x3f6984(0x248)+_0x46a632['name']+_0x3f6984(0x1c8)+_0x5b54a4['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x2bb002[_0x3f6984(0x23a)]+_0x3f6984(0x1b9)+_0x5308ac[_0x3f6984(0x1d1)]+_0x3f6984(0x1b3);});if(_0x17cc6e){await _0x2df648[_0x5086c8(0x1bd)](removeGridComponents,_0x98ade5,_0x445525,_0x1aa7f7,_0xea6d3f,_0x4d2c80);if(_0x2503c8[_0x5086c8(0x23d)]){const _0x27d8eb=await _0xe834e6[_0x5086c8(0x1e4)]();_0x27d8eb?_0x2df648[_0x5086c8(0x21b)](_0x2df648['vFNek'],_0x2df648[_0x5086c8(0x1cb)])?await _0xe834e6['deleteCluster'](_0x98ade5,_0x1d7956[_0x5086c8(0x1f0)]):_0x54960d['warn']('Cluster:\x20'+_0x3d02d6[_0x5086c8(0x23a)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):_0x2df648[_0x5086c8(0x1df)](_0x2df648[_0x5086c8(0x233)],_0x2df648['HFMQF'])?(_0x56aa17['warn'](_0x5086c8(0x232)+_0x4835ed+_0x5086c8(0x1ba)),_0x215bd4=![]):logger[_0x5086c8(0x1fc)](_0x5086c8(0x1ef)+_0x1d7956['clusterName']+_0x5086c8(0x1c6));}}}else logger[_0x5086c8(0x1fc)](_0x2df648[_0x5086c8(0x23e)]);const _0x1b1098=_0x5086c8(0x1cc)+AG_API_URL+_0x5086c8(0x221)+_0x1a5892[_0x5086c8(0x1da)],_0x3c426a={'method':_0x2df648[_0x5086c8(0x207)],'headers':_0x2df648[_0x5086c8(0x209)](getAuthHeader,_0xa145a0[_0x5086c8(0x245)]['username'],_0xa145a0[_0x5086c8(0x245)][_0x5086c8(0x20b)]),'throwHttpErrors':![]},_0x447195=await _0x2df648[_0x5086c8(0x1f5)](got,_0x1b1098,_0x3c426a);_0x2df648['kUwmx'](_0x447195,null)&&_0x2df648[_0x5086c8(0x1f3)](_0x447195,undefined)&&_0x2df648[_0x5086c8(0x230)](_0x447195[_0x5086c8(0x23b)],0xc8)&&(logger[_0x5086c8(0x236)](_0x2df648[_0x5086c8(0x219)]),process[_0x5086c8(0x216)](0x0)),logger[_0x5086c8(0x208)](_0x5086c8(0x1bc)+_0x447195[_0x5086c8(0x1fb)]),await _0x2df648[_0x5086c8(0x1ce)](sendInstrumentationEvent,_0x1a5892,_0x2df648['itOwl'],messageTypes[_0x5086c8(0x242)],_0x2df648['hynCV'],_0xd8c6c2,_0x1a5892),process[_0x5086c8(0x216)](0x1);}_0x2df648['RDPhl'](_0xd8c6c2['statusCode'],0x191)&&(logger['error'](_0x2df648[_0x5086c8(0x1d8)]),await _0x2df648['YxkvK'](sendInstrumentationEvent,_0x1a5892,_0x2df648[_0x5086c8(0x229)],messageTypes[_0x5086c8(0x242)],_0x2df648[_0x5086c8(0x231)],null,_0x1a5892),process[_0x5086c8(0x216)](0x1)),_0x2df648[_0x5086c8(0x1c7)](_0xd8c6c2[_0x5086c8(0x23b)],0x190)&&(logger[_0x5086c8(0x208)](JSON['parse'](_0xd8c6c2['body'])[_0x5086c8(0x210)]),await _0x2df648[_0x5086c8(0x1ce)](sendInstrumentationEvent,_0x1a5892,_0x2df648[_0x5086c8(0x229)],messageTypes[_0x5086c8(0x242)],_0x2df648['OevRj'],null,_0x1a5892),process['exit'](0x1)),logger[_0x5086c8(0x208)](_0x5086c8(0x1f7)+JSON['stringify'](_0xd8c6c2)),await _0x2df648[_0x5086c8(0x1c9)](sendInstrumentationEvent,_0x1a5892,_0x2df648['itOwl'],messageTypes[_0x5086c8(0x242)],_0x2df648[_0x5086c8(0x1f9)],_0xd8c6c2,_0x1a5892),process['exit'](0x1);}catch(_0xc4e810){logger['error'](_0x5086c8(0x1ff)+_0xc4e810[_0x5086c8(0x1fe)]),await _0x2df648['KpfDC'](sendInstrumentationEvent,_0x1a5892,_0x2df648[_0x5086c8(0x229)],messageTypes[_0x5086c8(0x242)],_0x2df648[_0x5086c8(0x1cf)],_0xc4e810,_0x1a5892),process['exit'](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0x2406(){const _0x48eb79=['JWDaG','../utils/utilityMethods','KnrIH','got','NIJjT','npimJ','argv','gbizA','239111Rdygin','xYopY','string','GihIR','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','SwLOo','POSIb','SZglL','Browserstack','bAhcv','bstackUsername','tWSvF','type','../utils/userInput','bstackAccesskey','bXmPj','password','kswOS','mjkkx','help','handler','builder','djSyi','jeZwL','BxiEp','bstack-username','strict','1739403IUntpz','702228RjWVZa','12DybnAZ','HTCTV','bstack-accesskey','writeFileSync','jirqs','readFileSync','NMluL','stpUm','env','https://','OJdKt','XFrxg','utf-8','LkMvS','30FiVurX','description','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','rhgzx','eaMSF','../utils/instrumentationUtils','mkdirSync','BROWSERSTACK_USERNAME','PGdHe','yFoar','options','6252328nwDZhb','parse','ULAwI','vqxiZ','epilogue','YRMmj','exit','../config/constants','jUMaz','stack','init-called','stringify','WodSF','recommendCommands','username','fjfzL','nOCQg','MtagC','emLUm','1584114WcfUvU','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','YKywv','vNmFE','HxnMA','debug','ERROR','MgQJV','command','existsSync','vTWck','PtROi','20NtGfYz','error','462634DnWbSD','wrong-creds','jPprR','unknown-error','iAsGv','HIyrm','6334167GaDhYb','eeRMD','usage'];a12_0x2406=function(){return _0x48eb79;};return a12_0x2406();}const a12_0x5bd0c9=a12_0x31c4;(function(_0x4463f2,_0x4e704f){const _0x31ea1e=a12_0x31c4,_0x1eec1e=_0x4463f2();while(!![]){try{const _0x541310=-parseInt(_0x31ea1e(0x80))/0x1+-parseInt(_0x31ea1e(0x6f))/0x2*(-parseInt(_0x31ea1e(0x9d))/0x3)+-parseInt(_0x31ea1e(0x9c))/0x4+-parseInt(_0x31ea1e(0x6d))/0x5*(parseInt(_0x31ea1e(0xc9))/0x6)+parseInt(_0x31ea1e(0x75))/0x7+parseInt(_0x31ea1e(0xb6))/0x8+parseInt(_0x31ea1e(0x9b))/0x9*(-parseInt(_0x31ea1e(0xab))/0xa);if(_0x541310===_0x4e704f)break;else _0x1eec1e['push'](_0x1eec1e['shift']());}catch(_0x48f388){_0x1eec1e['push'](_0x1eec1e['shift']());}}}(a12_0x2406,0x88ff9));const fs=require('fs'),util=require('util'),got=require(a12_0x5bd0c9(0x7b)),{v4:uuidv4}=require('uuid'),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x5bd0c9(0x8d)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x5bd0c9(0xbd)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x5bd0c9(0x79)),{sendInstrumentationEvent}=require(a12_0x5bd0c9(0xb0));function a12_0x31c4(_0x53b065,_0x1d5682){const _0x240663=a12_0x2406();return a12_0x31c4=function(_0x31c43a,_0x27eef2){_0x31c43a=_0x31c43a-0x6c;let _0x2e4199=_0x240663[_0x31c43a];return _0x2e4199;},a12_0x31c4(_0x53b065,_0x1d5682);}exports[a12_0x5bd0c9(0xd1)]='init',exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x5bd0c9(0x95)]=function(_0x26285f){const _0x2274f7=a12_0x5bd0c9,_0x28a5ac={};_0x28a5ac[_0x2274f7(0x92)]=_0x2274f7(0x84),_0x28a5ac[_0x2274f7(0xa1)]=_0x2274f7(0x82),_0x28a5ac['XFrxg']=_0x2274f7(0xca),_0x28a5ac[_0x2274f7(0x7f)]=_0x2274f7(0x93);const _0x4491b0=_0x28a5ac,_0x538426={};_0x538426[_0x2274f7(0xac)]=_0x4491b0[_0x2274f7(0x92)],_0x538426[_0x2274f7(0x8c)]=_0x4491b0[_0x2274f7(0xa1)];const _0x297400={};_0x297400[_0x2274f7(0xac)]=_0x4491b0[_0x2274f7(0xa8)],_0x297400['type']=_0x4491b0[_0x2274f7(0xa1)];const _0x5ef9f2={};return _0x5ef9f2[_0x2274f7(0x99)]=_0x538426,_0x5ef9f2[_0x2274f7(0x9f)]=_0x297400,_0x26285f['usage'](HELP_HEADER_MESSAGE['init'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2274f7(0xb5)](_0x5ef9f2)[_0x2274f7(0xc3)]()[_0x2274f7(0x9a)]()[_0x2274f7(0x93)](_0x4491b0[_0x2274f7(0x7f)])[_0x2274f7(0x7e)];},exports[a12_0x5bd0c9(0x94)]=async function(_0x18410a){const _0x4c6fd0=a12_0x5bd0c9,_0x5bccae={'jPprR':_0x4c6fd0(0xa9),'xYopY':function(_0x1c0b17){return _0x1c0b17();},'jeZwL':_0x4c6fd0(0x84),'rhgzx':_0x4c6fd0(0x82),'NIJjT':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','GihIR':_0x4c6fd0(0x93),'eaMSF':function(_0x320c52,_0x3cda1e,_0x412b6d,_0x2ff8b8,_0x51687a,_0x50d00d,_0x5242ae){return _0x320c52(_0x3cda1e,_0x412b6d,_0x2ff8b8,_0x51687a,_0x50d00d,_0x5242ae);},'npimJ':_0x4c6fd0(0xc0),'vNmFE':function(_0x4836a4,_0x523049){return _0x4836a4===_0x523049;},'DteLY':_0x4c6fd0(0xa4),'xsqhh':_0x4c6fd0(0x98),'SZglL':function(_0x4615f7,_0x4ed68c){return _0x4615f7!==_0x4ed68c;},'vqxiZ':_0x4c6fd0(0xc6),'PGdHe':function(_0x59111b,_0x429c43){return _0x59111b!==_0x429c43;},'bAhcv':_0x4c6fd0(0x76),'OJdKt':function(_0x1aef36,_0x2ca2e6){return _0x1aef36===_0x2ca2e6;},'IRNQt':_0x4c6fd0(0xc7),'HTCTV':_0x4c6fd0(0x96),'SwLOo':function(_0x237fdc,_0x5be26b){return _0x237fdc===_0x5be26b;},'JWDaG':_0x4c6fd0(0x8b),'jUMaz':function(_0x15d2c4,_0x32c390){return _0x15d2c4===_0x32c390;},'MgQJV':function(_0x25bb50,_0x4a2cc7){return _0x25bb50===_0x4a2cc7;},'HIyrm':_0x4c6fd0(0xd3),'iAsGv':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','WodSF':function(_0x1c59ea){return _0x1c59ea();},'HxnMA':'GET','emLUm':function(_0x26babf,_0x48ea2a,_0xbc0d76){return _0x26babf(_0x48ea2a,_0xbc0d76);},'ULAwI':function(_0x485ada,_0x3789e8,_0x560a25){return _0x485ada(_0x3789e8,_0x560a25);},'IRYCa':function(_0x584f53,_0x4bb81e){return _0x584f53===_0x4bb81e;},'kswOS':function(_0x5350e4,_0x776b1a){return _0x5350e4===_0x776b1a;},'iwScy':'WtZNH','aLCXA':_0x4c6fd0(0xb4),'YKywv':'NDWlU','fjfzL':_0x4c6fd0(0x8f),'LkMvS':function(_0x4e7606){return _0x4e7606();},'KnrIH':_0x4c6fd0(0x86),'JJBbv':_0x4c6fd0(0xa3),'YRMmj':_0x4c6fd0(0xad),'PtROi':_0x4c6fd0(0x70),'TddGj':_0x4c6fd0(0x72)};try{global_registry['requestId']=_0x5bccae['xYopY'](uuidv4),_0x5bccae[_0x4c6fd0(0xaf)](sendInstrumentationEvent,_0x18410a,_0x5bccae[_0x4c6fd0(0x7d)],messageTypes['INFO'],null,null,_0x18410a);const _0x337240=_0x5bccae[_0x4c6fd0(0x81)](getDirForConfig);!fs[_0x4c6fd0(0xd2)](_0x337240)&&(_0x5bccae['vNmFE'](_0x5bccae['DteLY'],_0x5bccae['xsqhh'])?_0x305e48=!![]:fs['mkdirSync'](_0x337240));let _0x347a68,_0x1b7ef4;process[_0x4c6fd0(0xa5)][_0x4c6fd0(0xb2)]&&(_0x5bccae[_0x4c6fd0(0x87)](_0x5bccae[_0x4c6fd0(0xb9)],_0x5bccae[_0x4c6fd0(0xb9)])?_0x469cc5=_0x171d31[_0x4c6fd0(0xa5)]['BROWSERSTACK_ACCESS_KEY']:_0x347a68=process[_0x4c6fd0(0xa5)][_0x4c6fd0(0xb2)]);process[_0x4c6fd0(0xa5)]['BROWSERSTACK_ACCESS_KEY']&&(_0x5bccae[_0x4c6fd0(0xb3)](_0x5bccae[_0x4c6fd0(0x89)],_0x5bccae[_0x4c6fd0(0x89)])?_0x5b57c5=_0x33edfb[_0x4c6fd0(0x8a)]:_0x1b7ef4=process['env']['BROWSERSTACK_ACCESS_KEY']);_0x18410a['bstackUsername']&&(_0x5bccae[_0x4c6fd0(0xa7)](_0x5bccae['IRNQt'],_0x5bccae[_0x4c6fd0(0x9e)])?_0x60b7b3=_0x72406f['env']['BROWSERSTACK_USERNAME']:_0x347a68=_0x18410a[_0x4c6fd0(0x8a)]);_0x18410a[_0x4c6fd0(0x8e)]&&(_0x5bccae[_0x4c6fd0(0x85)](_0x5bccae[_0x4c6fd0(0x78)],_0x5bccae[_0x4c6fd0(0x78)])?_0x1b7ef4=_0x18410a[_0x4c6fd0(0x8e)]:_0x4c9281=_0x5ca450[_0x4c6fd0(0xb7)](_0x218ff9[_0x4c6fd0(0xa2)](_0x539067,_0x5bccae[_0x4c6fd0(0x71)])));if(_0x5bccae[_0x4c6fd0(0xbe)](_0x347a68,undefined)||_0x5bccae[_0x4c6fd0(0xd0)](_0x1b7ef4,undefined)){if(_0x5bccae[_0x4c6fd0(0xcc)](_0x5bccae[_0x4c6fd0(0x74)],_0x5bccae[_0x4c6fd0(0x74)])){logger[_0x4c6fd0(0xce)](_0x5bccae[_0x4c6fd0(0x73)]);const [_0x2d0661,_0x490000]=await _0x5bccae[_0x4c6fd0(0xc2)](inputBstackKeys);_0x347a68=_0x2d0661,_0x1b7ef4=_0x490000;}else _0x38e967=_0x11aa08[_0x4c6fd0(0x8e)];}let _0x4f2972=![];const _0x4820bc=_0x4c6fd0(0xa6)+_0x347a68+':'+_0x1b7ef4+'@'+BS_API_URL+'/automate/plan.json',_0x4122c3={'method':_0x5bccae[_0x4c6fd0(0xcd)],'headers':_0x5bccae[_0x4c6fd0(0xc8)](getAuthHeader,_0x347a68,_0x1b7ef4),'throwHttpErrors':![]},_0x21dcdb=await _0x5bccae[_0x4c6fd0(0xb8)](got,_0x4820bc,_0x4122c3);_0x5bccae['SZglL'](_0x21dcdb,null)&&_0x5bccae[_0x4c6fd0(0xb3)](_0x21dcdb,undefined)&&_0x5bccae['IRYCa'](_0x21dcdb['statusCode'],0xc8)&&(_0x5bccae[_0x4c6fd0(0x91)](_0x5bccae['iwScy'],_0x5bccae['aLCXA'])?_0x5052a7[_0x4c6fd0(0xb1)](_0x3f0b3f):_0x4f2972=!![]);if(_0x4f2972){if(_0x5bccae[_0x4c6fd0(0xb3)](_0x5bccae[_0x4c6fd0(0xcb)],_0x5bccae[_0x4c6fd0(0xc5)])){let _0x557f9b={};const _0x46bb7b=_0x5bccae[_0x4c6fd0(0xaa)](getCredentialsPath);if(fs[_0x4c6fd0(0xd2)](_0x46bb7b)){if(_0x5bccae['SZglL'](_0x5bccae[_0x4c6fd0(0x7a)],_0x5bccae['JJBbv']))_0x557f9b=JSON[_0x4c6fd0(0xb7)](fs[_0x4c6fd0(0xa2)](_0x46bb7b,_0x5bccae[_0x4c6fd0(0x71)]));else{let _0x18bd6f={};const _0x201fa8=_0x5bccae['xYopY'](_0x4d5e96);_0x7dd3cf['existsSync'](_0x201fa8)&&(_0x18bd6f=_0x5262cf[_0x4c6fd0(0xb7)](_0x266303[_0x4c6fd0(0xa2)](_0x201fa8,_0x5bccae[_0x4c6fd0(0x71)])));const _0xc30d8={};_0xc30d8[_0x4c6fd0(0xc4)]=_0x9872f8,_0xc30d8[_0x4c6fd0(0x90)]=_0x5ad348,_0x18bd6f[_0x4c6fd0(0x88)]=_0xc30d8,_0xfdf0b9['writeFileSync'](_0x201fa8,_0x44c9e7[_0x4c6fd0(0xc1)](_0x18bd6f)),_0x2f1a03[_0x4c6fd0(0xbc)](0x0);}}const _0x374ffa={};_0x374ffa[_0x4c6fd0(0xc4)]=_0x347a68,_0x374ffa[_0x4c6fd0(0x90)]=_0x1b7ef4,_0x557f9b[_0x4c6fd0(0x88)]=_0x374ffa,fs[_0x4c6fd0(0xa0)](_0x46bb7b,JSON[_0x4c6fd0(0xc1)](_0x557f9b)),process[_0x4c6fd0(0xbc)](0x0);}else{const _0x1a63c8={};_0x1a63c8[_0x4c6fd0(0xac)]=_0x5bccae[_0x4c6fd0(0x97)],_0x1a63c8[_0x4c6fd0(0x8c)]=_0x5bccae[_0x4c6fd0(0xae)];const _0x38cdc6={};_0x38cdc6['description']=_0x5bccae[_0x4c6fd0(0x7c)],_0x38cdc6[_0x4c6fd0(0x8c)]=_0x5bccae[_0x4c6fd0(0xae)];const _0x474e71={};return _0x474e71[_0x4c6fd0(0x99)]=_0x1a63c8,_0x474e71[_0x4c6fd0(0x9f)]=_0x38cdc6,_0x3380f3[_0x4c6fd0(0x77)](_0x226888['init'])[_0x4c6fd0(0xba)](_0xf26654)[_0x4c6fd0(0xb5)](_0x474e71)[_0x4c6fd0(0xc3)]()[_0x4c6fd0(0x9a)]()[_0x4c6fd0(0x93)](_0x5bccae[_0x4c6fd0(0x83)])['argv'];}}else logger[_0x4c6fd0(0x6e)](_0x5bccae[_0x4c6fd0(0xbb)]),await _0x5bccae[_0x4c6fd0(0xaf)](sendInstrumentationEvent,_0x18410a,_0x5bccae['npimJ'],messageTypes[_0x4c6fd0(0xcf)],_0x5bccae[_0x4c6fd0(0x6c)],null,_0x18410a),process[_0x4c6fd0(0xbc)](0x1);}catch(_0x479781){logger[_0x4c6fd0(0x6e)](_0x479781[_0x4c6fd0(0xbf)]),await _0x5bccae[_0x4c6fd0(0xaf)](sendInstrumentationEvent,_0x18410a,_0x5bccae[_0x4c6fd0(0x7d)],messageTypes[_0x4c6fd0(0xcf)],_0x5bccae['TddGj'],_0x479781,_0x18410a),process[_0x4c6fd0(0xbc)](0x1);}};
|
|
1
|
+
const a12_0x170515=a12_0x26f5;function a12_0x26f5(_0x47e0d2,_0x4fdc57){const _0xa4321a=a12_0xa432();return a12_0x26f5=function(_0x26f58a,_0x45a05f){_0x26f58a=_0x26f58a-0xe7;let _0x1b4d44=_0xa4321a[_0x26f58a];return _0x1b4d44;},a12_0x26f5(_0x47e0d2,_0x4fdc57);}(function(_0x27f9d9,_0x1e99af){const _0x432315=a12_0x26f5,_0x7a1cb8=_0x27f9d9();while(!![]){try{const _0x5d128f=-parseInt(_0x432315(0x134))/0x1*(parseInt(_0x432315(0x156))/0x2)+-parseInt(_0x432315(0x109))/0x3+-parseInt(_0x432315(0x11c))/0x4*(parseInt(_0x432315(0x131))/0x5)+parseInt(_0x432315(0x136))/0x6*(-parseInt(_0x432315(0xff))/0x7)+parseInt(_0x432315(0x111))/0x8*(parseInt(_0x432315(0x106))/0x9)+-parseInt(_0x432315(0x13f))/0xa+parseInt(_0x432315(0x127))/0xb;if(_0x5d128f===_0x1e99af)break;else _0x7a1cb8['push'](_0x7a1cb8['shift']());}catch(_0x32b36b){_0x7a1cb8['push'](_0x7a1cb8['shift']());}}}(a12_0xa432,0xcb377));const fs=require('fs'),util=require('util'),got=require(a12_0x170515(0x149)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x170515(0x12d)),{inputBstackKeys}=require(a12_0x170515(0x105)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x170515(0x154)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x170515(0x11d));function a12_0xa432(){const _0x247f1d=['tosBp','toOKB','debug','exit','BROWSERSTACK_ACCESS_KEY','parse','username','REBEx','eWDyR','usage','bSyqa','cCDvu','stack','ZSeUu','epilogue','KyjQo','password','RSKnG','35DcfUCL','stringify','string','strict','argv','KvaEu','../utils/userInput','63oIZkLF','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','rVBnV','3799038LfQydx','requestId','pGRvD','mkdirSync','eEgLJ','aNGOa','type','command','227296ZphDKM','Wokab','description','raTwB','error','jsuel','env','RFjvZ','LNnlN','XUaJc','weHzN','36GrMqny','../utils/instrumentationUtils','statusCode','RvKEF','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','qrowP','options','YfDQV','readFileSync','zcOWX','CMeAr','65450495NaguCn','udiJE','WcrdY','existsSync','mIrlP','writeFileSync','../config/logger','Browserstack','wlrhE','QKZNH','855405SrzrAL','wrong-creds','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','18573zVXqhH','QEXDz','1227300JHlUKr','QYHYY','gISiJ','bstackAccesskey','BROWSERSTACK_USERNAME','nCKjw','FaBTn','uWiyw','bstack-accesskey','10791230przJrw','bstackUsername','Idchw','init','https://','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','desc','qjeVB','help','OjWTz','got','init-called','XHeUM','mNYSc','LBgeM','builder','WQHlU','EpBpa','/automate/plan.json','rswFE','eaxER','../config/constants','recommendCommands','44wKOnFm','sECdt','ERROR','GET','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','bstack-username','handler'];a12_0xa432=function(){return _0x247f1d;};return a12_0xa432();}exports[a12_0x170515(0x110)]=a12_0x170515(0x142),exports[a12_0x170515(0x145)]=a12_0x170515(0xea),exports[a12_0x170515(0x14e)]=function(_0x86f3ac){const _0x5874c4=a12_0x170515,_0x10cbd3={};_0x10cbd3[_0x5874c4(0x152)]=_0x5874c4(0x133),_0x10cbd3[_0x5874c4(0x12b)]=_0x5874c4(0x101),_0x10cbd3[_0x5874c4(0x121)]=_0x5874c4(0x107),_0x10cbd3['eWDyR']=_0x5874c4(0x147);const _0x2c75fe=_0x10cbd3,_0x47878c={};_0x47878c[_0x5874c4(0x113)]=_0x2c75fe[_0x5874c4(0x152)],_0x47878c[_0x5874c4(0x10f)]=_0x2c75fe['mIrlP'];const _0x4d04c6={};_0x4d04c6[_0x5874c4(0x113)]=_0x2c75fe['qrowP'],_0x4d04c6[_0x5874c4(0x10f)]=_0x2c75fe['mIrlP'];const _0x5104d5={};return _0x5104d5['bstack-username']=_0x47878c,_0x5104d5[_0x5874c4(0x13e)]=_0x4d04c6,_0x86f3ac[_0x5874c4(0xf6)](HELP_HEADER_MESSAGE[_0x5874c4(0x142)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5874c4(0x122)](_0x5104d5)[_0x5874c4(0x155)]()[_0x5874c4(0x102)]()[_0x5874c4(0x147)](_0x2c75fe[_0x5874c4(0xf5)])['argv'];},exports[a12_0x170515(0xec)]=async function(_0x513789){const _0x3aebac=a12_0x170515,_0x43456b={'FaBTn':'utf-8','udiJE':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','XHeUM':_0x3aebac(0x101),'YGgYM':_0x3aebac(0x107),'Wokab':'help','gISiJ':function(_0x51c1c9){return _0x51c1c9();},'OjWTz':function(_0x438c98,_0x57f384,_0x2a7c33,_0x11ab9c,_0x459c59,_0x4bf4ce,_0x55a81b){return _0x438c98(_0x57f384,_0x2a7c33,_0x11ab9c,_0x459c59,_0x4bf4ce,_0x55a81b);},'tosBp':_0x3aebac(0x14a),'cCDvu':function(_0x2f8676,_0x232145){return _0x2f8676===_0x232145;},'zcOWX':'BlnNV','QKZNH':_0x3aebac(0xfa),'YfDQV':function(_0x1a37e0,_0x2e409e){return _0x1a37e0!==_0x2e409e;},'LNnlN':_0x3aebac(0x11a),'uFEnv':_0x3aebac(0x14c),'bSyqa':function(_0x5ef4d9,_0x46487c){return _0x5ef4d9!==_0x46487c;},'aNGOa':'qorzT','weHzN':_0x3aebac(0x11f),'QEXDz':'HEzZb','Idchw':_0x3aebac(0x14f),'KyjQo':_0x3aebac(0xe7),'REBEx':function(_0x408223,_0x30ac30){return _0x408223===_0x30ac30;},'eEgLJ':function(_0x1615a8,_0x5b131f){return _0x1615a8!==_0x5b131f;},'RFjvZ':_0x3aebac(0x10b),'uWiyw':'iDwoX','raTwB':_0x3aebac(0x144),'EpBpa':function(_0x439810){return _0x439810();},'NhJay':_0x3aebac(0xe9),'toOKB':function(_0x429362,_0x47d551,_0x129d4c){return _0x429362(_0x47d551,_0x129d4c);},'rVBnV':function(_0x3894a6,_0x3cd4b7){return _0x3894a6!==_0x3cd4b7;},'jsuel':_0x3aebac(0x153),'zwhdD':'ccUTP','wlrhE':function(_0x38397f,_0x41418c){return _0x38397f===_0x41418c;},'nCKjw':_0x3aebac(0x146),'CMeAr':function(_0x47b576,_0x267a70){return _0x47b576===_0x267a70;},'QYHYY':_0x3aebac(0x14d),'KvaEu':_0x3aebac(0x120),'GzKLD':function(_0x38b044,_0xfdf6e,_0x355978,_0x27e659,_0xc20cc5,_0x1f6671,_0x24a207){return _0x38b044(_0xfdf6e,_0x355978,_0x27e659,_0xc20cc5,_0x1f6671,_0x24a207);},'WcrdY':_0x3aebac(0x132),'RSKnG':'unknown-error'};try{global_registry[_0x3aebac(0x10a)]=_0x43456b[_0x3aebac(0x138)](uuidv4),_0x43456b[_0x3aebac(0x148)](sendInstrumentationEvent,_0x513789,_0x43456b[_0x3aebac(0xed)],messageTypes['INFO'],null,null,_0x513789);const _0x652139=_0x43456b[_0x3aebac(0x138)](getDirForConfig);!fs[_0x3aebac(0x12a)](_0x652139)&&(_0x43456b['cCDvu'](_0x43456b[_0x3aebac(0x125)],_0x43456b[_0x3aebac(0x130)])?_0x36b473=_0x1d1ada[_0x3aebac(0xf2)](_0x20ca14['readFileSync'](_0x582d9b,_0x43456b[_0x3aebac(0x13c)])):fs[_0x3aebac(0x10c)](_0x652139));let _0x52c5cf,_0x1ffe50;process[_0x3aebac(0x117)][_0x3aebac(0x13a)]&&(_0x43456b[_0x3aebac(0x123)](_0x43456b[_0x3aebac(0x119)],_0x43456b['uFEnv'])?_0x52c5cf=process[_0x3aebac(0x117)]['BROWSERSTACK_USERNAME']:_0x3d8921[_0x3aebac(0x10c)](_0x100aa3));if(process[_0x3aebac(0x117)][_0x3aebac(0xf1)]){if(_0x43456b[_0x3aebac(0xf7)](_0x43456b[_0x3aebac(0x10e)],_0x43456b[_0x3aebac(0x11b)]))_0x1ffe50=process[_0x3aebac(0x117)]['BROWSERSTACK_ACCESS_KEY'];else{const _0x13f18f={};_0x13f18f[_0x3aebac(0x113)]=_0x43456b[_0x3aebac(0x128)],_0x13f18f['type']=_0x43456b[_0x3aebac(0x14b)];const _0x22d954={};_0x22d954[_0x3aebac(0x113)]=_0x43456b['YGgYM'],_0x22d954[_0x3aebac(0x10f)]=_0x43456b[_0x3aebac(0x14b)];const _0x5513c1={};return _0x5513c1[_0x3aebac(0xeb)]=_0x13f18f,_0x5513c1[_0x3aebac(0x13e)]=_0x22d954,_0xcf5943[_0x3aebac(0xf6)](_0x3dcf72[_0x3aebac(0x142)])[_0x3aebac(0xfb)](_0x5c18a7)[_0x3aebac(0x122)](_0x5513c1)[_0x3aebac(0x155)]()[_0x3aebac(0x102)]()['help'](_0x43456b[_0x3aebac(0x112)])[_0x3aebac(0x103)];}}if(_0x513789[_0x3aebac(0x140)]){if(_0x43456b[_0x3aebac(0xf8)](_0x43456b[_0x3aebac(0x135)],_0x43456b['QEXDz']))_0x52c5cf=_0x513789[_0x3aebac(0x140)];else{let _0x4d5960={};const _0x1fffa7=_0x43456b[_0x3aebac(0x138)](_0x154d1a);_0x3ef1c7[_0x3aebac(0x12a)](_0x1fffa7)&&(_0x4d5960=_0x3889bb[_0x3aebac(0xf2)](_0x3e7fe0['readFileSync'](_0x1fffa7,_0x43456b[_0x3aebac(0x13c)])));const _0x2a9bb4={};_0x2a9bb4[_0x3aebac(0xf3)]=_0x4e57ba,_0x2a9bb4[_0x3aebac(0xfd)]=_0x2810d8,_0x4d5960['Browserstack']=_0x2a9bb4,_0x4acb67[_0x3aebac(0x12c)](_0x1fffa7,_0x55c0fb[_0x3aebac(0x100)](_0x4d5960)),_0x13709a[_0x3aebac(0xf0)](0x0);}}_0x513789['bstackAccesskey']&&(_0x43456b[_0x3aebac(0xf7)](_0x43456b[_0x3aebac(0x141)],_0x43456b[_0x3aebac(0xfc)])?_0x1ffe50=_0x513789[_0x3aebac(0x139)]:_0x4299f9=_0x13e3cc[_0x3aebac(0x117)][_0x3aebac(0xf1)]);if(_0x43456b['cCDvu'](_0x52c5cf,undefined)||_0x43456b[_0x3aebac(0xf4)](_0x1ffe50,undefined)){if(_0x43456b[_0x3aebac(0x10d)](_0x43456b[_0x3aebac(0x118)],_0x43456b[_0x3aebac(0x13d)])){logger[_0x3aebac(0xef)](_0x43456b[_0x3aebac(0x114)]);const [_0x1d330f,_0x4286d6]=await _0x43456b[_0x3aebac(0x150)](inputBstackKeys);_0x52c5cf=_0x1d330f,_0x1ffe50=_0x4286d6;}else _0x5318a7=_0x1fd93c['env'][_0x3aebac(0x13a)];}let _0x14b692=![];const _0x4f5288=_0x3aebac(0x143)+_0x52c5cf+':'+_0x1ffe50+'@'+BS_API_URL+_0x3aebac(0x151),_0x94ea7a={'method':_0x43456b['NhJay'],'headers':_0x43456b[_0x3aebac(0xee)](getAuthHeader,_0x52c5cf,_0x1ffe50),'throwHttpErrors':![]},_0x354c3d=await _0x43456b['toOKB'](got,_0x4f5288,_0x94ea7a);_0x43456b['eEgLJ'](_0x354c3d,null)&&_0x43456b[_0x3aebac(0x108)](_0x354c3d,undefined)&&_0x43456b[_0x3aebac(0xf8)](_0x354c3d[_0x3aebac(0x11e)],0xc8)&&(_0x43456b[_0x3aebac(0xf4)](_0x43456b[_0x3aebac(0x116)],_0x43456b['zwhdD'])?_0x332724=_0x42d282['bstackUsername']:_0x14b692=!![]);if(_0x14b692){if(_0x43456b[_0x3aebac(0x12f)](_0x43456b[_0x3aebac(0x13b)],_0x43456b[_0x3aebac(0x13b)])){let _0x704d2f={};const _0x357cec=_0x43456b[_0x3aebac(0x150)](getCredentialsPath);fs[_0x3aebac(0x12a)](_0x357cec)&&(_0x43456b[_0x3aebac(0x126)](_0x43456b[_0x3aebac(0x137)],_0x43456b[_0x3aebac(0x137)])?_0x704d2f=JSON['parse'](fs[_0x3aebac(0x124)](_0x357cec,_0x43456b[_0x3aebac(0x13c)])):_0x4439be=!![]);const _0x43d49f={};_0x43d49f[_0x3aebac(0xf3)]=_0x52c5cf,_0x43d49f[_0x3aebac(0xfd)]=_0x1ffe50,_0x704d2f[_0x3aebac(0x12e)]=_0x43d49f,fs[_0x3aebac(0x12c)](_0x357cec,JSON[_0x3aebac(0x100)](_0x704d2f)),process[_0x3aebac(0xf0)](0x0);}else _0x5a4b64=_0x45e4ae[_0x3aebac(0x139)];}else logger['error'](_0x43456b[_0x3aebac(0x104)]),await _0x43456b['GzKLD'](sendInstrumentationEvent,_0x513789,_0x43456b[_0x3aebac(0xed)],messageTypes[_0x3aebac(0xe8)],_0x43456b[_0x3aebac(0x129)],null,_0x513789),process[_0x3aebac(0xf0)](0x1);}catch(_0x10be23){logger[_0x3aebac(0x115)](_0x10be23[_0x3aebac(0xf9)]),await _0x43456b[_0x3aebac(0x148)](sendInstrumentationEvent,_0x513789,_0x43456b['tosBp'],messageTypes[_0x3aebac(0xe8)],_0x43456b[_0x3aebac(0xfe)],_0x10be23,_0x513789),process[_0x3aebac(0xf0)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x3b28c5=a13_0x1066;function a13_0x1066(_0xe0882d,_0x1567cf){const _0x1a3eef=a13_0x1a3e();return a13_0x1066=function(_0x106683,_0x33885f){_0x106683=_0x106683-0x1d4;let _0xf8f0b=_0x1a3eef[_0x106683];return _0xf8f0b;},a13_0x1066(_0xe0882d,_0x1567cf);}(function(_0x851c1b,_0x49d0da){const _0x5d8e80=a13_0x1066,_0xaf5285=_0x851c1b();while(!![]){try{const _0x113634=-parseInt(_0x5d8e80(0x1e5))/0x1*(-parseInt(_0x5d8e80(0x1e0))/0x2)+-parseInt(_0x5d8e80(0x1d9))/0x3+parseInt(_0x5d8e80(0x1d6))/0x4+-parseInt(_0x5d8e80(0x1e2))/0x5+-parseInt(_0x5d8e80(0x1d7))/0x6+parseInt(_0x5d8e80(0x1e6))/0x7*(parseInt(_0x5d8e80(0x1dc))/0x8)+parseInt(_0x5d8e80(0x1e1))/0x9;if(_0x113634===_0x49d0da)break;else _0xaf5285['push'](_0xaf5285['shift']());}catch(_0xec0926){_0xaf5285['push'](_0xaf5285['shift']());}}}(a13_0x1a3e,0xda534));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a13_0x1a3e(){const _0xebbd46=['help','List\x20down\x20the\x20Grid\x20resources.','2330yHPKcl','1043TncetC','JvNeY','epilogue','list','list_commands','1746272JVWtcZ','6063876ozauMV','builder','3269652VXBOOl','handler','desc','87344iTqttL','strict','Jnymc','recommendCommands','576uynRCL','4021848RUJVJY','932360crxlaX'];a13_0x1a3e=function(){return _0xebbd46;};return a13_0x1a3e();}exports['command']=a13_0x3b28c5(0x1d4),exports[a13_0x3b28c5(0x1db)]=a13_0x3b28c5(0x1e4),exports[a13_0x3b28c5(0x1d8)]=function(_0x840ab8){const _0x16b68f=a13_0x3b28c5,_0x42b199={};_0x42b199['JvNeY']=_0x16b68f(0x1d5),_0x42b199[_0x16b68f(0x1de)]=_0x16b68f(0x1e3);const _0x2fbdb7=_0x42b199;return _0x840ab8['commandDir'](_0x2fbdb7[_0x16b68f(0x1e7)])['demandCommand']()['usage'](HELP_HEADER_MESSAGE['list']['root'])[_0x16b68f(0x1e8)](HELP_FOOTER_MESSAGE)[_0x16b68f(0x1df)]()[_0x16b68f(0x1dd)]()['help'](_0x2fbdb7[_0x16b68f(0x1de)]);},exports[a13_0x3b28c5(0x1da)]=function(_0x2ba3fe){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x4caa03=a14_0x443b;function a14_0x443b(_0x517416,_0x354beb){const _0x4d4b77=a14_0x4d4b();return a14_0x443b=function(_0x443b34,_0x5cf517){_0x443b34=_0x443b34-0x9e;let _0x29804f=_0x4d4b77[_0x443b34];return _0x29804f;},a14_0x443b(_0x517416,_0x354beb);}(function(_0x7c9ff1,_0x69cd60){const _0x3808ec=a14_0x443b,_0x9790ea=_0x7c9ff1();while(!![]){try{const _0x13c752=-parseInt(_0x3808ec(0xbd))/0x1*(-parseInt(_0x3808ec(0xec))/0x2)+parseInt(_0x3808ec(0xbf))/0x3+parseInt(_0x3808ec(0xef))/0x4*(-parseInt(_0x3808ec(0xe5))/0x5)+parseInt(_0x3808ec(0xe9))/0x6+-parseInt(_0x3808ec(0xb5))/0x7+parseInt(_0x3808ec(0xcf))/0x8+parseInt(_0x3808ec(0xb7))/0x9*(-parseInt(_0x3808ec(0xac))/0xa);if(_0x13c752===_0x69cd60)break;else _0x9790ea['push'](_0x9790ea['shift']());}catch(_0x418b40){_0x9790ea['push'](_0x9790ea['shift']());}}}(a14_0x4d4b,0x3274c));const fs=require('fs'),got=require(a14_0x4caa03(0xcb)),{table}=require(a14_0x4caa03(0xf0)),{v4:uuidv4}=require(a14_0x4caa03(0xed)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x4caa03(0xce)),{getCredentialsPath,getAuthHeader}=require(a14_0x4caa03(0xbe)),{sendInstrumentationEvent}=require(a14_0x4caa03(0xea));exports[a14_0x4caa03(0xb6)]=a14_0x4caa03(0xd5),exports['desc']=a14_0x4caa03(0xd4),exports[a14_0x4caa03(0xbc)]=function(_0x59dde7){const _0x415d0a=a14_0x4caa03,_0x22f824={};_0x22f824[_0x415d0a(0xa4)]=_0x415d0a(0xe1),_0x22f824[_0x415d0a(0xba)]=_0x415d0a(0xb9),_0x22f824[_0x415d0a(0xee)]='help';const _0x4f5549=_0x22f824,_0x2fc386={};_0x2fc386[_0x415d0a(0xdd)]=_0x4f5549['HIjSu'],_0x2fc386[_0x415d0a(0xcd)]=_0x4f5549['xXCuA'];const _0x59b46d={};return _0x59b46d[_0x415d0a(0xf1)]=_0x2fc386,_0x59dde7[_0x415d0a(0xe2)](HELP_HEADER_MESSAGE[_0x415d0a(0xa8)]['gridProfile'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x415d0a(0xc7)](_0x59b46d)[_0x415d0a(0xa1)](_0x4f5549[_0x415d0a(0xee)])[_0x415d0a(0xeb)];},exports['handler']=async function(_0x544684){const _0x3ab20e=a14_0x4caa03,_0x418554={'PQvlY':function(_0x544940){return _0x544940();},'fvgne':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cDucz':function(_0x21aa51,_0x4848cf,_0x252348,_0x5d88c4,_0xc1dc29,_0x3c8ad6,_0x30a772){return _0x21aa51(_0x4848cf,_0x252348,_0x5d88c4,_0xc1dc29,_0x3c8ad6,_0x30a772);},'ENgIB':'list-grid-profiles-called','aeddT':'init-not-called','ESUEd':function(_0x1009e7){return _0x1009e7();},'cUnWC':'GET','PGzYW':function(_0x3d038b,_0x360e35,_0x2471de){return _0x3d038b(_0x360e35,_0x2471de);},'RueFM':function(_0x49b29c,_0x41ec7c,_0x2fc270,_0x3fac24,_0x8e814e,_0x26c8f5,_0x4a77f7){return _0x49b29c(_0x41ec7c,_0x2fc270,_0x3fac24,_0x8e814e,_0x26c8f5,_0x4a77f7);},'mxCmJ':function(_0x27d168,_0x463260,_0x17e8ae){return _0x27d168(_0x463260,_0x17e8ae);},'uSTCz':function(_0x387067,_0x5bcef7){return _0x387067!==_0x5bcef7;},'ZKPvK':function(_0x22a379,_0x5811d6){return _0x22a379===_0x5811d6;},'ntYID':_0x3ab20e(0xcc),'usNWh':_0x3ab20e(0xb3),'oOtoK':_0x3ab20e(0xd1),'Uixau':_0x3ab20e(0xd0),'VJfYu':_0x3ab20e(0xdf),'pVDIZ':function(_0x44b4fb,_0x23dc4c){return _0x44b4fb(_0x23dc4c);},'qHNer':_0x3ab20e(0xd9),'nLBhG':function(_0x2d1afc,_0x3dff42,_0x3ef3d1,_0x1869f0,_0x108df0,_0x5e7518,_0x3d9fc1){return _0x2d1afc(_0x3dff42,_0x3ef3d1,_0x1869f0,_0x108df0,_0x5e7518,_0x3d9fc1);},'nAwZM':_0x3ab20e(0xa7),'cUWoA':function(_0x281b2e,_0x4c3fcc,_0x17ad03,_0x5bd741,_0x5c7f04,_0x9a4381,_0x4b20c9){return _0x281b2e(_0x4c3fcc,_0x17ad03,_0x5bd741,_0x5c7f04,_0x9a4381,_0x4b20c9);},'mzEYN':'server-error','NGBiF':function(_0x48413f,_0x2c8e59,_0x5bcca4,_0x571860,_0x2c1ab4,_0x3cf6bf,_0x1abb05){return _0x48413f(_0x2c8e59,_0x5bcca4,_0x571860,_0x2c1ab4,_0x3cf6bf,_0x1abb05);},'SWhqj':_0x3ab20e(0xe4)};try{global_registry[_0x3ab20e(0xd7)]=_0x418554[_0x3ab20e(0xe6)](uuidv4);let _0x5b7993=_0x3ab20e(0xbb)+AG_API_URL+_0x3ab20e(0xe7);_0x544684[_0x3ab20e(0xaf)]&&(_0x5b7993=_0x3ab20e(0xbb)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs[_0x3ab20e(0xc4)](_0x418554[_0x3ab20e(0xe6)](getCredentialsPath))&&(console[_0x3ab20e(0xad)](_0x418554[_0x3ab20e(0xdb)]),await _0x418554[_0x3ab20e(0xd8)](sendInstrumentationEvent,_0x544684,_0x418554['ENgIB'],messageTypes[_0x3ab20e(0xc6)],_0x418554[_0x3ab20e(0xc9)],null,_0x544684),process['exit'](0x1));const _0x58ab61=JSON[_0x3ab20e(0x9e)](fs[_0x3ab20e(0xb8)](_0x418554['ESUEd'](getCredentialsPath))),_0x505962={'method':_0x418554[_0x3ab20e(0xb1)],'headers':_0x418554[_0x3ab20e(0xa2)](getAuthHeader,_0x58ab61['Browserstack'][_0x3ab20e(0xf2)],_0x58ab61[_0x3ab20e(0xaa)][_0x3ab20e(0xc8)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x58ab61[_0x3ab20e(0xaa)]['username'],global_registry['bstackAccesskey']=_0x58ab61[_0x3ab20e(0xaa)][_0x3ab20e(0xc8)],_0x418554[_0x3ab20e(0xde)](sendInstrumentationEvent,_0x544684,_0x418554[_0x3ab20e(0xc5)],messageTypes[_0x3ab20e(0xb0)],null,null,_0x544684);const _0x2c8599=await _0x418554[_0x3ab20e(0xab)](got,_0x5b7993,_0x505962);if(_0x418554[_0x3ab20e(0xa5)](_0x2c8599,null)&&_0x418554[_0x3ab20e(0xa5)](_0x2c8599,undefined)&&_0x418554[_0x3ab20e(0xa6)](_0x2c8599[_0x3ab20e(0xc1)],0xc8)){const _0x5ee29d=JSON['parse'](_0x2c8599[_0x3ab20e(0xc2)]);console[_0x3ab20e(0xa0)](_0x418554[_0x3ab20e(0xb4)]);const _0x19fde3=[];_0x19fde3['push']([_0x418554[_0x3ab20e(0xd6)],_0x418554[_0x3ab20e(0xb2)],_0x418554['Uixau'],_0x418554['VJfYu']]),_0x5ee29d[_0x3ab20e(0xc0)](_0x323d47=>{const _0x2f12e9=_0x3ab20e;_0x19fde3['push']([_0x323d47[_0x2f12e9(0xe0)],_0x323d47[_0x2f12e9(0xd2)],_0x323d47[_0x2f12e9(0xd0)],_0x323d47[_0x2f12e9(0xdf)]]);}),console[_0x3ab20e(0xa0)](_0x418554['pVDIZ'](table,_0x19fde3)),process[_0x3ab20e(0xda)](0x0);}_0x418554[_0x3ab20e(0xa6)](_0x2c8599[_0x3ab20e(0xc1)],0x191)&&(console['error'](_0x418554[_0x3ab20e(0xa3)]),await _0x418554[_0x3ab20e(0xa9)](sendInstrumentationEvent,_0x544684,_0x418554[_0x3ab20e(0xc5)],messageTypes['ERROR'],_0x418554[_0x3ab20e(0xca)],null,_0x544684),process[_0x3ab20e(0xda)](0x1)),console[_0x3ab20e(0xad)](_0x3ab20e(0xc3)+JSON['stringify'](_0x2c8599)),await _0x418554[_0x3ab20e(0xd3)](sendInstrumentationEvent,_0x544684,_0x418554[_0x3ab20e(0xc5)],messageTypes[_0x3ab20e(0xc6)],_0x418554[_0x3ab20e(0x9f)],_0x2c8599,_0x544684),process[_0x3ab20e(0xda)](0x1);}catch(_0x9b1eaf){console[_0x3ab20e(0xad)](_0x3ab20e(0xe8)+_0x9b1eaf[_0x3ab20e(0xdc)]),await _0x418554[_0x3ab20e(0xae)](sendInstrumentationEvent,_0x544684,_0x418554[_0x3ab20e(0xc5)],messageTypes['ERROR'],_0x418554[_0x3ab20e(0xe3)],_0x9b1eaf,_0x544684),process['exit'](0x1);}};function a14_0x4d4b(){const _0x4908fc=['https://','builder','9211QwsTRC','../../utils/utilityMethods','880695ffLzcJ','forEach','statusCode','body','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','existsSync','ENgIB','ERROR','options','password','aeddT','nAwZM','got','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','type','../../config/constants','1066528NIQfmR','region','cloud-provider','cloudProvider','cUWoA','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','grid-profiles','usNWh','requestId','cDucz','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','exit','fvgne','stack','description','RueFM','concurrency','name','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','usage','SWhqj','unknown-error','10145Xruixf','PQvlY','/packages/cli/get-grid-profiles','Failed\x20to\x20list\x20resources!\x20Error:\x20','726468xTdNCv','../../utils/instrumentationUtils','argv','82BDzchZ','uuid','RaSZg','684RNeiKF','table','all-grid-profiles','username','parse','mzEYN','log','help','PGzYW','qHNer','HIjSu','uSTCz','ZKPvK','unauthorised','list','nLBhG','Browserstack','mxCmJ','730EYKYLp','error','NGBiF','allGridProfiles','INFO','cUnWC','oOtoK','grid-profile-name','ntYID','638064aqlaug','command','34623UqdHrG','readFileSync','boolean','xXCuA'];a14_0x4d4b=function(){return _0x4908fc;};return a14_0x4d4b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a15_0x37ec31=a15_0x2c2e;(function(_0x57017f,_0xd2d118){const _0x2f34d2=a15_0x2c2e,_0x377656=_0x57017f();while(!![]){try{const _0x38dc7c=-parseInt(_0x2f34d2(0x126))/0x1*(parseInt(_0x2f34d2(0x12a))/0x2)+parseInt(_0x2f34d2(0x102))/0x3+parseInt(_0x2f34d2(0xfd))/0x4*(parseInt(_0x2f34d2(0xe5))/0x5)+-parseInt(_0x2f34d2(0xe9))/0x6+-parseInt(_0x2f34d2(0x120))/0x7+parseInt(_0x2f34d2(0xf9))/0x8+-parseInt(_0x2f34d2(0x138))/0x9*(parseInt(_0x2f34d2(0xee))/0xa);if(_0x38dc7c===_0xd2d118)break;else _0x377656['push'](_0x377656['shift']());}catch(_0x26c977){_0x377656['push'](_0x377656['shift']());}}}(a15_0x4991,0x282cc));const fs=require('fs'),got=require(a15_0x37ec31(0xf8)),{table}=require(a15_0x37ec31(0xf2)),{v4:uuidv4}=require(a15_0x37ec31(0x116)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x37ec31(0xf4)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x37ec31(0x137));function a15_0x4991(){const _0x3bbe52=['AxJwS','bWWIY','unknown-error','exit','GET','cFcFO','mreGf','125699BoAJBz','running','parse','list-grids-called','bstackAccesskey','type','199OHCjGP','allGrids','argv','forEach','266YbZUai','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','YTGWG','init-not-called','/packages/cli/get-grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','cluster-name','Drqgd','HLjlU','usage','ERROR','Browserstack','push','../../utils/instrumentationUtils','602901pHNFUH','server-error','10sLSfmK','https://','stringify','all-grids','1855662FbsNYR','diulp','stack','username','readFileSync','10AMAvOd','FxxRZ','Trzyx','clusterName','table','Failed\x20to\x20list\x20resources!\x20Error:\x20','../../config/constants','jmNND','log','mgalQ','got','245872TUwLkv','existsSync','boolean','epilogue','616692IHycRt','CCzWG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','unauthorised','vywFj','738498AHNzPU','\x0aFound\x20the\x20following\x20grids:\x0a','sSaPi','grid-name','error','qNics','builder','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','sCjSq','sVcGv','password','statusCode','ZJlCe','grids','queued','help','name','NFBWO','status','grid-id','uuid','command','PuiNy'];a15_0x4991=function(){return _0x3bbe52;};return a15_0x4991();}function a15_0x2c2e(_0x276661,_0x14102b){const _0x499157=a15_0x4991();return a15_0x2c2e=function(_0x2c2eaa,_0x2fbc6e){_0x2c2eaa=_0x2c2eaa-0xe4;let _0x4309e6=_0x499157[_0x2c2eaa];return _0x4309e6;},a15_0x2c2e(_0x276661,_0x14102b);}exports[a15_0x37ec31(0x117)]=a15_0x37ec31(0x10f),exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x37ec31(0x108)]=function(_0x4135cd){const _0x5bfe05=a15_0x37ec31,_0x3c4470={};_0x3c4470[_0x5bfe05(0xf0)]=_0x5bfe05(0x109),_0x3c4470[_0x5bfe05(0x11a)]=_0x5bfe05(0xfb),_0x3c4470[_0x5bfe05(0xf5)]='help';const _0x5b86ee=_0x3c4470,_0x53e5cf={};_0x53e5cf['description']=_0x5b86ee[_0x5bfe05(0xf0)],_0x53e5cf[_0x5bfe05(0x125)]=_0x5b86ee[_0x5bfe05(0x11a)];const _0x3342d6={};return _0x3342d6[_0x5bfe05(0xe8)]=_0x53e5cf,_0x4135cd[_0x5bfe05(0x133)](HELP_HEADER_MESSAGE['list']['grid'])[_0x5bfe05(0xfc)](HELP_FOOTER_MESSAGE)['options'](_0x3342d6)[_0x5bfe05(0x111)](_0x5b86ee[_0x5bfe05(0xf5)])[_0x5bfe05(0x128)];},exports['handler']=async function(_0x51250e){const _0x179d4c=a15_0x37ec31,_0xb8d5e4={'sVcGv':function(_0x3e3fd0){return _0x3e3fd0();},'YroGs':_0x179d4c(0xff),'CCzWG':function(_0x58bbd6,_0x390380,_0xb7f348,_0x2ede73,_0x40056f,_0x8382da,_0x298f12){return _0x58bbd6(_0x390380,_0xb7f348,_0x2ede73,_0x40056f,_0x8382da,_0x298f12);},'ZJlCe':_0x179d4c(0x123),'qNics':_0x179d4c(0x12d),'AxJwS':_0x179d4c(0x11d),'sCjSq':function(_0x14a956,_0x35a2c0,_0x297ce9){return _0x14a956(_0x35a2c0,_0x297ce9);},'mgalQ':function(_0xc7ea9f,_0x3974db){return _0xc7ea9f!==_0x3974db;},'YTGWG':function(_0x355e47,_0x4aa209){return _0x355e47===_0x4aa209;},'PuiNy':_0x179d4c(0x103),'sSaPi':_0x179d4c(0x115),'mreGf':_0x179d4c(0x105),'FxxRZ':_0x179d4c(0x114),'KLyhc':_0x179d4c(0x121),'diulp':_0x179d4c(0x110),'Drqgd':_0x179d4c(0x130),'HLjlU':function(_0x2836cb,_0x2cdcb9){return _0x2836cb(_0x2cdcb9);},'pmjmQ':function(_0x1612c7,_0x278ed1){return _0x1612c7===_0x278ed1;},'cFcFO':_0x179d4c(0x12b),'vywFj':_0x179d4c(0x100),'aCKBf':_0x179d4c(0xe4),'FChZW':function(_0x22bd1b,_0x2ae57e,_0x16521a,_0x1771d3,_0x3162f2,_0x2f0308,_0x11baf6){return _0x22bd1b(_0x2ae57e,_0x16521a,_0x1771d3,_0x3162f2,_0x2f0308,_0x11baf6);},'NFBWO':_0x179d4c(0x11b)};try{global_registry['requestId']=_0xb8d5e4[_0x179d4c(0x10b)](uuidv4);!fs[_0x179d4c(0xfa)](_0xb8d5e4['sVcGv'](getCredentialsPath))&&(console[_0x179d4c(0x106)](_0xb8d5e4['YroGs']),await _0xb8d5e4[_0x179d4c(0xfe)](sendInstrumentationEvent,_0x51250e,_0xb8d5e4['ZJlCe'],messageTypes[_0x179d4c(0x134)],_0xb8d5e4[_0x179d4c(0x107)],null,_0x51250e),process[_0x179d4c(0x11c)](0x1));const _0x1e8969=JSON[_0x179d4c(0x122)](fs[_0x179d4c(0xed)](_0xb8d5e4[_0x179d4c(0x10b)](getCredentialsPath)));let _0x44e54c='https://'+AG_API_URL+_0x179d4c(0x12e);_0x51250e[_0x179d4c(0x127)]&&(_0x44e54c=_0x179d4c(0xe6)+AG_API_URL+'/packages/cli/get-all-grids');const _0x2b5109={'method':_0xb8d5e4[_0x179d4c(0x119)],'headers':_0xb8d5e4[_0x179d4c(0x10a)](getAuthHeader,_0x1e8969[_0x179d4c(0x135)][_0x179d4c(0xec)],_0x1e8969[_0x179d4c(0x135)][_0x179d4c(0x10c)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x1e8969[_0x179d4c(0x135)][_0x179d4c(0xec)],global_registry[_0x179d4c(0x124)]=_0x1e8969['Browserstack'][_0x179d4c(0x10c)],_0xb8d5e4['CCzWG'](sendInstrumentationEvent,_0x51250e,_0xb8d5e4['ZJlCe'],messageTypes['INFO'],null,null,_0x51250e);const _0x44a7d0=await _0xb8d5e4[_0x179d4c(0x10a)](got,_0x44e54c,_0x2b5109);if(_0xb8d5e4[_0x179d4c(0xf7)](_0x44a7d0,null)&&_0xb8d5e4[_0x179d4c(0xf7)](_0x44a7d0,undefined)&&_0xb8d5e4[_0x179d4c(0x12c)](_0x44a7d0[_0x179d4c(0x10d)],0xc8)){const _0xd9f5af=JSON[_0x179d4c(0x122)](_0x44a7d0['body']);console[_0x179d4c(0xf6)](_0xb8d5e4[_0x179d4c(0x118)]);const _0x12bf71=[];_0x12bf71['push']([_0xb8d5e4[_0x179d4c(0x104)],_0xb8d5e4[_0x179d4c(0x11f)],_0xb8d5e4[_0x179d4c(0xef)],_0xb8d5e4['KLyhc'],_0xb8d5e4[_0x179d4c(0xea)],_0xb8d5e4[_0x179d4c(0x131)]]),_0xd9f5af[_0x179d4c(0x129)](_0x54fcf0=>{const _0x7ab8a9=_0x179d4c;_0x12bf71[_0x7ab8a9(0x136)]([_0x54fcf0['id'],_0x54fcf0[_0x7ab8a9(0x112)],_0x54fcf0[_0x7ab8a9(0x114)],_0x54fcf0[_0x7ab8a9(0x121)],_0x54fcf0['queued'],_0x54fcf0[_0x7ab8a9(0xf1)]]);}),console[_0x179d4c(0xf6)](_0xb8d5e4[_0x179d4c(0x132)](table,_0x12bf71)),process[_0x179d4c(0x11c)](0x0);}_0xb8d5e4['pmjmQ'](_0x44a7d0[_0x179d4c(0x10d)],0x191)&&(console[_0x179d4c(0x106)](_0xb8d5e4[_0x179d4c(0x11e)]),await _0xb8d5e4[_0x179d4c(0xfe)](sendInstrumentationEvent,_0x51250e,_0xb8d5e4[_0x179d4c(0x10e)],messageTypes[_0x179d4c(0x134)],_0xb8d5e4[_0x179d4c(0x101)],null,_0x51250e),process[_0x179d4c(0x11c)](0x1)),console[_0x179d4c(0x106)](_0x179d4c(0x12f)+JSON[_0x179d4c(0xe7)](_0x44a7d0)),await _0xb8d5e4[_0x179d4c(0xfe)](sendInstrumentationEvent,_0x51250e,_0xb8d5e4['ZJlCe'],messageTypes[_0x179d4c(0x134)],_0xb8d5e4['aCKBf'],_0x44a7d0,_0x51250e),process[_0x179d4c(0x11c)](0x1);}catch(_0x3c6b78){console[_0x179d4c(0x106)](_0x179d4c(0xf3)+_0x3c6b78[_0x179d4c(0xeb)]),await _0xb8d5e4['FChZW'](sendInstrumentationEvent,_0x51250e,_0xb8d5e4[_0x179d4c(0x10e)],messageTypes['ERROR'],_0xb8d5e4[_0x179d4c(0x113)],_0x3c6b78,_0x51250e),process['exit'](0x1);}};
|