browserstack-node-sdk 1.29.1 → 1.29.3

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 (97) 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/customEnvironment.js +1 -1
  43. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  44. package/src/bin/jest/jest.setup.js +1 -1
  45. package/src/bin/jest/test_before.setup.js +1 -1
  46. package/src/bin/launcher/launcher.js +1 -1
  47. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  48. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  49. package/src/bin/mocha/command.js +1 -1
  50. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  51. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  52. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  53. package/src/bin/mocha/test.setup.js +1 -1
  54. package/src/bin/nightwatch/command.js +1 -1
  55. package/src/bin/playwright/accessibility-helper.js +1 -1
  56. package/src/bin/playwright/command.js +1 -1
  57. package/src/bin/playwright/globalSetup.js +1 -1
  58. package/src/bin/playwright/mock-process.js +1 -1
  59. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  60. package/src/bin/playwright/reporter/reporter.js +1 -1
  61. package/src/bin/playwright/reporter/test-details.js +1 -1
  62. package/src/bin/runner.js +1 -1
  63. package/src/bin/setup.js +1 -1
  64. package/src/bin/test-runner/index.js +1 -1
  65. package/src/bin/test-runner/runTest.js +1 -1
  66. package/src/bin/test-runner/testWorker.js +1 -1
  67. package/src/bin/utils/constants.js +1 -1
  68. package/src/bin/utils/log4jsAppender.js +1 -1
  69. package/src/bin/utils/logPatcher.js +1 -1
  70. package/src/bin/utils/logReportingAPI.js +1 -1
  71. package/src/bin/vanilla-js/command.js +1 -1
  72. package/src/helpers/BrowserStackSetup.js +1 -1
  73. package/src/helpers/accessibility-automation/constants.js +1 -1
  74. package/src/helpers/accessibility-automation/helper.js +1 -1
  75. package/src/helpers/ats/constants.js +1 -1
  76. package/src/helpers/ats/helper.js +1 -1
  77. package/src/helpers/capsMapping.js +1 -1
  78. package/src/helpers/helper.js +1 -1
  79. package/src/helpers/logger.js +1 -1
  80. package/src/helpers/patchHelpers.js +1 -1
  81. package/src/helpers/percy/Percy.js +1 -1
  82. package/src/helpers/percy/PercyBinary.js +1 -1
  83. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  84. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  85. package/src/helpers/percy/PercySDK.js +1 -1
  86. package/src/helpers/percy/index.js +1 -1
  87. package/src/helpers/request-spy.js +1 -1
  88. package/src/helpers/setKeepAlive.js +1 -1
  89. package/src/helpers/test-observability/constants.js +1 -1
  90. package/src/helpers/test-observability/error-handler.js +1 -1
  91. package/src/helpers/test-observability/performance-tester.js +1 -1
  92. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  93. package/src/helpers/test-observability/sessionHandler.js +1 -1
  94. package/src/helpers/test-observability/utils.js +1 -1
  95. package/src/helpers/w3cMapping.js +1 -1
  96. package/src/hubAllocationMethods.js +1 -1
  97. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a9_0x6eb5(_0x10865a,_0x1e519d){const _0x1f8a11=a9_0x1f8a();return a9_0x6eb5=function(_0x6eb56d,_0x172c11){_0x6eb56d=_0x6eb56d-0x1be;let _0x2fd385=_0x1f8a11[_0x6eb56d];return _0x2fd385;},a9_0x6eb5(_0x10865a,_0x1e519d);}const a9_0x3878f8=a9_0x6eb5;function a9_0x1f8a(){const _0x3e3273=['5298948dpsaYC','epilogue','903777hbAxeK','builder','create_commands','create','../config/constants','1169608MOFdRH','6GNPJSr','handler','commandDir','help','usage','487612kDnIiH','strict','ZpSmk','desc','command','114994mAOAOb','Create\x20a\x20new\x20Automation\x20grid.','403964LUSIwX','692375mVjCyF','6FXDBkG','RrbIQ'];a9_0x1f8a=function(){return _0x3e3273;};return a9_0x1f8a();}(function(_0x410adf,_0x3dce02){const _0x34b960=a9_0x6eb5,_0x253c54=_0x410adf();while(!![]){try{const _0x743e8e=-parseInt(_0x34b960(0x1bf))/0x1+parseInt(_0x34b960(0x1c1))/0x2+-parseInt(_0x34b960(0x1cd))/0x3*(-parseInt(_0x34b960(0x1d2))/0x4)+parseInt(_0x34b960(0x1c2))/0x5+parseInt(_0x34b960(0x1c3))/0x6*(parseInt(_0x34b960(0x1c7))/0x7)+parseInt(_0x34b960(0x1cc))/0x8+-parseInt(_0x34b960(0x1c5))/0x9;if(_0x743e8e===_0x3dce02)break;else _0x253c54['push'](_0x253c54['shift']());}catch(_0x206368){_0x253c54['push'](_0x253c54['shift']());}}}(a9_0x1f8a,0x260a1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x3878f8(0x1cb));exports[a9_0x3878f8(0x1be)]='create',exports[a9_0x3878f8(0x1d5)]=a9_0x3878f8(0x1c0),exports[a9_0x3878f8(0x1c8)]=function(_0x5351e6){const _0x6cd8b7=a9_0x3878f8,_0xab7764={};_0xab7764[_0x6cd8b7(0x1c4)]=_0x6cd8b7(0x1c9),_0xab7764[_0x6cd8b7(0x1d4)]=_0x6cd8b7(0x1d0);const _0x26a2fa=_0xab7764;return _0x5351e6[_0x6cd8b7(0x1d1)](HELP_HEADER_MESSAGE[_0x6cd8b7(0x1ca)])[_0x6cd8b7(0x1c6)](HELP_FOOTER_MESSAGE)[_0x6cd8b7(0x1cf)](_0x26a2fa['RrbIQ'])['demandCommand']()['recommendCommands']()[_0x6cd8b7(0x1d3)]()[_0x6cd8b7(0x1d0)](_0x26a2fa[_0x6cd8b7(0x1d4)]);},exports[a9_0x3878f8(0x1ce)]=function(_0x325e06){};
1
+ const a9_0x520447=a9_0x8035;function a9_0x8035(_0x335f64,_0x41e2bf){const _0x5577ab=a9_0x5577();return a9_0x8035=function(_0x8035a2,_0x2f80a2){_0x8035a2=_0x8035a2-0xb9;let _0x3edcaa=_0x5577ab[_0x8035a2];return _0x3edcaa;},a9_0x8035(_0x335f64,_0x41e2bf);}(function(_0x13eb6f,_0x20491e){const _0x1ef9e1=a9_0x8035,_0x2cc107=_0x13eb6f();while(!![]){try{const _0x19dfff=-parseInt(_0x1ef9e1(0xb9))/0x1*(parseInt(_0x1ef9e1(0xcf))/0x2)+-parseInt(_0x1ef9e1(0xc1))/0x3+parseInt(_0x1ef9e1(0xc0))/0x4*(parseInt(_0x1ef9e1(0xc5))/0x5)+-parseInt(_0x1ef9e1(0xc7))/0x6+parseInt(_0x1ef9e1(0xcb))/0x7*(-parseInt(_0x1ef9e1(0xca))/0x8)+parseInt(_0x1ef9e1(0xbd))/0x9*(parseInt(_0x1ef9e1(0xbb))/0xa)+parseInt(_0x1ef9e1(0xc9))/0xb;if(_0x19dfff===_0x20491e)break;else _0x2cc107['push'](_0x2cc107['shift']());}catch(_0x2a5edf){_0x2cc107['push'](_0x2cc107['shift']());}}}(a9_0x5577,0xf1902));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a9_0x5577(){const _0x50e745=['4318404tNNziR','recommendCommands','commandDir','help','5OCVrQE','usage','10657326BnsMlJ','demandCommand','23735525vUkqPh','2907648ciOKXI','7GbtbMq','desc','create_commands','builder','2ZCvLXp','451983WKflCh','handler','18617360GFWDWE','qHPjp','9bOoCZE','create','Create\x20a\x20new\x20Automation\x20grid.','4004236oLOpQr'];a9_0x5577=function(){return _0x50e745;};return a9_0x5577();}exports['command']='create',exports[a9_0x520447(0xcc)]=a9_0x520447(0xbf),exports[a9_0x520447(0xce)]=function(_0x46ca25){const _0xf8a1cb=a9_0x520447,_0x3270c0={};_0x3270c0[_0xf8a1cb(0xbc)]=_0xf8a1cb(0xcd),_0x3270c0['oiqpS']=_0xf8a1cb(0xc4);const _0x3b2d9f=_0x3270c0;return _0x46ca25[_0xf8a1cb(0xc6)](HELP_HEADER_MESSAGE[_0xf8a1cb(0xbe)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xf8a1cb(0xc3)](_0x3b2d9f['qHPjp'])[_0xf8a1cb(0xc8)]()[_0xf8a1cb(0xc2)]()['strict']()[_0xf8a1cb(0xc4)](_0x3b2d9f['oiqpS']);},exports[a9_0x520447(0xba)]=function(_0x411eab){};
@@ -1 +1 @@
1
- function a10_0x5d39(_0x770ae,_0x10e06c){const _0x5bbdc5=a10_0x5bbd();return a10_0x5d39=function(_0x5d395a,_0x4a1c9d){_0x5d395a=_0x5d395a-0xe8;let _0x43f704=_0x5bbdc5[_0x5d395a];return _0x43f704;},a10_0x5d39(_0x770ae,_0x10e06c);}const a10_0x497e9c=a10_0x5d39;function a10_0x5bbd(){const _0x1b84ad=['instanceType','759VufDuP','region','Uwcut','jQCiC','Found\x20Subnets:\x20','Browserstack','smYDS','UJmEd','https://','GET','/packages/cli/get-grid-url?gridIdentifier=','metadata','argv','options','wFUuh','biExJ','MCfqn','delay','Qrhjn','pre-spawned-invalid-subnets','QQEXw','isClusterPresent','DhFnp','DcnuQ','../../utils/gridComponents','ERROR','nISQB','createdBy','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','s3Bucket','concurrency','WSFJq','ErAOV','OqwlW','get-grid-url-null-response','myYnM','FQGxN','method','xaqND','://','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','annotations','default','gridName','cluster-name','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','clusterName','9BEorJR','CLI_RUN_FINISHED','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','grid','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','string','includes','private-grid','ReRKu','Grid\x20can\x20be\x20accessed\x20at:\x20','mRyhM','jbveu','\x20in\x20existing\x20cluster\x20\x27','VLRDB','length','VnvTp','aJRbV','../../config/constants','init-not-called','grid-profile','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','usage','lxNIv','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','grid-name','192696zDuZhC','request','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','KwSxE','\x20are\x20not\x20present\x20in\x20VPC:\x20','browserVersion','create-grid-called','JHBUV','Found\x20VPC:\x20','JPgxc','GhPyY','auth','privateGrid','cloud-provider','MdwZz','subnets','exit','info','gLUQa','username','usxrA','hwmWw','Create\x20a\x20private/public\x20grid.','replace','uPgOB','toLowerCase','rQuuP','../../utils/instrumentationUtils','Namespace\x20created','7613500HZPLIu','cvBPH','getGridHostname','afPjd','util','parse','Rcjea','VYGqp','reconnecting-websocket','cloudProvider','153848tTTLQa','setupNewCluster','sendEventToBackend','JbCMe','oNrRu','requestId','nkHBL','prespawned-cluster-args-not-passed','/packages/cli/create-grid-checks','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','<UsernamePlaceholder>','OWnDm','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','WebSocket','bbWnJ','getResourceClientId','pre-spawned-subnets-not-selected','gridProfile','vpc','\x20using\x20\x27','pNaKO','private-ingress-nginx-controller','connectionTimeout','command','user','wOmWH','ioLmc','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','createNamespace','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','split','RtWlR','BMgcR','https','tZtgD','Create\x20a\x20new\x20Automation\x20grid.','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','HAlUs','create-grid-checks-auth-failed','cZVqC','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Subnets:\x20','minNodes','defaultGridProfile','MVFqO','CLI_RUN_STARTED','WNCEs','dJiIP','JoTUE','desc','25548UYuini','nWaOo','hsnSd','alreadyPresent','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','Grid\x20spawned\x20on\x20the\x20cluster','eGSEf','rMwAF','Cluster\x20','OTExR','body','get-grid-url-auth-failed','QczrI','LOG','AXGcs','kxlGU','help','stringify','Spawning\x20the\x20grid\x20','statusCode','vzbqq','40AVrqaT','warn','turboscale-managed-identity-','mKCkQ','create-grid-checks-grid-already-exists','VvUbs','jPADg','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','http','bMBcz','debug','configureIfNotConfigured','Fkish','kCqFz','CpIDu','ngdEx','WkYXo','WBUbK','uuid','opPBr','get-grid-url-non-200','hDKRR','wKTyc','TerSS','ZGZbb','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','2|5|1|6|8|4|0|3|7','Coamw','TZYPn','WWJny','isSubnetsValid','jNAmZ','name','readNamespacedService','rYOuw','vHMHr','3994382VtUjgy','epilogue','gridProfileId','zptwU','\x27\x20grid\x20profile','builder','Zxjuy','AgmTI','wrAQm','hsqmQ','14fKycve','wzowK','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','EnRat','ingress-nginx','FvWNl','FAGNT','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Qjgrx','xlWHZ','createOtherResources','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','SrRJn','error','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','handler','tkZrq','grid-spawning-failed','password','rHHmT','IZWGh','wwSMu','bstackUsername','CLI\x20run\x20finished:\x20','../../cloudproviders/utils','ZmIED','create-grid-checks-non-200','create','EUdQK','description','bKUcn','non-aws-azure-cluster','UZRBI','CLI\x20run\x20started','eCaCZ','1740035ySfxol','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','type','GfoiX','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','1|0|4|5|7|2|6|3|8','message','izfej','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','UnEOd','../../config/logger','lGbxu','Cluster\x20created\x20successfully','clusterRegion','uxLkD','YZwOA','create-grid-checks-null-response','eHuTk','gBVKn','isPrivateGrid','fetchLocalCreds','voETT','EUKWb','true','route53','fVIfO','iXRoI','LLDbp','OvOTj','13502504mtLlzC','tWqCK','Namespace\x20Created','isVPCPresent','hubVersion','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','RoRBx','bqJEC','kzqxm','DCTZI','s3BucketName','writeFileSync','HYDCY','GvFmf','GGtSk','CMYQU','bstackAccesskey','Yqxzb','1|3|2|0|4'];a10_0x5bbd=function(){return _0x1b84ad;};return a10_0x5bbd();}(function(_0x4bbf22,_0x367aad){const _0x44c7ca=a10_0x5d39,_0x1882d4=_0x4bbf22();while(!![]){try{const _0x13a4ac=-parseInt(_0x44c7ca(0x208))/0x1*(parseInt(_0x44c7ca(0x193))/0x2)+-parseInt(_0x44c7ca(0x124))/0x3*(-parseInt(_0x44c7ca(0x1c5))/0x4)+parseInt(_0x44c7ca(0x1da))/0x5*(parseInt(_0x44c7ca(0x16c))/0x6)+-parseInt(_0x44c7ca(0x1fe))/0x7+parseInt(_0x44c7ca(0x110))/0x8*(parseInt(_0x44c7ca(0x153))/0x9)+-parseInt(_0x44c7ca(0x189))/0xa+-parseInt(_0x44c7ca(0xf2))/0xb;if(_0x13a4ac===_0x367aad)break;else _0x1882d4['push'](_0x1882d4['shift']());}catch(_0x28a24c){_0x1882d4['push'](_0x1882d4['shift']());}}}(a10_0x5bbd,0xf2913));const fs=require('fs'),ws=require('ws'),util=require(a10_0x497e9c(0x18d)),ReconnectingWebSocket=require(a10_0x497e9c(0x191)),request=require(a10_0x497e9c(0x16d)),{v4:uuidv4}=require(a10_0x497e9c(0x1ec)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a10_0x497e9c(0xfd)),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a10_0x497e9c(0x220)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x497e9c(0x164)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x497e9c(0x13c)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a10_0x497e9c(0x187)),promisifiedRequest=util['promisify'](request);exports[a10_0x497e9c(0x1aa)]=a10_0x497e9c(0x156),exports[a10_0x497e9c(0x1c4)]=a10_0x497e9c(0x1b6),exports[a10_0x497e9c(0x203)]=function(_0x4da9f8){const _0x37bedc=a10_0x497e9c,_0x27f362={};_0x27f362[_0x37bedc(0x15e)]=_0x37bedc(0x1ae),_0x27f362[_0x37bedc(0x210)]=_0x37bedc(0x158),_0x27f362[_0x37bedc(0x145)]=_0x37bedc(0x1bb),_0x27f362[_0x37bedc(0x1ea)]=_0x37bedc(0x20f),_0x27f362['GhPyY']=_0x37bedc(0x16e),_0x27f362[_0x37bedc(0x10e)]=_0x37bedc(0xf4),_0x27f362[_0x37bedc(0x20b)]=_0x37bedc(0x182),_0x27f362['RoRBx']='help';const _0x4ca6fc=_0x27f362,_0xe2d4b3={};_0xe2d4b3[_0x37bedc(0xec)]=_0x4ca6fc[_0x37bedc(0x15e)],_0xe2d4b3['type']=_0x4ca6fc[_0x37bedc(0x210)];const _0x530e96={};_0x530e96['description']=_0x4ca6fc[_0x37bedc(0x145)],_0x530e96['type']=_0x4ca6fc[_0x37bedc(0x210)];const _0x1238b2={};_0x1238b2[_0x37bedc(0xec)]=_0x4ca6fc[_0x37bedc(0x1ea)],_0x1238b2['type']=_0x4ca6fc[_0x37bedc(0x210)];const _0x5080b2={};_0x5080b2[_0x37bedc(0xec)]=_0x4ca6fc[_0x37bedc(0x176)],_0x5080b2['type']=_0x4ca6fc['Qjgrx'];const _0x4cdd89={};_0x4cdd89[_0x37bedc(0xec)]=_0x4ca6fc['LLDbp'],_0x4cdd89['type']=_0x4ca6fc['Qjgrx'];const _0xf11420={};_0xf11420[_0x37bedc(0xec)]=_0x4ca6fc[_0x37bedc(0x20b)],_0xf11420[_0x37bedc(0xf5)]=_0x4ca6fc[_0x37bedc(0x210)];const _0x3ad917={};return _0x3ad917[_0x37bedc(0x16b)]=_0xe2d4b3,_0x3ad917[_0x37bedc(0x166)]=_0x530e96,_0x3ad917[_0x37bedc(0x150)]=_0x1238b2,_0x3ad917['cloud-provider']=_0x5080b2,_0x3ad917[_0x37bedc(0x125)]=_0x4cdd89,_0x3ad917[_0x37bedc(0x15a)]=_0xf11420,_0x4da9f8['usage'](HELP_HEADER_MESSAGE['create'])[_0x37bedc(0x1ff)](HELP_FOOTER_MESSAGE)[_0x37bedc(0x131)](_0x3ad917)[_0x37bedc(0x1d5)](_0x4ca6fc[_0x37bedc(0x116)])[_0x37bedc(0x130)];},exports[a10_0x497e9c(0x217)]=async function(_0x4ad379){const _0x589016=a10_0x497e9c,_0x49ee11={'Rcjea':_0x589016(0x1e2),'myYnM':_0x589016(0x1b4),'opPBr':_0x589016(0x1f4),'hsqmQ':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','JbCMe':_0x589016(0x158),'nkHBL':_0x589016(0x1bb),'FAGNT':_0x589016(0x20f),'pNaKO':_0x589016(0x16e),'PKzan':_0x589016(0xf4),'tWqCK':_0x589016(0x182),'eGSEf':_0x589016(0x1d5),'oNrRu':_0x589016(0x1db),'BMgcR':_0x589016(0x1c9),'DCTZI':_0x589016(0x215),'mRyhM':function(_0x29abb9){return _0x29abb9();},'wwSMu':function(_0x4e71a7){return _0x4e71a7();},'eCaCZ':function(_0x3f00f3,_0x22c719){return _0x3f00f3===_0x22c719;},'VYGqp':_0x589016(0x1b8),'JPgxc':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','TerSS':function(_0x29df33,_0x54a88a,_0x1beb8a,_0x5f616d,_0x5891e6,_0x1d84ee,_0x2b544c){return _0x29df33(_0x54a88a,_0x1beb8a,_0x5f616d,_0x5891e6,_0x1d84ee,_0x2b544c);},'biExJ':_0x589016(0x172),'nISQB':_0x589016(0x165),'kxlGU':function(_0x3679b8,_0x12995c,_0xc0cde4,_0x568dff,_0x395078,_0x506855,_0x47ff90){return _0x3679b8(_0x12995c,_0xc0cde4,_0x568dff,_0x395078,_0x506855,_0x47ff90);},'QczrI':_0x589016(0x19d),'WBUbK':'<PasswordPlaceholder>','hsnSd':'Adding\x20Websocket\x20listeners','Coamw':function(_0x9da27,_0x207e1d){return _0x9da27===_0x207e1d;},'DhFnp':_0x589016(0xfa),'rYOuw':function(_0xd49093,_0x2c0e4e){return _0xd49093===_0x2c0e4e;},'gLUQa':_0x589016(0x109),'ZmIED':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','FvWNl':function(_0x44c274,_0x5a367f,_0x4c6f5f,_0x5742ca,_0xe7ca2f,_0x4178d0,_0x55e06f,_0x232bc8){return _0x44c274(_0x5a367f,_0x4c6f5f,_0x5742ca,_0xe7ca2f,_0x4178d0,_0x55e06f,_0x232bc8);},'YZwOA':_0x589016(0x19a),'jNAmZ':function(_0x280d5c,_0x5ce10e){return _0x280d5c===_0x5ce10e;},'wzvvZ':_0x589016(0x21c),'cvBPH':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','UnEOd':_0x589016(0xee),'gBVKn':function(_0x17c78a,_0x47a3fb){return _0x17c78a===_0x47a3fb;},'AXGcs':_0x589016(0x10a),'aJRbV':'cLzGS','HSWUl':_0x589016(0x1ce),'jPADg':function(_0x57929b,_0x1c0aec){return _0x57929b!==_0x1c0aec;},'cMRDT':_0x589016(0x1c3),'wFUuh':_0x589016(0x11f),'wrAQm':_0x589016(0x12d),'Uwcut':function(_0x387f51,_0x59949c){return _0x387f51(_0x59949c);},'smYDS':function(_0x3f4ee0,_0x5ba43d){return _0x3f4ee0===_0x5ba43d;},'uxLkD':function(_0x2416df,_0x2fee10){return _0x2416df===_0x2fee10;},'xlWHZ':function(_0x5773d8,_0x3e9b7e){return _0x5773d8===_0x3e9b7e;},'ujRmV':_0x589016(0x16f),'Zxjuy':'GmBAI','wzowK':_0x589016(0x151),'bqJEC':_0x589016(0x103),'lGbxu':function(_0x192488,_0x277c1e){return _0x192488===_0x277c1e;},'dJiIP':'NymXt','iXRoI':_0x589016(0x1f3),'ngdEx':_0x589016(0x1b9),'kCqFz':_0x589016(0x1ac),'hwmWw':function(_0x5a187b,_0x179247,_0x31285b,_0xbb23f5,_0x4c3a97,_0x2b1693,_0x3d3a3f,_0x378ba5){return _0x5a187b(_0x179247,_0x31285b,_0xbb23f5,_0x4c3a97,_0x2b1693,_0x3d3a3f,_0x378ba5);},'Yqxzb':_0x589016(0xe9),'wzGew':'Grid\x20profile\x20fetched\x20from\x20backend','afPjd':_0x589016(0x10c),'ErAOV':_0x589016(0xf3),'DbGAk':_0x589016(0x1de),'CHCQf':function(_0x2075c6,_0x37e499){return _0x2075c6===_0x37e499;},'UwjAF':_0x589016(0x11c),'WNCEs':_0x589016(0x127),'voETT':function(_0x14357b,_0x248fcb){return _0x14357b===_0x248fcb;},'lxNIv':'GKtkm','WSFJq':function(_0x598838,_0x576789){return _0x598838===_0x576789;},'eHuTk':_0x589016(0x160),'OWnDm':_0x589016(0x140),'SrRJn':'create-grid-checks-invalid-profile','UJmEd':_0x589016(0x136),'MVFqO':_0x589016(0x1b5),'usxrA':'zqNkE','DcnuQ':_0x589016(0x11d),'cZVqC':function(_0x3ed557,_0x162e15,_0x141615,_0x240d53,_0x5a2ab1,_0x41b211,_0x1fb97c,_0x4cdc0d,_0x383ed0,_0x2341d1,_0x26f006,_0x8961df){return _0x3ed557(_0x162e15,_0x141615,_0x240d53,_0x5a2ab1,_0x41b211,_0x1fb97c,_0x4cdc0d,_0x383ed0,_0x2341d1,_0x26f006,_0x8961df);},'HhSMv':_0x589016(0xf8),'ZGZbb':function(_0x27ecc9,_0x41c870,_0x5ebc7e,_0x573c89,_0x778bfe,_0x49a504){return _0x27ecc9(_0x41c870,_0x5ebc7e,_0x573c89,_0x778bfe,_0x49a504);},'mKCkQ':function(_0x4434b3,_0x2c2b62){return _0x4434b3===_0x2c2b62;},'ReRKu':_0x589016(0x1e1),'EUdQK':function(_0x5640ed,_0x55fd2e,_0x5b29c3,_0x5a2632){return _0x5640ed(_0x55fd2e,_0x5b29c3,_0x5a2632);},'pBTuv':_0x589016(0x115),'UZRBI':_0x589016(0xf7),'RtWlR':_0x589016(0x1b7),'wKTyc':function(_0x452530,_0x9936c0){return _0x452530!=_0x9936c0;},'hDKRR':function(_0x2a86b3,_0x5dfc2e){return _0x2a86b3!==_0x5dfc2e;},'vzbqq':function(_0x395073,_0x5b7b25){return _0x395073>_0x5b7b25;},'Drpln':function(_0x10271f,_0x3e0d85){return _0x10271f===_0x3e0d85;},'kzqxm':_0x589016(0x16a),'rMwAF':_0x589016(0x1a3),'GGtSk':function(_0xf8e651,_0x4e2b88){return _0xf8e651===_0x4e2b88;},'uPgOB':_0x589016(0x20a),'pPorJ':'pre-spawned-invalid-vpc','qsTOz':function(_0x3268f8,_0xb3f448,_0x584f4f,_0x38cb62,_0x946fae,_0x42972f,_0x435137,_0x297f54){return _0x3268f8(_0xb3f448,_0x584f4f,_0x38cb62,_0x946fae,_0x42972f,_0x435137,_0x297f54);},'GfoiX':_0x589016(0x137),'OvOTj':_0x589016(0x122),'rHHmT':'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.','MCfqn':_0x589016(0xff),'CpIDu':function(_0xc399a9,_0xca0549){return _0xc399a9==_0xca0549;},'VnvTp':'Creating\x20namespace','UnOtI':_0x589016(0x14e),'TZYPn':_0x589016(0x129),'MdwZz':_0x589016(0x112),'pESNX':_0x589016(0x188),'xaqND':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','rQuuP':'Spawning\x20Grid\x20on\x20the\x20Cluster','JHBUV':function(_0x4e876e,_0xa10ca2){return _0x4e876e===_0xa10ca2;},'WWJny':function(_0x46e9b7,_0x2d184f,_0xce8130,_0x3ad3e6,_0x3fc468,_0x2ebe85,_0x560941,_0x14e377,_0x145c82,_0x252616,_0x404aad){return _0x46e9b7(_0x2d184f,_0xce8130,_0x3ad3e6,_0x3fc468,_0x2ebe85,_0x560941,_0x14e377,_0x145c82,_0x252616,_0x404aad);},'xycSs':_0x589016(0x1ca),'rHcZw':_0x589016(0x216),'bbWnJ':function(_0x2bccbf,_0x179d79,_0x386e85){return _0x2bccbf(_0x179d79,_0x386e85);},'AgmTI':_0x589016(0x1a8),'ioLmc':'ingress-nginx-controller','VvUbs':_0x589016(0x20c),'FQGxN':function(_0x3ec8e7,_0x27df01){return _0x3ec8e7(_0x27df01);},'QQEXw':_0x589016(0x19c),'iQCFr':_0x589016(0x146),'bKUcn':function(_0x4990f4,_0xe71664){return _0x4990f4===_0xe71664;},'vHMHr':_0x589016(0x1b0),'bMBcz':_0x589016(0x1d0),'Fkish':function(_0x5db411,_0x5ce677){return _0x5db411!==_0x5ce677;},'zptwU':function(_0x41c7d5,_0x152017,_0x4d8917,_0x3f2140,_0x362216,_0xba08e3,_0x1cb35c,_0x22f6bc){return _0x41c7d5(_0x152017,_0x4d8917,_0x3f2140,_0x362216,_0xba08e3,_0x1cb35c,_0x22f6bc);},'nWaOo':_0x589016(0x1ee),'tkZrq':function(_0x5ec9c4,_0x573d28,_0x5af6ca,_0x1446f9,_0x3bcd4b,_0x12b64d){return _0x5ec9c4(_0x573d28,_0x5af6ca,_0x1446f9,_0x3bcd4b,_0x12b64d);},'SygRk':_0x589016(0x219)};let _0xd2ff0=![],_0x395aa8,_0x179d8b,_0x524baf,_0x7075b,_0x1ec433,_0x504fa,_0x1c5ad4,_0x4ceb13,_0x358e31,_0x25da50,_0x29594e,_0x4b42a9,_0xc72153=0x1,_0x45f1f2=0xe;try{global_registry[_0x589016(0x198)]=_0x49ee11[_0x589016(0x15d)](uuidv4),global_registry[_0x589016(0x106)]=![];!fs['existsSync'](_0x49ee11[_0x589016(0x21d)](getCredentialsPath))&&(_0x49ee11[_0x589016(0xf1)](_0x49ee11[_0x589016(0x190)],_0x49ee11[_0x589016(0x190)])?(console[_0x589016(0x215)](_0x49ee11[_0x589016(0x175)]),await _0x49ee11[_0x589016(0x1f1)](sendInstrumentationEvent,_0x4ad379,_0x49ee11['biExJ'],messageTypes[_0x589016(0x13d)],_0x49ee11[_0x589016(0x13e)],null,_0x4ad379),process[_0x589016(0x17c)](0x1)):_0x11c5e6=_0x49ee11[_0x589016(0x18f)]);await _0x49ee11[_0x589016(0x1d4)](sendInstrumentationEvent,_0x4ad379,_0x49ee11[_0x589016(0x133)],messageTypes['INFO'],null,null,_0x4ad379);const _0x59eec8=JSON[_0x589016(0x18e)](fs['readFileSync'](_0x49ee11['mRyhM'](getCredentialsPath)));global_registry[_0x589016(0x21e)]=_0x59eec8[_0x589016(0x129)][_0x589016(0x17f)],global_registry[_0x589016(0x120)]=_0x59eec8[_0x589016(0x129)][_0x589016(0x21a)];const _0x226050=WS_ENDPOINT[_0x589016(0x183)](_0x49ee11[_0x589016(0x1d1)],_0x59eec8[_0x589016(0x129)][_0x589016(0x17f)])[_0x589016(0x183)](_0x49ee11[_0x589016(0x1eb)],_0x59eec8[_0x589016(0x129)][_0x589016(0x21a)]),_0x1071eb={};_0x1071eb[_0x589016(0x1a0)]=ws,_0x1071eb[_0x589016(0x1a9)]=0x36ee80,_0x25da50=new ReconnectingWebSocket(_0x226050,[],_0x1071eb),logger[_0x589016(0x1e4)](_0x49ee11[_0x589016(0x1c7)]),webSocketUtils['addListeners'](_0x25da50,_0x4ad379[_0x589016(0x1ab)],_0x4ad379[_0x589016(0x21a)]);let _0x7c8ae9=DEFAULT_GRID_NAME;if(_0x4ad379[_0x589016(0x152)]||_0x4ad379['cloudProvider']||_0x4ad379[_0x589016(0x125)]){if(_0x49ee11[_0x589016(0x1f5)](_0x49ee11[_0x589016(0x13a)],_0x49ee11[_0x589016(0x13a)])){!(_0x4ad379['clusterName']&&_0x4ad379[_0x589016(0x192)]&&_0x4ad379[_0x589016(0x125)])&&(_0x49ee11[_0x589016(0x1fc)](_0x49ee11[_0x589016(0x17e)],_0x49ee11['gLUQa'])?(_0x395aa8=_0x49ee11[_0x589016(0xe8)],await _0x49ee11[_0x589016(0x20d)](reportToGalactusAndSendToEDS,_0x4ad379,_0x25da50,_0x395aa8,messageTypes['ERROR'],_0x49ee11[_0x589016(0x133)],_0x49ee11[_0x589016(0x102)],_0x49ee11[_0x589016(0x119)]),logger[_0x589016(0x215)](_0x395aa8),process[_0x589016(0x17c)](0x1)):_0x1c07b0=_0x310c8e[_0x49bcb3[_0x589016(0x1a4)]]);![AWS,AZURE,GCP][_0x589016(0x159)](_0x4ad379['cloudProvider']['toLowerCase']())&&(_0x49ee11[_0x589016(0x1f9)](_0x49ee11['wzvvZ'],_0x49ee11['wzvvZ'])?(_0x395aa8=_0x49ee11[_0x589016(0x18a)],await _0x49ee11[_0x589016(0x20d)](reportToGalactusAndSendToEDS,_0x4ad379,_0x25da50,_0x395aa8,messageTypes[_0x589016(0x13d)],_0x49ee11[_0x589016(0x133)],_0x49ee11[_0x589016(0xfc)],_0x49ee11['DCTZI']),logger[_0x589016(0x215)](_0x395aa8),process[_0x589016(0x17c)](0x1)):(_0x15e23f=_0x3fc347[_0x589016(0x10b)],_0x1e397a=_0x49ee11[_0x589016(0x147)]));if(_0x4ad379[_0x589016(0x178)]&&_0x49ee11[_0x589016(0x105)](_0x4ad379['privateGrid'][_0x589016(0x185)](),_0x49ee11[_0x589016(0x1d3)])){if(_0x49ee11['eCaCZ'](_0x49ee11[_0x589016(0x163)],_0x49ee11['HSWUl']))throw _0x4d062c;else global_registry[_0x589016(0x106)]=!![];}_0xd2ff0=!![],_0x524baf=_0x4ad379['clusterName'],_0x179d8b=_0x4ad379[_0x589016(0x192)]['toLowerCase'](),_0x7075b=_0x4ad379[_0x589016(0x125)];}else _0x18b957[_0x589016(0x17d)](_0x589016(0x128)+_0x1b9c48[_0x589016(0x1d6)](_0x51c227)+'\x20');}if(_0x4ad379['gridName']){if(_0x49ee11[_0x589016(0x1e0)](_0x49ee11['cMRDT'],_0x49ee11[_0x589016(0x132)]))_0x7c8ae9=_0x4ad379['gridName'];else{const _0x866d92=_0x49ee11[_0x589016(0x1ed)][_0x589016(0x1b1)]('|');let _0x14649c=0x0;while(!![]){switch(_0x866d92[_0x14649c++]){case'0':_0x431441[_0x589016(0x152)]=_0x258dea;continue;case'1':_0x29f320[_0x589016(0x17d)](_0x508e7e);continue;case'2':const _0x5b3ae7={};_0x5b3ae7[_0x589016(0xf5)]=_0x211620[_0x589016(0x1c0)],_0x5b3ae7[_0x589016(0xf9)]='CLI\x20run\x20started',_0x40203f[_0x589016(0x195)](_0x39b0ad,_0x5b3ae7);continue;case'3':_0x5add9b['hubVersion']=_0x59e022[_0x589016(0x114)];continue;case'4':_0x203964[_0x589016(0x100)]=_0x3e92ca;continue;case'5':_0x3e77eb=_0x589016(0x1d7)+_0x1f220d+_0x589016(0x15f)+_0x55c7ae+'\x27';continue;case'6':const _0x3fc2a5={};_0x3fc2a5[_0x589016(0xf5)]=_0x95f22b[_0x589016(0x1d2)],_0x3fc2a5[_0x589016(0xf9)]=_0x302394,_0x433449[_0x589016(0x195)](_0x499236,_0x3fc2a5);continue;case'7':_0x58991b[_0x589016(0x171)]=_0x253ac0['browserVersion'];continue;case'8':_0x4c17ff[_0x589016(0x192)]=_0x18c76b;continue;}break;}}}global_registry[_0x589016(0x14f)]=_0x7c8ae9;const _0x32aba2={};_0x32aba2[_0x589016(0x17f)]=_0x59eec8[_0x589016(0x129)][_0x589016(0x17f)],_0x32aba2['password']=_0x59eec8[_0x589016(0x129)][_0x589016(0x21a)];const _0x16eae1={};_0x16eae1[_0x589016(0x149)]=_0x49ee11[_0x589016(0x206)],_0x16eae1[_0x589016(0x177)]=_0x32aba2;const _0x292b22=_0x16eae1,_0x8313e=_0x589016(0x12c)+AG_API_URL+_0x589016(0x19b),_0x5afb74={};_0x5afb74['gridName']=_0x7c8ae9;const _0x42f56b={'url':_0x8313e,'qs':_0x5afb74,..._0x292b22},_0x5f1fc4=_0x42f56b,_0x2d42aa=await _0x49ee11[_0x589016(0x126)](promisifiedRequest,_0x5f1fc4);(_0x49ee11[_0x589016(0x12a)](_0x2d42aa,null)||_0x49ee11[_0x589016(0x101)](_0x2d42aa,undefined))&&(_0x49ee11['xlWHZ'](_0x49ee11['ujRmV'],_0x49ee11[_0x589016(0x204)])?_0x1d00ac[_0x589016(0x106)]=!![]:(_0x395aa8=_0x49ee11[_0x589016(0x209)],await _0x49ee11[_0x589016(0x20d)](reportToGalactusAndSendToEDS,_0x4ad379,_0x25da50,_0x395aa8,messageTypes[_0x589016(0x13d)],_0x49ee11[_0x589016(0x133)],_0x49ee11[_0x589016(0x117)],_0x49ee11[_0x589016(0x119)]),logger[_0x589016(0x215)](_0x395aa8),process[_0x589016(0x17c)](0x1)));if(_0x49ee11[_0x589016(0x101)](_0x2d42aa['statusCode'],0x191)){if(_0x49ee11[_0x589016(0xfe)](_0x49ee11['dJiIP'],_0x49ee11[_0x589016(0x1c2)]))_0x395aa8=_0x49ee11[_0x589016(0x10d)],await _0x49ee11[_0x589016(0x20d)](reportToGalactusAndSendToEDS,_0x4ad379,_0x25da50,_0x395aa8,messageTypes[_0x589016(0x13d)],_0x49ee11[_0x589016(0x133)],_0x49ee11[_0x589016(0x1e9)],_0x49ee11['DCTZI']),logger[_0x589016(0x215)](_0x395aa8),process['exit'](0x1);else{const _0x495ce1={};_0x495ce1[_0x589016(0xec)]=_0x49ee11[_0x589016(0x207)],_0x495ce1[_0x589016(0xf5)]=_0x49ee11['JbCMe'];const _0x2f1f2c={};_0x2f1f2c[_0x589016(0xec)]=_0x49ee11[_0x589016(0x199)],_0x2f1f2c['type']=_0x49ee11['JbCMe'];const _0x84095={};_0x84095[_0x589016(0xec)]=_0x49ee11[_0x589016(0x20e)],_0x84095[_0x589016(0xf5)]=_0x49ee11[_0x589016(0x196)];const _0x2a8a58={};_0x2a8a58[_0x589016(0xec)]=_0x49ee11[_0x589016(0x1a7)],_0x2a8a58['type']=_0x49ee11[_0x589016(0x196)];const _0x20994c={};_0x20994c[_0x589016(0xec)]=_0x49ee11['PKzan'],_0x20994c[_0x589016(0xf5)]=_0x49ee11[_0x589016(0x196)];const _0x352f38={};_0x352f38[_0x589016(0xec)]=_0x49ee11[_0x589016(0x111)],_0x352f38[_0x589016(0xf5)]=_0x49ee11['JbCMe'];const _0x2fbe94={};return _0x2fbe94[_0x589016(0x16b)]=_0x495ce1,_0x2fbe94[_0x589016(0x166)]=_0x2f1f2c,_0x2fbe94[_0x589016(0x150)]=_0x84095,_0x2fbe94[_0x589016(0x179)]=_0x2a8a58,_0x2fbe94[_0x589016(0x125)]=_0x20994c,_0x2fbe94[_0x589016(0x15a)]=_0x352f38,_0x2e3817[_0x589016(0x168)](_0x4f9858[_0x589016(0xea)])[_0x589016(0x1ff)](_0x12462d)[_0x589016(0x131)](_0x2fbe94)[_0x589016(0x1d5)](_0x49ee11[_0x589016(0x1cb)])[_0x589016(0x130)];}}_0x49ee11[_0x589016(0x1e0)](_0x2d42aa[_0x589016(0x1d8)],0xc8)&&(_0x49ee11['Coamw'](_0x49ee11[_0x589016(0x1e7)],_0x49ee11[_0x589016(0x1e7)])?(_0x395aa8=_0x589016(0x213)+JSON[_0x589016(0x1d6)](_0x2d42aa),await _0x49ee11[_0x589016(0x181)](reportToGalactusAndSendToEDS,_0x4ad379,_0x25da50,_0x395aa8,messageTypes[_0x589016(0x13d)],_0x49ee11[_0x589016(0x133)],_0x49ee11[_0x589016(0x121)],_0x49ee11[_0x589016(0x119)]),logger[_0x589016(0x215)](_0x395aa8),process[_0x589016(0x17c)](0x1)):_0x5b14ba[_0x589016(0x106)]=!![]);const _0xeb47f1=JSON[_0x589016(0x18e)](_0x2d42aa[_0x589016(0x1cf)]),_0x33bb9d={};_0x33bb9d[_0x589016(0xf5)]=WS_EVENTS[_0x589016(0x1c0)],_0x33bb9d['message']=_0x589016(0xf0),webSocketUtils['sendEventToBackend'](_0x25da50,_0x33bb9d);const _0x17d694={};_0x17d694[_0x589016(0xf5)]=WS_EVENTS[_0x589016(0x1d2)],_0x17d694[_0x589016(0xf9)]=_0x49ee11['wzGew'],webSocketUtils['sendEventToBackend'](_0x25da50,_0x17d694);if(_0xeb47f1[_0x589016(0x1c8)]){if(_0x49ee11['jPADg'](_0x49ee11['afPjd'],_0x49ee11[_0x589016(0x18c)])){const _0x399440={};_0x399440[_0x589016(0xf5)]=_0xa05cc6[_0x589016(0x1d2)],_0x399440[_0x589016(0xf9)]='Cluster\x20'+_0x5813c6+_0x589016(0xfb),_0x9f00cf[_0x589016(0x195)](_0x537a5d,_0x399440,_0x49ee11[_0x589016(0x197)]),_0x209a28['info'](_0x589016(0x1cd)+_0x50c479+_0x589016(0xfb)),_0x59fdec=!![];}else _0x395aa8=_0x49ee11[_0x589016(0x144)],await _0x49ee11[_0x589016(0x20d)](reportToGalactusAndSendToEDS,_0x4ad379,_0x25da50,_0x395aa8,messageTypes[_0x589016(0x13d)],_0x49ee11[_0x589016(0x133)],_0x49ee11['DbGAk'],_0x49ee11[_0x589016(0x119)]),logger[_0x589016(0x215)](_0x395aa8),process[_0x589016(0x17c)](0x1);}const _0x5b188a=_0xeb47f1['gridProfiles'];let _0x138ace=_0x5b188a[_0xeb47f1[_0x589016(0x1be)]];_0x4ad379[_0x589016(0x1a4)]&&(_0x49ee11['CHCQf'](_0x49ee11['UwjAF'],_0x49ee11[_0x589016(0x1c1)])?(_0x595e2d[_0x589016(0x215)](_0x49ee11[_0x589016(0x1b3)]),_0x2a5c4f[_0x589016(0x17c)](0x1)):_0x138ace=_0x5b188a[_0x4ad379['gridProfile']]);if(_0x49ee11[_0x589016(0x108)](_0xd2ff0,![])){if(_0x49ee11[_0x589016(0x211)](_0x49ee11[_0x589016(0x169)],_0x49ee11[_0x589016(0x169)])){_0x49ee11[_0x589016(0x143)](_0x138ace,undefined)&&(_0x49ee11[_0x589016(0x1e0)](_0x49ee11[_0x589016(0x104)],_0x49ee11[_0x589016(0x104)])?_0x2fb5bc=_0xa8400a[_0x589016(0x14f)]:(_0x395aa8=_0x49ee11[_0x589016(0x19e)],await _0x49ee11[_0x589016(0x181)](reportToGalactusAndSendToEDS,_0x4ad379,_0x25da50,_0x395aa8,messageTypes[_0x589016(0x13d)],_0x49ee11[_0x589016(0x133)],_0x49ee11[_0x589016(0x214)],_0x49ee11[_0x589016(0x119)]),logger[_0x589016(0x215)](_0x395aa8),process[_0x589016(0x17c)](0x1)));global_registry[_0x589016(0x200)]=_0x138ace['id'];(_0x49ee11[_0x589016(0x105)](_0x179d8b,AZURE)||_0x49ee11[_0x589016(0x1f9)](_0x138ace?.[_0x589016(0x192)],AZURE))&&(_0x49ee11[_0x589016(0x1f5)](_0x49ee11[_0x589016(0x12b)],_0x49ee11[_0x589016(0x1bf)])?_0x258989[_0x589016(0x192)]={}:(console[_0x589016(0x215)](_0x49ee11['BMgcR']),process[_0x589016(0x17c)](0x1)));_0x395aa8='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x7c8ae9+_0x589016(0x1a6)+_0x138ace[_0x589016(0x1fa)]+_0x589016(0x202),logger[_0x589016(0x17d)](_0x395aa8);const _0x447b83={};_0x447b83['type']=WS_EVENTS[_0x589016(0x1d2)],_0x447b83[_0x589016(0xf9)]=_0x395aa8,webSocketUtils[_0x589016(0x195)](_0x25da50,_0x447b83),_0x179d8b=_0x138ace[_0x589016(0x192)],_0x524baf=_0x138ace['clusterName'],_0x7075b=_0x138ace[_0x589016(0x125)],_0x1ec433=_0x138ace[_0x589016(0x142)],_0x504fa=_0x138ace[_0x589016(0x123)],_0x1c5ad4=_0x138ace[_0x589016(0x1a5)],securityGroups=_0x138ace['securityGroups'],subnets=_0x138ace[_0x589016(0x17b)],_0x4ceb13=_0x138ace['s3bucket'],_0xc72153=_0x138ace[_0x589016(0x1bd)],_0x45f1f2=_0x138ace['maxNodes'],_0x29594e=_0xeb47f1[_0x589016(0x114)],_0x4b42a9=_0xeb47f1[_0x589016(0x171)],_0x49ee11['jPADg'](_0x138ace[_0x589016(0x178)],undefined)&&_0x138ace[_0x589016(0x178)]&&(_0x49ee11[_0x589016(0xfe)](_0x49ee11[_0x589016(0x180)],_0x49ee11[_0x589016(0x13b)])?_0x4792b3[_0x589016(0x17d)](_0x589016(0x174)+_0x427b9e+'\x20'):global_registry[_0x589016(0x106)]=!![]),_0x49ee11[_0x589016(0x1ba)](updateGlobalRegistryWithConfig,_0x179d8b,_0x524baf,_0x7075b,_0x1ec433,_0x504fa,_0x4ceb13,_0x138ace,_0x29594e,_0x4b42a9,_0xc72153,_0x45f1f2);}else{const _0x2f51b9={};_0x2f51b9[_0x589016(0xf5)]=_0x452d45[_0x589016(0x1d2)],_0x2f51b9['message']=_0x3861b,_0x286c4f[_0x589016(0x195)](_0x36c5d1,_0x2f51b9,_0x49ee11[_0x589016(0x119)],!![]);}}else{const _0xd078d=_0x49ee11['HhSMv'][_0x589016(0x1b1)]('|');let _0x48d751=0x0;while(!![]){switch(_0xd078d[_0x48d751++]){case'0':_0x395aa8=_0x589016(0x1d7)+_0x7c8ae9+_0x589016(0x15f)+_0x524baf+'\x27';continue;case'1':const _0x2f6a8d={};_0x2f6a8d[_0x589016(0xf5)]=WS_EVENTS[_0x589016(0x1c0)],_0x2f6a8d[_0x589016(0xf9)]=_0x589016(0xf0),webSocketUtils[_0x589016(0x195)](_0x25da50,_0x2f6a8d);continue;case'2':global_registry['clusterRegion']=_0x7075b;continue;case'3':global_registry[_0x589016(0x114)]=_0xeb47f1[_0x589016(0x114)];continue;case'4':logger[_0x589016(0x17d)](_0x395aa8);continue;case'5':const _0x295c00={};_0x295c00[_0x589016(0xf5)]=WS_EVENTS[_0x589016(0x1d2)],_0x295c00['message']=_0x395aa8,webSocketUtils[_0x589016(0x195)](_0x25da50,_0x295c00);continue;case'6':global_registry[_0x589016(0x152)]=_0x524baf;continue;case'7':global_registry[_0x589016(0x192)]=_0x179d8b;continue;case'8':global_registry[_0x589016(0x171)]=_0xeb47f1['browserVersion'];continue;}break;}}const _0x319e17=_0x49ee11[_0x589016(0x1f2)](getCloudProviderObject,_0x179d8b,_0x524baf,_0x7c8ae9,_0x25da50,webSocketUtils),_0xf67c63=_0x59eec8['cloudProvider']||{};if(_0x49ee11[_0x589016(0x1dd)](_0xf67c63[_0x179d8b],undefined)){logger['info'](_0x49ee11[_0x589016(0x15b)]);_0x49ee11[_0x589016(0x108)](_0x59eec8['cloudProvider'],undefined)&&(_0x59eec8[_0x589016(0x192)]={});_0x59eec8[_0x589016(0x192)][_0x179d8b]={};const _0x3e5375=await _0x49ee11[_0x589016(0xeb)](inputCloudProviderKeys,_0x179d8b,_0x59eec8,_0x319e17);fs[_0x589016(0x11b)](_0x49ee11[_0x589016(0x15d)](getCredentialsPath),JSON[_0x589016(0x1d6)](_0x3e5375)),logger['debug'](_0x49ee11['pBTuv']);}else{_0x395aa8=_0x49ee11[_0x589016(0xef)];const _0xb92f2a={};_0xb92f2a[_0x589016(0xf5)]=WS_EVENTS['LOG'],_0xb92f2a[_0x589016(0xf9)]=_0x395aa8,webSocketUtils['sendEventToBackend'](_0x25da50,_0xb92f2a),logger[_0x589016(0x17d)](_0x395aa8),await _0x319e17[_0x589016(0x107)](_0xf67c63);}_0x319e17[_0x589016(0x1e5)]();let _0x1655dd;if(_0x49ee11['CHCQf'](_0xd2ff0,![])){_0x395aa8=_0x589016(0x155)+_0x7075b+').';const _0x6b38c2={};_0x6b38c2[_0x589016(0xf5)]=WS_EVENTS[_0x589016(0x1d2)],_0x6b38c2['message']=_0x395aa8,webSocketUtils[_0x589016(0x195)](_0x25da50,_0x6b38c2),logger[_0x589016(0x17d)](_0x395aa8);const _0x10c460=await _0x319e17[_0x589016(0x139)]();if(_0x10c460){const _0x2b42ce={};_0x2b42ce[_0x589016(0xf5)]=WS_EVENTS[_0x589016(0x1d2)],_0x2b42ce['message']=_0x589016(0x1cd)+_0x524baf+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x589016(0x195)](_0x25da50,_0x2b42ce,_0x49ee11[_0x589016(0x197)]),logger[_0x589016(0x17d)](_0x589016(0x1cd)+_0x524baf+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0xd2ff0=!![];}else{const _0x47f5d9={};_0x47f5d9[_0x589016(0xf5)]=WS_EVENTS[_0x589016(0x1d2)],_0x47f5d9[_0x589016(0xf9)]=_0x49ee11[_0x589016(0x1b2)],webSocketUtils[_0x589016(0x195)](_0x25da50,_0x47f5d9),logger[_0x589016(0x17d)](_0x49ee11[_0x589016(0x1b2)]);const _0x4e2acc=_0x49ee11['wKTyc'](_0x1c5ad4,null)&&_0x49ee11[_0x589016(0x1e0)](_0x1c5ad4,undefined),_0x527e8c=_0x49ee11[_0x589016(0x1f0)](subnets,null)&&_0x49ee11[_0x589016(0x1ef)](subnets,undefined)&&_0x49ee11[_0x589016(0x1d9)](subnets[_0x589016(0x161)],0x0);if(_0x4e2acc){_0x49ee11['Drpln'](_0x527e8c,![])&&(_0x395aa8=_0x49ee11[_0x589016(0x118)],await _0x49ee11[_0x589016(0x20d)](reportToGalactusAndSendToEDS,_0x4ad379,_0x25da50,_0x395aa8,messageTypes[_0x589016(0x13d)],_0x49ee11[_0x589016(0x133)],_0x49ee11[_0x589016(0x1cc)],_0x49ee11[_0x589016(0x119)]),logger[_0x589016(0x215)](_0x395aa8),process[_0x589016(0x17c)](0x1));const _0x5c113c=await _0x319e17[_0x589016(0x113)](_0x1c5ad4);_0x49ee11[_0x589016(0x11e)](_0x5c113c,![])?(_0x395aa8=_0x49ee11[_0x589016(0x184)],await _0x49ee11[_0x589016(0x20d)](reportToGalactusAndSendToEDS,_0x4ad379,_0x25da50,_0x395aa8,messageTypes[_0x589016(0x13d)],_0x49ee11['biExJ'],_0x49ee11['pPorJ'],_0x49ee11[_0x589016(0x119)]),logger[_0x589016(0x215)](_0x395aa8),process[_0x589016(0x17c)](0x1)):logger[_0x589016(0x17d)]('Found\x20VPC:\x20'+_0x1c5ad4+'\x20');const _0x2e271c=await _0x319e17[_0x589016(0x1f8)](subnets,_0x1c5ad4);_0x49ee11['jNAmZ'](_0x2e271c[0x0],![])?(_0x395aa8=_0x589016(0x1bc)+_0x2e271c[0x1]+_0x589016(0x170)+_0x1c5ad4+_0x589016(0x19f),await _0x49ee11['qsTOz'](reportToGalactusAndSendToEDS,_0x4ad379,_0x25da50,_0x395aa8,messageTypes[_0x589016(0x13d)],_0x49ee11[_0x589016(0x133)],_0x49ee11[_0x589016(0xf6)],_0x49ee11['DCTZI']),logger[_0x589016(0x215)](_0x395aa8),process[_0x589016(0x17c)](0x1)):logger['info'](_0x589016(0x128)+JSON[_0x589016(0x1d6)](subnets)+'\x20'),await _0x319e17[_0x589016(0x194)](_0x1c5ad4,subnets);}else{const _0x356d39=_0x49ee11[_0x589016(0x10f)][_0x589016(0x1b1)]('|');let _0x1df238=0x0;while(!![]){switch(_0x356d39[_0x1df238++]){case'0':const _0x690146={};_0x690146[_0x589016(0xf5)]=WS_EVENTS['LOG'],_0x690146[_0x589016(0xf9)]='Cluster\x20created\x20successfully',webSocketUtils[_0x589016(0x195)](_0x25da50,_0x690146);continue;case'1':const _0x4cbaea={};_0x4cbaea[_0x589016(0xf5)]=WS_EVENTS[_0x589016(0x1d2)],_0x4cbaea[_0x589016(0xf9)]=_0x49ee11[_0x589016(0x21b)],webSocketUtils[_0x589016(0x195)](_0x25da50,_0x4cbaea);continue;case'2':await _0x319e17[_0x589016(0x194)]();continue;case'3':logger[_0x589016(0x17d)](_0x49ee11[_0x589016(0x21b)]);continue;case'4':logger[_0x589016(0x17d)](_0x49ee11[_0x589016(0x134)]);continue;}break;}}}}_0xd2ff0&&_0x49ee11['eCaCZ'](_0x179d8b,AZURE)&&(global_registry[_0x589016(0x141)]=_0xeb47f1[_0x589016(0x11a)],await _0x319e17['updatePreSpawnedCluster'](),await _0x319e17[_0x589016(0x212)]());const [_0x146844,_0xd47bc4,_0x26829b,_0x777ed8,_0xa127f2,_0x44b706]=await _0x49ee11[_0x589016(0x126)](createK8sClient,_0x319e17);_0x49ee11[_0x589016(0xf1)](_0xd2ff0,![])&&_0x49ee11[_0x589016(0x1e8)](_0x179d8b,AWS)&&(_0x1655dd=await _0x319e17['setupAutoscaler'](_0x146844,_0x4ad379));try{_0x358e31=_0x49ee11[_0x589016(0x126)](kebabCase,_0x7c8ae9),logger[_0x589016(0x17d)](_0x49ee11[_0x589016(0x162)]);const _0x8d2d9f={};_0x8d2d9f[_0x589016(0xf5)]=WS_EVENTS[_0x589016(0x1d2)],_0x8d2d9f[_0x589016(0xf9)]=_0x49ee11[_0x589016(0x162)],webSocketUtils['sendEventToBackend'](_0x25da50,_0x8d2d9f);if(_0x49ee11[_0x589016(0x1e0)](_0x358e31,_0x49ee11['UnOtI'])){const _0x52be19={};_0x52be19[_0x589016(0x13f)]=_0x49ee11[_0x589016(0x1f6)],_0x52be19['managedBy']=_0x49ee11[_0x589016(0x1f6)];const _0xb0d359={};_0xb0d359[_0x589016(0x1fa)]=_0x358e31,_0xb0d359[_0x589016(0x14d)]=_0x52be19;const _0x4d9c1c={};_0x4d9c1c[_0x589016(0x12f)]=_0xb0d359;let _0x121a2a=_0x4d9c1c;await _0x146844[_0x589016(0x1af)](_0x121a2a),logger['info'](_0x49ee11[_0x589016(0x17a)]);}const _0x2c8e57={};_0x2c8e57[_0x589016(0xf5)]=WS_EVENTS[_0x589016(0x1d2)],_0x2c8e57[_0x589016(0xf9)]=_0x49ee11['pESNX'],webSocketUtils[_0x589016(0x195)](_0x25da50,_0x2c8e57);const _0x39a066={};_0x39a066[_0x589016(0xf5)]=WS_EVENTS[_0x589016(0x1d2)],_0x39a066[_0x589016(0xf9)]=_0x49ee11[_0x589016(0x14a)],webSocketUtils['sendEventToBackend'](_0x25da50,_0x39a066),logger['info'](_0x49ee11[_0x589016(0x186)]);let _0x2c4318={};_0x49ee11[_0x589016(0x173)](_0x179d8b,AZURE)&&(_0x2c4318={'clientId':await _0x319e17[_0x589016(0x1a2)](_0x589016(0x1dc)+_0x524baf)});await _0x49ee11[_0x589016(0x1f7)](addGridComponents,_0x146844,_0xd47bc4,_0x26829b,_0x777ed8,_0x358e31,_0x524baf,_0x1655dd,_0xa127f2,_0x44b706,_0x2c4318),_0x395aa8=_0x49ee11['xycSs'],logger[_0x589016(0x17d)](_0x395aa8);const _0x4a60bd={};_0x4a60bd[_0x589016(0xf5)]=WS_EVENTS[_0x589016(0x1d2)],_0x4a60bd[_0x589016(0xf9)]=_0x395aa8,webSocketUtils[_0x589016(0x195)](_0x25da50,_0x4a60bd),_0x395aa8=_0x49ee11['rHcZw'],logger['info'](_0x395aa8);const _0x55586f={};_0x55586f[_0x589016(0xf5)]=WS_EVENTS['LOG'],_0x55586f[_0x589016(0xf9)]=_0x395aa8,webSocketUtils['sendEventToBackend'](_0x25da50,_0x55586f),await webSocketUtils['delay'](0xea60);const _0x4311d3=await _0x49ee11[_0x589016(0x1a1)](getNamespaceUID,_0x146844,_0x358e31);let _0x4006d6=global_registry['isPrivateGrid']?_0x49ee11[_0x589016(0x205)]:_0x49ee11[_0x589016(0x1ad)],_0x2f21c9=await _0x146844[_0x589016(0x1fb)](_0x4006d6,_0x49ee11[_0x589016(0x1df)]),_0x4cce01=_0x319e17[_0x589016(0x18b)](_0x2f21c9)+'/'+_0x358e31,_0x41d26b=_0x49ee11[_0x589016(0x18f)];try{const _0x20f5e0={'url':_0x589016(0x12c)+AG_API_URL+_0x589016(0x12e)+_0x4311d3,..._0x292b22},_0x2fe953=_0x20f5e0,_0x3ed3d8=await _0x49ee11[_0x589016(0x148)](promisifiedRequest,_0x2fe953);(_0x49ee11[_0x589016(0x1e8)](_0x3ed3d8,null)||_0x49ee11['CpIDu'](_0x3ed3d8,undefined))&&(_0x395aa8=_0x49ee11[_0x589016(0x138)],await _0x49ee11[_0x589016(0x20d)](reportToGalactusAndSendToEDS,_0x4ad379,_0x25da50,_0x395aa8,messageTypes[_0x589016(0x13d)],_0x49ee11[_0x589016(0x133)],_0x49ee11['iQCFr'],_0x49ee11['DCTZI']),logger[_0x589016(0x215)](_0x395aa8),process[_0x589016(0x17c)](0x1));_0x49ee11[_0x589016(0xed)](_0x3ed3d8['statusCode'],0x191)&&(_0x395aa8=_0x49ee11[_0x589016(0x1fd)],await _0x49ee11['FvWNl'](reportToGalactusAndSendToEDS,_0x4ad379,_0x25da50,_0x395aa8,messageTypes[_0x589016(0x13d)],_0x49ee11['biExJ'],_0x49ee11[_0x589016(0x1e3)],_0x49ee11[_0x589016(0x119)]),logger[_0x589016(0x215)](_0x395aa8),process[_0x589016(0x17c)](0x1));_0x49ee11[_0x589016(0x1e6)](_0x3ed3d8['statusCode'],0xc8)&&(_0x395aa8=_0x589016(0x157)+JSON[_0x589016(0x1d6)](_0x3ed3d8),await _0x49ee11[_0x589016(0x201)](reportToGalactusAndSendToEDS,_0x4ad379,_0x25da50,_0x395aa8,messageTypes[_0x589016(0x13d)],_0x49ee11[_0x589016(0x133)],_0x49ee11[_0x589016(0x1c6)],_0x49ee11[_0x589016(0x119)]),logger[_0x589016(0x215)](_0x395aa8),process[_0x589016(0x17c)](0x1));const _0x1604c3=JSON[_0x589016(0x18e)](_0x3ed3d8[_0x589016(0x1cf)]);_0x1604c3[_0x589016(0x10b)]&&(_0x4cce01=_0x1604c3[_0x589016(0x10b)],_0x41d26b=_0x49ee11[_0x589016(0x147)]),global_registry[_0x589016(0x106)]&&(_0x41d26b=_0x49ee11[_0x589016(0x18f)]);}catch(_0xea5b9c){}_0x395aa8=_0x589016(0x15c)+_0x4cce01+'\x20',logger[_0x589016(0x17d)](_0x395aa8);const _0x50a847={};_0x50a847[_0x589016(0xf5)]=WS_EVENTS[_0x589016(0x1d2)],_0x50a847[_0x589016(0xf9)]=_0x395aa8,webSocketUtils[_0x589016(0x195)](_0x25da50,_0x50a847),_0x395aa8=_0x589016(0x14c)+_0x41d26b+_0x589016(0x14b)+_0x4cce01+'/wd/hub',logger['info'](_0x395aa8);const _0x54a939={};_0x54a939['type']=WS_EVENTS['LOG'],_0x54a939['message']=_0x395aa8,webSocketUtils['sendEventToBackend'](_0x25da50,_0x54a939);const _0x4273ed={};_0x4273ed['type']=WS_EVENTS[_0x589016(0x154)],_0x4273ed[_0x589016(0xf9)]=_0x589016(0x21f)+_0x4cce01,webSocketUtils[_0x589016(0x195)](_0x25da50,_0x4273ed),await webSocketUtils[_0x589016(0x135)](0x7d0);}catch(_0x18f876){if(_0x49ee11[_0x589016(0x108)](_0xd2ff0,![]))try{logger[_0x589016(0x17d)]('Deleting\x20the\x20CloudFormation\x20Stacks'),await _0x49ee11[_0x589016(0x218)](removeGridComponents,_0x146844,_0xd47bc4,_0x26829b,_0x777ed8,_0x358e31),await _0x319e17['deleteCluster'](_0x146844,global_registry[_0x589016(0x100)]);}catch(_0x30d71a){throw _0x30d71a;}throw _0x18f876;}}catch(_0x5efb94){const _0x565d66=_0x589016(0x167)+_0x5efb94+'\x20\x0a'+JSON['stringify'](_0x5efb94)+'\x20';if(_0x25da50){const _0xb5c4={};_0xb5c4[_0x589016(0xf5)]=WS_EVENTS['LOG'],_0xb5c4[_0x589016(0xf9)]=_0x565d66,webSocketUtils['sendEventToBackend'](_0x25da50,_0xb5c4,_0x49ee11[_0x589016(0x119)],!![]);}await webSocketUtils[_0x589016(0x135)](0x7d0);const _0x153224={};_0x153224[_0x589016(0x215)]=_0x565d66,await _0x49ee11[_0x589016(0x1f1)](sendInstrumentationEvent,_0x4ad379,_0x49ee11[_0x589016(0x133)],messageTypes[_0x589016(0x13d)],_0x49ee11['SygRk'],_0x153224,_0x4ad379),logger[_0x589016(0x215)](_0x565d66);}process[_0x589016(0x17c)](0x0);};
1
+ const a10_0x2da769=a10_0xfdbd;(function(_0x4b7bcd,_0x7ab37c){const _0x3d408f=a10_0xfdbd,_0x5bb6d3=_0x4b7bcd();while(!![]){try{const _0x4e343e=parseInt(_0x3d408f(0x2d0))/0x1+-parseInt(_0x3d408f(0x23d))/0x2*(parseInt(_0x3d408f(0x275))/0x3)+parseInt(_0x3d408f(0x2e3))/0x4+-parseInt(_0x3d408f(0x297))/0x5+-parseInt(_0x3d408f(0x205))/0x6+parseInt(_0x3d408f(0x261))/0x7+parseInt(_0x3d408f(0x22f))/0x8;if(_0x4e343e===_0x7ab37c)break;else _0x5bb6d3['push'](_0x5bb6d3['shift']());}catch(_0x228dc8){_0x5bb6d3['push'](_0x5bb6d3['shift']());}}}(a10_0x9995,0x4ae03));function a10_0xfdbd(_0x2d730a,_0x4447e4){const _0x9995a1=a10_0x9995();return a10_0xfdbd=function(_0xfdbd0a,_0x5ad812){_0xfdbd0a=_0xfdbd0a-0x1f3;let _0x30f931=_0x9995a1[_0xfdbd0a];return _0x30f931;},a10_0xfdbd(_0x2d730a,_0x4447e4);}const fs=require('fs'),ws=require('ws'),util=require('util'),ReconnectingWebSocket=require(a10_0x2da769(0x270)),request=require('request'),{v4:uuidv4}=require(a10_0x2da769(0x257)),webSocketUtils=require(a10_0x2da769(0x27b)),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a10_0x2da769(0x26f)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x2da769(0x20a)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a10_0x2da769(0x2b0)](request);function a10_0x9995(){const _0x44d01b=['Found\x20Subnets:\x20','hBKjd','AHNpd','<UsernamePlaceholder>','setupNewCluster','wgEiE','gridName','Subnets:\x20','PTKSp','uEgbt','fanYB','replace','maxNodes','319914LKubQD','http','deleteCluster','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','options','../../config/constants','8|2|7|1|3|5|0|4|6','kjlJB','ERROR','HyYEX','ZRtKv','method','TwRDg','bstackAccesskey','ABxzY','NJaOj','tFSxw','PzExr','string','dSGej','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','hlcTC','toLowerCase','Cluster\x20created\x20successfully','ntseD','s3Bucket','create','body','VvcDe','KKcoV','oFwnw','create-grid-checks-non-200','fXIEi','Spawning\x20grid\x20on\x20to\x20the\x20cluster','private-grid','readNamespacedService','UUHMk','warn','UcIne','usage','mTtew','s3BucketName','1263192OoNRsU','IiFEo','managedBy','JoZJl','TBVqm','CLI\x20run\x20started','bKPrN','bYWah','bKyFr','qYXvF','euJSU','tMBgE','odJPn','cloud-provider','2538rFiUPR','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','ZqjeN','ingress-nginx-controller','UfTpz','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','get-grid-url-auth-failed','dFNJR','IzJLa','CLeaN','dPtxz','HGNZN','MYqzo','sendEventToBackend','createNamespace','wXqhZ','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','QMTCT','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.','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','privateGrid','error','stringify','get-grid-url-non-200','uuid','pknjn','RToBg','jLVbz','clusterRegion','Lmsga','cluster-name','grid-name','sLYfC','Grid\x20spawned\x20on\x20the\x20cluster','1184134FmCdvD','oivvq','Namespace\x20created','ingress-nginx','LhMCP','grid','clusterName','cmqzU','getResourceClientId','name','delay','Browserstack','hjdeD','pkhgk','../../cloudproviders/utils','reconnecting-websocket','handler','aOsUk','Found\x20VPC:\x20','desc','849CoQSUF','FrfNP','eXaiP','IbYMr','setupAutoscaler','Create\x20a\x20private/public\x20grid.','../../utils/webSocketUtils','type','command','s3bucket','oeHsk','create-grid-checks-grid-already-exists','split','CLI\x20run\x20finished:\x20','OPGSX','PixRv','qStef','help','message','includes','ooluv','region','uxRtr','UgvrD','existsSync','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','grid-profile','browserVersion','hCehi','gTIst','\x27\x20grid\x20profile','default','wOzOz','isPrivateGrid','967450oHNHIo','ECKEl','LOG','parse','Cluster\x20','gztST','kRIry','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','mTBOC','pre-spawned-invalid-vpc','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','createOtherResources','info','/packages/cli/create-grid-checks','gridProfileId','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','isVPCPresent','configureIfNotConfigured','Grid\x20profile\x20fetched\x20from\x20backend','lkJuj','prespawned-cluster-args-not-passed','xfJib','emKto','vlbsr','gridProfiles','promisify','isSubnetsValid','auth','/wd/hub','NQPdK','private-ingress-nginx-controller','JkwVM','AqYVp','get-grid-url-null-response','instanceType','bvCFi','Pistf','non-aws-azure-cluster','securityGroups','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','gYUGH','IaRbD','CLI_RUN_FINISHED','phjdu','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','password','https://','iuhyC','true','ugmoe','EIeZM','MsVNu','hHoeA','gHPdS','<PasswordPlaceholder>','JaBLz','oAOBe','540282itVWiV','route53','RJXHZ','aWXUL','ZNWQz','gridProfile','rgqjB','unsmo','minNodes','CjFsZ','mkfDU','ABthL','rhAUU','WQtUo','argv','QuZCQ','hqetP','description','iWDRC','181136GMhJCn','oYikZ','nGzOc','pre-spawned-subnets-not-selected','FUVHl','LtAvK','CJwRR','3|0|1|4|2','cloudProvider','Kotby','subnets','isClusterPresent','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','NvQft','zkeZJ','turboscale-managed-identity-','JEPQV','yIXQh','kNFVe','CLI_RUN_STARTED','LNLcg','defaultGridProfile','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','ByJrm','metadata','hubVersion','GlbsI','YtQju','ONYmv','QmRrM','epilogue','statusCode','Spawning\x20the\x20grid\x20','debug','ZAeLo','oWuom','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','aElIB','dtWMk','fetchLocalCreds','WVoXv','create-grid-called','lrbTB','vpc','mXLWg','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','alreadyPresent','\x20in\x20existing\x20cluster\x20\x27','Grid\x20can\x20be\x20accessed\x20at:\x20','XqYjX','annotations','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','connectionTimeout','username','\x20are\x20not\x20present\x20in\x20VPC:\x20','pre-spawned-invalid-subnets','GET','wMrlk','length','exit','user','iMLTX','DqOMi','CVsjo','PopMv','Adding\x20Websocket\x20listeners','rvRPu'];a10_0x9995=function(){return _0x44d01b;};return a10_0x9995();}exports[a10_0x2da769(0x27d)]=a10_0x2da769(0x266),exports[a10_0x2da769(0x274)]='Create\x20a\x20new\x20Automation\x20grid.',exports['builder']=function(_0x34c851){const _0xdae901=a10_0x2da769,_0x50ddd2={};_0x50ddd2[_0xdae901(0x2ff)]=_0xdae901(0x2c3),_0x50ddd2['aElIB']=_0xdae901(0x217),_0x50ddd2[_0xdae901(0x2f0)]=_0xdae901(0x2f9),_0x50ddd2[_0xdae901(0x25a)]=_0xdae901(0x307),_0x50ddd2[_0xdae901(0x247)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x50ddd2[_0xdae901(0x222)]=_0xdae901(0x252),_0x50ddd2['uEgbt']=_0xdae901(0x27a),_0x50ddd2[_0xdae901(0x278)]=_0xdae901(0x286);const _0x1011da=_0x50ddd2,_0x26e573={};_0x26e573[_0xdae901(0x2e1)]=_0x1011da[_0xdae901(0x2ff)],_0x26e573['type']=_0x1011da['aElIB'];const _0xeee82e={};_0xeee82e[_0xdae901(0x2e1)]=_0x1011da[_0xdae901(0x2f0)],_0xeee82e[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x3b624b={};_0x3b624b[_0xdae901(0x2e1)]=_0x1011da['jLVbz'],_0x3b624b[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x5599fd={};_0x5599fd[_0xdae901(0x2e1)]=_0x1011da[_0xdae901(0x247)],_0x5599fd[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x1a2fbf={};_0x1a2fbf[_0xdae901(0x2e1)]=_0x1011da['KKcoV'],_0x1a2fbf[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x2b47f2={};_0x2b47f2[_0xdae901(0x2e1)]=_0x1011da[_0xdae901(0x201)],_0x2b47f2[_0xdae901(0x27c)]=_0x1011da[_0xdae901(0x308)];const _0x16998b={};return _0x16998b['grid-name']=_0x26e573,_0x16998b[_0xdae901(0x28f)]=_0xeee82e,_0x16998b['cluster-name']=_0x3b624b,_0x16998b[_0xdae901(0x23c)]=_0x5599fd,_0x16998b[_0xdae901(0x28a)]=_0x1a2fbf,_0x16998b[_0xdae901(0x227)]=_0x2b47f2,_0x34c851[_0xdae901(0x22c)](HELP_HEADER_MESSAGE[_0xdae901(0x21f)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x16998b)[_0xdae901(0x286)](_0x1011da[_0xdae901(0x278)])['argv'];},exports[a10_0x2da769(0x271)]=async function(_0x37087d){const _0x18f372=a10_0x2da769,_0x42e3c7={'JkwVM':_0x18f372(0x2a6),'aWXUL':_0x18f372(0x2c3),'fXIEi':_0x18f372(0x217),'rhAUU':_0x18f372(0x2f9),'wXqhZ':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','FUVHl':_0x18f372(0x242),'lygmJ':_0x18f372(0x252),'yCHzY':'Create\x20a\x20private/public\x20grid.','JaBLz':'help','bKyFr':_0x18f372(0x206),'JEPQV':_0x18f372(0x254),'xfJib':'https','hqetP':_0x18f372(0x20b),'MYqzo':_0x18f372(0x22a),'CjFsZ':function(_0x11739b){return _0x11739b();},'ZNWQz':function(_0x1f96a6,_0x57a262){return _0x1f96a6===_0x57a262;},'ntseD':_0x18f372(0x2f1),'kjlJB':_0x18f372(0x316),'pkhgk':function(_0x2f8583,_0x17f313,_0x21d34e,_0x13b848,_0x2c7002,_0xcc9215,_0x36e172){return _0x2f8583(_0x17f313,_0x21d34e,_0x13b848,_0x2c7002,_0xcc9215,_0x36e172);},'ZAeLo':_0x18f372(0x30c),'hCehi':'init-not-called','PopMv':function(_0x2cd15a,_0xda56ce,_0x4aaed8,_0x25963c,_0x2f3efa,_0x37fcbf,_0x563db9){return _0x2cd15a(_0xda56ce,_0x4aaed8,_0x25963c,_0x2f3efa,_0x37fcbf,_0x563db9);},'rvRPu':function(_0x16eb6b){return _0x16eb6b();},'rgqjB':_0x18f372(0x1fb),'Lmsga':_0x18f372(0x2cd),'WVoXv':_0x18f372(0x1f6),'jyfSO':function(_0x1d474d,_0x2f0467){return _0x1d474d!==_0x2f0467;},'oWuom':_0x18f372(0x27f),'LhMCP':_0x18f372(0x314),'iWDRC':_0x18f372(0x309),'KSdcq':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','QMTCT':function(_0x4a4338,_0x2a38e6,_0x341638,_0x5ec90e,_0x116ca9,_0x141309,_0x2c77ad,_0x459df9){return _0x4a4338(_0x2a38e6,_0x341638,_0x5ec90e,_0x116ca9,_0x141309,_0x2c77ad,_0x459df9);},'IaRbD':_0x18f372(0x2ab),'LNLcg':function(_0x50adad,_0xddbd48){return _0x50adad===_0xddbd48;},'AHNpd':_0x18f372(0x2e8),'dSGej':_0x18f372(0x208),'gztST':_0x18f372(0x2bc),'TwRDg':function(_0x5da0ba,_0x520181){return _0x5da0ba===_0x520181;},'oFwnw':_0x18f372(0x2c7),'NJaOj':function(_0x239be7,_0x48dc2e){return _0x239be7===_0x48dc2e;},'mXLWg':_0x18f372(0x2ad),'RJXHZ':'WKHFL','ABxzY':_0x18f372(0x31b),'QhnwR':function(_0x382aed,_0x278b84){return _0x382aed(_0x278b84);},'lrbTB':function(_0x257821,_0xf6110a){return _0x257821===_0xf6110a;},'LVwrm':_0x18f372(0x268),'ZRtKv':_0x18f372(0x2bb),'iuhyC':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','qStef':function(_0xc737c8,_0x5555cf,_0x223584,_0x4fd568,_0x1a8d36,_0x592288,_0x18dade,_0x9e3cb9){return _0xc737c8(_0x5555cf,_0x223584,_0x4fd568,_0x1a8d36,_0x592288,_0x18dade,_0x9e3cb9);},'tCHhu':'create-grid-checks-null-response','CLeaN':function(_0x38add5,_0x129e51){return _0x38add5===_0x129e51;},'LmnCh':_0x18f372(0x238),'wMrlk':'aKSIf','gTIst':_0x18f372(0x2be),'euJSU':'create-grid-checks-auth-failed','bKPrN':_0x18f372(0x2b7),'ECKEl':_0x18f372(0x1f4),'IzJLa':function(_0x48bb54,_0x53c0cf,_0x4566bd,_0x2f34c5,_0xaf6315,_0x24e83d,_0x5ab5c3,_0x2b1204){return _0x48bb54(_0x53c0cf,_0x4566bd,_0x2f34c5,_0xaf6315,_0x24e83d,_0x5ab5c3,_0x2b1204);},'unsmo':_0x18f372(0x224),'hjdeD':_0x18f372(0x2a9),'EIeZM':function(_0x2403fe,_0x312606){return _0x2403fe!==_0x312606;},'iMLTX':_0x18f372(0x29d),'QmRrM':_0x18f372(0x2a1),'YPFzk':_0x18f372(0x280),'sLYfC':_0x18f372(0x202),'oAOBe':function(_0x10c7a2,_0x3c35f5){return _0x10c7a2===_0x3c35f5;},'mTtew':_0x18f372(0x277),'PixRv':'xZMWt','Kotby':function(_0x53a3bc,_0x320943){return _0x53a3bc===_0x320943;},'ZqjeN':'WmkPB','IiFEo':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','OPGSX':function(_0x2af495,_0x88744e,_0x41cb7d,_0xd11806,_0x58b6f3,_0x44dfc2,_0x453417,_0x2c83ee){return _0x2af495(_0x88744e,_0x41cb7d,_0xd11806,_0x58b6f3,_0x44dfc2,_0x453417,_0x2c83ee);},'aOsUk':'create-grid-checks-invalid-profile','bvCFi':function(_0x143c26,_0x49e284){return _0x143c26===_0x49e284;},'uxRtr':function(_0x177c05,_0x1e6e2b){return _0x177c05!==_0x1e6e2b;},'tMBgE':_0x18f372(0x21a),'UfTpz':'YsNbn','pknjn':_0x18f372(0x221),'mXZzf':'WSDty','XXnAq':function(_0x50842d,_0x45e5fb,_0x171bff,_0x2691e6,_0xb0bb82,_0x4ead81,_0x46720c,_0x26fe4d,_0xcc0944,_0x5a731a,_0x3a1c58,_0x2eab5c){return _0x50842d(_0x45e5fb,_0x171bff,_0x2691e6,_0xb0bb82,_0x4ead81,_0x46720c,_0x26fe4d,_0xcc0944,_0x5a731a,_0x3a1c58,_0x2eab5c);},'ByJrm':'6|5|7|3|0|4|1|8|2','VGVAC':function(_0x7ada25,_0x5d68d7,_0x546d52,_0x5b16fe,_0x4d8c51,_0x233e15){return _0x7ada25(_0x5d68d7,_0x546d52,_0x5b16fe,_0x4d8c51,_0x233e15);},'TBVqm':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','mkfDU':function(_0x3e5370,_0x12f519){return _0x3e5370===_0x12f519;},'oYikZ':function(_0x257b3d,_0x1c7d79,_0x5650db,_0x25d5f7){return _0x257b3d(_0x1c7d79,_0x5650db,_0x25d5f7);},'ooluv':function(_0x3aa164){return _0x3aa164();},'PTKSp':_0x18f372(0x2ef),'CUXCN':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','WQtUo':_0x18f372(0x219),'phjdu':function(_0x3dcfcf,_0x1e88d0){return _0x3dcfcf!=_0x1e88d0;},'oivvq':function(_0x41d0ac,_0x1038e7){return _0x41d0ac!=_0x1038e7;},'FrfNP':function(_0x1a4c1c,_0x16261b){return _0x1a4c1c!==_0x16261b;},'ugmoe':function(_0x39c944,_0x4bd80a){return _0x39c944>_0x4bd80a;},'RToBg':function(_0x45a5b6,_0x202c77){return _0x45a5b6===_0x202c77;},'PzExr':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','UUHMk':function(_0x2a1704,_0x3c6d73,_0x590d1b,_0x519c04,_0x11646b,_0x4c9e11,_0x427a13,_0x35536b){return _0x2a1704(_0x3c6d73,_0x590d1b,_0x519c04,_0x11646b,_0x4c9e11,_0x427a13,_0x35536b);},'BtrBE':_0x18f372(0x2e6),'Gjkyy':_0x18f372(0x251),'JoZJl':_0x18f372(0x2a0),'mTBOC':function(_0x27a491,_0x2d3812){return _0x27a491===_0x2d3812;},'MsVNu':function(_0x1b1192,_0x532a17,_0x7fb8c0,_0x56243b,_0x4e35b1,_0xa8d1aa,_0x16b094,_0xb8aa30){return _0x1b1192(_0x532a17,_0x7fb8c0,_0x56243b,_0x4e35b1,_0xa8d1aa,_0x16b094,_0xb8aa30);},'HGNZN':_0x18f372(0x31a),'hBKjd':_0x18f372(0x2ea),'bYWah':_0x18f372(0x24f),'vYGjS':_0x18f372(0x21c),'NQPdK':function(_0x2d7799,_0x5f3a3d){return _0x2d7799==_0x5f3a3d;},'HyYEX':function(_0x32014e,_0x1d4633){return _0x32014e(_0x1d4633);},'vlbsr':'Creating\x20namespace','lkJuj':_0x18f372(0x294),'gYUGH':'Browserstack','LRhYL':'Namespace\x20Created','DqOMi':_0x18f372(0x263),'tFSxw':_0x18f372(0x226),'UcIne':'Spawning\x20Grid\x20on\x20the\x20Cluster','YtQju':function(_0x1de0bf,_0x2eba79){return _0x1de0bf===_0x2eba79;},'yIXQh':function(_0x47f53c,_0x3d825c,_0x17cb36,_0x27f004,_0x5e84f5,_0x2fa0b1,_0x29ff54,_0x310011,_0xeaf9bc,_0x843d67,_0xd8659){return _0x47f53c(_0x3d825c,_0x17cb36,_0x27f004,_0x5e84f5,_0x2fa0b1,_0x29ff54,_0x310011,_0xeaf9bc,_0x843d67,_0xd8659);},'NZYEA':_0x18f372(0x260),'odJPn':_0x18f372(0x29e),'CJwRR':function(_0x3a8a02,_0x3d5fe3,_0x106420){return _0x3a8a02(_0x3d5fe3,_0x106420);},'QuZCQ':_0x18f372(0x2b5),'wgEiE':_0x18f372(0x240),'UgvrD':_0x18f372(0x264),'gHPdS':function(_0x73d157,_0x1430d3){return _0x73d157(_0x1430d3);},'wOzOz':function(_0x521125,_0x3a4a96){return _0x521125==_0x3a4a96;},'dFNJR':_0x18f372(0x24d),'hHoeA':_0x18f372(0x2b8),'ANlsi':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','nGzOc':_0x18f372(0x243),'kNFVe':_0x18f372(0x256),'ABthL':function(_0x455a36,_0x30a478,_0x353f65,_0x5c28ed,_0x344131,_0x21010d){return _0x455a36(_0x30a478,_0x353f65,_0x5c28ed,_0x344131,_0x21010d);},'GlbsI':'grid-spawning-failed'};let _0x4ff1a1=![],_0x421223,_0x9e13f3,_0x4a6bb7,_0x35bbe6,_0x237481,_0x4af4c5,_0x298f12,_0x376c44,_0x2363e4,_0x1ea753,_0x1bf1f9,_0x55d4cf,_0xc1126a=0x1,_0x2333db=0xe;try{global_registry['requestId']=_0x42e3c7[_0x18f372(0x2d9)](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0x18f372(0x28d)](_0x42e3c7[_0x18f372(0x2d9)](getCredentialsPath))&&(_0x42e3c7['ZNWQz'](_0x42e3c7[_0x18f372(0x21d)],_0x42e3c7[_0x18f372(0x21d)])?(console['error'](_0x42e3c7[_0x18f372(0x20c)]),await _0x42e3c7[_0x18f372(0x26e)](sendInstrumentationEvent,_0x37087d,_0x42e3c7['ZAeLo'],messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x291)],null,_0x37087d),process[_0x18f372(0x31e)](0x1)):(_0x5b6f79[_0x18f372(0x254)](_0x42e3c7[_0x18f372(0x2b6)]),_0x30819c['exit'](0x1)));await _0x42e3c7[_0x18f372(0x1f5)](sendInstrumentationEvent,_0x37087d,_0x42e3c7[_0x18f372(0x305)],messageTypes['INFO'],null,null,_0x37087d);const _0x326126=JSON['parse'](fs['readFileSync'](_0x42e3c7[_0x18f372(0x1f7)](getCredentialsPath)));global_registry['bstackUsername']=_0x326126[_0x18f372(0x26c)][_0x18f372(0x318)],global_registry[_0x18f372(0x212)]=_0x326126[_0x18f372(0x26c)][_0x18f372(0x2c4)];const _0x150b53=WS_ENDPOINT[_0x18f372(0x203)](_0x42e3c7[_0x18f372(0x2d6)],_0x326126[_0x18f372(0x26c)][_0x18f372(0x318)])['replace'](_0x42e3c7[_0x18f372(0x25c)],_0x326126[_0x18f372(0x26c)][_0x18f372(0x2c4)]),_0x1090f9={};_0x1090f9['WebSocket']=ws,_0x1090f9[_0x18f372(0x317)]=0x36ee80,_0x1ea753=new ReconnectingWebSocket(_0x150b53,[],_0x1090f9),logger['debug'](_0x42e3c7[_0x18f372(0x30b)]),webSocketUtils['addListeners'](_0x1ea753,_0x37087d[_0x18f372(0x31f)],_0x37087d[_0x18f372(0x2c4)]);let _0x2ac20e=DEFAULT_GRID_NAME;if(_0x37087d[_0x18f372(0x267)]||_0x37087d[_0x18f372(0x2eb)]||_0x37087d['region']){if(_0x42e3c7['jyfSO'](_0x42e3c7[_0x18f372(0x306)],_0x42e3c7[_0x18f372(0x265)])){!(_0x37087d['clusterName']&&_0x37087d[_0x18f372(0x2eb)]&&_0x37087d['region'])&&(_0x42e3c7[_0x18f372(0x2d4)](_0x42e3c7['iWDRC'],_0x42e3c7[_0x18f372(0x2e2)])?(_0x421223=_0x42e3c7['KSdcq'],await _0x42e3c7['QMTCT'](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7['ZAeLo'],_0x42e3c7[_0x18f372(0x2c0)],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process['exit'](0x1)):_0x4967e2[_0x18f372(0x296)]=!![]);if(![AWS,AZURE,GCP][_0x18f372(0x288)](_0x37087d[_0x18f372(0x2eb)][_0x18f372(0x21b)]())){if(_0x42e3c7[_0x18f372(0x2f7)](_0x42e3c7[_0x18f372(0x1fa)],_0x42e3c7[_0x18f372(0x1fa)]))_0x421223=_0x42e3c7[_0x18f372(0x218)],await _0x42e3c7[_0x18f372(0x24e)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x29c)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1);else throw _0x1b4d87;}_0x37087d['privateGrid']&&_0x42e3c7[_0x18f372(0x211)](_0x37087d[_0x18f372(0x253)][_0x18f372(0x21b)](),_0x42e3c7[_0x18f372(0x223)])&&(_0x42e3c7[_0x18f372(0x214)](_0x42e3c7['mXLWg'],_0x42e3c7[_0x18f372(0x30f)])?global_registry[_0x18f372(0x296)]=!![]:_0x3a5f1d['cloudProvider']={}),_0x4ff1a1=!![],_0x4a6bb7=_0x37087d[_0x18f372(0x267)],_0x9e13f3=_0x37087d[_0x18f372(0x2eb)][_0x18f372(0x21b)](),_0x35bbe6=_0x37087d[_0x18f372(0x28a)];}else{const _0x557e03={};_0x557e03[_0x18f372(0x2e1)]=_0x42e3c7[_0x18f372(0x2d3)],_0x557e03[_0x18f372(0x27c)]=_0x42e3c7['fXIEi'];const _0x26d191={};_0x26d191['description']=_0x42e3c7[_0x18f372(0x2dc)],_0x26d191[_0x18f372(0x27c)]=_0x42e3c7[_0x18f372(0x225)];const _0x1fd032={};_0x1fd032[_0x18f372(0x2e1)]=_0x42e3c7[_0x18f372(0x24c)],_0x1fd032[_0x18f372(0x27c)]=_0x42e3c7['fXIEi'];const _0x323a42={};_0x323a42[_0x18f372(0x2e1)]=_0x42e3c7[_0x18f372(0x2e7)],_0x323a42[_0x18f372(0x27c)]=_0x42e3c7[_0x18f372(0x225)];const _0x17ebef={};_0x17ebef[_0x18f372(0x2e1)]=_0x42e3c7['lygmJ'],_0x17ebef[_0x18f372(0x27c)]=_0x42e3c7[_0x18f372(0x225)];const _0x43e070={};_0x43e070[_0x18f372(0x2e1)]=_0x42e3c7['yCHzY'],_0x43e070[_0x18f372(0x27c)]=_0x42e3c7['fXIEi'];const _0x4ddbee={};return _0x4ddbee[_0x18f372(0x25e)]=_0x557e03,_0x4ddbee[_0x18f372(0x28f)]=_0x26d191,_0x4ddbee[_0x18f372(0x25d)]=_0x1fd032,_0x4ddbee[_0x18f372(0x23c)]=_0x323a42,_0x4ddbee[_0x18f372(0x28a)]=_0x17ebef,_0x4ddbee[_0x18f372(0x227)]=_0x43e070,_0x37fa54[_0x18f372(0x22c)](_0x25fa5c[_0x18f372(0x21f)])[_0x18f372(0x301)](_0x488080)[_0x18f372(0x209)](_0x4ddbee)[_0x18f372(0x286)](_0x42e3c7[_0x18f372(0x2ce)])[_0x18f372(0x2de)];}}_0x37087d[_0x18f372(0x1fe)]&&(_0x42e3c7['LNLcg'](_0x42e3c7['RJXHZ'],_0x42e3c7[_0x18f372(0x2d2)])?_0x2ac20e=_0x37087d['gridName']:_0x533247=_0x42e3c7[_0x18f372(0x237)]);global_registry[_0x18f372(0x1fe)]=_0x2ac20e;const _0x154665={};_0x154665[_0x18f372(0x318)]=_0x326126[_0x18f372(0x26c)][_0x18f372(0x318)],_0x154665[_0x18f372(0x2c4)]=_0x326126[_0x18f372(0x26c)][_0x18f372(0x2c4)];const _0x10819c={};_0x10819c[_0x18f372(0x210)]=_0x42e3c7[_0x18f372(0x213)],_0x10819c[_0x18f372(0x2b2)]=_0x154665;const _0x209fce=_0x10819c,_0x44ee0b=_0x18f372(0x2c5)+AG_API_URL+_0x18f372(0x2a4),_0x4358c2={};_0x4358c2[_0x18f372(0x1fe)]=_0x2ac20e;const _0x221d92={'url':_0x44ee0b,'qs':_0x4358c2,..._0x209fce},_0x9f5b9b=_0x221d92,_0x305db5=await _0x42e3c7['QhnwR'](promisifiedRequest,_0x9f5b9b);if(_0x42e3c7[_0x18f372(0x211)](_0x305db5,null)||_0x42e3c7[_0x18f372(0x30d)](_0x305db5,undefined)){if(_0x42e3c7['jyfSO'](_0x42e3c7['LVwrm'],_0x42e3c7[_0x18f372(0x20f)]))_0x421223=_0x42e3c7[_0x18f372(0x2c6)],await _0x42e3c7[_0x18f372(0x285)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7['tCHhu'],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process['exit'](0x1);else{const _0x5c6b05={};_0x5c6b05['type']=_0x1b8853[_0x18f372(0x299)],_0x5c6b05[_0x18f372(0x287)]=_0x2e1c77,_0xc5c4a3[_0x18f372(0x24a)](_0x3cb9f8,_0x5c6b05,_0x42e3c7['JEPQV'],!![]);}}_0x42e3c7[_0x18f372(0x246)](_0x305db5[_0x18f372(0x302)],0x191)&&(_0x42e3c7['LNLcg'](_0x42e3c7['LmnCh'],_0x42e3c7[_0x18f372(0x31c)])?(_0x276194=_0x12e61e[_0x18f372(0x2d1)],_0x3969af=_0x42e3c7[_0x18f372(0x2ac)]):(_0x421223=_0x42e3c7[_0x18f372(0x292)],await _0x42e3c7[_0x18f372(0x24e)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x239)],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1)));_0x42e3c7['jyfSO'](_0x305db5[_0x18f372(0x302)],0xc8)&&(_0x42e3c7[_0x18f372(0x2d4)](_0x42e3c7[_0x18f372(0x235)],_0x42e3c7[_0x18f372(0x298)])?_0x42f62a=_0x387386[_0x18f372(0x1fe)]:(_0x421223=_0x18f372(0x28e)+JSON[_0x18f372(0x255)](_0x305db5),await _0x42e3c7[_0x18f372(0x245)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes['ERROR'],_0x42e3c7['ZAeLo'],_0x42e3c7[_0x18f372(0x2d7)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1)));const _0x4ddf14=JSON[_0x18f372(0x29a)](_0x305db5[_0x18f372(0x220)]),_0x245143={};_0x245143[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x2f6)],_0x245143['message']=_0x18f372(0x234),webSocketUtils['sendEventToBackend'](_0x1ea753,_0x245143);const _0x5e1e56={};_0x5e1e56[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x5e1e56['message']=_0x42e3c7[_0x18f372(0x26d)],webSocketUtils['sendEventToBackend'](_0x1ea753,_0x5e1e56);_0x4ddf14[_0x18f372(0x311)]&&(_0x42e3c7[_0x18f372(0x2c9)](_0x42e3c7['iMLTX'],_0x42e3c7[_0x18f372(0x320)])?_0x4fdf57['info']('Found\x20VPC:\x20'+_0x4ef534+'\x20'):(_0x421223=_0x42e3c7[_0x18f372(0x300)],await _0x42e3c7[_0x18f372(0x24e)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7['YPFzk'],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1)));const _0x155495=_0x4ddf14[_0x18f372(0x2af)];let _0x3769e9=_0x155495[_0x4ddf14[_0x18f372(0x2f8)]];_0x37087d[_0x18f372(0x2d5)]&&(_0x42e3c7[_0x18f372(0x30d)](_0x42e3c7[_0x18f372(0x25f)],_0x42e3c7[_0x18f372(0x25f)])?_0x3769e9=_0x155495[_0x37087d[_0x18f372(0x2d5)]]:_0x340132[_0x18f372(0x296)]=!![]);if(_0x42e3c7['oAOBe'](_0x4ff1a1,![])){if(_0x42e3c7[_0x18f372(0x211)](_0x42e3c7[_0x18f372(0x22d)],_0x42e3c7[_0x18f372(0x284)])){const _0x5c8bb2=_0x42e3c7[_0x18f372(0x2e0)][_0x18f372(0x281)]('|');let _0x1b2aa0=0x0;while(!![]){switch(_0x5c8bb2[_0x1b2aa0++]){case'0':_0x3d449e[_0x18f372(0x267)]=_0xf60626;continue;case'1':const _0x136460={};_0x136460[_0x18f372(0x27c)]=_0x5c797f['LOG'],_0x136460['message']=_0x467f50,_0x128476[_0x18f372(0x24a)](_0x4e02ef,_0x136460);continue;case'2':_0x2fae54=_0x18f372(0x303)+_0x2cc265+_0x18f372(0x312)+_0x1d5fa2+'\x27';continue;case'3':_0x391b3b[_0x18f372(0x2eb)]=_0x52ef90;continue;case'4':_0x5f356e[_0x18f372(0x2fc)]=_0x48e578[_0x18f372(0x2fc)];continue;case'5':_0x3ccda5[_0x18f372(0x25b)]=_0x1f826b;continue;case'6':_0x3f0e07['browserVersion']=_0x3c8101[_0x18f372(0x290)];continue;case'7':_0x4a08f2[_0x18f372(0x2a3)](_0x2798fa);continue;case'8':const _0x44627d={};_0x44627d[_0x18f372(0x27c)]=_0x5f1419[_0x18f372(0x2f6)],_0x44627d[_0x18f372(0x287)]=_0x18f372(0x234),_0x3734e5['sendEventToBackend'](_0x48b071,_0x44627d);continue;}break;}}else{_0x42e3c7[_0x18f372(0x2ec)](_0x3769e9,undefined)&&(_0x42e3c7[_0x18f372(0x246)](_0x42e3c7[_0x18f372(0x23f)],_0x42e3c7[_0x18f372(0x23f)])?(_0x421223=_0x42e3c7[_0x18f372(0x230)],await _0x42e3c7[_0x18f372(0x283)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x272)],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1)):_0x33f88b=_0x48dbd6[_0x258a1e[_0x18f372(0x2d5)]]);global_registry[_0x18f372(0x2a5)]=_0x3769e9['id'];(_0x42e3c7[_0x18f372(0x2ba)](_0x9e13f3,AZURE)||_0x42e3c7[_0x18f372(0x2cf)](_0x3769e9?.['cloudProvider'],AZURE))&&(_0x42e3c7['uxRtr'](_0x42e3c7[_0x18f372(0x23a)],_0x42e3c7[_0x18f372(0x241)])?(console[_0x18f372(0x254)](_0x42e3c7[_0x18f372(0x2b6)]),process['exit'](0x1)):_0x361051[_0x18f372(0x2a3)](_0x18f372(0x1f8)+_0x3e8c3e[_0x18f372(0x255)](_0x121a23)+'\x20'));_0x421223='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x2ac20e+'\x20using\x20\x27'+_0x3769e9[_0x18f372(0x26a)]+_0x18f372(0x293),logger[_0x18f372(0x2a3)](_0x421223);const _0x583d41={};_0x583d41[_0x18f372(0x27c)]=WS_EVENTS['LOG'],_0x583d41[_0x18f372(0x287)]=_0x421223,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x583d41),_0x9e13f3=_0x3769e9[_0x18f372(0x2eb)],_0x4a6bb7=_0x3769e9['clusterName'],_0x35bbe6=_0x3769e9[_0x18f372(0x28a)],_0x237481=_0x3769e9['concurrency'],_0x4af4c5=_0x3769e9[_0x18f372(0x2b9)],_0x298f12=_0x3769e9[_0x18f372(0x30e)],securityGroups=_0x3769e9[_0x18f372(0x2bd)],subnets=_0x3769e9[_0x18f372(0x2ed)],_0x376c44=_0x3769e9[_0x18f372(0x27e)],_0xc1126a=_0x3769e9[_0x18f372(0x2d8)],_0x2333db=_0x3769e9[_0x18f372(0x204)],_0x1bf1f9=_0x4ddf14[_0x18f372(0x2fc)],_0x55d4cf=_0x4ddf14[_0x18f372(0x290)];if(_0x42e3c7[_0x18f372(0x2c9)](_0x3769e9[_0x18f372(0x253)],undefined)&&_0x3769e9[_0x18f372(0x253)]){if(_0x42e3c7[_0x18f372(0x30d)](_0x42e3c7[_0x18f372(0x258)],_0x42e3c7['mXZzf'])){const _0x4fdf12={};_0x4fdf12[_0x18f372(0x27c)]=_0x19cf1d[_0x18f372(0x299)],_0x4fdf12[_0x18f372(0x287)]=_0x18f372(0x29b)+_0x485754+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0xc270f0[_0x18f372(0x24a)](_0x2adff9,_0x4fdf12,_0x42e3c7[_0x18f372(0x249)]),_0x51181c[_0x18f372(0x2a3)](_0x18f372(0x29b)+_0x428a27+_0x18f372(0x250)),_0x4cb7d3=!![];}else global_registry[_0x18f372(0x296)]=!![];}_0x42e3c7['XXnAq'](updateGlobalRegistryWithConfig,_0x9e13f3,_0x4a6bb7,_0x35bbe6,_0x237481,_0x4af4c5,_0x376c44,_0x3769e9,_0x1bf1f9,_0x55d4cf,_0xc1126a,_0x2333db);}}else{const _0xfadce0=_0x42e3c7[_0x18f372(0x2fa)][_0x18f372(0x281)]('|');let _0x1ea0eb=0x0;while(!![]){switch(_0xfadce0[_0x1ea0eb++]){case'0':global_registry['cloudProvider']=_0x9e13f3;continue;case'1':global_registry[_0x18f372(0x267)]=_0x4a6bb7;continue;case'2':global_registry[_0x18f372(0x290)]=_0x4ddf14['browserVersion'];continue;case'3':const _0x56499f={};_0x56499f[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x56499f[_0x18f372(0x287)]=_0x421223,webSocketUtils['sendEventToBackend'](_0x1ea753,_0x56499f);continue;case'4':global_registry[_0x18f372(0x25b)]=_0x35bbe6;continue;case'5':_0x421223=_0x18f372(0x303)+_0x2ac20e+_0x18f372(0x312)+_0x4a6bb7+'\x27';continue;case'6':const _0x5c3a99={};_0x5c3a99['type']=WS_EVENTS[_0x18f372(0x2f6)],_0x5c3a99[_0x18f372(0x287)]=_0x18f372(0x234),webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x5c3a99);continue;case'7':logger[_0x18f372(0x2a3)](_0x421223);continue;case'8':global_registry[_0x18f372(0x2fc)]=_0x4ddf14[_0x18f372(0x2fc)];continue;}break;}}const _0x4d506c=_0x42e3c7['VGVAC'](getCloudProviderObject,_0x9e13f3,_0x4a6bb7,_0x2ac20e,_0x1ea753,webSocketUtils),_0x301050=_0x326126[_0x18f372(0x2eb)]||{};if(_0x42e3c7['oAOBe'](_0x301050[_0x9e13f3],undefined)){logger['info'](_0x42e3c7[_0x18f372(0x233)]);_0x42e3c7['mkfDU'](_0x326126[_0x18f372(0x2eb)],undefined)&&(_0x326126[_0x18f372(0x2eb)]={});_0x326126[_0x18f372(0x2eb)][_0x9e13f3]={};const _0x327b0b=await _0x42e3c7[_0x18f372(0x2e4)](inputCloudProviderKeys,_0x9e13f3,_0x326126,_0x4d506c);fs['writeFileSync'](_0x42e3c7[_0x18f372(0x289)](getCredentialsPath),JSON['stringify'](_0x327b0b)),logger[_0x18f372(0x304)](_0x42e3c7[_0x18f372(0x200)]);}else{_0x421223=_0x42e3c7['CUXCN'];const _0x4d92b9={};_0x4d92b9[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x4d92b9[_0x18f372(0x287)]=_0x421223,webSocketUtils['sendEventToBackend'](_0x1ea753,_0x4d92b9),logger[_0x18f372(0x2a3)](_0x421223),await _0x4d506c[_0x18f372(0x30a)](_0x301050);}_0x4d506c[_0x18f372(0x2a8)]();let _0x29375d;if(_0x42e3c7[_0x18f372(0x2da)](_0x4ff1a1,![])){_0x421223='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x35bbe6+').';const _0x5aded7={};_0x5aded7[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x5aded7[_0x18f372(0x287)]=_0x421223,webSocketUtils['sendEventToBackend'](_0x1ea753,_0x5aded7),logger[_0x18f372(0x2a3)](_0x421223);const _0xd5e36=await _0x4d506c[_0x18f372(0x2ee)]();if(_0xd5e36){const _0x165342={};_0x165342[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x165342[_0x18f372(0x287)]='Cluster\x20'+_0x4a6bb7+_0x18f372(0x250),webSocketUtils['sendEventToBackend'](_0x1ea753,_0x165342,_0x42e3c7['MYqzo']),logger['info']('Cluster\x20'+_0x4a6bb7+_0x18f372(0x250)),_0x4ff1a1=!![];}else{const _0x1e1fd3={};_0x1e1fd3[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x1e1fd3[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x2dd)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x1e1fd3),logger[_0x18f372(0x2a3)](_0x42e3c7['WQtUo']);const _0x55db81=_0x42e3c7[_0x18f372(0x2c2)](_0x298f12,null)&&_0x42e3c7['EIeZM'](_0x298f12,undefined),_0x2870bd=_0x42e3c7[_0x18f372(0x262)](subnets,null)&&_0x42e3c7[_0x18f372(0x276)](subnets,undefined)&&_0x42e3c7[_0x18f372(0x2c8)](subnets[_0x18f372(0x31d)],0x0);if(_0x55db81){_0x42e3c7[_0x18f372(0x259)](_0x2870bd,![])&&(_0x421223=_0x42e3c7[_0x18f372(0x216)],await _0x42e3c7[_0x18f372(0x229)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes['ERROR'],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7['BtrBE'],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1));const _0x52fb85=await _0x4d506c[_0x18f372(0x2a7)](_0x298f12);_0x42e3c7[_0x18f372(0x2d4)](_0x52fb85,![])?(_0x421223=_0x42e3c7['Gjkyy'],await _0x42e3c7['qStef'](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes['ERROR'],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x232)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1)):logger['info'](_0x18f372(0x273)+_0x298f12+'\x20');const _0x336c80=await _0x4d506c[_0x18f372(0x2b1)](subnets,_0x298f12);_0x42e3c7[_0x18f372(0x29f)](_0x336c80[0x0],![])?(_0x421223=_0x18f372(0x1ff)+_0x336c80[0x1]+_0x18f372(0x319)+_0x298f12+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x42e3c7[_0x18f372(0x2ca)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7['ZAeLo'],_0x42e3c7[_0x18f372(0x248)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1)):logger[_0x18f372(0x2a3)](_0x18f372(0x1f8)+JSON[_0x18f372(0x255)](subnets)+'\x20'),await _0x4d506c['setupNewCluster'](_0x298f12,subnets);}else{const _0xe7d156=_0x42e3c7[_0x18f372(0x1f9)]['split']('|');let _0x204fc3=0x0;while(!![]){switch(_0xe7d156[_0x204fc3++]){case'0':logger[_0x18f372(0x2a3)](_0x42e3c7[_0x18f372(0x236)]);continue;case'1':await _0x4d506c[_0x18f372(0x1fc)]();continue;case'2':logger[_0x18f372(0x2a3)](_0x42e3c7['vYGjS']);continue;case'3':const _0x55eec4={};_0x55eec4[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x55eec4[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x236)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x55eec4);continue;case'4':const _0x15c1e4={};_0x15c1e4[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x15c1e4[_0x18f372(0x287)]=_0x18f372(0x21c),webSocketUtils['sendEventToBackend'](_0x1ea753,_0x15c1e4);continue;}break;}}}}_0x4ff1a1&&_0x42e3c7[_0x18f372(0x2ba)](_0x9e13f3,AZURE)&&(global_registry[_0x18f372(0x21e)]=_0x4ddf14[_0x18f372(0x22e)],await _0x4d506c['updatePreSpawnedCluster'](),await _0x4d506c[_0x18f372(0x2a2)]());const [_0x4fb17a,_0x2a5801,_0x41cde1,_0x42e47b,_0x36fa73,_0x1c98c8]=await _0x42e3c7['QhnwR'](createK8sClient,_0x4d506c);_0x42e3c7[_0x18f372(0x2d4)](_0x4ff1a1,![])&&_0x42e3c7[_0x18f372(0x2b4)](_0x9e13f3,AWS)&&(_0x29375d=await _0x4d506c[_0x18f372(0x279)](_0x4fb17a,_0x37087d));try{_0x2363e4=_0x42e3c7[_0x18f372(0x20e)](kebabCase,_0x2ac20e),logger['info'](_0x42e3c7[_0x18f372(0x2ae)]);const _0x432d46={};_0x432d46['type']=WS_EVENTS[_0x18f372(0x299)],_0x432d46[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x2ae)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x432d46);if(_0x42e3c7[_0x18f372(0x28b)](_0x2363e4,_0x42e3c7[_0x18f372(0x2aa)])){const _0x43ba58={};_0x43ba58['createdBy']=_0x42e3c7[_0x18f372(0x2bf)],_0x43ba58[_0x18f372(0x231)]=_0x42e3c7[_0x18f372(0x2bf)];const _0x1825c1={};_0x1825c1['name']=_0x2363e4,_0x1825c1[_0x18f372(0x315)]=_0x43ba58;const _0x251867={};_0x251867[_0x18f372(0x2fb)]=_0x1825c1;let _0x315e05=_0x251867;await _0x4fb17a[_0x18f372(0x24b)](_0x315e05),logger['info'](_0x42e3c7['LRhYL']);}const _0x19fbdb={};_0x19fbdb['type']=WS_EVENTS[_0x18f372(0x299)],_0x19fbdb[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x1f3)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x19fbdb);const _0x432db9={};_0x432db9[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x432db9[_0x18f372(0x287)]=_0x42e3c7[_0x18f372(0x215)],webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x432db9),logger[_0x18f372(0x2a3)](_0x42e3c7[_0x18f372(0x22b)]);let _0x52ce70={};_0x42e3c7['YtQju'](_0x9e13f3,AZURE)&&(_0x52ce70={'clientId':await _0x4d506c[_0x18f372(0x269)](_0x18f372(0x2f2)+_0x4a6bb7)});await _0x42e3c7[_0x18f372(0x2f4)](addGridComponents,_0x4fb17a,_0x2a5801,_0x41cde1,_0x42e47b,_0x2363e4,_0x4a6bb7,_0x29375d,_0x36fa73,_0x1c98c8,_0x52ce70),_0x421223=_0x42e3c7['NZYEA'],logger[_0x18f372(0x2a3)](_0x421223);const _0x1abeef={};_0x1abeef[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x1abeef[_0x18f372(0x287)]=_0x421223,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x1abeef),_0x421223=_0x42e3c7[_0x18f372(0x23b)],logger[_0x18f372(0x2a3)](_0x421223);const _0x1a7df9={};_0x1a7df9[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x1a7df9[_0x18f372(0x287)]=_0x421223,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x1a7df9),await webSocketUtils[_0x18f372(0x26b)](0xea60);const _0x1c5275=await _0x42e3c7[_0x18f372(0x2e9)](getNamespaceUID,_0x4fb17a,_0x2363e4);let _0x5aa659=global_registry[_0x18f372(0x296)]?_0x42e3c7[_0x18f372(0x2df)]:_0x42e3c7[_0x18f372(0x1fd)],_0x5455ea=await _0x4fb17a[_0x18f372(0x228)](_0x5aa659,_0x42e3c7[_0x18f372(0x28c)]),_0xb2c916=_0x4d506c['getGridHostname'](_0x5455ea)+'/'+_0x2363e4,_0x4abbc6=_0x42e3c7[_0x18f372(0x237)];try{const _0x1029a0={'url':_0x18f372(0x2c5)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x1c5275,..._0x209fce},_0x3eb842=_0x1029a0,_0x53ebf4=await _0x42e3c7[_0x18f372(0x2cc)](promisifiedRequest,_0x3eb842);(_0x42e3c7[_0x18f372(0x295)](_0x53ebf4,null)||_0x42e3c7[_0x18f372(0x295)](_0x53ebf4,undefined))&&(_0x421223=_0x42e3c7[_0x18f372(0x244)],await _0x42e3c7[_0x18f372(0x245)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7['ZAeLo'],_0x42e3c7[_0x18f372(0x2cb)],_0x42e3c7[_0x18f372(0x2f3)]),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1));_0x42e3c7[_0x18f372(0x2ba)](_0x53ebf4[_0x18f372(0x302)],0x191)&&(_0x421223=_0x42e3c7['ANlsi'],await _0x42e3c7['UUHMk'](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x2e5)],_0x42e3c7['JEPQV']),logger[_0x18f372(0x254)](_0x421223),process[_0x18f372(0x31e)](0x1));_0x42e3c7[_0x18f372(0x276)](_0x53ebf4[_0x18f372(0x302)],0xc8)&&(_0x421223=_0x18f372(0x23e)+JSON['stringify'](_0x53ebf4),await _0x42e3c7[_0x18f372(0x229)](reportToGalactusAndSendToEDS,_0x37087d,_0x1ea753,_0x421223,messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x305)],_0x42e3c7[_0x18f372(0x2f5)],_0x42e3c7[_0x18f372(0x2f3)]),logger['error'](_0x421223),process[_0x18f372(0x31e)](0x1));const _0xf2b155=JSON[_0x18f372(0x29a)](_0x53ebf4[_0x18f372(0x220)]);_0xf2b155[_0x18f372(0x2d1)]&&(_0xb2c916=_0xf2b155['route53'],_0x4abbc6=_0x42e3c7[_0x18f372(0x2ac)]),global_registry[_0x18f372(0x296)]&&(_0x4abbc6=_0x42e3c7['bKyFr']);}catch(_0x5243d0){}_0x421223=_0x18f372(0x313)+_0xb2c916+'\x20',logger[_0x18f372(0x2a3)](_0x421223);const _0x27169b={};_0x27169b[_0x18f372(0x27c)]=WS_EVENTS['LOG'],_0x27169b[_0x18f372(0x287)]=_0x421223,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x27169b),_0x421223=_0x18f372(0x310)+_0x4abbc6+'://'+_0xb2c916+_0x18f372(0x2b3),logger[_0x18f372(0x2a3)](_0x421223);const _0x32e4a9={};_0x32e4a9[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x299)],_0x32e4a9[_0x18f372(0x287)]=_0x421223,webSocketUtils['sendEventToBackend'](_0x1ea753,_0x32e4a9);const _0x45063f={};_0x45063f[_0x18f372(0x27c)]=WS_EVENTS[_0x18f372(0x2c1)],_0x45063f[_0x18f372(0x287)]=_0x18f372(0x282)+_0xb2c916,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x45063f),await webSocketUtils[_0x18f372(0x26b)](0x7d0);}catch(_0x5a6bdb){if(_0x42e3c7[_0x18f372(0x2fe)](_0x4ff1a1,![]))try{logger[_0x18f372(0x2a3)]('Deleting\x20the\x20CloudFormation\x20Stacks'),await _0x42e3c7[_0x18f372(0x2db)](removeGridComponents,_0x4fb17a,_0x2a5801,_0x41cde1,_0x42e47b,_0x2363e4),await _0x4d506c[_0x18f372(0x207)](_0x4fb17a,global_registry[_0x18f372(0x25b)]);}catch(_0x440248){throw _0x440248;}throw _0x5a6bdb;}}catch(_0x46eedb){const _0xedc80a='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x46eedb+'\x20\x0a'+JSON[_0x18f372(0x255)](_0x46eedb)+'\x20';if(_0x1ea753){const _0x2be104={};_0x2be104[_0x18f372(0x27c)]=WS_EVENTS['LOG'],_0x2be104[_0x18f372(0x287)]=_0xedc80a,webSocketUtils[_0x18f372(0x24a)](_0x1ea753,_0x2be104,_0x42e3c7[_0x18f372(0x2f3)],!![]);}await webSocketUtils[_0x18f372(0x26b)](0x7d0);const _0x14981e={};_0x14981e['error']=_0xedc80a,await _0x42e3c7['pkhgk'](sendInstrumentationEvent,_0x37087d,_0x42e3c7[_0x18f372(0x305)],messageTypes[_0x18f372(0x20d)],_0x42e3c7[_0x18f372(0x2fd)],_0x14981e,_0x37087d),logger[_0x18f372(0x254)](_0xedc80a);}process['exit'](0x0);};
@@ -1 +1 @@
1
- function a11_0x10b9(_0x139c09,_0x35c1ca){const _0x16b41e=a11_0x16b4();return a11_0x10b9=function(_0x10b9c1,_0x5db2aa){_0x10b9c1=_0x10b9c1-0x1a3;let _0x2d4d6a=_0x16b41e[_0x10b9c1];return _0x2d4d6a;},a11_0x10b9(_0x139c09,_0x35c1ca);}const a11_0x431251=a11_0x10b9;(function(_0x5f38cb,_0xc41401){const _0x4c3da1=a11_0x10b9,_0x2e9720=_0x5f38cb();while(!![]){try{const _0x36dd47=parseInt(_0x4c3da1(0x1af))/0x1+parseInt(_0x4c3da1(0x1ac))/0x2*(-parseInt(_0x4c3da1(0x1ae))/0x3)+-parseInt(_0x4c3da1(0x1b5))/0x4+-parseInt(_0x4c3da1(0x1a6))/0x5*(-parseInt(_0x4c3da1(0x1ad))/0x6)+parseInt(_0x4c3da1(0x1a9))/0x7*(-parseInt(_0x4c3da1(0x1ab))/0x8)+-parseInt(_0x4c3da1(0x1b6))/0x9+parseInt(_0x4c3da1(0x1a8))/0xa;if(_0x36dd47===_0xc41401)break;else _0x2e9720['push'](_0x2e9720['shift']());}catch(_0x29daa3){_0x2e9720['push'](_0x2e9720['shift']());}}}(a11_0x16b4,0x6bbfc));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0x431251(0x1b2));exports['command']=a11_0x431251(0x1a5),exports[a11_0x431251(0x1b1)]='List\x20Grid\x20resources.',exports[a11_0x431251(0x1a7)]=function(_0x16b390){const _0x4a979a=a11_0x431251,_0x420451={};_0x420451[_0x4a979a(0x1b3)]='delete_commands',_0x420451[_0x4a979a(0x1a3)]=_0x4a979a(0x1a4);const _0x290b47=_0x420451;return _0x16b390['usage'](HELP_HEADER_MESSAGE[_0x4a979a(0x1a5)])[_0x4a979a(0x1aa)](HELP_FOOTER_MESSAGE)[_0x4a979a(0x1b7)](_0x290b47[_0x4a979a(0x1b3)])['demandCommand']()[_0x4a979a(0x1b4)]()[_0x4a979a(0x1b0)]()['help'](_0x290b47[_0x4a979a(0x1a3)]);},exports['handler']=function(_0x25cc79){};function a11_0x16b4(){const _0x50dfb1=['4886154WiDSyT','commandDir','oUdQc','help','delete','65uZAIMw','builder','25750310oNBGoi','7oVCYKd','epilogue','3948632XUUyic','4GMutlB','136434PBnbPo','1222911xRyjch','177909nrzzaj','strict','desc','../config/constants','BSKyK','recommendCommands','3021792VzebFB'];a11_0x16b4=function(){return _0x50dfb1;};return a11_0x16b4();}
1
+ const a11_0x1ad9b0=a11_0x1da8;(function(_0x39239d,_0x11361b){const _0xc802a4=a11_0x1da8,_0x3f8e91=_0x39239d();while(!![]){try{const _0x45d57b=parseInt(_0xc802a4(0x185))/0x1+parseInt(_0xc802a4(0x193))/0x2+-parseInt(_0xc802a4(0x186))/0x3+parseInt(_0xc802a4(0x18b))/0x4+-parseInt(_0xc802a4(0x198))/0x5+parseInt(_0xc802a4(0x18f))/0x6*(-parseInt(_0xc802a4(0x18e))/0x7)+parseInt(_0xc802a4(0x190))/0x8;if(_0x45d57b===_0x11361b)break;else _0x3f8e91['push'](_0x3f8e91['shift']());}catch(_0x1cd36c){_0x3f8e91['push'](_0x3f8e91['shift']());}}}(a11_0x3cee,0x5dfbe));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0x1ad9b0(0x19a));function a11_0x1da8(_0x437ade,_0x3c2821){const _0x3cee39=a11_0x3cee();return a11_0x1da8=function(_0x1da81e,_0x24cc34){_0x1da81e=_0x1da81e-0x185;let _0x44c541=_0x3cee39[_0x1da81e];return _0x44c541;},a11_0x1da8(_0x437ade,_0x3c2821);}function a11_0x3cee(){const _0x212aeb=['TDGHk','recommendCommands','usage','List\x20Grid\x20resources.','1339160TVcERd','TjONB','../config/constants','290638AzwkUX','44514iBTWPx','epilogue','builder','command','help','520348uMbCuJ','delete','demandCommand','49rpmiAK','333918lgkWOo','4575616fzrwpS','strict','delete_commands','129044xVfjES'];a11_0x3cee=function(){return _0x212aeb;};return a11_0x3cee();}exports[a11_0x1ad9b0(0x189)]=a11_0x1ad9b0(0x18c),exports['desc']=a11_0x1ad9b0(0x197),exports[a11_0x1ad9b0(0x188)]=function(_0x6316a8){const _0x36466a=a11_0x1ad9b0,_0x46f487={};_0x46f487[_0x36466a(0x194)]=_0x36466a(0x192),_0x46f487[_0x36466a(0x199)]=_0x36466a(0x18a);const _0x281a14=_0x46f487;return _0x6316a8[_0x36466a(0x196)](HELP_HEADER_MESSAGE[_0x36466a(0x18c)])[_0x36466a(0x187)](HELP_FOOTER_MESSAGE)['commandDir'](_0x281a14[_0x36466a(0x194)])[_0x36466a(0x18d)]()[_0x36466a(0x195)]()[_0x36466a(0x191)]()[_0x36466a(0x18a)](_0x281a14['TjONB']);},exports['handler']=function(_0x5fa07f){};
@@ -1 +1 @@
1
- function a12_0x2505(_0x5b02a2,_0x2ca30d){const _0x3a04b3=a12_0x3a04();return a12_0x2505=function(_0x25055a,_0x3983eb){_0x25055a=_0x25055a-0xb8;let _0x5cbc66=_0x3a04b3[_0x25055a];return _0x5cbc66;},a12_0x2505(_0x5b02a2,_0x2ca30d);}function a12_0x3a04(){const _0x47a192=['AhIeG','unauthorised','../../utils/instrumentationUtils','../../utils/utilityMethods','aoLBm','670JinpLl','WwDBZ','fTHts','rfXJo','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','PKGXs','WuQgs','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Succesfully\x20deleted\x20the\x20grid','error','configureIfNotConfigured','ilOxx','../../cloudproviders/utils','onlyGridInCluster','cloudProvider','SfzVM','QRTUH','epilogue','delete-grid-called','Browserstack','handler','hBCEn','url','HbJgf','3810880vRrBfl','help','znarz','parse','command','VFkyH','BvwiT','AxADE','gtkvO','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','delete','description','MGdyx','options','ERROR','../../utils/createk8sClient','type','info','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','region','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','QukDO','debug','clusterName','request','usage','existsSync','QPMnG','jhASD','17469RQeAGX','Emuhu','nXQJP','https://','DJJjs','invalid-input','BYaYw','toLowerCase','username','dyZWM','1992JinXKP','DELETE','builder','message','Failed\x20to\x20delete\x20resources!\x20Error:\x20','fetchLocalCreds','auth','3129bGUpzg','HieAB','1403964Qkgonq','FkFbC','password','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','sqHpi','1938utOXKM','exit','clusterId','grid-id','promisify','ICjuf','ZkGrw','\x22\x20and\x20ID\x20','Delete\x20an\x20Automation\x20grid.','requestId','Pass\x20the\x20ID\x20of\x20the\x20Grid','502677XGXVJG','clusterSpawnedVia','deleteCluster','readFileSync','warn','method','\x22\x20with\x20ID\x20','CwDxu','jYREs','286288HCPihx','radvi','argv','server-error','stack','DzuWA','statusCode','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','21yhQXZC','bVtmA','../../utils/gridComponents','QDjeA','cZCNg','stringify','name','UNhvY','Cluster:\x20','QQprU','gridId','grid','desc','string','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','JGHJC','uuid'];a12_0x3a04=function(){return _0x47a192;};return a12_0x3a04();}const a12_0x1d59df=a12_0x2505;(function(_0x2525b5,_0x561c23){const _0x4b0cbc=a12_0x2505,_0x6dc941=_0x2525b5();while(!![]){try{const _0x290684=parseInt(_0x4b0cbc(0xee))/0x1+parseInt(_0x4b0cbc(0xde))/0x2+parseInt(_0x4b0cbc(0xdc))/0x3*(-parseInt(_0x4b0cbc(0xd5))/0x4)+-parseInt(_0x4b0cbc(0x115))/0x5*(parseInt(_0x4b0cbc(0xe3))/0x6)+-parseInt(_0x4b0cbc(0xff))/0x7*(parseInt(_0x4b0cbc(0xf7))/0x8)+parseInt(_0x4b0cbc(0xcb))/0x9+parseInt(_0x4b0cbc(0x12d))/0xa;if(_0x290684===_0x561c23)break;else _0x6dc941['push'](_0x6dc941['shift']());}catch(_0x31aeed){_0x6dc941['push'](_0x6dc941['shift']());}}}(a12_0x3a04,0xe0082));const fs=require('fs'),util=require('util'),request=require(a12_0x1d59df(0xc6)),{v4:uuidv4}=require(a12_0x1d59df(0x10f)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a12_0x1d59df(0x121)),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x1d59df(0x101)),{sendInstrumentationEvent}=require(a12_0x1d59df(0x112)),{inputConfirmation,inputCloudProviderKeys}=require('../../utils/userInput'),{createK8sClient}=require(a12_0x1d59df(0xbd)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x1d59df(0x113)),promisifiedRequest=util[a12_0x1d59df(0xe7)](request);exports[a12_0x1d59df(0x131)]=a12_0x1d59df(0x10a),exports[a12_0x1d59df(0x10b)]=a12_0x1d59df(0xeb),exports[a12_0x1d59df(0xd7)]=function(_0x2cf6c0){const _0x2efa53=a12_0x1d59df,_0x433a15={};_0x433a15[_0x2efa53(0x103)]=_0x2efa53(0xed),_0x433a15[_0x2efa53(0xcf)]=_0x2efa53(0x10c),_0x433a15[_0x2efa53(0x124)]='help';const _0x4c6df0=_0x433a15,_0x4b7577={};_0x4b7577[_0x2efa53(0xb9)]=_0x4c6df0[_0x2efa53(0x103)],_0x4b7577[_0x2efa53(0xbe)]=_0x4c6df0['DJJjs'];const _0x44dda1={};return _0x44dda1[_0x2efa53(0xe6)]=_0x4b7577,_0x2cf6c0[_0x2efa53(0xc7)](HELP_HEADER_MESSAGE['delete'])[_0x2efa53(0x126)](HELP_FOOTER_MESSAGE)[_0x2efa53(0xbb)](_0x44dda1)[_0x2efa53(0x12e)](_0x4c6df0['SfzVM'])[_0x2efa53(0xf9)];},exports[a12_0x1d59df(0x129)]=async function(_0x2c03b6){const _0x4c60f5=a12_0x1d59df,_0x5e66b3={'dyZWM':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','WwDBZ':_0x4c60f5(0xed),'WuQgs':_0x4c60f5(0x10c),'HieAB':_0x4c60f5(0x12e),'AxADE':function(_0xc0205c){return _0xc0205c();},'hBCEn':function(_0x21b1b9,_0x4749c8){return _0x21b1b9===_0x4749c8;},'rfXJo':'FZKED','HbJgf':'Innog','jhASD':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bVtmA':function(_0x4b91b5,_0x303664,_0x2e1b55,_0x5669dc,_0xc08921,_0x5fe682,_0x1105c9){return _0x4b91b5(_0x303664,_0x2e1b55,_0x5669dc,_0xc08921,_0x5fe682,_0x1105c9);},'Emuhu':_0x4c60f5(0x127),'sqHpi':'init-not-called','ZkGrw':function(_0x50e7ff,_0x1004b1){return _0x50e7ff===_0x1004b1;},'PKGXs':_0x4c60f5(0x120),'CwDxu':function(_0x47cafe,_0x44f396,_0x564542,_0x265d94){return _0x47cafe(_0x44f396,_0x564542,_0x265d94);},'QukDO':_0x4c60f5(0x128),'FkFbC':_0x4c60f5(0xf8),'aoLBm':function(_0x4eb8b3,_0x346a13){return _0x4eb8b3(_0x346a13);},'QQprU':function(_0xd824e8,_0x59b6a7){return _0xd824e8!==_0x59b6a7;},'AhIeG':'iuZxq','JGHJC':_0x4c60f5(0x106),'BYaYw':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','fTHts':function(_0x5827be,_0x4d0b79,_0x40d515,_0x1e6317,_0x65a6e1,_0x4690e6,_0x18bd9d){return _0x5827be(_0x4d0b79,_0x40d515,_0x1e6317,_0x65a6e1,_0x4690e6,_0x18bd9d);},'iRKaB':_0x4c60f5(0xd0),'jYREs':'khUux','WoRpD':'YuumI','ICjuf':'XGhPM','eqEvm':_0x4c60f5(0xe1),'QDjeA':_0x4c60f5(0xfc),'BCHhL':function(_0x345784,_0x30d4d8,_0x4e3aed,_0x32ff1b){return _0x345784(_0x30d4d8,_0x4e3aed,_0x32ff1b);},'BvwiT':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','MGdyx':_0x4c60f5(0x10d),'anuei':function(_0x21a609,_0x2e43a6,_0x4e0a58,_0x4a7594,_0xc215d7,_0x220dfc){return _0x21a609(_0x2e43a6,_0x4e0a58,_0x4a7594,_0xc215d7,_0x220dfc);},'dDexf':_0x4c60f5(0xd6),'znarz':function(_0x15a00f,_0xd401de){return _0x15a00f(_0xd401de);},'gtkvO':function(_0xab42f5,_0x458d99){return _0xab42f5!==_0x458d99;},'rNbtM':function(_0x3baafd,_0x3c88e6,_0x5907c6,_0x5788d0,_0x3f4e0d,_0x2a292e,_0x1ba52){return _0x3baafd(_0x3c88e6,_0x5907c6,_0x5788d0,_0x3f4e0d,_0x2a292e,_0x1ba52);},'nXQJP':_0x4c60f5(0xfa),'VfArz':function(_0x438698,_0x24a20f){return _0x438698===_0x24a20f;},'VFkyH':_0x4c60f5(0x111),'QRTUH':'invalid-grid-id','QPMnG':'unknown-error'};try{global_registry[_0x4c60f5(0xec)]=_0x5e66b3['AxADE'](uuidv4);!fs[_0x4c60f5(0xc8)](_0x5e66b3['AxADE'](getCredentialsPath))&&(_0x5e66b3[_0x4c60f5(0x12a)](_0x5e66b3[_0x4c60f5(0x118)],_0x5e66b3[_0x4c60f5(0x12c)])?_0x2f489a[_0x4c60f5(0xf2)](_0x4c60f5(0x107)+_0x82d214['clusterName']+_0x4c60f5(0xc2)):(console[_0x4c60f5(0x11e)](_0x5e66b3[_0x4c60f5(0xca)]),await _0x5e66b3[_0x4c60f5(0x100)](sendInstrumentationEvent,_0x2c03b6,_0x5e66b3[_0x4c60f5(0xcc)],messageTypes[_0x4c60f5(0xbc)],_0x5e66b3[_0x4c60f5(0xe2)],null,_0x2c03b6),process['exit'](0x1)));_0x5e66b3['bVtmA'](sendInstrumentationEvent,_0x2c03b6,_0x5e66b3[_0x4c60f5(0xcc)],messageTypes['INFO'],null,null,_0x2c03b6);!_0x2c03b6[_0x4c60f5(0x109)]&&(_0x5e66b3[_0x4c60f5(0xe9)](_0x5e66b3[_0x4c60f5(0x11a)],_0x5e66b3['PKGXs'])?(console['error'](_0x5e66b3['dyZWM']),process[_0x4c60f5(0xe4)](0x1)):(_0x263bca[_0x4c60f5(0x11e)](_0x5e66b3[_0x4c60f5(0xd4)]),_0x3fa2f2['exit'](0x1)));const _0xbf8d8c=JSON[_0x4c60f5(0x130)](fs[_0x4c60f5(0xf1)](_0x5e66b3[_0x4c60f5(0x134)](getCredentialsPath))),[_0x5d4576,_0x5628d0]=await _0x5e66b3['CwDxu'](getGridDetails,_0xbf8d8c[_0x4c60f5(0x128)][_0x4c60f5(0xd3)],_0xbf8d8c[_0x4c60f5(0x128)]['password'],_0x2c03b6['gridId']);if(_0x5628d0){const _0x1b0244=_0x5628d0[_0x4c60f5(0xbf)];let _0x3b7bdc='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x1b0244['name']+_0x4c60f5(0xea)+_0x1b0244['id']+_0x4c60f5(0x11c),_0x4646fa;_0x5628d0[_0x4c60f5(0x122)]&&_0x5e66b3['ZkGrw'](_0x5628d0[_0x4c60f5(0xef)],_0x5e66b3[_0x4c60f5(0xc3)])&&(_0x5e66b3['hBCEn'](_0x5e66b3['FkFbC'],_0x5e66b3[_0x4c60f5(0xdf)])?_0x3b7bdc=_0x4c60f5(0x119)+_0x1b0244['name']+_0x4c60f5(0xea)+_0x1b0244['id']+_0x4c60f5(0x136)+_0x1b0244[_0x4c60f5(0xc5)]+_0x4c60f5(0xf4)+_0x1b0244[_0x4c60f5(0xe5)]+_0x4c60f5(0x11c):_0x48293b[_0x4c60f5(0x123)]={});_0x4646fa=await _0x5e66b3[_0x4c60f5(0x114)](inputConfirmation,_0x3b7bdc);if(_0x5e66b3[_0x4c60f5(0xe9)](_0x4646fa,undefined)||_0x5e66b3[_0x4c60f5(0x12a)](_0x4646fa,null)||!(_0x5e66b3['hBCEn'](_0x4646fa[_0x4c60f5(0xd2)](),'y')||_0x5e66b3['hBCEn'](_0x4646fa['toLowerCase'](),'n'))){if(_0x5e66b3[_0x4c60f5(0x108)](_0x5e66b3[_0x4c60f5(0x110)],_0x5e66b3[_0x4c60f5(0x10e)]))console[_0x4c60f5(0x11e)](_0x5e66b3[_0x4c60f5(0xd1)]),await _0x5e66b3[_0x4c60f5(0x117)](sendInstrumentationEvent,_0x2c03b6,_0x5e66b3['Emuhu'],messageTypes[_0x4c60f5(0xbc)],_0x5e66b3['iRKaB'],null,_0x2c03b6),process[_0x4c60f5(0xe4)](0x1);else{const _0xc52fd9={};_0xc52fd9[_0x4c60f5(0xb9)]=_0x5e66b3[_0x4c60f5(0x116)],_0xc52fd9[_0x4c60f5(0xbe)]=_0x5e66b3[_0x4c60f5(0x11b)];const _0x21215e={};return _0x21215e[_0x4c60f5(0xe6)]=_0xc52fd9,_0x333fee[_0x4c60f5(0xc7)](_0x4031ce[_0x4c60f5(0xb8)])[_0x4c60f5(0x126)](_0x4e1485)['options'](_0x21215e)['help'](_0x5e66b3[_0x4c60f5(0xdd)])['argv'];}}_0x5e66b3[_0x4c60f5(0xe9)](_0x4646fa['toLowerCase'](),'n')&&(_0x5e66b3['QQprU'](_0x5e66b3[_0x4c60f5(0xf6)],_0x5e66b3['WoRpD'])?process['exit'](0x0):_0x305747[_0x4c60f5(0xe4)](0x0));global_registry['clusterRegion']=_0x1b0244['region'];const _0x2aa606=_0x1b0244[_0x4c60f5(0x123)],_0x1cfec5=_0x5e66b3[_0x4c60f5(0xf5)](getCloudProviderObject,_0x2aa606,_0x1b0244[_0x4c60f5(0xc5)],_0x1b0244[_0x4c60f5(0x105)]),_0x2d8a3b=_0xbf8d8c[_0x4c60f5(0x123)];if(_0x5e66b3[_0x4c60f5(0xe9)](_0x2d8a3b[_0x2aa606],undefined)){if(_0x5e66b3[_0x4c60f5(0x12a)](_0x5e66b3[_0x4c60f5(0xe8)],_0x5e66b3[_0x4c60f5(0xe8)])){logger[_0x4c60f5(0xbf)](_0x5e66b3['eqEvm']);_0x5e66b3['ZkGrw'](_0xbf8d8c[_0x4c60f5(0x123)],undefined)&&(_0x5e66b3[_0x4c60f5(0x108)](_0x5e66b3[_0x4c60f5(0x102)],_0x5e66b3[_0x4c60f5(0x102)])?_0x124bda=_0x4c60f5(0x119)+_0x145d49[_0x4c60f5(0x105)]+_0x4c60f5(0xea)+_0xa8c215['id']+_0x4c60f5(0x136)+_0xd63ca8['clusterName']+_0x4c60f5(0xf4)+_0x2654de['clusterId']+_0x4c60f5(0x11c):_0xbf8d8c[_0x4c60f5(0x123)]={});_0xbf8d8c[_0x4c60f5(0x123)][_0x2aa606]={};const _0x5aacfd=await _0x5e66b3['BCHhL'](inputCloudProviderKeys,_0x2aa606,_0xbf8d8c,_0x1cfec5);fs['writeFileSync'](_0x5e66b3[_0x4c60f5(0x134)](getCredentialsPath),JSON['stringify'](_0x5aacfd)),logger[_0x4c60f5(0xc4)](_0x5e66b3[_0x4c60f5(0x133)]);}else _0x1ab091[_0x4c60f5(0xbf)]('Succesfully\x20deleted\x20the\x20grid'),_0x3ad27c[_0x4c60f5(0xe4)](0x0);}else logger[_0x4c60f5(0xbf)](_0x5e66b3[_0x4c60f5(0xba)]),await _0x1cfec5[_0x4c60f5(0xda)](_0x2d8a3b);_0x1cfec5[_0x4c60f5(0x11f)]();const _0x169ecb=_0x5e66b3['aoLBm'](kebabCase,_0x1b0244[_0x4c60f5(0x105)]),[_0x14818d,_0x57f494,_0x235472,_0x3285b3,_0x2229a6,_0x11ce05]=await _0x5e66b3[_0x4c60f5(0x114)](createK8sClient,_0x1cfec5);await _0x5e66b3['anuei'](removeGridComponents,_0x14818d,_0x57f494,_0x235472,_0x3285b3,_0x169ecb);if(_0x5628d0[_0x4c60f5(0x122)]){const _0xe867d5=await _0x1cfec5['isBrowserstackCluster']();_0xe867d5?await _0x1cfec5[_0x4c60f5(0xf0)](_0x14818d,_0x1b0244[_0x4c60f5(0xc1)]):logger[_0x4c60f5(0xf2)](_0x4c60f5(0x107)+_0x1b0244[_0x4c60f5(0xc5)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}const _0x1477d4=_0x4c60f5(0xce)+AG_API_URL+'/packages/cli/grid/'+_0x2c03b6[_0x4c60f5(0x109)],_0x3c0e05={};_0x3c0e05[_0x4c60f5(0xd3)]=_0xbf8d8c['Browserstack']['username'],_0x3c0e05[_0x4c60f5(0xe0)]=_0xbf8d8c[_0x4c60f5(0x128)][_0x4c60f5(0xe0)];const _0x5b9c26={};_0x5b9c26[_0x4c60f5(0x12b)]=_0x1477d4,_0x5b9c26[_0x4c60f5(0xf3)]=_0x5e66b3['dDexf'],_0x5b9c26[_0x4c60f5(0xdb)]=_0x3c0e05;const _0x3aa11f=_0x5b9c26,_0x2bb539=await _0x5e66b3[_0x4c60f5(0x12f)](promisifiedRequest,_0x3aa11f);_0x5e66b3[_0x4c60f5(0x108)](_0x2bb539,null)&&_0x5e66b3[_0x4c60f5(0x135)](_0x2bb539,undefined)&&_0x5e66b3[_0x4c60f5(0x12a)](_0x2bb539['statusCode'],0xc8)&&(logger[_0x4c60f5(0xbf)](_0x4c60f5(0x11d)),process[_0x4c60f5(0xe4)](0x0)),logger[_0x4c60f5(0x11e)](_0x4c60f5(0xfe)+JSON[_0x4c60f5(0x104)](_0x2bb539)),await _0x5e66b3['rNbtM'](sendInstrumentationEvent,_0x2c03b6,_0x5e66b3['Emuhu'],messageTypes[_0x4c60f5(0xbc)],_0x5e66b3[_0x4c60f5(0xcd)],_0x5d4576,_0x2c03b6),process[_0x4c60f5(0xe4)](0x1);}_0x5e66b3['VfArz'](_0x5d4576[_0x4c60f5(0xfd)],0x191)&&(logger[_0x4c60f5(0x11e)](_0x4c60f5(0xc0)),await _0x5e66b3[_0x4c60f5(0x117)](sendInstrumentationEvent,_0x2c03b6,_0x5e66b3[_0x4c60f5(0xcc)],messageTypes[_0x4c60f5(0xbc)],_0x5e66b3[_0x4c60f5(0x132)],null,_0x2c03b6),process['exit'](0x1)),_0x5e66b3[_0x4c60f5(0xe9)](_0x5d4576[_0x4c60f5(0xfd)],0x190)&&(logger[_0x4c60f5(0x11e)](JSON[_0x4c60f5(0x130)](_0x5d4576['body'])[_0x4c60f5(0xd8)]),await _0x5e66b3[_0x4c60f5(0x117)](sendInstrumentationEvent,_0x2c03b6,_0x5e66b3[_0x4c60f5(0xcc)],messageTypes['ERROR'],_0x5e66b3[_0x4c60f5(0x125)],null,_0x2c03b6),process[_0x4c60f5(0xe4)](0x1)),logger[_0x4c60f5(0x11e)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4c60f5(0x104)](_0x5d4576)),await _0x5e66b3[_0x4c60f5(0x100)](sendInstrumentationEvent,_0x2c03b6,_0x5e66b3['Emuhu'],messageTypes['ERROR'],_0x5e66b3[_0x4c60f5(0xcd)],_0x5d4576,_0x2c03b6),process[_0x4c60f5(0xe4)](0x1);}catch(_0x3208e9){logger[_0x4c60f5(0x11e)](_0x4c60f5(0xd9)+_0x3208e9[_0x4c60f5(0xfb)]),await _0x5e66b3[_0x4c60f5(0x117)](sendInstrumentationEvent,_0x2c03b6,_0x5e66b3[_0x4c60f5(0xcc)],messageTypes[_0x4c60f5(0xbc)],_0x5e66b3[_0x4c60f5(0xc9)],_0x3208e9,_0x2c03b6),process[_0x4c60f5(0xe4)](0x1);}};
1
+ function a12_0x104f(_0x40983d,_0x27e1fd){const _0xdfb807=a12_0xdfb8();return a12_0x104f=function(_0x104fde,_0x507289){_0x104fde=_0x104fde-0x1c4;let _0x20b5e0=_0xdfb807[_0x104fde];return _0x20b5e0;},a12_0x104f(_0x40983d,_0x27e1fd);}const a12_0x1ffe94=a12_0x104f;(function(_0x218c38,_0x583946){const _0x28afd5=a12_0x104f,_0x4f4ded=_0x218c38();while(!![]){try{const _0x1adbbd=-parseInt(_0x28afd5(0x24f))/0x1*(parseInt(_0x28afd5(0x21d))/0x2)+parseInt(_0x28afd5(0x1fe))/0x3+-parseInt(_0x28afd5(0x1da))/0x4+-parseInt(_0x28afd5(0x245))/0x5+parseInt(_0x28afd5(0x247))/0x6+-parseInt(_0x28afd5(0x1e1))/0x7+-parseInt(_0x28afd5(0x1e5))/0x8*(-parseInt(_0x28afd5(0x250))/0x9);if(_0x1adbbd===_0x583946)break;else _0x4f4ded['push'](_0x4f4ded['shift']());}catch(_0x442a0e){_0x4f4ded['push'](_0x4f4ded['shift']());}}}(a12_0xdfb8,0xa8121));const fs=require('fs'),util=require(a12_0x1ffe94(0x226)),request=require(a12_0x1ffe94(0x1ff)),{v4:uuidv4}=require('uuid'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x1ffe94(0x206)),{logger}=require(a12_0x1ffe94(0x21c)),{getCloudProviderObject}=require(a12_0x1ffe94(0x1d2)),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x1ffe94(0x244)),{sendInstrumentationEvent}=require(a12_0x1ffe94(0x1f8)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x1ffe94(0x1f3)),{createK8sClient}=require(a12_0x1ffe94(0x1f0)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x1ffe94(0x23d)),promisifiedRequest=util[a12_0x1ffe94(0x1d8)](request);exports[a12_0x1ffe94(0x1f9)]=a12_0x1ffe94(0x241),exports['desc']=a12_0x1ffe94(0x1df),exports[a12_0x1ffe94(0x233)]=function(_0x5576b6){const _0x373ebe=a12_0x1ffe94,_0x3b402b={};_0x3b402b[_0x373ebe(0x207)]=_0x373ebe(0x202),_0x3b402b[_0x373ebe(0x1ed)]='string',_0x3b402b[_0x373ebe(0x24b)]=_0x373ebe(0x1e6);const _0x1aee7c=_0x3b402b,_0x4d5d76={};_0x4d5d76[_0x373ebe(0x1cc)]=_0x1aee7c[_0x373ebe(0x207)],_0x4d5d76[_0x373ebe(0x216)]=_0x1aee7c[_0x373ebe(0x1ed)];const _0x5764cf={};return _0x5764cf[_0x373ebe(0x23f)]=_0x4d5d76,_0x5576b6[_0x373ebe(0x1c7)](HELP_HEADER_MESSAGE[_0x373ebe(0x20b)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x373ebe(0x1dc)](_0x5764cf)[_0x373ebe(0x1e6)](_0x1aee7c['igxLH'])[_0x373ebe(0x1e9)];},exports[a12_0x1ffe94(0x20f)]=async function(_0x39fee5){const _0x5ac9a3=a12_0x1ffe94,_0x5827e8={'HHRzf':_0x5ac9a3(0x202),'SmgVC':'string','VRswv':_0x5ac9a3(0x1e6),'myjul':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','hOBJH':function(_0x71b8a){return _0x71b8a();},'GHdYt':function(_0x457119,_0x128613){return _0x457119!==_0x128613;},'VdTuC':_0x5ac9a3(0x24c),'IvzLx':_0x5ac9a3(0x222),'uInUx':_0x5ac9a3(0x1e8),'nxKtX':function(_0x86ec77,_0x2db408,_0x5e6eac,_0x35445a,_0x19cd46,_0x7c25f2,_0x3c2be4){return _0x86ec77(_0x2db408,_0x5e6eac,_0x35445a,_0x19cd46,_0x7c25f2,_0x3c2be4);},'wqsbK':'delete-grid-called','fpsIp':'init-not-called','HRLIR':function(_0x3baa1a,_0x278049,_0x494f0b,_0x1a93eb,_0x34fe7e,_0x3ecd56,_0x1522cb){return _0x3baa1a(_0x278049,_0x494f0b,_0x1a93eb,_0x34fe7e,_0x3ecd56,_0x1522cb);},'cDein':function(_0x498b87,_0x1b6dfc){return _0x498b87===_0x1b6dfc;},'nTKJM':'cnkDp','RdLlJ':'fllFV','WKDsR':function(_0x3dedf3){return _0x3dedf3();},'FSgKZ':function(_0x29d69a,_0x5259a2,_0x3f17ef,_0x1181f7){return _0x29d69a(_0x5259a2,_0x3f17ef,_0x1181f7);},'pzlTF':'Browserstack','yCBdD':_0x5ac9a3(0x201),'zzZma':function(_0x11a1f2,_0xdbc8d2){return _0x11a1f2(_0xdbc8d2);},'QphRk':function(_0xa3af33,_0x13605d){return _0xa3af33===_0x13605d;},'qswNq':function(_0xc10e86,_0x2d121f){return _0xc10e86===_0x2d121f;},'VjtWu':function(_0xb8b8e8,_0x567937){return _0xb8b8e8===_0x567937;},'ynwRq':function(_0x10d2d6,_0x4bd6a8){return _0x10d2d6===_0x4bd6a8;},'QijuP':_0x5ac9a3(0x1f2),'YixYZ':_0x5ac9a3(0x230),'vDzyc':_0x5ac9a3(0x1e3),'Pmdop':function(_0x4068c0,_0x18bb6e,_0x272173,_0x58c320,_0x278da5,_0x3e77ac,_0x18c97c){return _0x4068c0(_0x18bb6e,_0x272173,_0x58c320,_0x278da5,_0x3e77ac,_0x18c97c);},'NOWkX':_0x5ac9a3(0x20c),'jjhtv':_0x5ac9a3(0x21b),'cUpVz':function(_0x40758c,_0x41ecb2){return _0x40758c!==_0x41ecb2;},'KPohX':_0x5ac9a3(0x220),'Herak':'pfQVb','qRjDv':_0x5ac9a3(0x210),'XOwhS':_0x5ac9a3(0x1fc),'cLjXn':_0x5ac9a3(0x1f5),'YRraz':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','QXxrX':_0x5ac9a3(0x24e),'ScSCe':function(_0x648240,_0x3aef4e){return _0x648240(_0x3aef4e);},'qdesi':function(_0x2e7f61,_0x198ee3,_0x325e3b,_0x3dc370,_0x422afd,_0x3eeb3d){return _0x2e7f61(_0x198ee3,_0x325e3b,_0x3dc370,_0x422afd,_0x3eeb3d);},'PcstK':_0x5ac9a3(0x242),'XpiCT':'server-error','BlzpY':function(_0x401b15,_0x12a221){return _0x401b15===_0x12a221;},'ALXHJ':function(_0x2afa0d,_0x46633a,_0x5d6196,_0x5f544f,_0x8ff9cd,_0x4beb77,_0x617e12){return _0x2afa0d(_0x46633a,_0x5d6196,_0x5f544f,_0x8ff9cd,_0x4beb77,_0x617e12);},'rnsFO':_0x5ac9a3(0x246),'kCgHR':function(_0x36c63e,_0x1851f2){return _0x36c63e===_0x1851f2;},'MtyKJ':function(_0x2ddf00,_0x3754ae,_0x3c8de7,_0x5eb121,_0x33ca6e,_0x42eaed,_0x2e2699){return _0x2ddf00(_0x3754ae,_0x3c8de7,_0x5eb121,_0x33ca6e,_0x42eaed,_0x2e2699);},'JxMfq':_0x5ac9a3(0x228),'jmIEl':function(_0x5d4a08,_0x4653be,_0x1784e8,_0x3caa7e,_0x4d3a03,_0x4155fd,_0xd41d66){return _0x5d4a08(_0x4653be,_0x1784e8,_0x3caa7e,_0x4d3a03,_0x4155fd,_0xd41d66);},'seoCQ':function(_0x165699,_0x4ccb39,_0x35591b,_0x207a6d,_0x36fa9f,_0x4f1aa4,_0x117e51){return _0x165699(_0x4ccb39,_0x35591b,_0x207a6d,_0x36fa9f,_0x4f1aa4,_0x117e51);},'ATdfT':'unknown-error'};try{global_registry[_0x5ac9a3(0x1e2)]=_0x5827e8[_0x5ac9a3(0x20d)](uuidv4);!fs[_0x5ac9a3(0x1d0)](_0x5827e8['hOBJH'](getCredentialsPath))&&(_0x5827e8[_0x5ac9a3(0x224)](_0x5827e8[_0x5ac9a3(0x1ec)],_0x5827e8['IvzLx'])?(console[_0x5ac9a3(0x221)](_0x5827e8[_0x5ac9a3(0x24d)]),await _0x5827e8[_0x5ac9a3(0x21a)](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8[_0x5ac9a3(0x1f4)],null,_0x39fee5),process['exit'](0x1)):_0x568f2c=_0x5ac9a3(0x203)+_0x19d1cb['name']+'\x22\x20and\x20ID\x20'+_0x48f78d['id']+_0x5ac9a3(0x1c8)+_0xffa356[_0x5ac9a3(0x200)]+_0x5ac9a3(0x22b)+_0x579b41[_0x5ac9a3(0x1db)]+_0x5ac9a3(0x22c));_0x5827e8[_0x5ac9a3(0x1cb)](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1d1)],null,null,_0x39fee5);if(!_0x39fee5[_0x5ac9a3(0x1f7)]){if(_0x5827e8[_0x5ac9a3(0x239)](_0x5827e8[_0x5ac9a3(0x251)],_0x5827e8[_0x5ac9a3(0x232)])){const _0x33b05f={};_0x33b05f[_0x5ac9a3(0x1cc)]=_0x5827e8[_0x5ac9a3(0x22f)],_0x33b05f['type']=_0x5827e8[_0x5ac9a3(0x238)];const _0x554538={};return _0x554538[_0x5ac9a3(0x23f)]=_0x33b05f,_0x202727['usage'](_0x251f6d[_0x5ac9a3(0x20b)])[_0x5ac9a3(0x204)](_0x37a5b5)['options'](_0x554538)[_0x5ac9a3(0x1e6)](_0x5827e8[_0x5ac9a3(0x1eb)])[_0x5ac9a3(0x1e9)];}else console[_0x5ac9a3(0x221)](_0x5827e8[_0x5ac9a3(0x209)]),process[_0x5ac9a3(0x214)](0x1);}const _0x412fdb=JSON[_0x5ac9a3(0x1f6)](fs[_0x5ac9a3(0x1ce)](_0x5827e8['WKDsR'](getCredentialsPath))),[_0x408363,_0x27722d]=await _0x5827e8[_0x5ac9a3(0x1ee)](getGridDetails,_0x412fdb[_0x5ac9a3(0x1d3)]['username'],_0x412fdb[_0x5ac9a3(0x1d3)][_0x5ac9a3(0x1e0)],_0x39fee5[_0x5ac9a3(0x1f7)]);if(_0x27722d){const _0x30a118=_0x27722d[_0x5ac9a3(0x212)];let _0x493883=_0x5ac9a3(0x203)+_0x30a118[_0x5ac9a3(0x231)]+_0x5ac9a3(0x1c6)+_0x30a118['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x860cec;_0x27722d[_0x5ac9a3(0x1cf)]&&_0x5827e8[_0x5ac9a3(0x239)](_0x27722d['clusterSpawnedVia'],_0x5827e8[_0x5ac9a3(0x1fb)])&&(_0x5827e8[_0x5ac9a3(0x239)](_0x5827e8[_0x5ac9a3(0x1d4)],_0x5827e8[_0x5ac9a3(0x1d4)])?_0x493883=_0x5ac9a3(0x203)+_0x30a118[_0x5ac9a3(0x231)]+_0x5ac9a3(0x1c6)+_0x30a118['id']+_0x5ac9a3(0x1c8)+_0x30a118['clusterName']+_0x5ac9a3(0x22b)+_0x30a118[_0x5ac9a3(0x1db)]+_0x5ac9a3(0x22c):_0x13621d[_0x5ac9a3(0x1fa)]={});_0x860cec=await _0x5827e8['zzZma'](inputConfirmation,_0x493883);(_0x5827e8[_0x5ac9a3(0x239)](_0x860cec,undefined)||_0x5827e8[_0x5ac9a3(0x225)](_0x860cec,null)||!(_0x5827e8[_0x5ac9a3(0x205)](_0x860cec[_0x5ac9a3(0x23c)](),'y')||_0x5827e8['VjtWu'](_0x860cec[_0x5ac9a3(0x23c)](),'n')))&&(_0x5827e8[_0x5ac9a3(0x211)](_0x5827e8[_0x5ac9a3(0x22e)],_0x5827e8['YixYZ'])?(_0x193bf8[_0x5ac9a3(0x221)](_0x5827e8[_0x5ac9a3(0x209)]),_0x4b8fd2[_0x5ac9a3(0x214)](0x1)):(console[_0x5ac9a3(0x221)](_0x5827e8['vDzyc']),await _0x5827e8[_0x5ac9a3(0x1c5)](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8['NOWkX'],null,_0x39fee5),process[_0x5ac9a3(0x214)](0x1)));_0x5827e8[_0x5ac9a3(0x225)](_0x860cec[_0x5ac9a3(0x23c)](),'n')&&(_0x5827e8[_0x5ac9a3(0x239)](_0x5827e8[_0x5ac9a3(0x23b)],_0x5827e8[_0x5ac9a3(0x23b)])?process[_0x5ac9a3(0x214)](0x0):_0x3cefe9[_0x5ac9a3(0x1c4)]('Cluster:\x20'+_0x29ac6b[_0x5ac9a3(0x200)]+_0x5ac9a3(0x20a)));global_registry[_0x5ac9a3(0x1c9)]=_0x30a118[_0x5ac9a3(0x1d5)];const _0x51dc44=_0x30a118['cloudProvider'],_0x3d9128=_0x5827e8['FSgKZ'](getCloudProviderObject,_0x51dc44,_0x30a118['clusterName'],_0x30a118[_0x5ac9a3(0x231)]),_0x3f7a6c=_0x412fdb[_0x5ac9a3(0x1fa)];if(_0x5827e8['QphRk'](_0x3f7a6c[_0x51dc44],undefined)){if(_0x5827e8[_0x5ac9a3(0x218)](_0x5827e8[_0x5ac9a3(0x213)],_0x5827e8[_0x5ac9a3(0x237)])){logger['info'](_0x5827e8[_0x5ac9a3(0x240)]);_0x5827e8[_0x5ac9a3(0x239)](_0x412fdb[_0x5ac9a3(0x1fa)],undefined)&&(_0x5827e8[_0x5ac9a3(0x224)](_0x5827e8[_0x5ac9a3(0x1d6)],_0x5827e8[_0x5ac9a3(0x1e7)])?_0x412fdb[_0x5ac9a3(0x1fa)]={}:_0x4446b6[_0x5ac9a3(0x214)](0x0));_0x412fdb[_0x5ac9a3(0x1fa)][_0x51dc44]={};const _0x4ceef0=await _0x5827e8[_0x5ac9a3(0x1ee)](inputCloudProviderKeys,_0x51dc44,_0x412fdb,_0x3d9128);fs[_0x5ac9a3(0x229)](_0x5827e8[_0x5ac9a3(0x23a)](getCredentialsPath),JSON[_0x5ac9a3(0x1dd)](_0x4ceef0)),logger['debug'](_0x5827e8[_0x5ac9a3(0x1cd)]);}else _0x48c46b[_0x5ac9a3(0x212)](_0x5ac9a3(0x21e)),_0x185b61[_0x5ac9a3(0x214)](0x0);}else logger[_0x5ac9a3(0x212)](_0x5827e8['QXxrX']),await _0x3d9128['fetchLocalCreds'](_0x3f7a6c);_0x3d9128[_0x5ac9a3(0x1d7)]();const _0x33ff5f=_0x5827e8[_0x5ac9a3(0x1d9)](kebabCase,_0x30a118[_0x5ac9a3(0x231)]),[_0x1a31ab,_0x46943b,_0x2b67e9,_0x77c032,_0xa09b94,_0x40dff9]=await _0x5827e8[_0x5ac9a3(0x248)](createK8sClient,_0x3d9128);await _0x5827e8['qdesi'](removeGridComponents,_0x1a31ab,_0x46943b,_0x2b67e9,_0x77c032,_0x33ff5f);if(_0x27722d[_0x5ac9a3(0x1cf)]){const _0x474ac0=await _0x3d9128[_0x5ac9a3(0x249)]();_0x474ac0?await _0x3d9128[_0x5ac9a3(0x20e)](_0x1a31ab,_0x30a118[_0x5ac9a3(0x1d5)]):logger[_0x5ac9a3(0x1c4)](_0x5ac9a3(0x1ef)+_0x30a118['clusterName']+_0x5ac9a3(0x20a));}const _0x3086ac=_0x5ac9a3(0x217)+AG_API_URL+_0x5ac9a3(0x24a)+_0x39fee5[_0x5ac9a3(0x1f7)],_0x5178f5={};_0x5178f5[_0x5ac9a3(0x1de)]=_0x412fdb[_0x5ac9a3(0x1d3)][_0x5ac9a3(0x1de)],_0x5178f5[_0x5ac9a3(0x1e0)]=_0x412fdb[_0x5ac9a3(0x1d3)][_0x5ac9a3(0x1e0)];const _0x35b45f={};_0x35b45f[_0x5ac9a3(0x22a)]=_0x3086ac,_0x35b45f[_0x5ac9a3(0x236)]=_0x5827e8['PcstK'],_0x35b45f[_0x5ac9a3(0x208)]=_0x5178f5;const _0x4503b1=_0x35b45f,_0x5e9417=await _0x5827e8[_0x5ac9a3(0x1d9)](promisifiedRequest,_0x4503b1);_0x5827e8[_0x5ac9a3(0x218)](_0x5e9417,null)&&_0x5827e8[_0x5ac9a3(0x224)](_0x5e9417,undefined)&&_0x5827e8[_0x5ac9a3(0x239)](_0x5e9417[_0x5ac9a3(0x21f)],0xc8)&&(logger[_0x5ac9a3(0x212)](_0x5ac9a3(0x21e)),process['exit'](0x0)),logger[_0x5ac9a3(0x221)](_0x5ac9a3(0x223)+JSON[_0x5ac9a3(0x1dd)](_0x5e9417)),await _0x5827e8[_0x5ac9a3(0x1cb)](sendInstrumentationEvent,_0x39fee5,_0x5827e8['wqsbK'],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8[_0x5ac9a3(0x227)],_0x408363,_0x39fee5),process[_0x5ac9a3(0x214)](0x1);}_0x5827e8[_0x5ac9a3(0x1ea)](_0x408363[_0x5ac9a3(0x21f)],0x191)&&(logger[_0x5ac9a3(0x221)](_0x5ac9a3(0x234)),await _0x5827e8[_0x5ac9a3(0x219)](sendInstrumentationEvent,_0x39fee5,_0x5827e8['wqsbK'],messageTypes['ERROR'],_0x5827e8[_0x5ac9a3(0x22d)],null,_0x39fee5),process['exit'](0x1)),_0x5827e8['kCgHR'](_0x408363[_0x5ac9a3(0x21f)],0x190)&&(logger['error'](JSON[_0x5ac9a3(0x1f6)](_0x408363[_0x5ac9a3(0x1ca)])['message']),await _0x5827e8[_0x5ac9a3(0x1fd)](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8[_0x5ac9a3(0x23e)],null,_0x39fee5),process[_0x5ac9a3(0x214)](0x1)),logger['error'](_0x5ac9a3(0x215)+JSON[_0x5ac9a3(0x1dd)](_0x408363)),await _0x5827e8[_0x5ac9a3(0x1f1)](sendInstrumentationEvent,_0x39fee5,_0x5827e8['wqsbK'],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8['XpiCT'],_0x408363,_0x39fee5),process[_0x5ac9a3(0x214)](0x1);}catch(_0xc75ba1){logger[_0x5ac9a3(0x221)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0xc75ba1[_0x5ac9a3(0x235)]),await _0x5827e8['seoCQ'](sendInstrumentationEvent,_0x39fee5,_0x5827e8[_0x5ac9a3(0x243)],messageTypes[_0x5ac9a3(0x1e4)],_0x5827e8['ATdfT'],_0xc75ba1,_0x39fee5),process[_0x5ac9a3(0x214)](0x1);}};function a12_0xdfb8(){const _0x2dbedc=['options','stringify','username','Delete\x20an\x20Automation\x20grid.','password','8722756piHfBg','requestId','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','ERROR','765976upeIhM','help','cLjXn','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','argv','BlzpY','VRswv','VdTuC','jDIqI','FSgKZ','Cluster:\x20','../../utils/createk8sClient','jmIEl','CFVrj','../../utils/userInput','fpsIp','MFgFW','parse','gridId','../../utils/instrumentationUtils','command','cloudProvider','pzlTF','ucOBZ','MtyKJ','148317iuLymm','request','clusterName','RfrhM','Pass\x20the\x20ID\x20of\x20the\x20Grid','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','epilogue','qswNq','../../config/constants','lOmQb','auth','myjul','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','delete','invalid-input','hOBJH','deleteCluster','handler','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','ynwRq','info','KPohX','exit','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','type','https://','cUpVz','ALXHJ','nxKtX','XqYhA','../../config/logger','5212KQojHA','Succesfully\x20deleted\x20the\x20grid','statusCode','PAcOk','error','KJaoY','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','GHdYt','QphRk','util','XpiCT','invalid-grid-id','writeFileSync','url','\x22\x20with\x20ID\x20','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','rnsFO','QijuP','HHRzf','VsIgV','name','RdLlJ','builder','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stack','method','Herak','SmgVC','cDein','WKDsR','jjhtv','toLowerCase','../../utils/utilityMethods','JxMfq','grid-id','qRjDv','grid','DELETE','wqsbK','../../utils/gridComponents','166805cNREAd','unauthorised','3760326YDOIzf','ScSCe','isBrowserstackCluster','/packages/cli/grid/','igxLH','NZGuo','uInUx','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','186EeNqRj','171VVczgJ','nTKJM','warn','Pmdop','\x22\x20and\x20ID\x20','usage','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','clusterRegion','body','HRLIR','description','YRraz','readFileSync','onlyGridInCluster','existsSync','INFO','../../cloudproviders/utils','Browserstack','yCBdD','region','XOwhS','configureIfNotConfigured','promisify','zzZma','171004yiHIoO','clusterId'];a12_0xdfb8=function(){return _0x2dbedc;};return a12_0xdfb8();}
@@ -1 +1 @@
1
- const a13_0x5b68c4=a13_0x35e7;function a13_0x111c(){const _0x357858=['env','wrong-creds','strict','obSmr','WplGR','ErDNQ','ANMKB','GkMHr','stringify','statusCode','bstackUsername','bstackAccesskey','bstack-username','MOiyP','Njken','SyvHM','stack','recommendCommands','parse','NxGnH','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','exit','4610220rHtQUQ','unknown-error','plnfn','2880717KgsOyC','dFwci','GET','request','LiTFu','../config/logger','jBhHf','lKDZn','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','bstack-accesskey','password','asLTg','XmVDP','EJNNy','usage','description','options','handler','string','help','PdJcK','180184pgeuyO','JPbtC','wKgPA','gKRPM','ONPaB','utf-8','GFIhB','bUAQa','Browserstack','JGMFQ','epilogue','../utils/utilityMethods','QPcAt','dunfS','desc','WYMBi','NWqmh','5047764ieMiNn','bEXLw','2194736VqOZCF','mkdirSync','WMmOe','readFileSync','DhSEa','type','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','username','init','Wpjxt','htRww','ZDLMF','1747123PLZXCP','yoXKV','../utils/userInput','INFO','argv','wFGBo','init-called','HWiyd','BROWSERSTACK_USERNAME','RUqoi','AXzTe','344WxYUMA','ERROR','../utils/instrumentationUtils','xfIkv','writeFileSync','/automate/plan.json','SrpjV','uuid','../config/constants','nsuYL','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','407995ejKWxr','requestId','BROWSERSTACK_ACCESS_KEY','mrijB','debug','uAsPU','method','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','command','qylno'];a13_0x111c=function(){return _0x357858;};return a13_0x111c();}(function(_0x1eae18,_0x468225){const _0x47c222=a13_0x35e7,_0x11f4f5=_0x1eae18();while(!![]){try{const _0x53c00c=parseInt(_0x47c222(0x133))/0x1+parseInt(_0x47c222(0x114))/0x2+parseInt(_0x47c222(0xff))/0x3+parseInt(_0x47c222(0x127))/0x4+parseInt(_0x47c222(0x169))/0x5+-parseInt(_0x47c222(0x125))/0x6+-parseInt(_0x47c222(0x149))/0x7*(parseInt(_0x47c222(0x13e))/0x8);if(_0x53c00c===_0x468225)break;else _0x11f4f5['push'](_0x11f4f5['shift']());}catch(_0xfdff50){_0x11f4f5['push'](_0x11f4f5['shift']());}}}(a13_0x111c,0xe0c39));const fs=require('fs'),util=require('util'),request=require(a13_0x5b68c4(0x102)),{v4:uuidv4}=require(a13_0x5b68c4(0x145)),{logger}=require(a13_0x5b68c4(0x104)),{inputBstackKeys}=require(a13_0x5b68c4(0x135)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x5b68c4(0x146)),{getDirForConfig,getCredentialsPath}=require(a13_0x5b68c4(0x11f)),{sendInstrumentationEvent}=require(a13_0x5b68c4(0x140)),promisifiedRequest=util['promisify'](request);function a13_0x35e7(_0x4dae77,_0x5cb412){const _0x111c62=a13_0x111c();return a13_0x35e7=function(_0x35e7da,_0x2ab98a){_0x35e7da=_0x35e7da-0xff;let _0x24b92c=_0x111c62[_0x35e7da];return _0x24b92c;},a13_0x35e7(_0x4dae77,_0x5cb412);}exports[a13_0x5b68c4(0x151)]='init',exports[a13_0x5b68c4(0x122)]=a13_0x5b68c4(0x150),exports['builder']=function(_0x5102d6){const _0x3ae8e7=a13_0x5b68c4,_0x33111e={};_0x33111e[_0x3ae8e7(0x11a)]=_0x3ae8e7(0x12d),_0x33111e['qylno']=_0x3ae8e7(0x111),_0x33111e[_0x3ae8e7(0x106)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x33111e[_0x3ae8e7(0x103)]=_0x3ae8e7(0x112);const _0x56baa4=_0x33111e,_0x36c861={};_0x36c861[_0x3ae8e7(0x10e)]=_0x56baa4[_0x3ae8e7(0x11a)],_0x36c861['type']=_0x56baa4[_0x3ae8e7(0x152)];const _0x4166a4={};_0x4166a4[_0x3ae8e7(0x10e)]=_0x56baa4[_0x3ae8e7(0x106)],_0x4166a4[_0x3ae8e7(0x12c)]=_0x56baa4['qylno'];const _0x562b6d={};return _0x562b6d[_0x3ae8e7(0x15f)]=_0x36c861,_0x562b6d[_0x3ae8e7(0x108)]=_0x4166a4,_0x5102d6[_0x3ae8e7(0x10d)](HELP_HEADER_MESSAGE[_0x3ae8e7(0x12f)])[_0x3ae8e7(0x11e)](HELP_FOOTER_MESSAGE)[_0x3ae8e7(0x10f)](_0x562b6d)[_0x3ae8e7(0x164)]()[_0x3ae8e7(0x155)]()[_0x3ae8e7(0x112)](_0x56baa4[_0x3ae8e7(0x103)])[_0x3ae8e7(0x137)];},exports[a13_0x5b68c4(0x110)]=async function(_0x1b1f2d){const _0x174277=a13_0x5b68c4,_0x584e86={'ErDNQ':_0x174277(0x119),'XqyKn':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','GbgtK':_0x174277(0x111),'ONPaB':_0x174277(0x167),'WYMBi':_0x174277(0x112),'htRww':function(_0x3513b2){return _0x3513b2();},'yoXKV':function(_0x5f027d,_0x2658d0,_0x5e620a,_0x362dd6,_0x3dd5f1,_0x43ab44,_0x5bec75){return _0x5f027d(_0x2658d0,_0x5e620a,_0x362dd6,_0x3dd5f1,_0x43ab44,_0x5bec75);},'JPbtC':_0x174277(0x139),'HWiyd':function(_0x21407c){return _0x21407c();},'dunfS':function(_0x3f0e33,_0x27a186){return _0x3f0e33!==_0x27a186;},'AkCvI':_0x174277(0x129),'ZDLMF':_0x174277(0x124),'JGMFQ':function(_0x412aa6,_0x2720da){return _0x412aa6!==_0x2720da;},'EJNNy':_0x174277(0x14e),'bUAQa':'FePZm','uWphC':function(_0x1bdff0,_0x47f407){return _0x1bdff0===_0x47f407;},'plnfn':_0x174277(0x138),'CaVLJ':'gNlIj','Njken':function(_0xf6d99,_0x25dc9e){return _0xf6d99!==_0x25dc9e;},'GkMHr':_0x174277(0x117),'asLTg':_0x174277(0x113),'RUqoi':function(_0x634eb5,_0x19a03b){return _0x634eb5===_0x19a03b;},'MOiyP':function(_0x2c257b,_0x8962c4){return _0x2c257b===_0x8962c4;},'lhmxK':'wlpfh','nrsoK':_0x174277(0x120),'SrpjV':_0x174277(0x148),'dFwci':_0x174277(0x101),'jBhHf':function(_0x315cff,_0x2188e6){return _0x315cff(_0x2188e6);},'NxGnH':function(_0x56a038,_0x40c50e){return _0x56a038!==_0x40c50e;},'ZHZye':function(_0x15b2ce,_0x3409aa){return _0x15b2ce===_0x3409aa;},'ANMKB':function(_0x5740c1,_0x3d9c5a){return _0x5740c1!==_0x3d9c5a;},'AXzTe':_0x174277(0x162),'fiOTd':function(_0x5819fb,_0xa3a661){return _0x5819fb===_0xa3a661;},'mrijB':_0x174277(0x141),'XmVDP':_0x174277(0x156),'nsuYL':function(_0x27b38d,_0x31bfe8){return _0x27b38d!==_0x31bfe8;},'WplGR':_0x174277(0x126),'oDajC':'aURXg','UbBhJ':_0x174277(0x107),'DhSEa':function(_0x2259f4,_0x531f2c,_0x5047d5,_0x145f3d,_0x2cfd36,_0x2710bd,_0x28f471){return _0x2259f4(_0x531f2c,_0x5047d5,_0x145f3d,_0x2cfd36,_0x2710bd,_0x28f471);},'wKgPA':_0x174277(0x154),'Wpjxt':_0x174277(0x16a)};try{global_registry[_0x174277(0x14a)]=_0x584e86[_0x174277(0x131)](uuidv4),_0x584e86['yoXKV'](sendInstrumentationEvent,_0x1b1f2d,_0x584e86[_0x174277(0x115)],messageTypes[_0x174277(0x136)],null,null,_0x1b1f2d);const _0x19ee78=_0x584e86[_0x174277(0x13a)](getDirForConfig);!fs['existsSync'](_0x19ee78)&&(_0x584e86[_0x174277(0x121)](_0x584e86['AkCvI'],_0x584e86[_0x174277(0x132)])?fs[_0x174277(0x128)](_0x19ee78):_0x12de70=!![]);let _0xfe1ccf,_0x39593a;process[_0x174277(0x153)][_0x174277(0x13b)]&&(_0x584e86[_0x174277(0x11d)](_0x584e86[_0x174277(0x10c)],_0x584e86[_0x174277(0x11b)])?_0xfe1ccf=process['env'][_0x174277(0x13b)]:_0x10d70f=_0x3f69ab[_0x174277(0x15d)]);process[_0x174277(0x153)][_0x174277(0x14b)]&&(_0x584e86['uWphC'](_0x584e86[_0x174277(0x16b)],_0x584e86[_0x174277(0x16b)])?_0x39593a=process[_0x174277(0x153)][_0x174277(0x14b)]:_0x56e889=_0x3c2184[_0x174277(0x165)](_0x142bdb[_0x174277(0x12a)](_0x3ea67b,_0x584e86[_0x174277(0x158)])));_0x1b1f2d[_0x174277(0x15d)]&&(_0x584e86['JGMFQ'](_0x584e86['CaVLJ'],_0x584e86['CaVLJ'])?_0x397989=_0x24c86c[_0x174277(0x153)]['BROWSERSTACK_ACCESS_KEY']:_0xfe1ccf=_0x1b1f2d['bstackUsername']);_0x1b1f2d[_0x174277(0x15e)]&&(_0x584e86[_0x174277(0x161)](_0x584e86[_0x174277(0x15a)],_0x584e86[_0x174277(0x10a)])?_0x39593a=_0x1b1f2d[_0x174277(0x15e)]:_0x3232bd[_0x174277(0x128)](_0x33cd8d));if(_0x584e86[_0x174277(0x13c)](_0xfe1ccf,undefined)||_0x584e86[_0x174277(0x160)](_0x39593a,undefined)){if(_0x584e86[_0x174277(0x11d)](_0x584e86['lhmxK'],_0x584e86['nrsoK'])){logger[_0x174277(0x14d)](_0x584e86[_0x174277(0x144)]);const [_0x567bf9,_0x30601a]=await _0x584e86[_0x174277(0x131)](inputBstackKeys);_0xfe1ccf=_0x567bf9,_0x39593a=_0x30601a;}else _0x449516=_0x3ce3e8[_0x174277(0x153)][_0x174277(0x13b)];}let _0x55d684=![];const _0x3b5dd4={};_0x3b5dd4['url']='https://'+_0xfe1ccf+':'+_0x39593a+'@'+BS_API_URL+_0x174277(0x143),_0x3b5dd4[_0x174277(0x14f)]=_0x584e86[_0x174277(0x100)];const _0xf819ce=_0x3b5dd4,_0x50df60=await _0x584e86[_0x174277(0x105)](promisifiedRequest,_0xf819ce);if(_0x584e86[_0x174277(0x166)](_0x50df60,null)&&_0x584e86[_0x174277(0x11d)](_0x50df60,undefined)&&_0x584e86['ZHZye'](_0x50df60[_0x174277(0x15c)],0xc8)){if(_0x584e86[_0x174277(0x159)](_0x584e86[_0x174277(0x13d)],_0x584e86[_0x174277(0x13d)])){const _0x28212d={};_0x28212d['description']=_0x584e86['XqyKn'],_0x28212d['type']=_0x584e86['GbgtK'];const _0x2ec678={};_0x2ec678[_0x174277(0x10e)]=_0x584e86[_0x174277(0x118)],_0x2ec678['type']=_0x584e86['GbgtK'];const _0x9dff70={};return _0x9dff70[_0x174277(0x15f)]=_0x28212d,_0x9dff70[_0x174277(0x108)]=_0x2ec678,_0x5cc183[_0x174277(0x10d)](_0x4f126c[_0x174277(0x12f)])[_0x174277(0x11e)](_0x3e5572)[_0x174277(0x10f)](_0x9dff70)[_0x174277(0x164)]()[_0x174277(0x155)]()[_0x174277(0x112)](_0x584e86[_0x174277(0x123)])['argv'];}else _0x55d684=!![];}if(_0x55d684){if(_0x584e86['fiOTd'](_0x584e86[_0x174277(0x14c)],_0x584e86[_0x174277(0x10b)]))_0x19290d=_0x332208[_0x174277(0x15e)];else{let _0x332a77={};const _0x10d299=_0x584e86[_0x174277(0x131)](getCredentialsPath);if(fs['existsSync'](_0x10d299)){if(_0x584e86[_0x174277(0x147)](_0x584e86[_0x174277(0x157)],_0x584e86['oDajC']))_0x332a77=JSON[_0x174277(0x165)](fs['readFileSync'](_0x10d299,_0x584e86[_0x174277(0x158)]));else{let _0x27c29f={};const _0x3ec882=_0x584e86[_0x174277(0x131)](_0xa4a30e);_0x106480['existsSync'](_0x3ec882)&&(_0x27c29f=_0x40018a[_0x174277(0x165)](_0x3653ef[_0x174277(0x12a)](_0x3ec882,_0x584e86[_0x174277(0x158)])));const _0x599cd5={};_0x599cd5[_0x174277(0x12e)]=_0x39a7fc,_0x599cd5['password']=_0x4ee719,_0x27c29f[_0x174277(0x11c)]=_0x599cd5,_0x574b37[_0x174277(0x142)](_0x3ec882,_0x4434d4[_0x174277(0x15b)](_0x27c29f)),_0x352de9['exit'](0x0);}}const _0x45a821={};_0x45a821[_0x174277(0x12e)]=_0xfe1ccf,_0x45a821[_0x174277(0x109)]=_0x39593a,_0x332a77[_0x174277(0x11c)]=_0x45a821,fs['writeFileSync'](_0x10d299,JSON[_0x174277(0x15b)](_0x332a77)),process['exit'](0x0);}}else logger['error'](_0x584e86['UbBhJ']),await _0x584e86[_0x174277(0x12b)](sendInstrumentationEvent,_0x1b1f2d,_0x584e86[_0x174277(0x115)],messageTypes[_0x174277(0x13f)],_0x584e86[_0x174277(0x116)],null,_0x1b1f2d),process['exit'](0x1);}catch(_0x4e1965){logger['error'](_0x4e1965[_0x174277(0x163)]),await _0x584e86[_0x174277(0x134)](sendInstrumentationEvent,_0x1b1f2d,_0x584e86[_0x174277(0x115)],messageTypes[_0x174277(0x13f)],_0x584e86[_0x174277(0x130)],_0x4e1965,_0x1b1f2d),process[_0x174277(0x168)](0x1);}};
1
+ const a13_0x46a5d8=a13_0x337b;(function(_0x4691b0,_0x220cb6){const _0x17c03d=a13_0x337b,_0x21a454=_0x4691b0();while(!![]){try{const _0xce1e29=parseInt(_0x17c03d(0x20e))/0x1+parseInt(_0x17c03d(0x1d9))/0x2+parseInt(_0x17c03d(0x208))/0x3+parseInt(_0x17c03d(0x204))/0x4*(-parseInt(_0x17c03d(0x20f))/0x5)+-parseInt(_0x17c03d(0x216))/0x6*(parseInt(_0x17c03d(0x218))/0x7)+parseInt(_0x17c03d(0x1b6))/0x8*(-parseInt(_0x17c03d(0x1da))/0x9)+-parseInt(_0x17c03d(0x1fa))/0xa*(-parseInt(_0x17c03d(0x1d2))/0xb);if(_0xce1e29===_0x220cb6)break;else _0x21a454['push'](_0x21a454['shift']());}catch(_0x513372){_0x21a454['push'](_0x21a454['shift']());}}}(a13_0x4a99,0x8e24e));function a13_0x337b(_0x32a7fd,_0xac42cb){const _0x4a9971=a13_0x4a99();return a13_0x337b=function(_0x337b86,_0x5229b2){_0x337b86=_0x337b86-0x1b2;let _0x3d2918=_0x4a9971[_0x337b86];return _0x3d2918;},a13_0x337b(_0x32a7fd,_0xac42cb);}function a13_0x4a99(){const _0x55bac7=['uuid','BROWSERSTACK_ACCESS_KEY','../utils/utilityMethods','statusCode','mfATT','xJrYl','parse','INFO','options','readFileSync','PWUlY','writeFileSync','https://','pfDjG','GQQgL','bstackUsername','zwSJm','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','KYWeW','../utils/instrumentationUtils','debug','BROWSERSTACK_USERNAME','AKLhQ','WtSeW','../config/logger','init','eZuYV','9064mHvvDF','../config/constants','env','AWegI','error','recommendCommands','qQwyi','552902cjGUES','19539caXkmF','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-accesskey','Browserstack','kGlkM','oesWX','strict','zsYlL','igvOq','mkdirSync','iWaGv','epilogue','string','exit','command','GET','TFAUW','apOyD','nkaAy','handler','OHhum','builder','/automate/plan.json','hvUQH','type','ppGGU','wrong-creds','help','WFVBG','pGyYk','RUsKp','ERROR','15360eJuEZU','UoqIV','bstack-username','BJrOj','PcLvM','password','username','pWIMr','byzTU','promisify','100780AysVTQ','XHvAP','zGSHW','OTFXd','438804hytVHV','unknown-error','kIyLP','QzUiW','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','WfAFH','763495evToPw','45ggrpBU','rmIYp','KCiEL','existsSync','utvJd','description','method','15522GkDIqX','WvYju','2548olOsYf','argv','ECzgj','bstackAccesskey','init-called','eRvek','IqkKT','usage','stringify','2584OewUFF'];a13_0x4a99=function(){return _0x55bac7;};return a13_0x4a99();}const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a13_0x46a5d8(0x1b7)),{logger}=require(a13_0x46a5d8(0x1cf)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x46a5d8(0x1d3)),{getDirForConfig,getCredentialsPath}=require(a13_0x46a5d8(0x1b9)),{sendInstrumentationEvent}=require(a13_0x46a5d8(0x1ca)),promisifiedRequest=util[a13_0x46a5d8(0x203)](request);exports[a13_0x46a5d8(0x1e8)]=a13_0x46a5d8(0x1d0),exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a13_0x46a5d8(0x1ef)]=function(_0x4701f4){const _0x354162=a13_0x46a5d8,_0x46d529={};_0x46d529['zsYlL']=_0x354162(0x20c),_0x46d529['BJrOj']='string',_0x46d529['GMZBx']=_0x354162(0x1db),_0x46d529[_0x354162(0x1cd)]=_0x354162(0x1f5);const _0x57be0c=_0x46d529,_0x28b6e2={};_0x28b6e2[_0x354162(0x214)]=_0x57be0c[_0x354162(0x1e1)],_0x28b6e2['type']=_0x57be0c[_0x354162(0x1fd)];const _0x5d7e5e={};_0x5d7e5e['description']=_0x57be0c['GMZBx'],_0x5d7e5e[_0x354162(0x1f2)]=_0x57be0c[_0x354162(0x1fd)];const _0x5ebd13={};return _0x5ebd13[_0x354162(0x1fc)]=_0x28b6e2,_0x5ebd13[_0x354162(0x1dc)]=_0x5d7e5e,_0x4701f4[_0x354162(0x1b4)](HELP_HEADER_MESSAGE['init'])[_0x354162(0x1e5)](HELP_FOOTER_MESSAGE)[_0x354162(0x1bf)](_0x5ebd13)[_0x354162(0x1d7)]()[_0x354162(0x1e0)]()[_0x354162(0x1f5)](_0x57be0c[_0x354162(0x1cd)])[_0x354162(0x219)];},exports[a13_0x46a5d8(0x1ed)]=async function(_0xba4dca){const _0x25a429=a13_0x46a5d8,_0x240a86={'WFVBG':'utf-8','PWUlY':_0x25a429(0x20c),'pfDjG':_0x25a429(0x1e6),'ppGGU':_0x25a429(0x1db),'eRvek':_0x25a429(0x1f5),'PcLvM':function(_0x20e70d){return _0x20e70d();},'oesWX':function(_0x24f5c5,_0x420a17,_0x199c5c,_0x3a3f71,_0x55f2d7,_0x2557ac,_0x338008){return _0x24f5c5(_0x420a17,_0x199c5c,_0x3a3f71,_0x55f2d7,_0x2557ac,_0x338008);},'WtSeW':_0x25a429(0x21c),'UoqIV':function(_0x537f23){return _0x537f23();},'rmIYp':function(_0x238463,_0x14fa27){return _0x238463===_0x14fa27;},'RUsKp':_0x25a429(0x1d5),'byzTU':function(_0x1149cf,_0x7e5e1a){return _0x1149cf!==_0x7e5e1a;},'hpSpD':_0x25a429(0x1c5),'zGSHW':_0x25a429(0x20a),'pGyYk':'zOVVr','OHhum':_0x25a429(0x20b),'CXxSP':'iLuGl','xJrYl':_0x25a429(0x1eb),'kGlkM':function(_0x296f54,_0x9244c){return _0x296f54===_0x9244c;},'vrWCm':function(_0x4a02cb,_0x2e3e0a){return _0x4a02cb!==_0x2e3e0a;},'eZuYV':_0x25a429(0x1c9),'mfATT':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','IqkKT':_0x25a429(0x1e9),'WvYju':function(_0x2125d6,_0x33880d){return _0x2125d6(_0x33880d);},'KCiEL':function(_0x566af0,_0x597e4a){return _0x566af0!==_0x597e4a;},'VYbYN':function(_0x74b81b,_0x2b5cd0){return _0x74b81b!==_0x2b5cd0;},'cTFaY':function(_0x4e25a0,_0x552e0e){return _0x4e25a0===_0x552e0e;},'BgfCJ':function(_0x210360,_0x24285d){return _0x210360===_0x24285d;},'hvUQH':'qTqQp','WfAFH':'wTIUC','pSxBQ':function(_0xa5a356,_0xfff476){return _0xa5a356!==_0xfff476;},'ECzgj':_0x25a429(0x1e4),'XHvAP':function(_0x6f2b13){return _0x6f2b13();},'utvJd':_0x25a429(0x1ea),'nkaAy':_0x25a429(0x201),'OTFXd':_0x25a429(0x1c8),'zwSJm':_0x25a429(0x1f4),'qQwyi':function(_0x3a0781,_0x27b9d9,_0x126e8b,_0x19a372,_0x34572d,_0x5daa51,_0x29ba53){return _0x3a0781(_0x27b9d9,_0x126e8b,_0x19a372,_0x34572d,_0x5daa51,_0x29ba53);},'igvOq':_0x25a429(0x209)};try{global_registry['requestId']=_0x240a86[_0x25a429(0x1fe)](uuidv4),_0x240a86[_0x25a429(0x1df)](sendInstrumentationEvent,_0xba4dca,_0x240a86['WtSeW'],messageTypes[_0x25a429(0x1be)],null,null,_0xba4dca);const _0x597932=_0x240a86[_0x25a429(0x1fb)](getDirForConfig);!fs[_0x25a429(0x212)](_0x597932)&&(_0x240a86[_0x25a429(0x210)](_0x240a86[_0x25a429(0x1f8)],_0x240a86['RUsKp'])?fs[_0x25a429(0x1e3)](_0x597932):_0x319429=_0x1ae831[_0x25a429(0x1d4)][_0x25a429(0x1cc)]);let _0x5a06f3,_0x4cdf18;process[_0x25a429(0x1d4)][_0x25a429(0x1cc)]&&(_0x240a86[_0x25a429(0x202)](_0x240a86['hpSpD'],_0x240a86['hpSpD'])?_0x14035e=_0x501110[_0x25a429(0x1bd)](_0x53849f[_0x25a429(0x1c0)](_0x35fc07,_0x240a86[_0x25a429(0x1f6)])):_0x5a06f3=process[_0x25a429(0x1d4)][_0x25a429(0x1cc)]);process[_0x25a429(0x1d4)][_0x25a429(0x1b8)]&&(_0x240a86[_0x25a429(0x202)](_0x240a86[_0x25a429(0x206)],_0x240a86[_0x25a429(0x1f7)])?_0x4cdf18=process['env'][_0x25a429(0x1b8)]:_0x10661a=_0x2f9ca7[_0x25a429(0x1d4)][_0x25a429(0x1b8)]);_0xba4dca['bstackUsername']&&(_0x240a86[_0x25a429(0x202)](_0x240a86[_0x25a429(0x1ee)],_0x240a86['CXxSP'])?_0x5a06f3=_0xba4dca[_0x25a429(0x1c6)]:_0x57228c=_0x3d47b5[_0x25a429(0x1c6)]);if(_0xba4dca['bstackAccesskey']){if(_0x240a86[_0x25a429(0x210)](_0x240a86['xJrYl'],_0x240a86[_0x25a429(0x1bc)]))_0x4cdf18=_0xba4dca[_0x25a429(0x21b)];else{const _0x5d055c={};_0x5d055c['description']=_0x240a86[_0x25a429(0x1c1)],_0x5d055c[_0x25a429(0x1f2)]=_0x240a86[_0x25a429(0x1c4)];const _0x277da9={};_0x277da9[_0x25a429(0x214)]=_0x240a86[_0x25a429(0x1f3)],_0x277da9[_0x25a429(0x1f2)]=_0x240a86[_0x25a429(0x1c4)];const _0x12a3fc={};return _0x12a3fc['bstack-username']=_0x5d055c,_0x12a3fc['bstack-accesskey']=_0x277da9,_0x5c6b08[_0x25a429(0x1b4)](_0x267230[_0x25a429(0x1d0)])['epilogue'](_0x12f106)[_0x25a429(0x1bf)](_0x12a3fc)[_0x25a429(0x1d7)]()[_0x25a429(0x1e0)]()[_0x25a429(0x1f5)](_0x240a86[_0x25a429(0x1b2)])['argv'];}}if(_0x240a86[_0x25a429(0x1de)](_0x5a06f3,undefined)||_0x240a86['kGlkM'](_0x4cdf18,undefined)){if(_0x240a86['vrWCm'](_0x240a86['eZuYV'],_0x240a86[_0x25a429(0x1d1)]))_0x342ae8=!![];else{logger[_0x25a429(0x1cb)](_0x240a86[_0x25a429(0x1bb)]);const [_0x4b50a1,_0x2e56bd]=await _0x240a86[_0x25a429(0x1fb)](inputBstackKeys);_0x5a06f3=_0x4b50a1,_0x4cdf18=_0x2e56bd;}}let _0x1e9db3=![];const _0x42b89f={};_0x42b89f['url']=_0x25a429(0x1c3)+_0x5a06f3+':'+_0x4cdf18+'@'+BS_API_URL+_0x25a429(0x1f0),_0x42b89f[_0x25a429(0x215)]=_0x240a86[_0x25a429(0x1b3)];const _0x8f127b=_0x42b89f,_0x55180a=await _0x240a86[_0x25a429(0x217)](promisifiedRequest,_0x8f127b);if(_0x240a86[_0x25a429(0x211)](_0x55180a,null)&&_0x240a86['VYbYN'](_0x55180a,undefined)&&_0x240a86['cTFaY'](_0x55180a[_0x25a429(0x1ba)],0xc8)){if(_0x240a86['BgfCJ'](_0x240a86[_0x25a429(0x1f1)],_0x240a86[_0x25a429(0x20d)])){let _0x1d74b1={};const _0x422e3f=_0x240a86[_0x25a429(0x1fe)](_0xd6bc4c);_0xa5a3b9[_0x25a429(0x212)](_0x422e3f)&&(_0x1d74b1=_0x2df074[_0x25a429(0x1bd)](_0x4b86a2['readFileSync'](_0x422e3f,_0x240a86[_0x25a429(0x1f6)])));const _0x4e68fb={};_0x4e68fb[_0x25a429(0x200)]=_0x1faa35,_0x4e68fb['password']=_0x1177f3,_0x1d74b1['Browserstack']=_0x4e68fb,_0x8cd72e[_0x25a429(0x1c2)](_0x422e3f,_0xa16de3[_0x25a429(0x1b5)](_0x1d74b1)),_0x4afd6e[_0x25a429(0x1e7)](0x0);}else _0x1e9db3=!![];}if(_0x1e9db3){if(_0x240a86['pSxBQ'](_0x240a86[_0x25a429(0x21a)],_0x240a86[_0x25a429(0x21a)]))_0x44bd8a['mkdirSync'](_0x269cc2);else{let _0x10dce5={};const _0x165271=_0x240a86[_0x25a429(0x205)](getCredentialsPath);fs['existsSync'](_0x165271)&&(_0x240a86[_0x25a429(0x210)](_0x240a86[_0x25a429(0x213)],_0x240a86[_0x25a429(0x1ec)])?_0xb17de2=_0x14e61b['bstackAccesskey']:_0x10dce5=JSON[_0x25a429(0x1bd)](fs[_0x25a429(0x1c0)](_0x165271,_0x240a86[_0x25a429(0x1f6)])));const _0x19046c={};_0x19046c[_0x25a429(0x200)]=_0x5a06f3,_0x19046c[_0x25a429(0x1ff)]=_0x4cdf18,_0x10dce5[_0x25a429(0x1dd)]=_0x19046c,fs[_0x25a429(0x1c2)](_0x165271,JSON[_0x25a429(0x1b5)](_0x10dce5)),process[_0x25a429(0x1e7)](0x0);}}else logger[_0x25a429(0x1d6)](_0x240a86[_0x25a429(0x207)]),await _0x240a86[_0x25a429(0x1df)](sendInstrumentationEvent,_0xba4dca,_0x240a86[_0x25a429(0x1ce)],messageTypes[_0x25a429(0x1f9)],_0x240a86[_0x25a429(0x1c7)],null,_0xba4dca),process[_0x25a429(0x1e7)](0x1);}catch(_0x43e855){logger[_0x25a429(0x1d6)](_0x43e855['stack']),await _0x240a86[_0x25a429(0x1d8)](sendInstrumentationEvent,_0xba4dca,_0x240a86['WtSeW'],messageTypes['ERROR'],_0x240a86[_0x25a429(0x1e2)],_0x43e855,_0xba4dca),process[_0x25a429(0x1e7)](0x1);}};
@@ -1 +1 @@
1
- const a14_0x30e29d=a14_0x7397;(function(_0x471699,_0x5dda61){const _0x5c1619=a14_0x7397,_0x70e081=_0x471699();while(!![]){try{const _0x4fdf1b=parseInt(_0x5c1619(0x74))/0x1+parseInt(_0x5c1619(0x7a))/0x2*(-parseInt(_0x5c1619(0x83))/0x3)+-parseInt(_0x5c1619(0x75))/0x4+parseInt(_0x5c1619(0x82))/0x5*(-parseInt(_0x5c1619(0x79))/0x6)+-parseInt(_0x5c1619(0x7e))/0x7*(parseInt(_0x5c1619(0x86))/0x8)+parseInt(_0x5c1619(0x87))/0x9+parseInt(_0x5c1619(0x73))/0xa*(parseInt(_0x5c1619(0x85))/0xb);if(_0x4fdf1b===_0x5dda61)break;else _0x70e081['push'](_0x70e081['shift']());}catch(_0x35288c){_0x70e081['push'](_0x70e081['shift']());}}}(a14_0x79fa,0x4d3c1));function a14_0x7397(_0x5dd434,_0x526b8e){const _0x79fa4=a14_0x79fa();return a14_0x7397=function(_0x7397be,_0x449b0b){_0x7397be=_0x7397be-0x71;let _0x449388=_0x79fa4[_0x7397be];return _0x449388;},a14_0x7397(_0x5dd434,_0x526b8e);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x30e29d(0x76));exports[a14_0x30e29d(0x81)]=a14_0x30e29d(0x80),exports[a14_0x30e29d(0x77)]=a14_0x30e29d(0x7d),exports['builder']=function(_0x43adfe){const _0x3afd3f=a14_0x30e29d,_0x332512={};_0x332512[_0x3afd3f(0x88)]='list_commands',_0x332512['PjNkj']=_0x3afd3f(0x7c);const _0x163764=_0x332512;return _0x43adfe[_0x3afd3f(0x89)](_0x163764[_0x3afd3f(0x88)])[_0x3afd3f(0x78)]()[_0x3afd3f(0x72)](HELP_HEADER_MESSAGE[_0x3afd3f(0x80)][_0x3afd3f(0x7b)])[_0x3afd3f(0x71)](HELP_FOOTER_MESSAGE)[_0x3afd3f(0x84)]()[_0x3afd3f(0x7f)]()[_0x3afd3f(0x7c)](_0x163764['PjNkj']);},exports['handler']=function(_0x292cd3){};function a14_0x79fa(){const _0x252fd6=['../config/constants','desc','demandCommand','159294WxSuPE','139232qRIBHB','root','help','List\x20down\x20the\x20Grid\x20resources.','14077vngGBn','strict','list','command','5aRZPqQ','21tyoRgH','recommendCommands','605kjUSBr','136AcLKVW','4195089gnQTxd','tKzNl','commandDir','epilogue','usage','70610Jomrws','116331avAkhZ','425624CXasWa'];a14_0x79fa=function(){return _0x252fd6;};return a14_0x79fa();}
1
+ const a14_0x236c48=a14_0xea14;(function(_0x3a5c0a,_0x162aff){const _0x270f5c=a14_0xea14,_0x1aef72=_0x3a5c0a();while(!![]){try{const _0x12bd3a=parseInt(_0x270f5c(0x139))/0x1*(parseInt(_0x270f5c(0x12f))/0x2)+-parseInt(_0x270f5c(0x141))/0x3*(-parseInt(_0x270f5c(0x13d))/0x4)+parseInt(_0x270f5c(0x135))/0x5*(-parseInt(_0x270f5c(0x12a))/0x6)+parseInt(_0x270f5c(0x13e))/0x7*(-parseInt(_0x270f5c(0x131))/0x8)+parseInt(_0x270f5c(0x13b))/0x9*(parseInt(_0x270f5c(0x13c))/0xa)+-parseInt(_0x270f5c(0x133))/0xb*(-parseInt(_0x270f5c(0x12d))/0xc)+-parseInt(_0x270f5c(0x137))/0xd*(parseInt(_0x270f5c(0x142))/0xe);if(_0x12bd3a===_0x162aff)break;else _0x1aef72['push'](_0x1aef72['shift']());}catch(_0x46a26c){_0x1aef72['push'](_0x1aef72['shift']());}}}(a14_0x5063,0x1acf4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x236c48(0x132));exports[a14_0x236c48(0x12c)]=a14_0x236c48(0x136),exports[a14_0x236c48(0x13a)]=a14_0x236c48(0x128),exports[a14_0x236c48(0x140)]=function(_0x1bedb7){const _0x539277=a14_0x236c48,_0x35e150={};_0x35e150[_0x539277(0x127)]=_0x539277(0x130),_0x35e150[_0x539277(0x12b)]=_0x539277(0x138);const _0x4f09d2=_0x35e150;return _0x1bedb7['commandDir'](_0x4f09d2[_0x539277(0x127)])[_0x539277(0x129)]()[_0x539277(0x12e)](HELP_HEADER_MESSAGE[_0x539277(0x136)][_0x539277(0x134)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x539277(0x13f)]()['strict']()['help'](_0x4f09d2['mpAxK']);},exports[a14_0x236c48(0x126)]=function(_0x545ad2){};function a14_0xea14(_0x39681e,_0x565903){const _0x506322=a14_0x5063();return a14_0xea14=function(_0xea14f6,_0x4c0f73){_0xea14f6=_0xea14f6-0x126;let _0x594048=_0x506322[_0xea14f6];return _0x594048;},a14_0xea14(_0x39681e,_0x565903);}function a14_0x5063(){const _0x55d53a=['47824voPlxQ','recommendCommands','builder','51dkiZPe','852082kzFRtF','handler','FnTww','List\x20down\x20the\x20Grid\x20resources.','demandCommand','114HuTtZK','mpAxK','command','32748wnUYvg','usage','159990UItfGV','list_commands','192NtkZGW','../config/constants','561aJNOQx','root','47365CajxIU','list','39iAfzOE','help','2JpmYIm','desc','96048xKMpMr','190ZHAHoN','31628obnXoV'];a14_0x5063=function(){return _0x55d53a;};return a14_0x5063();}
@@ -1 +1 @@
1
- const a15_0xb6ea7f=a15_0x280a;(function(_0x3f55bd,_0x28e922){const _0x545122=a15_0x280a,_0x4bf392=_0x3f55bd();while(!![]){try{const _0x3164bd=parseInt(_0x545122(0x1df))/0x1*(parseInt(_0x545122(0x1d5))/0x2)+-parseInt(_0x545122(0x1e6))/0x3*(parseInt(_0x545122(0x1bb))/0x4)+parseInt(_0x545122(0x1c7))/0x5+-parseInt(_0x545122(0x1d2))/0x6*(-parseInt(_0x545122(0x1db))/0x7)+-parseInt(_0x545122(0x1b1))/0x8+-parseInt(_0x545122(0x1ad))/0x9+parseInt(_0x545122(0x1ea))/0xa;if(_0x3164bd===_0x28e922)break;else _0x4bf392['push'](_0x4bf392['shift']());}catch(_0x1d060b){_0x4bf392['push'](_0x4bf392['shift']());}}}(a15_0x5454,0xc84ce));function a15_0x280a(_0x40a02a,_0x1e4064){const _0x5454ac=a15_0x5454();return a15_0x280a=function(_0x280a6f,_0x55fae9){_0x280a6f=_0x280a6f-0x1a9;let _0x18dbf8=_0x5454ac[_0x280a6f];return _0x18dbf8;},a15_0x280a(_0x40a02a,_0x1e4064);}function a15_0x5454(){const _0x402393=['log','error','28LgOaIr','MUyIK','YnVSD','allGridProfiles','1EOuOfQ','KMWPH','command','util','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','YSpnH','ewkuZ','157971wzdBQY','region','cloudProvider','forEach','28672830gqQKrq','JlLfB','ayeoH','auth','qGhZE','cueaO','usage','grid-profile-name','stack','unknown-error','statusCode','server-error','../../utils/instrumentationUtils','promisify','/packages/cli/get-grid-profiles','password','OjiSV','YNprb','Failed\x20to\x20list\x20resources!\x20Error:\x20','desc','unauthorised','13772304qrWSnD','requestId','BKsZu','Browserstack','7936424BLzNLa','bstackAccesskey','https://','tIyJl','grid-profiles','MDkmU','body','tWMPX','init-not-called','exit','124txjClk','uuid','argv','handler','GET','eDULl','push','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','igYPY','/packages/cli/get-all-grid-profiles','url','1790245ikwIFf','mVmpg','eQhlj','kXclC','ERROR','existsSync','cloud-provider','../../config/constants','description','method','parse','1473432QqKSAi','cmEit','username','1534972jUMCcL','readFileSync','concurrency','IbFaU'];a15_0x5454=function(){return _0x402393;};return a15_0x5454();}const fs=require('fs'),util=require(a15_0xb6ea7f(0x1e2)),request=require('request'),{table}=require('table'),{v4:uuidv4}=require(a15_0xb6ea7f(0x1bc)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0xb6ea7f(0x1ce)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0xb6ea7f(0x1f6)),promisifiedRequest=util[a15_0xb6ea7f(0x1f7)](request);exports[a15_0xb6ea7f(0x1e1)]=a15_0xb6ea7f(0x1b5),exports[a15_0xb6ea7f(0x1ab)]=a15_0xb6ea7f(0x1c2),exports['builder']=function(_0x102e44){const _0x42f80b=a15_0xb6ea7f,_0x513920={};_0x513920[_0x42f80b(0x1d3)]=_0x42f80b(0x1c3),_0x513920[_0x42f80b(0x1ca)]='boolean',_0x513920[_0x42f80b(0x1c4)]='help';const _0x2d0b0e=_0x513920,_0xdacacc={};_0xdacacc[_0x42f80b(0x1cf)]=_0x2d0b0e[_0x42f80b(0x1d3)],_0xdacacc['type']=_0x2d0b0e[_0x42f80b(0x1ca)];const _0x288293={};return _0x288293['all-grid-profiles']=_0xdacacc,_0x102e44[_0x42f80b(0x1f0)](HELP_HEADER_MESSAGE['list']['gridProfile'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x288293)['help'](_0x2d0b0e[_0x42f80b(0x1c4)])[_0x42f80b(0x1bd)];},exports[a15_0xb6ea7f(0x1be)]=async function(_0x2ef277){const _0x7e2387=a15_0xb6ea7f,_0x256049={'YSpnH':function(_0x2575c4){return _0x2575c4();},'qGhZE':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','BKsZu':function(_0x212a9b,_0x11d2b5,_0x3a9f42,_0x1f0cfa,_0x5cb67e,_0x1c6389,_0x1d94d8){return _0x212a9b(_0x11d2b5,_0x3a9f42,_0x1f0cfa,_0x5cb67e,_0x1c6389,_0x1d94d8);},'MDkmU':'list-grid-profiles-called','wIrsk':_0x7e2387(0x1b9),'tIyJl':_0x7e2387(0x1bf),'ayeoH':function(_0x52f0f1,_0x2290f3){return _0x52f0f1(_0x2290f3);},'YnVSD':function(_0x284649,_0x3ea179){return _0x284649!==_0x3ea179;},'KMWPH':function(_0x8ba9d6,_0x4f2ffe){return _0x8ba9d6!==_0x4f2ffe;},'eQhlj':function(_0x1f1583,_0x443bd1){return _0x1f1583===_0x443bd1;},'mVmpg':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','ewkuZ':_0x7e2387(0x1f1),'AmfLC':_0x7e2387(0x1cd),'OjiSV':_0x7e2387(0x1e7),'IbFaU':'concurrency','YNprb':function(_0x4fbb85,_0x3f1637){return _0x4fbb85(_0x3f1637);},'JlLfB':function(_0x5e06b6,_0x567aec,_0x1b5f34,_0x3f24c3,_0x3c0bf6,_0x34e662,_0x5804a9){return _0x5e06b6(_0x567aec,_0x1b5f34,_0x3f24c3,_0x3c0bf6,_0x34e662,_0x5804a9);},'MUyIK':_0x7e2387(0x1ac),'cueaO':function(_0x101a24,_0x10065d,_0x589241,_0x377692,_0x8f0703,_0x3dea56,_0x50624c){return _0x101a24(_0x10065d,_0x589241,_0x377692,_0x8f0703,_0x3dea56,_0x50624c);},'hmScP':_0x7e2387(0x1f5),'eDULl':function(_0xd856be,_0xfc60b6,_0x18a5ce,_0x156f0b,_0x3732cd,_0x14805a,_0x3cc92c){return _0xd856be(_0xfc60b6,_0x18a5ce,_0x156f0b,_0x3732cd,_0x14805a,_0x3cc92c);},'tWMPX':_0x7e2387(0x1f3)};try{global_registry[_0x7e2387(0x1ae)]=_0x256049[_0x7e2387(0x1e4)](uuidv4);let _0x2c33b4=_0x7e2387(0x1b3)+AG_API_URL+_0x7e2387(0x1f8);_0x2ef277[_0x7e2387(0x1de)]&&(_0x2c33b4=_0x7e2387(0x1b3)+AG_API_URL+_0x7e2387(0x1c5));!fs[_0x7e2387(0x1cc)](_0x256049[_0x7e2387(0x1e4)](getCredentialsPath))&&(console[_0x7e2387(0x1da)](_0x256049[_0x7e2387(0x1ee)]),await _0x256049[_0x7e2387(0x1af)](sendInstrumentationEvent,_0x2ef277,_0x256049[_0x7e2387(0x1b6)],messageTypes[_0x7e2387(0x1cb)],_0x256049['wIrsk'],null,_0x2ef277),process['exit'](0x1));_0x256049['BKsZu'](sendInstrumentationEvent,_0x2ef277,_0x256049[_0x7e2387(0x1b6)],messageTypes['INFO'],null,null,_0x2ef277);const _0x7b4349=JSON[_0x7e2387(0x1d1)](fs[_0x7e2387(0x1d6)](_0x256049[_0x7e2387(0x1e4)](getCredentialsPath))),_0x2682fd={};_0x2682fd['username']=_0x7b4349[_0x7e2387(0x1b0)][_0x7e2387(0x1d4)],_0x2682fd[_0x7e2387(0x1f9)]=_0x7b4349[_0x7e2387(0x1b0)]['password'];const _0x531d22={};_0x531d22[_0x7e2387(0x1c6)]=_0x2c33b4,_0x531d22[_0x7e2387(0x1d0)]=_0x256049[_0x7e2387(0x1b4)],_0x531d22[_0x7e2387(0x1ed)]=_0x2682fd;const _0x43d214=_0x531d22;global_registry['bstackUsername']=_0x7b4349['Browserstack'][_0x7e2387(0x1d4)],global_registry[_0x7e2387(0x1b2)]=_0x7b4349[_0x7e2387(0x1b0)][_0x7e2387(0x1f9)];const _0x169917=await _0x256049[_0x7e2387(0x1ec)](promisifiedRequest,_0x43d214);if(_0x256049[_0x7e2387(0x1dd)](_0x169917,null)&&_0x256049[_0x7e2387(0x1e0)](_0x169917,undefined)&&_0x256049[_0x7e2387(0x1c9)](_0x169917[_0x7e2387(0x1f4)],0xc8)){const _0x53645a=JSON['parse'](_0x169917[_0x7e2387(0x1b7)]);console['log'](_0x256049[_0x7e2387(0x1c8)]);const _0xf83d50=[];_0xf83d50[_0x7e2387(0x1c1)]([_0x256049[_0x7e2387(0x1e5)],_0x256049['AmfLC'],_0x256049[_0x7e2387(0x1fa)],_0x256049[_0x7e2387(0x1d8)]]),_0x53645a[_0x7e2387(0x1e9)](_0x212364=>{const _0x3441fc=_0x7e2387;_0xf83d50[_0x3441fc(0x1c1)]([_0x212364['name'],_0x212364[_0x3441fc(0x1e8)],_0x212364[_0x3441fc(0x1e7)],_0x212364[_0x3441fc(0x1d7)]]);}),console[_0x7e2387(0x1d9)](_0x256049[_0x7e2387(0x1a9)](table,_0xf83d50)),process[_0x7e2387(0x1ba)](0x0);}_0x256049['eQhlj'](_0x169917[_0x7e2387(0x1f4)],0x191)&&(console[_0x7e2387(0x1da)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x256049[_0x7e2387(0x1eb)](sendInstrumentationEvent,_0x2ef277,_0x256049['MDkmU'],messageTypes[_0x7e2387(0x1cb)],_0x256049[_0x7e2387(0x1dc)],null,_0x2ef277),process[_0x7e2387(0x1ba)](0x1)),console[_0x7e2387(0x1da)](_0x7e2387(0x1e3)+JSON['stringify'](_0x169917)),await _0x256049[_0x7e2387(0x1ef)](sendInstrumentationEvent,_0x2ef277,_0x256049[_0x7e2387(0x1b6)],messageTypes[_0x7e2387(0x1cb)],_0x256049['hmScP'],_0x169917,_0x2ef277),process[_0x7e2387(0x1ba)](0x1);}catch(_0x3f5e0c){console[_0x7e2387(0x1da)](_0x7e2387(0x1aa)+_0x3f5e0c[_0x7e2387(0x1f2)]),await _0x256049[_0x7e2387(0x1c0)](sendInstrumentationEvent,_0x2ef277,_0x256049[_0x7e2387(0x1b6)],messageTypes[_0x7e2387(0x1cb)],_0x256049[_0x7e2387(0x1b8)],_0x3f5e0c,_0x2ef277),process[_0x7e2387(0x1ba)](0x1);}};
1
+ const a15_0x48ac31=a15_0x5aa0;function a15_0x5aa0(_0x265f85,_0x164a7b){const _0x1ff4f2=a15_0x1ff4();return a15_0x5aa0=function(_0x5aa0c5,_0x3a1af5){_0x5aa0c5=_0x5aa0c5-0x1b8;let _0x54a10f=_0x1ff4f2[_0x5aa0c5];return _0x54a10f;},a15_0x5aa0(_0x265f85,_0x164a7b);}(function(_0x4bef82,_0x328845){const _0x421563=a15_0x5aa0,_0x189570=_0x4bef82();while(!![]){try{const _0x5f2658=-parseInt(_0x421563(0x202))/0x1+-parseInt(_0x421563(0x1e2))/0x2+parseInt(_0x421563(0x20a))/0x3*(parseInt(_0x421563(0x1fd))/0x4)+-parseInt(_0x421563(0x204))/0x5*(parseInt(_0x421563(0x1c1))/0x6)+parseInt(_0x421563(0x1de))/0x7*(-parseInt(_0x421563(0x1dc))/0x8)+parseInt(_0x421563(0x1d0))/0x9*(-parseInt(_0x421563(0x206))/0xa)+-parseInt(_0x421563(0x1ec))/0xb*(-parseInt(_0x421563(0x1ca))/0xc);if(_0x5f2658===_0x328845)break;else _0x189570['push'](_0x189570['shift']());}catch(_0x102ef8){_0x189570['push'](_0x189570['shift']());}}}(a15_0x1ff4,0x61280));function a15_0x1ff4(){const _0x3f1e46=['cloud-provider','username','2292mjQoZR','url','region','server-error','push','unknown-error','2271150XSUzBQ','ERROR','../../config/constants','TsTbL','log','table','ZMnWs','list-grid-profiles-called','all-grid-profiles','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','hkcVy','zdXzH','56cHTjWB','INFO','231105XvsALT','grid-profiles','util','method','109806sWEOrU','gridProfile','parse','desc','cloudProvider','stack','RUeey','XDQUy','forEach','request','115148IEXqBd','/packages/cli/get-grid-profiles','boolean','builder','https://','MExfb','OmWUU','init-not-called','existsSync','Stpzf','type','QrCJq','CAIoW','usage','GET','promisify','/packages/cli/get-all-grid-profiles','4kppyNU','argv','error','CtSzO','lutrt','249828WCRife','exit','3192740xSKAoU','../../utils/instrumentationUtils','30eIJEMF','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','huCLA','epilogue','989994aTVAKI','readFileSync','eIelD','concurrency','unauthorised','bstackUsername','Browserstack','body','help','options','jkxok','requestId','statusCode','6rcQgpq','RaIjY','list','password','cqvBh','name','GBuyf'];a15_0x1ff4=function(){return _0x3f1e46;};return a15_0x1ff4();}const fs=require('fs'),util=require(a15_0x48ac31(0x1e0)),request=require(a15_0x48ac31(0x1eb)),{table}=require(a15_0x48ac31(0x1d5)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x48ac31(0x1d2)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x48ac31(0x205)),promisifiedRequest=util[a15_0x48ac31(0x1fb)](request);exports['command']=a15_0x48ac31(0x1df),exports[a15_0x48ac31(0x1e5)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x48ac31(0x1ef)]=function(_0x212187){const _0x43c3cb=a15_0x48ac31,_0x4da552={};_0x4da552['gXkIk']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x4da552[_0x43c3cb(0x1f1)]=_0x43c3cb(0x1ee),_0x4da552[_0x43c3cb(0x1db)]=_0x43c3cb(0x1bc);const _0x356391=_0x4da552,_0x25c6a4={};_0x25c6a4['description']=_0x356391['gXkIk'],_0x25c6a4[_0x43c3cb(0x1f6)]=_0x356391[_0x43c3cb(0x1f1)];const _0x4ff132={};return _0x4ff132[_0x43c3cb(0x1d8)]=_0x25c6a4,_0x212187[_0x43c3cb(0x1f9)](HELP_HEADER_MESSAGE[_0x43c3cb(0x1c3)][_0x43c3cb(0x1e3)])[_0x43c3cb(0x209)](HELP_FOOTER_MESSAGE)[_0x43c3cb(0x1bd)](_0x4ff132)['help'](_0x356391[_0x43c3cb(0x1db)])[_0x43c3cb(0x1fe)];},exports['handler']=async function(_0x5d4e9b){const _0xefd3ac=a15_0x48ac31,_0x31d0f3={'hkcVy':function(_0x28b08f){return _0x28b08f();},'eIelD':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','jkxok':function(_0x6bdbe5,_0x4ff8ac,_0x27c935,_0x18998a,_0x16d40a,_0x1f07e8,_0x4df65a){return _0x6bdbe5(_0x4ff8ac,_0x27c935,_0x18998a,_0x16d40a,_0x1f07e8,_0x4df65a);},'GBuyf':_0xefd3ac(0x1d7),'RUeey':_0xefd3ac(0x1f3),'OmWUU':_0xefd3ac(0x1fa),'ZMnWs':function(_0x40ebc2,_0x12639b){return _0x40ebc2(_0x12639b);},'cqvBh':function(_0x16ad74,_0x5f3767){return _0x16ad74!==_0x5f3767;},'sPbCb':function(_0x1d4654,_0x359b88){return _0x1d4654===_0x359b88;},'RaIjY':_0xefd3ac(0x207),'huCLA':'grid-profile-name','LGNrd':_0xefd3ac(0x1c8),'opVmy':'region','QrCJq':_0xefd3ac(0x20d),'Stpzf':function(_0x467b8a,_0x43f7a9){return _0x467b8a(_0x43f7a9);},'CtSzO':function(_0x45b9bd,_0x201cd9){return _0x45b9bd===_0x201cd9;},'XDQUy':_0xefd3ac(0x1b8),'TsTbL':function(_0x25ab85,_0x3f9b2c,_0x39fefa,_0x50326f,_0x56d0c2,_0x2bf71f,_0x23e653){return _0x25ab85(_0x3f9b2c,_0x39fefa,_0x50326f,_0x56d0c2,_0x2bf71f,_0x23e653);},'CAIoW':_0xefd3ac(0x1cd),'uWBYE':function(_0x541c8f,_0x56d89a,_0x34ab00,_0xf4cad2,_0x388b6f,_0x303108,_0x53e103){return _0x541c8f(_0x56d89a,_0x34ab00,_0xf4cad2,_0x388b6f,_0x303108,_0x53e103);},'lutrt':_0xefd3ac(0x1cf)};try{global_registry[_0xefd3ac(0x1bf)]=_0x31d0f3[_0xefd3ac(0x1da)](uuidv4);let _0x268889=_0xefd3ac(0x1f0)+AG_API_URL+_0xefd3ac(0x1ed);_0x5d4e9b['allGridProfiles']&&(_0x268889=_0xefd3ac(0x1f0)+AG_API_URL+_0xefd3ac(0x1fc));!fs[_0xefd3ac(0x1f4)](_0x31d0f3[_0xefd3ac(0x1da)](getCredentialsPath))&&(console[_0xefd3ac(0x1ff)](_0x31d0f3[_0xefd3ac(0x20c)]),await _0x31d0f3[_0xefd3ac(0x1be)](sendInstrumentationEvent,_0x5d4e9b,_0x31d0f3[_0xefd3ac(0x1c7)],messageTypes[_0xefd3ac(0x1d1)],_0x31d0f3[_0xefd3ac(0x1e8)],null,_0x5d4e9b),process[_0xefd3ac(0x203)](0x1));_0x31d0f3[_0xefd3ac(0x1be)](sendInstrumentationEvent,_0x5d4e9b,_0x31d0f3[_0xefd3ac(0x1c7)],messageTypes[_0xefd3ac(0x1dd)],null,null,_0x5d4e9b);const _0x2e9610=JSON[_0xefd3ac(0x1e4)](fs[_0xefd3ac(0x20b)](_0x31d0f3['hkcVy'](getCredentialsPath))),_0x1dbaec={};_0x1dbaec[_0xefd3ac(0x1c9)]=_0x2e9610['Browserstack'][_0xefd3ac(0x1c9)],_0x1dbaec['password']=_0x2e9610[_0xefd3ac(0x1ba)]['password'];const _0x13c370={};_0x13c370[_0xefd3ac(0x1cb)]=_0x268889,_0x13c370[_0xefd3ac(0x1e1)]=_0x31d0f3[_0xefd3ac(0x1f2)],_0x13c370['auth']=_0x1dbaec;const _0x582b23=_0x13c370;global_registry[_0xefd3ac(0x1b9)]=_0x2e9610[_0xefd3ac(0x1ba)]['username'],global_registry['bstackAccesskey']=_0x2e9610[_0xefd3ac(0x1ba)][_0xefd3ac(0x1c4)];const _0x44887f=await _0x31d0f3[_0xefd3ac(0x1d6)](promisifiedRequest,_0x582b23);if(_0x31d0f3['cqvBh'](_0x44887f,null)&&_0x31d0f3[_0xefd3ac(0x1c5)](_0x44887f,undefined)&&_0x31d0f3['sPbCb'](_0x44887f['statusCode'],0xc8)){const _0x209c39=JSON[_0xefd3ac(0x1e4)](_0x44887f[_0xefd3ac(0x1bb)]);console['log'](_0x31d0f3[_0xefd3ac(0x1c2)]);const _0x510b8e=[];_0x510b8e[_0xefd3ac(0x1ce)]([_0x31d0f3[_0xefd3ac(0x208)],_0x31d0f3['LGNrd'],_0x31d0f3['opVmy'],_0x31d0f3[_0xefd3ac(0x1f7)]]),_0x209c39[_0xefd3ac(0x1ea)](_0x51053f=>{const _0x3c494b=_0xefd3ac;_0x510b8e['push']([_0x51053f[_0x3c494b(0x1c6)],_0x51053f[_0x3c494b(0x1e6)],_0x51053f[_0x3c494b(0x1cc)],_0x51053f[_0x3c494b(0x20d)]]);}),console[_0xefd3ac(0x1d4)](_0x31d0f3[_0xefd3ac(0x1f5)](table,_0x510b8e)),process[_0xefd3ac(0x203)](0x0);}_0x31d0f3[_0xefd3ac(0x200)](_0x44887f[_0xefd3ac(0x1c0)],0x191)&&(console[_0xefd3ac(0x1ff)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x31d0f3[_0xefd3ac(0x1be)](sendInstrumentationEvent,_0x5d4e9b,_0x31d0f3[_0xefd3ac(0x1c7)],messageTypes[_0xefd3ac(0x1d1)],_0x31d0f3[_0xefd3ac(0x1e9)],null,_0x5d4e9b),process[_0xefd3ac(0x203)](0x1)),console[_0xefd3ac(0x1ff)](_0xefd3ac(0x1d9)+JSON['stringify'](_0x44887f)),await _0x31d0f3[_0xefd3ac(0x1d3)](sendInstrumentationEvent,_0x5d4e9b,_0x31d0f3[_0xefd3ac(0x1c7)],messageTypes[_0xefd3ac(0x1d1)],_0x31d0f3[_0xefd3ac(0x1f8)],_0x44887f,_0x5d4e9b),process[_0xefd3ac(0x203)](0x1);}catch(_0x5b3495){console[_0xefd3ac(0x1ff)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5b3495[_0xefd3ac(0x1e7)]),await _0x31d0f3['uWBYE'](sendInstrumentationEvent,_0x5d4e9b,_0x31d0f3[_0xefd3ac(0x1c7)],messageTypes[_0xefd3ac(0x1d1)],_0x31d0f3[_0xefd3ac(0x201)],_0x5b3495,_0x5d4e9b),process[_0xefd3ac(0x203)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x4395a9=a16_0x33ad;function a16_0x2ff2(){const _0x3a756a=['username','command','stack','INFO','BbDJG','requestId','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','JCcSi','508238ggYedq','/packages/cli/get-all-grids','usage','server-error','gIkqz','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','description','1106740RYuEqd','2981274dRMhCj','list-grids-called','error','help','stringify','\x0aFound\x20the\x20following\x20grids:\x0a','exit','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','EhhuP','mqIxT','log','Browserstack','uuid','XMQtr','4pUccjS','argv','parse','blvyu','NmfKw','bstackAccesskey','desc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','options','xKgrp','xuqSM','promisify','request','method','FaBaQ','BHxgg','push','list','oaYWl','/packages/cli/get-grids','unknown-error','UKuPV','epilogue','init-not-called','ipWpN','table','unauthorised','existsSync','grid-name','queued','24ZKHLdr','WBhFi','grid','341BttdBh','../../utils/instrumentationUtils','status','NWrGL','1352688aXhrKP','statusCode','allGrids','DqmNW','running','password','RCsAF','DWysu','222160nzfqnP','ERROR','../../config/constants','1iduIoP','EWaon','bstackUsername','KGDcz','QIxmT','NjJjv','util','forEach','builder','927009jwMHxP','794766YVPBMu','handler','auth','url','https://'];a16_0x2ff2=function(){return _0x3a756a;};return a16_0x2ff2();}(function(_0x805c7e,_0xff6c76){const _0x1c9e25=a16_0x33ad,_0x5e9141=_0x805c7e();while(!![]){try{const _0x3abad8=-parseInt(_0x1c9e25(0x20c))/0x1*(parseInt(_0x1c9e25(0x223))/0x2)+-parseInt(_0x1c9e25(0x201))/0x3+-parseInt(_0x1c9e25(0x1dc))/0x4*(-parseInt(_0x1c9e25(0x22a))/0x5)+parseInt(_0x1c9e25(0x22b))/0x6+-parseInt(_0x1c9e25(0x216))/0x7*(parseInt(_0x1c9e25(0x1fa))/0x8)+-parseInt(_0x1c9e25(0x215))/0x9+-parseInt(_0x1c9e25(0x209))/0xa*(-parseInt(_0x1c9e25(0x1fd))/0xb);if(_0x3abad8===_0xff6c76)break;else _0x5e9141['push'](_0x5e9141['shift']());}catch(_0x4bf471){_0x5e9141['push'](_0x5e9141['shift']());}}}(a16_0x2ff2,0x3f0f5));const fs=require('fs'),util=require(a16_0x4395a9(0x212)),request=require(a16_0x4395a9(0x1e8)),{table}=require(a16_0x4395a9(0x1f5)),{v4:uuidv4}=require(a16_0x4395a9(0x1da)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a16_0x4395a9(0x20b)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a16_0x4395a9(0x1fe)),promisifiedRequest=util[a16_0x4395a9(0x1e7)](request);function a16_0x33ad(_0x4d1076,_0x25e5bd){const _0x2ff2af=a16_0x2ff2();return a16_0x33ad=function(_0x33ad9d,_0x106cd3){_0x33ad9d=_0x33ad9d-0x1d8;let _0x3825b5=_0x2ff2af[_0x33ad9d];return _0x3825b5;},a16_0x33ad(_0x4d1076,_0x25e5bd);}exports[a16_0x4395a9(0x21c)]='grids',exports[a16_0x4395a9(0x1e2)]=a16_0x4395a9(0x221),exports[a16_0x4395a9(0x214)]=function(_0x451484){const _0x374d13=a16_0x4395a9,_0x1af6ad={};_0x1af6ad[_0x374d13(0x1db)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x1af6ad[_0x374d13(0x200)]='boolean',_0x1af6ad[_0x374d13(0x1ee)]=_0x374d13(0x22e);const _0x2bf2c1=_0x1af6ad,_0x1a5d87={};_0x1a5d87[_0x374d13(0x229)]=_0x2bf2c1[_0x374d13(0x1db)],_0x1a5d87['type']=_0x2bf2c1[_0x374d13(0x200)];const _0x31e932={};return _0x31e932['all-grids']=_0x1a5d87,_0x451484[_0x374d13(0x225)](HELP_HEADER_MESSAGE[_0x374d13(0x1ed)][_0x374d13(0x1fc)])[_0x374d13(0x1f2)](HELP_FOOTER_MESSAGE)[_0x374d13(0x1e4)](_0x31e932)[_0x374d13(0x22e)](_0x2bf2c1[_0x374d13(0x1ee)])[_0x374d13(0x1dd)];},exports[a16_0x4395a9(0x217)]=async function(_0x5acdd9){const _0x58da04=a16_0x4395a9,_0x43983a={'BHxgg':function(_0x57f2c9){return _0x57f2c9();},'blvyu':_0x58da04(0x228),'ipWpN':function(_0x4d091f,_0x50a122,_0x200cf7,_0xa42ebe,_0x4604e9,_0x358fae,_0x1bd068){return _0x4d091f(_0x50a122,_0x200cf7,_0xa42ebe,_0x4604e9,_0x358fae,_0x1bd068);},'NmfKw':_0x58da04(0x22c),'gIkqz':_0x58da04(0x1f3),'xKgrp':function(_0x255e44){return _0x255e44();},'UKuPV':'GET','WBhFi':function(_0x2e2181,_0xa84e,_0x54fb5f,_0x1e831b,_0x42b763,_0x28568a,_0x594407){return _0x2e2181(_0xa84e,_0x54fb5f,_0x1e831b,_0x42b763,_0x28568a,_0x594407);},'JCcSi':function(_0x18cf5d,_0x4603ef){return _0x18cf5d(_0x4603ef);},'EWaon':function(_0x44351f,_0x1b26f6){return _0x44351f!==_0x1b26f6;},'KGDcz':function(_0x18e345,_0x4bf0cb){return _0x18e345===_0x4bf0cb;},'mqIxT':_0x58da04(0x230),'sAXiQ':'grid-id','xuqSM':_0x58da04(0x1f8),'LguxQ':_0x58da04(0x1ff),'DqmNW':_0x58da04(0x205),'EhhuP':_0x58da04(0x1f9),'BbDJG':'cluster-name','GnAvN':function(_0x1250bd,_0x13e129){return _0x1250bd(_0x13e129);},'FaBaQ':function(_0x1e9c87,_0x26e47a){return _0x1e9c87===_0x26e47a;},'QIxmT':_0x58da04(0x1f6),'RCsAF':_0x58da04(0x226),'DWysu':function(_0x1bcc5d,_0x17616e,_0x3bd900,_0x3b0164,_0x18f96c,_0xc2d32c,_0x423a14){return _0x1bcc5d(_0x17616e,_0x3bd900,_0x3b0164,_0x18f96c,_0xc2d32c,_0x423a14);},'NjJjv':_0x58da04(0x1f0)};try{global_registry[_0x58da04(0x220)]=_0x43983a['BHxgg'](uuidv4);!fs[_0x58da04(0x1f7)](_0x43983a[_0x58da04(0x1eb)](getCredentialsPath))&&(console[_0x58da04(0x22d)](_0x43983a[_0x58da04(0x1df)]),await _0x43983a[_0x58da04(0x1f4)](sendInstrumentationEvent,_0x5acdd9,_0x43983a[_0x58da04(0x1e0)],messageTypes['ERROR'],_0x43983a[_0x58da04(0x227)],null,_0x5acdd9),process[_0x58da04(0x231)](0x1));const _0x37d5d5=JSON[_0x58da04(0x1de)](fs['readFileSync'](_0x43983a[_0x58da04(0x1e5)](getCredentialsPath)));let _0x2d22db='https://'+AG_API_URL+_0x58da04(0x1ef);_0x5acdd9[_0x58da04(0x203)]&&(_0x2d22db=_0x58da04(0x21a)+AG_API_URL+_0x58da04(0x224));const _0x5a56aa={};_0x5a56aa[_0x58da04(0x21b)]=_0x37d5d5[_0x58da04(0x1d9)][_0x58da04(0x21b)],_0x5a56aa[_0x58da04(0x206)]=_0x37d5d5['Browserstack'][_0x58da04(0x206)];const _0x4de29c={};_0x4de29c[_0x58da04(0x219)]=_0x2d22db,_0x4de29c[_0x58da04(0x1e9)]=_0x43983a[_0x58da04(0x1f1)],_0x4de29c[_0x58da04(0x218)]=_0x5a56aa;const _0x527ddf=_0x4de29c;global_registry[_0x58da04(0x20e)]=_0x37d5d5[_0x58da04(0x1d9)]['username'],global_registry[_0x58da04(0x1e1)]=_0x37d5d5[_0x58da04(0x1d9)]['password'],_0x43983a[_0x58da04(0x1fb)](sendInstrumentationEvent,_0x5acdd9,_0x43983a[_0x58da04(0x1e0)],messageTypes[_0x58da04(0x21e)],null,null,_0x5acdd9);const _0x18d31e=await _0x43983a[_0x58da04(0x222)](promisifiedRequest,_0x527ddf);if(_0x43983a['EWaon'](_0x18d31e,null)&&_0x43983a[_0x58da04(0x20d)](_0x18d31e,undefined)&&_0x43983a[_0x58da04(0x20f)](_0x18d31e[_0x58da04(0x202)],0xc8)){const _0x2a1e1e=JSON['parse'](_0x18d31e['body']);console[_0x58da04(0x1d8)](_0x43983a[_0x58da04(0x234)]);const _0xe7f8c1=[];_0xe7f8c1[_0x58da04(0x1ec)]([_0x43983a['sAXiQ'],_0x43983a[_0x58da04(0x1e6)],_0x43983a['LguxQ'],_0x43983a[_0x58da04(0x204)],_0x43983a[_0x58da04(0x233)],_0x43983a[_0x58da04(0x21f)]]),_0x2a1e1e[_0x58da04(0x213)](_0x35f9ad=>{const _0x1c6a44=_0x58da04;_0xe7f8c1[_0x1c6a44(0x1ec)]([_0x35f9ad['id'],_0x35f9ad['name'],_0x35f9ad[_0x1c6a44(0x1ff)],_0x35f9ad[_0x1c6a44(0x205)],_0x35f9ad[_0x1c6a44(0x1f9)],_0x35f9ad['clusterName']]);}),console[_0x58da04(0x1d8)](_0x43983a['GnAvN'](table,_0xe7f8c1)),process['exit'](0x0);}_0x43983a[_0x58da04(0x1ea)](_0x18d31e[_0x58da04(0x202)],0x191)&&(console[_0x58da04(0x22d)](_0x58da04(0x1e3)),await _0x43983a['ipWpN'](sendInstrumentationEvent,_0x5acdd9,_0x43983a[_0x58da04(0x1e0)],messageTypes[_0x58da04(0x20a)],_0x43983a[_0x58da04(0x210)],null,_0x5acdd9),process[_0x58da04(0x231)](0x1)),console[_0x58da04(0x22d)](_0x58da04(0x232)+JSON[_0x58da04(0x22f)](_0x18d31e)),await _0x43983a[_0x58da04(0x1fb)](sendInstrumentationEvent,_0x5acdd9,_0x43983a[_0x58da04(0x1e0)],messageTypes[_0x58da04(0x20a)],_0x43983a[_0x58da04(0x207)],_0x18d31e,_0x5acdd9),process[_0x58da04(0x231)](0x1);}catch(_0xcfae56){console[_0x58da04(0x22d)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0xcfae56[_0x58da04(0x21d)]),await _0x43983a[_0x58da04(0x208)](sendInstrumentationEvent,_0x5acdd9,_0x43983a[_0x58da04(0x1e0)],messageTypes[_0x58da04(0x20a)],_0x43983a[_0x58da04(0x211)],_0xcfae56,_0x5acdd9),process[_0x58da04(0x231)](0x1);}};
1
+ function a16_0x1256(){const _0x1e77d2=['1876553NqBOGD','stringify','10HXjtNp','bstackUsername','grid-name','227950YFpNpS','lVFWF','queued','GzLgs','stack','request','INFO','status','boolean','password','VuqBK','clusterName','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','requestId','grid','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','readFileSync','method','iDNLl','GET','options','name','fbVGa','server-error','list-grids-called','exit','bstackAccesskey','description','IpHdj','ERROR','argv','../../utils/instrumentationUtils','parse','mjOTT','cluster-name','../../utils/utilityMethods','kQmtR','log','/packages/cli/get-all-grids','yXWRn','init-not-called','error','type','builder','uuid','16PrTrIg','WSmjr','uhDKI','2258244rrprNo','allGrids','YdDem','433252CtHthN','statusCode','unknown-error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','desc','Failed\x20to\x20list\x20resources!\x20Error:\x20','ZGNGl','/packages/cli/get-grids','DFENH','qMNln','mHbps','auth','handler','existsSync','9256077goWLEY','push','huazV','username','util','promisify','PNWsJ','Browserstack','778527LEwTnM','10TAcCMU','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','MdPyK','epilogue','aqliF','https://','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','889628Bupshr','running'];a16_0x1256=function(){return _0x1e77d2;};return a16_0x1256();}const a16_0x889ee7=a16_0x8a6f;function a16_0x8a6f(_0xa5edc8,_0x5d9ee2){const _0x1256ec=a16_0x1256();return a16_0x8a6f=function(_0x8a6f31,_0x46eab3){_0x8a6f31=_0x8a6f31-0xa7;let _0x54ee57=_0x1256ec[_0x8a6f31];return _0x54ee57;},a16_0x8a6f(_0xa5edc8,_0x5d9ee2);}(function(_0x4edc76,_0x1a92dd){const _0x5f020b=a16_0x8a6f,_0x52d125=_0x4edc76();while(!![]){try{const _0x1fa9c5=-parseInt(_0x5f020b(0xdf))/0x1+parseInt(_0x5f020b(0xd8))/0x2+-parseInt(_0x5f020b(0xd0))/0x3+-parseInt(_0x5f020b(0xba))/0x4*(-parseInt(_0x5f020b(0xdc))/0x5)+-parseInt(_0x5f020b(0xb7))/0x6+parseInt(_0x5f020b(0xda))/0x7*(-parseInt(_0x5f020b(0xb4))/0x8)+-parseInt(_0x5f020b(0xc8))/0x9*(-parseInt(_0x5f020b(0xd1))/0xa);if(_0x1fa9c5===_0x1a92dd)break;else _0x52d125['push'](_0x52d125['shift']());}catch(_0x31a6e4){_0x52d125['push'](_0x52d125['shift']());}}}(a16_0x1256,0x46c6e));const fs=require('fs'),util=require(a16_0x889ee7(0xcc)),request=require(a16_0x889ee7(0xe4)),{table}=require('table'),{v4:uuidv4}=require(a16_0x889ee7(0xb3)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath}=require(a16_0x889ee7(0xaa)),{sendInstrumentationEvent}=require(a16_0x889ee7(0xfe)),promisifiedRequest=util[a16_0x889ee7(0xcd)](request);exports['command']='grids',exports[a16_0x889ee7(0xbe)]=a16_0x889ee7(0xee),exports[a16_0x889ee7(0xb2)]=function(_0x1865a6){const _0x20c84e=a16_0x889ee7,_0x3f4a54={};_0x3f4a54[_0x20c84e(0xab)]=_0x20c84e(0xd2),_0x3f4a54[_0x20c84e(0xc2)]=_0x20c84e(0xe7),_0x3f4a54[_0x20c84e(0xe0)]='help';const _0x55e62a=_0x3f4a54,_0x2494b8={};_0x2494b8[_0x20c84e(0xfa)]=_0x55e62a['kQmtR'],_0x2494b8[_0x20c84e(0xb1)]=_0x55e62a['DFENH'];const _0x258204={};return _0x258204['all-grids']=_0x2494b8,_0x1865a6['usage'](HELP_HEADER_MESSAGE['list'][_0x20c84e(0xed)])[_0x20c84e(0xd4)](HELP_FOOTER_MESSAGE)[_0x20c84e(0xf3)](_0x258204)['help'](_0x55e62a['lVFWF'])[_0x20c84e(0xfd)];},exports[a16_0x889ee7(0xc6)]=async function(_0xfe47ec){const _0x41ebe7=a16_0x889ee7,_0xeb8bf4={'GzLgs':function(_0x4ebb82){return _0x4ebb82();},'uhDKI':_0x41ebe7(0xeb),'mjOTT':function(_0x557389,_0x551e3f,_0x2a1627,_0xa5ef,_0x562f8e,_0x4b0a54,_0x59a8c8){return _0x557389(_0x551e3f,_0x2a1627,_0xa5ef,_0x562f8e,_0x4b0a54,_0x59a8c8);},'MdPyK':_0x41ebe7(0xf7),'YdDem':_0x41ebe7(0xaf),'mHbps':_0x41ebe7(0xf2),'yXWRn':function(_0x4242fd,_0x32753e,_0x22c7a9,_0x5c194b,_0x11a900,_0x2e1473,_0x4b5229){return _0x4242fd(_0x32753e,_0x22c7a9,_0x5c194b,_0x11a900,_0x2e1473,_0x4b5229);},'fbVGa':function(_0x48986f,_0x5ca800){return _0x48986f(_0x5ca800);},'WSmjr':function(_0x51b38e,_0x57f066){return _0x51b38e!==_0x57f066;},'oaMff':function(_0x5b183,_0xe783fb){return _0x5b183!==_0xe783fb;},'huazV':function(_0x47192a,_0x4fc6ea){return _0x47192a===_0x4fc6ea;},'IpHdj':'\x0aFound\x20the\x20following\x20grids:\x0a','trxOl':'grid-id','PNWsJ':_0x41ebe7(0xde),'LQaBN':_0x41ebe7(0xe6),'OpFVI':_0x41ebe7(0xd9),'aqliF':_0x41ebe7(0xe1),'ToUbE':_0x41ebe7(0xa9),'vAmhS':function(_0x1a0c19,_0x5b4296,_0x45e2d9,_0x4cb9a4,_0x3086f7,_0x31697c,_0x1a6665){return _0x1a0c19(_0x5b4296,_0x45e2d9,_0x4cb9a4,_0x3086f7,_0x31697c,_0x1a6665);},'qMNln':'unauthorised','iDNLl':_0x41ebe7(0xf6),'ZGNGl':function(_0x3aae90,_0x3f217e,_0x55d842,_0x1c854a,_0x31056a,_0xceb507,_0x34574c){return _0x3aae90(_0x3f217e,_0x55d842,_0x1c854a,_0x31056a,_0xceb507,_0x34574c);},'VuqBK':_0x41ebe7(0xbc)};try{global_registry[_0x41ebe7(0xec)]=_0xeb8bf4[_0x41ebe7(0xe2)](uuidv4);!fs[_0x41ebe7(0xc7)](_0xeb8bf4[_0x41ebe7(0xe2)](getCredentialsPath))&&(console[_0x41ebe7(0xb0)](_0xeb8bf4[_0x41ebe7(0xb6)]),await _0xeb8bf4[_0x41ebe7(0xa8)](sendInstrumentationEvent,_0xfe47ec,_0xeb8bf4['MdPyK'],messageTypes['ERROR'],_0xeb8bf4[_0x41ebe7(0xb9)],null,_0xfe47ec),process[_0x41ebe7(0xf8)](0x1));const _0x2ec0d7=JSON['parse'](fs[_0x41ebe7(0xef)](_0xeb8bf4[_0x41ebe7(0xe2)](getCredentialsPath)));let _0x23e45b=_0x41ebe7(0xd6)+AG_API_URL+_0x41ebe7(0xc1);_0xfe47ec[_0x41ebe7(0xb8)]&&(_0x23e45b=_0x41ebe7(0xd6)+AG_API_URL+_0x41ebe7(0xad));const _0xefcd50={};_0xefcd50[_0x41ebe7(0xcb)]=_0x2ec0d7['Browserstack']['username'],_0xefcd50[_0x41ebe7(0xe8)]=_0x2ec0d7[_0x41ebe7(0xcf)][_0x41ebe7(0xe8)];const _0x30b196={};_0x30b196['url']=_0x23e45b,_0x30b196[_0x41ebe7(0xf0)]=_0xeb8bf4[_0x41ebe7(0xc4)],_0x30b196[_0x41ebe7(0xc5)]=_0xefcd50;const _0x537189=_0x30b196;global_registry[_0x41ebe7(0xdd)]=_0x2ec0d7[_0x41ebe7(0xcf)]['username'],global_registry[_0x41ebe7(0xf9)]=_0x2ec0d7[_0x41ebe7(0xcf)][_0x41ebe7(0xe8)],_0xeb8bf4[_0x41ebe7(0xae)](sendInstrumentationEvent,_0xfe47ec,_0xeb8bf4['MdPyK'],messageTypes[_0x41ebe7(0xe5)],null,null,_0xfe47ec);const _0x5a21ee=await _0xeb8bf4['fbVGa'](promisifiedRequest,_0x537189);if(_0xeb8bf4[_0x41ebe7(0xb5)](_0x5a21ee,null)&&_0xeb8bf4['oaMff'](_0x5a21ee,undefined)&&_0xeb8bf4[_0x41ebe7(0xca)](_0x5a21ee[_0x41ebe7(0xbb)],0xc8)){const _0x3fe103=JSON[_0x41ebe7(0xa7)](_0x5a21ee['body']);console[_0x41ebe7(0xac)](_0xeb8bf4[_0x41ebe7(0xfb)]);const _0x55c15b=[];_0x55c15b[_0x41ebe7(0xc9)]([_0xeb8bf4['trxOl'],_0xeb8bf4[_0x41ebe7(0xce)],_0xeb8bf4['LQaBN'],_0xeb8bf4['OpFVI'],_0xeb8bf4[_0x41ebe7(0xd5)],_0xeb8bf4['ToUbE']]),_0x3fe103['forEach'](_0x59c9cf=>{const _0x26be2c=_0x41ebe7;_0x55c15b[_0x26be2c(0xc9)]([_0x59c9cf['id'],_0x59c9cf[_0x26be2c(0xf4)],_0x59c9cf[_0x26be2c(0xe6)],_0x59c9cf[_0x26be2c(0xd9)],_0x59c9cf[_0x26be2c(0xe1)],_0x59c9cf[_0x26be2c(0xea)]]);}),console[_0x41ebe7(0xac)](_0xeb8bf4[_0x41ebe7(0xf5)](table,_0x55c15b)),process[_0x41ebe7(0xf8)](0x0);}_0xeb8bf4['huazV'](_0x5a21ee[_0x41ebe7(0xbb)],0x191)&&(console[_0x41ebe7(0xb0)](_0x41ebe7(0xbd)),await _0xeb8bf4['vAmhS'](sendInstrumentationEvent,_0xfe47ec,_0xeb8bf4[_0x41ebe7(0xd3)],messageTypes[_0x41ebe7(0xfc)],_0xeb8bf4[_0x41ebe7(0xc3)],null,_0xfe47ec),process[_0x41ebe7(0xf8)](0x1)),console[_0x41ebe7(0xb0)](_0x41ebe7(0xd7)+JSON[_0x41ebe7(0xdb)](_0x5a21ee)),await _0xeb8bf4[_0x41ebe7(0xae)](sendInstrumentationEvent,_0xfe47ec,_0xeb8bf4[_0x41ebe7(0xd3)],messageTypes[_0x41ebe7(0xfc)],_0xeb8bf4[_0x41ebe7(0xf1)],_0x5a21ee,_0xfe47ec),process[_0x41ebe7(0xf8)](0x1);}catch(_0x5685f7){console[_0x41ebe7(0xb0)](_0x41ebe7(0xbf)+_0x5685f7[_0x41ebe7(0xe3)]),await _0xeb8bf4[_0x41ebe7(0xc0)](sendInstrumentationEvent,_0xfe47ec,_0xeb8bf4[_0x41ebe7(0xd3)],messageTypes[_0x41ebe7(0xfc)],_0xeb8bf4[_0x41ebe7(0xe9)],_0x5685f7,_0xfe47ec),process[_0x41ebe7(0xf8)](0x1);}};