browserstack-node-sdk 1.31.4 → 1.31.6

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 (106) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/config/constants.js +1 -1
  18. package/ats/src/config/logger.js +1 -1
  19. package/ats/src/index.js +1 -1
  20. package/ats/src/utils/AWSUtils.js +1 -1
  21. package/ats/src/utils/createAutoscalerStack.js +1 -1
  22. package/ats/src/utils/createClusterStack.js +1 -1
  23. package/ats/src/utils/createk8sClient.js +1 -1
  24. package/ats/src/utils/deleteStack.js +1 -1
  25. package/ats/src/utils/gridComponents.js +1 -1
  26. package/ats/src/utils/hstUtils.js +1 -1
  27. package/ats/src/utils/instrumentationUtils.js +1 -1
  28. package/ats/src/utils/userInput.js +1 -1
  29. package/ats/src/utils/utilityMethods.js +1 -1
  30. package/ats/src/utils/webSocketUtils.js +1 -1
  31. package/package.json +1 -1
  32. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  33. package/src/bin/codeceptjs/command.js +1 -1
  34. package/src/bin/cucumber-js/command.js +1 -1
  35. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  36. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  37. package/src/bin/cucumber-js/test.setup.js +1 -1
  38. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  39. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  40. package/src/bin/jest/command.js +1 -1
  41. package/src/bin/jest/customImplements/customCircus.js +1 -1
  42. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  43. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  44. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  45. package/src/bin/jest/jest.setup.js +1 -1
  46. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  47. package/src/bin/jest/test-observability/helper.js +1 -1
  48. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  49. package/src/bin/jest/test-observability/test-details.js +1 -1
  50. package/src/bin/jest/test_before.setup.js +1 -1
  51. package/src/bin/launcher/launcher.js +1 -1
  52. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  53. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  54. package/src/bin/mocha/command.js +1 -1
  55. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  56. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  57. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  58. package/src/bin/mocha/test.setup.js +1 -1
  59. package/src/bin/nightwatch/command.js +1 -1
  60. package/src/bin/playwright/accessibility-helper.js +1 -1
  61. package/src/bin/playwright/command.js +1 -1
  62. package/src/bin/playwright/globalSetup.js +1 -1
  63. package/src/bin/playwright/mock-process.js +1 -1
  64. package/src/bin/playwright/modifyPlaywrightConf.js +1 -0
  65. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  66. package/src/bin/playwright/reporter/reporter.js +1 -1
  67. package/src/bin/playwright/reporter/test-details.js +1 -1
  68. package/src/bin/runner.js +1 -1
  69. package/src/bin/setup.js +1 -1
  70. package/src/bin/test-runner/index.js +1 -1
  71. package/src/bin/test-runner/runTest.js +1 -1
  72. package/src/bin/test-runner/testWorker.js +1 -1
  73. package/src/bin/utils/constants.js +1 -1
  74. package/src/bin/utils/log4jsAppender.js +1 -1
  75. package/src/bin/utils/logPatcher.js +1 -1
  76. package/src/bin/utils/logReportingAPI.js +1 -1
  77. package/src/bin/vanilla-js/command.js +1 -1
  78. package/src/browserStackSdk.js +1 -0
  79. package/src/helpers/BrowserStackSetup.js +1 -1
  80. package/src/helpers/accessibility-automation/constants.js +1 -1
  81. package/src/helpers/accessibility-automation/helper.js +1 -1
  82. package/src/helpers/ats/constants.js +1 -1
  83. package/src/helpers/ats/helper.js +1 -1
  84. package/src/helpers/capsMapping.js +1 -1
  85. package/src/helpers/helper.js +1 -1
  86. package/src/helpers/logger.js +1 -1
  87. package/src/helpers/patchHelpers.js +1 -1
  88. package/src/helpers/percy/Percy.js +1 -1
  89. package/src/helpers/percy/PercyBinary.js +1 -1
  90. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  91. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  92. package/src/helpers/percy/PercySDK.js +1 -1
  93. package/src/helpers/percy/index.js +1 -1
  94. package/src/helpers/percy/utils.js +1 -1
  95. package/src/helpers/request-spy.js +1 -1
  96. package/src/helpers/setKeepAlive.js +1 -1
  97. package/src/helpers/test-observability/constants.js +1 -1
  98. package/src/helpers/test-observability/error-handler.js +1 -1
  99. package/src/helpers/test-observability/performance-tester.js +1 -1
  100. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  101. package/src/helpers/test-observability/sessionHandler.js +1 -1
  102. package/src/helpers/test-observability/utils.js +1 -1
  103. package/src/helpers/w3cMapping.js +1 -1
  104. package/src/hubAllocationMethods.js +1 -1
  105. package/src/index.js +1 -1
  106. package/src/browserstackSDKMethods.js +0 -1
@@ -1 +1 @@
1
- function a7_0x3482(_0xe62f9f,_0x224486){const _0x162b21=a7_0x162b();return a7_0x3482=function(_0x348263,_0x3c1ed2){_0x348263=_0x348263-0xe5;let _0x2ff2ed=_0x162b21[_0x348263];return _0x2ff2ed;},a7_0x3482(_0xe62f9f,_0x224486);}const a7_0x4e10fb=a7_0x3482;(function(_0x18942a,_0x49a126){const _0xaf3ca2=a7_0x3482,_0x522c17=_0x18942a();while(!![]){try{const _0x376fe8=parseInt(_0xaf3ca2(0xfc))/0x1+-parseInt(_0xaf3ca2(0x13d))/0x2+parseInt(_0xaf3ca2(0x106))/0x3*(-parseInt(_0xaf3ca2(0xf0))/0x4)+parseInt(_0xaf3ca2(0x125))/0x5+parseInt(_0xaf3ca2(0xef))/0x6*(parseInt(_0xaf3ca2(0xe5))/0x7)+-parseInt(_0xaf3ca2(0x12c))/0x8+-parseInt(_0xaf3ca2(0x107))/0x9*(parseInt(_0xaf3ca2(0x118))/0xa);if(_0x376fe8===_0x49a126)break;else _0x522c17['push'](_0x522c17['shift']());}catch(_0x2880fe){_0x522c17['push'](_0x522c17['shift']());}}}(a7_0x162b,0xbecd2));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x4e10fb(0x11b)),{logger}=require(a7_0x4e10fb(0x145)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');function a7_0x162b(){const _0x243745=['string','NFzIf','cbOGc','Kxbwc','bstack-accesskey','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','advance-options','430ylrWjM','demandOption','builder','../../config/constants','Pass\x20the\x20ID\x20of\x20the\x20Grid','cSXRH','WZVlS','OZvLm','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','DtumT','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','rtmcr','grid-id','7296085ilvGpl','hiuGd','AllBu','UkMpo','zFPVr','FUbxB','yrtRp','5310008gnJFcQ','GhgyL','epilogue','useStaging','type','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','nHjDd','SgfML','pHsDe','Advance\x20options\x20for\x20Browserstack\x20Local','JBgWQ','eHOta','BBhlT','wUSFa','YLOPA','UBSek','XhRHQ','1357154uJOrtN','cabQV','SIGTERM','nKOsz','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','isRunning','SIGINT','IOcba','../../config/logger','info','ouLYv','ytnyS','command','FNDII','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','JTCIe','isTrialGrid','1792189hNLJbZ','argv','usage','customRepeaters','jSvWi','help','fKPqe','kbZac','bstackAccesskey','oVTAb','6fUlQQm','20jEjGVx','error','SUmZP','apZZY','accessKey','exit','HCvJa','FOBVX','wLYOf','JIfxO','handler','browserStackLocalOptions','1141200vBcGnx','use-staging','tOleY','pLxXn','Grid\x20type:\x20Trial','create','Xnhpk','qGfro','bstack-username','bBIEq','275907URgkhO','57087LfTiEv','quKUK','options','PMvMu','Fxxgi','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','neDtG','description','advanceOptions','wudDo'];a7_0x162b=function(){return _0x243745;};return a7_0x162b();}exports[a7_0x4e10fb(0x149)]='grid',exports['desc']=a7_0x4e10fb(0x122),exports[a7_0x4e10fb(0x11a)]=_0x5ded7c=>{const _0x35d43c=a7_0x4e10fb,_0x41c211={};_0x41c211['Fxxgi']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x41c211[_0x35d43c(0xff)]=_0x35d43c(0x111),_0x41c211[_0x35d43c(0x132)]=_0x35d43c(0x10c),_0x41c211[_0x35d43c(0x12d)]=_0x35d43c(0x11c),_0x41c211['wLYOf']=_0x35d43c(0x131),_0x41c211[_0x35d43c(0x11d)]='Advance\x20options\x20for\x20Browserstack\x20Local',_0x41c211[_0x35d43c(0x136)]='help';const _0x292f12=_0x41c211,_0x1594d6={};_0x1594d6['description']=_0x292f12[_0x35d43c(0x10b)],_0x1594d6[_0x35d43c(0x130)]=_0x292f12[_0x35d43c(0xff)];const _0x4060b1={};_0x4060b1['description']=_0x292f12[_0x35d43c(0x132)],_0x4060b1[_0x35d43c(0x130)]=_0x292f12[_0x35d43c(0xff)];const _0x5dab6b={};_0x5dab6b[_0x35d43c(0x119)]=!![],_0x5dab6b[_0x35d43c(0x10e)]=_0x292f12[_0x35d43c(0x12d)],_0x5dab6b[_0x35d43c(0x130)]=_0x292f12['pLxXn'];const _0x576df3={};_0x576df3[_0x35d43c(0x10e)]=_0x292f12[_0x35d43c(0xf8)],_0x576df3[_0x35d43c(0x130)]=_0x292f12[_0x35d43c(0xff)];const _0x5650ae={};_0x5650ae[_0x35d43c(0x10e)]=_0x292f12[_0x35d43c(0x11d)],_0x5650ae['type']=_0x292f12[_0x35d43c(0xff)];const _0x2e4676={};return _0x2e4676[_0x35d43c(0x104)]=_0x1594d6,_0x2e4676[_0x35d43c(0x115)]=_0x4060b1,_0x2e4676[_0x35d43c(0x124)]=_0x5dab6b,_0x2e4676[_0x35d43c(0xfd)]=_0x576df3,_0x2e4676[_0x35d43c(0x117)]=_0x5650ae,_0x5ded7c[_0x35d43c(0xe7)](HELP_HEADER_MESSAGE[_0x35d43c(0x101)])[_0x35d43c(0x12e)](HELP_FOOTER_MESSAGE)['options'](_0x2e4676)[_0x35d43c(0xea)](_0x292f12[_0x35d43c(0x136)])['argv'];},exports[a7_0x4e10fb(0xfa)]=async _0x71a47b=>{const _0x4600de=a7_0x4e10fb,_0xf523f1={'UkMpo':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','nKOsz':_0x4600de(0x111),'SgfML':_0x4600de(0x10c),'xSsTQ':'Pass\x20the\x20ID\x20of\x20the\x20Grid','JIfxO':_0x4600de(0x131),'jSvWi':_0x4600de(0x135),'PMvMu':_0x4600de(0xea),'YLOPA':function(_0x5aed6e,_0x58f968){return _0x5aed6e!==_0x58f968;},'noBXc':_0x4600de(0x108),'SSTwn':_0x4600de(0x112),'apZZY':function(_0x33bc10,_0x1dd2cf){return _0x33bc10(_0x1dd2cf);},'neDtG':function(_0x494070,_0x56e0c0){return _0x494070==_0x56e0c0;},'fKPqe':function(_0x1d37e3,_0x36fe4b){return _0x1d37e3(_0x36fe4b);},'DtumT':'beforeExit','FNDII':_0x4600de(0x143),'ouLYv':_0x4600de(0x13f),'jkZVZ':function(_0x1f0b45,_0x5ac431){return _0x1f0b45==_0x5ac431;},'rtmcr':function(_0x318d8b,_0x21868f){return _0x318d8b(_0x21868f);},'FOBVX':function(_0x23c558,_0x238c3d){return _0x23c558!==_0x238c3d;},'BBhlT':_0x4600de(0x103),'zZPuI':_0x4600de(0x13e),'Gdlde':function(_0x51858e,_0x3435bb){return _0x51858e==_0x3435bb;},'byrkq':function(_0x33ae5f,_0x3d6c0e){return _0x33ae5f(_0x3d6c0e);},'WZVlS':function(_0x251b81,_0x1e703b){return _0x251b81==_0x1e703b;},'AllBu':function(_0x475eed,_0x4b4467){return _0x475eed(_0x4b4467);},'hiuGd':function(_0x29b246,_0x39b05e){return _0x29b246(_0x39b05e);},'JTCIe':function(_0x3c2c37,_0x107156,_0x43d5d6){return _0x3c2c37(_0x107156,_0x43d5d6);},'FUbxB':function(_0x15a224,_0xbbf33c){return _0x15a224&&_0xbbf33c;},'XhRHQ':_0x4600de(0xec),'OfgHM':'Wqwmf','gMABo':function(_0x27eab4,_0x5e4fd5,_0x4b1423,_0x3cf401){return _0x27eab4(_0x5e4fd5,_0x4b1423,_0x3cf401);},'tOleY':function(_0x4992ab,_0x40261c){return _0x4992ab===_0x40261c;},'Xnhpk':'gZbZv','wudDo':function(_0x2a3a71,_0x22dd8e){return _0x2a3a71===_0x22dd8e;},'zFPVr':'true','ytnyS':function(_0x2eb3e8,_0x38587c){return _0x2eb3e8===_0x38587c;},'cbOGc':_0x4600de(0x139),'IOcba':_0x4600de(0x137),'yrtRp':function(_0x3ce00d,_0x16cbd8){return _0x3ce00d!==_0x16cbd8;},'oVTAb':_0x4600de(0xf6),'pHsDe':_0x4600de(0x114),'OZvLm':function(_0x19a63b,_0xbc3717){return _0x19a63b(_0xbc3717);},'SUmZP':function(_0x1c5311,_0x25947b){return _0x1c5311===_0x25947b;},'oeRgU':_0x4600de(0x13b),'iFOZX':function(_0x1451f4,_0x5b1474){return _0x1451f4(_0x5b1474);}};let _0x5e71ee=_0x71a47b['bstackUsername'],_0x59242c=_0x71a47b[_0x4600de(0xed)],_0x4210d6=_0x71a47b[_0x4600de(0x10f)];const _0x1b8648=_0x340a70=>{const _0x35547f=_0x4600de;if(_0xf523f1[_0x35547f(0x13a)](_0xf523f1['noBXc'],_0xf523f1['SSTwn']))logger[_0x35547f(0xf1)](_0x340a70),process[_0x35547f(0xf5)](0x1);else{const _0x1510d6={};_0x1510d6['description']=_0xf523f1[_0x35547f(0x128)],_0x1510d6['type']=_0xf523f1[_0x35547f(0x140)];const _0x45d775={};_0x45d775[_0x35547f(0x10e)]=_0xf523f1[_0x35547f(0x133)],_0x45d775[_0x35547f(0x130)]=_0xf523f1[_0x35547f(0x140)];const _0x3d891d={};_0x3d891d[_0x35547f(0x119)]=!![],_0x3d891d[_0x35547f(0x10e)]=_0xf523f1['xSsTQ'],_0x3d891d['type']=_0xf523f1[_0x35547f(0x140)];const _0x1960a8={};_0x1960a8['description']=_0xf523f1[_0x35547f(0xf9)],_0x1960a8[_0x35547f(0x130)]=_0xf523f1[_0x35547f(0x140)];const _0x52218a={};_0x52218a[_0x35547f(0x10e)]=_0xf523f1[_0x35547f(0xe9)],_0x52218a[_0x35547f(0x130)]=_0xf523f1['nKOsz'];const _0x53d9d3={};return _0x53d9d3[_0x35547f(0x104)]=_0x1510d6,_0x53d9d3[_0x35547f(0x115)]=_0x45d775,_0x53d9d3[_0x35547f(0x124)]=_0x3d891d,_0x53d9d3[_0x35547f(0xfd)]=_0x1960a8,_0x53d9d3[_0x35547f(0x117)]=_0x52218a,_0x48911a['usage'](_0x22f215[_0x35547f(0x101)])[_0x35547f(0x12e)](_0x4302dd)[_0x35547f(0x109)](_0x53d9d3)['help'](_0xf523f1[_0x35547f(0x10a)])[_0x35547f(0xe6)];}};[_0x5e71ee,_0x59242c]=_0xf523f1[_0x4600de(0x14c)](fetchOrUpdateUserConfig,_0x5e71ee,_0x59242c);!_0xf523f1[_0x4600de(0x12a)](_0x5e71ee,_0x59242c)&&(_0xf523f1['FOBVX'](_0xf523f1[_0x4600de(0x13c)],_0xf523f1['OfgHM'])?_0xf523f1[_0x4600de(0x126)](_0x1b8648,_0x4600de(0x116)):_0xf523f1[_0x4600de(0xf3)](_0x4d4350,_0x4600de(0x120)));let _0x4d9a19=_0x71a47b['gridId'],[_0x4a6f17,_0x49dcd7]=await _0xf523f1['gMABo'](getGridDetails,_0x5e71ee,_0x59242c,_0x4d9a19);if(!_0x49dcd7){if(_0xf523f1[_0x4600de(0xfe)](_0xf523f1[_0x4600de(0x102)],_0xf523f1[_0x4600de(0x102)]))_0xf523f1[_0x4600de(0x123)](_0x1b8648,_0x4600de(0x120));else{_0x318a4b='Grid\x20type:\x20Trial',_0xf5a11['info'](_0x312662);try{const _0x5bc334={};_0x5bc334[_0x4600de(0xf4)]=_0x16f69f,_0x5bc334[_0x4600de(0xe8)]=_0x4e8243[_0x4600de(0xe8)],_0x5bc334[_0x4600de(0xfb)]=_0x3da07b;const _0x2a916a=_0x5bc334,_0x4973bf=_0xf523f1[_0x4600de(0xf3)](_0x182394,_0x2a916a);let _0xaa84ee=0x0;const _0x398616=async()=>{const _0xbd05ba=_0x4600de;_0xaa84ee++,_0xf523f1[_0xbd05ba(0x10d)](_0xaa84ee,0x1)&&_0x4973bf&&_0x4973bf['isRunning']()&&_0xf523f1['fKPqe'](_0x3ae323,_0x4973bf);};_0x20ddb5['on'](_0xf523f1['DtumT'],_0x398616),_0x3c469a['on'](_0xf523f1[_0x4600de(0x14a)],_0x398616),_0x27a65c['on'](_0xf523f1[_0x4600de(0x147)],_0x398616),_0x297e07='We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.',_0x4dc601['info'](_0x3127df);}catch(_0x17e7d0){_0xf523f1[_0x4600de(0xf3)](_0x41f404,_0x4600de(0x141));}}}let _0x3141bd=_0xf523f1[_0x4600de(0x110)](_0x71a47b[_0x4600de(0x12f)],_0xf523f1[_0x4600de(0x129)])?!![]:![];if(_0x49dcd7&&_0x49dcd7[_0x4600de(0x14d)]&&_0x3141bd){if(_0xf523f1[_0x4600de(0x148)](_0xf523f1[_0x4600de(0x113)],_0xf523f1[_0x4600de(0x144)]))_0xf523f1[_0x4600de(0xeb)](_0xe28b51,_0x4600de(0x116));else{logMessage=_0x4600de(0x100),logger[_0x4600de(0x146)](logMessage);try{if(_0xf523f1[_0x4600de(0x12b)](_0xf523f1[_0x4600de(0xee)],_0xf523f1[_0x4600de(0x134)])){const _0x13f7c6={};_0x13f7c6[_0x4600de(0xf4)]=_0x59242c,_0x13f7c6[_0x4600de(0xe8)]=_0x49dcd7['customRepeaters'],_0x13f7c6[_0x4600de(0xfb)]=_0x4210d6;const _0x4528c5=_0x13f7c6,_0x3be69d=_0xf523f1[_0x4600de(0x11f)](startLocalBinarySync,_0x4528c5);let _0x308ee7=0x0;const _0x53c2fe=async()=>{const _0x296a94=_0x4600de;if(_0xf523f1[_0x296a94(0xf7)](_0xf523f1[_0x296a94(0x138)],_0xf523f1['zZPuI']))_0x308ee7++,_0xf523f1['Gdlde'](_0x308ee7,0x1)&&_0x3be69d&&_0x3be69d[_0x296a94(0x142)]()&&_0xf523f1['byrkq'](stopLocalBinary,_0x3be69d);else{const _0x3a542d={'jyEGq':function(_0x2b3f88,_0x5c0ca9){return _0xf523f1['jkZVZ'](_0x2b3f88,_0x5c0ca9);},'bBIEq':function(_0x649118,_0x24d8d2){return _0xf523f1['rtmcr'](_0x649118,_0x24d8d2);}},_0x505944={};_0x505944[_0x296a94(0xf4)]=_0x44e075,_0x505944['customRepeaters']=_0x55360f[_0x296a94(0xe8)],_0x505944['browserStackLocalOptions']=_0x1b96c4;const _0x34560f=_0x505944,_0x7a6835=_0xf523f1[_0x296a94(0xf3)](_0x28b9ff,_0x34560f);let _0x153ff5=0x0;const _0x280ca2=async()=>{const _0x18b6ea=_0x296a94;_0x153ff5++,_0x3a542d['jyEGq'](_0x153ff5,0x1)&&_0x7a6835&&_0x7a6835[_0x18b6ea(0x142)]()&&_0x3a542d[_0x18b6ea(0x105)](_0x4bca51,_0x7a6835);};_0x57b63b['on'](_0xf523f1[_0x296a94(0x121)],_0x280ca2),_0x34d491['on'](_0xf523f1['FNDII'],_0x280ca2),_0x3fdb12['on'](_0xf523f1[_0x296a94(0x147)],_0x280ca2),_0x579425=_0x296a94(0x14b),_0x2feef0[_0x296a94(0x146)](_0x17e064);}};process['on'](_0xf523f1[_0x4600de(0x121)],_0x53c2fe),process['on'](_0xf523f1[_0x4600de(0x14a)],_0x53c2fe),process['on'](_0xf523f1['ouLYv'],_0x53c2fe),logMessage=_0x4600de(0x14b),logger[_0x4600de(0x146)](logMessage);}else _0x10e649++,_0xf523f1[_0x4600de(0x11e)](_0x555ca7,0x1)&&_0x573c8b&&_0x133e66['isRunning']()&&_0xf523f1[_0x4600de(0x127)](_0x15d943,_0x37a572);}catch(_0x263416){_0xf523f1[_0x4600de(0xf2)](_0xf523f1['oeRgU'],_0xf523f1['oeRgU'])?_0xf523f1['iFOZX'](_0x1b8648,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid'):_0xf523f1[_0x4600de(0x126)](_0x23c02b,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}}process[_0x4600de(0xf5)](0x0);};
1
+ const a7_0x535216=a7_0x5108;(function(_0x290870,_0x45a5e3){const _0x39647e=a7_0x5108,_0x2243c7=_0x290870();while(!![]){try{const _0x345822=-parseInt(_0x39647e(0x168))/0x1*(-parseInt(_0x39647e(0x135))/0x2)+-parseInt(_0x39647e(0x141))/0x3+-parseInt(_0x39647e(0x174))/0x4*(parseInt(_0x39647e(0x140))/0x5)+parseInt(_0x39647e(0x172))/0x6+parseInt(_0x39647e(0x13f))/0x7+parseInt(_0x39647e(0x18f))/0x8*(parseInt(_0x39647e(0x19c))/0x9)+parseInt(_0x39647e(0x159))/0xa*(-parseInt(_0x39647e(0x15f))/0xb);if(_0x345822===_0x45a5e3)break;else _0x2243c7['push'](_0x2243c7['shift']());}catch(_0x50632f){_0x2243c7['push'](_0x2243c7['shift']());}}}(a7_0x91a1,0x31db4));function a7_0x5108(_0x4cd1bb,_0x22659a){const _0x91a17e=a7_0x91a1();return a7_0x5108=function(_0x510878,_0x525f00){_0x510878=_0x510878-0x133;let _0x23e642=_0x91a17e[_0x510878];return _0x23e642;},a7_0x5108(_0x4cd1bb,_0x22659a);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x535216(0x199)),{logger}=require(a7_0x535216(0x13d)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x535216(0x18d));exports['command']=a7_0x535216(0x18e),exports[a7_0x535216(0x195)]='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports[a7_0x535216(0x193)]=_0x5965e=>{const _0x2f2e74=a7_0x535216,_0x46e599={};_0x46e599['qcoyk']=_0x2f2e74(0x171),_0x46e599[_0x2f2e74(0x16d)]=_0x2f2e74(0x147),_0x46e599[_0x2f2e74(0x143)]=_0x2f2e74(0x191),_0x46e599[_0x2f2e74(0x137)]=_0x2f2e74(0x185),_0x46e599[_0x2f2e74(0x16a)]='Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.',_0x46e599[_0x2f2e74(0x160)]=_0x2f2e74(0x18b),_0x46e599['hwDyF']=_0x2f2e74(0x14f);const _0x799fd8=_0x46e599,_0x3dee63={};_0x3dee63[_0x2f2e74(0x133)]=_0x799fd8[_0x2f2e74(0x184)],_0x3dee63[_0x2f2e74(0x161)]=_0x799fd8[_0x2f2e74(0x16d)];const _0x2cee3c={};_0x2cee3c[_0x2f2e74(0x133)]=_0x799fd8[_0x2f2e74(0x143)],_0x2cee3c[_0x2f2e74(0x161)]=_0x799fd8[_0x2f2e74(0x16d)];const _0x5cca92={};_0x5cca92[_0x2f2e74(0x167)]=!![],_0x5cca92[_0x2f2e74(0x133)]=_0x799fd8[_0x2f2e74(0x137)],_0x5cca92['type']=_0x799fd8[_0x2f2e74(0x16d)];const _0xb4377b={};_0xb4377b[_0x2f2e74(0x133)]=_0x799fd8[_0x2f2e74(0x16a)],_0xb4377b[_0x2f2e74(0x161)]=_0x799fd8[_0x2f2e74(0x16d)];const _0x35ffd7={};_0x35ffd7[_0x2f2e74(0x133)]=_0x799fd8[_0x2f2e74(0x160)],_0x35ffd7[_0x2f2e74(0x161)]=_0x799fd8[_0x2f2e74(0x16d)];const _0x35e1bc={};return _0x35e1bc[_0x2f2e74(0x14e)]=_0x3dee63,_0x35e1bc[_0x2f2e74(0x154)]=_0x2cee3c,_0x35e1bc[_0x2f2e74(0x148)]=_0x5cca92,_0x35e1bc[_0x2f2e74(0x14a)]=_0xb4377b,_0x35e1bc[_0x2f2e74(0x176)]=_0x35ffd7,_0x5965e[_0x2f2e74(0x134)](HELP_HEADER_MESSAGE['create'])[_0x2f2e74(0x19d)](HELP_FOOTER_MESSAGE)[_0x2f2e74(0x17f)](_0x35e1bc)[_0x2f2e74(0x14f)](_0x799fd8[_0x2f2e74(0x19a)])[_0x2f2e74(0x13b)];},exports['handler']=async _0x1c9e84=>{const _0x25e5d8=a7_0x535216,_0x2f4bba={'xVcms':function(_0x46a9be,_0x299747){return _0x46a9be==_0x299747;},'ZTBmn':function(_0x281add,_0x4f53ad){return _0x281add(_0x4f53ad);},'tHpuy':function(_0x33d82d,_0x261e58){return _0x33d82d!==_0x261e58;},'vQHmD':_0x25e5d8(0x138),'iHXEF':function(_0x13096d,_0x5ea34d){return _0x13096d(_0x5ea34d);},'TIvTf':_0x25e5d8(0x177),'pslaQ':_0x25e5d8(0x15b),'ylbGW':_0x25e5d8(0x144),'HHfBv':function(_0x3148ed,_0x3922ec){return _0x3148ed==_0x3922ec;},'Somyy':function(_0x5c1cde,_0x175157){return _0x5c1cde(_0x175157);},'ctXFw':function(_0x1c4461,_0x1e0d01){return _0x1c4461===_0x1e0d01;},'PtSAi':_0x25e5d8(0x13e),'YZetU':_0x25e5d8(0x196),'wZlBy':function(_0x387839,_0x447a4f){return _0x387839==_0x447a4f;},'Fpbhz':function(_0x1f6a7e,_0x1a678e){return _0x1f6a7e(_0x1a678e);},'dggCA':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','iqObu':'string','wSVgK':_0x25e5d8(0x191),'KfLXp':_0x25e5d8(0x185),'NXjSR':'Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','pcloE':_0x25e5d8(0x18b),'JYcUX':_0x25e5d8(0x14f),'uJydY':function(_0x58a9f8,_0x430d8a){return _0x58a9f8(_0x430d8a);},'wcWBH':function(_0x2df7d,_0xfe2f77,_0x36afb1){return _0x2df7d(_0xfe2f77,_0x36afb1);},'NfxCG':function(_0x907729,_0xbfa96){return _0x907729&&_0xbfa96;},'dJWrL':_0x25e5d8(0x16b),'mPWte':function(_0x5b2613,_0x576c7a,_0xa2271f,_0x39a090){return _0x5b2613(_0x576c7a,_0xa2271f,_0x39a090);},'vEqLJ':'JuASW','nDgDw':function(_0x2b0216,_0x198c06){return _0x2b0216(_0x198c06);},'zDtYS':_0x25e5d8(0x150),'qQaWH':function(_0x582008,_0x19c9b4){return _0x582008!==_0x19c9b4;},'LfdoS':_0x25e5d8(0x149),'MRNHn':_0x25e5d8(0x16c),'vBQoD':function(_0x4044ea,_0x27828b){return _0x4044ea!==_0x27828b;},'Bozdn':_0x25e5d8(0x15a),'oWCBb':_0x25e5d8(0x18c),'sYcBt':function(_0x1f6691,_0x53f507){return _0x1f6691(_0x53f507);},'Gbamb':_0x25e5d8(0x187),'wXgQp':_0x25e5d8(0x17e)};let _0x268461=_0x1c9e84[_0x25e5d8(0x13c)],_0x4140c0=_0x1c9e84['bstackAccesskey'],_0x4b1a39=_0x1c9e84[_0x25e5d8(0x14d)];const _0x5580f4=_0x387086=>{const _0x43ac8e=_0x25e5d8;_0x2f4bba[_0x43ac8e(0x188)](_0x2f4bba[_0x43ac8e(0x170)],_0x2f4bba[_0x43ac8e(0x170)])?(_0x1abd0f++,_0x2f4bba[_0x43ac8e(0x197)](_0x483c0a,0x1)&&_0x4da592&&_0xcd89d4['isRunning']()&&_0x2f4bba[_0x43ac8e(0x16e)](_0x20cf34,_0xb046e2)):(logger[_0x43ac8e(0x17b)](_0x387086),process[_0x43ac8e(0x181)](0x1));};[_0x268461,_0x4140c0]=_0x2f4bba[_0x25e5d8(0x14c)](fetchOrUpdateUserConfig,_0x268461,_0x4140c0);!_0x2f4bba[_0x25e5d8(0x13a)](_0x268461,_0x4140c0)&&(_0x2f4bba[_0x25e5d8(0x152)](_0x2f4bba[_0x25e5d8(0x139)],_0x2f4bba[_0x25e5d8(0x139)])?_0x2f4bba[_0x25e5d8(0x178)](_0x5580f4,_0x25e5d8(0x155)):_0x2f4bba[_0x25e5d8(0x16e)](_0x3cb5b8,_0x25e5d8(0x17a)));let _0x513c81=_0x1c9e84[_0x25e5d8(0x15c)],[_0x228c70,_0x2dcb75]=await _0x2f4bba[_0x25e5d8(0x180)](getGridDetails,_0x268461,_0x4140c0,_0x513c81);if(!_0x2dcb75){if(_0x2f4bba['ctXFw'](_0x2f4bba[_0x25e5d8(0x189)],_0x2f4bba[_0x25e5d8(0x189)]))_0x2f4bba[_0x25e5d8(0x142)](_0x5580f4,_0x25e5d8(0x17a));else{_0x109d03=_0x25e5d8(0x194),_0x27d505[_0x25e5d8(0x165)](_0x14f993);try{const _0x1a9877={};_0x1a9877[_0x25e5d8(0x15e)]=_0xf5885,_0x1a9877[_0x25e5d8(0x146)]=_0x308f6c[_0x25e5d8(0x146)],_0x1a9877[_0x25e5d8(0x190)]=_0x55c164;const _0x56797e=_0x1a9877,_0x304867=_0x2f4bba[_0x25e5d8(0x16e)](_0x15b5ae,_0x56797e);let _0xf1c66b=0x0;const _0x10fead=async()=>{const _0x59616a=_0x25e5d8;_0xf1c66b++,_0x2f4bba[_0x59616a(0x197)](_0xf1c66b,0x1)&&_0x304867&&_0x304867[_0x59616a(0x136)]()&&_0x2f4bba[_0x59616a(0x163)](_0x22d793,_0x304867);};_0x41ebfd['on'](_0x2f4bba[_0x25e5d8(0x169)],_0x10fead),_0x4ffcdf['on'](_0x2f4bba['pslaQ'],_0x10fead),_0x2f5f8c['on'](_0x2f4bba['ylbGW'],_0x10fead),_0x25fb90=_0x25e5d8(0x145),_0x4e0268[_0x25e5d8(0x165)](_0x48194f);}catch(_0x3a89e4){_0x2f4bba['iHXEF'](_0x46af68,_0x25e5d8(0x14b));}}}let _0x5812d0=_0x2f4bba[_0x25e5d8(0x152)](_0x1c9e84['useStaging'],_0x2f4bba[_0x25e5d8(0x186)])?!![]:![];if(_0x2dcb75&&_0x2dcb75['isTrialGrid']&&_0x5812d0){if(_0x2f4bba[_0x25e5d8(0x164)](_0x2f4bba[_0x25e5d8(0x156)],_0x2f4bba[_0x25e5d8(0x192)])){logMessage=_0x25e5d8(0x194),logger[_0x25e5d8(0x165)](logMessage);try{if(_0x2f4bba[_0x25e5d8(0x151)](_0x2f4bba[_0x25e5d8(0x182)],_0x2f4bba['oWCBb'])){const _0x25dfd9={};_0x25dfd9[_0x25e5d8(0x15e)]=_0x4140c0,_0x25dfd9[_0x25e5d8(0x146)]=_0x2dcb75[_0x25e5d8(0x146)],_0x25dfd9['browserStackLocalOptions']=_0x4b1a39;const _0x11759e=_0x25dfd9,_0x40fe27=_0x2f4bba['sYcBt'](startLocalBinarySync,_0x11759e);let _0x4ade87=0x0;const _0x42e758=async()=>{const _0x582960=_0x25e5d8;if(_0x2f4bba[_0x582960(0x152)](_0x2f4bba[_0x582960(0x18a)],_0x2f4bba[_0x582960(0x157)])){const _0x5f048c={'JSEVR':function(_0x3d382b,_0x438928){const _0x3330d1=_0x582960;return _0x2f4bba[_0x3330d1(0x162)](_0x3d382b,_0x438928);},'ZTpBx':function(_0x4a5d4c,_0x5f51bc){const _0x1f4a4d=_0x582960;return _0x2f4bba[_0x1f4a4d(0x163)](_0x4a5d4c,_0x5f51bc);}},_0x25d035={};_0x25d035[_0x582960(0x15e)]=_0x752f08,_0x25d035['customRepeaters']=_0x56441b[_0x582960(0x146)],_0x25d035['browserStackLocalOptions']=_0x447936;const _0x1dd240=_0x25d035,_0x2b3ce6=_0x2f4bba['Somyy'](_0x393b6e,_0x1dd240);let _0x59214c=0x0;const _0x21b630=async()=>{const _0x7e2cf4=_0x582960;_0x59214c++,_0x5f048c[_0x7e2cf4(0x17d)](_0x59214c,0x1)&&_0x2b3ce6&&_0x2b3ce6[_0x7e2cf4(0x136)]()&&_0x5f048c[_0x7e2cf4(0x183)](_0x5ab2ce,_0x2b3ce6);};_0x302ca4['on'](_0x2f4bba[_0x582960(0x169)],_0x21b630),_0x296f3b['on'](_0x2f4bba[_0x582960(0x173)],_0x21b630),_0x29f87b['on'](_0x2f4bba['ylbGW'],_0x21b630),_0x5268b7=_0x582960(0x145),_0x2b8fdb[_0x582960(0x165)](_0x2acf84);}else _0x4ade87++,_0x2f4bba[_0x582960(0x179)](_0x4ade87,0x1)&&_0x40fe27&&_0x40fe27[_0x582960(0x136)]()&&_0x2f4bba[_0x582960(0x19b)](stopLocalBinary,_0x40fe27);};process['on'](_0x2f4bba['TIvTf'],_0x42e758),process['on'](_0x2f4bba[_0x25e5d8(0x173)],_0x42e758),process['on'](_0x2f4bba[_0x25e5d8(0x175)],_0x42e758),logMessage=_0x25e5d8(0x145),logger['info'](logMessage);}else _0x377b05[_0x25e5d8(0x17b)](_0x4042c0),_0x311a3d[_0x25e5d8(0x181)](0x1);}catch(_0x573947){if(_0x2f4bba[_0x25e5d8(0x188)](_0x2f4bba[_0x25e5d8(0x153)],_0x2f4bba[_0x25e5d8(0x166)]))_0x2f4bba[_0x25e5d8(0x178)](_0x5580f4,_0x25e5d8(0x14b));else{const _0x51491d={};_0x51491d[_0x25e5d8(0x133)]=_0x2f4bba['dggCA'],_0x51491d[_0x25e5d8(0x161)]=_0x2f4bba[_0x25e5d8(0x15d)];const _0x4d1b63={};_0x4d1b63['description']=_0x2f4bba[_0x25e5d8(0x198)],_0x4d1b63[_0x25e5d8(0x161)]=_0x2f4bba[_0x25e5d8(0x15d)];const _0x443701={};_0x443701[_0x25e5d8(0x167)]=!![],_0x443701[_0x25e5d8(0x133)]=_0x2f4bba[_0x25e5d8(0x16f)],_0x443701[_0x25e5d8(0x161)]=_0x2f4bba[_0x25e5d8(0x15d)];const _0x190309={};_0x190309[_0x25e5d8(0x133)]=_0x2f4bba['NXjSR'],_0x190309[_0x25e5d8(0x161)]=_0x2f4bba[_0x25e5d8(0x15d)];const _0x5cf30a={};_0x5cf30a[_0x25e5d8(0x133)]=_0x2f4bba[_0x25e5d8(0x17c)],_0x5cf30a['type']=_0x2f4bba[_0x25e5d8(0x15d)];const _0x3d9c9a={};return _0x3d9c9a[_0x25e5d8(0x14e)]=_0x51491d,_0x3d9c9a['bstack-accesskey']=_0x4d1b63,_0x3d9c9a[_0x25e5d8(0x148)]=_0x443701,_0x3d9c9a[_0x25e5d8(0x14a)]=_0x190309,_0x3d9c9a[_0x25e5d8(0x176)]=_0x5cf30a,_0x335974[_0x25e5d8(0x134)](_0x17d7e4['create'])[_0x25e5d8(0x19d)](_0x30523d)[_0x25e5d8(0x17f)](_0x3d9c9a)[_0x25e5d8(0x14f)](_0x2f4bba[_0x25e5d8(0x158)])['argv'];}}}else _0x2f4bba['uJydY'](_0x18e435,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}process[_0x25e5d8(0x181)](0x0);};function a7_0x91a1(){const _0x57565b=['Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','MRNHn','builder','Grid\x20type:\x20Trial','desc','LNBWr','xVcms','wSVgK','../../config/constants','hwDyF','Fpbhz','1692396fEDTtt','epilogue','description','usage','114mWGTlu','isRunning','NKmQP','cxZVd','dJWrL','NfxCG','argv','bstackUsername','../../config/logger','DxKsS','2178092NQDMnd','205865yrLiAD','960222TTFJop','nDgDw','ijWvU','SIGTERM','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','customRepeaters','string','grid-id','XrxLW','use-staging','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','wcWBH','advanceOptions','bstack-username','help','true','vBQoD','ctXFw','Gbamb','bstack-accesskey','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','LfdoS','YZetU','JYcUX','30BXKNyp','FpSsV','SIGINT','gridId','iqObu','accessKey','675246eferoV','PzsxL','type','HHfBv','iHXEF','qQaWH','info','wXgQp','demandOption','1489ZWLiHl','TIvTf','FmRcm','qecsr','DTwRe','hQTfM','ZTBmn','KfLXp','vQHmD','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','993264XPZHNR','pslaQ','4CBVOaT','ylbGW','advance-options','beforeExit','uJydY','wZlBy','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','error','pcloE','JSEVR','vhAgN','options','mPWte','exit','Bozdn','ZTpBx','qcoyk','Pass\x20the\x20ID\x20of\x20the\x20Grid','zDtYS','aSAOP','tHpuy','vEqLJ','PtSAi','Advance\x20options\x20for\x20Browserstack\x20Local','FKlmw','../../utils/utilityMethods','grid','8JrRYkG','browserStackLocalOptions'];a7_0x91a1=function(){return _0x57565b;};return a7_0x91a1();}
@@ -1 +1 @@
1
- const a8_0x103525=a8_0x3c24;function a8_0x3c24(_0x34152e,_0x4abab4){const _0x313bcd=a8_0x313b();return a8_0x3c24=function(_0x3c246b,_0x10c396){_0x3c246b=_0x3c246b-0x1eb;let _0x3ef6d2=_0x313bcd[_0x3c246b];return _0x3ef6d2;},a8_0x3c24(_0x34152e,_0x4abab4);}(function(_0x49f826,_0x22a013){const _0x4d6094=a8_0x3c24,_0x2be9d1=_0x49f826();while(!![]){try{const _0x4040b9=-parseInt(_0x4d6094(0x1eb))/0x1+parseInt(_0x4d6094(0x1ee))/0x2+-parseInt(_0x4d6094(0x1f2))/0x3*(parseInt(_0x4d6094(0x1fe))/0x4)+parseInt(_0x4d6094(0x1f9))/0x5+-parseInt(_0x4d6094(0x1f8))/0x6*(-parseInt(_0x4d6094(0x1f7))/0x7)+parseInt(_0x4d6094(0x1ef))/0x8*(-parseInt(_0x4d6094(0x1f3))/0x9)+parseInt(_0x4d6094(0x1ff))/0xa;if(_0x4040b9===_0x22a013)break;else _0x2be9d1['push'](_0x2be9d1['shift']());}catch(_0x44c69d){_0x2be9d1['push'](_0x2be9d1['shift']());}}}(a8_0x313b,0x39bbd));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x103525(0x1f4));exports[a8_0x103525(0x1f5)]=a8_0x103525(0x1f6),exports[a8_0x103525(0x1f1)]=a8_0x103525(0x1fc),exports['builder']=function(_0x527b10){const _0x2727bf=a8_0x103525,_0x5a4cf9={};_0x5a4cf9[_0x2727bf(0x200)]='create_commands',_0x5a4cf9[_0x2727bf(0x1f0)]='help';const _0x33de83=_0x5a4cf9;return _0x527b10[_0x2727bf(0x201)](HELP_HEADER_MESSAGE['create'])[_0x2727bf(0x1fb)](HELP_FOOTER_MESSAGE)['commandDir'](_0x33de83['xbyLZ'])[_0x2727bf(0x1fa)]()[_0x2727bf(0x1fd)]()['strict']()[_0x2727bf(0x1ed)](_0x33de83[_0x2727bf(0x1f0)]);},exports[a8_0x103525(0x1ec)]=function(_0x37673b){};function a8_0x313b(){const _0x522499=['6RphLXO','1535115HGhehS','demandCommand','epilogue','Create\x20a\x20new\x20Automation\x20grid.','recommendCommands','176756vKQBGr','1578190NmMuPl','xbyLZ','usage','332956iZwDHz','handler','help','834172DoqjwO','432jxzJXx','QUBza','desc','12iJgQED','25893DQhhjN','../config/constants','command','create','137333kgqWed'];a8_0x313b=function(){return _0x522499;};return a8_0x313b();}
1
+ const a8_0x3fb0d3=a8_0x3f93;(function(_0x3a384d,_0x50f7e3){const _0x511613=a8_0x3f93,_0x484bf9=_0x3a384d();while(!![]){try{const _0x95de0a=-parseInt(_0x511613(0x136))/0x1*(-parseInt(_0x511613(0x145))/0x2)+parseInt(_0x511613(0x139))/0x3+parseInt(_0x511613(0x147))/0x4*(parseInt(_0x511613(0x13f))/0x5)+-parseInt(_0x511613(0x13c))/0x6*(-parseInt(_0x511613(0x12d))/0x7)+parseInt(_0x511613(0x13b))/0x8*(parseInt(_0x511613(0x134))/0x9)+parseInt(_0x511613(0x130))/0xa*(-parseInt(_0x511613(0x144))/0xb)+parseInt(_0x511613(0x12c))/0xc*(-parseInt(_0x511613(0x140))/0xd);if(_0x95de0a===_0x50f7e3)break;else _0x484bf9['push'](_0x484bf9['shift']());}catch(_0x330bee){_0x484bf9['push'](_0x484bf9['shift']());}}}(a8_0x488d,0x9068d));function a8_0x3f93(_0x25503b,_0x1d7fe1){const _0x488dc6=a8_0x488d();return a8_0x3f93=function(_0x3f9324,_0x5a8d80){_0x3f9324=_0x3f9324-0x12c;let _0x1f6bb7=_0x488dc6[_0x3f9324];return _0x1f6bb7;},a8_0x3f93(_0x25503b,_0x1d7fe1);}function a8_0x488d(){const _0x20f124=['52HHdEdY','60444aOcqPK','8164219QOoGLp','Create\x20a\x20new\x20Automation\x20grid.','builder','10DqgQYE','commandDir','demandCommand','create_commands','45FZsQQf','RhcZA','3pdneAx','recommendCommands','sPdXZ','494898CmtwYE','../config/constants','1129952cmQnUZ','6rDioyy','handler','epilogue','347385scLkNN','6149RJtvvf','command','create','help','631543OBiSEN','60474SluRmB','usage'];a8_0x488d=function(){return _0x20f124;};return a8_0x488d();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x3fb0d3(0x13a));exports[a8_0x3fb0d3(0x141)]=a8_0x3fb0d3(0x142),exports['desc']=a8_0x3fb0d3(0x12e),exports[a8_0x3fb0d3(0x12f)]=function(_0x383ef9){const _0x2a82aa=a8_0x3fb0d3,_0x51bca8={};_0x51bca8['RhcZA']=_0x2a82aa(0x133),_0x51bca8[_0x2a82aa(0x138)]=_0x2a82aa(0x143);const _0x25804f=_0x51bca8;return _0x383ef9[_0x2a82aa(0x146)](HELP_HEADER_MESSAGE[_0x2a82aa(0x142)])[_0x2a82aa(0x13e)](HELP_FOOTER_MESSAGE)[_0x2a82aa(0x131)](_0x25804f[_0x2a82aa(0x135)])[_0x2a82aa(0x132)]()[_0x2a82aa(0x137)]()['strict']()[_0x2a82aa(0x143)](_0x25804f['sPdXZ']);},exports[a8_0x3fb0d3(0x13d)]=function(_0x20702b){};
@@ -1 +1 @@
1
- const a9_0x57a58d=a9_0x25a9;function a9_0x25a9(_0x55cc77,_0x2dda80){const _0x23021c=a9_0x2302();return a9_0x25a9=function(_0x25a96c,_0x12c27e){_0x25a96c=_0x25a96c-0x169;let _0x1f92a5=_0x23021c[_0x25a96c];return _0x1f92a5;},a9_0x25a9(_0x55cc77,_0x2dda80);}(function(_0x56a8a9,_0x5aa48e){const _0x15999e=a9_0x25a9,_0x294efa=_0x56a8a9();while(!![]){try{const _0x1b7ef8=-parseInt(_0x15999e(0x211))/0x1+parseInt(_0x15999e(0x1c3))/0x2+-parseInt(_0x15999e(0x1ac))/0x3+-parseInt(_0x15999e(0x207))/0x4*(-parseInt(_0x15999e(0x246))/0x5)+-parseInt(_0x15999e(0x200))/0x6*(parseInt(_0x15999e(0x1a3))/0x7)+-parseInt(_0x15999e(0x24b))/0x8*(-parseInt(_0x15999e(0x18a))/0x9)+parseInt(_0x15999e(0x199))/0xa;if(_0x1b7ef8===_0x5aa48e)break;else _0x294efa['push'](_0x294efa['shift']());}catch(_0x49dba0){_0x294efa['push'](_0x294efa['shift']());}}}(a9_0x2302,0x70d7f));const fs=require('fs'),ws=require('ws'),util=require(a9_0x57a58d(0x1a8)),ReconnectingWebSocket=require('reconnecting-websocket'),request=require('request'),{v4:uuidv4}=require(a9_0x57a58d(0x249)),webSocketUtils=require(a9_0x57a58d(0x243)),{logger}=require(a9_0x57a58d(0x22f)),{inputCloudProviderKeys}=require(a9_0x57a58d(0x221)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a9_0x57a58d(0x1cf)),{getCloudProviderObject}=require(a9_0x57a58d(0x1d4)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a9_0x57a58d(0x270)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x57a58d(0x1c4)),{createK8sClient}=require(a9_0x57a58d(0x1a2)),{sendInstrumentationEvent}=require(a9_0x57a58d(0x287)),promisifiedRequest=util['promisify'](request);function a9_0x2302(){const _0x16e3f4=['subnets','isSubnetsValid','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.','gGTdD','djXnT','KVcPI','XVOkS','ZhGrS','createdBy','ybROE','ZJwuh','../../utils/instrumentationUtils','handler','ERROR','lEiUL','flFvZ','syfHO','WyEtu','gridProfileId','Namespace\x20Created','kPncF','aNrGS','user','fyddl','CLI_RUN_FINISHED','Browserstack','grid-profile','uGBZB','PAGSC','options','ZfScf','qmTlR','piSZu','instanceType','nHmgO','/packages/cli/create-grid-checks','LIofR','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','create-grid-checks-auth-failed','toLowerCase','split','ingress-nginx-controller','RSWEM','sendEventToBackend','\x20in\x20existing\x20cluster\x20\x27','Spawning\x20grid\x20on\x20to\x20the\x20cluster','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','pkVFX','writeFileSync','https://','9irEqGw','vpc','NQFyv','pusUq','existsSync','SJISx','CLI\x20run\x20started','metadata','route53','Create\x20a\x20new\x20Automation\x20grid.','epilogue','abfkv','parse','createOtherResources','private-ingress-nginx-controller','17344900rEDrjC','GzbiV','LEfnM','qbzpL','CLI_RUN_STARTED','deleteCluster','Grid\x20spawned\x20on\x20the\x20cluster','isPrivateGrid','description','../../utils/createk8sClient','91qVteLn','ixeMn','argv','xdYkp','lBpAT','util','username','IvZZK','LOG','2726808JTkISu','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','exit','maxNodes','minNodes','cloudProvider','DFLhl','lanOh','s3Bucket','ingress-nginx','private-grid','wnxcR','ljtMA','type','cloud-provider','ysciV','gridName','readNamespacedService','INFO','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','desc','KnpCp','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','1450qSsaCy','../../utils/gridComponents','EIdAW','iyXsB','ZHsnP','s3BucketName','yyWJZ','isVPCPresent','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','wyGXs','Spawning\x20Grid\x20on\x20the\x20Cluster','hmeLp','../../utils/utilityMethods','create','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zvBjN','CMogH','../../cloudproviders/utils','ORRtY','Found\x20Subnets:\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Spawning\x20the\x20grid\x20','requestId','YdGMM','OgBdK','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','delay','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','\x27\x20grid\x20profile','iYyIU','UwhdA','ANeMC','JxBKP','non-aws-azure-cluster','create-grid-checks-grid-already-exists','DjVLF','stringify','create-grid-checks-invalid-profile','jUIXf','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Cluster\x20created\x20successfully','init-not-called','Subnets:\x20','ZiRsA','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','nLlKp','MQaqx','length','UnPbd','clusterRegion','Will\x20be\x20spawning\x20the\x20grid\x20','/packages/cli/get-grid-url?gridIdentifier=','slKZB','managedBy','\x20using\x20\x27','hQhKy','string','password','lsVxw','usage','308046HTMZyy','6|7|4|1|0|3|2|5|8','CLI\x20run\x20finished:\x20','bstackUsername','FeaKb','BSFtk','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','1275548FRMfbj','Cluster\x20','SoItc','cXZZI','fetchLocalCreds','getGridHostname','zjxHB','NLqyr','hANZa','browserVersion','60428OAVbbt','OMhuV','Yfkot','sVkAy','uxFWd','rtowi','RiqpE','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ctHQZ','BZdua','rMrpF','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','nBUYw','prlnU','FrxoH','cluster-name','../../utils/userInput','Create\x20a\x20private/public\x20grid.','Adding\x20Websocket\x20listeners','vfeVa','s3bucket','cicls','Aluhs','grid-spawning-failed','aRTNn','updatePreSpawnedCluster','gridProfile','setupAutoscaler','nNzyC','createNamespace','../../config/logger','ePSuR','http','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','configureIfNotConfigured','DUrsz','/wd/hub','isClusterPresent','gridProfiles','JJGHQ','GLfrz','alreadyPresent','emiDr','JAhSu','Found\x20VPC:\x20','pre-spawned-invalid-subnets','2|5|0|7|8|3|6|4|1','Namespace\x20created','Grid\x20profile\x20fetched\x20from\x20backend','body','../../utils/webSocketUtils','CdRXh','OoBkT','5JtZoOA','grid','hubVersion','uuid','EEoOj','359216jUfqlC','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','hHAyg','NUuOZ','HjXre','clusterName','default','VwgLz','true','xedYe','zCjPX','debug','error','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','UoDlZ','help','region','sIyin','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','YHxSm','FgXKZ','4|3|1|2|0','YlTWj','prespawned-cluster-args-not-passed','message','\x20are\x20not\x20present\x20in\x20VPC:\x20','Deleting\x20the\x20CloudFormation\x20Stacks','sHkko','bstackAccesskey','setupNewCluster','warn','kNKWX','MZRev','GNaIs','GET','defaultGridProfile','../../config/constants','turboscale-managed-identity-','name','<PasswordPlaceholder>','includes','info','privateGrid','statusCode','LCoij','zzjiv','zbPYB','kglRH'];a9_0x2302=function(){return _0x16e3f4;};return a9_0x2302();}exports['command']=a9_0x57a58d(0x247),exports[a9_0x57a58d(0x1c0)]=a9_0x57a58d(0x193),exports['builder']=function(_0x212262){const _0x5f3d55=a9_0x57a58d,_0x518f88={};_0x518f88[_0x5f3d55(0x1aa)]=_0x5f3d55(0x25d),_0x518f88[_0x5f3d55(0x24e)]='string',_0x518f88[_0x5f3d55(0x245)]=_0x5f3d55(0x206),_0x518f88[_0x5f3d55(0x19c)]=_0x5f3d55(0x1d7),_0x518f88[_0x5f3d55(0x195)]=_0x5f3d55(0x1cb),_0x518f88[_0x5f3d55(0x224)]=_0x5f3d55(0x25e),_0x518f88[_0x5f3d55(0x1a4)]=_0x5f3d55(0x222),_0x518f88[_0x5f3d55(0x21d)]=_0x5f3d55(0x25a);const _0x37cb8f=_0x518f88,_0x9165f={};_0x9165f['description']=_0x37cb8f['IvZZK'],_0x9165f[_0x5f3d55(0x1b9)]=_0x37cb8f[_0x5f3d55(0x24e)];const _0x174b2b={};_0x174b2b['description']=_0x37cb8f[_0x5f3d55(0x245)],_0x174b2b['type']=_0x37cb8f[_0x5f3d55(0x24e)];const _0x1073f2={};_0x1073f2[_0x5f3d55(0x1a1)]=_0x37cb8f[_0x5f3d55(0x19c)],_0x1073f2['type']=_0x37cb8f[_0x5f3d55(0x24e)];const _0xff2b={};_0xff2b[_0x5f3d55(0x1a1)]=_0x37cb8f[_0x5f3d55(0x195)],_0xff2b['type']=_0x37cb8f[_0x5f3d55(0x24e)];const _0x11a75b={};_0x11a75b[_0x5f3d55(0x1a1)]=_0x37cb8f['vfeVa'],_0x11a75b[_0x5f3d55(0x1b9)]=_0x37cb8f[_0x5f3d55(0x24e)];const _0x312875={};_0x312875[_0x5f3d55(0x1a1)]=_0x37cb8f['ixeMn'],_0x312875[_0x5f3d55(0x1b9)]=_0x37cb8f[_0x5f3d55(0x24e)];const _0x474843={};return _0x474843['grid-name']=_0x9165f,_0x474843[_0x5f3d55(0x172)]=_0x174b2b,_0x474843['cluster-name']=_0x1073f2,_0x474843[_0x5f3d55(0x1ba)]=_0xff2b,_0x474843['region']=_0x11a75b,_0x474843[_0x5f3d55(0x1b6)]=_0x312875,_0x212262[_0x5f3d55(0x1ff)](HELP_HEADER_MESSAGE[_0x5f3d55(0x1d0)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5f3d55(0x175)](_0x474843)[_0x5f3d55(0x25a)](_0x37cb8f[_0x5f3d55(0x21d)])[_0x5f3d55(0x1a5)];},exports[a9_0x57a58d(0x288)]=async function(_0x2eafee){const _0x2db0da=a9_0x57a58d,_0x2d2003={'EIdAW':'https','piSZu':'error','wnxcR':'Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','SJISx':_0x2db0da(0x26a),'flFvZ':_0x2db0da(0x231),'ybROE':_0x2db0da(0x25d),'lanOh':_0x2db0da(0x1fc),'QNPIH':_0x2db0da(0x206),'ANeMC':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','iYyIU':_0x2db0da(0x1cb),'WyEtu':_0x2db0da(0x25e),'KnpCp':'Create\x20a\x20private/public\x20grid.','FeaKb':'help','nLlKp':_0x2db0da(0x23f),'nHmgO':function(_0x2454a3){return _0x2454a3();},'VwgLz':function(_0x3a199b,_0x153664){return _0x3a199b!==_0x153664;},'hANZa':_0x2db0da(0x176),'ORRtY':_0x2db0da(0x1d1),'iyXsB':function(_0x96bc89,_0x352cb0,_0x345af3,_0x501232,_0x1cf2e0,_0x960aeb,_0x37797e){return _0x96bc89(_0x352cb0,_0x345af3,_0x501232,_0x1cf2e0,_0x960aeb,_0x37797e);},'YlTWj':'create-grid-called','REewm':_0x2db0da(0x1ed),'gzpBd':function(_0xf1aaba){return _0xf1aaba();},'ULoOa':'<UsernamePlaceholder>','sVkAy':_0x2db0da(0x273),'prlnU':_0x2db0da(0x223),'syfHO':function(_0x40cdea,_0x37f51a){return _0x40cdea===_0x37f51a;},'FBaax':_0x2db0da(0x259),'MZRev':function(_0x1e2ec4,_0x3fb726){return _0x1e2ec4===_0x3fb726;},'LIofR':_0x2db0da(0x280),'WtOxA':_0x2db0da(0x1f0),'Yfkot':function(_0x1b76bd,_0x244885,_0x37c6a5,_0x3f7a9d,_0x27dc48,_0x131d0c,_0x5bd9d5,_0x4d2c43){return _0x1b76bd(_0x244885,_0x37c6a5,_0x3f7a9d,_0x27dc48,_0x131d0c,_0x5bd9d5,_0x4d2c43);},'QANRx':_0x2db0da(0x263),'LEfnM':function(_0x5492d6,_0x555bd3){return _0x5492d6!==_0x555bd3;},'jUIXf':_0x2db0da(0x18c),'GzbiV':_0x2db0da(0x218),'MQaqx':_0x2db0da(0x1e5),'SkCYT':function(_0x25aaa8,_0x19bcc2){return _0x25aaa8===_0x19bcc2;},'zjxHB':_0x2db0da(0x253),'wyGXs':function(_0x4593b8,_0x1fd50f){return _0x4593b8!==_0x1fd50f;},'aRTNn':_0x2db0da(0x1b2),'DxFTT':'vVQjb','zzjiv':'LDcnO','sbVrP':_0x2db0da(0x26e),'ZhGrS':function(_0xc579a7,_0x5a82a9){return _0xc579a7(_0x5a82a9);},'EEoOj':function(_0x4f14e3,_0x1bf3e8){return _0x4f14e3===_0x1bf3e8;},'NLqyr':function(_0x2e636a,_0x5d9bbe){return _0x2e636a===_0x5d9bbe;},'pusUq':_0x2db0da(0x27b),'IBnAU':_0x2db0da(0x1dc),'rMrpF':'create-grid-checks-null-response','sIyin':function(_0x598a09,_0x5d5258){return _0x598a09===_0x5d5258;},'PAGSC':function(_0xf0306,_0x4d9105){return _0xf0306!==_0x4d9105;},'RSWEM':_0x2db0da(0x1f4),'jjGLL':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','hQhKy':_0x2db0da(0x17e),'kPncF':function(_0x4c47a9,_0x21581c){return _0x4c47a9!==_0x21581c;},'ljtMA':_0x2db0da(0x1bb),'lvcnI':'LAmxs','lBpAT':'create-grid-checks-non-200','CdRXh':_0x2db0da(0x241),'Raqhq':'dWwIT','GLfrz':_0x2db0da(0x219),'HjXre':'An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','dZOjW':_0x2db0da(0x1e6),'OgBdK':_0x2db0da(0x1da),'yyWJZ':function(_0x53510d,_0x5bc8bd){return _0x53510d!==_0x5bc8bd;},'uxFWd':_0x2db0da(0x267),'AWcPs':function(_0x34e449,_0x447e41){return _0x34e449===_0x447e41;},'cicls':_0x2db0da(0x212),'xdYkp':_0x2db0da(0x186),'BSFtk':_0x2db0da(0x1e9),'qmTlR':'EMHRQ','ePSuR':_0x2db0da(0x282),'gGTdD':_0x2db0da(0x24d),'aNrGS':function(_0x57f5b1,_0x2d4188,_0x1ea1d6,_0x11b44f,_0x3e3c9e,_0x1c2e11,_0x3bf40f,_0x23858e,_0x4395ef,_0x541e82,_0x1ebfb0,_0x1e6d31){return _0x57f5b1(_0x2d4188,_0x1ea1d6,_0x11b44f,_0x3e3c9e,_0x1c2e11,_0x3bf40f,_0x23858e,_0x4395ef,_0x541e82,_0x1ebfb0,_0x1e6d31);},'WKhZw':_0x2db0da(0x201),'LCoij':function(_0x21bb44,_0x3ee14e,_0x427fa7,_0x48fc18,_0xc3f9c0,_0x2e8ea8){return _0x21bb44(_0x3ee14e,_0x427fa7,_0x48fc18,_0xc3f9c0,_0x2e8ea8);},'ueWxU':_0x2db0da(0x21c),'ZiRsA':function(_0x29ca2f,_0x59d36d){return _0x29ca2f===_0x59d36d;},'zCjPX':function(_0x501a14,_0x208326,_0xf6ca66,_0x4dc657){return _0x501a14(_0x208326,_0xf6ca66,_0x4dc657);},'rtowi':_0x2db0da(0x1de),'fUNqC':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','BZdua':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','FgXKZ':function(_0x23a26d,_0x5e9384){return _0x23a26d!=_0x5e9384;},'JJGHQ':function(_0x301594,_0x3cb8c3){return _0x301594>_0x3cb8c3;},'pkVFX':_0x2db0da(0x1ad),'zbPYB':'pre-spawned-subnets-not-selected','UwhdA':_0x2db0da(0x17d),'cXZZI':'pre-spawned-invalid-vpc','hmeLp':function(_0x209a77,_0x140116){return _0x209a77===_0x140116;},'FizZH':function(_0xf2db1a,_0x3206c1,_0x1ac6c5,_0x5918de,_0x3b8bed,_0x157b2d,_0x3020e1,_0x4096cc){return _0xf2db1a(_0x3206c1,_0x1ac6c5,_0x5918de,_0x3b8bed,_0x157b2d,_0x3020e1,_0x4096cc);},'FrxoH':_0x2db0da(0x23e),'CMogH':_0x2db0da(0x261),'DUrsz':_0x2db0da(0x1ec),'JAhSu':_0x2db0da(0x27e),'nNzyC':function(_0x171a92,_0xfe7913){return _0x171a92===_0xfe7913;},'DjVLF':function(_0x476593,_0x2302aa){return _0x476593==_0x2302aa;},'pDiEx':'Creating\x20namespace','GWbwJ':function(_0x1ed4ce,_0x1eed10){return _0x1ed4ce!==_0x1eed10;},'SoItc':_0x2db0da(0x251),'GNaIs':_0x2db0da(0x171),'VsPFA':_0x2db0da(0x16b),'EGeod':_0x2db0da(0x240),'emiDr':_0x2db0da(0x185),'JxBKP':_0x2db0da(0x1cd),'Aluhs':function(_0x505d1d,_0x57e038,_0x426f1f,_0x413356,_0x21d56c,_0x120f9a,_0x21c7fb,_0x7b7661,_0x555699,_0x2e4503,_0x35abf0){return _0x505d1d(_0x57e038,_0x426f1f,_0x413356,_0x21d56c,_0x120f9a,_0x21c7fb,_0x7b7661,_0x555699,_0x2e4503,_0x35abf0);},'kNKWX':_0x2db0da(0x19f),'YHxSm':_0x2db0da(0x1c2),'RiqpE':function(_0x43fc80,_0x57f6f7,_0x5d091d){return _0x43fc80(_0x57f6f7,_0x5d091d);},'IgOvJ':_0x2db0da(0x198),'slKZB':_0x2db0da(0x181),'uGBZB':_0x2db0da(0x1b5),'lEiUL':function(_0x150497,_0x3e7c8a){return _0x150497(_0x3e7c8a);},'NluDU':function(_0x21ce09,_0x1eeb64){return _0x21ce09==_0x1eeb64;},'lsVxw':_0x2db0da(0x232),'fyddl':function(_0x2a0427,_0x461967,_0x24e372,_0x7f96f5,_0x4af6c5,_0x3219bf,_0x355e6e,_0x1cffee){return _0x2a0427(_0x461967,_0x24e372,_0x7f96f5,_0x4af6c5,_0x3219bf,_0x355e6e,_0x1cffee);},'KVcPI':'get-grid-url-null-response','ZJwuh':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','zvBjN':function(_0x314891,_0x77a0f9,_0x26b034,_0x1a8cf0,_0x5cc11f,_0x51ed01,_0x146a62,_0x2655a){return _0x314891(_0x77a0f9,_0x26b034,_0x1a8cf0,_0x5cc11f,_0x51ed01,_0x146a62,_0x2655a);},'NWDVk':'get-grid-url-auth-failed','ZHsnP':function(_0x31f894,_0x1189d0){return _0x31f894!==_0x1189d0;},'xedYe':'get-grid-url-non-200','DYAyP':function(_0x20a52e,_0x36cb48){return _0x20a52e===_0x36cb48;},'foNzi':function(_0x16152c,_0x173abf,_0x48be0a,_0x46ceeb,_0x11ce8f,_0x45f81d,_0x1ace04){return _0x16152c(_0x173abf,_0x48be0a,_0x46ceeb,_0x11ce8f,_0x45f81d,_0x1ace04);},'sMDoB':_0x2db0da(0x228)};let _0x288c0b=![],_0x2f624c,_0x5ae78e,_0x3e24eb,_0x4433b3,_0x307d27,_0x40e977,_0x3fd7bc,_0x1cbd7f,_0x281eb2,_0x3e9446,_0x3fefbb,_0xc20db5,_0x43bed7=0x1,_0x3e4a0a=0xe;try{global_registry[_0x2db0da(0x1d9)]=_0x2d2003[_0x2db0da(0x17a)](uuidv4),global_registry[_0x2db0da(0x1a0)]=![];if(!fs[_0x2db0da(0x18e)](_0x2d2003[_0x2db0da(0x17a)](getCredentialsPath))){if(_0x2d2003[_0x2db0da(0x252)](_0x2d2003['hANZa'],_0x2d2003[_0x2db0da(0x20f)]))throw _0x13133c;else console[_0x2db0da(0x257)](_0x2d2003[_0x2db0da(0x1d5)]),await _0x2d2003[_0x2db0da(0x1c6)](sendInstrumentationEvent,_0x2eafee,_0x2d2003['YlTWj'],messageTypes[_0x2db0da(0x289)],_0x2d2003['REewm'],null,_0x2eafee),process[_0x2db0da(0x1ae)](0x1);}await _0x2d2003[_0x2db0da(0x1c6)](sendInstrumentationEvent,_0x2eafee,_0x2d2003[_0x2db0da(0x262)],messageTypes[_0x2db0da(0x1be)],null,null,_0x2eafee);const _0x11268d=JSON[_0x2db0da(0x196)](fs['readFileSync'](_0x2d2003['gzpBd'](getCredentialsPath)));global_registry[_0x2db0da(0x203)]=_0x11268d['Browserstack'][_0x2db0da(0x1a9)],global_registry[_0x2db0da(0x268)]=_0x11268d[_0x2db0da(0x171)]['password'];const _0x5cc4cc=WS_ENDPOINT['replace'](_0x2d2003['ULoOa'],_0x11268d[_0x2db0da(0x171)][_0x2db0da(0x1a9)])['replace'](_0x2d2003[_0x2db0da(0x214)],_0x11268d[_0x2db0da(0x171)]['password']),_0x718427={};_0x718427['WebSocket']=ws,_0x718427['connectionTimeout']=0x36ee80,_0x3e9446=new ReconnectingWebSocket(_0x5cc4cc,[],_0x718427),logger['debug'](_0x2d2003[_0x2db0da(0x21e)]),webSocketUtils['addListeners'](_0x3e9446,_0x2eafee[_0x2db0da(0x16e)],_0x2eafee['password']);let _0xa503a2=DEFAULT_GRID_NAME;if(_0x2eafee[_0x2db0da(0x250)]||_0x2eafee[_0x2db0da(0x1b1)]||_0x2eafee[_0x2db0da(0x25b)]){if(_0x2d2003[_0x2db0da(0x28c)](_0x2d2003['FBaax'],_0x2d2003['FBaax'])){!(_0x2eafee[_0x2db0da(0x250)]&&_0x2eafee['cloudProvider']&&_0x2eafee['region'])&&(_0x2d2003[_0x2db0da(0x26c)](_0x2d2003[_0x2db0da(0x17c)],_0x2d2003[_0x2db0da(0x17c)])?(_0x2f624c=_0x2d2003['WtOxA'],await _0x2d2003['Yfkot'](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003[_0x2db0da(0x262)],_0x2d2003['QANRx'],_0x2d2003[_0x2db0da(0x178)]),logger[_0x2db0da(0x257)](_0x2f624c),process[_0x2db0da(0x1ae)](0x1)):(_0x558599=_0x11d36d[_0x2db0da(0x192)],_0x558928=_0x2d2003['EIdAW']));![AWS,AZURE,GCP][_0x2db0da(0x274)](_0x2eafee['cloudProvider']['toLowerCase']())&&(_0x2d2003[_0x2db0da(0x19b)](_0x2d2003[_0x2db0da(0x1ea)],_0x2d2003[_0x2db0da(0x1ea)])?_0x1af200[_0x2db0da(0x1a0)]=!![]:(_0x2f624c=_0x2d2003[_0x2db0da(0x19a)],await _0x2d2003[_0x2db0da(0x213)](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x1f2)],_0x2d2003[_0x2db0da(0x178)]),logger[_0x2db0da(0x257)](_0x2f624c),process[_0x2db0da(0x1ae)](0x1)));if(_0x2eafee[_0x2db0da(0x276)]&&_0x2d2003['SkCYT'](_0x2eafee[_0x2db0da(0x276)][_0x2db0da(0x17f)](),_0x2d2003[_0x2db0da(0x20d)])){if(_0x2d2003[_0x2db0da(0x1cc)](_0x2d2003[_0x2db0da(0x229)],_0x2d2003[_0x2db0da(0x229)])){const _0x164007={};_0x164007[_0x2db0da(0x1b9)]=_0x304c48[_0x2db0da(0x1ab)],_0x164007['message']=_0x4cfade,_0xa7143b[_0x2db0da(0x183)](_0x35d4fa,_0x164007,_0x2d2003['piSZu'],!![]);}else global_registry[_0x2db0da(0x1a0)]=!![];}_0x288c0b=!![],_0x3e24eb=_0x2eafee['clusterName'],_0x5ae78e=_0x2eafee[_0x2db0da(0x1b1)][_0x2db0da(0x17f)](),_0x4433b3=_0x2eafee[_0x2db0da(0x25b)];}else _0x1b5f83=_0x1564fd[_0x2db0da(0x1bc)];}_0x2eafee[_0x2db0da(0x1bc)]&&(_0x2d2003[_0x2db0da(0x19b)](_0x2d2003['DxFTT'],_0x2d2003[_0x2db0da(0x279)])?_0xa503a2=_0x2eafee[_0x2db0da(0x1bc)]:(_0xb9477f['error'](_0x2d2003[_0x2db0da(0x1b7)]),_0x116ebf[_0x2db0da(0x1ae)](0x1)));global_registry['gridName']=_0xa503a2;const _0x6aa83d={};_0x6aa83d[_0x2db0da(0x1a9)]=_0x11268d[_0x2db0da(0x171)]['username'],_0x6aa83d[_0x2db0da(0x1fd)]=_0x11268d[_0x2db0da(0x171)][_0x2db0da(0x1fd)];const _0x52d74b={};_0x52d74b['method']=_0x2d2003['sbVrP'],_0x52d74b['auth']=_0x6aa83d;const _0x28c126=_0x52d74b,_0x229159='https://'+AG_API_URL+_0x2db0da(0x17b),_0x1568b6={};_0x1568b6[_0x2db0da(0x1bc)]=_0xa503a2;const _0xd165d3={'url':_0x229159,'qs':_0x1568b6,..._0x28c126},_0x283afd=_0xd165d3,_0x555be8=await _0x2d2003['ZhGrS'](promisifiedRequest,_0x283afd);if(_0x2d2003[_0x2db0da(0x24a)](_0x555be8,null)||_0x2d2003['EEoOj'](_0x555be8,undefined)){if(_0x2d2003[_0x2db0da(0x20e)](_0x2d2003[_0x2db0da(0x18d)],_0x2d2003[_0x2db0da(0x18d)]))_0x2f624c=_0x2d2003['IBnAU'],await _0x2d2003[_0x2db0da(0x213)](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003['YlTWj'],_0x2d2003[_0x2db0da(0x21b)],_0x2d2003['piSZu']),logger[_0x2db0da(0x257)](_0x2f624c),process[_0x2db0da(0x1ae)](0x1);else{const _0x336333={};_0x336333[_0x2db0da(0x1b9)]=_0x46bb90[_0x2db0da(0x1ab)],_0x336333[_0x2db0da(0x264)]='Cluster\x20'+_0x2cd641+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x1e80ea[_0x2db0da(0x183)](_0x5c69f5,_0x336333,_0x2d2003['SJISx']),_0x36e6bb[_0x2db0da(0x275)](_0x2db0da(0x208)+_0x1bb360+_0x2db0da(0x1eb)),_0x1a04b8=!![];}}_0x2d2003[_0x2db0da(0x25c)](_0x555be8[_0x2db0da(0x277)],0x191)&&(_0x2d2003[_0x2db0da(0x174)](_0x2d2003['RSWEM'],_0x2d2003[_0x2db0da(0x182)])?_0x2caba7[_0x2db0da(0x275)](_0x2db0da(0x23d)+_0x2f01b+'\x20'):(_0x2f624c=_0x2d2003['jjGLL'],await _0x2d2003['Yfkot'](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x1fb)],_0x2d2003['piSZu']),logger[_0x2db0da(0x257)](_0x2f624c),process[_0x2db0da(0x1ae)](0x1)));_0x2d2003['kPncF'](_0x555be8['statusCode'],0xc8)&&(_0x2d2003[_0x2db0da(0x19b)](_0x2d2003[_0x2db0da(0x1b8)],_0x2d2003['lvcnI'])?(_0x2f624c=_0x2db0da(0x1df)+JSON[_0x2db0da(0x1e8)](_0x555be8),await _0x2d2003[_0x2db0da(0x213)](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes['ERROR'],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x1a7)],_0x2d2003['piSZu']),logger['error'](_0x2f624c),process[_0x2db0da(0x1ae)](0x1)):_0x5660e9[_0x2db0da(0x1a0)]=!![]);const _0xedb62b=JSON[_0x2db0da(0x196)](_0x555be8['body']),_0x32762a={};_0x32762a[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x19d)],_0x32762a[_0x2db0da(0x264)]='CLI\x20run\x20started',webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x32762a);const _0x11be5b={};_0x11be5b[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x11be5b['message']=_0x2d2003[_0x2db0da(0x244)],webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x11be5b);_0xedb62b[_0x2db0da(0x23a)]&&(_0x2d2003['LEfnM'](_0x2d2003['Raqhq'],_0x2d2003[_0x2db0da(0x239)])?(_0x2f624c=_0x2d2003[_0x2db0da(0x24f)],await _0x2d2003['Yfkot'](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes['ERROR'],_0x2d2003[_0x2db0da(0x262)],_0x2d2003['dZOjW'],_0x2d2003['piSZu']),logger[_0x2db0da(0x257)](_0x2f624c),process[_0x2db0da(0x1ae)](0x1)):_0x18e823=_0x2d2003[_0x2db0da(0x28b)]);const _0x2e3893=_0xedb62b[_0x2db0da(0x237)];let _0x1e8b6e=_0x2e3893[_0xedb62b[_0x2db0da(0x26f)]];_0x2eafee[_0x2db0da(0x22b)]&&(_0x2d2003[_0x2db0da(0x16c)](_0x2d2003[_0x2db0da(0x1db)],_0x2d2003[_0x2db0da(0x1db)])?_0x5c9ca8=_0x4ea652[_0x5eb83e[_0x2db0da(0x22b)]]:_0x1e8b6e=_0x2e3893[_0x2eafee[_0x2db0da(0x22b)]]);if(_0x2d2003[_0x2db0da(0x25c)](_0x288c0b,![])){if(_0x2d2003[_0x2db0da(0x1c9)](_0x2d2003[_0x2db0da(0x215)],_0x2d2003['uxFWd'])){const _0x4810e5={};_0x4810e5[_0x2db0da(0x1a1)]=_0x2d2003[_0x2db0da(0x285)],_0x4810e5[_0x2db0da(0x1b9)]=_0x2d2003[_0x2db0da(0x1b3)];const _0x2c0357={};_0x2c0357[_0x2db0da(0x1a1)]=_0x2d2003['QNPIH'],_0x2c0357[_0x2db0da(0x1b9)]=_0x2d2003[_0x2db0da(0x1b3)];const _0x21ef2a={};_0x21ef2a[_0x2db0da(0x1a1)]=_0x2d2003[_0x2db0da(0x1e3)],_0x21ef2a[_0x2db0da(0x1b9)]=_0x2d2003[_0x2db0da(0x1b3)];const _0x346dca={};_0x346dca[_0x2db0da(0x1a1)]=_0x2d2003[_0x2db0da(0x1e1)],_0x346dca[_0x2db0da(0x1b9)]=_0x2d2003[_0x2db0da(0x1b3)];const _0x3d4f16={};_0x3d4f16[_0x2db0da(0x1a1)]=_0x2d2003[_0x2db0da(0x169)],_0x3d4f16[_0x2db0da(0x1b9)]=_0x2d2003[_0x2db0da(0x1b3)];const _0x1d0879={};_0x1d0879[_0x2db0da(0x1a1)]=_0x2d2003[_0x2db0da(0x1c1)],_0x1d0879[_0x2db0da(0x1b9)]=_0x2d2003['lanOh'];const _0x43c8ba={};return _0x43c8ba['grid-name']=_0x4810e5,_0x43c8ba[_0x2db0da(0x172)]=_0x2c0357,_0x43c8ba[_0x2db0da(0x220)]=_0x21ef2a,_0x43c8ba[_0x2db0da(0x1ba)]=_0x346dca,_0x43c8ba[_0x2db0da(0x25b)]=_0x3d4f16,_0x43c8ba['private-grid']=_0x1d0879,_0x212f75[_0x2db0da(0x1ff)](_0x108fb3[_0x2db0da(0x1d0)])[_0x2db0da(0x194)](_0x368d44)[_0x2db0da(0x175)](_0x43c8ba)['help'](_0x2d2003[_0x2db0da(0x204)])[_0x2db0da(0x1a5)];}else{if(_0x2d2003['AWcPs'](_0x1e8b6e,undefined)){if(_0x2d2003['wyGXs'](_0x2d2003[_0x2db0da(0x226)],_0x2d2003[_0x2db0da(0x226)])){const _0x4ab973=_0x2d2003[_0x2db0da(0x1f1)][_0x2db0da(0x180)]('|');let _0x1db28f=0x0;while(!![]){switch(_0x4ab973[_0x1db28f++]){case'0':_0x325abb[_0x2db0da(0x275)](_0x56b41b);continue;case'1':_0x5dcfbd[_0x2db0da(0x210)]=_0x1d21ec['browserVersion'];continue;case'2':const _0x3b6a79={};_0x3b6a79[_0x2db0da(0x1b9)]=_0x191dca[_0x2db0da(0x19d)],_0x3b6a79[_0x2db0da(0x264)]=_0x2db0da(0x190),_0x56f814[_0x2db0da(0x183)](_0x49fa40,_0x3b6a79);continue;case'3':_0x32bdaf['clusterRegion']=_0x22829f;continue;case'4':_0xf7370c['hubVersion']=_0x2f0ce2['hubVersion'];continue;case'5':_0x5d44de=_0x2db0da(0x1d8)+_0x2ded5b+_0x2db0da(0x184)+_0x4ec54c+'\x27';continue;case'6':_0x984440[_0x2db0da(0x250)]=_0x13069c;continue;case'7':const _0x40afea={};_0x40afea[_0x2db0da(0x1b9)]=_0x11fa08[_0x2db0da(0x1ab)],_0x40afea[_0x2db0da(0x264)]=_0x40e616,_0x5e7f7c['sendEventToBackend'](_0x1cd593,_0x40afea);continue;case'8':_0x4d12eb[_0x2db0da(0x1b1)]=_0x2c4c52;continue;}break;}}else _0x2f624c=_0x2d2003[_0x2db0da(0x1a6)],await _0x2d2003['Yfkot'](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes['ERROR'],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x205)],_0x2d2003[_0x2db0da(0x178)]),logger['error'](_0x2f624c),process[_0x2db0da(0x1ae)](0x1);}global_registry[_0x2db0da(0x16a)]=_0x1e8b6e['id'];(_0x2d2003[_0x2db0da(0x25c)](_0x5ae78e,AZURE)||_0x2d2003[_0x2db0da(0x28c)](_0x1e8b6e?.[_0x2db0da(0x1b1)],AZURE))&&(_0x2d2003[_0x2db0da(0x1cc)](_0x2d2003[_0x2db0da(0x177)],_0x2d2003[_0x2db0da(0x230)])?(console[_0x2db0da(0x257)](_0x2d2003[_0x2db0da(0x1b7)]),process['exit'](0x1)):_0x6ceef[_0x2db0da(0x1b1)]={});_0x2f624c=_0x2db0da(0x1f6)+_0xa503a2+_0x2db0da(0x1fa)+_0x1e8b6e[_0x2db0da(0x272)]+_0x2db0da(0x1e0),logger['info'](_0x2f624c);const _0x388cc8={};_0x388cc8[_0x2db0da(0x1b9)]=WS_EVENTS['LOG'],_0x388cc8[_0x2db0da(0x264)]=_0x2f624c,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x388cc8),_0x5ae78e=_0x1e8b6e[_0x2db0da(0x1b1)],_0x3e24eb=_0x1e8b6e[_0x2db0da(0x250)],_0x4433b3=_0x1e8b6e['region'],_0x307d27=_0x1e8b6e['concurrency'],_0x40e977=_0x1e8b6e[_0x2db0da(0x179)],_0x3fd7bc=_0x1e8b6e[_0x2db0da(0x18b)],securityGroups=_0x1e8b6e['securityGroups'],subnets=_0x1e8b6e[_0x2db0da(0x27c)],_0x1cbd7f=_0x1e8b6e[_0x2db0da(0x225)],_0x43bed7=_0x1e8b6e[_0x2db0da(0x1b0)],_0x3e4a0a=_0x1e8b6e[_0x2db0da(0x1af)],_0x3fefbb=_0xedb62b['hubVersion'],_0xc20db5=_0xedb62b[_0x2db0da(0x210)],_0x2d2003['wyGXs'](_0x1e8b6e[_0x2db0da(0x276)],undefined)&&_0x1e8b6e[_0x2db0da(0x276)]&&(_0x2d2003[_0x2db0da(0x25c)](_0x2d2003[_0x2db0da(0x27f)],_0x2d2003[_0x2db0da(0x27f)])?global_registry['isPrivateGrid']=!![]:_0x151eaa[_0x2db0da(0x275)](_0x2db0da(0x1d6)+_0x618742[_0x2db0da(0x1e8)](_0x23ea4b)+'\x20')),_0x2d2003[_0x2db0da(0x16d)](updateGlobalRegistryWithConfig,_0x5ae78e,_0x3e24eb,_0x4433b3,_0x307d27,_0x40e977,_0x1cbd7f,_0x1e8b6e,_0x3fefbb,_0xc20db5,_0x43bed7,_0x3e4a0a);}}else{const _0x228185=_0x2d2003['WKhZw']['split']('|');let _0x3e8240=0x0;while(!![]){switch(_0x228185[_0x3e8240++]){case'0':global_registry[_0x2db0da(0x1b1)]=_0x5ae78e;continue;case'1':const _0x1b8fe4={};_0x1b8fe4[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x1b8fe4[_0x2db0da(0x264)]=_0x2f624c,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x1b8fe4);continue;case'2':global_registry[_0x2db0da(0x250)]=_0x3e24eb;continue;case'3':global_registry[_0x2db0da(0x1f5)]=_0x4433b3;continue;case'4':logger[_0x2db0da(0x275)](_0x2f624c);continue;case'5':global_registry[_0x2db0da(0x248)]=_0xedb62b[_0x2db0da(0x248)];continue;case'6':const _0x5dbf98={};_0x5dbf98[_0x2db0da(0x1b9)]=WS_EVENTS['CLI_RUN_STARTED'],_0x5dbf98[_0x2db0da(0x264)]=_0x2db0da(0x190),webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x5dbf98);continue;case'7':_0x2f624c=_0x2db0da(0x1d8)+_0xa503a2+_0x2db0da(0x184)+_0x3e24eb+'\x27';continue;case'8':global_registry[_0x2db0da(0x210)]=_0xedb62b[_0x2db0da(0x210)];continue;}break;}}const _0x1b08e3=_0x2d2003[_0x2db0da(0x278)](getCloudProviderObject,_0x5ae78e,_0x3e24eb,_0xa503a2,_0x3e9446,webSocketUtils),_0x4d668d=_0x11268d[_0x2db0da(0x1b1)]||{};if(_0x2d2003[_0x2db0da(0x26c)](_0x4d668d[_0x5ae78e],undefined)){logger[_0x2db0da(0x275)](_0x2d2003['ueWxU']);_0x2d2003['ZiRsA'](_0x11268d[_0x2db0da(0x1b1)],undefined)&&(_0x11268d[_0x2db0da(0x1b1)]={});_0x11268d[_0x2db0da(0x1b1)][_0x5ae78e]={};const _0x5ad5f1=await _0x2d2003[_0x2db0da(0x255)](inputCloudProviderKeys,_0x5ae78e,_0x11268d,_0x1b08e3);fs[_0x2db0da(0x188)](_0x2d2003[_0x2db0da(0x17a)](getCredentialsPath),JSON[_0x2db0da(0x1e8)](_0x5ad5f1)),logger[_0x2db0da(0x256)](_0x2d2003[_0x2db0da(0x216)]);}else{_0x2f624c=_0x2d2003['fUNqC'];const _0x2f62af={};_0x2f62af[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x2f62af[_0x2db0da(0x264)]=_0x2f624c,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x2f62af),logger[_0x2db0da(0x275)](_0x2f624c),await _0x1b08e3[_0x2db0da(0x20b)](_0x4d668d);}_0x1b08e3[_0x2db0da(0x233)]();let _0x5d3512;if(_0x2d2003[_0x2db0da(0x1ef)](_0x288c0b,![])){_0x2f624c=_0x2db0da(0x24c)+_0x4433b3+').';const _0x23cf24={};_0x23cf24[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x23cf24[_0x2db0da(0x264)]=_0x2f624c,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x23cf24),logger[_0x2db0da(0x275)](_0x2f624c);const _0x424b53=await _0x1b08e3[_0x2db0da(0x236)]();if(_0x424b53){const _0x179964={};_0x179964[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x179964[_0x2db0da(0x264)]='Cluster\x20'+_0x3e24eb+_0x2db0da(0x1eb),webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x179964,_0x2d2003[_0x2db0da(0x18f)]),logger[_0x2db0da(0x275)](_0x2db0da(0x208)+_0x3e24eb+_0x2db0da(0x1eb)),_0x288c0b=!![];}else{const _0x1ce7e3={};_0x1ce7e3[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x1ce7e3[_0x2db0da(0x264)]=_0x2d2003[_0x2db0da(0x21a)],webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x1ce7e3),logger[_0x2db0da(0x275)](_0x2d2003[_0x2db0da(0x21a)]);const _0x309d7a=_0x2d2003['FgXKZ'](_0x3fd7bc,null)&&_0x2d2003['yyWJZ'](_0x3fd7bc,undefined),_0x1e3246=_0x2d2003[_0x2db0da(0x260)](subnets,null)&&_0x2d2003[_0x2db0da(0x174)](subnets,undefined)&&_0x2d2003[_0x2db0da(0x238)](subnets[_0x2db0da(0x1f3)],0x0);if(_0x309d7a){_0x2d2003[_0x2db0da(0x1ef)](_0x1e3246,![])&&(_0x2f624c=_0x2d2003[_0x2db0da(0x187)],await _0x2d2003[_0x2db0da(0x213)](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x27a)],_0x2d2003[_0x2db0da(0x178)]),logger['error'](_0x2f624c),process[_0x2db0da(0x1ae)](0x1));const _0x2f0810=await _0x1b08e3[_0x2db0da(0x1ca)](_0x3fd7bc);_0x2d2003[_0x2db0da(0x20e)](_0x2f0810,![])?(_0x2f624c=_0x2d2003[_0x2db0da(0x1e2)],await _0x2d2003['Yfkot'](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x20a)],_0x2d2003['piSZu']),logger[_0x2db0da(0x257)](_0x2f624c),process[_0x2db0da(0x1ae)](0x1)):logger[_0x2db0da(0x275)](_0x2db0da(0x23d)+_0x3fd7bc+'\x20');const _0x1da3df=await _0x1b08e3[_0x2db0da(0x27d)](subnets,_0x3fd7bc);_0x2d2003[_0x2db0da(0x1ce)](_0x1da3df[0x0],![])?(_0x2f624c=_0x2db0da(0x1ee)+_0x1da3df[0x1]+_0x2db0da(0x265)+_0x3fd7bc+_0x2db0da(0x1bf),await _0x2d2003['FizZH'](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x21f)],_0x2d2003['piSZu']),logger[_0x2db0da(0x257)](_0x2f624c),process['exit'](0x1)):logger[_0x2db0da(0x275)](_0x2db0da(0x1d6)+JSON[_0x2db0da(0x1e8)](subnets)+'\x20'),await _0x1b08e3[_0x2db0da(0x269)](_0x3fd7bc,subnets);}else{const _0x3aa901=_0x2d2003[_0x2db0da(0x1d3)][_0x2db0da(0x180)]('|');let _0x442623=0x0;while(!![]){switch(_0x3aa901[_0x442623++]){case'0':logger[_0x2db0da(0x275)](_0x2d2003[_0x2db0da(0x234)]);continue;case'1':await _0x1b08e3['setupNewCluster']();continue;case'2':const _0x4963b4={};_0x4963b4[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x4963b4[_0x2db0da(0x264)]=_0x2db0da(0x1ec),webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x4963b4);continue;case'3':logger[_0x2db0da(0x275)](_0x2d2003[_0x2db0da(0x23c)]);continue;case'4':const _0x36a441={};_0x36a441[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x36a441[_0x2db0da(0x264)]=_0x2d2003['JAhSu'],webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x36a441);continue;}break;}}}}_0x288c0b&&_0x2d2003[_0x2db0da(0x22d)](_0x5ae78e,AZURE)&&(global_registry[_0x2db0da(0x1b4)]=_0xedb62b[_0x2db0da(0x1c8)],await _0x1b08e3[_0x2db0da(0x22a)](),await _0x1b08e3[_0x2db0da(0x197)]());const [_0x48973c,_0x2a5f71,_0x318c51,_0x12dda1,_0x2f16cf,_0x330776]=await _0x2d2003['ZhGrS'](createK8sClient,_0x1b08e3);_0x2d2003[_0x2db0da(0x22d)](_0x288c0b,![])&&_0x2d2003[_0x2db0da(0x1e7)](_0x5ae78e,AWS)&&(_0x5d3512=await _0x1b08e3[_0x2db0da(0x22c)](_0x48973c,_0x2eafee));try{_0x281eb2=_0x2d2003[_0x2db0da(0x283)](kebabCase,_0xa503a2),logger['info'](_0x2d2003['pDiEx']);const _0x2b1caf={};_0x2b1caf['type']=WS_EVENTS[_0x2db0da(0x1ab)],_0x2b1caf[_0x2db0da(0x264)]=_0x2d2003['pDiEx'],webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x2b1caf);if(_0x2d2003['GWbwJ'](_0x281eb2,_0x2d2003[_0x2db0da(0x209)])){const _0x822ede={};_0x822ede[_0x2db0da(0x284)]=_0x2d2003[_0x2db0da(0x26d)],_0x822ede[_0x2db0da(0x1f9)]=_0x2d2003[_0x2db0da(0x26d)];const _0x3496eb={};_0x3496eb[_0x2db0da(0x272)]=_0x281eb2,_0x3496eb['annotations']=_0x822ede;const _0x530ae7={};_0x530ae7[_0x2db0da(0x191)]=_0x3496eb;let _0x5ab41e=_0x530ae7;await _0x48973c[_0x2db0da(0x22e)](_0x5ab41e),logger[_0x2db0da(0x275)](_0x2d2003['VsPFA']);}const _0x261466={};_0x261466['type']=WS_EVENTS[_0x2db0da(0x1ab)],_0x261466['message']=_0x2d2003['EGeod'],webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x261466);const _0x1c78c7={};_0x1c78c7[_0x2db0da(0x1b9)]=WS_EVENTS['LOG'],_0x1c78c7[_0x2db0da(0x264)]=_0x2d2003[_0x2db0da(0x23b)],webSocketUtils['sendEventToBackend'](_0x3e9446,_0x1c78c7),logger['info'](_0x2d2003[_0x2db0da(0x1e4)]);let _0x5f3a4f={};_0x2d2003['AWcPs'](_0x5ae78e,AZURE)&&(_0x5f3a4f={'clientId':await _0x1b08e3['getResourceClientId'](_0x2db0da(0x271)+_0x3e24eb)});await _0x2d2003[_0x2db0da(0x227)](addGridComponents,_0x48973c,_0x2a5f71,_0x318c51,_0x12dda1,_0x281eb2,_0x3e24eb,_0x5d3512,_0x2f16cf,_0x330776,_0x5f3a4f),_0x2f624c=_0x2d2003[_0x2db0da(0x26b)],logger[_0x2db0da(0x275)](_0x2f624c);const _0x3db7d7={};_0x3db7d7[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x3db7d7[_0x2db0da(0x264)]=_0x2f624c,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x3db7d7),_0x2f624c=_0x2d2003[_0x2db0da(0x25f)],logger[_0x2db0da(0x275)](_0x2f624c);const _0xcee08d={};_0xcee08d[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0xcee08d[_0x2db0da(0x264)]=_0x2f624c,webSocketUtils['sendEventToBackend'](_0x3e9446,_0xcee08d),await webSocketUtils[_0x2db0da(0x1dd)](0xea60);const _0x391ec3=await _0x2d2003[_0x2db0da(0x217)](getNamespaceUID,_0x48973c,_0x281eb2);let _0x8caabd=global_registry['isPrivateGrid']?_0x2d2003['IgOvJ']:_0x2d2003[_0x2db0da(0x1f8)],_0x41b846=await _0x48973c[_0x2db0da(0x1bd)](_0x8caabd,_0x2d2003[_0x2db0da(0x173)]),_0x3f644d=_0x1b08e3[_0x2db0da(0x20c)](_0x41b846)+'/'+_0x281eb2,_0x3dbb3b=_0x2d2003[_0x2db0da(0x28b)];try{const _0x450c3f={'url':_0x2db0da(0x189)+AG_API_URL+_0x2db0da(0x1f7)+_0x391ec3,..._0x28c126},_0x520deb=_0x450c3f,_0x3d45ae=await _0x2d2003[_0x2db0da(0x28a)](promisifiedRequest,_0x520deb);(_0x2d2003[_0x2db0da(0x1e7)](_0x3d45ae,null)||_0x2d2003['NluDU'](_0x3d45ae,undefined))&&(_0x2f624c=_0x2d2003[_0x2db0da(0x1fe)],await _0x2d2003[_0x2db0da(0x16f)](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003['YlTWj'],_0x2d2003[_0x2db0da(0x281)],_0x2d2003[_0x2db0da(0x178)]),logger['error'](_0x2f624c),process['exit'](0x1));_0x2d2003[_0x2db0da(0x25c)](_0x3d45ae['statusCode'],0x191)&&(_0x2f624c=_0x2d2003[_0x2db0da(0x286)],await _0x2d2003[_0x2db0da(0x1d2)](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes[_0x2db0da(0x289)],_0x2d2003[_0x2db0da(0x262)],_0x2d2003['NWDVk'],_0x2d2003[_0x2db0da(0x178)]),logger['error'](_0x2f624c),process['exit'](0x1));_0x2d2003[_0x2db0da(0x1c7)](_0x3d45ae['statusCode'],0xc8)&&(_0x2f624c='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x2db0da(0x1e8)](_0x3d45ae),await _0x2d2003[_0x2db0da(0x1d2)](reportToGalactusAndSendToEDS,_0x2eafee,_0x3e9446,_0x2f624c,messageTypes['ERROR'],_0x2d2003[_0x2db0da(0x262)],_0x2d2003[_0x2db0da(0x254)],_0x2d2003[_0x2db0da(0x178)]),logger[_0x2db0da(0x257)](_0x2f624c),process[_0x2db0da(0x1ae)](0x1));const _0x15efae=JSON[_0x2db0da(0x196)](_0x3d45ae[_0x2db0da(0x242)]);_0x15efae[_0x2db0da(0x192)]&&(_0x3f644d=_0x15efae[_0x2db0da(0x192)],_0x3dbb3b=_0x2d2003[_0x2db0da(0x1c5)]),global_registry[_0x2db0da(0x1a0)]&&(_0x3dbb3b=_0x2d2003['flFvZ']);}catch(_0x5e60de){}_0x2f624c='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x3f644d+'\x20',logger[_0x2db0da(0x275)](_0x2f624c);const _0x2ef617={};_0x2ef617[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x2ef617['message']=_0x2f624c,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x2ef617),_0x2f624c=_0x2db0da(0x258)+_0x3dbb3b+'://'+_0x3f644d+_0x2db0da(0x235),logger[_0x2db0da(0x275)](_0x2f624c);const _0x55fc2d={};_0x55fc2d[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x55fc2d[_0x2db0da(0x264)]=_0x2f624c,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x55fc2d);const _0x276687={};_0x276687[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x170)],_0x276687[_0x2db0da(0x264)]=_0x2db0da(0x202)+_0x3f644d,webSocketUtils['sendEventToBackend'](_0x3e9446,_0x276687),await webSocketUtils[_0x2db0da(0x1dd)](0x7d0);}catch(_0x3dc9ce){if(_0x2d2003['DYAyP'](_0x288c0b,![]))try{logger[_0x2db0da(0x275)](_0x2db0da(0x266)),await _0x2d2003[_0x2db0da(0x278)](removeGridComponents,_0x48973c,_0x2a5f71,_0x318c51,_0x12dda1,_0x281eb2),await _0x1b08e3[_0x2db0da(0x19e)](_0x48973c,global_registry[_0x2db0da(0x1f5)]);}catch(_0x50f80c){throw _0x50f80c;}throw _0x3dc9ce;}}catch(_0x1510c5){const _0x32ffb0='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x1510c5+'\x20\x0a'+JSON[_0x2db0da(0x1e8)](_0x1510c5)+'\x20';if(_0x3e9446){const _0x4003a4={};_0x4003a4[_0x2db0da(0x1b9)]=WS_EVENTS[_0x2db0da(0x1ab)],_0x4003a4[_0x2db0da(0x264)]=_0x32ffb0,webSocketUtils[_0x2db0da(0x183)](_0x3e9446,_0x4003a4,_0x2d2003[_0x2db0da(0x178)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x2c470e={};_0x2c470e[_0x2db0da(0x257)]=_0x32ffb0,await _0x2d2003['foNzi'](sendInstrumentationEvent,_0x2eafee,_0x2d2003[_0x2db0da(0x262)],messageTypes[_0x2db0da(0x289)],_0x2d2003['sMDoB'],_0x2c470e,_0x2eafee),logger['error'](_0x32ffb0);}process[_0x2db0da(0x1ae)](0x0);};
1
+ function a9_0x506e(){const _0x1a6a03=['SyySb','116190qpeOVY','<PasswordPlaceholder>','create-grid-checks-grid-already-exists','JuXkm','YVvKl','0|1|2|3|4','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','tUpmk','debug','clusterRegion','SFXnb','stringify','wgEip','DfzEQ','../../utils/userInput','bstackUsername','vRORw','hHHmm','pre-spawned-invalid-vpc','route53','hPvUE','24cewWQT','isClusterPresent','description','securityGroups','request','TgEFA','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','iRWaZ','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','password','XgiqV','eEdHQ','JvcDn','SRIvA','isSubnetsValid','hYnBt','s3bucket','FqADP','CGuUc','length','username','CHvHJ','clusterName','SmrOU','uubPj','create-grid-checks-non-200','tkhQY','info','nnXBx','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','tFLXc','help','hhJwI','gtBZA','KhJjZ','oWhRv','mnDlY','builder','readNamespacedService','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','PtJXx','kUEmR','4907zqOeIf','privateGrid','jORZE','dLVDe','KvpUq','rhehb','isPrivateGrid','s3BucketName','get-grid-url-non-200','includes','LOG','JyPmO','error','YhjZN','hESsX','grid-name','dLTJG','body','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','://','FIVxk','Grid\x20spawned\x20on\x20the\x20cluster','uURXs','https','JiLrM','VVwft','Creating\x20namespace','subnets','BSzlt','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','KIVXY','private-ingress-nginx-controller','requestId','type','XYToV','Deleting\x20the\x20CloudFormation\x20Stacks','Cluster\x20created\x20successfully','readFileSync','setupNewCluster','init-not-called','RpsCB','ERROR','Create\x20a\x20new\x20Automation\x20grid.','NIXUm','/packages/cli/create-grid-checks','RmOWP','Spawning\x20Grid\x20on\x20the\x20Cluster','auth','FZtwC','ingress-nginx-controller','usage','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','true','WvwlU','browserVersion','KwWxe','569808PQOVUA','reconnecting-websocket','DeZwe','PrGvb','HuIcU','ODLfq','delay','42758kadxZH','private-grid','TJHCC','addListeners','create-grid-checks-null-response','ICsMn','SifrG','YCNql','mxUaq','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','vpc','XmhqK','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','opQwe','PyubQ','create','toLowerCase','minNodes','../../utils/utilityMethods','Browserstack','bstackAccesskey','LxyHE','getResourceClientId','SsWis','DgNQa','nLLRg','cWWKX','187axDVhM','NmGXm','grid-spawning-failed','configureIfNotConfigured','ConpJ','turboscale-managed-identity-','NfQab','\x20in\x20existing\x20cluster\x20\x27','parse','yEmtP','epilogue','../../utils/webSocketUtils','rblSc','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','mZwxk','UcvrH','../../config/constants','khdla','toSRA','sendEventToBackend','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ingress-nginx','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','jjcTQ','919352cdIaug','promisify','method','JMatc','8PwAFvP','non-aws-azure-cluster','nRgpl','zudOH','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','sYXFp','updatePreSpawnedCluster','alreadyPresent','UrxEE','BjdmN','split','\x27\x20grid\x20profile','xAgeX','obWvj','grid','gridName','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','\x20are\x20not\x20present\x20in\x20VPC:\x20','cloud-provider','pre-spawned-subnets-not-selected','isVPCPresent','9ZzVHzo','string','../../utils/instrumentationUtils','createNamespace','grid-profile','Uqflm','name','../../config/logger','aipAL','4klZRSz','region','Adding\x20Websocket\x20listeners','tmiNw','222rgVUWC','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','TtrUG','zVatE','get-grid-url-auth-failed','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Will\x20be\x20spawning\x20the\x20grid\x20','CvWzN','UzRwE','metadata','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','WebSocket','options','CumCd','statusCode','nEaaY','IDfvL','cloudProvider','../../utils/createk8sClient','gridProfileId','getGridHostname','BiJSW','Found\x20Subnets:\x20','FTnEu','WImPJ','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','replace','FdNcI','Spawning\x20the\x20grid\x20','VJJrZ','LewQd','ojhsL','jFChI','command','cluster-name','zUdsW','HlrLF','Cluster\x20','gridProfiles','exit','AupxC','pre-spawned-invalid-subnets','util','connectionTimeout','Create\x20a\x20private/public\x20grid.','../../utils/gridComponents','ojKcw','cXidR','CLI_RUN_STARTED','Found\x20VPC:\x20','GET','CWQIo','argv','SVRjc','VkeCb','sZoVf','iLCEX','MmGnP','concurrency','uqPBv','existsSync','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Namespace\x20Created','KzrUi','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.','RoFnb','maxNodes','annotations','rfgUT','CLI\x20run\x20started','Grid\x20profile\x20fetched\x20from\x20backend','createOtherResources','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','default','984347SXEuVI','hubVersion','143870zUjAta','JTDDX','Pmclx','sXMBd','gridProfile','LLGLL','RSLVu','txJtu','Subnets:\x20','MsQFy','CLI\x20run\x20finished:\x20','Namespace\x20created','IksTz','2|7|8|5|6|1|4|0|3','NwLYL','user','message','SyLNb','prespawned-cluster-args-not-passed','instanceType'];a9_0x506e=function(){return _0x1a6a03;};return a9_0x506e();}const a9_0x5736cb=a9_0x1086;(function(_0xf04106,_0x2ec364){const _0x3c0108=a9_0x1086,_0x337e1a=_0xf04106();while(!![]){try{const _0x55d7cf=-parseInt(_0x3c0108(0x134))/0x1*(parseInt(_0x3c0108(0xfd))/0x2)+-parseInt(_0x3c0108(0xf6))/0x3+-parseInt(_0x3c0108(0x153))/0x4*(-parseInt(_0x3c0108(0x1a4))/0x5)+parseInt(_0x3c0108(0x157))/0x6*(-parseInt(_0x3c0108(0x1f9))/0x7)+parseInt(_0x3c0108(0x130))/0x8*(parseInt(_0x3c0108(0x14a))/0x9)+-parseInt(_0x3c0108(0x1b9))/0xa*(-parseInt(_0x3c0108(0x118))/0xb)+-parseInt(_0x3c0108(0x1ce))/0xc*(-parseInt(_0x3c0108(0x1a2))/0xd);if(_0x55d7cf===_0x2ec364)break;else _0x337e1a['push'](_0x337e1a['shift']());}catch(_0x5c5594){_0x337e1a['push'](_0x337e1a['shift']());}}}(a9_0x506e,0x19d15));const fs=require('fs'),ws=require('ws'),util=require(a9_0x5736cb(0x182)),ReconnectingWebSocket=require(a9_0x5736cb(0xf7)),request=require(a9_0x5736cb(0x1d2)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x5736cb(0x123)),{logger}=require(a9_0x5736cb(0x151)),{inputCloudProviderKeys}=require(a9_0x5736cb(0x1c7)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a9_0x5736cb(0x10f)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a9_0x5736cb(0x128)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x5736cb(0x185)),{createK8sClient}=require(a9_0x5736cb(0x16a)),{sendInstrumentationEvent}=require(a9_0x5736cb(0x14c)),promisifiedRequest=util[a9_0x5736cb(0x131)](request);function a9_0x1086(_0x11183e,_0xd53ac2){const _0x506ecb=a9_0x506e();return a9_0x1086=function(_0x1086e9,_0x14c225){_0x1086e9=_0x1086e9-0xf3;let _0x250804=_0x506ecb[_0x1086e9];return _0x250804;},a9_0x1086(_0x11183e,_0xd53ac2);}exports[a9_0x5736cb(0x179)]=a9_0x5736cb(0x142),exports['desc']=a9_0x5736cb(0x223),exports[a9_0x5736cb(0x1f3)]=function(_0x1e2406){const _0x5ae297=a9_0x5736cb,_0x3f265b={};_0x3f265b[_0x5ae297(0x19c)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x3f265b['SyySb']='string',_0x3f265b[_0x5ae297(0x12a)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x3f265b['gtBZA']=_0x5ae297(0x216),_0x3f265b[_0x5ae297(0x21b)]=_0x5ae297(0x12c),_0x3f265b[_0x5ae297(0x108)]=_0x5ae297(0x106),_0x3f265b[_0x5ae297(0x17b)]=_0x5ae297(0x184),_0x3f265b['nEaaY']=_0x5ae297(0x1ed);const _0x542de5=_0x3f265b,_0x56d11b={};_0x56d11b[_0x5ae297(0x1d0)]=_0x542de5[_0x5ae297(0x19c)],_0x56d11b[_0x5ae297(0x21a)]=_0x542de5[_0x5ae297(0x1b8)];const _0x5a2e50={};_0x5a2e50[_0x5ae297(0x1d0)]=_0x542de5[_0x5ae297(0x12a)],_0x5a2e50[_0x5ae297(0x21a)]=_0x542de5[_0x5ae297(0x1b8)];const _0x17c663={};_0x17c663[_0x5ae297(0x1d0)]=_0x542de5[_0x5ae297(0x1ef)],_0x17c663['type']=_0x542de5[_0x5ae297(0x1b8)];const _0x2995a7={};_0x2995a7[_0x5ae297(0x1d0)]=_0x542de5[_0x5ae297(0x21b)],_0x2995a7[_0x5ae297(0x21a)]=_0x542de5[_0x5ae297(0x1b8)];const _0x2a2d4f={};_0x2a2d4f[_0x5ae297(0x1d0)]=_0x542de5[_0x5ae297(0x108)],_0x2a2d4f['type']=_0x542de5[_0x5ae297(0x1b8)];const _0x2f8a19={};_0x2f8a19[_0x5ae297(0x1d0)]=_0x542de5['zUdsW'],_0x2f8a19[_0x5ae297(0x21a)]=_0x542de5[_0x5ae297(0x1b8)];const _0x1ea0d9={};return _0x1ea0d9[_0x5ae297(0x208)]=_0x56d11b,_0x1ea0d9[_0x5ae297(0x14e)]=_0x5a2e50,_0x1ea0d9[_0x5ae297(0x17a)]=_0x17c663,_0x1ea0d9[_0x5ae297(0x147)]=_0x2995a7,_0x1ea0d9[_0x5ae297(0x154)]=_0x2a2d4f,_0x1ea0d9[_0x5ae297(0xfe)]=_0x2f8a19,_0x1e2406[_0x5ae297(0x22b)](HELP_HEADER_MESSAGE['create'])[_0x5ae297(0x122)](HELP_FOOTER_MESSAGE)[_0x5ae297(0x164)](_0x1ea0d9)[_0x5ae297(0x1ed)](_0x542de5[_0x5ae297(0x167)])[_0x5ae297(0x18c)];},exports['handler']=async function(_0x4a5111){const _0x2db0b7=a9_0x5736cb,_0x4417a2={'nnXBx':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','xAgeX':_0x2db0b7(0x14b),'ObxSC':_0x2db0b7(0x138),'uaQwx':_0x2db0b7(0x216),'WImPJ':_0x2db0b7(0x12c),'txJtu':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','iRWaZ':_0x2db0b7(0x184),'HLIbn':'help','PyubQ':_0x2db0b7(0x205),'cWWKX':_0x2db0b7(0x158),'clixY':_0x2db0b7(0x1b1),'DfzEQ':'http','rhehb':'warn','DgNQa':_0x2db0b7(0x210),'JuXkm':function(_0x4835f4){return _0x4835f4();},'MmGnP':function(_0x207249){return _0x207249();},'KvpUq':function(_0x3f0bc,_0x48011f){return _0x3f0bc!==_0x48011f;},'hESsX':_0x2db0b7(0x165),'VJJrZ':_0x2db0b7(0x1f5),'hYnBt':function(_0x2f32a4,_0x534516,_0x4bab5e,_0x550396,_0x40cf75,_0x104137,_0x221ff3){return _0x2f32a4(_0x534516,_0x4bab5e,_0x550396,_0x40cf75,_0x104137,_0x221ff3);},'CGuUc':'create-grid-called','UzRwE':_0x2db0b7(0x220),'AHmSg':function(_0x33d27b){return _0x33d27b();},'FqADP':'<UsernamePlaceholder>','TtrUG':_0x2db0b7(0x1ba),'uQiQv':_0x2db0b7(0x155),'YhjZN':function(_0x3f5420,_0x161a63){return _0x3f5420!==_0x161a63;},'LxyHE':_0x2db0b7(0x176),'WvwlU':function(_0x342c1e,_0x12047c){return _0x342c1e!==_0x12047c;},'opQwe':'tXSly','PrGvb':_0x2db0b7(0x161),'FdNcI':function(_0x494790,_0x889e32,_0x1b19b2,_0xb6325c,_0x3a9f9c,_0x60bd70,_0x1478f4,_0x5791fb){return _0x494790(_0x889e32,_0x1b19b2,_0xb6325c,_0x3a9f9c,_0x60bd70,_0x1478f4,_0x5791fb);},'uqPBv':_0x2db0b7(0x1b6),'MsQFy':function(_0x48ba2d,_0x5c99f3){return _0x48ba2d!==_0x5c99f3;},'sYXFp':_0x2db0b7(0x1b0),'jCdzu':_0x2db0b7(0x141),'ojKcw':_0x2db0b7(0x22c),'tUpmk':function(_0x518cff,_0x27ab94,_0x372907,_0x11d99a,_0x23c874,_0x47dfab,_0x2922a8,_0xc89724){return _0x518cff(_0x27ab94,_0x372907,_0x11d99a,_0x23c874,_0x47dfab,_0x2922a8,_0xc89724);},'qUwKe':_0x2db0b7(0x135),'NfQab':function(_0x1d103a,_0x210625){return _0x1d103a===_0x210625;},'zudOH':_0x2db0b7(0x22d),'CWQIo':_0x2db0b7(0x1b5),'NmGXm':_0x2db0b7(0x133),'hhJwI':_0x2db0b7(0x199),'dLTJG':_0x2db0b7(0x18a),'UrxEE':function(_0x323392,_0x26525c){return _0x323392(_0x26525c);},'AupxC':function(_0x443082,_0x4e1358){return _0x443082===_0x4e1358;},'THRyK':function(_0x34999e,_0x543381){return _0x34999e!==_0x543381;},'HuIcU':_0x2db0b7(0x224),'hHHmm':_0x2db0b7(0x1d4),'AKhTw':_0x2db0b7(0x101),'SifrG':function(_0x54a7e5,_0x38a7cd){return _0x54a7e5===_0x38a7cd;},'BiJSW':_0x2db0b7(0x1a5),'wgEip':_0x2db0b7(0x1d9),'sZoVf':_0x2db0b7(0x125),'DeZwe':function(_0x4e6af4,_0x44040e,_0xe0f817,_0x14caaf,_0x327221,_0x3c1905,_0x22845b,_0x5ebc6c){return _0x4e6af4(_0x44040e,_0xe0f817,_0x14caaf,_0x327221,_0x3c1905,_0x22845b,_0x5ebc6c);},'CWRSF':'create-grid-checks-auth-failed','FZtwC':function(_0x4ed731,_0x3587bc){return _0x4ed731!==_0x3587bc;},'OUYkY':function(_0xc9e4ee,_0x4b107f){return _0xc9e4ee!==_0x4b107f;},'ojhsL':_0x2db0b7(0x116),'VVwft':_0x2db0b7(0x1a7),'hPvUE':_0x2db0b7(0x1e7),'YCNql':_0x2db0b7(0x19e),'HlrLF':function(_0x2477ee,_0x5dcb1){return _0x2477ee!==_0x5dcb1;},'SsWis':_0x2db0b7(0x121),'aWfYs':_0x2db0b7(0x226),'PtJXx':_0x2db0b7(0x171),'CHvHJ':function(_0x22e6cc,_0x23d216,_0x32be9e,_0x21c56c,_0x24e6f2,_0x2b3bc3,_0x263f5f,_0x3f3ca2){return _0x22e6cc(_0x23d216,_0x32be9e,_0x21c56c,_0x24e6f2,_0x2b3bc3,_0x263f5f,_0x3f3ca2);},'OipwL':_0x2db0b7(0x1bb),'FVtGh':_0x2db0b7(0x1d8),'mZwxk':'wXIjY','tkhQY':'OUCrL','kGgyI':'zLSEC','FTnEu':function(_0x5f4c7b,_0x1b1209){return _0x5f4c7b===_0x1b1209;},'nRgpl':function(_0xcb31ff,_0x3a10b5){return _0xcb31ff===_0x3a10b5;},'SFXnb':_0x2db0b7(0x1a9),'KIVXY':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','JyPmO':function(_0x361707,_0x39b603,_0x88baf0,_0x4ea536,_0x56a501,_0x504600,_0x3a4412,_0x552621){return _0x361707(_0x39b603,_0x88baf0,_0x4ea536,_0x56a501,_0x504600,_0x3a4412,_0x552621);},'KzrUi':'create-grid-checks-invalid-profile','jjcTQ':function(_0x1113a4,_0x1d9047){return _0x1113a4===_0x1d9047;},'GtbEs':'erglX','wnnMG':'IZKpU','rDGsO':function(_0x4e8b56,_0x5563e3){return _0x4e8b56===_0x5563e3;},'kUEmR':_0x2db0b7(0x168),'SRIvA':function(_0x656567,_0x347ed0,_0x57cdba,_0x293d07,_0x4b1d00,_0x180a9f,_0xd60d8c,_0x1fdd8b,_0x21c4c8,_0x2829e9,_0x25ad01,_0xde7bed){return _0x656567(_0x347ed0,_0x57cdba,_0x293d07,_0x4b1d00,_0x180a9f,_0xd60d8c,_0x1fdd8b,_0x21c4c8,_0x2829e9,_0x25ad01,_0xde7bed);},'ConpJ':'5|0|6|8|4|1|2|7|3','CvWzN':function(_0x1fc545,_0x2f838a,_0x4aa339,_0x2cd792,_0x3d0b43,_0x41ae7c){return _0x1fc545(_0x2f838a,_0x4aa339,_0x2cd792,_0x3d0b43,_0x41ae7c);},'NwLYL':function(_0x2d5984,_0x100cc9){return _0x2d5984===_0x100cc9;},'khdla':_0x2db0b7(0x1bf),'tFLXc':function(_0x36a04e,_0x38f0aa,_0x308036,_0x5eeb06){return _0x36a04e(_0x38f0aa,_0x308036,_0x5eeb06);},'mnDlY':_0x2db0b7(0x1d6),'TgEFA':_0x2db0b7(0x162),'ODLfq':_0x2db0b7(0x109),'KhJjZ':function(_0x156dd0,_0x31d4fb){return _0x156dd0!=_0x31d4fb;},'YVvKl':function(_0x3e5844,_0x316a82){return _0x3e5844!==_0x316a82;},'BjdmN':function(_0xf095ae,_0x2b7b03){return _0xf095ae!==_0x2b7b03;},'Pmclx':function(_0xfdeb4c,_0x2d5603){return _0xfdeb4c>_0x2d5603;},'UcvrH':_0x2db0b7(0x144),'Uqflm':_0x2db0b7(0x148),'cXidR':function(_0x38cdac,_0x103935){return _0x38cdac===_0x103935;},'SVRjc':_0x2db0b7(0x1a0),'gLxnz':_0x2db0b7(0x1cb),'tmiNw':function(_0x471452,_0x4ebcb3,_0x1e7eed,_0x4ddae4,_0x565a83,_0x453a07,_0x294bc5,_0x2ed755){return _0x471452(_0x4ebcb3,_0x1e7eed,_0x4ddae4,_0x565a83,_0x453a07,_0x294bc5,_0x2ed755);},'zVatE':_0x2db0b7(0x181),'RpsCB':_0x2db0b7(0x1be),'JvcDn':_0x2db0b7(0x198),'VkeCb':'Cluster\x20created\x20successfully','YcmTa':function(_0xe23e5d,_0x5f2c3c){return _0xe23e5d==_0x5f2c3c;},'dLVDe':_0x2db0b7(0x213),'pySdu':function(_0x479a6d,_0x5bb09d){return _0x479a6d!==_0x5bb09d;},'hbOdJ':_0x2db0b7(0x1a1),'uubPj':'Browserstack','RuAzg':_0x2db0b7(0x196),'cedRu':_0x2db0b7(0x1af),'jXgac':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','jORZE':_0x2db0b7(0x227),'oWhRv':function(_0x1e3ba8,_0x3f56f1){return _0x1e3ba8===_0x3f56f1;},'BSzlt':function(_0x296525,_0x291600,_0x92b6d5,_0x87deb1,_0x5c4fc5,_0xde522e,_0x1b0bd0,_0x473fb0,_0x38b8f0,_0x586769,_0x4968e){return _0x296525(_0x291600,_0x92b6d5,_0x87deb1,_0x5c4fc5,_0xde522e,_0x1b0bd0,_0x473fb0,_0x38b8f0,_0x586769,_0x4968e);},'KBWKt':_0x2db0b7(0x20e),'lrFaD':_0x2db0b7(0x15c),'JiLrM':function(_0x5bc363,_0x5c44e6,_0x19c1da){return _0x5bc363(_0x5c44e6,_0x19c1da);},'vRORw':_0x2db0b7(0x218),'FIVxk':_0x2db0b7(0x22a),'LhFaH':_0x2db0b7(0x12d),'afEaV':function(_0xd5ad5c,_0x3bd6e2){return _0xd5ad5c(_0x3bd6e2);},'iLCEX':function(_0x2da981,_0x2ea504){return _0x2da981==_0x2ea504;},'ICsMn':_0x2db0b7(0x1f6),'aipAL':'get-grid-url-null-response','KwWxe':function(_0x6d7729,_0x2b83dd){return _0x6d7729===_0x2b83dd;},'TJHCC':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','RSLVu':function(_0x212409,_0x2d259d,_0x19f674,_0x358d49,_0x54f69e,_0x48781d,_0x19a6b4,_0x599f9a){return _0x212409(_0x2d259d,_0x19f674,_0x358d49,_0x54f69e,_0x48781d,_0x19a6b4,_0x599f9a);},'uURXs':_0x2db0b7(0x15b),'SmrOU':function(_0x2bc3b4,_0xc729d){return _0x2bc3b4!==_0xc729d;},'rblSc':_0x2db0b7(0x201),'mxUaq':function(_0x18e5ea,_0x2375ba,_0x357052,_0x3431dd,_0xdc6da3,_0x50631e,_0x969aa){return _0x18e5ea(_0x2375ba,_0x357052,_0x3431dd,_0xdc6da3,_0x50631e,_0x969aa);},'jFChI':_0x2db0b7(0x11a)};let _0x558c57=![],_0x3d0b9b,_0x143b9d,_0x1c04a4,_0x4a34f2,_0x3940dd,_0x1994aa,_0x56127f,_0x1213bd,_0x441f2e,_0x260e95,_0x5b7b6e,_0x60399e,_0x3a08e8=0x1,_0x250c19=0xe;try{global_registry[_0x2db0b7(0x219)]=_0x4417a2[_0x2db0b7(0x1bc)](uuidv4),global_registry[_0x2db0b7(0x1ff)]=![];!fs[_0x2db0b7(0x194)](_0x4417a2[_0x2db0b7(0x191)](getCredentialsPath))&&(_0x4417a2[_0x2db0b7(0x1fd)](_0x4417a2[_0x2db0b7(0x207)],_0x4417a2[_0x2db0b7(0x207)])?_0x3054c5[_0x2db0b7(0x1e9)](_0x2db0b7(0x16e)+_0x4db07b[_0x2db0b7(0x1c4)](_0x39699f)+'\x20'):(console[_0x2db0b7(0x205)](_0x4417a2[_0x2db0b7(0x175)]),await _0x4417a2[_0x2db0b7(0x1dd)](sendInstrumentationEvent,_0x4a5111,_0x4417a2[_0x2db0b7(0x1e0)],messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x15f)],null,_0x4a5111),process[_0x2db0b7(0x17f)](0x1)));await _0x4417a2[_0x2db0b7(0x1dd)](sendInstrumentationEvent,_0x4a5111,_0x4417a2[_0x2db0b7(0x1e0)],messageTypes['INFO'],null,null,_0x4a5111);const _0x4ebdd1=JSON[_0x2db0b7(0x120)](fs[_0x2db0b7(0x21e)](_0x4417a2['AHmSg'](getCredentialsPath)));global_registry[_0x2db0b7(0x1c8)]=_0x4ebdd1[_0x2db0b7(0x110)][_0x2db0b7(0x1e2)],global_registry[_0x2db0b7(0x111)]=_0x4ebdd1[_0x2db0b7(0x110)][_0x2db0b7(0x1d7)];const _0x2a3c28=WS_ENDPOINT[_0x2db0b7(0x172)](_0x4417a2[_0x2db0b7(0x1df)],_0x4ebdd1[_0x2db0b7(0x110)][_0x2db0b7(0x1e2)])[_0x2db0b7(0x172)](_0x4417a2[_0x2db0b7(0x159)],_0x4ebdd1['Browserstack'][_0x2db0b7(0x1d7)]),_0x433dff={};_0x433dff[_0x2db0b7(0x163)]=ws,_0x433dff[_0x2db0b7(0x183)]=0x36ee80,_0x260e95=new ReconnectingWebSocket(_0x2a3c28,[],_0x433dff),logger[_0x2db0b7(0x1c1)](_0x4417a2['uQiQv']),webSocketUtils[_0x2db0b7(0x100)](_0x260e95,_0x4a5111[_0x2db0b7(0x1b3)],_0x4a5111[_0x2db0b7(0x1d7)]);let _0x154174=DEFAULT_GRID_NAME;if(_0x4a5111['clusterName']||_0x4a5111[_0x2db0b7(0x169)]||_0x4a5111[_0x2db0b7(0x154)]){if(_0x4417a2[_0x2db0b7(0x206)](_0x4417a2[_0x2db0b7(0x112)],_0x4417a2[_0x2db0b7(0x112)])){const _0x1c3a0e={};_0x1c3a0e['description']=_0x4417a2[_0x2db0b7(0x1ea)],_0x1c3a0e[_0x2db0b7(0x21a)]=_0x4417a2[_0x2db0b7(0x140)];const _0x3b8dae={};_0x3b8dae[_0x2db0b7(0x1d0)]=_0x4417a2['ObxSC'],_0x3b8dae[_0x2db0b7(0x21a)]=_0x4417a2[_0x2db0b7(0x140)];const _0x13fe3c={};_0x13fe3c[_0x2db0b7(0x1d0)]=_0x4417a2['uaQwx'],_0x13fe3c[_0x2db0b7(0x21a)]=_0x4417a2['xAgeX'];const _0x8c055d={};_0x8c055d['description']=_0x4417a2[_0x2db0b7(0x170)],_0x8c055d[_0x2db0b7(0x21a)]=_0x4417a2[_0x2db0b7(0x140)];const _0x1871c4={};_0x1871c4['description']=_0x4417a2[_0x2db0b7(0x1ab)],_0x1871c4['type']=_0x4417a2[_0x2db0b7(0x140)];const _0x32f296={};_0x32f296[_0x2db0b7(0x1d0)]=_0x4417a2[_0x2db0b7(0x1d5)],_0x32f296['type']=_0x4417a2[_0x2db0b7(0x140)];const _0x297d1b={};return _0x297d1b['grid-name']=_0x1c3a0e,_0x297d1b['grid-profile']=_0x3b8dae,_0x297d1b[_0x2db0b7(0x17a)]=_0x13fe3c,_0x297d1b[_0x2db0b7(0x147)]=_0x8c055d,_0x297d1b[_0x2db0b7(0x154)]=_0x1871c4,_0x297d1b[_0x2db0b7(0xfe)]=_0x32f296,_0x4cc7fc['usage'](_0x3b67dc[_0x2db0b7(0x10c)])[_0x2db0b7(0x122)](_0x4fc140)[_0x2db0b7(0x164)](_0x297d1b)[_0x2db0b7(0x1ed)](_0x4417a2['HLIbn'])[_0x2db0b7(0x18c)];}else{if(!(_0x4a5111[_0x2db0b7(0x1e4)]&&_0x4a5111[_0x2db0b7(0x169)]&&_0x4a5111[_0x2db0b7(0x154)])){if(_0x4417a2[_0x2db0b7(0xf3)](_0x4417a2[_0x2db0b7(0x10a)],_0x4417a2['opQwe'])){const _0xd617bc={};_0xd617bc[_0x2db0b7(0x21a)]=_0x54c68e[_0x2db0b7(0x203)],_0xd617bc[_0x2db0b7(0x1b4)]=_0x3bcd11,_0xcb07e6[_0x2db0b7(0x12b)](_0x5121f9,_0xd617bc,_0x4417a2['PyubQ'],!![]);}else _0x3d0b9b=_0x4417a2[_0x2db0b7(0xf9)],await _0x4417a2[_0x2db0b7(0x173)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x193)],_0x4417a2['PyubQ']),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1);}![AWS,AZURE,GCP][_0x2db0b7(0x202)](_0x4a5111['cloudProvider'][_0x2db0b7(0x10d)]())&&(_0x4417a2[_0x2db0b7(0x1ad)](_0x4417a2[_0x2db0b7(0x139)],_0x4417a2['jCdzu'])?(_0x3d0b9b=_0x4417a2[_0x2db0b7(0x186)],await _0x4417a2['tUpmk'](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2['qUwKe'],_0x4417a2['PyubQ']),logger['error'](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1)):(_0x2e7955[_0x2db0b7(0x205)](_0x4417a2[_0x2db0b7(0x117)]),_0x5c3752[_0x2db0b7(0x17f)](0x1))),_0x4a5111[_0x2db0b7(0x1fa)]&&_0x4417a2['NfQab'](_0x4a5111['privateGrid']['toLowerCase'](),_0x4417a2[_0x2db0b7(0x137)])&&(_0x4417a2[_0x2db0b7(0x11e)](_0x4417a2[_0x2db0b7(0x18b)],_0x4417a2[_0x2db0b7(0x119)])?_0x294eec[_0x2db0b7(0x1ff)]=!![]:global_registry[_0x2db0b7(0x1ff)]=!![]),_0x558c57=!![],_0x1c04a4=_0x4a5111[_0x2db0b7(0x1e4)],_0x143b9d=_0x4a5111['cloudProvider']['toLowerCase'](),_0x4a34f2=_0x4a5111[_0x2db0b7(0x154)];}}if(_0x4a5111[_0x2db0b7(0x143)]){if(_0x4417a2['YhjZN'](_0x4417a2[_0x2db0b7(0x1ee)],_0x4417a2[_0x2db0b7(0x1ee)]))throw _0x173c55;else _0x154174=_0x4a5111[_0x2db0b7(0x143)];}global_registry[_0x2db0b7(0x143)]=_0x154174;const _0x3b70e5={};_0x3b70e5[_0x2db0b7(0x1e2)]=_0x4ebdd1[_0x2db0b7(0x110)]['username'],_0x3b70e5[_0x2db0b7(0x1d7)]=_0x4ebdd1[_0x2db0b7(0x110)][_0x2db0b7(0x1d7)];const _0x532a9e={};_0x532a9e[_0x2db0b7(0x132)]=_0x4417a2[_0x2db0b7(0x209)],_0x532a9e[_0x2db0b7(0x228)]=_0x3b70e5;const _0x5b58bc=_0x532a9e,_0x1b78e2='https://'+AG_API_URL+_0x2db0b7(0x225),_0x4407fc={};_0x4407fc['gridName']=_0x154174;const _0x54caa9={'url':_0x1b78e2,'qs':_0x4407fc,..._0x5b58bc},_0x558d4c=_0x54caa9,_0x462163=await _0x4417a2[_0x2db0b7(0x13c)](promisifiedRequest,_0x558d4c);(_0x4417a2[_0x2db0b7(0x180)](_0x462163,null)||_0x4417a2[_0x2db0b7(0x180)](_0x462163,undefined))&&(_0x4417a2['THRyK'](_0x4417a2[_0x2db0b7(0xfa)],_0x4417a2[_0x2db0b7(0xfa)])?_0x576bbd['isPrivateGrid']=!![]:(_0x3d0b9b=_0x4417a2[_0x2db0b7(0x1ca)],await _0x4417a2['FdNcI'](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2['AKhTw'],_0x4417a2[_0x2db0b7(0x10b)]),logger['error'](_0x3d0b9b),process['exit'](0x1)));_0x4417a2[_0x2db0b7(0x103)](_0x462163['statusCode'],0x191)&&(_0x4417a2[_0x2db0b7(0x103)](_0x4417a2[_0x2db0b7(0x16d)],_0x4417a2[_0x2db0b7(0x1c5)])?_0x46d30d=_0x29b820[_0x26c01e[_0x2db0b7(0x1a8)]]:(_0x3d0b9b=_0x4417a2[_0x2db0b7(0x18f)],await _0x4417a2[_0x2db0b7(0xf8)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2['CWRSF'],_0x4417a2[_0x2db0b7(0x10b)]),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1)));if(_0x4417a2['FZtwC'](_0x462163['statusCode'],0xc8)){if(_0x4417a2['OUYkY'](_0x4417a2[_0x2db0b7(0x177)],_0x4417a2[_0x2db0b7(0x212)]))_0x3d0b9b=_0x2db0b7(0x195)+JSON[_0x2db0b7(0x1c4)](_0x462163),await _0x4417a2[_0x2db0b7(0x1c0)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x1cd)],_0x4417a2[_0x2db0b7(0x10b)]),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1);else{const _0x26d149=_0x4417a2['clixY']['split']('|');let _0x3622a6=0x0;while(!![]){switch(_0x26d149[_0x3622a6++]){case'0':_0x19d5b5[_0x2db0b7(0x1a3)]=_0x4f0fdc[_0x2db0b7(0x1a3)];continue;case'1':_0x34d2dd[_0x2db0b7(0x1c2)]=_0x1201c7;continue;case'2':const _0x4fa867={};_0x4fa867[_0x2db0b7(0x21a)]=_0x179205['CLI_RUN_STARTED'],_0x4fa867[_0x2db0b7(0x1b4)]=_0x2db0b7(0x19d),_0x59dea8[_0x2db0b7(0x12b)](_0x5d06f7,_0x4fa867);continue;case'3':_0x5c1aef['browserVersion']=_0x464729[_0x2db0b7(0xf4)];continue;case'4':_0x1d86e2[_0x2db0b7(0x1e4)]=_0x33a9b8;continue;case'5':const _0x4ae203={};_0x4ae203['type']=_0x433e48[_0x2db0b7(0x203)],_0x4ae203[_0x2db0b7(0x1b4)]=_0x5e38f2,_0xd560d4[_0x2db0b7(0x12b)](_0x464bd0,_0x4ae203);continue;case'6':_0x30e99a[_0x2db0b7(0x169)]=_0x4ca0a7;continue;case'7':_0x3de754=_0x2db0b7(0x174)+_0x1b2c6f+_0x2db0b7(0x11f)+_0xcde54b+'\x27';continue;case'8':_0x3b6ffe[_0x2db0b7(0x1e9)](_0x354e8e);continue;}break;}}}const _0x16fbbc=JSON[_0x2db0b7(0x120)](_0x462163[_0x2db0b7(0x20a)]),_0x1ad825={};_0x1ad825[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x188)],_0x1ad825[_0x2db0b7(0x1b4)]=_0x2db0b7(0x19d),webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x1ad825);const _0x3d93f5={};_0x3d93f5[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x3d93f5['message']=_0x4417a2[_0x2db0b7(0x104)],webSocketUtils['sendEventToBackend'](_0x260e95,_0x3d93f5);_0x16fbbc[_0x2db0b7(0x13b)]&&(_0x4417a2[_0x2db0b7(0x17c)](_0x4417a2[_0x2db0b7(0x114)],_0x4417a2['aWfYs'])?(_0x3d0b9b=_0x4417a2[_0x2db0b7(0x1f7)],await _0x4417a2[_0x2db0b7(0x1e3)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2['OipwL'],_0x4417a2[_0x2db0b7(0x10b)]),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1)):_0x5b7958[_0x2db0b7(0x169)]={});const _0xc72ca1=_0x16fbbc[_0x2db0b7(0x17e)];let _0x3fb40b=_0xc72ca1[_0x16fbbc['defaultGridProfile']];_0x4a5111[_0x2db0b7(0x1a8)]&&(_0x4417a2[_0x2db0b7(0x1fd)](_0x4417a2['FVtGh'],_0x4417a2[_0x2db0b7(0x126)])?_0x3fb40b=_0xc72ca1[_0x4a5111[_0x2db0b7(0x1a8)]]:_0x32c041[_0x2db0b7(0x1e9)](_0x2db0b7(0x189)+_0x1aa5ad+'\x20'));if(_0x4417a2['SifrG'](_0x558c57,![])){if(_0x4417a2[_0x2db0b7(0x103)](_0x4417a2[_0x2db0b7(0x1e8)],_0x4417a2['kGgyI']))_0x5d2d71=_0x4417a2[_0x2db0b7(0x1c6)];else{if(_0x4417a2[_0x2db0b7(0x16f)](_0x3fb40b,undefined)){if(_0x4417a2[_0x2db0b7(0x136)](_0x4417a2['SFXnb'],_0x4417a2[_0x2db0b7(0x1c3)]))_0x3d0b9b=_0x4417a2[_0x2db0b7(0x217)],await _0x4417a2['JyPmO'](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes['ERROR'],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x197)],_0x4417a2[_0x2db0b7(0x10b)]),logger['error'](_0x3d0b9b),process['exit'](0x1);else{const _0x192dfc={};_0x192dfc[_0x2db0b7(0x21a)]=_0x11d54a[_0x2db0b7(0x203)],_0x192dfc[_0x2db0b7(0x1b4)]='Cluster\x20'+_0xf48ee0+_0x2db0b7(0x145),_0xfd3ae4['sendEventToBackend'](_0x43fafb,_0x192dfc,_0x4417a2[_0x2db0b7(0x1fe)]),_0xa45f2d[_0x2db0b7(0x1e9)](_0x2db0b7(0x17d)+_0x2a3ba7+_0x2db0b7(0x145)),_0x1cbcee=!![];}}global_registry[_0x2db0b7(0x16b)]=_0x3fb40b['id'];(_0x4417a2[_0x2db0b7(0x103)](_0x143b9d,AZURE)||_0x4417a2[_0x2db0b7(0x12f)](_0x3fb40b?.[_0x2db0b7(0x169)],AZURE))&&(_0x4417a2['AupxC'](_0x4417a2['GtbEs'],_0x4417a2['wnnMG'])?(_0x22ad15=_0x39b6b9['route53'],_0x36ce6f=_0x4417a2[_0x2db0b7(0x115)]):(console[_0x2db0b7(0x205)](_0x4417a2[_0x2db0b7(0x117)]),process[_0x2db0b7(0x17f)](0x1)));_0x3d0b9b=_0x2db0b7(0x15d)+_0x154174+'\x20using\x20\x27'+_0x3fb40b[_0x2db0b7(0x150)]+_0x2db0b7(0x13f),logger['info'](_0x3d0b9b);const _0x20a270={};_0x20a270[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x20a270['message']=_0x3d0b9b,webSocketUtils['sendEventToBackend'](_0x260e95,_0x20a270),_0x143b9d=_0x3fb40b[_0x2db0b7(0x169)],_0x1c04a4=_0x3fb40b[_0x2db0b7(0x1e4)],_0x4a34f2=_0x3fb40b[_0x2db0b7(0x154)],_0x3940dd=_0x3fb40b[_0x2db0b7(0x192)],_0x1994aa=_0x3fb40b[_0x2db0b7(0x1b7)],_0x56127f=_0x3fb40b[_0x2db0b7(0x107)],securityGroups=_0x3fb40b[_0x2db0b7(0x1d1)],subnets=_0x3fb40b[_0x2db0b7(0x214)],_0x1213bd=_0x3fb40b[_0x2db0b7(0x1de)],_0x3a08e8=_0x3fb40b[_0x2db0b7(0x10e)],_0x250c19=_0x3fb40b[_0x2db0b7(0x19a)],_0x5b7b6e=_0x16fbbc[_0x2db0b7(0x1a3)],_0x60399e=_0x16fbbc[_0x2db0b7(0xf4)],_0x4417a2[_0x2db0b7(0x229)](_0x3fb40b[_0x2db0b7(0x1fa)],undefined)&&_0x3fb40b['privateGrid']&&(_0x4417a2['rDGsO'](_0x4417a2[_0x2db0b7(0x1f8)],_0x4417a2[_0x2db0b7(0x1f8)])?global_registry['isPrivateGrid']=!![]:_0x14adf4=_0x23ade2[_0x2db0b7(0x143)]),_0x4417a2[_0x2db0b7(0x1db)](updateGlobalRegistryWithConfig,_0x143b9d,_0x1c04a4,_0x4a34f2,_0x3940dd,_0x1994aa,_0x1213bd,_0x3fb40b,_0x5b7b6e,_0x60399e,_0x3a08e8,_0x250c19);}}else{const _0x52fd47=_0x4417a2[_0x2db0b7(0x11c)][_0x2db0b7(0x13e)]('|');let _0x1e636e=0x0;while(!![]){switch(_0x52fd47[_0x1e636e++]){case'0':_0x3d0b9b='Spawning\x20the\x20grid\x20'+_0x154174+_0x2db0b7(0x11f)+_0x1c04a4+'\x27';continue;case'1':global_registry[_0x2db0b7(0x1c2)]=_0x4a34f2;continue;case'2':global_registry['clusterName']=_0x1c04a4;continue;case'3':global_registry['browserVersion']=_0x16fbbc[_0x2db0b7(0xf4)];continue;case'4':global_registry['cloudProvider']=_0x143b9d;continue;case'5':const _0x5178c6={};_0x5178c6[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x188)],_0x5178c6[_0x2db0b7(0x1b4)]='CLI\x20run\x20started',webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x5178c6);continue;case'6':logger['info'](_0x3d0b9b);continue;case'7':global_registry[_0x2db0b7(0x1a3)]=_0x16fbbc['hubVersion'];continue;case'8':const _0x316e7e={};_0x316e7e[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x316e7e[_0x2db0b7(0x1b4)]=_0x3d0b9b,webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x316e7e);continue;}break;}}const _0x57ff33=_0x4417a2[_0x2db0b7(0x15e)](getCloudProviderObject,_0x143b9d,_0x1c04a4,_0x154174,_0x260e95,webSocketUtils),_0x4e0c2a=_0x4ebdd1['cloudProvider']||{};if(_0x4417a2[_0x2db0b7(0x1b2)](_0x4e0c2a[_0x143b9d],undefined)){logger['info'](_0x4417a2[_0x2db0b7(0x129)]);_0x4417a2[_0x2db0b7(0x136)](_0x4ebdd1[_0x2db0b7(0x169)],undefined)&&(_0x4ebdd1[_0x2db0b7(0x169)]={});_0x4ebdd1[_0x2db0b7(0x169)][_0x143b9d]={};const _0x278fbc=await _0x4417a2[_0x2db0b7(0x1ec)](inputCloudProviderKeys,_0x143b9d,_0x4ebdd1,_0x57ff33);fs['writeFileSync'](_0x4417a2['AHmSg'](getCredentialsPath),JSON['stringify'](_0x278fbc)),logger[_0x2db0b7(0x1c1)](_0x4417a2[_0x2db0b7(0x1f2)]);}else{_0x3d0b9b=_0x4417a2[_0x2db0b7(0x1d3)];const _0x4017f1={};_0x4017f1[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x4017f1[_0x2db0b7(0x1b4)]=_0x3d0b9b,webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x4017f1),logger['info'](_0x3d0b9b),await _0x57ff33['fetchLocalCreds'](_0x4e0c2a);}_0x57ff33[_0x2db0b7(0x11b)]();let _0x1b52ee;if(_0x4417a2[_0x2db0b7(0x180)](_0x558c57,![])){_0x3d0b9b=_0x2db0b7(0x20b)+_0x4a34f2+').';const _0x2728dc={};_0x2728dc['type']=WS_EVENTS[_0x2db0b7(0x203)],_0x2728dc[_0x2db0b7(0x1b4)]=_0x3d0b9b,webSocketUtils['sendEventToBackend'](_0x260e95,_0x2728dc),logger[_0x2db0b7(0x1e9)](_0x3d0b9b);const _0xd48649=await _0x57ff33[_0x2db0b7(0x1cf)]();if(_0xd48649){const _0x318358={};_0x318358[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x318358[_0x2db0b7(0x1b4)]=_0x2db0b7(0x17d)+_0x1c04a4+_0x2db0b7(0x145),webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x318358,_0x4417a2['rhehb']),logger[_0x2db0b7(0x1e9)](_0x2db0b7(0x17d)+_0x1c04a4+_0x2db0b7(0x145)),_0x558c57=!![];}else{const _0x4a1ae6={};_0x4a1ae6[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x4a1ae6['message']=_0x4417a2['ODLfq'],webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x4a1ae6),logger[_0x2db0b7(0x1e9)](_0x4417a2[_0x2db0b7(0xfb)]);const _0x4da235=_0x4417a2[_0x2db0b7(0x1f0)](_0x56127f,null)&&_0x4417a2[_0x2db0b7(0x1bd)](_0x56127f,undefined),_0xef39e5=_0x4417a2[_0x2db0b7(0x1f0)](subnets,null)&&_0x4417a2[_0x2db0b7(0x13d)](subnets,undefined)&&_0x4417a2[_0x2db0b7(0x1a6)](subnets[_0x2db0b7(0x1e1)],0x0);if(_0x4da235){_0x4417a2[_0x2db0b7(0x12f)](_0xef39e5,![])&&(_0x3d0b9b=_0x4417a2[_0x2db0b7(0x127)],await _0x4417a2[_0x2db0b7(0x204)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes['ERROR'],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x14f)],_0x4417a2[_0x2db0b7(0x10b)]),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1));const _0x5b768e=await _0x57ff33[_0x2db0b7(0x149)](_0x56127f);_0x4417a2[_0x2db0b7(0x187)](_0x5b768e,![])?(_0x3d0b9b=_0x4417a2[_0x2db0b7(0x18d)],await _0x4417a2[_0x2db0b7(0x204)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2['gLxnz'],_0x4417a2[_0x2db0b7(0x10b)]),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1)):logger[_0x2db0b7(0x1e9)](_0x2db0b7(0x189)+_0x56127f+'\x20');const _0x85cf13=await _0x57ff33[_0x2db0b7(0x1dc)](subnets,_0x56127f);_0x4417a2[_0x2db0b7(0x180)](_0x85cf13[0x0],![])?(_0x3d0b9b=_0x2db0b7(0x1ac)+_0x85cf13[0x1]+_0x2db0b7(0x146)+_0x56127f+_0x2db0b7(0x12e),await _0x4417a2[_0x2db0b7(0x156)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x15a)],_0x4417a2[_0x2db0b7(0x10b)]),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1)):logger['info'](_0x2db0b7(0x16e)+JSON[_0x2db0b7(0x1c4)](subnets)+'\x20'),await _0x57ff33[_0x2db0b7(0x21f)](_0x56127f,subnets);}else{const _0x52eb74=_0x4417a2[_0x2db0b7(0x221)][_0x2db0b7(0x13e)]('|');let _0x1ed361=0x0;while(!![]){switch(_0x52eb74[_0x1ed361++]){case'0':const _0x391ac4={};_0x391ac4['type']=WS_EVENTS['LOG'],_0x391ac4['message']=_0x4417a2['JvcDn'],webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x391ac4);continue;case'1':logger[_0x2db0b7(0x1e9)](_0x4417a2[_0x2db0b7(0x1da)]);continue;case'2':await _0x57ff33[_0x2db0b7(0x21f)]();continue;case'3':const _0x235254={};_0x235254[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x235254[_0x2db0b7(0x1b4)]=_0x2db0b7(0x21d),webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x235254);continue;case'4':logger[_0x2db0b7(0x1e9)](_0x4417a2[_0x2db0b7(0x18e)]);continue;}break;}}}}_0x558c57&&_0x4417a2['AupxC'](_0x143b9d,AZURE)&&(global_registry['s3Bucket']=_0x16fbbc[_0x2db0b7(0x200)],await _0x57ff33[_0x2db0b7(0x13a)](),await _0x57ff33[_0x2db0b7(0x19f)]());const [_0x24d8bc,_0x438a2b,_0x3ab7a0,_0xe79fd6,_0x25ca6a,_0x29ec73]=await _0x4417a2[_0x2db0b7(0x13c)](createK8sClient,_0x57ff33);_0x4417a2[_0x2db0b7(0x103)](_0x558c57,![])&&_0x4417a2['YcmTa'](_0x143b9d,AWS)&&(_0x1b52ee=await _0x57ff33['setupAutoscaler'](_0x24d8bc,_0x4a5111));try{_0x441f2e=_0x4417a2[_0x2db0b7(0x13c)](kebabCase,_0x154174),logger[_0x2db0b7(0x1e9)](_0x4417a2[_0x2db0b7(0x1fc)]);const _0x3e68fe={};_0x3e68fe[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x3e68fe[_0x2db0b7(0x1b4)]=_0x4417a2[_0x2db0b7(0x1fc)],webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x3e68fe);if(_0x4417a2['pySdu'](_0x441f2e,_0x4417a2['hbOdJ'])){const _0x22e5cb={};_0x22e5cb['createdBy']=_0x4417a2[_0x2db0b7(0x1e6)],_0x22e5cb['managedBy']=_0x4417a2[_0x2db0b7(0x1e6)];const _0x395a63={};_0x395a63[_0x2db0b7(0x150)]=_0x441f2e,_0x395a63[_0x2db0b7(0x19b)]=_0x22e5cb;const _0x5b1d4c={};_0x5b1d4c[_0x2db0b7(0x160)]=_0x395a63;let _0x546a68=_0x5b1d4c;await _0x24d8bc[_0x2db0b7(0x14d)](_0x546a68),logger['info'](_0x4417a2['RuAzg']);}const _0x2a90af={};_0x2a90af[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x2a90af['message']=_0x4417a2['cedRu'],webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x2a90af);const _0x5c3b4e={};_0x5c3b4e['type']=WS_EVENTS[_0x2db0b7(0x203)],_0x5c3b4e[_0x2db0b7(0x1b4)]=_0x4417a2['jXgac'],webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x5c3b4e),logger[_0x2db0b7(0x1e9)](_0x4417a2[_0x2db0b7(0x1fb)]);let _0x4b0049={};_0x4417a2[_0x2db0b7(0x1f1)](_0x143b9d,AZURE)&&(_0x4b0049={'clientId':await _0x57ff33[_0x2db0b7(0x113)](_0x2db0b7(0x11d)+_0x1c04a4)});await _0x4417a2[_0x2db0b7(0x215)](addGridComponents,_0x24d8bc,_0x438a2b,_0x3ab7a0,_0xe79fd6,_0x441f2e,_0x1c04a4,_0x1b52ee,_0x25ca6a,_0x29ec73,_0x4b0049),_0x3d0b9b=_0x4417a2['KBWKt'],logger[_0x2db0b7(0x1e9)](_0x3d0b9b);const _0xd1d788={};_0xd1d788[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0xd1d788[_0x2db0b7(0x1b4)]=_0x3d0b9b,webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0xd1d788),_0x3d0b9b=_0x4417a2['lrFaD'],logger[_0x2db0b7(0x1e9)](_0x3d0b9b);const _0xb88768={};_0xb88768[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0xb88768['message']=_0x3d0b9b,webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0xb88768),await webSocketUtils['delay'](0xea60);const _0x204c10=await _0x4417a2[_0x2db0b7(0x211)](getNamespaceUID,_0x24d8bc,_0x441f2e);let _0x452419=global_registry['isPrivateGrid']?_0x4417a2[_0x2db0b7(0x1c9)]:_0x4417a2[_0x2db0b7(0x20d)],_0x3b83e1=await _0x24d8bc[_0x2db0b7(0x1f4)](_0x452419,_0x4417a2['LhFaH']),_0x38c13e=_0x57ff33[_0x2db0b7(0x16c)](_0x3b83e1)+'/'+_0x441f2e,_0x39947d=_0x4417a2['DfzEQ'];try{const _0x10c4c8={'url':'https://'+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x204c10,..._0x5b58bc},_0x34711e=_0x10c4c8,_0x49b9b3=await _0x4417a2['afEaV'](promisifiedRequest,_0x34711e);(_0x4417a2[_0x2db0b7(0x190)](_0x49b9b3,null)||_0x4417a2['iLCEX'](_0x49b9b3,undefined))&&(_0x3d0b9b=_0x4417a2[_0x2db0b7(0x102)],await _0x4417a2[_0x2db0b7(0x173)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x152)],_0x4417a2['PyubQ']),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1));_0x4417a2[_0x2db0b7(0xf5)](_0x49b9b3[_0x2db0b7(0x166)],0x191)&&(_0x3d0b9b=_0x4417a2[_0x2db0b7(0xff)],await _0x4417a2[_0x2db0b7(0x1aa)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x20f)],_0x4417a2[_0x2db0b7(0x10b)]),logger[_0x2db0b7(0x205)](_0x3d0b9b),process[_0x2db0b7(0x17f)](0x1));_0x4417a2[_0x2db0b7(0x1e5)](_0x49b9b3[_0x2db0b7(0x166)],0xc8)&&(_0x3d0b9b='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x2db0b7(0x1c4)](_0x49b9b3),await _0x4417a2[_0x2db0b7(0x1e3)](reportToGalactusAndSendToEDS,_0x4a5111,_0x260e95,_0x3d0b9b,messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x1e0)],_0x4417a2[_0x2db0b7(0x124)],_0x4417a2[_0x2db0b7(0x10b)]),logger['error'](_0x3d0b9b),process['exit'](0x1));const _0x536186=JSON[_0x2db0b7(0x120)](_0x49b9b3[_0x2db0b7(0x20a)]);_0x536186['route53']&&(_0x38c13e=_0x536186[_0x2db0b7(0x1cc)],_0x39947d=_0x4417a2[_0x2db0b7(0x115)]),global_registry[_0x2db0b7(0x1ff)]&&(_0x39947d=_0x4417a2[_0x2db0b7(0x1c6)]);}catch(_0x197a71){}_0x3d0b9b='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x38c13e+'\x20',logger[_0x2db0b7(0x1e9)](_0x3d0b9b);const _0x5485e3={};_0x5485e3['type']=WS_EVENTS[_0x2db0b7(0x203)],_0x5485e3[_0x2db0b7(0x1b4)]=_0x3d0b9b,webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x5485e3),_0x3d0b9b=_0x2db0b7(0x1eb)+_0x39947d+_0x2db0b7(0x20c)+_0x38c13e+'/wd/hub',logger[_0x2db0b7(0x1e9)](_0x3d0b9b);const _0x22724c={};_0x22724c[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x22724c[_0x2db0b7(0x1b4)]=_0x3d0b9b,webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x22724c);const _0x13d050={};_0x13d050[_0x2db0b7(0x21a)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x13d050[_0x2db0b7(0x1b4)]=_0x2db0b7(0x1ae)+_0x38c13e,webSocketUtils[_0x2db0b7(0x12b)](_0x260e95,_0x13d050),await webSocketUtils[_0x2db0b7(0xfc)](0x7d0);}catch(_0x9a86d7){if(_0x4417a2['AupxC'](_0x558c57,![]))try{logger[_0x2db0b7(0x1e9)](_0x2db0b7(0x21c)),await _0x4417a2[_0x2db0b7(0x15e)](removeGridComponents,_0x24d8bc,_0x438a2b,_0x3ab7a0,_0xe79fd6,_0x441f2e),await _0x57ff33['deleteCluster'](_0x24d8bc,global_registry['clusterRegion']);}catch(_0x38d93a){throw _0x38d93a;}throw _0x9a86d7;}}catch(_0xe92c25){const _0x473deb='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0xe92c25+'\x20\x0a'+JSON[_0x2db0b7(0x1c4)](_0xe92c25)+'\x20';if(_0x260e95){const _0x50f317={};_0x50f317[_0x2db0b7(0x21a)]=WS_EVENTS[_0x2db0b7(0x203)],_0x50f317[_0x2db0b7(0x1b4)]=_0x473deb,webSocketUtils['sendEventToBackend'](_0x260e95,_0x50f317,_0x4417a2['PyubQ'],!![]);}await webSocketUtils['delay'](0x7d0);const _0x455715={};_0x455715['error']=_0x473deb,await _0x4417a2[_0x2db0b7(0x105)](sendInstrumentationEvent,_0x4a5111,_0x4417a2[_0x2db0b7(0x1e0)],messageTypes[_0x2db0b7(0x222)],_0x4417a2[_0x2db0b7(0x178)],_0x455715,_0x4a5111),logger[_0x2db0b7(0x205)](_0x473deb);}process[_0x2db0b7(0x17f)](0x0);};
@@ -1 +1 @@
1
- const a10_0x395261=a10_0x4748;function a10_0x4748(_0x187d99,_0x3fc49c){const _0x263afd=a10_0x263a();return a10_0x4748=function(_0x474809,_0xfe4e17){_0x474809=_0x474809-0x77;let _0x3b5924=_0x263afd[_0x474809];return _0x3b5924;},a10_0x4748(_0x187d99,_0x3fc49c);}function a10_0x263a(){const _0x5793c6=['handler','24hpJiSA','help','desc','643119IVtKtQ','command','104feiBEu','WQdrd','epilogue','delete_commands','8235500IdbgcF','usage','16bCfTui','strict','demandCommand','dlUzl','10UXYAvV','1001350LpLOfs','12mqsFrj','720902hIxtwd','delete','7281461TymegL','4IZxUtC','11378MhZWNT','16794NvKwZW','List\x20Grid\x20resources.'];a10_0x263a=function(){return _0x5793c6;};return a10_0x263a();}(function(_0x2e9660,_0x475748){const _0x6b63d0=a10_0x4748,_0x3a2921=_0x2e9660();while(!![]){try{const _0xe80853=parseInt(_0x6b63d0(0x81))/0x1*(parseInt(_0x6b63d0(0x8a))/0x2)+parseInt(_0x6b63d0(0x88))/0x3*(-parseInt(_0x6b63d0(0x80))/0x4)+-parseInt(_0x6b63d0(0x7b))/0x5*(parseInt(_0x6b63d0(0x85))/0x6)+parseInt(_0x6b63d0(0x7d))/0x7*(-parseInt(_0x6b63d0(0x90))/0x8)+-parseInt(_0x6b63d0(0x82))/0x9*(-parseInt(_0x6b63d0(0x7a))/0xa)+-parseInt(_0x6b63d0(0x7f))/0xb*(-parseInt(_0x6b63d0(0x7c))/0xc)+parseInt(_0x6b63d0(0x8e))/0xd;if(_0xe80853===_0x475748)break;else _0x3a2921['push'](_0x3a2921['shift']());}catch(_0x43a3bb){_0x3a2921['push'](_0x3a2921['shift']());}}}(a10_0x263a,0xa2f9c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a10_0x395261(0x89)]=a10_0x395261(0x7e),exports[a10_0x395261(0x87)]=a10_0x395261(0x83),exports['builder']=function(_0x2f09ae){const _0x30559d=a10_0x395261,_0x366729={};_0x366729[_0x30559d(0x79)]=_0x30559d(0x8d),_0x366729[_0x30559d(0x8b)]=_0x30559d(0x86);const _0x265f83=_0x366729;return _0x2f09ae[_0x30559d(0x8f)](HELP_HEADER_MESSAGE[_0x30559d(0x7e)])[_0x30559d(0x8c)](HELP_FOOTER_MESSAGE)['commandDir'](_0x265f83[_0x30559d(0x79)])[_0x30559d(0x78)]()['recommendCommands']()[_0x30559d(0x77)]()[_0x30559d(0x86)](_0x265f83[_0x30559d(0x8b)]);},exports[a10_0x395261(0x84)]=function(_0x3fc861){};
1
+ function a10_0x31ed(_0x4c5412,_0x2fa12f){const _0x5ae837=a10_0x5ae8();return a10_0x31ed=function(_0x31ed99,_0x235a6c){_0x31ed99=_0x31ed99-0x14b;let _0x25a762=_0x5ae837[_0x31ed99];return _0x25a762;},a10_0x31ed(_0x4c5412,_0x2fa12f);}function a10_0x5ae8(){const _0xc89633=['3938553cQXrBO','demandCommand','kNVpS','command','36JWnZba','tWSqd','delete_commands','builder','strict','../config/constants','1621382sYSuWr','158014xtxBzs','185348wkZrip','epilogue','1169624ERATBW','List\x20Grid\x20resources.','delete','handler','5PRmira','help','43254XRJuiK','385440MutFSd','recommendCommands','desc'];a10_0x5ae8=function(){return _0xc89633;};return a10_0x5ae8();}const a10_0x164bd6=a10_0x31ed;(function(_0xc50ccd,_0x1d0cce){const _0xa1773e=a10_0x31ed,_0x237588=_0xc50ccd();while(!![]){try{const _0x482539=parseInt(_0xa1773e(0x14f))/0x1+parseInt(_0xa1773e(0x158))/0x2*(-parseInt(_0xa1773e(0x160))/0x3)+parseInt(_0xa1773e(0x150))/0x4*(-parseInt(_0xa1773e(0x156))/0x5)+-parseInt(_0xa1773e(0x159))/0x6+-parseInt(_0xa1773e(0x14e))/0x7+parseInt(_0xa1773e(0x152))/0x8+parseInt(_0xa1773e(0x15c))/0x9;if(_0x482539===_0x1d0cce)break;else _0x237588['push'](_0x237588['shift']());}catch(_0x4cd972){_0x237588['push'](_0x237588['shift']());}}}(a10_0x5ae8,0x2234b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x164bd6(0x14d));exports[a10_0x164bd6(0x15f)]=a10_0x164bd6(0x154),exports[a10_0x164bd6(0x15b)]=a10_0x164bd6(0x153),exports[a10_0x164bd6(0x14b)]=function(_0x52d828){const _0x298285=a10_0x164bd6,_0x35f03c={};_0x35f03c[_0x298285(0x15e)]=_0x298285(0x162),_0x35f03c['tWSqd']=_0x298285(0x157);const _0xc10f7f=_0x35f03c;return _0x52d828['usage'](HELP_HEADER_MESSAGE[_0x298285(0x154)])[_0x298285(0x151)](HELP_FOOTER_MESSAGE)['commandDir'](_0xc10f7f[_0x298285(0x15e)])[_0x298285(0x15d)]()[_0x298285(0x15a)]()[_0x298285(0x14c)]()[_0x298285(0x157)](_0xc10f7f[_0x298285(0x161)]);},exports[a10_0x164bd6(0x155)]=function(_0x3c0594){};
@@ -1 +1 @@
1
- function a11_0x4e88(_0x41afcb,_0x5cb1ea){const _0x1b59f1=a11_0x1b59();return a11_0x4e88=function(_0x4e883a,_0x5f0c5c){_0x4e883a=_0x4e883a-0x7c;let _0x5bb7f3=_0x1b59f1[_0x4e883a];return _0x5bb7f3;},a11_0x4e88(_0x41afcb,_0x5cb1ea);}function a11_0x1b59(){const _0x46c245=['ITbpg','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','invalid-input','qZoer','stringify','Delete\x20an\x20Automation\x20grid.','desc','delete','type','parse','iKtax','WmVIY','Succesfully\x20deleted\x20the\x20grid','5eTehmu','exit','sODut','KenQh','Cluster:\x20','INFO','stack','onlyGridInCluster','oltZt','region','grid','message','JpQWR','../../config/constants','clusterSpawnedVia','VWUbg','QHgJl','xTrHg','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','FWfHT','gtGuT','invalid-grid-id','431359jQAsXm','username','OBlPW','oIHlR','RdLCM','info','isBrowserstackCluster','xauOP','statusCode','fEDuo','requestId','../../cloudproviders/utils','delete-grid-called','JQLkR','error','MGGNq','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','request','init-not-called','RAnBM','argv','uuid','warn','clusterId','name','VhdLr','cloudProvider','oMwbM','14315RbvprY','2610730hcJqVy','BNeyn','../../utils/createk8sClient','Failed\x20to\x20delete\x20resources!\x20Error:\x20','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','\x22\x20and\x20ID\x20','debug','handler','oAKpd','gtykO','TaSgA','EIpAP','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','8TVzxEH','usage','writeFileSync','dHbxm','command','promisify','1410NSJKJH','RtcXA','441630DXlCxo','https://','string','EiYCx','description','../../utils/userInput','GDgXA','OzxgJ','../../utils/gridComponents','mEtSf','lJEsG','DMatp','grid-id','QDqch','options','method','Pass\x20the\x20ID\x20of\x20the\x20Grid','xCQLP','900092NxROGj','bulUo','toLowerCase','fRUKT','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','xiyEj','url','1247128kRDjFO','gHthj','fQmXz','help','ihnSe','\x22\x20with\x20ID\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','CHMiD','Rnaul','11edPovL','nkBGC','builder','fetchLocalCreds','lZlyP','clusterName','WXjoj','/packages/cli/grid/','QfCed','body','rjtGY','2195118mndDNK','unauthorised','gSGsP','gVrGl','gridId','../../config/logger','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','ERROR','WWIem'];a11_0x1b59=function(){return _0x46c245;};return a11_0x1b59();}const a11_0x5ee19f=a11_0x4e88;(function(_0x5205d4,_0x1bb32a){const _0x4f9fd4=a11_0x4e88,_0x4a99de=_0x5205d4();while(!![]){try{const _0x189f64=-parseInt(_0x4f9fd4(0xe6))/0x1+parseInt(_0x4f9fd4(0x9c))/0x2+parseInt(_0x4f9fd4(0x8a))/0x3+parseInt(_0x4f9fd4(0xa4))/0x4*(-parseInt(_0x4f9fd4(0xd0))/0x5)+parseInt(_0x4f9fd4(0x88))/0x6*(parseInt(_0x4f9fd4(0x102))/0x7)+parseInt(_0x4f9fd4(0x82))/0x8*(parseInt(_0x4f9fd4(0xba))/0x9)+parseInt(_0x4f9fd4(0x103))/0xa*(-parseInt(_0x4f9fd4(0xaf))/0xb);if(_0x189f64===_0x1bb32a)break;else _0x4a99de['push'](_0x4a99de['shift']());}catch(_0x341e93){_0x4a99de['push'](_0x4a99de['shift']());}}}(a11_0x1b59,0x4d84f));const fs=require('fs'),util=require('util'),request=require(a11_0x5ee19f(0xf7)),{v4:uuidv4}=require(a11_0x5ee19f(0xfb)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x5ee19f(0xdd)),{logger}=require(a11_0x5ee19f(0xbf)),{getCloudProviderObject}=require(a11_0x5ee19f(0xf1)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x5ee19f(0x92)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x5ee19f(0x8f)),{createK8sClient}=require(a11_0x5ee19f(0x105)),{kebabCase,getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),promisifiedRequest=util[a11_0x5ee19f(0x87)](request);exports[a11_0x5ee19f(0x86)]=a11_0x5ee19f(0xda),exports[a11_0x5ee19f(0xc9)]=a11_0x5ee19f(0xc8),exports[a11_0x5ee19f(0xb1)]=function(_0x5c0d95){const _0x379f58=a11_0x5ee19f,_0x3b8c66={};_0x3b8c66[_0x379f58(0xc2)]=_0x379f58(0x9a),_0x3b8c66['RAnBM']=_0x379f58(0x8c),_0x3b8c66[_0x379f58(0xbc)]=_0x379f58(0xa7);const _0x5dd2ce=_0x3b8c66,_0x31d038={};_0x31d038[_0x379f58(0x8e)]=_0x5dd2ce['WWIem'],_0x31d038['type']=_0x5dd2ce[_0x379f58(0xf9)];const _0x59c790={};return _0x59c790[_0x379f58(0x96)]=_0x31d038,_0x5c0d95[_0x379f58(0x83)](HELP_HEADER_MESSAGE['delete'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x379f58(0x98)](_0x59c790)[_0x379f58(0xa7)](_0x5dd2ce[_0x379f58(0xbc)])[_0x379f58(0xfa)];},exports[a11_0x5ee19f(0x7c)]=async function(_0x568291){const _0x15380b=a11_0x5ee19f,_0x9d7847={'GDgXA':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','ihnSe':'Pass\x20the\x20ID\x20of\x20the\x20Grid','EiYCx':'string','CHMiD':_0x15380b(0xa7),'dHbxm':function(_0x21e509){return _0x21e509();},'OBlPW':function(_0x3d9a40,_0x666d48){return _0x3d9a40===_0x666d48;},'OzxgJ':_0x15380b(0xed),'xCQLP':_0x15380b(0xea),'iKtax':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','lJEsG':function(_0x38e728,_0xdb70f7,_0x29ffec,_0x9227de,_0x525fb3,_0x1ebdb8,_0x679c6a){return _0x38e728(_0xdb70f7,_0x29ffec,_0x9227de,_0x525fb3,_0x1ebdb8,_0x679c6a);},'TaSgA':_0x15380b(0xf2),'sODut':_0x15380b(0xf8),'fEDuo':function(_0x24712f,_0x49dfaf,_0x3e873a,_0x44caf9,_0x132e84,_0x39869e,_0x2e5412){return _0x24712f(_0x49dfaf,_0x3e873a,_0x44caf9,_0x132e84,_0x39869e,_0x2e5412);},'oAKpd':function(_0x53104e,_0x12a666){return _0x53104e===_0x12a666;},'lZlyP':_0x15380b(0x9d),'nkBGC':function(_0x464711,_0x4d9c00,_0x36d287,_0x5cbcdf){return _0x464711(_0x4d9c00,_0x36d287,_0x5cbcdf);},'VhdLr':function(_0x50ca01,_0x362a20){return _0x50ca01===_0x362a20;},'Rnaul':_0x15380b(0xa1),'MGGNq':function(_0x2d3dbb,_0x2c3293){return _0x2d3dbb!==_0x2c3293;},'gHthj':_0x15380b(0xe9),'KenQh':_0x15380b(0x101),'rjtGY':function(_0x554b43,_0x155830){return _0x554b43(_0x155830);},'oltZt':function(_0x38a1b8,_0x157e46){return _0x38a1b8===_0x157e46;},'hWQfp':_0x15380b(0xc6),'QDqch':'sZqGa','BNeyn':_0x15380b(0xf6),'EIpAP':_0x15380b(0xc5),'DOHOu':_0x15380b(0x93),'QfCed':_0x15380b(0xdc),'gtykO':function(_0x55ea30,_0x50c5d1,_0x296378,_0x5de978){return _0x55ea30(_0x50c5d1,_0x296378,_0x5de978);},'QHgJl':function(_0x123b42,_0x2f8776){return _0x123b42!==_0x2f8776;},'DMatp':'AEuES','EaWBU':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','gVrGl':function(_0x59fdbf,_0x3eedb0){return _0x59fdbf===_0x3eedb0;},'DdbGm':_0x15380b(0xe4),'TGJUQ':_0x15380b(0xdf),'xiyEj':function(_0x1e4a09){return _0x1e4a09();},'kjWti':_0x15380b(0xe2),'fQmXz':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','WmVIY':function(_0xd30357,_0x19eb8e,_0x21800e,_0x170c71,_0x3da974,_0x267301){return _0xd30357(_0x19eb8e,_0x21800e,_0x170c71,_0x3da974,_0x267301);},'WXjoj':'DELETE','OLCXL':function(_0x490064,_0x384b02){return _0x490064(_0x384b02);},'FWfHT':function(_0x446601,_0x19de07){return _0x446601!==_0x19de07;},'xTrHg':function(_0x6e0d1f,_0x4ef3cf){return _0x6e0d1f===_0x4ef3cf;},'JQLkR':'server-error','RtcXA':function(_0x2df110,_0x20b48f){return _0x2df110===_0x20b48f;},'OzStt':_0x15380b(0xbb),'ITbpg':function(_0x17a129,_0x3df87d){return _0x17a129===_0x3df87d;},'AGVzZ':_0x15380b(0xe5),'fRUKT':'unknown-error'};try{global_registry[_0x15380b(0xf0)]=_0x9d7847['dHbxm'](uuidv4);!fs['existsSync'](_0x9d7847[_0x15380b(0x85)](getCredentialsPath))&&(_0x9d7847['OBlPW'](_0x9d7847[_0x15380b(0x91)],_0x9d7847[_0x15380b(0x9b)])?_0x1e5d40[_0x15380b(0xd1)](0x0):(console[_0x15380b(0xf4)](_0x9d7847[_0x15380b(0xcd)]),await _0x9d7847[_0x15380b(0x94)](sendInstrumentationEvent,_0x568291,_0x9d7847[_0x15380b(0x7f)],messageTypes[_0x15380b(0xc1)],_0x9d7847[_0x15380b(0xd2)],null,_0x568291),process['exit'](0x1)));_0x9d7847[_0x15380b(0xef)](sendInstrumentationEvent,_0x568291,_0x9d7847['TaSgA'],messageTypes[_0x15380b(0xd5)],null,null,_0x568291);!_0x568291[_0x15380b(0xbe)]&&(_0x9d7847[_0x15380b(0x7d)](_0x9d7847[_0x15380b(0xb3)],_0x9d7847[_0x15380b(0xb3)])?(console[_0x15380b(0xf4)](_0x9d7847[_0x15380b(0x90)]),process[_0x15380b(0xd1)](0x1)):(_0x2bb462[_0x15380b(0xf4)](_0x9d7847[_0x15380b(0x90)]),_0x4a9c29[_0x15380b(0xd1)](0x1)));const _0x80cf85=JSON[_0x15380b(0xcc)](fs['readFileSync'](_0x9d7847['dHbxm'](getCredentialsPath))),[_0x2c3e49,_0xd0e75a]=await _0x9d7847[_0x15380b(0xb0)](getGridDetails,_0x80cf85[_0x15380b(0xa1)][_0x15380b(0xe7)],_0x80cf85['Browserstack'][_0x15380b(0xab)],_0x568291[_0x15380b(0xbe)]);if(_0xd0e75a){const _0x5287f0=_0xd0e75a[_0x15380b(0xeb)];let _0x328a7c='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x5287f0[_0x15380b(0xfe)]+_0x15380b(0x108)+_0x5287f0['id']+_0x15380b(0xac),_0x193922;_0xd0e75a[_0x15380b(0xd7)]&&_0x9d7847['VhdLr'](_0xd0e75a[_0x15380b(0xde)],_0x9d7847[_0x15380b(0xae)])&&(_0x9d7847[_0x15380b(0xf5)](_0x9d7847[_0x15380b(0xa5)],_0x9d7847[_0x15380b(0xd3)])?_0x328a7c=_0x15380b(0xc4)+_0x5287f0[_0x15380b(0xfe)]+_0x15380b(0x108)+_0x5287f0['id']+_0x15380b(0x81)+_0x5287f0[_0x15380b(0xb4)]+'\x22\x20with\x20ID\x20'+_0x5287f0[_0x15380b(0xfd)]+_0x15380b(0xac):_0x4623a2='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x5a6f39[_0x15380b(0xfe)]+'\x22\x20and\x20ID\x20'+_0x1cc380['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x36cb31[_0x15380b(0xb4)]+_0x15380b(0xa9)+_0x103eb9[_0x15380b(0xfd)]+_0x15380b(0xac));_0x193922=await _0x9d7847['rjtGY'](inputConfirmation,_0x328a7c);(_0x9d7847[_0x15380b(0xff)](_0x193922,undefined)||_0x9d7847['oltZt'](_0x193922,null)||!(_0x9d7847[_0x15380b(0xd8)](_0x193922['toLowerCase'](),'y')||_0x9d7847[_0x15380b(0x7d)](_0x193922[_0x15380b(0x9e)](),'n')))&&(_0x9d7847[_0x15380b(0xff)](_0x9d7847['hWQfp'],_0x9d7847[_0x15380b(0x97)])?_0x1ae999['warn']('Cluster:\x20'+_0x318ebe[_0x15380b(0xb4)]+_0x15380b(0xc0)):(console[_0x15380b(0xf4)](_0x9d7847[_0x15380b(0x104)]),await _0x9d7847[_0x15380b(0x94)](sendInstrumentationEvent,_0x568291,_0x9d7847[_0x15380b(0x7f)],messageTypes[_0x15380b(0xc1)],_0x9d7847[_0x15380b(0x80)],null,_0x568291),process[_0x15380b(0xd1)](0x1)));if(_0x9d7847[_0x15380b(0xe8)](_0x193922[_0x15380b(0x9e)](),'n')){if(_0x9d7847['MGGNq'](_0x9d7847['DOHOu'],_0x9d7847[_0x15380b(0xb7)]))process['exit'](0x0);else{const _0x51affa={};_0x51affa['description']=_0x9d7847[_0x15380b(0xa8)],_0x51affa[_0x15380b(0xcb)]=_0x9d7847[_0x15380b(0x8d)];const _0x45ea5c={};return _0x45ea5c[_0x15380b(0x96)]=_0x51affa,_0xe35478[_0x15380b(0x83)](_0x475de0[_0x15380b(0xca)])['epilogue'](_0xff0a86)[_0x15380b(0x98)](_0x45ea5c)[_0x15380b(0xa7)](_0x9d7847[_0x15380b(0xad)])[_0x15380b(0xfa)];}}global_registry['clusterRegion']=_0x5287f0[_0x15380b(0xd9)];const _0x5ec85a=_0x5287f0[_0x15380b(0x100)],_0x2bfc21=_0x9d7847[_0x15380b(0x7e)](getCloudProviderObject,_0x5ec85a,_0x5287f0['clusterName'],_0x5287f0[_0x15380b(0xfe)]),_0x23121d=_0x80cf85[_0x15380b(0x100)];if(_0x9d7847[_0x15380b(0xd8)](_0x23121d[_0x5ec85a],undefined)){if(_0x9d7847[_0x15380b(0xe0)](_0x9d7847[_0x15380b(0x95)],_0x9d7847[_0x15380b(0x95)]))_0x5c0a13[_0x15380b(0xeb)](_0x15380b(0xcf)),_0x298040['exit'](0x0);else{logger[_0x15380b(0xeb)](_0x9d7847['EaWBU']);_0x9d7847[_0x15380b(0xd8)](_0x80cf85['cloudProvider'],undefined)&&(_0x9d7847[_0x15380b(0xbd)](_0x9d7847['DdbGm'],_0x9d7847['TGJUQ'])?_0x365921[_0x15380b(0x100)]={}:_0x80cf85[_0x15380b(0x100)]={});_0x80cf85['cloudProvider'][_0x5ec85a]={};const _0x2338bd=await _0x9d7847[_0x15380b(0xb0)](inputCloudProviderKeys,_0x5ec85a,_0x80cf85,_0x2bfc21);fs[_0x15380b(0x84)](_0x9d7847[_0x15380b(0xa2)](getCredentialsPath),JSON[_0x15380b(0xc7)](_0x2338bd)),logger[_0x15380b(0x109)](_0x9d7847['kjWti']);}}else logger[_0x15380b(0xeb)](_0x9d7847[_0x15380b(0xa6)]),await _0x2bfc21[_0x15380b(0xb2)](_0x23121d);_0x2bfc21['configureIfNotConfigured']();const _0x4438aa=_0x9d7847['rjtGY'](kebabCase,_0x5287f0['name']),[_0x27b1f3,_0x38b2b4,_0x47fc60,_0x51b0e3,_0x5b368f,_0x8139fa]=await _0x9d7847[_0x15380b(0xb9)](createK8sClient,_0x2bfc21);await _0x9d7847[_0x15380b(0xce)](removeGridComponents,_0x27b1f3,_0x38b2b4,_0x47fc60,_0x51b0e3,_0x4438aa);if(_0xd0e75a['onlyGridInCluster']){const _0x2acb64=await _0x2bfc21[_0x15380b(0xec)]();_0x2acb64?await _0x2bfc21['deleteCluster'](_0x27b1f3,_0x5287f0[_0x15380b(0xd9)]):logger[_0x15380b(0xfc)](_0x15380b(0xd4)+_0x5287f0[_0x15380b(0xb4)]+_0x15380b(0xc0));}const _0x557c49=_0x15380b(0x8b)+AG_API_URL+_0x15380b(0xb6)+_0x568291['gridId'],_0x65062c={};_0x65062c[_0x15380b(0xe7)]=_0x80cf85['Browserstack'][_0x15380b(0xe7)],_0x65062c['password']=_0x80cf85[_0x15380b(0xa1)]['password'];const _0x2a6f2c={};_0x2a6f2c[_0x15380b(0xa3)]=_0x557c49,_0x2a6f2c[_0x15380b(0x99)]=_0x9d7847[_0x15380b(0xb5)],_0x2a6f2c['auth']=_0x65062c;const _0x375f17=_0x2a6f2c,_0x53fa8a=await _0x9d7847['OLCXL'](promisifiedRequest,_0x375f17);_0x9d7847[_0x15380b(0xe3)](_0x53fa8a,null)&&_0x9d7847['QHgJl'](_0x53fa8a,undefined)&&_0x9d7847[_0x15380b(0xe1)](_0x53fa8a[_0x15380b(0xee)],0xc8)&&(logger[_0x15380b(0xeb)]('Succesfully\x20deleted\x20the\x20grid'),process['exit'](0x0)),logger[_0x15380b(0xf4)](_0x15380b(0x107)+JSON[_0x15380b(0xc7)](_0x53fa8a)),await _0x9d7847[_0x15380b(0xef)](sendInstrumentationEvent,_0x568291,_0x9d7847[_0x15380b(0x7f)],messageTypes[_0x15380b(0xc1)],_0x9d7847['JQLkR'],_0x2c3e49,_0x568291),process['exit'](0x1);}_0x9d7847[_0x15380b(0x89)](_0x2c3e49[_0x15380b(0xee)],0x191)&&(logger[_0x15380b(0xf4)](_0x15380b(0xa0)),await _0x9d7847[_0x15380b(0x94)](sendInstrumentationEvent,_0x568291,_0x9d7847[_0x15380b(0x7f)],messageTypes['ERROR'],_0x9d7847['OzStt'],null,_0x568291),process['exit'](0x1)),_0x9d7847[_0x15380b(0xc3)](_0x2c3e49['statusCode'],0x190)&&(logger['error'](JSON['parse'](_0x2c3e49[_0x15380b(0xb8)])[_0x15380b(0xdb)]),await _0x9d7847[_0x15380b(0xef)](sendInstrumentationEvent,_0x568291,_0x9d7847[_0x15380b(0x7f)],messageTypes[_0x15380b(0xc1)],_0x9d7847['AGVzZ'],null,_0x568291),process['exit'](0x1)),logger[_0x15380b(0xf4)](_0x15380b(0xaa)+JSON[_0x15380b(0xc7)](_0x2c3e49)),await _0x9d7847['fEDuo'](sendInstrumentationEvent,_0x568291,_0x9d7847['TaSgA'],messageTypes[_0x15380b(0xc1)],_0x9d7847[_0x15380b(0xf3)],_0x2c3e49,_0x568291),process[_0x15380b(0xd1)](0x1);}catch(_0x5579e0){logger[_0x15380b(0xf4)](_0x15380b(0x106)+_0x5579e0[_0x15380b(0xd6)]),await _0x9d7847[_0x15380b(0xef)](sendInstrumentationEvent,_0x568291,_0x9d7847[_0x15380b(0x7f)],messageTypes[_0x15380b(0xc1)],_0x9d7847[_0x15380b(0x9f)],_0x5579e0,_0x568291),process[_0x15380b(0xd1)](0x1);}};
1
+ const a11_0x1f3a2e=a11_0x32e6;(function(_0x2f3d33,_0x3a4cf9){const _0x5c5248=a11_0x32e6,_0x2a7b96=_0x2f3d33();while(!![]){try{const _0x1b5234=parseInt(_0x5c5248(0x1aa))/0x1+parseInt(_0x5c5248(0x1ab))/0x2+parseInt(_0x5c5248(0x15b))/0x3*(-parseInt(_0x5c5248(0x159))/0x4)+parseInt(_0x5c5248(0x17f))/0x5*(-parseInt(_0x5c5248(0x1d8))/0x6)+parseInt(_0x5c5248(0x161))/0x7+parseInt(_0x5c5248(0x175))/0x8*(-parseInt(_0x5c5248(0x1dd))/0x9)+parseInt(_0x5c5248(0x154))/0xa;if(_0x1b5234===_0x3a4cf9)break;else _0x2a7b96['push'](_0x2a7b96['shift']());}catch(_0x56839f){_0x2a7b96['push'](_0x2a7b96['shift']());}}}(a11_0x1b1c,0x5ec1a));function a11_0x32e6(_0xa2acda,_0x5258f8){const _0x1b1c9d=a11_0x1b1c();return a11_0x32e6=function(_0x32e650,_0x2f7173){_0x32e650=_0x32e650-0x14a;let _0x57407d=_0x1b1c9d[_0x32e650];return _0x57407d;},a11_0x32e6(_0xa2acda,_0x5258f8);}function a11_0x1b1c(){const _0x21a572=['method','rBllR','\x22\x20and\x20ID\x20','clusterId','configureIfNotConfigured','ehfzv','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','ERROR','builder','SADhD','deleteCluster','https://','kpibj','epilogue','invalid-input','VZgtN','AuCvM','clusterName','help','unknown-error','options','moygN','MFvDl','658569ZGjnQw','571584ttWmin','dgjrB','grid-id','wmxLS','bnaUc','tcSVX','../../utils/gridComponents','Succesfully\x20deleted\x20the\x20grid','Cluster:\x20','existsSync','type','message','cWJiD','body','cWMQN','parse','/packages/cli/grid/','stringify','tEnnc','PZCfr','bJCxx','handler','\x22\x20with\x20ID\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','gRnwX','unauthorised','clusterRegion','ykVCg','eHVWR','delete','MmNIL','zYwYQ','../../utils/createk8sClient','cloudProvider','sGMaB','Pass\x20the\x20ID\x20of\x20the\x20Grid','vqGyn','init-not-called','server-error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','XamqB','eooZR','DELETE','stack','../../cloudproviders/utils','1974dlWSnX','exit','mWCuh','warn','pHoFJ','60327oIsAfr','request','MAcFq','../../utils/userInput','ZjGAp','info','Failed\x20to\x20delete\x20resources!\x20Error:\x20','url','desc','cySMu','../../config/constants','7731390dpdmNo','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','qrFvv','error','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','124964sqblJw','statusCode','69QpolSU','lWZOe','Euyqy','gVDwd','delete-grid-called','onlyGridInCluster','911890CTkQry','region','uuid','username','invalid-grid-id','vLuEM','gridId','command','Browserstack','ebhqA','description','uxnGS','hGERr','usage','WPACw','MrYTq','Delete\x20an\x20Automation\x20grid.','writeFileSync','WpUgw','grid','184ZWEifK','auth','INFO','toLowerCase','soDES','xQrvI','GQFfO','fKKJG','../../config/logger','fetchLocalCreds','8920UUGgMY','hjuEZ','yMjXM','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','isBrowserstackCluster','dFUef','LFlPK','clusterSpawnedVia','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','util','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','kjLZu','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','argv','JRyKP','iFLwB','hRoly','jnCpi','name'];a11_0x1b1c=function(){return _0x21a572;};return a11_0x1b1c();}const fs=require('fs'),util=require(a11_0x1f3a2e(0x189)),request=require(a11_0x1f3a2e(0x14a)),{v4:uuidv4}=require(a11_0x1f3a2e(0x163)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x1f3a2e(0x153)),{logger}=require(a11_0x1f3a2e(0x17d)),{getCloudProviderObject}=require(a11_0x1f3a2e(0x1d7)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x1f3a2e(0x1b1)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x1f3a2e(0x14c)),{createK8sClient}=require(a11_0x1f3a2e(0x1cb)),{kebabCase,getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),promisifiedRequest=util['promisify'](request);exports[a11_0x1f3a2e(0x168)]=a11_0x1f3a2e(0x174),exports[a11_0x1f3a2e(0x151)]=a11_0x1f3a2e(0x171),exports[a11_0x1f3a2e(0x19b)]=function(_0x563fd9){const _0x31b3b0=a11_0x1f3a2e,_0x31dda8={};_0x31dda8[_0x31b3b0(0x1ac)]=_0x31b3b0(0x1ce),_0x31dda8[_0x31b3b0(0x18e)]='string',_0x31dda8[_0x31b3b0(0x16d)]=_0x31b3b0(0x1a5);const _0x204786=_0x31dda8,_0x2c094f={};_0x2c094f['description']=_0x204786[_0x31b3b0(0x1ac)],_0x2c094f[_0x31b3b0(0x1b5)]=_0x204786[_0x31b3b0(0x18e)];const _0x3baf57={};return _0x3baf57[_0x31b3b0(0x1ad)]=_0x2c094f,_0x563fd9[_0x31b3b0(0x16e)](HELP_HEADER_MESSAGE[_0x31b3b0(0x1c8)])[_0x31b3b0(0x1a0)](HELP_FOOTER_MESSAGE)[_0x31b3b0(0x1a7)](_0x3baf57)[_0x31b3b0(0x1a5)](_0x204786[_0x31b3b0(0x16d)])[_0x31b3b0(0x18d)];},exports[a11_0x1f3a2e(0x1c0)]=async function(_0x449209){const _0x426b0f=a11_0x1f3a2e,_0x5d0c29={'tcSVX':_0x426b0f(0x18a),'wmxLS':_0x426b0f(0x1ce),'cWMQN':'string','YeTDR':_0x426b0f(0x1a5),'hRoly':function(_0x3c0b55){return _0x3c0b55();},'SADhD':function(_0x150d53,_0x4bedc8){return _0x150d53===_0x4bedc8;},'dFUef':_0x426b0f(0x1a2),'tEmLl':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','tEnnc':function(_0x1f407d,_0x541547,_0x4fb3ea,_0x56edd2,_0x5423ba,_0x1cad27,_0x173541){return _0x1f407d(_0x541547,_0x4fb3ea,_0x56edd2,_0x5423ba,_0x1cad27,_0x173541);},'cWJiD':_0x426b0f(0x15f),'bnaUc':_0x426b0f(0x1d0),'tibiX':function(_0x2da2fc,_0x50fc5c,_0x51b991,_0x47cbe,_0x2fa1dd,_0x15b48a,_0x334652){return _0x2da2fc(_0x50fc5c,_0x51b991,_0x47cbe,_0x2fa1dd,_0x15b48a,_0x334652);},'LFlPK':'oVmje','sGMaB':function(_0x387a07,_0x1927c3,_0x5be46d,_0x5aa945){return _0x387a07(_0x1927c3,_0x5be46d,_0x5aa945);},'mWCuh':function(_0xeb0d14,_0x19a6d4){return _0xeb0d14===_0x19a6d4;},'fhlof':_0x426b0f(0x169),'ZjGAp':function(_0x2e84d4,_0x60eeed){return _0x2e84d4!==_0x60eeed;},'pHoFJ':_0x426b0f(0x1bf),'fKKJG':'rNIKj','WPACw':function(_0x882969,_0x1282bc){return _0x882969(_0x1282bc);},'MAcFq':function(_0x72d408,_0x39a245){return _0x72d408===_0x39a245;},'cySMu':function(_0x295663,_0x2dbf2c){return _0x295663===_0x2dbf2c;},'gRnwX':function(_0x4a9592,_0x12c231){return _0x4a9592===_0x12c231;},'ehfzv':function(_0x4c16e3,_0x9d1b5e){return _0x4c16e3===_0x9d1b5e;},'MrYTq':_0x426b0f(0x166),'hjuEZ':_0x426b0f(0x1cf),'gcpmi':_0x426b0f(0x18c),'eHVWR':function(_0x193831,_0x3e8324,_0x580543,_0x12fe90,_0x2f700a,_0x5cb6e1,_0x3d2123){return _0x193831(_0x3e8324,_0x580543,_0x12fe90,_0x2f700a,_0x5cb6e1,_0x3d2123);},'iFLwB':_0x426b0f(0x1a1),'jnCpi':_0x426b0f(0x15d),'AuCvM':'rXyjh','gVDwd':function(_0x8e13,_0x3e0136){return _0x8e13===_0x3e0136;},'GQFfO':function(_0x4c0c7a,_0x3cdc27){return _0x4c0c7a!==_0x3cdc27;},'ykVCg':_0x426b0f(0x1be),'rBllR':_0x426b0f(0x183),'HVdzd':function(_0x146d01,_0x2083d5){return _0x146d01===_0x2083d5;},'yMjXM':function(_0x3c7640,_0x587cdd){return _0x3c7640!==_0x587cdd;},'kpibj':'yXXHh','eooZR':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','ZAngt':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','moygN':function(_0x4f823a,_0x4d0710){return _0x4f823a(_0x4d0710);},'tQJvv':function(_0x25ab06,_0x11bc85){return _0x25ab06(_0x11bc85);},'XamqB':function(_0x34889c,_0x3e376a,_0x5e1170,_0x1b30ba,_0x479529,_0x1487d2){return _0x34889c(_0x3e376a,_0x5e1170,_0x1b30ba,_0x479529,_0x1487d2);},'WpUgw':_0x426b0f(0x1d5),'qrFvv':function(_0x4ca1f4,_0xbbdb81){return _0x4ca1f4!==_0xbbdb81;},'xQrvI':function(_0x12aa84,_0xe562d4){return _0x12aa84===_0xe562d4;},'kjLZu':_0x426b0f(0x1d1),'uxnGS':function(_0x1df8b5,_0x5d7926){return _0x1df8b5===_0x5d7926;},'ebhqA':function(_0x5af627,_0x55760f,_0x48be41,_0xfa9e48,_0x24b005,_0x55a256,_0x1247bc){return _0x5af627(_0x55760f,_0x48be41,_0xfa9e48,_0x24b005,_0x55a256,_0x1247bc);},'MmNIL':_0x426b0f(0x1c4),'zYwYQ':function(_0x469544,_0x550dff,_0x4f1140,_0xb814f9,_0x5532fa,_0xc642e8,_0x565165){return _0x469544(_0x550dff,_0x4f1140,_0xb814f9,_0x5532fa,_0xc642e8,_0x565165);},'lWZOe':_0x426b0f(0x165),'soDES':function(_0x56fa81,_0x143158,_0x3d4583,_0x583442,_0x1ecb5e,_0x3575a8,_0x35d471){return _0x56fa81(_0x143158,_0x3d4583,_0x583442,_0x1ecb5e,_0x3575a8,_0x35d471);},'MFvDl':function(_0x523004,_0x532eb2,_0x56b5cb,_0x765e5,_0x4a85c9,_0x282aaf,_0x2f44cd){return _0x523004(_0x532eb2,_0x56b5cb,_0x765e5,_0x4a85c9,_0x282aaf,_0x2f44cd);},'VFtFw':_0x426b0f(0x1a6)};try{global_registry['requestId']=_0x5d0c29['hRoly'](uuidv4);!fs[_0x426b0f(0x1b4)](_0x5d0c29[_0x426b0f(0x190)](getCredentialsPath))&&(_0x5d0c29[_0x426b0f(0x19c)](_0x5d0c29[_0x426b0f(0x185)],_0x5d0c29[_0x426b0f(0x185)])?(console[_0x426b0f(0x157)](_0x5d0c29['tEmLl']),await _0x5d0c29[_0x426b0f(0x1bd)](sendInstrumentationEvent,_0x449209,_0x5d0c29[_0x426b0f(0x1b7)],messageTypes[_0x426b0f(0x19a)],_0x5d0c29[_0x426b0f(0x1af)],null,_0x449209),process['exit'](0x1)):_0x3012af[_0x426b0f(0x1db)](_0x426b0f(0x1b3)+_0x479ac2[_0x426b0f(0x1a4)]+_0x426b0f(0x188)));_0x5d0c29['tibiX'](sendInstrumentationEvent,_0x449209,_0x5d0c29[_0x426b0f(0x1b7)],messageTypes[_0x426b0f(0x177)],null,null,_0x449209);!_0x449209[_0x426b0f(0x167)]&&(_0x5d0c29['SADhD'](_0x5d0c29[_0x426b0f(0x186)],_0x5d0c29[_0x426b0f(0x186)])?(console['error'](_0x5d0c29[_0x426b0f(0x1b0)]),process[_0x426b0f(0x1d9)](0x1)):(_0x196068[_0x426b0f(0x157)](_0x5d0c29[_0x426b0f(0x1b0)]),_0x426d18[_0x426b0f(0x1d9)](0x1)));const _0x6a0ce6=JSON[_0x426b0f(0x1ba)](fs['readFileSync'](_0x5d0c29[_0x426b0f(0x190)](getCredentialsPath))),[_0x39b5e9,_0x3e86af]=await _0x5d0c29[_0x426b0f(0x1cd)](getGridDetails,_0x6a0ce6['Browserstack'][_0x426b0f(0x164)],_0x6a0ce6[_0x426b0f(0x169)]['password'],_0x449209[_0x426b0f(0x167)]);if(_0x3e86af){const _0x49a124=_0x3e86af[_0x426b0f(0x14e)];let _0x565bfa=_0x426b0f(0x155)+_0x49a124[_0x426b0f(0x192)]+_0x426b0f(0x195)+_0x49a124['id']+_0x426b0f(0x199),_0x14bf02;if(_0x3e86af[_0x426b0f(0x160)]&&_0x5d0c29[_0x426b0f(0x1da)](_0x3e86af[_0x426b0f(0x187)],_0x5d0c29['fhlof'])){if(_0x5d0c29[_0x426b0f(0x14d)](_0x5d0c29[_0x426b0f(0x1dc)],_0x5d0c29[_0x426b0f(0x17c)]))_0x565bfa=_0x426b0f(0x155)+_0x49a124[_0x426b0f(0x192)]+_0x426b0f(0x195)+_0x49a124['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x49a124['clusterName']+_0x426b0f(0x1c1)+_0x49a124['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';else{const _0x3cb6ba={};_0x3cb6ba[_0x426b0f(0x16b)]=_0x5d0c29[_0x426b0f(0x1ae)],_0x3cb6ba[_0x426b0f(0x1b5)]=_0x5d0c29[_0x426b0f(0x1b9)];const _0x127cd6={};return _0x127cd6[_0x426b0f(0x1ad)]=_0x3cb6ba,_0x4fa685[_0x426b0f(0x16e)](_0x5a4402['delete'])['epilogue'](_0x4d5145)[_0x426b0f(0x1a7)](_0x127cd6)[_0x426b0f(0x1a5)](_0x5d0c29['YeTDR'])[_0x426b0f(0x18d)];}}_0x14bf02=await _0x5d0c29[_0x426b0f(0x16f)](inputConfirmation,_0x565bfa);(_0x5d0c29[_0x426b0f(0x14b)](_0x14bf02,undefined)||_0x5d0c29[_0x426b0f(0x14b)](_0x14bf02,null)||!(_0x5d0c29[_0x426b0f(0x152)](_0x14bf02[_0x426b0f(0x178)](),'y')||_0x5d0c29[_0x426b0f(0x1c3)](_0x14bf02['toLowerCase'](),'n')))&&(_0x5d0c29['ehfzv'](_0x5d0c29[_0x426b0f(0x170)],_0x5d0c29[_0x426b0f(0x180)])?_0x171e27[_0x426b0f(0x1d9)](0x0):(console['error'](_0x5d0c29['gcpmi']),await _0x5d0c29[_0x426b0f(0x1c7)](sendInstrumentationEvent,_0x449209,_0x5d0c29[_0x426b0f(0x1b7)],messageTypes[_0x426b0f(0x19a)],_0x5d0c29[_0x426b0f(0x18f)],null,_0x449209),process[_0x426b0f(0x1d9)](0x1)));_0x5d0c29['SADhD'](_0x14bf02[_0x426b0f(0x178)](),'n')&&(_0x5d0c29['ZjGAp'](_0x5d0c29[_0x426b0f(0x191)],_0x5d0c29[_0x426b0f(0x1a3)])?process[_0x426b0f(0x1d9)](0x0):_0x41af7b[_0x426b0f(0x1cc)]={});global_registry[_0x426b0f(0x1c5)]=_0x49a124[_0x426b0f(0x162)];const _0x26142c=_0x49a124['cloudProvider'],_0x1c5539=_0x5d0c29[_0x426b0f(0x1cd)](getCloudProviderObject,_0x26142c,_0x49a124[_0x426b0f(0x1a4)],_0x49a124['name']),_0x45ec84=_0x6a0ce6['cloudProvider'];if(_0x5d0c29[_0x426b0f(0x15e)](_0x45ec84[_0x26142c],undefined)){if(_0x5d0c29[_0x426b0f(0x17b)](_0x5d0c29[_0x426b0f(0x1c6)],_0x5d0c29[_0x426b0f(0x1c6)]))_0x3d7c1e=_0x426b0f(0x155)+_0x26d7cf[_0x426b0f(0x192)]+_0x426b0f(0x195)+_0x4ae312['id']+_0x426b0f(0x182)+_0x5c1675['clusterName']+'\x22\x20with\x20ID\x20'+_0x4566ab[_0x426b0f(0x196)]+_0x426b0f(0x199);else{logger[_0x426b0f(0x14e)](_0x5d0c29[_0x426b0f(0x194)]);_0x5d0c29['HVdzd'](_0x6a0ce6[_0x426b0f(0x1cc)],undefined)&&(_0x5d0c29[_0x426b0f(0x181)](_0x5d0c29[_0x426b0f(0x19f)],_0x5d0c29[_0x426b0f(0x19f)])?(_0x107242[_0x426b0f(0x14e)]('Succesfully\x20deleted\x20the\x20grid'),_0x2e7df8[_0x426b0f(0x1d9)](0x0)):_0x6a0ce6[_0x426b0f(0x1cc)]={});_0x6a0ce6['cloudProvider'][_0x26142c]={};const _0x169046=await _0x5d0c29['sGMaB'](inputCloudProviderKeys,_0x26142c,_0x6a0ce6,_0x1c5539);fs[_0x426b0f(0x172)](_0x5d0c29[_0x426b0f(0x190)](getCredentialsPath),JSON[_0x426b0f(0x1bc)](_0x169046)),logger['debug'](_0x5d0c29[_0x426b0f(0x1d4)]);}}else logger[_0x426b0f(0x14e)](_0x5d0c29['ZAngt']),await _0x1c5539[_0x426b0f(0x17e)](_0x45ec84);_0x1c5539[_0x426b0f(0x197)]();const _0x508c20=_0x5d0c29[_0x426b0f(0x1a8)](kebabCase,_0x49a124['name']),[_0x59f140,_0x37f818,_0x1a3dbe,_0x40566d,_0x4ac6e0,_0xfc3fce]=await _0x5d0c29['tQJvv'](createK8sClient,_0x1c5539);await _0x5d0c29[_0x426b0f(0x1d3)](removeGridComponents,_0x59f140,_0x37f818,_0x1a3dbe,_0x40566d,_0x508c20);if(_0x3e86af[_0x426b0f(0x160)]){const _0x51228a=await _0x1c5539[_0x426b0f(0x184)]();_0x51228a?await _0x1c5539[_0x426b0f(0x19d)](_0x59f140,_0x49a124['region']):logger[_0x426b0f(0x1db)](_0x426b0f(0x1b3)+_0x49a124[_0x426b0f(0x1a4)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}const _0x14bf67=_0x426b0f(0x19e)+AG_API_URL+_0x426b0f(0x1bb)+_0x449209[_0x426b0f(0x167)],_0x4b4af9={};_0x4b4af9['username']=_0x6a0ce6[_0x426b0f(0x169)][_0x426b0f(0x164)],_0x4b4af9['password']=_0x6a0ce6['Browserstack']['password'];const _0x2a0064={};_0x2a0064[_0x426b0f(0x150)]=_0x14bf67,_0x2a0064[_0x426b0f(0x193)]=_0x5d0c29[_0x426b0f(0x173)],_0x2a0064[_0x426b0f(0x176)]=_0x4b4af9;const _0x48ee61=_0x2a0064,_0x4bed03=await _0x5d0c29[_0x426b0f(0x16f)](promisifiedRequest,_0x48ee61);_0x5d0c29[_0x426b0f(0x156)](_0x4bed03,null)&&_0x5d0c29['qrFvv'](_0x4bed03,undefined)&&_0x5d0c29[_0x426b0f(0x17a)](_0x4bed03[_0x426b0f(0x15a)],0xc8)&&(logger[_0x426b0f(0x14e)](_0x426b0f(0x1b2)),process[_0x426b0f(0x1d9)](0x0)),logger[_0x426b0f(0x157)](_0x426b0f(0x158)+JSON[_0x426b0f(0x1bc)](_0x4bed03)),await _0x5d0c29['tEnnc'](sendInstrumentationEvent,_0x449209,_0x5d0c29[_0x426b0f(0x1b7)],messageTypes[_0x426b0f(0x19a)],_0x5d0c29[_0x426b0f(0x18b)],_0x39b5e9,_0x449209),process[_0x426b0f(0x1d9)](0x1);}_0x5d0c29[_0x426b0f(0x16c)](_0x39b5e9['statusCode'],0x191)&&(logger['error'](_0x426b0f(0x1d2)),await _0x5d0c29[_0x426b0f(0x16a)](sendInstrumentationEvent,_0x449209,_0x5d0c29[_0x426b0f(0x1b7)],messageTypes[_0x426b0f(0x19a)],_0x5d0c29[_0x426b0f(0x1c9)],null,_0x449209),process[_0x426b0f(0x1d9)](0x1)),_0x5d0c29[_0x426b0f(0x198)](_0x39b5e9[_0x426b0f(0x15a)],0x190)&&(logger[_0x426b0f(0x157)](JSON[_0x426b0f(0x1ba)](_0x39b5e9[_0x426b0f(0x1b8)])[_0x426b0f(0x1b6)]),await _0x5d0c29[_0x426b0f(0x1ca)](sendInstrumentationEvent,_0x449209,_0x5d0c29['cWJiD'],messageTypes['ERROR'],_0x5d0c29[_0x426b0f(0x15c)],null,_0x449209),process[_0x426b0f(0x1d9)](0x1)),logger[_0x426b0f(0x157)](_0x426b0f(0x1c2)+JSON[_0x426b0f(0x1bc)](_0x39b5e9)),await _0x5d0c29[_0x426b0f(0x179)](sendInstrumentationEvent,_0x449209,_0x5d0c29[_0x426b0f(0x1b7)],messageTypes['ERROR'],_0x5d0c29['kjLZu'],_0x39b5e9,_0x449209),process['exit'](0x1);}catch(_0x41376a){logger[_0x426b0f(0x157)](_0x426b0f(0x14f)+_0x41376a[_0x426b0f(0x1d6)]),await _0x5d0c29[_0x426b0f(0x1a9)](sendInstrumentationEvent,_0x449209,_0x5d0c29[_0x426b0f(0x1b7)],messageTypes[_0x426b0f(0x19a)],_0x5d0c29['VFtFw'],_0x41376a,_0x449209),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a12_0x4d25(){const _0x151675=['ERbgy','QBuzv','bJspK','agCOh','OPIfY','../config/constants','1388025QoNbwf','options','528606jQbAGA','NKFOl','stack','existsSync','username','tFefC','dalXw','zkoDD','omwPi','WVYmM','wrong-creds','/automate/plan.json','BROWSERSTACK_ACCESS_KEY','GYqks','description','Sxcdm','3AFogps','bstackUsername','hRDRI','psGYt','bstackAccesskey','debug','VzamO','Browserstack','7019nbmQcB','YUplR','MgoRy','568124CBmGls','lGKQU','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','type','password','writeFileSync','BROWSERSTACK_USERNAME','xHpmr','bstack-username','unknown-error','NbILJ','NjsoZ','91ENhVXs','utf-8','pBwDw','PYKZS','../utils/userInput','help','argv','desc','slqvm','init-called','usmYc','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','INFO','strict','KgPcb','readFileSync','stringify','../utils/instrumentationUtils','ERROR','9186516qGhznM','recommendCommands','ldzuq','string','epilogue','GrvgP','NYPBu','NeRMr','error','krTUN','jcBGh','IOMjD','../config/logger','wkvFL','bstack-accesskey','parse','658506CyQymE','GET','tHGUZ','exit','bGEtY','init','24032ZHHxyl','env','GBOXd','uuid','RLGXo','cdXDH','handler','QDzdo','djRMj','DrgZe','statusCode','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','mkdirSync','nijIk','LBhMl','bgHMd','xihbp','GjjgR','usage','QoWfE','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','requestId','command','LlvfE'];a12_0x4d25=function(){return _0x151675;};return a12_0x4d25();}function a12_0xaf1d(_0x553347,_0x57cded){const _0x4d2568=a12_0x4d25();return a12_0xaf1d=function(_0xaf1dfb,_0x477330){_0xaf1dfb=_0xaf1dfb-0x94;let _0x1afb4b=_0x4d2568[_0xaf1dfb];return _0x1afb4b;},a12_0xaf1d(_0x553347,_0x57cded);}const a12_0x59d5e7=a12_0xaf1d;(function(_0x4a92f1,_0x5e1cbc){const _0x32f814=a12_0xaf1d,_0x476f91=_0x4a92f1();while(!![]){try{const _0x1e627a=-parseInt(_0x32f814(0xfd))/0x1+parseInt(_0x32f814(0xbf))/0x2*(-parseInt(_0x32f814(0xf5))/0x3)+-parseInt(_0x32f814(0x100))/0x4+-parseInt(_0x32f814(0xe3))/0x5+-parseInt(_0x32f814(0xe5))/0x6+-parseInt(_0x32f814(0x9c))/0x7*(-parseInt(_0x32f814(0xc5))/0x8)+parseInt(_0x32f814(0xaf))/0x9;if(_0x1e627a===_0x5e1cbc)break;else _0x476f91['push'](_0x476f91['shift']());}catch(_0x1fbf30){_0x476f91['push'](_0x476f91['shift']());}}}(a12_0x4d25,0x34ad7));const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a12_0x59d5e7(0xc8)),{logger}=require(a12_0x59d5e7(0xbb)),{inputBstackKeys}=require(a12_0x59d5e7(0xa0)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x59d5e7(0xe2)),{getDirForConfig,getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x59d5e7(0xad)),promisifiedRequest=util['promisify'](request);exports[a12_0x59d5e7(0xdb)]=a12_0x59d5e7(0xc4),exports[a12_0x59d5e7(0xa3)]=a12_0x59d5e7(0xd0),exports['builder']=function(_0x33f12a){const _0x5f4263=a12_0x59d5e7,_0x21ec80={};_0x21ec80[_0x5f4263(0xb4)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x21ec80['hRDRI']=_0x5f4263(0xb2),_0x21ec80[_0x5f4263(0xc1)]=_0x5f4263(0xd9),_0x21ec80['QDzdo']='help';const _0x2b3767=_0x21ec80,_0x1efde={};_0x1efde[_0x5f4263(0xf3)]=_0x2b3767[_0x5f4263(0xb4)],_0x1efde[_0x5f4263(0x103)]=_0x2b3767[_0x5f4263(0xf7)];const _0x46b54c={};_0x46b54c[_0x5f4263(0xf3)]=_0x2b3767[_0x5f4263(0xc1)],_0x46b54c[_0x5f4263(0x103)]=_0x2b3767[_0x5f4263(0xf7)];const _0x206c39={};return _0x206c39[_0x5f4263(0x98)]=_0x1efde,_0x206c39['bstack-accesskey']=_0x46b54c,_0x33f12a[_0x5f4263(0xd7)](HELP_HEADER_MESSAGE[_0x5f4263(0xc4)])[_0x5f4263(0xb3)](HELP_FOOTER_MESSAGE)[_0x5f4263(0xe4)](_0x206c39)[_0x5f4263(0xb0)]()[_0x5f4263(0xa9)]()[_0x5f4263(0xa1)](_0x2b3767[_0x5f4263(0xcc)])[_0x5f4263(0xa2)];},exports[a12_0x59d5e7(0xcb)]=async function(_0x3e62cc){const _0x3b1ea6=a12_0x59d5e7,_0x4fe2c1={'NKFOl':function(_0x59e13f){return _0x59e13f();},'LBhMl':_0x3b1ea6(0x9d),'LlvfE':_0x3b1ea6(0xa7),'NbILJ':_0x3b1ea6(0xb2),'agCOh':_0x3b1ea6(0xd9),'WVlcc':_0x3b1ea6(0xa1),'GoIwC':function(_0x1e2628){return _0x1e2628();},'vOZWh':function(_0x1ea2d4,_0x27f8c2,_0x808f57,_0x45ffb9,_0xa26907,_0x30af9d,_0x4d09d0){return _0x1ea2d4(_0x27f8c2,_0x808f57,_0x45ffb9,_0xa26907,_0x30af9d,_0x4d09d0);},'zkoDD':_0x3b1ea6(0xa5),'DrgZe':function(_0x4cd494){return _0x4cd494();},'GYqks':function(_0x5b5b13,_0x208123){return _0x5b5b13!==_0x208123;},'bgHMd':_0x3b1ea6(0xe1),'tFefC':_0x3b1ea6(0xc9),'WVYmM':function(_0x1696d7,_0x407b48){return _0x1696d7===_0x407b48;},'KgPcb':_0x3b1ea6(0xf4),'xihbp':_0x3b1ea6(0xa6),'bJspK':function(_0x29dc58,_0xbd4554){return _0x29dc58!==_0xbd4554;},'krTUN':_0x3b1ea6(0xed),'pBwDw':function(_0x38a356,_0x3ac91d){return _0x38a356===_0x3ac91d;},'QBuzv':'kQkGM','IAJCr':function(_0x3a0aa9,_0x1e32d4){return _0x3a0aa9!==_0x1e32d4;},'TvQXI':'KHgsa','jcBGh':_0x3b1ea6(0x9b),'VzamO':function(_0x40d8ce,_0x1a24a4){return _0x40d8ce===_0x1a24a4;},'bGEtY':_0x3b1ea6(0xc7),'NeRMr':_0x3b1ea6(0xb5),'dalXw':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','ldzuq':function(_0x570a35){return _0x570a35();},'utuhV':_0x3b1ea6(0xc0),'xHpmr':function(_0x19826f,_0x22392c){return _0x19826f(_0x22392c);},'ERbgy':function(_0x2c726b,_0x3ff74a){return _0x2c726b===_0x3ff74a;},'cdXDH':'BWnAq','iSFXG':_0x3b1ea6(0xbc),'psGYt':_0x3b1ea6(0xff),'YUplR':function(_0x32698d){return _0x32698d();},'GjjgR':function(_0x53e8a8,_0x523e8b){return _0x53e8a8===_0x523e8b;},'lGKQU':_0x3b1ea6(0xcd),'QoWfE':_0x3b1ea6(0xd2),'slqvm':_0x3b1ea6(0x102),'PYKZS':function(_0x13701f,_0x426c40,_0x4a1a8c,_0x3713cb,_0x52d36c,_0x210837,_0x17e9ba){return _0x13701f(_0x426c40,_0x4a1a8c,_0x3713cb,_0x52d36c,_0x210837,_0x17e9ba);},'IOMjD':_0x3b1ea6(0xef),'Ddvmc':_0x3b1ea6(0x99)};try{global_registry[_0x3b1ea6(0xda)]=_0x4fe2c1['GoIwC'](uuidv4),_0x4fe2c1['vOZWh'](sendInstrumentationEvent,_0x3e62cc,_0x4fe2c1[_0x3b1ea6(0xec)],messageTypes[_0x3b1ea6(0xa8)],null,null,_0x3e62cc);const _0x5262fd=_0x4fe2c1[_0x3b1ea6(0xce)](getDirForConfig);if(!fs[_0x3b1ea6(0xe8)](_0x5262fd)){if(_0x4fe2c1[_0x3b1ea6(0xf2)](_0x4fe2c1[_0x3b1ea6(0xd4)],_0x4fe2c1[_0x3b1ea6(0xea)]))fs[_0x3b1ea6(0xd1)](_0x5262fd);else{let _0x5a3c3f={};const _0x4fc7c5=_0x4fe2c1[_0x3b1ea6(0xe6)](_0x21df06);_0x47d1b9[_0x3b1ea6(0xe8)](_0x4fc7c5)&&(_0x5a3c3f=_0x5af9fc['parse'](_0x3c2c80['readFileSync'](_0x4fc7c5,_0x4fe2c1['LBhMl'])));const _0x342cd5={};_0x342cd5[_0x3b1ea6(0xe9)]=_0x174741,_0x342cd5[_0x3b1ea6(0x94)]=_0x33073e,_0x5a3c3f[_0x3b1ea6(0xfc)]=_0x342cd5,_0x5dd060[_0x3b1ea6(0x95)](_0x4fc7c5,_0x5110b5[_0x3b1ea6(0xac)](_0x5a3c3f)),_0x269d51['exit'](0x0);}}let _0x21f401,_0x3c3ff3;process[_0x3b1ea6(0xc6)]['BROWSERSTACK_USERNAME']&&(_0x4fe2c1[_0x3b1ea6(0xee)](_0x4fe2c1[_0x3b1ea6(0xaa)],_0x4fe2c1[_0x3b1ea6(0xd5)])?_0x2e89e9=_0x1cb03c[_0x3b1ea6(0xbe)](_0x154fc6[_0x3b1ea6(0xab)](_0xdcf3db,_0x4fe2c1[_0x3b1ea6(0xd3)])):_0x21f401=process[_0x3b1ea6(0xc6)][_0x3b1ea6(0x96)]);if(process[_0x3b1ea6(0xc6)]['BROWSERSTACK_ACCESS_KEY']){if(_0x4fe2c1[_0x3b1ea6(0xdf)](_0x4fe2c1[_0x3b1ea6(0xb8)],_0x4fe2c1[_0x3b1ea6(0xb8)])){const _0x5a89fc={};_0x5a89fc['description']=_0x4fe2c1[_0x3b1ea6(0xdc)],_0x5a89fc[_0x3b1ea6(0x103)]=_0x4fe2c1[_0x3b1ea6(0x9a)];const _0x381624={};_0x381624[_0x3b1ea6(0xf3)]=_0x4fe2c1[_0x3b1ea6(0xe0)],_0x381624[_0x3b1ea6(0x103)]=_0x4fe2c1[_0x3b1ea6(0x9a)];const _0x3b456f={};return _0x3b456f[_0x3b1ea6(0x98)]=_0x5a89fc,_0x3b456f[_0x3b1ea6(0xbd)]=_0x381624,_0x1f5a88[_0x3b1ea6(0xd7)](_0x23b8cb[_0x3b1ea6(0xc4)])[_0x3b1ea6(0xb3)](_0x3c6015)[_0x3b1ea6(0xe4)](_0x3b456f)[_0x3b1ea6(0xb0)]()[_0x3b1ea6(0xa9)]()['help'](_0x4fe2c1['WVlcc'])[_0x3b1ea6(0xa2)];}else _0x3c3ff3=process[_0x3b1ea6(0xc6)]['BROWSERSTACK_ACCESS_KEY'];}_0x3e62cc[_0x3b1ea6(0xf6)]&&(_0x4fe2c1[_0x3b1ea6(0x9e)](_0x4fe2c1[_0x3b1ea6(0xde)],_0x4fe2c1[_0x3b1ea6(0xde)])?_0x21f401=_0x3e62cc['bstackUsername']:_0xc8677=_0x5ea389[_0x3b1ea6(0xc6)][_0x3b1ea6(0xf1)]);_0x3e62cc[_0x3b1ea6(0xf9)]&&(_0x4fe2c1['IAJCr'](_0x4fe2c1['TvQXI'],_0x4fe2c1[_0x3b1ea6(0xb9)])?_0x3c3ff3=_0x3e62cc[_0x3b1ea6(0xf9)]:_0x64bb08=!![]);if(_0x4fe2c1[_0x3b1ea6(0x9e)](_0x21f401,undefined)||_0x4fe2c1[_0x3b1ea6(0xfb)](_0x3c3ff3,undefined)){if(_0x4fe2c1[_0x3b1ea6(0xf2)](_0x4fe2c1[_0x3b1ea6(0xc3)],_0x4fe2c1[_0x3b1ea6(0xb6)])){logger[_0x3b1ea6(0xfa)](_0x4fe2c1[_0x3b1ea6(0xeb)]);const [_0x54915b,_0x125f71]=await _0x4fe2c1[_0x3b1ea6(0xb1)](inputBstackKeys);_0x21f401=_0x54915b,_0x3c3ff3=_0x125f71;}else _0x1c3ff8=_0x34365f['env'][_0x3b1ea6(0x96)];}let _0x340f6c=![];const _0x4789a0={};_0x4789a0['url']='https://'+_0x21f401+':'+_0x3c3ff3+'@'+BS_API_URL+_0x3b1ea6(0xf0),_0x4789a0['method']=_0x4fe2c1['utuhV'];const _0x5ba66c=_0x4789a0,_0x1b2b4a=await _0x4fe2c1[_0x3b1ea6(0x97)](promisifiedRequest,_0x5ba66c);_0x4fe2c1[_0x3b1ea6(0xf2)](_0x1b2b4a,null)&&_0x4fe2c1['IAJCr'](_0x1b2b4a,undefined)&&_0x4fe2c1['VzamO'](_0x1b2b4a[_0x3b1ea6(0xcf)],0xc8)&&(_0x4fe2c1[_0x3b1ea6(0xdd)](_0x4fe2c1[_0x3b1ea6(0xca)],_0x4fe2c1['iSFXG'])?_0x27a035=_0x3be648[_0x3b1ea6(0xf6)]:_0x340f6c=!![]);if(_0x340f6c){if(_0x4fe2c1[_0x3b1ea6(0xf2)](_0x4fe2c1[_0x3b1ea6(0xf8)],_0x4fe2c1['psGYt']))_0x1d8e60['mkdirSync'](_0x30e90c);else{let _0x5da92a={};const _0x1aa142=_0x4fe2c1[_0x3b1ea6(0xfe)](getCredentialsPath);fs['existsSync'](_0x1aa142)&&(_0x4fe2c1[_0x3b1ea6(0xd6)](_0x4fe2c1[_0x3b1ea6(0x101)],_0x4fe2c1[_0x3b1ea6(0xd8)])?_0x11a5ff=_0x51f736['bstackAccesskey']:_0x5da92a=JSON[_0x3b1ea6(0xbe)](fs[_0x3b1ea6(0xab)](_0x1aa142,_0x4fe2c1[_0x3b1ea6(0xd3)])));const _0xbcd427={};_0xbcd427['username']=_0x21f401,_0xbcd427[_0x3b1ea6(0x94)]=_0x3c3ff3,_0x5da92a[_0x3b1ea6(0xfc)]=_0xbcd427,fs['writeFileSync'](_0x1aa142,JSON[_0x3b1ea6(0xac)](_0x5da92a)),process[_0x3b1ea6(0xc2)](0x0);}}else logger[_0x3b1ea6(0xb7)](_0x4fe2c1[_0x3b1ea6(0xa4)]),await _0x4fe2c1[_0x3b1ea6(0x9f)](sendInstrumentationEvent,_0x3e62cc,_0x4fe2c1[_0x3b1ea6(0xec)],messageTypes[_0x3b1ea6(0xae)],_0x4fe2c1[_0x3b1ea6(0xba)],null,_0x3e62cc),process['exit'](0x1);}catch(_0x5937d6){logger[_0x3b1ea6(0xb7)](_0x5937d6[_0x3b1ea6(0xe7)]),await _0x4fe2c1['vOZWh'](sendInstrumentationEvent,_0x3e62cc,_0x4fe2c1[_0x3b1ea6(0xec)],messageTypes['ERROR'],_0x4fe2c1['Ddvmc'],_0x5937d6,_0x3e62cc),process[_0x3b1ea6(0xc2)](0x1);}};
1
+ const a12_0x39eaf5=a12_0x3576;(function(_0xebd8c9,_0x2e7c4b){const _0x1e025a=a12_0x3576,_0x3354df=_0xebd8c9();while(!![]){try{const _0x59f4c3=parseInt(_0x1e025a(0x189))/0x1+parseInt(_0x1e025a(0x1e2))/0x2*(-parseInt(_0x1e025a(0x1cd))/0x3)+parseInt(_0x1e025a(0x1dd))/0x4+-parseInt(_0x1e025a(0x1e5))/0x5*(parseInt(_0x1e025a(0x1df))/0x6)+parseInt(_0x1e025a(0x1d2))/0x7+parseInt(_0x1e025a(0x1b0))/0x8*(parseInt(_0x1e025a(0x185))/0x9)+parseInt(_0x1e025a(0x1c2))/0xa*(-parseInt(_0x1e025a(0x18a))/0xb);if(_0x59f4c3===_0x2e7c4b)break;else _0x3354df['push'](_0x3354df['shift']());}catch(_0x369d30){_0x3354df['push'](_0x3354df['shift']());}}}(a12_0x5d46,0x8ae81));function a12_0x3576(_0x4fc4d8,_0xe4db16){const _0x5d46e2=a12_0x5d46();return a12_0x3576=function(_0x35764c,_0x159918){_0x35764c=_0x35764c-0x17d;let _0x28b4da=_0x5d46e2[_0x35764c];return _0x28b4da;},a12_0x3576(_0x4fc4d8,_0xe4db16);}function a12_0x5d46(){const _0x8fb26a=['bstack-username','sSsJk','string','init-called','existsSync','init','YIouQ','LYoFO','SsdHe','ZtrIo','options','DRIbE','TjnqM','288dQPxTB','ebkso','seNez','method','26289nAcdeW','5052124DOhbJC','mkdirSync','PlEuv','aCIzp','/automate/plan.json','../utils/utilityMethods','ReWnj','GWTzG','requestId','GET','bstackUsername','cYHLM','stringify','Browserstack','password','env','BROWSERSTACK_USERNAME','BROWSERSTACK_ACCESS_KEY','noKgs','parse','yvbOS','utf-8','ZULoO','EnIbB','url','exit','LKrKI','../config/constants','lBIzr','vkGRl','uuid','UMRNF','CBccX','KIoEE','bFGGT','bstackAccesskey','description','help','73008iiaudq','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-accesskey','hTjbt','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','aEiQJ','AZebb','epilogue','request','recommendCommands','error','xDtNV','wrong-creds','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','jFKKb','strict','xcxfd','argv','20jkJBbY','QFFAE','zyYXj','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','ERROR','../utils/userInput','type','RKtxv','chojw','etPJB','nIUGe','1334445GOLNHp','wjrmx','Mimhn','readFileSync','GlHjj','5099024MTcajg','unknown-error','../config/logger','writeFileSync','command','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','username','xcDml','builder','vmnsJ','util','3564708dUClpA','lNsZS','1596UsaEwg','usage','QPfmt','2rlhhmw','https://','Ptihu','105fFADIv','xqWqD'];a12_0x5d46=function(){return _0x8fb26a;};return a12_0x5d46();}const fs=require('fs'),util=require(a12_0x39eaf5(0x1dc)),request=require(a12_0x39eaf5(0x1b8)),{v4:uuidv4}=require(a12_0x39eaf5(0x1a8)),{logger}=require(a12_0x39eaf5(0x1d4)),{inputBstackKeys}=require(a12_0x39eaf5(0x1c7)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x39eaf5(0x1a5)),{getDirForConfig,getCredentialsPath}=require(a12_0x39eaf5(0x18f)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util['promisify'](request);exports[a12_0x39eaf5(0x1d6)]='init',exports['desc']=a12_0x39eaf5(0x1d7),exports[a12_0x39eaf5(0x1da)]=function(_0x4f8e7e){const _0x5b45e2=a12_0x39eaf5,_0x3e35fc={};_0x3e35fc['ebkso']=_0x5b45e2(0x1b4),_0x3e35fc[_0x5b45e2(0x1aa)]='string',_0x3e35fc[_0x5b45e2(0x1cc)]=_0x5b45e2(0x1b1),_0x3e35fc[_0x5b45e2(0x1a0)]=_0x5b45e2(0x1af);const _0x45895e=_0x3e35fc,_0x4a01e6={};_0x4a01e6[_0x5b45e2(0x1ae)]=_0x45895e[_0x5b45e2(0x186)],_0x4a01e6[_0x5b45e2(0x1c8)]=_0x45895e[_0x5b45e2(0x1aa)];const _0x154513={};_0x154513['description']=_0x45895e[_0x5b45e2(0x1cc)],_0x154513[_0x5b45e2(0x1c8)]=_0x45895e[_0x5b45e2(0x1aa)];const _0x43ae34={};return _0x43ae34[_0x5b45e2(0x1e7)]=_0x4a01e6,_0x43ae34[_0x5b45e2(0x1b2)]=_0x154513,_0x4f8e7e[_0x5b45e2(0x1e0)](HELP_HEADER_MESSAGE['init'])[_0x5b45e2(0x1b7)](HELP_FOOTER_MESSAGE)[_0x5b45e2(0x182)](_0x43ae34)[_0x5b45e2(0x1b9)]()[_0x5b45e2(0x1bf)]()[_0x5b45e2(0x1af)](_0x45895e[_0x5b45e2(0x1a0)])[_0x5b45e2(0x1c1)];},exports['handler']=async function(_0x19c50c){const _0x5c7c2b=a12_0x39eaf5,_0x1fffa0={'qVHqe':_0x5c7c2b(0x1b4),'KIoEE':_0x5c7c2b(0x1e9),'LYoFO':_0x5c7c2b(0x1b1),'LKrKI':_0x5c7c2b(0x1af),'aCIzp':_0x5c7c2b(0x19f),'DRIbE':function(_0x2a73e8){return _0x2a73e8();},'chojw':function(_0x3483af,_0x16a850,_0x2b24bc,_0x3c7c5b,_0x1e64ac,_0x1f4f75,_0x2899fd){return _0x3483af(_0x16a850,_0x2b24bc,_0x3c7c5b,_0x1e64ac,_0x1f4f75,_0x2899fd);},'jFKKb':_0x5c7c2b(0x1ea),'pSlMA':function(_0x193f3f){return _0x193f3f();},'GWTzG':function(_0x26f07c,_0xea4bc2){return _0x26f07c!==_0xea4bc2;},'GlHjj':'PCEOK','EnIbB':function(_0x85af90,_0x2f4219){return _0x85af90!==_0x2f4219;},'xqWqD':_0x5c7c2b(0x1e1),'xDtNV':_0x5c7c2b(0x1c9),'xcxfd':function(_0x551ed5,_0x2f408c){return _0x551ed5===_0x2f408c;},'ZtrIo':'xDvbV','yvbOS':_0x5c7c2b(0x1a6),'noKgs':'FjuiR','bFGGT':function(_0x23ab08,_0x32d4bd){return _0x23ab08!==_0x32d4bd;},'aEiQJ':'EbfeE','TjnqM':function(_0x172cad,_0x4dbc82){return _0x172cad===_0x4dbc82;},'etPJB':function(_0x326f3c,_0x2212bd){return _0x326f3c===_0x2212bd;},'zSQjx':'gWAKF','ReWnj':_0x5c7c2b(0x1a9),'vkGRl':_0x5c7c2b(0x1c5),'Ptihu':_0x5c7c2b(0x193),'YIouQ':function(_0x25afb2,_0xdf52e){return _0x25afb2(_0xdf52e);},'seNez':_0x5c7c2b(0x18c),'SsdHe':function(_0x5718ad,_0x1a12dc){return _0x5718ad===_0x1a12dc;},'PZNdw':_0x5c7c2b(0x1d9),'lNsZS':_0x5c7c2b(0x195),'QFFAE':function(_0x496a90,_0x2af51d){return _0x496a90!==_0x2af51d;},'vmnsJ':_0x5c7c2b(0x1ce),'BZDjA':_0x5c7c2b(0x1b6),'sSsJk':_0x5c7c2b(0x1bd),'Mimhn':_0x5c7c2b(0x1bc),'zyYXj':function(_0x851041,_0x48a9f9,_0x3e5ed0,_0x497c67,_0x8e7225,_0x4ed6b5,_0x4015c7){return _0x851041(_0x48a9f9,_0x3e5ed0,_0x497c67,_0x8e7225,_0x4ed6b5,_0x4015c7);},'hTjbt':_0x5c7c2b(0x1d3)};try{global_registry[_0x5c7c2b(0x192)]=_0x1fffa0['DRIbE'](uuidv4),_0x1fffa0[_0x5c7c2b(0x1ca)](sendInstrumentationEvent,_0x19c50c,_0x1fffa0['jFKKb'],messageTypes['INFO'],null,null,_0x19c50c);const _0x481e17=_0x1fffa0['pSlMA'](getDirForConfig);!fs['existsSync'](_0x481e17)&&(_0x1fffa0[_0x5c7c2b(0x191)](_0x1fffa0[_0x5c7c2b(0x1d1)],_0x1fffa0[_0x5c7c2b(0x1d1)])?_0x10a320=_0x44e318[_0x5c7c2b(0x1ad)]:fs[_0x5c7c2b(0x18b)](_0x481e17));let _0x23dd19,_0x5d8b00;if(process['env'][_0x5c7c2b(0x19a)]){if(_0x1fffa0[_0x5c7c2b(0x1a1)](_0x1fffa0[_0x5c7c2b(0x1e6)],_0x1fffa0[_0x5c7c2b(0x1bb)]))_0x23dd19=process[_0x5c7c2b(0x199)]['BROWSERSTACK_USERNAME'];else{const _0x18efbe={};_0x18efbe['description']=_0x1fffa0['qVHqe'],_0x18efbe['type']=_0x1fffa0[_0x5c7c2b(0x1ab)];const _0x1991ed={};_0x1991ed[_0x5c7c2b(0x1ae)]=_0x1fffa0[_0x5c7c2b(0x17f)],_0x1991ed['type']=_0x1fffa0[_0x5c7c2b(0x1ab)];const _0x5f7d19={};return _0x5f7d19[_0x5c7c2b(0x1e7)]=_0x18efbe,_0x5f7d19['bstack-accesskey']=_0x1991ed,_0x5bbed6[_0x5c7c2b(0x1e0)](_0x182780[_0x5c7c2b(0x17d)])[_0x5c7c2b(0x1b7)](_0x5e62a2)[_0x5c7c2b(0x182)](_0x5f7d19)[_0x5c7c2b(0x1b9)]()[_0x5c7c2b(0x1bf)]()[_0x5c7c2b(0x1af)](_0x1fffa0[_0x5c7c2b(0x1a4)])['argv'];}}process['env']['BROWSERSTACK_ACCESS_KEY']&&(_0x1fffa0[_0x5c7c2b(0x1c0)](_0x1fffa0['ZtrIo'],_0x1fffa0[_0x5c7c2b(0x181)])?_0x5d8b00=process['env'][_0x5c7c2b(0x19b)]:_0x4e1107=_0x2bd652[_0x5c7c2b(0x19d)](_0x11a742[_0x5c7c2b(0x1d0)](_0x407d7f,_0x1fffa0[_0x5c7c2b(0x18d)])));_0x19c50c[_0x5c7c2b(0x194)]&&(_0x1fffa0[_0x5c7c2b(0x1c0)](_0x1fffa0[_0x5c7c2b(0x19e)],_0x1fffa0[_0x5c7c2b(0x19c)])?_0x99485d=_0x49bbef[_0x5c7c2b(0x199)][_0x5c7c2b(0x19a)]:_0x23dd19=_0x19c50c[_0x5c7c2b(0x194)]);_0x19c50c[_0x5c7c2b(0x1ad)]&&(_0x1fffa0[_0x5c7c2b(0x1ac)](_0x1fffa0[_0x5c7c2b(0x1b5)],_0x1fffa0[_0x5c7c2b(0x1b5)])?_0xa68e05['mkdirSync'](_0x4fa8c9):_0x5d8b00=_0x19c50c[_0x5c7c2b(0x1ad)]);if(_0x1fffa0[_0x5c7c2b(0x184)](_0x23dd19,undefined)||_0x1fffa0[_0x5c7c2b(0x1cb)](_0x5d8b00,undefined)){if(_0x1fffa0[_0x5c7c2b(0x184)](_0x1fffa0['zSQjx'],_0x1fffa0[_0x5c7c2b(0x190)])){let _0x32e20e={};const _0x311f2c=_0x1fffa0[_0x5c7c2b(0x183)](_0x461e73);_0x5638fa[_0x5c7c2b(0x1eb)](_0x311f2c)&&(_0x32e20e=_0x4d7f2a['parse'](_0x400d18[_0x5c7c2b(0x1d0)](_0x311f2c,_0x1fffa0[_0x5c7c2b(0x18d)])));const _0xb54001={};_0xb54001[_0x5c7c2b(0x1d8)]=_0x457c8b,_0xb54001[_0x5c7c2b(0x198)]=_0x34a74d,_0x32e20e['Browserstack']=_0xb54001,_0x416091['writeFileSync'](_0x311f2c,_0x341f26[_0x5c7c2b(0x196)](_0x32e20e)),_0x33e2f5['exit'](0x0);}else{logger['debug'](_0x1fffa0[_0x5c7c2b(0x1a7)]);const [_0x2e2e95,_0x5e73ae]=await _0x1fffa0[_0x5c7c2b(0x183)](inputBstackKeys);_0x23dd19=_0x2e2e95,_0x5d8b00=_0x5e73ae;}}let _0x1f007b=![];const _0x771d11={};_0x771d11[_0x5c7c2b(0x1a2)]=_0x5c7c2b(0x1e3)+_0x23dd19+':'+_0x5d8b00+'@'+BS_API_URL+_0x5c7c2b(0x18e),_0x771d11[_0x5c7c2b(0x188)]=_0x1fffa0[_0x5c7c2b(0x1e4)];const _0x313855=_0x771d11,_0x4bd1c7=await _0x1fffa0[_0x5c7c2b(0x17e)](promisifiedRequest,_0x313855);_0x1fffa0[_0x5c7c2b(0x1a1)](_0x4bd1c7,null)&&_0x1fffa0[_0x5c7c2b(0x191)](_0x4bd1c7,undefined)&&_0x1fffa0['TjnqM'](_0x4bd1c7['statusCode'],0xc8)&&(_0x1fffa0[_0x5c7c2b(0x1a1)](_0x1fffa0[_0x5c7c2b(0x187)],_0x1fffa0[_0x5c7c2b(0x187)])?_0x16f673=_0x102cb7['env'][_0x5c7c2b(0x19b)]:_0x1f007b=!![]);if(_0x1f007b){if(_0x1fffa0[_0x5c7c2b(0x180)](_0x1fffa0['PZNdw'],_0x1fffa0[_0x5c7c2b(0x1de)]))_0x19609c=!![];else{let _0x15e130={};const _0x2df06b=_0x1fffa0['pSlMA'](getCredentialsPath);fs['existsSync'](_0x2df06b)&&(_0x1fffa0[_0x5c7c2b(0x1c3)](_0x1fffa0[_0x5c7c2b(0x1db)],_0x1fffa0['BZDjA'])?_0x15e130=JSON[_0x5c7c2b(0x19d)](fs[_0x5c7c2b(0x1d0)](_0x2df06b,_0x1fffa0[_0x5c7c2b(0x18d)])):_0x1819fc=_0x4a919a[_0x5c7c2b(0x194)]);const _0x31c00d={};_0x31c00d['username']=_0x23dd19,_0x31c00d[_0x5c7c2b(0x198)]=_0x5d8b00,_0x15e130[_0x5c7c2b(0x197)]=_0x31c00d,fs[_0x5c7c2b(0x1d5)](_0x2df06b,JSON[_0x5c7c2b(0x196)](_0x15e130)),process[_0x5c7c2b(0x1a3)](0x0);}}else logger[_0x5c7c2b(0x1ba)](_0x1fffa0[_0x5c7c2b(0x1e8)]),await _0x1fffa0[_0x5c7c2b(0x1ca)](sendInstrumentationEvent,_0x19c50c,_0x1fffa0[_0x5c7c2b(0x1be)],messageTypes[_0x5c7c2b(0x1c6)],_0x1fffa0[_0x5c7c2b(0x1cf)],null,_0x19c50c),process[_0x5c7c2b(0x1a3)](0x1);}catch(_0x12e427){logger[_0x5c7c2b(0x1ba)](_0x12e427['stack']),await _0x1fffa0[_0x5c7c2b(0x1c4)](sendInstrumentationEvent,_0x19c50c,_0x1fffa0[_0x5c7c2b(0x1be)],messageTypes['ERROR'],_0x1fffa0[_0x5c7c2b(0x1b3)],_0x12e427,_0x19c50c),process[_0x5c7c2b(0x1a3)](0x1);}};
@@ -1 +1 @@
1
- const a13_0x2b5887=a13_0x485e;function a13_0x3e6c(){const _0x241692=['316985QelUIy','8755480xceEXj','2004TXTBTE','usage','recommendCommands','2685490yhGCWs','5970714MmVigY','3222670VCQUkf','builder','list_commands','../config/constants','hlwZN','608SviEgz','handler','strict','9sWWjQw','2xzPmVH','3938501htwCxc','FgNUY','list','demandCommand','help'];a13_0x3e6c=function(){return _0x241692;};return a13_0x3e6c();}(function(_0x18e23d,_0x5e0862){const _0x2c2676=a13_0x485e,_0x3e1adf=_0x18e23d();while(!![]){try{const _0x2a191a=parseInt(_0x2c2676(0x1c2))/0x1*(parseInt(_0x2c2676(0x1d2))/0x2)+-parseInt(_0x2c2676(0x1c4))/0x3*(-parseInt(_0x2c2676(0x1ce))/0x4)+parseInt(_0x2c2676(0x1c7))/0x5+-parseInt(_0x2c2676(0x1c8))/0x6+-parseInt(_0x2c2676(0x1d3))/0x7+parseInt(_0x2c2676(0x1c3))/0x8+-parseInt(_0x2c2676(0x1d1))/0x9*(-parseInt(_0x2c2676(0x1c9))/0xa);if(_0x2a191a===_0x5e0862)break;else _0x3e1adf['push'](_0x3e1adf['shift']());}catch(_0x29f58c){_0x3e1adf['push'](_0x3e1adf['shift']());}}}(a13_0x3e6c,0xc6ddf));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x2b5887(0x1cc));function a13_0x485e(_0x546a92,_0x5aa631){const _0x3e6cc8=a13_0x3e6c();return a13_0x485e=function(_0x485ee2,_0x4f5d8d){_0x485ee2=_0x485ee2-0x1be;let _0x15970b=_0x3e6cc8[_0x485ee2];return _0x15970b;},a13_0x485e(_0x546a92,_0x5aa631);}exports['command']=a13_0x2b5887(0x1bf),exports['desc']='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0x2b5887(0x1ca)]=function(_0x563823){const _0x314865=a13_0x2b5887,_0x2a769f={};_0x2a769f['FgNUY']=_0x314865(0x1cb),_0x2a769f['hlwZN']=_0x314865(0x1c1);const _0x2b201b=_0x2a769f;return _0x563823['commandDir'](_0x2b201b[_0x314865(0x1be)])[_0x314865(0x1c0)]()[_0x314865(0x1c5)](HELP_HEADER_MESSAGE[_0x314865(0x1bf)]['root'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x314865(0x1c6)]()[_0x314865(0x1d0)]()[_0x314865(0x1c1)](_0x2b201b[_0x314865(0x1cd)]);},exports[a13_0x2b5887(0x1cf)]=function(_0x3f8225){};
1
+ function a13_0x30f1(_0x5d140e,_0x594586){const _0x52d4cf=a13_0x52d4();return a13_0x30f1=function(_0x30f18a,_0x27878d){_0x30f18a=_0x30f18a-0x6a;let _0x1bc2ed=_0x52d4cf[_0x30f18a];return _0x1bc2ed;},a13_0x30f1(_0x5d140e,_0x594586);}const a13_0x103ac8=a13_0x30f1;(function(_0x52f61e,_0x4f886b){const _0x5e09b3=a13_0x30f1,_0x4eb28a=_0x52f61e();while(!![]){try{const _0x40b58d=-parseInt(_0x5e09b3(0x6b))/0x1*(-parseInt(_0x5e09b3(0x80))/0x2)+parseInt(_0x5e09b3(0x7c))/0x3*(parseInt(_0x5e09b3(0x75))/0x4)+-parseInt(_0x5e09b3(0x76))/0x5+-parseInt(_0x5e09b3(0x83))/0x6+-parseInt(_0x5e09b3(0x73))/0x7*(parseInt(_0x5e09b3(0x6a))/0x8)+parseInt(_0x5e09b3(0x71))/0x9*(-parseInt(_0x5e09b3(0x6f))/0xa)+parseInt(_0x5e09b3(0x82))/0xb;if(_0x40b58d===_0x4f886b)break;else _0x4eb28a['push'](_0x4eb28a['shift']());}catch(_0x77549b){_0x4eb28a['push'](_0x4eb28a['shift']());}}}(a13_0x52d4,0x218ea));function a13_0x52d4(){const _0x55ed9d=['recommendCommands','130HOLhFg','List\x20down\x20the\x20Grid\x20resources.','11565BfGOts','desc','160762tRXUXh','demandCommand','136mcAVvg','1084685XeOste','gGAMa','epilogue','builder','list_commands','strict','4743OebcXx','list','jbfTW','handler','202910OqZzZG','help','3173852QxoTtO','298098bKFqNm','8OOMpSn','1YsWlcF','usage','commandDir'];a13_0x52d4=function(){return _0x55ed9d;};return a13_0x52d4();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a13_0x103ac8(0x7d),exports[a13_0x103ac8(0x72)]=a13_0x103ac8(0x70),exports[a13_0x103ac8(0x79)]=function(_0x5a3405){const _0x2733b1=a13_0x103ac8,_0x211a00={};_0x211a00['jbfTW']=_0x2733b1(0x7a),_0x211a00[_0x2733b1(0x77)]=_0x2733b1(0x81);const _0x4e4bf4=_0x211a00;return _0x5a3405[_0x2733b1(0x6d)](_0x4e4bf4[_0x2733b1(0x7e)])[_0x2733b1(0x74)]()[_0x2733b1(0x6c)](HELP_HEADER_MESSAGE[_0x2733b1(0x7d)]['root'])[_0x2733b1(0x78)](HELP_FOOTER_MESSAGE)[_0x2733b1(0x6e)]()[_0x2733b1(0x7b)]()['help'](_0x4e4bf4[_0x2733b1(0x77)]);},exports[a13_0x103ac8(0x7f)]=function(_0x5218b3){};
@@ -1 +1 @@
1
- const a14_0x430993=a14_0x2556;function a14_0x2556(_0x2a66f6,_0x48a3dc){const _0x5626b1=a14_0x5626();return a14_0x2556=function(_0x2556b7,_0x555797){_0x2556b7=_0x2556b7-0xf7;let _0x526dc3=_0x5626b1[_0x2556b7];return _0x526dc3;},a14_0x2556(_0x2a66f6,_0x48a3dc);}(function(_0x19b639,_0x317102){const _0x2df50f=a14_0x2556,_0x48de72=_0x19b639();while(!![]){try{const _0x35e489=parseInt(_0x2df50f(0x145))/0x1*(-parseInt(_0x2df50f(0xfb))/0x2)+parseInt(_0x2df50f(0x130))/0x3+parseInt(_0x2df50f(0xf9))/0x4+parseInt(_0x2df50f(0x101))/0x5*(parseInt(_0x2df50f(0x13b))/0x6)+-parseInt(_0x2df50f(0x144))/0x7*(parseInt(_0x2df50f(0x12b))/0x8)+parseInt(_0x2df50f(0x10a))/0x9+parseInt(_0x2df50f(0x107))/0xa*(parseInt(_0x2df50f(0x140))/0xb);if(_0x35e489===_0x317102)break;else _0x48de72['push'](_0x48de72['shift']());}catch(_0x1cddaf){_0x48de72['push'](_0x48de72['shift']());}}}(a14_0x5626,0xa4dbd));function a14_0x5626(){const _0x2670c3=['argv','ERROR','push','auth','handler','928670yCHynY','stringify','promisify','builder','../../utils/utilityMethods','VVdqz','170zzhfbM','GET','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','950202spkHpM','name','method','Browserstack','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','KLVST','https://','url','error','PVJwR','all-grid-profiles','type','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','unauthorised','server-error','../../config/constants','usage','bstackAccesskey','FvuoU','forEach','log','dLuQB','AnkuX','concurrency','exit','sTACi','OoDOR','grid-profiles','username','INFO','statusCode','epilogue','159792mXMzLB','description','Failed\x20to\x20list\x20resources!\x20Error:\x20','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','Rjlqr','340752WVLATs','AyxQG','YoWXQ','request','boolean','options','list-grid-profiles-called','unknown-error','password','uuid','desc','6nUOLUq','cloud-provider','command','eQlkI','dKlJX','246851LcbSbu','region','hmnvc','bstackUsername','42qSorvM','1693lrdRnw','/packages/cli/get-all-grid-profiles','requestId','parse','YdbkO','table','nHtfc','stack','346360jnLhtT','list','92PFHvfD'];a14_0x5626=function(){return _0x2670c3;};return a14_0x5626();}const fs=require('fs'),util=require('util'),request=require(a14_0x430993(0x133)),{table}=require(a14_0x430993(0x14a)),{v4:uuidv4}=require(a14_0x430993(0x139)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x430993(0x11a)),{getCredentialsPath}=require(a14_0x430993(0x105)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a14_0x430993(0x103)](request);exports[a14_0x430993(0x13d)]=a14_0x430993(0x126),exports[a14_0x430993(0x13a)]=a14_0x430993(0x12e),exports[a14_0x430993(0x104)]=function(_0x46aad9){const _0x3188c9=a14_0x430993,_0xabb05d={};_0xabb05d[_0x3188c9(0x114)]=_0x3188c9(0x10f),_0xabb05d['OoDOR']=_0x3188c9(0x134),_0xabb05d[_0x3188c9(0x120)]='help';const _0x2d7353=_0xabb05d,_0x3327a4={};_0x3327a4[_0x3188c9(0x12c)]=_0x2d7353[_0x3188c9(0x114)],_0x3327a4[_0x3188c9(0x116)]=_0x2d7353[_0x3188c9(0x125)];const _0x533cbf={};return _0x533cbf[_0x3188c9(0x115)]=_0x3327a4,_0x46aad9[_0x3188c9(0x11b)](HELP_HEADER_MESSAGE[_0x3188c9(0xfa)]['gridProfile'])[_0x3188c9(0x12a)](HELP_FOOTER_MESSAGE)[_0x3188c9(0x135)](_0x533cbf)['help'](_0x2d7353[_0x3188c9(0x120)])[_0x3188c9(0xfc)];},exports[a14_0x430993(0x100)]=async function(_0x354510){const _0x5a5ad5=a14_0x430993,_0x2871b7={'KLVST':function(_0x50dd2b){return _0x50dd2b();},'FvuoU':function(_0x3b74fd){return _0x3b74fd();},'ShugN':_0x5a5ad5(0x109),'AyxQG':function(_0x288242,_0x3910c8,_0x359afe,_0x233d54,_0x14a7a7,_0x370614,_0xa1b532){return _0x288242(_0x3910c8,_0x359afe,_0x233d54,_0x14a7a7,_0x370614,_0xa1b532);},'AnkuX':_0x5a5ad5(0x136),'YdbkO':'init-not-called','sTACi':_0x5a5ad5(0x108),'TUxPK':function(_0x115e40,_0x134183){return _0x115e40(_0x134183);},'hmnvc':function(_0x56a516,_0x4a4ffd){return _0x56a516!==_0x4a4ffd;},'Rjlqr':function(_0x142efe,_0x1b4cda){return _0x142efe===_0x1b4cda;},'eQlkI':_0x5a5ad5(0x10e),'nHtfc':'grid-profile-name','dKlJX':_0x5a5ad5(0x13c),'YoWXQ':_0x5a5ad5(0x141),'aVJhv':_0x5a5ad5(0x122),'VVdqz':_0x5a5ad5(0x118),'IyLiF':function(_0x136622,_0xc80abe,_0x5cd0f0,_0x250ad7,_0x3101e0,_0x112cc7,_0x3a4bca){return _0x136622(_0xc80abe,_0x5cd0f0,_0x250ad7,_0x3101e0,_0x112cc7,_0x3a4bca);},'gfqMo':_0x5a5ad5(0x119),'bcHRG':_0x5a5ad5(0x137)};try{global_registry[_0x5a5ad5(0x147)]=_0x2871b7['KLVST'](uuidv4);let _0x90a679='https://'+AG_API_URL+'/packages/cli/get-grid-profiles';_0x354510['allGridProfiles']&&(_0x90a679=_0x5a5ad5(0x111)+AG_API_URL+_0x5a5ad5(0x146));!fs['existsSync'](_0x2871b7[_0x5a5ad5(0x11d)](getCredentialsPath))&&(console['error'](_0x2871b7['ShugN']),await _0x2871b7['AyxQG'](sendInstrumentationEvent,_0x354510,_0x2871b7[_0x5a5ad5(0x121)],messageTypes[_0x5a5ad5(0xfd)],_0x2871b7[_0x5a5ad5(0x149)],null,_0x354510),process[_0x5a5ad5(0x123)](0x1));_0x2871b7[_0x5a5ad5(0x131)](sendInstrumentationEvent,_0x354510,_0x2871b7[_0x5a5ad5(0x121)],messageTypes[_0x5a5ad5(0x128)],null,null,_0x354510);const _0x1afb6c=JSON[_0x5a5ad5(0x148)](fs['readFileSync'](_0x2871b7[_0x5a5ad5(0x110)](getCredentialsPath))),_0x5a4259={};_0x5a4259[_0x5a5ad5(0x127)]=_0x1afb6c[_0x5a5ad5(0x10d)][_0x5a5ad5(0x127)],_0x5a4259['password']=_0x1afb6c[_0x5a5ad5(0x10d)]['password'];const _0x34120e={};_0x34120e[_0x5a5ad5(0x112)]=_0x90a679,_0x34120e[_0x5a5ad5(0x10c)]=_0x2871b7[_0x5a5ad5(0x124)],_0x34120e[_0x5a5ad5(0xff)]=_0x5a4259;const _0x5c2da9=_0x34120e;global_registry[_0x5a5ad5(0x143)]=_0x1afb6c['Browserstack'][_0x5a5ad5(0x127)],global_registry[_0x5a5ad5(0x11c)]=_0x1afb6c[_0x5a5ad5(0x10d)][_0x5a5ad5(0x138)];const _0x276e5a=await _0x2871b7['TUxPK'](promisifiedRequest,_0x5c2da9);if(_0x2871b7['hmnvc'](_0x276e5a,null)&&_0x2871b7[_0x5a5ad5(0x142)](_0x276e5a,undefined)&&_0x2871b7[_0x5a5ad5(0x12f)](_0x276e5a['statusCode'],0xc8)){const _0x5d154a=JSON['parse'](_0x276e5a['body']);console[_0x5a5ad5(0x11f)](_0x2871b7[_0x5a5ad5(0x13e)]);const _0x13805b=[];_0x13805b[_0x5a5ad5(0xfe)]([_0x2871b7[_0x5a5ad5(0xf7)],_0x2871b7[_0x5a5ad5(0x13f)],_0x2871b7[_0x5a5ad5(0x132)],_0x2871b7['aVJhv']]),_0x5d154a[_0x5a5ad5(0x11e)](_0x442821=>{const _0x3c6eb7=_0x5a5ad5;_0x13805b[_0x3c6eb7(0xfe)]([_0x442821[_0x3c6eb7(0x10b)],_0x442821['cloudProvider'],_0x442821[_0x3c6eb7(0x141)],_0x442821[_0x3c6eb7(0x122)]]);}),console[_0x5a5ad5(0x11f)](_0x2871b7['TUxPK'](table,_0x13805b)),process[_0x5a5ad5(0x123)](0x0);}_0x2871b7['Rjlqr'](_0x276e5a[_0x5a5ad5(0x129)],0x191)&&(console[_0x5a5ad5(0x113)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x2871b7[_0x5a5ad5(0x131)](sendInstrumentationEvent,_0x354510,_0x2871b7[_0x5a5ad5(0x121)],messageTypes[_0x5a5ad5(0xfd)],_0x2871b7[_0x5a5ad5(0x106)],null,_0x354510),process[_0x5a5ad5(0x123)](0x1)),console['error'](_0x5a5ad5(0x117)+JSON[_0x5a5ad5(0x102)](_0x276e5a)),await _0x2871b7['IyLiF'](sendInstrumentationEvent,_0x354510,_0x2871b7[_0x5a5ad5(0x121)],messageTypes[_0x5a5ad5(0xfd)],_0x2871b7['gfqMo'],_0x276e5a,_0x354510),process['exit'](0x1);}catch(_0x5863ca){console[_0x5a5ad5(0x113)](_0x5a5ad5(0x12d)+_0x5863ca[_0x5a5ad5(0xf8)]),await _0x2871b7['IyLiF'](sendInstrumentationEvent,_0x354510,_0x2871b7[_0x5a5ad5(0x121)],messageTypes[_0x5a5ad5(0xfd)],_0x2871b7['bcHRG'],_0x5863ca,_0x354510),process['exit'](0x1);}};
1
+ const a14_0x39ad88=a14_0x4771;(function(_0x176db1,_0x3e36d4){const _0x50df0d=a14_0x4771,_0x579069=_0x176db1();while(!![]){try{const _0x5e5884=parseInt(_0x50df0d(0x152))/0x1+-parseInt(_0x50df0d(0x13e))/0x2*(-parseInt(_0x50df0d(0x172))/0x3)+-parseInt(_0x50df0d(0x120))/0x4*(parseInt(_0x50df0d(0x150))/0x5)+-parseInt(_0x50df0d(0x15c))/0x6*(-parseInt(_0x50df0d(0x12f))/0x7)+-parseInt(_0x50df0d(0x141))/0x8*(parseInt(_0x50df0d(0x163))/0x9)+parseInt(_0x50df0d(0x11e))/0xa+parseInt(_0x50df0d(0x173))/0xb*(parseInt(_0x50df0d(0x154))/0xc);if(_0x5e5884===_0x3e36d4)break;else _0x579069['push'](_0x579069['shift']());}catch(_0xddd721){_0x579069['push'](_0x579069['shift']());}}}(a14_0x31bd,0x5278d));function a14_0x4771(_0x5a1122,_0x125675){const _0x31bdb2=a14_0x31bd();return a14_0x4771=function(_0x4771d0,_0x3bca7f){_0x4771d0=_0x4771d0-0x11d;let _0x404694=_0x31bdb2[_0x4771d0];return _0x404694;},a14_0x4771(_0x5a1122,_0x125675);}const fs=require('fs'),util=require(a14_0x39ad88(0x134)),request=require(a14_0x39ad88(0x12e)),{table}=require(a14_0x39ad88(0x12c)),{v4:uuidv4}=require(a14_0x39ad88(0x11d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x39ad88(0x160)),{getCredentialsPath}=require(a14_0x39ad88(0x124)),{sendInstrumentationEvent}=require(a14_0x39ad88(0x12d)),promisifiedRequest=util[a14_0x39ad88(0x138)](request);exports[a14_0x39ad88(0x15a)]=a14_0x39ad88(0x16b),exports[a14_0x39ad88(0x123)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x59d71a){const _0x29e572=a14_0x39ad88,_0x432f00={};_0x432f00[_0x29e572(0x127)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x432f00[_0x29e572(0x122)]=_0x29e572(0x15f),_0x432f00['VzEKv']=_0x29e572(0x142);const _0x3fe0ff=_0x432f00,_0x362180={};_0x362180[_0x29e572(0x148)]=_0x3fe0ff[_0x29e572(0x127)],_0x362180[_0x29e572(0x156)]=_0x3fe0ff['nNBot'];const _0x1bd84e={};return _0x1bd84e[_0x29e572(0x13d)]=_0x362180,_0x59d71a['usage'](HELP_HEADER_MESSAGE[_0x29e572(0x14b)][_0x29e572(0x145)])[_0x29e572(0x151)](HELP_FOOTER_MESSAGE)[_0x29e572(0x140)](_0x1bd84e)[_0x29e572(0x142)](_0x3fe0ff[_0x29e572(0x171)])[_0x29e572(0x157)];},exports[a14_0x39ad88(0x155)]=async function(_0x2ff7c9){const _0x234478=a14_0x39ad88,_0x38ddf7={'CSiRX':function(_0x46278b){return _0x46278b();},'eVEBE':function(_0x575109){return _0x575109();},'wNQEN':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','xUNni':function(_0x19ba9c,_0x437298,_0x238a85,_0x5918e8,_0x4079e7,_0x2407bf,_0x51e215){return _0x19ba9c(_0x437298,_0x238a85,_0x5918e8,_0x4079e7,_0x2407bf,_0x51e215);},'siiHX':_0x234478(0x159),'JNyXz':_0x234478(0x16e),'TPRsk':function(_0xb97540,_0x3e47f2,_0x3f85b1,_0x4e20fd,_0xe9ba5c,_0x121354,_0x5627df){return _0xb97540(_0x3e47f2,_0x3f85b1,_0x4e20fd,_0xe9ba5c,_0x121354,_0x5627df);},'bBshp':_0x234478(0x147),'GIBsa':function(_0x3ca39f,_0x241924){return _0x3ca39f(_0x241924);},'pUUZm':function(_0x4ecad2,_0x326d5e){return _0x4ecad2!==_0x326d5e;},'VYWpY':function(_0x96b84d,_0x34fd5f){return _0x96b84d!==_0x34fd5f;},'pNGnD':function(_0x59d64a,_0x9f0536){return _0x59d64a===_0x9f0536;},'cMUba':_0x234478(0x144),'VZrYb':'grid-profile-name','ytUnH':_0x234478(0x126),'lUNKJ':_0x234478(0x170),'HTttw':'concurrency','ZwCPN':function(_0x4f1ad2,_0x5be49c){return _0x4f1ad2(_0x5be49c);},'zotqr':function(_0xb728cc,_0x4c7716){return _0xb728cc===_0x4c7716;},'rEKGy':'unauthorised','BhiPv':_0x234478(0x166),'FreUc':function(_0xd53a3a,_0x179b8a,_0x33b9db,_0x2e11bc,_0x2ae6f8,_0x5cd46b,_0xcf9818){return _0xd53a3a(_0x179b8a,_0x33b9db,_0x2e11bc,_0x2ae6f8,_0x5cd46b,_0xcf9818);},'TfFqI':_0x234478(0x177)};try{global_registry[_0x234478(0x14f)]=_0x38ddf7[_0x234478(0x136)](uuidv4);let _0x2435f1='https://'+AG_API_URL+_0x234478(0x13a);_0x2ff7c9['allGridProfiles']&&(_0x2435f1=_0x234478(0x161)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs[_0x234478(0x158)](_0x38ddf7[_0x234478(0x13c)](getCredentialsPath))&&(console[_0x234478(0x130)](_0x38ddf7[_0x234478(0x121)]),await _0x38ddf7[_0x234478(0x12b)](sendInstrumentationEvent,_0x2ff7c9,_0x38ddf7[_0x234478(0x168)],messageTypes['ERROR'],_0x38ddf7[_0x234478(0x165)],null,_0x2ff7c9),process[_0x234478(0x175)](0x1));_0x38ddf7[_0x234478(0x178)](sendInstrumentationEvent,_0x2ff7c9,_0x38ddf7[_0x234478(0x168)],messageTypes[_0x234478(0x16a)],null,null,_0x2ff7c9);const _0x324862=JSON['parse'](fs[_0x234478(0x133)](_0x38ddf7[_0x234478(0x13c)](getCredentialsPath))),_0xdb4f79={};_0xdb4f79[_0x234478(0x125)]=_0x324862[_0x234478(0x15d)][_0x234478(0x125)],_0xdb4f79[_0x234478(0x13f)]=_0x324862[_0x234478(0x15d)][_0x234478(0x13f)];const _0x267733={};_0x267733[_0x234478(0x14c)]=_0x2435f1,_0x267733[_0x234478(0x174)]=_0x38ddf7[_0x234478(0x16f)],_0x267733[_0x234478(0x16c)]=_0xdb4f79;const _0x270067=_0x267733;global_registry[_0x234478(0x167)]=_0x324862['Browserstack'][_0x234478(0x125)],global_registry[_0x234478(0x162)]=_0x324862[_0x234478(0x15d)][_0x234478(0x13f)];const _0xe44149=await _0x38ddf7['GIBsa'](promisifiedRequest,_0x270067);if(_0x38ddf7[_0x234478(0x146)](_0xe44149,null)&&_0x38ddf7['VYWpY'](_0xe44149,undefined)&&_0x38ddf7[_0x234478(0x14a)](_0xe44149[_0x234478(0x169)],0xc8)){const _0x9d559b=JSON[_0x234478(0x16d)](_0xe44149[_0x234478(0x129)]);console[_0x234478(0x179)](_0x38ddf7['cMUba']);const _0x24afc0=[];_0x24afc0['push']([_0x38ddf7[_0x234478(0x132)],_0x38ddf7[_0x234478(0x153)],_0x38ddf7[_0x234478(0x11f)],_0x38ddf7[_0x234478(0x137)]]),_0x9d559b[_0x234478(0x128)](_0x32b1a8=>{const _0x559163=_0x234478;_0x24afc0[_0x559163(0x14e)]([_0x32b1a8[_0x559163(0x143)],_0x32b1a8[_0x559163(0x139)],_0x32b1a8[_0x559163(0x170)],_0x32b1a8[_0x559163(0x13b)]]);}),console[_0x234478(0x179)](_0x38ddf7[_0x234478(0x12a)](table,_0x24afc0)),process[_0x234478(0x175)](0x0);}_0x38ddf7[_0x234478(0x135)](_0xe44149[_0x234478(0x169)],0x191)&&(console[_0x234478(0x130)](_0x234478(0x15b)),await _0x38ddf7['xUNni'](sendInstrumentationEvent,_0x2ff7c9,_0x38ddf7['siiHX'],messageTypes[_0x234478(0x131)],_0x38ddf7['rEKGy'],null,_0x2ff7c9),process['exit'](0x1)),console[_0x234478(0x130)](_0x234478(0x15e)+JSON[_0x234478(0x14d)](_0xe44149)),await _0x38ddf7[_0x234478(0x12b)](sendInstrumentationEvent,_0x2ff7c9,_0x38ddf7[_0x234478(0x168)],messageTypes[_0x234478(0x131)],_0x38ddf7[_0x234478(0x164)],_0xe44149,_0x2ff7c9),process[_0x234478(0x175)](0x1);}catch(_0x5781bd){console[_0x234478(0x130)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5781bd['stack']),await _0x38ddf7[_0x234478(0x176)](sendInstrumentationEvent,_0x2ff7c9,_0x38ddf7[_0x234478(0x168)],messageTypes[_0x234478(0x131)],_0x38ddf7[_0x234478(0x149)],_0x5781bd,_0x2ff7c9),process[_0x234478(0x175)](0x1);}};function a14_0x31bd(){const _0x3d85f7=['12xThyZI','Browserstack','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','boolean','../../config/constants','https://','bstackAccesskey','384138GhTGDq','BhiPv','JNyXz','server-error','bstackUsername','siiHX','statusCode','INFO','grid-profiles','auth','parse','init-not-called','bBshp','region','VzEKv','1866bUjtyx','2307140iFkjrt','method','exit','FreUc','unknown-error','TPRsk','log','uuid','989690YyTUJJ','lUNKJ','491540ocigkO','wNQEN','nNBot','desc','../../utils/utilityMethods','username','cloud-provider','FUKZK','forEach','body','ZwCPN','xUNni','table','../../utils/instrumentationUtils','request','4900FShcBC','error','ERROR','VZrYb','readFileSync','util','zotqr','CSiRX','HTttw','promisify','cloudProvider','/packages/cli/get-grid-profiles','concurrency','eVEBE','all-grid-profiles','44MHvsDn','password','options','72wKQoio','help','name','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','gridProfile','pUUZm','GET','description','TfFqI','pNGnD','list','url','stringify','push','requestId','5FvggLQ','epilogue','521035hGGCpt','ytUnH','12aRBCoe','handler','type','argv','existsSync','list-grid-profiles-called','command','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'];a14_0x31bd=function(){return _0x3d85f7;};return a14_0x31bd();}