browserstack-node-sdk 1.30.1 → 1.31.0

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 (104) 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/gcs.js +1 -1
  6. package/ats/src/cloudproviders/utils.js +1 -1
  7. package/ats/src/commands/configure.js +1 -1
  8. package/ats/src/commands/connect.js +1 -1
  9. package/ats/src/commands/connect_commands/grid.js +1 -1
  10. package/ats/src/commands/create.js +1 -1
  11. package/ats/src/commands/create_commands/grid.js +1 -1
  12. package/ats/src/commands/delete.js +1 -1
  13. package/ats/src/commands/delete_commands/grid.js +1 -1
  14. package/ats/src/commands/init.js +1 -1
  15. package/ats/src/commands/list.js +1 -1
  16. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  17. package/ats/src/commands/list_commands/grids.js +1 -1
  18. package/ats/src/config/constants.js +1 -1
  19. package/ats/src/config/logger.js +1 -1
  20. package/ats/src/index.js +1 -1
  21. package/ats/src/utils/AWSUtils.js +1 -1
  22. package/ats/src/utils/createAutoscalerStack.js +1 -1
  23. package/ats/src/utils/createClusterStack.js +1 -1
  24. package/ats/src/utils/createk8sClient.js +1 -1
  25. package/ats/src/utils/deleteStack.js +1 -1
  26. package/ats/src/utils/gridComponents.js +1 -1
  27. package/ats/src/utils/hstUtils.js +1 -1
  28. package/ats/src/utils/instrumentationUtils.js +1 -1
  29. package/ats/src/utils/userInput.js +1 -1
  30. package/ats/src/utils/utilityMethods.js +1 -1
  31. package/ats/src/utils/webSocketUtils.js +1 -1
  32. package/package.json +1 -1
  33. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  34. package/src/bin/codeceptjs/command.js +1 -1
  35. package/src/bin/cucumber-js/command.js +1 -1
  36. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  37. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  38. package/src/bin/cucumber-js/test.setup.js +1 -1
  39. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  40. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  41. package/src/bin/jest/command.js +1 -1
  42. package/src/bin/jest/customImplements/customCircus.js +1 -1
  43. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  44. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  45. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  46. package/src/bin/jest/jest.setup.js +1 -1
  47. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  48. package/src/bin/jest/test-observability/helper.js +1 -1
  49. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  50. package/src/bin/jest/test-observability/test-details.js +1 -1
  51. package/src/bin/jest/test_before.setup.js +1 -1
  52. package/src/bin/launcher/launcher.js +1 -1
  53. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  54. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  55. package/src/bin/mocha/command.js +1 -1
  56. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  57. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  58. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  59. package/src/bin/mocha/test.setup.js +1 -1
  60. package/src/bin/nightwatch/command.js +1 -1
  61. package/src/bin/playwright/accessibility-helper.js +1 -1
  62. package/src/bin/playwright/command.js +1 -1
  63. package/src/bin/playwright/globalSetup.js +1 -1
  64. package/src/bin/playwright/mock-process.js +1 -1
  65. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  66. package/src/bin/playwright/reporter/reporter.js +1 -1
  67. package/src/bin/playwright/reporter/test-details.js +1 -1
  68. package/src/bin/runner.js +1 -1
  69. package/src/bin/setup.js +1 -1
  70. package/src/bin/test-runner/index.js +1 -1
  71. package/src/bin/test-runner/runTest.js +1 -1
  72. package/src/bin/test-runner/testWorker.js +1 -1
  73. package/src/bin/utils/constants.js +1 -1
  74. package/src/bin/utils/log4jsAppender.js +1 -1
  75. package/src/bin/utils/logPatcher.js +1 -1
  76. package/src/bin/utils/logReportingAPI.js +1 -1
  77. package/src/bin/vanilla-js/command.js +1 -1
  78. package/src/helpers/BrowserStackSetup.js +1 -1
  79. package/src/helpers/accessibility-automation/constants.js +1 -1
  80. package/src/helpers/accessibility-automation/helper.js +1 -1
  81. package/src/helpers/ats/constants.js +1 -1
  82. package/src/helpers/ats/helper.js +1 -1
  83. package/src/helpers/capsMapping.js +1 -1
  84. package/src/helpers/helper.js +1 -1
  85. package/src/helpers/logger.js +1 -1
  86. package/src/helpers/patchHelpers.js +1 -1
  87. package/src/helpers/percy/Percy.js +1 -1
  88. package/src/helpers/percy/PercyBinary.js +1 -1
  89. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  90. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  91. package/src/helpers/percy/PercySDK.js +1 -1
  92. package/src/helpers/percy/index.js +1 -1
  93. package/src/helpers/percy/utils.js +1 -0
  94. package/src/helpers/request-spy.js +1 -1
  95. package/src/helpers/setKeepAlive.js +1 -1
  96. package/src/helpers/test-observability/constants.js +1 -1
  97. package/src/helpers/test-observability/error-handler.js +1 -1
  98. package/src/helpers/test-observability/performance-tester.js +1 -1
  99. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  100. package/src/helpers/test-observability/sessionHandler.js +1 -1
  101. package/src/helpers/test-observability/utils.js +1 -1
  102. package/src/helpers/w3cMapping.js +1 -1
  103. package/src/hubAllocationMethods.js +1 -1
  104. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a9_0x5c02(_0xe48e62,_0x158918){const _0x50fa0b=a9_0x50fa();return a9_0x5c02=function(_0x5c02d5,_0x1fd53b){_0x5c02d5=_0x5c02d5-0xbb;let _0x518a70=_0x50fa0b[_0x5c02d5];return _0x518a70;},a9_0x5c02(_0xe48e62,_0x158918);}const a9_0x5c660c=a9_0x5c02;function a9_0x50fa(){const _0x4b6514=['strict','590JnYUzu','RARCM','demandCommand','11631744muSWvc','help','desc','4623315uriLxW','767202zGXhYP','../config/constants','command','4bqIpDy','handler','36vvOqWv','create_commands','315YHqSJP','recommendCommands','3836vhSWzh','10130856MLPwim','epilogue','builder','create','144123CAjBtA','171886qTRtpU'];a9_0x50fa=function(){return _0x4b6514;};return a9_0x50fa();}(function(_0x1e5696,_0x507645){const _0x40241b=a9_0x5c02,_0x5a9bb0=_0x1e5696();while(!![]){try{const _0x5a2276=parseInt(_0x40241b(0xc4))/0x1*(parseInt(_0x40241b(0xc6))/0x2)+-parseInt(_0x40241b(0xbd))/0x3*(-parseInt(_0x40241b(0xc0))/0x4)+-parseInt(_0x40241b(0xbc))/0x5+-parseInt(_0x40241b(0xc2))/0x6*(parseInt(_0x40241b(0xcb))/0x7)+-parseInt(_0x40241b(0xc7))/0x8+parseInt(_0x40241b(0xd1))/0x9+-parseInt(_0x40241b(0xce))/0xa*(-parseInt(_0x40241b(0xcc))/0xb);if(_0x5a2276===_0x507645)break;else _0x5a9bb0['push'](_0x5a9bb0['shift']());}catch(_0x535e82){_0x5a9bb0['push'](_0x5a9bb0['shift']());}}}(a9_0x50fa,0xb9794));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x5c660c(0xbe));exports[a9_0x5c660c(0xbf)]='create',exports[a9_0x5c660c(0xbb)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x5c660c(0xc9)]=function(_0x4f29b0){const _0x555950=a9_0x5c660c,_0x3895d1={};_0x3895d1[_0x555950(0xcf)]=_0x555950(0xc3),_0x3895d1['nvfMT']=_0x555950(0xd2);const _0x5885f=_0x3895d1;return _0x4f29b0['usage'](HELP_HEADER_MESSAGE[_0x555950(0xca)])[_0x555950(0xc8)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5885f[_0x555950(0xcf)])[_0x555950(0xd0)]()[_0x555950(0xc5)]()[_0x555950(0xcd)]()[_0x555950(0xd2)](_0x5885f['nvfMT']);},exports[a9_0x5c660c(0xc1)]=function(_0x280733){};
1
+ function a9_0x552f(){const _0x1ff9ee=['17355zZarXJ','command','708490WLeQMB','desc','Create\x20a\x20new\x20Automation\x20grid.','../config/constants','help','15624eluqYz','commandDir','strict','mtsPr','1338RViGZQ','handler','11RVlVUU','usage','create','2859832XUzbTH','create_commands','8373573zrYSGo','WCtiq','recommendCommands','epilogue','842821mCFCPe','64VrZtSo','16vkGpZg','756169eCYsbf'];a9_0x552f=function(){return _0x1ff9ee;};return a9_0x552f();}const a9_0x591b87=a9_0x2e3c;function a9_0x2e3c(_0x2adb1,_0x1e9165){const _0x552fb0=a9_0x552f();return a9_0x2e3c=function(_0x2e3c6c,_0x52d62d){_0x2e3c6c=_0x2e3c6c-0x163;let _0x4440a6=_0x552fb0[_0x2e3c6c];return _0x4440a6;},a9_0x2e3c(_0x2adb1,_0x1e9165);}(function(_0x3c086f,_0x42be64){const _0x2e0ca8=a9_0x2e3c,_0x908acd=_0x3c086f();while(!![]){try{const _0x42348c=parseInt(_0x2e0ca8(0x173))/0x1+parseInt(_0x2e0ca8(0x171))/0x2*(parseInt(_0x2e0ca8(0x17b))/0x3)+-parseInt(_0x2e0ca8(0x16a))/0x4+parseInt(_0x2e0ca8(0x174))/0x5*(-parseInt(_0x2e0ca8(0x165))/0x6)+-parseInt(_0x2e0ca8(0x170))/0x7*(-parseInt(_0x2e0ca8(0x172))/0x8)+parseInt(_0x2e0ca8(0x16c))/0x9+-parseInt(_0x2e0ca8(0x176))/0xa*(parseInt(_0x2e0ca8(0x167))/0xb);if(_0x42348c===_0x42be64)break;else _0x908acd['push'](_0x908acd['shift']());}catch(_0x1060da){_0x908acd['push'](_0x908acd['shift']());}}}(a9_0x552f,0x826ac));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x591b87(0x179));exports[a9_0x591b87(0x175)]=a9_0x591b87(0x169),exports[a9_0x591b87(0x177)]=a9_0x591b87(0x178),exports['builder']=function(_0x2eacec){const _0x5e8f8e=a9_0x591b87,_0x18e261={};_0x18e261[_0x5e8f8e(0x16d)]=_0x5e8f8e(0x16b),_0x18e261[_0x5e8f8e(0x164)]=_0x5e8f8e(0x17a);const _0x243c32=_0x18e261;return _0x2eacec[_0x5e8f8e(0x168)](HELP_HEADER_MESSAGE[_0x5e8f8e(0x169)])[_0x5e8f8e(0x16f)](HELP_FOOTER_MESSAGE)[_0x5e8f8e(0x17c)](_0x243c32[_0x5e8f8e(0x16d)])['demandCommand']()[_0x5e8f8e(0x16e)]()[_0x5e8f8e(0x163)]()[_0x5e8f8e(0x17a)](_0x243c32[_0x5e8f8e(0x164)]);},exports[a9_0x591b87(0x166)]=function(_0xf8457e){};
@@ -1 +1 @@
1
- function a10_0xe1cb(_0x3f3d66,_0x507a72){const _0x29da62=a10_0x29da();return a10_0xe1cb=function(_0xe1cbb2,_0xd7fd65){_0xe1cbb2=_0xe1cbb2-0x14d;let _0x2195c9=_0x29da62[_0xe1cbb2];return _0x2195c9;},a10_0xe1cb(_0x3f3d66,_0x507a72);}const a10_0x1c2dec=a10_0xe1cb;(function(_0x5ad673,_0x3b6856){const _0x1ea286=a10_0xe1cb,_0x278e04=_0x5ad673();while(!![]){try{const _0x241028=-parseInt(_0x1ea286(0x26b))/0x1*(-parseInt(_0x1ea286(0x22d))/0x2)+-parseInt(_0x1ea286(0x1fe))/0x3*(-parseInt(_0x1ea286(0x186))/0x4)+parseInt(_0x1ea286(0x207))/0x5+parseInt(_0x1ea286(0x236))/0x6+parseInt(_0x1ea286(0x270))/0x7+-parseInt(_0x1ea286(0x255))/0x8*(parseInt(_0x1ea286(0x1be))/0x9)+-parseInt(_0x1ea286(0x20f))/0xa;if(_0x241028===_0x3b6856)break;else _0x278e04['push'](_0x278e04['shift']());}catch(_0x371b68){_0x278e04['push'](_0x278e04['shift']());}}}(a10_0x29da,0xbfee0));const fs=require('fs'),ws=require('ws'),util=require(a10_0x1c2dec(0x18b)),ReconnectingWebSocket=require(a10_0x1c2dec(0x175)),request=require(a10_0x1c2dec(0x1c0)),{v4:uuidv4}=require(a10_0x1c2dec(0x1ec)),webSocketUtils=require(a10_0x1c2dec(0x1c7)),{logger}=require(a10_0x1c2dec(0x201)),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a10_0x1c2dec(0x1e9)),{getCloudProviderObject}=require(a10_0x1c2dec(0x219)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x1c2dec(0x173)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x1c2dec(0x242)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a10_0x1c2dec(0x1b3)),promisifiedRequest=util[a10_0x1c2dec(0x1ca)](request);function a10_0x29da(){const _0x279707=['exit','create-grid-checks-non-200','HKAVP','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','replace','create-grid-called','INFO','auth','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','TbouZ','init-not-called','ILyZI','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.','ktruN','CLI_RUN_STARTED','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','qRlkg','UWLGZ','xZbCR','YTPiu','uRWxJ','route53','desc','https://','../../config/constants','Found\x20Subnets:\x20','reconnecting-websocket','jJwiz','clusterRegion','NxVXh','fgEyV','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','createdBy','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','Pxscq','8|4|5|3|2|7|6|0|1','isVPCPresent','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','region','gridProfile','PCucE','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','XZlWF','4kuSmGD','configureIfNotConfigured','raNIV','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','browserVersion','util','prespawned-cluster-args-not-passed','eTLsm','getResourceClientId','deleteCluster','http','pfjoc','name','eEXSN','xesNb','KifIJ','jFAPZ','annotations','TJPxI','akxJS','FeRkK','lgiYe','PyExj','Create\x20a\x20new\x20Automation\x20grid.','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','rswby','lcNHw','RLYBU','FOKaX','createOtherResources','Namespace\x20created','tSUEw','zJJFY','description','private-grid','kajts','isPrivateGrid','DxaKK','GTyTc','setupNewCluster','WebSocket','RDNIW','1|6|3|0|4|7|2|8|5','length','fmAMB','../../utils/instrumentationUtils','Subnets:\x20','fFfCm','sendEventToBackend','HQJzj','user','Found\x20VPC:\x20','ACcxd','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','TgixQ','username','36dCzwUB','RmIIj','request','usage','oWqoW','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','securityGroups','bstackUsername','OtKrB','../../utils/webSocketUtils','bstackAccesskey','qgzXq','promisify','JBpvb','cluster-name','s3bucket','nIBAM','BLnRx','GbIAd','Ctncc','PncGk','oGMrW','oqAfE','LUAsa','ingress-nginx','/packages/cli/get-grid-url?gridIdentifier=','tFkTo','lTDiQ','existsSync','hnJtD','tRMXF','CDKmv','private-ingress-nginx-controller','body','wChUy','defaultGridProfile','xdXYJ','LGnSP','epilogue','Spawning\x20the\x20grid\x20','help','CkxVL','pre-spawned-invalid-vpc','../../utils/utilityMethods','\x27\x20grid\x20profile','tABOU','uuid','QzKaQ','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','pre-spawned-subnets-not-selected','delay','\x20using\x20\x27','privateGrid','toLowerCase','setupAutoscaler','Rnflw','QkFQt','JWRAk','Grid\x20profile\x20fetched\x20from\x20backend','HVTeD','amQrY','xiLyq','tFmXw','2551182RwJhGI','GSSXG','cloud-provider','../../config/logger','gridProfileId','LOG','writeFileSync','NlXLe','true','1989165zZWpBn','get-grid-url-auth-failed','statusCode','rrltt','Spawning\x20grid\x20on\x20to\x20the\x20cluster','Namespace\x20Created','builder','YWPHM','6845120sgvIeX','ZDOlV','DadOD','concurrency','SzTvX','iNCuP','argv','managedBy','uvQmU','hOCEM','../../cloudproviders/utils','stringify','WAxST','eaxwN','subnets','isClusterPresent','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','getGridHostname','grid','UjrcG','includes','xYVgC','fcgAs','://','command','Browserstack','readNamespacedService','TkEsu','yGIFk','whoIb','2ndyWnE','s3BucketName','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','GoqJV','Cluster\x20created\x20successfully','yMojM','sxNPo','Will\x20be\x20spawning\x20the\x20grid\x20','SqWfy','2369670tTcbuV','SyctC','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','error','ioZbT','parse','Adding\x20Websocket\x20listeners','vBLMR','SjuZH','metadata','ERROR','SEzec','../../utils/gridComponents','warn','https','CgnJY','CIexP','info','TqiGs','connectionTimeout','AUOgf','eSEeH','turboscale-managed-identity-','grid-profile','Cluster\x20','get-grid-url-non-200','GET','ouvbC','updatePreSpawnedCluster','AyLqh','TWyHr','1820152ilamsY','create-grid-checks-invalid-profile','NUHzw','s3Bucket','cloudProvider','handler','Deleting\x20the\x20CloudFormation\x20Stacks','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','instanceType','readFileSync','clusterName','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','ntvkG','get-grid-url-null-response','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','pre-spawned-invalid-subnets','maxNodes','Spawning\x20Grid\x20on\x20the\x20Cluster','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','ccoVW','JrRIi','RBqpm','610813qTfyJD','message','\x20in\x20existing\x20cluster\x20\x27','Create\x20a\x20private/public\x20grid.','password','887229qufiHs','vZtNL','addListeners','AqIPG','grid-name','JCtPf','fTtst','yOyPJ','string','hubVersion','split','create-grid-checks-auth-failed','type','wkmou','CxMrv','create','emlYz','minNodes','TlJKO','KcKio','gridName','debug','VwPEk','lDXUu','VNmYv'];a10_0x29da=function(){return _0x279707;};return a10_0x29da();}exports[a10_0x1c2dec(0x227)]=a10_0x1c2dec(0x221),exports[a10_0x1c2dec(0x171)]=a10_0x1c2dec(0x19d),exports[a10_0x1c2dec(0x20d)]=function(_0x2cf4db){const _0x4aa674=a10_0x1c2dec,_0x2e5660={};_0x2e5660['vxtoN']=_0x4aa674(0x22f),_0x2e5660[_0x4aa674(0x15a)]='string',_0x2e5660[_0x4aa674(0x1c9)]=_0x4aa674(0x25c),_0x2e5660['QzKaQ']=_0x4aa674(0x19e),_0x2e5660[_0x4aa674(0x222)]=_0x4aa674(0x21f),_0x2e5660['agJhJ']=_0x4aa674(0x238),_0x2e5660['SjuZH']=_0x4aa674(0x26e),_0x2e5660[_0x4aa674(0x22a)]=_0x4aa674(0x1e6);const _0x2e46a1=_0x2e5660,_0xc0f00d={};_0xc0f00d[_0x4aa674(0x1a7)]=_0x2e46a1['vxtoN'],_0xc0f00d[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x4e8139={};_0x4e8139[_0x4aa674(0x1a7)]=_0x2e46a1[_0x4aa674(0x1c9)],_0x4e8139[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x1ee42c={};_0x1ee42c[_0x4aa674(0x1a7)]=_0x2e46a1[_0x4aa674(0x1ed)],_0x1ee42c[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x437600={};_0x437600[_0x4aa674(0x1a7)]=_0x2e46a1[_0x4aa674(0x222)],_0x437600[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x1e42d6={};_0x1e42d6[_0x4aa674(0x1a7)]=_0x2e46a1['agJhJ'],_0x1e42d6[_0x4aa674(0x14e)]=_0x2e46a1['VNmYv'];const _0x43ad41={};_0x43ad41['description']=_0x2e46a1[_0x4aa674(0x23e)],_0x43ad41[_0x4aa674(0x14e)]=_0x2e46a1[_0x4aa674(0x15a)];const _0x4a387f={};return _0x4a387f[_0x4aa674(0x274)]=_0xc0f00d,_0x4a387f[_0x4aa674(0x24d)]=_0x4e8139,_0x4a387f[_0x4aa674(0x1cc)]=_0x1ee42c,_0x4a387f[_0x4aa674(0x200)]=_0x437600,_0x4a387f[_0x4aa674(0x181)]=_0x1e42d6,_0x4a387f[_0x4aa674(0x1a8)]=_0x43ad41,_0x2cf4db[_0x4aa674(0x1c1)](HELP_HEADER_MESSAGE[_0x4aa674(0x151)])[_0x4aa674(0x1e4)](HELP_FOOTER_MESSAGE)['options'](_0x4a387f)[_0x4aa674(0x1e6)](_0x2e46a1[_0x4aa674(0x22a)])[_0x4aa674(0x215)];},exports[a10_0x1c2dec(0x25a)]=async function(_0x133bef){const _0x1b04c0=a10_0x1c2dec,_0x23609c={'pyVDX':_0x1b04c0(0x22f),'SqWfy':_0x1b04c0(0x278),'wkmou':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','fkuEu':_0x1b04c0(0x19e),'jqHay':_0x1b04c0(0x21f),'UWLGZ':_0x1b04c0(0x238),'TyvDM':_0x1b04c0(0x26e),'ioZbT':_0x1b04c0(0x1e6),'DmAcQ':_0x1b04c0(0x1b0),'WAxST':_0x1b04c0(0x243),'zJJFY':_0x1b04c0(0x239),'qRlkg':_0x1b04c0(0x190),'CVrou':_0x1b04c0(0x244),'NlXLe':'Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','aZNbL':function(_0xa74348){return _0xa74348();},'lDXUu':function(_0x417c3a){return _0x417c3a();},'BLnRx':function(_0x24ab1c,_0x3a3d1b){return _0x24ab1c!==_0x3a3d1b;},'CkxVL':_0x1b04c0(0x1e0),'SzTvX':_0x1b04c0(0x189),'Rnflw':function(_0x4ab647,_0x37416e,_0x48f09e,_0x2035d3,_0xd0d3f,_0xf3c3e9,_0x4edaaa){return _0x4ab647(_0x37416e,_0x48f09e,_0x2035d3,_0xd0d3f,_0xf3c3e9,_0x4edaaa);},'ACcxd':_0x1b04c0(0x160),'tFkTo':_0x1b04c0(0x165),'fFfCm':function(_0xbb6237,_0x155abf,_0x22396d,_0xe240be,_0x485f4a,_0x118f72,_0x4c28e9){return _0xbb6237(_0x155abf,_0x22396d,_0xe240be,_0x485f4a,_0x118f72,_0x4c28e9);},'RLYBU':'<UsernamePlaceholder>','QkFQt':'<PasswordPlaceholder>','ntvkG':_0x1b04c0(0x23c),'tSUEw':function(_0x491dee,_0x53be4d){return _0x491dee===_0x53be4d;},'fZLWv':'QQANq','XZlWF':_0x1b04c0(0x17d),'iNCuP':_0x1b04c0(0x17c),'vBLMR':function(_0x449e50,_0x1a599c,_0x306e58,_0x39075c,_0x1ae914,_0x1420bc,_0x4b0ba6,_0x1636b1){return _0x449e50(_0x1a599c,_0x306e58,_0x39075c,_0x1ae914,_0x1420bc,_0x4b0ba6,_0x1636b1);},'fOaFS':_0x1b04c0(0x18c),'ILyZI':'uoqhJ','VwPEk':_0x1b04c0(0x15e),'PCucE':'non-aws-azure-cluster','CDKmv':_0x1b04c0(0x206),'uvQmU':function(_0x21d209,_0x164969){return _0x21d209===_0x164969;},'rrltt':_0x1b04c0(0x210),'BYJNK':_0x1b04c0(0x1db),'OtKrB':_0x1b04c0(0x20e),'oWqoW':_0x1b04c0(0x194),'tRMXF':_0x1b04c0(0x250),'emlYz':function(_0x2538a7,_0x482ab7){return _0x2538a7(_0x482ab7);},'RmIIj':function(_0x21525a,_0x154bae){return _0x21525a===_0x154bae;},'fgEyV':_0x1b04c0(0x154),'JBpvb':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','ZbfoD':'create-grid-checks-null-response','FOKaX':function(_0x4d49fc,_0x6f8434){return _0x4d49fc===_0x6f8434;},'hOCEM':function(_0x531aad,_0x53fb0d){return _0x531aad===_0x53fb0d;},'pfjoc':_0x1b04c0(0x195),'TWyHr':_0x1b04c0(0x17a),'PVNEo':function(_0x38e0f5,_0x3bab4b,_0x46d61a,_0x274834,_0x32cfdd,_0x4f82f6,_0x49afc1,_0x5734a4){return _0x38e0f5(_0x3bab4b,_0x46d61a,_0x274834,_0x32cfdd,_0x4f82f6,_0x49afc1,_0x5734a4);},'HKAVP':_0x1b04c0(0x14d),'sbxfn':function(_0x54898b,_0x10109b){return _0x54898b!==_0x10109b;},'lTDiQ':function(_0x480a36,_0x5b76fc){return _0x480a36===_0x5b76fc;},'TbouZ':_0x1b04c0(0x178),'vZtNL':function(_0x5219b9,_0x47e896,_0x560495,_0x23f865,_0x119d88,_0x56427d,_0x1d1abf,_0x6263b9){return _0x5219b9(_0x47e896,_0x560495,_0x23f865,_0x119d88,_0x56427d,_0x1d1abf,_0x6263b9);},'CIexP':_0x1b04c0(0x15c),'LdDsL':_0x1b04c0(0x1f9),'DadOD':function(_0x2b0e3c,_0x4f70aa){return _0x2b0e3c!==_0x4f70aa;},'raNIV':_0x1b04c0(0x196),'GoqJV':_0x1b04c0(0x1bb),'zqsmJ':'create-grid-checks-grid-already-exists','oGMrW':function(_0x1e7575,_0x19b878){return _0x1e7575===_0x19b878;},'NuKnJ':_0x1b04c0(0x21c),'eTLsm':_0x1b04c0(0x16d),'GTyTc':function(_0x5e3153,_0x202624){return _0x5e3153===_0x202624;},'KcKio':_0x1b04c0(0x248),'SyctC':_0x1b04c0(0x1eb),'SEzec':function(_0x577816,_0x1d1ac6){return _0x577816!==_0x1d1ac6;},'xYVgC':_0x1b04c0(0x277),'jJwiz':_0x1b04c0(0x1bc),'qHBkS':_0x1b04c0(0x267),'Ctncc':function(_0x166982,_0x11edf1,_0x54fcae,_0x4b8982,_0x3934ae,_0xd41d02,_0x59b9da,_0x23d341){return _0x166982(_0x11edf1,_0x54fcae,_0x4b8982,_0x3934ae,_0xd41d02,_0x59b9da,_0x23d341);},'NUHzw':_0x1b04c0(0x256),'eEXSN':function(_0x305e56,_0x3515f3){return _0x305e56!==_0x3515f3;},'lcNHw':'LTuKL','TJPxI':'FuPut','kajts':'nvDJr','sxNPo':function(_0x5870c3,_0xf97efc,_0x397ad5,_0x52a259,_0x586918,_0x499ff8,_0x2b5ea5,_0x3a52de,_0x4123df,_0x3250dd,_0x1d87f3,_0x5414f0){return _0x5870c3(_0xf97efc,_0x397ad5,_0x52a259,_0x586918,_0x499ff8,_0x2b5ea5,_0x3a52de,_0x4123df,_0x3250dd,_0x1d87f3,_0x5414f0);},'amQrY':_0x1b04c0(0x17e),'uRWxJ':function(_0x269b4c,_0x2deb24,_0x1a3215,_0x3d1f1c,_0x5e19ae,_0x1952de){return _0x269b4c(_0x2deb24,_0x1a3215,_0x3d1f1c,_0x5e19ae,_0x1952de);},'LGnSP':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','GSSXG':function(_0x2aeb20,_0x27601b){return _0x2aeb20===_0x27601b;},'FeRkK':function(_0x5ef7b0,_0x2fb5e5,_0x5427e7,_0x4dae6f){return _0x5ef7b0(_0x2fb5e5,_0x5427e7,_0x4dae6f);},'eSEeH':function(_0xb55593){return _0xb55593();},'LUAsa':_0x1b04c0(0x184),'fcgAs':_0x1b04c0(0x1ef),'azENH':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','HQJzj':function(_0x38cf26,_0x22f2b7){return _0x38cf26!=_0x22f2b7;},'RDNIW':function(_0x1143ce,_0x53b62c){return _0x1143ce!==_0x53b62c;},'DxaKK':function(_0x3dde55,_0x2aa740){return _0x3dde55>_0x2aa740;},'AqIPG':function(_0x21505f,_0x533750){return _0x21505f===_0x533750;},'JrRIi':_0x1b04c0(0x16a),'xTdtK':_0x1b04c0(0x1f0),'vfwYf':function(_0x4550cb,_0x48628c){return _0x4550cb===_0x48628c;},'tFmXw':_0x1b04c0(0x163),'JCtPf':_0x1b04c0(0x1e8),'yMojM':function(_0x3fbdb4,_0x56ba5f){return _0x3fbdb4===_0x56ba5f;},'WYcCw':function(_0x4c70f6,_0x3b3ae4,_0x70d660,_0x9855c8,_0x457ed4,_0x180ae5,_0x7bf6f5,_0x484770){return _0x4c70f6(_0x3b3ae4,_0x70d660,_0x9855c8,_0x457ed4,_0x180ae5,_0x7bf6f5,_0x484770);},'JWRAk':_0x1b04c0(0x264),'xdXYJ':'0|3|4|1|2','akxJS':_0x1b04c0(0x167),'PyExj':_0x1b04c0(0x231),'ouvbC':function(_0xcad8e3,_0x299c1a){return _0xcad8e3===_0x299c1a;},'CgnJY':function(_0x190653,_0x56b53d){return _0x190653==_0x56b53d;},'ktruN':function(_0x2e6696,_0x4fb209){return _0x2e6696(_0x4fb209);},'oqAfE':'Creating\x20namespace','fTtst':'default','CxMrv':_0x1b04c0(0x228),'tVZlY':_0x1b04c0(0x20c),'yGIFk':_0x1b04c0(0x1a4),'xiLyq':_0x1b04c0(0x20b),'AUOgf':_0x1b04c0(0x266),'csclZ':function(_0x429225,_0x5844db){return _0x429225===_0x5844db;},'GlhHU':function(_0x14bf00,_0xdfc4f7,_0x5b344f,_0x5eaf27,_0x405576,_0xd4d003,_0x3b4092,_0x259d1d,_0x7f5f62,_0x8f3924,_0x5800cb){return _0x14bf00(_0xdfc4f7,_0x5b344f,_0x5eaf27,_0x405576,_0xd4d003,_0x3b4092,_0x259d1d,_0x7f5f62,_0x8f3924,_0x5800cb);},'YTPiu':'Grid\x20spawned\x20on\x20the\x20cluster','fmAMB':_0x1b04c0(0x1c3),'ojLjL':function(_0x5b2155,_0x3055c7,_0x54d8a1){return _0x5b2155(_0x3055c7,_0x54d8a1);},'HVTeD':_0x1b04c0(0x1de),'RoOlh':'ingress-nginx-controller','RBqpm':_0x1b04c0(0x1d6),'whoIb':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','PncGk':function(_0x59a519,_0x359794,_0x1417a5,_0x8cb735,_0x3799e2,_0x3bcce7,_0x556c07,_0x1d60f1){return _0x59a519(_0x359794,_0x1417a5,_0x8cb735,_0x3799e2,_0x3bcce7,_0x556c07,_0x1d60f1);},'ewOKI':_0x1b04c0(0x262),'dWVcC':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','ccoVW':function(_0x57a1f9,_0x57c263,_0xda42f0,_0x20adeb,_0x1413cc,_0x12f688,_0x163457,_0x429bfe){return _0x57a1f9(_0x57c263,_0xda42f0,_0x20adeb,_0x1413cc,_0x12f688,_0x163457,_0x429bfe);},'GbIAd':_0x1b04c0(0x208),'nIBAM':function(_0x158737,_0x431f17,_0x1e40d8,_0x2ba6a8,_0x3f949d,_0x379c2f,_0x5233ee,_0x220417){return _0x158737(_0x431f17,_0x1e40d8,_0x2ba6a8,_0x3f949d,_0x379c2f,_0x5233ee,_0x220417);},'rswby':_0x1b04c0(0x24f),'lgiYe':function(_0x280f99,_0x3ce7f0){return _0x280f99===_0x3ce7f0;},'AyLqh':'grid-spawning-failed'};let _0x7a1151=![],_0xcf0089,_0x138d77,_0x4c1666,_0x489b50,_0x459179,_0x25ce5a,_0x2f847c,_0x3ee750,_0xde8b46,_0x89fe0f,_0x58c612,_0x459630,_0x501916=0x1,_0x54a841=0xe;try{global_registry['requestId']=_0x23609c['aZNbL'](uuidv4),global_registry['isPrivateGrid']=![];if(!fs[_0x1b04c0(0x1da)](_0x23609c['lDXUu'](getCredentialsPath))){if(_0x23609c['BLnRx'](_0x23609c['CkxVL'],_0x23609c[_0x1b04c0(0x1e7)])){const _0x4b6a95={};_0x4b6a95[_0x1b04c0(0x1a7)]=_0x23609c['pyVDX'],_0x4b6a95[_0x1b04c0(0x14e)]=_0x23609c[_0x1b04c0(0x235)];const _0x4de980={};_0x4de980[_0x1b04c0(0x1a7)]=_0x23609c[_0x1b04c0(0x14f)],_0x4de980[_0x1b04c0(0x14e)]=_0x23609c[_0x1b04c0(0x235)];const _0x5a9b34={};_0x5a9b34[_0x1b04c0(0x1a7)]=_0x23609c['fkuEu'],_0x5a9b34['type']=_0x23609c[_0x1b04c0(0x235)];const _0x165be7={};_0x165be7[_0x1b04c0(0x1a7)]=_0x23609c['jqHay'],_0x165be7[_0x1b04c0(0x14e)]=_0x23609c[_0x1b04c0(0x235)];const _0x1ee728={};_0x1ee728['description']=_0x23609c[_0x1b04c0(0x16c)],_0x1ee728['type']=_0x23609c[_0x1b04c0(0x235)];const _0x525b29={};_0x525b29[_0x1b04c0(0x1a7)]=_0x23609c['TyvDM'],_0x525b29[_0x1b04c0(0x14e)]=_0x23609c[_0x1b04c0(0x235)];const _0x31d102={};return _0x31d102[_0x1b04c0(0x274)]=_0x4b6a95,_0x31d102[_0x1b04c0(0x24d)]=_0x4de980,_0x31d102[_0x1b04c0(0x1cc)]=_0x5a9b34,_0x31d102[_0x1b04c0(0x200)]=_0x165be7,_0x31d102[_0x1b04c0(0x181)]=_0x1ee728,_0x31d102[_0x1b04c0(0x1a8)]=_0x525b29,_0x2aa592[_0x1b04c0(0x1c1)](_0x520691[_0x1b04c0(0x151)])[_0x1b04c0(0x1e4)](_0x1ddb6b)['options'](_0x31d102)[_0x1b04c0(0x1e6)](_0x23609c[_0x1b04c0(0x23a)])['argv'];}else console[_0x1b04c0(0x239)](_0x23609c[_0x1b04c0(0x213)]),await _0x23609c[_0x1b04c0(0x1f6)](sendInstrumentationEvent,_0x133bef,_0x23609c[_0x1b04c0(0x1ba)],messageTypes['ERROR'],_0x23609c[_0x1b04c0(0x1d8)],null,_0x133bef),process[_0x1b04c0(0x15b)](0x1);}await _0x23609c[_0x1b04c0(0x1b5)](sendInstrumentationEvent,_0x133bef,_0x23609c[_0x1b04c0(0x1ba)],messageTypes[_0x1b04c0(0x161)],null,null,_0x133bef);const _0x2be0d4=JSON[_0x1b04c0(0x23b)](fs[_0x1b04c0(0x25e)](_0x23609c[_0x1b04c0(0x159)](getCredentialsPath)));global_registry[_0x1b04c0(0x1c5)]=_0x2be0d4[_0x1b04c0(0x228)][_0x1b04c0(0x1bd)],global_registry[_0x1b04c0(0x1c8)]=_0x2be0d4[_0x1b04c0(0x228)][_0x1b04c0(0x26f)];const _0x4ee036=WS_ENDPOINT['replace'](_0x23609c[_0x1b04c0(0x1a1)],_0x2be0d4[_0x1b04c0(0x228)]['username'])[_0x1b04c0(0x15f)](_0x23609c[_0x1b04c0(0x1f7)],_0x2be0d4[_0x1b04c0(0x228)][_0x1b04c0(0x26f)]),_0x5e796a={};_0x5e796a[_0x1b04c0(0x1ae)]=ws,_0x5e796a[_0x1b04c0(0x249)]=0x36ee80,_0x89fe0f=new ReconnectingWebSocket(_0x4ee036,[],_0x5e796a),logger['debug'](_0x23609c[_0x1b04c0(0x261)]),webSocketUtils[_0x1b04c0(0x272)](_0x89fe0f,_0x133bef[_0x1b04c0(0x1b8)],_0x133bef[_0x1b04c0(0x26f)]);let _0x3fed32=DEFAULT_GRID_NAME;if(_0x133bef[_0x1b04c0(0x25f)]||_0x133bef[_0x1b04c0(0x259)]||_0x133bef['region']){if(_0x23609c[_0x1b04c0(0x1a5)](_0x23609c['fZLWv'],_0x23609c['fZLWv'])){if(!(_0x133bef[_0x1b04c0(0x25f)]&&_0x133bef['cloudProvider']&&_0x133bef[_0x1b04c0(0x181)])){if(_0x23609c[_0x1b04c0(0x1a5)](_0x23609c[_0x1b04c0(0x185)],_0x23609c[_0x1b04c0(0x185)]))_0xcf0089=_0x23609c[_0x1b04c0(0x214)],await _0x23609c['vBLMR'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c['fOaFS'],_0x23609c['zJJFY']),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1);else{const _0x5782f5=_0x23609c['DmAcQ'][_0x1b04c0(0x27a)]('|');let _0x26f3e8=0x0;while(!![]){switch(_0x5782f5[_0x26f3e8++]){case'0':const _0x582b24={};_0x582b24[_0x1b04c0(0x14e)]=_0x8fc526[_0x1b04c0(0x203)],_0x582b24[_0x1b04c0(0x26c)]=_0x1cd481,_0x4cb4ab['sendEventToBackend'](_0x45e523,_0x582b24);continue;case'1':const _0xe5287c={};_0xe5287c[_0x1b04c0(0x14e)]=_0x350da4['CLI_RUN_STARTED'],_0xe5287c['message']='CLI\x20run\x20started',_0x5a0892[_0x1b04c0(0x1b6)](_0x2ea94f,_0xe5287c);continue;case'2':_0x502447[_0x1b04c0(0x25f)]=_0x500c60;continue;case'3':_0x40f16f[_0x1b04c0(0x247)](_0x2fc6e1);continue;case'4':_0x363ba7[_0x1b04c0(0x259)]=_0x1b1de9;continue;case'5':_0x326844['browserVersion']=_0x259687['browserVersion'];continue;case'6':_0x1fe75b=_0x1b04c0(0x1e5)+_0x4f32f1+_0x1b04c0(0x26d)+_0x3a2bd9+'\x27';continue;case'7':_0x42c80c[_0x1b04c0(0x177)]=_0x244d14;continue;case'8':_0x44b05b[_0x1b04c0(0x279)]=_0x101eec[_0x1b04c0(0x279)];continue;}break;}}}if(![AWS,AZURE,GCP][_0x1b04c0(0x223)](_0x133bef['cloudProvider']['toLowerCase']())){if(_0x23609c['BLnRx'](_0x23609c[_0x1b04c0(0x166)],_0x23609c[_0x1b04c0(0x166)])){const _0x39b54f={};_0x39b54f[_0x1b04c0(0x14e)]=_0x1b518a['LOG'],_0x39b54f[_0x1b04c0(0x26c)]=_0x1b04c0(0x24e)+_0x1c6f7b+_0x1b04c0(0x263),_0x571ebd[_0x1b04c0(0x1b6)](_0x44b7a4,_0x39b54f,_0x23609c[_0x1b04c0(0x21b)]),_0x30c40d[_0x1b04c0(0x247)](_0x1b04c0(0x24e)+_0x548aab+_0x1b04c0(0x263)),_0x704363=!![];}else _0xcf0089=_0x23609c[_0x1b04c0(0x158)],await _0x23609c[_0x1b04c0(0x23d)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x183)],_0x23609c['zJJFY']),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1);}_0x133bef[_0x1b04c0(0x1f3)]&&_0x23609c[_0x1b04c0(0x1a5)](_0x133bef[_0x1b04c0(0x1f3)]['toLowerCase'](),_0x23609c[_0x1b04c0(0x1dd)])&&(_0x23609c[_0x1b04c0(0x217)](_0x23609c[_0x1b04c0(0x20a)],_0x23609c['BYJNK'])?_0x2d9006['isPrivateGrid']=!![]:global_registry[_0x1b04c0(0x1aa)]=!![]),_0x7a1151=!![],_0x4c1666=_0x133bef['clusterName'],_0x138d77=_0x133bef['cloudProvider'][_0x1b04c0(0x1f4)](),_0x489b50=_0x133bef[_0x1b04c0(0x181)];}else _0x5a733d[_0x1b04c0(0x247)](_0x1b04c0(0x1b9)+_0x763d50+'\x20');}_0x133bef['gridName']&&(_0x23609c['BLnRx'](_0x23609c[_0x1b04c0(0x1c6)],_0x23609c[_0x1b04c0(0x1c2)])?_0x3fed32=_0x133bef[_0x1b04c0(0x156)]:_0x4f5c02['cloudProvider']={});global_registry['gridName']=_0x3fed32;const _0x2edef1={};_0x2edef1['username']=_0x2be0d4[_0x1b04c0(0x228)][_0x1b04c0(0x1bd)],_0x2edef1[_0x1b04c0(0x26f)]=_0x2be0d4[_0x1b04c0(0x228)]['password'];const _0x205038={};_0x205038['method']=_0x23609c[_0x1b04c0(0x1dc)],_0x205038[_0x1b04c0(0x162)]=_0x2edef1;const _0x275b28=_0x205038,_0x5b6b39=_0x1b04c0(0x172)+AG_API_URL+'/packages/cli/create-grid-checks',_0x62b62a={};_0x62b62a[_0x1b04c0(0x156)]=_0x3fed32;const _0x132e4b={'url':_0x5b6b39,'qs':_0x62b62a,..._0x275b28},_0x55ab61=_0x132e4b,_0x5c8fc5=await _0x23609c[_0x1b04c0(0x152)](promisifiedRequest,_0x55ab61);if(_0x23609c[_0x1b04c0(0x1bf)](_0x5c8fc5,null)||_0x23609c['RmIIj'](_0x5c8fc5,undefined)){if(_0x23609c['tSUEw'](_0x23609c[_0x1b04c0(0x179)],_0x23609c[_0x1b04c0(0x179)]))_0xcf0089=_0x23609c[_0x1b04c0(0x1cb)],await _0x23609c['vBLMR'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c['ACcxd'],_0x23609c['ZbfoD'],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1);else{const _0x31c246={};_0x31c246['type']=_0x5d0377[_0x1b04c0(0x203)],_0x31c246['message']=_0x3cd0dd,_0x20c31c[_0x1b04c0(0x1b6)](_0x4e833e,_0x31c246,_0x23609c[_0x1b04c0(0x1a6)],!![]);}}_0x23609c[_0x1b04c0(0x1a2)](_0x5c8fc5['statusCode'],0x191)&&(_0x23609c[_0x1b04c0(0x218)](_0x23609c[_0x1b04c0(0x191)],_0x23609c['pfjoc'])?(_0xcf0089=_0x23609c[_0x1b04c0(0x254)],await _0x23609c['PVNEo'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes['ERROR'],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x15d)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1)):_0x346eb6=_0x23609c[_0x1b04c0(0x16b)]);_0x23609c['sbxfn'](_0x5c8fc5[_0x1b04c0(0x209)],0xc8)&&(_0x23609c[_0x1b04c0(0x1d9)](_0x23609c[_0x1b04c0(0x164)],_0x23609c['TbouZ'])?(_0xcf0089=_0x1b04c0(0x260)+JSON[_0x1b04c0(0x21a)](_0x5c8fc5),await _0x23609c[_0x1b04c0(0x271)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes['ERROR'],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x246)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1)):_0x27aaa6=_0x44150f[_0x1b04c0(0x156)]);const _0x37775c=JSON['parse'](_0x5c8fc5[_0x1b04c0(0x1df)]),_0x59fff9={};_0x59fff9[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x169)],_0x59fff9['message']='CLI\x20run\x20started',webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x59fff9);const _0x5c14fc={};_0x5c14fc[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x5c14fc[_0x1b04c0(0x26c)]=_0x23609c['LdDsL'],webSocketUtils['sendEventToBackend'](_0x89fe0f,_0x5c14fc);_0x37775c['alreadyPresent']&&(_0x23609c[_0x1b04c0(0x211)](_0x23609c[_0x1b04c0(0x188)],_0x23609c[_0x1b04c0(0x188)])?_0x39463d=_0x595e9a[_0xc5000f['gridProfile']]:(_0xcf0089=_0x23609c[_0x1b04c0(0x230)],await _0x23609c['PVNEo'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c['zqsmJ'],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1)));const _0x1294c8=_0x37775c['gridProfiles'];let _0x5cc656=_0x1294c8[_0x37775c[_0x1b04c0(0x1e1)]];_0x133bef['gridProfile']&&(_0x23609c[_0x1b04c0(0x1d3)](_0x23609c['NuKnJ'],_0x23609c[_0x1b04c0(0x18d)])?_0x5ab629['isPrivateGrid']=!![]:_0x5cc656=_0x1294c8[_0x133bef[_0x1b04c0(0x182)]]);if(_0x23609c[_0x1b04c0(0x1ac)](_0x7a1151,![])){if(_0x23609c[_0x1b04c0(0x211)](_0x23609c[_0x1b04c0(0x155)],_0x23609c[_0x1b04c0(0x237)])){_0x23609c[_0x1b04c0(0x1d9)](_0x5cc656,undefined)&&(_0x23609c[_0x1b04c0(0x241)](_0x23609c[_0x1b04c0(0x224)],_0x23609c[_0x1b04c0(0x176)])?(_0xcf0089=_0x23609c['qHBkS'],await _0x23609c[_0x1b04c0(0x1d1)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c['ACcxd'],_0x23609c[_0x1b04c0(0x257)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process['exit'](0x1)):_0x5e44b5[_0x1b04c0(0x247)](_0x1b04c0(0x174)+_0xcb2421[_0x1b04c0(0x21a)](_0x215d0f)+'\x20'));global_registry[_0x1b04c0(0x202)]=_0x5cc656['id'];(_0x23609c[_0x1b04c0(0x1bf)](_0x138d77,AZURE)||_0x23609c[_0x1b04c0(0x1d9)](_0x5cc656?.[_0x1b04c0(0x259)],AZURE))&&(_0x23609c[_0x1b04c0(0x193)](_0x23609c['lcNHw'],_0x23609c[_0x1b04c0(0x1a0)])?(_0xb85b4a=_0x3a075f[_0x1b04c0(0x170)],_0x5d0191=_0x23609c['CVrou']):(console[_0x1b04c0(0x239)](_0x23609c[_0x1b04c0(0x205)]),process[_0x1b04c0(0x15b)](0x1)));_0xcf0089=_0x1b04c0(0x234)+_0x3fed32+_0x1b04c0(0x1f2)+_0x5cc656['name']+_0x1b04c0(0x1ea),logger['info'](_0xcf0089);const _0xc6f889={};_0xc6f889[_0x1b04c0(0x14e)]=WS_EVENTS['LOG'],_0xc6f889[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils['sendEventToBackend'](_0x89fe0f,_0xc6f889),_0x138d77=_0x5cc656[_0x1b04c0(0x259)],_0x4c1666=_0x5cc656[_0x1b04c0(0x25f)],_0x489b50=_0x5cc656[_0x1b04c0(0x181)],_0x459179=_0x5cc656[_0x1b04c0(0x212)],_0x25ce5a=_0x5cc656[_0x1b04c0(0x25d)],_0x2f847c=_0x5cc656['vpc'],securityGroups=_0x5cc656[_0x1b04c0(0x1c4)],subnets=_0x5cc656[_0x1b04c0(0x21d)],_0x3ee750=_0x5cc656[_0x1b04c0(0x1cd)],_0x501916=_0x5cc656[_0x1b04c0(0x153)],_0x54a841=_0x5cc656[_0x1b04c0(0x265)],_0x58c612=_0x37775c[_0x1b04c0(0x279)],_0x459630=_0x37775c[_0x1b04c0(0x18a)];if(_0x23609c['BLnRx'](_0x5cc656[_0x1b04c0(0x1f3)],undefined)&&_0x5cc656[_0x1b04c0(0x1f3)]){if(_0x23609c[_0x1b04c0(0x211)](_0x23609c[_0x1b04c0(0x198)],_0x23609c[_0x1b04c0(0x1a9)]))global_registry[_0x1b04c0(0x1aa)]=!![];else throw _0x509d20;}_0x23609c[_0x1b04c0(0x233)](updateGlobalRegistryWithConfig,_0x138d77,_0x4c1666,_0x489b50,_0x459179,_0x25ce5a,_0x3ee750,_0x5cc656,_0x58c612,_0x459630,_0x501916,_0x54a841);}else _0x3ca4a3[_0x1b04c0(0x239)](_0x23609c[_0x1b04c0(0x205)]),_0xb7df36[_0x1b04c0(0x15b)](0x1);}else{const _0xf62571=_0x23609c[_0x1b04c0(0x1fb)][_0x1b04c0(0x27a)]('|');let _0x3a569b=0x0;while(!![]){switch(_0xf62571[_0x3a569b++]){case'0':global_registry['hubVersion']=_0x37775c['hubVersion'];continue;case'1':global_registry['browserVersion']=_0x37775c[_0x1b04c0(0x18a)];continue;case'2':global_registry[_0x1b04c0(0x259)]=_0x138d77;continue;case'3':const _0x3faae3={};_0x3faae3[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x3faae3[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x3faae3);continue;case'4':_0xcf0089=_0x1b04c0(0x1e5)+_0x3fed32+_0x1b04c0(0x26d)+_0x4c1666+'\x27';continue;case'5':logger[_0x1b04c0(0x247)](_0xcf0089);continue;case'6':global_registry['clusterName']=_0x4c1666;continue;case'7':global_registry[_0x1b04c0(0x177)]=_0x489b50;continue;case'8':const _0x44f87a={};_0x44f87a[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x169)],_0x44f87a['message']='CLI\x20run\x20started',webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x44f87a);continue;}break;}}const _0x3590fa=_0x23609c[_0x1b04c0(0x16f)](getCloudProviderObject,_0x138d77,_0x4c1666,_0x3fed32,_0x89fe0f,webSocketUtils),_0x11d64b=_0x2be0d4[_0x1b04c0(0x259)]||{};if(_0x23609c['lTDiQ'](_0x11d64b[_0x138d77],undefined)){logger[_0x1b04c0(0x247)](_0x23609c[_0x1b04c0(0x1e3)]);_0x23609c[_0x1b04c0(0x1ff)](_0x2be0d4[_0x1b04c0(0x259)],undefined)&&(_0x2be0d4['cloudProvider']={});_0x2be0d4[_0x1b04c0(0x259)][_0x138d77]={};const _0xcf9820=await _0x23609c[_0x1b04c0(0x19a)](inputCloudProviderKeys,_0x138d77,_0x2be0d4,_0x3590fa);fs[_0x1b04c0(0x204)](_0x23609c[_0x1b04c0(0x24b)](getCredentialsPath),JSON[_0x1b04c0(0x21a)](_0xcf9820)),logger[_0x1b04c0(0x157)](_0x23609c[_0x1b04c0(0x1d5)]);}else{_0xcf0089=_0x23609c[_0x1b04c0(0x225)];const _0x2a8111={};_0x2a8111['type']=WS_EVENTS[_0x1b04c0(0x203)],_0x2a8111[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x2a8111),logger[_0x1b04c0(0x247)](_0xcf0089),await _0x3590fa['fetchLocalCreds'](_0x11d64b);}_0x3590fa[_0x1b04c0(0x187)]();let _0xfa9ef5;if(_0x23609c[_0x1b04c0(0x217)](_0x7a1151,![])){_0xcf0089=_0x1b04c0(0x1ee)+_0x489b50+').';const _0x241d82={};_0x241d82[_0x1b04c0(0x14e)]=WS_EVENTS['LOG'],_0x241d82[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x241d82),logger[_0x1b04c0(0x247)](_0xcf0089);const _0xb75f1b=await _0x3590fa[_0x1b04c0(0x21e)]();if(_0xb75f1b){const _0x4d654f={};_0x4d654f[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x4d654f[_0x1b04c0(0x26c)]=_0x1b04c0(0x24e)+_0x4c1666+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x4d654f,_0x23609c[_0x1b04c0(0x21b)]),logger[_0x1b04c0(0x247)](_0x1b04c0(0x24e)+_0x4c1666+_0x1b04c0(0x263)),_0x7a1151=!![];}else{const _0x367dc4={};_0x367dc4[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x367dc4['message']=_0x23609c['azENH'],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x367dc4),logger[_0x1b04c0(0x247)](_0x23609c['azENH']);const _0x56581f=_0x23609c[_0x1b04c0(0x1b7)](_0x2f847c,null)&&_0x23609c[_0x1b04c0(0x1af)](_0x2f847c,undefined),_0x46bbd3=_0x23609c[_0x1b04c0(0x1b7)](subnets,null)&&_0x23609c['sbxfn'](subnets,undefined)&&_0x23609c[_0x1b04c0(0x1ab)](subnets[_0x1b04c0(0x1b1)],0x0);if(_0x56581f){_0x23609c[_0x1b04c0(0x273)](_0x46bbd3,![])&&(_0xcf0089=_0x23609c[_0x1b04c0(0x269)],await _0x23609c['PVNEo'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c['xTdtK'],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1));const _0x14027e=await _0x3590fa[_0x1b04c0(0x17f)](_0x2f847c);_0x23609c['vfwYf'](_0x14027e,![])?(_0xcf0089=_0x23609c[_0x1b04c0(0x1fd)],await _0x23609c[_0x1b04c0(0x271)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c['ACcxd'],_0x23609c[_0x1b04c0(0x275)],_0x23609c['zJJFY']),logger[_0x1b04c0(0x239)](_0xcf0089),process['exit'](0x1)):logger[_0x1b04c0(0x247)]('Found\x20VPC:\x20'+_0x2f847c+'\x20');const _0x259ef9=await _0x3590fa['isSubnetsValid'](subnets,_0x2f847c);_0x23609c[_0x1b04c0(0x232)](_0x259ef9[0x0],![])?(_0xcf0089=_0x1b04c0(0x1b4)+_0x259ef9[0x1]+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x2f847c+_0x1b04c0(0x180),await _0x23609c['WYcCw'](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c['ACcxd'],_0x23609c[_0x1b04c0(0x1f8)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process['exit'](0x1)):logger[_0x1b04c0(0x247)](_0x1b04c0(0x174)+JSON[_0x1b04c0(0x21a)](subnets)+'\x20'),await _0x3590fa[_0x1b04c0(0x1ad)](_0x2f847c,subnets);}else{const _0x3e44b3=_0x23609c[_0x1b04c0(0x1e2)][_0x1b04c0(0x27a)]('|');let _0x3defcb=0x0;while(!![]){switch(_0x3e44b3[_0x3defcb++]){case'0':const _0x37c943={};_0x37c943[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x37c943[_0x1b04c0(0x26c)]=_0x23609c[_0x1b04c0(0x199)],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x37c943);continue;case'1':const _0x2c98e8={};_0x2c98e8[_0x1b04c0(0x14e)]=WS_EVENTS['LOG'],_0x2c98e8[_0x1b04c0(0x26c)]=_0x1b04c0(0x231),webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x2c98e8);continue;case'2':logger['info'](_0x23609c[_0x1b04c0(0x19c)]);continue;case'3':logger['info'](_0x23609c[_0x1b04c0(0x199)]);continue;case'4':await _0x3590fa[_0x1b04c0(0x1ad)]();continue;}break;}}}}_0x7a1151&&_0x23609c[_0x1b04c0(0x251)](_0x138d77,AZURE)&&(global_registry[_0x1b04c0(0x258)]=_0x37775c[_0x1b04c0(0x22e)],await _0x3590fa[_0x1b04c0(0x252)](),await _0x3590fa[_0x1b04c0(0x1a3)]());const [_0x89eaf8,_0x306adc,_0xe99feb,_0x5aa546,_0xa4a0f8,_0x36c623]=await _0x23609c[_0x1b04c0(0x152)](createK8sClient,_0x3590fa);_0x23609c[_0x1b04c0(0x217)](_0x7a1151,![])&&_0x23609c[_0x1b04c0(0x245)](_0x138d77,AWS)&&(_0xfa9ef5=await _0x3590fa[_0x1b04c0(0x1f5)](_0x89eaf8,_0x133bef));try{_0xde8b46=_0x23609c[_0x1b04c0(0x168)](kebabCase,_0x3fed32),logger[_0x1b04c0(0x247)](_0x23609c[_0x1b04c0(0x1d4)]);const _0x1ab002={};_0x1ab002['type']=WS_EVENTS[_0x1b04c0(0x203)],_0x1ab002[_0x1b04c0(0x26c)]=_0x23609c[_0x1b04c0(0x1d4)],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x1ab002);if(_0x23609c[_0x1b04c0(0x1cf)](_0xde8b46,_0x23609c[_0x1b04c0(0x276)])){const _0x83d937={};_0x83d937[_0x1b04c0(0x17b)]=_0x23609c[_0x1b04c0(0x150)],_0x83d937[_0x1b04c0(0x216)]=_0x23609c[_0x1b04c0(0x150)];const _0x4ca5b9={};_0x4ca5b9[_0x1b04c0(0x192)]=_0xde8b46,_0x4ca5b9[_0x1b04c0(0x197)]=_0x83d937;const _0x5d7641={};_0x5d7641[_0x1b04c0(0x23f)]=_0x4ca5b9;let _0x39fb83=_0x5d7641;await _0x89eaf8['createNamespace'](_0x39fb83),logger[_0x1b04c0(0x247)](_0x23609c['tVZlY']);}const _0x15c561={};_0x15c561[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x15c561[_0x1b04c0(0x26c)]=_0x23609c[_0x1b04c0(0x22b)],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x15c561);const _0x73812b={};_0x73812b[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x73812b[_0x1b04c0(0x26c)]=_0x23609c[_0x1b04c0(0x1fc)],webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x73812b),logger[_0x1b04c0(0x247)](_0x23609c[_0x1b04c0(0x24a)]);let _0x332b2f={};_0x23609c['csclZ'](_0x138d77,AZURE)&&(_0x332b2f={'clientId':await _0x3590fa[_0x1b04c0(0x18e)](_0x1b04c0(0x24c)+_0x4c1666)});await _0x23609c['GlhHU'](addGridComponents,_0x89eaf8,_0x306adc,_0xe99feb,_0x5aa546,_0xde8b46,_0x4c1666,_0xfa9ef5,_0xa4a0f8,_0x36c623,_0x332b2f),_0xcf0089=_0x23609c[_0x1b04c0(0x16e)],logger[_0x1b04c0(0x247)](_0xcf0089);const _0x222c48={};_0x222c48['type']=WS_EVENTS[_0x1b04c0(0x203)],_0x222c48[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils['sendEventToBackend'](_0x89fe0f,_0x222c48),_0xcf0089=_0x23609c[_0x1b04c0(0x1b2)],logger[_0x1b04c0(0x247)](_0xcf0089);const _0x180a22={};_0x180a22['type']=WS_EVENTS['LOG'],_0x180a22['message']=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x180a22),await webSocketUtils['delay'](0xea60);const _0x3cb517=await _0x23609c['ojLjL'](getNamespaceUID,_0x89eaf8,_0xde8b46);let _0x5165fd=global_registry[_0x1b04c0(0x1aa)]?_0x23609c[_0x1b04c0(0x1fa)]:_0x23609c['RoOlh'],_0x5185ce=await _0x89eaf8[_0x1b04c0(0x229)](_0x5165fd,_0x23609c[_0x1b04c0(0x26a)]),_0x27b40e=_0x3590fa[_0x1b04c0(0x220)](_0x5185ce)+'/'+_0xde8b46,_0xbae292=_0x23609c[_0x1b04c0(0x16b)];try{const _0x5915b8={'url':'https://'+AG_API_URL+_0x1b04c0(0x1d7)+_0x3cb517,..._0x275b28},_0x56404a=_0x5915b8,_0x220fe5=await _0x23609c['emlYz'](promisifiedRequest,_0x56404a);(_0x23609c[_0x1b04c0(0x245)](_0x220fe5,null)||_0x23609c[_0x1b04c0(0x245)](_0x220fe5,undefined))&&(_0xcf0089=_0x23609c[_0x1b04c0(0x22c)],await _0x23609c[_0x1b04c0(0x1d2)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c['ewOKI'],_0x23609c['zJJFY']),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1));_0x23609c[_0x1b04c0(0x251)](_0x220fe5['statusCode'],0x191)&&(_0xcf0089=_0x23609c['dWVcC'],await _0x23609c[_0x1b04c0(0x268)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x1d0)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process['exit'](0x1));_0x23609c['SEzec'](_0x220fe5[_0x1b04c0(0x209)],0xc8)&&(_0xcf0089='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x1b04c0(0x21a)](_0x220fe5),await _0x23609c[_0x1b04c0(0x1ce)](reportToGalactusAndSendToEDS,_0x133bef,_0x89fe0f,_0xcf0089,messageTypes[_0x1b04c0(0x240)],_0x23609c[_0x1b04c0(0x1ba)],_0x23609c[_0x1b04c0(0x19f)],_0x23609c[_0x1b04c0(0x1a6)]),logger[_0x1b04c0(0x239)](_0xcf0089),process[_0x1b04c0(0x15b)](0x1));const _0x47accc=JSON[_0x1b04c0(0x23b)](_0x220fe5[_0x1b04c0(0x1df)]);_0x47accc[_0x1b04c0(0x170)]&&(_0x27b40e=_0x47accc[_0x1b04c0(0x170)],_0xbae292=_0x23609c['CVrou']),global_registry[_0x1b04c0(0x1aa)]&&(_0xbae292=_0x23609c['qRlkg']);}catch(_0x2972ae){}_0xcf0089='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x27b40e+'\x20',logger[_0x1b04c0(0x247)](_0xcf0089);const _0x2c2b13={};_0x2c2b13[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0x2c2b13[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils['sendEventToBackend'](_0x89fe0f,_0x2c2b13),_0xcf0089='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0xbae292+_0x1b04c0(0x226)+_0x27b40e+'/wd/hub',logger[_0x1b04c0(0x247)](_0xcf0089);const _0xff536b={};_0xff536b[_0x1b04c0(0x14e)]=WS_EVENTS[_0x1b04c0(0x203)],_0xff536b[_0x1b04c0(0x26c)]=_0xcf0089,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0xff536b);const _0x41dffa={};_0x41dffa[_0x1b04c0(0x14e)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x41dffa['message']='CLI\x20run\x20finished:\x20'+_0x27b40e,webSocketUtils[_0x1b04c0(0x1b6)](_0x89fe0f,_0x41dffa),await webSocketUtils[_0x1b04c0(0x1f1)](0x7d0);}catch(_0xeca5e6){if(_0x23609c[_0x1b04c0(0x19b)](_0x7a1151,![]))try{logger[_0x1b04c0(0x247)](_0x1b04c0(0x25b)),await _0x23609c['uRWxJ'](removeGridComponents,_0x89eaf8,_0x306adc,_0xe99feb,_0x5aa546,_0xde8b46),await _0x3590fa[_0x1b04c0(0x18f)](_0x89eaf8,global_registry[_0x1b04c0(0x177)]);}catch(_0x4f219a){throw _0x4f219a;}throw _0xeca5e6;}}catch(_0x5b9740){const _0x12acba='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x5b9740+'\x20\x0a'+JSON[_0x1b04c0(0x21a)](_0x5b9740)+'\x20';if(_0x89fe0f){const _0x5e2eb8={};_0x5e2eb8[_0x1b04c0(0x14e)]=WS_EVENTS['LOG'],_0x5e2eb8[_0x1b04c0(0x26c)]=_0x12acba,webSocketUtils['sendEventToBackend'](_0x89fe0f,_0x5e2eb8,_0x23609c[_0x1b04c0(0x1a6)],!![]);}await webSocketUtils[_0x1b04c0(0x1f1)](0x7d0);const _0x3152ae={};_0x3152ae[_0x1b04c0(0x239)]=_0x12acba,await _0x23609c['Rnflw'](sendInstrumentationEvent,_0x133bef,_0x23609c[_0x1b04c0(0x1ba)],messageTypes['ERROR'],_0x23609c[_0x1b04c0(0x253)],_0x3152ae,_0x133bef),logger['error'](_0x12acba);}process[_0x1b04c0(0x15b)](0x0);};
1
+ const a10_0x3001d3=a10_0x32cb;(function(_0x372e7a,_0x49d01f){const _0x54b7ec=a10_0x32cb,_0x3b0ae9=_0x372e7a();while(!![]){try{const _0xbf1b7e=parseInt(_0x54b7ec(0x1f6))/0x1*(parseInt(_0x54b7ec(0x191))/0x2)+parseInt(_0x54b7ec(0x264))/0x3+-parseInt(_0x54b7ec(0x23d))/0x4+-parseInt(_0x54b7ec(0x1e5))/0x5+parseInt(_0x54b7ec(0x15a))/0x6*(parseInt(_0x54b7ec(0x138))/0x7)+-parseInt(_0x54b7ec(0x26f))/0x8*(-parseInt(_0x54b7ec(0x1f4))/0x9)+-parseInt(_0x54b7ec(0x258))/0xa;if(_0xbf1b7e===_0x49d01f)break;else _0x3b0ae9['push'](_0x3b0ae9['shift']());}catch(_0x4c3a73){_0x3b0ae9['push'](_0x3b0ae9['shift']());}}}(a10_0x34fe,0xb30da));function a10_0x32cb(_0x59eb59,_0x5decd4){const _0x34fe99=a10_0x34fe();return a10_0x32cb=function(_0x32cb5b,_0x3b30e6){_0x32cb5b=_0x32cb5b-0x134;let _0x5ca99b=_0x34fe99[_0x32cb5b];return _0x5ca99b;},a10_0x32cb(_0x59eb59,_0x5decd4);}const fs=require('fs'),ws=require('ws'),util=require(a10_0x3001d3(0x266)),ReconnectingWebSocket=require('reconnecting-websocket'),request=require(a10_0x3001d3(0x1f0)),{v4:uuidv4}=require(a10_0x3001d3(0x1d9)),webSocketUtils=require(a10_0x3001d3(0x192)),{logger}=require(a10_0x3001d3(0x20c)),{inputCloudProviderKeys}=require(a10_0x3001d3(0x13c)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a10_0x3001d3(0x181)),{getCloudProviderObject}=require(a10_0x3001d3(0x15d)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x3001d3(0x173)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x3001d3(0x1d2)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a10_0x3001d3(0x158)),promisifiedRequest=util[a10_0x3001d3(0x1ae)](request);function a10_0x34fe(){const _0x451405=['description','username','TjCCO','TsgSY','https://','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','kBoeH','FlBBU','hRiXu','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','../../utils/instrumentationUtils','fCzMo','18iRbJWE','rfjoP','gridProfileId','../../cloudproviders/utils','GdLWK','SJUAI','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','cfYbO','WapMB','XArVw','browserVersion','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','getGridHostname','xPIrG','cloudProvider','umhOf','updatePreSpawnedCluster','options','NIetd','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','create','existsSync','HxDjY','isPrivateGrid','LsbAW','../../config/constants','PeuQw','IKCUm','smrBw','pre-spawned-subnets-not-selected','grid','YzdLc','WjFuA','Found\x20Subnets:\x20','MnGyD','exit','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','cSbHv','HRJhi','../../utils/utilityMethods','clusterName','gridProfiles','CLI\x20run\x20finished:\x20','UmUiY','help','annotations','vtEQn','zxaCt','Found\x20VPC:\x20','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','dlEaU','AMXQB','private-ingress-nginx-controller','create-grid-checks-auth-failed','lTclK','90730unzYGw','../../utils/webSocketUtils','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','LOG','jMRtU','UeuEf','Create\x20a\x20new\x20Automation\x20grid.','Create\x20a\x20private/public\x20grid.','MaoNT','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','eACIw','create-grid-checks-invalid-profile','3|2|0|7|5|8|6|1|4','evluk','includes','ohFko','jwQFk','Aiopy','swUbT','gOegF','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','RIxOJ','htUHz','minNodes','yhtCn','s3BucketName','defaultGridProfile','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','password','promisify','\x20are\x20not\x20present\x20in\x20VPC:\x20','isClusterPresent','true','keNPy','isVPCPresent','Spawning\x20the\x20grid\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','toLowerCase','create-grid-called','securityGroups','bJTnj','deleteCluster','Adding\x20Websocket\x20listeners','://','configureIfNotConfigured','fetchLocalCreds','mEHNv','AkvSN','JUdtg','\x27\x20grid\x20profile','JeMLX','Cluster\x20','CXPXM','metadata','qkrKr','LhSII','CLI_RUN_STARTED','INFO','JrnOc','AweVX','stringify','getResourceClientId','createOtherResources','EDtxq','handler','../../utils/gridComponents','name','statusCode','YrENF','split','get-grid-url-auth-failed','McqWM','uuid','JgTTS','pBGiI','OLssf','nIYNf','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','\x20using\x20\x27','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','message','createdBy','AVWwP','<UsernamePlaceholder>','4388020zNUyRP','private-grid','dYyGl','Deleting\x20the\x20CloudFormation\x20Stacks','gridName','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','Uefom','CLI\x20run\x20started','replace','bstackAccesskey','PBXmf','request','TcNEK','VYVNT','wPkgb','9bWxUeF','Fysrp','29FyyInT','ingress-nginx','create-grid-checks-grid-already-exists','grid-profile','auth','Cluster\x20created\x20successfully','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','ibyyo','Kuwrr','YYVRI','bIBzh','bGHcj','lupwU','ACPjc','zIatK','managedBy','setupNewCluster','BcGYc','AvITE','ingress-nginx-controller','Grid\x20can\x20be\x20accessed\x20at:\x20','grid-spawning-failed','../../config/logger','oZFZj','gridProfile','wAFJS','IphAH','VFKUj','create-grid-checks-non-200','yWgGq','debug','sJlMF','epilogue','s3Bucket','PgOgD','uIZyB','ydsdr','oMTDw','hfokr','\x20in\x20existing\x20cluster\x20\x27','alreadyPresent','maxNodes','GAPgN','aEnqp','cluster-name','user','fkIzu','type','RohNS','iQXZi','sendEventToBackend','Jmbzd','pioSd','hubVersion','nCFwW','ijTxB','ERROR','body','bstackUsername','subnets','clusterRegion','GsiNk','WMdjk','Namespace\x20Created','https','HlXBy','concurrency','wuVGO','info','init-not-called','connectionTimeout','429328RIzIVJ','dDnCM','prespawned-cluster-args-not-passed','kmfjQ','warn','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','GXnwJ','VYTRE','Subnets:\x20','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','delay','get-grid-url-null-response','eZOVi','PCUoj','Oltdj','fBVbu','grid-name','Grid\x20profile\x20fetched\x20from\x20backend','eswaR','BZzGe','route53','vrFVR','vOwKc','Hwagy','Namespace\x20created','/packages/cli/get-grid-url?gridIdentifier=','ikujd','18234340QiUDcS','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','IkmxJ','waFmG','lZnHl','s3bucket','2|4|3|0|1','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hSLjC','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','argv','command','788598SLSvqt','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','util','mycaW','parse','GOMkY','GET','OSytz','bkKPD','error','fDrET','6900200otEYsi','xKmSj','PzNBe','tbboi','readNamespacedService','XEBCQ','2568524ajEcOO','pGVeY','Grid\x20spawned\x20on\x20the\x20cluster','setupAutoscaler','../../utils/userInput','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','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.','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','writeFileSync','create-grid-checks-null-response','WebSocket','cNDqi','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','ggbyg','cloud-provider','QLsBU','region','hEpTk','privateGrid','IxsFW'];a10_0x34fe=function(){return _0x451405;};return a10_0x34fe();}exports[a10_0x3001d3(0x263)]=a10_0x3001d3(0x178),exports['desc']=a10_0x3001d3(0x197),exports['builder']=function(_0x119d39){const _0xec252e=a10_0x3001d3,_0x1f0ac6={};_0x1f0ac6[_0xec252e(0x207)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x1f0ac6['cfYbO']='string',_0x1f0ac6[_0xec252e(0x200)]=_0xec252e(0x1b5),_0x1f0ac6[_0xec252e(0x190)]=_0xec252e(0x141),_0x1f0ac6['ACPjc']=_0xec252e(0x160),_0x1f0ac6['zIatK']=_0xec252e(0x16d),_0x1f0ac6[_0xec252e(0x170)]=_0xec252e(0x198),_0x1f0ac6['wPkgb']=_0xec252e(0x186);const _0x304598=_0x1f0ac6,_0x34a2ab={};_0x34a2ab[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x207)],_0x34a2ab[_0xec252e(0x225)]=_0x304598['cfYbO'];const _0x47218f={};_0x47218f['description']=_0x304598[_0xec252e(0x200)],_0x47218f[_0xec252e(0x225)]=_0x304598[_0xec252e(0x161)];const _0x4dba77={};_0x4dba77[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x190)],_0x4dba77[_0xec252e(0x225)]=_0x304598['cfYbO'];const _0x51b7b5={};_0x51b7b5[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x203)],_0x51b7b5[_0xec252e(0x225)]=_0x304598['cfYbO'];const _0x3d730e={};_0x3d730e[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x204)],_0x3d730e[_0xec252e(0x225)]=_0x304598[_0xec252e(0x161)];const _0x32a7d9={};_0x32a7d9[_0xec252e(0x14e)]=_0x304598[_0xec252e(0x170)],_0x32a7d9[_0xec252e(0x225)]=_0x304598[_0xec252e(0x161)];const _0x56ec54={};return _0x56ec54[_0xec252e(0x24d)]=_0x34a2ab,_0x56ec54['grid-profile']=_0x47218f,_0x56ec54[_0xec252e(0x222)]=_0x4dba77,_0x56ec54['cloud-provider']=_0x51b7b5,_0x56ec54[_0xec252e(0x14a)]=_0x3d730e,_0x56ec54[_0xec252e(0x1e6)]=_0x32a7d9,_0x119d39['usage'](HELP_HEADER_MESSAGE[_0xec252e(0x16e)])[_0xec252e(0x216)](HELP_FOOTER_MESSAGE)[_0xec252e(0x16b)](_0x56ec54)[_0xec252e(0x186)](_0x304598[_0xec252e(0x1f3)])[_0xec252e(0x262)];},exports[a10_0x3001d3(0x1d1)]=async function(_0x1dd5d9){const _0x5c2704=a10_0x3001d3,_0x26a945={'dYyGl':_0x5c2704(0x26d),'fBVbu':_0x5c2704(0x241),'AweVX':_0x5c2704(0x236),'vrFVR':'http','tQlKY':_0x5c2704(0x261),'YzdLc':_0x5c2704(0x242),'PCUoj':'string','jMRtU':_0x5c2704(0x1b5),'cSbHv':_0x5c2704(0x141),'keNPy':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','SJUAI':_0x5c2704(0x16d),'lJVPQ':'Create\x20a\x20private/public\x20grid.','bJTnj':_0x5c2704(0x186),'IxsFW':_0x5c2704(0x19d),'YYVRI':function(_0x467c04){return _0x467c04();},'TsgSY':function(_0x5acc1c,_0x4b22c0){return _0x5acc1c===_0x4b22c0;},'iQXZi':_0x5c2704(0x233),'fkIzu':_0x5c2704(0x210),'PzNBe':_0x5c2704(0x25f),'UeuEf':function(_0x25486f,_0x205ad0,_0x43f6fd,_0x53d0d3,_0x1c535d,_0x1879c7,_0x7b7b6d){return _0x25486f(_0x205ad0,_0x43f6fd,_0x53d0d3,_0x1c535d,_0x1879c7,_0x7b7b6d);},'Kuwrr':_0x5c2704(0x1b7),'OSytz':_0x5c2704(0x23b),'dlEaU':function(_0xac728a){return _0xac728a();},'mycaW':_0x5c2704(0x1e4),'eZOVi':'<PasswordPlaceholder>','MaoNT':_0x5c2704(0x1bb),'smrBw':function(_0x2b79b9,_0x1ece7d){return _0x2b79b9===_0x1ece7d;},'Oltdj':_0x5c2704(0x174),'ZLCoP':function(_0x564c80,_0x29b1e7){return _0x564c80!==_0x29b1e7;},'CXPXM':'WUllu','WMdjk':_0x5c2704(0x1f1),'xPIrG':_0x5c2704(0x1e0),'sJlMF':function(_0x4b465b,_0x2607eb,_0x5d1cdf,_0x1b8eec,_0x254ba2,_0x35b3f1,_0x24a6c0,_0x299d0a){return _0x4b465b(_0x2607eb,_0x5d1cdf,_0x1b8eec,_0x254ba2,_0x35b3f1,_0x24a6c0,_0x299d0a);},'cbiGM':_0x5c2704(0x23f),'nCFwW':_0x5c2704(0x24f),'nPcfk':_0x5c2704(0x246),'yhtCn':function(_0x405440,_0x466cb2,_0x8de645,_0x1ea837,_0x100cb6,_0x328fce,_0xf9ade3,_0x3b95d1){return _0x405440(_0x466cb2,_0x8de645,_0x1ea837,_0x100cb6,_0x328fce,_0xf9ade3,_0x3b95d1);},'KQnBA':'non-aws-azure-cluster','pBGiI':function(_0x17cd64,_0x1500bb){return _0x17cd64===_0x1500bb;},'VBNIy':_0x5c2704(0x1b1),'RIxOJ':_0x5c2704(0x1d0),'IKCUm':_0x5c2704(0x221),'YWHYl':'ikNtF','AVWwP':_0x5c2704(0x26a),'Hwagy':function(_0x4f966a,_0x9bdb29){return _0x4f966a(_0x9bdb29);},'GdLWK':function(_0x3808fe,_0x45984c){return _0x3808fe===_0x45984c;},'GAPgN':function(_0x235568,_0x378056){return _0x235568===_0x378056;},'dDnCM':function(_0x24909e,_0x1663b8){return _0x24909e!==_0x1663b8;},'ydsdr':_0x5c2704(0x1c8),'umhOf':_0x5c2704(0x219),'kmfjQ':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','hfokr':_0x5c2704(0x143),'jwQFk':function(_0x35c84d,_0x26b61e){return _0x35c84d===_0x26b61e;},'gOegF':function(_0xaf9921,_0x4e334f){return _0xaf9921!==_0x4e334f;},'vOwKc':_0x5c2704(0x155),'hRiXu':_0x5c2704(0x139),'YrENF':_0x5c2704(0x165),'IijOR':_0x5c2704(0x18f),'VFKUj':function(_0x9be88f,_0x4b3c00){return _0x9be88f!==_0x4b3c00;},'agrws':'TiaSk','oMTDw':_0x5c2704(0x154),'pioSd':_0x5c2704(0x212),'Aiopy':_0x5c2704(0x24e),'PgOgD':function(_0x1b57f7,_0x4f65d3){return _0x1b57f7!==_0x4f65d3;},'VXFtH':_0x5c2704(0x1c7),'cNDqi':_0x5c2704(0x157),'PBXmf':_0x5c2704(0x1f8),'WjFuA':function(_0xb09f0,_0x2bc4f3){return _0xb09f0!==_0x2bc4f3;},'WapMB':_0x5c2704(0x147),'HlXBy':function(_0xdbd23a,_0x3414f5){return _0xdbd23a===_0x3414f5;},'BZzGe':function(_0x577c56,_0x58745f){return _0x577c56!==_0x58745f;},'wuVGO':_0x5c2704(0x16c),'rfjoP':_0x5c2704(0x25b),'tbboi':_0x5c2704(0x1de),'QLsBU':function(_0x411372,_0x2edde7,_0x7518f9,_0x94a6c,_0x111a6b,_0x4e1266,_0x577bd3,_0x4ea26f){return _0x411372(_0x2edde7,_0x7518f9,_0x94a6c,_0x111a6b,_0x4e1266,_0x577bd3,_0x4ea26f);},'AMXQB':_0x5c2704(0x19c),'fCzMo':function(_0x34691f,_0x42d9a3){return _0x34691f===_0x42d9a3;},'JrnOc':function(_0x1f50db,_0x425d2f){return _0x1f50db!==_0x425d2f;},'xKmSj':_0x5c2704(0x19b),'hEpTk':_0x5c2704(0x1da),'WvgWH':_0x5c2704(0x25c),'MnGyD':function(_0xa8bddd,_0x1ef569,_0x46cb28,_0x4d8d02,_0x57c1bf,_0x5e9604,_0x442e9f,_0x1332f1,_0x2339e1,_0x3976e5,_0x12b709,_0x42607f){return _0xa8bddd(_0x1ef569,_0x46cb28,_0x4d8d02,_0x57c1bf,_0x5e9604,_0x442e9f,_0x1332f1,_0x2339e1,_0x3976e5,_0x12b709,_0x42607f);},'McqWM':'2|3|6|0|4|1|8|5|7','LsbAW':function(_0x36fd2e,_0x37ef87,_0x473354,_0x350463,_0x5c8ed0,_0x1e3147){return _0x36fd2e(_0x37ef87,_0x473354,_0x350463,_0x5c8ed0,_0x1e3147);},'htUHz':function(_0x1b1fea,_0xdf405d){return _0x1b1fea===_0xdf405d;},'LcqEq':_0x5c2704(0x1ea),'fDrET':function(_0x223771,_0x20d846){return _0x223771===_0x20d846;},'RohNS':function(_0x123714,_0x445509,_0x574f8d,_0x5c4ef2){return _0x123714(_0x445509,_0x574f8d,_0x5c4ef2);},'bkKPD':_0x5c2704(0x146),'ijTxB':_0x5c2704(0x140),'AkvSN':_0x5c2704(0x1fc),'JeMLX':function(_0x28be06,_0x494947){return _0x28be06!=_0x494947;},'EfbgJ':function(_0x1174bb,_0x1f52c0){return _0x1174bb!==_0x1f52c0;},'jLBXe':function(_0x40046d,_0x5de5bc){return _0x40046d>_0x5de5bc;},'TjCCO':function(_0x19c7f5,_0x1efcfa){return _0x19c7f5===_0x1efcfa;},'VYTRE':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','wAFJS':_0x5c2704(0x177),'XArVw':_0x5c2704(0x193),'bGHcj':'pre-spawned-invalid-vpc','cemMG':'pre-spawned-invalid-subnets','lupwU':_0x5c2704(0x25e),'Jmbzd':_0x5c2704(0x1fb),'ibyyo':_0x5c2704(0x13f),'Fysrp':function(_0xa4e6ab,_0x75d3df){return _0xa4e6ab===_0x75d3df;},'yWgGq':function(_0x34cbe4,_0x56a087){return _0x34cbe4(_0x56a087);},'fQXJG':function(_0x5adfbc,_0x4d6daa){return _0x5adfbc===_0x4d6daa;},'QDMbH':function(_0x3502a2,_0x378025){return _0x3502a2==_0x378025;},'Uefom':'Creating\x20namespace','HRJhi':function(_0x2a09e8,_0x4a964c){return _0x2a09e8!==_0x4a964c;},'RbDOW':'default','UmUiY':'Browserstack','mEHNv':_0x5c2704(0x235),'hSLjC':_0x5c2704(0x255),'JUdtg':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','OLssf':'Spawning\x20Grid\x20on\x20the\x20Cluster','wqqUq':function(_0xb4279e,_0x281de2){return _0xb4279e===_0x281de2;},'swUbT':function(_0x21e27b,_0x2e2db3,_0x14ec03,_0x387eaf,_0x5bf792,_0x36894d,_0x159507,_0x39d5a8,_0x44c59c,_0x4bef8d,_0x31778f){return _0x21e27b(_0x2e2db3,_0x14ec03,_0x387eaf,_0x5bf792,_0x36894d,_0x159507,_0x39d5a8,_0x44c59c,_0x4bef8d,_0x31778f);},'evluk':_0x5c2704(0x13a),'zxaCt':_0x5c2704(0x19a),'MwsZK':function(_0x5233eb,_0x314f76,_0x579f02){return _0x5233eb(_0x314f76,_0x579f02);},'vtEQn':_0x5c2704(0x18e),'GXnwJ':_0x5c2704(0x209),'oZFZj':_0x5c2704(0x1f7),'GOMkY':function(_0x70583c,_0x3b6e69){return _0x70583c(_0x3b6e69);},'AvITE':function(_0x248f1d,_0x508d3f){return _0x248f1d==_0x508d3f;},'IIcyb':function(_0x1cdc00,_0x17b556){return _0x1cdc00==_0x17b556;},'VYVNT':_0x5c2704(0x1a5),'XEBCQ':function(_0x1cb5aa,_0x5e7433,_0xc2a1f4,_0x1178c9,_0x13c86d,_0x4e0dab,_0x3ec4ce,_0x291dca){return _0x1cb5aa(_0x5e7433,_0xc2a1f4,_0x1178c9,_0x13c86d,_0x4e0dab,_0x3ec4ce,_0x291dca);},'bjMDi':_0x5c2704(0x248),'IkmxJ':function(_0x19611b,_0x13ce3c){return _0x19611b===_0x13ce3c;},'pXJPX':_0x5c2704(0x13d),'ikujd':_0x5c2704(0x1d7),'nIYNf':'get-grid-url-non-200','ohFko':function(_0x212250,_0x215370,_0x294380,_0x2f1644,_0x36e637,_0x5b0eae,_0x5c85f7){return _0x212250(_0x215370,_0x294380,_0x2f1644,_0x36e637,_0x5b0eae,_0x5c85f7);},'tMWdt':_0x5c2704(0x20b)};let _0x54a859=![],_0x24885d,_0x5f249d,_0x5674ae,_0x186a99,_0x490b6e,_0x209796,_0x590919,_0x528161,_0x1564a7,_0x3e0648,_0x1ad787,_0x97e97c,_0x4716d0=0x1,_0x4c3bb1=0xe;try{global_registry['requestId']=_0x26a945['YYVRI'](uuidv4),global_registry[_0x5c2704(0x171)]=![];if(!fs[_0x5c2704(0x16f)](_0x26a945[_0x5c2704(0x1ff)](getCredentialsPath))){if(_0x26a945[_0x5c2704(0x151)](_0x26a945[_0x5c2704(0x227)],_0x26a945[_0x5c2704(0x224)])){const _0x1ab096={};_0x1ab096['type']=_0x50bebb[_0x5c2704(0x194)],_0x1ab096['message']=_0x126ee0,_0x3a0afd[_0x5c2704(0x228)](_0x42c636,_0x1ab096,_0x26a945[_0x5c2704(0x1e7)],!![]);}else console[_0x5c2704(0x26d)](_0x26a945[_0x5c2704(0x134)]),await _0x26a945[_0x5c2704(0x196)](sendInstrumentationEvent,_0x1dd5d9,_0x26a945['Kuwrr'],messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x26b)],null,_0x1dd5d9),process[_0x5c2704(0x17d)](0x1);}await _0x26a945[_0x5c2704(0x196)](sendInstrumentationEvent,_0x1dd5d9,_0x26a945[_0x5c2704(0x1fe)],messageTypes[_0x5c2704(0x1ca)],null,null,_0x1dd5d9);const _0x4ed58a=JSON[_0x5c2704(0x268)](fs['readFileSync'](_0x26a945[_0x5c2704(0x18c)](getCredentialsPath)));global_registry[_0x5c2704(0x230)]=_0x4ed58a[_0x5c2704(0x13e)][_0x5c2704(0x14f)],global_registry[_0x5c2704(0x1ee)]=_0x4ed58a[_0x5c2704(0x13e)][_0x5c2704(0x1ad)];const _0x52be78=WS_ENDPOINT[_0x5c2704(0x1ed)](_0x26a945[_0x5c2704(0x267)],_0x4ed58a['Browserstack'][_0x5c2704(0x14f)])[_0x5c2704(0x1ed)](_0x26a945[_0x5c2704(0x249)],_0x4ed58a[_0x5c2704(0x13e)][_0x5c2704(0x1ad)]),_0xb802c9={};_0xb802c9[_0x5c2704(0x144)]=ws,_0xb802c9[_0x5c2704(0x23c)]=0x36ee80,_0x3e0648=new ReconnectingWebSocket(_0x52be78,[],_0xb802c9),logger['debug'](_0x26a945[_0x5c2704(0x199)]),webSocketUtils['addListeners'](_0x3e0648,_0x1dd5d9[_0x5c2704(0x223)],_0x1dd5d9[_0x5c2704(0x1ad)]);let _0x5774a1=DEFAULT_GRID_NAME;if(_0x1dd5d9['clusterName']||_0x1dd5d9[_0x5c2704(0x168)]||_0x1dd5d9[_0x5c2704(0x14a)]){if(_0x26a945[_0x5c2704(0x176)](_0x26a945[_0x5c2704(0x24b)],_0x26a945[_0x5c2704(0x24b)])){!(_0x1dd5d9[_0x5c2704(0x182)]&&_0x1dd5d9[_0x5c2704(0x168)]&&_0x1dd5d9[_0x5c2704(0x14a)])&&(_0x26a945['ZLCoP'](_0x26a945[_0x5c2704(0x1c5)],_0x26a945[_0x5c2704(0x234)])?(_0x24885d=_0x26a945[_0x5c2704(0x167)],await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945['cbiGM'],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1)):_0x1c4c58[_0x5c2704(0x168)]={});if(![AWS,AZURE,GCP][_0x5c2704(0x19f)](_0x1dd5d9[_0x5c2704(0x168)][_0x5c2704(0x1b6)]())){if(_0x26a945[_0x5c2704(0x151)](_0x26a945['nCFwW'],_0x26a945[_0x5c2704(0x22c)]))_0x24885d=_0x26a945['nPcfk'],await _0x26a945[_0x5c2704(0x1a9)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945['KQnBA'],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1);else{const _0x4c7226={};_0x4c7226[_0x5c2704(0x225)]=_0x189e40[_0x5c2704(0x194)],_0x4c7226[_0x5c2704(0x1e1)]=_0x5c2704(0x1c4)+_0x358396+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x4973c7[_0x5c2704(0x228)](_0xc98cea,_0x4c7226,_0x26a945[_0x5c2704(0x24c)]),_0x27be86['info'](_0x5c2704(0x1c4)+_0x504888+_0x5c2704(0x18b)),_0x306a5d=!![];}}_0x1dd5d9[_0x5c2704(0x14c)]&&_0x26a945['pBGiI'](_0x1dd5d9[_0x5c2704(0x14c)][_0x5c2704(0x1b6)](),_0x26a945['VBNIy'])&&(_0x26a945[_0x5c2704(0x176)](_0x26a945[_0x5c2704(0x1a6)],_0x26a945['RIxOJ'])?global_registry[_0x5c2704(0x171)]=!![]:_0x347327[_0x5c2704(0x171)]=!![]),_0x54a859=!![],_0x5674ae=_0x1dd5d9['clusterName'],_0x5f249d=_0x1dd5d9[_0x5c2704(0x168)][_0x5c2704(0x1b6)](),_0x186a99=_0x1dd5d9[_0x5c2704(0x14a)];}else _0x299dc8=_0x2ffdf8[_0x5c2704(0x251)],_0x14462c=_0x26a945['AweVX'];}_0x1dd5d9[_0x5c2704(0x1e9)]&&(_0x26a945[_0x5c2704(0x1db)](_0x26a945[_0x5c2704(0x175)],_0x26a945['YWHYl'])?_0x49ecbc=_0x18a193[_0x500d30[_0x5c2704(0x20e)]]:_0x5774a1=_0x1dd5d9[_0x5c2704(0x1e9)]);global_registry[_0x5c2704(0x1e9)]=_0x5774a1;const _0x6f2f40={};_0x6f2f40[_0x5c2704(0x14f)]=_0x4ed58a['Browserstack'][_0x5c2704(0x14f)],_0x6f2f40['password']=_0x4ed58a['Browserstack']['password'];const _0x5cbcbc={};_0x5cbcbc['method']=_0x26a945[_0x5c2704(0x1e3)],_0x5cbcbc[_0x5c2704(0x1fa)]=_0x6f2f40;const _0x416183=_0x5cbcbc,_0x10b5c1='https://'+AG_API_URL+'/packages/cli/create-grid-checks',_0x1f4cdc={};_0x1f4cdc[_0x5c2704(0x1e9)]=_0x5774a1;const _0x19f658={'url':_0x10b5c1,'qs':_0x1f4cdc,..._0x416183},_0x2c052d=_0x19f658,_0x5ad05a=await _0x26a945[_0x5c2704(0x254)](promisifiedRequest,_0x2c052d);(_0x26a945[_0x5c2704(0x15e)](_0x5ad05a,null)||_0x26a945[_0x5c2704(0x220)](_0x5ad05a,undefined))&&(_0x26a945[_0x5c2704(0x23e)](_0x26a945[_0x5c2704(0x21a)],_0x26a945[_0x5c2704(0x169)])?(_0x24885d=_0x26a945[_0x5c2704(0x240)],await _0x26a945[_0x5c2704(0x1a9)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x21c)],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1)):_0xeaa9ec=_0x26a945[_0x5c2704(0x252)]);_0x26a945[_0x5c2704(0x1a1)](_0x5ad05a[_0x5c2704(0x1d4)],0x191)&&(_0x26a945[_0x5c2704(0x1a4)](_0x26a945[_0x5c2704(0x253)],_0x26a945[_0x5c2704(0x156)])?(_0x24885d=_0x26a945[_0x5c2704(0x1d5)],await _0x26a945['yhtCn'](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945['IijOR'],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1)):(_0x52ca4a[_0x5c2704(0x26d)](_0x26a945['tQlKY']),_0x118947[_0x5c2704(0x17d)](0x1)));_0x26a945[_0x5c2704(0x1a4)](_0x5ad05a[_0x5c2704(0x1d4)],0xc8)&&(_0x26a945[_0x5c2704(0x211)](_0x26a945['agrws'],_0x26a945[_0x5c2704(0x21b)])?(_0x24885d=_0x5c2704(0x17e)+JSON[_0x5c2704(0x1cd)](_0x5ad05a),await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes['ERROR'],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x22a)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1)):_0x249fc6[_0x5c2704(0x23a)]('Found\x20Subnets:\x20'+_0x56af87['stringify'](_0x353312)+'\x20'));const _0x18ad03=JSON[_0x5c2704(0x268)](_0x5ad05a['body']),_0x2bfb2a={};_0x2bfb2a[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x1c9)],_0x2bfb2a[_0x5c2704(0x1e1)]=_0x5c2704(0x1ec),webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x2bfb2a);const _0xcc2b2e={};_0xcc2b2e[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0xcc2b2e['message']=_0x26a945[_0x5c2704(0x1a2)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0xcc2b2e);if(_0x18ad03[_0x5c2704(0x21e)]){if(_0x26a945[_0x5c2704(0x218)](_0x26a945['VXFtH'],_0x26a945['VXFtH'])){const _0x30fd68={};_0x30fd68[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x179)],_0x30fd68[_0x5c2704(0x225)]=_0x26a945['PCUoj'];const _0x4d8885={};_0x4d8885[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x195)],_0x4d8885[_0x5c2704(0x225)]=_0x26a945[_0x5c2704(0x24a)];const _0x240447={};_0x240447[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x17f)],_0x240447[_0x5c2704(0x225)]=_0x26a945[_0x5c2704(0x24a)];const _0x42372d={};_0x42372d[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x1b2)],_0x42372d[_0x5c2704(0x225)]=_0x26a945['PCUoj'];const _0x4a1094={};_0x4a1094[_0x5c2704(0x14e)]=_0x26a945[_0x5c2704(0x15f)],_0x4a1094[_0x5c2704(0x225)]=_0x26a945[_0x5c2704(0x24a)];const _0x2ae999={};_0x2ae999['description']=_0x26a945['lJVPQ'],_0x2ae999[_0x5c2704(0x225)]=_0x26a945[_0x5c2704(0x24a)];const _0x2563e7={};return _0x2563e7['grid-name']=_0x30fd68,_0x2563e7[_0x5c2704(0x1f9)]=_0x4d8885,_0x2563e7[_0x5c2704(0x222)]=_0x240447,_0x2563e7[_0x5c2704(0x148)]=_0x42372d,_0x2563e7['region']=_0x4a1094,_0x2563e7[_0x5c2704(0x1e6)]=_0x2ae999,_0x2bc470['usage'](_0x37a67d[_0x5c2704(0x16e)])[_0x5c2704(0x216)](_0x245b13)[_0x5c2704(0x16b)](_0x2563e7)[_0x5c2704(0x186)](_0x26a945[_0x5c2704(0x1b9)])[_0x5c2704(0x262)];}else _0x24885d=_0x26a945[_0x5c2704(0x145)],await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x1ef)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1);}const _0x1a47c9=_0x18ad03[_0x5c2704(0x183)];let _0x2c1880=_0x1a47c9[_0x18ad03[_0x5c2704(0x1ab)]];if(_0x1dd5d9['gridProfile']){if(_0x26a945[_0x5c2704(0x17a)](_0x26a945[_0x5c2704(0x162)],_0x26a945[_0x5c2704(0x162)]))throw _0x5d53b1;else _0x2c1880=_0x1a47c9[_0x1dd5d9[_0x5c2704(0x20e)]];}if(_0x26a945[_0x5c2704(0x237)](_0x54a859,![])){if(_0x26a945['BZzGe'](_0x26a945[_0x5c2704(0x239)],_0x26a945[_0x5c2704(0x239)]))_0x342b63['info'](_0x5c2704(0x18a)+_0x4c163e+'\x20');else{_0x26a945['HlXBy'](_0x2c1880,undefined)&&(_0x26a945['smrBw'](_0x26a945[_0x5c2704(0x15b)],_0x26a945[_0x5c2704(0x15b)])?(_0x24885d=_0x26a945[_0x5c2704(0x135)],await _0x26a945[_0x5c2704(0x149)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x18d)],_0x26a945[_0x5c2704(0x1e7)]),logger['error'](_0x24885d),process[_0x5c2704(0x17d)](0x1)):_0x14ddb7[_0x5c2704(0x171)]=!![]);global_registry[_0x5c2704(0x15c)]=_0x2c1880['id'];if(_0x26a945[_0x5c2704(0x159)](_0x5f249d,AZURE)||_0x26a945[_0x5c2704(0x159)](_0x2c1880?.[_0x5c2704(0x168)],AZURE)){if(_0x26a945[_0x5c2704(0x1cb)](_0x26a945[_0x5c2704(0x270)],_0x26a945[_0x5c2704(0x14b)]))console[_0x5c2704(0x26d)](_0x26a945['tQlKY']),process['exit'](0x1);else{const _0x55e3d8=_0x26a945[_0x5c2704(0x14d)][_0x5c2704(0x1d6)]('|');let _0x5072b7=0x0;while(!![]){switch(_0x55e3d8[_0x5072b7++]){case'0':_0x4de7b4[_0x5c2704(0x23a)](_0x41f9e1);continue;case'1':_0x242d70[_0x5c2704(0x22b)]=_0x487c4a[_0x5c2704(0x22b)];continue;case'2':_0x37fe87=_0x5c2704(0x1b4)+_0x43ca79+_0x5c2704(0x21d)+_0x4de971+'\x27';continue;case'3':const _0x5018a1={};_0x5018a1[_0x5c2704(0x225)]=_0x3604f6[_0x5c2704(0x1c9)],_0x5018a1[_0x5c2704(0x1e1)]=_0x5c2704(0x1ec),_0x5c228a[_0x5c2704(0x228)](_0x4f1c8d,_0x5018a1);continue;case'4':_0x46b5e0[_0x5c2704(0x164)]=_0x409a23[_0x5c2704(0x164)];continue;case'5':_0x3d7160['cloudProvider']=_0x2b8ddd;continue;case'6':_0x469dce['clusterName']=_0x247320;continue;case'7':const _0x4c1110={};_0x4c1110['type']=_0x3142ed[_0x5c2704(0x194)],_0x4c1110[_0x5c2704(0x1e1)]=_0x452978,_0x36c344['sendEventToBackend'](_0x338160,_0x4c1110);continue;case'8':_0x14b05a[_0x5c2704(0x232)]=_0x43cd2f;continue;}break;}}}_0x24885d='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x5774a1+_0x5c2704(0x1df)+_0x2c1880[_0x5c2704(0x1d3)]+_0x5c2704(0x1c2),logger[_0x5c2704(0x23a)](_0x24885d);const _0x1c151f={};_0x1c151f[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x1c151f[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x1c151f),_0x5f249d=_0x2c1880[_0x5c2704(0x168)],_0x5674ae=_0x2c1880[_0x5c2704(0x182)],_0x186a99=_0x2c1880[_0x5c2704(0x14a)],_0x490b6e=_0x2c1880[_0x5c2704(0x238)],_0x209796=_0x2c1880['instanceType'],_0x590919=_0x2c1880['vpc'],securityGroups=_0x2c1880[_0x5c2704(0x1b8)],subnets=_0x2c1880[_0x5c2704(0x231)],_0x528161=_0x2c1880[_0x5c2704(0x25d)],_0x4716d0=_0x2c1880[_0x5c2704(0x1a8)],_0x4c3bb1=_0x2c1880[_0x5c2704(0x21f)],_0x1ad787=_0x18ad03['hubVersion'],_0x97e97c=_0x18ad03[_0x5c2704(0x164)],_0x26a945[_0x5c2704(0x250)](_0x2c1880[_0x5c2704(0x14c)],undefined)&&_0x2c1880['privateGrid']&&(_0x26a945[_0x5c2704(0x176)](_0x26a945['WvgWH'],_0x26a945['WvgWH'])?global_registry[_0x5c2704(0x171)]=!![]:_0x223928=_0x13dd03[_0x5c2704(0x1e9)]),_0x26a945[_0x5c2704(0x17c)](updateGlobalRegistryWithConfig,_0x5f249d,_0x5674ae,_0x186a99,_0x490b6e,_0x209796,_0x528161,_0x2c1880,_0x1ad787,_0x97e97c,_0x4716d0,_0x4c3bb1);}}else{const _0x5b324d=_0x26a945[_0x5c2704(0x1d8)][_0x5c2704(0x1d6)]('|');let _0x1204ca=0x0;while(!![]){switch(_0x5b324d[_0x1204ca++]){case'0':const _0x48a8de={};_0x48a8de[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x48a8de[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils['sendEventToBackend'](_0x3e0648,_0x48a8de);continue;case'1':global_registry[_0x5c2704(0x232)]=_0x186a99;continue;case'2':const _0x37d27b={};_0x37d27b['type']=WS_EVENTS[_0x5c2704(0x1c9)],_0x37d27b[_0x5c2704(0x1e1)]=_0x5c2704(0x1ec),webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x37d27b);continue;case'3':_0x24885d=_0x5c2704(0x1b4)+_0x5774a1+_0x5c2704(0x21d)+_0x5674ae+'\x27';continue;case'4':global_registry['cloudProvider']=_0x5f249d;continue;case'5':global_registry[_0x5c2704(0x22b)]=_0x18ad03[_0x5c2704(0x22b)];continue;case'6':logger['info'](_0x24885d);continue;case'7':global_registry['browserVersion']=_0x18ad03[_0x5c2704(0x164)];continue;case'8':global_registry['clusterName']=_0x5674ae;continue;}break;}}const _0x284664=_0x26a945[_0x5c2704(0x172)](getCloudProviderObject,_0x5f249d,_0x5674ae,_0x5774a1,_0x3e0648,webSocketUtils),_0x3c58c5=_0x4ed58a['cloudProvider']||{};if(_0x26a945[_0x5c2704(0x1a7)](_0x3c58c5[_0x5f249d],undefined)){logger[_0x5c2704(0x23a)](_0x26a945['LcqEq']);_0x26a945[_0x5c2704(0x26e)](_0x4ed58a[_0x5c2704(0x168)],undefined)&&(_0x4ed58a[_0x5c2704(0x168)]={});_0x4ed58a[_0x5c2704(0x168)][_0x5f249d]={};const _0x3884f7=await _0x26a945[_0x5c2704(0x226)](inputCloudProviderKeys,_0x5f249d,_0x4ed58a,_0x284664);fs[_0x5c2704(0x142)](_0x26a945[_0x5c2704(0x1ff)](getCredentialsPath),JSON[_0x5c2704(0x1cd)](_0x3884f7)),logger[_0x5c2704(0x214)](_0x26a945[_0x5c2704(0x26c)]);}else{_0x24885d=_0x26a945[_0x5c2704(0x22d)];const _0x57d6d3={};_0x57d6d3['type']=WS_EVENTS['LOG'],_0x57d6d3[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x57d6d3),logger[_0x5c2704(0x23a)](_0x24885d),await _0x284664[_0x5c2704(0x1be)](_0x3c58c5);}_0x284664[_0x5c2704(0x1bd)]();let _0x20b5e6;if(_0x26a945['pBGiI'](_0x54a859,![])){_0x24885d=_0x5c2704(0x1ac)+_0x186a99+').';const _0x229c12={};_0x229c12[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x229c12[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils['sendEventToBackend'](_0x3e0648,_0x229c12),logger[_0x5c2704(0x23a)](_0x24885d);const _0x2df98d=await _0x284664[_0x5c2704(0x1b0)]();if(_0x2df98d){const _0x1f0977={};_0x1f0977[_0x5c2704(0x225)]=WS_EVENTS['LOG'],_0x1f0977['message']=_0x5c2704(0x1c4)+_0x5674ae+_0x5c2704(0x18b),webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x1f0977,_0x26a945[_0x5c2704(0x24c)]),logger[_0x5c2704(0x23a)](_0x5c2704(0x1c4)+_0x5674ae+_0x5c2704(0x18b)),_0x54a859=!![];}else{const _0x3fefeb={};_0x3fefeb[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x3fefeb['message']=_0x26a945[_0x5c2704(0x1c0)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x3fefeb),logger[_0x5c2704(0x23a)](_0x26a945[_0x5c2704(0x1c0)]);const _0x1893f5=_0x26a945['JeMLX'](_0x590919,null)&&_0x26a945[_0x5c2704(0x1cb)](_0x590919,undefined),_0x5afc76=_0x26a945[_0x5c2704(0x1c3)](subnets,null)&&_0x26a945['EfbgJ'](subnets,undefined)&&_0x26a945['jLBXe'](subnets['length'],0x0);if(_0x1893f5){_0x26a945[_0x5c2704(0x150)](_0x5afc76,![])&&(_0x24885d=_0x26a945[_0x5c2704(0x244)],await _0x26a945[_0x5c2704(0x149)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945['Kuwrr'],_0x26a945[_0x5c2704(0x20f)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process['exit'](0x1));const _0x241a6c=await _0x284664[_0x5c2704(0x1b3)](_0x590919);_0x26a945['TjCCO'](_0x241a6c,![])?(_0x24885d=_0x26a945[_0x5c2704(0x163)],await _0x26a945[_0x5c2704(0x149)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x201)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1)):logger[_0x5c2704(0x23a)](_0x5c2704(0x18a)+_0x590919+'\x20');const _0x20d1f6=await _0x284664['isSubnetsValid'](subnets,_0x590919);_0x26a945[_0x5c2704(0x1a7)](_0x20d1f6[0x0],![])?(_0x24885d=_0x5c2704(0x245)+_0x20d1f6[0x1]+_0x5c2704(0x1af)+_0x590919+_0x5c2704(0x259),await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes['ERROR'],_0x26a945[_0x5c2704(0x1fe)],_0x26a945['cemMG'],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1)):logger[_0x5c2704(0x23a)](_0x5c2704(0x17b)+JSON[_0x5c2704(0x1cd)](subnets)+'\x20'),await _0x284664['setupNewCluster'](_0x590919,subnets);}else{const _0x214d9e=_0x26a945[_0x5c2704(0x202)]['split']('|');let _0x3b9994=0x0;while(!![]){switch(_0x214d9e[_0x3b9994++]){case'0':const _0x16e177={};_0x16e177[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x16e177[_0x5c2704(0x1e1)]='Cluster\x20created\x20successfully',webSocketUtils['sendEventToBackend'](_0x3e0648,_0x16e177);continue;case'1':logger[_0x5c2704(0x23a)](_0x26a945[_0x5c2704(0x229)]);continue;case'2':const _0x51a776={};_0x51a776[_0x5c2704(0x225)]=WS_EVENTS['LOG'],_0x51a776[_0x5c2704(0x1e1)]=_0x26a945[_0x5c2704(0x1fd)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x51a776);continue;case'3':await _0x284664[_0x5c2704(0x206)]();continue;case'4':logger['info'](_0x26a945[_0x5c2704(0x1fd)]);continue;}break;}}}}_0x54a859&&_0x26a945[_0x5c2704(0x1f5)](_0x5f249d,AZURE)&&(global_registry[_0x5c2704(0x217)]=_0x18ad03[_0x5c2704(0x1aa)],await _0x284664[_0x5c2704(0x16a)](),await _0x284664[_0x5c2704(0x1cf)]());const [_0x376c93,_0x1be476,_0x19fd84,_0x180d6e,_0x2726b4,_0x2c3642]=await _0x26a945[_0x5c2704(0x213)](createK8sClient,_0x284664);_0x26a945['fQXJG'](_0x54a859,![])&&_0x26a945['QDMbH'](_0x5f249d,AWS)&&(_0x20b5e6=await _0x284664[_0x5c2704(0x13b)](_0x376c93,_0x1dd5d9));try{_0x1564a7=_0x26a945[_0x5c2704(0x254)](kebabCase,_0x5774a1),logger['info'](_0x26a945[_0x5c2704(0x1eb)]);const _0x190172={};_0x190172[_0x5c2704(0x225)]=WS_EVENTS['LOG'],_0x190172[_0x5c2704(0x1e1)]=_0x26a945[_0x5c2704(0x1eb)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x190172);if(_0x26a945[_0x5c2704(0x180)](_0x1564a7,_0x26a945['RbDOW'])){const _0x213a53={};_0x213a53[_0x5c2704(0x1e2)]=_0x26a945[_0x5c2704(0x185)],_0x213a53[_0x5c2704(0x205)]=_0x26a945[_0x5c2704(0x185)];const _0xaee292={};_0xaee292[_0x5c2704(0x1d3)]=_0x1564a7,_0xaee292[_0x5c2704(0x187)]=_0x213a53;const _0x5e105b={};_0x5e105b[_0x5c2704(0x1c6)]=_0xaee292;let _0x25af81=_0x5e105b;await _0x376c93['createNamespace'](_0x25af81),logger[_0x5c2704(0x23a)](_0x26a945[_0x5c2704(0x1bf)]);}const _0xe75015={};_0xe75015['type']=WS_EVENTS[_0x5c2704(0x194)],_0xe75015[_0x5c2704(0x1e1)]=_0x26a945[_0x5c2704(0x260)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0xe75015);const _0x118cac={};_0x118cac[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x118cac['message']=_0x26a945[_0x5c2704(0x1c1)],webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x118cac),logger[_0x5c2704(0x23a)](_0x26a945[_0x5c2704(0x1dc)]);let _0x384073={};_0x26a945['wqqUq'](_0x5f249d,AZURE)&&(_0x384073={'clientId':await _0x284664[_0x5c2704(0x1ce)]('turboscale-managed-identity-'+_0x5674ae)});await _0x26a945[_0x5c2704(0x1a3)](addGridComponents,_0x376c93,_0x1be476,_0x19fd84,_0x180d6e,_0x1564a7,_0x5674ae,_0x20b5e6,_0x2726b4,_0x2c3642,_0x384073),_0x24885d=_0x26a945[_0x5c2704(0x19e)],logger[_0x5c2704(0x23a)](_0x24885d);const _0x3895a3={};_0x3895a3['type']=WS_EVENTS[_0x5c2704(0x194)],_0x3895a3[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils['sendEventToBackend'](_0x3e0648,_0x3895a3),_0x24885d=_0x26a945[_0x5c2704(0x189)],logger[_0x5c2704(0x23a)](_0x24885d);const _0x1b1fa1={};_0x1b1fa1[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x1b1fa1[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x1b1fa1),await webSocketUtils[_0x5c2704(0x247)](0xea60);const _0x557b48=await _0x26a945['MwsZK'](getNamespaceUID,_0x376c93,_0x1564a7);let _0x3b7526=global_registry[_0x5c2704(0x171)]?_0x26a945[_0x5c2704(0x188)]:_0x26a945[_0x5c2704(0x243)],_0x40afcb=await _0x376c93[_0x5c2704(0x136)](_0x3b7526,_0x26a945[_0x5c2704(0x20d)]),_0x3f29f3=_0x284664[_0x5c2704(0x166)](_0x40afcb)+'/'+_0x1564a7,_0x40ca5f=_0x26a945[_0x5c2704(0x252)];try{const _0x5972d7={'url':_0x5c2704(0x152)+AG_API_URL+_0x5c2704(0x256)+_0x557b48,..._0x416183},_0x46f466=_0x5972d7,_0x5d8e8d=await _0x26a945[_0x5c2704(0x269)](promisifiedRequest,_0x46f466);(_0x26a945[_0x5c2704(0x208)](_0x5d8e8d,null)||_0x26a945['IIcyb'](_0x5d8e8d,undefined))&&(_0x24885d=_0x26a945[_0x5c2704(0x1f2)],await _0x26a945[_0x5c2704(0x137)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945['Kuwrr'],_0x26a945['bjMDi'],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process['exit'](0x1));_0x26a945['IkmxJ'](_0x5d8e8d[_0x5c2704(0x1d4)],0x191)&&(_0x24885d=_0x26a945['pXJPX'],await _0x26a945[_0x5c2704(0x215)](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes[_0x5c2704(0x22e)],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x257)],_0x26a945['dYyGl']),logger[_0x5c2704(0x26d)](_0x24885d),process['exit'](0x1));_0x26a945['dDnCM'](_0x5d8e8d[_0x5c2704(0x1d4)],0xc8)&&(_0x24885d=_0x5c2704(0x153)+JSON[_0x5c2704(0x1cd)](_0x5d8e8d),await _0x26a945['sJlMF'](reportToGalactusAndSendToEDS,_0x1dd5d9,_0x3e0648,_0x24885d,messageTypes['ERROR'],_0x26a945[_0x5c2704(0x1fe)],_0x26a945[_0x5c2704(0x1dd)],_0x26a945[_0x5c2704(0x1e7)]),logger[_0x5c2704(0x26d)](_0x24885d),process[_0x5c2704(0x17d)](0x1));const _0xc4b156=JSON[_0x5c2704(0x268)](_0x5d8e8d[_0x5c2704(0x22f)]);_0xc4b156[_0x5c2704(0x251)]&&(_0x3f29f3=_0xc4b156['route53'],_0x40ca5f=_0x26a945[_0x5c2704(0x1cc)]),global_registry[_0x5c2704(0x171)]&&(_0x40ca5f=_0x26a945[_0x5c2704(0x252)]);}catch(_0x26e3c7){}_0x24885d=_0x5c2704(0x20a)+_0x3f29f3+'\x20',logger[_0x5c2704(0x23a)](_0x24885d);const _0x45f598={};_0x45f598[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x45f598['message']=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x45f598),_0x24885d='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x40ca5f+_0x5c2704(0x1bc)+_0x3f29f3+'/wd/hub',logger['info'](_0x24885d);const _0x48f036={};_0x48f036[_0x5c2704(0x225)]=WS_EVENTS[_0x5c2704(0x194)],_0x48f036[_0x5c2704(0x1e1)]=_0x24885d,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x48f036);const _0x5138e7={};_0x5138e7[_0x5c2704(0x225)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x5138e7[_0x5c2704(0x1e1)]=_0x5c2704(0x184)+_0x3f29f3,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x5138e7),await webSocketUtils[_0x5c2704(0x247)](0x7d0);}catch(_0x1e8078){if(_0x26a945[_0x5c2704(0x25a)](_0x54a859,![]))try{logger[_0x5c2704(0x23a)](_0x5c2704(0x1e8)),await _0x26a945[_0x5c2704(0x172)](removeGridComponents,_0x376c93,_0x1be476,_0x19fd84,_0x180d6e,_0x1564a7),await _0x284664[_0x5c2704(0x1ba)](_0x376c93,global_registry[_0x5c2704(0x232)]);}catch(_0x41e351){throw _0x41e351;}throw _0x1e8078;}}catch(_0x43b49d){const _0x16bf6a=_0x5c2704(0x265)+_0x43b49d+'\x20\x0a'+JSON[_0x5c2704(0x1cd)](_0x43b49d)+'\x20';if(_0x3e0648){const _0x290406={};_0x290406['type']=WS_EVENTS[_0x5c2704(0x194)],_0x290406['message']=_0x16bf6a,webSocketUtils[_0x5c2704(0x228)](_0x3e0648,_0x290406,_0x26a945[_0x5c2704(0x1e7)],!![]);}await webSocketUtils[_0x5c2704(0x247)](0x7d0);const _0x284361={};_0x284361[_0x5c2704(0x26d)]=_0x16bf6a,await _0x26a945[_0x5c2704(0x1a0)](sendInstrumentationEvent,_0x1dd5d9,_0x26a945[_0x5c2704(0x1fe)],messageTypes[_0x5c2704(0x22e)],_0x26a945['tMWdt'],_0x284361,_0x1dd5d9),logger['error'](_0x16bf6a);}process['exit'](0x0);};
@@ -1 +1 @@
1
- const a11_0x26f567=a11_0x55ee;(function(_0x59e63a,_0x1bf1bd){const _0x577c85=a11_0x55ee,_0x18f819=_0x59e63a();while(!![]){try{const _0x4729c4=-parseInt(_0x577c85(0x109))/0x1*(-parseInt(_0x577c85(0x102))/0x2)+parseInt(_0x577c85(0x104))/0x3+parseInt(_0x577c85(0x103))/0x4*(parseInt(_0x577c85(0xff))/0x5)+-parseInt(_0x577c85(0x100))/0x6+parseInt(_0x577c85(0x10f))/0x7+-parseInt(_0x577c85(0x10b))/0x8+-parseInt(_0x577c85(0x10d))/0x9;if(_0x4729c4===_0x1bf1bd)break;else _0x18f819['push'](_0x18f819['shift']());}catch(_0x17ad72){_0x18f819['push'](_0x18f819['shift']());}}}(a11_0x41b5,0x39bdc));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']='delete',exports[a11_0x26f567(0x10a)]=a11_0x26f567(0x10e),exports[a11_0x26f567(0x110)]=function(_0x265347){const _0x3c959a=a11_0x26f567,_0x1eacd8={};_0x1eacd8[_0x3c959a(0x106)]=_0x3c959a(0x108),_0x1eacd8['wVGwN']=_0x3c959a(0xfe);const _0x4c395b=_0x1eacd8;return _0x265347['usage'](HELP_HEADER_MESSAGE['delete'])[_0x3c959a(0x101)](HELP_FOOTER_MESSAGE)[_0x3c959a(0x105)](_0x4c395b[_0x3c959a(0x106)])['demandCommand']()[_0x3c959a(0xfd)]()['strict']()[_0x3c959a(0xfe)](_0x4c395b[_0x3c959a(0x107)]);},exports[a11_0x26f567(0x10c)]=function(_0x2e73af){};function a11_0x55ee(_0x3c4505,_0x3e6da3){const _0x41b536=a11_0x41b5();return a11_0x55ee=function(_0x55ee2f,_0x5c70f8){_0x55ee2f=_0x55ee2f-0xfd;let _0xd45b3a=_0x41b536[_0x55ee2f];return _0xd45b3a;},a11_0x55ee(_0x3c4505,_0x3e6da3);}function a11_0x41b5(){const _0x5e8655=['epilogue','14108ZLOZRQ','4fYrUMy','1385919lVNCZk','commandDir','yrxYa','wVGwN','delete_commands','61ISiOwl','desc','3772600CMAlog','handler','6004593OSMTFM','List\x20Grid\x20resources.','2584022ztyXNA','builder','recommendCommands','help','888335QjoqsV','382920gFOOlR'];a11_0x41b5=function(){return _0x5e8655;};return a11_0x41b5();}
1
+ function a11_0x468c(_0x20925f,_0x11e40b){const _0xc7ee5=a11_0xc7ee();return a11_0x468c=function(_0x468c05,_0x12c1d0){_0x468c05=_0x468c05-0x1ac;let _0x468790=_0xc7ee5[_0x468c05];return _0x468790;},a11_0x468c(_0x20925f,_0x11e40b);}const a11_0xa2b006=a11_0x468c;(function(_0x573440,_0x303063){const _0x3b7d59=a11_0x468c,_0x4ea20f=_0x573440();while(!![]){try{const _0x16f8b2=-parseInt(_0x3b7d59(0x1b2))/0x1+-parseInt(_0x3b7d59(0x1b3))/0x2+parseInt(_0x3b7d59(0x1be))/0x3*(-parseInt(_0x3b7d59(0x1b1))/0x4)+parseInt(_0x3b7d59(0x1b7))/0x5*(-parseInt(_0x3b7d59(0x1b6))/0x6)+-parseInt(_0x3b7d59(0x1c0))/0x7*(-parseInt(_0x3b7d59(0x1ba))/0x8)+parseInt(_0x3b7d59(0x1bd))/0x9+-parseInt(_0x3b7d59(0x1b0))/0xa*(-parseInt(_0x3b7d59(0x1ae))/0xb);if(_0x16f8b2===_0x303063)break;else _0x4ea20f['push'](_0x4ea20f['shift']());}catch(_0x4f3514){_0x4ea20f['push'](_0x4ea20f['shift']());}}}(a11_0xc7ee,0xd9685));function a11_0xc7ee(){const _0x39edb6=['../config/constants','1482390LHPcgR','67266cMFDHE','strict','6104182XYYYYM','demandCommand','handler','delete_commands','delete','List\x20Grid\x20resources.','27632tkfvOC','QAhlC','18940AuaFgn','8xjERrU','1776230SyJWiM','3504858EFRowk','command','epilogue','12CIogpI','3326150gxmKCv','help','builder','8JQBIoh','hLLVO'];a11_0xc7ee=function(){return _0x39edb6;};return a11_0xc7ee();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0xa2b006(0x1bc));exports[a11_0xa2b006(0x1b4)]='delete',exports['desc']=a11_0xa2b006(0x1ad),exports[a11_0xa2b006(0x1b9)]=function(_0x27a0a3){const _0x3f6512=a11_0xa2b006,_0x31bbd3={};_0x31bbd3[_0x3f6512(0x1bb)]=_0x3f6512(0x1c3),_0x31bbd3['QAhlC']='help';const _0x5b7147=_0x31bbd3;return _0x27a0a3['usage'](HELP_HEADER_MESSAGE[_0x3f6512(0x1ac)])[_0x3f6512(0x1b5)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5b7147[_0x3f6512(0x1bb)])[_0x3f6512(0x1c1)]()['recommendCommands']()[_0x3f6512(0x1bf)]()[_0x3f6512(0x1b8)](_0x5b7147[_0x3f6512(0x1af)]);},exports[a11_0xa2b006(0x1c2)]=function(_0x3087d7){};
@@ -1 +1 @@
1
- const a12_0x101f18=a12_0x2fab;function a12_0x2fab(_0x3b3a86,_0xc3a3b1){const _0x5c2a0b=a12_0x5c2a();return a12_0x2fab=function(_0x2fab63,_0x4d2ab8){_0x2fab63=_0x2fab63-0x15a;let _0x3878ee=_0x5c2a0b[_0x2fab63];return _0x3878ee;},a12_0x2fab(_0x3b3a86,_0xc3a3b1);}(function(_0x2d23d5,_0x35ae37){const _0x562772=a12_0x2fab,_0x4dcee4=_0x2d23d5();while(!![]){try{const _0x607f5d=-parseInt(_0x562772(0x16f))/0x1+-parseInt(_0x562772(0x173))/0x2+parseInt(_0x562772(0x1ce))/0x3*(-parseInt(_0x562772(0x170))/0x4)+-parseInt(_0x562772(0x1ab))/0x5*(-parseInt(_0x562772(0x1ac))/0x6)+-parseInt(_0x562772(0x183))/0x7*(parseInt(_0x562772(0x184))/0x8)+parseInt(_0x562772(0x187))/0x9*(-parseInt(_0x562772(0x1a5))/0xa)+-parseInt(_0x562772(0x18f))/0xb*(-parseInt(_0x562772(0x1db))/0xc);if(_0x607f5d===_0x35ae37)break;else _0x4dcee4['push'](_0x4dcee4['shift']());}catch(_0x53b4ab){_0x4dcee4['push'](_0x4dcee4['shift']());}}}(a12_0x5c2a,0x39f68));const fs=require('fs'),util=require(a12_0x101f18(0x1dd)),request=require(a12_0x101f18(0x1c9)),{v4:uuidv4}=require(a12_0x101f18(0x1b8)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x101f18(0x1b4)),{logger}=require(a12_0x101f18(0x1c7)),{getCloudProviderObject}=require(a12_0x101f18(0x1bc)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a12_0x101f18(0x1e3)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x101f18(0x18e)),{createK8sClient}=require(a12_0x101f18(0x1c6)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x101f18(0x15f)),promisifiedRequest=util[a12_0x101f18(0x1d5)](request);exports[a12_0x101f18(0x178)]='grid',exports['desc']=a12_0x101f18(0x1a8),exports['builder']=function(_0x58bf23){const _0x101e0e=a12_0x101f18,_0x38b025={};_0x38b025[_0x101e0e(0x177)]=_0x101e0e(0x1d8),_0x38b025['ruuKb']=_0x101e0e(0x172),_0x38b025['lsJsz']=_0x101e0e(0x1b9);const _0x362205=_0x38b025,_0x3e0a27={};_0x3e0a27[_0x101e0e(0x175)]=_0x362205[_0x101e0e(0x177)],_0x3e0a27['type']=_0x362205[_0x101e0e(0x182)];const _0x1a5de6={};return _0x1a5de6['grid-id']=_0x3e0a27,_0x58bf23[_0x101e0e(0x163)](HELP_HEADER_MESSAGE[_0x101e0e(0x1e2)])[_0x101e0e(0x166)](HELP_FOOTER_MESSAGE)[_0x101e0e(0x1b1)](_0x1a5de6)[_0x101e0e(0x1b9)](_0x362205[_0x101e0e(0x1af)])[_0x101e0e(0x1d2)];},exports[a12_0x101f18(0x1c1)]=async function(_0xbefbfb){const _0x5277c4=a12_0x101f18,_0x339835={'PQAdA':_0x5277c4(0x193),'eXDZD':_0x5277c4(0x1d8),'DtrOM':_0x5277c4(0x172),'vGSWT':'help','fVCqH':function(_0x5d6480){return _0x5d6480();},'fEHSY':function(_0x223ebc,_0x3ec455){return _0x223ebc===_0x3ec455;},'Fgidm':_0x5277c4(0x195),'qBNQy':_0x5277c4(0x1e1),'utYDe':_0x5277c4(0x1d3),'YRLMq':function(_0x4f5741,_0x587bd2,_0x4b1dd7,_0x5b6e33,_0x369ea4,_0x576de9,_0x7ed169){return _0x4f5741(_0x587bd2,_0x4b1dd7,_0x5b6e33,_0x369ea4,_0x576de9,_0x7ed169);},'DzTVG':'delete-grid-called','wXUCn':_0x5277c4(0x15e),'aEGkT':function(_0x57efbd,_0x70fd65,_0x107323,_0x9099c,_0x452efb,_0x53b94b,_0x305335){return _0x57efbd(_0x70fd65,_0x107323,_0x9099c,_0x452efb,_0x53b94b,_0x305335);},'KOkLX':function(_0x1bc89d,_0x47aec2){return _0x1bc89d!==_0x47aec2;},'IgbTO':_0x5277c4(0x1e0),'jzVYE':_0x5277c4(0x1cd),'SIkMn':function(_0x436d6d,_0x132c98,_0x138ab8,_0x426440){return _0x436d6d(_0x132c98,_0x138ab8,_0x426440);},'NvMJe':function(_0x263644,_0x483e57){return _0x263644===_0x483e57;},'QlPAE':_0x5277c4(0x1b6),'ZAWUB':function(_0x4cdeb0,_0x972e39){return _0x4cdeb0!==_0x972e39;},'OHDuu':_0x5277c4(0x188),'KmfFF':'iWHFV','SEuAl':function(_0x56f96b,_0x901595){return _0x56f96b(_0x901595);},'oXCFE':function(_0x4eb471,_0x418536){return _0x4eb471===_0x418536;},'Zxapi':_0x5277c4(0x1e4),'jFpHo':'PCNdI','vFMLp':_0x5277c4(0x1a1),'tTeLi':_0x5277c4(0x1c2),'NemkO':function(_0x16d8cf,_0x4a0542){return _0x16d8cf===_0x4a0542;},'ZkGDf':_0x5277c4(0x19e),'XBxlk':_0x5277c4(0x1e7),'YdbiJ':function(_0x13582c,_0x1d5f3b){return _0x13582c!==_0x1d5f3b;},'mNlJp':'kEMtJ','jCPdA':_0x5277c4(0x1b3),'cmLHd':_0x5277c4(0x1ca),'Cbbhc':function(_0x559198,_0x4db6f9){return _0x559198===_0x4db6f9;},'Zgatu':_0x5277c4(0x1c4),'zbbtG':function(_0x3a836e,_0x186ae6,_0x22b251,_0x2e55e9){return _0x3a836e(_0x186ae6,_0x22b251,_0x2e55e9);},'yNstX':function(_0x1916f6){return _0x1916f6();},'gQsYX':_0x5277c4(0x1e8),'mLHSb':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','hdDVR':function(_0x3e5181,_0x399d70,_0x2ba3a1,_0x542ff8,_0x848b1,_0x3ce8c6){return _0x3e5181(_0x399d70,_0x2ba3a1,_0x542ff8,_0x848b1,_0x3ce8c6);},'ioffO':'DELETE','lKbuF':function(_0x565091,_0x2f175b){return _0x565091!==_0x2f175b;},'teDVt':function(_0x49fd49,_0x521240){return _0x49fd49===_0x521240;},'ggDVy':function(_0x141551,_0x58741a,_0x385fc1,_0x4f9dca,_0x3aeaef,_0x13c2b7,_0x2d9554){return _0x141551(_0x58741a,_0x385fc1,_0x4f9dca,_0x3aeaef,_0x13c2b7,_0x2d9554);},'OolSr':_0x5277c4(0x16c),'YgkmH':function(_0x28c7e7,_0x524286){return _0x28c7e7===_0x524286;},'bTCNI':_0x5277c4(0x19c),'iazPW':function(_0x2e728a,_0x975935){return _0x2e728a===_0x975935;},'DRVGo':_0x5277c4(0x160),'wBiVX':_0x5277c4(0x1d9)};try{global_registry[_0x5277c4(0x1a7)]=_0x339835[_0x5277c4(0x1d4)](uuidv4);!fs[_0x5277c4(0x19b)](_0x339835[_0x5277c4(0x1d4)](getCredentialsPath))&&(_0x339835['fEHSY'](_0x339835[_0x5277c4(0x198)],_0x339835[_0x5277c4(0x1c3)])?_0x5e817f[_0x5277c4(0x1bb)]={}:(console[_0x5277c4(0x192)](_0x339835['utYDe']),await _0x339835[_0x5277c4(0x196)](sendInstrumentationEvent,_0xbefbfb,_0x339835['DzTVG'],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x16b)],null,_0xbefbfb),process[_0x5277c4(0x185)](0x1)));_0x339835[_0x5277c4(0x174)](sendInstrumentationEvent,_0xbefbfb,_0x339835['DzTVG'],messageTypes[_0x5277c4(0x1a0)],null,null,_0xbefbfb);!_0xbefbfb[_0x5277c4(0x186)]&&(_0x339835[_0x5277c4(0x1de)](_0x339835['IgbTO'],_0x339835['jzVYE'])?(console[_0x5277c4(0x192)](_0x339835['PQAdA']),process[_0x5277c4(0x185)](0x1)):_0x249c10=_0x5277c4(0x1e6)+_0x2aef6b['name']+_0x5277c4(0x15b)+_0x4d705d['id']+_0x5277c4(0x167)+_0x1f3ec8[_0x5277c4(0x1e5)]+'\x22\x20with\x20ID\x20'+_0x2a0d49[_0x5277c4(0x16a)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0x5a9e05=JSON[_0x5277c4(0x1d0)](fs[_0x5277c4(0x194)](_0x339835['fVCqH'](getCredentialsPath))),[_0xfe23fa,_0x593d2b]=await _0x339835['SIkMn'](getGridDetails,_0x5a9e05[_0x5277c4(0x1b6)][_0x5277c4(0x1aa)],_0x5a9e05['Browserstack'][_0x5277c4(0x19a)],_0xbefbfb['gridId']);if(_0x593d2b){const _0x110702=_0x593d2b[_0x5277c4(0x1bf)];let _0x43cce0=_0x5277c4(0x1e6)+_0x110702['name']+_0x5277c4(0x15b)+_0x110702['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x75b7e4;_0x593d2b[_0x5277c4(0x1c8)]&&_0x339835[_0x5277c4(0x16e)](_0x593d2b['clusterSpawnedVia'],_0x339835[_0x5277c4(0x1a4)])&&(_0x339835[_0x5277c4(0x16d)](_0x339835['OHDuu'],_0x339835[_0x5277c4(0x199)])?_0x43cce0=_0x5277c4(0x1e6)+_0x110702[_0x5277c4(0x18b)]+_0x5277c4(0x15b)+_0x110702['id']+_0x5277c4(0x167)+_0x110702['clusterName']+_0x5277c4(0x191)+_0x110702[_0x5277c4(0x16a)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(_0x513421[_0x5277c4(0x192)](_0x339835['PQAdA']),_0x5b73e5[_0x5277c4(0x185)](0x1)));_0x75b7e4=await _0x339835[_0x5277c4(0x168)](inputConfirmation,_0x43cce0);if(_0x339835[_0x5277c4(0x16e)](_0x75b7e4,undefined)||_0x339835[_0x5277c4(0x162)](_0x75b7e4,null)||!(_0x339835[_0x5277c4(0x16e)](_0x75b7e4['toLowerCase'](),'y')||_0x339835[_0x5277c4(0x162)](_0x75b7e4[_0x5277c4(0x197)](),'n'))){if(_0x339835[_0x5277c4(0x16d)](_0x339835['Zxapi'],_0x339835['jFpHo']))console['error'](_0x339835[_0x5277c4(0x1d6)]),await _0x339835[_0x5277c4(0x196)](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x161)],null,_0xbefbfb),process[_0x5277c4(0x185)](0x1);else{const _0x23ac57={};_0x23ac57[_0x5277c4(0x175)]=_0x339835[_0x5277c4(0x1b5)],_0x23ac57[_0x5277c4(0x190)]=_0x339835['DtrOM'];const _0x2dae1c={};return _0x2dae1c[_0x5277c4(0x1d1)]=_0x23ac57,_0x245d54[_0x5277c4(0x163)](_0x1fc6db['delete'])[_0x5277c4(0x166)](_0x4c568f)[_0x5277c4(0x1b1)](_0x2dae1c)[_0x5277c4(0x1b9)](_0x339835[_0x5277c4(0x1d7)])[_0x5277c4(0x1d2)];}}_0x339835[_0x5277c4(0x162)](_0x75b7e4['toLowerCase'](),'n')&&(_0x339835['NemkO'](_0x339835[_0x5277c4(0x165)],_0x339835['XBxlk'])?_0x30d6e2[_0x5277c4(0x185)](0x0):process[_0x5277c4(0x185)](0x0));global_registry[_0x5277c4(0x19d)]=_0x110702[_0x5277c4(0x169)];const _0xaf76b2=_0x110702[_0x5277c4(0x1bb)],_0x3bd251=_0x339835[_0x5277c4(0x1dc)](getCloudProviderObject,_0xaf76b2,_0x110702[_0x5277c4(0x1e5)],_0x110702[_0x5277c4(0x18b)]),_0x4bf480=_0x5a9e05[_0x5277c4(0x1bb)];if(_0x339835['oXCFE'](_0x4bf480[_0xaf76b2],undefined)){if(_0x339835[_0x5277c4(0x180)](_0x339835[_0x5277c4(0x176)],_0x339835[_0x5277c4(0x1cc)])){logger['info'](_0x339835[_0x5277c4(0x1da)]);_0x339835[_0x5277c4(0x181)](_0x5a9e05[_0x5277c4(0x1bb)],undefined)&&(_0x339835['oXCFE'](_0x339835[_0x5277c4(0x1be)],_0x339835['Zgatu'])?_0x5a9e05[_0x5277c4(0x1bb)]={}:(_0x49e1fe['info']('Succesfully\x20deleted\x20the\x20grid'),_0x221492['exit'](0x0)));_0x5a9e05[_0x5277c4(0x1bb)][_0xaf76b2]={};const _0x29131e=await _0x339835[_0x5277c4(0x1a3)](inputCloudProviderKeys,_0xaf76b2,_0x5a9e05,_0x3bd251);fs[_0x5277c4(0x1cf)](_0x339835['yNstX'](getCredentialsPath),JSON[_0x5277c4(0x19f)](_0x29131e)),logger[_0x5277c4(0x1a9)](_0x339835['gQsYX']);}else _0x2b6ed2[_0x5277c4(0x1c0)](_0x5277c4(0x17d)+_0x1b158b[_0x5277c4(0x1e5)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}else logger['info'](_0x339835[_0x5277c4(0x1cb)]),await _0x3bd251[_0x5277c4(0x1a2)](_0x4bf480);_0x3bd251['configureIfNotConfigured']();const _0x19849e=_0x339835[_0x5277c4(0x168)](kebabCase,_0x110702[_0x5277c4(0x18b)]),[_0x43e6a6,_0x546218,_0x202b55,_0x24f8a8,_0x2f3fdf,_0x461e82]=await _0x339835['SEuAl'](createK8sClient,_0x3bd251);await _0x339835[_0x5277c4(0x1b0)](removeGridComponents,_0x43e6a6,_0x546218,_0x202b55,_0x24f8a8,_0x19849e);if(_0x593d2b['onlyGridInCluster']){const _0x19ff66=await _0x3bd251[_0x5277c4(0x17c)]();_0x19ff66?await _0x3bd251[_0x5277c4(0x1df)](_0x43e6a6,_0x110702[_0x5277c4(0x169)]):logger[_0x5277c4(0x1c0)](_0x5277c4(0x17d)+_0x110702['clusterName']+_0x5277c4(0x1c5));}const _0xbbf03b=_0x5277c4(0x18d)+AG_API_URL+_0x5277c4(0x1b7)+_0xbefbfb[_0x5277c4(0x186)],_0x1db0f4={};_0x1db0f4['username']=_0x5a9e05[_0x5277c4(0x1b6)][_0x5277c4(0x1aa)],_0x1db0f4[_0x5277c4(0x19a)]=_0x5a9e05[_0x5277c4(0x1b6)]['password'];const _0x19d249={};_0x19d249[_0x5277c4(0x179)]=_0xbbf03b,_0x19d249[_0x5277c4(0x1b2)]=_0x339835[_0x5277c4(0x1a6)],_0x19d249[_0x5277c4(0x171)]=_0x1db0f4;const _0x18b338=_0x19d249,_0x4f23b4=await _0x339835[_0x5277c4(0x168)](promisifiedRequest,_0x18b338);_0x339835[_0x5277c4(0x180)](_0x4f23b4,null)&&_0x339835['lKbuF'](_0x4f23b4,undefined)&&_0x339835[_0x5277c4(0x15c)](_0x4f23b4[_0x5277c4(0x15a)],0xc8)&&(logger[_0x5277c4(0x1bf)](_0x5277c4(0x18c)),process[_0x5277c4(0x185)](0x0)),logger['error']('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x5277c4(0x19f)](_0x4f23b4)),await _0x339835[_0x5277c4(0x18a)](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x1bd)],_0xfe23fa,_0xbefbfb),process[_0x5277c4(0x185)](0x1);}_0x339835['YgkmH'](_0xfe23fa['statusCode'],0x191)&&(logger[_0x5277c4(0x192)](_0x5277c4(0x15d)),await _0x339835['aEGkT'](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes['ERROR'],_0x339835[_0x5277c4(0x189)],null,_0xbefbfb),process[_0x5277c4(0x185)](0x1)),_0x339835[_0x5277c4(0x17a)](_0xfe23fa[_0x5277c4(0x15a)],0x190)&&(logger['error'](JSON[_0x5277c4(0x1d0)](_0xfe23fa[_0x5277c4(0x1ae)])[_0x5277c4(0x17e)]),await _0x339835['aEGkT'](sendInstrumentationEvent,_0xbefbfb,_0x339835['DzTVG'],messageTypes[_0x5277c4(0x1ba)],_0x339835['DRVGo'],null,_0xbefbfb),process['exit'](0x1)),logger[_0x5277c4(0x192)](_0x5277c4(0x164)+JSON[_0x5277c4(0x19f)](_0xfe23fa)),await _0x339835['ggDVy'](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x1bd)],_0xfe23fa,_0xbefbfb),process[_0x5277c4(0x185)](0x1);}catch(_0x566ee6){logger[_0x5277c4(0x192)](_0x5277c4(0x17b)+_0x566ee6['stack']),await _0x339835[_0x5277c4(0x174)](sendInstrumentationEvent,_0xbefbfb,_0x339835[_0x5277c4(0x17f)],messageTypes[_0x5277c4(0x1ba)],_0x339835[_0x5277c4(0x1ad)],_0x566ee6,_0xbefbfb),process[_0x5277c4(0x185)](0x1);}};function a12_0x5c2a(){const _0x461e25=['jCPdA','oJrbg','1215402CgiPFw','writeFileSync','parse','grid-id','argv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fVCqH','promisify','vFMLp','vGSWT','Pass\x20the\x20ID\x20of\x20the\x20Grid','unknown-error','cmLHd','3135228ESxYsq','SIkMn','util','KOkLX','deleteCluster','XupiH','cnAqh','delete','../../utils/instrumentationUtils','kyCeu','clusterName','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','HtwnO','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','statusCode','\x22\x20and\x20ID\x20','teDVt','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','init-not-called','../../utils/utilityMethods','invalid-grid-id','tTeLi','oXCFE','usage','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ZkGDf','epilogue','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','SEuAl','region','clusterId','wXUCn','server-error','ZAWUB','NvMJe','355166IhPMgl','4LRJecc','auth','string','439466jJEnwU','aEGkT','description','mNlJp','cfOLB','command','url','iazPW','Failed\x20to\x20delete\x20resources!\x20Error:\x20','isBrowserstackCluster','Cluster:\x20','message','DzTVG','YdbiJ','Cbbhc','ruuKb','2868383dqeuWZ','8HQbOnx','exit','gridId','9DfwQYE','TvOfq','bTCNI','ggDVy','name','Succesfully\x20deleted\x20the\x20grid','https://','../../utils/userInput','77aIBYex','type','\x22\x20with\x20ID\x20','error','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','readFileSync','lupQm','YRLMq','toLowerCase','Fgidm','KmfFF','password','existsSync','unauthorised','clusterRegion','WGFSK','stringify','INFO','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','fetchLocalCreds','zbbtG','QlPAE','2957590pAYaiC','ioffO','requestId','Delete\x20an\x20Automation\x20grid.','debug','username','455FKeoln','6204TWKvqI','wBiVX','body','lsJsz','hdDVR','options','method','gTCVJ','../../config/constants','eXDZD','Browserstack','/packages/cli/grid/','uuid','help','ERROR','cloudProvider','../../cloudproviders/utils','OolSr','Zgatu','info','warn','handler','invalid-input','qBNQy','MvWbN','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','../../utils/createk8sClient','../../config/logger','onlyGridInCluster','request','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','mLHSb'];a12_0x5c2a=function(){return _0x461e25;};return a12_0x5c2a();}
1
+ function a12_0x58aa(_0x481350,_0x383976){const _0x5d5967=a12_0x5d59();return a12_0x58aa=function(_0x58aa07,_0x41f742){_0x58aa07=_0x58aa07-0x172;let _0x6a0c36=_0x5d5967[_0x58aa07];return _0x6a0c36;},a12_0x58aa(_0x481350,_0x383976);}const a12_0x592975=a12_0x58aa;(function(_0x14c474,_0x486abf){const _0x40738d=a12_0x58aa,_0x5c80c1=_0x14c474();while(!![]){try{const _0x5958ff=-parseInt(_0x40738d(0x1e4))/0x1+parseInt(_0x40738d(0x1a4))/0x2+-parseInt(_0x40738d(0x187))/0x3+parseInt(_0x40738d(0x197))/0x4+-parseInt(_0x40738d(0x1f7))/0x5+parseInt(_0x40738d(0x1db))/0x6*(parseInt(_0x40738d(0x1a2))/0x7)+parseInt(_0x40738d(0x1c1))/0x8;if(_0x5958ff===_0x486abf)break;else _0x5c80c1['push'](_0x5c80c1['shift']());}catch(_0x44c2a4){_0x5c80c1['push'](_0x5c80c1['shift']());}}}(a12_0x5d59,0x629d8));function a12_0x5d59(){const _0x279541=['QxvLu','taFwK','UgYut','hpwVZ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ERROR','Niqpp','deleteCluster','ySfbI','RgBzX','2777384ZyIhro','WTpPB','bchad','statusCode','hgoNH','../../config/logger','IdidF','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','aKqOJ','hKZMK','configureIfNotConfigured','CbbBA','JDlEu','IWiow','pyGix','invalid-input','unknown-error','Pass\x20the\x20ID\x20of\x20the\x20Grid','\x22\x20with\x20ID\x20','yvIEn','sMPRQ','INFO','toLowerCase','message','Cluster:\x20','name','1698NMuexw','ozSOP','description','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','drxvB','DzKOK','string','method','zFBSW','532652IlmKxp','delete-grid-called','BoxlA','LAhoD','eSPHO','kxTPe','grid','cloudProvider','qJVZn','error','ykyQW','requestId','Succesfully\x20deleted\x20the\x20grid','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','HmmHV','AzLGk','parse','argv','/packages/cli/grid/','327995xcSRmY','eobrL','\x22\x20and\x20ID\x20','epilogue','server-error','grid-id','imBcC','CeQGo','warn','SMbSA','exit','BoULK','QdKRz','Browserstack','tsUWO','stringify','delete','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','../../utils/userInput','command','spZoB','gridId','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','desc','Delete\x20an\x20Automation\x20grid.','password','debug','Failed\x20to\x20delete\x20resources!\x20Error:\x20','init-not-called','bqxwY','kzCUC','existsSync','TrrZN','../../utils/gridComponents','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','info','fvYjW','wDuVa','2382147cUxtHD','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','isBrowserstackCluster','uuid','writeFileSync','unauthorised','RPmDC','type','DELETE','onlyGridInCluster','fetchLocalCreds','rNnLE','csGIa','../../utils/instrumentationUtils','nqRVu','3118332xzeuHt','voYer','auth','help','../../cloudproviders/utils','HAZRK','util','kvixw','egPBG','stack','kXxXT','10661ZXUkQw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','476926eqNExF','usage','yAaBw','wHAdV','nSQhs','yciyf','qgBKP','lqwMJ','zdIeG','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','../../utils/createk8sClient','body','xPufZ','qAZjl','ZdfqD','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','clusterName','clusterId','username'];a12_0x5d59=function(){return _0x279541;};return a12_0x5d59();}const fs=require('fs'),util=require(a12_0x592975(0x19d)),request=require('request'),{v4:uuidv4}=require(a12_0x592975(0x18b)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require('../../config/constants'),{logger}=require(a12_0x592975(0x1c6)),{getCloudProviderObject}=require(a12_0x592975(0x19b)),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x592975(0x182)),{sendInstrumentationEvent}=require(a12_0x592975(0x195)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x592975(0x173)),{createK8sClient}=require(a12_0x592975(0x1ae)),{kebabCase,getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),promisifiedRequest=util['promisify'](request);exports[a12_0x592975(0x174)]=a12_0x592975(0x1ea),exports[a12_0x592975(0x178)]=a12_0x592975(0x179),exports['builder']=function(_0x455b47){const _0x2d4acf=a12_0x592975,_0x24a70b={};_0x24a70b['QxvLu']=_0x2d4acf(0x1d2),_0x24a70b[_0x2d4acf(0x1d5)]=_0x2d4acf(0x1e1),_0x24a70b['eSPHO']=_0x2d4acf(0x19a);const _0x4bdb6f=_0x24a70b,_0xabcdaa={};_0xabcdaa[_0x2d4acf(0x1dd)]=_0x4bdb6f[_0x2d4acf(0x1b7)],_0xabcdaa[_0x2d4acf(0x18f)]=_0x4bdb6f[_0x2d4acf(0x1d5)];const _0x5ee538={};return _0x5ee538['grid-id']=_0xabcdaa,_0x455b47['usage'](HELP_HEADER_MESSAGE[_0x2d4acf(0x207)])[_0x2d4acf(0x1fa)](HELP_FOOTER_MESSAGE)['options'](_0x5ee538)[_0x2d4acf(0x19a)](_0x4bdb6f[_0x2d4acf(0x1e8)])['argv'];},exports['handler']=async function(_0x21feb1){const _0xcfa034=a12_0x592975,_0x2bda73={'RPmDC':'Pass\x20the\x20ID\x20of\x20the\x20Grid','rNnLE':_0xcfa034(0x1e1),'TrrZN':_0xcfa034(0x19a),'wDuVa':_0xcfa034(0x1b3),'CCiui':function(_0x36dced){return _0x36dced();},'fvYjW':function(_0x15ca1b){return _0x15ca1b();},'hpwVZ':function(_0x420010,_0x6b22cb){return _0x420010!==_0x6b22cb;},'ySfbI':_0xcfa034(0x1cd),'yciyf':'lMXPs','qgBKP':_0xcfa034(0x1bb),'SMbSA':function(_0x3c5370,_0x9a8028,_0x128937,_0x248e3d,_0x2a42d0,_0x422782,_0x23ae91){return _0x3c5370(_0x9a8028,_0x128937,_0x248e3d,_0x2a42d0,_0x422782,_0x23ae91);},'kzCUC':_0xcfa034(0x1e5),'IdidF':_0xcfa034(0x17d),'IWiow':function(_0xf1f9a1,_0x39e1c5,_0x8e4d6f,_0x5eb57c,_0x25de66,_0x1bedaa,_0x116c9f){return _0xf1f9a1(_0x39e1c5,_0x8e4d6f,_0x5eb57c,_0x25de66,_0x1bedaa,_0x116c9f);},'nSQhs':_0xcfa034(0x1b1),'qJVZn':_0xcfa034(0x1b2),'ozSOP':function(_0x416b1d,_0x36e6e3,_0x5d0103,_0x4c92db){return _0x416b1d(_0x36e6e3,_0x5d0103,_0x4c92db);},'CbbBA':function(_0x3c3b37,_0x17eeee){return _0x3c3b37===_0x17eeee;},'HAZRK':_0xcfa034(0x204),'zFBSW':_0xcfa034(0x1b9),'BoxlA':function(_0x63ad5b,_0x11efb0){return _0x63ad5b(_0x11efb0);},'AzLGk':function(_0x366711,_0x2f0720){return _0x366711===_0x2f0720;},'spZoB':function(_0x3db54f,_0x52824b){return _0x3db54f===_0x52824b;},'hKZMK':_0xcfa034(0x1fe),'csGIa':_0xcfa034(0x177),'EKJaI':function(_0x25dc5c,_0x3b962a,_0x2e5621,_0x26bff4,_0x36fd79,_0x14b25b,_0x326ab8){return _0x25dc5c(_0x3b962a,_0x2e5621,_0x26bff4,_0x36fd79,_0x14b25b,_0x326ab8);},'yAaBw':_0xcfa034(0x1d0),'ykyQW':function(_0x2fdf60,_0x1a5c83){return _0x2fdf60===_0x1a5c83;},'voYer':function(_0x4b5d57,_0x14dc94){return _0x4b5d57!==_0x14dc94;},'lqwMJ':_0xcfa034(0x1b0),'tsUWO':_0xcfa034(0x1c0),'hgoNH':function(_0xaba775,_0x238d9b,_0x2c5847,_0xf9c1fd){return _0xaba775(_0x238d9b,_0x2c5847,_0xf9c1fd);},'LAhoD':function(_0x327742,_0x190de4){return _0x327742!==_0x190de4;},'drxvB':_0xcfa034(0x1c3),'nqRVu':_0xcfa034(0x1b8),'imBcC':_0xcfa034(0x1ad),'eobrL':function(_0xdb00fd,_0x48c293){return _0xdb00fd===_0x48c293;},'kxTPe':_0xcfa034(0x1f2),'DzKOK':_0xcfa034(0x17e),'KqUym':function(_0x3a325f){return _0x3a325f();},'QdKRz':_0xcfa034(0x1c8),'DfNZk':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','KotQG':function(_0xd29b3a,_0x348333){return _0xd29b3a(_0x348333);},'pyGix':function(_0x419575,_0xac2e2a,_0x803601,_0xb11c2b,_0x5164e3,_0x35acb1){return _0x419575(_0xac2e2a,_0x803601,_0xb11c2b,_0x5164e3,_0x35acb1);},'yvIEn':_0xcfa034(0x190),'zdIeG':function(_0x5e4909,_0x168c2a){return _0x5e4909(_0x168c2a);},'aKqOJ':function(_0x8a1632,_0x4fbf70){return _0x8a1632!==_0x4fbf70;},'WTpPB':_0xcfa034(0x1fb),'egPBG':function(_0x23cfeb,_0x57aa48,_0x565c1f,_0x500a8c,_0x2acbb2,_0x56992c,_0x1ad281){return _0x23cfeb(_0x57aa48,_0x565c1f,_0x500a8c,_0x2acbb2,_0x56992c,_0x1ad281);},'wHAdV':_0xcfa034(0x18d),'kvixw':'invalid-grid-id','kXxXT':function(_0xa57869,_0x57912e,_0x4e2bbe,_0x3b6a62,_0x46274e,_0x1ab07e,_0x4489c6){return _0xa57869(_0x57912e,_0x4e2bbe,_0x3b6a62,_0x46274e,_0x1ab07e,_0x4489c6);},'Niqpp':function(_0x597a9c,_0x526bd3,_0xfc4a91,_0x9a9e7f,_0x148b64,_0x59165b,_0x23f406){return _0x597a9c(_0x526bd3,_0xfc4a91,_0x9a9e7f,_0x148b64,_0x59165b,_0x23f406);},'BoULK':_0xcfa034(0x1d1)};try{global_registry[_0xcfa034(0x1ef)]=_0x2bda73['CCiui'](uuidv4);!fs[_0xcfa034(0x180)](_0x2bda73[_0xcfa034(0x185)](getCredentialsPath))&&(_0x2bda73['hpwVZ'](_0x2bda73[_0xcfa034(0x1bf)],_0x2bda73[_0xcfa034(0x1a9)])?(console[_0xcfa034(0x1ed)](_0x2bda73[_0xcfa034(0x1aa)]),await _0x2bda73[_0xcfa034(0x200)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes[_0xcfa034(0x1bc)],_0x2bda73[_0xcfa034(0x1c7)],null,_0x21feb1),process[_0xcfa034(0x201)](0x1)):_0x24d35b[_0xcfa034(0x1ff)](_0xcfa034(0x1d9)+_0x293933[_0xcfa034(0x1b4)]+_0xcfa034(0x188)));_0x2bda73[_0xcfa034(0x1ce)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes[_0xcfa034(0x1d6)],null,null,_0x21feb1);!_0x21feb1[_0xcfa034(0x176)]&&(_0x2bda73[_0xcfa034(0x1ba)](_0x2bda73[_0xcfa034(0x1a8)],_0x2bda73[_0xcfa034(0x1ec)])?(console[_0xcfa034(0x1ed)](_0x2bda73[_0xcfa034(0x186)]),process[_0xcfa034(0x201)](0x1)):_0x204dcd[_0xcfa034(0x1eb)]={});const _0x4dcd10=JSON['parse'](fs['readFileSync'](_0x2bda73[_0xcfa034(0x185)](getCredentialsPath))),[_0xde9e3b,_0x5076f3]=await _0x2bda73[_0xcfa034(0x1dc)](getGridDetails,_0x4dcd10['Browserstack'][_0xcfa034(0x1b6)],_0x4dcd10[_0xcfa034(0x204)][_0xcfa034(0x17a)],_0x21feb1['gridId']);if(_0x5076f3){const _0xc56907=_0x5076f3[_0xcfa034(0x184)];let _0x410f11=_0xcfa034(0x172)+_0xc56907['name']+_0xcfa034(0x1f9)+_0xc56907['id']+_0xcfa034(0x183),_0x1ccd79;_0x5076f3['onlyGridInCluster']&&_0x2bda73['CbbBA'](_0x5076f3['clusterSpawnedVia'],_0x2bda73[_0xcfa034(0x19c)])&&(_0x2bda73[_0xcfa034(0x1cc)](_0x2bda73['zFBSW'],_0x2bda73[_0xcfa034(0x1e3)])?_0x410f11=_0xcfa034(0x172)+_0xc56907[_0xcfa034(0x1da)]+'\x22\x20and\x20ID\x20'+_0xc56907['id']+_0xcfa034(0x1f1)+_0xc56907[_0xcfa034(0x1b4)]+'\x22\x20with\x20ID\x20'+_0xc56907[_0xcfa034(0x1b5)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':_0x309c23='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x359544[_0xcfa034(0x1da)]+_0xcfa034(0x1f9)+_0x4ad9c4['id']+_0xcfa034(0x1f1)+_0x5958a3['clusterName']+_0xcfa034(0x1d3)+_0x43c35a[_0xcfa034(0x1b5)]+_0xcfa034(0x183));_0x1ccd79=await _0x2bda73[_0xcfa034(0x1e6)](inputConfirmation,_0x410f11);if(_0x2bda73[_0xcfa034(0x1cc)](_0x1ccd79,undefined)||_0x2bda73[_0xcfa034(0x1f3)](_0x1ccd79,null)||!(_0x2bda73[_0xcfa034(0x175)](_0x1ccd79[_0xcfa034(0x1d7)](),'y')||_0x2bda73[_0xcfa034(0x1f3)](_0x1ccd79['toLowerCase'](),'n'))){if(_0x2bda73['AzLGk'](_0x2bda73[_0xcfa034(0x1ca)],_0x2bda73[_0xcfa034(0x1ca)]))console['error'](_0x2bda73[_0xcfa034(0x194)]),await _0x2bda73['EKJaI'](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes['ERROR'],_0x2bda73[_0xcfa034(0x1a6)],null,_0x21feb1),process[_0xcfa034(0x201)](0x1);else{const _0x553b6f={};_0x553b6f['description']=_0x2bda73[_0xcfa034(0x18e)],_0x553b6f[_0xcfa034(0x18f)]=_0x2bda73[_0xcfa034(0x193)];const _0x5cbdb4={};return _0x5cbdb4[_0xcfa034(0x1fc)]=_0x553b6f,_0x3348e2[_0xcfa034(0x1a5)](_0x2b3c6f[_0xcfa034(0x207)])[_0xcfa034(0x1fa)](_0xa02121)['options'](_0x5cbdb4)[_0xcfa034(0x19a)](_0x2bda73[_0xcfa034(0x181)])[_0xcfa034(0x1f5)];}}_0x2bda73[_0xcfa034(0x1ee)](_0x1ccd79['toLowerCase'](),'n')&&(_0x2bda73[_0xcfa034(0x198)](_0x2bda73[_0xcfa034(0x1ab)],_0x2bda73[_0xcfa034(0x205)])?process[_0xcfa034(0x201)](0x0):_0x2534fa[_0xcfa034(0x201)](0x0));global_registry['clusterRegion']=_0xc56907['region'];const _0x1e1524=_0xc56907[_0xcfa034(0x1eb)],_0x26471e=_0x2bda73[_0xcfa034(0x1c5)](getCloudProviderObject,_0x1e1524,_0xc56907[_0xcfa034(0x1b4)],_0xc56907[_0xcfa034(0x1da)]),_0xfd75c8=_0x4dcd10[_0xcfa034(0x1eb)];if(_0x2bda73[_0xcfa034(0x1ee)](_0xfd75c8[_0x1e1524],undefined)){if(_0x2bda73[_0xcfa034(0x1e7)](_0x2bda73[_0xcfa034(0x1df)],_0x2bda73[_0xcfa034(0x196)])){logger[_0xcfa034(0x184)](_0x2bda73[_0xcfa034(0x1fd)]);_0x2bda73[_0xcfa034(0x1ee)](_0x4dcd10['cloudProvider'],undefined)&&(_0x2bda73[_0xcfa034(0x1f8)](_0x2bda73[_0xcfa034(0x1e9)],_0x2bda73[_0xcfa034(0x1e0)])?(_0x13e9f0['info'](_0xcfa034(0x1f0)),_0x553c3a[_0xcfa034(0x201)](0x0)):_0x4dcd10[_0xcfa034(0x1eb)]={});_0x4dcd10[_0xcfa034(0x1eb)][_0x1e1524]={};const _0x4a3ca5=await _0x2bda73['ozSOP'](inputCloudProviderKeys,_0x1e1524,_0x4dcd10,_0x26471e);fs[_0xcfa034(0x18c)](_0x2bda73['KqUym'](getCredentialsPath),JSON[_0xcfa034(0x206)](_0x4a3ca5)),logger[_0xcfa034(0x17b)](_0x2bda73[_0xcfa034(0x203)]);}else _0x1c5e49[_0xcfa034(0x1ed)](_0x2bda73['wDuVa']),_0x63dd57[_0xcfa034(0x201)](0x1);}else logger[_0xcfa034(0x184)](_0x2bda73['DfNZk']),await _0x26471e[_0xcfa034(0x192)](_0xfd75c8);_0x26471e[_0xcfa034(0x1cb)]();const _0x42c833=_0x2bda73['KotQG'](kebabCase,_0xc56907[_0xcfa034(0x1da)]),[_0x2cbeee,_0x4ffb07,_0x51bb87,_0x2829d3,_0x32cda6,_0x556455]=await _0x2bda73[_0xcfa034(0x1e6)](createK8sClient,_0x26471e);await _0x2bda73[_0xcfa034(0x1cf)](removeGridComponents,_0x2cbeee,_0x4ffb07,_0x51bb87,_0x2829d3,_0x42c833);if(_0x5076f3[_0xcfa034(0x191)]){const _0x1da583=await _0x26471e[_0xcfa034(0x18a)]();_0x1da583?await _0x26471e[_0xcfa034(0x1be)](_0x2cbeee,_0xc56907['region']):logger[_0xcfa034(0x1ff)](_0xcfa034(0x1d9)+_0xc56907[_0xcfa034(0x1b4)]+_0xcfa034(0x188));}const _0x207e79='https://'+AG_API_URL+_0xcfa034(0x1f6)+_0x21feb1[_0xcfa034(0x176)],_0x51b55d={};_0x51b55d['username']=_0x4dcd10[_0xcfa034(0x204)][_0xcfa034(0x1b6)],_0x51b55d['password']=_0x4dcd10['Browserstack'][_0xcfa034(0x17a)];const _0x26e675={};_0x26e675['url']=_0x207e79,_0x26e675[_0xcfa034(0x1e2)]=_0x2bda73[_0xcfa034(0x1d4)],_0x26e675[_0xcfa034(0x199)]=_0x51b55d;const _0x46313a=_0x26e675,_0x2c4e04=await _0x2bda73[_0xcfa034(0x1ac)](promisifiedRequest,_0x46313a);_0x2bda73[_0xcfa034(0x1c9)](_0x2c4e04,null)&&_0x2bda73[_0xcfa034(0x198)](_0x2c4e04,undefined)&&_0x2bda73[_0xcfa034(0x175)](_0x2c4e04[_0xcfa034(0x1c4)],0xc8)&&(logger['info'](_0xcfa034(0x1f0)),process[_0xcfa034(0x201)](0x0)),logger[_0xcfa034(0x1ed)](_0xcfa034(0x189)+JSON[_0xcfa034(0x206)](_0x2c4e04)),await _0x2bda73['SMbSA'](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes['ERROR'],_0x2bda73['WTpPB'],_0xde9e3b,_0x21feb1),process[_0xcfa034(0x201)](0x1);}_0x2bda73[_0xcfa034(0x175)](_0xde9e3b['statusCode'],0x191)&&(logger[_0xcfa034(0x1ed)](_0xcfa034(0x1a3)),await _0x2bda73['egPBG'](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes['ERROR'],_0x2bda73[_0xcfa034(0x1a7)],null,_0x21feb1),process['exit'](0x1)),_0x2bda73['CbbBA'](_0xde9e3b[_0xcfa034(0x1c4)],0x190)&&(logger[_0xcfa034(0x1ed)](JSON[_0xcfa034(0x1f4)](_0xde9e3b[_0xcfa034(0x1af)])[_0xcfa034(0x1d8)]),await _0x2bda73[_0xcfa034(0x19f)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes[_0xcfa034(0x1bc)],_0x2bda73[_0xcfa034(0x19e)],null,_0x21feb1),process[_0xcfa034(0x201)](0x1)),logger[_0xcfa034(0x1ed)](_0xcfa034(0x1de)+JSON[_0xcfa034(0x206)](_0xde9e3b)),await _0x2bda73[_0xcfa034(0x1a1)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes['ERROR'],_0x2bda73[_0xcfa034(0x1c2)],_0xde9e3b,_0x21feb1),process[_0xcfa034(0x201)](0x1);}catch(_0x1b12f6){logger[_0xcfa034(0x1ed)](_0xcfa034(0x17c)+_0x1b12f6[_0xcfa034(0x1a0)]),await _0x2bda73[_0xcfa034(0x1bd)](sendInstrumentationEvent,_0x21feb1,_0x2bda73[_0xcfa034(0x17f)],messageTypes[_0xcfa034(0x1bc)],_0x2bda73[_0xcfa034(0x202)],_0x1b12f6,_0x21feb1),process[_0xcfa034(0x201)](0x1);}};
@@ -1 +1 @@
1
- function a13_0x54fb(){const _0x1e59d2=['exit','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','string','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','options','DzWpS','wrong-creds','utf-8','ZgpcA','stringify','VkosP','viWVB','/automate/plan.json','bstackUsername','help','hIFLG','tBXah','faDSG','nmWPN','NLyiz','type','init','bstack-username','gRINp','bAapV','9939123esWXKg','env','wJdGP','MVWAb','JNnpB','85HtOeaz','requestId','INFO','argv','XMImB','mkdirSync','Oqyty','readFileSync','init-called','username','desc','opypq','zaioi','url','usage','FFLTM','DpjcT','jdLag','../config/logger','iLTej','xtqTP','https://','useNm','BROWSERSTACK_ACCESS_KEY','description','parse','bstackAccesskey','TvXIG','vGmlc','vhKJO','DLjzv','builder','unknown-error','1820donjDH','GET','JxQHv','IBSAb','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-accesskey','request','26fwbiiU','8ltVhZi','1285666vwlDnh','aECcn','stack','3477528CxBSFK','BROWSERSTACK_USERNAME','LCsaD','Zsyjt','dIWdN','epilogue','osXcF','CPHtE','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','rAUKc','dJuYI','80971rwFvQu','writeFileSync','60684zdjYgn','statusCode','MCJAI','137265XaYmFD','recommendCommands','ottTO','nwYDb','promisify','strict','5562403joUbNy','existsSync','VWbjt','handler','Browserstack','PjViT','../utils/instrumentationUtils','honXp','method','password','vfrpX','6EYTlcC','OuHCL','util','dLEVb','error','ERROR'];a13_0x54fb=function(){return _0x1e59d2;};return a13_0x54fb();}const a13_0x5be148=a13_0x3c96;function a13_0x3c96(_0x31d9d2,_0x462ad7){const _0x54fbb7=a13_0x54fb();return a13_0x3c96=function(_0x3c96e4,_0x3ade23){_0x3c96e4=_0x3c96e4-0x129;let _0x420371=_0x54fbb7[_0x3c96e4];return _0x420371;},a13_0x3c96(_0x31d9d2,_0x462ad7);}(function(_0x2c3ada,_0x27ca7c){const _0x1fbca4=a13_0x3c96,_0x108d11=_0x2c3ada();while(!![]){try{const _0x18d170=parseInt(_0x1fbca4(0x16d))/0x1+parseInt(_0x1fbca4(0x16b))/0x2*(-parseInt(_0x1fbca4(0x181))/0x3)+-parseInt(_0x1fbca4(0x17e))/0x4*(-parseInt(_0x1fbca4(0x143))/0x5)+-parseInt(_0x1fbca4(0x192))/0x6*(parseInt(_0x1fbca4(0x187))/0x7)+-parseInt(_0x1fbca4(0x16c))/0x8*(parseInt(_0x1fbca4(0x13e))/0x9)+-parseInt(_0x1fbca4(0x164))/0xa*(-parseInt(_0x1fbca4(0x17c))/0xb)+parseInt(_0x1fbca4(0x170))/0xc;if(_0x18d170===_0x27ca7c)break;else _0x108d11['push'](_0x108d11['shift']());}catch(_0x1b7e22){_0x108d11['push'](_0x108d11['shift']());}}}(a13_0x54fb,0xa5d6e));const fs=require('fs'),util=require(a13_0x5be148(0x194)),request=require(a13_0x5be148(0x16a)),{v4:uuidv4}=require('uuid'),{logger}=require(a13_0x5be148(0x155)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a13_0x5be148(0x18d)),promisifiedRequest=util[a13_0x5be148(0x185)](request);exports['command']=a13_0x5be148(0x13a),exports[a13_0x5be148(0x14d)]=a13_0x5be148(0x178),exports[a13_0x5be148(0x162)]=function(_0x173dc5){const _0x4fc93b=a13_0x5be148,_0x4745de={};_0x4745de[_0x4fc93b(0x12f)]=_0x4fc93b(0x168),_0x4745de[_0x4fc93b(0x14f)]=_0x4fc93b(0x19a),_0x4745de[_0x4fc93b(0x18c)]=_0x4fc93b(0x199),_0x4745de[_0x4fc93b(0x154)]=_0x4fc93b(0x133);const _0x4c4e00=_0x4745de,_0x3449b2={};_0x3449b2[_0x4fc93b(0x15b)]=_0x4c4e00[_0x4fc93b(0x12f)],_0x3449b2[_0x4fc93b(0x139)]=_0x4c4e00['zaioi'];const _0x21fccc={};_0x21fccc[_0x4fc93b(0x15b)]=_0x4c4e00[_0x4fc93b(0x18c)],_0x21fccc[_0x4fc93b(0x139)]=_0x4c4e00['zaioi'];const _0x464952={};return _0x464952[_0x4fc93b(0x13b)]=_0x3449b2,_0x464952[_0x4fc93b(0x169)]=_0x21fccc,_0x173dc5[_0x4fc93b(0x151)](HELP_HEADER_MESSAGE[_0x4fc93b(0x13a)])[_0x4fc93b(0x175)](HELP_FOOTER_MESSAGE)[_0x4fc93b(0x129)](_0x464952)[_0x4fc93b(0x182)]()[_0x4fc93b(0x186)]()[_0x4fc93b(0x133)](_0x4c4e00[_0x4fc93b(0x154)])[_0x4fc93b(0x146)];},exports[a13_0x5be148(0x18a)]=async function(_0xfdbd21){const _0x277911=a13_0x5be148,_0x24b8f4={'IBSAb':_0x277911(0x168),'LCsaD':'string','viWVB':_0x277911(0x199),'opypq':_0x277911(0x133),'JxQHv':_0x277911(0x12c),'tBXah':function(_0x192a1f){return _0x192a1f();},'aECcn':function(_0x4bbe92,_0x139445,_0x35b02f,_0x352ff8,_0xcc267a,_0x2ea144,_0x443ea2){return _0x4bbe92(_0x139445,_0x35b02f,_0x352ff8,_0xcc267a,_0x2ea144,_0x443ea2);},'nwYDb':_0x277911(0x14b),'useNm':function(_0x10f2e2){return _0x10f2e2();},'VWbjt':function(_0x497df4,_0x306db2){return _0x497df4===_0x306db2;},'vhKJO':_0x277911(0x195),'hIFLG':_0x277911(0x191),'ZgpcA':function(_0x4d1eaa,_0x150c18){return _0x4d1eaa!==_0x150c18;},'faDSG':_0x277911(0x15f),'WXpjw':'Pgitn','TvXIG':_0x277911(0x18e),'YVxBQ':_0x277911(0x12a),'Oqyty':_0x277911(0x17a),'xtqTP':_0x277911(0x152),'ottTO':function(_0x103c06,_0x4e3c34){return _0x103c06===_0x4e3c34;},'XMImB':function(_0xe9e07,_0x532953){return _0xe9e07!==_0x532953;},'UPmcO':_0x277911(0x13d),'CmMLd':_0x277911(0x137),'osXcF':_0x277911(0x19b),'DpjcT':_0x277911(0x165),'rCSji':function(_0x4788ab,_0x5d9d28){return _0x4788ab(_0x5d9d28);},'zDcBz':function(_0xd37882,_0x4b7a5c){return _0xd37882!==_0x4b7a5c;},'MVWAb':function(_0x21ccbf,_0x5dd50a){return _0x21ccbf!==_0x5dd50a;},'CPHtE':_0x277911(0x193),'iLTej':_0x277911(0x138),'wJdGP':function(_0x4531c5,_0x52f666){return _0x4531c5===_0x52f666;},'FIOOB':'mcOVZ','tSSXf':function(_0x892def){return _0x892def();},'gRINp':function(_0x267769,_0x31ec31){return _0x267769!==_0x31ec31;},'MCJAI':_0x277911(0x173),'dJuYI':_0x277911(0x174),'JNnpB':_0x277911(0x179),'DLjzv':_0x277911(0x12b),'Dojod':_0x277911(0x163)};try{global_registry[_0x277911(0x144)]=_0x24b8f4[_0x277911(0x135)](uuidv4),_0x24b8f4[_0x277911(0x16e)](sendInstrumentationEvent,_0xfdbd21,_0x24b8f4[_0x277911(0x184)],messageTypes[_0x277911(0x145)],null,null,_0xfdbd21);const _0x28c2f5=_0x24b8f4['useNm'](getDirForConfig);if(!fs[_0x277911(0x188)](_0x28c2f5)){if(_0x24b8f4[_0x277911(0x189)](_0x24b8f4[_0x277911(0x160)],_0x24b8f4[_0x277911(0x134)])){const _0xe7903e={};_0xe7903e[_0x277911(0x15b)]=_0x24b8f4[_0x277911(0x167)],_0xe7903e['type']=_0x24b8f4[_0x277911(0x172)];const _0x385eb0={};_0x385eb0[_0x277911(0x15b)]=_0x24b8f4[_0x277911(0x130)],_0x385eb0[_0x277911(0x139)]=_0x24b8f4[_0x277911(0x172)];const _0xaff6fd={};return _0xaff6fd[_0x277911(0x13b)]=_0xe7903e,_0xaff6fd[_0x277911(0x169)]=_0x385eb0,_0x32c4b8['usage'](_0x3813ae[_0x277911(0x13a)])[_0x277911(0x175)](_0x1ed290)[_0x277911(0x129)](_0xaff6fd)['recommendCommands']()[_0x277911(0x186)]()['help'](_0x24b8f4[_0x277911(0x14e)])[_0x277911(0x146)];}else fs[_0x277911(0x148)](_0x28c2f5);}let _0x3c0845,_0x312168;process[_0x277911(0x13f)][_0x277911(0x171)]&&(_0x24b8f4[_0x277911(0x12d)](_0x24b8f4[_0x277911(0x136)],_0x24b8f4['WXpjw'])?_0x3c0845=process[_0x277911(0x13f)]['BROWSERSTACK_USERNAME']:_0x3045a9=_0x1f0784[_0x277911(0x13f)][_0x277911(0x171)]);process[_0x277911(0x13f)][_0x277911(0x15a)]&&(_0x24b8f4[_0x277911(0x189)](_0x24b8f4[_0x277911(0x15e)],_0x24b8f4['YVxBQ'])?_0x2b4709=_0x20279e[_0x277911(0x15c)](_0x460f66[_0x277911(0x14a)](_0x56f064,_0x24b8f4[_0x277911(0x166)])):_0x312168=process[_0x277911(0x13f)][_0x277911(0x15a)]);_0xfdbd21[_0x277911(0x132)]&&(_0x24b8f4[_0x277911(0x12d)](_0x24b8f4[_0x277911(0x149)],_0x24b8f4[_0x277911(0x149)])?_0x54da8f=_0x119516[_0x277911(0x15d)]:_0x3c0845=_0xfdbd21[_0x277911(0x132)]);if(_0xfdbd21['bstackAccesskey']){if(_0x24b8f4[_0x277911(0x12d)](_0x24b8f4[_0x277911(0x157)],_0x24b8f4['xtqTP'])){let _0x25310c={};const _0x266c3a=_0x24b8f4['tBXah'](_0x56fc28);_0x3ce9f2[_0x277911(0x188)](_0x266c3a)&&(_0x25310c=_0x147ec1[_0x277911(0x15c)](_0x3d570f[_0x277911(0x14a)](_0x266c3a,_0x24b8f4[_0x277911(0x166)])));const _0x24b1ed={};_0x24b1ed[_0x277911(0x14c)]=_0x4f9e3a,_0x24b1ed['password']=_0x5e24ef,_0x25310c['Browserstack']=_0x24b1ed,_0x2e6c5a[_0x277911(0x17d)](_0x266c3a,_0x76c2ef[_0x277911(0x12e)](_0x25310c)),_0x160e05['exit'](0x0);}else _0x312168=_0xfdbd21[_0x277911(0x15d)];}if(_0x24b8f4[_0x277911(0x189)](_0x3c0845,undefined)||_0x24b8f4[_0x277911(0x183)](_0x312168,undefined)){if(_0x24b8f4[_0x277911(0x147)](_0x24b8f4['UPmcO'],_0x24b8f4['CmMLd'])){logger['debug'](_0x24b8f4[_0x277911(0x176)]);const [_0x20f229,_0x2d6603]=await _0x24b8f4[_0x277911(0x159)](inputBstackKeys);_0x3c0845=_0x20f229,_0x312168=_0x2d6603;}else _0x78bdc0=!![];}let _0x2e0537=![];const _0x27a050={};_0x27a050[_0x277911(0x150)]=_0x277911(0x158)+_0x3c0845+':'+_0x312168+'@'+BS_API_URL+_0x277911(0x131),_0x27a050[_0x277911(0x18f)]=_0x24b8f4[_0x277911(0x153)];const _0x48f9da=_0x27a050,_0x2f5f8b=await _0x24b8f4['rCSji'](promisifiedRequest,_0x48f9da);_0x24b8f4['zDcBz'](_0x2f5f8b,null)&&_0x24b8f4[_0x277911(0x141)](_0x2f5f8b,undefined)&&_0x24b8f4[_0x277911(0x183)](_0x2f5f8b[_0x277911(0x17f)],0xc8)&&(_0x24b8f4[_0x277911(0x189)](_0x24b8f4[_0x277911(0x177)],_0x24b8f4[_0x277911(0x156)])?_0x54b21e[_0x277911(0x148)](_0x1e49be):_0x2e0537=!![]);if(_0x2e0537){if(_0x24b8f4[_0x277911(0x140)](_0x24b8f4['FIOOB'],_0x24b8f4['FIOOB'])){let _0x3e2646={};const _0x348de3=_0x24b8f4['tSSXf'](getCredentialsPath);fs['existsSync'](_0x348de3)&&(_0x24b8f4[_0x277911(0x13c)](_0x24b8f4[_0x277911(0x180)],_0x24b8f4[_0x277911(0x17b)])?_0x3e2646=JSON[_0x277911(0x15c)](fs[_0x277911(0x14a)](_0x348de3,_0x24b8f4['JxQHv'])):_0xe1c537=_0x39c3d9['bstackUsername']);const _0x535e36={};_0x535e36[_0x277911(0x14c)]=_0x3c0845,_0x535e36[_0x277911(0x190)]=_0x312168,_0x3e2646[_0x277911(0x18b)]=_0x535e36,fs[_0x277911(0x17d)](_0x348de3,JSON[_0x277911(0x12e)](_0x3e2646)),process[_0x277911(0x198)](0x0);}else _0x2d4d44=_0x37b68f[_0x277911(0x13f)]['BROWSERSTACK_ACCESS_KEY'];}else logger[_0x277911(0x196)](_0x24b8f4[_0x277911(0x142)]),await _0x24b8f4[_0x277911(0x16e)](sendInstrumentationEvent,_0xfdbd21,_0x24b8f4[_0x277911(0x184)],messageTypes[_0x277911(0x197)],_0x24b8f4[_0x277911(0x161)],null,_0xfdbd21),process[_0x277911(0x198)](0x1);}catch(_0x587c7a){logger['error'](_0x587c7a[_0x277911(0x16f)]),await _0x24b8f4[_0x277911(0x16e)](sendInstrumentationEvent,_0xfdbd21,_0x24b8f4[_0x277911(0x184)],messageTypes[_0x277911(0x197)],_0x24b8f4['Dojod'],_0x587c7a,_0xfdbd21),process[_0x277911(0x198)](0x1);}};
1
+ const a13_0x44c8cb=a13_0x4ffa;(function(_0x5ba7ec,_0x12306e){const _0x4707b5=a13_0x4ffa,_0x54df55=_0x5ba7ec();while(!![]){try{const _0x3d2600=parseInt(_0x4707b5(0x1a5))/0x1+parseInt(_0x4707b5(0x192))/0x2+-parseInt(_0x4707b5(0x17a))/0x3*(parseInt(_0x4707b5(0x17e))/0x4)+-parseInt(_0x4707b5(0x177))/0x5*(-parseInt(_0x4707b5(0x1c1))/0x6)+parseInt(_0x4707b5(0x1ae))/0x7+parseInt(_0x4707b5(0x189))/0x8+parseInt(_0x4707b5(0x18a))/0x9*(-parseInt(_0x4707b5(0x1c2))/0xa);if(_0x3d2600===_0x12306e)break;else _0x54df55['push'](_0x54df55['shift']());}catch(_0x4f2ffc){_0x54df55['push'](_0x54df55['shift']());}}}(a13_0x28a5,0xc91e2));function a13_0x4ffa(_0x4ab3ca,_0x441711){const _0x28a5b8=a13_0x28a5();return a13_0x4ffa=function(_0x4ffa3a,_0x5007f4){_0x4ffa3a=_0x4ffa3a-0x16d;let _0x13d95d=_0x28a5b8[_0x4ffa3a];return _0x13d95d;},a13_0x4ffa(_0x4ab3ca,_0x441711);}const fs=require('fs'),util=require(a13_0x44c8cb(0x1cd)),request=require(a13_0x44c8cb(0x1d0)),{v4:uuidv4}=require(a13_0x44c8cb(0x1ad)),{logger}=require(a13_0x44c8cb(0x19d)),{inputBstackKeys}=require(a13_0x44c8cb(0x18c)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x44c8cb(0x1b7)),{getDirForConfig,getCredentialsPath}=require(a13_0x44c8cb(0x187)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util['promisify'](request);function a13_0x28a5(){const _0x3b129f=['uuid','6190779VUQBuf','lLRRL','bGohq','GaQxo','dnwen','EFqVv','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','QjjTM','INFO','../config/constants','pGmMq','https://','usage','epilogue','tdpuD','description','argv','stringify','existsSync','6ToEVKW','225630htYqYG','bstackUsername','chVRN','ERROR','builder','recommendCommands','fgCgc','desc','type','readFileSync','JSuXr','util','FUXmN','bstack-username','request','XSfgR','rQdlP','unknown-error','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','lFqlJ','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','utf-8','BROWSERSTACK_ACCESS_KEY','qlUDg','vUIKI','3714915PLVFME','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','JcAQM','36753iKWAKE','string','handler','FCAVU','36IluVNo','YXdpZ','CZvuU','FdhqO','AJtxk','options','parse','env','RJvCY','../utils/utilityMethods','SOJBB','4382424dlmQGD','846QsMcCK','strict','../utils/userInput','statusCode','username','siKKq','RfPXw','KYuSe','1619370RUmImx','NbMpk','init','yAcYE','error','stack','debug','mkdirSync','apYHa','PnmhY','vtYXx','../config/logger','Browserstack','MpWdJ','rIiyt','LRcku','writeFileSync','help','MTvzg','70091cLzXAi','bstackAccesskey','hInGn','password','BROWSERSTACK_USERNAME','bstack-accesskey','FeQAP','exit'];a13_0x28a5=function(){return _0x3b129f;};return a13_0x28a5();}exports['command']=a13_0x44c8cb(0x194),exports[a13_0x44c8cb(0x1c9)]=a13_0x44c8cb(0x178),exports[a13_0x44c8cb(0x1c6)]=function(_0x43827c){const _0x44b0de=a13_0x44c8cb,_0x5b5eb7={};_0x5b5eb7[_0x44b0de(0x182)]=_0x44b0de(0x172),_0x5b5eb7[_0x44b0de(0x186)]='string',_0x5b5eb7[_0x44b0de(0x17f)]=_0x44b0de(0x170),_0x5b5eb7[_0x44b0de(0x1a7)]=_0x44b0de(0x1a3);const _0x2b38ce=_0x5b5eb7,_0x1d9907={};_0x1d9907['description']=_0x2b38ce[_0x44b0de(0x182)],_0x1d9907[_0x44b0de(0x1ca)]=_0x2b38ce[_0x44b0de(0x186)];const _0x2bf4bb={};_0x2bf4bb[_0x44b0de(0x1bd)]=_0x2b38ce[_0x44b0de(0x17f)],_0x2bf4bb[_0x44b0de(0x1ca)]=_0x2b38ce[_0x44b0de(0x186)];const _0x2d4a17={};return _0x2d4a17[_0x44b0de(0x1cf)]=_0x1d9907,_0x2d4a17[_0x44b0de(0x1aa)]=_0x2bf4bb,_0x43827c[_0x44b0de(0x1ba)](HELP_HEADER_MESSAGE[_0x44b0de(0x194)])[_0x44b0de(0x1bb)](HELP_FOOTER_MESSAGE)['options'](_0x2d4a17)[_0x44b0de(0x1c7)]()['strict']()[_0x44b0de(0x1a3)](_0x2b38ce[_0x44b0de(0x1a7)])[_0x44b0de(0x1be)];},exports[a13_0x44c8cb(0x17c)]=async function(_0x588c08){const _0x5746f5=a13_0x44c8cb,_0x4e0a26={'dnwen':function(_0x4aaba0){return _0x4aaba0();},'vtYXx':_0x5746f5(0x173),'FUXmN':_0x5746f5(0x172),'CZvuU':_0x5746f5(0x17b),'lrOga':_0x5746f5(0x170),'JSuXr':'help','FeQAP':function(_0x34b687,_0x104f5a,_0x39ca3f,_0x374bb5,_0xa8cc51,_0x24c337,_0x27bf2e){return _0x34b687(_0x104f5a,_0x39ca3f,_0x374bb5,_0xa8cc51,_0x24c337,_0x27bf2e);},'SOJBB':'init-called','MTvzg':function(_0x290899,_0x22b324){return _0x290899===_0x22b324;},'qlUDg':'wJSRZ','lFqlJ':function(_0x27e5c4,_0x3dc45b){return _0x27e5c4!==_0x3dc45b;},'EFqVv':_0x5746f5(0x193),'JcAQM':_0x5746f5(0x1b1),'aDfxw':_0x5746f5(0x19b),'vUIKI':_0x5746f5(0x1b5),'UnLxq':_0x5746f5(0x195),'yfBjO':_0x5746f5(0x181),'pGmMq':'epLHz','LRcku':function(_0x407096,_0x2cc3df){return _0x407096===_0x2cc3df;},'MpWdJ':function(_0x6d08ac,_0x5168c5){return _0x6d08ac===_0x5168c5;},'icuCD':_0x5746f5(0x191),'RfPXw':_0x5746f5(0x1a0),'SeTZs':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','DgtYj':function(_0x3609a5){return _0x3609a5();},'lLRRL':'GET','XSfgR':function(_0xaed5e3,_0x560559){return _0xaed5e3(_0x560559);},'chVRN':function(_0x15602f,_0x5db50b){return _0x15602f!==_0x5db50b;},'tdpuD':'UGiMd','lAcIm':_0x5746f5(0x17d),'apYHa':_0x5746f5(0x16e),'fgCgc':function(_0x330cce){return _0x330cce();},'bGohq':'VOJrm','EBdzW':_0x5746f5(0x1b4),'siKKq':'wrong-creds','sQSan':_0x5746f5(0x16f)};try{global_registry['requestId']=_0x4e0a26[_0x5746f5(0x1b2)](uuidv4),_0x4e0a26['FeQAP'](sendInstrumentationEvent,_0x588c08,_0x4e0a26[_0x5746f5(0x188)],messageTypes[_0x5746f5(0x1b6)],null,null,_0x588c08);const _0x572b54=_0x4e0a26[_0x5746f5(0x1b2)](getDirForConfig);if(!fs[_0x5746f5(0x1c0)](_0x572b54)){if(_0x4e0a26['MTvzg'](_0x4e0a26[_0x5746f5(0x175)],_0x4e0a26['qlUDg']))fs[_0x5746f5(0x199)](_0x572b54);else{let _0x586ee8={};const _0x3a81f9=_0x4e0a26[_0x5746f5(0x1b2)](_0x4bc0bc);_0x4cd040['existsSync'](_0x3a81f9)&&(_0x586ee8=_0x173e73[_0x5746f5(0x184)](_0x1d8f37[_0x5746f5(0x1cb)](_0x3a81f9,_0x4e0a26[_0x5746f5(0x19c)])));const _0x22ff86={};_0x22ff86[_0x5746f5(0x18e)]=_0x2da674,_0x22ff86[_0x5746f5(0x1a8)]=_0x3fe2f1,_0x586ee8[_0x5746f5(0x19e)]=_0x22ff86,_0x568b41['writeFileSync'](_0x3a81f9,_0x49200c[_0x5746f5(0x1bf)](_0x586ee8)),_0x495298['exit'](0x0);}}let _0xbb5970,_0x4d026a;process[_0x5746f5(0x185)]['BROWSERSTACK_USERNAME']&&(_0x4e0a26[_0x5746f5(0x171)](_0x4e0a26[_0x5746f5(0x1b3)],_0x4e0a26[_0x5746f5(0x179)])?_0xbb5970=process[_0x5746f5(0x185)][_0x5746f5(0x1a9)]:_0x38b54=_0x460060[_0x5746f5(0x185)][_0x5746f5(0x174)]);process[_0x5746f5(0x185)]['BROWSERSTACK_ACCESS_KEY']&&(_0x4e0a26[_0x5746f5(0x1a4)](_0x4e0a26['aDfxw'],_0x4e0a26[_0x5746f5(0x176)])?_0x226db1=_0x1ea767[_0x5746f5(0x185)][_0x5746f5(0x1a9)]:_0x4d026a=process[_0x5746f5(0x185)][_0x5746f5(0x174)]);_0x588c08[_0x5746f5(0x1c3)]&&(_0x4e0a26[_0x5746f5(0x171)](_0x4e0a26['UnLxq'],_0x4e0a26['yfBjO'])?_0xbb5970=_0x588c08[_0x5746f5(0x1c3)]:_0x61b4cc=_0x3d919b['parse'](_0x36ba15[_0x5746f5(0x1cb)](_0x52e9ee,_0x4e0a26[_0x5746f5(0x19c)])));_0x588c08['bstackAccesskey']&&(_0x4e0a26['lFqlJ'](_0x4e0a26[_0x5746f5(0x1b8)],_0x4e0a26['pGmMq'])?_0x1dea13=_0x59d975[_0x5746f5(0x1a6)]:_0x4d026a=_0x588c08[_0x5746f5(0x1a6)]);if(_0x4e0a26[_0x5746f5(0x1a1)](_0xbb5970,undefined)||_0x4e0a26[_0x5746f5(0x1a1)](_0x4d026a,undefined)){if(_0x4e0a26[_0x5746f5(0x19f)](_0x4e0a26['icuCD'],_0x4e0a26[_0x5746f5(0x190)]))_0x1ebe8d=_0x2d27e4[_0x5746f5(0x1c3)];else{logger[_0x5746f5(0x198)](_0x4e0a26['SeTZs']);const [_0x2d6f54,_0x1637e1]=await _0x4e0a26['DgtYj'](inputBstackKeys);_0xbb5970=_0x2d6f54,_0x4d026a=_0x1637e1;}}let _0x3aff76=![];const _0x3b6fb4={};_0x3b6fb4['url']=_0x5746f5(0x1b9)+_0xbb5970+':'+_0x4d026a+'@'+BS_API_URL+'/automate/plan.json',_0x3b6fb4['method']=_0x4e0a26[_0x5746f5(0x1af)];const _0x10c341=_0x3b6fb4,_0x1f148d=await _0x4e0a26[_0x5746f5(0x16d)](promisifiedRequest,_0x10c341);_0x4e0a26['lFqlJ'](_0x1f148d,null)&&_0x4e0a26[_0x5746f5(0x171)](_0x1f148d,undefined)&&_0x4e0a26[_0x5746f5(0x1a4)](_0x1f148d[_0x5746f5(0x18d)],0xc8)&&(_0x4e0a26[_0x5746f5(0x1c4)](_0x4e0a26[_0x5746f5(0x1bc)],_0x4e0a26['lAcIm'])?_0x3aff76=!![]:_0x40bdfe[_0x5746f5(0x199)](_0x2b5b2c));if(_0x3aff76){if(_0x4e0a26['chVRN'](_0x4e0a26['apYHa'],_0x4e0a26[_0x5746f5(0x19a)])){const _0xc3ddc={};_0xc3ddc[_0x5746f5(0x1bd)]=_0x4e0a26[_0x5746f5(0x1ce)],_0xc3ddc[_0x5746f5(0x1ca)]=_0x4e0a26[_0x5746f5(0x180)];const _0x5cfbeb={};_0x5cfbeb[_0x5746f5(0x1bd)]=_0x4e0a26['lrOga'],_0x5cfbeb[_0x5746f5(0x1ca)]=_0x4e0a26[_0x5746f5(0x180)];const _0x244bf6={};return _0x244bf6[_0x5746f5(0x1cf)]=_0xc3ddc,_0x244bf6[_0x5746f5(0x1aa)]=_0x5cfbeb,_0x12004b['usage'](_0x299b59[_0x5746f5(0x194)])[_0x5746f5(0x1bb)](_0x34f343)[_0x5746f5(0x183)](_0x244bf6)[_0x5746f5(0x1c7)]()[_0x5746f5(0x18b)]()[_0x5746f5(0x1a3)](_0x4e0a26[_0x5746f5(0x1cc)])[_0x5746f5(0x1be)];}else{let _0x1d0c4d={};const _0x1f7ad9=_0x4e0a26[_0x5746f5(0x1c8)](getCredentialsPath);fs[_0x5746f5(0x1c0)](_0x1f7ad9)&&(_0x4e0a26[_0x5746f5(0x1a4)](_0x4e0a26[_0x5746f5(0x1b0)],_0x4e0a26[_0x5746f5(0x1b0)])?_0x1d0c4d=JSON[_0x5746f5(0x184)](fs['readFileSync'](_0x1f7ad9,_0x4e0a26[_0x5746f5(0x19c)])):_0x44c1a5=!![]);const _0x6f3aef={};_0x6f3aef[_0x5746f5(0x18e)]=_0xbb5970,_0x6f3aef[_0x5746f5(0x1a8)]=_0x4d026a,_0x1d0c4d['Browserstack']=_0x6f3aef,fs[_0x5746f5(0x1a2)](_0x1f7ad9,JSON[_0x5746f5(0x1bf)](_0x1d0c4d)),process[_0x5746f5(0x1ac)](0x0);}}else logger[_0x5746f5(0x196)](_0x4e0a26['EBdzW']),await _0x4e0a26['FeQAP'](sendInstrumentationEvent,_0x588c08,_0x4e0a26[_0x5746f5(0x188)],messageTypes['ERROR'],_0x4e0a26[_0x5746f5(0x18f)],null,_0x588c08),process[_0x5746f5(0x1ac)](0x1);}catch(_0x534bd1){logger['error'](_0x534bd1[_0x5746f5(0x197)]),await _0x4e0a26[_0x5746f5(0x1ab)](sendInstrumentationEvent,_0x588c08,_0x4e0a26[_0x5746f5(0x188)],messageTypes[_0x5746f5(0x1c5)],_0x4e0a26['sQSan'],_0x534bd1,_0x588c08),process[_0x5746f5(0x1ac)](0x1);}};
@@ -1 +1 @@
1
- function a14_0x5f53(_0x138f59,_0x108595){const _0x4d5313=a14_0x4d53();return a14_0x5f53=function(_0x5f53ff,_0x1f8b91){_0x5f53ff=_0x5f53ff-0x15e;let _0x34e44e=_0x4d5313[_0x5f53ff];return _0x34e44e;},a14_0x5f53(_0x138f59,_0x108595);}function a14_0x4d53(){const _0x5ab0b2=['command','UwJvD','1620552tqCOSk','333595kgeKqF','list_commands','List\x20down\x20the\x20Grid\x20resources.','4150512qUlYYF','2459009BzWoyv','27muIFuM','1005395uCMbyE','hkKWT','usage','12vZDtJo','strict','commandDir','recommendCommands','list','620470IiEJNc','../config/constants','261906NSZkHf','6ZjfOhN','help'];a14_0x4d53=function(){return _0x5ab0b2;};return a14_0x4d53();}const a14_0x1697e4=a14_0x5f53;(function(_0x338129,_0x5d1ee2){const _0x50e550=a14_0x5f53,_0x4e9c31=_0x338129();while(!![]){try{const _0x4e8759=parseInt(_0x50e550(0x16f))/0x1+-parseInt(_0x50e550(0x162))/0x2*(-parseInt(_0x50e550(0x169))/0x3)+-parseInt(_0x50e550(0x16e))/0x4+-parseInt(_0x50e550(0x15f))/0x5+parseInt(_0x50e550(0x16a))/0x6*(parseInt(_0x50e550(0x173))/0x7)+-parseInt(_0x50e550(0x172))/0x8+parseInt(_0x50e550(0x15e))/0x9*(parseInt(_0x50e550(0x167))/0xa);if(_0x4e8759===_0x5d1ee2)break;else _0x4e9c31['push'](_0x4e9c31['shift']());}catch(_0x506b32){_0x4e9c31['push'](_0x4e9c31['shift']());}}}(a14_0x4d53,0x41dec));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x1697e4(0x168));exports[a14_0x1697e4(0x16c)]='list',exports['desc']=a14_0x1697e4(0x171),exports['builder']=function(_0x38293d){const _0x1104a6=a14_0x1697e4,_0x18f60d={};_0x18f60d[_0x1104a6(0x16d)]=_0x1104a6(0x170),_0x18f60d[_0x1104a6(0x160)]=_0x1104a6(0x16b);const _0x524e02=_0x18f60d;return _0x38293d[_0x1104a6(0x164)](_0x524e02[_0x1104a6(0x16d)])['demandCommand']()[_0x1104a6(0x161)](HELP_HEADER_MESSAGE[_0x1104a6(0x166)]['root'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1104a6(0x165)]()[_0x1104a6(0x163)]()[_0x1104a6(0x16b)](_0x524e02['hkKWT']);},exports['handler']=function(_0x33e7f7){};
1
+ function a14_0x34f8(_0x402a5f,_0x1e18ef){const _0x17da57=a14_0x17da();return a14_0x34f8=function(_0x34f88d,_0x3b5136){_0x34f88d=_0x34f88d-0xf8;let _0x44e464=_0x17da57[_0x34f88d];return _0x44e464;},a14_0x34f8(_0x402a5f,_0x1e18ef);}const a14_0x246f7a=a14_0x34f8;(function(_0x4e0d61,_0xc8e98f){const _0x428786=a14_0x34f8,_0x3577a8=_0x4e0d61();while(!![]){try{const _0x5b7f19=parseInt(_0x428786(0xfe))/0x1+-parseInt(_0x428786(0xfc))/0x2*(parseInt(_0x428786(0x10c))/0x3)+-parseInt(_0x428786(0x100))/0x4+parseInt(_0x428786(0x110))/0x5+parseInt(_0x428786(0xf9))/0x6*(-parseInt(_0x428786(0x111))/0x7)+parseInt(_0x428786(0x109))/0x8*(parseInt(_0x428786(0x107))/0x9)+-parseInt(_0x428786(0xff))/0xa;if(_0x5b7f19===_0xc8e98f)break;else _0x3577a8['push'](_0x3577a8['shift']());}catch(_0xc11b3){_0x3577a8['push'](_0x3577a8['shift']());}}}(a14_0x17da,0x92124));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x246f7a(0xfa));function a14_0x17da(){const _0x3e9337=['../config/constants','epilogue','89970eLtQpi','root','809324zzihWc','2167290ZNtVlR','4593716jyrcNW','YTTgV','commandDir','usage','help','list_commands','Qhimn','10384137tEpWcH','handler','8tieuXE','demandCommand','list','24fpqHqX','recommendCommands','desc','List\x20down\x20the\x20Grid\x20resources.','3264885hkmUcI','1024618tupIxe','command','12abieyY'];a14_0x17da=function(){return _0x3e9337;};return a14_0x17da();}exports[a14_0x246f7a(0xf8)]=a14_0x246f7a(0x10b),exports[a14_0x246f7a(0x10e)]=a14_0x246f7a(0x10f),exports['builder']=function(_0x14cf97){const _0x1b10bc=a14_0x246f7a,_0xfed328={};_0xfed328[_0x1b10bc(0x106)]=_0x1b10bc(0x105),_0xfed328[_0x1b10bc(0x101)]=_0x1b10bc(0x104);const _0xb9dc41=_0xfed328;return _0x14cf97[_0x1b10bc(0x102)](_0xb9dc41[_0x1b10bc(0x106)])[_0x1b10bc(0x10a)]()[_0x1b10bc(0x103)](HELP_HEADER_MESSAGE[_0x1b10bc(0x10b)][_0x1b10bc(0xfd)])[_0x1b10bc(0xfb)](HELP_FOOTER_MESSAGE)[_0x1b10bc(0x10d)]()['strict']()[_0x1b10bc(0x104)](_0xb9dc41[_0x1b10bc(0x101)]);},exports[a14_0x246f7a(0x108)]=function(_0x5cea5d){};
@@ -1 +1 @@
1
- const a15_0x4d5ae4=a15_0x5435;(function(_0x17b5cb,_0x333d01){const _0x56fda6=a15_0x5435,_0x160613=_0x17b5cb();while(!![]){try{const _0x881b6f=-parseInt(_0x56fda6(0x1f0))/0x1+parseInt(_0x56fda6(0x223))/0x2+parseInt(_0x56fda6(0x23d))/0x3+parseInt(_0x56fda6(0x203))/0x4+-parseInt(_0x56fda6(0x230))/0x5+parseInt(_0x56fda6(0x225))/0x6+-parseInt(_0x56fda6(0x20a))/0x7;if(_0x881b6f===_0x333d01)break;else _0x160613['push'](_0x160613['shift']());}catch(_0x45efaf){_0x160613['push'](_0x160613['shift']());}}}(a15_0x1855,0xae5c7));const fs=require('fs'),util=require(a15_0x4d5ae4(0x1ec)),request=require(a15_0x4d5ae4(0x1f6)),{table}=require('table'),{v4:uuidv4}=require(a15_0x4d5ae4(0x21b)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x4d5ae4(0x1ee)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x4d5ae4(0x237)),promisifiedRequest=util['promisify'](request);function a15_0x5435(_0x15e8cc,_0x31b9ce){const _0x18554e=a15_0x1855();return a15_0x5435=function(_0x5435e5,_0x53a88d){_0x5435e5=_0x5435e5-0x1eb;let _0x160564=_0x18554e[_0x5435e5];return _0x160564;},a15_0x5435(_0x15e8cc,_0x31b9ce);}function a15_0x1855(){const _0x3e7dc5=['vOivb','../../utils/instrumentationUtils','vJHgG','xtSQl','ujqhF','method','YdFbh','981576nHfABM','ERROR','MIidy','grid-profiles','lEqad','util','Browserstack','../../config/constants','body','83001KpySYp','nhpRF','iOCHH','eeXLP','KfTPs','stack','request','error','description','list','allGridProfiles','push','region','cDDNq','Failed\x20to\x20list\x20resources!\x20Error:\x20','LaDvp','jJBnj','cloud-provider','type','1232600gzxMiD','HPRvI','cloudProvider','ACjXy','argv','handler','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','9016798vaNRsJ','statusCode','help','usage','existsSync','readFileSync','log','/packages/cli/get-grid-profiles','bstackUsername','name','EPgPB','concurrency','grid-profile-name','parse','requestId','stringify','epilogue','uuid','password','init-not-called','desc','server-error','TwbUy','options','list-grid-profiles-called','2438990LflDBa','nPuZu','2814330zroVMD','boolean','bDBBR','/packages/cli/get-all-grid-profiles','yddmc','ddZNP','exit','url','CzQWh','username','builder','1192970PPipVR','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','https://','gridProfile','GET','unauthorised'];a15_0x1855=function(){return _0x3e7dc5;};return a15_0x1855();}exports['command']=a15_0x4d5ae4(0x240),exports[a15_0x4d5ae4(0x21e)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x4d5ae4(0x22f)]=function(_0x374272){const _0x3b4a1d=a15_0x4d5ae4,_0x21287e={};_0x21287e[_0x3b4a1d(0x200)]=_0x3b4a1d(0x231),_0x21287e['xtSQl']=_0x3b4a1d(0x226),_0x21287e[_0x3b4a1d(0x220)]=_0x3b4a1d(0x20c);const _0x1c51c0=_0x21287e,_0x4c4e71={};_0x4c4e71[_0x3b4a1d(0x1f8)]=_0x1c51c0['jJBnj'],_0x4c4e71[_0x3b4a1d(0x202)]=_0x1c51c0[_0x3b4a1d(0x239)];const _0x4883ee={};return _0x4883ee['all-grid-profiles']=_0x4c4e71,_0x374272[_0x3b4a1d(0x20d)](HELP_HEADER_MESSAGE[_0x3b4a1d(0x1f9)][_0x3b4a1d(0x233)])[_0x3b4a1d(0x21a)](HELP_FOOTER_MESSAGE)[_0x3b4a1d(0x221)](_0x4883ee)[_0x3b4a1d(0x20c)](_0x1c51c0[_0x3b4a1d(0x220)])[_0x3b4a1d(0x207)];},exports[a15_0x4d5ae4(0x208)]=async function(_0x1c7cae){const _0x37a3ad=a15_0x4d5ae4,_0x9da205={'cDDNq':function(_0x25b35d){return _0x25b35d();},'eeXLP':function(_0x44fd9c){return _0x44fd9c();},'nhpRF':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','nPuZu':function(_0x175d70,_0x24423e,_0x57a0c5,_0x18676b,_0x4e9b51,_0x1815c5,_0x1052d8){return _0x175d70(_0x24423e,_0x57a0c5,_0x18676b,_0x4e9b51,_0x1815c5,_0x1052d8);},'HPRvI':_0x37a3ad(0x222),'vOivb':_0x37a3ad(0x21d),'ACjXy':function(_0x4fd4a8,_0x5461c5,_0x15f41f,_0x1432fd,_0x2962e4,_0x29386b,_0x4e22fd){return _0x4fd4a8(_0x5461c5,_0x15f41f,_0x1432fd,_0x2962e4,_0x29386b,_0x4e22fd);},'ddZNP':_0x37a3ad(0x234),'yddmc':function(_0x55c080,_0x248eba){return _0x55c080(_0x248eba);},'bDBBR':function(_0xe1f996,_0x3a9262){return _0xe1f996!==_0x3a9262;},'MIidy':function(_0x4be47f,_0x281f){return _0x4be47f===_0x281f;},'LaDvp':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','EPgPB':_0x37a3ad(0x216),'CzQWh':_0x37a3ad(0x201),'KfTPs':_0x37a3ad(0x1fc),'lEqad':_0x37a3ad(0x215),'iOCHH':function(_0x150822,_0x17679a,_0x370746,_0x53a877,_0x1648fa,_0xd9eace,_0x784b42){return _0x150822(_0x17679a,_0x370746,_0x53a877,_0x1648fa,_0xd9eace,_0x784b42);},'vJHgG':_0x37a3ad(0x235),'YdFbh':_0x37a3ad(0x21f),'mrzcN':function(_0x30308b,_0x45243a,_0x198bd0,_0x2cd0da,_0x8cefa7,_0xe742d4,_0x4989db){return _0x30308b(_0x45243a,_0x198bd0,_0x2cd0da,_0x8cefa7,_0xe742d4,_0x4989db);},'ujqhF':'unknown-error'};try{global_registry[_0x37a3ad(0x218)]=_0x9da205[_0x37a3ad(0x1fd)](uuidv4);let _0x338f4b=_0x37a3ad(0x232)+AG_API_URL+_0x37a3ad(0x211);_0x1c7cae[_0x37a3ad(0x1fa)]&&(_0x338f4b='https://'+AG_API_URL+_0x37a3ad(0x228));!fs[_0x37a3ad(0x20e)](_0x9da205[_0x37a3ad(0x1f3)](getCredentialsPath))&&(console['error'](_0x9da205[_0x37a3ad(0x1f1)]),await _0x9da205[_0x37a3ad(0x224)](sendInstrumentationEvent,_0x1c7cae,_0x9da205[_0x37a3ad(0x204)],messageTypes[_0x37a3ad(0x23e)],_0x9da205[_0x37a3ad(0x236)],null,_0x1c7cae),process[_0x37a3ad(0x22b)](0x1));_0x9da205[_0x37a3ad(0x206)](sendInstrumentationEvent,_0x1c7cae,_0x9da205['HPRvI'],messageTypes['INFO'],null,null,_0x1c7cae);const _0x45bf43=JSON[_0x37a3ad(0x217)](fs[_0x37a3ad(0x20f)](_0x9da205[_0x37a3ad(0x1f3)](getCredentialsPath))),_0x1c5726={};_0x1c5726['username']=_0x45bf43[_0x37a3ad(0x1ed)]['username'],_0x1c5726[_0x37a3ad(0x21c)]=_0x45bf43[_0x37a3ad(0x1ed)][_0x37a3ad(0x21c)];const _0x4c121f={};_0x4c121f[_0x37a3ad(0x22c)]=_0x338f4b,_0x4c121f[_0x37a3ad(0x23b)]=_0x9da205[_0x37a3ad(0x22a)],_0x4c121f['auth']=_0x1c5726;const _0x2b545c=_0x4c121f;global_registry[_0x37a3ad(0x212)]=_0x45bf43['Browserstack'][_0x37a3ad(0x22e)],global_registry['bstackAccesskey']=_0x45bf43[_0x37a3ad(0x1ed)][_0x37a3ad(0x21c)];const _0x1f10a9=await _0x9da205['yddmc'](promisifiedRequest,_0x2b545c);if(_0x9da205['bDBBR'](_0x1f10a9,null)&&_0x9da205[_0x37a3ad(0x227)](_0x1f10a9,undefined)&&_0x9da205[_0x37a3ad(0x23f)](_0x1f10a9['statusCode'],0xc8)){const _0x74072b=JSON[_0x37a3ad(0x217)](_0x1f10a9[_0x37a3ad(0x1ef)]);console[_0x37a3ad(0x210)](_0x9da205[_0x37a3ad(0x1ff)]);const _0x9c3f4e=[];_0x9c3f4e[_0x37a3ad(0x1fb)]([_0x9da205[_0x37a3ad(0x214)],_0x9da205[_0x37a3ad(0x22d)],_0x9da205[_0x37a3ad(0x1f4)],_0x9da205[_0x37a3ad(0x1eb)]]),_0x74072b['forEach'](_0x588bc3=>{const _0x537687=_0x37a3ad;_0x9c3f4e[_0x537687(0x1fb)]([_0x588bc3[_0x537687(0x213)],_0x588bc3[_0x537687(0x205)],_0x588bc3[_0x537687(0x1fc)],_0x588bc3[_0x537687(0x215)]]);}),console['log'](_0x9da205[_0x37a3ad(0x229)](table,_0x9c3f4e)),process[_0x37a3ad(0x22b)](0x0);}_0x9da205[_0x37a3ad(0x23f)](_0x1f10a9[_0x37a3ad(0x20b)],0x191)&&(console[_0x37a3ad(0x1f7)](_0x37a3ad(0x209)),await _0x9da205[_0x37a3ad(0x1f2)](sendInstrumentationEvent,_0x1c7cae,_0x9da205[_0x37a3ad(0x204)],messageTypes[_0x37a3ad(0x23e)],_0x9da205[_0x37a3ad(0x238)],null,_0x1c7cae),process[_0x37a3ad(0x22b)](0x1)),console[_0x37a3ad(0x1f7)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x37a3ad(0x219)](_0x1f10a9)),await _0x9da205[_0x37a3ad(0x224)](sendInstrumentationEvent,_0x1c7cae,_0x9da205[_0x37a3ad(0x204)],messageTypes[_0x37a3ad(0x23e)],_0x9da205[_0x37a3ad(0x23c)],_0x1f10a9,_0x1c7cae),process[_0x37a3ad(0x22b)](0x1);}catch(_0x3a0d52){console['error'](_0x37a3ad(0x1fe)+_0x3a0d52[_0x37a3ad(0x1f5)]),await _0x9da205['mrzcN'](sendInstrumentationEvent,_0x1c7cae,_0x9da205[_0x37a3ad(0x204)],messageTypes[_0x37a3ad(0x23e)],_0x9da205[_0x37a3ad(0x23a)],_0x3a0d52,_0x1c7cae),process['exit'](0x1);}};
1
+ const a15_0x21923d=a15_0x2b9f;(function(_0x3ca35e,_0x51fcf0){const _0x31770c=a15_0x2b9f,_0x818b7a=_0x3ca35e();while(!![]){try{const _0xbcbb42=parseInt(_0x31770c(0x193))/0x1*(parseInt(_0x31770c(0x192))/0x2)+parseInt(_0x31770c(0x17a))/0x3+-parseInt(_0x31770c(0x198))/0x4*(-parseInt(_0x31770c(0x181))/0x5)+-parseInt(_0x31770c(0x195))/0x6*(parseInt(_0x31770c(0x1a4))/0x7)+-parseInt(_0x31770c(0x177))/0x8+parseInt(_0x31770c(0x17b))/0x9*(parseInt(_0x31770c(0x15b))/0xa)+-parseInt(_0x31770c(0x176))/0xb;if(_0xbcbb42===_0x51fcf0)break;else _0x818b7a['push'](_0x818b7a['shift']());}catch(_0x358079){_0x818b7a['push'](_0x818b7a['shift']());}}}(a15_0x26df,0xdcdda));function a15_0x2b9f(_0x42846c,_0x4ede5d){const _0x26df21=a15_0x26df();return a15_0x2b9f=function(_0x2b9fd2,_0x2f1f4d){_0x2b9fd2=_0x2b9fd2-0x159;let _0x5ec4ec=_0x26df21[_0x2b9fd2];return _0x5ec4ec;},a15_0x2b9f(_0x42846c,_0x4ede5d);}function a15_0x26df(){const _0x11a78b=['log','usage','body','table','command','list','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','promisify','error','request','https://','forEach','init-not-called','boolean','description','bstackAccesskey','34273338TsLvea','1316496aWmCqK','khRkk','NUSkl','3060732jzPBNm','9jAFzUH','util','FmuKr','aXMck','concurrency','bstackUsername','4145185QxLiXj','BsKAi','iheEP','kKpJR','UoDqY','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/instrumentationUtils','epilogue','AJgdQ','vcFwZ','builder','password','aSmKb','MmOlo','auth','handler','existsSync','250wgeSoI','14401jWobwN','Browserstack','654upvEDG','dcSNS','method','4AZqlwa','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','unknown-error','ZTexZ','type','stringify','INFO','XWhNU','allGridProfiles','all-grid-profiles','ERROR','Qdloq','19103ZdvpPt','push','options','Failed\x20to\x20list\x20resources!\x20Error:\x20','grid-profiles','srdFo','HDNSr','url','/packages/cli/get-grid-profiles','cloud-provider','EHrIo','desc','AQIPA','cloudProvider','region','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','username','help','server-error','EjbGg','parse','8330410wLeyvC','unauthorised','requestId','list-grid-profiles-called','stack','../../utils/utilityMethods','IHNni','exit','GET','../../config/constants','statusCode'];a15_0x26df=function(){return _0x11a78b;};return a15_0x26df();}const fs=require('fs'),util=require(a15_0x21923d(0x17c)),request=require(a15_0x21923d(0x16f)),{table}=require(a15_0x21923d(0x169)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x21923d(0x164)),{getCredentialsPath}=require(a15_0x21923d(0x160)),{sendInstrumentationEvent}=require(a15_0x21923d(0x187)),promisifiedRequest=util[a15_0x21923d(0x16d)](request);exports[a15_0x21923d(0x16a)]=a15_0x21923d(0x1a8),exports[a15_0x21923d(0x1af)]=a15_0x21923d(0x199),exports[a15_0x21923d(0x18b)]=function(_0x368e7b){const _0x57dabc=a15_0x21923d,_0x8eb309={};_0x8eb309[_0x57dabc(0x196)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x8eb309[_0x57dabc(0x1aa)]=_0x57dabc(0x173),_0x8eb309[_0x57dabc(0x189)]='help';const _0x10047c=_0x8eb309,_0x5e1388={};_0x5e1388[_0x57dabc(0x174)]=_0x10047c['dcSNS'],_0x5e1388[_0x57dabc(0x19c)]=_0x10047c[_0x57dabc(0x1aa)];const _0x514bae={};return _0x514bae[_0x57dabc(0x1a1)]=_0x5e1388,_0x368e7b[_0x57dabc(0x167)](HELP_HEADER_MESSAGE[_0x57dabc(0x16b)]['gridProfile'])[_0x57dabc(0x188)](HELP_FOOTER_MESSAGE)[_0x57dabc(0x1a6)](_0x514bae)[_0x57dabc(0x1b5)](_0x10047c[_0x57dabc(0x189)])['argv'];},exports[a15_0x21923d(0x190)]=async function(_0x515bda){const _0x14a7dd=a15_0x21923d,_0x4f83af={'MmOlo':function(_0x5480eb){return _0x5480eb();},'vmBKI':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EHrIo':function(_0x54bda2,_0x2f8b6c,_0x739831,_0x9bf0c7,_0x53bc66,_0x24d319,_0x1fb709){return _0x54bda2(_0x2f8b6c,_0x739831,_0x9bf0c7,_0x53bc66,_0x24d319,_0x1fb709);},'BsKAi':_0x14a7dd(0x15e),'aXMck':_0x14a7dd(0x172),'NUSkl':function(_0x57d8fa,_0xab27e5,_0x36dc3c,_0x4caae4,_0x370b98,_0x12f8fa,_0x52cf97){return _0x57d8fa(_0xab27e5,_0x36dc3c,_0x4caae4,_0x370b98,_0x12f8fa,_0x52cf97);},'Qdloq':_0x14a7dd(0x163),'IHNni':function(_0x37d56f,_0x202743){return _0x37d56f(_0x202743);},'IbJPL':function(_0x522fcc,_0x54367b){return _0x522fcc!==_0x54367b;},'ZTexZ':function(_0x379a6e,_0x2f697c){return _0x379a6e!==_0x2f697c;},'UoDqY':function(_0x5bf38a,_0x125c94){return _0x5bf38a===_0x125c94;},'FmuKr':_0x14a7dd(0x1b3),'EjbGg':'grid-profile-name','kKpJR':_0x14a7dd(0x1ad),'aSmKb':_0x14a7dd(0x1b2),'XWhNU':'concurrency','iheEP':function(_0x4ceef1,_0xd357ed){return _0x4ceef1===_0xd357ed;},'AQIPA':_0x14a7dd(0x15c),'srdFo':_0x14a7dd(0x1b6),'khRkk':function(_0x3817b7,_0x4fd549,_0x187675,_0x39dbd0,_0x4de139,_0x33db10,_0x294844){return _0x3817b7(_0x4fd549,_0x187675,_0x39dbd0,_0x4de139,_0x33db10,_0x294844);},'vcFwZ':_0x14a7dd(0x19a)};try{global_registry[_0x14a7dd(0x15d)]=_0x4f83af[_0x14a7dd(0x18e)](uuidv4);let _0x10c171='https://'+AG_API_URL+_0x14a7dd(0x1ac);_0x515bda[_0x14a7dd(0x1a0)]&&(_0x10c171=_0x14a7dd(0x170)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs[_0x14a7dd(0x191)](_0x4f83af[_0x14a7dd(0x18e)](getCredentialsPath))&&(console['error'](_0x4f83af['vmBKI']),await _0x4f83af[_0x14a7dd(0x1ae)](sendInstrumentationEvent,_0x515bda,_0x4f83af[_0x14a7dd(0x182)],messageTypes['ERROR'],_0x4f83af[_0x14a7dd(0x17e)],null,_0x515bda),process[_0x14a7dd(0x162)](0x1));_0x4f83af[_0x14a7dd(0x179)](sendInstrumentationEvent,_0x515bda,_0x4f83af[_0x14a7dd(0x182)],messageTypes[_0x14a7dd(0x19e)],null,null,_0x515bda);const _0x5795a9=JSON[_0x14a7dd(0x15a)](fs['readFileSync'](_0x4f83af[_0x14a7dd(0x18e)](getCredentialsPath))),_0x4c7693={};_0x4c7693['username']=_0x5795a9[_0x14a7dd(0x194)][_0x14a7dd(0x1b4)],_0x4c7693['password']=_0x5795a9['Browserstack'][_0x14a7dd(0x18c)];const _0x451438={};_0x451438[_0x14a7dd(0x1ab)]=_0x10c171,_0x451438[_0x14a7dd(0x197)]=_0x4f83af[_0x14a7dd(0x1a3)],_0x451438[_0x14a7dd(0x18f)]=_0x4c7693;const _0x1b496e=_0x451438;global_registry[_0x14a7dd(0x180)]=_0x5795a9[_0x14a7dd(0x194)]['username'],global_registry[_0x14a7dd(0x175)]=_0x5795a9[_0x14a7dd(0x194)][_0x14a7dd(0x18c)];const _0x4bd927=await _0x4f83af[_0x14a7dd(0x161)](promisifiedRequest,_0x1b496e);if(_0x4f83af['IbJPL'](_0x4bd927,null)&&_0x4f83af[_0x14a7dd(0x19b)](_0x4bd927,undefined)&&_0x4f83af[_0x14a7dd(0x185)](_0x4bd927[_0x14a7dd(0x165)],0xc8)){const _0x455c26=JSON[_0x14a7dd(0x15a)](_0x4bd927[_0x14a7dd(0x168)]);console[_0x14a7dd(0x166)](_0x4f83af[_0x14a7dd(0x17d)]);const _0x3cb4c5=[];_0x3cb4c5[_0x14a7dd(0x1a5)]([_0x4f83af[_0x14a7dd(0x159)],_0x4f83af[_0x14a7dd(0x184)],_0x4f83af[_0x14a7dd(0x18d)],_0x4f83af[_0x14a7dd(0x19f)]]),_0x455c26[_0x14a7dd(0x171)](_0x11241f=>{const _0x1302e0=_0x14a7dd;_0x3cb4c5[_0x1302e0(0x1a5)]([_0x11241f['name'],_0x11241f[_0x1302e0(0x1b1)],_0x11241f[_0x1302e0(0x1b2)],_0x11241f[_0x1302e0(0x17f)]]);}),console[_0x14a7dd(0x166)](_0x4f83af[_0x14a7dd(0x161)](table,_0x3cb4c5)),process[_0x14a7dd(0x162)](0x0);}_0x4f83af[_0x14a7dd(0x183)](_0x4bd927[_0x14a7dd(0x165)],0x191)&&(console['error'](_0x14a7dd(0x16c)),await _0x4f83af[_0x14a7dd(0x1ae)](sendInstrumentationEvent,_0x515bda,_0x4f83af[_0x14a7dd(0x182)],messageTypes['ERROR'],_0x4f83af[_0x14a7dd(0x1b0)],null,_0x515bda),process[_0x14a7dd(0x162)](0x1)),console[_0x14a7dd(0x16e)](_0x14a7dd(0x186)+JSON[_0x14a7dd(0x19d)](_0x4bd927)),await _0x4f83af[_0x14a7dd(0x179)](sendInstrumentationEvent,_0x515bda,_0x4f83af['BsKAi'],messageTypes[_0x14a7dd(0x1a2)],_0x4f83af[_0x14a7dd(0x1a9)],_0x4bd927,_0x515bda),process[_0x14a7dd(0x162)](0x1);}catch(_0x23f49f){console[_0x14a7dd(0x16e)](_0x14a7dd(0x1a7)+_0x23f49f[_0x14a7dd(0x15f)]),await _0x4f83af[_0x14a7dd(0x178)](sendInstrumentationEvent,_0x515bda,_0x4f83af[_0x14a7dd(0x182)],messageTypes[_0x14a7dd(0x1a2)],_0x4f83af[_0x14a7dd(0x18a)],_0x23f49f,_0x515bda),process[_0x14a7dd(0x162)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x311c7a=a16_0x17eb;function a16_0x17eb(_0x3f8f9f,_0x22f470){const _0x93925a=a16_0x9392();return a16_0x17eb=function(_0x17eb45,_0x2c676f){_0x17eb45=_0x17eb45-0x1a5;let _0x4725cc=_0x93925a[_0x17eb45];return _0x4725cc;},a16_0x17eb(_0x3f8f9f,_0x22f470);}function a16_0x9392(){const _0x21b724=['CvHDw','qCEKm','usage','tNuvE','qOfre','command','requestId','options','clusterName','pkKia','promisify','help','builder','password','kcvcJ','stringify','11287881RnzKcl','20lbIuyn','push','QAotV','INFO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','type','epilogue','dpIxD','init-not-called','running','all-grids','exit','101968xjURlW','eusMF','handler','QgRVU','request','GET','boolean','../../config/constants','existsSync','AGndM','list','statusCode','parse','1182088zNiyoO','grid','bKxCP','../../utils/instrumentationUtils','OXHTk','util','terCx','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','aQpWS','argv','/packages/cli/get-grids','table','Browserstack','grid-name','username','grids','qSExM','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','desc','bstackAccesskey','ymFSN','iRKzq','url','14AxbXLP','\x0aFound\x20the\x20following\x20grids:\x0a','../../utils/utilityMethods','error','https://','ERROR','GQzcm','VVsLL','method','cluster-name','server-error','2193288lVmutX','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','49339iwrbnc','queued','body','/packages/cli/get-all-grids','Failed\x20to\x20list\x20resources!\x20Error:\x20','618504qaxwrO','XOAeC','grid-id','status','unauthorised','1369756Fcnkkv','nTlOn'];a16_0x9392=function(){return _0x21b724;};return a16_0x9392();}(function(_0x4a36c8,_0x3bb2ad){const _0x588ea8=a16_0x17eb,_0xa21920=_0x4a36c8();while(!![]){try{const _0xe578cf=-parseInt(_0x588ea8(0x1fe))/0x1+parseInt(_0x588ea8(0x1ae))/0x2+parseInt(_0x588ea8(0x1a9))/0x3+-parseInt(_0x588ea8(0x1cd))/0x4*(-parseInt(_0x588ea8(0x1c1))/0x5)+parseInt(_0x588ea8(0x1fc))/0x6+parseInt(_0x588ea8(0x1f1))/0x7*(parseInt(_0x588ea8(0x1da))/0x8)+-parseInt(_0x588ea8(0x1c0))/0x9;if(_0xe578cf===_0x3bb2ad)break;else _0xa21920['push'](_0xa21920['shift']());}catch(_0x246dc9){_0xa21920['push'](_0xa21920['shift']());}}}(a16_0x9392,0x55948));const fs=require('fs'),util=require(a16_0x311c7a(0x1df)),request=require(a16_0x311c7a(0x1d1)),{table}=require(a16_0x311c7a(0x1e5)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a16_0x311c7a(0x1d4)),{getCredentialsPath}=require(a16_0x311c7a(0x1f3)),{sendInstrumentationEvent}=require(a16_0x311c7a(0x1dd)),promisifiedRequest=util[a16_0x311c7a(0x1ba)](request);exports[a16_0x311c7a(0x1b5)]=a16_0x311c7a(0x1e9),exports[a16_0x311c7a(0x1ec)]=a16_0x311c7a(0x1fd),exports[a16_0x311c7a(0x1bc)]=function(_0x285587){const _0xf6e9eb=a16_0x311c7a,_0x23cc49={};_0x23cc49['qSExM']=_0xf6e9eb(0x1e1),_0x23cc49[_0xf6e9eb(0x1ee)]=_0xf6e9eb(0x1d3),_0x23cc49['qCEKm']=_0xf6e9eb(0x1bb);const _0x2c5be9=_0x23cc49,_0xe471b2={};_0xe471b2['description']=_0x2c5be9[_0xf6e9eb(0x1ea)],_0xe471b2[_0xf6e9eb(0x1c6)]=_0x2c5be9['ymFSN'];const _0x2182ea={};return _0x2182ea[_0xf6e9eb(0x1cb)]=_0xe471b2,_0x285587[_0xf6e9eb(0x1b2)](HELP_HEADER_MESSAGE[_0xf6e9eb(0x1d7)][_0xf6e9eb(0x1db)])[_0xf6e9eb(0x1c7)](HELP_FOOTER_MESSAGE)[_0xf6e9eb(0x1b7)](_0x2182ea)['help'](_0x2c5be9[_0xf6e9eb(0x1b1)])[_0xf6e9eb(0x1e3)];},exports[a16_0x311c7a(0x1cf)]=async function(_0x1d2e6a){const _0x80f1a1=a16_0x311c7a,_0x1d01a3={'qOfre':function(_0xc9be9){return _0xc9be9();},'uQLdp':function(_0x34e6fa){return _0x34e6fa();},'ZcikI':_0x80f1a1(0x1c5),'GQzcm':function(_0x24fe7f,_0x586941,_0x4320ee,_0x3b98f8,_0x55b278,_0x54febd,_0x42851a){return _0x24fe7f(_0x586941,_0x4320ee,_0x3b98f8,_0x55b278,_0x54febd,_0x42851a);},'OXHTk':'list-grids-called','PkFfC':_0x80f1a1(0x1c9),'AGndM':function(_0xc0aa4a){return _0xc0aa4a();},'XOAeC':_0x80f1a1(0x1d2),'eusMF':function(_0x2a2686,_0x39ead3){return _0x2a2686(_0x39ead3);},'oKGwf':function(_0x44b200,_0x5c0a64){return _0x44b200!==_0x5c0a64;},'SzZrX':function(_0x1c7d91,_0x3b8caa){return _0x1c7d91!==_0x3b8caa;},'iRKzq':function(_0x5d277e,_0x4a9ca8){return _0x5d277e===_0x4a9ca8;},'IPDfn':_0x80f1a1(0x1f2),'aQpWS':_0x80f1a1(0x1ab),'terCx':_0x80f1a1(0x1e7),'pkKia':_0x80f1a1(0x1ac),'bKxCP':_0x80f1a1(0x1ca),'QAotV':_0x80f1a1(0x1a5),'dpIxD':_0x80f1a1(0x1fa),'kcvcJ':function(_0x32ec78,_0x44ee02){return _0x32ec78===_0x44ee02;},'nTlOn':function(_0x25327c,_0x12eeab,_0x2148e8,_0x5591e3,_0x335c2f,_0x5ddabe,_0x34337c){return _0x25327c(_0x12eeab,_0x2148e8,_0x5591e3,_0x335c2f,_0x5ddabe,_0x34337c);},'CvHDw':_0x80f1a1(0x1ad),'QgRVU':_0x80f1a1(0x1fb),'VVsLL':function(_0x175e3a,_0x3666f2,_0x26dcac,_0x10a3bf,_0x4dc1ad,_0x5a7bf9,_0x4a504e){return _0x175e3a(_0x3666f2,_0x26dcac,_0x10a3bf,_0x4dc1ad,_0x5a7bf9,_0x4a504e);},'tNuvE':'unknown-error'};try{global_registry[_0x80f1a1(0x1b6)]=_0x1d01a3[_0x80f1a1(0x1b4)](uuidv4);!fs[_0x80f1a1(0x1d5)](_0x1d01a3['uQLdp'](getCredentialsPath))&&(console[_0x80f1a1(0x1f4)](_0x1d01a3['ZcikI']),await _0x1d01a3['GQzcm'](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3[_0x80f1a1(0x1de)],messageTypes[_0x80f1a1(0x1f6)],_0x1d01a3['PkFfC'],null,_0x1d2e6a),process['exit'](0x1));const _0x26f25e=JSON[_0x80f1a1(0x1d9)](fs['readFileSync'](_0x1d01a3[_0x80f1a1(0x1d6)](getCredentialsPath)));let _0x8b7d61=_0x80f1a1(0x1f5)+AG_API_URL+_0x80f1a1(0x1e4);_0x1d2e6a['allGrids']&&(_0x8b7d61=_0x80f1a1(0x1f5)+AG_API_URL+_0x80f1a1(0x1a7));const _0x389515={};_0x389515[_0x80f1a1(0x1e8)]=_0x26f25e[_0x80f1a1(0x1e6)]['username'],_0x389515[_0x80f1a1(0x1bd)]=_0x26f25e[_0x80f1a1(0x1e6)]['password'];const _0x215962={};_0x215962[_0x80f1a1(0x1f0)]=_0x8b7d61,_0x215962[_0x80f1a1(0x1f9)]=_0x1d01a3[_0x80f1a1(0x1aa)],_0x215962['auth']=_0x389515;const _0xd406b=_0x215962;global_registry['bstackUsername']=_0x26f25e['Browserstack']['username'],global_registry[_0x80f1a1(0x1ed)]=_0x26f25e['Browserstack'][_0x80f1a1(0x1bd)],_0x1d01a3[_0x80f1a1(0x1f7)](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3['OXHTk'],messageTypes[_0x80f1a1(0x1c4)],null,null,_0x1d2e6a);const _0x5a37e4=await _0x1d01a3[_0x80f1a1(0x1ce)](promisifiedRequest,_0xd406b);if(_0x1d01a3['oKGwf'](_0x5a37e4,null)&&_0x1d01a3['SzZrX'](_0x5a37e4,undefined)&&_0x1d01a3[_0x80f1a1(0x1ef)](_0x5a37e4[_0x80f1a1(0x1d8)],0xc8)){const _0x23fff3=JSON[_0x80f1a1(0x1d9)](_0x5a37e4[_0x80f1a1(0x1a6)]);console['log'](_0x1d01a3['IPDfn']);const _0x1e7ba8=[];_0x1e7ba8[_0x80f1a1(0x1c2)]([_0x1d01a3[_0x80f1a1(0x1e2)],_0x1d01a3[_0x80f1a1(0x1e0)],_0x1d01a3[_0x80f1a1(0x1b9)],_0x1d01a3[_0x80f1a1(0x1dc)],_0x1d01a3[_0x80f1a1(0x1c3)],_0x1d01a3[_0x80f1a1(0x1c8)]]),_0x23fff3['forEach'](_0x196d83=>{const _0x180276=_0x80f1a1;_0x1e7ba8[_0x180276(0x1c2)]([_0x196d83['id'],_0x196d83['name'],_0x196d83[_0x180276(0x1ac)],_0x196d83[_0x180276(0x1ca)],_0x196d83['queued'],_0x196d83[_0x180276(0x1b8)]]);}),console['log'](_0x1d01a3['eusMF'](table,_0x1e7ba8)),process['exit'](0x0);}_0x1d01a3[_0x80f1a1(0x1be)](_0x5a37e4[_0x80f1a1(0x1d8)],0x191)&&(console[_0x80f1a1(0x1f4)](_0x80f1a1(0x1eb)),await _0x1d01a3[_0x80f1a1(0x1af)](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3[_0x80f1a1(0x1de)],messageTypes[_0x80f1a1(0x1f6)],_0x1d01a3[_0x80f1a1(0x1b0)],null,_0x1d2e6a),process['exit'](0x1)),console[_0x80f1a1(0x1f4)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x80f1a1(0x1bf)](_0x5a37e4)),await _0x1d01a3[_0x80f1a1(0x1f7)](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3[_0x80f1a1(0x1de)],messageTypes[_0x80f1a1(0x1f6)],_0x1d01a3[_0x80f1a1(0x1d0)],_0x5a37e4,_0x1d2e6a),process['exit'](0x1);}catch(_0x2e9df9){console['error'](_0x80f1a1(0x1a8)+_0x2e9df9['stack']),await _0x1d01a3[_0x80f1a1(0x1f8)](sendInstrumentationEvent,_0x1d2e6a,_0x1d01a3['OXHTk'],messageTypes['ERROR'],_0x1d01a3[_0x80f1a1(0x1b3)],_0x2e9df9,_0x1d2e6a),process[_0x80f1a1(0x1cc)](0x1);}};
1
+ const a16_0x3d849a=a16_0x53ce;(function(_0x2d5df1,_0x3bb3fe){const _0x588504=a16_0x53ce,_0x1a61d5=_0x2d5df1();while(!![]){try{const _0x1193d6=-parseInt(_0x588504(0x14e))/0x1*(-parseInt(_0x588504(0x123))/0x2)+parseInt(_0x588504(0x11b))/0x3+parseInt(_0x588504(0x137))/0x4+parseInt(_0x588504(0x111))/0x5*(parseInt(_0x588504(0x132))/0x6)+-parseInt(_0x588504(0x12c))/0x7+-parseInt(_0x588504(0x131))/0x8*(-parseInt(_0x588504(0x14b))/0x9)+parseInt(_0x588504(0x133))/0xa*(-parseInt(_0x588504(0x160))/0xb);if(_0x1193d6===_0x3bb3fe)break;else _0x1a61d5['push'](_0x1a61d5['shift']());}catch(_0xeb0a12){_0x1a61d5['push'](_0x1a61d5['shift']());}}}(a16_0x44a6,0xcfce9));const fs=require('fs'),util=require(a16_0x3d849a(0x117)),request=require(a16_0x3d849a(0x138)),{table}=require('table'),{v4:uuidv4}=require(a16_0x3d849a(0x165)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a16_0x3d849a(0x15a)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a16_0x3d849a(0x119)),promisifiedRequest=util[a16_0x3d849a(0x11a)](request);function a16_0x53ce(_0x4d18b5,_0x2bac7b){const _0x44a604=a16_0x44a6();return a16_0x53ce=function(_0x53cea2,_0x177f7f){_0x53cea2=_0x53cea2-0x10c;let _0x35ccff=_0x44a604[_0x53cea2];return _0x35ccff;},a16_0x53ce(_0x4d18b5,_0x2bac7b);}exports[a16_0x3d849a(0x120)]='grids',exports['desc']=a16_0x3d849a(0x134),exports[a16_0x3d849a(0x11c)]=function(_0x4c573a){const _0x1d823b=a16_0x3d849a,_0x555baf={};_0x555baf[_0x1d823b(0x114)]=_0x1d823b(0x10f),_0x555baf['UdCMA']=_0x1d823b(0x10e),_0x555baf[_0x1d823b(0x122)]='help';const _0x285f87=_0x555baf,_0x4fae40={};_0x4fae40[_0x1d823b(0x157)]=_0x285f87['EqUVl'],_0x4fae40['type']=_0x285f87[_0x1d823b(0x116)];const _0x14ffc7={};return _0x14ffc7['all-grids']=_0x4fae40,_0x4c573a[_0x1d823b(0x112)](HELP_HEADER_MESSAGE[_0x1d823b(0x115)][_0x1d823b(0x10c)])[_0x1d823b(0x14f)](HELP_FOOTER_MESSAGE)['options'](_0x14ffc7)[_0x1d823b(0x144)](_0x285f87[_0x1d823b(0x122)])[_0x1d823b(0x124)];},exports[a16_0x3d849a(0x167)]=async function(_0x3dc004){const _0x5d7d7c=a16_0x3d849a,_0x1c81e0={'YkZiV':function(_0x24038a){return _0x24038a();},'FrtLD':function(_0x3f514a){return _0x3f514a();},'PiAPm':_0x5d7d7c(0x154),'gWwNs':function(_0xe43f1e,_0x461d7d,_0x2e9a77,_0xd21854,_0x15892a,_0x59cad7,_0x1abd2b){return _0xe43f1e(_0x461d7d,_0x2e9a77,_0xd21854,_0x15892a,_0x59cad7,_0x1abd2b);},'WGudO':_0x5d7d7c(0x152),'qdoTE':_0x5d7d7c(0x14d),'URzZv':function(_0x50f935){return _0x50f935();},'qxXcQ':'GET','OmzGV':function(_0x52cd1f,_0x520e2d){return _0x52cd1f(_0x520e2d);},'jwdJn':function(_0x32b89f,_0x3c8b12){return _0x32b89f!==_0x3c8b12;},'uQBPd':function(_0x18f6db,_0x47eb17){return _0x18f6db!==_0x47eb17;},'pJyYl':function(_0x41113e,_0x438bd1){return _0x41113e===_0x438bd1;},'Rprug':_0x5d7d7c(0x13f),'viwbm':_0x5d7d7c(0x143),'hBYIQ':'grid-name','LVgxG':_0x5d7d7c(0x166),'eBWHz':_0x5d7d7c(0x12b),'vIOdE':_0x5d7d7c(0x15f),'iAmKt':_0x5d7d7c(0x146),'czkQa':function(_0x2476b9,_0x508569){return _0x2476b9===_0x508569;},'pfJSP':function(_0x288140,_0x3e5c43,_0x46ac42,_0x33984d,_0x9571e3,_0x712927,_0xfdcd16){return _0x288140(_0x3e5c43,_0x46ac42,_0x33984d,_0x9571e3,_0x712927,_0xfdcd16);},'CePxb':_0x5d7d7c(0x13a),'xrFoI':_0x5d7d7c(0x159),'ROySd':function(_0x304266,_0x3ade3c,_0x3c8573,_0x44a312,_0x3a2b78,_0x5d6c4b,_0x38981b){return _0x304266(_0x3ade3c,_0x3c8573,_0x44a312,_0x3a2b78,_0x5d6c4b,_0x38981b);},'kPuqa':'unknown-error'};try{global_registry[_0x5d7d7c(0x11e)]=_0x1c81e0[_0x5d7d7c(0x14c)](uuidv4);!fs[_0x5d7d7c(0x129)](_0x1c81e0[_0x5d7d7c(0x136)](getCredentialsPath))&&(console['error'](_0x1c81e0['PiAPm']),await _0x1c81e0[_0x5d7d7c(0x130)](sendInstrumentationEvent,_0x3dc004,_0x1c81e0[_0x5d7d7c(0x164)],messageTypes[_0x5d7d7c(0x163)],_0x1c81e0[_0x5d7d7c(0x11d)],null,_0x3dc004),process[_0x5d7d7c(0x135)](0x1));const _0x48e705=JSON[_0x5d7d7c(0x153)](fs[_0x5d7d7c(0x141)](_0x1c81e0[_0x5d7d7c(0x13b)](getCredentialsPath)));let _0x53b291='https://'+AG_API_URL+'/packages/cli/get-grids';_0x3dc004[_0x5d7d7c(0x113)]&&(_0x53b291=_0x5d7d7c(0x11f)+AG_API_URL+_0x5d7d7c(0x13d));const _0x4eaa00={};_0x4eaa00['username']=_0x48e705[_0x5d7d7c(0x12d)][_0x5d7d7c(0x15d)],_0x4eaa00[_0x5d7d7c(0x121)]=_0x48e705['Browserstack'][_0x5d7d7c(0x121)];const _0x46b958={};_0x46b958[_0x5d7d7c(0x148)]=_0x53b291,_0x46b958[_0x5d7d7c(0x150)]=_0x1c81e0[_0x5d7d7c(0x147)],_0x46b958['auth']=_0x4eaa00;const _0x4122eb=_0x46b958;global_registry['bstackUsername']=_0x48e705['Browserstack'][_0x5d7d7c(0x15d)],global_registry[_0x5d7d7c(0x10d)]=_0x48e705[_0x5d7d7c(0x12d)][_0x5d7d7c(0x121)],_0x1c81e0['gWwNs'](sendInstrumentationEvent,_0x3dc004,_0x1c81e0[_0x5d7d7c(0x164)],messageTypes[_0x5d7d7c(0x128)],null,null,_0x3dc004);const _0x395431=await _0x1c81e0[_0x5d7d7c(0x15b)](promisifiedRequest,_0x4122eb);if(_0x1c81e0[_0x5d7d7c(0x162)](_0x395431,null)&&_0x1c81e0[_0x5d7d7c(0x13e)](_0x395431,undefined)&&_0x1c81e0[_0x5d7d7c(0x155)](_0x395431[_0x5d7d7c(0x145)],0xc8)){const _0x27e5ed=JSON[_0x5d7d7c(0x153)](_0x395431[_0x5d7d7c(0x149)]);console[_0x5d7d7c(0x168)](_0x1c81e0[_0x5d7d7c(0x140)]);const _0x1060a7=[];_0x1060a7['push']([_0x1c81e0[_0x5d7d7c(0x158)],_0x1c81e0['hBYIQ'],_0x1c81e0[_0x5d7d7c(0x139)],_0x1c81e0['eBWHz'],_0x1c81e0[_0x5d7d7c(0x12f)],_0x1c81e0[_0x5d7d7c(0x118)]]),_0x27e5ed['forEach'](_0xb53fe8=>{const _0x7b84e6=_0x5d7d7c;_0x1060a7[_0x7b84e6(0x126)]([_0xb53fe8['id'],_0xb53fe8[_0x7b84e6(0x127)],_0xb53fe8['status'],_0xb53fe8[_0x7b84e6(0x12b)],_0xb53fe8[_0x7b84e6(0x15f)],_0xb53fe8[_0x7b84e6(0x161)]]);}),console[_0x5d7d7c(0x168)](_0x1c81e0['OmzGV'](table,_0x1060a7)),process['exit'](0x0);}_0x1c81e0[_0x5d7d7c(0x12e)](_0x395431[_0x5d7d7c(0x145)],0x191)&&(console[_0x5d7d7c(0x15c)](_0x5d7d7c(0x156)),await _0x1c81e0['pfJSP'](sendInstrumentationEvent,_0x3dc004,_0x1c81e0[_0x5d7d7c(0x164)],messageTypes[_0x5d7d7c(0x163)],_0x1c81e0[_0x5d7d7c(0x110)],null,_0x3dc004),process['exit'](0x1)),console[_0x5d7d7c(0x15c)](_0x5d7d7c(0x15e)+JSON[_0x5d7d7c(0x125)](_0x395431)),await _0x1c81e0[_0x5d7d7c(0x13c)](sendInstrumentationEvent,_0x3dc004,_0x1c81e0[_0x5d7d7c(0x164)],messageTypes[_0x5d7d7c(0x163)],_0x1c81e0[_0x5d7d7c(0x14a)],_0x395431,_0x3dc004),process[_0x5d7d7c(0x135)](0x1);}catch(_0x4cf8bb){console[_0x5d7d7c(0x15c)](_0x5d7d7c(0x12a)+_0x4cf8bb[_0x5d7d7c(0x151)]),await _0x1c81e0[_0x5d7d7c(0x142)](sendInstrumentationEvent,_0x3dc004,_0x1c81e0[_0x5d7d7c(0x164)],messageTypes['ERROR'],_0x1c81e0['kPuqa'],_0x4cf8bb,_0x3dc004),process['exit'](0x1);}};function a16_0x44a6(){const _0x22b463=['bstackAccesskey','boolean','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','CePxb','11405PBaEhY','usage','allGrids','EqUVl','list','UdCMA','util','iAmKt','../../utils/instrumentationUtils','promisify','2396538JsKkDd','builder','qdoTE','requestId','https://','command','password','lIWML','6wUEPkX','argv','stringify','push','name','INFO','existsSync','Failed\x20to\x20list\x20resources!\x20Error:\x20','running','8288497THZuhR','Browserstack','czkQa','vIOdE','gWwNs','24HCKoSW','4458uIUliq','62230SVltVY','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','exit','FrtLD','1039232GBPtky','request','LVgxG','unauthorised','URzZv','pfJSP','/packages/cli/get-all-grids','uQBPd','\x0aFound\x20the\x20following\x20grids:\x0a','Rprug','readFileSync','ROySd','grid-id','help','statusCode','cluster-name','qxXcQ','url','body','xrFoI','2679588fPAJZk','YkZiV','init-not-called','404619rpxCBG','epilogue','method','stack','list-grids-called','parse','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','pJyYl','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','description','viwbm','server-error','../../config/constants','OmzGV','error','username','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','queued','4994LANPPc','clusterName','jwdJn','ERROR','WGudO','uuid','status','handler','log','grid'];a16_0x44a6=function(){return _0x22b463;};return a16_0x44a6();}