browserstack-node-sdk 1.34.35 → 1.34.36

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 (131) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +1 -1
  36. package/src/ai-sdk-node/bundle.js +1 -1
  37. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  38. package/src/bin/codeceptjs/command.js +1 -1
  39. package/src/bin/codeceptjs/helper.js +1 -1
  40. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  41. package/src/bin/cucumber-js/command.js +1 -1
  42. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  43. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  44. package/src/bin/cucumber-js/test-observability.js +1 -1
  45. package/src/bin/cucumber-js/test.setup.js +1 -1
  46. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  47. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  48. package/src/bin/integrations/command.js +1 -1
  49. package/src/bin/integrations/constants.js +1 -1
  50. package/src/bin/jest/command.js +1 -1
  51. package/src/bin/jest/customImplements/customCircus.js +1 -1
  52. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  53. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  54. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  55. package/src/bin/jest/jest.setup.js +1 -1
  56. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  57. package/src/bin/jest/test-observability/helper.js +1 -1
  58. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  59. package/src/bin/jest/test-observability/test-details.js +1 -1
  60. package/src/bin/jest/test_before.setup.js +1 -1
  61. package/src/bin/launcher/launcher.js +1 -1
  62. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  63. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  64. package/src/bin/mocha/command.js +1 -1
  65. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  66. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  67. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  68. package/src/bin/mocha/test.setup.js +1 -1
  69. package/src/bin/nightwatch/command.js +1 -1
  70. package/src/bin/playwright/accessibility-helper.js +1 -1
  71. package/src/bin/playwright/command.js +1 -1
  72. package/src/bin/playwright/globalSetup.js +1 -1
  73. package/src/bin/playwright/mock-process.js +1 -1
  74. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  75. package/src/bin/playwright/patches.js +1 -1
  76. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  77. package/src/bin/playwright/reporter/reporter.js +1 -1
  78. package/src/bin/playwright/reporter/test-details.js +1 -1
  79. package/src/bin/playwright/sessionDetails.js +1 -1
  80. package/src/bin/runner.js +1 -1
  81. package/src/bin/setup.js +1 -1
  82. package/src/bin/test-runner/index.js +1 -1
  83. package/src/bin/test-runner/runTest.js +1 -1
  84. package/src/bin/test-runner/testWorker.js +1 -1
  85. package/src/bin/utils/constants.js +1 -1
  86. package/src/bin/utils/log4jsAppender.js +1 -1
  87. package/src/bin/utils/logPatcher.js +1 -1
  88. package/src/bin/utils/logReportingAPI.js +1 -1
  89. package/src/bin/vanilla-js/command.js +1 -1
  90. package/src/browserStackSdk.js +1 -1
  91. package/src/helpers/BrowserStackSetup.js +1 -1
  92. package/src/helpers/accessibility-automation/constants.js +1 -1
  93. package/src/helpers/accessibility-automation/helper.js +1 -1
  94. package/src/helpers/accessibility-automation/scripts.js +1 -1
  95. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  96. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  97. package/src/helpers/ats/constants.js +1 -1
  98. package/src/helpers/ats/helper.js +1 -1
  99. package/src/helpers/capsMapping.js +1 -1
  100. package/src/helpers/central-scanner/constants.js +1 -1
  101. package/src/helpers/central-scanner/helpers.js +1 -1
  102. package/src/helpers/globals.js +1 -1
  103. package/src/helpers/helper.js +1 -1
  104. package/src/helpers/logger.js +1 -1
  105. package/src/helpers/patchHelper.js +1 -1
  106. package/src/helpers/patchHelpers.js +1 -1
  107. package/src/helpers/percy/Percy.js +1 -1
  108. package/src/helpers/percy/PercyBinary.js +1 -1
  109. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  110. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  111. package/src/helpers/percy/PercySDK.js +1 -1
  112. package/src/helpers/percy/index.js +1 -1
  113. package/src/helpers/percy/utils.js +1 -1
  114. package/src/helpers/performance/constants.js +1 -1
  115. package/src/helpers/performance/performance-tester.js +1 -1
  116. package/src/helpers/processHelper.js +1 -1
  117. package/src/helpers/request-spy.js +1 -1
  118. package/src/helpers/setKeepAlive.js +1 -1
  119. package/src/helpers/test-observability/constants.js +1 -1
  120. package/src/helpers/test-observability/error-handler.js +1 -1
  121. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  122. package/src/helpers/test-observability/sessionHandler.js +1 -1
  123. package/src/helpers/test-observability/utils.js +1 -1
  124. package/src/helpers/testhub/constants.js +1 -1
  125. package/src/helpers/testhub/testhubHandler.js +1 -1
  126. package/src/helpers/testhub/utils.js +1 -1
  127. package/src/helpers/timeoutPromise.js +1 -1
  128. package/src/helpers/utilities.js +1 -1
  129. package/src/helpers/w3cMapping.js +1 -1
  130. package/src/hubAllocationMethods.js +1 -1
  131. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x37bae1=a9_0x47d3;(function(_0x4ed919,_0x3f2454){const _0x2d2c0b=a9_0x47d3,_0x148498=_0x4ed919();while(!![]){try{const _0x443ce1=parseInt(_0x2d2c0b(0x2ad))/0x1+parseInt(_0x2d2c0b(0x2a8))/0x2*(-parseInt(_0x2d2c0b(0x2e5))/0x3)+-parseInt(_0x2d2c0b(0x21c))/0x4+parseInt(_0x2d2c0b(0x2d7))/0x5+parseInt(_0x2d2c0b(0x313))/0x6*(-parseInt(_0x2d2c0b(0x32a))/0x7)+parseInt(_0x2d2c0b(0x267))/0x8+-parseInt(_0x2d2c0b(0x32d))/0x9*(parseInt(_0x2d2c0b(0x2e1))/0xa);if(_0x443ce1===_0x3f2454)break;else _0x148498['push'](_0x148498['shift']());}catch(_0x6cc4a6){_0x148498['push'](_0x148498['shift']());}}}(a9_0x5487,0x67cfe));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x37bae1(0x29f)),got=require(a9_0x37bae1(0x20f)),{v4:uuidv4}=require(a9_0x37bae1(0x241)),webSocketUtils=require(a9_0x37bae1(0x26c)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x37bae1(0x29e)),{getCloudProviderObject}=require(a9_0x37bae1(0x2d4)),{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_0x37bae1(0x210)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x37bae1(0x314)),{sendInstrumentationEvent}=require(a9_0x37bae1(0x278));function a9_0x47d3(_0xf735a2,_0xa5f0bc){const _0x54878c=a9_0x5487();return a9_0x47d3=function(_0x47d31d,_0x33063a){_0x47d31d=_0x47d31d-0x1ee;let _0x264e84=_0x54878c[_0x47d31d];return _0x264e84;},a9_0x47d3(_0xf735a2,_0xa5f0bc);}exports[a9_0x37bae1(0x290)]=a9_0x37bae1(0x2d9),exports[a9_0x37bae1(0x270)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x37bae1(0x26e)]=function(_0x2150ed){const _0x40bd97=a9_0x37bae1,_0x431ef1={};_0x431ef1[_0x40bd97(0x2bc)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x431ef1['HWgds']=_0x40bd97(0x25a),_0x431ef1[_0x40bd97(0x212)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x431ef1[_0x40bd97(0x2d5)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x431ef1[_0x40bd97(0x1f9)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x431ef1[_0x40bd97(0x20c)]=_0x40bd97(0x2a6),_0x431ef1['roErh']='Create\x20a\x20private/public\x20grid.',_0x431ef1[_0x40bd97(0x2a3)]='Skip\x20insecure\x20cert\x20verification.',_0x431ef1[_0x40bd97(0x23b)]='boolean',_0x431ef1[_0x40bd97(0x277)]=_0x40bd97(0x329);const _0x2c8de1=_0x431ef1,_0x58d570={};_0x58d570['description']=_0x2c8de1[_0x40bd97(0x2bc)],_0x58d570['type']=_0x2c8de1[_0x40bd97(0x33c)];const _0x426cdc={};_0x426cdc[_0x40bd97(0x2c3)]=_0x2c8de1[_0x40bd97(0x212)],_0x426cdc[_0x40bd97(0x309)]=_0x2c8de1[_0x40bd97(0x33c)];const _0x4919fc={};_0x4919fc[_0x40bd97(0x2c3)]=_0x2c8de1[_0x40bd97(0x2d5)],_0x4919fc[_0x40bd97(0x309)]=_0x2c8de1[_0x40bd97(0x33c)];const _0x3809ea={};_0x3809ea[_0x40bd97(0x2c3)]=_0x2c8de1[_0x40bd97(0x1f9)],_0x3809ea[_0x40bd97(0x309)]=_0x2c8de1[_0x40bd97(0x33c)];const _0x5c6b0f={};_0x5c6b0f[_0x40bd97(0x2c3)]=_0x2c8de1[_0x40bd97(0x20c)],_0x5c6b0f[_0x40bd97(0x309)]=_0x2c8de1[_0x40bd97(0x33c)];const _0x23624d={};_0x23624d[_0x40bd97(0x2c3)]=_0x2c8de1['roErh'],_0x23624d[_0x40bd97(0x309)]=_0x2c8de1['HWgds'];const _0x3d95a6={};_0x3d95a6['description']=_0x2c8de1[_0x40bd97(0x2a3)],_0x3d95a6[_0x40bd97(0x309)]=_0x2c8de1[_0x40bd97(0x23b)],_0x3d95a6[_0x40bd97(0x2fd)]=![];const _0x48d4e0={};return _0x48d4e0[_0x40bd97(0x33d)]=_0x58d570,_0x48d4e0[_0x40bd97(0x27d)]=_0x426cdc,_0x48d4e0[_0x40bd97(0x1ff)]=_0x4919fc,_0x48d4e0['cloud-provider']=_0x3809ea,_0x48d4e0[_0x40bd97(0x2f0)]=_0x5c6b0f,_0x48d4e0['private-grid']=_0x23624d,_0x48d4e0[_0x40bd97(0x250)]=_0x3d95a6,_0x2150ed[_0x40bd97(0x20e)](HELP_HEADER_MESSAGE['create'])[_0x40bd97(0x20b)](HELP_FOOTER_MESSAGE)[_0x40bd97(0x1f0)](_0x48d4e0)[_0x40bd97(0x329)](_0x2c8de1['IEFlM'])[_0x40bd97(0x25d)];},exports[a9_0x37bae1(0x287)]=async function(_0x3c4283){const _0x117f9f=a9_0x37bae1,_0x31749b={'lkZeT':_0x117f9f(0x31a),'QhUZJ':_0x117f9f(0x289),'zmeHx':_0x117f9f(0x30d),'lXqdu':_0x117f9f(0x27a),'XUPZR':_0x117f9f(0x204),'sySRo':_0x117f9f(0x288),'egcKT':function(_0x48f6cb,_0x53c1e5){return _0x48f6cb!==_0x53c1e5;},'sLpUM':function(_0x8458c,_0x335ca1,_0x36af71,_0x5c064a,_0x38706b,_0x575d79,_0x18fd36,_0x28a298,_0x535e15,_0x3fb75c,_0x5a2194,_0x4101ae){return _0x8458c(_0x335ca1,_0x36af71,_0x5c064a,_0x38706b,_0x575d79,_0x18fd36,_0x28a298,_0x535e15,_0x3fb75c,_0x5a2194,_0x4101ae);},'adZaf':_0x117f9f(0x2fe),'AcHkd':_0x117f9f(0x25a),'IxjVA':_0x117f9f(0x279),'ZtFSR':_0x117f9f(0x2b8),'bXMoe':_0x117f9f(0x2ae),'BHqLO':_0x117f9f(0x2a6),'pPIcx':'Create\x20a\x20private/public\x20grid.','jUxIp':_0x117f9f(0x30a),'GUsbd':_0x117f9f(0x202),'iUctm':_0x117f9f(0x329),'fwYeS':'warn','oZfBv':function(_0x10b3bf,_0x288bc5){return _0x10b3bf===_0x288bc5;},'vNAOd':function(_0x4464dd){return _0x4464dd();},'VZDdP':_0x117f9f(0x269),'tKKLB':_0x117f9f(0x32c),'OVuqh':function(_0x494bd9,_0x1a83fa,_0x6f0f81,_0x2a474d,_0x130a24,_0x8daf93,_0x381b85){return _0x494bd9(_0x1a83fa,_0x6f0f81,_0x2a474d,_0x130a24,_0x8daf93,_0x381b85);},'wZVpB':_0x117f9f(0x209),'dtOzY':_0x117f9f(0x272),'GIlPA':'<UsernamePlaceholder>','dbugx':_0x117f9f(0x286),'ERPjX':_0x117f9f(0x2c4),'Ebgir':_0x117f9f(0x2d1),'ZTGXr':_0x117f9f(0x2d3),'zedtj':_0x117f9f(0x302),'dtoas':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','nuwNk':function(_0x9c5f1b,_0x2e1083,_0x40d2d1,_0x39edd7,_0x4eb795,_0x257332,_0x1128d2,_0xdee13c){return _0x9c5f1b(_0x2e1083,_0x40d2d1,_0x39edd7,_0x4eb795,_0x257332,_0x1128d2,_0xdee13c);},'ZXbPE':'prespawned-cluster-args-not-passed','XGwpr':function(_0x35e434,_0xfbe773){return _0x35e434!==_0xfbe773;},'vDsOc':_0x117f9f(0x325),'bPlmS':_0x117f9f(0x1f5),'GjzpB':'non-aws-azure-cluster','dKmWd':function(_0x441aa8,_0xfbd91c){return _0x441aa8===_0xfbd91c;},'riOLv':'true','ansHa':function(_0x380724,_0x3c5112){return _0x380724!==_0x3c5112;},'AUdeQ':_0x117f9f(0x2e9),'gwDzJ':'LKbtI','PPpGL':_0x117f9f(0x341),'UPBwg':'OZbjO','BOyjQ':_0x117f9f(0x213),'Oqvac':_0x117f9f(0x239),'ggplF':_0x117f9f(0x2ba),'qBGhu':function(_0x431379,_0x1f5af2,_0x4f369a){return _0x431379(_0x1f5af2,_0x4f369a);},'HSndY':function(_0xc8ff55,_0x275a58){return _0xc8ff55===_0x275a58;},'bfSJW':'KJTni','xYHBu':_0x117f9f(0x305),'ATutF':function(_0x1509d9,_0x2e3772){return _0x1509d9===_0x2e3772;},'vYKvb':'VTxFB','kyohT':_0x117f9f(0x2e4),'AnsBU':function(_0x287323,_0x51e4d6,_0x1bef9c,_0x404667,_0x1f7cdf,_0x2f54d7,_0x4fc66f,_0x3d08ea){return _0x287323(_0x51e4d6,_0x1bef9c,_0x404667,_0x1f7cdf,_0x2f54d7,_0x4fc66f,_0x3d08ea);},'SmOOi':_0x117f9f(0x217),'uTQvy':function(_0x37e64e,_0x3b4bd5){return _0x37e64e===_0x3b4bd5;},'txcNh':_0x117f9f(0x282),'OCaWi':_0x117f9f(0x24f),'LnnaO':_0x117f9f(0x21d),'jgEmA':function(_0x3c1fdf,_0x1c4a33,_0x2a47ef,_0x3fc55b,_0x1ebab2,_0x43749c,_0x333959,_0xd4ef45){return _0x3c1fdf(_0x1c4a33,_0x2a47ef,_0x3fc55b,_0x1ebab2,_0x43749c,_0x333959,_0xd4ef45);},'aEMbf':'create-grid-checks-auth-failed','QiVXz':function(_0x12d048,_0x788409){return _0x12d048!==_0x788409;},'eYHzF':function(_0x2a8a3d,_0x3b2077){return _0x2a8a3d!==_0x3b2077;},'wtedc':'fpagq','UCEQe':'AVQXF','bFjgn':_0x117f9f(0x32b),'SfKlp':_0x117f9f(0x298),'iNLJx':function(_0x57d329,_0x555b7e){return _0x57d329===_0x555b7e;},'RuWVe':_0x117f9f(0x292),'yXAFW':function(_0x5a7b0c,_0x5874ed,_0xd548b4,_0x1a0327,_0xc5ff1d,_0x25ed3b,_0x953f1,_0x16a8de){return _0x5a7b0c(_0x5874ed,_0xd548b4,_0x1a0327,_0xc5ff1d,_0x25ed3b,_0x953f1,_0x16a8de);},'dSiUG':_0x117f9f(0x2a0),'ZqyWB':function(_0x559352,_0x3fe54d){return _0x559352!==_0x3fe54d;},'KoHkQ':'TDkQG','ykFmY':function(_0x381f7c,_0x341e90){return _0x381f7c===_0x341e90;},'YhohL':function(_0x486ea2,_0x297529){return _0x486ea2!==_0x297529;},'JJuwL':'WnQZQ','QWewA':_0x117f9f(0x25c),'EOuMb':function(_0xd8a831,_0x8af183){return _0xd8a831===_0x8af183;},'HSSdR':_0x117f9f(0x2f9),'tNHnh':'wTExO','rWIyB':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','PMUFS':function(_0x13461e,_0x309846,_0x27626a,_0x1c74c6,_0x42b9f0,_0x26d7d9,_0xbcac30,_0x2535a1){return _0x13461e(_0x309846,_0x27626a,_0x1c74c6,_0x42b9f0,_0x26d7d9,_0xbcac30,_0x2535a1);},'lagsa':_0x117f9f(0x220),'coeih':function(_0x388a20,_0x16c2ae){return _0x388a20===_0x16c2ae;},'koJZB':_0x117f9f(0x201),'ECgHq':function(_0x2da129,_0x2b713c){return _0x2da129!==_0x2b713c;},'FiNsi':_0x117f9f(0x293),'sdDHs':_0x117f9f(0x21a),'fwQVv':function(_0x124ed7,_0xef0450){return _0x124ed7!==_0xef0450;},'NFCiA':function(_0x57f820,_0x92066d){return _0x57f820!==_0x92066d;},'ictqD':_0x117f9f(0x2c0),'HkTSX':function(_0x156980,_0x2109da,_0x2f6aa1,_0x111f0c,_0x4647ed,_0x558dcb,_0x97c2db,_0xe8db26,_0x1b211d,_0x4375f8,_0x112fcd,_0x553fa2){return _0x156980(_0x2109da,_0x2f6aa1,_0x111f0c,_0x4647ed,_0x558dcb,_0x97c2db,_0xe8db26,_0x1b211d,_0x4375f8,_0x112fcd,_0x553fa2);},'UCIZb':function(_0x5ecef5,_0x1f980e){return _0x5ecef5===_0x1f980e;},'Yepln':function(_0x4f1f5c,_0x2b021c){return _0x4f1f5c!==_0x2b021c;},'WhNMU':'FHPGB','isIEH':_0x117f9f(0x2ec),'MWRsr':function(_0x44af96,_0x4857ee,_0x14de5d,_0x4f2ebe,_0x2bda43,_0x44c5de,_0x777752,_0x2263f3,_0x3d34b1,_0x2174c9,_0x999465,_0x1b9d5b){return _0x44af96(_0x4857ee,_0x14de5d,_0x4f2ebe,_0x2bda43,_0x44c5de,_0x777752,_0x2263f3,_0x3d34b1,_0x2174c9,_0x999465,_0x1b9d5b);},'GdOOh':_0x117f9f(0x323),'Tkdgr':_0x117f9f(0x26f),'UbVAC':_0x117f9f(0x23e),'hdCWN':_0x117f9f(0x276),'uHTwo':function(_0x2ec5ee,_0x486dda){return _0x2ec5ee!=_0x486dda;},'gzret':function(_0x720046,_0x158fa9){return _0x720046!==_0x158fa9;},'WYGKi':function(_0x50ccab,_0x5b4ff3){return _0x50ccab!=_0x5b4ff3;},'natzJ':function(_0x367da7,_0x127c59){return _0x367da7>_0x127c59;},'CXhMy':function(_0x4ea9fb,_0x249c39){return _0x4ea9fb===_0x249c39;},'TLOIZ':_0x117f9f(0x2cc),'khidT':function(_0x1753b3,_0x4d12a3,_0x12c602,_0x155020,_0x2c5523,_0xcf2b61,_0x4b768d,_0x461d9b){return _0x1753b3(_0x4d12a3,_0x12c602,_0x155020,_0x2c5523,_0xcf2b61,_0x4b768d,_0x461d9b);},'xDkWH':_0x117f9f(0x1f7),'LUJCz':_0x117f9f(0x2bb),'boCnp':_0x117f9f(0x27b),'FukDd':function(_0x112c4b,_0x478d1e){return _0x112c4b===_0x478d1e;},'YIXoi':_0x117f9f(0x2b5),'drivn':_0x117f9f(0x25b),'aBFBD':_0x117f9f(0x333),'bgKvc':_0x117f9f(0x258),'zsEye':function(_0x4bf1c3,_0x552041){return _0x4bf1c3===_0x552041;},'WqlKc':function(_0x1ed512,_0x57bcda){return _0x1ed512(_0x57bcda);},'jvCDX':_0x117f9f(0x265),'GFzug':function(_0x4792f5,_0x1ece5d){return _0x4792f5!==_0x1ece5d;},'AJpAE':_0x117f9f(0x2fd),'RMvDT':_0x117f9f(0x2a9),'hyUkt':'Namespace\x20Created','QglkL':_0x117f9f(0x2a1),'sGEGh':_0x117f9f(0x27f),'wqWXW':_0x117f9f(0x20d),'puyzo':function(_0x5a3c89,_0x3a75d1,_0x28abd5,_0x17826b,_0x250f15,_0xc34a3c,_0x3bf0cf,_0x288fe1,_0xb603a6,_0x5eaa07,_0x3731bb){return _0x5a3c89(_0x3a75d1,_0x28abd5,_0x17826b,_0x250f15,_0xc34a3c,_0x3bf0cf,_0x288fe1,_0xb603a6,_0x5eaa07,_0x3731bb);},'dcOds':_0x117f9f(0x2fa),'YNlMY':_0x117f9f(0x31c),'HvaTy':function(_0x59396d,_0x5aaf15,_0x4b15a9,_0x3d090a,_0x2aae9d){return _0x59396d(_0x5aaf15,_0x4b15a9,_0x3d090a,_0x2aae9d);},'giFmN':_0x117f9f(0x331),'lXyOx':'ingress-nginx-controller','trUUS':_0x117f9f(0x24a),'XEgwb':function(_0xbf37c0,_0x3d0106,_0xb5650a){return _0xbf37c0(_0x3d0106,_0xb5650a);},'ulLyc':function(_0x116ea1,_0x37394c){return _0x116ea1===_0x37394c;},'eCEra':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','XUTpN':'get-grid-url-null-response','WUUEz':function(_0xeec133,_0x19e2dc){return _0xeec133===_0x19e2dc;},'WJLiN':_0x117f9f(0x299),'OZgqV':_0x117f9f(0x321),'wLwXh':function(_0x13fe24,_0x4df578){return _0x13fe24!==_0x4df578;},'pEZOs':_0x117f9f(0x338),'ZbbnV':function(_0x57e3be,_0x5a4248){return _0x57e3be===_0x5a4248;},'RuCfV':_0x117f9f(0x2a4),'ejleI':function(_0x3e76dc,_0x1f626c,_0x4513f7,_0x4014a5,_0x28a55f,_0x5dfd99){return _0x3e76dc(_0x1f626c,_0x4513f7,_0x4014a5,_0x28a55f,_0x5dfd99);},'umMKq':_0x117f9f(0x25f)};let _0x98f1d9=![],_0x18286e=![],_0x5692fd,_0x4e6567,_0x43edc2,_0x38792e,_0x4029e0,_0x31d3c8,_0x2aaa5b,_0x4bde14,_0x585146,_0x39ba23,_0x1b6a09,_0x562be6,_0x41dcf7,_0x244a76,_0x2bdecb=0x1,_0x4d6aa4=0xe;try{global_registry[_0x117f9f(0x28a)]=_0x31749b[_0x117f9f(0x208)](uuidv4),global_registry[_0x117f9f(0x22c)]=![];!fs[_0x117f9f(0x2b9)](_0x31749b[_0x117f9f(0x208)](getCredentialsPath))&&(_0x31749b[_0x117f9f(0x200)](_0x31749b[_0x117f9f(0x317)],_0x31749b[_0x117f9f(0x317)])?(console[_0x117f9f(0x289)](_0x31749b[_0x117f9f(0x294)]),await _0x31749b[_0x117f9f(0x22d)](sendInstrumentationEvent,_0x3c4283,_0x31749b[_0x117f9f(0x2d8)],messageTypes[_0x117f9f(0x330)],_0x31749b[_0x117f9f(0x2b6)],null,_0x3c4283),process[_0x117f9f(0x29a)](0x1)):(_0x446d70=_0x323cf8['route53'],_0x5273f6=_0x31749b['lkZeT']));await _0x31749b[_0x117f9f(0x22d)](sendInstrumentationEvent,_0x3c4283,_0x31749b['wZVpB'],messageTypes[_0x117f9f(0x2b1)],null,null,_0x3c4283);const _0x1e0f70=JSON['parse'](fs[_0x117f9f(0x335)](_0x31749b[_0x117f9f(0x208)](getCredentialsPath)));global_registry[_0x117f9f(0x24c)]=_0x1e0f70['Browserstack'][_0x117f9f(0x296)],global_registry[_0x117f9f(0x231)]=_0x1e0f70[_0x117f9f(0x2a9)][_0x117f9f(0x2e3)];const _0x1c8d81=WS_ENDPOINT[_0x117f9f(0x2ea)](_0x31749b[_0x117f9f(0x29d)],_0x1e0f70[_0x117f9f(0x2a9)][_0x117f9f(0x296)])[_0x117f9f(0x2ea)](_0x31749b[_0x117f9f(0x1fe)],_0x1e0f70[_0x117f9f(0x2a9)][_0x117f9f(0x2e3)]),_0x5d7cd1={};_0x5d7cd1[_0x117f9f(0x24d)]=ws,_0x5d7cd1[_0x117f9f(0x2fb)]=0x36ee80,_0x562be6=new ReconnectingWebSocket(_0x1c8d81,[],_0x5d7cd1),logger[_0x117f9f(0x2de)](_0x31749b[_0x117f9f(0x1fc)]),webSocketUtils[_0x117f9f(0x222)](_0x562be6,_0x3c4283[_0x117f9f(0x31b)],_0x3c4283[_0x117f9f(0x2e3)]);const _0x2a2663=_0x3c4283[_0x117f9f(0x29b)]||DEFAULT_GRID_NAME;if(_0x3c4283[_0x117f9f(0x2dd)]||_0x3c4283[_0x117f9f(0x2c9)]||_0x3c4283[_0x117f9f(0x2f0)]){if(_0x31749b[_0x117f9f(0x200)](_0x31749b[_0x117f9f(0x2e8)],_0x31749b['Ebgir'])){if(!(_0x3c4283[_0x117f9f(0x2dd)]&&_0x3c4283[_0x117f9f(0x2c9)]&&_0x3c4283[_0x117f9f(0x2f0)])){if(_0x31749b['egcKT'](_0x31749b['ZTGXr'],_0x31749b[_0x117f9f(0x30f)]))_0x5692fd=_0x31749b[_0x117f9f(0x238)],await _0x31749b[_0x117f9f(0x1f3)](reportToGalactusAndSendToEDS,_0x3c4283,_0x562be6,_0x5692fd,messageTypes[_0x117f9f(0x330)],_0x31749b[_0x117f9f(0x2d8)],_0x31749b[_0x117f9f(0x328)],_0x31749b[_0x117f9f(0x211)]),logger['error'](_0x5692fd),process[_0x117f9f(0x29a)](0x1);else{const _0x3bcf4a={};_0x3bcf4a[_0x117f9f(0x309)]=_0x66562c[_0x117f9f(0x2f7)],_0x3bcf4a['message']=_0x31f154,_0x6d6611[_0x117f9f(0x301)](_0x13f6d8,_0x3bcf4a,_0x31749b[_0x117f9f(0x211)],!![]);}}![AWS,AZURE,GCP][_0x117f9f(0x2bf)](_0x3c4283[_0x117f9f(0x2c9)][_0x117f9f(0x33b)]())&&(_0x31749b['XGwpr'](_0x31749b[_0x117f9f(0x22e)],_0x31749b[_0x117f9f(0x22e)])?_0x3b343f['isPrivateGrid']=!![]:(_0x5692fd=_0x31749b[_0x117f9f(0x2ef)],await _0x31749b[_0x117f9f(0x1f3)](reportToGalactusAndSendToEDS,_0x3c4283,_0x562be6,_0x5692fd,messageTypes[_0x117f9f(0x330)],_0x31749b['wZVpB'],_0x31749b[_0x117f9f(0x252)],_0x31749b['QhUZJ']),logger['error'](_0x5692fd),process[_0x117f9f(0x29a)](0x1)));if(_0x3c4283[_0x117f9f(0x271)]&&_0x31749b[_0x117f9f(0x22f)](_0x3c4283[_0x117f9f(0x271)]['toLowerCase'](),_0x31749b[_0x117f9f(0x31e)])){if(_0x31749b[_0x117f9f(0x21b)](_0x31749b[_0x117f9f(0x232)],_0x31749b[_0x117f9f(0x2ca)]))global_registry[_0x117f9f(0x22c)]=!![];else{const _0x1df30d=_0x31749b['zmeHx'][_0x117f9f(0x273)]('|');let _0xdadc6b=0x0;while(!![]){switch(_0x1df30d[_0xdadc6b++]){case'0':_0xf5053e[_0x117f9f(0x2c9)]=_0x4559bf;continue;case'1':_0x242935[_0x117f9f(0x2dd)]=_0x3d1778;continue;case'2':_0x9c0606=_0x117f9f(0x28c)+_0x4174da+'\x20in\x20existing\x20cluster\x20\x27'+_0x18f601+'\x27';continue;case'3':_0x340e66[_0x117f9f(0x33a)]=_0x103a0e;continue;case'4':const _0x468b38={};_0x468b38['type']=_0x313324[_0x117f9f(0x2ed)],_0x468b38[_0x117f9f(0x1fb)]=_0x31749b['lXqdu'],_0x37951e[_0x117f9f(0x301)](_0x23d3fa,_0x468b38);continue;case'5':_0x5af53b[_0x117f9f(0x322)]=_0x45e822[_0x117f9f(0x322)];continue;case'6':_0x555ce2[_0x117f9f(0x2f5)]=_0x31fc3a[_0x117f9f(0x2f5)];continue;case'7':_0xbdde6e[_0x117f9f(0x297)](_0x515db4);continue;case'8':const _0x1abea5={};_0x1abea5[_0x117f9f(0x309)]=_0x53ddd3[_0x117f9f(0x2f7)],_0x1abea5[_0x117f9f(0x1fb)]=_0x37624e,_0x2a9a85[_0x117f9f(0x301)](_0x56c736,_0x1abea5);continue;}break;}}}global_registry[_0x117f9f(0x2c9)]=_0x3c4283['cloudProvider'],global_registry[_0x117f9f(0x33a)]=_0x3c4283[_0x117f9f(0x2f0)],global_registry[_0x117f9f(0x2dd)]=_0x3c4283[_0x117f9f(0x2dd)];const _0x3dc801=await _0x31749b[_0x117f9f(0x22d)](getCloudProviderObject,_0x3c4283['cloudProvider'],_0x3c4283['clusterName'],_0x2a2663,_0x562be6,webSocketUtils,_0x3c4283),_0x2c96ea=await _0x3dc801[_0x117f9f(0x340)]();!_0x2c96ea?_0x31749b['dKmWd'](_0x31749b[_0x117f9f(0x280)],_0x31749b[_0x117f9f(0x280)])?(logger[_0x117f9f(0x297)]('Cluster:\x20'+_0x3c4283[_0x117f9f(0x2dd)]+_0x117f9f(0x242)),_0x98f1d9=![],_0x18286e=!![]):_0x58b23f=_0x31749b[_0x117f9f(0x283)]:_0x31749b[_0x117f9f(0x200)](_0x31749b['UPBwg'],_0x31749b['BOyjQ'])?_0x41737e[_0x117f9f(0x264)]():_0x98f1d9=!![],_0x43edc2=_0x3c4283[_0x117f9f(0x2dd)],_0x4e6567=_0x3c4283['cloudProvider'][_0x117f9f(0x33b)](),_0x38792e=_0x3c4283[_0x117f9f(0x2f0)];}else _0x3b6c2c=null;}else{if(_0x3c4283['gridProfile']){if(_0x31749b['ansHa'](_0x31749b[_0x117f9f(0x247)],_0x31749b[_0x117f9f(0x247)])){const _0x39185b=_0x31749b[_0x117f9f(0x343)][_0x117f9f(0x273)]('|');let _0x4fdf77=0x0;while(!![]){switch(_0x39185b[_0x4fdf77++]){case'0':_0x24ac3e=_0x117f9f(0x259)+_0x248611;continue;case'1':_0x5c2c64=_0x57e885[_0x117f9f(0x322)];continue;case'2':_0x51243a=_0x9fc9c1[_0x117f9f(0x2f5)];continue;case'3':_0x3cfb7a=_0x211d33[_0x117f9f(0x2a2)];continue;case'4':_0x5290aa=_0x261a6b[_0x117f9f(0x2d2)];continue;case'5':const _0x302672={};_0x302672['type']=_0x3492a3[_0x117f9f(0x2f7)],_0x302672[_0x117f9f(0x1fb)]=_0x58abd5,_0x1c4577['sendEventToBackend'](_0x19f6c9,_0x302672);continue;case'6':_0x483881=_0x125564[_0x117f9f(0x319)];continue;case'7':_0x31749b[_0x117f9f(0x244)](_0x4faefe[_0x117f9f(0x271)],_0xaf8e83)&&_0x1277ac[_0x117f9f(0x271)]&&(_0xc82dba[_0x117f9f(0x22c)]=!![]);continue;case'8':_0x312de2=_0x370987[_0x117f9f(0x2c6)];continue;case'9':_0x3cc8f1=null;continue;case'10':_0x4472af=null;continue;case'11':_0xd6051a=_0x3abde4[_0x117f9f(0x21f)];continue;case'12':_0x31749b['sLpUM'](_0x3e7833,_0x551ee5,_0x2fc6c6,_0x52cd72,_0x175aec,_0x540aa7,_0x46031d,_0x18673f,_0x18077b,_0x64fe7,_0x4bd557,_0x5efc53);continue;case'13':_0x2f8611[_0x117f9f(0x297)](_0xab779f);continue;case'14':_0x50f506=null;continue;}break;}}else global_registry[_0x117f9f(0x2eb)]=_0x3c4283['gridProfile'];}}global_registry[_0x117f9f(0x29b)]=_0x3c4283['gridName'];const _0x17cd42={'method':_0x31749b['ggplF'],'headers':_0x31749b[_0x117f9f(0x2aa)](getAuthHeader,_0x1e0f70['Browserstack'][_0x117f9f(0x296)],_0x1e0f70['Browserstack'][_0x117f9f(0x2e3)]),'throwHttpErrors':![]},_0x595892={};_0x595892[_0x117f9f(0x29b)]=_0x2a2663;const _0x300d6b=_0x595892;_0x18286e&&(_0x31749b[_0x117f9f(0x2c5)](_0x31749b['bfSJW'],_0x31749b[_0x117f9f(0x21e)])?_0x26c2e4[_0x117f9f(0x289)](_0x117f9f(0x255)+_0x59e78d+'\x20\x0a'+_0x21aab8[_0x117f9f(0x23c)](_0x9e5749['stack'])):(_0x300d6b[_0x117f9f(0x2f0)]=_0x38792e,_0x300d6b['cloudProvider']=_0x4e6567,_0x300d6b[_0x117f9f(0x24e)]=!![]));const _0x55f266=_0x117f9f(0x26b)+AG_API_URL+_0x117f9f(0x31d),_0x3e8510={'searchParams':_0x300d6b,'throwHttpErrors':![],..._0x17cd42},_0x1d629d=_0x3e8510,_0x3d64c3=await _0x31749b[_0x117f9f(0x2aa)](got,_0x55f266,_0x1d629d);if(_0x31749b[_0x117f9f(0x308)](_0x3d64c3,null)||_0x31749b[_0x117f9f(0x22f)](_0x3d64c3,undefined)){if(_0x31749b[_0x117f9f(0x200)](_0x31749b['vYKvb'],_0x31749b[_0x117f9f(0x2f6)]))_0x5692fd=_0x31749b['kyohT'],await _0x31749b[_0x117f9f(0x23d)](reportToGalactusAndSendToEDS,_0x3c4283,_0x562be6,_0x5692fd,messageTypes[_0x117f9f(0x330)],_0x31749b['wZVpB'],_0x31749b['SmOOi'],_0x31749b[_0x117f9f(0x211)]),logger[_0x117f9f(0x289)](_0x5692fd),process[_0x117f9f(0x29a)](0x1);else{const _0x21abf6={};_0x21abf6[_0x117f9f(0x2c3)]=_0x31749b[_0x117f9f(0x1ef)],_0x21abf6[_0x117f9f(0x309)]=_0x31749b[_0x117f9f(0x20a)];const _0xf81433={};_0xf81433[_0x117f9f(0x2c3)]=_0x31749b[_0x117f9f(0x291)],_0xf81433[_0x117f9f(0x309)]=_0x31749b[_0x117f9f(0x20a)];const _0x31f490={};_0x31f490[_0x117f9f(0x2c3)]=_0x31749b[_0x117f9f(0x2ee)],_0x31f490[_0x117f9f(0x309)]=_0x31749b[_0x117f9f(0x20a)];const _0x55416c={};_0x55416c[_0x117f9f(0x2c3)]=_0x31749b['bXMoe'],_0x55416c['type']=_0x31749b[_0x117f9f(0x20a)];const _0x8476e8={};_0x8476e8[_0x117f9f(0x2c3)]=_0x31749b[_0x117f9f(0x1f2)],_0x8476e8[_0x117f9f(0x309)]=_0x31749b[_0x117f9f(0x20a)];const _0x3bc8c7={};_0x3bc8c7[_0x117f9f(0x2c3)]=_0x31749b[_0x117f9f(0x2e0)],_0x3bc8c7[_0x117f9f(0x309)]=_0x31749b[_0x117f9f(0x20a)];const _0x513f6d={};_0x513f6d[_0x117f9f(0x2c3)]=_0x31749b[_0x117f9f(0x304)],_0x513f6d[_0x117f9f(0x309)]=_0x31749b[_0x117f9f(0x245)],_0x513f6d['default']=![];const _0x1e5925={};return _0x1e5925[_0x117f9f(0x33d)]=_0x21abf6,_0x1e5925['grid-profile']=_0xf81433,_0x1e5925['cluster-name']=_0x31f490,_0x1e5925['cloud-provider']=_0x55416c,_0x1e5925['region']=_0x8476e8,_0x1e5925[_0x117f9f(0x2a7)]=_0x3bc8c7,_0x1e5925[_0x117f9f(0x250)]=_0x513f6d,_0x4152c3[_0x117f9f(0x20e)](_0x270504[_0x117f9f(0x284)])['epilogue'](_0x3f2f44)['options'](_0x1e5925)[_0x117f9f(0x329)](_0x31749b[_0x117f9f(0x268)])[_0x117f9f(0x25d)];}}if(_0x31749b['uTQvy'](_0x3d64c3[_0x117f9f(0x263)],0x191)){if(_0x31749b[_0x117f9f(0x244)](_0x31749b[_0x117f9f(0x215)],_0x31749b[_0x117f9f(0x27e)]))_0x5692fd=_0x31749b[_0x117f9f(0x2f8)],await _0x31749b['jgEmA'](reportToGalactusAndSendToEDS,_0x3c4283,_0x562be6,_0x5692fd,messageTypes[_0x117f9f(0x330)],_0x31749b[_0x117f9f(0x2d8)],_0x31749b[_0x117f9f(0x300)],_0x31749b[_0x117f9f(0x211)]),logger['error'](_0x5692fd),process[_0x117f9f(0x29a)](0x1);else throw new _0x16d590(_0x117f9f(0x2b3)+_0x1a9e14+_0x117f9f(0x275));}_0x31749b[_0x117f9f(0x342)](_0x3d64c3['statusCode'],0xc8)&&(_0x31749b[_0x117f9f(0x230)](_0x31749b[_0x117f9f(0x28b)],_0x31749b['UCEQe'])?(_0x5692fd='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x117f9f(0x23c)](_0x3d64c3['body']),await _0x31749b['jgEmA'](reportToGalactusAndSendToEDS,_0x3c4283,_0x562be6,_0x5692fd,messageTypes[_0x117f9f(0x330)],_0x31749b[_0x117f9f(0x2d8)],_0x31749b['bFjgn'],_0x31749b[_0x117f9f(0x211)]),logger[_0x117f9f(0x289)](_0x5692fd),process[_0x117f9f(0x29a)](0x1)):_0x6c92cd=_0x3a3534[_0xda445e['gridProfile']]);const _0x400265=JSON[_0x117f9f(0x2b7)](_0x3d64c3[_0x117f9f(0x228)]),_0x39778f={};_0x39778f[_0x117f9f(0x309)]=WS_EVENTS[_0x117f9f(0x2ed)],_0x39778f[_0x117f9f(0x1fb)]=_0x31749b['lXqdu'],webSocketUtils[_0x117f9f(0x301)](_0x562be6,_0x39778f);const _0x54f5d1={};_0x54f5d1[_0x117f9f(0x309)]=WS_EVENTS[_0x117f9f(0x2f7)],_0x54f5d1['message']=_0x31749b[_0x117f9f(0x225)],webSocketUtils[_0x117f9f(0x301)](_0x562be6,_0x54f5d1);_0x400265[_0x117f9f(0x2c2)]&&(_0x31749b[_0x117f9f(0x29c)](_0x31749b[_0x117f9f(0x1f8)],_0x31749b[_0x117f9f(0x1f8)])?(_0x5692fd='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x2a2663+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x31749b[_0x117f9f(0x311)](reportToGalactusAndSendToEDS,_0x3c4283,_0x562be6,_0x5692fd,messageTypes[_0x117f9f(0x330)],_0x31749b[_0x117f9f(0x2d8)],_0x31749b[_0x117f9f(0x2f4)],_0x31749b[_0x117f9f(0x211)]),logger['error'](_0x5692fd),process[_0x117f9f(0x29a)](0x1)):_0x583fcc[_0x117f9f(0x297)](_0x117f9f(0x2f2)+_0x43117b+'\x20'));const _0x32294a=_0x400265['gridProfiles'];let _0x11338b=_0x32294a[_0x400265[_0x117f9f(0x219)]];_0x3c4283[_0x117f9f(0x2eb)]&&(_0x31749b[_0x117f9f(0x33e)](_0x31749b[_0x117f9f(0x223)],_0x31749b[_0x117f9f(0x223)])?_0x340ca4[_0x117f9f(0x2eb)]=_0xe53c85['gridProfile']:_0x11338b=_0x32294a[_0x3c4283['gridProfile']]);if(_0x31749b[_0x117f9f(0x2ff)](_0x98f1d9,![])&&_0x31749b['uTQvy'](_0x18286e,![])){if(_0x31749b[_0x117f9f(0x216)](_0x31749b[_0x117f9f(0x249)],_0x31749b[_0x117f9f(0x33f)])){_0x31749b[_0x117f9f(0x29c)](_0x11338b,undefined)&&(_0x31749b[_0x117f9f(0x2c1)](_0x31749b[_0x117f9f(0x25e)],_0x31749b[_0x117f9f(0x32f)])?_0x46f397=null:(_0x5692fd=_0x31749b[_0x117f9f(0x2ce)],await _0x31749b[_0x117f9f(0x203)](reportToGalactusAndSendToEDS,_0x3c4283,_0x562be6,_0x5692fd,messageTypes[_0x117f9f(0x330)],_0x31749b['wZVpB'],_0x31749b[_0x117f9f(0x1f1)],_0x31749b[_0x117f9f(0x211)]),logger['error'](_0x5692fd),process[_0x117f9f(0x29a)](0x1)));global_registry[_0x117f9f(0x274)]=_0x11338b['id'],_0x5692fd=_0x117f9f(0x307)+_0x2a2663+'\x20using\x20\x27'+_0x11338b['name']+_0x117f9f(0x2df),logger['info'](_0x5692fd);const _0x3d3c5c={};_0x3d3c5c['type']=WS_EVENTS[_0x117f9f(0x2f7)],_0x3d3c5c[_0x117f9f(0x1fb)]=_0x5692fd,webSocketUtils[_0x117f9f(0x301)](_0x562be6,_0x3d3c5c),_0x4e6567=_0x11338b[_0x117f9f(0x2c9)],_0x43edc2=_0x11338b['clusterName'],_0x38792e=_0x11338b[_0x117f9f(0x2f0)],_0x4029e0=_0x11338b[_0x117f9f(0x2c6)],_0x31d3c8=_0x11338b[_0x117f9f(0x2d2)],_0x2aaa5b=_0x11338b['vpc'],_0x4bde14=_0x11338b[_0x117f9f(0x248)],_0x585146=_0x11338b[_0x117f9f(0x226)],_0x39ba23=_0x11338b[_0x117f9f(0x21f)],_0x2bdecb=_0x11338b[_0x117f9f(0x2a2)],_0x4d6aa4=_0x11338b['maxNodes'],_0x41dcf7=_0x400265['hubVersion'],_0x244a76=_0x400265[_0x117f9f(0x2f5)],_0x2aaa5b&&_0x31749b['ATutF'](_0x2aaa5b[_0x117f9f(0x227)],0x0)&&(_0x31749b['coeih'](_0x31749b[_0x117f9f(0x262)],_0x31749b['koJZB'])?_0x2aaa5b=null:_0xabec6=!![]),_0x585146&&_0x31749b[_0x117f9f(0x29c)](_0x585146[_0x117f9f(0x227)],0x0)&&(_0x31749b[_0x117f9f(0x261)](_0x31749b[_0x117f9f(0x281)],_0x31749b[_0x117f9f(0x26d)])?_0x585146=null:_0x28a93a[_0x117f9f(0x22c)]=!![]),_0x31749b[_0x117f9f(0x254)](_0x11338b[_0x117f9f(0x271)],undefined)&&_0x11338b['privateGrid']&&(_0x31749b[_0x117f9f(0x28e)](_0x31749b[_0x117f9f(0x2cf)],_0x31749b[_0x117f9f(0x2cf)])?_0x4d59cd['isPrivateGrid']=!![]:global_registry[_0x117f9f(0x22c)]=!![]),_0x31749b[_0x117f9f(0x260)](updateGlobalRegistryWithConfig,_0x4e6567,_0x43edc2,_0x38792e,_0x4029e0,_0x31d3c8,_0x39ba23,_0x11338b,_0x41dcf7,_0x244a76,_0x2bdecb,_0x4d6aa4);}else _0x54e4a3[_0x117f9f(0x2f0)]=_0x49145a,_0x136280['cloudProvider']=_0x1e27b0,_0x29e129[_0x117f9f(0x24e)]=!![];}else{if(_0x31749b[_0x117f9f(0x2c7)](_0x18286e,!![])){if(_0x31749b[_0x117f9f(0x24b)](_0x31749b[_0x117f9f(0x246)],_0x31749b['WhNMU']))_0x5e41c5['info']('Cluster:\x20'+_0x5a47e0[_0x117f9f(0x2dd)]+_0x117f9f(0x242)),_0x2540f5=![],_0x2e1ed4=!![];else{_0x5692fd=_0x117f9f(0x259)+_0x2a2663,logger[_0x117f9f(0x297)](_0x5692fd);const _0xf7f92e={};_0xf7f92e['type']=WS_EVENTS[_0x117f9f(0x2f7)],_0xf7f92e['message']=_0x5692fd,webSocketUtils[_0x117f9f(0x301)](_0x562be6,_0xf7f92e),_0x4029e0=_0x11338b[_0x117f9f(0x2c6)],_0x31d3c8=_0x11338b[_0x117f9f(0x2d2)],_0x2aaa5b=null,_0x4bde14=null,_0x585146=null,_0x39ba23=_0x11338b[_0x117f9f(0x21f)],_0x2bdecb=_0x11338b[_0x117f9f(0x2a2)],_0x4d6aa4=_0x11338b['maxNodes'],_0x41dcf7=_0x400265[_0x117f9f(0x322)],_0x244a76=_0x400265[_0x117f9f(0x2f5)],_0x31749b['egcKT'](_0x11338b[_0x117f9f(0x271)],undefined)&&_0x11338b[_0x117f9f(0x271)]&&(_0x31749b[_0x117f9f(0x22f)](_0x31749b[_0x117f9f(0x2e2)],_0x31749b[_0x117f9f(0x2e2)])?global_registry[_0x117f9f(0x22c)]=!![]:_0x4c9773['info'](_0x117f9f(0x285)+_0x833008['stringify'](_0xfd0f8a)+'\x20')),_0x31749b[_0x117f9f(0x26a)](updateGlobalRegistryWithConfig,_0x4e6567,_0x43edc2,_0x38792e,_0x4029e0,_0x31d3c8,_0x39ba23,_0x11338b,_0x41dcf7,_0x244a76,_0x2bdecb,_0x4d6aa4);}}else{if(_0x31749b[_0x117f9f(0x22f)](_0x31749b[_0x117f9f(0x312)],_0x31749b[_0x117f9f(0x2e7)])){const _0x518dd4={};_0x518dd4[_0x117f9f(0x309)]=_0x15ff58[_0x117f9f(0x2f7)],_0x518dd4[_0x117f9f(0x1fb)]=_0x117f9f(0x2b3)+_0x2f9824+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x478b20[_0x117f9f(0x301)](_0x4cacfb,_0x518dd4,_0x31749b[_0x117f9f(0x240)]),_0x4564bc[_0x117f9f(0x297)](_0x117f9f(0x2b3)+_0x36b516+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x22e25f=!![];if(_0x31749b[_0x117f9f(0x200)](_0x31f9c0,!![]))throw new _0x3694da(_0x117f9f(0x2b3)+_0x481e7c+_0x117f9f(0x275));}else{const _0x3bbd1d=_0x31749b[_0x117f9f(0x2da)]['split']('|');let _0x249f13=0x0;while(!![]){switch(_0x3bbd1d[_0x249f13++]){case'0':const _0x4142f9={};_0x4142f9[_0x117f9f(0x309)]=WS_EVENTS[_0x117f9f(0x2f7)],_0x4142f9['message']=_0x5692fd,webSocketUtils[_0x117f9f(0x301)](_0x562be6,_0x4142f9);continue;case'1':global_registry['hubVersion']=_0x400265['hubVersion'];continue;case'2':global_registry[_0x117f9f(0x2dd)]=_0x43edc2;continue;case'3':const _0x94b21e={};_0x94b21e[_0x117f9f(0x309)]=WS_EVENTS['CLI_RUN_STARTED'],_0x94b21e['message']=_0x31749b[_0x117f9f(0x2db)],webSocketUtils[_0x117f9f(0x301)](_0x562be6,_0x94b21e);continue;case'4':global_registry['browserVersion']=_0x400265['browserVersion'];continue;case'5':_0x5692fd='Spawning\x20the\x20grid\x20'+_0x2a2663+_0x117f9f(0x22b)+_0x43edc2+'\x27';continue;case'6':logger[_0x117f9f(0x297)](_0x5692fd);continue;case'7':global_registry[_0x117f9f(0x2c9)]=_0x4e6567;continue;case'8':global_registry['clusterRegion']=_0x38792e;continue;}break;}}}}const _0x4f48fa=await _0x31749b[_0x117f9f(0x22d)](getCloudProviderObject,_0x4e6567,_0x43edc2,_0x2a2663,_0x562be6,webSocketUtils,_0x3c4283);_0x31749b[_0x117f9f(0x24b)](_0x4e6567,AZURE)&&_0x4f48fa[_0x117f9f(0x264)]();let _0x41534d;if(_0x31749b[_0x117f9f(0x2c7)](_0x98f1d9,![])){_0x5692fd=_0x117f9f(0x303)+_0x38792e+').';const _0x3aa7a1={};_0x3aa7a1[_0x117f9f(0x309)]=WS_EVENTS[_0x117f9f(0x2f7)],_0x3aa7a1[_0x117f9f(0x1fb)]=_0x5692fd,webSocketUtils['sendEventToBackend'](_0x562be6,_0x3aa7a1),logger[_0x117f9f(0x297)](_0x5692fd);const _0x5487e0=await _0x4f48fa['isClusterPresent']();if(_0x5487e0){const _0x48aa5e={};_0x48aa5e[_0x117f9f(0x309)]=WS_EVENTS['LOG'],_0x48aa5e[_0x117f9f(0x1fb)]=_0x117f9f(0x2b3)+_0x43edc2+_0x117f9f(0x336),webSocketUtils['sendEventToBackend'](_0x562be6,_0x48aa5e,_0x31749b[_0x117f9f(0x240)]),logger[_0x117f9f(0x297)](_0x117f9f(0x2b3)+_0x43edc2+_0x117f9f(0x336)),_0x98f1d9=!![];if(_0x31749b[_0x117f9f(0x2c5)](_0x18286e,!![]))throw new Error(_0x117f9f(0x2b3)+_0x43edc2+_0x117f9f(0x275));}else{const _0x232708={};_0x232708[_0x117f9f(0x309)]=WS_EVENTS[_0x117f9f(0x2f7)],_0x232708[_0x117f9f(0x1fb)]=_0x31749b['hdCWN'],webSocketUtils[_0x117f9f(0x301)](_0x562be6,_0x232708),logger[_0x117f9f(0x297)](_0x31749b[_0x117f9f(0x30c)]);const _0x54453e=_0x31749b[_0x117f9f(0x2dc)](_0x2aaa5b,null)&&_0x31749b[_0x117f9f(0x1f4)](_0x2aaa5b,undefined),_0x439ae7=_0x31749b[_0x117f9f(0x2cd)](_0x585146,null)&&_0x31749b['YhohL'](_0x585146,undefined)&&_0x31749b['natzJ'](_0x585146[_0x117f9f(0x227)],0x0);if(_0x54453e){_0x31749b['CXhMy'](_0x439ae7,![])&&(_0x5692fd=_0x31749b[_0x117f9f(0x2cb)],await _0x31749b[_0x117f9f(0x218)](reportToGalactusAndSendToEDS,_0x3c4283,_0x562be6,_0x5692fd,messageTypes[_0x117f9f(0x330)],_0x31749b['wZVpB'],_0x31749b[_0x117f9f(0x2c8)],_0x31749b[_0x117f9f(0x211)]),logger['error'](_0x5692fd),process[_0x117f9f(0x29a)](0x1));const _0x1ed943=await _0x4f48fa['isVPCPresent'](_0x2aaa5b);_0x31749b['CXhMy'](_0x1ed943,![])?(_0x5692fd=_0x31749b[_0x117f9f(0x2d6)],await _0x31749b[_0x117f9f(0x203)](reportToGalactusAndSendToEDS,_0x3c4283,_0x562be6,_0x5692fd,messageTypes['ERROR'],_0x31749b['wZVpB'],_0x31749b[_0x117f9f(0x253)],_0x31749b[_0x117f9f(0x211)]),logger[_0x117f9f(0x289)](_0x5692fd),process['exit'](0x1)):logger[_0x117f9f(0x297)]('Found\x20VPC:\x20'+_0x2aaa5b+'\x20');const _0x37287a=await _0x4f48fa[_0x117f9f(0x224)](_0x585146,_0x2aaa5b);_0x31749b[_0x117f9f(0x28d)](_0x37287a[0x0],![])?(_0x5692fd=_0x117f9f(0x2f1)+JSON[_0x117f9f(0x23c)](_0x37287a[0x1])+_0x117f9f(0x221)+_0x2aaa5b+_0x117f9f(0x2b0),await _0x31749b[_0x117f9f(0x311)](reportToGalactusAndSendToEDS,_0x3c4283,_0x562be6,_0x5692fd,messageTypes[_0x117f9f(0x330)],_0x31749b[_0x117f9f(0x2d8)],_0x31749b[_0x117f9f(0x2b2)],_0x31749b['QhUZJ']),logger[_0x117f9f(0x289)](_0x5692fd),process[_0x117f9f(0x29a)](0x1)):logger[_0x117f9f(0x297)](_0x117f9f(0x285)+JSON[_0x117f9f(0x23c)](_0x585146)+'\x20'),await _0x4f48fa[_0x117f9f(0x28f)](_0x2aaa5b,_0x585146);}else{const _0x4b130e=_0x31749b[_0x117f9f(0x2f3)][_0x117f9f(0x273)]('|');let _0x573d99=0x0;while(!![]){switch(_0x4b130e[_0x573d99++]){case'0':const _0x402a65={};_0x402a65[_0x117f9f(0x309)]=WS_EVENTS[_0x117f9f(0x2f7)],_0x402a65[_0x117f9f(0x1fb)]=_0x31749b['aBFBD'],webSocketUtils['sendEventToBackend'](_0x562be6,_0x402a65);continue;case'1':logger[_0x117f9f(0x297)](_0x31749b[_0x117f9f(0x214)]);continue;case'2':logger['info'](_0x31749b[_0x117f9f(0x316)]);continue;case'3':const _0x495a7d={};_0x495a7d['type']=WS_EVENTS[_0x117f9f(0x2f7)],_0x495a7d[_0x117f9f(0x1fb)]=_0x31749b[_0x117f9f(0x214)],webSocketUtils['sendEventToBackend'](_0x562be6,_0x495a7d);continue;case'4':await _0x4f48fa[_0x117f9f(0x28f)](_0x2aaa5b,_0x585146);continue;}break;}}}}_0x98f1d9&&_0x31749b['CXhMy'](_0x4e6567,AZURE)&&(await _0x4f48fa[_0x117f9f(0x306)](),await _0x4f48fa[_0x117f9f(0x339)]());const [_0x7820f4,_0x43a098,_0x5c9c12,_0x3e68a8,_0x30c33d,_0x114e65]=await _0x31749b[_0x117f9f(0x2aa)](createK8sClient,_0x4f48fa,_0x3c4283[_0x117f9f(0x27c)]);_0x31749b[_0x117f9f(0x315)](_0x98f1d9,![])&&_0x31749b[_0x117f9f(0x29c)](_0x4e6567,AWS)&&(global_registry[_0x117f9f(0x1fa)]=!![],_0x41534d=await _0x4f48fa[_0x117f9f(0x2bd)](_0x7820f4,_0x3c4283));try{_0x1b6a09=_0x31749b['WqlKc'](kebabCase,_0x2a2663),logger[_0x117f9f(0x297)](_0x31749b['jvCDX']);const _0x34ae15={};_0x34ae15[_0x117f9f(0x309)]=WS_EVENTS['LOG'],_0x34ae15[_0x117f9f(0x1fb)]=_0x31749b[_0x117f9f(0x2b4)],webSocketUtils[_0x117f9f(0x301)](_0x562be6,_0x34ae15);if(_0x31749b['GFzug'](_0x1b6a09,_0x31749b[_0x117f9f(0x327)])){const _0x581a01={};_0x581a01['createdBy']=_0x31749b[_0x117f9f(0x237)],_0x581a01['managedBy']=_0x31749b[_0x117f9f(0x237)];const _0x5635bb={};_0x5635bb[_0x117f9f(0x2be)]=_0x1b6a09,_0x5635bb[_0x117f9f(0x229)]=_0x581a01;const _0x1f966b={};_0x1f966b[_0x117f9f(0x206)]=_0x5635bb;const _0x13f1a6=_0x1f966b,_0x2b9cc9={};_0x2b9cc9[_0x117f9f(0x228)]=_0x13f1a6,await _0x7820f4['createNamespace'](_0x2b9cc9),logger['info'](_0x31749b[_0x117f9f(0x310)]);}const _0x326f79={};_0x326f79['type']=WS_EVENTS[_0x117f9f(0x2f7)],_0x326f79[_0x117f9f(0x1fb)]=_0x31749b['QglkL'],webSocketUtils[_0x117f9f(0x301)](_0x562be6,_0x326f79);const _0x5e6618={};_0x5e6618[_0x117f9f(0x309)]=WS_EVENTS['LOG'],_0x5e6618[_0x117f9f(0x1fb)]=_0x31749b['sGEGh'],webSocketUtils[_0x117f9f(0x301)](_0x562be6,_0x5e6618),logger[_0x117f9f(0x297)](_0x31749b['wqWXW']);let _0x1dbb06={};_0x31749b[_0x117f9f(0x2c5)](_0x4e6567,AZURE)&&(_0x1dbb06={'clientId':await _0x4f48fa[_0x117f9f(0x337)](_0x117f9f(0x320)+_0x43edc2)});await _0x31749b[_0x117f9f(0x295)](addGridComponents,_0x7820f4,_0x43a098,_0x5c9c12,_0x3e68a8,_0x1b6a09,_0x43edc2,_0x41534d,_0x30c33d,_0x114e65,_0x1dbb06),_0x5692fd=_0x31749b[_0x117f9f(0x2fc)],logger['info'](_0x5692fd);const _0x294387={};_0x294387['type']=WS_EVENTS[_0x117f9f(0x2f7)],_0x294387[_0x117f9f(0x1fb)]=_0x5692fd,webSocketUtils[_0x117f9f(0x301)](_0x562be6,_0x294387),_0x5692fd=_0x31749b[_0x117f9f(0x30e)],logger['info'](_0x5692fd);const _0x1f7c4c={};_0x1f7c4c[_0x117f9f(0x309)]=WS_EVENTS[_0x117f9f(0x2f7)],_0x1f7c4c[_0x117f9f(0x1fb)]=_0x5692fd,webSocketUtils[_0x117f9f(0x301)](_0x562be6,_0x1f7c4c),await _0x31749b['HvaTy'](waitForDeployment,_0x43a098,_0x1b6a09,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x22ba67=await _0x31749b[_0x117f9f(0x2aa)](getNamespaceUID,_0x7820f4,_0x1b6a09),_0x2aebc1=global_registry['isPrivateGrid']?_0x31749b[_0x117f9f(0x2e6)]:_0x31749b[_0x117f9f(0x257)],_0x106719={};_0x106719[_0x117f9f(0x2be)]=_0x2aebc1,_0x106719[_0x117f9f(0x2d0)]=_0x31749b[_0x117f9f(0x318)];const _0x353612=await _0x7820f4[_0x117f9f(0x23f)](_0x106719);let _0x4b987e=_0x4f48fa[_0x117f9f(0x334)](_0x353612)+'/'+_0x1b6a09,_0x145b83=_0x31749b[_0x117f9f(0x283)];try{const _0x5caef6=_0x117f9f(0x26b)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x22ba67,_0x4a0607=await _0x31749b[_0x117f9f(0x233)](got,_0x5caef6,_0x17cd42);(_0x31749b[_0x117f9f(0x205)](_0x4a0607,null)||_0x31749b[_0x117f9f(0x28d)](_0x4a0607,undefined))&&(_0x5692fd=_0x31749b[_0x117f9f(0x207)],await _0x31749b[_0x117f9f(0x203)](reportToGalactusAndSendToEDS,_0x3c4283,_0x562be6,_0x5692fd,messageTypes[_0x117f9f(0x330)],_0x31749b[_0x117f9f(0x2d8)],_0x31749b[_0x117f9f(0x256)],_0x31749b[_0x117f9f(0x211)]),logger[_0x117f9f(0x289)](_0x5692fd),process[_0x117f9f(0x29a)](0x1));_0x31749b[_0x117f9f(0x1ee)](_0x4a0607[_0x117f9f(0x263)],0x191)&&(_0x5692fd=_0x31749b[_0x117f9f(0x243)],await _0x31749b[_0x117f9f(0x1f3)](reportToGalactusAndSendToEDS,_0x3c4283,_0x562be6,_0x5692fd,messageTypes['ERROR'],_0x31749b['wZVpB'],_0x31749b[_0x117f9f(0x326)],_0x31749b[_0x117f9f(0x211)]),logger[_0x117f9f(0x289)](_0x5692fd),process[_0x117f9f(0x29a)](0x1));_0x31749b[_0x117f9f(0x266)](_0x4a0607[_0x117f9f(0x263)],0xc8)&&(_0x5692fd=_0x117f9f(0x2ab)+JSON['stringify'](_0x4a0607),await _0x31749b['AnsBU'](reportToGalactusAndSendToEDS,_0x3c4283,_0x562be6,_0x5692fd,messageTypes[_0x117f9f(0x330)],_0x31749b['wZVpB'],_0x31749b[_0x117f9f(0x332)],_0x31749b[_0x117f9f(0x211)]),logger['error'](_0x5692fd),process[_0x117f9f(0x29a)](0x1));const _0x11d3fd=JSON[_0x117f9f(0x2b7)](_0x4a0607[_0x117f9f(0x228)]);_0x11d3fd[_0x117f9f(0x324)]&&(_0x4b987e=_0x11d3fd[_0x117f9f(0x324)],_0x145b83=_0x31749b[_0x117f9f(0x31f)]),global_registry[_0x117f9f(0x22c)]&&(_0x145b83=_0x31749b[_0x117f9f(0x283)]);}catch(_0x148721){}_0x5692fd=_0x117f9f(0x32e)+_0x4b987e+'\x20',logger[_0x117f9f(0x297)](_0x5692fd);const _0x1a817c={};_0x1a817c[_0x117f9f(0x309)]=WS_EVENTS['LOG'],_0x1a817c[_0x117f9f(0x1fb)]=_0x5692fd,webSocketUtils[_0x117f9f(0x301)](_0x562be6,_0x1a817c),_0x5692fd=_0x117f9f(0x1fd)+_0x145b83+'://'+_0x4b987e+'/wd/hub',logger[_0x117f9f(0x297)](_0x5692fd);const _0x44483c={};_0x44483c[_0x117f9f(0x309)]=WS_EVENTS[_0x117f9f(0x2f7)],_0x44483c[_0x117f9f(0x1fb)]=_0x5692fd,webSocketUtils[_0x117f9f(0x301)](_0x562be6,_0x44483c);const _0x39332a={};_0x39332a[_0x117f9f(0x309)]=WS_EVENTS[_0x117f9f(0x234)],_0x39332a[_0x117f9f(0x1fb)]=_0x117f9f(0x236)+_0x4b987e,webSocketUtils['sendEventToBackend'](_0x562be6,_0x39332a),await webSocketUtils['delay'](0x7d0);}catch(_0x2f86a9){logger[_0x117f9f(0x289)](_0x117f9f(0x1f6)+_0x2f86a9+'\x20\x0a'+JSON[_0x117f9f(0x23c)](_0x2f86a9[_0x117f9f(0x2ac)]));if(_0x31749b[_0x117f9f(0x2a5)](_0x98f1d9,![]))try{logger[_0x117f9f(0x297)](_0x31749b[_0x117f9f(0x251)]),await _0x31749b[_0x117f9f(0x22a)](removeGridComponents,_0x7820f4,_0x43a098,_0x5c9c12,_0x3e68a8,_0x1b6a09),await _0x4f48fa[_0x117f9f(0x235)](_0x7820f4,global_registry['clusterRegion']);}catch(_0x3116f4){logger[_0x117f9f(0x289)](_0x117f9f(0x255)+_0x3116f4+'\x20\x0a'+JSON[_0x117f9f(0x23c)](_0x3116f4[_0x117f9f(0x2ac)]));}throw _0x2f86a9;}}catch(_0x140f26){const _0x116f36=_0x117f9f(0x30b)+_0x140f26+'\x20\x0a'+JSON[_0x117f9f(0x23c)](_0x140f26[_0x117f9f(0x2ac)]);if(_0x562be6){const _0x21d9cc={};_0x21d9cc[_0x117f9f(0x309)]=WS_EVENTS[_0x117f9f(0x2f7)],_0x21d9cc['message']=_0x116f36,webSocketUtils['sendEventToBackend'](_0x562be6,_0x21d9cc,_0x31749b[_0x117f9f(0x211)],!![]);}await webSocketUtils[_0x117f9f(0x2af)](0x7d0);const _0x8841b5={};_0x8841b5['error']=_0x116f36,await _0x31749b['OVuqh'](sendInstrumentationEvent,_0x3c4283,_0x31749b['wZVpB'],messageTypes[_0x117f9f(0x330)],_0x31749b[_0x117f9f(0x23a)],_0x8841b5,_0x3c4283),logger['error'](_0x116f36);}process[_0x117f9f(0x29a)](0x0);};function a9_0x5487(){const _0x416364=['pPIcx','521690tyhhOD','isIEH','password','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','3mYuJdV','giFmN','Tkdgr','Ebgir','yoLmW','replace','gridProfile','oVEGQ','CLI_RUN_STARTED','ZtFSR','bPlmS','region','Subnets:\x20','Found\x20VPC:\x20','drivn','dSiUG','browserVersion','vYKvb','LOG','LnnaO','UNdic','Grid\x20spawned\x20on\x20the\x20cluster','connectionTimeout','dcOds','default','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','ykFmY','aEMbf','sendEventToBackend','YiMKP','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','jUxIp','dYhRq','updateClusterAlreadyPresent','Will\x20be\x20spawning\x20the\x20grid\x20','ATutF','type','Skip\x20insecure\x20cert\x20verification.','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','hdCWN','4|2|7|8|0|3|1|5|6','YNlMY','zedtj','hyUkt','yXAFW','GdOOh','252462fqsfXv','../../utils/createk8sClient','zsEye','aBFBD','VZDdP','trUUS','maxNodes','https','user','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','/packages/cli/create-grid-checks','riOLv','lkZeT','turboscale-managed-identity-','get-grid-url-auth-failed','hubVersion','pimkx','route53','MFcEw','OZgqV','AJpAE','ZXbPE','help','77JfKbLN','create-grid-checks-non-200','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','63mDqZce','Grid\x20can\x20be\x20accessed\x20at:\x20','tNHnh','ERROR','private-ingress-nginx-controller','pEZOs','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.','getGridHostname','readFileSync','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','getResourceClientId','get-grid-url-non-200','createOtherResources','clusterRegion','toLowerCase','HWgds','grid-name','ZqyWB','QWewA','isClusterPresent','OrogP','QiVXz','sySRo','WUUEz','adZaf','options','lagsa','BHqLO','nuwNk','gzret','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','pre-spawned-subnets-not-selected','RuWVe','cSSyG','isNewAWSCluster','message','ERPjX','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','dbugx','cluster-name','oZfBv','Ojzwd','boolean','PMUFS','http','ulLyc','metadata','eCEra','vNAOd','create-grid-called','AcHkd','epilogue','nhBqz','Spawning\x20Grid\x20on\x20the\x20Cluster','usage','got','../../config/constants','QhUZJ','rSVAY','zcIuP','bgKvc','txcNh','YhohL','create-grid-checks-null-response','khidT','defaultGridProfile','JFkwU','ansHa','598280WRFJHr','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','xYHBu','s3bucket','create-grid-checks-invalid-profile','\x20are\x20not\x20present\x20in\x20VPC:\x20','addListeners','KoHkQ','isSubnetsValid','SfKlp','subnets','length','body','annotations','ejleI','\x20in\x20existing\x20cluster\x20\x27','isPrivateGrid','OVuqh','vDsOc','dKmWd','eYHzF','bstackAccesskey','AUdeQ','XEgwb','CLI_RUN_FINISHED','deleteCluster','CLI\x20run\x20finished:\x20','RMvDT','dtoas','nnOkM','umMKq','OlGtf','stringify','AnsBU','3|5|6|0|7|8|2|1|4','readNamespacedService','fwYeS','uuid','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','WJLiN','egcKT','GUsbd','WhNMU','Oqvac','securityGroups','JJuwL','ingress-nginx','Yepln','bstackUsername','WebSocket','newCluster','MgvPw','skip-tls-cert-verify','RuCfV','GjzpB','boCnp','fwQVv','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','XUTpN','lXyOx','Cluster\x20created\x20successfully','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','string','0|2|4|3|1','NBPVN','argv','HSSdR','grid-spawning-failed','HkTSX','ECgHq','koJZB','statusCode','sendResourceDataToHST','Creating\x20namespace','wLwXh','6656528MAcsVA','iUctm','FkiWK','MWRsr','https://','../../utils/webSocketUtils','sdDHs','builder','IIqeo','desc','privateGrid','init-not-called','split','gridProfileId','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','IEFlM','../../utils/instrumentationUtils','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','CLI\x20run\x20started','pre-spawned-invalid-vpc','skipTlsCertVerify','grid-profile','OCaWi','Spawning\x20grid\x20on\x20to\x20the\x20cluster','PPpGL','FiNsi','NLMpE','XUPZR','create','Found\x20Subnets:\x20','<PasswordPlaceholder>','handler','0|13|5|8|4|9|14|10|11|3|6|1|2|7|12','error','requestId','wtedc','Spawning\x20the\x20grid\x20','FukDd','NFCiA','setupNewCluster','command','IxjVA','osxQA','dtfEK','tKKLB','puyzo','username','info','Grid\x20profile\x20fetched\x20from\x20backend','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','exit','gridName','iNLJx','GIlPA','../../utils/utilityMethods','reconnecting-websocket','create-grid-checks-grid-already-exists','Namespace\x20created','minNodes','xzJGY','Deleting\x20the\x20CloudFormation\x20Stacks','ZbbnV','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','private-grid','833390Ampzjl','Browserstack','qBGhu','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','stack','183762tWxTJN','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','delay','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','INFO','YIXoi','Cluster\x20','jvCDX','pre-spawned-invalid-subnets','dtOzY','parse','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','existsSync','GET','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','oDmgH','setupAutoscaler','name','includes','VWnTs','EOuMb','alreadyPresent','description','Adding\x20Websocket\x20listeners','HSndY','concurrency','UCIZb','xDkWH','cloudProvider','gwDzJ','TLOIZ','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','WYGKi','rWIyB','ictqD','namespace','uRkzM','instanceType','XNCap','../../cloudproviders/utils','kyzTl','LUJCz','4018405rmNivN','wZVpB','grid','UbVAC','lXqdu','uHTwo','clusterName','debug','\x27\x20grid\x20profile'];a9_0x5487=function(){return _0x416364;};return a9_0x5487();}
1
+ const a9_0x389884=a9_0x5ee9;(function(_0x214f16,_0x4ceaba){const _0x4f9d6a=a9_0x5ee9,_0x35a400=_0x214f16();while(!![]){try{const _0x110db2=-parseInt(_0x4f9d6a(0x2fa))/0x1+-parseInt(_0x4f9d6a(0x256))/0x2+parseInt(_0x4f9d6a(0x1dc))/0x3*(-parseInt(_0x4f9d6a(0x2cf))/0x4)+-parseInt(_0x4f9d6a(0x2cd))/0x5*(parseInt(_0x4f9d6a(0x235))/0x6)+-parseInt(_0x4f9d6a(0x248))/0x7+-parseInt(_0x4f9d6a(0x243))/0x8+parseInt(_0x4f9d6a(0x27d))/0x9;if(_0x110db2===_0x4ceaba)break;else _0x35a400['push'](_0x35a400['shift']());}catch(_0x2c3b9a){_0x35a400['push'](_0x35a400['shift']());}}}(a9_0x3ee7,0xb40cd));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x389884(0x2e1)),got=require(a9_0x389884(0x2eb)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x389884(0x1e0)),{logger}=require(a9_0x389884(0x280)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x389884(0x2a5)),{getCloudProviderObject}=require(a9_0x389884(0x1c1)),{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_0x389884(0x215)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x389884(0x2ab)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a9_0x5ee9(_0x49274b,_0x4dd90b){const _0x3ee70e=a9_0x3ee7();return a9_0x5ee9=function(_0x5ee925,_0x1e3c56){_0x5ee925=_0x5ee925-0x1af;let _0x357a3b=_0x3ee70e[_0x5ee925];return _0x357a3b;},a9_0x5ee9(_0x49274b,_0x4dd90b);}exports[a9_0x389884(0x2da)]=a9_0x389884(0x1b7),exports[a9_0x389884(0x210)]=a9_0x389884(0x265),exports[a9_0x389884(0x1f9)]=function(_0x4e160a){const _0x3841fa=a9_0x389884,_0x37fded={};_0x37fded['Bqhdn']='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x37fded['YPCOD']=_0x3841fa(0x28a),_0x37fded[_0x3841fa(0x236)]=_0x3841fa(0x27a),_0x37fded[_0x3841fa(0x2f8)]=_0x3841fa(0x2d2),_0x37fded['jauOQ']=_0x3841fa(0x293),_0x37fded['dfgCH']=_0x3841fa(0x211),_0x37fded[_0x3841fa(0x1e2)]='Create\x20a\x20private/public\x20grid.',_0x37fded[_0x3841fa(0x2b9)]=_0x3841fa(0x272),_0x37fded[_0x3841fa(0x1cb)]='boolean',_0x37fded[_0x3841fa(0x275)]='help';const _0x121c08=_0x37fded,_0x1734a8={};_0x1734a8[_0x3841fa(0x267)]=_0x121c08[_0x3841fa(0x1c0)],_0x1734a8[_0x3841fa(0x2f7)]=_0x121c08[_0x3841fa(0x1ef)];const _0x2ef7f0={};_0x2ef7f0['description']=_0x121c08['kSwMM'],_0x2ef7f0[_0x3841fa(0x2f7)]=_0x121c08[_0x3841fa(0x1ef)];const _0x1da820={};_0x1da820[_0x3841fa(0x267)]=_0x121c08[_0x3841fa(0x2f8)],_0x1da820['type']=_0x121c08[_0x3841fa(0x1ef)];const _0x30edd3={};_0x30edd3['description']=_0x121c08[_0x3841fa(0x253)],_0x30edd3['type']=_0x121c08['YPCOD'];const _0x28ec67={};_0x28ec67[_0x3841fa(0x267)]=_0x121c08[_0x3841fa(0x1ca)],_0x28ec67['type']=_0x121c08[_0x3841fa(0x1ef)];const _0x57a9ac={};_0x57a9ac[_0x3841fa(0x267)]=_0x121c08[_0x3841fa(0x1e2)],_0x57a9ac[_0x3841fa(0x2f7)]=_0x121c08[_0x3841fa(0x1ef)];const _0x4c4a4={};_0x4c4a4[_0x3841fa(0x267)]=_0x121c08[_0x3841fa(0x2b9)],_0x4c4a4[_0x3841fa(0x2f7)]=_0x121c08['aoFyr'],_0x4c4a4[_0x3841fa(0x2e7)]=![];const _0x464de9={};return _0x464de9[_0x3841fa(0x2c3)]=_0x1734a8,_0x464de9[_0x3841fa(0x25f)]=_0x2ef7f0,_0x464de9['cluster-name']=_0x1da820,_0x464de9[_0x3841fa(0x1e9)]=_0x30edd3,_0x464de9[_0x3841fa(0x2de)]=_0x28ec67,_0x464de9[_0x3841fa(0x205)]=_0x57a9ac,_0x464de9[_0x3841fa(0x1cf)]=_0x4c4a4,_0x4e160a[_0x3841fa(0x232)](HELP_HEADER_MESSAGE[_0x3841fa(0x1bf)])[_0x3841fa(0x1d7)](HELP_FOOTER_MESSAGE)[_0x3841fa(0x1d5)](_0x464de9)[_0x3841fa(0x2f6)](_0x121c08['XNmKd'])[_0x3841fa(0x257)];},exports[a9_0x389884(0x2e8)]=async function(_0x4b35b1){const _0x1181e0=a9_0x389884,_0x991fef={'YfasX':_0x1181e0(0x291),'jiIqu':_0x1181e0(0x1b0),'rvrPL':function(_0x257659,_0x463a9c){return _0x257659===_0x463a9c;},'PdqLs':_0x1181e0(0x227),'wPExi':_0x1181e0(0x220),'GItsd':_0x1181e0(0x2bc),'tqhCk':_0x1181e0(0x28a),'BnDIZ':_0x1181e0(0x27a),'vGMfd':_0x1181e0(0x2d2),'opKMF':_0x1181e0(0x293),'sezPv':_0x1181e0(0x211),'aXPBe':_0x1181e0(0x2af),'TyQpg':_0x1181e0(0x272),'YeeYQ':_0x1181e0(0x278),'ADecD':'help','eZtEl':_0x1181e0(0x2c4),'mAFLE':_0x1181e0(0x1de),'mDJrI':function(_0x8cb574,_0x2bbbb9){return _0x8cb574!==_0x2bbbb9;},'NXkHZ':function(_0x864078,_0x115290,_0x226f21,_0x20915a,_0x156ca0,_0x369b11,_0x2bf97a,_0x72a945,_0x3fac12,_0x7eece1,_0x8b14,_0x59997d){return _0x864078(_0x115290,_0x226f21,_0x20915a,_0x156ca0,_0x369b11,_0x2bf97a,_0x72a945,_0x3fac12,_0x7eece1,_0x8b14,_0x59997d);},'sjRdp':_0x1181e0(0x23f),'Xguav':function(_0x20cef6){return _0x20cef6();},'OkgBm':function(_0x5150a2){return _0x5150a2();},'sKzJW':function(_0x5181ba,_0x48d64b){return _0x5181ba!==_0x48d64b;},'rmkVQ':_0x1181e0(0x2e4),'TGbYn':_0x1181e0(0x1c7),'VkvPY':function(_0x4c2944,_0xb6e0b5,_0x5f157e,_0xdcbbb5,_0x148507,_0xb6cc75,_0x4ad1c2){return _0x4c2944(_0xb6e0b5,_0x5f157e,_0xdcbbb5,_0x148507,_0xb6cc75,_0x4ad1c2);},'tYuWi':_0x1181e0(0x255),'ZfOcg':_0x1181e0(0x222),'uxzFa':function(_0x2c3f57,_0x3a0b5f,_0x25a7b4,_0x25cfb0,_0xfb2ad6,_0x4dd35b,_0x314276){return _0x2c3f57(_0x3a0b5f,_0x25a7b4,_0x25cfb0,_0xfb2ad6,_0x4dd35b,_0x314276);},'TsbeO':function(_0x4f89bf){return _0x4f89bf();},'pCEFG':'<UsernamePlaceholder>','KyNaW':'<PasswordPlaceholder>','CJxKS':_0x1181e0(0x2c6),'APrix':function(_0x240a47,_0x5e7a9d){return _0x240a47!==_0x5e7a9d;},'SVOfP':_0x1181e0(0x25c),'EiRiF':_0x1181e0(0x2a8),'Iwlip':_0x1181e0(0x22f),'yYFPd':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','sBDKY':function(_0x4fc10b,_0x4a524a,_0x298611,_0x282e91,_0x18324a,_0x42a286,_0x401d13,_0x1e1718){return _0x4fc10b(_0x4a524a,_0x298611,_0x282e91,_0x18324a,_0x42a286,_0x401d13,_0x1e1718);},'sPhIb':_0x1181e0(0x1e6),'FOnCK':function(_0x4a36ce,_0x1f8ab0){return _0x4a36ce===_0x1f8ab0;},'piGZn':_0x1181e0(0x2b7),'FJkJe':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','qRGwk':function(_0x642342,_0x1fecc5,_0x24bda6,_0x30a28b,_0xf74127,_0x5da0a5,_0x158378,_0x26dc54){return _0x642342(_0x1fecc5,_0x24bda6,_0x30a28b,_0xf74127,_0x5da0a5,_0x158378,_0x26dc54);},'wzPmS':_0x1181e0(0x1e5),'wDFEr':'true','vHmSH':_0x1181e0(0x1fb),'scdpe':_0x1181e0(0x263),'utNuk':_0x1181e0(0x266),'GRRSR':function(_0x62b229,_0x1cae59){return _0x62b229===_0x1cae59;},'yAxNi':_0x1181e0(0x1f3),'iZZJb':_0x1181e0(0x21d),'jiBGc':function(_0x15a8ea,_0x492c4c,_0xe7d859){return _0x15a8ea(_0x492c4c,_0xe7d859);},'ZVBdJ':_0x1181e0(0x2dd),'hWFIB':function(_0x3a80ee,_0xd5f8d9){return _0x3a80ee===_0xd5f8d9;},'ZIvsx':'bCkSq','CqNQo':'svcGs','ssScG':_0x1181e0(0x250),'zfVDa':function(_0x39668c,_0x5ce04a,_0x15a3a7,_0x27d61d,_0x82d4a0,_0x31cb1c,_0xd4069c,_0x2a62c7){return _0x39668c(_0x5ce04a,_0x15a3a7,_0x27d61d,_0x82d4a0,_0x31cb1c,_0xd4069c,_0x2a62c7);},'FjlXA':'create-grid-checks-null-response','FxRPY':function(_0x16b843,_0x266aa1){return _0x16b843===_0x266aa1;},'wvKnb':function(_0x453aa9,_0x183c25){return _0x453aa9===_0x183c25;},'UheJb':'rdJUZ','hCiIh':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','bgqVJ':function(_0x43b949,_0x47a9ae,_0x472052,_0x31d6cf,_0x58da8a,_0x5877cc,_0x4d6af8,_0x42cb74){return _0x43b949(_0x47a9ae,_0x472052,_0x31d6cf,_0x58da8a,_0x5877cc,_0x4d6af8,_0x42cb74);},'mXLsb':_0x1181e0(0x254),'eksEs':function(_0x47dc45,_0x18c122){return _0x47dc45!==_0x18c122;},'ROZAV':function(_0x185b15,_0x5a44dc){return _0x185b15===_0x5a44dc;},'QTeBY':_0x1181e0(0x25d),'dUOBk':function(_0x1c6215,_0x2c8fbc,_0x557b5a,_0x176d70,_0x548088,_0x36070b,_0x17fe55,_0x2f8253){return _0x1c6215(_0x2c8fbc,_0x557b5a,_0x176d70,_0x548088,_0x36070b,_0x17fe55,_0x2f8253);},'PWunZ':_0x1181e0(0x200),'vcIFN':_0x1181e0(0x2ae),'nViqJ':function(_0x45b743,_0xb84d98){return _0x45b743===_0xb84d98;},'OIQiG':'vQmcb','udQjs':_0x1181e0(0x1b4),'nOtpQ':_0x1181e0(0x2fb),'QOmXb':'blcSj','koNgo':function(_0x1e1e69,_0x14c13a){return _0x1e1e69===_0x14c13a;},'rdoEt':function(_0x118c99,_0x638a57){return _0x118c99!==_0x638a57;},'yOeyy':_0x1181e0(0x29e),'ivKhZ':function(_0x373c1c,_0x3c62e6){return _0x373c1c===_0x3c62e6;},'qiXTI':function(_0x5ca527,_0x546af6){return _0x5ca527===_0x546af6;},'pPYtF':_0x1181e0(0x2b8),'VBWQK':_0x1181e0(0x2dc),'jBDba':function(_0xa15e,_0x16c45c,_0x43542b,_0x577f83,_0x55821a,_0x2aa85b,_0x5a2018,_0x5a1555){return _0xa15e(_0x16c45c,_0x43542b,_0x577f83,_0x55821a,_0x2aa85b,_0x5a2018,_0x5a1555);},'pIGEB':_0x1181e0(0x28b),'aqEaK':function(_0x361cb9,_0x11d255){return _0x361cb9===_0x11d255;},'lyiQL':function(_0x5b85be,_0x229403){return _0x5b85be!==_0x229403;},'MLAbU':_0x1181e0(0x1ba),'nzabi':_0x1181e0(0x1d0),'ympQs':function(_0x4e4ed9,_0x1a1ef6){return _0x4e4ed9===_0x1a1ef6;},'rJTBh':_0x1181e0(0x246),'RWwPo':function(_0x20192c,_0x4bcdf8){return _0x20192c!==_0x4bcdf8;},'ovBNX':function(_0x700130,_0x389bf2){return _0x700130===_0x389bf2;},'pEbHu':_0x1181e0(0x2a6),'iDKbo':function(_0x5bc4ac,_0x57df87){return _0x5bc4ac===_0x57df87;},'YdOVD':_0x1181e0(0x228),'kZSbJ':function(_0x4be94b,_0x43058c){return _0x4be94b===_0x43058c;},'uUyvp':_0x1181e0(0x2ce),'sQNbm':function(_0x486af0,_0x22be1d){return _0x486af0!==_0x22be1d;},'uGuxt':_0x1181e0(0x1bc),'UTtwx':'7|0|1|8|4|3|2|5|6','bIETj':function(_0x5270d7,_0x1dde89){return _0x5270d7===_0x1dde89;},'JbWQs':_0x1181e0(0x24d),'TUUXW':function(_0x5823f6,_0x37a564){return _0x5823f6!=_0x37a564;},'BwRlC':function(_0x564dc4,_0x101a5d){return _0x564dc4>_0x101a5d;},'KTsbl':function(_0x1ab99f,_0x21c025){return _0x1ab99f===_0x21c025;},'rLmQm':_0x1181e0(0x294),'VxMYv':_0x1181e0(0x201),'LLSnx':function(_0xfe1528,_0x5042e2){return _0xfe1528===_0x5042e2;},'umfVO':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','vMUEE':function(_0x44aeeb,_0x414163,_0x3ffbd7,_0x5ab6d8,_0x420540,_0x24e967,_0x3826cc,_0x2e5881){return _0x44aeeb(_0x414163,_0x3ffbd7,_0x5ab6d8,_0x420540,_0x24e967,_0x3826cc,_0x2e5881);},'LtRRU':_0x1181e0(0x241),'ymBBc':function(_0x3c6e7d,_0x524207){return _0x3c6e7d===_0x524207;},'joEqP':function(_0x28500d,_0x3ce139,_0x26cc1e,_0x1dc3a8,_0x12f13d,_0xd97a23,_0x39947c,_0xec0933){return _0x28500d(_0x3ce139,_0x26cc1e,_0x1dc3a8,_0x12f13d,_0xd97a23,_0x39947c,_0xec0933);},'BzRQQ':_0x1181e0(0x28c),'qavwD':_0x1181e0(0x28d),'ZpaXV':_0x1181e0(0x2b1),'svFgI':'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.','xbbtQ':function(_0x4a9d9d,_0x5ec6f1){return _0x4a9d9d===_0x5ec6f1;},'VCzfU':function(_0x30fe9d,_0x29b7d9){return _0x30fe9d===_0x29b7d9;},'xOMiF':function(_0x57d69a,_0x581df6){return _0x57d69a(_0x581df6);},'DtxwN':_0x1181e0(0x1d8),'AiLKl':function(_0x2215c6,_0x88f64e){return _0x2215c6!==_0x88f64e;},'VVbUp':'default','bpDfU':_0x1181e0(0x208),'uchKR':_0x1181e0(0x1c8),'ccbDC':_0x1181e0(0x231),'VrfSP':_0x1181e0(0x212),'uUiZK':_0x1181e0(0x25e),'nsgFj':function(_0x22913f,_0x547b1e){return _0x22913f===_0x547b1e;},'XTFCQ':function(_0x356792,_0x5cdb0f,_0x11fea0,_0x59b886,_0x808e81,_0x2b4f8f,_0x283747,_0x279bcd,_0x3c8046,_0x2bb01d,_0x364546){return _0x356792(_0x5cdb0f,_0x11fea0,_0x59b886,_0x808e81,_0x2b4f8f,_0x283747,_0x279bcd,_0x3c8046,_0x2bb01d,_0x364546);},'rKIhN':_0x1181e0(0x2db),'qqdyt':_0x1181e0(0x288),'xiXNL':function(_0x355afe,_0x58c80d,_0x1cf167,_0x40d564,_0x521083){return _0x355afe(_0x58c80d,_0x1cf167,_0x40d564,_0x521083);},'VUIJQ':_0x1181e0(0x2f0),'ygDeU':_0x1181e0(0x1d6),'ajnwG':'ingress-nginx','RYzTj':function(_0x384ecd,_0x3b765d,_0x166ec1){return _0x384ecd(_0x3b765d,_0x166ec1);},'AnCvR':function(_0x34a094,_0x55d185){return _0x34a094===_0x55d185;},'PbMKu':_0x1181e0(0x2ba),'DrXqU':_0x1181e0(0x1c5),'DzJfE':_0x1181e0(0x207),'eytOR':function(_0x530cd3,_0xa456c0,_0x19406c,_0x470d9f,_0x4ff1ff,_0x39cc4b,_0x46ff6e,_0x2c0043){return _0x530cd3(_0xa456c0,_0x19406c,_0x470d9f,_0x4ff1ff,_0x39cc4b,_0x46ff6e,_0x2c0043);},'JmQjN':_0x1181e0(0x2ed),'DqrZn':function(_0x4a5d76,_0xcf22de){return _0x4a5d76!==_0xcf22de;},'WOUpy':function(_0x226f85,_0x591020,_0x5a6a93,_0x5ded38,_0x5385d8,_0x210f89,_0x3cb77e,_0x7b8d90){return _0x226f85(_0x591020,_0x5a6a93,_0x5ded38,_0x5385d8,_0x210f89,_0x3cb77e,_0x7b8d90);},'wZzIH':'get-grid-url-non-200','shPjk':'Deleting\x20the\x20CloudFormation\x20Stacks','rdJIR':function(_0x42c4e4,_0x1fab38,_0x47cba2,_0x3a0692,_0x5ca6ed,_0x3541ca){return _0x42c4e4(_0x1fab38,_0x47cba2,_0x3a0692,_0x5ca6ed,_0x3541ca);},'efhbS':function(_0x398c09,_0x40c42d,_0x1c182f,_0x3f79b6,_0x5f484b,_0x3db157,_0x293e5f){return _0x398c09(_0x40c42d,_0x1c182f,_0x3f79b6,_0x5f484b,_0x3db157,_0x293e5f);},'ixpzh':_0x1181e0(0x2ee)};let _0x4aa1dc=![],_0x1296c9=![],_0x486805,_0x3799fd,_0x5e3032,_0xf713f8,_0x2e7ece,_0x542b0e,_0x5e7f3b,_0x5969b3,_0x473cc6,_0x494e60,_0x1f7494,_0x77c46d,_0x325262,_0x3b7642,_0x425b6e=0x1,_0x3c51f6=0xe;try{global_registry[_0x1181e0(0x2b0)]=_0x991fef[_0x1181e0(0x1b3)](uuidv4),global_registry[_0x1181e0(0x287)]=![];if(!fs[_0x1181e0(0x217)](_0x991fef[_0x1181e0(0x21a)](getCredentialsPath))){if(_0x991fef[_0x1181e0(0x23a)](_0x991fef[_0x1181e0(0x2ec)],_0x991fef[_0x1181e0(0x2ec)])){const _0x482fa8={};_0x482fa8[_0x1181e0(0x2f7)]=_0x3ed6d8[_0x1181e0(0x1f4)],_0x482fa8[_0x1181e0(0x20b)]=_0x1a2334,_0x586903[_0x1181e0(0x260)](_0x4ac208,_0x482fa8,_0x991fef[_0x1181e0(0x1f6)],!![]);}else console[_0x1181e0(0x291)](_0x991fef[_0x1181e0(0x1bb)]),await _0x991fef[_0x1181e0(0x2d0)](sendInstrumentationEvent,_0x4b35b1,_0x991fef[_0x1181e0(0x2f1)],messageTypes[_0x1181e0(0x233)],_0x991fef[_0x1181e0(0x284)],null,_0x4b35b1),process[_0x1181e0(0x273)](0x1);}await _0x991fef[_0x1181e0(0x2a2)](sendInstrumentationEvent,_0x4b35b1,_0x991fef[_0x1181e0(0x2f1)],messageTypes['INFO'],null,null,_0x4b35b1);const _0x5a1e0c=JSON['parse'](fs[_0x1181e0(0x249)](_0x991fef[_0x1181e0(0x239)](getCredentialsPath)));global_registry[_0x1181e0(0x23b)]=_0x5a1e0c[_0x1181e0(0x208)]['username'],global_registry[_0x1181e0(0x1ea)]=_0x5a1e0c['Browserstack'][_0x1181e0(0x283)];const _0x58b948=WS_ENDPOINT[_0x1181e0(0x2d3)](_0x991fef[_0x1181e0(0x261)],_0x5a1e0c['Browserstack'][_0x1181e0(0x214)])[_0x1181e0(0x2d3)](_0x991fef['KyNaW'],_0x5a1e0c['Browserstack']['password']),_0x2c964b={};_0x2c964b[_0x1181e0(0x2bb)]=ws,_0x2c964b['connectionTimeout']=0x36ee80,_0x77c46d=new ReconnectingWebSocket(_0x58b948,[],_0x2c964b),logger[_0x1181e0(0x2cc)](_0x991fef['CJxKS']),webSocketUtils[_0x1181e0(0x2e0)](_0x77c46d,_0x4b35b1[_0x1181e0(0x289)],_0x4b35b1[_0x1181e0(0x283)]);const _0x1b40a0=_0x4b35b1[_0x1181e0(0x2c0)]||DEFAULT_GRID_NAME;if(_0x4b35b1['clusterName']||_0x4b35b1['cloudProvider']||_0x4b35b1[_0x1181e0(0x2de)]){if(_0x991fef[_0x1181e0(0x2b4)](_0x991fef[_0x1181e0(0x20a)],_0x991fef['EiRiF'])){if(!(_0x4b35b1['clusterName']&&_0x4b35b1[_0x1181e0(0x28f)]&&_0x4b35b1[_0x1181e0(0x2de)])){if(_0x991fef[_0x1181e0(0x29c)](_0x991fef[_0x1181e0(0x2f3)],_0x991fef['Iwlip'])){const _0x5aca1a={};_0x5aca1a[_0x1181e0(0x2f7)]=_0x30a017[_0x1181e0(0x1f4)],_0x5aca1a[_0x1181e0(0x20b)]=_0x1181e0(0x1be)+_0x2159d0+_0x1181e0(0x1ce),_0x54976d['sendEventToBackend'](_0x546053,_0x5aca1a,_0x991fef['jiIqu']),_0x5a130f[_0x1181e0(0x202)](_0x1181e0(0x1be)+_0x214522+_0x1181e0(0x1ce)),_0x5e51d5=!![];if(_0x991fef[_0x1181e0(0x221)](_0x199a3c,!![]))throw new _0x47c308('Cluster\x20'+_0x340930+_0x1181e0(0x2b3));}else _0x486805=_0x991fef['yYFPd'],await _0x991fef[_0x1181e0(0x27e)](reportToGalactusAndSendToEDS,_0x4b35b1,_0x77c46d,_0x486805,messageTypes[_0x1181e0(0x233)],_0x991fef[_0x1181e0(0x2f1)],_0x991fef[_0x1181e0(0x29b)],_0x991fef['YfasX']),logger[_0x1181e0(0x291)](_0x486805),process[_0x1181e0(0x273)](0x1);}![AWS,AZURE,GCP][_0x1181e0(0x2a7)](_0x4b35b1[_0x1181e0(0x28f)][_0x1181e0(0x2d1)]())&&(_0x991fef[_0x1181e0(0x22c)](_0x991fef[_0x1181e0(0x1f7)],_0x991fef[_0x1181e0(0x1f7)])?(_0x486805=_0x991fef['FJkJe'],await _0x991fef[_0x1181e0(0x24b)](reportToGalactusAndSendToEDS,_0x4b35b1,_0x77c46d,_0x486805,messageTypes[_0x1181e0(0x233)],_0x991fef['tYuWi'],_0x991fef['wzPmS'],_0x991fef['YfasX']),logger[_0x1181e0(0x291)](_0x486805),process[_0x1181e0(0x273)](0x1)):_0x4f1664[_0x1181e0(0x287)]=!![]);if(_0x4b35b1[_0x1181e0(0x2df)]&&_0x991fef[_0x1181e0(0x22c)](_0x4b35b1['privateGrid']['toLowerCase'](),_0x991fef[_0x1181e0(0x1c2)])){if(_0x991fef[_0x1181e0(0x23a)](_0x991fef['vHmSH'],_0x991fef[_0x1181e0(0x1e8)])){const _0xf8caab=_0x991fef[_0x1181e0(0x203)][_0x1181e0(0x1cd)]('|');let _0x359d89=0x0;while(!![]){switch(_0xf8caab[_0x359d89++]){case'0':_0x3575b8['browserVersion']=_0x50acda['browserVersion'];continue;case'1':_0x664c2a[_0x1181e0(0x202)](_0xa941b4);continue;case'2':const _0x161a3d={};_0x161a3d['type']=_0x834099[_0x1181e0(0x1dd)],_0x161a3d[_0x1181e0(0x20b)]=_0x991fef[_0x1181e0(0x1f8)],_0x234adc[_0x1181e0(0x260)](_0x184430,_0x161a3d);continue;case'3':_0x43ac05[_0x1181e0(0x282)]=_0x11a5f1['hubVersion'];continue;case'4':_0x307ab4[_0x1181e0(0x1b6)]=_0x8855dd;continue;case'5':_0x3fe90a=_0x1181e0(0x209)+_0xddaf13+'\x20in\x20existing\x20cluster\x20\x27'+_0x4cd181+'\x27';continue;case'6':const _0x3494de={};_0x3494de['type']=_0x447970[_0x1181e0(0x1f4)],_0x3494de[_0x1181e0(0x20b)]=_0x1a837f,_0x2ab512[_0x1181e0(0x260)](_0x25d92b,_0x3494de);continue;case'7':_0x5a8e74[_0x1181e0(0x1b2)]=_0x391f97;continue;case'8':_0x120fe5[_0x1181e0(0x28f)]=_0xe6daf6;continue;}break;}}else global_registry[_0x1181e0(0x287)]=!![];}global_registry[_0x1181e0(0x28f)]=_0x4b35b1[_0x1181e0(0x28f)],global_registry[_0x1181e0(0x1b6)]=_0x4b35b1[_0x1181e0(0x2de)],global_registry[_0x1181e0(0x1b2)]=_0x4b35b1[_0x1181e0(0x1b2)];const _0x2f4d3e=await _0x991fef[_0x1181e0(0x2d0)](getCloudProviderObject,_0x4b35b1[_0x1181e0(0x28f)],_0x4b35b1[_0x1181e0(0x1b2)],_0x1b40a0,_0x77c46d,webSocketUtils,_0x4b35b1),_0x384e30=await _0x2f4d3e['isClusterPresent']();if(!_0x384e30)_0x991fef[_0x1181e0(0x22c)](_0x991fef[_0x1181e0(0x20e)],_0x991fef[_0x1181e0(0x20e)])?(logger[_0x1181e0(0x202)](_0x1181e0(0x2ef)+_0x4b35b1[_0x1181e0(0x1b2)]+_0x1181e0(0x1ed)),_0x4aa1dc=![],_0x1296c9=!![]):_0x17b4a1=null;else{if(_0x991fef[_0x1181e0(0x29c)](_0x991fef[_0x1181e0(0x1c6)],_0x991fef['utNuk'])){const _0x12380e={};_0x12380e[_0x1181e0(0x267)]=_0x991fef[_0x1181e0(0x26b)],_0x12380e[_0x1181e0(0x2f7)]=_0x991fef['tqhCk'];const _0x249be3={};_0x249be3['description']=_0x991fef[_0x1181e0(0x1d1)],_0x249be3['type']=_0x991fef[_0x1181e0(0x22d)];const _0x223f08={};_0x223f08[_0x1181e0(0x267)]=_0x991fef[_0x1181e0(0x25a)],_0x223f08['type']=_0x991fef[_0x1181e0(0x22d)];const _0x2b31a7={};_0x2b31a7[_0x1181e0(0x267)]=_0x991fef[_0x1181e0(0x225)],_0x2b31a7[_0x1181e0(0x2f7)]=_0x991fef['tqhCk'];const _0x53b2b1={};_0x53b2b1[_0x1181e0(0x267)]=_0x991fef['sezPv'],_0x53b2b1[_0x1181e0(0x2f7)]=_0x991fef[_0x1181e0(0x22d)];const _0x5e6d18={};_0x5e6d18[_0x1181e0(0x267)]=_0x991fef[_0x1181e0(0x25b)],_0x5e6d18['type']=_0x991fef[_0x1181e0(0x22d)];const _0x96a52e={};_0x96a52e[_0x1181e0(0x267)]=_0x991fef[_0x1181e0(0x1e1)],_0x96a52e[_0x1181e0(0x2f7)]=_0x991fef[_0x1181e0(0x21e)],_0x96a52e[_0x1181e0(0x2e7)]=![];const _0x5d6e22={};return _0x5d6e22[_0x1181e0(0x2c3)]=_0x12380e,_0x5d6e22[_0x1181e0(0x25f)]=_0x249be3,_0x5d6e22[_0x1181e0(0x226)]=_0x223f08,_0x5d6e22[_0x1181e0(0x1e9)]=_0x2b31a7,_0x5d6e22['region']=_0x53b2b1,_0x5d6e22[_0x1181e0(0x205)]=_0x5e6d18,_0x5d6e22['skip-tls-cert-verify']=_0x96a52e,_0x30554c[_0x1181e0(0x232)](_0x145c3b['create'])[_0x1181e0(0x1d7)](_0x23d3d6)[_0x1181e0(0x1d5)](_0x5d6e22)[_0x1181e0(0x2f6)](_0x991fef[_0x1181e0(0x206)])['argv'];}else _0x4aa1dc=!![];}_0x5e3032=_0x4b35b1[_0x1181e0(0x1b2)],_0x3799fd=_0x4b35b1['cloudProvider'][_0x1181e0(0x2d1)](),_0xf713f8=_0x4b35b1[_0x1181e0(0x2de)];}else _0x4d6f61[_0x1181e0(0x287)]=!![];}else _0x4b35b1['gridProfile']&&(_0x991fef[_0x1181e0(0x2d8)](_0x991fef[_0x1181e0(0x1d2)],_0x991fef[_0x1181e0(0x1d2)])?global_registry['gridProfile']=_0x4b35b1[_0x1181e0(0x2e5)]:_0x3ca60c[_0x1181e0(0x287)]=!![]);global_registry[_0x1181e0(0x2c0)]=_0x4b35b1[_0x1181e0(0x2c0)];const _0x4d1a40={'method':_0x991fef['iZZJb'],'headers':_0x991fef[_0x1181e0(0x29d)](getAuthHeader,_0x5a1e0c[_0x1181e0(0x208)][_0x1181e0(0x214)],_0x5a1e0c['Browserstack'][_0x1181e0(0x283)]),'throwHttpErrors':![]},_0x27c17e={};_0x27c17e[_0x1181e0(0x2c0)]=_0x1b40a0;const _0x539d15=_0x27c17e;_0x1296c9&&(_0x991fef['sKzJW'](_0x991fef[_0x1181e0(0x1ee)],_0x991fef['ZVBdJ'])?_0x2ba9fa=_0x991fef[_0x1181e0(0x24e)]:(_0x539d15[_0x1181e0(0x2de)]=_0xf713f8,_0x539d15['cloudProvider']=_0x3799fd,_0x539d15[_0x1181e0(0x1c4)]=!![]));const _0x320b4f=_0x1181e0(0x2c2)+AG_API_URL+'/packages/cli/create-grid-checks',_0x40847e={'searchParams':_0x539d15,'throwHttpErrors':![],..._0x4d1a40},_0x1fb635=_0x40847e,_0x464442=await _0x991fef[_0x1181e0(0x29d)](got,_0x320b4f,_0x1fb635);(_0x991fef[_0x1181e0(0x2d8)](_0x464442,null)||_0x991fef[_0x1181e0(0x296)](_0x464442,undefined))&&(_0x991fef[_0x1181e0(0x23a)](_0x991fef['ZIvsx'],_0x991fef['CqNQo'])?(_0x486805=_0x991fef[_0x1181e0(0x20d)],await _0x991fef[_0x1181e0(0x216)](reportToGalactusAndSendToEDS,_0x4b35b1,_0x77c46d,_0x486805,messageTypes['ERROR'],_0x991fef[_0x1181e0(0x2f1)],_0x991fef['FjlXA'],_0x991fef['YfasX']),logger[_0x1181e0(0x291)](_0x486805),process[_0x1181e0(0x273)](0x1)):_0xc74a34[_0x1181e0(0x202)](_0x1181e0(0x2a0)+_0x3ea4ff[_0x1181e0(0x22b)](_0x156410)+'\x20'));_0x991fef[_0x1181e0(0x1af)](_0x464442['statusCode'],0x191)&&(_0x991fef[_0x1181e0(0x1f2)](_0x991fef[_0x1181e0(0x1e4)],_0x991fef[_0x1181e0(0x1e4)])?(_0x486805=_0x991fef[_0x1181e0(0x234)],await _0x991fef[_0x1181e0(0x26c)](reportToGalactusAndSendToEDS,_0x4b35b1,_0x77c46d,_0x486805,messageTypes[_0x1181e0(0x233)],_0x991fef[_0x1181e0(0x2f1)],_0x991fef[_0x1181e0(0x286)],_0x991fef[_0x1181e0(0x1f6)]),logger['error'](_0x486805),process['exit'](0x1)):(_0x47ba26[_0x1181e0(0x2de)]=_0x51cf4a,_0x24857c['cloudProvider']=_0x4970d0,_0x9cdf6b['newCluster']=!![]));_0x991fef[_0x1181e0(0x1bd)](_0x464442[_0x1181e0(0x1f1)],0xc8)&&(_0x991fef[_0x1181e0(0x2bd)](_0x991fef[_0x1181e0(0x2d5)],_0x991fef['QTeBY'])?(_0x486805=_0x1181e0(0x21c)+JSON[_0x1181e0(0x22b)](_0x464442[_0x1181e0(0x2ca)]),await _0x991fef[_0x1181e0(0x1fd)](reportToGalactusAndSendToEDS,_0x4b35b1,_0x77c46d,_0x486805,messageTypes[_0x1181e0(0x233)],_0x991fef['tYuWi'],_0x991fef[_0x1181e0(0x2cb)],_0x991fef[_0x1181e0(0x1f6)]),logger['error'](_0x486805),process[_0x1181e0(0x273)](0x1)):_0x3d3669=null);const _0x34d7dd=JSON[_0x1181e0(0x1b5)](_0x464442['body']),_0x4f8e51={};_0x4f8e51[_0x1181e0(0x2f7)]=WS_EVENTS[_0x1181e0(0x1dd)],_0x4f8e51[_0x1181e0(0x20b)]=_0x991fef[_0x1181e0(0x1f8)],webSocketUtils[_0x1181e0(0x260)](_0x77c46d,_0x4f8e51);const _0x5e36d0={};_0x5e36d0[_0x1181e0(0x2f7)]=WS_EVENTS['LOG'],_0x5e36d0[_0x1181e0(0x20b)]=_0x991fef['vcIFN'],webSocketUtils[_0x1181e0(0x260)](_0x77c46d,_0x5e36d0);if(_0x34d7dd[_0x1181e0(0x299)]){if(_0x991fef[_0x1181e0(0x1f0)](_0x991fef[_0x1181e0(0x247)],_0x991fef[_0x1181e0(0x2f9)])){const _0xd3e41d=_0x991fef[_0x1181e0(0x2c5)][_0x1181e0(0x1cd)]('|');let _0x419351=0x0;while(!![]){switch(_0xd3e41d[_0x419351++]){case'0':_0x9025ed=_0x2d45ee[_0x1181e0(0x2a3)];continue;case'1':_0x3c7d8c=_0x394529[_0x1181e0(0x282)];continue;case'2':_0x2d61b4=null;continue;case'3':_0x717390=_0x1ed5d4[_0x1181e0(0x1c3)];continue;case'4':_0x5df8ee=_0x44a4fe['browserVersion'];continue;case'5':const _0x3c06b8={};_0x3c06b8['type']=_0x4b7049[_0x1181e0(0x1f4)],_0x3c06b8['message']=_0x44db40,_0x3593f7['sendEventToBackend'](_0x4d31b6,_0x3c06b8);continue;case'6':_0x31300c=null;continue;case'7':_0x186eea=_0x32edc7[_0x1181e0(0x1ff)];continue;case'8':_0x45d3b5=_0x27d8d6[_0x1181e0(0x2b5)];continue;case'9':_0x3105b9=null;continue;case'10':_0x504cc7=_0x4a16a3[_0x1181e0(0x1f5)];continue;case'11':_0x7a0418='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x2248a1;continue;case'12':_0x48d10c[_0x1181e0(0x202)](_0x34a5fd);continue;case'13':_0x991fef['mDJrI'](_0x2a75e0[_0x1181e0(0x2df)],_0x47030a)&&_0x4a5ffa[_0x1181e0(0x2df)]&&(_0x34d5e5[_0x1181e0(0x287)]=!![]);continue;case'14':_0x991fef[_0x1181e0(0x2c7)](_0x57daf7,_0x11d79c,_0x33b9e6,_0x98495,_0x5a8e49,_0x976526,_0x2e2600,_0x58bf17,_0x33bd63,_0x1c698e,_0x5ecdd3,_0x894d75);continue;}break;}}else _0x486805=_0x1181e0(0x23e)+_0x1b40a0+_0x1181e0(0x290),await _0x991fef['dUOBk'](reportToGalactusAndSendToEDS,_0x4b35b1,_0x77c46d,_0x486805,messageTypes[_0x1181e0(0x233)],_0x991fef[_0x1181e0(0x2f1)],_0x991fef[_0x1181e0(0x29f)],_0x991fef[_0x1181e0(0x1f6)]),logger['error'](_0x486805),process[_0x1181e0(0x273)](0x1);}const _0x4a4c50=_0x34d7dd[_0x1181e0(0x2c9)];let _0x46ccc5=_0x4a4c50[_0x34d7dd[_0x1181e0(0x1d4)]];_0x4b35b1[_0x1181e0(0x2e5)]&&(_0x991fef[_0x1181e0(0x1f2)](_0x991fef['QOmXb'],_0x991fef['QOmXb'])?_0x46ccc5=_0x4a4c50[_0x4b35b1[_0x1181e0(0x2e5)]]:_0x44ed62=!![]);if(_0x991fef[_0x1181e0(0x1f0)](_0x4aa1dc,![])&&_0x991fef[_0x1181e0(0x218)](_0x1296c9,![])){if(_0x991fef['rdoEt'](_0x991fef[_0x1181e0(0x1fc)],_0x991fef['yOeyy']))_0x3c0219[_0x1181e0(0x230)]();else{_0x991fef['ivKhZ'](_0x46ccc5,undefined)&&(_0x991fef[_0x1181e0(0x1fa)](_0x991fef[_0x1181e0(0x242)],_0x991fef[_0x1181e0(0x242)])?(_0x486805=_0x991fef[_0x1181e0(0x2ea)],await _0x991fef['jBDba'](reportToGalactusAndSendToEDS,_0x4b35b1,_0x77c46d,_0x486805,messageTypes['ERROR'],_0x991fef[_0x1181e0(0x2f1)],_0x991fef['pIGEB'],_0x991fef[_0x1181e0(0x1f6)]),logger[_0x1181e0(0x291)](_0x486805),process['exit'](0x1)):(_0x4e5de4[_0x1181e0(0x202)](_0x1181e0(0x2ef)+_0x20bac7[_0x1181e0(0x1b2)]+_0x1181e0(0x1ed)),_0x264d6a=![],_0x53953c=!![]));global_registry['gridProfileId']=_0x46ccc5['id'],_0x486805='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x1b40a0+_0x1181e0(0x27f)+_0x46ccc5[_0x1181e0(0x2be)]+_0x1181e0(0x1e3),logger[_0x1181e0(0x202)](_0x486805);const _0x166b56={};_0x166b56[_0x1181e0(0x2f7)]=WS_EVENTS[_0x1181e0(0x1f4)],_0x166b56[_0x1181e0(0x20b)]=_0x486805,webSocketUtils['sendEventToBackend'](_0x77c46d,_0x166b56),_0x3799fd=_0x46ccc5[_0x1181e0(0x28f)],_0x5e3032=_0x46ccc5[_0x1181e0(0x1b2)],_0xf713f8=_0x46ccc5['region'],_0x2e7ece=_0x46ccc5['concurrency'],_0x542b0e=_0x46ccc5[_0x1181e0(0x2b5)],_0x5e7f3b=_0x46ccc5['vpc'],_0x5969b3=_0x46ccc5[_0x1181e0(0x259)],_0x473cc6=_0x46ccc5[_0x1181e0(0x20c)],_0x494e60=_0x46ccc5[_0x1181e0(0x1ff)],_0x425b6e=_0x46ccc5[_0x1181e0(0x1c3)],_0x3c51f6=_0x46ccc5[_0x1181e0(0x1f5)],_0x325262=_0x34d7dd[_0x1181e0(0x282)],_0x3b7642=_0x34d7dd['browserVersion'],_0x5e7f3b&&_0x991fef['aqEaK'](_0x5e7f3b['length'],0x0)&&(_0x991fef[_0x1181e0(0x1db)](_0x991fef['MLAbU'],_0x991fef[_0x1181e0(0x1b1)])?_0x5e7f3b=null:_0x3a913b['error'](_0x1181e0(0x1b9)+_0x3702ec+'\x20\x0a'+_0x35d86d[_0x1181e0(0x22b)](_0x46ffe4[_0x1181e0(0x262)]))),_0x473cc6&&_0x991fef[_0x1181e0(0x23c)](_0x473cc6[_0x1181e0(0x26f)],0x0)&&(_0x991fef['ivKhZ'](_0x991fef[_0x1181e0(0x1df)],_0x991fef[_0x1181e0(0x1df)])?_0x473cc6=null:_0xec0e7b=_0x56edb5[_0x1253c3[_0x1181e0(0x2e5)]]),_0x991fef['RWwPo'](_0x46ccc5['privateGrid'],undefined)&&_0x46ccc5[_0x1181e0(0x2df)]&&(_0x991fef[_0x1181e0(0x26e)](_0x991fef[_0x1181e0(0x298)],_0x991fef['pEbHu'])?global_registry[_0x1181e0(0x287)]=!![]:_0x37ab24[_0x1181e0(0x202)](_0x1181e0(0x21b)+_0x2844e8+'\x20')),_0x991fef[_0x1181e0(0x2c7)](updateGlobalRegistryWithConfig,_0x3799fd,_0x5e3032,_0xf713f8,_0x2e7ece,_0x542b0e,_0x494e60,_0x46ccc5,_0x325262,_0x3b7642,_0x425b6e,_0x3c51f6);}}else{if(_0x991fef['iDKbo'](_0x1296c9,!![])){if(_0x991fef[_0x1181e0(0x1db)](_0x991fef[_0x1181e0(0x223)],_0x991fef[_0x1181e0(0x223)]))_0x30219d=_0x5f2266[_0x1181e0(0x1ec)],_0x514e48=_0x991fef[_0x1181e0(0x2f5)];else{_0x486805='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x1b40a0,logger[_0x1181e0(0x202)](_0x486805);const _0x365c26={};_0x365c26['type']=WS_EVENTS['LOG'],_0x365c26[_0x1181e0(0x20b)]=_0x486805,webSocketUtils['sendEventToBackend'](_0x77c46d,_0x365c26),_0x2e7ece=_0x46ccc5[_0x1181e0(0x2a3)],_0x542b0e=_0x46ccc5[_0x1181e0(0x2b5)],_0x5e7f3b=null,_0x5969b3=null,_0x473cc6=null,_0x494e60=_0x46ccc5[_0x1181e0(0x1ff)],_0x425b6e=_0x46ccc5[_0x1181e0(0x1c3)],_0x3c51f6=_0x46ccc5[_0x1181e0(0x1f5)],_0x325262=_0x34d7dd[_0x1181e0(0x282)],_0x3b7642=_0x34d7dd[_0x1181e0(0x258)];if(_0x991fef[_0x1181e0(0x204)](_0x46ccc5['privateGrid'],undefined)&&_0x46ccc5[_0x1181e0(0x2df)]){if(_0x991fef[_0x1181e0(0x244)](_0x991fef[_0x1181e0(0x26a)],_0x991fef[_0x1181e0(0x26a)]))global_registry[_0x1181e0(0x287)]=!![];else throw new _0x227e01('Cluster\x20'+_0x1d6d0d+_0x1181e0(0x2b3));}_0x991fef[_0x1181e0(0x2c7)](updateGlobalRegistryWithConfig,_0x3799fd,_0x5e3032,_0xf713f8,_0x2e7ece,_0x542b0e,_0x494e60,_0x46ccc5,_0x325262,_0x3b7642,_0x425b6e,_0x3c51f6);}}else{if(_0x991fef[_0x1181e0(0x2e9)](_0x991fef[_0x1181e0(0x2c8)],_0x991fef[_0x1181e0(0x2c8)]))_0xe41e36[_0x1181e0(0x2e5)]=_0xceee36[_0x1181e0(0x2e5)];else{const _0x2cd10c=_0x991fef[_0x1181e0(0x2ac)][_0x1181e0(0x1cd)]('|');let _0x2487b0=0x0;while(!![]){switch(_0x2cd10c[_0x2487b0++]){case'0':_0x486805=_0x1181e0(0x209)+_0x1b40a0+_0x1181e0(0x2b2)+_0x5e3032+'\x27';continue;case'1':logger['info'](_0x486805);continue;case'2':global_registry[_0x1181e0(0x1b2)]=_0x5e3032;continue;case'3':global_registry['clusterRegion']=_0xf713f8;continue;case'4':global_registry[_0x1181e0(0x28f)]=_0x3799fd;continue;case'5':global_registry[_0x1181e0(0x282)]=_0x34d7dd[_0x1181e0(0x282)];continue;case'6':global_registry[_0x1181e0(0x258)]=_0x34d7dd[_0x1181e0(0x258)];continue;case'7':const _0x2ab4f4={};_0x2ab4f4[_0x1181e0(0x2f7)]=WS_EVENTS['CLI_RUN_STARTED'],_0x2ab4f4[_0x1181e0(0x20b)]=_0x991fef[_0x1181e0(0x1f8)],webSocketUtils[_0x1181e0(0x260)](_0x77c46d,_0x2ab4f4);continue;case'8':const _0x1dc0fa={};_0x1dc0fa[_0x1181e0(0x2f7)]=WS_EVENTS[_0x1181e0(0x1f4)],_0x1dc0fa[_0x1181e0(0x20b)]=_0x486805,webSocketUtils[_0x1181e0(0x260)](_0x77c46d,_0x1dc0fa);continue;}break;}}}}const _0x588341=await _0x991fef[_0x1181e0(0x2d0)](getCloudProviderObject,_0x3799fd,_0x5e3032,_0x1b40a0,_0x77c46d,webSocketUtils,_0x4b35b1);_0x991fef['APrix'](_0x3799fd,AZURE)&&_0x588341[_0x1181e0(0x230)]();let _0xb0f92;if(_0x991fef['iDKbo'](_0x4aa1dc,![])){_0x486805=_0x1181e0(0x279)+_0xf713f8+').';const _0x2ff51a={};_0x2ff51a[_0x1181e0(0x2f7)]=WS_EVENTS['LOG'],_0x2ff51a[_0x1181e0(0x20b)]=_0x486805,webSocketUtils[_0x1181e0(0x260)](_0x77c46d,_0x2ff51a),logger[_0x1181e0(0x202)](_0x486805);const _0x1c91e1=await _0x588341[_0x1181e0(0x2ad)]();if(_0x1c91e1){const _0x375df2={};_0x375df2[_0x1181e0(0x2f7)]=WS_EVENTS[_0x1181e0(0x1f4)],_0x375df2['message']=_0x1181e0(0x1be)+_0x5e3032+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x1181e0(0x260)](_0x77c46d,_0x375df2,_0x991fef[_0x1181e0(0x240)]),logger[_0x1181e0(0x202)](_0x1181e0(0x1be)+_0x5e3032+_0x1181e0(0x1ce)),_0x4aa1dc=!![];if(_0x991fef['bIETj'](_0x1296c9,!![]))throw new Error(_0x1181e0(0x1be)+_0x5e3032+_0x1181e0(0x2b3));}else{const _0x33f79f={};_0x33f79f[_0x1181e0(0x2f7)]=WS_EVENTS[_0x1181e0(0x1f4)],_0x33f79f[_0x1181e0(0x20b)]=_0x991fef[_0x1181e0(0x2d4)],webSocketUtils[_0x1181e0(0x260)](_0x77c46d,_0x33f79f),logger['info'](_0x991fef[_0x1181e0(0x2d4)]);const _0x544980=_0x991fef['TUUXW'](_0x5e7f3b,null)&&_0x991fef[_0x1181e0(0x1db)](_0x5e7f3b,undefined),_0x31a98c=_0x991fef['TUUXW'](_0x473cc6,null)&&_0x991fef['mDJrI'](_0x473cc6,undefined)&&_0x991fef['BwRlC'](_0x473cc6[_0x1181e0(0x26f)],0x0);if(_0x544980){_0x991fef[_0x1181e0(0x29a)](_0x31a98c,![])&&(_0x486805=_0x991fef[_0x1181e0(0x2a9)],await _0x991fef[_0x1181e0(0x27e)](reportToGalactusAndSendToEDS,_0x4b35b1,_0x77c46d,_0x486805,messageTypes['ERROR'],_0x991fef[_0x1181e0(0x2f1)],_0x991fef[_0x1181e0(0x277)],_0x991fef['YfasX']),logger[_0x1181e0(0x291)](_0x486805),process[_0x1181e0(0x273)](0x1));const _0x52330e=await _0x588341['isVPCPresent'](_0x5e7f3b);_0x991fef[_0x1181e0(0x238)](_0x52330e,![])?(_0x486805=_0x991fef[_0x1181e0(0x269)],await _0x991fef['vMUEE'](reportToGalactusAndSendToEDS,_0x4b35b1,_0x77c46d,_0x486805,messageTypes[_0x1181e0(0x233)],_0x991fef[_0x1181e0(0x2f1)],_0x991fef[_0x1181e0(0x2bf)],_0x991fef[_0x1181e0(0x1f6)]),logger[_0x1181e0(0x291)](_0x486805),process[_0x1181e0(0x273)](0x1)):logger[_0x1181e0(0x202)](_0x1181e0(0x21b)+_0x5e7f3b+'\x20');const _0x42d29e=await _0x588341['isSubnetsValid'](_0x473cc6,_0x5e7f3b);_0x991fef['ymBBc'](_0x42d29e[0x0],![])?(_0x486805=_0x1181e0(0x2a4)+JSON[_0x1181e0(0x22b)](_0x42d29e[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x5e7f3b+_0x1181e0(0x2e6),await _0x991fef[_0x1181e0(0x271)](reportToGalactusAndSendToEDS,_0x4b35b1,_0x77c46d,_0x486805,messageTypes[_0x1181e0(0x233)],_0x991fef[_0x1181e0(0x2f1)],_0x991fef[_0x1181e0(0x27b)],_0x991fef[_0x1181e0(0x1f6)]),logger['error'](_0x486805),process['exit'](0x1)):logger[_0x1181e0(0x202)](_0x1181e0(0x2a0)+JSON[_0x1181e0(0x22b)](_0x473cc6)+'\x20'),await _0x588341['setupNewCluster'](_0x5e7f3b,_0x473cc6);}else{const _0xb1ad25=_0x991fef['qavwD']['split']('|');let _0x111f08=0x0;while(!![]){switch(_0xb1ad25[_0x111f08++]){case'0':const _0x4e18ec={};_0x4e18ec['type']=WS_EVENTS[_0x1181e0(0x1f4)],_0x4e18ec['message']=_0x991fef[_0x1181e0(0x1d3)],webSocketUtils['sendEventToBackend'](_0x77c46d,_0x4e18ec);continue;case'1':await _0x588341[_0x1181e0(0x270)](_0x5e7f3b,_0x473cc6);continue;case'2':logger[_0x1181e0(0x202)](_0x991fef['svFgI']);continue;case'3':const _0x306dbd={};_0x306dbd['type']=WS_EVENTS[_0x1181e0(0x1f4)],_0x306dbd['message']=_0x991fef[_0x1181e0(0x26d)],webSocketUtils['sendEventToBackend'](_0x77c46d,_0x306dbd);continue;case'4':logger[_0x1181e0(0x202)](_0x991fef['ZpaXV']);continue;}break;}}}}_0x4aa1dc&&_0x991fef[_0x1181e0(0x218)](_0x3799fd,AZURE)&&(await _0x588341[_0x1181e0(0x22e)](),await _0x588341[_0x1181e0(0x281)]());const [_0x5c6a23,_0x313af6,_0x78b604,_0x5cfc6e,_0xb26523,_0x2020f0]=await _0x991fef['jiBGc'](createK8sClient,_0x588341,_0x4b35b1[_0x1181e0(0x21f)]);_0x991fef['xbbtQ'](_0x4aa1dc,![])&&_0x991fef[_0x1181e0(0x1fe)](_0x3799fd,AWS)&&(global_registry[_0x1181e0(0x297)]=!![],_0xb0f92=await _0x588341[_0x1181e0(0x268)](_0x5c6a23,_0x4b35b1));try{_0x1f7494=_0x991fef[_0x1181e0(0x1cc)](kebabCase,_0x1b40a0),logger[_0x1181e0(0x202)](_0x991fef[_0x1181e0(0x24c)]);const _0x1f98c4={};_0x1f98c4[_0x1181e0(0x2f7)]=WS_EVENTS[_0x1181e0(0x1f4)],_0x1f98c4['message']=_0x991fef[_0x1181e0(0x24c)],webSocketUtils['sendEventToBackend'](_0x77c46d,_0x1f98c4);if(_0x991fef['AiLKl'](_0x1f7494,_0x991fef['VVbUp'])){const _0x17f711={};_0x17f711[_0x1181e0(0x285)]=_0x991fef['bpDfU'],_0x17f711[_0x1181e0(0x1c9)]=_0x991fef[_0x1181e0(0x224)];const _0x345098={};_0x345098[_0x1181e0(0x2be)]=_0x1f7494,_0x345098[_0x1181e0(0x24a)]=_0x17f711;const _0x461e86={};_0x461e86['metadata']=_0x345098;const _0x2d43f5=_0x461e86,_0x54bd39={};_0x54bd39[_0x1181e0(0x2ca)]=_0x2d43f5,await _0x5c6a23[_0x1181e0(0x2f2)](_0x54bd39),logger['info'](_0x991fef[_0x1181e0(0x1e7)]);}const _0x313b01={};_0x313b01['type']=WS_EVENTS[_0x1181e0(0x1f4)],_0x313b01[_0x1181e0(0x20b)]=_0x991fef[_0x1181e0(0x237)],webSocketUtils[_0x1181e0(0x260)](_0x77c46d,_0x313b01);const _0x3950d2={};_0x3950d2[_0x1181e0(0x2f7)]=WS_EVENTS['LOG'],_0x3950d2['message']=_0x991fef[_0x1181e0(0x20f)],webSocketUtils[_0x1181e0(0x260)](_0x77c46d,_0x3950d2),logger['info'](_0x991fef[_0x1181e0(0x245)]);let _0x2241cf={};_0x991fef[_0x1181e0(0x2d7)](_0x3799fd,AZURE)&&(_0x2241cf={'clientId':await _0x588341[_0x1181e0(0x1da)](_0x1181e0(0x1b8)+_0x5e3032)});await _0x991fef[_0x1181e0(0x219)](addGridComponents,_0x5c6a23,_0x313af6,_0x78b604,_0x5cfc6e,_0x1f7494,_0x5e3032,_0xb0f92,_0xb26523,_0x2020f0,_0x2241cf),_0x486805=_0x991fef['rKIhN'],logger[_0x1181e0(0x202)](_0x486805);const _0x4d7dba={};_0x4d7dba[_0x1181e0(0x2f7)]=WS_EVENTS[_0x1181e0(0x1f4)],_0x4d7dba[_0x1181e0(0x20b)]=_0x486805,webSocketUtils[_0x1181e0(0x260)](_0x77c46d,_0x4d7dba),_0x486805=_0x991fef['qqdyt'],logger['info'](_0x486805);const _0x33ef89={};_0x33ef89[_0x1181e0(0x2f7)]=WS_EVENTS['LOG'],_0x33ef89[_0x1181e0(0x20b)]=_0x486805,webSocketUtils['sendEventToBackend'](_0x77c46d,_0x33ef89),await _0x991fef['xiXNL'](waitForDeployment,_0x313af6,_0x1f7494,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x1295bc=await _0x991fef[_0x1181e0(0x29d)](getNamespaceUID,_0x5c6a23,_0x1f7494),_0x59caa5=global_registry['isPrivateGrid']?_0x991fef[_0x1181e0(0x2d6)]:_0x991fef[_0x1181e0(0x276)],_0x580c84={};_0x580c84['name']=_0x59caa5,_0x580c84[_0x1181e0(0x23d)]=_0x991fef[_0x1181e0(0x252)];const _0x1cd535=await _0x5c6a23[_0x1181e0(0x1eb)](_0x580c84);let _0x46a636=_0x588341[_0x1181e0(0x292)](_0x1cd535)+'/'+_0x1f7494,_0x17dfff=_0x991fef[_0x1181e0(0x24e)];try{const _0x2e9c14='https://'+AG_API_URL+_0x1181e0(0x213)+_0x1295bc,_0xdc1c1d=await _0x991fef[_0x1181e0(0x274)](got,_0x2e9c14,_0x4d1a40);(_0x991fef[_0x1181e0(0x1d9)](_0xdc1c1d,null)||_0x991fef[_0x1181e0(0x27c)](_0xdc1c1d,undefined))&&(_0x486805=_0x991fef[_0x1181e0(0x229)],await _0x991fef['qRGwk'](reportToGalactusAndSendToEDS,_0x4b35b1,_0x77c46d,_0x486805,messageTypes[_0x1181e0(0x233)],_0x991fef[_0x1181e0(0x2f1)],_0x991fef[_0x1181e0(0x2e2)],_0x991fef['YfasX']),logger[_0x1181e0(0x291)](_0x486805),process[_0x1181e0(0x273)](0x1));_0x991fef[_0x1181e0(0x2bd)](_0xdc1c1d[_0x1181e0(0x1f1)],0x191)&&(_0x486805=_0x991fef['DzJfE'],await _0x991fef[_0x1181e0(0x2e3)](reportToGalactusAndSendToEDS,_0x4b35b1,_0x77c46d,_0x486805,messageTypes['ERROR'],_0x991fef[_0x1181e0(0x2f1)],_0x991fef['JmQjN'],_0x991fef[_0x1181e0(0x1f6)]),logger[_0x1181e0(0x291)](_0x486805),process[_0x1181e0(0x273)](0x1));_0x991fef[_0x1181e0(0x2c1)](_0xdc1c1d[_0x1181e0(0x1f1)],0xc8)&&(_0x486805='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0xdc1c1d),await _0x991fef['WOUpy'](reportToGalactusAndSendToEDS,_0x4b35b1,_0x77c46d,_0x486805,messageTypes[_0x1181e0(0x233)],_0x991fef[_0x1181e0(0x2f1)],_0x991fef[_0x1181e0(0x264)],_0x991fef[_0x1181e0(0x1f6)]),logger['error'](_0x486805),process[_0x1181e0(0x273)](0x1));const _0x4b6e38=JSON[_0x1181e0(0x1b5)](_0xdc1c1d[_0x1181e0(0x2ca)]);_0x4b6e38[_0x1181e0(0x1ec)]&&(_0x46a636=_0x4b6e38[_0x1181e0(0x1ec)],_0x17dfff=_0x991fef[_0x1181e0(0x2f5)]),global_registry[_0x1181e0(0x287)]&&(_0x17dfff=_0x991fef[_0x1181e0(0x24e)]);}catch(_0x4be0d6){}_0x486805='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x46a636+'\x20',logger['info'](_0x486805);const _0x3edce9={};_0x3edce9[_0x1181e0(0x2f7)]=WS_EVENTS['LOG'],_0x3edce9[_0x1181e0(0x20b)]=_0x486805,webSocketUtils['sendEventToBackend'](_0x77c46d,_0x3edce9),_0x486805=_0x1181e0(0x22a)+_0x17dfff+_0x1181e0(0x2d9)+_0x46a636+_0x1181e0(0x295),logger['info'](_0x486805);const _0x4a21ca={};_0x4a21ca[_0x1181e0(0x2f7)]=WS_EVENTS[_0x1181e0(0x1f4)],_0x4a21ca[_0x1181e0(0x20b)]=_0x486805,webSocketUtils['sendEventToBackend'](_0x77c46d,_0x4a21ca);const _0x5ed081={};_0x5ed081[_0x1181e0(0x2f7)]=WS_EVENTS[_0x1181e0(0x2a1)],_0x5ed081[_0x1181e0(0x20b)]='CLI\x20run\x20finished:\x20'+_0x46a636,webSocketUtils['sendEventToBackend'](_0x77c46d,_0x5ed081),await webSocketUtils[_0x1181e0(0x251)](0x7d0);}catch(_0x32c4b7){logger[_0x1181e0(0x291)](_0x1181e0(0x24f)+_0x32c4b7+'\x20\x0a'+JSON['stringify'](_0x32c4b7['stack']));if(_0x991fef[_0x1181e0(0x218)](_0x4aa1dc,![]))try{logger['info'](_0x991fef[_0x1181e0(0x28e)]),await _0x991fef['rdJIR'](removeGridComponents,_0x5c6a23,_0x313af6,_0x78b604,_0x5cfc6e,_0x1f7494),await _0x588341[_0x1181e0(0x2b6)](_0x5c6a23,global_registry[_0x1181e0(0x1b6)]);}catch(_0x476717){logger[_0x1181e0(0x291)](_0x1181e0(0x1b9)+_0x476717+'\x20\x0a'+JSON[_0x1181e0(0x22b)](_0x476717['stack']));}throw _0x32c4b7;}}catch(_0x3318cf){const _0x320dfa=_0x1181e0(0x2f4)+_0x3318cf+'\x20\x0a'+JSON[_0x1181e0(0x22b)](_0x3318cf[_0x1181e0(0x262)]);if(_0x77c46d){const _0x418522={};_0x418522['type']=WS_EVENTS[_0x1181e0(0x1f4)],_0x418522[_0x1181e0(0x20b)]=_0x320dfa,webSocketUtils['sendEventToBackend'](_0x77c46d,_0x418522,_0x991fef[_0x1181e0(0x1f6)],!![]);}await webSocketUtils[_0x1181e0(0x251)](0x7d0);const _0x1fd8bd={};_0x1fd8bd['error']=_0x320dfa,await _0x991fef['efhbS'](sendInstrumentationEvent,_0x4b35b1,_0x991fef[_0x1181e0(0x2f1)],messageTypes[_0x1181e0(0x233)],_0x991fef[_0x1181e0(0x2aa)],_0x1fd8bd,_0x4b35b1),logger[_0x1181e0(0x291)](_0x320dfa);}process[_0x1181e0(0x273)](0x0);};function a9_0x3ee7(){const _0x1b6c9e=['ssScG','scdpe','VrfSP','desc','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Spawning\x20grid\x20on\x20to\x20the\x20cluster','/packages/cli/get-grid-url?gridIdentifier=','username','../../config/constants','zfVDa','existsSync','koNgo','XTFCQ','OkgBm','Found\x20VPC:\x20','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','GET','YeeYQ','skipTlsCertVerify','CLI\x20run\x20started','rvrPL','init-not-called','YdOVD','bpDfU','opKMF','cluster-name','2|5|1|6|8|4|7|3|0','zhvtm','PbMKu','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','stringify','FOnCK','tqhCk','updateClusterAlreadyPresent','OtRmj','sendResourceDataToHST','Namespace\x20created','usage','ERROR','hCiIh','6XAoiXf','kSwMM','ccbDC','LLSnx','TsbeO','sKzJW','bstackUsername','ympQs','namespace','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','https','jiIqu','pre-spawned-invalid-vpc','pPYtF','6029312sxmJOY','kZSbJ','uUiZK','EKuqY','OIQiG','9963555XEmhyY','readFileSync','annotations','qRGwk','DtxwN','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','eZtEl','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','delay','ajnwG','jauOQ','create-grid-checks-auth-failed','create-grid-called','2790382oAIIXT','argv','browserVersion','securityGroups','vGMfd','aXPBe','ANqEA','nzAgA','Spawning\x20Grid\x20on\x20the\x20Cluster','grid-profile','sendEventToBackend','pCEFG','stack','BdgXM','wZzIH','Create\x20a\x20new\x20Automation\x20grid.','MRFlj','description','setupAutoscaler','umfVO','uUyvp','GItsd','bgqVJ','svFgI','ovBNX','length','setupNewCluster','joEqP','Skip\x20insecure\x20cert\x20verification.','exit','RYzTj','XNmKd','ygDeU','VxMYv','boolean','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','BzRQQ','AnCvR','52324920YsvROe','sBDKY','\x20using\x20\x27','../../config/logger','createOtherResources','hubVersion','password','ZfOcg','createdBy','mXLsb','isPrivateGrid','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','user','string','create-grid-checks-invalid-profile','pre-spawned-invalid-subnets','3|2|1|0|4','shPjk','cloudProvider','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','error','getGridHostname','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','/wd/hub','hWFIB','isNewAWSCluster','pEbHu','alreadyPresent','KTsbl','sPhIb','mDJrI','jiBGc','XmFOS','nOtpQ','Found\x20Subnets:\x20','CLI_RUN_FINISHED','uxzFa','concurrency','Subnets:\x20','../../utils/utilityMethods','bzxEb','includes','lLBYp','rLmQm','ixpzh','../../utils/createk8sClient','UTtwx','isClusterPresent','Grid\x20profile\x20fetched\x20from\x20backend','Create\x20a\x20private/public\x20grid.','requestId','Cluster\x20created\x20successfully','\x20in\x20existing\x20cluster\x20\x27','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','APrix','instanceType','deleteCluster','RtBzF','fLeSb','MKaOE','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','WebSocket','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','ROZAV','name','LtRRU','gridName','DqrZn','https://','grid-name','http','mAFLE','Adding\x20Websocket\x20listeners','NXkHZ','uGuxt','gridProfiles','body','PWunZ','debug','2346390qAsqON','mSUrO','41516kqWwmG','VkvPY','toLowerCase','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','replace','JbWQs','QTeBY','VUIJQ','nsgFj','GRRSR','://','command','Grid\x20spawned\x20on\x20the\x20cluster','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','DNHiT','region','privateGrid','addListeners','reconnecting-websocket','DrXqU','eytOR','Cgitj','gridProfile','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','default','handler','sQNbm','VBWQK','got','rmkVQ','get-grid-url-auth-failed','grid-spawning-failed','Cluster:\x20','private-ingress-nginx-controller','tYuWi','createNamespace','Iwlip','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','sjRdp','help','type','vpTVS','udQjs','713148QCcOBX','create-grid-checks-grid-already-exists','FxRPY','warn','nzabi','clusterName','Xguav','CgjAj','parse','clusterRegion','grid','turboscale-managed-identity-','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','umhMj','TGbYn','GJTyv','eksEs','Cluster\x20','create','Bqhdn','../../cloudproviders/utils','wDFEr','minNodes','newCluster','get-grid-url-null-response','utNuk','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Namespace\x20Created','managedBy','dfgCH','aoFyr','xOMiF','split','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','skip-tls-cert-verify','VsERw','BnDIZ','yAxNi','ZpaXV','defaultGridProfile','options','ingress-nginx-controller','epilogue','Creating\x20namespace','iDKbo','getResourceClientId','lyiQL','93PSVqdr','CLI_RUN_STARTED','11|12|5|0|8|6|9|2|7|3|10|1|4|13|14','rJTBh','../../utils/webSocketUtils','TyQpg','XMIAh','\x27\x20grid\x20profile','UheJb','non-aws-azure-cluster','prespawned-cluster-args-not-passed','uchKR','vHmSH','cloud-provider','bstackAccesskey','readNamespacedService','route53','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','ZVBdJ','YPCOD','nViqJ','statusCode','wvKnb','BlMTR','LOG','maxNodes','YfasX','piGZn','wPExi','builder','qiXTI','WzsPx','yOeyy','dUOBk','VCzfU','s3bucket','create-grid-checks-non-200','pre-spawned-subnets-not-selected','info','PdqLs','rdoEt','private-grid','ADecD','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','Spawning\x20the\x20grid\x20','SVOfP','message','subnets'];a9_0x3ee7=function(){return _0x1b6c9e;};return a9_0x3ee7();}
@@ -1 +1 @@
1
- const a10_0x5960de=a10_0x4cc5;(function(_0x633dd8,_0x573157){const _0x3ae9a6=a10_0x4cc5,_0x5c1dc9=_0x633dd8();while(!![]){try{const _0x19cbf0=parseInt(_0x3ae9a6(0x1ae))/0x1+parseInt(_0x3ae9a6(0x1aa))/0x2+parseInt(_0x3ae9a6(0x1a7))/0x3+-parseInt(_0x3ae9a6(0x1a5))/0x4*(parseInt(_0x3ae9a6(0x1ac))/0x5)+parseInt(_0x3ae9a6(0x1b1))/0x6+-parseInt(_0x3ae9a6(0x1a0))/0x7*(parseInt(_0x3ae9a6(0x1b4))/0x8)+-parseInt(_0x3ae9a6(0x1ad))/0x9;if(_0x19cbf0===_0x573157)break;else _0x5c1dc9['push'](_0x5c1dc9['shift']());}catch(_0x47fc18){_0x5c1dc9['push'](_0x5c1dc9['shift']());}}}(a10_0x4560,0x1b227));function a10_0x4560(){const _0x42f403=['help','1042290kZBWoI','desc','handler','8kPyvfs','delete','CDEEZ','302897tiyscl','command','recommendCommands','usage','commandDir','24692wDLNWM','List\x20Grid\x20resources.','548787KIFqFm','khUPp','delete_commands','376564AENOmQ','demandCommand','110FFsoGY','3442689RuNhcx','127815COKgrQ','../config/constants'];a10_0x4560=function(){return _0x42f403;};return a10_0x4560();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x5960de(0x1af));function a10_0x4cc5(_0x15be6d,_0x2f234f){const _0x456089=a10_0x4560();return a10_0x4cc5=function(_0x4cc536,_0x4bf11a){_0x4cc536=_0x4cc536-0x1a0;let _0x3a58fc=_0x456089[_0x4cc536];return _0x3a58fc;},a10_0x4cc5(_0x15be6d,_0x2f234f);}exports[a10_0x5960de(0x1a1)]=a10_0x5960de(0x1b5),exports[a10_0x5960de(0x1b2)]=a10_0x5960de(0x1a6),exports['builder']=function(_0x169c61){const _0x49ebd7=a10_0x5960de,_0x4dc1f9={};_0x4dc1f9['CDEEZ']=_0x49ebd7(0x1a9),_0x4dc1f9[_0x49ebd7(0x1a8)]=_0x49ebd7(0x1b0);const _0x44a1f4=_0x4dc1f9;return _0x169c61[_0x49ebd7(0x1a3)](HELP_HEADER_MESSAGE[_0x49ebd7(0x1b5)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x49ebd7(0x1a4)](_0x44a1f4[_0x49ebd7(0x1b6)])[_0x49ebd7(0x1ab)]()[_0x49ebd7(0x1a2)]()['strict']()[_0x49ebd7(0x1b0)](_0x44a1f4[_0x49ebd7(0x1a8)]);},exports[a10_0x5960de(0x1b3)]=function(_0x54d6d5){};
1
+ const a10_0x1d797e=a10_0x4e2f;(function(_0x30a806,_0x1a9ab0){const _0x55bafe=a10_0x4e2f,_0x234c6d=_0x30a806();while(!![]){try{const _0x259389=-parseInt(_0x55bafe(0x1e2))/0x1*(-parseInt(_0x55bafe(0x1e8))/0x2)+parseInt(_0x55bafe(0x1eb))/0x3+parseInt(_0x55bafe(0x1f1))/0x4*(-parseInt(_0x55bafe(0x1e4))/0x5)+parseInt(_0x55bafe(0x1e0))/0x6+parseInt(_0x55bafe(0x1ea))/0x7+-parseInt(_0x55bafe(0x1f3))/0x8+-parseInt(_0x55bafe(0x1ec))/0x9;if(_0x259389===_0x1a9ab0)break;else _0x234c6d['push'](_0x234c6d['shift']());}catch(_0x49ddc3){_0x234c6d['push'](_0x234c6d['shift']());}}}(a10_0x5fae,0x25fb4));function a10_0x4e2f(_0x56129b,_0x31fea3){const _0x5fae58=a10_0x5fae();return a10_0x4e2f=function(_0x4e2f29,_0x3458d5){_0x4e2f29=_0x4e2f29-0x1e0;let _0x5d347c=_0x5fae58[_0x4e2f29];return _0x5d347c;},a10_0x4e2f(_0x56129b,_0x31fea3);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x1d797e(0x1ed));exports['command']='delete',exports['desc']=a10_0x1d797e(0x1f0),exports[a10_0x1d797e(0x1f4)]=function(_0x599afc){const _0x42b23d=a10_0x1d797e,_0x15f24d={};_0x15f24d['fIIwn']=_0x42b23d(0x1e6),_0x15f24d[_0x42b23d(0x1f2)]='help';const _0x565e4e=_0x15f24d;return _0x599afc['usage'](HELP_HEADER_MESSAGE[_0x42b23d(0x1e1)])[_0x42b23d(0x1e5)](HELP_FOOTER_MESSAGE)[_0x42b23d(0x1e7)](_0x565e4e[_0x42b23d(0x1ee)])[_0x42b23d(0x1e3)]()['recommendCommands']()[_0x42b23d(0x1ef)]()[_0x42b23d(0x1e9)](_0x565e4e[_0x42b23d(0x1f2)]);},exports['handler']=function(_0x50cb01){};function a10_0x5fae(){const _0x3eb31c=['strict','List\x20Grid\x20resources.','48YXkiIE','EeHBE','1877888tjORsJ','builder','1645440mcFAbD','delete','22702vqyYaa','demandCommand','63790fZBwok','epilogue','delete_commands','commandDir','22dzSyaf','help','1957914qDYKVB','22158zVtfxu','2408814IqKHIl','../config/constants','fIIwn'];a10_0x5fae=function(){return _0x3eb31c;};return a10_0x5fae();}
@@ -1 +1 @@
1
- const a11_0x53ffb9=a11_0x1472;function a11_0x4cc2(){const _0x397725=['ZKzzQ','bjyAQ','string','RCInM','Namespace:\x20','server-error','type','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','isClusterPresent','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','statusCode','username','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','clusterId','Oqkuq','options','UxaEZ','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','EQebj','gFusA','aAiOv','eESLS','region','argv','got','requestId','../../utils/createk8sClient','<UsernamePlaceholder>','XgUFT','/packages/cli/grid/','readFileSync','then','rxgeq','yftVk','../../cloudproviders/utils','error','../../utils/userInput','374364pJynUh','PzycT','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','FrXqk','onlyGridInCluster','info','oBrtf','8431584qEcMSa','rcwEP','description','aAXha','init-not-called','../../config/logger','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','unknown-error','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Delete\x20an\x20Automation\x20grid.','CYxCv','name','../../utils/utilityMethods','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','https://','ZUBCf','eVQzy','help','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','VDShq','grid-id','sKgve','WGGUZ','connectionTimeout','usage','5558855sumiJP','isBrowserstackCluster','JGqKc','parse','PyhKe','yKnKN','Failed\x20to\x20delete\x20resources!\x20Error:\x20','nzTPZ','dFBNU','wngSL','219087CEOSuq','uBOYg','22230700zRxTxj','builder','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','delete-grid-called','tIJxm','ghRsP','../../utils/instrumentationUtils','nBJtq','eTMgd','ERROR','desc','clusterName','xdzIc','<PasswordPlaceholder>','boolean','4moVJbm','IZANh','sqALN','346775jRdYgv','uiVYD','MIYoo','IlqTv','default','OzWGx','message','HmKmR','../../utils/webSocketUtils','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','exit','2610120IqMqvP','Pass\x20the\x20ID\x20of\x20the\x20Grid','pVDPX','SNISe','APGBM','KOJfY','Browserstack','\x22\x20and\x20ID\x20','INFO','Acuct','tKXyd','../../config/constants','YjAQK','clusterRegion','cRAkJ','4IpXEQN','Cluster:\x20','Pgsvm','toLowerCase','warn','skip-tls-cert-verify','DELETE','LCoEt','skipTlsCertVerify','body','304fuQBPo','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','pESQD','handler','replace','stack','OqRtB','rFnvk','CbSdN','clusterSpawnedVia','IwaSY','baVmo','gridId','unauthorised','ExQbs','LhqLc','password','../../utils/gridComponents','WebSocket','readNamespace','lWMKw','delete','LrBtP','existsSync','VNLcq','Successfully\x20deleted\x20the\x20grid','\x22\x20with\x20ID\x20','DiqpI'];a11_0x4cc2=function(){return _0x397725;};return a11_0x4cc2();}(function(_0x4a507a,_0x3e0a46){const _0x47bed7=a11_0x1472,_0x5d79b3=_0x4a507a();while(!![]){try{const _0x3777f1=parseInt(_0x47bed7(0x10b))/0x1+parseInt(_0x47bed7(0x108))/0x2*(-parseInt(_0x47bed7(0xcc))/0x3)+-parseInt(_0x47bed7(0x125))/0x4*(-parseInt(_0x47bed7(0xed))/0x5)+-parseInt(_0x47bed7(0x116))/0x6+parseInt(_0x47bed7(0xd3))/0x7+-parseInt(_0x47bed7(0x8b))/0x8*(-parseInt(_0x47bed7(0xf7))/0x9)+-parseInt(_0x47bed7(0xf9))/0xa;if(_0x3777f1===_0x3e0a46)break;else _0x5d79b3['push'](_0x5d79b3['shift']());}catch(_0x5a7431){_0x5d79b3['push'](_0x5d79b3['shift']());}}}(a11_0x4cc2,0xa61ea));function a11_0x1472(_0x332f0f,_0x1a7b0e){const _0x4cc2bd=a11_0x4cc2();return a11_0x1472=function(_0x1472c2,_0x586189){_0x1472c2=_0x1472c2-0x87;let _0x34c24f=_0x4cc2bd[_0x1472c2];return _0x34c24f;},a11_0x1472(_0x332f0f,_0x1a7b0e);}const fs=require('fs'),got=require(a11_0x53ffb9(0xbf)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x53ffb9(0x121)),{logger}=require(a11_0x53ffb9(0xd8)),{getCloudProviderObject}=require(a11_0x53ffb9(0xc9)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x53ffb9(0x9c)),{sendInstrumentationEvent}=require(a11_0x53ffb9(0xff)),{inputConfirmation}=require(a11_0x53ffb9(0xcb)),{createK8sClient}=require(a11_0x53ffb9(0xc1)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x53ffb9(0xdf)),webSocketUtils=require(a11_0x53ffb9(0x113));exports['command']='grid',exports[a11_0x53ffb9(0x103)]=a11_0x53ffb9(0xdc),exports[a11_0x53ffb9(0xfa)]=function(_0x433229){const _0x4a56f4=a11_0x53ffb9,_0x18d8a9={};_0x18d8a9[_0x4a56f4(0xf8)]=_0x4a56f4(0x117),_0x18d8a9['aAXha']=_0x4a56f4(0xa9),_0x18d8a9['LrBtP']='Skip\x20insecure\x20cert\x20verification.',_0x18d8a9[_0x4a56f4(0xc7)]=_0x4a56f4(0x107),_0x18d8a9[_0x4a56f4(0xcf)]=_0x4a56f4(0xe4);const _0x1b217f=_0x18d8a9,_0x4accac={};_0x4accac[_0x4a56f4(0xd5)]=_0x1b217f[_0x4a56f4(0xf8)],_0x4accac['type']=_0x1b217f[_0x4a56f4(0xd6)];const _0x574cd8={};_0x574cd8[_0x4a56f4(0xd5)]=_0x1b217f[_0x4a56f4(0xa1)],_0x574cd8[_0x4a56f4(0xad)]=_0x1b217f[_0x4a56f4(0xc7)],_0x574cd8[_0x4a56f4(0x10f)]=![];const _0x3ccf46={};return _0x3ccf46[_0x4a56f4(0xe8)]=_0x4accac,_0x3ccf46[_0x4a56f4(0x12a)]=_0x574cd8,_0x433229[_0x4a56f4(0xec)](HELP_HEADER_MESSAGE[_0x4a56f4(0xa0)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4a56f4(0xb6)](_0x3ccf46)['help'](_0x1b217f[_0x4a56f4(0xcf)])[_0x4a56f4(0xbe)];},exports[a11_0x53ffb9(0x8e)]=async function(_0x203076){const _0xb89e6f=a11_0x53ffb9,_0x46fbb0={'RCInM':_0xb89e6f(0x117),'rcwEP':_0xb89e6f(0xa9),'PzycT':'Skip\x20insecure\x20cert\x20verification.','Pgsvm':_0xb89e6f(0x107),'WGGUZ':_0xb89e6f(0xe4),'YjAQK':_0xb89e6f(0xa4),'lWMKw':function(_0x1fee36,_0x56bbf5){return _0x1fee36!==_0x56bbf5;},'pESQD':_0xb89e6f(0xb9),'SNISe':_0xb89e6f(0xae),'VDShq':function(_0x5028e9,_0x1c8fe4){return _0x5028e9===_0x1c8fe4;},'LhqLc':_0xb89e6f(0x88),'XgUFT':'nXOnH','eESLS':_0xb89e6f(0xd9),'OzWGx':function(_0x2651f1){return _0x2651f1();},'oBrtf':_0xb89e6f(0xf5),'OqRtB':_0xb89e6f(0xa3),'LOcRX':_0xb89e6f(0xb3),'yKnKN':function(_0x261323,_0x13df59,_0x492005,_0x5356e0,_0x200de,_0x29755b,_0x2246e5){return _0x261323(_0x13df59,_0x492005,_0x5356e0,_0x200de,_0x29755b,_0x2246e5);},'ghRsP':_0xb89e6f(0xfc),'eTMgd':_0xb89e6f(0xd7),'CYxCv':function(_0x4a70fd,_0x5152fa,_0xd7092e,_0xfb352a,_0xa06f17,_0x8aaec4,_0x58a084){return _0x4a70fd(_0x5152fa,_0xd7092e,_0xfb352a,_0xa06f17,_0x8aaec4,_0x58a084);},'tIJxm':function(_0x494e77,_0x5e6148){return _0x494e77===_0x5e6148;},'HmKmR':_0xb89e6f(0x10c),'KOJfY':function(_0xf75787){return _0xf75787();},'ExQbs':function(_0x59da0b,_0x83ac64,_0x5e4653,_0x12c999){return _0x59da0b(_0x83ac64,_0x5e4653,_0x12c999);},'Acuct':function(_0x1728cd,_0x5e51e7){return _0x1728cd===_0x5e51e7;},'wngSL':_0xb89e6f(0x11c),'baVmo':_0xb89e6f(0xb7),'APGBM':_0xb89e6f(0x93),'IZANh':function(_0x3c866e,_0x56e251){return _0x3c866e(_0x56e251);},'jAdPZ':function(_0x21fb50,_0x22ba30){return _0x21fb50===_0x22ba30;},'sqALN':function(_0x136c04,_0x59c97f){return _0x136c04===_0x59c97f;},'nBJtq':'zMchY','IwaSY':_0xb89e6f(0xb0),'gFusA':'invalid-input','cRAkJ':_0xb89e6f(0xef),'DiqpI':_0xb89e6f(0xc2),'CkoJI':_0xb89e6f(0x106),'ZKzzQ':function(_0x1a84dd,_0x31f75c){return _0x1a84dd(_0x31f75c);},'yftVk':function(_0x472647,_0x4cb70c,_0x31ecf0){return _0x472647(_0x4cb70c,_0x31ecf0);},'UBbVa':function(_0x1405d4,_0x468ee8,_0x3842a9,_0x21851c,_0x5e69fb,_0x3051de){return _0x1405d4(_0x468ee8,_0x3842a9,_0x21851c,_0x5e69fb,_0x3051de);},'pVDPX':_0xb89e6f(0xf4),'PyhKe':function(_0x2496e2,_0x5a98e5){return _0x2496e2===_0x5a98e5;},'aAiOv':'RxFep','MIYoo':_0xb89e6f(0x87),'sKgve':function(_0xde13e7,_0x37b328){return _0xde13e7!==_0x37b328;},'ZuWyy':function(_0x50223c,_0x1bbf7d){return _0x50223c!==_0x1bbf7d;},'ZUBCf':function(_0x1ae6a6,_0x44b3ea){return _0x1ae6a6===_0x44b3ea;},'DkbGY':function(_0x54a7de,_0x1e56fc,_0x29b4ca,_0x37dc78,_0x376b84,_0x1d1098,_0x2c53d6){return _0x54a7de(_0x1e56fc,_0x29b4ca,_0x37dc78,_0x376b84,_0x1d1098,_0x2c53d6);},'IlqTv':_0xb89e6f(0xac),'xdzIc':_0xb89e6f(0xce),'kRCsP':function(_0x4a7c55,_0x578b88,_0x334928,_0x352a8a,_0x30c288,_0x1d1dcc,_0x3be089){return _0x4a7c55(_0x578b88,_0x334928,_0x352a8a,_0x30c288,_0x1d1dcc,_0x3be089);},'Oqkuq':_0xb89e6f(0x98),'rFnvk':function(_0xc87fe7,_0x186d0b,_0x42abf4,_0x5044cd,_0x33e273,_0x5ae606,_0x423438){return _0xc87fe7(_0x186d0b,_0x42abf4,_0x5044cd,_0x33e273,_0x5ae606,_0x423438);},'eVQzy':'invalid-grid-id','bjyAQ':function(_0x2890b8,_0x11adce,_0x5991e2,_0x6625aa,_0x2e049d,_0x1cf039,_0x36452c){return _0x2890b8(_0x11adce,_0x5991e2,_0x6625aa,_0x2e049d,_0x1cf039,_0x36452c);},'tKXyd':_0xb89e6f(0xda)};try{global_registry[_0xb89e6f(0xc0)]=_0x46fbb0['OzWGx'](uuidv4);if(!fs[_0xb89e6f(0xa2)](_0x46fbb0[_0xb89e6f(0x110)](getCredentialsPath))){if(_0x46fbb0[_0xb89e6f(0xe7)](_0x46fbb0[_0xb89e6f(0xd2)],_0x46fbb0[_0xb89e6f(0x91)])){const _0x1ec6e1={};_0x1ec6e1[_0xb89e6f(0xd5)]=_0x46fbb0[_0xb89e6f(0xaa)],_0x1ec6e1['type']=_0x46fbb0[_0xb89e6f(0xd4)];const _0x25bd79={};_0x25bd79[_0xb89e6f(0xd5)]=_0x46fbb0[_0xb89e6f(0xcd)],_0x25bd79[_0xb89e6f(0xad)]=_0x46fbb0[_0xb89e6f(0x127)],_0x25bd79[_0xb89e6f(0x10f)]=![];const _0x44e6a9={};return _0x44e6a9['grid-id']=_0x1ec6e1,_0x44e6a9[_0xb89e6f(0x12a)]=_0x25bd79,_0x4fc7d8[_0xb89e6f(0xec)](_0x5f4c6f[_0xb89e6f(0xa0)])['epilogue'](_0x1b6dd6)[_0xb89e6f(0xb6)](_0x44e6a9)[_0xb89e6f(0xe4)](_0x46fbb0[_0xb89e6f(0xea)])[_0xb89e6f(0xbe)];}else console[_0xb89e6f(0xca)](_0x46fbb0['LOcRX']),await _0x46fbb0[_0xb89e6f(0xf2)](sendInstrumentationEvent,_0x203076,_0x46fbb0['ghRsP'],messageTypes[_0xb89e6f(0x102)],_0x46fbb0[_0xb89e6f(0x101)],null,_0x203076),process[_0xb89e6f(0x115)](0x1);}_0x46fbb0[_0xb89e6f(0xdd)](sendInstrumentationEvent,_0x203076,_0x46fbb0[_0xb89e6f(0xfe)],messageTypes[_0xb89e6f(0x11e)],null,null,_0x203076);!_0x203076[_0xb89e6f(0x97)]&&(_0x46fbb0[_0xb89e6f(0xfd)](_0x46fbb0[_0xb89e6f(0x112)],_0x46fbb0[_0xb89e6f(0x112)])?(console[_0xb89e6f(0xca)](_0x46fbb0[_0xb89e6f(0x119)]),process[_0xb89e6f(0x115)](0x1)):(_0x55a2e9[_0xb89e6f(0x129)]('Namespace:\x20'+_0x5da8e4+_0xb89e6f(0xe5)),_0x51a1fa=![]));const _0x140bd8=JSON[_0xb89e6f(0xf0)](fs[_0xb89e6f(0xc5)](_0x46fbb0[_0xb89e6f(0x11b)](getCredentialsPath))),[_0x2eca47,_0x46c443]=await _0x46fbb0[_0xb89e6f(0x99)](getGridDetails,_0x140bd8[_0xb89e6f(0x11c)][_0xb89e6f(0xb2)],_0x140bd8[_0xb89e6f(0x11c)][_0xb89e6f(0x9b)],_0x203076['gridId']);if(_0x46c443){const _0x82624=_0x46c443[_0xb89e6f(0xd1)];let _0x2f6b3a=_0xb89e6f(0xfb)+_0x82624[_0xb89e6f(0xde)]+_0xb89e6f(0x11d)+_0x82624['id']+_0xb89e6f(0xe0);_0x46c443[_0xb89e6f(0xd0)]&&_0x46fbb0[_0xb89e6f(0x11f)](_0x46c443[_0xb89e6f(0x94)],_0x46fbb0[_0xb89e6f(0xf6)])&&(_0x46fbb0['VDShq'](_0x46fbb0[_0xb89e6f(0x96)],_0x46fbb0[_0xb89e6f(0x11a)])?(_0x1eb621['info'](_0x46fbb0[_0xb89e6f(0x122)]),_0xd105f4['exit'](0x0)):_0x2f6b3a='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x82624['name']+_0xb89e6f(0x11d)+_0x82624['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x82624[_0xb89e6f(0x104)]+'\x22\x20with\x20ID\x20'+_0x82624[_0xb89e6f(0xb4)]+_0xb89e6f(0xe0));const _0x11ebb9=await _0x46fbb0[_0xb89e6f(0x109)](inputConfirmation,_0x2f6b3a);(_0x46fbb0[_0xb89e6f(0xe7)](_0x11ebb9,undefined)||_0x46fbb0['tIJxm'](_0x11ebb9,null)||!(_0x46fbb0['jAdPZ'](_0x11ebb9[_0xb89e6f(0x128)](),'y')||_0x46fbb0[_0xb89e6f(0x10a)](_0x11ebb9[_0xb89e6f(0x128)](),'n')))&&(_0x46fbb0[_0xb89e6f(0x9f)](_0x46fbb0[_0xb89e6f(0x100)],_0x46fbb0[_0xb89e6f(0x100)])?_0x133535[_0xb89e6f(0x115)](0x0):(console[_0xb89e6f(0xca)](_0x46fbb0[_0xb89e6f(0x95)]),await _0x46fbb0[_0xb89e6f(0xf2)](sendInstrumentationEvent,_0x203076,_0x46fbb0[_0xb89e6f(0xfe)],messageTypes[_0xb89e6f(0x102)],_0x46fbb0[_0xb89e6f(0xba)],null,_0x203076),process[_0xb89e6f(0x115)](0x1)));_0x46fbb0['tIJxm'](_0x11ebb9[_0xb89e6f(0x128)](),'n')&&(_0x46fbb0['tIJxm'](_0x46fbb0['cRAkJ'],_0x46fbb0[_0xb89e6f(0x124)])?process[_0xb89e6f(0x115)](0x0):_0x3cf461[_0xb89e6f(0x129)](_0xb89e6f(0x126)+_0x4bfb87[_0xb89e6f(0x104)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));const _0x5ba52c=WS_ENDPOINT[_0xb89e6f(0x8f)](_0x46fbb0[_0xb89e6f(0xa6)],_0x140bd8[_0xb89e6f(0x11c)][_0xb89e6f(0xb2)])[_0xb89e6f(0x8f)](_0x46fbb0['CkoJI'],_0x140bd8[_0xb89e6f(0x11c)][_0xb89e6f(0x9b)]),_0x499087={};_0x499087[_0xb89e6f(0x9d)]=ws,_0x499087[_0xb89e6f(0xeb)]=0x36ee80;const _0x34538c=new ReconnectingWebSocket(_0x5ba52c,[],_0x499087);global_registry[_0xb89e6f(0x123)]=_0x82624[_0xb89e6f(0xbd)];const _0x469d1f=_0x82624['cloudProvider'],_0x2759a0=await _0x46fbb0[_0xb89e6f(0xdd)](getCloudProviderObject,_0x469d1f,_0x82624['clusterName'],_0x82624['name'],_0x34538c,webSocketUtils,_0x203076),_0x2ca2e2=await _0x2759a0[_0xb89e6f(0xaf)]();if(_0x2ca2e2){const _0x34c52a=_0x46fbb0[_0xb89e6f(0xa7)](kebabCase,_0x82624[_0xb89e6f(0xde)]),[_0x518bc5,_0x2b5ce2,_0x142127,_0x15659d,_0x36ea75,_0x1fd5e8]=await _0x46fbb0[_0xb89e6f(0xc8)](createK8sClient,_0x2759a0,_0x203076[_0xb89e6f(0x89)]);let _0x559b67=!![];const _0x5ddfe1={};_0x5ddfe1[_0xb89e6f(0xde)]=_0x34c52a,await _0x518bc5[_0xb89e6f(0x9e)](_0x5ddfe1)[_0xb89e6f(0xc6)](_0x5a740d=>{const _0x2eec03=_0xb89e6f;_0x46fbb0[_0x2eec03(0x9f)](_0x46fbb0[_0x2eec03(0x8d)],_0x46fbb0[_0x2eec03(0x8d)])?_0x4875f2=_0x2eec03(0xfb)+_0x49524f['name']+_0x2eec03(0x11d)+_0x4021da['id']+_0x2eec03(0xdb)+_0x1558e9['clusterName']+_0x2eec03(0xa5)+_0x1fd2a3['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':logger[_0x2eec03(0xd1)]('Namespace:\x20'+_0x34c52a+_0x2eec03(0x8c));})['catch'](_0x471f13=>{const _0x19d818=_0xb89e6f;_0x46fbb0[_0x19d818(0xe7)](_0x46fbb0[_0x19d818(0x9a)],_0x46fbb0[_0x19d818(0xc3)])?(_0x3486c1[_0x19d818(0xca)](_0x46fbb0[_0x19d818(0x119)]),_0x5d9c8e[_0x19d818(0x115)](0x1)):(logger[_0x19d818(0x129)](_0x19d818(0xab)+_0x34c52a+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x559b67=![]);});if(_0x559b67){await _0x46fbb0['UBbVa'](removeGridComponents,_0x518bc5,_0x2b5ce2,_0x142127,_0x15659d,_0x34c52a);if(_0x46c443[_0xb89e6f(0xd0)]){const _0x48e2b5=await _0x2759a0[_0xb89e6f(0xee)]();_0x48e2b5?_0x46fbb0[_0xb89e6f(0x9f)](_0x46fbb0[_0xb89e6f(0x118)],_0x46fbb0[_0xb89e6f(0x118)])?_0x1f8f10[_0xb89e6f(0xd1)](_0xb89e6f(0xab)+_0x388068+_0xb89e6f(0x8c)):await _0x2759a0['deleteCluster'](_0x518bc5,_0x82624[_0xb89e6f(0xbd)]):_0x46fbb0[_0xb89e6f(0xf1)](_0x46fbb0[_0xb89e6f(0xbb)],_0x46fbb0['aAiOv'])?logger['warn'](_0xb89e6f(0x126)+_0x82624[_0xb89e6f(0x104)]+_0xb89e6f(0x114)):_0x5f16c2[_0xb89e6f(0x129)](_0x46fbb0[_0xb89e6f(0xbc)]);}}}else logger[_0xb89e6f(0x129)](_0x46fbb0['eESLS']);const _0x417aea=_0xb89e6f(0xe1)+AG_API_URL+_0xb89e6f(0xc4)+_0x203076['gridId'],_0x5413ef={'method':_0x46fbb0[_0xb89e6f(0x10d)],'headers':_0x46fbb0['yftVk'](getAuthHeader,_0x140bd8[_0xb89e6f(0x11c)]['username'],_0x140bd8[_0xb89e6f(0x11c)][_0xb89e6f(0x9b)]),'throwHttpErrors':![]},_0x595f41=await _0x46fbb0[_0xb89e6f(0xc8)](got,_0x417aea,_0x5413ef);_0x46fbb0[_0xb89e6f(0xe9)](_0x595f41,null)&&_0x46fbb0['ZuWyy'](_0x595f41,undefined)&&_0x46fbb0[_0xb89e6f(0xe2)](_0x595f41[_0xb89e6f(0xb1)],0xc8)&&(logger[_0xb89e6f(0xd1)](_0x46fbb0[_0xb89e6f(0x122)]),process[_0xb89e6f(0x115)](0x0)),logger[_0xb89e6f(0xca)](_0xb89e6f(0xb8)+_0x595f41['body']),await _0x46fbb0['DkbGY'](sendInstrumentationEvent,_0x203076,_0x46fbb0['ghRsP'],messageTypes[_0xb89e6f(0x102)],_0x46fbb0[_0xb89e6f(0x10e)],_0x2eca47,_0x203076),process[_0xb89e6f(0x115)](0x1);}_0x46fbb0['VDShq'](_0x2eca47[_0xb89e6f(0xb1)],0x191)&&(logger[_0xb89e6f(0xca)](_0x46fbb0[_0xb89e6f(0x105)]),await _0x46fbb0['kRCsP'](sendInstrumentationEvent,_0x203076,_0x46fbb0['ghRsP'],messageTypes['ERROR'],_0x46fbb0[_0xb89e6f(0xb5)],null,_0x203076),process['exit'](0x1)),_0x46fbb0['PyhKe'](_0x2eca47[_0xb89e6f(0xb1)],0x190)&&(logger[_0xb89e6f(0xca)](JSON[_0xb89e6f(0xf0)](_0x2eca47[_0xb89e6f(0x8a)])[_0xb89e6f(0x111)]),await _0x46fbb0[_0xb89e6f(0x92)](sendInstrumentationEvent,_0x203076,_0x46fbb0['ghRsP'],messageTypes['ERROR'],_0x46fbb0[_0xb89e6f(0xe3)],null,_0x203076),process[_0xb89e6f(0x115)](0x1)),logger[_0xb89e6f(0xca)](_0xb89e6f(0xe6)+JSON['stringify'](_0x2eca47)),await _0x46fbb0[_0xb89e6f(0xa8)](sendInstrumentationEvent,_0x203076,_0x46fbb0[_0xb89e6f(0xfe)],messageTypes['ERROR'],_0x46fbb0[_0xb89e6f(0x10e)],_0x2eca47,_0x203076),process[_0xb89e6f(0x115)](0x1);}catch(_0x4a8e2f){logger[_0xb89e6f(0xca)](_0xb89e6f(0xf3)+_0x4a8e2f[_0xb89e6f(0x90)]),await _0x46fbb0[_0xb89e6f(0xf2)](sendInstrumentationEvent,_0x203076,_0x46fbb0[_0xb89e6f(0xfe)],messageTypes[_0xb89e6f(0x102)],_0x46fbb0[_0xb89e6f(0x120)],_0x4a8e2f,_0x203076),process[_0xb89e6f(0x115)](0x1);}};
1
+ const a11_0x1839e9=a11_0x1156;function a11_0x1156(_0xb2141e,_0x2ee46b){const _0x1d0a1f=a11_0x1d0a();return a11_0x1156=function(_0x1156dc,_0xac704a){_0x1156dc=_0x1156dc-0x160;let _0x4a4dff=_0x1d0a1f[_0x1156dc];return _0x4a4dff;},a11_0x1156(_0xb2141e,_0x2ee46b);}(function(_0x279ed1,_0x70b210){const _0x38bb79=a11_0x1156,_0x200608=_0x279ed1();while(!![]){try{const _0x3b4535=-parseInt(_0x38bb79(0x1f5))/0x1*(parseInt(_0x38bb79(0x1c5))/0x2)+-parseInt(_0x38bb79(0x18d))/0x3+-parseInt(_0x38bb79(0x1bf))/0x4+-parseInt(_0x38bb79(0x16c))/0x5+-parseInt(_0x38bb79(0x181))/0x6+parseInt(_0x38bb79(0x1a8))/0x7+parseInt(_0x38bb79(0x171))/0x8;if(_0x3b4535===_0x70b210)break;else _0x200608['push'](_0x200608['shift']());}catch(_0x91adcf){_0x200608['push'](_0x200608['shift']());}}}(a11_0x1d0a,0xa6254));const fs=require('fs'),got=require(a11_0x1839e9(0x172)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x1839e9(0x18c)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x1839e9(0x1e3)),{logger}=require(a11_0x1839e9(0x19c)),{getCloudProviderObject}=require(a11_0x1839e9(0x1a7)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x1839e9(0x1dc)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x1839e9(0x1aa)),webSocketUtils=require('../../utils/webSocketUtils');exports[a11_0x1839e9(0x200)]=a11_0x1839e9(0x177),exports['desc']=a11_0x1839e9(0x1b3),exports[a11_0x1839e9(0x19f)]=function(_0x17306e){const _0x466cf2=a11_0x1839e9,_0x509834={};_0x509834[_0x466cf2(0x182)]=_0x466cf2(0x178),_0x509834[_0x466cf2(0x1af)]=_0x466cf2(0x1b4),_0x509834['AHMsS']=_0x466cf2(0x184),_0x509834['MnFGu']=_0x466cf2(0x19d),_0x509834['KMcKx']=_0x466cf2(0x18e);const _0x32e14f=_0x509834,_0x3154a0={};_0x3154a0[_0x466cf2(0x19b)]=_0x32e14f['ySerp'],_0x3154a0['type']=_0x32e14f[_0x466cf2(0x1af)];const _0x33e600={};_0x33e600[_0x466cf2(0x19b)]=_0x32e14f['AHMsS'],_0x33e600[_0x466cf2(0x1d6)]=_0x32e14f[_0x466cf2(0x1f1)],_0x33e600[_0x466cf2(0x1ee)]=![];const _0x15510c={};return _0x15510c['grid-id']=_0x3154a0,_0x15510c[_0x466cf2(0x160)]=_0x33e600,_0x17306e[_0x466cf2(0x166)](HELP_HEADER_MESSAGE['delete'])[_0x466cf2(0x1bc)](HELP_FOOTER_MESSAGE)['options'](_0x15510c)['help'](_0x32e14f[_0x466cf2(0x1d8)])['argv'];},exports[a11_0x1839e9(0x1c7)]=async function(_0xa61ce3){const _0x451c1a=a11_0x1839e9,_0x53ab8a={'AOkPC':_0x451c1a(0x1d1),'jfYgr':'Pass\x20the\x20ID\x20of\x20the\x20Grid','XXngs':'string','wqGRy':_0x451c1a(0x184),'vgJEu':'boolean','sdHOA':_0x451c1a(0x18e),'pfcht':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','ODqjC':function(_0x3a1afc,_0x5823fe){return _0x3a1afc===_0x5823fe;},'FIvMM':_0x451c1a(0x1f4),'BNQPQ':_0x451c1a(0x1c8),'yVjPa':function(_0x5e0916,_0x9c8fd0){return _0x5e0916!==_0x9c8fd0;},'HTBzU':_0x451c1a(0x1bb),'JfXEe':_0x451c1a(0x1b7),'LRolZ':_0x451c1a(0x175),'wfvXk':function(_0x5a04a6){return _0x5a04a6();},'ySJco':function(_0x35eeee){return _0x35eeee();},'FbOsb':_0x451c1a(0x1f9),'lAuxR':_0x451c1a(0x17d),'egRHt':_0x451c1a(0x1f7),'BsHpA':function(_0x120c58,_0x3a8723,_0x44f5a6,_0x5a3872,_0x195f30,_0x25416f,_0xa1610f){return _0x120c58(_0x3a8723,_0x44f5a6,_0x5a3872,_0x195f30,_0x25416f,_0xa1610f);},'SNIWz':_0x451c1a(0x17a),'Nrenl':'init-not-called','mXXFG':function(_0x71da2c,_0x5bc6c5,_0x366d12,_0x2e0818,_0x28f5e0,_0x4918d0,_0x4167db){return _0x71da2c(_0x5bc6c5,_0x366d12,_0x2e0818,_0x28f5e0,_0x4918d0,_0x4167db);},'KNUki':'CrZAf','romyW':_0x451c1a(0x195),'zzcOm':function(_0xbfebc8){return _0xbfebc8();},'tEwEg':function(_0x215f31,_0x53f454,_0x5d83e5,_0x1d4ee3){return _0x215f31(_0x53f454,_0x5d83e5,_0x1d4ee3);},'xpWgC':'Browserstack','FLQII':function(_0x507af4,_0x1d4496){return _0x507af4===_0x1d4496;},'ptloT':_0x451c1a(0x190),'GkpGF':function(_0x2533cd,_0xba4f04){return _0x2533cd(_0xba4f04);},'LAsQM':function(_0x281497,_0x4e8974){return _0x281497===_0x4e8974;},'oxkTg':function(_0x26015b,_0x47062d){return _0x26015b!==_0x47062d;},'hFkWY':_0x451c1a(0x162),'CVokG':_0x451c1a(0x19e),'vAVXw':_0x451c1a(0x1a5),'pAktd':_0x451c1a(0x201),'MdJfo':function(_0xbeac03,_0x11ac9c){return _0xbeac03===_0x11ac9c;},'BAlNm':_0x451c1a(0x1f3),'mCBXE':'BgAoQ','yGSou':'<UsernamePlaceholder>','tPcZs':_0x451c1a(0x202),'jvwAf':function(_0x4cfe26,_0x25433e){return _0x4cfe26(_0x25433e);},'KnRnD':function(_0x146a84,_0x5dfa31,_0x31f912){return _0x146a84(_0x5dfa31,_0x31f912);},'POQGR':function(_0x2c1334,_0x3f5e5,_0x34a3f8,_0x5826a6,_0x31c63b,_0x28b40a){return _0x2c1334(_0x3f5e5,_0x34a3f8,_0x5826a6,_0x31c63b,_0x28b40a);},'taVQD':function(_0x203a24,_0x3faa2b){return _0x203a24!==_0x3faa2b;},'sRiEJ':_0x451c1a(0x17f),'eYLNX':_0x451c1a(0x18a),'tKrLK':function(_0x34680d,_0x5f1fc8){return _0x34680d!==_0x5f1fc8;},'PIBQX':_0x451c1a(0x1a9),'njvbC':_0x451c1a(0x1b0),'IyIXg':function(_0x445534,_0x3c5230){return _0x445534!==_0x3c5230;},'gfoLE':function(_0x38bb87,_0x1e29b1){return _0x38bb87===_0x1e29b1;},'JnRhF':function(_0x5e43b7,_0x4f0cdf,_0x421312,_0x39de4e,_0x2fe491,_0x47bd60,_0x42dcaf){return _0x5e43b7(_0x4f0cdf,_0x421312,_0x39de4e,_0x2fe491,_0x47bd60,_0x42dcaf);},'wfkvq':_0x451c1a(0x1fb),'HkPpQ':function(_0x739463,_0x379122){return _0x739463===_0x379122;},'CekEb':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','diqiZ':_0x451c1a(0x163),'PHEnc':_0x451c1a(0x1a2),'nDLSK':function(_0x4665f7,_0x37baa5,_0x59356c,_0x10bb7a,_0x51d922,_0x61c7a2,_0x499571){return _0x4665f7(_0x37baa5,_0x59356c,_0x10bb7a,_0x51d922,_0x61c7a2,_0x499571);},'vAFun':_0x451c1a(0x1fe)};try{global_registry[_0x451c1a(0x1d0)]=_0x53ab8a[_0x451c1a(0x1f0)](uuidv4);!fs[_0x451c1a(0x19a)](_0x53ab8a[_0x451c1a(0x1e8)](getCredentialsPath))&&(_0x53ab8a['yVjPa'](_0x53ab8a[_0x451c1a(0x1df)],_0x53ab8a[_0x451c1a(0x1d7)])?(console['error'](_0x53ab8a[_0x451c1a(0x1ae)]),await _0x53ab8a[_0x451c1a(0x1ec)](sendInstrumentationEvent,_0xa61ce3,_0x53ab8a[_0x451c1a(0x168)],messageTypes[_0x451c1a(0x1d3)],_0x53ab8a[_0x451c1a(0x16d)],null,_0xa61ce3),process[_0x451c1a(0x1e1)](0x1)):_0x331711[_0x451c1a(0x1db)](_0x53ab8a['AOkPC']));_0x53ab8a['mXXFG'](sendInstrumentationEvent,_0xa61ce3,_0x53ab8a[_0x451c1a(0x168)],messageTypes[_0x451c1a(0x180)],null,null,_0xa61ce3);!_0xa61ce3[_0x451c1a(0x1a3)]&&(_0x53ab8a[_0x451c1a(0x1f8)](_0x53ab8a[_0x451c1a(0x1da)],_0x53ab8a[_0x451c1a(0x1c3)])?(console['error'](_0x53ab8a[_0x451c1a(0x1cc)]),process['exit'](0x1)):_0x38f477='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x42c4d8[_0x451c1a(0x1ab)]+'\x22\x20and\x20ID\x20'+_0x2b15bd['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x43ac6b[_0x451c1a(0x18b)]+_0x451c1a(0x197)+_0x3b54c3[_0x451c1a(0x1c0)]+_0x451c1a(0x1e4));const _0xf5e334=JSON['parse'](fs[_0x451c1a(0x1c6)](_0x53ab8a['zzcOm'](getCredentialsPath))),[_0x53a733,_0x1da271]=await _0x53ab8a[_0x451c1a(0x191)](getGridDetails,_0xf5e334['Browserstack'][_0x451c1a(0x1de)],_0xf5e334[_0x451c1a(0x1a0)][_0x451c1a(0x1ce)],_0xa61ce3['gridId']);if(_0x1da271){const _0x3e80fe=_0x1da271[_0x451c1a(0x1dd)];let _0x29d321='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x3e80fe['name']+_0x451c1a(0x1f2)+_0x3e80fe['id']+_0x451c1a(0x1e4);if(_0x1da271[_0x451c1a(0x1b6)]&&_0x53ab8a[_0x451c1a(0x1c1)](_0x1da271[_0x451c1a(0x192)],_0x53ab8a[_0x451c1a(0x1cb)])){if(_0x53ab8a[_0x451c1a(0x1a4)](_0x53ab8a[_0x451c1a(0x1ff)],_0x53ab8a[_0x451c1a(0x1ff)]))_0x29d321=_0x451c1a(0x189)+_0x3e80fe[_0x451c1a(0x1ab)]+_0x451c1a(0x1f2)+_0x3e80fe['id']+_0x451c1a(0x179)+_0x3e80fe[_0x451c1a(0x18b)]+_0x451c1a(0x197)+_0x3e80fe['clusterId']+_0x451c1a(0x1e4);else{const _0x5c01b6={};_0x5c01b6['description']=_0x53ab8a[_0x451c1a(0x1ba)],_0x5c01b6[_0x451c1a(0x1d6)]=_0x53ab8a['XXngs'];const _0x46bdd2={};_0x46bdd2[_0x451c1a(0x19b)]=_0x53ab8a[_0x451c1a(0x1b8)],_0x46bdd2[_0x451c1a(0x1d6)]=_0x53ab8a[_0x451c1a(0x1fa)],_0x46bdd2[_0x451c1a(0x1ee)]=![];const _0x511cc9={};return _0x511cc9[_0x451c1a(0x1d2)]=_0x5c01b6,_0x511cc9[_0x451c1a(0x160)]=_0x46bdd2,_0x21142c[_0x451c1a(0x166)](_0x22abe9[_0x451c1a(0x1b9)])[_0x451c1a(0x1bc)](_0x279554)[_0x451c1a(0x1ed)](_0x511cc9)[_0x451c1a(0x18e)](_0x53ab8a[_0x451c1a(0x176)])[_0x451c1a(0x1e0)];}}const _0x55b235=await _0x53ab8a[_0x451c1a(0x196)](inputConfirmation,_0x29d321);(_0x53ab8a['ODqjC'](_0x55b235,undefined)||_0x53ab8a[_0x451c1a(0x1a4)](_0x55b235,null)||!(_0x53ab8a[_0x451c1a(0x1c9)](_0x55b235[_0x451c1a(0x193)](),'y')||_0x53ab8a['ODqjC'](_0x55b235['toLowerCase'](),'n')))&&(_0x53ab8a[_0x451c1a(0x16a)](_0x53ab8a[_0x451c1a(0x1b1)],_0x53ab8a[_0x451c1a(0x1ad)])?(console[_0x451c1a(0x1c2)](_0x53ab8a['vAVXw']),await _0x53ab8a[_0x451c1a(0x1ec)](sendInstrumentationEvent,_0xa61ce3,_0x53ab8a[_0x451c1a(0x168)],messageTypes[_0x451c1a(0x1d3)],_0x53ab8a[_0x451c1a(0x167)],null,_0xa61ce3),process[_0x451c1a(0x1e1)](0x1)):_0x1d0a7b[_0x451c1a(0x1db)](_0x451c1a(0x16b)+_0x3d7ac8[_0x451c1a(0x18b)]+_0x451c1a(0x1fc)));_0x53ab8a['MdJfo'](_0x55b235[_0x451c1a(0x193)](),'n')&&(_0x53ab8a[_0x451c1a(0x161)](_0x53ab8a['BAlNm'],_0x53ab8a[_0x451c1a(0x1be)])?(_0x48acb1['error'](_0x53ab8a[_0x451c1a(0x1cc)]),_0x1f33ff[_0x451c1a(0x1e1)](0x1)):process['exit'](0x0));const _0x21e0f2=WS_ENDPOINT[_0x451c1a(0x1e2)](_0x53ab8a['yGSou'],_0xf5e334[_0x451c1a(0x1a0)][_0x451c1a(0x1de)])[_0x451c1a(0x1e2)](_0x53ab8a['tPcZs'],_0xf5e334[_0x451c1a(0x1a0)][_0x451c1a(0x1ce)]),_0x140b21={};_0x140b21['WebSocket']=ws,_0x140b21[_0x451c1a(0x1f6)]=0x36ee80;const _0x2b91d4=new ReconnectingWebSocket(_0x21e0f2,[],_0x140b21);global_registry[_0x451c1a(0x186)]=_0x3e80fe['region'];const _0x38331e=_0x3e80fe[_0x451c1a(0x1a1)],_0x3f9398=await _0x53ab8a[_0x451c1a(0x1ec)](getCloudProviderObject,_0x38331e,_0x3e80fe['clusterName'],_0x3e80fe[_0x451c1a(0x1ab)],_0x2b91d4,webSocketUtils,_0xa61ce3),_0x30c5f9=await _0x3f9398[_0x451c1a(0x188)]();if(_0x30c5f9){const _0x1556e9=_0x53ab8a[_0x451c1a(0x1e6)](kebabCase,_0x3e80fe[_0x451c1a(0x1ab)]),[_0x3c3891,_0x21697e,_0x3cf602,_0x3cd220,_0x52dc38,_0x301d7f]=await _0x53ab8a[_0x451c1a(0x164)](createK8sClient,_0x3f9398,_0xa61ce3[_0x451c1a(0x17e)]);let _0xc845c=!![];const _0x322fc1={};_0x322fc1[_0x451c1a(0x1ab)]=_0x1556e9,await _0x3c3891['readNamespace'](_0x322fc1)[_0x451c1a(0x1e7)](_0x39b3c0=>{const _0x29bae3=_0x451c1a;_0x53ab8a[_0x29bae3(0x1c1)](_0x53ab8a[_0x29bae3(0x1cf)],_0x53ab8a[_0x29bae3(0x1ac)])?(_0x5ddfb7['warn'](_0x29bae3(0x183)+_0xfd2e90+_0x29bae3(0x1c4)),_0x10de44=![]):logger[_0x29bae3(0x1dd)](_0x29bae3(0x183)+_0x1556e9+_0x29bae3(0x1cd));})[_0x451c1a(0x194)](_0x15662c=>{const _0x48f5aa=_0x451c1a;_0x53ab8a[_0x48f5aa(0x1f8)](_0x53ab8a[_0x48f5aa(0x17b)],_0x53ab8a['JfXEe'])?(logger[_0x48f5aa(0x1db)](_0x48f5aa(0x183)+_0x1556e9+_0x48f5aa(0x1c4)),_0xc845c=![]):_0x572400[_0x48f5aa(0x1e1)](0x0);});if(_0xc845c){await _0x53ab8a['POQGR'](removeGridComponents,_0x3c3891,_0x21697e,_0x3cf602,_0x3cd220,_0x1556e9);if(_0x1da271['onlyGridInCluster']){const _0x5bb6e0=await _0x3f9398[_0x451c1a(0x1ef)]();_0x5bb6e0?_0x53ab8a[_0x451c1a(0x1d4)](_0x53ab8a[_0x451c1a(0x169)],_0x53ab8a[_0x451c1a(0x185)])?await _0x3f9398[_0x451c1a(0x1eb)](_0x3c3891,_0x3e80fe[_0x451c1a(0x1a6)]):_0x41260a[_0x451c1a(0x1dd)](_0x451c1a(0x183)+_0x31e6c3+_0x451c1a(0x1cd)):_0x53ab8a[_0x451c1a(0x1b5)](_0x53ab8a['PIBQX'],_0x53ab8a[_0x451c1a(0x1b2)])?(_0x2da35a[_0x451c1a(0x1dd)](_0x53ab8a[_0x451c1a(0x170)]),_0x1f91d4[_0x451c1a(0x1e1)](0x0)):logger[_0x451c1a(0x1db)](_0x451c1a(0x16b)+_0x3e80fe[_0x451c1a(0x18b)]+_0x451c1a(0x1fc));}}}else logger[_0x451c1a(0x1db)](_0x53ab8a[_0x451c1a(0x187)]);const _0x1f1730=_0x451c1a(0x1d9)+AG_API_URL+_0x451c1a(0x199)+_0xa61ce3[_0x451c1a(0x1a3)],_0x3341ad={'method':_0x53ab8a[_0x451c1a(0x173)],'headers':_0x53ab8a[_0x451c1a(0x164)](getAuthHeader,_0xf5e334[_0x451c1a(0x1a0)][_0x451c1a(0x1de)],_0xf5e334[_0x451c1a(0x1a0)][_0x451c1a(0x1ce)]),'throwHttpErrors':![]},_0x3f919f=await _0x53ab8a[_0x451c1a(0x164)](got,_0x1f1730,_0x3341ad);_0x53ab8a['taVQD'](_0x3f919f,null)&&_0x53ab8a[_0x451c1a(0x1fd)](_0x3f919f,undefined)&&_0x53ab8a['gfoLE'](_0x3f919f[_0x451c1a(0x18f)],0xc8)&&(logger[_0x451c1a(0x1dd)](_0x53ab8a['LRolZ']),process[_0x451c1a(0x1e1)](0x0)),logger[_0x451c1a(0x1c2)](_0x451c1a(0x198)+_0x3f919f[_0x451c1a(0x16e)]),await _0x53ab8a[_0x451c1a(0x1ea)](sendInstrumentationEvent,_0xa61ce3,_0x53ab8a[_0x451c1a(0x168)],messageTypes[_0x451c1a(0x1d3)],_0x53ab8a['wfkvq'],_0x53a733,_0xa61ce3),process[_0x451c1a(0x1e1)](0x1);}_0x53ab8a[_0x451c1a(0x1ca)](_0x53a733[_0x451c1a(0x18f)],0x191)&&(logger['error'](_0x53ab8a[_0x451c1a(0x1e5)]),await _0x53ab8a['BsHpA'](sendInstrumentationEvent,_0xa61ce3,_0x53ab8a[_0x451c1a(0x168)],messageTypes[_0x451c1a(0x1d3)],_0x53ab8a['diqiZ'],null,_0xa61ce3),process['exit'](0x1)),_0x53ab8a['LAsQM'](_0x53a733[_0x451c1a(0x18f)],0x190)&&(logger[_0x451c1a(0x1c2)](JSON['parse'](_0x53a733[_0x451c1a(0x16e)])[_0x451c1a(0x1d5)]),await _0x53ab8a[_0x451c1a(0x1ea)](sendInstrumentationEvent,_0xa61ce3,_0x53ab8a['SNIWz'],messageTypes[_0x451c1a(0x1d3)],_0x53ab8a[_0x451c1a(0x16f)],null,_0xa61ce3),process['exit'](0x1)),logger[_0x451c1a(0x1c2)](_0x451c1a(0x1e9)+JSON[_0x451c1a(0x1bd)](_0x53a733)),await _0x53ab8a['nDLSK'](sendInstrumentationEvent,_0xa61ce3,_0x53ab8a[_0x451c1a(0x168)],messageTypes[_0x451c1a(0x1d3)],_0x53ab8a['wfkvq'],_0x53a733,_0xa61ce3),process[_0x451c1a(0x1e1)](0x1);}catch(_0x1d5ced){logger[_0x451c1a(0x1c2)](_0x451c1a(0x17c)+_0x1d5ced[_0x451c1a(0x174)]),await _0x53ab8a['JnRhF'](sendInstrumentationEvent,_0xa61ce3,_0x53ab8a[_0x451c1a(0x168)],messageTypes[_0x451c1a(0x1d3)],_0x53ab8a[_0x451c1a(0x165)],_0x1d5ced,_0xa61ce3),process[_0x451c1a(0x1e1)](0x1);}};function a11_0x1d0a(){const _0x3116ee=['wfvXk','MnFGu','\x22\x20and\x20ID\x20','pVIfV','VpyNv','338575pkDPRz','connectionTimeout','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yVjPa','RIkhg','vgJEu','server-error','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','IyIXg','unknown-error','ptloT','command','invalid-input','<PasswordPlaceholder>','skip-tls-cert-verify','MdJfo','xnNAV','unauthorised','KnRnD','vAFun','usage','pAktd','SNIWz','sRiEJ','oxkTg','Cluster:\x20','4895145UEXiTq','Nrenl','body','PHEnc','LRolZ','32557552VgGsdJ','got','njvbC','stack','Successfully\x20deleted\x20the\x20grid','sdHOA','grid','Pass\x20the\x20ID\x20of\x20the\x20Grid','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','delete-grid-called','HTBzU','Failed\x20to\x20delete\x20resources!\x20Error:\x20','LyjUE','skipTlsCertVerify','DQQty','INFO','7160568nYBHgO','ySerp','Namespace:\x20','Skip\x20insecure\x20cert\x20verification.','eYLNX','clusterRegion','AOkPC','isClusterPresent','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','zkiwZ','clusterName','reconnecting-websocket','3991035RyhRjf','help','statusCode','FOGTg','tEwEg','clusterSpawnedVia','toLowerCase','catch','RsibW','GkpGF','\x22\x20with\x20ID\x20','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','/packages/cli/grid/','existsSync','description','../../config/logger','boolean','TiQix','builder','Browserstack','cloudProvider','invalid-grid-id','gridId','FLQII','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','region','../../cloudproviders/utils','7919296heTkGK','kGoMw','../../utils/utilityMethods','name','BNQPQ','CVokG','egRHt','ldtWL','DELETE','hFkWY','PIBQX','Delete\x20an\x20Automation\x20grid.','string','tKrLK','onlyGridInCluster','gLKbJ','wqGRy','delete','jfYgr','NMHqU','epilogue','stringify','mCBXE','2716452vqXjIq','clusterId','ODqjC','error','romyW','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','2WcuLEp','readFileSync','handler','paxiF','LAsQM','HkPpQ','xpWgC','pfcht','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','password','FIvMM','requestId','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','grid-id','ERROR','taVQD','message','type','lAuxR','KMcKx','https://','KNUki','warn','../../utils/createk8sClient','info','username','FbOsb','argv','exit','replace','../../config/constants','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','CekEb','jvwAf','then','ySJco','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','JnRhF','deleteCluster','BsHpA','options','default','isBrowserstackCluster'];a11_0x1d0a=function(){return _0x3116ee;};return a11_0x1d0a();}
@@ -1 +1 @@
1
- const a12_0x4d974e=a12_0x45e6;function a12_0x45e6(_0x134442,_0x2c253f){const _0x25a5b6=a12_0x25a5();return a12_0x45e6=function(_0x45e66e,_0x432252){_0x45e66e=_0x45e66e-0x172;let _0x498936=_0x25a5b6[_0x45e66e];return _0x498936;},a12_0x45e6(_0x134442,_0x2c253f);}function a12_0x25a5(){const _0x117cba=['password','dnJaW','bzNuF','8fQThhG','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','existsSync','recommendCommands','STyhD','handler','env','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','2JDCsso','bstackUsername','puERz','got','5shBhcl','requestId','cNeIN','PzAfc','60iZQppp','help','2429297HcBvrf','Qijzh','utf-8','uegZF','GRIpu','epilogue','ueKKw','../utils/utilityMethods','zdPtb','type','DhOgO','pwsXt','desc','exit','description','string','usage','BROWSERSTACK_USERNAME','SHeVA','GET','INFO','init-called','uuid','10238985tGRTbt','username','TSbWR','unYge','TDize','fsgCb','bstack-username','Browserstack','vOcKT','CqQiF','stringify','3883neyqdd','statusCode','parse','FPfzt','NJtmY','1186142ufcrlL','CyPpa','sXeKX','adiek','readFileSync','oMGmq','builder','options','lnrgj','BROWSERSTACK_ACCESS_KEY','spxZY','BMzee','5072739dSMxph','../config/constants','siMtX','NNFwv','4884774zFBzKj','CLnVG','lHuVw','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','knpsG','uJsWG','eQuSt','kvTrF','cDVoO','FYHMb','2809028VudqWI','yybrc','kxhMT','strict','../config/logger','wrong-creds','GYnuL','https://','bstackAccesskey','3yohwdn','UGvQp','init','MOufb','nppiv','BpBMB','DXnDB','dNAoP','ERROR','/automate/plan.json','MlwjX','bstack-accesskey','writeFileSync','error','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','47860zUqihz','aKviz'];a12_0x25a5=function(){return _0x117cba;};return a12_0x25a5();}(function(_0x340978,_0x1c8721){const _0x5e1123=a12_0x45e6,_0x19c207=_0x340978();while(!![]){try{const _0x451ce6=parseInt(_0x5e1123(0x18e))/0x1*(-parseInt(_0x5e1123(0x1bf))/0x2)+-parseInt(_0x5e1123(0x172))/0x3*(-parseInt(_0x5e1123(0x1d9))/0x4)+parseInt(_0x5e1123(0x192))/0x5*(-parseInt(_0x5e1123(0x1cf))/0x6)+parseInt(_0x5e1123(0x1cb))/0x7*(parseInt(_0x5e1123(0x186))/0x8)+-parseInt(_0x5e1123(0x1af))/0x9+parseInt(_0x5e1123(0x181))/0xa*(parseInt(_0x5e1123(0x1ba))/0xb)+-parseInt(_0x5e1123(0x196))/0xc*(-parseInt(_0x5e1123(0x198))/0xd);if(_0x451ce6===_0x1c8721)break;else _0x19c207['push'](_0x19c207['shift']());}catch(_0x360b90){_0x19c207['push'](_0x19c207['shift']());}}}(a12_0x25a5,0xdeda1));const fs=require('fs'),util=require('util'),got=require(a12_0x4d974e(0x191)),{v4:uuidv4}=require(a12_0x4d974e(0x1ae)),{logger}=require(a12_0x4d974e(0x1dd)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x4d974e(0x1cc)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x4d974e(0x19f)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports['command']='init',exports[a12_0x4d974e(0x1a4)]=a12_0x4d974e(0x180),exports[a12_0x4d974e(0x1c5)]=function(_0x1b9f20){const _0x21d7c8=a12_0x4d974e,_0x34dcd2={};_0x34dcd2[_0x21d7c8(0x173)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x34dcd2[_0x21d7c8(0x176)]='string',_0x34dcd2[_0x21d7c8(0x19b)]=_0x21d7c8(0x1d2),_0x34dcd2[_0x21d7c8(0x178)]='help';const _0x1fda15=_0x34dcd2,_0x1900c1={};_0x1900c1[_0x21d7c8(0x1a6)]=_0x1fda15['UGvQp'],_0x1900c1[_0x21d7c8(0x1a1)]=_0x1fda15[_0x21d7c8(0x176)];const _0x181ef3={};_0x181ef3['description']=_0x1fda15[_0x21d7c8(0x19b)],_0x181ef3[_0x21d7c8(0x1a1)]=_0x1fda15['nppiv'];const _0x5b3a51={};return _0x5b3a51[_0x21d7c8(0x1b5)]=_0x1900c1,_0x5b3a51[_0x21d7c8(0x17d)]=_0x181ef3,_0x1b9f20[_0x21d7c8(0x1a8)](HELP_HEADER_MESSAGE[_0x21d7c8(0x174)])[_0x21d7c8(0x19d)](HELP_FOOTER_MESSAGE)[_0x21d7c8(0x1c6)](_0x5b3a51)[_0x21d7c8(0x189)]()[_0x21d7c8(0x1dc)]()[_0x21d7c8(0x197)](_0x1fda15[_0x21d7c8(0x178)])['argv'];},exports[a12_0x4d974e(0x18b)]=async function(_0x1e410c){const _0x3b2561=a12_0x4d974e,_0x1ea7a3={'kxhMT':_0x3b2561(0x19a),'sXeKX':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','QynUv':_0x3b2561(0x1a7),'lNBdn':_0x3b2561(0x1d2),'YJnle':_0x3b2561(0x197),'oMGmq':function(_0x4e755c){return _0x4e755c();},'DhOgO':function(_0x3051f4,_0x2a7ca7,_0x57738f,_0x31f0a0,_0x96a714,_0x4137fb,_0x3554a6){return _0x3051f4(_0x2a7ca7,_0x57738f,_0x31f0a0,_0x96a714,_0x4137fb,_0x3554a6);},'CLnVG':_0x3b2561(0x1ad),'Qijzh':function(_0x1610f4,_0x24200c){return _0x1610f4===_0x24200c;},'TSbWR':'EZORS','fsgCb':function(_0x1f3a9c,_0x587193){return _0x1f3a9c!==_0x587193;},'NNFwv':_0x3b2561(0x19e),'MlwjX':_0x3b2561(0x190),'siMtX':function(_0x98571,_0x31f5be){return _0x98571!==_0x31f5be;},'BpBMB':_0x3b2561(0x1c9),'WxqJI':_0x3b2561(0x185),'qEIuC':function(_0x429cf2,_0x35f7aa){return _0x429cf2!==_0x35f7aa;},'aKviz':_0x3b2561(0x1a0),'GYnuL':function(_0x1e7d19,_0xb31f0d){return _0x1e7d19!==_0xb31f0d;},'TDize':_0x3b2561(0x1d8),'FPfzt':_0x3b2561(0x1da),'NJtmY':function(_0x313636,_0x1c5cf6){return _0x313636===_0x1c5cf6;},'uJsWG':function(_0xd0459e,_0x5548c8){return _0xd0459e===_0x5548c8;},'lnrgj':_0x3b2561(0x1ca),'MOufb':_0x3b2561(0x18d),'CqQiF':_0x3b2561(0x1ab),'SHeVA':function(_0x49dbaf,_0x3578e8,_0x17e0a7){return _0x49dbaf(_0x3578e8,_0x17e0a7);},'bLkAI':function(_0x3965a6,_0x1aabee,_0x38b9e4){return _0x3965a6(_0x1aabee,_0x38b9e4);},'lHuVw':function(_0x4a418f,_0x2e5065){return _0x4a418f!==_0x2e5065;},'dnJaW':function(_0x14b3cf,_0x25c8fc){return _0x14b3cf!==_0x25c8fc;},'cDVoO':_0x3b2561(0x1d3),'unYge':'JXdWs','CyPpa':function(_0x5a180e,_0x1445f4){return _0x5a180e!==_0x1445f4;},'POGHv':_0x3b2561(0x194),'PzAfc':_0x3b2561(0x1c2),'eQuSt':function(_0x244cad){return _0x244cad();},'dNAoP':function(_0x32871e,_0x32fa26){return _0x32871e!==_0x32fa26;},'pwsXt':_0x3b2561(0x19c),'kvTrF':_0x3b2561(0x187),'STyhD':_0x3b2561(0x1de),'vOcKT':function(_0x4410ed,_0x48059a,_0xe3fcac,_0x3c854c,_0x3bcaff,_0x2ab23e,_0xc0a225){return _0x4410ed(_0x48059a,_0xe3fcac,_0x3c854c,_0x3bcaff,_0x2ab23e,_0xc0a225);},'xPHNW':'unknown-error'};try{global_registry[_0x3b2561(0x193)]=_0x1ea7a3[_0x3b2561(0x1c4)](uuidv4),_0x1ea7a3[_0x3b2561(0x1a2)](sendInstrumentationEvent,_0x1e410c,_0x1ea7a3[_0x3b2561(0x1d0)],messageTypes[_0x3b2561(0x1ac)],null,null,_0x1e410c);const _0x1bf159=_0x1ea7a3[_0x3b2561(0x1c4)](getDirForConfig);!fs[_0x3b2561(0x188)](_0x1bf159)&&(_0x1ea7a3['Qijzh'](_0x1ea7a3[_0x3b2561(0x1b1)],_0x1ea7a3[_0x3b2561(0x1b1)])?fs['mkdirSync'](_0x1bf159):_0x3ad33d=_0x41732c['parse'](_0x1d47e9[_0x3b2561(0x1c3)](_0x137e48,_0x1ea7a3[_0x3b2561(0x1db)])));let _0x5fbc77,_0x20e496;process[_0x3b2561(0x18c)][_0x3b2561(0x1a9)]&&(_0x1ea7a3[_0x3b2561(0x1b4)](_0x1ea7a3[_0x3b2561(0x1ce)],_0x1ea7a3[_0x3b2561(0x17c)])?_0x5fbc77=process[_0x3b2561(0x18c)]['BROWSERSTACK_USERNAME']:_0x271ff6=_0x1db4fb['env']['BROWSERSTACK_ACCESS_KEY']);process[_0x3b2561(0x18c)]['BROWSERSTACK_ACCESS_KEY']&&(_0x1ea7a3[_0x3b2561(0x1cd)](_0x1ea7a3[_0x3b2561(0x177)],_0x1ea7a3['WxqJI'])?_0x20e496=process[_0x3b2561(0x18c)][_0x3b2561(0x1c8)]:_0x5a3d36=_0xb1bb5d['bstackUsername']);_0x1e410c['bstackUsername']&&(_0x1ea7a3['qEIuC'](_0x1ea7a3[_0x3b2561(0x182)],_0x1ea7a3[_0x3b2561(0x182)])?_0x3bfed9=!![]:_0x5fbc77=_0x1e410c[_0x3b2561(0x18f)]);_0x1e410c[_0x3b2561(0x1e1)]&&(_0x1ea7a3[_0x3b2561(0x1df)](_0x1ea7a3[_0x3b2561(0x1b3)],_0x1ea7a3[_0x3b2561(0x1bd)])?_0x20e496=_0x1e410c[_0x3b2561(0x1e1)]:_0x5f015d['mkdirSync'](_0x2092dc));if(_0x1ea7a3[_0x3b2561(0x1be)](_0x5fbc77,undefined)||_0x1ea7a3['Qijzh'](_0x20e496,undefined)){if(_0x1ea7a3[_0x3b2561(0x1d4)](_0x1ea7a3[_0x3b2561(0x1c7)],_0x1ea7a3[_0x3b2561(0x1c7)])){logger['debug'](_0x1ea7a3[_0x3b2561(0x175)]);const [_0x1ee88c,_0x51fd37]=await _0x1ea7a3[_0x3b2561(0x1c4)](inputBstackKeys);_0x5fbc77=_0x1ee88c,_0x20e496=_0x51fd37;}else{const _0x2b60c8={};_0x2b60c8[_0x3b2561(0x1a6)]=_0x1ea7a3[_0x3b2561(0x1c1)],_0x2b60c8[_0x3b2561(0x1a1)]=_0x1ea7a3['QynUv'];const _0x4468cb={};_0x4468cb['description']=_0x1ea7a3['lNBdn'],_0x4468cb[_0x3b2561(0x1a1)]=_0x1ea7a3['QynUv'];const _0x2a669b={};return _0x2a669b[_0x3b2561(0x1b5)]=_0x2b60c8,_0x2a669b[_0x3b2561(0x17d)]=_0x4468cb,_0x59b389[_0x3b2561(0x1a8)](_0xd13bc2[_0x3b2561(0x174)])[_0x3b2561(0x19d)](_0x27dd22)[_0x3b2561(0x1c6)](_0x2a669b)[_0x3b2561(0x189)]()[_0x3b2561(0x1dc)]()['help'](_0x1ea7a3['YJnle'])['argv'];}}let _0x245be2=![];const _0x1c51f7=_0x3b2561(0x1e0)+_0x5fbc77+':'+_0x20e496+'@'+BS_API_URL+_0x3b2561(0x17b),_0xd43809={'method':_0x1ea7a3[_0x3b2561(0x1b8)],'headers':_0x1ea7a3[_0x3b2561(0x1aa)](getAuthHeader,_0x5fbc77,_0x20e496),'throwHttpErrors':![]},_0x1a5ffb=await _0x1ea7a3['bLkAI'](got,_0x1c51f7,_0xd43809);_0x1ea7a3[_0x3b2561(0x1b4)](_0x1a5ffb,null)&&_0x1ea7a3[_0x3b2561(0x1d1)](_0x1a5ffb,undefined)&&_0x1ea7a3[_0x3b2561(0x199)](_0x1a5ffb[_0x3b2561(0x1bb)],0xc8)&&(_0x1ea7a3[_0x3b2561(0x184)](_0x1ea7a3[_0x3b2561(0x1d7)],_0x1ea7a3[_0x3b2561(0x1b2)])?_0x245be2=!![]:_0x145dc3=_0x2a5b42[_0x3b2561(0x18c)][_0x3b2561(0x1a9)]);if(_0x245be2){if(_0x1ea7a3[_0x3b2561(0x1c0)](_0x1ea7a3['POGHv'],_0x1ea7a3[_0x3b2561(0x195)])){let _0x54955e={};const _0x4297fd=_0x1ea7a3[_0x3b2561(0x1d5)](getCredentialsPath);fs[_0x3b2561(0x188)](_0x4297fd)&&(_0x1ea7a3[_0x3b2561(0x179)](_0x1ea7a3[_0x3b2561(0x1a3)],_0x1ea7a3[_0x3b2561(0x1a3)])?_0x53e17b=_0x39b83e[_0x3b2561(0x1e1)]:_0x54955e=JSON['parse'](fs[_0x3b2561(0x1c3)](_0x4297fd,_0x1ea7a3['kxhMT'])));const _0x4593bc={};_0x4593bc['username']=_0x5fbc77,_0x4593bc[_0x3b2561(0x183)]=_0x20e496,_0x54955e[_0x3b2561(0x1b6)]=_0x4593bc,fs[_0x3b2561(0x17e)](_0x4297fd,JSON[_0x3b2561(0x1b9)](_0x54955e)),process['exit'](0x0);}else{let _0x99d009={};const _0x1f2bf1=_0x1ea7a3[_0x3b2561(0x1c4)](_0x2a95c6);_0x259bb2['existsSync'](_0x1f2bf1)&&(_0x99d009=_0x58d385[_0x3b2561(0x1bc)](_0x791a5e['readFileSync'](_0x1f2bf1,_0x1ea7a3[_0x3b2561(0x1db)])));const _0x5d95f8={};_0x5d95f8[_0x3b2561(0x1b0)]=_0xf03273,_0x5d95f8[_0x3b2561(0x183)]=_0x1fc39e,_0x99d009[_0x3b2561(0x1b6)]=_0x5d95f8,_0x399844[_0x3b2561(0x17e)](_0x1f2bf1,_0x7177fb[_0x3b2561(0x1b9)](_0x99d009)),_0x5af589[_0x3b2561(0x1a5)](0x0);}}else logger['error'](_0x1ea7a3[_0x3b2561(0x1d6)]),await _0x1ea7a3[_0x3b2561(0x1a2)](sendInstrumentationEvent,_0x1e410c,_0x1ea7a3[_0x3b2561(0x1d0)],messageTypes['ERROR'],_0x1ea7a3[_0x3b2561(0x18a)],null,_0x1e410c),process['exit'](0x1);}catch(_0x1ad9ce){logger[_0x3b2561(0x17f)](_0x1ad9ce['stack']),await _0x1ea7a3[_0x3b2561(0x1b7)](sendInstrumentationEvent,_0x1e410c,_0x1ea7a3[_0x3b2561(0x1d0)],messageTypes[_0x3b2561(0x17a)],_0x1ea7a3['xPHNW'],_0x1ad9ce,_0x1e410c),process[_0x3b2561(0x1a5)](0x1);}};
1
+ const a12_0x45bbb7=a12_0x3e63;function a12_0x3e63(_0x3ca7f5,_0x12b725){const _0x589ae3=a12_0x589a();return a12_0x3e63=function(_0x3e63ac,_0x38147e){_0x3e63ac=_0x3e63ac-0xed;let _0x4711d4=_0x589ae3[_0x3e63ac];return _0x4711d4;},a12_0x3e63(_0x3ca7f5,_0x12b725);}function a12_0x589a(){const _0x2e7404=['oCbUQ','bibmz','description','options','mkdirSync','stringify','init','UCQhW','error','FtHeD','ERROR','3tKfjwo','wdprE','/automate/plan.json','yStas','ZpFQF','EGZhB','env','QWbAQ','Mbbin','ENVGh','statusCode','writeFileSync','bstack-username','AhxwC','recommendCommands','KpAGr','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','Pxwdw','YtBRk','AxmrA','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','https://','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','type','strict','help','224CBVWeO','command','exit','10797584bYObXA','cZNtV','unknown-error','2870548JcUdvz','Rpabn','bstackUsername','Browserstack','OymZb','NHyOV','rjNWL','bstackAccesskey','password','util','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','150768eHGdVH','wrong-creds','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','aTTkO','1485768dvBoCE','iHNqZ','usage','15363765nqUpEU','../utils/userInput','GET','epilogue','mZvHL','bstack-accesskey','YhQnd','debug','parse','CyKon','utf-8','mhoej','readFileSync','qLqmD','DKPCb','pZUmz','INFO','RbSFN','EiqbY','../utils/utilityMethods','WizbT','argv','JRnka','BROWSERSTACK_USERNAME','IQDar','SKgXL','requestId','string','../utils/instrumentationUtils','BROWSERSTACK_ACCESS_KEY','desc','4925950cNDahT','qoKSK','392048noknKr','lqeCa','MsnLG','NPimr','existsSync','wDhbn'];a12_0x589a=function(){return _0x2e7404;};return a12_0x589a();}(function(_0x29c04b,_0x2c535f){const _0x1f56d1=a12_0x3e63,_0x104d37=_0x29c04b();while(!![]){try{const _0x1c63ed=parseInt(_0x1f56d1(0x14f))/0x1+-parseInt(_0x1f56d1(0x12b))/0x2+parseInt(_0x1f56d1(0xfc))/0x3*(parseInt(_0x1f56d1(0x11c))/0x4)+parseInt(_0x1f56d1(0x14d))/0x5+-parseInt(_0x1f56d1(0x127))/0x6*(parseInt(_0x1f56d1(0x116))/0x7)+-parseInt(_0x1f56d1(0x119))/0x8+parseInt(_0x1f56d1(0x12e))/0x9;if(_0x1c63ed===_0x2c535f)break;else _0x104d37['push'](_0x104d37['shift']());}catch(_0x2155f4){_0x104d37['push'](_0x104d37['shift']());}}}(a12_0x589a,0xdd042));const fs=require('fs'),util=require(a12_0x45bbb7(0x125)),got=require('got'),{v4:uuidv4}=require('uuid'),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x45bbb7(0x12f)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x45bbb7(0x141)),{sendInstrumentationEvent}=require(a12_0x45bbb7(0x14a));exports[a12_0x45bbb7(0x117)]=a12_0x45bbb7(0xf7),exports[a12_0x45bbb7(0x14c)]=a12_0x45bbb7(0x10c),exports['builder']=function(_0x40eb87){const _0x13f7b8=a12_0x45bbb7,_0x520dc9={};_0x520dc9['IWhDM']=_0x13f7b8(0x112),_0x520dc9[_0x13f7b8(0x139)]=_0x13f7b8(0x149),_0x520dc9[_0x13f7b8(0x142)]=_0x13f7b8(0x129),_0x520dc9[_0x13f7b8(0x11a)]=_0x13f7b8(0x115);const _0x547483=_0x520dc9,_0x19ba91={};_0x19ba91[_0x13f7b8(0xf3)]=_0x547483['IWhDM'],_0x19ba91['type']=_0x547483[_0x13f7b8(0x139)];const _0x135616={};_0x135616[_0x13f7b8(0xf3)]=_0x547483['WizbT'],_0x135616[_0x13f7b8(0x113)]=_0x547483[_0x13f7b8(0x139)];const _0x5a292e={};return _0x5a292e[_0x13f7b8(0x108)]=_0x19ba91,_0x5a292e[_0x13f7b8(0x133)]=_0x135616,_0x40eb87[_0x13f7b8(0x12d)](HELP_HEADER_MESSAGE['init'])[_0x13f7b8(0x131)](HELP_FOOTER_MESSAGE)['options'](_0x5a292e)[_0x13f7b8(0x10a)]()[_0x13f7b8(0x114)]()[_0x13f7b8(0x115)](_0x547483[_0x13f7b8(0x11a)])[_0x13f7b8(0x143)];},exports['handler']=async function(_0x306702){const _0x5cfe61=a12_0x45bbb7,_0x53ab21={'wdprE':_0x5cfe61(0x112),'yStas':_0x5cfe61(0x149),'IQDar':_0x5cfe61(0x129),'iHNqZ':'help','JRnka':function(_0x4057d0){return _0x4057d0();},'KpAGr':_0x5cfe61(0x138),'mZvHL':function(_0x2643e5,_0x56c268,_0x38b697,_0x4d9d53,_0x555450,_0xb1b615,_0x200d04){return _0x2643e5(_0x56c268,_0x38b697,_0x4d9d53,_0x555450,_0xb1b615,_0x200d04);},'CyKon':'init-called','wDhbn':function(_0x1bd356,_0x683717){return _0x1bd356!==_0x683717;},'SKgXL':_0x5cfe61(0x10e),'ABLIX':'nUejQ','EGZhB':function(_0x2e01cd,_0x3149c5){return _0x2e01cd===_0x3149c5;},'ZpFQF':'fCSHV','Pxwdw':function(_0x1f8cea,_0x59a244){return _0x1f8cea!==_0x59a244;},'DKPCb':'lmJhH','AhxwC':_0x5cfe61(0x150),'aTTkO':'AykEy','rjNWL':_0x5cfe61(0xfa),'NHyOV':function(_0x167f88,_0x4cfc7e){return _0x167f88===_0x4cfc7e;},'Luwjn':function(_0x1a34cc,_0x1ef5b9){return _0x1a34cc===_0x1ef5b9;},'YhQnd':_0x5cfe61(0xf2),'uiFJr':_0x5cfe61(0x110),'EiqbY':_0x5cfe61(0x130),'oCbUQ':function(_0x31ed12,_0x43561b,_0xa62eb6){return _0x31ed12(_0x43561b,_0xa62eb6);},'Rpabn':function(_0x20adc2,_0x1e84b4,_0xe94496){return _0x20adc2(_0x1e84b4,_0xe94496);},'GwsbJ':function(_0x15172b,_0x249da5){return _0x15172b!==_0x249da5;},'NPimr':function(_0x292608,_0x580bc9){return _0x292608!==_0x580bc9;},'QWbAQ':_0x5cfe61(0x10f),'pZUmz':function(_0x57c121,_0x1a8bf1){return _0x57c121===_0x1a8bf1;},'MsnLG':_0x5cfe61(0x120),'ENVGh':function(_0x2abdf3){return _0x2abdf3();},'Mbbin':function(_0x44a8a2,_0x544343){return _0x44a8a2===_0x544343;},'qLqmD':_0x5cfe61(0x13f),'Qkkiy':_0x5cfe61(0x126),'UCQhW':function(_0x27033d,_0x4e4e88,_0x57934a,_0xe42846,_0x3c50bd,_0x28c582,_0x5b98bb){return _0x27033d(_0x4e4e88,_0x57934a,_0xe42846,_0x3c50bd,_0x28c582,_0x5b98bb);},'qoKSK':_0x5cfe61(0x128),'vhuyT':_0x5cfe61(0x11b)};try{global_registry[_0x5cfe61(0x148)]=_0x53ab21['JRnka'](uuidv4),_0x53ab21[_0x5cfe61(0x132)](sendInstrumentationEvent,_0x306702,_0x53ab21[_0x5cfe61(0x137)],messageTypes[_0x5cfe61(0x13e)],null,null,_0x306702);const _0x30c5d2=_0x53ab21[_0x5cfe61(0x144)](getDirForConfig);!fs[_0x5cfe61(0xef)](_0x30c5d2)&&(_0x53ab21['wDhbn'](_0x53ab21[_0x5cfe61(0x147)],_0x53ab21['ABLIX'])?fs['mkdirSync'](_0x30c5d2):_0x197c07[_0x5cfe61(0xf5)](_0x5f192a));let _0x28ea47,_0x1b8934;process[_0x5cfe61(0x102)]['BROWSERSTACK_USERNAME']&&(_0x53ab21[_0x5cfe61(0x101)](_0x53ab21[_0x5cfe61(0x100)],_0x53ab21[_0x5cfe61(0x100)])?_0x28ea47=process[_0x5cfe61(0x102)]['BROWSERSTACK_USERNAME']:_0x54780c=_0x59003e[_0x5cfe61(0x123)]);if(process[_0x5cfe61(0x102)]['BROWSERSTACK_ACCESS_KEY']){if(_0x53ab21[_0x5cfe61(0x10d)](_0x53ab21[_0x5cfe61(0x13c)],_0x53ab21['DKPCb'])){const _0x28e4f0={};_0x28e4f0[_0x5cfe61(0xf3)]=_0x53ab21[_0x5cfe61(0xfd)],_0x28e4f0[_0x5cfe61(0x113)]=_0x53ab21[_0x5cfe61(0xff)];const _0x1e11e1={};_0x1e11e1[_0x5cfe61(0xf3)]=_0x53ab21[_0x5cfe61(0x146)],_0x1e11e1[_0x5cfe61(0x113)]=_0x53ab21[_0x5cfe61(0xff)];const _0x633d6={};return _0x633d6[_0x5cfe61(0x108)]=_0x28e4f0,_0x633d6[_0x5cfe61(0x133)]=_0x1e11e1,_0x304160[_0x5cfe61(0x12d)](_0x5fdf1f[_0x5cfe61(0xf7)])[_0x5cfe61(0x131)](_0x3a889e)[_0x5cfe61(0xf4)](_0x633d6)[_0x5cfe61(0x10a)]()[_0x5cfe61(0x114)]()[_0x5cfe61(0x115)](_0x53ab21[_0x5cfe61(0x12c)])[_0x5cfe61(0x143)];}else _0x1b8934=process[_0x5cfe61(0x102)][_0x5cfe61(0x14b)];}_0x306702[_0x5cfe61(0x11e)]&&(_0x53ab21[_0x5cfe61(0x101)](_0x53ab21[_0x5cfe61(0x109)],_0x53ab21[_0x5cfe61(0x12a)])?_0x1eab6c=_0x521aaa[_0x5cfe61(0x11e)]:_0x28ea47=_0x306702[_0x5cfe61(0x11e)]);if(_0x306702[_0x5cfe61(0x123)]){if(_0x53ab21[_0x5cfe61(0x10d)](_0x53ab21[_0x5cfe61(0x122)],_0x53ab21['rjNWL'])){let _0x51da20={};const _0xe37afb=_0x53ab21[_0x5cfe61(0x144)](_0x39da6f);_0x1638b3[_0x5cfe61(0xef)](_0xe37afb)&&(_0x51da20=_0x35628c[_0x5cfe61(0x136)](_0x27481a[_0x5cfe61(0x13a)](_0xe37afb,_0x53ab21[_0x5cfe61(0x10b)])));const _0x1013c2={};_0x1013c2['username']=_0x4ecedf,_0x1013c2[_0x5cfe61(0x124)]=_0x515b8e,_0x51da20[_0x5cfe61(0x11f)]=_0x1013c2,_0x151a32[_0x5cfe61(0x107)](_0xe37afb,_0x39080c[_0x5cfe61(0xf6)](_0x51da20)),_0x3d19c0[_0x5cfe61(0x118)](0x0);}else _0x1b8934=_0x306702['bstackAccesskey'];}if(_0x53ab21[_0x5cfe61(0x121)](_0x28ea47,undefined)||_0x53ab21['Luwjn'](_0x1b8934,undefined)){if(_0x53ab21[_0x5cfe61(0x10d)](_0x53ab21[_0x5cfe61(0x134)],_0x53ab21[_0x5cfe61(0x134)]))_0x16a371=!![];else{logger[_0x5cfe61(0x135)](_0x53ab21['uiFJr']);const [_0x233ae7,_0x459156]=await _0x53ab21[_0x5cfe61(0x144)](inputBstackKeys);_0x28ea47=_0x233ae7,_0x1b8934=_0x459156;}}let _0x50cfb2=![];const _0x5f5c15=_0x5cfe61(0x111)+_0x28ea47+':'+_0x1b8934+'@'+BS_API_URL+_0x5cfe61(0xfe),_0x11fa73={'method':_0x53ab21[_0x5cfe61(0x140)],'headers':_0x53ab21[_0x5cfe61(0xf1)](getAuthHeader,_0x28ea47,_0x1b8934),'throwHttpErrors':![]},_0x1b400=await _0x53ab21[_0x5cfe61(0x11d)](got,_0x5f5c15,_0x11fa73);_0x53ab21[_0x5cfe61(0xf0)](_0x1b400,null)&&_0x53ab21['GwsbJ'](_0x1b400,undefined)&&_0x53ab21[_0x5cfe61(0x101)](_0x1b400[_0x5cfe61(0x106)],0xc8)&&(_0x53ab21[_0x5cfe61(0xee)](_0x53ab21[_0x5cfe61(0x103)],_0x53ab21[_0x5cfe61(0x103)])?_0x21949c=_0x70b90e[_0x5cfe61(0x102)][_0x5cfe61(0x145)]:_0x50cfb2=!![]);if(_0x50cfb2){if(_0x53ab21[_0x5cfe61(0x13d)](_0x53ab21[_0x5cfe61(0xed)],_0x53ab21['MsnLG'])){let _0xfde86a={};const _0x595650=_0x53ab21[_0x5cfe61(0x105)](getCredentialsPath);fs[_0x5cfe61(0xef)](_0x595650)&&(_0x53ab21[_0x5cfe61(0x104)](_0x53ab21[_0x5cfe61(0x13b)],_0x53ab21['qLqmD'])?_0xfde86a=JSON[_0x5cfe61(0x136)](fs['readFileSync'](_0x595650,_0x53ab21[_0x5cfe61(0x10b)])):_0x2ac32d=_0x50975c[_0x5cfe61(0x102)][_0x5cfe61(0x14b)]);const _0x220b5a={};_0x220b5a['username']=_0x28ea47,_0x220b5a[_0x5cfe61(0x124)]=_0x1b8934,_0xfde86a[_0x5cfe61(0x11f)]=_0x220b5a,fs[_0x5cfe61(0x107)](_0x595650,JSON[_0x5cfe61(0xf6)](_0xfde86a)),process[_0x5cfe61(0x118)](0x0);}else _0x460d2d=_0x12ea26[_0x5cfe61(0x136)](_0x28997e[_0x5cfe61(0x13a)](_0x3c9921,_0x53ab21[_0x5cfe61(0x10b)]));}else logger[_0x5cfe61(0xf9)](_0x53ab21['Qkkiy']),await _0x53ab21[_0x5cfe61(0xf8)](sendInstrumentationEvent,_0x306702,_0x53ab21[_0x5cfe61(0x137)],messageTypes['ERROR'],_0x53ab21[_0x5cfe61(0x14e)],null,_0x306702),process[_0x5cfe61(0x118)](0x1);}catch(_0x34ba1a){logger[_0x5cfe61(0xf9)](_0x34ba1a['stack']),await _0x53ab21[_0x5cfe61(0x132)](sendInstrumentationEvent,_0x306702,_0x53ab21[_0x5cfe61(0x137)],messageTypes[_0x5cfe61(0xfb)],_0x53ab21['vhuyT'],_0x34ba1a,_0x306702),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a13_0x51ed(_0x13e525,_0x489ff1){const _0x516a08=a13_0x516a();return a13_0x51ed=function(_0x51ed07,_0x4f9ca5){_0x51ed07=_0x51ed07-0x1e3;let _0xcb87da=_0x516a08[_0x51ed07];return _0xcb87da;},a13_0x51ed(_0x13e525,_0x489ff1);}const a13_0x78e871=a13_0x51ed;(function(_0xdaa74d,_0x153a7a){const _0x49e6d4=a13_0x51ed,_0x321583=_0xdaa74d();while(!![]){try{const _0x2d2e23=-parseInt(_0x49e6d4(0x1f2))/0x1*(-parseInt(_0x49e6d4(0x1f8))/0x2)+parseInt(_0x49e6d4(0x1e9))/0x3*(-parseInt(_0x49e6d4(0x1f9))/0x4)+-parseInt(_0x49e6d4(0x1ef))/0x5*(-parseInt(_0x49e6d4(0x1e3))/0x6)+parseInt(_0x49e6d4(0x1fa))/0x7*(-parseInt(_0x49e6d4(0x1ed))/0x8)+-parseInt(_0x49e6d4(0x1f6))/0x9*(parseInt(_0x49e6d4(0x1fb))/0xa)+parseInt(_0x49e6d4(0x1f1))/0xb+-parseInt(_0x49e6d4(0x1f0))/0xc;if(_0x2d2e23===_0x153a7a)break;else _0x321583['push'](_0x321583['shift']());}catch(_0x19f4e8){_0x321583['push'](_0x321583['shift']());}}}(a13_0x516a,0x56078));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x78e871(0x1ee));function a13_0x516a(){const _0x5bd75a=['epilogue','3735zkcMQV','BVOYs','8WhmBqp','264KdcGfk','7uhhctz','2660pkBWsq','usage','command','TTOtp','2751858dBaNyD','strict','demandCommand','builder','handler','commandDir','633LroEoP','list','desc','help','864328xYWQcH','../config/constants','5zfwnlQ','2851224NVXbDT','3498044njCduf','11422VppxoE','root','recommendCommands'];a13_0x516a=function(){return _0x5bd75a;};return a13_0x516a();}exports[a13_0x78e871(0x1fd)]=a13_0x78e871(0x1ea),exports[a13_0x78e871(0x1eb)]='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0x78e871(0x1e6)]=function(_0x3a7839){const _0x3f406a=a13_0x78e871,_0x5d5a92={};_0x5d5a92['BVOYs']='list_commands',_0x5d5a92[_0x3f406a(0x1fe)]=_0x3f406a(0x1ec);const _0x26bb16=_0x5d5a92;return _0x3a7839[_0x3f406a(0x1e8)](_0x26bb16[_0x3f406a(0x1f7)])[_0x3f406a(0x1e5)]()[_0x3f406a(0x1fc)](HELP_HEADER_MESSAGE[_0x3f406a(0x1ea)][_0x3f406a(0x1f3)])[_0x3f406a(0x1f5)](HELP_FOOTER_MESSAGE)[_0x3f406a(0x1f4)]()[_0x3f406a(0x1e4)]()[_0x3f406a(0x1ec)](_0x26bb16[_0x3f406a(0x1fe)]);},exports[a13_0x78e871(0x1e7)]=function(_0x41fe93){};
1
+ const a13_0x6c86ed=a13_0x1f5b;(function(_0x115054,_0x355e00){const _0x177712=a13_0x1f5b,_0x44c825=_0x115054();while(!![]){try{const _0x2b0693=-parseInt(_0x177712(0x16c))/0x1+-parseInt(_0x177712(0x15f))/0x2+-parseInt(_0x177712(0x16b))/0x3*(-parseInt(_0x177712(0x171))/0x4)+parseInt(_0x177712(0x167))/0x5+parseInt(_0x177712(0x172))/0x6*(parseInt(_0x177712(0x162))/0x7)+-parseInt(_0x177712(0x168))/0x8+-parseInt(_0x177712(0x165))/0x9*(-parseInt(_0x177712(0x166))/0xa);if(_0x2b0693===_0x355e00)break;else _0x44c825['push'](_0x44c825['shift']());}catch(_0x2fd41a){_0x44c825['push'](_0x44c825['shift']());}}}(a13_0x558a,0x8fa39));function a13_0x558a(){const _0x3f967b=['root','handler','usage','strict','4wiBPWl','1935156fdcAYd','help','List\x20down\x20the\x20Grid\x20resources.','command','epilogue','builder','907260BDQmXv','desc','list','7OIqPjG','../config/constants','recommendCommands','9YsUJAM','4259410rffgAe','2631980mZCkaB','8165088sLHXMG','commandDir','MWCfr','2714979aeGFTE','117245EciqjW'];a13_0x558a=function(){return _0x3f967b;};return a13_0x558a();}function a13_0x1f5b(_0x2d0c44,_0x3cd620){const _0x558a0d=a13_0x558a();return a13_0x1f5b=function(_0x1f5b0c,_0x7999b5){_0x1f5b0c=_0x1f5b0c-0x15a;let _0x59e58d=_0x558a0d[_0x1f5b0c];return _0x59e58d;},a13_0x1f5b(_0x2d0c44,_0x3cd620);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x6c86ed(0x163));exports[a13_0x6c86ed(0x15c)]='list',exports[a13_0x6c86ed(0x160)]=a13_0x6c86ed(0x15b),exports[a13_0x6c86ed(0x15e)]=function(_0x5e239c){const _0x2d86b5=a13_0x6c86ed,_0x29d5e4={};_0x29d5e4['QRBSS']='list_commands',_0x29d5e4[_0x2d86b5(0x16a)]=_0x2d86b5(0x15a);const _0x46f550=_0x29d5e4;return _0x5e239c[_0x2d86b5(0x169)](_0x46f550['QRBSS'])['demandCommand']()[_0x2d86b5(0x16f)](HELP_HEADER_MESSAGE[_0x2d86b5(0x161)][_0x2d86b5(0x16d)])[_0x2d86b5(0x15d)](HELP_FOOTER_MESSAGE)[_0x2d86b5(0x164)]()[_0x2d86b5(0x170)]()[_0x2d86b5(0x15a)](_0x46f550['MWCfr']);},exports[a13_0x6c86ed(0x16e)]=function(_0x1de189){};
@@ -1 +1 @@
1
- const a14_0x1874a0=a14_0x37de;(function(_0xe0acdd,_0x4489c8){const _0x4a5178=a14_0x37de,_0x4c7f5b=_0xe0acdd();while(!![]){try{const _0x3114f0=-parseInt(_0x4a5178(0xd7))/0x1*(parseInt(_0x4a5178(0xb6))/0x2)+-parseInt(_0x4a5178(0xa7))/0x3*(parseInt(_0x4a5178(0xb7))/0x4)+-parseInt(_0x4a5178(0xa3))/0x5*(parseInt(_0x4a5178(0xdd))/0x6)+parseInt(_0x4a5178(0xc2))/0x7+-parseInt(_0x4a5178(0xbe))/0x8*(parseInt(_0x4a5178(0xc3))/0x9)+-parseInt(_0x4a5178(0xdb))/0xa+parseInt(_0x4a5178(0xab))/0xb;if(_0x3114f0===_0x4489c8)break;else _0x4c7f5b['push'](_0x4c7f5b['shift']());}catch(_0x5b87c8){_0x4c7f5b['push'](_0x4c7f5b['shift']());}}}(a14_0x5ecc,0x35d81));function a14_0x37de(_0xb5ee11,_0x287c5a){const _0x5ecc77=a14_0x5ecc();return a14_0x37de=function(_0x37de48,_0x4943db){_0x37de48=_0x37de48-0x97;let _0x60ea6d=_0x5ecc77[_0x37de48];return _0x60ea6d;},a14_0x37de(_0xb5ee11,_0x287c5a);}const fs=require('fs'),got=require(a14_0x1874a0(0xb3)),{table}=require(a14_0x1874a0(0xd3)),{v4:uuidv4}=require(a14_0x1874a0(0xac)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x1874a0(0xe9)),{getCredentialsPath,getAuthHeader}=require(a14_0x1874a0(0xde)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a14_0x5ecc(){const _0x3aef05=['VJTSN','378910cpEHQc','kVsVa','231108cVjGOD','../../utils/utilityMethods','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','aBRGE','options','argv','unauthorised','DTzYO','KacHq','init-not-called','CRpsY','statusCode','../../config/constants','cloud-provider','Browserstack','https://','list-grid-profiles-called','username','usage','ERROR','stringify','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','all-grid-profiles','name','epilogue','5UCKufE','BGeCE','stack','unknown-error','183EShLgc','desc','push','bstackUsername','12607408LpkhtI','uuid','allGridProfiles','eOCMm','agtDp','list','log','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','got','help','password','36LZZGso','14524wopddS','INFO','existsSync','concurrency','uErsw','error','clmdw','8FMDZuh','grid-profiles','kSuUo','requestId','854448tYWoXE','3468357awHwWz','CDihW','dgZYi','boolean','Failed\x20to\x20list\x20resources!\x20Error:\x20','region','LnMFs','bstackAccesskey','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','RUgkG','whAWX','jPRxf','BwlgM','/packages/cli/get-all-grid-profiles','forEach','description','table','gridProfile','rnPER','IKCLg','20243ODERQZ','exit','AzThT'];a14_0x5ecc=function(){return _0x3aef05;};return a14_0x5ecc();}exports['command']=a14_0x1874a0(0xbf),exports[a14_0x1874a0(0xa8)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x420fe1){const _0x4429c0=a14_0x1874a0,_0x3027d7={};_0x3027d7[_0x4429c0(0xaf)]=_0x4429c0(0xdf),_0x3027d7[_0x4429c0(0xcd)]=_0x4429c0(0xc6),_0x3027d7[_0x4429c0(0xc9)]='help';const _0xcc52f1=_0x3027d7,_0x5f415a={};_0x5f415a[_0x4429c0(0xd2)]=_0xcc52f1['agtDp'],_0x5f415a['type']=_0xcc52f1[_0x4429c0(0xcd)];const _0x236650={};return _0x236650[_0x4429c0(0xa0)]=_0x5f415a,_0x420fe1[_0x4429c0(0x9c)](HELP_HEADER_MESSAGE[_0x4429c0(0xb0)][_0x4429c0(0xd4)])[_0x4429c0(0xa2)](HELP_FOOTER_MESSAGE)[_0x4429c0(0xe1)](_0x236650)[_0x4429c0(0xb4)](_0xcc52f1[_0x4429c0(0xc9)])[_0x4429c0(0xe2)];},exports['handler']=async function(_0x426cae){const _0x22b5b7=a14_0x1874a0,_0x10c201={'rnPER':function(_0xa797d1){return _0xa797d1();},'DTzYO':_0x22b5b7(0xcb),'BwlgM':function(_0xf2eac9,_0x39a0b7,_0x3f8313,_0x3950f7,_0xdffc9a,_0x5d851f,_0x41b1af){return _0xf2eac9(_0x39a0b7,_0x3f8313,_0x3950f7,_0xdffc9a,_0x5d851f,_0x41b1af);},'kVsVa':_0x22b5b7(0x9a),'eOCMm':_0x22b5b7(0xe6),'clmdw':function(_0x3a7424){return _0x3a7424();},'VJTSN':'GET','BGeCE':function(_0x5be308,_0x370743,_0x333442){return _0x5be308(_0x370743,_0x333442);},'AzThT':function(_0x98cb58,_0x3e8f4a,_0x1554d8,_0x4ed19f,_0x5462a0,_0x4417bc,_0x553a1c){return _0x98cb58(_0x3e8f4a,_0x1554d8,_0x4ed19f,_0x5462a0,_0x4417bc,_0x553a1c);},'jPRxf':function(_0x3649ba,_0xa1f6d9){return _0x3649ba!==_0xa1f6d9;},'KacHq':function(_0x52dba9,_0x56b94b){return _0x52dba9!==_0x56b94b;},'uErsw':function(_0x3b45bf,_0x17bebd){return _0x3b45bf===_0x17bebd;},'RWuyI':_0x22b5b7(0x9f),'GzZVL':'grid-profile-name','dgZYi':_0x22b5b7(0x97),'kSuUo':_0x22b5b7(0xc8),'CDihW':_0x22b5b7(0xba),'IKCLg':function(_0x3f2169,_0xc118d5){return _0x3f2169(_0xc118d5);},'qTcrJ':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','CRpsY':function(_0x1cfcd8,_0xa54c0d,_0x5544ae,_0x23e45a,_0x22358a,_0x40d958,_0x1434fe){return _0x1cfcd8(_0xa54c0d,_0x5544ae,_0x23e45a,_0x22358a,_0x40d958,_0x1434fe);},'Uzzoq':_0x22b5b7(0xe3),'RUgkG':function(_0x37fb50,_0xefb12e,_0x5c6e57,_0x19d5e5,_0x3808ac,_0x24a6f6,_0x108b6c){return _0x37fb50(_0xefb12e,_0x5c6e57,_0x19d5e5,_0x3808ac,_0x24a6f6,_0x108b6c);},'FWuUZ':'server-error','nURjV':function(_0x170163,_0x2bf68d,_0x4fa66f,_0xd1875e,_0x183af2,_0x75bfff,_0x14e85c){return _0x170163(_0x2bf68d,_0x4fa66f,_0xd1875e,_0x183af2,_0x75bfff,_0x14e85c);},'aBRGE':_0x22b5b7(0xa6)};try{global_registry[_0x22b5b7(0xc1)]=_0x10c201[_0x22b5b7(0xd5)](uuidv4);let _0x2eca68=_0x22b5b7(0x99)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x426cae[_0x22b5b7(0xad)]&&(_0x2eca68=_0x22b5b7(0x99)+AG_API_URL+_0x22b5b7(0xd0));!fs[_0x22b5b7(0xb9)](_0x10c201['rnPER'](getCredentialsPath))&&(console[_0x22b5b7(0xbc)](_0x10c201[_0x22b5b7(0xe4)]),await _0x10c201[_0x22b5b7(0xcf)](sendInstrumentationEvent,_0x426cae,_0x10c201[_0x22b5b7(0xdc)],messageTypes[_0x22b5b7(0x9d)],_0x10c201[_0x22b5b7(0xae)],null,_0x426cae),process[_0x22b5b7(0xd8)](0x1));const _0x29b765=JSON['parse'](fs['readFileSync'](_0x10c201[_0x22b5b7(0xbd)](getCredentialsPath))),_0x382072={'method':_0x10c201[_0x22b5b7(0xda)],'headers':_0x10c201['BGeCE'](getAuthHeader,_0x29b765[_0x22b5b7(0x98)]['username'],_0x29b765[_0x22b5b7(0x98)][_0x22b5b7(0xb5)]),'throwHttpErrors':![]};global_registry[_0x22b5b7(0xaa)]=_0x29b765[_0x22b5b7(0x98)][_0x22b5b7(0x9b)],global_registry[_0x22b5b7(0xca)]=_0x29b765['Browserstack'][_0x22b5b7(0xb5)],_0x10c201[_0x22b5b7(0xd9)](sendInstrumentationEvent,_0x426cae,_0x10c201['kVsVa'],messageTypes[_0x22b5b7(0xb8)],null,null,_0x426cae);const _0x231b1e=await _0x10c201[_0x22b5b7(0xa4)](got,_0x2eca68,_0x382072);if(_0x10c201[_0x22b5b7(0xce)](_0x231b1e,null)&&_0x10c201[_0x22b5b7(0xe5)](_0x231b1e,undefined)&&_0x10c201[_0x22b5b7(0xbb)](_0x231b1e[_0x22b5b7(0xe8)],0xc8)){const _0x1d32ad=JSON['parse'](_0x231b1e['body']);console[_0x22b5b7(0xb1)](_0x10c201['RWuyI']);const _0x20ff15=[];_0x20ff15[_0x22b5b7(0xa9)]([_0x10c201['GzZVL'],_0x10c201[_0x22b5b7(0xc5)],_0x10c201[_0x22b5b7(0xc0)],_0x10c201[_0x22b5b7(0xc4)]]),_0x1d32ad[_0x22b5b7(0xd1)](_0xf0113a=>{const _0x5eec69=_0x22b5b7;_0x20ff15['push']([_0xf0113a[_0x5eec69(0xa1)],_0xf0113a['cloudProvider'],_0xf0113a[_0x5eec69(0xc8)],_0xf0113a['concurrency']]);}),console[_0x22b5b7(0xb1)](_0x10c201[_0x22b5b7(0xd6)](table,_0x20ff15)),process[_0x22b5b7(0xd8)](0x0);}_0x10c201[_0x22b5b7(0xbb)](_0x231b1e[_0x22b5b7(0xe8)],0x191)&&(console['error'](_0x10c201['qTcrJ']),await _0x10c201[_0x22b5b7(0xe7)](sendInstrumentationEvent,_0x426cae,_0x10c201['kVsVa'],messageTypes['ERROR'],_0x10c201['Uzzoq'],null,_0x426cae),process[_0x22b5b7(0xd8)](0x1)),console[_0x22b5b7(0xbc)](_0x22b5b7(0xb2)+JSON[_0x22b5b7(0x9e)](_0x231b1e)),await _0x10c201[_0x22b5b7(0xcc)](sendInstrumentationEvent,_0x426cae,_0x10c201[_0x22b5b7(0xdc)],messageTypes[_0x22b5b7(0x9d)],_0x10c201['FWuUZ'],_0x231b1e,_0x426cae),process[_0x22b5b7(0xd8)](0x1);}catch(_0x14ea4e){console[_0x22b5b7(0xbc)](_0x22b5b7(0xc7)+_0x14ea4e[_0x22b5b7(0xa5)]),await _0x10c201['nURjV'](sendInstrumentationEvent,_0x426cae,_0x10c201[_0x22b5b7(0xdc)],messageTypes[_0x22b5b7(0x9d)],_0x10c201[_0x22b5b7(0xe0)],_0x14ea4e,_0x426cae),process[_0x22b5b7(0xd8)](0x1);}};
1
+ const a14_0x866a03=a14_0x4feb;function a14_0x88c6(){const _0x3e060b=['../../config/constants','cloud-provider','desc','body','89568MBfcxC','list','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','readFileSync','../../utils/instrumentationUtils','builder','xIOCT','../../utils/utilityMethods','INFO','error','996DXYvFe','Browserstack','username','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','1411095JKgxeB','unauthorised','region','exit','log','options','rcbma','/packages/cli/get-grid-profiles','UscAh','ipMGw','zyrIV','argv','FbdVu','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','boCah','3027213EqcVBY','https://','BSnfy','existsSync','11145iVJGWV','bstackAccesskey','stringify','PyWWA','GET','cloudProvider','grid-profiles','zgZom','992UEfldw','statusCode','TuJrS','418760LMKLpj','ERROR','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','5195904qwGDuE','grid-profile-name','parse','EZMaM','got','forEach','name','AiFJg','bZEIR','OsVWK','NjwmA','concurrency','bstackUsername','VJXkv','list-grid-profiles-called','16aWQqBA','table','jVPvf','requestId','password','uuid','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','gridProfile','504UoFAID','allGridProfiles','description','ddCAt','/packages/cli/get-all-grid-profiles','type'];a14_0x88c6=function(){return _0x3e060b;};return a14_0x88c6();}function a14_0x4feb(_0xf1a92e,_0x15f7f1){const _0x88c670=a14_0x88c6();return a14_0x4feb=function(_0x4feb6e,_0x555d70){_0x4feb6e=_0x4feb6e-0x140;let _0x38dee2=_0x88c670[_0x4feb6e];return _0x38dee2;},a14_0x4feb(_0xf1a92e,_0x15f7f1);}(function(_0x23b67d,_0x3ccbcd){const _0x567309=a14_0x4feb,_0x4be658=_0x23b67d();while(!![]){try{const _0x6957d9=parseInt(_0x567309(0x167))/0x1*(parseInt(_0x567309(0x148))/0x2)+parseInt(_0x567309(0x15b))/0x3+-parseInt(_0x567309(0x16d))/0x4+parseInt(_0x567309(0x15f))/0x5*(parseInt(_0x567309(0x184))/0x6)+-parseInt(_0x567309(0x14c))/0x7*(-parseInt(_0x567309(0x17c))/0x8)+-parseInt(_0x567309(0x18e))/0x9+-parseInt(_0x567309(0x16a))/0xa;if(_0x6957d9===_0x3ccbcd)break;else _0x4be658['push'](_0x4be658['shift']());}catch(_0x56a022){_0x4be658['push'](_0x4be658['shift']());}}}(a14_0x88c6,0xb5521));const fs=require('fs'),got=require(a14_0x866a03(0x171)),{table}=require(a14_0x866a03(0x17d)),{v4:uuidv4}=require(a14_0x866a03(0x181)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x866a03(0x18a)),{getCredentialsPath,getAuthHeader}=require(a14_0x866a03(0x145)),{sendInstrumentationEvent}=require(a14_0x866a03(0x142));exports['command']=a14_0x866a03(0x165),exports[a14_0x866a03(0x18c)]=a14_0x866a03(0x16c),exports[a14_0x866a03(0x143)]=function(_0x23320a){const _0x39bfaf=a14_0x866a03,_0x2f0fff={};_0x2f0fff[_0x39bfaf(0x169)]=_0x39bfaf(0x140),_0x2f0fff['FbdVu']='boolean',_0x2f0fff[_0x39bfaf(0x15d)]='help';const _0xa5362e=_0x2f0fff,_0x1d9400={};_0x1d9400[_0x39bfaf(0x186)]=_0xa5362e[_0x39bfaf(0x169)],_0x1d9400[_0x39bfaf(0x189)]=_0xa5362e[_0x39bfaf(0x158)];const _0x4fbef9={};return _0x4fbef9['all-grid-profiles']=_0x1d9400,_0x23320a['usage'](HELP_HEADER_MESSAGE[_0x39bfaf(0x18f)][_0x39bfaf(0x183)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x39bfaf(0x151)](_0x4fbef9)['help'](_0xa5362e[_0x39bfaf(0x15d)])[_0x39bfaf(0x157)];},exports['handler']=async function(_0x5f5915){const _0x4fdbfb=a14_0x866a03,_0x8ad840={'PyWWA':function(_0x7c302e){return _0x7c302e();},'BRTzL':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rcbma':function(_0x4f5461,_0x295ed6,_0x3cda46,_0x1f0210,_0x2cd1bb,_0x4bf1ad,_0x59c57e){return _0x4f5461(_0x295ed6,_0x3cda46,_0x1f0210,_0x2cd1bb,_0x4bf1ad,_0x59c57e);},'EZMaM':_0x4fdbfb(0x17b),'ipMGw':'init-not-called','NjwmA':function(_0xc05d99){return _0xc05d99();},'xIOCT':_0x4fdbfb(0x163),'zyrIV':function(_0xf2f29d,_0x90fc1c,_0x2fa631){return _0xf2f29d(_0x90fc1c,_0x2fa631);},'mqRVo':function(_0x9ce08d,_0x46eb3c,_0x320f01){return _0x9ce08d(_0x46eb3c,_0x320f01);},'VJXkv':function(_0x5dd4e7,_0x577a8f){return _0x5dd4e7!==_0x577a8f;},'VHApY':function(_0x197f9e,_0x4e3906){return _0x197f9e===_0x4e3906;},'bZEIR':_0x4fdbfb(0x14b),'UscAh':_0x4fdbfb(0x16e),'jNxeQ':_0x4fdbfb(0x18b),'AiFJg':_0x4fdbfb(0x14e),'boCah':_0x4fdbfb(0x178),'LHhxJ':function(_0x5ca413,_0x12d36a){return _0x5ca413(_0x12d36a);},'ddCAt':function(_0x4f5ff9,_0x587a7b){return _0x4f5ff9===_0x587a7b;},'YWkmI':_0x4fdbfb(0x182),'jVPvf':_0x4fdbfb(0x14d),'zgZom':'server-error','OsVWK':function(_0x38fb42,_0x5d20be,_0x28cb63,_0x28d5ee,_0x5e430d,_0x466cff,_0x41650c){return _0x38fb42(_0x5d20be,_0x28cb63,_0x28d5ee,_0x5e430d,_0x466cff,_0x41650c);},'FGYIn':'unknown-error'};try{global_registry[_0x4fdbfb(0x17f)]=_0x8ad840[_0x4fdbfb(0x162)](uuidv4);let _0x59cea7=_0x4fdbfb(0x15c)+AG_API_URL+_0x4fdbfb(0x153);_0x5f5915[_0x4fdbfb(0x185)]&&(_0x59cea7='https://'+AG_API_URL+_0x4fdbfb(0x188));!fs[_0x4fdbfb(0x15e)](_0x8ad840[_0x4fdbfb(0x162)](getCredentialsPath))&&(console['error'](_0x8ad840['BRTzL']),await _0x8ad840[_0x4fdbfb(0x152)](sendInstrumentationEvent,_0x5f5915,_0x8ad840['EZMaM'],messageTypes[_0x4fdbfb(0x16b)],_0x8ad840[_0x4fdbfb(0x155)],null,_0x5f5915),process[_0x4fdbfb(0x14f)](0x1));const _0x3c966b=JSON[_0x4fdbfb(0x16f)](fs[_0x4fdbfb(0x141)](_0x8ad840[_0x4fdbfb(0x177)](getCredentialsPath))),_0x3d8814={'method':_0x8ad840[_0x4fdbfb(0x144)],'headers':_0x8ad840[_0x4fdbfb(0x156)](getAuthHeader,_0x3c966b[_0x4fdbfb(0x149)]['username'],_0x3c966b[_0x4fdbfb(0x149)][_0x4fdbfb(0x180)]),'throwHttpErrors':![]};global_registry[_0x4fdbfb(0x179)]=_0x3c966b['Browserstack'][_0x4fdbfb(0x14a)],global_registry[_0x4fdbfb(0x160)]=_0x3c966b['Browserstack'][_0x4fdbfb(0x180)],_0x8ad840[_0x4fdbfb(0x152)](sendInstrumentationEvent,_0x5f5915,_0x8ad840[_0x4fdbfb(0x170)],messageTypes[_0x4fdbfb(0x146)],null,null,_0x5f5915);const _0x54e8d5=await _0x8ad840['mqRVo'](got,_0x59cea7,_0x3d8814);if(_0x8ad840[_0x4fdbfb(0x17a)](_0x54e8d5,null)&&_0x8ad840[_0x4fdbfb(0x17a)](_0x54e8d5,undefined)&&_0x8ad840['VHApY'](_0x54e8d5[_0x4fdbfb(0x168)],0xc8)){const _0x6dcdf5=JSON[_0x4fdbfb(0x16f)](_0x54e8d5[_0x4fdbfb(0x18d)]);console[_0x4fdbfb(0x150)](_0x8ad840[_0x4fdbfb(0x175)]);const _0x4eafcb=[];_0x4eafcb['push']([_0x8ad840[_0x4fdbfb(0x154)],_0x8ad840['jNxeQ'],_0x8ad840[_0x4fdbfb(0x174)],_0x8ad840[_0x4fdbfb(0x15a)]]),_0x6dcdf5[_0x4fdbfb(0x172)](_0x3ca8b8=>{const _0x1ee225=_0x4fdbfb;_0x4eafcb['push']([_0x3ca8b8[_0x1ee225(0x173)],_0x3ca8b8[_0x1ee225(0x164)],_0x3ca8b8['region'],_0x3ca8b8[_0x1ee225(0x178)]]);}),console[_0x4fdbfb(0x150)](_0x8ad840['LHhxJ'](table,_0x4eafcb)),process[_0x4fdbfb(0x14f)](0x0);}_0x8ad840[_0x4fdbfb(0x187)](_0x54e8d5[_0x4fdbfb(0x168)],0x191)&&(console['error'](_0x8ad840['YWkmI']),await _0x8ad840[_0x4fdbfb(0x152)](sendInstrumentationEvent,_0x5f5915,_0x8ad840[_0x4fdbfb(0x170)],messageTypes[_0x4fdbfb(0x16b)],_0x8ad840[_0x4fdbfb(0x17e)],null,_0x5f5915),process[_0x4fdbfb(0x14f)](0x1)),console['error'](_0x4fdbfb(0x159)+JSON[_0x4fdbfb(0x161)](_0x54e8d5)),await _0x8ad840[_0x4fdbfb(0x152)](sendInstrumentationEvent,_0x5f5915,_0x8ad840[_0x4fdbfb(0x170)],messageTypes[_0x4fdbfb(0x16b)],_0x8ad840[_0x4fdbfb(0x166)],_0x54e8d5,_0x5f5915),process[_0x4fdbfb(0x14f)](0x1);}catch(_0x5868f1){console[_0x4fdbfb(0x147)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5868f1['stack']),await _0x8ad840[_0x4fdbfb(0x176)](sendInstrumentationEvent,_0x5f5915,_0x8ad840[_0x4fdbfb(0x170)],messageTypes[_0x4fdbfb(0x16b)],_0x8ad840['FGYIn'],_0x5868f1,_0x5f5915),process['exit'](0x1);}};