browserstack-node-sdk 1.26.4 → 1.26.5

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 (92) hide show
  1. package/ats/src/commands/configure.js +1 -1
  2. package/ats/src/commands/connect.js +1 -1
  3. package/ats/src/commands/connect_commands/grid.js +1 -1
  4. package/ats/src/commands/create.js +1 -1
  5. package/ats/src/commands/create_commands/grid.js +1 -1
  6. package/ats/src/commands/delete.js +1 -1
  7. package/ats/src/commands/delete_commands/grid.js +1 -1
  8. package/ats/src/commands/init.js +1 -1
  9. package/ats/src/commands/list.js +1 -1
  10. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  11. package/ats/src/commands/list_commands/grids.js +1 -1
  12. package/ats/src/config/constants.js +1 -1
  13. package/ats/src/config/logger.js +1 -1
  14. package/ats/src/index.js +1 -1
  15. package/ats/src/utils/AWSUtils.js +1 -1
  16. package/ats/src/utils/createAutoscalerStack.js +1 -1
  17. package/ats/src/utils/createClusterStack.js +1 -1
  18. package/ats/src/utils/createk8sClient.js +1 -1
  19. package/ats/src/utils/deleteStack.js +1 -1
  20. package/ats/src/utils/gridComponents.js +1 -1
  21. package/ats/src/utils/hstUtils.js +1 -1
  22. package/ats/src/utils/instrumentationUtils.js +1 -1
  23. package/ats/src/utils/userInput.js +1 -1
  24. package/ats/src/utils/utilityMethods.js +1 -1
  25. package/ats/src/utils/webSocketUtils.js +1 -1
  26. package/package.json +1 -1
  27. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  28. package/src/bin/codeceptjs/command.js +1 -1
  29. package/src/bin/cucumber-js/command.js +1 -1
  30. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  31. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  32. package/src/bin/cucumber-js/test.setup.js +1 -1
  33. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  34. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  35. package/src/bin/jest/command.js +1 -1
  36. package/src/bin/jest/customEnvironment.js +1 -1
  37. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  38. package/src/bin/jest/jest.setup.js +1 -1
  39. package/src/bin/jest/test_before.setup.js +1 -1
  40. package/src/bin/launcher/launcher.js +1 -1
  41. package/src/bin/mocha/accessibility-automation/constants.js +1 -1
  42. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  43. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  44. package/src/bin/mocha/command.js +1 -1
  45. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  46. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  47. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  48. package/src/bin/mocha/test.setup.js +1 -1
  49. package/src/bin/nightwatch/command.js +1 -1
  50. package/src/bin/playwright/command.js +1 -1
  51. package/src/bin/playwright/globalSetup.js +1 -1
  52. package/src/bin/playwright/mock-process.js +1 -1
  53. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  54. package/src/bin/playwright/reporter/reporter.js +1 -1
  55. package/src/bin/playwright/reporter/test-details.js +1 -1
  56. package/src/bin/runner.js +1 -1
  57. package/src/bin/setup.js +1 -1
  58. package/src/bin/test-runner/index.js +1 -1
  59. package/src/bin/test-runner/runTest.js +1 -1
  60. package/src/bin/test-runner/testWorker.js +1 -1
  61. package/src/bin/utils/constants.js +1 -1
  62. package/src/bin/utils/log4jsAppender.js +1 -1
  63. package/src/bin/utils/logPatcher.js +1 -1
  64. package/src/bin/utils/logReportingAPI.js +1 -1
  65. package/src/bin/vanilla-js/command.js +1 -1
  66. package/src/helpers/BrowserStackSetup.js +1 -1
  67. package/src/helpers/capsMapping.js +1 -1
  68. package/src/helpers/helper.js +1 -1
  69. package/src/helpers/logger.js +1 -1
  70. package/src/helpers/patchHelpers.js +1 -1
  71. package/src/helpers/request-spy.js +1 -1
  72. package/src/helpers/setKeepAlive.js +1 -1
  73. package/src/helpers/test-observability/constants.js +1 -1
  74. package/src/helpers/test-observability/error-handler.js +1 -1
  75. package/src/helpers/test-observability/performance-tester.js +1 -1
  76. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  77. package/src/helpers/test-observability/sessionHandler.js +1 -1
  78. package/src/helpers/test-observability/utils.js +1 -1
  79. package/src/helpers/w3cMapping.js +1 -1
  80. package/src/hubAllocationMethods.js +1 -1
  81. package/src/index.js +1 -1
  82. package/ats/src/cloudproviders/AWS.js +0 -1
  83. package/ats/src/cloudproviders/Azure.js +0 -1
  84. package/ats/src/cloudproviders/CloudProvider.js +0 -1
  85. package/ats/src/cloudproviders/utils.js +0 -1
  86. package/ats/src/templates/azureresources/akscluster.json +0 -127
  87. package/ats/src/templates/azureresources/azureInstancetypes.json +0 -759
  88. package/ats/src/templates/azureresources/federatedidentityhub.json +0 -50
  89. package/ats/src/templates/azureresources/federatedidentitynode.json +0 -50
  90. package/ats/src/templates/azureresources/managedidentity.json +0 -49
  91. package/ats/src/templates/azureresources/storageaccount.json +0 -92
  92. package/ats/src/templates/default-service-account.yaml +0 -5
@@ -1 +1 @@
1
- const a4_0x4d2265=a4_0x5832;(function(_0x4617d0,_0xb239fe){const _0x11a630=a4_0x5832,_0x1951d7=_0x4617d0();while(!![]){try{const _0x8dee38=-parseInt(_0x11a630(0x104))/0x1+-parseInt(_0x11a630(0x111))/0x2+-parseInt(_0x11a630(0xfe))/0x3+-parseInt(_0x11a630(0xef))/0x4*(-parseInt(_0x11a630(0x116))/0x5)+parseInt(_0x11a630(0x105))/0x6+parseInt(_0x11a630(0x149))/0x7+parseInt(_0x11a630(0xf5))/0x8;if(_0x8dee38===_0xb239fe)break;else _0x1951d7['push'](_0x1951d7['shift']());}catch(_0x1df938){_0x1951d7['push'](_0x1951d7['shift']());}}}(a4_0x341b,0x71733));function a4_0x5832(_0x36f21d,_0xb56e3e){const _0x341bfa=a4_0x341b();return a4_0x5832=function(_0x58327a,_0xdb7a23){_0x58327a=_0x58327a-0xe3;let _0x2f9885=_0x341bfa[_0x58327a];return _0x2f9885;},a4_0x5832(_0x36f21d,_0xb56e3e);}function a4_0x341b(){const _0x37ec6f=['nWRcc','existsSync','method','hxqDI','url','unknown-error','request','qQouo','promisify','3217158UmKbTH','epilogue','handler','YCmTp','../config/constants','PUT','QDxvU','active','configure-called','gVXEH','HtXBT','body','BZrGQ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','stack','Browserstack','2576dQnsCD','WtVbD','parse','GET','requestId','strict','3115456HmHcJx','core:','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','xyVSQ','name','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','exit','util','1047546WDkYCa','spOIB','wjrRx','toLowerCase','dMWxG','SJeWb','507315sxmHne','878910ykOJta','usage','username','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','LslfF','../utils/instrumentationUtils','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','list','command','stringify','ZNtmD','invalid-selection','82806AItKWe','init-not-called','../utils/utilityMethods','/packages/cli/configure','Updated\x20default\x20Grid\x20Profile\x20successfully','2850MOyBoJ','JkCsb','HWSLj','vOXpJ','error','RPgES','server-error','FHYiE','uuid','ERROR','FBEmD','INFO','ETvSq','YrvRy','tFOfw','invalid-input','https://','JFNXf','wuBnB','argv','iKtNz','eNtZa','\x20\x20grid-profile:\x20','json','profileId','qLiqu','statusCode','ASfmB','log','length','FsqzW','LBDdi','auth','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','builder','Failed\x20to\x20configure\x20resources!\x20Error:\x20','password','eGiYj','configure','dJbBZ','unauthorised','help'];a4_0x341b=function(){return _0x37ec6f;};return a4_0x341b();}const fs=require('fs'),util=require(a4_0x4d2265(0xfd)),request=require(a4_0x4d2265(0x146)),{v4:uuidv4}=require(a4_0x4d2265(0x11e)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a4_0x4d2265(0xe3)),{getCredentialsPath}=require(a4_0x4d2265(0x113)),{sendInstrumentationEvent}=require(a4_0x4d2265(0x10a)),promisifiedRequest=util[a4_0x4d2265(0x148)](request);exports[a4_0x4d2265(0x10d)]=a4_0x4d2265(0x13c),exports['desc']=a4_0x4d2265(0xfb),exports[a4_0x4d2265(0x138)]=function(_0x18d551){const _0x3c2109=a4_0x4d2265,_0x39ea36={};_0x39ea36[_0x3c2109(0x120)]='help';const _0x1396f8=_0x39ea36;return _0x18d551[_0x3c2109(0x106)](HELP_HEADER_MESSAGE['configure'])[_0x3c2109(0x14a)](HELP_FOOTER_MESSAGE)[_0x3c2109(0x13f)](_0x1396f8[_0x3c2109(0x120)])['recommendCommands']()[_0x3c2109(0xf4)]()[_0x3c2109(0x129)];},exports[a4_0x4d2265(0x14b)]=async function(_0x43f22d){const _0x3b891f=a4_0x4d2265,_0x101e83={'JkCsb':function(_0x5aae8a){return _0x5aae8a();},'dJbBZ':_0x3b891f(0xec),'aNdeJ':function(_0x326a5e,_0x3c35a6,_0x4393d3,_0x508503,_0x33e3ec,_0x75b67e,_0x12692b){return _0x326a5e(_0x3c35a6,_0x4393d3,_0x508503,_0x33e3ec,_0x75b67e,_0x12692b);},'HtXBT':_0x3b891f(0xe7),'FHYiE':_0x3b891f(0x112),'spOIB':function(_0x1134a3,_0x5e3fd4,_0x3193fa,_0x4e3ec5,_0x69267e,_0x1ed728,_0x19d6e4){return _0x1134a3(_0x5e3fd4,_0x3193fa,_0x4e3ec5,_0x69267e,_0x1ed728,_0x19d6e4);},'hJPeY':_0x3b891f(0xf2),'vOXpJ':function(_0x3f56c6,_0x2e04da){return _0x3f56c6(_0x2e04da);},'JFNXf':function(_0x4696eb,_0x528ee6){return _0x4696eb!==_0x528ee6;},'nWRcc':function(_0x2982fc,_0x16f0f9){return _0x2982fc===_0x16f0f9;},'ASfmB':_0x3b891f(0x137),'qQouo':_0x3b891f(0xf6),'xTqjY':function(_0x49994d,_0x5b56e3){return _0x49994d(_0x5b56e3);},'qLiqu':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','WtVbD':function(_0xf81925,_0x72a72b){return _0xf81925===_0x72a72b;},'xyVSQ':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','LslfF':function(_0x207601,_0x4aa954,_0x2afdfc,_0xf35602,_0x53d00c,_0x3487a0,_0x197283){return _0x207601(_0x4aa954,_0x2afdfc,_0xf35602,_0x53d00c,_0x3487a0,_0x197283);},'NHPQn':_0x3b891f(0x125),'gVXEH':function(_0x57fb0b,_0x223b9b){return _0x57fb0b===_0x223b9b;},'PUaJS':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','hxqDI':function(_0x33b3ef,_0xd04287){return _0x33b3ef<_0xd04287;},'ETvSq':function(_0x3c63e3,_0x49584c){return _0x3c63e3+_0x49584c;},'ZNtmD':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','dMWxG':function(_0x5f3677,_0x1242a9){return _0x5f3677(_0x1242a9);},'HWSLj':function(_0x21f40f,_0x9168fe){return _0x21f40f(_0x9168fe);},'RPgES':function(_0x27e970,_0x2ac3a0){return _0x27e970<=_0x2ac3a0;},'eGiYj':function(_0x1f9f5b,_0x3976e4){return _0x1f9f5b>_0x3976e4;},'YrvRy':function(_0x5e694b,_0x5d25c1,_0x3f4de1,_0x35f234,_0x40d87e,_0x1fa21d,_0x55593c){return _0x5e694b(_0x5d25c1,_0x3f4de1,_0x35f234,_0x40d87e,_0x1fa21d,_0x55593c);},'SJeWb':_0x3b891f(0x110),'LBDdi':function(_0x3563b0){return _0x3563b0();},'iKtNz':function(_0x325b7d,_0xb94904){return _0x325b7d-_0xb94904;},'FsqzW':_0x3b891f(0xe4),'eNtZa':function(_0x5b6fc5,_0x3a0a5d){return _0x5b6fc5!==_0x3a0a5d;},'wuBnB':function(_0x7b865d,_0x2ff748){return _0x7b865d!==_0x2ff748;},'KyQop':_0x3b891f(0x115),'BZrGQ':_0x3b891f(0x13e),'YCmTp':function(_0x56fd74,_0xd4c532,_0x3745cd,_0x467475,_0xa7d89d,_0x3ef621,_0x1d8203){return _0x56fd74(_0xd4c532,_0x3745cd,_0x467475,_0xa7d89d,_0x3ef621,_0x1d8203);},'tFOfw':_0x3b891f(0x11c),'fwwvd':function(_0x5ec6ac,_0x50086a,_0x105910,_0xe49bf0,_0x49bcc0,_0x6a0cbc,_0x390364){return _0x5ec6ac(_0x50086a,_0x105910,_0xe49bf0,_0x49bcc0,_0x6a0cbc,_0x390364);},'QDxvU':function(_0x36cab3,_0x573b4f,_0x51bd5a,_0x202dce,_0x22fcdf,_0x7b9a98,_0x200db0){return _0x36cab3(_0x573b4f,_0x51bd5a,_0x202dce,_0x22fcdf,_0x7b9a98,_0x200db0);},'KABuN':function(_0x315bd0,_0x4ffc11,_0x1ab4d5,_0xcb94fb,_0x2e1ec8,_0x25b242,_0x5204ca){return _0x315bd0(_0x4ffc11,_0x1ab4d5,_0xcb94fb,_0x2e1ec8,_0x25b242,_0x5204ca);},'wjrRx':_0x3b891f(0x145)};try{global_registry[_0x3b891f(0xf3)]=_0x101e83['JkCsb'](uuidv4);const _0x217089=_0x3b891f(0x126)+AG_API_URL+_0x3b891f(0x114);!fs[_0x3b891f(0x141)](_0x101e83[_0x3b891f(0x117)](getCredentialsPath))&&(console[_0x3b891f(0x11a)](_0x101e83[_0x3b891f(0x13d)]),await _0x101e83['aNdeJ'](sendInstrumentationEvent,_0x43f22d,_0x101e83[_0x3b891f(0xe9)],messageTypes[_0x3b891f(0x11f)],_0x101e83[_0x3b891f(0x11d)],null,_0x43f22d),process['exit'](0x1));await _0x101e83[_0x3b891f(0xff)](sendInstrumentationEvent,_0x43f22d,_0x101e83['HtXBT'],messageTypes[_0x3b891f(0x121)],null,null,_0x43f22d);const _0x28ac19=JSON[_0x3b891f(0xf1)](fs['readFileSync'](_0x101e83[_0x3b891f(0x117)](getCredentialsPath))),_0x24effc={};_0x24effc[_0x3b891f(0x107)]=_0x28ac19[_0x3b891f(0xee)][_0x3b891f(0x107)],_0x24effc[_0x3b891f(0x13a)]=_0x28ac19[_0x3b891f(0xee)][_0x3b891f(0x13a)];const _0x578a63={};_0x578a63[_0x3b891f(0x144)]=_0x217089,_0x578a63[_0x3b891f(0x142)]=_0x101e83['hJPeY'],_0x578a63['auth']=_0x24effc;const _0x173f0e=_0x578a63,_0x5d0764=await _0x101e83[_0x3b891f(0x119)](promisifiedRequest,_0x173f0e);if(_0x101e83[_0x3b891f(0x127)](_0x5d0764,null)&&_0x101e83[_0x3b891f(0x127)](_0x5d0764,undefined)&&_0x101e83[_0x3b891f(0x140)](_0x5d0764[_0x3b891f(0x130)],0xc8)){const _0x587ea8=JSON[_0x3b891f(0xf1)](_0x5d0764[_0x3b891f(0xea)]);console['log'](_0x101e83[_0x3b891f(0x131)]),console['log'](_0x101e83[_0x3b891f(0x147)]),console['log']('\x20\x20username:\x20'+_0x28ac19['Browserstack']['username']),console[_0x3b891f(0x132)](_0x3b891f(0x12c)+_0x587ea8[_0x3b891f(0xe6)][_0x3b891f(0xf9)]);const _0x54c613=await _0x101e83['xTqjY'](inputConfirmation,_0x101e83[_0x3b891f(0x12f)]);(_0x101e83['nWRcc'](_0x54c613,undefined)||_0x101e83['nWRcc'](_0x54c613,null)||!(_0x101e83['nWRcc'](_0x54c613['toLowerCase'](),'y')||_0x101e83[_0x3b891f(0xf0)](_0x54c613['toLowerCase'](),'n')))&&(console[_0x3b891f(0x11a)](_0x101e83[_0x3b891f(0xf8)]),await _0x101e83[_0x3b891f(0x109)](sendInstrumentationEvent,_0x43f22d,_0x101e83[_0x3b891f(0xe9)],messageTypes['ERROR'],_0x101e83['NHPQn'],null,_0x43f22d),process[_0x3b891f(0xfc)](0x1));_0x101e83[_0x3b891f(0xe8)](_0x54c613[_0x3b891f(0x101)](),'n')&&process[_0x3b891f(0xfc)](0x0);console[_0x3b891f(0x132)](_0x101e83['PUaJS']);const _0x193f47=_0x587ea8['list'][_0x3b891f(0x133)];for(let _0x1c868b=0x0;_0x101e83[_0x3b891f(0x143)](_0x1c868b,_0x193f47);_0x1c868b+=0x1){console[_0x3b891f(0x132)]('['+_0x101e83[_0x3b891f(0x122)](_0x1c868b,0x1)+']\x20'+_0x587ea8[_0x3b891f(0x10c)][_0x1c868b][_0x3b891f(0xf9)]);}const _0x59ff50=await _0x101e83['vOXpJ'](inputConfirmation,_0x101e83[_0x3b891f(0x10f)]),_0x7d0d60=_0x101e83[_0x3b891f(0x102)](Number,_0x59ff50);(_0x101e83[_0x3b891f(0x118)](isNaN,_0x7d0d60)||_0x101e83[_0x3b891f(0x11b)](_0x7d0d60,0x0)||_0x101e83[_0x3b891f(0x13b)](_0x7d0d60,_0x193f47))&&(console['error'](_0x101e83[_0x3b891f(0xf8)]),await _0x101e83[_0x3b891f(0x123)](sendInstrumentationEvent,_0x43f22d,_0x101e83[_0x3b891f(0xe9)],messageTypes[_0x3b891f(0x11f)],_0x101e83[_0x3b891f(0x103)],null,_0x43f22d),process['exit'](0x1));_0x101e83[_0x3b891f(0x135)](closeInput);const _0xfc093a=_0x587ea8['list'][_0x101e83[_0x3b891f(0x12a)](_0x7d0d60,0x1)]['id'],_0x5f1e05={};_0x5f1e05[_0x3b891f(0x107)]=_0x28ac19[_0x3b891f(0xee)][_0x3b891f(0x107)],_0x5f1e05['password']=_0x28ac19[_0x3b891f(0xee)][_0x3b891f(0x13a)];const _0x39fe90={};_0x39fe90[_0x3b891f(0x12e)]=_0xfc093a;const _0x376f49={};_0x376f49[_0x3b891f(0x144)]=_0x217089,_0x376f49[_0x3b891f(0x142)]=_0x101e83[_0x3b891f(0x134)],_0x376f49[_0x3b891f(0x136)]=_0x5f1e05,_0x376f49[_0x3b891f(0xea)]=_0x39fe90,_0x376f49[_0x3b891f(0x12d)]=!![];const _0x40d5b0=_0x376f49,_0x1b30ee=await _0x101e83['HWSLj'](promisifiedRequest,_0x40d5b0);_0x101e83[_0x3b891f(0x12b)](_0x1b30ee,null)&&_0x101e83[_0x3b891f(0x128)](_0x1b30ee,undefined)&&_0x101e83['nWRcc'](_0x1b30ee[_0x3b891f(0x130)],0xc8)&&(console[_0x3b891f(0x132)](_0x101e83['KyQop']),process[_0x3b891f(0xfc)](0x0)),_0x101e83[_0x3b891f(0xe8)](_0x1b30ee[_0x3b891f(0x130)],0x191)&&(console[_0x3b891f(0x11a)](_0x3b891f(0xf7)),await _0x101e83[_0x3b891f(0x123)](sendInstrumentationEvent,_0x43f22d,_0x101e83['HtXBT'],messageTypes[_0x3b891f(0x11f)],_0x101e83[_0x3b891f(0xeb)],null,_0x43f22d),process[_0x3b891f(0xfc)](0x1)),console[_0x3b891f(0x11a)](_0x3b891f(0x108)+JSON['stringify'](_0x1b30ee)),await _0x101e83[_0x3b891f(0x14c)](sendInstrumentationEvent,_0x43f22d,_0x101e83[_0x3b891f(0xe9)],messageTypes[_0x3b891f(0x11f)],_0x101e83[_0x3b891f(0x124)],_0x1b30ee,_0x43f22d),process[_0x3b891f(0xfc)](0x1);}_0x101e83[_0x3b891f(0x140)](_0x5d0764[_0x3b891f(0x130)],0x191)&&(console[_0x3b891f(0x11a)](_0x3b891f(0xfa)),await _0x101e83['fwwvd'](sendInstrumentationEvent,_0x43f22d,_0x101e83[_0x3b891f(0xe9)],messageTypes[_0x3b891f(0x11f)],_0x101e83[_0x3b891f(0xeb)],null,_0x43f22d),process[_0x3b891f(0xfc)](0x1)),console[_0x3b891f(0x11a)](_0x3b891f(0x10b)+JSON[_0x3b891f(0x10e)](_0x5d0764)),await _0x101e83[_0x3b891f(0xe5)](sendInstrumentationEvent,_0x43f22d,_0x101e83[_0x3b891f(0xe9)],messageTypes[_0x3b891f(0x11f)],_0x101e83[_0x3b891f(0x124)],_0x5d0764,_0x43f22d),process[_0x3b891f(0xfc)](0x1);}catch(_0x4afd01){console[_0x3b891f(0x11a)](_0x3b891f(0x139)+_0x4afd01[_0x3b891f(0xed)]),await _0x101e83['KABuN'](sendInstrumentationEvent,_0x43f22d,_0x101e83[_0x3b891f(0xe9)],messageTypes[_0x3b891f(0x11f)],_0x101e83[_0x3b891f(0x100)],_0x4afd01,_0x43f22d),process[_0x3b891f(0xfc)](0x1);}};
1
+ function a0_0x5dd4(_0x44e120,_0x15c297){const _0x305dd5=a0_0x305d();return a0_0x5dd4=function(_0x5dd458,_0x807380){_0x5dd458=_0x5dd458-0xa4;let _0x431dc6=_0x305dd5[_0x5dd458];return _0x431dc6;},a0_0x5dd4(_0x44e120,_0x15c297);}const a0_0x2b895d=a0_0x5dd4;(function(_0x15955f,_0x219a4f){const _0x3fa520=a0_0x5dd4,_0x2dc37f=_0x15955f();while(!![]){try{const _0x54d1a2=parseInt(_0x3fa520(0xba))/0x1+parseInt(_0x3fa520(0xeb))/0x2*(-parseInt(_0x3fa520(0xa4))/0x3)+parseInt(_0x3fa520(0xce))/0x4*(parseInt(_0x3fa520(0xed))/0x5)+-parseInt(_0x3fa520(0xdc))/0x6+parseInt(_0x3fa520(0xea))/0x7+parseInt(_0x3fa520(0xad))/0x8+-parseInt(_0x3fa520(0xe6))/0x9*(parseInt(_0x3fa520(0xbb))/0xa);if(_0x54d1a2===_0x219a4f)break;else _0x2dc37f['push'](_0x2dc37f['shift']());}catch(_0x257738){_0x2dc37f['push'](_0x2dc37f['shift']());}}}(a0_0x305d,0x2bf00));const fs=require('fs'),util=require(a0_0x2b895d(0xe1)),request=require(a0_0x2b895d(0xfe)),{v4:uuidv4}=require('uuid'),{inputConfirmation,closeInput}=require(a0_0x2b895d(0xec)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getCredentialsPath}=require(a0_0x2b895d(0xd7)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util[a0_0x2b895d(0xc6)](request);function a0_0x305d(){const _0x2fd98d=['6RTfhSd','bUElE','exit','SCyuG','auth','qyLwt','jzaCn','\x20\x20username:\x20','/packages/cli/configure','74048BfKRtV','body','configure-called','Sieqb','ERROR','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','username','YvrQg','usage','gvoOA','WOFXN','seTSc','iopmT','188013wWEjmu','20rKVBrW','handler','zNogU','invalid-input','name','strict','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','XXEpC','toLowerCase','VWfZF','JVVSS','promisify','password','readFileSync','NVYeY','epilogue','length','eJOBm','WPDvk','154268RPQkee','argv','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','sAysM','https://','PYOzy','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','unauthorised','core:','../utils/utilityMethods','fqZXp','PUT','unknown-error','invalid-selection','266676zZdzQB','qdPmg','log','init-not-called','stringify','util','bPyRh','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','url','243351nDwaWl','Browserstack','INFO','SSsGj','1383312eJNPYU','309228dnRLFU','../utils/userInput','25avrtmC','active','PYFuq','Xjvzu','configure','desc','vbofm','ZaUUu','method','statusCode','XRBho','existsSync','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','list','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','Failed\x20to\x20configure\x20resources!\x20Error:\x20','tCpxD','request','\x20\x20grid-profile:\x20','error','dxbGk'];a0_0x305d=function(){return _0x2fd98d;};return a0_0x305d();}exports['command']=a0_0x2b895d(0xf1),exports[a0_0x2b895d(0xf2)]=a0_0x2b895d(0xe3),exports['builder']=function(_0x585e9){const _0x16f0a1=a0_0x2b895d,_0x3ff442={};_0x3ff442['Sieqb']='help';const _0x3a99dd=_0x3ff442;return _0x585e9[_0x16f0a1(0xb5)](HELP_HEADER_MESSAGE['configure'])[_0x16f0a1(0xca)](HELP_FOOTER_MESSAGE)['help'](_0x3a99dd[_0x16f0a1(0xb0)])['recommendCommands']()[_0x16f0a1(0xc0)]()[_0x16f0a1(0xcf)];},exports[a0_0x2b895d(0xbc)]=async function(_0x314968){const _0x1cb870=a0_0x2b895d,_0x25c903={'Xjvzu':function(_0x342a3e){return _0x342a3e();},'FBEYE':function(_0x2a26e6){return _0x2a26e6();},'ziLmq':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YvrQg':function(_0x4025e4,_0x50c566,_0x24136,_0x4a7bdc,_0x56dde6,_0x1bfb3d,_0xb92bab){return _0x4025e4(_0x50c566,_0x24136,_0x4a7bdc,_0x56dde6,_0x1bfb3d,_0xb92bab);},'zNogU':_0x1cb870(0xaf),'WobTK':_0x1cb870(0xdf),'eJOBm':function(_0x33aa23,_0x14d63b,_0x6a07fc,_0x41701b,_0x29944f,_0x29fdc9,_0xd0ac0c){return _0x33aa23(_0x14d63b,_0x6a07fc,_0x41701b,_0x29944f,_0x29fdc9,_0xd0ac0c);},'qdPmg':function(_0x48a039){return _0x48a039();},'SSsGj':'GET','WOFXN':function(_0x10188f,_0x51634d){return _0x10188f(_0x51634d);},'gvoOA':function(_0x5f0ab0,_0x94a59d){return _0x5f0ab0!==_0x94a59d;},'iopmT':function(_0x576448,_0x1b8dbc){return _0x576448!==_0x1b8dbc;},'dxbGk':function(_0x156c1b,_0x4aa2ad){return _0x156c1b===_0x4aa2ad;},'NVYeY':_0x1cb870(0xfb),'PYOzy':_0x1cb870(0xd6),'PYFuq':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','WPDvk':function(_0x364df5,_0x447e76){return _0x364df5===_0x447e76;},'jzaCn':_0x1cb870(0xe4),'FuxHl':_0x1cb870(0xbe),'fqZXp':function(_0x35055a,_0x2adfe5){return _0x35055a===_0x2adfe5;},'xzKHT':_0x1cb870(0xd4),'tCpxD':function(_0x449b99,_0x34d52f){return _0x449b99<_0x34d52f;},'bUElE':function(_0x3c67b2,_0x3de2c8){return _0x3c67b2+_0x3de2c8;},'sAysM':function(_0x5b48a0,_0x3360e7){return _0x5b48a0(_0x3360e7);},'XXEpC':_0x1cb870(0xd0),'XRBho':function(_0x3791fb,_0x4eb3a6){return _0x3791fb(_0x4eb3a6);},'ldkQm':function(_0x2e2605,_0x1cb0ba){return _0x2e2605>_0x1cb0ba;},'qyLwt':_0x1cb870(0xdb),'zLLuZ':function(_0x4be16a,_0x5a7d4f){return _0x4be16a-_0x5a7d4f;},'hfNEV':_0x1cb870(0xd9),'vbofm':function(_0x430a44,_0x411ee9){return _0x430a44!==_0x411ee9;},'seTSc':function(_0xef57c1,_0x1f174e){return _0xef57c1!==_0x1f174e;},'wXsUG':'Updated\x20default\x20Grid\x20Profile\x20successfully','VWfZF':function(_0x5524be,_0x54e795,_0x78831e,_0x20c2b1,_0x24b20b,_0x288f45,_0x389576){return _0x5524be(_0x54e795,_0x78831e,_0x20c2b1,_0x24b20b,_0x288f45,_0x389576);},'bPyRh':_0x1cb870(0xd5),'ZaUUu':'server-error','JVVSS':function(_0x4b3968,_0x353d61){return _0x4b3968===_0x353d61;},'SCyuG':function(_0x5a39a6,_0x5436f2,_0x58e17b,_0x18e5e2,_0x3df120,_0x57c14c,_0x7b0b1b){return _0x5a39a6(_0x5436f2,_0x58e17b,_0x18e5e2,_0x3df120,_0x57c14c,_0x7b0b1b);},'yMgIp':_0x1cb870(0xda)};try{global_registry['requestId']=_0x25c903['Xjvzu'](uuidv4);const _0x200e2b=_0x1cb870(0xd2)+AG_API_URL+_0x1cb870(0xac);!fs[_0x1cb870(0xf8)](_0x25c903['FBEYE'](getCredentialsPath))&&(console[_0x1cb870(0x100)](_0x25c903['ziLmq']),await _0x25c903[_0x1cb870(0xb4)](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes[_0x1cb870(0xb1)],_0x25c903['WobTK'],null,_0x314968),process['exit'](0x1));await _0x25c903[_0x1cb870(0xcc)](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes[_0x1cb870(0xe8)],null,null,_0x314968);const _0x36eeb7=JSON['parse'](fs[_0x1cb870(0xc8)](_0x25c903[_0x1cb870(0xdd)](getCredentialsPath))),_0x207a7b={};_0x207a7b[_0x1cb870(0xb3)]=_0x36eeb7[_0x1cb870(0xe7)][_0x1cb870(0xb3)],_0x207a7b[_0x1cb870(0xc7)]=_0x36eeb7[_0x1cb870(0xe7)]['password'];const _0x8e80dd={};_0x8e80dd[_0x1cb870(0xe5)]=_0x200e2b,_0x8e80dd[_0x1cb870(0xf5)]=_0x25c903[_0x1cb870(0xe9)],_0x8e80dd[_0x1cb870(0xa8)]=_0x207a7b;const _0x27f65d=_0x8e80dd,_0x56aba4=await _0x25c903[_0x1cb870(0xb7)](promisifiedRequest,_0x27f65d);if(_0x25c903[_0x1cb870(0xb6)](_0x56aba4,null)&&_0x25c903[_0x1cb870(0xb9)](_0x56aba4,undefined)&&_0x25c903[_0x1cb870(0x101)](_0x56aba4[_0x1cb870(0xf6)],0xc8)){const _0x16927b=JSON['parse'](_0x56aba4['body']);console['log'](_0x25c903[_0x1cb870(0xc9)]),console[_0x1cb870(0xde)](_0x25c903[_0x1cb870(0xd3)]),console[_0x1cb870(0xde)](_0x1cb870(0xab)+_0x36eeb7['Browserstack'][_0x1cb870(0xb3)]),console[_0x1cb870(0xde)](_0x1cb870(0xff)+_0x16927b[_0x1cb870(0xee)][_0x1cb870(0xbf)]);const _0x362df4=await _0x25c903['WOFXN'](inputConfirmation,_0x25c903[_0x1cb870(0xef)]);(_0x25c903[_0x1cb870(0x101)](_0x362df4,undefined)||_0x25c903[_0x1cb870(0x101)](_0x362df4,null)||!(_0x25c903['dxbGk'](_0x362df4[_0x1cb870(0xc3)](),'y')||_0x25c903[_0x1cb870(0xcd)](_0x362df4[_0x1cb870(0xc3)](),'n')))&&(console[_0x1cb870(0x100)](_0x25c903[_0x1cb870(0xaa)]),await _0x25c903[_0x1cb870(0xcc)](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes['ERROR'],_0x25c903['FuxHl'],null,_0x314968),process[_0x1cb870(0xa6)](0x1));_0x25c903[_0x1cb870(0xd8)](_0x362df4['toLowerCase'](),'n')&&process[_0x1cb870(0xa6)](0x0);console[_0x1cb870(0xde)](_0x25c903['xzKHT']);const _0x288880=_0x16927b[_0x1cb870(0xfa)][_0x1cb870(0xcb)];for(let _0x1ef5b8=0x0;_0x25c903['tCpxD'](_0x1ef5b8,_0x288880);_0x1ef5b8+=0x1){console[_0x1cb870(0xde)]('['+_0x25c903[_0x1cb870(0xa5)](_0x1ef5b8,0x1)+']\x20'+_0x16927b[_0x1cb870(0xfa)][_0x1ef5b8][_0x1cb870(0xbf)]);}const _0x4c45fb=await _0x25c903[_0x1cb870(0xd1)](inputConfirmation,_0x25c903[_0x1cb870(0xc2)]),_0x3e62be=_0x25c903['sAysM'](Number,_0x4c45fb);(_0x25c903[_0x1cb870(0xf7)](isNaN,_0x3e62be)||_0x25c903[_0x1cb870(0xfd)](_0x3e62be,0x0)||_0x25c903['ldkQm'](_0x3e62be,_0x288880))&&(console[_0x1cb870(0x100)](_0x25c903[_0x1cb870(0xaa)]),await _0x25c903['YvrQg'](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes['ERROR'],_0x25c903[_0x1cb870(0xa9)],null,_0x314968),process[_0x1cb870(0xa6)](0x1));_0x25c903[_0x1cb870(0xf0)](closeInput);const _0x21ed75=_0x16927b[_0x1cb870(0xfa)][_0x25c903['zLLuZ'](_0x3e62be,0x1)]['id'],_0x410127={};_0x410127[_0x1cb870(0xb3)]=_0x36eeb7[_0x1cb870(0xe7)][_0x1cb870(0xb3)],_0x410127[_0x1cb870(0xc7)]=_0x36eeb7[_0x1cb870(0xe7)][_0x1cb870(0xc7)];const _0x13d9e0={};_0x13d9e0['profileId']=_0x21ed75;const _0x19f527={};_0x19f527[_0x1cb870(0xe5)]=_0x200e2b,_0x19f527[_0x1cb870(0xf5)]=_0x25c903['hfNEV'],_0x19f527['auth']=_0x410127,_0x19f527[_0x1cb870(0xae)]=_0x13d9e0,_0x19f527['json']=!![];const _0x90fc7c=_0x19f527,_0x3dd93b=await _0x25c903[_0x1cb870(0xb7)](promisifiedRequest,_0x90fc7c);_0x25c903[_0x1cb870(0xf3)](_0x3dd93b,null)&&_0x25c903[_0x1cb870(0xb8)](_0x3dd93b,undefined)&&_0x25c903['WPDvk'](_0x3dd93b[_0x1cb870(0xf6)],0xc8)&&(console[_0x1cb870(0xde)](_0x25c903['wXsUG']),process[_0x1cb870(0xa6)](0x0)),_0x25c903[_0x1cb870(0x101)](_0x3dd93b[_0x1cb870(0xf6)],0x191)&&(console[_0x1cb870(0x100)](_0x1cb870(0xc1)),await _0x25c903[_0x1cb870(0xc4)](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes[_0x1cb870(0xb1)],_0x25c903['bPyRh'],null,_0x314968),process[_0x1cb870(0xa6)](0x1)),console[_0x1cb870(0x100)](_0x1cb870(0xb2)+JSON[_0x1cb870(0xe0)](_0x3dd93b)),await _0x25c903[_0x1cb870(0xc4)](sendInstrumentationEvent,_0x314968,_0x25c903['zNogU'],messageTypes[_0x1cb870(0xb1)],_0x25c903[_0x1cb870(0xf4)],_0x3dd93b,_0x314968),process[_0x1cb870(0xa6)](0x1);}_0x25c903[_0x1cb870(0xc5)](_0x56aba4['statusCode'],0x191)&&(console[_0x1cb870(0x100)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x25c903[_0x1cb870(0xa7)](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes[_0x1cb870(0xb1)],_0x25c903[_0x1cb870(0xe2)],null,_0x314968),process['exit'](0x1)),console[_0x1cb870(0x100)](_0x1cb870(0xf9)+JSON[_0x1cb870(0xe0)](_0x56aba4)),await _0x25c903[_0x1cb870(0xa7)](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes[_0x1cb870(0xb1)],_0x25c903[_0x1cb870(0xf4)],_0x56aba4,_0x314968),process[_0x1cb870(0xa6)](0x1);}catch(_0x3db612){console[_0x1cb870(0x100)](_0x1cb870(0xfc)+_0x3db612['stack']),await _0x25c903[_0x1cb870(0xa7)](sendInstrumentationEvent,_0x314968,_0x25c903[_0x1cb870(0xbd)],messageTypes[_0x1cb870(0xb1)],_0x25c903['yMgIp'],_0x3db612,_0x314968),process[_0x1cb870(0xa6)](0x1);}};
@@ -1 +1 @@
1
- const a5_0x11f5ed=a5_0x4e6f;function a5_0x4e6f(_0x10882e,_0x100aa2){const _0x2208bb=a5_0x2208();return a5_0x4e6f=function(_0x4e6f7a,_0x4fa538){_0x4e6f7a=_0x4e6f7a-0x105;let _0x19b014=_0x2208bb[_0x4e6f7a];return _0x19b014;},a5_0x4e6f(_0x10882e,_0x100aa2);}function a5_0x2208(){const _0x595367=['11460bMQfjO','10nDmmfC','20JWdLuI','builder','strict','1608480WiJNLk','demandCommand','handler','SdsQw','693gmenWQ','13270qEYrki','command','1234312WADZle','desc','connect','18660sEdeuP','recommendCommands','2483253FzXzeR','connect_commands','Nwesc','139000rteItt'];a5_0x2208=function(){return _0x595367;};return a5_0x2208();}(function(_0x479292,_0x370cc1){const _0x4e0721=a5_0x4e6f,_0x322fe8=_0x479292();while(!![]){try{const _0x579c45=parseInt(_0x4e0721(0x10f))/0x1*(parseInt(_0x4e0721(0x117))/0x2)+parseInt(_0x4e0721(0x107))/0x3+-parseInt(_0x4e0721(0x119))/0x4+parseInt(_0x4e0721(0x112))/0x5+-parseInt(_0x4e0721(0x10d))/0x6*(parseInt(_0x4e0721(0x116))/0x7)+parseInt(_0x4e0721(0x10c))/0x8+-parseInt(_0x4e0721(0x109))/0x9*(-parseInt(_0x4e0721(0x10e))/0xa);if(_0x579c45===_0x370cc1)break;else _0x322fe8['push'](_0x322fe8['shift']());}catch(_0x94865e){_0x322fe8['push'](_0x322fe8['shift']());}}}(a5_0x2208,0x3e8f0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a5_0x11f5ed(0x118)]=a5_0x11f5ed(0x106),exports[a5_0x11f5ed(0x105)]='Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment',exports[a5_0x11f5ed(0x110)]=function(_0x3f9b8d){const _0x5f4afd=a5_0x11f5ed,_0x32aadc={};_0x32aadc['Nwesc']=_0x5f4afd(0x10a),_0x32aadc[_0x5f4afd(0x115)]='help';const _0x3ecb48=_0x32aadc;return _0x3f9b8d['usage'](HELP_HEADER_MESSAGE[_0x5f4afd(0x106)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x3ecb48[_0x5f4afd(0x10b)])[_0x5f4afd(0x113)]()[_0x5f4afd(0x108)]()[_0x5f4afd(0x111)]()['help'](_0x3ecb48[_0x5f4afd(0x115)]);},exports[a5_0x11f5ed(0x114)]=function(_0x1b1b2b){};
1
+ const a1_0x1cbe51=a1_0x5699;function a1_0xb207(){const _0x9281fa=['help','recommendCommands','demandCommand','connect','2RAiAWh','11196576MHOvQp','WjOEP','422650zuZzyV','52WFMJCq','9455PraCss','410894JWavbn','handler','15066585tkCcQL','command','uuJnU','1460pjQimP','commandDir','builder','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','desc','../config/constants','1431420NHhOUe','strict','usage','1308279keYmkq','18ODcNlw','connect_commands'];a1_0xb207=function(){return _0x9281fa;};return a1_0xb207();}function a1_0x5699(_0x3a3a10,_0x2805e8){const _0xb207c1=a1_0xb207();return a1_0x5699=function(_0x56991c,_0x167979){_0x56991c=_0x56991c-0xbb;let _0xbb165d=_0xb207c1[_0x56991c];return _0xbb165d;},a1_0x5699(_0x3a3a10,_0x2805e8);}(function(_0x5bc99f,_0x2de268){const _0x5c51ef=a1_0x5699,_0x4b4c47=_0x5bc99f();while(!![]){try{const _0x1106fd=-parseInt(_0x5c51ef(0xcf))/0x1*(parseInt(_0x5c51ef(0xd2))/0x2)+-parseInt(_0x5c51ef(0xc5))/0x3+parseInt(_0x5c51ef(0xd3))/0x4*(parseInt(_0x5c51ef(0xd4))/0x5)+-parseInt(_0x5c51ef(0xc9))/0x6*(parseInt(_0x5c51ef(0xc8))/0x7)+-parseInt(_0x5c51ef(0xd0))/0x8+-parseInt(_0x5c51ef(0xbc))/0x9+-parseInt(_0x5c51ef(0xbf))/0xa*(-parseInt(_0x5c51ef(0xd5))/0xb);if(_0x1106fd===_0x2de268)break;else _0x4b4c47['push'](_0x4b4c47['shift']());}catch(_0x4f9182){_0x4b4c47['push'](_0x4b4c47['shift']());}}}(a1_0xb207,0xe6815));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a1_0x1cbe51(0xc4));exports[a1_0x1cbe51(0xbd)]=a1_0x1cbe51(0xce),exports[a1_0x1cbe51(0xc3)]=a1_0x1cbe51(0xc2),exports[a1_0x1cbe51(0xc1)]=function(_0x30711f){const _0x4ff25d=a1_0x1cbe51,_0x28f6df={};_0x28f6df[_0x4ff25d(0xbe)]=_0x4ff25d(0xca),_0x28f6df[_0x4ff25d(0xd1)]=_0x4ff25d(0xcb);const _0x10666c=_0x28f6df;return _0x30711f[_0x4ff25d(0xc7)](HELP_HEADER_MESSAGE[_0x4ff25d(0xce)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4ff25d(0xc0)](_0x10666c[_0x4ff25d(0xbe)])[_0x4ff25d(0xcd)]()[_0x4ff25d(0xcc)]()[_0x4ff25d(0xc6)]()[_0x4ff25d(0xcb)](_0x10666c[_0x4ff25d(0xd1)]);},exports[a1_0x1cbe51(0xbb)]=function(_0x665157){};
@@ -1 +1 @@
1
- function a6_0x521d(_0x37b06d,_0x1e115a){const _0x329f5d=a6_0x329f();return a6_0x521d=function(_0x521da0,_0x5930d1){_0x521da0=_0x521da0-0xbd;let _0x58ad50=_0x329f5d[_0x521da0];return _0x58ad50;},a6_0x521d(_0x37b06d,_0x1e115a);}const a6_0x32be7b=a6_0x521d;function a6_0x329f(){const _0x2acfcc=['EAfve','string','rxrTi','Pass\x20the\x20ID\x20of\x20the\x20Grid','bstackAccesskey','grid','isTrialGrid','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','bstackUsername','vJSYM','error','oIUlL','PAuSc','YAEmZ','bstack-accesskey','wRXSa','Hxvbd','TMpEB','THqvw','TMBIm','Advance\x20options\x20for\x20Browserstack\x20Local','info','DrETm','description','advance-options','customRepeaters','browserStackLocalOptions','FRtLj','xouct','ahIEA','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Grid\x20type:\x20Trial','bstack-username','DFoIZ','248737bbSxUe','beforeExit','options','129SIMPSm','VRtWo','nFqGU','ilWHq','1415GebQTm','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','type','GFVqw','../../config/constants','builder','mpAAj','desc','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','ttCwi','BdDSh','../../config/logger','pGzKU','1194408NPkatS','YwCPt','exit','JGhMt','40BUgFBp','grid-id','accessKey','hSsZZ','fREaD','advanceOptions','gFbfI','kkUcr','18326UwErZF','qLjFT','true','WXpFQ','4796LPxEGK','66otfQCI','HoahG','nxrVe','isRunning','ATOdW','XGOgY','ckzZG','epilogue','create','SIGINT','VbXwA','46420mhnJSt','VqMCB','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','demandOption','SIGTERM','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','uNsnt','GsEVs','TGSWF','GHIEI','oTXto','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.','usage','323498epnSIR','argv','LLVVs','wePLq','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','help','CdXGF','huuWa','nbzeU','UOWIH','KXqHT','handler','SkvKA','useStaging','518940kjAKvS','use-staging','KANWA','216Hiuqyy','MecyC','XDtBe','qoqho','vOyfL'];a6_0x329f=function(){return _0x2acfcc;};return a6_0x329f();}(function(_0x27caad,_0x318756){const _0x1415a2=a6_0x521d,_0x8e2a14=_0x27caad();while(!![]){try{const _0x41ebda=parseInt(_0x1415a2(0xc8))/0x1+parseInt(_0x1415a2(0xe8))/0x2*(-parseInt(_0x1415a2(0xcb))/0x3)+-parseInt(_0x1415a2(0xec))/0x4*(-parseInt(_0x1415a2(0xcf))/0x5)+parseInt(_0x1415a2(0xdc))/0x6+parseInt(_0x1415a2(0x105))/0x7*(parseInt(_0x1415a2(0xe0))/0x8)+-parseInt(_0x1415a2(0x116))/0x9*(parseInt(_0x1415a2(0xf8))/0xa)+parseInt(_0x1415a2(0xed))/0xb*(-parseInt(_0x1415a2(0x113))/0xc);if(_0x41ebda===_0x318756)break;else _0x8e2a14['push'](_0x8e2a14['shift']());}catch(_0x20eea0){_0x8e2a14['push'](_0x8e2a14['shift']());}}}(a6_0x329f,0x3dd79));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x32be7b(0xd3)),{logger}=require(a6_0x32be7b(0xda)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');exports['command']=a6_0x32be7b(0x120),exports[a6_0x32be7b(0xd6)]=a6_0x32be7b(0xfa),exports[a6_0x32be7b(0xd4)]=_0x25eddb=>{const _0xc57100=a6_0x32be7b,_0x5c83cd={};_0x5c83cd[_0xc57100(0x12e)]=_0xc57100(0xc4),_0x5c83cd[_0xc57100(0xd2)]=_0xc57100(0x11c),_0x5c83cd[_0xc57100(0xf1)]=_0xc57100(0xfd),_0x5c83cd[_0xc57100(0x10b)]=_0xc57100(0x11e),_0x5c83cd['ilWHq']=_0xc57100(0x122),_0x5c83cd[_0xc57100(0x11b)]='Advance\x20options\x20for\x20Browserstack\x20Local',_0x5c83cd[_0xc57100(0xdd)]=_0xc57100(0x10a);const _0x112b49=_0x5c83cd,_0x1b2262={};_0x1b2262[_0xc57100(0xbd)]=_0x112b49[_0xc57100(0x12e)],_0x1b2262[_0xc57100(0xd1)]=_0x112b49[_0xc57100(0xd2)];const _0x3e2b46={};_0x3e2b46['description']=_0x112b49[_0xc57100(0xf1)],_0x3e2b46[_0xc57100(0xd1)]=_0x112b49[_0xc57100(0xd2)];const _0x25d8fa={};_0x25d8fa[_0xc57100(0xfb)]=!![],_0x25d8fa[_0xc57100(0xbd)]=_0x112b49[_0xc57100(0x10b)],_0x25d8fa[_0xc57100(0xd1)]=_0x112b49[_0xc57100(0xd2)];const _0x10b794={};_0x10b794['description']=_0x112b49[_0xc57100(0xce)],_0x10b794['type']=_0x112b49[_0xc57100(0xd2)];const _0x1736a7={};_0x1736a7[_0xc57100(0xbd)]=_0x112b49['EAfve'],_0x1736a7['type']=_0x112b49[_0xc57100(0xd2)];const _0x135c55={};return _0x135c55[_0xc57100(0xc6)]=_0x1b2262,_0x135c55[_0xc57100(0x129)]=_0x3e2b46,_0x135c55[_0xc57100(0xe1)]=_0x25d8fa,_0x135c55[_0xc57100(0x114)]=_0x10b794,_0x135c55[_0xc57100(0xbe)]=_0x1736a7,_0x25eddb[_0xc57100(0x104)](HELP_HEADER_MESSAGE[_0xc57100(0xf5)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x135c55)[_0xc57100(0x10a)](_0x112b49[_0xc57100(0xdd)])[_0xc57100(0x106)];},exports[a6_0x32be7b(0x110)]=async _0x21e3a8=>{const _0x4dba3b=a6_0x32be7b,_0x376556={'GsEVs':function(_0x4b9042,_0x204fd4){return _0x4b9042(_0x204fd4);},'MecyC':function(_0x344778,_0x4cb603){return _0x344778===_0x4cb603;},'Hxvbd':_0x4dba3b(0xef),'hSsZZ':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','VRtWo':_0x4dba3b(0x11c),'oTXto':_0x4dba3b(0xfd),'FRtLj':_0x4dba3b(0x11e),'huuWa':'Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','oIUlL':_0x4dba3b(0x12f),'fREaD':_0x4dba3b(0x10a),'BdDSh':function(_0x49bbb5,_0x4b3c5f){return _0x49bbb5==_0x4b3c5f;},'vJSYM':function(_0x50f2c7,_0x2c9016){return _0x50f2c7(_0x2c9016);},'xouct':function(_0xf5b19f,_0x3db72b){return _0xf5b19f(_0x3db72b);},'gFbfI':_0x4dba3b(0xc9),'HoahG':_0x4dba3b(0xf6),'nFqGU':_0x4dba3b(0xfc),'XGOgY':function(_0x52cd84,_0x21aeb5){return _0x52cd84(_0x21aeb5);},'LLVVs':function(_0x274284,_0x47baf3){return _0x274284===_0x47baf3;},'PAuSc':_0x4dba3b(0x10d),'ugUEW':_0x4dba3b(0xfe),'tmCOd':function(_0x4f661e,_0x352fdd){return _0x4f661e==_0x352fdd;},'GHIEI':function(_0x4e25dd,_0x5b8215){return _0x4e25dd==_0x5b8215;},'rxrTi':function(_0x354605,_0x3e84b9){return _0x354605(_0x3e84b9);},'CVvCR':function(_0x13a317,_0x547713){return _0x13a317(_0x547713);},'DFoIZ':function(_0x211edc,_0x204b66,_0xbcba7a){return _0x211edc(_0x204b66,_0xbcba7a);},'pGzKU':function(_0x279a48,_0xaa0b20){return _0x279a48&&_0xaa0b20;},'mpAAj':'vUvtP','QBVnZ':_0x4dba3b(0x108),'ckzZG':function(_0x52199a,_0x1915c3){return _0x52199a(_0x1915c3);},'UOWIH':function(_0x582a49,_0x305ee7,_0x32499a,_0x426b8c){return _0x582a49(_0x305ee7,_0x32499a,_0x426b8c);},'DrETm':function(_0x5d4426,_0x1452fb){return _0x5d4426===_0x1452fb;},'aqqYn':_0x4dba3b(0x115),'wRXSa':_0x4dba3b(0xe7),'FgSeV':_0x4dba3b(0xea),'qLjFT':function(_0x11f8be,_0x37d078){return _0x11f8be===_0x37d078;},'WXpFQ':_0x4dba3b(0xc3),'TMpEB':_0x4dba3b(0xf9),'ttCwi':function(_0x2014e3,_0x54ca28){return _0x2014e3===_0x54ca28;},'XDtBe':_0x4dba3b(0x10f),'VbXwA':function(_0x518638,_0x2babd0){return _0x518638(_0x2babd0);},'ryEvS':function(_0x1dde73,_0x5070a2){return _0x1dde73===_0x5070a2;},'THqvw':'rIemM'};let _0x1f68b2=_0x21e3a8[_0x4dba3b(0x123)],_0x3205fb=_0x21e3a8[_0x4dba3b(0x11f)],_0xff32d=_0x21e3a8[_0x4dba3b(0xe5)];const _0x43d106=_0xfcad68=>{const _0x19a32d=_0x4dba3b,_0x268b46={'qoqho':function(_0x31fab,_0x100097){return _0x376556['GsEVs'](_0x31fab,_0x100097);}};_0x376556[_0x19a32d(0x117)](_0x376556[_0x19a32d(0x12b)],_0x376556['Hxvbd'])?(logger[_0x19a32d(0x125)](_0xfcad68),process[_0x19a32d(0xde)](0x1)):_0x268b46[_0x19a32d(0x119)](_0x3a2335,'Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey');};[_0x1f68b2,_0x3205fb]=_0x376556[_0x4dba3b(0xc7)](fetchOrUpdateUserConfig,_0x1f68b2,_0x3205fb);if(!_0x376556[_0x4dba3b(0xdb)](_0x1f68b2,_0x3205fb)){if(_0x376556[_0x4dba3b(0x107)](_0x376556[_0x4dba3b(0xd5)],_0x376556['QBVnZ'])){const _0x13d1ff={};_0x13d1ff[_0x4dba3b(0xbd)]=_0x376556[_0x4dba3b(0xe3)],_0x13d1ff['type']=_0x376556['VRtWo'];const _0xcdca6d={};_0xcdca6d[_0x4dba3b(0xbd)]=_0x376556[_0x4dba3b(0x102)],_0xcdca6d[_0x4dba3b(0xd1)]=_0x376556['VRtWo'];const _0x499fd9={};_0x499fd9['demandOption']=!![],_0x499fd9[_0x4dba3b(0xbd)]=_0x376556[_0x4dba3b(0xc1)],_0x499fd9['type']=_0x376556[_0x4dba3b(0xcc)];const _0x42e775={};_0x42e775[_0x4dba3b(0xbd)]=_0x376556[_0x4dba3b(0x10c)],_0x42e775[_0x4dba3b(0xd1)]=_0x376556['VRtWo'];const _0x21b8ae={};_0x21b8ae[_0x4dba3b(0xbd)]=_0x376556[_0x4dba3b(0x126)],_0x21b8ae[_0x4dba3b(0xd1)]=_0x376556[_0x4dba3b(0xcc)];const _0x52d2d6={};return _0x52d2d6[_0x4dba3b(0xc6)]=_0x13d1ff,_0x52d2d6['bstack-accesskey']=_0xcdca6d,_0x52d2d6[_0x4dba3b(0xe1)]=_0x499fd9,_0x52d2d6[_0x4dba3b(0x114)]=_0x42e775,_0x52d2d6[_0x4dba3b(0xbe)]=_0x21b8ae,_0x5b7b85['usage'](_0x1109aa['create'])[_0x4dba3b(0xf4)](_0x3c9f8e)[_0x4dba3b(0xca)](_0x52d2d6)[_0x4dba3b(0x10a)](_0x376556[_0x4dba3b(0xe4)])[_0x4dba3b(0x106)];}else _0x376556[_0x4dba3b(0xf3)](_0x43d106,_0x4dba3b(0x109));}let _0xabdc27=_0x21e3a8['gridId'],_0x223bc7=await _0x376556[_0x4dba3b(0x10e)](getGridDetails,_0x1f68b2,_0x3205fb,_0xabdc27);if(!_0x223bc7){if(_0x376556[_0x4dba3b(0x131)](_0x376556['aqqYn'],_0x376556[_0x4dba3b(0x12a)])){const _0x32d218={'SkvKA':function(_0x4cde2e,_0x40dcbb){const _0x12b776=_0x4dba3b;return _0x376556[_0x12b776(0xd9)](_0x4cde2e,_0x40dcbb);},'YAEmZ':function(_0xde37d5,_0x6effc5){return _0x376556['vJSYM'](_0xde37d5,_0x6effc5);}};_0x29f3ed=_0x4dba3b(0xc5),_0xb74342[_0x4dba3b(0x130)](_0x7c7ed4);try{const _0x59383a={};_0x59383a[_0x4dba3b(0xe2)]=_0x1fd75a,_0x59383a['customRepeaters']=_0x1a9165[_0x4dba3b(0xbf)],_0x59383a[_0x4dba3b(0xc0)]=_0x3e19cc;const _0x5a9d08=_0x59383a,_0x2b9787=_0x376556[_0x4dba3b(0xc2)](_0x47f95e,_0x5a9d08);let _0x44a315=0x0;const _0x509d39=async()=>{const _0x3ed84a=_0x4dba3b;_0x44a315++,_0x32d218[_0x3ed84a(0x111)](_0x44a315,0x1)&&_0x2b9787&&_0x2b9787[_0x3ed84a(0xf0)]()&&_0x32d218[_0x3ed84a(0x128)](_0xdee21b,_0x2b9787);};_0x34340c['on'](_0x376556['gFbfI'],_0x509d39),_0x27d366['on'](_0x376556[_0x4dba3b(0xee)],_0x509d39),_0x47ce3f['on'](_0x376556[_0x4dba3b(0xcd)],_0x509d39),_0x36e662=_0x4dba3b(0x103),_0x27835b[_0x4dba3b(0x130)](_0xe7921f);}catch(_0x531ccc){_0x376556[_0x4dba3b(0xff)](_0xac2ab3,_0x4dba3b(0xd7));}}else _0x376556[_0x4dba3b(0x11d)](_0x43d106,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier');}let _0x1416d5=_0x376556['MecyC'](_0x21e3a8[_0x4dba3b(0x112)],_0x376556['FgSeV'])?!![]:![];if(_0x223bc7&&_0x223bc7[_0x4dba3b(0x121)]&&_0x1416d5){if(_0x376556[_0x4dba3b(0xe9)](_0x376556[_0x4dba3b(0xeb)],_0x376556[_0x4dba3b(0x12c)]))_0x45e704[_0x4dba3b(0x125)](_0x48e2fb),_0x46fdba[_0x4dba3b(0xde)](0x1);else{logMessage='Grid\x20type:\x20Trial',logger[_0x4dba3b(0x130)](logMessage);try{if(_0x376556[_0x4dba3b(0xd8)](_0x376556[_0x4dba3b(0x118)],_0x376556[_0x4dba3b(0x118)])){const _0x1123c2={};_0x1123c2[_0x4dba3b(0xe2)]=_0x3205fb,_0x1123c2[_0x4dba3b(0xbf)]=_0x223bc7[_0x4dba3b(0xbf)],_0x1123c2[_0x4dba3b(0xc0)]=_0xff32d;const _0xdbb18=_0x1123c2,_0x5e933b=_0x376556[_0x4dba3b(0xf7)](startLocalBinarySync,_0xdbb18);let _0x4375cc=0x0;const _0x21c8e1=async()=>{const _0x24f9f6=_0x4dba3b,_0x3187ca={'JGhMt':function(_0x33cea2,_0x3d585b){const _0x39fe21=a6_0x521d;return _0x376556[_0x39fe21(0xf2)](_0x33cea2,_0x3d585b);}};_0x376556['LLVVs'](_0x376556[_0x24f9f6(0x127)],_0x376556['ugUEW'])?_0x3187ca[_0x24f9f6(0xdf)](_0x1bb88c,_0x24f9f6(0xd0)):(_0x4375cc++,_0x376556['tmCOd'](_0x4375cc,0x1)&&_0x5e933b&&_0x5e933b[_0x24f9f6(0xf0)]()&&_0x376556[_0x24f9f6(0x124)](stopLocalBinary,_0x5e933b));};process['on'](_0x376556[_0x4dba3b(0xe6)],_0x21c8e1),process['on'](_0x376556[_0x4dba3b(0xee)],_0x21c8e1),process['on'](_0x376556['nFqGU'],_0x21c8e1),logMessage=_0x4dba3b(0x103),logger[_0x4dba3b(0x130)](logMessage);}else{const _0x21c7ee={'vOyfL':function(_0x100308,_0x1065dd){const _0x3944cc=_0x4dba3b;return _0x376556[_0x3944cc(0x101)](_0x100308,_0x1065dd);},'TGSWF':function(_0x2836c9,_0x475d71){const _0xbe0a80=_0x4dba3b;return _0x376556[_0xbe0a80(0x11d)](_0x2836c9,_0x475d71);}},_0x47d757={};_0x47d757[_0x4dba3b(0xe2)]=_0x13fb05,_0x47d757[_0x4dba3b(0xbf)]=_0x2a1e50[_0x4dba3b(0xbf)],_0x47d757[_0x4dba3b(0xc0)]=_0x5acd9d;const _0x35ff54=_0x47d757,_0x1fbccd=_0x376556['CVvCR'](_0x469514,_0x35ff54);let _0xa453dc=0x0;const _0x554c72=async()=>{const _0x1ccdb2=_0x4dba3b;_0xa453dc++,_0x21c7ee[_0x1ccdb2(0x11a)](_0xa453dc,0x1)&&_0x1fbccd&&_0x1fbccd[_0x1ccdb2(0xf0)]()&&_0x21c7ee[_0x1ccdb2(0x100)](_0x12a913,_0x1fbccd);};_0xec1d19['on'](_0x376556[_0x4dba3b(0xe6)],_0x554c72),_0x5b5ef6['on'](_0x376556[_0x4dba3b(0xee)],_0x554c72),_0x8d85fa['on'](_0x376556[_0x4dba3b(0xcd)],_0x554c72),_0x289d55='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.',_0x3626e3[_0x4dba3b(0x130)](_0x442ab2);}}catch(_0x700d00){_0x376556['ryEvS'](_0x376556[_0x4dba3b(0x12d)],_0x376556[_0x4dba3b(0x12d)])?_0x376556[_0x4dba3b(0xc2)](_0x43d106,_0x4dba3b(0xd7)):(_0x4ad74a++,_0x376556[_0x4dba3b(0xd9)](_0x28c857,0x1)&&_0x5ea228&&_0x1c8c98[_0x4dba3b(0xf0)]()&&_0x376556[_0x4dba3b(0xc2)](_0x5a8c07,_0x1f2249));}}}process['exit'](0x0);};
1
+ const a2_0x330651=a2_0xd1ce;function a2_0x40f7(){const _0x19039e=['vNrsx','aSmeR','error','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','1200260SMayEo','XzKnU','cmEkH','FubAb','type','XpeqS','30628653MnsVmT','MDolX','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','epilogue','create','qHBFC','pfBWc','tXtwu','1722693WkvIxW','IpJFZ','FoZNG','ofhFG','bstack-username','lmzkQ','tvGmj','584ULpOFn','zuwGl','DMuFJ','aSELr','QlpJr','yoUOy','advanceOptions','browserStackLocalOptions','description','VDUDj','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','LfLmb','isRunning','LMJRy','handler','Grid\x20type:\x20Trial','IjOjj','exit','usage','use-staging','nnmBz','ytElv','pUFUW','Pass\x20the\x20ID\x20of\x20the\x20Grid','SlXWC','iidCa','YIYDy','yOtXw','HzvPX','xeItP','dQzGF','1353wpYXHE','Advance\x20options\x20for\x20Browserstack\x20Local','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','TOYGf','gwYfH','iixkm','cYRWj','32RRwbSQ','beforeExit','PKWBq','SIGTERM','useStaging','1658rZWKYL','KjZAI','advance-options','customRepeaters','Bdaft','FbBEe','zRkRY','sOymH','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.','8556309zMSCAz','desc','bstackUsername','SIGINT','grid-id','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','info','argv','hxVYO','vftzJ','AZwhy','bstackAccesskey','18iSlraB','isTrialGrid','2721700MRAAqN','accessKey','../../utils/utilityMethods','options','bCrLC','JMPHf','builder','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','CkBOd','LrbZn','string','kFjGo','../../config/constants','20058sLVpUp','WnqSg'];a2_0x40f7=function(){return _0x19039e;};return a2_0x40f7();}function a2_0xd1ce(_0x35a28c,_0x205dfd){const _0x40f743=a2_0x40f7();return a2_0xd1ce=function(_0xd1ced6,_0x2885bb){_0xd1ced6=_0xd1ced6-0xee;let _0x2124ce=_0x40f743[_0xd1ced6];return _0x2124ce;},a2_0xd1ce(_0x35a28c,_0x205dfd);}(function(_0x1780e5,_0xf22cfd){const _0x551e4b=a2_0xd1ce,_0x22bdd5=_0x1780e5();while(!![]){try{const _0x44e383=parseInt(_0x551e4b(0x121))/0x1*(parseInt(_0x551e4b(0x12d))/0x2)+parseInt(_0x551e4b(0x152))/0x3*(parseInt(_0x551e4b(0x102))/0x4)+parseInt(_0x551e4b(0x158))/0x5*(-parseInt(_0x551e4b(0x142))/0x6)+parseInt(_0x551e4b(0xfb))/0x7*(parseInt(_0x551e4b(0x128))/0x8)+parseInt(_0x551e4b(0x136))/0x9+parseInt(_0x551e4b(0x144))/0xa+-parseInt(_0x551e4b(0xf3))/0xb;if(_0x44e383===_0xf22cfd)break;else _0x22bdd5['push'](_0x22bdd5['shift']());}catch(_0x1c490a){_0x22bdd5['push'](_0x22bdd5['shift']());}}}(a2_0x40f7,0xc36e1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a2_0x330651(0x151)),{logger}=require('../../config/logger'),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a2_0x330651(0x146));exports['command']='grid',exports[a2_0x330651(0x137)]=a2_0x330651(0xf5),exports[a2_0x330651(0x14a)]=_0x115b2c=>{const _0x32b8f4=a2_0x330651,_0x51ac60={};_0x51ac60[_0x32b8f4(0x118)]=_0x32b8f4(0x13b),_0x51ac60['tvGmj']=_0x32b8f4(0x14f),_0x51ac60[_0x32b8f4(0xfd)]=_0x32b8f4(0x123),_0x51ac60[_0x32b8f4(0x103)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x51ac60[_0x32b8f4(0x126)]=_0x32b8f4(0x14c),_0x51ac60[_0x32b8f4(0x13e)]=_0x32b8f4(0x122),_0x51ac60[_0x32b8f4(0x106)]='help';const _0x38c1fa=_0x51ac60,_0x5d093b={};_0x5d093b[_0x32b8f4(0x10a)]=_0x38c1fa['pUFUW'],_0x5d093b[_0x32b8f4(0xf1)]=_0x38c1fa[_0x32b8f4(0x101)];const _0x1c5653={};_0x1c5653[_0x32b8f4(0x10a)]=_0x38c1fa['FoZNG'],_0x1c5653[_0x32b8f4(0xf1)]=_0x38c1fa['tvGmj'];const _0x27ddb5={};_0x27ddb5['demandOption']=!![],_0x27ddb5[_0x32b8f4(0x10a)]=_0x38c1fa[_0x32b8f4(0x103)],_0x27ddb5[_0x32b8f4(0xf1)]=_0x38c1fa['tvGmj'];const _0x114561={};_0x114561[_0x32b8f4(0x10a)]=_0x38c1fa[_0x32b8f4(0x126)],_0x114561[_0x32b8f4(0xf1)]=_0x38c1fa[_0x32b8f4(0x101)];const _0x1b1b01={};_0x1b1b01[_0x32b8f4(0x10a)]=_0x38c1fa['hxVYO'],_0x1b1b01['type']=_0x38c1fa[_0x32b8f4(0x101)];const _0x118c02={};return _0x118c02[_0x32b8f4(0xff)]=_0x5d093b,_0x118c02['bstack-accesskey']=_0x1c5653,_0x118c02[_0x32b8f4(0x13a)]=_0x27ddb5,_0x118c02[_0x32b8f4(0x115)]=_0x114561,_0x118c02[_0x32b8f4(0x12f)]=_0x1b1b01,_0x115b2c[_0x32b8f4(0x114)](HELP_HEADER_MESSAGE['create'])[_0x32b8f4(0xf6)](HELP_FOOTER_MESSAGE)['options'](_0x118c02)['help'](_0x38c1fa[_0x32b8f4(0x106)])[_0x32b8f4(0x13d)];},exports[a2_0x330651(0x110)]=async _0x256a90=>{const _0x2fff0b=a2_0x330651,_0x2e875a={'LfLmb':function(_0x23fcf4,_0x141319){return _0x23fcf4(_0x141319);},'WnqSg':_0x2fff0b(0x129),'XzKnU':_0x2fff0b(0x139),'DMuFJ':_0x2fff0b(0x12b),'PKWBq':function(_0x21a0a7,_0x52f73e){return _0x21a0a7==_0x52f73e;},'xeItP':function(_0x4c63a3,_0x18c59d){return _0x4c63a3===_0x18c59d;},'qHBFC':'FTcHT','yOtXw':function(_0x2adda5,_0x2b8d59){return _0x2adda5(_0x2b8d59);},'cYRWj':function(_0x25a84e,_0x20be3d){return _0x25a84e(_0x20be3d);},'snFKC':_0x2fff0b(0x13b),'AZwhy':_0x2fff0b(0x14f),'IpJFZ':_0x2fff0b(0x123),'pfBWc':_0x2fff0b(0x119),'yoUOy':_0x2fff0b(0x14c),'YTlcG':_0x2fff0b(0x122),'ofhFG':'help','SlXWC':function(_0x5fdfa5,_0x3b67fe){return _0x5fdfa5(_0x3b67fe);},'JMPHf':function(_0x5dad4a,_0x520269){return _0x5dad4a===_0x520269;},'aSELr':_0x2fff0b(0x11c),'CkBOd':_0x2fff0b(0x100),'bCrLC':function(_0xa611f3,_0x32d25d){return _0xa611f3==_0x32d25d;},'nnmBz':function(_0x21e43a,_0x16e931){return _0x21e43a(_0x16e931);},'dQzGF':function(_0x5062c0,_0x43c314){return _0x5062c0==_0x43c314;},'SMhXz':function(_0x51357a,_0x296c3b){return _0x51357a(_0x296c3b);},'VDUDj':function(_0xf73682,_0x57c072,_0x433e81){return _0xf73682(_0x57c072,_0x433e81);},'MDolX':function(_0x4edba8,_0x9fa322){return _0x4edba8&&_0x9fa322;},'kFjGo':function(_0x389c39,_0x22cca6){return _0x389c39===_0x22cca6;},'wglln':_0x2fff0b(0x124),'HzvPX':_0x2fff0b(0x155),'XpeqS':function(_0x3ca64a,_0x46df7a){return _0x3ca64a(_0x46df7a);},'gwYfH':function(_0x48929f,_0x32cc5f,_0x24ec3a,_0x3a22f8){return _0x48929f(_0x32cc5f,_0x24ec3a,_0x3a22f8);},'LrbZn':function(_0x54288f,_0x924658){return _0x54288f!==_0x924658;},'ifUSG':_0x2fff0b(0x134),'XeyRx':_0x2fff0b(0x117),'IBHUo':function(_0x56d52a,_0x12f586){return _0x56d52a(_0x12f586);},'XtbBZ':function(_0x545501,_0x33c7d4){return _0x545501===_0x33c7d4;},'FubAb':'true','LMJRy':function(_0x3bc9d5,_0x47ccbe){return _0x3bc9d5!==_0x47ccbe;},'vNrsx':_0x2fff0b(0x112),'wVCUa':function(_0x515f6d,_0x144aa4){return _0x515f6d!==_0x144aa4;},'iayIH':_0x2fff0b(0x13f),'tXtwu':_0x2fff0b(0x131),'VbWYu':function(_0x12f298,_0x364af1){return _0x12f298(_0x364af1);},'iidCa':_0x2fff0b(0x133)};let _0x4d83e9=_0x256a90[_0x2fff0b(0x138)],_0x2d58aa=_0x256a90[_0x2fff0b(0x141)],_0x1da88f=_0x256a90[_0x2fff0b(0x108)];const _0x4b1e73=_0x1169c4=>{const _0x5122b0=_0x2fff0b,_0x3325d4={'cmEkH':function(_0x5eb1a8,_0x3e091e){const _0x2771ab=a2_0xd1ce;return _0x2e875a[_0x2771ab(0x12a)](_0x5eb1a8,_0x3e091e);},'KjZAI':function(_0x44279a,_0x396bd1){const _0x550b86=a2_0xd1ce;return _0x2e875a[_0x550b86(0x10d)](_0x44279a,_0x396bd1);}};if(_0x2e875a[_0x5122b0(0x11f)](_0x2e875a[_0x5122b0(0xf8)],_0x2e875a[_0x5122b0(0xf8)]))logger[_0x5122b0(0x156)](_0x1169c4),process[_0x5122b0(0x113)](0x1);else{_0x23a9b0=_0x5122b0(0x111),_0x2b60f3[_0x5122b0(0x13c)](_0x5db020);try{const _0x1bd0cb={};_0x1bd0cb[_0x5122b0(0x145)]=_0x46041f,_0x1bd0cb['customRepeaters']=_0x1a90f3[_0x5122b0(0x130)],_0x1bd0cb['browserStackLocalOptions']=_0x402de2;const _0x56f1f9=_0x1bd0cb,_0x2c4eed=_0x2e875a[_0x5122b0(0x10d)](_0x514d66,_0x56f1f9);let _0x5b8bf5=0x0;const _0x515336=async()=>{const _0xf893c3=_0x5122b0;_0x5b8bf5++,_0x3325d4[_0xf893c3(0xef)](_0x5b8bf5,0x1)&&_0x2c4eed&&_0x2c4eed[_0xf893c3(0x10e)]()&&_0x3325d4[_0xf893c3(0x12e)](_0x2cd54a,_0x2c4eed);};_0x3d7398['on'](_0x2e875a[_0x5122b0(0x153)],_0x515336),_0x3ea729['on'](_0x2e875a['XzKnU'],_0x515336),_0x4b545e['on'](_0x2e875a[_0x5122b0(0x104)],_0x515336),_0x31b1f9=_0x5122b0(0x135),_0x581d73['info'](_0x1e09fa);}catch(_0x57f05e){_0x2e875a[_0x5122b0(0x10d)](_0x32de8d,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}};[_0x4d83e9,_0x2d58aa]=_0x2e875a[_0x2fff0b(0x10b)](fetchOrUpdateUserConfig,_0x4d83e9,_0x2d58aa);if(!_0x2e875a[_0x2fff0b(0xf4)](_0x4d83e9,_0x2d58aa)){if(_0x2e875a[_0x2fff0b(0x150)](_0x2e875a['wglln'],_0x2e875a[_0x2fff0b(0x11e)])){const _0x47f15c={};_0x47f15c['accessKey']=_0x4c30a1,_0x47f15c[_0x2fff0b(0x130)]=_0x4d0542[_0x2fff0b(0x130)],_0x47f15c[_0x2fff0b(0x109)]=_0x51ffc1;const _0x33ace8=_0x47f15c,_0x37dab3=_0x2e875a[_0x2fff0b(0x127)](_0x5833c4,_0x33ace8);let _0x3fa5bc=0x0;const _0x577b6b=async()=>{const _0x321970=_0x2fff0b;_0x3fa5bc++,_0x2e875a[_0x321970(0x12a)](_0x3fa5bc,0x1)&&_0x37dab3&&_0x37dab3[_0x321970(0x10e)]()&&_0x2e875a[_0x321970(0x11d)](_0x53a90c,_0x37dab3);};_0x3bf8b4['on'](_0x2e875a['WnqSg'],_0x577b6b),_0x1dd0b8['on'](_0x2e875a[_0x2fff0b(0xee)],_0x577b6b),_0x4376fe['on'](_0x2e875a['DMuFJ'],_0x577b6b),_0x530935='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.',_0x28a7be[_0x2fff0b(0x13c)](_0x5994ef);}else _0x2e875a[_0x2fff0b(0xf2)](_0x4b1e73,_0x2fff0b(0x157));}let _0x70929c=_0x256a90['gridId'],_0xcf32ef=await _0x2e875a[_0x2fff0b(0x125)](getGridDetails,_0x4d83e9,_0x2d58aa,_0x70929c);if(!_0xcf32ef){if(_0x2e875a[_0x2fff0b(0x14e)](_0x2e875a['ifUSG'],_0x2e875a['XeyRx']))_0x2e875a['IBHUo'](_0x4b1e73,_0x2fff0b(0x10c));else{const _0x4a6ebe={};_0x4a6ebe['description']=_0x2e875a['snFKC'],_0x4a6ebe[_0x2fff0b(0xf1)]=_0x2e875a[_0x2fff0b(0x140)];const _0x1e1152={};_0x1e1152[_0x2fff0b(0x10a)]=_0x2e875a[_0x2fff0b(0xfc)],_0x1e1152[_0x2fff0b(0xf1)]=_0x2e875a[_0x2fff0b(0x140)];const _0x6e4d3b={};_0x6e4d3b['demandOption']=!![],_0x6e4d3b[_0x2fff0b(0x10a)]=_0x2e875a[_0x2fff0b(0xf9)],_0x6e4d3b[_0x2fff0b(0xf1)]=_0x2e875a[_0x2fff0b(0x140)];const _0x4d7c2f={};_0x4d7c2f[_0x2fff0b(0x10a)]=_0x2e875a[_0x2fff0b(0x107)],_0x4d7c2f[_0x2fff0b(0xf1)]=_0x2e875a[_0x2fff0b(0x140)];const _0x2c71e9={};_0x2c71e9['description']=_0x2e875a['YTlcG'],_0x2c71e9[_0x2fff0b(0xf1)]=_0x2e875a[_0x2fff0b(0x140)];const _0x35ad13={};return _0x35ad13[_0x2fff0b(0xff)]=_0x4a6ebe,_0x35ad13['bstack-accesskey']=_0x1e1152,_0x35ad13[_0x2fff0b(0x13a)]=_0x6e4d3b,_0x35ad13['use-staging']=_0x4d7c2f,_0x35ad13['advance-options']=_0x2c71e9,_0x6652e7[_0x2fff0b(0x114)](_0x520b63[_0x2fff0b(0xf7)])['epilogue'](_0xd25978)[_0x2fff0b(0x147)](_0x35ad13)['help'](_0x2e875a[_0x2fff0b(0xfe)])[_0x2fff0b(0x13d)];}}let _0x165811=_0x2e875a['XtbBZ'](_0x256a90[_0x2fff0b(0x12c)],_0x2e875a[_0x2fff0b(0xf0)])?!![]:![];if(_0xcf32ef&&_0xcf32ef[_0x2fff0b(0x143)]&&_0x165811){if(_0x2e875a[_0x2fff0b(0x10f)](_0x2e875a['vNrsx'],_0x2e875a[_0x2fff0b(0x154)]))_0xfa7e0[_0x2fff0b(0x156)](_0x1ade6b),_0x851adb[_0x2fff0b(0x113)](0x1);else{logMessage=_0x2fff0b(0x111),logger['info'](logMessage);try{if(_0x2e875a['wVCUa'](_0x2e875a['iayIH'],_0x2e875a[_0x2fff0b(0xfa)])){const _0x73e034={};_0x73e034['accessKey']=_0x2d58aa,_0x73e034[_0x2fff0b(0x130)]=_0xcf32ef[_0x2fff0b(0x130)],_0x73e034[_0x2fff0b(0x109)]=_0x1da88f;const _0x409d36=_0x73e034,_0x28bc9e=_0x2e875a['VbWYu'](startLocalBinarySync,_0x409d36);let _0x529d43=0x0;const _0x25b076=async()=>{const _0x22fd0a=_0x2fff0b,_0x212b4f={'FbBEe':function(_0x5ba4ba,_0x322a8f){const _0x25c9c6=a2_0xd1ce;return _0x2e875a[_0x25c9c6(0x11a)](_0x5ba4ba,_0x322a8f);}};_0x2e875a[_0x22fd0a(0x149)](_0x2e875a[_0x22fd0a(0x105)],_0x2e875a[_0x22fd0a(0x14d)])?_0x212b4f[_0x22fd0a(0x132)](_0xa2924b,_0x22fd0a(0x14b)):(_0x529d43++,_0x2e875a[_0x22fd0a(0x148)](_0x529d43,0x1)&&_0x28bc9e&&_0x28bc9e[_0x22fd0a(0x10e)]()&&_0x2e875a['nnmBz'](stopLocalBinary,_0x28bc9e));};process['on'](_0x2e875a[_0x2fff0b(0x153)],_0x25b076),process['on'](_0x2e875a[_0x2fff0b(0xee)],_0x25b076),process['on'](_0x2e875a['DMuFJ'],_0x25b076),logMessage=_0x2fff0b(0x135),logger[_0x2fff0b(0x13c)](logMessage);}else _0x2e875a[_0x2fff0b(0x116)](_0x244ac3,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier');}catch(_0x439ac5){_0x2e875a[_0x2fff0b(0x11f)](_0x2e875a[_0x2fff0b(0x11b)],_0x2e875a[_0x2fff0b(0x11b)])?_0x2e875a[_0x2fff0b(0x127)](_0x4b1e73,_0x2fff0b(0x14b)):(_0x48e668++,_0x2e875a[_0x2fff0b(0x120)](_0x2ec4fb,0x1)&&_0x20074c&&_0x29680e[_0x2fff0b(0x10e)]()&&_0x2e875a['SMhXz'](_0x185da6,_0x444138));}}}process['exit'](0x0);};
@@ -1 +1 @@
1
- const a7_0x2c1047=a7_0x28c1;function a7_0x28c1(_0x25519b,_0x1a19a6){const _0x28a379=a7_0x28a3();return a7_0x28c1=function(_0x28c18b,_0x2c1934){_0x28c18b=_0x28c18b-0x1d0;let _0x5cb023=_0x28a379[_0x28c18b];return _0x5cb023;},a7_0x28c1(_0x25519b,_0x1a19a6);}function a7_0x28a3(){const _0x2d7072=['strict','desc','2Uwueet','9XGzMdV','3820nobTlr','command','639KvdqaG','1490256ngQYwp','epilogue','310511LUzVUN','../config/constants','create','recommendCommands','NnQvW','7901159OaAsmg','builder','2079912zuJabu','1961550YmEluz','14531740aClmia','help','BScxT','handler','Create\x20a\x20new\x20Automation\x20grid.','demandCommand','create_commands'];a7_0x28a3=function(){return _0x2d7072;};return a7_0x28a3();}(function(_0x488def,_0x47a70a){const _0x535b72=a7_0x28c1,_0x56463c=_0x488def();while(!![]){try{const _0x27a766=parseInt(_0x535b72(0x1d5))/0x1*(parseInt(_0x535b72(0x1e7))/0x2)+-parseInt(_0x535b72(0x1d2))/0x3*(parseInt(_0x535b72(0x1d0))/0x4)+parseInt(_0x535b72(0x1dd))/0x5+parseInt(_0x535b72(0x1d3))/0x6+-parseInt(_0x535b72(0x1da))/0x7+-parseInt(_0x535b72(0x1dc))/0x8+-parseInt(_0x535b72(0x1e8))/0x9*(-parseInt(_0x535b72(0x1de))/0xa);if(_0x27a766===_0x47a70a)break;else _0x56463c['push'](_0x56463c['shift']());}catch(_0x199b5a){_0x56463c['push'](_0x56463c['shift']());}}}(a7_0x28a3,0xc64c6));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x2c1047(0x1d6));exports[a7_0x2c1047(0x1d1)]=a7_0x2c1047(0x1d7),exports[a7_0x2c1047(0x1e6)]=a7_0x2c1047(0x1e2),exports[a7_0x2c1047(0x1db)]=function(_0x607f4f){const _0x235d49=a7_0x2c1047,_0x1bbe18={};_0x1bbe18[_0x235d49(0x1d9)]=_0x235d49(0x1e4),_0x1bbe18[_0x235d49(0x1e0)]=_0x235d49(0x1df);const _0x4cd100=_0x1bbe18;return _0x607f4f['usage'](HELP_HEADER_MESSAGE['create'])[_0x235d49(0x1d4)](HELP_FOOTER_MESSAGE)['commandDir'](_0x4cd100[_0x235d49(0x1d9)])[_0x235d49(0x1e3)]()[_0x235d49(0x1d8)]()[_0x235d49(0x1e5)]()['help'](_0x4cd100[_0x235d49(0x1e0)]);},exports[a7_0x2c1047(0x1e1)]=function(_0x4eeebc){};
1
+ const a3_0x2156b0=a3_0x1d48;function a3_0x5d7e(){const _0x38504d=['9WjMuoR','9858020sHtIka','builder','962775HevGoN','82884CZOXGD','108845LVPRyB','gdVMn','epilogue','96UtPSMC','create_commands','Create\x20a\x20new\x20Automation\x20grid.','help','jtxVH','desc','3709536AFSyRw','commandDir','command','create','2tolMvU','3216uGIdpg','../config/constants','1150000kVyZwf','usage','demandCommand','strict','1246xzlOpX'];a3_0x5d7e=function(){return _0x38504d;};return a3_0x5d7e();}function a3_0x1d48(_0x3e220c,_0x39b0ac){const _0x5d7e56=a3_0x5d7e();return a3_0x1d48=function(_0x1d48a8,_0x3e5b5e){_0x1d48a8=_0x1d48a8-0xff;let _0x38f787=_0x5d7e56[_0x1d48a8];return _0x38f787;},a3_0x1d48(_0x3e220c,_0x39b0ac);}(function(_0x4a3d66,_0x534732){const _0x47f16a=a3_0x1d48,_0x14431a=_0x4a3d66();while(!![]){try{const _0x14fe99=parseInt(_0x47f16a(0x117))/0x1*(parseInt(_0x47f16a(0x10a))/0x2)+parseInt(_0x47f16a(0x116))/0x3*(parseInt(_0x47f16a(0x100))/0x4)+parseInt(_0x47f16a(0x10d))/0x5+parseInt(_0x47f16a(0x106))/0x6+-parseInt(_0x47f16a(0x111))/0x7*(-parseInt(_0x47f16a(0x10b))/0x8)+-parseInt(_0x47f16a(0x112))/0x9*(parseInt(_0x47f16a(0x113))/0xa)+-parseInt(_0x47f16a(0x115))/0xb;if(_0x14fe99===_0x534732)break;else _0x14431a['push'](_0x14431a['shift']());}catch(_0x556a73){_0x14431a['push'](_0x14431a['shift']());}}}(a3_0x5d7e,0x96fa2));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a3_0x2156b0(0x10c));exports[a3_0x2156b0(0x108)]=a3_0x2156b0(0x109),exports[a3_0x2156b0(0x105)]=a3_0x2156b0(0x102),exports[a3_0x2156b0(0x114)]=function(_0x34a2fc){const _0x136dbd=a3_0x2156b0,_0x6f52d6={};_0x6f52d6[_0x136dbd(0x104)]=_0x136dbd(0x101),_0x6f52d6[_0x136dbd(0x118)]=_0x136dbd(0x103);const _0x2a6842=_0x6f52d6;return _0x34a2fc[_0x136dbd(0x10e)](HELP_HEADER_MESSAGE[_0x136dbd(0x109)])[_0x136dbd(0xff)](HELP_FOOTER_MESSAGE)[_0x136dbd(0x107)](_0x2a6842[_0x136dbd(0x104)])[_0x136dbd(0x10f)]()['recommendCommands']()[_0x136dbd(0x110)]()[_0x136dbd(0x103)](_0x2a6842[_0x136dbd(0x118)]);},exports['handler']=function(_0x3ee645){};
@@ -1 +1 @@
1
- const a8_0x46451e=a8_0x942b;function a8_0x942b(_0x82257f,_0xf2ec85){const _0x241056=a8_0x2410();return a8_0x942b=function(_0x942b52,_0x4ce519){_0x942b52=_0x942b52-0x1ea;let _0x4741ad=_0x241056[_0x942b52];return _0x4741ad;},a8_0x942b(_0x82257f,_0xf2ec85);}(function(_0x2a90bc,_0x4c457e){const _0x3e4813=a8_0x942b,_0x168e80=_0x2a90bc();while(!![]){try{const _0x7cca33=parseInt(_0x3e4813(0x2e4))/0x1*(-parseInt(_0x3e4813(0x255))/0x2)+parseInt(_0x3e4813(0x206))/0x3+parseInt(_0x3e4813(0x226))/0x4+-parseInt(_0x3e4813(0x1ec))/0x5*(parseInt(_0x3e4813(0x301))/0x6)+-parseInt(_0x3e4813(0x230))/0x7*(-parseInt(_0x3e4813(0x289))/0x8)+parseInt(_0x3e4813(0x2e7))/0x9+-parseInt(_0x3e4813(0x290))/0xa*(parseInt(_0x3e4813(0x286))/0xb);if(_0x7cca33===_0x4c457e)break;else _0x168e80['push'](_0x168e80['shift']());}catch(_0x59145f){_0x168e80['push'](_0x168e80['shift']());}}}(a8_0x2410,0xeb249));function a8_0x2410(){const _0x4e9f3e=['7rnewQW','riHPi','instanceType','AEYQk','dZFhm','tvVQA','get-grid-url-non-200','alreadyPresent','clusterRegion','kuOlu','AGWOl','Adding\x20Websocket\x20listeners','md5','subnets','pdXFw','CCXVz','dlxAu','ApKhu','fNdvH','statusCode','gridProfile','ERROR','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','ofrmD','metadata','options','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','cMglV','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','xOWfc','jyOop','QQExU','FtftU','length','command','NkvOP','BrniR','6VkFvii','default','deleteCluster','XTqgh','CLI\x20run\x20started','9|7|3|8|4|0|11|6|2|5|1|10','fetchLocalCreds','turboscale-managed-identity-','ZDQCF','tYudK','route53','grid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zPBkh','KWnmU','eCrZm','https://','grid-spawning-failed','create-grid-checks-auth-failed','builder','vmxEZ','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','requestId','grid-name','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','\x20are\x20not\x20present\x20in\x20VPC:\x20','addListeners','EnTRR','EOFft','XguhL','VlDmh','name','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','/packages/cli/get-grid-url?gridUrl=','BBjPx','oPYKT','lalYb','kennZ','PoFjV','yipUt','jYNTe','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','request','gridProfiles','dTrdQ','UjVaK','defaultGridProfile','GrymD','ypRgA','11dVKTgg','11|1|8|2|10|4|7|5|3|9|6|0','bJCcI','8097664ijVIRA','NbDFJ','DrLfy','argv','non-aws-azure-cluster','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','gridProfileId','41946110HMJQME','parse','../../utils/createk8sClient','setupNewCluster','gridName','<PasswordPlaceholder>','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','2|8|1|3|4|5|7|0|6','replace','JuzsG','nDdDE','LbkFY','prespawned-cluster-args-not-passed','RDihP','isVPCPresent','GBTDr','exit','<UsernamePlaceholder>','bqxhX','concurrency','\x20in\x20existing\x20cluster\x20\x27','GET','vHhzr','method','GQFOi','s3bucket','goAnm','yFaqE','pre-spawned-subnets-not-selected','s3BucketName','create','annotations','ZUmIp','MStiU','Namespace\x20Created','oBEZo','Grid\x20spawned\x20on\x20the\x20cluster','vpc','WebSocket','configureIfNotConfigured','FyTTZ','vzHcA','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','CTcky','GVUea','uuid','readFileSync','sendEventToBackend','Create\x20a\x20new\x20Automation\x20grid.','IRmIa','bwejY','usage','cloudProvider','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.','body','securityGroups','../../utils/webSocketUtils','username','debug','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','hOJLG','CLI_RUN_STARTED','info','create-grid-called','region','vfrPc','cluster-name','sYCIm','hRTVv','HlHvP','BhYRj','hNCvm','description','getResourceClientId','auth','toODl','UpguV','LuQoI','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','yjyjj','QsYfU','3|0|1|2|4','JLxrv','../../utils/instrumentationUtils','65129UuhIHe','help','uTwFO','13616073ycmNUp','sbgMM','create-grid-checks-non-200','edpwS','DRVHj','../../utils/utilityMethods','get-grid-url-null-response','clusterName','Spawning\x20grid\x20on\x20to\x20the\x20cluster','eTePn','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','LwDnn','../../config/constants','tQoCd','bYmDb','delay','then','pre-spawned-invalid-vpc','toLowerCase','GWaWS','BMjSt','browserVersion','DpAYK','readNamespacedService','Subnets:\x20','../../utils/userInput','522AiQDwd','qVkfH','MGJXC','epilogue','axUFP','createOtherResources','setupAutoscaler','util','nrJEW','heOrD','message','RNOyC','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','XJQJi','CLI\x20run\x20finished:\x20','38005CuaKrO','YjlOx','Cluster\x20','create-grid-checks-null-response','equrg','includes','create-grid-checks-grid-already-exists','TqjBN','Namespace\x20created','BdzZv','s3Bucket','QDYTN','hubVersion','user','Found\x20Subnets:\x20','yoZUU','WiwMv','KzQrH','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','get-grid-url-auth-failed','FpFIQ','promisify','LOG','isSubnetsValid',':4444/wd/hub','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','5566845Tomlyr','\x20using\x20\x27','ChnZx','dgnjm','password','kqMMg','Cluster\x20created\x20successfully','error','bstackAccesskey','\x27\x20grid\x20profile','createNamespace','createdBy','PGTRI','VJEQj','Found\x20VPC:\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','zujfb','managedBy','Spawning\x20the\x20grid\x20','vsjCS','QhNLG','writeFileSync','type','nDqtJ','akXKm','pre-spawned-invalid-subnets','../../config/logger','Grid\x20profile\x20fetched\x20from\x20backend','Browserstack','Deleting\x20the\x20CloudFormation\x20Stacks','grid-profile','/packages/cli/create-grid-checks','6534840yEQBGw','NFPXg','jyfoG','QYXGh','split','htbGj','cloud-provider','NZzrc','stringify','fdJoq'];a8_0x2410=function(){return _0x4e9f3e;};return a8_0x2410();}const fs=require('fs'),ws=require('ws'),util=require(a8_0x46451e(0x308)),md5=require(a8_0x46451e(0x23c)),ReconnectingWebSocket=require('reconnecting-websocket'),request=require(a8_0x46451e(0x27f)),{v4:uuidv4}=require(a8_0x46451e(0x2bd)),webSocketUtils=require(a8_0x46451e(0x2c8)),{logger}=require(a8_0x46451e(0x220)),{inputCloudProviderKeys}=require(a8_0x46451e(0x300)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a8_0x46451e(0x2ec)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{addGridComponents,removeGridComponents}=require('../../utils/gridComponents'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE}=require(a8_0x46451e(0x2f3)),{createK8sClient}=require(a8_0x46451e(0x292)),{sendInstrumentationEvent}=require(a8_0x46451e(0x2e3)),promisifiedRequest=util[a8_0x46451e(0x201)](request);exports[a8_0x46451e(0x252)]=a8_0x46451e(0x260),exports['desc']=a8_0x46451e(0x2c0),exports[a8_0x46451e(0x268)]=function(_0x53ddae){const _0x51435d=a8_0x46451e,_0x5c1532={};_0x5c1532[_0x51435d(0x2d6)]=_0x51435d(0x27e),_0x5c1532[_0x51435d(0x263)]='string',_0x5c1532[_0x51435d(0x1f0)]=_0x51435d(0x2f1),_0x5c1532[_0x51435d(0x28b)]=_0x51435d(0x26d),_0x5c1532['xPnNk']=_0x51435d(0x296),_0x5c1532[_0x51435d(0x253)]=_0x51435d(0x215),_0x5c1532['qVkfH']=_0x51435d(0x2e5);const _0x1d58a0=_0x5c1532,_0x373a2b={};_0x373a2b[_0x51435d(0x2d8)]=_0x1d58a0[_0x51435d(0x2d6)],_0x373a2b[_0x51435d(0x21c)]=_0x1d58a0[_0x51435d(0x263)];const _0x55b1cd={};_0x55b1cd['description']=_0x1d58a0[_0x51435d(0x1f0)],_0x55b1cd[_0x51435d(0x21c)]=_0x1d58a0['KWnmU'];const _0x3db5cb={};_0x3db5cb[_0x51435d(0x2d8)]=_0x1d58a0[_0x51435d(0x28b)],_0x3db5cb[_0x51435d(0x21c)]=_0x1d58a0['KWnmU'];const _0x27a1c3={};_0x27a1c3[_0x51435d(0x2d8)]=_0x1d58a0['xPnNk'],_0x27a1c3[_0x51435d(0x21c)]=_0x1d58a0[_0x51435d(0x263)];const _0x1a2f02={};_0x1a2f02[_0x51435d(0x2d8)]=_0x1d58a0['NkvOP'],_0x1a2f02['type']=_0x1d58a0[_0x51435d(0x263)];const _0x34be88={};return _0x34be88['grid-name']=_0x373a2b,_0x34be88[_0x51435d(0x224)]=_0x55b1cd,_0x34be88['cluster-name']=_0x3db5cb,_0x34be88[_0x51435d(0x22c)]=_0x27a1c3,_0x34be88[_0x51435d(0x2d0)]=_0x1a2f02,_0x53ddae[_0x51435d(0x2c3)](HELP_HEADER_MESSAGE[_0x51435d(0x2ae)])[_0x51435d(0x304)](HELP_FOOTER_MESSAGE)[_0x51435d(0x249)](_0x34be88)[_0x51435d(0x2e5)](_0x1d58a0[_0x51435d(0x302)])[_0x51435d(0x28c)];},exports['handler']=async function(_0x5bf3d7){const _0x56cfbb=a8_0x46451e,_0x2a3684={'RNOyC':'error','yoZUU':_0x56cfbb(0x25a),'vHhzr':function(_0x38ee9d,_0x48fd4a,_0x43229f,_0x33c0f7,_0x28c7bb,_0x1139cb,_0x2d7ebf,_0xc3c4b2,_0xc35d12,_0x5e07ab){return _0x38ee9d(_0x48fd4a,_0x43229f,_0x33c0f7,_0x28c7bb,_0x1139cb,_0x2d7ebf,_0xc3c4b2,_0xc35d12,_0x5e07ab);},'LkOnO':'warn','QsYfU':_0x56cfbb(0x275),'dLxsL':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','dgnjm':'string','VJEQj':_0x56cfbb(0x2f1),'bYmDb':_0x56cfbb(0x26d),'RDihP':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','eTePn':_0x56cfbb(0x215),'BBjPx':_0x56cfbb(0x2e5),'khHaJ':'4|8|1|0|3|5|2|6|7','sbgMM':function(_0x54598b,_0x185494){return _0x54598b(_0x185494);},'vfrPc':function(_0x444554,_0x137804){return _0x444554==_0x137804;},'oiupT':function(_0x463ca3,_0x7337){return _0x463ca3==_0x7337;},'AEYQk':_0x56cfbb(0x28e),'PGTRI':function(_0x31fff8,_0x49e8e6,_0x1a501a,_0x12797c,_0x29a4d5,_0x45b081,_0x4d58ac,_0x8e9c01){return _0x31fff8(_0x49e8e6,_0x1a501a,_0x12797c,_0x29a4d5,_0x45b081,_0x4d58ac,_0x8e9c01);},'TqjBN':_0x56cfbb(0x2cf),'VhWTB':_0x56cfbb(0x2ed),'MGJXC':function(_0x35daee,_0x4cc35d){return _0x35daee===_0x4cc35d;},'dPOTl':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','vsjCS':function(_0x39b779,_0x537b61,_0x2469fb,_0x1d6981,_0x562cf1,_0x1e812e,_0x115436,_0xecc32){return _0x39b779(_0x537b61,_0x2469fb,_0x1d6981,_0x562cf1,_0x1e812e,_0x115436,_0xecc32);},'KizgL':_0x56cfbb(0x1ff),'VlDmh':function(_0x5f1f12,_0x493628){return _0x5f1f12!==_0x493628;},'pVnZD':_0x56cfbb(0x236),'xOWfc':function(_0x381b34){return _0x381b34();},'vzHcA':function(_0x4e4dfb){return _0x4e4dfb();},'nrJEW':function(_0x441889,_0x44eed8){return _0x441889===_0x44eed8;},'LuQoI':_0x56cfbb(0x2d5),'YjlOx':_0x56cfbb(0x261),'EOFft':function(_0x2a2409,_0x53c67d,_0x30fc98,_0x792883,_0x1676c3,_0x5cdc08,_0x3ce1d9){return _0x2a2409(_0x53c67d,_0x30fc98,_0x792883,_0x1676c3,_0x5cdc08,_0x3ce1d9);},'toODl':'init-not-called','kqMMg':function(_0x1b3129,_0xf9063f,_0x42a46e,_0x25eb6d,_0x388bd2,_0x50e72b,_0x582f68){return _0x1b3129(_0xf9063f,_0x42a46e,_0x25eb6d,_0x388bd2,_0x50e72b,_0x582f68);},'ZUmIp':_0x56cfbb(0x2a1),'fEWye':_0x56cfbb(0x295),'lrbbC':_0x56cfbb(0x23b),'KzQrH':function(_0xb7148e,_0x2ad755){return _0xb7148e===_0x2ad755;},'VncJa':'GNWRh','dZFhm':_0x56cfbb(0x22d),'axUFP':function(_0x4fb449,_0x3aee9d){return _0x4fb449===_0x3aee9d;},'riHPi':_0x56cfbb(0x264),'IRmIa':_0x56cfbb(0x25e),'apJxj':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','mdZaR':function(_0xd2fe2e,_0x13588b,_0x4db817,_0xaaa343,_0x17bf8d,_0x46787e,_0x5b9b58,_0x13d9eb){return _0xd2fe2e(_0x13588b,_0x4db817,_0xaaa343,_0x17bf8d,_0x46787e,_0x5b9b58,_0x13d9eb);},'ypRgA':_0x56cfbb(0x29c),'lalYb':function(_0xa6b80a,_0x194e41){return _0xa6b80a!==_0x194e41;},'PoFjV':'axBGQ','nDqtJ':_0x56cfbb(0x23a),'Roqha':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','hOJLG':function(_0x2f8fbf,_0x25ff50,_0x3d9889,_0x21f46a,_0x1e2793,_0x2f4d51,_0x58d870,_0x115a1e){return _0x2f8fbf(_0x25ff50,_0x3d9889,_0x21f46a,_0x1e2793,_0x2f4d51,_0x58d870,_0x115a1e);},'EEFfQ':_0x56cfbb(0x28d),'hRTVv':function(_0x14dfa0,_0x41dd2b){return _0x14dfa0===_0x41dd2b;},'XTqgh':_0x56cfbb(0x2ea),'cMglV':_0x56cfbb(0x216),'NbDFJ':_0x56cfbb(0x2a5),'ofrmD':function(_0x5d0ee1,_0x1a5106){return _0x5d0ee1===_0x1a5106;},'QhNLG':function(_0x4210ac,_0x1702b4){return _0x4210ac!==_0x1702b4;},'QQExU':_0x56cfbb(0x23f),'UjVaK':function(_0xeb0088,_0x4b9e42,_0xbd891a,_0x4cdb9c,_0x4e4910,_0x59d2b0,_0x1d6869,_0x46c842){return _0xeb0088(_0x4b9e42,_0xbd891a,_0x4cdb9c,_0x4e4910,_0x59d2b0,_0x1d6869,_0x46c842);},'tQoCd':_0x56cfbb(0x1ef),'LwDnn':_0x56cfbb(0x1ea),'JLxrv':function(_0x4b4c81,_0x11ef63,_0xcbdc2,_0x486e61,_0x4cb697,_0x36c73c,_0x22fee7,_0x1ad5cc){return _0x4b4c81(_0x11ef63,_0xcbdc2,_0x486e61,_0x4cb697,_0x36c73c,_0x22fee7,_0x1ad5cc);},'jYNTe':_0x56cfbb(0x267),'yjyjj':function(_0x116f48,_0x3d442d){return _0x116f48!==_0x3d442d;},'goAnm':_0x56cfbb(0x281),'yFaqE':_0x56cfbb(0x2e9),'QDYTN':_0x56cfbb(0x221),'vmxEZ':_0x56cfbb(0x278),'BrniR':_0x56cfbb(0x2de),'fNdvH':_0x56cfbb(0x1f2),'FpFIQ':'EJngj','bJCcI':_0x56cfbb(0x2b1),'DpAYK':function(_0x395d3,_0x1fb2dc){return _0x395d3===_0x1fb2dc;},'pdXFw':'hulWp','UpguV':'yHQUO','LbkFY':_0x56cfbb(0x2cb),'jyOop':function(_0xe313be,_0x4735f4,_0x10d96d,_0x47abf7,_0x1532c7,_0x1a25e9,_0x19958c,_0x4440eb){return _0xe313be(_0x4735f4,_0x10d96d,_0x47abf7,_0x1532c7,_0x1a25e9,_0x19958c,_0x4440eb);},'GQFOi':'create-grid-checks-invalid-profile','nDdDE':_0x56cfbb(0x228),'jqKNh':'RcnDM','JuzsG':_0x56cfbb(0x287),'GWaWS':function(_0x44dc1d,_0x45b568,_0x194acd,_0x4e2e0f,_0x3181d8,_0x29e00e,_0x4cbb51,_0x1a0d88,_0x592ea0,_0x582647){return _0x44dc1d(_0x45b568,_0x194acd,_0x4e2e0f,_0x3181d8,_0x29e00e,_0x4cbb51,_0x1a0d88,_0x592ea0,_0x582647);},'BMjSt':function(_0x3bd98d,_0x5c07d5){return _0x3bd98d===_0x5c07d5;},'QYXGh':_0x56cfbb(0x240),'sNGfk':_0x56cfbb(0x297),'ChnZx':function(_0x2b3c4d,_0xe87d14,_0x3a5aec,_0x591f3e,_0x423b57,_0x1fafd0){return _0x2b3c4d(_0xe87d14,_0x3a5aec,_0x591f3e,_0x423b57,_0x1fafd0);},'yipUt':function(_0x4cd850,_0x3dedf8){return _0x4cd850===_0x3dedf8;},'rCtuP':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','uTwFO':function(_0x2ec931,_0x36f5d8){return _0x2ec931===_0x36f5d8;},'DRVHj':function(_0x5929ca,_0x22ef0a,_0x4d2bd2,_0x13c00d){return _0x5929ca(_0x22ef0a,_0x4d2bd2,_0x13c00d);},'FtftU':_0x56cfbb(0x1fe),'ihhci':function(_0x4947ad,_0x1ec8d7){return _0x4947ad===_0x1ec8d7;},'bqxhX':_0x56cfbb(0x30d),'FyTTZ':function(_0x553163,_0x3e31f9){return _0x553163!=_0x3e31f9;},'WiwMv':function(_0x44aa07,_0x318ad6){return _0x44aa07!==_0x318ad6;},'ooOtD':function(_0x1a35b0,_0x127f4b){return _0x1a35b0!==_0x127f4b;},'wiQiP':function(_0x24a4dc,_0x4e9376){return _0x24a4dc>_0x4e9376;},'XguhL':_0x56cfbb(0x2ba),'fdJoq':function(_0x1022fd,_0x54689e,_0x5a868f,_0x73f907,_0x334e34,_0x22416e,_0x35aac7,_0x46e59c){return _0x1022fd(_0x54689e,_0x5a868f,_0x73f907,_0x334e34,_0x22416e,_0x35aac7,_0x46e59c);},'CTcky':_0x56cfbb(0x2ac),'BOdzE':function(_0xf487c6,_0x339545){return _0xf487c6===_0x339545;},'BdzZv':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','NFPXg':function(_0x5adf2f,_0xe0ed9f,_0x3b5910,_0x87d329,_0x4976bb,_0x5c4262,_0x414bcc,_0x3d17a8){return _0x5adf2f(_0xe0ed9f,_0x3b5910,_0x87d329,_0x4976bb,_0x5c4262,_0x414bcc,_0x3d17a8);},'IGRzB':_0x56cfbb(0x2f8),'qrZbl':function(_0x4c66b8,_0x2677bb,_0x4ec475,_0x370e02,_0x1255c4,_0x557ec7,_0x17e848,_0x134cdb){return _0x4c66b8(_0x2677bb,_0x4ec475,_0x370e02,_0x1255c4,_0x557ec7,_0x17e848,_0x134cdb);},'bwejY':_0x56cfbb(0x21f),'zPBkh':_0x56cfbb(0x2e1),'htbGj':_0x56cfbb(0x2c5),'EnTRR':_0x56cfbb(0x20c),'akXKm':function(_0x21da87,_0x191ee6){return _0x21da87(_0x191ee6);},'tvVQA':function(_0x35b755,_0x5610cd){return _0x35b755==_0x5610cd;},'heOrD':function(_0x5d0dc5,_0x43444d){return _0x5d0dc5(_0x43444d);},'oBEZo':'Creating\x20namespace','GrymD':function(_0xb0b425,_0x57e2c9){return _0xb0b425!==_0x57e2c9;},'pPpEN':_0x56cfbb(0x256),'kennZ':_0x56cfbb(0x222),'ZDQCF':_0x56cfbb(0x2b2),'kuOlu':_0x56cfbb(0x1f4),'iicNT':_0x56cfbb(0x2ef),'hNCvm':'Spawning\x20Grid\x20on\x20the\x20Cluster','GVUea':function(_0x2056ae,_0x20c84c){return _0x2056ae===_0x20c84c;},'MDSra':_0x56cfbb(0x2b4),'sYCIm':_0x56cfbb(0x24c),'ApKhu':'browserstack-turboscale-grid-service','GBTDr':function(_0x5061ca,_0x466090,_0x49a2ab,_0x470448,_0x360cce,_0x43c823){return _0x5061ca(_0x466090,_0x49a2ab,_0x470448,_0x360cce,_0x43c823);},'MVWcZ':_0x56cfbb(0x266)};let _0x11459d=![],_0x3f3fa3,_0x733cab,_0x4b0b70,_0x2919d5,_0x586897,_0x181cbf,_0x422d17,_0x3a2543,_0x32d512,_0x3934c6,_0x2a0b82,_0x6ac745;try{global_registry[_0x56cfbb(0x26b)]=_0x2a3684[_0x56cfbb(0x24d)](uuidv4);!fs['existsSync'](_0x2a3684[_0x56cfbb(0x2b9)](getCredentialsPath))&&(_0x2a3684['nrJEW'](_0x2a3684[_0x56cfbb(0x2dd)],_0x2a3684[_0x56cfbb(0x2dd)])?(console[_0x56cfbb(0x20d)](_0x2a3684[_0x56cfbb(0x1ed)]),await _0x2a3684[_0x56cfbb(0x271)](sendInstrumentationEvent,_0x5bf3d7,_0x2a3684[_0x56cfbb(0x1f3)],messageTypes[_0x56cfbb(0x245)],_0x2a3684[_0x56cfbb(0x2db)],null,_0x5bf3d7),process[_0x56cfbb(0x2a0)](0x1)):_0x1bcf09[_0x56cfbb(0x2ce)]('Found\x20Subnets:\x20'+_0x4bec62[_0x56cfbb(0x22e)](_0x39a073)+'\x20'));await _0x2a3684[_0x56cfbb(0x20b)](sendInstrumentationEvent,_0x5bf3d7,_0x2a3684[_0x56cfbb(0x1f3)],messageTypes['INFO'],null,null,_0x5bf3d7);const _0x440465=JSON[_0x56cfbb(0x291)](fs[_0x56cfbb(0x2be)](_0x2a3684[_0x56cfbb(0x2b9)](getCredentialsPath)));global_registry['bstackUsername']=_0x440465[_0x56cfbb(0x222)][_0x56cfbb(0x2c9)],global_registry[_0x56cfbb(0x20e)]=_0x440465[_0x56cfbb(0x222)]['password'];const _0x5f2ce5=WS_ENDPOINT[_0x56cfbb(0x298)](_0x2a3684[_0x56cfbb(0x2b0)],_0x440465[_0x56cfbb(0x222)][_0x56cfbb(0x2c9)])[_0x56cfbb(0x298)](_0x2a3684['fEWye'],_0x440465[_0x56cfbb(0x222)]['password']),_0x55e957={};_0x55e957[_0x56cfbb(0x2b6)]=ws,_0x3934c6=new ReconnectingWebSocket(_0x5f2ce5,[],_0x55e957),logger['debug'](_0x2a3684['lrbbC']),webSocketUtils[_0x56cfbb(0x26f)](_0x3934c6,_0x5bf3d7[_0x56cfbb(0x1f9)],_0x5bf3d7[_0x56cfbb(0x20a)]);let _0x37e76e=DEFAULT_GRID_NAME;(_0x5bf3d7[_0x56cfbb(0x2ee)]||_0x5bf3d7['cloudProvider']||_0x5bf3d7['region'])&&(_0x2a3684[_0x56cfbb(0x1fd)](_0x2a3684['VncJa'],_0x2a3684[_0x56cfbb(0x234)])?_0xc1cbf8=_0x183288[_0x537e24[_0x56cfbb(0x244)]]:(!(_0x5bf3d7[_0x56cfbb(0x2ee)]&&_0x5bf3d7[_0x56cfbb(0x2c4)]&&_0x5bf3d7[_0x56cfbb(0x2d0)])&&(_0x2a3684[_0x56cfbb(0x305)](_0x2a3684[_0x56cfbb(0x231)],_0x2a3684[_0x56cfbb(0x2c1)])?_0x4a6333[_0x56cfbb(0x2ce)](_0x56cfbb(0x214)+_0x1b64b7+'\x20'):(_0x3f3fa3=_0x2a3684['apJxj'],await _0x2a3684['mdZaR'](reportToGalactusAndSendToEDS,_0x5bf3d7,_0x3934c6,_0x3f3fa3,messageTypes[_0x56cfbb(0x245)],_0x2a3684[_0x56cfbb(0x1f3)],_0x2a3684[_0x56cfbb(0x285)],_0x2a3684[_0x56cfbb(0x30c)]),logger[_0x56cfbb(0x20d)](_0x3f3fa3),process[_0x56cfbb(0x2a0)](0x1))),![AWS,AZURE][_0x56cfbb(0x1f1)](_0x5bf3d7['cloudProvider']['toLowerCase']())&&(_0x2a3684[_0x56cfbb(0x279)](_0x2a3684[_0x56cfbb(0x27b)],_0x2a3684[_0x56cfbb(0x21d)])?(_0x3f3fa3=_0x2a3684['Roqha'],await _0x2a3684[_0x56cfbb(0x2cc)](reportToGalactusAndSendToEDS,_0x5bf3d7,_0x3934c6,_0x3f3fa3,messageTypes[_0x56cfbb(0x245)],_0x2a3684['TqjBN'],_0x2a3684['EEFfQ'],_0x2a3684['RNOyC']),logger[_0x56cfbb(0x20d)](_0x3f3fa3),process['exit'](0x1)):_0x313d05=_0x4c0033[_0x56cfbb(0x294)]),_0x11459d=!![],_0x4b0b70=_0x5bf3d7['clusterName'],_0x733cab=_0x5bf3d7[_0x56cfbb(0x2c4)][_0x56cfbb(0x2f9)](),_0x2919d5=_0x5bf3d7[_0x56cfbb(0x2d0)]));if(_0x5bf3d7['gridName']){if(_0x2a3684[_0x56cfbb(0x2d4)](_0x2a3684[_0x56cfbb(0x258)],_0x2a3684[_0x56cfbb(0x24b)]))throw _0x1f6554;else _0x37e76e=_0x5bf3d7['gridName'];}global_registry[_0x56cfbb(0x294)]=_0x37e76e;const _0x158de3={};_0x158de3[_0x56cfbb(0x2c9)]=_0x440465[_0x56cfbb(0x222)][_0x56cfbb(0x2c9)],_0x158de3[_0x56cfbb(0x20a)]=_0x440465[_0x56cfbb(0x222)]['password'];const _0xb5576c={};_0xb5576c[_0x56cfbb(0x2a7)]=_0x2a3684[_0x56cfbb(0x28a)],_0xb5576c[_0x56cfbb(0x2da)]=_0x158de3;const _0x4a6986=_0xb5576c,_0x7ee10a='https://'+AG_API_URL+_0x56cfbb(0x225),_0x3cf0fe={};_0x3cf0fe['gridName']=_0x37e76e;const _0x27d466={'url':_0x7ee10a,'qs':_0x3cf0fe,..._0x4a6986},_0x4f22bd=_0x27d466,_0x567d7e=await _0x2a3684[_0x56cfbb(0x2e8)](promisifiedRequest,_0x4f22bd);if(_0x2a3684[_0x56cfbb(0x309)](_0x567d7e,null)||_0x2a3684[_0x56cfbb(0x247)](_0x567d7e,undefined)){if(_0x2a3684[_0x56cfbb(0x21a)](_0x2a3684[_0x56cfbb(0x24f)],_0x2a3684[_0x56cfbb(0x24f)])){const _0xfa900={};_0xfa900['type']=_0x37eb29[_0x56cfbb(0x202)],_0xfa900['message']=_0x253d26,_0x1f9f4e[_0x56cfbb(0x2bf)](_0x552b3e,_0xfa900,_0x2a3684['RNOyC'],!![]);}else _0x3f3fa3=_0x2a3684[_0x56cfbb(0x233)],await _0x2a3684[_0x56cfbb(0x282)](reportToGalactusAndSendToEDS,_0x5bf3d7,_0x3934c6,_0x3f3fa3,messageTypes[_0x56cfbb(0x245)],_0x2a3684['TqjBN'],_0x2a3684[_0x56cfbb(0x2f4)],_0x2a3684[_0x56cfbb(0x30c)]),logger['error'](_0x3f3fa3),process[_0x56cfbb(0x2a0)](0x1);}if(_0x2a3684[_0x56cfbb(0x305)](_0x567d7e[_0x56cfbb(0x243)],0x191)){if(_0x2a3684[_0x56cfbb(0x2d4)](_0x2a3684[_0x56cfbb(0x2f2)],_0x2a3684[_0x56cfbb(0x2f2)]))_0x3f3fa3=_0x2a3684['dPOTl'],await _0x2a3684[_0x56cfbb(0x2e2)](reportToGalactusAndSendToEDS,_0x5bf3d7,_0x3934c6,_0x3f3fa3,messageTypes[_0x56cfbb(0x245)],_0x2a3684[_0x56cfbb(0x1f3)],_0x2a3684[_0x56cfbb(0x27d)],_0x2a3684[_0x56cfbb(0x30c)]),logger[_0x56cfbb(0x20d)](_0x3f3fa3),process[_0x56cfbb(0x2a0)](0x1);else{const _0x3cd93e=_0x2a3684[_0x56cfbb(0x1fb)][_0x56cfbb(0x22a)]('|');let _0x4cfafe=0x0;while(!![]){switch(_0x3cd93e[_0x4cfafe++]){case'0':_0x383040=_0x6f6ff0['vpc'];continue;case'1':_0xd8ee56=_0x457690[_0x56cfbb(0x2fc)];continue;case'2':_0xb161ae=_0x1e2f66[_0x56cfbb(0x2a9)];continue;case'3':_0x393e3f=_0x373059['region'];continue;case'4':_0x428a8b=_0x4d5d09[_0x56cfbb(0x232)];continue;case'5':_0x5f5d18=_0x3cfb7f[_0x56cfbb(0x1f8)];continue;case'6':_0x3faaa2=_0x3f9adb[_0x56cfbb(0x23d)];continue;case'7':_0x459a4b=_0x11852f[_0x56cfbb(0x2ee)];continue;case'8':_0x4b59da=_0x18fc28[_0x56cfbb(0x2a3)];continue;case'9':_0x5266da=_0x2ab12f['cloudProvider'];continue;case'10':_0x2a3684['vHhzr'](_0x26ed17,_0x303863,_0x5e35b0,_0x5aca60,_0x162dea,_0xd076a8,_0x247ad6,_0x2e1c61,_0x4ec7ff,_0xd3619b);continue;case'11':_0x4ec5b2=_0x4be895[_0x56cfbb(0x2c7)];continue;}break;}}}_0x2a3684[_0x56cfbb(0x273)](_0x567d7e[_0x56cfbb(0x243)],0xc8)&&(_0x2a3684[_0x56cfbb(0x2df)](_0x2a3684[_0x56cfbb(0x2aa)],_0x2a3684[_0x56cfbb(0x2aa)])?_0x46786f=_0x495bba[_0x56cfbb(0x25f)]:(_0x3f3fa3=_0x56cfbb(0x246)+JSON[_0x56cfbb(0x22e)](_0x567d7e),await _0x2a3684[_0x56cfbb(0x2cc)](reportToGalactusAndSendToEDS,_0x5bf3d7,_0x3934c6,_0x3f3fa3,messageTypes[_0x56cfbb(0x245)],_0x2a3684[_0x56cfbb(0x1f3)],_0x2a3684[_0x56cfbb(0x2ab)],_0x2a3684['RNOyC']),logger[_0x56cfbb(0x20d)](_0x3f3fa3),process['exit'](0x1)));const _0xf98719=JSON[_0x56cfbb(0x291)](_0x567d7e[_0x56cfbb(0x2c6)]),_0x342b11={};_0x342b11[_0x56cfbb(0x21c)]=WS_EVENTS[_0x56cfbb(0x2cd)],_0x342b11['message']='CLI\x20run\x20started',webSocketUtils[_0x56cfbb(0x2bf)](_0x3934c6,_0x342b11);const _0x39412e={};_0x39412e[_0x56cfbb(0x21c)]=WS_EVENTS['LOG'],_0x39412e[_0x56cfbb(0x30b)]=_0x2a3684[_0x56cfbb(0x1f7)],webSocketUtils[_0x56cfbb(0x2bf)](_0x3934c6,_0x39412e);if(_0xf98719[_0x56cfbb(0x237)]){if(_0x2a3684['axUFP'](_0x2a3684[_0x56cfbb(0x269)],_0x2a3684[_0x56cfbb(0x269)]))_0x3f3fa3=_0x2a3684[_0x56cfbb(0x254)],await _0x2a3684['vsjCS'](reportToGalactusAndSendToEDS,_0x5bf3d7,_0x3934c6,_0x3f3fa3,messageTypes[_0x56cfbb(0x245)],_0x2a3684[_0x56cfbb(0x1f3)],_0x2a3684[_0x56cfbb(0x242)],_0x2a3684[_0x56cfbb(0x30c)]),logger[_0x56cfbb(0x20d)](_0x3f3fa3),process[_0x56cfbb(0x2a0)](0x1);else{const _0xba0e9b={};_0xba0e9b[_0x56cfbb(0x21c)]=_0x35f754[_0x56cfbb(0x202)],_0xba0e9b[_0x56cfbb(0x30b)]=_0x56cfbb(0x1ee)+_0x52a97c+_0x56cfbb(0x205),_0x519621[_0x56cfbb(0x2bf)](_0x47d6b5,_0xba0e9b,_0x2a3684['LkOnO']),_0x1f96c4[_0x56cfbb(0x2ce)]('Cluster\x20'+_0x31cff3+_0x56cfbb(0x205)),_0x23b65f=!![];}}const _0x105bd4=_0xf98719[_0x56cfbb(0x280)];let _0x42695f=_0x105bd4[_0xf98719[_0x56cfbb(0x283)]];_0x5bf3d7[_0x56cfbb(0x244)]&&(_0x2a3684[_0x56cfbb(0x1fd)](_0x2a3684[_0x56cfbb(0x200)],_0x2a3684[_0x56cfbb(0x288)])?_0x10bc85['cloudProvider']={}:_0x42695f=_0x105bd4[_0x5bf3d7[_0x56cfbb(0x244)]]);if(_0x2a3684[_0x56cfbb(0x2fd)](_0x42695f,undefined)){if(_0x2a3684[_0x56cfbb(0x305)](_0x2a3684[_0x56cfbb(0x23e)],_0x2a3684[_0x56cfbb(0x2dc)])){_0x39d767=_0x2a3684[_0x56cfbb(0x2e0)];const _0x3d49ac={};_0x3d49ac[_0x56cfbb(0x21c)]=_0x5699a0[_0x56cfbb(0x202)],_0x3d49ac[_0x56cfbb(0x30b)]=_0x4f140f,_0x14e502[_0x56cfbb(0x2bf)](_0xf91828,_0x3d49ac),_0x5f4712[_0x56cfbb(0x2ce)](_0x24ff47),_0x4de91f[_0x56cfbb(0x25b)](_0x24b960);}else _0x3f3fa3=_0x2a3684[_0x56cfbb(0x29b)],await _0x2a3684[_0x56cfbb(0x24e)](reportToGalactusAndSendToEDS,_0x5bf3d7,_0x3934c6,_0x3f3fa3,messageTypes[_0x56cfbb(0x245)],_0x2a3684[_0x56cfbb(0x1f3)],_0x2a3684[_0x56cfbb(0x2a8)],_0x2a3684[_0x56cfbb(0x30c)]),logger['error'](_0x3f3fa3),process[_0x56cfbb(0x2a0)](0x1);}global_registry[_0x56cfbb(0x28f)]=_0x42695f['id'],_0x3f3fa3='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x37e76e+_0x56cfbb(0x207)+_0x42695f[_0x56cfbb(0x274)]+_0x56cfbb(0x20f),logger[_0x56cfbb(0x2ce)](_0x3f3fa3);const _0x584afb={};_0x584afb[_0x56cfbb(0x21c)]=WS_EVENTS['LOG'],_0x584afb['message']=_0x3f3fa3,webSocketUtils[_0x56cfbb(0x2bf)](_0x3934c6,_0x584afb);if(_0x2a3684[_0x56cfbb(0x309)](_0x11459d,![])){if(_0x2a3684[_0x56cfbb(0x1fd)](_0x2a3684[_0x56cfbb(0x29a)],_0x2a3684['jqKNh'])){const _0x370eb2={};_0x370eb2['description']=_0x2a3684['dLxsL'],_0x370eb2[_0x56cfbb(0x21c)]=_0x2a3684['dgnjm'];const _0x321e10={};_0x321e10['description']=_0x2a3684[_0x56cfbb(0x213)],_0x321e10[_0x56cfbb(0x21c)]=_0x2a3684['dgnjm'];const _0xb30323={};_0xb30323[_0x56cfbb(0x2d8)]=_0x2a3684[_0x56cfbb(0x2f5)],_0xb30323[_0x56cfbb(0x21c)]=_0x2a3684['dgnjm'];const _0x2e6081={};_0x2e6081[_0x56cfbb(0x2d8)]=_0x2a3684[_0x56cfbb(0x29d)],_0x2e6081[_0x56cfbb(0x21c)]=_0x2a3684[_0x56cfbb(0x209)];const _0x1a8bae={};_0x1a8bae['description']=_0x2a3684[_0x56cfbb(0x2f0)],_0x1a8bae[_0x56cfbb(0x21c)]=_0x2a3684[_0x56cfbb(0x209)];const _0x4b6668={};return _0x4b6668[_0x56cfbb(0x26c)]=_0x370eb2,_0x4b6668[_0x56cfbb(0x224)]=_0x321e10,_0x4b6668[_0x56cfbb(0x2d2)]=_0xb30323,_0x4b6668[_0x56cfbb(0x22c)]=_0x2e6081,_0x4b6668[_0x56cfbb(0x2d0)]=_0x1a8bae,_0x50f1f6[_0x56cfbb(0x2c3)](_0x125344[_0x56cfbb(0x2ae)])['epilogue'](_0x57a148)[_0x56cfbb(0x249)](_0x4b6668)[_0x56cfbb(0x2e5)](_0x2a3684[_0x56cfbb(0x277)])['argv'];}else{const _0x39812e=_0x2a3684[_0x56cfbb(0x299)][_0x56cfbb(0x22a)]('|');let _0xbbac10=0x0;while(!![]){switch(_0x39812e[_0xbbac10++]){case'0':_0x2a3684[_0x56cfbb(0x2fa)](updateGlobalRegistryWithConfig,_0x733cab,_0x4b0b70,_0x2919d5,_0x586897,_0x181cbf,_0x3a2543,_0x42695f,_0x2a0b82,_0x6ac745);continue;case'1':_0x4b0b70=_0x42695f['clusterName'];continue;case'2':_0x586897=_0x42695f['concurrency'];continue;case'3':_0x3a2543=_0x42695f['s3bucket'];continue;case'4':_0x422d17=_0x42695f[_0x56cfbb(0x2b5)];continue;case'5':subnets=_0x42695f[_0x56cfbb(0x23d)];continue;case'6':_0x6ac745=_0xf98719[_0x56cfbb(0x2fc)];continue;case'7':securityGroups=_0x42695f[_0x56cfbb(0x2c7)];continue;case'8':_0x2919d5=_0x42695f[_0x56cfbb(0x2d0)];continue;case'9':_0x2a0b82=_0xf98719[_0x56cfbb(0x1f8)];continue;case'10':_0x181cbf=_0x42695f[_0x56cfbb(0x232)];continue;case'11':_0x733cab=_0x42695f[_0x56cfbb(0x2c4)];continue;}break;}}}else{if(_0x2a3684[_0x56cfbb(0x2fb)](_0x2a3684[_0x56cfbb(0x229)],_0x2a3684[_0x56cfbb(0x229)])){const _0x242371=_0x2a3684['sNGfk']['split']('|');let _0x371866=0x0;while(!![]){switch(_0x242371[_0x371866++]){case'0':global_registry[_0x56cfbb(0x1f8)]=_0xf98719[_0x56cfbb(0x1f8)];continue;case'1':logger[_0x56cfbb(0x2ce)](_0x3f3fa3);continue;case'2':const _0x1aadd7={};_0x1aadd7[_0x56cfbb(0x21c)]=WS_EVENTS[_0x56cfbb(0x2cd)],_0x1aadd7[_0x56cfbb(0x30b)]=_0x56cfbb(0x259),webSocketUtils[_0x56cfbb(0x2bf)](_0x3934c6,_0x1aadd7);continue;case'3':const _0x1a8d86={};_0x1a8d86[_0x56cfbb(0x21c)]=WS_EVENTS[_0x56cfbb(0x202)],_0x1a8d86['message']=_0x3f3fa3,webSocketUtils['sendEventToBackend'](_0x3934c6,_0x1a8d86);continue;case'4':global_registry['cloudProvider']=_0x733cab;continue;case'5':global_registry[_0x56cfbb(0x238)]=_0x2919d5;continue;case'6':global_registry[_0x56cfbb(0x2fc)]=_0xf98719['browserVersion'];continue;case'7':global_registry['clusterName']=_0x4b0b70;continue;case'8':_0x3f3fa3=_0x56cfbb(0x218)+_0x37e76e+_0x56cfbb(0x2a4)+_0x4b0b70+'\x27';continue;}break;}}else{const _0x149797=_0x2a3684['khHaJ'][_0x56cfbb(0x22a)]('|');let _0x5c4033=0x0;while(!![]){switch(_0x149797[_0x5c4033++]){case'0':const _0x5b8e61={};_0x5b8e61[_0x56cfbb(0x21c)]=_0x2c48ec[_0x56cfbb(0x202)],_0x5b8e61[_0x56cfbb(0x30b)]=_0x4d49a5,_0x57fdec[_0x56cfbb(0x2bf)](_0x54ba35,_0x5b8e61);continue;case'1':_0x140fcd[_0x56cfbb(0x2ce)](_0x508030);continue;case'2':_0x1cef21[_0x56cfbb(0x2ee)]=_0x22b31d;continue;case'3':_0x4bfcf5['cloudProvider']=_0x18b28e;continue;case'4':const _0x365e3c={};_0x365e3c[_0x56cfbb(0x21c)]=_0x1457d2[_0x56cfbb(0x2cd)],_0x365e3c[_0x56cfbb(0x30b)]='CLI\x20run\x20started',_0xeb4759[_0x56cfbb(0x2bf)](_0x1ac51f,_0x365e3c);continue;case'5':_0x2cef27['clusterRegion']=_0x251ac0;continue;case'6':_0x44360d[_0x56cfbb(0x1f8)]=_0x2f109c['hubVersion'];continue;case'7':_0x164030[_0x56cfbb(0x2fc)]=_0x52e67c['browserVersion'];continue;case'8':_0xd84152=_0x56cfbb(0x218)+_0x276904+_0x56cfbb(0x2a4)+_0x2edae8+'\x27';continue;}break;}}}const _0x5b4930=_0x2a3684[_0x56cfbb(0x208)](getCloudProviderObject,_0x733cab,_0x4b0b70,_0x37e76e,_0x3934c6,webSocketUtils),_0x3f264d=_0x440465[_0x56cfbb(0x2c4)]||{};if(_0x2a3684[_0x56cfbb(0x27c)](_0x3f264d[_0x733cab],undefined)){logger[_0x56cfbb(0x2ce)](_0x2a3684['rCtuP']);_0x2a3684['uTwFO'](_0x440465[_0x56cfbb(0x2c4)],undefined)&&(_0x440465[_0x56cfbb(0x2c4)]={});_0x440465[_0x56cfbb(0x2c4)][_0x733cab]={};const _0x201c66=await _0x2a3684[_0x56cfbb(0x2eb)](inputCloudProviderKeys,_0x733cab,_0x440465,_0x5b4930);fs[_0x56cfbb(0x21b)](_0x2a3684[_0x56cfbb(0x24d)](getCredentialsPath),JSON['stringify'](_0x201c66)),logger[_0x56cfbb(0x2ca)](_0x2a3684[_0x56cfbb(0x250)]);}else{_0x3f3fa3=_0x2a3684[_0x56cfbb(0x2e0)];const _0x1b2079={};_0x1b2079['type']=WS_EVENTS[_0x56cfbb(0x202)],_0x1b2079[_0x56cfbb(0x30b)]=_0x3f3fa3,webSocketUtils[_0x56cfbb(0x2bf)](_0x3934c6,_0x1b2079),logger[_0x56cfbb(0x2ce)](_0x3f3fa3),_0x5b4930['fetchLocalCreds'](_0x3f264d);}await _0x5b4930[_0x56cfbb(0x2b7)]();let _0x2bb30c;if(_0x2a3684['ihhci'](_0x11459d,![])){_0x3f3fa3=_0x56cfbb(0x26a)+_0x2919d5+').';const _0x169177={};_0x169177['type']=WS_EVENTS[_0x56cfbb(0x202)],_0x169177[_0x56cfbb(0x30b)]=_0x3f3fa3,webSocketUtils[_0x56cfbb(0x2bf)](_0x3934c6,_0x169177),logger['info'](_0x3f3fa3);const _0x53969a=await _0x5b4930['isClusterPresent'](_0x733cab,_0x4b0b70);if(_0x53969a){const _0x507855={};_0x507855[_0x56cfbb(0x21c)]=WS_EVENTS['LOG'],_0x507855[_0x56cfbb(0x30b)]=_0x56cfbb(0x1ee)+_0x4b0b70+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x56cfbb(0x2bf)](_0x3934c6,_0x507855,_0x2a3684['LkOnO']),logger[_0x56cfbb(0x2ce)](_0x56cfbb(0x1ee)+_0x4b0b70+_0x56cfbb(0x205)),_0x11459d=!![];}else{const _0x2fbe91={};_0x2fbe91[_0x56cfbb(0x21c)]=WS_EVENTS[_0x56cfbb(0x202)],_0x2fbe91[_0x56cfbb(0x30b)]=_0x2a3684[_0x56cfbb(0x2a2)],webSocketUtils[_0x56cfbb(0x2bf)](_0x3934c6,_0x2fbe91),logger['info'](_0x2a3684[_0x56cfbb(0x2a2)]);const _0x30dab6=_0x2a3684[_0x56cfbb(0x2b8)](_0x422d17,null)&&_0x2a3684[_0x56cfbb(0x1fc)](_0x422d17,undefined),_0x16ccbc=_0x2a3684[_0x56cfbb(0x2b8)](subnets,null)&&_0x2a3684['ooOtD'](subnets,undefined)&&_0x2a3684['wiQiP'](subnets[_0x56cfbb(0x251)],0x0);if(_0x30dab6){_0x2a3684[_0x56cfbb(0x2e6)](_0x16ccbc,![])&&(_0x3f3fa3=_0x2a3684[_0x56cfbb(0x272)],await _0x2a3684[_0x56cfbb(0x22f)](reportToGalactusAndSendToEDS,_0x5bf3d7,_0x3934c6,_0x3f3fa3,messageTypes[_0x56cfbb(0x245)],_0x2a3684['TqjBN'],_0x2a3684[_0x56cfbb(0x2bb)],_0x2a3684[_0x56cfbb(0x30c)]),logger[_0x56cfbb(0x20d)](_0x3f3fa3),process[_0x56cfbb(0x2a0)](0x1));const _0x2be7d7=await _0x5b4930[_0x56cfbb(0x29e)](_0x422d17);_0x2a3684['BOdzE'](_0x2be7d7,![])?(_0x3f3fa3=_0x2a3684[_0x56cfbb(0x1f5)],await _0x2a3684[_0x56cfbb(0x227)](reportToGalactusAndSendToEDS,_0x5bf3d7,_0x3934c6,_0x3f3fa3,messageTypes[_0x56cfbb(0x245)],_0x2a3684[_0x56cfbb(0x1f3)],_0x2a3684['IGRzB'],_0x2a3684[_0x56cfbb(0x30c)]),logger[_0x56cfbb(0x20d)](_0x3f3fa3),process[_0x56cfbb(0x2a0)](0x1)):logger[_0x56cfbb(0x2ce)](_0x56cfbb(0x214)+_0x422d17+'\x20');const _0x32576a=await _0x5b4930[_0x56cfbb(0x203)](subnets,_0x422d17);_0x2a3684[_0x56cfbb(0x1fd)](_0x32576a[0x0],![])?(_0x3f3fa3=_0x56cfbb(0x2ff)+_0x32576a[0x1]+_0x56cfbb(0x26e)+_0x422d17+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x2a3684['qrZbl'](reportToGalactusAndSendToEDS,_0x5bf3d7,_0x3934c6,_0x3f3fa3,messageTypes['ERROR'],_0x2a3684[_0x56cfbb(0x1f3)],_0x2a3684[_0x56cfbb(0x2c2)],_0x2a3684[_0x56cfbb(0x30c)]),logger[_0x56cfbb(0x20d)](_0x3f3fa3),process[_0x56cfbb(0x2a0)](0x1)):logger[_0x56cfbb(0x2ce)](_0x56cfbb(0x1fa)+JSON[_0x56cfbb(0x22e)](subnets)+'\x20'),await _0x5b4930[_0x56cfbb(0x293)](_0x422d17,subnets);}else{const _0x446ba6=_0x2a3684[_0x56cfbb(0x262)]['split']('|');let _0x53404f=0x0;while(!![]){switch(_0x446ba6[_0x53404f++]){case'0':logger[_0x56cfbb(0x2ce)](_0x2a3684[_0x56cfbb(0x22b)]);continue;case'1':await _0x5b4930[_0x56cfbb(0x293)]();continue;case'2':const _0x383737={};_0x383737[_0x56cfbb(0x21c)]=WS_EVENTS[_0x56cfbb(0x202)],_0x383737[_0x56cfbb(0x30b)]=_0x56cfbb(0x20c),webSocketUtils[_0x56cfbb(0x2bf)](_0x3934c6,_0x383737);continue;case'3':const _0x5f4512={};_0x5f4512[_0x56cfbb(0x21c)]=WS_EVENTS[_0x56cfbb(0x202)],_0x5f4512[_0x56cfbb(0x30b)]=_0x2a3684['htbGj'],webSocketUtils['sendEventToBackend'](_0x3934c6,_0x5f4512);continue;case'4':logger[_0x56cfbb(0x2ce)](_0x2a3684[_0x56cfbb(0x270)]);continue;}break;}}}}_0x11459d&&_0x2a3684[_0x56cfbb(0x2fd)](_0x733cab,AZURE)&&(global_registry[_0x56cfbb(0x1f6)]=_0xf98719[_0x56cfbb(0x2ad)],await _0x5b4930['updatePreSpawnedCluster'](),await _0x5b4930[_0x56cfbb(0x306)]());const [_0x3603c9,_0x2515df,_0x4c0595,_0x362e4f,_0x112407]=await _0x2a3684[_0x56cfbb(0x21e)](createK8sClient,_0x5b4930);_0x2a3684[_0x56cfbb(0x1fd)](_0x11459d,![])&&_0x2a3684[_0x56cfbb(0x235)](_0x733cab,AWS)&&(_0x2bb30c=await _0x5b4930[_0x56cfbb(0x307)](_0x3603c9,_0x5bf3d7));try{_0x32d512=_0x2a3684[_0x56cfbb(0x30a)](kebabCase,_0x37e76e),logger[_0x56cfbb(0x2ce)](_0x2a3684[_0x56cfbb(0x2b3)]);const _0x2eb1c2={};_0x2eb1c2[_0x56cfbb(0x21c)]=WS_EVENTS[_0x56cfbb(0x202)],_0x2eb1c2['message']=_0x2a3684[_0x56cfbb(0x2b3)],webSocketUtils[_0x56cfbb(0x2bf)](_0x3934c6,_0x2eb1c2);if(_0x2a3684[_0x56cfbb(0x284)](_0x32d512,_0x2a3684['pPpEN'])){const _0x4a581c={};_0x4a581c[_0x56cfbb(0x211)]=_0x2a3684[_0x56cfbb(0x27a)],_0x4a581c[_0x56cfbb(0x217)]=_0x2a3684[_0x56cfbb(0x27a)];const _0x59bf48={};_0x59bf48[_0x56cfbb(0x274)]=_0x32d512,_0x59bf48[_0x56cfbb(0x2af)]=_0x4a581c;const _0x56f4b8={};_0x56f4b8[_0x56cfbb(0x248)]=_0x59bf48;let _0x5964f4=_0x56f4b8;await _0x3603c9[_0x56cfbb(0x210)](_0x5964f4),logger[_0x56cfbb(0x2ce)](_0x2a3684[_0x56cfbb(0x25d)]);}const _0x2b9bc0={};_0x2b9bc0[_0x56cfbb(0x21c)]=WS_EVENTS[_0x56cfbb(0x202)],_0x2b9bc0[_0x56cfbb(0x30b)]=_0x2a3684[_0x56cfbb(0x239)],webSocketUtils[_0x56cfbb(0x2bf)](_0x3934c6,_0x2b9bc0);const _0x3a96da={};_0x3a96da[_0x56cfbb(0x21c)]=WS_EVENTS[_0x56cfbb(0x202)],_0x3a96da[_0x56cfbb(0x30b)]=_0x2a3684['iicNT'],webSocketUtils[_0x56cfbb(0x2bf)](_0x3934c6,_0x3a96da),logger[_0x56cfbb(0x2ce)](_0x2a3684[_0x56cfbb(0x2d7)]);let _0x3d41b7={};_0x2a3684[_0x56cfbb(0x2bc)](_0x733cab,AZURE)&&(_0x3d41b7={'clientId':await _0x5b4930[_0x56cfbb(0x2d9)](_0x56cfbb(0x25c)+_0x4b0b70)});await _0x2a3684[_0x56cfbb(0x2a6)](addGridComponents,_0x3603c9,_0x2515df,_0x4c0595,_0x362e4f,_0x32d512,_0x4b0b70,_0x2bb30c,_0x112407,_0x3d41b7),_0x3f3fa3=_0x2a3684['MDSra'],logger[_0x56cfbb(0x2ce)](_0x3f3fa3);const _0x12bfc0={};_0x12bfc0[_0x56cfbb(0x21c)]=WS_EVENTS[_0x56cfbb(0x202)],_0x12bfc0['message']=_0x3f3fa3,webSocketUtils[_0x56cfbb(0x2bf)](_0x3934c6,_0x12bfc0),_0x3f3fa3=_0x2a3684[_0x56cfbb(0x2d3)],logger[_0x56cfbb(0x2ce)](_0x3f3fa3);const _0x3d1500={};_0x3d1500[_0x56cfbb(0x21c)]=WS_EVENTS[_0x56cfbb(0x202)],_0x3d1500[_0x56cfbb(0x30b)]=_0x3f3fa3,webSocketUtils['sendEventToBackend'](_0x3934c6,_0x3d1500),await webSocketUtils[_0x56cfbb(0x2f6)](0x2710),await _0x3603c9[_0x56cfbb(0x2fe)](_0x2a3684[_0x56cfbb(0x241)],_0x32d512)[_0x56cfbb(0x2f7)](async _0x5a93b7=>{const _0x4a67c8=_0x56cfbb,_0x1102d7=_0x5b4930['getGridHostname'](_0x5a93b7);let _0x492dc3=_0x1102d7;try{const _0x6bbe6c={'url':_0x4a67c8(0x265)+AG_API_URL+_0x4a67c8(0x276)+_0x1102d7,..._0x4a6986},_0x504446=_0x6bbe6c,_0x41cf34=await _0x2a3684[_0x4a67c8(0x2e8)](promisifiedRequest,_0x504446);(_0x2a3684[_0x4a67c8(0x2d1)](_0x41cf34,null)||_0x2a3684['oiupT'](_0x41cf34,undefined))&&(_0x3f3fa3=_0x2a3684[_0x4a67c8(0x233)],await _0x2a3684[_0x4a67c8(0x212)](reportToGalactusAndSendToEDS,_0x5bf3d7,_0x3934c6,_0x3f3fa3,messageTypes['ERROR'],_0x2a3684[_0x4a67c8(0x1f3)],_0x2a3684['VhWTB'],_0x2a3684[_0x4a67c8(0x30c)]),logger[_0x4a67c8(0x20d)](_0x3f3fa3),process['exit'](0x1));_0x2a3684[_0x4a67c8(0x303)](_0x41cf34[_0x4a67c8(0x243)],0x191)&&(_0x3f3fa3=_0x2a3684['dPOTl'],await _0x2a3684[_0x4a67c8(0x219)](reportToGalactusAndSendToEDS,_0x5bf3d7,_0x3934c6,_0x3f3fa3,messageTypes[_0x4a67c8(0x245)],_0x2a3684[_0x4a67c8(0x1f3)],_0x2a3684['KizgL'],_0x2a3684[_0x4a67c8(0x30c)]),logger[_0x4a67c8(0x20d)](_0x3f3fa3),process[_0x4a67c8(0x2a0)](0x1));_0x2a3684[_0x4a67c8(0x273)](_0x41cf34[_0x4a67c8(0x243)],0xc8)&&(_0x3f3fa3='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x4a67c8(0x22e)](_0x41cf34),await _0x2a3684[_0x4a67c8(0x219)](reportToGalactusAndSendToEDS,_0x5bf3d7,_0x3934c6,_0x3f3fa3,messageTypes[_0x4a67c8(0x245)],_0x2a3684[_0x4a67c8(0x1f3)],_0x2a3684['pVnZD'],_0x2a3684[_0x4a67c8(0x30c)]),logger[_0x4a67c8(0x20d)](_0x3f3fa3),process['exit'](0x1));const _0x1d22ef=JSON['parse'](_0x41cf34[_0x4a67c8(0x2c6)]);_0x1d22ef[_0x4a67c8(0x25f)]&&(_0x492dc3=_0x1d22ef[_0x4a67c8(0x25f)]);}catch(_0xc56be0){}_0x3f3fa3='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x492dc3+'\x20',logger[_0x4a67c8(0x2ce)](_0x3f3fa3);const _0x1e04b2={};_0x1e04b2[_0x4a67c8(0x21c)]=WS_EVENTS[_0x4a67c8(0x202)],_0x1e04b2[_0x4a67c8(0x30b)]=_0x3f3fa3,webSocketUtils[_0x4a67c8(0x2bf)](_0x3934c6,_0x1e04b2),_0x3f3fa3='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://'+_0x492dc3+_0x4a67c8(0x204),logger[_0x4a67c8(0x2ce)](_0x3f3fa3);const _0x2cf494={};_0x2cf494[_0x4a67c8(0x21c)]=WS_EVENTS['LOG'],_0x2cf494[_0x4a67c8(0x30b)]=_0x3f3fa3,webSocketUtils[_0x4a67c8(0x2bf)](_0x3934c6,_0x2cf494);const _0x158fd5={};_0x158fd5[_0x4a67c8(0x21c)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x158fd5['message']=_0x4a67c8(0x1eb)+_0x1102d7,webSocketUtils['sendEventToBackend'](_0x3934c6,_0x158fd5);}),await webSocketUtils[_0x56cfbb(0x2f6)](0x1f4);}catch(_0x2ca145){if(_0x2a3684['MGJXC'](_0x11459d,![]))try{logger[_0x56cfbb(0x2ce)](_0x56cfbb(0x223)),await _0x2a3684[_0x56cfbb(0x29f)](removeGridComponents,_0x3603c9,_0x2515df,_0x4c0595,_0x362e4f,_0x32d512),await _0x5b4930[_0x56cfbb(0x257)](global_registry[_0x56cfbb(0x238)]);}catch(_0x431eb5){throw _0x431eb5;}throw _0x2ca145;}}catch(_0x151b50){const _0x37b49f=_0x56cfbb(0x24a)+_0x151b50+'\x20\x0a'+JSON['stringify'](_0x151b50)+'\x20';if(_0x3934c6){const _0x3b1740={};_0x3b1740[_0x56cfbb(0x21c)]=WS_EVENTS['LOG'],_0x3b1740[_0x56cfbb(0x30b)]=_0x37b49f,webSocketUtils[_0x56cfbb(0x2bf)](_0x3934c6,_0x3b1740,_0x2a3684['RNOyC'],!![]);}const _0xaaf71={};_0xaaf71[_0x56cfbb(0x20d)]=_0x37b49f,await _0x2a3684[_0x56cfbb(0x271)](sendInstrumentationEvent,_0x5bf3d7,_0x2a3684[_0x56cfbb(0x1f3)],messageTypes[_0x56cfbb(0x245)],_0x2a3684['MVWcZ'],_0xaaf71,_0x5bf3d7),logger[_0x56cfbb(0x20d)](_0x37b49f);}process['exit'](0x0);};
1
+ const a4_0x5a9e26=a4_0x1b5d;function a4_0x1b5d(_0x1ca494,_0x434ec8){const _0x147401=a4_0x1474();return a4_0x1b5d=function(_0x1b5d61,_0x2dfbb5){_0x1b5d61=_0x1b5d61-0x171;let _0x44f266=_0x147401[_0x1b5d61];return _0x44f266;},a4_0x1b5d(_0x1ca494,_0x434ec8);}(function(_0x1054c1,_0x5a7e8d){const _0x93939a=a4_0x1b5d,_0x165cd0=_0x1054c1();while(!![]){try{const _0x51ce28=parseInt(_0x93939a(0x1eb))/0x1*(parseInt(_0x93939a(0x212))/0x2)+parseInt(_0x93939a(0x1c8))/0x3+-parseInt(_0x93939a(0x184))/0x4*(-parseInt(_0x93939a(0x25d))/0x5)+-parseInt(_0x93939a(0x24e))/0x6+parseInt(_0x93939a(0x26a))/0x7+-parseInt(_0x93939a(0x26c))/0x8+-parseInt(_0x93939a(0x193))/0x9;if(_0x51ce28===_0x5a7e8d)break;else _0x165cd0['push'](_0x165cd0['shift']());}catch(_0x45dd93){_0x165cd0['push'](_0x165cd0['shift']());}}}(a4_0x1474,0x76847));const fs=require('fs'),ws=require('ws'),util=require(a4_0x5a9e26(0x29d)),ReconnectingWebSocket=require('reconnecting-websocket'),request=require('request'),{v4:uuidv4}=require(a4_0x5a9e26(0x238)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require('../../config/logger'),{inputCloudProviderKeys}=require(a4_0x5a9e26(0x2ac)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{sendAWSInfoToHST}=require(a4_0x5a9e26(0x2a7)),{isClusterPresent,getClusterInfo,configureAWSIfNotConfigured,createAuthConfigMap,getNodeGroupInfo,isVPCPresent,isSubnetsValid}=require('../../utils/AWSUtils'),{addGridComponents,deleteClusterAndDependencies,removeGridComponents}=require(a4_0x5a9e26(0x1b2)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,CLUSTER_DEP_STACK_NAME}=require('../../config/constants'),{createClusterStack}=require(a4_0x5a9e26(0x264)),{createAutoscalerStack}=require('../../utils/createAutoscalerStack'),{createK8sClient}=require(a4_0x5a9e26(0x188)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{deleteClusterStack}=require(a4_0x5a9e26(0x278)),promisifiedRequest=util[a4_0x5a9e26(0x29e)](request);exports[a4_0x5a9e26(0x2a6)]=a4_0x5a9e26(0x232),exports[a4_0x5a9e26(0x1f1)]=a4_0x5a9e26(0x1a0),exports[a4_0x5a9e26(0x18a)]=function(_0xa5868d){const _0x10a0ce=a4_0x5a9e26,_0x2b3466={};_0x2b3466['GwjOq']=_0x10a0ce(0x1fd),_0x2b3466['waRxh']='string',_0x2b3466[_0x10a0ce(0x214)]=_0x10a0ce(0x19a),_0x2b3466[_0x10a0ce(0x2af)]=_0x10a0ce(0x1db),_0x2b3466[_0x10a0ce(0x273)]=_0x10a0ce(0x2ad),_0x2b3466[_0x10a0ce(0x224)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2b3466[_0x10a0ce(0x1ca)]=_0x10a0ce(0x29a);const _0x1331e4=_0x2b3466,_0x39caf3={};_0x39caf3[_0x10a0ce(0x1df)]=_0x1331e4[_0x10a0ce(0x2b2)],_0x39caf3[_0x10a0ce(0x1b7)]=_0x1331e4['waRxh'];const _0x420718={};_0x420718[_0x10a0ce(0x1df)]=_0x1331e4[_0x10a0ce(0x214)],_0x420718[_0x10a0ce(0x1b7)]=_0x1331e4['waRxh'];const _0x41b7d7={};_0x41b7d7[_0x10a0ce(0x1df)]=_0x1331e4[_0x10a0ce(0x2af)],_0x41b7d7['type']=_0x1331e4[_0x10a0ce(0x1f2)];const _0x42dfa0={};_0x42dfa0['description']=_0x1331e4[_0x10a0ce(0x273)],_0x42dfa0[_0x10a0ce(0x1b7)]=_0x1331e4[_0x10a0ce(0x1f2)];const _0x53a991={};_0x53a991[_0x10a0ce(0x1df)]=_0x1331e4['mmWZD'],_0x53a991[_0x10a0ce(0x1b7)]=_0x1331e4['waRxh'];const _0x17486e={};return _0x17486e[_0x10a0ce(0x229)]=_0x39caf3,_0x17486e[_0x10a0ce(0x1c9)]=_0x420718,_0x17486e[_0x10a0ce(0x1af)]=_0x41b7d7,_0x17486e[_0x10a0ce(0x189)]=_0x42dfa0,_0x17486e['region']=_0x53a991,_0xa5868d[_0x10a0ce(0x1b8)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x17486e)['help'](_0x1331e4[_0x10a0ce(0x1ca)])[_0x10a0ce(0x28b)];},exports[a4_0x5a9e26(0x1bc)]=async function(_0x1e2f7c){const _0x2d261f=a4_0x5a9e26,_0x3aacda={'FFWBT':'2|3|1|4|0','smRZU':_0x2d261f(0x297),'VbAiR':'6|2|7|3|4|8|5|1|0','zyaIl':'3|1|5|0|2|4|7|6','URtOb':_0x2d261f(0x1fd),'nsgAH':_0x2d261f(0x272),'ISZid':_0x2d261f(0x19a),'KtsIY':_0x2d261f(0x1db),'hiADf':_0x2d261f(0x2ad),'yqVtU':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','raQmP':_0x2d261f(0x29a),'wwXnN':_0x2d261f(0x268),'tLGst':function(_0x2a6c72,_0x348d7e,_0x1f8fcf,_0x40d8ea,_0x4d2654,_0x120dfe,_0x5d4068,_0x1aa1ac,_0x1e02c0,_0x3f1c8a){return _0x2a6c72(_0x348d7e,_0x1f8fcf,_0x40d8ea,_0x4d2654,_0x120dfe,_0x5d4068,_0x1aa1ac,_0x1e02c0,_0x3f1c8a);},'NCkLk':_0x2d261f(0x1ec),'dvfNV':_0x2d261f(0x239),'ddGWx':function(_0x2f89a2){return _0x2f89a2();},'GrIzd':_0x2d261f(0x1a2),'ZflAZ':'2|0|5|3|1|4|7|6','WvITt':function(_0x3e4356){return _0x3e4356();},'VwFEH':function(_0x40334c,_0x57b285){return _0x40334c===_0x57b285;},'QZsio':'yyKjO','dXlZY':_0x2d261f(0x23b),'EXwHb':function(_0x4aaea6,_0x393740,_0x3b995b,_0x407dc0,_0x2b3e20,_0x2dc2ab,_0x454ade){return _0x4aaea6(_0x393740,_0x3b995b,_0x407dc0,_0x2b3e20,_0x2dc2ab,_0x454ade);},'yjGtP':_0x2d261f(0x18f),'JfrSd':_0x2d261f(0x271),'OtMxz':function(_0x139c36,_0x31f47b,_0x1caba0,_0x5169b3,_0x3df25b,_0x217d22,_0x1abbf7){return _0x139c36(_0x31f47b,_0x1caba0,_0x5169b3,_0x3df25b,_0x217d22,_0x1abbf7);},'tDHlP':_0x2d261f(0x1b5),'DoYlR':_0x2d261f(0x24f),'CQnAU':_0x2d261f(0x226),'HDodw':function(_0x18d823,_0xeb5a1b){return _0x18d823!==_0xeb5a1b;},'xfYlF':_0x2d261f(0x1f9),'bYLNS':function(_0xbc0462,_0x7cc2bd){return _0xbc0462!==_0x7cc2bd;},'VRtve':'OJxBk','UaXeM':_0x2d261f(0x234),'wIzDU':_0x2d261f(0x26d),'Nthvg':function(_0x3efaa0,_0x84974a,_0x361122,_0x57be49,_0x2d1159,_0x4027a1,_0x5ef4d0,_0x3bcd3d){return _0x3efaa0(_0x84974a,_0x361122,_0x57be49,_0x2d1159,_0x4027a1,_0x5ef4d0,_0x3bcd3d);},'dYbHq':_0x2d261f(0x281),'VPxaH':'aws','GMAKO':'rBCDh','wUKhj':_0x2d261f(0x280),'OfVUb':_0x2d261f(0x1cb),'PjmYa':_0x2d261f(0x285),'HfWTI':'qcUhe','JaoBm':_0x2d261f(0x247),'RkeRY':function(_0x454cce,_0x231464){return _0x454cce(_0x231464);},'ciPdv':function(_0x2cf65e,_0x4179b6){return _0x2cf65e===_0x4179b6;},'weClG':_0x2d261f(0x1d4),'vuYaB':_0x2d261f(0x17c),'ukLKG':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','lSnPs':function(_0x106e4d,_0x2d5e8d,_0x29b991,_0x427c76,_0x26f4cd,_0x41093c,_0x53fe2e,_0x496ea5){return _0x106e4d(_0x2d5e8d,_0x29b991,_0x427c76,_0x26f4cd,_0x41093c,_0x53fe2e,_0x496ea5);},'xBETJ':_0x2d261f(0x1c2),'vmBlC':function(_0x1599a0,_0x56fa66){return _0x1599a0===_0x56fa66;},'JdJQC':_0x2d261f(0x202),'WsMHo':_0x2d261f(0x175),'zKOGj':_0x2d261f(0x1f0),'yvDCJ':'create-grid-checks-auth-failed','dGkly':function(_0x372f86,_0x1eba3a){return _0x372f86===_0x1eba3a;},'FcdkN':_0x2d261f(0x1a1),'mdCFY':_0x2d261f(0x17a),'bbIed':function(_0x1329af,_0x17b3dd,_0x2fbdb0,_0x2e7bf5,_0x3958ab,_0xa9fa72,_0x5c3c31,_0x234f6c){return _0x1329af(_0x17b3dd,_0x2fbdb0,_0x2e7bf5,_0x3958ab,_0xa9fa72,_0x5c3c31,_0x234f6c);},'nbybV':_0x2d261f(0x222),'FEvgV':_0x2d261f(0x249),'OOTWJ':function(_0x218f41,_0x46cdb2){return _0x218f41===_0x46cdb2;},'jmNdR':_0x2d261f(0x17b),'Iepwg':_0x2d261f(0x1f8),'Bhook':_0x2d261f(0x17f),'heDLw':function(_0x2f28e6,_0x415905){return _0x2f28e6!==_0x415905;},'JNodI':_0x2d261f(0x1ef),'HCLHU':function(_0x4c0fae,_0x257ad1){return _0x4c0fae===_0x257ad1;},'qMVuB':_0x2d261f(0x1b9),'oMWuJ':_0x2d261f(0x18c),'pMlYc':function(_0x422b96,_0x1c9a36,_0x4bc408,_0x3ad762,_0x2d98b0,_0x4c31ff,_0x3cd3aa,_0x77266d){return _0x422b96(_0x1c9a36,_0x4bc408,_0x3ad762,_0x2d98b0,_0x4c31ff,_0x3cd3aa,_0x77266d);},'iOATU':_0x2d261f(0x275),'XVcbj':function(_0x5b36d2,_0x3e3ef7){return _0x5b36d2===_0x3e3ef7;},'vlFjL':'dftJZ','dRbID':_0x2d261f(0x270),'BxfgR':_0x2d261f(0x22e),'EqwXx':function(_0x1befdd,_0x4422f0,_0x337aea,_0x207b80,_0x41c8e1,_0x1baaf0,_0x57ab90,_0x3bbeab,_0x522409,_0x8b01a0){return _0x1befdd(_0x4422f0,_0x337aea,_0x207b80,_0x41c8e1,_0x1baaf0,_0x57ab90,_0x3bbeab,_0x522409,_0x8b01a0);},'lMHvI':function(_0x55aec6,_0x5bcb83){return _0x55aec6===_0x5bcb83;},'WsroA':_0x2d261f(0x27a),'Fdocr':_0x2d261f(0x242),'xAVYb':_0x2d261f(0x199),'ociKy':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','YXMvm':function(_0x2a6040){return _0x2a6040();},'tYHdf':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','XABzz':_0x2d261f(0x23c),'EMGbf':function(_0xf22340,_0x1d7a3b,_0x1a53b4){return _0xf22340(_0x1d7a3b,_0x1a53b4);},'WqIBJ':_0x2d261f(0x217),'FeZcM':_0x2d261f(0x2b3),'qghZA':function(_0x4323e5,_0x71af8e){return _0x4323e5!=_0x71af8e;},'JFqDR':function(_0x586171,_0x23ed9e){return _0x586171!==_0x23ed9e;},'BHyfE':function(_0x56788b,_0x16705f){return _0x56788b!=_0x16705f;},'kGsQG':function(_0x227a2e,_0x48d7af){return _0x227a2e!==_0x48d7af;},'ewhxc':function(_0x39e4a2,_0x2d5fb6){return _0x39e4a2>_0x2d5fb6;},'prVqN':function(_0x4b7d99,_0x4b84b7){return _0x4b7d99===_0x4b84b7;},'BbnhQ':_0x2d261f(0x19f),'LNFfS':_0x2d261f(0x1d5),'lUZOs':function(_0x54222f,_0x3704a5,_0x30b603){return _0x54222f(_0x3704a5,_0x30b603);},'wTXYH':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','JvvQp':'pre-spawned-invalid-vpc','ChkWZ':function(_0x25da71,_0xf0a6be,_0x486f15,_0x1bfd34){return _0x25da71(_0xf0a6be,_0x486f15,_0x1bfd34);},'RnuRK':_0x2d261f(0x248),'wqVbr':function(_0xf060ae,_0x15e806,_0x13ea1e,_0x26c557){return _0xf060ae(_0x15e806,_0x13ea1e,_0x26c557);},'bwBKQ':'Following\x20resources\x20are\x20created:','gVLQV':_0x2d261f(0x196),'CWLNt':'Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','guncB':_0x2d261f(0x197),'gcLWZ':_0x2d261f(0x25f),'qSoHl':function(_0x5526f7,_0x45082e){return _0x5526f7(_0x45082e);},'jJKqV':function(_0x524375,_0x1b0061,_0x3785eb,_0x274159,_0x351efd){return _0x524375(_0x1b0061,_0x3785eb,_0x274159,_0x351efd);},'MkhoU':function(_0x39ab3a,_0x2c99b8){return _0x39ab3a===_0x2c99b8;},'ZLlmr':_0x2d261f(0x181),'hiCew':function(_0x5a64c7,_0x3aa1bf){return _0x5a64c7!==_0x3aa1bf;},'PlBuk':_0x2d261f(0x1c1),'XVpoO':_0x2d261f(0x204),'Cuziq':_0x2d261f(0x215),'awxNp':function(_0x3196e9,_0x2ec852){return _0x3196e9(_0x2ec852);},'doISF':function(_0x38cbe9,_0x1191fe,_0x3a0d30,_0x5822ac,_0x3f3b64,_0x514bfe,_0x4c40c5,_0x378661){return _0x38cbe9(_0x1191fe,_0x3a0d30,_0x5822ac,_0x3f3b64,_0x514bfe,_0x4c40c5,_0x378661);},'cTwGP':'autoscaler-creation-failed','JgJKh':_0x2d261f(0x1a3),'ofNUw':_0x2d261f(0x24c),'wiueY':function(_0x5d37fd,_0x294f9b){return _0x5d37fd!==_0x294f9b;},'NipGu':_0x2d261f(0x2a5),'DytAC':_0x2d261f(0x1c4),'eFIzT':_0x2d261f(0x258),'OAuyj':_0x2d261f(0x286),'FwqiP':_0x2d261f(0x216),'tJDbq':_0x2d261f(0x1bb),'elJyJ':function(_0xb27990,_0x41f9e3,_0x5e8c24,_0x4a1689,_0x55d450,_0x1f36a9,_0x510c74,_0x41e993,_0x1f488f){return _0xb27990(_0x41f9e3,_0x5e8c24,_0x4a1689,_0x55d450,_0x1f36a9,_0x510c74,_0x41e993,_0x1f488f);},'MhRPz':_0x2d261f(0x1aa),'KNVzd':_0x2d261f(0x257),'JYjwF':_0x2d261f(0x287),'Btzmv':function(_0x5c7959,_0x5ea268){return _0x5c7959===_0x5ea268;},'WbMOG':function(_0x12224c,_0x324a80,_0x583f5a,_0x4e86a9,_0x4629a4,_0x1e64a5){return _0x12224c(_0x324a80,_0x583f5a,_0x4e86a9,_0x4629a4,_0x1e64a5);},'snUDf':function(_0x4eba29,_0x27b2a5){return _0x4eba29(_0x27b2a5);},'wmmpp':_0x2d261f(0x207)};let _0x477b6d=![],_0x3179bf,_0x30793f,_0x2ca176,_0x11afac,_0x43cad8,_0x1de7a3,_0x590d03,_0x539c37,_0x3fddbd,_0x5d0f2e,_0x4eb126,_0x9d8492;try{global_registry[_0x2d261f(0x20c)]=_0x3aacda['ddGWx'](uuidv4);if(!fs['existsSync'](_0x3aacda[_0x2d261f(0x221)](getCredentialsPath))){if(_0x3aacda['VwFEH'](_0x3aacda[_0x2d261f(0x180)],_0x3aacda[_0x2d261f(0x180)]))console[_0x2d261f(0x1ec)](_0x3aacda[_0x2d261f(0x1a5)]),await _0x3aacda[_0x2d261f(0x1b0)](sendInstrumentationEvent,_0x1e2f7c,_0x3aacda[_0x2d261f(0x26e)],messageTypes['ERROR'],_0x3aacda[_0x2d261f(0x219)],null,_0x1e2f7c),process[_0x2d261f(0x1b4)](0x1);else throw _0x542d3c;}await _0x3aacda['OtMxz'](sendInstrumentationEvent,_0x1e2f7c,_0x3aacda[_0x2d261f(0x26e)],messageTypes[_0x2d261f(0x25c)],null,null,_0x1e2f7c);const _0x327182=JSON[_0x2d261f(0x291)](fs[_0x2d261f(0x236)](_0x3aacda[_0x2d261f(0x201)](getCredentialsPath)));global_registry[_0x2d261f(0x29c)]=_0x327182['Browserstack'][_0x2d261f(0x1e9)],global_registry['bstackAccesskey']=_0x327182[_0x2d261f(0x1c4)][_0x2d261f(0x255)];const _0x3c770b=WS_ENDPOINT['replace'](_0x3aacda['tDHlP'],_0x327182['Browserstack'][_0x2d261f(0x1e9)])[_0x2d261f(0x2b1)](_0x3aacda[_0x2d261f(0x1be)],_0x327182[_0x2d261f(0x1c4)]['password']),_0x244a2e={};_0x244a2e[_0x2d261f(0x1a8)]=ws,_0x5d0f2e=new ReconnectingWebSocket(_0x3c770b,[],_0x244a2e),logger['debug'](_0x3aacda[_0x2d261f(0x26b)]),webSocketUtils[_0x2d261f(0x283)](_0x5d0f2e,_0x1e2f7c['user'],_0x1e2f7c['password']);let _0x584494=DEFAULT_GRID_NAME;if(_0x1e2f7c[_0x2d261f(0x28e)]||_0x1e2f7c[_0x2d261f(0x28d)]||_0x1e2f7c[_0x2d261f(0x1e8)]){if(_0x3aacda[_0x2d261f(0x299)](_0x3aacda[_0x2d261f(0x1ce)],_0x3aacda[_0x2d261f(0x1ce)])){const _0x1d7de6=_0x3aacda[_0x2d261f(0x206)][_0x2d261f(0x2a8)]('|');let _0x3be17c=0x0;while(!![]){switch(_0x1d7de6[_0x3be17c++]){case'0':_0x36cac8[_0x2d261f(0x240)]=_0x477270[_0x3978b3][_0x2d261f(0x191)];continue;case'1':_0x3ef47e[_0x2d261f(0x2ab)](_0x121478);continue;case'2':_0x44e5d4=_0x3aacda[_0x2d261f(0x259)];continue;case'3':const _0x20a91a={};_0x20a91a[_0x2d261f(0x1b7)]=_0xe7904e[_0x2d261f(0x198)],_0x20a91a[_0x2d261f(0x254)]=_0x47cedb,_0x48c80f[_0x2d261f(0x290)](_0x116802,_0x20a91a);continue;case'4':_0x5a04c7['cloudProviderAccessKey']=_0x149aad[_0x1b4df5][_0x2d261f(0x1d6)];continue;}break;}}else{if(!(_0x1e2f7c['clusterName']&&_0x1e2f7c[_0x2d261f(0x28d)]&&_0x1e2f7c[_0x2d261f(0x1e8)])){if(_0x3aacda[_0x2d261f(0x187)](_0x3aacda[_0x2d261f(0x1d1)],_0x3aacda[_0x2d261f(0x211)]))_0x3179bf=_0x3aacda[_0x2d261f(0x1d3)],await _0x3aacda[_0x2d261f(0x220)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda['dYbHq'],_0x3aacda['NCkLk']),logger['error'](_0x3179bf),process[_0x2d261f(0x1b4)](0x1);else{const _0x59a79a=_0x3aacda['VbAiR'][_0x2d261f(0x2a8)]('|');let _0x5d0d2a=0x0;while(!![]){switch(_0x59a79a[_0x5d0d2a++]){case'0':_0x5800d0[_0x2d261f(0x1de)]=_0x2bf0e4[_0x2d261f(0x1de)];continue;case'1':_0x449cc6['hubVersion']=_0x26ebd5[_0x2d261f(0x28a)];continue;case'2':_0x45e698=_0x2d261f(0x20d)+_0x4707ca+_0x2d261f(0x28c)+_0x3bfae0+'\x27';continue;case'3':const _0x4bccff={};_0x4bccff[_0x2d261f(0x1b7)]=_0x2af74f['LOG'],_0x4bccff[_0x2d261f(0x254)]=_0x2a5ea1,_0x3062f4['sendEventToBackend'](_0x5d36b4,_0x4bccff);continue;case'4':_0x4a5efa[_0x2d261f(0x28d)]=_0x5331aa;continue;case'5':_0x5f5a5a[_0x2d261f(0x28e)]=_0x4d7844;continue;case'6':const _0x4d3ca9={};_0x4d3ca9[_0x2d261f(0x1b7)]=_0x275241[_0x2d261f(0x178)],_0x4d3ca9['message']=_0x2d261f(0x27e),_0x568c47[_0x2d261f(0x290)](_0xb169a9,_0x4d3ca9);continue;case'7':_0x1007b5[_0x2d261f(0x2ab)](_0x485333);continue;case'8':_0x571183[_0x2d261f(0x2a9)]=_0x59095a;continue;}break;}}}if(_0x3aacda[_0x2d261f(0x299)](_0x1e2f7c['cloudProvider'][_0x2d261f(0x29f)](),_0x3aacda['VPxaH'])){if(_0x3aacda[_0x2d261f(0x299)](_0x3aacda[_0x2d261f(0x244)],_0x3aacda[_0x2d261f(0x244)])){const _0x2154e2=_0x3aacda[_0x2d261f(0x1c7)][_0x2d261f(0x2a8)]('|');let _0x4af1ba=0x0;while(!![]){switch(_0x2154e2[_0x4af1ba++]){case'0':const _0x342c6d={};_0x342c6d['type']=_0x3f0bfe[_0x2d261f(0x198)],_0x342c6d[_0x2d261f(0x254)]=_0x45c6df,_0x14cf93[_0x2d261f(0x290)](_0x27d8ed,_0x342c6d);continue;case'1':_0x1237c='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0xba4d97+'\x20';continue;case'2':_0x5e734c=_0x2d261f(0x19b)+_0x1cc9af+_0x2d261f(0x171);continue;case'3':_0x384ea4=_0x1838a6[_0x2d261f(0x223)][_0x2d261f(0x253)]['loadBalancer'][_0x2d261f(0x210)][0x0]['hostname'];continue;case'4':_0x1cbf30[_0x2d261f(0x2ab)](_0x2b5e62);continue;case'5':_0x3deadd[_0x2d261f(0x2ab)](_0x294605);continue;case'6':const _0x4eb0a5={};_0x4eb0a5[_0x2d261f(0x1b7)]=_0x5784bf['CLI_RUN_FINISHED'],_0x4eb0a5[_0x2d261f(0x254)]=_0x2d261f(0x20a)+_0x2de676,_0x2f2cb7[_0x2d261f(0x290)](_0x98c9c6,_0x4eb0a5);continue;case'7':const _0x44894b={};_0x44894b['type']=_0x2a8a57['LOG'],_0x44894b[_0x2d261f(0x254)]=_0x402ba9,_0x59c1cd[_0x2d261f(0x290)](_0x46123e,_0x44894b);continue;}break;}}else _0x3179bf=_0x3aacda['wUKhj'],await _0x3aacda['Nthvg'](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda['yjGtP'],_0x3aacda['OfVUb'],_0x3aacda[_0x2d261f(0x1a4)]),logger['error'](_0x3179bf),process[_0x2d261f(0x1b4)](0x1);}_0x477b6d=!![],_0x2ca176=_0x1e2f7c[_0x2d261f(0x28e)],_0x30793f=_0x1e2f7c['cloudProvider'],_0x11afac=_0x1e2f7c[_0x2d261f(0x1e8)];}}if(_0x1e2f7c[_0x2d261f(0x185)]){if(_0x3aacda[_0x2d261f(0x187)](_0x3aacda[_0x2d261f(0x26f)],_0x3aacda[_0x2d261f(0x23e)]))_0x584494=_0x1e2f7c['gridName'];else{const _0x30d24e={};_0x30d24e[_0x2d261f(0x1df)]=_0x3aacda[_0x2d261f(0x245)],_0x30d24e['type']=_0x3aacda['nsgAH'];const _0x3baa4={};_0x3baa4[_0x2d261f(0x1df)]=_0x3aacda[_0x2d261f(0x237)],_0x3baa4[_0x2d261f(0x1b7)]=_0x3aacda['nsgAH'];const _0x3a20f4={};_0x3a20f4['description']=_0x3aacda[_0x2d261f(0x21b)],_0x3a20f4[_0x2d261f(0x1b7)]=_0x3aacda['nsgAH'];const _0x526a54={};_0x526a54['description']=_0x3aacda['hiADf'],_0x526a54[_0x2d261f(0x1b7)]=_0x3aacda[_0x2d261f(0x2a1)];const _0xaa0d8b={};_0xaa0d8b[_0x2d261f(0x1df)]=_0x3aacda[_0x2d261f(0x1a7)],_0xaa0d8b[_0x2d261f(0x1b7)]=_0x3aacda[_0x2d261f(0x2a1)];const _0x2ad2c9={};return _0x2ad2c9[_0x2d261f(0x229)]=_0x30d24e,_0x2ad2c9[_0x2d261f(0x1c9)]=_0x3baa4,_0x2ad2c9[_0x2d261f(0x1af)]=_0x3a20f4,_0x2ad2c9['cloud-provider']=_0x526a54,_0x2ad2c9['region']=_0xaa0d8b,_0x5290fc[_0x2d261f(0x1b8)](_0x100aa1['create'])[_0x2d261f(0x177)](_0x16358d)[_0x2d261f(0x261)](_0x2ad2c9)['help'](_0x3aacda[_0x2d261f(0x1ad)])[_0x2d261f(0x28b)];}}global_registry[_0x2d261f(0x185)]=_0x584494;const _0x2b1cb9=_0x2d261f(0x1dd)+AG_API_URL+_0x2d261f(0x25b),_0x4b24ca={};_0x4b24ca['username']=_0x327182[_0x2d261f(0x1c4)]['username'],_0x4b24ca[_0x2d261f(0x255)]=_0x327182['Browserstack'][_0x2d261f(0x255)];const _0x19eefc={};_0x19eefc['gridName']=_0x584494;const _0xaed3c7={};_0xaed3c7[_0x2d261f(0x192)]=_0x2b1cb9,_0xaed3c7[_0x2d261f(0x256)]=_0x3aacda[_0x2d261f(0x1cc)],_0xaed3c7[_0x2d261f(0x266)]=_0x4b24ca,_0xaed3c7['qs']=_0x19eefc;const _0x4b7d8c=_0xaed3c7,_0x21db04=await _0x3aacda['RkeRY'](promisifiedRequest,_0x4b7d8c);(_0x3aacda[_0x2d261f(0x1f5)](_0x21db04,null)||_0x3aacda[_0x2d261f(0x1f5)](_0x21db04,undefined))&&(_0x3aacda[_0x2d261f(0x19e)](_0x3aacda[_0x2d261f(0x27d)],_0x3aacda['vuYaB'])?_0x4cbfc5=_0x2a5319[_0x43c4f5[_0x2d261f(0x172)]]:(_0x3179bf=_0x3aacda['ukLKG'],await _0x3aacda[_0x2d261f(0x20f)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x21f)],_0x3aacda[_0x2d261f(0x1a4)]),logger['error'](_0x3179bf),process[_0x2d261f(0x1b4)](0x1)));_0x3aacda[_0x2d261f(0x1e7)](_0x21db04[_0x2d261f(0x1ff)],0x191)&&(_0x3aacda[_0x2d261f(0x299)](_0x3aacda['JdJQC'],_0x3aacda['WsMHo'])?(_0x3179bf=_0x3aacda[_0x2d261f(0x1e1)],await _0x3aacda['Nthvg'](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x1ba)],_0x3aacda[_0x2d261f(0x1a4)]),logger[_0x2d261f(0x1ec)](_0x3179bf),process['exit'](0x1)):_0x1bdfe5['info'](_0x2d261f(0x29b)+_0x2ef110[_0x2d261f(0x1d7)](_0x5a89b7)+'\x20'));_0x3aacda['bYLNS'](_0x21db04[_0x2d261f(0x1ff)],0xc8)&&(_0x3aacda['dGkly'](_0x3aacda[_0x2d261f(0x218)],_0x3aacda[_0x2d261f(0x293)])?_0x32ae1e=_0x550b62[_0x2d261f(0x185)]:(_0x3179bf=_0x2d261f(0x296)+JSON[_0x2d261f(0x1d7)](_0x21db04),await _0x3aacda['bbIed'](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes['ERROR'],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x21e)],_0x3aacda[_0x2d261f(0x1a4)]),logger[_0x2d261f(0x1ec)](_0x3179bf),process['exit'](0x1)));const _0x51f604=JSON[_0x2d261f(0x291)](_0x21db04[_0x2d261f(0x223)]),_0x227639={};_0x227639['type']=WS_EVENTS[_0x2d261f(0x178)],_0x227639[_0x2d261f(0x254)]=_0x2d261f(0x27e),webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x227639);const _0x30ab31={};_0x30ab31[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x30ab31[_0x2d261f(0x254)]=_0x3aacda[_0x2d261f(0x17e)],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x30ab31);_0x51f604[_0x2d261f(0x1d8)]&&(_0x3aacda[_0x2d261f(0x194)](_0x3aacda['jmNdR'],_0x3aacda[_0x2d261f(0x1ed)])?(_0x3179bf=_0x3aacda[_0x2d261f(0x19c)],await _0x3aacda[_0x2d261f(0x220)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x18d)],_0x3aacda['NCkLk']),logger[_0x2d261f(0x1ec)](_0x3179bf),process['exit'](0x1)):_0x1fed54[_0x2d261f(0x2ab)](_0x2d261f(0x1b6)+_0x4d3f25+'\x20'));const _0xb0e4ba=_0x51f604[_0x2d261f(0x1ac)];let _0xd25b0b=_0xb0e4ba[_0x51f604[_0x2d261f(0x231)]];if(_0x1e2f7c[_0x2d261f(0x172)]){if(_0x3aacda['heDLw'](_0x3aacda[_0x2d261f(0x25e)],_0x3aacda[_0x2d261f(0x25e)])){const _0x5d7086=_0x3aacda['wwXnN'][_0x2d261f(0x2a8)]('|');let _0x4e3b5e=0x0;while(!![]){switch(_0x5d7086[_0x4e3b5e++]){case'0':_0x31ac50=_0x2953f9[_0x2d261f(0x28a)];continue;case'1':_0x198702=_0x2573d3[_0x2d261f(0x28e)];continue;case'2':_0x197cb1=_0x481528['securityGroups'];continue;case'3':_0x2c9ddd=_0xad76a3[_0x2d261f(0x1e8)];continue;case'4':_0x2c85d0=_0x353048[_0x2d261f(0x252)];continue;case'5':_0x3aacda[_0x2d261f(0x25a)](_0x3d28d7,_0x234d34,_0x40598f,_0x8ee36b,_0xc8839f,_0x3aa37b,_0x57183e,_0x20799a,_0x202d45,_0x5f028f);continue;case'6':_0x4c4ccb=_0x3f5b89[_0x2d261f(0x243)];continue;case'7':_0x2bdcbd=_0x54a265[_0x2d261f(0x1d2)];continue;case'8':_0xd3a7ed=_0x466102['s3bucket'];continue;case'9':_0x5c6683=_0x5d4d60[_0x2d261f(0x186)];continue;case'10':_0x1bfdb4=_0x121b73[_0x2d261f(0x1de)];continue;case'11':_0xf7e2b=_0x4f5a98[_0x2d261f(0x28d)];continue;}break;}}else _0xd25b0b=_0xb0e4ba[_0x1e2f7c[_0x2d261f(0x172)]];}if(_0x3aacda['HCLHU'](_0xd25b0b,undefined)){if(_0x3aacda['ciPdv'](_0x3aacda[_0x2d261f(0x251)],_0x3aacda[_0x2d261f(0x251)]))_0x3179bf=_0x3aacda[_0x2d261f(0x203)],await _0x3aacda[_0x2d261f(0x294)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x18b)],_0x3aacda['NCkLk']),logger['error'](_0x3179bf),process[_0x2d261f(0x1b4)](0x1);else{const _0x3e1d01={};_0x3e1d01[_0x2d261f(0x1b7)]=_0x1d2aca[_0x2d261f(0x198)],_0x3e1d01[_0x2d261f(0x254)]=_0x46ca16,_0xc49739[_0x2d261f(0x290)](_0x542948,_0x3e1d01,_0x3aacda[_0x2d261f(0x1a4)],!![]);}}global_registry[_0x2d261f(0x1a6)]=_0xd25b0b['id'],_0x3179bf=_0x2d261f(0x1da)+_0x584494+_0x2d261f(0x208)+_0xd25b0b[_0x2d261f(0x1a9)]+'\x27\x20grid\x20profile',logger[_0x2d261f(0x2ab)](_0x3179bf);const _0x5b712d={};_0x5b712d['type']=WS_EVENTS['LOG'],_0x5b712d[_0x2d261f(0x254)]=_0x3179bf,webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x5b712d);if(_0x3aacda[_0x2d261f(0x1f5)](_0x477b6d,![])){if(_0x3aacda['XVcbj'](_0x3aacda[_0x2d261f(0x260)],_0x3aacda['dRbID']))_0x32c0dd['debug'](_0x3aacda[_0x2d261f(0x288)]),_0x3aacda[_0x2d261f(0x201)](_0x3b791d);else{const _0x25a045=_0x3aacda[_0x2d261f(0x1c0)]['split']('|');let _0x24e9bf=0x0;while(!![]){switch(_0x25a045[_0x24e9bf++]){case'0':_0x590d03=_0xd25b0b['vpc'];continue;case'1':_0x539c37=_0xd25b0b[_0x2d261f(0x267)];continue;case'2':_0x30793f=_0xd25b0b[_0x2d261f(0x28d)];continue;case'3':_0x9d8492=_0x51f604[_0x2d261f(0x1de)];continue;case'4':_0x43cad8=_0xd25b0b[_0x2d261f(0x252)];continue;case'5':_0x2ca176=_0xd25b0b[_0x2d261f(0x28e)];continue;case'6':_0x4eb126=_0x51f604[_0x2d261f(0x28a)];continue;case'7':_0x3aacda[_0x2d261f(0x195)](updateGlobalRegistryWithConfig,_0x30793f,_0x2ca176,_0x11afac,_0x43cad8,_0x1de7a3,_0x539c37,_0xd25b0b,_0x4eb126,_0x9d8492);continue;case'8':securityGroups=_0xd25b0b[_0x2d261f(0x209)];continue;case'9':_0x1de7a3=_0xd25b0b[_0x2d261f(0x186)];continue;case'10':_0x11afac=_0xd25b0b['region'];continue;case'11':subnets=_0xd25b0b[_0x2d261f(0x1d2)];continue;}break;}}}else{if(_0x3aacda[_0x2d261f(0x174)](_0x3aacda[_0x2d261f(0x2aa)],_0x3aacda[_0x2d261f(0x1e0)]))_0x517e53['info'](_0x3aacda[_0x2d261f(0x182)]);else{const _0x5e376e=_0x3aacda['xAVYb'][_0x2d261f(0x2a8)]('|');let _0x4f83ec=0x0;while(!![]){switch(_0x5e376e[_0x4f83ec++]){case'0':_0x3179bf=_0x2d261f(0x20d)+_0x584494+'\x20in\x20existing\x20cluster\x20\x27'+_0x2ca176+'\x27';continue;case'1':const _0x33de43={};_0x33de43[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x33de43['message']=_0x3179bf,webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x33de43);continue;case'2':logger[_0x2d261f(0x2ab)](_0x3179bf);continue;case'3':global_registry[_0x2d261f(0x28a)]=_0x51f604[_0x2d261f(0x28a)];continue;case'4':global_registry[_0x2d261f(0x2a9)]=_0x11afac;continue;case'5':global_registry[_0x2d261f(0x1de)]=_0x51f604[_0x2d261f(0x1de)];continue;case'6':global_registry[_0x2d261f(0x28d)]=_0x30793f;continue;case'7':const _0x42f70b={};_0x42f70b[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x178)],_0x42f70b[_0x2d261f(0x254)]=_0x2d261f(0x27e),webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x42f70b);continue;case'8':global_registry[_0x2d261f(0x28e)]=_0x2ca176;continue;}break;}}}const _0x5d6bc3=_0x327182['cloudProvider']||{};if(_0x3aacda['lMHvI'](_0x5d6bc3[_0x30793f],undefined)){logger['info'](_0x3aacda[_0x2d261f(0x21c)]);const [_0x2437f1,_0x5512d3]=await _0x3aacda[_0x2d261f(0x200)](inputCloudProviderKeys,_0x30793f);_0x327182[_0x2d261f(0x28d)]={};const _0x371652={};_0x371652[_0x2d261f(0x1d6)]=_0x2437f1,_0x371652[_0x2d261f(0x191)]=_0x5512d3,_0x327182[_0x2d261f(0x28d)][_0x30793f]=_0x371652,fs[_0x2d261f(0x1cd)](_0x3aacda[_0x2d261f(0x1e2)](getCredentialsPath),JSON[_0x2d261f(0x1d7)](_0x327182)),logger[_0x2d261f(0x241)](_0x3aacda[_0x2d261f(0x1fa)]),global_registry[_0x2d261f(0x27f)]=_0x2437f1,global_registry[_0x2d261f(0x240)]=_0x5512d3;}else{const _0x1b24d6=_0x3aacda['XABzz'][_0x2d261f(0x2a8)]('|');let _0x312435=0x0;while(!![]){switch(_0x1b24d6[_0x312435++]){case'0':logger['info'](_0x3179bf);continue;case'1':global_registry[_0x2d261f(0x240)]=_0x5d6bc3[_0x30793f][_0x2d261f(0x191)];continue;case'2':global_registry[_0x2d261f(0x27f)]=_0x5d6bc3[_0x30793f]['accessKey'];continue;case'3':const _0x1c4df0={};_0x1c4df0[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x1c4df0[_0x2d261f(0x254)]=_0x3179bf,webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x1c4df0);continue;case'4':_0x3179bf=_0x3aacda[_0x2d261f(0x259)];continue;}break;}}_0x3aacda[_0x2d261f(0x282)](_0x30793f,AWS)&&(logger[_0x2d261f(0x241)](_0x3aacda[_0x2d261f(0x288)]),_0x3aacda[_0x2d261f(0x221)](configureAWSIfNotConfigured));let _0x2746c4,_0x2fa8b6;if(_0x3aacda[_0x2d261f(0x19e)](_0x477b6d,![])){_0x3179bf=_0x2d261f(0x1c5)+_0x11afac+').';const _0x21cc72={};_0x21cc72[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x21cc72[_0x2d261f(0x254)]=_0x3179bf,webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x21cc72),logger[_0x2d261f(0x2ab)](_0x3179bf);const _0x30d47d=await _0x3aacda['EMGbf'](isClusterPresent,_0x30793f,_0x2ca176);let _0x57bc9b;if(_0x30d47d){const _0x4175c2={};_0x4175c2[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x4175c2[_0x2d261f(0x254)]='Cluster\x20'+_0x2ca176+_0x2d261f(0x22d),webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x4175c2,_0x3aacda[_0x2d261f(0x227)]),logger['warn']('Cluster\x20'+_0x2ca176+_0x2d261f(0x22d)),_0x2746c4=await _0x3aacda['RkeRY'](getClusterInfo,_0x2ca176),_0x477b6d=!![];}else{const _0x201ae0={};_0x201ae0['type']=WS_EVENTS[_0x2d261f(0x198)],_0x201ae0[_0x2d261f(0x254)]=_0x3aacda['FeZcM'],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x201ae0),logger[_0x2d261f(0x2ab)](_0x3aacda[_0x2d261f(0x1ae)]);const _0x474731=_0x3aacda[_0x2d261f(0x1ee)](_0x590d03,null)&&_0x3aacda[_0x2d261f(0x176)](_0x590d03,undefined),_0x4e762b=_0x3aacda['BHyfE'](subnets,null)&&_0x3aacda['kGsQG'](subnets,undefined)&&_0x3aacda[_0x2d261f(0x235)](subnets['length'],0x0);let _0x5b199d;if(_0x474731){_0x3aacda[_0x2d261f(0x1d9)](_0x4e762b,![])&&(_0x3179bf=_0x3aacda[_0x2d261f(0x1ea)],await _0x3aacda[_0x2d261f(0x27c)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x22f)],_0x3aacda[_0x2d261f(0x1a4)]),logger[_0x2d261f(0x1ec)](_0x3179bf),process[_0x2d261f(0x1b4)](0x1));const _0x266a76=await _0x3aacda['lUZOs'](isVPCPresent,_0x590d03,_0x11afac);_0x3aacda[_0x2d261f(0x246)](_0x266a76,![])?(_0x3179bf=_0x3aacda[_0x2d261f(0x1d0)],await _0x3aacda['Nthvg'](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x2ae)],_0x3aacda[_0x2d261f(0x1a4)]),logger[_0x2d261f(0x1ec)](_0x3179bf),process[_0x2d261f(0x1b4)](0x1)):logger['info'](_0x2d261f(0x1b6)+_0x590d03+'\x20');const _0x4233b0=await _0x3aacda[_0x2d261f(0x1dc)](isSubnetsValid,subnets,_0x590d03,_0x11afac);_0x3aacda['prVqN'](_0x4233b0[0x0],![])?(_0x3179bf='Subnets:\x20'+_0x4233b0[0x1]+_0x2d261f(0x1f3)+_0x590d03+_0x2d261f(0x19d),await _0x3aacda[_0x2d261f(0x294)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x21d)],_0x3aacda[_0x2d261f(0x1a4)]),logger[_0x2d261f(0x1ec)](_0x3179bf),process[_0x2d261f(0x1b4)](0x1)):logger[_0x2d261f(0x2ab)](_0x2d261f(0x29b)+JSON['stringify'](subnets)+'\x20');const _0x16f061=await _0x3aacda[_0x2d261f(0x22b)](createClusterStack,_0x2ca176,_0x590d03,subnets);logger['info'](_0x3aacda[_0x2d261f(0x1b1)]),logger[_0x2d261f(0x2ab)](_0x2d261f(0x17d)+_0x16f061[_0x2d261f(0x295)][0x0][_0x2d261f(0x265)][0x3][_0x2d261f(0x22c)]+'\x20'),logger[_0x2d261f(0x2ab)](_0x2d261f(0x262)+_0x16f061['Stacks'][0x0]['Outputs'][0x1]['OutputValue']+'\x20'),logger[_0x2d261f(0x2ab)](_0x2d261f(0x1e3)+_0x16f061[_0x2d261f(0x295)][0x0][_0x2d261f(0x265)][0x0][_0x2d261f(0x22c)][_0x2d261f(0x2a8)](',')+'\x20'),logger[_0x2d261f(0x2ab)](_0x2d261f(0x1bf)+_0x16f061['Stacks'][0x0][_0x2d261f(0x265)][0x4][_0x2d261f(0x22c)]+'\x20');}else{const _0x2dbd74={};_0x2dbd74[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x2dbd74[_0x2d261f(0x254)]=_0x3aacda[_0x2d261f(0x173)],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x2dbd74),logger['info'](_0x3aacda['gVLQV']),_0x3aacda[_0x2d261f(0x200)](sendAWSInfoToHST,_0x5d0f2e);const _0x5377d2={};_0x5377d2[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x5377d2[_0x2d261f(0x254)]=_0x3aacda['CWLNt'],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x5377d2),logger[_0x2d261f(0x2ab)](_0x3aacda[_0x2d261f(0x1b3)]);const _0x28876b=await _0x3aacda[_0x2d261f(0x200)](createClusterStack,_0x2ca176),_0xa58975=_0x28876b[_0x2d261f(0x295)][0x0]['Outputs'][0x0][_0x2d261f(0x22c)][_0x2d261f(0x2a8)](',');_0x5b199d=_0x28876b[_0x2d261f(0x295)][0x0][_0x2d261f(0x265)][0x1][_0x2d261f(0x22c)];const _0x5ed3e1=_0x28876b['Stacks'][0x0][_0x2d261f(0x265)][0x2][_0x2d261f(0x22c)],_0x2d1650=_0x28876b[_0x2d261f(0x295)][0x0][_0x2d261f(0x265)][0x3][_0x2d261f(0x22c)];_0x57bc9b=_0x28876b[_0x2d261f(0x295)][0x0]['Outputs'][0x4][_0x2d261f(0x22c)];const _0x36b056=_0x28876b[_0x2d261f(0x295)][0x0][_0x2d261f(0x265)][0x5][_0x2d261f(0x22c)][_0x2d261f(0x2a8)](','),_0x40faa4={};_0x40faa4[_0x2d261f(0x1b7)]=WS_EVENTS['LOG'],_0x40faa4['message']=_0x2d261f(0x205)+_0x2d1650+_0x2d261f(0x28f)+_0x5b199d+',\x20VPC\x20=>\x20'+_0x5ed3e1+_0x2d261f(0x233)+_0x36b056+',\x20SecurityGroups\x20=>\x20'+_0xa58975+_0x2d261f(0x1f4)+_0x57bc9b+'\x20',webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x40faa4),logger[_0x2d261f(0x2ab)](_0x3aacda[_0x2d261f(0x1b1)]),logger[_0x2d261f(0x2ab)](_0x2d261f(0x17d)+_0x2d1650+'\x20'),logger[_0x2d261f(0x2ab)](_0x2d261f(0x262)+_0x5b199d+'\x20'),logger[_0x2d261f(0x2ab)]('VPC\x20=>\x20'+_0x5ed3e1+'\x20'),logger[_0x2d261f(0x2ab)]('Subnets\x20=>\x20'+_0x36b056+'\x20'),logger[_0x2d261f(0x2ab)](_0x2d261f(0x1e3)+_0xa58975+'\x20'),logger[_0x2d261f(0x2ab)](_0x2d261f(0x1bf)+_0x57bc9b+'\x20');const _0x1236ad={};_0x1236ad[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x1236ad[_0x2d261f(0x254)]=_0x2d261f(0x25f),webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x1236ad),logger[_0x2d261f(0x2ab)](_0x3aacda[_0x2d261f(0x1fc)]);}}}_0x2746c4=await _0x3aacda[_0x2d261f(0x20e)](getClusterInfo,_0x2ca176);const [_0x5c56e4,_0x212c6,_0x46faf9,_0x1a9131,_0x27a2ab]=await _0x3aacda[_0x2d261f(0x1fb)](createK8sClient,_0x2746c4['cluster'][_0x2d261f(0x1a9)],_0x2746c4[_0x2d261f(0x18e)][_0x2d261f(0x23f)],_0x2746c4[_0x2d261f(0x18e)][_0x2d261f(0x292)]['data'],global_registry[_0x2d261f(0x2a9)]);if(_0x3aacda[_0x2d261f(0x23d)](_0x477b6d,![])){const _0xcd4157={};_0xcd4157[_0x2d261f(0x1b7)]=WS_EVENTS['LOG'],_0xcd4157['message']=_0x3aacda['ZLlmr'],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0xcd4157),logger['info'](_0x3aacda[_0x2d261f(0x230)]);try{const _0x48896f=await _0x3aacda[_0x2d261f(0x200)](createAutoscalerStack,_0x2ca176);_0x2fa8b6=_0x48896f[_0x2d261f(0x295)][0x0][_0x2d261f(0x265)][0x2][_0x2d261f(0x22c)];const _0x36319f={};_0x36319f['type']=WS_EVENTS[_0x2d261f(0x198)],_0x36319f[_0x2d261f(0x254)]=_0x2d261f(0x213)+_0x2fa8b6+'\x20',webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x36319f),logger['info'](_0x2d261f(0x213)+_0x2fa8b6+'\x20');}catch(_0xb062d0){if(_0x3aacda[_0x2d261f(0x228)](_0xb062d0[_0x2d261f(0x254)][_0x2d261f(0x2b0)](/already exists/),null)||_0x3aacda[_0x2d261f(0x23a)](_0xb062d0[_0x2d261f(0x254)][_0x2d261f(0x2b0)](/already exists/),undefined))_0x3179bf='Skipping\x20Autoscaler\x20due\x20to:\x20'+_0xb062d0[_0x2d261f(0x254)],await _0x3aacda[_0x2d261f(0x27c)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x298)],_0x3aacda['yjGtP'],_0x3aacda[_0x2d261f(0x2a2)],_0x3aacda['XVpoO']),logger['warn'](_0x3179bf);else{const _0x55db8f=_0x3aacda[_0x2d261f(0x277)]['split']('|');let _0x18b43f=0x0;while(!![]){switch(_0x55db8f[_0x18b43f++]){case'0':logger[_0x2d261f(0x1ec)](_0x3179bf);continue;case'1':_0x3179bf=_0x2d261f(0x21a)+_0xb062d0[_0x2d261f(0x254)]+_0x2d261f(0x2a0);continue;case'2':await _0x3aacda['awxNp'](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'3':await _0x3aacda[_0x2d261f(0x225)](reportToGalactusAndSendToEDS,_0x1e2f7c,_0x5d0f2e,_0x3179bf,messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x26e)],_0x3aacda[_0x2d261f(0x279)],_0x3aacda[_0x2d261f(0x1a4)]);continue;case'4':process['exit'](0x1);continue;}break;}}}let _0x2ad475=await _0x3aacda['lUZOs'](getNodeGroupInfo,_0x2ca176,_0x2ca176+_0x2d261f(0x1e6));nodeRole=_0x2ad475[_0x2d261f(0x20b)]['nodeRole'];const _0x18b8ad=await _0x3aacda[_0x2d261f(0x200)](createAuthConfigMap,nodeRole);await _0x5c56e4[_0x2d261f(0x1e4)](_0x3aacda['JgJKh'],_0x18b8ad)['catch'](_0x4338b8=>{const _0xae7f34=_0x2d261f;logger['info'](_0x3aacda[_0xae7f34(0x182)]);});}try{_0x3fddbd=_0x3aacda['qSoHl'](kebabCase,_0x584494),logger[_0x2d261f(0x2ab)](_0x3aacda[_0x2d261f(0x1f6)]);const _0x491c9f={};_0x491c9f[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x491c9f[_0x2d261f(0x254)]=_0x3aacda[_0x2d261f(0x1f6)],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x491c9f);if(_0x3aacda[_0x2d261f(0x183)](_0x3fddbd,_0x3aacda[_0x2d261f(0x1ab)])){const _0x50adb0={};_0x50adb0[_0x2d261f(0x179)]=_0x3aacda[_0x2d261f(0x2a3)],_0x50adb0[_0x2d261f(0x284)]=_0x3aacda[_0x2d261f(0x2a3)];const _0x339b5d={};_0x339b5d['name']=_0x3fddbd,_0x339b5d[_0x2d261f(0x1c3)]=_0x50adb0;const _0x115bfe={};_0x115bfe[_0x2d261f(0x190)]=_0x339b5d;let _0xf4f989=_0x115bfe;await _0x5c56e4['createNamespace'](_0xf4f989),logger[_0x2d261f(0x2ab)](_0x3aacda[_0x2d261f(0x276)]);}const _0x69a14f={};_0x69a14f[_0x2d261f(0x1b7)]=WS_EVENTS['LOG'],_0x69a14f[_0x2d261f(0x254)]=_0x3aacda[_0x2d261f(0x22a)],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x69a14f);const _0x40bef9={};_0x40bef9[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x40bef9['message']=_0x3aacda['FwqiP'],webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x40bef9),logger['info'](_0x3aacda[_0x2d261f(0x27b)]),await _0x3aacda[_0x2d261f(0x24a)](addGridComponents,_0x5c56e4,_0x212c6,_0x46faf9,_0x1a9131,_0x3fddbd,_0x2ca176,_0x2fa8b6,_0x27a2ab),_0x3179bf=_0x3aacda[_0x2d261f(0x1cf)],logger['info'](_0x3179bf);const _0x282f37={};_0x282f37[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x282f37[_0x2d261f(0x254)]=_0x3179bf,webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x282f37),_0x3179bf=_0x3aacda[_0x2d261f(0x24d)],logger[_0x2d261f(0x2ab)](_0x3179bf);const _0x56abe6={};_0x56abe6['type']=WS_EVENTS[_0x2d261f(0x198)],_0x56abe6['message']=_0x3179bf,webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x56abe6),await webSocketUtils[_0x2d261f(0x1fe)](0x1388);let _0x374b1d;await _0x5c56e4[_0x2d261f(0x263)](_0x3aacda['JYjwF'],_0x3fddbd)['then'](_0x11602c=>{const _0x3f62be=_0x2d261f,_0x2e324b=_0x3aacda['ZflAZ'][_0x3f62be(0x2a8)]('|');let _0x59ec52=0x0;while(!![]){switch(_0x2e324b[_0x59ec52++]){case'0':_0x3179bf=_0x3f62be(0x1bd)+_0x374b1d+'\x20';continue;case'1':_0x3179bf=_0x3f62be(0x19b)+_0x374b1d+_0x3f62be(0x171);continue;case'2':_0x374b1d=_0x11602c[_0x3f62be(0x223)][_0x3f62be(0x253)]['loadBalancer'][_0x3f62be(0x210)][0x0][_0x3f62be(0x24b)];continue;case'3':const _0x5e60bb={};_0x5e60bb[_0x3f62be(0x1b7)]=WS_EVENTS[_0x3f62be(0x198)],_0x5e60bb[_0x3f62be(0x254)]=_0x3179bf,webSocketUtils[_0x3f62be(0x290)](_0x5d0f2e,_0x5e60bb);continue;case'4':logger[_0x3f62be(0x2ab)](_0x3179bf);continue;case'5':logger['info'](_0x3179bf);continue;case'6':const _0x472aeb={};_0x472aeb[_0x3f62be(0x1b7)]=WS_EVENTS[_0x3f62be(0x274)],_0x472aeb['message']=_0x3f62be(0x20a)+_0x374b1d,webSocketUtils[_0x3f62be(0x290)](_0x5d0f2e,_0x472aeb);continue;case'7':const _0x112d10={};_0x112d10[_0x3f62be(0x1b7)]=WS_EVENTS[_0x3f62be(0x198)],_0x112d10['message']=_0x3179bf,webSocketUtils['sendEventToBackend'](_0x5d0f2e,_0x112d10);continue;}break;}}),await webSocketUtils[_0x2d261f(0x1fe)](0x1f4);}catch(_0xaef2aa){if(_0x3aacda[_0x2d261f(0x2a4)](_0x477b6d,![]))try{logger[_0x2d261f(0x2ab)](_0x2d261f(0x1f7)),await _0x3aacda[_0x2d261f(0x250)](removeGridComponents,_0x5c56e4,_0x212c6,_0x46faf9,_0x1a9131,_0x3fddbd),await _0x3aacda[_0x2d261f(0x1e5)](deleteClusterAndDependencies,global_registry[_0x2d261f(0x2a9)]);}catch(_0x59e9d5){throw _0x59e9d5;}throw _0xaef2aa;}}catch(_0x5d8686){const _0x1f1dc1=_0x2d261f(0x1c6)+_0x5d8686+'\x20\x0a'+JSON[_0x2d261f(0x1d7)](_0x5d8686)+'\x20';if(_0x5d0f2e){const _0x612e5={};_0x612e5[_0x2d261f(0x1b7)]=WS_EVENTS[_0x2d261f(0x198)],_0x612e5[_0x2d261f(0x254)]=_0x1f1dc1,webSocketUtils[_0x2d261f(0x290)](_0x5d0f2e,_0x612e5,_0x3aacda['NCkLk'],!![]);}const _0x47296d={};_0x47296d[_0x2d261f(0x1ec)]=_0x1f1dc1,await _0x3aacda['EXwHb'](sendInstrumentationEvent,_0x1e2f7c,_0x3aacda['yjGtP'],messageTypes[_0x2d261f(0x289)],_0x3aacda[_0x2d261f(0x269)],_0x47296d,_0x1e2f7c),logger[_0x2d261f(0x1ec)](_0x1f1dc1);}process['exit'](0x0);};function a4_0x1474(){const _0x49badc=['readFileSync','ISZid','uuid','Configuring\x20AWS','hiCew','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','4|3|0|2|1','MkhoU','HfWTI','endpoint','cloudProviderSecretKey','debug','KgdHa','vpc','GMAKO','URtOb','XVcbj','GET','pre-spawned-invalid-subnets','Grid\x20profile\x20fetched\x20from\x20backend','elJyJ','hostname','Creating\x20namespace','KNVzd','1847142lxfufi','<PasswordPlaceholder>','WbMOG','qMVuB','concurrency','status','message','password','method','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Namespace\x20Created','smRZU','tLGst','/packages/cli/create-grid-checks','INFO','20TnWfdM','JNodI','Cluster\x20and\x20node\x20group\x20created\x20successfully','vlFjL','options','ClusterRole\x20=>\x20','readNamespacedService','../../utils/createClusterStack','Outputs','auth','s3bucket','11|1|3|4|9|6|2|7|8|0|10|5','wmmpp','676963ipyMLX','CQnAU','1816584MXtlxr','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','yjGtP','PjmYa','KCyMZ','init-not-called','string','xDwmz','CLI_RUN_FINISHED','create-grid-checks-invalid-profile','eFIzT','Cuziq','../../utils/deleteStack','cTwGP','Almez','tJDbq','bbIed','weClG','CLI\x20run\x20started','cloudProviderAccessKey','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20only\x20AWS\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','prespawned-cluster-args-not-passed','HCLHU','addListeners','managedBy','zCboy','Namespace\x20created','browserstack-turboscale-grid-service','dvfNV','ERROR','hubVersion','argv','\x20in\x20existing\x20cluster\x20\x27','cloudProvider','clusterName',',\x20ClusterRole\x20=>\x20','sendEventToBackend','parse','certificateAuthority','mdCFY','pMlYc','Stacks','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','WARNING','HDodw','help','Found\x20Subnets:\x20','bstackUsername','util','promisify','toLowerCase','.\x20Deleting\x20all\x20the\x20stacks','nsgAH','PlBuk','DytAC','Btzmv','default','command','../../utils/hstUtils','split','clusterRegion','WsroA','info','../../utils/userInput','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','JvvQp','xKBbz','match','replace','GwjOq','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.',':4444/wd/hub','gridProfile','gVLQV','lMHvI','XmtiP','JFqDR','epilogue','CLI_RUN_STARTED','createdBy','jEKJp','xrUWI','NOoNq','Cluster\x20=>\x20','FEvgV','create-grid-checks-grid-already-exists','QZsio','Creating\x20Autoscaler\x20Role','GrIzd','wiueY','366228VzGIxb','gridName','instanceType','bYLNS','../../utils/createk8sClient','cloud-provider','builder','iOATU','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Bhook','cluster','create-grid-called','metadata','secret','url','6203592EBHLOg','OOTWJ','EqwXx','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.','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','LOG','7|0|2|1|6|4|8|3|5','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://','Iepwg','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','ciPdv','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Create\x20a\x20new\x20Automation\x20grid.','hWmsZ','Authmap\x20already\x20exists.\x20Not\x20updating','kube-system','NCkLk','dXlZY','gridProfileId','yqVtU','WebSocket','name','Grid\x20spawned\x20on\x20the\x20cluster','NipGu','gridProfiles','raQmP','FeZcM','cluster-name','EXwHb','bwBKQ','../../utils/gridComponents','guncB','exit','<UsernamePlaceholder>','Found\x20VPC:\x20','type','usage','pbSid','yvDCJ','Spawning\x20Grid\x20on\x20the\x20Cluster','handler','Grid\x20can\x20be\x20accessed\x20at:\x20','DoYlR','NodeRole\x20=>\x20','BxfgR','reportToGalactusAndSendToEDS','create-grid-checks-null-response','annotations','Browserstack','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','zyaIl','1550226xIqSNY','grid-profile','SJkLP','non-aws-cluster','JaoBm','writeFileSync','xfYlF','MhRPz','wTXYH','VRtve','subnets','wIzDU','JqtqT','pre-spawned-subnets-not-selected','accessKey','stringify','alreadyPresent','prVqN','Will\x20be\x20spawning\x20the\x20grid\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','ChkWZ','https://','browserVersion','description','Fdocr','zKOGj','YXMvm','SecurityGroups\x20=>\x20','createNamespacedConfigMap','snUDf','-NodeGroup','vmBlC','region','username','BbnhQ','364993wwulpo','error','jmNdR','qghZA','snpDH','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','desc','waRxh','\x20are\x20not\x20present\x20in\x20VPC:\x20',',\x20NodeRole\x20=>\x20','VwFEH','ofNUw','Deleting\x20the\x20CloudFormation\x20Stacks','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','NAtCz','tYHdf','jJKqV','gcLWZ','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','delay','statusCode','RkeRY','ddGWx','moDgn','oMWuJ','warning','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','FFWBT','grid-spawning-failed','\x20using\x20\x27','securityGroups','CLI\x20run\x20finished:\x20','nodegroup','requestId','Spawning\x20the\x20grid\x20','qSoHl','lSnPs','ingress','UaXeM','4LcdXgg','Autoscaler\x20Role\x20created.ARN:\x20','vzDqI','1|3|0|2|4','Spawning\x20grid\x20on\x20to\x20the\x20cluster','warn','FcdkN','JfrSd','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','KtsIY','ociKy','RnuRK','nbybV','xBETJ','Nthvg','WvITt','create-grid-checks-non-200','body','mmWZD','doISF','Adding\x20Websocket\x20listeners','WqIBJ','kGsQG','grid-name','OAuyj','wqVbr','OutputValue','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','2|5|10|4|9|0|8|11|1|6|3|7','LNFfS','ZLlmr','defaultGridProfile','grid',',\x20Subnets\x20=>\x20','JvUIy','ewhxc'];a4_0x1474=function(){return _0x49badc;};return a4_0x1474();}
@@ -1 +1 @@
1
- const a9_0x28ea46=a9_0x583b;function a9_0x1438(){const _0x234d61=['epilogue','3gQOnUi','HLRDC','strict','126XJnDea','recommendCommands','help','470668eShTlN','delete','351024ELBMxD','NUNny','../config/constants','510480gjSfeC','List\x20Grid\x20resources.','handler','command','1841168iQOgDX','delete_commands','19225wwEBDG','builder','usage','2857554wfrdBb','commandDir','60221jocvbg'];a9_0x1438=function(){return _0x234d61;};return a9_0x1438();}function a9_0x583b(_0x1371cb,_0x17417d){const _0x143822=a9_0x1438();return a9_0x583b=function(_0x583b78,_0x234fc7){_0x583b78=_0x583b78-0x19a;let _0x3078d5=_0x143822[_0x583b78];return _0x3078d5;},a9_0x583b(_0x1371cb,_0x17417d);}(function(_0x2399e5,_0xa98178){const _0x1ff260=a9_0x583b,_0x4684f9=_0x2399e5();while(!![]){try{const _0x562166=-parseInt(_0x1ff260(0x1ab))/0x1+parseInt(_0x1ff260(0x1a0))/0x2*(parseInt(_0x1ff260(0x19a))/0x3)+parseInt(_0x1ff260(0x1a2))/0x4+parseInt(_0x1ff260(0x1a5))/0x5+parseInt(_0x1ff260(0x19d))/0x6*(-parseInt(_0x1ff260(0x1b0))/0x7)+parseInt(_0x1ff260(0x1a9))/0x8+-parseInt(_0x1ff260(0x1ae))/0x9;if(_0x562166===_0xa98178)break;else _0x4684f9['push'](_0x4684f9['shift']());}catch(_0x2c9885){_0x4684f9['push'](_0x4684f9['shift']());}}}(a9_0x1438,0x21ad2));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x28ea46(0x1a4));exports[a9_0x28ea46(0x1a8)]='delete',exports['desc']=a9_0x28ea46(0x1a6),exports[a9_0x28ea46(0x1ac)]=function(_0x5e3c29){const _0x4a633a=a9_0x28ea46,_0x28a0dd={};_0x28a0dd[_0x4a633a(0x19b)]=_0x4a633a(0x1aa),_0x28a0dd[_0x4a633a(0x1a3)]=_0x4a633a(0x19f);const _0x44ad42=_0x28a0dd;return _0x5e3c29[_0x4a633a(0x1ad)](HELP_HEADER_MESSAGE[_0x4a633a(0x1a1)])[_0x4a633a(0x1b1)](HELP_FOOTER_MESSAGE)[_0x4a633a(0x1af)](_0x44ad42['HLRDC'])['demandCommand']()[_0x4a633a(0x19e)]()[_0x4a633a(0x19c)]()[_0x4a633a(0x19f)](_0x44ad42[_0x4a633a(0x1a3)]);},exports[a9_0x28ea46(0x1a7)]=function(_0x8661fc){};
1
+ function a5_0x3923(_0xdcf52d,_0x264d7a){const _0x8dbdf0=a5_0x8dbd();return a5_0x3923=function(_0x3923f4,_0x3ff4ac){_0x3923f4=_0x3923f4-0x1da;let _0x3a6e8a=_0x8dbdf0[_0x3923f4];return _0x3a6e8a;},a5_0x3923(_0xdcf52d,_0x264d7a);}function a5_0x8dbd(){const _0x176cd8=['1836Fhdjts','2445ZtuEHx','BwKvR','2611683kBPfci','2373630SYTPvR','help','builder','3677nnojvu','demandCommand','delete','18HeuZjf','commandDir','delete_commands','301721YXiGHU','strict','handler','asMwR','494EdTaKn','6517500MZUHVM','3187808YJCEaT','List\x20Grid\x20resources.'];a5_0x8dbd=function(){return _0x176cd8;};return a5_0x8dbd();}const a5_0xf0a802=a5_0x3923;(function(_0x1f6c47,_0x3b3372){const _0x2acdb4=a5_0x3923,_0x4aab83=_0x1f6c47();while(!![]){try{const _0x522331=parseInt(_0x2acdb4(0x1e7))/0x1*(-parseInt(_0x2acdb4(0x1dc))/0x2)+parseInt(_0x2acdb4(0x1e4))/0x3+parseInt(_0x2acdb4(0x1e0))/0x4*(parseInt(_0x2acdb4(0x1e1))/0x5)+parseInt(_0x2acdb4(0x1ea))/0x6*(parseInt(_0x2acdb4(0x1ed))/0x7)+-parseInt(_0x2acdb4(0x1de))/0x8+parseInt(_0x2acdb4(0x1e3))/0x9+parseInt(_0x2acdb4(0x1dd))/0xa;if(_0x522331===_0x3b3372)break;else _0x4aab83['push'](_0x4aab83['shift']());}catch(_0xabb5a3){_0x4aab83['push'](_0x4aab83['shift']());}}}(a5_0x8dbd,0xbe7b4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']='delete',exports['desc']=a5_0xf0a802(0x1df),exports[a5_0xf0a802(0x1e6)]=function(_0x3996af){const _0x4cdd38=a5_0xf0a802,_0x2fc420={};_0x2fc420[_0x4cdd38(0x1db)]=_0x4cdd38(0x1ec),_0x2fc420[_0x4cdd38(0x1e2)]=_0x4cdd38(0x1e5);const _0x38e159=_0x2fc420;return _0x3996af['usage'](HELP_HEADER_MESSAGE[_0x4cdd38(0x1e9)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4cdd38(0x1eb)](_0x38e159[_0x4cdd38(0x1db)])[_0x4cdd38(0x1e8)]()['recommendCommands']()[_0x4cdd38(0x1ee)]()[_0x4cdd38(0x1e5)](_0x38e159['BwKvR']);},exports[a5_0xf0a802(0x1da)]=function(_0x3622de){};
@@ -1 +1 @@
1
- function a10_0x2284(_0x5dd6d1,_0x523701){const _0x1077ee=a10_0x1077();return a10_0x2284=function(_0x2284d6,_0x3fbab8){_0x2284d6=_0x2284d6-0x16e;let _0x93d527=_0x1077ee[_0x2284d6];return _0x93d527;},a10_0x2284(_0x5dd6d1,_0x523701);}const a10_0x1f22f6=a10_0x2284;(function(_0x30e65c,_0x25be69){const _0x30d40c=a10_0x2284,_0x4cfb75=_0x30e65c();while(!![]){try{const _0x53ab87=-parseInt(_0x30d40c(0x17a))/0x1*(parseInt(_0x30d40c(0x1b5))/0x2)+-parseInt(_0x30d40c(0x1de))/0x3+parseInt(_0x30d40c(0x195))/0x4+-parseInt(_0x30d40c(0x1d6))/0x5*(parseInt(_0x30d40c(0x1cf))/0x6)+parseInt(_0x30d40c(0x1cd))/0x7*(-parseInt(_0x30d40c(0x1f0))/0x8)+parseInt(_0x30d40c(0x206))/0x9*(-parseInt(_0x30d40c(0x179))/0xa)+parseInt(_0x30d40c(0x1a3))/0xb;if(_0x53ab87===_0x25be69)break;else _0x4cfb75['push'](_0x4cfb75['shift']());}catch(_0x51af40){_0x4cfb75['push'](_0x4cfb75['shift']());}}}(a10_0x1077,0x68f6e));const fs=require('fs'),util=require(a10_0x1f22f6(0x1d2)),request=require(a10_0x1f22f6(0x17c)),{v4:uuidv4}=require(a10_0x1f22f6(0x183)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a10_0x1f22f6(0x1b7)),{logger}=require(a10_0x1f22f6(0x1e3)),{getCloudProviderObject}=require(a10_0x1f22f6(0x20a)),{removeGridComponents,deleteClusterAndDependencies}=require(a10_0x1f22f6(0x1ac)),{sendInstrumentationEvent}=require(a10_0x1f22f6(0x18f)),{inputConfirmation,inputCloudProviderKeys}=require(a10_0x1f22f6(0x1c5)),{createK8sClient}=require(a10_0x1f22f6(0x1a1)),{kebabCase,getCredentialsPath,getGridDetails}=require(a10_0x1f22f6(0x20b)),promisifiedRequest=util[a10_0x1f22f6(0x1a0)](request);exports[a10_0x1f22f6(0x1b6)]='grid',exports[a10_0x1f22f6(0x17b)]=a10_0x1f22f6(0x197),exports['builder']=function(_0x3a19be){const _0x42ffaf=a10_0x1f22f6,_0x3797aa={};_0x3797aa[_0x42ffaf(0x177)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x3797aa[_0x42ffaf(0x1d7)]='string',_0x3797aa[_0x42ffaf(0x205)]=_0x42ffaf(0x1ea);const _0x4e0543=_0x3797aa,_0x1720a5={};_0x1720a5[_0x42ffaf(0x1c0)]=_0x4e0543[_0x42ffaf(0x177)],_0x1720a5['type']=_0x4e0543[_0x42ffaf(0x1d7)];const _0xf5b7a1={};return _0xf5b7a1[_0x42ffaf(0x19c)]=_0x1720a5,_0x3a19be[_0x42ffaf(0x170)](HELP_HEADER_MESSAGE[_0x42ffaf(0x200)])[_0x42ffaf(0x201)](HELP_FOOTER_MESSAGE)[_0x42ffaf(0x19f)](_0xf5b7a1)[_0x42ffaf(0x1ea)](_0x4e0543[_0x42ffaf(0x205)])[_0x42ffaf(0x1e9)];},exports[a10_0x1f22f6(0x1d8)]=async function(_0x544f42){const _0x535547=a10_0x1f22f6,_0xeaea03={'icpKd':'Pass\x20the\x20ID\x20of\x20the\x20Grid','ilKMm':_0x535547(0x1aa),'vypJA':_0x535547(0x1ea),'BeSyB':_0x535547(0x207),'djARe':_0x535547(0x180),'kVefV':function(_0x1115b6){return _0x1115b6();},'CbUfc':function(_0x45813e,_0x3b8d45){return _0x45813e===_0x3b8d45;},'xKGTE':_0x535547(0x185),'XJTRu':_0x535547(0x1e6),'Omowb':_0x535547(0x1ae),'DKgWM':function(_0x17c2f4,_0x49d1da,_0x13d9fb,_0xf4cd87,_0x23d66e,_0x19f5ae,_0x41b427){return _0x17c2f4(_0x49d1da,_0x13d9fb,_0xf4cd87,_0x23d66e,_0x19f5ae,_0x41b427);},'YbjxU':_0x535547(0x1b4),'FRAMu':'init-not-called','CGiaT':function(_0x5642da,_0xe1a224,_0x449e5b,_0x4e6478,_0x5b9348,_0x4b7b60,_0x25b5ae){return _0x5642da(_0xe1a224,_0x449e5b,_0x4e6478,_0x5b9348,_0x4b7b60,_0x25b5ae);},'MNSca':_0x535547(0x1b8),'ClMAh':function(_0x2011a8){return _0x2011a8();},'JUDJS':function(_0x2ebb30,_0x3212ff,_0x4048da,_0x4c28de){return _0x2ebb30(_0x3212ff,_0x4048da,_0x4c28de);},'Zeakq':'Browserstack','TIVrQ':function(_0x224734,_0x54cc67){return _0x224734===_0x54cc67;},'Iybuo':'ilWYQ','BlRgV':function(_0x320244,_0x51faf3){return _0x320244(_0x51faf3);},'JAoOy':function(_0x245564,_0x417b4a){return _0x245564===_0x417b4a;},'GEOYq':function(_0x29edfa,_0x22510d){return _0x29edfa===_0x22510d;},'tKNmu':function(_0x2b6e38,_0x3b3b5d){return _0x2b6e38===_0x3b3b5d;},'DELVg':_0x535547(0x203),'Upwic':_0x535547(0x18a),'CumRD':_0x535547(0x1a8),'joCHE':_0x535547(0x1ed),'PHSrc':function(_0x44e4b5,_0x170a33){return _0x44e4b5===_0x170a33;},'hLzfm':function(_0x4e4eb7,_0xcaf8c5){return _0x4e4eb7===_0xcaf8c5;},'wEiVG':_0x535547(0x171),'ZsFyu':function(_0x38c1bd,_0x3f8796,_0x52c940,_0x372fa3){return _0x38c1bd(_0x3f8796,_0x52c940,_0x372fa3);},'JEEJb':function(_0x28d58e,_0x449869){return _0x28d58e===_0x449869;},'QmvHk':_0x535547(0x1ab),'lVpQB':function(_0x36018c,_0x29854d){return _0x36018c===_0x29854d;},'IbDng':_0x535547(0x181),'ePYFo':function(_0x4e08cb,_0x42e2ca,_0x963055){return _0x4e08cb(_0x42e2ca,_0x963055);},'rdtNu':_0x535547(0x190),'HFRQE':'EYYsH','DQgGv':function(_0x3354ce){return _0x3354ce();},'snIoi':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','JmeDv':function(_0x3bf50b,_0x5e5769){return _0x3bf50b(_0x5e5769);},'ZKaMX':function(_0x10df2e,_0x2409fa,_0x2c6fbc,_0x496763,_0x7e232d,_0x305e0a){return _0x10df2e(_0x2409fa,_0x2c6fbc,_0x496763,_0x7e232d,_0x305e0a);},'XwKSn':'browserstack:managedBy','OpCPG':'BrowserStack','vXUsU':_0x535547(0x1bf),'DKTby':function(_0x221b23,_0x2b0789){return _0x221b23(_0x2b0789);},'eIHcE':function(_0x213d08,_0xd6a808){return _0x213d08!==_0xd6a808;},'mgEUe':function(_0x262921,_0x31e815){return _0x262921!==_0x31e815;},'YquMn':function(_0x41531e,_0x4d9ccb,_0x14d5d8,_0x39dc55,_0x36ec01,_0x1f3338,_0x4695c4){return _0x41531e(_0x4d9ccb,_0x14d5d8,_0x39dc55,_0x36ec01,_0x1f3338,_0x4695c4);},'cpxXu':_0x535547(0x1ca),'wxrsc':function(_0x178670,_0x1f35a9){return _0x178670===_0x1f35a9;},'zDfxp':function(_0x1392e4,_0x4ea5cd,_0x27a3a7,_0xceec3e,_0x3e553a,_0x1cfdf9,_0x252fa9){return _0x1392e4(_0x4ea5cd,_0x27a3a7,_0xceec3e,_0x3e553a,_0x1cfdf9,_0x252fa9);},'UmpRO':_0x535547(0x1a7),'XAkiT':function(_0x46bda6,_0x568694){return _0x46bda6===_0x568694;},'vGGtb':'invalid-grid-id','pUtom':function(_0x25a3cc,_0x133fdb,_0x1c14de,_0x57b1d6,_0x347144,_0x14232b,_0x2ca0cc){return _0x25a3cc(_0x133fdb,_0x1c14de,_0x57b1d6,_0x347144,_0x14232b,_0x2ca0cc);},'Izkcb':function(_0x17c9df,_0x4ff876,_0x211f78,_0x59e48c,_0x3f9bb1,_0x170da6,_0x439ba7){return _0x17c9df(_0x4ff876,_0x211f78,_0x59e48c,_0x3f9bb1,_0x170da6,_0x439ba7);},'hyAUi':_0x535547(0x1f6)};try{global_registry[_0x535547(0x1fd)]=_0xeaea03[_0x535547(0x1df)](uuidv4);!fs['existsSync'](_0xeaea03['kVefV'](getCredentialsPath))&&(_0xeaea03[_0x535547(0x1e0)](_0xeaea03[_0x535547(0x1b1)],_0xeaea03[_0x535547(0x187)])?(_0x191c10['info'](_0x535547(0x18e)),_0x3fcd28[_0x535547(0x1a9)](0x0)):(console[_0x535547(0x178)](_0xeaea03[_0x535547(0x16e)]),await _0xeaea03[_0x535547(0x1b9)](sendInstrumentationEvent,_0x544f42,_0xeaea03[_0x535547(0x1c8)],messageTypes[_0x535547(0x196)],_0xeaea03[_0x535547(0x202)],null,_0x544f42),process[_0x535547(0x1a9)](0x1)));_0xeaea03[_0x535547(0x1eb)](sendInstrumentationEvent,_0x544f42,_0xeaea03['YbjxU'],messageTypes[_0x535547(0x17e)],null,null,_0x544f42);if(!_0x544f42[_0x535547(0x191)]){if(_0xeaea03[_0x535547(0x1e0)](_0xeaea03[_0x535547(0x1d4)],_0xeaea03[_0x535547(0x1d4)]))console[_0x535547(0x178)](_0xeaea03[_0x535547(0x1dd)]),process[_0x535547(0x1a9)](0x1);else{const _0x27af5c={};_0x27af5c[_0x535547(0x1c0)]=_0xeaea03['icpKd'],_0x27af5c[_0x535547(0x176)]=_0xeaea03[_0x535547(0x18b)];const _0x456ed3={};return _0x456ed3[_0x535547(0x19c)]=_0x27af5c,_0x455bc1['usage'](_0xfef78e[_0x535547(0x200)])[_0x535547(0x201)](_0x4e3ccd)[_0x535547(0x19f)](_0x456ed3)[_0x535547(0x1ea)](_0xeaea03[_0x535547(0x1c6)])[_0x535547(0x1e9)];}}const _0x45c612=JSON[_0x535547(0x1cc)](fs['readFileSync'](_0xeaea03[_0x535547(0x1ef)](getCredentialsPath))),_0x153c40=await _0xeaea03[_0x535547(0x1be)](getGridDetails,_0x45c612[_0x535547(0x18d)][_0x535547(0x198)],_0x45c612[_0x535547(0x18d)][_0x535547(0x1b3)],_0x544f42['gridId']);if(_0x153c40){const _0xac668=_0x153c40['info'];let _0x1b0547=_0x535547(0x209)+_0xac668[_0x535547(0x1c3)]+_0x535547(0x1ce)+_0xac668['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x773a1e;_0x153c40[_0x535547(0x1f3)]&&_0xeaea03['CbUfc'](_0x153c40['clusterSpawnedVia'],_0xeaea03[_0x535547(0x1d0)])&&(_0xeaea03[_0x535547(0x173)](_0xeaea03[_0x535547(0x1fb)],_0xeaea03[_0x535547(0x1fb)])?_0x1b0547='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0xac668[_0x535547(0x1c3)]+_0x535547(0x1ce)+_0xac668['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0xac668['clusterName']+_0x535547(0x184)+_0xac668[_0x535547(0x1e5)]+_0x535547(0x1d3):_0x50296d[_0x535547(0x1a9)](0x0));_0x773a1e=await _0xeaea03[_0x535547(0x194)](inputConfirmation,_0x1b0547);(_0xeaea03[_0x535547(0x173)](_0x773a1e,undefined)||_0xeaea03[_0x535547(0x1e0)](_0x773a1e,null)||!(_0xeaea03['JAoOy'](_0x773a1e[_0x535547(0x1a2)](),'y')||_0xeaea03['GEOYq'](_0x773a1e[_0x535547(0x1a2)](),'n')))&&(_0xeaea03['tKNmu'](_0xeaea03[_0x535547(0x193)],_0xeaea03[_0x535547(0x1e8)])?(_0x1c0f03=_0xeaea03[_0x535547(0x19d)],_0x242b56[_0x535547(0x1fe)](_0x2c9208)):(console['error'](_0xeaea03[_0x535547(0x1c2)]),await _0xeaea03[_0x535547(0x1b9)](sendInstrumentationEvent,_0x544f42,_0xeaea03[_0x535547(0x1c8)],messageTypes[_0x535547(0x196)],_0xeaea03[_0x535547(0x1bc)],null,_0x544f42),process[_0x535547(0x1a9)](0x1)));_0xeaea03[_0x535547(0x1f7)](_0x773a1e[_0x535547(0x1a2)](),'n')&&(_0xeaea03[_0x535547(0x174)](_0xeaea03['wEiVG'],_0xeaea03[_0x535547(0x1e4)])?process[_0x535547(0x1a9)](0x0):(_0x4cdc49['error'](_0xeaea03[_0x535547(0x1dd)]),_0x301e4d[_0x535547(0x1a9)](0x1)));global_registry['clusterRegion']=_0xac668[_0x535547(0x1d5)];const _0x13a9ad=_0xac668[_0x535547(0x17d)],_0x58bbbb=_0xeaea03[_0x535547(0x1c7)](getCloudProviderObject,_0x13a9ad,_0xac668[_0x535547(0x186)],_0xac668[_0x535547(0x1c3)]),_0x4b8492=_0x45c612[_0x535547(0x17d)];if(_0xeaea03[_0x535547(0x1a6)](_0x4b8492[_0x13a9ad],undefined)){logger[_0x535547(0x1f2)](_0xeaea03[_0x535547(0x1f5)]),_0x45c612[_0x535547(0x17d)]={};if(_0xeaea03[_0x535547(0x174)](_0x13a9ad,AWS)){if(_0xeaea03[_0x535547(0x18c)](_0xeaea03[_0x535547(0x1e2)],_0xeaea03[_0x535547(0x1e2)])){const [_0x544aa8,_0x47ea75]=await _0xeaea03[_0x535547(0x172)](inputCloudProviderKeys,_0x13a9ad,_0x58bbbb),_0x12b271={};_0x12b271[_0x535547(0x1e7)]=_0x544aa8,_0x12b271['secret']=_0x47ea75,_0x45c612['cloudProvider'][_0x13a9ad]=_0x12b271;}else _0x55e649=_0x535547(0x209)+_0x9856f[_0x535547(0x1c3)]+_0x535547(0x1ce)+_0x3a9055['id']+_0x535547(0x17f)+_0x4e96aa['clusterName']+_0x535547(0x184)+_0x44b365[_0x535547(0x1e5)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';}else{if(_0xeaea03[_0x535547(0x18c)](_0x13a9ad,AZURE)){if(_0xeaea03[_0x535547(0x1a6)](_0xeaea03['rdtNu'],_0xeaea03[_0x535547(0x175)]))_0xbc3e1b[_0x535547(0x192)](_0x535547(0x182)+_0x498dbe[_0x535547(0x186)]+_0x535547(0x1f8));else{[cpClientId,cpClientSecret,cpTenantId,cpSubscriptionId,cpResourceGroup]=await _0xeaea03[_0x535547(0x172)](inputCloudProviderKeys,_0x13a9ad,_0x58bbbb);const _0x3749d2={};_0x3749d2['clientId']=cpClientId,_0x3749d2[_0x535547(0x1f9)]=cpClientSecret,_0x3749d2[_0x535547(0x1f1)]=cpTenantId,_0x3749d2[_0x535547(0x20c)]=cpSubscriptionId,_0x3749d2[_0x535547(0x189)]=cpResourceGroup,_0x45c612[_0x535547(0x17d)][_0x13a9ad]=_0x3749d2;}}}fs[_0x535547(0x1ff)](_0xeaea03['DQgGv'](getCredentialsPath),JSON[_0x535547(0x1f4)](_0x45c612)),logger[_0x535547(0x1db)](_0xeaea03[_0x535547(0x19b)]);}else logMessage=_0xeaea03[_0x535547(0x19d)],_0x58bbbb['fetchLocalCreds'](_0x4b8492);_0x58bbbb[_0x535547(0x1d9)]();const _0x2ec389=_0xeaea03['JmeDv'](kebabCase,_0xac668[_0x535547(0x1c3)]),[_0x3b6be4,_0x281121,_0x580675,_0x543a02,_0x37ba9f]=await _0xeaea03[_0x535547(0x194)](createK8sClient,_0x58bbbb);await _0xeaea03['ZKaMX'](removeGridComponents,_0x3b6be4,_0x281121,_0x580675,_0x543a02,_0x2ec389);const _0x36bb8a=await _0x58bbbb[_0x535547(0x1d1)]();_0x153c40['onlyGridInCluster']&&(_0x36bb8a&&_0xeaea03['TIVrQ'](_0x36bb8a[_0xeaea03[_0x535547(0x1c9)]],_0xeaea03[_0x535547(0x1dc)])?await _0x58bbbb[_0x535547(0x1ee)](_0xac668[_0x535547(0x1d5)]):logger[_0x535547(0x192)](_0x535547(0x182)+_0xac668[_0x535547(0x186)]+_0x535547(0x1f8)));const _0x18e03f='https://'+AG_API_URL+_0x535547(0x188)+_0x544f42[_0x535547(0x191)],_0x37e9ea={};_0x37e9ea['username']=_0x45c612[_0x535547(0x18d)][_0x535547(0x198)],_0x37e9ea[_0x535547(0x1b3)]=_0x45c612[_0x535547(0x18d)][_0x535547(0x1b3)];const _0xdfe31={};_0xdfe31[_0x535547(0x1cb)]=_0x18e03f,_0xdfe31[_0x535547(0x1bd)]=_0xeaea03['vXUsU'],_0xdfe31[_0x535547(0x1ad)]=_0x37e9ea;const _0x14f916=_0xdfe31,_0x506271=await _0xeaea03[_0x535547(0x1fa)](promisifiedRequest,_0x14f916);_0xeaea03[_0x535547(0x199)](_0x506271,null)&&_0xeaea03[_0x535547(0x19e)](_0x506271,undefined)&&_0xeaea03[_0x535547(0x1da)](_0x506271[_0x535547(0x208)],0xc8)&&(logger[_0x535547(0x1f2)](_0x535547(0x18e)),process[_0x535547(0x1a9)](0x0)),logger[_0x535547(0x178)](_0x535547(0x16f)+JSON['stringify'](_0x506271)),await _0xeaea03[_0x535547(0x1c4)](sendInstrumentationEvent,_0x544f42,_0xeaea03[_0x535547(0x1c8)],messageTypes[_0x535547(0x196)],_0xeaea03[_0x535547(0x1fc)],res,_0x544f42),process['exit'](0x1);}_0xeaea03['wxrsc'](res[_0x535547(0x208)],0x191)&&(logger[_0x535547(0x178)](_0x535547(0x1b0)),await _0xeaea03[_0x535547(0x1c1)](sendInstrumentationEvent,_0x544f42,_0xeaea03[_0x535547(0x1c8)],messageTypes['ERROR'],_0xeaea03[_0x535547(0x1a4)],null,_0x544f42),process[_0x535547(0x1a9)](0x1)),_0xeaea03[_0x535547(0x1a5)](res[_0x535547(0x208)],0x190)&&(logger[_0x535547(0x178)](JSON[_0x535547(0x1cc)](res[_0x535547(0x1e1)])[_0x535547(0x1b2)]),await _0xeaea03[_0x535547(0x1eb)](sendInstrumentationEvent,_0x544f42,_0xeaea03[_0x535547(0x1c8)],messageTypes[_0x535547(0x196)],_0xeaea03[_0x535547(0x1ba)],null,_0x544f42),process['exit'](0x1)),logger[_0x535547(0x178)](_0x535547(0x204)+JSON[_0x535547(0x1f4)](res)),await _0xeaea03[_0x535547(0x19a)](sendInstrumentationEvent,_0x544f42,_0xeaea03[_0x535547(0x1c8)],messageTypes[_0x535547(0x196)],_0xeaea03['cpxXu'],res,_0x544f42),process[_0x535547(0x1a9)](0x1);}catch(_0x87bb6e){logger[_0x535547(0x178)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x87bb6e[_0x535547(0x1af)]),await _0xeaea03[_0x535547(0x1ec)](sendInstrumentationEvent,_0x544f42,_0xeaea03[_0x535547(0x1c8)],messageTypes[_0x535547(0x196)],_0xeaea03[_0x535547(0x1bb)],_0x87bb6e,_0x544f42),process[_0x535547(0x1a9)](0x1);}};function a10_0x1077(){const _0x4109f3=['12MgDWqF','Zeakq','getClusterTags','util','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','MNSca','region','1091335OjEiMn','ZmxLt','handler','configureIfNotConfigured','tKNmu','debug','OpCPG','djARe','1497366OwOPuG','kVefV','CbUfc','body','IbDng','../../config/logger','wEiVG','clusterId','oiOKW','accessKey','Upwic','argv','help','CGiaT','Izkcb','invalid-input','deleteCluster','ClMAh','92200spGRro','tenantId','info','onlyGridInCluster','stringify','QmvHk','unknown-error','PHSrc','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','clientSecret','DKTby','Iybuo','cpxXu','requestId','fetchLocalCreds','writeFileSync','delete','epilogue','FRAMu','xOKGW','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','UBNyk','99YhZlGQ','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','statusCode','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','../../cloudproviders/utils','../../utils/utilityMethods','subscriptionId','Omowb','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','usage','dvMpV','ePYFo','TIVrQ','hLzfm','HFRQE','type','GWCMl','error','205980osQWvc','21461TRIFCL','desc','request','cloudProvider','INFO','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','WlRLV','Cluster:\x20','uuid','\x22\x20with\x20ID\x20','nCMUG','clusterName','XJTRu','/packages/cli/grid/','resourceGroup','czgVk','ilKMm','lVpQB','Browserstack','Succesfully\x20deleted\x20the\x20grid','../../utils/instrumentationUtils','UiDkY','gridId','warn','DELVg','BlRgV','373668PKWJnO','ERROR','Delete\x20an\x20Automation\x20grid.','username','eIHcE','pUtom','snIoi','grid-id','BeSyB','mgEUe','options','promisify','../../utils/createk8sClient','toLowerCase','30318002VGTnde','UmpRO','XAkiT','JEEJb','unauthorised','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','exit','string','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','../../utils/gridComponents','auth','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','xKGTE','message','password','delete-grid-called','42xUVQzz','command','../../config/constants','nYfWr','DKgWM','vGGtb','hyAUi','joCHE','method','JUDJS','DELETE','description','zDfxp','CumRD','name','YquMn','../../utils/userInput','vypJA','ZsFyu','YbjxU','XwKSn','server-error','url','parse','490pCJiYS','\x22\x20and\x20ID\x20'];a10_0x1077=function(){return _0x4109f3;};return a10_0x1077();}
1
+ function a6_0x4365(){const _0x3c4a0e=['secret','name','description','cluster','rQmgT','uWeiV','oooVw','options','MjNoA','OGXFe','LhClg','PiOrh','statusCode','message','existsSync','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','https://','accessKey','vJpek','epilogue','INFO','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','11847671yedVVk','exIPH','exit','DYuIN','sVBwE','grid-id','Browserstack','516775ZYAsgP','debug','argv','eITQP','774OGEleY','yPpNf','gridId','JSzvF','tags','klXaZ','url','../../utils/userInput','uNYNQ','Wkgtd','../../utils/AWSUtils','desc','XfVlX','XyobW','Delete\x20an\x20Automation\x20grid.','cloudProviderAccessKey','requestId','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','XsUlO','../../utils/gridComponents','10khZrXU','kgsrx','browserstack:managedBy','LuRER','cloudProvider','LKTBn','6464yEkKIG','promisify','cloudProviderSecretKey','Cluster:\x20','Mdciq','init-not-called','info','fvvxf','builder','\x22\x20with\x20ID\x20','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','eWWTx','mKAZk','ZulmA','warn','uuid','kexZJ','mAzth','3954150CBwckg','region','QFonV','iVmzg','54018lRKurv','../../config/constants','clusterSpawnedVia','type','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','help','mAdNR','Pass\x20the\x20ID\x20of\x20the\x20Grid','error','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','hNzBh','ORbzL','invalid-grid-id','LUKRo','clusterName','invalid-input','writeFileSync','../../utils/instrumentationUtils','420270IvOpYT','Succesfully\x20deleted\x20the\x20grid','ERROR','vuMNX','delete-grid-called','6uDNdGc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ssSxZ','zYcAy','unknown-error','auth','request','GRInZ','DpyyP','UbiQw','command','body','OuOzb','KNjyC','handler','327213RbGomd','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','endpoint','../../config/logger','NoFng','../../utils/createk8sClient','RzWXq','VRpOX','username','password','JsWnK','oeIhA','Vcyib','BrowserStack','512XEHFuE','clusterId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','\x22\x20and\x20ID\x20','toLowerCase','string','usage','spkrz','server-error','unauthorised','zHyPX','../../utils/utilityMethods','clusterRegion','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','vWujX','lIyMW','DELETE'];a6_0x4365=function(){return _0x3c4a0e;};return a6_0x4365();}function a6_0x692a(_0x9d2552,_0x4bb8ef){const _0x4365c3=a6_0x4365();return a6_0x692a=function(_0x692ad7,_0x46f21f){_0x692ad7=_0x692ad7-0x1d3;let _0x5f2359=_0x4365c3[_0x692ad7];return _0x5f2359;},a6_0x692a(_0x9d2552,_0x4bb8ef);}const a6_0x2eb952=a6_0x692a;(function(_0x2c46fa,_0xaeccdc){const _0x3cc129=a6_0x692a,_0x568cfc=_0x2c46fa();while(!![]){try{const _0x10f02c=parseInt(_0x3cc129(0x238))/0x1+parseInt(_0x3cc129(0x224))/0x2+-parseInt(_0x3cc129(0x1e1))/0x3*(parseInt(_0x3cc129(0x1fc))/0x4)+-parseInt(_0x3cc129(0x20e))/0x5+parseInt(_0x3cc129(0x229))/0x6*(-parseInt(_0x3cc129(0x1dd))/0x7)+parseInt(_0x3cc129(0x246))/0x8*(parseInt(_0x3cc129(0x212))/0x9)+-parseInt(_0x3cc129(0x1f6))/0xa*(-parseInt(_0x3cc129(0x1d6))/0xb);if(_0x10f02c===_0xaeccdc)break;else _0x568cfc['push'](_0x568cfc['shift']());}catch(_0x4ec587){_0x568cfc['push'](_0x568cfc['shift']());}}}(a6_0x4365,0xaf09a));const fs=require('fs'),util=require('util'),request=require(a6_0x2eb952(0x22f)),{v4:uuidv4}=require(a6_0x2eb952(0x20b)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL}=require(a6_0x2eb952(0x213)),{logger}=require(a6_0x2eb952(0x23b)),{getClusterInfo,configureAWSIfNotConfigured}=require(a6_0x2eb952(0x1eb)),{removeGridComponents,deleteClusterAndDependencies}=require(a6_0x2eb952(0x1f5)),{sendInstrumentationEvent}=require(a6_0x2eb952(0x223)),{inputConfirmation,closeInput,inputCloudProviderKeys}=require(a6_0x2eb952(0x1e8)),{createK8sClient}=require(a6_0x2eb952(0x23d)),{kebabCase,getCredentialsPath,getGridDetails}=require(a6_0x2eb952(0x251)),promisifiedRequest=util[a6_0x2eb952(0x1fd)](request);exports[a6_0x2eb952(0x233)]='grid',exports[a6_0x2eb952(0x1ec)]=a6_0x2eb952(0x1ef),exports[a6_0x2eb952(0x204)]=function(_0x5e1eeb){const _0x3287c1=a6_0x2eb952,_0x252c0f={};_0x252c0f[_0x3287c1(0x21f)]=_0x3287c1(0x219),_0x252c0f[_0x3287c1(0x250)]='string',_0x252c0f[_0x3287c1(0x21c)]='help';const _0x39a732=_0x252c0f,_0x1f9119={};_0x1f9119[_0x3287c1(0x259)]=_0x39a732[_0x3287c1(0x21f)],_0x1f9119[_0x3287c1(0x215)]=_0x39a732[_0x3287c1(0x250)];const _0xbf302f={};return _0xbf302f[_0x3287c1(0x1db)]=_0x1f9119,_0x5e1eeb[_0x3287c1(0x24c)](HELP_HEADER_MESSAGE['delete'])[_0x3287c1(0x1d3)](HELP_FOOTER_MESSAGE)[_0x3287c1(0x25e)](_0xbf302f)[_0x3287c1(0x217)](_0x39a732['hNzBh'])[_0x3287c1(0x1df)];},exports[a6_0x2eb952(0x237)]=async function(_0x4ea809){const _0x279aa1=a6_0x2eb952,_0x14a85f={'zxonT':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','exIPH':'Pass\x20the\x20ID\x20of\x20the\x20Grid','OGXFe':_0x279aa1(0x24b),'dQqGK':'help','mAzth':_0x279aa1(0x206),'NoFng':function(_0x57f777){return _0x57f777();},'vuMNX':function(_0x21b3c2){return _0x21b3c2();},'DpyyP':function(_0x78dae2,_0x5098e8){return _0x78dae2!==_0x5098e8;},'OuOzb':_0x279aa1(0x23f),'PiOrh':_0x279aa1(0x21d),'ieqvf':_0x279aa1(0x248),'kgsrx':function(_0xd821aa,_0x5945df,_0x2ef62e,_0x38969a,_0x3c42b9,_0x4ab6a4,_0x274c34){return _0xd821aa(_0x5945df,_0x2ef62e,_0x38969a,_0x3c42b9,_0x4ab6a4,_0x274c34);},'eITQP':_0x279aa1(0x228),'fvvxf':_0x279aa1(0x201),'QFonV':function(_0x5b23f4,_0x4191c9){return _0x5b23f4===_0x4191c9;},'eWWTx':_0x279aa1(0x200),'MjNoA':function(_0x2c4291,_0x51248d,_0xf758ef,_0x466cdf){return _0x2c4291(_0x51248d,_0xf758ef,_0x466cdf);},'RzWXq':function(_0xf7dfc8,_0xd481b6){return _0xf7dfc8===_0xd481b6;},'LhClg':_0x279aa1(0x1dc),'vWujX':_0x279aa1(0x230),'uNYNQ':function(_0x285651,_0x3a9406){return _0x285651(_0x3a9406);},'iVmzg':function(_0x447813,_0x437cda){return _0x447813===_0x437cda;},'Wkgtd':_0x279aa1(0x1e2),'DYuIN':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','UbiQw':function(_0x214d80,_0x345517,_0x48fda7,_0x4e746d,_0x5b0089,_0x1b0c60,_0x2b6595){return _0x214d80(_0x345517,_0x48fda7,_0x4e746d,_0x5b0089,_0x1b0c60,_0x2b6595);},'XyobW':_0x279aa1(0x221),'jRWcI':function(_0x4e1673,_0x33354d){return _0x4e1673===_0x33354d;},'oeIhA':_0x279aa1(0x208),'LuRER':_0x279aa1(0x255),'spkrz':_0x279aa1(0x21b),'zYcAy':function(_0x25f16f){return _0x25f16f();},'mAdNR':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','ZulmA':_0x279aa1(0x1f4),'XfVlX':function(_0x4b5465){return _0x4b5465();},'JSzvF':function(_0x526775,_0x111907){return _0x526775(_0x111907);},'uWeiV':function(_0x144612,_0x32dfea,_0x57360d,_0x30e46e,_0x31845a){return _0x144612(_0x32dfea,_0x57360d,_0x30e46e,_0x31845a);},'JsWnK':function(_0x336613,_0x38a8b6,_0x550fc7,_0x217495,_0x5799f8,_0x29056f){return _0x336613(_0x38a8b6,_0x550fc7,_0x217495,_0x5799f8,_0x29056f);},'sVBwE':_0x279aa1(0x22b),'LKTBn':_0x279aa1(0x1f8),'KNjyC':_0x279aa1(0x245),'kexZJ':function(_0x667f0a,_0x1df079){return _0x667f0a(_0x1df079);},'oooVw':_0x279aa1(0x256),'MiHAW':function(_0xb123b,_0x1f9fb8){return _0xb123b!==_0x1f9fb8;},'Vcyib':_0x279aa1(0x24e),'rQmgT':_0x279aa1(0x24f),'klXaZ':function(_0x38b20e,_0x573e3d){return _0x38b20e===_0x573e3d;},'eEnBS':_0x279aa1(0x21e),'vJpek':function(_0x41d1b8,_0x2a15dd,_0x55bf54,_0xcdeb55,_0x183997,_0xdcf886,_0x256f34){return _0x41d1b8(_0x2a15dd,_0x55bf54,_0xcdeb55,_0x183997,_0xdcf886,_0x256f34);},'kGujd':_0x279aa1(0x22d)};try{global_registry[_0x279aa1(0x1f1)]=_0x14a85f[_0x279aa1(0x23c)](uuidv4);!fs[_0x279aa1(0x265)](_0x14a85f[_0x279aa1(0x227)](getCredentialsPath))&&(_0x14a85f[_0x279aa1(0x231)](_0x14a85f[_0x279aa1(0x235)],_0x14a85f[_0x279aa1(0x262)])?(console[_0x279aa1(0x21a)](_0x14a85f['ieqvf']),await _0x14a85f[_0x279aa1(0x1f7)](sendInstrumentationEvent,_0x4ea809,_0x14a85f[_0x279aa1(0x1e0)],messageTypes[_0x279aa1(0x226)],_0x14a85f[_0x279aa1(0x203)],null,_0x4ea809),process[_0x279aa1(0x1d8)](0x1)):(_0x3bffb5[_0x279aa1(0x21a)](_0x14a85f['zxonT']),_0x1789ca[_0x279aa1(0x1d8)](0x1)));_0x14a85f['kgsrx'](sendInstrumentationEvent,_0x4ea809,_0x14a85f['eITQP'],messageTypes[_0x279aa1(0x1d4)],null,null,_0x4ea809);!_0x4ea809[_0x279aa1(0x1e3)]&&(_0x14a85f[_0x279aa1(0x210)](_0x14a85f[_0x279aa1(0x207)],_0x14a85f[_0x279aa1(0x207)])?(console[_0x279aa1(0x21a)](_0x14a85f['zxonT']),process[_0x279aa1(0x1d8)](0x1)):(_0x150a6a['info'](_0x279aa1(0x225)),_0x2a379f['exit'](0x0)));const _0x32834f=JSON['parse'](fs['readFileSync'](_0x14a85f[_0x279aa1(0x23c)](getCredentialsPath))),_0x21422e=await _0x14a85f[_0x279aa1(0x25f)](getGridDetails,_0x32834f['Browserstack']['username'],_0x32834f['Browserstack'][_0x279aa1(0x241)],_0x4ea809[_0x279aa1(0x1e3)]);if(_0x21422e){const _0x1358a3=_0x21422e['info'];let _0x54e420=_0x279aa1(0x1d5)+_0x1358a3['name']+'\x22\x20and\x20ID\x20'+_0x1358a3['id']+_0x279aa1(0x266),_0x49fe79;if(_0x21422e['onlyGridInCluster']&&_0x14a85f[_0x279aa1(0x23e)](_0x21422e[_0x279aa1(0x214)],_0x14a85f[_0x279aa1(0x261)])){if(_0x14a85f[_0x279aa1(0x231)](_0x14a85f[_0x279aa1(0x254)],_0x14a85f[_0x279aa1(0x254)])){const _0x258e6c={};_0x258e6c[_0x279aa1(0x259)]=_0x14a85f[_0x279aa1(0x1d7)],_0x258e6c[_0x279aa1(0x215)]=_0x14a85f[_0x279aa1(0x260)];const _0x4304f0={};return _0x4304f0[_0x279aa1(0x1db)]=_0x258e6c,_0x4b7d15[_0x279aa1(0x24c)](_0x283b76['delete'])[_0x279aa1(0x1d3)](_0x5595fd)['options'](_0x4304f0)[_0x279aa1(0x217)](_0x14a85f['dQqGK'])[_0x279aa1(0x1df)];}else _0x54e420='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x1358a3[_0x279aa1(0x258)]+_0x279aa1(0x249)+_0x1358a3['id']+_0x279aa1(0x216)+_0x1358a3[_0x279aa1(0x220)]+_0x279aa1(0x205)+_0x1358a3[_0x279aa1(0x247)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';}_0x49fe79=await _0x14a85f[_0x279aa1(0x1e9)](inputConfirmation,_0x54e420);(_0x14a85f['RzWXq'](_0x49fe79,undefined)||_0x14a85f['QFonV'](_0x49fe79,null)||!(_0x14a85f[_0x279aa1(0x23e)](_0x49fe79['toLowerCase'](),'y')||_0x14a85f['iVmzg'](_0x49fe79[_0x279aa1(0x24a)](),'n')))&&(_0x14a85f[_0x279aa1(0x23e)](_0x14a85f[_0x279aa1(0x1ea)],_0x14a85f['Wkgtd'])?(console[_0x279aa1(0x21a)](_0x14a85f[_0x279aa1(0x1d9)]),await _0x14a85f[_0x279aa1(0x232)](sendInstrumentationEvent,_0x4ea809,_0x14a85f[_0x279aa1(0x1e0)],messageTypes['ERROR'],_0x14a85f[_0x279aa1(0x1ee)],null,_0x4ea809),process[_0x279aa1(0x1d8)](0x1)):_0x47f5c8[_0x279aa1(0x1d8)](0x0));_0x14a85f[_0x279aa1(0x210)](_0x49fe79['toLowerCase'](),'n')&&(_0x14a85f['jRWcI'](_0x14a85f[_0x279aa1(0x243)],_0x14a85f['oeIhA'])?process[_0x279aa1(0x1d8)](0x0):(_0x5771e5['info'](_0x14a85f[_0x279aa1(0x20d)]),_0x4900fd['cloudProviderAccessKey']=_0x582b05[_0x282934][_0x279aa1(0x268)],_0x35f0e4[_0x279aa1(0x1fe)]=_0x2c00f5[_0x541f80]['secret']));_0x14a85f[_0x279aa1(0x227)](closeInput),global_registry[_0x279aa1(0x252)]=_0x1358a3[_0x279aa1(0x20f)];const _0x515653=_0x1358a3[_0x279aa1(0x1fa)],_0x49152e=_0x32834f['cloudProvider']||{};if(_0x14a85f[_0x279aa1(0x211)](_0x49152e[_0x515653],undefined)){if(_0x14a85f[_0x279aa1(0x231)](_0x14a85f[_0x279aa1(0x1f9)],_0x14a85f['LuRER']))_0x5867e9=_0x279aa1(0x1d5)+_0x62d632[_0x279aa1(0x258)]+_0x279aa1(0x249)+_0xbd817a['id']+_0x279aa1(0x216)+_0x2179cb[_0x279aa1(0x220)]+_0x279aa1(0x205)+_0x5c22eb[_0x279aa1(0x247)]+_0x279aa1(0x266);else{logger[_0x279aa1(0x202)](_0x14a85f[_0x279aa1(0x24d)]);const [_0x2c9899,_0x3cb63e]=await _0x14a85f[_0x279aa1(0x1e9)](inputCloudProviderKeys,_0x515653);_0x32834f[_0x279aa1(0x1fa)]={};const _0x5ec750={};_0x5ec750['accessKey']=_0x2c9899,_0x5ec750[_0x279aa1(0x257)]=_0x3cb63e,_0x32834f[_0x279aa1(0x1fa)][_0x515653]=_0x5ec750,fs[_0x279aa1(0x222)](_0x14a85f[_0x279aa1(0x22c)](getCredentialsPath),JSON[_0x279aa1(0x1f2)](_0x32834f)),logger[_0x279aa1(0x1de)](_0x14a85f[_0x279aa1(0x218)]),global_registry[_0x279aa1(0x1f0)]=_0x2c9899,global_registry[_0x279aa1(0x1fe)]=_0x3cb63e;}}else _0x14a85f[_0x279aa1(0x23e)](_0x14a85f[_0x279aa1(0x209)],_0x14a85f[_0x279aa1(0x209)])?(logger[_0x279aa1(0x202)](_0x14a85f['mAzth']),global_registry[_0x279aa1(0x1f0)]=_0x49152e[_0x515653]['accessKey'],global_registry[_0x279aa1(0x1fe)]=_0x49152e[_0x515653]['secret']):_0x59c64c[_0x279aa1(0x20a)](_0x279aa1(0x1ff)+_0xabdd7[_0x279aa1(0x220)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');_0x14a85f[_0x279aa1(0x1ed)](configureAWSIfNotConfigured);const _0xd25b7b=_0x14a85f[_0x279aa1(0x1e9)](kebabCase,_0x1358a3[_0x279aa1(0x258)]),_0x37578c=await _0x14a85f[_0x279aa1(0x1e4)](getClusterInfo,_0x1358a3[_0x279aa1(0x220)]),[_0x2845ce,_0x16eebd,_0x5bff13,_0x1b75ed,_0x4c6a52]=await _0x14a85f[_0x279aa1(0x25c)](createK8sClient,_0x37578c[_0x279aa1(0x25a)][_0x279aa1(0x258)],_0x37578c[_0x279aa1(0x25a)][_0x279aa1(0x23a)],_0x37578c[_0x279aa1(0x25a)]['certificateAuthority']['data'],_0x1358a3[_0x279aa1(0x20f)]);await _0x14a85f[_0x279aa1(0x242)](removeGridComponents,_0x2845ce,_0x16eebd,_0x5bff13,_0x1b75ed,_0xd25b7b);let _0x324fb4;_0x37578c[_0x279aa1(0x25a)]&&(_0x14a85f[_0x279aa1(0x211)](_0x14a85f[_0x279aa1(0x1da)],_0x14a85f[_0x279aa1(0x1da)])?_0x324fb4=_0x37578c['cluster'][_0x279aa1(0x1e5)]:_0x486455=_0x40184e[_0x279aa1(0x25a)]['tags']);_0x21422e['onlyGridInCluster']&&(_0x324fb4&&_0x14a85f[_0x279aa1(0x210)](_0x324fb4[_0x14a85f[_0x279aa1(0x1fb)]],_0x14a85f[_0x279aa1(0x236)])?await _0x14a85f[_0x279aa1(0x20c)](deleteClusterAndDependencies,_0x1358a3['region']):logger['warn'](_0x279aa1(0x1ff)+_0x1358a3[_0x279aa1(0x220)]+_0x279aa1(0x239)));const _0x23edd9=_0x279aa1(0x267)+AG_API_URL+'/packages/cli/grid/'+_0x4ea809[_0x279aa1(0x1e3)],_0xcdd6ca={};_0xcdd6ca['username']=_0x32834f[_0x279aa1(0x1dc)][_0x279aa1(0x240)],_0xcdd6ca[_0x279aa1(0x241)]=_0x32834f['Browserstack'][_0x279aa1(0x241)];const _0x42d96b={};_0x42d96b[_0x279aa1(0x1e7)]=_0x23edd9,_0x42d96b['method']=_0x14a85f[_0x279aa1(0x25d)],_0x42d96b[_0x279aa1(0x22e)]=_0xcdd6ca;const _0x49c337=_0x42d96b,_0x2d91c6=await _0x14a85f[_0x279aa1(0x20c)](promisifiedRequest,_0x49c337);_0x14a85f['MiHAW'](_0x2d91c6,null)&&_0x14a85f[_0x279aa1(0x231)](_0x2d91c6,undefined)&&_0x14a85f[_0x279aa1(0x23e)](_0x2d91c6[_0x279aa1(0x263)],0xc8)&&(logger['info'](_0x279aa1(0x225)),process['exit'](0x0)),logger[_0x279aa1(0x21a)](_0x279aa1(0x253)+JSON[_0x279aa1(0x1f2)](_0x2d91c6)),await _0x14a85f[_0x279aa1(0x1f7)](sendInstrumentationEvent,_0x4ea809,_0x14a85f[_0x279aa1(0x1e0)],messageTypes[_0x279aa1(0x226)],_0x14a85f[_0x279aa1(0x244)],res,_0x4ea809),process[_0x279aa1(0x1d8)](0x1);}_0x14a85f['jRWcI'](res[_0x279aa1(0x263)],0x191)&&(logger[_0x279aa1(0x21a)](_0x279aa1(0x22a)),await _0x14a85f[_0x279aa1(0x1f7)](sendInstrumentationEvent,_0x4ea809,_0x14a85f[_0x279aa1(0x1e0)],messageTypes[_0x279aa1(0x226)],_0x14a85f[_0x279aa1(0x25b)],null,_0x4ea809),process[_0x279aa1(0x1d8)](0x1)),_0x14a85f[_0x279aa1(0x1e6)](res[_0x279aa1(0x263)],0x190)&&(logger[_0x279aa1(0x21a)](JSON['parse'](res[_0x279aa1(0x234)])[_0x279aa1(0x264)]),await _0x14a85f[_0x279aa1(0x232)](sendInstrumentationEvent,_0x4ea809,_0x14a85f[_0x279aa1(0x1e0)],messageTypes[_0x279aa1(0x226)],_0x14a85f['eEnBS'],null,_0x4ea809),process[_0x279aa1(0x1d8)](0x1)),logger[_0x279aa1(0x21a)](_0x279aa1(0x1f3)+JSON[_0x279aa1(0x1f2)](res)),await _0x14a85f[_0x279aa1(0x269)](sendInstrumentationEvent,_0x4ea809,_0x14a85f[_0x279aa1(0x1e0)],messageTypes[_0x279aa1(0x226)],_0x14a85f[_0x279aa1(0x244)],res,_0x4ea809),process[_0x279aa1(0x1d8)](0x1);}catch(_0x34981d){logger[_0x279aa1(0x21a)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x34981d['stack']),await _0x14a85f[_0x279aa1(0x269)](sendInstrumentationEvent,_0x4ea809,_0x14a85f[_0x279aa1(0x1e0)],messageTypes[_0x279aa1(0x226)],_0x14a85f['kGujd'],_0x34981d,_0x4ea809),process[_0x279aa1(0x1d8)](0x1);}};
@@ -1 +1 @@
1
- const a11_0x3dbb44=a11_0x23de;(function(_0x52e86f,_0x1ec3ae){const _0x4ae751=a11_0x23de,_0x5328ba=_0x52e86f();while(!![]){try{const _0x3a5fef=parseInt(_0x4ae751(0x12c))/0x1+parseInt(_0x4ae751(0xd4))/0x2*(parseInt(_0x4ae751(0xe6))/0x3)+parseInt(_0x4ae751(0x13c))/0x4*(parseInt(_0x4ae751(0xef))/0x5)+parseInt(_0x4ae751(0x116))/0x6+parseInt(_0x4ae751(0x103))/0x7*(-parseInt(_0x4ae751(0xdd))/0x8)+parseInt(_0x4ae751(0x140))/0x9+-parseInt(_0x4ae751(0x11b))/0xa*(parseInt(_0x4ae751(0xf7))/0xb);if(_0x3a5fef===_0x1ec3ae)break;else _0x5328ba['push'](_0x5328ba['shift']());}catch(_0x4750e1){_0x5328ba['push'](_0x5328ba['shift']());}}}(a11_0x571b,0x333c1));function a11_0x23de(_0x49ffd1,_0x563d96){const _0x571b00=a11_0x571b();return a11_0x23de=function(_0x23deca,_0xfe54d6){_0x23deca=_0x23deca-0xd3;let _0xae23d1=_0x571b00[_0x23deca];return _0xae23d1;},a11_0x23de(_0x49ffd1,_0x563d96);}function a11_0x571b(){const _0x4b60b9=['type','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','32nBmqok','init','username','BROWSERSTACK_USERNAME','description','writeFileSync','IFkVO','zXQqA','QulHh','2895jAouUy','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','dFCTT','yzNwY','request','lFcRz','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','EEbpk','mkdirSync','2054430BLLovn','debug','kUZuR','hwnBJ','kkFNy','../utils/instrumentationUtils','env','obgcY','222079vEKbAJ','bstack-accesskey','YwnAL','fbNzR','FsFVz','MUPvn','https://','bstackUsername','uvmHK','CPooS','url','exit','172648hBGcQM','readFileSync','/automate/plan.json','HZoYY','../config/constants','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','util','GET','DuBkI','promisify','xlKKl','bstackAccesskey','yXuvv','desc','kuaUD','recommendCommands','password','KStLy','usage','1365930VCglPW','JddjC','../config/logger','error','../utils/utilityMethods','470JruSpM','WZHLE','Browserstack','bstack-username','method','builder','epilogue','cXLkk','nzJOo','stack','existsSync','stringify','strict','uJqtz','qXwFv','WsPjR','statusCode','178755tVNzeR','tiaAI','argv','HBeHH','wrong-creds','BROWSERSTACK_ACCESS_KEY','dhqxw','wDsOk','KuOlk','AXtUR','JskbU','utf-8','parse','XJSIT','unknown-error','help','4rBDkEW','XoCRu','nDbef','nvBFr','895095xxKFXI','../utils/userInput','BvcKJ','uuid','706sFPmsQ','ERROR','Zqjbc','options','INFO','KNkpr','bFrYy'];a11_0x571b=function(){return _0x4b60b9;};return a11_0x571b();}const fs=require('fs'),util=require(a11_0x3dbb44(0x109)),request=require(a11_0x3dbb44(0xea)),{v4:uuidv4}=require(a11_0x3dbb44(0xd3)),{logger}=require(a11_0x3dbb44(0x118)),{inputBstackKeys}=require(a11_0x3dbb44(0x141)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a11_0x3dbb44(0x107)),{getDirForConfig,getCredentialsPath}=require(a11_0x3dbb44(0x11a)),{sendInstrumentationEvent}=require(a11_0x3dbb44(0xf4)),promisifiedRequest=util[a11_0x3dbb44(0x10c)](request);exports['command']=a11_0x3dbb44(0xde),exports[a11_0x3dbb44(0x110)]=a11_0x3dbb44(0xec),exports[a11_0x3dbb44(0x120)]=function(_0x20befa){const _0x17a468=a11_0x3dbb44,_0x547b7e={};_0x547b7e[_0x17a468(0x136)]=_0x17a468(0x108),_0x547b7e[_0x17a468(0xfb)]='string',_0x547b7e[_0x17a468(0x135)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x547b7e[_0x17a468(0x139)]='help';const _0x437dde=_0x547b7e,_0x322af3={};_0x322af3['description']=_0x437dde[_0x17a468(0x136)],_0x322af3['type']=_0x437dde[_0x17a468(0xfb)];const _0x4c72e3={};_0x4c72e3[_0x17a468(0xe1)]=_0x437dde[_0x17a468(0x135)],_0x4c72e3[_0x17a468(0xdb)]=_0x437dde['FsFVz'];const _0x5d4902={};return _0x5d4902[_0x17a468(0x11e)]=_0x322af3,_0x5d4902['bstack-accesskey']=_0x4c72e3,_0x20befa['usage'](HELP_HEADER_MESSAGE[_0x17a468(0xde)])[_0x17a468(0x121)](HELP_FOOTER_MESSAGE)[_0x17a468(0xd7)](_0x5d4902)[_0x17a468(0x112)]()[_0x17a468(0x127)]()['help'](_0x437dde[_0x17a468(0x139)])[_0x17a468(0x12e)];},exports['handler']=async function(_0x432766){const _0xe45ec3=a11_0x3dbb44,_0x4e9a43={'IFkVO':function(_0x500dbf){return _0x500dbf();},'zXQqA':_0xe45ec3(0x137),'uJqtz':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','kuaUD':'string','dhqxw':_0xe45ec3(0xe7),'KStLy':_0xe45ec3(0x13b),'GIFjh':function(_0x190da0,_0x6ba8c8,_0x4cc924,_0x10da0d,_0x2993d6,_0x1cd83a,_0x5d56a8){return _0x190da0(_0x6ba8c8,_0x4cc924,_0x10da0d,_0x2993d6,_0x1cd83a,_0x5d56a8);},'HZoYY':'init-called','fkuok':function(_0x4bcfe5,_0x4d3bd8){return _0x4bcfe5===_0x4d3bd8;},'EEbpk':'cWaLZ','cXLkk':function(_0x27ff46,_0x475747){return _0x27ff46!==_0x475747;},'nvBFr':_0xe45ec3(0xf1),'obgcY':_0xe45ec3(0x11c),'WsPjR':function(_0x3612ea,_0x223a78){return _0x3612ea===_0x223a78;},'qXwFv':_0xe45ec3(0x142),'dFCTT':function(_0x12caff,_0xcf8543){return _0x12caff!==_0xcf8543;},'OIrQm':_0xe45ec3(0xeb),'MUPvn':function(_0x3d0cbb,_0x3a3b15){return _0x3d0cbb===_0x3a3b15;},'tiaAI':_0xe45ec3(0x117),'DuBkI':function(_0x3299c0,_0x4af8f5){return _0x3299c0===_0x4af8f5;},'hwnBJ':function(_0x30487f,_0x117bb2){return _0x30487f===_0x117bb2;},'HBeHH':_0xe45ec3(0x100),'uvmHK':_0xe45ec3(0xdc),'yzNwY':_0xe45ec3(0x10a),'nDbef':function(_0x15ecc5,_0x2f3176){return _0x15ecc5(_0x2f3176);},'fbNzR':function(_0x4a3de6,_0x4f20b7){return _0x4a3de6!==_0x4f20b7;},'nzJOo':function(_0x4fcd3e,_0x1a8475){return _0x4fcd3e===_0x1a8475;},'bFrYy':_0xe45ec3(0xf9),'XoCRu':function(_0x400e9a,_0x1923dc){return _0x400e9a!==_0x1923dc;},'yXuvv':_0xe45ec3(0xe5),'wDsOk':'hjfsF','KuOlk':'FUjeM','kkFNy':'qGzRR','Zqjbc':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','KNkpr':_0xe45ec3(0x130),'xlKKl':function(_0x135c1e,_0x1aa33f,_0x25cfbf,_0x1057e8,_0x53fbbd,_0x4352cf,_0x20ce56){return _0x135c1e(_0x1aa33f,_0x25cfbf,_0x1057e8,_0x53fbbd,_0x4352cf,_0x20ce56);},'EtIpR':_0xe45ec3(0x13a)};try{global_registry['requestId']=_0x4e9a43[_0xe45ec3(0xe3)](uuidv4),_0x4e9a43['GIFjh'](sendInstrumentationEvent,_0x432766,_0x4e9a43[_0xe45ec3(0x106)],messageTypes[_0xe45ec3(0xd8)],null,null,_0x432766);const _0x131a46=_0x4e9a43[_0xe45ec3(0xe3)](getDirForConfig);!fs[_0xe45ec3(0x125)](_0x131a46)&&(_0x4e9a43['fkuok'](_0x4e9a43[_0xe45ec3(0xed)],_0x4e9a43['EEbpk'])?fs[_0xe45ec3(0xee)](_0x131a46):_0x3a4007=_0x41f870[_0xe45ec3(0xfe)]);let _0x29732e,_0x2875b2;_0x432766[_0xe45ec3(0xfe)]&&(_0x4e9a43[_0xe45ec3(0x122)](_0x4e9a43[_0xe45ec3(0x13f)],_0x4e9a43[_0xe45ec3(0xf6)])?_0x29732e=_0x432766[_0xe45ec3(0xfe)]:_0x5912df=!![]);process[_0xe45ec3(0xf5)][_0xe45ec3(0xe0)]&&(_0x4e9a43[_0xe45ec3(0x12a)](_0x4e9a43[_0xe45ec3(0x129)],_0x4e9a43[_0xe45ec3(0x129)])?_0x29732e=process[_0xe45ec3(0xf5)][_0xe45ec3(0xe0)]:_0x2aa56c=_0x151dc4['bstackAccesskey']);_0x432766['bstackAccesskey']&&(_0x4e9a43[_0xe45ec3(0xe8)](_0x4e9a43['OIrQm'],_0x4e9a43['OIrQm'])?_0x50d784=_0x7ff04d[_0xe45ec3(0xf5)][_0xe45ec3(0x131)]:_0x2875b2=_0x432766[_0xe45ec3(0x10e)]);if(process[_0xe45ec3(0xf5)][_0xe45ec3(0x131)]){if(_0x4e9a43[_0xe45ec3(0xfc)](_0x4e9a43[_0xe45ec3(0x12d)],_0x4e9a43['tiaAI']))_0x2875b2=process[_0xe45ec3(0xf5)]['BROWSERSTACK_ACCESS_KEY'];else{let _0x3ab275={};const _0x1f4933=_0x4e9a43[_0xe45ec3(0xe3)](_0x32ccd4);_0x4e3a36[_0xe45ec3(0x125)](_0x1f4933)&&(_0x3ab275=_0x55a667[_0xe45ec3(0x138)](_0x207615[_0xe45ec3(0x104)](_0x1f4933,_0x4e9a43[_0xe45ec3(0xe4)])));const _0x14e4c6={};_0x14e4c6['username']=_0x2398c5,_0x14e4c6[_0xe45ec3(0x113)]=_0x4e808b,_0x3ab275[_0xe45ec3(0x11d)]=_0x14e4c6,_0xb1ad28[_0xe45ec3(0xe2)](_0x1f4933,_0x419ab3[_0xe45ec3(0x126)](_0x3ab275)),_0x1a4a69[_0xe45ec3(0x102)](0x0);}}if(_0x4e9a43[_0xe45ec3(0x10b)](_0x29732e,undefined)||_0x4e9a43[_0xe45ec3(0xf2)](_0x2875b2,undefined)){if(_0x4e9a43[_0xe45ec3(0x10b)](_0x4e9a43[_0xe45ec3(0x12f)],_0x4e9a43[_0xe45ec3(0x12f)])){logger[_0xe45ec3(0xf0)](_0x4e9a43[_0xe45ec3(0xff)]);const [_0x5603f7,_0x34489f]=await _0x4e9a43[_0xe45ec3(0xe3)](inputBstackKeys);_0x29732e=_0x5603f7,_0x2875b2=_0x34489f;}else{const _0x5c7ed6={};_0x5c7ed6[_0xe45ec3(0xe1)]=_0x4e9a43[_0xe45ec3(0x128)],_0x5c7ed6[_0xe45ec3(0xdb)]=_0x4e9a43['kuaUD'];const _0x204c65={};_0x204c65[_0xe45ec3(0xe1)]=_0x4e9a43[_0xe45ec3(0x132)],_0x204c65[_0xe45ec3(0xdb)]=_0x4e9a43[_0xe45ec3(0x111)];const _0xf7b2e0={};return _0xf7b2e0[_0xe45ec3(0x11e)]=_0x5c7ed6,_0xf7b2e0[_0xe45ec3(0xf8)]=_0x204c65,_0x1cc604[_0xe45ec3(0x115)](_0x2de33e[_0xe45ec3(0xde)])[_0xe45ec3(0x121)](_0x374917)[_0xe45ec3(0xd7)](_0xf7b2e0)[_0xe45ec3(0x112)]()[_0xe45ec3(0x127)]()[_0xe45ec3(0x13b)](_0x4e9a43[_0xe45ec3(0x114)])[_0xe45ec3(0x12e)];}}let _0x256f00=![];const _0x46350d={};_0x46350d[_0xe45ec3(0x101)]=_0xe45ec3(0xfd)+_0x29732e+':'+_0x2875b2+'@'+BS_API_URL+_0xe45ec3(0x105),_0x46350d[_0xe45ec3(0x11f)]=_0x4e9a43[_0xe45ec3(0xe9)];const _0x11c604=_0x46350d,_0xd6194d=await _0x4e9a43[_0xe45ec3(0x13e)](promisifiedRequest,_0x11c604);_0x4e9a43[_0xe45ec3(0xe8)](_0xd6194d,null)&&_0x4e9a43['fbNzR'](_0xd6194d,undefined)&&_0x4e9a43[_0xe45ec3(0x123)](_0xd6194d[_0xe45ec3(0x12b)],0xc8)&&(_0x4e9a43[_0xe45ec3(0xfa)](_0x4e9a43[_0xe45ec3(0xda)],_0x4e9a43[_0xe45ec3(0xda)])?_0x6c1c59[_0xe45ec3(0xee)](_0x18e08e):_0x256f00=!![]);if(_0x256f00){if(_0x4e9a43[_0xe45ec3(0x13d)](_0x4e9a43[_0xe45ec3(0x10f)],_0x4e9a43[_0xe45ec3(0x133)])){let _0x18c8ff={};const _0x550fd9=_0x4e9a43[_0xe45ec3(0xe3)](getCredentialsPath);fs['existsSync'](_0x550fd9)&&(_0x4e9a43[_0xe45ec3(0x13d)](_0x4e9a43[_0xe45ec3(0x134)],_0x4e9a43[_0xe45ec3(0xf3)])?_0x18c8ff=JSON[_0xe45ec3(0x138)](fs[_0xe45ec3(0x104)](_0x550fd9,_0x4e9a43[_0xe45ec3(0xe4)])):_0x1b134c=_0xb99202[_0xe45ec3(0x138)](_0x419399[_0xe45ec3(0x104)](_0x5c6d1f,_0x4e9a43[_0xe45ec3(0xe4)])));const _0x4d869c={};_0x4d869c[_0xe45ec3(0xdf)]=_0x29732e,_0x4d869c[_0xe45ec3(0x113)]=_0x2875b2,_0x18c8ff['Browserstack']=_0x4d869c,fs[_0xe45ec3(0xe2)](_0x550fd9,JSON[_0xe45ec3(0x126)](_0x18c8ff)),process[_0xe45ec3(0x102)](0x0);}else _0x5e10fb=_0x5e79f9['env'][_0xe45ec3(0xe0)];}else logger[_0xe45ec3(0x119)](_0x4e9a43[_0xe45ec3(0xd6)]),await _0x4e9a43['GIFjh'](sendInstrumentationEvent,_0x432766,_0x4e9a43[_0xe45ec3(0x106)],messageTypes[_0xe45ec3(0xd5)],_0x4e9a43[_0xe45ec3(0xd9)],null,_0x432766),process[_0xe45ec3(0x102)](0x1);}catch(_0x5f0e3f){logger[_0xe45ec3(0x119)](_0x5f0e3f[_0xe45ec3(0x124)]),await _0x4e9a43[_0xe45ec3(0x10d)](sendInstrumentationEvent,_0x432766,_0x4e9a43[_0xe45ec3(0x106)],messageTypes[_0xe45ec3(0xd5)],_0x4e9a43['EtIpR'],_0x5f0e3f,_0x432766),process[_0xe45ec3(0x102)](0x1);}};
1
+ function a7_0x3b4b(_0x3ce764,_0x5c4572){const _0x1ce04d=a7_0x1ce0();return a7_0x3b4b=function(_0x3b4b82,_0x697d81){_0x3b4b82=_0x3b4b82-0x1f3;let _0x5a1b09=_0x1ce04d[_0x3b4b82];return _0x5a1b09;},a7_0x3b4b(_0x3ce764,_0x5c4572);}const a7_0x1f77f1=a7_0x3b4b;(function(_0x3f6dcb,_0x53feae){const _0x5616c5=a7_0x3b4b,_0x3f706d=_0x3f6dcb();while(!![]){try{const _0x287a9a=-parseInt(_0x5616c5(0x249))/0x1+parseInt(_0x5616c5(0x250))/0x2+parseInt(_0x5616c5(0x24d))/0x3+-parseInt(_0x5616c5(0x207))/0x4*(-parseInt(_0x5616c5(0x202))/0x5)+-parseInt(_0x5616c5(0x205))/0x6+-parseInt(_0x5616c5(0x215))/0x7+parseInt(_0x5616c5(0x24c))/0x8*(parseInt(_0x5616c5(0x21b))/0x9);if(_0x287a9a===_0x53feae)break;else _0x3f706d['push'](_0x3f706d['shift']());}catch(_0x401a23){_0x3f706d['push'](_0x3f706d['shift']());}}}(a7_0x1ce0,0xa9467));function a7_0x1ce0(){const _0x23511a=['pchDE','WWliY','uJEtM','ERROR','requestId','utf-8','yGwaA','strict','yvRHD','zLvoq','bstackAccesskey','20rHnPHm','IgouE','kcjfO','6978930hwhZAd','bstack-accesskey','1060096rbqNUL','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','zqXBB','method','rmDnT','url','QhqKY','help','sPmiB','ZBaMF','unknown-error','vvICP','epilogue','ROPwV','6161750sUjzSd','qUMTo','recommendCommands','argv','password','eyJbO','5063301DPCwGm','UUgcd','xKeaJ','GjFyL','QNIDg','BROWSERSTACK_USERNAME','Vipoz','readFileSync','eOCLf','CkJSd','https://','bstack-username','type','iHsEf','options','mkdirSync','stack','BROWSERSTACK_ACCESS_KEY','../config/logger','/automate/plan.json','description','../utils/instrumentationUtils','exit','statusCode','debug','YzTtq','COoTF','wqYkd','KTBKc','stringify','bstackUsername','existsSync','ZHtiU','builder','MIcOR','aRWuT','TOVOS','BsIho','lZNii','util','QDJOz','SJTSF','DdEeg','../utils/userInput','zsACZ','Wdrqj','1020948qnRQJX','DSXmR','init-called','24YKnFqL','2213010QRZJaU','Browserstack','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','544342LZLqyt','jLVce','writeFileSync','CfIYd','env','MOLlq','desc','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','gdDjS','OnQkB','INFO','string','vqFLa','wrong-creds','../config/constants','usage','YuOVn','pqiuQ','error','liYes','vPCnY','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','zbDrv','parse','QgMbQ','AHGAa','JxVUw','lgpKi','uuid','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','init','bKPwR','JnwLJ'];a7_0x1ce0=function(){return _0x23511a;};return a7_0x1ce0();}const fs=require('fs'),util=require(a7_0x1f77f1(0x242)),request=require('request'),{v4:uuidv4}=require(a7_0x1f77f1(0x26c)),{logger}=require(a7_0x1f77f1(0x22d)),{inputBstackKeys}=require(a7_0x1f77f1(0x246)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a7_0x1f77f1(0x25e)),{getDirForConfig,getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a7_0x1f77f1(0x230)),promisifiedRequest=util['promisify'](request);exports['command']=a7_0x1f77f1(0x1f4),exports[a7_0x1f77f1(0x256)]=a7_0x1f77f1(0x1f3),exports[a7_0x1f77f1(0x23c)]=function(_0x5522ef){const _0x2395c3=a7_0x1f77f1,_0x49bd67={};_0x49bd67[_0x2395c3(0x20b)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x49bd67[_0x2395c3(0x23e)]=_0x2395c3(0x25b),_0x49bd67[_0x2395c3(0x21d)]=_0x2395c3(0x265),_0x49bd67[_0x2395c3(0x235)]=_0x2395c3(0x20e);const _0x26e7d4=_0x49bd67,_0x20b2fd={};_0x20b2fd[_0x2395c3(0x22f)]=_0x26e7d4[_0x2395c3(0x20b)],_0x20b2fd[_0x2395c3(0x227)]=_0x26e7d4[_0x2395c3(0x23e)];const _0x428f46={};_0x428f46[_0x2395c3(0x22f)]=_0x26e7d4[_0x2395c3(0x21d)],_0x428f46[_0x2395c3(0x227)]=_0x26e7d4[_0x2395c3(0x23e)];const _0x49a849={};return _0x49a849[_0x2395c3(0x226)]=_0x20b2fd,_0x49a849['bstack-accesskey']=_0x428f46,_0x5522ef[_0x2395c3(0x25f)](HELP_HEADER_MESSAGE[_0x2395c3(0x1f4)])[_0x2395c3(0x213)](HELP_FOOTER_MESSAGE)[_0x2395c3(0x229)](_0x49a849)[_0x2395c3(0x217)]()[_0x2395c3(0x1fe)]()[_0x2395c3(0x20e)](_0x26e7d4[_0x2395c3(0x235)])[_0x2395c3(0x218)];},exports['handler']=async function(_0x1d371c){const _0x2f5c57=a7_0x1f77f1,_0x337450={'ZBaMF':_0x2f5c57(0x208),'IgouE':_0x2f5c57(0x25b),'Vipoz':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','MIcOR':_0x2f5c57(0x20e),'qUMTo':function(_0x5990a6){return _0x5990a6();},'KTBKc':_0x2f5c57(0x1fc),'GjFyL':function(_0x46b50d){return _0x46b50d();},'MOLlq':function(_0x568f80,_0x5bbd7e,_0x33b51f,_0x44de3a,_0x8be26b,_0x27f7a7,_0x5c2ee1){return _0x568f80(_0x5bbd7e,_0x33b51f,_0x44de3a,_0x8be26b,_0x27f7a7,_0x5c2ee1);},'DdEeg':_0x2f5c57(0x24b),'yvRHD':function(_0xb99525,_0x21d6aa){return _0xb99525===_0x21d6aa;},'lgpKi':_0x2f5c57(0x1f5),'zLvoq':_0x2f5c57(0x21c),'wqYkd':function(_0x188b3a,_0x50e0be){return _0x188b3a!==_0x50e0be;},'sScvl':_0x2f5c57(0x209),'jLVce':_0x2f5c57(0x223),'eyJbO':function(_0x509c53,_0x3326e8){return _0x509c53!==_0x3326e8;},'QhqKY':_0x2f5c57(0x23b),'mVLew':_0x2f5c57(0x204),'CfIYd':function(_0x1e587a,_0x3d4974){return _0x1e587a===_0x3d4974;},'vPCnY':_0x2f5c57(0x21f),'SJTSF':_0x2f5c57(0x261),'QCxsb':function(_0x38b4bf,_0x15aae5){return _0x38b4bf===_0x15aae5;},'pchDE':_0x2f5c57(0x266),'CkJSd':_0x2f5c57(0x259),'WWliY':function(_0x4bd656,_0x3ca2a8){return _0x4bd656===_0x3ca2a8;},'vvICP':function(_0x1e74de,_0x3fc657){return _0x1e74de===_0x3fc657;},'uJEtM':function(_0x15a63b,_0x65a3f){return _0x15a63b===_0x65a3f;},'yGwaA':_0x2f5c57(0x247),'YzTtq':_0x2f5c57(0x263),'yaaUI':_0x2f5c57(0x24f),'TOVOS':function(_0xf7f3bb){return _0xf7f3bb();},'sPmiB':'GET','ROPwV':function(_0x5aaa5b,_0x5fffd5){return _0x5aaa5b(_0x5fffd5);},'nidmP':function(_0x3daaa3,_0x4217dd){return _0x3daaa3!==_0x4217dd;},'DSXmR':function(_0x37466b,_0x499f3c){return _0x37466b===_0x499f3c;},'wlTvU':function(_0xfda31b,_0x48bf31){return _0xfda31b===_0x48bf31;},'BsIho':'yAyUb','QgMbQ':_0x2f5c57(0x269),'vqFLa':function(_0x5ebc67,_0x2651ca){return _0x5ebc67===_0x2651ca;},'aYrun':_0x2f5c57(0x241),'Wdrqj':_0x2f5c57(0x228),'QDJOz':function(_0x513b19){return _0x513b19();},'QIQUE':_0x2f5c57(0x1f6),'UuGtV':_0x2f5c57(0x260),'JxVUw':_0x2f5c57(0x257),'gdDjS':_0x2f5c57(0x25d),'MyMsU':_0x2f5c57(0x211)};try{global_registry[_0x2f5c57(0x1fb)]=_0x337450[_0x2f5c57(0x21e)](uuidv4),_0x337450[_0x2f5c57(0x255)](sendInstrumentationEvent,_0x1d371c,_0x337450[_0x2f5c57(0x245)],messageTypes[_0x2f5c57(0x25a)],null,null,_0x1d371c);const _0x12c857=_0x337450['qUMTo'](getDirForConfig);!fs[_0x2f5c57(0x23a)](_0x12c857)&&(_0x337450[_0x2f5c57(0x1ff)](_0x337450[_0x2f5c57(0x26b)],_0x337450[_0x2f5c57(0x200)])?_0x46f754=_0x11d6d4[_0x2f5c57(0x254)][_0x2f5c57(0x220)]:fs[_0x2f5c57(0x22a)](_0x12c857));let _0x1e15f0,_0x173680;_0x1d371c[_0x2f5c57(0x239)]&&(_0x337450[_0x2f5c57(0x236)](_0x337450['sScvl'],_0x337450[_0x2f5c57(0x251)])?_0x1e15f0=_0x1d371c[_0x2f5c57(0x239)]:_0x264413=!![]);process[_0x2f5c57(0x254)][_0x2f5c57(0x220)]&&(_0x337450[_0x2f5c57(0x21a)](_0x337450[_0x2f5c57(0x20d)],_0x337450['mVLew'])?_0x1e15f0=process[_0x2f5c57(0x254)][_0x2f5c57(0x220)]:_0x35e334=_0x529e8b[_0x2f5c57(0x201)]);_0x1d371c['bstackAccesskey']&&(_0x337450[_0x2f5c57(0x253)](_0x337450[_0x2f5c57(0x264)],_0x337450[_0x2f5c57(0x244)])?_0x3a1bc2['mkdirSync'](_0x3dfb1b):_0x173680=_0x1d371c[_0x2f5c57(0x201)]);if(process['env'][_0x2f5c57(0x22c)]){if(_0x337450['QCxsb'](_0x337450[_0x2f5c57(0x1f7)],_0x337450[_0x2f5c57(0x224)])){const _0x5ab622={};_0x5ab622[_0x2f5c57(0x22f)]=_0x337450[_0x2f5c57(0x210)],_0x5ab622['type']=_0x337450['IgouE'];const _0x1c1559={};_0x1c1559[_0x2f5c57(0x22f)]=_0x337450[_0x2f5c57(0x221)],_0x1c1559['type']=_0x337450[_0x2f5c57(0x203)];const _0x249edd={};return _0x249edd['bstack-username']=_0x5ab622,_0x249edd[_0x2f5c57(0x206)]=_0x1c1559,_0x3339f7[_0x2f5c57(0x25f)](_0x66feae[_0x2f5c57(0x1f4)])[_0x2f5c57(0x213)](_0x57e57f)[_0x2f5c57(0x229)](_0x249edd)['recommendCommands']()['strict']()[_0x2f5c57(0x20e)](_0x337450[_0x2f5c57(0x23d)])[_0x2f5c57(0x218)];}else _0x173680=process[_0x2f5c57(0x254)][_0x2f5c57(0x22c)];}if(_0x337450[_0x2f5c57(0x1f8)](_0x1e15f0,undefined)||_0x337450['vvICP'](_0x173680,undefined)){if(_0x337450[_0x2f5c57(0x1f9)](_0x337450[_0x2f5c57(0x1fd)],_0x337450[_0x2f5c57(0x234)]))_0x3da948=_0xafa9eb['bstackUsername'];else{logger[_0x2f5c57(0x233)](_0x337450['yaaUI']);const [_0x203c5f,_0x32de59]=await _0x337450[_0x2f5c57(0x23f)](inputBstackKeys);_0x1e15f0=_0x203c5f,_0x173680=_0x32de59;}}let _0xa1320f=![];const _0x27a84b={};_0x27a84b[_0x2f5c57(0x20c)]=_0x2f5c57(0x225)+_0x1e15f0+':'+_0x173680+'@'+BS_API_URL+_0x2f5c57(0x22e),_0x27a84b[_0x2f5c57(0x20a)]=_0x337450[_0x2f5c57(0x20f)];const _0x5ee6ce=_0x27a84b,_0x492c50=await _0x337450[_0x2f5c57(0x214)](promisifiedRequest,_0x5ee6ce);if(_0x337450[_0x2f5c57(0x21a)](_0x492c50,null)&&_0x337450['nidmP'](_0x492c50,undefined)&&_0x337450[_0x2f5c57(0x24a)](_0x492c50[_0x2f5c57(0x232)],0xc8)){if(_0x337450['wlTvU'](_0x337450[_0x2f5c57(0x240)],_0x337450[_0x2f5c57(0x268)])){let _0x13bb52={};const _0x374afb=_0x337450[_0x2f5c57(0x216)](_0xcdbdbc);_0x219420['existsSync'](_0x374afb)&&(_0x13bb52=_0x26b5a0['parse'](_0x20f211[_0x2f5c57(0x222)](_0x374afb,_0x337450[_0x2f5c57(0x237)])));const _0x185b1e={};_0x185b1e['username']=_0x4f2bbc,_0x185b1e[_0x2f5c57(0x219)]=_0x59a1c0,_0x13bb52[_0x2f5c57(0x24e)]=_0x185b1e,_0x412736[_0x2f5c57(0x252)](_0x374afb,_0xac8767[_0x2f5c57(0x238)](_0x13bb52)),_0x3a1f6c[_0x2f5c57(0x231)](0x0);}else _0xa1320f=!![];}if(_0xa1320f){if(_0x337450[_0x2f5c57(0x25c)](_0x337450['aYrun'],_0x337450[_0x2f5c57(0x248)]))_0x2446b2=_0x36c80c[_0x2f5c57(0x254)][_0x2f5c57(0x22c)];else{let _0x5ea0a2={};const _0x145439=_0x337450[_0x2f5c57(0x243)](getCredentialsPath);fs[_0x2f5c57(0x23a)](_0x145439)&&(_0x337450[_0x2f5c57(0x212)](_0x337450['QIQUE'],_0x337450['UuGtV'])?_0x1aedfb=_0x69d34c[_0x2f5c57(0x267)](_0x42c6ae[_0x2f5c57(0x222)](_0x1e3778,_0x337450[_0x2f5c57(0x237)])):_0x5ea0a2=JSON[_0x2f5c57(0x267)](fs[_0x2f5c57(0x222)](_0x145439,_0x337450[_0x2f5c57(0x237)])));const _0x2d3d37={};_0x2d3d37['username']=_0x1e15f0,_0x2d3d37[_0x2f5c57(0x219)]=_0x173680,_0x5ea0a2[_0x2f5c57(0x24e)]=_0x2d3d37,fs[_0x2f5c57(0x252)](_0x145439,JSON[_0x2f5c57(0x238)](_0x5ea0a2)),process[_0x2f5c57(0x231)](0x0);}}else logger[_0x2f5c57(0x262)](_0x337450[_0x2f5c57(0x26a)]),await _0x337450[_0x2f5c57(0x255)](sendInstrumentationEvent,_0x1d371c,_0x337450[_0x2f5c57(0x245)],messageTypes['ERROR'],_0x337450[_0x2f5c57(0x258)],null,_0x1d371c),process[_0x2f5c57(0x231)](0x1);}catch(_0x11b40a){logger[_0x2f5c57(0x262)](_0x11b40a[_0x2f5c57(0x22b)]),await _0x337450[_0x2f5c57(0x255)](sendInstrumentationEvent,_0x1d371c,_0x337450['DdEeg'],messageTypes[_0x2f5c57(0x1fa)],_0x337450['MyMsU'],_0x11b40a,_0x1d371c),process['exit'](0x1);}};