browserstack-node-sdk 1.34.20 → 1.34.22

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 (127) 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/globals.js +1 -1
  101. package/src/helpers/helper.js +1 -1
  102. package/src/helpers/logger.js +1 -1
  103. package/src/helpers/patchHelper.js +1 -1
  104. package/src/helpers/patchHelpers.js +1 -1
  105. package/src/helpers/percy/Percy.js +1 -1
  106. package/src/helpers/percy/PercyBinary.js +1 -1
  107. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  108. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  109. package/src/helpers/percy/PercySDK.js +1 -1
  110. package/src/helpers/percy/index.js +1 -1
  111. package/src/helpers/percy/utils.js +1 -1
  112. package/src/helpers/performance-tester.js +1 -1
  113. package/src/helpers/request-spy.js +1 -1
  114. package/src/helpers/setKeepAlive.js +1 -1
  115. package/src/helpers/test-observability/constants.js +1 -1
  116. package/src/helpers/test-observability/error-handler.js +1 -1
  117. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  118. package/src/helpers/test-observability/sessionHandler.js +1 -1
  119. package/src/helpers/test-observability/utils.js +1 -1
  120. package/src/helpers/testhub/constants.js +1 -1
  121. package/src/helpers/testhub/testhubHandler.js +1 -1
  122. package/src/helpers/testhub/utils.js +1 -1
  123. package/src/helpers/timeoutPromise.js +1 -1
  124. package/src/helpers/utilities.js +1 -1
  125. package/src/helpers/w3cMapping.js +1 -1
  126. package/src/hubAllocationMethods.js +1 -1
  127. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a9_0x345d(_0x5206d1,_0x5729ec){const _0x18259e=a9_0x1825();return a9_0x345d=function(_0x345d69,_0x2f2e02){_0x345d69=_0x345d69-0xc5;let _0x5816dd=_0x18259e[_0x345d69];return _0x5816dd;},a9_0x345d(_0x5206d1,_0x5729ec);}function a9_0x1825(){const _0x5d9e89=['/packages/cli/create-grid-checks','../../utils/createk8sClient','Cluster\x20created\x20successfully','yzjdP','password','isVPCPresent','zWlix','bqQBs','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','weDWQ','AXaVq','pvTMa','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','hubVersion','get-grid-url-non-200','LJxHX','eGwyb','jdAtb','readNamespacedService','split','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','grid','create','<UsernamePlaceholder>','kKmnh','turboscale-managed-identity-','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','SatdY','isSubnetsValid','ROpyO','Jmmmo','XwmKb','VgVUS','3230RwvLvP','ieXvU','ingress-nginx-controller','tIhKy','DNNlM','mMPYc','Lminl','MvsEQ','error','VVXXI','mkyNc','SpNBz','UiaiT','Spawning\x20grid\x20on\x20to\x20the\x20cluster','4MzgeGo','user','sendEventToBackend','statusCode','concurrency','debug','zQrDy','AVCkJ','ycfOa','https','OjYgx','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','IRYpV','jqjHs','tbVKP','IzVie','newCluster','Found\x20VPC:\x20','WHscC','GmRQR','addListeners','dCxXY','UPhFu','Lzbou','://','pre-spawned-subnets-not-selected','OQrbb','ingress-nginx','replace','hIola','namespace','iRxGo','AFEEP','Deleting\x20the\x20CloudFormation\x20Stacks','cloudProvider','handler','rJBtI','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','jnypJ','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Whdys','getGridHostname','body','pWPcU','subnets','pLnva','OjBKt','private-grid','reconnecting-websocket','\x20are\x20not\x20present\x20in\x20VPC:\x20','8711444TvEVje','\x20in\x20existing\x20cluster\x20\x27','grid-spawning-failed','<PasswordPlaceholder>','Will\x20be\x20spawning\x20the\x20grid\x20','CLI_RUN_STARTED','aQTjK','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','delay','NDxKl','gridProfiles','../../utils/instrumentationUtils','setupNewCluster','skip-tls-cert-verify','exit','YSLOh','maxNodes','gridName','/packages/cli/get-grid-url?gridIdentifier=','got','Found\x20Subnets:\x20','defaultGridProfile','YnkJJ','parse','elrvQ','1563524whHpCn','oPdUe','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','QDSel','readFileSync','LOvgU','iINUX','deleteCluster','Spawning\x20the\x20grid\x20','uaekW','jvKnw','dAGHQ','42084OCVIlz','rmHCZ','get-grid-url-null-response','yOHkj','stack','isNewAWSCluster','qLPZs','Grid\x20spawned\x20on\x20the\x20cluster','jtDXp','2|4|0|1|3','otqTs','YXWGo','qXAiI','VqSMm','lAVig','command','route53','create-grid-checks-auth-failed','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','privateGrid','prespawned-cluster-args-not-passed','Cluster\x20','builder','hDrBW','ETsMK','yKeWW','cluster-name','vpc','isClusterPresent','CmfcK','rIYFA','../../cloudproviders/utils','vYNTL','securityGroups','cloud-provider','xKMuo','Reqdi','oMJok','Udjfr','region','skipTlsCertVerify','zuyLO','Grid\x20can\x20be\x20accessed\x20at:\x20','mdGKr','Raarn','s3bucket','EMoYj','Namespace\x20Created','Browserstack','ejQbX','toLowerCase','init-not-called','JGpHO','minNodes','ERROR','username','zjzKr','1305685zjzFOM','sZVBs','ppeaE','xbrFC','getResourceClientId','13|0|11|9|1|4|8|14|5|3|2|10|7|12|6','tLfOS','FKtft','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','nInqB','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','coCtW','clusterRegion','OyIaA','warn','iHvQj','name','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','default','XxfUz','existsSync','GRlPs','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','qHRQq','browserVersion','alreadyPresent','../../config/constants','clusterName','3|5|1|8|4|6|2|7|0','managedBy','create-grid-checks-invalid-profile','vbpmR','PXEcP','Namespace\x20created','http','connectionTimeout','auVZl','description','IWJpg','cgCFO','QJpsd','createNamespace','fZOVJ','hEJjy','OhaKB','ArwqR','hnstS','true','33583GcowlD','non-aws-azure-cluster','tkOhi','INFO','desc','TQIwm','VvwcA','7020GtjWoX','GET','IwaVY','info','qgsSl','mubsv','instanceType','\x27\x20grid\x20profile','../../config/logger','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','message','DFGTd','OiwTV','VBItR','PrRxi','zbOss','stringify','AcnqV','/wd/hub','help','qRdLf','annotations','6OrFlji','Tjvax','gridProfile','tpROU','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','length','updateClusterAlreadyPresent','IKQaA','Create\x20a\x20private/public\x20grid.','hENzd','epilogue','XRvUi','xNFHC','OgitN','16ZSDxWW','isPrivateGrid','180kRzEvz','string','Liadb','CWzor','jdnht','NPxhn','KmtgJ','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','create-grid-called','LOG','PwfTQ','argv','../../utils/webSocketUtils','WebSocket','options','qwIHs','144944BqPYWk','qMuxe','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','createOtherResources','RFTYd','boolean','sNszY','dMhpD','pre-spawned-invalid-subnets','Skip\x20insecure\x20cert\x20verification.','dHIwO','pre-spawned-invalid-vpc','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','1408629qvMcce','Subnets:\x20','CLI\x20run\x20started','chqvh','CLI\x20run\x20finished:\x20','../../utils/gridComponents','grid-profile','yMOFW','aOtuw','oNhMR','JuNtB','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','MNdEd','RYoeP','8|3|6|1|7|0|4|2|5','grid-name','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Cluster:\x20','usage','sUthE','OANrA','ERXwj','create-grid-checks-non-200','Creating\x20namespace','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','oWkRu','type','jxHgJ','ZRQiC','BkGNM','https://'];a9_0x1825=function(){return _0x5d9e89;};return a9_0x1825();}const a9_0x28200c=a9_0x345d;(function(_0xc6f418,_0xbc8a4d){const _0x5b6321=a9_0x345d,_0x26abcc=_0xc6f418();while(!![]){try{const _0x186bec=parseInt(_0x5b6321(0xe1))/0x1+-parseInt(_0x5b6321(0x1f1))/0x2*(parseInt(_0x5b6321(0x1a1))/0x3)+parseInt(_0x5b6321(0x182))/0x4*(-parseInt(_0x5b6321(0x126))/0x5)+parseInt(_0x5b6321(0x174))/0x6*(-parseInt(_0x5b6321(0xc8))/0x7)+-parseInt(_0x5b6321(0x194))/0x8*(parseInt(_0x5b6321(0x184))/0x9)+parseInt(_0x5b6321(0x1e3))/0xa*(parseInt(_0x5b6321(0x156))/0xb)+-parseInt(_0x5b6321(0xed))/0xc*(-parseInt(_0x5b6321(0x15d))/0xd);if(_0x186bec===_0xbc8a4d)break;else _0x26abcc['push'](_0x26abcc['shift']());}catch(_0x2b4322){_0x26abcc['push'](_0x26abcc['shift']());}}}(a9_0x1825,0xd03c9));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x28200c(0xc6)),got=require(a9_0x28200c(0xdb)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x28200c(0x190)),{logger}=require(a9_0x28200c(0x165)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a9_0x28200c(0x10c)),{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_0x28200c(0x140)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x28200c(0x1a6)),{createK8sClient}=require(a9_0x28200c(0x1c3)),{sendInstrumentationEvent}=require(a9_0x28200c(0xd3));exports[a9_0x28200c(0xfc)]=a9_0x28200c(0x1d7),exports[a9_0x28200c(0x15a)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x28200c(0x103)]=function(_0x4c6198){const _0x450d37=a9_0x28200c,_0x381b9b={};_0x381b9b[_0x450d37(0xe7)]=_0x450d37(0x1ce),_0x381b9b[_0x450d37(0x112)]=_0x450d37(0x185),_0x381b9b[_0x450d37(0x125)]=_0x450d37(0x1b3),_0x381b9b['weDWQ']=_0x450d37(0x137),_0x381b9b['Liadb']=_0x450d37(0x216),_0x381b9b[_0x450d37(0x1e6)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x381b9b[_0x450d37(0xfa)]=_0x450d37(0x17c),_0x381b9b['AXaVq']=_0x450d37(0x19d),_0x381b9b[_0x450d37(0x1d3)]=_0x450d37(0x199),_0x381b9b['oNhMR']='help';const _0x5d5bf8=_0x381b9b,_0x469eb4={};_0x469eb4[_0x450d37(0x14b)]=_0x5d5bf8[_0x450d37(0xe7)],_0x469eb4['type']=_0x5d5bf8[_0x450d37(0x112)];const _0x892418={};_0x892418[_0x450d37(0x14b)]=_0x5d5bf8[_0x450d37(0x125)],_0x892418[_0x450d37(0x1bd)]=_0x5d5bf8['oMJok'];const _0x41a03c={};_0x41a03c['description']=_0x5d5bf8[_0x450d37(0x1cb)],_0x41a03c[_0x450d37(0x1bd)]=_0x5d5bf8[_0x450d37(0x112)];const _0x34d504={};_0x34d504[_0x450d37(0x14b)]=_0x5d5bf8[_0x450d37(0x186)],_0x34d504[_0x450d37(0x1bd)]=_0x5d5bf8[_0x450d37(0x112)];const _0x23cfce={};_0x23cfce['description']=_0x5d5bf8[_0x450d37(0x1e6)],_0x23cfce[_0x450d37(0x1bd)]=_0x5d5bf8[_0x450d37(0x112)];const _0x3e594c={};_0x3e594c[_0x450d37(0x14b)]=_0x5d5bf8['VqSMm'],_0x3e594c[_0x450d37(0x1bd)]=_0x5d5bf8['oMJok'];const _0x210079={};_0x210079[_0x450d37(0x14b)]=_0x5d5bf8[_0x450d37(0x1cc)],_0x210079[_0x450d37(0x1bd)]=_0x5d5bf8[_0x450d37(0x1d3)],_0x210079[_0x450d37(0x138)]=![];const _0x3e8b23={};return _0x3e8b23[_0x450d37(0x1b1)]=_0x469eb4,_0x3e8b23[_0x450d37(0x1a7)]=_0x892418,_0x3e8b23[_0x450d37(0x107)]=_0x41a03c,_0x3e8b23[_0x450d37(0x10f)]=_0x34d504,_0x3e8b23['region']=_0x23cfce,_0x3e8b23['private-grid']=_0x3e594c,_0x3e8b23['skip-tls-cert-verify']=_0x210079,_0x4c6198[_0x450d37(0x1b5)](HELP_HEADER_MESSAGE[_0x450d37(0x1d8)])[_0x450d37(0x17e)](HELP_FOOTER_MESSAGE)[_0x450d37(0x192)](_0x3e8b23)[_0x450d37(0x171)](_0x5d5bf8[_0x450d37(0x1aa)])[_0x450d37(0x18f)];},exports[a9_0x28200c(0x214)]=async function(_0x4e8afa){const _0x18af86=a9_0x28200c,_0x772a7a={'pWPcU':_0x18af86(0x134),'mubsv':function(_0x20c801,_0x5e6ec8){return _0x20c801===_0x5e6ec8;},'JuNtB':_0x18af86(0x1eb),'IKQaA':_0x18af86(0x1ce),'NDxKl':'string','OhaKB':_0x18af86(0x1b3),'hENzd':_0x18af86(0x137),'DFxYQ':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','WvDGx':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','lAVig':_0x18af86(0x17c),'ycfOa':_0x18af86(0x19d),'XxfUz':_0x18af86(0x199),'xKMuo':_0x18af86(0x171),'BkGNM':_0x18af86(0x148),'ieXvU':_0x18af86(0x1fa),'NCjtq':_0x18af86(0x1b0),'OyIaA':_0x18af86(0x1a3),'pPNRE':_0x18af86(0x12b),'WaPNb':function(_0x38bdc1,_0x2fc66f,_0x41cb6c,_0xc1ecf8,_0x330680,_0x1109f8,_0x16e91c,_0x92f626,_0x2eb6f5,_0x35c9d9,_0x543ec9,_0x1477d5){return _0x38bdc1(_0x2fc66f,_0x41cb6c,_0xc1ecf8,_0x330680,_0x1109f8,_0x16e91c,_0x92f626,_0x2eb6f5,_0x35c9d9,_0x543ec9,_0x1477d5);},'cgCFO':function(_0x3023dd,_0x159089){return _0x3023dd!==_0x159089;},'hEJjy':function(_0x536704){return _0x536704();},'sNszY':_0x18af86(0xf9),'OANrA':_0x18af86(0x1bb),'OjYgx':function(_0x3e343f,_0x499cf6,_0x33e2d6,_0x29ea80,_0x27c866,_0x3c9d39,_0x61286c){return _0x3e343f(_0x499cf6,_0x33e2d6,_0x29ea80,_0x27c866,_0x3c9d39,_0x61286c);},'PrRxi':_0x18af86(0x18c),'AFEEP':_0x18af86(0x120),'PSUQh':function(_0x3dd265,_0x27b011,_0x4c8737,_0xb83046,_0x4182c5,_0x134043,_0x154ef4){return _0x3dd265(_0x27b011,_0x4c8737,_0xb83046,_0x4182c5,_0x134043,_0x154ef4);},'OgitN':function(_0x3c471a){return _0x3c471a();},'yMOFW':_0x18af86(0x1d9),'VgVUS':_0x18af86(0xcb),'IWJpg':'Adding\x20Websocket\x20listeners','Jmmmo':function(_0x56a79d,_0x1bd405){return _0x56a79d!==_0x1bd405;},'VOPIE':_0x18af86(0x177),'mMPYc':_0x18af86(0x13d),'EMoYj':'DJxYB','TQIwm':_0x18af86(0x113),'PkvQy':_0x18af86(0x1d6),'JGpHO':function(_0x18af25,_0x222fbe,_0x225e95,_0x4da4ac,_0x5cd278,_0x334f14,_0x296ca0,_0x26926f){return _0x18af25(_0x222fbe,_0x225e95,_0x4da4ac,_0x5cd278,_0x334f14,_0x296ca0,_0x26926f);},'zbOss':_0x18af86(0x101),'QJpsd':_0x18af86(0xe2),'Zsipe':_0x18af86(0x218),'zWlix':function(_0x46df5d,_0x5561ed,_0x21dafa,_0x4015d1,_0x29cd90,_0xcc8a37,_0x39ce11,_0x5c3f99){return _0x46df5d(_0x5561ed,_0x21dafa,_0x4015d1,_0x29cd90,_0xcc8a37,_0x39ce11,_0x5c3f99);},'mkyNc':_0x18af86(0x157),'jvKnw':function(_0x1891b2,_0x2c7389){return _0x1891b2===_0x2c7389;},'dAGHQ':_0x18af86(0x155),'pLnva':_0x18af86(0x207),'Lzbou':function(_0x15210f,_0x4b882e){return _0x15210f!==_0x4b882e;},'vbpmR':_0x18af86(0x135),'qMuxe':function(_0x1f71fd,_0x3325dc){return _0x1f71fd===_0x3325dc;},'ERXwj':'WzZaD','yOHkj':_0x18af86(0x1fd),'ejQbX':_0x18af86(0x15e),'MvsEQ':function(_0x1620fe,_0xa534ef,_0x3483cc){return _0x1620fe(_0xa534ef,_0x3483cc);},'elrvQ':function(_0xe2f9b3,_0x278303){return _0xe2f9b3===_0x278303;},'jxHgJ':_0x18af86(0x21f),'PXEcP':function(_0x27ddbe,_0x10c650,_0x2a0ad3){return _0x27ddbe(_0x10c650,_0x2a0ad3);},'RFTYd':function(_0x16e6d6,_0x21436c){return _0x16e6d6!==_0x21436c;},'tLfOS':'KxYej','ZRQiC':_0x18af86(0x127),'kKmnh':_0x18af86(0x1a0),'xNFHC':'create-grid-checks-null-response','coCtW':function(_0x4b4e67,_0x1762df){return _0x4b4e67===_0x1762df;},'SpNBz':function(_0x4142cc,_0x25bea0){return _0x4142cc!==_0x25bea0;},'LJxHX':_0x18af86(0x1ae),'hDrBW':_0x18af86(0x1ac),'jnypJ':function(_0x2fd0dd,_0x397ac7,_0x1f1b5e,_0x14cf7b,_0x4e0233,_0x33f119,_0x3cb5bb,_0x4a960e){return _0x2fd0dd(_0x397ac7,_0x1f1b5e,_0x14cf7b,_0x4e0233,_0x33f119,_0x3cb5bb,_0x4a960e);},'qwIHs':_0x18af86(0xfe),'SatdY':_0x18af86(0x116),'zQrDy':_0x18af86(0x206),'IwaVY':_0x18af86(0x1b9),'imAuM':'Grid\x20profile\x20fetched\x20from\x20backend','FKtft':_0x18af86(0x12f),'XRvUi':function(_0x2855d7,_0x5d8c65,_0x37c408,_0x57987f,_0x1e332c,_0x265591,_0x527524,_0x387c06){return _0x2855d7(_0x5d8c65,_0x37c408,_0x57987f,_0x1e332c,_0x265591,_0x527524,_0x387c06);},'UiaiT':'create-grid-checks-grid-already-exists','AcnqV':_0x18af86(0xe6),'vYNTL':_0x18af86(0x119),'GmRQR':function(_0x7b2f35,_0xe28af0){return _0x7b2f35===_0xe28af0;},'ppeaE':_0x18af86(0x10a),'Whdys':function(_0x69dc78,_0x580f9b){return _0x69dc78===_0x580f9b;},'NlRBp':_0x18af86(0x18e),'dlqiq':_0x18af86(0x10b),'aYliU':_0x18af86(0x167),'iRxGo':_0x18af86(0x144),'Tjvax':_0x18af86(0x1e9),'GRlPs':_0x18af86(0x188),'hnstS':function(_0x195f8b,_0x490777){return _0x195f8b!==_0x490777;},'sUthE':function(_0x1968a7,_0x1358bf){return _0x1968a7!==_0x1358bf;},'aQTjK':_0x18af86(0x111),'VvwcA':_0x18af86(0x19b),'oWkRu':function(_0x4d851f,_0x2a5b97,_0xa26bce,_0x8a9fe1,_0x48b3c2,_0x337053,_0x33aa01,_0x1229d3,_0x3b304c,_0x1cc612,_0x1e5581,_0x31781d){return _0x4d851f(_0x2a5b97,_0xa26bce,_0x8a9fe1,_0x48b3c2,_0x337053,_0x33aa01,_0x1229d3,_0x3b304c,_0x1cc612,_0x1e5581,_0x31781d);},'WHscC':function(_0x543fbb,_0x249fa9){return _0x543fbb===_0x249fa9;},'AmAGw':function(_0x3d6110,_0x3a9a0a){return _0x3d6110!==_0x3a9a0a;},'jqjHs':_0x18af86(0x1a9),'fZOVJ':_0x18af86(0x16a),'qLPZs':function(_0x5b841b,_0x446106){return _0x5b841b!==_0x446106;},'rJBtI':'kbrkV','KRUYg':function(_0x4cd387,_0x465085){return _0x4cd387===_0x465085;},'auVZl':_0x18af86(0x1e1),'yzjdP':_0x18af86(0x142),'JkSNe':function(_0x46c2a8,_0x27c458){return _0x46c2a8===_0x27c458;},'IzVie':_0x18af86(0xcf),'RYoeP':function(_0x2c75b4,_0x45fc91){return _0x2c75b4!=_0x45fc91;},'OQmHu':function(_0x5d610a,_0x4ece59){return _0x5d610a!==_0x4ece59;},'KmSwW':function(_0xe6736c,_0xf644b2){return _0xe6736c>_0xf644b2;},'VVXXI':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','otqTs':_0x18af86(0x20a),'uaekW':function(_0x4f7fde,_0x543d86){return _0x4f7fde===_0x543d86;},'bqQBs':_0x18af86(0x13c),'xbrFC':_0x18af86(0x19f),'YSLOh':function(_0x56c28b,_0x52bc9f){return _0x56c28b===_0x52bc9f;},'DNNlM':function(_0x59136b,_0x42f728,_0x23bc20,_0x246711,_0x168b2b,_0x2a40fb,_0x1188f6,_0xf6c2f0){return _0x59136b(_0x42f728,_0x23bc20,_0x246711,_0x168b2b,_0x2a40fb,_0x1188f6,_0xf6c2f0);},'KmtgJ':_0x18af86(0x19c),'OQrbb':_0x18af86(0xf6),'eGwyb':_0x18af86(0x1c4),'QDSel':'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.','hIola':function(_0x5a1b32,_0x18e4b4){return _0x5a1b32===_0x18e4b4;},'mdGKr':function(_0x5e3284,_0x1f4334){return _0x5e3284(_0x1f4334);},'VBItR':_0x18af86(0x1ba),'ROpyO':_0x18af86(0x138),'tkOhi':_0x18af86(0x11d),'pvTMa':_0x18af86(0x11c),'chqvh':_0x18af86(0x147),'YnkJJ':_0x18af86(0x1f0),'ArwqR':'Spawning\x20Grid\x20on\x20the\x20Cluster','qRdLf':function(_0x1403ef,_0x27106c,_0x2ba42f,_0x2d33f4,_0x3797b2,_0x1dbf83,_0x57ee16,_0x5f3645,_0x47cb33,_0x172848,_0x2b6f0e){return _0x1403ef(_0x27106c,_0x2ba42f,_0x2d33f4,_0x3797b2,_0x1dbf83,_0x57ee16,_0x5f3645,_0x47cb33,_0x172848,_0x2b6f0e);},'AHWRW':_0x18af86(0xf4),'dHIwO':_0x18af86(0x1fc),'WdtMr':function(_0x57a15d,_0x52d1da,_0x5d52bc,_0x40b493,_0x4ae2ef){return _0x57a15d(_0x52d1da,_0x5d52bc,_0x40b493,_0x4ae2ef);},'OftMB':'private-ingress-nginx-controller','ETsMK':_0x18af86(0x1e5),'DFGTd':_0x18af86(0x20c),'XNGzP':function(_0x299f4d,_0x5c7a22,_0x30b7aa){return _0x299f4d(_0x5c7a22,_0x30b7aa);},'jtDXp':function(_0x5b67ff,_0x5e274c){return _0x5b67ff===_0x5e274c;},'YXWGo':_0x18af86(0x1ad),'NPxhn':function(_0x2f5cb5,_0x2c0afe,_0xf95f52,_0x5424c8,_0x1dd391,_0x46b4e7,_0x15fe8b,_0x1e2cae){return _0x2f5cb5(_0x2c0afe,_0xf95f52,_0x5424c8,_0x1dd391,_0x46b4e7,_0x15fe8b,_0x1e2cae);},'AVCkJ':_0x18af86(0xef),'tbVKP':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','aNpFX':function(_0x4e4f0a,_0x55e702,_0x2e8f4b,_0x15fdaf,_0x3fd383,_0x2d7f81,_0x49f3a0,_0xd775ed){return _0x4e4f0a(_0x55e702,_0x2e8f4b,_0x15fdaf,_0x3fd383,_0x2d7f81,_0x49f3a0,_0xd775ed);},'yKeWW':'get-grid-url-auth-failed','qgsSl':_0x18af86(0x1d0),'iDbIn':_0x18af86(0x212),'rmHCZ':function(_0x210dec,_0x13ad78,_0x846463,_0x3ca419,_0x47a0e8,_0x4c6404){return _0x210dec(_0x13ad78,_0x846463,_0x3ca419,_0x47a0e8,_0x4c6404);},'CWzor':_0x18af86(0xca)};let _0x243514=![],_0x2c9b20=![],_0xc9a899,_0x277cf0,_0x135218,_0x20590e,_0x22803e,_0x18d03f,_0x224756,_0x263daf,_0x50417a,_0x324b5e,_0x1ecf16,_0x51e1be,_0x3c7be4,_0x38d912,_0xb5f3e6=0x1,_0x15c7c8=0xe;try{global_registry['requestId']=_0x772a7a[_0x18af86(0x151)](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0x18af86(0x13a)](_0x772a7a['hEJjy'](getCredentialsPath))&&(_0x772a7a['cgCFO'](_0x772a7a[_0x18af86(0x19a)],_0x772a7a[_0x18af86(0x19a)])?_0x2bfc1a['sendResourceDataToHST']():(console[_0x18af86(0x1eb)](_0x772a7a[_0x18af86(0x1b7)]),await _0x772a7a[_0x18af86(0x1fb)](sendInstrumentationEvent,_0x4e8afa,_0x772a7a[_0x18af86(0x16c)],messageTypes[_0x18af86(0x123)],_0x772a7a[_0x18af86(0x211)],null,_0x4e8afa),process[_0x18af86(0xd6)](0x1)));await _0x772a7a['PSUQh'](sendInstrumentationEvent,_0x4e8afa,_0x772a7a[_0x18af86(0x16c)],messageTypes[_0x18af86(0x159)],null,null,_0x4e8afa);const _0x2cc0f5=JSON[_0x18af86(0xdf)](fs[_0x18af86(0xe5)](_0x772a7a[_0x18af86(0x181)](getCredentialsPath)));global_registry['bstackUsername']=_0x2cc0f5['Browserstack'][_0x18af86(0x124)],global_registry['bstackAccesskey']=_0x2cc0f5['Browserstack'][_0x18af86(0x1c6)];const _0x31c4ad=WS_ENDPOINT[_0x18af86(0x20d)](_0x772a7a[_0x18af86(0x1a8)],_0x2cc0f5[_0x18af86(0x11d)]['username'])[_0x18af86(0x20d)](_0x772a7a[_0x18af86(0x1e2)],_0x2cc0f5['Browserstack'][_0x18af86(0x1c6)]),_0x5555cb={};_0x5555cb[_0x18af86(0x191)]=ws,_0x5555cb[_0x18af86(0x149)]=0x36ee80,_0x51e1be=new ReconnectingWebSocket(_0x31c4ad,[],_0x5555cb),logger[_0x18af86(0x1f6)](_0x772a7a[_0x18af86(0x14c)]),webSocketUtils[_0x18af86(0x205)](_0x51e1be,_0x4e8afa[_0x18af86(0x1f2)],_0x4e8afa[_0x18af86(0x1c6)]);const _0x46909b=_0x4e8afa[_0x18af86(0xd9)]||DEFAULT_GRID_NAME;if(_0x4e8afa[_0x18af86(0x141)]||_0x4e8afa[_0x18af86(0x213)]||_0x4e8afa[_0x18af86(0x114)]){if(_0x772a7a[_0x18af86(0x1e0)](_0x772a7a['VOPIE'],_0x772a7a[_0x18af86(0x1e8)])){!(_0x4e8afa[_0x18af86(0x141)]&&_0x4e8afa[_0x18af86(0x213)]&&_0x4e8afa[_0x18af86(0x114)])&&(_0x772a7a['mubsv'](_0x772a7a[_0x18af86(0x11b)],_0x772a7a[_0x18af86(0x15b)])?_0x2efaab=null:(_0xc9a899=_0x772a7a['PkvQy'],await _0x772a7a['JGpHO'](reportToGalactusAndSendToEDS,_0x4e8afa,_0x51e1be,_0xc9a899,messageTypes[_0x18af86(0x123)],_0x772a7a[_0x18af86(0x16c)],_0x772a7a[_0x18af86(0x16d)],_0x772a7a[_0x18af86(0x1ab)]),logger['error'](_0xc9a899),process['exit'](0x1)));![AWS,AZURE,GCP]['includes'](_0x4e8afa[_0x18af86(0x213)][_0x18af86(0x11f)]())&&(_0x772a7a[_0x18af86(0x14d)](_0x772a7a[_0x18af86(0x14e)],_0x772a7a[_0x18af86(0x14e)])?_0x43878e['isPrivateGrid']=!![]:(_0xc9a899=_0x772a7a['Zsipe'],await _0x772a7a[_0x18af86(0x1c8)](reportToGalactusAndSendToEDS,_0x4e8afa,_0x51e1be,_0xc9a899,messageTypes[_0x18af86(0x123)],_0x772a7a[_0x18af86(0x16c)],_0x772a7a[_0x18af86(0x1ed)],_0x772a7a[_0x18af86(0x1ab)]),logger[_0x18af86(0x1eb)](_0xc9a899),process[_0x18af86(0xd6)](0x1)));if(_0x4e8afa[_0x18af86(0x100)]&&_0x772a7a[_0x18af86(0xeb)](_0x4e8afa[_0x18af86(0x100)][_0x18af86(0x11f)](),_0x772a7a[_0x18af86(0xec)])){if(_0x772a7a['cgCFO'](_0x772a7a[_0x18af86(0x21e)],_0x772a7a[_0x18af86(0x21e)])){const _0xd0dbb8={};_0xd0dbb8[_0x18af86(0x1bd)]=_0x54105d[_0x18af86(0x18d)],_0xd0dbb8[_0x18af86(0x168)]='Cluster\x20'+_0x57477d+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x4ae38f[_0x18af86(0x1f3)](_0x42b712,_0xd0dbb8,_0x772a7a[_0x18af86(0x21c)]),_0x3990ab[_0x18af86(0x160)](_0x18af86(0x102)+_0x2f1bbc+_0x18af86(0x130)),_0x301272=!![];if(_0x772a7a[_0x18af86(0x162)](_0x36c3f0,!![]))throw new _0x5aa107(_0x18af86(0x102)+_0x24e943+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}else global_registry[_0x18af86(0x183)]=!![];}global_registry[_0x18af86(0x213)]=_0x4e8afa[_0x18af86(0x213)],global_registry[_0x18af86(0x132)]=_0x4e8afa[_0x18af86(0x114)],global_registry['clusterName']=_0x4e8afa[_0x18af86(0x141)];const _0x27cb2f=await _0x772a7a[_0x18af86(0x1fb)](getCloudProviderObject,_0x4e8afa[_0x18af86(0x213)],_0x4e8afa[_0x18af86(0x141)],_0x46909b,_0x51e1be,webSocketUtils,_0x4e8afa),_0xa4c65f=await _0x27cb2f[_0x18af86(0x109)]();if(!_0xa4c65f){if(_0x772a7a[_0x18af86(0x208)](_0x772a7a[_0x18af86(0x145)],_0x772a7a[_0x18af86(0x145)])){const _0x24cb10={};_0x24cb10[_0x18af86(0x1bd)]=_0xa3a784[_0x18af86(0x18d)],_0x24cb10[_0x18af86(0x168)]=_0x181065,_0x4c999d[_0x18af86(0x1f3)](_0x327845,_0x24cb10,_0x772a7a[_0x18af86(0x1ab)],!![]);}else logger['info'](_0x18af86(0x1b4)+_0x4e8afa[_0x18af86(0x141)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x243514=![],_0x2c9b20=!![];}else{if(_0x772a7a[_0x18af86(0x195)](_0x772a7a[_0x18af86(0x1b8)],_0x772a7a['ERXwj']))_0x243514=!![];else{const _0x53bc63={};_0x53bc63[_0x18af86(0x14b)]=_0x772a7a[_0x18af86(0x17b)],_0x53bc63[_0x18af86(0x1bd)]=_0x772a7a[_0x18af86(0xd1)];const _0x199e0f={};_0x199e0f['description']=_0x772a7a[_0x18af86(0x152)],_0x199e0f[_0x18af86(0x1bd)]=_0x772a7a['NDxKl'];const _0x51a7bc={};_0x51a7bc['description']=_0x772a7a[_0x18af86(0x17d)],_0x51a7bc[_0x18af86(0x1bd)]=_0x772a7a[_0x18af86(0xd1)];const _0x24e967={};_0x24e967[_0x18af86(0x14b)]=_0x772a7a['DFxYQ'],_0x24e967[_0x18af86(0x1bd)]=_0x772a7a[_0x18af86(0xd1)];const _0x44e802={};_0x44e802['description']=_0x772a7a['WvDGx'],_0x44e802[_0x18af86(0x1bd)]=_0x772a7a[_0x18af86(0xd1)];const _0x143d71={};_0x143d71[_0x18af86(0x14b)]=_0x772a7a[_0x18af86(0xfb)],_0x143d71[_0x18af86(0x1bd)]=_0x772a7a[_0x18af86(0xd1)];const _0x1d1d05={};_0x1d1d05[_0x18af86(0x14b)]=_0x772a7a[_0x18af86(0x1f9)],_0x1d1d05[_0x18af86(0x1bd)]=_0x772a7a[_0x18af86(0x139)],_0x1d1d05[_0x18af86(0x138)]=![];const _0x3452a5={};return _0x3452a5[_0x18af86(0x1b1)]=_0x53bc63,_0x3452a5['grid-profile']=_0x199e0f,_0x3452a5[_0x18af86(0x107)]=_0x51a7bc,_0x3452a5[_0x18af86(0x10f)]=_0x24e967,_0x3452a5['region']=_0x44e802,_0x3452a5[_0x18af86(0xc5)]=_0x143d71,_0x3452a5[_0x18af86(0xd5)]=_0x1d1d05,_0x58ab7f[_0x18af86(0x1b5)](_0x2bccf2[_0x18af86(0x1d8)])[_0x18af86(0x17e)](_0x48b5e5)[_0x18af86(0x192)](_0x3452a5)[_0x18af86(0x171)](_0x772a7a[_0x18af86(0x110)])[_0x18af86(0x18f)];}}_0x135218=_0x4e8afa[_0x18af86(0x141)],_0x277cf0=_0x4e8afa['cloudProvider']['toLowerCase'](),_0x20590e=_0x4e8afa[_0x18af86(0x114)];}else _0x3d0a3f=_0x772a7a[_0x18af86(0x1c0)];}else _0x4e8afa['gridProfile']&&(_0x772a7a[_0x18af86(0x195)](_0x772a7a[_0x18af86(0xf0)],_0x772a7a[_0x18af86(0xf0)])?global_registry[_0x18af86(0x176)]=_0x4e8afa['gridProfile']:_0x46e64c=null);global_registry[_0x18af86(0xd9)]=_0x4e8afa[_0x18af86(0xd9)];const _0x2ef63e={'method':_0x772a7a[_0x18af86(0x11e)],'headers':_0x772a7a['MvsEQ'](getAuthHeader,_0x2cc0f5['Browserstack'][_0x18af86(0x124)],_0x2cc0f5[_0x18af86(0x11d)]['password']),'throwHttpErrors':![]},_0x56f486={};_0x56f486[_0x18af86(0xd9)]=_0x46909b;const _0x132c47=_0x56f486;_0x2c9b20&&(_0x772a7a[_0x18af86(0xe0)](_0x772a7a['jxHgJ'],_0x772a7a[_0x18af86(0x1be)])?(_0x132c47['region']=_0x20590e,_0x132c47['cloudProvider']=_0x277cf0,_0x132c47['newCluster']=!![]):_0x4f6713[_0x18af86(0x176)]=_0x59e333[_0x18af86(0x176)]);const _0x220e69=_0x18af86(0x1c1)+AG_API_URL+_0x18af86(0x1c2),_0xf5eb41={'searchParams':_0x132c47,'throwHttpErrors':![],..._0x2ef63e},_0x17000f=_0xf5eb41,_0x5450ea=await _0x772a7a[_0x18af86(0x146)](got,_0x220e69,_0x17000f);(_0x772a7a[_0x18af86(0x162)](_0x5450ea,null)||_0x772a7a[_0x18af86(0xeb)](_0x5450ea,undefined))&&(_0x772a7a[_0x18af86(0x198)](_0x772a7a[_0x18af86(0x12c)],_0x772a7a[_0x18af86(0x1bf)])?(_0xc9a899=_0x772a7a[_0x18af86(0x1da)],await _0x772a7a['zWlix'](reportToGalactusAndSendToEDS,_0x4e8afa,_0x51e1be,_0xc9a899,messageTypes['ERROR'],_0x772a7a[_0x18af86(0x16c)],_0x772a7a[_0x18af86(0x180)],_0x772a7a[_0x18af86(0x1ab)]),logger[_0x18af86(0x1eb)](_0xc9a899),process['exit'](0x1)):(_0x300ef9[_0x18af86(0x114)]=_0x24ad76,_0x156a2f['cloudProvider']=_0x20c25f,_0x3be13b[_0x18af86(0x201)]=!![]));_0x772a7a[_0x18af86(0x131)](_0x5450ea['statusCode'],0x191)&&(_0x772a7a[_0x18af86(0x1ee)](_0x772a7a['LJxHX'],_0x772a7a[_0x18af86(0x1d1)])?_0x38ae8c[_0x18af86(0x160)](_0x18af86(0x202)+_0x299cfb+'\x20'):(_0xc9a899=_0x772a7a[_0x18af86(0x104)],await _0x772a7a[_0x18af86(0x217)](reportToGalactusAndSendToEDS,_0x4e8afa,_0x51e1be,_0xc9a899,messageTypes[_0x18af86(0x123)],_0x772a7a['PrRxi'],_0x772a7a[_0x18af86(0x193)],_0x772a7a[_0x18af86(0x1ab)]),logger[_0x18af86(0x1eb)](_0xc9a899),process[_0x18af86(0xd6)](0x1)));_0x772a7a[_0x18af86(0x1e0)](_0x5450ea[_0x18af86(0x1f4)],0xc8)&&(_0x772a7a[_0x18af86(0x131)](_0x772a7a[_0x18af86(0x1dd)],_0x772a7a[_0x18af86(0x1f7)])?(_0x4919a0[_0x18af86(0x160)]('Cluster:\x20'+_0x3f8b7f[_0x18af86(0x141)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0xee41b4=![],_0xc789b7=!![]):(_0xc9a899='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x18af86(0x16e)](_0x5450ea[_0x18af86(0x21b)]),await _0x772a7a[_0x18af86(0x121)](reportToGalactusAndSendToEDS,_0x4e8afa,_0x51e1be,_0xc9a899,messageTypes[_0x18af86(0x123)],_0x772a7a['PrRxi'],_0x772a7a[_0x18af86(0x15f)],_0x772a7a[_0x18af86(0x1ab)]),logger[_0x18af86(0x1eb)](_0xc9a899),process[_0x18af86(0xd6)](0x1)));const _0x46cc5a=JSON['parse'](_0x5450ea['body']),_0x1e1b97={};_0x1e1b97[_0x18af86(0x1bd)]=WS_EVENTS['CLI_RUN_STARTED'],_0x1e1b97[_0x18af86(0x168)]=_0x772a7a[_0x18af86(0x133)],webSocketUtils[_0x18af86(0x1f3)](_0x51e1be,_0x1e1b97);const _0x25f171={};_0x25f171[_0x18af86(0x1bd)]=WS_EVENTS[_0x18af86(0x18d)],_0x25f171[_0x18af86(0x168)]=_0x772a7a['imAuM'],webSocketUtils['sendEventToBackend'](_0x51e1be,_0x25f171);_0x46cc5a[_0x18af86(0x13f)]&&(_0x772a7a[_0x18af86(0x162)](_0x772a7a[_0x18af86(0x12d)],_0x772a7a[_0x18af86(0x12d)])?(_0xc9a899=_0x18af86(0x1b2)+_0x46909b+_0x18af86(0x18b),await _0x772a7a[_0x18af86(0x17f)](reportToGalactusAndSendToEDS,_0x4e8afa,_0x51e1be,_0xc9a899,messageTypes[_0x18af86(0x123)],_0x772a7a[_0x18af86(0x16c)],_0x772a7a[_0x18af86(0x1ef)],_0x772a7a[_0x18af86(0x1ab)]),logger['error'](_0xc9a899),process[_0x18af86(0xd6)](0x1)):_0x335eb5=!![]);const _0x7bca26=_0x46cc5a[_0x18af86(0xd2)];let _0x5cf6d9=_0x7bca26[_0x46cc5a[_0x18af86(0xdd)]];_0x4e8afa['gridProfile']&&(_0x772a7a[_0x18af86(0xeb)](_0x772a7a[_0x18af86(0x16f)],_0x772a7a[_0x18af86(0x10d)])?(_0x256366=_0x31c2b3['route53'],_0x18bd37=_0x772a7a[_0x18af86(0x1e4)]):_0x5cf6d9=_0x7bca26[_0x4e8afa[_0x18af86(0x176)]]);if(_0x772a7a[_0x18af86(0x131)](_0x243514,![])&&_0x772a7a['GmRQR'](_0x2c9b20,![])){if(_0x772a7a['Lzbou'](_0x772a7a[_0x18af86(0x128)],_0x772a7a[_0x18af86(0x128)]))_0x56d85b[_0x18af86(0x183)]=!![];else{_0x772a7a['jvKnw'](_0x5cf6d9,undefined)&&(_0x772a7a[_0x18af86(0x219)](_0x772a7a['NlRBp'],_0x772a7a['dlqiq'])?_0x4cdf38[_0x18af86(0x183)]=!![]:(_0xc9a899=_0x772a7a['aYliU'],await _0x772a7a['jnypJ'](reportToGalactusAndSendToEDS,_0x4e8afa,_0x51e1be,_0xc9a899,messageTypes[_0x18af86(0x123)],_0x772a7a[_0x18af86(0x16c)],_0x772a7a[_0x18af86(0x210)],_0x772a7a[_0x18af86(0x1ab)]),logger[_0x18af86(0x1eb)](_0xc9a899),process[_0x18af86(0xd6)](0x1)));global_registry['gridProfileId']=_0x5cf6d9['id'],_0xc9a899=_0x18af86(0xcc)+_0x46909b+'\x20using\x20\x27'+_0x5cf6d9[_0x18af86(0x136)]+_0x18af86(0x164),logger[_0x18af86(0x160)](_0xc9a899);const _0x21c429={};_0x21c429[_0x18af86(0x1bd)]=WS_EVENTS[_0x18af86(0x18d)],_0x21c429[_0x18af86(0x168)]=_0xc9a899,webSocketUtils['sendEventToBackend'](_0x51e1be,_0x21c429),_0x277cf0=_0x5cf6d9['cloudProvider'],_0x135218=_0x5cf6d9['clusterName'],_0x20590e=_0x5cf6d9['region'],_0x22803e=_0x5cf6d9[_0x18af86(0x1f5)],_0x18d03f=_0x5cf6d9[_0x18af86(0x163)],_0x224756=_0x5cf6d9[_0x18af86(0x108)],_0x263daf=_0x5cf6d9[_0x18af86(0x10e)],_0x50417a=_0x5cf6d9[_0x18af86(0x21d)],_0x324b5e=_0x5cf6d9[_0x18af86(0x11a)],_0xb5f3e6=_0x5cf6d9[_0x18af86(0x122)],_0x15c7c8=_0x5cf6d9[_0x18af86(0xd8)],_0x3c7be4=_0x46cc5a[_0x18af86(0x1cf)],_0x38d912=_0x46cc5a[_0x18af86(0x13e)];if(_0x224756&&_0x772a7a[_0x18af86(0x219)](_0x224756[_0x18af86(0x179)],0x0)){if(_0x772a7a[_0x18af86(0x198)](_0x772a7a[_0x18af86(0x175)],_0x772a7a[_0x18af86(0x175)]))throw new _0x366e3d(_0x18af86(0x102)+_0x3bc218+_0x18af86(0x12e));else _0x224756=null;}if(_0x50417a&&_0x772a7a[_0x18af86(0xeb)](_0x50417a[_0x18af86(0x179)],0x0)){if(_0x772a7a[_0x18af86(0x198)](_0x772a7a['GRlPs'],_0x772a7a[_0x18af86(0x13b)])){const _0x3a9b8f=_0x772a7a['NCjtq'][_0x18af86(0x1d5)]('|');let _0x1f60ad=0x0;while(!![]){switch(_0x3a9b8f[_0x1f60ad++]){case'0':_0x1f333e[_0x18af86(0x132)]=_0x2cc033;continue;case'1':const _0x558b11={};_0x558b11['type']=_0x4077a8['LOG'],_0x558b11['message']=_0x48440d,_0x360378[_0x18af86(0x1f3)](_0x47e627,_0x558b11);continue;case'2':_0x7bae9e[_0x18af86(0x1cf)]=_0x3ac886['hubVersion'];continue;case'3':_0x37b8b2=_0x18af86(0xe9)+_0x45a07b+'\x20in\x20existing\x20cluster\x20\x27'+_0x51b747+'\x27';continue;case'4':_0x2a3fba['clusterName']=_0x191632;continue;case'5':_0x53cbf1['browserVersion']=_0x155ecf['browserVersion'];continue;case'6':_0x79ca73[_0x18af86(0x160)](_0x2937a1);continue;case'7':_0x4f650f[_0x18af86(0x213)]=_0x1a0f81;continue;case'8':const _0x2edebb={};_0x2edebb[_0x18af86(0x1bd)]=_0x50026b[_0x18af86(0xcd)],_0x2edebb[_0x18af86(0x168)]=_0x772a7a[_0x18af86(0x133)],_0x4c4e8e[_0x18af86(0x1f3)](_0x2fda12,_0x2edebb);continue;}break;}}else _0x50417a=null;}_0x772a7a[_0x18af86(0x154)](_0x5cf6d9['privateGrid'],undefined)&&_0x5cf6d9['privateGrid']&&(_0x772a7a[_0x18af86(0x1b6)](_0x772a7a[_0x18af86(0xce)],_0x772a7a[_0x18af86(0x15c)])?global_registry[_0x18af86(0x183)]=!![]:_0x4b3f95[_0x18af86(0x1eb)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x30da36+'\x20\x0a'+_0x411c5c['stringify'](_0x190ded[_0x18af86(0xf1)]))),_0x772a7a[_0x18af86(0x1bc)](updateGlobalRegistryWithConfig,_0x277cf0,_0x135218,_0x20590e,_0x22803e,_0x18d03f,_0x324b5e,_0x5cf6d9,_0x3c7be4,_0x38d912,_0xb5f3e6,_0x15c7c8);}}else{if(_0x772a7a[_0x18af86(0x203)](_0x2c9b20,!![])){if(_0x772a7a['AmAGw'](_0x772a7a[_0x18af86(0x1fe)],_0x772a7a[_0x18af86(0x150)])){_0xc9a899=_0x18af86(0x166)+_0x46909b,logger[_0x18af86(0x160)](_0xc9a899);const _0x347e65={};_0x347e65[_0x18af86(0x1bd)]=WS_EVENTS[_0x18af86(0x18d)],_0x347e65[_0x18af86(0x168)]=_0xc9a899,webSocketUtils[_0x18af86(0x1f3)](_0x51e1be,_0x347e65),_0x22803e=_0x5cf6d9[_0x18af86(0x1f5)],_0x18d03f=_0x5cf6d9['instanceType'],_0x224756=null,_0x263daf=null,_0x50417a=null,_0x324b5e=_0x5cf6d9['s3bucket'],_0xb5f3e6=_0x5cf6d9[_0x18af86(0x122)],_0x15c7c8=_0x5cf6d9[_0x18af86(0xd8)],_0x3c7be4=_0x46cc5a[_0x18af86(0x1cf)],_0x38d912=_0x46cc5a[_0x18af86(0x13e)],_0x772a7a[_0x18af86(0xf3)](_0x5cf6d9[_0x18af86(0x100)],undefined)&&_0x5cf6d9[_0x18af86(0x100)]&&(_0x772a7a[_0x18af86(0x195)](_0x772a7a[_0x18af86(0x215)],_0x772a7a[_0x18af86(0x215)])?global_registry[_0x18af86(0x183)]=!![]:_0x4ee4de['info'](_0x18af86(0xdc)+_0x19fb2a[_0x18af86(0x16e)](_0x8a1d9b)+'\x20')),_0x772a7a[_0x18af86(0x1bc)](updateGlobalRegistryWithConfig,_0x277cf0,_0x135218,_0x20590e,_0x22803e,_0x18d03f,_0x324b5e,_0x5cf6d9,_0x3c7be4,_0x38d912,_0xb5f3e6,_0x15c7c8);}else{const _0x514203=_0x772a7a['pPNRE'][_0x18af86(0x1d5)]('|');let _0x123944=0x0;while(!![]){switch(_0x514203[_0x123944++]){case'0':_0x20277a[_0x18af86(0x160)](_0x4d77b3);continue;case'1':_0xf045f2=_0x2cb5c0[_0x18af86(0x163)];continue;case'2':_0x59688b=_0x17971f[_0x18af86(0xd8)];continue;case'3':_0x4147f1=_0x3017cb['minNodes'];continue;case'4':_0x4868b6=null;continue;case'5':_0xb988a=_0x11630b[_0x18af86(0x11a)];continue;case'6':_0x772a7a['WaPNb'](_0xfcadbb,_0xf4f747,_0x4dfb5f,_0x15694a,_0x4477ee,_0xdc96b4,_0x39a997,_0x2a11ba,_0x359a60,_0x5ec958,_0x404517,_0x552404);continue;case'7':_0x9617f=_0x480a1c[_0x18af86(0x13e)];continue;case'8':_0x5c5501=null;continue;case'9':_0x2df087=_0x39811a[_0x18af86(0x1f5)];continue;case'10':_0x1fe7d4=_0x755138['hubVersion'];continue;case'11':const _0x4ffe70={};_0x4ffe70[_0x18af86(0x1bd)]=_0x18c717['LOG'],_0x4ffe70['message']=_0x19450a,_0x59e782[_0x18af86(0x1f3)](_0x43273d,_0x4ffe70);continue;case'12':_0x772a7a['cgCFO'](_0x5aa848[_0x18af86(0x100)],_0xe586f1)&&_0x237e2f[_0x18af86(0x100)]&&(_0x2a6f5d[_0x18af86(0x183)]=!![]);continue;case'13':_0x11763b=_0x18af86(0x166)+_0x4d889d;continue;case'14':_0x9208f1=null;continue;}break;}}}else{if(_0x772a7a['KRUYg'](_0x772a7a[_0x18af86(0x14a)],_0x772a7a[_0x18af86(0x14a)])){const _0x161c6a=_0x772a7a[_0x18af86(0x1c5)][_0x18af86(0x1d5)]('|');let _0x1b8d70=0x0;while(!![]){switch(_0x161c6a[_0x1b8d70++]){case'0':global_registry[_0x18af86(0x13e)]=_0x46cc5a[_0x18af86(0x13e)];continue;case'1':logger[_0x18af86(0x160)](_0xc9a899);continue;case'2':global_registry[_0x18af86(0x141)]=_0x135218;continue;case'3':const _0x1329c0={};_0x1329c0[_0x18af86(0x1bd)]=WS_EVENTS[_0x18af86(0xcd)],_0x1329c0[_0x18af86(0x168)]=_0x772a7a[_0x18af86(0x133)],webSocketUtils['sendEventToBackend'](_0x51e1be,_0x1329c0);continue;case'4':global_registry[_0x18af86(0x213)]=_0x277cf0;continue;case'5':_0xc9a899=_0x18af86(0xe9)+_0x46909b+_0x18af86(0xc9)+_0x135218+'\x27';continue;case'6':global_registry[_0x18af86(0x132)]=_0x20590e;continue;case'7':global_registry['hubVersion']=_0x46cc5a[_0x18af86(0x1cf)];continue;case'8':const _0x40422a={};_0x40422a['type']=WS_EVENTS[_0x18af86(0x18d)],_0x40422a[_0x18af86(0x168)]=_0xc9a899,webSocketUtils[_0x18af86(0x1f3)](_0x51e1be,_0x40422a);continue;}break;}}else _0x1d6e8b=_0x5bd110[_0x35c357[_0x18af86(0x176)]];}}const _0x504f09=await _0x772a7a['PSUQh'](getCloudProviderObject,_0x277cf0,_0x135218,_0x46909b,_0x51e1be,webSocketUtils,_0x4e8afa);_0x772a7a[_0x18af86(0x1e0)](_0x277cf0,AZURE)&&_0x504f09['sendResourceDataToHST']();let _0x288f79;if(_0x772a7a['JkSNe'](_0x243514,![])){_0xc9a899=_0x18af86(0xff)+_0x20590e+').';const _0x4c4de1={};_0x4c4de1[_0x18af86(0x1bd)]=WS_EVENTS['LOG'],_0x4c4de1[_0x18af86(0x168)]=_0xc9a899,webSocketUtils['sendEventToBackend'](_0x51e1be,_0x4c4de1),logger[_0x18af86(0x160)](_0xc9a899);const _0x59f8db=await _0x504f09[_0x18af86(0x109)]();if(_0x59f8db){const _0x2f195c={};_0x2f195c[_0x18af86(0x1bd)]=WS_EVENTS[_0x18af86(0x18d)],_0x2f195c[_0x18af86(0x168)]=_0x18af86(0x102)+_0x135218+_0x18af86(0x130),webSocketUtils[_0x18af86(0x1f3)](_0x51e1be,_0x2f195c,_0x772a7a['pWPcU']),logger[_0x18af86(0x160)](_0x18af86(0x102)+_0x135218+_0x18af86(0x130)),_0x243514=!![];if(_0x772a7a[_0x18af86(0x195)](_0x2c9b20,!![]))throw new Error(_0x18af86(0x102)+_0x135218+_0x18af86(0x12e));}else{const _0x3a9b6c={};_0x3a9b6c[_0x18af86(0x1bd)]=WS_EVENTS[_0x18af86(0x18d)],_0x3a9b6c[_0x18af86(0x168)]=_0x772a7a[_0x18af86(0x200)],webSocketUtils[_0x18af86(0x1f3)](_0x51e1be,_0x3a9b6c),logger['info'](_0x772a7a['IzVie']);const _0x3e3f36=_0x772a7a[_0x18af86(0x1af)](_0x224756,null)&&_0x772a7a['OQmHu'](_0x224756,undefined),_0x80c010=_0x772a7a[_0x18af86(0x1af)](_0x50417a,null)&&_0x772a7a['SpNBz'](_0x50417a,undefined)&&_0x772a7a['KmSwW'](_0x50417a['length'],0x0);if(_0x3e3f36){_0x772a7a[_0x18af86(0x195)](_0x80c010,![])&&(_0xc9a899=_0x772a7a[_0x18af86(0x1ec)],await _0x772a7a['zWlix'](reportToGalactusAndSendToEDS,_0x4e8afa,_0x51e1be,_0xc9a899,messageTypes['ERROR'],_0x772a7a[_0x18af86(0x16c)],_0x772a7a[_0x18af86(0xf7)],_0x772a7a[_0x18af86(0x1ab)]),logger[_0x18af86(0x1eb)](_0xc9a899),process[_0x18af86(0xd6)](0x1));const _0x3d25a5=await _0x504f09[_0x18af86(0x1c7)](_0x224756);_0x772a7a[_0x18af86(0xea)](_0x3d25a5,![])?(_0xc9a899=_0x772a7a[_0x18af86(0x1c9)],await _0x772a7a[_0x18af86(0x121)](reportToGalactusAndSendToEDS,_0x4e8afa,_0x51e1be,_0xc9a899,messageTypes['ERROR'],_0x772a7a[_0x18af86(0x16c)],_0x772a7a[_0x18af86(0x129)],_0x772a7a[_0x18af86(0x1ab)]),logger[_0x18af86(0x1eb)](_0xc9a899),process['exit'](0x1)):logger[_0x18af86(0x160)](_0x18af86(0x202)+_0x224756+'\x20');const _0x491709=await _0x504f09[_0x18af86(0x1de)](_0x50417a,_0x224756);_0x772a7a[_0x18af86(0xd7)](_0x491709[0x0],![])?(_0xc9a899=_0x18af86(0x1a2)+JSON[_0x18af86(0x16e)](_0x491709[0x1])+_0x18af86(0xc7)+_0x224756+_0x18af86(0x1dc),await _0x772a7a[_0x18af86(0x1e7)](reportToGalactusAndSendToEDS,_0x4e8afa,_0x51e1be,_0xc9a899,messageTypes[_0x18af86(0x123)],_0x772a7a[_0x18af86(0x16c)],_0x772a7a[_0x18af86(0x18a)],_0x772a7a['JuNtB']),logger[_0x18af86(0x1eb)](_0xc9a899),process[_0x18af86(0xd6)](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON['stringify'](_0x50417a)+'\x20'),await _0x504f09['setupNewCluster'](_0x224756,_0x50417a);}else{const _0x24dfca=_0x772a7a[_0x18af86(0x20b)]['split']('|');let _0x5c8078=0x0;while(!![]){switch(_0x24dfca[_0x5c8078++]){case'0':await _0x504f09[_0x18af86(0xd4)](_0x224756,_0x50417a);continue;case'1':const _0x2e08b9={};_0x2e08b9[_0x18af86(0x1bd)]=WS_EVENTS['LOG'],_0x2e08b9[_0x18af86(0x168)]=_0x772a7a['eGwyb'],webSocketUtils[_0x18af86(0x1f3)](_0x51e1be,_0x2e08b9);continue;case'2':const _0x116bfc={};_0x116bfc[_0x18af86(0x1bd)]=WS_EVENTS['LOG'],_0x116bfc[_0x18af86(0x168)]=_0x772a7a['QDSel'],webSocketUtils[_0x18af86(0x1f3)](_0x51e1be,_0x116bfc);continue;case'3':logger[_0x18af86(0x160)](_0x772a7a[_0x18af86(0x1d2)]);continue;case'4':logger[_0x18af86(0x160)](_0x772a7a[_0x18af86(0xe4)]);continue;}break;}}}}_0x243514&&_0x772a7a[_0x18af86(0x131)](_0x277cf0,AZURE)&&(await _0x504f09[_0x18af86(0x17a)](),await _0x504f09[_0x18af86(0x197)]());const [_0x1ce76d,_0x38f9fe,_0x3f7b08,_0x374a74,_0x1df59a,_0x1fb4a8]=await _0x772a7a[_0x18af86(0x1ea)](createK8sClient,_0x504f09,_0x4e8afa[_0x18af86(0x115)]);_0x772a7a['coCtW'](_0x243514,![])&&_0x772a7a[_0x18af86(0x20e)](_0x277cf0,AWS)&&(global_registry[_0x18af86(0xf2)]=!![],_0x288f79=await _0x504f09['setupAutoscaler'](_0x1ce76d,_0x4e8afa));try{_0x1ecf16=_0x772a7a[_0x18af86(0x118)](kebabCase,_0x46909b),logger[_0x18af86(0x160)](_0x772a7a['VBItR']);const _0x3301b2={};_0x3301b2['type']=WS_EVENTS['LOG'],_0x3301b2[_0x18af86(0x168)]=_0x772a7a[_0x18af86(0x16b)],webSocketUtils[_0x18af86(0x1f3)](_0x51e1be,_0x3301b2);if(_0x772a7a[_0x18af86(0x208)](_0x1ecf16,_0x772a7a[_0x18af86(0x1df)])){const _0x3db473={};_0x3db473['createdBy']=_0x772a7a[_0x18af86(0x158)],_0x3db473[_0x18af86(0x143)]=_0x772a7a['tkOhi'];const _0x317cf9={};_0x317cf9['name']=_0x1ecf16,_0x317cf9[_0x18af86(0x173)]=_0x3db473;const _0x4d2dcf={};_0x4d2dcf['metadata']=_0x317cf9;const _0x1e2632=_0x4d2dcf,_0x395d27={};_0x395d27['body']=_0x1e2632,await _0x1ce76d[_0x18af86(0x14f)](_0x395d27),logger[_0x18af86(0x160)](_0x772a7a[_0x18af86(0x1cd)]);}const _0x4f389a={};_0x4f389a['type']=WS_EVENTS[_0x18af86(0x18d)],_0x4f389a[_0x18af86(0x168)]=_0x772a7a[_0x18af86(0x1a4)],webSocketUtils[_0x18af86(0x1f3)](_0x51e1be,_0x4f389a);const _0x3e2ab2={};_0x3e2ab2['type']=WS_EVENTS[_0x18af86(0x18d)],_0x3e2ab2[_0x18af86(0x168)]=_0x772a7a[_0x18af86(0xde)],webSocketUtils[_0x18af86(0x1f3)](_0x51e1be,_0x3e2ab2),logger[_0x18af86(0x160)](_0x772a7a[_0x18af86(0x153)]);let _0x4b5948={};_0x772a7a[_0x18af86(0x131)](_0x277cf0,AZURE)&&(_0x4b5948={'clientId':await _0x504f09[_0x18af86(0x12a)](_0x18af86(0x1db)+_0x135218)});await _0x772a7a[_0x18af86(0x172)](addGridComponents,_0x1ce76d,_0x38f9fe,_0x3f7b08,_0x374a74,_0x1ecf16,_0x135218,_0x288f79,_0x1df59a,_0x1fb4a8,_0x4b5948),_0xc9a899=_0x772a7a['AHWRW'],logger[_0x18af86(0x160)](_0xc9a899);const _0x1f80bd={};_0x1f80bd[_0x18af86(0x1bd)]=WS_EVENTS[_0x18af86(0x18d)],_0x1f80bd['message']=_0xc9a899,webSocketUtils['sendEventToBackend'](_0x51e1be,_0x1f80bd),_0xc9a899=_0x772a7a[_0x18af86(0x19e)],logger[_0x18af86(0x160)](_0xc9a899);const _0xa2de6f={};_0xa2de6f[_0x18af86(0x1bd)]=WS_EVENTS[_0x18af86(0x18d)],_0xa2de6f['message']=_0xc9a899,webSocketUtils[_0x18af86(0x1f3)](_0x51e1be,_0xa2de6f),await _0x772a7a['WdtMr'](waitForDeployment,_0x38f9fe,_0x1ecf16,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x49ba10=await _0x772a7a[_0x18af86(0x146)](getNamespaceUID,_0x1ce76d,_0x1ecf16),_0x585ef0=global_registry['isPrivateGrid']?_0x772a7a['OftMB']:_0x772a7a[_0x18af86(0x105)],_0x579b53={};_0x579b53[_0x18af86(0x136)]=_0x585ef0,_0x579b53[_0x18af86(0x20f)]=_0x772a7a[_0x18af86(0x169)];const _0x9dcded=await _0x1ce76d[_0x18af86(0x1d4)](_0x579b53);let _0x5e5d66=_0x504f09[_0x18af86(0x21a)](_0x9dcded)+'/'+_0x1ecf16,_0x11bed5=_0x772a7a[_0x18af86(0x1c0)];try{const _0x2499e7=_0x18af86(0x1c1)+AG_API_URL+_0x18af86(0xda)+_0x49ba10,_0x2aedbb=await _0x772a7a['XNGzP'](got,_0x2499e7,_0x2ef63e);(_0x772a7a[_0x18af86(0xf5)](_0x2aedbb,null)||_0x772a7a['coCtW'](_0x2aedbb,undefined))&&(_0xc9a899=_0x772a7a[_0x18af86(0xf8)],await _0x772a7a[_0x18af86(0x189)](reportToGalactusAndSendToEDS,_0x4e8afa,_0x51e1be,_0xc9a899,messageTypes[_0x18af86(0x123)],_0x772a7a['PrRxi'],_0x772a7a[_0x18af86(0x1f8)],_0x772a7a['JuNtB']),logger[_0x18af86(0x1eb)](_0xc9a899),process['exit'](0x1));_0x772a7a[_0x18af86(0x219)](_0x2aedbb[_0x18af86(0x1f4)],0x191)&&(_0xc9a899=_0x772a7a[_0x18af86(0x1ff)],await _0x772a7a['aNpFX'](reportToGalactusAndSendToEDS,_0x4e8afa,_0x51e1be,_0xc9a899,messageTypes[_0x18af86(0x123)],_0x772a7a[_0x18af86(0x16c)],_0x772a7a[_0x18af86(0x106)],_0x772a7a['JuNtB']),logger[_0x18af86(0x1eb)](_0xc9a899),process['exit'](0x1));_0x772a7a['Lzbou'](_0x2aedbb[_0x18af86(0x1f4)],0xc8)&&(_0xc9a899=_0x18af86(0x196)+JSON['stringify'](_0x2aedbb),await _0x772a7a[_0x18af86(0x121)](reportToGalactusAndSendToEDS,_0x4e8afa,_0x51e1be,_0xc9a899,messageTypes[_0x18af86(0x123)],_0x772a7a[_0x18af86(0x16c)],_0x772a7a[_0x18af86(0x161)],_0x772a7a[_0x18af86(0x1ab)]),logger[_0x18af86(0x1eb)](_0xc9a899),process[_0x18af86(0xd6)](0x1));const _0x552a1f=JSON[_0x18af86(0xdf)](_0x2aedbb[_0x18af86(0x21b)]);_0x552a1f[_0x18af86(0xfd)]&&(_0x5e5d66=_0x552a1f[_0x18af86(0xfd)],_0x11bed5=_0x772a7a[_0x18af86(0x1e4)]),global_registry[_0x18af86(0x183)]&&(_0x11bed5=_0x772a7a[_0x18af86(0x1c0)]);}catch(_0x4beb02){}_0xc9a899=_0x18af86(0x117)+_0x5e5d66+'\x20',logger[_0x18af86(0x160)](_0xc9a899);const _0x142cce={};_0x142cce['type']=WS_EVENTS[_0x18af86(0x18d)],_0x142cce[_0x18af86(0x168)]=_0xc9a899,webSocketUtils['sendEventToBackend'](_0x51e1be,_0x142cce),_0xc9a899='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x11bed5+_0x18af86(0x209)+_0x5e5d66+_0x18af86(0x170),logger[_0x18af86(0x160)](_0xc9a899);const _0x34e33f={};_0x34e33f['type']=WS_EVENTS[_0x18af86(0x18d)],_0x34e33f['message']=_0xc9a899,webSocketUtils[_0x18af86(0x1f3)](_0x51e1be,_0x34e33f);const _0x220705={};_0x220705['type']=WS_EVENTS['CLI_RUN_FINISHED'],_0x220705[_0x18af86(0x168)]=_0x18af86(0x1a5)+_0x5e5d66,webSocketUtils[_0x18af86(0x1f3)](_0x51e1be,_0x220705),await webSocketUtils[_0x18af86(0xd0)](0x7d0);}catch(_0x1331d0){logger['error'](_0x18af86(0xe3)+_0x1331d0+'\x20\x0a'+JSON[_0x18af86(0x16e)](_0x1331d0['stack']));if(_0x772a7a[_0x18af86(0x204)](_0x243514,![]))try{logger[_0x18af86(0x160)](_0x772a7a['iDbIn']),await _0x772a7a[_0x18af86(0xee)](removeGridComponents,_0x1ce76d,_0x38f9fe,_0x3f7b08,_0x374a74,_0x1ecf16),await _0x504f09[_0x18af86(0xe8)](_0x1ce76d,global_registry[_0x18af86(0x132)]);}catch(_0x5e2361){logger[_0x18af86(0x1eb)](_0x18af86(0x178)+_0x5e2361+'\x20\x0a'+JSON['stringify'](_0x5e2361[_0x18af86(0xf1)]));}throw _0x1331d0;}}catch(_0xa6e683){const _0x4fc69c=_0x18af86(0x1ca)+_0xa6e683+'\x20\x0a'+JSON[_0x18af86(0x16e)](_0xa6e683[_0x18af86(0xf1)]);if(_0x51e1be){const _0x5c21af={};_0x5c21af['type']=WS_EVENTS[_0x18af86(0x18d)],_0x5c21af[_0x18af86(0x168)]=_0x4fc69c,webSocketUtils['sendEventToBackend'](_0x51e1be,_0x5c21af,_0x772a7a[_0x18af86(0x1ab)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x3685ae={};_0x3685ae[_0x18af86(0x1eb)]=_0x4fc69c,await _0x772a7a[_0x18af86(0x1fb)](sendInstrumentationEvent,_0x4e8afa,_0x772a7a[_0x18af86(0x16c)],messageTypes['ERROR'],_0x772a7a[_0x18af86(0x187)],_0x3685ae,_0x4e8afa),logger[_0x18af86(0x1eb)](_0x4fc69c);}process[_0x18af86(0xd6)](0x0);};
1
+ const a9_0x46b176=a9_0x4343;function a9_0x5993(){const _0x7f999=['ACmFf','OVnmh','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','qBdzU','VwDIZ','INFO','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','://','clusterRegion','XhdyJ','pgbED','privateGrid','uBdIs','\x20are\x20not\x20present\x20in\x20VPC:\x20','init-not-called','pAgsJ','mNOff','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','HIwZj','gridName','MEeEo','skipTlsCertVerify','jPVXC','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','GeWUc','Deleting\x20the\x20CloudFormation\x20Stacks','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','isNewAWSCluster','coLvU','annotations','24GlVfSi','NWHOQ','string','error','options','subnets','isSubnetsValid','setupNewCluster','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','AwNFa','fysTn','usage','Browserstack','qrCoy','VtOVx','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','cIzRZ','22iENjGh','browserVersion','eqrvh','hubVersion','WJEEq','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','FJXem','xELZy','private-grid','statusCode','length','4CdQPuA','yWglq','getResourceClientId','2|1|3|4|5|8|10|12|13|14|9|11|0|6|7','Skip\x20insecure\x20cert\x20verification.','default','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','alreadyPresent','Create\x20a\x20private/public\x20grid.','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Namespace\x20created','mNlnu','SxeEA','CLI\x20run\x20started','kRIyC','Grid\x20profile\x20fetched\x20from\x20backend','qYEDN','YjQtb','description','kuqAP','Spawning\x20the\x20grid\x20','ViuGq','create-grid-checks-null-response','zjerR','RBIFc','GET','grid-profile','ENuHR','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','DQSDl','clusterName','xoZLV','hoGZV','user','\x27\x20grid\x20profile','nUIRh','https','gridProfile','msnaA','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','stack','xrYWH','KwEom','mrJLh','readFileSync','Grid\x20can\x20be\x20accessed\x20at:\x20','jrROE','zrYJa','YvDEB','Cluster:\x20','defaultGridProfile','iviOP','https://','grid-name','get-grid-url-null-response','pGtuV','MiBye','kyBAY','eZfDC','rAkEi','deleteCluster','WgAUC','UFtVT','GSCBJ','Cluster\x20','nkfDE','KNLNw','bPZSB','yrbQP','YfdRT','parse','AlkrF','maxNodes','ZDaKM','IUALx','BbrVf','private-ingress-nginx-controller','jNdSJ','HWwcZ','tKZvF','LbBuo','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','tCnXV','get-grid-url-non-200','FqeBS','QKjHm','readNamespacedService','uOTyw','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','UMhbr','bxFBA','8|5|7|6|2|0|1|3|4','xaJDh','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','CSssk','Creating\x20namespace','uBNMV','DkumJ','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','cloudProvider','non-aws-azure-cluster','epilogue','connectionTimeout','JbVsb','dmDvB','argv','OHsQL','reconnecting-websocket','206802RgchCI','mYLqP','/wd/hub','updateClusterAlreadyPresent','TVknx','help','peSlt','bxTxy','CLI\x20run\x20finished:\x20','fXqzL','dXThF','managedBy','CLI_RUN_STARTED','YqBoF','aVogi','MvXjN','edKUo','desc','Kpdlf','IfEGn','exit','<UsernamePlaceholder>','uWsEr','lToLT','2490nSXKKf','create','concurrency','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','SwaOc','\x20using\x20\x27','gQKVN','/packages/cli/get-grid-url?gridIdentifier=','Create\x20a\x20new\x20Automation\x20grid.','toLowerCase','ccWSr','vpc','bstackUsername','GRFKZ','fZiZV','VSXol','1525834unuqVy','pre-spawned-invalid-subnets','replace','iusGY','yjxQq','KGrjc','sendEventToBackend','CLI_RUN_FINISHED','cluster-name','bstyD','sPZwm','instanceType','isPrivateGrid','Found\x20Subnets:\x20','ingress-nginx','ReMFp','xCfiS','Rsvwm','command','FqSKS','Grid\x20spawned\x20on\x20the\x20cluster','LOG','createOtherResources','rtTpK','SkUWq','got','bXROZ','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Svtcw','uIGnC','xMRKJ','gPBEK','WebSocket','tUwTf','type','ptNQZ','xSgWo','wTenF','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','create-grid-checks-non-200','dXjmR','kqjlg','Subnets:\x20','stringify','bNTaf','VpCtz','\x20in\x20existing\x20cluster\x20\x27','bstackAccesskey','ORAbi','xVQjQ','tARWA','/packages/cli/create-grid-checks','ERROR','EsVOU','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','gugKy','IxgRX','XcrqA','prespawned-cluster-args-not-passed','isClusterPresent','fjHQv','setupAutoscaler','izYKj','JmgKJ','2703732wGdJIc','aneuG','ryvyJ','qXeZu','nJyAl','get-grid-url-auth-failed','minNodes','nacGf','split','pre-spawned-subnets-not-selected','dGuwY','SrxBH','delay','1iNmlAd','mbHdV','sYfIx','../../utils/instrumentationUtils','name','cIAGU','ncpNp','info','PmdaC','WrGJl','KbFSP','region','QVlZS','LTObL','DJzgL','namespace','cNFdx','message','body','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','route53','cBjOE','vqIyB','gridProfileId','RSMbh','yqZkr','boolean','../../config/constants','../../utils/webSocketUtils','sendResourceDataToHST','vyaws','../../utils/createk8sClient','984487nArlMR','oTIdc','password','UvIUc','1925385ooQFxr','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','username','14265OXMrBf','1172856wBEAFp','aQqMb','LgLqu','s3bucket','RoVmQ','skip-tls-cert-verify','newCluster'];a9_0x5993=function(){return _0x7f999;};return a9_0x5993();}(function(_0x37e84d,_0x5cb045){const _0x46de22=a9_0x4343,_0xe760fa=_0x37e84d();while(!![]){try{const _0x2f28b5=-parseInt(_0x46de22(0x147))/0x1*(parseInt(_0x46de22(0xfa))/0x2)+parseInt(_0x46de22(0xd1))/0x3*(parseInt(_0x46de22(0x1b0))/0x4)+parseInt(_0x46de22(0x16b))/0x5+-parseInt(_0x46de22(0x194))/0x6*(-parseInt(_0x46de22(0x167))/0x7)+parseInt(_0x46de22(0x16f))/0x8+parseInt(_0x46de22(0x16e))/0x9*(-parseInt(_0x46de22(0xe9))/0xa)+-parseInt(_0x46de22(0x1a5))/0xb*(-parseInt(_0x46de22(0x13a))/0xc);if(_0x2f28b5===_0x5cb045)break;else _0xe760fa['push'](_0xe760fa['shift']());}catch(_0x1c9d54){_0xe760fa['push'](_0xe760fa['shift']());}}}(a9_0x5993,0x6f61e));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x46b176(0xd0)),got=require(a9_0x46b176(0x113)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x46b176(0x163)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{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_0x46b176(0x162)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x46b176(0x166)),{sendInstrumentationEvent}=require(a9_0x46b176(0x14a));function a9_0x4343(_0x5d62d4,_0xd05cb9){const _0x599345=a9_0x5993();return a9_0x4343=function(_0x434381,_0x506ec5){_0x434381=_0x434381-0xaa;let _0x301d41=_0x599345[_0x434381];return _0x301d41;},a9_0x4343(_0x5d62d4,_0xd05cb9);}exports[a9_0x46b176(0x10c)]='grid',exports[a9_0x46b176(0xe2)]=a9_0x46b176(0xf2),exports['builder']=function(_0x433e4a){const _0xa9f93c=a9_0x46b176,_0x3b767d={};_0x3b767d[_0xa9f93c(0x1e9)]=_0xa9f93c(0x190),_0x3b767d['mbHdV']=_0xa9f93c(0x196),_0x3b767d[_0xa9f93c(0x1c7)]=_0xa9f93c(0x1b9),_0x3b767d[_0xa9f93c(0xf0)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x3b767d[_0xa9f93c(0x149)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3b767d[_0xa9f93c(0xdf)]=_0xa9f93c(0x18d),_0x3b767d[_0xa9f93c(0xd2)]=_0xa9f93c(0x1b8),_0x3b767d[_0xa9f93c(0x170)]=_0xa9f93c(0x1b4),_0x3b767d[_0xa9f93c(0x1ee)]='boolean',_0x3b767d['xELZy']=_0xa9f93c(0xd6);const _0x4ed0ed=_0x3b767d,_0x37a28e={};_0x37a28e[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0x1e9)],_0x37a28e[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x14f7d8={};_0x14f7d8['description']=_0x4ed0ed[_0xa9f93c(0x1c7)],_0x14f7d8['type']=_0x4ed0ed[_0xa9f93c(0x148)];const _0x158ff4={};_0x158ff4[_0xa9f93c(0x1c2)]=_0x4ed0ed['gQKVN'],_0x158ff4[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x634d7a={};_0x634d7a[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0x149)],_0x634d7a[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x592767={};_0x592767[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0xdf)],_0x592767[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x3c575a={};_0x3c575a[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0xd2)],_0x3c575a[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x31c9e9={};_0x31c9e9[_0xa9f93c(0x1c2)]=_0x4ed0ed['aQqMb'],_0x31c9e9[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x1ee)],_0x31c9e9[_0xa9f93c(0x1b5)]=![];const _0x12b946={};return _0x12b946[_0xa9f93c(0x1e6)]=_0x37a28e,_0x12b946[_0xa9f93c(0x1ca)]=_0x14f7d8,_0x12b946['cluster-name']=_0x158ff4,_0x12b946['cloud-provider']=_0x634d7a,_0x12b946[_0xa9f93c(0x152)]=_0x592767,_0x12b946[_0xa9f93c(0x1ad)]=_0x3c575a,_0x12b946[_0xa9f93c(0x174)]=_0x31c9e9,_0x433e4a[_0xa9f93c(0x19f)](HELP_HEADER_MESSAGE[_0xa9f93c(0xea)])[_0xa9f93c(0xca)](HELP_FOOTER_MESSAGE)[_0xa9f93c(0x198)](_0x12b946)[_0xa9f93c(0xd6)](_0x4ed0ed[_0xa9f93c(0x1ac)])[_0xa9f93c(0xce)];},exports['handler']=async function(_0x1e646d){const _0x1eb15a=a9_0x46b176,_0x4e9ab7={'izYKj':_0x1eb15a(0x197),'KNLNw':_0x1eb15a(0xc0),'XcrqA':_0x1eb15a(0x1bd),'xMRKJ':_0x1eb15a(0x1d4),'SxeEA':'warn','lToLT':function(_0x5cedd5,_0x1c034f){return _0x5cedd5===_0x1c034f;},'tCnXV':'http','XXnTA':_0x1eb15a(0x190),'CSssk':_0x1eb15a(0x196),'ptNQZ':_0x1eb15a(0x1b9),'qnVOn':_0x1eb15a(0x17c),'zFvCu':_0x1eb15a(0xed),'pJFXa':_0x1eb15a(0x18d),'TVknx':_0x1eb15a(0x1b8),'gugKy':_0x1eb15a(0x1b4),'PTqqi':_0x1eb15a(0x161),'dXjmR':_0x1eb15a(0xd6),'trSnM':_0x1eb15a(0x1b3),'ReMFp':function(_0x1f8c1c,_0x185f93){return _0x1f8c1c!==_0x185f93;},'ORAbi':function(_0x4bcdd3,_0x4986c3,_0x42b617,_0x2abaf2,_0x281793,_0x2cda48,_0x2f2a83,_0xb0c2db,_0x2c5fd0,_0x2a963d,_0x2c41b0,_0x2e8f5a){return _0x4bcdd3(_0x4986c3,_0x42b617,_0x2abaf2,_0x281793,_0x2cda48,_0x2f2a83,_0xb0c2db,_0x2c5fd0,_0x2a963d,_0x2c41b0,_0x2e8f5a);},'mNlnu':function(_0x2ce0dd){return _0x2ce0dd();},'qBdzU':function(_0x19d77b){return _0x19d77b();},'eZfDC':function(_0x37d901,_0x53ef35){return _0x37d901===_0x53ef35;},'xSgWo':_0x1eb15a(0xb0),'UnjVI':_0x1eb15a(0x16c),'pAgsJ':function(_0x322a72,_0x533e98,_0x168b4f,_0x230249,_0x3e423b,_0x119e54,_0x992db8){return _0x322a72(_0x533e98,_0x168b4f,_0x230249,_0x3e423b,_0x119e54,_0x992db8);},'UFtVT':'create-grid-called','EsVOU':_0x1eb15a(0x184),'NafWy':function(_0x44e546,_0x37ca19,_0x36d360,_0x15905e,_0x85e0dd,_0x4f2982,_0x160b1c){return _0x44e546(_0x37ca19,_0x36d360,_0x15905e,_0x85e0dd,_0x4f2982,_0x160b1c);},'vyaws':_0x1eb15a(0xe6),'mNOff':'<PasswordPlaceholder>','Dveph':'Adding\x20Websocket\x20listeners','YjQtb':'NpAnv','AwNFa':_0x1eb15a(0xbc),'tLDGV':_0x1eb15a(0x15a),'IfEGn':function(_0x5a0f5e,_0x1c7795,_0x32533b,_0x3a21ff,_0x988726,_0x52211f,_0xd93064,_0x4cc0da){return _0x5a0f5e(_0x1c7795,_0x32533b,_0x3a21ff,_0x988726,_0x52211f,_0xd93064,_0x4cc0da);},'sPZwm':_0x1eb15a(0x134),'ENuHR':function(_0x2d0c08,_0x2ff38b){return _0x2d0c08!==_0x2ff38b;},'cIAGU':_0x1eb15a(0x17f),'Kpdlf':'VNPMn','MPHat':_0x1eb15a(0x187),'KKAAR':_0x1eb15a(0xc9),'gPBEK':function(_0x424c8e,_0x325eff){return _0x424c8e===_0x325eff;},'hoGZV':'true','msnaA':_0x1eb15a(0x123),'NurFa':_0x1eb15a(0xb2),'KbFSP':function(_0x52268c,_0x18ce55,_0x31eee8,_0x19b6d1,_0x29189f,_0x53adfa,_0x4867ec){return _0x52268c(_0x18ce55,_0x31eee8,_0x19b6d1,_0x29189f,_0x53adfa,_0x4867ec);},'ryvyJ':_0x1eb15a(0x1a1),'ZDaKM':'kREUQ','jrROE':function(_0x4125a5,_0x2df749){return _0x4125a5!==_0x2df749;},'SrxBH':_0x1eb15a(0x111),'jPVXC':function(_0x24b213,_0x137628){return _0x24b213===_0x137628;},'VwDIZ':'FStst','HWwcZ':_0x1eb15a(0x157),'wTenF':_0x1eb15a(0x1c9),'bxFBA':function(_0x41c63c,_0x52b5c3,_0x799a54){return _0x41c63c(_0x52b5c3,_0x799a54);},'tARWA':_0x1eb15a(0xd7),'yWglq':_0x1eb15a(0x12b),'AlkrF':function(_0x48d9c0,_0xb306ed){return _0x48d9c0===_0xb306ed;},'KGrjc':function(_0x58259c,_0x4cce14){return _0x58259c===_0x4cce14;},'uWsEr':_0x1eb15a(0x116),'YfdRT':_0x1eb15a(0xaf),'ryqMU':_0x1eb15a(0xc2),'Vzevk':_0x1eb15a(0x1c6),'vqIyB':function(_0x23a8ce,_0x2f8cd7){return _0x23a8ce!==_0x2f8cd7;},'zbzfW':'EuIRv','dvwya':_0x1eb15a(0x1e8),'iusGY':_0x1eb15a(0x1d8),'FJXem':function(_0x2cd472,_0x4e903e,_0x1bb9d2,_0x1eccb7,_0x263ff7,_0x4d0291,_0x50d6aa,_0x2da04c){return _0x2cd472(_0x4e903e,_0x1bb9d2,_0x1eccb7,_0x263ff7,_0x4d0291,_0x50d6aa,_0x2da04c);},'Askyt':'create-grid-checks-auth-failed','DJzgL':function(_0x31f3bd,_0x4657ef){return _0x31f3bd!==_0x4657ef;},'xCfiS':_0x1eb15a(0xcf),'ccWSr':_0x1eb15a(0x114),'ViuGq':_0x1eb15a(0x121),'fZiZV':_0x1eb15a(0x1bf),'bNTaf':'EUoPx','ZFCzR':_0x1eb15a(0x150),'xrYWH':'create-grid-checks-grid-already-exists','fXqzL':function(_0x517267,_0x560d7f){return _0x517267===_0x560d7f;},'tUwTf':_0x1eb15a(0x13e),'EpKhD':_0x1eb15a(0x1db),'ACmFf':function(_0x51b6d6,_0x57b3e6){return _0x51b6d6===_0x57b3e6;},'yqZkr':function(_0x56c4b7,_0x48c8fc){return _0x56c4b7!==_0x48c8fc;},'xoZLV':_0x1eb15a(0x1c8),'JbVsb':function(_0x3ea28d,_0x56921c){return _0x3ea28d===_0x56921c;},'SkUWq':_0x1eb15a(0x1dc),'QVlZS':_0x1eb15a(0x1cc),'nacGf':function(_0x2bf68e,_0x17ddc7,_0x34086e,_0x50b77b,_0x2ea1b8,_0x5f43e9,_0x57c569,_0x5c1f82){return _0x2bf68e(_0x17ddc7,_0x34086e,_0x50b77b,_0x2ea1b8,_0x5f43e9,_0x57c569,_0x5c1f82);},'VSXol':'create-grid-checks-invalid-profile','fjHQv':function(_0x54f245,_0x32bb2f){return _0x54f245!==_0x32bb2f;},'uIGnC':'DCYCo','MvXjN':function(_0x1e2703,_0x46b7f7){return _0x1e2703===_0x46b7f7;},'edKUo':function(_0x5e9aed,_0xb64ace){return _0x5e9aed!==_0xb64ace;},'IkphZ':'WqdOU','DQSDl':_0x1eb15a(0x18a),'bPZSB':function(_0x50bf76,_0x138997){return _0x50bf76!==_0x138997;},'uBNMV':function(_0x10a000,_0x595b48){return _0x10a000!==_0x595b48;},'VtOVx':_0x1eb15a(0x18e),'dGuwY':function(_0x44a596,_0x3c8018){return _0x44a596===_0x3c8018;},'RSMbh':_0x1eb15a(0x19e),'uIEYT':_0x1eb15a(0x14d),'nUIRh':function(_0x1dbeb6,_0x51dd73){return _0x1dbeb6!==_0x51dd73;},'wWcnG':_0x1eb15a(0x10d),'OVnmh':function(_0x2b509,_0xe86290,_0xecc365,_0x221b67,_0x33e399,_0x3865d0,_0x4d5b7f,_0x266f26,_0x4d89b2,_0x361719,_0x1e51c6,_0x25a3ea){return _0x2b509(_0xe86290,_0xecc365,_0x221b67,_0x33e399,_0x3865d0,_0x4d5b7f,_0x266f26,_0x4d89b2,_0x361719,_0x1e51c6,_0x25a3ea);},'cBjOE':'axfPa','bLsIE':_0x1eb15a(0x188),'GaASA':'6|5|8|0|3|1|2|7|4','oTIdc':function(_0x306d28,_0x30bf8f,_0x53533e,_0x3c460b,_0x29a9ea,_0xb63c6a,_0x3db6fb){return _0x306d28(_0x30bf8f,_0x53533e,_0x3c460b,_0x29a9ea,_0xb63c6a,_0x3db6fb);},'yrbQP':function(_0x4ce4f0,_0x39883f){return _0x4ce4f0===_0x39883f;},'dXThF':_0x1eb15a(0x1d7),'FqeBS':function(_0x40fbe0,_0x286158){return _0x40fbe0!=_0x286158;},'qXeZu':function(_0x42208f,_0x4131ee){return _0x42208f!=_0x4131ee;},'wGCms':function(_0x55abd8,_0x5e8314){return _0x55abd8>_0x5e8314;},'LTObL':_0x1eb15a(0x115),'rAkEi':function(_0x3c0689,_0x41c78,_0x37c2b2,_0x32bc5c,_0x5c4c4f,_0x18ac92,_0x785f25,_0x4b29be){return _0x3c0689(_0x41c78,_0x37c2b2,_0x32bc5c,_0x5c4c4f,_0x18ac92,_0x785f25,_0x4b29be);},'pgbED':_0x1eb15a(0x143),'Rsvwm':function(_0x472fe3,_0x33ab69){return _0x472fe3===_0x33ab69;},'yjxQq':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','cZNav':function(_0x45a563,_0x255e34,_0x23487e,_0x1447b7,_0x984e8,_0x3cb17f,_0x5d0d97,_0x286401){return _0x45a563(_0x255e34,_0x23487e,_0x1447b7,_0x984e8,_0x3cb17f,_0x5d0d97,_0x286401);},'uBdIs':'pre-spawned-invalid-vpc','iviOP':function(_0x1e254a,_0x335b36){return _0x1e254a===_0x335b36;},'tKZvF':function(_0x4b96b3,_0x43be1f,_0x4ac4b5,_0x507298,_0xfb9ce4,_0x2085f7,_0x561ad4,_0x14a587){return _0x4b96b3(_0x43be1f,_0x4ac4b5,_0x507298,_0xfb9ce4,_0x2085f7,_0x561ad4,_0x14a587);},'kuqAP':_0x1eb15a(0xfb),'DkumJ':'3|2|1|0|4','JmgKJ':'Cluster\x20created\x20successfully','NWHOQ':'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.','cIzRZ':function(_0xdaeb6c,_0x3e04b7,_0x14ff55){return _0xdaeb6c(_0x3e04b7,_0x14ff55);},'UMhbr':function(_0x79aca,_0x42e9a5){return _0x79aca===_0x42e9a5;},'VpCtz':function(_0x16636c,_0xde38e6){return _0x16636c(_0xde38e6);},'RoVmQ':_0x1eb15a(0xc4),'xaJDh':function(_0x6aa91e,_0x2694cb){return _0x6aa91e!==_0x2694cb;},'GSCBJ':_0x1eb15a(0x1b5),'GRFKZ':_0x1eb15a(0x1a0),'UvIUc':'Namespace\x20Created','QKjHm':_0x1eb15a(0x1ba),'LbBuo':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','WJEEq':'Spawning\x20Grid\x20on\x20the\x20Cluster','eqrvh':function(_0x28bcdd,_0x48c217){return _0x28bcdd===_0x48c217;},'YqBoF':function(_0x47bb2c,_0x1e50d2,_0x33cd92,_0x477648,_0x5eef2b,_0x37f97c,_0xee304d,_0x34cdae,_0x486ffa,_0x575c80,_0x11b13a){return _0x47bb2c(_0x1e50d2,_0x33cd92,_0x477648,_0x5eef2b,_0x37f97c,_0xee304d,_0x34cdae,_0x486ffa,_0x575c80,_0x11b13a);},'bstyD':_0x1eb15a(0x10e),'IxgRX':_0x1eb15a(0xbd),'kRIyC':function(_0x1cf01d,_0x56cc12,_0x7f779e,_0x473325,_0x17c88e){return _0x1cf01d(_0x56cc12,_0x7f779e,_0x473325,_0x17c88e);},'zrYJa':_0x1eb15a(0xb1),'TPNEx':'ingress-nginx-controller','PmdaC':_0x1eb15a(0x108),'YvDEB':function(_0x5b5dce,_0x4c80e7){return _0x5b5dce===_0x4c80e7;},'EiApa':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','EXcCh':function(_0x23d03c,_0x55fe0e,_0x85444a,_0x580aed,_0x1ac88e,_0x557ea7,_0xe55cef,_0x408513){return _0x23d03c(_0x55fe0e,_0x85444a,_0x580aed,_0x1ac88e,_0x557ea7,_0xe55cef,_0x408513);},'bxTxy':_0x1eb15a(0x1e7),'qYEDN':_0x1eb15a(0x130),'coLvU':function(_0x3035c8,_0x4bc7a5,_0x46d677,_0x23274d,_0x54a151,_0x27baa4,_0x37bc9a,_0x52ab98){return _0x3035c8(_0x4bc7a5,_0x46d677,_0x23274d,_0x54a151,_0x27baa4,_0x37bc9a,_0x52ab98);},'aneuG':_0x1eb15a(0x13f),'kyBAY':function(_0x222f10,_0x4d5ced){return _0x222f10!==_0x4d5ced;},'dmDvB':_0x1eb15a(0xb8),'SwaOc':_0x1eb15a(0x18f),'LgLqu':function(_0x513ea9,_0x1ff089,_0x51c4ce,_0x9c3055,_0x5ba9a0,_0x27d1a0){return _0x513ea9(_0x1ff089,_0x51c4ce,_0x9c3055,_0x5ba9a0,_0x27d1a0);},'ISzzb':function(_0x499116,_0x480b67,_0x1f63e9,_0x18cb29,_0x4c8b49,_0x3d8e4c,_0x202e16){return _0x499116(_0x480b67,_0x1f63e9,_0x18cb29,_0x4c8b49,_0x3d8e4c,_0x202e16);},'nkfDE':'grid-spawning-failed'};let _0x38d54d=![],_0x30ca7b=![],_0x45da56,_0x1fbbfb,_0x4dd671,_0x386c66,_0x445eb4,_0x3b30c0,_0x3c7e12,_0xd6f39,_0x12d00d,_0x6e7eae,_0x3dea52,_0x502ccc,_0x3da2f5,_0xbef3c2,_0x5c251e=0x1,_0x4d9d6b=0xe;try{global_registry['requestId']=_0x4e9ab7[_0x1eb15a(0x1bb)](uuidv4),global_registry[_0x1eb15a(0x106)]=![];!fs['existsSync'](_0x4e9ab7[_0x1eb15a(0x179)](getCredentialsPath))&&(_0x4e9ab7['eZfDC'](_0x4e9ab7[_0x1eb15a(0x11e)],_0x4e9ab7[_0x1eb15a(0x11e)])?(console[_0x1eb15a(0x197)](_0x4e9ab7['UnjVI']),await _0x4e9ab7[_0x1eb15a(0x185)](sendInstrumentationEvent,_0x1e646d,_0x4e9ab7[_0x1eb15a(0x1ef)],messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x12f)],null,_0x1e646d),process['exit'](0x1)):_0x381634[_0x1eb15a(0x106)]=!![]);await _0x4e9ab7['NafWy'](sendInstrumentationEvent,_0x1e646d,_0x4e9ab7[_0x1eb15a(0x1ef)],messageTypes[_0x1eb15a(0x17b)],null,null,_0x1e646d);const _0x28cd26=JSON[_0x1eb15a(0xab)](fs[_0x1eb15a(0x1dd)](_0x4e9ab7[_0x1eb15a(0x1bb)](getCredentialsPath)));global_registry[_0x1eb15a(0xf6)]=_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x16d)],global_registry[_0x1eb15a(0x129)]=_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x169)];const _0x2609d9=WS_ENDPOINT[_0x1eb15a(0xfc)](_0x4e9ab7[_0x1eb15a(0x165)],_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x16d)])[_0x1eb15a(0xfc)](_0x4e9ab7[_0x1eb15a(0x186)],_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x169)]),_0x33c6a1={};_0x33c6a1[_0x1eb15a(0x11a)]=ws,_0x33c6a1[_0x1eb15a(0xcb)]=0x36ee80,_0x502ccc=new ReconnectingWebSocket(_0x2609d9,[],_0x33c6a1),logger['debug'](_0x4e9ab7['Dveph']),webSocketUtils['addListeners'](_0x502ccc,_0x1e646d[_0x1eb15a(0x1d1)],_0x1e646d[_0x1eb15a(0x169)]);const _0x421e22=_0x1e646d['gridName']||DEFAULT_GRID_NAME;if(_0x1e646d[_0x1eb15a(0x1ce)]||_0x1e646d[_0x1eb15a(0xc8)]||_0x1e646d['region']){if(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0x1c1)],_0x4e9ab7[_0x1eb15a(0x1c1)]))_0x213004[_0x1eb15a(0x14e)](_0x1eb15a(0x107)+_0x10da4b[_0x1eb15a(0x125)](_0x41c6b2)+'\x20');else{if(!(_0x1e646d[_0x1eb15a(0x1ce)]&&_0x1e646d[_0x1eb15a(0xc8)]&&_0x1e646d[_0x1eb15a(0x152)])){if(_0x4e9ab7[_0x1eb15a(0x1eb)](_0x4e9ab7[_0x1eb15a(0x19d)],_0x4e9ab7['AwNFa']))_0x45da56=_0x4e9ab7['tLDGV'],await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x104)],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1);else throw new _0x237944(_0x1eb15a(0x1f1)+_0x47f49f+_0x1eb15a(0x120));}![AWS,AZURE,GCP]['includes'](_0x1e646d[_0x1eb15a(0xc8)]['toLowerCase']())&&(_0x4e9ab7[_0x1eb15a(0x1cb)](_0x4e9ab7[_0x1eb15a(0x14c)],_0x4e9ab7[_0x1eb15a(0xe3)])?(_0x45da56=_0x4e9ab7['MPHat'],await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7['KKAAR'],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):(_0x4d22c5[_0x1eb15a(0x14e)](_0x1eb15a(0x1e2)+_0x552a96[_0x1eb15a(0x1ce)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x1c0f45=![],_0x201f26=!![]));_0x1e646d[_0x1eb15a(0x181)]&&_0x4e9ab7[_0x1eb15a(0x119)](_0x1e646d[_0x1eb15a(0x181)][_0x1eb15a(0xf3)](),_0x4e9ab7[_0x1eb15a(0x1d0)])&&(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0x1d6)],_0x4e9ab7['NurFa'])?global_registry[_0x1eb15a(0x106)]=!![]:_0x4282f0['isPrivateGrid']=!![]);global_registry[_0x1eb15a(0xc8)]=_0x1e646d['cloudProvider'],global_registry['clusterRegion']=_0x1e646d['region'],global_registry[_0x1eb15a(0x1ce)]=_0x1e646d[_0x1eb15a(0x1ce)];const _0x4f084a=await _0x4e9ab7[_0x1eb15a(0x151)](getCloudProviderObject,_0x1e646d[_0x1eb15a(0xc8)],_0x1e646d['clusterName'],_0x421e22,_0x502ccc,webSocketUtils,_0x1e646d),_0x65da63=await _0x4f084a[_0x1eb15a(0x135)]();if(!_0x65da63)_0x4e9ab7['ReMFp'](_0x4e9ab7[_0x1eb15a(0x13c)],_0x4e9ab7[_0x1eb15a(0xae)])?(logger[_0x1eb15a(0x14e)](_0x1eb15a(0x1e2)+_0x1e646d['clusterName']+_0x1eb15a(0x178)),_0x38d54d=![],_0x30ca7b=!![]):_0x19b043=_0x31604b[_0x22e799['gridProfile']];else{if(_0x4e9ab7[_0x1eb15a(0x1df)](_0x4e9ab7[_0x1eb15a(0x145)],_0x4e9ab7[_0x1eb15a(0x145)])){const _0x2e3670={};_0x2e3670[_0x1eb15a(0x11c)]=_0x4e0ac5[_0x1eb15a(0x10f)],_0x2e3670[_0x1eb15a(0x158)]=_0x49adc4,_0x456201['sendEventToBackend'](_0x13964a,_0x2e3670,_0x4e9ab7[_0x1eb15a(0x138)],!![]);}else _0x38d54d=!![];}_0x4dd671=_0x1e646d['clusterName'],_0x1fbbfb=_0x1e646d['cloudProvider'][_0x1eb15a(0xf3)](),_0x386c66=_0x1e646d[_0x1eb15a(0x152)];}}else _0x1e646d[_0x1eb15a(0x1d5)]&&(_0x4e9ab7[_0x1eb15a(0x18c)](_0x4e9ab7[_0x1eb15a(0x17a)],_0x4e9ab7[_0x1eb15a(0xb3)])?_0x4351d9=null:global_registry[_0x1eb15a(0x1d5)]=_0x1e646d[_0x1eb15a(0x1d5)]);global_registry[_0x1eb15a(0x189)]=_0x1e646d['gridName'];const _0x28b9b4={'method':_0x4e9ab7[_0x1eb15a(0x11f)],'headers':_0x4e9ab7[_0x1eb15a(0xbf)](getAuthHeader,_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x16d)],_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x169)]),'throwHttpErrors':![]},_0x2a9c10={};_0x2a9c10['gridName']=_0x421e22;const _0x59ff85=_0x2a9c10;if(_0x30ca7b){if(_0x4e9ab7[_0x1eb15a(0x119)](_0x4e9ab7[_0x1eb15a(0x12c)],_0x4e9ab7[_0x1eb15a(0x1b1)])){const _0x45babd=_0x4e9ab7[_0x1eb15a(0x1f3)]['split']('|');let _0x3ef62d=0x0;while(!![]){switch(_0x45babd[_0x3ef62d++]){case'0':_0x4e3828['clusterRegion']=_0x9f0458;continue;case'1':_0xd7088c[_0x1eb15a(0x1ce)]=_0x44f5ee;continue;case'2':_0x5efaf0[_0x1eb15a(0xc8)]=_0x4b9e57;continue;case'3':_0x59877f[_0x1eb15a(0x1a8)]=_0x20917d['hubVersion'];continue;case'4':_0x27a07e['browserVersion']=_0xdfa615['browserVersion'];continue;case'5':_0x4ad48b=_0x1eb15a(0x1c4)+_0x585e09+_0x1eb15a(0x128)+_0x5f413f+'\x27';continue;case'6':const _0x418aa4={};_0x418aa4[_0x1eb15a(0x11c)]=_0x4558a4[_0x1eb15a(0x10f)],_0x418aa4[_0x1eb15a(0x158)]=_0x18e42b,_0x3107ff['sendEventToBackend'](_0x41f2aa,_0x418aa4);continue;case'7':_0x52156c[_0x1eb15a(0x14e)](_0x4aec24);continue;case'8':const _0x12fec0={};_0x12fec0[_0x1eb15a(0x11c)]=_0x2b5905[_0x1eb15a(0xdd)],_0x12fec0[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x133)],_0x36a461[_0x1eb15a(0x100)](_0x194477,_0x12fec0);continue;}break;}}else _0x59ff85['region']=_0x386c66,_0x59ff85[_0x1eb15a(0xc8)]=_0x1fbbfb,_0x59ff85['newCluster']=!![];}const _0x6c45bd='https://'+AG_API_URL+_0x1eb15a(0x12d),_0x2cf8e4={'searchParams':_0x59ff85,'throwHttpErrors':![],..._0x28b9b4},_0x53e889=_0x2cf8e4,_0x260988=await _0x4e9ab7[_0x1eb15a(0xbf)](got,_0x6c45bd,_0x53e889);(_0x4e9ab7[_0x1eb15a(0xac)](_0x260988,null)||_0x4e9ab7[_0x1eb15a(0xff)](_0x260988,undefined))&&(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0xe7)],_0x4e9ab7[_0x1eb15a(0xaa)])?(_0x45da56=_0x4e9ab7['ryqMU'],await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7['Vzevk'],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):(_0x2bb132=_0x46d7ec[_0x1eb15a(0x15b)],_0x305e4a=_0x4e9ab7[_0x1eb15a(0x118)]));_0x4e9ab7[_0x1eb15a(0x1eb)](_0x260988[_0x1eb15a(0x1ae)],0x191)&&(_0x4e9ab7[_0x1eb15a(0x15d)](_0x4e9ab7['zbzfW'],_0x4e9ab7['dvwya'])?(_0x45da56=_0x4e9ab7[_0x1eb15a(0xfd)],await _0x4e9ab7[_0x1eb15a(0x1ab)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7['Askyt'],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process['exit'](0x1)):_0x470165=null);if(_0x4e9ab7[_0x1eb15a(0x155)](_0x260988['statusCode'],0xc8)){if(_0x4e9ab7[_0x1eb15a(0x119)](_0x4e9ab7[_0x1eb15a(0x10a)],_0x4e9ab7[_0x1eb15a(0xf4)])){const _0x572a49={};_0x572a49[_0x1eb15a(0x11c)]=_0x92c68d[_0x1eb15a(0x10f)],_0x572a49['message']='Cluster\x20'+_0x8462bd+_0x1eb15a(0x1aa),_0x368ef6[_0x1eb15a(0x100)](_0x200059,_0x572a49,_0x4e9ab7[_0x1eb15a(0x1bc)]),_0x4cb63d[_0x1eb15a(0x14e)]('Cluster\x20'+_0x3ddf02+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0xa93c64=!![];if(_0x4e9ab7[_0x1eb15a(0xe8)](_0xdd030,!![]))throw new _0x3a16c5(_0x1eb15a(0x1f1)+_0x12d07a+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}else _0x45da56='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x1eb15a(0x125)](_0x260988[_0x1eb15a(0x159)]),await _0x4e9ab7[_0x1eb15a(0x1ab)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x1c5)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process[_0x1eb15a(0xe5)](0x1);}const _0x5c6778=JSON[_0x1eb15a(0xab)](_0x260988[_0x1eb15a(0x159)]),_0x125bb5={};_0x125bb5[_0x1eb15a(0x11c)]=WS_EVENTS['CLI_RUN_STARTED'],_0x125bb5[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x133)],webSocketUtils['sendEventToBackend'](_0x502ccc,_0x125bb5);const _0xbc9e88={};_0xbc9e88[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0xbc9e88[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0xf8)],webSocketUtils['sendEventToBackend'](_0x502ccc,_0xbc9e88);_0x5c6778[_0x1eb15a(0x1b7)]&&(_0x4e9ab7['ENuHR'](_0x4e9ab7[_0x1eb15a(0x126)],_0x4e9ab7['ZFCzR'])?(_0x45da56='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x421e22+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x1da)],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):_0x469481=_0x4e9ab7['tCnXV']);const _0x2e3ed0=_0x5c6778['gridProfiles'];let _0x204fb5=_0x2e3ed0[_0x5c6778[_0x1eb15a(0x1e3)]];if(_0x1e646d[_0x1eb15a(0x1d5)]){if(_0x4e9ab7['fXqzL'](_0x4e9ab7[_0x1eb15a(0x11b)],_0x4e9ab7['EpKhD'])){const _0x3ce5fe={};_0x3ce5fe[_0x1eb15a(0x1c2)]=_0x4e9ab7['XXnTA'],_0x3ce5fe[_0x1eb15a(0x11c)]=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x5f181b={};_0x5f181b[_0x1eb15a(0x1c2)]=_0x4e9ab7[_0x1eb15a(0x11d)],_0x5f181b[_0x1eb15a(0x11c)]=_0x4e9ab7['CSssk'];const _0x4a7915={};_0x4a7915[_0x1eb15a(0x1c2)]=_0x4e9ab7['qnVOn'],_0x4a7915[_0x1eb15a(0x11c)]=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x176bbf={};_0x176bbf[_0x1eb15a(0x1c2)]=_0x4e9ab7['zFvCu'],_0x176bbf[_0x1eb15a(0x11c)]=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x8c4f96={};_0x8c4f96['description']=_0x4e9ab7['pJFXa'],_0x8c4f96['type']=_0x4e9ab7['CSssk'];const _0x47df57={};_0x47df57[_0x1eb15a(0x1c2)]=_0x4e9ab7[_0x1eb15a(0xd5)],_0x47df57['type']=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x2fc92c={};_0x2fc92c[_0x1eb15a(0x1c2)]=_0x4e9ab7[_0x1eb15a(0x131)],_0x2fc92c[_0x1eb15a(0x11c)]=_0x4e9ab7['PTqqi'],_0x2fc92c[_0x1eb15a(0x1b5)]=![];const _0x2d0b3a={};return _0x2d0b3a['grid-name']=_0x3ce5fe,_0x2d0b3a[_0x1eb15a(0x1ca)]=_0x5f181b,_0x2d0b3a[_0x1eb15a(0x102)]=_0x4a7915,_0x2d0b3a['cloud-provider']=_0x176bbf,_0x2d0b3a[_0x1eb15a(0x152)]=_0x8c4f96,_0x2d0b3a['private-grid']=_0x47df57,_0x2d0b3a[_0x1eb15a(0x174)]=_0x2fc92c,_0x2a5c80[_0x1eb15a(0x19f)](_0x4dbd8d[_0x1eb15a(0xea)])[_0x1eb15a(0xca)](_0x2a52d1)[_0x1eb15a(0x198)](_0x2d0b3a)[_0x1eb15a(0xd6)](_0x4e9ab7[_0x1eb15a(0x122)])[_0x1eb15a(0xce)];}else _0x204fb5=_0x2e3ed0[_0x1e646d['gridProfile']];}if(_0x4e9ab7[_0x1eb15a(0x1eb)](_0x38d54d,![])&&_0x4e9ab7[_0x1eb15a(0x176)](_0x30ca7b,![])){if(_0x4e9ab7[_0x1eb15a(0x160)](_0x4e9ab7[_0x1eb15a(0x1cf)],_0x4e9ab7['xoZLV']))_0x14952e[_0x1eb15a(0x152)]=_0x456bff,_0x46c45a['cloudProvider']=_0xbfed4f,_0x101cfb[_0x1eb15a(0x175)]=!![];else{_0x4e9ab7[_0x1eb15a(0xcc)](_0x204fb5,undefined)&&(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0x112)],_0x4e9ab7[_0x1eb15a(0x112)])?_0x566453[_0x1eb15a(0x106)]=!![]:(_0x45da56=_0x4e9ab7[_0x1eb15a(0x153)],await _0x4e9ab7[_0x1eb15a(0x141)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7[_0x1eb15a(0xf9)],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1)));global_registry[_0x1eb15a(0x15e)]=_0x204fb5['id'],_0x45da56='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x421e22+_0x1eb15a(0xef)+_0x204fb5[_0x1eb15a(0x14b)]+_0x1eb15a(0x1d2),logger[_0x1eb15a(0x14e)](_0x45da56);const _0x12cd1c={};_0x12cd1c[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x12cd1c[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x12cd1c),_0x1fbbfb=_0x204fb5[_0x1eb15a(0xc8)],_0x4dd671=_0x204fb5[_0x1eb15a(0x1ce)],_0x386c66=_0x204fb5[_0x1eb15a(0x152)],_0x445eb4=_0x204fb5['concurrency'],_0x3b30c0=_0x204fb5[_0x1eb15a(0x105)],_0x3c7e12=_0x204fb5[_0x1eb15a(0xf5)],_0xd6f39=_0x204fb5['securityGroups'],_0x12d00d=_0x204fb5[_0x1eb15a(0x199)],_0x6e7eae=_0x204fb5['s3bucket'],_0x5c251e=_0x204fb5[_0x1eb15a(0x140)],_0x4d9d6b=_0x204fb5[_0x1eb15a(0xad)],_0x3da2f5=_0x5c6778[_0x1eb15a(0x1a8)],_0xbef3c2=_0x5c6778[_0x1eb15a(0x1a6)],_0x3c7e12&&_0x4e9ab7[_0x1eb15a(0xff)](_0x3c7e12[_0x1eb15a(0x1af)],0x0)&&(_0x4e9ab7[_0x1eb15a(0x136)](_0x4e9ab7['uIGnC'],_0x4e9ab7[_0x1eb15a(0x117)])?_0x545223['info']('Found\x20VPC:\x20'+_0x19abb6+'\x20'):_0x3c7e12=null),_0x12d00d&&_0x4e9ab7['MvXjN'](_0x12d00d['length'],0x0)&&(_0x4e9ab7[_0x1eb15a(0xe1)](_0x4e9ab7['IkphZ'],_0x4e9ab7[_0x1eb15a(0x1cd)])?_0x12d00d=null:_0x2abf26=!![]),_0x4e9ab7[_0x1eb15a(0x1f4)](_0x204fb5[_0x1eb15a(0x181)],undefined)&&_0x204fb5[_0x1eb15a(0x181)]&&(_0x4e9ab7[_0x1eb15a(0xc5)](_0x4e9ab7[_0x1eb15a(0x1a2)],_0x4e9ab7[_0x1eb15a(0x1a2)])?_0xe6d78d[_0x1eb15a(0x164)]():global_registry[_0x1eb15a(0x106)]=!![]),_0x4e9ab7[_0x1eb15a(0x12a)](updateGlobalRegistryWithConfig,_0x1fbbfb,_0x4dd671,_0x386c66,_0x445eb4,_0x3b30c0,_0x6e7eae,_0x204fb5,_0x3da2f5,_0xbef3c2,_0x5c251e,_0x4d9d6b);}}else{if(_0x4e9ab7[_0x1eb15a(0xff)](_0x30ca7b,!![])){if(_0x4e9ab7[_0x1eb15a(0x144)](_0x4e9ab7[_0x1eb15a(0x15f)],_0x4e9ab7['uIEYT']))_0x20832a['gridProfile']=_0x5a2a37[_0x1eb15a(0x1d5)];else{_0x45da56=_0x1eb15a(0xb6)+_0x421e22,logger['info'](_0x45da56);const _0x1455a3={};_0x1455a3['type']=WS_EVENTS[_0x1eb15a(0x10f)],_0x1455a3['message']=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x1455a3),_0x445eb4=_0x204fb5['concurrency'],_0x3b30c0=_0x204fb5[_0x1eb15a(0x105)],_0x3c7e12=null,_0xd6f39=null,_0x12d00d=null,_0x6e7eae=_0x204fb5[_0x1eb15a(0x172)],_0x5c251e=_0x204fb5[_0x1eb15a(0x140)],_0x4d9d6b=_0x204fb5[_0x1eb15a(0xad)],_0x3da2f5=_0x5c6778[_0x1eb15a(0x1a8)],_0xbef3c2=_0x5c6778[_0x1eb15a(0x1a6)],_0x4e9ab7[_0x1eb15a(0x136)](_0x204fb5[_0x1eb15a(0x181)],undefined)&&_0x204fb5[_0x1eb15a(0x181)]&&(_0x4e9ab7['nUIRh'](_0x4e9ab7['wWcnG'],_0x4e9ab7['wWcnG'])?_0x4d1bd1[_0x1eb15a(0x197)](_0x1eb15a(0x1a3)+_0x5e7ff9+'\x20\x0a'+_0x228bac['stringify'](_0x49043a[_0x1eb15a(0x1d9)])):global_registry[_0x1eb15a(0x106)]=!![]),_0x4e9ab7[_0x1eb15a(0x177)](updateGlobalRegistryWithConfig,_0x1fbbfb,_0x4dd671,_0x386c66,_0x445eb4,_0x3b30c0,_0x6e7eae,_0x204fb5,_0x3da2f5,_0xbef3c2,_0x5c251e,_0x4d9d6b);}}else{if(_0x4e9ab7[_0x1eb15a(0xe8)](_0x4e9ab7[_0x1eb15a(0x15c)],_0x4e9ab7['bLsIE'])){const _0xf3cab2=_0x4e9ab7['trSnM']['split']('|');let _0x11bf7b=0x0;while(!![]){switch(_0xf3cab2[_0x11bf7b++]){case'0':_0x1e4f5b=_0x169fb7[_0x1eb15a(0x1a6)];continue;case'1':_0x32c880['info'](_0x32e804);continue;case'2':_0x5f1a47=_0x1eb15a(0xb6)+_0x5a30d6;continue;case'3':const _0x4843cc={};_0x4843cc[_0x1eb15a(0x11c)]=_0x366e11[_0x1eb15a(0x10f)],_0x4843cc[_0x1eb15a(0x158)]=_0x335a08,_0x362884[_0x1eb15a(0x100)](_0x1b3a58,_0x4843cc);continue;case'4':_0x51a51e=_0x2d225e[_0x1eb15a(0xeb)];continue;case'5':_0x176dbf=_0x5bd08c[_0x1eb15a(0x105)];continue;case'6':_0x4e9ab7[_0x1eb15a(0x109)](_0xe37171[_0x1eb15a(0x181)],_0x18d905)&&_0x899bbc[_0x1eb15a(0x181)]&&(_0x20fc7a[_0x1eb15a(0x106)]=!![]);continue;case'7':_0x4e9ab7[_0x1eb15a(0x12a)](_0x4a333c,_0x3f7dae,_0x5cfd14,_0x2ab831,_0xb0717,_0x53a783,_0x6248de,_0x4adbcb,_0x510d52,_0x1886aa,_0xee38f3,_0x101592);continue;case'8':_0x281635=null;continue;case'9':_0xd4ede2=_0x4149f6[_0x1eb15a(0xad)];continue;case'10':_0x4b828c=null;continue;case'11':_0x2073c6=_0x2ecc3b[_0x1eb15a(0x1a8)];continue;case'12':_0x36e633=null;continue;case'13':_0x527bfe=_0x4518f5[_0x1eb15a(0x172)];continue;case'14':_0xb156a3=_0x1ac28c[_0x1eb15a(0x140)];continue;}break;}}else{const _0x5a9beb=_0x4e9ab7['GaASA'][_0x1eb15a(0x142)]('|');let _0x722407=0x0;while(!![]){switch(_0x5a9beb[_0x722407++]){case'0':const _0x621f92={};_0x621f92[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x621f92[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x621f92);continue;case'1':global_registry[_0x1eb15a(0x17e)]=_0x386c66;continue;case'2':global_registry[_0x1eb15a(0x1ce)]=_0x4dd671;continue;case'3':global_registry[_0x1eb15a(0xc8)]=_0x1fbbfb;continue;case'4':global_registry['browserVersion']=_0x5c6778['browserVersion'];continue;case'5':_0x45da56=_0x1eb15a(0x1c4)+_0x421e22+_0x1eb15a(0x128)+_0x4dd671+'\x27';continue;case'6':const _0x7df28={};_0x7df28[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0xdd)],_0x7df28[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x133)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x7df28);continue;case'7':global_registry[_0x1eb15a(0x1a8)]=_0x5c6778[_0x1eb15a(0x1a8)];continue;case'8':logger[_0x1eb15a(0x14e)](_0x45da56);continue;}break;}}}}const _0x136799=await _0x4e9ab7[_0x1eb15a(0x168)](getCloudProviderObject,_0x1fbbfb,_0x4dd671,_0x421e22,_0x502ccc,webSocketUtils,_0x1e646d);_0x4e9ab7[_0x1eb15a(0x1df)](_0x1fbbfb,AZURE)&&_0x136799[_0x1eb15a(0x164)]();let _0x4b92b;if(_0x4e9ab7[_0x1eb15a(0xda)](_0x38d54d,![])){_0x45da56=_0x1eb15a(0xc7)+_0x386c66+').';const _0xcfcbe9={};_0xcfcbe9[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0xcfcbe9[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils['sendEventToBackend'](_0x502ccc,_0xcfcbe9),logger[_0x1eb15a(0x14e)](_0x45da56);const _0x523fa6=await _0x136799[_0x1eb15a(0x135)]();if(_0x523fa6){const _0x1f41eb={};_0x1f41eb[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x1f41eb[_0x1eb15a(0x158)]='Cluster\x20'+_0x4dd671+_0x1eb15a(0x1aa),webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x1f41eb,_0x4e9ab7[_0x1eb15a(0x1bc)]),logger['info'](_0x1eb15a(0x1f1)+_0x4dd671+_0x1eb15a(0x1aa)),_0x38d54d=!![];if(_0x4e9ab7[_0x1eb15a(0x1f5)](_0x30ca7b,!![]))throw new Error('Cluster\x20'+_0x4dd671+_0x1eb15a(0x120));}else{const _0x3ba1b5={};_0x3ba1b5[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x3ba1b5['message']=_0x4e9ab7[_0x1eb15a(0xdb)],webSocketUtils['sendEventToBackend'](_0x502ccc,_0x3ba1b5),logger['info'](_0x4e9ab7['dXThF']);const _0xad6cd9=_0x4e9ab7[_0x1eb15a(0xb9)](_0x3c7e12,null)&&_0x4e9ab7['edKUo'](_0x3c7e12,undefined),_0x2b643e=_0x4e9ab7[_0x1eb15a(0x13d)](_0x12d00d,null)&&_0x4e9ab7[_0x1eb15a(0x1d3)](_0x12d00d,undefined)&&_0x4e9ab7['wGCms'](_0x12d00d[_0x1eb15a(0x1af)],0x0);if(_0xad6cd9){_0x4e9ab7[_0x1eb15a(0xac)](_0x2b643e,![])&&(_0x45da56=_0x4e9ab7[_0x1eb15a(0x154)],await _0x4e9ab7[_0x1eb15a(0x1ec)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7[_0x1eb15a(0x180)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process['exit'](0x1));const _0x458804=await _0x136799['isVPCPresent'](_0x3c7e12);_0x4e9ab7[_0x1eb15a(0x10b)](_0x458804,![])?(_0x45da56=_0x4e9ab7[_0x1eb15a(0xfe)],await _0x4e9ab7['cZNav'](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x182)],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):logger[_0x1eb15a(0x14e)]('Found\x20VPC:\x20'+_0x3c7e12+'\x20');const _0x5e3692=await _0x136799[_0x1eb15a(0x19a)](_0x12d00d,_0x3c7e12);_0x4e9ab7[_0x1eb15a(0x1e4)](_0x5e3692[0x0],![])?(_0x45da56=_0x1eb15a(0x124)+JSON['stringify'](_0x5e3692[0x1])+_0x1eb15a(0x183)+_0x3c7e12+_0x1eb15a(0x1b6),await _0x4e9ab7[_0x1eb15a(0xb4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x1c3)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process[_0x1eb15a(0xe5)](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON['stringify'](_0x12d00d)+'\x20'),await _0x136799[_0x1eb15a(0x19b)](_0x3c7e12,_0x12d00d);}else{const _0x69ecd3=_0x4e9ab7[_0x1eb15a(0xc6)][_0x1eb15a(0x142)]('|');let _0x517e35=0x0;while(!![]){switch(_0x69ecd3[_0x517e35++]){case'0':const _0x2832a7={};_0x2832a7[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x2832a7[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x139)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x2832a7);continue;case'1':await _0x136799[_0x1eb15a(0x19b)](_0x3c7e12,_0x12d00d);continue;case'2':logger[_0x1eb15a(0x14e)](_0x4e9ab7['NWHOQ']);continue;case'3':const _0x506f70={};_0x506f70[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x506f70[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x195)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x506f70);continue;case'4':logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x139)]);continue;}break;}}}}_0x38d54d&&_0x4e9ab7[_0x1eb15a(0xe0)](_0x1fbbfb,AZURE)&&(await _0x136799[_0x1eb15a(0xd4)](),await _0x136799[_0x1eb15a(0x110)]());const [_0x51b6da,_0x24bead,_0x38b1ec,_0x4b7a6e,_0x39b946,_0x3abcea]=await _0x4e9ab7[_0x1eb15a(0x1a4)](createK8sClient,_0x136799,_0x1e646d[_0x1eb15a(0x18b)]);_0x4e9ab7[_0x1eb15a(0x119)](_0x38d54d,![])&&_0x4e9ab7[_0x1eb15a(0xbe)](_0x1fbbfb,AWS)&&(global_registry[_0x1eb15a(0x191)]=!![],_0x4b92b=await _0x136799[_0x1eb15a(0x137)](_0x51b6da,_0x1e646d));try{_0x3dea52=_0x4e9ab7[_0x1eb15a(0x127)](kebabCase,_0x421e22),logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x173)]);const _0x4c074c={};_0x4c074c[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x4c074c[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x173)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x4c074c);if(_0x4e9ab7[_0x1eb15a(0xc1)](_0x3dea52,_0x4e9ab7[_0x1eb15a(0x1f0)])){const _0x4add87={};_0x4add87['createdBy']=_0x4e9ab7[_0x1eb15a(0xf7)],_0x4add87[_0x1eb15a(0xdc)]=_0x4e9ab7[_0x1eb15a(0xf7)];const _0x564fc3={};_0x564fc3[_0x1eb15a(0x14b)]=_0x3dea52,_0x564fc3[_0x1eb15a(0x193)]=_0x4add87;const _0x3fb259={};_0x3fb259['metadata']=_0x564fc3;const _0x504909=_0x3fb259,_0xdfff54={};_0xdfff54[_0x1eb15a(0x159)]=_0x504909,await _0x51b6da['createNamespace'](_0xdfff54),logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x16a)]);}const _0x2a648d={};_0x2a648d[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x2a648d[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0xba)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x2a648d);const _0xf4c0ae={};_0xf4c0ae['type']=WS_EVENTS[_0x1eb15a(0x10f)],_0xf4c0ae[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0xb5)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0xf4c0ae),logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x1a9)]);let _0x42b287={};_0x4e9ab7[_0x1eb15a(0x1a7)](_0x1fbbfb,AZURE)&&(_0x42b287={'clientId':await _0x136799[_0x1eb15a(0x1b2)]('turboscale-managed-identity-'+_0x4dd671)});await _0x4e9ab7[_0x1eb15a(0xde)](addGridComponents,_0x51b6da,_0x24bead,_0x38b1ec,_0x4b7a6e,_0x3dea52,_0x4dd671,_0x4b92b,_0x39b946,_0x3abcea,_0x42b287),_0x45da56=_0x4e9ab7[_0x1eb15a(0x103)],logger['info'](_0x45da56);const _0x91c01b={};_0x91c01b[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x91c01b[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x91c01b),_0x45da56=_0x4e9ab7[_0x1eb15a(0x132)],logger[_0x1eb15a(0x14e)](_0x45da56);const _0x5027ef={};_0x5027ef[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x5027ef[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils['sendEventToBackend'](_0x502ccc,_0x5027ef),await _0x4e9ab7[_0x1eb15a(0x1be)](waitForDeployment,_0x24bead,_0x3dea52,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x2f22c0=await _0x4e9ab7[_0x1eb15a(0x1a4)](getNamespaceUID,_0x51b6da,_0x3dea52),_0x8c0045=global_registry[_0x1eb15a(0x106)]?_0x4e9ab7[_0x1eb15a(0x1e0)]:_0x4e9ab7['TPNEx'],_0xdc65f2={};_0xdc65f2[_0x1eb15a(0x14b)]=_0x8c0045,_0xdc65f2[_0x1eb15a(0x156)]=_0x4e9ab7[_0x1eb15a(0x14f)];const _0x1ab2e6=await _0x51b6da[_0x1eb15a(0xbb)](_0xdc65f2);let _0x413f09=_0x136799['getGridHostname'](_0x1ab2e6)+'/'+_0x3dea52,_0x3dc2d7=_0x4e9ab7[_0x1eb15a(0xb7)];try{const _0x19b0ae=_0x1eb15a(0x1e5)+AG_API_URL+_0x1eb15a(0xf1)+_0x2f22c0,_0x169df3=await _0x4e9ab7['bxFBA'](got,_0x19b0ae,_0x28b9b4);(_0x4e9ab7['YvDEB'](_0x169df3,null)||_0x4e9ab7[_0x1eb15a(0xff)](_0x169df3,undefined))&&(_0x45da56=_0x4e9ab7['EiApa'],await _0x4e9ab7['EXcCh'](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0xd8)],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1));_0x4e9ab7[_0x1eb15a(0xe8)](_0x169df3[_0x1eb15a(0x1ae)],0x191)&&(_0x45da56=_0x4e9ab7[_0x1eb15a(0x1c0)],await _0x4e9ab7[_0x1eb15a(0x192)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x13b)],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1));_0x4e9ab7[_0x1eb15a(0x1ea)](_0x169df3['statusCode'],0xc8)&&(_0x45da56=_0x1eb15a(0x19c)+JSON[_0x1eb15a(0x125)](_0x169df3),await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0xcd)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process[_0x1eb15a(0xe5)](0x1));const _0x38865a=JSON[_0x1eb15a(0xab)](_0x169df3[_0x1eb15a(0x159)]);_0x38865a[_0x1eb15a(0x15b)]&&(_0x413f09=_0x38865a[_0x1eb15a(0x15b)],_0x3dc2d7=_0x4e9ab7['xMRKJ']),global_registry['isPrivateGrid']&&(_0x3dc2d7=_0x4e9ab7['tCnXV']);}catch(_0x596067){}_0x45da56=_0x1eb15a(0x1de)+_0x413f09+'\x20',logger['info'](_0x45da56);const _0x39a864={};_0x39a864[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x39a864[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x39a864),_0x45da56='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x3dc2d7+_0x1eb15a(0x17d)+_0x413f09+_0x1eb15a(0xd3),logger[_0x1eb15a(0x14e)](_0x45da56);const _0xc1fe6c={};_0xc1fe6c[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0xc1fe6c[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0xc1fe6c);const _0x2f390f={};_0x2f390f[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x101)],_0x2f390f['message']=_0x1eb15a(0xd9)+_0x413f09,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x2f390f),await webSocketUtils[_0x1eb15a(0x146)](0x7d0);}catch(_0x2c28b5){logger[_0x1eb15a(0x197)](_0x1eb15a(0xec)+_0x2c28b5+'\x20\x0a'+JSON[_0x1eb15a(0x125)](_0x2c28b5[_0x1eb15a(0x1d9)]));if(_0x4e9ab7[_0x1eb15a(0x1e1)](_0x38d54d,![]))try{logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0xee)]),await _0x4e9ab7[_0x1eb15a(0x171)](removeGridComponents,_0x51b6da,_0x24bead,_0x38b1ec,_0x4b7a6e,_0x3dea52),await _0x136799[_0x1eb15a(0x1ed)](_0x51b6da,global_registry[_0x1eb15a(0x17e)]);}catch(_0x45ef40){logger[_0x1eb15a(0x197)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x45ef40+'\x20\x0a'+JSON[_0x1eb15a(0x125)](_0x45ef40[_0x1eb15a(0x1d9)]));}throw _0x2c28b5;}}catch(_0x1bec1f){const _0xb905c6='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x1bec1f+'\x20\x0a'+JSON[_0x1eb15a(0x125)](_0x1bec1f['stack']);if(_0x502ccc){const _0x3a8454={};_0x3a8454[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x3a8454[_0x1eb15a(0x158)]=_0xb905c6,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x3a8454,_0x4e9ab7[_0x1eb15a(0x138)],!![]);}await webSocketUtils[_0x1eb15a(0x146)](0x7d0);const _0x2cf676={};_0x2cf676[_0x1eb15a(0x197)]=_0xb905c6,await _0x4e9ab7['ISzzb'](sendInstrumentationEvent,_0x1e646d,_0x4e9ab7[_0x1eb15a(0x1ef)],messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1f2)],_0x2cf676,_0x1e646d),logger['error'](_0xb905c6);}process[_0x1eb15a(0xe5)](0x0);};
@@ -1 +1 @@
1
- const a10_0xdab2ac=a10_0x29fa;(function(_0x3acdab,_0x9393ca){const _0x4d4eb5=a10_0x29fa,_0x46b884=_0x3acdab();while(!![]){try{const _0x4bddb7=-parseInt(_0x4d4eb5(0x1d4))/0x1*(parseInt(_0x4d4eb5(0x1cb))/0x2)+parseInt(_0x4d4eb5(0x1cf))/0x3+parseInt(_0x4d4eb5(0x1c5))/0x4*(-parseInt(_0x4d4eb5(0x1d7))/0x5)+-parseInt(_0x4d4eb5(0x1c8))/0x6+parseInt(_0x4d4eb5(0x1d3))/0x7+-parseInt(_0x4d4eb5(0x1c4))/0x8*(-parseInt(_0x4d4eb5(0x1d8))/0x9)+parseInt(_0x4d4eb5(0x1d2))/0xa;if(_0x4bddb7===_0x9393ca)break;else _0x46b884['push'](_0x46b884['shift']());}catch(_0x177199){_0x46b884['push'](_0x46b884['shift']());}}}(a10_0x5ce1,0xbad66));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0xdab2ac(0x1da));exports[a10_0xdab2ac(0x1c7)]=a10_0xdab2ac(0x1cd),exports[a10_0xdab2ac(0x1d5)]='List\x20Grid\x20resources.',exports[a10_0xdab2ac(0x1d1)]=function(_0x4027ba){const _0x4d395b=a10_0xdab2ac,_0x58e1e2={};_0x58e1e2[_0x4d395b(0x1cc)]=_0x4d395b(0x1c9),_0x58e1e2[_0x4d395b(0x1c3)]=_0x4d395b(0x1d0);const _0x15d80a=_0x58e1e2;return _0x4027ba['usage'](HELP_HEADER_MESSAGE[_0x4d395b(0x1cd)])[_0x4d395b(0x1ce)](HELP_FOOTER_MESSAGE)['commandDir'](_0x15d80a[_0x4d395b(0x1cc)])[_0x4d395b(0x1d6)]()[_0x4d395b(0x1c6)]()[_0x4d395b(0x1ca)]()[_0x4d395b(0x1d0)](_0x15d80a['qdhfk']);},exports[a10_0xdab2ac(0x1d9)]=function(_0x554019){};function a10_0x29fa(_0x22fe2e,_0x29586b){const _0x5ce1b3=a10_0x5ce1();return a10_0x29fa=function(_0x29fa3a,_0x14bc3f){_0x29fa3a=_0x29fa3a-0x1c3;let _0x743699=_0x5ce1b3[_0x29fa3a];return _0x743699;},a10_0x29fa(_0x22fe2e,_0x29586b);}function a10_0x5ce1(){const _0x393d32=['2090625jzgvtl','help','builder','5518900GOLdoB','7280077hzFSQf','330853ybScyL','desc','demandCommand','38805HofzbF','18qhaVXz','handler','../config/constants','qdhfk','2350176zKCHqk','200jNwefj','recommendCommands','command','8352786KjzJln','delete_commands','strict','2GKExNf','crgoH','delete','epilogue'];a10_0x5ce1=function(){return _0x393d32;};return a10_0x5ce1();}
1
+ const a10_0x46bf7e=a10_0x50f6;function a10_0x50f6(_0x2132c2,_0x2e7797){const _0x44f24a=a10_0x44f2();return a10_0x50f6=function(_0x50f635,_0x62377f){_0x50f635=_0x50f635-0x105;let _0x1266b7=_0x44f24a[_0x50f635];return _0x1266b7;},a10_0x50f6(_0x2132c2,_0x2e7797);}(function(_0x2e452b,_0x4c8477){const _0x42f556=a10_0x50f6,_0x51d660=_0x2e452b();while(!![]){try{const _0x1d19a2=parseInt(_0x42f556(0x10f))/0x1*(-parseInt(_0x42f556(0x10a))/0x2)+parseInt(_0x42f556(0x107))/0x3*(-parseInt(_0x42f556(0x105))/0x4)+-parseInt(_0x42f556(0x10c))/0x5*(parseInt(_0x42f556(0x114))/0x6)+parseInt(_0x42f556(0x113))/0x7+-parseInt(_0x42f556(0x117))/0x8+-parseInt(_0x42f556(0x119))/0x9*(-parseInt(_0x42f556(0x106))/0xa)+parseInt(_0x42f556(0x10e))/0xb;if(_0x1d19a2===_0x4c8477)break;else _0x51d660['push'](_0x51d660['shift']());}catch(_0x3831f9){_0x51d660['push'](_0x51d660['shift']());}}}(a10_0x44f2,0x1a853));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x46bf7e(0x109));exports[a10_0x46bf7e(0x111)]=a10_0x46bf7e(0x10d),exports['desc']=a10_0x46bf7e(0x112),exports[a10_0x46bf7e(0x116)]=function(_0x40cb64){const _0x14aefc=a10_0x46bf7e,_0x2f860e={};_0x2f860e['wuver']=_0x14aefc(0x110),_0x2f860e[_0x14aefc(0x108)]=_0x14aefc(0x11a);const _0x4ba9d3=_0x2f860e;return _0x40cb64[_0x14aefc(0x118)](HELP_HEADER_MESSAGE[_0x14aefc(0x10d)])[_0x14aefc(0x11b)](HELP_FOOTER_MESSAGE)['commandDir'](_0x4ba9d3['wuver'])[_0x14aefc(0x10b)]()['recommendCommands']()[_0x14aefc(0x115)]()[_0x14aefc(0x11a)](_0x4ba9d3[_0x14aefc(0x108)]);},exports['handler']=function(_0xa816ce){};function a10_0x44f2(){const _0x557e4d=['List\x20Grid\x20resources.','170086pMVDBq','69672tBzkJj','strict','builder','466944bVnyeP','usage','45caPbIK','help','epilogue','4hQzyTs','271670NZSntW','337938fGqtUO','tRdwi','../config/constants','50452VEGXwS','demandCommand','20kmmeMH','delete','4045404BDbaPY','8kUOFRo','delete_commands','command'];a10_0x44f2=function(){return _0x557e4d;};return a10_0x44f2();}
@@ -1 +1 @@
1
- const a11_0xb289c0=a11_0x473b;function a11_0x1d0a(){const _0x397d5c=['username','help','Browserstack','server-error','ZXfQD','gridId','NXxCC','tGKbe','unauthorised','usage','GWCBg','VqyRz','QmLlo','zTqoy','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','widye','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','SkIAT','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','2TWnXFT','pSoNe','warn','tlcKc','Namespace:\x20','gCDVW','PUrok','qrjLk','tiRXX','stack','command','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','isClusterPresent','replace','default','requestId','SGAwy','parse','body','Pass\x20the\x20ID\x20of\x20the\x20Grid','DMByb','zBBSr','KOUQN','https://','string','got','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','2533060XNsMNC','HMylO','hGTWM','5127696wjTTYJ','yqqOi','Successfully\x20deleted\x20the\x20grid','exit','name','skipTlsCertVerify','clusterRegion','HZgnH','toLowerCase','region','582fLhygm','type','invalid-grid-id','boolean','\x22\x20and\x20ID\x20','OSEGG','etPtj','oVGLn','epilogue','clusterId','clusterName','JNYjm','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','HJMqm','info','mNfnU','xYtOT','PUlFa','catch','zFuii','argv','delete','1109936kenwbl','readNamespace','uuid','stringify','grid-id','reconnecting-websocket','18YvUqqh','desc','statusCode','<UsernamePlaceholder>','zFFrF','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','IWheC','invalid-input','options','DELETE','244370YcuDBj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','INFO','skip-tls-cert-verify','../../utils/instrumentationUtils','aOlPh','Delete\x20an\x20Automation\x20grid.','MDeaD','MlEwc','eQOUp','jJpsP','message','Skip\x20insecure\x20cert\x20verification.','1730312JmOIit','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','82495cWolRy','Mqfyy','deleteCluster','../../utils/createk8sClient','description','AziPE','mlerp','onlyGridInCluster','KUocM','../../utils/webSocketUtils','then','1582995MEMACN','bIQyl','error','password','VtqsS','ERROR','OUMoP','dSUFn','connectionTimeout','aenkA','handler','../../cloudproviders/utils','unknown-error','init-not-called','yAemv','pSPjw','../../config/constants','WebSocket','WTYCi','spknQ','KUkMP','Cluster:\x20','\x22\x20with\x20ID\x20','cLakc','clusterSpawnedVia','delete-grid-called','/packages/cli/grid/','../../utils/utilityMethods','builder','Failed\x20to\x20delete\x20resources!\x20Error:\x20'];a11_0x1d0a=function(){return _0x397d5c;};return a11_0x1d0a();}(function(_0x15f183,_0x24eaa0){const _0x3354c1=a11_0x473b,_0x36ad80=_0x15f183();while(!![]){try{const _0x4f7d24=parseInt(_0x3354c1(0x105))/0x1*(parseInt(_0x3354c1(0xc7))/0x2)+parseInt(_0x3354c1(0x12f))/0x3+-parseInt(_0x3354c1(0xe5))/0x4+-parseInt(_0x3354c1(0x115))/0x5+-parseInt(_0x3354c1(0xef))/0x6*(-parseInt(_0x3354c1(0x124))/0x7)+-parseInt(_0x3354c1(0x122))/0x8+-parseInt(_0x3354c1(0x10b))/0x9*(parseInt(_0x3354c1(0xe2))/0xa);if(_0x4f7d24===_0x24eaa0)break;else _0x36ad80['push'](_0x36ad80['shift']());}catch(_0x4f730e){_0x36ad80['push'](_0x36ad80['shift']());}}}(a11_0x1d0a,0xb1807));function a11_0x473b(_0x560264,_0x2439e5){const _0x1d0a2b=a11_0x1d0a();return a11_0x473b=function(_0x473b51,_0x298122){_0x473b51=_0x473b51-0xa3;let _0x302b60=_0x1d0a2b[_0x473b51];return _0x302b60;},a11_0x473b(_0x560264,_0x2439e5);}const fs=require('fs'),got=require(a11_0xb289c0(0xe0)),{v4:uuidv4}=require(a11_0xb289c0(0x107)),ws=require('ws'),ReconnectingWebSocket=require(a11_0xb289c0(0x10a)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0xb289c0(0xa6)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0xb289c0(0x13a)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0xb289c0(0x119)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0xb289c0(0x127)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0xb289c0(0xb1)),webSocketUtils=require(a11_0xb289c0(0x12d));exports[a11_0xb289c0(0xd1)]='grid',exports[a11_0xb289c0(0x10c)]=a11_0xb289c0(0x11b),exports[a11_0xb289c0(0xb2)]=function(_0x4c1a1a){const _0x40454d=a11_0xb289c0,_0x432aba={};_0x432aba[_0x40454d(0xfc)]=_0x40454d(0xda),_0x432aba[_0x40454d(0xf5)]=_0x40454d(0xdf),_0x432aba[_0x40454d(0xff)]=_0x40454d(0x121),_0x432aba[_0x40454d(0xcc)]=_0x40454d(0xf2),_0x432aba['DMByb']=_0x40454d(0xb5);const _0x1da0b1=_0x432aba,_0x254923={};_0x254923[_0x40454d(0x128)]=_0x1da0b1['HJMqm'],_0x254923[_0x40454d(0xf0)]=_0x1da0b1['etPtj'];const _0x3a3c64={};_0x3a3c64[_0x40454d(0x128)]=_0x1da0b1[_0x40454d(0xff)],_0x3a3c64[_0x40454d(0xf0)]=_0x1da0b1[_0x40454d(0xcc)],_0x3a3c64[_0x40454d(0xd5)]=![];const _0x9fc639={};return _0x9fc639['grid-id']=_0x254923,_0x9fc639[_0x40454d(0x118)]=_0x3a3c64,_0x4c1a1a[_0x40454d(0xbd)](HELP_HEADER_MESSAGE[_0x40454d(0x104)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x40454d(0x113)](_0x9fc639)[_0x40454d(0xb5)](_0x1da0b1[_0x40454d(0xdb)])[_0x40454d(0x103)];},exports[a11_0xb289c0(0x139)]=async function(_0x475ec3){const _0x147133=a11_0xb289c0,_0x3bc6c7={'zFFrF':_0x147133(0xe7),'aenkA':_0x147133(0xc6),'VSUVz':_0x147133(0xda),'PUrok':_0x147133(0xdf),'AziPE':_0x147133(0x121),'cZPNC':_0x147133(0xf2),'qrjLk':_0x147133(0xb5),'dSUFn':function(_0x86a8fa,_0x538698){return _0x86a8fa===_0x538698;},'KOUQN':'FMDRy','mlerp':function(_0x2bd79b,_0x1ed5e4){return _0x2bd79b!==_0x1ed5e4;},'HMylO':_0x147133(0x12c),'SkIAT':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','mNfnU':function(_0x2a4844){return _0x2a4844();},'HZgnH':function(_0x2f5d5d){return _0x2f5d5d();},'hGTWM':_0x147133(0x11c),'IWheC':_0x147133(0x116),'bMhtk':function(_0x1a5259,_0x1fdbfa,_0x4c0fad,_0x7e5ec7,_0x5853cd,_0x5243fd,_0x3e2fd4){return _0x1a5259(_0x1fdbfa,_0x4c0fad,_0x7e5ec7,_0x5853cd,_0x5243fd,_0x3e2fd4);},'tiRXX':_0x147133(0xaf),'Mqfyy':_0x147133(0xa3),'MlEwc':function(_0x342604,_0xdde858,_0x2fcd8a,_0x2b3f25,_0x17fb7f,_0x2981a9,_0x26aa4f){return _0x342604(_0xdde858,_0x2fcd8a,_0x2b3f25,_0x17fb7f,_0x2981a9,_0x26aa4f);},'tGKbe':_0x147133(0xc3),'rdEao':function(_0x4d1a9b,_0x14cb58,_0x3fab6c,_0x3ee164){return _0x4d1a9b(_0x14cb58,_0x3fab6c,_0x3ee164);},'bIQyl':'Browserstack','zFuii':'IBmPm','GWCBg':function(_0x225eee,_0x329061){return _0x225eee(_0x329061);},'jJpsP':function(_0x10d6a1,_0x37db99){return _0x10d6a1===_0x37db99;},'OSEGG':function(_0xc4b3c7,_0x27cd2d){return _0xc4b3c7===_0x27cd2d;},'pSPjw':_0x147133(0x11e),'lFKrN':_0x147133(0x110),'oVGLn':function(_0x224729,_0x3f723b,_0x73c062,_0x4628a7,_0x14939d,_0x593c39,_0x4a4268){return _0x224729(_0x3f723b,_0x73c062,_0x4628a7,_0x14939d,_0x593c39,_0x4a4268);},'LqScJ':_0x147133(0x112),'zBBSr':function(_0x3ba5fd,_0x5c6745){return _0x3ba5fd===_0x5c6745;},'yAemv':_0x147133(0xba),'JXfkT':_0x147133(0x10e),'QMqcH':'<PasswordPlaceholder>','pSoNe':function(_0x3d47db,_0x30b460){return _0x3d47db(_0x30b460);},'ZXfQD':function(_0x38c151,_0x15ef17,_0x264be8){return _0x38c151(_0x15ef17,_0x264be8);},'JNYjm':function(_0x3bca9a,_0x419b7d,_0x2bcbc6,_0x572400,_0x2c4ef4,_0x4d769e){return _0x3bca9a(_0x419b7d,_0x2bcbc6,_0x572400,_0x2c4ef4,_0x4d769e);},'tlcKc':_0x147133(0xc0),'OUMoP':function(_0x467c8f,_0x4f9344){return _0x467c8f===_0x4f9344;},'SGAwy':_0x147133(0xaa),'WTYCi':'Mkvtb','VqyRz':_0x147133(0x114),'PUlFa':function(_0x3629ed,_0x45d105,_0x43d99b){return _0x3629ed(_0x45d105,_0x43d99b);},'zTqoy':function(_0x3b6f78,_0x1e671d){return _0x3b6f78!==_0x1e671d;},'lyKpa':function(_0x2b426e,_0x36ceda){return _0x2b426e===_0x36ceda;},'aOlPh':_0x147133(0xb7),'VtqsS':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','yqqOi':_0x147133(0xbc),'OzSQf':function(_0x43309f,_0x4f1e3e){return _0x43309f===_0x4f1e3e;},'spknQ':_0x147133(0xf1),'oDgZU':function(_0x482ee9,_0x2ac6fb,_0x48a244,_0x2350ff,_0xe862d0,_0x521dd6,_0x101d93){return _0x482ee9(_0x2ac6fb,_0x48a244,_0x2350ff,_0xe862d0,_0x521dd6,_0x101d93);},'IGTqb':function(_0x461621,_0x313ea1,_0x15b4dd,_0xe2951,_0x4af28b,_0x4feddc,_0x4aeeea){return _0x461621(_0x313ea1,_0x15b4dd,_0xe2951,_0x4af28b,_0x4feddc,_0x4aeeea);},'cLakc':_0x147133(0x13b)};try{global_registry[_0x147133(0xd6)]=_0x3bc6c7[_0x147133(0xfe)](uuidv4);!fs['existsSync'](_0x3bc6c7[_0x147133(0xec)](getCredentialsPath))&&(_0x3bc6c7['mlerp'](_0x3bc6c7['hGTWM'],_0x3bc6c7[_0x147133(0xe4)])?(_0x5e7c59[_0x147133(0xfd)](_0x3bc6c7[_0x147133(0x10f)]),_0x387e1e[_0x147133(0xe8)](0x0)):(console['error'](_0x3bc6c7[_0x147133(0x111)]),await _0x3bc6c7['bMhtk'](sendInstrumentationEvent,_0x475ec3,_0x3bc6c7[_0x147133(0xcf)],messageTypes[_0x147133(0x134)],_0x3bc6c7[_0x147133(0x125)],null,_0x475ec3),process[_0x147133(0xe8)](0x1)));_0x3bc6c7[_0x147133(0x11d)](sendInstrumentationEvent,_0x475ec3,_0x3bc6c7[_0x147133(0xcf)],messageTypes[_0x147133(0x117)],null,null,_0x475ec3);!_0x475ec3['gridId']&&(_0x3bc6c7[_0x147133(0x136)](_0x3bc6c7[_0x147133(0xbb)],_0x3bc6c7[_0x147133(0xbb)])?(console[_0x147133(0x131)](_0x3bc6c7[_0x147133(0xc5)]),process[_0x147133(0xe8)](0x1)):(_0x46b3e9[_0x147133(0xc9)](_0x147133(0xcb)+_0x2ecfa4+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x39b0ec=![]));const _0x38fb34=JSON[_0x147133(0xd8)](fs['readFileSync'](_0x3bc6c7['mNfnU'](getCredentialsPath))),[_0x2b3414,_0x5366d0]=await _0x3bc6c7['rdEao'](getGridDetails,_0x38fb34[_0x147133(0xb6)]['username'],_0x38fb34['Browserstack'][_0x147133(0x132)],_0x475ec3[_0x147133(0xb9)]);if(_0x5366d0){const _0x3eca83=_0x5366d0[_0x147133(0xfd)];let _0x4db524=_0x147133(0xfb)+_0x3eca83[_0x147133(0xe9)]+_0x147133(0xf3)+_0x3eca83['id']+_0x147133(0xc4);_0x5366d0[_0x147133(0x12b)]&&_0x3bc6c7[_0x147133(0x136)](_0x5366d0[_0x147133(0xae)],_0x3bc6c7[_0x147133(0x130)])&&(_0x3bc6c7[_0x147133(0x136)](_0x3bc6c7[_0x147133(0x102)],_0x3bc6c7[_0x147133(0x102)])?_0x4db524=_0x147133(0xfb)+_0x3eca83['name']+'\x22\x20and\x20ID\x20'+_0x3eca83['id']+_0x147133(0x123)+_0x3eca83['clusterName']+_0x147133(0xac)+_0x3eca83[_0x147133(0xf8)]+_0x147133(0xc4):_0x5e9208['info']('Namespace:\x20'+_0x5ca686+_0x147133(0xc2)));const _0x396fa1=await _0x3bc6c7[_0x147133(0xbe)](inputConfirmation,_0x4db524);(_0x3bc6c7[_0x147133(0x11f)](_0x396fa1,undefined)||_0x3bc6c7[_0x147133(0xf4)](_0x396fa1,null)||!(_0x3bc6c7[_0x147133(0xf4)](_0x396fa1[_0x147133(0xed)](),'y')||_0x3bc6c7['OSEGG'](_0x396fa1[_0x147133(0xed)](),'n')))&&(_0x3bc6c7['OSEGG'](_0x3bc6c7[_0x147133(0xa5)],_0x3bc6c7[_0x147133(0xa5)])?(console[_0x147133(0x131)](_0x3bc6c7['lFKrN']),await _0x3bc6c7[_0x147133(0xf6)](sendInstrumentationEvent,_0x475ec3,_0x3bc6c7[_0x147133(0xcf)],messageTypes['ERROR'],_0x3bc6c7['LqScJ'],null,_0x475ec3),process[_0x147133(0xe8)](0x1)):_0x2e4dfa[_0x147133(0xc9)](_0x3bc6c7[_0x147133(0x138)]));if(_0x3bc6c7[_0x147133(0xdc)](_0x396fa1[_0x147133(0xed)](),'n')){if(_0x3bc6c7[_0x147133(0x12a)](_0x3bc6c7[_0x147133(0xa4)],_0x3bc6c7[_0x147133(0xa4)])){const _0x42567e={};_0x42567e['description']=_0x3bc6c7['VSUVz'],_0x42567e[_0x147133(0xf0)]=_0x3bc6c7[_0x147133(0xcd)];const _0x3032f1={};_0x3032f1[_0x147133(0x128)]=_0x3bc6c7[_0x147133(0x129)],_0x3032f1[_0x147133(0xf0)]=_0x3bc6c7['cZPNC'],_0x3032f1[_0x147133(0xd5)]=![];const _0x1de7c4={};return _0x1de7c4[_0x147133(0x109)]=_0x42567e,_0x1de7c4['skip-tls-cert-verify']=_0x3032f1,_0x1e7811[_0x147133(0xbd)](_0x31b144[_0x147133(0x104)])[_0x147133(0xf7)](_0x29cd95)[_0x147133(0x113)](_0x1de7c4)[_0x147133(0xb5)](_0x3bc6c7[_0x147133(0xce)])[_0x147133(0x103)];}else process[_0x147133(0xe8)](0x0);}const _0x20d4e2=WS_ENDPOINT[_0x147133(0xd4)](_0x3bc6c7['JXfkT'],_0x38fb34[_0x147133(0xb6)][_0x147133(0xb4)])[_0x147133(0xd4)](_0x3bc6c7['QMqcH'],_0x38fb34[_0x147133(0xb6)][_0x147133(0x132)]),_0x2ab3c1={};_0x2ab3c1[_0x147133(0xa7)]=ws,_0x2ab3c1[_0x147133(0x137)]=0x36ee80;const _0x383800=new ReconnectingWebSocket(_0x20d4e2,[],_0x2ab3c1);global_registry[_0x147133(0xeb)]=_0x3eca83[_0x147133(0xee)];const _0x2feb60=_0x3eca83['cloudProvider'],_0x770e21=await _0x3bc6c7[_0x147133(0xf6)](getCloudProviderObject,_0x2feb60,_0x3eca83[_0x147133(0xf9)],_0x3eca83[_0x147133(0xe9)],_0x383800,webSocketUtils,_0x475ec3),_0x3e2084=await _0x770e21[_0x147133(0xd3)]();if(_0x3e2084){const _0x4ba929=_0x3bc6c7[_0x147133(0xc8)](kebabCase,_0x3eca83[_0x147133(0xe9)]),[_0x2c4f31,_0x458827,_0x25b2f0,_0x3ac58b,_0x54e662,_0x21d0a4]=await _0x3bc6c7[_0x147133(0xb8)](createK8sClient,_0x770e21,_0x475ec3[_0x147133(0xea)]);let _0x26e795=!![];const _0x48a4b4={};_0x48a4b4[_0x147133(0xe9)]=_0x4ba929,await _0x2c4f31[_0x147133(0x106)](_0x48a4b4)[_0x147133(0x12e)](_0x3bbaad=>{const _0x34dc58=_0x147133;_0x3bc6c7['dSUFn'](_0x3bc6c7[_0x34dc58(0xdd)],_0x3bc6c7[_0x34dc58(0xdd)])?logger[_0x34dc58(0xfd)](_0x34dc58(0xcb)+_0x4ba929+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):_0x41cb74[_0x34dc58(0xc9)](_0x34dc58(0xab)+_0x5ab39e[_0x34dc58(0xf9)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');})[_0x147133(0x101)](_0x1618a4=>{const _0x532a7e=_0x147133;_0x3bc6c7[_0x532a7e(0x12a)](_0x3bc6c7[_0x532a7e(0xe3)],_0x3bc6c7['HMylO'])?_0x5aa031[_0x532a7e(0xe8)](0x0):(logger[_0x532a7e(0xc9)]('Namespace:\x20'+_0x4ba929+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x26e795=![]);});if(_0x26e795){await _0x3bc6c7[_0x147133(0xfa)](removeGridComponents,_0x2c4f31,_0x458827,_0x25b2f0,_0x3ac58b,_0x4ba929);if(_0x5366d0[_0x147133(0x12b)]){const _0x16197b=await _0x770e21['isBrowserstackCluster']();_0x16197b?_0x3bc6c7[_0x147133(0x12a)](_0x3bc6c7[_0x147133(0xca)],_0x3bc6c7[_0x147133(0xca)])?_0x165fda=_0x147133(0xfb)+_0x16796c['name']+_0x147133(0xf3)+_0x4fe854['id']+_0x147133(0x123)+_0x37c02c[_0x147133(0xf9)]+'\x22\x20with\x20ID\x20'+_0xda2678[_0x147133(0xf8)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':await _0x770e21[_0x147133(0x126)](_0x2c4f31,_0x3eca83[_0x147133(0xee)]):_0x3bc6c7[_0x147133(0x135)](_0x3bc6c7[_0x147133(0xd7)],_0x3bc6c7[_0x147133(0xa8)])?(_0x4a9c5d[_0x147133(0x131)](_0x3bc6c7[_0x147133(0xc5)]),_0x4212a3['exit'](0x1)):logger[_0x147133(0xc9)](_0x147133(0xab)+_0x3eca83[_0x147133(0xf9)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger[_0x147133(0xc9)](_0x3bc6c7[_0x147133(0x138)]);const _0x54234f=_0x147133(0xde)+AG_API_URL+_0x147133(0xb0)+_0x475ec3[_0x147133(0xb9)],_0xa26bf7={'method':_0x3bc6c7[_0x147133(0xbf)],'headers':_0x3bc6c7[_0x147133(0x100)](getAuthHeader,_0x38fb34[_0x147133(0xb6)][_0x147133(0xb4)],_0x38fb34[_0x147133(0xb6)][_0x147133(0x132)]),'throwHttpErrors':![]},_0x52428e=await _0x3bc6c7[_0x147133(0xb8)](got,_0x54234f,_0xa26bf7);_0x3bc6c7[_0x147133(0x12a)](_0x52428e,null)&&_0x3bc6c7[_0x147133(0xc1)](_0x52428e,undefined)&&_0x3bc6c7['lyKpa'](_0x52428e[_0x147133(0x10d)],0xc8)&&(logger[_0x147133(0xfd)](_0x3bc6c7[_0x147133(0x10f)]),process[_0x147133(0xe8)](0x0)),logger[_0x147133(0x131)](_0x147133(0xe1)+_0x52428e['body']),await _0x3bc6c7[_0x147133(0xf6)](sendInstrumentationEvent,_0x475ec3,_0x3bc6c7['tiRXX'],messageTypes[_0x147133(0x134)],_0x3bc6c7[_0x147133(0x11a)],_0x2b3414,_0x475ec3),process[_0x147133(0xe8)](0x1);}_0x3bc6c7['zBBSr'](_0x2b3414[_0x147133(0x10d)],0x191)&&(logger[_0x147133(0x131)](_0x3bc6c7[_0x147133(0x133)]),await _0x3bc6c7[_0x147133(0x11d)](sendInstrumentationEvent,_0x475ec3,_0x3bc6c7[_0x147133(0xcf)],messageTypes[_0x147133(0x134)],_0x3bc6c7[_0x147133(0xe6)],null,_0x475ec3),process[_0x147133(0xe8)](0x1)),_0x3bc6c7['OzSQf'](_0x2b3414[_0x147133(0x10d)],0x190)&&(logger[_0x147133(0x131)](JSON['parse'](_0x2b3414[_0x147133(0xd9)])[_0x147133(0x120)]),await _0x3bc6c7['MlEwc'](sendInstrumentationEvent,_0x475ec3,_0x3bc6c7[_0x147133(0xcf)],messageTypes[_0x147133(0x134)],_0x3bc6c7[_0x147133(0xa9)],null,_0x475ec3),process['exit'](0x1)),logger['error'](_0x147133(0xd2)+JSON[_0x147133(0x108)](_0x2b3414)),await _0x3bc6c7['oDgZU'](sendInstrumentationEvent,_0x475ec3,_0x3bc6c7[_0x147133(0xcf)],messageTypes['ERROR'],_0x3bc6c7['aOlPh'],_0x2b3414,_0x475ec3),process[_0x147133(0xe8)](0x1);}catch(_0x24f912){logger[_0x147133(0x131)](_0x147133(0xb3)+_0x24f912[_0x147133(0xd0)]),await _0x3bc6c7['IGTqb'](sendInstrumentationEvent,_0x475ec3,_0x3bc6c7[_0x147133(0xcf)],messageTypes['ERROR'],_0x3bc6c7[_0x147133(0xad)],_0x24f912,_0x475ec3),process['exit'](0x1);}};
1
+ const a11_0x2d7847=a11_0x3d2f;(function(_0xe1a39c,_0x269e42){const _0x243e16=a11_0x3d2f,_0x462d06=_0xe1a39c();while(!![]){try{const _0x339ea8=parseInt(_0x243e16(0xf5))/0x1+-parseInt(_0x243e16(0xb9))/0x2+-parseInt(_0x243e16(0xcf))/0x3*(-parseInt(_0x243e16(0x10d))/0x4)+parseInt(_0x243e16(0x11c))/0x5+parseInt(_0x243e16(0xb5))/0x6*(-parseInt(_0x243e16(0xc8))/0x7)+-parseInt(_0x243e16(0xa6))/0x8*(-parseInt(_0x243e16(0xd2))/0x9)+parseInt(_0x243e16(0xb1))/0xa*(parseInt(_0x243e16(0xfd))/0xb);if(_0x339ea8===_0x269e42)break;else _0x462d06['push'](_0x462d06['shift']());}catch(_0x1a6796){_0x462d06['push'](_0x462d06['shift']());}}}(a11_0x2356,0xc87a1));function a11_0x3d2f(_0x1680fa,_0x4461f6){const _0x23569d=a11_0x2356();return a11_0x3d2f=function(_0x3d2ff8,_0x185772){_0x3d2ff8=_0x3d2ff8-0x87;let _0x42ad84=_0x23569d[_0x3d2ff8];return _0x42ad84;},a11_0x3d2f(_0x1680fa,_0x4461f6);}const fs=require('fs'),got=require(a11_0x2d7847(0x8b)),{v4:uuidv4}=require(a11_0x2d7847(0x9b)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x2d7847(0xec)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x2d7847(0xa8)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x2d7847(0xef)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x2d7847(0x8f)),{createK8sClient}=require(a11_0x2d7847(0x106)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x2d7847(0x8d)),webSocketUtils=require(a11_0x2d7847(0xb4));exports[a11_0x2d7847(0xb8)]='grid',exports[a11_0x2d7847(0x107)]='Delete\x20an\x20Automation\x20grid.',exports['builder']=function(_0x303060){const _0x1f0c2d=a11_0x2d7847,_0x30f42f={};_0x30f42f[_0x1f0c2d(0xc6)]=_0x1f0c2d(0xff),_0x30f42f['eTdwW']=_0x1f0c2d(0xed),_0x30f42f[_0x1f0c2d(0xd8)]=_0x1f0c2d(0xea),_0x30f42f[_0x1f0c2d(0xc0)]=_0x1f0c2d(0x10b),_0x30f42f[_0x1f0c2d(0xcc)]=_0x1f0c2d(0x96);const _0x2bf72d=_0x30f42f,_0x5284ff={};_0x5284ff[_0x1f0c2d(0xd9)]=_0x2bf72d[_0x1f0c2d(0xc6)],_0x5284ff[_0x1f0c2d(0xa4)]=_0x2bf72d[_0x1f0c2d(0x113)];const _0x6b0872={};_0x6b0872[_0x1f0c2d(0xd9)]=_0x2bf72d[_0x1f0c2d(0xd8)],_0x6b0872[_0x1f0c2d(0xa4)]=_0x2bf72d['IQpMJ'],_0x6b0872[_0x1f0c2d(0xf8)]=![];const _0x374c4a={};return _0x374c4a[_0x1f0c2d(0xf9)]=_0x5284ff,_0x374c4a[_0x1f0c2d(0xbc)]=_0x6b0872,_0x303060[_0x1f0c2d(0xf0)](HELP_HEADER_MESSAGE[_0x1f0c2d(0xfc)])[_0x1f0c2d(0xfb)](HELP_FOOTER_MESSAGE)[_0x1f0c2d(0xb7)](_0x374c4a)[_0x1f0c2d(0x96)](_0x2bf72d['soRul'])[_0x1f0c2d(0xe5)];},exports[a11_0x2d7847(0xb2)]=async function(_0x11d0d2){const _0x5adc26=a11_0x2d7847,_0x81b355={'XMzie':'Pass\x20the\x20ID\x20of\x20the\x20Grid','lJJKN':_0x5adc26(0xed),'hmHbl':_0x5adc26(0xea),'htvHr':_0x5adc26(0x10b),'aGVis':_0x5adc26(0x96),'hYTQg':_0x5adc26(0x9a),'aiCDI':function(_0xfdb477,_0x18f141){return _0xfdb477!==_0x18f141;},'zrwmE':_0x5adc26(0x119),'mUlpu':_0x5adc26(0x98),'qFtYS':_0x5adc26(0xf1),'GLtEr':function(_0x24a618,_0x4f34fe){return _0x24a618!==_0x4f34fe;},'oCJYC':_0x5adc26(0xdc),'npkof':_0x5adc26(0xaa),'KEocd':_0x5adc26(0xfe),'Tiaam':function(_0x16089b){return _0x16089b();},'XheEZ':function(_0x4f51b5){return _0x4f51b5();},'TQgIl':function(_0x331d7e,_0x21bdd2){return _0x331d7e===_0x21bdd2;},'nuggI':_0x5adc26(0xe7),'FNsSS':_0x5adc26(0x121),'OPawG':function(_0x2c67af,_0x27e8da,_0x208818,_0x4c0387,_0xad909,_0x6c2d9,_0x278add){return _0x2c67af(_0x27e8da,_0x208818,_0x4c0387,_0xad909,_0x6c2d9,_0x278add);},'uFytz':'delete-grid-called','rVPkv':'init-not-called','AsbOv':_0x5adc26(0x125),'LLpAD':function(_0x33d5ff){return _0x33d5ff();},'UscVG':function(_0x30d8fc,_0x1d7555,_0x45e434,_0x373606){return _0x30d8fc(_0x1d7555,_0x45e434,_0x373606);},'xRWdm':'Browserstack','ozCQX':function(_0x7cd8f9,_0x5433da){return _0x7cd8f9!==_0x5433da;},'NDvFU':'VvDNK','WOQpK':_0x5adc26(0xba),'mKaHv':function(_0x28d86a,_0x334011){return _0x28d86a(_0x334011);},'iKgPf':function(_0x502da9,_0x422f09){return _0x502da9===_0x422f09;},'KWyxp':'JflJo','fxltw':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','TSLIM':_0x5adc26(0x10f),'UTLSH':function(_0xb94c1f,_0x572e4c){return _0xb94c1f===_0x572e4c;},'CjrNn':_0x5adc26(0x8c),'koWba':_0x5adc26(0x101),'PmVFo':_0x5adc26(0x112),'VcgYS':_0x5adc26(0xda),'notyg':function(_0xcfb2a5,_0x580454,_0x444e95){return _0xcfb2a5(_0x580454,_0x444e95);},'qIfOG':function(_0x3e135b,_0xbaeb39,_0x94ecd2,_0x1b2955,_0x5193b9,_0x50f1b1){return _0x3e135b(_0xbaeb39,_0x94ecd2,_0x1b2955,_0x5193b9,_0x50f1b1);},'sAWaQ':_0x5adc26(0x11b),'vTgYp':function(_0x81b01c,_0x5f34aa){return _0x81b01c!==_0x5f34aa;},'MGUOO':_0x5adc26(0xd5),'XpEQq':_0x5adc26(0x11e),'ywAUk':function(_0x50922f,_0x220f6d){return _0x50922f!==_0x220f6d;},'nIqRh':function(_0x4cf0fd,_0x4acae7){return _0x4cf0fd!==_0x4acae7;},'TdcbF':_0x5adc26(0xeb),'BGniu':function(_0x3ca293,_0x40cb1d){return _0x3ca293===_0x40cb1d;},'BMmIl':_0x5adc26(0xf3),'MmSvB':_0x5adc26(0xd1),'QDrat':function(_0x4fd584,_0x38d00f){return _0x4fd584===_0x38d00f;},'HSees':function(_0x44908c,_0xc3539c,_0x5f1561,_0x17d401,_0x3be069,_0x2c3f43,_0x7f6c8f){return _0x44908c(_0xc3539c,_0x5f1561,_0x17d401,_0x3be069,_0x2c3f43,_0x7f6c8f);},'bzUTQ':_0x5adc26(0x90),'jrHyj':function(_0x35a05f,_0x49da7b,_0x544cc3,_0x898ef0,_0x28fa3c,_0x419104,_0xa3bee5){return _0x35a05f(_0x49da7b,_0x544cc3,_0x898ef0,_0x28fa3c,_0x419104,_0xa3bee5);},'zETIA':function(_0x41691d,_0x238068,_0x405f5e,_0x9347db,_0x10bdf0,_0x2c1595,_0x1cda00){return _0x41691d(_0x238068,_0x405f5e,_0x9347db,_0x10bdf0,_0x2c1595,_0x1cda00);},'WeCuQ':_0x5adc26(0x8a)};try{global_registry[_0x5adc26(0xd4)]=_0x81b355[_0x5adc26(0xa3)](uuidv4);if(!fs[_0x5adc26(0xe8)](_0x81b355[_0x5adc26(0x92)](getCredentialsPath))){if(_0x81b355[_0x5adc26(0xde)](_0x81b355[_0x5adc26(0xc7)],_0x81b355[_0x5adc26(0xc7)]))console[_0x5adc26(0x95)](_0x81b355['FNsSS']),await _0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355['uFytz'],messageTypes[_0x5adc26(0xf2)],_0x81b355['rVPkv'],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1);else{const _0x4b5f09={};_0x4b5f09['description']=_0x81b355[_0x5adc26(0xa2)],_0x4b5f09[_0x5adc26(0xa4)]=_0x81b355[_0x5adc26(0xca)];const _0x2c5feb={};_0x2c5feb[_0x5adc26(0xd9)]=_0x81b355['hmHbl'],_0x2c5feb['type']=_0x81b355[_0x5adc26(0x124)],_0x2c5feb[_0x5adc26(0xf8)]=![];const _0x120599={};return _0x120599[_0x5adc26(0xf9)]=_0x4b5f09,_0x120599[_0x5adc26(0xbc)]=_0x2c5feb,_0x236f24[_0x5adc26(0xf0)](_0x58bf81['delete'])[_0x5adc26(0xfb)](_0x3715f1)[_0x5adc26(0xb7)](_0x120599)[_0x5adc26(0x96)](_0x81b355[_0x5adc26(0x11d)])[_0x5adc26(0xe5)];}}_0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf6)],null,null,_0x11d0d2);!_0x11d0d2[_0x5adc26(0xdd)]&&(_0x81b355[_0x5adc26(0xde)](_0x81b355[_0x5adc26(0x105)],_0x81b355[_0x5adc26(0x105)])?(console[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0xaf)]),process[_0x5adc26(0xad)](0x1)):_0x24d9d4[_0x5adc26(0xd0)](_0x81b355[_0x5adc26(0xfa)]));const _0x5ba8b4=JSON['parse'](fs[_0x5adc26(0x10a)](_0x81b355[_0x5adc26(0x10c)](getCredentialsPath))),[_0x1dc571,_0x271b41]=await _0x81b355['UscVG'](getGridDetails,_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xf4)],_0x5ba8b4['Browserstack'][_0x5adc26(0xb6)],_0x11d0d2[_0x5adc26(0xdd)]);if(_0x271b41){const _0x28630d=_0x271b41[_0x5adc26(0x100)];let _0xd1894b=_0x5adc26(0x97)+_0x28630d[_0x5adc26(0x11a)]+_0x5adc26(0xe4)+_0x28630d['id']+_0x5adc26(0x102);_0x271b41[_0x5adc26(0xc5)]&&_0x81b355[_0x5adc26(0xde)](_0x271b41[_0x5adc26(0x9e)],_0x81b355[_0x5adc26(0xbf)])&&(_0x81b355['ozCQX'](_0x81b355[_0x5adc26(0x93)],_0x81b355[_0x5adc26(0xc1)])?_0xd1894b=_0x5adc26(0x97)+_0x28630d['name']+'\x22\x20and\x20ID\x20'+_0x28630d['id']+_0x5adc26(0xee)+_0x28630d[_0x5adc26(0xab)]+_0x5adc26(0xae)+_0x28630d['clusterId']+_0x5adc26(0x102):_0x5e113a[_0x5adc26(0xd0)](_0x5adc26(0x10e)+_0x4a88e5[_0x5adc26(0xab)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));const _0x1ff89b=await _0x81b355[_0x5adc26(0xcd)](inputConfirmation,_0xd1894b);(_0x81b355['TQgIl'](_0x1ff89b,undefined)||_0x81b355[_0x5adc26(0x116)](_0x1ff89b,null)||!(_0x81b355[_0x5adc26(0x116)](_0x1ff89b[_0x5adc26(0xe2)](),'y')||_0x81b355['TQgIl'](_0x1ff89b[_0x5adc26(0xe2)](),'n')))&&(_0x81b355[_0x5adc26(0xde)](_0x81b355['KWyxp'],_0x81b355[_0x5adc26(0xc2)])?(console[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0xf7)]),await _0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0xcb)],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1)):_0x328051[_0x5adc26(0xad)](0x0));_0x81b355['TQgIl'](_0x1ff89b[_0x5adc26(0xe2)](),'n')&&(_0x81b355['UTLSH'](_0x81b355['CjrNn'],_0x81b355[_0x5adc26(0xce)])?(_0x5344d3['warn'](_0x5adc26(0x108)+_0x2371ac+_0x5adc26(0xe9)),_0x3603fc=![]):process[_0x5adc26(0xad)](0x0));const _0x3d7d29=WS_ENDPOINT[_0x5adc26(0xa7)](_0x81b355[_0x5adc26(0x110)],_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xf4)])[_0x5adc26(0xa7)](_0x81b355[_0x5adc26(0x109)],_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xb6)]),_0x1df103={};_0x1df103[_0x5adc26(0xa9)]=ws,_0x1df103['connectionTimeout']=0x36ee80;const _0x906625=new ReconnectingWebSocket(_0x3d7d29,[],_0x1df103);global_registry[_0x5adc26(0xd7)]=_0x28630d['region'];const _0x4e771f=_0x28630d[_0x5adc26(0xb3)],_0x5ee590=await _0x81b355[_0x5adc26(0xe0)](getCloudProviderObject,_0x4e771f,_0x28630d[_0x5adc26(0xab)],_0x28630d[_0x5adc26(0x11a)],_0x906625,webSocketUtils,_0x11d0d2),_0x303769=await _0x5ee590[_0x5adc26(0x117)]();if(_0x303769){const _0xf15f05=_0x81b355[_0x5adc26(0xcd)](kebabCase,_0x28630d['name']),[_0x1cf5cc,_0x1095fc,_0x55065c,_0xe3da3,_0x640e08,_0x30025c]=await _0x81b355[_0x5adc26(0x115)](createK8sClient,_0x5ee590,_0x11d0d2[_0x5adc26(0x123)]);let _0x45cf96=!![];const _0x37c4aa={};_0x37c4aa[_0x5adc26(0x11a)]=_0xf15f05,await _0x1cf5cc[_0x5adc26(0x104)](_0x37c4aa)['then'](_0x1101ad=>{const _0x4c80be=_0x5adc26;_0x81b355[_0x4c80be(0x87)](_0x81b355[_0x4c80be(0x111)],_0x81b355[_0x4c80be(0x118)])?logger['info'](_0x4c80be(0x108)+_0xf15f05+_0x4c80be(0xd3)):_0x5631b0[_0x4c80be(0x100)](_0x4c80be(0x108)+_0xdd6ddc+_0x4c80be(0xd3));})['catch'](_0x49e44c=>{const _0xf47bae=_0x5adc26;_0x81b355[_0xf47bae(0xac)](_0x81b355[_0xf47bae(0x8e)],_0x81b355[_0xf47bae(0xc9)])?(logger[_0xf47bae(0xd0)](_0xf47bae(0x108)+_0xf15f05+_0xf47bae(0xe9)),_0x45cf96=![]):(_0x972b97['info'](_0x81b355[_0xf47bae(0x114)]),_0x46d6ae['exit'](0x0));});if(_0x45cf96){await _0x81b355[_0x5adc26(0x99)](removeGridComponents,_0x1cf5cc,_0x1095fc,_0x55065c,_0xe3da3,_0xf15f05);if(_0x271b41[_0x5adc26(0xc5)]){const _0x1552e3=await _0x5ee590[_0x5adc26(0x122)]();_0x1552e3?_0x81b355['iKgPf'](_0x81b355[_0x5adc26(0x126)],_0x81b355[_0x5adc26(0x126)])?await _0x5ee590['deleteCluster'](_0x1cf5cc,_0x28630d[_0x5adc26(0xb0)]):_0x21ea0c='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x4f7f90[_0x5adc26(0x11a)]+_0x5adc26(0xe4)+_0x5efcc9['id']+_0x5adc26(0xee)+_0x476f77[_0x5adc26(0xab)]+'\x22\x20with\x20ID\x20'+_0x23a80e[_0x5adc26(0xbd)]+_0x5adc26(0x102):_0x81b355[_0x5adc26(0xa0)](_0x81b355['MGUOO'],_0x81b355[_0x5adc26(0xa1)])?(_0x912dab[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0xaf)]),_0xc2dac8[_0x5adc26(0xad)](0x1)):logger[_0x5adc26(0xd0)](_0x5adc26(0x10e)+_0x28630d[_0x5adc26(0xab)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger['warn'](_0x81b355[_0x5adc26(0xfa)]);const _0x4b1900=_0x5adc26(0xd6)+AG_API_URL+'/packages/cli/grid/'+_0x11d0d2[_0x5adc26(0xdd)],_0x2b199a={'method':_0x81b355[_0x5adc26(0x9c)],'headers':_0x81b355[_0x5adc26(0x115)](getAuthHeader,_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xf4)],_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xb6)]),'throwHttpErrors':![]},_0x442974=await _0x81b355['notyg'](got,_0x4b1900,_0x2b199a);_0x81b355['ywAUk'](_0x442974,null)&&_0x81b355[_0x5adc26(0xdb)](_0x442974,undefined)&&_0x81b355['TQgIl'](_0x442974[_0x5adc26(0xe3)],0xc8)&&(logger[_0x5adc26(0x100)](_0x81b355[_0x5adc26(0x114)]),process[_0x5adc26(0xad)](0x0)),logger[_0x5adc26(0x95)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x442974[_0x5adc26(0xe1)]),await _0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes['ERROR'],_0x81b355[_0x5adc26(0x89)],_0x1dc571,_0x11d0d2),process[_0x5adc26(0xad)](0x1);}_0x81b355[_0x5adc26(0x94)](_0x1dc571['statusCode'],0x191)&&(logger[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0x103)]),await _0x81b355['OPawG'](sendInstrumentationEvent,_0x11d0d2,_0x81b355['uFytz'],messageTypes['ERROR'],_0x81b355[_0x5adc26(0x9d)],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1)),_0x81b355[_0x5adc26(0xdf)](_0x1dc571[_0x5adc26(0xe3)],0x190)&&(logger[_0x5adc26(0x95)](JSON[_0x5adc26(0x120)](_0x1dc571[_0x5adc26(0xe1)])[_0x5adc26(0x9f)]),await _0x81b355[_0x5adc26(0x11f)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0xe6)],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1)),logger[_0x5adc26(0x95)](_0x5adc26(0xc4)+JSON['stringify'](_0x1dc571)),await _0x81b355[_0x5adc26(0xbe)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0x89)],_0x1dc571,_0x11d0d2),process[_0x5adc26(0xad)](0x1);}catch(_0x421b90){logger[_0x5adc26(0x95)](_0x5adc26(0xa5)+_0x421b90[_0x5adc26(0x91)]),await _0x81b355['zETIA'](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0xbb)],_0x421b90,_0x11d0d2),process[_0x5adc26(0xad)](0x1);}};function a11_0x2356(){const _0x459165=['4018870RmfeAK','aGVis','DELETE','HSees','parse','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','isBrowserstackCluster','skipTlsCertVerify','htvHr','IsAGe','sAWaQ','aiCDI','uFytz','TdcbF','unknown-error','got','LpSqr','../../utils/utilityMethods','oCJYC','../../utils/userInput','invalid-grid-id','stack','XheEZ','NDvFU','BGniu','error','help','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','BZgTn','qIfOG','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','uuid','XpEQq','MmSvB','clusterSpawnedVia','message','vTgYp','MGUOO','XMzie','Tiaam','type','Failed\x20to\x20delete\x20resources!\x20Error:\x20','74744ETfFDB','replace','../../config/constants','WebSocket','KHJeu','clusterName','GLtEr','exit','\x22\x20with\x20ID\x20','KEocd','region','1270wXEVmQ','handler','cloudProvider','../../utils/webSocketUtils','6zfaJVh','password','options','command','2676138liPXvj','iuKGR','WeCuQ','skip-tls-cert-verify','clusterId','jrHyj','xRWdm','IQpMJ','WOQpK','KWyxp','Browserstack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','onlyGridInCluster','DEeCi','nuggI','4955321cledKv','npkof','lJJKN','TSLIM','soRul','mKaHv','koWba','1611UJdSik','warn','unauthorised','504nqgofF','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','requestId','EgQsl','https://','clusterRegion','LtyVT','description','<PasswordPlaceholder>','nIqRh','fvAjZ','gridId','TQgIl','QDrat','OPawG','body','toLowerCase','statusCode','\x22\x20and\x20ID\x20','argv','bzUTQ','aNeQM','existsSync','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','Skip\x20insecure\x20cert\x20verification.','server-error','reconnecting-websocket','string','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','../../cloudproviders/utils','usage','Successfully\x20deleted\x20the\x20grid','ERROR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','username','545677IXfDtT','INFO','fxltw','default','grid-id','hYTQg','epilogue','delete','41437pgVHnU','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Pass\x20the\x20ID\x20of\x20the\x20Grid','info','HyizB','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','BMmIl','readNamespace','AsbOv','../../utils/createk8sClient','desc','Namespace:\x20','VcgYS','readFileSync','boolean','LLpAD','3844rEMJJu','Cluster:\x20','invalid-input','PmVFo','zrwmE','<UsernamePlaceholder>','eTdwW','qFtYS','notyg','iKgPf','isClusterPresent','mUlpu','ofPvJ','name','eUxgK'];a11_0x2356=function(){return _0x459165;};return a11_0x2356();}
@@ -1 +1 @@
1
- function a12_0x5c66(_0x49045a,_0x17623e){const _0x172c4e=a12_0x172c();return a12_0x5c66=function(_0x5c6612,_0x9946a7){_0x5c6612=_0x5c6612-0xf9;let _0x305448=_0x172c4e[_0x5c6612];return _0x305448;},a12_0x5c66(_0x49045a,_0x17623e);}const a12_0x54f6c6=a12_0x5c66;(function(_0x1240bc,_0x36b58){const _0x5a7b77=a12_0x5c66,_0x4238d7=_0x1240bc();while(!![]){try{const _0x55c03c=parseInt(_0x5a7b77(0x131))/0x1*(-parseInt(_0x5a7b77(0x142))/0x2)+-parseInt(_0x5a7b77(0x10b))/0x3+-parseInt(_0x5a7b77(0x11c))/0x4*(parseInt(_0x5a7b77(0xfe))/0x5)+parseInt(_0x5a7b77(0x159))/0x6+-parseInt(_0x5a7b77(0x14d))/0x7*(-parseInt(_0x5a7b77(0x15a))/0x8)+parseInt(_0x5a7b77(0x105))/0x9*(-parseInt(_0x5a7b77(0x11f))/0xa)+-parseInt(_0x5a7b77(0x125))/0xb*(-parseInt(_0x5a7b77(0x113))/0xc);if(_0x55c03c===_0x36b58)break;else _0x4238d7['push'](_0x4238d7['shift']());}catch(_0x26e062){_0x4238d7['push'](_0x4238d7['shift']());}}}(a12_0x172c,0x1a300));const fs=require('fs'),util=require(a12_0x54f6c6(0x137)),got=require(a12_0x54f6c6(0x146)),{v4:uuidv4}=require(a12_0x54f6c6(0xfa)),{logger}=require('../config/logger'),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x54f6c6(0x118)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x54f6c6(0x135)),{sendInstrumentationEvent}=require(a12_0x54f6c6(0x10f));exports[a12_0x54f6c6(0x124)]=a12_0x54f6c6(0x136),exports[a12_0x54f6c6(0x12e)]=a12_0x54f6c6(0x14c),exports[a12_0x54f6c6(0x145)]=function(_0x5bce44){const _0x1fc820=a12_0x54f6c6,_0x594847={};_0x594847[_0x1fc820(0x165)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x594847['LVNiP']=_0x1fc820(0x130),_0x594847[_0x1fc820(0x13f)]=_0x1fc820(0x14e),_0x594847[_0x1fc820(0x101)]=_0x1fc820(0x161);const _0x581529=_0x594847,_0xd78094={};_0xd78094[_0x1fc820(0x154)]=_0x581529[_0x1fc820(0x165)],_0xd78094[_0x1fc820(0x151)]=_0x581529[_0x1fc820(0x143)];const _0x2edb4d={};_0x2edb4d[_0x1fc820(0x154)]=_0x581529['JjrKq'],_0x2edb4d[_0x1fc820(0x151)]=_0x581529[_0x1fc820(0x143)];const _0x474b36={};return _0x474b36['bstack-username']=_0xd78094,_0x474b36[_0x1fc820(0x15e)]=_0x2edb4d,_0x5bce44[_0x1fc820(0x15b)](HELP_HEADER_MESSAGE[_0x1fc820(0x136)])[_0x1fc820(0x13c)](HELP_FOOTER_MESSAGE)[_0x1fc820(0x10e)](_0x474b36)[_0x1fc820(0x158)]()['strict']()[_0x1fc820(0x161)](_0x581529[_0x1fc820(0x101)])[_0x1fc820(0x100)];},exports['handler']=async function(_0xb3a403){const _0x471bee=a12_0x54f6c6,_0xd1e3b8={'ZkaOi':_0x471bee(0x12d),'GKZhE':_0x471bee(0x119),'CGbgp':_0x471bee(0x130),'ZsHSt':_0x471bee(0x14e),'sicKa':'help','qSdHR':function(_0x2d8266){return _0x2d8266();},'ejgbm':function(_0x5ef3d9){return _0x5ef3d9();},'LBmLN':function(_0x2d6e5a,_0x75c0c8,_0x4381b1,_0x3d0982,_0x41a434,_0x5965a8,_0x1c0c1f){return _0x2d6e5a(_0x75c0c8,_0x4381b1,_0x3d0982,_0x41a434,_0x5965a8,_0x1c0c1f);},'RTZvx':_0x471bee(0x108),'jEAYG':function(_0x3d8866){return _0x3d8866();},'PAtgm':function(_0x596ea6,_0x429c37){return _0x596ea6!==_0x429c37;},'VtbyB':_0x471bee(0x14a),'Grkog':_0x471bee(0x129),'zjfPK':_0x471bee(0x13a),'zFUVV':_0x471bee(0x115),'GCCVp':function(_0x54be32,_0x8d6fde){return _0x54be32===_0x8d6fde;},'rrBHW':'EVltc','kDpXv':_0x471bee(0x157),'XyglF':function(_0x4a27db,_0x16099e){return _0x4a27db!==_0x16099e;},'NsYOt':_0x471bee(0x107),'fczcE':_0x471bee(0x134),'aYrGe':_0x471bee(0x12f),'STBgN':function(_0x3e8b08,_0x1cb8eb){return _0x3e8b08===_0x1cb8eb;},'ubbub':_0x471bee(0xff),'INdiG':_0x471bee(0x128),'AbaSu':'GET','YoiJN':function(_0x323ac2,_0x4342f4,_0x16c155){return _0x323ac2(_0x4342f4,_0x16c155);},'jXyTr':function(_0x3abb91,_0x5669db,_0x20eda9){return _0x3abb91(_0x5669db,_0x20eda9);},'uYrEr':function(_0x22962f,_0x4936c2){return _0x22962f===_0x4936c2;},'MKLkA':function(_0x327ffb,_0x2cb734){return _0x327ffb===_0x2cb734;},'cIDwp':_0x471bee(0x14f),'agDPP':function(_0x244fa1,_0x30db10){return _0x244fa1===_0x30db10;},'PLiTi':'Sqqzn','UqTOb':function(_0x18e88a,_0x347fa7){return _0x18e88a!==_0x347fa7;},'SMZRX':'rNAoz','yBSmI':'xiyEu','ERbWD':_0x471bee(0x132),'pvEIX':_0x471bee(0x141),'KwTad':_0x471bee(0x164)};try{global_registry[_0x471bee(0x114)]=_0xd1e3b8[_0x471bee(0x110)](uuidv4),_0xd1e3b8[_0x471bee(0x109)](sendInstrumentationEvent,_0xb3a403,_0xd1e3b8['RTZvx'],messageTypes['INFO'],null,null,_0xb3a403);const _0x3370d8=_0xd1e3b8[_0x471bee(0x11e)](getDirForConfig);!fs['existsSync'](_0x3370d8)&&(_0xd1e3b8[_0x471bee(0x156)](_0xd1e3b8[_0x471bee(0x10c)],_0xd1e3b8[_0x471bee(0x13e)])?fs['mkdirSync'](_0x3370d8):_0x5c8671[_0x471bee(0x13b)](_0x392600));let _0x4bb3f4,_0x2a30a1;process[_0x471bee(0x163)][_0x471bee(0x11a)]&&(_0xd1e3b8['PAtgm'](_0xd1e3b8[_0x471bee(0x112)],_0xd1e3b8['zFUVV'])?_0x4bb3f4=process[_0x471bee(0x163)][_0x471bee(0x11a)]:_0x14bfbd=_0x275976[_0x471bee(0x150)]);process['env'][_0x471bee(0x153)]&&(_0xd1e3b8[_0x471bee(0x162)](_0xd1e3b8[_0x471bee(0x12c)],_0xd1e3b8['kDpXv'])?_0x4a98b9=_0x1a7116[_0x471bee(0x163)][_0x471bee(0x11a)]:_0x2a30a1=process[_0x471bee(0x163)][_0x471bee(0x153)]);_0xb3a403['bstackUsername']&&(_0xd1e3b8[_0x471bee(0xfd)](_0xd1e3b8[_0x471bee(0x155)],_0xd1e3b8[_0x471bee(0x122)])?_0x4bb3f4=_0xb3a403[_0x471bee(0x10a)]:_0x1ce10a=!![]);_0xb3a403[_0x471bee(0x150)]&&(_0xd1e3b8[_0x471bee(0x156)](_0xd1e3b8[_0x471bee(0x11b)],_0xd1e3b8[_0x471bee(0x11b)])?_0x953013=_0x793400[_0x471bee(0x163)][_0x471bee(0x153)]:_0x2a30a1=_0xb3a403[_0x471bee(0x150)]);if(_0xd1e3b8[_0x471bee(0x138)](_0x4bb3f4,undefined)||_0xd1e3b8[_0x471bee(0x138)](_0x2a30a1,undefined)){if(_0xd1e3b8[_0x471bee(0x162)](_0xd1e3b8[_0x471bee(0x139)],_0xd1e3b8[_0x471bee(0x139)])){logger[_0x471bee(0xf9)](_0xd1e3b8[_0x471bee(0x11d)]);const [_0xd954f8,_0x33abce]=await _0xd1e3b8[_0x471bee(0x11e)](inputBstackKeys);_0x4bb3f4=_0xd954f8,_0x2a30a1=_0x33abce;}else _0x567479=_0x500e46['parse'](_0x491ba5[_0x471bee(0x111)](_0x1f66e9,_0xd1e3b8[_0x471bee(0x15d)]));}let _0x38283f=![];const _0x2cdec6=_0x471bee(0x127)+_0x4bb3f4+':'+_0x2a30a1+'@'+BS_API_URL+_0x471bee(0x13d),_0x9c4032={'method':_0xd1e3b8['AbaSu'],'headers':_0xd1e3b8[_0x471bee(0x106)](getAuthHeader,_0x4bb3f4,_0x2a30a1),'throwHttpErrors':![]},_0x3a8d1b=await _0xd1e3b8['jXyTr'](got,_0x2cdec6,_0x9c4032);if(_0xd1e3b8[_0x471bee(0x156)](_0x3a8d1b,null)&&_0xd1e3b8['PAtgm'](_0x3a8d1b,undefined)&&_0xd1e3b8[_0x471bee(0x15c)](_0x3a8d1b[_0x471bee(0x10d)],0xc8)){if(_0xd1e3b8[_0x471bee(0x102)](_0xd1e3b8[_0x471bee(0x12a)],_0xd1e3b8['cIDwp']))_0x38283f=!![];else{const _0x4dba9b={};_0x4dba9b[_0x471bee(0x154)]=_0xd1e3b8[_0x471bee(0x123)],_0x4dba9b[_0x471bee(0x151)]=_0xd1e3b8[_0x471bee(0x160)];const _0x188ad3={};_0x188ad3[_0x471bee(0x154)]=_0xd1e3b8['ZsHSt'],_0x188ad3[_0x471bee(0x151)]=_0xd1e3b8['CGbgp'];const _0xfc5e74={};return _0xfc5e74['bstack-username']=_0x4dba9b,_0xfc5e74[_0x471bee(0x15e)]=_0x188ad3,_0x32a268[_0x471bee(0x15b)](_0x323c6c[_0x471bee(0x136)])[_0x471bee(0x13c)](_0x243d65)['options'](_0xfc5e74)[_0x471bee(0x158)]()[_0x471bee(0x148)]()[_0x471bee(0x161)](_0xd1e3b8[_0x471bee(0x104)])['argv'];}}if(_0x38283f){if(_0xd1e3b8['agDPP'](_0xd1e3b8[_0x471bee(0x103)],_0xd1e3b8[_0x471bee(0x103)])){let _0x4f3b09={};const _0x22fa56=_0xd1e3b8[_0x471bee(0x11e)](getCredentialsPath);fs[_0x471bee(0x14b)](_0x22fa56)&&(_0xd1e3b8['UqTOb'](_0xd1e3b8['SMZRX'],_0xd1e3b8[_0x471bee(0x15f)])?_0x4f3b09=JSON[_0x471bee(0x116)](fs[_0x471bee(0x111)](_0x22fa56,_0xd1e3b8[_0x471bee(0x15d)])):_0x562111=_0x6ff028[_0x471bee(0x10a)]);const _0xe1005b={};_0xe1005b[_0x471bee(0x144)]=_0x4bb3f4,_0xe1005b[_0x471bee(0xfb)]=_0x2a30a1,_0x4f3b09['Browserstack']=_0xe1005b,fs[_0x471bee(0x12b)](_0x22fa56,JSON[_0x471bee(0x152)](_0x4f3b09)),process[_0x471bee(0x120)](0x0);}else{let _0x3fbe02={};const _0x191e02=_0xd1e3b8[_0x471bee(0x117)](_0x319bce);_0x160fbb[_0x471bee(0x14b)](_0x191e02)&&(_0x3fbe02=_0x20a640[_0x471bee(0x116)](_0x2eb506[_0x471bee(0x111)](_0x191e02,_0xd1e3b8['ZkaOi'])));const _0x33cbb1={};_0x33cbb1[_0x471bee(0x144)]=_0x92da50,_0x33cbb1[_0x471bee(0xfb)]=_0x33eb54,_0x3fbe02[_0x471bee(0x140)]=_0x33cbb1,_0x2b8d92[_0x471bee(0x12b)](_0x191e02,_0x12b424[_0x471bee(0x152)](_0x3fbe02)),_0x5109c4[_0x471bee(0x120)](0x0);}}else logger[_0x471bee(0x133)](_0xd1e3b8[_0x471bee(0x126)]),await _0xd1e3b8[_0x471bee(0x109)](sendInstrumentationEvent,_0xb3a403,_0xd1e3b8[_0x471bee(0xfc)],messageTypes[_0x471bee(0x149)],_0xd1e3b8[_0x471bee(0x147)],null,_0xb3a403),process['exit'](0x1);}catch(_0x367bc6){logger[_0x471bee(0x133)](_0x367bc6['stack']),await _0xd1e3b8['LBmLN'](sendInstrumentationEvent,_0xb3a403,_0xd1e3b8[_0x471bee(0xfc)],messageTypes[_0x471bee(0x149)],_0xd1e3b8[_0x471bee(0x121)],_0x367bc6,_0xb3a403),process[_0x471bee(0x120)](0x1);}};function a12_0x172c(){const _0x2a356b=['Browserstack','wrong-creds','2PSPJZp','LVNiP','username','builder','got','pvEIX','strict','ERROR','ilnlo','existsSync','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','483YmtVwH','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','dOHop','bstackAccesskey','type','stringify','BROWSERSTACK_ACCESS_KEY','description','NsYOt','PAtgm','WRcCn','recommendCommands','1154376ITcCJn','3448sKpYDO','usage','uYrEr','ZkaOi','bstack-accesskey','yBSmI','CGbgp','help','GCCVp','env','unknown-error','gZVWa','debug','uuid','password','RTZvx','XyglF','881195sNNOHr','fOlKn','argv','VVFlS','MKLkA','PLiTi','sicKa','8199QlwsPW','YoiJN','LWrbt','init-called','LBmLN','bstackUsername','490416EAZbsT','VtbyB','statusCode','options','../utils/instrumentationUtils','ejgbm','readFileSync','zjfPK','1581684xXdNoj','requestId','HWvXb','parse','qSdHR','../config/constants','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','BROWSERSTACK_USERNAME','aYrGe','4PKMnHJ','INdiG','jEAYG','1670pvITrN','exit','KwTad','fczcE','GKZhE','command','44XZyCAf','ERbWD','https://','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','abMnD','cIDwp','writeFileSync','rrBHW','utf-8','desc','OAtNX','string','150251mOSQSM','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','error','bXZvF','../utils/utilityMethods','init','util','STBgN','ubbub','yEUok','mkdirSync','epilogue','/automate/plan.json','Grkog','JjrKq'];a12_0x172c=function(){return _0x2a356b;};return a12_0x172c();}
1
+ function a12_0x21e0(){const _0x3542ae=['Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','tdFiF','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','xiQaW','debug','ERROR','75whpmuI','zGgtY','gMtSZ','help','../utils/userInput','command','AnViP','error','username','existsSync','strict','argv','rZaOy','../config/constants','qxNDu','utf-8','ROygq','bstackUsername','bstackAccesskey','DFvWf','OLHVX','/automate/plan.json','11864gENRVC','QNWWQ','NFLJf','TxluJ','YsWAs','string','uuid','builder','ILTUn','BROWSERSTACK_USERNAME','GET','handler','readFileSync','BROWSERSTACK_ACCESS_KEY','enjAb','Browserstack','mkdirSync','PADZA','ffUSi','EBnyr','168512BXAxDW','parse','GvIxH','bstack-accesskey','cItLB','266412buOULj','YOBIu','CXwHA','CzzfK','AWpUP','cGfPX','init','pdTCo','KrxRC','NwTBk','type','usage','40CCcURy','description','bstack-username','writeFileSync','Fjzxa','IrRdR','util','VkOEm','stringify','vnBCb','uDePm','524601lesGSm','requestId','exit','qRALm','options','299844JfFkpV','../config/logger','recommendCommands','nFgdE','JHdBu','desc','Dmiuy','129984YCsKoY','unknown-error','../utils/utilityMethods','env','903urGpOr','wrong-creds','epilogue','got','XvcYF','init-called','MAOJf','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','password','1858455sLEhid','YZftM','statusCode','TiTXH','https://','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.'];a12_0x21e0=function(){return _0x3542ae;};return a12_0x21e0();}const a12_0x353539=a12_0x14fe;(function(_0x3cd4cc,_0x2dff28){const _0x3b3133=a12_0x14fe,_0x77fa4a=_0x3cd4cc();while(!![]){try{const _0x5d290c=parseInt(_0x3b3133(0x127))/0x1+-parseInt(_0x3b3133(0x10b))/0x2+-parseInt(_0x3b3133(0x12c))/0x3+-parseInt(_0x3b3133(0x133))/0x4+-parseInt(_0x3b3133(0x14d))/0x5*(-parseInt(_0x3b3133(0x110))/0x6)+-parseInt(_0x3b3133(0x137))/0x7*(-parseInt(_0x3b3133(0xf7))/0x8)+parseInt(_0x3b3133(0x141))/0x9*(-parseInt(_0x3b3133(0x11c))/0xa);if(_0x5d290c===_0x2dff28)break;else _0x77fa4a['push'](_0x77fa4a['shift']());}catch(_0x43e590){_0x77fa4a['push'](_0x77fa4a['shift']());}}}(a12_0x21e0,0x52d3a));function a12_0x14fe(_0x298925,_0x556c19){const _0x21e00e=a12_0x21e0();return a12_0x14fe=function(_0x14fef1,_0x3ca55e){_0x14fef1=_0x14fef1-0xeb;let _0x254003=_0x21e00e[_0x14fef1];return _0x254003;},a12_0x14fe(_0x298925,_0x556c19);}const fs=require('fs'),util=require(a12_0x353539(0x122)),got=require(a12_0x353539(0x13a)),{v4:uuidv4}=require(a12_0x353539(0xfd)),{logger}=require(a12_0x353539(0x12d)),{inputBstackKeys}=require(a12_0x353539(0x151)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x353539(0xee)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x353539(0x135)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a12_0x353539(0x152)]=a12_0x353539(0x116),exports[a12_0x353539(0x131)]=a12_0x353539(0x147),exports[a12_0x353539(0xfe)]=function(_0x389cc8){const _0x5ca59e=a12_0x353539,_0x3edcfc={};_0x3edcfc['pdTCo']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x3edcfc['AnViP']=_0x5ca59e(0xfc),_0x3edcfc[_0x5ca59e(0xfa)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x3edcfc['cItLB']='help';const _0x40557c=_0x3edcfc,_0x2bec83={};_0x2bec83[_0x5ca59e(0x11d)]=_0x40557c[_0x5ca59e(0x117)],_0x2bec83[_0x5ca59e(0x11a)]=_0x40557c[_0x5ca59e(0x153)];const _0x3b0739={};_0x3b0739[_0x5ca59e(0x11d)]=_0x40557c[_0x5ca59e(0xfa)],_0x3b0739[_0x5ca59e(0x11a)]=_0x40557c[_0x5ca59e(0x153)];const _0x27f392={};return _0x27f392['bstack-username']=_0x2bec83,_0x27f392[_0x5ca59e(0x10e)]=_0x3b0739,_0x389cc8[_0x5ca59e(0x11b)](HELP_HEADER_MESSAGE[_0x5ca59e(0x116)])[_0x5ca59e(0x139)](HELP_FOOTER_MESSAGE)[_0x5ca59e(0x12b)](_0x27f392)[_0x5ca59e(0x12e)]()[_0x5ca59e(0xeb)]()['help'](_0x40557c[_0x5ca59e(0x10f)])[_0x5ca59e(0xec)];},exports[a12_0x353539(0x102)]=async function(_0x1447c3){const _0x246093=a12_0x353539,_0x1551cb={'xgIGf':_0x246093(0x149),'VkOEm':'string','YsWAs':_0x246093(0x146),'enjAb':_0x246093(0x150),'zGgtY':function(_0x5df156){return _0x5df156();},'QNWWQ':_0x246093(0xf0),'nFgdE':function(_0x4a4fa5,_0x2e189a,_0x45cb5a,_0x1bef06,_0x54b65c,_0x100837,_0x364a1f){return _0x4a4fa5(_0x2e189a,_0x45cb5a,_0x1bef06,_0x54b65c,_0x100837,_0x364a1f);},'KrxRC':_0x246093(0x13c),'ILTUn':function(_0x50c75a){return _0x50c75a();},'ROygq':function(_0x2c4662,_0x38e511){return _0x2c4662===_0x38e511;},'NwTBk':'HOMzC','tdFiF':_0x246093(0x126),'XvcYF':_0x246093(0x13d),'CXwHA':'DBtjc','nkKXB':function(_0x5b433b,_0x49504c){return _0x5b433b!==_0x49504c;},'qxNDu':_0x246093(0xf9),'YOBIu':function(_0x26f3f0,_0xf8837a){return _0x26f3f0!==_0xf8837a;},'Dmiuy':_0x246093(0x130),'gMtSZ':_0x246093(0x115),'IrRdR':function(_0x11fce9,_0x1b4404){return _0x11fce9!==_0x1b4404;},'lRvpY':'JpoEb','rZaOy':_0x246093(0x120),'AWpUP':_0x246093(0x13e),'lEUqF':function(_0xad546f){return _0xad546f();},'GqmGP':_0x246093(0x101),'JCXQX':function(_0x2822d2,_0x535dbd,_0x5911d9){return _0x2822d2(_0x535dbd,_0x5911d9);},'cLXgL':function(_0x2187a6,_0x3b2a72,_0x3cf1f1){return _0x2187a6(_0x3b2a72,_0x3cf1f1);},'ortFI':function(_0x8ee6da,_0x4348e4){return _0x8ee6da!==_0x4348e4;},'PADZA':function(_0xf5829,_0x477e83){return _0xf5829===_0x477e83;},'xiQaW':_0x246093(0x144),'vnBCb':_0x246093(0x10a),'GvIxH':_0x246093(0x142),'DFvWf':function(_0x2d061f){return _0x2d061f();},'pwIDw':_0x246093(0x113),'OQAud':_0x246093(0x13f),'ffUSi':function(_0x2e3a4a,_0x3035b1,_0x182fe1,_0x4649b8,_0x4840db,_0x1c6735,_0x21808c){return _0x2e3a4a(_0x3035b1,_0x182fe1,_0x4649b8,_0x4840db,_0x1c6735,_0x21808c);},'OLHVX':_0x246093(0x138),'qRALm':_0x246093(0x134)};try{global_registry[_0x246093(0x128)]=_0x1551cb[_0x246093(0x14e)](uuidv4),_0x1551cb[_0x246093(0x12f)](sendInstrumentationEvent,_0x1447c3,_0x1551cb[_0x246093(0x118)],messageTypes['INFO'],null,null,_0x1447c3);const _0xeab71a=_0x1551cb[_0x246093(0xff)](getDirForConfig);if(!fs['existsSync'](_0xeab71a)){if(_0x1551cb[_0x246093(0xf1)](_0x1551cb[_0x246093(0x119)],_0x1551cb[_0x246093(0x148)])){const _0x465f5b={};_0x465f5b[_0x246093(0x11d)]=_0x1551cb['xgIGf'],_0x465f5b[_0x246093(0x11a)]=_0x1551cb[_0x246093(0x123)];const _0x16b266={};_0x16b266[_0x246093(0x11d)]=_0x1551cb[_0x246093(0xfb)],_0x16b266[_0x246093(0x11a)]=_0x1551cb[_0x246093(0x123)];const _0x2b12f2={};return _0x2b12f2[_0x246093(0x11e)]=_0x465f5b,_0x2b12f2['bstack-accesskey']=_0x16b266,_0x12c8c5[_0x246093(0x11b)](_0x4f04e7[_0x246093(0x116)])[_0x246093(0x139)](_0x7d5716)[_0x246093(0x12b)](_0x2b12f2)['recommendCommands']()[_0x246093(0xeb)]()[_0x246093(0x150)](_0x1551cb[_0x246093(0x105)])[_0x246093(0xec)];}else fs[_0x246093(0x107)](_0xeab71a);}let _0x1f83d9,_0x112180;process[_0x246093(0x136)][_0x246093(0x100)]&&(_0x1551cb['ROygq'](_0x1551cb['XvcYF'],_0x1551cb[_0x246093(0x13b)])?_0x1f83d9=process[_0x246093(0x136)][_0x246093(0x100)]:_0x1aeb0e=!![]);process[_0x246093(0x136)][_0x246093(0x104)]&&(_0x1551cb['ROygq'](_0x1551cb[_0x246093(0x112)],_0x1551cb['CXwHA'])?_0x112180=process[_0x246093(0x136)]['BROWSERSTACK_ACCESS_KEY']:_0x52b151=_0x4471a4[_0x246093(0xf3)]);_0x1447c3[_0x246093(0xf2)]&&(_0x1551cb['nkKXB'](_0x1551cb[_0x246093(0xef)],_0x1551cb[_0x246093(0xef)])?_0x4e98b8=_0x3e189b[_0x246093(0xf2)]:_0x1f83d9=_0x1447c3['bstackUsername']);if(_0x1447c3[_0x246093(0xf3)]){if(_0x1551cb[_0x246093(0x111)](_0x1551cb[_0x246093(0x132)],_0x1551cb[_0x246093(0x14f)]))_0x112180=_0x1447c3[_0x246093(0xf3)];else{let _0x3f0cb9={};const _0x2be034=_0x1551cb['zGgtY'](_0x450ef8);_0x2cbca7[_0x246093(0x156)](_0x2be034)&&(_0x3f0cb9=_0x2959a6[_0x246093(0x10c)](_0x1510e9[_0x246093(0x103)](_0x2be034,_0x1551cb[_0x246093(0xf8)])));const _0x1c48f4={};_0x1c48f4[_0x246093(0x155)]=_0x4c83cf,_0x1c48f4[_0x246093(0x140)]=_0xf739fd,_0x3f0cb9[_0x246093(0x106)]=_0x1c48f4,_0x4e7c51['writeFileSync'](_0x2be034,_0x2deb6b[_0x246093(0x124)](_0x3f0cb9)),_0x3a9b87[_0x246093(0x129)](0x0);}}if(_0x1551cb[_0x246093(0xf1)](_0x1f83d9,undefined)||_0x1551cb[_0x246093(0xf1)](_0x112180,undefined)){if(_0x1551cb[_0x246093(0x121)](_0x1551cb['lRvpY'],_0x1551cb[_0x246093(0xed)])){logger[_0x246093(0x14b)](_0x1551cb[_0x246093(0x114)]);const [_0x3b7b8d,_0x596668]=await _0x1551cb['lEUqF'](inputBstackKeys);_0x1f83d9=_0x3b7b8d,_0x112180=_0x596668;}else _0x105601=_0x41db84[_0x246093(0x10c)](_0x230f98['readFileSync'](_0x3fecee,_0x1551cb[_0x246093(0xf8)]));}let _0x3753c8=![];const _0x4d315e=_0x246093(0x145)+_0x1f83d9+':'+_0x112180+'@'+BS_API_URL+_0x246093(0xf6),_0x55cc1d={'method':_0x1551cb['GqmGP'],'headers':_0x1551cb['JCXQX'](getAuthHeader,_0x1f83d9,_0x112180),'throwHttpErrors':![]},_0x2bd92e=await _0x1551cb['cLXgL'](got,_0x4d315e,_0x55cc1d);_0x1551cb['YOBIu'](_0x2bd92e,null)&&_0x1551cb['ortFI'](_0x2bd92e,undefined)&&_0x1551cb[_0x246093(0x108)](_0x2bd92e[_0x246093(0x143)],0xc8)&&(_0x1551cb[_0x246093(0xf1)](_0x1551cb[_0x246093(0x14a)],_0x1551cb['xiQaW'])?_0x3753c8=!![]:_0x54d0d2=_0x414695[_0x246093(0x136)][_0x246093(0x100)]);if(_0x3753c8){if(_0x1551cb['nkKXB'](_0x1551cb[_0x246093(0x125)],_0x1551cb[_0x246093(0x10d)])){let _0x4337c2={};const _0x428aa1=_0x1551cb[_0x246093(0xf4)](getCredentialsPath);fs['existsSync'](_0x428aa1)&&(_0x1551cb[_0x246093(0xf1)](_0x1551cb['pwIDw'],_0x1551cb['pwIDw'])?_0x4337c2=JSON[_0x246093(0x10c)](fs[_0x246093(0x103)](_0x428aa1,_0x1551cb[_0x246093(0xf8)])):_0x464a59[_0x246093(0x107)](_0x6dce7a));const _0x193125={};_0x193125[_0x246093(0x155)]=_0x1f83d9,_0x193125[_0x246093(0x140)]=_0x112180,_0x4337c2[_0x246093(0x106)]=_0x193125,fs[_0x246093(0x11f)](_0x428aa1,JSON[_0x246093(0x124)](_0x4337c2)),process[_0x246093(0x129)](0x0);}else _0x2d94c9=_0x554432[_0x246093(0x136)][_0x246093(0x104)];}else logger[_0x246093(0x154)](_0x1551cb['OQAud']),await _0x1551cb['ffUSi'](sendInstrumentationEvent,_0x1447c3,_0x1551cb[_0x246093(0x118)],messageTypes[_0x246093(0x14c)],_0x1551cb[_0x246093(0xf5)],null,_0x1447c3),process[_0x246093(0x129)](0x1);}catch(_0x48cb45){logger[_0x246093(0x154)](_0x48cb45['stack']),await _0x1551cb[_0x246093(0x109)](sendInstrumentationEvent,_0x1447c3,_0x1551cb[_0x246093(0x118)],messageTypes['ERROR'],_0x1551cb[_0x246093(0x12a)],_0x48cb45,_0x1447c3),process[_0x246093(0x129)](0x1);}};
@@ -1 +1 @@
1
- const a13_0x1dc186=a13_0x1edf;(function(_0x415c0e,_0x494f51){const _0x5bf0c7=a13_0x1edf,_0x360b60=_0x415c0e();while(!![]){try{const _0x470cec=-parseInt(_0x5bf0c7(0x190))/0x1*(-parseInt(_0x5bf0c7(0x19d))/0x2)+-parseInt(_0x5bf0c7(0x197))/0x3*(-parseInt(_0x5bf0c7(0x198))/0x4)+parseInt(_0x5bf0c7(0x199))/0x5*(parseInt(_0x5bf0c7(0x189))/0x6)+parseInt(_0x5bf0c7(0x19b))/0x7+parseInt(_0x5bf0c7(0x188))/0x8*(parseInt(_0x5bf0c7(0x1a2))/0x9)+parseInt(_0x5bf0c7(0x19f))/0xa+parseInt(_0x5bf0c7(0x19a))/0xb*(-parseInt(_0x5bf0c7(0x18e))/0xc);if(_0x470cec===_0x494f51)break;else _0x360b60['push'](_0x360b60['shift']());}catch(_0x1e71de){_0x360b60['push'](_0x360b60['shift']());}}}(a13_0x5507,0x1a04b));function a13_0x1edf(_0x206cf1,_0x516714){const _0x550789=a13_0x5507();return a13_0x1edf=function(_0x1edf89,_0x482fe0){_0x1edf89=_0x1edf89-0x188;let _0x49ba1b=_0x550789[_0x1edf89];return _0x49ba1b;},a13_0x1edf(_0x206cf1,_0x516714);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x1dc186(0x194));exports[a13_0x1dc186(0x196)]=a13_0x1dc186(0x19e),exports['desc']='List\x20down\x20the\x20Grid\x20resources.',exports['builder']=function(_0x18d72a){const _0x1bcdcc=a13_0x1dc186,_0x77c9c3={};_0x77c9c3[_0x1bcdcc(0x18f)]=_0x1bcdcc(0x191),_0x77c9c3[_0x1bcdcc(0x195)]=_0x1bcdcc(0x18a);const _0x151d3d=_0x77c9c3;return _0x18d72a[_0x1bcdcc(0x19c)](_0x151d3d[_0x1bcdcc(0x18f)])[_0x1bcdcc(0x192)]()[_0x1bcdcc(0x18c)](HELP_HEADER_MESSAGE['list'][_0x1bcdcc(0x18d)])[_0x1bcdcc(0x1a0)](HELP_FOOTER_MESSAGE)[_0x1bcdcc(0x1a1)]()[_0x1bcdcc(0x193)]()[_0x1bcdcc(0x18a)](_0x151d3d['oCeml']);},exports[a13_0x1dc186(0x18b)]=function(_0x2fa891){};function a13_0x5507(){const _0x2feb40=['415264PseYTy','list','1530470RPeBKL','epilogue','recommendCommands','617697zDTCtP','16nUDOAW','24IQSFnT','help','handler','usage','root','480tcvkYW','qVeOy','1gKhZVA','list_commands','demandCommand','strict','../config/constants','oCeml','command','117BtQDcD','3156fynoAh','47780lCDVAp','160127JvULia','853377PZFdQd','commandDir'];a13_0x5507=function(){return _0x2feb40;};return a13_0x5507();}
1
+ const a13_0x122030=a13_0x95b1;(function(_0x139cb9,_0x3fdd0a){const _0x2e21f2=a13_0x95b1,_0x3f78f2=_0x139cb9();while(!![]){try{const _0x449040=-parseInt(_0x2e21f2(0x12c))/0x1+parseInt(_0x2e21f2(0x11e))/0x2*(parseInt(_0x2e21f2(0x118))/0x3)+parseInt(_0x2e21f2(0x12b))/0x4*(-parseInt(_0x2e21f2(0x125))/0x5)+parseInt(_0x2e21f2(0x124))/0x6*(-parseInt(_0x2e21f2(0x116))/0x7)+parseInt(_0x2e21f2(0x122))/0x8+-parseInt(_0x2e21f2(0x123))/0x9*(parseInt(_0x2e21f2(0x11b))/0xa)+-parseInt(_0x2e21f2(0x117))/0xb*(-parseInt(_0x2e21f2(0x129))/0xc);if(_0x449040===_0x3fdd0a)break;else _0x3f78f2['push'](_0x3f78f2['shift']());}catch(_0x13b047){_0x3f78f2['push'](_0x3f78f2['shift']());}}}(a13_0x5760,0x5d575));function a13_0x95b1(_0x3de210,_0x357f1d){const _0x576069=a13_0x5760();return a13_0x95b1=function(_0x95b18f,_0x4c6689){_0x95b18f=_0x95b18f-0x113;let _0x492668=_0x576069[_0x95b18f];return _0x492668;},a13_0x95b1(_0x3de210,_0x357f1d);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x122030(0x127));exports['command']=a13_0x122030(0x12a),exports['desc']=a13_0x122030(0x126),exports[a13_0x122030(0x121)]=function(_0x3fe46a){const _0x22f0e7=a13_0x122030,_0x350e80={};_0x350e80[_0x22f0e7(0x11d)]=_0x22f0e7(0x11f),_0x350e80[_0x22f0e7(0x128)]=_0x22f0e7(0x114);const _0xec9e6=_0x350e80;return _0x3fe46a[_0x22f0e7(0x119)](_0xec9e6['fXEXH'])['demandCommand']()[_0x22f0e7(0x115)](HELP_HEADER_MESSAGE[_0x22f0e7(0x12a)][_0x22f0e7(0x11a)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x22f0e7(0x120)]()[_0x22f0e7(0x113)]()[_0x22f0e7(0x114)](_0xec9e6[_0x22f0e7(0x128)]);},exports[a13_0x122030(0x11c)]=function(_0x5ce29b){};function a13_0x5760(){const _0x18d31f=['builder','5214736YWhQlD','11043djZshL','2876730wftxyU','6490lSbLdi','List\x20down\x20the\x20Grid\x20resources.','../config/constants','zDDxi','468ewHcyR','list','1008PSrxfO','299547DPYwYj','strict','help','usage','7BvbrJc','378851QDqaYW','729237ohtfPC','commandDir','root','6110qJDprc','handler','fXEXH','2LhZxhg','list_commands','recommendCommands'];a13_0x5760=function(){return _0x18d31f;};return a13_0x5760();}
@@ -1 +1 @@
1
- function a14_0x1dc6(){const _0x3b8d13=['OqdeJ','dcCfo','handler','XIlYm','stack','https://','omDbW','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','LYhRf','command','unknown-error','exit','Failed\x20to\x20list\x20resources!\x20Error:\x20','usage','bstackUsername','password','../../utils/utilityMethods','jJJeS','616EizHXM','ERROR','init-not-called','builder','argv','1626425SzAqtD','grid-profiles','tjETe','15860830GmCWOo','836576JnonVW','allGridProfiles','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','PgvWI','1032pdnBvL','grid-profile-name','nDGvX','oNSbv','statusCode','help','boolean','list-grid-profiles-called','table','YLQAA','got','stringify','bstackAccesskey','parse','type','ttSZR','qoXJp','rDdqG','readFileSync','247929MWqfAT','cloud-provider','INFO','uuid','forEach','existsSync','lnuAQ','/packages/cli/get-grid-profiles','body','region','unauthorised','push','9JKgaBw','GGVdD','epilogue','error','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','66IarfBz','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','username','../../utils/instrumentationUtils','../../config/constants','gridProfile','WKbel','255770hYeymk','xTbeJ','Browserstack','316024JJHdjv','desc','concurrency','GET','301UmfoAh','MrYLL','10596mwtZuH','/packages/cli/get-all-grid-profiles','YCSoa','FXftz','list','KHoCw'];a14_0x1dc6=function(){return _0x3b8d13;};return a14_0x1dc6();}const a14_0x1d2864=a14_0x1528;(function(_0xddcde,_0x44fb21){const _0x3aa465=a14_0x1528,_0x22a1c0=_0xddcde();while(!![]){try{const _0x2c6c16=-parseInt(_0x3aa465(0xd4))/0x1+parseInt(_0x3aa465(0xcf))/0x2*(parseInt(_0x3aa465(0xb7))/0x3)+parseInt(_0x3aa465(0xd8))/0x4+-parseInt(_0x3aa465(0xae))/0x5*(parseInt(_0x3aa465(0xa6))/0x6)+parseInt(_0x3aa465(0xb5))/0x7*(-parseInt(_0x3aa465(0xb1))/0x8)+-parseInt(_0x3aa465(0xa1))/0x9*(-parseInt(_0x3aa465(0xd7))/0xa)+parseInt(_0x3aa465(0x95))/0xb*(parseInt(_0x3aa465(0xdc))/0xc);if(_0x2c6c16===_0x44fb21)break;else _0x22a1c0['push'](_0x22a1c0['shift']());}catch(_0x65f9da){_0x22a1c0['push'](_0x22a1c0['shift']());}}}(a14_0x1dc6,0xe3f39));const fs=require('fs'),got=require(a14_0x1d2864(0xe6)),{table}=require(a14_0x1d2864(0xe4)),{v4:uuidv4}=require(a14_0x1d2864(0x98)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x1d2864(0xab)),{getCredentialsPath,getAuthHeader}=require(a14_0x1d2864(0xcd)),{sendInstrumentationEvent}=require(a14_0x1d2864(0xaa));function a14_0x1528(_0x3020c2,_0x37c5a7){const _0x1dc60f=a14_0x1dc6();return a14_0x1528=function(_0x152843,_0x3ed075){_0x152843=_0x152843-0x95;let _0x50df38=_0x1dc60f[_0x152843];return _0x50df38;},a14_0x1528(_0x3020c2,_0x37c5a7);}exports[a14_0x1d2864(0xc6)]=a14_0x1d2864(0xd5),exports[a14_0x1d2864(0xb2)]=a14_0x1d2864(0xa7),exports[a14_0x1d2864(0xd2)]=function(_0x2d983c){const _0x1da563=a14_0x1d2864,_0x47cba6={};_0x47cba6[_0x1da563(0xad)]=_0x1da563(0xda),_0x47cba6['qoXJp']=_0x1da563(0xe2),_0x47cba6[_0x1da563(0xdb)]=_0x1da563(0xe1);const _0x3fedf2=_0x47cba6,_0x24d96a={};_0x24d96a['description']=_0x3fedf2[_0x1da563(0xad)],_0x24d96a[_0x1da563(0xea)]=_0x3fedf2[_0x1da563(0xec)];const _0x39060f={};return _0x39060f['all-grid-profiles']=_0x24d96a,_0x2d983c[_0x1da563(0xca)](HELP_HEADER_MESSAGE[_0x1da563(0xbb)][_0x1da563(0xac)])[_0x1da563(0xa3)](HELP_FOOTER_MESSAGE)['options'](_0x39060f)['help'](_0x3fedf2[_0x1da563(0xdb)])[_0x1da563(0xd3)];},exports[a14_0x1d2864(0xbf)]=async function(_0x4c7d40){const _0xc5f5fb=a14_0x1d2864,_0x3081d0={'FXftz':function(_0x4ff81e){return _0x4ff81e();},'hGvnC':_0xc5f5fb(0xc4),'dcCfo':function(_0x571b77,_0x5639df,_0x507507,_0x29c0ec,_0x3fbc7f,_0x4c2860,_0x1ed306){return _0x571b77(_0x5639df,_0x507507,_0x29c0ec,_0x3fbc7f,_0x4c2860,_0x1ed306);},'MrYLL':_0xc5f5fb(0xe3),'lnuAQ':_0xc5f5fb(0xd1),'YCSoa':_0xc5f5fb(0xb4),'omDbW':function(_0x30c6c6,_0x51f6de,_0x557434){return _0x30c6c6(_0x51f6de,_0x557434);},'nDGvX':function(_0x2e76b1,_0x1f97e8,_0x9e8c83,_0x559884,_0x1d5ea1,_0x355fce,_0x3e76b3){return _0x2e76b1(_0x1f97e8,_0x9e8c83,_0x559884,_0x1d5ea1,_0x355fce,_0x3e76b3);},'tjETe':function(_0x588831,_0x3e5bc1){return _0x588831!==_0x3e5bc1;},'abjfD':function(_0x1c01b4,_0x524f00){return _0x1c01b4!==_0x524f00;},'GGVdD':function(_0x16effc,_0x4e4cf9){return _0x16effc===_0x4e4cf9;},'OqdeJ':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','KHoCw':_0xc5f5fb(0xdd),'omkFR':_0xc5f5fb(0x96),'ttSZR':_0xc5f5fb(0x9e),'rDdqG':'concurrency','XIlYm':function(_0x4bff52,_0x11b685){return _0x4bff52(_0x11b685);},'YLQAA':_0xc5f5fb(0xa8),'oNSbv':function(_0x1c5db2,_0x4699aa,_0x3216ac,_0x1998de,_0x4d48f9,_0x4a9a21,_0x29948d){return _0x1c5db2(_0x4699aa,_0x3216ac,_0x1998de,_0x4d48f9,_0x4a9a21,_0x29948d);},'xTbeJ':_0xc5f5fb(0x9f),'LYhRf':'server-error','znyNd':function(_0x2978e9,_0x1e69e8,_0x29e45c,_0x1eae08,_0x3ba5cc,_0x425a9a,_0x2928d7){return _0x2978e9(_0x1e69e8,_0x29e45c,_0x1eae08,_0x3ba5cc,_0x425a9a,_0x2928d7);},'jJJeS':_0xc5f5fb(0xc7)};try{global_registry['requestId']=_0x3081d0[_0xc5f5fb(0xba)](uuidv4);let _0x2c14f=_0xc5f5fb(0xc2)+AG_API_URL+_0xc5f5fb(0x9c);_0x4c7d40[_0xc5f5fb(0xd9)]&&(_0x2c14f='https://'+AG_API_URL+_0xc5f5fb(0xb8));!fs[_0xc5f5fb(0x9a)](_0x3081d0['FXftz'](getCredentialsPath))&&(console['error'](_0x3081d0['hGvnC']),await _0x3081d0[_0xc5f5fb(0xbe)](sendInstrumentationEvent,_0x4c7d40,_0x3081d0[_0xc5f5fb(0xb6)],messageTypes[_0xc5f5fb(0xd0)],_0x3081d0[_0xc5f5fb(0x9b)],null,_0x4c7d40),process[_0xc5f5fb(0xc8)](0x1));const _0x1f63cf=JSON['parse'](fs[_0xc5f5fb(0xee)](_0x3081d0[_0xc5f5fb(0xba)](getCredentialsPath))),_0x3fd1e5={'method':_0x3081d0[_0xc5f5fb(0xb9)],'headers':_0x3081d0[_0xc5f5fb(0xc3)](getAuthHeader,_0x1f63cf[_0xc5f5fb(0xb0)][_0xc5f5fb(0xa9)],_0x1f63cf['Browserstack'][_0xc5f5fb(0xcc)]),'throwHttpErrors':![]};global_registry[_0xc5f5fb(0xcb)]=_0x1f63cf[_0xc5f5fb(0xb0)]['username'],global_registry[_0xc5f5fb(0xe8)]=_0x1f63cf[_0xc5f5fb(0xb0)][_0xc5f5fb(0xcc)],_0x3081d0[_0xc5f5fb(0xde)](sendInstrumentationEvent,_0x4c7d40,_0x3081d0[_0xc5f5fb(0xb6)],messageTypes[_0xc5f5fb(0x97)],null,null,_0x4c7d40);const _0x4d7387=await _0x3081d0[_0xc5f5fb(0xc3)](got,_0x2c14f,_0x3fd1e5);if(_0x3081d0[_0xc5f5fb(0xd6)](_0x4d7387,null)&&_0x3081d0['abjfD'](_0x4d7387,undefined)&&_0x3081d0[_0xc5f5fb(0xa2)](_0x4d7387[_0xc5f5fb(0xe0)],0xc8)){const _0x569e10=JSON[_0xc5f5fb(0xe9)](_0x4d7387[_0xc5f5fb(0x9d)]);console['log'](_0x3081d0[_0xc5f5fb(0xbd)]);const _0x23bd0c=[];_0x23bd0c['push']([_0x3081d0[_0xc5f5fb(0xbc)],_0x3081d0['omkFR'],_0x3081d0[_0xc5f5fb(0xeb)],_0x3081d0[_0xc5f5fb(0xed)]]),_0x569e10[_0xc5f5fb(0x99)](_0x7ff589=>{const _0x5d7caa=_0xc5f5fb;_0x23bd0c[_0x5d7caa(0xa0)]([_0x7ff589['name'],_0x7ff589['cloudProvider'],_0x7ff589['region'],_0x7ff589[_0x5d7caa(0xb3)]]);}),console['log'](_0x3081d0[_0xc5f5fb(0xc0)](table,_0x23bd0c)),process[_0xc5f5fb(0xc8)](0x0);}_0x3081d0[_0xc5f5fb(0xa2)](_0x4d7387['statusCode'],0x191)&&(console[_0xc5f5fb(0xa4)](_0x3081d0[_0xc5f5fb(0xe5)]),await _0x3081d0[_0xc5f5fb(0xdf)](sendInstrumentationEvent,_0x4c7d40,_0x3081d0['MrYLL'],messageTypes['ERROR'],_0x3081d0[_0xc5f5fb(0xaf)],null,_0x4c7d40),process[_0xc5f5fb(0xc8)](0x1)),console[_0xc5f5fb(0xa4)](_0xc5f5fb(0xa5)+JSON[_0xc5f5fb(0xe7)](_0x4d7387)),await _0x3081d0['dcCfo'](sendInstrumentationEvent,_0x4c7d40,_0x3081d0[_0xc5f5fb(0xb6)],messageTypes['ERROR'],_0x3081d0[_0xc5f5fb(0xc5)],_0x4d7387,_0x4c7d40),process[_0xc5f5fb(0xc8)](0x1);}catch(_0x11c3bc){console[_0xc5f5fb(0xa4)](_0xc5f5fb(0xc9)+_0x11c3bc[_0xc5f5fb(0xc1)]),await _0x3081d0['znyNd'](sendInstrumentationEvent,_0x4c7d40,_0x3081d0[_0xc5f5fb(0xb6)],messageTypes[_0xc5f5fb(0xd0)],_0x3081d0[_0xc5f5fb(0xce)],_0x11c3bc,_0x4c7d40),process[_0xc5f5fb(0xc8)](0x1);}};
1
+ const a14_0x1589da=a14_0x4f3f;(function(_0x1a3285,_0x1f76f8){const _0x422f88=a14_0x4f3f,_0x1a45da=_0x1a3285();while(!![]){try{const _0x8aa782=parseInt(_0x422f88(0xd3))/0x1*(parseInt(_0x422f88(0x98))/0x2)+-parseInt(_0x422f88(0xbf))/0x3+parseInt(_0x422f88(0xb3))/0x4*(-parseInt(_0x422f88(0x9e))/0x5)+parseInt(_0x422f88(0x8a))/0x6+parseInt(_0x422f88(0xa8))/0x7+-parseInt(_0x422f88(0x89))/0x8*(parseInt(_0x422f88(0xa1))/0x9)+-parseInt(_0x422f88(0xac))/0xa*(parseInt(_0x422f88(0xa0))/0xb);if(_0x8aa782===_0x1f76f8)break;else _0x1a45da['push'](_0x1a45da['shift']());}catch(_0x35fc7c){_0x1a45da['push'](_0x1a45da['shift']());}}}(a14_0x3fc2,0x986df));function a14_0x4f3f(_0x3b0b18,_0x493485){const _0x3fc2b0=a14_0x3fc2();return a14_0x4f3f=function(_0x4f3f75,_0x2b61ed){_0x4f3f75=_0x4f3f75-0x89;let _0x5704fa=_0x3fc2b0[_0x4f3f75];return _0x5704fa;},a14_0x4f3f(_0x3b0b18,_0x493485);}const fs=require('fs'),got=require(a14_0x1589da(0xaf)),{table}=require(a14_0x1589da(0xbc)),{v4:uuidv4}=require(a14_0x1589da(0xb6)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x1589da(0xcf)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x1589da(0x9f));exports['command']='grid-profiles',exports[a14_0x1589da(0xad)]=a14_0x1589da(0xb1),exports['builder']=function(_0x5ae866){const _0x54ca8c=a14_0x1589da,_0x5652bc={};_0x5652bc['VflWx']=_0x54ca8c(0x94),_0x5652bc['HFPyW']=_0x54ca8c(0xb0),_0x5652bc['tVtaQ']=_0x54ca8c(0xae);const _0x13a7ca=_0x5652bc,_0x159881={};_0x159881[_0x54ca8c(0xb7)]=_0x13a7ca['VflWx'],_0x159881[_0x54ca8c(0xd9)]=_0x13a7ca[_0x54ca8c(0x97)];const _0x38cd26={};return _0x38cd26[_0x54ca8c(0xdb)]=_0x159881,_0x5ae866['usage'](HELP_HEADER_MESSAGE[_0x54ca8c(0xa6)]['gridProfile'])[_0x54ca8c(0xc1)](HELP_FOOTER_MESSAGE)[_0x54ca8c(0xcc)](_0x38cd26)[_0x54ca8c(0xae)](_0x13a7ca['tVtaQ'])[_0x54ca8c(0xc4)];},exports[a14_0x1589da(0xb2)]=async function(_0x18a414){const _0x421640=a14_0x1589da,_0x14fd44={'WzcED':function(_0x3cdbd3){return _0x3cdbd3();},'XdSud':function(_0x170817){return _0x170817();},'AJGJh':_0x421640(0xb4),'FlAgx':function(_0x5ec475,_0x45fd75,_0x4044b9,_0x1d02e9,_0x221187,_0x19d891,_0x189db2){return _0x5ec475(_0x45fd75,_0x4044b9,_0x1d02e9,_0x221187,_0x19d891,_0x189db2);},'OEesi':_0x421640(0xe0),'ZOmUY':_0x421640(0xdd),'HXtwe':function(_0x26b8b8){return _0x26b8b8();},'MZCXz':_0x421640(0xcb),'jXqSU':function(_0x2357e2,_0x3eb52c,_0x37f946){return _0x2357e2(_0x3eb52c,_0x37f946);},'MaTIS':function(_0x573180,_0xc899fa,_0x3e7171,_0x437a94,_0x2b2175,_0x28a36a,_0x13c387){return _0x573180(_0xc899fa,_0x3e7171,_0x437a94,_0x2b2175,_0x28a36a,_0x13c387);},'vjxef':function(_0x50a132,_0x188860,_0x313845){return _0x50a132(_0x188860,_0x313845);},'mPrze':function(_0x2312bd,_0x57e10d){return _0x2312bd!==_0x57e10d;},'QvAbT':function(_0xcaac7,_0x3fd9a5){return _0xcaac7!==_0x3fd9a5;},'BLTdI':function(_0x4021bb,_0x58343c){return _0x4021bb===_0x58343c;},'aNMMh':_0x421640(0xa5),'jsUem':_0x421640(0x99),'zqAdQ':_0x421640(0xbd),'dRZCZ':'region','Sncnt':_0x421640(0xa2),'qRUps':function(_0x1156aa,_0x889c73){return _0x1156aa(_0x889c73);},'arqKr':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','YhYtD':function(_0x1222e3,_0xe804fa,_0x415272,_0x429e4f,_0x1bb1f2,_0x142d32,_0x20da3d){return _0x1222e3(_0xe804fa,_0x415272,_0x429e4f,_0x1bb1f2,_0x142d32,_0x20da3d);},'TzCgc':_0x421640(0xdf),'OKLLv':function(_0x2da0ac,_0x2c7da4,_0x4def58,_0x1fb5ef,_0x201acf,_0x20a12d,_0x178438){return _0x2da0ac(_0x2c7da4,_0x4def58,_0x1fb5ef,_0x201acf,_0x20a12d,_0x178438);},'uAbyR':_0x421640(0xcd),'FAXNm':function(_0x4515b1,_0x4060d8,_0x2d9e3b,_0x3aaefe,_0x4cfb20,_0x542ed6,_0x1bd043){return _0x4515b1(_0x4060d8,_0x2d9e3b,_0x3aaefe,_0x4cfb20,_0x542ed6,_0x1bd043);},'tcOto':_0x421640(0xda)};try{global_registry[_0x421640(0x91)]=_0x14fd44[_0x421640(0xaa)](uuidv4);let _0x3028e6=_0x421640(0x9b)+AG_API_URL+_0x421640(0xd5);_0x18a414[_0x421640(0xc2)]&&(_0x3028e6=_0x421640(0x9b)+AG_API_URL+_0x421640(0xdc));!fs[_0x421640(0xc3)](_0x14fd44[_0x421640(0xb9)](getCredentialsPath))&&(console[_0x421640(0xd2)](_0x14fd44[_0x421640(0xc8)]),await _0x14fd44[_0x421640(0xce)](sendInstrumentationEvent,_0x18a414,_0x14fd44[_0x421640(0xbe)],messageTypes[_0x421640(0xc6)],_0x14fd44[_0x421640(0xde)],null,_0x18a414),process['exit'](0x1));const _0xd2f0a8=JSON[_0x421640(0x9a)](fs['readFileSync'](_0x14fd44[_0x421640(0x95)](getCredentialsPath))),_0x4e1f5b={'method':_0x14fd44[_0x421640(0x90)],'headers':_0x14fd44['jXqSU'](getAuthHeader,_0xd2f0a8['Browserstack'][_0x421640(0xe1)],_0xd2f0a8[_0x421640(0xa3)][_0x421640(0xba)]),'throwHttpErrors':![]};global_registry[_0x421640(0xa7)]=_0xd2f0a8['Browserstack'][_0x421640(0xe1)],global_registry['bstackAccesskey']=_0xd2f0a8['Browserstack']['password'],_0x14fd44[_0x421640(0xa4)](sendInstrumentationEvent,_0x18a414,_0x14fd44['OEesi'],messageTypes[_0x421640(0x8e)],null,null,_0x18a414);const _0x9ebff8=await _0x14fd44[_0x421640(0x8d)](got,_0x3028e6,_0x4e1f5b);if(_0x14fd44['mPrze'](_0x9ebff8,null)&&_0x14fd44[_0x421640(0xb8)](_0x9ebff8,undefined)&&_0x14fd44[_0x421640(0xab)](_0x9ebff8[_0x421640(0xc5)],0xc8)){const _0x5060a7=JSON['parse'](_0x9ebff8[_0x421640(0xc0)]);console[_0x421640(0x8f)](_0x14fd44[_0x421640(0xca)]);const _0x37766c=[];_0x37766c[_0x421640(0xd1)]([_0x14fd44[_0x421640(0xc9)],_0x14fd44[_0x421640(0x92)],_0x14fd44[_0x421640(0xd7)],_0x14fd44[_0x421640(0x9d)]]),_0x5060a7['forEach'](_0x2a89fb=>{const _0x5d89f3=_0x421640;_0x37766c[_0x5d89f3(0xd1)]([_0x2a89fb[_0x5d89f3(0xbb)],_0x2a89fb['cloudProvider'],_0x2a89fb[_0x5d89f3(0xb5)],_0x2a89fb['concurrency']]);}),console[_0x421640(0x8f)](_0x14fd44[_0x421640(0xd4)](table,_0x37766c)),process[_0x421640(0x93)](0x0);}_0x14fd44[_0x421640(0xab)](_0x9ebff8[_0x421640(0xc5)],0x191)&&(console[_0x421640(0xd2)](_0x14fd44[_0x421640(0x9c)]),await _0x14fd44[_0x421640(0xd6)](sendInstrumentationEvent,_0x18a414,_0x14fd44['OEesi'],messageTypes[_0x421640(0xc6)],_0x14fd44[_0x421640(0x8b)],null,_0x18a414),process[_0x421640(0x93)](0x1)),console[_0x421640(0xd2)](_0x421640(0x96)+JSON[_0x421640(0xd0)](_0x9ebff8)),await _0x14fd44[_0x421640(0xd8)](sendInstrumentationEvent,_0x18a414,_0x14fd44[_0x421640(0xbe)],messageTypes[_0x421640(0xc6)],_0x14fd44['uAbyR'],_0x9ebff8,_0x18a414),process[_0x421640(0x93)](0x1);}catch(_0x54db0a){console[_0x421640(0xd2)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x54db0a[_0x421640(0x8c)]),await _0x14fd44[_0x421640(0xc7)](sendInstrumentationEvent,_0x18a414,_0x14fd44[_0x421640(0xbe)],messageTypes[_0x421640(0xc6)],_0x14fd44[_0x421640(0xa9)],_0x54db0a,_0x18a414),process[_0x421640(0x93)](0x1);}};function a14_0x3fc2(){const _0x503197=['List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','handler','43964vsJhQq','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','region','uuid','description','QvAbT','XdSud','password','name','table','cloud-provider','OEesi','1845429cudEml','body','epilogue','allGridProfiles','existsSync','argv','statusCode','ERROR','FAXNm','AJGJh','jsUem','aNMMh','GET','options','server-error','FlAgx','../../config/constants','stringify','push','error','910943LTcoqO','qRUps','/packages/cli/get-grid-profiles','YhYtD','dRZCZ','OKLLv','type','unknown-error','all-grid-profiles','/packages/cli/get-all-grid-profiles','init-not-called','ZOmUY','unauthorised','list-grid-profiles-called','username','34192nuHQdQ','3901830QEQjCX','TzCgc','stack','vjxef','INFO','log','MZCXz','requestId','zqAdQ','exit','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','HXtwe','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','HFPyW','2zowrGN','grid-profile-name','parse','https://','arqKr','Sncnt','70KeTDAT','../../utils/instrumentationUtils','3904516bSuYJj','981SwNKgd','concurrency','Browserstack','MaTIS','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','list','bstackUsername','4570594Tdydec','tcOto','WzcED','BLTdI','10HCgEcm','desc','help','got','boolean'];a14_0x3fc2=function(){return _0x503197;};return a14_0x3fc2();}
@@ -1 +1 @@
1
- const a15_0xdc09d0=a15_0x117a;(function(_0x51de8d,_0x5f8f9b){const _0x344390=a15_0x117a,_0x36419e=_0x51de8d();while(!![]){try{const _0xc9bf6d=-parseInt(_0x344390(0xe9))/0x1*(-parseInt(_0x344390(0xc8))/0x2)+-parseInt(_0x344390(0xe0))/0x3+-parseInt(_0x344390(0xc9))/0x4*(-parseInt(_0x344390(0xc1))/0x5)+parseInt(_0x344390(0x108))/0x6*(parseInt(_0x344390(0x109))/0x7)+-parseInt(_0x344390(0x104))/0x8+parseInt(_0x344390(0xe6))/0x9+parseInt(_0x344390(0xdf))/0xa;if(_0xc9bf6d===_0x5f8f9b)break;else _0x36419e['push'](_0x36419e['shift']());}catch(_0x224de5){_0x36419e['push'](_0x36419e['shift']());}}}(a15_0x3691,0xc8d64));const fs=require('fs'),got=require(a15_0xdc09d0(0x110)),{table}=require('table'),{v4:uuidv4}=require(a15_0xdc09d0(0xe3)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0xdc09d0(0xd7));function a15_0x3691(){const _0x1cf9a7=['server-error','exit','/packages/cli/get-grids','msjqA','got','body','grid','SBTdU','handler','unauthorised','push','10nPaZrR','GlgBQ','Iwzso','grid-name','desc','username','Browserstack','36gWQLrn','1805732tkQMnw','command','builder','tAyHc','AbmYD','epilogue','JDbOk','running','statusCode','unknown-error','UhLgf','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','DCkPQ','init-not-called','../../utils/instrumentationUtils','GET','Failed\x20to\x20list\x20resources!\x20Error:\x20','COCgc','description','options','InJzV','IASjt','1289870GxgJYI','2151501xESSmx','ERROR','stringify','uuid','ZRQHQ','XczEg','5588262IFktWh','clusterName','boolean','21599XVGGOc','PPOtU','wNMyl','NLZZO','rnufT','password','name','https://','GirbY','existsSync','bstackAccesskey','XzQDQ','usage','help','stack','log','all-grids','OcAEW','parse','cluster-name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','list-grids-called','bstackUsername','forEach','error','queued','vDTkC','11164176VzlHib','/packages/cli/get-all-grids','Jntlm','argv','2681292FNPmbi','14pKFDIB','list','lxDlJ'];a15_0x3691=function(){return _0x1cf9a7;};return a15_0x3691();}function a15_0x117a(_0x22a5bd,_0x59181b){const _0x369189=a15_0x3691();return a15_0x117a=function(_0x117aa5,_0x3195ac){_0x117aa5=_0x117aa5-0xbb;let _0x5da63e=_0x369189[_0x117aa5];return _0x5da63e;},a15_0x117a(_0x22a5bd,_0x59181b);}exports[a15_0xdc09d0(0xca)]='grids',exports[a15_0xdc09d0(0xc5)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0xdc09d0(0xcb)]=function(_0x5cd909){const _0x274456=a15_0xdc09d0,_0x23f9cb={};_0x23f9cb[_0x274456(0xd5)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x23f9cb[_0x274456(0xed)]=_0x274456(0xe8),_0x23f9cb[_0x274456(0xbd)]=_0x274456(0xf6);const _0x32edd1=_0x23f9cb,_0x4ed22d={};_0x4ed22d[_0x274456(0xdb)]=_0x32edd1[_0x274456(0xd5)],_0x4ed22d['type']=_0x32edd1[_0x274456(0xed)];const _0x113f19={};return _0x113f19[_0x274456(0xf9)]=_0x4ed22d,_0x5cd909[_0x274456(0xf5)](HELP_HEADER_MESSAGE[_0x274456(0x10a)][_0x274456(0xbc)])[_0x274456(0xce)](HELP_FOOTER_MESSAGE)[_0x274456(0xdc)](_0x113f19)[_0x274456(0xf6)](_0x32edd1[_0x274456(0xbd)])[_0x274456(0x107)];},exports[a15_0xdc09d0(0xbe)]=async function(_0x5f1ca9){const _0x347f2c=a15_0xdc09d0,_0x19a876={'GlgBQ':function(_0x5d23af){return _0x5d23af();},'AbmYD':_0x347f2c(0xfd),'ZRQHQ':function(_0x1a1049,_0x35d830,_0x1e3b6c,_0x487bad,_0x438bb7,_0x2fa9df,_0x2d7663){return _0x1a1049(_0x35d830,_0x1e3b6c,_0x487bad,_0x438bb7,_0x2fa9df,_0x2d7663);},'Jntlm':_0x347f2c(0xfe),'GirbY':_0x347f2c(0xd6),'qdlGt':_0x347f2c(0xd8),'PPOtU':function(_0x24162d,_0x20a7ef,_0x1ea2af){return _0x24162d(_0x20a7ef,_0x1ea2af);},'NLZZO':function(_0x558971,_0x3d88a2){return _0x558971!==_0x3d88a2;},'UhLgf':function(_0xabe7d0,_0x2bc765){return _0xabe7d0!==_0x2bc765;},'COCgc':function(_0x23970c,_0x24e8d9){return _0x23970c===_0x24e8d9;},'vDTkC':'\x0aFound\x20the\x20following\x20grids:\x0a','XczEg':'grid-id','tAyHc':_0x347f2c(0xc4),'wNMyl':'status','JDbOk':_0x347f2c(0xd0),'FvlQf':_0x347f2c(0x102),'OcAEW':_0x347f2c(0xfc),'InJzV':function(_0x331b8b,_0xd85aa6){return _0x331b8b(_0xd85aa6);},'Iwzso':_0x347f2c(0xd4),'lxDlJ':function(_0x2ff68f,_0x10ba15,_0x3905de,_0x20c6fe,_0x14f6cc,_0x196ab5,_0x4be131){return _0x2ff68f(_0x10ba15,_0x3905de,_0x20c6fe,_0x14f6cc,_0x196ab5,_0x4be131);},'XzQDQ':_0x347f2c(0xbf),'IASjt':function(_0xdfdaee,_0x2d2361,_0x1342bc,_0x5a4856,_0x349908,_0x530384,_0x2b3405){return _0xdfdaee(_0x2d2361,_0x1342bc,_0x5a4856,_0x349908,_0x530384,_0x2b3405);},'anIsg':_0x347f2c(0x10c),'msjqA':_0x347f2c(0xd2)};try{global_registry['requestId']=_0x19a876[_0x347f2c(0xc2)](uuidv4);!fs[_0x347f2c(0xf2)](_0x19a876[_0x347f2c(0xc2)](getCredentialsPath))&&(console[_0x347f2c(0x101)](_0x19a876[_0x347f2c(0xcd)]),await _0x19a876[_0x347f2c(0xe4)](sendInstrumentationEvent,_0x5f1ca9,_0x19a876[_0x347f2c(0x106)],messageTypes['ERROR'],_0x19a876[_0x347f2c(0xf1)],null,_0x5f1ca9),process['exit'](0x1));const _0x28b926=JSON[_0x347f2c(0xfb)](fs['readFileSync'](_0x19a876[_0x347f2c(0xc2)](getCredentialsPath)));let _0x517d2e=_0x347f2c(0xf0)+AG_API_URL+_0x347f2c(0x10e);_0x5f1ca9['allGrids']&&(_0x517d2e=_0x347f2c(0xf0)+AG_API_URL+_0x347f2c(0x105));const _0x9a55={'method':_0x19a876['qdlGt'],'headers':_0x19a876[_0x347f2c(0xea)](getAuthHeader,_0x28b926[_0x347f2c(0xc7)]['username'],_0x28b926[_0x347f2c(0xc7)][_0x347f2c(0xee)]),'throwHttpErrors':![]};global_registry[_0x347f2c(0xff)]=_0x28b926[_0x347f2c(0xc7)][_0x347f2c(0xc6)],global_registry[_0x347f2c(0xf3)]=_0x28b926[_0x347f2c(0xc7)][_0x347f2c(0xee)],_0x19a876[_0x347f2c(0xe4)](sendInstrumentationEvent,_0x5f1ca9,_0x19a876['Jntlm'],messageTypes['INFO'],null,null,_0x5f1ca9);const _0x745c43=await _0x19a876['PPOtU'](got,_0x517d2e,_0x9a55);if(_0x19a876[_0x347f2c(0xec)](_0x745c43,null)&&_0x19a876[_0x347f2c(0xd3)](_0x745c43,undefined)&&_0x19a876[_0x347f2c(0xda)](_0x745c43[_0x347f2c(0xd1)],0xc8)){const _0x4847b7=JSON[_0x347f2c(0xfb)](_0x745c43[_0x347f2c(0xbb)]);console[_0x347f2c(0xf8)](_0x19a876[_0x347f2c(0x103)]);const _0x27f2dd=[];_0x27f2dd[_0x347f2c(0xc0)]([_0x19a876[_0x347f2c(0xe5)],_0x19a876[_0x347f2c(0xcc)],_0x19a876[_0x347f2c(0xeb)],_0x19a876[_0x347f2c(0xcf)],_0x19a876['FvlQf'],_0x19a876[_0x347f2c(0xfa)]]),_0x4847b7[_0x347f2c(0x100)](_0x5369b8=>{const _0x393cff=_0x347f2c;_0x27f2dd['push']([_0x5369b8['id'],_0x5369b8[_0x393cff(0xef)],_0x5369b8['status'],_0x5369b8['running'],_0x5369b8[_0x393cff(0x102)],_0x5369b8[_0x393cff(0xe7)]]);}),console[_0x347f2c(0xf8)](_0x19a876[_0x347f2c(0xdd)](table,_0x27f2dd)),process[_0x347f2c(0x10d)](0x0);}_0x19a876[_0x347f2c(0xda)](_0x745c43[_0x347f2c(0xd1)],0x191)&&(console[_0x347f2c(0x101)](_0x19a876[_0x347f2c(0xc3)]),await _0x19a876[_0x347f2c(0x10b)](sendInstrumentationEvent,_0x5f1ca9,_0x19a876[_0x347f2c(0x106)],messageTypes[_0x347f2c(0xe1)],_0x19a876[_0x347f2c(0xf4)],null,_0x5f1ca9),process[_0x347f2c(0x10d)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x347f2c(0xe2)](_0x745c43)),await _0x19a876[_0x347f2c(0xde)](sendInstrumentationEvent,_0x5f1ca9,_0x19a876[_0x347f2c(0x106)],messageTypes[_0x347f2c(0xe1)],_0x19a876['anIsg'],_0x745c43,_0x5f1ca9),process['exit'](0x1);}catch(_0x4ad80b){console['error'](_0x347f2c(0xd9)+_0x4ad80b[_0x347f2c(0xf7)]),await _0x19a876[_0x347f2c(0xde)](sendInstrumentationEvent,_0x5f1ca9,_0x19a876['Jntlm'],messageTypes[_0x347f2c(0xe1)],_0x19a876[_0x347f2c(0x10f)],_0x4ad80b,_0x5f1ca9),process['exit'](0x1);}};
1
+ const a15_0x31fd8c=a15_0x5379;function a15_0x2594(){const _0x13a0b1=['mRTws','init-not-called','status','rRmCy','builder','unknown-error','password','help','list','grid','../../utils/instrumentationUtils','grid-id','body','log','144uwbDZY','got','running','vKRRc','readFileSync','cluster-name','phPYZ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','142MqXXpk','statusCode','10583DSucNT','INFO','grid-name','error','GET','Failed\x20to\x20list\x20resources!\x20Error:\x20','Browserstack','bstackAccesskey','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-grids','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','/packages/cli/get-all-grids','kUQRK','parse','queued','BoTJu','https://','handler','2374030MdTiHh','bstackUsername','ERROR','zrMCH','PlmrW','YSXRu','zcCQh','username','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','22460WvXeaK','EbfXS','clusterName','description','oMZWJ','arJar','1765731QRANpZ','8pRRmRO','222HyFLyx','type','boolean','WduKk','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','requestId','CwQLb','table','BUrch','unauthorised','all-grids','stack','sNyWl','5807000saQBAA','4491319bVSTPk','../../config/constants','6835338eiMhUi','epilogue','tdlzo','push','ZlWjy','name','WnTlY','6IGpIAW','options','desc','usage','command','JTAWQ','exit','list-grids-called'];a15_0x2594=function(){return _0x13a0b1;};return a15_0x2594();}function a15_0x5379(_0x1a097d,_0x5b47a5){const _0x259417=a15_0x2594();return a15_0x5379=function(_0x537958,_0x100767){_0x537958=_0x537958-0x19b;let _0xbfacb4=_0x259417[_0x537958];return _0xbfacb4;},a15_0x5379(_0x1a097d,_0x5b47a5);}(function(_0x496fb9,_0x3cc8d7){const _0xfc0d9d=a15_0x5379,_0x495951=_0x496fb9();while(!![]){try{const _0x5b6274=-parseInt(_0xfc0d9d(0x1eb))/0x1*(-parseInt(_0xfc0d9d(0x1e9))/0x2)+-parseInt(_0xfc0d9d(0x1b4))/0x3*(-parseInt(_0xfc0d9d(0x1ac))/0x4)+parseInt(_0xfc0d9d(0x1a3))/0x5*(parseInt(_0xfc0d9d(0x1cb))/0x6)+parseInt(_0xfc0d9d(0x1c2))/0x7*(-parseInt(_0xfc0d9d(0x1b3))/0x8)+parseInt(_0xfc0d9d(0x1c4))/0x9+parseInt(_0xfc0d9d(0x1c1))/0xa+-parseInt(_0xfc0d9d(0x1b2))/0xb*(parseInt(_0xfc0d9d(0x1e1))/0xc);if(_0x5b6274===_0x3cc8d7)break;else _0x495951['push'](_0x495951['shift']());}catch(_0x54b1bc){_0x495951['push'](_0x495951['shift']());}}}(a15_0x2594,0x65146));const fs=require('fs'),got=require(a15_0x31fd8c(0x1e2)),{table}=require(a15_0x31fd8c(0x1bb)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x31fd8c(0x1c3)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x31fd8c(0x1dd));exports[a15_0x31fd8c(0x1cf)]='grids',exports[a15_0x31fd8c(0x1cd)]=a15_0x31fd8c(0x19b),exports[a15_0x31fd8c(0x1d7)]=function(_0x4802d6){const _0x5939c8=a15_0x31fd8c,_0x3aa879={};_0x3aa879[_0x5939c8(0x1a9)]=_0x5939c8(0x1ab),_0x3aa879[_0x5939c8(0x1c6)]=_0x5939c8(0x1b6),_0x3aa879[_0x5939c8(0x19d)]='help';const _0x1c9cab=_0x3aa879,_0x14bf23={};_0x14bf23[_0x5939c8(0x1af)]=_0x1c9cab[_0x5939c8(0x1a9)],_0x14bf23[_0x5939c8(0x1b5)]=_0x1c9cab['tdlzo'];const _0x10ea20={};return _0x10ea20[_0x5939c8(0x1be)]=_0x14bf23,_0x4802d6[_0x5939c8(0x1ce)](HELP_HEADER_MESSAGE[_0x5939c8(0x1db)][_0x5939c8(0x1dc)])[_0x5939c8(0x1c5)](HELP_FOOTER_MESSAGE)[_0x5939c8(0x1cc)](_0x10ea20)[_0x5939c8(0x1da)](_0x1c9cab[_0x5939c8(0x19d)])['argv'];},exports[a15_0x31fd8c(0x1a2)]=async function(_0x5707c4){const _0x4ad90c=a15_0x31fd8c,_0x2cf7b9={'BUrch':function(_0x4c99ed){return _0x4c99ed();},'zrMCH':_0x4ad90c(0x1e8),'phPYZ':function(_0x2785d2,_0x17f27a,_0x3b1527,_0x2c2757,_0x5cdaab,_0xd3710d,_0x2cd1d4){return _0x2785d2(_0x17f27a,_0x3b1527,_0x2c2757,_0x5cdaab,_0xd3710d,_0x2cd1d4);},'rRmCy':_0x4ad90c(0x1d2),'EbfXS':_0x4ad90c(0x1d4),'WnTlY':_0x4ad90c(0x1ef),'WduKk':function(_0x467416,_0x11d84f,_0x4d0b90){return _0x467416(_0x11d84f,_0x4d0b90);},'vKRRc':function(_0x4321e7,_0x29b0c2){return _0x4321e7!==_0x29b0c2;},'JTAWQ':function(_0x2dbc92,_0xd9cc36){return _0x2dbc92===_0xd9cc36;},'CwQLb':'\x0aFound\x20the\x20following\x20grids:\x0a','BoTJu':_0x4ad90c(0x1de),'Pkomq':_0x4ad90c(0x1ed),'PlmrW':_0x4ad90c(0x1d5),'YSXRu':_0x4ad90c(0x1e3),'oMZWJ':_0x4ad90c(0x19f),'HmuWm':_0x4ad90c(0x1e6),'ZlWjy':function(_0x53a5dc,_0x479622){return _0x53a5dc(_0x479622);},'mRTws':_0x4ad90c(0x1f3),'ooZRP':function(_0x54fbd4,_0x5c354d,_0x661fa5,_0x54814e,_0x4beae2,_0x1a4386,_0x4a4134){return _0x54fbd4(_0x5c354d,_0x661fa5,_0x54814e,_0x4beae2,_0x1a4386,_0x4a4134);},'sNyWl':_0x4ad90c(0x1bd),'arJar':'server-error','jOAzc':_0x4ad90c(0x1d8)};try{global_registry[_0x4ad90c(0x1b9)]=_0x2cf7b9['BUrch'](uuidv4);!fs['existsSync'](_0x2cf7b9[_0x4ad90c(0x1bc)](getCredentialsPath))&&(console['error'](_0x2cf7b9[_0x4ad90c(0x1a6)]),await _0x2cf7b9['phPYZ'](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9[_0x4ad90c(0x1d6)],messageTypes[_0x4ad90c(0x1a5)],_0x2cf7b9[_0x4ad90c(0x1ad)],null,_0x5707c4),process['exit'](0x1));const _0x123ed5=JSON[_0x4ad90c(0x19e)](fs[_0x4ad90c(0x1e5)](_0x2cf7b9['BUrch'](getCredentialsPath)));let _0x25b9da=_0x4ad90c(0x1a1)+AG_API_URL+_0x4ad90c(0x1f4);_0x5707c4['allGrids']&&(_0x25b9da=_0x4ad90c(0x1a1)+AG_API_URL+_0x4ad90c(0x19c));const _0x57597e={'method':_0x2cf7b9[_0x4ad90c(0x1ca)],'headers':_0x2cf7b9[_0x4ad90c(0x1b7)](getAuthHeader,_0x123ed5[_0x4ad90c(0x1f1)]['username'],_0x123ed5[_0x4ad90c(0x1f1)][_0x4ad90c(0x1d9)]),'throwHttpErrors':![]};global_registry[_0x4ad90c(0x1a4)]=_0x123ed5[_0x4ad90c(0x1f1)][_0x4ad90c(0x1aa)],global_registry[_0x4ad90c(0x1f2)]=_0x123ed5[_0x4ad90c(0x1f1)][_0x4ad90c(0x1d9)],_0x2cf7b9['phPYZ'](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9['rRmCy'],messageTypes[_0x4ad90c(0x1ec)],null,null,_0x5707c4);const _0x1250c9=await _0x2cf7b9[_0x4ad90c(0x1b7)](got,_0x25b9da,_0x57597e);if(_0x2cf7b9[_0x4ad90c(0x1e4)](_0x1250c9,null)&&_0x2cf7b9[_0x4ad90c(0x1e4)](_0x1250c9,undefined)&&_0x2cf7b9[_0x4ad90c(0x1d0)](_0x1250c9['statusCode'],0xc8)){const _0x520639=JSON[_0x4ad90c(0x19e)](_0x1250c9[_0x4ad90c(0x1df)]);console[_0x4ad90c(0x1e0)](_0x2cf7b9[_0x4ad90c(0x1ba)]);const _0x331f58=[];_0x331f58[_0x4ad90c(0x1c7)]([_0x2cf7b9[_0x4ad90c(0x1a0)],_0x2cf7b9['Pkomq'],_0x2cf7b9[_0x4ad90c(0x1a7)],_0x2cf7b9[_0x4ad90c(0x1a8)],_0x2cf7b9[_0x4ad90c(0x1b0)],_0x2cf7b9['HmuWm']]),_0x520639['forEach'](_0x1a4047=>{const _0x4543ea=_0x4ad90c;_0x331f58[_0x4543ea(0x1c7)]([_0x1a4047['id'],_0x1a4047[_0x4543ea(0x1c9)],_0x1a4047['status'],_0x1a4047[_0x4543ea(0x1e3)],_0x1a4047[_0x4543ea(0x19f)],_0x1a4047[_0x4543ea(0x1ae)]]);}),console[_0x4ad90c(0x1e0)](_0x2cf7b9[_0x4ad90c(0x1c8)](table,_0x331f58)),process[_0x4ad90c(0x1d1)](0x0);}_0x2cf7b9[_0x4ad90c(0x1d0)](_0x1250c9[_0x4ad90c(0x1ea)],0x191)&&(console[_0x4ad90c(0x1ee)](_0x2cf7b9[_0x4ad90c(0x1d3)]),await _0x2cf7b9['ooZRP'](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9[_0x4ad90c(0x1d6)],messageTypes['ERROR'],_0x2cf7b9[_0x4ad90c(0x1c0)],null,_0x5707c4),process[_0x4ad90c(0x1d1)](0x1)),console[_0x4ad90c(0x1ee)](_0x4ad90c(0x1b8)+JSON['stringify'](_0x1250c9)),await _0x2cf7b9[_0x4ad90c(0x1e7)](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9[_0x4ad90c(0x1d6)],messageTypes[_0x4ad90c(0x1a5)],_0x2cf7b9[_0x4ad90c(0x1b1)],_0x1250c9,_0x5707c4),process[_0x4ad90c(0x1d1)](0x1);}catch(_0xfb351e){console['error'](_0x4ad90c(0x1f0)+_0xfb351e[_0x4ad90c(0x1bf)]),await _0x2cf7b9['ooZRP'](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9[_0x4ad90c(0x1d6)],messageTypes[_0x4ad90c(0x1a5)],_0x2cf7b9['jOAzc'],_0xfb351e,_0x5707c4),process['exit'](0x1);}};