browserstack-node-sdk 1.32.15 → 1.32.16
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/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/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.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/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.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/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_before.setup.js +1 -1
- package/src/bin/launcher/launcher.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/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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.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/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.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/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-tester.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/testhub/constants.js +1 -0
- package/src/helpers/testhub/testhubHandler.js +1 -0
- package/src/helpers/testhub/utils.js +1 -0
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x4622dc=a3_0x1939;(function(_0x472564,_0x14796c){const _0x36402f=a3_0x1939,_0x7590f8=_0x472564();while(!![]){try{const _0x1c454f=parseInt(_0x36402f(0x218))/0x1+parseInt(_0x36402f(0x267))/0x2+parseInt(_0x36402f(0x14e))/0x3*(parseInt(_0x36402f(0x1c5))/0x4)+parseInt(_0x36402f(0x214))/0x5+parseInt(_0x36402f(0x1b2))/0x6*(-parseInt(_0x36402f(0x18e))/0x7)+parseInt(_0x36402f(0x178))/0x8*(parseInt(_0x36402f(0x213))/0x9)+parseInt(_0x36402f(0x26a))/0xa*(-parseInt(_0x36402f(0x2b3))/0xb);if(_0x1c454f===_0x14796c)break;else _0x7590f8['push'](_0x7590f8['shift']());}catch(_0x33b31d){_0x7590f8['push'](_0x7590f8['shift']());}}}(a3_0x49e4,0xa1df7));function a3_0x49e4(){const _0x24eef3=['GupQz','storage.buckets.delete','clusters','ucpID','ZuxIs','Cluster\x20creation\x20failed','json','GoogleCloudProvider','parse','status','NetworksClient','66RHPJSC','bPhHt','title','listClusters','storage.objects.getIamPolicy','\x20--windows-os-version=ltsc2022\x20--region\x20','../utils/utilityMethods','storage.multipartUploads.listParts','list','members','EAQyG','accountId','OiNWT','data','UzZVd','bVjRI','storage.multipartUploads.list','maxNodeCount','/subnetworks/','21654fPJxIf','storage.buckets.listTagBindings','instanceType','iUeMi','cTigY','udeXF','../utils/userInput','Letnq','WXykx','writeFileSync','storage.buckets.create','utf-8','FlKxx','IwcJY','DhxIx','customRoleName','requestBody','Nvsvc','Wkvtm','kdnha','aJmmB','dugDh','KRWOM','autoscaling','dluTy','gCDHk','DONE','CNNUg','eHoxE','endpoint','storage.buckets.deleteTagBinding','storage.objects.delete','FnJvB','njqxO','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','locations','wIBBx','googleapis','xOMQx','/regions/','dOORu','JmMly','389160WgHiTv','eGahT','ABbpd','srLnd','dUicu','qpFrr','serviceAccount','UlzTg','iam.serviceAccounts.signBlob','Oauya','sendEventToBackend','faQpd','UQLuY','storage.objects.get','HVvFU','tVtdw','zmSej','ZqXPV','GhFTk','util','templates','join','6284831HWJlXv','storage.buckets.createTagBinding','Cluster\x20deletion\x20completed','JfutR','VLtVf','replace','bTzjW','irmLh','ingress','QjPkW','serviceAccount:','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','getCluster','create','ABNkL','bGhEQ','iamClient','info','gcp_credentials.json','pGzPJ','includedPermissions','KubeConfigTemplate.yaml','tcrCe','https://','kMSxD','frAWx','getClient','HefqI','MtsQu','aTHHI','JVTgz','XZHPC','storage.objects.setIamPolicy','XFVAr','storage.buckets.get','McmhZ','6nNXATX','bstackUsername','XZoKm','OWSsb','Cannot\x20find\x20subnets\x20','organizations','iVaOv','subnetworks','ufxDw','nhtUn','https://www.googleapis.com/auth/cloud-platform','Jjsvf','stack','child_process','.iam.gserviceaccount.com','machineType','log','message','regionmap.json','168NMPWOt','CBUBO','vpcInfo','uuhBc','EQRFt','DiHyZ','BHjkO','Bmegt','WIfwf','RrkCy','setConfig','isConfigured','1|2|7|3|6|0|8|5|4','ClusterManagerClient','nQkuZ','EjoMb','execSync','storage.buckets.update','./CloudProvider','.\x20Error:\x20','browserstack','fcuoF','GIcRX','https://www.googleapis.com/compute/v1/projects/','storage.multipartUploads.create','sMvUS','push','SVZAM','yVvIE','\x20--quiet\x20--user-output-enabled=false','checkServiceAccount','XDaDw','PUT','jcxmV','getGridHostname','type','bAeut','nodePools','tFIRL','Creating\x20GKE\x20Cluster','KcOAR','QnhqU','XIAzd','qIaaG','Found\x20cluster\x20with\x20name\x20\x27','mRcQu','pLfAv','storage.buckets.listEffectiveTags','updateWindowsNodeGroup','AMKCj','laVzK','HawmA','storage.buckets.setIamPolicy','uqwCU','@google-cloud/compute','networkClient','SWWvb','SQomo','username','zrQVX','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','keyFile','UDJvs','XSQsy','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','ohzUI','toString','isSubnetsValid','role','lQiXK','0|5|1|4|3|2','default','sendGCPInfoToHST','clusterCaCertificate','jmGek','location','zXPuW','wdPsc','54HDQWBV','4094755txOami','gridProfileId','PkQgK','toLowerCase','583097PorXTL','/roles/','uWUAD','uqsng','name','WQeDF','path','subnetwork','gke_','QsDsA','ndxBY','webSocketUtils','BXBIB','resourcemanagerClient','/clusters/','AWaUN','serviceAccountName','gcpresources','storage.objects.update','zDZHn','PeTcH','GKE\x20Cluster\x20deletion\x20failed','TErKD','usQWz','resourceLabels','got','Xnwbe','Service\x20account\x20already\x20exists,\x20skipping','parent','error','NFqLb','rws','clusterName','network','svtWZ','FUFez','tzoFq','uAQvI','BEeic','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','DGMPk','profileId','qRsvP','storage.buckets.list','configureIfNotConfigured','isClusterPresent','loadBalancer','tvbqk','jfMqv','getUserInput','updateClusterRegion','projectId','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','nfvLN','accessKey','vQjXm','dRdux','iam','bindings','lOztk','munzC','concat','Creating\x20service\x20account','../config/constants','split','GcSEM','Eyrlr','oIxjE','masterAuth','config','pHToI','OnmzU','rZnSW','minNodeCount','sLUFS','serviceAccounts','NsVHG','VDCsm','2024008XJJiis','zMZAr','SyRuw','2413690EGoiKd','gcloud\x20auth\x20login\x20--cred-file=','projects','CGTpc','bomTF','pJDfe','JNtSf','getKubeConfigData','nHdry','OGnxC','wfErV','qVTjr','containerClient','yxWuI','length','auth','clusterRegion','WgCwU','StVQA','rUadi','Lqolw','isBrowserstackCluster','project_id','ThNkD','YEQhb','FZyyi','EibrS','project','aBlBU','bstackAccesskey','turboscale_custom_role','/locations/','createCluster','deleteCluster','RMnyC','setupServiceAccount','managedby','eLjDI','Deleting\x20the\x20cluster\x20','LCcrF','LNUKd','credentialsPath','Turboscale\x20Custom\x20Role','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','gcpConfigSet','/global/networks/','/serviceAccounts/','readFileAsync','rbDSV','GzZsY','sendResourceDataToHST','QFUcY','gkecluster.json','getClusterInfo','NYAJy','exit','pXSzH','Hcapv','RESOURCES','scopes','projects/','OnjNX'];a3_0x49e4=function(){return _0x24eef3;};return a3_0x49e4();}const fs=require('fs'),path=require(a3_0x4622dc(0x21e)),got=require(a3_0x4622dc(0x231)),util=require(a3_0x4622dc(0x18b)),cp=require(a3_0x4622dc(0x1bf)),{google}=require(a3_0x4622dc(0x173)),compute=require(a3_0x4622dc(0x1fb)),container=require('@google-cloud/container'),{ProjectsClient}=require('@google-cloud/resource-manager')['v3'],{logger}=require('../config/logger'),{CloudProvider}=require(a3_0x4622dc(0x1d7)),{getDirForConfig,getAuthHeader}=require(a3_0x4622dc(0x141)),{deleteRoutingDeps,deleteAgent}=require('../utils/gridComponents'),{inputConfirmation,closeInput}=require(a3_0x4622dc(0x154)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x4622dc(0x258));class GoogleCloudProvider extends CloudProvider{constructor(_0xb06997,_0x20cb20,_0x44739c,_0x4c68d5){const _0x5c4400=a3_0x4622dc,_0x57e221={};_0x57e221[_0x5c4400(0x21d)]=_0x5c4400(0x1d1),_0x57e221[_0x5c4400(0x282)]='turboscale-service-account',_0x57e221[_0x5c4400(0x169)]=_0x5c4400(0x288);const _0x15b812=_0x57e221,_0x22dc65=_0x15b812['WQeDF'][_0x5c4400(0x259)]('|');let _0x56ce61=0x0;while(!![]){switch(_0x22dc65[_0x56ce61++]){case'0':this['credentialsPath']=null;continue;case'1':super(GCP,_0xb06997,_0x20cb20,_0x44739c,_0x4c68d5);continue;case'2':this[_0x5c4400(0x276)]=null;continue;case'3':this['resourcemanagerClient']=null;continue;case'4':this[_0x5c4400(0x228)]=_0x15b812[_0x5c4400(0x282)];continue;case'5':this[_0x5c4400(0x15d)]=_0x15b812[_0x5c4400(0x169)];continue;case'6':this[_0x5c4400(0x19e)]=null;continue;case'7':this[_0x5c4400(0x1fc)]=null;continue;case'8':this[_0x5c4400(0x24c)]=null;continue;}break;}}[a3_0x4622dc(0x245)](){const _0x3a6a5b=a3_0x4622dc,_0x4516ec={};_0x4516ec[_0x3a6a5b(0x283)]=function(_0x2794b5,_0x32bb9f){return _0x2794b5===_0x32bb9f;},_0x4516ec[_0x3a6a5b(0x1fa)]=_0x3a6a5b(0x1d9),_0x4516ec['qIaaG']=_0x3a6a5b(0x195),_0x4516ec['zDZHn']=_0x3a6a5b(0x243);const _0xf1651d=_0x4516ec;if(!this[_0x3a6a5b(0x1d0)]()){if(_0xf1651d[_0x3a6a5b(0x283)](_0xf1651d[_0x3a6a5b(0x1f0)],_0xf1651d[_0x3a6a5b(0x22b)])){const _0x5c3010=_0x4b54a3[0x0]?.[_0x3a6a5b(0x230)]?.[_0x3a6a5b(0x28e)];return _0x5c3010&&_0xf1651d['FZyyi'](_0x5c3010[_0x3a6a5b(0x217)](),_0xf1651d[_0x3a6a5b(0x1fa)]);}else this['setConfig']();}}async[a3_0x4622dc(0x29c)](){const _0x1203d2=a3_0x4622dc;this[_0x1203d2(0x20d)](this['rws']);}['isConfigured'](){const _0x202e55=a3_0x4622dc,_0x4b6b6c={};_0x4b6b6c[_0x202e55(0x17f)]=function(_0x30d099,_0x1ab1c0){return _0x30d099===_0x1ab1c0;};const _0x20225d=_0x4b6b6c;return _0x20225d[_0x202e55(0x17f)](global_registry[_0x202e55(0x296)],!![]);}[a3_0x4622dc(0x1cf)](){const _0x1bfe65=a3_0x4622dc,_0xa3336b=this[_0x1bfe65(0x293)],_0x1d220f={};_0x1d220f[_0x1bfe65(0x202)]=_0xa3336b,this[_0x1bfe65(0x276)]=new container['v1'][(_0x1bfe65(0x1d2))](_0x1d220f);const _0x1252a={};_0x1252a[_0x1bfe65(0x202)]=_0xa3336b,this[_0x1bfe65(0x1fc)]=new compute['v1'][(_0x1bfe65(0x2b2))](_0x1252a);const _0x2f2da2={};_0x2f2da2[_0x1bfe65(0x202)]=_0xa3336b,this[_0x1bfe65(0x225)]=new ProjectsClient(_0x2f2da2),this[_0x1bfe65(0x19e)]=google[_0x1bfe65(0x252)]('v1'),global_registry['gcpConfigSet']=!![];}async[a3_0x4622dc(0x24a)](_0x3aa8f7,_0x502564){const _0x36a1e4=a3_0x4622dc,_0x2f97a5={'uCPqq':function(_0x3f4ef2,_0x521da0){return _0x3f4ef2(_0x521da0);},'McmhZ':function(_0x3f71aa){return _0x3f71aa();},'aTHHI':_0x36a1e4(0x1a0)},_0x100164=await _0x2f97a5['uCPqq'](_0x3aa8f7,_0x36a1e4(0x205));let _0x542a62=await fs[_0x36a1e4(0x299)](_0x100164);_0x542a62=_0x542a62['toString']();const _0x1e7df2=_0x2f97a5[_0x36a1e4(0x1b1)](getDirForConfig),_0x3e4633=path[_0x36a1e4(0x18d)](_0x1e7df2,_0x2f97a5[_0x36a1e4(0x1ab)]);fs[_0x36a1e4(0x157)](_0x3e4633,_0x542a62),this[_0x36a1e4(0x293)]=_0x3e4633;const _0x4fbd15={};return _0x4fbd15[_0x36a1e4(0x202)]=_0x3e4633,_0x502564['cloudProvider'][GCP]=_0x4fbd15,_0x542a62=JSON['parse'](_0x542a62),this[_0x36a1e4(0x24c)]=_0x542a62[_0x36a1e4(0x280)],_0x502564;}async['fetchLocalCreds'](_0x30cd59){const _0x38bd5d=a3_0x4622dc;this[_0x38bd5d(0x293)]=_0x30cd59[this['cloudProviderName']][_0x38bd5d(0x202)];let _0x4ef2fc=await fs[_0x38bd5d(0x299)](this[_0x38bd5d(0x293)]);_0x4ef2fc=JSON[_0x38bd5d(0x2b0)](_0x4ef2fc),this['projectId']=_0x4ef2fc[_0x38bd5d(0x280)];}[a3_0x4622dc(0x1e7)](_0x1654bc){const _0x486284=a3_0x4622dc;return _0x1654bc['status'][_0x486284(0x247)]['ingress'][0x0]['ip'];}async[a3_0x4622dc(0x27f)](){const _0x29a1f1=a3_0x4622dc,_0x2ef3e8={};_0x2ef3e8['oIxjE']=function(_0x1deef5,_0x54097f){return _0x1deef5===_0x54097f;},_0x2ef3e8[_0x29a1f1(0x275)]=function(_0x222985,_0xffdcf6){return _0x222985!==_0xffdcf6;},_0x2ef3e8[_0x29a1f1(0x2ac)]=_0x29a1f1(0x216),_0x2ef3e8['NsVHG']=_0x29a1f1(0x189),_0x2ef3e8[_0x29a1f1(0x211)]=_0x29a1f1(0x15a),_0x2ef3e8[_0x29a1f1(0x1aa)]=_0x29a1f1(0x19d),_0x2ef3e8[_0x29a1f1(0x260)]=_0x29a1f1(0x1d9),_0x2ef3e8[_0x29a1f1(0x15f)]=_0x29a1f1(0x160);const _0x242543=_0x2ef3e8;try{if(_0x242543[_0x29a1f1(0x275)](_0x242543[_0x29a1f1(0x2ac)],_0x242543[_0x29a1f1(0x265)])){const _0x45ec96=await this[_0x29a1f1(0x29f)]();if(_0x45ec96[0x0]?.[_0x29a1f1(0x230)]?.[_0x29a1f1(0x28e)]){if(_0x242543[_0x29a1f1(0x275)](_0x242543['zXPuW'],_0x242543[_0x29a1f1(0x1aa)])){const _0x325d38=_0x45ec96[0x0]?.[_0x29a1f1(0x230)]?.[_0x29a1f1(0x28e)];return _0x325d38&&_0x242543['oIxjE'](_0x325d38[_0x29a1f1(0x217)](),_0x242543['OnmzU']);}else return!![];}}else{const _0x32e505=_0x29a1f1(0x1dc)+this[_0x29a1f1(0x24c)]+_0x29a1f1(0x175)+_0x320084['clusterRegion']+_0x29a1f1(0x14d)+_0x340719[0x0];if(_0x242543[_0x29a1f1(0x25c)](_0x32e505,_0x5ddb6e))return[!![],_0x2dafcb];}}catch(_0x43ef0a){return _0x242543[_0x29a1f1(0x275)](_0x242543[_0x29a1f1(0x15f)],_0x242543[_0x29a1f1(0x15f)])?![]:![];}return![];}async[a3_0x4622dc(0x246)](){const _0x157c7c=a3_0x4622dc,_0x3f99ea={'xOMQx':'templates','dugDh':_0x157c7c(0x229),'yVvIE':_0x157c7c(0x1c4),'FnJvB':_0x157c7c(0x159),'AMKCj':function(_0x42248a,_0x2b94c5){return _0x42248a!==_0x2b94c5;},'bTzjW':'pqXDF','nhtUn':'irlzX','ndxBY':_0x157c7c(0x27d),'ohzUI':_0x157c7c(0x1eb),'svtWZ':function(_0x19a422,_0x5c901f){return _0x19a422===_0x5c901f;},'QsDsA':'FzVgD','ThNkD':_0x157c7c(0x251),'EibrS':function(_0x4bca84,_0x106e5b){return _0x4bca84===_0x106e5b;},'eLjDI':_0x157c7c(0x286),'uuhBc':'UmtQY','zMZAr':function(_0x9ed4ad,_0x47184a){return _0x9ed4ad!==_0x47184a;},'pHToI':_0x157c7c(0x273),'ftgmy':function(_0x287ce3,_0x167ef0){return _0x287ce3>_0x167ef0;},'WfzLj':function(_0x24c496,_0x2812a8){return _0x24c496!==_0x2812a8;},'vQjXm':_0x157c7c(0x15b),'wfErV':function(_0x8a3080,_0x317432){return _0x8a3080<_0x317432;},'GIcRX':function(_0x3ab911,_0x2c95eb){return _0x3ab911===_0x2c95eb;},'kMSxD':_0x157c7c(0x200),'Hcapv':_0x157c7c(0x263),'ABbpd':function(_0x1e7f88,_0x3da68a){return _0x1e7f88+_0x3da68a;},'RMnyC':function(_0x3afbfd,_0x5a0007){return _0x3afbfd(_0x5a0007);},'Mfjrq':_0x157c7c(0x170),'SyRuw':function(_0x39f19a,_0x2897bd){return _0x39f19a<=_0x2897bd;},'Hvjhl':function(_0x137249,_0x2803dc){return _0x137249>_0x2803dc;},'SWWvb':function(_0x4156c4,_0x40dcb6){return _0x4156c4!==_0x40dcb6;},'JNtSf':'wbRwz','QjPkW':'KKjLG','rZnSW':_0x157c7c(0x24d),'XDaDw':function(_0x5a2fe7){return _0x5a2fe7();},'fcuoF':function(_0x48fda7,_0x4e0e55){return _0x48fda7-_0x4e0e55;},'KRWOM':_0x157c7c(0x1cb),'XFVAr':_0x157c7c(0x1ad)};this['configureIfNotConfigured']();let _0x42ff1a=await fs[_0x157c7c(0x299)](path[_0x157c7c(0x18d)](__dirname,'..',_0x3f99ea[_0x157c7c(0x174)],_0x3f99ea[_0x157c7c(0x163)],_0x3f99ea[_0x157c7c(0x1e1)]),_0x3f99ea[_0x157c7c(0x16e)]);_0x42ff1a=JSON[_0x157c7c(0x2b0)](_0x42ff1a);let _0x50bbac=[global_registry[_0x157c7c(0x27a)]];if(_0x3f99ea[_0x157c7c(0x1f6)](_0x42ff1a[global_registry[_0x157c7c(0x27a)]],undefined)){if(_0x3f99ea[_0x157c7c(0x1f6)](_0x3f99ea[_0x157c7c(0x194)],_0x3f99ea[_0x157c7c(0x1bb)]))_0x50bbac=_0x50bbac['concat'](_0x42ff1a[global_registry[_0x157c7c(0x27a)]]);else return _0x706601['status'][_0x157c7c(0x247)][_0x157c7c(0x196)][0x0]['ip'];}const _0x3e7815=[];for await(let _0xa65d9f of _0x50bbac){if(_0x3f99ea['AMKCj'](_0x3f99ea[_0x157c7c(0x222)],_0x3f99ea['ndxBY']))this[_0x157c7c(0x1cf)]();else{const _0x734e85={};_0x734e85[_0x157c7c(0x234)]=_0x157c7c(0x2a6)+this[_0x157c7c(0x24c)]+_0x157c7c(0x289)+_0xa65d9f;const _0x4c59ac=_0x734e85,_0xf1456c=await this[_0x157c7c(0x276)][_0x157c7c(0x2b6)](_0x4c59ac);for(const _0x544c8b of _0xf1456c[0x0][_0x157c7c(0x2aa)]){if(_0x3f99ea['AMKCj'](_0x3f99ea[_0x157c7c(0x206)],_0x3f99ea['ohzUI'])){const _0x39a083=this['credentialsPath'],_0xe5332a={};_0xe5332a[_0x157c7c(0x202)]=_0x39a083,this[_0x157c7c(0x276)]=new _0x19e64b['v1'][(_0x157c7c(0x1d2))](_0xe5332a);const _0x3c8f5e={};_0x3c8f5e['keyFile']=_0x39a083,this[_0x157c7c(0x1fc)]=new _0x5d2721['v1'][(_0x157c7c(0x2b2))](_0x3c8f5e);const _0x541f61={};_0x541f61[_0x157c7c(0x202)]=_0x39a083,this[_0x157c7c(0x225)]=new _0x26682b(_0x541f61),this[_0x157c7c(0x19e)]=_0x529b10['iam']('v1'),_0x473a64[_0x157c7c(0x296)]=!![];}else _0x3f99ea[_0x157c7c(0x23a)](_0x544c8b[_0x157c7c(0x21c)],this['clusterName'])&&(_0x3f99ea[_0x157c7c(0x1f6)](_0x3f99ea[_0x157c7c(0x221)],_0x3f99ea[_0x157c7c(0x281)])?_0x3e7815[_0x157c7c(0x1df)](_0xa65d9f):_0x5a5861[_0x157c7c(0x1c7)][_0x157c7c(0x1df)](_0x1930d));}}}const _0x443009=_0x3e7815[_0x157c7c(0x278)];if(_0x3f99ea[_0x157c7c(0x23a)](_0x443009,0x1))return _0x3f99ea[_0x157c7c(0x284)](_0x3f99ea[_0x157c7c(0x28f)],_0x3f99ea[_0x157c7c(0x1c8)])?!![]:(_0x3f99ea[_0x157c7c(0x268)](global_registry['clusterRegion'],_0x3e7815[0x0])&&(_0x3f99ea[_0x157c7c(0x284)](_0x3f99ea[_0x157c7c(0x25f)],_0x3f99ea[_0x157c7c(0x25f)])?(global_registry[_0x157c7c(0x27a)]=_0x3e7815[0x0],this[_0x157c7c(0x24b)]()):!this['isConfigured']()&&this[_0x157c7c(0x1cf)]()),!![]);else{if(_0x3f99ea['ftgmy'](_0x443009,0x1)){if(_0x3f99ea['WfzLj'](_0x3f99ea[_0x157c7c(0x250)],_0x3f99ea[_0x157c7c(0x250)]))_0x51e472[_0x157c7c(0x1d5)](_0x157c7c(0x201)+this[_0x157c7c(0x238)]+_0x157c7c(0x2b8)+_0x443bae[_0x157c7c(0x27a)]+_0x157c7c(0x1e2));else{console[_0x157c7c(0x1c2)](_0x157c7c(0x1f1)+this['clusterName']+'\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:');for(let _0x211730=0x0;_0x3f99ea[_0x157c7c(0x274)](_0x211730,_0x443009);_0x211730+=0x1){if(_0x3f99ea[_0x157c7c(0x1db)](_0x3f99ea[_0x157c7c(0x1a6)],_0x3f99ea[_0x157c7c(0x2a3)]))return[!![],_0x43972b];else console[_0x157c7c(0x1c2)]('['+_0x3f99ea[_0x157c7c(0x17a)](_0x211730,0x1)+']\x20'+_0x3e7815[_0x211730]);}const _0x4e780a=await _0x3f99ea[_0x157c7c(0x28c)](inputConfirmation,_0x3f99ea['Mfjrq']),_0x2343b2=_0x3f99ea[_0x157c7c(0x28c)](Number,_0x4e780a);return(_0x3f99ea[_0x157c7c(0x28c)](isNaN,_0x2343b2)||_0x3f99ea[_0x157c7c(0x269)](_0x2343b2,0x0)||_0x3f99ea['Hvjhl'](_0x2343b2,_0x443009))&&(_0x3f99ea[_0x157c7c(0x1fd)](_0x3f99ea[_0x157c7c(0x270)],_0x3f99ea[_0x157c7c(0x197)])?(console[_0x157c7c(0x235)](_0x3f99ea[_0x157c7c(0x261)]),process[_0x157c7c(0x2a1)](0x1)):(_0x3ee27f['clusterRegion']=_0x191b07[0x0],this[_0x157c7c(0x24b)]())),_0x3f99ea[_0x157c7c(0x1e4)](closeInput),logger[_0x157c7c(0x19f)](_0x157c7c(0x199)+_0x3e7815[_0x3f99ea[_0x157c7c(0x1da)](_0x2343b2,0x1)]),_0x3f99ea[_0x157c7c(0x1fd)](global_registry[_0x157c7c(0x27a)],_0x3e7815[_0x3f99ea['fcuoF'](_0x2343b2,0x1)])&&(_0x3f99ea['svtWZ'](_0x3f99ea[_0x157c7c(0x164)],_0x3f99ea[_0x157c7c(0x1af)])?_0x579cfd['push'](_0x339703):(global_registry[_0x157c7c(0x27a)]=_0x3e7815[_0x3f99ea[_0x157c7c(0x1da)](_0x2343b2,0x1)],this[_0x157c7c(0x24b)]())),!![];}}}return![];}async[a3_0x4622dc(0x29f)](){const _0x48793a=a3_0x4622dc,_0x433ce9=await this['containerClient'][_0x48793a(0x19a)]({'name':_0x48793a(0x2a6)+this[_0x48793a(0x24c)]+'/locations/'+global_registry['clusterRegion']+'/clusters/'+this[_0x48793a(0x238)]});return _0x433ce9;}async[a3_0x4622dc(0x271)](){const _0x3679f5=a3_0x4622dc,_0x277502={};_0x277502['uAQvI']=_0x3679f5(0x18c),_0x277502[_0x3679f5(0x1ba)]=_0x3679f5(0x229),_0x277502[_0x3679f5(0x254)]=_0x3679f5(0x1a3);const _0x5a7d4e=_0x277502;cp['execSync']('gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false'),cp['exec'](_0x3679f5(0x26b)+this['credentialsPath']);const _0x337adf=await this[_0x3679f5(0x29f)](),_0x7717f2=_0x3679f5(0x220)+this['projectId']+'_'+global_registry['clusterRegion']+'_'+this[_0x3679f5(0x238)];let _0x5a9e38=await fs[_0x3679f5(0x299)](path['join'](__dirname,'..',_0x5a7d4e[_0x3679f5(0x23d)],_0x5a7d4e[_0x3679f5(0x1ba)],_0x5a7d4e[_0x3679f5(0x254)]));return _0x5a9e38=_0x5a9e38[_0x3679f5(0x207)](),_0x5a9e38=_0x5a9e38[_0x3679f5(0x193)](/<CLUSTER_NAME>/g,_0x7717f2),_0x5a9e38=_0x5a9e38[_0x3679f5(0x193)](/<CLUSTER_URL>/g,_0x3679f5(0x1a5)+_0x337adf[0x0][_0x3679f5(0x16b)]),_0x5a9e38=_0x5a9e38[_0x3679f5(0x193)](/<CERTIFICATE_DATA>/g,_0x337adf[0x0][_0x3679f5(0x25d)][_0x3679f5(0x20e)]),_0x5a9e38;}async[a3_0x4622dc(0x1e3)](){const _0x15e24c=a3_0x4622dc,_0x795b45={};_0x795b45[_0x15e24c(0x22c)]=function(_0x7e6fb1,_0x385b96){return _0x7e6fb1===_0x385b96;},_0x795b45['NYAJy']=_0x15e24c(0x1bc),_0x795b45['QcphK']=_0x15e24c(0x151),_0x795b45['IMRlP']='RIJMV',_0x795b45[_0x15e24c(0x1a1)]='DUEjs';const _0x313904=_0x795b45,_0x4fb89d={};_0x4fb89d[_0x15e24c(0x2a5)]=[_0x313904[_0x15e24c(0x2a0)]],_0x4fb89d['keyFile']=this[_0x15e24c(0x293)];const _0x5c09c7=await google[_0x15e24c(0x279)][_0x15e24c(0x1a8)](_0x4fb89d),_0x448ac8=await this[_0x15e24c(0x19e)][_0x15e24c(0x26c)]['serviceAccounts'][_0x15e24c(0x143)]({'name':_0x15e24c(0x2a6)+this[_0x15e24c(0x24c)],'auth':_0x5c09c7});for(const _0xe6da3f of _0x448ac8?.[_0x15e24c(0x148)]?.['accounts']){if(_0x313904[_0x15e24c(0x22c)](_0x313904['QcphK'],_0x313904['QcphK'])){if(_0x313904[_0x15e24c(0x22c)](_0xe6da3f?.[_0x15e24c(0x21c)],_0x15e24c(0x2a6)+this['projectId']+_0x15e24c(0x298)+this[_0x15e24c(0x228)]+'@'+this['projectId']+_0x15e24c(0x1c0)))return _0x313904[_0x15e24c(0x22c)](_0x313904['IMRlP'],_0x313904[_0x15e24c(0x1a1)])?![]:!![];}else _0x313904[_0x15e24c(0x22c)](_0x4ae189[_0x15e24c(0x21c)],this[_0x15e24c(0x238)])&&_0x3514c7[_0x15e24c(0x1df)](_0x32b7e9);}return![];}async[a3_0x4622dc(0x28d)](){const _0x409b97=a3_0x4622dc,_0x47dea8={};_0x47dea8[_0x409b97(0x22f)]=_0x409b97(0x22d),_0x47dea8[_0x409b97(0x25b)]=function(_0x16fbee,_0x3fc480){return _0x16fbee!==_0x3fc480;},_0x47dea8[_0x409b97(0x145)]=_0x409b97(0x24e),_0x47dea8[_0x409b97(0x22e)]=_0x409b97(0x233),_0x47dea8[_0x409b97(0x21a)]=_0x409b97(0x257),_0x47dea8[_0x409b97(0x1fe)]='https://www.googleapis.com/auth/cloud-platform',_0x47dea8['DGMPk']=_0x409b97(0x180),_0x47dea8['eHoxE']=_0x409b97(0x158),_0x47dea8['GzZsY']=_0x409b97(0x18f),_0x47dea8[_0x409b97(0x23b)]=_0x409b97(0x2a9),_0x47dea8[_0x409b97(0x17d)]=_0x409b97(0x16c),_0x47dea8['VLtVf']=_0x409b97(0x1b0),_0x47dea8[_0x409b97(0x20a)]='storage.buckets.getIamPolicy',_0x47dea8['uqsng']='storage.buckets.getObjectInsights',_0x47dea8['bVjRI']=_0x409b97(0x244),_0x47dea8['fZLGp']=_0x409b97(0x1f4),_0x47dea8[_0x409b97(0x19c)]=_0x409b97(0x14f),_0x47dea8[_0x409b97(0x224)]=_0x409b97(0x1f9),_0x47dea8[_0x409b97(0x236)]=_0x409b97(0x1d6),_0x47dea8['cjifJ']='storage.multipartUploads.abort',_0x47dea8['OnjNX']=_0x409b97(0x1dd),_0x47dea8[_0x409b97(0x249)]=_0x409b97(0x14b),_0x47dea8[_0x409b97(0x204)]=_0x409b97(0x142),_0x47dea8[_0x409b97(0x29d)]='storage.objects.create',_0x47dea8[_0x409b97(0x191)]=_0x409b97(0x16d),_0x47dea8[_0x409b97(0x1ca)]=_0x409b97(0x185),_0x47dea8[_0x409b97(0x149)]=_0x409b97(0x2b7),_0x47dea8['EQRFt']='storage.objects.list',_0x47dea8['wdPsc']=_0x409b97(0x1ae),_0x47dea8[_0x409b97(0x17c)]=_0x409b97(0x22a),_0x47dea8[_0x409b97(0x1e9)]=_0x409b97(0x294),_0x47dea8[_0x409b97(0x1f3)]=_0x409b97(0x240);const _0x387fc9=_0x47dea8,_0x52db08=await this['checkServiceAccount']();if(_0x52db08){if(_0x387fc9[_0x409b97(0x25b)](_0x387fc9[_0x409b97(0x145)],_0x387fc9[_0x409b97(0x145)])){_0x4d6b41['info'](_0x387fc9[_0x409b97(0x22f)]);throw _0x1092e9;}else{logger[_0x409b97(0x19f)](_0x387fc9['TErKD']);return;}}logger[_0x409b97(0x19f)](_0x387fc9['uWUAD']);const _0x3335d6={};_0x3335d6[_0x409b97(0x2a5)]=[_0x387fc9['SQomo']],_0x3335d6[_0x409b97(0x202)]=this[_0x409b97(0x293)];const _0xc7696b=await google['auth']['getClient'](_0x3335d6),_0x16fed8={};_0x16fed8[_0x409b97(0x1a2)]=[_0x387fc9[_0x409b97(0x241)],_0x387fc9[_0x409b97(0x16a)],_0x387fc9[_0x409b97(0x29b)],_0x387fc9[_0x409b97(0x23b)],_0x387fc9['qpFrr'],_0x387fc9[_0x409b97(0x192)],_0x387fc9[_0x409b97(0x20a)],_0x387fc9[_0x409b97(0x21b)],_0x387fc9[_0x409b97(0x14a)],_0x387fc9['fZLGp'],_0x387fc9[_0x409b97(0x19c)],_0x387fc9[_0x409b97(0x224)],_0x387fc9[_0x409b97(0x236)],_0x387fc9['cjifJ'],_0x387fc9[_0x409b97(0x2a7)],_0x387fc9[_0x409b97(0x249)],_0x387fc9['XSQsy'],_0x387fc9[_0x409b97(0x29d)],_0x387fc9[_0x409b97(0x191)],_0x387fc9[_0x409b97(0x1ca)],_0x387fc9[_0x409b97(0x149)],_0x387fc9[_0x409b97(0x1c9)],_0x387fc9[_0x409b97(0x212)],_0x387fc9[_0x409b97(0x17c)]],_0x16fed8[_0x409b97(0x2b5)]=_0x387fc9['bAeut'],await this['iamClient'][_0x409b97(0x1b7)]['roles'][_0x409b97(0x19b)]({'parent':_0x409b97(0x2a6)+this['projectId'],'requestBody':{'role':_0x16fed8,'roleId':this['customRoleName']},'auth':_0xc7696b});const _0x9c1d9a={};_0x9c1d9a['name']='projects/'+this[_0x409b97(0x24c)],_0x9c1d9a[_0x409b97(0x15e)]={},_0x9c1d9a[_0x409b97(0x279)]=_0xc7696b,_0x9c1d9a[_0x409b97(0x15e)][_0x409b97(0x146)]=this[_0x409b97(0x228)];const _0x9faf83=_0x9c1d9a;await this[_0x409b97(0x19e)][_0x409b97(0x26c)][_0x409b97(0x264)]['create'](_0x9faf83);let _0x2ce425=await this['resourcemanagerClient']['getIamPolicy']({'resource':_0x409b97(0x2a6)+this[_0x409b97(0x24c)]});_0x2ce425=_0x2ce425[0x0][_0x409b97(0x253)];const _0x446ade={};_0x446ade[_0x409b97(0x209)]=_0x409b97(0x2a6)+this[_0x409b97(0x24c)]+_0x409b97(0x219)+this[_0x409b97(0x15d)],_0x446ade[_0x409b97(0x144)]=[_0x409b97(0x198)+this[_0x409b97(0x228)]+'@'+this['projectId']+_0x409b97(0x1c0)],_0x2ce425[_0x409b97(0x1df)](_0x446ade);const _0x415e9e={};_0x415e9e[_0x409b97(0x253)]=_0x2ce425,await this[_0x409b97(0x225)]['setIamPolicy']({'resource':_0x409b97(0x2a6)+this['projectId'],'policy':_0x415e9e}),logger[_0x409b97(0x19f)](_0x387fc9[_0x409b97(0x1f3)]);}async['setupNewCluster'](_0x266c58=a3_0x4622dc(0x20c),_0x4e35ba=[a3_0x4622dc(0x20c)]){const _0x30fda1=a3_0x4622dc,_0x3d97a0={};_0x3d97a0[_0x30fda1(0x1c6)]=_0x30fda1(0x20b),_0x3d97a0[_0x30fda1(0x1f7)]=_0x30fda1(0x23f),_0x3d97a0['CGTpc']=_0x30fda1(0x295);const _0x26c3c7=_0x3d97a0,_0x282872=_0x26c3c7['CBUBO'][_0x30fda1(0x259)]('|');let _0x49360c=0x0;while(!![]){switch(_0x282872[_0x49360c++]){case'0':const _0x24da70={};_0x24da70[_0x30fda1(0x1e8)]=WS_EVENTS['LOG'],_0x24da70[_0x30fda1(0x1c3)]=_0x26c3c7[_0x30fda1(0x1f7)],this[_0x30fda1(0x223)]['sendEventToBackend'](this['rws'],_0x24da70);continue;case'1':await this['setupServiceAccount']();continue;case'2':return!![];case'3':await this[_0x30fda1(0x1f5)]();continue;case'4':await this[_0x30fda1(0x28a)](_0x266c58,_0x4e35ba);continue;case'5':logger['info'](_0x26c3c7[_0x30fda1(0x26d)]);continue;}break;}}async[a3_0x4622dc(0x28a)](_0x56459d='default',_0x298b97=[a3_0x4622dc(0x20c)]){const _0x18c33d=a3_0x4622dc,_0x49f88d={};_0x49f88d['XfPNr']=function(_0x2be10c,_0x52832c){return _0x2be10c-_0x52832c;},_0x49f88d[_0x18c33d(0x25a)]=function(_0x1b30a9,_0xb680f0){return _0x1b30a9===_0xb680f0;},_0x49f88d[_0x18c33d(0x27b)]=_0x18c33d(0x24d),_0x49f88d[_0x18c33d(0x1d3)]=function(_0x30eee5,_0x38df1a){return _0x30eee5===_0x38df1a;},_0x49f88d[_0x18c33d(0x1b5)]='FKNpq',_0x49f88d[_0x18c33d(0x227)]=_0x18c33d(0x1cd),_0x49f88d[_0x18c33d(0x152)]=_0x18c33d(0x1ec),_0x49f88d[_0x18c33d(0x1de)]=_0x18c33d(0x18c),_0x49f88d[_0x18c33d(0x186)]=_0x18c33d(0x229),_0x49f88d[_0x18c33d(0x1ee)]=_0x18c33d(0x29e),_0x49f88d[_0x18c33d(0x27e)]='utf-8',_0x49f88d['OiNWT']='regionmap.json',_0x49f88d[_0x18c33d(0x16f)]=function(_0x427d82,_0x276edd){return _0x427d82*_0x276edd;},_0x49f88d['Letnq']=function(_0x3554a7,_0x7121c8){return _0x3554a7*_0x7121c8;},_0x49f88d[_0x18c33d(0x2a8)]=function(_0x569768,_0x12eb6f){return _0x569768!==_0x12eb6f;},_0x49f88d['rCAUQ']=_0x18c33d(0x176),_0x49f88d[_0x18c33d(0x1b4)]=_0x18c33d(0x1ed),_0x49f88d[_0x18c33d(0x248)]=function(_0x17eaa2,_0x26df70){return _0x17eaa2!==_0x26df70;},_0x49f88d[_0x18c33d(0x26f)]=_0x18c33d(0x156),_0x49f88d[_0x18c33d(0x166)]='Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20',_0x49f88d['JVTgz']=function(_0x67aa58,_0x459f6e){return _0x67aa58===_0x459f6e;},_0x49f88d[_0x18c33d(0x181)]=_0x18c33d(0x153),_0x49f88d['LCcrF']=_0x18c33d(0x2ad);const _0x202d0b=_0x49f88d;try{if(_0x202d0b[_0x18c33d(0x1d3)](_0x202d0b[_0x18c33d(0x1b5)],_0x202d0b[_0x18c33d(0x227)]))return _0x1a89a8['error'](_0x18c33d(0x1b6)+_0x50a146+_0x18c33d(0x1d8)+_0x1cccca),[![],[]];else{logger[_0x18c33d(0x19f)](_0x202d0b[_0x18c33d(0x152)]);let _0x14d949=await fs[_0x18c33d(0x299)](path[_0x18c33d(0x18d)](__dirname,'..',_0x202d0b[_0x18c33d(0x1de)],_0x202d0b[_0x18c33d(0x186)],_0x202d0b[_0x18c33d(0x1ee)]),_0x202d0b[_0x18c33d(0x27e)]);_0x14d949=JSON[_0x18c33d(0x2b0)](_0x14d949);let _0x413a10=await fs[_0x18c33d(0x299)](path[_0x18c33d(0x18d)](__dirname,'..',_0x202d0b[_0x18c33d(0x1de)],_0x202d0b['HVvFU'],_0x202d0b[_0x18c33d(0x147)]),_0x202d0b[_0x18c33d(0x27e)]);_0x413a10=JSON['parse'](_0x413a10),_0x14d949[_0x18c33d(0x21c)]=this[_0x18c33d(0x238)],_0x14d949['nodePools'][0x0][_0x18c33d(0x25e)][_0x18c33d(0x1c1)]=global_registry['instanceType'],_0x14d949['nodePools'][0x1][_0x18c33d(0x25e)][_0x18c33d(0x1c1)]=global_registry[_0x18c33d(0x150)],_0x14d949['nodePools'][0x0][_0x18c33d(0x25e)][_0x18c33d(0x17e)]=this[_0x18c33d(0x228)]+'@'+this[_0x18c33d(0x24c)]+_0x18c33d(0x1c0),_0x14d949[_0x18c33d(0x1ea)][0x1][_0x18c33d(0x25e)][_0x18c33d(0x17e)]=this['serviceAccountName']+'@'+this[_0x18c33d(0x24c)]+_0x18c33d(0x1c0),_0x14d949['nodePools'][0x0][_0x18c33d(0x165)]['minNodeCount']=global_registry['minNodes'],_0x14d949['nodePools'][0x1]['autoscaling'][_0x18c33d(0x262)]=0x0,_0x14d949['nodePools'][0x0][_0x18c33d(0x165)][_0x18c33d(0x14c)]=global_registry['maxNodes'],_0x14d949[_0x18c33d(0x1ea)][0x1][_0x18c33d(0x165)][_0x18c33d(0x14c)]=global_registry['maxNodes'],_0x14d949[_0x18c33d(0x210)]=global_registry[_0x18c33d(0x27a)],_0x14d949[_0x18c33d(0x171)]=[_0x413a10[global_registry[_0x18c33d(0x27a)]][0x0]],_0x14d949['network']=_0x18c33d(0x2a6)+this['projectId']+_0x18c33d(0x297)+_0x56459d,_0x14d949[_0x18c33d(0x21f)]=_0x18c33d(0x2a6)+this[_0x18c33d(0x24c)]+_0x18c33d(0x175)+global_registry['clusterRegion']+_0x18c33d(0x14d)+_0x298b97[0x0];const _0x4ce777=await this[_0x18c33d(0x276)][_0x18c33d(0x28a)]({'cluster':_0x14d949,'parent':_0x18c33d(0x2a6)+this['projectId']+_0x18c33d(0x289)+global_registry[_0x18c33d(0x27a)]});await this['webSocketUtils']['delay'](_0x202d0b['njqxO'](_0x202d0b[_0x18c33d(0x155)](0x7,0x3c),0x3e8));}}catch(_0x5676f8){if(_0x202d0b[_0x18c33d(0x2a8)](_0x202d0b['rCAUQ'],_0x202d0b['XZoKm'])){const _0x5a8891=await this['isClusterPresent']();if(_0x5a8891)_0x202d0b[_0x18c33d(0x248)](_0x202d0b['pJDfe'],_0x202d0b[_0x18c33d(0x26f)])?(_0x32381f[_0x18c33d(0x27a)]=_0x5a80ea[_0x202d0b['XfPNr'](_0x2a20b5,0x1)],this[_0x18c33d(0x24b)]()):(logger[_0x18c33d(0x19f)](_0x202d0b['dluTy'],_0x5676f8[_0x18c33d(0x1be)]),await this[_0x18c33d(0x28b)]());else{if(_0x202d0b[_0x18c33d(0x1ac)](_0x202d0b[_0x18c33d(0x181)],_0x202d0b[_0x18c33d(0x181)]))logger[_0x18c33d(0x19f)](_0x202d0b[_0x18c33d(0x291)]);else{if(_0x202d0b[_0x18c33d(0x25a)](_0x250626?.['name'],_0x18c33d(0x2a6)+this[_0x18c33d(0x24c)]+'/serviceAccounts/'+this[_0x18c33d(0x228)]+'@'+this[_0x18c33d(0x24c)]+_0x18c33d(0x1c0)))return!![];}}throw _0x5676f8;}else _0x3380dd['error'](_0x202d0b[_0x18c33d(0x27b)]),_0x3f4ec8[_0x18c33d(0x2a1)](0x1);}}async[a3_0x4622dc(0x1f5)](){const _0x28caab=a3_0x4622dc;cp[_0x28caab(0x1d5)](_0x28caab(0x201)+this[_0x28caab(0x238)]+_0x28caab(0x2b8)+global_registry[_0x28caab(0x27a)]+_0x28caab(0x1e2));}async['deleteCluster'](_0x3c7f10,_0x366eb6){const _0x388e5a=a3_0x4622dc,_0x35f761={'munzC':function(_0x1ac7a5,_0x94a7d6){return _0x1ac7a5!==_0x94a7d6;},'sugOE':_0x388e5a(0x2ad),'nHdry':function(_0x1f54b2,_0x409f57){return _0x1f54b2===_0x409f57;},'EjoMb':_0x388e5a(0x1e6),'XIAzd':function(_0x5c2c22,_0x4624af){return _0x5c2c22(_0x4624af);},'StVQA':function(_0xdcf3e3,_0x24c62d){return _0xdcf3e3===_0x24c62d;},'srLnd':'RUNNING','pXSzH':function(_0x23f161,_0x1849ab){return _0x23f161===_0x1849ab;},'BEeic':_0x388e5a(0x168),'tzoFq':function(_0x50272a,_0x430855){return _0x50272a!==_0x430855;},'JebKL':_0x388e5a(0x1f8),'Jjsvf':_0x388e5a(0x20f),'bPhHt':_0x388e5a(0x1a7),'DhxIx':_0x388e5a(0x22d)};try{if(_0x35f761[_0x388e5a(0x272)](_0x35f761[_0x388e5a(0x1d4)],_0x35f761[_0x388e5a(0x1d4)])){await _0x35f761[_0x388e5a(0x1ef)](deleteAgent,_0x3c7f10),await _0x35f761['XIAzd'](deleteRoutingDeps,_0x3c7f10),logger['info'](_0x388e5a(0x290)+this[_0x388e5a(0x238)]);const _0x19bd2b=await this[_0x388e5a(0x276)][_0x388e5a(0x28b)]({'name':_0x388e5a(0x2a6)+this['projectId']+'/locations/'+global_registry[_0x388e5a(0x27a)]+_0x388e5a(0x226)+this[_0x388e5a(0x238)]});if(_0x35f761[_0x388e5a(0x27c)](_0x19bd2b[0x0]?.[_0x388e5a(0x2b1)],_0x35f761[_0x388e5a(0x17b)])||_0x35f761[_0x388e5a(0x2a2)](_0x19bd2b[0x0]?.[_0x388e5a(0x2b1)],_0x35f761[_0x388e5a(0x23e)]))return _0x35f761[_0x388e5a(0x23c)](_0x35f761['JebKL'],_0x35f761[_0x388e5a(0x1bd)])?!![]:!![];logger[_0x388e5a(0x19f)](_0x388e5a(0x190));}else return _0x35f761[_0x388e5a(0x255)](_0x2c7d18[_0x388e5a(0x27a)],_0x595409[0x0])&&(_0x455754[_0x388e5a(0x27a)]=_0x4f090d[0x0],this['updateClusterRegion']()),!![];}catch(_0x3c7555){if(_0x35f761['pXSzH'](_0x35f761[_0x388e5a(0x2b4)],_0x35f761[_0x388e5a(0x2b4)])){logger['info'](_0x35f761[_0x388e5a(0x15c)]);throw _0x3c7555;}else _0xf6dce7[_0x388e5a(0x19f)](_0x35f761['sugOE']);}}async['isVPCPresent'](_0x2b3a42){const _0x13a48a=a3_0x4622dc,_0x30f67e={};_0x30f67e['RrkCy']=function(_0x5c172c,_0x17e5cc){return _0x5c172c+_0x17e5cc;},_0x30f67e[_0x13a48a(0x292)]=function(_0x5d9a9a,_0x1ce412){return _0x5d9a9a===_0x1ce412;},_0x30f67e['GhFTk']=_0x13a48a(0x177),_0x30f67e[_0x13a48a(0x188)]='PhzyA',_0x30f67e[_0x13a48a(0x29a)]=function(_0x1c4473,_0x64258a){return _0x1c4473>_0x64258a;},_0x30f67e[_0x13a48a(0x203)]=function(_0x25a12e,_0x1029c8){return _0x25a12e!==_0x1029c8;},_0x30f67e[_0x13a48a(0x26e)]=_0x13a48a(0x162),_0x30f67e['ucpID']=function(_0x3546d4,_0xc56e15){return _0x3546d4===_0xc56e15;},_0x30f67e[_0x13a48a(0x266)]='ZyQDJ';const _0x505265=_0x30f67e;try{if(_0x505265[_0x13a48a(0x292)](_0x505265[_0x13a48a(0x18a)],_0x505265[_0x13a48a(0x188)]))_0xa60d9[_0x13a48a(0x1c2)]('['+_0x505265[_0x13a48a(0x1ce)](_0x1d7074,0x1)+']\x20'+_0x4d4ce1[_0x4679ca]);else{const _0x139218={};_0x139218[_0x13a48a(0x285)]=projectId,_0x139218['network']=_0x2b3a42;const _0x1a746f=await networkClient['get'](_0x139218);if(_0x505265[_0x13a48a(0x29a)](_0x1a746f[_0x13a48a(0x278)],0x0)&&_0x505265['LNUKd'](_0x1a746f[0x0][_0x13a48a(0x21c)],_0x2b3a42)){if(_0x505265[_0x13a48a(0x203)](_0x505265[_0x13a48a(0x26e)],_0x505265[_0x13a48a(0x26e)]))this[_0x13a48a(0x20d)](this[_0x13a48a(0x237)]);else return!![];}}}catch(_0x5b0b07){if(_0x505265[_0x13a48a(0x2ab)](_0x505265[_0x13a48a(0x266)],_0x505265['VDCsm']))return![];else _0xd13fa4=_0xd8bfc4[_0x13a48a(0x256)](_0x3447c8[_0x135eed[_0x13a48a(0x27a)]]);}return![];}async[a3_0x4622dc(0x208)](_0x188d24,_0xe80113){const _0x2a0927=a3_0x4622dc,_0x2ef270={};_0x2ef270[_0x2a0927(0x1b8)]=function(_0x32c93c,_0x3379da){return _0x32c93c===_0x3379da;},_0x2ef270[_0x2a0927(0x167)]=_0x2a0927(0x233),_0x2ef270[_0x2a0927(0x277)]=function(_0x406889,_0x435858){return _0x406889!==_0x435858;},_0x2ef270[_0x2a0927(0x187)]=_0x2a0927(0x1a4),_0x2ef270[_0x2a0927(0x183)]=_0x2a0927(0x161),_0x2ef270[_0x2a0927(0x1f2)]=function(_0x3f9957,_0x1579a9){return _0x3f9957===_0x1579a9;},_0x2ef270[_0x2a0927(0x1e0)]=function(_0x94767d,_0x42c39c){return _0x94767d===_0x42c39c;},_0x2ef270['DZBbY']=_0x2a0927(0x232),_0x2ef270[_0x2a0927(0x1a9)]=_0x2a0927(0x184);const _0x5a0391=_0x2ef270;try{const _0x2d47b4={};_0x2d47b4[_0x2a0927(0x285)]=projectId,_0x2d47b4[_0x2a0927(0x239)]=_0xe80113;const _0x1e5ad7=await networkClient['get'](_0x2d47b4);for(const _0x3f6dc8 of _0x1e5ad7[0x0][_0x2a0927(0x1b9)]){if(_0x5a0391[_0x2a0927(0x277)](_0x5a0391[_0x2a0927(0x187)],_0x5a0391[_0x2a0927(0x183)])){const _0x114cc0='https://www.googleapis.com/compute/v1/projects/'+this[_0x2a0927(0x24c)]+_0x2a0927(0x175)+global_registry[_0x2a0927(0x27a)]+_0x2a0927(0x14d)+_0x188d24[0x0];if(_0x5a0391[_0x2a0927(0x1f2)](_0x114cc0,_0x3f6dc8))return _0x5a0391[_0x2a0927(0x1e0)](_0x5a0391['DZBbY'],_0x5a0391[_0x2a0927(0x1a9)])?_0x5a0391['iVaOv'](_0x3a6aa5[_0x2a0927(0x296)],!![]):[!![],_0x188d24];}else{_0x3e2aa2[_0x2a0927(0x19f)](_0x5a0391[_0x2a0927(0x167)]);return;}}}catch(_0xe8e023){return logger[_0x2a0927(0x235)](_0x2a0927(0x1b6)+_0x188d24+'.\x20Error:\x20'+_0xe8e023),[![],[]];}return[![],[]];}async[a3_0x4622dc(0x20d)](){const _0x1a7d8a=a3_0x4622dc,_0x2cc9af=await this[_0x1a7d8a(0x1fc)][_0x1a7d8a(0x143)]({'project':this['projectId']}),_0x207349={};_0x207349[_0x1a7d8a(0x1ff)]=global_registry[_0x1a7d8a(0x1b3)],_0x207349[_0x1a7d8a(0x24f)]=global_registry[_0x1a7d8a(0x287)],_0x207349['cloudProvider']=GCP,_0x207349[_0x1a7d8a(0x1c7)]=[];const _0x52f166=_0x207349;for(const _0x32bbed of _0x2cc9af){_0x52f166[_0x1a7d8a(0x1c7)][_0x1a7d8a(0x1df)](_0x32bbed);}const _0x36b12a={};_0x36b12a[_0x1a7d8a(0x1e8)]=WS_EVENTS[_0x1a7d8a(0x2a4)],_0x36b12a[_0x1a7d8a(0x1c3)]=_0x52f166,this[_0x1a7d8a(0x223)][_0x1a7d8a(0x182)](this[_0x1a7d8a(0x237)],_0x36b12a);}async[a3_0x4622dc(0x24b)](){const _0x1f7f26=a3_0x4622dc,_0x497bb4={'wIBBx':function(_0x17296f,_0x1088bc,_0x79b4b0){return _0x17296f(_0x1088bc,_0x79b4b0);},'Bmegt':_0x1f7f26(0x1e5),'eGahT':_0x1f7f26(0x2ae)},_0x4d2cdc=_0x1f7f26(0x1a5)+AG_API_URL+'/packages/cli/update-cluster-region',_0x4db30e={};_0x4db30e[_0x1f7f26(0x242)]=global_registry[_0x1f7f26(0x215)];const _0x1cc1f3={};_0x1cc1f3['newRegion']=global_registry['clusterRegion'];const _0x4f5e4a={'searchParams':_0x4db30e,'json':_0x1cc1f3,'headers':_0x497bb4[_0x1f7f26(0x172)](getAuthHeader,global_registry[_0x1f7f26(0x1b3)],global_registry[_0x1f7f26(0x287)]),'method':_0x497bb4[_0x1f7f26(0x1cc)],'responseType':_0x497bb4[_0x1f7f26(0x179)],'throwHttpErrors':![]},_0x3db70f=await _0x497bb4[_0x1f7f26(0x172)](got,_0x4d2cdc,_0x4f5e4a);}}function a3_0x1939(_0x3c0431,_0x57b152){const _0x49e4f7=a3_0x49e4();return a3_0x1939=function(_0x19396d,_0x91a0a5){_0x19396d=_0x19396d-0x141;let _0x5b7f20=_0x49e4f7[_0x19396d];return _0x5b7f20;},a3_0x1939(_0x3c0431,_0x57b152);}const a3_0x2dd53d={};a3_0x2dd53d[a3_0x4622dc(0x2af)]=GoogleCloudProvider,module['exports']=a3_0x2dd53d;
|
|
1
|
+
const a3_0x123ef6=a3_0x507f;function a3_0xe1b9(){const _0xf7c118=['EXTru','webSocketUtils','zoXAe','fOqoJ','accounts','lCues','members','listClusters','tEzWu','olZJt','getGridHostname','log','parent','gke_','oCFBM','replace','@google-cloud/resource-manager','isClusterPresent','VsHQD','../config/constants','network','EzRIt','vHtNA','HNcEd','jLKeL','iPXvh','gAEDP','871050Pqetxa','networkClient','split','iamClient','stack','iam','bixjp','serviceAccountName','ClusterManagerClient','PwSRE','729640TnMLAL','parse','storage.objects.setIamPolicy','type','join','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','PUT','customRoleName','/roles/','cXBQq','/subnetworks/','uADsg','sendGCPInfoToHST','create','dOQgi','HsQrL','nodePools','cAajk','util','keyFile','iKOZt','sSHOz','containerClient','ygPbS','tdesa','getClient','WSToc','mPDLN','fetchLocalCreds','Cannot\x20find\x20subnets\x20','turboscale-service-account','LttBq','rws','roles','DkKql','SmmEx','autoscaling','createCluster','xzXXu','/regions/','vgLmy','UdePS','data','getClusterInfo','NFTRG','pAViC','xstMP','ffCyi','wzrOW','RbTKZ','\x20--quiet\x20--user-output-enabled=false','/global/networks/','@google-cloud/container','maxNodes','VeNns','https://www.googleapis.com/auth/cloud-platform','bSLOF','sendResourceDataToHST','configureIfNotConfigured','isConfigured','fJFkw','/clusters/','655536mMWlFM','GKE\x20Cluster\x20deletion\x20failed','fITUN','qmWRP','accountId','ENhCe','./CloudProvider','projects','profileId','googleapis','OLvVu','GBhNl','tHGIl','storage.buckets.listTagBindings','setConfig','gpAPT','get','updateWindowsNodeGroup','anDJy','TTpvd','QMeXJ','SgHby','yOgTL','ilzzs','MMIBM','GoogleCloudProvider','cloudProvider','serviceAccounts','ywilv','bstackUsername','uyDIS','storage.objects.list','wMYmu','checkServiceAccount','.iam.gserviceaccount.com','NPjRj','auth','IgZuj','username','DvzOi','KqNWm','JxjkN','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','seTXn','config','gcpresources','/serviceAccounts/','path','sendEventToBackend','atbMC','project','OZWIJ','ebnaV','templates','MXYMG','/packages/cli/update-cluster-region','location','Deleting\x20the\x20cluster\x20','storage.multipartUploads.create','TFZXy','getUserInput','Wxkjl','Dwppv','DONE','sycWQ','WFJMZ','requestBody','vorZF','writeFileSync','tRSvl','list','icRWZ','setIamPolicy','TdWQT','regionmap.json','mKemr','PepTG','deleteCluster','turboscale_custom_role','HAIsg','storage.buckets.create','1LLxtYr','3|4|5|0|1|2','setupServiceAccount','RUNNING','fOjpF','jNBsJ','delay','251654rBzezE','exports','../utils/userInput','scopes','MCVus','Fwtyp','kazRM','RESOURCES','JTLdl','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','kaTkf','AsMOs','utf-8','serviceAccount','storage.buckets.update','mXtfA','minNodeCount','iWrCA','onePv','yNWHd','masterAuth','storage.buckets.delete','iUmOJ','FpyyU','storage.multipartUploads.list','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','isSubnetsValid','vndEA','resourceLabels','MWXUY','CXtEu','wFqal','bstackAccesskey','TOnct','FEwOc','NetworksClient','uKlls','storage.buckets.createTagBinding','UCMcO','isVPCPresent','MLoLx','lBPYX','bBGus','name','message','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','QVEjn','vPvuP','default','getCluster','RajKv','machineType','SYQrE','storage.buckets.setIamPolicy','vpcInfo','storage.objects.getIamPolicy','error','SCXaj','UUZtW','storage.objects.get','includedPermissions','fuoiL','cWWpF','WISgW','ZGouV','mAQzp','instanceType','DUWWy','toString','gridProfileId','GUbga','Rmwml','organizations','ulohD','role','gkecluster.json','bWKPu','107787HnTsOI','toLowerCase','bindings','Cluster\x20creation\x20failed','updateClusterRegion','loadBalancer','eVlQg','maxNodeCount','ingress','exit','push','.\x20Error:\x20','gPHrv','readFileAsync','doAHO','exec','yvKDy','projects/','LOG','serviceAccount:','taXXv','LGzgu','qjcqy','cloudProviderName','QmAQu','EhdRt','YysMO','clusterName','bRsGq','CeBJH','LPPBw','project_id','status','jbOnR','isBrowserstackCluster','iooLI','RVKvV','vMduT','TWCZC','projectId','clusterRegion','UeTtW','kLPpT','locations','eWQxh','credentialsPath','crGXU','bzkQX','iam.serviceAccounts.signBlob','XBQVD','aNeVo','Found\x20cluster\x20with\x20name\x20\x27','storage.multipartUploads.listParts','managedby','UriYE','info','browserstack','PqhkO','tEfGA','FFIkY','nILRh','length','IWmke','gcloud\x20auth\x20login\x20--cred-file=','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','\x20--windows-os-version=ltsc2022\x20--region\x20','newRegion','concat','kIkpS','yptpq','jpqfH','OvAku','gcpConfigSet','execSync','storage.buckets.list','Creating\x20GKE\x20Cluster','jLtSq','resourcemanagerClient','QrSZo','https://','uXVjS','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','CsaoS','oajLj','nwSYA','wrwFM','smbaz','yZYuR','ToxCF','sTpqF','vbeHG','1207722DHHWVo','gcp_credentials.json','IuUil','NCxJx','child_process','208028FleAGi','MutZE','/locations/','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.'];a3_0xe1b9=function(){return _0xf7c118;};return a3_0xe1b9();}(function(_0x32176f,_0x157880){const _0xb3b1e3=a3_0x507f,_0x19b456=_0x32176f();while(!![]){try{const _0x5c482d=parseInt(_0xb3b1e3(0x8e))/0x1*(parseInt(_0xb3b1e3(0x95))/0x2)+-parseInt(_0xb3b1e3(0xe2))/0x3+parseInt(_0xb3b1e3(0x142))/0x4+-parseInt(_0xb3b1e3(0x161))/0x5+parseInt(_0xb3b1e3(0x13d))/0x6+parseInt(_0xb3b1e3(0x1a9))/0x7+-parseInt(_0xb3b1e3(0x16b))/0x8;if(_0x5c482d===_0x157880)break;else _0x19b456['push'](_0x19b456['shift']());}catch(_0xc947d5){_0x19b456['push'](_0x19b456['shift']());}}}(a3_0xe1b9,0x29da1));const fs=require('fs'),path=require(a3_0x123ef6(0x1d8)),got=require('got'),util=require(a3_0x123ef6(0x17d)),cp=require(a3_0x123ef6(0x141)),{google}=require(a3_0x123ef6(0x1b2)),compute=require('@google-cloud/compute'),container=require(a3_0x123ef6(0x19f)),{ProjectsClient}=require(a3_0x123ef6(0x156))['v3'],{logger}=require('../config/logger'),{CloudProvider}=require(a3_0x123ef6(0x1af)),{getDirForConfig,getAuthHeader}=require('../utils/utilityMethods'),{deleteRoutingDeps,deleteAgent}=require('../utils/gridComponents'),{inputConfirmation,closeInput}=require(a3_0x123ef6(0x97)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x123ef6(0x159));class GoogleCloudProvider extends CloudProvider{constructor(_0x53743e,_0x2b4c08,_0x1c2299,_0x153826){const _0x468e82=a3_0x123ef6,_0x5ed969={};_0x5ed969[_0x468e82(0x136)]='7|8|1|5|4|3|0|6|2',_0x5ed969[_0x468e82(0x1cc)]=_0x468e82(0x189),_0x5ed969['ywilv']=_0x468e82(0x1f7);const _0x496da8=_0x5ed969,_0x47ccea=_0x496da8[_0x468e82(0x136)][_0x468e82(0x163)]('|');let _0x59ff46=0x0;while(!![]){switch(_0x47ccea[_0x59ff46++]){case'0':this[_0x468e82(0x109)]=null;continue;case'1':this[_0x468e82(0x162)]=null;continue;case'2':this[_0x468e82(0x168)]=_0x496da8['NPjRj'];continue;case'3':this[_0x468e82(0x10f)]=null;continue;case'4':this[_0x468e82(0x164)]=null;continue;case'5':this['resourcemanagerClient']=null;continue;case'6':this[_0x468e82(0x172)]=_0x496da8[_0x468e82(0x1c5)];continue;case'7':super(GCP,_0x53743e,_0x2b4c08,_0x1c2299,_0x153826);continue;case'8':this[_0x468e82(0x181)]=null;continue;}break;}}[a3_0x123ef6(0x1a5)](){const _0x29263b=a3_0x123ef6,_0xb32407={};_0xb32407['LPPBw']=function(_0x2cfb41,_0x446981){return _0x2cfb41===_0x446981;},_0xb32407[_0x29263b(0xa0)]=function(_0x24ce9a,_0x241d39){return _0x24ce9a!==_0x241d39;},_0xb32407[_0x29263b(0xbe)]=_0x29263b(0x1f4),_0xb32407[_0x29263b(0x99)]=_0x29263b(0xac);const _0x35b8c7=_0xb32407;!this[_0x29263b(0x1a6)]()&&(_0x35b8c7[_0x29263b(0xa0)](_0x35b8c7[_0x29263b(0xbe)],_0x35b8c7[_0x29263b(0x99)])?this['setConfig']():_0x35b8c7[_0x29263b(0x100)](_0x414c5f['name'],this['clusterName'])&&_0x39de88[_0x29263b(0xec)](_0x4d6ceb));}async[a3_0x123ef6(0x1a4)](){const _0x597eae=a3_0x123ef6;this[_0x597eae(0x177)](this[_0x597eae(0x18b)]);}[a3_0x123ef6(0x1a6)](){const _0x28dab5=a3_0x123ef6,_0x5ddd19={};_0x5ddd19['CsaoS']=function(_0x118915,_0xc18c61){return _0x118915===_0xc18c61;};const _0x3da015=_0x5ddd19;return _0x3da015[_0x28dab5(0x134)](global_registry[_0x28dab5(0x12a)],!![]);}['setConfig'](){const _0x2e1203=a3_0x123ef6,_0x594fda=this[_0x2e1203(0x10f)],_0x34f363={};_0x34f363[_0x2e1203(0x17e)]=_0x594fda,this['containerClient']=new container['v1']['ClusterManagerClient'](_0x34f363);const _0x35cf9c={};_0x35cf9c[_0x2e1203(0x17e)]=_0x594fda,this[_0x2e1203(0x162)]=new compute['v1']['NetworksClient'](_0x35cf9c);const _0xd830f1={};_0xd830f1[_0x2e1203(0x17e)]=_0x594fda,this[_0x2e1203(0x12f)]=new ProjectsClient(_0xd830f1),this[_0x2e1203(0x164)]=google[_0x2e1203(0x166)]('v1'),global_registry[_0x2e1203(0x12a)]=!![];}async[a3_0x123ef6(0x1e5)](_0x3a8e11,_0x474281){const _0x7cda9e=a3_0x123ef6,_0x21f507={'vtxwj':function(_0x17643c,_0x5844fd){return _0x17643c(_0x5844fd);},'OLvVu':function(_0x4c5cc0){return _0x4c5cc0();},'smbaz':_0x7cda9e(0x13e)},_0x4d6a2c=await _0x21f507['vtxwj'](_0x3a8e11,'Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20');let _0x143f09=await fs['readFileAsync'](_0x4d6a2c);_0x143f09=_0x143f09[_0x7cda9e(0xd9)]();const _0x1ef5aa=_0x21f507[_0x7cda9e(0x1b3)](getDirForConfig),_0x2919c6=path['join'](_0x1ef5aa,_0x21f507[_0x7cda9e(0x138)]);fs[_0x7cda9e(0x1ed)](_0x2919c6,_0x143f09),this[_0x7cda9e(0x10f)]=_0x2919c6;const _0x2e6523={};return _0x2e6523[_0x7cda9e(0x17e)]=_0x2919c6,_0x474281[_0x7cda9e(0x1c3)][GCP]=_0x2e6523,_0x143f09=JSON['parse'](_0x143f09),this['projectId']=_0x143f09[_0x7cda9e(0x101)],_0x474281;}async[a3_0x123ef6(0x187)](_0x4ef410){const _0x598513=a3_0x123ef6;this[_0x598513(0x10f)]=_0x4ef410[this[_0x598513(0xf9)]]['keyFile'];let _0x199eb1=await fs[_0x598513(0xef)](this['credentialsPath']);_0x199eb1=JSON['parse'](_0x199eb1),this['projectId']=_0x199eb1[_0x598513(0x101)];}[a3_0x123ef6(0x150)](_0x1cb052){const _0x5a2482=a3_0x123ef6;return _0x1cb052[_0x5a2482(0x102)]['loadBalancer'][_0x5a2482(0xea)][0x0]['ip'];}async[a3_0x123ef6(0x104)](){const _0x105a39=a3_0x123ef6,_0x1be7ac={};_0x1be7ac[_0x105a39(0x15c)]=function(_0x54f0b1,_0x339c20){return _0x54f0b1!==_0x339c20;},_0x1be7ac[_0x105a39(0xb2)]=function(_0x4e625b,_0x4cb32d){return _0x4e625b===_0x4cb32d;},_0x1be7ac[_0x105a39(0xbb)]=_0x105a39(0x11a),_0x1be7ac[_0x105a39(0x18e)]='iTurC',_0x1be7ac[_0x105a39(0xfc)]=function(_0x3cf5b2,_0xbe2c16){return _0x3cf5b2!==_0xbe2c16;},_0x1be7ac[_0x105a39(0x14f)]=_0x105a39(0xc4),_0x1be7ac[_0x105a39(0x1dc)]=function(_0x44e0f1,_0x161a3d){return _0x44e0f1===_0x161a3d;},_0x1be7ac[_0x105a39(0xc3)]=function(_0x541f2e,_0x13a784){return _0x541f2e!==_0x13a784;},_0x1be7ac[_0x105a39(0xcf)]=_0x105a39(0xd5);const _0x2faf75=_0x1be7ac;try{if(_0x2faf75[_0x105a39(0xb2)](_0x2faf75['SmmEx'],_0x2faf75['SmmEx'])){const _0x42911b=await this[_0x105a39(0x196)]();if(_0x42911b[0x0]?.[_0x105a39(0xb1)]?.['managedby']){if(_0x2faf75[_0x105a39(0xfc)](_0x2faf75[_0x105a39(0x14f)],_0x2faf75['olZJt']))return!![];else{const _0x51de34=_0x42911b[0x0]?.['resourceLabels']?.[_0x105a39(0x117)];return _0x51de34&&_0x2faf75[_0x105a39(0x1dc)](_0x51de34[_0x105a39(0xe3)](),_0x2faf75[_0x105a39(0xbb)]);}}}else return _0x2faf75['vHtNA'](_0x254d1b[_0x105a39(0x10a)],_0xf8e0ff[0x0])&&(_0x97511a['clusterRegion']=_0x443b86[0x0],this[_0x105a39(0xe6)]()),!![];}catch(_0x264623){if(_0x2faf75[_0x105a39(0xc3)](_0x2faf75[_0x105a39(0xcf)],_0x2faf75[_0x105a39(0xcf)])){const _0x463e39=_0x1b4466[0x0]?.['resourceLabels']?.[_0x105a39(0x117)];return _0x463e39&&_0x2faf75[_0x105a39(0xb2)](_0x463e39[_0x105a39(0xe3)](),_0x2faf75[_0x105a39(0xbb)]);}else return![];}return![];}async['isClusterPresent'](){const _0x12f2c1=a3_0x123ef6,_0x3977a7={'doAHO':_0x12f2c1(0x145),'iUmOJ':'Service\x20account\x20already\x20exists,\x20skipping','UeTtW':function(_0x5a6c53,_0x322d1){return _0x5a6c53===_0x322d1;},'nILRh':function(_0x4d6c55,_0x237f35){return _0x4d6c55+_0x237f35;},'cAajk':function(_0x5f47a2,_0x4ebd61){return _0x5f47a2===_0x4ebd61;},'yNWHd':_0x12f2c1(0x1de),'DOaGn':'gcpresources','tEfGA':_0x12f2c1(0x1f3),'xstMP':'utf-8','ulohD':function(_0x5b42e9,_0x1e2237){return _0x5b42e9!==_0x1e2237;},'FFIkY':function(_0x4f16c2,_0x3df01c){return _0x4f16c2===_0x3df01c;},'DtRTc':_0x12f2c1(0x105),'PepTG':_0x12f2c1(0x13c),'JTLdl':_0x12f2c1(0x1b5),'JxjkN':_0x12f2c1(0x113),'WISgW':_0x12f2c1(0x182),'HoUJw':function(_0x521f6e,_0x19dd50){return _0x521f6e!==_0x19dd50;},'RvtxE':'YxJIw','loGOS':'IZYrq','gpAPT':function(_0x332f26,_0x123c42){return _0x332f26>_0x123c42;},'Fwtyp':function(_0x2e9b3b,_0x23ffc7){return _0x2e9b3b===_0x23ffc7;},'bRsGq':_0x12f2c1(0x17a),'RajKv':function(_0x2b7864,_0x3cf608){return _0x2b7864<_0x3cf608;},'EIsEX':'CdCCT','PLaTs':function(_0x43aa74,_0x39ea4b){return _0x43aa74(_0x39ea4b);},'vgLmy':_0x12f2c1(0xae),'oajLj':function(_0x5de989,_0x16d08b){return _0x5de989(_0x16d08b);},'ffCyi':function(_0x729efe,_0x5271ad){return _0x729efe(_0x5271ad);},'wMYmu':function(_0x518b93,_0x329a0e){return _0x518b93<=_0x329a0e;},'MutZE':function(_0x51a4e3,_0x2dcdd1){return _0x51a4e3>_0x2dcdd1;},'QMeXJ':_0x12f2c1(0x185),'wzrOW':function(_0x18b249){return _0x18b249();},'vndEA':function(_0x435626,_0x5d7ce5){return _0x435626-_0x5d7ce5;},'eVlQg':function(_0x4f29e2,_0x483e99){return _0x4f29e2!==_0x483e99;},'anDJy':'zBAAr','hFxTe':_0x12f2c1(0x1d1),'ilzzs':function(_0x2343d8,_0x403f4d){return _0x2343d8-_0x403f4d;}};this['configureIfNotConfigured']();let _0x32b714=await fs[_0x12f2c1(0xef)](path[_0x12f2c1(0x16f)](__dirname,'..',_0x3977a7[_0x12f2c1(0xa8)],_0x3977a7['DOaGn'],_0x3977a7[_0x12f2c1(0x11c)]),_0x3977a7[_0x12f2c1(0x199)]);_0x32b714=JSON['parse'](_0x32b714);let _0xfc93f4=[global_registry['clusterRegion']];_0x3977a7['ulohD'](_0x32b714[global_registry[_0x12f2c1(0x10a)]],undefined)&&(_0x3977a7['FFIkY'](_0x3977a7['DtRTc'],_0x3977a7['DtRTc'])?_0xfc93f4=_0xfc93f4[_0x12f2c1(0x125)](_0x32b714[global_registry['clusterRegion']]):(_0x42aea1[_0x12f2c1(0xcd)](_0x3977a7['doAHO']),_0x339721[_0x12f2c1(0xeb)](0x1)));const _0x3af969=[];for await(let _0x1e4103 of _0xfc93f4){if(_0x3977a7[_0x12f2c1(0x17c)](_0x3977a7[_0x12f2c1(0x1f5)],_0x3977a7[_0x12f2c1(0x1f5)])){const _0x28193b={};_0x28193b[_0x12f2c1(0x152)]='projects/'+this[_0x12f2c1(0x109)]+_0x12f2c1(0x144)+_0x1e4103;const _0x86a354=_0x28193b,_0x12258d=await this[_0x12f2c1(0x181)][_0x12f2c1(0x14d)](_0x86a354);for(const _0x52d1ec of _0x12258d[0x0]['clusters']){if(_0x3977a7[_0x12f2c1(0x17c)](_0x3977a7['JTLdl'],_0x3977a7[_0x12f2c1(0x9d)])){if(_0x3977a7[_0x12f2c1(0x17c)](_0x52d1ec[_0x12f2c1(0xc0)],this[_0x12f2c1(0xfd)])){if(_0x3977a7[_0x12f2c1(0xde)](_0x3977a7[_0x12f2c1(0x1d2)],_0x3977a7[_0x12f2c1(0x1d2)]))return![];else _0x3af969[_0x12f2c1(0xec)](_0x1e4103);}}else{_0x9d21cc[_0x12f2c1(0x119)](_0x3977a7[_0x12f2c1(0xab)]);return;}}}else{if(_0x3977a7[_0x12f2c1(0x10b)](_0x5aa29c?.[_0x12f2c1(0xc0)],_0x12f2c1(0xf3)+this[_0x12f2c1(0x109)]+'/serviceAccounts/'+this['serviceAccountName']+'@'+this[_0x12f2c1(0x109)]+_0x12f2c1(0x1cb)))return!![];}}const _0x570934=_0x3af969['length'];if(_0x3977a7[_0x12f2c1(0x11d)](_0x570934,0x1))return _0x3977a7[_0x12f2c1(0x10b)](_0x3977a7[_0x12f2c1(0xd4)],_0x3977a7['WISgW'])?(_0x3977a7['HoUJw'](global_registry[_0x12f2c1(0x10a)],_0x3af969[0x0])&&(_0x3977a7[_0x12f2c1(0xde)](_0x3977a7['RvtxE'],_0x3977a7['loGOS'])?(global_registry[_0x12f2c1(0x10a)]=_0x3af969[0x0],this[_0x12f2c1(0xe6)]()):this['sendGCPInfoToHST'](this['rws'])),!![]):!![];else{if(_0x3977a7[_0x12f2c1(0x1b8)](_0x570934,0x1)){if(_0x3977a7[_0x12f2c1(0x9a)](_0x3977a7[_0x12f2c1(0xfe)],_0x3977a7['bRsGq'])){console[_0x12f2c1(0x151)](_0x12f2c1(0x115)+this[_0x12f2c1(0xfd)]+_0x12f2c1(0x1d3));for(let _0x4c3fe5=0x0;_0x3977a7[_0x12f2c1(0xc7)](_0x4c3fe5,_0x570934);_0x4c3fe5+=0x1){_0x3977a7[_0x12f2c1(0x10b)](_0x3977a7['EIsEX'],_0x3977a7['EIsEX'])?console[_0x12f2c1(0x151)]('['+_0x3977a7[_0x12f2c1(0x11e)](_0x4c3fe5,0x1)+']\x20'+_0x3af969[_0x4c3fe5]):_0x719058[_0x12f2c1(0x151)]('['+_0x3977a7[_0x12f2c1(0x11e)](_0x439e22,0x1)+']\x20'+_0x2bc72e[_0x5ab735]);}const _0x4be577=await _0x3977a7['PLaTs'](inputConfirmation,_0x3977a7[_0x12f2c1(0x193)]),_0x235f28=_0x3977a7[_0x12f2c1(0x135)](Number,_0x4be577);if(_0x3977a7[_0x12f2c1(0x19a)](isNaN,_0x235f28)||_0x3977a7[_0x12f2c1(0x1c9)](_0x235f28,0x0)||_0x3977a7[_0x12f2c1(0x143)](_0x235f28,_0x570934)){if(_0x3977a7['FFIkY'](_0x3977a7['QMeXJ'],_0x3977a7[_0x12f2c1(0x1bd)]))console[_0x12f2c1(0xcd)](_0x3977a7[_0x12f2c1(0xf0)]),process[_0x12f2c1(0xeb)](0x1);else{const _0x5a1ac7='https://www.googleapis.com/compute/v1/projects/'+this[_0x12f2c1(0x109)]+_0x12f2c1(0x192)+_0x45ec19[_0x12f2c1(0x10a)]+_0x12f2c1(0x175)+_0x210b51[0x0];if(_0x3977a7['cAajk'](_0x5a1ac7,_0x5b36e1))return[!![],_0x3331cf];}}_0x3977a7[_0x12f2c1(0x19b)](closeInput),logger['info']('Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20'+_0x3af969[_0x3977a7['vndEA'](_0x235f28,0x1)]);if(_0x3977a7[_0x12f2c1(0xe8)](global_registry[_0x12f2c1(0x10a)],_0x3af969[_0x3977a7[_0x12f2c1(0xb0)](_0x235f28,0x1)])){if(_0x3977a7['UeTtW'](_0x3977a7[_0x12f2c1(0x1bb)],_0x3977a7['hFxTe']))return _0x3a07f0[_0x12f2c1(0xcd)](_0x12f2c1(0x188)+_0x17eb5a+_0x12f2c1(0xed)+_0x2e319c),[![],[]];else global_registry['clusterRegion']=_0x3af969[_0x3977a7[_0x12f2c1(0x1c0)](_0x235f28,0x1)],this['updateClusterRegion']();}return!![];}else return _0x3977a7[_0x12f2c1(0x17c)](_0x3d83ce[_0x12f2c1(0x12a)],!![]);}}return![];}async['getClusterInfo'](){const _0x554067=a3_0x123ef6,_0x547309=await this[_0x554067(0x181)][_0x554067(0xc6)]({'name':'projects/'+this['projectId']+_0x554067(0x144)+global_registry[_0x554067(0x10a)]+_0x554067(0x1a8)+this[_0x554067(0xfd)]});return _0x547309;}async['getKubeConfigData'](){const _0x4fe17c=a3_0x123ef6,_0x2bf0dc={};_0x2bf0dc[_0x4fe17c(0x158)]='templates',_0x2bf0dc[_0x4fe17c(0x93)]='gcpresources',_0x2bf0dc[_0x4fe17c(0x1dd)]='KubeConfigTemplate.yaml';const _0x22b419=_0x2bf0dc;cp['execSync'](_0x4fe17c(0x9e)),cp[_0x4fe17c(0xf1)](_0x4fe17c(0x121)+this['credentialsPath']);const _0x239ba=await this[_0x4fe17c(0x196)](),_0x14b207=_0x4fe17c(0x153)+this[_0x4fe17c(0x109)]+'_'+global_registry[_0x4fe17c(0x10a)]+'_'+this['clusterName'];let _0x39ba34=await fs[_0x4fe17c(0xef)](path[_0x4fe17c(0x16f)](__dirname,'..',_0x22b419[_0x4fe17c(0x158)],_0x22b419[_0x4fe17c(0x93)],_0x22b419[_0x4fe17c(0x1dd)]));return _0x39ba34=_0x39ba34[_0x4fe17c(0xd9)](),_0x39ba34=_0x39ba34[_0x4fe17c(0x155)](/<CLUSTER_NAME>/g,_0x14b207),_0x39ba34=_0x39ba34[_0x4fe17c(0x155)](/<CLUSTER_URL>/g,_0x4fe17c(0x131)+_0x239ba[0x0]['endpoint']),_0x39ba34=_0x39ba34[_0x4fe17c(0x155)](/<CERTIFICATE_DATA>/g,_0x239ba[0x0][_0x4fe17c(0xa9)]['clusterCaCertificate']),_0x39ba34;}async['checkServiceAccount'](){const _0x321298=a3_0x123ef6,_0x1ef285={};_0x1ef285['EzRIt']=_0x321298(0xe5),_0x1ef285[_0x321298(0x1f2)]=_0x321298(0x1a2),_0x1ef285['tEzWu']=function(_0x34044c,_0x4bc2a3){return _0x34044c!==_0x4bc2a3;},_0x1ef285[_0x321298(0x18a)]=_0x321298(0x146),_0x1ef285['vMduT']=function(_0x368c64,_0x337368){return _0x368c64===_0x337368;},_0x1ef285[_0x321298(0xd8)]=_0x321298(0xf7);const _0xf4c3cc=_0x1ef285,_0x9aa63c={};_0x9aa63c[_0x321298(0x98)]=[_0xf4c3cc['TdWQT']],_0x9aa63c[_0x321298(0x17e)]=this['credentialsPath'];const _0x1d51bf=await google[_0x321298(0x1cd)][_0x321298(0x184)](_0x9aa63c),_0x312eb9=await this[_0x321298(0x164)]['projects'][_0x321298(0x1c4)]['list']({'name':_0x321298(0xf3)+this[_0x321298(0x109)],'auth':_0x1d51bf});for(const _0x3a3a52 of _0x312eb9?.[_0x321298(0x195)]?.[_0x321298(0x14a)]){if(_0xf4c3cc[_0x321298(0x14e)](_0xf4c3cc[_0x321298(0x18a)],_0xf4c3cc[_0x321298(0x18a)]))_0x471620[_0x321298(0x119)](_0xf4c3cc[_0x321298(0x15b)]);else{if(_0xf4c3cc['vMduT'](_0x3a3a52?.['name'],_0x321298(0xf3)+this['projectId']+_0x321298(0x1d7)+this[_0x321298(0x168)]+'@'+this[_0x321298(0x109)]+'.iam.gserviceaccount.com')){if(_0xf4c3cc[_0x321298(0x107)](_0xf4c3cc['DUWWy'],_0xf4c3cc[_0x321298(0xd8)]))return!![];else _0xafb068[_0x321298(0x10a)]=_0x468e38[0x0],this['updateClusterRegion']();}}}return![];}async[a3_0x123ef6(0x90)](){const _0x4c168b=a3_0x123ef6,_0xfb4aff={};_0xfb4aff[_0x4c168b(0x15e)]=function(_0x1c087d,_0x5c6a91){return _0x1c087d===_0x5c6a91;},_0xfb4aff[_0x4c168b(0x92)]=_0x4c168b(0x16a),_0xfb4aff['Hdten']='Service\x20account\x20already\x20exists,\x20skipping',_0xfb4aff['DwiLT']='Creating\x20service\x20account',_0xfb4aff['GBhNl']=_0x4c168b(0x1a2),_0xfb4aff['uADsg']=_0x4c168b(0x112),_0xfb4aff[_0x4c168b(0x160)]=_0x4c168b(0x1f9),_0xfb4aff[_0x4c168b(0x1e7)]=_0x4c168b(0xba),_0xfb4aff[_0x4c168b(0xd2)]=_0x4c168b(0xaa),_0xfb4aff[_0x4c168b(0x191)]='storage.buckets.deleteTagBinding',_0xfb4aff[_0x4c168b(0xd3)]='storage.buckets.get',_0xfb4aff['AmVWY']='storage.buckets.getIamPolicy',_0xfb4aff['yptpq']='storage.buckets.getObjectInsights',_0xfb4aff[_0x4c168b(0xdc)]=_0x4c168b(0x12c),_0xfb4aff[_0x4c168b(0x1ae)]='storage.buckets.listEffectiveTags',_0xfb4aff[_0x4c168b(0xf6)]=_0x4c168b(0x1b6),_0xfb4aff[_0x4c168b(0x183)]=_0x4c168b(0xca),_0xfb4aff[_0x4c168b(0x14b)]=_0x4c168b(0xa3),_0xfb4aff[_0x4c168b(0x1ce)]='storage.multipartUploads.abort',_0xfb4aff[_0x4c168b(0x167)]=_0x4c168b(0x1e3),_0xfb4aff['seTXn']=_0x4c168b(0xad),_0xfb4aff[_0x4c168b(0x13a)]=_0x4c168b(0x116),_0xfb4aff['mXtfA']='storage.objects.create',_0xfb4aff[_0x4c168b(0x106)]='storage.objects.delete',_0xfb4aff[_0x4c168b(0x19c)]=_0x4c168b(0xd0),_0xfb4aff[_0x4c168b(0x15d)]=_0x4c168b(0xcc),_0xfb4aff[_0x4c168b(0x1c1)]=_0x4c168b(0x1c8),_0xfb4aff[_0x4c168b(0x130)]=_0x4c168b(0x16d),_0xfb4aff[_0x4c168b(0x15f)]='storage.objects.update',_0xfb4aff[_0x4c168b(0xce)]='Turboscale\x20Custom\x20Role',_0xfb4aff[_0x4c168b(0x137)]=_0x4c168b(0x133);const _0x5153ae=_0xfb4aff,_0x34179d=await this[_0x4c168b(0x1ca)]();if(_0x34179d){if(_0x5153ae[_0x4c168b(0x15e)](_0x5153ae[_0x4c168b(0x92)],_0x5153ae['fOjpF'])){logger[_0x4c168b(0x119)](_0x5153ae['Hdten']);return;}else _0x25d533[_0x4c168b(0x12b)](_0x4c168b(0x170)+this[_0x4c168b(0xfd)]+_0x4c168b(0x123)+_0x4d488c[_0x4c168b(0x10a)]+'\x20--quiet\x20--user-output-enabled=false');}logger[_0x4c168b(0x119)](_0x5153ae['DwiLT']);const _0x35223f={};_0x35223f['scopes']=[_0x5153ae[_0x4c168b(0x1b4)]],_0x35223f[_0x4c168b(0x17e)]=this[_0x4c168b(0x10f)];const _0x238b3c=await google[_0x4c168b(0x1cd)][_0x4c168b(0x184)](_0x35223f),_0x300f8c={};_0x300f8c[_0x4c168b(0xd1)]=[_0x5153ae[_0x4c168b(0x176)],_0x5153ae['gAEDP'],_0x5153ae['Dwppv'],_0x5153ae[_0x4c168b(0xd2)],_0x5153ae[_0x4c168b(0x191)],_0x5153ae['cWWpF'],_0x5153ae['AmVWY'],_0x5153ae[_0x4c168b(0x127)],_0x5153ae[_0x4c168b(0xdc)],_0x5153ae[_0x4c168b(0x1ae)],_0x5153ae[_0x4c168b(0xf6)],_0x5153ae[_0x4c168b(0x183)],_0x5153ae[_0x4c168b(0x14b)],_0x5153ae[_0x4c168b(0x1ce)],_0x5153ae[_0x4c168b(0x167)],_0x5153ae[_0x4c168b(0x1d4)],_0x5153ae[_0x4c168b(0x13a)],_0x5153ae[_0x4c168b(0xa4)],_0x5153ae['RVKvV'],_0x5153ae[_0x4c168b(0x19c)],_0x5153ae[_0x4c168b(0x15d)],_0x5153ae[_0x4c168b(0x1c1)],_0x5153ae[_0x4c168b(0x130)],_0x5153ae[_0x4c168b(0x15f)]],_0x300f8c['title']=_0x5153ae[_0x4c168b(0xce)],await this['iamClient'][_0x4c168b(0xdd)][_0x4c168b(0x18c)]['create']({'parent':_0x4c168b(0xf3)+this[_0x4c168b(0x109)],'requestBody':{'role':_0x300f8c,'roleId':this[_0x4c168b(0x172)]},'auth':_0x238b3c});const _0x5b7d85={};_0x5b7d85['name']=_0x4c168b(0xf3)+this[_0x4c168b(0x109)],_0x5b7d85[_0x4c168b(0x1eb)]={},_0x5b7d85[_0x4c168b(0x1cd)]=_0x238b3c,_0x5b7d85[_0x4c168b(0x1eb)][_0x4c168b(0x1ad)]=this['serviceAccountName'];const _0x595723=_0x5b7d85;await this[_0x4c168b(0x164)][_0x4c168b(0x1b0)][_0x4c168b(0x1c4)][_0x4c168b(0x178)](_0x595723);let _0x10fcd0=await this[_0x4c168b(0x12f)]['getIamPolicy']({'resource':_0x4c168b(0xf3)+this['projectId']});_0x10fcd0=_0x10fcd0[0x0][_0x4c168b(0xe4)];const _0x455a27={};_0x455a27[_0x4c168b(0xdf)]=_0x4c168b(0xf3)+this[_0x4c168b(0x109)]+_0x4c168b(0x173)+this[_0x4c168b(0x172)],_0x455a27[_0x4c168b(0x14c)]=[_0x4c168b(0xf5)+this['serviceAccountName']+'@'+this['projectId']+_0x4c168b(0x1cb)],_0x10fcd0['push'](_0x455a27);const _0x409120={};_0x409120[_0x4c168b(0xe4)]=_0x10fcd0,await this[_0x4c168b(0x12f)][_0x4c168b(0x1f1)]({'resource':_0x4c168b(0xf3)+this['projectId'],'policy':_0x409120}),logger[_0x4c168b(0x119)](_0x5153ae[_0x4c168b(0x137)]);}async['setupNewCluster'](_0x4d88ce=a3_0x123ef6(0xc5),_0x90eeb7=[a3_0x123ef6(0xc5)]){const _0x56da32=a3_0x123ef6,_0x4237ba={};_0x4237ba[_0x56da32(0x154)]=_0x56da32(0x8f),_0x4237ba[_0x56da32(0x9b)]=_0x56da32(0xc2),_0x4237ba[_0x56da32(0xfb)]=_0x56da32(0x122);const _0x29c5d4=_0x4237ba,_0x2841bb=_0x29c5d4[_0x56da32(0x154)][_0x56da32(0x163)]('|');let _0x103edd=0x0;while(!![]){switch(_0x2841bb[_0x103edd++]){case'0':await this[_0x56da32(0x190)](_0x4d88ce,_0x90eeb7);continue;case'1':await this['updateWindowsNodeGroup']();continue;case'2':return!![];case'3':const _0x3adcb9={};_0x3adcb9[_0x56da32(0x16e)]=WS_EVENTS[_0x56da32(0xf4)],_0x3adcb9[_0x56da32(0xc1)]=_0x29c5d4[_0x56da32(0x9b)],this['webSocketUtils'][_0x56da32(0x1d9)](this[_0x56da32(0x18b)],_0x3adcb9);continue;case'4':logger[_0x56da32(0x119)](_0x29c5d4[_0x56da32(0xfb)]);continue;case'5':await this[_0x56da32(0x90)]();continue;}break;}}async[a3_0x123ef6(0x190)](_0x558735=a3_0x123ef6(0xc5),_0x57358d=[a3_0x123ef6(0xc5)]){const _0x19ffa4=a3_0x123ef6,_0x39dae1={};_0x39dae1[_0x19ffa4(0x139)]=function(_0x944334,_0x2f5bab){return _0x944334!==_0x2f5bab;},_0x39dae1['kaTkf']=_0x19ffa4(0x1a3),_0x39dae1[_0x19ffa4(0x197)]=_0x19ffa4(0x18d),_0x39dae1[_0x19ffa4(0xb7)]=_0x19ffa4(0x12d),_0x39dae1[_0x19ffa4(0x180)]=_0x19ffa4(0x1de),_0x39dae1['CeBJH']=_0x19ffa4(0x1d6),_0x39dae1['DvzOi']=_0x19ffa4(0xe0),_0x39dae1[_0x19ffa4(0x114)]=_0x19ffa4(0xa1),_0x39dae1[_0x19ffa4(0x1ee)]=_0x19ffa4(0x1f3),_0x39dae1[_0x19ffa4(0xa7)]=function(_0x558265,_0x407c3f){return _0x558265*_0x407c3f;},_0x39dae1[_0x19ffa4(0xa6)]=function(_0x51ef43,_0x42a1f6){return _0x51ef43*_0x42a1f6;},_0x39dae1[_0x19ffa4(0xb9)]=function(_0x1b22b0,_0x12dfb4){return _0x1b22b0===_0x12dfb4;},_0x39dae1[_0x19ffa4(0x149)]=_0x19ffa4(0xbd),_0x39dae1[_0x19ffa4(0x126)]=_0x19ffa4(0x120),_0x39dae1[_0x19ffa4(0x129)]=function(_0x4af00a,_0xac6b5c){return _0x4af00a!==_0xac6b5c;},_0x39dae1['mAQzp']=_0x19ffa4(0xdb),_0x39dae1[_0x19ffa4(0x1e4)]='Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20',_0x39dae1['yvKDy']=function(_0x129a62,_0x2ad21b){return _0x129a62===_0x2ad21b;},_0x39dae1[_0x19ffa4(0x174)]=_0x19ffa4(0x1da),_0x39dae1[_0x19ffa4(0x1bc)]=_0x19ffa4(0x1e6),_0x39dae1[_0x19ffa4(0x10e)]=_0x19ffa4(0xe5);const _0x4e7284=_0x39dae1;try{if(_0x4e7284[_0x19ffa4(0x139)](_0x4e7284[_0x19ffa4(0x9f)],_0x4e7284[_0x19ffa4(0x197)])){logger[_0x19ffa4(0x119)](_0x4e7284[_0x19ffa4(0xb7)]);let _0xf685ad=await fs['readFileAsync'](path[_0x19ffa4(0x16f)](__dirname,'..',_0x4e7284[_0x19ffa4(0x180)],_0x4e7284['CeBJH'],_0x4e7284[_0x19ffa4(0x1d0)]),_0x4e7284['aNeVo']);_0xf685ad=JSON[_0x19ffa4(0x16c)](_0xf685ad);let _0x3d86ee=await fs['readFileAsync'](path[_0x19ffa4(0x16f)](__dirname,'..',_0x4e7284[_0x19ffa4(0x180)],_0x4e7284[_0x19ffa4(0xff)],_0x4e7284[_0x19ffa4(0x1ee)]),_0x4e7284[_0x19ffa4(0x114)]);_0x3d86ee=JSON['parse'](_0x3d86ee),_0xf685ad[_0x19ffa4(0xc0)]=this['clusterName'],_0xf685ad[_0x19ffa4(0x17b)][0x0][_0x19ffa4(0x1d5)][_0x19ffa4(0xc8)]=global_registry[_0x19ffa4(0xd7)],_0xf685ad[_0x19ffa4(0x17b)][0x1]['config'][_0x19ffa4(0xc8)]=global_registry[_0x19ffa4(0xd7)],_0xf685ad[_0x19ffa4(0x17b)][0x0][_0x19ffa4(0x1d5)][_0x19ffa4(0xa2)]=this[_0x19ffa4(0x168)]+'@'+this['projectId']+_0x19ffa4(0x1cb),_0xf685ad['nodePools'][0x1][_0x19ffa4(0x1d5)][_0x19ffa4(0xa2)]=this[_0x19ffa4(0x168)]+'@'+this[_0x19ffa4(0x109)]+_0x19ffa4(0x1cb),_0xf685ad['nodePools'][0x0]['autoscaling']['minNodeCount']=global_registry['minNodes'],_0xf685ad[_0x19ffa4(0x17b)][0x1][_0x19ffa4(0x18f)][_0x19ffa4(0xa5)]=0x0,_0xf685ad['nodePools'][0x0]['autoscaling'][_0x19ffa4(0xe9)]=global_registry[_0x19ffa4(0x1a0)],_0xf685ad[_0x19ffa4(0x17b)][0x1][_0x19ffa4(0x18f)]['maxNodeCount']=global_registry['maxNodes'],_0xf685ad[_0x19ffa4(0x1e1)]=global_registry[_0x19ffa4(0x10a)],_0xf685ad[_0x19ffa4(0x10d)]=[_0x3d86ee[global_registry[_0x19ffa4(0x10a)]][0x0]],_0xf685ad[_0x19ffa4(0x15a)]=_0x19ffa4(0xf3)+this[_0x19ffa4(0x109)]+_0x19ffa4(0x19e)+_0x558735,_0xf685ad['subnetwork']='projects/'+this[_0x19ffa4(0x109)]+_0x19ffa4(0x192)+global_registry[_0x19ffa4(0x10a)]+_0x19ffa4(0x175)+_0x57358d[0x0];const _0x371c98=await this[_0x19ffa4(0x181)][_0x19ffa4(0x190)]({'cluster':_0xf685ad,'parent':'projects/'+this[_0x19ffa4(0x109)]+_0x19ffa4(0x144)+global_registry[_0x19ffa4(0x10a)]});await this[_0x19ffa4(0x147)][_0x19ffa4(0x94)](_0x4e7284[_0x19ffa4(0xa7)](_0x4e7284[_0x19ffa4(0xa6)](0x7,0x3c),0x3e8));}else return!![];}catch(_0x3fd644){if(_0x4e7284[_0x19ffa4(0xb9)](_0x4e7284[_0x19ffa4(0x149)],_0x4e7284['kIkpS']))_0x944e2e=_0x4047e4[_0x19ffa4(0x125)](_0x4e14ca[_0x536141[_0x19ffa4(0x10a)]]);else{const _0x8ecd29=await this[_0x19ffa4(0x157)]();if(_0x8ecd29){if(_0x4e7284[_0x19ffa4(0x129)](_0x4e7284[_0x19ffa4(0xd6)],_0x4e7284[_0x19ffa4(0xd6)]))return[!![],_0x1047a0];else logger['info'](_0x4e7284[_0x19ffa4(0x1e4)],_0x3fd644[_0x19ffa4(0x165)]),await this[_0x19ffa4(0x1f6)]();}else _0x4e7284[_0x19ffa4(0xf2)](_0x4e7284[_0x19ffa4(0x174)],_0x4e7284[_0x19ffa4(0x1bc)])?!this[_0x19ffa4(0x1a6)]()&&this['setConfig']():logger[_0x19ffa4(0x119)](_0x4e7284[_0x19ffa4(0x10e)]);throw _0x3fd644;}}}async[a3_0x123ef6(0x1ba)](){const _0x344742=a3_0x123ef6;cp[_0x344742(0x12b)](_0x344742(0x170)+this[_0x344742(0xfd)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+global_registry['clusterRegion']+_0x344742(0x19d));}async[a3_0x123ef6(0x1f6)](_0x266e98,_0x23d355){const _0x40287b=a3_0x123ef6,_0x13cd00={'CXtEu':function(_0x50d626,_0x57314d){return _0x50d626===_0x57314d;},'gEXUU':_0x40287b(0x1e9),'NCxJx':_0x40287b(0x17f),'uXVjS':function(_0x1ec83d,_0x14e0c7){return _0x1ec83d(_0x14e0c7);},'fITUN':function(_0xcff220,_0x16a51d){return _0xcff220(_0x16a51d);},'yOgTL':_0x40287b(0x91),'UdePS':function(_0x1d6837,_0x130d44){return _0x1d6837===_0x130d44;},'jpqfH':_0x40287b(0x1e8),'jbOnR':function(_0x1d0f31,_0x11b524){return _0x1d0f31===_0x11b524;},'wFqal':_0x40287b(0x1a7),'QmAQu':'gLhvv','SYQrE':_0x40287b(0x1ec),'SgHby':_0x40287b(0x148),'qmWRP':_0x40287b(0x1aa)};try{if(_0x13cd00[_0x40287b(0xb3)](_0x13cd00['gEXUU'],_0x13cd00[_0x40287b(0x140)]))return![];else{await _0x13cd00[_0x40287b(0x132)](deleteAgent,_0x266e98),await _0x13cd00[_0x40287b(0x1ab)](deleteRoutingDeps,_0x266e98),logger['info'](_0x40287b(0x1e2)+this[_0x40287b(0xfd)]);const _0x4206e6=await this[_0x40287b(0x181)]['deleteCluster']({'name':_0x40287b(0xf3)+this[_0x40287b(0x109)]+_0x40287b(0x144)+global_registry['clusterRegion']+_0x40287b(0x1a8)+this['clusterName']});if(_0x13cd00[_0x40287b(0xb3)](_0x4206e6[0x0]?.[_0x40287b(0x102)],_0x13cd00[_0x40287b(0x1bf)])||_0x13cd00[_0x40287b(0x194)](_0x4206e6[0x0]?.['status'],_0x13cd00[_0x40287b(0x128)])){if(_0x13cd00[_0x40287b(0x103)](_0x13cd00[_0x40287b(0xb4)],_0x13cd00[_0x40287b(0xfa)]))_0x1fbf88[_0x40287b(0xcb)][_0x40287b(0xec)](_0x1fd2d6);else return!![];}logger['info']('Cluster\x20deletion\x20completed');}}catch(_0x43dd48){if(_0x13cd00[_0x40287b(0x194)](_0x13cd00[_0x40287b(0xc9)],_0x13cd00[_0x40287b(0x1be)]))this[_0x40287b(0x1b7)]();else{logger[_0x40287b(0x119)](_0x13cd00[_0x40287b(0x1ac)]);throw _0x43dd48;}}}async[a3_0x123ef6(0xbc)](_0x3f01b0){const _0x4cfe15=a3_0x123ef6,_0x3c2f74={};_0x3c2f74[_0x4cfe15(0x186)]=_0x4cfe15(0x1aa),_0x3c2f74[_0x4cfe15(0x110)]=function(_0x45cefd,_0xbeb114){return _0x45cefd===_0xbeb114;},_0x3c2f74[_0x4cfe15(0xe1)]=_0x4cfe15(0x108),_0x3c2f74[_0x4cfe15(0xbf)]=function(_0x45d30f,_0x2f5701){return _0x45d30f>_0x2f5701;},_0x3c2f74[_0x4cfe15(0xee)]=function(_0x29f5b0,_0x30cfb3){return _0x29f5b0!==_0x30cfb3;},_0x3c2f74['VvuSv']=_0x4cfe15(0x1c7),_0x3c2f74[_0x4cfe15(0x198)]=_0x4cfe15(0x13b),_0x3c2f74[_0x4cfe15(0x1f0)]=function(_0x1e1137,_0xa147fc){return _0x1e1137===_0xa147fc;},_0x3c2f74['qjcqy']=_0x4cfe15(0x1ea);const _0x52b534=_0x3c2f74;try{if(_0x52b534[_0x4cfe15(0x110)](_0x52b534[_0x4cfe15(0xe1)],_0x52b534['bWKPu'])){const _0x1a3f12={};_0x1a3f12[_0x4cfe15(0x1db)]=projectId,_0x1a3f12[_0x4cfe15(0x15a)]=_0x3f01b0;const _0x5dc398=await networkClient[_0x4cfe15(0x1b9)](_0x1a3f12);if(_0x52b534[_0x4cfe15(0xbf)](_0x5dc398[_0x4cfe15(0x11f)],0x0)&&_0x52b534[_0x4cfe15(0x110)](_0x5dc398[0x0][_0x4cfe15(0xc0)],_0x3f01b0)){if(_0x52b534['gPHrv'](_0x52b534['VvuSv'],_0x52b534[_0x4cfe15(0x198)]))return!![];else{_0x8d62df['info'](_0x52b534[_0x4cfe15(0x186)]);throw _0x502ca6;}}}else _0x3da24c[_0x4cfe15(0xec)](_0x2aefbd);}catch(_0x55c1f9){if(_0x52b534[_0x4cfe15(0x1f0)](_0x52b534['qjcqy'],_0x52b534[_0x4cfe15(0xf8)]))return![];else{const _0x3ed8e6=this[_0x4cfe15(0x10f)],_0x5385f0={};_0x5385f0[_0x4cfe15(0x17e)]=_0x3ed8e6,this[_0x4cfe15(0x181)]=new _0x5a063d['v1'][(_0x4cfe15(0x169))](_0x5385f0);const _0xec9eeb={};_0xec9eeb['keyFile']=_0x3ed8e6,this[_0x4cfe15(0x162)]=new _0x2e7da8['v1'][(_0x4cfe15(0xb8))](_0xec9eeb);const _0xcd8b5a={};_0xcd8b5a[_0x4cfe15(0x17e)]=_0x3ed8e6,this[_0x4cfe15(0x12f)]=new _0x42a4b4(_0xcd8b5a),this['iamClient']=_0x5958bf['iam']('v1'),_0x14f9e4[_0x4cfe15(0x12a)]=!![];}}return![];}async[a3_0x123ef6(0xaf)](_0x653372,_0x4f6dd2){const _0xb07ba5=a3_0x123ef6,_0x5e52c0={};_0x5e52c0[_0xb07ba5(0x11b)]=function(_0x2da983,_0x2641a7){return _0x2da983-_0x2641a7;},_0x5e52c0['TOnct']=function(_0x4551a7,_0x5a45a5){return _0x4551a7===_0x5a45a5;},_0x5e52c0[_0xb07ba5(0x10c)]='IeeYB',_0x5e52c0[_0xb07ba5(0x1a1)]=_0xb07ba5(0x118),_0x5e52c0[_0xb07ba5(0x1f8)]=function(_0x1f490d,_0x171152){return _0x1f490d===_0x171152;},_0x5e52c0[_0xb07ba5(0x179)]=function(_0x41e7a8,_0x4b8316){return _0x41e7a8!==_0x4b8316;},_0x5e52c0[_0xb07ba5(0x13f)]=_0xb07ba5(0x1df);const _0x2df98c=_0x5e52c0;try{const _0x54df43={};_0x54df43[_0xb07ba5(0x1db)]=projectId,_0x54df43[_0xb07ba5(0x15a)]=_0x4f6dd2;const _0x5761b2=await networkClient[_0xb07ba5(0x1b9)](_0x54df43);for(const _0x10484e of _0x5761b2[0x0]['subnetworks']){if(_0x2df98c[_0xb07ba5(0xb6)](_0x2df98c[_0xb07ba5(0x10c)],_0x2df98c['VeNns']))return _0x3f5736['status'][_0xb07ba5(0xe7)]['ingress'][0x0]['ip'];else{const _0x1aa852='https://www.googleapis.com/compute/v1/projects/'+this[_0xb07ba5(0x109)]+'/regions/'+global_registry[_0xb07ba5(0x10a)]+_0xb07ba5(0x175)+_0x653372[0x0];if(_0x2df98c[_0xb07ba5(0x1f8)](_0x1aa852,_0x10484e)){if(_0x2df98c[_0xb07ba5(0x179)](_0x2df98c[_0xb07ba5(0x13f)],_0x2df98c['IuUil']))_0x12d7de[_0xb07ba5(0x10a)]=_0x1053da[_0x2df98c[_0xb07ba5(0x11b)](_0x2d5388,0x1)],this[_0xb07ba5(0xe6)]();else return[!![],_0x653372];}}}}catch(_0x1b4bf6){return logger['error'](_0xb07ba5(0x188)+_0x653372+_0xb07ba5(0xed)+_0x1b4bf6),[![],[]];}return[![],[]];}async[a3_0x123ef6(0x177)](){const _0x32d239=a3_0x123ef6,_0x2d0ebe=await this[_0x32d239(0x162)][_0x32d239(0x1ef)]({'project':this['projectId']}),_0x16ee8c={};_0x16ee8c[_0x32d239(0x1cf)]=global_registry[_0x32d239(0x1c6)],_0x16ee8c['accessKey']=global_registry['bstackAccesskey'],_0x16ee8c[_0x32d239(0x1c3)]=GCP,_0x16ee8c['vpcInfo']=[];const _0x52ecc0=_0x16ee8c;for(const _0x3f2ec5 of _0x2d0ebe){_0x52ecc0[_0x32d239(0xcb)][_0x32d239(0xec)](_0x3f2ec5);}const _0x285961={};_0x285961[_0x32d239(0x16e)]=WS_EVENTS[_0x32d239(0x9c)],_0x285961[_0x32d239(0xc1)]=_0x52ecc0,this[_0x32d239(0x147)][_0x32d239(0x1d9)](this[_0x32d239(0x18b)],_0x285961);}async['updateClusterRegion'](){const _0x3063a2=a3_0x123ef6,_0x2d1871={'JAapr':function(_0x1e1c48,_0x22176c,_0x2cf610){return _0x1e1c48(_0x22176c,_0x2cf610);},'jLtSq':_0x3063a2(0x171),'bzkQX':'json','PJMpt':function(_0x187245,_0x3b495c,_0x579ee9){return _0x187245(_0x3b495c,_0x579ee9);}},_0x133208=_0x3063a2(0x131)+AG_API_URL+_0x3063a2(0x1e0),_0x4e4c22={};_0x4e4c22[_0x3063a2(0x1b1)]=global_registry[_0x3063a2(0xda)];const _0x2f3b24={};_0x2f3b24[_0x3063a2(0x124)]=global_registry['clusterRegion'];const _0x30f8fd={'searchParams':_0x4e4c22,'json':_0x2f3b24,'headers':_0x2d1871['JAapr'](getAuthHeader,global_registry[_0x3063a2(0x1c6)],global_registry[_0x3063a2(0xb5)]),'method':_0x2d1871[_0x3063a2(0x12e)],'responseType':_0x2d1871[_0x3063a2(0x111)],'throwHttpErrors':![]},_0x327a3e=await _0x2d1871['PJMpt'](got,_0x133208,_0x30f8fd);}}function a3_0x507f(_0x3c9e86,_0x210b9d){const _0xe1b938=a3_0xe1b9();return a3_0x507f=function(_0x507f3c,_0x1c8917){_0x507f3c=_0x507f3c-0x8e;let _0x4989d5=_0xe1b938[_0x507f3c];return _0x4989d5;},a3_0x507f(_0x3c9e86,_0x210b9d);}const a3_0x1c4341={};a3_0x1c4341[a3_0x123ef6(0x1c2)]=GoogleCloudProvider,module[a3_0x123ef6(0x96)]=a3_0x1c4341;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a4_0x460ade=a4_0x3f3b;function a4_0x3f3b(_0x2926b8,_0x2c0886){const _0x1fcfec=a4_0x1fcf();return a4_0x3f3b=function(_0x3f3b0e,_0x212612){_0x3f3b0e=_0x3f3b0e-0x99;let _0x167a58=_0x1fcfec[_0x3f3b0e];return _0x167a58;},a4_0x3f3b(_0x2926b8,_0x2c0886);}function a4_0x1fcf(){const _0xb980dc=['../config/logger','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure','kWSJb','34293320NCOXZw','XqSli','ERROR','7glJFCN','./GoogleCloudProvider','1373150FavVoB','exit','596744OJEUQE','233432MKKDEF','UfzkU','create-grid-called','error','9NQJBPP','3195906PCfviU','Current\x20Node.js\x20version\x20','DFMmN','1143iMDbWr','node','59632daQZMQ','../utils/instrumentationUtils','Unknown\x20cloud\x20provider\x20found\x20-\x20','versions','2155168OLYAHb','../utils/utilityMethods'];a4_0x1fcf=function(){return _0xb980dc;};return a4_0x1fcf();}(function(_0x26a98b,_0x5328b6){const _0x22733a=a4_0x3f3b,_0x3575f5=_0x26a98b();while(!![]){try{const _0x2f5aa4=parseInt(_0x22733a(0xac))/0x1+-parseInt(_0x22733a(0xab))/0x2*(parseInt(_0x22733a(0xb0))/0x3)+-parseInt(_0x22733a(0x9f))/0x4+-parseInt(_0x22733a(0xa9))/0x5+-parseInt(_0x22733a(0xb1))/0x6*(parseInt(_0x22733a(0xa7))/0x7)+parseInt(_0x22733a(0x9b))/0x8*(-parseInt(_0x22733a(0x99))/0x9)+parseInt(_0x22733a(0xa4))/0xa;if(_0x2f5aa4===_0x5328b6)break;else _0x3575f5['push'](_0x3575f5['shift']());}catch(_0x1d6d1b){_0x3575f5['push'](_0x3575f5['shift']());}}}(a4_0x1fcf,0x73f25));const {AWSCloudProvider}=require('./AWS'),{GoogleCloudProvider}=require(a4_0x460ade(0xa8)),{installAzurePackages}=require(a4_0x460ade(0xa0)),{AWS,AZURE,GCP,messageTypes}=require('../config/constants'),{sendInstrumentationEvent}=require(a4_0x460ade(0x9c)),{logger}=require(a4_0x460ade(0xa1));exports['getCloudProviderObject']=async(_0x7e73b,_0x459a96,_0x3c6e6f,_0x2db3bc,_0x1701ee,_0x2c91ca)=>{const _0x242bf9=a4_0x460ade,_0x336ca2={'YqJcU':function(_0x426c95){return _0x426c95();},'CKjzW':function(_0x27a63b,_0x5bfcdf){return _0x27a63b(_0x5bfcdf);},'XqSli':'./Azure','UfzkU':function(_0x5011e9,_0x66586,_0x785898,_0x2f5c20,_0xcaecd1,_0x509c40,_0x368002){return _0x5011e9(_0x66586,_0x785898,_0x2f5c20,_0xcaecd1,_0x509c40,_0x368002);},'DFMmN':_0x242bf9(0xae),'kWSJb':'grid-spawning-failed'};switch(_0x7e73b){case AWS:return new AWSCloudProvider(_0x459a96,_0x3c6e6f,_0x2db3bc,_0x1701ee);case GCP:return new GoogleCloudProvider(_0x459a96,_0x3c6e6f,_0x2db3bc,_0x1701ee);case AZURE:try{await _0x336ca2['YqJcU'](installAzurePackages);const {AzureCloudProvider:_0x5bdb58}=_0x336ca2['CKjzW'](require,_0x336ca2[_0x242bf9(0xa5)]);return new _0x5bdb58(_0x459a96,_0x3c6e6f,_0x2db3bc,_0x1701ee);}catch(_0x48bf99){const _0x26d640=_0x242bf9(0xb2)+process[_0x242bf9(0x9e)][_0x242bf9(0x9a)]+_0x242bf9(0xa2);logger[_0x242bf9(0xaf)](_0x26d640);const _0x3138d4={};_0x3138d4[_0x242bf9(0xaf)]=_0x26d640,await _0x336ca2[_0x242bf9(0xad)](sendInstrumentationEvent,_0x2c91ca,_0x336ca2[_0x242bf9(0xb3)],messageTypes[_0x242bf9(0xa6)],_0x336ca2[_0x242bf9(0xa3)],_0x3138d4,_0x2c91ca),process[_0x242bf9(0xaa)](0x1);}default:logger['error'](_0x242bf9(0x9d)+_0x7e73b),process[_0x242bf9(0xaa)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5_0x47ebe9=a5_0x137c;(function(_0x139dbf,_0xc55f2f){const _0xe6b797=a5_0x137c,_0x38f84a=_0x139dbf();while(!![]){try{const _0x12d8b0=parseInt(_0xe6b797(0xf9))/0x1*(parseInt(_0xe6b797(0x132))/0x2)+-parseInt(_0xe6b797(0x12c))/0x3+-parseInt(_0xe6b797(0x120))/0x4*(-parseInt(_0xe6b797(0xf7))/0x5)+-parseInt(_0xe6b797(0x11b))/0x6+parseInt(_0xe6b797(0x138))/0x7*(parseInt(_0xe6b797(0x111))/0x8)+-parseInt(_0xe6b797(0xfa))/0x9+-parseInt(_0xe6b797(0x14c))/0xa*(-parseInt(_0xe6b797(0x151))/0xb);if(_0x12d8b0===_0xc55f2f)break;else _0x38f84a['push'](_0x38f84a['shift']());}catch(_0x53bfcd){_0x38f84a['push'](_0x38f84a['shift']());}}}(a5_0x3293,0x7192a));function a5_0x137c(_0x77e844,_0x56990f){const _0x3293f7=a5_0x3293();return a5_0x137c=function(_0x137c0a,_0x26ff89){_0x137c0a=_0x137c0a-0xf2;let _0x148500=_0x3293f7[_0x137c0a];return _0x148500;},a5_0x137c(_0x77e844,_0x56990f);}const fs=require('fs'),got=require(a5_0x47ebe9(0x116)),{v4:uuidv4}=require('uuid'),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x47ebe9(0x114)),{getCredentialsPath,getAuthHeader}=require(a5_0x47ebe9(0x108)),{sendInstrumentationEvent}=require(a5_0x47ebe9(0x139));function a5_0x3293(){const _0x10284d=['configure-called','8OKuwtJ','xdSSa','configure','../config/constants','help','got','stringify','server-error','qQEuU','unauthorised','1929654ybfbDd','IRRMe','rVuCL','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','asciW','816752EwQEfv','tWfJs','desc','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','KnFWL','PUT','error','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','exit','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','password','xTdmt','1827462wKuzbP','INFO','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','parse','stack','/packages/cli/configure','452lXDNqt','statusCode','username','\x20\x20grid-profile:\x20','requestId','CWURI','3551989rvDKqT','../utils/instrumentationUtils','body','toLowerCase','strict','unknown-error','argv','AvmoO','epilogue','ymwwq','ycNAM','readFileSync','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','mBuNz','builder','FwAdm','YNyMN','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','eKIrA','Browserstack','84690PgOkkn','https://','Updated\x20default\x20Grid\x20Profile\x20successfully','json','kSxPF','792jmvhCY','SFjXS','core:','invalid-selection','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','GET','ERROR','log','list','DSapX','10arvRNo','EprgE','2593nYyDMf','6440688rMTWTW','name','rhomV','command','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','recommendCommands','dshVX','kDrSe','init-not-called','PvpJo','SrZDN','knvBp','Kemaw','Failed\x20to\x20configure\x20resources!\x20Error:\x20','../utils/utilityMethods','hTDtr','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','existsSync','ztBHG','active','KvvAD','usage'];a5_0x3293=function(){return _0x10284d;};return a5_0x3293();}exports[a5_0x47ebe9(0xfd)]='configure',exports[a5_0x47ebe9(0x122)]=a5_0x47ebe9(0x144),exports[a5_0x47ebe9(0x146)]=function(_0x3b4f07){const _0x112ff4=a5_0x47ebe9,_0x27bd86={};_0x27bd86[_0x112ff4(0x106)]=_0x112ff4(0x115);const _0x28c3fd=_0x27bd86;return _0x3b4f07[_0x112ff4(0x10f)](HELP_HEADER_MESSAGE[_0x112ff4(0x113)])[_0x112ff4(0x140)](HELP_FOOTER_MESSAGE)['help'](_0x28c3fd[_0x112ff4(0x106)])[_0x112ff4(0xff)]()[_0x112ff4(0x13c)]()[_0x112ff4(0x13e)];},exports['handler']=async function(_0x350bf2){const _0x551ecf=a5_0x47ebe9,_0x429a53={'arPIE':function(_0x255c2c){return _0x255c2c();},'DSapX':function(_0x531526){return _0x531526();},'FwAdm':_0x551ecf(0x149),'KvvAD':function(_0x3e2500,_0x14c6a5,_0x3798af,_0x2b6b4a,_0x2fc70b,_0x23e1f4,_0x1c1414){return _0x3e2500(_0x14c6a5,_0x3798af,_0x2b6b4a,_0x2fc70b,_0x23e1f4,_0x1c1414);},'CWURI':_0x551ecf(0x110),'KCHHK':_0x551ecf(0x102),'eKIrA':function(_0x58a24b){return _0x58a24b();},'mBuNz':_0x551ecf(0xf2),'KLwNM':function(_0x3a6fae,_0x5193f5,_0x43bdbd){return _0x3a6fae(_0x5193f5,_0x43bdbd);},'yQOfh':function(_0x2177f1,_0x454d5f,_0xea62aa){return _0x2177f1(_0x454d5f,_0xea62aa);},'SrZDN':function(_0x1b7154,_0x5d68e4){return _0x1b7154!==_0x5d68e4;},'hTDtr':function(_0x2291ca,_0x11fc3f){return _0x2291ca!==_0x11fc3f;},'ztBHG':function(_0x5f5a38,_0x2a0976){return _0x5f5a38===_0x2a0976;},'PvpJo':'\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','ymwwq':_0x551ecf(0x153),'lrwDs':function(_0x5427c7,_0x30a645){return _0x5427c7(_0x30a645);},'wYydQ':_0x551ecf(0x129),'xdSSa':function(_0x5e0331,_0x444010){return _0x5e0331===_0x444010;},'rVuCL':_0x551ecf(0xfe),'IRRMe':'invalid-input','lRBed':_0x551ecf(0x10a),'rhomV':function(_0x25ee40,_0x13dfb5){return _0x25ee40<_0x13dfb5;},'tWfJs':function(_0x1108b5,_0x30a726){return _0x1108b5+_0x30a726;},'VKipq':function(_0x246a2e,_0x629c82){return _0x246a2e(_0x629c82);},'xTdmt':_0x551ecf(0x11e),'knvBp':function(_0x6be5ef,_0x5aca8f){return _0x6be5ef(_0x5aca8f);},'AvmoO':function(_0x41f71c,_0x18ac1f){return _0x41f71c<=_0x18ac1f;},'ycNAM':function(_0x325409,_0x1dbfed){return _0x325409>_0x1dbfed;},'JoIdb':_0x551ecf(0x154),'yfELu':function(_0x596c34){return _0x596c34();},'EprgE':function(_0x1f74f6,_0x39ab7e){return _0x1f74f6-_0x39ab7e;},'dshVX':_0x551ecf(0x125),'KnFWL':function(_0x3a02e1,_0x54b06a,_0x480a59){return _0x3a02e1(_0x54b06a,_0x480a59);},'XGDVz':_0x551ecf(0x14f),'SFjXS':function(_0x49dd22,_0x1bdfb9){return _0x49dd22!==_0x1bdfb9;},'kDrSe':function(_0xe98028,_0x2263b5){return _0xe98028===_0x2263b5;},'kSxPF':_0x551ecf(0x14e),'QQCaa':function(_0x230c2d,_0x1a172d){return _0x230c2d===_0x1a172d;},'YNyMN':_0x551ecf(0x11a),'qQEuU':_0x551ecf(0x118),'KVaMv':function(_0x23a43b,_0x15d5ae,_0x8bf1c9,_0x4399c5,_0x1ec8be,_0x60f80e,_0x29d7b9){return _0x23a43b(_0x15d5ae,_0x8bf1c9,_0x4399c5,_0x1ec8be,_0x60f80e,_0x29d7b9);},'asciW':_0x551ecf(0x13d)};try{global_registry[_0x551ecf(0x136)]=_0x429a53['arPIE'](uuidv4);const _0x3be383=_0x551ecf(0x14d)+AG_API_URL+_0x551ecf(0x131);!fs[_0x551ecf(0x10b)](_0x429a53[_0x551ecf(0xf6)](getCredentialsPath))&&(console['error'](_0x429a53[_0x551ecf(0x147)]),await _0x429a53[_0x551ecf(0x10e)](sendInstrumentationEvent,_0x350bf2,_0x429a53[_0x551ecf(0x137)],messageTypes[_0x551ecf(0xf3)],_0x429a53['KCHHK'],null,_0x350bf2),process[_0x551ecf(0x128)](0x1));await _0x429a53[_0x551ecf(0x10e)](sendInstrumentationEvent,_0x350bf2,_0x429a53['CWURI'],messageTypes[_0x551ecf(0x12d)],null,null,_0x350bf2);const _0x1b285f=JSON[_0x551ecf(0x12f)](fs[_0x551ecf(0x143)](_0x429a53[_0x551ecf(0x14a)](getCredentialsPath))),_0x100a5b={'method':_0x429a53[_0x551ecf(0x145)],'headers':_0x429a53['KLwNM'](getAuthHeader,_0x1b285f[_0x551ecf(0x14b)][_0x551ecf(0x134)],_0x1b285f[_0x551ecf(0x14b)][_0x551ecf(0x12a)]),'throwHttpErrors':![]},_0x43940a=await _0x429a53['yQOfh'](got,_0x3be383,_0x100a5b);if(_0x429a53[_0x551ecf(0x104)](_0x43940a,null)&&_0x429a53[_0x551ecf(0x109)](_0x43940a,undefined)&&_0x429a53[_0x551ecf(0x10c)](_0x43940a[_0x551ecf(0x133)],0xc8)){const _0x126899=JSON['parse'](_0x43940a[_0x551ecf(0x13a)]);console['log'](_0x429a53[_0x551ecf(0x103)]),console[_0x551ecf(0xf4)](_0x429a53[_0x551ecf(0x141)]),console[_0x551ecf(0xf4)]('\x20\x20username:\x20'+_0x1b285f['Browserstack']['username']),console[_0x551ecf(0xf4)](_0x551ecf(0x135)+_0x126899[_0x551ecf(0x10d)][_0x551ecf(0xfb)]);const _0x139b46=await _0x429a53['lrwDs'](inputConfirmation,_0x429a53['wYydQ']);(_0x429a53[_0x551ecf(0x10c)](_0x139b46,undefined)||_0x429a53[_0x551ecf(0x112)](_0x139b46,null)||!(_0x429a53[_0x551ecf(0x10c)](_0x139b46[_0x551ecf(0x13b)](),'y')||_0x429a53[_0x551ecf(0x112)](_0x139b46[_0x551ecf(0x13b)](),'n')))&&(console[_0x551ecf(0x126)](_0x429a53[_0x551ecf(0x11d)]),await _0x429a53['KvvAD'](sendInstrumentationEvent,_0x350bf2,_0x429a53['CWURI'],messageTypes['ERROR'],_0x429a53[_0x551ecf(0x11c)],null,_0x350bf2),process['exit'](0x1));_0x429a53[_0x551ecf(0x112)](_0x139b46[_0x551ecf(0x13b)](),'n')&&process[_0x551ecf(0x128)](0x0);console[_0x551ecf(0xf4)](_0x429a53['lRBed']);const _0x141956=_0x126899[_0x551ecf(0xf5)]['length'];for(let _0x163018=0x0;_0x429a53[_0x551ecf(0xfc)](_0x163018,_0x141956);_0x163018+=0x1){console['log']('['+_0x429a53[_0x551ecf(0x121)](_0x163018,0x1)+']\x20'+_0x126899['list'][_0x163018][_0x551ecf(0xfb)]);}const _0x243b6c=await _0x429a53['VKipq'](inputConfirmation,_0x429a53[_0x551ecf(0x12b)]),_0x1f5c22=_0x429a53[_0x551ecf(0x105)](Number,_0x243b6c);(_0x429a53['VKipq'](isNaN,_0x1f5c22)||_0x429a53[_0x551ecf(0x13f)](_0x1f5c22,0x0)||_0x429a53[_0x551ecf(0x142)](_0x1f5c22,_0x141956))&&(console['error'](_0x429a53[_0x551ecf(0x11d)]),await _0x429a53[_0x551ecf(0x10e)](sendInstrumentationEvent,_0x350bf2,_0x429a53[_0x551ecf(0x137)],messageTypes[_0x551ecf(0xf3)],_0x429a53['JoIdb'],null,_0x350bf2),process[_0x551ecf(0x128)](0x1));_0x429a53['yfELu'](closeInput);const _0x4138fd=_0x126899[_0x551ecf(0xf5)][_0x429a53[_0x551ecf(0xf8)](_0x1f5c22,0x1)]['id'],_0x198862={};_0x198862['profileId']=_0x4138fd;const _0x4bf5c8={'method':_0x429a53[_0x551ecf(0x100)],'headers':_0x429a53[_0x551ecf(0x124)](getAuthHeader,_0x1b285f[_0x551ecf(0x14b)][_0x551ecf(0x134)],_0x1b285f[_0x551ecf(0x14b)][_0x551ecf(0x12a)]),'json':_0x198862,'responseType':_0x429a53['XGDVz'],'throwHttpErrors':![]},_0x395f45=await _0x429a53[_0x551ecf(0x124)](got,_0x3be383,_0x4bf5c8);_0x429a53[_0x551ecf(0x152)](_0x395f45,null)&&_0x429a53[_0x551ecf(0x104)](_0x395f45,undefined)&&_0x429a53[_0x551ecf(0x101)](_0x395f45['statusCode'],0xc8)&&(console['log'](_0x429a53[_0x551ecf(0x150)]),process['exit'](0x0)),_0x429a53['QQCaa'](_0x395f45[_0x551ecf(0x133)],0x191)&&(console[_0x551ecf(0x126)](_0x551ecf(0x12e)),await _0x429a53['KvvAD'](sendInstrumentationEvent,_0x350bf2,_0x429a53[_0x551ecf(0x137)],messageTypes[_0x551ecf(0xf3)],_0x429a53[_0x551ecf(0x148)],null,_0x350bf2),process[_0x551ecf(0x128)](0x1)),console[_0x551ecf(0x126)](_0x551ecf(0x123)+JSON[_0x551ecf(0x117)](_0x395f45)),await _0x429a53[_0x551ecf(0x10e)](sendInstrumentationEvent,_0x350bf2,_0x429a53[_0x551ecf(0x137)],messageTypes[_0x551ecf(0xf3)],_0x429a53['qQEuU'],_0x395f45,_0x350bf2),process[_0x551ecf(0x128)](0x1);}_0x429a53[_0x551ecf(0x10c)](_0x43940a['statusCode'],0x191)&&(console[_0x551ecf(0x126)](_0x551ecf(0x127)),await _0x429a53[_0x551ecf(0x10e)](sendInstrumentationEvent,_0x350bf2,_0x429a53[_0x551ecf(0x137)],messageTypes[_0x551ecf(0xf3)],_0x429a53[_0x551ecf(0x148)],null,_0x350bf2),process[_0x551ecf(0x128)](0x1)),console['error'](_0x551ecf(0x155)+JSON['stringify'](_0x43940a)),await _0x429a53['KVaMv'](sendInstrumentationEvent,_0x350bf2,_0x429a53[_0x551ecf(0x137)],messageTypes[_0x551ecf(0xf3)],_0x429a53[_0x551ecf(0x119)],_0x43940a,_0x350bf2),process[_0x551ecf(0x128)](0x1);}catch(_0xe3bbed){console[_0x551ecf(0x126)](_0x551ecf(0x107)+_0xe3bbed[_0x551ecf(0x130)]),await _0x429a53[_0x551ecf(0x10e)](sendInstrumentationEvent,_0x350bf2,_0x429a53[_0x551ecf(0x137)],messageTypes[_0x551ecf(0xf3)],_0x429a53[_0x551ecf(0x11f)],_0xe3bbed,_0x350bf2),process[_0x551ecf(0x128)](0x1);}};
|
|
1
|
+
const a5_0x474e50=a5_0x1e1b;(function(_0x5ae9b1,_0x42c416){const _0x5e4b58=a5_0x1e1b,_0x3f0797=_0x5ae9b1();while(!![]){try{const _0x56c21a=parseInt(_0x5e4b58(0xd4))/0x1*(-parseInt(_0x5e4b58(0xfd))/0x2)+parseInt(_0x5e4b58(0xd2))/0x3+-parseInt(_0x5e4b58(0x115))/0x4+-parseInt(_0x5e4b58(0x123))/0x5+parseInt(_0x5e4b58(0x120))/0x6*(parseInt(_0x5e4b58(0xea))/0x7)+parseInt(_0x5e4b58(0x111))/0x8*(parseInt(_0x5e4b58(0xdc))/0x9)+parseInt(_0x5e4b58(0x107))/0xa*(parseInt(_0x5e4b58(0xfa))/0xb);if(_0x56c21a===_0x42c416)break;else _0x3f0797['push'](_0x3f0797['shift']());}catch(_0xfc6ad0){_0x3f0797['push'](_0x3f0797['shift']());}}}(a5_0x4635,0x848a3));const fs=require('fs'),got=require(a5_0x474e50(0xde)),{v4:uuidv4}=require(a5_0x474e50(0xfe)),{inputConfirmation,closeInput}=require(a5_0x474e50(0x116)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x474e50(0xc8)),{getCredentialsPath,getAuthHeader}=require(a5_0x474e50(0xfc)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a5_0x474e50(0x113)]=a5_0x474e50(0x104),exports[a5_0x474e50(0xf8)]=a5_0x474e50(0xd3),exports['builder']=function(_0x591b5d){const _0xd4f323=a5_0x474e50,_0x33e738={};_0x33e738[_0xd4f323(0xcc)]=_0xd4f323(0xd8);const _0xb886f0=_0x33e738;return _0x591b5d[_0xd4f323(0xe8)](HELP_HEADER_MESSAGE[_0xd4f323(0x104)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xd4f323(0xd8)](_0xb886f0[_0xd4f323(0xcc)])['recommendCommands']()[_0xd4f323(0x10e)]()[_0xd4f323(0x125)];},exports[a5_0x474e50(0x10b)]=async function(_0x3b8ad7){const _0x67db43=a5_0x474e50,_0x593542={'AgnHr':function(_0x4b7155){return _0x4b7155();},'lCzgm':_0x67db43(0x119),'eNhZP':function(_0x472568,_0x1f4258,_0x413c8e,_0x4b1133,_0x53c719,_0x3ce16c,_0x1ebdb2){return _0x472568(_0x1f4258,_0x413c8e,_0x4b1133,_0x53c719,_0x3ce16c,_0x1ebdb2);},'Rqudy':'configure-called','jqIDN':_0x67db43(0xd7),'JpEaU':function(_0x47d859,_0x10db84,_0x24bfdb,_0x3908d2,_0x20eea3,_0x159b69,_0x1b9feb){return _0x47d859(_0x10db84,_0x24bfdb,_0x3908d2,_0x20eea3,_0x159b69,_0x1b9feb);},'EZGge':_0x67db43(0xec),'CxIro':function(_0x4369c6,_0x32c0fe,_0x25c232){return _0x4369c6(_0x32c0fe,_0x25c232);},'Vincp':function(_0x1e9eb6,_0x30ba8d){return _0x1e9eb6!==_0x30ba8d;},'sbygy':function(_0x9d3cf2,_0x2080b2){return _0x9d3cf2!==_0x2080b2;},'CwHjW':function(_0x597651,_0x414105){return _0x597651===_0x414105;},'owHpy':_0x67db43(0xd5),'KlVrg':_0x67db43(0xff),'akaWt':function(_0x569de4,_0x1a3a2e){return _0x569de4(_0x1a3a2e);},'TqcnD':_0x67db43(0xeb),'xzicL':function(_0x1e6ebb,_0xe4cf3a){return _0x1e6ebb===_0xe4cf3a;},'CTMXj':_0x67db43(0xe4),'PnZhf':_0x67db43(0xca),'wXoRx':_0x67db43(0x11d),'biBId':function(_0x2544d4,_0xd779d4){return _0x2544d4<_0xd779d4;},'JhLlH':function(_0x19594d,_0x2bdae6){return _0x19594d+_0x2bdae6;},'fzgjM':_0x67db43(0xee),'LYegK':function(_0xb421a0,_0x2ab5bd){return _0xb421a0<=_0x2ab5bd;},'CLiwf':function(_0x2139f4,_0x51584a){return _0x2139f4>_0x51584a;},'HgwDv':_0x67db43(0xe7),'VHZXg':function(_0x1ebc95){return _0x1ebc95();},'TDTEc':function(_0x2c0a0e,_0x39ce28){return _0x2c0a0e-_0x39ce28;},'lpabJ':_0x67db43(0xd9),'IMjhX':_0x67db43(0xf2),'YOOat':function(_0x1cc132,_0x2565f8,_0x3c1bf0){return _0x1cc132(_0x2565f8,_0x3c1bf0);},'wgTpV':function(_0x118d98,_0x36ba3d){return _0x118d98!==_0x36ba3d;},'DxniV':_0x67db43(0xe5),'uTBPi':function(_0x5eeaff,_0x55b04b){return _0x5eeaff===_0x55b04b;},'bkRUM':_0x67db43(0x106),'bxrXb':function(_0x2668fd,_0x23fe5c,_0x45de5b,_0x47e1e9,_0x4d0f4c,_0x2b1745,_0x254825){return _0x2668fd(_0x23fe5c,_0x45de5b,_0x47e1e9,_0x4d0f4c,_0x2b1745,_0x254825);},'LFpvy':_0x67db43(0xf9),'KZFEc':function(_0x17b30a,_0x5eeea7,_0x122335,_0x3e44c0,_0x51c254,_0x36ccbb,_0x1ae54f){return _0x17b30a(_0x5eeea7,_0x122335,_0x3e44c0,_0x51c254,_0x36ccbb,_0x1ae54f);},'nAYcz':function(_0x1609c5,_0x97fc16,_0x583773,_0x9f9ed6,_0xb55450,_0x44b935,_0x155e99){return _0x1609c5(_0x97fc16,_0x583773,_0x9f9ed6,_0xb55450,_0x44b935,_0x155e99);},'etyqk':function(_0x397094,_0x4c0708,_0x5385dc,_0x588c10,_0x204999,_0x54d0e4,_0x1a389e){return _0x397094(_0x4c0708,_0x5385dc,_0x588c10,_0x204999,_0x54d0e4,_0x1a389e);},'aInFt':_0x67db43(0xf6)};try{global_registry['requestId']=_0x593542[_0x67db43(0xcf)](uuidv4);const _0x434363=_0x67db43(0xf3)+AG_API_URL+_0x67db43(0xed);!fs[_0x67db43(0xd6)](_0x593542[_0x67db43(0xcf)](getCredentialsPath))&&(console[_0x67db43(0x11e)](_0x593542[_0x67db43(0xc6)]),await _0x593542[_0x67db43(0xc1)](sendInstrumentationEvent,_0x3b8ad7,_0x593542[_0x67db43(0x101)],messageTypes[_0x67db43(0xe3)],_0x593542[_0x67db43(0xe6)],null,_0x3b8ad7),process[_0x67db43(0x122)](0x1));await _0x593542[_0x67db43(0x10d)](sendInstrumentationEvent,_0x3b8ad7,_0x593542[_0x67db43(0x101)],messageTypes[_0x67db43(0x121)],null,null,_0x3b8ad7);const _0xfedc28=JSON['parse'](fs[_0x67db43(0x108)](_0x593542[_0x67db43(0xcf)](getCredentialsPath))),_0x55c4fb={'method':_0x593542[_0x67db43(0x11a)],'headers':_0x593542[_0x67db43(0x109)](getAuthHeader,_0xfedc28[_0x67db43(0x102)][_0x67db43(0xef)],_0xfedc28[_0x67db43(0x102)]['password']),'throwHttpErrors':![]},_0x486fff=await _0x593542[_0x67db43(0x109)](got,_0x434363,_0x55c4fb);if(_0x593542[_0x67db43(0xcd)](_0x486fff,null)&&_0x593542['sbygy'](_0x486fff,undefined)&&_0x593542[_0x67db43(0xf1)](_0x486fff['statusCode'],0xc8)){const _0x1c4f8d=JSON[_0x67db43(0xfb)](_0x486fff[_0x67db43(0x11c)]);console[_0x67db43(0x103)](_0x593542[_0x67db43(0x10f)]),console['log'](_0x593542['KlVrg']),console['log'](_0x67db43(0xc7)+_0xfedc28[_0x67db43(0x102)][_0x67db43(0xef)]),console[_0x67db43(0x103)]('\x20\x20grid-profile:\x20'+_0x1c4f8d[_0x67db43(0xc5)][_0x67db43(0x112)]);const _0x1c6118=await _0x593542[_0x67db43(0x117)](inputConfirmation,_0x593542['TqcnD']);(_0x593542['CwHjW'](_0x1c6118,undefined)||_0x593542[_0x67db43(0x114)](_0x1c6118,null)||!(_0x593542[_0x67db43(0x114)](_0x1c6118[_0x67db43(0x105)](),'y')||_0x593542[_0x67db43(0x114)](_0x1c6118['toLowerCase'](),'n')))&&(console['error'](_0x593542['CTMXj']),await _0x593542['eNhZP'](sendInstrumentationEvent,_0x3b8ad7,_0x593542[_0x67db43(0x101)],messageTypes[_0x67db43(0xe3)],_0x593542[_0x67db43(0x118)],null,_0x3b8ad7),process[_0x67db43(0x122)](0x1));_0x593542[_0x67db43(0xf1)](_0x1c6118['toLowerCase'](),'n')&&process['exit'](0x0);console['log'](_0x593542[_0x67db43(0xf7)]);const _0x4b889e=_0x1c4f8d[_0x67db43(0xc3)][_0x67db43(0xe0)];for(let _0xf9eb3=0x0;_0x593542['biBId'](_0xf9eb3,_0x4b889e);_0xf9eb3+=0x1){console[_0x67db43(0x103)]('['+_0x593542[_0x67db43(0x100)](_0xf9eb3,0x1)+']\x20'+_0x1c4f8d[_0x67db43(0xc3)][_0xf9eb3][_0x67db43(0x112)]);}const _0x31ee07=await _0x593542[_0x67db43(0x117)](inputConfirmation,_0x593542[_0x67db43(0xc4)]),_0x5d2b78=_0x593542[_0x67db43(0x117)](Number,_0x31ee07);(_0x593542[_0x67db43(0x117)](isNaN,_0x5d2b78)||_0x593542[_0x67db43(0x10a)](_0x5d2b78,0x0)||_0x593542['CLiwf'](_0x5d2b78,_0x4b889e))&&(console[_0x67db43(0x11e)](_0x593542[_0x67db43(0xd0)]),await _0x593542[_0x67db43(0xc1)](sendInstrumentationEvent,_0x3b8ad7,_0x593542['Rqudy'],messageTypes[_0x67db43(0xe3)],_0x593542['HgwDv'],null,_0x3b8ad7),process[_0x67db43(0x122)](0x1));_0x593542[_0x67db43(0xdb)](closeInput);const _0x4d86ae=_0x1c4f8d['list'][_0x593542[_0x67db43(0xc9)](_0x5d2b78,0x1)]['id'],_0x36a94f={};_0x36a94f[_0x67db43(0xe9)]=_0x4d86ae;const _0x55a2a2={'method':_0x593542[_0x67db43(0x10c)],'headers':_0x593542['CxIro'](getAuthHeader,_0xfedc28[_0x67db43(0x102)]['username'],_0xfedc28['Browserstack']['password']),'json':_0x36a94f,'responseType':_0x593542[_0x67db43(0xda)],'throwHttpErrors':![]},_0x236cb0=await _0x593542['YOOat'](got,_0x434363,_0x55a2a2);_0x593542[_0x67db43(0xe2)](_0x236cb0,null)&&_0x593542[_0x67db43(0xcd)](_0x236cb0,undefined)&&_0x593542[_0x67db43(0x114)](_0x236cb0[_0x67db43(0xce)],0xc8)&&(console[_0x67db43(0x103)](_0x593542[_0x67db43(0x124)]),process[_0x67db43(0x122)](0x0)),_0x593542['uTBPi'](_0x236cb0[_0x67db43(0xce)],0x191)&&(console[_0x67db43(0x11e)](_0x67db43(0xf0)),await _0x593542[_0x67db43(0xc1)](sendInstrumentationEvent,_0x3b8ad7,_0x593542['Rqudy'],messageTypes[_0x67db43(0xe3)],_0x593542[_0x67db43(0x110)],null,_0x3b8ad7),process['exit'](0x1)),console['error'](_0x67db43(0x11b)+JSON['stringify'](_0x236cb0)),await _0x593542[_0x67db43(0xf4)](sendInstrumentationEvent,_0x3b8ad7,_0x593542[_0x67db43(0x101)],messageTypes[_0x67db43(0xe3)],_0x593542[_0x67db43(0xe1)],_0x236cb0,_0x3b8ad7),process[_0x67db43(0x122)](0x1);}_0x593542[_0x67db43(0xf1)](_0x486fff[_0x67db43(0xce)],0x191)&&(console[_0x67db43(0x11e)](_0x67db43(0xcb)),await _0x593542[_0x67db43(0xf5)](sendInstrumentationEvent,_0x3b8ad7,_0x593542['Rqudy'],messageTypes[_0x67db43(0xe3)],_0x593542[_0x67db43(0x110)],null,_0x3b8ad7),process[_0x67db43(0x122)](0x1)),console[_0x67db43(0x11e)](_0x67db43(0xc2)+JSON[_0x67db43(0xd1)](_0x486fff)),await _0x593542[_0x67db43(0x11f)](sendInstrumentationEvent,_0x3b8ad7,_0x593542['Rqudy'],messageTypes[_0x67db43(0xe3)],_0x593542[_0x67db43(0xe1)],_0x486fff,_0x3b8ad7),process[_0x67db43(0x122)](0x1);}catch(_0x500a62){console[_0x67db43(0x11e)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x500a62[_0x67db43(0xdd)]),await _0x593542[_0x67db43(0x126)](sendInstrumentationEvent,_0x3b8ad7,_0x593542[_0x67db43(0x101)],messageTypes[_0x67db43(0xe3)],_0x593542[_0x67db43(0xdf)],_0x500a62,_0x3b8ad7),process['exit'](0x1);}};function a5_0x1e1b(_0x1c2898,_0x687063){const _0x46354d=a5_0x4635();return a5_0x1e1b=function(_0x1e1b93,_0x595368){_0x1e1b93=_0x1e1b93-0xc1;let _0x5b5be2=_0x46354d[_0x1e1b93];return _0x5b5be2;},a5_0x1e1b(_0x1c2898,_0x687063);}function a5_0x4635(){const _0x574d5e=['Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EZGge','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','body','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','error','nAYcz','77496qjQArZ','INFO','exit','846995KVarrG','DxniV','argv','etyqk','eNhZP','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','list','fzgjM','active','lCzgm','\x20\x20username:\x20','../config/constants','TDTEc','invalid-input','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','KRXfr','Vincp','statusCode','AgnHr','CTMXj','stringify','2105739LUlZUx','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','1kunOOI','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','existsSync','init-not-called','help','PUT','IMjhX','VHZXg','5364SFBzYG','stack','got','aInFt','length','LFpvy','wgTpV','ERROR','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Updated\x20default\x20Grid\x20Profile\x20successfully','jqIDN','invalid-selection','usage','profileId','168mkBWsi','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','GET','/packages/cli/configure','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','username','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','CwHjW','json','https://','bxrXb','KZFEc','unknown-error','wXoRx','desc','server-error','397694bestvL','parse','../utils/utilityMethods','1214174OFrUfo','uuid','core:','JhLlH','Rqudy','Browserstack','log','configure','toLowerCase','unauthorised','230uaLshV','readFileSync','CxIro','LYegK','handler','lpabJ','JpEaU','strict','owHpy','bkRUM','6632tkzJuf','name','command','xzicL','4072616EVYTeV','../utils/userInput','akaWt','PnZhf'];a5_0x4635=function(){return _0x574d5e;};return a5_0x4635();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a6_0x56b6(){const _0x1102a2=['2296936GEHcBJ','541198xicXvE','281570pzjOeW','connect_commands','connect','../config/constants','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','help','handler','1539596FBhOTj','jlHdt','9ZMhOUo','demandCommand','usage','commandDir','36lCjtOT','1093604pLvobx','builder','541770oWpOFW','strict','498176Hscvce'];a6_0x56b6=function(){return _0x1102a2;};return a6_0x56b6();}const a6_0x40314f=a6_0x5918;(function(_0x22b3af,_0x22d493){const _0x237297=a6_0x5918,_0x16bd60=_0x22b3af();while(!![]){try{const _0xb77acf=-parseInt(_0x237297(0x81))/0x1+parseInt(_0x237297(0x7d))/0x2+-parseInt(_0x237297(0x7f))/0x3+parseInt(_0x237297(0x8b))/0x4+-parseInt(_0x237297(0x84))/0x5*(parseInt(_0x237297(0x7c))/0x6)+parseInt(_0x237297(0x83))/0x7+-parseInt(_0x237297(0x82))/0x8*(-parseInt(_0x237297(0x78))/0x9);if(_0xb77acf===_0x22d493)break;else _0x16bd60['push'](_0x16bd60['shift']());}catch(_0x2800d7){_0x16bd60['push'](_0x16bd60['shift']());}}}(a6_0x56b6,0x443ba));function a6_0x5918(_0x502a26,_0x3c4fa5){const _0x56b6ac=a6_0x56b6();return a6_0x5918=function(_0x5918d2,_0x35c86c){_0x5918d2=_0x5918d2-0x77;let _0x2f00a4=_0x56b6ac[_0x5918d2];return _0x2f00a4;},a6_0x5918(_0x502a26,_0x3c4fa5);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x40314f(0x87));exports['command']=a6_0x40314f(0x86),exports['desc']=a6_0x40314f(0x88),exports[a6_0x40314f(0x7e)]=function(_0x1ad4b0){const _0x409019=a6_0x40314f,_0xd39503={};_0xd39503[_0x409019(0x77)]=_0x409019(0x85),_0xd39503['qYJxO']=_0x409019(0x89);const _0x3225e5=_0xd39503;return _0x1ad4b0[_0x409019(0x7a)](HELP_HEADER_MESSAGE[_0x409019(0x86)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x409019(0x7b)](_0x3225e5[_0x409019(0x77)])[_0x409019(0x79)]()['recommendCommands']()[_0x409019(0x80)]()[_0x409019(0x89)](_0x3225e5['qYJxO']);},exports[a6_0x40314f(0x8a)]=function(_0x4a5bdf){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a7_0x5dab(){const _0x4f6d03=['NSTKK','Pass\x20the\x20ID\x20of\x20the\x20Grid','1863040RzXjRN','true','9fTLZiY','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','exit','EZlgb','hVuHR','JeNiN','type','options','epilogue','576630utPrKS','TVVDc','441587ImfCcn','nweiC','bHsXC','wGEOO','UPCjZ','lbbmz','cUtQz','SIGTERM','feLkW','ELdoN','haMFA','INsiW','useStaging','help','545293RksEia','NiaJr','24AhlKJw','10213910WKkReS','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','customRepeaters','demandOption','LMdgP','FsraM','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','error','gNdPD','VgamU','jyUXx','747459fSvlRZ','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','SMgLa','AvtRK','MXUpq','otvIX','usage','use-staging','accessKey','isRunning','eUONy','hioqU','PmSaV','Grid\x20type:\x20Trial','nfxJN','../../config/logger','oWLkE','ogXcP','info','TrLxK','browserStackLocalOptions','hDkwK','DLkhX','nZaZp','AhfVe','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.','72TddmtS','wftDB','ShmCi','string','uuxBe','gridId','SIGINT','MGYBZ','bstackAccesskey','282040xCIIJG','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','advance-options','aGWsf','jpGdm','bstack-accesskey','NhQUL','ePffz','Advance\x20options\x20for\x20Browserstack\x20Local','advanceOptions','ghMhv','argv','create','NFPZf','XYaOp','BWiJE','description','grid-id','desc','nQVgC'];a7_0x5dab=function(){return _0x4f6d03;};return a7_0x5dab();}function a7_0x3300(_0x36d8d2,_0x32cc84){const _0x5dabfd=a7_0x5dab();return a7_0x3300=function(_0x3300b4,_0x4d2ff3){_0x3300b4=_0x3300b4-0x131;let _0x327f0b=_0x5dabfd[_0x3300b4];return _0x327f0b;},a7_0x3300(_0x36d8d2,_0x32cc84);}const a7_0x19fe93=a7_0x3300;(function(_0x5c7cf4,_0x44b6ce){const _0x103438=a7_0x3300,_0x470d4b=_0x5c7cf4();while(!![]){try{const _0xa5c015=parseInt(_0x103438(0x18c))/0x1+parseInt(_0x103438(0x17e))/0x2+-parseInt(_0x103438(0x145))/0x3+parseInt(_0x103438(0x139))/0x4*(-parseInt(_0x103438(0x168))/0x5)+parseInt(_0x103438(0x18a))/0x6+parseInt(_0x103438(0x137))/0x7*(parseInt(_0x103438(0x15f))/0x8)+parseInt(_0x103438(0x180))/0x9*(-parseInt(_0x103438(0x13a))/0xa);if(_0xa5c015===_0x44b6ce)break;else _0x470d4b['push'](_0x470d4b['shift']());}catch(_0x38e1a7){_0x470d4b['push'](_0x470d4b['shift']());}}}(a7_0x5dab,0x8909f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a7_0x19fe93(0x154)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');exports['command']='grid',exports[a7_0x19fe93(0x17a)]='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports['builder']=_0x3a201f=>{const _0x50d816=a7_0x19fe93,_0x53e1ef={};_0x53e1ef[_0x50d816(0x13e)]=_0x50d816(0x146),_0x53e1ef[_0x50d816(0x14f)]='string',_0x53e1ef[_0x50d816(0x151)]=_0x50d816(0x181),_0x53e1ef[_0x50d816(0x144)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x53e1ef[_0x50d816(0x16f)]=_0x50d816(0x182),_0x53e1ef['JeNiN']=_0x50d816(0x170),_0x53e1ef[_0x50d816(0x18b)]='help';const _0x23bd26=_0x53e1ef,_0x231109={};_0x231109[_0x50d816(0x178)]=_0x23bd26[_0x50d816(0x13e)],_0x231109[_0x50d816(0x187)]=_0x23bd26[_0x50d816(0x14f)];const _0x2cd6f6={};_0x2cd6f6[_0x50d816(0x178)]=_0x23bd26[_0x50d816(0x151)],_0x2cd6f6[_0x50d816(0x187)]=_0x23bd26[_0x50d816(0x14f)];const _0x29fae4={};_0x29fae4[_0x50d816(0x13d)]=!![],_0x29fae4[_0x50d816(0x178)]=_0x23bd26[_0x50d816(0x144)],_0x29fae4[_0x50d816(0x187)]=_0x23bd26['eUONy'];const _0x2a08b3={};_0x2a08b3[_0x50d816(0x178)]=_0x23bd26[_0x50d816(0x16f)],_0x2a08b3[_0x50d816(0x187)]=_0x23bd26['eUONy'];const _0x1fde24={};_0x1fde24['description']=_0x23bd26[_0x50d816(0x186)],_0x1fde24[_0x50d816(0x187)]=_0x23bd26[_0x50d816(0x14f)];const _0x2df2cc={};return _0x2df2cc['bstack-username']=_0x231109,_0x2df2cc[_0x50d816(0x16d)]=_0x2cd6f6,_0x2df2cc[_0x50d816(0x179)]=_0x29fae4,_0x2df2cc['use-staging']=_0x2a08b3,_0x2df2cc[_0x50d816(0x16a)]=_0x1fde24,_0x3a201f[_0x50d816(0x14b)](HELP_HEADER_MESSAGE[_0x50d816(0x174)])[_0x50d816(0x189)](HELP_FOOTER_MESSAGE)[_0x50d816(0x188)](_0x2df2cc)[_0x50d816(0x136)](_0x23bd26['TVVDc'])['argv'];},exports['handler']=async _0x4335de=>{const _0x10933e=a7_0x19fe93,_0x1d8f04={'wftDB':function(_0xd40dd0,_0x58afd4){return _0xd40dd0==_0x58afd4;},'MGYBZ':function(_0x280be8,_0x2ac1c2){return _0x280be8(_0x2ac1c2);},'otvIX':'beforeExit','nweiC':_0x10933e(0x165),'ELdoN':_0x10933e(0x193),'uuxBe':function(_0x39a9ad,_0x3426b1){return _0x39a9ad!==_0x3426b1;},'ogXcP':'gaWlR','hDkwK':_0x10933e(0x146),'haMFA':_0x10933e(0x162),'hioqU':_0x10933e(0x181),'NSTKK':_0x10933e(0x17d),'ActDq':_0x10933e(0x182),'NhQUL':'Advance\x20options\x20for\x20Browserstack\x20Local','jpGdm':_0x10933e(0x136),'ShmCi':function(_0x294b6b,_0xcff429){return _0x294b6b===_0xcff429;},'bHsXC':_0x10933e(0x17b),'HOKBW':function(_0x443129,_0x289ca3){return _0x443129(_0x289ca3);},'UPCjZ':function(_0x2bd45b,_0x5e5a1f){return _0x2bd45b(_0x5e5a1f);},'AhfVe':function(_0x48d557,_0x4b24a5){return _0x48d557(_0x4b24a5);},'oWLkE':function(_0x44178d,_0x16885b){return _0x44178d(_0x16885b);},'feLkW':function(_0x1c6bd4,_0x22e880,_0x5af7b6){return _0x1c6bd4(_0x22e880,_0x5af7b6);},'ppbRv':function(_0xfd0bf9,_0x2fee78){return _0xfd0bf9&&_0x2fee78;},'nfxJN':_0x10933e(0x176),'lbbmz':_0x10933e(0x134),'AvtRK':function(_0xc95922,_0x452a9d,_0x582eda,_0x4be7e4){return _0xc95922(_0x452a9d,_0x582eda,_0x4be7e4);},'ghMhv':_0x10933e(0x184),'KRMOd':function(_0x481dc3,_0x47669c){return _0x481dc3(_0x47669c);},'BWiJE':_0x10933e(0x17f),'wGEOO':function(_0x4e30d0,_0x35743c){return _0x4e30d0!==_0x35743c;},'SMgLa':_0x10933e(0x13f),'VgamU':_0x10933e(0x142),'TrLxK':'ypUiT','nZaZp':function(_0x21c461,_0x5054bb){return _0x21c461(_0x5054bb);},'DLkhX':'HlubA'};let _0x2d4006=_0x4335de['bstackUsername'],_0x151354=_0x4335de[_0x10933e(0x167)],_0x26cae2=_0x4335de[_0x10933e(0x171)];const _0x1a25ed=_0x4d36cc=>{const _0x261500=_0x10933e,_0x1f7344={'NiaJr':function(_0x281cdb,_0xb06b12){const _0x22f455=a7_0x3300;return _0x1d8f04[_0x22f455(0x160)](_0x281cdb,_0xb06b12);},'hVuHR':function(_0x5d5198,_0x5f0153){const _0x35582c=a7_0x3300;return _0x1d8f04[_0x35582c(0x166)](_0x5d5198,_0x5f0153);},'MXUpq':function(_0x49d54a,_0x558217){const _0x8c69f8=a7_0x3300;return _0x1d8f04[_0x8c69f8(0x166)](_0x49d54a,_0x558217);},'NFPZf':_0x1d8f04[_0x261500(0x14a)],'kXeVD':_0x1d8f04[_0x261500(0x18d)],'tbNga':_0x1d8f04['ELdoN']};if(_0x1d8f04[_0x261500(0x163)](_0x1d8f04[_0x261500(0x156)],_0x1d8f04['ogXcP'])){const _0x17e5bf={};_0x17e5bf[_0x261500(0x14d)]=_0x469556,_0x17e5bf['customRepeaters']=_0x1b4365['customRepeaters'],_0x17e5bf[_0x261500(0x159)]=_0x1a997e;const _0x4d75a4=_0x17e5bf,_0x26de46=_0x1f7344[_0x261500(0x149)](_0x576742,_0x4d75a4);let _0x114f39=0x0;const _0x3016e0=async()=>{const _0x43e4db=_0x261500;_0x114f39++,_0x1f7344[_0x43e4db(0x138)](_0x114f39,0x1)&&_0x26de46&&_0x26de46[_0x43e4db(0x14e)]()&&_0x1f7344[_0x43e4db(0x185)](_0x47cf6e,_0x26de46);};_0x4a6123['on'](_0x1f7344[_0x261500(0x175)],_0x3016e0),_0x59d068['on'](_0x1f7344['kXeVD'],_0x3016e0),_0x2a0430['on'](_0x1f7344['tbNga'],_0x3016e0),_0x422d2a=_0x261500(0x15e),_0x2a151b[_0x261500(0x157)](_0x19d837);}else logger[_0x261500(0x141)](_0x4d36cc),process[_0x261500(0x183)](0x1);};[_0x2d4006,_0x151354]=_0x1d8f04[_0x10933e(0x131)](fetchOrUpdateUserConfig,_0x2d4006,_0x151354);!_0x1d8f04['ppbRv'](_0x2d4006,_0x151354)&&(_0x1d8f04[_0x10933e(0x161)](_0x1d8f04[_0x10933e(0x153)],_0x1d8f04[_0x10933e(0x191)])?_0x1d8f04['MGYBZ'](_0x3d07d1,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier'):_0x1d8f04[_0x10933e(0x190)](_0x1a25ed,_0x10933e(0x140)));let _0x343887=_0x4335de[_0x10933e(0x164)],[_0x50e33b,_0x15ec58]=await _0x1d8f04[_0x10933e(0x148)](getGridDetails,_0x2d4006,_0x151354,_0x343887);if(!_0x15ec58){if(_0x1d8f04[_0x10933e(0x161)](_0x1d8f04[_0x10933e(0x172)],_0x1d8f04[_0x10933e(0x172)]))_0x1d8f04['KRMOd'](_0x1a25ed,_0x10933e(0x13b));else{const _0x461e41={};_0x461e41[_0x10933e(0x178)]=_0x1d8f04[_0x10933e(0x15a)],_0x461e41[_0x10933e(0x187)]=_0x1d8f04['haMFA'];const _0x8c0c41={};_0x8c0c41[_0x10933e(0x178)]=_0x1d8f04[_0x10933e(0x150)],_0x8c0c41[_0x10933e(0x187)]=_0x1d8f04[_0x10933e(0x133)];const _0x4c11d8={};_0x4c11d8['demandOption']=!![],_0x4c11d8['description']=_0x1d8f04[_0x10933e(0x17c)],_0x4c11d8['type']=_0x1d8f04[_0x10933e(0x133)];const _0x8f43f0={};_0x8f43f0[_0x10933e(0x178)]=_0x1d8f04['ActDq'],_0x8f43f0[_0x10933e(0x187)]=_0x1d8f04['haMFA'];const _0x526c82={};_0x526c82[_0x10933e(0x178)]=_0x1d8f04[_0x10933e(0x16e)],_0x526c82[_0x10933e(0x187)]=_0x1d8f04['haMFA'];const _0x1f6b26={};return _0x1f6b26['bstack-username']=_0x461e41,_0x1f6b26[_0x10933e(0x16d)]=_0x8c0c41,_0x1f6b26[_0x10933e(0x179)]=_0x4c11d8,_0x1f6b26[_0x10933e(0x14c)]=_0x8f43f0,_0x1f6b26[_0x10933e(0x16a)]=_0x526c82,_0xd72adb[_0x10933e(0x14b)](_0xd90b97[_0x10933e(0x174)])[_0x10933e(0x189)](_0x33ba20)[_0x10933e(0x188)](_0x1f6b26)[_0x10933e(0x136)](_0x1d8f04[_0x10933e(0x16c)])[_0x10933e(0x173)];}}let _0x581e81=_0x1d8f04['ShmCi'](_0x4335de[_0x10933e(0x135)],_0x1d8f04[_0x10933e(0x177)])?!![]:![];if(_0x15ec58&&_0x15ec58['isTrialGrid']&&_0x581e81){if(_0x1d8f04[_0x10933e(0x18f)](_0x1d8f04[_0x10933e(0x147)],_0x1d8f04[_0x10933e(0x143)])){logMessage=_0x10933e(0x152),logger[_0x10933e(0x157)](logMessage);try{if(_0x1d8f04['ShmCi'](_0x1d8f04[_0x10933e(0x158)],_0x1d8f04['TrLxK'])){const _0x55f908={};_0x55f908['accessKey']=_0x151354,_0x55f908['customRepeaters']=_0x15ec58['customRepeaters'],_0x55f908['browserStackLocalOptions']=_0x26cae2;const _0xcc5a98=_0x55f908,_0x162ee3=_0x1d8f04[_0x10933e(0x15c)](startLocalBinarySync,_0xcc5a98);let _0x10379c=0x0;const _0x39988a=async()=>{const _0x5c696=_0x10933e;_0x1d8f04[_0x5c696(0x161)](_0x1d8f04[_0x5c696(0x18e)],_0x1d8f04[_0x5c696(0x18e)])?(_0x10379c++,_0x1d8f04['wftDB'](_0x10379c,0x1)&&_0x162ee3&&_0x162ee3[_0x5c696(0x14e)]()&&_0x1d8f04['HOKBW'](stopLocalBinary,_0x162ee3)):(_0x4b4ffc[_0x5c696(0x141)](_0x35843e),_0x3edd25[_0x5c696(0x183)](0x1));};process['on'](_0x1d8f04[_0x10933e(0x14a)],_0x39988a),process['on'](_0x1d8f04[_0x10933e(0x18d)],_0x39988a),process['on'](_0x1d8f04['ELdoN'],_0x39988a),logMessage=_0x10933e(0x15e),logger[_0x10933e(0x157)](logMessage);}else _0x1d8f04['HOKBW'](_0x4aae6e,_0x10933e(0x169));}catch(_0x34b8ed){_0x1d8f04[_0x10933e(0x161)](_0x1d8f04[_0x10933e(0x15b)],_0x1d8f04[_0x10933e(0x15b)])?_0x1d8f04['oWLkE'](_0x1a25ed,_0x10933e(0x169)):_0x1d8f04[_0x10933e(0x190)](_0x984383,_0x10933e(0x140));}}else{const _0x116449={'cUtQz':function(_0x3660b6,_0x578938){return _0x1d8f04['wftDB'](_0x3660b6,_0x578938);},'aGWsf':function(_0x3259ba,_0x453011){const _0x1fcdb9=_0x10933e;return _0x1d8f04[_0x1fcdb9(0x15d)](_0x3259ba,_0x453011);}};_0x5ca560='Grid\x20type:\x20Trial',_0x25ecb3[_0x10933e(0x157)](_0x208a82);try{const _0x5bc605={};_0x5bc605[_0x10933e(0x14d)]=_0xe5ae09,_0x5bc605['customRepeaters']=_0x569d3d[_0x10933e(0x13c)],_0x5bc605['browserStackLocalOptions']=_0xc7ac37;const _0x7d3571=_0x5bc605,_0x265624=_0x1d8f04[_0x10933e(0x155)](_0x20b987,_0x7d3571);let _0x2dcfa5=0x0;const _0x7564c=async()=>{const _0x3f0327=_0x10933e;_0x2dcfa5++,_0x116449[_0x3f0327(0x192)](_0x2dcfa5,0x1)&&_0x265624&&_0x265624['isRunning']()&&_0x116449[_0x3f0327(0x16b)](_0x1d6d63,_0x265624);};_0x2ad985['on'](_0x1d8f04[_0x10933e(0x14a)],_0x7564c),_0x2d4873['on'](_0x1d8f04[_0x10933e(0x18d)],_0x7564c),_0x5b2ca0['on'](_0x1d8f04[_0x10933e(0x132)],_0x7564c),_0x28d6d9=_0x10933e(0x15e),_0x2c83fb['info'](_0x19e5fa);}catch(_0xeebec0){_0x1d8f04[_0x10933e(0x166)](_0x180250,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}}process['exit'](0x0);};
|
|
1
|
+
const a7_0x133fb4=a7_0x1b2f;function a7_0x1b2f(_0x5efee0,_0x26fa8b){const _0x32744d=a7_0x3274();return a7_0x1b2f=function(_0x1b2f66,_0x5abf4f){_0x1b2f66=_0x1b2f66-0x80;let _0x11297d=_0x32744d[_0x1b2f66];return _0x11297d;},a7_0x1b2f(_0x5efee0,_0x26fa8b);}(function(_0x566a40,_0x55c8a6){const _0x57f40c=a7_0x1b2f,_0x4a7d47=_0x566a40();while(!![]){try{const _0x2b2c4c=-parseInt(_0x57f40c(0xc9))/0x1*(parseInt(_0x57f40c(0xcc))/0x2)+-parseInt(_0x57f40c(0xc0))/0x3+parseInt(_0x57f40c(0xaf))/0x4*(-parseInt(_0x57f40c(0xa8))/0x5)+-parseInt(_0x57f40c(0x88))/0x6*(parseInt(_0x57f40c(0xab))/0x7)+-parseInt(_0x57f40c(0xe4))/0x8+parseInt(_0x57f40c(0xc6))/0x9*(parseInt(_0x57f40c(0x91))/0xa)+parseInt(_0x57f40c(0x89))/0xb;if(_0x2b2c4c===_0x55c8a6)break;else _0x4a7d47['push'](_0x4a7d47['shift']());}catch(_0x382f12){_0x4a7d47['push'](_0x4a7d47['shift']());}}}(a7_0x3274,0xa3912));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x133fb4(0xe8)),{logger}=require(a7_0x133fb4(0xd6)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');function a7_0x3274(){const _0x49d33c=['MIrjF','true','585297oPlPEe','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','KqfxB','3PCbCMf','customRepeaters','advanceOptions','591488jrvtgg','Grid\x20type:\x20Trial','beforeExit','BcbVZ','grid','MaXwN','xjqIN','epilogue','IZCfP','DiAFE','../../config/logger','bkNhD','TlEVt','demandOption','accessKey','error','XsDem','fTXBD','jpRWu','ycvkT','create','string','use-staging','desc','5089992SJaLQh','GRHUB','ALloS','isRunning','../../config/constants','nlFNK','aPkdF','isTrialGrid','HaiUb','NXVFV','dUmQj','POEhl','HRBpV','unFim','bstackUsername','UGnUD','DYxSj','QHQQO','gridId','zFIxj','emzxs','6774492TQRUfL','55284372QtAdgQ','help','description','GXNix','handler','Pass\x20the\x20ID\x20of\x20the\x20Grid','Advance\x20options\x20for\x20Browserstack\x20Local','QzYjs','10KEsgkz','UybnH','aOgTS','gwOaE','argv','pnULN','sdICI','yfNYX','tPQhH','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','builder','bstackAccesskey','browserStackLocalOptions','yWNtZ','jTojC','llVHg','DZgqG','LzHPk','PazxE','usage','rrWzM','grid-id','ALkFf','2516045cPthSo','fGFnl','EFrfI','7VwrlcZ','advance-options','bstack-username','exit','4ywilOR','rlnTi','EHtAD','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ZfepX','RvSPB','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.','erEZD','type','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','useStaging','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','info','command','Ngxqy','3795429CcEUoY','SIGINT','AuNMK','options'];a7_0x3274=function(){return _0x49d33c;};return a7_0x3274();}exports[a7_0x133fb4(0xbe)]=a7_0x133fb4(0xd0),exports[a7_0x133fb4(0xe3)]=a7_0x133fb4(0xb3),exports[a7_0x133fb4(0x9b)]=_0x45ea93=>{const _0x23adfc=a7_0x133fb4,_0x466c88={};_0x466c88[_0x23adfc(0x87)]=_0x23adfc(0xb4),_0x466c88['rrWzM']='string',_0x466c88[_0x23adfc(0xa1)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x466c88[_0x23adfc(0xed)]=_0x23adfc(0x8e),_0x466c88[_0x23adfc(0xbf)]=_0x23adfc(0xba),_0x466c88[_0x23adfc(0xb6)]=_0x23adfc(0x8f),_0x466c88[_0x23adfc(0xdd)]=_0x23adfc(0x8a);const _0x4c9741=_0x466c88,_0x2bcb13={};_0x2bcb13['description']=_0x4c9741['emzxs'],_0x2bcb13['type']=_0x4c9741['rrWzM'];const _0x2d4c70={};_0x2d4c70[_0x23adfc(0x8b)]=_0x4c9741[_0x23adfc(0xa1)],_0x2d4c70['type']=_0x4c9741[_0x23adfc(0xa5)];const _0x2b9d6e={};_0x2b9d6e[_0x23adfc(0xd9)]=!![],_0x2b9d6e[_0x23adfc(0x8b)]=_0x4c9741[_0x23adfc(0xed)],_0x2b9d6e[_0x23adfc(0xb9)]=_0x4c9741['rrWzM'];const _0x3f83b1={};_0x3f83b1['description']=_0x4c9741[_0x23adfc(0xbf)],_0x3f83b1[_0x23adfc(0xb9)]=_0x4c9741[_0x23adfc(0xa5)];const _0x625631={};_0x625631[_0x23adfc(0x8b)]=_0x4c9741[_0x23adfc(0xb6)],_0x625631['type']=_0x4c9741[_0x23adfc(0xa5)];const _0x576e7e={};return _0x576e7e[_0x23adfc(0xad)]=_0x2bcb13,_0x576e7e['bstack-accesskey']=_0x2d4c70,_0x576e7e['grid-id']=_0x2b9d6e,_0x576e7e[_0x23adfc(0xe2)]=_0x3f83b1,_0x576e7e[_0x23adfc(0xac)]=_0x625631,_0x45ea93[_0x23adfc(0xa4)](HELP_HEADER_MESSAGE[_0x23adfc(0xe0)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x23adfc(0xc3)](_0x576e7e)[_0x23adfc(0x8a)](_0x4c9741['fTXBD'])['argv'];},exports[a7_0x133fb4(0x8d)]=async _0x13b21a=>{const _0x466567=a7_0x133fb4,_0x21fe31={'UGnUD':function(_0xa66e50,_0x3b121f){return _0xa66e50(_0x3b121f);},'EFrfI':function(_0x40073c,_0x535695){return _0x40073c!==_0x535695;},'KqfxB':_0x466567(0xa3),'ycvkT':_0x466567(0x80),'AuNMK':function(_0x438ebd,_0x466658){return _0x438ebd==_0x466658;},'HaiUb':function(_0x187755,_0x1bcacb){return _0x187755(_0x1bcacb);},'MaXwN':function(_0x53a7bf,_0x49d873){return _0x53a7bf(_0x49d873);},'yfNYX':_0x466567(0xce),'DiAFE':_0x466567(0xc1),'jpRWu':'SIGTERM','gwOaE':function(_0xc3e88f,_0x1a992a){return _0xc3e88f===_0x1a992a;},'aPkdF':_0x466567(0x93),'xjqIN':function(_0x376e85,_0x26dcf7){return _0x376e85(_0x26dcf7);},'yWNtZ':function(_0x165afb,_0x56cd92){return _0x165afb(_0x56cd92);},'jTojC':function(_0x5eb44d,_0x50ebdd){return _0x5eb44d(_0x50ebdd);},'MIrjF':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','zFIxj':_0x466567(0xe1),'pnULN':_0x466567(0x9a),'XsDem':'Pass\x20the\x20ID\x20of\x20the\x20Grid','ALkFf':_0x466567(0xba),'UybnH':'Advance\x20options\x20for\x20Browserstack\x20Local','DYxSj':_0x466567(0x8a),'sdICI':function(_0x3c0271,_0x2d9b20,_0x46fafa){return _0x3c0271(_0x2d9b20,_0x46fafa);},'rlnTi':function(_0x7cf91b,_0x49b0e4){return _0x7cf91b&&_0x49b0e4;},'BcbVZ':_0x466567(0xee),'IZCfP':function(_0x47b4d6,_0x4903d9){return _0x47b4d6(_0x4903d9);},'GXNix':function(_0x830bff,_0x535ecc,_0x39aa03,_0x19b0cf){return _0x830bff(_0x535ecc,_0x39aa03,_0x19b0cf);},'pDXKe':_0x466567(0xb5),'POEhl':_0x466567(0x84),'ugUmu':function(_0x43e1c5,_0x272d44){return _0x43e1c5(_0x272d44);},'fGFnl':_0x466567(0xc5),'nlFNK':function(_0x2f85f9,_0x57e485){return _0x2f85f9===_0x57e485;},'tPQhH':_0x466567(0xd7),'ALloS':function(_0x40a046,_0x1ef0d9){return _0x40a046===_0x1ef0d9;},'TlEVt':_0x466567(0xe5),'erEZD':function(_0x5d880,_0x3b535d){return _0x5d880(_0x3b535d);},'QzYjs':_0x466567(0xf0),'EHtAD':_0x466567(0xa0)};let _0x52611c=_0x13b21a[_0x466567(0x81)],_0x564454=_0x13b21a[_0x466567(0x9c)],_0x3087e5=_0x13b21a[_0x466567(0xcb)];const _0x164e12=_0x57c6db=>{const _0x2083be=_0x466567;_0x21fe31[_0x2083be(0xaa)](_0x21fe31[_0x2083be(0xc8)],_0x21fe31[_0x2083be(0xdf)])?(logger['error'](_0x57c6db),process[_0x2083be(0xae)](0x1)):_0x21fe31[_0x2083be(0x82)](_0x288f37,_0x2083be(0xbc));};[_0x52611c,_0x564454]=_0x21fe31[_0x466567(0x97)](fetchOrUpdateUserConfig,_0x52611c,_0x564454);if(!_0x21fe31[_0x466567(0xb0)](_0x52611c,_0x564454)){if(_0x21fe31[_0x466567(0x94)](_0x21fe31[_0x466567(0xcf)],_0x21fe31['BcbVZ']))_0x21fe31[_0x466567(0xd4)](_0x164e12,_0x466567(0xc7));else{const _0x1b47ef={};_0x1b47ef['accessKey']=_0x11a79c,_0x1b47ef[_0x466567(0xca)]=_0x25e284[_0x466567(0xca)],_0x1b47ef[_0x466567(0x9d)]=_0x355112;const _0x1a3e4e=_0x1b47ef,_0xe3c23=_0x21fe31[_0x466567(0xd1)](_0x235c21,_0x1a3e4e);let _0x33aede=0x0;const _0x122db7=async()=>{const _0x5958fd=_0x466567;_0x33aede++,_0x21fe31[_0x5958fd(0xc2)](_0x33aede,0x1)&&_0xe3c23&&_0xe3c23[_0x5958fd(0xe7)]()&&_0x21fe31[_0x5958fd(0xec)](_0xe20065,_0xe3c23);};_0x50842e['on'](_0x21fe31[_0x466567(0x98)],_0x122db7),_0x445893['on'](_0x21fe31[_0x466567(0xd5)],_0x122db7),_0x5546bc['on'](_0x21fe31[_0x466567(0xde)],_0x122db7),_0x224316=_0x466567(0xb7),_0x3ff940['info'](_0x3ab355);}}let _0x55f5be=_0x13b21a[_0x466567(0x85)],[_0xa14796,_0x33d7b2]=await _0x21fe31[_0x466567(0x8c)](getGridDetails,_0x52611c,_0x564454,_0x55f5be);!_0x33d7b2&&(_0x21fe31[_0x466567(0x94)](_0x21fe31['pDXKe'],_0x21fe31[_0x466567(0xef)])?_0x21fe31['HaiUb'](_0x3614ac,'Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey'):_0x21fe31['ugUmu'](_0x164e12,_0x466567(0xbc)));let _0x2e0d56=_0x21fe31['gwOaE'](_0x13b21a[_0x466567(0xbb)],_0x21fe31[_0x466567(0xa9)])?!![]:![];if(_0x33d7b2&&_0x33d7b2[_0x466567(0xeb)]&&_0x2e0d56){if(_0x21fe31[_0x466567(0xe9)](_0x21fe31[_0x466567(0x99)],_0x21fe31[_0x466567(0x99)])){logMessage='Grid\x20type:\x20Trial',logger[_0x466567(0xbd)](logMessage);try{if(_0x21fe31[_0x466567(0xe6)](_0x21fe31[_0x466567(0xd8)],_0x21fe31[_0x466567(0xd8)])){const _0x2bd4d2={};_0x2bd4d2[_0x466567(0xda)]=_0x564454,_0x2bd4d2[_0x466567(0xca)]=_0x33d7b2['customRepeaters'],_0x2bd4d2[_0x466567(0x9d)]=_0x3087e5;const _0x11a231=_0x2bd4d2,_0x135020=_0x21fe31[_0x466567(0xb8)](startLocalBinarySync,_0x11a231);let _0xa5c60=0x0;const _0x2546ad=async()=>{const _0x240ed6=_0x466567;_0x21fe31[_0x240ed6(0x94)](_0x21fe31[_0x240ed6(0xea)],_0x21fe31[_0x240ed6(0xea)])?(_0xa5c60++,_0x21fe31[_0x240ed6(0xc2)](_0xa5c60,0x1)&&_0x135020&&_0x135020[_0x240ed6(0xe7)]()&&_0x21fe31[_0x240ed6(0xd2)](stopLocalBinary,_0x135020)):(_0x4dec60[_0x240ed6(0xdb)](_0x33256d),_0x2d88ff[_0x240ed6(0xae)](0x1));};process['on'](_0x21fe31['yfNYX'],_0x2546ad),process['on'](_0x21fe31[_0x466567(0xd5)],_0x2546ad),process['on'](_0x21fe31[_0x466567(0xde)],_0x2546ad),logMessage=_0x466567(0xb7),logger[_0x466567(0xbd)](logMessage);}else{const _0x1d3ec2={'HShOd':function(_0x2abdf9,_0x40ec1a){const _0x396e0b=_0x466567;return _0x21fe31[_0x396e0b(0xc2)](_0x2abdf9,_0x40ec1a);},'LzHPk':function(_0x4d1398,_0xc21e36){const _0x2af2ac=_0x466567;return _0x21fe31[_0x2af2ac(0x82)](_0x4d1398,_0xc21e36);}};_0x359b45=_0x466567(0xcd),_0xa218e3[_0x466567(0xbd)](_0x59e11f);try{const _0x56b111={};_0x56b111[_0x466567(0xda)]=_0x148d63,_0x56b111['customRepeaters']=_0x1f48e7['customRepeaters'],_0x56b111[_0x466567(0x9d)]=_0x82341b;const _0x5df83a=_0x56b111,_0xdced83=_0x21fe31[_0x466567(0x9e)](_0x350b21,_0x5df83a);let _0x2e02f5=0x0;const _0x4dcf3c=async()=>{const _0x180bc3=_0x466567;_0x2e02f5++,_0x1d3ec2['HShOd'](_0x2e02f5,0x1)&&_0xdced83&&_0xdced83[_0x180bc3(0xe7)]()&&_0x1d3ec2[_0x180bc3(0xa2)](_0x82dfeb,_0xdced83);};_0x4f2a9c['on'](_0x21fe31[_0x466567(0x98)],_0x4dcf3c),_0x23fd7a['on'](_0x21fe31[_0x466567(0xd5)],_0x4dcf3c),_0x108e71['on'](_0x21fe31[_0x466567(0xde)],_0x4dcf3c),_0x3d81ef=_0x466567(0xb7),_0x69bfd5[_0x466567(0xbd)](_0x4d3b00);}catch(_0x71b6bb){_0x21fe31[_0x466567(0x9e)](_0x2a2db7,_0x466567(0xb2));}}}catch(_0x436495){_0x21fe31[_0x466567(0xaa)](_0x21fe31[_0x466567(0x90)],_0x21fe31[_0x466567(0xb1)])?_0x21fe31['UGnUD'](_0x164e12,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid'):_0x21fe31[_0x466567(0x9f)](_0x2eeed2,_0x466567(0xb2));}}else{const _0x4d2ca7={};_0x4d2ca7[_0x466567(0x8b)]=_0x21fe31[_0x466567(0xc4)],_0x4d2ca7[_0x466567(0xb9)]=_0x21fe31[_0x466567(0x86)];const _0x5621d0={};_0x5621d0[_0x466567(0x8b)]=_0x21fe31[_0x466567(0x96)],_0x5621d0[_0x466567(0xb9)]=_0x21fe31[_0x466567(0x86)];const _0x3fb801={};_0x3fb801[_0x466567(0xd9)]=!![],_0x3fb801[_0x466567(0x8b)]=_0x21fe31[_0x466567(0xdc)],_0x3fb801[_0x466567(0xb9)]=_0x21fe31['zFIxj'];const _0x5a10b4={};_0x5a10b4[_0x466567(0x8b)]=_0x21fe31[_0x466567(0xa7)],_0x5a10b4[_0x466567(0xb9)]=_0x21fe31[_0x466567(0x86)];const _0x55f29d={};_0x55f29d[_0x466567(0x8b)]=_0x21fe31[_0x466567(0x92)],_0x55f29d[_0x466567(0xb9)]=_0x21fe31[_0x466567(0x86)];const _0x5b4b24={};return _0x5b4b24[_0x466567(0xad)]=_0x4d2ca7,_0x5b4b24['bstack-accesskey']=_0x5621d0,_0x5b4b24[_0x466567(0xa6)]=_0x3fb801,_0x5b4b24[_0x466567(0xe2)]=_0x5a10b4,_0x5b4b24[_0x466567(0xac)]=_0x55f29d,_0x25920b['usage'](_0x5ced80[_0x466567(0xe0)])[_0x466567(0xd3)](_0x52892b)[_0x466567(0xc3)](_0x5b4b24)[_0x466567(0x8a)](_0x21fe31[_0x466567(0x83)])[_0x466567(0x95)];}}process[_0x466567(0xae)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8_0x3717(){const _0x4d5760=['12GeWhbX','strict','322zuJRcr','epilogue','XthzE','875876jGUjWR','builder','139774VfvIuY','9wpFeqm','39119IBpkCA','create','4330623CvMkEQ','create_commands','../config/constants','command','Create\x20a\x20new\x20Automation\x20grid.','commandDir','NQElM','5fAzIVM','demandCommand','1752jXgUAe','558890PgwXnR','help','12VMrjRz','1470390NiKzfp'];a8_0x3717=function(){return _0x4d5760;};return a8_0x3717();}const a8_0xa86cdb=a8_0x4d88;function a8_0x4d88(_0x56ef83,_0x4afe28){const _0x37170f=a8_0x3717();return a8_0x4d88=function(_0x4d8847,_0x2a1d85){_0x4d8847=_0x4d8847-0x150;let _0x12a2c=_0x37170f[_0x4d8847];return _0x12a2c;},a8_0x4d88(_0x56ef83,_0x4afe28);}(function(_0x426dfb,_0x182f74){const _0x1d6b7e=a8_0x4d88,_0xdf6702=_0x426dfb();while(!![]){try{const _0xbbe45d=-parseInt(_0x1d6b7e(0x153))/0x1+-parseInt(_0x1d6b7e(0x151))/0x2*(parseInt(_0x1d6b7e(0x161))/0x3)+-parseInt(_0x1d6b7e(0x168))/0x4+parseInt(_0x1d6b7e(0x15c))/0x5*(parseInt(_0x1d6b7e(0x162))/0x6)+-parseInt(_0x1d6b7e(0x165))/0x7*(parseInt(_0x1d6b7e(0x15e))/0x8)+parseInt(_0x1d6b7e(0x152))/0x9*(parseInt(_0x1d6b7e(0x15f))/0xa)+-parseInt(_0x1d6b7e(0x155))/0xb*(-parseInt(_0x1d6b7e(0x163))/0xc);if(_0xbbe45d===_0x182f74)break;else _0xdf6702['push'](_0xdf6702['shift']());}catch(_0x2b319a){_0xdf6702['push'](_0xdf6702['shift']());}}}(a8_0x3717,0x23df9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0xa86cdb(0x157));exports[a8_0xa86cdb(0x158)]=a8_0xa86cdb(0x154),exports['desc']=a8_0xa86cdb(0x159),exports[a8_0xa86cdb(0x150)]=function(_0x32c5a2){const _0x4ce2b2=a8_0xa86cdb,_0x25d3ea={};_0x25d3ea[_0x4ce2b2(0x15b)]=_0x4ce2b2(0x156),_0x25d3ea[_0x4ce2b2(0x167)]='help';const _0x513523=_0x25d3ea;return _0x32c5a2['usage'](HELP_HEADER_MESSAGE[_0x4ce2b2(0x154)])[_0x4ce2b2(0x166)](HELP_FOOTER_MESSAGE)[_0x4ce2b2(0x15a)](_0x513523[_0x4ce2b2(0x15b)])[_0x4ce2b2(0x15d)]()['recommendCommands']()[_0x4ce2b2(0x164)]()[_0x4ce2b2(0x160)](_0x513523[_0x4ce2b2(0x167)]);},exports['handler']=function(_0x573ba4){};
|