browserstack-node-sdk 1.50.8 → 1.50.9
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.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x449cd2=a2_0x68da;(function(_0x3cea51,_0x2826c2){const _0x1bb506=a2_0x68da,_0x8d6cc0=_0x3cea51();while(!![]){try{const _0x3eccea=parseInt(_0x1bb506(0x135))/0x1*(-parseInt(_0x1bb506(0x12b))/0x2)+parseInt(_0x1bb506(0x13c))/0x3+-parseInt(_0x1bb506(0x12c))/0x4*(parseInt(_0x1bb506(0x12f))/0x5)+-parseInt(_0x1bb506(0x123))/0x6+-parseInt(_0x1bb506(0x11d))/0x7+-parseInt(_0x1bb506(0x136))/0x8+-parseInt(_0x1bb506(0x129))/0x9*(-parseInt(_0x1bb506(0x128))/0xa);if(_0x3eccea===_0x2826c2)break;else _0x8d6cc0['push'](_0x8d6cc0['shift']());}catch(_0x6fdb71){_0x8d6cc0['push'](_0x8d6cc0['shift']());}}}(a2_0x5de8,0xcf2a7));function a2_0x68da(_0x37577e,_0x1f58f2){const _0x5de8d7=a2_0x5de8();return a2_0x68da=function(_0x68daa,_0x48d824){_0x68daa=_0x68daa-0x11c;let _0x46f8f8=_0x5de8d7[_0x68daa];return _0x46f8f8;},a2_0x68da(_0x37577e,_0x1f58f2);}const fs=require('fs'),{getCredentialsPath,isUndefined}=require('../utils/utilityMethods'),{logger}=require(a2_0x449cd2(0x127)),{inputCloudProviderKeys}=require(a2_0x449cd2(0x13a)),{WS_EVENTS}=require('../config/constants');class CloudProvider{constructor(_0x5866f5,_0x26cfb6,_0xf742b1,_0x34ff53,_0x46e947){const _0x36e583=a2_0x449cd2,_0xf418fd={};_0xf418fd[_0x36e583(0x133)]=_0x36e583(0x13d);const _0x4b6a75=_0xf418fd,_0x6d78c5=_0x4b6a75[_0x36e583(0x133)]['split']('|');let _0x3af809=0x0;while(!![]){switch(_0x6d78c5[_0x3af809++]){case'0':this[_0x36e583(0x11c)]=_0x5866f5;continue;case'1':this['clusterName']=_0x26cfb6;continue;case'2':this[_0x36e583(0x137)]=_0xf742b1;continue;case'3':this[_0x36e583(0x122)]=_0x34ff53;continue;case'4':this[_0x36e583(0x138)]=_0x46e947;continue;}break;}}async[a2_0x449cd2(0x13e)](){const _0x4d9836=a2_0x449cd2,_0x2a6d25={'mvHam':function(_0x4b295d){return _0x4b295d();},'AxzVr':function(_0x583dbb,_0x3644e0){return _0x583dbb(_0x3644e0);},'IsCDZ':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','CVzOl':function(_0x4ac6e3,_0x47097b,_0x1bb0f0,_0x252cdd){return _0x4ac6e3(_0x47097b,_0x1bb0f0,_0x252cdd);},'RpKaQ':function(_0x2c1c42){return _0x2c1c42();},'MpYOE':_0x4d9836(0x12a),'BYXrM':_0x4d9836(0x11e)},_0x37dda3=JSON[_0x4d9836(0x134)](fs[_0x4d9836(0x121)](_0x2a6d25['mvHam'](getCredentialsPath))),_0x51f2df=_0x37dda3[_0x4d9836(0x124)]||{};if(_0x2a6d25[_0x4d9836(0x13b)](isUndefined,_0x51f2df[this[_0x4d9836(0x11c)]])){logger[_0x4d9836(0x12e)](_0x2a6d25['IsCDZ']);_0x2a6d25[_0x4d9836(0x13b)](isUndefined,_0x37dda3['cloudProvider'])&&(_0x37dda3['cloudProvider']={});_0x37dda3[_0x4d9836(0x124)][this[_0x4d9836(0x11c)]]={};const _0x124bc6=await _0x2a6d25['CVzOl'](inputCloudProviderKeys,this[_0x4d9836(0x11c)],_0x37dda3,this);fs[_0x4d9836(0x12d)](_0x2a6d25['RpKaQ'](getCredentialsPath),JSON[_0x4d9836(0x125)](_0x124bc6)),logger['debug'](_0x2a6d25[_0x4d9836(0x131)]);}else{const _0x4d14ab=_0x2a6d25[_0x4d9836(0x120)],_0x2a2a4f={};_0x2a2a4f[_0x4d9836(0x130)]=WS_EVENTS[_0x4d9836(0x11f)],_0x2a2a4f[_0x4d9836(0x126)]=_0x4d14ab,this[_0x4d9836(0x138)]['sendEventToBackend'](this[_0x4d9836(0x122)],_0x2a2a4f),logger[_0x4d9836(0x12e)](_0x4d14ab),await this[_0x4d9836(0x132)](_0x51f2df);}}}const a2_0x1ae5bc={};a2_0x1ae5bc['CloudProvider']=CloudProvider,module[a2_0x449cd2(0x139)]=a2_0x1ae5bc;function a2_0x5de8(){const _0x24d680=['1874448Dhqxuw','0|1|2|3|4','init','cloudProviderName','11115097HLPwyJ','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20perform\x20actions','LOG','BYXrM','readFileSync','rws','7395702POdTdO','cloudProvider','stringify','message','../config/logger','56010akQwPs','9621omcNoS','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','2yYKbOM','824932flGkZX','writeFileSync','info','25hezUel','type','MpYOE','setCachedCredsInRegistry','qajql','parse','790633cWDWgO','8971584SUWiuL','gridName','webSocketUtils','exports','../utils/userInput','AxzVr'];a2_0x5de8=function(){return _0x24d680;};return a2_0x5de8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x112e1c=a3_0x17fb;(function(_0x3a9637,_0x47f83f){const _0x29c5bb=a3_0x17fb,_0x20ed4d=_0x3a9637();while(!![]){try{const _0x14eae2=parseInt(_0x29c5bb(0x119))/0x1+-parseInt(_0x29c5bb(0x1ba))/0x2+parseInt(_0x29c5bb(0x193))/0x3+-parseInt(_0x29c5bb(0x181))/0x4*(parseInt(_0x29c5bb(0x296))/0x5)+-parseInt(_0x29c5bb(0x275))/0x6+-parseInt(_0x29c5bb(0x232))/0x7+parseInt(_0x29c5bb(0x236))/0x8;if(_0x14eae2===_0x47f83f)break;else _0x20ed4d['push'](_0x20ed4d['shift']());}catch(_0x398fa4){_0x20ed4d['push'](_0x20ed4d['shift']());}}}(a3_0x38f6,0xc62cd));const fs=require('fs'),path=require(a3_0x112e1c(0x257)),got=require(a3_0x112e1c(0x1b0)),util=require(a3_0x112e1c(0x173)),cp=require(a3_0x112e1c(0x298)),{google}=require('googleapis'),compute=require(a3_0x112e1c(0x1d5)),container=require(a3_0x112e1c(0x25f)),{ProjectsClient}=require('@google-cloud/resource-manager')['v3'],{logger}=require(a3_0x112e1c(0x26c)),{CloudProvider}=require(a3_0x112e1c(0x231)),{getDirForConfig,getAuthHeader,runCommand}=require(a3_0x112e1c(0x10b)),{deleteRoutingDeps,deleteAgent}=require(a3_0x112e1c(0x15a)),{inputConfirmation,closeInput}=require(a3_0x112e1c(0x1e3)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x112e1c(0x1bd)),PERMISSIONS=require(a3_0x112e1c(0x1fb));function a3_0x17fb(_0x3c33ee,_0x4ba32a){const _0x38f6a0=a3_0x38f6();return a3_0x17fb=function(_0x17fbec,_0x4761e8){_0x17fbec=_0x17fbec-0xfe;let _0x1b1696=_0x38f6a0[_0x17fbec];return _0x1b1696;},a3_0x17fb(_0x3c33ee,_0x4ba32a);}class GoogleCloudProvider extends CloudProvider{constructor(_0x59502d,_0x3dd24c,_0x164ce4,_0x1de9dc){const _0x401237=a3_0x112e1c,_0x5c2bb9={};_0x5c2bb9['jWokG']='4|0|5|7|8|6|1|3|2',_0x5c2bb9[_0x401237(0x13e)]=_0x401237(0x26d),_0x5c2bb9['kHbDb']='turboscale_custom_role';const _0x554da5=_0x5c2bb9,_0x21b5be=_0x554da5[_0x401237(0x264)]['split']('|');let _0x3cae05=0x0;while(!![]){switch(_0x21b5be[_0x3cae05++]){case'0':this[_0x401237(0x244)]=null;continue;case'1':this[_0x401237(0x1de)]=null;continue;case'2':this[_0x401237(0x287)]=_0x554da5[_0x401237(0x13e)];continue;case'3':this['customRoleName']=_0x554da5[_0x401237(0x11f)];continue;case'4':super(GCP,_0x59502d,_0x3dd24c,_0x164ce4,_0x1de9dc);continue;case'5':this[_0x401237(0x1b1)]=null;continue;case'6':this[_0x401237(0x175)]=null;continue;case'7':this[_0x401237(0x216)]=null;continue;case'8':this[_0x401237(0x209)]=null;continue;}break;}}async['sendResourceDataToHST'](){const _0x2e8fd7=a3_0x112e1c;this[_0x2e8fd7(0x243)](this[_0x2e8fd7(0x179)]);}async['init'](){const _0xebc394=a3_0x112e1c;await super[_0xebc394(0x212)]();const _0x52eca2=this['credentialsPath'],_0x4ad49e={};_0x4ad49e[_0xebc394(0x229)]=_0x52eca2,this['containerClient']=new container['v1'][(_0xebc394(0x210))](_0x4ad49e);const _0x556e7f={};_0x556e7f[_0xebc394(0x229)]=_0x52eca2,this[_0xebc394(0x1b1)]=new compute['v1']['NetworksClient'](_0x556e7f);const _0x57bfd0={};return _0x57bfd0[_0xebc394(0x229)]=_0x52eca2,this['resourcemanagerClient']=new ProjectsClient(_0x57bfd0),this[_0xebc394(0x209)]=google[_0xebc394(0x109)]('v1'),this;}async[a3_0x112e1c(0x1d2)](_0x4c9b24,_0x462299){const _0x4bbd3f=a3_0x112e1c,_0x423407={'pEshe':function(_0x2c6cf6,_0x717de4){return _0x2c6cf6(_0x717de4);},'OXTIo':_0x4bbd3f(0x23e),'dzwse':function(_0x330b1c){return _0x330b1c();},'rShHz':'gcp_credentials.json'},_0x39566b=await _0x423407[_0x4bbd3f(0x1ef)](_0x4c9b24,_0x423407[_0x4bbd3f(0x1c9)]);let _0x357173=await fs[_0x4bbd3f(0x276)](_0x39566b);_0x357173=_0x357173[_0x4bbd3f(0x237)]();const _0x99bd42=_0x423407[_0x4bbd3f(0x140)](getDirForConfig),_0x511fec=path['join'](_0x99bd42,_0x423407[_0x4bbd3f(0x284)]);fs[_0x4bbd3f(0x1e5)](_0x511fec,_0x357173),this[_0x4bbd3f(0x175)]=_0x511fec;const _0x423be0={};return _0x423be0['keyFile']=_0x511fec,_0x462299[_0x4bbd3f(0x11c)][GCP]=_0x423be0,_0x357173=JSON['parse'](_0x357173),this['projectId']=_0x357173['project_id'],_0x462299;}async['setCachedCredsInRegistry'](_0x562ed1){const _0x2fa09a=a3_0x112e1c;this[_0x2fa09a(0x175)]=_0x562ed1[this[_0x2fa09a(0x279)]]['keyFile'];let _0x577ca2=await fs['readFileAsync'](this['credentialsPath']);_0x577ca2=JSON[_0x2fa09a(0x128)](_0x577ca2),this[_0x2fa09a(0x1de)]=_0x577ca2[_0x2fa09a(0x129)];}['getGridHostname'](_0x5e7be2){const _0x57ad45=a3_0x112e1c;return _0x5e7be2[_0x57ad45(0x28a)]['loadBalancer'][_0x57ad45(0x11a)][0x0]['ip'];}async['isBrowserstackCluster'](){const _0x58e3f5=a3_0x112e1c,_0x2dbcff={};_0x2dbcff[_0x58e3f5(0x145)]=function(_0x208f21,_0x500e56){return _0x208f21-_0x500e56;},_0x2dbcff['ZKtpT']=_0x58e3f5(0x1ed),_0x2dbcff[_0x58e3f5(0x242)]=_0x58e3f5(0x1ff),_0x2dbcff[_0x58e3f5(0x12c)]=function(_0x5c4a56,_0xd95cce){return _0x5c4a56===_0xd95cce;},_0x2dbcff['jNBUh']='cDuWc',_0x2dbcff[_0x58e3f5(0x1a3)]=function(_0x5e0118,_0x43b0a5){return _0x5e0118===_0x43b0a5;},_0x2dbcff['ohuNR']=_0x58e3f5(0x1c6),_0x2dbcff[_0x58e3f5(0x282)]=_0x58e3f5(0x222),_0x2dbcff['CUZhu']=_0x58e3f5(0x17a),_0x2dbcff['sLDyh']=function(_0x3d9873,_0x38a8b4){return _0x3d9873!==_0x38a8b4;},_0x2dbcff['QWNWd']=_0x58e3f5(0x228);const _0x30c655=_0x2dbcff;try{if(_0x30c655[_0x58e3f5(0x12c)](_0x30c655[_0x58e3f5(0x12e)],_0x30c655[_0x58e3f5(0x12e)])){const _0x2faac1=await this['getClusterInfo']();if(_0x2faac1[0x0]?.['resourceLabels']?.[_0x58e3f5(0x219)]){if(_0x30c655[_0x58e3f5(0x1a3)](_0x30c655[_0x58e3f5(0x1fe)],_0x30c655[_0x58e3f5(0x282)]))_0x4eee66[_0x58e3f5(0x15c)]=_0x2f6d1b[_0x30c655[_0x58e3f5(0x145)](_0x2e85a2,0x1)],this[_0x58e3f5(0x1c1)]();else{const _0x19281=_0x2faac1[0x0]?.[_0x58e3f5(0x132)]?.[_0x58e3f5(0x219)];return _0x19281&&_0x30c655[_0x58e3f5(0x12c)](_0x19281[_0x58e3f5(0x1fc)](),_0x30c655[_0x58e3f5(0x16c)]);}}}else{const _0x3e20b5=_0x244c7a['permissions'][_0x58e3f5(0x1c4)](_0x48158a);_0x569d21+='\x0a\x09'+_0x10fd62+'\x20:\x20'+(_0x3e20b5?_0x30c655[_0x58e3f5(0x289)]:_0x30c655[_0x58e3f5(0x242)]),!_0x3e20b5&&(_0x1b2de8[_0x58e3f5(0x28a)]=![]);}}catch(_0x52a936){if(_0x30c655[_0x58e3f5(0x278)](_0x30c655[_0x58e3f5(0x23d)],_0x30c655[_0x58e3f5(0x23d)]))_0x2648f6['status']=![];else return![];}return![];}async[a3_0x112e1c(0x125)](){const _0x32fdb9=a3_0x112e1c,_0x27496a={'bRdyv':'default','EuGlG':function(_0x2b6b06,_0x4fedb9){return _0x2b6b06===_0x4fedb9;},'wkWRf':function(_0x49225e,_0x437835){return _0x49225e===_0x437835;},'VNZbR':'templates','YTYoS':_0x32fdb9(0x1c3),'iTuWR':_0x32fdb9(0x1e4),'mEQoJ':_0x32fdb9(0x102),'BTfni':function(_0x5a85a8,_0xcdd32c){return _0x5a85a8!==_0xcdd32c;},'pMHSV':'suNJF','xKRPJ':_0x32fdb9(0x292),'WFkmj':function(_0x1d04f5,_0x1070ef){return _0x1d04f5===_0x1070ef;},'ActDY':_0x32fdb9(0x100),'CarLn':'LcaEV','tagkK':_0x32fdb9(0x1f2),'QqWIG':function(_0x21c0a2,_0x4e2e3d){return _0x21c0a2===_0x4e2e3d;},'YrHEs':_0x32fdb9(0x1bf),'XUtBb':_0x32fdb9(0x288),'cPwuC':function(_0xd53b7d,_0x1c6eb5){return _0xd53b7d>_0x1c6eb5;},'JZMJB':function(_0x80a516,_0x44c438){return _0x80a516===_0x44c438;},'lUTlf':_0x32fdb9(0x131),'SRLgV':'sXUeL','Xtgpc':function(_0x3a6a91,_0x15f978){return _0x3a6a91<_0x15f978;},'VvWmj':function(_0x1301ad,_0xcebe17){return _0x1301ad===_0xcebe17;},'KefXY':_0x32fdb9(0x1e9),'YyJBB':_0x32fdb9(0x1ad),'cCOxF':function(_0x3eaff6,_0x589b72){return _0x3eaff6+_0x589b72;},'hVgiC':function(_0x51a3fe,_0x170cb7){return _0x51a3fe(_0x170cb7);},'PdFGD':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','VCiFu':function(_0x53189c,_0xf23be6){return _0x53189c<=_0xf23be6;},'bTapu':function(_0x6da185,_0x5aaf97){return _0x6da185===_0x5aaf97;},'CKLaF':'WTtLw','RcBna':_0x32fdb9(0x141),'hnhzr':function(_0x48b4bf){return _0x48b4bf();},'XMsqs':function(_0x29b996,_0x1dc0e2){return _0x29b996-_0x1dc0e2;},'hElkd':function(_0xe4e334,_0x75854d){return _0xe4e334!==_0x75854d;},'SRrrw':_0x32fdb9(0x273),'Zywat':'wRmcM','ftreu':function(_0x235971,_0x396850){return _0x235971-_0x396850;}};let _0x84f99a=await fs[_0x32fdb9(0x276)](path['join'](__dirname,'..',_0x27496a[_0x32fdb9(0x241)],_0x27496a[_0x32fdb9(0x22b)],_0x27496a[_0x32fdb9(0x182)]),_0x27496a[_0x32fdb9(0x117)]);_0x84f99a=JSON[_0x32fdb9(0x128)](_0x84f99a);let _0x477ae8=[global_registry['clusterRegion']];_0x27496a['BTfni'](_0x84f99a[global_registry['clusterRegion']],undefined)&&(_0x27496a[_0x32fdb9(0x274)](_0x27496a[_0x32fdb9(0x226)],_0x27496a[_0x32fdb9(0x258)])?_0x40f56f=[_0x27496a['bRdyv']]:_0x477ae8=_0x477ae8[_0x32fdb9(0x104)](_0x84f99a[global_registry[_0x32fdb9(0x15c)]]));const _0x510be7=[];for await(const _0x55c34e of _0x477ae8){if(_0x27496a[_0x32fdb9(0x15d)](_0x27496a[_0x32fdb9(0x290)],_0x27496a[_0x32fdb9(0x290)])){const _0x58f2bc={};_0x58f2bc[_0x32fdb9(0x17d)]=_0x32fdb9(0x1b5)+this[_0x32fdb9(0x1de)]+'/locations/'+_0x55c34e;const _0x130213=_0x58f2bc,_0x5716cd=await this[_0x32fdb9(0x244)][_0x32fdb9(0x183)](_0x130213);for(const _0x1f7333 of _0x5716cd[0x0][_0x32fdb9(0x1c0)]){if(_0x27496a['WFkmj'](_0x27496a[_0x32fdb9(0x107)],_0x27496a[_0x32fdb9(0x107)]))_0x27496a[_0x32fdb9(0x1cd)](_0x1f7333['name'],this[_0x32fdb9(0x230)])&&(_0x27496a[_0x32fdb9(0x1f1)](_0x27496a[_0x32fdb9(0x233)],_0x27496a['tagkK'])?_0x5b8662[_0x32fdb9(0x1c2)][_0x32fdb9(0x272)](_0x21f98e):_0x510be7['push'](_0x55c34e));else return!![];}}else for(const _0x109fb5 of _0x5d8b9a['data'][_0x32fdb9(0x221)]){if(_0x27496a[_0x32fdb9(0x274)](_0x109fb5?.[_0x32fdb9(0x22c)],_0x32fdb9(0x1b5)+this['projectId']+'/serviceAccounts/'+this['serviceAccountName']+'@'+this['projectId']+_0x32fdb9(0x1bc)))return!![];}}const _0xeda9dd=_0x510be7['length'];if(_0x27496a[_0x32fdb9(0x274)](_0xeda9dd,0x1)){if(_0x27496a[_0x32fdb9(0x1d7)](_0x27496a[_0x32fdb9(0x286)],_0x27496a[_0x32fdb9(0x286)])){if(_0x27496a['BTfni'](global_registry['clusterRegion'],_0x510be7[0x0])){if(_0x27496a['BTfni'](_0x27496a['XUtBb'],_0x27496a[_0x32fdb9(0x29b)]))return[!![],_0x1dfc22];else global_registry[_0x32fdb9(0x15c)]=_0x510be7[0x0],this['updateClusterRegion']();}return!![];}else return _0x75ba4d['status'][_0x32fdb9(0x166)][_0x32fdb9(0x11a)][0x0]['ip'];}else{if(_0x27496a[_0x32fdb9(0x211)](_0xeda9dd,0x1)){if(_0x27496a['JZMJB'](_0x27496a[_0x32fdb9(0x249)],_0x27496a[_0x32fdb9(0x1cc)])){const _0x3a2a41='https://www.googleapis.com/compute/v1/projects/'+this[_0x32fdb9(0x1de)]+'/regions/'+_0x3a6a07[_0x32fdb9(0x15c)]+_0x32fdb9(0x204)+_0x2e7be5[0x0];if(_0x27496a[_0x32fdb9(0x1cd)](_0x3a2a41,_0xe45eab))return[!![],_0x317f7d];}else{console[_0x32fdb9(0x16f)](_0x32fdb9(0x260)+this[_0x32fdb9(0x230)]+'\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:');for(let _0x3c546d=0x0;_0x27496a[_0x32fdb9(0x21d)](_0x3c546d,_0xeda9dd);_0x3c546d+=0x1){_0x27496a[_0x32fdb9(0x21a)](_0x27496a[_0x32fdb9(0x191)],_0x27496a['YyJBB'])?this[_0x32fdb9(0x243)](this[_0x32fdb9(0x179)]):console['log']('['+_0x27496a[_0x32fdb9(0x240)](_0x3c546d,0x1)+']\x20'+_0x510be7[_0x3c546d]);}const _0x19a015=await _0x27496a[_0x32fdb9(0x10c)](inputConfirmation,_0x27496a[_0x32fdb9(0x171)]),_0x3e0742=_0x27496a['hVgiC'](Number,_0x19a015);(_0x27496a[_0x32fdb9(0x10c)](isNaN,_0x3e0742)||_0x27496a[_0x32fdb9(0x176)](_0x3e0742,0x0)||_0x27496a[_0x32fdb9(0x211)](_0x3e0742,_0xeda9dd))&&(_0x27496a[_0x32fdb9(0x1e8)](_0x27496a[_0x32fdb9(0x253)],_0x27496a['CKLaF'])?(console[_0x32fdb9(0x130)](_0x27496a['RcBna']),process['exit'](0x1)):(_0x37cfa7['error']('error\x20:\x20'+_0x26ff0a+'\x20:\x20'+_0x18543b[_0x32fdb9(0x1df)]),_0x9641b2[_0x32fdb9(0xff)]=_0x32fdb9(0x161)+_0x40fc0f,_0x289f50[_0x32fdb9(0x130)]=_0x47f46b));_0x27496a[_0x32fdb9(0x148)](closeInput),logger[_0x32fdb9(0x1ae)](_0x32fdb9(0x16e)+_0x510be7[_0x27496a[_0x32fdb9(0x203)](_0x3e0742,0x1)]);if(_0x27496a[_0x32fdb9(0x115)](global_registry['clusterRegion'],_0x510be7[_0x27496a[_0x32fdb9(0x203)](_0x3e0742,0x1)])){if(_0x27496a['hElkd'](_0x27496a[_0x32fdb9(0x25e)],_0x27496a[_0x32fdb9(0x239)]))global_registry['clusterRegion']=_0x510be7[_0x27496a[_0x32fdb9(0x220)](_0x3e0742,0x1)],this['updateClusterRegion']();else return![];}return!![];}}}return![];}async[a3_0x112e1c(0x1e2)](){const _0x3c94e0=a3_0x112e1c,_0x49c25a=await this[_0x3c94e0(0x244)]['getCluster']({'name':'projects/'+this[_0x3c94e0(0x1de)]+'/locations/'+global_registry[_0x3c94e0(0x15c)]+_0x3c94e0(0x1f6)+this[_0x3c94e0(0x230)]});return _0x49c25a;}async[a3_0x112e1c(0x1e1)](){const _0x3a0ad9=a3_0x112e1c,_0x55369e={};_0x55369e['IDUco']=_0x3a0ad9(0x1a9),_0x55369e[_0x3a0ad9(0x25c)]='templates',_0x55369e[_0x3a0ad9(0x147)]=_0x3a0ad9(0x1c3),_0x55369e['RYYQf']='KubeConfigTemplate.yaml';const _0x2cc1a2=_0x55369e;cp[_0x3a0ad9(0x157)](_0x2cc1a2[_0x3a0ad9(0x1a0)]),cp[_0x3a0ad9(0x265)](_0x3a0ad9(0x17f)+this['credentialsPath']);const _0x31221b=await this[_0x3a0ad9(0x1e2)](),_0x2ddd1f=_0x3a0ad9(0x255)+this[_0x3a0ad9(0x1de)]+'_'+global_registry[_0x3a0ad9(0x15c)]+'_'+this[_0x3a0ad9(0x230)];let _0x383f06=await fs[_0x3a0ad9(0x276)](path[_0x3a0ad9(0x110)](__dirname,'..',_0x2cc1a2['uhcRl'],_0x2cc1a2[_0x3a0ad9(0x147)],_0x2cc1a2[_0x3a0ad9(0x13b)]));return _0x383f06=_0x383f06['toString'](),_0x383f06=_0x383f06['replace'](/<CLUSTER_NAME>/g,_0x2ddd1f),_0x383f06=_0x383f06[_0x3a0ad9(0x217)](/<CLUSTER_URL>/g,_0x3a0ad9(0x205)+_0x31221b[0x0][_0x3a0ad9(0x162)]),_0x383f06=_0x383f06['replace'](/<CERTIFICATE_DATA>/g,_0x31221b[0x0][_0x3a0ad9(0x144)][_0x3a0ad9(0x1f8)]),_0x383f06;}async[a3_0x112e1c(0x245)](){const _0x2d734b=a3_0x112e1c,_0x4fb327={};_0x4fb327[_0x2d734b(0x151)]=function(_0x3cfcd2,_0x168514){return _0x3cfcd2===_0x168514;},_0x4fb327[_0x2d734b(0x263)]=_0x2d734b(0x17a),_0x4fb327[_0x2d734b(0x299)]=_0x2d734b(0x1ce),_0x4fb327[_0x2d734b(0x196)]=_0x2d734b(0x24e),_0x4fb327[_0x2d734b(0x14a)]=function(_0x1edd5b,_0x144c4c){return _0x1edd5b===_0x144c4c;},_0x4fb327[_0x2d734b(0x122)]='bodaJ',_0x4fb327[_0x2d734b(0x1d8)]=function(_0x2319c1,_0x493518){return _0x2319c1===_0x493518;},_0x4fb327[_0x2d734b(0x1ac)]=_0x2d734b(0x174),_0x4fb327[_0x2d734b(0x1a5)]=_0x2d734b(0x22a),_0x4fb327[_0x2d734b(0x1a7)]=function(_0x500f70,_0x13f468){return _0x500f70===_0x13f468;},_0x4fb327[_0x2d734b(0x158)]=function(_0x4ba28a,_0x206c65){return _0x4ba28a!==_0x206c65;},_0x4fb327[_0x2d734b(0x1bb)]=_0x2d734b(0x186),_0x4fb327[_0x2d734b(0x152)]=_0x2d734b(0x25d);const _0x3180ec=_0x4fb327,_0x5a0061={};_0x5a0061[_0x2d734b(0x135)]=[_0x3180ec['yPdJt']],_0x5a0061['keyFile']=this[_0x2d734b(0x175)];const _0x1615b5=await google[_0x2d734b(0x123)][_0x2d734b(0x165)](_0x5a0061),_0x1f1d61=await this['iamClient'][_0x2d734b(0x1a1)][_0x2d734b(0x269)][_0x2d734b(0x22d)]({'name':_0x2d734b(0x1b5)+this[_0x2d734b(0x1de)],'auth':_0x1615b5});if(_0x1f1d61?.[_0x2d734b(0xff)]?.[_0x2d734b(0x221)]){if(_0x3180ec[_0x2d734b(0x14a)](_0x3180ec['XlJlu'],_0x3180ec[_0x2d734b(0x122)]))for(const _0x14c54b of _0x1f1d61[_0x2d734b(0xff)]['accounts']){if(_0x3180ec['kvBmn'](_0x3180ec[_0x2d734b(0x1ac)],_0x3180ec[_0x2d734b(0x1a5)])){const _0x1210bc=_0x43218e[0x0]?.['resourceLabels']?.[_0x2d734b(0x219)];return _0x1210bc&&_0x3180ec[_0x2d734b(0x151)](_0x1210bc['toLowerCase'](),_0x3180ec[_0x2d734b(0x263)]);}else{if(_0x3180ec[_0x2d734b(0x1a7)](_0x14c54b?.[_0x2d734b(0x22c)],_0x2d734b(0x1b5)+this['projectId']+_0x2d734b(0x24b)+this['serviceAccountName']+'@'+this[_0x2d734b(0x1de)]+'.iam.gserviceaccount.com')){if(_0x3180ec['usVvd'](_0x3180ec[_0x2d734b(0x1bb)],_0x3180ec[_0x2d734b(0x152)]))return!![];else{_0x378323['info'](_0x3180ec[_0x2d734b(0x299)]);throw _0x58b9c8;}}}}else _0x214333['warn'](_0x590222);}return![];}async[a3_0x112e1c(0x246)](){const _0x38836f=a3_0x112e1c,_0x28d214={};_0x28d214['wZiiB']='default',_0x28d214[_0x38836f(0x254)]=function(_0x349971,_0x398429){return _0x349971===_0x398429;},_0x28d214[_0x38836f(0x188)]=_0x38836f(0x248),_0x28d214['FgXJy']='Service\x20account\x20already\x20exists,\x20skipping',_0x28d214[_0x38836f(0x19e)]=_0x38836f(0x1ec),_0x28d214[_0x38836f(0x247)]=_0x38836f(0x24e),_0x28d214[_0x38836f(0x1f3)]=_0x38836f(0x10a),_0x28d214[_0x38836f(0x14b)]=_0x38836f(0x16d),_0x28d214[_0x38836f(0x23f)]=_0x38836f(0x261),_0x28d214['zyJiR']='storage.buckets.delete',_0x28d214[_0x38836f(0x19b)]='storage.buckets.deleteTagBinding',_0x28d214[_0x38836f(0x18e)]='storage.buckets.get',_0x28d214['oCpNd']=_0x38836f(0x27f),_0x28d214['TIfSM']='storage.buckets.getObjectInsights',_0x28d214[_0x38836f(0x14d)]='storage.buckets.list',_0x28d214[_0x38836f(0x23c)]=_0x38836f(0x160),_0x28d214[_0x38836f(0x190)]=_0x38836f(0x113),_0x28d214[_0x38836f(0x137)]='storage.buckets.setIamPolicy',_0x28d214[_0x38836f(0x156)]='storage.buckets.update',_0x28d214[_0x38836f(0x1f9)]=_0x38836f(0x27a),_0x28d214[_0x38836f(0x153)]=_0x38836f(0x28c),_0x28d214[_0x38836f(0x154)]=_0x38836f(0x224),_0x28d214[_0x38836f(0x1f7)]='storage.multipartUploads.listParts',_0x28d214[_0x38836f(0x19f)]='storage.objects.create',_0x28d214[_0x38836f(0x15f)]='storage.objects.delete',_0x28d214[_0x38836f(0x101)]=_0x38836f(0x23b),_0x28d214['fZJqf']=_0x38836f(0x1b2),_0x28d214[_0x38836f(0x18f)]=_0x38836f(0x214),_0x28d214[_0x38836f(0x1af)]='storage.objects.setIamPolicy',_0x28d214[_0x38836f(0x1fa)]=_0x38836f(0x1a6),_0x28d214[_0x38836f(0x20f)]=_0x38836f(0x266),_0x28d214[_0x38836f(0x1f4)]=_0x38836f(0x111);const _0x2cf958=_0x28d214,_0x55d21e=await this[_0x38836f(0x245)]();if(_0x55d21e){if(_0x2cf958[_0x38836f(0x254)](_0x2cf958['vBnxn'],_0x2cf958[_0x38836f(0x188)])){logger[_0x38836f(0x1ae)](_0x2cf958[_0x38836f(0x142)]);return;}else _0x49ae3d=_0x2cf958[_0x38836f(0x155)];}logger['info'](_0x2cf958[_0x38836f(0x19e)]);const _0x1654e4={};_0x1654e4[_0x38836f(0x135)]=[_0x2cf958[_0x38836f(0x247)]],_0x1654e4[_0x38836f(0x229)]=this[_0x38836f(0x175)];const _0x700890=await google[_0x38836f(0x123)][_0x38836f(0x165)](_0x1654e4),_0x426e20={};_0x426e20[_0x38836f(0x1d0)]=[_0x2cf958[_0x38836f(0x1f3)],_0x2cf958[_0x38836f(0x14b)],_0x2cf958[_0x38836f(0x23f)],_0x2cf958[_0x38836f(0x187)],_0x2cf958[_0x38836f(0x19b)],_0x2cf958[_0x38836f(0x18e)],_0x2cf958[_0x38836f(0x169)],_0x2cf958[_0x38836f(0x1ab)],_0x2cf958['FECyP'],_0x2cf958[_0x38836f(0x23c)],_0x2cf958['DeyAt'],_0x2cf958[_0x38836f(0x137)],_0x2cf958[_0x38836f(0x156)],_0x2cf958['naahF'],_0x2cf958[_0x38836f(0x153)],_0x2cf958['KoBZk'],_0x2cf958[_0x38836f(0x1f7)],_0x2cf958[_0x38836f(0x19f)],_0x2cf958[_0x38836f(0x15f)],_0x2cf958[_0x38836f(0x101)],_0x2cf958[_0x38836f(0x293)],_0x2cf958['msiYP'],_0x2cf958['upZhf'],_0x2cf958[_0x38836f(0x1fa)]],_0x426e20[_0x38836f(0x26e)]=_0x2cf958[_0x38836f(0x20f)],await this[_0x38836f(0x209)]['organizations']['roles'][_0x38836f(0x103)]({'parent':_0x38836f(0x1b5)+this[_0x38836f(0x1de)],'requestBody':{'role':_0x426e20,'roleId':this['customRoleName']},'auth':_0x700890});const _0x4f9a0c={};_0x4f9a0c[_0x38836f(0x22c)]=_0x38836f(0x1b5)+this[_0x38836f(0x1de)],_0x4f9a0c[_0x38836f(0x120)]={},_0x4f9a0c[_0x38836f(0x123)]=_0x700890,_0x4f9a0c[_0x38836f(0x120)]['accountId']=this[_0x38836f(0x287)];const _0x2e56c6=_0x4f9a0c;await this[_0x38836f(0x209)][_0x38836f(0x1a1)][_0x38836f(0x269)]['create'](_0x2e56c6);let _0x53b7b5=await this[_0x38836f(0x216)][_0x38836f(0x1dd)]({'resource':'projects/'+this[_0x38836f(0x1de)]});_0x53b7b5=_0x53b7b5[0x0]['bindings'];const _0x22f8b4={};_0x22f8b4[_0x38836f(0x185)]='projects/'+this[_0x38836f(0x1de)]+'/roles/'+this[_0x38836f(0x10d)],_0x22f8b4[_0x38836f(0x1cf)]=[_0x38836f(0x20d)+this[_0x38836f(0x287)]+'@'+this[_0x38836f(0x1de)]+'.iam.gserviceaccount.com'],_0x53b7b5['push'](_0x22f8b4);const _0x8c725e={};_0x8c725e[_0x38836f(0x1b8)]=_0x53b7b5,await this[_0x38836f(0x216)]['setIamPolicy']({'resource':'projects/'+this[_0x38836f(0x1de)],'policy':_0x8c725e}),logger[_0x38836f(0x1ae)](_0x2cf958[_0x38836f(0x1f4)]);}async['setupNewCluster'](_0x3e64cd=a3_0x112e1c(0x250),_0x2974d5=[a3_0x112e1c(0x250)]){const _0x5ced75=a3_0x112e1c,_0x11ef0d={};_0x11ef0d[_0x5ced75(0x201)]=_0x5ced75(0x17e),_0x11ef0d[_0x5ced75(0x262)]=_0x5ced75(0x24f),_0x11ef0d[_0x5ced75(0x200)]='Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x11ef0d[_0x5ced75(0x1f5)]=function(_0x3d705d,_0x421780){return _0x3d705d!==_0x421780;},_0x11ef0d[_0x5ced75(0x24d)]=_0x5ced75(0x138),_0x11ef0d['iveXe']=_0x5ced75(0x238),_0x11ef0d[_0x5ced75(0x19a)]=_0x5ced75(0x250),_0x11ef0d[_0x5ced75(0x20b)]=function(_0x9a9cac,_0x390cfb){return _0x9a9cac===_0x390cfb;},_0x11ef0d['xVZVl']=function(_0x2d4b30,_0x3685e5){return _0x2d4b30===_0x3685e5;},_0x11ef0d[_0x5ced75(0x26b)]=_0x5ced75(0x215),_0x11ef0d[_0x5ced75(0x170)]=_0x5ced75(0x13a);const _0x36d72a=_0x11ef0d,_0x49e53a={};_0x49e53a[_0x5ced75(0x270)]=WS_EVENTS[_0x5ced75(0x1b6)],_0x49e53a[_0x5ced75(0x20c)]=_0x36d72a['CmEKX'],this[_0x5ced75(0x1c8)][_0x5ced75(0x18c)](this[_0x5ced75(0x179)],_0x49e53a),logger[_0x5ced75(0x1ae)](_0x36d72a[_0x5ced75(0x200)]);if(!_0x3e64cd){if(_0x36d72a[_0x5ced75(0x1f5)](_0x36d72a[_0x5ced75(0x24d)],_0x36d72a['iveXe']))_0x3e64cd=_0x36d72a['jYPgs'];else return!![];}if(!_0x2974d5||_0x36d72a['cCIIg'](_0x2974d5[_0x5ced75(0x14f)],0x0)){if(_0x36d72a[_0x5ced75(0x1da)](_0x36d72a[_0x5ced75(0x26b)],_0x36d72a[_0x5ced75(0x170)])){_0x40839c[_0x5ced75(0x1ae)](_0x36d72a[_0x5ced75(0x201)]);return;}else _0x2974d5=[_0x36d72a[_0x5ced75(0x19a)]];}return await this[_0x5ced75(0x246)](),await this[_0x5ced75(0x251)](_0x3e64cd,_0x2974d5),await this[_0x5ced75(0x1a4)](),[_0x3e64cd,_0x2974d5];}async[a3_0x112e1c(0x251)](_0x25be18=a3_0x112e1c(0x250),_0x2b8938=[a3_0x112e1c(0x250)]){const _0x4c2bba=a3_0x112e1c,_0x3b4b64={};_0x3b4b64[_0x4c2bba(0x192)]=function(_0x12c19e,_0x4ac940){return _0x12c19e!==_0x4ac940;},_0x3b4b64[_0x4c2bba(0x199)]=function(_0x494e0c,_0x147433){return _0x494e0c!==_0x147433;},_0x3b4b64[_0x4c2bba(0x25b)]=_0x4c2bba(0x17b),_0x3b4b64[_0x4c2bba(0x1c5)]=_0x4c2bba(0x283),_0x3b4b64[_0x4c2bba(0x1db)]=_0x4c2bba(0x297),_0x3b4b64[_0x4c2bba(0x133)]=_0x4c2bba(0x1c3),_0x3b4b64[_0x4c2bba(0x28f)]=_0x4c2bba(0x15b),_0x3b4b64['dCnAX']=_0x4c2bba(0x102),_0x3b4b64['ulpqF']=_0x4c2bba(0x1e4),_0x3b4b64[_0x4c2bba(0x1c7)]=function(_0x1a54ad,_0x58086e){return _0x1a54ad===_0x58086e;},_0x3b4b64[_0x4c2bba(0x1e7)]='KoLCJ',_0x3b4b64[_0x4c2bba(0x1a2)]='REGULAR',_0x3b4b64[_0x4c2bba(0x1be)]=function(_0x58d4a1,_0x4656d5){return _0x58d4a1*_0x4656d5;},_0x3b4b64[_0x4c2bba(0x194)]=function(_0x8dd8d1,_0x13abdd){return _0x8dd8d1*_0x13abdd;},_0x3b4b64[_0x4c2bba(0x22e)]=_0x4c2bba(0x14e),_0x3b4b64['AuXIw']=_0x4c2bba(0x294),_0x3b4b64[_0x4c2bba(0x189)]=_0x4c2bba(0x25a),_0x3b4b64['rnxKc']='Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20',_0x3b4b64['WiUjV']=function(_0x392ce1,_0x570ff8){return _0x392ce1!==_0x570ff8;},_0x3b4b64[_0x4c2bba(0x225)]='KvIdS',_0x3b4b64[_0x4c2bba(0x1d9)]=_0x4c2bba(0x124);const _0x5b8053=_0x3b4b64;try{if(_0x5b8053[_0x4c2bba(0x199)](_0x5b8053[_0x4c2bba(0x25b)],_0x5b8053[_0x4c2bba(0x25b)]))return _0x5b8053[_0x4c2bba(0x192)](_0x4b084f[_0x4c2bba(0x15c)],_0x58aaca[0x0])&&(_0x33635e[_0x4c2bba(0x15c)]=_0x1fcbc7[0x0],this['updateClusterRegion']()),!![];else{logger['info'](_0x5b8053[_0x4c2bba(0x1c5)]);let _0x77b234=await fs[_0x4c2bba(0x276)](path[_0x4c2bba(0x110)](__dirname,'..',_0x5b8053['muBMo'],_0x5b8053['THEQu'],_0x5b8053['PcRIS']),_0x5b8053[_0x4c2bba(0x16a)]);_0x77b234=JSON['parse'](_0x77b234);let _0x20e168=await fs[_0x4c2bba(0x276)](path['join'](__dirname,'..',_0x5b8053[_0x4c2bba(0x1db)],_0x5b8053[_0x4c2bba(0x133)],_0x5b8053['ulpqF']),_0x5b8053[_0x4c2bba(0x16a)]);_0x20e168=JSON[_0x4c2bba(0x128)](_0x20e168);const _0x46e68c=global_registry[_0x4c2bba(0x271)];_0x77b234[_0x4c2bba(0x22c)]=this['clusterName'],_0x77b234[_0x4c2bba(0x105)][0x0]['config'][_0x4c2bba(0x13d)]=global_registry[_0x4c2bba(0x21f)],_0x77b234[_0x4c2bba(0x105)][0x1][_0x4c2bba(0x11e)][_0x4c2bba(0x13d)]=global_registry['instanceType'],_0x77b234[_0x4c2bba(0x105)][0x0]['config'][_0x4c2bba(0x168)]=this[_0x4c2bba(0x287)]+'@'+this[_0x4c2bba(0x1de)]+_0x4c2bba(0x1bc),_0x77b234[_0x4c2bba(0x105)][0x1][_0x4c2bba(0x11e)][_0x4c2bba(0x168)]=this['serviceAccountName']+'@'+this[_0x4c2bba(0x1de)]+'.iam.gserviceaccount.com',_0x77b234['nodePools'][0x0][_0x4c2bba(0x27e)]['minNodeCount']=global_registry['minNodes'],_0x77b234['nodePools'][0x1][_0x4c2bba(0x27e)][_0x4c2bba(0x167)]=0x0,_0x77b234['nodePools'][0x0][_0x4c2bba(0x1aa)][_0x4c2bba(0x26f)]=_0x46e68c,_0x77b234[_0x4c2bba(0x105)][0x1][_0x4c2bba(0x1aa)]['autoUpgrade']=_0x46e68c,_0x77b234['nodePools'][0x0][_0x4c2bba(0x27e)][_0x4c2bba(0x27b)]=global_registry[_0x4c2bba(0x164)],_0x77b234[_0x4c2bba(0x105)][0x1][_0x4c2bba(0x27e)][_0x4c2bba(0x27b)]=global_registry[_0x4c2bba(0x164)],_0x77b234['location']=global_registry[_0x4c2bba(0x15c)],_0x77b234[_0x4c2bba(0x18a)]=[_0x20e168[global_registry[_0x4c2bba(0x15c)]][0x0]],_0x77b234['network']=_0x4c2bba(0x1b5)+this[_0x4c2bba(0x1de)]+_0x4c2bba(0x1e0)+_0x25be18,_0x77b234[_0x4c2bba(0x252)]=_0x4c2bba(0x1b5)+this[_0x4c2bba(0x1de)]+'/regions/'+global_registry[_0x4c2bba(0x15c)]+_0x4c2bba(0x204)+_0x2b8938[0x0];if(_0x46e68c){if(_0x5b8053[_0x4c2bba(0x1c7)](_0x5b8053[_0x4c2bba(0x1e7)],_0x5b8053[_0x4c2bba(0x1e7)])){const _0x42fb79={};_0x42fb79[_0x4c2bba(0x29a)]=_0x5b8053[_0x4c2bba(0x1a2)],_0x77b234[_0x4c2bba(0x11b)]=_0x42fb79;}else return![];}const _0x26ca44=await this[_0x4c2bba(0x244)][_0x4c2bba(0x251)]({'cluster':_0x77b234,'parent':_0x4c2bba(0x1b5)+this[_0x4c2bba(0x1de)]+_0x4c2bba(0x285)+global_registry[_0x4c2bba(0x15c)]});await this['webSocketUtils'][_0x4c2bba(0x197)](_0x5b8053['ZpZBz'](_0x5b8053[_0x4c2bba(0x194)](0x7,0x3c),0x3e8));}}catch(_0x1ea596){if(_0x5b8053[_0x4c2bba(0x192)](_0x5b8053['Qkhde'],_0x5b8053['AuXIw'])){const _0x3705a0=await this[_0x4c2bba(0x125)]();if(_0x3705a0){if(_0x5b8053[_0x4c2bba(0x1c7)](_0x5b8053[_0x4c2bba(0x189)],_0x5b8053[_0x4c2bba(0x189)]))logger[_0x4c2bba(0x1ae)](_0x5b8053[_0x4c2bba(0x114)],_0x1ea596['stack']),await this[_0x4c2bba(0x126)]();else return _0x1343cd[_0x4c2bba(0x130)](_0x4c2bba(0x16b)+_0x250b01+_0x4c2bba(0x134)+_0x35a859),[![],[]];}else _0x5b8053[_0x4c2bba(0x277)](_0x5b8053[_0x4c2bba(0x225)],_0x5b8053[_0x4c2bba(0x225)])?_0x2988bc[_0x4c2bba(0x130)]=_0x3d4cc1:logger['info'](_0x5b8053[_0x4c2bba(0x1d9)]);throw _0x1ea596;}else _0x225374[_0x4c2bba(0x15c)]=_0x52f1b9[0x0],this[_0x4c2bba(0x1c1)]();}}async[a3_0x112e1c(0x23a)](_0xbfe32f,_0x55b256,_0x94c0f3,_0x4d50fa,_0x4192d5){}async[a3_0x112e1c(0x1a4)](){const _0x9d9473=a3_0x112e1c;cp[_0x9d9473(0x157)](_0x9d9473(0x18b)+this['clusterName']+_0x9d9473(0x12a)+global_registry[_0x9d9473(0x15c)]+_0x9d9473(0x256));}async[a3_0x112e1c(0x126)](_0x29ccba,_0x5f4e1f){const _0x514f78=a3_0x112e1c,_0x3ef8a3={'OPHhw':function(_0x54e18d,_0x467625){return _0x54e18d+_0x467625;},'llEJx':_0x514f78(0x21e),'Iqvkl':function(_0x4ed5ba,_0x3d7a5e){return _0x4ed5ba!==_0x3d7a5e;},'JbNly':_0x514f78(0x295),'tYvNw':function(_0x4d5d78,_0x2d90dc){return _0x4d5d78(_0x2d90dc);},'loEJe':function(_0x3ec7fe,_0xe48e2b){return _0x3ec7fe(_0xe48e2b);},'CZnzM':function(_0x5effbb,_0xea2a88){return _0x5effbb===_0xea2a88;},'QEQeC':_0x514f78(0x180),'SaUdC':function(_0x28dddf,_0x54f962){return _0x28dddf===_0x54f962;},'LegYt':_0x514f78(0x150),'AdLdS':_0x514f78(0x1b7),'KlrkF':_0x514f78(0x21c),'SEqPk':function(_0x2263b1,_0x246772){return _0x2263b1===_0x246772;},'qlQLT':_0x514f78(0x116),'kvZdn':_0x514f78(0x1ce)};try{if(_0x3ef8a3[_0x514f78(0x1a8)](_0x3ef8a3[_0x514f78(0x118)],_0x3ef8a3[_0x514f78(0x118)]))_0xf4967b[_0x514f78(0x16f)]('['+_0x3ef8a3[_0x514f78(0x28e)](_0xd1a3df,0x1)+']\x20'+_0x33b57b[_0x4b174f]);else{await _0x3ef8a3[_0x514f78(0x1b9)](deleteAgent,_0x29ccba),await _0x3ef8a3[_0x514f78(0x213)](deleteRoutingDeps,_0x29ccba),logger['info'](_0x514f78(0x172)+this[_0x514f78(0x230)]);const _0x514c29=await this[_0x514f78(0x244)][_0x514f78(0x126)]({'name':_0x514f78(0x1b5)+this[_0x514f78(0x1de)]+_0x514f78(0x285)+global_registry[_0x514f78(0x15c)]+_0x514f78(0x1f6)+this[_0x514f78(0x230)]});if(_0x3ef8a3['CZnzM'](_0x514c29[0x0]?.[_0x514f78(0x28a)],_0x3ef8a3['QEQeC'])||_0x3ef8a3[_0x514f78(0x268)](_0x514c29[0x0]?.['status'],_0x3ef8a3['LegYt'])){if(_0x3ef8a3[_0x514f78(0x1a8)](_0x3ef8a3[_0x514f78(0x1fd)],_0x3ef8a3[_0x514f78(0x1fd)])){const _0xaa7237={};_0xaa7237[_0x514f78(0x29a)]=_0x3ef8a3[_0x514f78(0x1d6)],_0x274873['releaseChannel']=_0xaa7237;}else return!![];}logger[_0x514f78(0x1ae)](_0x3ef8a3[_0x514f78(0x1d1)]);}}catch(_0x5ae9b3){if(_0x3ef8a3[_0x514f78(0x12d)](_0x3ef8a3[_0x514f78(0x1cb)],_0x3ef8a3[_0x514f78(0x1cb)])){logger[_0x514f78(0x1ae)](_0x3ef8a3['kvZdn']);throw _0x5ae9b3;}else _0x303ff0['debug'](_0x57f47a);}}async[a3_0x112e1c(0x1ee)](_0x2e119e){const _0x4f431a=a3_0x112e1c,_0x53be39={};_0x53be39[_0x4f431a(0x178)]=_0x4f431a(0x141),_0x53be39['LcrNA']=function(_0x3a07da,_0x2dedca){return _0x3a07da===_0x2dedca;},_0x53be39[_0x4f431a(0x12b)]=function(_0x2d7dee,_0x4e94b0){return _0x2d7dee===_0x4e94b0;},_0x53be39[_0x4f431a(0x121)]=_0x4f431a(0xfe),_0x53be39[_0x4f431a(0x1d3)]=function(_0x13fbf3,_0x38923a){return _0x13fbf3>_0x38923a;},_0x53be39[_0x4f431a(0x13c)]=function(_0x5a03a8,_0x246541){return _0x5a03a8===_0x246541;},_0x53be39[_0x4f431a(0x127)]=function(_0x35f269,_0x269d4e){return _0x35f269===_0x269d4e;},_0x53be39['OPmdm']=_0x4f431a(0x235),_0x53be39['GHVFm']=_0x4f431a(0x1eb),_0x53be39[_0x4f431a(0x177)]=function(_0x5f5765,_0x12b718){return _0x5f5765!==_0x12b718;},_0x53be39['QQdoV']='OazLp';const _0x293c33=_0x53be39;try{if(_0x293c33['Oslqh'](_0x293c33['jjLEF'],_0x293c33[_0x4f431a(0x121)])){const _0x1eee50=await this['networkClient'][_0x4f431a(0x227)]({'project':this['projectId'],'network':_0x2e119e});if(_0x293c33[_0x4f431a(0x1d3)](_0x1eee50[_0x4f431a(0x14f)],0x0)&&_0x293c33[_0x4f431a(0x13c)](_0x1eee50[0x0][_0x4f431a(0x22c)],_0x2e119e)){if(_0x293c33[_0x4f431a(0x127)](_0x293c33[_0x4f431a(0x1ca)],_0x293c33[_0x4f431a(0x20e)]))_0x2076cf[_0x4f431a(0x157)](_0x4f431a(0x18b)+this[_0x4f431a(0x230)]+_0x4f431a(0x12a)+_0x5b329c[_0x4f431a(0x15c)]+_0x4f431a(0x256));else return!![];}}else _0x2e9fa9['error'](_0x293c33['yNuzA']),_0x5055b1[_0x4f431a(0x223)](0x1);}catch(_0x11ebc5){if(_0x293c33[_0x4f431a(0x177)](_0x293c33[_0x4f431a(0x106)],_0x293c33['QQdoV'])){if(_0x293c33[_0x4f431a(0x108)](_0x407025?.['name'],_0x4f431a(0x1b5)+this[_0x4f431a(0x1de)]+_0x4f431a(0x24b)+this[_0x4f431a(0x287)]+'@'+this['projectId']+_0x4f431a(0x1bc)))return!![];}else return![];}return![];}async[a3_0x112e1c(0x10f)](_0x480e52,_0x13f9d4){const _0x22ee51=a3_0x112e1c,_0x36e6aa={};_0x36e6aa[_0x22ee51(0x146)]=function(_0x1283e7,_0x2c8581){return _0x1283e7===_0x2c8581;},_0x36e6aa[_0x22ee51(0x208)]=_0x22ee51(0x28d),_0x36e6aa['yTVGM']=function(_0x5381f7,_0x5d295a){return _0x5381f7!==_0x5d295a;},_0x36e6aa['JTmHd']=_0x22ee51(0x28b),_0x36e6aa[_0x22ee51(0x1e6)]='BVfUw',_0x36e6aa[_0x22ee51(0x19d)]=function(_0x28f202,_0x1edd2b){return _0x28f202===_0x1edd2b;},_0x36e6aa[_0x22ee51(0x218)]=function(_0x244ad3,_0x2ee73b){return _0x244ad3!==_0x2ee73b;},_0x36e6aa[_0x22ee51(0x207)]=_0x22ee51(0x139),_0x36e6aa[_0x22ee51(0x18d)]=_0x22ee51(0x24c),_0x36e6aa[_0x22ee51(0x1d4)]=function(_0x1c8643,_0xf3f46c){return _0x1c8643===_0xf3f46c;},_0x36e6aa['wBSuR']='nTylz';const _0x4fb30b=_0x36e6aa;try{if(_0x4fb30b[_0x22ee51(0x146)](_0x4fb30b['AcbIH'],_0x4fb30b['AcbIH'])){const _0x2a3db8=await this[_0x22ee51(0x1b1)][_0x22ee51(0x227)]({'project':this[_0x22ee51(0x1de)],'network':_0x13f9d4});for(const _0x5884c2 of _0x2a3db8[0x0]['subnetworks']){if(_0x4fb30b['yTVGM'](_0x4fb30b['JTmHd'],_0x4fb30b[_0x22ee51(0x1e6)])){const _0x3988a3=_0x22ee51(0x21b)+this['projectId']+_0x22ee51(0x13f)+global_registry[_0x22ee51(0x15c)]+_0x22ee51(0x204)+_0x480e52[0x0];if(_0x4fb30b[_0x22ee51(0x19d)](_0x3988a3,_0x5884c2)){if(_0x4fb30b[_0x22ee51(0x218)](_0x4fb30b[_0x22ee51(0x207)],_0x4fb30b[_0x22ee51(0x18d)]))return[!![],_0x480e52];else _0xbd0a13[_0x22ee51(0x272)](_0x35e441);}}else return!![];}}else _0x4fb30b[_0x22ee51(0x146)](_0x52bf33[_0x22ee51(0x22c)],this[_0x22ee51(0x230)])&&_0x5b596e[_0x22ee51(0x272)](_0x720545);}catch(_0x4e3735){if(_0x4fb30b[_0x22ee51(0x1d4)](_0x4fb30b[_0x22ee51(0x10e)],_0x4fb30b[_0x22ee51(0x10e)]))return logger[_0x22ee51(0x130)](_0x22ee51(0x16b)+_0x480e52+_0x22ee51(0x134)+_0x4e3735),[![],[]];else _0x30394d=_0x49e286[_0x22ee51(0x104)](_0x226262[_0x2b2469[_0x22ee51(0x15c)]]);}return[![],[]];}async[a3_0x112e1c(0x243)](){const _0x258ea2=a3_0x112e1c,_0x503535={};_0x503535[_0x258ea2(0x15e)]='Cluster\x20creation\x20failed',_0x503535[_0x258ea2(0x1b3)]=function(_0x44f45f,_0x152431){return _0x44f45f!==_0x152431;},_0x503535[_0x258ea2(0x280)]=_0x258ea2(0x11d);const _0x1a69e1=_0x503535,_0x5871ce=await this['networkClient'][_0x258ea2(0x22d)]({'project':this['projectId']}),_0x4a0af6={};_0x4a0af6['username']=global_registry[_0x258ea2(0x19c)],_0x4a0af6[_0x258ea2(0x1f0)]=global_registry[_0x258ea2(0x159)],_0x4a0af6[_0x258ea2(0x11c)]=GCP,_0x4a0af6[_0x258ea2(0x1c2)]=[];const _0x5625b6=_0x4a0af6;for(const _0x3e1a07 of _0x5871ce){_0x1a69e1[_0x258ea2(0x1b3)](_0x1a69e1[_0x258ea2(0x280)],_0x1a69e1[_0x258ea2(0x280)])?_0x7d1377[_0x258ea2(0x1ae)](_0x1a69e1['qjumt']):_0x5625b6[_0x258ea2(0x1c2)][_0x258ea2(0x272)](_0x3e1a07);}const _0x5f1ed9={};_0x5f1ed9['type']=WS_EVENTS[_0x258ea2(0x206)],_0x5f1ed9[_0x258ea2(0x20c)]=_0x5625b6,this[_0x258ea2(0x1c8)][_0x258ea2(0x18c)](this[_0x258ea2(0x179)],_0x5f1ed9);}async['updateClusterRegion'](){const _0x371191=a3_0x112e1c,_0x3e97b3={'dEUdy':function(_0x596021,_0x32ebbc,_0x41f560){return _0x596021(_0x32ebbc,_0x41f560);},'rtSBf':_0x371191(0x259),'OrDON':_0x371191(0x281)},_0x2f9066=_0x371191(0x205)+AG_API_URL+'/packages/cli/update-cluster-region',_0x1ba258={};_0x1ba258['profileId']=global_registry[_0x371191(0x20a)];const _0x4a25bd={};_0x4a25bd[_0x371191(0x22f)]=global_registry[_0x371191(0x15c)];const _0x591e6a={'searchParams':_0x1ba258,'json':_0x4a25bd,'headers':_0x3e97b3['dEUdy'](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),'method':_0x3e97b3[_0x371191(0x149)],'responseType':_0x3e97b3[_0x371191(0x14c)],'throwHttpErrors':![]},_0x40d6d4=await _0x3e97b3[_0x371191(0x1ea)](got,_0x2f9066,_0x591e6a);}async['isCliToolInstalled'](){const _0x4d40fc=a3_0x112e1c,_0x55663d={'qrdun':function(_0x4e89ec,_0x50d94c){return _0x4e89ec(_0x50d94c);},'mCfck':_0x4d40fc(0x267),'IgIGG':_0x4d40fc(0x234),'VDCaL':_0x4d40fc(0x1b4)},_0x8a4126={};_0x8a4126[_0x4d40fc(0x28a)]=![],_0x8a4126[_0x4d40fc(0x130)]=null,_0x8a4126[_0x4d40fc(0xff)]='';const _0xb12044=_0x8a4126;try{const _0x3aad3d=await _0x55663d['qrdun'](runCommand,_0x55663d[_0x4d40fc(0x27c)]);_0x3aad3d[_0x4d40fc(0x26a)](_0x55663d[_0x4d40fc(0x143)])?logger['warn'](_0x3aad3d):logger[_0x4d40fc(0x24a)](_0x3aad3d),_0xb12044[_0x4d40fc(0x28a)]=!![],_0xb12044[_0x4d40fc(0xff)]=_0x55663d[_0x4d40fc(0x12f)];}catch(_0x59d6ad){logger['error']('error\x20:\x20'+_0x59d6ad+_0x4d40fc(0x291)+_0x59d6ad[_0x4d40fc(0x1df)]),_0xb12044[_0x4d40fc(0xff)]=_0x4d40fc(0x161)+_0x59d6ad,_0xb12044['error']=_0x59d6ad;}return _0xb12044;}async[a3_0x112e1c(0x112)](){const _0x1bf467=a3_0x112e1c,_0x28248f={};_0x28248f[_0x1bf467(0x1dc)]=_0x1bf467(0x1ed),_0x28248f[_0x1bf467(0x184)]=_0x1bf467(0x1ff);const _0x4effdf=_0x28248f,_0x2a336f={};_0x2a336f[_0x1bf467(0x28a)]=![],_0x2a336f[_0x1bf467(0x130)]=null,_0x2a336f[_0x1bf467(0xff)]='';const _0x5978d2=_0x2a336f;try{let _0x2235a1='';const _0x4b63a4=_0x1bf467(0x1b5)+this[_0x1bf467(0x1de)],[_0x41c065]=await this['resourcemanagerClient']['testIamPermissions']({'resource':_0x4b63a4,'permissions':Object[_0x1bf467(0x136)](PERMISSIONS)});_0x5978d2[_0x1bf467(0x28a)]=!![],logger[_0x1bf467(0x24a)](_0x1bf467(0x17c)+_0x4b63a4+':\x20'+JSON[_0x1bf467(0x163)](_0x41c065)),Object['entries'](PERMISSIONS)[_0x1bf467(0x198)](([_0x156b4c,_0xf2637e])=>{const _0x7fb92=_0x1bf467,_0x25f09c=_0x41c065[_0x7fb92(0x202)]['includes'](_0x156b4c);_0x2235a1+='\x0a\x09'+_0xf2637e+'\x20:\x20'+(_0x25f09c?_0x4effdf[_0x7fb92(0x1dc)]:_0x4effdf[_0x7fb92(0x184)]),!_0x25f09c&&(_0x5978d2[_0x7fb92(0x28a)]=![]);}),_0x5978d2[_0x1bf467(0xff)]=_0x2235a1;}catch(_0x466ed7){_0x5978d2['error']=_0x466ed7;}return _0x5978d2;}}function a3_0x38f6(){const _0x414e32=['bstackAccesskey','../utils/gridComponents','gkecluster.json','clusterRegion','WFkmj','qjumt','zpEFt','storage.buckets.listEffectiveTags','Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20','endpoint','stringify','maxNodes','getClient','loadBalancer','minNodeCount','serviceAccount','oCpNd','dCnAX','Cannot\x20find\x20subnets\x20','CUZhu','storage.buckets.create','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','log','yYtFS','PdFGD','Deleting\x20the\x20cluster\x20','util','nahVP','credentialsPath','VCiFu','XtvtM','yNuzA','rws','browserstack','EYAPB','permissions\x20check\x20response\x20for\x20','parent','Service\x20account\x20already\x20exists,\x20skipping','gcloud\x20auth\x20login\x20--cred-file=','RUNNING','188SlBdro','iTuWR','listClusters','rrXfG','role','TXVXH','zyJiR','vBnxn','ADvAx','locations','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','sendEventToBackend','AhnDi','laHyL','msiYP','DeyAt','KefXY','XNhsT','3154521GoCveu','xYgqG','exports','yPdJt','delay','forEach','rqCOe','jYPgs','TOYgN','bstackUsername','wmqGs','mdIBq','yvIYp','IDUco','projects','XjQaK','scEqb','updateWindowsNodeGroup','DGdPJ','storage.objects.update','HChBK','Iqvkl','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--no-user-output-enabled','management','TIfSM','dokHx','MLAJS','info','upZhf','got','networkClient','storage.objects.getIamPolicy','cwrzk','cli\x20tool\x20is\x20installed','projects/','LOG','tazGr','bindings','tYvNw','1044398MsHYuc','ZkQbS','.iam.gserviceaccount.com','../config/constants','ZpZBz','piBUN','clusters','updateClusterRegion','vpcInfo','gcpresources','includes','pNgPP','fBpnf','tuRCH','webSocketUtils','OXTIo','OPmdm','qlQLT','SRLgV','wkWRf','GKE\x20Cluster\x20deletion\x20failed','members','includedPermissions','KlrkF','getUserInput','CXBfe','OwATS','@google-cloud/compute','llEJx','QqWIG','kvBmn','shWDX','xVZVl','muBMo','vcMmg','getIamPolicy','projectId','stack','/global/networks/','getKubeConfigData','getClusterInfo','../utils/userInput','regionmap.json','writeFileSync','kxYbP','bqrZH','bTapu','RIpZL','dEUdy','CBSLN','Creating\x20service\x20account','allowed','isVPCPresent','pEshe','accessKey','BTfni','dAItB','VcMJp','nNZcz','CGroP','/clusters/','tHFua','clusterCaCertificate','naahF','EHLUx','../permissions/GCP.json','toLowerCase','AdLdS','ohuNR','denied','pyqYK','YgBxG','permissions','XMsqs','/subnetworks/','https://','RESOURCES','qArAk','AcbIH','iamClient','gridProfileId','cCIIg','message','serviceAccount:','GHVFm','rBZyG','ClusterManagerClient','cPwuC','init','loEJe','storage.objects.list','GbuCd','resourcemanagerClient','replace','FxFBa','managedby','VvWmj','https://www.googleapis.com/compute/v1/projects/','Cluster\x20deletion\x20completed','Xtgpc','REGULAR','instanceType','ftreu','accounts','bkcCL','exit','storage.multipartUploads.list','PITEI','pMHSV','get','VSpSb','keyFile','gcXQX','YTYoS','name','list','Qkhde','newRegion','clusterName','./CloudProvider','5414080iTjuTg','tagkK','Intercepted','bmyOa','19965008NAjiUf','toString','mJSFW','Zywat','setupHubHa','storage.objects.get','CyYRw','QWNWd','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','JOzdV','cCOxF','VNZbR','PKGKI','sendGCPInfoToHST','containerClient','checkServiceAccount','setupServiceAccount','EOhQA','bhNYK','lUTlf','debug','/serviceAccounts/','PlGpi','GwKzc','https://www.googleapis.com/auth/cloud-platform','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','default','createCluster','subnetwork','CKLaF','ScjaU','gke_','\x20--quiet\x20--user-output-enabled=false','path','xKRPJ','PUT','wAgML','YLZJS','uhcRl','hwuZV','SRrrw','@google-cloud/container','Found\x20cluster\x20with\x20name\x20\x27','storage.buckets.createTagBinding','CmEKX','QjKFL','jWokG','exec','Turboscale\x20Custom\x20Role','gcloud\x20--version','SaUdC','serviceAccounts','startsWith','NxyIO','../config/logger','turboscale-service-account','title','autoUpgrade','type','clusterAutoUpgrade','push','WCJYd','EuGlG','4100628RywSla','readFileAsync','WiUjV','sLDyh','cloudProviderName','storage.multipartUploads.abort','maxNodeCount','mCfck','GoogleCloudProvider','autoscaling','storage.buckets.getIamPolicy','MDNCo','json','OqFTQ','Creating\x20GKE\x20Cluster','rShHz','/locations/','YrHEs','serviceAccountName','narpi','ZKtpT','status','gAycX','storage.multipartUploads.create','CQCyB','OPHhw','PcRIS','ActDY','\x20:\x20','wQeJj','fZJqf','tgQYD','MWsfF','85580JcmTLa','templates','child_process','uOSdw','channel','XUtBb','VyEbi','data','fBpYY','TnDIY','utf-8','create','concat','nodePools','QQdoV','CarLn','LcrNA','iam','iam.serviceAccounts.signBlob','../utils/utilityMethods','hVgiC','customRoleName','wBSuR','isSubnetsValid','join','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','checkAccess','storage.buckets.listTagBindings','rnxKc','hElkd','YxQyu','mEQoJ','JbNly','48121rflArt','ingress','releaseChannel','cloudProvider','JyKXf','config','kHbDb','requestBody','jjLEF','XlJlu','auth','Cluster\x20creation\x20failed','isClusterPresent','deleteCluster','vnbBW','parse','project_id','\x20--windows-os-version=ltsc2022\x20--region\x20','Oslqh','jByou','SEqPk','jNBUh','VDCaL','error','uwpLr','resourceLabels','THEQu','.\x20Error:\x20','scopes','keys','DEbuK','TaNoo','tChSn','OuWTp','RYYQf','lfAMU','machineType','pcTqh','/regions/','dzwse','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','FgXJy','IgIGG','masterAuth','asisg','ZSzPC','ZwlHP','hnhzr','rtSBf','MWFbW','qALwO','OrDON','FECyP','fEsGd','length','DONE','crfkB','fBVQi','Bnmzq','KoBZk','wZiiB','GuVUO','execSync','usVvd'];a3_0x38f6=function(){return _0x414e32;};return a3_0x38f6();}const a3_0x563204={};a3_0x563204[a3_0x112e1c(0x27d)]=GoogleCloudProvider,module[a3_0x112e1c(0x195)]=a3_0x563204;
|
|
1
|
+
const a3_0x3cb80c=a3_0xc89d;(function(_0x158da4,_0x364f04){const _0x242190=a3_0xc89d,_0x235e32=_0x158da4();while(!![]){try{const _0xe69731=-parseInt(_0x242190(0xf0))/0x1*(parseInt(_0x242190(0x25d))/0x2)+-parseInt(_0x242190(0x223))/0x3+parseInt(_0x242190(0x189))/0x4+parseInt(_0x242190(0x1c1))/0x5*(-parseInt(_0x242190(0x113))/0x6)+-parseInt(_0x242190(0xf9))/0x7+parseInt(_0x242190(0x19d))/0x8*(-parseInt(_0x242190(0x20a))/0x9)+parseInt(_0x242190(0x11a))/0xa;if(_0xe69731===_0x364f04)break;else _0x235e32['push'](_0x235e32['shift']());}catch(_0x11a482){_0x235e32['push'](_0x235e32['shift']());}}}(a3_0x1790,0x262e0));const fs=require('fs'),path=require('path'),got=require(a3_0x3cb80c(0x1a8)),util=require(a3_0x3cb80c(0x134)),cp=require(a3_0x3cb80c(0x217)),{google}=require('googleapis'),compute=require(a3_0x3cb80c(0xe0)),container=require(a3_0x3cb80c(0x1a3)),{ProjectsClient}=require('@google-cloud/resource-manager')['v3'],{logger}=require(a3_0x3cb80c(0x14b)),{CloudProvider}=require(a3_0x3cb80c(0x17b)),{getDirForConfig,getAuthHeader,runCommand}=require('../utils/utilityMethods'),{deleteRoutingDeps,deleteAgent}=require(a3_0x3cb80c(0x22f)),{inputConfirmation,closeInput}=require(a3_0x3cb80c(0x12a)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require('../config/constants'),PERMISSIONS=require(a3_0x3cb80c(0x16b));class GoogleCloudProvider extends CloudProvider{constructor(_0x55714b,_0xbc6b3c,_0x47347d,_0x18c354){const _0x52fdcf=a3_0x3cb80c,_0x27711a={};_0x27711a[_0x52fdcf(0x1c0)]=_0x52fdcf(0x243),_0x27711a[_0x52fdcf(0x121)]='turboscale-service-account',_0x27711a[_0x52fdcf(0x1b9)]=_0x52fdcf(0x161);const _0xb0b491=_0x27711a,_0x30f30c=_0xb0b491[_0x52fdcf(0x1c0)][_0x52fdcf(0x176)]('|');let _0x1ba6c0=0x0;while(!![]){switch(_0x30f30c[_0x1ba6c0++]){case'0':super(GCP,_0x55714b,_0xbc6b3c,_0x47347d,_0x18c354);continue;case'1':this[_0x52fdcf(0x1ce)]=null;continue;case'2':this[_0x52fdcf(0x1fc)]=null;continue;case'3':this['networkClient']=null;continue;case'4':this['serviceAccountName']=_0xb0b491['lMKeT'];continue;case'5':this[_0x52fdcf(0x190)]=_0xb0b491[_0x52fdcf(0x1b9)];continue;case'6':this[_0x52fdcf(0x1b2)]=null;continue;case'7':this[_0x52fdcf(0x181)]=null;continue;case'8':this[_0x52fdcf(0xfd)]=null;continue;}break;}}async[a3_0x3cb80c(0x257)](){const _0x3a205c=a3_0x3cb80c;this[_0x3a205c(0x209)](this[_0x3a205c(0x14c)]);}async[a3_0x3cb80c(0x125)](){const _0x46a6aa=a3_0x3cb80c;await super[_0x46a6aa(0x125)]();const _0x231c48=this[_0x46a6aa(0x1ce)],_0x241a81={};_0x241a81[_0x46a6aa(0x1fa)]=_0x231c48,this['containerClient']=new container['v1']['ClusterManagerClient'](_0x241a81);const _0x1d38dc={};_0x1d38dc[_0x46a6aa(0x1fa)]=_0x231c48,this[_0x46a6aa(0x255)]=new compute['v1'][(_0x46a6aa(0x26b))](_0x1d38dc);const _0x4bd67f={};return _0x4bd67f['keyFile']=_0x231c48,this[_0x46a6aa(0x1fc)]=new ProjectsClient(_0x4bd67f),this[_0x46a6aa(0x1b2)]=google['iam']('v1'),this;}async[a3_0x3cb80c(0xf7)](_0x5a14a1,_0x5ae2f1){const _0x1e6f30=a3_0x3cb80c,_0x5e452e={'bJomm':function(_0x59f844,_0x543a86){return _0x59f844(_0x543a86);},'BimQT':'Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','ghLdP':function(_0xbcb60c){return _0xbcb60c();},'cyflW':_0x1e6f30(0x117)},_0x221e8f=await _0x5e452e['bJomm'](_0x5a14a1,_0x5e452e[_0x1e6f30(0x248)]);let _0x51c342=await fs[_0x1e6f30(0xfc)](_0x221e8f);_0x51c342=_0x51c342['toString']();const _0x28fcb9=_0x5e452e[_0x1e6f30(0x179)](getDirForConfig),_0x387aa2=path[_0x1e6f30(0x13e)](_0x28fcb9,_0x5e452e[_0x1e6f30(0x1fe)]);fs[_0x1e6f30(0x241)](_0x387aa2,_0x51c342),this[_0x1e6f30(0x1ce)]=_0x387aa2;const _0x1609e8={};return _0x1609e8[_0x1e6f30(0x1fa)]=_0x387aa2,_0x5ae2f1['cloudProvider'][GCP]=_0x1609e8,_0x51c342=JSON[_0x1e6f30(0x1a9)](_0x51c342),this[_0x1e6f30(0xfd)]=_0x51c342['project_id'],_0x5ae2f1;}async[a3_0x3cb80c(0x27d)](_0x20415a){const _0x196001=a3_0x3cb80c;this['credentialsPath']=_0x20415a[this[_0x196001(0x17e)]][_0x196001(0x1fa)];let _0x4402d0=await fs[_0x196001(0xfc)](this[_0x196001(0x1ce)]);_0x4402d0=JSON[_0x196001(0x1a9)](_0x4402d0),this[_0x196001(0xfd)]=_0x4402d0[_0x196001(0x24a)];}[a3_0x3cb80c(0x1bb)](_0x432c1c){const _0x4e86e2=a3_0x3cb80c;return _0x432c1c['status'][_0x4e86e2(0x215)][_0x4e86e2(0x25c)][0x0]['ip'];}async[a3_0x3cb80c(0x157)](){const _0x30f130=a3_0x3cb80c,_0x2d7b26={};_0x2d7b26['FPTef']=function(_0xe4dd4b,_0x5e1945){return _0xe4dd4b!==_0x5e1945;},_0x2d7b26[_0x30f130(0x254)]=_0x30f130(0x192),_0x2d7b26['XCfsB']=function(_0x2f8069,_0x5e326c){return _0x2f8069===_0x5e326c;},_0x2d7b26['kLYbr']='UZHNJ',_0x2d7b26['MkgFS']=_0x30f130(0x256),_0x2d7b26[_0x30f130(0x118)]=_0x30f130(0x194),_0x2d7b26['wfAuK']=function(_0x2a73a5,_0x1ed19e){return _0x2a73a5===_0x1ed19e;},_0x2d7b26[_0x30f130(0x1ad)]=_0x30f130(0x259),_0x2d7b26['KitGM']=_0x30f130(0x1ac);const _0x351599=_0x2d7b26;try{if(_0x351599[_0x30f130(0x225)](_0x351599['txPDj'],_0x351599['txPDj']))this[_0x30f130(0x209)](this[_0x30f130(0x14c)]);else{const _0x1e4a8f=await this[_0x30f130(0x1f7)]();if(_0x1e4a8f[0x0]?.[_0x30f130(0x239)]?.[_0x30f130(0x1a0)]){if(_0x351599[_0x30f130(0xdb)](_0x351599[_0x30f130(0x26f)],_0x351599[_0x30f130(0x263)]))_0x25a03a[_0x30f130(0x20b)][_0x30f130(0x1f9)](_0x62fd86);else{const _0x136729=_0x1e4a8f[0x0]?.[_0x30f130(0x239)]?.[_0x30f130(0x1a0)];return _0x136729&&_0x351599[_0x30f130(0xdb)](_0x136729[_0x30f130(0x1b6)](),_0x351599[_0x30f130(0x118)]);}}}}catch(_0xa0fa94){if(_0x351599[_0x30f130(0x1a5)](_0x351599['ProHA'],_0x351599[_0x30f130(0x116)]))_0x55278c=_0x491196[_0x30f130(0x1cd)](_0x39661b[_0x342943['clusterRegion']]);else return![];}return![];}async[a3_0x3cb80c(0x112)](){const _0x59026f=a3_0x3cb80c,_0x237f03={'xYZvU':function(_0x1137c7,_0x67cae9){return _0x1137c7+_0x67cae9;},'fixpG':_0x59026f(0x1e7),'QrFoN':'denied','wIqSr':function(_0x39432c,_0x565d78){return _0x39432c===_0x565d78;},'YbBUH':'GKE\x20Cluster\x20deletion\x20failed','aQIeF':_0x59026f(0x1d5),'sAibv':function(_0x40026b,_0x8890c8){return _0x40026b===_0x8890c8;},'KIaBn':_0x59026f(0x1ab),'MYSHK':'gcpresources','cJLtl':'regionmap.json','josrm':_0x59026f(0x1af),'gHyuQ':function(_0x3e6dbb,_0x21bb31){return _0x3e6dbb!==_0x21bb31;},'HIuJh':function(_0x270d5e,_0x4f4383){return _0x270d5e!==_0x4f4383;},'AXrOv':_0x59026f(0x104),'HhRpW':function(_0x306be3,_0x79ae65){return _0x306be3===_0x79ae65;},'XjiaK':_0x59026f(0x171),'cLrId':'cIeoC','ohcEX':function(_0x304fc9,_0x93bb40){return _0x304fc9===_0x93bb40;},'PSuZn':_0x59026f(0x128),'zDRnP':_0x59026f(0x1a4),'GdzXW':function(_0x26ba88,_0x3c6ba7){return _0x26ba88===_0x3c6ba7;},'JfNMl':_0x59026f(0x177),'xsfqA':function(_0x6a75a5,_0x3c72cb){return _0x6a75a5===_0x3c72cb;},'UerhQ':function(_0x28be6b,_0x5171ba){return _0x28be6b===_0x5171ba;},'wqMtP':_0x59026f(0x17a),'yBjNb':_0x59026f(0x25a),'KIigQ':_0x59026f(0x220),'ywLwh':function(_0xcb5ddc,_0x51e5f8){return _0xcb5ddc>_0x51e5f8;},'dHkuo':_0x59026f(0x185),'YyyLB':function(_0x13f8e7,_0x4d599f){return _0x13f8e7<_0x4d599f;},'GFIfW':function(_0x1da308,_0xebd0af){return _0x1da308===_0xebd0af;},'NTMDm':_0x59026f(0x11d),'QRWED':function(_0x218733,_0x119451){return _0x218733+_0x119451;},'IeWuQ':function(_0x26368e,_0x288cd1){return _0x26368e(_0x288cd1);},'SbMGE':_0x59026f(0x115),'gUvER':function(_0x50f284,_0x39ca87){return _0x50f284(_0x39ca87);},'FUVwe':function(_0x352d72,_0x557946){return _0x352d72(_0x557946);},'cNtEU':function(_0x518c3a,_0x90e0b8){return _0x518c3a<=_0x90e0b8;},'VjwZL':_0x59026f(0x1c9),'nyanY':_0x59026f(0x174),'qUIzE':function(_0x4403aa){return _0x4403aa();},'DahoA':function(_0x4375a1,_0x5333f1){return _0x4375a1-_0x5333f1;},'zcIqE':function(_0x320101,_0xf355a3){return _0x320101!==_0xf355a3;},'inyif':function(_0x376756,_0x3cb7fc){return _0x376756-_0x3cb7fc;},'clSjP':function(_0x5227dc,_0x39024e){return _0x5227dc===_0x39024e;},'FZsDl':'PkOHJ','UDjbb':function(_0x4cca28,_0x72c6b8){return _0x4cca28-_0x72c6b8;}};let _0x1ef88a=await fs[_0x59026f(0xfc)](path['join'](__dirname,'..',_0x237f03['KIaBn'],_0x237f03[_0x59026f(0x227)],_0x237f03[_0x59026f(0x250)]),_0x237f03[_0x59026f(0xef)]);_0x1ef88a=JSON[_0x59026f(0x1a9)](_0x1ef88a);let _0x4f0b3e=[global_registry[_0x59026f(0x26c)]];_0x237f03[_0x59026f(0x10d)](_0x1ef88a[global_registry[_0x59026f(0x26c)]],undefined)&&(_0x237f03[_0x59026f(0x10b)](_0x237f03[_0x59026f(0x1bd)],_0x237f03[_0x59026f(0x1bd)])?_0x6e5ba5[_0x59026f(0x15f)]('['+_0x237f03[_0x59026f(0xe5)](_0x568f66,0x1)+']\x20'+_0x51e0fc[_0x46c330]):_0x4f0b3e=_0x4f0b3e[_0x59026f(0x1cd)](_0x1ef88a[global_registry[_0x59026f(0x26c)]]));const _0xa4077b=[];for await(const _0x14f450 of _0x4f0b3e){if(_0x237f03['HhRpW'](_0x237f03[_0x59026f(0x1f4)],_0x237f03['cLrId'])){const _0x23b6aa=_0x26267a[_0x59026f(0x10a)][_0x59026f(0x269)](_0x4222ba);_0x306882+='\x0a\x09'+_0x387060+_0x59026f(0x1d3)+(_0x23b6aa?_0x237f03[_0x59026f(0x234)]:_0x237f03[_0x59026f(0x1d0)]),!_0x23b6aa&&(_0x4461ab[_0x59026f(0x10e)]=![]);}else{const _0x2e69a7={};_0x2e69a7[_0x59026f(0x1a1)]='projects/'+this[_0x59026f(0xfd)]+_0x59026f(0x27e)+_0x14f450;const _0x17ae5a=_0x2e69a7,_0x52643f=await this[_0x59026f(0x181)][_0x59026f(0x22b)](_0x17ae5a);for(const _0x1c09ee of _0x52643f[0x0][_0x59026f(0x12e)]){_0x237f03[_0x59026f(0x182)](_0x237f03['PSuZn'],_0x237f03[_0x59026f(0x13d)])?_0x19a7fc['debug'](_0x5a0568):_0x237f03['GdzXW'](_0x1c09ee[_0x59026f(0x186)],this[_0x59026f(0x1ee)])&&(_0x237f03[_0x59026f(0x10b)](_0x237f03[_0x59026f(0x21c)],_0x237f03[_0x59026f(0x21c)])?(_0x2d4950['error']('error\x20:\x20'+_0x135dfc+'\x20:\x20'+_0xb60fdc[_0x59026f(0x184)]),_0x171170[_0x59026f(0x232)]=_0x59026f(0x258)+_0x107fda,_0x29e96f[_0x59026f(0x163)]=_0x38b3a5):_0xa4077b[_0x59026f(0x1f9)](_0x14f450));}}}const _0x5c7b20=_0xa4077b[_0x59026f(0x242)];if(_0x237f03[_0x59026f(0x180)](_0x5c7b20,0x1)){if(_0x237f03[_0x59026f(0x147)](_0x237f03[_0x59026f(0x211)],_0x237f03[_0x59026f(0x211)])){if(_0x237f03[_0x59026f(0x10d)](global_registry['clusterRegion'],_0xa4077b[0x0])){if(_0x237f03[_0x59026f(0x10d)](_0x237f03[_0x59026f(0x23d)],_0x237f03[_0x59026f(0x23a)]))global_registry[_0x59026f(0x26c)]=_0xa4077b[0x0],this[_0x59026f(0x266)]();else{const _0x5b6b57='https://www.googleapis.com/compute/v1/projects/'+this[_0x59026f(0xfd)]+_0x59026f(0xda)+_0x9cb30d[_0x59026f(0x26c)]+_0x59026f(0x26e)+_0x146458[0x0];if(_0x237f03['wIqSr'](_0x5b6b57,_0x410c05))return[!![],_0x44b10f];}}return!![];}else{_0x4de0a8[_0x59026f(0x14a)](_0x237f03[_0x59026f(0x20d)]);throw _0x3766da;}}else{if(_0x237f03[_0x59026f(0x1c4)](_0x5c7b20,0x1)){if(_0x237f03[_0x59026f(0x10d)](_0x237f03[_0x59026f(0x130)],_0x237f03[_0x59026f(0x130)]))return _0x4b95dd[_0x59026f(0x10e)]['loadBalancer'][_0x59026f(0x25c)][0x0]['ip'];else{console[_0x59026f(0x15f)](_0x59026f(0x1aa)+this[_0x59026f(0x1ee)]+_0x59026f(0x18a));for(let _0x1b4286=0x0;_0x237f03[_0x59026f(0x1ba)](_0x1b4286,_0x5c7b20);_0x1b4286+=0x1){_0x237f03['GFIfW'](_0x237f03['NTMDm'],_0x237f03[_0x59026f(0x1c7)])?console[_0x59026f(0x15f)]('['+_0x237f03[_0x59026f(0x123)](_0x1b4286,0x1)+']\x20'+_0xa4077b[_0x1b4286]):_0x3984e1=[_0x237f03[_0x59026f(0x16a)]];}const _0x48e3d6=await _0x237f03[_0x59026f(0x137)](inputConfirmation,_0x237f03[_0x59026f(0x238)]),_0x3b29c6=_0x237f03[_0x59026f(0x1da)](Number,_0x48e3d6);if(_0x237f03['FUVwe'](isNaN,_0x3b29c6)||_0x237f03[_0x59026f(0x1d2)](_0x3b29c6,0x0)||_0x237f03['ywLwh'](_0x3b29c6,_0x5c7b20)){if(_0x237f03[_0x59026f(0x10d)](_0x237f03['VjwZL'],_0x237f03['VjwZL']))return!![];else console[_0x59026f(0x163)](_0x237f03['nyanY']),process[_0x59026f(0x237)](0x1);}_0x237f03[_0x59026f(0x1e6)](closeInput),logger[_0x59026f(0x14a)](_0x59026f(0x1ae)+_0xa4077b[_0x237f03[_0x59026f(0x10f)](_0x3b29c6,0x1)]);if(_0x237f03[_0x59026f(0x19f)](global_registry['clusterRegion'],_0xa4077b[_0x237f03['inyif'](_0x3b29c6,0x1)])){if(_0x237f03[_0x59026f(0x270)](_0x237f03['FZsDl'],_0x237f03[_0x59026f(0x17c)]))global_registry[_0x59026f(0x26c)]=_0xa4077b[_0x237f03[_0x59026f(0x22d)](_0x3b29c6,0x1)],this[_0x59026f(0x266)]();else{if(_0x237f03[_0x59026f(0x1f3)](_0x40fbd7?.[_0x59026f(0x186)],_0x59026f(0x15e)+this['projectId']+'/serviceAccounts/'+this['serviceAccountName']+'@'+this[_0x59026f(0xfd)]+_0x59026f(0x106)))return!![];}}return!![];}}}return![];}async[a3_0x3cb80c(0x1f7)](){const _0x242997=a3_0x3cb80c,_0x5ae573=await this[_0x242997(0x181)][_0x242997(0x202)]({'name':_0x242997(0x15e)+this[_0x242997(0xfd)]+_0x242997(0x27e)+global_registry[_0x242997(0x26c)]+'/clusters/'+this[_0x242997(0x1ee)]});return _0x5ae573;}async['getKubeConfigData'](){const _0x1f709b=a3_0x3cb80c,_0x2209a0={};_0x2209a0[_0x1f709b(0xf6)]=_0x1f709b(0x24e),_0x2209a0[_0x1f709b(0x1c5)]='templates',_0x2209a0[_0x1f709b(0x1cc)]=_0x1f709b(0x206),_0x2209a0[_0x1f709b(0x204)]=_0x1f709b(0x24b);const _0x6c0bfd=_0x2209a0;cp[_0x1f709b(0x240)](_0x6c0bfd[_0x1f709b(0xf6)]),cp[_0x1f709b(0x175)](_0x1f709b(0x19e)+this[_0x1f709b(0x1ce)]);const _0xe87c8d=await this[_0x1f709b(0x1f7)](),_0x3f0b5d=_0x1f709b(0x25f)+this['projectId']+'_'+global_registry[_0x1f709b(0x26c)]+'_'+this['clusterName'];let _0x5f7e88=await fs['readFileAsync'](path[_0x1f709b(0x13e)](__dirname,'..',_0x6c0bfd[_0x1f709b(0x1c5)],_0x6c0bfd['rNCBp'],_0x6c0bfd[_0x1f709b(0x204)]));return _0x5f7e88=_0x5f7e88[_0x1f709b(0x23e)](),_0x5f7e88=_0x5f7e88[_0x1f709b(0x127)](/<CLUSTER_NAME>/g,_0x3f0b5d),_0x5f7e88=_0x5f7e88['replace'](/<CLUSTER_URL>/g,_0x1f709b(0x1e1)+_0xe87c8d[0x0]['endpoint']),_0x5f7e88=_0x5f7e88['replace'](/<CERTIFICATE_DATA>/g,_0xe87c8d[0x0][_0x1f709b(0x22a)][_0x1f709b(0x17f)]),_0x5f7e88;}async[a3_0x3cb80c(0x1f2)](){const _0xc55599=a3_0x3cb80c,_0xaa7274={};_0xaa7274[_0xc55599(0x265)]=_0xc55599(0x1d5),_0xaa7274[_0xc55599(0x25b)]=function(_0x4cf7a3,_0x3a5488){return _0x4cf7a3===_0x3a5488;},_0xaa7274['uXwaO']='https://www.googleapis.com/auth/cloud-platform',_0xaa7274['IGCbv']=function(_0x4be5ae,_0x363fc2){return _0x4be5ae!==_0x363fc2;},_0xaa7274[_0xc55599(0x235)]=_0xc55599(0x195),_0xaa7274[_0xc55599(0x102)]='HlkZk',_0xaa7274[_0xc55599(0x280)]=function(_0x15528d,_0x33b156){return _0x15528d===_0x33b156;},_0xaa7274[_0xc55599(0x1ea)]=function(_0x1ef281,_0x496445){return _0x1ef281!==_0x496445;},_0xaa7274[_0xc55599(0x18c)]=_0xc55599(0x12f),_0xaa7274[_0xc55599(0xe8)]='tyjch';const _0x5f42a9=_0xaa7274,_0x4934af={};_0x4934af[_0xc55599(0x1e3)]=[_0x5f42a9['uXwaO']],_0x4934af[_0xc55599(0x1fa)]=this[_0xc55599(0x1ce)];const _0x592b1f=await google['auth'][_0xc55599(0x1fd)](_0x4934af),_0x49b6fd=await this['iamClient']['projects']['serviceAccounts'][_0xc55599(0x142)]({'name':'projects/'+this['projectId'],'auth':_0x592b1f});if(_0x49b6fd?.[_0xc55599(0x232)]?.['accounts']){if(_0x5f42a9[_0xc55599(0x207)](_0x5f42a9[_0xc55599(0x235)],_0x5f42a9[_0xc55599(0x235)]))return _0x14f85b[_0xc55599(0x163)](_0xc55599(0x1e8)+_0x190045+_0xc55599(0x15d)+_0x37b28a),[![],[]];else for(const _0x5f0ba6 of _0x49b6fd['data']['accounts']){if(_0x5f42a9[_0xc55599(0x207)](_0x5f42a9[_0xc55599(0x102)],_0x5f42a9[_0xc55599(0x102)]))_0x4bbdd7=_0x5f42a9[_0xc55599(0x265)];else{if(_0x5f42a9[_0xc55599(0x280)](_0x5f0ba6?.[_0xc55599(0x186)],_0xc55599(0x15e)+this['projectId']+_0xc55599(0x140)+this[_0xc55599(0x1cb)]+'@'+this[_0xc55599(0xfd)]+_0xc55599(0x106))){if(_0x5f42a9['yIZko'](_0x5f42a9[_0xc55599(0x18c)],_0x5f42a9[_0xc55599(0xe8)]))return!![];else for(const _0xb16de2 of _0x37d64a['data'][_0xc55599(0x1b1)]){if(_0x5f42a9[_0xc55599(0x25b)](_0xb16de2?.[_0xc55599(0x186)],_0xc55599(0x15e)+this[_0xc55599(0xfd)]+_0xc55599(0x140)+this[_0xc55599(0x1cb)]+'@'+this[_0xc55599(0xfd)]+_0xc55599(0x106)))return!![];}}}}}return![];}async[a3_0x3cb80c(0x132)](){const _0x3b515c=a3_0x3cb80c,_0x29c69f={};_0x29c69f['WzzRr']=function(_0x3b7a89,_0x1fe2c6){return _0x3b7a89!==_0x1fe2c6;},_0x29c69f[_0x3b515c(0x188)]=_0x3b515c(0x148),_0x29c69f[_0x3b515c(0x20e)]=_0x3b515c(0x1b0),_0x29c69f['vEATT']=_0x3b515c(0x274),_0x29c69f['idOEb']=_0x3b515c(0x1e2),_0x29c69f['HtUZr']='https://www.googleapis.com/auth/cloud-platform',_0x29c69f[_0x3b515c(0x218)]=_0x3b515c(0x212),_0x29c69f[_0x3b515c(0x149)]='storage.buckets.create',_0x29c69f[_0x3b515c(0x271)]=_0x3b515c(0x13f),_0x29c69f[_0x3b515c(0xea)]=_0x3b515c(0x233),_0x29c69f[_0x3b515c(0x268)]=_0x3b515c(0x114),_0x29c69f[_0x3b515c(0x19c)]=_0x3b515c(0x15a),_0x29c69f['jpoYv']='storage.buckets.getIamPolicy',_0x29c69f[_0x3b515c(0x135)]=_0x3b515c(0x1f8),_0x29c69f[_0x3b515c(0x228)]=_0x3b515c(0x1a7),_0x29c69f[_0x3b515c(0x168)]=_0x3b515c(0x21b),_0x29c69f[_0x3b515c(0xde)]=_0x3b515c(0xf8),_0x29c69f[_0x3b515c(0x264)]=_0x3b515c(0x1f6),_0x29c69f[_0x3b515c(0x12d)]=_0x3b515c(0x136),_0x29c69f[_0x3b515c(0x1a2)]=_0x3b515c(0x13a),_0x29c69f['FfMRo']=_0x3b515c(0x272),_0x29c69f[_0x3b515c(0x173)]=_0x3b515c(0x23c),_0x29c69f[_0x3b515c(0x145)]='storage.multipartUploads.listParts',_0x29c69f[_0x3b515c(0x21a)]=_0x3b515c(0xeb),_0x29c69f[_0x3b515c(0x178)]='storage.objects.delete',_0x29c69f[_0x3b515c(0xdc)]='storage.objects.get',_0x29c69f[_0x3b515c(0x12b)]=_0x3b515c(0x1d1),_0x29c69f['xlhMC']='storage.objects.list',_0x29c69f[_0x3b515c(0x1b4)]=_0x3b515c(0xec),_0x29c69f[_0x3b515c(0x11f)]=_0x3b515c(0x193),_0x29c69f[_0x3b515c(0x1d6)]=_0x3b515c(0x199),_0x29c69f['RZpsv']=_0x3b515c(0x23b);const _0x56fc0c=_0x29c69f,_0x622349=await this[_0x3b515c(0x1f2)]();if(_0x622349){if(_0x56fc0c[_0x3b515c(0x156)](_0x56fc0c['YZVrz'],_0x56fc0c[_0x3b515c(0x20e)])){logger['info'](_0x56fc0c[_0x3b515c(0x1e0)]);return;}else return![];}logger['info'](_0x56fc0c['idOEb']);const _0x3a1840={};_0x3a1840['scopes']=[_0x56fc0c[_0x3b515c(0x11c)]],_0x3a1840[_0x3b515c(0x1fa)]=this[_0x3b515c(0x1ce)];const _0x3b8f84=await google['auth'][_0x3b515c(0x1fd)](_0x3a1840),_0x90346={};_0x90346[_0x3b515c(0xf2)]=[_0x56fc0c[_0x3b515c(0x218)],_0x56fc0c[_0x3b515c(0x149)],_0x56fc0c[_0x3b515c(0x271)],_0x56fc0c[_0x3b515c(0xea)],_0x56fc0c[_0x3b515c(0x268)],_0x56fc0c[_0x3b515c(0x19c)],_0x56fc0c[_0x3b515c(0x26d)],_0x56fc0c['cAOra'],_0x56fc0c[_0x3b515c(0x228)],_0x56fc0c['xUHyl'],_0x56fc0c[_0x3b515c(0xde)],_0x56fc0c[_0x3b515c(0x264)],_0x56fc0c['fsvMq'],_0x56fc0c[_0x3b515c(0x1a2)],_0x56fc0c[_0x3b515c(0x1dc)],_0x56fc0c['LpVbA'],_0x56fc0c['jdluu'],_0x56fc0c[_0x3b515c(0x21a)],_0x56fc0c[_0x3b515c(0x178)],_0x56fc0c[_0x3b515c(0xdc)],_0x56fc0c[_0x3b515c(0x12b)],_0x56fc0c[_0x3b515c(0x1d7)],_0x56fc0c[_0x3b515c(0x1b4)],_0x56fc0c[_0x3b515c(0x11f)]],_0x90346[_0x3b515c(0x187)]=_0x56fc0c['HbYiY'],await this[_0x3b515c(0x1b2)][_0x3b515c(0x1e9)]['roles'][_0x3b515c(0x21f)]({'parent':_0x3b515c(0x15e)+this[_0x3b515c(0xfd)],'requestBody':{'role':_0x90346,'roleId':this[_0x3b515c(0x190)]},'auth':_0x3b8f84});const _0x3e1264={};_0x3e1264[_0x3b515c(0x186)]=_0x3b515c(0x15e)+this['projectId'],_0x3e1264[_0x3b515c(0x110)]={},_0x3e1264[_0x3b515c(0x20c)]=_0x3b8f84,_0x3e1264[_0x3b515c(0x110)][_0x3b515c(0x18e)]=this[_0x3b515c(0x1cb)];const _0x53a91c=_0x3e1264;await this[_0x3b515c(0x1b2)][_0x3b515c(0x1ff)][_0x3b515c(0x13b)][_0x3b515c(0x21f)](_0x53a91c);let _0x5d2efb=await this[_0x3b515c(0x1fc)][_0x3b515c(0x1d9)]({'resource':_0x3b515c(0x15e)+this[_0x3b515c(0xfd)]});_0x5d2efb=_0x5d2efb[0x0]['bindings'];const _0x2c3d4d={};_0x2c3d4d[_0x3b515c(0x219)]=_0x3b515c(0x15e)+this[_0x3b515c(0xfd)]+_0x3b515c(0x119)+this[_0x3b515c(0x190)],_0x2c3d4d[_0x3b515c(0x213)]=[_0x3b515c(0x153)+this['serviceAccountName']+'@'+this[_0x3b515c(0xfd)]+_0x3b515c(0x106)],_0x5d2efb[_0x3b515c(0x1f9)](_0x2c3d4d);const _0x3f6668={};_0x3f6668[_0x3b515c(0x246)]=_0x5d2efb,await this['resourcemanagerClient'][_0x3b515c(0x210)]({'resource':_0x3b515c(0x15e)+this[_0x3b515c(0xfd)],'policy':_0x3f6668}),logger['info'](_0x56fc0c[_0x3b515c(0x150)]);}async[a3_0x3cb80c(0x124)](_0x193529=a3_0x3cb80c(0x1d5),_0x515117=[a3_0x3cb80c(0x1d5)]){const _0x4b4f88=a3_0x3cb80c,_0xb1ec09={};_0xb1ec09[_0x4b4f88(0x143)]=_0x4b4f88(0x10c),_0xb1ec09[_0x4b4f88(0x1f0)]=_0x4b4f88(0x11e),_0xb1ec09[_0x4b4f88(0x133)]=function(_0x38747d,_0x12080f){return _0x38747d===_0x12080f;},_0xb1ec09['UEqnO']='ooATu',_0xb1ec09['DmwyK']=_0x4b4f88(0x1d5),_0xb1ec09[_0x4b4f88(0x1dd)]=function(_0x183c4,_0x512e40){return _0x183c4===_0x512e40;},_0xb1ec09['wIzfn']='HIHKz';const _0x859c3f=_0xb1ec09,_0x5503ac={};_0x5503ac['type']=WS_EVENTS[_0x4b4f88(0x1c2)],_0x5503ac[_0x4b4f88(0x1b3)]=_0x859c3f[_0x4b4f88(0x143)],this[_0x4b4f88(0x1bf)][_0x4b4f88(0x1b5)](this[_0x4b4f88(0x14c)],_0x5503ac),logger[_0x4b4f88(0x14a)](_0x859c3f[_0x4b4f88(0x1f0)]);!_0x193529&&(_0x859c3f['aHVzd'](_0x859c3f[_0x4b4f88(0xe6)],_0x859c3f[_0x4b4f88(0xe6)])?_0x193529=_0x859c3f[_0x4b4f88(0x191)]:_0x3146c2[_0x4b4f88(0x163)]=_0x4610f7);if(!_0x515117||_0x859c3f[_0x4b4f88(0x1dd)](_0x515117[_0x4b4f88(0x242)],0x0)){if(_0x859c3f[_0x4b4f88(0x1dd)](_0x859c3f['wIzfn'],_0x859c3f[_0x4b4f88(0x27b)]))_0x515117=[_0x859c3f[_0x4b4f88(0x191)]];else return!![];}return await this[_0x4b4f88(0x132)](),await this['createCluster'](_0x193529,_0x515117),await this[_0x4b4f88(0x139)](),[_0x193529,_0x515117];}async['createCluster'](_0x3e8212=a3_0x3cb80c(0x1d5),_0x187b81=[a3_0x3cb80c(0x1d5)]){const _0x243e54=a3_0x3cb80c,_0xea15c8={};_0xea15c8[_0x243e54(0x26a)]='REGULAR',_0xea15c8[_0x243e54(0x167)]=_0x243e54(0x1e4),_0xea15c8[_0x243e54(0x236)]=_0x243e54(0x174),_0xea15c8[_0x243e54(0xfe)]=function(_0x43a009,_0xa8068e){return _0x43a009!==_0xa8068e;},_0xea15c8[_0x243e54(0x138)]=function(_0x186569,_0x2c89f3){return _0x186569===_0x2c89f3;},_0xea15c8['pzetz']=_0x243e54(0x22c),_0xea15c8[_0x243e54(0x11b)]='Creating\x20GKE\x20Cluster',_0xea15c8[_0x243e54(0x24d)]=_0x243e54(0x1ab),_0xea15c8[_0x243e54(0xf3)]=_0x243e54(0x206),_0xea15c8[_0x243e54(0x164)]='gkecluster.json',_0xea15c8[_0x243e54(0x141)]='utf-8',_0xea15c8[_0x243e54(0x14f)]=_0x243e54(0x169),_0xea15c8[_0x243e54(0x208)]=function(_0x1a46ee,_0x522cc4){return _0x1a46ee===_0x522cc4;},_0xea15c8[_0x243e54(0x1b7)]=_0x243e54(0x203),_0xea15c8[_0x243e54(0x1c3)]=function(_0x116389,_0x38a6da){return _0x116389*_0x38a6da;},_0xea15c8['rCngr']=function(_0x167342,_0x5b648a){return _0x167342*_0x5b648a;},_0xea15c8[_0x243e54(0x152)]=_0x243e54(0x245),_0xea15c8[_0x243e54(0xdf)]=_0x243e54(0x13c),_0xea15c8[_0x243e54(0x273)]=function(_0x4cc80a,_0x1512e8){return _0x4cc80a!==_0x1512e8;},_0xea15c8[_0x243e54(0x1ec)]=_0x243e54(0x15b),_0xea15c8[_0x243e54(0x1ed)]=_0x243e54(0x16e),_0xea15c8[_0x243e54(0x1de)]=_0x243e54(0x252),_0xea15c8[_0x243e54(0x15c)]=function(_0x210bc1,_0x482d88){return _0x210bc1===_0x482d88;},_0xea15c8['gTdEC']=_0x243e54(0x122);const _0x108a9a=_0xea15c8;try{if(_0x108a9a[_0x243e54(0x138)](_0x108a9a[_0x243e54(0x1d4)],_0x108a9a['pzetz'])){logger['info'](_0x108a9a[_0x243e54(0x11b)]);let _0x47d2da=await fs[_0x243e54(0xfc)](path[_0x243e54(0x13e)](__dirname,'..',_0x108a9a[_0x243e54(0x24d)],_0x108a9a[_0x243e54(0xf3)],_0x108a9a[_0x243e54(0x164)]),_0x108a9a[_0x243e54(0x141)]);_0x47d2da=JSON[_0x243e54(0x1a9)](_0x47d2da);let _0x13a84a=await fs[_0x243e54(0xfc)](path['join'](__dirname,'..',_0x108a9a[_0x243e54(0x24d)],_0x108a9a['HQWMs'],_0x108a9a['basoc']),_0x108a9a[_0x243e54(0x141)]);_0x13a84a=JSON[_0x243e54(0x1a9)](_0x13a84a);const _0xd0333f=global_registry['clusterAutoUpgrade'];_0x47d2da['name']=this[_0x243e54(0x1ee)],_0x47d2da[_0x243e54(0x100)][0x0]['config'][_0x243e54(0x126)]=global_registry['instanceType'],_0x47d2da[_0x243e54(0x100)][0x1][_0x243e54(0x155)]['machineType']=global_registry[_0x243e54(0x231)],_0x47d2da[_0x243e54(0x100)][0x0][_0x243e54(0x155)]['serviceAccount']=this[_0x243e54(0x1cb)]+'@'+this[_0x243e54(0xfd)]+'.iam.gserviceaccount.com',_0x47d2da['nodePools'][0x1][_0x243e54(0x155)][_0x243e54(0x277)]=this[_0x243e54(0x1cb)]+'@'+this[_0x243e54(0xfd)]+'.iam.gserviceaccount.com',_0x47d2da[_0x243e54(0x100)][0x0][_0x243e54(0xdd)][_0x243e54(0x1f1)]=global_registry[_0x243e54(0xee)],_0x47d2da['nodePools'][0x1][_0x243e54(0xdd)][_0x243e54(0x1f1)]=0x0,_0x47d2da['nodePools'][0x0][_0x243e54(0x101)]['autoUpgrade']=_0xd0333f,_0x47d2da['nodePools'][0x1][_0x243e54(0x101)][_0x243e54(0x221)]=_0xd0333f,_0x47d2da['nodePools'][0x0]['autoscaling'][_0x243e54(0x253)]=global_registry['maxNodes'],_0x47d2da[_0x243e54(0x100)][0x1][_0x243e54(0xdd)]['maxNodeCount']=global_registry[_0x243e54(0x1d8)],_0x47d2da[_0x243e54(0x19a)]=global_registry[_0x243e54(0x26c)],_0x47d2da[_0x243e54(0x260)]=[_0x13a84a[global_registry['clusterRegion']][0x0]],_0x47d2da[_0x243e54(0x159)]=_0x243e54(0x15e)+this[_0x243e54(0xfd)]+_0x243e54(0x166)+_0x3e8212,_0x47d2da[_0x243e54(0x1c8)]=_0x243e54(0x15e)+this['projectId']+_0x243e54(0xda)+global_registry['clusterRegion']+_0x243e54(0x26e)+_0x187b81[0x0];if(_0xd0333f){if(_0x108a9a[_0x243e54(0x208)](_0x108a9a[_0x243e54(0x1b7)],_0x108a9a['wgtVd'])){const _0xae4883={};_0xae4883['channel']=_0x108a9a[_0x243e54(0x26a)],_0x47d2da['releaseChannel']=_0xae4883;}else{const _0xed436a={};_0xed436a[_0x243e54(0x275)]=_0x108a9a[_0x243e54(0x26a)],_0x372b1b[_0x243e54(0x165)]=_0xed436a;}}const _0x4e83aa=await this[_0x243e54(0x181)][_0x243e54(0x144)]({'cluster':_0x47d2da,'parent':'projects/'+this[_0x243e54(0xfd)]+_0x243e54(0x27e)+global_registry[_0x243e54(0x26c)]});await this['webSocketUtils'][_0x243e54(0x22e)](_0x108a9a['kxcuy'](_0x108a9a[_0x243e54(0xf5)](0x7,0x3c),0x3e8));}else _0x3309ea['info'](_0x108a9a['UfLdu']);}catch(_0x24457b){if(_0x108a9a['peUvE'](_0x108a9a[_0x243e54(0x152)],_0x108a9a['rHDXv'])){const _0x29120e=await this[_0x243e54(0x112)]();if(_0x29120e)_0x108a9a[_0x243e54(0x273)](_0x108a9a[_0x243e54(0x1ec)],_0x108a9a[_0x243e54(0x1ed)])?(logger['info'](_0x108a9a['tDyhJ'],_0x24457b['stack']),await this['deleteCluster']()):(_0x5227b[_0x243e54(0x163)](_0x108a9a['oUook']),_0x392e8c['exit'](0x1));else{if(_0x108a9a[_0x243e54(0x15c)](_0x108a9a[_0x243e54(0x12c)],_0x108a9a['gTdEC']))logger[_0x243e54(0x14a)](_0x108a9a[_0x243e54(0x167)]);else return _0x108a9a[_0x243e54(0xfe)](_0x8ed5e5['clusterRegion'],_0x4e2620[0x0])&&(_0x19326d[_0x243e54(0x26c)]=_0x420aeb[0x0],this[_0x243e54(0x266)]()),!![];}throw _0x24457b;}else _0x5eb14b[_0x243e54(0x10e)]=![];}}async[a3_0x3cb80c(0x151)](_0x938e13,_0x11b7c0,_0x4059c1,_0x6268a5,_0x36313a){}async[a3_0x3cb80c(0x139)](){const _0x57df1d=a3_0x3cb80c;cp[_0x57df1d(0x240)](_0x57df1d(0x21e)+this[_0x57df1d(0x1ee)]+_0x57df1d(0x230)+global_registry[_0x57df1d(0x26c)]+'\x20--quiet\x20--user-output-enabled=false');}async[a3_0x3cb80c(0x18b)](_0x3020dd,_0x2b017d){const _0x599703=a3_0x3cb80c,_0x24790c={'waEai':'Service\x20account\x20already\x20exists,\x20skipping','eJPPB':function(_0x287721,_0xf8725f){return _0x287721===_0xf8725f;},'jSkUB':function(_0x77bd9a,_0x51f75e){return _0x77bd9a!==_0x51f75e;},'ciokd':'ABSje','YylIv':_0x599703(0x24f),'ypuFF':function(_0x117223,_0x2f1f2a){return _0x117223(_0x2f1f2a);},'VtZlV':function(_0x55af59,_0x1f3fee){return _0x55af59(_0x1f3fee);},'OOvaf':_0x599703(0xe7),'hWIfw':function(_0x2d1960,_0x3f304f){return _0x2d1960===_0x3f304f;},'iUVYd':_0x599703(0x25e),'eGPgs':_0x599703(0x1db),'oBhbZ':_0x599703(0x222),'PqNOy':_0x599703(0x17d),'GSpAa':function(_0x1b5bea,_0xcee4a3){return _0x1b5bea===_0xcee4a3;},'qIzxB':'ErePb','iIXoF':_0x599703(0x27f),'dXnlf':_0x599703(0x1cf)};try{if(_0x24790c['jSkUB'](_0x24790c[_0x599703(0x1eb)],_0x24790c[_0x599703(0x105)])){await _0x24790c[_0x599703(0x244)](deleteAgent,_0x3020dd),await _0x24790c[_0x599703(0xe2)](deleteRoutingDeps,_0x3020dd),logger['info'](_0x599703(0x129)+this['clusterName']);const _0x5c86a9=await this[_0x599703(0x181)][_0x599703(0x18b)]({'name':_0x599703(0x15e)+this[_0x599703(0xfd)]+'/locations/'+global_registry[_0x599703(0x26c)]+'/clusters/'+this[_0x599703(0x1ee)]});if(_0x24790c['eJPPB'](_0x5c86a9[0x0]?.['status'],_0x24790c['OOvaf'])||_0x24790c[_0x599703(0x1b8)](_0x5c86a9[0x0]?.[_0x599703(0x10e)],_0x24790c['iUVYd'])){if(_0x24790c['jSkUB'](_0x24790c[_0x599703(0x27a)],_0x24790c['oBhbZ']))return!![];else _0x31cdb4[_0x599703(0x1f9)](_0x108bb2);}logger[_0x599703(0x14a)](_0x24790c['PqNOy']);}else{_0x586b62['info'](_0x24790c[_0x599703(0x196)]);return;}}catch(_0x383d72){if(_0x24790c[_0x599703(0x162)](_0x24790c['qIzxB'],_0x24790c[_0x599703(0xed)]))_0x24790c[_0x599703(0x160)](_0xcf8e8e['name'],this[_0x599703(0x1ee)])&&_0x3e57d5[_0x599703(0x1f9)](_0xf9490b);else{logger['info'](_0x24790c[_0x599703(0x16f)]);throw _0x383d72;}}}async[a3_0x3cb80c(0x267)](_0x22bf44){const _0x341af3=a3_0x3cb80c,_0x40903f={};_0x40903f['wBAKH']=function(_0x3a519b,_0x302409){return _0x3a519b!==_0x302409;},_0x40903f[_0x341af3(0x1a6)]=_0x341af3(0x108),_0x40903f[_0x341af3(0x170)]=function(_0x1b14ad,_0x44a991){return _0x1b14ad>_0x44a991;},_0x40903f['hkDMj']=function(_0x387bb8,_0x2841f6){return _0x387bb8===_0x2841f6;},_0x40903f['pPsxD']=function(_0x577c44,_0xeaae7c){return _0x577c44===_0xeaae7c;},_0x40903f[_0x341af3(0x19b)]=_0x341af3(0x1c6),_0x40903f[_0x341af3(0x1bc)]=function(_0x3fd8d6,_0x4c47bc){return _0x3fd8d6===_0x4c47bc;},_0x40903f['VFsSJ']=_0x341af3(0x1ca);const _0xe3b53b=_0x40903f;try{if(_0xe3b53b[_0x341af3(0x107)](_0xe3b53b[_0x341af3(0x1a6)],_0xe3b53b[_0x341af3(0x1a6)]))_0x4a1ad7[_0x341af3(0xff)](_0x3429b9);else{const _0x12c9f4=await this[_0x341af3(0x255)][_0x341af3(0x1fb)]({'project':this[_0x341af3(0xfd)],'network':_0x22bf44});if(_0xe3b53b[_0x341af3(0x170)](_0x12c9f4[_0x341af3(0x242)],0x0)&&_0xe3b53b[_0x341af3(0x224)](_0x12c9f4[0x0][_0x341af3(0x186)],_0x22bf44))return _0xe3b53b[_0x341af3(0x261)](_0xe3b53b[_0x341af3(0x19b)],_0xe3b53b['pyBdm'])?!![]:[!![],_0x70e9d3];}}catch(_0x1c3abe){if(_0xe3b53b[_0x341af3(0x1bc)](_0xe3b53b['VFsSJ'],_0xe3b53b['VFsSJ']))return![];else _0x3e712e[_0x341af3(0x26c)]=_0x4d0f66[0x0],this['updateClusterRegion']();}return![];}async[a3_0x3cb80c(0x1e5)](_0x5b7304,_0xe255b8){const _0x709234=a3_0x3cb80c,_0x36beee={};_0x36beee[_0x709234(0xf4)]=function(_0x1f0f56,_0x489306){return _0x1f0f56-_0x489306;},_0x36beee[_0x709234(0x226)]=function(_0x39348b,_0x4e4966){return _0x39348b===_0x4e4966;},_0x36beee[_0x709234(0x1f5)]=_0x709234(0x194),_0x36beee[_0x709234(0x200)]=_0x709234(0x251),_0x36beee[_0x709234(0x154)]=function(_0x14590e,_0x31c4cc){return _0x14590e!==_0x31c4cc;},_0x36beee[_0x709234(0x183)]='irLfv',_0x36beee['FDBOV']=_0x709234(0x158),_0x36beee[_0x709234(0x216)]='yFyMq',_0x36beee[_0x709234(0x14d)]=function(_0x7a6ce8,_0x53f839){return _0x7a6ce8!==_0x53f839;},_0x36beee[_0x709234(0x279)]='ZomDh';const _0x22caf8=_0x36beee;try{if(_0x22caf8['QIpTM'](_0x22caf8[_0x709234(0x200)],_0x22caf8[_0x709234(0x200)])){const _0x4b576f=await this[_0x709234(0x255)][_0x709234(0x1fb)]({'project':this['projectId'],'network':_0xe255b8});for(const _0x45aafe of _0x4b576f[0x0][_0x709234(0xe4)]){if(_0x22caf8[_0x709234(0x154)](_0x22caf8[_0x709234(0x183)],_0x22caf8[_0x709234(0x183)]))return![];else{const _0x1db758=_0x709234(0xe1)+this[_0x709234(0xfd)]+'/regions/'+global_registry[_0x709234(0x26c)]+_0x709234(0x26e)+_0x5b7304[0x0];if(_0x22caf8[_0x709234(0x226)](_0x1db758,_0x45aafe)){if(_0x22caf8[_0x709234(0x226)](_0x22caf8[_0x709234(0x20f)],_0x22caf8['ahHVt']))_0x1c76b2[_0x709234(0x26c)]=_0x1e3d79[_0x22caf8[_0x709234(0xf4)](_0x46d9ff,0x1)],this[_0x709234(0x266)]();else return[!![],_0x5b7304];}}}}else _0x4b4ffb[_0x709234(0x240)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x709234(0x1ee)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+_0x23e27f[_0x709234(0x26c)]+'\x20--quiet\x20--user-output-enabled=false');}catch(_0x197aaf){if(_0x22caf8[_0x709234(0x14d)](_0x22caf8[_0x709234(0x279)],_0x22caf8[_0x709234(0x279)])){const _0x3929b8=_0x260972[0x0]?.[_0x709234(0x239)]?.[_0x709234(0x1a0)];return _0x3929b8&&_0x22caf8[_0x709234(0x226)](_0x3929b8[_0x709234(0x1b6)](),_0x22caf8[_0x709234(0x1f5)]);}else return logger['error'](_0x709234(0x1e8)+_0x5b7304+'.\x20Error:\x20'+_0x197aaf),[![],[]];}return[![],[]];}async[a3_0x3cb80c(0x209)](){const _0x1b12d3=a3_0x3cb80c,_0x14394a={};_0x14394a[_0x1b12d3(0x23f)]=function(_0x51dff2,_0x3afc9a){return _0x51dff2!==_0x3afc9a;},_0x14394a[_0x1b12d3(0x197)]=_0x1b12d3(0xe9),_0x14394a[_0x1b12d3(0x18f)]=_0x1b12d3(0x146);const _0x1618c6=_0x14394a,_0x1525cc=await this['networkClient'][_0x1b12d3(0x142)]({'project':this[_0x1b12d3(0xfd)]}),_0x508856={};_0x508856[_0x1b12d3(0x1df)]=global_registry[_0x1b12d3(0x16d)],_0x508856[_0x1b12d3(0x120)]=global_registry[_0x1b12d3(0x205)],_0x508856['cloudProvider']=GCP,_0x508856[_0x1b12d3(0x20b)]=[];const _0x3e61ce=_0x508856;for(const _0x5c2a0e of _0x1525cc){if(_0x1618c6['OFMKc'](_0x1618c6[_0x1b12d3(0x197)],_0x1618c6[_0x1b12d3(0x18f)]))_0x3e61ce['vpcInfo'][_0x1b12d3(0x1f9)](_0x5c2a0e);else return!![];}const _0x252485={};_0x252485['type']=WS_EVENTS[_0x1b12d3(0x27c)],_0x252485[_0x1b12d3(0x1b3)]=_0x3e61ce,this[_0x1b12d3(0x1bf)][_0x1b12d3(0x1b5)](this[_0x1b12d3(0x14c)],_0x252485);}async[a3_0x3cb80c(0x266)](){const _0x23685d=a3_0x3cb80c,_0x3b65bb={'sPqay':function(_0x35c23b,_0x781d1e,_0xb1ba79){return _0x35c23b(_0x781d1e,_0xb1ba79);},'ZPwWU':_0x23685d(0x214),'fNNNx':'json'},_0x149731=_0x23685d(0x1e1)+AG_API_URL+_0x23685d(0x24c),_0x687068={};_0x687068[_0x23685d(0x201)]=global_registry[_0x23685d(0x103)];const _0x401de4={};_0x401de4['newRegion']=global_registry['clusterRegion'];const _0x3926a9={'searchParams':_0x687068,'json':_0x401de4,'headers':_0x3b65bb['sPqay'](getAuthHeader,global_registry[_0x23685d(0x16d)],global_registry[_0x23685d(0x205)]),'method':_0x3b65bb[_0x23685d(0xfa)],'responseType':_0x3b65bb[_0x23685d(0x198)],'throwHttpErrors':![]},_0x5c47a6=await _0x3b65bb[_0x23685d(0x131)](got,_0x149731,_0x3926a9);}async[a3_0x3cb80c(0x14e)](){const _0xd24ff5=a3_0x3cb80c,_0xe79701={'DPnQb':function(_0x22db51,_0x52c40d){return _0x22db51(_0x52c40d);},'swTRB':_0xd24ff5(0xf1),'dVJpi':'Intercepted','Warqv':_0xd24ff5(0xe3)},_0x1b936d={};_0x1b936d[_0xd24ff5(0x10e)]=![],_0x1b936d['error']=null,_0x1b936d[_0xd24ff5(0x232)]='';const _0x49a0d8=_0x1b936d;try{const _0x1e4f62=await _0xe79701['DPnQb'](runCommand,_0xe79701[_0xd24ff5(0x249)]);_0x1e4f62['startsWith'](_0xe79701[_0xd24ff5(0x229)])?logger['warn'](_0x1e4f62):logger[_0xd24ff5(0x276)](_0x1e4f62),_0x49a0d8['status']=!![],_0x49a0d8[_0xd24ff5(0x232)]=_0xe79701[_0xd24ff5(0x109)];}catch(_0x1d3ceb){logger[_0xd24ff5(0x163)](_0xd24ff5(0x18d)+_0x1d3ceb+_0xd24ff5(0x1d3)+_0x1d3ceb[_0xd24ff5(0x184)]),_0x49a0d8[_0xd24ff5(0x232)]=_0xd24ff5(0x258)+_0x1d3ceb,_0x49a0d8[_0xd24ff5(0x163)]=_0x1d3ceb;}return _0x49a0d8;}async[a3_0x3cb80c(0x1be)](){const _0x3f98fe=a3_0x3cb80c,_0x431f25={};_0x431f25['xlDtC']=_0x3f98fe(0x1e7),_0x431f25[_0x3f98fe(0x1ef)]=_0x3f98fe(0x111);const _0xdcc2bf=_0x431f25,_0x218173={};_0x218173[_0x3f98fe(0x10e)]=![],_0x218173['error']=null,_0x218173[_0x3f98fe(0x232)]='';const _0x37b70b=_0x218173;try{let _0x205325='';const _0x46a3cf=_0x3f98fe(0x15e)+this[_0x3f98fe(0xfd)],[_0x25629d]=await this['resourcemanagerClient'][_0x3f98fe(0x247)]({'resource':_0x46a3cf,'permissions':Object['keys'](PERMISSIONS)});_0x37b70b[_0x3f98fe(0x10e)]=!![],logger[_0x3f98fe(0x276)](_0x3f98fe(0x262)+_0x46a3cf+':\x20'+JSON[_0x3f98fe(0x172)](_0x25629d)),Object[_0x3f98fe(0xfb)](PERMISSIONS)['forEach'](([_0xd61d64,_0x44b0a3])=>{const _0x3de19f=_0x3f98fe,_0x3fa929=_0x25629d[_0x3de19f(0x10a)]['includes'](_0xd61d64);_0x205325+='\x0a\x09'+_0x44b0a3+_0x3de19f(0x1d3)+(_0x3fa929?_0xdcc2bf[_0x3de19f(0x16c)]:_0xdcc2bf['BNDSD']),!_0x3fa929&&(_0x37b70b['status']=![]);}),_0x37b70b['data']=_0x205325;}catch(_0x5d9ae3){_0x37b70b[_0x3f98fe(0x163)]=_0x5d9ae3;}return _0x37b70b;}}const a3_0x1c7d8c={};function a3_0xc89d(_0x21701d,_0x3d4838){const _0x179097=a3_0x1790();return a3_0xc89d=function(_0xc89d4b,_0x38c2b4){_0xc89d4b=_0xc89d4b-0xda;let _0xbac3c3=_0x179097[_0xc89d4b];return _0xbac3c3;},a3_0xc89d(_0x21701d,_0x3d4838);}a3_0x1c7d8c[a3_0x3cb80c(0x278)]=GoogleCloudProvider,module[a3_0x3cb80c(0x21d)]=a3_0x1c7d8c;function a3_0x1790(){const _0x1fa964=['includedPermissions','HQWMs','drEBo','rCngr','eMrne','getUserInput','storage.buckets.listTagBindings','581651SYKOYI','ZPwWU','entries','readFileAsync','projectId','peUvE','warn','nodePools','management','bynGv','gridProfileId','xMDfK','YylIv','.iam.gserviceaccount.com','wBAKH','zndRJ','Warqv','permissions','HIuJh','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','gHyuQ','status','DahoA','requestBody','denied','isClusterPresent','6HvNWqu','storage.buckets.deleteTagBinding','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','KitGM','gcp_credentials.json','NJUsL','/roles/','7196620iPebPe','oJICg','HtUZr','IARsp','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','Qkrli','accessKey','lMKeT','imClv','QRWED','setupNewCluster','init','machineType','replace','ifvhv','Deleting\x20the\x20cluster\x20','../utils/userInput','pRoNk','gTdEC','fsvMq','clusters','mdDbC','dHkuo','sPqay','setupServiceAccount','aHVzd','util','cAOra','storage.buckets.update','IeWuQ','DaxSm','updateWindowsNodeGroup','storage.multipartUploads.abort','serviceAccounts','ClEHD','zDRnP','join','storage.buckets.createTagBinding','/serviceAccounts/','jwijw','list','pDXST','createCluster','jdluu','dNnkw','UerhQ','LVpbm','sIqll','info','../config/logger','rws','LAacE','isCliToolInstalled','basoc','RZpsv','setupHubHa','xtMCV','serviceAccount:','QvnVx','config','WzzRr','isBrowserstackCluster','cnYEN','network','storage.buckets.get','xHryG','QNlwB','.\x20Error:\x20','projects/','log','eJPPB','turboscale_custom_role','GSpAa','error','MnuKT','releaseChannel','/global/networks/','UfLdu','xUHyl','regionmap.json','aQIeF','../permissions/GCP.json','xlDtC','bstackUsername','BrxTr','dXnlf','DJzcQ','ZBVUw','stringify','LpVbA','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','exec','split','vntJD','ooUhc','ghLdP','IWLjN','./CloudProvider','FZsDl','Cluster\x20deletion\x20completed','cloudProviderName','clusterCaCertificate','xsfqA','containerClient','ohcEX','CFBgR','stack','MPWjy','name','title','YZVrz','663568oPPjCn','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','deleteCluster','kAPXF','error\x20:\x20','accountId','NTjtq','customRoleName','DmwyK','VSFeU','storage.objects.update','browserstack','Eexip','waEai','WoIiz','fNNNx','Turboscale\x20Custom\x20Role','location','pyBdm','DBJuY','848vXlfVB','gcloud\x20auth\x20login\x20--cred-file=','zcIqE','managedby','parent','DVhfL','@google-cloud/container','ZaZoo','wfAuK','JWHUs','storage.buckets.list','got','parse','Found\x20cluster\x20with\x20name\x20\x27','templates','yBTtA','ProHA','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','utf-8','rEWeN','accounts','iamClient','message','KYddZ','sendEventToBackend','toLowerCase','wgtVd','hWIfw','rzPRB','YyyLB','getGridHostname','lnenP','AXrOv','checkAccess','webSocketUtils','NhJbG','707555NpkJDj','LOG','kxcuy','ywLwh','RhUez','QUAAS','NTMDm','subnetwork','ydkhh','HvCLU','serviceAccountName','rNCBp','concat','credentialsPath','GKE\x20Cluster\x20deletion\x20failed','QrFoN','storage.objects.getIamPolicy','cNtEU','\x20:\x20','pzetz','default','HbYiY','xlhMC','maxNodes','getIamPolicy','gUvER','guObK','FfMRo','zLXoU','tDyhJ','username','vEATT','https://','Creating\x20service\x20account','scopes','Cluster\x20creation\x20failed','isSubnetsValid','qUIzE','allowed','Cannot\x20find\x20subnets\x20','organizations','yIZko','ciokd','LPiOm','OYyBq','clusterName','BNDSD','SckzL','minNodeCount','checkServiceAccount','sAibv','XjiaK','dEAyu','storage.buckets.setIamPolicy','getClusterInfo','storage.buckets.getObjectInsights','push','keyFile','get','resourcemanagerClient','getClient','cyflW','projects','TfYzm','profileId','getCluster','NvpyO','JDEOx','bstackAccesskey','gcpresources','IGCbv','rUUwu','sendGCPInfoToHST','6822BtphoN','vpcInfo','auth','YbBUH','PXWwG','FDBOV','setIamPolicy','wqMtP','iam.serviceAccounts.signBlob','members','PUT','loadBalancer','ahHVt','child_process','Adpvf','role','qYmQv','storage.buckets.listEffectiveTags','JfNMl','exports','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','create','YUOWM','autoUpgrade','OMgMm','626337GFPzyd','hkDMj','FPTef','QIpTM','MYSHK','ohusH','dVJpi','masterAuth','listClusters','Uodgd','UDjbb','delay','../utils/gridComponents','\x20--windows-os-version=ltsc2022\x20--region\x20','instanceType','data','storage.buckets.delete','fixpG','yOCEt','oUook','exit','SbMGE','resourceLabels','KIigQ','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','storage.multipartUploads.list','yBjNb','toString','OFMKc','execSync','writeFileSync','length','0|7|3|2|6|1|8|5|4','ypuFF','GCCfJ','bindings','testIamPermissions','BimQT','swTRB','project_id','KubeConfigTemplate.yaml','/packages/cli/update-cluster-region','JPiiA','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--no-user-output-enabled','Mcrxz','cJLtl','IOnWl','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','maxNodeCount','txPDj','networkClient','EDRCa','sendResourceDataToHST','Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20','AayUQ','sgise','JotRs','ingress','430878hqDusZ','DONE','gke_','locations','pPsxD','permissions\x20check\x20response\x20for\x20','MkgFS','WbXNl','MvoLh','updateClusterRegion','isVPCPresent','xXgyM','includes','OKUYV','NetworksClient','clusterRegion','jpoYv','/subnetworks/','kLYbr','clSjP','bHyDf','storage.multipartUploads.create','kgzdA','Service\x20account\x20already\x20exists,\x20skipping','channel','debug','serviceAccount','GoogleCloudProvider','NnNmk','eGPgs','wIzfn','RESOURCES','setCachedCredsInRegistry','/locations/','tVQYV','oSXhH','/regions/','XCfsB','ILVRV','autoscaling','msqaF','rHDXv','@google-cloud/compute','https://www.googleapis.com/compute/v1/projects/','VtZlV','cli\x20tool\x20is\x20installed','subnetworks','xYZvU','UEqnO','RUNNING','eVdVq','BGKPB','ujEWd','storage.objects.create','storage.objects.setIamPolicy','iIXoF','minNodes','josrm','1KEhfCB','gcloud\x20--version'];a3_0x1790=function(){return _0x1fa964;};return a3_0x1790();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x536044=a4_0x3bb5;(function(_0x4c5dc6,_0x46fbaa){const _0x5dfdb6=a4_0x3bb5,_0x158f0e=_0x4c5dc6();while(!![]){try{const _0x4257c6=-parseInt(_0x5dfdb6(0x1ea))/0x1+parseInt(_0x5dfdb6(0x1f9))/0x2+parseInt(_0x5dfdb6(0x1dc))/0x3*(-parseInt(_0x5dfdb6(0x1e1))/0x4)+parseInt(_0x5dfdb6(0x1d6))/0x5*(-parseInt(_0x5dfdb6(0x1f4))/0x6)+parseInt(_0x5dfdb6(0x1e3))/0x7+parseInt(_0x5dfdb6(0x1ee))/0x8+parseInt(_0x5dfdb6(0x1e2))/0x9*(-parseInt(_0x5dfdb6(0x1d7))/0xa);if(_0x4257c6===_0x46fbaa)break;else _0x158f0e['push'](_0x158f0e['shift']());}catch(_0xfe0317){_0x158f0e['push'](_0x158f0e['shift']());}}}(a4_0x5909,0x3e535));const {AWSCloudProvider}=require('./AWS'),{GoogleCloudProvider}=require(a4_0x536044(0x1db)),{installAzurePackages,IsNodeCompatibleWithAzure}=require(a4_0x536044(0x1f6)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x536044(0x1f2)),{sendInstrumentationEvent}=require(a4_0x536044(0x1dd)),{logger}=require('../config/logger');exports[a4_0x536044(0x1da)]=async(_0x99a7e0,_0x3c1b61,_0x9a664,_0x1d9c1e,_0x373dbe,_0x3b50d2)=>{const _0x6a3954=a4_0x536044,_0x57e6ef={'aDLCY':function(_0x1fa800){return _0x1fa800();},'uiDmy':function(_0x3bde58,_0x39155d){return _0x3bde58(_0x39155d);},'HPsfr':_0x6a3954(0x1e8),'iSZTd':function(_0x525c5f,_0x184ce5,_0x4c8194,_0x481795,_0x44cd4c,_0x3fc3dd,_0xb2b6f9){return _0x525c5f(_0x184ce5,_0x4c8194,_0x481795,_0x44cd4c,_0x3fc3dd,_0xb2b6f9);},'Bzhww':_0x6a3954(0x1f8),'dCWKV':'grid-spawning-failed'};switch(_0x99a7e0){case AWS:{const _0x1f3dfb=new AWSCloudProvider(_0x3c1b61,_0x9a664,_0x1d9c1e,_0x373dbe);return await _0x1f3dfb[_0x6a3954(0x1ed)]();}case GCP:{const _0x4956ae=new GoogleCloudProvider(_0x3c1b61,_0x9a664,_0x1d9c1e,_0x373dbe);return await _0x4956ae[_0x6a3954(0x1ed)]();}case AZURE:{try{await _0x57e6ef[_0x6a3954(0x1f7)](installAzurePackages);const {AzureCloudProvider:_0x3de73d}=_0x57e6ef[_0x6a3954(0x1e5)](require,_0x57e6ef[_0x6a3954(0x1ec)]),_0x34fc86=new _0x3de73d(_0x3c1b61,_0x9a664,_0x1d9c1e,_0x373dbe);return await _0x34fc86[_0x6a3954(0x1ed)]();}catch(_0x5b5070){const _0x4702f9=_0x6a3954(0x1d8)+process[_0x6a3954(0x1df)][_0x6a3954(0x1e0)]+_0x6a3954(0x1f3)+_0x5b5070[_0x6a3954(0x1e4)]+_0x6a3954(0x1f0)+_0x5b5070[_0x6a3954(0x1eb)];logger[_0x6a3954(0x1f5)](_0x4702f9);const _0x165d40={};_0x165d40['error']=_0x4702f9,await _0x57e6ef[_0x6a3954(0x1f1)](sendInstrumentationEvent,_0x3b50d2,_0x57e6ef['Bzhww'],messageTypes['ERROR'],_0x57e6ef['dCWKV'],_0x165d40,_0x3b50d2),process[_0x6a3954(0x1de)](0x1);}}default:logger['error'](_0x6a3954(0x1e9)+_0x99a7e0),process[_0x6a3954(0x1de)](0x1);}},exports[a4_0x536044(0x1e7)]=async(_0x5ed356,_0xa3c6e8,_0x258823,_0x6ac11e,_0x473364,_0x4e2e22)=>{const _0x45da8e=a4_0x536044,_0x5ca1fd={'ArQlg':function(_0x2cf82e){return _0x2cf82e();},'MfNpl':function(_0x5a0175){return _0x5a0175();},'eHAWw':function(_0x59c9be,_0x2ba2f6){return _0x59c9be(_0x2ba2f6);},'wfbrQ':_0x45da8e(0x1e8)};switch(_0x5ed356){case AWS:return new AWSCloudProvider(_0xa3c6e8,_0x258823,_0x6ac11e,_0x473364);case GCP:return new GoogleCloudProvider(_0xa3c6e8,_0x258823,_0x6ac11e,_0x473364);case AZURE:{!_0x5ca1fd['ArQlg'](IsNodeCompatibleWithAzure)&&(logger[_0x45da8e(0x1f5)](_0x45da8e(0x1d8)+process['versions'][_0x45da8e(0x1e0)]+_0x45da8e(0x1d9)),process[_0x45da8e(0x1de)](0x1));await _0x5ca1fd[_0x45da8e(0x1e6)](installAzurePackages);const {AzureCloudProvider:_0x567c9d}=_0x5ca1fd['eHAWw'](require,_0x5ca1fd[_0x45da8e(0x1ef)]);return new _0x567c9d(_0xa3c6e8,_0x258823,_0x6ac11e,_0x473364);}default:logger[_0x45da8e(0x1f5)](_0x45da8e(0x1e9)+_0x5ed356),process[_0x45da8e(0x1de)](0x1);}};function a4_0x3bb5(_0x2a8f59,_0x2a8b0f){const _0x5909f7=a4_0x5909();return a4_0x3bb5=function(_0x3bb50d,_0x12f043){_0x3bb50d=_0x3bb50d-0x1d6;let _0x721a9e=_0x5909f7[_0x3bb50d];return _0x721a9e;},a4_0x3bb5(_0x2a8f59,_0x2a8b0f);}function a4_0x5909(){const _0x56d25d=['2087134UDCtyC','message','uiDmy','MfNpl','getCloudProviderObjectWithOutInit','./Azure','Unknown\x20cloud\x20provider\x20found\x20-\x20','7073RIVYck','stack','HPsfr','init','3528136xILtFt','wfbrQ',',\x20stacktrace:\x20','iSZTd','../config/constants','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20','24OGyzFP','error','../utils/utilityMethods','aDLCY','create-grid-called','845876gKHgrF','365100rHjwME','740WMDamx','Current\x20Node.js\x20version\x20','\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.','getCloudProviderObject','./GoogleCloudProvider','15jDfQBj','../utils/instrumentationUtils','exit','versions','node','70796aQRJZI','63144mRZtGJ'];a4_0x5909=function(){return _0x56d25d;};return a4_0x5909();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5_0x2322d0=a5_0x4521;(function(_0x4e04c2,_0xb32ca9){const _0x552fc6=a5_0x4521,_0x275495=_0x4e04c2();while(!![]){try{const _0x16028a=parseInt(_0x552fc6(0x1ab))/0x1*(-parseInt(_0x552fc6(0x1e4))/0x2)+-parseInt(_0x552fc6(0x1c2))/0x3*(-parseInt(_0x552fc6(0x1c0))/0x4)+parseInt(_0x552fc6(0x1d0))/0x5*(-parseInt(_0x552fc6(0x1c8))/0x6)+-parseInt(_0x552fc6(0x1ee))/0x7*(parseInt(_0x552fc6(0x1f7))/0x8)+parseInt(_0x552fc6(0x1bf))/0x9*(-parseInt(_0x552fc6(0x1ec))/0xa)+-parseInt(_0x552fc6(0x1eb))/0xb*(-parseInt(_0x552fc6(0x1d2))/0xc)+parseInt(_0x552fc6(0x1c3))/0xd*(parseInt(_0x552fc6(0x1f6))/0xe);if(_0x16028a===_0xb32ca9)break;else _0x275495['push'](_0x275495['shift']());}catch(_0x4d577b){_0x275495['push'](_0x275495['shift']());}}}(a5_0x3794,0x21794));function a5_0x4521(_0x2a2035,_0x463cc3){const _0x3794a5=a5_0x3794();return a5_0x4521=function(_0x45211e,_0x867fa1){_0x45211e=_0x45211e-0x19c;let _0x2d4e28=_0x3794a5[_0x45211e];return _0x2d4e28;},a5_0x4521(_0x2a2035,_0x463cc3);}const fs=require('fs'),got=require(a5_0x2322d0(0x1b9)),{v4:uuidv4}=require(a5_0x2322d0(0x1ae)),{inputConfirmation,closeInput}=require(a5_0x2322d0(0x1dd)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x2322d0(0x1e2)),{getCredentialsPath,getAuthHeader}=require(a5_0x2322d0(0x1d8)),{sendInstrumentationEvent}=require(a5_0x2322d0(0x1d7));function a5_0x3794(){const _0x434ba6=['CEAaA','../utils/instrumentationUtils','../utils/utilityMethods','SjjaT','TTZyf','configure','KsKXL','../utils/userInput','KkOaF','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','cvGce','xNuBf','../config/constants','Ueqrx','168856skyJhn','core:','readFileSync','ebsPJ','init-not-called','\x20\x20grid-profile:\x20','length','429mtpBIZ','227860DdzVSO','INFO','14oXjFVw','/packages/cli/configure','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','claXN','NLVLh','Browserstack','GztTo','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','28TnDslT','153376UicliJ','log','body','name','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','ERROR','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','statusCode','Failed\x20to\x20configure\x20resources!\x20Error:\x20','unknown-error','iLZeV','help','username','epilogue','requestId','invalid-selection','cNLYK','vAQBm','exit','QIuuD','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','MhimS','uFEfA','recommendCommands','3eUsAQn','https://','profileId','uuid','error','strict','jirtU','NLokJ','UskqN','LvSRK','StWNB','ErUaR','crqHL','argv','got','BptdB','OFBIU','stack','usage','xeVhu','27SurIhk','577452BSPnyd','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','3SGXXwh','1582386EwajSG','parse','FUxnV','unauthorised','command','54EuPQXz','stringify','LButG','\x20\x20username:\x20','toLowerCase','kpMhg','TFLCz','JgYFP','59275ucElcd','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','66456MPaiaL','invalid-input','GET','bNUUm'];a5_0x3794=function(){return _0x434ba6;};return a5_0x3794();}exports[a5_0x2322d0(0x1c7)]=a5_0x2322d0(0x1db),exports['desc']=a5_0x2322d0(0x1fb),exports['builder']=function(_0x395b40){const _0x359337=a5_0x2322d0,_0x205203={};_0x205203['IxYSh']=_0x359337(0x19e);const _0x1c4b42=_0x205203;return _0x395b40[_0x359337(0x1bd)](HELP_HEADER_MESSAGE[_0x359337(0x1db)])[_0x359337(0x1a0)](HELP_FOOTER_MESSAGE)['help'](_0x1c4b42['IxYSh'])[_0x359337(0x1aa)]()[_0x359337(0x1b0)]()[_0x359337(0x1b8)];},exports['handler']=async function(_0x4746a5){const _0x4bc01b=a5_0x2322d0,_0x5631e1={'LButG':function(_0x373e29){return _0x373e29();},'Ueqrx':function(_0x223d59){return _0x223d59();},'LvSRK':_0x4bc01b(0x1f0),'FUxnV':function(_0x1497b9,_0x3f273b,_0x15456d,_0x285bcf,_0x3002ec,_0x4e78b5,_0x16a55c){return _0x1497b9(_0x3f273b,_0x15456d,_0x285bcf,_0x3002ec,_0x4e78b5,_0x16a55c);},'claXN':'configure-called','CEAaA':_0x4bc01b(0x1e8),'sFeQX':_0x4bc01b(0x1d4),'Iwfph':function(_0x4acb76,_0x29682c,_0x25c073){return _0x4acb76(_0x29682c,_0x25c073);},'vAQBm':function(_0x4c1f16,_0x221c65,_0x64b6b1){return _0x4c1f16(_0x221c65,_0x64b6b1);},'KkOaF':function(_0x3fa927,_0x1a19c4){return _0x3fa927!==_0x1a19c4;},'MhimS':function(_0x6878ae,_0x144d6c){return _0x6878ae===_0x144d6c;},'DJGCd':'\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','kpMhg':_0x4bc01b(0x1e5),'uFEfA':function(_0x184a26,_0x4e5309){return _0x184a26(_0x4e5309);},'jirtU':_0x4bc01b(0x1d1),'bNUUm':function(_0x14ed6c,_0x267768){return _0x14ed6c===_0x267768;},'UskqN':function(_0x585e7d,_0x4aa7be){return _0x585e7d===_0x4aa7be;},'KsKXL':_0x4bc01b(0x1a7),'OFBIU':_0x4bc01b(0x1d3),'WUFIP':_0x4bc01b(0x1c1),'TTZyf':function(_0x16f5d0,_0x40507b){return _0x16f5d0<_0x40507b;},'NLVLh':function(_0x11a31b,_0x19c225){return _0x11a31b+_0x19c225;},'cvGce':_0x4bc01b(0x1fd),'FpsSp':function(_0x220af1,_0x97e114){return _0x220af1(_0x97e114);},'xNuBf':function(_0x2e3d67,_0x50fe9a){return _0x2e3d67<=_0x50fe9a;},'NipaE':function(_0x148a52,_0x2c8666){return _0x148a52>_0x2c8666;},'Vobfh':function(_0x46c2ca,_0x5e63dd,_0x348005,_0x3be7f6,_0x362576,_0x559ca1,_0x56cef3){return _0x46c2ca(_0x5e63dd,_0x348005,_0x3be7f6,_0x362576,_0x559ca1,_0x56cef3);},'SjjaT':_0x4bc01b(0x1a2),'cNLYK':function(_0x12dfbe,_0xd34db6){return _0x12dfbe-_0xd34db6;},'BptdB':'PUT','NLokJ':'json','kikvn':function(_0x32b1a3,_0xc3b053,_0x4b23b8){return _0x32b1a3(_0xc3b053,_0x4b23b8);},'ebsPJ':function(_0x6a649a,_0xea3445){return _0x6a649a!==_0xea3445;},'JgYFP':function(_0x545557,_0x2c8ac4){return _0x545557===_0x2c8ac4;},'TFLCz':'Updated\x20default\x20Grid\x20Profile\x20successfully','xeVhu':function(_0x6a789a,_0x153a93){return _0x6a789a===_0x153a93;},'StWNB':_0x4bc01b(0x1df),'crqHL':_0x4bc01b(0x1c6),'HXvKq':function(_0x114b24,_0x41c1f9,_0x4137d1,_0x420eb8,_0x6d44b2,_0x6d4823,_0x504c7c){return _0x114b24(_0x41c1f9,_0x4137d1,_0x420eb8,_0x6d44b2,_0x6d4823,_0x504c7c);},'GztTo':'server-error','ErUaR':_0x4bc01b(0x1f5),'iLZeV':function(_0x28195d,_0x540a60,_0x240953,_0x5f56ac,_0x340eb9,_0x3824bd,_0x4699c9){return _0x28195d(_0x540a60,_0x240953,_0x5f56ac,_0x340eb9,_0x3824bd,_0x4699c9);},'OxcLY':function(_0x39fdad,_0x53ae7b,_0x340053,_0x1f0d3c,_0x39eb04,_0x21d5b9,_0x5a59af){return _0x39fdad(_0x53ae7b,_0x340053,_0x1f0d3c,_0x39eb04,_0x21d5b9,_0x5a59af);},'QIuuD':_0x4bc01b(0x19c)};try{global_registry[_0x4bc01b(0x1a1)]=_0x5631e1['LButG'](uuidv4);const _0x283c05=_0x4bc01b(0x1ac)+AG_API_URL+_0x4bc01b(0x1ef);!fs['existsSync'](_0x5631e1[_0x4bc01b(0x1e3)](getCredentialsPath))&&(console[_0x4bc01b(0x1af)](_0x5631e1[_0x4bc01b(0x1b4)]),await _0x5631e1[_0x4bc01b(0x1c5)](sendInstrumentationEvent,_0x4746a5,_0x5631e1['claXN'],messageTypes[_0x4bc01b(0x1fc)],_0x5631e1[_0x4bc01b(0x1d6)],null,_0x4746a5),process[_0x4bc01b(0x1a5)](0x1));await _0x5631e1[_0x4bc01b(0x1c5)](sendInstrumentationEvent,_0x4746a5,_0x5631e1[_0x4bc01b(0x1f1)],messageTypes[_0x4bc01b(0x1ed)],null,null,_0x4746a5);const _0x50ad76=JSON[_0x4bc01b(0x1c4)](fs[_0x4bc01b(0x1e6)](_0x5631e1[_0x4bc01b(0x1ca)](getCredentialsPath))),_0x5d1e58={'method':_0x5631e1['sFeQX'],'headers':_0x5631e1['Iwfph'](getAuthHeader,_0x50ad76['Browserstack'][_0x4bc01b(0x19f)],_0x50ad76[_0x4bc01b(0x1f3)]['password']),'throwHttpErrors':![]},_0x47fe0b=await _0x5631e1[_0x4bc01b(0x1a4)](got,_0x283c05,_0x5d1e58);if(_0x5631e1[_0x4bc01b(0x1de)](_0x47fe0b,null)&&_0x5631e1[_0x4bc01b(0x1de)](_0x47fe0b,undefined)&&_0x5631e1[_0x4bc01b(0x1a8)](_0x47fe0b[_0x4bc01b(0x1fe)],0xc8)){const _0x543cf9=JSON['parse'](_0x47fe0b[_0x4bc01b(0x1f9)]);console[_0x4bc01b(0x1f8)](_0x5631e1['DJGCd']),console[_0x4bc01b(0x1f8)](_0x5631e1[_0x4bc01b(0x1cd)]),console[_0x4bc01b(0x1f8)](_0x4bc01b(0x1cb)+_0x50ad76[_0x4bc01b(0x1f3)][_0x4bc01b(0x19f)]),console[_0x4bc01b(0x1f8)](_0x4bc01b(0x1e9)+_0x543cf9['active']['name']);const _0x165673=await _0x5631e1[_0x4bc01b(0x1a9)](inputConfirmation,_0x5631e1[_0x4bc01b(0x1b1)]);(_0x5631e1[_0x4bc01b(0x1d5)](_0x165673,undefined)||_0x5631e1['UskqN'](_0x165673,null)||!(_0x5631e1[_0x4bc01b(0x1b3)](_0x165673['toLowerCase'](),'y')||_0x5631e1['MhimS'](_0x165673[_0x4bc01b(0x1cc)](),'n')))&&(console['error'](_0x5631e1[_0x4bc01b(0x1dc)]),await _0x5631e1['FUxnV'](sendInstrumentationEvent,_0x4746a5,_0x5631e1['claXN'],messageTypes['ERROR'],_0x5631e1[_0x4bc01b(0x1bb)],null,_0x4746a5),process[_0x4bc01b(0x1a5)](0x1));_0x5631e1[_0x4bc01b(0x1d5)](_0x165673['toLowerCase'](),'n')&&process[_0x4bc01b(0x1a5)](0x0);console[_0x4bc01b(0x1f8)](_0x5631e1['WUFIP']);const _0x53af2e=_0x543cf9['list'][_0x4bc01b(0x1ea)];for(let _0x512d57=0x0;_0x5631e1[_0x4bc01b(0x1da)](_0x512d57,_0x53af2e);_0x512d57+=0x1){console[_0x4bc01b(0x1f8)]('['+_0x5631e1[_0x4bc01b(0x1f2)](_0x512d57,0x1)+']\x20'+_0x543cf9['list'][_0x512d57][_0x4bc01b(0x1fa)]);}const _0x4689cc=await _0x5631e1[_0x4bc01b(0x1a9)](inputConfirmation,_0x5631e1[_0x4bc01b(0x1e0)]),_0x5f3b17=_0x5631e1['FpsSp'](Number,_0x4689cc);(_0x5631e1[_0x4bc01b(0x1a9)](isNaN,_0x5f3b17)||_0x5631e1[_0x4bc01b(0x1e1)](_0x5f3b17,0x0)||_0x5631e1['NipaE'](_0x5f3b17,_0x53af2e))&&(console[_0x4bc01b(0x1af)](_0x5631e1[_0x4bc01b(0x1dc)]),await _0x5631e1['Vobfh'](sendInstrumentationEvent,_0x4746a5,_0x5631e1[_0x4bc01b(0x1f1)],messageTypes[_0x4bc01b(0x1fc)],_0x5631e1[_0x4bc01b(0x1d9)],null,_0x4746a5),process[_0x4bc01b(0x1a5)](0x1));_0x5631e1[_0x4bc01b(0x1ca)](closeInput);const _0x2bebb4=_0x543cf9['list'][_0x5631e1[_0x4bc01b(0x1a3)](_0x5f3b17,0x1)]['id'],_0x5e9a0c={};_0x5e9a0c[_0x4bc01b(0x1ad)]=_0x2bebb4;const _0x6fec5e={'method':_0x5631e1[_0x4bc01b(0x1ba)],'headers':_0x5631e1[_0x4bc01b(0x1a4)](getAuthHeader,_0x50ad76[_0x4bc01b(0x1f3)][_0x4bc01b(0x19f)],_0x50ad76[_0x4bc01b(0x1f3)]['password']),'json':_0x5e9a0c,'responseType':_0x5631e1[_0x4bc01b(0x1b2)],'throwHttpErrors':![]},_0x476185=await _0x5631e1['kikvn'](got,_0x283c05,_0x6fec5e);_0x5631e1['ebsPJ'](_0x476185,null)&&_0x5631e1[_0x4bc01b(0x1e7)](_0x476185,undefined)&&_0x5631e1[_0x4bc01b(0x1cf)](_0x476185[_0x4bc01b(0x1fe)],0xc8)&&(console[_0x4bc01b(0x1f8)](_0x5631e1[_0x4bc01b(0x1ce)]),process[_0x4bc01b(0x1a5)](0x0)),_0x5631e1[_0x4bc01b(0x1be)](_0x476185['statusCode'],0x191)&&(console['error'](_0x5631e1[_0x4bc01b(0x1b5)]),await _0x5631e1[_0x4bc01b(0x1c5)](sendInstrumentationEvent,_0x4746a5,_0x5631e1['claXN'],messageTypes[_0x4bc01b(0x1fc)],_0x5631e1[_0x4bc01b(0x1b7)],null,_0x4746a5),process[_0x4bc01b(0x1a5)](0x1)),console[_0x4bc01b(0x1af)]('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON[_0x4bc01b(0x1c9)](_0x476185)),await _0x5631e1['HXvKq'](sendInstrumentationEvent,_0x4746a5,_0x5631e1[_0x4bc01b(0x1f1)],messageTypes['ERROR'],_0x5631e1[_0x4bc01b(0x1f4)],_0x476185,_0x4746a5),process['exit'](0x1);}_0x5631e1[_0x4bc01b(0x1be)](_0x47fe0b['statusCode'],0x191)&&(console['error'](_0x5631e1[_0x4bc01b(0x1b6)]),await _0x5631e1[_0x4bc01b(0x19d)](sendInstrumentationEvent,_0x4746a5,_0x5631e1['claXN'],messageTypes[_0x4bc01b(0x1fc)],_0x5631e1['crqHL'],null,_0x4746a5),process['exit'](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x47fe0b)),await _0x5631e1['OxcLY'](sendInstrumentationEvent,_0x4746a5,_0x5631e1[_0x4bc01b(0x1f1)],messageTypes[_0x4bc01b(0x1fc)],_0x5631e1['GztTo'],_0x47fe0b,_0x4746a5),process['exit'](0x1);}catch(_0x1f5963){console[_0x4bc01b(0x1af)](_0x4bc01b(0x1ff)+_0x1f5963[_0x4bc01b(0x1bc)]),await _0x5631e1['HXvKq'](sendInstrumentationEvent,_0x4746a5,_0x5631e1['claXN'],messageTypes[_0x4bc01b(0x1fc)],_0x5631e1[_0x4bc01b(0x1a6)],_0x1f5963,_0x4746a5),process[_0x4bc01b(0x1a5)](0x1);}};
|
|
1
|
+
function a5_0x5b8b(){const _0x335972=['INFO','oguCc','https://','exit','upiiA','PUT','xzifQ','statusCode','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','profileId','../config/constants','unknown-error','stringify','32mChiFZ','Browserstack','help','../utils/utilityMethods','Failed\x20to\x20configure\x20resources!\x20Error:\x20','CISVj','aFMGg','username','JXOTq','requestId','KAvIp','configure-called','command','epilogue','cETCM','gnGPX','vDYJF','wzkHJ','FPrxI','WvFEo','QMPWy','KAqwP','ERROR','ujMVu','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','478356EYsZhI','length','WvGiX','TfHra','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','list','init-not-called','name','log','WlATJ','uuid','recommendCommands','2004660xPfTVH','139779XrAGTU','GVvmZ','builder','GHRLv','desc','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','aZwod','toLowerCase','MoVRS','server-error','bLgVQ','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','core:','jbaKE','stack','106246HGIuOW','cUsna','ghdKt','ElVam','uQCPm','ertbP','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','347668aImwaW','zYCeo','password','QbfSk','1095381lRdojO','configure','error','Updated\x20default\x20Grid\x20Profile\x20successfully','uEtQb','1808584JjwnVo','/packages/cli/configure','invalid-input','4XpTbuF','body','argv','strict','HIlAD'];a5_0x5b8b=function(){return _0x335972;};return a5_0x5b8b();}function a5_0x2b23(_0x461879,_0x52c765){const _0x5b8b26=a5_0x5b8b();return a5_0x2b23=function(_0x2b2353,_0x3245d1){_0x2b2353=_0x2b2353-0x13d;let _0x128499=_0x5b8b26[_0x2b2353];return _0x128499;},a5_0x2b23(_0x461879,_0x52c765);}const a5_0x4550f4=a5_0x2b23;(function(_0x2ebe1f,_0x52ebf6){const _0x2d078e=a5_0x2b23,_0x57729a=_0x2ebe1f();while(!![]){try{const _0xd8e75d=parseInt(_0x2d078e(0x154))/0x1*(-parseInt(_0x2d078e(0x160))/0x2)+parseInt(_0x2d078e(0x158))/0x3+parseInt(_0x2d078e(0x15d))/0x4+parseInt(_0x2d078e(0x13d))/0x5+parseInt(_0x2d078e(0x18b))/0x6+-parseInt(_0x2d078e(0x14d))/0x7*(parseInt(_0x2d078e(0x172))/0x8)+parseInt(_0x2d078e(0x13e))/0x9;if(_0xd8e75d===_0x52ebf6)break;else _0x57729a['push'](_0x57729a['shift']());}catch(_0x2976f7){_0x57729a['push'](_0x57729a['shift']());}}}(a5_0x5b8b,0x88166));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a5_0x4550f4(0x195)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x4550f4(0x16f)),{getCredentialsPath,getAuthHeader}=require(a5_0x4550f4(0x175)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a5_0x4550f4(0x17e)]=a5_0x4550f4(0x159),exports[a5_0x4550f4(0x142)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports[a5_0x4550f4(0x140)]=function(_0x1a5270){const _0x34b583=a5_0x4550f4,_0x36a8a7={};_0x36a8a7['ezIoZ']=_0x34b583(0x174);const _0x4cc1eb=_0x36a8a7;return _0x1a5270['usage'](HELP_HEADER_MESSAGE[_0x34b583(0x159)])[_0x34b583(0x17f)](HELP_FOOTER_MESSAGE)[_0x34b583(0x174)](_0x4cc1eb['ezIoZ'])[_0x34b583(0x196)]()[_0x34b583(0x163)]()[_0x34b583(0x162)];},exports['handler']=async function(_0xefca6a){const _0x5d9b86=a5_0x4550f4,_0x24bb51={'gnGPX':function(_0x3ff7c0){return _0x3ff7c0();},'WlATJ':function(_0x18e689){return _0x18e689();},'oguCc':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zMUog':function(_0x1edbf0,_0x463b6a,_0x331a3a,_0x13034b,_0x4c190b,_0x27a082,_0x3a92f2){return _0x1edbf0(_0x463b6a,_0x331a3a,_0x13034b,_0x4c190b,_0x27a082,_0x3a92f2);},'ghdKt':_0x5d9b86(0x17d),'vQvey':_0x5d9b86(0x191),'vDYJF':'GET','ertbP':function(_0x5889b8,_0x18275c,_0x56e4e4){return _0x5889b8(_0x18275c,_0x56e4e4);},'uEtQb':function(_0xdba389,_0x2269dd,_0xea942c){return _0xdba389(_0x2269dd,_0xea942c);},'wzkHJ':function(_0x451a74,_0x341145){return _0x451a74!==_0x341145;},'cETCM':function(_0x12fbcc,_0xea677d){return _0x12fbcc===_0xea677d;},'cUsna':_0x5d9b86(0x153),'xzifQ':_0x5d9b86(0x14a),'TfHra':function(_0xd40a17,_0x2f0170){return _0xd40a17(_0x2f0170);},'ElVam':_0x5d9b86(0x16d),'jbaKE':function(_0x400bf8,_0x411fe0){return _0x400bf8===_0x411fe0;},'JXOTq':function(_0x502653,_0x3e0fa7){return _0x502653===_0x3e0fa7;},'aFMGg':function(_0x51aa46,_0x49ce9d){return _0x51aa46===_0x49ce9d;},'EkfsI':function(_0xb6946d,_0x1bf67c){return _0xb6946d===_0x1bf67c;},'GVvmZ':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','KAqwP':_0x5d9b86(0x15f),'FtZsk':function(_0x319771,_0x45609f){return _0x319771===_0x45609f;},'WvFEo':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','vPfNV':function(_0xa17daf,_0x35adfe){return _0xa17daf<_0x35adfe;},'zYCeo':function(_0x1a332c,_0x376d9f){return _0x1a332c+_0x376d9f;},'gvSeT':function(_0x12d323,_0x19f400){return _0x12d323(_0x19f400);},'uQCPm':_0x5d9b86(0x149),'VwZlk':function(_0xa7f43d,_0x255514){return _0xa7f43d(_0x255514);},'MoVRS':function(_0x687607,_0x213909){return _0x687607<=_0x213909;},'KAvIp':function(_0xcd79e9,_0x3a2734){return _0xcd79e9>_0x3a2734;},'upiiA':function(_0x180b9e,_0x20685d,_0x10a997,_0xc4be,_0x58ebce,_0x57d15d,_0x55655b){return _0x180b9e(_0x20685d,_0x10a997,_0xc4be,_0x58ebce,_0x57d15d,_0x55655b);},'mMXwi':'invalid-selection','QMPWy':function(_0x47e000,_0x3d0b61){return _0x47e000-_0x3d0b61;},'bLgVQ':_0x5d9b86(0x16a),'GHRLv':'json','mVaQe':function(_0x3a4546,_0x34129b){return _0x3a4546!==_0x34129b;},'pxblD':function(_0x4e6f05,_0x3a86e0){return _0x4e6f05===_0x3a86e0;},'HIlAD':_0x5d9b86(0x15b),'CISVj':function(_0x1a5ea4,_0x35724f){return _0x1a5ea4===_0x35724f;},'ORxcP':_0x5d9b86(0x18f),'ujMVu':'unauthorised','FPrxI':_0x5d9b86(0x147),'aZwod':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','TNAAZ':function(_0x40fe43,_0x498b1e,_0x556e36,_0x36933b,_0x585f0e,_0x384dc0,_0x18b192){return _0x40fe43(_0x498b1e,_0x556e36,_0x36933b,_0x585f0e,_0x384dc0,_0x18b192);},'QbfSk':function(_0x3cb2c3,_0x1ff425,_0x213129,_0x5a36e0,_0x579b6d,_0x15dc39,_0x366f7b){return _0x3cb2c3(_0x1ff425,_0x213129,_0x5a36e0,_0x579b6d,_0x15dc39,_0x366f7b);},'WvGiX':_0x5d9b86(0x170)};try{global_registry[_0x5d9b86(0x17b)]=_0x24bb51['gnGPX'](uuidv4);const _0x12e932=_0x5d9b86(0x167)+AG_API_URL+_0x5d9b86(0x15e);!fs['existsSync'](_0x24bb51[_0x5d9b86(0x194)](getCredentialsPath))&&(console[_0x5d9b86(0x15a)](_0x24bb51[_0x5d9b86(0x166)]),await _0x24bb51['zMUog'](sendInstrumentationEvent,_0xefca6a,_0x24bb51[_0x5d9b86(0x14f)],messageTypes[_0x5d9b86(0x188)],_0x24bb51['vQvey'],null,_0xefca6a),process[_0x5d9b86(0x168)](0x1));await _0x24bb51['zMUog'](sendInstrumentationEvent,_0xefca6a,_0x24bb51[_0x5d9b86(0x14f)],messageTypes[_0x5d9b86(0x165)],null,null,_0xefca6a);const _0x4cea4b=JSON['parse'](fs['readFileSync'](_0x24bb51['WlATJ'](getCredentialsPath))),_0x47582d={'method':_0x24bb51[_0x5d9b86(0x182)],'headers':_0x24bb51[_0x5d9b86(0x152)](getAuthHeader,_0x4cea4b['Browserstack'][_0x5d9b86(0x179)],_0x4cea4b[_0x5d9b86(0x173)][_0x5d9b86(0x156)]),'throwHttpErrors':![]},_0x2dbe0a=await _0x24bb51[_0x5d9b86(0x15c)](got,_0x12e932,_0x47582d);if(_0x24bb51['wzkHJ'](_0x2dbe0a,null)&&_0x24bb51[_0x5d9b86(0x183)](_0x2dbe0a,undefined)&&_0x24bb51[_0x5d9b86(0x180)](_0x2dbe0a[_0x5d9b86(0x16c)],0xc8)){const _0x49ffb4=JSON['parse'](_0x2dbe0a[_0x5d9b86(0x161)]);console[_0x5d9b86(0x193)](_0x24bb51[_0x5d9b86(0x14e)]),console['log'](_0x24bb51[_0x5d9b86(0x16b)]),console[_0x5d9b86(0x193)]('\x20\x20username:\x20'+_0x4cea4b[_0x5d9b86(0x173)]['username']),console[_0x5d9b86(0x193)]('\x20\x20grid-profile:\x20'+_0x49ffb4['active']['name']);const _0x2a4a19=await _0x24bb51[_0x5d9b86(0x18e)](inputConfirmation,_0x24bb51[_0x5d9b86(0x150)]);(_0x24bb51[_0x5d9b86(0x14b)](_0x2a4a19,undefined)||_0x24bb51['JXOTq'](_0x2a4a19,null)||!(_0x24bb51[_0x5d9b86(0x178)](_0x2a4a19['toLowerCase'](),'y')||_0x24bb51['EkfsI'](_0x2a4a19[_0x5d9b86(0x145)](),'n')))&&(console[_0x5d9b86(0x15a)](_0x24bb51['GVvmZ']),await _0x24bb51['zMUog'](sendInstrumentationEvent,_0xefca6a,_0x24bb51[_0x5d9b86(0x14f)],messageTypes[_0x5d9b86(0x188)],_0x24bb51[_0x5d9b86(0x187)],null,_0xefca6a),process[_0x5d9b86(0x168)](0x1));_0x24bb51['FtZsk'](_0x2a4a19[_0x5d9b86(0x145)](),'n')&&process[_0x5d9b86(0x168)](0x0);console['log'](_0x24bb51[_0x5d9b86(0x185)]);const _0x40ace3=_0x49ffb4[_0x5d9b86(0x190)][_0x5d9b86(0x18c)];for(let _0x2a7d19=0x0;_0x24bb51['vPfNV'](_0x2a7d19,_0x40ace3);_0x2a7d19+=0x1){console['log']('['+_0x24bb51[_0x5d9b86(0x155)](_0x2a7d19,0x1)+']\x20'+_0x49ffb4[_0x5d9b86(0x190)][_0x2a7d19][_0x5d9b86(0x192)]);}const _0x114888=await _0x24bb51['gvSeT'](inputConfirmation,_0x24bb51[_0x5d9b86(0x151)]),_0xd69ed1=_0x24bb51['VwZlk'](Number,_0x114888);(_0x24bb51[_0x5d9b86(0x18e)](isNaN,_0xd69ed1)||_0x24bb51[_0x5d9b86(0x146)](_0xd69ed1,0x0)||_0x24bb51[_0x5d9b86(0x17c)](_0xd69ed1,_0x40ace3))&&(console['error'](_0x24bb51[_0x5d9b86(0x13f)]),await _0x24bb51[_0x5d9b86(0x169)](sendInstrumentationEvent,_0xefca6a,_0x24bb51['ghdKt'],messageTypes[_0x5d9b86(0x188)],_0x24bb51['mMXwi'],null,_0xefca6a),process[_0x5d9b86(0x168)](0x1));_0x24bb51[_0x5d9b86(0x181)](closeInput);const _0x499660=_0x49ffb4[_0x5d9b86(0x190)][_0x24bb51[_0x5d9b86(0x186)](_0xd69ed1,0x1)]['id'],_0x2a4838={};_0x2a4838[_0x5d9b86(0x16e)]=_0x499660;const _0x47c8ab={'method':_0x24bb51[_0x5d9b86(0x148)],'headers':_0x24bb51[_0x5d9b86(0x152)](getAuthHeader,_0x4cea4b['Browserstack']['username'],_0x4cea4b[_0x5d9b86(0x173)]['password']),'json':_0x2a4838,'responseType':_0x24bb51[_0x5d9b86(0x141)],'throwHttpErrors':![]},_0x5df1a1=await _0x24bb51['uEtQb'](got,_0x12e932,_0x47c8ab);_0x24bb51['wzkHJ'](_0x5df1a1,null)&&_0x24bb51['mVaQe'](_0x5df1a1,undefined)&&_0x24bb51['pxblD'](_0x5df1a1[_0x5d9b86(0x16c)],0xc8)&&(console['log'](_0x24bb51[_0x5d9b86(0x164)]),process[_0x5d9b86(0x168)](0x0)),_0x24bb51[_0x5d9b86(0x177)](_0x5df1a1['statusCode'],0x191)&&(console[_0x5d9b86(0x15a)](_0x24bb51['ORxcP']),await _0x24bb51['upiiA'](sendInstrumentationEvent,_0xefca6a,_0x24bb51['ghdKt'],messageTypes[_0x5d9b86(0x188)],_0x24bb51['ujMVu'],null,_0xefca6a),process['exit'](0x1)),console[_0x5d9b86(0x15a)](_0x5d9b86(0x143)+JSON[_0x5d9b86(0x171)](_0x5df1a1)),await _0x24bb51[_0x5d9b86(0x169)](sendInstrumentationEvent,_0xefca6a,_0x24bb51[_0x5d9b86(0x14f)],messageTypes[_0x5d9b86(0x188)],_0x24bb51['FPrxI'],_0x5df1a1,_0xefca6a),process[_0x5d9b86(0x168)](0x1);}_0x24bb51[_0x5d9b86(0x17a)](_0x2dbe0a['statusCode'],0x191)&&(console['error'](_0x24bb51[_0x5d9b86(0x144)]),await _0x24bb51[_0x5d9b86(0x169)](sendInstrumentationEvent,_0xefca6a,_0x24bb51[_0x5d9b86(0x14f)],messageTypes[_0x5d9b86(0x188)],_0x24bb51[_0x5d9b86(0x189)],null,_0xefca6a),process[_0x5d9b86(0x168)](0x1)),console['error'](_0x5d9b86(0x18a)+JSON[_0x5d9b86(0x171)](_0x2dbe0a)),await _0x24bb51['TNAAZ'](sendInstrumentationEvent,_0xefca6a,_0x24bb51[_0x5d9b86(0x14f)],messageTypes[_0x5d9b86(0x188)],_0x24bb51[_0x5d9b86(0x184)],_0x2dbe0a,_0xefca6a),process[_0x5d9b86(0x168)](0x1);}catch(_0x52f39a){console[_0x5d9b86(0x15a)](_0x5d9b86(0x176)+_0x52f39a[_0x5d9b86(0x14c)]),await _0x24bb51[_0x5d9b86(0x157)](sendInstrumentationEvent,_0xefca6a,_0x24bb51['ghdKt'],messageTypes[_0x5d9b86(0x188)],_0x24bb51[_0x5d9b86(0x18d)],_0x52f39a,_0xefca6a),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6_0xe121b6=a6_0x570e;function a6_0x1078(){const _0xe8c88b=['connect_commands','desc','Omekj','51277FwENVL','2ZdCvlt','connect','486EJkhcy','44192yCleVk','85985CkheHb','recommendCommands','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','48102RYacBl','help','64bpmVTa','2247476YIJPPA','builder','1319664BiRVpk','uwBDv','commandDir','command','epilogue','demandCommand','3335460AEdXFn'];a6_0x1078=function(){return _0xe8c88b;};return a6_0x1078();}function a6_0x570e(_0x14183b,_0x421733){const _0x1078ca=a6_0x1078();return a6_0x570e=function(_0x570e9d,_0x1f1165){_0x570e9d=_0x570e9d-0xb8;let _0x2caa99=_0x1078ca[_0x570e9d];return _0x2caa99;},a6_0x570e(_0x14183b,_0x421733);}(function(_0x2a5cdc,_0x4f2522){const _0x144406=a6_0x570e,_0xb51caf=_0x2a5cdc();while(!![]){try{const _0x6fa8ed=parseInt(_0x144406(0xc5))/0x1+-parseInt(_0x144406(0xc6))/0x2*(parseInt(_0x144406(0xcd))/0x3)+-parseInt(_0x144406(0xb8))/0x4*(-parseInt(_0x144406(0xca))/0x5)+parseInt(_0x144406(0xbb))/0x6+-parseInt(_0x144406(0xb9))/0x7+-parseInt(_0x144406(0xc9))/0x8*(-parseInt(_0x144406(0xc8))/0x9)+-parseInt(_0x144406(0xc1))/0xa;if(_0x6fa8ed===_0x4f2522)break;else _0xb51caf['push'](_0xb51caf['shift']());}catch(_0xc2a537){_0xb51caf['push'](_0xb51caf['shift']());}}}(a6_0x1078,0x2a7c5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a6_0xe121b6(0xbe)]='connect',exports[a6_0xe121b6(0xc3)]=a6_0xe121b6(0xcc),exports[a6_0xe121b6(0xba)]=function(_0x43218a){const _0x3fe570=a6_0xe121b6,_0x49d0e4={};_0x49d0e4[_0x3fe570(0xc4)]=_0x3fe570(0xc2),_0x49d0e4[_0x3fe570(0xbc)]=_0x3fe570(0xce);const _0xcab453=_0x49d0e4;return _0x43218a['usage'](HELP_HEADER_MESSAGE[_0x3fe570(0xc7)])[_0x3fe570(0xbf)](HELP_FOOTER_MESSAGE)[_0x3fe570(0xbd)](_0xcab453[_0x3fe570(0xc4)])[_0x3fe570(0xc0)]()[_0x3fe570(0xcb)]()['strict']()[_0x3fe570(0xce)](_0xcab453[_0x3fe570(0xbc)]);},exports['handler']=function(_0x153636){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7_0x51aab7=a7_0x4de4;(function(_0x18a290,_0x317ced){const _0x3db65f=a7_0x4de4,_0x3cec74=_0x18a290();while(!![]){try{const _0xda8bd7=parseInt(_0x3db65f(0xcb))/0x1+-parseInt(_0x3db65f(0xe0))/0x2+parseInt(_0x3db65f(0x111))/0x3+-parseInt(_0x3db65f(0xc2))/0x4*(parseInt(_0x3db65f(0x113))/0x5)+-parseInt(_0x3db65f(0x10d))/0x6*(-parseInt(_0x3db65f(0xbd))/0x7)+parseInt(_0x3db65f(0x107))/0x8*(-parseInt(_0x3db65f(0xc7))/0x9)+parseInt(_0x3db65f(0xc5))/0xa*(parseInt(_0x3db65f(0x10a))/0xb);if(_0xda8bd7===_0x317ced)break;else _0x3cec74['push'](_0x3cec74['shift']());}catch(_0x5c2ab6){_0x3cec74['push'](_0x3cec74['shift']());}}}(a7_0x597d,0x1e78e));function a7_0x597d(){const _0x1e77cb=['AyCKw','create','xtJLU','true','QpUkk','882469YgFSRE','vBYMv','XpxGS','help','options','434568vBIwSL','ezmDg','isRunning','1704840kljYFw','SIGTERM','98181QCLbPK','bstackAccesskey','grid-id','AVHoD','142429NQYOoD','hxxnf','gJRaj','HOLQU','customRepeaters','QHvJx','ZhEfG','OxpIu','tapfZ','exit','yPbSq','usage','SrGZH','ojOio','pazzW','rmbkl','xHoeH','oKyun','NppUe','info','RFvzy','476624zJCweA','lDopA','use-staging','advance-options','xbkTF','vQQOg','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','UOFRI','zilnd','Grid\x20type:\x20Trial','bfLcT','string','kwwZi','aXZQL','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','desc','usZbZ','sjmsU','builder','LjLub','accessKey','grid','bgzkF','euuTx','Advance\x20options\x20for\x20Browserstack\x20Local','yaikx','description','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','SIGINT','XAAvR','msVxS','UJWKE','gridId','UFJyh','browserStackLocalOptions','vLPbG','vbpyn','command','Pass\x20the\x20ID\x20of\x20the\x20Grid','112AeXkoP','WaiEa','mUHoe','22KbvGZt','useStaging','QPONy','6mBbJar','xmohV','sGTGX','dAzbh','371016tFdPPx','lSRBe','10yYwAcv','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','advanceOptions','gWVPn','RnGde','isTrialGrid','beforeExit','bstackUsername','../../utils/utilityMethods','JOYsA','type','../../config/logger','bstack-accesskey','biXUn','rhUZY','sjeFN','ESgVs','error'];a7_0x597d=function(){return _0x1e77cb;};return a7_0x597d();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a7_0x51aab7(0x11f)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x51aab7(0x11c));function a7_0x4de4(_0x54b58c,_0x45d237){const _0x597d6f=a7_0x597d();return a7_0x4de4=function(_0x4de4a2,_0x37f0dc){_0x4de4a2=_0x4de4a2-0xb6;let _0x463038=_0x597d6f[_0x4de4a2];return _0x463038;},a7_0x4de4(_0x54b58c,_0x45d237);}exports[a7_0x51aab7(0x105)]=a7_0x51aab7(0xf5),exports[a7_0x51aab7(0xef)]='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports[a7_0x51aab7(0xf2)]=_0x228945=>{const _0x330083=a7_0x51aab7,_0x113581={};_0x113581[_0x330083(0xb8)]=_0x330083(0xee),_0x113581[_0x330083(0xe4)]=_0x330083(0xeb),_0x113581[_0x330083(0xf9)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x113581[_0x330083(0xf1)]=_0x330083(0x106),_0x113581['hxxnf']=_0x330083(0xfb),_0x113581[_0x330083(0xca)]=_0x330083(0xf8),_0x113581[_0x330083(0x122)]=_0x330083(0xc0);const _0x26ea22=_0x113581,_0x2f44b4={};_0x2f44b4['description']=_0x26ea22[_0x330083(0xb8)],_0x2f44b4[_0x330083(0x11e)]=_0x26ea22[_0x330083(0xe4)];const _0x13601a={};_0x13601a['description']=_0x26ea22[_0x330083(0xf9)],_0x13601a[_0x330083(0x11e)]=_0x26ea22[_0x330083(0xe4)];const _0xdb9fbd={};_0xdb9fbd['demandOption']=!![],_0xdb9fbd[_0x330083(0xfa)]=_0x26ea22[_0x330083(0xf1)],_0xdb9fbd[_0x330083(0x11e)]=_0x26ea22[_0x330083(0xe4)];const _0xc68ea1={};_0xc68ea1[_0x330083(0xfa)]=_0x26ea22[_0x330083(0xcc)],_0xc68ea1[_0x330083(0x11e)]=_0x26ea22['xbkTF'];const _0x2eb6cf={};_0x2eb6cf[_0x330083(0xfa)]=_0x26ea22['AVHoD'],_0x2eb6cf['type']=_0x26ea22[_0x330083(0xe4)];const _0x5f8f05={};return _0x5f8f05['bstack-username']=_0x2f44b4,_0x5f8f05[_0x330083(0x120)]=_0x13601a,_0x5f8f05[_0x330083(0xc9)]=_0xdb9fbd,_0x5f8f05[_0x330083(0xe2)]=_0xc68ea1,_0x5f8f05[_0x330083(0xe3)]=_0x2eb6cf,_0x228945[_0x330083(0xd6)](HELP_HEADER_MESSAGE[_0x330083(0xb9)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x330083(0xc1)](_0x5f8f05)[_0x330083(0xc0)](_0x26ea22[_0x330083(0x122)])['argv'];},exports['handler']=async _0x1c0367=>{const _0x384b7e=a7_0x51aab7,_0x233903={'xHoeH':function(_0x226701,_0x7c50cf){return _0x226701===_0x7c50cf;},'JOYsA':_0x384b7e(0xd3),'vLPbG':function(_0x56598a,_0x21fdde){return _0x56598a(_0x21fdde);},'ezmDg':_0x384b7e(0x115),'lSRBe':function(_0x2c8eb0,_0x5a3269){return _0x2c8eb0===_0x5a3269;},'xmohV':_0x384b7e(0xe9),'bgzkF':_0x384b7e(0x11a),'euuTx':_0x384b7e(0xfc),'ESgVs':_0x384b7e(0xc6),'oKyun':'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.','gJRaj':_0x384b7e(0xe6),'CZHvi':function(_0x389b2f,_0x2aebb5){return _0x389b2f===_0x2aebb5;},'LjLub':_0x384b7e(0x121),'msVxS':_0x384b7e(0xd7),'ZhEfG':function(_0x3b20c5,_0x37773d){return _0x3b20c5===_0x37773d;},'RFvzy':function(_0x569012,_0x20ba70){return _0x569012(_0x20ba70);},'XpxGS':_0x384b7e(0x114),'WGawL':function(_0x52cc2a,_0x80ff20){return _0x52cc2a===_0x80ff20;},'UJWKE':function(_0x3e9f76,_0x963d5a){return _0x3e9f76(_0x963d5a);},'kwwZi':function(_0x46bf52,_0x3a13a5,_0xebd9ba){return _0x46bf52(_0x3a13a5,_0xebd9ba);},'QHvJx':function(_0x4e6c8f,_0x859b96){return _0x4e6c8f&&_0x859b96;},'vQQOg':function(_0x12d3cd,_0x395a5a){return _0x12d3cd!==_0x395a5a;},'NppUe':_0x384b7e(0xd8),'yPbSq':function(_0x3d715a,_0x31ca1e){return _0x3d715a(_0x31ca1e);},'HOLQU':function(_0x436f4c,_0x482f50,_0x46d5ba,_0x13654b){return _0x436f4c(_0x482f50,_0x46d5ba,_0x13654b);},'WaiEa':_0x384b7e(0xd2),'dAzbh':_0x384b7e(0xbc),'mUHoe':_0x384b7e(0xbb),'kfcJK':_0x384b7e(0xf0),'UFJyh':_0x384b7e(0xea),'rmbkl':function(_0x130435,_0x38492a){return _0x130435!==_0x38492a;},'EsTBl':_0x384b7e(0xd9),'vbpyn':_0x384b7e(0x123),'QPONy':function(_0x1c4756,_0x424ace){return _0x1c4756(_0x424ace);},'LjTYo':_0x384b7e(0xe1),'xtJLU':function(_0xe1f88d,_0x550c74){return _0xe1f88d(_0x550c74);}};let _0x33bed3=_0x1c0367[_0x384b7e(0x11b)],_0x593cdb=_0x1c0367[_0x384b7e(0xc8)];const _0x6953f0=_0x1c0367[_0x384b7e(0x116)],_0x151c9a=_0x904cb6=>{const _0x5b7b7a=_0x384b7e;_0x233903[_0x5b7b7a(0xdb)](_0x233903[_0x5b7b7a(0x11d)],_0x233903[_0x5b7b7a(0x11d)])?(logger[_0x5b7b7a(0xb7)](_0x904cb6),process['exit'](0x1)):(_0x381e33['error'](_0x3efdee),_0x405ccf[_0x5b7b7a(0xd4)](0x1));};[_0x33bed3,_0x593cdb]=_0x233903[_0x384b7e(0xec)](fetchOrUpdateUserConfig,_0x33bed3,_0x593cdb);!_0x233903[_0x384b7e(0xd0)](_0x33bed3,_0x593cdb)&&(_0x233903[_0x384b7e(0xe5)](_0x233903[_0x384b7e(0xdd)],_0x233903[_0x384b7e(0xdd)])?_0x233903[_0x384b7e(0x103)](_0x28b17a,_0x233903['ezmDg']):_0x233903[_0x384b7e(0xd5)](_0x151c9a,_0x233903[_0x384b7e(0xbf)]));const _0x476ba1=_0x1c0367[_0x384b7e(0x100)],[_0x11499d,_0x55b02b]=await _0x233903[_0x384b7e(0xce)](getGridDetails,_0x33bed3,_0x593cdb,_0x476ba1);!_0x55b02b&&(_0x233903['ZhEfG'](_0x233903[_0x384b7e(0x108)],_0x233903[_0x384b7e(0x110)])?(_0x5dd0ab++,_0x233903['xHoeH'](_0x2c0d1c,0x1)&&_0x1132bc&&_0x483040['isRunning']()&&_0x233903[_0x384b7e(0x103)](_0x32129a,_0xf0291b)):_0x233903[_0x384b7e(0xd5)](_0x151c9a,_0x233903[_0x384b7e(0xc3)]));const _0x255d4d=_0x233903[_0x384b7e(0x112)](_0x1c0367[_0x384b7e(0x10b)],_0x233903[_0x384b7e(0x109)])?!![]:![];if(_0x55b02b&&_0x55b02b[_0x384b7e(0x119)]&&_0x255d4d){if(_0x233903[_0x384b7e(0xe5)](_0x233903['kfcJK'],_0x233903[_0x384b7e(0x101)])){let _0x33646a=_0x233903[_0x384b7e(0x10e)];logger[_0x384b7e(0xde)](_0x33646a);try{if(_0x233903['rmbkl'](_0x233903['EsTBl'],_0x233903[_0x384b7e(0x104)])){const _0x304079={};_0x304079['accessKey']=_0x593cdb,_0x304079[_0x384b7e(0xcf)]=_0x55b02b[_0x384b7e(0xcf)],_0x304079[_0x384b7e(0x102)]=_0x6953f0;const _0x6dbf62=_0x304079,_0xc6e3cd=_0x233903[_0x384b7e(0x10c)](startLocalBinarySync,_0x6dbf62);let _0x3b718e=0x0;const _0x5534ef=async()=>{const _0x3caf3d=_0x384b7e,_0x23f8a4={'sGTGX':function(_0x5511ca,_0x175b23){const _0x4bd63f=a7_0x4de4;return _0x233903[_0x4bd63f(0x112)](_0x5511ca,_0x175b23);},'zilnd':function(_0x3aee50,_0x52c31a){const _0x56a537=a7_0x4de4;return _0x233903[_0x56a537(0x103)](_0x3aee50,_0x52c31a);},'UOFRI':_0x233903[_0x3caf3d(0x10e)],'doydH':function(_0x23bc9e,_0x5f5ce6){return _0x233903['vLPbG'](_0x23bc9e,_0x5f5ce6);},'oGbTJ':_0x233903['bgzkF'],'gWVPn':_0x233903['euuTx'],'XAAvR':_0x233903[_0x3caf3d(0xb6)],'vBYMv':_0x233903[_0x3caf3d(0xdc)],'NxiiT':_0x233903['gJRaj']};if(_0x233903['CZHvi'](_0x233903[_0x3caf3d(0xf3)],_0x233903[_0x3caf3d(0xfe)])){const _0x5d6b86={'aXZQL':function(_0x5cdd71,_0x59b33f){const _0xdbda8c=_0x3caf3d;return _0x23f8a4[_0xdbda8c(0x10f)](_0x5cdd71,_0x59b33f);},'RnGde':function(_0x13a279,_0x315015){const _0x559452=_0x3caf3d;return _0x23f8a4[_0x559452(0xe8)](_0x13a279,_0x315015);}};let _0x4bf747=_0x23f8a4[_0x3caf3d(0xe7)];_0x52ffdc[_0x3caf3d(0xde)](_0x4bf747);try{const _0x1bbbff={};_0x1bbbff[_0x3caf3d(0xf4)]=_0x2c5f5f,_0x1bbbff[_0x3caf3d(0xcf)]=_0x1717f3['customRepeaters'],_0x1bbbff[_0x3caf3d(0x102)]=_0x3d8132;const _0x1d01bc=_0x1bbbff,_0x3cd294=_0x23f8a4['doydH'](_0x26d342,_0x1d01bc);let _0x5b90b2=0x0;const _0xe22429=async()=>{const _0x5c918d=_0x3caf3d;_0x5b90b2++,_0x5d6b86[_0x5c918d(0xed)](_0x5b90b2,0x1)&&_0x3cd294&&_0x3cd294[_0x5c918d(0xc4)]()&&_0x5d6b86[_0x5c918d(0x118)](_0x1bb382,_0x3cd294);};_0xdf2543['on'](_0x23f8a4['oGbTJ'],_0xe22429),_0x2525bc['on'](_0x23f8a4[_0x3caf3d(0x117)],_0xe22429),_0x26cb28['on'](_0x23f8a4[_0x3caf3d(0xfd)],_0xe22429),_0x4bf747=_0x23f8a4[_0x3caf3d(0xbe)],_0x2570dc[_0x3caf3d(0xde)](_0x4bf747);}catch(_0x314b1d){_0x23f8a4[_0x3caf3d(0xe8)](_0x1cf300,_0x23f8a4['NxiiT']);}}else _0x3b718e++,_0x233903[_0x3caf3d(0xd1)](_0x3b718e,0x1)&&_0xc6e3cd&&_0xc6e3cd[_0x3caf3d(0xc4)]()&&_0x233903[_0x3caf3d(0x103)](stopLocalBinary,_0xc6e3cd);};process['on'](_0x233903[_0x384b7e(0xf6)],_0x5534ef),process['on'](_0x233903[_0x384b7e(0xf7)],_0x5534ef),process['on'](_0x233903['ESgVs'],_0x5534ef),_0x33646a=_0x233903[_0x384b7e(0xdc)],logger['info'](_0x33646a);}else _0x233903[_0x384b7e(0xdf)](_0x1b3669,_0x233903[_0x384b7e(0xbf)]);}catch(_0x1597e4){if(_0x233903[_0x384b7e(0xda)](_0x233903['LjTYo'],_0x233903['LjTYo'])){const _0xc8f0c2={};_0xc8f0c2[_0x384b7e(0xf4)]=_0x34c95e,_0xc8f0c2[_0x384b7e(0xcf)]=_0x10e5db['customRepeaters'],_0xc8f0c2['browserStackLocalOptions']=_0x286b36;const _0x1a3dbb=_0xc8f0c2,_0x425553=_0x233903['RFvzy'](_0x5b20c9,_0x1a3dbb);let _0x4ad7dc=0x0;const _0x140dd9=async()=>{const _0x6365d3=_0x384b7e;_0x4ad7dc++,_0x233903['WGawL'](_0x4ad7dc,0x1)&&_0x425553&&_0x425553[_0x6365d3(0xc4)]()&&_0x233903['RFvzy'](_0xe9d825,_0x425553);};_0x4b85c3['on'](_0x233903[_0x384b7e(0xf6)],_0x140dd9),_0x180add['on'](_0x233903[_0x384b7e(0xf7)],_0x140dd9),_0x1d9a7f['on'](_0x233903['ESgVs'],_0x140dd9),_0x4aadb2=_0x233903['oKyun'],_0x2d78e5[_0x384b7e(0xde)](_0x22ff60);}else _0x233903[_0x384b7e(0xba)](_0x151c9a,_0x233903[_0x384b7e(0xcd)]);}}else _0x233903[_0x384b7e(0xff)](_0x406c2a,_0x233903[_0x384b7e(0xcd)]);}process['exit'](0x0);};
|
|
1
|
+
function a7_0x5d4c(){const _0x523278=['exit','lyRvO','643UFFhBE','OHcPK','atjLp','uMuJh','261720qWfcog','1191664gLaUIB','error','HqzfC','106ksvWMx','browserStackLocalOptions','options','20IOPGEw','Rxyau','customRepeaters','desc','ZXMyf','command','HRgct','gMRAQ','UPkqd','rYfMR','eCeIZ','YHUgz','eejmz','advanceOptions','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','MKOUh','JCzMb','HtgAc','use-staging','XsgJu','description','string','../../config/logger','accessKey','isTrialGrid','usage','useStaging','7pYziHB','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Pass\x20the\x20ID\x20of\x20the\x20Grid','QkzmF','yIKMp','IXwVy','oxXEX','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','adTSv','uPAQx','../../utils/utilityMethods','SCQDK','bstackUsername','Grid\x20type:\x20Trial','type','XQxvp','info','fqKBJ','grid-id','bstack-accesskey','mMNWq','qMKWM','demandOption','isRunning','VfGon','beforeExit','piQVG','EbPKN','dvzaN','JbNqb','Advance\x20options\x20for\x20Browserstack\x20Local','370296bXyaWr','ZLKtl','bLGVZ','MRQRE','NyiYv','OvSYF','OFNlq','QAuPU','help','XyFHo','bstack-username','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','pyaxP','nzxYW','GzJnS','aBKdv','ATIGv','GGNFc','vMddH','483453yJZpNf','llHGA','builder','LcZJe','KmWvQ','DDGuH','GumJk','lLSXi','SIGTERM','nYkfn','create','SIGINT','epilogue','true','grid','278812pLAaEn','eXQon','7811150vkvynT','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','OLiqY'];a7_0x5d4c=function(){return _0x523278;};return a7_0x5d4c();}function a7_0x3d17(_0x4afe3c,_0x3ccc94){const _0x5d4c24=a7_0x5d4c();return a7_0x3d17=function(_0x3d1772,_0x2508d3){_0x3d1772=_0x3d1772-0xf8;let _0x4cf98e=_0x5d4c24[_0x3d1772];return _0x4cf98e;},a7_0x3d17(_0x4afe3c,_0x3ccc94);}const a7_0x434f40=a7_0x3d17;(function(_0x2d0bd3,_0x5d8de7){const _0x43f4bd=a7_0x3d17,_0xb5bedf=_0x2d0bd3();while(!![]){try{const _0x26bdc4=-parseInt(_0x43f4bd(0x122))/0x1*(parseInt(_0x43f4bd(0x12a))/0x2)+-parseInt(_0x43f4bd(0x10c))/0x3+parseInt(_0x43f4bd(0x11b))/0x4*(-parseInt(_0x43f4bd(0x12d))/0x5)+parseInt(_0x43f4bd(0x126))/0x6+-parseInt(_0x43f4bd(0x148))/0x7*(parseInt(_0x43f4bd(0x127))/0x8)+-parseInt(_0x43f4bd(0xf9))/0x9+parseInt(_0x43f4bd(0x11d))/0xa;if(_0x26bdc4===_0x5d8de7)break;else _0xb5bedf['push'](_0xb5bedf['shift']());}catch(_0x32794a){_0xb5bedf['push'](_0xb5bedf['shift']());}}}(a7_0x5d4c,0x2734f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a7_0x434f40(0x143)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x434f40(0x152));exports[a7_0x434f40(0x132)]=a7_0x434f40(0x11a),exports[a7_0x434f40(0x130)]='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports[a7_0x434f40(0x10e)]=_0x5d4b93=>{const _0x432ef5=a7_0x434f40,_0xcd9d85={};_0xcd9d85[_0x432ef5(0x100)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0xcd9d85['YHUgz']='string',_0xcd9d85[_0x432ef5(0x153)]=_0x432ef5(0x13b),_0xcd9d85[_0x432ef5(0x112)]=_0x432ef5(0x14a),_0xcd9d85[_0x432ef5(0x109)]=_0x432ef5(0x11e),_0xcd9d85['aBKdv']=_0x432ef5(0xf8),_0xcd9d85['rOnTr']='help';const _0x5aa702=_0xcd9d85,_0x67a219={};_0x67a219[_0x432ef5(0x141)]=_0x5aa702['QAuPU'],_0x67a219['type']=_0x5aa702[_0x432ef5(0x138)];const _0x4cf04e={};_0x4cf04e['description']=_0x5aa702[_0x432ef5(0x153)],_0x4cf04e['type']=_0x5aa702[_0x432ef5(0x138)];const _0x19bb4f={};_0x19bb4f[_0x432ef5(0x15e)]=!![],_0x19bb4f[_0x432ef5(0x141)]=_0x5aa702[_0x432ef5(0x112)],_0x19bb4f[_0x432ef5(0x156)]=_0x5aa702[_0x432ef5(0x138)];const _0x1fb4eb={};_0x1fb4eb[_0x432ef5(0x141)]=_0x5aa702[_0x432ef5(0x109)],_0x1fb4eb['type']=_0x5aa702[_0x432ef5(0x138)];const _0x12953c={};_0x12953c[_0x432ef5(0x141)]=_0x5aa702[_0x432ef5(0x108)],_0x12953c[_0x432ef5(0x156)]=_0x5aa702[_0x432ef5(0x138)];const _0x53cffc={};return _0x53cffc[_0x432ef5(0x103)]=_0x67a219,_0x53cffc[_0x432ef5(0x15b)]=_0x4cf04e,_0x53cffc[_0x432ef5(0x15a)]=_0x19bb4f,_0x53cffc[_0x432ef5(0x13f)]=_0x1fb4eb,_0x53cffc['advance-options']=_0x12953c,_0x5d4b93[_0x432ef5(0x146)](HELP_HEADER_MESSAGE[_0x432ef5(0x116)])[_0x432ef5(0x118)](HELP_FOOTER_MESSAGE)[_0x432ef5(0x12c)](_0x53cffc)[_0x432ef5(0x101)](_0x5aa702['rOnTr'])['argv'];},exports['handler']=async _0x5bd662=>{const _0x147ae6=a7_0x434f40,_0x401356={'GzJnS':function(_0x303093,_0x2be299){return _0x303093(_0x2be299);},'pyaxP':_0x147ae6(0x14f),'oxXEX':function(_0x44da2d,_0x535282){return _0x44da2d===_0x535282;},'JbNqb':'CxLVA','hHLYX':_0x147ae6(0x104),'HtgAc':_0x147ae6(0x149),'EbPKN':_0x147ae6(0x142),'llHGA':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','gMRAQ':'Pass\x20the\x20ID\x20of\x20the\x20Grid','XQxvp':_0x147ae6(0x11e),'OvSYF':_0x147ae6(0xf8),'KHxXy':'help','uPAQx':function(_0x26bdfc,_0x23751e){return _0x26bdfc===_0x23751e;},'NyiYv':_0x147ae6(0x161),'dvzaN':_0x147ae6(0x117),'lHbDk':_0x147ae6(0x114),'MKOUh':'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.','bLGVZ':function(_0x37541c,_0x414504){return _0x37541c(_0x414504);},'XyFHo':'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','UPkqd':_0x147ae6(0x131),'eejmz':_0x147ae6(0x123),'lLSXi':function(_0x509b2e,_0xb30e9){return _0x509b2e===_0xb30e9;},'HqzfC':function(_0x2fd0fc,_0x25fa48){return _0x2fd0fc(_0x25fa48);},'XsgJu':function(_0x48b902,_0x454474){return _0x48b902===_0x454474;},'rYfMR':function(_0x45791e,_0x3c584c){return _0x45791e(_0x3c584c);},'LcZJe':function(_0x114edc,_0x3479c4,_0x126672){return _0x114edc(_0x3479c4,_0x126672);},'DDGuH':function(_0x3c38ba,_0x557357){return _0x3c38ba&&_0x557357;},'blVjw':function(_0xe30981,_0x514361){return _0xe30981!==_0x514361;},'mMNWq':_0x147ae6(0x159),'QkzmF':_0x147ae6(0x115),'VfGon':function(_0x33f6d9,_0x5a5471,_0x5f1b94,_0x54205a){return _0x33f6d9(_0x5a5471,_0x5f1b94,_0x54205a);},'qMKWM':function(_0x295870,_0x29b36a){return _0x295870!==_0x29b36a;},'ZLKtl':_0x147ae6(0x162),'vMddH':_0x147ae6(0x119),'adTSv':_0x147ae6(0x11c),'eCeIZ':_0x147ae6(0x14d),'yIKMp':_0x147ae6(0x155),'OLiqY':function(_0x111bfd,_0x239c31){return _0x111bfd===_0x239c31;},'MRQRE':_0x147ae6(0x110),'ZBMDh':_0x147ae6(0x121),'HRgct':function(_0x321af7,_0x702751){return _0x321af7!==_0x702751;},'JCzMb':_0x147ae6(0x124),'hItzR':_0x147ae6(0xff),'GGNFc':function(_0x4a0396,_0x4f9fcf){return _0x4a0396(_0x4f9fcf);}};let _0x5924dc=_0x5bd662[_0x147ae6(0x154)],_0x101888=_0x5bd662['bstackAccesskey'];const _0x1d475c=_0x5bd662[_0x147ae6(0x13a)],_0x5a0197=_0x55ebcb=>{const _0x46c701=_0x147ae6;_0x401356[_0x46c701(0x14e)](_0x401356[_0x46c701(0x165)],_0x401356[_0x46c701(0x165)])?(logger[_0x46c701(0x128)](_0x55ebcb),process[_0x46c701(0x120)](0x1)):_0x401356[_0x46c701(0x107)](_0x599372,_0x401356[_0x46c701(0x105)]);};[_0x5924dc,_0x101888]=_0x401356[_0x147ae6(0x10f)](fetchOrUpdateUserConfig,_0x5924dc,_0x101888);!_0x401356[_0x147ae6(0x111)](_0x5924dc,_0x101888)&&(_0x401356['blVjw'](_0x401356[_0x147ae6(0x15c)],_0x401356[_0x147ae6(0x14b)])?_0x401356[_0x147ae6(0x136)](_0x5a0197,_0x401356['hHLYX']):_0x401356[_0x147ae6(0x107)](_0x3cf061,_0x401356['hHLYX']));const _0x124be6=_0x5bd662['gridId'],[_0x2bdb71,_0x4ddbe4]=await _0x401356[_0x147ae6(0x160)](getGridDetails,_0x5924dc,_0x101888,_0x124be6);if(!_0x4ddbe4){if(_0x401356[_0x147ae6(0x15d)](_0x401356[_0x147ae6(0xfa)],_0x401356[_0x147ae6(0xfa)])){const _0x574ac2={};_0x574ac2[_0x147ae6(0x141)]=_0x401356[_0x147ae6(0x13e)],_0x574ac2[_0x147ae6(0x156)]=_0x401356[_0x147ae6(0x163)];const _0x153b14={};_0x153b14[_0x147ae6(0x141)]=_0x401356[_0x147ae6(0x10d)],_0x153b14[_0x147ae6(0x156)]=_0x401356[_0x147ae6(0x163)];const _0x30e269={};_0x30e269[_0x147ae6(0x15e)]=!![],_0x30e269[_0x147ae6(0x141)]=_0x401356[_0x147ae6(0x134)],_0x30e269[_0x147ae6(0x156)]=_0x401356[_0x147ae6(0x163)];const _0x5d0716={};_0x5d0716[_0x147ae6(0x141)]=_0x401356[_0x147ae6(0x157)],_0x5d0716[_0x147ae6(0x156)]=_0x401356[_0x147ae6(0x163)];const _0x32db96={};_0x32db96['description']=_0x401356[_0x147ae6(0xfe)],_0x32db96['type']=_0x401356[_0x147ae6(0x163)];const _0x48aa65={};return _0x48aa65[_0x147ae6(0x103)]=_0x574ac2,_0x48aa65[_0x147ae6(0x15b)]=_0x153b14,_0x48aa65['grid-id']=_0x30e269,_0x48aa65[_0x147ae6(0x13f)]=_0x5d0716,_0x48aa65['advance-options']=_0x32db96,_0x4856f9['usage'](_0x589c26['create'])[_0x147ae6(0x118)](_0x1ecd3b)[_0x147ae6(0x12c)](_0x48aa65)[_0x147ae6(0x101)](_0x401356['KHxXy'])['argv'];}else _0x401356[_0x147ae6(0xfb)](_0x5a0197,_0x401356['XyFHo']);}const _0x4f3cc5=_0x401356[_0x147ae6(0x151)](_0x5bd662[_0x147ae6(0x147)],_0x401356[_0x147ae6(0x10b)])?!![]:![];if(_0x4ddbe4&&_0x4ddbe4[_0x147ae6(0x145)]&&_0x4f3cc5){if(_0x401356[_0x147ae6(0x113)](_0x401356[_0x147ae6(0x150)],_0x401356[_0x147ae6(0x137)])){const _0x287cd8={'Rxyau':function(_0x1fb61d,_0x25be3d){const _0x39e6f5=_0x147ae6;return _0x401356[_0x39e6f5(0x151)](_0x1fb61d,_0x25be3d);},'uMuJh':function(_0x42eaa6,_0x4a156f){const _0x769ecd=_0x147ae6;return _0x401356[_0x769ecd(0x107)](_0x42eaa6,_0x4a156f);}},_0x11d4c4={};_0x11d4c4[_0x147ae6(0x144)]=_0x88bfd8,_0x11d4c4['customRepeaters']=_0x3cea7d['customRepeaters'],_0x11d4c4[_0x147ae6(0x12b)]=_0x3801ed;const _0x26075c=_0x11d4c4,_0x37ef5c=_0x401356[_0x147ae6(0x107)](_0x2d123d,_0x26075c);let _0x5deb1e=0x0;const _0x5d8153=async()=>{const _0x33c3de=_0x147ae6;_0x5deb1e++,_0x287cd8[_0x33c3de(0x12e)](_0x5deb1e,0x1)&&_0x37ef5c&&_0x37ef5c['isRunning']()&&_0x287cd8[_0x33c3de(0x125)](_0x481699,_0x37ef5c);};_0x33bc90['on'](_0x401356[_0x147ae6(0xfd)],_0x5d8153),_0x437427['on'](_0x401356[_0x147ae6(0x164)],_0x5d8153),_0x40bbde['on'](_0x401356['lHbDk'],_0x5d8153),_0x5bea22=_0x401356[_0x147ae6(0x13c)],_0x588b96[_0x147ae6(0x158)](_0x34dccc);}else{let _0x16559c=_0x401356[_0x147ae6(0x14c)];logger[_0x147ae6(0x158)](_0x16559c);try{if(_0x401356[_0x147ae6(0x11f)](_0x401356[_0x147ae6(0xfc)],_0x401356['ZBMDh']))_0x12d9b4['error'](_0x53803e),_0x2646bf[_0x147ae6(0x120)](0x1);else{const _0x5e8c66={};_0x5e8c66[_0x147ae6(0x144)]=_0x101888,_0x5e8c66[_0x147ae6(0x12f)]=_0x4ddbe4[_0x147ae6(0x12f)],_0x5e8c66[_0x147ae6(0x12b)]=_0x1d475c;const _0x3bfa67=_0x5e8c66,_0xfb4f2c=_0x401356[_0x147ae6(0x129)](startLocalBinarySync,_0x3bfa67);let _0x181227=0x0;const _0x107d29=async()=>{const _0x294a80=_0x147ae6,_0x40d30a={'nzxYW':function(_0x823006,_0x1bc949){return _0x401356['bLGVZ'](_0x823006,_0x1bc949);},'tHHbo':_0x401356[_0x294a80(0x102)]};_0x401356[_0x294a80(0x14e)](_0x401356[_0x294a80(0x135)],_0x401356[_0x294a80(0x139)])?_0x40d30a[_0x294a80(0x106)](_0x5aaa09,_0x40d30a['tHHbo']):(_0x181227++,_0x401356[_0x294a80(0x113)](_0x181227,0x1)&&_0xfb4f2c&&_0xfb4f2c['isRunning']()&&_0x401356[_0x294a80(0x129)](stopLocalBinary,_0xfb4f2c));};process['on'](_0x401356[_0x147ae6(0xfd)],_0x107d29),process['on'](_0x401356[_0x147ae6(0x164)],_0x107d29),process['on'](_0x401356['lHbDk'],_0x107d29),_0x16559c=_0x401356[_0x147ae6(0x13c)],logger[_0x147ae6(0x158)](_0x16559c);}}catch(_0x31752e){_0x401356[_0x147ae6(0x133)](_0x401356[_0x147ae6(0x13d)],_0x401356['hItzR'])?_0x401356[_0x147ae6(0x10a)](_0x5a0197,_0x401356[_0x147ae6(0x105)]):(_0x26afb4++,_0x401356[_0x147ae6(0x140)](_0xcc8a66,0x1)&&_0x3aafe2&&_0x430bcd[_0x147ae6(0x15f)]()&&_0x401356['rYfMR'](_0xb45522,_0x92cb89));}}}process['exit'](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x4b30cf=a8_0x4bcf;(function(_0x3256a4,_0x37d503){const _0x3a2357=a8_0x4bcf,_0x2a1024=_0x3256a4();while(!![]){try{const _0xf35cf1=parseInt(_0x3a2357(0x9b))/0x1*(parseInt(_0x3a2357(0xb0))/0x2)+parseInt(_0x3a2357(0xa6))/0x3+-parseInt(_0x3a2357(0xa2))/0x4+-parseInt(_0x3a2357(0xa9))/0x5+parseInt(_0x3a2357(0xb1))/0x6*(parseInt(_0x3a2357(0x9e))/0x7)+parseInt(_0x3a2357(0xac))/0x8+parseInt(_0x3a2357(0xab))/0x9*(-parseInt(_0x3a2357(0xaf))/0xa);if(_0xf35cf1===_0x37d503)break;else _0x2a1024['push'](_0x2a1024['shift']());}catch(_0x5eb825){_0x2a1024['push'](_0x2a1024['shift']());}}}(a8_0x459d,0x94994));function a8_0x4bcf(_0x23c44b,_0x3e0d77){const _0x459d11=a8_0x459d();return a8_0x4bcf=function(_0x4bcfe8,_0x3022c0){_0x4bcfe8=_0x4bcfe8-0x9a;let _0x3f09a0=_0x459d11[_0x4bcfe8];return _0x3f09a0;},a8_0x4bcf(_0x23c44b,_0x3e0d77);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x4b30cf(0x9c));function a8_0x459d(){const _0x333264=['2695651DUrpmY','desc','strict','commandDir','3831800sDFivm','KHWRk','create_commands','command','2366358EyRrGM','sSPsP','builder','2045770TpntCI','handler','585dxlwIW','5191040kFABSy','usage','epilogue','135210PMUsTI','1031870czAwdI','6HsscXK','help','Create\x20a\x20new\x20Automation\x20grid.','demandCommand','recommendCommands','2zHfvSo','../config/constants','create'];a8_0x459d=function(){return _0x333264;};return a8_0x459d();}exports[a8_0x4b30cf(0xa5)]='create',exports[a8_0x4b30cf(0x9f)]=a8_0x4b30cf(0xb3),exports[a8_0x4b30cf(0xa8)]=function(_0x3ea072){const _0x161f5b=a8_0x4b30cf,_0x2ad9f0={};_0x2ad9f0[_0x161f5b(0xa7)]=_0x161f5b(0xa4),_0x2ad9f0[_0x161f5b(0xa3)]=_0x161f5b(0xb2);const _0x221584=_0x2ad9f0;return _0x3ea072[_0x161f5b(0xad)](HELP_HEADER_MESSAGE[_0x161f5b(0x9d)])[_0x161f5b(0xae)](HELP_FOOTER_MESSAGE)[_0x161f5b(0xa1)](_0x221584['sSPsP'])[_0x161f5b(0xb4)]()[_0x161f5b(0x9a)]()[_0x161f5b(0xa0)]()[_0x161f5b(0xb2)](_0x221584[_0x161f5b(0xa3)]);},exports[a8_0x4b30cf(0xaa)]=function(_0x5133f8){};
|