browserstack-node-sdk 1.49.6 → 1.49.7

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 (186) 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/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a2_0x15e6(){const _0x2a37d6=['2929077SjjkxA','CloudProvider','exports','102LjPCYX','15MDiyOq','writeFileSync','2|3|0|1|4','8TnVvlh','811245NveZPO','5304733MAbLnv','../utils/userInput','setCachedCredsInRegistry','22aDtdQC','QhTsW','nvFik','debug','info','init','AKiay','330116ujNfvw','cloudProvider','88490CkPXkN','hjXRo','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','RRMMf','YgBoq','../utils/utilityMethods','split','LOG','sendEventToBackend','7668910WlMgVD','rws','stringify','type','849018zosSnA','webSocketUtils','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20perform\x20actions','ttqHQ','FlAYM','gridName','cloudProviderName'];a2_0x15e6=function(){return _0x2a37d6;};return a2_0x15e6();}const a2_0x419e5b=a2_0x5974;(function(_0x2718ac,_0x51d89c){const _0x165123=a2_0x5974,_0x410c30=_0x2718ac();while(!![]){try{const _0x3c47c0=-parseInt(_0x165123(0x6b))/0x1+-parseInt(_0x165123(0x85))/0x2+parseInt(_0x165123(0x67))/0x3*(-parseInt(_0x165123(0x76))/0x4)+parseInt(_0x165123(0x78))/0x5*(parseInt(_0x165123(0x66))/0x6)+parseInt(_0x165123(0x6c))/0x7+-parseInt(_0x165123(0x6a))/0x8*(parseInt(_0x165123(0x8c))/0x9)+parseInt(_0x165123(0x81))/0xa*(parseInt(_0x165123(0x6f))/0xb);if(_0x3c47c0===_0x51d89c)break;else _0x410c30['push'](_0x410c30['shift']());}catch(_0x4a009c){_0x410c30['push'](_0x410c30['shift']());}}}(a2_0x15e6,0x97077));const fs=require('fs'),{getCredentialsPath,isUndefined}=require(a2_0x419e5b(0x7d)),{logger}=require('../config/logger'),{inputCloudProviderKeys}=require(a2_0x419e5b(0x6d)),{WS_EVENTS}=require('../config/constants');function a2_0x5974(_0x21e902,_0x3dac5d){const _0x15e69d=a2_0x15e6();return a2_0x5974=function(_0x5974b8,_0x38577b){_0x5974b8=_0x5974b8-0x65;let _0xe68bbe=_0x15e69d[_0x5974b8];return _0xe68bbe;},a2_0x5974(_0x21e902,_0x3dac5d);}class CloudProvider{constructor(_0x558b71,_0x51a76f,_0x238075,_0x4be715,_0x3ddf73){const _0x25ffbd=a2_0x419e5b,_0xbba6d4={};_0xbba6d4[_0x25ffbd(0x7c)]=_0x25ffbd(0x69);const _0x1d21db=_0xbba6d4,_0x345bf6=_0x1d21db[_0x25ffbd(0x7c)][_0x25ffbd(0x7e)]('|');let _0x194b83=0x0;while(!![]){switch(_0x345bf6[_0x194b83++]){case'0':this[_0x25ffbd(0x8a)]=_0x238075;continue;case'1':this[_0x25ffbd(0x82)]=_0x4be715;continue;case'2':this['cloudProviderName']=_0x558b71;continue;case'3':this['clusterName']=_0x51a76f;continue;case'4':this[_0x25ffbd(0x86)]=_0x3ddf73;continue;}break;}}async[a2_0x419e5b(0x74)](){const _0x55d301=a2_0x419e5b,_0x599a4a={'RRMMf':function(_0x2ad73d){return _0x2ad73d();},'QhTsW':function(_0x41b4e6,_0xd091aa){return _0x41b4e6(_0xd091aa);},'hjXRo':_0x55d301(0x7a),'nvFik':function(_0x4d8268,_0x311685){return _0x4d8268(_0x311685);},'FlAYM':function(_0x1ccd8b,_0x5e080c,_0x2cbe9f,_0x40dddf){return _0x1ccd8b(_0x5e080c,_0x2cbe9f,_0x40dddf);},'ttqHQ':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','AKiay':_0x55d301(0x87)},_0x4ddde=JSON['parse'](fs['readFileSync'](_0x599a4a[_0x55d301(0x7b)](getCredentialsPath))),_0x3f1385=_0x4ddde[_0x55d301(0x77)]||{};if(_0x599a4a[_0x55d301(0x70)](isUndefined,_0x3f1385[this[_0x55d301(0x8b)]])){logger[_0x55d301(0x73)](_0x599a4a[_0x55d301(0x79)]);_0x599a4a[_0x55d301(0x71)](isUndefined,_0x4ddde[_0x55d301(0x77)])&&(_0x4ddde[_0x55d301(0x77)]={});_0x4ddde['cloudProvider'][this[_0x55d301(0x8b)]]={};const _0x2b4f5b=await _0x599a4a[_0x55d301(0x89)](inputCloudProviderKeys,this['cloudProviderName'],_0x4ddde,this);fs[_0x55d301(0x68)](_0x599a4a[_0x55d301(0x7b)](getCredentialsPath),JSON[_0x55d301(0x83)](_0x2b4f5b)),logger[_0x55d301(0x72)](_0x599a4a[_0x55d301(0x88)]);}else{const _0x43e82d=_0x599a4a[_0x55d301(0x75)],_0x5187a9={};_0x5187a9[_0x55d301(0x84)]=WS_EVENTS[_0x55d301(0x7f)],_0x5187a9['message']=_0x43e82d,this[_0x55d301(0x86)][_0x55d301(0x80)](this[_0x55d301(0x82)],_0x5187a9),logger[_0x55d301(0x73)](_0x43e82d),await this[_0x55d301(0x6e)](_0x3f1385);}}}const a2_0xb36817={};a2_0xb36817[a2_0x419e5b(0x8d)]=CloudProvider,module[a2_0x419e5b(0x65)]=a2_0xb36817;
1
+ function a2_0x14b3(){const _0x179885=['vaUVC','setCachedCredsInRegistry','BQGJD','debug','gridName','9qnLbUU','../utils/userInput','cloudProvider','45633Pmtmxf','1|3|2|0|4','sendEventToBackend','writeFileSync','parse','cloudProviderName','359ZzmQUV','gwmTE','readFileSync','rws','../utils/utilityMethods','8220wlHXTk','init','84iiVSCS','fYvfU','LouZG','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20perform\x20actions','clusterName','webSocketUtils','CloudProvider','jKeWC','31063710qqenMw','exports','split','859791uhiGyO','3737210SyYLVp','975016SJrYZx','hgXwy','12473488zPLVEu','info'];a2_0x14b3=function(){return _0x179885;};return a2_0x14b3();}const a2_0x393f5d=a2_0x1cc2;(function(_0x160c30,_0x152e4d){const _0x5badff=a2_0x1cc2,_0x4a61b4=_0x160c30();while(!![]){try{const _0x39ef09=-parseInt(_0x5badff(0x161))/0x1*(-parseInt(_0x5badff(0x140))/0x2)+parseInt(_0x5badff(0x14d))/0x3+-parseInt(_0x5badff(0x14f))/0x4+parseInt(_0x5badff(0x14e))/0x5+-parseInt(_0x5badff(0x142))/0x6*(-parseInt(_0x5badff(0x15b))/0x7)+parseInt(_0x5badff(0x151))/0x8+-parseInt(_0x5badff(0x158))/0x9*(parseInt(_0x5badff(0x14a))/0xa);if(_0x39ef09===_0x152e4d)break;else _0x4a61b4['push'](_0x4a61b4['shift']());}catch(_0x766c3b){_0x4a61b4['push'](_0x4a61b4['shift']());}}}(a2_0x14b3,0xc5b80));const fs=require('fs'),{getCredentialsPath,isUndefined}=require(a2_0x393f5d(0x13f)),{logger}=require('../config/logger'),{inputCloudProviderKeys}=require(a2_0x393f5d(0x159)),{WS_EVENTS}=require('../config/constants');class CloudProvider{constructor(_0x202e08,_0x4c1261,_0x5cac80,_0x3243ae,_0x5871dd){const _0x26a663=a2_0x393f5d,_0x2e4025={};_0x2e4025[_0x26a663(0x150)]=_0x26a663(0x15c);const _0x1fe0b6=_0x2e4025,_0x2878d4=_0x1fe0b6[_0x26a663(0x150)][_0x26a663(0x14c)]('|');let _0x3c3020=0x0;while(!![]){switch(_0x2878d4[_0x3c3020++]){case'0':this[_0x26a663(0x13e)]=_0x3243ae;continue;case'1':this['cloudProviderName']=_0x202e08;continue;case'2':this[_0x26a663(0x157)]=_0x5cac80;continue;case'3':this[_0x26a663(0x146)]=_0x4c1261;continue;case'4':this['webSocketUtils']=_0x5871dd;continue;}break;}}async[a2_0x393f5d(0x141)](){const _0x299e9e=a2_0x393f5d,_0x598911={'LouZG':function(_0x50944f){return _0x50944f();},'BQGJD':function(_0x13176b,_0x5a5677){return _0x13176b(_0x5a5677);},'vaUVC':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','fYvfU':function(_0x432353,_0x3a354b){return _0x432353(_0x3a354b);},'jKeWC':function(_0x2430a8,_0x164c2e,_0x4a527b,_0x148273){return _0x2430a8(_0x164c2e,_0x4a527b,_0x148273);},'JhXgn':function(_0xa6b840){return _0xa6b840();},'gwmTE':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','DPTlq':_0x299e9e(0x145)},_0x59f425=JSON[_0x299e9e(0x15f)](fs[_0x299e9e(0x13d)](_0x598911[_0x299e9e(0x144)](getCredentialsPath))),_0x4c6ce9=_0x59f425[_0x299e9e(0x15a)]||{};if(_0x598911[_0x299e9e(0x155)](isUndefined,_0x4c6ce9[this[_0x299e9e(0x160)]])){logger[_0x299e9e(0x152)](_0x598911[_0x299e9e(0x153)]);_0x598911[_0x299e9e(0x143)](isUndefined,_0x59f425['cloudProvider'])&&(_0x59f425[_0x299e9e(0x15a)]={});_0x59f425[_0x299e9e(0x15a)][this[_0x299e9e(0x160)]]={};const _0x29cdb2=await _0x598911[_0x299e9e(0x149)](inputCloudProviderKeys,this['cloudProviderName'],_0x59f425,this);fs[_0x299e9e(0x15e)](_0x598911['JhXgn'](getCredentialsPath),JSON['stringify'](_0x29cdb2)),logger[_0x299e9e(0x156)](_0x598911[_0x299e9e(0x162)]);}else{const _0x3c4c7a=_0x598911['DPTlq'],_0x2b2bf3={};_0x2b2bf3['type']=WS_EVENTS['LOG'],_0x2b2bf3['message']=_0x3c4c7a,this[_0x299e9e(0x147)][_0x299e9e(0x15d)](this[_0x299e9e(0x13e)],_0x2b2bf3),logger[_0x299e9e(0x152)](_0x3c4c7a),await this[_0x299e9e(0x154)](_0x4c6ce9);}}}function a2_0x1cc2(_0xd0fa18,_0x2b9791){const _0x14b316=a2_0x14b3();return a2_0x1cc2=function(_0x1cc2d5,_0x2183b2){_0x1cc2d5=_0x1cc2d5-0x13d;let _0x5c6941=_0x14b316[_0x1cc2d5];return _0x5c6941;},a2_0x1cc2(_0xd0fa18,_0x2b9791);}const a2_0xba4a12={};a2_0xba4a12[a2_0x393f5d(0x148)]=CloudProvider,module[a2_0x393f5d(0x14b)]=a2_0xba4a12;
@@ -1 +1 @@
1
- const a3_0xb069c4=a3_0x86c1;function a3_0x86c1(_0x145862,_0x5eb45f){const _0x207dbe=a3_0x207d();return a3_0x86c1=function(_0x86c177,_0x476127){_0x86c177=_0x86c177-0x1e4;let _0x44a04f=_0x207dbe[_0x86c177];return _0x44a04f;},a3_0x86c1(_0x145862,_0x5eb45f);}(function(_0x5a35b8,_0x1f308e){const _0x173d36=a3_0x86c1,_0x48adb3=_0x5a35b8();while(!![]){try{const _0x11f49b=parseInt(_0x173d36(0x302))/0x1*(-parseInt(_0x173d36(0x258))/0x2)+-parseInt(_0x173d36(0x327))/0x3+-parseInt(_0x173d36(0x1eb))/0x4*(-parseInt(_0x173d36(0x275))/0x5)+-parseInt(_0x173d36(0x257))/0x6*(parseInt(_0x173d36(0x1f5))/0x7)+-parseInt(_0x173d36(0x32a))/0x8+parseInt(_0x173d36(0x2db))/0x9+parseInt(_0x173d36(0x30e))/0xa;if(_0x11f49b===_0x1f308e)break;else _0x48adb3['push'](_0x48adb3['shift']());}catch(_0x14df13){_0x48adb3['push'](_0x48adb3['shift']());}}}(a3_0x207d,0x9d09b));const fs=require('fs'),path=require('path'),got=require('got'),util=require(a3_0xb069c4(0x290)),cp=require(a3_0xb069c4(0x2c9)),{google}=require(a3_0xb069c4(0x325)),compute=require('@google-cloud/compute'),container=require(a3_0xb069c4(0x33f)),{ProjectsClient}=require(a3_0xb069c4(0x235))['v3'],{logger}=require(a3_0xb069c4(0x2b5)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader,runCommand}=require(a3_0xb069c4(0x2fb)),{deleteRoutingDeps,deleteAgent}=require('../utils/gridComponents'),{inputConfirmation,closeInput}=require('../utils/userInput'),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0xb069c4(0x2b1)),PERMISSIONS=require(a3_0xb069c4(0x1fb));function a3_0x207d(){const _0x4ea49a=['../utils/utilityMethods','ybDfR','frXwj','OVDik','projects/','scopes','vmEQR','1sCPbCb','sendEventToBackend','jZzUq','EWBLP','nodePools','WTLhG','PbQhN','qApgV','credentialsPath','setCachedCredsInRegistry','AevZx','zToGi','27882610QkdVuS','isBrowserstackCluster','LcNlS','locations','mbYCD','KwaNr','Creating\x20service\x20account','HfRZT','storage.buckets.list','fOkJR','init','VigMw','GecLT','getClusterInfo','serviceAccountName','qfSwb','list','ttoNo','FGctG','serviceAccount:','SmJri','hfWwN','cIUxD','googleapis','bIPHH','3735132zIpgAC','maxNodes','bindings','4524536OxVEHL','Found\x20cluster\x20with\x20name\x20\x27','storage.buckets.listEffectiveTags','regionmap.json','BBzCE','fcwWo','ZZRPf','pgdSi','Mrnve','testIamPermissions','stack','BpMyd','/clusters/','hYXjx','.\x20Error:\x20','\x20--quiet\x20--user-output-enabled=false','hEiUK','krtmk','QvsDQ','toString','3|8|6|2|5|4|7|0|1','@google-cloud/container','create','eJGhK','mKloO','name','igDDQ','bkBwO','nJgrD','WBpFQ','setIamPolicy','getUserInput','SZPlb','WkhIA','Cannot\x20find\x20subnets\x20','stringify','MlrIy','setupHubHa','upFcG','RCFIb','storage.multipartUploads.create','customRoleName','fFLLi','default','qwiNw','aKDWv','updateWindowsNodeGroup','debug','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','Cluster\x20deletion\x20completed','FiCVg','akhdI','FPViT','lBgpk','ZCycC','KubeConfigTemplate.yaml','QHDfW','push','resourcemanagerClient','iam.serviceAccounts.signBlob','gcp_credentials.json','nNJis','/roles/','PjNmw','NFZcD','NZuuh','DONE','gridProfileId','gcpresources','GKE\x20Cluster\x20deletion\x20failed','cLYWy','forEach','LNYkN','instanceType','jiSGb','isCliToolInstalled','minNodes','requestBody','YPlqR','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','zsTyG','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','channel','ycVwE','tghrY','RZIjl','endpoint','jEBnw','UsIXh','cloudProvider','gke_','storage.buckets.getObjectInsights','YvaxY','ejGOJ','CStrI','ZHPyB','cMkpX','TYeoM','WVprk','yIjUU','vbSbb','42916GLSgWA','VVxTM','members','https://www.googleapis.com/auth/cloud-platform','BpoGu','qHNNT','xDxep','storage.multipartUploads.abort','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','serviceAccount','1712578wsDtqs','.iam.gserviceaccount.com','https://www.googleapis.com/compute/v1/projects/','info','storage.buckets.update','gcloud\x20--version','../permissions/GCP.json','eCBjW','length','project_id','TLDYw','XfgiL','browserstack','BzGyC','getKubeConfigData','deleteCluster','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','dUqPU','checkAccess','getClient','includes','permissions\x20check\x20response\x20for\x20','bstackAccesskey','/global/networks/','aimGQ','PWowL','pbkUj','cYFdy','SVNPJ','diTNJ','eVQXO','NAIeF','network','zglbb','getIamPolicy','wmjhw','XicfV','error','updateClusterRegion','ZkkBo','nMFoH','QKaMt','JCXjE','error\x20:\x20','listClusters','oExqc','iam','yxmfd','clusterName','releaseChannel','accountId','ZuEQo','CmvIi','utf-8','LrPhw','storage.objects.list','PFaXD','isClusterPresent','projectId','EbPsW','maxNodeCount','storage.objects.update','username','resourceLabels','@google-cloud/resource-manager','MPBLa','/packages/cli/update-cluster-region','Cluster\x20creation\x20failed','parent','BhZHn','createCluster','keyFile','setupServiceAccount','join','webSocketUtils','hgQku','hmJRs','tsFbY','tGFGr','UpljX','includedPermissions','type','aUQxu','HPuBP','TMxBt','https://','isVPCPresent','OaDJb','sendResourceDataToHST','Deleting\x20the\x20cluster\x20','storage.buckets.deleteTagBinding','QnctX','accounts','zfYuQ','hIyzo','exports','cli\x20tool\x20is\x20installed','TbMQq','30bTmSRx','669442IfENYV','masterAuth','aIxDv','ZadxO','writeFileSync','/locations/','GvOAt','gMhAQ','BrDOO','dNZyk','kRmYC','storage.objects.getIamPolicy','rws','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--no-user-output-enabled','YGlDf','startsWith','projects','rMZYZ','storage.objects.get','data','config','templates','allowed','wPhCK','/serviceAccounts/','KUmHs','PiygC','gMyYo','gODQv','5tpLPyi','wCYtg','subnetwork','nTXfL','jHpiW','njEyb','readFileAsync','zmlIm','storage.buckets.create','xPbpa','\x20:\x20','auth','OPFLs','REGULAR','managedby','Wnxrn','rqBLi','Service\x20account\x20already\x20exists,\x20skipping','toLowerCase','XztDj','clusterRegion','lOLOE','networkClient','IFtSg','message','autoscaling','aysol','util','LHowP','eicYg','oCKGE','turboscale_custom_role','storage.buckets.createTagBinding','pNyMc','profileId','storage.buckets.delete','aNJra','qJPls','organizations','bjiOP','BlGXQ','sendGCPInfoToHST','machineType','autoUpgrade','/subnetworks/','XDVAB','serviceAccounts','execSync','hJmtY','GoogleCloudProvider','checkServiceAccount','Creating\x20GKE\x20Cluster','XzntZ','ylfdZ','kIwpZ','AUuZT','VdVdO','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','ClusterManagerClient','vpcInfo','../config/constants','FLRjL','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','role','../config/logger','sdvEO','MHfKQ','storage.multipartUploads.list','status','sjhzQ','iqVsR','XjrvU','containerClient','NKPkr','hLiNl','TWrys','oWiEf','KNyIb','keys','vAung','hxMCV','permissions','turboscale-service-account','storage.multipartUploads.listParts','child_process','replace','RTEXD','QXmna','iamClient','NetworksClient','oHnWh','clusterAutoUpgrade','newRegion','GPczX','subnetworks','YTlGZ','storage.objects.delete','denied','RmTcH','concat','JPhPM','wxytW','10915551LWBpkt','get','gcloud\x20auth\x20login\x20--cred-file=','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','log','gxskk','loadBalancer','Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20','pVjYS','SyTuo','xwQUZ','NQyhe','FLGWZ','accessKey','BmoFq','caBhB','bstackUsername','PdAVf','parse','pDkCO','IZWjk','XTBRS','warn','storage.buckets.listTagBindings','NYcaJ','setupNewCluster','management','DnTXn','split','IWkhV','/regions/','kmrfh'];a3_0x207d=function(){return _0x4ea49a;};return a3_0x207d();}class GoogleCloudProvider extends CloudProvider{constructor(_0x1a9863,_0x10866b,_0x4aebe1,_0x520810){const _0x31c80e=a3_0xb069c4,_0x2ec3bb={};_0x2ec3bb['DnTXn']=_0x31c80e(0x33e),_0x2ec3bb['TuApb']=_0x31c80e(0x294),_0x2ec3bb[_0x31c80e(0x2be)]=_0x31c80e(0x2c7);const _0xc8fa73=_0x2ec3bb,_0x4538a5=_0xc8fa73[_0x31c80e(0x2f6)][_0x31c80e(0x2f7)]('|');let _0x1350b7=0x0;while(!![]){switch(_0x4538a5[_0x1350b7++]){case'0':this[_0x31c80e(0x353)]=_0xc8fa73['TuApb'];continue;case'1':this[_0x31c80e(0x31c)]=_0xc8fa73['NKPkr'];continue;case'2':this[_0x31c80e(0x364)]=null;continue;case'3':super(GCP,_0x1a9863,_0x10866b,_0x4aebe1,_0x520810);continue;case'4':this[_0x31c80e(0x30a)]=null;continue;case'5':this[_0x31c80e(0x2cd)]=null;continue;case'6':this[_0x31c80e(0x28b)]=null;continue;case'7':this['projectId']=null;continue;case'8':this[_0x31c80e(0x2bd)]=null;continue;}break;}}async[a3_0xb069c4(0x24d)](){const _0x2583ba=a3_0xb069c4;this['sendGCPInfoToHST'](this[_0x2583ba(0x264)]);}async[a3_0xb069c4(0x318)](){const _0x38d159=a3_0xb069c4;await super['init']();const _0x33402d=this[_0x38d159(0x30a)],_0x7dd3dd={};_0x7dd3dd[_0x38d159(0x23c)]=_0x33402d,this['containerClient']=new container['v1'][(_0x38d159(0x2af))](_0x7dd3dd);const _0x27f772={};_0x27f772['keyFile']=_0x33402d,this['networkClient']=new compute['v1'][(_0x38d159(0x2ce))](_0x27f772);const _0x20586e={};return _0x20586e['keyFile']=_0x33402d,this[_0x38d159(0x364)]=new ProjectsClient(_0x20586e),this[_0x38d159(0x2cd)]=google[_0x38d159(0x223)]('v1'),this;}async[a3_0xb069c4(0x349)](_0xfadade,_0x5e02dd){const _0x3bc64e=a3_0xb069c4,_0x597911={'CmvIi':function(_0x230d23,_0xb5c3a){return _0x230d23(_0xb5c3a);},'HDlzn':_0x3bc64e(0x37b),'MPBLa':function(_0x46b99d){return _0x46b99d();},'eCBjW':_0x3bc64e(0x366)},_0x5bea23=await _0x597911[_0x3bc64e(0x229)](_0xfadade,_0x597911['HDlzn']);let _0x3d7369=await fs[_0x3bc64e(0x27b)](_0x5bea23);_0x3d7369=_0x3d7369['toString']();const _0x193c66=_0x597911[_0x3bc64e(0x236)](getDirForConfig),_0x2ea596=path[_0x3bc64e(0x23e)](_0x193c66,_0x597911[_0x3bc64e(0x1fc)]);fs[_0x3bc64e(0x25c)](_0x2ea596,_0x3d7369),this[_0x3bc64e(0x30a)]=_0x2ea596;const _0x4330ea={};return _0x4330ea[_0x3bc64e(0x23c)]=_0x2ea596,_0x5e02dd['cloudProvider'][GCP]=_0x4330ea,_0x3d7369=JSON[_0x3bc64e(0x2ed)](_0x3d7369),this['projectId']=_0x3d7369[_0x3bc64e(0x1fe)],_0x5e02dd;}async[a3_0xb069c4(0x30b)](_0x38bf58){const _0x2ed484=a3_0xb069c4;this[_0x2ed484(0x30a)]=_0x38bf58[this['cloudProviderName']]['keyFile'];let _0x273593=await fs['readFileAsync'](this[_0x2ed484(0x30a)]);_0x273593=JSON[_0x2ed484(0x2ed)](_0x273593),this[_0x2ed484(0x22f)]=_0x273593[_0x2ed484(0x1fe)];}['getGridHostname'](_0x40d14c){const _0x3922c8=a3_0xb069c4;return _0x40d14c[_0x3922c8(0x2b9)][_0x3922c8(0x2e1)]['ingress'][0x0]['ip'];}async[a3_0xb069c4(0x30f)](){const _0x54efbf=a3_0xb069c4,_0x21761c={};_0x21761c[_0x54efbf(0x271)]=function(_0x428c39,_0x4d62bc){return _0x428c39!==_0x4d62bc;},_0x21761c[_0x54efbf(0x33a)]=_0x54efbf(0x286),_0x21761c[_0x54efbf(0x317)]='lICJP',_0x21761c['SyTuo']=function(_0x719db,_0x13ede8){return _0x719db===_0x13ede8;},_0x21761c['hLiNl']='kKlps',_0x21761c['HCJwd']=_0x54efbf(0x362),_0x21761c[_0x54efbf(0x2ee)]=function(_0x2401e7,_0x187a18){return _0x2401e7===_0x187a18;},_0x21761c[_0x54efbf(0x2ab)]='browserstack',_0x21761c[_0x54efbf(0x2bb)]=function(_0x291265,_0x572a10){return _0x291265!==_0x572a10;},_0x21761c['pNyMc']=_0x54efbf(0x32f),_0x21761c[_0x54efbf(0x2c2)]=_0x54efbf(0x2c1);const _0x1f9339=_0x21761c;try{if(_0x1f9339['KUmHs'](_0x1f9339[_0x54efbf(0x317)],_0x1f9339[_0x54efbf(0x317)]))return _0x1f9339[_0x54efbf(0x271)](_0x3f7328[_0x54efbf(0x289)],_0x33ce97[0x0])&&(_0x4763a2['clusterRegion']=_0xbf24f5[0x0],this[_0x54efbf(0x21b)]()),!![];else{const _0x133e8c=await this[_0x54efbf(0x31b)]();if(_0x133e8c[0x0]?.[_0x54efbf(0x234)]?.[_0x54efbf(0x283)]){if(_0x1f9339[_0x54efbf(0x2e4)](_0x1f9339[_0x54efbf(0x2bf)],_0x1f9339['HCJwd'])){_0x1d2928['info'](_0x1f9339[_0x54efbf(0x33a)]);return;}else{const _0x49841a=_0x133e8c[0x0]?.[_0x54efbf(0x234)]?.['managedby'];return _0x49841a&&_0x1f9339['pDkCO'](_0x49841a[_0x54efbf(0x287)](),_0x1f9339['kIwpZ']);}}}}catch(_0x5c2fc9){return _0x1f9339[_0x54efbf(0x2bb)](_0x1f9339[_0x54efbf(0x296)],_0x1f9339[_0x54efbf(0x2c2)])?![]:!![];}return![];}async['isClusterPresent'](){const _0x5b7989=a3_0xb069c4,_0x5b919a={'ylfdZ':_0x5b7989(0x36f),'MlrIy':_0x5b7989(0x282),'YvaxY':function(_0x3257f3,_0x8e5b3c){return _0x3257f3+_0x8e5b3c;},'ybDfR':_0x5b7989(0x26d),'tghrY':_0x5b7989(0x36e),'FfNWo':_0x5b7989(0x32d),'QvsDQ':_0x5b7989(0x22a),'zfYuQ':function(_0x499ed1,_0x221263){return _0x499ed1!==_0x221263;},'hfWwN':function(_0x17f073,_0x2ff26e){return _0x17f073===_0x2ff26e;},'NebWT':_0x5b7989(0x27e),'UpljX':'zKeyg','BmoFq':function(_0x57648e,_0xa2434b){return _0x57648e!==_0xa2434b;},'LNYkN':_0x5b7989(0x309),'eVQXO':function(_0x29a281,_0x6f8992){return _0x29a281===_0x6f8992;},'OaDJb':_0x5b7989(0x248),'NYcaJ':_0x5b7989(0x35c),'XTBRS':function(_0x335ccb,_0x540530){return _0x335ccb===_0x540530;},'ZHPyB':function(_0x385d56,_0x3a80bc){return _0x385d56!==_0x3a80bc;},'tGFGr':'lNqdm','WVprk':_0x5b7989(0x2d2),'bkBwO':_0x5b7989(0x219),'BpMyd':function(_0x7bb464,_0x13ef25){return _0x7bb464===_0x13ef25;},'vmEQR':_0x5b7989(0x37f),'pVjYS':_0x5b7989(0x21e),'zsTyG':function(_0x3d6054,_0x3efa19){return _0x3d6054>_0x3efa19;},'OPFLs':'FyjHE','lOLOE':_0x5b7989(0x222),'bPGxM':function(_0x5c3f32,_0x53385e){return _0x5c3f32<_0x53385e;},'qwiNw':_0x5b7989(0x25a),'UsIXh':_0x5b7989(0x2b7),'SmJri':function(_0x26d5c5,_0x2cfc9a){return _0x26d5c5+_0x2cfc9a;},'lBgpk':function(_0x221653,_0x46f7ee){return _0x221653(_0x46f7ee);},'sjhzQ':_0x5b7989(0x379),'wpNMH':function(_0x559fa4,_0x24d10d){return _0x559fa4(_0x24d10d);},'eJGhK':function(_0x256818,_0x4892c2){return _0x256818(_0x4892c2);},'FPViT':function(_0x34a82e,_0x5d4d92){return _0x34a82e<=_0x5d4d92;},'xOQqW':'vrwJh','jtSSH':'ThnbJ','dTeaB':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','mbYCD':function(_0x677b2d){return _0x677b2d();},'diTNJ':function(_0x36abff,_0x13ca5e){return _0x36abff-_0x13ca5e;},'CNtVv':function(_0x3ed3f8,_0x32abd5){return _0x3ed3f8!==_0x32abd5;},'krtmk':_0x5b7989(0x307),'xwQUZ':_0x5b7989(0x313),'NQyhe':function(_0x15b188,_0x39411a){return _0x15b188-_0x39411a;}};let _0x3c7748=await fs[_0x5b7989(0x27b)](path[_0x5b7989(0x23e)](__dirname,'..',_0x5b919a[_0x5b7989(0x2fc)],_0x5b919a[_0x5b7989(0x37e)],_0x5b919a['FfNWo']),_0x5b919a[_0x5b7989(0x33c)]);_0x3c7748=JSON['parse'](_0x3c7748);let _0x13a929=[global_registry[_0x5b7989(0x289)]];if(_0x5b919a[_0x5b7989(0x252)](_0x3c7748[global_registry[_0x5b7989(0x289)]],undefined)){if(_0x5b919a[_0x5b7989(0x323)](_0x5b919a['NebWT'],_0x5b919a[_0x5b7989(0x244)])){_0x1136c9[_0x5b7989(0x1f8)](_0x5b919a[_0x5b7989(0x2aa)]);throw _0x4e7521;}else _0x13a929=_0x13a929[_0x5b7989(0x2d8)](_0x3c7748[global_registry['clusterRegion']]);}const _0xabd26d=[];for await(const _0x445981 of _0x13a929){if(_0x5b919a['BmoFq'](_0x5b919a[_0x5b7989(0x372)],_0x5b919a[_0x5b7989(0x372)]))return![];else{const _0x55031f={};_0x55031f[_0x5b7989(0x239)]=_0x5b7989(0x2ff)+this[_0x5b7989(0x22f)]+_0x5b7989(0x25d)+_0x445981;const _0x606b5c=_0x55031f,_0x52f187=await this['containerClient'][_0x5b7989(0x221)](_0x606b5c);for(const _0x168294 of _0x52f187[0x0]['clusters']){if(_0x5b919a[_0x5b7989(0x213)](_0x5b919a[_0x5b7989(0x24c)],_0x5b919a[_0x5b7989(0x2f3)]))return![];else _0x5b919a[_0x5b7989(0x2f0)](_0x168294['name'],this[_0x5b7989(0x225)])&&(_0x5b919a[_0x5b7989(0x1e5)](_0x5b919a[_0x5b7989(0x243)],_0x5b919a['tGFGr'])?this[_0x5b7989(0x29e)](this[_0x5b7989(0x264)]):_0xabd26d['push'](_0x445981));}}}const _0xf0f900=_0xabd26d[_0x5b7989(0x1fd)];if(_0x5b919a['eVQXO'](_0xf0f900,0x1)){if(_0x5b919a[_0x5b7989(0x2e9)](_0x5b919a[_0x5b7989(0x1e8)],_0x5b919a[_0x5b7989(0x345)])){if(_0x5b919a['zfYuQ'](global_registry[_0x5b7989(0x289)],_0xabd26d[0x0])){if(_0x5b919a[_0x5b7989(0x335)](_0x5b919a[_0x5b7989(0x301)],_0x5b919a[_0x5b7989(0x2e3)]))return!![];else global_registry[_0x5b7989(0x289)]=_0xabd26d[0x0],this[_0x5b7989(0x21b)]();}return!![];}else{const _0x92b2f3={};_0x92b2f3[_0x5b7989(0x37c)]=_0x5b919a[_0x5b7989(0x34e)],_0x42f337[_0x5b7989(0x226)]=_0x92b2f3;}}else{if(_0x5b919a[_0x5b7989(0x37a)](_0xf0f900,0x1)){if(_0x5b919a[_0x5b7989(0x2f0)](_0x5b919a[_0x5b7989(0x281)],_0x5b919a[_0x5b7989(0x28a)]))_0x3737b5[_0x5b7989(0x363)](_0x538a8b);else{console[_0x5b7989(0x2df)](_0x5b7989(0x32b)+this[_0x5b7989(0x225)]+_0x5b7989(0x205));for(let _0x411c8=0x0;_0x5b919a['bPGxM'](_0x411c8,_0xf0f900);_0x411c8+=0x1){_0x5b919a[_0x5b7989(0x1e5)](_0x5b919a[_0x5b7989(0x356)],_0x5b919a[_0x5b7989(0x382)])?console[_0x5b7989(0x2df)]('['+_0x5b919a[_0x5b7989(0x322)](_0x411c8,0x1)+']\x20'+_0xabd26d[_0x411c8]):_0x168e4d[_0x5b7989(0x2df)]('['+_0x5b919a[_0x5b7989(0x386)](_0x140444,0x1)+']\x20'+_0x3847ac[_0x4a7df9]);}const _0x2bbef9=await _0x5b919a[_0x5b7989(0x35f)](inputConfirmation,_0x5b919a[_0x5b7989(0x2ba)]),_0x283aaf=_0x5b919a['wpNMH'](Number,_0x2bbef9);(_0x5b919a[_0x5b7989(0x341)](isNaN,_0x283aaf)||_0x5b919a[_0x5b7989(0x35e)](_0x283aaf,0x0)||_0x5b919a[_0x5b7989(0x37a)](_0x283aaf,_0xf0f900))&&(_0x5b919a['BpMyd'](_0x5b919a['xOQqW'],_0x5b919a['jtSSH'])?_0x3aeff5[_0x5b7989(0x2f1)](_0x3d85e0):(console[_0x5b7989(0x21a)](_0x5b919a['dTeaB']),process['exit'](0x1)));_0x5b919a[_0x5b7989(0x312)](closeInput),logger[_0x5b7989(0x1f8)](_0x5b7989(0x2de)+_0xabd26d[_0x5b919a[_0x5b7989(0x212)](_0x283aaf,0x1)]);if(_0x5b919a[_0x5b7989(0x252)](global_registry['clusterRegion'],_0xabd26d[_0x5b919a[_0x5b7989(0x212)](_0x283aaf,0x1)])){if(_0x5b919a['CNtVv'](_0x5b919a[_0x5b7989(0x33b)],_0x5b919a[_0x5b7989(0x2e5)]))global_registry[_0x5b7989(0x289)]=_0xabd26d[_0x5b919a[_0x5b7989(0x2e6)](_0x283aaf,0x1)],this[_0x5b7989(0x21b)]();else return _0x408117[_0x5b7989(0x21a)](_0x5b7989(0x34c)+_0x409ecd+_0x5b7989(0x338)+_0x117774),[![],[]];}return!![];}}}return![];}async[a3_0xb069c4(0x31b)](){const _0x4774a8=a3_0xb069c4,_0x16a306=await this[_0x4774a8(0x2bd)]['getCluster']({'name':_0x4774a8(0x2ff)+this[_0x4774a8(0x22f)]+'/locations/'+global_registry[_0x4774a8(0x289)]+_0x4774a8(0x336)+this[_0x4774a8(0x225)]});return _0x16a306;}async[a3_0xb069c4(0x203)](){const _0x406e37=a3_0xb069c4,_0x3a5518={};_0x3a5518[_0x406e37(0x319)]=_0x406e37(0x265),_0x3a5518[_0x406e37(0x36b)]=_0x406e37(0x26d),_0x3a5518['YGlDf']=_0x406e37(0x36e),_0x3a5518[_0x406e37(0x32e)]=_0x406e37(0x361);const _0x30519c=_0x3a5518;cp[_0x406e37(0x2a4)](_0x30519c[_0x406e37(0x319)]),cp['exec'](_0x406e37(0x2dd)+this['credentialsPath']);const _0x3e8bc0=await this[_0x406e37(0x31b)](),_0x32c326=_0x406e37(0x384)+this[_0x406e37(0x22f)]+'_'+global_registry[_0x406e37(0x289)]+'_'+this[_0x406e37(0x225)];let _0x24f0c5=await fs[_0x406e37(0x27b)](path[_0x406e37(0x23e)](__dirname,'..',_0x30519c['NZuuh'],_0x30519c[_0x406e37(0x266)],_0x30519c['BBzCE']));return _0x24f0c5=_0x24f0c5[_0x406e37(0x33d)](),_0x24f0c5=_0x24f0c5[_0x406e37(0x2ca)](/<CLUSTER_NAME>/g,_0x32c326),_0x24f0c5=_0x24f0c5['replace'](/<CLUSTER_URL>/g,'https://'+_0x3e8bc0[0x0][_0x406e37(0x380)]),_0x24f0c5=_0x24f0c5['replace'](/<CERTIFICATE_DATA>/g,_0x3e8bc0[0x0][_0x406e37(0x259)]['clusterCaCertificate']),_0x24f0c5;}async[a3_0xb069c4(0x2a7)](){const _0x5b689c=a3_0xb069c4,_0x169106={};_0x169106['BrDOO']='Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.',_0x169106[_0x5b689c(0x337)]=_0x5b689c(0x1ee),_0x169106[_0x5b689c(0x276)]=function(_0x1bc6dd,_0xb39dc){return _0x1bc6dd!==_0xb39dc;},_0x169106[_0x5b689c(0x285)]=_0x5b689c(0x347),_0x169106[_0x5b689c(0x2b2)]=function(_0x32b5c9,_0x267ecd){return _0x32b5c9===_0x267ecd;},_0x169106['XfgiL']=_0x5b689c(0x35d),_0x169106['xDxep']=function(_0x20a262,_0x5a21bf){return _0x20a262===_0x5a21bf;},_0x169106['vbSbb']=function(_0x26142e,_0x3af2d2){return _0x26142e===_0x3af2d2;},_0x169106[_0x5b689c(0x247)]=_0x5b689c(0x29d);const _0x58671a=_0x169106,_0x583283={};_0x583283['scopes']=[_0x58671a[_0x5b689c(0x337)]],_0x583283['keyFile']=this[_0x5b689c(0x30a)];const _0x2535d0=await google[_0x5b689c(0x280)][_0x5b689c(0x208)](_0x583283),_0x2de583=await this[_0x5b689c(0x2cd)][_0x5b689c(0x268)][_0x5b689c(0x2a3)][_0x5b689c(0x31e)]({'name':'projects/'+this[_0x5b689c(0x22f)],'auth':_0x2535d0});if(_0x2de583?.['data']?.[_0x5b689c(0x251)]){if(_0x58671a[_0x5b689c(0x276)](_0x58671a['rqBLi'],_0x58671a[_0x5b689c(0x285)]))return!![];else for(const _0x5ec1e7 of _0x2de583[_0x5b689c(0x26b)][_0x5b689c(0x251)]){if(_0x58671a[_0x5b689c(0x2b2)](_0x58671a[_0x5b689c(0x200)],_0x58671a[_0x5b689c(0x200)])){if(_0x58671a[_0x5b689c(0x1f1)](_0x5ec1e7?.[_0x5b689c(0x343)],_0x5b689c(0x2ff)+this[_0x5b689c(0x22f)]+'/serviceAccounts/'+this[_0x5b689c(0x31c)]+'@'+this[_0x5b689c(0x22f)]+_0x5b689c(0x1f6))){if(_0x58671a[_0x5b689c(0x1ea)](_0x58671a[_0x5b689c(0x247)],_0x58671a['aUQxu']))return!![];else _0x33244c[_0x5b689c(0x2b9)]=![];}}else _0x727ee6['error'](_0x58671a[_0x5b689c(0x260)]),_0x24de8e['exit'](0x1);}}return![];}async[a3_0xb069c4(0x23d)](){const _0x7ace27=a3_0xb069c4,_0x29abf3={};_0x29abf3[_0x7ace27(0x34b)]=function(_0x330917,_0x14a922){return _0x330917===_0x14a922;},_0x29abf3[_0x7ace27(0x315)]='stfTB',_0x29abf3[_0x7ace27(0x2da)]=_0x7ace27(0x286),_0x29abf3[_0x7ace27(0x1e9)]=_0x7ace27(0x314),_0x29abf3[_0x7ace27(0x370)]=_0x7ace27(0x1ee),_0x29abf3[_0x7ace27(0x2cb)]=_0x7ace27(0x365),_0x29abf3[_0x7ace27(0x22d)]=_0x7ace27(0x27d),_0x29abf3[_0x7ace27(0x27a)]=_0x7ace27(0x295),_0x29abf3[_0x7ace27(0x31d)]=_0x7ace27(0x298),_0x29abf3['GecLT']=_0x7ace27(0x24f),_0x29abf3[_0x7ace27(0x2ac)]='storage.buckets.get',_0x29abf3[_0x7ace27(0x320)]='storage.buckets.getIamPolicy',_0x29abf3[_0x7ace27(0x2e7)]=_0x7ace27(0x385),_0x29abf3[_0x7ace27(0x2d9)]=_0x7ace27(0x316),_0x29abf3[_0x7ace27(0x326)]=_0x7ace27(0x32c),_0x29abf3[_0x7ace27(0x2ec)]=_0x7ace27(0x2f2),_0x29abf3[_0x7ace27(0x346)]='storage.buckets.setIamPolicy',_0x29abf3[_0x7ace27(0x21f)]=_0x7ace27(0x1f9),_0x29abf3['hXRZB']=_0x7ace27(0x1f2),_0x29abf3[_0x7ace27(0x37d)]=_0x7ace27(0x352),_0x29abf3[_0x7ace27(0x2a9)]=_0x7ace27(0x2b8),_0x29abf3[_0x7ace27(0x331)]=_0x7ace27(0x2c8),_0x29abf3[_0x7ace27(0x2ef)]='storage.objects.create',_0x29abf3[_0x7ace27(0x1e4)]=_0x7ace27(0x2d5),_0x29abf3[_0x7ace27(0x34a)]=_0x7ace27(0x26a),_0x29abf3[_0x7ace27(0x291)]=_0x7ace27(0x263),_0x29abf3[_0x7ace27(0x381)]=_0x7ace27(0x22c),_0x29abf3['sdvEO']='storage.objects.setIamPolicy',_0x29abf3['jZzUq']=_0x7ace27(0x232),_0x29abf3[_0x7ace27(0x2e0)]='Turboscale\x20Custom\x20Role',_0x29abf3['igDDQ']=_0x7ace27(0x1f3);const _0x115b0c=_0x29abf3,_0x45cd07=await this[_0x7ace27(0x2a7)]();if(_0x45cd07){if(_0x115b0c[_0x7ace27(0x34b)](_0x115b0c['HfRZT'],_0x115b0c[_0x7ace27(0x315)])){logger['info'](_0x115b0c[_0x7ace27(0x2da)]);return;}else return[!![],_0x280107];}logger[_0x7ace27(0x1f8)](_0x115b0c['yIjUU']);const _0x12c4c8={};_0x12c4c8[_0x7ace27(0x300)]=[_0x115b0c[_0x7ace27(0x370)]],_0x12c4c8[_0x7ace27(0x23c)]=this['credentialsPath'];const _0x4e8533=await google[_0x7ace27(0x280)][_0x7ace27(0x208)](_0x12c4c8),_0x231fbf={};_0x231fbf[_0x7ace27(0x245)]=[_0x115b0c[_0x7ace27(0x2cb)],_0x115b0c['PFaXD'],_0x115b0c['njEyb'],_0x115b0c[_0x7ace27(0x31d)],_0x115b0c[_0x7ace27(0x31a)],_0x115b0c[_0x7ace27(0x2ac)],_0x115b0c[_0x7ace27(0x320)],_0x115b0c['FLGWZ'],_0x115b0c['JPhPM'],_0x115b0c[_0x7ace27(0x326)],_0x115b0c['PdAVf'],_0x115b0c[_0x7ace27(0x346)],_0x115b0c[_0x7ace27(0x21f)],_0x115b0c['hXRZB'],_0x115b0c[_0x7ace27(0x37d)],_0x115b0c[_0x7ace27(0x2a9)],_0x115b0c['pgdSi'],_0x115b0c[_0x7ace27(0x2ef)],_0x115b0c['CStrI'],_0x115b0c['SZPlb'],_0x115b0c[_0x7ace27(0x291)],_0x115b0c['jEBnw'],_0x115b0c[_0x7ace27(0x2b6)],_0x115b0c[_0x7ace27(0x304)]],_0x231fbf['title']=_0x115b0c['gxskk'],await this[_0x7ace27(0x2cd)][_0x7ace27(0x29b)]['roles'][_0x7ace27(0x340)]({'parent':_0x7ace27(0x2ff)+this[_0x7ace27(0x22f)],'requestBody':{'role':_0x231fbf,'roleId':this[_0x7ace27(0x353)]},'auth':_0x4e8533});const _0x21df44={};_0x21df44[_0x7ace27(0x343)]=_0x7ace27(0x2ff)+this[_0x7ace27(0x22f)],_0x21df44[_0x7ace27(0x377)]={},_0x21df44['auth']=_0x4e8533,_0x21df44[_0x7ace27(0x377)][_0x7ace27(0x227)]=this[_0x7ace27(0x31c)];const _0x43bf17=_0x21df44;await this[_0x7ace27(0x2cd)][_0x7ace27(0x268)][_0x7ace27(0x2a3)][_0x7ace27(0x340)](_0x43bf17);let _0x550aec=await this[_0x7ace27(0x364)][_0x7ace27(0x217)]({'resource':_0x7ace27(0x2ff)+this[_0x7ace27(0x22f)]});_0x550aec=_0x550aec[0x0][_0x7ace27(0x329)];const _0x42226c={};_0x42226c[_0x7ace27(0x2b4)]=_0x7ace27(0x2ff)+this[_0x7ace27(0x22f)]+_0x7ace27(0x368)+this[_0x7ace27(0x353)],_0x42226c[_0x7ace27(0x1ed)]=[_0x7ace27(0x321)+this[_0x7ace27(0x31c)]+'@'+this[_0x7ace27(0x22f)]+_0x7ace27(0x1f6)],_0x550aec[_0x7ace27(0x363)](_0x42226c);const _0x101842={};_0x101842[_0x7ace27(0x329)]=_0x550aec,await this['resourcemanagerClient'][_0x7ace27(0x348)]({'resource':'projects/'+this[_0x7ace27(0x22f)],'policy':_0x101842}),logger[_0x7ace27(0x1f8)](_0x115b0c[_0x7ace27(0x344)]);}async[a3_0xb069c4(0x2f4)](_0x1687fa=a3_0xb069c4(0x355),_0x4eb64d=[a3_0xb069c4(0x355)]){const _0x165242=a3_0xb069c4,_0x5358bf={};_0x5358bf['qJPls']=function(_0x23a8ea,_0x2a66c1){return _0x23a8ea===_0x2a66c1;},_0x5358bf['aimGQ']=_0x165242(0x201),_0x5358bf[_0x165242(0x369)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x5358bf['DRhSy']=_0x165242(0x35a),_0x5358bf[_0x165242(0x351)]=function(_0x39b50c,_0x56584d){return _0x39b50c!==_0x56584d;},_0x5358bf[_0x165242(0x30c)]='aWTID',_0x5358bf[_0x165242(0x249)]=_0x165242(0x374),_0x5358bf[_0x165242(0x1ef)]='default',_0x5358bf[_0x165242(0x378)]=function(_0x12c4bd,_0x27e8b5){return _0x12c4bd===_0x27e8b5;},_0x5358bf[_0x165242(0x293)]='CYkZg',_0x5358bf['kmrfh']='CCGox';const _0x1dfc40=_0x5358bf,_0x1a5d54={};_0x1a5d54[_0x165242(0x246)]=WS_EVENTS['LOG'],_0x1a5d54['message']=_0x1dfc40[_0x165242(0x369)],this['webSocketUtils'][_0x165242(0x303)](this['rws'],_0x1a5d54),logger['info'](_0x1dfc40['DRhSy']);if(!_0x1687fa){if(_0x1dfc40['RCFIb'](_0x1dfc40[_0x165242(0x30c)],_0x1dfc40[_0x165242(0x249)]))_0x1687fa=_0x1dfc40[_0x165242(0x1ef)];else{const _0x3a6734=_0x467ffe[0x0]?.['resourceLabels']?.['managedby'];return _0x3a6734&&_0x1dfc40[_0x165242(0x29a)](_0x3a6734[_0x165242(0x287)](),_0x1dfc40[_0x165242(0x20d)]);}}if(!_0x4eb64d||_0x1dfc40[_0x165242(0x378)](_0x4eb64d[_0x165242(0x1fd)],0x0)){if(_0x1dfc40['RCFIb'](_0x1dfc40[_0x165242(0x293)],_0x1dfc40[_0x165242(0x2fa)]))_0x4eb64d=[_0x1dfc40[_0x165242(0x1ef)]];else{if(_0x1dfc40[_0x165242(0x29a)](_0x19b624?.['name'],_0x165242(0x2ff)+this[_0x165242(0x22f)]+_0x165242(0x270)+this[_0x165242(0x31c)]+'@'+this[_0x165242(0x22f)]+_0x165242(0x1f6)))return!![];}}return await this['setupServiceAccount'](),await this[_0x165242(0x23b)](_0x1687fa,_0x4eb64d),await this[_0x165242(0x358)](),[_0x1687fa,_0x4eb64d];}async['createCluster'](_0x3eee94=a3_0xb069c4(0x355),_0x1b0348=[a3_0xb069c4(0x355)]){const _0x5333c1=a3_0xb069c4,_0x440295={};_0x440295[_0x5333c1(0x206)]=function(_0xee8e8b,_0x384079){return _0xee8e8b===_0x384079;},_0x440295[_0x5333c1(0x20e)]='default',_0x440295[_0x5333c1(0x273)]=_0x5333c1(0x26e),_0x440295['XDVAB']=_0x5333c1(0x2d6),_0x440295[_0x5333c1(0x241)]=_0x5333c1(0x305),_0x440295[_0x5333c1(0x288)]=_0x5333c1(0x2a8),_0x440295[_0x5333c1(0x274)]=_0x5333c1(0x26d),_0x440295[_0x5333c1(0x25f)]='gcpresources',_0x440295['EbPsW']='gkecluster.json',_0x440295[_0x5333c1(0x2fe)]=_0x5333c1(0x22a),_0x440295[_0x5333c1(0x1e6)]=_0x5333c1(0x32d),_0x440295[_0x5333c1(0x278)]=function(_0x381e3c,_0x3af2f0){return _0x381e3c!==_0x3af2f0;},_0x440295[_0x5333c1(0x279)]='sHPZe',_0x440295['yupgA']='PFeeg',_0x440295['MldgA']=_0x5333c1(0x282),_0x440295[_0x5333c1(0x250)]=function(_0x3e2f14,_0x34d5ca){return _0x3e2f14*_0x34d5ca;},_0x440295['jDdHf']=function(_0x2e826d,_0x2c7904){return _0x2e826d*_0x2c7904;},_0x440295[_0x5333c1(0x342)]=_0x5333c1(0x269),_0x440295['oHnWh']='HdrKa',_0x440295[_0x5333c1(0x228)]=function(_0x5df1f5,_0x2e591b){return _0x5df1f5!==_0x2e591b;},_0x440295[_0x5333c1(0x367)]='OLtHJ',_0x440295['uoUuM']=_0x5333c1(0x2b3),_0x440295[_0x5333c1(0x214)]=_0x5333c1(0x224),_0x440295['nBkqj']='zydHw',_0x440295[_0x5333c1(0x284)]='Cluster\x20creation\x20failed';const _0x4155c3=_0x440295;try{if(_0x4155c3[_0x5333c1(0x206)](_0x4155c3['hmJRs'],_0x4155c3[_0x5333c1(0x241)])){logger[_0x5333c1(0x1f8)](_0x4155c3['XztDj']);let _0x14e80f=await fs[_0x5333c1(0x27b)](path[_0x5333c1(0x23e)](__dirname,'..',_0x4155c3[_0x5333c1(0x274)],_0x4155c3[_0x5333c1(0x25f)],_0x4155c3[_0x5333c1(0x230)]),_0x4155c3[_0x5333c1(0x2fe)]);_0x14e80f=JSON[_0x5333c1(0x2ed)](_0x14e80f);let _0x567512=await fs[_0x5333c1(0x27b)](path[_0x5333c1(0x23e)](__dirname,'..',_0x4155c3[_0x5333c1(0x274)],_0x4155c3[_0x5333c1(0x25f)],_0x4155c3[_0x5333c1(0x1e6)]),_0x4155c3['OVDik']);_0x567512=JSON[_0x5333c1(0x2ed)](_0x567512);const _0x2e674a=global_registry[_0x5333c1(0x2d0)];_0x14e80f[_0x5333c1(0x343)]=this[_0x5333c1(0x225)],_0x14e80f[_0x5333c1(0x306)][0x0][_0x5333c1(0x26c)][_0x5333c1(0x29f)]=global_registry[_0x5333c1(0x373)],_0x14e80f[_0x5333c1(0x306)][0x1][_0x5333c1(0x26c)][_0x5333c1(0x29f)]=global_registry['instanceType'],_0x14e80f[_0x5333c1(0x306)][0x0][_0x5333c1(0x26c)][_0x5333c1(0x1f4)]=this['serviceAccountName']+'@'+this[_0x5333c1(0x22f)]+_0x5333c1(0x1f6),_0x14e80f[_0x5333c1(0x306)][0x1]['config'][_0x5333c1(0x1f4)]=this[_0x5333c1(0x31c)]+'@'+this[_0x5333c1(0x22f)]+_0x5333c1(0x1f6),_0x14e80f[_0x5333c1(0x306)][0x0]['autoscaling']['minNodeCount']=global_registry[_0x5333c1(0x376)],_0x14e80f['nodePools'][0x1][_0x5333c1(0x28e)]['minNodeCount']=0x0,_0x14e80f['nodePools'][0x0][_0x5333c1(0x2f5)][_0x5333c1(0x2a0)]=_0x2e674a,_0x14e80f[_0x5333c1(0x306)][0x1][_0x5333c1(0x2f5)][_0x5333c1(0x2a0)]=_0x2e674a,_0x14e80f[_0x5333c1(0x306)][0x0][_0x5333c1(0x28e)]['maxNodeCount']=global_registry[_0x5333c1(0x328)],_0x14e80f['nodePools'][0x1][_0x5333c1(0x28e)][_0x5333c1(0x231)]=global_registry['maxNodes'],_0x14e80f['location']=global_registry[_0x5333c1(0x289)],_0x14e80f[_0x5333c1(0x311)]=[_0x567512[global_registry['clusterRegion']][0x0]],_0x14e80f[_0x5333c1(0x215)]=_0x5333c1(0x2ff)+this[_0x5333c1(0x22f)]+_0x5333c1(0x20c)+_0x3eee94,_0x14e80f[_0x5333c1(0x277)]=_0x5333c1(0x2ff)+this['projectId']+_0x5333c1(0x2f9)+global_registry['clusterRegion']+_0x5333c1(0x2a1)+_0x1b0348[0x0];if(_0x2e674a){if(_0x4155c3[_0x5333c1(0x278)](_0x4155c3[_0x5333c1(0x279)],_0x4155c3['yupgA'])){const _0x19c705={};_0x19c705['channel']=_0x4155c3['MldgA'],_0x14e80f[_0x5333c1(0x226)]=_0x19c705;}else return _0x33c121[_0x5333c1(0x2b9)]['loadBalancer']['ingress'][0x0]['ip'];}const _0x170dae=await this[_0x5333c1(0x2bd)]['createCluster']({'cluster':_0x14e80f,'parent':'projects/'+this[_0x5333c1(0x22f)]+'/locations/'+global_registry[_0x5333c1(0x289)]});await this[_0x5333c1(0x23f)]['delay'](_0x4155c3['QnctX'](_0x4155c3['jDdHf'](0x7,0x3c),0x3e8));}else for(const _0x16220b of _0xc54775['data'][_0x5333c1(0x251)]){if(_0x4155c3[_0x5333c1(0x206)](_0x16220b?.[_0x5333c1(0x343)],_0x5333c1(0x2ff)+this[_0x5333c1(0x22f)]+_0x5333c1(0x270)+this[_0x5333c1(0x31c)]+'@'+this[_0x5333c1(0x22f)]+'.iam.gserviceaccount.com'))return!![];}}catch(_0x4fbc29){if(_0x4155c3[_0x5333c1(0x206)](_0x4155c3[_0x5333c1(0x342)],_0x4155c3[_0x5333c1(0x2cf)]))_0x3d5658=_0x4155c3[_0x5333c1(0x20e)];else{const _0x29cad9=await this[_0x5333c1(0x22e)]();if(_0x29cad9)_0x4155c3[_0x5333c1(0x228)](_0x4155c3[_0x5333c1(0x367)],_0x4155c3[_0x5333c1(0x367)])?_0x3b0804=[_0x4155c3[_0x5333c1(0x20e)]]:(logger[_0x5333c1(0x1f8)](_0x4155c3['uoUuM'],_0x4fbc29['stack']),await this['deleteCluster']());else{if(_0x4155c3[_0x5333c1(0x206)](_0x4155c3['NAIeF'],_0x4155c3['nBkqj'])){const _0x3aed69=_0x2c8d8d[_0x5333c1(0x2c6)][_0x5333c1(0x209)](_0x1adadb);_0x19894d+='\x0a\x09'+_0x5f1660+_0x5333c1(0x27f)+(_0x3aed69?_0x4155c3[_0x5333c1(0x273)]:_0x4155c3[_0x5333c1(0x2a2)]),!_0x3aed69&&(_0x53c435[_0x5333c1(0x2b9)]=![]);}else logger['info'](_0x4155c3[_0x5333c1(0x284)]);}throw _0x4fbc29;}}}async[a3_0xb069c4(0x34f)](_0x3db4d4,_0x1a9793,_0x565615,_0x2fcd8c,_0x36d6e5){}async['updateWindowsNodeGroup'](){const _0x4ee745=a3_0xb069c4;cp[_0x4ee745(0x2a4)](_0x4ee745(0x2ae)+this[_0x4ee745(0x225)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+global_registry[_0x4ee745(0x289)]+_0x4ee745(0x339));}async[a3_0xb069c4(0x204)](_0x5d72d1,_0x338a72){const _0x26e2b3=a3_0xb069c4,_0xf936e7={'RmTcH':_0x26e2b3(0x238),'eZTqy':function(_0x18f38e,_0x2f1666){return _0x18f38e===_0x2f1666;},'QXmna':function(_0x3ac09f,_0x41d042){return _0x3ac09f!==_0x41d042;},'frXwj':_0x26e2b3(0x218),'caBhB':_0x26e2b3(0x22b),'ZkkBo':function(_0x5823fc,_0x2d2af6){return _0x5823fc(_0x2d2af6);},'LAIyo':function(_0x208ed4,_0x509392){return _0x208ed4===_0x509392;},'TWrys':'RUNNING','ttoNo':function(_0x1d3d22,_0x2376ea){return _0x1d3d22===_0x2376ea;},'SVNPJ':_0x26e2b3(0x36c),'XjrvU':'ChnXH','aysol':_0x26e2b3(0x35b),'kKzQA':function(_0x5b26a4,_0x5c44ea){return _0x5b26a4!==_0x5c44ea;},'nMFoH':_0x26e2b3(0x1ec),'aNJra':_0x26e2b3(0x36f)};try{if(_0xf936e7[_0x26e2b3(0x2cc)](_0xf936e7[_0x26e2b3(0x2fd)],_0xf936e7[_0x26e2b3(0x2ea)])){await _0xf936e7[_0x26e2b3(0x21c)](deleteAgent,_0x5d72d1),await _0xf936e7[_0x26e2b3(0x21c)](deleteRoutingDeps,_0x5d72d1),logger[_0x26e2b3(0x1f8)](_0x26e2b3(0x24e)+this[_0x26e2b3(0x225)]);const _0x2cb2f2=await this[_0x26e2b3(0x2bd)][_0x26e2b3(0x204)]({'name':_0x26e2b3(0x2ff)+this[_0x26e2b3(0x22f)]+_0x26e2b3(0x25d)+global_registry[_0x26e2b3(0x289)]+'/clusters/'+this[_0x26e2b3(0x225)]});if(_0xf936e7['LAIyo'](_0x2cb2f2[0x0]?.[_0x26e2b3(0x2b9)],_0xf936e7[_0x26e2b3(0x2c0)])||_0xf936e7[_0x26e2b3(0x31f)](_0x2cb2f2[0x0]?.[_0x26e2b3(0x2b9)],_0xf936e7[_0x26e2b3(0x211)])){if(_0xf936e7['QXmna'](_0xf936e7[_0x26e2b3(0x2bc)],_0xf936e7['XjrvU']))_0x1a9f1f[_0x26e2b3(0x1f8)](_0xf936e7[_0x26e2b3(0x2d7)]);else return!![];}logger[_0x26e2b3(0x1f8)](_0xf936e7[_0x26e2b3(0x28f)]);}else _0xf936e7['eZTqy'](_0x52fe97[_0x26e2b3(0x343)],this['clusterName'])&&_0x5dc0e6[_0x26e2b3(0x363)](_0x55dbd1);}catch(_0x33b367){if(_0xf936e7['kKzQA'](_0xf936e7['nMFoH'],_0xf936e7[_0x26e2b3(0x21d)]))_0x230bc4[_0x26e2b3(0x21a)](_0x26e2b3(0x220)+_0x298823+_0x26e2b3(0x27f)+_0x435bbd[_0x26e2b3(0x334)]),_0x31f183['data']='Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20'+_0x391c7f,_0x5cfa95[_0x26e2b3(0x21a)]=_0x9458df;else{logger[_0x26e2b3(0x1f8)](_0xf936e7[_0x26e2b3(0x299)]);throw _0x33b367;}}}async[a3_0xb069c4(0x24b)](_0x1c4571){const _0x288d34=a3_0xb069c4,_0x34cd95={};_0x34cd95[_0x288d34(0x2f8)]=function(_0x544cf9,_0x14e539){return _0x544cf9-_0x14e539;},_0x34cd95['zglbb']=function(_0xd6f5fd,_0xeae566){return _0xd6f5fd!==_0xeae566;},_0x34cd95['CgMpf']=_0x288d34(0x2d4),_0x34cd95['SuGIn']=_0x288d34(0x2a5),_0x34cd95['pbkUj']=function(_0x3fef99,_0x4be1da){return _0x3fef99>_0x4be1da;},_0x34cd95[_0x288d34(0x1f0)]=function(_0x3d3b80,_0x259d01){return _0x3d3b80===_0x259d01;},_0x34cd95[_0x288d34(0x23a)]=function(_0x48b656,_0x2cf334){return _0x48b656===_0x2cf334;},_0x34cd95['BzGyC']=_0x288d34(0x30d),_0x34cd95[_0x288d34(0x28c)]=_0x288d34(0x272),_0x34cd95[_0x288d34(0x2ad)]=_0x288d34(0x332);const _0x471ef2=_0x34cd95;try{if(_0x471ef2[_0x288d34(0x216)](_0x471ef2['CgMpf'],_0x471ef2['SuGIn'])){const _0x6371ea=await this[_0x288d34(0x28b)][_0x288d34(0x2dc)]({'project':this[_0x288d34(0x22f)],'network':_0x1c4571});if(_0x471ef2[_0x288d34(0x20f)](_0x6371ea[_0x288d34(0x1fd)],0x0)&&_0x471ef2[_0x288d34(0x1f0)](_0x6371ea[0x0][_0x288d34(0x343)],_0x1c4571)){if(_0x471ef2[_0x288d34(0x23a)](_0x471ef2[_0x288d34(0x202)],_0x471ef2[_0x288d34(0x28c)]))_0x185c4f['vpcInfo'][_0x288d34(0x363)](_0x522303);else return!![];}}else _0x4489dd[_0x288d34(0x289)]=_0x4340ba[_0x471ef2[_0x288d34(0x2f8)](_0x34866f,0x1)],this[_0x288d34(0x21b)]();}catch(_0x4f36cb){if(_0x471ef2[_0x288d34(0x216)](_0x471ef2['VdVdO'],_0x471ef2['VdVdO']))_0x5df8b1['clusterRegion']=_0x4e11e0[0x0],this[_0x288d34(0x21b)]();else return![];}return![];}async['isSubnetsValid'](_0x32f58c,_0x34df26){const _0x4f7956=a3_0xb069c4,_0x519986={};_0x519986[_0x4f7956(0x240)]=function(_0x81369d,_0x3463f8){return _0x81369d===_0x3463f8;},_0x519986[_0x4f7956(0x360)]=function(_0x10fa0c,_0x17b7e4){return _0x10fa0c!==_0x17b7e4;},_0x519986[_0x4f7956(0x262)]='NksHO',_0x519986[_0x4f7956(0x1ff)]=_0x4f7956(0x2c4),_0x519986[_0x4f7956(0x29c)]=function(_0x5726d4,_0x336461){return _0x5726d4!==_0x336461;},_0x519986[_0x4f7956(0x308)]=_0x4f7956(0x27c),_0x519986['aKDWv']=function(_0x512d53,_0x5b4580){return _0x512d53===_0x5b4580;},_0x519986[_0x4f7956(0x25b)]='Jgepr',_0x519986[_0x4f7956(0x242)]=_0x4f7956(0x310),_0x519986['eicYg']=_0x4f7956(0x2c5),_0x519986[_0x4f7956(0x25e)]=_0x4f7956(0x36a);const _0x407e6a=_0x519986;try{if(_0x407e6a[_0x4f7956(0x360)](_0x407e6a[_0x4f7956(0x262)],_0x407e6a[_0x4f7956(0x1ff)])){const _0x44b24d=await this['networkClient'][_0x4f7956(0x2dc)]({'project':this[_0x4f7956(0x22f)],'network':_0x34df26});for(const _0x33b36e of _0x44b24d[0x0][_0x4f7956(0x2d3)]){if(_0x407e6a[_0x4f7956(0x29c)](_0x407e6a['PbQhN'],_0x407e6a[_0x4f7956(0x308)]))_0x522e05=_0x183ab[_0x4f7956(0x2d8)](_0x31835c[_0x3e1a2b[_0x4f7956(0x289)]]);else{const _0x2c1ef1=_0x4f7956(0x1f7)+this[_0x4f7956(0x22f)]+_0x4f7956(0x2f9)+global_registry[_0x4f7956(0x289)]+_0x4f7956(0x2a1)+_0x32f58c[0x0];if(_0x407e6a[_0x4f7956(0x357)](_0x2c1ef1,_0x33b36e)){if(_0x407e6a[_0x4f7956(0x357)](_0x407e6a['ZadxO'],_0x407e6a[_0x4f7956(0x242)])){const _0x80224e=_0x4f7956(0x1f7)+this[_0x4f7956(0x22f)]+_0x4f7956(0x2f9)+_0x150da5[_0x4f7956(0x289)]+'/subnetworks/'+_0x51155f[0x0];if(_0x407e6a['hgQku'](_0x80224e,_0x30a89a))return[!![],_0xe2e21a];}else return[!![],_0x32f58c];}}}}else _0x3d17c7[_0x4f7956(0x2a4)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x4f7956(0x225)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+_0x5a0346['clusterRegion']+_0x4f7956(0x339));}catch(_0x5aa062){if(_0x407e6a['aKDWv'](_0x407e6a[_0x4f7956(0x292)],_0x407e6a[_0x4f7956(0x25e)]))_0x429979['error']=_0x596c3d;else return logger['error'](_0x4f7956(0x34c)+_0x32f58c+'.\x20Error:\x20'+_0x5aa062),[![],[]];}return[![],[]];}async[a3_0xb069c4(0x29e)](){const _0x5a5eb6=a3_0xb069c4,_0x1ce37f={};_0x1ce37f[_0x5a5eb6(0x324)]=function(_0x3158f1,_0x408147){return _0x3158f1===_0x408147;},_0x1ce37f[_0x5a5eb6(0x26f)]=_0x5a5eb6(0x256);const _0x2a8107=_0x1ce37f,_0x20e6d5=await this[_0x5a5eb6(0x28b)][_0x5a5eb6(0x31e)]({'project':this[_0x5a5eb6(0x22f)]}),_0x13e200={};_0x13e200[_0x5a5eb6(0x233)]=global_registry[_0x5a5eb6(0x2eb)],_0x13e200[_0x5a5eb6(0x2e8)]=global_registry[_0x5a5eb6(0x20b)],_0x13e200[_0x5a5eb6(0x383)]=GCP,_0x13e200[_0x5a5eb6(0x2b0)]=[];const _0x564a2e=_0x13e200;for(const _0x4cf0b6 of _0x20e6d5){_0x2a8107['cIUxD'](_0x2a8107[_0x5a5eb6(0x26f)],_0x2a8107['wPhCK'])?_0x564a2e[_0x5a5eb6(0x2b0)][_0x5a5eb6(0x363)](_0x4cf0b6):_0x1017d0['debug'](_0xfc93fa);}const _0x2fd48e={};_0x2fd48e['type']=WS_EVENTS['RESOURCES'],_0x2fd48e[_0x5a5eb6(0x28d)]=_0x564a2e,this['webSocketUtils'][_0x5a5eb6(0x303)](this[_0x5a5eb6(0x264)],_0x2fd48e);}async[a3_0xb069c4(0x21b)](){const _0x51af77=a3_0xb069c4,_0x330769={'hIyzo':function(_0x1f69d7,_0x15b5d0,_0x468996){return _0x1f69d7(_0x15b5d0,_0x468996);},'fFLLi':'PUT','qsxme':'json','cYFdy':function(_0x3e3faf,_0x57776b,_0x2549b9){return _0x3e3faf(_0x57776b,_0x2549b9);}},_0x2f66ae=_0x51af77(0x24a)+AG_API_URL+_0x51af77(0x237),_0x3c97d4={};_0x3c97d4[_0x51af77(0x297)]=global_registry[_0x51af77(0x36d)];const _0x5151bc={};_0x5151bc[_0x51af77(0x2d1)]=global_registry['clusterRegion'];const _0x3347c2={'searchParams':_0x3c97d4,'json':_0x5151bc,'headers':_0x330769[_0x51af77(0x253)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x51af77(0x20b)]),'method':_0x330769[_0x51af77(0x354)],'responseType':_0x330769['qsxme'],'throwHttpErrors':![]},_0xd1fb91=await _0x330769[_0x51af77(0x210)](got,_0x2f66ae,_0x3347c2);}async[a3_0xb069c4(0x375)](){const _0x49010e=a3_0xb069c4,_0x417fa1={'ZZRPf':function(_0x2d6cb7,_0x2e1208){return _0x2d6cb7(_0x2e1208);},'ejGOJ':_0x49010e(0x1fa),'dNZyk':'Intercepted','iFKpg':_0x49010e(0x255)},_0x490e4c={};_0x490e4c['status']=![],_0x490e4c[_0x49010e(0x21a)]=null,_0x490e4c['data']='';const _0x3ffa71=_0x490e4c;try{const _0x36f726=await _0x417fa1[_0x49010e(0x330)](runCommand,_0x417fa1[_0x49010e(0x387)]);_0x36f726[_0x49010e(0x267)](_0x417fa1[_0x49010e(0x261)])?logger[_0x49010e(0x2f1)](_0x36f726):logger[_0x49010e(0x359)](_0x36f726),_0x3ffa71[_0x49010e(0x2b9)]=!![],_0x3ffa71[_0x49010e(0x26b)]=_0x417fa1['iFKpg'];}catch(_0x3b6e85){logger['error'](_0x49010e(0x220)+_0x3b6e85+_0x49010e(0x27f)+_0x3b6e85[_0x49010e(0x334)]),_0x3ffa71[_0x49010e(0x26b)]=_0x49010e(0x2e2)+_0x3b6e85,_0x3ffa71[_0x49010e(0x21a)]=_0x3b6e85;}return _0x3ffa71;}async[a3_0xb069c4(0x207)](){const _0x1d2202=a3_0xb069c4,_0x434e4d={};_0x434e4d[_0x1d2202(0x1e7)]=_0x1d2202(0x26e),_0x434e4d[_0x1d2202(0x350)]=_0x1d2202(0x2d6);const _0x4fa474=_0x434e4d,_0x304854={};_0x304854['status']=![],_0x304854['error']=null,_0x304854[_0x1d2202(0x26b)]='';const _0x1e78ba=_0x304854;try{let _0x322063='';const _0x447496=_0x1d2202(0x2ff)+this[_0x1d2202(0x22f)],[_0x2f4be1]=await this['resourcemanagerClient'][_0x1d2202(0x333)]({'resource':_0x447496,'permissions':Object[_0x1d2202(0x2c3)](PERMISSIONS)});_0x1e78ba[_0x1d2202(0x2b9)]=!![],logger['debug'](_0x1d2202(0x20a)+_0x447496+':\x20'+JSON[_0x1d2202(0x34d)](_0x2f4be1)),Object['entries'](PERMISSIONS)[_0x1d2202(0x371)](([_0x5379ce,_0xef9515])=>{const _0x595cee=_0x1d2202,_0x52952e=_0x2f4be1[_0x595cee(0x2c6)][_0x595cee(0x209)](_0x5379ce);_0x322063+='\x0a\x09'+_0xef9515+_0x595cee(0x27f)+(_0x52952e?_0x4fa474[_0x595cee(0x1e7)]:_0x4fa474[_0x595cee(0x350)]),!_0x52952e&&(_0x1e78ba[_0x595cee(0x2b9)]=![]);}),_0x1e78ba[_0x1d2202(0x26b)]=_0x322063;}catch(_0x5dfbc9){_0x1e78ba[_0x1d2202(0x21a)]=_0x5dfbc9;}return _0x1e78ba;}}const a3_0x2875f3={};a3_0x2875f3[a3_0xb069c4(0x2a6)]=GoogleCloudProvider,module[a3_0xb069c4(0x254)]=a3_0x2875f3;
1
+ function a3_0x30d2(_0x4628b1,_0x2cf665){const _0x4b6167=a3_0x4b61();return a3_0x30d2=function(_0x30d2d6,_0x464e5a){_0x30d2d6=_0x30d2d6-0xc8;let _0x4148b0=_0x4b6167[_0x30d2d6];return _0x4148b0;},a3_0x30d2(_0x4628b1,_0x2cf665);}const a3_0x2dde46=a3_0x30d2;(function(_0x133b0c,_0x921a2c){const _0x2ea371=a3_0x30d2,_0x4ddd5e=_0x133b0c();while(!![]){try{const _0x175c18=parseInt(_0x2ea371(0x22d))/0x1*(-parseInt(_0x2ea371(0x13f))/0x2)+parseInt(_0x2ea371(0x122))/0x3+parseInt(_0x2ea371(0x229))/0x4*(-parseInt(_0x2ea371(0x12e))/0x5)+parseInt(_0x2ea371(0x271))/0x6+-parseInt(_0x2ea371(0x242))/0x7*(parseInt(_0x2ea371(0x250))/0x8)+parseInt(_0x2ea371(0x132))/0x9+parseInt(_0x2ea371(0x145))/0xa;if(_0x175c18===_0x921a2c)break;else _0x4ddd5e['push'](_0x4ddd5e['shift']());}catch(_0x18a0a2){_0x4ddd5e['push'](_0x4ddd5e['shift']());}}}(a3_0x4b61,0xd9154));const fs=require('fs'),path=require(a3_0x2dde46(0x12c)),got=require('got'),util=require('util'),cp=require(a3_0x2dde46(0x10d)),{google}=require(a3_0x2dde46(0x184)),compute=require(a3_0x2dde46(0x23e)),container=require(a3_0x2dde46(0x258)),{ProjectsClient}=require(a3_0x2dde46(0x240))['v3'],{logger}=require('../config/logger'),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader,runCommand}=require(a3_0x2dde46(0x268)),{deleteRoutingDeps,deleteAgent}=require(a3_0x2dde46(0x278)),{inputConfirmation,closeInput}=require('../utils/userInput'),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x2dde46(0x147)),PERMISSIONS=require(a3_0x2dde46(0xc9));class GoogleCloudProvider extends CloudProvider{constructor(_0x196a03,_0x2f520c,_0x15252f,_0x4ff3b5){const _0x344461=a3_0x2dde46,_0x135b38={};_0x135b38[_0x344461(0xf5)]=_0x344461(0x19f),_0x135b38[_0x344461(0x103)]=_0x344461(0x1b9),_0x135b38[_0x344461(0x13a)]=_0x344461(0x279);const _0x47eeb4=_0x135b38,_0x6ea675=_0x47eeb4[_0x344461(0xf5)][_0x344461(0x264)]('|');let _0x453fab=0x0;while(!![]){switch(_0x6ea675[_0x453fab++]){case'0':this[_0x344461(0x194)]=null;continue;case'1':super(GCP,_0x196a03,_0x2f520c,_0x15252f,_0x4ff3b5);continue;case'2':this[_0x344461(0x1cd)]=_0x47eeb4[_0x344461(0x103)];continue;case'3':this['iamClient']=null;continue;case'4':this[_0x344461(0x1e4)]=null;continue;case'5':this['serviceAccountName']=_0x47eeb4[_0x344461(0x13a)];continue;case'6':this[_0x344461(0x222)]=null;continue;case'7':this[_0x344461(0x1a4)]=null;continue;case'8':this[_0x344461(0x1e9)]=null;continue;}break;}}async['sendResourceDataToHST'](){const _0x45a610=a3_0x2dde46;this[_0x45a610(0x13b)](this[_0x45a610(0x12f)]);}async['init'](){const _0x199e5c=a3_0x2dde46;await super[_0x199e5c(0x187)]();const _0x387325=this[_0x199e5c(0x194)],_0xc45940={};_0xc45940['keyFile']=_0x387325,this[_0x199e5c(0x1e9)]=new container['v1']['ClusterManagerClient'](_0xc45940);const _0x54f965={};_0x54f965['keyFile']=_0x387325,this[_0x199e5c(0x222)]=new compute['v1']['NetworksClient'](_0x54f965);const _0x4aa7ae={};return _0x4aa7ae[_0x199e5c(0xda)]=_0x387325,this['resourcemanagerClient']=new ProjectsClient(_0x4aa7ae),this[_0x199e5c(0xd7)]=google[_0x199e5c(0xff)]('v1'),this;}async[a3_0x2dde46(0xfa)](_0x2610d8,_0x137800){const _0xcacba=a3_0x2dde46,_0xd74f62={'gwxHU':function(_0x4ff8cd,_0x15b01c){return _0x4ff8cd(_0x15b01c);},'vNnMQ':_0xcacba(0x1b5),'VHPea':function(_0x17edc4){return _0x17edc4();},'OxqGi':_0xcacba(0x1fa)},_0x2611b3=await _0xd74f62[_0xcacba(0xe7)](_0x2610d8,_0xd74f62[_0xcacba(0x1c7)]);let _0x3c4aae=await fs[_0xcacba(0x1d9)](_0x2611b3);_0x3c4aae=_0x3c4aae[_0xcacba(0x16a)]();const _0x10ecf6=_0xd74f62['VHPea'](getDirForConfig),_0x473bea=path[_0xcacba(0x212)](_0x10ecf6,_0xd74f62[_0xcacba(0x269)]);fs[_0xcacba(0x236)](_0x473bea,_0x3c4aae),this['credentialsPath']=_0x473bea;const _0x550568={};return _0x550568['keyFile']=_0x473bea,_0x137800[_0xcacba(0x1c9)][GCP]=_0x550568,_0x3c4aae=JSON[_0xcacba(0x130)](_0x3c4aae),this[_0xcacba(0x1e4)]=_0x3c4aae[_0xcacba(0xcf)],_0x137800;}async[a3_0x2dde46(0x1a3)](_0x3807c5){const _0x3cc515=a3_0x2dde46;this[_0x3cc515(0x194)]=_0x3807c5[this[_0x3cc515(0x185)]]['keyFile'];let _0x40c5c9=await fs['readFileAsync'](this[_0x3cc515(0x194)]);_0x40c5c9=JSON['parse'](_0x40c5c9),this['projectId']=_0x40c5c9[_0x3cc515(0xcf)];}[a3_0x2dde46(0xcd)](_0x5c1c05){const _0x7cce10=a3_0x2dde46;return _0x5c1c05['status'][_0x7cce10(0x17e)]['ingress'][0x0]['ip'];}async[a3_0x2dde46(0xf2)](){const _0x15042b=a3_0x2dde46,_0x551421={};_0x551421[_0x15042b(0x1c0)]=function(_0x3bc03b,_0x50f549){return _0x3bc03b===_0x50f549;},_0x551421[_0x15042b(0x117)]=_0x15042b(0x16c),_0x551421[_0x15042b(0x23b)]=_0x15042b(0x25b),_0x551421['FNQhw']=function(_0x56ac0d,_0x5bc810){return _0x56ac0d!==_0x5bc810;},_0x551421['gfoZR']=_0x15042b(0x17b),_0x551421['HovBY']=_0x15042b(0x102),_0x551421[_0x15042b(0x21b)]=function(_0x3a4487,_0x5c0f5f){return _0x3a4487===_0x5c0f5f;},_0x551421[_0x15042b(0x227)]=_0x15042b(0x195),_0x551421[_0x15042b(0x21c)]=_0x15042b(0x11b);const _0x1cebff=_0x551421;try{if(_0x1cebff[_0x15042b(0x1c0)](_0x1cebff[_0x15042b(0x117)],_0x1cebff['NHMDi']))return _0x500ba6[_0x15042b(0x1d0)][_0x15042b(0x17e)][_0x15042b(0x259)][0x0]['ip'];else{const _0xc79719=await this[_0x15042b(0x1fb)]();if(_0xc79719[0x0]?.[_0x15042b(0x186)]?.[_0x15042b(0xd8)]){if(_0x1cebff[_0x15042b(0x224)](_0x1cebff[_0x15042b(0x270)],_0x1cebff['HovBY'])){const _0x23eece=_0xc79719[0x0]?.[_0x15042b(0x186)]?.['managedby'];return _0x23eece&&_0x1cebff[_0x15042b(0x21b)](_0x23eece[_0x15042b(0x244)](),_0x1cebff[_0x15042b(0x227)]);}else _0x211d1c[_0x15042b(0x129)](_0x421b64);}}}catch(_0x560ad6){if(_0x1cebff[_0x15042b(0x21b)](_0x1cebff[_0x15042b(0x21c)],_0x1cebff[_0x15042b(0x21c)]))return![];else{const _0x45b5dd='https://www.googleapis.com/compute/v1/projects/'+this[_0x15042b(0x1e4)]+_0x15042b(0x24a)+_0xd40c42['clusterRegion']+_0x15042b(0x169)+_0xd8293a[0x0];if(_0x1cebff['mrJFd'](_0x45b5dd,_0x48286f))return[!![],_0x34e9ca];}}return![];}async[a3_0x2dde46(0x1a7)](){const _0x12dbe3=a3_0x2dde46,_0x2e4435={'WDfrf':_0x12dbe3(0xfe),'WRxLY':function(_0x24e55f,_0x1bd449){return _0x24e55f+_0x1bd449;},'CEEmN':_0x12dbe3(0x1ba),'SqZSB':function(_0x1d47d2,_0x154e99){return _0x1d47d2===_0x154e99;},'KAwtH':_0x12dbe3(0x1af),'sqqnw':_0x12dbe3(0xde),'lQkXe':_0x12dbe3(0xec),'RMasf':_0x12dbe3(0x257),'kTkVW':function(_0x31c68e,_0x58ff90){return _0x31c68e!==_0x58ff90;},'vveHd':_0x12dbe3(0x152),'KacYU':_0x12dbe3(0x19c),'dIFaT':function(_0x5cf2,_0x150c33){return _0x5cf2!==_0x150c33;},'sRoRV':'oiXJe','fYWLl':function(_0x51bd0f,_0x4b76db){return _0x51bd0f===_0x4b76db;},'POnQa':_0x12dbe3(0xe8),'rGjpY':function(_0x4b91a3,_0x76df32){return _0x4b91a3===_0x76df32;},'saLKS':_0x12dbe3(0x157),'bBZUn':_0x12dbe3(0x1d7),'BBzUQ':_0x12dbe3(0x1ac),'xAbfG':function(_0x2c7a9a,_0xf7c97c){return _0x2c7a9a!==_0xf7c97c;},'dzsAm':function(_0x465139,_0xdb9630){return _0x465139!==_0xdb9630;},'JJfPP':_0x12dbe3(0x1d1),'XllVS':function(_0x591024,_0x54d0f1){return _0x591024>_0x54d0f1;},'vGLKd':function(_0x3f5288,_0xeb3846){return _0x3f5288!==_0xeb3846;},'YqWeT':_0x12dbe3(0x1f0),'NYKui':function(_0x3ed9d8,_0xb9f9fa){return _0x3ed9d8<_0xb9f9fa;},'ihmLJ':'Hzjsj','SkgqP':_0x12dbe3(0x22e),'WgDOV':function(_0x44b81d,_0xb3c965){return _0x44b81d+_0xb3c965;},'cgZjF':function(_0x6c8e56,_0xa7e219){return _0x6c8e56(_0xa7e219);},'IHVfo':_0x12dbe3(0xf4),'xIQBz':function(_0x5eec8f,_0x5fd2b5){return _0x5eec8f(_0x5fd2b5);},'Fgdms':function(_0x28634d,_0x5c0723){return _0x28634d(_0x5c0723);},'xanLO':function(_0x240fdd,_0x33be1a){return _0x240fdd<=_0x33be1a;},'LqODe':function(_0xcf055f,_0x384647){return _0xcf055f>_0x384647;},'IYbeQ':function(_0x384d8a,_0x50f591){return _0x384d8a!==_0x50f591;},'cqqHN':_0x12dbe3(0x181),'vTfIM':_0x12dbe3(0x114),'BIaFG':function(_0x56816c){return _0x56816c();},'TQxQT':function(_0x5151d3,_0x44d5ce){return _0x5151d3-_0x44d5ce;},'hICNp':function(_0x36e325,_0x582bf0){return _0x36e325!==_0x582bf0;},'Xsffz':_0x12dbe3(0x225),'oBAAX':_0x12dbe3(0x1b4)};let _0x2d5d83=await fs[_0x12dbe3(0x1d9)](path[_0x12dbe3(0x212)](__dirname,'..',_0x2e4435[_0x12dbe3(0x19b)],_0x2e4435[_0x12dbe3(0x21f)],_0x2e4435['lQkXe']),_0x2e4435[_0x12dbe3(0x155)]);_0x2d5d83=JSON[_0x12dbe3(0x130)](_0x2d5d83);let _0x4894a1=[global_registry[_0x12dbe3(0x171)]];_0x2e4435['kTkVW'](_0x2d5d83[global_registry['clusterRegion']],undefined)&&(_0x2e4435[_0x12dbe3(0x1e2)](_0x2e4435[_0x12dbe3(0x18c)],_0x2e4435[_0x12dbe3(0x22f)])?_0x4894a1=_0x4894a1[_0x12dbe3(0x1b0)](_0x2d5d83[global_registry['clusterRegion']]):_0x1905ad=[_0x2e4435['WDfrf']]);const _0x4f1c4e=[];for await(const _0x45b4f7 of _0x4894a1){if(_0x2e4435[_0x12dbe3(0x215)](_0x2e4435[_0x12dbe3(0x241)],_0x2e4435['sRoRV']))_0x59ce0a['log']('['+_0x2e4435[_0x12dbe3(0x138)](_0x1fee16,0x1)+']\x20'+_0x13410b[_0x3c4db6]);else{const _0xbf7396={};_0xbf7396['parent']=_0x12dbe3(0x121)+this[_0x12dbe3(0x1e4)]+'/locations/'+_0x45b4f7;const _0x1130a3=_0xbf7396,_0x476b3d=await this[_0x12dbe3(0x1e9)]['listClusters'](_0x1130a3);for(const _0x2582d4 of _0x476b3d[0x0][_0x12dbe3(0x27a)]){if(_0x2e4435[_0x12dbe3(0x178)](_0x2e4435['POnQa'],_0x2e4435[_0x12dbe3(0x1ea)])){if(_0x2e4435[_0x12dbe3(0x180)](_0x2582d4[_0x12dbe3(0x1b1)],this[_0x12dbe3(0x21e)])){if(_0x2e4435[_0x12dbe3(0x215)](_0x2e4435[_0x12dbe3(0x151)],_0x2e4435[_0x12dbe3(0x161)]))_0x4f1c4e[_0x12dbe3(0x129)](_0x45b4f7);else return!![];}}else return![];}}}const _0x52240e=_0x4f1c4e[_0x12dbe3(0xef)];if(_0x2e4435[_0x12dbe3(0x125)](_0x52240e,0x1)){if(_0x2e4435[_0x12dbe3(0x180)](_0x2e4435[_0x12dbe3(0x128)],_0x2e4435['BBzUQ']))return _0x2e4435[_0x12dbe3(0x1a1)](global_registry[_0x12dbe3(0x171)],_0x4f1c4e[0x0])&&(_0x2e4435[_0x12dbe3(0x1ab)](_0x2e4435[_0x12dbe3(0x13e)],_0x2e4435[_0x12dbe3(0x13e)])?this[_0x12dbe3(0x13b)](this[_0x12dbe3(0x12f)]):(global_registry[_0x12dbe3(0x171)]=_0x4f1c4e[0x0],this[_0x12dbe3(0x165)]())),!![];else{const _0x5ebdfd={};_0x5ebdfd[_0x12dbe3(0x23a)]=_0x2e4435[_0x12dbe3(0x154)],_0x7620d0[_0x12dbe3(0xd2)]=_0x5ebdfd;}}else{if(_0x2e4435[_0x12dbe3(0x26c)](_0x52240e,0x1)){if(_0x2e4435[_0x12dbe3(0x12d)](_0x2e4435[_0x12dbe3(0x265)],_0x2e4435[_0x12dbe3(0x265)]))_0x3b1707=_0x2e4435[_0x12dbe3(0x189)];else{console['log']('Found\x20cluster\x20with\x20name\x20\x27'+this['clusterName']+_0x12dbe3(0x207));for(let _0x45471b=0x0;_0x2e4435[_0x12dbe3(0x16b)](_0x45471b,_0x52240e);_0x45471b+=0x1){_0x2e4435[_0x12dbe3(0x125)](_0x2e4435[_0x12dbe3(0xf7)],_0x2e4435[_0x12dbe3(0x219)])?_0x2e4435['SqZSB'](_0x589c3c[_0x12dbe3(0x1b1)],this[_0x12dbe3(0x21e)])&&_0x25bdfe[_0x12dbe3(0x129)](_0x3cfd8f):console['log']('['+_0x2e4435[_0x12dbe3(0x24c)](_0x45471b,0x1)+']\x20'+_0x4f1c4e[_0x45471b]);}const _0x1920cb=await _0x2e4435[_0x12dbe3(0x14c)](inputConfirmation,_0x2e4435['IHVfo']),_0xbdf12=_0x2e4435[_0x12dbe3(0xd1)](Number,_0x1920cb);return(_0x2e4435[_0x12dbe3(0xd6)](isNaN,_0xbdf12)||_0x2e4435[_0x12dbe3(0x1e0)](_0xbdf12,0x0)||_0x2e4435['LqODe'](_0xbdf12,_0x52240e))&&(_0x2e4435[_0x12dbe3(0x263)](_0x2e4435[_0x12dbe3(0x20b)],_0x2e4435[_0x12dbe3(0x20b)])?_0x22553d[_0x12dbe3(0x146)](_0x37029c):(console[_0x12dbe3(0xe5)](_0x2e4435['vTfIM']),process['exit'](0x1))),_0x2e4435['BIaFG'](closeInput),logger['info'](_0x12dbe3(0x23d)+_0x4f1c4e[_0x2e4435[_0x12dbe3(0x20e)](_0xbdf12,0x1)]),_0x2e4435[_0x12dbe3(0x26d)](global_registry[_0x12dbe3(0x171)],_0x4f1c4e[_0x2e4435[_0x12dbe3(0x20e)](_0xbdf12,0x1)])&&(_0x2e4435[_0x12dbe3(0x1ab)](_0x2e4435[_0x12dbe3(0xeb)],_0x2e4435[_0x12dbe3(0x116)])?(global_registry[_0x12dbe3(0x171)]=_0x4f1c4e[_0x2e4435[_0x12dbe3(0x20e)](_0xbdf12,0x1)],this['updateClusterRegion']()):_0x1ed3bf[_0x12dbe3(0x1f7)](_0x55f2c3)),!![];}}}return![];}async[a3_0x2dde46(0x1fb)](){const _0x3f8f19=a3_0x2dde46,_0x2ee291=await this[_0x3f8f19(0x1e9)][_0x3f8f19(0x176)]({'name':_0x3f8f19(0x121)+this[_0x3f8f19(0x1e4)]+_0x3f8f19(0x20f)+global_registry[_0x3f8f19(0x171)]+_0x3f8f19(0x126)+this[_0x3f8f19(0x21e)]});return _0x2ee291;}async[a3_0x2dde46(0x153)](){const _0x3dad84=a3_0x2dde46,_0x1a730c={};_0x1a730c[_0x3dad84(0x1f6)]=_0x3dad84(0x11d),_0x1a730c['SZaze']=_0x3dad84(0x1af),_0x1a730c[_0x3dad84(0x26a)]=_0x3dad84(0xde),_0x1a730c['XkOZm']=_0x3dad84(0x202);const _0x41dc4a=_0x1a730c;cp['execSync'](_0x41dc4a[_0x3dad84(0x1f6)]),cp[_0x3dad84(0xd0)]('gcloud\x20auth\x20login\x20--cred-file='+this[_0x3dad84(0x194)]);const _0x104c9c=await this[_0x3dad84(0x1fb)](),_0x28c872=_0x3dad84(0x13d)+this[_0x3dad84(0x1e4)]+'_'+global_registry[_0x3dad84(0x171)]+'_'+this[_0x3dad84(0x21e)];let _0x5d2184=await fs['readFileAsync'](path[_0x3dad84(0x212)](__dirname,'..',_0x41dc4a[_0x3dad84(0xe3)],_0x41dc4a[_0x3dad84(0x26a)],_0x41dc4a[_0x3dad84(0x1a5)]));return _0x5d2184=_0x5d2184[_0x3dad84(0x16a)](),_0x5d2184=_0x5d2184[_0x3dad84(0x1de)](/<CLUSTER_NAME>/g,_0x28c872),_0x5d2184=_0x5d2184[_0x3dad84(0x1de)](/<CLUSTER_URL>/g,_0x3dad84(0x1a9)+_0x104c9c[0x0][_0x3dad84(0x17d)]),_0x5d2184=_0x5d2184['replace'](/<CERTIFICATE_DATA>/g,_0x104c9c[0x0][_0x3dad84(0x210)][_0x3dad84(0x1a8)]),_0x5d2184;}async[a3_0x2dde46(0x193)](){const _0x43e60f=a3_0x2dde46,_0x189c5b={};_0x189c5b[_0x43e60f(0x100)]=_0x43e60f(0x255),_0x189c5b['OAekD']=function(_0xb7251,_0x36cbe7){return _0xb7251!==_0x36cbe7;},_0x189c5b[_0x43e60f(0x10c)]=_0x43e60f(0x15d),_0x189c5b[_0x43e60f(0x123)]=function(_0x3d4b4c,_0xae63c7){return _0x3d4b4c===_0xae63c7;},_0x189c5b[_0x43e60f(0x1d6)]=_0x43e60f(0x182),_0x189c5b[_0x43e60f(0x1d8)]=_0x43e60f(0x168),_0x189c5b[_0x43e60f(0x1ce)]='qlpSr',_0x189c5b['sKqFX']=_0x43e60f(0x1f1),_0x189c5b['mellb']=function(_0x4c133b,_0x49b806){return _0x4c133b===_0x49b806;},_0x189c5b['vIdCY']=function(_0x11d8d9,_0x1a1966){return _0x11d8d9!==_0x1a1966;},_0x189c5b[_0x43e60f(0xd5)]=_0x43e60f(0x1bd),_0x189c5b['cydFd']=_0x43e60f(0xd4);const _0x167e27=_0x189c5b,_0x229081={};_0x229081[_0x43e60f(0x107)]=[_0x167e27[_0x43e60f(0x10c)]],_0x229081[_0x43e60f(0xda)]=this['credentialsPath'];const _0x31ea13=await google['auth'][_0x43e60f(0x1ef)](_0x229081),_0x349658=await this[_0x43e60f(0xd7)][_0x43e60f(0x1b3)][_0x43e60f(0x188)][_0x43e60f(0x26f)]({'name':_0x43e60f(0x121)+this[_0x43e60f(0x1e4)],'auth':_0x31ea13});if(_0x349658?.[_0x43e60f(0x108)]?.[_0x43e60f(0x1df)]){if(_0x167e27[_0x43e60f(0x123)](_0x167e27[_0x43e60f(0x1d6)],_0x167e27[_0x43e60f(0x1d8)]))_0x2a2903[_0x43e60f(0x171)]=_0x32ec47[0x0],this['updateClusterRegion']();else for(const _0x4b1863 of _0x349658['data'][_0x43e60f(0x1df)]){if(_0x167e27['OAekD'](_0x167e27[_0x43e60f(0x1ce)],_0x167e27[_0x43e60f(0xfb)])){if(_0x167e27[_0x43e60f(0x1c3)](_0x4b1863?.['name'],'projects/'+this[_0x43e60f(0x1e4)]+_0x43e60f(0x267)+this[_0x43e60f(0x177)]+'@'+this[_0x43e60f(0x1e4)]+_0x43e60f(0x25a))){if(_0x167e27[_0x43e60f(0x256)](_0x167e27['kXmfv'],_0x167e27[_0x43e60f(0x175)]))return!![];else _0x55ab58[_0x43e60f(0x111)](_0x167e27[_0x43e60f(0x100)]);}}else return _0x167e27['OAekD'](_0x53e454[_0x43e60f(0x171)],_0x3413af[0x0])&&(_0x1bf1c2[_0x43e60f(0x171)]=_0x5eccad[0x0],this[_0x43e60f(0x165)]()),!![];}}return![];}async[a3_0x2dde46(0x15c)](){const _0x13c7ac=a3_0x2dde46,_0x4f8273={};_0x4f8273[_0x13c7ac(0x1ca)]=function(_0xa9edc3,_0x57fc0c){return _0xa9edc3===_0x57fc0c;},_0x4f8273['cDSFb']='BFtRh',_0x4f8273[_0x13c7ac(0x21a)]=_0x13c7ac(0xfd),_0x4f8273[_0x13c7ac(0xcc)]='Service\x20account\x20already\x20exists,\x20skipping',_0x4f8273[_0x13c7ac(0x18a)]='Creating\x20service\x20account',_0x4f8273[_0x13c7ac(0x11e)]=_0x13c7ac(0x15d),_0x4f8273[_0x13c7ac(0x1cf)]=_0x13c7ac(0xe1),_0x4f8273['LZMQA']=_0x13c7ac(0x183),_0x4f8273[_0x13c7ac(0x248)]=_0x13c7ac(0x10b),_0x4f8273[_0x13c7ac(0x1fe)]=_0x13c7ac(0x15f),_0x4f8273[_0x13c7ac(0x150)]='storage.buckets.deleteTagBinding',_0x4f8273['HgoOJ']=_0x13c7ac(0x1f9),_0x4f8273[_0x13c7ac(0x173)]=_0x13c7ac(0x18d),_0x4f8273[_0x13c7ac(0x127)]='storage.buckets.getObjectInsights',_0x4f8273['cCweL']=_0x13c7ac(0x139),_0x4f8273[_0x13c7ac(0x23f)]='storage.buckets.listEffectiveTags',_0x4f8273[_0x13c7ac(0xdc)]=_0x13c7ac(0x18b),_0x4f8273['BLsWD']='storage.buckets.setIamPolicy',_0x4f8273[_0x13c7ac(0x1c6)]=_0x13c7ac(0x1cb),_0x4f8273[_0x13c7ac(0x118)]='storage.multipartUploads.abort',_0x4f8273[_0x13c7ac(0x120)]='storage.multipartUploads.create',_0x4f8273[_0x13c7ac(0x22a)]=_0x13c7ac(0x238),_0x4f8273[_0x13c7ac(0x251)]=_0x13c7ac(0x1e3),_0x4f8273['jEETI']=_0x13c7ac(0xf6),_0x4f8273[_0x13c7ac(0x246)]=_0x13c7ac(0x204),_0x4f8273[_0x13c7ac(0xf1)]='storage.objects.get',_0x4f8273['nqDXv']=_0x13c7ac(0x101),_0x4f8273[_0x13c7ac(0x25d)]=_0x13c7ac(0x10f),_0x4f8273[_0x13c7ac(0x149)]=_0x13c7ac(0x198),_0x4f8273['OMNLm']=_0x13c7ac(0x19d),_0x4f8273[_0x13c7ac(0x172)]='Turboscale\x20Custom\x20Role',_0x4f8273['VwsOE']=_0x13c7ac(0x203);const _0xb082a5=_0x4f8273,_0x3e25ab=await this[_0x13c7ac(0x193)]();if(_0x3e25ab){if(_0xb082a5[_0x13c7ac(0x1ca)](_0xb082a5[_0x13c7ac(0xf0)],_0xb082a5[_0x13c7ac(0x21a)]))_0x394e05[_0x13c7ac(0xf3)][_0x13c7ac(0x129)](_0x3d8fa5);else{logger[_0x13c7ac(0x111)](_0xb082a5[_0x13c7ac(0xcc)]);return;}}logger['info'](_0xb082a5['AJHtK']);const _0xbf295c={};_0xbf295c[_0x13c7ac(0x107)]=[_0xb082a5[_0x13c7ac(0x11e)]],_0xbf295c[_0x13c7ac(0xda)]=this[_0x13c7ac(0x194)];const _0x3fe2fb=await google[_0x13c7ac(0x26e)][_0x13c7ac(0x1ef)](_0xbf295c),_0x269b97={};_0x269b97[_0x13c7ac(0x211)]=[_0xb082a5['nFYjG'],_0xb082a5['LZMQA'],_0xb082a5[_0x13c7ac(0x248)],_0xb082a5[_0x13c7ac(0x1fe)],_0xb082a5[_0x13c7ac(0x150)],_0xb082a5[_0x13c7ac(0x1b6)],_0xb082a5[_0x13c7ac(0x173)],_0xb082a5['uQtSP'],_0xb082a5['cCweL'],_0xb082a5[_0x13c7ac(0x23f)],_0xb082a5['PPWcq'],_0xb082a5[_0x13c7ac(0x1f4)],_0xb082a5['OxlQC'],_0xb082a5['DIprG'],_0xb082a5[_0x13c7ac(0x120)],_0xb082a5[_0x13c7ac(0x22a)],_0xb082a5['EMgRD'],_0xb082a5[_0x13c7ac(0x17f)],_0xb082a5['qBnMb'],_0xb082a5[_0x13c7ac(0xf1)],_0xb082a5[_0x13c7ac(0x105)],_0xb082a5[_0x13c7ac(0x25d)],_0xb082a5['csgIF'],_0xb082a5[_0x13c7ac(0x18f)]],_0x269b97[_0x13c7ac(0x17c)]=_0xb082a5[_0x13c7ac(0x172)],await this[_0x13c7ac(0xd7)][_0x13c7ac(0x25c)]['roles']['create']({'parent':_0x13c7ac(0x121)+this['projectId'],'requestBody':{'role':_0x269b97,'roleId':this['customRoleName']},'auth':_0x3fe2fb});const _0x326e67={};_0x326e67[_0x13c7ac(0x1b1)]=_0x13c7ac(0x121)+this[_0x13c7ac(0x1e4)],_0x326e67[_0x13c7ac(0x25f)]={},_0x326e67['auth']=_0x3fe2fb,_0x326e67[_0x13c7ac(0x25f)][_0x13c7ac(0x156)]=this[_0x13c7ac(0x177)];const _0x172ac1=_0x326e67;await this['iamClient'][_0x13c7ac(0x1b3)]['serviceAccounts'][_0x13c7ac(0xd3)](_0x172ac1);let _0x2646ca=await this[_0x13c7ac(0x1a4)][_0x13c7ac(0x200)]({'resource':_0x13c7ac(0x121)+this[_0x13c7ac(0x1e4)]});_0x2646ca=_0x2646ca[0x0]['bindings'];const _0x2ac57a={};_0x2ac57a['role']='projects/'+this[_0x13c7ac(0x1e4)]+_0x13c7ac(0xf9)+this[_0x13c7ac(0x1cd)],_0x2ac57a['members']=[_0x13c7ac(0x14f)+this[_0x13c7ac(0x177)]+'@'+this['projectId']+_0x13c7ac(0x25a)],_0x2646ca[_0x13c7ac(0x129)](_0x2ac57a);const _0x1eb34c={};_0x1eb34c[_0x13c7ac(0x1c4)]=_0x2646ca,await this[_0x13c7ac(0x1a4)][_0x13c7ac(0x24e)]({'resource':'projects/'+this['projectId'],'policy':_0x1eb34c}),logger[_0x13c7ac(0x111)](_0xb082a5[_0x13c7ac(0x243)]);}async[a3_0x2dde46(0x12b)](_0x192ab8='default',_0x326210=[a3_0x2dde46(0xfe)]){const _0x55d17d=a3_0x2dde46,_0x21848f={};_0x21848f[_0x55d17d(0xe0)]=_0x55d17d(0x11c),_0x21848f[_0x55d17d(0x26b)]='Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x21848f['tePeK']=function(_0x2c46ce,_0x661947){return _0x2c46ce!==_0x661947;},_0x21848f[_0x55d17d(0x160)]=_0x55d17d(0x1e5),_0x21848f[_0x55d17d(0x1c2)]=_0x55d17d(0xfe),_0x21848f[_0x55d17d(0x1ee)]=function(_0x1f66e4,_0x5a4b9f){return _0x1f66e4===_0x5a4b9f;},_0x21848f[_0x55d17d(0x230)]=_0x55d17d(0x245);const _0x4c152f=_0x21848f,_0x50d2de={};return _0x50d2de[_0x55d17d(0x14b)]=WS_EVENTS[_0x55d17d(0x1f3)],_0x50d2de['message']=_0x4c152f[_0x55d17d(0xe0)],this[_0x55d17d(0x190)]['sendEventToBackend'](this[_0x55d17d(0x12f)],_0x50d2de),logger['info'](_0x4c152f[_0x55d17d(0x26b)]),!_0x192ab8&&(_0x4c152f[_0x55d17d(0x1bb)](_0x4c152f[_0x55d17d(0x160)],_0x4c152f[_0x55d17d(0x160)])?_0x3a8011[_0x55d17d(0x217)](_0x55d17d(0x14a)+this[_0x55d17d(0x21e)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+_0x9cd06['clusterRegion']+_0x55d17d(0x14e)):_0x192ab8=_0x4c152f[_0x55d17d(0x1c2)]),(!_0x326210||_0x4c152f[_0x55d17d(0x1ee)](_0x326210[_0x55d17d(0xef)],0x0))&&(_0x4c152f['tePeK'](_0x4c152f[_0x55d17d(0x230)],_0x4c152f[_0x55d17d(0x230)])?_0x47827b['error']=_0x58fab7:_0x326210=[_0x4c152f[_0x55d17d(0x1c2)]]),await this[_0x55d17d(0x15c)](),await this[_0x55d17d(0x1d4)](_0x192ab8,_0x326210),await this[_0x55d17d(0x233)](),[_0x192ab8,_0x326210];}async['createCluster'](_0x36b296=a3_0x2dde46(0xfe),_0xc17913=[a3_0x2dde46(0xfe)]){const _0x3e412c=a3_0x2dde46,_0x47f7e5={};_0x47f7e5[_0x3e412c(0x1dd)]=function(_0x39a9f3,_0x2cde73){return _0x39a9f3===_0x2cde73;},_0x47f7e5['YaslX']=_0x3e412c(0x1c5),_0x47f7e5[_0x3e412c(0x1bf)]=function(_0x22d059,_0xf6b7c1){return _0x22d059===_0xf6b7c1;},_0x47f7e5['GADex']=_0x3e412c(0x106),_0x47f7e5[_0x3e412c(0xe2)]='CnCFl',_0x47f7e5[_0x3e412c(0xfc)]=_0x3e412c(0x196),_0x47f7e5[_0x3e412c(0x206)]='templates',_0x47f7e5[_0x3e412c(0x235)]='gcpresources',_0x47f7e5[_0x3e412c(0x1a2)]=_0x3e412c(0x1ed),_0x47f7e5['vflEf']=_0x3e412c(0x257),_0x47f7e5[_0x3e412c(0x1aa)]=_0x3e412c(0xec),_0x47f7e5[_0x3e412c(0x1ec)]=function(_0x3c202e,_0x52d468){return _0x3c202e!==_0x52d468;},_0x47f7e5[_0x3e412c(0x228)]=_0x3e412c(0x272),_0x47f7e5[_0x3e412c(0x113)]=_0x3e412c(0x23c),_0x47f7e5[_0x3e412c(0x1d5)]=_0x3e412c(0x1ba),_0x47f7e5[_0x3e412c(0x192)]=function(_0x5c7430,_0xacde6a){return _0x5c7430*_0xacde6a;},_0x47f7e5['bEiUT']=function(_0x162c16,_0x578d76){return _0x162c16!==_0x578d76;},_0x47f7e5[_0x3e412c(0x22b)]='yIibe',_0x47f7e5[_0x3e412c(0x164)]=function(_0xed00cc,_0x2c9b9a){return _0xed00cc!==_0x2c9b9a;},_0x47f7e5[_0x3e412c(0x199)]=_0x3e412c(0x142),_0x47f7e5[_0x3e412c(0xcb)]=_0x3e412c(0x20c),_0x47f7e5[_0x3e412c(0x148)]=_0x3e412c(0x19e),_0x47f7e5[_0x3e412c(0x159)]=function(_0x353f7d,_0x53d5e9){return _0x353f7d===_0x53d5e9;},_0x47f7e5['FBNXL']=_0x3e412c(0x19a),_0x47f7e5[_0x3e412c(0xce)]=_0x3e412c(0x163),_0x47f7e5[_0x3e412c(0x11a)]=_0x3e412c(0x255);const _0x6faf2f=_0x47f7e5;try{if(_0x6faf2f[_0x3e412c(0x1bf)](_0x6faf2f[_0x3e412c(0x22c)],_0x6faf2f['zzLoF']))_0x49218f['error'](_0x3e412c(0x1f5)+_0x5236ae+_0x3e412c(0xe4)+_0x210801[_0x3e412c(0x276)]),_0x337280[_0x3e412c(0x108)]=_0x3e412c(0x15a)+_0x586f41,_0x2719eb[_0x3e412c(0xe5)]=_0x104f8a;else{logger[_0x3e412c(0x111)](_0x6faf2f[_0x3e412c(0xfc)]);let _0x47e5d3=await fs[_0x3e412c(0x1d9)](path[_0x3e412c(0x212)](__dirname,'..',_0x6faf2f[_0x3e412c(0x206)],_0x6faf2f[_0x3e412c(0x235)],_0x6faf2f['kARkT']),_0x6faf2f[_0x3e412c(0x1b2)]);_0x47e5d3=JSON[_0x3e412c(0x130)](_0x47e5d3);let _0x4237c2=await fs[_0x3e412c(0x1d9)](path[_0x3e412c(0x212)](__dirname,'..',_0x6faf2f['rvWxF'],_0x6faf2f[_0x3e412c(0x235)],_0x6faf2f[_0x3e412c(0x1aa)]),_0x6faf2f['vflEf']);_0x4237c2=JSON['parse'](_0x4237c2);const _0x3a15c0=global_registry['clusterAutoUpgrade'];_0x47e5d3[_0x3e412c(0x1b1)]=this[_0x3e412c(0x21e)],_0x47e5d3[_0x3e412c(0x191)][0x0]['config'][_0x3e412c(0x24b)]=global_registry['instanceType'],_0x47e5d3[_0x3e412c(0x191)][0x1][_0x3e412c(0x218)]['machineType']=global_registry[_0x3e412c(0x1fc)],_0x47e5d3['nodePools'][0x0][_0x3e412c(0x218)][_0x3e412c(0x20d)]=this[_0x3e412c(0x177)]+'@'+this[_0x3e412c(0x1e4)]+_0x3e412c(0x25a),_0x47e5d3['nodePools'][0x1][_0x3e412c(0x218)][_0x3e412c(0x20d)]=this[_0x3e412c(0x177)]+'@'+this[_0x3e412c(0x1e4)]+_0x3e412c(0x25a),_0x47e5d3[_0x3e412c(0x191)][0x0]['autoscaling'][_0x3e412c(0x277)]=global_registry[_0x3e412c(0x1a6)],_0x47e5d3[_0x3e412c(0x191)][0x1][_0x3e412c(0x1da)][_0x3e412c(0x277)]=0x0,_0x47e5d3[_0x3e412c(0x191)][0x0][_0x3e412c(0x1e1)][_0x3e412c(0x115)]=_0x3a15c0,_0x47e5d3[_0x3e412c(0x191)][0x1][_0x3e412c(0x1e1)]['autoUpgrade']=_0x3a15c0,_0x47e5d3[_0x3e412c(0x191)][0x0][_0x3e412c(0x1da)][_0x3e412c(0x1ad)]=global_registry[_0x3e412c(0x131)],_0x47e5d3['nodePools'][0x1][_0x3e412c(0x1da)][_0x3e412c(0x1ad)]=global_registry['maxNodes'],_0x47e5d3[_0x3e412c(0x162)]=global_registry[_0x3e412c(0x171)],_0x47e5d3[_0x3e412c(0x231)]=[_0x4237c2[global_registry[_0x3e412c(0x171)]][0x0]],_0x47e5d3[_0x3e412c(0x24d)]=_0x3e412c(0x121)+this['projectId']+_0x3e412c(0x214)+_0x36b296,_0x47e5d3[_0x3e412c(0x167)]=_0x3e412c(0x121)+this[_0x3e412c(0x1e4)]+'/regions/'+global_registry[_0x3e412c(0x171)]+_0x3e412c(0x169)+_0xc17913[0x0];if(_0x3a15c0){if(_0x6faf2f['YFNOe'](_0x6faf2f['fbIvQ'],_0x6faf2f[_0x3e412c(0x113)])){const _0x3a3c69={};_0x3a3c69[_0x3e412c(0x23a)]=_0x6faf2f[_0x3e412c(0x1d5)],_0x47e5d3['releaseChannel']=_0x3a3c69;}else{if(_0x6faf2f[_0x3e412c(0x1dd)](_0x2449fd?.[_0x3e412c(0x1b1)],_0x3e412c(0x121)+this[_0x3e412c(0x1e4)]+_0x3e412c(0x267)+this[_0x3e412c(0x177)]+'@'+this['projectId']+_0x3e412c(0x25a)))return!![];}}const _0x1a882b=await this[_0x3e412c(0x1e9)]['createCluster']({'cluster':_0x47e5d3,'parent':_0x3e412c(0x121)+this['projectId']+'/locations/'+global_registry['clusterRegion']});await this['webSocketUtils'][_0x3e412c(0x1f2)](_0x6faf2f[_0x3e412c(0x192)](_0x6faf2f[_0x3e412c(0x192)](0x7,0x3c),0x3e8));}}catch(_0x1ef386){if(_0x6faf2f[_0x3e412c(0x13c)](_0x6faf2f['kFAKR'],_0x6faf2f[_0x3e412c(0x22b)])){_0x13b377['info'](_0x6faf2f[_0x3e412c(0x1ae)]);return;}else{const _0x2dd4d7=await this[_0x3e412c(0x1a7)]();if(_0x2dd4d7){if(_0x6faf2f['QmSaH'](_0x6faf2f[_0x3e412c(0x199)],_0x6faf2f['VqFKj']))logger[_0x3e412c(0x111)](_0x6faf2f['qEqdL'],_0x1ef386[_0x3e412c(0x276)]),await this[_0x3e412c(0xee)]();else return!![];}else{if(_0x6faf2f[_0x3e412c(0x159)](_0x6faf2f[_0x3e412c(0x1c8)],_0x6faf2f[_0x3e412c(0xce)]))return![];else logger[_0x3e412c(0x111)](_0x6faf2f[_0x3e412c(0x11a)]);}throw _0x1ef386;}}}async[a3_0x2dde46(0x179)](_0x23ec5a,_0x3c5d5c,_0x3a97fe,_0x5f4992,_0x547b74){}async[a3_0x2dde46(0x233)](){const _0x27966d=a3_0x2dde46;cp[_0x27966d(0x217)](_0x27966d(0x14a)+this['clusterName']+_0x27966d(0x20a)+global_registry[_0x27966d(0x171)]+_0x27966d(0x14e));}async[a3_0x2dde46(0xee)](_0x3910b1,_0x51c128){const _0x2f5d30=a3_0x2dde46,_0x16a398={'seoih':function(_0x29cb31,_0x3656ed){return _0x29cb31===_0x3656ed;},'nPsoX':_0x2f5d30(0x195),'tXOHx':_0x2f5d30(0x114),'lWLPf':function(_0x3a00f8,_0x2dd572){return _0x3a00f8===_0x2dd572;},'BqlbS':'NVBgj','eVpmF':_0x2f5d30(0x15b),'tOSCq':function(_0x42251d,_0x103981){return _0x42251d(_0x103981);},'kdbXV':function(_0x3e4a34,_0x263094){return _0x3e4a34===_0x263094;},'oAPMI':_0x2f5d30(0xc8),'zyOMn':function(_0xe04a0c,_0x13b1b9){return _0xe04a0c===_0x13b1b9;},'VJLKh':_0x2f5d30(0x141),'JACQb':function(_0x1a4741,_0x250149){return _0x1a4741!==_0x250149;},'PmuDh':'MCjpf','lHiPx':_0x2f5d30(0x197),'lWeRj':_0x2f5d30(0x1b7),'FSjbn':_0x2f5d30(0x205),'iHuFe':_0x2f5d30(0x1e6),'hBdTl':_0x2f5d30(0x226)};try{if(_0x16a398[_0x2f5d30(0x166)](_0x16a398[_0x2f5d30(0x213)],_0x16a398[_0x2f5d30(0x209)])){const _0x4fd345=_0x3713f2[0x0]?.[_0x2f5d30(0x186)]?.[_0x2f5d30(0xd8)];return _0x4fd345&&_0x16a398[_0x2f5d30(0x1db)](_0x4fd345['toLowerCase'](),_0x16a398[_0x2f5d30(0x124)]);}else{await _0x16a398[_0x2f5d30(0x10a)](deleteAgent,_0x3910b1),await _0x16a398['tOSCq'](deleteRoutingDeps,_0x3910b1),logger[_0x2f5d30(0x111)]('Deleting\x20the\x20cluster\x20'+this[_0x2f5d30(0x21e)]);const _0x4e59f6=await this[_0x2f5d30(0x1e9)]['deleteCluster']({'name':_0x2f5d30(0x121)+this[_0x2f5d30(0x1e4)]+'/locations/'+global_registry[_0x2f5d30(0x171)]+'/clusters/'+this[_0x2f5d30(0x21e)]});if(_0x16a398[_0x2f5d30(0x247)](_0x4e59f6[0x0]?.['status'],_0x16a398['oAPMI'])||_0x16a398[_0x2f5d30(0x1ff)](_0x4e59f6[0x0]?.[_0x2f5d30(0x1d0)],_0x16a398[_0x2f5d30(0x273)])){if(_0x16a398[_0x2f5d30(0x21d)](_0x16a398[_0x2f5d30(0x237)],_0x16a398['lHiPx']))return!![];else _0x30dc26[_0x2f5d30(0x1d0)]=![];}logger[_0x2f5d30(0x111)](_0x16a398[_0x2f5d30(0xca)]);}}catch(_0x26f55f){if(_0x16a398['seoih'](_0x16a398[_0x2f5d30(0x24f)],_0x16a398[_0x2f5d30(0x232)]))_0x578746[_0x2f5d30(0xe5)](_0x16a398['tXOHx']),_0x6da688[_0x2f5d30(0x1e7)](0x1);else{logger[_0x2f5d30(0x111)](_0x16a398[_0x2f5d30(0x25e)]);throw _0x26f55f;}}}async[a3_0x2dde46(0x275)](_0x9d2f7b){const _0x3e6734=a3_0x2dde46,_0x46f3c1={};_0x46f3c1['SNrpH']=function(_0x1addbc,_0x46202c){return _0x1addbc===_0x46202c;},_0x46f3c1[_0x3e6734(0x201)]=function(_0x5270ea,_0x5b9cb9){return _0x5270ea===_0x5b9cb9;},_0x46f3c1['YrtDs']='sZnrL',_0x46f3c1[_0x3e6734(0x112)]=function(_0x1107d,_0x4c5162){return _0x1107d>_0x4c5162;},_0x46f3c1[_0x3e6734(0x136)]=function(_0x50ea15,_0x207f72){return _0x50ea15===_0x207f72;},_0x46f3c1['uClwj']=function(_0x2ec7d7,_0x3ca688){return _0x2ec7d7!==_0x3ca688;},_0x46f3c1[_0x3e6734(0x223)]=_0x3e6734(0x1cc),_0x46f3c1[_0x3e6734(0xe9)]=function(_0x36c576,_0x142ff9){return _0x36c576===_0x142ff9;},_0x46f3c1['WyrJN']='OJIhv';const _0x3bb6c9=_0x46f3c1;try{if(_0x3bb6c9[_0x3e6734(0x201)](_0x3bb6c9[_0x3e6734(0x18e)],_0x3bb6c9[_0x3e6734(0x18e)])){const _0x5c7d58=await this[_0x3e6734(0x222)][_0x3e6734(0x254)]({'project':this[_0x3e6734(0x1e4)],'network':_0x9d2f7b});if(_0x3bb6c9['BWSZL'](_0x5c7d58[_0x3e6734(0xef)],0x0)&&_0x3bb6c9[_0x3e6734(0x136)](_0x5c7d58[0x0]['name'],_0x9d2f7b))return _0x3bb6c9[_0x3e6734(0x1fd)](_0x3bb6c9[_0x3e6734(0x223)],_0x3bb6c9[_0x3e6734(0x223)])?[!![],_0x133791]:!![];}else for(const _0x3382df of _0x8206fb['data']['accounts']){if(_0x3bb6c9['SNrpH'](_0x3382df?.[_0x3e6734(0x1b1)],'projects/'+this[_0x3e6734(0x1e4)]+_0x3e6734(0x267)+this['serviceAccountName']+'@'+this['projectId']+_0x3e6734(0x25a)))return!![];}}catch(_0x25ca09){if(_0x3bb6c9[_0x3e6734(0xe9)](_0x3bb6c9[_0x3e6734(0xd9)],_0x3bb6c9[_0x3e6734(0xd9)]))return![];else _0x44355e=_0x843a55['concat'](_0x2a6c64[_0x2aaef2[_0x3e6734(0x171)]]);}return![];}async['isSubnetsValid'](_0x2196e1,_0x4aafe9){const _0x1058b3=a3_0x2dde46,_0x58bc3b={};_0x58bc3b['YByRU']=function(_0x1942df,_0x2f2dbc){return _0x1942df-_0x2f2dbc;},_0x58bc3b['FoORB']='allowed',_0x58bc3b['dcAcr']=_0x1058b3(0x143),_0x58bc3b[_0x1058b3(0x174)]=function(_0x2b7500,_0x122db8){return _0x2b7500!==_0x122db8;},_0x58bc3b[_0x1058b3(0x158)]=_0x1058b3(0x14d),_0x58bc3b[_0x1058b3(0x1c1)]=function(_0x874372,_0x4b8009){return _0x874372===_0x4b8009;},_0x58bc3b[_0x1058b3(0x137)]=_0x1058b3(0xe6),_0x58bc3b[_0x1058b3(0x252)]=function(_0x3ab01a,_0x162c7b){return _0x3ab01a===_0x162c7b;},_0x58bc3b[_0x1058b3(0x134)]=function(_0x43a269,_0x5934d6){return _0x43a269===_0x5934d6;},_0x58bc3b[_0x1058b3(0x144)]='NKQnS',_0x58bc3b[_0x1058b3(0xdb)]=function(_0x302f9f,_0x3b5ea4){return _0x302f9f!==_0x3b5ea4;},_0x58bc3b[_0x1058b3(0x239)]=_0x1058b3(0x221);const _0x188dee=_0x58bc3b;try{if(_0x188dee[_0x1058b3(0x174)](_0x188dee['CANGy'],_0x188dee[_0x1058b3(0x158)]))_0x42727c['clusterRegion']=_0x1c5213[_0x188dee['YByRU'](_0xc5860b,0x1)],this['updateClusterRegion']();else{const _0x45b8f3=await this[_0x1058b3(0x222)]['get']({'project':this[_0x1058b3(0x1e4)],'network':_0x4aafe9});for(const _0x29fa14 of _0x45b8f3[0x0][_0x1058b3(0x274)]){if(_0x188dee[_0x1058b3(0x1c1)](_0x188dee[_0x1058b3(0x137)],_0x188dee[_0x1058b3(0x137)])){const _0x413f25='https://www.googleapis.com/compute/v1/projects/'+this[_0x1058b3(0x1e4)]+_0x1058b3(0x24a)+global_registry[_0x1058b3(0x171)]+'/subnetworks/'+_0x2196e1[0x0];if(_0x188dee[_0x1058b3(0x252)](_0x413f25,_0x29fa14)){if(_0x188dee[_0x1058b3(0x134)](_0x188dee['aQSBg'],_0x188dee['aQSBg']))return[!![],_0x2196e1];else{const _0x56e821=_0x78d673[_0x1058b3(0xf8)][_0x1058b3(0x253)](_0x38b2e2);_0x40c6cc+='\x0a\x09'+_0xf479d3+_0x1058b3(0xe4)+(_0x56e821?_0x188dee[_0x1058b3(0x1be)]:_0x188dee[_0x1058b3(0x261)]),!_0x56e821&&(_0x1c49e2[_0x1058b3(0x1d0)]=![]);}}}else return!![];}}}catch(_0x209bbd){return _0x188dee[_0x1058b3(0xdb)](_0x188dee[_0x1058b3(0x239)],_0x188dee['OmlTx'])?(_0x4453a7[_0x1058b3(0xe5)]('Cannot\x20find\x20subnets\x20'+_0x357c07+'.\x20Error:\x20'+_0x19caf1),[![],[]]):(logger[_0x1058b3(0xe5)]('Cannot\x20find\x20subnets\x20'+_0x2196e1+_0x1058b3(0x1bc)+_0x209bbd),[![],[]]);}return[![],[]];}async[a3_0x2dde46(0x13b)](){const _0x126fbd=a3_0x2dde46,_0x4dd428={};_0x4dd428[_0x126fbd(0x262)]=_0x126fbd(0x226),_0x4dd428[_0x126fbd(0x1f8)]=function(_0x329926,_0x1eb83c){return _0x329926===_0x1eb83c;},_0x4dd428[_0x126fbd(0x10e)]=_0x126fbd(0x208);const _0x307c0f=_0x4dd428,_0xed8767=await this[_0x126fbd(0x222)]['list']({'project':this[_0x126fbd(0x1e4)]}),_0x29b6b8={};_0x29b6b8[_0x126fbd(0x170)]=global_registry['bstackUsername'],_0x29b6b8[_0x126fbd(0x1dc)]=global_registry[_0x126fbd(0x15e)],_0x29b6b8[_0x126fbd(0x1c9)]=GCP,_0x29b6b8[_0x126fbd(0xf3)]=[];const _0x2f4add=_0x29b6b8;for(const _0x52ce5c of _0xed8767){if(_0x307c0f[_0x126fbd(0x1f8)](_0x307c0f[_0x126fbd(0x10e)],_0x307c0f[_0x126fbd(0x10e)]))_0x2f4add['vpcInfo'][_0x126fbd(0x129)](_0x52ce5c);else{_0x1b59b2['info'](_0x307c0f[_0x126fbd(0x262)]);throw _0x1a9128;}}const _0x45f3a8={};_0x45f3a8['type']=WS_EVENTS[_0x126fbd(0x109)],_0x45f3a8[_0x126fbd(0xdd)]=_0x2f4add,this['webSocketUtils'][_0x126fbd(0x140)](this[_0x126fbd(0x12f)],_0x45f3a8);}async[a3_0x2dde46(0x165)](){const _0x263c9c=a3_0x2dde46,_0x4a8cc1={'zhQXK':function(_0x38c353,_0x39d581,_0x183c15){return _0x38c353(_0x39d581,_0x183c15);},'DBXSA':'PUT','HSIAy':_0x263c9c(0x216),'HrXsB':function(_0x2dcd8b,_0x53ccef,_0x2e3b64){return _0x2dcd8b(_0x53ccef,_0x2e3b64);}},_0x2efc54=_0x263c9c(0x1a9)+AG_API_URL+_0x263c9c(0x260),_0x552663={};_0x552663[_0x263c9c(0x104)]=global_registry[_0x263c9c(0x1e8)];const _0x4b03f2={};_0x4b03f2[_0x263c9c(0x266)]=global_registry[_0x263c9c(0x171)];const _0x102956={'searchParams':_0x552663,'json':_0x4b03f2,'headers':_0x4a8cc1[_0x263c9c(0x16e)](getAuthHeader,global_registry[_0x263c9c(0x119)],global_registry[_0x263c9c(0x15e)]),'method':_0x4a8cc1[_0x263c9c(0x135)],'responseType':_0x4a8cc1['HSIAy'],'throwHttpErrors':![]},_0x5cdd86=await _0x4a8cc1[_0x263c9c(0x16f)](got,_0x2efc54,_0x102956);}async[a3_0x2dde46(0x17a)](){const _0x2bbdc9=a3_0x2dde46,_0x24c96c={'Twrqe':function(_0x5d0978,_0x5b9e4c){return _0x5d0978(_0x5b9e4c);},'ZsQoE':_0x2bbdc9(0xea),'wgwfl':_0x2bbdc9(0x16d),'xTXHB':_0x2bbdc9(0x133)},_0x177e99={};_0x177e99[_0x2bbdc9(0x1d0)]=![],_0x177e99[_0x2bbdc9(0xe5)]=null,_0x177e99['data']='';const _0x249899=_0x177e99;try{const _0x4dcf9d=await _0x24c96c['Twrqe'](runCommand,_0x24c96c['ZsQoE']);_0x4dcf9d[_0x2bbdc9(0xed)](_0x24c96c[_0x2bbdc9(0x249)])?logger[_0x2bbdc9(0x1f7)](_0x4dcf9d):logger['debug'](_0x4dcf9d),_0x249899[_0x2bbdc9(0x1d0)]=!![],_0x249899[_0x2bbdc9(0x108)]=_0x24c96c[_0x2bbdc9(0x1d3)];}catch(_0x161422){logger[_0x2bbdc9(0xe5)](_0x2bbdc9(0x1f5)+_0x161422+_0x2bbdc9(0xe4)+_0x161422[_0x2bbdc9(0x276)]),_0x249899['data']=_0x2bbdc9(0x15a)+_0x161422,_0x249899['error']=_0x161422;}return _0x249899;}async[a3_0x2dde46(0xdf)](){const _0xca51de=a3_0x2dde46,_0x4f6aab={};_0x4f6aab[_0xca51de(0x1b8)]=_0xca51de(0x11f),_0x4f6aab[_0xca51de(0x1a0)]='denied';const _0x2a0b40=_0x4f6aab,_0x2a76c3={};_0x2a76c3['status']=![],_0x2a76c3[_0xca51de(0xe5)]=null,_0x2a76c3[_0xca51de(0x108)]='';const _0x49a299=_0x2a76c3;try{let _0x5e3d08='';const _0x2061c6=_0xca51de(0x121)+this['projectId'],[_0x37d291]=await this['resourcemanagerClient']['testIamPermissions']({'resource':_0x2061c6,'permissions':Object['keys'](PERMISSIONS)});_0x49a299['status']=!![],logger['debug'](_0xca51de(0x1eb)+_0x2061c6+':\x20'+JSON[_0xca51de(0x1d2)](_0x37d291)),Object[_0xca51de(0x234)](PERMISSIONS)[_0xca51de(0x220)](([_0x2feb1f,_0x533794])=>{const _0x1d1ba4=_0xca51de,_0x79a370=_0x37d291['permissions'][_0x1d1ba4(0x253)](_0x2feb1f);_0x5e3d08+='\x0a\x09'+_0x533794+'\x20:\x20'+(_0x79a370?_0x2a0b40[_0x1d1ba4(0x1b8)]:_0x2a0b40[_0x1d1ba4(0x1a0)]),!_0x79a370&&(_0x49a299[_0x1d1ba4(0x1d0)]=![]);}),_0x49a299[_0xca51de(0x108)]=_0x5e3d08;}catch(_0x3ca316){_0x49a299['error']=_0x3ca316;}return _0x49a299;}}function a3_0x4b61(){const _0x11d941=['onFLV','ufBpA','SHpnf','readFileAsync','autoscaling','seoih','accessKey','QNHjH','replace','accounts','xanLO','management','kTkVW','storage.multipartUploads.listParts','projectId','vBGZv','pUKvM','exit','gridProfileId','containerClient','POnQa','permissions\x20check\x20response\x20for\x20','YFNOe','gkecluster.json','VeEQf','getClient','vkAiv','BUwfN','delay','LOG','BLsWD','error\x20:\x20','DHcZb','warn','TeHPi','storage.buckets.get','gcp_credentials.json','getClusterInfo','instanceType','uClwj','EswKF','zyOMn','getIamPolicy','cZeYd','KubeConfigTemplate.yaml','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','storage.objects.delete','Baqce','rvWxF','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','oheCM','eVpmF','\x20--windows-os-version=ltsc2022\x20--region\x20','cqqHN','ZhnBL','serviceAccount','TQxQT','/locations/','masterAuth','includedPermissions','join','BqlbS','/global/networks/','dIFaT','json','execSync','config','SkgqP','AbwIb','GwFwu','msMVe','JACQb','clusterName','sqqnw','forEach','axQrv','networkClient','xfCZs','FNQhw','OsiHh','GKE\x20Cluster\x20deletion\x20failed','SGwBh','fbIvQ','607160KgaBQw','dtdFP','kFAKR','GADex','11393zJyxsH','jzoCc','KacYU','SuiJe','locations','iHuFe','updateWindowsNodeGroup','entries','hLjLp','writeFileSync','PmuDh','storage.multipartUploads.list','OmlTx','channel','NHMDi','Yayld','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','@google-cloud/compute','xyxvm','@google-cloud/resource-manager','sRoRV','7EISqXS','VwsOE','toLowerCase','WpJUs','qBnMb','kdbXV','EQeEZ','wgwfl','/regions/','machineType','WgDOV','network','setIamPolicy','FSjbn','8217448HhgjOt','EMgRD','TCtJM','includes','get','Cluster\x20creation\x20failed','vIdCY','utf-8','@google-cloud/container','ingress','.iam.gserviceaccount.com','pmosS','organizations','gkqYA','hBdTl','requestBody','/packages/cli/update-cluster-region','dcAcr','iIsYX','IYbeQ','split','YqWeT','newRegion','/serviceAccounts/','../utils/utilityMethods','OxqGi','ACJbZ','MXQNO','XllVS','hICNp','auth','list','gfoZR','7972416ykxyzZ','ZEjvr','VJLKh','subnetworks','isVPCPresent','stack','minNodeCount','../utils/gridComponents','turboscale-service-account','clusters','RUNNING','../permissions/GCP.json','lWeRj','VqFKj','UnhfK','getGridHostname','yMFEB','project_id','exec','xIQBz','releaseChannel','create','qSIsS','kXmfv','Fgdms','iamClient','managedby','WyrJN','keyFile','NUVrR','PPWcq','message','gcpresources','checkAccess','sxbUa','iam.serviceAccounts.signBlob','zzLoF','SZaze','\x20:\x20','error','QDOcc','gwxHU','WzLjT','SJoph','gcloud\x20--version','Xsffz','regionmap.json','startsWith','deleteCluster','length','cDSFb','GNUUD','isBrowserstackCluster','vpcInfo','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','cPbUn','storage.objects.create','ihmLJ','permissions','/roles/','getUserInput','sKqFX','nqtJv','gjqCU','default','iam','rktMT','storage.objects.getIamPolicy','Pjaku','epGuB','profileId','nqDXv','NxfYZ','scopes','data','RESOURCES','tOSCq','storage.buckets.createTagBinding','ygwju','child_process','RwRkg','storage.objects.list','GoogleCloudProvider','info','BWSZL','DVZNa','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','autoUpgrade','oBAAX','hRwpn','DIprG','bstackUsername','lvJJh','LOzEC','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--no-user-output-enabled','YzUxY','allowed','taRcD','projects/','3548046zvMleT','hHLoy','nPsoX','SqZSB','/clusters/','uQtSP','BBzUQ','push','exports','setupNewCluster','path','vGLKd','50rhorEn','rws','parse','maxNodes','10063449tBWbde','cli\x20tool\x20is\x20installed','JhEOH','DBXSA','PoTjz','PtyBR','WRxLY','storage.buckets.list','hnLdP','sendGCPInfoToHST','bEiUT','gke_','JJfPP','44npOaWx','sendEventToBackend','DONE','OXTqM','denied','aQSBg','553200ZTOSQR','debug','../config/constants','qEqdL','csgIF','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','type','cgZjF','RWpbG','\x20--quiet\x20--user-output-enabled=false','serviceAccount:','LBzLq','saLKS','Cpury','getKubeConfigData','CEEmN','RMasf','accountId','WLWCB','CANGy','QHrIh','Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20','qnOvj','setupServiceAccount','https://www.googleapis.com/auth/cloud-platform','bstackAccesskey','storage.buckets.delete','QVDgD','bBZUn','location','JkcDG','QmSaH','updateClusterRegion','lWLPf','subnetwork','rhsTD','/subnetworks/','toString','NYKui','BBTye','Intercepted','zhQXK','HrXsB','username','clusterRegion','kZDgx','AKjxt','zcrGZ','cydFd','getCluster','serviceAccountName','fYWLl','setupHubHa','isCliToolInstalled','UMGEA','title','endpoint','loadBalancer','jEETI','rGjpY','XtXfE','opWib','storage.buckets.create','googleapis','cloudProviderName','resourceLabels','init','serviceAccounts','WDfrf','AJHtK','storage.buckets.listTagBindings','vveHd','storage.buckets.getIamPolicy','YrtDs','OMNLm','webSocketUtils','nodePools','WUyJb','checkServiceAccount','credentialsPath','browserstack','Creating\x20GKE\x20Cluster','XYmkb','storage.objects.setIamPolicy','KnwZd','pvTLu','KAwtH','ZRhXr','storage.objects.update','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','1|8|6|7|3|0|4|2|5','WDveG','xAbfG','kARkT','setCachedCredsInRegistry','resourcemanagerClient','XkOZm','minNodes','isClusterPresent','clusterCaCertificate','https://','fjfyi','dzsAm','LdUYh','maxNodeCount','YaslX','templates','concat','name','vflEf','projects','RCGwL','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','HgoOJ','Cluster\x20deletion\x20completed','wEfUd','turboscale_custom_role','REGULAR','tePeK','.\x20Error:\x20','wnhWC','FoORB','mQRyt','mrJFd','BeAjk','lYjKi','mellb','bindings','Service\x20account\x20already\x20exists,\x20skipping','OxlQC','vNnMQ','FBNXL','cloudProvider','iJKbA','storage.buckets.update','DQlWL','customRoleName','xHBvn','nFYjG','status','Flrly','stringify','xTXHB','createCluster','QbwUI'];a3_0x4b61=function(){return _0x11d941;};return a3_0x4b61();}const a3_0x575db={};a3_0x575db[a3_0x2dde46(0x110)]=GoogleCloudProvider,module[a3_0x2dde46(0x12a)]=a3_0x575db;
@@ -1 +1 @@
1
- const a4_0x2798c2=a4_0x394a;(function(_0x360f3c,_0x1dbe30){const _0x2734d6=a4_0x394a,_0x1ae171=_0x360f3c();while(!![]){try{const _0x569bda=parseInt(_0x2734d6(0x17b))/0x1*(parseInt(_0x2734d6(0x179))/0x2)+parseInt(_0x2734d6(0x161))/0x3+-parseInt(_0x2734d6(0x163))/0x4+parseInt(_0x2734d6(0x16b))/0x5+parseInt(_0x2734d6(0x168))/0x6+-parseInt(_0x2734d6(0x173))/0x7*(parseInt(_0x2734d6(0x171))/0x8)+parseInt(_0x2734d6(0x15b))/0x9*(-parseInt(_0x2734d6(0x165))/0xa);if(_0x569bda===_0x1dbe30)break;else _0x1ae171['push'](_0x1ae171['shift']());}catch(_0x5b7833){_0x1ae171['push'](_0x1ae171['shift']());}}}(a4_0x4203,0x8465f));function a4_0x4203(){const _0x2519e0=['KvniB','\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.','../utils/instrumentationUtils','36ObRCkk','stack','../utils/utilityMethods','ERROR','versions','exit','41127lGcxkT','node','2965828mwFIBv','../config/logger','463340CiUWNr','Tpgwh','eWilw','5119782nNqEvW','nOTYV','IzoSI','1454510WQFHFb','keGWc','Current\x20Node.js\x20version\x20','init','./AWS',',\x20stacktrace:\x20','8ORuMOK','create-grid-called','2320521seZsTB','getCloudProviderObjectWithOutInit','SYYXT','Unknown\x20cloud\x20provider\x20found\x20-\x20','hbDua','UiLzk','183626aIcvGn','./Azure','7jyoaUy','error'];a4_0x4203=function(){return _0x2519e0;};return a4_0x4203();}function a4_0x394a(_0x4f8feb,_0x2b0b89){const _0x42034b=a4_0x4203();return a4_0x394a=function(_0x394a8c,_0x3d93da){_0x394a8c=_0x394a8c-0x159;let _0x335de4=_0x42034b[_0x394a8c];return _0x335de4;},a4_0x394a(_0x4f8feb,_0x2b0b89);}const {AWSCloudProvider}=require(a4_0x2798c2(0x16f)),{GoogleCloudProvider}=require('./GoogleCloudProvider'),{installAzurePackages,IsNodeCompatibleWithAzure}=require(a4_0x2798c2(0x15d)),{AWS,AZURE,GCP,messageTypes}=require('../config/constants'),{sendInstrumentationEvent}=require(a4_0x2798c2(0x15a)),{logger}=require(a4_0x2798c2(0x164));exports['getCloudProviderObject']=async(_0x520882,_0x162518,_0x4a515d,_0xb00a38,_0x184a31,_0x19fcac)=>{const _0x7a295e=a4_0x2798c2,_0x32131b={'keGWc':function(_0x5b7a28){return _0x5b7a28();},'SYYXT':function(_0x375915,_0xc57f62){return _0x375915(_0xc57f62);},'UiLzk':_0x7a295e(0x17a),'Tpgwh':function(_0x3017b1,_0x585e11,_0x1fc065,_0x42b064,_0x27a0ba,_0x35d2b9,_0x43b8a3){return _0x3017b1(_0x585e11,_0x1fc065,_0x42b064,_0x27a0ba,_0x35d2b9,_0x43b8a3);},'eWilw':_0x7a295e(0x172),'IzoSI':'grid-spawning-failed'};switch(_0x520882){case AWS:{const _0x1f289e=new AWSCloudProvider(_0x162518,_0x4a515d,_0xb00a38,_0x184a31);return await _0x1f289e['init']();}case GCP:{const _0x278b3b=new GoogleCloudProvider(_0x162518,_0x4a515d,_0xb00a38,_0x184a31);return await _0x278b3b[_0x7a295e(0x16e)]();}case AZURE:{try{await _0x32131b[_0x7a295e(0x16c)](installAzurePackages);const {AzureCloudProvider:_0x24e164}=_0x32131b[_0x7a295e(0x175)](require,_0x32131b[_0x7a295e(0x178)]),_0x241d2a=new _0x24e164(_0x162518,_0x4a515d,_0xb00a38,_0x184a31);return await _0x241d2a['init']();}catch(_0x35e926){const _0x5a7bf=_0x7a295e(0x16d)+process[_0x7a295e(0x15f)]['node']+'\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20'+_0x35e926['message']+_0x7a295e(0x170)+_0x35e926[_0x7a295e(0x15c)];logger[_0x7a295e(0x17c)](_0x5a7bf);const _0x28defc={};_0x28defc['error']=_0x5a7bf,await _0x32131b[_0x7a295e(0x166)](sendInstrumentationEvent,_0x19fcac,_0x32131b[_0x7a295e(0x167)],messageTypes[_0x7a295e(0x15e)],_0x32131b[_0x7a295e(0x16a)],_0x28defc,_0x19fcac),process['exit'](0x1);}}default:logger[_0x7a295e(0x17c)](_0x7a295e(0x176)+_0x520882),process[_0x7a295e(0x160)](0x1);}},exports[a4_0x2798c2(0x174)]=async(_0xf15fd1,_0x2339cd,_0x12487d,_0x545b77,_0x2dff3f,_0x581aa5)=>{const _0x2f3363=a4_0x2798c2,_0x4db870={'KvniB':function(_0x330e07){return _0x330e07();},'nOTYV':function(_0x5a291c){return _0x5a291c();},'SahEC':function(_0x26cff5,_0x33258d){return _0x26cff5(_0x33258d);},'hbDua':_0x2f3363(0x17a)};switch(_0xf15fd1){case AWS:return new AWSCloudProvider(_0x2339cd,_0x12487d,_0x545b77,_0x2dff3f);case GCP:return new GoogleCloudProvider(_0x2339cd,_0x12487d,_0x545b77,_0x2dff3f);case AZURE:{!_0x4db870[_0x2f3363(0x17d)](IsNodeCompatibleWithAzure)&&(logger[_0x2f3363(0x17c)](_0x2f3363(0x16d)+process[_0x2f3363(0x15f)][_0x2f3363(0x162)]+_0x2f3363(0x159)),process['exit'](0x1));await _0x4db870[_0x2f3363(0x169)](installAzurePackages);const {AzureCloudProvider:_0x460cc0}=_0x4db870['SahEC'](require,_0x4db870[_0x2f3363(0x177)]);return new _0x460cc0(_0x2339cd,_0x12487d,_0x545b77,_0x2dff3f);}default:logger['error'](_0x2f3363(0x176)+_0xf15fd1),process[_0x2f3363(0x160)](0x1);}};
1
+ function a4_0x1dbd(_0x50b304,_0x4398cf){const _0x13d8a5=a4_0x13d8();return a4_0x1dbd=function(_0x1dbda5,_0x249512){_0x1dbda5=_0x1dbda5-0x10f;let _0x5826a4=_0x13d8a5[_0x1dbda5];return _0x5826a4;},a4_0x1dbd(_0x50b304,_0x4398cf);}const a4_0x5df92e=a4_0x1dbd;(function(_0x55f27e,_0x57dca2){const _0x2b3aca=a4_0x1dbd,_0x11fbde=_0x55f27e();while(!![]){try{const _0x6415b9=parseInt(_0x2b3aca(0x132))/0x1+-parseInt(_0x2b3aca(0x122))/0x2+parseInt(_0x2b3aca(0x12b))/0x3*(parseInt(_0x2b3aca(0x11f))/0x4)+parseInt(_0x2b3aca(0x127))/0x5*(parseInt(_0x2b3aca(0x118))/0x6)+-parseInt(_0x2b3aca(0x129))/0x7+parseInt(_0x2b3aca(0x11d))/0x8+-parseInt(_0x2b3aca(0x131))/0x9*(-parseInt(_0x2b3aca(0x11b))/0xa);if(_0x6415b9===_0x57dca2)break;else _0x11fbde['push'](_0x11fbde['shift']());}catch(_0x414583){_0x11fbde['push'](_0x11fbde['shift']());}}}(a4_0x13d8,0xcc65d));function a4_0x13d8(){const _0x56b7e3=['init','./AWS','suVvO','./Azure','775tiXeBx','../config/constants','7593012TJuMWQ','rEyzA','555375CbJTDM','getCloudProviderObject','BQvCs','error','node','fJfAa','252999nJxqrl','691814zIxkaF','create-grid-called','../utils/instrumentationUtils','ELkZr','LgVuC','ERROR','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20','grid-spawning-failed','../utils/utilityMethods','exit','\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.','../config/logger','32430JVMpnM','Current\x20Node.js\x20version\x20','versions','10yglnzc','YruIY','8102424nvbhDg','getCloudProviderObjectWithOutInit','20lCCLGX','hPMJw','./GoogleCloudProvider','3148398pKYwfZ'];a4_0x13d8=function(){return _0x56b7e3;};return a4_0x13d8();}const {AWSCloudProvider}=require(a4_0x5df92e(0x124)),{GoogleCloudProvider}=require(a4_0x5df92e(0x121)),{installAzurePackages,IsNodeCompatibleWithAzure}=require(a4_0x5df92e(0x114)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x5df92e(0x128)),{sendInstrumentationEvent}=require(a4_0x5df92e(0x134)),{logger}=require(a4_0x5df92e(0x117));exports[a4_0x5df92e(0x12c)]=async(_0x6a8ed7,_0x5a57a6,_0x34d816,_0x1540b5,_0x7f3f70,_0x2c3495)=>{const _0x51adb8=a4_0x5df92e,_0x31b1bc={'YruIY':function(_0x50c935){return _0x50c935();},'uqoeO':function(_0x5044e5,_0x4bb401){return _0x5044e5(_0x4bb401);},'LgVuC':_0x51adb8(0x126),'hPMJw':function(_0x35ae96,_0x3a1fbe,_0x45f378,_0x83a918,_0x5b509a,_0x482aeb,_0x37fb9e){return _0x35ae96(_0x3a1fbe,_0x45f378,_0x83a918,_0x5b509a,_0x482aeb,_0x37fb9e);},'BQvCs':_0x51adb8(0x133),'fJfAa':_0x51adb8(0x113)};switch(_0x6a8ed7){case AWS:{const _0x35f494=new AWSCloudProvider(_0x5a57a6,_0x34d816,_0x1540b5,_0x7f3f70);return await _0x35f494[_0x51adb8(0x123)]();}case GCP:{const _0xfcb16f=new GoogleCloudProvider(_0x5a57a6,_0x34d816,_0x1540b5,_0x7f3f70);return await _0xfcb16f[_0x51adb8(0x123)]();}case AZURE:{try{await _0x31b1bc[_0x51adb8(0x11c)](installAzurePackages);const {AzureCloudProvider:_0x283682}=_0x31b1bc['uqoeO'](require,_0x31b1bc[_0x51adb8(0x110)]),_0x279121=new _0x283682(_0x5a57a6,_0x34d816,_0x1540b5,_0x7f3f70);return await _0x279121[_0x51adb8(0x123)]();}catch(_0x46258e){const _0x12911f=_0x51adb8(0x119)+process[_0x51adb8(0x11a)][_0x51adb8(0x12f)]+_0x51adb8(0x112)+_0x46258e['message']+',\x20stacktrace:\x20'+_0x46258e['stack'];logger[_0x51adb8(0x12e)](_0x12911f);const _0x2922e0={};_0x2922e0[_0x51adb8(0x12e)]=_0x12911f,await _0x31b1bc[_0x51adb8(0x120)](sendInstrumentationEvent,_0x2c3495,_0x31b1bc[_0x51adb8(0x12d)],messageTypes[_0x51adb8(0x111)],_0x31b1bc[_0x51adb8(0x130)],_0x2922e0,_0x2c3495),process['exit'](0x1);}}default:logger['error']('Unknown\x20cloud\x20provider\x20found\x20-\x20'+_0x6a8ed7),process[_0x51adb8(0x115)](0x1);}},exports[a4_0x5df92e(0x11e)]=async(_0x598339,_0x3bc502,_0x19b468,_0x484961,_0x1ddb0d,_0xf2ce41)=>{const _0x27c9b2=a4_0x5df92e,_0x2b4e05={'suVvO':function(_0x4317f0){return _0x4317f0();},'ELkZr':function(_0x315881,_0x57d530){return _0x315881(_0x57d530);},'rEyzA':'./Azure'};switch(_0x598339){case AWS:return new AWSCloudProvider(_0x3bc502,_0x19b468,_0x484961,_0x1ddb0d);case GCP:return new GoogleCloudProvider(_0x3bc502,_0x19b468,_0x484961,_0x1ddb0d);case AZURE:{!_0x2b4e05['suVvO'](IsNodeCompatibleWithAzure)&&(logger[_0x27c9b2(0x12e)](_0x27c9b2(0x119)+process[_0x27c9b2(0x11a)]['node']+_0x27c9b2(0x116)),process[_0x27c9b2(0x115)](0x1));await _0x2b4e05[_0x27c9b2(0x125)](installAzurePackages);const {AzureCloudProvider:_0x388231}=_0x2b4e05[_0x27c9b2(0x10f)](require,_0x2b4e05[_0x27c9b2(0x12a)]);return new _0x388231(_0x3bc502,_0x19b468,_0x484961,_0x1ddb0d);}default:logger[_0x27c9b2(0x12e)]('Unknown\x20cloud\x20provider\x20found\x20-\x20'+_0x598339),process[_0x27c9b2(0x115)](0x1);}};
@@ -1 +1 @@
1
- const a5_0x3f9d39=a5_0x5a3e;function a5_0x5a3e(_0x59fc96,_0x5e7dc0){const _0x5acf39=a5_0x5acf();return a5_0x5a3e=function(_0x5a3e7e,_0x1749db){_0x5a3e7e=_0x5a3e7e-0xf7;let _0x451021=_0x5acf39[_0x5a3e7e];return _0x451021;},a5_0x5a3e(_0x59fc96,_0x5e7dc0);}(function(_0x3f0ec6,_0x4158af){const _0x17b8ba=a5_0x5a3e,_0x21c45e=_0x3f0ec6();while(!![]){try{const _0x455b53=-parseInt(_0x17b8ba(0x124))/0x1+-parseInt(_0x17b8ba(0x120))/0x2*(-parseInt(_0x17b8ba(0xfd))/0x3)+parseInt(_0x17b8ba(0x11c))/0x4+parseInt(_0x17b8ba(0x14a))/0x5*(-parseInt(_0x17b8ba(0x13f))/0x6)+-parseInt(_0x17b8ba(0x10c))/0x7+-parseInt(_0x17b8ba(0x15b))/0x8*(parseInt(_0x17b8ba(0x104))/0x9)+-parseInt(_0x17b8ba(0x12a))/0xa*(-parseInt(_0x17b8ba(0x11f))/0xb);if(_0x455b53===_0x4158af)break;else _0x21c45e['push'](_0x21c45e['shift']());}catch(_0x582c5f){_0x21c45e['push'](_0x21c45e['shift']());}}}(a5_0x5acf,0x5777f));function a5_0x5acf(){const _0x2dfaac=['help','profileId','argv','../config/constants','username','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','wfayh','toLowerCase','usage','configure','748705VmIHSB','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','PUT','stringify','Browserstack','Updated\x20default\x20Grid\x20Profile\x20successfully','init-not-called','RmaDI','TIMCG','Elhpi','nWXgo','qLdGc','handler','gQhBg','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','invalid-input','RpwZI','69016lwtyZV','LXwBu','name','Nbkqu','gBoPy','INFO','OfGYr','ERROR','body','21pLvTlr','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','OBcpD','GET','../utils/utilityMethods','qJAxl','cKtvj','513oQomSN','epilogue','imSIi','https://','json','nUngv','configure-called','yVojF','1786379HmlitI','qGGiU','QANIQ','unauthorised','recommendCommands','sXbic','stack','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','\x20\x20username:\x20','existsSync','oeoVz','Jmjvc','requestId','unknown-error','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','got','755488Xyvkrm','KWqez','statusCode','62007GtTrpg','189734LCpWBM','list','Kpcem','JnZny','431548bYriiV','password','length','HVDiB','error','strict','2010xLfYJp','bJWdy','jVQwx','YEuOi','aCSXZ','ZEvrU','ZeWbY','active','log','nEtmf','OQsJm','lcaAo','server-error','builder','utXFC','RsEVy','LufFB','vuEcb','desc','exit','core:','18KudAUr'];a5_0x5acf=function(){return _0x2dfaac;};return a5_0x5acf();}const fs=require('fs'),got=require(a5_0x3f9d39(0x11b)),{v4:uuidv4}=require('uuid'),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x3f9d39(0x143)),{getCredentialsPath,getAuthHeader}=require(a5_0x3f9d39(0x101)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports['command']=a5_0x3f9d39(0x149),exports[a5_0x3f9d39(0x13c)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports[a5_0x3f9d39(0x137)]=function(_0x43a415){const _0x1e0b83=a5_0x3f9d39,_0x2106c9={};_0x2106c9[_0x1e0b83(0xf7)]=_0x1e0b83(0x140);const _0x1bbde0=_0x2106c9;return _0x43a415[_0x1e0b83(0x148)](HELP_HEADER_MESSAGE[_0x1e0b83(0x149)])[_0x1e0b83(0x105)](HELP_FOOTER_MESSAGE)['help'](_0x1bbde0[_0x1e0b83(0xf7)])[_0x1e0b83(0x110)]()[_0x1e0b83(0x129)]()[_0x1e0b83(0x142)];},exports[a5_0x3f9d39(0x156)]=async function(_0xa56bbd){const _0x1c7d46=a5_0x3f9d39,_0x26ef18={'LXwBu':function(_0x7b8f57){return _0x7b8f57();},'Elhpi':function(_0x2fbf54){return _0x2fbf54();},'orvxJ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cKtvj':function(_0x475208,_0x43d399,_0x50d028,_0x2a47f0,_0x5d53b0,_0x105c9d,_0x2e555f){return _0x475208(_0x43d399,_0x50d028,_0x2a47f0,_0x5d53b0,_0x105c9d,_0x2e555f);},'nWXgo':_0x1c7d46(0x10a),'ZeWbY':_0x1c7d46(0x150),'Jmjvc':function(_0xd3ef92,_0x2f5ab0,_0x4e173d,_0x492cd1,_0x5385d6,_0x5090d8,_0x5b7870){return _0xd3ef92(_0x2f5ab0,_0x4e173d,_0x492cd1,_0x5385d6,_0x5090d8,_0x5b7870);},'ActfC':_0x1c7d46(0x100),'qGGiU':function(_0x4e3afa,_0x34fc87,_0x3eec52){return _0x4e3afa(_0x34fc87,_0x3eec52);},'LufFB':function(_0x1aee70,_0x150e08){return _0x1aee70!==_0x150e08;},'fEgIA':function(_0x23a6ff,_0x5c168c){return _0x23a6ff!==_0x5c168c;},'OBcpD':function(_0x39ec87,_0x455639){return _0x39ec87===_0x455639;},'YEuOi':_0x1c7d46(0x158),'qJAxl':_0x1c7d46(0x13e),'QANIQ':function(_0x3daf18,_0x1b8d22){return _0x3daf18(_0x1b8d22);},'HVDiB':_0x1c7d46(0x113),'qLdGc':function(_0x16ad84,_0x30a9ed){return _0x16ad84===_0x30a9ed;},'RsEVy':function(_0x2ce7f4,_0x4c4b82){return _0x2ce7f4===_0x4c4b82;},'OQsJm':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','nEtmf':function(_0x46566f,_0x3fd5da,_0x3c7ec3,_0x248972,_0x209942,_0x2c877c,_0x593e7f){return _0x46566f(_0x3fd5da,_0x3c7ec3,_0x248972,_0x209942,_0x2c877c,_0x593e7f);},'bJWdy':_0x1c7d46(0x159),'wfayh':_0x1c7d46(0x11a),'aCSXZ':function(_0x11e533,_0x3d1deb){return _0x11e533<_0x3d1deb;},'jVQwx':function(_0x1ffabe,_0x6ae840){return _0x1ffabe+_0x6ae840;},'KWqez':function(_0x806679,_0x39181b){return _0x806679(_0x39181b);},'ZEvrU':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','nPvNq':function(_0x33b6aa,_0x5aca3b){return _0x33b6aa(_0x5aca3b);},'sXbic':function(_0x39738a,_0x6c7ca6){return _0x39738a<=_0x6c7ca6;},'xAyOc':function(_0x51c071,_0x3efbd3){return _0x51c071>_0x3efbd3;},'RpwZI':'invalid-selection','TIMCG':function(_0x2aefa7,_0x4dd2d8){return _0x2aefa7-_0x4dd2d8;},'lcaAo':_0x1c7d46(0x14c),'gBoPy':function(_0x5cd53f,_0x36b5f0,_0x1f2446){return _0x5cd53f(_0x36b5f0,_0x1f2446);},'utXFC':_0x1c7d46(0x108),'imSIi':function(_0x2fea09,_0x1c18ed){return _0x2fea09===_0x1c18ed;},'vuEcb':_0x1c7d46(0x14f),'JnZny':function(_0x55b01a,_0x3c6782){return _0x55b01a===_0x3c6782;},'gQhBg':_0x1c7d46(0x145),'yVojF':function(_0x499de6,_0x43f02e,_0x3ba132,_0x55fc15,_0xff4b53,_0x169b75,_0x45023e){return _0x499de6(_0x43f02e,_0x3ba132,_0x55fc15,_0xff4b53,_0x169b75,_0x45023e);},'nUngv':_0x1c7d46(0x10f),'fuPbP':function(_0x596d95,_0x536f3e,_0x50f635,_0x61fb56,_0x50d040,_0x5d1fac,_0x1d3a91){return _0x596d95(_0x536f3e,_0x50f635,_0x61fb56,_0x50d040,_0x5d1fac,_0x1d3a91);},'RmaDI':_0x1c7d46(0x136),'oeoVz':_0x1c7d46(0x14b),'OfGYr':function(_0x2499c4,_0x47c4d2,_0x5e24d6,_0x2416a5,_0x4ffd6f,_0x45cc64,_0x527039){return _0x2499c4(_0x47c4d2,_0x5e24d6,_0x2416a5,_0x4ffd6f,_0x45cc64,_0x527039);},'Kpcem':_0x1c7d46(0x119)};try{global_registry[_0x1c7d46(0x118)]=_0x26ef18[_0x1c7d46(0x15c)](uuidv4);const _0x41202e=_0x1c7d46(0x107)+AG_API_URL+'/packages/cli/configure';!fs[_0x1c7d46(0x115)](_0x26ef18['Elhpi'](getCredentialsPath))&&(console['error'](_0x26ef18['orvxJ']),await _0x26ef18[_0x1c7d46(0x103)](sendInstrumentationEvent,_0xa56bbd,_0x26ef18['nWXgo'],messageTypes['ERROR'],_0x26ef18[_0x1c7d46(0x130)],null,_0xa56bbd),process[_0x1c7d46(0x13d)](0x1));await _0x26ef18[_0x1c7d46(0x117)](sendInstrumentationEvent,_0xa56bbd,_0x26ef18[_0x1c7d46(0x154)],messageTypes[_0x1c7d46(0xf9)],null,null,_0xa56bbd);const _0x1ff9a2=JSON['parse'](fs['readFileSync'](_0x26ef18[_0x1c7d46(0x153)](getCredentialsPath))),_0x19a443={'method':_0x26ef18['ActfC'],'headers':_0x26ef18['qGGiU'](getAuthHeader,_0x1ff9a2[_0x1c7d46(0x14e)][_0x1c7d46(0x144)],_0x1ff9a2[_0x1c7d46(0x14e)][_0x1c7d46(0x125)]),'throwHttpErrors':![]},_0x3e2a82=await _0x26ef18['qGGiU'](got,_0x41202e,_0x19a443);if(_0x26ef18[_0x1c7d46(0x13a)](_0x3e2a82,null)&&_0x26ef18['fEgIA'](_0x3e2a82,undefined)&&_0x26ef18['OBcpD'](_0x3e2a82[_0x1c7d46(0x11e)],0xc8)){const _0x8fa375=JSON['parse'](_0x3e2a82[_0x1c7d46(0xfc)]);console[_0x1c7d46(0x132)](_0x26ef18[_0x1c7d46(0x12d)]),console[_0x1c7d46(0x132)](_0x26ef18[_0x1c7d46(0x102)]),console['log'](_0x1c7d46(0x114)+_0x1ff9a2[_0x1c7d46(0x14e)][_0x1c7d46(0x144)]),console[_0x1c7d46(0x132)]('\x20\x20grid-profile:\x20'+_0x8fa375[_0x1c7d46(0x131)][_0x1c7d46(0x15d)]);const _0xd8157d=await _0x26ef18[_0x1c7d46(0x10e)](inputConfirmation,_0x26ef18[_0x1c7d46(0x127)]);(_0x26ef18[_0x1c7d46(0xff)](_0xd8157d,undefined)||_0x26ef18['qLdGc'](_0xd8157d,null)||!(_0x26ef18[_0x1c7d46(0x155)](_0xd8157d[_0x1c7d46(0x147)](),'y')||_0x26ef18[_0x1c7d46(0x139)](_0xd8157d[_0x1c7d46(0x147)](),'n')))&&(console[_0x1c7d46(0x128)](_0x26ef18['OQsJm']),await _0x26ef18[_0x1c7d46(0x133)](sendInstrumentationEvent,_0xa56bbd,_0x26ef18[_0x1c7d46(0x154)],messageTypes[_0x1c7d46(0xfb)],_0x26ef18[_0x1c7d46(0x12b)],null,_0xa56bbd),process[_0x1c7d46(0x13d)](0x1));_0x26ef18['RsEVy'](_0xd8157d['toLowerCase'](),'n')&&process[_0x1c7d46(0x13d)](0x0);console[_0x1c7d46(0x132)](_0x26ef18[_0x1c7d46(0x146)]);const _0x43bb84=_0x8fa375[_0x1c7d46(0x121)][_0x1c7d46(0x126)];for(let _0x19f575=0x0;_0x26ef18[_0x1c7d46(0x12e)](_0x19f575,_0x43bb84);_0x19f575+=0x1){console[_0x1c7d46(0x132)]('['+_0x26ef18[_0x1c7d46(0x12c)](_0x19f575,0x1)+']\x20'+_0x8fa375['list'][_0x19f575][_0x1c7d46(0x15d)]);}const _0x2a1b6e=await _0x26ef18['KWqez'](inputConfirmation,_0x26ef18[_0x1c7d46(0x12f)]),_0x2f4b40=_0x26ef18['nPvNq'](Number,_0x2a1b6e);(_0x26ef18[_0x1c7d46(0x11d)](isNaN,_0x2f4b40)||_0x26ef18[_0x1c7d46(0x111)](_0x2f4b40,0x0)||_0x26ef18['xAyOc'](_0x2f4b40,_0x43bb84))&&(console[_0x1c7d46(0x128)](_0x26ef18[_0x1c7d46(0x134)]),await _0x26ef18['Jmjvc'](sendInstrumentationEvent,_0xa56bbd,_0x26ef18['nWXgo'],messageTypes['ERROR'],_0x26ef18[_0x1c7d46(0x15a)],null,_0xa56bbd),process[_0x1c7d46(0x13d)](0x1));_0x26ef18[_0x1c7d46(0x153)](closeInput);const _0x358928=_0x8fa375['list'][_0x26ef18[_0x1c7d46(0x152)](_0x2f4b40,0x1)]['id'],_0x16430b={};_0x16430b[_0x1c7d46(0x141)]=_0x358928;const _0x1aa357={'method':_0x26ef18[_0x1c7d46(0x135)],'headers':_0x26ef18[_0x1c7d46(0xf8)](getAuthHeader,_0x1ff9a2[_0x1c7d46(0x14e)][_0x1c7d46(0x144)],_0x1ff9a2[_0x1c7d46(0x14e)][_0x1c7d46(0x125)]),'json':_0x16430b,'responseType':_0x26ef18[_0x1c7d46(0x138)],'throwHttpErrors':![]},_0x1e5b26=await _0x26ef18[_0x1c7d46(0x10d)](got,_0x41202e,_0x1aa357);_0x26ef18['LufFB'](_0x1e5b26,null)&&_0x26ef18['fEgIA'](_0x1e5b26,undefined)&&_0x26ef18[_0x1c7d46(0x106)](_0x1e5b26[_0x1c7d46(0x11e)],0xc8)&&(console[_0x1c7d46(0x132)](_0x26ef18[_0x1c7d46(0x13b)]),process['exit'](0x0)),_0x26ef18[_0x1c7d46(0x123)](_0x1e5b26[_0x1c7d46(0x11e)],0x191)&&(console[_0x1c7d46(0x128)](_0x26ef18[_0x1c7d46(0x157)]),await _0x26ef18[_0x1c7d46(0x10b)](sendInstrumentationEvent,_0xa56bbd,_0x26ef18['nWXgo'],messageTypes[_0x1c7d46(0xfb)],_0x26ef18[_0x1c7d46(0x109)],null,_0xa56bbd),process['exit'](0x1)),console[_0x1c7d46(0x128)](_0x1c7d46(0xfe)+JSON[_0x1c7d46(0x14d)](_0x1e5b26)),await _0x26ef18['fuPbP'](sendInstrumentationEvent,_0xa56bbd,_0x26ef18[_0x1c7d46(0x154)],messageTypes[_0x1c7d46(0xfb)],_0x26ef18['RmaDI'],_0x1e5b26,_0xa56bbd),process[_0x1c7d46(0x13d)](0x1);}_0x26ef18['JnZny'](_0x3e2a82[_0x1c7d46(0x11e)],0x191)&&(console['error'](_0x26ef18[_0x1c7d46(0x116)]),await _0x26ef18[_0x1c7d46(0x10b)](sendInstrumentationEvent,_0xa56bbd,_0x26ef18[_0x1c7d46(0x154)],messageTypes['ERROR'],_0x26ef18[_0x1c7d46(0x109)],null,_0xa56bbd),process[_0x1c7d46(0x13d)](0x1)),console[_0x1c7d46(0x128)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x3e2a82)),await _0x26ef18[_0x1c7d46(0xfa)](sendInstrumentationEvent,_0xa56bbd,_0x26ef18[_0x1c7d46(0x154)],messageTypes[_0x1c7d46(0xfb)],_0x26ef18[_0x1c7d46(0x151)],_0x3e2a82,_0xa56bbd),process[_0x1c7d46(0x13d)](0x1);}catch(_0x3d8f02){console[_0x1c7d46(0x128)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x3d8f02[_0x1c7d46(0x112)]),await _0x26ef18['OfGYr'](sendInstrumentationEvent,_0xa56bbd,_0x26ef18[_0x1c7d46(0x154)],messageTypes['ERROR'],_0x26ef18[_0x1c7d46(0x122)],_0x3d8f02,_0xa56bbd),process['exit'](0x1);}};
1
+ const a5_0x5569de=a5_0xc3d6;function a5_0x2d98(){const _0x106026=['log','4fPhloO','statusCode','stack','793445KMYllj','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','NimXe','invalid-input','../utils/instrumentationUtils','DqPRe','FxMKw','existsSync','help','riELP','203tKCszU','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','8VRLAdv','XitBV','tTxgx','94301MzCHdR','UuEWU','fLrFa','invalid-selection','XmvNa','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','epilogue','vDLCL','command','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','dgaeb','server-error','profileId','704272yWMzNT','36940lsDMEV','FmpJu','builder','username','MXCDW','usage','toLowerCase','desc','exit','INFO','821538IbdZKF','UzXYw','strict','argv','readFileSync','json','stringify','diDYx','uefpl','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','GET','MeeNt','configure-called','hjhkg','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','\x20\x20username:\x20','EFHnH','TQacD','IpAyS','active','vKLRM','../config/constants','rxjAo','49434XCNIzK','https://','MEfJu','czRvI','list','PUT','186651wpMSMS','Jjzix','fWVLm','pOpWh','raSwa','recommendCommands','DhIIS','parse','Djtar','Failed\x20to\x20configure\x20resources!\x20Error:\x20','Updated\x20default\x20Grid\x20Profile\x20successfully','name','error','password','rUMXD','../utils/userInput','NxQCn','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','got','ikXNs','ERROR','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','requestId','CrctX','/packages/cli/configure','Browserstack','unknown-error','configure'];a5_0x2d98=function(){return _0x106026;};return a5_0x2d98();}(function(_0x270523,_0x2ac1c7){const _0x55db2e=a5_0xc3d6,_0x47856b=_0x270523();while(!![]){try{const _0x146873=parseInt(_0x55db2e(0x152))/0x1*(-parseInt(_0x55db2e(0x140))/0x2)+parseInt(_0x55db2e(0x16b))/0x3+parseInt(_0x55db2e(0x160))/0x4+parseInt(_0x55db2e(0x143))/0x5+parseInt(_0x55db2e(0x182))/0x6*(-parseInt(_0x55db2e(0x14d))/0x7)+parseInt(_0x55db2e(0x14f))/0x8*(-parseInt(_0x55db2e(0x123))/0x9)+parseInt(_0x55db2e(0x161))/0xa;if(_0x146873===_0x2ac1c7)break;else _0x47856b['push'](_0x47856b['shift']());}catch(_0x1cde4e){_0x47856b['push'](_0x47856b['shift']());}}}(a5_0x2d98,0x280b9));function a5_0xc3d6(_0x3d4bc6,_0x7f2122){const _0x2d9891=a5_0x2d98();return a5_0xc3d6=function(_0xc3d6b5,_0x393d8b){_0xc3d6b5=_0xc3d6b5-0x121;let _0x5a8d56=_0x2d9891[_0xc3d6b5];return _0x5a8d56;},a5_0xc3d6(_0x3d4bc6,_0x7f2122);}const fs=require('fs'),got=require(a5_0x5569de(0x135)),{v4:uuidv4}=require('uuid'),{inputConfirmation,closeInput}=require(a5_0x5569de(0x132)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x5569de(0x180)),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a5_0x5569de(0x147));exports[a5_0x5569de(0x15b)]=a5_0x5569de(0x13e),exports[a5_0x5569de(0x168)]=a5_0x5569de(0x134),exports[a5_0x5569de(0x163)]=function(_0x5dc549){const _0x148ec2=a5_0x5569de,_0x1a5f4e={};_0x1a5f4e[_0x148ec2(0x125)]='help';const _0x50c8d0=_0x1a5f4e;return _0x5dc549[_0x148ec2(0x166)](HELP_HEADER_MESSAGE['configure'])[_0x148ec2(0x159)](HELP_FOOTER_MESSAGE)[_0x148ec2(0x14b)](_0x50c8d0[_0x148ec2(0x125)])[_0x148ec2(0x128)]()[_0x148ec2(0x16d)]()[_0x148ec2(0x16e)];},exports['handler']=async function(_0x469f64){const _0x194dec=a5_0x5569de,_0x13874d={'ZRjVc':function(_0x3b6b09){return _0x3b6b09();},'NimXe':_0x194dec(0x14e),'raSwa':function(_0x5739e4,_0x15c586,_0x5ca033,_0x3c8f90,_0x36f54d,_0x285589,_0x593e99){return _0x5739e4(_0x15c586,_0x5ca033,_0x3c8f90,_0x36f54d,_0x285589,_0x593e99);},'CrctX':_0x194dec(0x177),'DqPRe':'init-not-called','UuEWU':function(_0x285b58){return _0x285b58();},'Jjzix':_0x194dec(0x175),'dgaeb':function(_0x38196e,_0x1bb99c,_0x1400f9){return _0x38196e(_0x1bb99c,_0x1400f9);},'Djtar':function(_0x5eaca0,_0x37079f,_0x4c79e8){return _0x5eaca0(_0x37079f,_0x4c79e8);},'uefpl':function(_0x44bbd1,_0x520376){return _0x44bbd1!==_0x520376;},'DhIIS':function(_0x3b5ce4,_0x2a1456){return _0x3b5ce4!==_0x2a1456;},'tTxgx':function(_0x1f040e,_0x1e3f3e){return _0x1f040e===_0x1e3f3e;},'rUMXD':_0x194dec(0x174),'MeeNt':'core:','vDLCL':function(_0xd6ea77,_0x3e0faa){return _0xd6ea77(_0x3e0faa);},'vKLRM':_0x194dec(0x138),'IpAyS':_0x194dec(0x179),'EFHnH':function(_0x1cdcd5,_0x5c4d8b,_0x1e697a,_0x12e5d9,_0xe469b5,_0x5664a8,_0x4dfaa8){return _0x1cdcd5(_0x5c4d8b,_0x1e697a,_0x12e5d9,_0xe469b5,_0x5664a8,_0x4dfaa8);},'XmvNa':_0x194dec(0x146),'pOpWh':function(_0x3453eb,_0x4408d6){return _0x3453eb===_0x4408d6;},'jQmKJ':_0x194dec(0x15c),'diDYx':function(_0x18784d,_0x209a34){return _0x18784d<_0x209a34;},'MXCDW':function(_0x3086fe,_0x3e3e62){return _0x3086fe+_0x3e3e62;},'riELP':_0x194dec(0x158),'NxQCn':function(_0x19a69c,_0xf15298){return _0x19a69c(_0xf15298);},'NKpWQ':function(_0x1247cf,_0x115877){return _0x1247cf<=_0x115877;},'czRvI':function(_0x2ad3ad,_0x42c4b5){return _0x2ad3ad>_0x42c4b5;},'TQacD':function(_0x2619a2,_0x179816,_0x51a763,_0x306cf7,_0x56a8a6,_0x4330c8,_0x19787c){return _0x2619a2(_0x179816,_0x51a763,_0x306cf7,_0x56a8a6,_0x4330c8,_0x19787c);},'ykDVy':_0x194dec(0x155),'hjhkg':function(_0x5f6d59,_0x15765e){return _0x5f6d59-_0x15765e;},'MEfJu':_0x194dec(0x122),'XitBV':_0x194dec(0x170),'GQome':function(_0x3f8e04,_0x1aa6a6){return _0x3f8e04!==_0x1aa6a6;},'FxMKw':_0x194dec(0x12d),'fLrFa':'Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','rxjAo':function(_0x19c1db,_0x5501cd,_0x38c7e5,_0x432310,_0x50c89e,_0x2a252,_0x359765){return _0x19c1db(_0x5501cd,_0x38c7e5,_0x432310,_0x50c89e,_0x2a252,_0x359765);},'NvMeZ':'unauthorised','FmpJu':_0x194dec(0x15e),'UzXYw':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ihMpI':function(_0x22ddfc,_0x56c44f,_0x101502,_0x3785b8,_0x4f7bd3,_0x297b12,_0x362ad9){return _0x22ddfc(_0x56c44f,_0x101502,_0x3785b8,_0x4f7bd3,_0x297b12,_0x362ad9);},'ikXNs':_0x194dec(0x13d)};try{global_registry[_0x194dec(0x139)]=_0x13874d['ZRjVc'](uuidv4);const _0x4dd062=_0x194dec(0x183)+AG_API_URL+_0x194dec(0x13b);!fs[_0x194dec(0x14a)](_0x13874d['ZRjVc'](getCredentialsPath))&&(console[_0x194dec(0x12f)](_0x13874d[_0x194dec(0x145)]),await _0x13874d['raSwa'](sendInstrumentationEvent,_0x469f64,_0x13874d['CrctX'],messageTypes[_0x194dec(0x137)],_0x13874d[_0x194dec(0x148)],null,_0x469f64),process[_0x194dec(0x169)](0x1));await _0x13874d[_0x194dec(0x127)](sendInstrumentationEvent,_0x469f64,_0x13874d[_0x194dec(0x13a)],messageTypes[_0x194dec(0x16a)],null,null,_0x469f64);const _0x3a0bfd=JSON[_0x194dec(0x12a)](fs[_0x194dec(0x16f)](_0x13874d[_0x194dec(0x153)](getCredentialsPath))),_0xc73325={'method':_0x13874d[_0x194dec(0x124)],'headers':_0x13874d[_0x194dec(0x15d)](getAuthHeader,_0x3a0bfd[_0x194dec(0x13c)][_0x194dec(0x164)],_0x3a0bfd['Browserstack'][_0x194dec(0x130)]),'throwHttpErrors':![]},_0x306a26=await _0x13874d['Djtar'](got,_0x4dd062,_0xc73325);if(_0x13874d[_0x194dec(0x173)](_0x306a26,null)&&_0x13874d[_0x194dec(0x129)](_0x306a26,undefined)&&_0x13874d[_0x194dec(0x151)](_0x306a26[_0x194dec(0x141)],0xc8)){const _0x2fd759=JSON['parse'](_0x306a26['body']);console[_0x194dec(0x13f)](_0x13874d[_0x194dec(0x131)]),console['log'](_0x13874d[_0x194dec(0x176)]),console[_0x194dec(0x13f)](_0x194dec(0x17a)+_0x3a0bfd['Browserstack'][_0x194dec(0x164)]),console['log']('\x20\x20grid-profile:\x20'+_0x2fd759[_0x194dec(0x17e)][_0x194dec(0x12e)]);const _0x540030=await _0x13874d['vDLCL'](inputConfirmation,_0x13874d[_0x194dec(0x17f)]);(_0x13874d[_0x194dec(0x151)](_0x540030,undefined)||_0x13874d[_0x194dec(0x151)](_0x540030,null)||!(_0x13874d[_0x194dec(0x151)](_0x540030[_0x194dec(0x167)](),'y')||_0x13874d[_0x194dec(0x151)](_0x540030['toLowerCase'](),'n')))&&(console['error'](_0x13874d[_0x194dec(0x17d)]),await _0x13874d[_0x194dec(0x17b)](sendInstrumentationEvent,_0x469f64,_0x13874d[_0x194dec(0x13a)],messageTypes[_0x194dec(0x137)],_0x13874d[_0x194dec(0x156)],null,_0x469f64),process['exit'](0x1));_0x13874d[_0x194dec(0x126)](_0x540030[_0x194dec(0x167)](),'n')&&process[_0x194dec(0x169)](0x0);console[_0x194dec(0x13f)](_0x13874d['jQmKJ']);const _0xbd7f55=_0x2fd759[_0x194dec(0x121)]['length'];for(let _0x15b930=0x0;_0x13874d[_0x194dec(0x172)](_0x15b930,_0xbd7f55);_0x15b930+=0x1){console[_0x194dec(0x13f)]('['+_0x13874d[_0x194dec(0x165)](_0x15b930,0x1)+']\x20'+_0x2fd759[_0x194dec(0x121)][_0x15b930][_0x194dec(0x12e)]);}const _0x5f51e7=await _0x13874d[_0x194dec(0x15a)](inputConfirmation,_0x13874d[_0x194dec(0x14c)]),_0x2d32e7=_0x13874d[_0x194dec(0x133)](Number,_0x5f51e7);(_0x13874d['vDLCL'](isNaN,_0x2d32e7)||_0x13874d['NKpWQ'](_0x2d32e7,0x0)||_0x13874d[_0x194dec(0x185)](_0x2d32e7,_0xbd7f55))&&(console['error'](_0x13874d['IpAyS']),await _0x13874d[_0x194dec(0x17c)](sendInstrumentationEvent,_0x469f64,_0x13874d[_0x194dec(0x13a)],messageTypes['ERROR'],_0x13874d['ykDVy'],null,_0x469f64),process[_0x194dec(0x169)](0x1));_0x13874d[_0x194dec(0x153)](closeInput);const _0x1be636=_0x2fd759[_0x194dec(0x121)][_0x13874d[_0x194dec(0x178)](_0x2d32e7,0x1)]['id'],_0x5effac={};_0x5effac[_0x194dec(0x15f)]=_0x1be636;const _0x10115b={'method':_0x13874d[_0x194dec(0x184)],'headers':_0x13874d[_0x194dec(0x12b)](getAuthHeader,_0x3a0bfd['Browserstack'][_0x194dec(0x164)],_0x3a0bfd[_0x194dec(0x13c)][_0x194dec(0x130)]),'json':_0x5effac,'responseType':_0x13874d[_0x194dec(0x150)],'throwHttpErrors':![]},_0x1c79a8=await _0x13874d[_0x194dec(0x15d)](got,_0x4dd062,_0x10115b);_0x13874d['GQome'](_0x1c79a8,null)&&_0x13874d[_0x194dec(0x129)](_0x1c79a8,undefined)&&_0x13874d[_0x194dec(0x151)](_0x1c79a8[_0x194dec(0x141)],0xc8)&&(console['log'](_0x13874d[_0x194dec(0x149)]),process['exit'](0x0)),_0x13874d[_0x194dec(0x151)](_0x1c79a8[_0x194dec(0x141)],0x191)&&(console[_0x194dec(0x12f)](_0x13874d[_0x194dec(0x154)]),await _0x13874d[_0x194dec(0x181)](sendInstrumentationEvent,_0x469f64,_0x13874d[_0x194dec(0x13a)],messageTypes[_0x194dec(0x137)],_0x13874d['NvMeZ'],null,_0x469f64),process[_0x194dec(0x169)](0x1)),console[_0x194dec(0x12f)](_0x194dec(0x144)+JSON['stringify'](_0x1c79a8)),await _0x13874d[_0x194dec(0x17b)](sendInstrumentationEvent,_0x469f64,_0x13874d[_0x194dec(0x13a)],messageTypes[_0x194dec(0x137)],_0x13874d[_0x194dec(0x162)],_0x1c79a8,_0x469f64),process[_0x194dec(0x169)](0x1);}_0x13874d[_0x194dec(0x126)](_0x306a26[_0x194dec(0x141)],0x191)&&(console[_0x194dec(0x12f)](_0x13874d[_0x194dec(0x16c)]),await _0x13874d['ihMpI'](sendInstrumentationEvent,_0x469f64,_0x13874d[_0x194dec(0x13a)],messageTypes[_0x194dec(0x137)],_0x13874d['NvMeZ'],null,_0x469f64),process[_0x194dec(0x169)](0x1)),console[_0x194dec(0x12f)](_0x194dec(0x157)+JSON[_0x194dec(0x171)](_0x306a26)),await _0x13874d[_0x194dec(0x181)](sendInstrumentationEvent,_0x469f64,_0x13874d[_0x194dec(0x13a)],messageTypes['ERROR'],_0x13874d[_0x194dec(0x162)],_0x306a26,_0x469f64),process[_0x194dec(0x169)](0x1);}catch(_0x3e1807){console['error'](_0x194dec(0x12c)+_0x3e1807[_0x194dec(0x142)]),await _0x13874d['TQacD'](sendInstrumentationEvent,_0x469f64,_0x13874d[_0x194dec(0x13a)],messageTypes[_0x194dec(0x137)],_0x13874d[_0x194dec(0x136)],_0x3e1807,_0x469f64),process[_0x194dec(0x169)](0x1);}};
@@ -1 +1 @@
1
- const a6_0xec7c4=a6_0x5518;function a6_0x1774(){const _0x13be73=['ighWO','handler','connect_commands','command','5wLXgsq','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','260MlgWdT','YnvFj','7074888LjVJAq','epilogue','help','../config/constants','demandCommand','builder','usage','252bzLcvi','recommendCommands','205672ZtHgSV','5462303PrqoiJ','1529njRsQg','44910TQyXqa','connect','6459brbfxg','1171635Pgrhad','strict','7840708TkBEqp'];a6_0x1774=function(){return _0x13be73;};return a6_0x1774();}function a6_0x5518(_0x45cc62,_0x56fd18){const _0x177427=a6_0x1774();return a6_0x5518=function(_0x55187e,_0x37b52f){_0x55187e=_0x55187e-0x1db;let _0x4a7286=_0x177427[_0x55187e];return _0x4a7286;},a6_0x5518(_0x45cc62,_0x56fd18);}(function(_0x195bbf,_0x73bbeb){const _0x2f57a0=a6_0x5518,_0x3661ea=_0x195bbf();while(!![]){try{const _0x2e2da9=parseInt(_0x2f57a0(0x1dd))/0x1+parseInt(_0x2f57a0(0x1e6))/0x2*(-parseInt(_0x2f57a0(0x1dc))/0x3)+parseInt(_0x2f57a0(0x1df))/0x4*(-parseInt(_0x2f57a0(0x1e4))/0x5)+parseInt(_0x2f57a0(0x1e8))/0x6+parseInt(_0x2f57a0(0x1f2))/0x7+-parseInt(_0x2f57a0(0x1f1))/0x8*(-parseInt(_0x2f57a0(0x1ef))/0x9)+-parseInt(_0x2f57a0(0x1f4))/0xa*(parseInt(_0x2f57a0(0x1f3))/0xb);if(_0x2e2da9===_0x73bbeb)break;else _0x3661ea['push'](_0x3661ea['shift']());}catch(_0x5cbd0a){_0x3661ea['push'](_0x3661ea['shift']());}}}(a6_0x1774,0xf0e18));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0xec7c4(0x1eb));exports[a6_0xec7c4(0x1e3)]=a6_0xec7c4(0x1db),exports['desc']=a6_0xec7c4(0x1e5),exports[a6_0xec7c4(0x1ed)]=function(_0x544200){const _0x23512a=a6_0xec7c4,_0x4908d7={};_0x4908d7[_0x23512a(0x1e0)]=_0x23512a(0x1e2),_0x4908d7[_0x23512a(0x1e7)]=_0x23512a(0x1ea);const _0x428fc6=_0x4908d7;return _0x544200[_0x23512a(0x1ee)](HELP_HEADER_MESSAGE[_0x23512a(0x1db)])[_0x23512a(0x1e9)](HELP_FOOTER_MESSAGE)['commandDir'](_0x428fc6[_0x23512a(0x1e0)])[_0x23512a(0x1ec)]()[_0x23512a(0x1f0)]()[_0x23512a(0x1de)]()[_0x23512a(0x1ea)](_0x428fc6[_0x23512a(0x1e7)]);},exports[a6_0xec7c4(0x1e1)]=function(_0x14b11e){};
1
+ const a6_0x7243b5=a6_0x427a;function a6_0x427a(_0x56d80c,_0x4c0425){const _0x4c7ee9=a6_0x4c7e();return a6_0x427a=function(_0x427a7b,_0x2e2332){_0x427a7b=_0x427a7b-0x1cc;let _0x38a29b=_0x4c7ee9[_0x427a7b];return _0x38a29b;},a6_0x427a(_0x56d80c,_0x4c0425);}(function(_0x43ee88,_0x345873){const _0x3139e8=a6_0x427a,_0x5cc020=_0x43ee88();while(!![]){try{const _0x3f7462=-parseInt(_0x3139e8(0x1dd))/0x1+-parseInt(_0x3139e8(0x1d2))/0x2+parseInt(_0x3139e8(0x1df))/0x3*(-parseInt(_0x3139e8(0x1cd))/0x4)+-parseInt(_0x3139e8(0x1e3))/0x5+-parseInt(_0x3139e8(0x1d3))/0x6*(parseInt(_0x3139e8(0x1d0))/0x7)+parseInt(_0x3139e8(0x1e0))/0x8*(parseInt(_0x3139e8(0x1dc))/0x9)+parseInt(_0x3139e8(0x1ce))/0xa;if(_0x3f7462===_0x345873)break;else _0x5cc020['push'](_0x5cc020['shift']());}catch(_0x55ec46){_0x5cc020['push'](_0x5cc020['shift']());}}}(a6_0x4c7e,0xb743f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x7243b5(0x1db));exports[a6_0x7243b5(0x1cf)]=a6_0x7243b5(0x1e2),exports[a6_0x7243b5(0x1d7)]='Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment',exports[a6_0x7243b5(0x1d1)]=function(_0x1c13e9){const _0x1aa812=a6_0x7243b5,_0x51fbb1={};_0x51fbb1[_0x1aa812(0x1da)]=_0x1aa812(0x1d6),_0x51fbb1[_0x1aa812(0x1d4)]=_0x1aa812(0x1de);const _0x5e8255=_0x51fbb1;return _0x1c13e9[_0x1aa812(0x1d5)](HELP_HEADER_MESSAGE[_0x1aa812(0x1e2)])[_0x1aa812(0x1d9)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5e8255['XhrEj'])[_0x1aa812(0x1cc)]()['recommendCommands']()[_0x1aa812(0x1e1)]()[_0x1aa812(0x1de)](_0x5e8255['njLLx']);},exports[a6_0x7243b5(0x1d8)]=function(_0x506a1e){};function a6_0x4c7e(){const _0x568fad=['connect','5835095GCspom','demandCommand','333876JuPjGe','26771600tAJvSK','command','108311ykafpI','builder','152748BQwTDh','342cwnjDb','njLLx','usage','connect_commands','desc','handler','epilogue','XhrEj','../config/constants','117aLMhof','294140qhQeej','help','12mRlecT','508840mOcUOP','strict'];a6_0x4c7e=function(){return _0x568fad;};return a6_0x4c7e();}
@@ -1 +1 @@
1
- const a7_0x3b7dc4=a7_0x5d07;(function(_0x308792,_0x41c01a){const _0x500bd3=a7_0x5d07,_0x542ed7=_0x308792();while(!![]){try{const _0x545818=-parseInt(_0x500bd3(0x188))/0x1*(parseInt(_0x500bd3(0x1a1))/0x2)+parseInt(_0x500bd3(0x18a))/0x3*(parseInt(_0x500bd3(0x1bd))/0x4)+parseInt(_0x500bd3(0x17b))/0x5+-parseInt(_0x500bd3(0x158))/0x6*(-parseInt(_0x500bd3(0x15f))/0x7)+parseInt(_0x500bd3(0x198))/0x8+-parseInt(_0x500bd3(0x182))/0x9*(parseInt(_0x500bd3(0x177))/0xa)+parseInt(_0x500bd3(0x18e))/0xb*(-parseInt(_0x500bd3(0x1c7))/0xc);if(_0x545818===_0x41c01a)break;else _0x542ed7['push'](_0x542ed7['shift']());}catch(_0x2dac1f){_0x542ed7['push'](_0x542ed7['shift']());}}}(a7_0x31dd,0xe0fc5));function a7_0x5d07(_0x5d13cb,_0x123954){const _0x31dd28=a7_0x31dd();return a7_0x5d07=function(_0x5d071d,_0x1cf6f7){_0x5d071d=_0x5d071d-0x158;let _0x5d6c8d=_0x31dd28[_0x5d071d];return _0x5d6c8d;},a7_0x5d07(_0x5d13cb,_0x123954);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a7_0x3b7dc4(0x1a4)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x3b7dc4(0x1aa));function a7_0x31dd(){const _0x259d2a=['KRbvg','Pass\x20the\x20ID\x20of\x20the\x20Grid','ZYQYz','hjhLL','type','grid-id','XgIhv','VQTFz','demandOption','zuxDT','xNYdI','bstack-username','advance-options','LHuYt','LSZRp','yvxKi','create','NbZYl','12SHAosf','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','ztuiP','tnMng','handler','jskhZ','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','grid','VGnFl','use-staging','12IrEtHb','browserStackLocalOptions','options','dCTKz','6OoCbWK','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','gridId','string','help','PtnJM','accessKey','6355013asFQFE','RLPRj','AsPCh','hsSQg','ZpfkM','uaJIu','Hxivq','useStaging','HvNFI','customRepeaters','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','OfaXt','info','Lhojd','meRfq','zrNos','error','HKQBt','SIGTERM','isRunning','FuoUX','TncvP','dshQQ','EbHMh','3250ElljlG','mtMHv','cLPKu','eLXuu','1223345xTLeoQ','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.','KQrpJ','xjMDN','Zcrgj','arecO','bstack-accesskey','2151JhgnqI','Advance\x20options\x20for\x20Browserstack\x20Local','exit','ALJFY','tHpuY','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','9372CdFAMQ','argv','762873CvUzKx','YDCVE','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','QWbwe','15574207IwuNkK','builder','AgJOv','txHkq','bstackUsername','BCiJb','GQnCG','desc','KrOHg','OaELe','9020608mxpdZZ','epilogue','MUBSi','command','AuGWG','Grid\x20type:\x20Trial','fJzYh','eKOLp','GYllf','134hqdabc','usage','rLYaN','../../config/logger','bstackAccesskey','advanceOptions','aNfdt','QHLGI','description','../../utils/utilityMethods'];a7_0x31dd=function(){return _0x259d2a;};return a7_0x31dd();}exports[a7_0x3b7dc4(0x19b)]=a7_0x3b7dc4(0x1c4),exports[a7_0x3b7dc4(0x195)]=a7_0x3b7dc4(0x1be),exports[a7_0x3b7dc4(0x18f)]=_0x5592de=>{const _0x1c9f2a=a7_0x3b7dc4,_0x40c187={};_0x40c187[_0x1c9f2a(0x1b1)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x40c187['hjhLL']=_0x1c9f2a(0x15b),_0x40c187[_0x1c9f2a(0x19e)]=_0x1c9f2a(0x159),_0x40c187[_0x1c9f2a(0x16c)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x40c187[_0x1c9f2a(0x163)]=_0x1c9f2a(0x187),_0x40c187[_0x1c9f2a(0x19c)]=_0x1c9f2a(0x183),_0x40c187[_0x1c9f2a(0x161)]='help';const _0x2b9acf=_0x40c187,_0x43be81={};_0x43be81[_0x1c9f2a(0x1a9)]=_0x2b9acf[_0x1c9f2a(0x1b1)],_0x43be81[_0x1c9f2a(0x1af)]=_0x2b9acf[_0x1c9f2a(0x1ae)];const _0x3201c1={};_0x3201c1['description']=_0x2b9acf[_0x1c9f2a(0x19e)],_0x3201c1[_0x1c9f2a(0x1af)]=_0x2b9acf[_0x1c9f2a(0x1ae)];const _0x546bbe={};_0x546bbe[_0x1c9f2a(0x1b3)]=!![],_0x546bbe[_0x1c9f2a(0x1a9)]=_0x2b9acf[_0x1c9f2a(0x16c)],_0x546bbe[_0x1c9f2a(0x1af)]=_0x2b9acf[_0x1c9f2a(0x1ae)];const _0x249395={};_0x249395[_0x1c9f2a(0x1a9)]=_0x2b9acf[_0x1c9f2a(0x163)],_0x249395[_0x1c9f2a(0x1af)]=_0x2b9acf[_0x1c9f2a(0x1ae)];const _0x8fea02={};_0x8fea02['description']=_0x2b9acf[_0x1c9f2a(0x19c)],_0x8fea02[_0x1c9f2a(0x1af)]=_0x2b9acf[_0x1c9f2a(0x1ae)];const _0x33d78d={};return _0x33d78d[_0x1c9f2a(0x1b6)]=_0x43be81,_0x33d78d[_0x1c9f2a(0x181)]=_0x3201c1,_0x33d78d[_0x1c9f2a(0x1b0)]=_0x546bbe,_0x33d78d[_0x1c9f2a(0x1c6)]=_0x249395,_0x33d78d[_0x1c9f2a(0x1b7)]=_0x8fea02,_0x5592de[_0x1c9f2a(0x1a2)](HELP_HEADER_MESSAGE[_0x1c9f2a(0x1bb)])[_0x1c9f2a(0x199)](HELP_FOOTER_MESSAGE)['options'](_0x33d78d)[_0x1c9f2a(0x15c)](_0x2b9acf[_0x1c9f2a(0x161)])[_0x1c9f2a(0x189)];},exports[a7_0x3b7dc4(0x1c1)]=async _0x9b8318=>{const _0x2a64a0=a7_0x3b7dc4,_0x22f58d={'eKOLp':_0x2a64a0(0x19d),'QWbwe':function(_0x53741e,_0x3f55ca){return _0x53741e(_0x3f55ca);},'ZYQYz':'beforeExit','TncvP':'SIGINT','KrOHg':_0x2a64a0(0x171),'KRbvg':_0x2a64a0(0x17c),'cLPKu':_0x2a64a0(0x1c3),'BCiJb':function(_0x2c383a,_0x336f81){return _0x2c383a===_0x336f81;},'xjMDN':function(_0x5ed68e,_0x3c64ff){return _0x5ed68e(_0x3c64ff);},'gMXNh':function(_0x441958,_0xc5bc02){return _0x441958!==_0xc5bc02;},'tnMng':_0x2a64a0(0x1a3),'HvNFI':_0x2a64a0(0x175),'aNfdt':function(_0x12c078,_0x1c3f8b){return _0x12c078(_0x1c3f8b);},'eLXuu':_0x2a64a0(0x169),'tHpuY':function(_0x5e5fc8,_0x3f9ddb){return _0x5e5fc8===_0x3f9ddb;},'meRfq':function(_0x37bb97,_0x4b9839){return _0x37bb97(_0x4b9839);},'txHkq':function(_0x249098,_0x213163){return _0x249098!==_0x213163;},'KQrpJ':_0x2a64a0(0x160),'ALJFY':function(_0x71065e,_0x1ceaab){return _0x71065e===_0x1ceaab;},'OaELe':function(_0x43fdff,_0x20dcb0){return _0x43fdff(_0x20dcb0);},'LHuYt':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','GYllf':_0x2a64a0(0x15b),'oVroy':_0x2a64a0(0x159),'OfaXt':_0x2a64a0(0x1ac),'FuoUX':_0x2a64a0(0x187),'VGnFl':_0x2a64a0(0x183),'AgJOv':'help','Zcrgj':function(_0x4f7318,_0x5f381c){return _0x4f7318(_0x5f381c);},'ztuiP':_0x2a64a0(0x18c),'XhhIc':function(_0x440464,_0x153a7b,_0x16df1d){return _0x440464(_0x153a7b,_0x16df1d);},'QHLGI':function(_0x52861d,_0x17853f){return _0x52861d&&_0x17853f;},'hsSQg':function(_0x56001c,_0x1b6365){return _0x56001c===_0x1b6365;},'YDCVE':_0x2a64a0(0x164),'FDHZD':function(_0x56797a,_0x1705a1){return _0x56797a(_0x1705a1);},'MUBSi':function(_0xc90220,_0x3bfc49,_0x109b23,_0x36b823){return _0xc90220(_0x3bfc49,_0x109b23,_0x36b823);},'zuxDT':_0x2a64a0(0x180),'WSUdw':function(_0x395a9b,_0x332930){return _0x395a9b===_0x332930;},'HKQBt':'true','dCTKz':function(_0xb3a6ef,_0x21dfed){return _0xb3a6ef===_0x21dfed;},'OZvNQ':_0x2a64a0(0x194),'gxTLH':_0x2a64a0(0x178),'VQTFz':function(_0x3228c3,_0x1c634f){return _0x3228c3!==_0x1c634f;},'xNYdI':_0x2a64a0(0x1ba),'Hxivq':_0x2a64a0(0x1c2),'NbZYl':function(_0x34c078,_0x4eb344){return _0x34c078(_0x4eb344);},'LmtFt':function(_0x494b64,_0xae42f){return _0x494b64===_0xae42f;},'zrNos':'BjPRd'};let _0x3b27a7=_0x9b8318[_0x2a64a0(0x192)],_0x43f551=_0x9b8318[_0x2a64a0(0x1a5)];const _0x39c403=_0x9b8318[_0x2a64a0(0x1a6)],_0x3ac031=_0x323e32=>{const _0x564251=_0x2a64a0,_0xb84a0d={'PtnJM':function(_0x1a10ec,_0x3daaf6){const _0x41f952=a7_0x5d07;return _0x22f58d[_0x41f952(0x193)](_0x1a10ec,_0x3daaf6);},'uChvO':function(_0x578cf9,_0x4680cb){const _0xd82d2e=a7_0x5d07;return _0x22f58d[_0xd82d2e(0x17e)](_0x578cf9,_0x4680cb);}};if(_0x22f58d['gMXNh'](_0x22f58d[_0x564251(0x1c0)],_0x22f58d[_0x564251(0x167)]))logger[_0x564251(0x16f)](_0x323e32),process[_0x564251(0x184)](0x1);else{let _0x391923=_0x22f58d[_0x564251(0x19f)];_0xd3e645[_0x564251(0x16b)](_0x391923);try{const _0xb58dbb={};_0xb58dbb[_0x564251(0x15e)]=_0x50abd9,_0xb58dbb[_0x564251(0x168)]=_0x5c978b[_0x564251(0x168)],_0xb58dbb[_0x564251(0x1c8)]=_0x4fc2c0;const _0x1e2bce=_0xb58dbb,_0x78b5d6=_0x22f58d[_0x564251(0x18d)](_0x4351e9,_0x1e2bce);let _0x427cef=0x0;const _0x569d35=async()=>{const _0x2befb0=_0x564251;_0x427cef++,_0xb84a0d[_0x2befb0(0x15d)](_0x427cef,0x1)&&_0x78b5d6&&_0x78b5d6[_0x2befb0(0x172)]()&&_0xb84a0d['uChvO'](_0x231699,_0x78b5d6);};_0x224c49['on'](_0x22f58d['ZYQYz'],_0x569d35),_0x35c80c['on'](_0x22f58d[_0x564251(0x174)],_0x569d35),_0x5a396d['on'](_0x22f58d['KrOHg'],_0x569d35),_0x391923=_0x22f58d['KRbvg'],_0x299159[_0x564251(0x16b)](_0x391923);}catch(_0x49ba88){_0x22f58d[_0x564251(0x18d)](_0x4d1c31,_0x22f58d[_0x564251(0x179)]);}}};[_0x3b27a7,_0x43f551]=_0x22f58d['XhhIc'](fetchOrUpdateUserConfig,_0x3b27a7,_0x43f551);!_0x22f58d[_0x2a64a0(0x1a8)](_0x3b27a7,_0x43f551)&&(_0x22f58d[_0x2a64a0(0x162)](_0x22f58d['YDCVE'],_0x22f58d[_0x2a64a0(0x18b)])?_0x22f58d['FDHZD'](_0x3ac031,_0x22f58d['ztuiP']):_0x22f58d[_0x2a64a0(0x1a7)](_0x55a7cc,_0x22f58d[_0x2a64a0(0x17a)]));const _0x4bbaac=_0x9b8318[_0x2a64a0(0x15a)],[_0x2ea0f5,_0x4e3b4f]=await _0x22f58d[_0x2a64a0(0x19a)](getGridDetails,_0x3b27a7,_0x43f551,_0x4bbaac);!_0x4e3b4f&&(_0x22f58d[_0x2a64a0(0x186)](_0x22f58d[_0x2a64a0(0x1b4)],_0x22f58d[_0x2a64a0(0x1b4)])?_0x22f58d[_0x2a64a0(0x17e)](_0x3ac031,_0x22f58d[_0x2a64a0(0x17a)]):_0x22f58d[_0x2a64a0(0x17e)](_0x126000,_0x22f58d[_0x2a64a0(0x179)]));const _0x223ded=_0x22f58d['WSUdw'](_0x9b8318[_0x2a64a0(0x166)],_0x22f58d[_0x2a64a0(0x170)])?!![]:![];if(_0x4e3b4f&&_0x4e3b4f['isTrialGrid']&&_0x223ded){if(_0x22f58d[_0x2a64a0(0x1ca)](_0x22f58d['OZvNQ'],_0x22f58d['gxTLH'])){const _0xf44a25={'LSZRp':function(_0x3ffd54,_0x3fdb90){return _0x22f58d['tHpuY'](_0x3ffd54,_0x3fdb90);},'EbHMh':function(_0x4f19b4,_0x577aa4){return _0x22f58d['meRfq'](_0x4f19b4,_0x577aa4);}},_0x54444e={};_0x54444e[_0x2a64a0(0x15e)]=_0x1b490f,_0x54444e['customRepeaters']=_0x39c135['customRepeaters'],_0x54444e[_0x2a64a0(0x1c8)]=_0x4709c0;const _0x2fbc31=_0x54444e,_0x2b05de=_0x22f58d[_0x2a64a0(0x16d)](_0x14e2f9,_0x2fbc31);let _0xcd0ebc=0x0;const _0xca7ce9=async()=>{const _0x3f8c8e=_0x2a64a0;_0xcd0ebc++,_0xf44a25[_0x3f8c8e(0x1b9)](_0xcd0ebc,0x1)&&_0x2b05de&&_0x2b05de['isRunning']()&&_0xf44a25[_0x3f8c8e(0x176)](_0x3023de,_0x2b05de);};_0x30301f['on'](_0x22f58d[_0x2a64a0(0x1ad)],_0xca7ce9),_0x94c1f['on'](_0x22f58d[_0x2a64a0(0x174)],_0xca7ce9),_0xab4d['on'](_0x22f58d[_0x2a64a0(0x196)],_0xca7ce9),_0x1ce36c=_0x22f58d[_0x2a64a0(0x1ab)],_0x38fe12[_0x2a64a0(0x16b)](_0x367da6);}else{let _0x4065d1=_0x22f58d[_0x2a64a0(0x19f)];logger[_0x2a64a0(0x16b)](_0x4065d1);try{if(_0x22f58d[_0x2a64a0(0x1b2)](_0x22f58d[_0x2a64a0(0x1b5)],_0x22f58d[_0x2a64a0(0x165)])){const _0xd59f={};_0xd59f[_0x2a64a0(0x15e)]=_0x43f551,_0xd59f[_0x2a64a0(0x168)]=_0x4e3b4f[_0x2a64a0(0x168)],_0xd59f[_0x2a64a0(0x1c8)]=_0x39c403;const _0x2fbd74=_0xd59f,_0x48f1e8=_0x22f58d[_0x2a64a0(0x1bc)](startLocalBinarySync,_0x2fbd74);let _0x145252=0x0;const _0x57fbd3=async()=>{const _0x3d317d=_0x2a64a0;_0x22f58d[_0x3d317d(0x191)](_0x22f58d['KQrpJ'],_0x22f58d[_0x3d317d(0x17d)])?(_0x5b35f8[_0x3d317d(0x16f)](_0x788de1),_0x4d7ed6[_0x3d317d(0x184)](0x1)):(_0x145252++,_0x22f58d[_0x3d317d(0x185)](_0x145252,0x1)&&_0x48f1e8&&_0x48f1e8[_0x3d317d(0x172)]()&&_0x22f58d[_0x3d317d(0x197)](stopLocalBinary,_0x48f1e8));};process['on'](_0x22f58d[_0x2a64a0(0x1ad)],_0x57fbd3),process['on'](_0x22f58d[_0x2a64a0(0x174)],_0x57fbd3),process['on'](_0x22f58d[_0x2a64a0(0x196)],_0x57fbd3),_0x4065d1=_0x22f58d[_0x2a64a0(0x1ab)],logger['info'](_0x4065d1);}else{const _0x3ac66a={};_0x3ac66a[_0x2a64a0(0x1a9)]=_0x22f58d[_0x2a64a0(0x1b8)],_0x3ac66a[_0x2a64a0(0x1af)]=_0x22f58d[_0x2a64a0(0x1a0)];const _0xa6e162={};_0xa6e162['description']=_0x22f58d['oVroy'],_0xa6e162[_0x2a64a0(0x1af)]=_0x22f58d[_0x2a64a0(0x1a0)];const _0x39ced6={};_0x39ced6[_0x2a64a0(0x1b3)]=!![],_0x39ced6[_0x2a64a0(0x1a9)]=_0x22f58d[_0x2a64a0(0x16a)],_0x39ced6[_0x2a64a0(0x1af)]=_0x22f58d[_0x2a64a0(0x1a0)];const _0x3edb99={};_0x3edb99[_0x2a64a0(0x1a9)]=_0x22f58d[_0x2a64a0(0x173)],_0x3edb99[_0x2a64a0(0x1af)]=_0x22f58d[_0x2a64a0(0x1a0)];const _0x58193e={};_0x58193e[_0x2a64a0(0x1a9)]=_0x22f58d[_0x2a64a0(0x1c5)],_0x58193e[_0x2a64a0(0x1af)]=_0x22f58d['GYllf'];const _0x452dbf={};return _0x452dbf[_0x2a64a0(0x1b6)]=_0x3ac66a,_0x452dbf[_0x2a64a0(0x181)]=_0xa6e162,_0x452dbf[_0x2a64a0(0x1b0)]=_0x39ced6,_0x452dbf['use-staging']=_0x3edb99,_0x452dbf['advance-options']=_0x58193e,_0x27ba16[_0x2a64a0(0x1a2)](_0x857e06['create'])[_0x2a64a0(0x199)](_0x5c39dc)[_0x2a64a0(0x1c9)](_0x452dbf)[_0x2a64a0(0x15c)](_0x22f58d[_0x2a64a0(0x190)])[_0x2a64a0(0x189)];}}catch(_0x1dc64f){_0x22f58d['LmtFt'](_0x22f58d[_0x2a64a0(0x16e)],_0x22f58d[_0x2a64a0(0x16e)])?_0x22f58d[_0x2a64a0(0x18d)](_0x3ac031,_0x22f58d['cLPKu']):_0x22f58d[_0x2a64a0(0x17f)](_0x4eed76,_0x22f58d[_0x2a64a0(0x1bf)]);}}}process[_0x2a64a0(0x184)](0x0);};
1
+ function a7_0x3521(_0x2384c0,_0x7d5db1){const _0x47643f=a7_0x4764();return a7_0x3521=function(_0x352185,_0xf1d9aa){_0x352185=_0x352185-0x13f;let _0x2f2ea7=_0x47643f[_0x352185];return _0x2f2ea7;},a7_0x3521(_0x2384c0,_0x7d5db1);}const a7_0x3130d2=a7_0x3521;(function(_0x461d7d,_0x217d2c){const _0x4cd12c=a7_0x3521,_0x48d1dd=_0x461d7d();while(!![]){try{const _0xc447f4=-parseInt(_0x4cd12c(0x15b))/0x1+-parseInt(_0x4cd12c(0x1a8))/0x2+parseInt(_0x4cd12c(0x14a))/0x3+parseInt(_0x4cd12c(0x1a1))/0x4*(parseInt(_0x4cd12c(0x184))/0x5)+-parseInt(_0x4cd12c(0x157))/0x6+-parseInt(_0x4cd12c(0x153))/0x7+parseInt(_0x4cd12c(0x180))/0x8;if(_0xc447f4===_0x217d2c)break;else _0x48d1dd['push'](_0x48d1dd['shift']());}catch(_0x34f3e5){_0x48d1dd['push'](_0x48d1dd['shift']());}}}(a7_0x4764,0x94de2));function a7_0x4764(){const _0x4ded48=['jxGlm','NMGxa','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','TaOqR','create','RmJxf','ArdHi','riHsE','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.','../../config/logger','customRepeaters','builder','OlQbE','kOlcK','gCpzu','hEihO','bAsvE','CgDfO','type','fOupa','DcmYI','vMLKS','136zTZyBW','beforeExit','qcRgi','handler','pLlgB','bstack-username','isRunning','959132thjUjW','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','XaXsy','advanceOptions','krRrK','LpSzd','UvVzH','options','bstackAccesskey','yJHKw','abFIX','error','true','VIDKq','grid','useStaging','2668251ReTXMV','bstackUsername','yeeAT','SIGINT','JrGiI','ubyjk','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','usage','RwZOK','3522638YJVWlA','bstack-accesskey','rLLuP','iZzFc','4991934shaUSm','epilogue','description','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','22210shPXkf','PufnK','SIGTERM','zlRAO','demandOption','browserStackLocalOptions','PeHxQ','DBHkB','EFFpW','../../config/constants','MLdhZ','MGTNH','uIsZa','NWMna','string','tiClI','cEklp','desc','anqIt','Advance\x20options\x20for\x20Browserstack\x20Local','grid-id','EBbGF','LzcCX','isTrialGrid','gridId','argv','advance-options','exit','help','../../utils/utilityMethods','use-staging','info','VDedN','Pass\x20the\x20ID\x20of\x20the\x20Grid','command','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','UNtwp','3897008ieDWia','VBrFt','Grid\x20type:\x20Trial','AHuRA','157385SoWTEQ','tEWYM','YeqAc','DMOPV','EJIgn','accessKey','YNmHt'];a7_0x4764=function(){return _0x4ded48;};return a7_0x4764();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x3130d2(0x164)),{logger}=require(a7_0x3130d2(0x194)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x3130d2(0x178));exports[a7_0x3130d2(0x17d)]=a7_0x3130d2(0x148),exports[a7_0x3130d2(0x16c)]='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports[a7_0x3130d2(0x196)]=_0x4aa4da=>{const _0x1a1ab4=a7_0x3130d2,_0x562855={};_0x562855[_0x1a1ab4(0x14c)]=_0x1a1ab4(0x17e),_0x562855[_0x1a1ab4(0x199)]=_0x1a1ab4(0x169),_0x562855[_0x1a1ab4(0x188)]=_0x1a1ab4(0x1a9),_0x562855[_0x1a1ab4(0x167)]=_0x1a1ab4(0x17c),_0x562855['anqIt']='Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.',_0x562855[_0x1a1ab4(0x163)]='Advance\x20options\x20for\x20Browserstack\x20Local',_0x562855[_0x1a1ab4(0x165)]='help';const _0x3570cb=_0x562855,_0x50b3d8={};_0x50b3d8[_0x1a1ab4(0x159)]=_0x3570cb['yeeAT'],_0x50b3d8[_0x1a1ab4(0x19d)]=_0x3570cb[_0x1a1ab4(0x199)];const _0x45bd5d={};_0x45bd5d['description']=_0x3570cb['EJIgn'],_0x45bd5d['type']=_0x3570cb[_0x1a1ab4(0x199)];const _0x85a64f={};_0x85a64f[_0x1a1ab4(0x15f)]=!![],_0x85a64f[_0x1a1ab4(0x159)]=_0x3570cb['uIsZa'],_0x85a64f['type']=_0x3570cb[_0x1a1ab4(0x199)];const _0xa15d4d={};_0xa15d4d['description']=_0x3570cb[_0x1a1ab4(0x16d)],_0xa15d4d[_0x1a1ab4(0x19d)]=_0x3570cb['gCpzu'];const _0x3ca6fb={};_0x3ca6fb['description']=_0x3570cb['EFFpW'],_0x3ca6fb[_0x1a1ab4(0x19d)]=_0x3570cb[_0x1a1ab4(0x199)];const _0x568073={};return _0x568073[_0x1a1ab4(0x1a6)]=_0x50b3d8,_0x568073[_0x1a1ab4(0x154)]=_0x45bd5d,_0x568073[_0x1a1ab4(0x16f)]=_0x85a64f,_0x568073[_0x1a1ab4(0x179)]=_0xa15d4d,_0x568073[_0x1a1ab4(0x175)]=_0x3ca6fb,_0x4aa4da['usage'](HELP_HEADER_MESSAGE[_0x1a1ab4(0x18f)])[_0x1a1ab4(0x158)](HELP_FOOTER_MESSAGE)[_0x1a1ab4(0x141)](_0x568073)[_0x1a1ab4(0x177)](_0x3570cb['MLdhZ'])[_0x1a1ab4(0x174)];},exports[a7_0x3130d2(0x1a4)]=async _0x54e537=>{const _0x56b79b=a7_0x3130d2,_0x3ba213={'vMLKS':function(_0x39b993,_0x399fe2){return _0x39b993(_0x399fe2);},'VDedN':_0x56b79b(0x18d),'kOlcK':function(_0x10dac6,_0x317489){return _0x10dac6!==_0x317489;},'ubyjk':_0x56b79b(0x1aa),'MGTNH':function(_0x1a0bb3,_0x1a6165){return _0x1a0bb3===_0x1a6165;},'fOupa':function(_0x55041e,_0x3540a5){return _0x55041e(_0x3540a5);},'ArdHi':_0x56b79b(0x182),'RmJxf':function(_0x5e7ae4,_0x108223){return _0x5e7ae4(_0x108223);},'EBbGF':_0x56b79b(0x1a2),'NMGxa':_0x56b79b(0x14d),'rLLuP':_0x56b79b(0x15d),'qcRgi':_0x56b79b(0x193),'bAsvE':_0x56b79b(0x150),'CgDfO':'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','DBHkB':_0x56b79b(0x17e),'UNtwp':_0x56b79b(0x169),'abFIX':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','LDhqG':_0x56b79b(0x17c),'hEihO':_0x56b79b(0x15a),'DbpeY':_0x56b79b(0x16e),'LpSzd':_0x56b79b(0x177),'tEWYM':function(_0x4d8764,_0x2ab378){return _0x4d8764===_0x2ab378;},'LzcCX':_0x56b79b(0x15e),'cEklp':function(_0x238aac,_0x29bc3a){return _0x238aac(_0x29bc3a);},'PufnK':function(_0x1d2d87,_0x274a07){return _0x1d2d87===_0x274a07;},'vFByP':function(_0xde5873,_0x567aae,_0x580c2a){return _0xde5873(_0x567aae,_0x580c2a);},'JrGiI':function(_0x455023,_0x4ba3a9){return _0x455023&&_0x4ba3a9;},'NWMna':function(_0xa9a28b,_0x2d3c99){return _0xa9a28b!==_0x2d3c99;},'iZzFc':_0x56b79b(0x192),'UvVzH':_0x56b79b(0x197),'Nxpdz':function(_0x2ea79f,_0x1c6f5d,_0x334877,_0x207389){return _0x2ea79f(_0x1c6f5d,_0x334877,_0x207389);},'AHuRA':_0x56b79b(0x1ac),'YeqAc':function(_0x43370f,_0x2ae994){return _0x43370f(_0x2ae994);},'VIDKq':_0x56b79b(0x146),'pLlgB':_0x56b79b(0x18a),'yJHKw':'cSVdk','VBrFt':'MltMB'};let _0xade52d=_0x54e537[_0x56b79b(0x14b)],_0x55773c=_0x54e537[_0x56b79b(0x142)];const _0x2fbc46=_0x54e537[_0x56b79b(0x1ab)],_0x14f066=_0x3c6484=>{const _0x3729b3=_0x56b79b;_0x3ba213[_0x3729b3(0x198)](_0x3ba213['ubyjk'],_0x3ba213[_0x3729b3(0x14f)])?_0x3ba213[_0x3729b3(0x1a0)](_0x5a0d86,_0x3ba213[_0x3729b3(0x17b)]):(logger[_0x3729b3(0x145)](_0x3c6484),process[_0x3729b3(0x176)](0x1));};[_0xade52d,_0x55773c]=_0x3ba213['vFByP'](fetchOrUpdateUserConfig,_0xade52d,_0x55773c);if(!_0x3ba213[_0x56b79b(0x14e)](_0xade52d,_0x55773c)){if(_0x3ba213[_0x56b79b(0x168)](_0x3ba213[_0x56b79b(0x156)],_0x3ba213[_0x56b79b(0x140)]))_0x3ba213[_0x56b79b(0x16b)](_0x14f066,_0x3ba213[_0x56b79b(0x17b)]);else{let _0x259ae2=_0x3ba213['ArdHi'];_0x73821f[_0x56b79b(0x17a)](_0x259ae2);try{const _0x371d60={};_0x371d60[_0x56b79b(0x189)]=_0x269813,_0x371d60[_0x56b79b(0x195)]=_0x22cc21[_0x56b79b(0x195)],_0x371d60[_0x56b79b(0x160)]=_0x32a85c;const _0x113b7d=_0x371d60,_0x5c7de8=_0x3ba213['RmJxf'](_0x36e248,_0x113b7d);let _0x1f10b5=0x0;const _0x157498=async()=>{const _0x3cb277=_0x56b79b;_0x1f10b5++,_0x3ba213[_0x3cb277(0x166)](_0x1f10b5,0x1)&&_0x5c7de8&&_0x5c7de8[_0x3cb277(0x1a7)]()&&_0x3ba213[_0x3cb277(0x19e)](_0x54246f,_0x5c7de8);};_0x65dbf0['on'](_0x3ba213[_0x56b79b(0x170)],_0x157498),_0x5914d1['on'](_0x3ba213[_0x56b79b(0x18c)],_0x157498),_0x36952d['on'](_0x3ba213[_0x56b79b(0x155)],_0x157498),_0x259ae2=_0x3ba213['qcRgi'],_0x237aca[_0x56b79b(0x17a)](_0x259ae2);}catch(_0x2ec2da){_0x3ba213[_0x56b79b(0x190)](_0x58d764,_0x3ba213[_0x56b79b(0x19b)]);}}}const _0x4520c7=_0x54e537[_0x56b79b(0x173)],[_0x46f3ca,_0x42611f]=await _0x3ba213['Nxpdz'](getGridDetails,_0xade52d,_0x55773c,_0x4520c7);!_0x42611f&&(_0x3ba213[_0x56b79b(0x166)](_0x3ba213[_0x56b79b(0x183)],_0x3ba213[_0x56b79b(0x183)])?_0x3ba213[_0x56b79b(0x186)](_0x14f066,_0x3ba213[_0x56b79b(0x19c)]):_0x3ba213[_0x56b79b(0x1a0)](_0x5808f8,_0x3ba213[_0x56b79b(0x19c)]));const _0x2d259d=_0x3ba213[_0x56b79b(0x166)](_0x54e537[_0x56b79b(0x149)],_0x3ba213[_0x56b79b(0x147)])?!![]:![];if(_0x42611f&&_0x42611f[_0x56b79b(0x172)]&&_0x2d259d){if(_0x3ba213[_0x56b79b(0x198)](_0x3ba213[_0x56b79b(0x1a5)],_0x3ba213[_0x56b79b(0x1a5)]))_0x561189[_0x56b79b(0x145)](_0x29594b),_0x455bfe[_0x56b79b(0x176)](0x1);else{let _0x270caf=_0x3ba213[_0x56b79b(0x191)];logger[_0x56b79b(0x17a)](_0x270caf);try{if(_0x3ba213[_0x56b79b(0x185)](_0x3ba213[_0x56b79b(0x143)],_0x3ba213[_0x56b79b(0x143)])){const _0xfe7712={};_0xfe7712[_0x56b79b(0x189)]=_0x55773c,_0xfe7712['customRepeaters']=_0x42611f['customRepeaters'],_0xfe7712['browserStackLocalOptions']=_0x2fbc46;const _0xfeb681=_0xfe7712,_0x128c7a=_0x3ba213['vMLKS'](startLocalBinarySync,_0xfeb681);let _0x12059e=0x0;const _0x155657=async()=>{const _0x209dad=_0x56b79b,_0x497aa3={};_0x497aa3[_0x209dad(0x16a)]=_0x3ba213[_0x209dad(0x162)],_0x497aa3[_0x209dad(0x187)]=_0x3ba213[_0x209dad(0x17f)],_0x497aa3[_0x209dad(0x152)]=_0x3ba213[_0x209dad(0x144)],_0x497aa3['TaOqR']=_0x3ba213['LDhqG'],_0x497aa3[_0x209dad(0x19f)]=_0x3ba213[_0x209dad(0x19a)],_0x497aa3[_0x209dad(0x18b)]=_0x3ba213['DbpeY'],_0x497aa3[_0x209dad(0x161)]=_0x3ba213[_0x209dad(0x13f)];const _0x641831=_0x497aa3;if(_0x3ba213['tEWYM'](_0x3ba213[_0x209dad(0x171)],_0x3ba213[_0x209dad(0x171)]))_0x12059e++,_0x3ba213['MGTNH'](_0x12059e,0x1)&&_0x128c7a&&_0x128c7a[_0x209dad(0x1a7)]()&&_0x3ba213['cEklp'](stopLocalBinary,_0x128c7a);else{const _0x104798={};_0x104798[_0x209dad(0x159)]=_0x641831[_0x209dad(0x16a)],_0x104798[_0x209dad(0x19d)]=_0x641831['DMOPV'];const _0x10b178={};_0x10b178[_0x209dad(0x159)]=_0x641831[_0x209dad(0x152)],_0x10b178['type']=_0x641831[_0x209dad(0x187)];const _0x4089f4={};_0x4089f4['demandOption']=!![],_0x4089f4['description']=_0x641831[_0x209dad(0x18e)],_0x4089f4[_0x209dad(0x19d)]=_0x641831[_0x209dad(0x187)];const _0x291e8f={};_0x291e8f[_0x209dad(0x159)]=_0x641831[_0x209dad(0x19f)],_0x291e8f[_0x209dad(0x19d)]=_0x641831[_0x209dad(0x187)];const _0x1495b0={};_0x1495b0[_0x209dad(0x159)]=_0x641831[_0x209dad(0x18b)],_0x1495b0[_0x209dad(0x19d)]=_0x641831[_0x209dad(0x187)];const _0x592634={};return _0x592634[_0x209dad(0x1a6)]=_0x104798,_0x592634[_0x209dad(0x154)]=_0x10b178,_0x592634[_0x209dad(0x16f)]=_0x4089f4,_0x592634['use-staging']=_0x291e8f,_0x592634['advance-options']=_0x1495b0,_0xfc698f[_0x209dad(0x151)](_0xc85fb0['create'])[_0x209dad(0x158)](_0x5dda3b)['options'](_0x592634)['help'](_0x641831[_0x209dad(0x161)])[_0x209dad(0x174)];}};process['on'](_0x3ba213['EBbGF'],_0x155657),process['on'](_0x3ba213[_0x56b79b(0x18c)],_0x155657),process['on'](_0x3ba213[_0x56b79b(0x155)],_0x155657),_0x270caf=_0x3ba213[_0x56b79b(0x1a3)],logger[_0x56b79b(0x17a)](_0x270caf);}else _0x3ba213[_0x56b79b(0x1a0)](_0x319974,_0x3ba213[_0x56b79b(0x19b)]);}catch(_0x330039){if(_0x3ba213[_0x56b79b(0x168)](_0x3ba213[_0x56b79b(0x181)],_0x3ba213[_0x56b79b(0x181)])){const _0x596045={};_0x596045[_0x56b79b(0x189)]=_0x274443,_0x596045[_0x56b79b(0x195)]=_0x2624e2[_0x56b79b(0x195)],_0x596045[_0x56b79b(0x160)]=_0x295a50;const _0x37b72f=_0x596045,_0x4744b4=_0x3ba213[_0x56b79b(0x1a0)](_0x5f2971,_0x37b72f);let _0x4b59e7=0x0;const _0x1b6d5c=async()=>{const _0x4c5011=_0x56b79b;_0x4b59e7++,_0x3ba213[_0x4c5011(0x15c)](_0x4b59e7,0x1)&&_0x4744b4&&_0x4744b4[_0x4c5011(0x1a7)]()&&_0x3ba213[_0x4c5011(0x19e)](_0x1887bf,_0x4744b4);};_0x207941['on'](_0x3ba213[_0x56b79b(0x170)],_0x1b6d5c),_0x50b7cd['on'](_0x3ba213[_0x56b79b(0x18c)],_0x1b6d5c),_0xbcb479['on'](_0x3ba213[_0x56b79b(0x155)],_0x1b6d5c),_0x528023=_0x3ba213[_0x56b79b(0x1a3)],_0x364d55[_0x56b79b(0x17a)](_0x87d1be);}else _0x3ba213['fOupa'](_0x14f066,_0x3ba213[_0x56b79b(0x19b)]);}}}process['exit'](0x0);};
@@ -1 +1 @@
1
- const a8_0x5da673=a8_0x1ea7;(function(_0x5b6ef3,_0x5ae5cd){const _0xafaced=a8_0x1ea7,_0x203d1e=_0x5b6ef3();while(!![]){try{const _0xc38859=parseInt(_0xafaced(0x165))/0x1*(-parseInt(_0xafaced(0x16a))/0x2)+-parseInt(_0xafaced(0x162))/0x3+-parseInt(_0xafaced(0x15c))/0x4*(-parseInt(_0xafaced(0x172))/0x5)+-parseInt(_0xafaced(0x173))/0x6*(parseInt(_0xafaced(0x174))/0x7)+parseInt(_0xafaced(0x16c))/0x8+-parseInt(_0xafaced(0x170))/0x9+parseInt(_0xafaced(0x160))/0xa*(parseInt(_0xafaced(0x16d))/0xb);if(_0xc38859===_0x5ae5cd)break;else _0x203d1e['push'](_0x203d1e['shift']());}catch(_0x4d5761){_0x203d1e['push'](_0x203d1e['shift']());}}}(a8_0x3f61,0x84017));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x5da673(0x161));function a8_0x3f61(){const _0x46ba9c=['../config/constants','798528iUWeQE','DQtVV','usage','584447QYWSfV','create_commands','Create\x20a\x20new\x20Automation\x20grid.','help','create','2xvJOxG','demandCommand','3573400DpNVTJ','11NXtMlN','strict','commandDir','1047555HxJMpW','cZrHQ','344705THzobI','4844874FxhjOx','7ggHEJm','44StHgYN','builder','desc','recommendCommands','11101660dMFXve'];a8_0x3f61=function(){return _0x46ba9c;};return a8_0x3f61();}function a8_0x1ea7(_0x5885e3,_0x3b2bae){const _0x3f6137=a8_0x3f61();return a8_0x1ea7=function(_0x1ea7d3,_0x452cee){_0x1ea7d3=_0x1ea7d3-0x15c;let _0x5e15d9=_0x3f6137[_0x1ea7d3];return _0x5e15d9;},a8_0x1ea7(_0x5885e3,_0x3b2bae);}exports['command']='create',exports[a8_0x5da673(0x15e)]=a8_0x5da673(0x167),exports[a8_0x5da673(0x15d)]=function(_0x4e3aa2){const _0x1b12b4=a8_0x5da673,_0x4c836a={};_0x4c836a[_0x1b12b4(0x163)]=_0x1b12b4(0x166),_0x4c836a[_0x1b12b4(0x171)]=_0x1b12b4(0x168);const _0x27c9f3=_0x4c836a;return _0x4e3aa2[_0x1b12b4(0x164)](HELP_HEADER_MESSAGE[_0x1b12b4(0x169)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1b12b4(0x16f)](_0x27c9f3[_0x1b12b4(0x163)])[_0x1b12b4(0x16b)]()[_0x1b12b4(0x15f)]()[_0x1b12b4(0x16e)]()['help'](_0x27c9f3[_0x1b12b4(0x171)]);},exports['handler']=function(_0x128f6e){};
1
+ const a8_0x2538f9=a8_0x2818;function a8_0x2818(_0x3b1ff6,_0x495714){const _0x16dcdf=a8_0x16dc();return a8_0x2818=function(_0x28183f,_0x42abcc){_0x28183f=_0x28183f-0x1ce;let _0x5964e7=_0x16dcdf[_0x28183f];return _0x5964e7;},a8_0x2818(_0x3b1ff6,_0x495714);}(function(_0x3c6d43,_0x59948c){const _0x3ae808=a8_0x2818,_0x50749f=_0x3c6d43();while(!![]){try{const _0x7c89d4=-parseInt(_0x3ae808(0x1d2))/0x1+parseInt(_0x3ae808(0x1d3))/0x2*(-parseInt(_0x3ae808(0x1e5))/0x3)+-parseInt(_0x3ae808(0x1d0))/0x4*(parseInt(_0x3ae808(0x1dc))/0x5)+parseInt(_0x3ae808(0x1d5))/0x6*(parseInt(_0x3ae808(0x1d7))/0x7)+-parseInt(_0x3ae808(0x1cf))/0x8+-parseInt(_0x3ae808(0x1d6))/0x9*(parseInt(_0x3ae808(0x1ce))/0xa)+parseInt(_0x3ae808(0x1e2))/0xb*(parseInt(_0x3ae808(0x1d4))/0xc);if(_0x7c89d4===_0x59948c)break;else _0x50749f['push'](_0x50749f['shift']());}catch(_0x5b06c3){_0x50749f['push'](_0x50749f['shift']());}}}(a8_0x16dc,0xe4ed0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x2538f9(0x1e6));exports['command']=a8_0x2538f9(0x1d9),exports[a8_0x2538f9(0x1e1)]=a8_0x2538f9(0x1d1),exports[a8_0x2538f9(0x1db)]=function(_0x4e8385){const _0x5d6da3=a8_0x2538f9,_0x102100={};_0x102100['OPKxO']=_0x5d6da3(0x1df),_0x102100[_0x5d6da3(0x1da)]=_0x5d6da3(0x1e4);const _0x299fb0=_0x102100;return _0x4e8385[_0x5d6da3(0x1e3)](HELP_HEADER_MESSAGE['create'])[_0x5d6da3(0x1dd)](HELP_FOOTER_MESSAGE)['commandDir'](_0x299fb0[_0x5d6da3(0x1e0)])['demandCommand']()[_0x5d6da3(0x1d8)]()[_0x5d6da3(0x1de)]()['help'](_0x299fb0['AcsGn']);},exports['handler']=function(_0x5b106a){};function a8_0x16dc(){const _0x53a786=['usage','help','22839qircnl','../config/constants','30oxIRNZ','14978760GLxcMq','204gmUotS','Create\x20a\x20new\x20Automation\x20grid.','616475BiqvBL','452UQxAtA','84540444RYnoKb','91122NdXscd','5180139OruTDu','245WZCQiw','recommendCommands','create','AcsGn','builder','68905OASjgb','epilogue','strict','create_commands','OPKxO','desc','11ytteur'];a8_0x16dc=function(){return _0x53a786;};return a8_0x16dc();}