browserstack-node-sdk 1.34.27 → 1.34.28

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.
Files changed (129) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +1 -1
  36. package/src/ai-sdk-node/bundle.js +1 -1
  37. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  38. package/src/bin/codeceptjs/command.js +1 -1
  39. package/src/bin/codeceptjs/helper.js +1 -1
  40. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  41. package/src/bin/cucumber-js/command.js +1 -1
  42. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  43. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  44. package/src/bin/cucumber-js/test-observability.js +1 -1
  45. package/src/bin/cucumber-js/test.setup.js +1 -1
  46. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  47. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  48. package/src/bin/integrations/command.js +1 -1
  49. package/src/bin/integrations/constants.js +1 -1
  50. package/src/bin/jest/command.js +1 -1
  51. package/src/bin/jest/customImplements/customCircus.js +1 -1
  52. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  53. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  54. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  55. package/src/bin/jest/jest.setup.js +1 -1
  56. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  57. package/src/bin/jest/test-observability/helper.js +1 -1
  58. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  59. package/src/bin/jest/test-observability/test-details.js +1 -1
  60. package/src/bin/jest/test_before.setup.js +1 -1
  61. package/src/bin/launcher/launcher.js +1 -1
  62. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  63. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  64. package/src/bin/mocha/command.js +1 -1
  65. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  66. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  67. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  68. package/src/bin/mocha/test.setup.js +1 -1
  69. package/src/bin/nightwatch/command.js +1 -1
  70. package/src/bin/playwright/accessibility-helper.js +1 -1
  71. package/src/bin/playwright/command.js +1 -1
  72. package/src/bin/playwright/globalSetup.js +1 -1
  73. package/src/bin/playwright/mock-process.js +1 -1
  74. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  75. package/src/bin/playwright/patches.js +1 -1
  76. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  77. package/src/bin/playwright/reporter/reporter.js +1 -1
  78. package/src/bin/playwright/reporter/test-details.js +1 -1
  79. package/src/bin/playwright/sessionDetails.js +1 -1
  80. package/src/bin/runner.js +1 -1
  81. package/src/bin/setup.js +1 -1
  82. package/src/bin/test-runner/index.js +1 -1
  83. package/src/bin/test-runner/runTest.js +1 -1
  84. package/src/bin/test-runner/testWorker.js +1 -1
  85. package/src/bin/utils/constants.js +1 -1
  86. package/src/bin/utils/log4jsAppender.js +1 -1
  87. package/src/bin/utils/logPatcher.js +1 -1
  88. package/src/bin/utils/logReportingAPI.js +1 -1
  89. package/src/bin/vanilla-js/command.js +1 -1
  90. package/src/browserStackSdk.js +1 -1
  91. package/src/helpers/BrowserStackSetup.js +1 -1
  92. package/src/helpers/accessibility-automation/constants.js +1 -1
  93. package/src/helpers/accessibility-automation/helper.js +1 -1
  94. package/src/helpers/accessibility-automation/scripts.js +1 -1
  95. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  96. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  97. package/src/helpers/ats/constants.js +1 -1
  98. package/src/helpers/ats/helper.js +1 -1
  99. package/src/helpers/capsMapping.js +1 -1
  100. package/src/helpers/central-scanner/constants.js +1 -1
  101. package/src/helpers/central-scanner/helpers.js +1 -1
  102. package/src/helpers/globals.js +1 -1
  103. package/src/helpers/helper.js +1 -1
  104. package/src/helpers/logger.js +1 -1
  105. package/src/helpers/patchHelper.js +1 -1
  106. package/src/helpers/patchHelpers.js +1 -1
  107. package/src/helpers/percy/Percy.js +1 -1
  108. package/src/helpers/percy/PercyBinary.js +1 -1
  109. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  110. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  111. package/src/helpers/percy/PercySDK.js +1 -1
  112. package/src/helpers/percy/index.js +1 -1
  113. package/src/helpers/percy/utils.js +1 -1
  114. package/src/helpers/performance-tester.js +1 -1
  115. package/src/helpers/request-spy.js +1 -1
  116. package/src/helpers/setKeepAlive.js +1 -1
  117. package/src/helpers/test-observability/constants.js +1 -1
  118. package/src/helpers/test-observability/error-handler.js +1 -1
  119. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  120. package/src/helpers/test-observability/sessionHandler.js +1 -1
  121. package/src/helpers/test-observability/utils.js +1 -1
  122. package/src/helpers/testhub/constants.js +1 -1
  123. package/src/helpers/testhub/testhubHandler.js +1 -1
  124. package/src/helpers/testhub/utils.js +1 -1
  125. package/src/helpers/timeoutPromise.js +1 -1
  126. package/src/helpers/utilities.js +1 -1
  127. package/src/helpers/w3cMapping.js +1 -1
  128. package/src/hubAllocationMethods.js +1 -1
  129. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a9_0x2fce(){const _0x512a59=['onNtc','Cluster:\x20','esvGD','dNbDg','deleteCluster','ZtvqJ','\x20are\x20not\x20present\x20in\x20VPC:\x20','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','stringify','Create\x20a\x20private/public\x20grid.','Grid\x20profile\x20fetched\x20from\x20backend','grid-spawning-failed','eacnt','createdBy','handler','XxfMT','BzZzj','://','oPgXz','maxNodes','CLI_RUN_FINISHED','hYGJc','KYVfi','name','VTfzE','minNodes','1580nYZPAo','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','cQSOv','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','DzBqj','eMsgI','lzZjW','Skip\x20insecure\x20cert\x20verification.','4|1|7|10|2|9|3|12|11|6|8|0|14|5|13','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','create-grid-checks-invalid-profile','private-ingress-nginx-controller','Tgyqr','UcEiA','lwrwt','xRtYC','createOtherResources','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','rmUiA','eFKBr','../../config/constants','body','TJDMm','eOosR','rZZUW','usage','PixQP','statusCode','FQTBe','MWEWI','yPzOd','Adding\x20Websocket\x20listeners','subnets','../../config/logger','updateClusterAlreadyPresent','CJUOg','epilogue','PQJpt','Ggotj','help','builder','toLowerCase','tEjMR','managedBy','xTPtv','debug','ttfaj','ZfTWh','CLI_RUN_STARTED','boolean','readNamespacedService','defaultGridProfile','ldWwB','9roXcgV','clusterRegion','newCluster','hubVersion','vVtPm','create-grid-called','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Spawning\x20grid\x20on\x20to\x20the\x20cluster','create-grid-checks-null-response','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','requestId','length','ETAuP','/wd/hub','privateGrid','parse','https','private-grid','tRRZp','hzrnn','info','s3bucket','create-grid-checks-auth-failed','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','xxntn','get-grid-url-null-response','IlmXj','Rxtgc','annotations','ORzVs','metadata','yfMbW','Found\x20Subnets:\x20','KUTwv','Elugl','includes','setupAutoscaler','UWqnY','BpYwI','vxTQj','DfaJL','skip-tls-cert-verify','sikHW','<PasswordPlaceholder>','gXtTE','4|7|8|5|1|6|0|2|3','bstackAccesskey','nsmXB','user','delay','duFlx','route53','GZBVB','error','browserVersion','upQaT','cluster-name','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','gridProfiles','dogxZ','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','grid-name','cloud-provider','bZjTK','LOG','prespawned-cluster-args-not-passed','desc','AZkPb','uIHMp','Udqch','jzFwA','HIWdO','qNSHz','PEEel','DlFxi','createNamespace','exit','JBhPR','string','KruAT','wIhmn','stack','EdCzr','default','existsSync','qfWNl','\x27\x20grid\x20profile','WhOaW','eSnXl','Cluster\x20','ZaWCJ','pre-spawned-invalid-subnets','YjdZo','CLI\x20run\x20finished:\x20','508752pKUQkG','QpqpD','11292qJUdYH','NJZqc','PidPu','XueFU','description','GiAKx','GBpjb','cWDuf','non-aws-azure-cluster','Create\x20a\x20new\x20Automation\x20grid.','connectionTimeout','xnOuU','GqQlI','cDldm','<UsernamePlaceholder>','\x20using\x20\x27','GVndz','ingress-nginx-controller','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','WebSocket','YJrnq','TlRzG','replace','Sngeo','NWisJ','Browserstack','TunrD','SbNpA','warn','region','init-not-called','VERnk','dDyPP','qdsiN','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','pHRMB','ZJncZ','AVAGt','pre-spawned-subnets-not-selected','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','bTonq','Clqiz','../../cloudproviders/utils','XWajU','YPPUF','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','tHUKd','vpc','EDEGn','sendResourceDataToHST','gridProfile','../../utils/createk8sClient','Mqncu','MZqcD','username','isVPCPresent','cXCdT','instanceType','3XFbVvK','VCYlQ','jKJeB','moNAN','1288432jeWEaf','FnTsX','Creating\x20namespace','\x20in\x20existing\x20cluster\x20\x27','OKYGl','Found\x20VPC:\x20','dKSpU','ERROR','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','clusterName','rAsij','/packages/cli/create-grid-checks','ibQCN','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','gridProfileId','lJwdC','biQnO','hWTtb','grid','command','lPGOf','sfhcP','GWVMa','grid-profile','../../utils/utilityMethods','QcGHe','akfzW','QnnBI','isPrivateGrid','tDGgS','KhgIm','Spawning\x20the\x20grid\x20','addListeners','BqCfT','UUIiw','GET','esWnO','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','FQcnc','Spawning\x20Grid\x20on\x20the\x20Cluster','http','Cluster\x20created\x20successfully','621512nLPxKU','get-grid-url-non-200','type','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','vlttW','AOJit','MyQtL','Lzols','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','951710vVDkgr','cUhtX','EFSAI','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','29513nerCpw','VVtqT','854GbsZtQ','cTNqp','got','bHlRv','gRdlp','xoDUR','sendEventToBackend','xdoiQ','../../utils/instrumentationUtils','concurrency','argv','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','XOoOw','iLRpn','bliRI','zhdHu','gkZrM','DmSVB','xuIAz','SJzUs','2|1|0|4|8|5|3|7|6','Deleting\x20the\x20CloudFormation\x20Stacks','setupNewCluster','create-grid-checks-non-200','message','skipTlsCertVerify','GrtZt','lZvXD','FnwlC','YGJir','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','bstackUsername','create-grid-checks-grid-already-exists','options','getResourceClientId','cloudProvider','toTsZ','UlROk','isClusterPresent','Grid\x20can\x20be\x20accessed\x20at:\x20','split','https://','txpEJ','286507ZalVxN','GSJvU','create','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','get-grid-url-auth-failed','password','gridName'];a9_0x2fce=function(){return _0x512a59;};return a9_0x2fce();}function a9_0x22dd(_0x5929fd,_0x4745d7){const _0x2fcefa=a9_0x2fce();return a9_0x22dd=function(_0x22dda8,_0x23fc3f){_0x22dda8=_0x22dda8-0x16c;let _0xfa30d8=_0x2fcefa[_0x22dda8];return _0xfa30d8;},a9_0x22dd(_0x5929fd,_0x4745d7);}const a9_0x5c7c3b=a9_0x22dd;(function(_0x14ea18,_0x19309a){const _0x39444e=a9_0x22dd,_0x2710ea=_0x14ea18();while(!![]){try{const _0x5dc3ad=parseInt(_0x39444e(0x285))/0x1+-parseInt(_0x39444e(0x1df))/0x2+-parseInt(_0x39444e(0x21b))/0x3*(parseInt(_0x39444e(0x21f))/0x4)+parseInt(_0x39444e(0x252))/0x5+-parseInt(_0x39444e(0x1e1))/0x6*(parseInt(_0x39444e(0x259))/0x7)+parseInt(_0x39444e(0x249))/0x8*(parseInt(_0x39444e(0x181))/0x9)+parseInt(_0x39444e(0x2a8))/0xa*(parseInt(_0x39444e(0x257))/0xb);if(_0x5dc3ad===_0x19309a)break;else _0x2710ea['push'](_0x2710ea['shift']());}catch(_0x536074){_0x2710ea['push'](_0x2710ea['shift']());}}}(a9_0x2fce,0x2a14c));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x5c7c3b(0x25b)),{v4:uuidv4}=require('uuid'),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x5c7c3b(0x16d)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x5c7c3b(0x237)),{getCloudProviderObject}=require(a9_0x5c7c3b(0x20b)),{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_0x5c7c3b(0x2bd)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x5c7c3b(0x214)),{sendInstrumentationEvent}=require(a9_0x5c7c3b(0x261));exports[a9_0x5c7c3b(0x232)]=a9_0x5c7c3b(0x231),exports[a9_0x5c7c3b(0x1c3)]=a9_0x5c7c3b(0x1ea),exports[a9_0x5c7c3b(0x174)]=function(_0x17b3b1){const _0x57878a=a9_0x5c7c3b,_0x433d30={};_0x433d30['rAsij']='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x433d30[_0x57878a(0x23a)]=_0x57878a(0x1cf),_0x433d30[_0x57878a(0x18d)]=_0x57878a(0x1f3),_0x433d30[_0x57878a(0x1c4)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x433d30[_0x57878a(0x267)]=_0x57878a(0x2ac),_0x433d30['qNSHz']=_0x57878a(0x2ab),_0x433d30[_0x57878a(0x22e)]=_0x57878a(0x297),_0x433d30[_0x57878a(0x26c)]=_0x57878a(0x2b0),_0x433d30[_0x57878a(0x2aa)]=_0x57878a(0x17d),_0x433d30['YUjrM']=_0x57878a(0x173);const _0x2d6a0c=_0x433d30,_0x314094={};_0x314094['description']=_0x2d6a0c[_0x57878a(0x229)],_0x314094[_0x57878a(0x24b)]=_0x2d6a0c[_0x57878a(0x23a)];const _0x1d0f77={};_0x1d0f77['description']=_0x2d6a0c[_0x57878a(0x18d)],_0x1d0f77[_0x57878a(0x24b)]=_0x2d6a0c[_0x57878a(0x23a)];const _0x4d5e77={};_0x4d5e77[_0x57878a(0x1e5)]=_0x2d6a0c[_0x57878a(0x1c4)],_0x4d5e77[_0x57878a(0x24b)]=_0x2d6a0c[_0x57878a(0x23a)];const _0x39ca2c={};_0x39ca2c[_0x57878a(0x1e5)]=_0x2d6a0c[_0x57878a(0x267)],_0x39ca2c[_0x57878a(0x24b)]=_0x2d6a0c['QnnBI'];const _0x5024b7={};_0x5024b7[_0x57878a(0x1e5)]=_0x2d6a0c[_0x57878a(0x1c9)],_0x5024b7['type']=_0x2d6a0c[_0x57878a(0x23a)];const _0x10c370={};_0x10c370[_0x57878a(0x1e5)]=_0x2d6a0c['lJwdC'],_0x10c370[_0x57878a(0x24b)]=_0x2d6a0c['QnnBI'];const _0x1dc88f={};_0x1dc88f['description']=_0x2d6a0c[_0x57878a(0x26c)],_0x1dc88f[_0x57878a(0x24b)]=_0x2d6a0c[_0x57878a(0x2aa)],_0x1dc88f[_0x57878a(0x1d4)]=![];const _0x33fef8={};return _0x33fef8[_0x57878a(0x1be)]=_0x314094,_0x33fef8[_0x57878a(0x236)]=_0x1d0f77,_0x33fef8[_0x57878a(0x1b9)]=_0x4d5e77,_0x33fef8[_0x57878a(0x1bf)]=_0x39ca2c,_0x33fef8[_0x57878a(0x1fe)]=_0x5024b7,_0x33fef8[_0x57878a(0x192)]=_0x10c370,_0x33fef8['skip-tls-cert-verify']=_0x1dc88f,_0x17b3b1['usage'](HELP_HEADER_MESSAGE['create'])[_0x57878a(0x170)](HELP_FOOTER_MESSAGE)[_0x57878a(0x27b)](_0x33fef8)[_0x57878a(0x173)](_0x2d6a0c['YUjrM'])[_0x57878a(0x263)];},exports[a9_0x5c7c3b(0x29c)]=async function(_0x505c6e){const _0x226fcf=a9_0x5c7c3b,_0x237672={'Rmxly':_0x226fcf(0x1fd),'TJDMm':function(_0x54d80c,_0x4000f8){return _0x54d80c===_0x4000f8;},'QpqpD':_0x226fcf(0x247),'VTfzE':_0x226fcf(0x288),'FQcnc':_0x226fcf(0x1cf),'ttfaj':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','UWqnY':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','XxfMT':_0x226fcf(0x2ac),'GWVMa':_0x226fcf(0x2ab),'HJmJe':_0x226fcf(0x297),'bTonq':_0x226fcf(0x2b0),'GfaKm':_0x226fcf(0x17d),'YJrnq':'help','zhdHu':_0x226fcf(0x26d),'eOosR':'CLI\x20run\x20started','bZjTK':_0x226fcf(0x1b6),'dKSpU':_0x226fcf(0x2b1),'UcEiA':function(_0x22d544,_0x31e4e0){return _0x22d544!==_0x31e4e0;},'yfMbW':function(_0x31b891,_0x466725,_0x2e86fc,_0x20c1e1,_0x1bf341,_0x3105a4,_0x1af790,_0x539fdb,_0x14efe9,_0x5ae476,_0x4495a9,_0x4c4a9c){return _0x31b891(_0x466725,_0x2e86fc,_0x20c1e1,_0x1bf341,_0x3105a4,_0x1af790,_0x539fdb,_0x14efe9,_0x5ae476,_0x4495a9,_0x4c4a9c);},'GVndz':_0x226fcf(0x191),'dogxZ':function(_0xc6682d){return _0xc6682d();},'xRtYC':_0x226fcf(0x21c),'oPgXz':_0x226fcf(0x20a),'YdIrs':_0x226fcf(0x20e),'XueFU':function(_0x36e0e4,_0x3a0cb5,_0x15c640,_0xd58ec3,_0x51b89b,_0x3c20e1,_0x2a3195){return _0x36e0e4(_0x3a0cb5,_0x15c640,_0xd58ec3,_0x51b89b,_0x3c20e1,_0x2a3195);},'wIhmn':_0x226fcf(0x186),'uzaWL':_0x226fcf(0x1ff),'UlROk':function(_0x1cb716,_0x1d4b63,_0x45464e,_0x57d5bd,_0x3e1cfd,_0x496bc0,_0x2ee06c){return _0x1cb716(_0x1d4b63,_0x45464e,_0x57d5bd,_0x3e1cfd,_0x496bc0,_0x2ee06c);},'cDldm':_0x226fcf(0x1ef),'ZfTWh':_0x226fcf(0x1ac),'AOJit':_0x226fcf(0x2c8),'cUhtX':function(_0x294854,_0x3fd90e){return _0x294854!==_0x3fd90e;},'GsuPI':'uaVxT','AVAGt':_0x226fcf(0x185),'duFlx':'OHiKr','PixQP':_0x226fcf(0x1ba),'PidPu':function(_0x299505,_0x146e72,_0x2bfcc9,_0x3e316a,_0x285184,_0x13fd30,_0x3f6d0e,_0x37e882){return _0x299505(_0x146e72,_0x2bfcc9,_0x3e316a,_0x285184,_0x13fd30,_0x3f6d0e,_0x37e882);},'Wufar':_0x226fcf(0x1c2),'dDyPP':_0x226fcf(0x286),'cRVPN':_0x226fcf(0x244),'hYGJc':function(_0x2cc33f,_0x32b32b,_0x45916b,_0x5b4ac2,_0x4386f2,_0x5915cf,_0x449397,_0x5e26c4){return _0x2cc33f(_0x32b32b,_0x45916b,_0x5b4ac2,_0x4386f2,_0x5915cf,_0x449397,_0x5e26c4);},'oVgau':_0x226fcf(0x1e9),'JBhPR':function(_0x144b43,_0x3d55e1){return _0x144b43===_0x3d55e1;},'TlRzG':'true','iLRpn':_0x226fcf(0x238),'xTPtv':function(_0x2465f6,_0x2d62c0,_0x168c5b,_0x535a0f,_0x10cb50,_0x4aff3c,_0x19b44e){return _0x2465f6(_0x2d62c0,_0x168c5b,_0x535a0f,_0x10cb50,_0x4aff3c,_0x19b44e);},'GiAKx':function(_0x1c2583,_0x238723){return _0x1c2583!==_0x238723;},'tDGgS':'dAVZx','lzZjW':function(_0x2de906,_0x1a09db){return _0x2de906===_0x1a09db;},'Elugl':_0x226fcf(0x24f),'eacnt':_0x226fcf(0x172),'cTNqp':_0x226fcf(0x242),'cXCdT':function(_0x16ad78,_0x34e8ef,_0x549271){return _0x16ad78(_0x34e8ef,_0x549271);},'UUIiw':function(_0x14b43,_0x592a97){return _0x14b43===_0x592a97;},'KUTwv':_0x226fcf(0x2c1),'XWajU':function(_0x42a4b3,_0x172576){return _0x42a4b3===_0x172576;},'eSnXl':function(_0x7b3f01,_0x436f51){return _0x7b3f01!==_0x436f51;},'Sngeo':_0x226fcf(0x22b),'hzrnn':_0x226fcf(0x204),'XOoOw':_0x226fcf(0x198),'FnTsX':_0x226fcf(0x189),'GZBVB':function(_0xaf6f5f,_0x3bd7bf){return _0xaf6f5f!==_0x3bd7bf;},'MZqcD':_0x226fcf(0x1b0),'DmSVB':_0x226fcf(0x273),'xdoiQ':_0x226fcf(0x208),'ospKo':function(_0xa8e8b3,_0x59f314,_0x44fc46,_0x272d6b,_0x38e731,_0x2f26e2,_0x2084a0,_0x2edad3){return _0xa8e8b3(_0x59f314,_0x44fc46,_0x272d6b,_0x38e731,_0x2f26e2,_0x2084a0,_0x2edad3);},'gXtTE':_0x226fcf(0x197),'xoDUR':function(_0x132e76,_0xdc5f4e){return _0x132e76!==_0xdc5f4e;},'gkZrM':_0x226fcf(0x26b),'BzZzj':_0x226fcf(0x1c6),'BpYwI':function(_0x301ad1,_0x457a4a,_0x119b6c,_0x58c631,_0x4a3bf7,_0x41719a,_0x29d795,_0x5c210a){return _0x301ad1(_0x457a4a,_0x119b6c,_0x58c631,_0x4a3bf7,_0x41719a,_0x29d795,_0x5c210a);},'jszQV':_0x226fcf(0x270),'GqQlI':_0x226fcf(0x298),'xnOuU':function(_0x5b2e7e,_0x811308){return _0x5b2e7e===_0x811308;},'VERnk':_0x226fcf(0x25c),'qfWNl':_0x226fcf(0x27a),'wbnCW':function(_0x5c922b,_0x464d99){return _0x5c922b!==_0x464d99;},'dNbDg':_0x226fcf(0x1ca),'DlFxi':_0x226fcf(0x234),'uIHMp':function(_0x4ad980,_0x5e51b4){return _0x4ad980===_0x5e51b4;},'Mqncu':_0x226fcf(0x1b8),'HIWdO':_0x226fcf(0x2ad),'vxTQj':function(_0x518bb6,_0x37a81d){return _0x518bb6===_0x37a81d;},'gRdlp':function(_0x372142,_0x521392){return _0x372142!==_0x521392;},'jzFwA':'NQQyB','VVtqT':_0x226fcf(0x294),'mPpEs':function(_0x3a05a9,_0x3f4b98,_0x3054a6,_0x4ae076,_0x36f3bf,_0x5d2d47,_0x1d4a85,_0x387fad){return _0x3a05a9(_0x3f4b98,_0x3054a6,_0x4ae076,_0x36f3bf,_0x5d2d47,_0x1d4a85,_0x387fad);},'KXlrV':_0x226fcf(0x2b3),'KhgIm':function(_0x29a727,_0x36c795){return _0x29a727!==_0x36c795;},'TunrD':_0x226fcf(0x1d8),'EFSAI':'DXUOn','DfaJL':function(_0x4a50d2,_0x3ef020){return _0x4a50d2!==_0x3ef020;},'GBpjb':_0x226fcf(0x2bb),'esWnO':function(_0x1e2c7e,_0x8dcd0f,_0x4a1819,_0x3fc5f5,_0x43058b,_0x4c5a66,_0x3da1cc,_0x3a7e00,_0x16d0e2,_0x18815c,_0x164409,_0x34b38b){return _0x1e2c7e(_0x8dcd0f,_0x4a1819,_0x3fc5f5,_0x43058b,_0x4c5a66,_0x3da1cc,_0x3a7e00,_0x16d0e2,_0x18815c,_0x164409,_0x34b38b);},'jKJeB':function(_0x296700,_0xb49c59){return _0x296700===_0xb49c59;},'ZaWCJ':function(_0x22064c,_0x4d0b40){return _0x22064c===_0x4d0b40;},'MWEWI':_0x226fcf(0x2a4),'FQTBe':function(_0x13aeae,_0xf18592){return _0x13aeae===_0xf18592;},'lNGGf':_0x226fcf(0x1dd),'YYALA':_0x226fcf(0x27e),'sMsfH':function(_0x5a7d52,_0x3743ab){return _0x5a7d52===_0x3743ab;},'CJUOg':_0x226fcf(0x275),'esvGD':_0x226fcf(0x1ae),'qdsiN':function(_0x17a641,_0x572741,_0x2051b7,_0x5a60a0,_0x8fb7cc,_0x1dac24,_0x36ffa9){return _0x17a641(_0x572741,_0x2051b7,_0x5a60a0,_0x8fb7cc,_0x1dac24,_0x36ffa9);},'Tgyqr':function(_0x3209e1,_0xec5c40){return _0x3209e1!==_0xec5c40;},'NWisJ':function(_0x53aa34,_0xd580bf){return _0x53aa34===_0xd580bf;},'BqCfT':_0x226fcf(0x2a9),'PQJpt':function(_0x5af290,_0x17826e){return _0x5af290!=_0x17826e;},'eMsgI':function(_0x3de061,_0x394d4b){return _0x3de061!=_0x394d4b;},'eBGiv':function(_0x4177f8,_0x29f1d1){return _0x4177f8>_0x29f1d1;},'biQnO':_0x226fcf(0x24c),'ZDyUk':_0x226fcf(0x207),'Rxtgc':_0x226fcf(0x227),'txpEJ':function(_0x299329,_0x57332f,_0x5d5a48,_0x2a3f56,_0x12c552,_0x3a20b6,_0x1da382,_0x26d7db){return _0x299329(_0x57332f,_0x5d5a48,_0x2a3f56,_0x12c552,_0x3a20b6,_0x1da382,_0x26d7db);},'EDEGn':'pre-spawned-invalid-vpc','eFKBr':function(_0x316391,_0xe200a5){return _0x316391===_0xe200a5;},'TyEVi':_0x226fcf(0x1dc),'lZvXD':'0|1|3|2|4','SbNpA':'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.','xxntn':_0x226fcf(0x248),'YPPUF':function(_0x51c0c9,_0x229247){return _0x51c0c9===_0x229247;},'tRRZp':function(_0x4dee20,_0x55fba5,_0x5aec62){return _0x4dee20(_0x55fba5,_0x5aec62);},'tEjMR':function(_0x479e91,_0x9f954e){return _0x479e91===_0x9f954e;},'ZtvqJ':function(_0x4ac832,_0x2369b5){return _0x4ac832(_0x2369b5);},'akfzW':_0x226fcf(0x221),'Lzols':function(_0x474dcf,_0x3a2c8d){return _0x474dcf!==_0x3a2c8d;},'buuEj':_0x226fcf(0x1d4),'vlttW':'Browserstack','sikHW':'Namespace\x20Created','IlmXj':'Namespace\x20created','onNtc':_0x226fcf(0x188),'ORzVs':_0x226fcf(0x246),'ZJncZ':function(_0x3a4356,_0x40a20a,_0x35b9c1,_0x282374,_0x5b1701,_0x18c919,_0x306863,_0x2ba11a,_0x3762e9,_0xe00bf9,_0x997c59){return _0x3a4356(_0x40a20a,_0x35b9c1,_0x282374,_0x5b1701,_0x18c919,_0x306863,_0x2ba11a,_0x3762e9,_0xe00bf9,_0x997c59);},'NLKZn':'Grid\x20spawned\x20on\x20the\x20cluster','yPzOd':_0x226fcf(0x1bd),'zVlQY':function(_0x54bd41,_0x1bcfcd,_0x2873ec,_0x1ac6bf,_0x5ab38d){return _0x54bd41(_0x1bcfcd,_0x2873ec,_0x1ac6bf,_0x5ab38d);},'lwrwt':_0x226fcf(0x2b4),'tHUKd':_0x226fcf(0x1f2),'NJZqc':'ingress-nginx','xWNXO':function(_0x422353,_0x2785ac){return _0x422353===_0x2785ac;},'ldWwB':_0x226fcf(0x256),'YGJir':function(_0x1b58cb,_0x122102,_0x5916a2,_0x4fce14,_0x40bf52,_0x591f73,_0x3502bf,_0x5cf9e3){return _0x1b58cb(_0x122102,_0x5916a2,_0x4fce14,_0x40bf52,_0x591f73,_0x3502bf,_0x5cf9e3);},'EdCzr':_0x226fcf(0x19a),'WKfbV':function(_0x114f7c,_0x1f472f){return _0x114f7c===_0x1f472f;},'cWDuf':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','moNAN':_0x226fcf(0x289),'rpxuv':function(_0x81eaa1,_0x4e7f80,_0x4e3699,_0x53e5d0,_0xb260ae,_0xe242dd,_0xf653f5,_0x156948){return _0x81eaa1(_0x4e7f80,_0x4e3699,_0x53e5d0,_0xb260ae,_0xe242dd,_0xf653f5,_0x156948);},'lPGOf':_0x226fcf(0x24a),'OKYGl':_0x226fcf(0x26e),'KruAT':function(_0x569a07,_0x69771b,_0x4e8f48,_0x40710e,_0x2bcc44,_0x261ce1){return _0x569a07(_0x69771b,_0x4e8f48,_0x40710e,_0x2bcc44,_0x261ce1);},'hWTtb':_0x226fcf(0x299)};let _0x2a9880=![],_0x3ebf82=![],_0x126c49,_0x1d7eb9,_0x292440,_0x4b3815,_0xd3c07b,_0x94f2f2,_0x3f50e2,_0x1a9c71,_0x79d9ad,_0x6c6a07,_0x3ec28e,_0x4df87f,_0x3875a3,_0x2c2cd2,_0xb56794=0x1,_0x42bef9=0xe;try{global_registry[_0x226fcf(0x18b)]=_0x237672[_0x226fcf(0x1bc)](uuidv4),global_registry[_0x226fcf(0x23b)]=![];!fs[_0x226fcf(0x1d5)](_0x237672[_0x226fcf(0x1bc)](getCredentialsPath))&&(_0x237672[_0x226fcf(0x2b6)](_0x237672[_0x226fcf(0x2b8)],_0x237672[_0x226fcf(0x2a0)])?(console[_0x226fcf(0x1b6)](_0x237672['YdIrs']),await _0x237672[_0x226fcf(0x1e4)](sendInstrumentationEvent,_0x505c6e,_0x237672['wIhmn'],messageTypes[_0x226fcf(0x226)],_0x237672['uzaWL'],null,_0x505c6e),process[_0x226fcf(0x1cd)](0x1)):_0xf609a3=!![]);await _0x237672[_0x226fcf(0x27f)](sendInstrumentationEvent,_0x505c6e,_0x237672[_0x226fcf(0x1d1)],messageTypes['INFO'],null,null,_0x505c6e);const _0x33b97a=JSON[_0x226fcf(0x190)](fs['readFileSync'](_0x237672[_0x226fcf(0x1bc)](getCredentialsPath)));global_registry[_0x226fcf(0x279)]=_0x33b97a[_0x226fcf(0x1fa)]['username'],global_registry[_0x226fcf(0x1af)]=_0x33b97a['Browserstack'][_0x226fcf(0x28a)];const _0x5211e3=WS_ENDPOINT[_0x226fcf(0x1f7)](_0x237672[_0x226fcf(0x1ee)],_0x33b97a[_0x226fcf(0x1fa)][_0x226fcf(0x217)])[_0x226fcf(0x1f7)](_0x237672[_0x226fcf(0x17b)],_0x33b97a['Browserstack'][_0x226fcf(0x28a)]),_0x32647e={};_0x32647e[_0x226fcf(0x1f4)]=ws,_0x32647e[_0x226fcf(0x1eb)]=0x36ee80,_0x4df87f=new ReconnectingWebSocket(_0x5211e3,[],_0x32647e),logger[_0x226fcf(0x179)](_0x237672[_0x226fcf(0x24e)]),webSocketUtils[_0x226fcf(0x23f)](_0x4df87f,_0x505c6e[_0x226fcf(0x1b1)],_0x505c6e['password']);const _0x393f28=_0x505c6e[_0x226fcf(0x28b)]||DEFAULT_GRID_NAME;if(_0x505c6e[_0x226fcf(0x228)]||_0x505c6e[_0x226fcf(0x27d)]||_0x505c6e[_0x226fcf(0x1fe)]){if(_0x237672[_0x226fcf(0x253)](_0x237672['GsuPI'],_0x237672[_0x226fcf(0x206)])){!(_0x505c6e[_0x226fcf(0x228)]&&_0x505c6e[_0x226fcf(0x27d)]&&_0x505c6e['region'])&&(_0x237672[_0x226fcf(0x2bf)](_0x237672['duFlx'],_0x237672[_0x226fcf(0x1b3)])?(_0x126c49=_0x237672[_0x226fcf(0x2c3)],await _0x237672[_0x226fcf(0x1e3)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672['Wufar'],_0x237672[_0x226fcf(0x1c0)]),logger['error'](_0x126c49),process[_0x226fcf(0x1cd)](0x1)):_0xc4c301[_0x226fcf(0x23b)]=!![]);![AWS,AZURE,GCP][_0x226fcf(0x1a4)](_0x505c6e[_0x226fcf(0x27d)][_0x226fcf(0x175)]())&&(_0x237672[_0x226fcf(0x2bf)](_0x237672[_0x226fcf(0x201)],_0x237672[_0x226fcf(0x201)])?(_0x126c49=_0x237672['cRVPN'],await _0x237672[_0x226fcf(0x2a3)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672['wIhmn'],_0x237672['oVgau'],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process['exit'](0x1)):_0x3f1220[_0x226fcf(0x23b)]=!![]);if(_0x505c6e[_0x226fcf(0x18f)]&&_0x237672[_0x226fcf(0x1ce)](_0x505c6e['privateGrid'][_0x226fcf(0x175)](),_0x237672[_0x226fcf(0x1f6)])){if(_0x237672[_0x226fcf(0x2b6)](_0x237672['iLRpn'],_0x237672[_0x226fcf(0x266)])){const _0x1c15da={};_0x1c15da[_0x226fcf(0x24b)]=_0x4b6dd8[_0x226fcf(0x1c1)],_0x1c15da['message']=_0x226fcf(0x1da)+_0x4c2e92+_0x226fcf(0x264),_0x55cc7a[_0x226fcf(0x25f)](_0x4280e9,_0x1c15da,_0x237672['Rmxly']),_0x3787ee[_0x226fcf(0x195)]('Cluster\x20'+_0x2d31ec+_0x226fcf(0x264)),_0x320743=!![];if(_0x237672['TJDMm'](_0x333cf9,!![]))throw new _0x41eb41(_0x226fcf(0x1da)+_0x5278a8+_0x226fcf(0x293));}else global_registry[_0x226fcf(0x23b)]=!![];}global_registry['cloudProvider']=_0x505c6e[_0x226fcf(0x27d)],global_registry['clusterRegion']=_0x505c6e[_0x226fcf(0x1fe)],global_registry[_0x226fcf(0x228)]=_0x505c6e[_0x226fcf(0x228)];const _0x116e56=await _0x237672[_0x226fcf(0x178)](getCloudProviderObject,_0x505c6e[_0x226fcf(0x27d)],_0x505c6e[_0x226fcf(0x228)],_0x393f28,_0x4df87f,webSocketUtils,_0x505c6e),_0x212d4f=await _0x116e56[_0x226fcf(0x280)]();if(!_0x212d4f)_0x237672[_0x226fcf(0x1e6)](_0x237672[_0x226fcf(0x23c)],_0x237672[_0x226fcf(0x23c)])?_0x6bc1ef=_0x237672[_0x226fcf(0x1e0)]:(logger[_0x226fcf(0x195)](_0x226fcf(0x28d)+_0x505c6e[_0x226fcf(0x228)]+_0x226fcf(0x255)),_0x2a9880=![],_0x3ebf82=!![]);else{if(_0x237672[_0x226fcf(0x2af)](_0x237672['Elugl'],_0x237672[_0x226fcf(0x1a3)]))_0x2a9880=!![];else{const _0x3e040d={};_0x3e040d[_0x226fcf(0x1e5)]=_0x237672[_0x226fcf(0x2a6)],_0x3e040d[_0x226fcf(0x24b)]=_0x237672[_0x226fcf(0x245)];const _0x376ee5={};_0x376ee5[_0x226fcf(0x1e5)]=_0x237672[_0x226fcf(0x17a)],_0x376ee5[_0x226fcf(0x24b)]=_0x237672['FQcnc'];const _0x17124f={};_0x17124f['description']=_0x237672[_0x226fcf(0x1a6)],_0x17124f['type']=_0x237672[_0x226fcf(0x245)];const _0x553907={};_0x553907[_0x226fcf(0x1e5)]=_0x237672[_0x226fcf(0x29d)],_0x553907[_0x226fcf(0x24b)]=_0x237672[_0x226fcf(0x245)];const _0x28f661={};_0x28f661[_0x226fcf(0x1e5)]=_0x237672[_0x226fcf(0x235)],_0x28f661[_0x226fcf(0x24b)]=_0x237672[_0x226fcf(0x245)];const _0x439e61={};_0x439e61[_0x226fcf(0x1e5)]=_0x237672['HJmJe'],_0x439e61[_0x226fcf(0x24b)]=_0x237672[_0x226fcf(0x245)];const _0x2bdc07={};_0x2bdc07[_0x226fcf(0x1e5)]=_0x237672[_0x226fcf(0x209)],_0x2bdc07['type']=_0x237672['GfaKm'],_0x2bdc07[_0x226fcf(0x1d4)]=![];const _0x5012d4={};return _0x5012d4[_0x226fcf(0x1be)]=_0x3e040d,_0x5012d4[_0x226fcf(0x236)]=_0x376ee5,_0x5012d4['cluster-name']=_0x17124f,_0x5012d4[_0x226fcf(0x1bf)]=_0x553907,_0x5012d4['region']=_0x28f661,_0x5012d4[_0x226fcf(0x192)]=_0x439e61,_0x5012d4[_0x226fcf(0x1aa)]=_0x2bdc07,_0x29606c[_0x226fcf(0x2c2)](_0x18f687[_0x226fcf(0x287)])[_0x226fcf(0x170)](_0x559d5b)[_0x226fcf(0x27b)](_0x5012d4)[_0x226fcf(0x173)](_0x237672[_0x226fcf(0x1f5)])[_0x226fcf(0x263)];}}_0x292440=_0x505c6e[_0x226fcf(0x228)],_0x1d7eb9=_0x505c6e[_0x226fcf(0x27d)][_0x226fcf(0x175)](),_0x4b3815=_0x505c6e[_0x226fcf(0x1fe)];}else _0x631c86=null;}else _0x505c6e['gridProfile']&&(_0x237672[_0x226fcf(0x2af)](_0x237672[_0x226fcf(0x29a)],_0x237672[_0x226fcf(0x29a)])?global_registry[_0x226fcf(0x213)]=_0x505c6e[_0x226fcf(0x213)]:(_0x4aaef7['info']('Cluster:\x20'+_0xfbe958[_0x226fcf(0x228)]+_0x226fcf(0x255)),_0x21cf18=![],_0x12386a=!![]));global_registry[_0x226fcf(0x28b)]=_0x505c6e['gridName'];const _0x403f80={'method':_0x237672[_0x226fcf(0x25a)],'headers':_0x237672[_0x226fcf(0x219)](getAuthHeader,_0x33b97a[_0x226fcf(0x1fa)][_0x226fcf(0x217)],_0x33b97a['Browserstack'][_0x226fcf(0x28a)]),'throwHttpErrors':![]},_0x39c02c={};_0x39c02c[_0x226fcf(0x28b)]=_0x393f28;const _0x38327a=_0x39c02c;_0x3ebf82&&(_0x237672[_0x226fcf(0x241)](_0x237672[_0x226fcf(0x1a2)],_0x237672[_0x226fcf(0x1a2)])?(_0x38327a['region']=_0x4b3815,_0x38327a[_0x226fcf(0x27d)]=_0x1d7eb9,_0x38327a[_0x226fcf(0x183)]=!![]):_0x2adfa6[_0x226fcf(0x195)](_0x226fcf(0x224)+_0x154627+'\x20'));const _0xc6b0fb=_0x226fcf(0x283)+AG_API_URL+_0x226fcf(0x22a),_0x3d9122={'searchParams':_0x38327a,'throwHttpErrors':![],..._0x403f80},_0x3bf409=_0x3d9122,_0x192999=await _0x237672[_0x226fcf(0x219)](got,_0xc6b0fb,_0x3bf409);if(_0x237672[_0x226fcf(0x20c)](_0x192999,null)||_0x237672[_0x226fcf(0x241)](_0x192999,undefined)){if(_0x237672[_0x226fcf(0x1d9)](_0x237672[_0x226fcf(0x1f8)],_0x237672[_0x226fcf(0x194)]))_0x126c49=_0x237672[_0x226fcf(0x265)],await _0x237672[_0x226fcf(0x1e3)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672[_0x226fcf(0x220)],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1);else throw new _0xc8c28e('Cluster\x20'+_0x3b184a+_0x226fcf(0x293));}_0x237672[_0x226fcf(0x2af)](_0x192999[_0x226fcf(0x2c4)],0x191)&&(_0x237672[_0x226fcf(0x1b5)](_0x237672[_0x226fcf(0x216)],_0x237672[_0x226fcf(0x26a)])?(_0x126c49=_0x237672[_0x226fcf(0x260)],await _0x237672['ospKo'](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672[_0x226fcf(0x1ad)],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1)):_0x2bf340[_0x226fcf(0x195)](_0x226fcf(0x1a1)+_0x5ad0a0[_0x226fcf(0x296)](_0x1ea7b1)+'\x20'));_0x237672[_0x226fcf(0x2b6)](_0x192999[_0x226fcf(0x2c4)],0xc8)&&(_0x237672[_0x226fcf(0x25e)](_0x237672[_0x226fcf(0x269)],_0x237672[_0x226fcf(0x29e)])?(_0x126c49=_0x226fcf(0x187)+JSON[_0x226fcf(0x296)](_0x192999['body']),await _0x237672['BpYwI'](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672['jszQV'],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1)):(_0x5ac764[_0x226fcf(0x1fe)]=_0x1aae8d,_0x534b33[_0x226fcf(0x27d)]=_0x1e1ff6,_0x38e020['newCluster']=!![]));const _0x396ca9=JSON[_0x226fcf(0x190)](_0x192999[_0x226fcf(0x2be)]),_0x567f22={};_0x567f22['type']=WS_EVENTS[_0x226fcf(0x17c)],_0x567f22[_0x226fcf(0x271)]=_0x237672[_0x226fcf(0x2c0)],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x567f22);const _0x104894={};_0x104894[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x104894[_0x226fcf(0x271)]=_0x237672[_0x226fcf(0x1ed)],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x104894);_0x396ca9['alreadyPresent']&&(_0x237672[_0x226fcf(0x1ec)](_0x237672['VERnk'],_0x237672[_0x226fcf(0x200)])?(_0x126c49=_0x226fcf(0x278)+_0x393f28+_0x226fcf(0x2b2),await _0x237672[_0x226fcf(0x2a3)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes['ERROR'],_0x237672['wIhmn'],_0x237672[_0x226fcf(0x1d6)],_0x237672['bZjTK']),logger[_0x226fcf(0x1b6)](_0x126c49),process['exit'](0x1)):_0x1998b5[_0x226fcf(0x213)]=_0x200e54[_0x226fcf(0x213)]);const _0xaff4d=_0x396ca9[_0x226fcf(0x1bb)];let _0x5c07a1=_0xaff4d[_0x396ca9[_0x226fcf(0x17f)]];if(_0x505c6e[_0x226fcf(0x213)]){if(_0x237672['wbnCW'](_0x237672[_0x226fcf(0x28f)],_0x237672[_0x226fcf(0x1cb)]))_0x5c07a1=_0xaff4d[_0x505c6e[_0x226fcf(0x213)]];else{const _0x514341=_0x237672[_0x226fcf(0x268)][_0x226fcf(0x282)]('|');let _0xca65bd=0x0;while(!![]){switch(_0x514341[_0xca65bd++]){case'0':_0x1a320c[_0x226fcf(0x195)](_0x17cf53);continue;case'1':_0x132fd5='Spawning\x20the\x20grid\x20'+_0x43e57f+_0x226fcf(0x222)+_0x12fbb3+'\x27';continue;case'2':const _0x388962={};_0x388962[_0x226fcf(0x24b)]=_0x182578[_0x226fcf(0x17c)],_0x388962['message']=_0x237672[_0x226fcf(0x2c0)],_0x1f8f89[_0x226fcf(0x25f)](_0xa6646a,_0x388962);continue;case'3':_0x11a167['clusterName']=_0x218b37;continue;case'4':const _0x18bef8={};_0x18bef8[_0x226fcf(0x24b)]=_0x1633a2['LOG'],_0x18bef8[_0x226fcf(0x271)]=_0x21e14b,_0x300b68['sendEventToBackend'](_0x26c328,_0x18bef8);continue;case'5':_0x4a72ce[_0x226fcf(0x182)]=_0x3c1382;continue;case'6':_0x12bdb7[_0x226fcf(0x1b7)]=_0x4330b5[_0x226fcf(0x1b7)];continue;case'7':_0x5a1e1b['hubVersion']=_0x310622['hubVersion'];continue;case'8':_0x8ccc76[_0x226fcf(0x27d)]=_0x41d5b0;continue;}break;}}}if(_0x237672[_0x226fcf(0x1c5)](_0x2a9880,![])&&_0x237672['JBhPR'](_0x3ebf82,![])){if(_0x237672['UUIiw'](_0x237672[_0x226fcf(0x215)],_0x237672[_0x226fcf(0x1c8)])){const _0x190f9d={};_0x190f9d['type']=_0x47b653[_0x226fcf(0x1c1)],_0x190f9d['message']=_0x3800ec,_0x326175[_0x226fcf(0x25f)](_0x7ef0c6,_0x190f9d,_0x237672[_0x226fcf(0x1c0)],!![]);}else{if(_0x237672['vxTQj'](_0x5c07a1,undefined)){if(_0x237672[_0x226fcf(0x25d)](_0x237672[_0x226fcf(0x1c7)],_0x237672['jzFwA'])){const _0x351342=_0x237672[_0x226fcf(0x225)]['split']('|');let _0x48eb00=0x0;while(!![]){switch(_0x351342[_0x48eb00++]){case'0':_0x4be048=_0x28a74d[_0x226fcf(0x184)];continue;case'1':_0x1914e0[_0x226fcf(0x195)](_0x44a3b3);continue;case'2':_0x453a7c=_0xcd935[_0x226fcf(0x21a)];continue;case'3':_0x309921=null;continue;case'4':_0x10f7e7=_0x226fcf(0x295)+_0x4fc37c;continue;case'5':_0x237672[_0x226fcf(0x2b6)](_0x7db01b[_0x226fcf(0x18f)],_0x29d39d)&&_0x5c4b87['privateGrid']&&(_0xda3414[_0x226fcf(0x23b)]=!![]);continue;case'6':_0x12c216=_0x1683e5[_0x226fcf(0x2a7)];continue;case'7':const _0x5f05e2={};_0x5f05e2['type']=_0x5c9cca[_0x226fcf(0x1c1)],_0x5f05e2[_0x226fcf(0x271)]=_0x2b690b,_0x53c8ea[_0x226fcf(0x25f)](_0x563f9e,_0x5f05e2);continue;case'8':_0x4b7c4f=_0x5badd1[_0x226fcf(0x2a1)];continue;case'9':_0x32ab82=null;continue;case'10':_0xc42e8e=_0x2fd613[_0x226fcf(0x262)];continue;case'11':_0x2efc08=_0x38540b['s3bucket'];continue;case'12':_0xaf9bce=null;continue;case'13':_0x237672[_0x226fcf(0x1a0)](_0x45564e,_0x4549d7,_0x146b4e,_0x116f6b,_0x1cd068,_0x39af57,_0xdbb3f6,_0x43a7db,_0x53e49d,_0x2a15e6,_0x4f4f50,_0x7f8c03);continue;case'14':_0x2881b5=_0x1d75f6[_0x226fcf(0x1b7)];continue;}break;}}else _0x126c49=_0x237672[_0x226fcf(0x258)],await _0x237672['mPpEs'](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672['KXlrV'],_0x237672[_0x226fcf(0x1c0)]),logger['error'](_0x126c49),process['exit'](0x1);}global_registry[_0x226fcf(0x22d)]=_0x5c07a1['id'],_0x126c49='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x393f28+_0x226fcf(0x1f0)+_0x5c07a1[_0x226fcf(0x2a5)]+_0x226fcf(0x1d7),logger[_0x226fcf(0x195)](_0x126c49);const _0x2cf262={};_0x2cf262[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x2cf262[_0x226fcf(0x271)]=_0x126c49,webSocketUtils['sendEventToBackend'](_0x4df87f,_0x2cf262),_0x1d7eb9=_0x5c07a1[_0x226fcf(0x27d)],_0x292440=_0x5c07a1[_0x226fcf(0x228)],_0x4b3815=_0x5c07a1[_0x226fcf(0x1fe)],_0xd3c07b=_0x5c07a1[_0x226fcf(0x262)],_0x94f2f2=_0x5c07a1[_0x226fcf(0x21a)],_0x3f50e2=_0x5c07a1[_0x226fcf(0x210)],_0x1a9c71=_0x5c07a1['securityGroups'],_0x79d9ad=_0x5c07a1[_0x226fcf(0x16c)],_0x6c6a07=_0x5c07a1[_0x226fcf(0x196)],_0xb56794=_0x5c07a1[_0x226fcf(0x2a7)],_0x42bef9=_0x5c07a1[_0x226fcf(0x2a1)],_0x3875a3=_0x396ca9[_0x226fcf(0x184)],_0x2c2cd2=_0x396ca9[_0x226fcf(0x1b7)],_0x3f50e2&&_0x237672[_0x226fcf(0x1a8)](_0x3f50e2[_0x226fcf(0x18c)],0x0)&&(_0x237672[_0x226fcf(0x23d)](_0x237672[_0x226fcf(0x1fb)],_0x237672[_0x226fcf(0x1fb)])?_0x1db17f[_0x226fcf(0x1b6)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x765d12+'\x20\x0a'+_0x2662f0['stringify'](_0x3bc8cb[_0x226fcf(0x1d2)])):_0x3f50e2=null),_0x79d9ad&&_0x237672[_0x226fcf(0x20c)](_0x79d9ad['length'],0x0)&&(_0x237672['xnOuU'](_0x237672[_0x226fcf(0x254)],_0x237672['EFSAI'])?_0x79d9ad=null:_0x49d507=null),_0x237672[_0x226fcf(0x25d)](_0x5c07a1[_0x226fcf(0x18f)],undefined)&&_0x5c07a1[_0x226fcf(0x18f)]&&(_0x237672[_0x226fcf(0x1a9)](_0x237672[_0x226fcf(0x1e7)],_0x237672[_0x226fcf(0x1e7)])?_0x4f715a[_0x226fcf(0x23b)]=!![]:global_registry[_0x226fcf(0x23b)]=!![]),_0x237672[_0x226fcf(0x243)](updateGlobalRegistryWithConfig,_0x1d7eb9,_0x292440,_0x4b3815,_0xd3c07b,_0x94f2f2,_0x6c6a07,_0x5c07a1,_0x3875a3,_0x2c2cd2,_0xb56794,_0x42bef9);}}else{if(_0x237672[_0x226fcf(0x21d)](_0x3ebf82,!![])){if(_0x237672[_0x226fcf(0x1db)](_0x237672[_0x226fcf(0x2c6)],_0x237672[_0x226fcf(0x2c6)])){_0x126c49=_0x226fcf(0x295)+_0x393f28,logger[_0x226fcf(0x195)](_0x126c49);const _0xaf49a0={};_0xaf49a0[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0xaf49a0['message']=_0x126c49,webSocketUtils['sendEventToBackend'](_0x4df87f,_0xaf49a0),_0xd3c07b=_0x5c07a1[_0x226fcf(0x262)],_0x94f2f2=_0x5c07a1[_0x226fcf(0x21a)],_0x3f50e2=null,_0x1a9c71=null,_0x79d9ad=null,_0x6c6a07=_0x5c07a1[_0x226fcf(0x196)],_0xb56794=_0x5c07a1[_0x226fcf(0x2a7)],_0x42bef9=_0x5c07a1[_0x226fcf(0x2a1)],_0x3875a3=_0x396ca9[_0x226fcf(0x184)],_0x2c2cd2=_0x396ca9['browserVersion'],_0x237672[_0x226fcf(0x1d9)](_0x5c07a1[_0x226fcf(0x18f)],undefined)&&_0x5c07a1[_0x226fcf(0x18f)]&&(_0x237672[_0x226fcf(0x2c5)](_0x237672['lNGGf'],_0x237672['YYALA'])?_0x35cd52=_0x1cb611[_0x456bee[_0x226fcf(0x213)]]:global_registry[_0x226fcf(0x23b)]=!![]),_0x237672[_0x226fcf(0x243)](updateGlobalRegistryWithConfig,_0x1d7eb9,_0x292440,_0x4b3815,_0xd3c07b,_0x94f2f2,_0x6c6a07,_0x5c07a1,_0x3875a3,_0x2c2cd2,_0xb56794,_0x42bef9);}else _0x4a3a7e=_0x2ee6c7[_0x226fcf(0x1b4)],_0x54963c=_0x237672['GVndz'];}else{if(_0x237672['sMsfH'](_0x237672[_0x226fcf(0x16f)],_0x237672['CJUOg'])){const _0x2a8fd4=_0x237672[_0x226fcf(0x28e)][_0x226fcf(0x282)]('|');let _0x116075=0x0;while(!![]){switch(_0x2a8fd4[_0x116075++]){case'0':global_registry[_0x226fcf(0x228)]=_0x292440;continue;case'1':global_registry[_0x226fcf(0x27d)]=_0x1d7eb9;continue;case'2':global_registry[_0x226fcf(0x184)]=_0x396ca9['hubVersion'];continue;case'3':global_registry[_0x226fcf(0x1b7)]=_0x396ca9['browserVersion'];continue;case'4':const _0x2c918a={};_0x2c918a[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x17c)],_0x2c918a['message']=_0x237672[_0x226fcf(0x2c0)],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x2c918a);continue;case'5':const _0x383738={};_0x383738[_0x226fcf(0x24b)]=WS_EVENTS['LOG'],_0x383738[_0x226fcf(0x271)]=_0x126c49,webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x383738);continue;case'6':global_registry[_0x226fcf(0x182)]=_0x4b3815;continue;case'7':_0x126c49=_0x226fcf(0x23e)+_0x393f28+_0x226fcf(0x222)+_0x292440+'\x27';continue;case'8':logger[_0x226fcf(0x195)](_0x126c49);continue;}break;}}else _0x3a1235['sendResourceDataToHST']();}}const _0x44d3dc=await _0x237672[_0x226fcf(0x202)](getCloudProviderObject,_0x1d7eb9,_0x292440,_0x393f28,_0x4df87f,webSocketUtils,_0x505c6e);_0x237672[_0x226fcf(0x2b5)](_0x1d7eb9,AZURE)&&_0x44d3dc[_0x226fcf(0x212)]();let _0x31c0ca;if(_0x237672[_0x226fcf(0x1f9)](_0x2a9880,![])){_0x126c49='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x4b3815+').';const _0x5b35f4={};_0x5b35f4[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x5b35f4[_0x226fcf(0x271)]=_0x126c49,webSocketUtils['sendEventToBackend'](_0x4df87f,_0x5b35f4),logger[_0x226fcf(0x195)](_0x126c49);const _0x4d4ab3=await _0x44d3dc[_0x226fcf(0x280)]();if(_0x4d4ab3){const _0x4c904e={};_0x4c904e[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x4c904e['message']='Cluster\x20'+_0x292440+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x4c904e,_0x237672['Rmxly']),logger[_0x226fcf(0x195)]('Cluster\x20'+_0x292440+_0x226fcf(0x264)),_0x2a9880=!![];if(_0x237672['FQTBe'](_0x3ebf82,!![]))throw new Error('Cluster\x20'+_0x292440+_0x226fcf(0x293));}else{const _0x39f3af={};_0x39f3af[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x39f3af[_0x226fcf(0x271)]=_0x237672[_0x226fcf(0x240)],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x39f3af),logger[_0x226fcf(0x195)](_0x237672[_0x226fcf(0x240)]);const _0x46b415=_0x237672[_0x226fcf(0x171)](_0x3f50e2,null)&&_0x237672[_0x226fcf(0x2b6)](_0x3f50e2,undefined),_0x2c08c2=_0x237672[_0x226fcf(0x2ae)](_0x79d9ad,null)&&_0x237672['GiAKx'](_0x79d9ad,undefined)&&_0x237672['eBGiv'](_0x79d9ad[_0x226fcf(0x18c)],0x0);if(_0x46b415){_0x237672[_0x226fcf(0x241)](_0x2c08c2,![])&&(_0x126c49=_0x237672[_0x226fcf(0x22f)],await _0x237672[_0x226fcf(0x1e3)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes['ERROR'],_0x237672['wIhmn'],_0x237672['ZDyUk'],_0x237672[_0x226fcf(0x1c0)]),logger['error'](_0x126c49),process[_0x226fcf(0x1cd)](0x1));const _0x15693e=await _0x44d3dc[_0x226fcf(0x218)](_0x3f50e2);_0x237672[_0x226fcf(0x2c5)](_0x15693e,![])?(_0x126c49=_0x237672[_0x226fcf(0x19c)],await _0x237672[_0x226fcf(0x284)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672[_0x226fcf(0x211)],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1)):logger[_0x226fcf(0x195)]('Found\x20VPC:\x20'+_0x3f50e2+'\x20');const _0x1580ec=await _0x44d3dc['isSubnetsValid'](_0x79d9ad,_0x3f50e2);_0x237672[_0x226fcf(0x2bc)](_0x1580ec[0x0],![])?(_0x126c49='Subnets:\x20'+JSON[_0x226fcf(0x296)](_0x1580ec[0x1])+_0x226fcf(0x292)+_0x3f50e2+_0x226fcf(0x251),await _0x237672[_0x226fcf(0x1e3)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672['wIhmn'],_0x237672['TyEVi'],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1)):logger[_0x226fcf(0x195)](_0x226fcf(0x1a1)+JSON[_0x226fcf(0x296)](_0x79d9ad)+'\x20'),await _0x44d3dc[_0x226fcf(0x26f)](_0x3f50e2,_0x79d9ad);}else{const _0x5dfdac=_0x237672[_0x226fcf(0x274)][_0x226fcf(0x282)]('|');let _0x36db09=0x0;while(!![]){switch(_0x5dfdac[_0x36db09++]){case'0':const _0x1af217={};_0x1af217[_0x226fcf(0x24b)]=WS_EVENTS['LOG'],_0x1af217[_0x226fcf(0x271)]=_0x237672['SbNpA'],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x1af217);continue;case'1':logger[_0x226fcf(0x195)](_0x237672[_0x226fcf(0x1fc)]);continue;case'2':const _0x19cf45={};_0x19cf45[_0x226fcf(0x24b)]=WS_EVENTS['LOG'],_0x19cf45[_0x226fcf(0x271)]=_0x237672[_0x226fcf(0x199)],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x19cf45);continue;case'3':await _0x44d3dc[_0x226fcf(0x26f)](_0x3f50e2,_0x79d9ad);continue;case'4':logger['info'](_0x237672[_0x226fcf(0x199)]);continue;}break;}}}}_0x2a9880&&_0x237672['YPPUF'](_0x1d7eb9,AZURE)&&(await _0x44d3dc[_0x226fcf(0x16e)](),await _0x44d3dc[_0x226fcf(0x2b9)]());const [_0x1df53b,_0xf2b779,_0x5c8f49,_0x1f26eb,_0x730d48,_0x2470fb]=await _0x237672[_0x226fcf(0x193)](createK8sClient,_0x44d3dc,_0x505c6e[_0x226fcf(0x272)]);_0x237672[_0x226fcf(0x20d)](_0x2a9880,![])&&_0x237672[_0x226fcf(0x176)](_0x1d7eb9,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x31c0ca=await _0x44d3dc[_0x226fcf(0x1a5)](_0x1df53b,_0x505c6e));try{_0x3ec28e=_0x237672[_0x226fcf(0x291)](kebabCase,_0x393f28),logger[_0x226fcf(0x195)](_0x237672['akfzW']);const _0x347bb0={};_0x347bb0[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x347bb0['message']=_0x237672[_0x226fcf(0x239)],webSocketUtils['sendEventToBackend'](_0x4df87f,_0x347bb0);if(_0x237672[_0x226fcf(0x250)](_0x3ec28e,_0x237672['buuEj'])){const _0x5bbcff={};_0x5bbcff[_0x226fcf(0x29b)]=_0x237672[_0x226fcf(0x24d)],_0x5bbcff[_0x226fcf(0x177)]=_0x237672[_0x226fcf(0x24d)];const _0x5351c0={};_0x5351c0[_0x226fcf(0x2a5)]=_0x3ec28e,_0x5351c0[_0x226fcf(0x19d)]=_0x5bbcff;const _0x3f7a98={};_0x3f7a98[_0x226fcf(0x19f)]=_0x5351c0;const _0x901bc3=_0x3f7a98,_0x1a3781={};_0x1a3781['body']=_0x901bc3,await _0x1df53b[_0x226fcf(0x1cc)](_0x1a3781),logger[_0x226fcf(0x195)](_0x237672[_0x226fcf(0x1ab)]);}const _0x5d9dfd={};_0x5d9dfd[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x5d9dfd[_0x226fcf(0x271)]=_0x237672[_0x226fcf(0x19b)],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x5d9dfd);const _0x350036={};_0x350036[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x350036[_0x226fcf(0x271)]=_0x237672[_0x226fcf(0x28c)],webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x350036),logger[_0x226fcf(0x195)](_0x237672[_0x226fcf(0x19e)]);let _0x2c8fa1={};_0x237672[_0x226fcf(0x1f9)](_0x1d7eb9,AZURE)&&(_0x2c8fa1={'clientId':await _0x44d3dc[_0x226fcf(0x27c)]('turboscale-managed-identity-'+_0x292440)});await _0x237672[_0x226fcf(0x205)](addGridComponents,_0x1df53b,_0xf2b779,_0x5c8f49,_0x1f26eb,_0x3ec28e,_0x292440,_0x31c0ca,_0x730d48,_0x2470fb,_0x2c8fa1),_0x126c49=_0x237672['NLKZn'],logger[_0x226fcf(0x195)](_0x126c49);const _0xb7fe92={};_0xb7fe92['type']=WS_EVENTS[_0x226fcf(0x1c1)],_0xb7fe92['message']=_0x126c49,webSocketUtils['sendEventToBackend'](_0x4df87f,_0xb7fe92),_0x126c49=_0x237672[_0x226fcf(0x2c7)],logger[_0x226fcf(0x195)](_0x126c49);const _0x6f79b9={};_0x6f79b9[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x6f79b9[_0x226fcf(0x271)]=_0x126c49,webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x6f79b9),await _0x237672['zVlQY'](waitForDeployment,_0xf2b779,_0x3ec28e,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0xe4a15d=await _0x237672[_0x226fcf(0x219)](getNamespaceUID,_0x1df53b,_0x3ec28e),_0x292be7=global_registry[_0x226fcf(0x23b)]?_0x237672[_0x226fcf(0x2b7)]:_0x237672[_0x226fcf(0x20f)],_0x21ad69={};_0x21ad69[_0x226fcf(0x2a5)]=_0x292be7,_0x21ad69['namespace']=_0x237672[_0x226fcf(0x1e2)];const _0x2240a1=await _0x1df53b[_0x226fcf(0x17e)](_0x21ad69);let _0x1752f8=_0x44d3dc['getGridHostname'](_0x2240a1)+'/'+_0x3ec28e,_0x48065e=_0x237672[_0x226fcf(0x1e0)];try{const _0x429ae4=_0x226fcf(0x283)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0xe4a15d,_0x2fb492=await _0x237672[_0x226fcf(0x219)](got,_0x429ae4,_0x403f80);(_0x237672['xWNXO'](_0x2fb492,null)||_0x237672[_0x226fcf(0x20d)](_0x2fb492,undefined))&&(_0x126c49=_0x237672[_0x226fcf(0x180)],await _0x237672[_0x226fcf(0x276)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672[_0x226fcf(0x1d3)],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1));_0x237672['WKfbV'](_0x2fb492[_0x226fcf(0x2c4)],0x191)&&(_0x126c49=_0x237672[_0x226fcf(0x1e8)],await _0x237672[_0x226fcf(0x1a7)](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672[_0x226fcf(0x21e)],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1));_0x237672[_0x226fcf(0x23d)](_0x2fb492[_0x226fcf(0x2c4)],0xc8)&&(_0x126c49=_0x226fcf(0x22c)+JSON[_0x226fcf(0x296)](_0x2fb492),await _0x237672['rpxuv'](reportToGalactusAndSendToEDS,_0x505c6e,_0x4df87f,_0x126c49,messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x1d1)],_0x237672[_0x226fcf(0x233)],_0x237672[_0x226fcf(0x1c0)]),logger[_0x226fcf(0x1b6)](_0x126c49),process[_0x226fcf(0x1cd)](0x1));const _0x146072=JSON[_0x226fcf(0x190)](_0x2fb492[_0x226fcf(0x2be)]);_0x146072[_0x226fcf(0x1b4)]&&(_0x1752f8=_0x146072[_0x226fcf(0x1b4)],_0x48065e=_0x237672[_0x226fcf(0x1f1)]),global_registry[_0x226fcf(0x23b)]&&(_0x48065e=_0x237672[_0x226fcf(0x1e0)]);}catch(_0x2d65a9){}_0x126c49=_0x226fcf(0x281)+_0x1752f8+'\x20',logger['info'](_0x126c49);const _0x79b2f8={};_0x79b2f8[_0x226fcf(0x24b)]=WS_EVENTS['LOG'],_0x79b2f8[_0x226fcf(0x271)]=_0x126c49,webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x79b2f8),_0x126c49=_0x226fcf(0x2ba)+_0x48065e+_0x226fcf(0x29f)+_0x1752f8+_0x226fcf(0x18e),logger[_0x226fcf(0x195)](_0x126c49);const _0x52ce01={};_0x52ce01[_0x226fcf(0x24b)]=WS_EVENTS['LOG'],_0x52ce01['message']=_0x126c49,webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x52ce01);const _0x2d45e5={};_0x2d45e5[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x2a2)],_0x2d45e5[_0x226fcf(0x271)]=_0x226fcf(0x1de)+_0x1752f8,webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x2d45e5),await webSocketUtils[_0x226fcf(0x1b2)](0x7d0);}catch(_0x1eda68){logger[_0x226fcf(0x1b6)](_0x226fcf(0x18a)+_0x1eda68+'\x20\x0a'+JSON[_0x226fcf(0x296)](_0x1eda68[_0x226fcf(0x1d2)]));if(_0x237672[_0x226fcf(0x1ec)](_0x2a9880,![]))try{logger['info'](_0x237672[_0x226fcf(0x223)]),await _0x237672[_0x226fcf(0x1d0)](removeGridComponents,_0x1df53b,_0xf2b779,_0x5c8f49,_0x1f26eb,_0x3ec28e),await _0x44d3dc[_0x226fcf(0x290)](_0x1df53b,global_registry[_0x226fcf(0x182)]);}catch(_0x40a4aa){logger[_0x226fcf(0x1b6)](_0x226fcf(0x203)+_0x40a4aa+'\x20\x0a'+JSON[_0x226fcf(0x296)](_0x40a4aa[_0x226fcf(0x1d2)]));}throw _0x1eda68;}}catch(_0x13e638){const _0x7f8354=_0x226fcf(0x277)+_0x13e638+'\x20\x0a'+JSON[_0x226fcf(0x296)](_0x13e638[_0x226fcf(0x1d2)]);if(_0x4df87f){const _0x517ebb={};_0x517ebb[_0x226fcf(0x24b)]=WS_EVENTS[_0x226fcf(0x1c1)],_0x517ebb[_0x226fcf(0x271)]=_0x7f8354,webSocketUtils[_0x226fcf(0x25f)](_0x4df87f,_0x517ebb,_0x237672[_0x226fcf(0x1c0)],!![]);}await webSocketUtils[_0x226fcf(0x1b2)](0x7d0);const _0x5dcf35={};_0x5dcf35[_0x226fcf(0x1b6)]=_0x7f8354,await _0x237672[_0x226fcf(0x178)](sendInstrumentationEvent,_0x505c6e,_0x237672[_0x226fcf(0x1d1)],messageTypes[_0x226fcf(0x226)],_0x237672[_0x226fcf(0x230)],_0x5dcf35,_0x505c6e),logger[_0x226fcf(0x1b6)](_0x7f8354);}process[_0x226fcf(0x1cd)](0x0);};
1
+ function a9_0x3419(_0x3b3f8e,_0x4b8a81){const _0x5f3b34=a9_0x5f3b();return a9_0x3419=function(_0x3419e6,_0x32b45d){_0x3419e6=_0x3419e6-0x134;let _0x33f080=_0x5f3b34[_0x3419e6];return _0x33f080;},a9_0x3419(_0x3b3f8e,_0x4b8a81);}const a9_0x1b13bf=a9_0x3419;(function(_0x376e6b,_0x4b3f4c){const _0x285c41=a9_0x3419,_0x197517=_0x376e6b();while(!![]){try{const _0x3912b5=parseInt(_0x285c41(0x1c3))/0x1+-parseInt(_0x285c41(0x160))/0x2+-parseInt(_0x285c41(0x213))/0x3*(parseInt(_0x285c41(0x1a0))/0x4)+parseInt(_0x285c41(0x1a2))/0x5*(parseInt(_0x285c41(0x215))/0x6)+-parseInt(_0x285c41(0x252))/0x7+parseInt(_0x285c41(0x16b))/0x8*(-parseInt(_0x285c41(0x14c))/0x9)+parseInt(_0x285c41(0x154))/0xa;if(_0x3912b5===_0x4b3f4c)break;else _0x197517['push'](_0x197517['shift']());}catch(_0x493868){_0x197517['push'](_0x197517['shift']());}}}(a9_0x5f3b,0x1c15b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x1b13bf(0x168)),got=require(a9_0x1b13bf(0x177)),{v4:uuidv4}=require(a9_0x1b13bf(0x1c8)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x1b13bf(0x23b)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x1b13bf(0x1ee)),{getCloudProviderObject}=require(a9_0x1b13bf(0x19c)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a9_0x1b13bf(0x19b)]='grid',exports[a9_0x1b13bf(0x1a5)]=a9_0x1b13bf(0x254),exports[a9_0x1b13bf(0x229)]=function(_0x475cc0){const _0x5a95b2=a9_0x1b13bf,_0x50dc5b={};_0x50dc5b[_0x5a95b2(0x1da)]=_0x5a95b2(0x216),_0x50dc5b['ijwfQ']=_0x5a95b2(0x243),_0x50dc5b[_0x5a95b2(0x153)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x50dc5b[_0x5a95b2(0x15b)]=_0x5a95b2(0x15d),_0x50dc5b[_0x5a95b2(0x28b)]=_0x5a95b2(0x26a),_0x50dc5b[_0x5a95b2(0x24f)]=_0x5a95b2(0x22d),_0x50dc5b[_0x5a95b2(0x1cb)]=_0x5a95b2(0x17e),_0x50dc5b[_0x5a95b2(0x1d7)]=_0x5a95b2(0x250),_0x50dc5b['ENIAW']=_0x5a95b2(0x291),_0x50dc5b[_0x5a95b2(0x1a7)]='help';const _0x12542f=_0x50dc5b,_0x179ae0={};_0x179ae0[_0x5a95b2(0x200)]=_0x12542f[_0x5a95b2(0x1da)],_0x179ae0[_0x5a95b2(0x18c)]=_0x12542f[_0x5a95b2(0x28d)];const _0x190543={};_0x190543[_0x5a95b2(0x200)]=_0x12542f['LDbSD'],_0x190543['type']=_0x12542f[_0x5a95b2(0x28d)];const _0x1779e1={};_0x1779e1[_0x5a95b2(0x200)]=_0x12542f[_0x5a95b2(0x15b)],_0x1779e1['type']=_0x12542f[_0x5a95b2(0x28d)];const _0x51a25f={};_0x51a25f[_0x5a95b2(0x200)]=_0x12542f['miXUJ'],_0x51a25f[_0x5a95b2(0x18c)]=_0x12542f[_0x5a95b2(0x28d)];const _0x45fc93={};_0x45fc93[_0x5a95b2(0x200)]=_0x12542f[_0x5a95b2(0x24f)],_0x45fc93['type']=_0x12542f[_0x5a95b2(0x28d)];const _0xa00644={};_0xa00644[_0x5a95b2(0x200)]=_0x12542f['cvoBt'],_0xa00644[_0x5a95b2(0x18c)]=_0x12542f[_0x5a95b2(0x28d)];const _0x4b6f0e={};_0x4b6f0e[_0x5a95b2(0x200)]=_0x12542f[_0x5a95b2(0x1d7)],_0x4b6f0e[_0x5a95b2(0x18c)]=_0x12542f['ENIAW'],_0x4b6f0e[_0x5a95b2(0x207)]=![];const _0x1f3eea={};return _0x1f3eea[_0x5a95b2(0x1e8)]=_0x179ae0,_0x1f3eea[_0x5a95b2(0x164)]=_0x190543,_0x1f3eea[_0x5a95b2(0x157)]=_0x1779e1,_0x1f3eea[_0x5a95b2(0x1f0)]=_0x51a25f,_0x1f3eea[_0x5a95b2(0x1e1)]=_0x45fc93,_0x1f3eea[_0x5a95b2(0x208)]=_0xa00644,_0x1f3eea[_0x5a95b2(0x212)]=_0x4b6f0e,_0x475cc0[_0x5a95b2(0x236)](HELP_HEADER_MESSAGE[_0x5a95b2(0x1de)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5a95b2(0x287)](_0x1f3eea)[_0x5a95b2(0x1f8)](_0x12542f[_0x5a95b2(0x1a7)])[_0x5a95b2(0x1b8)];},exports[a9_0x1b13bf(0x1c1)]=async function(_0x22d0bd){const _0x265c28=a9_0x1b13bf,_0x3e2bf6={'YQQHe':'warn','MJurl':function(_0x353d7d,_0x2ee39e){return _0x353d7d===_0x2ee39e;},'Hjccx':_0x265c28(0x260),'gkfhJ':function(_0x35b3f5,_0x4e90a4){return _0x35b3f5!==_0x4e90a4;},'WYGNx':function(_0x814aca,_0x5e1046,_0x1d63ff,_0x1f24dd,_0x4e88e7,_0x447329,_0x2aac7e,_0x5047ac,_0x4d1be0,_0x38601f,_0x6fb432,_0x2da143){return _0x814aca(_0x5e1046,_0x1d63ff,_0x1f24dd,_0x4e88e7,_0x447329,_0x2aac7e,_0x5047ac,_0x4d1be0,_0x38601f,_0x6fb432,_0x2da143);},'zUdLN':_0x265c28(0x216),'JmBcH':'string','itEvH':_0x265c28(0x18f),'bywCl':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','tcARJ':_0x265c28(0x26a),'RYNmN':_0x265c28(0x22d),'svEGw':_0x265c28(0x17e),'sbzBA':_0x265c28(0x250),'GosrD':_0x265c28(0x291),'bterC':_0x265c28(0x1f8),'gHqWC':_0x265c28(0x26c),'zSyIW':'CLI\x20run\x20started','SJabC':_0x265c28(0x251),'BPPpR':'error','bRRVz':_0x265c28(0x1f3),'McVWD':function(_0x2da0f4){return _0x2da0f4();},'yuyOr':function(_0x99b391){return _0x99b391();},'yNXuU':function(_0x58f674,_0x4b31ba){return _0x58f674===_0x4b31ba;},'zeJhU':'MweCY','LxwAp':_0x265c28(0x1ec),'KnHuq':_0x265c28(0x22e),'kjGgL':function(_0x183085,_0x8eecb,_0x330c4c,_0x2896d2,_0x16e7f2,_0x266162,_0x16d2ba){return _0x183085(_0x8eecb,_0x330c4c,_0x2896d2,_0x16e7f2,_0x266162,_0x16d2ba);},'YJyrt':_0x265c28(0x17c),'koLLk':'init-not-called','UrZYp':function(_0x3f6e31,_0xcfec89,_0x19055b,_0x3ccb33,_0x19795f,_0x1de534,_0x4078e5){return _0x3f6e31(_0xcfec89,_0x19055b,_0x3ccb33,_0x19795f,_0x1de534,_0x4078e5);},'Aeyrx':function(_0x10dd44){return _0x10dd44();},'VrJjj':_0x265c28(0x139),'pTyaz':_0x265c28(0x188),'wpdaw':_0x265c28(0x265),'TzUkH':function(_0x46a877,_0x33ac49){return _0x46a877!==_0x33ac49;},'hIVjm':_0x265c28(0x256),'jCLsc':function(_0x507804,_0x52d375){return _0x507804===_0x52d375;},'ZtnFo':_0x265c28(0x17b),'gfoIc':_0x265c28(0x1fa),'ftXlZ':_0x265c28(0x1e2),'CZbIy':function(_0x5e0b4f,_0x708b61,_0x4b5a9a,_0x5dfe86,_0xe4c9d9,_0x523fae,_0x3fe2a4,_0x5ca233){return _0x5e0b4f(_0x708b61,_0x4b5a9a,_0x5dfe86,_0xe4c9d9,_0x523fae,_0x3fe2a4,_0x5ca233);},'OnWJX':'prespawned-cluster-args-not-passed','SUnWQ':'SZrDK','GhAoN':'xvxVT','CkUTL':_0x265c28(0x25d),'RYhRk':_0x265c28(0x22a),'lWZXO':_0x265c28(0x25f),'zWyCy':_0x265c28(0x24b),'LeBYW':_0x265c28(0x288),'nemLs':function(_0x1d7c5f,_0x5a5d6e,_0x5db6b5,_0x14ad9b,_0x602f1e,_0x3f4077,_0x74cb3c){return _0x1d7c5f(_0x5a5d6e,_0x5db6b5,_0x14ad9b,_0x602f1e,_0x3f4077,_0x74cb3c);},'MewVT':'FVgDQ','HesDh':function(_0x15b301,_0x52b8b2){return _0x15b301!==_0x52b8b2;},'WwEXm':'nYSxp','nPPpS':_0x265c28(0x21a),'GMAiY':_0x265c28(0x179),'JchLE':_0x265c28(0x283),'nHqVC':function(_0x4b43f7,_0x4fd78a,_0x7098dd){return _0x4b43f7(_0x4fd78a,_0x7098dd);},'OLEzQ':_0x265c28(0x197),'lVmQm':function(_0x5eb695,_0x407523,_0x402830){return _0x5eb695(_0x407523,_0x402830);},'TxaiE':function(_0x738dd7,_0x4a58c5){return _0x738dd7===_0x4a58c5;},'gzRLH':function(_0x20d42d,_0x363fe7){return _0x20d42d===_0x363fe7;},'rAExO':_0x265c28(0x285),'Wzqyi':_0x265c28(0x1bf),'HYwbM':function(_0x1bd4e7,_0x3237f3,_0xf8d060,_0x25a7dc,_0xf90605,_0x4d46a7,_0x54f677,_0x59f0db){return _0x1bd4e7(_0x3237f3,_0xf8d060,_0x25a7dc,_0xf90605,_0x4d46a7,_0x54f677,_0x59f0db);},'oVfKp':'create-grid-checks-null-response','uwhMa':function(_0x5304fe,_0x30a743){return _0x5304fe===_0x30a743;},'yJilE':function(_0x270090,_0x13fe88){return _0x270090===_0x13fe88;},'tjzPW':_0x265c28(0x26f),'nGgcN':'FDYdI','usXWk':_0x265c28(0x16a),'nYkyS':_0x265c28(0x19d),'qgExZ':function(_0x1fb924,_0x30723a){return _0x1fb924===_0x30723a;},'XuRpz':_0x265c28(0x1eb),'sTmev':_0x265c28(0x1b0),'qUttc':_0x265c28(0x1ef),'HrKlB':_0x265c28(0x190),'QZlgM':function(_0x1cb4e1,_0x17adaf){return _0x1cb4e1!==_0x17adaf;},'Yrdvk':_0x265c28(0x249),'sLtYX':_0x265c28(0x239),'wYqRG':function(_0xaae8,_0x4cc949,_0x25d815,_0x3353a3,_0x5f14c6,_0xa066ad,_0x529c17,_0x43ad80){return _0xaae8(_0x4cc949,_0x25d815,_0x3353a3,_0x5f14c6,_0xa066ad,_0x529c17,_0x43ad80);},'zpieb':_0x265c28(0x185),'wKuPD':function(_0x4a3c4e,_0x16ee78){return _0x4a3c4e!==_0x16ee78;},'SYfCn':_0x265c28(0x167),'Regvk':function(_0x5a04bd,_0x4ecdd4){return _0x5a04bd===_0x4ecdd4;},'kSysK':_0x265c28(0x1f6),'btkLf':_0x265c28(0x1b7),'mxTab':function(_0x5ab10c,_0x43e46b){return _0x5ab10c===_0x43e46b;},'jjZku':function(_0x236924,_0x5bb3d6){return _0x236924!==_0x5bb3d6;},'jxPqR':_0x265c28(0x1e9),'YkidT':_0x265c28(0x144),'TnAnh':_0x265c28(0x1fe),'gkGBy':_0x265c28(0x235),'KRNGY':function(_0x5f46c8,_0x2cd602){return _0x5f46c8===_0x2cd602;},'yPKFb':_0x265c28(0x206),'GPjDf':function(_0x39c1cc,_0xbf1335){return _0x39c1cc!==_0xbf1335;},'PpBPM':_0x265c28(0x1f9),'FjHpW':function(_0x1838f1,_0x246f42){return _0x1838f1===_0x246f42;},'AqieN':_0x265c28(0x146),'HijBM':'lzgXX','uQQCd':function(_0x1aff3b,_0x5ef578,_0x1fad63,_0xee65f2,_0x55c706,_0x2c861a,_0x528058,_0x1d7198,_0x9e4f71,_0x3682f2,_0x9cfb5c,_0x2749ba){return _0x1aff3b(_0x5ef578,_0x1fad63,_0xee65f2,_0x55c706,_0x2c861a,_0x528058,_0x1d7198,_0x9e4f71,_0x3682f2,_0x9cfb5c,_0x2749ba);},'haFUB':function(_0x24c36c,_0x3cf5d3){return _0x24c36c===_0x3cf5d3;},'jxOHL':_0x265c28(0x284),'LYskw':_0x265c28(0x17d),'bjYsO':_0x265c28(0x187),'UVsgR':'aZsBv','NbhsW':function(_0x95b843,_0x39a942,_0xb05c62,_0x33257d,_0xbec186,_0x2a887d,_0x2ec924,_0x484d9c,_0x1083e9,_0x2379cb,_0x4d2cd9,_0x57ed25){return _0x95b843(_0x39a942,_0xb05c62,_0x33257d,_0xbec186,_0x2a887d,_0x2ec924,_0x484d9c,_0x1083e9,_0x2379cb,_0x4d2cd9,_0x57ed25);},'sQesQ':_0x265c28(0x262),'yLoFA':_0x265c28(0x191),'SEmPA':function(_0x2808f8,_0x2872fb,_0x57edf6,_0x1e63d3,_0x1c76d5,_0x4897a4,_0x4b60ee){return _0x2808f8(_0x2872fb,_0x57edf6,_0x1e63d3,_0x1c76d5,_0x4897a4,_0x4b60ee);},'tUsXg':function(_0x15c0bf,_0x5528ab){return _0x15c0bf!==_0x5528ab;},'chshj':function(_0x1367a9,_0x41663c){return _0x1367a9===_0x41663c;},'hJktC':_0x265c28(0x171),'qXVqa':function(_0x46484f,_0x29b99e){return _0x46484f!=_0x29b99e;},'XNQHp':function(_0x5e41f1,_0x295882){return _0x5e41f1!==_0x295882;},'owIgB':function(_0x372f11,_0x538dd7){return _0x372f11>_0x538dd7;},'dxdBX':function(_0x3c9f6c,_0x393221){return _0x3c9f6c===_0x393221;},'RCMdL':_0x265c28(0x253),'Moepl':function(_0x389317,_0x435498,_0x41d12c,_0x4056e1,_0x40002f,_0x374c6b,_0x347de0,_0x5eed44){return _0x389317(_0x435498,_0x41d12c,_0x4056e1,_0x40002f,_0x374c6b,_0x347de0,_0x5eed44);},'WEFFU':_0x265c28(0x155),'IjUJz':function(_0x1ab2c2,_0x40094c){return _0x1ab2c2===_0x40094c;},'JemiC':_0x265c28(0x23f),'suTnI':_0x265c28(0x13c),'ayNDS':_0x265c28(0x148),'ioNOF':'3|2|4|0|1','jkMBE':_0x265c28(0x178),'jpGsI':'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.','Fsceo':function(_0x421563,_0x57e277){return _0x421563===_0x57e277;},'kZAig':function(_0x451e0b,_0x209ff4){return _0x451e0b===_0x209ff4;},'IUbcD':function(_0x2b46c5,_0x52fbb3){return _0x2b46c5(_0x52fbb3);},'pXrGT':_0x265c28(0x19f),'WKtKo':function(_0x36b8ef,_0x55aad0){return _0x36b8ef!==_0x55aad0;},'MANHy':'default','UxLCz':_0x265c28(0x217),'ZdHhr':_0x265c28(0x1d0),'Lynwo':_0x265c28(0x1e3),'ioFlR':_0x265c28(0x24a),'aDHgb':_0x265c28(0x1d4),'FdFzd':function(_0x416ee4,_0x10da9c){return _0x416ee4===_0x10da9c;},'vSvNq':function(_0x37fb4b,_0x2ed867,_0x4eda83,_0x57be29,_0x1393f1,_0xa24dbe,_0x2606d5,_0x18c028,_0xd397fa,_0x534ff7,_0x2017f3){return _0x37fb4b(_0x2ed867,_0x4eda83,_0x57be29,_0x1393f1,_0xa24dbe,_0x2606d5,_0x18c028,_0xd397fa,_0x534ff7,_0x2017f3);},'hSTNp':_0x265c28(0x186),'Cnsml':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','homdx':function(_0x554be2,_0x36d1f0,_0x20873c,_0x938f55,_0x1ba3d8){return _0x554be2(_0x36d1f0,_0x20873c,_0x938f55,_0x1ba3d8);},'XtJfn':function(_0x5d1c8c,_0x23826c,_0x28462e){return _0x5d1c8c(_0x23826c,_0x28462e);},'qeDyr':_0x265c28(0x1b2),'wQphg':_0x265c28(0x17f),'ImpAN':_0x265c28(0x267),'EPKqJ':function(_0xd238b4,_0x297014){return _0xd238b4===_0x297014;},'hqdum':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','rYjpQ':function(_0x975721,_0xa22bca,_0x4f34b6,_0x873c8c,_0x3b8b1b,_0x567d65,_0x2d1530,_0x3a7a64){return _0x975721(_0xa22bca,_0x4f34b6,_0x873c8c,_0x3b8b1b,_0x567d65,_0x2d1530,_0x3a7a64);},'VYsao':_0x265c28(0x278),'RoxPy':_0x265c28(0x170),'qzqsT':_0x265c28(0x138),'dzmiy':_0x265c28(0x1d1),'mzXqi':'Deleting\x20the\x20CloudFormation\x20Stacks','gXWmG':function(_0x44b842,_0x238b8b,_0x256286,_0xe53376,_0x418ba8,_0x4f2b81){return _0x44b842(_0x238b8b,_0x256286,_0xe53376,_0x418ba8,_0x4f2b81);},'nCILa':_0x265c28(0x22c)};let _0x5db38a=![],_0x572b65=![],_0x5e0b5d,_0x4ba814,_0x3aec04,_0xea956,_0x5a7d1a,_0x3d58ee,_0x18801a,_0xf35b14,_0x27c47f,_0x532b5e,_0x291a58,_0x5288b3,_0x32ba03,_0x52bc86,_0x5a52fc=0x1,_0x48d3bc=0xe;try{global_registry[_0x265c28(0x14d)]=_0x3e2bf6[_0x265c28(0x28a)](uuidv4),global_registry[_0x265c28(0x275)]=![];if(!fs[_0x265c28(0x286)](_0x3e2bf6['yuyOr'](getCredentialsPath))){if(_0x3e2bf6[_0x265c28(0x276)](_0x3e2bf6[_0x265c28(0x1d6)],_0x3e2bf6[_0x265c28(0x263)])){const _0x5c6ec1={};_0x5c6ec1['type']=_0x5edc3f['LOG'],_0x5c6ec1[_0x265c28(0x18e)]='Cluster\x20'+_0x40535e+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x5ea718[_0x265c28(0x192)](_0x5a7fe6,_0x5c6ec1,_0x3e2bf6[_0x265c28(0x1cd)]),_0x2a4582[_0x265c28(0x1bc)](_0x265c28(0x292)+_0x41b044+_0x265c28(0x1a6)),_0x16b735=!![];if(_0x3e2bf6[_0x265c28(0x26e)](_0x384898,!![]))throw new _0x3d055a(_0x265c28(0x292)+_0x11c476+_0x265c28(0x27c));}else console['error'](_0x3e2bf6[_0x265c28(0x1f1)]),await _0x3e2bf6['kjGgL'](sendInstrumentationEvent,_0x22d0bd,_0x3e2bf6[_0x265c28(0x14f)],messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x147)],null,_0x22d0bd),process[_0x265c28(0x17a)](0x1);}await _0x3e2bf6['UrZYp'](sendInstrumentationEvent,_0x22d0bd,_0x3e2bf6[_0x265c28(0x14f)],messageTypes[_0x265c28(0x202)],null,null,_0x22d0bd);const _0x13e15c=JSON['parse'](fs['readFileSync'](_0x3e2bf6['Aeyrx'](getCredentialsPath)));global_registry[_0x265c28(0x27e)]=_0x13e15c['Browserstack']['username'],global_registry[_0x265c28(0x209)]=_0x13e15c[_0x265c28(0x217)][_0x265c28(0x290)];const _0x55ffd3=WS_ENDPOINT[_0x265c28(0x270)](_0x3e2bf6[_0x265c28(0x1ed)],_0x13e15c['Browserstack'][_0x265c28(0x23e)])['replace'](_0x3e2bf6[_0x265c28(0x1df)],_0x13e15c[_0x265c28(0x217)][_0x265c28(0x290)]),_0x3a834e={};_0x3a834e[_0x265c28(0x161)]=ws,_0x3a834e['connectionTimeout']=0x36ee80,_0x5288b3=new ReconnectingWebSocket(_0x55ffd3,[],_0x3a834e),logger[_0x265c28(0x1ae)](_0x3e2bf6[_0x265c28(0x1aa)]),webSocketUtils[_0x265c28(0x1a4)](_0x5288b3,_0x22d0bd[_0x265c28(0x189)],_0x22d0bd['password']);const _0x376e39=_0x22d0bd[_0x265c28(0x1c4)]||DEFAULT_GRID_NAME;if(_0x22d0bd['clusterName']||_0x22d0bd[_0x265c28(0x227)]||_0x22d0bd[_0x265c28(0x1e1)]){if(_0x3e2bf6[_0x265c28(0x142)](_0x3e2bf6[_0x265c28(0x1af)],_0x3e2bf6[_0x265c28(0x1af)]))_0x389ed7[_0x265c28(0x1bc)](_0x265c28(0x196)+_0x4963a0['stringify'](_0x58786c)+'\x20');else{if(!(_0x22d0bd[_0x265c28(0x159)]&&_0x22d0bd['cloudProvider']&&_0x22d0bd[_0x265c28(0x1e1)])){if(_0x3e2bf6[_0x265c28(0x140)](_0x3e2bf6[_0x265c28(0x172)],_0x3e2bf6[_0x265c28(0x141)])){const _0x561b45=_0x3e2bf6['Hjccx']['split']('|');let _0xf02fda=0x0;while(!![]){switch(_0x561b45[_0xf02fda++]){case'0':_0x3e2bf6[_0x265c28(0x18a)](_0x5c2cf7[_0x265c28(0x25c)],_0xeb8020)&&_0x246f0b[_0x265c28(0x25c)]&&(_0x4bb186['isPrivateGrid']=!![]);continue;case'1':_0x11b24c=_0x3bc6f7[_0x265c28(0x1d2)];continue;case'2':const _0x315e8e={};_0x315e8e[_0x265c28(0x18c)]=_0x1440c9[_0x265c28(0x23c)],_0x315e8e[_0x265c28(0x18e)]=_0x286a64,_0x37f8b7[_0x265c28(0x192)](_0x307d94,_0x315e8e);continue;case'3':_0x9407c='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x863722;continue;case'4':_0xfdd11a=null;continue;case'5':_0x163605=_0x3da8b5[_0x265c28(0x20f)];continue;case'6':_0x187f80=_0x42c81a['concurrency'];continue;case'7':_0x3e2bf6[_0x265c28(0x158)](_0x52f120,_0x52b47e,_0x1a9871,_0x3966cc,_0x14e337,_0x2d7bae,_0x135c51,_0x5a8a49,_0x574ca2,_0x51a065,_0x27f388,_0x39b709);continue;case'8':_0x173053=null;continue;case'9':_0x4e947b=_0x1e74fb[_0x265c28(0x1ca)];continue;case'10':_0x24ff03[_0x265c28(0x1bc)](_0x943aca);continue;case'11':_0x5b4263=_0x53d14b[_0x265c28(0x1db)];continue;case'12':_0x5c2039=null;continue;case'13':_0x24c46d=_0x336502[_0x265c28(0x233)];continue;case'14':_0x10e1e5=_0x528476[_0x265c28(0x205)];continue;}break;}}else _0x5e0b5d=_0x3e2bf6[_0x265c28(0x228)],await _0x3e2bf6[_0x265c28(0x20d)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x26b)],_0x3e2bf6[_0x265c28(0x1c5)]),logger['error'](_0x5e0b5d),process[_0x265c28(0x17a)](0x1);}![AWS,AZURE,GCP]['includes'](_0x22d0bd[_0x265c28(0x227)][_0x265c28(0x237)]())&&(_0x3e2bf6[_0x265c28(0x142)](_0x3e2bf6[_0x265c28(0x14e)],_0x3e2bf6[_0x265c28(0x294)])?(_0x5e0b5d=_0x3e2bf6[_0x265c28(0x219)],await _0x3e2bf6['CZbIy'](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x194)],_0x3e2bf6['BPPpR']),logger[_0x265c28(0x1e6)](_0x5e0b5d),process['exit'](0x1)):(_0x4de910[_0x265c28(0x1e1)]=_0x59227,_0x346271[_0x265c28(0x227)]=_0x20a0af,_0x15cdbb[_0x265c28(0x246)]=!![]));_0x22d0bd['privateGrid']&&_0x3e2bf6[_0x265c28(0x140)](_0x22d0bd[_0x265c28(0x25c)][_0x265c28(0x237)](),_0x3e2bf6[_0x265c28(0x174)])&&(_0x3e2bf6[_0x265c28(0x142)](_0x3e2bf6[_0x265c28(0x269)],_0x3e2bf6[_0x265c28(0x225)])?global_registry[_0x265c28(0x275)]=!![]:_0x1ab879=_0x89c9[_0x336c8b['gridProfile']]);global_registry[_0x265c28(0x227)]=_0x22d0bd[_0x265c28(0x227)],global_registry[_0x265c28(0x1c0)]=_0x22d0bd[_0x265c28(0x1e1)],global_registry[_0x265c28(0x159)]=_0x22d0bd[_0x265c28(0x159)];const _0x27b16c=await _0x3e2bf6[_0x265c28(0x198)](getCloudProviderObject,_0x22d0bd[_0x265c28(0x227)],_0x22d0bd['clusterName'],_0x376e39,_0x5288b3,webSocketUtils,_0x22d0bd),_0x3ee423=await _0x27b16c[_0x265c28(0x240)]();if(!_0x3ee423){if(_0x3e2bf6[_0x265c28(0x142)](_0x3e2bf6['MewVT'],_0x3e2bf6[_0x265c28(0x175)])){const _0x1f5cef={};_0x1f5cef[_0x265c28(0x200)]=_0x3e2bf6[_0x265c28(0x20b)],_0x1f5cef[_0x265c28(0x18c)]=_0x3e2bf6['JmBcH'];const _0x4532c7={};_0x4532c7[_0x265c28(0x200)]=_0x3e2bf6[_0x265c28(0x15e)],_0x4532c7[_0x265c28(0x18c)]=_0x3e2bf6[_0x265c28(0x1bb)];const _0x286318={};_0x286318[_0x265c28(0x200)]=_0x3e2bf6[_0x265c28(0x16e)],_0x286318['type']=_0x3e2bf6['JmBcH'];const _0x55e8cb={};_0x55e8cb[_0x265c28(0x200)]=_0x3e2bf6[_0x265c28(0x18d)],_0x55e8cb[_0x265c28(0x18c)]=_0x3e2bf6[_0x265c28(0x1bb)];const _0x2fc754={};_0x2fc754[_0x265c28(0x200)]=_0x3e2bf6[_0x265c28(0x1a1)],_0x2fc754[_0x265c28(0x18c)]=_0x3e2bf6['JmBcH'];const _0x533921={};_0x533921[_0x265c28(0x200)]=_0x3e2bf6[_0x265c28(0x1d9)],_0x533921['type']=_0x3e2bf6[_0x265c28(0x1bb)];const _0x9134c0={};_0x9134c0[_0x265c28(0x200)]=_0x3e2bf6[_0x265c28(0x1a3)],_0x9134c0[_0x265c28(0x18c)]=_0x3e2bf6[_0x265c28(0x230)],_0x9134c0[_0x265c28(0x207)]=![];const _0x100b0a={};return _0x100b0a[_0x265c28(0x1e8)]=_0x1f5cef,_0x100b0a['grid-profile']=_0x4532c7,_0x100b0a[_0x265c28(0x157)]=_0x286318,_0x100b0a['cloud-provider']=_0x55e8cb,_0x100b0a['region']=_0x2fc754,_0x100b0a['private-grid']=_0x533921,_0x100b0a[_0x265c28(0x212)]=_0x9134c0,_0xa81bf1['usage'](_0x4132c0[_0x265c28(0x1de)])[_0x265c28(0x28f)](_0x90c761)[_0x265c28(0x287)](_0x100b0a)[_0x265c28(0x1f8)](_0x3e2bf6[_0x265c28(0x293)])[_0x265c28(0x1b8)];}else logger[_0x265c28(0x1bc)](_0x265c28(0x268)+_0x22d0bd[_0x265c28(0x159)]+_0x265c28(0x134)),_0x5db38a=![],_0x572b65=!![];}else{if(_0x3e2bf6['HesDh'](_0x3e2bf6['WwEXm'],_0x3e2bf6['WwEXm']))throw new _0x579626('Cluster\x20'+_0x5ba6e2+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else _0x5db38a=!![];}_0x3aec04=_0x22d0bd[_0x265c28(0x159)],_0x4ba814=_0x22d0bd[_0x265c28(0x227)][_0x265c28(0x237)](),_0xea956=_0x22d0bd[_0x265c28(0x1e1)];}}else{if(_0x22d0bd['gridProfile']){if(_0x3e2bf6['yNXuU'](_0x3e2bf6[_0x265c28(0x1be)],_0x3e2bf6[_0x265c28(0x13f)])){const _0x5cf167=_0x3e2bf6['gHqWC'][_0x265c28(0x1d8)]('|');let _0x36162e=0x0;while(!![]){switch(_0x5cf167[_0x36162e++]){case'0':_0x36b8b7['hubVersion']=_0x30dc65[_0x265c28(0x1d2)];continue;case'1':const _0x26401c={};_0x26401c[_0x265c28(0x18c)]=_0x254ae6[_0x265c28(0x23c)],_0x26401c[_0x265c28(0x18e)]=_0x162ce3,_0x6705d2[_0x265c28(0x192)](_0x26501a,_0x26401c);continue;case'2':_0x57f41c['info'](_0x3fe58c);continue;case'3':_0x1fb3c1[_0x265c28(0x227)]=_0x30c376;continue;case'4':_0x113751[_0x265c28(0x233)]=_0x38b36a[_0x265c28(0x233)];continue;case'5':_0x53c27e[_0x265c28(0x159)]=_0x20c5fd;continue;case'6':_0x176d17[_0x265c28(0x1c0)]=_0x5599d2;continue;case'7':_0x3220bd=_0x265c28(0x281)+_0x4d4b50+_0x265c28(0x280)+_0x257076+'\x27';continue;case'8':const _0x5a8075={};_0x5a8075[_0x265c28(0x18c)]=_0x427616['CLI_RUN_STARTED'],_0x5a8075[_0x265c28(0x18e)]=_0x3e2bf6[_0x265c28(0x264)],_0x3b372f[_0x265c28(0x192)](_0x5ca2f9,_0x5a8075);continue;}break;}}else global_registry[_0x265c28(0x1c6)]=_0x22d0bd['gridProfile'];}}global_registry[_0x265c28(0x1c4)]=_0x22d0bd[_0x265c28(0x1c4)];const _0x2afdc1={'method':_0x3e2bf6[_0x265c28(0x136)],'headers':_0x3e2bf6['nHqVC'](getAuthHeader,_0x13e15c[_0x265c28(0x217)][_0x265c28(0x23e)],_0x13e15c[_0x265c28(0x217)][_0x265c28(0x290)]),'throwHttpErrors':![]},_0x55cc8e={};_0x55cc8e[_0x265c28(0x1c4)]=_0x376e39;const _0x4a49fb=_0x55cc8e;_0x572b65&&(_0x3e2bf6[_0x265c28(0x140)](_0x3e2bf6['OLEzQ'],_0x3e2bf6[_0x265c28(0x181)])?(_0x4a49fb['region']=_0xea956,_0x4a49fb[_0x265c28(0x227)]=_0x4ba814,_0x4a49fb['newCluster']=!![]):_0x8c9fe3=!![]);const _0x29bc10=_0x265c28(0x1ab)+AG_API_URL+'/packages/cli/create-grid-checks',_0x4b80a8={'searchParams':_0x4a49fb,'throwHttpErrors':![],..._0x2afdc1},_0x2a0463=_0x4b80a8,_0x283550=await _0x3e2bf6[_0x265c28(0x143)](got,_0x29bc10,_0x2a0463);(_0x3e2bf6[_0x265c28(0x140)](_0x283550,null)||_0x3e2bf6[_0x265c28(0x20e)](_0x283550,undefined))&&(_0x3e2bf6[_0x265c28(0x149)](_0x3e2bf6[_0x265c28(0x238)],_0x3e2bf6['rAExO'])?(_0x5e0b5d=_0x3e2bf6[_0x265c28(0x137)],await _0x3e2bf6['HYwbM'](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6['oVfKp'],_0x3e2bf6[_0x265c28(0x1c5)]),logger[_0x265c28(0x1e6)](_0x5e0b5d),process[_0x265c28(0x17a)](0x1)):_0x36c8cd[_0x265c28(0x275)]=!![]);_0x3e2bf6[_0x265c28(0x21b)](_0x283550[_0x265c28(0x1bd)],0x191)&&(_0x3e2bf6[_0x265c28(0x273)](_0x3e2bf6[_0x265c28(0x163)],_0x3e2bf6[_0x265c28(0x21f)])?_0x42ebbd=null:(_0x5e0b5d=_0x3e2bf6[_0x265c28(0x241)],await _0x3e2bf6[_0x265c28(0x20d)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x220)],_0x3e2bf6[_0x265c28(0x1c5)]),logger[_0x265c28(0x1e6)](_0x5e0b5d),process[_0x265c28(0x17a)](0x1)));_0x3e2bf6['HesDh'](_0x283550[_0x265c28(0x1bd)],0xc8)&&(_0x3e2bf6[_0x265c28(0x19e)](_0x3e2bf6[_0x265c28(0x21d)],_0x3e2bf6[_0x265c28(0x1b4)])?_0x4ec7a5['isPrivateGrid']=!![]:(_0x5e0b5d=_0x265c28(0x24c)+JSON[_0x265c28(0x1fb)](_0x283550[_0x265c28(0x274)]),await _0x3e2bf6[_0x265c28(0x20d)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x266)],_0x3e2bf6[_0x265c28(0x1c5)]),logger['error'](_0x5e0b5d),process[_0x265c28(0x17a)](0x1)));const _0x306060=JSON[_0x265c28(0x1fc)](_0x283550[_0x265c28(0x274)]),_0x4ca6a4={};_0x4ca6a4[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x135)],_0x4ca6a4[_0x265c28(0x18e)]=_0x3e2bf6[_0x265c28(0x264)],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x4ca6a4);const _0x79a45c={};_0x79a45c[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x79a45c[_0x265c28(0x18e)]=_0x3e2bf6[_0x265c28(0x1ea)],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x79a45c);_0x306060[_0x265c28(0x259)]&&(_0x3e2bf6[_0x265c28(0x271)](_0x3e2bf6[_0x265c28(0x1ac)],_0x3e2bf6[_0x265c28(0x20a)])?(_0x5e0b5d=_0x265c28(0x1d5)+_0x376e39+_0x265c28(0x16d),await _0x3e2bf6[_0x265c28(0x1a8)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes['ERROR'],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x1e0)],_0x3e2bf6['BPPpR']),logger[_0x265c28(0x1e6)](_0x5e0b5d),process['exit'](0x1)):_0x13d5ff[_0x265c28(0x1e6)](_0x265c28(0x193)+_0x259fe9+'\x20\x0a'+_0x172e61['stringify'](_0x1d8fd0[_0x265c28(0x176)])));const _0x394083=_0x306060[_0x265c28(0x19a)];let _0xbdbab4=_0x394083[_0x306060['defaultGridProfile']];_0x22d0bd[_0x265c28(0x1c6)]&&(_0x3e2bf6[_0x265c28(0x24d)](_0x3e2bf6[_0x265c28(0x156)],_0x3e2bf6[_0x265c28(0x156)])?(_0x57a9e8[_0x265c28(0x1bc)](_0x265c28(0x268)+_0x33bb83[_0x265c28(0x159)]+_0x265c28(0x134)),_0x3991d5=![],_0x1f03a4=!![]):_0xbdbab4=_0x394083[_0x22d0bd['gridProfile']]);if(_0x3e2bf6[_0x265c28(0x149)](_0x5db38a,![])&&_0x3e2bf6[_0x265c28(0x15a)](_0x572b65,![])){if(_0x3e2bf6['QZlgM'](_0x3e2bf6['kSysK'],_0x3e2bf6[_0x265c28(0x26d)])){_0x3e2bf6[_0x265c28(0x1d3)](_0xbdbab4,undefined)&&(_0x3e2bf6['jjZku'](_0x3e2bf6['jxPqR'],_0x3e2bf6[_0x265c28(0x282)])?(_0x5e0b5d=_0x3e2bf6[_0x265c28(0x1b1)],await _0x3e2bf6[_0x265c28(0x1a8)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6['gkGBy'],_0x3e2bf6[_0x265c28(0x1c5)]),logger[_0x265c28(0x1e6)](_0x5e0b5d),process[_0x265c28(0x17a)](0x1)):_0x4a0a6e[_0x265c28(0x275)]=!![]);global_registry[_0x265c28(0x20c)]=_0xbdbab4['id'],_0x5e0b5d=_0x265c28(0x1fd)+_0x376e39+_0x265c28(0x152)+_0xbdbab4[_0x265c28(0x1f4)]+_0x265c28(0x27a),logger[_0x265c28(0x1bc)](_0x5e0b5d);const _0x379dba={};_0x379dba[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x379dba['message']=_0x5e0b5d,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x379dba),_0x4ba814=_0xbdbab4['cloudProvider'],_0x3aec04=_0xbdbab4[_0x265c28(0x159)],_0xea956=_0xbdbab4[_0x265c28(0x1e1)],_0x5a7d1a=_0xbdbab4[_0x265c28(0x257)],_0x3d58ee=_0xbdbab4[_0x265c28(0x20f)],_0x18801a=_0xbdbab4[_0x265c28(0x223)],_0xf35b14=_0xbdbab4['securityGroups'],_0x27c47f=_0xbdbab4[_0x265c28(0x23a)],_0x532b5e=_0xbdbab4[_0x265c28(0x205)],_0x5a52fc=_0xbdbab4[_0x265c28(0x1ca)],_0x48d3bc=_0xbdbab4[_0x265c28(0x1db)],_0x32ba03=_0x306060[_0x265c28(0x1d2)],_0x52bc86=_0x306060[_0x265c28(0x233)],_0x18801a&&_0x3e2bf6[_0x265c28(0x1dd)](_0x18801a[_0x265c28(0x195)],0x0)&&(_0x3e2bf6[_0x265c28(0x15a)](_0x3e2bf6[_0x265c28(0x21e)],_0x3e2bf6[_0x265c28(0x21e)])?_0x18801a=null:_0x3f8545=null),_0x27c47f&&_0x3e2bf6['gzRLH'](_0x27c47f[_0x265c28(0x195)],0x0)&&(_0x3e2bf6[_0x265c28(0x14a)](_0x3e2bf6[_0x265c28(0x224)],_0x3e2bf6[_0x265c28(0x224)])?_0x855786['info'](_0x265c28(0x15f)+_0x5ca249+'\x20'):_0x27c47f=null),_0x3e2bf6[_0x265c28(0x271)](_0xbdbab4['privateGrid'],undefined)&&_0xbdbab4[_0x265c28(0x25c)]&&(_0x3e2bf6['FjHpW'](_0x3e2bf6[_0x265c28(0x28e)],_0x3e2bf6[_0x265c28(0x166)])?(_0x4a3128=_0x2dc4be[_0x265c28(0x183)],_0x3c6a73=_0x3e2bf6[_0x265c28(0x1f7)]):global_registry[_0x265c28(0x275)]=!![]),_0x3e2bf6[_0x265c28(0x1cc)](updateGlobalRegistryWithConfig,_0x4ba814,_0x3aec04,_0xea956,_0x5a7d1a,_0x3d58ee,_0x532b5e,_0xbdbab4,_0x32ba03,_0x52bc86,_0x5a52fc,_0x48d3bc);}else _0x186d76[_0x265c28(0x27f)]();}else{if(_0x3e2bf6['haFUB'](_0x572b65,!![])){if(_0x3e2bf6[_0x265c28(0x1ba)](_0x3e2bf6[_0x265c28(0x23d)],_0x3e2bf6['LYskw'])){_0x5e0b5d='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x376e39,logger[_0x265c28(0x1bc)](_0x5e0b5d);const _0x57fad5={};_0x57fad5[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x57fad5[_0x265c28(0x18e)]=_0x5e0b5d,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x57fad5),_0x5a7d1a=_0xbdbab4['concurrency'],_0x3d58ee=_0xbdbab4[_0x265c28(0x20f)],_0x18801a=null,_0xf35b14=null,_0x27c47f=null,_0x532b5e=_0xbdbab4[_0x265c28(0x205)],_0x5a52fc=_0xbdbab4[_0x265c28(0x1ca)],_0x48d3bc=_0xbdbab4[_0x265c28(0x1db)],_0x32ba03=_0x306060['hubVersion'],_0x52bc86=_0x306060['browserVersion'];if(_0x3e2bf6[_0x265c28(0x18a)](_0xbdbab4['privateGrid'],undefined)&&_0xbdbab4[_0x265c28(0x25c)]){if(_0x3e2bf6[_0x265c28(0x1ba)](_0x3e2bf6[_0x265c28(0x22f)],_0x3e2bf6[_0x265c28(0x1ff)]))global_registry[_0x265c28(0x275)]=!![];else{const _0xb9a5dd={};_0xb9a5dd[_0x265c28(0x18c)]=_0x1055c4['LOG'],_0xb9a5dd[_0x265c28(0x18e)]=_0x349e5f,_0x14a9d0['sendEventToBackend'](_0x3105f2,_0xb9a5dd,_0x3e2bf6[_0x265c28(0x1c5)],!![]);}}_0x3e2bf6['NbhsW'](updateGlobalRegistryWithConfig,_0x4ba814,_0x3aec04,_0xea956,_0x5a7d1a,_0x3d58ee,_0x532b5e,_0xbdbab4,_0x32ba03,_0x52bc86,_0x5a52fc,_0x48d3bc);}else _0x29a86c[_0x265c28(0x1c6)]=_0x1a9209['gridProfile'];}else{if(_0x3e2bf6[_0x265c28(0x142)](_0x3e2bf6[_0x265c28(0x232)],_0x3e2bf6[_0x265c28(0x232)]))_0x3ca245=_0x3e2bf6[_0x265c28(0x1a9)];else{const _0x5534b8=_0x3e2bf6[_0x265c28(0x199)][_0x265c28(0x1d8)]('|');let _0x5b546c=0x0;while(!![]){switch(_0x5534b8[_0x5b546c++]){case'0':global_registry[_0x265c28(0x227)]=_0x4ba814;continue;case'1':global_registry[_0x265c28(0x1c0)]=_0xea956;continue;case'2':global_registry['browserVersion']=_0x306060[_0x265c28(0x233)];continue;case'3':logger[_0x265c28(0x1bc)](_0x5e0b5d);continue;case'4':const _0x16a91a={};_0x16a91a['type']=WS_EVENTS[_0x265c28(0x23c)],_0x16a91a[_0x265c28(0x18e)]=_0x5e0b5d,webSocketUtils['sendEventToBackend'](_0x5288b3,_0x16a91a);continue;case'5':_0x5e0b5d=_0x265c28(0x281)+_0x376e39+_0x265c28(0x280)+_0x3aec04+'\x27';continue;case'6':global_registry[_0x265c28(0x159)]=_0x3aec04;continue;case'7':const _0x8ba462={};_0x8ba462['type']=WS_EVENTS[_0x265c28(0x135)],_0x8ba462[_0x265c28(0x18e)]=_0x3e2bf6[_0x265c28(0x264)],webSocketUtils['sendEventToBackend'](_0x5288b3,_0x8ba462);continue;case'8':global_registry['hubVersion']=_0x306060[_0x265c28(0x1d2)];continue;}break;}}}}const _0x4a2e3c=await _0x3e2bf6['SEmPA'](getCloudProviderObject,_0x4ba814,_0x3aec04,_0x376e39,_0x5288b3,webSocketUtils,_0x22d0bd);_0x3e2bf6[_0x265c28(0x14b)](_0x4ba814,AZURE)&&_0x4a2e3c[_0x265c28(0x27f)]();let _0x1fb151;if(_0x3e2bf6[_0x265c28(0x1ad)](_0x5db38a,![])){_0x5e0b5d=_0x265c28(0x218)+_0xea956+').';const _0xf1016e={};_0xf1016e[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0xf1016e[_0x265c28(0x18e)]=_0x5e0b5d,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0xf1016e),logger[_0x265c28(0x1bc)](_0x5e0b5d);const _0x493cb8=await _0x4a2e3c[_0x265c28(0x240)]();if(_0x493cb8){const _0x225b86={};_0x225b86[_0x265c28(0x18c)]=WS_EVENTS['LOG'],_0x225b86['message']=_0x265c28(0x292)+_0x3aec04+_0x265c28(0x1a6),webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x225b86,_0x3e2bf6[_0x265c28(0x1cd)]),logger[_0x265c28(0x1bc)](_0x265c28(0x292)+_0x3aec04+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x5db38a=!![];if(_0x3e2bf6[_0x265c28(0x1ad)](_0x572b65,!![]))throw new Error(_0x265c28(0x292)+_0x3aec04+_0x265c28(0x27c));}else{const _0xb272dd={};_0xb272dd[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0xb272dd[_0x265c28(0x18e)]=_0x3e2bf6[_0x265c28(0x24e)],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0xb272dd),logger[_0x265c28(0x1bc)](_0x3e2bf6[_0x265c28(0x24e)]);const _0x3e2d7c=_0x3e2bf6[_0x265c28(0x1f2)](_0x18801a,null)&&_0x3e2bf6[_0x265c28(0x244)](_0x18801a,undefined),_0x4804d7=_0x3e2bf6[_0x265c28(0x1f2)](_0x27c47f,null)&&_0x3e2bf6['XNQHp'](_0x27c47f,undefined)&&_0x3e2bf6[_0x265c28(0x13e)](_0x27c47f[_0x265c28(0x195)],0x0);if(_0x3e2d7c){_0x3e2bf6[_0x265c28(0x13b)](_0x4804d7,![])&&(_0x5e0b5d=_0x3e2bf6[_0x265c28(0x1ce)],await _0x3e2bf6['Moepl'](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes['ERROR'],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x162)],_0x3e2bf6[_0x265c28(0x1c5)]),logger[_0x265c28(0x1e6)](_0x5e0b5d),process['exit'](0x1));const _0x31957b=await _0x4a2e3c[_0x265c28(0x277)](_0x18801a);_0x3e2bf6['IjUJz'](_0x31957b,![])?(_0x5e0b5d=_0x3e2bf6['JemiC'],await _0x3e2bf6[_0x265c28(0x25a)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x1c7)],_0x3e2bf6[_0x265c28(0x1c5)]),logger[_0x265c28(0x1e6)](_0x5e0b5d),process[_0x265c28(0x17a)](0x1)):logger[_0x265c28(0x1bc)](_0x265c28(0x15f)+_0x18801a+'\x20');const _0x3e7da5=await _0x4a2e3c[_0x265c28(0x1b9)](_0x27c47f,_0x18801a);_0x3e2bf6[_0x265c28(0x20e)](_0x3e7da5[0x0],![])?(_0x5e0b5d=_0x265c28(0x1c9)+JSON[_0x265c28(0x1fb)](_0x3e7da5[0x1])+_0x265c28(0x173)+_0x18801a+_0x265c28(0x182),await _0x3e2bf6[_0x265c28(0x1a8)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x1c2)],_0x3e2bf6[_0x265c28(0x1c5)]),logger[_0x265c28(0x1e6)](_0x5e0b5d),process['exit'](0x1)):logger['info'](_0x265c28(0x196)+JSON['stringify'](_0x27c47f)+'\x20'),await _0x4a2e3c[_0x265c28(0x226)](_0x18801a,_0x27c47f);}else{const _0x5caec5=_0x3e2bf6['ioNOF'][_0x265c28(0x1d8)]('|');let _0x49296d=0x0;while(!![]){switch(_0x5caec5[_0x49296d++]){case'0':const _0x50f5ee={};_0x50f5ee[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x50f5ee['message']=_0x3e2bf6['jkMBE'],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x50f5ee);continue;case'1':logger[_0x265c28(0x1bc)](_0x3e2bf6[_0x265c28(0x247)]);continue;case'2':logger[_0x265c28(0x1bc)](_0x3e2bf6[_0x265c28(0x145)]);continue;case'3':const _0x9844e9={};_0x9844e9[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x9844e9['message']=_0x3e2bf6[_0x265c28(0x145)],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x9844e9);continue;case'4':await _0x4a2e3c['setupNewCluster'](_0x18801a,_0x27c47f);continue;}break;}}}}_0x5db38a&&_0x3e2bf6['Fsceo'](_0x4ba814,AZURE)&&(await _0x4a2e3c['updateClusterAlreadyPresent'](),await _0x4a2e3c[_0x265c28(0x222)]());const [_0x56186f,_0x278ddd,_0x13fd7b,_0x3dd9eb,_0x4d610b,_0x27d665]=await _0x3e2bf6[_0x265c28(0x143)](createK8sClient,_0x4a2e3c,_0x22d0bd[_0x265c28(0x1cf)]);_0x3e2bf6[_0x265c28(0x1f5)](_0x5db38a,![])&&_0x3e2bf6[_0x265c28(0x1e4)](_0x4ba814,AWS)&&(global_registry[_0x265c28(0x18b)]=!![],_0x1fb151=await _0x4a2e3c[_0x265c28(0x204)](_0x56186f,_0x22d0bd));try{_0x291a58=_0x3e2bf6[_0x265c28(0x28c)](kebabCase,_0x376e39),logger['info'](_0x3e2bf6[_0x265c28(0x203)]);const _0x5bf243={};_0x5bf243[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x5bf243[_0x265c28(0x18e)]=_0x3e2bf6[_0x265c28(0x203)],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x5bf243);if(_0x3e2bf6[_0x265c28(0x201)](_0x291a58,_0x3e2bf6[_0x265c28(0x151)])){const _0x346636={};_0x346636[_0x265c28(0x1b6)]=_0x3e2bf6[_0x265c28(0x13d)],_0x346636[_0x265c28(0x1b3)]=_0x3e2bf6[_0x265c28(0x13d)];const _0x4ccaac={};_0x4ccaac[_0x265c28(0x1f4)]=_0x291a58,_0x4ccaac[_0x265c28(0x261)]=_0x346636;const _0x5721a7={};_0x5721a7[_0x265c28(0x1e7)]=_0x4ccaac;const _0x35eb01=_0x5721a7,_0x4a62a5={};_0x4a62a5[_0x265c28(0x274)]=_0x35eb01,await _0x56186f['createNamespace'](_0x4a62a5),logger[_0x265c28(0x1bc)](_0x3e2bf6[_0x265c28(0x169)]);}const _0x2ae883={};_0x2ae883['type']=WS_EVENTS['LOG'],_0x2ae883['message']=_0x3e2bf6['Lynwo'],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x2ae883);const _0x4d9762={};_0x4d9762[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x4d9762['message']=_0x3e2bf6[_0x265c28(0x211)],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x4d9762),logger['info'](_0x3e2bf6[_0x265c28(0x25b)]);let _0x25f2c6={};_0x3e2bf6[_0x265c28(0x21c)](_0x4ba814,AZURE)&&(_0x25f2c6={'clientId':await _0x4a2e3c[_0x265c28(0x13a)](_0x265c28(0x295)+_0x3aec04)});await _0x3e2bf6[_0x265c28(0x150)](addGridComponents,_0x56186f,_0x278ddd,_0x13fd7b,_0x3dd9eb,_0x291a58,_0x3aec04,_0x1fb151,_0x4d610b,_0x27d665,_0x25f2c6),_0x5e0b5d=_0x3e2bf6['hSTNp'],logger[_0x265c28(0x1bc)](_0x5e0b5d);const _0x4fae11={};_0x4fae11[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x4fae11[_0x265c28(0x18e)]=_0x5e0b5d,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x4fae11),_0x5e0b5d=_0x3e2bf6['Cnsml'],logger[_0x265c28(0x1bc)](_0x5e0b5d);const _0x46fd04={};_0x46fd04['type']=WS_EVENTS['LOG'],_0x46fd04[_0x265c28(0x18e)]=_0x5e0b5d,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x46fd04),await _0x3e2bf6[_0x265c28(0x234)](waitForDeployment,_0x278ddd,_0x291a58,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x27d075=await _0x3e2bf6['XtJfn'](getNamespaceUID,_0x56186f,_0x291a58),_0x99f2f9=global_registry[_0x265c28(0x275)]?_0x3e2bf6[_0x265c28(0x214)]:_0x3e2bf6[_0x265c28(0x231)],_0x2822ad={};_0x2822ad[_0x265c28(0x1f4)]=_0x99f2f9,_0x2822ad[_0x265c28(0x180)]=_0x3e2bf6[_0x265c28(0x1e5)];const _0x2186d4=await _0x56186f[_0x265c28(0x255)](_0x2822ad);let _0x5a09a2=_0x4a2e3c[_0x265c28(0x258)](_0x2186d4)+'/'+_0x291a58,_0x293319=_0x3e2bf6['bRRVz'];try{const _0x3db0a7=_0x265c28(0x1ab)+AG_API_URL+_0x265c28(0x210)+_0x27d075,_0x8bac57=await _0x3e2bf6['lVmQm'](got,_0x3db0a7,_0x2afdc1);(_0x3e2bf6[_0x265c28(0x27b)](_0x8bac57,null)||_0x3e2bf6['chshj'](_0x8bac57,undefined))&&(_0x5e0b5d=_0x3e2bf6[_0x265c28(0x16c)],await _0x3e2bf6[_0x265c28(0x1dc)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6['VYsao'],_0x3e2bf6[_0x265c28(0x1c5)]),logger['error'](_0x5e0b5d),process[_0x265c28(0x17a)](0x1));_0x3e2bf6[_0x265c28(0x20e)](_0x8bac57[_0x265c28(0x1bd)],0x191)&&(_0x5e0b5d=_0x3e2bf6[_0x265c28(0x22b)],await _0x3e2bf6[_0x265c28(0x20d)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6['qzqsT'],_0x3e2bf6['BPPpR']),logger[_0x265c28(0x1e6)](_0x5e0b5d),process[_0x265c28(0x17a)](0x1));_0x3e2bf6[_0x265c28(0x14b)](_0x8bac57[_0x265c28(0x1bd)],0xc8)&&(_0x5e0b5d='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x8bac57),await _0x3e2bf6[_0x265c28(0x20d)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x27d)],_0x3e2bf6[_0x265c28(0x1c5)]),logger[_0x265c28(0x1e6)](_0x5e0b5d),process[_0x265c28(0x17a)](0x1));const _0x88b7e5=JSON[_0x265c28(0x1fc)](_0x8bac57['body']);_0x88b7e5[_0x265c28(0x183)]&&(_0x5a09a2=_0x88b7e5[_0x265c28(0x183)],_0x293319=_0x3e2bf6['SJabC']),global_registry[_0x265c28(0x275)]&&(_0x293319=_0x3e2bf6['bRRVz']);}catch(_0x121120){}_0x5e0b5d=_0x265c28(0x16f)+_0x5a09a2+'\x20',logger[_0x265c28(0x1bc)](_0x5e0b5d);const _0x3786c9={};_0x3786c9['type']=WS_EVENTS[_0x265c28(0x23c)],_0x3786c9[_0x265c28(0x18e)]=_0x5e0b5d,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x3786c9),_0x5e0b5d=_0x265c28(0x248)+_0x293319+_0x265c28(0x279)+_0x5a09a2+_0x265c28(0x242),logger[_0x265c28(0x1bc)](_0x5e0b5d);const _0x5c76d9={};_0x5c76d9['type']=WS_EVENTS[_0x265c28(0x23c)],_0x5c76d9[_0x265c28(0x18e)]=_0x5e0b5d,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x5c76d9);const _0x4f80d7={};_0x4f80d7[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x184)],_0x4f80d7[_0x265c28(0x18e)]=_0x265c28(0x245)+_0x5a09a2,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x4f80d7),await webSocketUtils[_0x265c28(0x25e)](0x7d0);}catch(_0xeb105){logger[_0x265c28(0x1e6)](_0x265c28(0x289)+_0xeb105+'\x20\x0a'+JSON[_0x265c28(0x1fb)](_0xeb105[_0x265c28(0x176)]));if(_0x3e2bf6[_0x265c28(0x21b)](_0x5db38a,![]))try{logger[_0x265c28(0x1bc)](_0x3e2bf6['mzXqi']),await _0x3e2bf6[_0x265c28(0x15c)](removeGridComponents,_0x56186f,_0x278ddd,_0x13fd7b,_0x3dd9eb,_0x291a58),await _0x4a2e3c[_0x265c28(0x165)](_0x56186f,global_registry[_0x265c28(0x1c0)]);}catch(_0x8bacc4){logger[_0x265c28(0x1e6)](_0x265c28(0x193)+_0x8bacc4+'\x20\x0a'+JSON['stringify'](_0x8bacc4[_0x265c28(0x176)]));}throw _0xeb105;}}catch(_0x356f9d){const _0x199549=_0x265c28(0x1b5)+_0x356f9d+'\x20\x0a'+JSON[_0x265c28(0x1fb)](_0x356f9d['stack']);if(_0x5288b3){const _0x55c5f0={};_0x55c5f0[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x55c5f0[_0x265c28(0x18e)]=_0x199549,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x55c5f0,_0x3e2bf6[_0x265c28(0x1c5)],!![]);}await webSocketUtils[_0x265c28(0x25e)](0x7d0);const _0x2e928d={};_0x2e928d[_0x265c28(0x1e6)]=_0x199549,await _0x3e2bf6['UrZYp'](sendInstrumentationEvent,_0x22d0bd,_0x3e2bf6[_0x265c28(0x14f)],messageTypes['ERROR'],_0x3e2bf6[_0x265c28(0x221)],_0x2e928d,_0x22d0bd),logger[_0x265c28(0x1e6)](_0x199549);}process[_0x265c28(0x17a)](0x0);};function a9_0x5f3b(){const _0x109410=['hqdum','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','bywCl','Grid\x20can\x20be\x20accessed\x20at:\x20','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','ZtnFo','\x20are\x20not\x20present\x20in\x20VPC:\x20','lWZXO','MewVT','stack','got','Cluster\x20created\x20successfully','hdhXF','exit','YfwRH','create-grid-called','nSiIi','Create\x20a\x20private/public\x20grid.','ingress-nginx-controller','namespace','OLEzQ','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','route53','CLI_RUN_FINISHED','create-grid-checks-grid-already-exists','Grid\x20spawned\x20on\x20the\x20cluster','NDpAI','<PasswordPlaceholder>','user','gkfhJ','isNewAWSCluster','type','tcARJ','message','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Grid\x20profile\x20fetched\x20from\x20backend','7|5|3|4|0|1|6|8|2','sendEventToBackend','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','RYhRk','length','Found\x20Subnets:\x20','gWrrz','nemLs','yLoFA','gridProfiles','command','../../cloudproviders/utils','create-grid-checks-auth-failed','qgExZ','Creating\x20namespace','20MTlWqw','RYNmN','1165OqaarL','sbzBA','addListeners','desc','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','DKMNx','wYqRG','bRRVz','wpdaw','https://','Yrdvk','chshj','debug','hIVjm','ahkCq','TnAnh','private-ingress-nginx-controller','managedBy','sTmev','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','createdBy','grYwU','argv','isSubnetsValid','HesDh','JmBcH','info','statusCode','nPPpS','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','clusterRegion','handler','ayNDS','181785fPvEbg','gridName','BPPpR','gridProfile','suTnI','uuid','Subnets:\x20','minNodes','cvoBt','uQQCd','YQQHe','RCMdL','skipTlsCertVerify','Namespace\x20Created','get-grid-url-non-200','hubVersion','mxTab','Spawning\x20Grid\x20on\x20the\x20Cluster','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','zeJhU','cFkib','split','svEGw','fpuCg','maxNodes','rYjpQ','KRNGY','create','pTyaz','zpieb','region','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','Namespace\x20created','Fsceo','ImpAN','error','metadata','grid-name','PQjqY','HrKlB','SGbsl','Fahnv','VrJjj','../../utils/utilityMethods','create-grid-checks-non-200','cloud-provider','KnHuq','qXVqa','http','name','kZAig','IQRwa','SJabC','help','yXvcz','uiXyS','stringify','parse','Will\x20be\x20spawning\x20the\x20grid\x20','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','UVsgR','description','WKtKo','INFO','pXrGT','setupAutoscaler','s3bucket','cBUNT','default','private-grid','bstackAccesskey','sLtYX','zUdLN','gridProfileId','CZbIy','TxaiE','instanceType','/packages/cli/get-grid-url?gridIdentifier=','ioFlR','skip-tls-cert-verify','9528WjXQOZ','qeDyr','3174eQxGkp','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Browserstack','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','CkUTL','ZlCgP','uwhMa','FdFzd','XuRpz','yPKFb','nGgcN','nYkyS','nCILa','createOtherResources','vpc','PpBPM','LeBYW','setupNewCluster','cloudProvider','ftXlZ','builder','non-aws-azure-cluster','RoxPy','grid-spawning-failed','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bjYsO','GosrD','wQphg','sQesQ','browserVersion','homdx','create-grid-checks-invalid-profile','usage','toLowerCase','rAExO','IUMDr','subnets','../../config/logger','LOG','jxOHL','username','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','isClusterPresent','usXWk','/wd/hub','string','XNQHp','CLI\x20run\x20finished:\x20','newCluster','jkMBE','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','mudMN','Spawning\x20grid\x20on\x20to\x20the\x20cluster','yolsC','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','wKuPD','hJktC','iDfyZ','Skip\x20insecure\x20cert\x20verification.','https','176260aApyUg','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Create\x20a\x20new\x20Automation\x20grid.','readNamespacedService','CiMDo','concurrency','getGridHostname','alreadyPresent','HYwbM','aDHgb','privateGrid','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','delay','true','3|10|2|6|5|12|8|4|14|9|11|1|13|0|7','annotations','NhKwG','LxwAp','zSyIW','Adding\x20Websocket\x20listeners','qUttc','ingress-nginx','Cluster:\x20','zWyCy','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','OnWJX','8|7|2|1|3|6|5|0|4','btkLf','MJurl','XBDwh','replace','QZlgM','ERROR','yJilE','body','isPrivateGrid','yNXuU','isVPCPresent','get-grid-url-null-response','://','\x27\x20grid\x20profile','EPKqJ','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','dzmiy','bstackUsername','sendResourceDataToHST','\x20in\x20existing\x20cluster\x20\x27','Spawning\x20the\x20grid\x20','YkidT','GET','bkZfc','UgvlT','existsSync','options','MkBLi','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','McVWD','miXUJ','IUbcD','ijwfQ','AqieN','epilogue','password','boolean','Cluster\x20','bterC','GhAoN','turboscale-managed-identity-','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','CLI_RUN_STARTED','JchLE','Wzqyi','get-grid-url-auth-failed','<UsernamePlaceholder>','getResourceClientId','dxdBX','pre-spawned-invalid-vpc','UxLCz','owIgB','GMAiY','jCLsc','gfoIc','TzUkH','lVmQm','kajFz','jpGsI','icxSf','koLLk','pre-spawned-invalid-subnets','gzRLH','GPjDf','tUsXg','43011PQLzBH','requestId','SUnWQ','YJyrt','vSvNq','MANHy','\x20using\x20\x27','LDbSD','488790JRiNyk','pre-spawned-subnets-not-selected','SYfCn','cluster-name','WYGNx','clusterName','Regvk','EsNPA','gXWmG','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','itEvH','Found\x20VPC:\x20','175818naaITj','WebSocket','WEFFU','tjzPW','grid-profile','deleteCluster','HijBM','SzbDt','reconnecting-websocket','ZdHhr','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','184kgqtuK'];a9_0x5f3b=function(){return _0x109410;};return a9_0x5f3b();}
@@ -1 +1 @@
1
- const a10_0x5eac10=a10_0x4c78;(function(_0x200717,_0x138611){const _0x27b7d4=a10_0x4c78,_0x23db0b=_0x200717();while(!![]){try{const _0x1d13ac=-parseInt(_0x27b7d4(0x76))/0x1+-parseInt(_0x27b7d4(0x77))/0x2+parseInt(_0x27b7d4(0x88))/0x3*(-parseInt(_0x27b7d4(0x7f))/0x4)+parseInt(_0x27b7d4(0x75))/0x5*(-parseInt(_0x27b7d4(0x89))/0x6)+-parseInt(_0x27b7d4(0x7d))/0x7+-parseInt(_0x27b7d4(0x84))/0x8+parseInt(_0x27b7d4(0x85))/0x9;if(_0x1d13ac===_0x138611)break;else _0x23db0b['push'](_0x23db0b['shift']());}catch(_0x44816e){_0x23db0b['push'](_0x23db0b['shift']());}}}(a10_0x52c6,0xca9d6));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x5eac10(0x87));function a10_0x4c78(_0x5cbd67,_0x432b94){const _0x52c63d=a10_0x52c6();return a10_0x4c78=function(_0x4c780a,_0x4be60c){_0x4c780a=_0x4c780a-0x74;let _0x47481b=_0x52c63d[_0x4c780a];return _0x47481b;},a10_0x4c78(_0x5cbd67,_0x432b94);}function a10_0x52c6(){const _0x1638ce=['usage','delete','5710968BtalPB','77652387qglAOU','IXLXX','../config/constants','4696296ITVrLS','31728mNabUA','commandDir','help','1490gBzoju','1561188KcoITr','3075772NxXpCi','strict','handler','List\x20Grid\x20resources.','command','delete_commands','5907524fuXAdF','recommendCommands','4vzSnde','builder','PMuOi'];a10_0x52c6=function(){return _0x1638ce;};return a10_0x52c6();}exports[a10_0x5eac10(0x7b)]=a10_0x5eac10(0x83),exports['desc']=a10_0x5eac10(0x7a),exports[a10_0x5eac10(0x80)]=function(_0x39da4a){const _0x289031=a10_0x5eac10,_0x279a17={};_0x279a17['PMuOi']=_0x289031(0x7c),_0x279a17[_0x289031(0x86)]=_0x289031(0x74);const _0x59d2dc=_0x279a17;return _0x39da4a[_0x289031(0x82)](HELP_HEADER_MESSAGE[_0x289031(0x83)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x289031(0x8a)](_0x59d2dc[_0x289031(0x81)])['demandCommand']()[_0x289031(0x7e)]()[_0x289031(0x78)]()[_0x289031(0x74)](_0x59d2dc[_0x289031(0x86)]);},exports[a10_0x5eac10(0x79)]=function(_0x50c0bc){};
1
+ function a10_0x418d(){const _0x4d4c2c=['6577200gjOBUj','commandDir','handler','tBOtT','help','5327688vXBWqS','command','10NgOMiX','3nvqJXR','List\x20Grid\x20resources.','epilogue','1086896lMglco','../config/constants','usage','desc','yyIKY','delete','1597745YUevHb','9cSVVRa','demandCommand','delete_commands','9162461BznkCe','2312612iTluTF','10587890VlZpOq','builder'];a10_0x418d=function(){return _0x4d4c2c;};return a10_0x418d();}const a10_0x589881=a10_0x3484;(function(_0xcbd1b3,_0x175bbe){const _0x59e95b=a10_0x3484,_0x1830c4=_0xcbd1b3();while(!![]){try{const _0x20424f=-parseInt(_0x59e95b(0x1e0))/0x1+parseInt(_0x59e95b(0x1e5))/0x2*(-parseInt(_0x59e95b(0x1f0))/0x3)+-parseInt(_0x59e95b(0x1da))/0x4*(parseInt(_0x59e95b(0x1ef))/0x5)+parseInt(_0x59e95b(0x1e8))/0x6+parseInt(_0x59e95b(0x1e4))/0x7+-parseInt(_0x59e95b(0x1ed))/0x8*(-parseInt(_0x59e95b(0x1e1))/0x9)+parseInt(_0x59e95b(0x1e6))/0xa;if(_0x20424f===_0x175bbe)break;else _0x1830c4['push'](_0x1830c4['shift']());}catch(_0xf050f0){_0x1830c4['push'](_0x1830c4['shift']());}}}(a10_0x418d,0xcb376));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x589881(0x1db));function a10_0x3484(_0x3cf426,_0x17eb4f){const _0x418d17=a10_0x418d();return a10_0x3484=function(_0x348458,_0x37d980){_0x348458=_0x348458-0x1d8;let _0x49834d=_0x418d17[_0x348458];return _0x49834d;},a10_0x3484(_0x3cf426,_0x17eb4f);}exports[a10_0x589881(0x1ee)]=a10_0x589881(0x1df),exports[a10_0x589881(0x1dd)]=a10_0x589881(0x1d8),exports[a10_0x589881(0x1e7)]=function(_0x1917e4){const _0x3a20f8=a10_0x589881,_0x262386={};_0x262386[_0x3a20f8(0x1eb)]=_0x3a20f8(0x1e3),_0x262386[_0x3a20f8(0x1de)]=_0x3a20f8(0x1ec);const _0x33dca0=_0x262386;return _0x1917e4[_0x3a20f8(0x1dc)](HELP_HEADER_MESSAGE[_0x3a20f8(0x1df)])[_0x3a20f8(0x1d9)](HELP_FOOTER_MESSAGE)[_0x3a20f8(0x1e9)](_0x33dca0[_0x3a20f8(0x1eb)])[_0x3a20f8(0x1e2)]()['recommendCommands']()['strict']()[_0x3a20f8(0x1ec)](_0x33dca0[_0x3a20f8(0x1de)]);},exports[a10_0x589881(0x1ea)]=function(_0x2d10b2){};
@@ -1 +1 @@
1
- function a11_0x2f43(_0x306073,_0x12feb4){const _0xc62a95=a11_0xc62a();return a11_0x2f43=function(_0x2f4399,_0x34d629){_0x2f4399=_0x2f4399-0x74;let _0x5bdcd1=_0xc62a95[_0x2f4399];return _0x5bdcd1;},a11_0x2f43(_0x306073,_0x12feb4);}function a11_0xc62a(){const _0x3ae1a5=['command','invalid-input','Successfully\x20deleted\x20the\x20grid','xCTWQ','../../utils/createk8sClient','clusterRegion','Yncbw','Pass\x20the\x20ID\x20of\x20the\x20Grid','rhKkB','swaBP','Ubqoa','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','aFlUS','skipTlsCertVerify','stack','9plbLNX','qfaKA','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Wlxwt','8YekAMt','init-not-called','gridId','<UsernamePlaceholder>','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','WebSocket','message','cJWCn','help','FeHZg','DELETE','epilogue','UcRwR','oxOqi','argv','1792552PYYTtz','cxGzU','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','invalid-grid-id','103164fVoEyX','then','connectionTimeout','PXpMM','Ynrzz','OETiY','PiwJM','41365LiskHk','vXINd','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','builder','got','pAXsH','ZXqjU','../../utils/instrumentationUtils','/packages/cli/grid/','grid-id','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','region','QuqoT','string','Browserstack','FzwfZ','1762518lZjPKW','Jeniq','description','../../utils/webSocketUtils','desc','CryAB','NBnAA','ENfZu','BwiOi','clusterName','IIiKN','error','bSxko','delete-grid-called','Skip\x20insecure\x20cert\x20verification.','deleteCluster','../../config/logger','exit','vmpBn','boolean','7UTpJIF','WTwrs','GfoIy','mkxZR','../../utils/userInput','options','oPutp','BMCkM','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','catch','body','Delete\x20an\x20Automation\x20grid.','lyJSr','CMAMu','505532AOcAYz','ijWJJ','tKAMa','hWmnk','type','uuid','clusterId','uqSYI','grid','VYZjH','QEzKF','iKPSu','bNsvR','replace','xvHFJ','SdVqB','usage','QwHMt','toLowerCase','8351130kHLsRE','statusCode','delete','Cluster:\x20','warn','\x22\x20and\x20ID\x20','siajl','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','ERROR','Failed\x20to\x20delete\x20resources!\x20Error:\x20','https://','izOYg','ygELO','\x22\x20with\x20ID\x20','password','QuOIa','info','parse','bZCXN','965895cnaZyn','xaAmt','server-error','requestId','default','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','ZoBav','onlyGridInCluster','stringify','UzgVA','Namespace:\x20','../../utils/utilityMethods','unauthorised','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','name','XryJM','jeAok','zPmDe','isClusterPresent','BWqsT','MwFIN'];a11_0xc62a=function(){return _0x3ae1a5;};return a11_0xc62a();}const a11_0x24484d=a11_0x2f43;(function(_0x457e41,_0x52983e){const _0x50f023=a11_0x2f43,_0x6186e0=_0x457e41();while(!![]){try{const _0x317af3=-parseInt(_0x50f023(0x10b))/0x1+-parseInt(_0x50f023(0xa3))/0x2+parseInt(_0x50f023(0x104))/0x3*(-parseInt(_0x50f023(0xf1))/0x4)+parseInt(_0x50f023(0xc9))/0x5+parseInt(_0x50f023(0x81))/0x6*(-parseInt(_0x50f023(0x95))/0x7)+parseInt(_0x50f023(0x100))/0x8*(-parseInt(_0x50f023(0xed))/0x9)+parseInt(_0x50f023(0xb6))/0xa;if(_0x317af3===_0x52983e)break;else _0x6186e0['push'](_0x6186e0['shift']());}catch(_0x152cb7){_0x6186e0['push'](_0x6186e0['shift']());}}}(a11_0xc62a,0x2406b));const fs=require('fs'),got=require(a11_0x24484d(0x75)),{v4:uuidv4}=require(a11_0x24484d(0xa8)),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x24484d(0x91)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x24484d(0x78)),{inputConfirmation}=require(a11_0x24484d(0x99)),{createK8sClient}=require(a11_0x24484d(0xe2)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x24484d(0xd4)),webSocketUtils=require(a11_0x24484d(0x84));exports[a11_0x24484d(0xde)]=a11_0x24484d(0xab),exports[a11_0x24484d(0x85)]=a11_0x24484d(0xa0),exports[a11_0x24484d(0x74)]=function(_0x4cd97b){const _0x1659e9=a11_0x24484d,_0x4f8445={};_0x4f8445[_0x1659e9(0xad)]=_0x1659e9(0xe5),_0x4f8445[_0x1659e9(0xca)]=_0x1659e9(0x7e),_0x4f8445[_0x1659e9(0xd2)]=_0x1659e9(0x8f),_0x4f8445[_0x1659e9(0x96)]='boolean',_0x4f8445[_0x1659e9(0xa6)]=_0x1659e9(0xf9);const _0x427acc=_0x4f8445,_0x39895a={};_0x39895a[_0x1659e9(0x83)]=_0x427acc[_0x1659e9(0xad)],_0x39895a[_0x1659e9(0xa7)]=_0x427acc['xaAmt'];const _0x4b80de={};_0x4b80de[_0x1659e9(0x83)]=_0x427acc[_0x1659e9(0xd2)],_0x4b80de[_0x1659e9(0xa7)]=_0x427acc[_0x1659e9(0x96)],_0x4b80de[_0x1659e9(0xcd)]=![];const _0x530d44={};return _0x530d44[_0x1659e9(0x7a)]=_0x39895a,_0x530d44['skip-tls-cert-verify']=_0x4b80de,_0x4cd97b[_0x1659e9(0xb3)](HELP_HEADER_MESSAGE[_0x1659e9(0xb8)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1659e9(0x9a)](_0x530d44)[_0x1659e9(0xf9)](_0x427acc[_0x1659e9(0xa6)])[_0x1659e9(0xff)];},exports['handler']=async function(_0x51ee24){const _0x11e4d3=a11_0x24484d,_0x49ed27={'iKPSu':_0x11e4d3(0x102),'Ynrzz':_0x11e4d3(0xe5),'VjAaC':_0x11e4d3(0x7e),'zPmDe':'Skip\x20insecure\x20cert\x20verification.','XXNzz':_0x11e4d3(0x94),'CryAB':_0x11e4d3(0xf9),'NBnAA':_0x11e4d3(0xe9),'PXpMM':function(_0x35f6a3,_0x30d7ce){return _0x35f6a3!==_0x30d7ce;},'VYZjH':_0x11e4d3(0xbc),'QuqoT':_0x11e4d3(0xe6),'UcRwR':function(_0x4e6199,_0x9ae209){return _0x4e6199!==_0x9ae209;},'vmpBn':_0x11e4d3(0xa2),'pAXsH':_0x11e4d3(0x80),'BWqsT':_0x11e4d3(0xe0),'vXINd':function(_0x1b53e7){return _0x1b53e7();},'FeHZg':function(_0x1b55c6,_0x4bfe8b){return _0x1b55c6===_0x4bfe8b;},'swaBP':_0x11e4d3(0xc8),'qfaKA':_0x11e4d3(0xaf),'EBACa':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','oxOqi':function(_0x13210b,_0x2fdcc6,_0x1a028e,_0x1940d1,_0x1f4592,_0x4bdaec,_0x3b8eba){return _0x13210b(_0x2fdcc6,_0x1a028e,_0x1940d1,_0x1f4592,_0x4bdaec,_0x3b8eba);},'XryJM':_0x11e4d3(0x8e),'izOYg':_0x11e4d3(0xf2),'BwiOi':_0x11e4d3(0xb4),'fTcOE':_0x11e4d3(0xe8),'xCTWQ':function(_0xe56680){return _0xe56680();},'Yncbw':function(_0xd2aad,_0x167d9b,_0xfcc7cc,_0x19d72b){return _0xd2aad(_0x167d9b,_0xfcc7cc,_0x19d72b);},'lyJSr':function(_0x105d3a,_0x2d84d5){return _0x105d3a===_0x2d84d5;},'LlYki':_0x11e4d3(0x7f),'ygELO':function(_0x4ede75,_0xe53f7b){return _0x4ede75===_0xe53f7b;},'OETiY':'rnKmT','Jeniq':function(_0x3dc5a4,_0x26251d){return _0x3dc5a4(_0x26251d);},'oPutp':function(_0x43bf06,_0x1e256a){return _0x43bf06===_0x1e256a;},'tKAMa':function(_0x4f5e0e,_0x1d9b59){return _0x4f5e0e===_0x1d9b59;},'PiwJM':'JAOvG','uqSYI':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','GfoIy':_0x11e4d3(0xdf),'DkmCW':function(_0x8a6e42,_0x3b194a){return _0x8a6e42===_0x3b194a;},'mkxZR':_0x11e4d3(0xdd),'jeAok':_0x11e4d3(0xf4),'gMRfO':'<PasswordPlaceholder>','SdVqB':function(_0x394b18,_0x2689e0,_0x260c9c){return _0x394b18(_0x2689e0,_0x260c9c);},'ZbCkm':function(_0x92c3de,_0xe1a2c7,_0x250ad1,_0x2d3a5e,_0x32f1ba,_0x39de4b){return _0x92c3de(_0xe1a2c7,_0x250ad1,_0x2d3a5e,_0x32f1ba,_0x39de4b);},'xvHFJ':_0x11e4d3(0x8b),'mYpjx':_0x11e4d3(0xa4),'QuOIa':'gsPPW','ZoBav':_0x11e4d3(0xfb),'Wlxwt':function(_0x4b7779,_0x4a0648){return _0x4b7779!==_0x4a0648;},'cJWCn':function(_0x94c1bd,_0x159e4c,_0xdad128,_0x5bb552,_0x36af7a,_0x26154c,_0x3a655e){return _0x94c1bd(_0x159e4c,_0xdad128,_0x5bb552,_0x36af7a,_0x26154c,_0x3a655e);},'ZXqjU':_0x11e4d3(0xcb),'cxGzU':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','BMCkM':function(_0x33aaa2,_0x413830,_0x52d1bb,_0x550489,_0x4a4341,_0x37e1d5,_0x3a4e91){return _0x33aaa2(_0x413830,_0x52d1bb,_0x550489,_0x4a4341,_0x37e1d5,_0x3a4e91);},'ENfZu':_0x11e4d3(0xd5),'bSxko':function(_0x5e483f,_0xea54ec){return _0x5e483f===_0xea54ec;},'ocHxl':_0x11e4d3(0x103),'aFlUS':'unknown-error'};try{global_registry[_0x11e4d3(0xcc)]=_0x49ed27[_0x11e4d3(0x10c)](uuidv4);!fs['existsSync'](_0x49ed27[_0x11e4d3(0x10c)](getCredentialsPath))&&(_0x49ed27[_0x11e4d3(0xfa)](_0x49ed27[_0x11e4d3(0xe7)],_0x49ed27[_0x11e4d3(0xee)])?(_0x5c5671['warn'](_0x11e4d3(0xd3)+_0x15df8e+_0x11e4d3(0xbd)),_0x2642a1=![]):(console[_0x11e4d3(0x8c)](_0x49ed27['EBACa']),await _0x49ed27[_0x11e4d3(0xfe)](sendInstrumentationEvent,_0x51ee24,_0x49ed27[_0x11e4d3(0xd8)],messageTypes['ERROR'],_0x49ed27[_0x11e4d3(0xc1)],null,_0x51ee24),process[_0x11e4d3(0x92)](0x1)));_0x49ed27[_0x11e4d3(0xfe)](sendInstrumentationEvent,_0x51ee24,_0x49ed27[_0x11e4d3(0xd8)],messageTypes['INFO'],null,null,_0x51ee24);!_0x51ee24['gridId']&&(_0x49ed27[_0x11e4d3(0xfa)](_0x49ed27[_0x11e4d3(0x89)],_0x49ed27['fTcOE'])?_0x5a9d05[_0x11e4d3(0xba)](_0x49ed27['iKPSu']):(console[_0x11e4d3(0x8c)](_0x49ed27['NBnAA']),process[_0x11e4d3(0x92)](0x1)));const _0x222220=JSON['parse'](fs['readFileSync'](_0x49ed27[_0x11e4d3(0xe1)](getCredentialsPath))),[_0x1bc323,_0x4699e2]=await _0x49ed27[_0x11e4d3(0xe4)](getGridDetails,_0x222220['Browserstack']['username'],_0x222220['Browserstack']['password'],_0x51ee24[_0x11e4d3(0xf3)]);if(_0x4699e2){const _0x8e0f94=_0x4699e2[_0x11e4d3(0xc6)];let _0x320bd5='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x8e0f94['name']+'\x22\x20and\x20ID\x20'+_0x8e0f94['id']+_0x11e4d3(0xf5);if(_0x4699e2[_0x11e4d3(0xd0)]&&_0x49ed27['lyJSr'](_0x4699e2['clusterSpawnedVia'],_0x49ed27['LlYki'])){if(_0x49ed27[_0x11e4d3(0xc2)](_0x49ed27[_0x11e4d3(0x109)],_0x49ed27[_0x11e4d3(0x109)]))_0x320bd5='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x8e0f94[_0x11e4d3(0xd7)]+'\x22\x20and\x20ID\x20'+_0x8e0f94['id']+_0x11e4d3(0x7b)+_0x8e0f94[_0x11e4d3(0x8a)]+_0x11e4d3(0xc3)+_0x8e0f94[_0x11e4d3(0xa9)]+_0x11e4d3(0xf5);else{const _0x1efb68={};_0x1efb68[_0x11e4d3(0x83)]=_0x49ed27[_0x11e4d3(0x108)],_0x1efb68[_0x11e4d3(0xa7)]=_0x49ed27['VjAaC'];const _0x3e8acf={};_0x3e8acf['description']=_0x49ed27[_0x11e4d3(0xda)],_0x3e8acf[_0x11e4d3(0xa7)]=_0x49ed27['XXNzz'],_0x3e8acf[_0x11e4d3(0xcd)]=![];const _0x33da35={};return _0x33da35[_0x11e4d3(0x7a)]=_0x1efb68,_0x33da35['skip-tls-cert-verify']=_0x3e8acf,_0xf2a9e0[_0x11e4d3(0xb3)](_0x8f63fb[_0x11e4d3(0xb8)])[_0x11e4d3(0xfc)](_0x124944)[_0x11e4d3(0x9a)](_0x33da35)[_0x11e4d3(0xf9)](_0x49ed27[_0x11e4d3(0x86)])[_0x11e4d3(0xff)];}}const _0x3b37a1=await _0x49ed27[_0x11e4d3(0x82)](inputConfirmation,_0x320bd5);(_0x49ed27[_0x11e4d3(0x9b)](_0x3b37a1,undefined)||_0x49ed27['ygELO'](_0x3b37a1,null)||!(_0x49ed27[_0x11e4d3(0xa5)](_0x3b37a1[_0x11e4d3(0xb5)](),'y')||_0x49ed27[_0x11e4d3(0xa1)](_0x3b37a1[_0x11e4d3(0xb5)](),'n')))&&(_0x49ed27[_0x11e4d3(0xfd)](_0x49ed27['PiwJM'],_0x49ed27[_0x11e4d3(0x10a)])?_0x51cb4f[_0x11e4d3(0x92)](0x0):(console[_0x11e4d3(0x8c)](_0x49ed27[_0x11e4d3(0xaa)]),await _0x49ed27[_0x11e4d3(0xfe)](sendInstrumentationEvent,_0x51ee24,_0x49ed27[_0x11e4d3(0xd8)],messageTypes[_0x11e4d3(0xbe)],_0x49ed27[_0x11e4d3(0x97)],null,_0x51ee24),process[_0x11e4d3(0x92)](0x1)));_0x49ed27[_0x11e4d3(0xa1)](_0x3b37a1[_0x11e4d3(0xb5)](),'n')&&(_0x49ed27['DkmCW'](_0x49ed27[_0x11e4d3(0x98)],_0x49ed27[_0x11e4d3(0x98)])?process[_0x11e4d3(0x92)](0x0):(_0x3fbe46['error'](_0x49ed27[_0x11e4d3(0x87)]),_0x40db6c[_0x11e4d3(0x92)](0x1)));const _0x555c34=WS_ENDPOINT['replace'](_0x49ed27[_0x11e4d3(0xd9)],_0x222220[_0x11e4d3(0x7f)]['username'])[_0x11e4d3(0xb0)](_0x49ed27['gMRfO'],_0x222220[_0x11e4d3(0x7f)][_0x11e4d3(0xc4)]),_0x2b46c4={};_0x2b46c4[_0x11e4d3(0xf6)]=ws,_0x2b46c4[_0x11e4d3(0x106)]=0x36ee80;const _0x192e2c=new ReconnectingWebSocket(_0x555c34,[],_0x2b46c4);global_registry[_0x11e4d3(0xe3)]=_0x8e0f94[_0x11e4d3(0x7c)];const _0x1aa480=_0x8e0f94['cloudProvider'],_0x39b8a7=await _0x49ed27[_0x11e4d3(0xfe)](getCloudProviderObject,_0x1aa480,_0x8e0f94[_0x11e4d3(0x8a)],_0x8e0f94[_0x11e4d3(0xd7)],_0x192e2c,webSocketUtils,_0x51ee24),_0x32d109=await _0x39b8a7[_0x11e4d3(0xdb)]();if(_0x32d109){const _0x301110=_0x49ed27[_0x11e4d3(0x82)](kebabCase,_0x8e0f94['name']),[_0x25e1f4,_0x19a6f3,_0x5504dc,_0x2c549b,_0x29eab5,_0x549ba2]=await _0x49ed27[_0x11e4d3(0xb2)](createK8sClient,_0x39b8a7,_0x51ee24[_0x11e4d3(0xeb)]);let _0x40819e=!![];const _0x3037db={};_0x3037db[_0x11e4d3(0xd7)]=_0x301110,await _0x25e1f4['readNamespace'](_0x3037db)[_0x11e4d3(0x105)](_0xad1091=>{const _0x2ff47b=_0x11e4d3;_0x49ed27['PXpMM'](_0x49ed27[_0x2ff47b(0xac)],_0x49ed27[_0x2ff47b(0x7d)])?logger['info'](_0x2ff47b(0xd3)+_0x301110+_0x2ff47b(0x10d)):_0x5d0e17=_0x2ff47b(0xd6)+_0x42a370[_0x2ff47b(0xd7)]+_0x2ff47b(0xbb)+_0x4a6260['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x1be3a1[_0x2ff47b(0x8a)]+_0x2ff47b(0xc3)+_0x1a6beb[_0x2ff47b(0xa9)]+_0x2ff47b(0xf5);})[_0x11e4d3(0x9e)](_0x10f43c=>{const _0x1fae69=_0x11e4d3;_0x49ed27[_0x1fae69(0xfd)](_0x49ed27[_0x1fae69(0x93)],_0x49ed27[_0x1fae69(0x76)])?(logger[_0x1fae69(0xba)]('Namespace:\x20'+_0x301110+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x40819e=![]):_0x5327c8[_0x1fae69(0xba)]('Cluster:\x20'+_0x245b80['clusterName']+_0x1fae69(0xef));});if(_0x40819e){await _0x49ed27['ZbCkm'](removeGridComponents,_0x25e1f4,_0x19a6f3,_0x5504dc,_0x2c549b,_0x301110);if(_0x4699e2[_0x11e4d3(0xd0)]){const _0x1224cf=await _0x39b8a7['isBrowserstackCluster']();_0x1224cf?_0x49ed27[_0x11e4d3(0xfa)](_0x49ed27[_0x11e4d3(0xb1)],_0x49ed27['mYpjx'])?_0x69e025[_0x11e4d3(0xc6)]('Namespace:\x20'+_0x466250+_0x11e4d3(0x10d)):await _0x39b8a7[_0x11e4d3(0x90)](_0x25e1f4,_0x8e0f94[_0x11e4d3(0x7c)]):_0x49ed27['oPutp'](_0x49ed27[_0x11e4d3(0xc5)],_0x49ed27[_0x11e4d3(0xc5)])?logger['warn'](_0x11e4d3(0xb9)+_0x8e0f94['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):(_0x6882af[_0x11e4d3(0xc6)](_0x49ed27[_0x11e4d3(0xdc)]),_0x44b393[_0x11e4d3(0x92)](0x0));}}}else logger[_0x11e4d3(0xba)](_0x49ed27[_0x11e4d3(0xae)]);const _0x552136=_0x11e4d3(0xc0)+AG_API_URL+_0x11e4d3(0x79)+_0x51ee24[_0x11e4d3(0xf3)],_0x3871ec={'method':_0x49ed27[_0x11e4d3(0xcf)],'headers':_0x49ed27['SdVqB'](getAuthHeader,_0x222220[_0x11e4d3(0x7f)]['username'],_0x222220[_0x11e4d3(0x7f)]['password']),'throwHttpErrors':![]},_0x50a42c=await _0x49ed27[_0x11e4d3(0xb2)](got,_0x552136,_0x3871ec);_0x49ed27[_0x11e4d3(0xf0)](_0x50a42c,null)&&_0x49ed27[_0x11e4d3(0x107)](_0x50a42c,undefined)&&_0x49ed27['lyJSr'](_0x50a42c[_0x11e4d3(0xb7)],0xc8)&&(logger[_0x11e4d3(0xc6)](_0x49ed27['BWqsT']),process[_0x11e4d3(0x92)](0x0)),logger[_0x11e4d3(0x8c)](_0x11e4d3(0xce)+_0x50a42c[_0x11e4d3(0x9f)]),await _0x49ed27[_0x11e4d3(0xf8)](sendInstrumentationEvent,_0x51ee24,_0x49ed27['XryJM'],messageTypes[_0x11e4d3(0xbe)],_0x49ed27[_0x11e4d3(0x77)],_0x1bc323,_0x51ee24),process[_0x11e4d3(0x92)](0x1);}_0x49ed27[_0x11e4d3(0xa5)](_0x1bc323[_0x11e4d3(0xb7)],0x191)&&(logger[_0x11e4d3(0x8c)](_0x49ed27[_0x11e4d3(0x101)]),await _0x49ed27[_0x11e4d3(0x9c)](sendInstrumentationEvent,_0x51ee24,_0x49ed27[_0x11e4d3(0xd8)],messageTypes[_0x11e4d3(0xbe)],_0x49ed27[_0x11e4d3(0x88)],null,_0x51ee24),process[_0x11e4d3(0x92)](0x1)),_0x49ed27[_0x11e4d3(0x8d)](_0x1bc323[_0x11e4d3(0xb7)],0x190)&&(logger[_0x11e4d3(0x8c)](JSON[_0x11e4d3(0xc7)](_0x1bc323['body'])[_0x11e4d3(0xf7)]),await _0x49ed27[_0x11e4d3(0xf8)](sendInstrumentationEvent,_0x51ee24,_0x49ed27[_0x11e4d3(0xd8)],messageTypes['ERROR'],_0x49ed27['ocHxl'],null,_0x51ee24),process[_0x11e4d3(0x92)](0x1)),logger['error'](_0x11e4d3(0x9d)+JSON[_0x11e4d3(0xd1)](_0x1bc323)),await _0x49ed27['BMCkM'](sendInstrumentationEvent,_0x51ee24,_0x49ed27[_0x11e4d3(0xd8)],messageTypes[_0x11e4d3(0xbe)],_0x49ed27[_0x11e4d3(0x77)],_0x1bc323,_0x51ee24),process[_0x11e4d3(0x92)](0x1);}catch(_0x4a9062){logger[_0x11e4d3(0x8c)](_0x11e4d3(0xbf)+_0x4a9062[_0x11e4d3(0xec)]),await _0x49ed27[_0x11e4d3(0x9c)](sendInstrumentationEvent,_0x51ee24,_0x49ed27[_0x11e4d3(0xd8)],messageTypes[_0x11e4d3(0xbe)],_0x49ed27[_0x11e4d3(0xea)],_0x4a9062,_0x51ee24),process[_0x11e4d3(0x92)](0x1);}};
1
+ function a11_0x32dd(){const _0x168d3e=['../../utils/webSocketUtils','gDJlW','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','179364IDzGnc','vRKhM','EQZkw','ZUQST','argv','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','body','delete-grid-called','INFO','readNamespace','XLmGD','3621771EUuctR','wchqJ','NvMCS','../../utils/instrumentationUtils','PCTun','statusCode','uuid','clusterName','../../utils/userInput','Namespace:\x20','/packages/cli/grid/','DgeWn','whhqD','replace','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','clusterSpawnedVia','cCnpP','invalid-input','GjKBK','sYCLz','RNCHx','unknown-error','command','OpMFE','clusterRegion','FygGF','19696iThUoZ','toLowerCase','deleteCluster','LroBZ','235776brRrco','UChyh','exit','oOgTU','isBrowserstackCluster','string','description','QBCvx','warn','YhDlV','JIbgm','../../utils/gridComponents','epilogue','usage','region','Cluster:\x20','AoolK','QoTLA','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','JoXRx','\x22\x20and\x20ID\x20','Browserstack','Delete\x20an\x20Automation\x20grid.','got','HFwNR','type','uGnys','fRzOH','165645hknbbT','BPuiR','xqLNK','isClusterPresent','Ugvcy','skipTlsCertVerify','delete','HQytJ','options','gqMps','49HkocEa','MBTSf','SehCb','Failed\x20to\x20delete\x20resources!\x20Error:\x20','gridId','RBNAe','zRQuh','error','tyVDg','gnSui','catch','QieGo','syBfA','DELETE','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','builder','then','Pass\x20the\x20ID\x20of\x20the\x20Grid','ERROR','username','existsSync','oSXxx','tiHmc','readFileSync','gtsie','requestId','stack','connectionTimeout','4004620YvaRKK','fmEsP','jJegu','IougK','tcLif','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','grid-id','skip-tls-cert-verify','https://','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','tvCTO','grid','gqrWf','../../config/logger','../../utils/utilityMethods','handler','help','vbrPM','lTlaq','qaCAV','name','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','eYQCp','clusterId','WXTVw','info','dbpPL','onlyGridInCluster','mANtp','RNXrq','<PasswordPlaceholder>','2154380MpARVM','cloudProvider','3OHJqzd','message','password','bDcfm'];a11_0x32dd=function(){return _0x168d3e;};return a11_0x32dd();}const a11_0x2db2cb=a11_0x310e;(function(_0x2655cf,_0x12a583){const _0x2f7550=a11_0x310e,_0x3b86a3=_0x2655cf();while(!![]){try{const _0x520454=-parseInt(_0x2f7550(0x165))/0x1+-parseInt(_0x2f7550(0x149))/0x2+-parseInt(_0x2f7550(0x1ac))/0x3*(parseInt(_0x2f7550(0x1aa))/0x4)+parseInt(_0x2f7550(0x18b))/0x5+parseInt(_0x2f7550(0x1b3))/0x6*(parseInt(_0x2f7550(0x16f))/0x7)+-parseInt(_0x2f7550(0x145))/0x8+parseInt(_0x2f7550(0x1be))/0x9;if(_0x520454===_0x12a583)break;else _0x3b86a3['push'](_0x3b86a3['shift']());}catch(_0x1e0f42){_0x3b86a3['push'](_0x3b86a3['shift']());}}}(a11_0x32dd,0x8f8eb));const fs=require('fs'),got=require(a11_0x2db2cb(0x160)),{v4:uuidv4}=require(a11_0x2db2cb(0x1c4)),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x2db2cb(0x198)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x2db2cb(0x154)),{sendInstrumentationEvent}=require(a11_0x2db2cb(0x1c1)),{inputConfirmation}=require(a11_0x2db2cb(0x1c6)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x2db2cb(0x199)),webSocketUtils=require(a11_0x2db2cb(0x1b0));function a11_0x310e(_0x2f8b8a,_0x2e31a9){const _0x32ddf5=a11_0x32dd();return a11_0x310e=function(_0x310ed8,_0x587880){_0x310ed8=_0x310ed8-0x13d;let _0x266634=_0x32ddf5[_0x310ed8];return _0x266634;},a11_0x310e(_0x2f8b8a,_0x2e31a9);}exports[a11_0x2db2cb(0x141)]=a11_0x2db2cb(0x196),exports['desc']=a11_0x2db2cb(0x15f),exports[a11_0x2db2cb(0x17e)]=function(_0x3d0dd3){const _0x46355e=a11_0x2db2cb,_0x197963={};_0x197963['cCnpP']=_0x46355e(0x180),_0x197963['gDJlW']='string',_0x197963[_0x46355e(0x178)]='Skip\x20insecure\x20cert\x20verification.',_0x197963[_0x46355e(0x175)]='boolean',_0x197963[_0x46355e(0x17b)]=_0x46355e(0x19b);const _0x116ea2=_0x197963,_0x44e95e={};_0x44e95e['description']=_0x116ea2[_0x46355e(0x1ce)],_0x44e95e[_0x46355e(0x162)]=_0x116ea2[_0x46355e(0x1b1)];const _0x482ea3={};_0x482ea3['description']=_0x116ea2[_0x46355e(0x178)],_0x482ea3[_0x46355e(0x162)]=_0x116ea2['zRQuh'],_0x482ea3['default']=![];const _0xc4fa87={};return _0xc4fa87[_0x46355e(0x191)]=_0x44e95e,_0xc4fa87[_0x46355e(0x192)]=_0x482ea3,_0x3d0dd3[_0x46355e(0x156)](HELP_HEADER_MESSAGE[_0x46355e(0x16b)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x46355e(0x16d)](_0xc4fa87)[_0x46355e(0x19b)](_0x116ea2[_0x46355e(0x17b)])[_0x46355e(0x1b7)];},exports[a11_0x2db2cb(0x19a)]=async function(_0x242fd4){const _0x36a3bb=a11_0x2db2cb,_0x3d343e={'bDcfm':_0x36a3bb(0x180),'kqxwP':_0x36a3bb(0x14e),'dbpPL':'Skip\x20insecure\x20cert\x20verification.','mANtp':'boolean','LWsCG':_0x36a3bb(0x19b),'gqMps':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','gtsie':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','fRzOH':function(_0x72dcb1,_0x28af58){return _0x72dcb1===_0x28af58;},'ZUQST':_0x36a3bb(0x177),'lTlaq':function(_0x525af2,_0x38794b){return _0x525af2!==_0x38794b;},'VGQuS':'sTdph','tvCTO':'Successfully\x20deleted\x20the\x20grid','qaCAV':function(_0x2d40df){return _0x2d40df();},'jJegu':function(_0x4796db){return _0x4796db();},'tcLif':'GzQtr','QoTLA':_0x36a3bb(0x194),'gqrWf':function(_0xb345d8,_0x10f666,_0x10090b,_0x1591cc,_0x140a60,_0xcba3be,_0x2e3eb9){return _0xb345d8(_0x10f666,_0x10090b,_0x1591cc,_0x140a60,_0xcba3be,_0x2e3eb9);},'eYQCp':_0x36a3bb(0x1ba),'RwBnp':'init-not-called','BPuiR':function(_0xb07e53,_0xaeacc1,_0x3fe5fa,_0x53875b,_0x23a8f,_0x12eeab,_0x3f1712){return _0xb07e53(_0xaeacc1,_0x3fe5fa,_0x53875b,_0x23a8f,_0x12eeab,_0x3f1712);},'RNCHx':'ciBgl','NvMCS':'xpTwr','whhqD':function(_0xd7d4fc,_0x4257f9,_0x10e038,_0x3275e4){return _0xd7d4fc(_0x4257f9,_0x10e038,_0x3275e4);},'RBNAe':function(_0x16108b,_0x980b1a){return _0x16108b===_0x980b1a;},'GjKBK':_0x36a3bb(0x15e),'dNexI':function(_0x33c119,_0x389fac){return _0x33c119===_0x389fac;},'MBTSf':_0x36a3bb(0x153),'XLmGD':function(_0x403472,_0x38222f){return _0x403472(_0x38222f);},'fWrGK':function(_0x30c636,_0x49323e){return _0x30c636===_0x49323e;},'YhDlV':function(_0x5fe5ad,_0x1344d0){return _0x5fe5ad===_0x1344d0;},'EQZkw':_0x36a3bb(0x150),'WNnXm':_0x36a3bb(0x14c),'PCTun':_0x36a3bb(0x1a0),'JoXRx':function(_0x9d783,_0x4a5449,_0x2efdc8,_0x1f9d1c,_0x3e3a41,_0x5b043f,_0x5ce825){return _0x9d783(_0x4a5449,_0x2efdc8,_0x1f9d1c,_0x3e3a41,_0x5b043f,_0x5ce825);},'oSXxx':_0x36a3bb(0x1cf),'WXTVw':function(_0x6ed10,_0x31b9e9){return _0x6ed10===_0x31b9e9;},'AoolK':function(_0x20cd5f,_0x4aa188){return _0x20cd5f===_0x4aa188;},'tiHmc':_0x36a3bb(0x1bf),'xqLNK':'<UsernamePlaceholder>','uGnys':_0x36a3bb(0x1a9),'Ugvcy':function(_0x503362,_0x1acdb7,_0x2002f7){return _0x503362(_0x1acdb7,_0x2002f7);},'vRKhM':function(_0xf741cc,_0x511006,_0x4ed8c6,_0x54bc7e,_0x2b9f36,_0x535e7a){return _0xf741cc(_0x511006,_0x4ed8c6,_0x54bc7e,_0x2b9f36,_0x535e7a);},'FygGF':'fbJHp','mOXii':function(_0x436b51,_0x4d5b07){return _0x436b51===_0x4d5b07;},'sYCLz':'iTNFr','ivPbr':_0x36a3bb(0x148),'SehCb':_0x36a3bb(0x17c),'Aapcu':function(_0x25816c,_0xa48728,_0x3973ba){return _0x25816c(_0xa48728,_0x3973ba);},'UChyh':function(_0x2929cd,_0x510b64){return _0x2929cd!==_0x510b64;},'HFwNR':function(_0x4aeeb1,_0x3846d8){return _0x4aeeb1!==_0x3846d8;},'vbrPM':'server-error','DgeWn':function(_0x2b7124,_0x582f31){return _0x2b7124===_0x582f31;},'IougK':_0x36a3bb(0x1cc),'HQytJ':function(_0x3aa606,_0x427c20,_0x148c15,_0x1f5dfc,_0x435930,_0x4498ca,_0x32f78a){return _0x3aa606(_0x427c20,_0x148c15,_0x1f5dfc,_0x435930,_0x4498ca,_0x32f78a);},'QieGo':'unauthorised','RNXrq':function(_0x34c950,_0x5cdae0){return _0x34c950===_0x5cdae0;},'fmEsP':'invalid-grid-id','nbffV':_0x36a3bb(0x140)};try{global_registry[_0x36a3bb(0x188)]=_0x3d343e[_0x36a3bb(0x19e)](uuidv4);!fs[_0x36a3bb(0x183)](_0x3d343e[_0x36a3bb(0x18d)](getCredentialsPath))&&(_0x3d343e[_0x36a3bb(0x164)](_0x3d343e[_0x36a3bb(0x18f)],_0x3d343e['tcLif'])?(console[_0x36a3bb(0x176)](_0x3d343e[_0x36a3bb(0x15a)]),await _0x3d343e[_0x36a3bb(0x197)](sendInstrumentationEvent,_0x242fd4,_0x3d343e[_0x36a3bb(0x1a1)],messageTypes['ERROR'],_0x3d343e['RwBnp'],null,_0x242fd4),process[_0x36a3bb(0x14b)](0x1)):_0x1a3bc8[_0x36a3bb(0x1a4)](_0x36a3bb(0x1c7)+_0x2e32f2+_0x36a3bb(0x190)));_0x3d343e[_0x36a3bb(0x166)](sendInstrumentationEvent,_0x242fd4,_0x3d343e[_0x36a3bb(0x1a1)],messageTypes[_0x36a3bb(0x1bb)],null,null,_0x242fd4);if(!_0x242fd4[_0x36a3bb(0x173)]){if(_0x3d343e[_0x36a3bb(0x164)](_0x3d343e[_0x36a3bb(0x13f)],_0x3d343e[_0x36a3bb(0x1c0)])){const _0x1d7b90={};_0x1d7b90[_0x36a3bb(0x14f)]=_0x3d343e[_0x36a3bb(0x1af)],_0x1d7b90[_0x36a3bb(0x162)]=_0x3d343e['kqxwP'];const _0x3a5fdb={};_0x3a5fdb['description']=_0x3d343e[_0x36a3bb(0x1a5)],_0x3a5fdb['type']=_0x3d343e[_0x36a3bb(0x1a7)],_0x3a5fdb['default']=![];const _0x3031f2={};return _0x3031f2['grid-id']=_0x1d7b90,_0x3031f2[_0x36a3bb(0x192)]=_0x3a5fdb,_0x129bbd[_0x36a3bb(0x156)](_0x21e936[_0x36a3bb(0x16b)])[_0x36a3bb(0x155)](_0x451a92)[_0x36a3bb(0x16d)](_0x3031f2)[_0x36a3bb(0x19b)](_0x3d343e['LWsCG'])[_0x36a3bb(0x1b7)];}else console['error'](_0x3d343e[_0x36a3bb(0x16e)]),process[_0x36a3bb(0x14b)](0x1);}const _0x24279d=JSON['parse'](fs[_0x36a3bb(0x186)](_0x3d343e[_0x36a3bb(0x19e)](getCredentialsPath))),[_0xd8ef3d,_0x201ae1]=await _0x3d343e[_0x36a3bb(0x1ca)](getGridDetails,_0x24279d['Browserstack'][_0x36a3bb(0x182)],_0x24279d[_0x36a3bb(0x15e)][_0x36a3bb(0x1ae)],_0x242fd4[_0x36a3bb(0x173)]);if(_0x201ae1){const _0x20996f=_0x201ae1[_0x36a3bb(0x1a4)];let _0x5b763b=_0x36a3bb(0x1b8)+_0x20996f[_0x36a3bb(0x19f)]+_0x36a3bb(0x15d)+_0x20996f['id']+_0x36a3bb(0x17d);_0x201ae1[_0x36a3bb(0x1a6)]&&_0x3d343e['RBNAe'](_0x201ae1[_0x36a3bb(0x1cd)],_0x3d343e[_0x36a3bb(0x13d)])&&(_0x3d343e['dNexI'](_0x3d343e[_0x36a3bb(0x170)],_0x3d343e[_0x36a3bb(0x170)])?_0x5b763b=_0x36a3bb(0x1b8)+_0x20996f[_0x36a3bb(0x19f)]+_0x36a3bb(0x15d)+_0x20996f['id']+_0x36a3bb(0x15b)+_0x20996f[_0x36a3bb(0x1c5)]+'\x22\x20with\x20ID\x20'+_0x20996f[_0x36a3bb(0x1a2)]+_0x36a3bb(0x17d):(_0x3841e7['error'](_0x3d343e['gqMps']),_0x2be0f0[_0x36a3bb(0x14b)](0x1)));const _0x1594d8=await _0x3d343e[_0x36a3bb(0x1bd)](inputConfirmation,_0x5b763b);(_0x3d343e[_0x36a3bb(0x164)](_0x1594d8,undefined)||_0x3d343e['fWrGK'](_0x1594d8,null)||!(_0x3d343e['YhDlV'](_0x1594d8[_0x36a3bb(0x146)](),'y')||_0x3d343e[_0x36a3bb(0x152)](_0x1594d8[_0x36a3bb(0x146)](),'n')))&&(_0x3d343e[_0x36a3bb(0x152)](_0x3d343e[_0x36a3bb(0x1b5)],_0x3d343e['WNnXm'])?_0x378b4a='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0xb628e2[_0x36a3bb(0x19f)]+'\x22\x20and\x20ID\x20'+_0x3ff864['id']+_0x36a3bb(0x15b)+_0x2501f4[_0x36a3bb(0x1c5)]+'\x22\x20with\x20ID\x20'+_0x1c129d[_0x36a3bb(0x1a2)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(console['error'](_0x3d343e[_0x36a3bb(0x1c2)]),await _0x3d343e['JoXRx'](sendInstrumentationEvent,_0x242fd4,_0x3d343e[_0x36a3bb(0x1a1)],messageTypes[_0x36a3bb(0x181)],_0x3d343e[_0x36a3bb(0x184)],null,_0x242fd4),process[_0x36a3bb(0x14b)](0x1)));_0x3d343e[_0x36a3bb(0x1a3)](_0x1594d8['toLowerCase'](),'n')&&(_0x3d343e[_0x36a3bb(0x159)](_0x3d343e[_0x36a3bb(0x185)],_0x3d343e['tiHmc'])?process[_0x36a3bb(0x14b)](0x0):_0x2104a1[_0x36a3bb(0x14b)](0x0));const _0xb0520=WS_ENDPOINT['replace'](_0x3d343e[_0x36a3bb(0x167)],_0x24279d['Browserstack']['username'])[_0x36a3bb(0x1cb)](_0x3d343e[_0x36a3bb(0x163)],_0x24279d[_0x36a3bb(0x15e)][_0x36a3bb(0x1ae)]),_0x3c0dfa={};_0x3c0dfa['WebSocket']=ws,_0x3c0dfa[_0x36a3bb(0x18a)]=0x36ee80;const _0x4b20fd=new ReconnectingWebSocket(_0xb0520,[],_0x3c0dfa);global_registry[_0x36a3bb(0x143)]=_0x20996f[_0x36a3bb(0x157)];const _0x1f27e3=_0x20996f[_0x36a3bb(0x1ab)],_0x3e12a7=await _0x3d343e[_0x36a3bb(0x15c)](getCloudProviderObject,_0x1f27e3,_0x20996f[_0x36a3bb(0x1c5)],_0x20996f[_0x36a3bb(0x19f)],_0x4b20fd,webSocketUtils,_0x242fd4),_0x3bc785=await _0x3e12a7[_0x36a3bb(0x168)]();if(_0x3bc785){const _0x3bae84=_0x3d343e[_0x36a3bb(0x1bd)](kebabCase,_0x20996f[_0x36a3bb(0x19f)]),[_0x3c7c15,_0xeaa8ee,_0x429b26,_0x2d3f1f,_0x1f7cb5,_0x490581]=await _0x3d343e[_0x36a3bb(0x169)](createK8sClient,_0x3e12a7,_0x242fd4[_0x36a3bb(0x16a)]);let _0x5ccc4b=!![];const _0x4c152a={};_0x4c152a[_0x36a3bb(0x19f)]=_0x3bae84,await _0x3c7c15[_0x36a3bb(0x1bc)](_0x4c152a)[_0x36a3bb(0x17f)](_0x363ea2=>{const _0x53df3b=_0x36a3bb,_0x19902d={};_0x19902d[_0x53df3b(0x142)]=_0x3d343e[_0x53df3b(0x187)];const _0x332917=_0x19902d;_0x3d343e[_0x53df3b(0x164)](_0x3d343e[_0x53df3b(0x1b6)],_0x3d343e[_0x53df3b(0x1b6)])?logger[_0x53df3b(0x1a4)](_0x53df3b(0x1c7)+_0x3bae84+_0x53df3b(0x190)):_0x481307[_0x53df3b(0x151)](_0x332917[_0x53df3b(0x142)]);})[_0x36a3bb(0x179)](_0x587ea0=>{const _0x32dbf3=_0x36a3bb;_0x3d343e[_0x32dbf3(0x19d)](_0x3d343e['VGQuS'],_0x3d343e['VGQuS'])?_0x31b0f1[_0x32dbf3(0x151)](_0x32dbf3(0x158)+_0x20914a[_0x32dbf3(0x1c5)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):(logger[_0x32dbf3(0x151)](_0x32dbf3(0x1c7)+_0x3bae84+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x5ccc4b=![]);});if(_0x5ccc4b){await _0x3d343e[_0x36a3bb(0x1b4)](removeGridComponents,_0x3c7c15,_0xeaa8ee,_0x429b26,_0x2d3f1f,_0x3bae84);if(_0x201ae1[_0x36a3bb(0x1a6)]){const _0x5e523=await _0x3e12a7[_0x36a3bb(0x14d)]();_0x5e523?_0x3d343e[_0x36a3bb(0x164)](_0x3d343e[_0x36a3bb(0x144)],_0x3d343e['FygGF'])?await _0x3e12a7[_0x36a3bb(0x147)](_0x3c7c15,_0x20996f['region']):(_0x5650e2[_0x36a3bb(0x151)](_0x36a3bb(0x1c7)+_0x3f9bac+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0xc214cb=![]):_0x3d343e['mOXii'](_0x3d343e[_0x36a3bb(0x13e)],_0x3d343e['ivPbr'])?(_0x1c63a4['info'](_0x3d343e[_0x36a3bb(0x195)]),_0x57857d[_0x36a3bb(0x14b)](0x0)):logger[_0x36a3bb(0x151)](_0x36a3bb(0x158)+_0x20996f[_0x36a3bb(0x1c5)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger[_0x36a3bb(0x151)](_0x3d343e[_0x36a3bb(0x187)]);const _0x37e183=_0x36a3bb(0x193)+AG_API_URL+_0x36a3bb(0x1c8)+_0x242fd4['gridId'],_0x18146c={'method':_0x3d343e[_0x36a3bb(0x171)],'headers':_0x3d343e[_0x36a3bb(0x169)](getAuthHeader,_0x24279d[_0x36a3bb(0x15e)][_0x36a3bb(0x182)],_0x24279d[_0x36a3bb(0x15e)][_0x36a3bb(0x1ae)]),'throwHttpErrors':![]},_0x1f317d=await _0x3d343e['Aapcu'](got,_0x37e183,_0x18146c);_0x3d343e[_0x36a3bb(0x14a)](_0x1f317d,null)&&_0x3d343e[_0x36a3bb(0x161)](_0x1f317d,undefined)&&_0x3d343e[_0x36a3bb(0x174)](_0x1f317d['statusCode'],0xc8)&&(logger['info'](_0x3d343e['tvCTO']),process[_0x36a3bb(0x14b)](0x0)),logger[_0x36a3bb(0x176)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x1f317d[_0x36a3bb(0x1b9)]),await _0x3d343e[_0x36a3bb(0x197)](sendInstrumentationEvent,_0x242fd4,_0x3d343e['eYQCp'],messageTypes[_0x36a3bb(0x181)],_0x3d343e[_0x36a3bb(0x19c)],_0xd8ef3d,_0x242fd4),process[_0x36a3bb(0x14b)](0x1);}_0x3d343e[_0x36a3bb(0x1c9)](_0xd8ef3d[_0x36a3bb(0x1c3)],0x191)&&(logger[_0x36a3bb(0x176)](_0x3d343e[_0x36a3bb(0x18e)]),await _0x3d343e[_0x36a3bb(0x16c)](sendInstrumentationEvent,_0x242fd4,_0x3d343e[_0x36a3bb(0x1a1)],messageTypes[_0x36a3bb(0x181)],_0x3d343e[_0x36a3bb(0x17a)],null,_0x242fd4),process[_0x36a3bb(0x14b)](0x1)),_0x3d343e[_0x36a3bb(0x1a8)](_0xd8ef3d[_0x36a3bb(0x1c3)],0x190)&&(logger[_0x36a3bb(0x176)](JSON['parse'](_0xd8ef3d[_0x36a3bb(0x1b9)])[_0x36a3bb(0x1ad)]),await _0x3d343e[_0x36a3bb(0x16c)](sendInstrumentationEvent,_0x242fd4,_0x3d343e['eYQCp'],messageTypes['ERROR'],_0x3d343e[_0x36a3bb(0x18c)],null,_0x242fd4),process['exit'](0x1)),logger['error'](_0x36a3bb(0x1b2)+JSON['stringify'](_0xd8ef3d)),await _0x3d343e[_0x36a3bb(0x15c)](sendInstrumentationEvent,_0x242fd4,_0x3d343e['eYQCp'],messageTypes[_0x36a3bb(0x181)],_0x3d343e[_0x36a3bb(0x19c)],_0xd8ef3d,_0x242fd4),process[_0x36a3bb(0x14b)](0x1);}catch(_0x58b85f){logger[_0x36a3bb(0x176)](_0x36a3bb(0x172)+_0x58b85f[_0x36a3bb(0x189)]),await _0x3d343e['gqrWf'](sendInstrumentationEvent,_0x242fd4,_0x3d343e[_0x36a3bb(0x1a1)],messageTypes['ERROR'],_0x3d343e['nbffV'],_0x58b85f,_0x242fd4),process[_0x36a3bb(0x14b)](0x1);}};
@@ -1 +1 @@
1
- function a12_0x5d0a(_0x423f7b,_0x5cdc33){const _0x3a1ad9=a12_0x3a1a();return a12_0x5d0a=function(_0x5d0a6f,_0x310aff){_0x5d0a6f=_0x5d0a6f-0x157;let _0x50b8f1=_0x3a1ad9[_0x5d0a6f];return _0x50b8f1;},a12_0x5d0a(_0x423f7b,_0x5cdc33);}const a12_0x16bf97=a12_0x5d0a;(function(_0x1c4f45,_0x58f9a8){const _0x45456f=a12_0x5d0a,_0x11adec=_0x1c4f45();while(!![]){try{const _0x56bd84=parseInt(_0x45456f(0x19a))/0x1*(parseInt(_0x45456f(0x17f))/0x2)+-parseInt(_0x45456f(0x1bb))/0x3*(parseInt(_0x45456f(0x166))/0x4)+-parseInt(_0x45456f(0x191))/0x5*(-parseInt(_0x45456f(0x1be))/0x6)+parseInt(_0x45456f(0x1b0))/0x7+parseInt(_0x45456f(0x18b))/0x8*(-parseInt(_0x45456f(0x16b))/0x9)+parseInt(_0x45456f(0x19f))/0xa*(parseInt(_0x45456f(0x1a7))/0xb)+-parseInt(_0x45456f(0x192))/0xc;if(_0x56bd84===_0x58f9a8)break;else _0x11adec['push'](_0x11adec['shift']());}catch(_0x2d3796){_0x11adec['push'](_0x11adec['shift']());}}}(a12_0x3a1a,0x65ac3));const fs=require('fs'),util=require(a12_0x16bf97(0x17b)),got=require(a12_0x16bf97(0x188)),{v4:uuidv4}=require(a12_0x16bf97(0x16f)),{logger}=require(a12_0x16bf97(0x16c)),{inputBstackKeys}=require(a12_0x16bf97(0x1ac)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x16bf97(0x19b)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x16bf97(0x18f)),{sendInstrumentationEvent}=require(a12_0x16bf97(0x159));function a12_0x3a1a(){const _0xa01603=['344QcPZNj','baRPA','vfXKV','readFileSync','../utils/utilityMethods','init','235viBkex','1839168gOEnbh','password','cUhML','handler','AnvRM','BJOVj','env','bstackUsername','451196zPfTpQ','../config/constants','debug','ERROR','epilogue','99910HbbosI','HWEbR','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','username','mkdirSync','CqHDT','anWFw','writeFileSync','44xcveTq','YneCZ','ERHzu','command','builder','../utils/userInput','GdFVC','BROWSERSTACK_USERNAME','iYZNA','983983oEPDOt','description','LXkzP','/automate/plan.json','qggWq','parse','bstack-accesskey','EChHE','bstack-username','help','WTAJD','2733wTkMGC','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','hjbny','62160JpoRTy','bvkqo','ZISSP','ophgb','zODXw','error','type','../utils/instrumentationUtils','string','hCdrk','dvvLs','fkoMl','RNAsp','existsSync','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','recommendCommands','options','nNdSU','uevpw','zwqRw','2148HkAzxE','hTQho','YolQe','exit','bstackAccesskey','12501TRyJqX','../config/logger','Dvnof','Browserstack','uuid','usage','Zupjf','AXUFH','UrbLI','stack','BROWSERSTACK_ACCESS_KEY','ondJs','INFO','BLFsP','stringify','statusCode','util','EztVR','OdolD','strict','2vnIhOs','argv','wrong-creds','lpaen','SQwjJ','iAqJY','nNWfn','IvwJh','JGsOi','got','hXCSl','vbZnz'];a12_0x3a1a=function(){return _0xa01603;};return a12_0x3a1a();}exports[a12_0x16bf97(0x1aa)]=a12_0x16bf97(0x190),exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x16bf97(0x1ab)]=function(_0x6455be){const _0x57747a=a12_0x16bf97,_0x512df1={};_0x512df1[_0x57747a(0x1c1)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x512df1['ERHzu']='string',_0x512df1[_0x57747a(0x15e)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x512df1[_0x57747a(0x1c0)]='help';const _0xd0f7c7=_0x512df1,_0x484bd5={};_0x484bd5[_0x57747a(0x1b1)]=_0xd0f7c7[_0x57747a(0x1c1)],_0x484bd5[_0x57747a(0x158)]=_0xd0f7c7[_0x57747a(0x1a9)];const _0x2dc41b={};_0x2dc41b['description']=_0xd0f7c7[_0x57747a(0x15e)],_0x2dc41b['type']=_0xd0f7c7[_0x57747a(0x1a9)];const _0x4a9ca9={};return _0x4a9ca9['bstack-username']=_0x484bd5,_0x4a9ca9[_0x57747a(0x1b6)]=_0x2dc41b,_0x6455be[_0x57747a(0x170)](HELP_HEADER_MESSAGE['init'])[_0x57747a(0x19e)](HELP_FOOTER_MESSAGE)['options'](_0x4a9ca9)[_0x57747a(0x161)]()[_0x57747a(0x17e)]()['help'](_0xd0f7c7['ZISSP'])[_0x57747a(0x180)];},exports[a12_0x16bf97(0x195)]=async function(_0x2da845){const _0x116786=a12_0x16bf97,_0x53d517={'nNdSU':_0x116786(0x1a1),'lpaen':_0x116786(0x15a),'VcLJM':_0x116786(0x160),'YolQe':_0x116786(0x1b9),'YneCZ':'utf-8','WTAJD':function(_0xc1e65a){return _0xc1e65a();},'CqHDT':function(_0x499c38,_0x2b4ecd,_0x1583a9,_0xa9164a,_0x4eb51d,_0x4ad9e7,_0x2ab87a){return _0x499c38(_0x2b4ecd,_0x1583a9,_0xa9164a,_0x4eb51d,_0x4ad9e7,_0x2ab87a);},'uevpw':'init-called','iYZNA':function(_0xe9ce4c,_0x24a233){return _0xe9ce4c===_0x24a233;},'WOZlA':'saRLV','anWFw':_0x116786(0x165),'JGsOi':function(_0x4ba7e9,_0x43f923){return _0x4ba7e9!==_0x43f923;},'baRPA':'IrXvl','YraOq':_0x116786(0x16d),'nNWfn':function(_0xda8772,_0x13cea5){return _0xda8772===_0x13cea5;},'UrbLI':'FNOCx','EChHE':function(_0x3cc0a9,_0x5ec89a){return _0x3cc0a9===_0x5ec89a;},'LXkzP':'XXgim','hjbny':_0x116786(0x167),'qggWq':function(_0xbec88d,_0x497357){return _0xbec88d===_0x497357;},'cUhML':function(_0x222aad,_0x1a2166){return _0x222aad===_0x1a2166;},'fkoMl':_0x116786(0x184),'zNhAb':_0x116786(0x1bc),'usDuh':function(_0x594da4){return _0x594da4();},'bIyga':'GET','SQwjJ':function(_0x37c934,_0x42fdc1,_0x853a78){return _0x37c934(_0x42fdc1,_0x853a78);},'dvvLs':function(_0x1425fa,_0x45e039,_0x2abd75){return _0x1425fa(_0x45e039,_0x2abd75);},'sVTYu':function(_0x19ae2d,_0x3516cb){return _0x19ae2d===_0x3516cb;},'ondJs':function(_0x2a0b0e,_0x59aac2){return _0x2a0b0e===_0x59aac2;},'hXCSl':_0x116786(0x186),'Zupjf':_0x116786(0x1bf),'OdolD':_0x116786(0x18a),'BJOVj':_0x116786(0x172),'vfXKV':function(_0x106cb8){return _0x106cb8();},'GISwW':function(_0x4497cb,_0xa6ebf6){return _0x4497cb!==_0xa6ebf6;},'GdFVC':_0x116786(0x1a0),'AnvRM':_0x116786(0x17c),'mVuzW':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','hCdrk':_0x116786(0x181),'zODXw':function(_0x4cee88,_0x5c046b,_0x2a3251,_0x3d2be2,_0x3c5da1,_0x30f9a3,_0x5017c7){return _0x4cee88(_0x5c046b,_0x2a3251,_0x3d2be2,_0x3c5da1,_0x30f9a3,_0x5017c7);},'BLFsP':'unknown-error'};try{global_registry['requestId']=_0x53d517['WTAJD'](uuidv4),_0x53d517[_0x116786(0x1a4)](sendInstrumentationEvent,_0x2da845,_0x53d517[_0x116786(0x164)],messageTypes[_0x116786(0x177)],null,null,_0x2da845);const _0x7ce280=_0x53d517[_0x116786(0x1ba)](getDirForConfig);if(!fs[_0x116786(0x15f)](_0x7ce280)){if(_0x53d517[_0x116786(0x1af)](_0x53d517['WOZlA'],_0x53d517[_0x116786(0x1a5)])){const _0x16df5f={};_0x16df5f['description']=_0x53d517[_0x116786(0x163)],_0x16df5f['type']=_0x53d517[_0x116786(0x182)];const _0x2356bc={};_0x2356bc[_0x116786(0x1b1)]=_0x53d517['VcLJM'],_0x2356bc[_0x116786(0x158)]=_0x53d517['lpaen'];const _0x206cfa={};return _0x206cfa[_0x116786(0x1b8)]=_0x16df5f,_0x206cfa[_0x116786(0x1b6)]=_0x2356bc,_0x46104b[_0x116786(0x170)](_0x317f65['init'])[_0x116786(0x19e)](_0x50e4c3)[_0x116786(0x162)](_0x206cfa)[_0x116786(0x161)]()[_0x116786(0x17e)]()[_0x116786(0x1b9)](_0x53d517[_0x116786(0x168)])[_0x116786(0x180)];}else fs[_0x116786(0x1a3)](_0x7ce280);}let _0x1a3219,_0xe221f2;process['env'][_0x116786(0x1ae)]&&(_0x53d517[_0x116786(0x187)](_0x53d517[_0x116786(0x18c)],_0x53d517['YraOq'])?_0x1a3219=process[_0x116786(0x198)][_0x116786(0x1ae)]:_0x26e500=_0x3c3a94[_0x116786(0x1b5)](_0x57df88['readFileSync'](_0x3ac1de,_0x53d517[_0x116786(0x1a8)])));process['env'][_0x116786(0x175)]&&(_0x53d517[_0x116786(0x185)](_0x53d517[_0x116786(0x173)],_0x53d517['UrbLI'])?_0xe221f2=process['env'][_0x116786(0x175)]:_0x591b81=_0x493ca4[_0x116786(0x198)][_0x116786(0x1ae)]);_0x2da845[_0x116786(0x199)]&&(_0x53d517[_0x116786(0x1b7)](_0x53d517[_0x116786(0x1b2)],_0x53d517[_0x116786(0x1b2)])?_0x1a3219=_0x2da845[_0x116786(0x199)]:_0x1d35af=_0x2ced0a[_0x116786(0x198)][_0x116786(0x175)]);_0x2da845['bstackAccesskey']&&(_0x53d517[_0x116786(0x187)](_0x53d517[_0x116786(0x1bd)],_0x53d517[_0x116786(0x1bd)])?_0x1ad445[_0x116786(0x1a3)](_0xb7b7ff):_0xe221f2=_0x2da845['bstackAccesskey']);if(_0x53d517[_0x116786(0x1b4)](_0x1a3219,undefined)||_0x53d517[_0x116786(0x1b4)](_0xe221f2,undefined)){if(_0x53d517[_0x116786(0x194)](_0x53d517['fkoMl'],_0x53d517[_0x116786(0x15d)])){logger[_0x116786(0x19c)](_0x53d517['zNhAb']);const [_0x147f1b,_0x294ffc]=await _0x53d517['usDuh'](inputBstackKeys);_0x1a3219=_0x147f1b,_0xe221f2=_0x294ffc;}else{let _0x26f138={};const _0x56df0d=_0x53d517[_0x116786(0x1ba)](_0x1f03e5);_0x44a3df['existsSync'](_0x56df0d)&&(_0x26f138=_0x6c8fd[_0x116786(0x1b5)](_0x1bbf3e['readFileSync'](_0x56df0d,_0x53d517[_0x116786(0x1a8)])));const _0x1f94ae={};_0x1f94ae[_0x116786(0x1a2)]=_0x4beed3,_0x1f94ae[_0x116786(0x193)]=_0x294022,_0x26f138[_0x116786(0x16e)]=_0x1f94ae,_0x48dca8['writeFileSync'](_0x56df0d,_0xbc9cce[_0x116786(0x179)](_0x26f138)),_0x5e6617[_0x116786(0x169)](0x0);}}let _0x35bc8f=![];const _0x264e14='https://'+_0x1a3219+':'+_0xe221f2+'@'+BS_API_URL+_0x116786(0x1b3),_0x477415={'method':_0x53d517['bIyga'],'headers':_0x53d517[_0x116786(0x183)](getAuthHeader,_0x1a3219,_0xe221f2),'throwHttpErrors':![]},_0x22f5d1=await _0x53d517[_0x116786(0x15c)](got,_0x264e14,_0x477415);_0x53d517['JGsOi'](_0x22f5d1,null)&&_0x53d517[_0x116786(0x187)](_0x22f5d1,undefined)&&_0x53d517['sVTYu'](_0x22f5d1[_0x116786(0x17a)],0xc8)&&(_0x53d517[_0x116786(0x176)](_0x53d517[_0x116786(0x189)],_0x53d517[_0x116786(0x171)])?_0xd2fb95=_0x2337a4[_0x116786(0x199)]:_0x35bc8f=!![]);if(_0x35bc8f){if(_0x53d517[_0x116786(0x187)](_0x53d517[_0x116786(0x17d)],_0x53d517[_0x116786(0x197)])){let _0x3839e8={};const _0x177eda=_0x53d517[_0x116786(0x18d)](getCredentialsPath);fs[_0x116786(0x15f)](_0x177eda)&&(_0x53d517['GISwW'](_0x53d517[_0x116786(0x1ad)],_0x53d517[_0x116786(0x196)])?_0x3839e8=JSON[_0x116786(0x1b5)](fs[_0x116786(0x18e)](_0x177eda,_0x53d517['YneCZ'])):_0x36e151=_0x288268[_0x116786(0x16a)]);const _0x599798={};_0x599798[_0x116786(0x1a2)]=_0x1a3219,_0x599798[_0x116786(0x193)]=_0xe221f2,_0x3839e8['Browserstack']=_0x599798,fs[_0x116786(0x1a6)](_0x177eda,JSON[_0x116786(0x179)](_0x3839e8)),process[_0x116786(0x169)](0x0);}else _0x3d3a29=!![];}else logger['error'](_0x53d517['mVuzW']),await _0x53d517[_0x116786(0x1a4)](sendInstrumentationEvent,_0x2da845,_0x53d517['uevpw'],messageTypes[_0x116786(0x19d)],_0x53d517[_0x116786(0x15b)],null,_0x2da845),process[_0x116786(0x169)](0x1);}catch(_0x1eac13){logger[_0x116786(0x157)](_0x1eac13[_0x116786(0x174)]),await _0x53d517[_0x116786(0x1c2)](sendInstrumentationEvent,_0x2da845,_0x53d517[_0x116786(0x164)],messageTypes['ERROR'],_0x53d517[_0x116786(0x178)],_0x1eac13,_0x2da845),process['exit'](0x1);}};
1
+ function a12_0x2baf(){const _0x34cc73=['uuid','boVuf','687848EJdFMe','8790MuGyje','statusCode','Kwnvw','description','366veRIgs','8RNRxxP','argv','PqUDp','ZsxvA','vxdbw','hxYXt','bstackAccesskey','bstack-username','ydMFm','eEoHz','pPzOl','shyQq','gLErt','existsSync','recommendCommands','WXVgr','Tzfmw','password','help','stringify','JgbqX','ERROR','Browserstack','YOVuH','IBqsa','../config/constants','stack','FlwYa','JbWTo','WgVSV','dlqjl','BROWSERSTACK_USERNAME','QPeTQ','751200LiXxAO','gqbxF','BROWSERSTACK_ACCESS_KEY','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','Dpsro','6411XoOUeo','options','76eBOztY','vLkCD','frzDd','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','3751335zGakTb','desc','bstackUsername','JwraF','prwnR','strict','kNDvV','parse','mkdirSync','string','readFileSync','RagRi','got','gxgHE','username','HlqqU','debug','EJhsM','5063954mjXvct','GXECe','kSJij','/automate/plan.json','exit','util','pbHSY','TzVKl','writeFileSync','../utils/instrumentationUtils','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','builder','error','uHZkq','env','type','29405ErpLeT','TNSgn','requestId','init','RNBhv','aQpDo','869sDRtVR','utf-8','VNEqp','handler','usage','GET','wJTFS','TCXRe','JxJWU','afQdK','gKWUo'];a12_0x2baf=function(){return _0x34cc73;};return a12_0x2baf();}const a12_0x21162d=a12_0x5713;function a12_0x5713(_0x6a258d,_0x5bb6e0){const _0x2baf73=a12_0x2baf();return a12_0x5713=function(_0x57135b,_0x31134b){_0x57135b=_0x57135b-0x140;let _0x7beaf0=_0x2baf73[_0x57135b];return _0x7beaf0;},a12_0x5713(_0x6a258d,_0x5bb6e0);}(function(_0x4e4304,_0x3babf2){const _0x47847c=a12_0x5713,_0x585db0=_0x4e4304();while(!![]){try{const _0x1cc577=parseInt(_0x47847c(0x19d))/0x1+-parseInt(_0x47847c(0x176))/0x2+parseInt(_0x47847c(0x1a2))/0x3*(parseInt(_0x47847c(0x1a4))/0x4)+-parseInt(_0x47847c(0x163))/0x5*(-parseInt(_0x47847c(0x17b))/0x6)+-parseInt(_0x47847c(0x153))/0x7+-parseInt(_0x47847c(0x17c))/0x8*(-parseInt(_0x47847c(0x141))/0x9)+-parseInt(_0x47847c(0x177))/0xa*(parseInt(_0x47847c(0x169))/0xb);if(_0x1cc577===_0x3babf2)break;else _0x585db0['push'](_0x585db0['shift']());}catch(_0xa7b898){_0x585db0['push'](_0x585db0['shift']());}}}(a12_0x2baf,0x691ec));const fs=require('fs'),util=require(a12_0x21162d(0x158)),got=require(a12_0x21162d(0x14d)),{v4:uuidv4}=require(a12_0x21162d(0x174)),{logger}=require('../config/logger'),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x21162d(0x195)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x21162d(0x15c));exports['command']=a12_0x21162d(0x166),exports[a12_0x21162d(0x142)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x21162d(0x15e)]=function(_0x1f715c){const _0x49e790=a12_0x21162d,_0x3d5eb7={};_0x3d5eb7['WgVSV']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x3d5eb7[_0x49e790(0x180)]=_0x49e790(0x14a),_0x3d5eb7['OBxll']=_0x49e790(0x140),_0x3d5eb7[_0x49e790(0x19c)]=_0x49e790(0x18e);const _0x4df333=_0x3d5eb7,_0x4e17ae={};_0x4e17ae['description']=_0x4df333[_0x49e790(0x199)],_0x4e17ae[_0x49e790(0x162)]=_0x4df333[_0x49e790(0x180)];const _0x148b61={};_0x148b61[_0x49e790(0x17a)]=_0x4df333['OBxll'],_0x148b61['type']=_0x4df333[_0x49e790(0x180)];const _0x1d2fa5={};return _0x1d2fa5[_0x49e790(0x183)]=_0x4e17ae,_0x1d2fa5['bstack-accesskey']=_0x148b61,_0x1f715c[_0x49e790(0x16d)](HELP_HEADER_MESSAGE[_0x49e790(0x166)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x49e790(0x1a3)](_0x1d2fa5)['recommendCommands']()[_0x49e790(0x146)]()[_0x49e790(0x18e)](_0x4df333[_0x49e790(0x19c)])['argv'];},exports[a12_0x21162d(0x16c)]=async function(_0x19bd56){const _0x4e86a9=a12_0x21162d,_0x232029={'shyQq':function(_0x422208){return _0x422208();},'WXVgr':_0x4e86a9(0x16a),'uHZkq':_0x4e86a9(0x15d),'JgbqX':_0x4e86a9(0x14a),'boVuf':_0x4e86a9(0x140),'PqUDp':_0x4e86a9(0x18e),'IBqsa':function(_0x5dbfca){return _0x5dbfca();},'GXECe':function(_0x17d85b,_0x503a8d,_0x3707e5,_0x52b1b0,_0x20743b,_0x3cbda1,_0x16f662){return _0x17d85b(_0x503a8d,_0x3707e5,_0x52b1b0,_0x20743b,_0x3cbda1,_0x16f662);},'Tzfmw':'init-called','ZsxvA':function(_0x3c427f,_0xe36bb6){return _0x3c427f===_0xe36bb6;},'vLkCD':_0x4e86a9(0x14e),'wJTFS':function(_0x3e71a2,_0x255aba){return _0x3e71a2!==_0x255aba;},'Dpsro':_0x4e86a9(0x181),'frzDd':_0x4e86a9(0x171),'RNBhv':'cYsnZ','JbWTo':_0x4e86a9(0x184),'prwnR':_0x4e86a9(0x164),'OKLqs':'TlRLc','RagRi':_0x4e86a9(0x188),'EJhsM':_0x4e86a9(0x15a),'gqbxF':function(_0x184453,_0x5f499e){return _0x184453!==_0x5f499e;},'JwraF':'qEgoc','tJRiu':'ekDmg','gKWUo':_0x4e86a9(0x1a0),'YOVuH':_0x4e86a9(0x16e),'afQdK':function(_0x2bacc8,_0xd32009,_0x2950b2){return _0x2bacc8(_0xd32009,_0x2950b2);},'pPzOl':function(_0x5eac7a,_0x3c41fc){return _0x5eac7a!==_0x3c41fc;},'TCXRe':function(_0x170bda,_0x5d0259){return _0x170bda!==_0x5d0259;},'kpFwV':_0x4e86a9(0x155),'dlqjl':_0x4e86a9(0x159),'AFnjx':'UwOTH','HlqqU':_0x4e86a9(0x16b),'eEoHz':'dVoTO','FlwYa':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','kNDvV':function(_0x387350,_0x4b0824,_0x3c984e,_0x4a8ba1,_0x2d78d0,_0x332b8d,_0x108b64){return _0x387350(_0x4b0824,_0x3c984e,_0x4a8ba1,_0x2d78d0,_0x332b8d,_0x108b64);},'aQpDo':'wrong-creds','kXcxH':function(_0x3744e6,_0xeb412e,_0x3bd1ab,_0x50165b,_0x30838d,_0x3728ac,_0x1486f2){return _0x3744e6(_0xeb412e,_0x3bd1ab,_0x50165b,_0x30838d,_0x3728ac,_0x1486f2);},'Kwnvw':'unknown-error'};try{global_registry[_0x4e86a9(0x165)]=_0x232029[_0x4e86a9(0x194)](uuidv4),_0x232029[_0x4e86a9(0x154)](sendInstrumentationEvent,_0x19bd56,_0x232029['Tzfmw'],messageTypes['INFO'],null,null,_0x19bd56);const _0x4f87c8=_0x232029[_0x4e86a9(0x194)](getDirForConfig);!fs[_0x4e86a9(0x189)](_0x4f87c8)&&(_0x232029[_0x4e86a9(0x17f)](_0x232029[_0x4e86a9(0x1a5)],_0x232029[_0x4e86a9(0x1a5)])?fs['mkdirSync'](_0x4f87c8):_0x514c7b=_0x45368a[_0x4e86a9(0x143)]);let _0x5c5664,_0x3f9f21;if(process['env'][_0x4e86a9(0x19b)]){if(_0x232029[_0x4e86a9(0x16f)](_0x232029[_0x4e86a9(0x1a1)],_0x232029[_0x4e86a9(0x1a6)]))_0x5c5664=process[_0x4e86a9(0x161)][_0x4e86a9(0x19b)];else{let _0x42c74b={};const _0x11dc0c=_0x232029[_0x4e86a9(0x187)](_0x54c96d);_0x42dcce[_0x4e86a9(0x189)](_0x11dc0c)&&(_0x42c74b=_0x232b38[_0x4e86a9(0x148)](_0x234651['readFileSync'](_0x11dc0c,_0x232029[_0x4e86a9(0x18b)])));const _0x5da028={};_0x5da028[_0x4e86a9(0x14f)]=_0x1a34fb,_0x5da028[_0x4e86a9(0x18d)]=_0x41ecc3,_0x42c74b[_0x4e86a9(0x192)]=_0x5da028,_0x4ce967[_0x4e86a9(0x15b)](_0x11dc0c,_0x4bb4e6[_0x4e86a9(0x18f)](_0x42c74b)),_0x1eed90[_0x4e86a9(0x157)](0x0);}}process[_0x4e86a9(0x161)][_0x4e86a9(0x19f)]&&(_0x232029[_0x4e86a9(0x17f)](_0x232029[_0x4e86a9(0x167)],_0x232029[_0x4e86a9(0x198)])?_0x83e834=!![]:_0x3f9f21=process[_0x4e86a9(0x161)][_0x4e86a9(0x19f)]);_0x19bd56[_0x4e86a9(0x143)]&&(_0x232029['ZsxvA'](_0x232029[_0x4e86a9(0x145)],_0x232029['OKLqs'])?_0x392e42=_0x504f48['env']['BROWSERSTACK_USERNAME']:_0x5c5664=_0x19bd56[_0x4e86a9(0x143)]);_0x19bd56[_0x4e86a9(0x182)]&&(_0x232029[_0x4e86a9(0x16f)](_0x232029[_0x4e86a9(0x14c)],_0x232029[_0x4e86a9(0x152)])?_0x3f9f21=_0x19bd56[_0x4e86a9(0x182)]:_0x5155c2=_0x28ddf0[_0x4e86a9(0x182)]);if(_0x232029[_0x4e86a9(0x17f)](_0x5c5664,undefined)||_0x232029[_0x4e86a9(0x17f)](_0x3f9f21,undefined)){if(_0x232029[_0x4e86a9(0x19e)](_0x232029[_0x4e86a9(0x144)],_0x232029['tJRiu'])){logger[_0x4e86a9(0x151)](_0x232029[_0x4e86a9(0x173)]);const [_0xf7f813,_0x6be29f]=await _0x232029[_0x4e86a9(0x187)](inputBstackKeys);_0x5c5664=_0xf7f813,_0x3f9f21=_0x6be29f;}else{const _0x1c4aaf={};_0x1c4aaf['description']=_0x232029[_0x4e86a9(0x160)],_0x1c4aaf[_0x4e86a9(0x162)]=_0x232029[_0x4e86a9(0x190)];const _0x16d3a1={};_0x16d3a1[_0x4e86a9(0x17a)]=_0x232029[_0x4e86a9(0x175)],_0x16d3a1[_0x4e86a9(0x162)]=_0x232029['JgbqX'];const _0x3d2c2e={};return _0x3d2c2e[_0x4e86a9(0x183)]=_0x1c4aaf,_0x3d2c2e['bstack-accesskey']=_0x16d3a1,_0x40d89e[_0x4e86a9(0x16d)](_0x192fff[_0x4e86a9(0x166)])['epilogue'](_0x44802e)['options'](_0x3d2c2e)[_0x4e86a9(0x18a)]()[_0x4e86a9(0x146)]()[_0x4e86a9(0x18e)](_0x232029[_0x4e86a9(0x17e)])[_0x4e86a9(0x17d)];}}let _0x1dc0e9=![];const _0x435fba='https://'+_0x5c5664+':'+_0x3f9f21+'@'+BS_API_URL+_0x4e86a9(0x156),_0x5b6dfd={'method':_0x232029[_0x4e86a9(0x193)],'headers':_0x232029[_0x4e86a9(0x172)](getAuthHeader,_0x5c5664,_0x3f9f21),'throwHttpErrors':![]},_0x4958e0=await _0x232029['afQdK'](got,_0x435fba,_0x5b6dfd);_0x232029[_0x4e86a9(0x186)](_0x4958e0,null)&&_0x232029[_0x4e86a9(0x19e)](_0x4958e0,undefined)&&_0x232029[_0x4e86a9(0x17f)](_0x4958e0[_0x4e86a9(0x178)],0xc8)&&(_0x232029[_0x4e86a9(0x170)](_0x232029['kpFwV'],_0x232029[_0x4e86a9(0x19a)])?_0x1dc0e9=!![]:_0x4d6f3a=_0x38ef87['env'][_0x4e86a9(0x19f)]);if(_0x1dc0e9){if(_0x232029[_0x4e86a9(0x17f)](_0x232029['AFnjx'],_0x232029[_0x4e86a9(0x150)]))_0x5e7f4b=_0x61bef1[_0x4e86a9(0x148)](_0x3af2bb['readFileSync'](_0x556089,_0x232029[_0x4e86a9(0x18b)]));else{let _0x27d1b2={};const _0x598346=_0x232029[_0x4e86a9(0x187)](getCredentialsPath);fs[_0x4e86a9(0x189)](_0x598346)&&(_0x232029[_0x4e86a9(0x186)](_0x232029[_0x4e86a9(0x185)],_0x232029[_0x4e86a9(0x185)])?_0x5d8227[_0x4e86a9(0x149)](_0x26018c):_0x27d1b2=JSON[_0x4e86a9(0x148)](fs[_0x4e86a9(0x14b)](_0x598346,_0x232029[_0x4e86a9(0x18b)])));const _0x310cfe={};_0x310cfe[_0x4e86a9(0x14f)]=_0x5c5664,_0x310cfe['password']=_0x3f9f21,_0x27d1b2['Browserstack']=_0x310cfe,fs[_0x4e86a9(0x15b)](_0x598346,JSON[_0x4e86a9(0x18f)](_0x27d1b2)),process[_0x4e86a9(0x157)](0x0);}}else logger[_0x4e86a9(0x15f)](_0x232029[_0x4e86a9(0x197)]),await _0x232029[_0x4e86a9(0x147)](sendInstrumentationEvent,_0x19bd56,_0x232029[_0x4e86a9(0x18c)],messageTypes[_0x4e86a9(0x191)],_0x232029[_0x4e86a9(0x168)],null,_0x19bd56),process['exit'](0x1);}catch(_0x539cd6){logger[_0x4e86a9(0x15f)](_0x539cd6[_0x4e86a9(0x196)]),await _0x232029['kXcxH'](sendInstrumentationEvent,_0x19bd56,_0x232029[_0x4e86a9(0x18c)],messageTypes[_0x4e86a9(0x191)],_0x232029[_0x4e86a9(0x179)],_0x539cd6,_0x19bd56),process[_0x4e86a9(0x157)](0x1);}};
@@ -1 +1 @@
1
- const a13_0x4b4119=a13_0x5c4d;(function(_0x28a2e4,_0x12b1ad){const _0x2d3fb3=a13_0x5c4d,_0x5a7216=_0x28a2e4();while(!![]){try{const _0x5d9666=parseInt(_0x2d3fb3(0xb4))/0x1+-parseInt(_0x2d3fb3(0xb2))/0x2*(-parseInt(_0x2d3fb3(0xc1))/0x3)+-parseInt(_0x2d3fb3(0xbc))/0x4*(parseInt(_0x2d3fb3(0xbb))/0x5)+parseInt(_0x2d3fb3(0xb9))/0x6*(parseInt(_0x2d3fb3(0xc2))/0x7)+parseInt(_0x2d3fb3(0xb6))/0x8+parseInt(_0x2d3fb3(0xbf))/0x9*(-parseInt(_0x2d3fb3(0xaf))/0xa)+parseInt(_0x2d3fb3(0xc7))/0xb*(-parseInt(_0x2d3fb3(0xba))/0xc);if(_0x5d9666===_0x12b1ad)break;else _0x5a7216['push'](_0x5a7216['shift']());}catch(_0x53224e){_0x5a7216['push'](_0x5a7216['shift']());}}}(a13_0x5aa5,0xc47ae));function a13_0x5aa5(){const _0x51af0f=['root','builder','237498JdCkxO','strict','1303926DnPDVp','list','1588728CrsebS','usage','desc','12FWZUHd','31212xppgcM','3516505iFnuax','4oCwuzc','command','list_commands','135fcouRc','iuHLX','12SKvitE','2120468TxnOGV','demandCommand','List\x20down\x20the\x20Grid\x20resources.','help','handler','2178IHoMen','373520swCbDC'];a13_0x5aa5=function(){return _0x51af0f;};return a13_0x5aa5();}function a13_0x5c4d(_0x15056f,_0xfcac30){const _0x5aa503=a13_0x5aa5();return a13_0x5c4d=function(_0x5c4d33,_0x180cda){_0x5c4d33=_0x5c4d33-0xaf;let _0x3ed98d=_0x5aa503[_0x5c4d33];return _0x3ed98d;},a13_0x5c4d(_0x15056f,_0xfcac30);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a13_0x4b4119(0xbd)]=a13_0x4b4119(0xb5),exports[a13_0x4b4119(0xb8)]=a13_0x4b4119(0xc4),exports[a13_0x4b4119(0xb1)]=function(_0x3eccd6){const _0x422b91=a13_0x4b4119,_0xb9e270={};_0xb9e270['iuHLX']=_0x422b91(0xbe),_0xb9e270['NwoMF']=_0x422b91(0xc5);const _0x362c83=_0xb9e270;return _0x3eccd6['commandDir'](_0x362c83[_0x422b91(0xc0)])[_0x422b91(0xc3)]()[_0x422b91(0xb7)](HELP_HEADER_MESSAGE[_0x422b91(0xb5)][_0x422b91(0xb0)])['epilogue'](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x422b91(0xb3)]()['help'](_0x362c83['NwoMF']);},exports[a13_0x4b4119(0xc6)]=function(_0x4d22d0){};
1
+ const a13_0x521c77=a13_0x2ce0;(function(_0x249771,_0x588774){const _0x38d577=a13_0x2ce0,_0x7e6379=_0x249771();while(!![]){try{const _0x425264=parseInt(_0x38d577(0x11c))/0x1*(-parseInt(_0x38d577(0x10e))/0x2)+parseInt(_0x38d577(0x106))/0x3+parseInt(_0x38d577(0x10f))/0x4*(parseInt(_0x38d577(0x112))/0x5)+-parseInt(_0x38d577(0x10c))/0x6*(parseInt(_0x38d577(0x109))/0x7)+-parseInt(_0x38d577(0x107))/0x8*(parseInt(_0x38d577(0x105))/0x9)+-parseInt(_0x38d577(0x113))/0xa+parseInt(_0x38d577(0x11d))/0xb;if(_0x425264===_0x588774)break;else _0x7e6379['push'](_0x7e6379['shift']());}catch(_0x3070cf){_0x7e6379['push'](_0x7e6379['shift']());}}}(a13_0x252c,0x89c93));function a13_0x2ce0(_0x53b89f,_0x1585f8){const _0x252c76=a13_0x252c();return a13_0x2ce0=function(_0x2ce0cd,_0x5e8e14){_0x2ce0cd=_0x2ce0cd-0x105;let _0x508863=_0x252c76[_0x2ce0cd];return _0x508863;},a13_0x2ce0(_0x53b89f,_0x1585f8);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x521c77(0x108));function a13_0x252c(){const _0x2852aa=['56OjKSSm','list','help','143556RpykUr','epilogue','286KcyzDv','188lvWUZC','handler','root','113075iLNIfI','9370240BlDBgB','GaztL','builder','command','strict','xZPpc','List\x20down\x20the\x20Grid\x20resources.','usage','list_commands','7324qCdAmA','20424459mVrjMN','7041636ETGiJq','1808595iMgoVg','8QofoLM','../config/constants'];a13_0x252c=function(){return _0x2852aa;};return a13_0x252c();}exports[a13_0x521c77(0x116)]=a13_0x521c77(0x10a),exports['desc']=a13_0x521c77(0x119),exports[a13_0x521c77(0x115)]=function(_0x378356){const _0x4bdd1b=a13_0x521c77,_0x54bc1c={};_0x54bc1c['xZPpc']=_0x4bdd1b(0x11b),_0x54bc1c[_0x4bdd1b(0x114)]=_0x4bdd1b(0x10b);const _0x13b7b9=_0x54bc1c;return _0x378356['commandDir'](_0x13b7b9[_0x4bdd1b(0x118)])['demandCommand']()[_0x4bdd1b(0x11a)](HELP_HEADER_MESSAGE[_0x4bdd1b(0x10a)][_0x4bdd1b(0x111)])[_0x4bdd1b(0x10d)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x4bdd1b(0x117)]()[_0x4bdd1b(0x10b)](_0x13b7b9[_0x4bdd1b(0x114)]);},exports[a13_0x521c77(0x110)]=function(_0x4eddb0){};
@@ -1 +1 @@
1
- const a14_0x311863=a14_0x2948;function a14_0x2948(_0x2d11bb,_0x35906f){const _0x29f43f=a14_0x29f4();return a14_0x2948=function(_0x29485e,_0x23db4f){_0x29485e=_0x29485e-0x1f0;let _0x46f192=_0x29f43f[_0x29485e];return _0x46f192;},a14_0x2948(_0x2d11bb,_0x35906f);}function a14_0x29f4(){const _0xf05539=['body','exit','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','XBroA','name','VwEoF','grid-profiles','mGarr','command','Browserstack','all-grid-profiles','/packages/cli/get-grid-profiles','1604568uVIRRl','https://','push','cloud-provider','2790sjTflv','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','requestId','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','xUMJT','555225HrGETS','KLnPB','unauthorised','epilogue','eshol','stringify','username','99406YuCEGy','YdYbv','boolean','bstackAccesskey','builder','type','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','kNBRF','tsdzZ','rJhcE','description','options','ERROR','../../utils/utilityMethods','log','gridProfile','1103780bsMbYc','cloudProvider','IrGkH','ktUbY','4OqtmsT','concurrency','help','uuid','PAyiO','GET','handler','server-error','password','IdqKQ','qrxkg','region','PxlxB','statusCode','/packages/cli/get-all-grid-profiles','sYgUL','gXTPB','612798eQBcSa','vZQoA','wRvTh','table','argv','sFxCB','error','grid-profile-name','PudIS','443884bUNLNP','1608ERBRTu','parse','allGridProfiles','yVShZ'];a14_0x29f4=function(){return _0xf05539;};return a14_0x29f4();}(function(_0x3684fd,_0x3e8f55){const _0x150e40=a14_0x2948,_0x350308=_0x3684fd();while(!![]){try{const _0x1703e5=parseInt(_0x150e40(0x225))/0x1*(-parseInt(_0x150e40(0x239))/0x2)+-parseInt(_0x150e40(0x21e))/0x3+-parseInt(_0x150e40(0x203))/0x4+parseInt(_0x150e40(0x235))/0x5+parseInt(_0x150e40(0x1fa))/0x6+parseInt(_0x150e40(0x214))/0x7+-parseInt(_0x150e40(0x204))/0x8*(-parseInt(_0x150e40(0x218))/0x9);if(_0x1703e5===_0x3e8f55)break;else _0x350308['push'](_0x350308['shift']());}catch(_0x331675){_0x350308['push'](_0x350308['shift']());}}}(a14_0x29f4,0x1d30d));const fs=require('fs'),got=require('got'),{table}=require(a14_0x311863(0x1fd)),{v4:uuidv4}=require(a14_0x311863(0x23c)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a14_0x311863(0x232)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x311863(0x210)]=a14_0x311863(0x20e),exports['desc']=a14_0x311863(0x21c),exports[a14_0x311863(0x229)]=function(_0x2dd237){const _0x541aad=a14_0x311863,_0x4a2d15={};_0x4a2d15['kNBRF']=_0x541aad(0x219),_0x4a2d15['eshol']=_0x541aad(0x227),_0x4a2d15[_0x541aad(0x21d)]=_0x541aad(0x23b);const _0x178e89=_0x4a2d15,_0x47b194={};_0x47b194[_0x541aad(0x22f)]=_0x178e89[_0x541aad(0x22c)],_0x47b194[_0x541aad(0x22a)]=_0x178e89[_0x541aad(0x222)];const _0x1baacd={};return _0x1baacd[_0x541aad(0x212)]=_0x47b194,_0x2dd237['usage'](HELP_HEADER_MESSAGE['list'][_0x541aad(0x234)])[_0x541aad(0x221)](HELP_FOOTER_MESSAGE)[_0x541aad(0x230)](_0x1baacd)[_0x541aad(0x23b)](_0x178e89['xUMJT'])[_0x541aad(0x1fe)];},exports[a14_0x311863(0x23f)]=async function(_0x333cce){const _0x51761a=a14_0x311863,_0x569dc4={'qrxkg':function(_0x1bbfbd){return _0x1bbfbd();},'KLnPB':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WxBTZ':function(_0x583ab1,_0x42e4c6,_0x3c8bfa,_0xbe9b,_0x2cc346,_0x5ef12c,_0x46794b){return _0x583ab1(_0x42e4c6,_0x3c8bfa,_0xbe9b,_0x2cc346,_0x5ef12c,_0x46794b);},'wRvTh':'list-grid-profiles-called','vZQoA':'init-not-called','PxlxB':_0x51761a(0x23e),'zmZUb':function(_0x5b6e65,_0x4a86a7,_0x3ea557){return _0x5b6e65(_0x4a86a7,_0x3ea557);},'VwEoF':function(_0x4cc759,_0x399209,_0x355fc5){return _0x4cc759(_0x399209,_0x355fc5);},'sFxCB':function(_0x1dc5da,_0x1a229d){return _0x1dc5da!==_0x1a229d;},'PudIS':function(_0x57e636,_0x1af0b8){return _0x57e636!==_0x1af0b8;},'rJhcE':function(_0xf5c53a,_0x26c282){return _0xf5c53a===_0x26c282;},'PAyiO':_0x51761a(0x21b),'gXTPB':_0x51761a(0x201),'XBroA':_0x51761a(0x217),'sYgUL':_0x51761a(0x1f4),'IdqKQ':_0x51761a(0x23a),'mGarr':function(_0x49e747,_0x39c367){return _0x49e747(_0x39c367);},'IrGkH':_0x51761a(0x20a),'tsdzZ':function(_0x437e49,_0x23e057,_0x1e4da6,_0xdc5b61,_0x151dc2,_0x14ce97,_0x34aa4c){return _0x437e49(_0x23e057,_0x1e4da6,_0xdc5b61,_0x151dc2,_0x14ce97,_0x34aa4c);},'YdYbv':_0x51761a(0x220),'ktUbY':_0x51761a(0x1f0),'YMrNA':function(_0x4d57f2,_0x181f0d,_0x3a648c,_0x34916b,_0x18e3b3,_0x36a7a7,_0x2a8b74){return _0x4d57f2(_0x181f0d,_0x3a648c,_0x34916b,_0x18e3b3,_0x36a7a7,_0x2a8b74);},'yVShZ':'unknown-error'};try{global_registry[_0x51761a(0x21a)]=_0x569dc4['qrxkg'](uuidv4);let _0x4e06af=_0x51761a(0x215)+AG_API_URL+_0x51761a(0x213);_0x333cce[_0x51761a(0x206)]&&(_0x4e06af='https://'+AG_API_URL+_0x51761a(0x1f7));!fs['existsSync'](_0x569dc4[_0x51761a(0x1f3)](getCredentialsPath))&&(console[_0x51761a(0x200)](_0x569dc4[_0x51761a(0x21f)]),await _0x569dc4['WxBTZ'](sendInstrumentationEvent,_0x333cce,_0x569dc4[_0x51761a(0x1fc)],messageTypes['ERROR'],_0x569dc4[_0x51761a(0x1fb)],null,_0x333cce),process['exit'](0x1));const _0x4616c0=JSON[_0x51761a(0x205)](fs['readFileSync'](_0x569dc4[_0x51761a(0x1f3)](getCredentialsPath))),_0x39a3e3={'method':_0x569dc4[_0x51761a(0x1f5)],'headers':_0x569dc4['zmZUb'](getAuthHeader,_0x4616c0[_0x51761a(0x211)][_0x51761a(0x224)],_0x4616c0[_0x51761a(0x211)][_0x51761a(0x1f1)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x4616c0[_0x51761a(0x211)][_0x51761a(0x224)],global_registry[_0x51761a(0x228)]=_0x4616c0['Browserstack'][_0x51761a(0x1f1)],_0x569dc4['WxBTZ'](sendInstrumentationEvent,_0x333cce,_0x569dc4[_0x51761a(0x1fc)],messageTypes['INFO'],null,null,_0x333cce);const _0x3e00f9=await _0x569dc4[_0x51761a(0x20d)](got,_0x4e06af,_0x39a3e3);if(_0x569dc4[_0x51761a(0x1ff)](_0x3e00f9,null)&&_0x569dc4[_0x51761a(0x202)](_0x3e00f9,undefined)&&_0x569dc4[_0x51761a(0x22e)](_0x3e00f9[_0x51761a(0x1f6)],0xc8)){const _0x32ebb6=JSON['parse'](_0x3e00f9[_0x51761a(0x208)]);console[_0x51761a(0x233)](_0x569dc4[_0x51761a(0x23d)]);const _0x3ae9e1=[];_0x3ae9e1[_0x51761a(0x216)]([_0x569dc4[_0x51761a(0x1f9)],_0x569dc4[_0x51761a(0x20b)],_0x569dc4[_0x51761a(0x1f8)],_0x569dc4[_0x51761a(0x1f2)]]),_0x32ebb6['forEach'](_0x18240e=>{const _0xbed5fb=_0x51761a;_0x3ae9e1[_0xbed5fb(0x216)]([_0x18240e[_0xbed5fb(0x20c)],_0x18240e[_0xbed5fb(0x236)],_0x18240e[_0xbed5fb(0x1f4)],_0x18240e[_0xbed5fb(0x23a)]]);}),console[_0x51761a(0x233)](_0x569dc4[_0x51761a(0x20f)](table,_0x3ae9e1)),process[_0x51761a(0x209)](0x0);}_0x569dc4[_0x51761a(0x22e)](_0x3e00f9[_0x51761a(0x1f6)],0x191)&&(console[_0x51761a(0x200)](_0x569dc4[_0x51761a(0x237)]),await _0x569dc4[_0x51761a(0x22d)](sendInstrumentationEvent,_0x333cce,_0x569dc4[_0x51761a(0x1fc)],messageTypes[_0x51761a(0x231)],_0x569dc4[_0x51761a(0x226)],null,_0x333cce),process[_0x51761a(0x209)](0x1)),console[_0x51761a(0x200)](_0x51761a(0x22b)+JSON[_0x51761a(0x223)](_0x3e00f9)),await _0x569dc4['WxBTZ'](sendInstrumentationEvent,_0x333cce,_0x569dc4[_0x51761a(0x1fc)],messageTypes[_0x51761a(0x231)],_0x569dc4[_0x51761a(0x238)],_0x3e00f9,_0x333cce),process[_0x51761a(0x209)](0x1);}catch(_0x5658d0){console[_0x51761a(0x200)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5658d0['stack']),await _0x569dc4['YMrNA'](sendInstrumentationEvent,_0x333cce,_0x569dc4['wRvTh'],messageTypes[_0x51761a(0x231)],_0x569dc4[_0x51761a(0x207)],_0x5658d0,_0x333cce),process[_0x51761a(0x209)](0x1);}};
1
+ const a14_0x2f4113=a14_0x95f7;function a14_0x3d0b(){const _0xc1896d=['options','log','yGsJc','UiPvk','usage','KOdKe','16662MPbtuc','region','1385818VgMDHy','YPIiX','bstackAccesskey','9539560NXmYKF','20opjUHV','INFO','stack','UjbFj','gridProfile','all-grid-profiles','concurrency','13960791jORTSM','server-error','oDrJp','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EljhT','vRPLB','password','uBNGx','AeCmu','../../utils/utilityMethods','340982sHgrsd','builder','argv','cloud-provider','hSFIK','jRLzQ','Browserstack','got','handler','list','NDhHB','allGridProfiles','username','../../config/constants','RueyB','statusCode','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','parse','boolean','GET','PqXKC','readFileSync','qVRia','stringify','ERROR','help','type','name','desc','3351019uyjRdX','grid-profiles','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','axsOt','vvicU','requestId','forEach','description','VMwhN','body','epilogue','205074oIgfFy','error','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','HKxBr','2735fXfEnW','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','cloudProvider','Failed\x20to\x20list\x20resources!\x20Error:\x20','init-not-called','QrzFK','https://','aeJqx','exit'];a14_0x3d0b=function(){return _0xc1896d;};return a14_0x3d0b();}(function(_0x489d63,_0x29c049){const _0x4aa12f=a14_0x95f7,_0x28ddc0=_0x489d63();while(!![]){try{const _0x2ef1ff=-parseInt(_0x4aa12f(0x76))/0x1+parseInt(_0x4aa12f(0x8b))/0x2+-parseInt(_0x4aa12f(0xb3))/0x3*(-parseInt(_0x4aa12f(0x7a))/0x4)+-parseInt(_0x4aa12f(0xb7))/0x5*(-parseInt(_0x4aa12f(0x74))/0x6)+parseInt(_0x4aa12f(0xa8))/0x7+parseInt(_0x4aa12f(0x79))/0x8+-parseInt(_0x4aa12f(0x81))/0x9;if(_0x2ef1ff===_0x29c049)break;else _0x28ddc0['push'](_0x28ddc0['shift']());}catch(_0x4c1d87){_0x28ddc0['push'](_0x28ddc0['shift']());}}}(a14_0x3d0b,0xbae05));const fs=require('fs'),got=require(a14_0x2f4113(0x92)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x2f4113(0x98)),{getCredentialsPath,getAuthHeader}=require(a14_0x2f4113(0x8a)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a14_0x95f7(_0x52095b,_0x529332){const _0x3d0ba9=a14_0x3d0b();return a14_0x95f7=function(_0x95f766,_0x147190){_0x95f766=_0x95f766-0x6f;let _0x358090=_0x3d0ba9[_0x95f766];return _0x358090;},a14_0x95f7(_0x52095b,_0x529332);}exports['command']=a14_0x2f4113(0xa9),exports[a14_0x2f4113(0xa7)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a14_0x2f4113(0x8c)]=function(_0x1c342e){const _0xa7a48d=a14_0x2f4113,_0xe6be5b={};_0xe6be5b[_0xa7a48d(0x73)]=_0xa7a48d(0x9b),_0xe6be5b[_0xa7a48d(0xa1)]=_0xa7a48d(0x9d),_0xe6be5b['AeCmu']=_0xa7a48d(0xa4);const _0x216b89=_0xe6be5b,_0x553995={};_0x553995[_0xa7a48d(0xaf)]=_0x216b89[_0xa7a48d(0x73)],_0x553995[_0xa7a48d(0xa5)]=_0x216b89[_0xa7a48d(0xa1)];const _0x4e1b8d={};return _0x4e1b8d[_0xa7a48d(0x7f)]=_0x553995,_0x1c342e[_0xa7a48d(0x72)](HELP_HEADER_MESSAGE[_0xa7a48d(0x94)][_0xa7a48d(0x7e)])[_0xa7a48d(0xb2)](HELP_FOOTER_MESSAGE)[_0xa7a48d(0xc0)](_0x4e1b8d)[_0xa7a48d(0xa4)](_0x216b89[_0xa7a48d(0x89)])[_0xa7a48d(0x8d)];},exports[a14_0x2f4113(0x93)]=async function(_0x4da0bb){const _0x177a77=a14_0x2f4113,_0x8d6407={'awoMY':function(_0x57016b){return _0x57016b();},'UjbFj':_0x177a77(0x84),'UiPvk':function(_0x572d26,_0x2b116c,_0x5cc688,_0x1f9a91,_0x351b39,_0x3e604b,_0x302819){return _0x572d26(_0x2b116c,_0x5cc688,_0x1f9a91,_0x351b39,_0x3e604b,_0x302819);},'NDhHB':'list-grid-profiles-called','vRPLB':_0x177a77(0xbb),'wIFxV':function(_0x3d514e){return _0x3d514e();},'EljhT':_0x177a77(0x9e),'hSFIK':function(_0x289164,_0x5c4f89,_0x540042){return _0x289164(_0x5c4f89,_0x540042);},'VMwhN':function(_0x132f35,_0x32b409){return _0x132f35!==_0x32b409;},'PqXKC':function(_0x1be0ab,_0x126006){return _0x1be0ab===_0x126006;},'yGsJc':_0x177a77(0xb8),'lizPZ':'grid-profile-name','RueyB':_0x177a77(0x8e),'oDrJp':_0x177a77(0x75),'QrzFK':_0x177a77(0x80),'axsOt':function(_0x455677,_0x2ecf11){return _0x455677(_0x2ecf11);},'jRLzQ':function(_0x42268c,_0x97f0f4){return _0x42268c===_0x97f0f4;},'HKxBr':_0x177a77(0xaa),'YPIiX':'unauthorised','uBNGx':function(_0x59e797,_0x806a2b,_0x2bb15c,_0x4e54ba,_0xbc6a40,_0x43e002,_0x5bcede){return _0x59e797(_0x806a2b,_0x2bb15c,_0x4e54ba,_0xbc6a40,_0x43e002,_0x5bcede);},'aeJqx':_0x177a77(0x82),'vvicU':'unknown-error'};try{global_registry[_0x177a77(0xad)]=_0x8d6407['awoMY'](uuidv4);let _0x769a2f=_0x177a77(0xbd)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x4da0bb[_0x177a77(0x96)]&&(_0x769a2f=_0x177a77(0xbd)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs['existsSync'](_0x8d6407['awoMY'](getCredentialsPath))&&(console[_0x177a77(0xb4)](_0x8d6407[_0x177a77(0x7d)]),await _0x8d6407[_0x177a77(0x71)](sendInstrumentationEvent,_0x4da0bb,_0x8d6407[_0x177a77(0x95)],messageTypes['ERROR'],_0x8d6407[_0x177a77(0x86)],null,_0x4da0bb),process['exit'](0x1));const _0x4a3cf6=JSON[_0x177a77(0x9c)](fs[_0x177a77(0xa0)](_0x8d6407['wIFxV'](getCredentialsPath))),_0x2f49e8={'method':_0x8d6407[_0x177a77(0x85)],'headers':_0x8d6407[_0x177a77(0x8f)](getAuthHeader,_0x4a3cf6[_0x177a77(0x91)][_0x177a77(0x97)],_0x4a3cf6[_0x177a77(0x91)][_0x177a77(0x87)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x4a3cf6[_0x177a77(0x91)][_0x177a77(0x97)],global_registry[_0x177a77(0x78)]=_0x4a3cf6[_0x177a77(0x91)][_0x177a77(0x87)],_0x8d6407[_0x177a77(0x71)](sendInstrumentationEvent,_0x4da0bb,_0x8d6407[_0x177a77(0x95)],messageTypes[_0x177a77(0x7b)],null,null,_0x4da0bb);const _0x359dbd=await _0x8d6407[_0x177a77(0x8f)](got,_0x769a2f,_0x2f49e8);if(_0x8d6407[_0x177a77(0xb0)](_0x359dbd,null)&&_0x8d6407[_0x177a77(0xb0)](_0x359dbd,undefined)&&_0x8d6407[_0x177a77(0x9f)](_0x359dbd[_0x177a77(0x9a)],0xc8)){const _0x23bfff=JSON[_0x177a77(0x9c)](_0x359dbd[_0x177a77(0xb1)]);console[_0x177a77(0x6f)](_0x8d6407[_0x177a77(0x70)]);const _0x5f30eb=[];_0x5f30eb['push']([_0x8d6407['lizPZ'],_0x8d6407[_0x177a77(0x99)],_0x8d6407[_0x177a77(0x83)],_0x8d6407[_0x177a77(0xbc)]]),_0x23bfff[_0x177a77(0xae)](_0x984ad0=>{const _0x3ab21f=_0x177a77;_0x5f30eb['push']([_0x984ad0[_0x3ab21f(0xa6)],_0x984ad0[_0x3ab21f(0xb9)],_0x984ad0[_0x3ab21f(0x75)],_0x984ad0[_0x3ab21f(0x80)]]);}),console[_0x177a77(0x6f)](_0x8d6407[_0x177a77(0xab)](table,_0x5f30eb)),process[_0x177a77(0xbf)](0x0);}_0x8d6407[_0x177a77(0x90)](_0x359dbd[_0x177a77(0x9a)],0x191)&&(console[_0x177a77(0xb4)](_0x8d6407[_0x177a77(0xb6)]),await _0x8d6407['UiPvk'](sendInstrumentationEvent,_0x4da0bb,_0x8d6407[_0x177a77(0x95)],messageTypes['ERROR'],_0x8d6407[_0x177a77(0x77)],null,_0x4da0bb),process[_0x177a77(0xbf)](0x1)),console['error'](_0x177a77(0xb5)+JSON[_0x177a77(0xa2)](_0x359dbd)),await _0x8d6407['uBNGx'](sendInstrumentationEvent,_0x4da0bb,_0x8d6407[_0x177a77(0x95)],messageTypes[_0x177a77(0xa3)],_0x8d6407[_0x177a77(0xbe)],_0x359dbd,_0x4da0bb),process[_0x177a77(0xbf)](0x1);}catch(_0x2bf43f){console[_0x177a77(0xb4)](_0x177a77(0xba)+_0x2bf43f[_0x177a77(0x7c)]),await _0x8d6407[_0x177a77(0x88)](sendInstrumentationEvent,_0x4da0bb,_0x8d6407[_0x177a77(0x95)],messageTypes['ERROR'],_0x8d6407[_0x177a77(0xac)],_0x2bf43f,_0x4da0bb),process[_0x177a77(0xbf)](0x1);}};
@@ -1 +1 @@
1
- const a15_0x2374d0=a15_0x62f6;(function(_0x5848a0,_0x25f988){const _0x3730b1=a15_0x62f6,_0x43266a=_0x5848a0();while(!![]){try{const _0x466b4d=-parseInt(_0x3730b1(0x1f5))/0x1*(-parseInt(_0x3730b1(0x1f7))/0x2)+-parseInt(_0x3730b1(0x241))/0x3*(-parseInt(_0x3730b1(0x21e))/0x4)+parseInt(_0x3730b1(0x23e))/0x5*(-parseInt(_0x3730b1(0x20e))/0x6)+parseInt(_0x3730b1(0x208))/0x7*(-parseInt(_0x3730b1(0x228))/0x8)+-parseInt(_0x3730b1(0x219))/0x9*(parseInt(_0x3730b1(0x235))/0xa)+parseInt(_0x3730b1(0x1f1))/0xb*(-parseInt(_0x3730b1(0x203))/0xc)+parseInt(_0x3730b1(0x20a))/0xd*(parseInt(_0x3730b1(0x1f8))/0xe);if(_0x466b4d===_0x25f988)break;else _0x43266a['push'](_0x43266a['shift']());}catch(_0x3b5a1a){_0x43266a['push'](_0x43266a['shift']());}}}(a15_0x115f,0xb0398));function a15_0x115f(){const _0x557a18=['password','vMsIn','help','parse','Failed\x20to\x20list\x20resources!\x20Error:\x20','6967668IkpaWr','stringify','GET','hpysi','orRYd','6119582GmJpbn','Edsmw','28217215FTXxRo','error','grid-id','dQIDy','2706096BuLfQV','ERROR','../../utils/utilityMethods','status','table','OQYcy','type','beqPl','/packages/cli/get-grids','list','boolean','6716565hkppyL','GHHJz','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','epilogue','usage','268ZzJpFR','exit','forEach','gChky','handler','bstackAccesskey','description','eRSqW','init-not-called','body','8COjDWF','allGrids','server-error','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','iZXoc','\x0aFound\x20the\x20following\x20grids:\x0a','xSBuj','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','XnzSF','MVtrt','dachJ','RVDwr','10gNrAXf','name','grid-name','running','CHcCS','unknown-error','push','../../config/constants','options','15lLrllQ','existsSync','/packages/cli/get-all-grids','37851PvNXuH','queued','iwfkf','desc','yLElR','command','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','VXLSS','Browserstack','xHDVm','statusCode','11QJZBin','grids','requestId','https://','84008Ogvkak','username','30uMGdMf','14icoLsW','LTPzh','fKYxz','../../utils/instrumentationUtils','list-grids-called','log'];a15_0x115f=function(){return _0x557a18;};return a15_0x115f();}function a15_0x62f6(_0x36f8bb,_0xf7bcb3){const _0x115f3b=a15_0x115f();return a15_0x62f6=function(_0x62f62c,_0x1357a7){_0x62f62c=_0x62f62c-0x1ef;let _0x528c73=_0x115f3b[_0x62f62c];return _0x528c73;},a15_0x62f6(_0x36f8bb,_0xf7bcb3);}const fs=require('fs'),got=require('got'),{table}=require(a15_0x2374d0(0x212)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x2374d0(0x23c)),{getCredentialsPath,getAuthHeader}=require(a15_0x2374d0(0x210)),{sendInstrumentationEvent}=require(a15_0x2374d0(0x1fb));exports[a15_0x2374d0(0x246)]=a15_0x2374d0(0x1f2),exports[a15_0x2374d0(0x244)]=a15_0x2374d0(0x22b),exports['builder']=function(_0x52f93d){const _0x4fc4a7=a15_0x2374d0,_0x57eda8={};_0x57eda8[_0x4fc4a7(0x213)]=_0x4fc4a7(0x230),_0x57eda8[_0x4fc4a7(0x20d)]=_0x4fc4a7(0x218),_0x57eda8['fKYxz']='help';const _0xa8cacd=_0x57eda8,_0x427428={};_0x427428[_0x4fc4a7(0x224)]=_0xa8cacd['OQYcy'],_0x427428[_0x4fc4a7(0x214)]=_0xa8cacd['dQIDy'];const _0x32396d={};return _0x32396d['all-grids']=_0x427428,_0x52f93d[_0x4fc4a7(0x21d)](HELP_HEADER_MESSAGE[_0x4fc4a7(0x217)]['grid'])[_0x4fc4a7(0x21c)](HELP_FOOTER_MESSAGE)[_0x4fc4a7(0x23d)](_0x32396d)[_0x4fc4a7(0x200)](_0xa8cacd[_0x4fc4a7(0x1fa)])['argv'];},exports[a15_0x2374d0(0x222)]=async function(_0x26605a){const _0x411d26=a15_0x2374d0,_0x5439ef={'orRYd':function(_0x39a64b){return _0x39a64b();},'beqPl':function(_0x4ef328){return _0x4ef328();},'gChky':_0x411d26(0x21b),'tadMt':function(_0x38a811,_0x506a74,_0x3b49aa,_0x176980,_0x358cbf,_0x314cdd,_0x44a5f3){return _0x38a811(_0x506a74,_0x3b49aa,_0x176980,_0x358cbf,_0x314cdd,_0x44a5f3);},'xSBuj':_0x411d26(0x1fc),'dachJ':_0x411d26(0x226),'lmTOg':function(_0x3c348b){return _0x3c348b();},'sDvuS':_0x411d26(0x205),'LTPzh':function(_0x1886aa,_0x4f833a,_0x9acbd1){return _0x1886aa(_0x4f833a,_0x9acbd1);},'eRSqW':function(_0x380725,_0x2c211f,_0x1bb5ea,_0x1f6982,_0x5f13dc,_0x764ee4,_0x4eb69e){return _0x380725(_0x2c211f,_0x1bb5ea,_0x1f6982,_0x5f13dc,_0x764ee4,_0x4eb69e);},'hpysi':function(_0x30f630,_0xd547ce){return _0x30f630!==_0xd547ce;},'iZXoc':function(_0x3b6c09,_0xfdf765){return _0x3b6c09===_0xfdf765;},'XnzSF':_0x411d26(0x22e),'CHcCS':_0x411d26(0x20c),'VXLSS':_0x411d26(0x237),'Edsmw':'status','xHDVm':'running','RVDwr':_0x411d26(0x242),'whJOn':'cluster-name','iwfkf':function(_0x34788e,_0x1a169a){return _0x34788e(_0x1a169a);},'yLElR':_0x411d26(0x247),'GHHJz':'unauthorised','EDUMV':_0x411d26(0x22a),'vMsIn':function(_0x417925,_0x1c7abe,_0x14b5dc,_0x332ffb,_0x29f2bd,_0xb21990,_0xfcaf8d){return _0x417925(_0x1c7abe,_0x14b5dc,_0x332ffb,_0x29f2bd,_0xb21990,_0xfcaf8d);},'MVtrt':_0x411d26(0x23a)};try{global_registry[_0x411d26(0x1f3)]=_0x5439ef[_0x411d26(0x207)](uuidv4);!fs[_0x411d26(0x23f)](_0x5439ef[_0x411d26(0x215)](getCredentialsPath))&&(console['error'](_0x5439ef[_0x411d26(0x221)]),await _0x5439ef['tadMt'](sendInstrumentationEvent,_0x26605a,_0x5439ef[_0x411d26(0x22f)],messageTypes[_0x411d26(0x20f)],_0x5439ef[_0x411d26(0x233)],null,_0x26605a),process['exit'](0x1));const _0x281eaf=JSON['parse'](fs['readFileSync'](_0x5439ef['lmTOg'](getCredentialsPath)));let _0xe0a29e=_0x411d26(0x1f4)+AG_API_URL+_0x411d26(0x216);_0x26605a[_0x411d26(0x229)]&&(_0xe0a29e=_0x411d26(0x1f4)+AG_API_URL+_0x411d26(0x240));const _0x3ebd80={'method':_0x5439ef['sDvuS'],'headers':_0x5439ef[_0x411d26(0x1f9)](getAuthHeader,_0x281eaf[_0x411d26(0x249)][_0x411d26(0x1f6)],_0x281eaf[_0x411d26(0x249)][_0x411d26(0x1fe)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x281eaf['Browserstack'][_0x411d26(0x1f6)],global_registry[_0x411d26(0x223)]=_0x281eaf[_0x411d26(0x249)][_0x411d26(0x1fe)],_0x5439ef[_0x411d26(0x225)](sendInstrumentationEvent,_0x26605a,_0x5439ef['xSBuj'],messageTypes['INFO'],null,null,_0x26605a);const _0x5e6942=await _0x5439ef['LTPzh'](got,_0xe0a29e,_0x3ebd80);if(_0x5439ef['hpysi'](_0x5e6942,null)&&_0x5439ef[_0x411d26(0x206)](_0x5e6942,undefined)&&_0x5439ef[_0x411d26(0x22d)](_0x5e6942[_0x411d26(0x1f0)],0xc8)){const _0x25a7f9=JSON[_0x411d26(0x201)](_0x5e6942[_0x411d26(0x227)]);console[_0x411d26(0x1fd)](_0x5439ef[_0x411d26(0x231)]);const _0x353362=[];_0x353362[_0x411d26(0x23b)]([_0x5439ef[_0x411d26(0x239)],_0x5439ef[_0x411d26(0x248)],_0x5439ef[_0x411d26(0x209)],_0x5439ef[_0x411d26(0x1ef)],_0x5439ef[_0x411d26(0x234)],_0x5439ef['whJOn']]),_0x25a7f9[_0x411d26(0x220)](_0x5595f6=>{const _0x3d55f1=_0x411d26;_0x353362[_0x3d55f1(0x23b)]([_0x5595f6['id'],_0x5595f6[_0x3d55f1(0x236)],_0x5595f6[_0x3d55f1(0x211)],_0x5595f6[_0x3d55f1(0x238)],_0x5595f6['queued'],_0x5595f6['clusterName']]);}),console[_0x411d26(0x1fd)](_0x5439ef[_0x411d26(0x243)](table,_0x353362)),process[_0x411d26(0x21f)](0x0);}_0x5439ef[_0x411d26(0x22d)](_0x5e6942[_0x411d26(0x1f0)],0x191)&&(console['error'](_0x5439ef[_0x411d26(0x245)]),await _0x5439ef[_0x411d26(0x225)](sendInstrumentationEvent,_0x26605a,_0x5439ef[_0x411d26(0x22f)],messageTypes[_0x411d26(0x20f)],_0x5439ef[_0x411d26(0x21a)],null,_0x26605a),process[_0x411d26(0x21f)](0x1)),console['error'](_0x411d26(0x22c)+JSON[_0x411d26(0x204)](_0x5e6942)),await _0x5439ef[_0x411d26(0x225)](sendInstrumentationEvent,_0x26605a,_0x5439ef[_0x411d26(0x22f)],messageTypes['ERROR'],_0x5439ef['EDUMV'],_0x5e6942,_0x26605a),process['exit'](0x1);}catch(_0x37c2b6){console[_0x411d26(0x20b)](_0x411d26(0x202)+_0x37c2b6['stack']),await _0x5439ef[_0x411d26(0x1ff)](sendInstrumentationEvent,_0x26605a,_0x5439ef['xSBuj'],messageTypes['ERROR'],_0x5439ef[_0x411d26(0x232)],_0x37c2b6,_0x26605a),process[_0x411d26(0x21f)](0x1);}};
1
+ function a15_0x3bff(){const _0x2ff529=['builder','oExLy','existsSync','stack','unknown-error','MyLRC','requestId','grid','https://','ERROR','bstackAccesskey','password','5393838MhccWF','297TRCUmE','aKBkZ','status','table','PLqJS','../../utils/instrumentationUtils','OnFjZ','mnRCP','exit','push','7hTZnYK','FVwRr','boolean','../../utils/utilityMethods','unauthorised','GET','7501832krHkzi','username','command','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','help','GgYqu','forEach','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-grids','LATlV','type','VaSPM','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','384357MdBDpE','../../config/constants','parse','2935260jNvQsT','85vcLQSN','rlKoE','65350LZysVB','32127623aqLmws','grid-id','handler','epilogue','readFileSync','BBbla','server-error','allGrids','jZEQS','log','XsfYg','Browserstack','statusCode','options','grids','/packages/cli/get-all-grids','list-grids-called','RNSBW','clusterName','error','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','running','grid-name','37828lrYRFA','bstackUsername','usage','DNewo','GyZbi','4ksBLzW','queued'];a15_0x3bff=function(){return _0x2ff529;};return a15_0x3bff();}const a15_0x131371=a15_0x2270;(function(_0x40a854,_0x4bd481){const _0x2c4d2=a15_0x2270,_0x234a11=_0x40a854();while(!![]){try{const _0x578d91=-parseInt(_0x2c4d2(0x15e))/0x1*(-parseInt(_0x2c4d2(0x132))/0x2)+-parseInt(_0x2c4d2(0x161))/0x3+parseInt(_0x2c4d2(0x12d))/0x4*(-parseInt(_0x2c4d2(0x162))/0x5)+-parseInt(_0x2c4d2(0x140))/0x6+parseInt(_0x2c4d2(0x14b))/0x7*(-parseInt(_0x2c4d2(0x151))/0x8)+parseInt(_0x2c4d2(0x141))/0x9*(-parseInt(_0x2c4d2(0x164))/0xa)+parseInt(_0x2c4d2(0x165))/0xb;if(_0x578d91===_0x4bd481)break;else _0x234a11['push'](_0x234a11['shift']());}catch(_0x3d731d){_0x234a11['push'](_0x234a11['shift']());}}}(a15_0x3bff,0x798c5));function a15_0x2270(_0x7e4142,_0x127b5c){const _0x3bff13=a15_0x3bff();return a15_0x2270=function(_0x2270ad,_0x43391a){_0x2270ad=_0x2270ad-0x123;let _0x5c3b5e=_0x3bff13[_0x2270ad];return _0x5c3b5e;},a15_0x2270(_0x7e4142,_0x127b5c);}const fs=require('fs'),got=require('got'),{table}=require(a15_0x131371(0x144)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x131371(0x15f)),{getCredentialsPath,getAuthHeader}=require(a15_0x131371(0x14e)),{sendInstrumentationEvent}=require(a15_0x131371(0x146));exports[a15_0x131371(0x153)]=a15_0x131371(0x124),exports['desc']=a15_0x131371(0x15d),exports[a15_0x131371(0x134)]=function(_0x211254){const _0x1d1940=a15_0x131371,_0xcdcf93={};_0xcdcf93[_0x1d1940(0x16d)]=_0x1d1940(0x12a),_0xcdcf93['MyLRC']=_0x1d1940(0x14d),_0xcdcf93[_0x1d1940(0x163)]=_0x1d1940(0x155);const _0x2c3f4d=_0xcdcf93,_0x5433e4={};_0x5433e4['description']=_0x2c3f4d[_0x1d1940(0x16d)],_0x5433e4[_0x1d1940(0x15b)]=_0x2c3f4d[_0x1d1940(0x139)];const _0x594346={};return _0x594346['all-grids']=_0x5433e4,_0x211254[_0x1d1940(0x12f)](HELP_HEADER_MESSAGE['list'][_0x1d1940(0x13b)])[_0x1d1940(0x168)](HELP_FOOTER_MESSAGE)[_0x1d1940(0x123)](_0x594346)[_0x1d1940(0x155)](_0x2c3f4d[_0x1d1940(0x163)])['argv'];},exports[a15_0x131371(0x167)]=async function(_0x5e9113){const _0x815573=a15_0x131371,_0x552407={'OnFjZ':function(_0x19ed74){return _0x19ed74();},'BBbla':function(_0xf86acb){return _0xf86acb();},'UGpde':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GgYqu':function(_0x325b5d,_0x4c260b,_0x3e1d5b,_0x3f02d2,_0x33aefb,_0x22038e,_0x26eda2){return _0x325b5d(_0x4c260b,_0x3e1d5b,_0x3f02d2,_0x33aefb,_0x22038e,_0x26eda2);},'VaSPM':_0x815573(0x126),'epxVs':'init-not-called','dxQRn':_0x815573(0x150),'XsfYg':function(_0x293b52,_0x23c354,_0x21106e){return _0x293b52(_0x23c354,_0x21106e);},'NWIFu':function(_0x2c5512,_0x2999d5,_0x38a957,_0x8b1435,_0x2db59f,_0x1158e1,_0x3e1d8b){return _0x2c5512(_0x2999d5,_0x38a957,_0x8b1435,_0x2db59f,_0x1158e1,_0x3e1d8b);},'HACrE':function(_0x178bef,_0x112d05,_0x743572){return _0x178bef(_0x112d05,_0x743572);},'LATlV':function(_0x12a311,_0x163d2f){return _0x12a311!==_0x163d2f;},'FVwRr':function(_0x44ded4,_0x2d53cf){return _0x44ded4===_0x2d53cf;},'oExLy':'\x0aFound\x20the\x20following\x20grids:\x0a','DNewo':_0x815573(0x166),'TMlXl':_0x815573(0x12c),'YTcRH':_0x815573(0x143),'aKBkZ':_0x815573(0x12b),'LWlKb':_0x815573(0x133),'GyZbi':'cluster-name','PLqJS':function(_0x2332ea,_0x2e3d69){return _0x2332ea(_0x2e3d69);},'XFPkA':_0x815573(0x158),'RNSBW':_0x815573(0x14f),'mnRCP':_0x815573(0x16b),'yMhoU':_0x815573(0x138)};try{global_registry[_0x815573(0x13a)]=_0x552407['OnFjZ'](uuidv4);!fs[_0x815573(0x136)](_0x552407[_0x815573(0x16a)](getCredentialsPath))&&(console[_0x815573(0x129)](_0x552407['UGpde']),await _0x552407[_0x815573(0x156)](sendInstrumentationEvent,_0x5e9113,_0x552407[_0x815573(0x15c)],messageTypes[_0x815573(0x13d)],_0x552407['epxVs'],null,_0x5e9113),process[_0x815573(0x149)](0x1));const _0xe6a0f4=JSON[_0x815573(0x160)](fs[_0x815573(0x169)](_0x552407[_0x815573(0x147)](getCredentialsPath)));let _0x1a8da4=_0x815573(0x13c)+AG_API_URL+_0x815573(0x159);_0x5e9113[_0x815573(0x16c)]&&(_0x1a8da4='https://'+AG_API_URL+_0x815573(0x125));const _0x1a359f={'method':_0x552407['dxQRn'],'headers':_0x552407[_0x815573(0x16f)](getAuthHeader,_0xe6a0f4[_0x815573(0x170)][_0x815573(0x152)],_0xe6a0f4['Browserstack'][_0x815573(0x13f)]),'throwHttpErrors':![]};global_registry[_0x815573(0x12e)]=_0xe6a0f4[_0x815573(0x170)]['username'],global_registry[_0x815573(0x13e)]=_0xe6a0f4['Browserstack']['password'],_0x552407['NWIFu'](sendInstrumentationEvent,_0x5e9113,_0x552407[_0x815573(0x15c)],messageTypes['INFO'],null,null,_0x5e9113);const _0x53c253=await _0x552407['HACrE'](got,_0x1a8da4,_0x1a359f);if(_0x552407['LATlV'](_0x53c253,null)&&_0x552407[_0x815573(0x15a)](_0x53c253,undefined)&&_0x552407[_0x815573(0x14c)](_0x53c253[_0x815573(0x171)],0xc8)){const _0x3476e0=JSON[_0x815573(0x160)](_0x53c253['body']);console[_0x815573(0x16e)](_0x552407[_0x815573(0x135)]);const _0x295c6b=[];_0x295c6b[_0x815573(0x14a)]([_0x552407[_0x815573(0x130)],_0x552407['TMlXl'],_0x552407['YTcRH'],_0x552407[_0x815573(0x142)],_0x552407['LWlKb'],_0x552407[_0x815573(0x131)]]),_0x3476e0[_0x815573(0x157)](_0x5c3940=>{const _0x47ef85=_0x815573;_0x295c6b['push']([_0x5c3940['id'],_0x5c3940['name'],_0x5c3940[_0x47ef85(0x143)],_0x5c3940[_0x47ef85(0x12b)],_0x5c3940[_0x47ef85(0x133)],_0x5c3940[_0x47ef85(0x128)]]);}),console[_0x815573(0x16e)](_0x552407[_0x815573(0x145)](table,_0x295c6b)),process[_0x815573(0x149)](0x0);}_0x552407[_0x815573(0x14c)](_0x53c253[_0x815573(0x171)],0x191)&&(console['error'](_0x552407['XFPkA']),await _0x552407[_0x815573(0x156)](sendInstrumentationEvent,_0x5e9113,_0x552407[_0x815573(0x15c)],messageTypes[_0x815573(0x13d)],_0x552407[_0x815573(0x127)],null,_0x5e9113),process[_0x815573(0x149)](0x1)),console[_0x815573(0x129)](_0x815573(0x154)+JSON['stringify'](_0x53c253)),await _0x552407[_0x815573(0x156)](sendInstrumentationEvent,_0x5e9113,_0x552407[_0x815573(0x15c)],messageTypes[_0x815573(0x13d)],_0x552407[_0x815573(0x148)],_0x53c253,_0x5e9113),process['exit'](0x1);}catch(_0x44f56f){console['error']('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x44f56f[_0x815573(0x137)]),await _0x552407[_0x815573(0x156)](sendInstrumentationEvent,_0x5e9113,_0x552407['VaSPM'],messageTypes[_0x815573(0x13d)],_0x552407['yMhoU'],_0x44f56f,_0x5e9113),process[_0x815573(0x149)](0x1);}};