browserstack-node-sdk 1.65.2 → 1.65.4

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 (216) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  42. package/src/bin/codeceptjs/command.js +1 -1
  43. package/src/bin/codeceptjs/helper.js +1 -1
  44. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  45. package/src/bin/cucumber-js/command.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  48. package/src/bin/cucumber-js/test-observability.js +1 -1
  49. package/src/bin/cucumber-js/test.setup.js +1 -1
  50. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  51. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  52. package/src/bin/integrations/command.js +1 -1
  53. package/src/bin/integrations/constants.js +1 -1
  54. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  55. package/src/bin/jasmine/command.js +1 -1
  56. package/src/bin/jasmine/test.setup.js +1 -1
  57. package/src/bin/jasmine/testRunMap.js +1 -1
  58. package/src/bin/jest/command.js +1 -1
  59. package/src/bin/jest/customImplements/customCircus.js +1 -1
  60. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  61. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  62. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  63. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  64. package/src/bin/jest/jest.setup.js +1 -1
  65. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  66. package/src/bin/jest/test-observability/helper.js +1 -1
  67. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  68. package/src/bin/jest/test-observability/test-details.js +1 -1
  69. package/src/bin/jest/test.setup.js +1 -1
  70. package/src/bin/jest/test_before.setup.js +1 -1
  71. package/src/bin/launcher/launcher.js +1 -1
  72. package/src/bin/load/index.js +1 -1
  73. package/src/bin/load/loadErrors.js +1 -1
  74. package/src/bin/load/loadUtils.js +1 -1
  75. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  76. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  77. package/src/bin/mocha/command.js +1 -1
  78. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  79. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  80. package/src/bin/mocha/test.setup.js +1 -1
  81. package/src/bin/newman/command.js +1 -1
  82. package/src/bin/newman/helper.js +1 -1
  83. package/src/bin/newman/reporter/index.js +1 -1
  84. package/src/bin/newman/scriptRunner.js +1 -1
  85. package/src/bin/nightwatch/command.js +1 -1
  86. package/src/bin/node-generic/client.js +1 -1
  87. package/src/bin/playwright/accessibility-helper.js +1 -1
  88. package/src/bin/playwright/command.js +1 -1
  89. package/src/bin/playwright/globalSetup.js +1 -1
  90. package/src/bin/playwright/mock-process.js +1 -1
  91. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  92. package/src/bin/playwright/patches.js +1 -1
  93. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  94. package/src/bin/playwright/reporter/reporter.js +1 -1
  95. package/src/bin/playwright/reporter/test-details.js +1 -1
  96. package/src/bin/playwright/reporterArgs.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  137. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  138. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  139. package/src/bin/v2/framework/testFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  142. package/src/bin/v2/grpcClient.js +1 -1
  143. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  145. package/src/bin/v2/instances/trackedContext.js +1 -1
  146. package/src/bin/v2/instances/trackedInstance.js +1 -1
  147. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  148. package/src/bin/v2/modules/baseModule.js +1 -1
  149. package/src/bin/v2/modules/loadTestModule.js +1 -1
  150. package/src/bin/v2/modules/observabilityModule.js +1 -1
  151. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  152. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  154. package/src/bin/v2/modules/testhubModule.js +1 -1
  155. package/src/bin/v2/sdkErrorHandler.js +1 -1
  156. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  157. package/src/bin/v2/state/hookState.js +1 -1
  158. package/src/bin/v2/state/testFrameworkState.js +1 -1
  159. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  160. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  161. package/src/bin/v2/utils/jest-utils.js +1 -1
  162. package/src/bin/vanilla-js/command.js +1 -1
  163. package/src/browserStackSdk.js +1 -1
  164. package/src/helpers/BrowserStackSetup.js +1 -1
  165. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  166. package/src/helpers/accessibility-automation/constants.js +1 -1
  167. package/src/helpers/accessibility-automation/helper.js +1 -1
  168. package/src/helpers/accessibility-automation/scripts.js +1 -1
  169. package/src/helpers/ats/constants.js +1 -1
  170. package/src/helpers/ats/helper.js +1 -1
  171. package/src/helpers/caCertHelper.js +1 -1
  172. package/src/helpers/capsMapping.js +1 -1
  173. package/src/helpers/central-scanner/constants.js +1 -1
  174. package/src/helpers/central-scanner/helpers.js +1 -1
  175. package/src/helpers/classLogger.js +1 -1
  176. package/src/helpers/driverInitErrorReporter.js +1 -1
  177. package/src/helpers/globals.js +1 -1
  178. package/src/helpers/helper.js +1 -1
  179. package/src/helpers/logger.js +1 -1
  180. package/src/helpers/metadata.js +1 -1
  181. package/src/helpers/patchHelper.js +1 -1
  182. package/src/helpers/patchHelpers.js +1 -1
  183. package/src/helpers/percy/Percy.js +1 -1
  184. package/src/helpers/percy/PercyBinary.js +1 -1
  185. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  186. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  187. package/src/helpers/percy/PercySDK.js +1 -1
  188. package/src/helpers/percy/index.js +1 -1
  189. package/src/helpers/percy/utils.js +1 -1
  190. package/src/helpers/performance/constants.js +1 -1
  191. package/src/helpers/performance/performance-tester.js +1 -1
  192. package/src/helpers/playwright-helper.js +1 -1
  193. package/src/helpers/processHelper.js +1 -1
  194. package/src/helpers/puppeteer-helper.js +1 -1
  195. package/src/helpers/request-spy.js +1 -1
  196. package/src/helpers/setKeepAlive.js +1 -1
  197. package/src/helpers/stackFrameUtils.js +1 -1
  198. package/src/helpers/test-observability/constants.js +1 -1
  199. package/src/helpers/test-observability/error-handler.js +1 -1
  200. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  201. package/src/helpers/test-observability/sessionHandler.js +1 -1
  202. package/src/helpers/test-observability/utils.js +1 -1
  203. package/src/helpers/test-orchestration/constants.js +1 -1
  204. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  205. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  206. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  207. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  208. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  209. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  210. package/src/helpers/testhub/constants.js +1 -1
  211. package/src/helpers/testhub/testhubHandler.js +1 -1
  212. package/src/helpers/testhub/utils.js +1 -1
  213. package/src/helpers/utilities.js +1 -1
  214. package/src/helpers/w3cMapping.js +1 -1
  215. package/src/hubAllocationMethods.js +1 -1
  216. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a2_0x1942(){const _0x13fd61=['clusterName','fAvBP','../utils/utilityMethods','bPILh','jhXIj','rws','writeFileSync','cloudProvider','stringify','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','../utils/userInput','CIbHN','debug','type','split','parse','1631518sOrvys','DsMUn','webSocketUtils','2008620EcswjJ','info','0|2|1|3|4','cSkNy','../config/constants','3734570XdzJqo','cloudProviderName','../config/logger','5417433zZETNb','3289008KmgxDo','pJpIl','WRsXR','24dVtiek','init','exports','3QxRcdF','1810186qdZkNN','CloudProvider','1TwNanq','3921508VFzLhm'];a2_0x1942=function(){return _0x13fd61;};return a2_0x1942();}const a2_0x26cbdf=a2_0x11f8;(function(_0x37b636,_0x4a769d){const _0x4192ae=a2_0x11f8,_0x42dcda=_0x37b636();while(!![]){try{const _0x3e3fc1=-parseInt(_0x4192ae(0x162))/0x1*(-parseInt(_0x4192ae(0x174))/0x2)+parseInt(_0x4192ae(0x15f))/0x3*(parseInt(_0x4192ae(0x163))/0x4)+-parseInt(_0x4192ae(0x17c))/0x5+-parseInt(_0x4192ae(0x180))/0x6+parseInt(_0x4192ae(0x160))/0x7*(-parseInt(_0x4192ae(0x183))/0x8)+parseInt(_0x4192ae(0x17f))/0x9+parseInt(_0x4192ae(0x177))/0xa;if(_0x3e3fc1===_0x4a769d)break;else _0x42dcda['push'](_0x42dcda['shift']());}catch(_0x4d8987){_0x42dcda['push'](_0x42dcda['shift']());}}}(a2_0x1942,0x80ebb));const fs=require('fs'),{getCredentialsPath,isUndefined}=require(a2_0x26cbdf(0x166)),{logger}=require(a2_0x26cbdf(0x17e)),{inputCloudProviderKeys}=require(a2_0x26cbdf(0x16e)),{WS_EVENTS}=require(a2_0x26cbdf(0x17b));class CloudProvider{constructor(_0x38e8b5,_0x2a0ad5,_0x18be7b,_0x399723,_0x3b7874){const _0x4ee2e1=a2_0x26cbdf,_0xd37d50={};_0xd37d50[_0x4ee2e1(0x182)]=_0x4ee2e1(0x179);const _0x2d7fd1=_0xd37d50,_0x136bc5=_0x2d7fd1['WRsXR'][_0x4ee2e1(0x172)]('|');let _0x205736=0x0;while(!![]){switch(_0x136bc5[_0x205736++]){case'0':this[_0x4ee2e1(0x17d)]=_0x38e8b5;continue;case'1':this['gridName']=_0x18be7b;continue;case'2':this[_0x4ee2e1(0x164)]=_0x2a0ad5;continue;case'3':this[_0x4ee2e1(0x169)]=_0x399723;continue;case'4':this[_0x4ee2e1(0x176)]=_0x3b7874;continue;}break;}}async[a2_0x26cbdf(0x184)](){const _0xc3598c=a2_0x26cbdf,_0x790c1={'fAvBP':function(_0x50fb05){return _0x50fb05();},'cSkNy':function(_0x43a938,_0x1fca3b){return _0x43a938(_0x1fca3b);},'jhXIj':_0xc3598c(0x16d),'bPILh':function(_0x513a31,_0x59d9fd,_0x340e6b,_0x432101){return _0x513a31(_0x59d9fd,_0x340e6b,_0x432101);},'pJpIl':function(_0x3596ae){return _0x3596ae();},'DsMUn':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','CIbHN':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20perform\x20actions'},_0x43de81=JSON[_0xc3598c(0x173)](fs['readFileSync'](_0x790c1[_0xc3598c(0x165)](getCredentialsPath))),_0x18006d=_0x43de81[_0xc3598c(0x16b)]||{};if(_0x790c1[_0xc3598c(0x17a)](isUndefined,_0x18006d[this['cloudProviderName']])){logger[_0xc3598c(0x178)](_0x790c1[_0xc3598c(0x168)]);_0x790c1[_0xc3598c(0x17a)](isUndefined,_0x43de81[_0xc3598c(0x16b)])&&(_0x43de81[_0xc3598c(0x16b)]={});_0x43de81[_0xc3598c(0x16b)][this[_0xc3598c(0x17d)]]={};const _0x5d24fd=await _0x790c1[_0xc3598c(0x167)](inputCloudProviderKeys,this['cloudProviderName'],_0x43de81,this);fs[_0xc3598c(0x16a)](_0x790c1[_0xc3598c(0x181)](getCredentialsPath),JSON[_0xc3598c(0x16c)](_0x5d24fd)),logger[_0xc3598c(0x170)](_0x790c1[_0xc3598c(0x175)]);}else{const _0x210a0a=_0x790c1[_0xc3598c(0x16f)],_0x36aaac={};_0x36aaac[_0xc3598c(0x171)]=WS_EVENTS['LOG'],_0x36aaac['message']=_0x210a0a,this[_0xc3598c(0x176)]['sendEventToBackend'](this[_0xc3598c(0x169)],_0x36aaac),logger[_0xc3598c(0x178)](_0x210a0a),await this['setCachedCredsInRegistry'](_0x18006d);}}}function a2_0x11f8(_0x15f4bf,_0x28873b){const _0x19426d=a2_0x1942();return a2_0x11f8=function(_0x11f873,_0x1dcc02){_0x11f873=_0x11f873-0x15e;let _0x2904fc=_0x19426d[_0x11f873];return _0x2904fc;},a2_0x11f8(_0x15f4bf,_0x28873b);}const a2_0x5d2acc={};a2_0x5d2acc[a2_0x26cbdf(0x161)]=CloudProvider,module[a2_0x26cbdf(0x15e)]=a2_0x5d2acc;
1
+ const a2_0x339980=a2_0x56b6;(function(_0x35289c,_0x20e19d){const _0x33155f=a2_0x56b6,_0x504878=_0x35289c();while(!![]){try{const _0x15ebfd=parseInt(_0x33155f(0xfd))/0x1*(-parseInt(_0x33155f(0xe6))/0x2)+parseInt(_0x33155f(0xf2))/0x3*(-parseInt(_0x33155f(0xf5))/0x4)+-parseInt(_0x33155f(0xf9))/0x5*(parseInt(_0x33155f(0x100))/0x6)+parseInt(_0x33155f(0xe5))/0x7*(-parseInt(_0x33155f(0xf6))/0x8)+parseInt(_0x33155f(0xec))/0x9+parseInt(_0x33155f(0xe7))/0xa*(parseInt(_0x33155f(0xfc))/0xb)+parseInt(_0x33155f(0xff))/0xc;if(_0x15ebfd===_0x20e19d)break;else _0x504878['push'](_0x504878['shift']());}catch(_0x1f3e02){_0x504878['push'](_0x504878['shift']());}}}(a2_0x4f97,0xc4129));const fs=require('fs'),{getCredentialsPath,isUndefined}=require(a2_0x339980(0xe8)),{logger}=require(a2_0x339980(0xe2)),{inputCloudProviderKeys}=require(a2_0x339980(0xe9)),{WS_EVENTS}=require(a2_0x339980(0xdc));class CloudProvider{constructor(_0x3fa4d6,_0x3c7456,_0x4a0dfc,_0x1dc04b,_0x1573f4){const _0x3cc5ec=a2_0x339980,_0x40e12c={};_0x40e12c[_0x3cc5ec(0xdf)]=_0x3cc5ec(0x105);const _0x2e2f16=_0x40e12c,_0x30b4b5=_0x2e2f16['fjHwk'][_0x3cc5ec(0xef)]('|');let _0x3a24d2=0x0;while(!![]){switch(_0x30b4b5[_0x3a24d2++]){case'0':this[_0x3cc5ec(0xfb)]=_0x1573f4;continue;case'1':this[_0x3cc5ec(0xe0)]=_0x3c7456;continue;case'2':this[_0x3cc5ec(0x104)]=_0x4a0dfc;continue;case'3':this['rws']=_0x1dc04b;continue;case'4':this[_0x3cc5ec(0xf8)]=_0x3fa4d6;continue;}break;}}async[a2_0x339980(0x103)](){const _0x18c3cd=a2_0x339980,_0xc5c97={'DOMRX':function(_0x39b02b){return _0x39b02b();},'pXCHp':function(_0x21becd,_0x29c7f2){return _0x21becd(_0x29c7f2);},'EJiKU':_0x18c3cd(0xeb),'AYnng':function(_0x231687,_0x495863,_0xc49f7b,_0x47c250){return _0x231687(_0x495863,_0xc49f7b,_0x47c250);},'vlhNJ':_0x18c3cd(0xfe),'BodeV':_0x18c3cd(0xed)},_0x152590=JSON[_0x18c3cd(0xe4)](fs[_0x18c3cd(0xf1)](_0xc5c97[_0x18c3cd(0xdd)](getCredentialsPath))),_0x1abe8d=_0x152590['cloudProvider']||{};if(_0xc5c97[_0x18c3cd(0xf3)](isUndefined,_0x1abe8d[this['cloudProviderName']])){logger['info'](_0xc5c97[_0x18c3cd(0xf0)]);_0xc5c97[_0x18c3cd(0xf3)](isUndefined,_0x152590[_0x18c3cd(0x102)])&&(_0x152590[_0x18c3cd(0x102)]={});_0x152590[_0x18c3cd(0x102)][this[_0x18c3cd(0xf8)]]={};const _0x331988=await _0xc5c97['AYnng'](inputCloudProviderKeys,this[_0x18c3cd(0xf8)],_0x152590,this);fs[_0x18c3cd(0xf7)](_0xc5c97[_0x18c3cd(0xdd)](getCredentialsPath),JSON[_0x18c3cd(0xfa)](_0x331988)),logger[_0x18c3cd(0xde)](_0xc5c97['vlhNJ']);}else{const _0x22e095=_0xc5c97[_0x18c3cd(0xdb)],_0x3dafac={};_0x3dafac[_0x18c3cd(0xe1)]=WS_EVENTS['LOG'],_0x3dafac[_0x18c3cd(0xee)]=_0x22e095,this['webSocketUtils'][_0x18c3cd(0xea)](this[_0x18c3cd(0xf4)],_0x3dafac),logger['info'](_0x22e095),await this['setCachedCredsInRegistry'](_0x1abe8d);}}}function a2_0x56b6(_0x18b9b9,_0x12ed9c){const _0x4f97cd=a2_0x4f97();return a2_0x56b6=function(_0x56b602,_0x1cba04){_0x56b602=_0x56b602-0xdb;let _0x2ba224=_0x4f97cd[_0x56b602];return _0x2ba224;},a2_0x56b6(_0x18b9b9,_0x12ed9c);}const a2_0x2cd723={};function a2_0x4f97(){const _0x1f18c3=['Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','5345109hLSRwy','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20perform\x20actions','message','split','EJiKU','readFileSync','6WXKIPr','pXCHp','rws','1905492qXEjyV','16DwNXwT','writeFileSync','cloudProviderName','125CRByct','stringify','webSocketUtils','106502kcxSud','1sZRFer','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','26748792rjMXRL','84858kUHUfm','CloudProvider','cloudProvider','init','gridName','4|1|2|3|0','BodeV','../config/constants','DOMRX','debug','fjHwk','clusterName','type','../config/logger','exports','parse','2189201fLwwgl','2828962lSJngz','1370TfOkOS','../utils/utilityMethods','../utils/userInput','sendEventToBackend'];a2_0x4f97=function(){return _0x1f18c3;};return a2_0x4f97();}a2_0x2cd723[a2_0x339980(0x101)]=CloudProvider,module[a2_0x339980(0xe3)]=a2_0x2cd723;
@@ -1 +1 @@
1
- const a3_0x21d734=a3_0xec82;(function(_0x1a1cd5,_0x5227bb){const _0x1ff703=a3_0xec82,_0x5299a9=_0x1a1cd5();while(!![]){try{const _0x3deee9=-parseInt(_0x1ff703(0xe6))/0x1*(-parseInt(_0x1ff703(0x1da))/0x2)+parseInt(_0x1ff703(0x222))/0x3+parseInt(_0x1ff703(0x178))/0x4*(parseInt(_0x1ff703(0x12f))/0x5)+parseInt(_0x1ff703(0xfe))/0x6+parseInt(_0x1ff703(0x106))/0x7+-parseInt(_0x1ff703(0x210))/0x8+-parseInt(_0x1ff703(0x1ba))/0x9;if(_0x3deee9===_0x5227bb)break;else _0x5299a9['push'](_0x5299a9['shift']());}catch(_0x3e4590){_0x5299a9['push'](_0x5299a9['shift']());}}}(a3_0x1cac,0x389ba));const fs=require('fs'),path=require('path'),got=require(a3_0x21d734(0x208)),util=require(a3_0x21d734(0xd8)),cp=require(a3_0x21d734(0x204)),{google}=require(a3_0x21d734(0x114)),compute=require('@google-cloud/compute'),container=require('@google-cloud/container'),{ProjectsClient}=require(a3_0x21d734(0xed))['v3'],{logger}=require(a3_0x21d734(0x229)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader,runCommand}=require(a3_0x21d734(0x11f)),{deleteRoutingDeps,deleteAgent}=require('../utils/gridComponents'),{inputConfirmation,closeInput}=require(a3_0x21d734(0x1ca)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x21d734(0x132)),PERMISSIONS=require(a3_0x21d734(0x20c));class GoogleCloudProvider extends CloudProvider{constructor(_0x2597fe,_0x474ab7,_0x6acff3,_0x30bbbe){const _0x5432c2=a3_0x21d734,_0x1e2993={};_0x1e2993['kemkj']=_0x5432c2(0x249),_0x1e2993[_0x5432c2(0x162)]=_0x5432c2(0x1f0),_0x1e2993[_0x5432c2(0x259)]=_0x5432c2(0x1d3);const _0x239a5f=_0x1e2993,_0x594701=_0x239a5f['kemkj'][_0x5432c2(0xfb)]('|');let _0x4e1c0e=0x0;while(!![]){switch(_0x594701[_0x4e1c0e++]){case'0':this[_0x5432c2(0x1e5)]=null;continue;case'1':super(GCP,_0x2597fe,_0x474ab7,_0x6acff3,_0x30bbbe);continue;case'2':this[_0x5432c2(0x1ec)]=_0x239a5f[_0x5432c2(0x162)];continue;case'3':this[_0x5432c2(0x11a)]=null;continue;case'4':this['iamClient']=null;continue;case'5':this[_0x5432c2(0x1f9)]=null;continue;case'6':this['credentialsPath']=null;continue;case'7':this[_0x5432c2(0x20d)]=_0x239a5f[_0x5432c2(0x259)];continue;case'8':this[_0x5432c2(0x1ab)]=null;continue;}break;}}async[a3_0x21d734(0x122)](){const _0x3afd58=a3_0x21d734;this[_0x3afd58(0x148)](this[_0x3afd58(0x14a)]);}async['init'](){const _0x5a8792=a3_0x21d734;await super['init']();const _0x470a9d=this['credentialsPath'],_0x104f0c={};_0x104f0c[_0x5a8792(0x199)]=_0x470a9d,this[_0x5a8792(0x1e5)]=new container['v1'][(_0x5a8792(0x266))](_0x104f0c);const _0x2891f1={};_0x2891f1['keyFile']=_0x470a9d,this[_0x5a8792(0x1ab)]=new compute['v1'][(_0x5a8792(0x207))](_0x2891f1);const _0x14c3e0={};return _0x14c3e0['keyFile']=_0x470a9d,this['resourcemanagerClient']=new ProjectsClient(_0x14c3e0),this[_0x5a8792(0x1cf)]=google[_0x5a8792(0x117)]('v1'),this;}async[a3_0x21d734(0x17c)](_0x3e3cb5,_0x5cfc78){const _0x7ba4f6=a3_0x21d734,_0x172dee={'iMnsL':function(_0x157ae1,_0x536f1c){return _0x157ae1(_0x536f1c);},'GKRcL':_0x7ba4f6(0x17f),'bGpeO':function(_0xb9f5d3){return _0xb9f5d3();},'VGOlD':_0x7ba4f6(0x232)},_0x3a79d8=await _0x172dee[_0x7ba4f6(0x111)](_0x3e3cb5,_0x172dee[_0x7ba4f6(0x156)]);let _0x27a75f=await fs['readFileAsync'](_0x3a79d8);_0x27a75f=_0x27a75f[_0x7ba4f6(0x144)]();const _0x1d7c3c=_0x172dee[_0x7ba4f6(0x1dd)](getDirForConfig),_0x3b2454=path[_0x7ba4f6(0x143)](_0x1d7c3c,_0x172dee['VGOlD']);fs[_0x7ba4f6(0x137)](_0x3b2454,_0x27a75f),this['credentialsPath']=_0x3b2454;const _0x20c7d3={};return _0x20c7d3[_0x7ba4f6(0x199)]=_0x3b2454,_0x5cfc78[_0x7ba4f6(0x13a)][GCP]=_0x20c7d3,_0x27a75f=JSON[_0x7ba4f6(0x1d6)](_0x27a75f),this['projectId']=_0x27a75f['project_id'],_0x5cfc78;}async['setCachedCredsInRegistry'](_0x199a99){const _0x1d970e=a3_0x21d734;this[_0x1d970e(0x244)]=_0x199a99[this[_0x1d970e(0xef)]][_0x1d970e(0x199)];let _0x416512=await fs[_0x1d970e(0x1b8)](this['credentialsPath']);_0x416512=JSON['parse'](_0x416512),this['projectId']=_0x416512[_0x1d970e(0x1c2)];}[a3_0x21d734(0xec)](_0x40c3ca){const _0x7d40ff=a3_0x21d734;return _0x40c3ca[_0x7d40ff(0x237)]['loadBalancer']['ingress'][0x0]['ip'];}async[a3_0x21d734(0x1b1)](){const _0x1582eb=a3_0x21d734,_0x5da7a3={};_0x5da7a3[_0x1582eb(0x1e9)]=_0x1582eb(0x26c),_0x5da7a3['NruhR']=function(_0x16e3f7,_0x2ecf91){return _0x16e3f7-_0x2ecf91;},_0x5da7a3[_0x1582eb(0x276)]=function(_0x4557eb,_0x1bdc87){return _0x4557eb===_0x1bdc87;},_0x5da7a3[_0x1582eb(0x163)]=_0x1582eb(0x150),_0x5da7a3[_0x1582eb(0xe9)]=_0x1582eb(0x13d),_0x5da7a3[_0x1582eb(0x159)]=_0x1582eb(0xf8),_0x5da7a3['QjsLw']=function(_0x187376,_0x5bec7b){return _0x187376===_0x5bec7b;},_0x5da7a3['tWnBI']='browserstack',_0x5da7a3[_0x1582eb(0x22a)]=_0x1582eb(0x1d8);const _0x265171=_0x5da7a3;try{if(_0x265171[_0x1582eb(0x276)](_0x265171[_0x1582eb(0x163)],_0x265171[_0x1582eb(0xe9)])){const _0x3282e4={};_0x3282e4[_0x1582eb(0x1bf)]=_0x265171[_0x1582eb(0x1e9)],_0x2501bb['releaseChannel']=_0x3282e4;}else{const _0x3c6040=await this[_0x1582eb(0x155)]();if(_0x3c6040[0x0]?.['resourceLabels']?.['managedby']){if(_0x265171['ylihT'](_0x265171[_0x1582eb(0x159)],_0x265171[_0x1582eb(0x159)])){const _0x5d7406=_0x3c6040[0x0]?.[_0x1582eb(0x109)]?.[_0x1582eb(0x23e)];return _0x5d7406&&_0x265171[_0x1582eb(0x1c9)](_0x5d7406['toLowerCase'](),_0x265171['tWnBI']);}else _0x2eefd3['error']('error\x20:\x20'+_0x21563f+_0x1582eb(0x1f7)+_0x41bab2['stack']),_0x2eb751['data']=_0x1582eb(0x149)+_0x528dad,_0x13a351[_0x1582eb(0x1ac)]=_0x546b42;}}}catch(_0x2c9612){if(_0x265171[_0x1582eb(0x1c9)](_0x265171['HbOJY'],_0x265171[_0x1582eb(0x22a)]))return![];else _0x3a0150['clusterRegion']=_0x4dfc64[_0x265171[_0x1582eb(0x1e1)](_0x525e6b,0x1)],this[_0x1582eb(0x211)]();}return![];}async[a3_0x21d734(0xdf)](){const _0x3f077c=a3_0x21d734,_0x1fb5d6={'hCwiG':_0x3f077c(0x175),'PzJAH':function(_0x153d93,_0x3dffc4){return _0x153d93+_0x3dffc4;},'kdWEJ':function(_0x27fe57,_0x10df7c){return _0x27fe57!==_0x10df7c;},'yUDdO':function(_0x4fdb84,_0x62000f){return _0x4fdb84===_0x62000f;},'PehMN':_0x3f077c(0x27e),'QEGqx':_0x3f077c(0xda),'UgPhw':_0x3f077c(0x180),'wchxp':_0x3f077c(0x233),'AQDZh':_0x3f077c(0xe2),'drudn':_0x3f077c(0x133),'ufALM':_0x3f077c(0x23d),'kMKsh':function(_0x34fce8,_0x1b6c57){return _0x34fce8!==_0x1b6c57;},'RiOwk':function(_0x30915d,_0x4ff25f){return _0x30915d!==_0x4ff25f;},'TMMMc':_0x3f077c(0x1b6),'Xnvdl':_0x3f077c(0x21c),'gfMei':_0x3f077c(0x268),'BjxpK':function(_0x208e27,_0xa5ae98){return _0x208e27!==_0xa5ae98;},'ZuhPA':_0x3f077c(0x239),'CrCda':_0x3f077c(0x119),'gtVoE':function(_0x44f4f9,_0x39eebd){return _0x44f4f9===_0x39eebd;},'gsXLZ':function(_0x1bcec5,_0x3fd19c){return _0x1bcec5===_0x3fd19c;},'xmCoz':_0x3f077c(0x27c),'JyMQH':_0x3f077c(0x21d),'jbIPM':function(_0xeb2c0a,_0x3eb9df){return _0xeb2c0a!==_0x3eb9df;},'aqzUQ':_0x3f077c(0x16b),'yqPqk':_0x3f077c(0x189),'lAouo':_0x3f077c(0x1a2),'fMzvB':function(_0x51d330,_0x126493){return _0x51d330>_0x126493;},'BZWzG':function(_0x424274,_0x358ace){return _0x424274!==_0x358ace;},'dYwRV':_0x3f077c(0x1e2),'Xpibc':_0x3f077c(0x154),'IBeWp':function(_0x128b67,_0x4d9d76){return _0x128b67<_0x4d9d76;},'ftAaR':function(_0x564130,_0x3c122b){return _0x564130!==_0x3c122b;},'Uiomo':_0x3f077c(0xee),'PrrZL':function(_0x1c8a74,_0x4cbb3c){return _0x1c8a74+_0x4cbb3c;},'fMMQB':function(_0x286b94,_0x80579b){return _0x286b94(_0x80579b);},'PjHwt':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','qtbQY':function(_0x2eccbd,_0x581397){return _0x2eccbd(_0x581397);},'DgSuw':function(_0x34a7fa,_0x28bd5c){return _0x34a7fa(_0x28bd5c);},'XAwgL':function(_0x5f47c9,_0x3b3e66){return _0x5f47c9<=_0x3b3e66;},'DvBqA':_0x3f077c(0x1f2),'ZmiIB':'BvfPc','Xhgzc':_0x3f077c(0x18e),'BYhHV':function(_0x258139){return _0x258139();},'ZBXOf':function(_0xb1816c,_0x4a7ff3){return _0xb1816c-_0x4a7ff3;},'IHjYa':_0x3f077c(0x1d9),'YKSyc':_0x3f077c(0x223),'kbWUq':function(_0x115ca3,_0x37a27f){return _0x115ca3-_0x37a27f;}};let _0x478090=await fs['readFileAsync'](path[_0x3f077c(0x143)](__dirname,'..',_0x1fb5d6[_0x3f077c(0x1ae)],_0x1fb5d6[_0x3f077c(0x13f)],_0x1fb5d6[_0x3f077c(0x264)]),_0x1fb5d6[_0x3f077c(0x253)]);_0x478090=JSON[_0x3f077c(0x1d6)](_0x478090);let _0x180162=[global_registry['clusterRegion']];_0x1fb5d6[_0x3f077c(0x1c0)](_0x478090[global_registry['clusterRegion']],undefined)&&(_0x1fb5d6['RiOwk'](_0x1fb5d6[_0x3f077c(0x170)],_0x1fb5d6[_0x3f077c(0x170)])?_0x1811eb[_0x3f077c(0x139)](_0x1fb5d6[_0x3f077c(0x1a7)]):_0x180162=_0x180162['concat'](_0x478090[global_registry[_0x3f077c(0x177)]]));const _0x4155e3=[];for await(const _0x332ed5 of _0x180162){if(_0x1fb5d6[_0x3f077c(0x1c0)](_0x1fb5d6[_0x3f077c(0x176)],_0x1fb5d6[_0x3f077c(0x25f)])){const _0x25ebe3={};_0x25ebe3['parent']=_0x3f077c(0x1aa)+this['projectId']+_0x3f077c(0x1db)+_0x332ed5;const _0x174d79=_0x25ebe3,_0x579806=await this[_0x3f077c(0x1e5)][_0x3f077c(0xdc)](_0x174d79);for(const _0x4803c6 of _0x579806[0x0][_0x3f077c(0x113)]){if(_0x1fb5d6[_0x3f077c(0x11e)](_0x1fb5d6['ZuhPA'],_0x1fb5d6[_0x3f077c(0x1b9)]))_0x1fb5d6[_0x3f077c(0x115)](_0x4803c6[_0x3f077c(0x1ed)],this[_0x3f077c(0x10a)])&&(_0x1fb5d6['gsXLZ'](_0x1fb5d6[_0x3f077c(0x23b)],_0x1fb5d6[_0x3f077c(0x1d2)])?_0x48cd65[_0x3f077c(0x14b)]('['+_0x1fb5d6['PzJAH'](_0x306b6d,0x1)+']\x20'+_0x184e78[_0x5bd4b9]):_0x4155e3[_0x3f077c(0x1c6)](_0x332ed5));else return _0x1fb5d6['kdWEJ'](_0x59577c['clusterRegion'],_0x42ebdf[0x0])&&(_0x22edcf[_0x3f077c(0x177)]=_0x57fea9[0x0],this[_0x3f077c(0x211)]()),!![];}}else _0x1fb5d6['yUDdO'](_0x3902bd[_0x3f077c(0x1ed)],this['clusterName'])&&_0x14b7bd['push'](_0x5c496f);}const _0x48ef36=_0x4155e3[_0x3f077c(0xf7)];if(_0x1fb5d6[_0x3f077c(0x242)](_0x48ef36,0x1)){if(_0x1fb5d6[_0x3f077c(0x262)](_0x1fb5d6[_0x3f077c(0x26e)],_0x1fb5d6[_0x3f077c(0xe7)])){if(_0x1fb5d6[_0x3f077c(0x11e)](global_registry[_0x3f077c(0x177)],_0x4155e3[0x0])){if(_0x1fb5d6[_0x3f077c(0x1c0)](_0x1fb5d6[_0x3f077c(0x27b)],_0x1fb5d6['lAouo'])){const _0x12e32c=_0x49aa0d['permissions'][_0x3f077c(0x217)](_0x5118bd);_0x43a713+='\x0a\x09'+_0x3cfcd5+_0x3f077c(0x1f7)+(_0x12e32c?_0x1fb5d6[_0x3f077c(0x209)]:_0x1fb5d6['QEGqx']),!_0x12e32c&&(_0x5d25ab['status']=![]);}else global_registry[_0x3f077c(0x177)]=_0x4155e3[0x0],this[_0x3f077c(0x211)]();}return!![];}else return![];}else{if(_0x1fb5d6[_0x3f077c(0x220)](_0x48ef36,0x1)){if(_0x1fb5d6[_0x3f077c(0x1c5)](_0x1fb5d6['dYwRV'],_0x1fb5d6[_0x3f077c(0xf5)])){console[_0x3f077c(0x14b)](_0x3f077c(0xe1)+this[_0x3f077c(0x10a)]+_0x3f077c(0x19c));for(let _0x2f19e2=0x0;_0x1fb5d6['IBeWp'](_0x2f19e2,_0x48ef36);_0x2f19e2+=0x1){if(_0x1fb5d6[_0x3f077c(0x26d)](_0x1fb5d6[_0x3f077c(0x181)],_0x1fb5d6[_0x3f077c(0x181)]))return![];else console[_0x3f077c(0x14b)]('['+_0x1fb5d6[_0x3f077c(0x1b4)](_0x2f19e2,0x1)+']\x20'+_0x4155e3[_0x2f19e2]);}const _0x467a5d=await _0x1fb5d6[_0x3f077c(0xf6)](inputConfirmation,_0x1fb5d6[_0x3f077c(0xf4)]),_0x4fa9c4=_0x1fb5d6['qtbQY'](Number,_0x467a5d);(_0x1fb5d6[_0x3f077c(0x104)](isNaN,_0x4fa9c4)||_0x1fb5d6[_0x3f077c(0x19f)](_0x4fa9c4,0x0)||_0x1fb5d6[_0x3f077c(0x220)](_0x4fa9c4,_0x48ef36))&&(_0x1fb5d6[_0x3f077c(0x224)](_0x1fb5d6[_0x3f077c(0x261)],_0x1fb5d6[_0x3f077c(0x21e)])?_0x10be3d=_0x1fb5d6[_0x3f077c(0xe0)]:(console[_0x3f077c(0x1ac)](_0x1fb5d6[_0x3f077c(0x1b2)]),process[_0x3f077c(0x1a8)](0x1)));_0x1fb5d6[_0x3f077c(0x164)](closeInput),logger[_0x3f077c(0x139)](_0x3f077c(0x221)+_0x4155e3[_0x1fb5d6[_0x3f077c(0x202)](_0x4fa9c4,0x1)]);if(_0x1fb5d6[_0x3f077c(0x1c5)](global_registry[_0x3f077c(0x177)],_0x4155e3[_0x1fb5d6['ZBXOf'](_0x4fa9c4,0x1)])){if(_0x1fb5d6['RiOwk'](_0x1fb5d6[_0x3f077c(0x1ee)],_0x1fb5d6[_0x3f077c(0x14c)]))global_registry[_0x3f077c(0x177)]=_0x4155e3[_0x1fb5d6[_0x3f077c(0x1f5)](_0x4fa9c4,0x1)],this[_0x3f077c(0x211)]();else return!![];}return!![];}else _0x4ed718[_0x3f077c(0x278)](_0x1edddf);}}return![];}async[a3_0x21d734(0x155)](){const _0x4803e7=a3_0x21d734,_0x38776e=await this['containerClient'][_0x4803e7(0x193)]({'name':_0x4803e7(0x1aa)+this[_0x4803e7(0x11a)]+_0x4803e7(0x1db)+global_registry[_0x4803e7(0x177)]+'/clusters/'+this[_0x4803e7(0x10a)]});return _0x38776e;}async[a3_0x21d734(0x18d)](){const _0xd736ca=a3_0x21d734,_0x414e62={};_0x414e62[_0xd736ca(0x230)]=_0xd736ca(0x130),_0x414e62[_0xd736ca(0x1ce)]=_0xd736ca(0x233),_0x414e62[_0xd736ca(0x15c)]=_0xd736ca(0xe2),_0x414e62[_0xd736ca(0x1a3)]=_0xd736ca(0x236);const _0x2a9350=_0x414e62;cp['execSync'](_0x2a9350['sySOf']),cp[_0xd736ca(0x1cc)](_0xd736ca(0x22e)+this[_0xd736ca(0x244)]);const _0x17e661=await this[_0xd736ca(0x155)](),_0x57a097='gke_'+this['projectId']+'_'+global_registry[_0xd736ca(0x177)]+'_'+this[_0xd736ca(0x10a)];let _0x496234=await fs[_0xd736ca(0x1b8)](path[_0xd736ca(0x143)](__dirname,'..',_0x2a9350['HPXgi'],_0x2a9350[_0xd736ca(0x15c)],_0x2a9350[_0xd736ca(0x1a3)]));return _0x496234=_0x496234[_0xd736ca(0x144)](),_0x496234=_0x496234[_0xd736ca(0xdd)](/<CLUSTER_NAME>/g,_0x57a097),_0x496234=_0x496234[_0xd736ca(0xdd)](/<CLUSTER_URL>/g,_0xd736ca(0x273)+_0x17e661[0x0][_0xd736ca(0x187)]),_0x496234=_0x496234[_0xd736ca(0xdd)](/<CERTIFICATE_DATA>/g,_0x17e661[0x0]['masterAuth'][_0xd736ca(0x11b)]),_0x496234;}async[a3_0x21d734(0x1eb)](){const _0x3ded3f=a3_0x21d734,_0x3665d3={};_0x3665d3[_0x3ded3f(0x26f)]=_0x3ded3f(0x15b),_0x3665d3[_0x3ded3f(0x151)]=function(_0x427fca,_0x176f58){return _0x427fca!==_0x176f58;},_0x3665d3[_0x3ded3f(0x146)]=_0x3ded3f(0x186),_0x3665d3[_0x3ded3f(0x14d)]='ULDPS',_0x3665d3['gcKsG']=_0x3ded3f(0x198),_0x3665d3[_0x3ded3f(0x197)]=function(_0x4f0b4c,_0x23062c){return _0x4f0b4c===_0x23062c;},_0x3665d3[_0x3ded3f(0x18a)]=_0x3ded3f(0x240);const _0x4b56f9=_0x3665d3,_0x1c43a2={};_0x1c43a2[_0x3ded3f(0xe5)]=[_0x4b56f9[_0x3ded3f(0x26f)]],_0x1c43a2[_0x3ded3f(0x199)]=this['credentialsPath'];const _0x38a125=await google[_0x3ded3f(0x216)][_0x3ded3f(0x16a)](_0x1c43a2),_0x1ccedb=await this[_0x3ded3f(0x1cf)][_0x3ded3f(0x22c)][_0x3ded3f(0x1d4)][_0x3ded3f(0x235)]({'name':_0x3ded3f(0x1aa)+this[_0x3ded3f(0x11a)],'auth':_0x38a125});if(_0x1ccedb?.['data']?.[_0x3ded3f(0x19d)]){if(_0x4b56f9[_0x3ded3f(0x151)](_0x4b56f9[_0x3ded3f(0x146)],_0x4b56f9[_0x3ded3f(0x14d)]))for(const _0x14569f of _0x1ccedb[_0x3ded3f(0x160)][_0x3ded3f(0x19d)]){if(_0x4b56f9[_0x3ded3f(0x151)](_0x4b56f9[_0x3ded3f(0x192)],_0x4b56f9['gcKsG']))this[_0x3ded3f(0x148)](this['rws']);else{if(_0x4b56f9[_0x3ded3f(0x197)](_0x14569f?.[_0x3ded3f(0x1ed)],_0x3ded3f(0x1aa)+this[_0x3ded3f(0x11a)]+'/serviceAccounts/'+this[_0x3ded3f(0x1ec)]+'@'+this[_0x3ded3f(0x11a)]+_0x3ded3f(0x1df))){if(_0x4b56f9[_0x3ded3f(0x151)](_0x4b56f9['bNYRN'],_0x4b56f9[_0x3ded3f(0x18a)]))_0x26ebd5=_0x4f7b9a[_0x3ded3f(0x21f)](_0x3da1d6[_0x1414cd[_0x3ded3f(0x177)]]);else return!![];}}}else return[!![],_0x4ed8e7];}return![];}async[a3_0x21d734(0x269)](){const _0x594bf0=a3_0x21d734,_0x2cbf43={};_0x2cbf43['rjPCY']=function(_0x1d755e,_0x346f89){return _0x1d755e===_0x346f89;},_0x2cbf43[_0x594bf0(0x267)]=_0x594bf0(0x1a4),_0x2cbf43['xpOSb']='Service\x20account\x20already\x20exists,\x20skipping',_0x2cbf43[_0x594bf0(0x15e)]=_0x594bf0(0xe3),_0x2cbf43[_0x594bf0(0x13e)]=_0x594bf0(0x15b),_0x2cbf43[_0x594bf0(0x277)]=_0x594bf0(0x24d),_0x2cbf43[_0x594bf0(0x127)]='storage.buckets.create',_0x2cbf43['QbdUC']=_0x594bf0(0x1c1),_0x2cbf43[_0x594bf0(0x1d1)]=_0x594bf0(0x110),_0x2cbf43['imuSx']=_0x594bf0(0x258),_0x2cbf43[_0x594bf0(0x234)]=_0x594bf0(0x1fc),_0x2cbf43['hvwhI']=_0x594bf0(0x100),_0x2cbf43[_0x594bf0(0x251)]=_0x594bf0(0x1c7),_0x2cbf43[_0x594bf0(0x142)]=_0x594bf0(0x161),_0x2cbf43['woCGE']=_0x594bf0(0xdb),_0x2cbf43[_0x594bf0(0xf1)]='storage.buckets.listTagBindings',_0x2cbf43['GojyM']=_0x594bf0(0x107),_0x2cbf43[_0x594bf0(0x1fd)]=_0x594bf0(0xf3),_0x2cbf43['liUIA']='storage.multipartUploads.abort',_0x2cbf43[_0x594bf0(0x118)]=_0x594bf0(0x200),_0x2cbf43[_0x594bf0(0x1a1)]=_0x594bf0(0x17d),_0x2cbf43[_0x594bf0(0x128)]=_0x594bf0(0x1e4),_0x2cbf43[_0x594bf0(0xfa)]=_0x594bf0(0x136),_0x2cbf43[_0x594bf0(0x225)]='storage.objects.delete',_0x2cbf43[_0x594bf0(0x1f4)]=_0x594bf0(0x19e),_0x2cbf43[_0x594bf0(0x10b)]='storage.objects.getIamPolicy',_0x2cbf43['wDBfe']=_0x594bf0(0x23a),_0x2cbf43[_0x594bf0(0x246)]=_0x594bf0(0x191),_0x2cbf43[_0x594bf0(0x256)]=_0x594bf0(0x250),_0x2cbf43['yOfFY']='Turboscale\x20Custom\x20Role',_0x2cbf43['sSZHr']=_0x594bf0(0x141);const _0x130d58=_0x2cbf43,_0x32df33=await this[_0x594bf0(0x1eb)]();if(_0x32df33){if(_0x130d58[_0x594bf0(0xf2)](_0x130d58[_0x594bf0(0x267)],_0x130d58[_0x594bf0(0x267)])){logger['info'](_0x130d58[_0x594bf0(0x12b)]);return;}else return!![];}logger[_0x594bf0(0x139)](_0x130d58[_0x594bf0(0x15e)]);const _0x137fe0={};_0x137fe0[_0x594bf0(0xe5)]=[_0x130d58[_0x594bf0(0x13e)]],_0x137fe0[_0x594bf0(0x199)]=this[_0x594bf0(0x244)];const _0x5b00c0=await google['auth'][_0x594bf0(0x16a)](_0x137fe0),_0x2a92ff={};_0x2a92ff['includedPermissions']=[_0x130d58[_0x594bf0(0x277)],_0x130d58['OirZp'],_0x130d58[_0x594bf0(0xf0)],_0x130d58[_0x594bf0(0x1d1)],_0x130d58[_0x594bf0(0x112)],_0x130d58[_0x594bf0(0x234)],_0x130d58['hvwhI'],_0x130d58['BJTDU'],_0x130d58[_0x594bf0(0x142)],_0x130d58[_0x594bf0(0x25e)],_0x130d58[_0x594bf0(0xf1)],_0x130d58['GojyM'],_0x130d58['nKXaj'],_0x130d58['liUIA'],_0x130d58[_0x594bf0(0x118)],_0x130d58[_0x594bf0(0x1a1)],_0x130d58['ACFYC'],_0x130d58[_0x594bf0(0xfa)],_0x130d58[_0x594bf0(0x225)],_0x130d58[_0x594bf0(0x1f4)],_0x130d58[_0x594bf0(0x10b)],_0x130d58[_0x594bf0(0x255)],_0x130d58[_0x594bf0(0x246)],_0x130d58['OIFGQ']],_0x2a92ff[_0x594bf0(0xfc)]=_0x130d58[_0x594bf0(0x201)],await this[_0x594bf0(0x1cf)][_0x594bf0(0x135)][_0x594bf0(0x120)][_0x594bf0(0x1f1)]({'parent':'projects/'+this['projectId'],'requestBody':{'role':_0x2a92ff,'roleId':this['customRoleName']},'auth':_0x5b00c0});const _0xe8c96b={};_0xe8c96b['name']=_0x594bf0(0x1aa)+this[_0x594bf0(0x11a)],_0xe8c96b[_0x594bf0(0x1d5)]={},_0xe8c96b[_0x594bf0(0x216)]=_0x5b00c0,_0xe8c96b[_0x594bf0(0x1d5)][_0x594bf0(0x194)]=this['serviceAccountName'];const _0xa76707=_0xe8c96b;await this[_0x594bf0(0x1cf)]['projects']['serviceAccounts']['create'](_0xa76707);let _0x2d27b2=await this['resourcemanagerClient']['getIamPolicy']({'resource':'projects/'+this['projectId']});_0x2d27b2=_0x2d27b2[0x0][_0x594bf0(0x206)];const _0x40c083={};_0x40c083[_0x594bf0(0x1d7)]='projects/'+this['projectId']+_0x594bf0(0x10c)+this[_0x594bf0(0x20d)],_0x40c083[_0x594bf0(0x1e3)]=[_0x594bf0(0x203)+this[_0x594bf0(0x1ec)]+'@'+this['projectId']+_0x594bf0(0x1df)],_0x2d27b2['push'](_0x40c083);const _0x19a59e={};_0x19a59e['bindings']=_0x2d27b2,await this[_0x594bf0(0x1f9)][_0x594bf0(0x243)]({'resource':_0x594bf0(0x1aa)+this[_0x594bf0(0x11a)],'policy':_0x19a59e}),logger[_0x594bf0(0x139)](_0x130d58[_0x594bf0(0x165)]);}async[a3_0x21d734(0x1ea)](_0x29d841=a3_0x21d734(0x180),_0x3b5c65=[a3_0x21d734(0x180)]){const _0x46748e=a3_0x21d734,_0x128132={};_0x128132[_0x46748e(0x226)]=_0x46748e(0x158),_0x128132[_0x46748e(0x174)]=_0x46748e(0x172),_0x128132['nJkUM']=function(_0x4c2248,_0x4f8dbb){return _0x4c2248===_0x4f8dbb;},_0x128132[_0x46748e(0x21a)]=_0x46748e(0x19b),_0x128132['kdwrF']='default',_0x128132[_0x46748e(0x1bd)]=function(_0x35e7c6,_0x2565f7){return _0x35e7c6===_0x2565f7;},_0x128132[_0x46748e(0x195)]=function(_0x3117f9,_0x53217f){return _0x3117f9!==_0x53217f;},_0x128132['jVOFY']=_0x46748e(0x1b3);const _0x40f606=_0x128132,_0x41c181={};_0x41c181[_0x46748e(0x247)]=WS_EVENTS[_0x46748e(0x101)],_0x41c181[_0x46748e(0x188)]=_0x40f606[_0x46748e(0x226)],this['webSocketUtils'][_0x46748e(0x20b)](this[_0x46748e(0x14a)],_0x41c181),logger[_0x46748e(0x139)](_0x40f606[_0x46748e(0x174)]);if(!_0x29d841){if(_0x40f606['nJkUM'](_0x40f606[_0x46748e(0x21a)],_0x40f606[_0x46748e(0x21a)]))_0x29d841=_0x40f606[_0x46748e(0x147)];else return _0x59a38d[_0x46748e(0x237)][_0x46748e(0xf9)][_0x46748e(0x257)][0x0]['ip'];}return(!_0x3b5c65||_0x40f606[_0x46748e(0x1bd)](_0x3b5c65[_0x46748e(0xf7)],0x0))&&(_0x40f606[_0x46748e(0x195)](_0x40f606['jVOFY'],_0x40f606[_0x46748e(0x22d)])?_0x3e165c['vpcInfo'][_0x46748e(0x1c6)](_0x160ac2):_0x3b5c65=[_0x40f606[_0x46748e(0x147)]]),await this[_0x46748e(0x269)](),await this['createCluster'](_0x29d841,_0x3b5c65),await this[_0x46748e(0x24f)](),[_0x29d841,_0x3b5c65];}async[a3_0x21d734(0x152)](_0x14136d='default',_0x2151d7=['default']){const _0x50648c=a3_0x21d734,_0x92dbc1={};_0x92dbc1[_0x50648c(0x228)]='GKE\x20Cluster\x20deletion\x20failed',_0x92dbc1[_0x50648c(0x12d)]=_0x50648c(0x14f),_0x92dbc1['kjmVE']=function(_0x1b4ce4,_0x1a4f8f){return _0x1b4ce4!==_0x1a4f8f;},_0x92dbc1[_0x50648c(0x185)]=_0x50648c(0x1a5),_0x92dbc1[_0x50648c(0x11c)]=_0x50648c(0x1a6),_0x92dbc1[_0x50648c(0xeb)]=_0x50648c(0x233),_0x92dbc1[_0x50648c(0x167)]=_0x50648c(0xe2),_0x92dbc1[_0x50648c(0x1e7)]=_0x50648c(0x231),_0x92dbc1[_0x50648c(0x13c)]=_0x50648c(0x23d),_0x92dbc1[_0x50648c(0x12c)]='regionmap.json',_0x92dbc1[_0x50648c(0x1c8)]=function(_0x3f45d9,_0x5cf18c){return _0x3f45d9!==_0x5cf18c;},_0x92dbc1[_0x50648c(0x254)]=_0x50648c(0x1c4),_0x92dbc1['KfhbT']=_0x50648c(0x26c),_0x92dbc1[_0x50648c(0x1f8)]=function(_0x47bae8,_0x2d0f3e){return _0x47bae8*_0x2d0f3e;},_0x92dbc1[_0x50648c(0x214)]='YeWVQ',_0x92dbc1[_0x50648c(0x18b)]=_0x50648c(0x1ff),_0x92dbc1[_0x50648c(0x145)]=function(_0xb11a5b,_0x5671a7){return _0xb11a5b===_0x5671a7;},_0x92dbc1[_0x50648c(0x218)]=_0x50648c(0x102),_0x92dbc1['QJUed']=_0x50648c(0x126),_0x92dbc1['HzZmt']=_0x50648c(0x1d0),_0x92dbc1[_0x50648c(0xe4)]=_0x50648c(0x175);const _0x4d74e2=_0x92dbc1;try{if(_0x4d74e2['kjmVE'](_0x4d74e2[_0x50648c(0x185)],_0x4d74e2['jieWX']))_0x53da6d[_0x50648c(0xe8)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x50648c(0x10a)]+_0x50648c(0x10f)+_0x1099b6[_0x50648c(0x177)]+'\x20--quiet\x20--user-output-enabled=false');else{logger['info'](_0x4d74e2[_0x50648c(0x11c)]);let _0x3b3521=await fs[_0x50648c(0x1b8)](path['join'](__dirname,'..',_0x4d74e2[_0x50648c(0xeb)],_0x4d74e2[_0x50648c(0x167)],_0x4d74e2[_0x50648c(0x1e7)]),_0x4d74e2[_0x50648c(0x13c)]);_0x3b3521=JSON[_0x50648c(0x1d6)](_0x3b3521);let _0x20aa40=await fs[_0x50648c(0x1b8)](path[_0x50648c(0x143)](__dirname,'..',_0x4d74e2['crowY'],_0x4d74e2[_0x50648c(0x167)],_0x4d74e2[_0x50648c(0x12c)]),_0x4d74e2[_0x50648c(0x13c)]);_0x20aa40=JSON[_0x50648c(0x1d6)](_0x20aa40);const _0x5c626a=global_registry[_0x50648c(0x27a)];_0x3b3521[_0x50648c(0x1ed)]=this['clusterName'],_0x3b3521[_0x50648c(0x24b)][0x0]['config'][_0x50648c(0x245)]=global_registry[_0x50648c(0x153)],_0x3b3521[_0x50648c(0x24b)][0x1][_0x50648c(0x241)]['machineType']=global_registry[_0x50648c(0x153)],_0x3b3521[_0x50648c(0x24b)][0x0][_0x50648c(0x241)][_0x50648c(0x183)]=this[_0x50648c(0x1ec)]+'@'+this[_0x50648c(0x11a)]+'.iam.gserviceaccount.com',_0x3b3521[_0x50648c(0x24b)][0x1][_0x50648c(0x241)]['serviceAccount']=this[_0x50648c(0x1ec)]+'@'+this[_0x50648c(0x11a)]+'.iam.gserviceaccount.com',_0x3b3521[_0x50648c(0x24b)][0x0]['autoscaling'][_0x50648c(0x272)]=global_registry[_0x50648c(0x1b5)],_0x3b3521[_0x50648c(0x24b)][0x1][_0x50648c(0xde)][_0x50648c(0x272)]=0x0,_0x3b3521[_0x50648c(0x24b)][0x0]['management']['autoUpgrade']=_0x5c626a,_0x3b3521['nodePools'][0x1]['management'][_0x50648c(0x173)]=_0x5c626a,_0x3b3521[_0x50648c(0x24b)][0x0][_0x50648c(0xde)][_0x50648c(0x1fa)]=global_registry[_0x50648c(0x1cb)],_0x3b3521[_0x50648c(0x24b)][0x1][_0x50648c(0xde)][_0x50648c(0x1fa)]=global_registry[_0x50648c(0x1cb)],_0x3b3521[_0x50648c(0x1c3)]=global_registry[_0x50648c(0x177)],_0x3b3521[_0x50648c(0x182)]=[_0x20aa40[global_registry[_0x50648c(0x177)]][0x0]],_0x3b3521['network']=_0x50648c(0x1aa)+this['projectId']+_0x50648c(0x1f6)+_0x14136d,_0x3b3521[_0x50648c(0x17e)]=_0x50648c(0x1aa)+this[_0x50648c(0x11a)]+_0x50648c(0x24a)+global_registry[_0x50648c(0x177)]+_0x50648c(0x1ad)+_0x2151d7[0x0];if(_0x5c626a){if(_0x4d74e2[_0x50648c(0x1c8)](_0x4d74e2[_0x50648c(0x254)],_0x4d74e2[_0x50648c(0x254)]))_0x30aa85[_0x50648c(0x237)]=![];else{const _0x54423f={};_0x54423f[_0x50648c(0x1bf)]=_0x4d74e2[_0x50648c(0x25b)],_0x3b3521[_0x50648c(0x129)]=_0x54423f;}}const _0x2a6661=await this[_0x50648c(0x1e5)][_0x50648c(0x152)]({'cluster':_0x3b3521,'parent':_0x50648c(0x1aa)+this[_0x50648c(0x11a)]+_0x50648c(0x1db)+global_registry[_0x50648c(0x177)]});await this[_0x50648c(0x1be)]['delay'](_0x4d74e2[_0x50648c(0x1f8)](_0x4d74e2[_0x50648c(0x1f8)](0x7,0x3c),0x3e8));}}catch(_0xaeaefc){if(_0x4d74e2[_0x50648c(0x196)](_0x4d74e2['uUWIe'],_0x4d74e2[_0x50648c(0x18b)])){const _0xfc834b=await this['isClusterPresent']();if(_0xfc834b)_0x4d74e2[_0x50648c(0x145)](_0x4d74e2[_0x50648c(0x218)],_0x4d74e2[_0x50648c(0x218)])?(logger[_0x50648c(0x139)](_0x4d74e2[_0x50648c(0x25a)],_0xaeaefc['stack']),await this[_0x50648c(0xfd)]()):_0x22bba8['push'](_0x4b8261);else{if(_0x4d74e2[_0x50648c(0x145)](_0x4d74e2[_0x50648c(0x166)],_0x4d74e2['HzZmt']))logger[_0x50648c(0x139)](_0x4d74e2[_0x50648c(0xe4)]);else{_0xccd3a1['info'](_0x4d74e2[_0x50648c(0x228)]);throw _0x171dc5;}}throw _0xaeaefc;}else{_0x219032['info'](_0x4d74e2[_0x50648c(0x12d)]);return;}}}async[a3_0x21d734(0x168)](_0xbcbb7c,_0x47411,_0x25dad2,_0xa1d84f,_0x42dd96){}async[a3_0x21d734(0x24f)](){const _0x284b03=a3_0x21d734;cp[_0x284b03(0xe8)](_0x284b03(0x140)+this[_0x284b03(0x10a)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+global_registry[_0x284b03(0x177)]+'\x20--quiet\x20--user-output-enabled=false');}async['deleteCluster'](_0x18a869,_0x1ddd9d){const _0x4dd9a8=a3_0x21d734,_0x1f4121={'wJcoJ':_0x4dd9a8(0x18e),'nYWKV':function(_0x3e8bc4,_0x570b90){return _0x3e8bc4===_0x570b90;},'GNDJv':function(_0x4e777f,_0x532d16){return _0x4e777f===_0x532d16;},'supOY':_0x4dd9a8(0x1e6),'aKiUX':_0x4dd9a8(0x1fb),'AfVXc':function(_0x100845,_0xd4300a){return _0x100845(_0xd4300a);},'YQmeC':function(_0x452cbe,_0x415112){return _0x452cbe(_0x415112);},'XXPXw':function(_0x301a8c,_0x155296){return _0x301a8c===_0x155296;},'pnKTi':_0x4dd9a8(0x105),'tycdC':_0x4dd9a8(0x20e),'SURvQ':function(_0x26b35f,_0x4a2479){return _0x26b35f===_0x4a2479;},'uloQG':'RNsuG','EyHht':'JOVdy','tdBZa':_0x4dd9a8(0x16e),'qBDVy':function(_0x292bae,_0x402bdb){return _0x292bae!==_0x402bdb;},'gMQTq':_0x4dd9a8(0x131),'mAPag':_0x4dd9a8(0x1e0),'wSFqA':_0x4dd9a8(0x215)};try{if(_0x1f4121[_0x4dd9a8(0x27f)](_0x1f4121['supOY'],_0x1f4121['aKiUX']))_0x555b03[_0x4dd9a8(0x1ac)](_0x1f4121['wJcoJ']),_0x2f9591[_0x4dd9a8(0x1a8)](0x1);else{await _0x1f4121['AfVXc'](deleteAgent,_0x18a869),await _0x1f4121['YQmeC'](deleteRoutingDeps,_0x18a869),logger['info'](_0x4dd9a8(0x27d)+this[_0x4dd9a8(0x10a)]);const _0x5eb540=await this[_0x4dd9a8(0x1e5)]['deleteCluster']({'name':_0x4dd9a8(0x1aa)+this[_0x4dd9a8(0x11a)]+_0x4dd9a8(0x1db)+global_registry[_0x4dd9a8(0x177)]+_0x4dd9a8(0x16c)+this['clusterName']});if(_0x1f4121[_0x4dd9a8(0x205)](_0x5eb540[0x0]?.['status'],_0x1f4121[_0x4dd9a8(0x1dc)])||_0x1f4121[_0x4dd9a8(0x27f)](_0x5eb540[0x0]?.['status'],_0x1f4121[_0x4dd9a8(0x238)]))return _0x1f4121[_0x4dd9a8(0x1bc)](_0x1f4121['uloQG'],_0x1f4121[_0x4dd9a8(0xff)])?(_0x182ef8['error'](_0x4dd9a8(0x138)+_0x57ad4e+'.\x20Error:\x20'+_0x31e742),[![],[]]):!![];logger['info'](_0x1f4121[_0x4dd9a8(0x1e8)]);}}catch(_0x1a3499){if(_0x1f4121['qBDVy'](_0x1f4121[_0x4dd9a8(0x17b)],_0x1f4121[_0x4dd9a8(0x1a9)])){logger[_0x4dd9a8(0x139)](_0x1f4121[_0x4dd9a8(0x23c)]);throw _0x1a3499;}else{if(_0x1f4121[_0x4dd9a8(0x15d)](_0x3688af?.[_0x4dd9a8(0x1ed)],_0x4dd9a8(0x1aa)+this['projectId']+_0x4dd9a8(0x252)+this[_0x4dd9a8(0x1ec)]+'@'+this[_0x4dd9a8(0x11a)]+_0x4dd9a8(0x1df)))return!![];}}}async[a3_0x21d734(0x171)](_0x27dfe2){const _0x5e167e=a3_0x21d734,_0x1280bf={};_0x1280bf[_0x5e167e(0x23f)]=function(_0x5c5fc3,_0xab2b52){return _0x5c5fc3===_0xab2b52;},_0x1280bf[_0x5e167e(0x1fe)]=_0x5e167e(0x17a),_0x1280bf['yAJvA']=function(_0x26e00a,_0x376b10){return _0x26e00a===_0x376b10;},_0x1280bf[_0x5e167e(0x274)]=function(_0x5576ed,_0x104942){return _0x5576ed===_0x104942;},_0x1280bf[_0x5e167e(0x24c)]=_0x5e167e(0x116),_0x1280bf[_0x5e167e(0x123)]=function(_0x24a09f,_0x239d8e){return _0x24a09f>_0x239d8e;},_0x1280bf[_0x5e167e(0x125)]=function(_0x128f11,_0x11be9a){return _0x128f11===_0x11be9a;},_0x1280bf[_0x5e167e(0x13b)]=_0x5e167e(0x1af),_0x1280bf[_0x5e167e(0x248)]=_0x5e167e(0x219),_0x1280bf['lUbtp']=function(_0x4aea16,_0x24da78){return _0x4aea16!==_0x24da78;},_0x1280bf[_0x5e167e(0x124)]=_0x5e167e(0x271);const _0x2c107a=_0x1280bf;try{if(_0x2c107a[_0x5e167e(0x274)](_0x2c107a[_0x5e167e(0x24c)],_0x2c107a['YTFLK'])){const _0x547a79=await this[_0x5e167e(0x1ab)][_0x5e167e(0x16d)]({'project':this[_0x5e167e(0x11a)],'network':_0x27dfe2});if(_0x2c107a[_0x5e167e(0x123)](_0x547a79['length'],0x0)&&_0x2c107a[_0x5e167e(0x125)](_0x547a79[0x0]['name'],_0x27dfe2))return _0x2c107a[_0x5e167e(0x125)](_0x2c107a[_0x5e167e(0x13b)],_0x2c107a[_0x5e167e(0x248)])?!![]:!![];}else{const _0xf12195=_0x43b575[0x0]?.[_0x5e167e(0x109)]?.[_0x5e167e(0x23e)];return _0xf12195&&_0x2c107a[_0x5e167e(0x23f)](_0xf12195[_0x5e167e(0x179)](),_0x2c107a[_0x5e167e(0x1fe)]);}}catch(_0x57a6e8){if(_0x2c107a[_0x5e167e(0x22f)](_0x2c107a[_0x5e167e(0x124)],_0x2c107a[_0x5e167e(0x124)])){const _0x233815=_0x5e167e(0x18c)+this[_0x5e167e(0x11a)]+_0x5e167e(0x24a)+_0x9e67cd[_0x5e167e(0x177)]+_0x5e167e(0x1ad)+_0x5b47bb[0x0];if(_0x2c107a['yAJvA'](_0x233815,_0x23bc22))return[!![],_0x153a38];}else return![];}return![];}async['isSubnetsValid'](_0x248ab3,_0x52cd77){const _0x68ad19=a3_0x21d734,_0x398e14={};_0x398e14[_0x68ad19(0x265)]=_0x68ad19(0x180),_0x398e14[_0x68ad19(0x1b0)]=function(_0x8fe005,_0x538792){return _0x8fe005===_0x538792;},_0x398e14[_0x68ad19(0x22b)]=function(_0xbc1c27,_0x3f41ae){return _0xbc1c27===_0x3f41ae;},_0x398e14[_0x68ad19(0x25c)]=_0x68ad19(0x103),_0x398e14[_0x68ad19(0xea)]=_0x68ad19(0x121),_0x398e14['YIbkP']='sKstL',_0x398e14[_0x68ad19(0x275)]=function(_0x188a43,_0x2c6b44){return _0x188a43===_0x2c6b44;},_0x398e14['EPKlf']=function(_0x1e55ec,_0x14a681){return _0x1e55ec!==_0x14a681;},_0x398e14['neCWo']=_0x68ad19(0x184),_0x398e14[_0x68ad19(0x279)]=_0x68ad19(0x227),_0x398e14[_0x68ad19(0x263)]=_0x68ad19(0x15a),_0x398e14[_0x68ad19(0x1f3)]=_0x68ad19(0x190);const _0x4f3e7d=_0x398e14;try{if(_0x4f3e7d[_0x68ad19(0x22b)](_0x4f3e7d[_0x68ad19(0x25c)],_0x4f3e7d[_0x68ad19(0x25c)])){const _0x2c1962=await this[_0x68ad19(0x1ab)][_0x68ad19(0x16d)]({'project':this[_0x68ad19(0x11a)],'network':_0x52cd77});for(const _0x1c4a07 of _0x2c1962[0x0][_0x68ad19(0x1a0)]){if(_0x4f3e7d[_0x68ad19(0x1b0)](_0x4f3e7d[_0x68ad19(0xea)],_0x4f3e7d['YIbkP']))_0x561888['clusterRegion']=_0x155404[0x0],this[_0x68ad19(0x211)]();else{const _0x23af02=_0x68ad19(0x18c)+this[_0x68ad19(0x11a)]+'/regions/'+global_registry[_0x68ad19(0x177)]+_0x68ad19(0x1ad)+_0x248ab3[0x0];if(_0x4f3e7d['klIud'](_0x23af02,_0x1c4a07)){if(_0x4f3e7d['EPKlf'](_0x4f3e7d['neCWo'],_0x4f3e7d[_0x68ad19(0x279)]))return[!![],_0x248ab3];else _0x2599ca=[_0x4f3e7d[_0x68ad19(0x265)]];}}}}else _0x378cf0[_0x68ad19(0x1ac)]=_0x10273c;}catch(_0x130611){if(_0x4f3e7d['EPKlf'](_0x4f3e7d[_0x68ad19(0x263)],_0x4f3e7d[_0x68ad19(0x1f3)]))return logger[_0x68ad19(0x1ac)](_0x68ad19(0x138)+_0x248ab3+'.\x20Error:\x20'+_0x130611),[![],[]];else for(const _0x12e67e of _0x2bc9c0[_0x68ad19(0x160)]['accounts']){if(_0x4f3e7d[_0x68ad19(0x1b0)](_0x12e67e?.[_0x68ad19(0x1ed)],_0x68ad19(0x1aa)+this[_0x68ad19(0x11a)]+_0x68ad19(0x252)+this[_0x68ad19(0x1ec)]+'@'+this[_0x68ad19(0x11a)]+_0x68ad19(0x1df)))return!![];}}return[![],[]];}async[a3_0x21d734(0x148)](){const _0xb6f289=a3_0x21d734,_0x3171bd={};_0x3171bd['ANHvk']=function(_0x179ebb,_0x2343f1){return _0x179ebb!==_0x2343f1;},_0x3171bd['Ygmgw']=_0xb6f289(0x157),_0x3171bd[_0xb6f289(0x213)]='iqAXo';const _0x264799=_0x3171bd,_0x2b0063=await this[_0xb6f289(0x1ab)][_0xb6f289(0x235)]({'project':this['projectId']}),_0x49373f={};_0x49373f['username']=global_registry[_0xb6f289(0x134)],_0x49373f[_0xb6f289(0x19a)]=global_registry['bstackAccesskey'],_0x49373f[_0xb6f289(0x13a)]=GCP,_0x49373f[_0xb6f289(0x10e)]=[];const _0x1a4146=_0x49373f;for(const _0x541b1b of _0x2b0063){_0x264799[_0xb6f289(0x21b)](_0x264799[_0xb6f289(0x1cd)],_0x264799[_0xb6f289(0x213)])?_0x1a4146[_0xb6f289(0x10e)]['push'](_0x541b1b):_0x2598b0[_0xb6f289(0x26b)](_0x3c0d18);}const _0x18517e={};_0x18517e[_0xb6f289(0x247)]=WS_EVENTS[_0xb6f289(0xd9)],_0x18517e[_0xb6f289(0x188)]=_0x1a4146,this[_0xb6f289(0x1be)][_0xb6f289(0x20b)](this[_0xb6f289(0x14a)],_0x18517e);}async[a3_0x21d734(0x211)](){const _0x19a766=a3_0x21d734,_0x333d05={'ODCss':function(_0x2520b8,_0x4933b6,_0x1454a9){return _0x2520b8(_0x4933b6,_0x1454a9);},'AubtN':_0x19a766(0x12a),'RlAiH':_0x19a766(0x25d),'anSOg':function(_0x510e82,_0x25ea43,_0x260f6d){return _0x510e82(_0x25ea43,_0x260f6d);}},_0x2a04c0=_0x19a766(0x273)+AG_API_URL+_0x19a766(0x12e),_0x1acb6a={};_0x1acb6a['profileId']=global_registry['gridProfileId'];const _0x485405={};_0x485405[_0x19a766(0x11d)]=global_registry[_0x19a766(0x177)];const _0x2b8837={'searchParams':_0x1acb6a,'json':_0x485405,'headers':_0x333d05[_0x19a766(0x1ef)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),'method':_0x333d05[_0x19a766(0x1de)],'responseType':_0x333d05[_0x19a766(0x10d)],'throwHttpErrors':![]},_0x3c5e4d=await _0x333d05[_0x19a766(0x26a)](got,_0x2a04c0,_0x2b8837);}async[a3_0x21d734(0x1b7)](){const _0x348b28=a3_0x21d734,_0x4616b0={'kWsCh':function(_0x3b011f,_0xd2d394){return _0x3b011f(_0xd2d394);},'JxdNX':_0x348b28(0x270),'JygzL':'Intercepted','LtTYE':'cli\x20tool\x20is\x20installed'},_0x31dc2c={};_0x31dc2c['status']=![],_0x31dc2c[_0x348b28(0x1ac)]=null,_0x31dc2c[_0x348b28(0x160)]='';const _0x350493=_0x31dc2c;try{const _0x5274d6=await _0x4616b0[_0x348b28(0x1bb)](runCommand,_0x4616b0[_0x348b28(0x108)]);_0x5274d6[_0x348b28(0x169)](_0x4616b0[_0x348b28(0x18f)])?logger['warn'](_0x5274d6):logger[_0x348b28(0x26b)](_0x5274d6),_0x350493[_0x348b28(0x237)]=!![],_0x350493[_0x348b28(0x160)]=_0x4616b0['LtTYE'];}catch(_0x23fa48){logger[_0x348b28(0x1ac)]('error\x20:\x20'+_0x23fa48+_0x348b28(0x1f7)+_0x23fa48['stack']),_0x350493[_0x348b28(0x160)]=_0x348b28(0x149)+_0x23fa48,_0x350493[_0x348b28(0x1ac)]=_0x23fa48;}return _0x350493;}async[a3_0x21d734(0x20a)](){const _0x334335=a3_0x21d734,_0x3fb116={};_0x3fb116[_0x334335(0x212)]='allowed',_0x3fb116['FCqgV']=_0x334335(0xda);const _0x45eb72=_0x3fb116,_0x5b1b44={};_0x5b1b44[_0x334335(0x237)]=![],_0x5b1b44['error']=null,_0x5b1b44[_0x334335(0x160)]='';const _0xe339f=_0x5b1b44;try{let _0x3d95e9='';const _0xc804af=_0x334335(0x1aa)+this[_0x334335(0x11a)],[_0x15bb0b]=await this[_0x334335(0x1f9)][_0x334335(0x24e)]({'resource':_0xc804af,'permissions':Object['keys'](PERMISSIONS)});_0xe339f[_0x334335(0x237)]=!![],logger[_0x334335(0x26b)]('permissions\x20check\x20response\x20for\x20'+_0xc804af+':\x20'+JSON[_0x334335(0xd7)](_0x15bb0b)),Object['entries'](PERMISSIONS)[_0x334335(0x14e)](([_0x47459b,_0x63024d])=>{const _0x234408=_0x334335,_0x12f215=_0x15bb0b[_0x234408(0x20f)][_0x234408(0x217)](_0x47459b);_0x3d95e9+='\x0a\x09'+_0x63024d+_0x234408(0x1f7)+(_0x12f215?_0x45eb72[_0x234408(0x212)]:_0x45eb72[_0x234408(0x15f)]),!_0x12f215&&(_0xe339f[_0x234408(0x237)]=![]);}),_0xe339f['data']=_0x3d95e9;}catch(_0x37b93a){_0xe339f[_0x334335(0x1ac)]=_0x37b93a;}return _0xe339f;}}const a3_0x4519d1={};a3_0x4519d1[a3_0x21d734(0x260)]=GoogleCloudProvider,module[a3_0x21d734(0x16f)]=a3_0x4519d1;function a3_0xec82(_0x35991a,_0x30e2f3){const _0x1cac66=a3_0x1cac();return a3_0xec82=function(_0xec82f2,_0x5bc999){_0xec82f2=_0xec82f2-0xd7;let _0x3829cd=_0x1cac66[_0xec82f2];return _0x3829cd;},a3_0xec82(_0x35991a,_0x30e2f3);}function a3_0x1cac(){const _0x5de728=['CrCda','3367152PXyCkV','kWsCh','SURvQ','irLLn','webSocketUtils','channel','kMKsh','storage.buckets.createTagBinding','project_id','location','uxbUP','BZWzG','push','storage.buckets.getObjectInsights','uMSrV','QjsLw','../utils/userInput','maxNodes','exec','Ygmgw','HPXgi','iamClient','bUfBe','ckaOg','JyMQH','turboscale_custom_role','serviceAccounts','requestBody','parse','role','VIhxz','Oqnno','32710HjQwPQ','/locations/','pnKTi','bGpeO','AubtN','.iam.gserviceaccount.com','VavHM','NruhR','dQLKZ','members','storage.multipartUploads.listParts','containerClient','QHrYD','NPfeU','tdBZa','wUSlo','setupNewCluster','checkServiceAccount','serviceAccountName','name','IHjYa','ODCss','turboscale-service-account','create','OArmR','vdgYc','JBxwC','kbWUq','/global/networks/','\x20:\x20','NDZQo','resourcemanagerClient','maxNodeCount','DVqBp','storage.buckets.get','nKXaj','kNUna','NxmTh','storage.multipartUploads.create','yOfFY','ZBXOf','serviceAccount:','child_process','XXPXw','bindings','NetworksClient','got','PehMN','checkAccess','sendEventToBackend','../permissions/GCP.json','customRoleName','DONE','permissions','3520352rTyGrV','updateClusterRegion','RhBAq','eCfIT','uUWIe','GKE\x20Cluster\x20deletion\x20failed','auth','includes','CALmz','AdRuh','kZTTR','ANHvk','FEbHx','lfijc','ZmiIB','concat','fMzvB','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','812265vkCwGs','LLxIa','yUDdO','WhgLn','RoAjo','YkZEy','njyzh','../config/logger','HbOJY','bnniS','projects','jVOFY','gcloud\x20auth\x20login\x20--cred-file=','lUbtp','sySOf','gkecluster.json','gcp_credentials.json','templates','ZUNXM','list','KubeConfigTemplate.yaml','status','tycdC','SprOs','storage.objects.list','xmCoz','wSFqA','utf-8','managedby','KEtjd','yHIbX','config','gsXLZ','setIamPolicy','credentialsPath','machineType','eSWLv','type','OEYjg','1|0|8|5|4|6|3|7|2','/regions/','nodePools','YTFLK','iam.serviceAccounts.signBlob','testIamPermissions','updateWindowsNodeGroup','storage.objects.update','BJTDU','/serviceAccounts/','ufALM','TDzGK','wDBfe','OIFGQ','ingress','storage.buckets.deleteTagBinding','oCeIH','QJUed','KfhbT','OiuZZ','json','woCGE','gfMei','GoogleCloudProvider','DvBqA','jbIPM','djzPM','drudn','wXiMj','ClusterManagerClient','Olslm','ctrKr','setupServiceAccount','anSOg','debug','REGULAR','ftAaR','aqzUQ','DLonT','gcloud\x20--version','pKmht','minNodeCount','https://','alAUq','klIud','ylihT','jOspt','warn','TKsIk','clusterAutoUpgrade','lAouo','amMbc','Deleting\x20the\x20cluster\x20','allowed','GNDJv','stringify','util','RESOURCES','denied','storage.buckets.listEffectiveTags','listClusters','replace','autoscaling','isClusterPresent','UgPhw','Found\x20cluster\x20with\x20name\x20\x27','gcpresources','Creating\x20service\x20account','kzEVy','scopes','5eWmDeG','yqPqk','execSync','IpusC','gVdQI','crowY','getGridHostname','@google-cloud/resource-manager','mTVHQ','cloudProviderName','QbdUC','QwXGe','rjPCY','storage.buckets.update','PjHwt','Xpibc','fMMQB','length','IhkTn','loadBalancer','QFPoM','split','title','deleteCluster','2739408tJTSNt','EyHht','storage.buckets.getIamPolicy','LOG','xooYx','mLXtd','DgSuw','RUNNING','1431304lppWyD','storage.buckets.setIamPolicy','JxdNX','resourceLabels','clusterName','LycWE','/roles/','RlAiH','vpcInfo','\x20--windows-os-version=ltsc2022\x20--region\x20','storage.buckets.delete','iMnsL','imuSx','clusters','googleapis','gtVoE','uaMep','iam','KFecY','EJUlL','projectId','clusterCaCertificate','fChRL','newRegion','BjxpK','../utils/utilityMethods','roles','nEmlC','sendResourceDataToHST','tQiCt','zkaMH','nKOsB','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','OirZp','ACFYC','releaseChannel','PUT','xpOSb','hTVUH','HhKjQ','/packages/cli/update-cluster-region','162340BgFWHw','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--no-user-output-enabled','gWnMV','../config/constants','regionmap.json','bstackUsername','organizations','storage.objects.create','writeFileSync','Cannot\x20find\x20subnets\x20','info','cloudProvider','hejCu','xnzUK','KMIKu','eMALw','AQDZh','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','oKqzD','join','toString','tNynd','NOYqw','kdwrF','sendGCPInfoToHST','Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20','rws','log','YKSyc','ruiuj','forEach','Service\x20account\x20already\x20exists,\x20skipping','SiTvH','eynLb','createCluster','instanceType','ZmIdh','getClusterInfo','GKRcL','mCLJO','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','JbAaq','JVNLh','https://www.googleapis.com/auth/cloud-platform','vHuyf','nYWKV','MzdMy','FCqgV','data','storage.buckets.list','tbrWR','czTEj','BYhHV','sSZHr','HzZmt','frdLo','setupHubHa','startsWith','getClient','Eikud','/clusters/','get','Cluster\x20deletion\x20completed','exports','TMMMc','isVPCPresent','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','autoUpgrade','mXhzr','Cluster\x20creation\x20failed','Xnvdl','clusterRegion','4IYqDzr','toLowerCase','browserstack','gMQTq','getUserInput','storage.multipartUploads.list','subnetwork','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','default','Uiomo','locations','serviceAccount','cNHrA','jieWX','KKCJw','endpoint','message','yhAWb','bNYRN','VdFCo','https://www.googleapis.com/compute/v1/projects/','getKubeConfigData','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','JygzL','TXCtF','storage.objects.setIamPolicy','gcKsG','getCluster','accountId','kryCB','kjmVE','ZfWhO','DJwGm','keyFile','accessKey','HMOcy','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','accounts','storage.objects.get','XAwgL','subnetworks','VfLGZ','rmxQK','puZIJ','HWFFU','HnBEo','Creating\x20GKE\x20Cluster','hCwiG','exit','mAPag','projects/','networkClient','error','/subnetworks/','wchxp','IXRIj','dsJIh','isBrowserstackCluster','Xhgzc','ADavU','PrrZL','minNodes','qEGMU','isCliToolInstalled','readFileAsync'];a3_0x1cac=function(){return _0x5de728;};return a3_0x1cac();}
1
+ const a3_0x3895d0=a3_0x4ef1;(function(_0x4fb9a9,_0x59a577){const _0x2ce07b=a3_0x4ef1,_0x3b1e97=_0x4fb9a9();while(!![]){try{const _0x19a42f=-parseInt(_0x2ce07b(0x103))/0x1*(parseInt(_0x2ce07b(0x261))/0x2)+parseInt(_0x2ce07b(0x18e))/0x3+parseInt(_0x2ce07b(0x136))/0x4+-parseInt(_0x2ce07b(0x274))/0x5*(-parseInt(_0x2ce07b(0x13b))/0x6)+-parseInt(_0x2ce07b(0x214))/0x7*(-parseInt(_0x2ce07b(0x222))/0x8)+parseInt(_0x2ce07b(0x256))/0x9+-parseInt(_0x2ce07b(0x14a))/0xa*(parseInt(_0x2ce07b(0x1b3))/0xb);if(_0x19a42f===_0x59a577)break;else _0x3b1e97['push'](_0x3b1e97['shift']());}catch(_0x564cc6){_0x3b1e97['push'](_0x3b1e97['shift']());}}}(a3_0xbad1,0xd73b6));const fs=require('fs'),path=require(a3_0x3895d0(0x25e)),got=require('got'),util=require(a3_0x3895d0(0x1e5)),cp=require(a3_0x3895d0(0x20a)),{google}=require('googleapis'),compute=require(a3_0x3895d0(0x21f)),container=require('@google-cloud/container'),{ProjectsClient}=require(a3_0x3895d0(0x25d))['v3'],{logger}=require('../config/logger'),{CloudProvider}=require(a3_0x3895d0(0x24f)),{getDirForConfig,getAuthHeader,runCommand}=require('../utils/utilityMethods'),{deleteRoutingDeps,deleteAgent}=require(a3_0x3895d0(0x153)),{inputConfirmation,closeInput}=require(a3_0x3895d0(0x14b)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require('../config/constants'),PERMISSIONS=require(a3_0x3895d0(0x1bb));function a3_0xbad1(){const _0x448045=['FnyAc','projectId','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','ajnVi','Creating\x20service\x20account','info','cHhid','1|6|5|4|0|7|3|2|8','storage.buckets.create','credentialsPath','xuSmH','viIvf','bstackAccesskey','uVcxg','location','iam','projects','oYhmZ','/locations/','sendResourceDataToHST','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','storage.buckets.setIamPolicy','NsuDZ','lWYvh','createCluster','OUQlL','serviceAccounts','child_process','replace','Found\x20cluster\x20with\x20name\x20\x27','McTMl','YcuHa','ogQqU','meMCV','HdLLa','foKOv','HjJDR','119AIapJu','ffLXT','toString','eoHAR','fXMBo','channel','push','HfEOb','YujUW','storage.multipartUploads.abort','RszRo','@google-cloud/compute','title','deleteCluster','320136ImfLdD','split','storage.buckets.delete','pFCVw','KTPYY','CqmoP','debug','zUBna','list','REGULAR','getKubeConfigData','MNKlP','LzNKQ','endpoint','.iam.gserviceaccount.com','LHqnM','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','iamClient','btjyE','setupHubHa','liYQh','gRluI','dnHkt','jgcrR','utf-8','EGFny','yOySe','storage.objects.list','sfylg','execSync','GqBsv','CVUwy','newRegion','join','/global/networks/','nodePools','hAsLk','DRWZC','auth','VWebp','eRCtn','storage.multipartUploads.list','nQemq','vtVzd','exports','./CloudProvider','sendGCPInfoToHST','/clusters/','config','turboscale-service-account','parse','iYKNe','15390882hCvmwu','FRHKb','getUserInput','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','error','minNodeCount','yoVWG','@google-cloud/resource-manager','path','kPokY','log','6fmZoFe','zCtdO','hNmjf','https://','warn','TQIdm','rdWAr','kPGQN','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--no-user-output-enabled','OhECW','organizations','Cannot\x20find\x20subnets\x20','qbvvY','status','isCliToolInstalled','mnofw','fpxRi','lCtbx','gke_','235ufbOSr','aBdRY','LAMpW','LnFeJ','GNVkP','allowed','rfFla','concat','qlquU','auzyY','McPWf','FeHPu','isSubnetsValid','KLqNd','IenYp','data','autoscaling','DUpmh','GEQIs','locations','ygXMN','vUcHe','zbvIK','gkecluster.json','maxNodes','get','XmXch','iHiEg','sORjB','bqiRv','PwkBR','\x20--quiet\x20--user-output-enabled=false','minNodes','storage.buckets.createTagBinding','WgQWr','243956aAbFzb','cloudProvider','cTzxX','members','browserstack','iIAgW','isClusterPresent','MdUXN','TAhlf','ingress','clusters','pYYwQ','getIamPolicy','permissions','regionmap.json','error\x20:\x20','jBgna','yXbXk','storage.objects.get','YMZiu','wNvjM','gcpresources','storage.buckets.getIamPolicy','WzgTB','sIlOq','denied','storage.multipartUploads.create','CbbKM','getGridHostname','zcSEQ','project_id','keyFile','subnetworks','customRoleName','stringify','wbfXr','GKE\x20Cluster\x20deletion\x20failed','Turboscale\x20Custom\x20Role','xmBuD','containerClient','mskOp','forEach','zlfAu','jNSZs','WSUxG','WxtIB','bgaDp','serviceAccountName','KUYYy','updateWindowsNodeGroup','setupServiceAccount','1545284vwhSqP','delay','FvhXW','listClusters','QzBOl','160932nMGXUw','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','default','toLowerCase','Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20','gOPzA','startsWith','AkbkR','meEWH','\x20:\x20','kYuII','YAayD','rws','nYQMS','type','10PnvBTn','../utils/userInput','DONE','EqfnE','gDVOZ','vpcInfo','UKrYr','storage.objects.update','uIuBO','../utils/gridComponents','QTZEr','aSvta','wIyBq','machineType','pjWNG','includes','gridProfileId','PUT','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','accounts','SzTAf','sOIvO','storage.buckets.deleteTagBinding','storage.objects.getIamPolicy','Ivxjv','tYyjj','ncSou','DmBVR','networkClient','roles','serviceAccount:','iam.serviceAccounts.signBlob','requestBody','hRUOX','HkMdA','checkServiceAccount','rWMHr','bWamH','templates','HpeBy','DIyUW','accessKey','Cluster\x20creation\x20failed','NJaUc','https://www.googleapis.com/auth/cloud-platform','qhAGA','LkyEU','KSgMf','maxNodeCount','turboscale_custom_role','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','RoLlf','BMUDE','WraFz','XLsEU','jdwnC','getClient','exit','iPzWM','https://www.googleapis.com/compute/v1/projects/','ZwctS','Exwna','xuNLj','vKHIT','projects/','jtiuD','aWSEh','FVZMN','1930041aUZnzJ','dyMfO','RESOURCES','ZCpih','bLlyD','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','.\x20Error:\x20','bstackUsername','/regions/','qpzlS','autoUpgrade','NSoQC','setIamPolicy','storage.objects.delete','FPnxZ','XJkBw','releaseChannel','EWPpa','length','readFileAsync','serviceAccount','PuDAe','managedby','message','Vsqvk','writeFileSync','clusterRegion','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','sendEventToBackend','init','jYEnn','Intercepted','laZeB','aWbLv','/subnetworks/','instanceType','stack','33739541dCJQXY','DAbhc','/serviceAccounts/','scopes','OTToN','EiQmu','vfNmC','NjmLg','../permissions/GCP.json','gyzzM','guxcm','ImRHI','aSDWc','getClusterInfo','jOwsx','AKbPX','kLate','omKMf','ixnRN','storage.buckets.listTagBindings','EySAJ','\x20--windows-os-version=ltsc2022\x20--region\x20','KUcZX','ZNuIE','QPaRc','lWKyl','loadBalancer','Vhqeq','ezKei','subnetwork','uDYqW','vwLvZ','NvisI','enlxX','CCiYR','vCpct','resourcemanagerClient','storage.buckets.update','name','clusterName','plagt','XxBuH','QUyfG','getCluster','Cluster\x20deletion\x20completed','mkFpW','gEvIn','accountId','management','create','util','/roles/','setCachedCredsInRegistry','kURyF','VdycK','ixRlx','updateClusterRegion','JgrKg','TtYar','webSocketUtils'];a3_0xbad1=function(){return _0x448045;};return a3_0xbad1();}class GoogleCloudProvider extends CloudProvider{constructor(_0x20d5a0,_0x309ce6,_0x23b61c,_0x5c1d89){const _0x4acda4=a3_0x3895d0,_0x33edf7={};_0x33edf7[_0x4acda4(0x1ce)]=_0x4acda4(0x1f6),_0x33edf7[_0x4acda4(0x14d)]=_0x4acda4(0x17b),_0x33edf7[_0x4acda4(0x197)]=_0x4acda4(0x253);const _0x3e6403=_0x33edf7,_0x2f8929=_0x3e6403[_0x4acda4(0x1ce)][_0x4acda4(0x223)]('|');let _0x58c87b=0x0;while(!![]){switch(_0x2f8929[_0x58c87b++]){case'0':this[_0x4acda4(0x233)]=null;continue;case'1':super(GCP,_0x20d5a0,_0x309ce6,_0x23b61c,_0x5c1d89);continue;case'2':this[_0x4acda4(0x124)]=_0x3e6403['EqfnE'];continue;case'3':this[_0x4acda4(0x1f0)]=null;continue;case'4':this[_0x4acda4(0x1d7)]=null;continue;case'5':this['networkClient']=null;continue;case'6':this['containerClient']=null;continue;case'7':this['credentialsPath']=null;continue;case'8':this['serviceAccountName']=_0x3e6403[_0x4acda4(0x197)];continue;}break;}}async[a3_0x3895d0(0x202)](){const _0x208d87=a3_0x3895d0;this[_0x208d87(0x250)](this['rws']);}async[a3_0x3895d0(0x1ab)](){const _0x592e4e=a3_0x3895d0;await super[_0x592e4e(0x1ab)]();const _0x2731b0=this[_0x592e4e(0x1f8)],_0x254b5a={};_0x254b5a['keyFile']=_0x2731b0,this[_0x592e4e(0x12a)]=new container['v1']['ClusterManagerClient'](_0x254b5a);const _0x41fef8={};_0x41fef8['keyFile']=_0x2731b0,this[_0x592e4e(0x166)]=new compute['v1']['NetworksClient'](_0x41fef8);const _0x4b87a9={};return _0x4b87a9[_0x592e4e(0x122)]=_0x2731b0,this['resourcemanagerClient']=new ProjectsClient(_0x4b87a9),this[_0x592e4e(0x233)]=google[_0x592e4e(0x1fe)]('v1'),this;}async[a3_0x3895d0(0x258)](_0x11d11a,_0x3ee313){const _0x1403eb=a3_0x3895d0,_0xa14834={'vfNmC':function(_0x261025,_0x40a50e){return _0x261025(_0x40a50e);},'wbfXr':_0x1403eb(0x193),'xuSmH':function(_0x39107e){return _0x39107e();},'CqmoP':'gcp_credentials.json'},_0x1f2328=await _0xa14834[_0x1403eb(0x1b9)](_0x11d11a,_0xa14834[_0x1403eb(0x126)]);let _0x5586cb=await fs['readFileAsync'](_0x1f2328);_0x5586cb=_0x5586cb['toString']();const _0x1a6d6c=_0xa14834[_0x1403eb(0x1f9)](getDirForConfig),_0x289226=path[_0x1403eb(0x243)](_0x1a6d6c,_0xa14834[_0x1403eb(0x227)]);fs[_0x1403eb(0x1a7)](_0x289226,_0x5586cb),this[_0x1403eb(0x1f8)]=_0x289226;const _0x2eda4d={};return _0x2eda4d[_0x1403eb(0x122)]=_0x289226,_0x3ee313['cloudProvider'][GCP]=_0x2eda4d,_0x5586cb=JSON[_0x1403eb(0x254)](_0x5586cb),this['projectId']=_0x5586cb['project_id'],_0x3ee313;}async[a3_0x3895d0(0x1e7)](_0x3684cc){const _0x2e1109=a3_0x3895d0;this[_0x2e1109(0x1f8)]=_0x3684cc[this['cloudProviderName']][_0x2e1109(0x122)];let _0x8d01ee=await fs['readFileAsync'](this['credentialsPath']);_0x8d01ee=JSON[_0x2e1109(0x254)](_0x8d01ee),this['projectId']=_0x8d01ee[_0x2e1109(0x121)];}[a3_0x3895d0(0x11f)](_0x37ac8b){const _0x7cb645=a3_0x3895d0;return _0x37ac8b[_0x7cb645(0x26e)]['loadBalancer'][_0x7cb645(0x10c)][0x0]['ip'];}async['isBrowserstackCluster'](){const _0x51349e=a3_0x3895d0,_0x2621bf={};_0x2621bf[_0x51349e(0x1ae)]=_0x51349e(0x13d),_0x2621bf[_0x51349e(0x225)]='Cluster\x20creation\x20failed',_0x2621bf[_0x51349e(0x26d)]=function(_0x1829bf,_0x5d8767){return _0x1829bf!==_0x5d8767;},_0x2621bf[_0x51349e(0x237)]='ZbwXv',_0x2621bf[_0x51349e(0x205)]=function(_0x2d30db,_0x43e028){return _0x2d30db===_0x43e028;},_0x2621bf[_0x51349e(0x1db)]=_0x51349e(0x211),_0x2621bf['omKMf']=_0x51349e(0xfc),_0x2621bf['WxtIB']='browserstack',_0x2621bf[_0x51349e(0x116)]=function(_0x170362,_0x418d09){return _0x170362!==_0x418d09;},_0x2621bf['fXMBo']=_0x51349e(0x22d),_0x2621bf[_0x51349e(0x27e)]=_0x51349e(0x231);const _0x2f1afd=_0x2621bf;try{if(_0x2f1afd[_0x51349e(0x26d)](_0x2f1afd[_0x51349e(0x237)],_0x2f1afd['gRluI']))_0x11589e=_0x2f1afd[_0x51349e(0x1ae)];else{const _0x2494c0=await this[_0x51349e(0x1c0)]();if(_0x2494c0[0x0]?.['resourceLabels']?.[_0x51349e(0x1a4)]){if(_0x2f1afd[_0x51349e(0x205)](_0x2f1afd[_0x51349e(0x1db)],_0x2f1afd[_0x51349e(0x1c4)]))_0x2b72a0['info'](_0x2f1afd[_0x51349e(0x225)]);else{const _0x27afe4=_0x2494c0[0x0]?.['resourceLabels']?.[_0x51349e(0x1a4)];return _0x27afe4&&_0x2f1afd['NsuDZ'](_0x27afe4[_0x51349e(0x13e)](),_0x2f1afd[_0x51349e(0x130)]);}}}}catch(_0x456634){if(_0x2f1afd['YMZiu'](_0x2f1afd[_0x51349e(0x218)],_0x2f1afd[_0x51349e(0x27e)]))return![];else _0x2c11d6[_0x51349e(0x1a8)]=_0x5cce57[0x0],this[_0x51349e(0x1eb)]();}return![];}async[a3_0x3895d0(0x109)](){const _0x2f3e82=a3_0x3895d0,_0x342ae0={'LAMpW':function(_0x3d1ebc,_0x1f64d4){return _0x3d1ebc===_0x1f64d4;},'DUpmh':function(_0x5473be,_0x2e1840){return _0x5473be===_0x2e1840;},'rdWAr':function(_0x5ead3e,_0x3d6d4b){return _0x5ead3e-_0x3d6d4b;},'mnofw':_0x2f3e82(0x22b),'vUcHe':_0x2f3e82(0x13d),'ixnRN':_0x2f3e82(0x170),'zlfAu':'gcpresources','vKHIT':_0x2f3e82(0x111),'WgQWr':_0x2f3e82(0x23a),'DRWZC':function(_0x338a1d,_0x26f71f){return _0x338a1d!==_0x26f71f;},'YAayD':function(_0x290f99,_0x5b32cc){return _0x290f99===_0x5b32cc;},'xuNLj':_0x2f3e82(0x25c),'XLsEU':'rDbAw','ogQqU':_0x2f3e82(0x213),'TAhlf':function(_0x437274,_0x54f480){return _0x437274===_0x54f480;},'bqiRv':_0x2f3e82(0x1c3),'NvisI':function(_0x42e426,_0x194d0c){return _0x42e426===_0x194d0c;},'uDYqW':function(_0x4c0954,_0x32027f){return _0x4c0954!==_0x32027f;},'FVZMN':'jyWJV','yXbXk':function(_0x5428c3,_0x169a91){return _0x5428c3===_0x169a91;},'ezKei':_0x2f3e82(0xfb),'HpeBy':_0x2f3e82(0x257),'NJaUc':function(_0x1a17fc,_0x4d0be6){return _0x1a17fc>_0x4d0be6;},'kYLmz':function(_0x1d19db,_0x4fce6f){return _0x1d19db===_0x4fce6f;},'RszRo':_0x2f3e82(0x1e1),'oPkQS':function(_0x2e5e53,_0x4868fc){return _0x2e5e53<_0x4868fc;},'aSvta':'oMSiX','ZwctS':function(_0x52b88d,_0x3d6e7b){return _0x52b88d+_0x3d6e7b;},'hRUOX':function(_0x199365,_0x283e8a){return _0x199365(_0x283e8a);},'FXMss':_0x2f3e82(0x1f1),'iIAgW':function(_0x730e91,_0x5eb823){return _0x730e91(_0x5eb823);},'bgaDp':function(_0x505a3c,_0x3ad74b){return _0x505a3c<=_0x3ad74b;},'zbvIK':function(_0x1bd5a9,_0x29ba6a){return _0x1bd5a9===_0x29ba6a;},'hAsLk':_0x2f3e82(0x1ba),'WSUxG':_0x2f3e82(0x1a9),'YgPGn':function(_0x54b2b5){return _0x54b2b5();},'jdwnC':function(_0x10b132,_0x368c1e){return _0x10b132===_0x368c1e;},'eRCtn':_0x2f3e82(0x277)};let _0x52f19b=await fs[_0x2f3e82(0x1a1)](path['join'](__dirname,'..',_0x342ae0[_0x2f3e82(0x1c5)],_0x342ae0[_0x2f3e82(0x12d)],_0x342ae0[_0x2f3e82(0x189)]),_0x342ae0[_0x2f3e82(0x102)]);_0x52f19b=JSON[_0x2f3e82(0x254)](_0x52f19b);let _0x44c987=[global_registry[_0x2f3e82(0x1a8)]];if(_0x342ae0[_0x2f3e82(0x247)](_0x52f19b[global_registry[_0x2f3e82(0x1a8)]],undefined)){if(_0x342ae0[_0x2f3e82(0x146)](_0x342ae0[_0x2f3e82(0x188)],_0x342ae0[_0x2f3e82(0x188)]))_0x44c987=_0x44c987[_0x2f3e82(0x27b)](_0x52f19b[global_registry['clusterRegion']]);else for(const _0x334398 of _0x5b6883[_0x2f3e82(0x283)][_0x2f3e82(0x15d)]){if(_0x342ae0[_0x2f3e82(0x276)](_0x334398?.[_0x2f3e82(0x1d9)],_0x2f3e82(0x18a)+this[_0x2f3e82(0x1f0)]+_0x2f3e82(0x1b5)+this[_0x2f3e82(0x132)]+'@'+this['projectId']+'.iam.gserviceaccount.com'))return!![];}}const _0x50e280=[];for await(const _0x51b977 of _0x44c987){if(_0x342ae0[_0x2f3e82(0x285)](_0x342ae0[_0x2f3e82(0x180)],_0x342ae0[_0x2f3e82(0x20f)])){const _0x1727d3='https://www.googleapis.com/compute/v1/projects/'+this[_0x2f3e82(0x1f0)]+'/regions/'+_0x36a349['clusterRegion']+_0x2f3e82(0x1b0)+_0x14169a[0x0];if(_0x342ae0[_0x2f3e82(0x285)](_0x1727d3,_0x4ef43d))return[!![],_0x386d45];}else{const _0x596471={};_0x596471['parent']=_0x2f3e82(0x18a)+this[_0x2f3e82(0x1f0)]+_0x2f3e82(0x201)+_0x51b977;const _0x254b1f=_0x596471,_0x3cfcc3=await this[_0x2f3e82(0x12a)][_0x2f3e82(0x139)](_0x254b1f);for(const _0x2307f3 of _0x3cfcc3[0x0][_0x2f3e82(0x10d)]){_0x342ae0[_0x2f3e82(0x10b)](_0x342ae0[_0x2f3e82(0xfd)],_0x342ae0[_0x2f3e82(0xfd)])?_0x342ae0[_0x2f3e82(0x1d3)](_0x2307f3[_0x2f3e82(0x1d9)],this['clusterName'])&&(_0x342ae0[_0x2f3e82(0x1d1)](_0x342ae0[_0x2f3e82(0x18d)],_0x342ae0[_0x2f3e82(0x18d)])?(_0x31260d[_0x2f3e82(0x1a8)]=_0x5eb37f[_0x342ae0[_0x2f3e82(0x267)](_0x3d2be4,0x1)],this['updateClusterRegion']()):_0x50e280[_0x2f3e82(0x21a)](_0x51b977)):_0x2d7fb5[_0x2f3e82(0x25a)]=_0x2a4bcb;}}}const _0x4bde6e=_0x50e280[_0x2f3e82(0x1a0)];if(_0x342ae0[_0x2f3e82(0x114)](_0x4bde6e,0x1)){if(_0x342ae0['LAMpW'](_0x342ae0[_0x2f3e82(0x1cf)],_0x342ae0[_0x2f3e82(0x1cf)])){if(_0x342ae0[_0x2f3e82(0x1d1)](global_registry[_0x2f3e82(0x1a8)],_0x50e280[0x0])){if(_0x342ae0['DRWZC'](_0x342ae0[_0x2f3e82(0x171)],_0x342ae0[_0x2f3e82(0x171)]))return!![];else global_registry[_0x2f3e82(0x1a8)]=_0x50e280[0x0],this[_0x2f3e82(0x1eb)]();}return!![];}else{const _0x1e9b73={};_0x1e9b73[_0x2f3e82(0x219)]=_0x342ae0[_0x2f3e82(0x270)],_0x49eb5b[_0x2f3e82(0x19e)]=_0x1e9b73;}}else{if(_0x342ae0[_0x2f3e82(0x175)](_0x4bde6e,0x1)){if(_0x342ae0['kYLmz'](_0x342ae0['RszRo'],_0x342ae0[_0x2f3e82(0x21e)])){console[_0x2f3e82(0x260)](_0x2f3e82(0x20c)+this[_0x2f3e82(0x1da)]+_0x2f3e82(0x259));for(let _0x1c7806=0x0;_0x342ae0['oPkQS'](_0x1c7806,_0x4bde6e);_0x1c7806+=0x1){_0x342ae0[_0x2f3e82(0x247)](_0x342ae0[_0x2f3e82(0x155)],_0x342ae0[_0x2f3e82(0x155)])?_0x1b0bad=[_0x342ae0[_0x2f3e82(0x289)]]:console[_0x2f3e82(0x260)]('['+_0x342ae0[_0x2f3e82(0x186)](_0x1c7806,0x1)+']\x20'+_0x50e280[_0x1c7806]);}const _0x3be845=await _0x342ae0[_0x2f3e82(0x16b)](inputConfirmation,_0x342ae0['FXMss']),_0x1f55a8=_0x342ae0[_0x2f3e82(0x16b)](Number,_0x3be845);if(_0x342ae0[_0x2f3e82(0x108)](isNaN,_0x1f55a8)||_0x342ae0[_0x2f3e82(0x131)](_0x1f55a8,0x0)||_0x342ae0[_0x2f3e82(0x175)](_0x1f55a8,_0x4bde6e)){if(_0x342ae0[_0x2f3e82(0x28a)](_0x342ae0[_0x2f3e82(0x246)],_0x342ae0[_0x2f3e82(0x246)]))console['error'](_0x342ae0[_0x2f3e82(0x12f)]),process['exit'](0x1);else return!![];}return _0x342ae0['YgPGn'](closeInput),logger['info'](_0x2f3e82(0x15c)+_0x50e280[_0x342ae0[_0x2f3e82(0x267)](_0x1f55a8,0x1)]),_0x342ae0[_0x2f3e82(0x1d1)](global_registry['clusterRegion'],_0x50e280[_0x342ae0[_0x2f3e82(0x267)](_0x1f55a8,0x1)])&&(_0x342ae0[_0x2f3e82(0x181)](_0x342ae0['eRCtn'],_0x342ae0[_0x2f3e82(0x24a)])?(global_registry[_0x2f3e82(0x1a8)]=_0x50e280[_0x342ae0[_0x2f3e82(0x267)](_0x1f55a8,0x1)],this['updateClusterRegion']()):this[_0x2f3e82(0x250)](this['rws'])),!![];}else return _0x2a8eeb[_0x2f3e82(0x26e)][_0x2f3e82(0x1cd)][_0x2f3e82(0x10c)][0x0]['ip'];}}return![];}async['getClusterInfo'](){const _0x4477f2=a3_0x3895d0,_0x20905d=await this[_0x4477f2(0x12a)][_0x4477f2(0x1de)]({'name':_0x4477f2(0x18a)+this[_0x4477f2(0x1f0)]+_0x4477f2(0x201)+global_registry[_0x4477f2(0x1a8)]+_0x4477f2(0x251)+this[_0x4477f2(0x1da)]});return _0x20905d;}async[a3_0x3895d0(0x22c)](){const _0x4ae330=a3_0x3895d0,_0x4c7441={};_0x4c7441[_0x4ae330(0x11e)]=_0x4ae330(0x269),_0x4c7441['jYEnn']='templates',_0x4c7441[_0x4ae330(0x27a)]=_0x4ae330(0x118),_0x4c7441[_0x4ae330(0x19f)]='KubeConfigTemplate.yaml';const _0x3e063c=_0x4c7441;cp[_0x4ae330(0x23f)](_0x3e063c[_0x4ae330(0x11e)]),cp['exec']('gcloud\x20auth\x20login\x20--cred-file='+this[_0x4ae330(0x1f8)]);const _0x4d96d5=await this['getClusterInfo'](),_0x11f5bb=_0x4ae330(0x273)+this[_0x4ae330(0x1f0)]+'_'+global_registry[_0x4ae330(0x1a8)]+'_'+this[_0x4ae330(0x1da)];let _0x5ab3f3=await fs[_0x4ae330(0x1a1)](path[_0x4ae330(0x243)](__dirname,'..',_0x3e063c[_0x4ae330(0x1ac)],_0x3e063c['rfFla'],_0x3e063c[_0x4ae330(0x19f)]));return _0x5ab3f3=_0x5ab3f3[_0x4ae330(0x216)](),_0x5ab3f3=_0x5ab3f3[_0x4ae330(0x20b)](/<CLUSTER_NAME>/g,_0x11f5bb),_0x5ab3f3=_0x5ab3f3['replace'](/<CLUSTER_URL>/g,_0x4ae330(0x264)+_0x4d96d5[0x0][_0x4ae330(0x22f)]),_0x5ab3f3=_0x5ab3f3[_0x4ae330(0x20b)](/<CERTIFICATE_DATA>/g,_0x4d96d5[0x0]['masterAuth']['clusterCaCertificate']),_0x5ab3f3;}async[a3_0x3895d0(0x16d)](){const _0x781e70=a3_0x3895d0,_0x413693={};_0x413693['jNSZs']='GKE\x20Cluster\x20deletion\x20failed',_0x413693['meEWH']=_0x781e70(0x176),_0x413693[_0x781e70(0x1ca)]=function(_0x42e9fa,_0x1bd4d3){return _0x42e9fa!==_0x1bd4d3;},_0x413693[_0x781e70(0x184)]=_0x781e70(0x241),_0x413693[_0x781e70(0x1bd)]=function(_0x210661,_0x18060b){return _0x210661!==_0x18060b;},_0x413693[_0x781e70(0x215)]=_0x781e70(0x1b7),_0x413693['vCpct']=function(_0x357561,_0x1c9fdb){return _0x357561===_0x1c9fdb;},_0x413693[_0x781e70(0x117)]=function(_0x108e22,_0x5e117c){return _0x108e22!==_0x5e117c;},_0x413693[_0x781e70(0x282)]='HUrPe';const _0x5c7a4a=_0x413693,_0x30e390={};_0x30e390[_0x781e70(0x1b6)]=[_0x5c7a4a[_0x781e70(0x143)]],_0x30e390['keyFile']=this[_0x781e70(0x1f8)];const _0x5e1673=await google[_0x781e70(0x248)]['getClient'](_0x30e390),_0x370eeb=await this[_0x781e70(0x233)][_0x781e70(0x1ff)]['serviceAccounts']['list']({'name':_0x781e70(0x18a)+this[_0x781e70(0x1f0)],'auth':_0x5e1673});if(_0x370eeb?.[_0x781e70(0x283)]?.['accounts']){if(_0x5c7a4a[_0x781e70(0x1ca)](_0x5c7a4a[_0x781e70(0x184)],_0x5c7a4a['iPzWM']))_0x1ee7f9[_0x781e70(0x26e)]=![];else for(const _0x41345f of _0x370eeb['data'][_0x781e70(0x15d)]){if(_0x5c7a4a[_0x781e70(0x1bd)](_0x5c7a4a['ffLXT'],_0x5c7a4a[_0x781e70(0x215)])){_0x3c3bf1[_0x781e70(0x1f4)](_0x5c7a4a[_0x781e70(0x12e)]);throw _0x2f43cf;}else{if(_0x5c7a4a[_0x781e70(0x1d6)](_0x41345f?.['name'],_0x781e70(0x18a)+this[_0x781e70(0x1f0)]+_0x781e70(0x1b5)+this[_0x781e70(0x132)]+'@'+this[_0x781e70(0x1f0)]+_0x781e70(0x230)))return _0x5c7a4a['wNvjM'](_0x5c7a4a['IenYp'],_0x5c7a4a[_0x781e70(0x282)])?!![]:!![];}}}return![];}async[a3_0x3895d0(0x135)](){const _0x46d4af=a3_0x3895d0,_0xac12c2={};_0xac12c2[_0x46d4af(0x226)]='Service\x20account\x20already\x20exists,\x20skipping',_0xac12c2[_0x46d4af(0x145)]=function(_0x3f209a,_0x3fbf0f){return _0x3f209a===_0x3fbf0f;},_0xac12c2['LkyEU']=_0x46d4af(0x1b8),_0xac12c2[_0x46d4af(0x21b)]='onLWd',_0xac12c2['aSDWc']=_0x46d4af(0x1f3),_0xac12c2[_0x46d4af(0x1f5)]=_0x46d4af(0x176),_0xac12c2['liYQh']=_0x46d4af(0x169),_0xac12c2[_0x46d4af(0x191)]=_0x46d4af(0x1f7),_0xac12c2[_0x46d4af(0x192)]=_0x46d4af(0x101),_0xac12c2[_0x46d4af(0x177)]=_0x46d4af(0x224),_0xac12c2[_0x46d4af(0x1a6)]=_0x46d4af(0x160),_0xac12c2['JRlJe']='storage.buckets.get',_0xac12c2[_0x46d4af(0x138)]=_0x46d4af(0x119),_0xac12c2[_0x46d4af(0x27c)]='storage.buckets.getObjectInsights',_0xac12c2['btjyE']='storage.buckets.list',_0xac12c2['NyHHc']='storage.buckets.listEffectiveTags',_0xac12c2[_0x46d4af(0x249)]=_0x46d4af(0x1c6),_0xac12c2[_0x46d4af(0x113)]=_0x46d4af(0x204),_0xac12c2['bWamH']=_0x46d4af(0x1d8),_0xac12c2[_0x46d4af(0x179)]=_0x46d4af(0x21d),_0xac12c2[_0x46d4af(0x240)]=_0x46d4af(0x11d),_0xac12c2[_0x46d4af(0x23c)]=_0x46d4af(0x24b),_0xac12c2[_0x46d4af(0x1d5)]='storage.multipartUploads.listParts',_0xac12c2[_0x46d4af(0x229)]='storage.objects.create',_0xac12c2[_0x46d4af(0x24d)]=_0x46d4af(0x19b),_0xac12c2[_0x46d4af(0x158)]=_0x46d4af(0x115),_0xac12c2[_0x46d4af(0x1be)]=_0x46d4af(0x161),_0xac12c2[_0x46d4af(0x1a3)]=_0x46d4af(0x23d),_0xac12c2[_0x46d4af(0x15e)]='storage.objects.setIamPolicy',_0xac12c2[_0x46d4af(0x266)]=_0x46d4af(0x151),_0xac12c2['zRKHL']=_0x46d4af(0x128),_0xac12c2[_0x46d4af(0x156)]=_0x46d4af(0x203);const _0xb4210d=_0xac12c2,_0x2e0c65=await this[_0x46d4af(0x16d)]();if(_0x2e0c65){if(_0xb4210d[_0x46d4af(0x145)](_0xb4210d[_0x46d4af(0x178)],_0xb4210d[_0x46d4af(0x21b)])){_0x4b9bc6[_0x46d4af(0x1f4)](_0xb4210d[_0x46d4af(0x226)]);return;}else{logger[_0x46d4af(0x1f4)](_0xb4210d['KTPYY']);return;}}logger['info'](_0xb4210d[_0x46d4af(0x1bf)]);const _0x33221d={};_0x33221d['scopes']=[_0xb4210d['cHhid']],_0x33221d[_0x46d4af(0x122)]=this[_0x46d4af(0x1f8)];const _0x48ee64=await google[_0x46d4af(0x248)][_0x46d4af(0x182)](_0x33221d),_0x316c6b={};_0x316c6b['includedPermissions']=[_0xb4210d[_0x46d4af(0x236)],_0xb4210d[_0x46d4af(0x191)],_0xb4210d[_0x46d4af(0x192)],_0xb4210d[_0x46d4af(0x177)],_0xb4210d['Vsqvk'],_0xb4210d['JRlJe'],_0xb4210d[_0x46d4af(0x138)],_0xb4210d[_0x46d4af(0x27c)],_0xb4210d[_0x46d4af(0x234)],_0xb4210d['NyHHc'],_0xb4210d['VWebp'],_0xb4210d[_0x46d4af(0x113)],_0xb4210d[_0x46d4af(0x16f)],_0xb4210d[_0x46d4af(0x179)],_0xb4210d[_0x46d4af(0x240)],_0xb4210d[_0x46d4af(0x23c)],_0xb4210d[_0x46d4af(0x1d5)],_0xb4210d[_0x46d4af(0x229)],_0xb4210d[_0x46d4af(0x24d)],_0xb4210d[_0x46d4af(0x158)],_0xb4210d[_0x46d4af(0x1be)],_0xb4210d[_0x46d4af(0x1a3)],_0xb4210d[_0x46d4af(0x15e)],_0xb4210d[_0x46d4af(0x266)]],_0x316c6b[_0x46d4af(0x220)]=_0xb4210d['zRKHL'],await this[_0x46d4af(0x233)][_0x46d4af(0x26b)][_0x46d4af(0x167)]['create']({'parent':_0x46d4af(0x18a)+this[_0x46d4af(0x1f0)],'requestBody':{'role':_0x316c6b,'roleId':this[_0x46d4af(0x124)]},'auth':_0x48ee64});const _0x2ef739={};_0x2ef739[_0x46d4af(0x1d9)]='projects/'+this[_0x46d4af(0x1f0)],_0x2ef739[_0x46d4af(0x16a)]={},_0x2ef739[_0x46d4af(0x248)]=_0x48ee64,_0x2ef739[_0x46d4af(0x16a)][_0x46d4af(0x1e2)]=this[_0x46d4af(0x132)];const _0x501512=_0x2ef739;await this[_0x46d4af(0x233)][_0x46d4af(0x1ff)][_0x46d4af(0x209)][_0x46d4af(0x1e4)](_0x501512);let _0x3ceeed=await this[_0x46d4af(0x1d7)][_0x46d4af(0x10f)]({'resource':_0x46d4af(0x18a)+this['projectId']});_0x3ceeed=_0x3ceeed[0x0]['bindings'];const _0x11e020={};_0x11e020['role']=_0x46d4af(0x18a)+this[_0x46d4af(0x1f0)]+_0x46d4af(0x1e6)+this[_0x46d4af(0x124)],_0x11e020[_0x46d4af(0x106)]=[_0x46d4af(0x168)+this[_0x46d4af(0x132)]+'@'+this[_0x46d4af(0x1f0)]+_0x46d4af(0x230)],_0x3ceeed[_0x46d4af(0x21a)](_0x11e020);const _0x4bec19={};_0x4bec19['bindings']=_0x3ceeed,await this[_0x46d4af(0x1d7)][_0x46d4af(0x19a)]({'resource':_0x46d4af(0x18a)+this['projectId'],'policy':_0x4bec19}),logger[_0x46d4af(0x1f4)](_0xb4210d[_0x46d4af(0x156)]);}async['setupNewCluster'](_0xa913b8=a3_0x3895d0(0x13d),_0x4cdf37=[a3_0x3895d0(0x13d)]){const _0x196526=a3_0x3895d0,_0x3b565b={};_0x3b565b[_0x196526(0x206)]=_0x196526(0x1a9),_0x3b565b[_0x196526(0x1af)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x3b565b[_0x196526(0x1fa)]=_0x196526(0x13c),_0x3b565b['qQaMh']=function(_0x21a762,_0x52b89d){return _0x21a762!==_0x52b89d;},_0x3b565b[_0x196526(0x10e)]=_0x196526(0x1e8),_0x3b565b['ixRlx']=_0x196526(0x13d),_0x3b565b['LVFIm']=function(_0x12e142,_0x178c56){return _0x12e142===_0x178c56;},_0x3b565b[_0x196526(0x129)]=function(_0x387fb8,_0xc5d36c){return _0x387fb8!==_0xc5d36c;},_0x3b565b[_0x196526(0x1ef)]='rAtHD',_0x3b565b['EGFny']='xcMEN';const _0x52de2f=_0x3b565b,_0x4d4ce0={};return _0x4d4ce0[_0x196526(0x149)]=WS_EVENTS['LOG'],_0x4d4ce0[_0x196526(0x1a5)]=_0x52de2f['aWbLv'],this[_0x196526(0x1ee)][_0x196526(0x1aa)](this[_0x196526(0x147)],_0x4d4ce0),logger['info'](_0x52de2f[_0x196526(0x1fa)]),!_0xa913b8&&(_0x52de2f['qQaMh'](_0x52de2f['pYYwQ'],_0x52de2f[_0x196526(0x10e)])?_0x481f0f=_0x2ce06b[_0x196526(0x27b)](_0x4bf74d[_0x4dafe4['clusterRegion']]):_0xa913b8=_0x52de2f[_0x196526(0x1ea)]),(!_0x4cdf37||_0x52de2f['LVFIm'](_0x4cdf37['length'],0x0))&&(_0x52de2f[_0x196526(0x129)](_0x52de2f[_0x196526(0x1ef)],_0x52de2f[_0x196526(0x23b)])?_0x4cdf37=[_0x52de2f['ixRlx']]:(_0x239411['error'](_0x52de2f['lWYvh']),_0x5a4e74[_0x196526(0x183)](0x1))),await this['setupServiceAccount'](),await this[_0x196526(0x207)](_0xa913b8,_0x4cdf37),await this[_0x196526(0x134)](),[_0xa913b8,_0x4cdf37];}async['createCluster'](_0x504d1e='default',_0x38ce1f=[a3_0x3895d0(0x13d)]){const _0x2670df=a3_0x3895d0,_0x564d46={};_0x564d46[_0x2670df(0x1cb)]=function(_0xa659b2,_0x5a7091){return _0xa659b2!==_0x5a7091;},_0x564d46[_0x2670df(0x23e)]=_0x2670df(0x1cc),_0x564d46[_0x2670df(0x200)]='yCsOU',_0x564d46[_0x2670df(0x271)]='Creating\x20GKE\x20Cluster',_0x564d46[_0x2670df(0x199)]=_0x2670df(0x170),_0x564d46[_0x2670df(0x17e)]=_0x2670df(0x118),_0x564d46[_0x2670df(0x13a)]=_0x2670df(0x28b),_0x564d46[_0x2670df(0x263)]='utf-8',_0x564d46['jOwsx']=_0x2670df(0x111),_0x564d46['KUYYy']=function(_0x34e01c,_0x53c17f){return _0x34e01c===_0x53c17f;},_0x564d46['RoLlf']='nwOYC',_0x564d46[_0x2670df(0x272)]='WIneY',_0x564d46[_0x2670df(0x20d)]=_0x2670df(0x22b),_0x564d46['Exwna']=function(_0x757197,_0x42aa21){return _0x757197*_0x42aa21;},_0x564d46[_0x2670df(0x1f2)]=function(_0x5e52d9,_0x113228){return _0x5e52d9===_0x113228;},_0x564d46[_0x2670df(0x16e)]='csffZ',_0x564d46[_0x2670df(0x1e9)]=_0x2670df(0x24c),_0x564d46[_0x2670df(0x16c)]=_0x2670df(0x1dd),_0x564d46[_0x2670df(0x18b)]=_0x2670df(0x232),_0x564d46[_0x2670df(0x27d)]='XykNr',_0x564d46[_0x2670df(0x163)]=_0x2670df(0x27f),_0x564d46[_0x2670df(0x162)]=_0x2670df(0x174);const _0xfdcc93=_0x564d46;try{if(_0xfdcc93[_0x2670df(0x1cb)](_0xfdcc93[_0x2670df(0x23e)],_0xfdcc93['oYhmZ'])){logger[_0x2670df(0x1f4)](_0xfdcc93[_0x2670df(0x271)]);let _0x21fd9d=await fs[_0x2670df(0x1a1)](path[_0x2670df(0x243)](__dirname,'..',_0xfdcc93[_0x2670df(0x199)],_0xfdcc93[_0x2670df(0x17e)],_0xfdcc93['QzBOl']),_0xfdcc93[_0x2670df(0x263)]);_0x21fd9d=JSON['parse'](_0x21fd9d);let _0x434f31=await fs[_0x2670df(0x1a1)](path['join'](__dirname,'..',_0xfdcc93['NSoQC'],_0xfdcc93[_0x2670df(0x17e)],_0xfdcc93[_0x2670df(0x1c1)]),_0xfdcc93['hNmjf']);_0x434f31=JSON[_0x2670df(0x254)](_0x434f31);const _0x80eaf9=global_registry['clusterAutoUpgrade'];_0x21fd9d['name']=this[_0x2670df(0x1da)],_0x21fd9d['nodePools'][0x0][_0x2670df(0x252)][_0x2670df(0x157)]=global_registry[_0x2670df(0x1b1)],_0x21fd9d['nodePools'][0x1][_0x2670df(0x252)]['machineType']=global_registry[_0x2670df(0x1b1)],_0x21fd9d[_0x2670df(0x245)][0x0][_0x2670df(0x252)][_0x2670df(0x1a2)]=this['serviceAccountName']+'@'+this[_0x2670df(0x1f0)]+_0x2670df(0x230),_0x21fd9d[_0x2670df(0x245)][0x1][_0x2670df(0x252)][_0x2670df(0x1a2)]=this['serviceAccountName']+'@'+this[_0x2670df(0x1f0)]+_0x2670df(0x230),_0x21fd9d[_0x2670df(0x245)][0x0]['autoscaling']['minNodeCount']=global_registry[_0x2670df(0x100)],_0x21fd9d[_0x2670df(0x245)][0x1][_0x2670df(0x284)][_0x2670df(0x25b)]=0x0,_0x21fd9d[_0x2670df(0x245)][0x0][_0x2670df(0x1e3)][_0x2670df(0x198)]=_0x80eaf9,_0x21fd9d['nodePools'][0x1]['management'][_0x2670df(0x198)]=_0x80eaf9,_0x21fd9d[_0x2670df(0x245)][0x0][_0x2670df(0x284)][_0x2670df(0x17a)]=global_registry[_0x2670df(0x28c)],_0x21fd9d[_0x2670df(0x245)][0x1][_0x2670df(0x284)][_0x2670df(0x17a)]=global_registry['maxNodes'],_0x21fd9d[_0x2670df(0x1fd)]=global_registry[_0x2670df(0x1a8)],_0x21fd9d[_0x2670df(0x287)]=[_0x434f31[global_registry[_0x2670df(0x1a8)]][0x0]],_0x21fd9d['network']=_0x2670df(0x18a)+this[_0x2670df(0x1f0)]+_0x2670df(0x244)+_0x504d1e,_0x21fd9d[_0x2670df(0x1d0)]='projects/'+this[_0x2670df(0x1f0)]+_0x2670df(0x196)+global_registry[_0x2670df(0x1a8)]+_0x2670df(0x1b0)+_0x38ce1f[0x0];if(_0x80eaf9){if(_0xfdcc93[_0x2670df(0x133)](_0xfdcc93[_0x2670df(0x17d)],_0xfdcc93[_0x2670df(0x272)]))return[!![],_0x530a9e];else{const _0x377cac={};_0x377cac[_0x2670df(0x219)]=_0xfdcc93[_0x2670df(0x20d)],_0x21fd9d[_0x2670df(0x19e)]=_0x377cac;}}const _0x101187=await this[_0x2670df(0x12a)][_0x2670df(0x207)]({'cluster':_0x21fd9d,'parent':_0x2670df(0x18a)+this[_0x2670df(0x1f0)]+_0x2670df(0x201)+global_registry[_0x2670df(0x1a8)]});await this[_0x2670df(0x1ee)][_0x2670df(0x137)](_0xfdcc93[_0x2670df(0x187)](_0xfdcc93[_0x2670df(0x187)](0x7,0x3c),0x3e8));}else _0x5d5556['warn'](_0x91a329);}catch(_0x4bcc2c){if(_0xfdcc93[_0x2670df(0x1f2)](_0xfdcc93[_0x2670df(0x16e)],_0xfdcc93['VdycK']))_0x1e58b3[_0x2670df(0x21a)](_0x17383e);else{const _0x1047b5=await this[_0x2670df(0x109)]();_0x1047b5?_0xfdcc93[_0x2670df(0x133)](_0xfdcc93['HkMdA'],_0xfdcc93['HkMdA'])?(logger[_0x2670df(0x1f4)](_0xfdcc93[_0x2670df(0x18b)],_0x4bcc2c['stack']),await this[_0x2670df(0x221)]()):_0x1a9c3[_0x2670df(0x228)](_0x2ab6e9):_0xfdcc93['QPaRc'](_0xfdcc93[_0x2670df(0x27d)],_0xfdcc93[_0x2670df(0x163)])?logger[_0x2670df(0x1f4)](_0xfdcc93['Ivxjv']):_0x26e1e2[_0x2670df(0x23f)](_0x2670df(0x17c)+this[_0x2670df(0x1da)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+_0x48b381[_0x2670df(0x1a8)]+_0x2670df(0xff));throw _0x4bcc2c;}}}async[a3_0x3895d0(0x235)](_0x2c0c98,_0x4644c2,_0x55eef3,_0x6670ff,_0x4039ea){}async[a3_0x3895d0(0x134)](){const _0x3f060b=a3_0x3895d0;cp[_0x3f060b(0x23f)](_0x3f060b(0x17c)+this[_0x3f060b(0x1da)]+_0x3f060b(0x1c8)+global_registry['clusterRegion']+_0x3f060b(0xff));}async[a3_0x3895d0(0x221)](_0x3d9f01,_0x448071){const _0x165fcf=a3_0x3895d0,_0x2ffec6={'aWSEh':function(_0x340b8f,_0x437036){return _0x340b8f+_0x437036;},'dyMfO':function(_0x4bebd6,_0x2a67b3){return _0x4bebd6===_0x2a67b3;},'cvJSx':function(_0x308009,_0x3378e0){return _0x308009!==_0x3378e0;},'mskOp':_0x165fcf(0x239),'uVcxg':function(_0x3570a8,_0x257685){return _0x3570a8(_0x257685);},'mkFpW':function(_0x51bac4,_0x27ae90){return _0x51bac4(_0x27ae90);},'kPGQN':'RUNNING','KUcZX':function(_0x2749f0,_0x5da383){return _0x2749f0===_0x5da383;},'WzgTB':_0x165fcf(0x14c),'gyzzM':function(_0xb7fdc5,_0xe84d67){return _0xb7fdc5===_0xe84d67;},'gOPzA':_0x165fcf(0x105),'XJkBw':_0x165fcf(0x1df),'foKOv':_0x165fcf(0x11b),'eOYyc':_0x165fcf(0x127)};try{if(_0x2ffec6['cvJSx'](_0x2ffec6['mskOp'],_0x2ffec6[_0x165fcf(0x12b)]))_0x2146e3[_0x165fcf(0x260)]('['+_0x2ffec6[_0x165fcf(0x18c)](_0x5bb7d5,0x1)+']\x20'+_0x4ff7a4[_0x664f3e]);else{await _0x2ffec6[_0x165fcf(0x1fc)](deleteAgent,_0x3d9f01),await _0x2ffec6[_0x165fcf(0x1e0)](deleteRoutingDeps,_0x3d9f01),logger[_0x165fcf(0x1f4)]('Deleting\x20the\x20cluster\x20'+this[_0x165fcf(0x1da)]);const _0x19af0b=await this[_0x165fcf(0x12a)][_0x165fcf(0x221)]({'name':'projects/'+this['projectId']+_0x165fcf(0x201)+global_registry[_0x165fcf(0x1a8)]+_0x165fcf(0x251)+this[_0x165fcf(0x1da)]});if(_0x2ffec6[_0x165fcf(0x18f)](_0x19af0b[0x0]?.[_0x165fcf(0x26e)],_0x2ffec6[_0x165fcf(0x268)])||_0x2ffec6[_0x165fcf(0x1c9)](_0x19af0b[0x0]?.[_0x165fcf(0x26e)],_0x2ffec6[_0x165fcf(0x11a)])){if(_0x2ffec6['gyzzM'](_0x2ffec6['gOPzA'],_0x2ffec6[_0x165fcf(0x140)]))return!![];else{if(_0x2ffec6[_0x165fcf(0x18f)](_0xfbb6b8?.['name'],'projects/'+this[_0x165fcf(0x1f0)]+'/serviceAccounts/'+this[_0x165fcf(0x132)]+'@'+this[_0x165fcf(0x1f0)]+'.iam.gserviceaccount.com'))return!![];}}logger[_0x165fcf(0x1f4)](_0x2ffec6[_0x165fcf(0x19d)]);}}catch(_0x2d1c19){if(_0x2ffec6[_0x165fcf(0x1bc)](_0x2ffec6[_0x165fcf(0x212)],_0x2ffec6[_0x165fcf(0x212)])){logger[_0x165fcf(0x1f4)](_0x2ffec6['eOYyc']);throw _0x2d1c19;}else _0x446433[_0x165fcf(0x14f)][_0x165fcf(0x21a)](_0x10e3ad);}}async['isVPCPresent'](_0x565e66){const _0x5b525c=a3_0x3895d0,_0x4854c9={};_0x4854c9[_0x5b525c(0x142)]=function(_0x254ee6,_0x58047f){return _0x254ee6===_0x58047f;},_0x4854c9[_0x5b525c(0x255)]=function(_0x583b87,_0x235729){return _0x583b87!==_0x235729;},_0x4854c9[_0x5b525c(0x281)]=_0x5b525c(0x21c),_0x4854c9[_0x5b525c(0x17f)]=function(_0x5723fe,_0x54413c){return _0x5723fe>_0x54413c;},_0x4854c9[_0x5b525c(0x1b4)]=function(_0x476d9a,_0x4dad71){return _0x476d9a===_0x4dad71;},_0x4854c9[_0x5b525c(0x26a)]=_0x5b525c(0x278),_0x4854c9[_0x5b525c(0x1c7)]=_0x5b525c(0x1ec),_0x4854c9['Mbjhe']=function(_0x2aa8a4,_0x2ca7af){return _0x2aa8a4!==_0x2ca7af;},_0x4854c9[_0x5b525c(0x217)]='zESoa',_0x4854c9['ygXMN']='zcgGa';const _0x1d7cb5=_0x4854c9;try{if(_0x1d7cb5[_0x5b525c(0x142)](_0x1d7cb5[_0x5b525c(0x281)],_0x1d7cb5[_0x5b525c(0x281)])){const _0x475ab7=await this[_0x5b525c(0x166)][_0x5b525c(0x28d)]({'project':this[_0x5b525c(0x1f0)],'network':_0x565e66});if(_0x1d7cb5['WraFz'](_0x475ab7[_0x5b525c(0x1a0)],0x0)&&_0x1d7cb5[_0x5b525c(0x1b4)](_0x475ab7[0x0]['name'],_0x565e66)){if(_0x1d7cb5[_0x5b525c(0x255)](_0x1d7cb5['OhECW'],_0x1d7cb5[_0x5b525c(0x1c7)]))return!![];else _0x1d7cb5[_0x5b525c(0x142)](_0x18e675[_0x5b525c(0x1d9)],this['clusterName'])&&_0x5354e3[_0x5b525c(0x21a)](_0x5a84a8);}}else return![];}catch(_0x1885a2){return _0x1d7cb5['Mbjhe'](_0x1d7cb5[_0x5b525c(0x217)],_0x1d7cb5[_0x5b525c(0x288)])?![]:(_0x1d7cb5[_0x5b525c(0x255)](_0x44b14c[_0x5b525c(0x1a8)],_0x57d856[0x0])&&(_0x483ee2[_0x5b525c(0x1a8)]=_0x45695d[0x0],this[_0x5b525c(0x1eb)]()),!![]);}return![];}async[a3_0x3895d0(0x280)](_0x52a511,_0x2f44a1){const _0xb0d948=a3_0x3895d0,_0x16a6aa={};_0x16a6aa[_0xb0d948(0x15f)]=_0xb0d948(0x279),_0x16a6aa[_0xb0d948(0x148)]=_0xb0d948(0x11c),_0x16a6aa['MdUXN']=function(_0x3525a7,_0xa515ea){return _0x3525a7===_0xa515ea;},_0x16a6aa[_0xb0d948(0x20e)]=_0xb0d948(0x107),_0x16a6aa[_0xb0d948(0x1dc)]='PJTMQ',_0x16a6aa[_0xb0d948(0x1ed)]='mFrjD',_0x16a6aa[_0xb0d948(0x14e)]=_0xb0d948(0x1d4),_0x16a6aa['WrDSI']='gOZyz',_0x16a6aa[_0xb0d948(0x150)]=function(_0x415fba,_0x38368b){return _0x415fba===_0x38368b;},_0x16a6aa[_0xb0d948(0x172)]=function(_0x4946c3,_0xcc26a3){return _0x4946c3!==_0xcc26a3;},_0x16a6aa[_0xb0d948(0x19c)]=_0xb0d948(0x154),_0x16a6aa['PwkBR']='NNxdU',_0x16a6aa[_0xb0d948(0x238)]='AjIAC';const _0x4776c5=_0x16a6aa;try{if(_0x4776c5[_0xb0d948(0x10a)](_0x4776c5[_0xb0d948(0x1dc)],_0x4776c5['TtYar']))return _0x214f1f[_0xb0d948(0x25a)](_0xb0d948(0x26c)+_0x46e475+_0xb0d948(0x194)+_0xea44c),[![],[]];else{const _0x7cb0ff=await this[_0xb0d948(0x166)][_0xb0d948(0x28d)]({'project':this[_0xb0d948(0x1f0)],'network':_0x2f44a1});for(const _0x2a5dd5 of _0x7cb0ff[0x0][_0xb0d948(0x123)]){if(_0x4776c5['MdUXN'](_0x4776c5['gDVOZ'],_0x4776c5['WrDSI']))_0x2acf9e[_0xb0d948(0x25a)](_0xb0d948(0x112)+_0x1b860+_0xb0d948(0x144)+_0xbc5a9b[_0xb0d948(0x1b2)]),_0x49d47f[_0xb0d948(0x283)]=_0xb0d948(0x13f)+_0x4e4d80,_0xb7e803[_0xb0d948(0x25a)]=_0x341acd;else{const _0x46f00c=_0xb0d948(0x185)+this[_0xb0d948(0x1f0)]+_0xb0d948(0x196)+global_registry[_0xb0d948(0x1a8)]+_0xb0d948(0x1b0)+_0x52a511[0x0];if(_0x4776c5[_0xb0d948(0x150)](_0x46f00c,_0x2a5dd5)){if(_0x4776c5[_0xb0d948(0x172)](_0x4776c5[_0xb0d948(0x19c)],_0x4776c5[_0xb0d948(0xfe)]))return[!![],_0x52a511];else{const _0x3bef12=_0x384cd8[_0xb0d948(0x110)][_0xb0d948(0x159)](_0x35afc9);_0x44f8a6+='\x0a\x09'+_0xde26c8+_0xb0d948(0x144)+(_0x3bef12?_0x4776c5[_0xb0d948(0x15f)]:_0x4776c5[_0xb0d948(0x148)]),!_0x3bef12&&(_0x30a04a[_0xb0d948(0x26e)]=![]);}}}}}}catch(_0x3f6987){if(_0x4776c5[_0xb0d948(0x172)](_0x4776c5[_0xb0d948(0x238)],_0x4776c5['dnHkt'])){const _0x4adb8d=_0x145edf[0x0]?.['resourceLabels']?.[_0xb0d948(0x1a4)];return _0x4adb8d&&_0x4776c5[_0xb0d948(0x10a)](_0x4adb8d[_0xb0d948(0x13e)](),_0x4776c5[_0xb0d948(0x20e)]);}else return logger['error'](_0xb0d948(0x26c)+_0x52a511+'.\x20Error:\x20'+_0x3f6987),[![],[]];}return[![],[]];}async[a3_0x3895d0(0x250)](){const _0x5e871b=a3_0x3895d0,_0x298043={};_0x298043['meMCV']=function(_0x3d8180,_0xa5fc41){return _0x3d8180===_0xa5fc41;},_0x298043[_0x5e871b(0x1c2)]=_0x5e871b(0x262),_0x298043[_0x5e871b(0x120)]=_0x5e871b(0x28e);const _0x45490a=_0x298043,_0x198b28=await this[_0x5e871b(0x166)][_0x5e871b(0x22a)]({'project':this['projectId']}),_0x1aae9b={};_0x1aae9b['username']=global_registry[_0x5e871b(0x195)],_0x1aae9b[_0x5e871b(0x173)]=global_registry[_0x5e871b(0x1fb)],_0x1aae9b[_0x5e871b(0x104)]=GCP,_0x1aae9b[_0x5e871b(0x14f)]=[];const _0xaa9280=_0x1aae9b;for(const _0x7b8189 of _0x198b28){if(_0x45490a[_0x5e871b(0x210)](_0x45490a[_0x5e871b(0x1c2)],_0x45490a[_0x5e871b(0x120)]))return![];else _0xaa9280[_0x5e871b(0x14f)][_0x5e871b(0x21a)](_0x7b8189);}const _0x51aad0={};_0x51aad0[_0x5e871b(0x149)]=WS_EVENTS[_0x5e871b(0x190)],_0x51aad0[_0x5e871b(0x1a5)]=_0xaa9280,this[_0x5e871b(0x1ee)][_0x5e871b(0x1aa)](this[_0x5e871b(0x147)],_0x51aad0);}async[a3_0x3895d0(0x1eb)](){const _0x5856d5=a3_0x3895d0,_0x450b5f={'LzNKQ':function(_0x46f898,_0x58e7f6,_0x1ab8df){return _0x46f898(_0x58e7f6,_0x1ab8df);},'uIuBO':_0x5856d5(0x15b),'vwLvZ':'json','ncSou':function(_0x467171,_0x15167b,_0x4ab3a3){return _0x467171(_0x15167b,_0x4ab3a3);}},_0x5f5cf8=_0x5856d5(0x264)+AG_API_URL+'/packages/cli/update-cluster-region',_0x37f3b1={};_0x37f3b1['profileId']=global_registry[_0x5856d5(0x15a)];const _0x255790={};_0x255790[_0x5856d5(0x242)]=global_registry[_0x5856d5(0x1a8)];const _0x292de0={'searchParams':_0x37f3b1,'json':_0x255790,'headers':_0x450b5f[_0x5856d5(0x22e)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x5856d5(0x1fb)]),'method':_0x450b5f[_0x5856d5(0x152)],'responseType':_0x450b5f[_0x5856d5(0x1d2)],'throwHttpErrors':![]},_0x4ec5bb=await _0x450b5f[_0x5856d5(0x164)](got,_0x5f5cf8,_0x292de0);}async[a3_0x3895d0(0x26f)](){const _0x614942=a3_0x3895d0,_0x626abf={'OUQlL':function(_0x4753a6,_0x723e4e){return _0x4753a6(_0x723e4e);},'GEQIs':'gcloud\x20--version','aBdRY':_0x614942(0x1ad),'DmBVR':'cli\x20tool\x20is\x20installed'},_0x332a89={};_0x332a89[_0x614942(0x26e)]=![],_0x332a89['error']=null,_0x332a89[_0x614942(0x283)]='';const _0x309ecf=_0x332a89;try{const _0x87edd1=await _0x626abf[_0x614942(0x208)](runCommand,_0x626abf[_0x614942(0x286)]);_0x87edd1[_0x614942(0x141)](_0x626abf[_0x614942(0x275)])?logger[_0x614942(0x265)](_0x87edd1):logger[_0x614942(0x228)](_0x87edd1),_0x309ecf[_0x614942(0x26e)]=!![],_0x309ecf[_0x614942(0x283)]=_0x626abf[_0x614942(0x165)];}catch(_0x43b48a){logger[_0x614942(0x25a)](_0x614942(0x112)+_0x43b48a+_0x614942(0x144)+_0x43b48a[_0x614942(0x1b2)]),_0x309ecf[_0x614942(0x283)]=_0x614942(0x13f)+_0x43b48a,_0x309ecf[_0x614942(0x25a)]=_0x43b48a;}return _0x309ecf;}async['checkAccess'](){const _0x1cb39f=a3_0x3895d0,_0x1600eb={};_0x1600eb[_0x1cb39f(0x25f)]='allowed',_0x1600eb['PTzHT']='denied';const _0x29d0d7=_0x1600eb,_0x3d9f5a={};_0x3d9f5a['status']=![],_0x3d9f5a[_0x1cb39f(0x25a)]=null,_0x3d9f5a['data']='';const _0x317179=_0x3d9f5a;try{let _0x59ff82='';const _0x622ef3='projects/'+this['projectId'],[_0x38969b]=await this['resourcemanagerClient']['testIamPermissions']({'resource':_0x622ef3,'permissions':Object['keys'](PERMISSIONS)});_0x317179[_0x1cb39f(0x26e)]=!![],logger[_0x1cb39f(0x228)]('permissions\x20check\x20response\x20for\x20'+_0x622ef3+':\x20'+JSON[_0x1cb39f(0x125)](_0x38969b)),Object['entries'](PERMISSIONS)[_0x1cb39f(0x12c)](([_0xe9d699,_0x133b50])=>{const _0x362396=_0x1cb39f,_0x4ccb65=_0x38969b[_0x362396(0x110)][_0x362396(0x159)](_0xe9d699);_0x59ff82+='\x0a\x09'+_0x133b50+'\x20:\x20'+(_0x4ccb65?_0x29d0d7[_0x362396(0x25f)]:_0x29d0d7['PTzHT']),!_0x4ccb65&&(_0x317179['status']=![]);}),_0x317179[_0x1cb39f(0x283)]=_0x59ff82;}catch(_0x52d51a){_0x317179[_0x1cb39f(0x25a)]=_0x52d51a;}return _0x317179;}}function a3_0x4ef1(_0x3c1138,_0x753bd4){const _0xbad12f=a3_0xbad1();return a3_0x4ef1=function(_0x4ef1b4,_0x2050dd){_0x4ef1b4=_0x4ef1b4-0xfb;let _0x66763c=_0xbad12f[_0x4ef1b4];return _0x66763c;},a3_0x4ef1(_0x3c1138,_0x753bd4);}const a3_0x2d5a89={};a3_0x2d5a89['GoogleCloudProvider']=GoogleCloudProvider,module[a3_0x3895d0(0x24e)]=a3_0x2d5a89;
@@ -1 +1 @@
1
- function a4_0x1dc6(_0x3b2bd5,_0x13b5c1){const _0xd34ff3=a4_0xd34f();return a4_0x1dc6=function(_0x1dc6e1,_0x324c85){_0x1dc6e1=_0x1dc6e1-0xe1;let _0x5bf84d=_0xd34ff3[_0x1dc6e1];return _0x5bf84d;},a4_0x1dc6(_0x3b2bd5,_0x13b5c1);}const a4_0x3a18da=a4_0x1dc6;(function(_0xf45873,_0x4a65eb){const _0x30aac3=a4_0x1dc6,_0x2f9d92=_0xf45873();while(!![]){try{const _0x3904f9=-parseInt(_0x30aac3(0xef))/0x1*(-parseInt(_0x30aac3(0xf1))/0x2)+parseInt(_0x30aac3(0xfb))/0x3+parseInt(_0x30aac3(0x101))/0x4+-parseInt(_0x30aac3(0xf5))/0x5+parseInt(_0x30aac3(0xf8))/0x6+parseInt(_0x30aac3(0xe7))/0x7+-parseInt(_0x30aac3(0xf7))/0x8*(parseInt(_0x30aac3(0x102))/0x9);if(_0x3904f9===_0x4a65eb)break;else _0x2f9d92['push'](_0x2f9d92['shift']());}catch(_0x33ebaa){_0x2f9d92['push'](_0x2f9d92['shift']());}}}(a4_0xd34f,0x2d108));function a4_0xd34f(){const _0xe97dbe=['Unknown\x20cloud\x20provider\x20found\x20-\x20','ujids','CVvqr','create-grid-called','702359jcRCEq','Tyhll','error','./Azure','versions','./GoogleCloudProvider','../config/constants','getCloudProviderObject','56TAOKaD','stack','4838KnHBPv','getCloudProviderObjectWithOutInit','node','\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.','935350ENMRrT','gHTqE','152632oooynI','313626ftfWGb','exit','init','981591kObifo',',\x20stacktrace:\x20','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20','ClSgz','ERROR','hqtnt','170280nbPOFx','135fTbMSS','../utils/utilityMethods','grid-spawning-failed','qdmwd'];a4_0xd34f=function(){return _0xe97dbe;};return a4_0xd34f();}const {AWSCloudProvider}=require('./AWS'),{GoogleCloudProvider}=require(a4_0x3a18da(0xec)),{installAzurePackages,IsNodeCompatibleWithAzure}=require(a4_0x3a18da(0x103)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x3a18da(0xed)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),{logger}=require('../config/logger');exports[a4_0x3a18da(0xee)]=async(_0x2e1ed1,_0x1b307c,_0x13dbaf,_0x47647a,_0x25b3cf,_0x23bd32)=>{const _0x15bbe7=a4_0x3a18da,_0x1b1ac0={'CVvqr':function(_0x4b20ea){return _0x4b20ea();},'CkEwp':function(_0xf341b,_0x22f879){return _0xf341b(_0x22f879);},'gHTqE':_0x15bbe7(0xea),'OwifF':function(_0xf5a0b4,_0x564e05,_0x54c26f,_0x2a8d8f,_0x4f214f,_0x301887,_0x2286de){return _0xf5a0b4(_0x564e05,_0x54c26f,_0x2a8d8f,_0x4f214f,_0x301887,_0x2286de);},'ClSgz':_0x15bbe7(0xe6),'Tyhll':_0x15bbe7(0xe1)};switch(_0x2e1ed1){case AWS:{const _0x3d7a9e=new AWSCloudProvider(_0x1b307c,_0x13dbaf,_0x47647a,_0x25b3cf);return await _0x3d7a9e[_0x15bbe7(0xfa)]();}case GCP:{const _0xb2b2a8=new GoogleCloudProvider(_0x1b307c,_0x13dbaf,_0x47647a,_0x25b3cf);return await _0xb2b2a8[_0x15bbe7(0xfa)]();}case AZURE:{try{await _0x1b1ac0[_0x15bbe7(0xe5)](installAzurePackages);const {AzureCloudProvider:_0x25ba6d}=_0x1b1ac0['CkEwp'](require,_0x1b1ac0[_0x15bbe7(0xf6)]),_0x251fb2=new _0x25ba6d(_0x1b307c,_0x13dbaf,_0x47647a,_0x25b3cf);return await _0x251fb2[_0x15bbe7(0xfa)]();}catch(_0x112801){const _0x221fee='Current\x20Node.js\x20version\x20'+process[_0x15bbe7(0xeb)][_0x15bbe7(0xf3)]+_0x15bbe7(0xfd)+_0x112801['message']+_0x15bbe7(0xfc)+_0x112801[_0x15bbe7(0xf0)];logger[_0x15bbe7(0xe9)](_0x221fee);const _0x3a068d={};_0x3a068d[_0x15bbe7(0xe9)]=_0x221fee,await _0x1b1ac0['OwifF'](sendInstrumentationEvent,_0x23bd32,_0x1b1ac0[_0x15bbe7(0xfe)],messageTypes[_0x15bbe7(0xff)],_0x1b1ac0[_0x15bbe7(0xe8)],_0x3a068d,_0x23bd32),process['exit'](0x1);}}default:logger[_0x15bbe7(0xe9)](_0x15bbe7(0xe3)+_0x2e1ed1),process['exit'](0x1);}},exports[a4_0x3a18da(0xf2)]=async(_0xc3c401,_0x3d6266,_0x44fc52,_0x2d2540,_0x124efb,_0x5cc159)=>{const _0x513c37=a4_0x3a18da,_0x3f106e={'ujids':function(_0x3d873f){return _0x3d873f();},'hqtnt':function(_0x1e217c,_0x232a22){return _0x1e217c(_0x232a22);},'qdmwd':_0x513c37(0xea)};switch(_0xc3c401){case AWS:return new AWSCloudProvider(_0x3d6266,_0x44fc52,_0x2d2540,_0x124efb);case GCP:return new GoogleCloudProvider(_0x3d6266,_0x44fc52,_0x2d2540,_0x124efb);case AZURE:{!_0x3f106e[_0x513c37(0xe4)](IsNodeCompatibleWithAzure)&&(logger['error']('Current\x20Node.js\x20version\x20'+process[_0x513c37(0xeb)][_0x513c37(0xf3)]+_0x513c37(0xf4)),process[_0x513c37(0xf9)](0x1));await _0x3f106e['ujids'](installAzurePackages);const {AzureCloudProvider:_0x25c4db}=_0x3f106e[_0x513c37(0x100)](require,_0x3f106e[_0x513c37(0xe2)]);return new _0x25c4db(_0x3d6266,_0x44fc52,_0x2d2540,_0x124efb);}default:logger[_0x513c37(0xe9)](_0x513c37(0xe3)+_0xc3c401),process[_0x513c37(0xf9)](0x1);}};
1
+ function a4_0x32ab(_0x5a3a35,_0x480725){const _0x227d70=a4_0x227d();return a4_0x32ab=function(_0x32abcd,_0x23fe75){_0x32abcd=_0x32abcd-0x1e9;let _0x5eb6b5=_0x227d70[_0x32abcd];return _0x5eb6b5;},a4_0x32ab(_0x5a3a35,_0x480725);}const a4_0x3ca3a2=a4_0x32ab;function a4_0x227d(){const _0x384d40=[',\x20stacktrace:\x20','Current\x20Node.js\x20version\x20','Unknown\x20cloud\x20provider\x20found\x20-\x20','AdYsn','./Azure','../utils/utilityMethods','7QAbNSr','error','kcZFP','209104AyUyqw','init','node','1881042whurGI','261700fTpUFp','lxxvG','message','getCloudProviderObjectWithOutInit','14yCtpMl','Dfnpm','exit','99745bQZKzK','versions','stack','NBode','jnHbi','grid-spawning-failed','create-grid-called','getCloudProviderObject','6601734lryhAw','ERROR','2306888vRoNsy','84879JYoHXI','sxQdT','sOfuw'];a4_0x227d=function(){return _0x384d40;};return a4_0x227d();}(function(_0x477818,_0xe561d4){const _0x16305e=a4_0x32ab,_0x395d63=_0x477818();while(!![]){try{const _0x2316c3=-parseInt(_0x16305e(0x1ee))/0x1+-parseInt(_0x16305e(0x1f2))/0x2*(parseInt(_0x16305e(0x200))/0x3)+-parseInt(_0x16305e(0x1ea))/0x4+-parseInt(_0x16305e(0x1f5))/0x5+parseInt(_0x16305e(0x1ed))/0x6*(-parseInt(_0x16305e(0x209))/0x7)+parseInt(_0x16305e(0x1ff))/0x8+parseInt(_0x16305e(0x1fd))/0x9;if(_0x2316c3===_0xe561d4)break;else _0x395d63['push'](_0x395d63['shift']());}catch(_0x5a1a33){_0x395d63['push'](_0x395d63['shift']());}}}(a4_0x227d,0x2b114));const {AWSCloudProvider}=require('./AWS'),{GoogleCloudProvider}=require('./GoogleCloudProvider'),{installAzurePackages,IsNodeCompatibleWithAzure}=require(a4_0x3ca3a2(0x208)),{AWS,AZURE,GCP,messageTypes}=require('../config/constants'),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),{logger}=require('../config/logger');exports[a4_0x3ca3a2(0x1fc)]=async(_0x3682d0,_0x9a5ee1,_0x28f858,_0x2f54b4,_0x2e3731,_0x3c6677)=>{const _0x48dce9=a4_0x3ca3a2,_0x4157aa={'hnGRm':function(_0x4260b4){return _0x4260b4();},'NBode':function(_0x4a0e66,_0x3075eb){return _0x4a0e66(_0x3075eb);},'jnHbi':'./Azure','QasjS':function(_0x2bae6e,_0x503966,_0x10c7ee,_0xaaa737,_0x22ed53,_0x20c5a5,_0x254225){return _0x2bae6e(_0x503966,_0x10c7ee,_0xaaa737,_0x22ed53,_0x20c5a5,_0x254225);},'kcZFP':_0x48dce9(0x1fb),'sOfuw':_0x48dce9(0x1fa)};switch(_0x3682d0){case AWS:{const _0x4b13b8=new AWSCloudProvider(_0x9a5ee1,_0x28f858,_0x2f54b4,_0x2e3731);return await _0x4b13b8[_0x48dce9(0x1eb)]();}case GCP:{const _0x321b79=new GoogleCloudProvider(_0x9a5ee1,_0x28f858,_0x2f54b4,_0x2e3731);return await _0x321b79[_0x48dce9(0x1eb)]();}case AZURE:{try{await _0x4157aa['hnGRm'](installAzurePackages);const {AzureCloudProvider:_0x1834d5}=_0x4157aa[_0x48dce9(0x1f8)](require,_0x4157aa[_0x48dce9(0x1f9)]),_0x3313f1=new _0x1834d5(_0x9a5ee1,_0x28f858,_0x2f54b4,_0x2e3731);return await _0x3313f1[_0x48dce9(0x1eb)]();}catch(_0x25ae7){const _0x2009f5=_0x48dce9(0x204)+process[_0x48dce9(0x1f6)][_0x48dce9(0x1ec)]+'\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20'+_0x25ae7[_0x48dce9(0x1f0)]+_0x48dce9(0x203)+_0x25ae7[_0x48dce9(0x1f7)];logger['error'](_0x2009f5);const _0x4eebc6={};_0x4eebc6[_0x48dce9(0x20a)]=_0x2009f5,await _0x4157aa['QasjS'](sendInstrumentationEvent,_0x3c6677,_0x4157aa[_0x48dce9(0x1e9)],messageTypes[_0x48dce9(0x1fe)],_0x4157aa[_0x48dce9(0x202)],_0x4eebc6,_0x3c6677),process[_0x48dce9(0x1f4)](0x1);}}default:logger[_0x48dce9(0x20a)](_0x48dce9(0x205)+_0x3682d0),process[_0x48dce9(0x1f4)](0x1);}},exports[a4_0x3ca3a2(0x1f1)]=async(_0xd83ba7,_0x1c678b,_0x9152b3,_0x10b668,_0x1778b9,_0x484034)=>{const _0xc82bf1=a4_0x3ca3a2,_0x4e6f1f={'Dfnpm':function(_0x536f2d){return _0x536f2d();},'sxQdT':function(_0x2ac7d4){return _0x2ac7d4();},'lxxvG':function(_0x4bd64e,_0x34213a){return _0x4bd64e(_0x34213a);},'AdYsn':_0xc82bf1(0x207)};switch(_0xd83ba7){case AWS:return new AWSCloudProvider(_0x1c678b,_0x9152b3,_0x10b668,_0x1778b9);case GCP:return new GoogleCloudProvider(_0x1c678b,_0x9152b3,_0x10b668,_0x1778b9);case AZURE:{!_0x4e6f1f[_0xc82bf1(0x1f3)](IsNodeCompatibleWithAzure)&&(logger['error'](_0xc82bf1(0x204)+process[_0xc82bf1(0x1f6)][_0xc82bf1(0x1ec)]+'\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.'),process[_0xc82bf1(0x1f4)](0x1));await _0x4e6f1f[_0xc82bf1(0x201)](installAzurePackages);const {AzureCloudProvider:_0x1a0f0e}=_0x4e6f1f[_0xc82bf1(0x1ef)](require,_0x4e6f1f[_0xc82bf1(0x206)]);return new _0x1a0f0e(_0x1c678b,_0x9152b3,_0x10b668,_0x1778b9);}default:logger[_0xc82bf1(0x20a)](_0xc82bf1(0x205)+_0xd83ba7),process[_0xc82bf1(0x1f4)](0x1);}};
@@ -1 +1 @@
1
- const a5_0x405d12=a5_0x13f0;(function(_0x4030e2,_0x61f888){const _0x47f31b=a5_0x13f0,_0x5efc6d=_0x4030e2();while(!![]){try{const _0x18f2dc=-parseInt(_0x47f31b(0x203))/0x1+parseInt(_0x47f31b(0x1d8))/0x2*(parseInt(_0x47f31b(0x1f4))/0x3)+-parseInt(_0x47f31b(0x1d2))/0x4+-parseInt(_0x47f31b(0x1b4))/0x5+parseInt(_0x47f31b(0x1c3))/0x6*(-parseInt(_0x47f31b(0x1f2))/0x7)+parseInt(_0x47f31b(0x1f7))/0x8+-parseInt(_0x47f31b(0x205))/0x9*(-parseInt(_0x47f31b(0x1b7))/0xa);if(_0x18f2dc===_0x61f888)break;else _0x5efc6d['push'](_0x5efc6d['shift']());}catch(_0x22052e){_0x5efc6d['push'](_0x5efc6d['shift']());}}}(a5_0x116b,0xc1253));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a5_0x405d12(0x1ce)),{inputConfirmation,closeInput}=require(a5_0x405d12(0x211)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x405d12(0x217)),{getCredentialsPath,getAuthHeader}=require(a5_0x405d12(0x1e2)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');function a5_0x116b(){const _0x14fa12=['chPcB','uuid','xbxUQ','epilogue','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','1676916MKFenO','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','command','pICaS','GheSQ','\x20\x20grid-profile:\x20','4318LgPqEW','AWpvm','Xgtun','error','maJGf','stringify','nVIEd','NYtyv','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','RDrOz','../utils/utilityMethods','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','exit','mbQyc','OeYSo','\x20\x20username:\x20','lRidW','statusCode','akpdZ','CtPsy','username','length','log','WzcVe','SVPUU','4422411pyZdyv','invalid-selection','660tXluFS','oyPlC','NCaKX','4423688BZRgXM','profileId','psBCN','Updated\x20default\x20Grid\x20Profile\x20successfully','usage','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','pnGso','KKgfM','body','help','core:','736581QodSqv','kGQly','2682BgJFIV','QZwWx','active','PUT','stack','argv','handler','DuGGc','rrJic','gmdMr','oPNUK','builder','../utils/userInput','RZELb','QFhpr','recommendCommands','ERROR','configure','../config/constants','desc','parse','5347745DfSMBZ','unknown-error','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','87930PIHMCF','suXZI','init-not-called','GET','TirUp','Browserstack','luBFj','password','rvORh','name','json','RQnWV','6zjmPEt','toLowerCase','list','KVgag','PmXel','YZEFp','jfxaY','uIVej','requestId','readFileSync'];a5_0x116b=function(){return _0x14fa12;};return a5_0x116b();}function a5_0x13f0(_0x2125a1,_0x3ac21e){const _0x116b00=a5_0x116b();return a5_0x13f0=function(_0x13f0aa,_0x8e8b4b){_0x13f0aa=_0x13f0aa-0x1b4;let _0x4b774d=_0x116b00[_0x13f0aa];return _0x4b774d;},a5_0x13f0(_0x2125a1,_0x3ac21e);}exports[a5_0x405d12(0x1d4)]=a5_0x405d12(0x216),exports[a5_0x405d12(0x218)]=a5_0x405d12(0x1e0),exports[a5_0x405d12(0x210)]=function(_0x45fe41){const _0xc19121=a5_0x405d12,_0x1d83ef={};_0x1d83ef[_0xc19121(0x1da)]=_0xc19121(0x201);const _0x182a6f=_0x1d83ef;return _0x45fe41[_0xc19121(0x1fb)](HELP_HEADER_MESSAGE[_0xc19121(0x216)])[_0xc19121(0x1d0)](HELP_FOOTER_MESSAGE)[_0xc19121(0x201)](_0x182a6f['Xgtun'])[_0xc19121(0x214)]()['strict']()[_0xc19121(0x20a)];},exports[a5_0x405d12(0x20b)]=async function(_0xc4c98d){const _0x50bf38=a5_0x405d12,_0x48c021={'rvORh':function(_0x102f49){return _0x102f49();},'vOxfS':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yIQkw':function(_0x2566ae,_0x249ef2,_0x875ef0,_0x5533ac,_0x594808,_0x2b1165,_0x9d74d8){return _0x2566ae(_0x249ef2,_0x875ef0,_0x5533ac,_0x594808,_0x2b1165,_0x9d74d8);},'WzcVe':'configure-called','sUJJs':_0x50bf38(0x1b9),'lRidW':function(_0x4530a6,_0x1ee041,_0xce1072,_0x242eca,_0x203e3f,_0x52605a,_0x4af509){return _0x4530a6(_0x1ee041,_0xce1072,_0x242eca,_0x203e3f,_0x52605a,_0x4af509);},'SVPUU':_0x50bf38(0x1ba),'CtPsy':function(_0xaf7d07,_0x323dee,_0x5054cb){return _0xaf7d07(_0x323dee,_0x5054cb);},'oPNUK':function(_0x4ebac2,_0x25e2d7,_0x5602a5){return _0x4ebac2(_0x25e2d7,_0x5602a5);},'kGQly':function(_0x4313e6,_0xf09bce){return _0x4313e6!==_0xf09bce;},'pICaS':function(_0x38805d,_0x3c5b1a){return _0x38805d!==_0x3c5b1a;},'jfxaY':function(_0x5a6092,_0x5ce83){return _0x5a6092===_0x5ce83;},'maJGf':_0x50bf38(0x1d1),'psBCN':_0x50bf38(0x202),'mbQyc':function(_0x3bfed1,_0x54271f){return _0x3bfed1(_0x54271f);},'chPcB':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','suXZI':function(_0x3967ca,_0x515271){return _0x3967ca===_0x515271;},'OeYSo':function(_0x9575fc,_0x5372ac){return _0x9575fc===_0x5372ac;},'pnGso':function(_0x1ae720,_0x190588){return _0x1ae720===_0x190588;},'xbxUQ':_0x50bf38(0x1fd),'RZELb':function(_0x2a43c3,_0xf7d811,_0x3106b1,_0x4d8ce4,_0x192a48,_0x254606,_0x41cfe6){return _0x2a43c3(_0xf7d811,_0x3106b1,_0x4d8ce4,_0x192a48,_0x254606,_0x41cfe6);},'uIVej':'invalid-input','gmdMr':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','VeCZY':function(_0x687301,_0x1fd264){return _0x687301<_0x1fd264;},'TirUp':function(_0x3cb7b9,_0x2e793e){return _0x3cb7b9+_0x2e793e;},'YZEFp':function(_0x26146b,_0x4d2edc){return _0x26146b(_0x4d2edc);},'QwSOk':_0x50bf38(0x1d3),'NYtyv':function(_0x275bac,_0x579efb){return _0x275bac(_0x579efb);},'Ctgsh':function(_0x31f831,_0xbb0d65){return _0x31f831<=_0xbb0d65;},'NCaKX':function(_0x213be4,_0x2eeab3){return _0x213be4>_0x2eeab3;},'akpdZ':_0x50bf38(0x1f3),'KVgag':function(_0x41d02f){return _0x41d02f();},'PmXel':function(_0x5c9d58,_0x196211){return _0x5c9d58-_0x196211;},'AWpvm':_0x50bf38(0x208),'RDrOz':function(_0x212c81,_0x5376b6,_0x4fbc6e){return _0x212c81(_0x5376b6,_0x4fbc6e);},'oyPlC':_0x50bf38(0x1c1),'RQnWV':function(_0x1cf4af,_0x5530aa,_0x42e1e7){return _0x1cf4af(_0x5530aa,_0x42e1e7);},'nVIEd':function(_0x361e5e,_0x39d85c){return _0x361e5e!==_0x39d85c;},'vJaEN':function(_0x7409ee,_0x2a79df){return _0x7409ee!==_0x2a79df;},'rrJic':_0x50bf38(0x1fa),'DuGGc':_0x50bf38(0x1e3),'QFhpr':'unauthorised','xVnTT':function(_0x5872cf,_0x358e68,_0x5c286,_0x3826bc,_0x133511,_0x46ba40,_0x51022f){return _0x5872cf(_0x358e68,_0x5c286,_0x3826bc,_0x133511,_0x46ba40,_0x51022f);},'GheSQ':'server-error','luBFj':_0x50bf38(0x1b6),'KKgfM':function(_0x55418e,_0x3b22c7,_0x880ca3,_0x46abea,_0x5ee6fd,_0x4315f3,_0x5c8667){return _0x55418e(_0x3b22c7,_0x880ca3,_0x46abea,_0x5ee6fd,_0x4315f3,_0x5c8667);},'QZwWx':function(_0x589953,_0x1c6a7d,_0x17bf66,_0x4b007c,_0x13a991,_0x589ba0,_0x1dc688){return _0x589953(_0x1c6a7d,_0x17bf66,_0x4b007c,_0x13a991,_0x589ba0,_0x1dc688);},'nusgd':_0x50bf38(0x1b5)};try{global_registry[_0x50bf38(0x1cb)]=_0x48c021[_0x50bf38(0x1bf)](uuidv4);const _0x455402='https://'+AG_API_URL+'/packages/cli/configure';!fs['existsSync'](_0x48c021[_0x50bf38(0x1bf)](getCredentialsPath))&&(console[_0x50bf38(0x1db)](_0x48c021['vOxfS']),await _0x48c021['yIQkw'](sendInstrumentationEvent,_0xc4c98d,_0x48c021['WzcVe'],messageTypes['ERROR'],_0x48c021['sUJJs'],null,_0xc4c98d),process['exit'](0x1));await _0x48c021[_0x50bf38(0x1e9)](sendInstrumentationEvent,_0xc4c98d,_0x48c021[_0x50bf38(0x1f0)],messageTypes['INFO'],null,null,_0xc4c98d);const _0x191eaa=JSON[_0x50bf38(0x219)](fs[_0x50bf38(0x1cc)](_0x48c021[_0x50bf38(0x1bf)](getCredentialsPath))),_0x31302a={'method':_0x48c021[_0x50bf38(0x1f1)],'headers':_0x48c021[_0x50bf38(0x1ec)](getAuthHeader,_0x191eaa[_0x50bf38(0x1bc)][_0x50bf38(0x1ed)],_0x191eaa[_0x50bf38(0x1bc)][_0x50bf38(0x1be)]),'throwHttpErrors':![]},_0x2f741c=await _0x48c021[_0x50bf38(0x20f)](got,_0x455402,_0x31302a);if(_0x48c021[_0x50bf38(0x204)](_0x2f741c,null)&&_0x48c021[_0x50bf38(0x1d5)](_0x2f741c,undefined)&&_0x48c021[_0x50bf38(0x1c9)](_0x2f741c[_0x50bf38(0x1ea)],0xc8)){const _0xacd76c=JSON[_0x50bf38(0x219)](_0x2f741c[_0x50bf38(0x200)]);console[_0x50bf38(0x1ef)](_0x48c021[_0x50bf38(0x1dc)]),console['log'](_0x48c021[_0x50bf38(0x1f9)]),console[_0x50bf38(0x1ef)](_0x50bf38(0x1e8)+_0x191eaa[_0x50bf38(0x1bc)][_0x50bf38(0x1ed)]),console['log'](_0x50bf38(0x1d7)+_0xacd76c[_0x50bf38(0x207)]['name']);const _0x517856=await _0x48c021[_0x50bf38(0x1e6)](inputConfirmation,_0x48c021[_0x50bf38(0x1cd)]);(_0x48c021[_0x50bf38(0x1c9)](_0x517856,undefined)||_0x48c021[_0x50bf38(0x1b8)](_0x517856,null)||!(_0x48c021[_0x50bf38(0x1e7)](_0x517856[_0x50bf38(0x1c4)](),'y')||_0x48c021['pnGso'](_0x517856[_0x50bf38(0x1c4)](),'n')))&&(console[_0x50bf38(0x1db)](_0x48c021['xbxUQ']),await _0x48c021[_0x50bf38(0x212)](sendInstrumentationEvent,_0xc4c98d,_0x48c021[_0x50bf38(0x1f0)],messageTypes[_0x50bf38(0x215)],_0x48c021[_0x50bf38(0x1ca)],null,_0xc4c98d),process['exit'](0x1));_0x48c021['jfxaY'](_0x517856[_0x50bf38(0x1c4)](),'n')&&process[_0x50bf38(0x1e5)](0x0);console[_0x50bf38(0x1ef)](_0x48c021[_0x50bf38(0x20e)]);const _0x356390=_0xacd76c['list'][_0x50bf38(0x1ee)];for(let _0x53ba0=0x0;_0x48c021['VeCZY'](_0x53ba0,_0x356390);_0x53ba0+=0x1){console[_0x50bf38(0x1ef)]('['+_0x48c021[_0x50bf38(0x1bb)](_0x53ba0,0x1)+']\x20'+_0xacd76c[_0x50bf38(0x1c5)][_0x53ba0][_0x50bf38(0x1c0)]);}const _0x548ebe=await _0x48c021[_0x50bf38(0x1c8)](inputConfirmation,_0x48c021['QwSOk']),_0x10304c=_0x48c021[_0x50bf38(0x1c8)](Number,_0x548ebe);(_0x48c021[_0x50bf38(0x1df)](isNaN,_0x10304c)||_0x48c021['Ctgsh'](_0x10304c,0x0)||_0x48c021[_0x50bf38(0x1f6)](_0x10304c,_0x356390))&&(console[_0x50bf38(0x1db)](_0x48c021[_0x50bf38(0x1cf)]),await _0x48c021['RZELb'](sendInstrumentationEvent,_0xc4c98d,_0x48c021[_0x50bf38(0x1f0)],messageTypes[_0x50bf38(0x215)],_0x48c021[_0x50bf38(0x1eb)],null,_0xc4c98d),process['exit'](0x1));_0x48c021[_0x50bf38(0x1c6)](closeInput);const _0x38b8f1=_0xacd76c[_0x50bf38(0x1c5)][_0x48c021[_0x50bf38(0x1c7)](_0x10304c,0x1)]['id'],_0x7827bf={};_0x7827bf[_0x50bf38(0x1f8)]=_0x38b8f1;const _0x2ce8ae={'method':_0x48c021[_0x50bf38(0x1d9)],'headers':_0x48c021[_0x50bf38(0x1e1)](getAuthHeader,_0x191eaa[_0x50bf38(0x1bc)][_0x50bf38(0x1ed)],_0x191eaa['Browserstack'][_0x50bf38(0x1be)]),'json':_0x7827bf,'responseType':_0x48c021[_0x50bf38(0x1f5)],'throwHttpErrors':![]},_0x177a97=await _0x48c021[_0x50bf38(0x1c2)](got,_0x455402,_0x2ce8ae);_0x48c021[_0x50bf38(0x1de)](_0x177a97,null)&&_0x48c021['vJaEN'](_0x177a97,undefined)&&_0x48c021[_0x50bf38(0x1fe)](_0x177a97[_0x50bf38(0x1ea)],0xc8)&&(console['log'](_0x48c021[_0x50bf38(0x20d)]),process[_0x50bf38(0x1e5)](0x0)),_0x48c021[_0x50bf38(0x1c9)](_0x177a97[_0x50bf38(0x1ea)],0x191)&&(console[_0x50bf38(0x1db)](_0x48c021[_0x50bf38(0x20c)]),await _0x48c021['lRidW'](sendInstrumentationEvent,_0xc4c98d,_0x48c021[_0x50bf38(0x1f0)],messageTypes[_0x50bf38(0x215)],_0x48c021[_0x50bf38(0x213)],null,_0xc4c98d),process[_0x50bf38(0x1e5)](0x1)),console[_0x50bf38(0x1db)](_0x50bf38(0x1e4)+JSON['stringify'](_0x177a97)),await _0x48c021['xVnTT'](sendInstrumentationEvent,_0xc4c98d,_0x48c021['WzcVe'],messageTypes[_0x50bf38(0x215)],_0x48c021[_0x50bf38(0x1d6)],_0x177a97,_0xc4c98d),process[_0x50bf38(0x1e5)](0x1);}_0x48c021[_0x50bf38(0x1b8)](_0x2f741c[_0x50bf38(0x1ea)],0x191)&&(console[_0x50bf38(0x1db)](_0x48c021[_0x50bf38(0x1bd)]),await _0x48c021[_0x50bf38(0x1ff)](sendInstrumentationEvent,_0xc4c98d,_0x48c021['WzcVe'],messageTypes[_0x50bf38(0x215)],_0x48c021['QFhpr'],null,_0xc4c98d),process[_0x50bf38(0x1e5)](0x1)),console['error'](_0x50bf38(0x1fc)+JSON[_0x50bf38(0x1dd)](_0x2f741c)),await _0x48c021[_0x50bf38(0x212)](sendInstrumentationEvent,_0xc4c98d,_0x48c021[_0x50bf38(0x1f0)],messageTypes[_0x50bf38(0x215)],_0x48c021[_0x50bf38(0x1d6)],_0x2f741c,_0xc4c98d),process[_0x50bf38(0x1e5)](0x1);}catch(_0x3d3e50){console[_0x50bf38(0x1db)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x3d3e50[_0x50bf38(0x209)]),await _0x48c021[_0x50bf38(0x206)](sendInstrumentationEvent,_0xc4c98d,_0x48c021['WzcVe'],messageTypes[_0x50bf38(0x215)],_0x48c021['nusgd'],_0x3d3e50,_0xc4c98d),process[_0x50bf38(0x1e5)](0x1);}};
1
+ const a5_0x2895dd=a5_0x110f;(function(_0x4ab09d,_0x46be83){const _0x4b9dfc=a5_0x110f,_0x564cc3=_0x4ab09d();while(!![]){try{const _0x4c023a=parseInt(_0x4b9dfc(0x176))/0x1+-parseInt(_0x4b9dfc(0x1c3))/0x2+-parseInt(_0x4b9dfc(0x1c4))/0x3+parseInt(_0x4b9dfc(0x197))/0x4+-parseInt(_0x4b9dfc(0x1ca))/0x5*(-parseInt(_0x4b9dfc(0x18b))/0x6)+-parseInt(_0x4b9dfc(0x1b5))/0x7+parseInt(_0x4b9dfc(0x1b4))/0x8;if(_0x4c023a===_0x46be83)break;else _0x564cc3['push'](_0x564cc3['shift']());}catch(_0x20359e){_0x564cc3['push'](_0x564cc3['shift']());}}}(a5_0x5dea,0xc6f55));function a5_0x110f(_0x495b76,_0x40db13){const _0x5deaf5=a5_0x5dea();return a5_0x110f=function(_0x110f72,_0xb51756){_0x110f72=_0x110f72-0x175;let _0x50ff4a=_0x5deaf5[_0x110f72];return _0x50ff4a;},a5_0x110f(_0x495b76,_0x40db13);}const fs=require('fs'),got=require(a5_0x2895dd(0x1bd)),{v4:uuidv4}=require(a5_0x2895dd(0x1bb)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x2895dd(0x18d)),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a5_0x2895dd(0x1d0));exports['command']=a5_0x2895dd(0x1bf),exports[a5_0x2895dd(0x19b)]=a5_0x2895dd(0x175),exports['builder']=function(_0x3b0595){const _0x7b7dbf=a5_0x2895dd,_0x2c4210={};_0x2c4210[_0x7b7dbf(0x17c)]='help';const _0x86cb1e=_0x2c4210;return _0x3b0595[_0x7b7dbf(0x18f)](HELP_HEADER_MESSAGE[_0x7b7dbf(0x1bf)])['epilogue'](HELP_FOOTER_MESSAGE)['help'](_0x86cb1e[_0x7b7dbf(0x17c)])[_0x7b7dbf(0x190)]()[_0x7b7dbf(0x1b6)]()[_0x7b7dbf(0x1a5)];},exports[a5_0x2895dd(0x1b2)]=async function(_0x249fa5){const _0x3910c2=a5_0x2895dd,_0x1bc49e={'EhRRl':function(_0x189f2d){return _0x189f2d();},'jJDjf':_0x3910c2(0x180),'SLPwQ':function(_0x36339e,_0x1070bc,_0x50a975,_0x586781,_0x3c2ecc,_0x3ec27d,_0x541dd2){return _0x36339e(_0x1070bc,_0x50a975,_0x586781,_0x3c2ecc,_0x3ec27d,_0x541dd2);},'TkhAT':'configure-called','zybjv':'init-not-called','uHlRh':function(_0x25faeb){return _0x25faeb();},'PqWTu':_0x3910c2(0x17e),'mmNfU':function(_0x2ff821,_0x477690,_0x354279){return _0x2ff821(_0x477690,_0x354279);},'dvhGL':function(_0x4fbe0c,_0x2d698a,_0x46cfda){return _0x4fbe0c(_0x2d698a,_0x46cfda);},'WiHDn':function(_0x5dd7f0,_0x1d63aa){return _0x5dd7f0!==_0x1d63aa;},'RTxdz':function(_0x2d70c9,_0xc10f82){return _0x2d70c9!==_0xc10f82;},'cmEvz':function(_0x294e56,_0x56a15e){return _0x294e56===_0x56a15e;},'SmQPQ':_0x3910c2(0x1d3),'JgXcv':_0x3910c2(0x178),'qwVqj':function(_0x1d4022,_0x398bd3){return _0x1d4022(_0x398bd3);},'tBHoN':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','zcaOP':function(_0x45c231,_0x59827f){return _0x45c231===_0x59827f;},'GIpEF':function(_0x542fd6,_0x4f0e23){return _0x542fd6===_0x4f0e23;},'grqNZ':function(_0x423c1c,_0x518c02){return _0x423c1c===_0x518c02;},'UosVk':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','uscEx':_0x3910c2(0x1cf),'SgDyk':function(_0x4f4bda,_0x34402f){return _0x4f4bda===_0x34402f;},'hebpa':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','OkDUS':function(_0x28678e,_0x132377){return _0x28678e<_0x132377;},'qorKn':function(_0x188261,_0x1e722e){return _0x188261+_0x1e722e;},'pDEno':function(_0x5e7cf2,_0x1549d8){return _0x5e7cf2(_0x1549d8);},'YNTnV':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','hWdum':function(_0x439f45,_0x23e5a3){return _0x439f45(_0x23e5a3);},'gWznr':function(_0x523b7e,_0x50e961){return _0x523b7e(_0x50e961);},'GMLIc':function(_0x23ccd6,_0x1f22b2){return _0x23ccd6<=_0x1f22b2;},'tLQTF':function(_0x26cdf4,_0x55db72){return _0x26cdf4>_0x55db72;},'skMOt':function(_0x5c49be,_0x36e98b,_0x5cb770,_0x48a766,_0x30d271,_0x706753,_0x51eea9){return _0x5c49be(_0x36e98b,_0x5cb770,_0x48a766,_0x30d271,_0x706753,_0x51eea9);},'pWGif':_0x3910c2(0x186),'iohnd':function(_0x35f499){return _0x35f499();},'gePlT':function(_0x4c6712,_0x5b47c0){return _0x4c6712-_0x5b47c0;},'aOunj':_0x3910c2(0x17b),'mMgOr':_0x3910c2(0x1d2),'diINB':_0x3910c2(0x1a7),'moonW':_0x3910c2(0x183),'LIbpn':_0x3910c2(0x1a0),'fGvrK':function(_0x4e7ede,_0x3cf6e8,_0x7b77ee,_0x22a081,_0x195f7d,_0x3bc25d,_0xa3da7){return _0x4e7ede(_0x3cf6e8,_0x7b77ee,_0x22a081,_0x195f7d,_0x3bc25d,_0xa3da7);},'twVwi':'server-error','BJnAH':_0x3910c2(0x177),'HCukE':function(_0x4eca99,_0x4d5927,_0x214e9f,_0x3e0585,_0x50143e,_0x32e624,_0x19cca1){return _0x4eca99(_0x4d5927,_0x214e9f,_0x3e0585,_0x50143e,_0x32e624,_0x19cca1);},'NRSMa':function(_0x197e7e,_0x141c8a,_0x3523a4,_0x4da41d,_0x3e343f,_0x3f6183,_0x516363){return _0x197e7e(_0x141c8a,_0x3523a4,_0x4da41d,_0x3e343f,_0x3f6183,_0x516363);},'xgrxB':_0x3910c2(0x193)};try{global_registry[_0x3910c2(0x1a8)]=_0x1bc49e[_0x3910c2(0x19a)](uuidv4);const _0xafc4b0=_0x3910c2(0x19d)+AG_API_URL+_0x3910c2(0x198);!fs[_0x3910c2(0x1ba)](_0x1bc49e['EhRRl'](getCredentialsPath))&&(console[_0x3910c2(0x191)](_0x1bc49e[_0x3910c2(0x1aa)]),await _0x1bc49e[_0x3910c2(0x18a)](sendInstrumentationEvent,_0x249fa5,_0x1bc49e['TkhAT'],messageTypes[_0x3910c2(0x17a)],_0x1bc49e[_0x3910c2(0x1ce)],null,_0x249fa5),process[_0x3910c2(0x188)](0x1));await _0x1bc49e[_0x3910c2(0x18a)](sendInstrumentationEvent,_0x249fa5,_0x1bc49e[_0x3910c2(0x199)],messageTypes[_0x3910c2(0x189)],null,null,_0x249fa5);const _0x333dc7=JSON[_0x3910c2(0x1c1)](fs[_0x3910c2(0x185)](_0x1bc49e['uHlRh'](getCredentialsPath))),_0x2e5d30={'method':_0x1bc49e['PqWTu'],'headers':_0x1bc49e[_0x3910c2(0x19c)](getAuthHeader,_0x333dc7[_0x3910c2(0x1c8)]['username'],_0x333dc7['Browserstack'][_0x3910c2(0x179)]),'throwHttpErrors':![]},_0x38f5bd=await _0x1bc49e[_0x3910c2(0x1c6)](got,_0xafc4b0,_0x2e5d30);if(_0x1bc49e[_0x3910c2(0x1ac)](_0x38f5bd,null)&&_0x1bc49e[_0x3910c2(0x1b3)](_0x38f5bd,undefined)&&_0x1bc49e[_0x3910c2(0x1ad)](_0x38f5bd[_0x3910c2(0x17d)],0xc8)){const _0x1849f6=JSON[_0x3910c2(0x1c1)](_0x38f5bd[_0x3910c2(0x1c7)]);console[_0x3910c2(0x1be)](_0x1bc49e[_0x3910c2(0x19e)]),console[_0x3910c2(0x1be)](_0x1bc49e[_0x3910c2(0x1b1)]),console[_0x3910c2(0x1be)](_0x3910c2(0x195)+_0x333dc7['Browserstack'][_0x3910c2(0x18e)]),console[_0x3910c2(0x1be)](_0x3910c2(0x194)+_0x1849f6['active']['name']);const _0x52a85e=await _0x1bc49e[_0x3910c2(0x1d1)](inputConfirmation,_0x1bc49e[_0x3910c2(0x1b9)]);(_0x1bc49e[_0x3910c2(0x1a6)](_0x52a85e,undefined)||_0x1bc49e[_0x3910c2(0x19f)](_0x52a85e,null)||!(_0x1bc49e['zcaOP'](_0x52a85e[_0x3910c2(0x1a2)](),'y')||_0x1bc49e['grqNZ'](_0x52a85e[_0x3910c2(0x1a2)](),'n')))&&(console[_0x3910c2(0x191)](_0x1bc49e[_0x3910c2(0x1c0)]),await _0x1bc49e[_0x3910c2(0x18a)](sendInstrumentationEvent,_0x249fa5,_0x1bc49e[_0x3910c2(0x199)],messageTypes['ERROR'],_0x1bc49e['uscEx'],null,_0x249fa5),process[_0x3910c2(0x188)](0x1));_0x1bc49e['SgDyk'](_0x52a85e[_0x3910c2(0x1a2)](),'n')&&process[_0x3910c2(0x188)](0x0);console[_0x3910c2(0x1be)](_0x1bc49e[_0x3910c2(0x1a3)]);const _0x58c2a5=_0x1849f6[_0x3910c2(0x1cb)]['length'];for(let _0x1e79fe=0x0;_0x1bc49e[_0x3910c2(0x182)](_0x1e79fe,_0x58c2a5);_0x1e79fe+=0x1){console[_0x3910c2(0x1be)]('['+_0x1bc49e['qorKn'](_0x1e79fe,0x1)+']\x20'+_0x1849f6[_0x3910c2(0x1cb)][_0x1e79fe][_0x3910c2(0x1cc)]);}const _0x20b991=await _0x1bc49e[_0x3910c2(0x181)](inputConfirmation,_0x1bc49e['YNTnV']),_0x533e6b=_0x1bc49e[_0x3910c2(0x1cd)](Number,_0x20b991);(_0x1bc49e[_0x3910c2(0x1c2)](isNaN,_0x533e6b)||_0x1bc49e[_0x3910c2(0x18c)](_0x533e6b,0x0)||_0x1bc49e['tLQTF'](_0x533e6b,_0x58c2a5))&&(console[_0x3910c2(0x191)](_0x1bc49e[_0x3910c2(0x1c0)]),await _0x1bc49e[_0x3910c2(0x17f)](sendInstrumentationEvent,_0x249fa5,_0x1bc49e[_0x3910c2(0x199)],messageTypes[_0x3910c2(0x17a)],_0x1bc49e[_0x3910c2(0x1b7)],null,_0x249fa5),process['exit'](0x1));_0x1bc49e['iohnd'](closeInput);const _0x4432bf=_0x1849f6[_0x3910c2(0x1cb)][_0x1bc49e[_0x3910c2(0x192)](_0x533e6b,0x1)]['id'],_0x4c6089={};_0x4c6089[_0x3910c2(0x1a4)]=_0x4432bf;const _0x42ba49={'method':_0x1bc49e[_0x3910c2(0x196)],'headers':_0x1bc49e[_0x3910c2(0x19c)](getAuthHeader,_0x333dc7[_0x3910c2(0x1c8)][_0x3910c2(0x18e)],_0x333dc7[_0x3910c2(0x1c8)][_0x3910c2(0x179)]),'json':_0x4c6089,'responseType':_0x1bc49e['mMgOr'],'throwHttpErrors':![]},_0x166275=await _0x1bc49e[_0x3910c2(0x19c)](got,_0xafc4b0,_0x42ba49);_0x1bc49e[_0x3910c2(0x1b3)](_0x166275,null)&&_0x1bc49e[_0x3910c2(0x1b3)](_0x166275,undefined)&&_0x1bc49e[_0x3910c2(0x184)](_0x166275[_0x3910c2(0x17d)],0xc8)&&(console[_0x3910c2(0x1be)](_0x1bc49e[_0x3910c2(0x1c9)]),process[_0x3910c2(0x188)](0x0)),_0x1bc49e[_0x3910c2(0x19f)](_0x166275['statusCode'],0x191)&&(console[_0x3910c2(0x191)](_0x1bc49e[_0x3910c2(0x1a9)]),await _0x1bc49e[_0x3910c2(0x17f)](sendInstrumentationEvent,_0x249fa5,_0x1bc49e['TkhAT'],messageTypes[_0x3910c2(0x17a)],_0x1bc49e[_0x3910c2(0x1a1)],null,_0x249fa5),process['exit'](0x1)),console['error'](_0x3910c2(0x1b0)+JSON[_0x3910c2(0x1bc)](_0x166275)),await _0x1bc49e['fGvrK'](sendInstrumentationEvent,_0x249fa5,_0x1bc49e[_0x3910c2(0x199)],messageTypes[_0x3910c2(0x17a)],_0x1bc49e[_0x3910c2(0x1ab)],_0x166275,_0x249fa5),process[_0x3910c2(0x188)](0x1);}_0x1bc49e['GIpEF'](_0x38f5bd[_0x3910c2(0x17d)],0x191)&&(console[_0x3910c2(0x191)](_0x1bc49e[_0x3910c2(0x1b8)]),await _0x1bc49e[_0x3910c2(0x1af)](sendInstrumentationEvent,_0x249fa5,_0x1bc49e[_0x3910c2(0x199)],messageTypes[_0x3910c2(0x17a)],_0x1bc49e[_0x3910c2(0x1a1)],null,_0x249fa5),process[_0x3910c2(0x188)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x38f5bd)),await _0x1bc49e[_0x3910c2(0x1c5)](sendInstrumentationEvent,_0x249fa5,_0x1bc49e['TkhAT'],messageTypes[_0x3910c2(0x17a)],_0x1bc49e[_0x3910c2(0x1ab)],_0x38f5bd,_0x249fa5),process[_0x3910c2(0x188)](0x1);}catch(_0x30058e){console[_0x3910c2(0x191)](_0x3910c2(0x187)+_0x30058e[_0x3910c2(0x1ae)]),await _0x1bc49e[_0x3910c2(0x1af)](sendInstrumentationEvent,_0x249fa5,_0x1bc49e[_0x3910c2(0x199)],messageTypes[_0x3910c2(0x17a)],_0x1bc49e['xgrxB'],_0x30058e,_0x249fa5),process[_0x3910c2(0x188)](0x1);}};function a5_0x5dea(){const _0x1676f3=['log','configure','UosVk','parse','gWznr','2715464MTfJAB','2532984jPDsaz','NRSMa','dvhGL','body','Browserstack','diINB','15TpbZiC','list','name','hWdum','zybjv','invalid-input','../utils/instrumentationUtils','qwVqj','json','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','313804TtUKaj','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','core:','password','ERROR','PUT','kzoKa','statusCode','GET','skMOt','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','pDEno','OkDUS','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','grqNZ','readFileSync','invalid-selection','Failed\x20to\x20configure\x20resources!\x20Error:\x20','exit','INFO','SLPwQ','1974648GrERSQ','GMLIc','../config/constants','username','usage','recommendCommands','error','gePlT','unknown-error','\x20\x20grid-profile:\x20','\x20\x20username:\x20','aOunj','155492qhJpgH','/packages/cli/configure','TkhAT','EhRRl','desc','mmNfU','https://','SmQPQ','GIpEF','unauthorised','LIbpn','toLowerCase','hebpa','profileId','argv','zcaOP','Updated\x20default\x20Grid\x20Profile\x20successfully','requestId','moonW','jJDjf','twVwi','WiHDn','cmEvz','stack','HCukE','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','JgXcv','handler','RTxdz','18503888DDsBen','4451958hWiGwO','strict','pWGif','BJnAH','tBHoN','existsSync','uuid','stringify','got'];a5_0x5dea=function(){return _0x1676f3;};return a5_0x5dea();}
@@ -1 +1 @@
1
- const a6_0x597979=a6_0x283a;function a6_0x283a(_0x3a2ba4,_0x3c80a3){const _0x291d62=a6_0x291d();return a6_0x283a=function(_0x283ac2,_0xab6cc9){_0x283ac2=_0x283ac2-0x18a;let _0x25b11d=_0x291d62[_0x283ac2];return _0x25b11d;},a6_0x283a(_0x3a2ba4,_0x3c80a3);}(function(_0x12d4e5,_0x4e3e72){const _0x3c74e9=a6_0x283a,_0x179a46=_0x12d4e5();while(!![]){try{const _0x4aa949=-parseInt(_0x3c74e9(0x192))/0x1*(-parseInt(_0x3c74e9(0x18b))/0x2)+-parseInt(_0x3c74e9(0x191))/0x3*(-parseInt(_0x3c74e9(0x1a2))/0x4)+parseInt(_0x3c74e9(0x1a1))/0x5*(-parseInt(_0x3c74e9(0x196))/0x6)+-parseInt(_0x3c74e9(0x18f))/0x7*(-parseInt(_0x3c74e9(0x193))/0x8)+parseInt(_0x3c74e9(0x18a))/0x9+-parseInt(_0x3c74e9(0x19b))/0xa*(-parseInt(_0x3c74e9(0x194))/0xb)+parseInt(_0x3c74e9(0x198))/0xc*(-parseInt(_0x3c74e9(0x18d))/0xd);if(_0x4aa949===_0x4e3e72)break;else _0x179a46['push'](_0x179a46['shift']());}catch(_0x4a6e12){_0x179a46['push'](_0x179a46['shift']());}}}(a6_0x291d,0x9fd37));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a6_0x597979(0x19d)]=a6_0x597979(0x190),exports[a6_0x597979(0x1a0)]='Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment',exports[a6_0x597979(0x19f)]=function(_0x1872e5){const _0x3705dd=a6_0x597979,_0x422c09={};_0x422c09[_0x3705dd(0x18e)]=_0x3705dd(0x195),_0x422c09['ewREH']=_0x3705dd(0x197);const _0x395c75=_0x422c09;return _0x1872e5[_0x3705dd(0x18c)](HELP_HEADER_MESSAGE['connect'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3705dd(0x19e)](_0x395c75['GYUgD'])[_0x3705dd(0x199)]()[_0x3705dd(0x1a3)]()[_0x3705dd(0x19a)]()[_0x3705dd(0x197)](_0x395c75[_0x3705dd(0x19c)]);},exports['handler']=function(_0x47a4e4){};function a6_0x291d(){const _0xb85a71=['22myNMqm','connect_commands','156oYSkxs','help','22196652iRBrie','demandCommand','strict','5332760DDVBYd','ewREH','command','commandDir','builder','desc','180010XQBhpk','196708wpicWN','recommendCommands','7562583rHTyaZ','70ZfhVRW','usage','13uwAqTk','GYUgD','8197XvnGcd','connect','9SaRshO','10661BQpvdZ','6920SaNpcq'];a6_0x291d=function(){return _0xb85a71;};return a6_0x291d();}
1
+ const a6_0x351d76=a6_0x5400;(function(_0x13444c,_0x4a05ee){const _0x17b1a4=a6_0x5400,_0x5b35c6=_0x13444c();while(!![]){try{const _0x226a10=parseInt(_0x17b1a4(0x18a))/0x1+-parseInt(_0x17b1a4(0x18d))/0x2+-parseInt(_0x17b1a4(0x192))/0x3+parseInt(_0x17b1a4(0x191))/0x4+-parseInt(_0x17b1a4(0x18c))/0x5*(parseInt(_0x17b1a4(0x193))/0x6)+parseInt(_0x17b1a4(0x188))/0x7*(parseInt(_0x17b1a4(0x189))/0x8)+-parseInt(_0x17b1a4(0x197))/0x9*(parseInt(_0x17b1a4(0x195))/0xa);if(_0x226a10===_0x4a05ee)break;else _0x5b35c6['push'](_0x5b35c6['shift']());}catch(_0x5512bc){_0x5b35c6['push'](_0x5b35c6['shift']());}}}(a6_0x1fc1,0x7099e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a6_0x5400(_0x2c3e9b,_0x31864){const _0x1fc128=a6_0x1fc1();return a6_0x5400=function(_0x540097,_0x4fa323){_0x540097=_0x540097-0x185;let _0xe35219=_0x1fc128[_0x540097];return _0xe35219;},a6_0x5400(_0x2c3e9b,_0x31864);}exports[a6_0x351d76(0x199)]='connect',exports[a6_0x351d76(0x187)]=a6_0x351d76(0x198),exports['builder']=function(_0x2b0d19){const _0x5024f7=a6_0x351d76,_0xcd2908={};_0xcd2908[_0x5024f7(0x186)]=_0x5024f7(0x18f),_0xcd2908[_0x5024f7(0x190)]=_0x5024f7(0x196);const _0x400c9d=_0xcd2908;return _0x2b0d19['usage'](HELP_HEADER_MESSAGE[_0x5024f7(0x19a)])[_0x5024f7(0x185)](HELP_FOOTER_MESSAGE)[_0x5024f7(0x194)](_0x400c9d[_0x5024f7(0x186)])[_0x5024f7(0x18e)]()[_0x5024f7(0x18b)]()['strict']()['help'](_0x400c9d[_0x5024f7(0x190)]);},exports['handler']=function(_0x1e6bf4){};function a6_0x1fc1(){const _0x3f3eca=['command','connect','epilogue','npifE','desc','2180311FNUoyB','8SuKnET','791374aWzqVs','recommendCommands','5keYcbK','1379996wxaxyW','demandCommand','connect_commands','AgtpE','2320740VhCMKv','1002534UNbbZx','544062mJGqvN','commandDir','356550qJTgvT','help','27FXIZAe','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment'];a6_0x1fc1=function(){return _0x3f3eca;};return a6_0x1fc1();}
@@ -1 +1 @@
1
- const a7_0xee0558=a7_0x5634;(function(_0x583e40,_0x482328){const _0x456b16=a7_0x5634,_0xec3a0a=_0x583e40();while(!![]){try{const _0x10ad67=parseInt(_0x456b16(0x107))/0x1*(-parseInt(_0x456b16(0x10c))/0x2)+-parseInt(_0x456b16(0x143))/0x3+parseInt(_0x456b16(0x138))/0x4+parseInt(_0x456b16(0xee))/0x5+-parseInt(_0x456b16(0x127))/0x6*(parseInt(_0x456b16(0x13b))/0x7)+-parseInt(_0x456b16(0xf5))/0x8+-parseInt(_0x456b16(0x112))/0x9*(-parseInt(_0x456b16(0xfe))/0xa);if(_0x10ad67===_0x482328)break;else _0xec3a0a['push'](_0xec3a0a['shift']());}catch(_0x1e1c0d){_0xec3a0a['push'](_0xec3a0a['shift']());}}}(a7_0xb2a8,0x362ba));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0xee0558(0x145)),{logger}=require(a7_0xee0558(0xf9)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');function a7_0xb2a8(){const _0x3e2850=['UOiPt','Ybavi','opBDW','isRunning','1398080SYbdTp','usage','grid','customRepeaters','IesjV','GVeMu','zaSyh','2930976zZzrsj','eNXiV','SIGTERM','Gpaab','../../config/logger','EGMJn','exit','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','10DlgpAU','accessKey','pKtWL','lvzSF','demandOption','bstack-username','LzQkH','NXwqA','CyUiX','182687xbxuls','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','ueZlR','adXFN','command','2DoDmXO','description','kAzLy','bstackUsername','options','bZGMe','6762267fIuhNK','jkhfs','builder','ENiHe','WuIPF','KnPZI','Advance\x20options\x20for\x20Browserstack\x20Local','eomhu','NAPqj','ooSzy','GOryM','xGDPs','aRGyq','bstackAccesskey','TdhuS','xzTYO','grid-id','Ugjsi','sNffa','hidle','create','445134jjRHcT','Mydds','wrlMG','ArgYH','vKxLF','help','tRPjS','type','kTVQm','lTkem','gGitl','JLXba','gweFr','argv','htvFH','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','1474452GWirFt','PRMgC','isTrialGrid','28zIqvce','Pass\x20the\x20ID\x20of\x20the\x20Grid','use-staging','okkix','TiFDe','handler','MNqiP','fyjbb','995685cHAwGx','gGsBD','../../config/constants','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','KTGvi','SIGINT','SpHwu','epilogue','RqwCN','dfYXA','Grid\x20type:\x20Trial','oGzAA','BvrpO','rJIov','eJvmj','tBlUx','WrqHN','info','bstack-accesskey','TzBuH','error','euClj','string','browserStackLocalOptions','useStaging'];a7_0xb2a8=function(){return _0x3e2850;};return a7_0xb2a8();}function a7_0x5634(_0x20f50d,_0x18747b){const _0xb2a896=a7_0xb2a8();return a7_0x5634=function(_0x563434,_0x4622c3){_0x563434=_0x563434-0xea;let _0x10666e=_0xb2a896[_0x563434];return _0x10666e;},a7_0x5634(_0x20f50d,_0x18747b);}exports[a7_0xee0558(0x10b)]=a7_0xee0558(0xf0),exports['desc']=a7_0xee0558(0x137),exports[a7_0xee0558(0x114)]=_0x502f30=>{const _0x380776=a7_0xee0558,_0x1f6297={};_0x1f6297[_0x380776(0x129)]=_0x380776(0x136),_0x1f6297[_0x380776(0x124)]=_0x380776(0x159),_0x1f6297[_0x380776(0x115)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x1f6297[_0x380776(0x133)]=_0x380776(0x13c),_0x1f6297['gGitl']=_0x380776(0x146),_0x1f6297[_0x380776(0xf6)]='Advance\x20options\x20for\x20Browserstack\x20Local',_0x1f6297['zyTxJ']=_0x380776(0x12c);const _0x274b8f=_0x1f6297,_0x3a11aa={};_0x3a11aa[_0x380776(0x10d)]=_0x274b8f[_0x380776(0x129)],_0x3a11aa[_0x380776(0x12e)]=_0x274b8f[_0x380776(0x124)];const _0x2c2175={};_0x2c2175[_0x380776(0x10d)]=_0x274b8f[_0x380776(0x115)],_0x2c2175['type']=_0x274b8f[_0x380776(0x124)];const _0x41a39d={};_0x41a39d['demandOption']=!![],_0x41a39d[_0x380776(0x10d)]=_0x274b8f['gweFr'],_0x41a39d['type']=_0x274b8f['sNffa'];const _0x190e28={};_0x190e28[_0x380776(0x10d)]=_0x274b8f[_0x380776(0x131)],_0x190e28[_0x380776(0x12e)]=_0x274b8f[_0x380776(0x124)];const _0x3c06e0={};_0x3c06e0[_0x380776(0x10d)]=_0x274b8f['eNXiV'],_0x3c06e0[_0x380776(0x12e)]=_0x274b8f[_0x380776(0x124)];const _0x245d48={};return _0x245d48[_0x380776(0x103)]=_0x3a11aa,_0x245d48[_0x380776(0x155)]=_0x2c2175,_0x245d48[_0x380776(0x122)]=_0x41a39d,_0x245d48[_0x380776(0x13d)]=_0x190e28,_0x245d48['advance-options']=_0x3c06e0,_0x502f30[_0x380776(0xef)](HELP_HEADER_MESSAGE[_0x380776(0x126)])[_0x380776(0x14a)](HELP_FOOTER_MESSAGE)[_0x380776(0x110)](_0x245d48)[_0x380776(0x12c)](_0x274b8f['zyTxJ'])[_0x380776(0x134)];},exports[a7_0xee0558(0x140)]=async _0x51801b=>{const _0x4f25fc=a7_0xee0558,_0x37a688={'oGzAA':_0x4f25fc(0x136),'gGsBD':_0x4f25fc(0x159),'eJvmj':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','KTGvi':_0x4f25fc(0x13c),'dfYXA':_0x4f25fc(0x146),'IesjV':_0x4f25fc(0x118),'pKtWL':_0x4f25fc(0x12c),'bZGMe':function(_0x1b8f5b,_0x4c9322){return _0x1b8f5b===_0x4c9322;},'mgcRw':_0x4f25fc(0x152),'jkhfs':'MaAWh','KnPZI':function(_0x1ecf5f,_0x56ce79){return _0x1ecf5f(_0x56ce79);},'tRPjS':_0x4f25fc(0x108),'BvrpO':function(_0x593336,_0x5d051e){return _0x593336===_0x5d051e;},'GVeMu':function(_0x58a9cf,_0x4dbd18){return _0x58a9cf(_0x4dbd18);},'MNqiP':_0x4f25fc(0x14d),'paIzv':'beforeExit','vKxLF':_0x4f25fc(0x148),'EGMJn':_0x4f25fc(0xf7),'fyjbb':'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.','PRMgC':_0x4f25fc(0xfd),'WrqHN':'VEGqY','kTVQm':function(_0x4aa639,_0x33117d){return _0x4aa639(_0x33117d);},'NXwqA':_0x4f25fc(0xfc),'Ybavi':function(_0x597c3f,_0x2d4546){return _0x597c3f===_0x2d4546;},'cDWmp':function(_0x4174ee,_0x58be99){return _0x4174ee(_0x58be99);},'Gpaab':function(_0x4a3346,_0xe10fb1){return _0x4a3346(_0xe10fb1);},'ueZlR':function(_0x478351,_0x351550,_0x34a65d){return _0x478351(_0x351550,_0x34a65d);},'eomhu':function(_0xe5f67c,_0x4797cc){return _0xe5f67c&&_0x4797cc;},'lvzSF':function(_0x525bed,_0x515c65){return _0x525bed!==_0x515c65;},'htvFH':_0x4f25fc(0x10e),'lTkem':_0x4f25fc(0x120),'evNfP':function(_0x157b95,_0x4c0826){return _0x157b95(_0x4c0826);},'oziiw':function(_0x366fb8,_0xf26fd7,_0x3eb500,_0x229336){return _0x366fb8(_0xf26fd7,_0x3eb500,_0x229336);},'Ugjsi':'NFusN','euClj':_0x4f25fc(0x12a),'TiFDe':function(_0x488ac5,_0xa9e9db){return _0x488ac5===_0xa9e9db;},'ooSzy':'true','zaSyh':function(_0x4b31f4,_0x2b48c5){return _0x4b31f4!==_0x2b48c5;},'TrluY':_0x4f25fc(0x11c),'okkix':_0x4f25fc(0x116),'adXFN':function(_0x3a72d9,_0x4a87d3){return _0x3a72d9===_0x4a87d3;},'TzBuH':_0x4f25fc(0xec),'aRGyq':_0x4f25fc(0x149),'xGDPs':function(_0x37913f,_0x831682){return _0x37913f(_0x831682);}};let _0x105bb9=_0x51801b[_0x4f25fc(0x10f)],_0x33d2d3=_0x51801b[_0x4f25fc(0x11f)];const _0x5caafc=_0x51801b['advanceOptions'],_0x387c38=_0x11ddb6=>{const _0xe909b3=_0x4f25fc,_0x2b92c4={};_0x2b92c4[_0xe909b3(0x106)]=_0x37a688[_0xe909b3(0x14e)],_0x2b92c4[_0xe909b3(0x121)]=_0x37a688[_0xe909b3(0x144)],_0x2b92c4[_0xe909b3(0x125)]=_0x37a688[_0xe909b3(0x151)],_0x2b92c4[_0xe909b3(0x132)]=_0x37a688[_0xe909b3(0x147)],_0x2b92c4[_0xe909b3(0x150)]=_0x37a688[_0xe909b3(0x14c)],_0x2b92c4['Mvnwg']=_0x37a688[_0xe909b3(0xf2)],_0x2b92c4[_0xe909b3(0x128)]=_0x37a688[_0xe909b3(0x100)];const _0x3189c1=_0x2b92c4;if(_0x37a688['bZGMe'](_0x37a688['mgcRw'],_0x37a688[_0xe909b3(0x113)])){const _0x20d95c={};_0x20d95c['description']=_0x3189c1[_0xe909b3(0x106)],_0x20d95c['type']=_0x3189c1['xzTYO'];const _0x1f99ef={};_0x1f99ef[_0xe909b3(0x10d)]=_0x3189c1[_0xe909b3(0x125)],_0x1f99ef[_0xe909b3(0x12e)]=_0x3189c1[_0xe909b3(0x121)];const _0x177125={};_0x177125[_0xe909b3(0x102)]=!![],_0x177125['description']=_0x3189c1[_0xe909b3(0x132)],_0x177125[_0xe909b3(0x12e)]=_0x3189c1[_0xe909b3(0x121)];const _0x3155b5={};_0x3155b5[_0xe909b3(0x10d)]=_0x3189c1['rJIov'],_0x3155b5[_0xe909b3(0x12e)]=_0x3189c1[_0xe909b3(0x121)];const _0x1b0e6f={};_0x1b0e6f[_0xe909b3(0x10d)]=_0x3189c1['Mvnwg'],_0x1b0e6f[_0xe909b3(0x12e)]=_0x3189c1[_0xe909b3(0x121)];const _0x1fae59={};return _0x1fae59[_0xe909b3(0x103)]=_0x20d95c,_0x1fae59[_0xe909b3(0x155)]=_0x1f99ef,_0x1fae59[_0xe909b3(0x122)]=_0x177125,_0x1fae59[_0xe909b3(0x13d)]=_0x3155b5,_0x1fae59['advance-options']=_0x1b0e6f,_0x262510['usage'](_0x5d9b08[_0xe909b3(0x126)])['epilogue'](_0x138f9d)['options'](_0x1fae59)[_0xe909b3(0x12c)](_0x3189c1['Mydds'])[_0xe909b3(0x134)];}else logger['error'](_0x11ddb6),process[_0xe909b3(0xfb)](0x1);};[_0x105bb9,_0x33d2d3]=_0x37a688[_0x4f25fc(0x109)](fetchOrUpdateUserConfig,_0x105bb9,_0x33d2d3);!_0x37a688[_0x4f25fc(0x119)](_0x105bb9,_0x33d2d3)&&(_0x37a688[_0x4f25fc(0x101)](_0x37a688[_0x4f25fc(0x135)],_0x37a688[_0x4f25fc(0x130)])?_0x37a688['evNfP'](_0x387c38,_0x37a688[_0x4f25fc(0x105)]):(_0x3fed41[_0x4f25fc(0x157)](_0x209f85),_0x3ed389[_0x4f25fc(0xfb)](0x1)));const _0x3eda55=_0x51801b['gridId'],[_0x285eee,_0x114d33]=await _0x37a688['oziiw'](getGridDetails,_0x105bb9,_0x33d2d3,_0x3eda55);!_0x114d33&&(_0x37a688[_0x4f25fc(0x101)](_0x37a688[_0x4f25fc(0x123)],_0x37a688[_0x4f25fc(0x158)])?_0x37a688[_0x4f25fc(0xf8)](_0x387c38,_0x37a688[_0x4f25fc(0x12d)]):_0x37a688[_0x4f25fc(0x117)](_0x36254a,_0x37a688[_0x4f25fc(0x12d)]));const _0x2df6a1=_0x37a688[_0x4f25fc(0x13f)](_0x51801b[_0x4f25fc(0x15b)],_0x37a688[_0x4f25fc(0x11b)])?!![]:![];if(_0x114d33&&_0x114d33[_0x4f25fc(0x13a)]&&_0x2df6a1){if(_0x37a688[_0x4f25fc(0xf4)](_0x37a688['TrluY'],_0x37a688[_0x4f25fc(0x13e)])){let _0x2cae90=_0x37a688[_0x4f25fc(0x141)];logger[_0x4f25fc(0x154)](_0x2cae90);try{if(_0x37a688[_0x4f25fc(0x10a)](_0x37a688[_0x4f25fc(0x156)],_0x37a688[_0x4f25fc(0x156)])){const _0x13b4ca={};_0x13b4ca[_0x4f25fc(0xff)]=_0x33d2d3,_0x13b4ca['customRepeaters']=_0x114d33[_0x4f25fc(0xf1)],_0x13b4ca[_0x4f25fc(0x15a)]=_0x5caafc;const _0x5d8831=_0x13b4ca,_0x9beda2=_0x37a688['cDWmp'](startLocalBinarySync,_0x5d8831);let _0x26a278=0x0;const _0x5255e4=async()=>{const _0x531d91=_0x4f25fc,_0x2d32be={'dJcXL':function(_0x473ed0,_0x3ad9ef){return _0x37a688['BvrpO'](_0x473ed0,_0x3ad9ef);},'LzQkH':function(_0x1fc568,_0x227a5d){return _0x37a688['GVeMu'](_0x1fc568,_0x227a5d);},'RqwCN':_0x37a688[_0x531d91(0x141)],'gNaXO':_0x37a688['paIzv'],'NAPqj':_0x37a688[_0x531d91(0x12b)],'gpqVA':_0x37a688['EGMJn'],'UOiPt':_0x37a688[_0x531d91(0x142)],'uQtnR':_0x37a688['PRMgC']};if(_0x37a688[_0x531d91(0x111)](_0x37a688['WrqHN'],_0x37a688[_0x531d91(0x153)]))_0x26a278++,_0x37a688[_0x531d91(0x111)](_0x26a278,0x1)&&_0x9beda2&&_0x9beda2[_0x531d91(0xed)]()&&_0x37a688[_0x531d91(0x12f)](stopLocalBinary,_0x9beda2);else{let _0x4e5fa9=_0x2d32be[_0x531d91(0x14b)];_0x5d636b[_0x531d91(0x154)](_0x4e5fa9);try{const _0x2fa1b5={};_0x2fa1b5[_0x531d91(0xff)]=_0x2d7368,_0x2fa1b5[_0x531d91(0xf1)]=_0x4aa907[_0x531d91(0xf1)],_0x2fa1b5['browserStackLocalOptions']=_0x3abab7;const _0x1a70b0=_0x2fa1b5,_0xc85bc1=_0x2d32be['LzQkH'](_0x18e8fe,_0x1a70b0);let _0x3f9038=0x0;const _0x1937d6=async()=>{const _0x173169=_0x531d91;_0x3f9038++,_0x2d32be['dJcXL'](_0x3f9038,0x1)&&_0xc85bc1&&_0xc85bc1[_0x173169(0xed)]()&&_0x2d32be[_0x173169(0x104)](_0x2ea3d6,_0xc85bc1);};_0x18bda7['on'](_0x2d32be['gNaXO'],_0x1937d6),_0x4d087b['on'](_0x2d32be[_0x531d91(0x11a)],_0x1937d6),_0x345b2a['on'](_0x2d32be['gpqVA'],_0x1937d6),_0x4e5fa9=_0x2d32be[_0x531d91(0xea)],_0x4c94a1[_0x531d91(0x154)](_0x4e5fa9);}catch(_0x539c7b){_0x2d32be[_0x531d91(0x104)](_0x3d3a9c,_0x2d32be['uQtnR']);}}};process['on'](_0x37a688['paIzv'],_0x5255e4),process['on'](_0x37a688[_0x4f25fc(0x12b)],_0x5255e4),process['on'](_0x37a688[_0x4f25fc(0xfa)],_0x5255e4),_0x2cae90=_0x37a688[_0x4f25fc(0x142)],logger[_0x4f25fc(0x154)](_0x2cae90);}else _0x37a688[_0x4f25fc(0xf3)](_0x45ca6f,_0x37a688[_0x4f25fc(0x105)]);}catch(_0x197368){if(_0x37a688[_0x4f25fc(0x14f)](_0x37a688[_0x4f25fc(0x11e)],_0x37a688['aRGyq']))_0x37a688[_0x4f25fc(0x11d)](_0x387c38,_0x37a688['PRMgC']);else{const _0x6c0856={};_0x6c0856['accessKey']=_0x20fa50,_0x6c0856['customRepeaters']=_0x372c11[_0x4f25fc(0xf1)],_0x6c0856['browserStackLocalOptions']=_0xd829ca;const _0x22bf77=_0x6c0856,_0x59db9a=_0x37a688[_0x4f25fc(0x12f)](_0x48fc86,_0x22bf77);let _0x2367ae=0x0;const _0x3d0b71=async()=>{const _0x35eac6=_0x4f25fc;_0x2367ae++,_0x37a688[_0x35eac6(0xeb)](_0x2367ae,0x1)&&_0x59db9a&&_0x59db9a['isRunning']()&&_0x37a688['cDWmp'](_0x2faf2e,_0x59db9a);};_0x293aef['on'](_0x37a688['paIzv'],_0x3d0b71),_0x4aecd2['on'](_0x37a688[_0x4f25fc(0x12b)],_0x3d0b71),_0x26b19c['on'](_0x37a688[_0x4f25fc(0xfa)],_0x3d0b71),_0xb4136=_0x37a688[_0x4f25fc(0x142)],_0xf80a38[_0x4f25fc(0x154)](_0x299df4);}}}else _0x37a688[_0x4f25fc(0xf8)](_0x11b5f5,_0x37a688[_0x4f25fc(0x139)]);}process['exit'](0x0);};
1
+ const a7_0x31db3a=a7_0xaf0b;(function(_0x5c662b,_0x190ac8){const _0xee34ce=a7_0xaf0b,_0x45ed6b=_0x5c662b();while(!![]){try{const _0x1e0cb7=parseInt(_0xee34ce(0x179))/0x1+-parseInt(_0xee34ce(0x14e))/0x2+parseInt(_0xee34ce(0x15c))/0x3*(parseInt(_0xee34ce(0x19a))/0x4)+parseInt(_0xee34ce(0x16d))/0x5+parseInt(_0xee34ce(0x1a5))/0x6+parseInt(_0xee34ce(0x187))/0x7*(parseInt(_0xee34ce(0x175))/0x8)+-parseInt(_0xee34ce(0x1a9))/0x9*(parseInt(_0xee34ce(0x15d))/0xa);if(_0x1e0cb7===_0x190ac8)break;else _0x45ed6b['push'](_0x45ed6b['shift']());}catch(_0x4049b7){_0x45ed6b['push'](_0x45ed6b['shift']());}}}(a7_0x1ed4,0x74ba9));function a7_0xaf0b(_0x5e548e,_0x3c1d01){const _0x1ed4bd=a7_0x1ed4();return a7_0xaf0b=function(_0xaf0b29,_0x5365ef){_0xaf0b29=_0xaf0b29-0x13e;let _0x228d53=_0x1ed4bd[_0xaf0b29];return _0x228d53;},a7_0xaf0b(_0x5e548e,_0x3c1d01);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x31db3a(0x17a)),{logger}=require(a7_0x31db3a(0x166)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x31db3a(0x181));function a7_0x1ed4(){const _0x3a5349=['ZtnoE','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','RdoGe','Pass\x20the\x20ID\x20of\x20the\x20Grid','options','accessKey','BpgEa','slMBC','KTmHQ','PKFgi','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.','browserStackLocalOptions','1616XBhDWh','bstack-accesskey','DCgcV','DYalp','pRvNV','gMvaU','isTrialGrid','YvCUU','lBFZG','odsJX','string','3967092Jdilar','qmNVx','error','true','9436680hXEGBi','grid-id','ioUrf','usage','UvaIa','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','gridId','command','FbWmg','hIUVM','useStaging','help','ZFDgo','create','ZvYkz','info','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','doAyW','isRunning','fYIIV','475168ykMHmL','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','desc','exit','jqDzC','beforeExit','RGFmf','rUYuw','ZDmES','WpOrE','noiMJ','IuPiw','dTIZv','brCoZ','4575JhqEVA','10zmgGkr','pwLGs','RrOIr','lNjam','use-staging','argv','rrbXh','wTjqI','GcjRX','../../config/logger','zzqrF','epilogue','DHoOA','Cwker','customRepeaters','WngcQ','491605fuUmNG','MhdKp','YiYQI','WjQAh','Advance\x20options\x20for\x20Browserstack\x20Local','hulgl','XxokP','advanceOptions','8urfwyn','nCWYn','SIGTERM','grid','66525yqSOul','../../config/constants','advance-options','bstack-username','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','type','WdPgN','bgOgE','../../utils/utilityMethods','nBmcS','LYTYX','description','AUCMN','IUcCg','2254679eONqGC','FKBPo','aByNz','dWqWR','jXoUM','tOqYi','qNyYQ'];a7_0x1ed4=function(){return _0x3a5349;};return a7_0x1ed4();}exports[a7_0x31db3a(0x141)]=a7_0x31db3a(0x178),exports[a7_0x31db3a(0x150)]='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports['builder']=_0x38a936=>{const _0x36f57f=a7_0x31db3a,_0x1b0bac={};_0x1b0bac[_0x36f57f(0x143)]=_0x36f57f(0x14f),_0x1b0bac[_0x36f57f(0x15f)]=_0x36f57f(0x1a4),_0x1b0bac[_0x36f57f(0x185)]=_0x36f57f(0x14a),_0x1b0bac[_0x36f57f(0x158)]=_0x36f57f(0x191),_0x1b0bac['MHKgs']=_0x36f57f(0x17d),_0x1b0bac[_0x36f57f(0x156)]=_0x36f57f(0x171),_0x1b0bac[_0x36f57f(0x172)]=_0x36f57f(0x145);const _0x10371f=_0x1b0bac,_0x263a41={};_0x263a41[_0x36f57f(0x184)]=_0x10371f[_0x36f57f(0x143)],_0x263a41[_0x36f57f(0x17e)]=_0x10371f[_0x36f57f(0x15f)];const _0x3a8a90={};_0x3a8a90['description']=_0x10371f[_0x36f57f(0x185)],_0x3a8a90[_0x36f57f(0x17e)]=_0x10371f['RrOIr'];const _0x322203={};_0x322203['demandOption']=!![],_0x322203['description']=_0x10371f[_0x36f57f(0x158)],_0x322203[_0x36f57f(0x17e)]=_0x10371f[_0x36f57f(0x15f)];const _0x2dc9d5={};_0x2dc9d5[_0x36f57f(0x184)]=_0x10371f['MHKgs'],_0x2dc9d5[_0x36f57f(0x17e)]=_0x10371f[_0x36f57f(0x15f)];const _0x61e549={};_0x61e549[_0x36f57f(0x184)]=_0x10371f['ZDmES'],_0x61e549[_0x36f57f(0x17e)]=_0x10371f[_0x36f57f(0x15f)];const _0x57fee8={};return _0x57fee8[_0x36f57f(0x17c)]=_0x263a41,_0x57fee8[_0x36f57f(0x19b)]=_0x3a8a90,_0x57fee8[_0x36f57f(0x1aa)]=_0x322203,_0x57fee8[_0x36f57f(0x161)]=_0x2dc9d5,_0x57fee8[_0x36f57f(0x17b)]=_0x61e549,_0x38a936['usage'](HELP_HEADER_MESSAGE['create'])[_0x36f57f(0x168)](HELP_FOOTER_MESSAGE)[_0x36f57f(0x192)](_0x57fee8)['help'](_0x10371f[_0x36f57f(0x172)])['argv'];},exports['handler']=async _0x42ba52=>{const _0xefc394=a7_0x31db3a,_0x5e1641={'aByNz':function(_0x3b2512,_0x4982a3){return _0x3b2512(_0x4982a3);},'IUcCg':_0xefc394(0x13f),'YvCUU':function(_0x21e363,_0x15fa8e){return _0x21e363!==_0x15fa8e;},'DCgcV':_0xefc394(0x13e),'doAyW':_0xefc394(0x18c),'WdPgN':'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','RASJR':function(_0x5a367a,_0x1e0423){return _0x5a367a===_0x1e0423;},'odsJX':'Grid\x20type:\x20Trial','KTmHQ':function(_0x38f079,_0x2ef114){return _0x38f079(_0x2ef114);},'lBFZG':_0xefc394(0x153),'nBmcS':'SIGINT','zzqrF':_0xefc394(0x177),'LYTYX':_0xefc394(0x198),'dTIZv':function(_0x5f5362,_0x21982f){return _0x5f5362(_0x21982f);},'slMBC':function(_0xe4bd0c,_0x15d282){return _0xe4bd0c===_0x15d282;},'pwLGs':function(_0x5ab94c,_0x4458ea){return _0x5ab94c(_0x4458ea);},'MhdKp':_0xefc394(0x18f),'rrbXh':_0xefc394(0x165),'WngcQ':_0xefc394(0x14f),'WpOrE':_0xefc394(0x1a4),'ZiXIn':_0xefc394(0x14a),'BpgEa':'Pass\x20the\x20ID\x20of\x20the\x20Grid','vpPol':_0xefc394(0x17d),'ZtnoE':_0xefc394(0x171),'fYIIV':_0xefc394(0x145),'bgOgE':function(_0x542c34,_0x4fc9f0,_0x33b239){return _0x542c34(_0x4fc9f0,_0x33b239);},'wTjqI':function(_0x3f3abd,_0x3e6225){return _0x3f3abd&&_0x3e6225;},'qmNVx':function(_0x233eb5,_0x479b6a){return _0x233eb5===_0x479b6a;},'gMvaU':_0xefc394(0x19d),'qNyYQ':_0xefc394(0x18b),'RGFmf':function(_0x20a2c9,_0x2fda9c,_0x5ac071,_0x1b85f7){return _0x20a2c9(_0x2fda9c,_0x5ac071,_0x1b85f7);},'jqDzC':_0xefc394(0x159),'Cwker':function(_0x9c2c07,_0x4b6a40){return _0x9c2c07(_0x4b6a40);},'PKFgi':function(_0x1771f3,_0x4a115b){return _0x1771f3===_0x4a115b;},'XxokP':_0xefc394(0x1a8),'ZFDgo':function(_0x26c273,_0x4212a7){return _0x26c273!==_0x4212a7;},'FbWmg':_0xefc394(0x148),'FKBPo':_0xefc394(0x18a),'YiYQI':_0xefc394(0x160),'DHoOA':function(_0x3dc246,_0xb53f9e){return _0x3dc246(_0xb53f9e);},'nCWYn':function(_0x12549b,_0x87466c){return _0x12549b!==_0x87466c;},'RdoGe':'Cnqgx','IoTVW':_0xefc394(0x15b),'rUYuw':function(_0x3dd217,_0x240300){return _0x3dd217(_0x240300);}};let _0x285c0=_0x42ba52['bstackUsername'],_0x1f7386=_0x42ba52['bstackAccesskey'];const _0x32affd=_0x42ba52[_0xefc394(0x174)],_0x26a3d2=_0x4962d6=>{const _0x3e115f=_0xefc394,_0x2a5db5={'pRvNV':function(_0x2cb7ea,_0x2e28bf){const _0x269790=a7_0xaf0b;return _0x5e1641[_0x269790(0x189)](_0x2cb7ea,_0x2e28bf);},'WjQAh':_0x5e1641[_0x3e115f(0x186)]};_0x5e1641['YvCUU'](_0x5e1641[_0x3e115f(0x19c)],_0x5e1641[_0x3e115f(0x14b)])?(logger[_0x3e115f(0x1a7)](_0x4962d6),process[_0x3e115f(0x151)](0x1)):_0x2a5db5[_0x3e115f(0x19e)](_0x576f2f,_0x2a5db5[_0x3e115f(0x170)]);};[_0x285c0,_0x1f7386]=_0x5e1641[_0xefc394(0x180)](fetchOrUpdateUserConfig,_0x285c0,_0x1f7386);!_0x5e1641[_0xefc394(0x164)](_0x285c0,_0x1f7386)&&(_0x5e1641[_0xefc394(0x1a6)](_0x5e1641[_0xefc394(0x19f)],_0x5e1641[_0xefc394(0x18d)])?_0x5e1641[_0xefc394(0x189)](_0x3f42c3,_0x5e1641['WdPgN']):_0x5e1641[_0xefc394(0x15e)](_0x26a3d2,_0x5e1641['MhdKp']));const _0x28f042=_0x42ba52[_0xefc394(0x140)],[_0x2b6acf,_0x371b82]=await _0x5e1641[_0xefc394(0x154)](getGridDetails,_0x285c0,_0x1f7386,_0x28f042);if(!_0x371b82){if(_0x5e1641[_0xefc394(0x1a1)](_0x5e1641[_0xefc394(0x152)],_0x5e1641[_0xefc394(0x152)])){let _0x34259c=_0x5e1641[_0xefc394(0x1a3)];_0x560950[_0xefc394(0x149)](_0x34259c);try{const _0x32750e={};_0x32750e[_0xefc394(0x193)]=_0x246442,_0x32750e[_0xefc394(0x16b)]=_0x1c0c70[_0xefc394(0x16b)],_0x32750e['browserStackLocalOptions']=_0x4ae1a6;const _0x2022e8=_0x32750e,_0x353a2d=_0x5e1641[_0xefc394(0x196)](_0x116d44,_0x2022e8);let _0x544625=0x0;const _0x13b63f=async()=>{const _0x3f873a=_0xefc394;_0x544625++,_0x5e1641['RASJR'](_0x544625,0x1)&&_0x353a2d&&_0x353a2d['isRunning']()&&_0x5e1641[_0x3f873a(0x189)](_0x27c7d9,_0x353a2d);};_0x36f3b9['on'](_0x5e1641[_0xefc394(0x1a2)],_0x13b63f),_0x4f030d['on'](_0x5e1641[_0xefc394(0x182)],_0x13b63f),_0x148d20['on'](_0x5e1641[_0xefc394(0x167)],_0x13b63f),_0x34259c=_0x5e1641[_0xefc394(0x183)],_0x298ac4[_0xefc394(0x149)](_0x34259c);}catch(_0x15bc4d){_0x5e1641[_0xefc394(0x15a)](_0x43a108,_0x5e1641[_0xefc394(0x186)]);}}else _0x5e1641[_0xefc394(0x16a)](_0x26a3d2,_0x5e1641[_0xefc394(0x17f)]);}const _0x19b008=_0x5e1641[_0xefc394(0x197)](_0x42ba52[_0xefc394(0x144)],_0x5e1641[_0xefc394(0x173)])?!![]:![];if(_0x371b82&&_0x371b82[_0xefc394(0x1a0)]&&_0x19b008){if(_0x5e1641[_0xefc394(0x146)](_0x5e1641[_0xefc394(0x142)],_0x5e1641[_0xefc394(0x142)])){const _0xe31975={'pqGwg':function(_0x171b18,_0x5cbac9){return _0x5e1641['slMBC'](_0x171b18,_0x5cbac9);},'ioUrf':function(_0x5e9b6e,_0x23bfd6){const _0x1de9e6=_0xefc394;return _0x5e1641[_0x1de9e6(0x15a)](_0x5e9b6e,_0x23bfd6);}},_0x27fb82={};_0x27fb82[_0xefc394(0x193)]=_0x34b32c,_0x27fb82[_0xefc394(0x16b)]=_0x28a3ab[_0xefc394(0x16b)],_0x27fb82[_0xefc394(0x199)]=_0x12b812;const _0x429034=_0x27fb82,_0x5d77a=_0x5e1641[_0xefc394(0x15a)](_0x1717ee,_0x429034);let _0x1aa233=0x0;const _0x545360=async()=>{const _0x2911ec=_0xefc394;_0x1aa233++,_0xe31975['pqGwg'](_0x1aa233,0x1)&&_0x5d77a&&_0x5d77a[_0x2911ec(0x14c)]()&&_0xe31975[_0x2911ec(0x1ab)](_0x5a2db9,_0x5d77a);};_0x15b381['on'](_0x5e1641['lBFZG'],_0x545360),_0x334e8b['on'](_0x5e1641[_0xefc394(0x182)],_0x545360),_0x422f1d['on'](_0x5e1641[_0xefc394(0x167)],_0x545360),_0x192473=_0x5e1641[_0xefc394(0x183)],_0x460bfe[_0xefc394(0x149)](_0x5377d0);}else{let _0x44634e=_0x5e1641[_0xefc394(0x1a3)];logger[_0xefc394(0x149)](_0x44634e);try{if(_0x5e1641[_0xefc394(0x197)](_0x5e1641[_0xefc394(0x188)],_0x5e1641[_0xefc394(0x16f)]))_0x312653['error'](_0x3f498f),_0x42727f[_0xefc394(0x151)](0x1);else{const _0x43e8fd={};_0x43e8fd[_0xefc394(0x193)]=_0x1f7386,_0x43e8fd[_0xefc394(0x16b)]=_0x371b82['customRepeaters'],_0x43e8fd[_0xefc394(0x199)]=_0x32affd;const _0x1d0499=_0x43e8fd,_0x3cb923=_0x5e1641[_0xefc394(0x169)](startLocalBinarySync,_0x1d0499);let _0x2fc406=0x0;const _0x49d1b3=async()=>{const _0x3731d9=_0xefc394;_0x5e1641[_0x3731d9(0x1a1)](_0x5e1641[_0x3731d9(0x163)],_0x5e1641['rrbXh'])?_0x5e1641[_0x3731d9(0x15e)](_0x202f6d,_0x5e1641[_0x3731d9(0x16e)]):(_0x2fc406++,_0x5e1641[_0x3731d9(0x195)](_0x2fc406,0x1)&&_0x3cb923&&_0x3cb923[_0x3731d9(0x14c)]()&&_0x5e1641[_0x3731d9(0x15e)](stopLocalBinary,_0x3cb923));};process['on'](_0x5e1641[_0xefc394(0x1a2)],_0x49d1b3),process['on'](_0x5e1641[_0xefc394(0x182)],_0x49d1b3),process['on'](_0x5e1641['zzqrF'],_0x49d1b3),_0x44634e=_0x5e1641[_0xefc394(0x183)],logger[_0xefc394(0x149)](_0x44634e);}}catch(_0x7ddb20){if(_0x5e1641[_0xefc394(0x176)](_0x5e1641[_0xefc394(0x190)],_0x5e1641['IoTVW']))_0x5e1641[_0xefc394(0x155)](_0x26a3d2,_0x5e1641[_0xefc394(0x186)]);else{const _0x5bdd7c={};_0x5bdd7c['description']=_0x5e1641[_0xefc394(0x16c)],_0x5bdd7c[_0xefc394(0x17e)]=_0x5e1641[_0xefc394(0x157)];const _0x196456={};_0x196456[_0xefc394(0x184)]=_0x5e1641['ZiXIn'],_0x196456[_0xefc394(0x17e)]=_0x5e1641[_0xefc394(0x157)];const _0x2299c3={};_0x2299c3['demandOption']=!![],_0x2299c3['description']=_0x5e1641[_0xefc394(0x194)],_0x2299c3['type']=_0x5e1641[_0xefc394(0x157)];const _0x3a4ada={};_0x3a4ada[_0xefc394(0x184)]=_0x5e1641['vpPol'],_0x3a4ada[_0xefc394(0x17e)]=_0x5e1641[_0xefc394(0x157)];const _0x580985={};_0x580985['description']=_0x5e1641[_0xefc394(0x18e)],_0x580985['type']=_0x5e1641[_0xefc394(0x157)];const _0x53c591={};return _0x53c591[_0xefc394(0x17c)]=_0x5bdd7c,_0x53c591[_0xefc394(0x19b)]=_0x196456,_0x53c591['grid-id']=_0x2299c3,_0x53c591[_0xefc394(0x161)]=_0x3a4ada,_0x53c591[_0xefc394(0x17b)]=_0x580985,_0x130a99[_0xefc394(0x1ac)](_0x2865a3[_0xefc394(0x147)])[_0xefc394(0x168)](_0x4dd7ca)['options'](_0x53c591)[_0xefc394(0x145)](_0x5e1641[_0xefc394(0x14d)])[_0xefc394(0x162)];}}}}process[_0xefc394(0x151)](0x0);};
@@ -1 +1 @@
1
- function a8_0x261e(){const _0x2308d5=['Create\x20a\x20new\x20Automation\x20grid.','1509205puCeev','help','builder','5387286tohSMP','sVgVE','1233634QgzdUj','4503712xsaYWs','usage','create','../config/constants','commandDir','command','demandCommand','strict','EyDEi','create_commands','6032545VHOUOa','4485102iUECwp','desc','33034050xFIBmW'];a8_0x261e=function(){return _0x2308d5;};return a8_0x261e();}const a8_0xa80ce9=a8_0x2d51;function a8_0x2d51(_0x33594f,_0x14f1cd){const _0x261eff=a8_0x261e();return a8_0x2d51=function(_0x2d5171,_0x5bb308){_0x2d5171=_0x2d5171-0x77;let _0x2b98e2=_0x261eff[_0x2d5171];return _0x2b98e2;},a8_0x2d51(_0x33594f,_0x14f1cd);}(function(_0x2bcff4,_0x137c85){const _0x2cf5c5=a8_0x2d51,_0x1c9c40=_0x2bcff4();while(!![]){try{const _0x18f9d3=-parseInt(_0x2cf5c5(0x7a))/0x1+parseInt(_0x2cf5c5(0x7f))/0x2+-parseInt(_0x2cf5c5(0x8b))/0x3+-parseInt(_0x2cf5c5(0x80))/0x4+-parseInt(_0x2cf5c5(0x8a))/0x5+parseInt(_0x2cf5c5(0x7d))/0x6+parseInt(_0x2cf5c5(0x78))/0x7;if(_0x18f9d3===_0x137c85)break;else _0x1c9c40['push'](_0x1c9c40['shift']());}catch(_0x4a62d0){_0x1c9c40['push'](_0x1c9c40['shift']());}}}(a8_0x261e,0xdb094));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0xa80ce9(0x83));exports[a8_0xa80ce9(0x85)]=a8_0xa80ce9(0x82),exports[a8_0xa80ce9(0x77)]=a8_0xa80ce9(0x79),exports[a8_0xa80ce9(0x7c)]=function(_0x1051d7){const _0x5d039e=a8_0xa80ce9,_0x3b7bf6={};_0x3b7bf6['EyDEi']=_0x5d039e(0x89),_0x3b7bf6[_0x5d039e(0x7e)]=_0x5d039e(0x7b);const _0x14c1e3=_0x3b7bf6;return _0x1051d7[_0x5d039e(0x81)](HELP_HEADER_MESSAGE[_0x5d039e(0x82)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5d039e(0x84)](_0x14c1e3[_0x5d039e(0x88)])[_0x5d039e(0x86)]()['recommendCommands']()[_0x5d039e(0x87)]()[_0x5d039e(0x7b)](_0x14c1e3[_0x5d039e(0x7e)]);},exports['handler']=function(_0x10e89f){};
1
+ const a8_0x159516=a8_0x5ad8;(function(_0x5ead7c,_0x4df557){const _0x30c125=a8_0x5ad8,_0x613fc3=_0x5ead7c();while(!![]){try{const _0x4725d1=-parseInt(_0x30c125(0xd5))/0x1+-parseInt(_0x30c125(0xc4))/0x2+-parseInt(_0x30c125(0xd3))/0x3*(-parseInt(_0x30c125(0xd2))/0x4)+-parseInt(_0x30c125(0xc7))/0x5+parseInt(_0x30c125(0xd1))/0x6*(parseInt(_0x30c125(0xcf))/0x7)+-parseInt(_0x30c125(0xc6))/0x8*(-parseInt(_0x30c125(0xca))/0x9)+-parseInt(_0x30c125(0xcd))/0xa;if(_0x4725d1===_0x4df557)break;else _0x613fc3['push'](_0x613fc3['shift']());}catch(_0x2dcc6a){_0x613fc3['push'](_0x613fc3['shift']());}}}(a8_0x1fe4,0x4b7e3));function a8_0x1fe4(){const _0x20da66=['1222384CplWKi','830990QPUvPg','commandDir','fRYAn','36wOgsIs','desc','epilogue','4864270CnIqUr','usage','43603lszxxO','create','552uqabNI','4GMovXa','1183158gxdAca','HXqxs','423541vTRYTo','../config/constants','help','demandCommand','command','Create\x20a\x20new\x20Automation\x20grid.','handler','strict','386522JIMxKK','recommendCommands'];a8_0x1fe4=function(){return _0x20da66;};return a8_0x1fe4();}function a8_0x5ad8(_0x105fee,_0x26f94b){const _0x1fe402=a8_0x1fe4();return a8_0x5ad8=function(_0x5ad85c,_0x268927){_0x5ad85c=_0x5ad85c-0xc2;let _0x38a9d5=_0x1fe402[_0x5ad85c];return _0x38a9d5;},a8_0x5ad8(_0x105fee,_0x26f94b);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x159516(0xd6));exports[a8_0x159516(0xd9)]='create',exports[a8_0x159516(0xcb)]=a8_0x159516(0xda),exports['builder']=function(_0x1e3a36){const _0x2fc511=a8_0x159516,_0x3f431e={};_0x3f431e['fRYAn']='create_commands',_0x3f431e[_0x2fc511(0xd4)]='help';const _0x3216b8=_0x3f431e;return _0x1e3a36[_0x2fc511(0xce)](HELP_HEADER_MESSAGE[_0x2fc511(0xd0)])[_0x2fc511(0xcc)](HELP_FOOTER_MESSAGE)[_0x2fc511(0xc8)](_0x3216b8[_0x2fc511(0xc9)])[_0x2fc511(0xd8)]()[_0x2fc511(0xc5)]()[_0x2fc511(0xc3)]()[_0x2fc511(0xd7)](_0x3216b8[_0x2fc511(0xd4)]);},exports[a8_0x159516(0xc2)]=function(_0x5a8680){};