browserstack-node-sdk 1.32.7 → 1.32.8
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/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/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/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x291e68=a3_0x1104;(function(_0x5a7c90,_0xb43df2){const _0x2fc712=a3_0x1104,_0x7eebb2=_0x5a7c90();while(!![]){try{const _0x15e7fc=parseInt(_0x2fc712(0x311))/0x1*(parseInt(_0x2fc712(0x2ef))/0x2)+-parseInt(_0x2fc712(0x325))/0x3*(-parseInt(_0x2fc712(0x30d))/0x4)+parseInt(_0x2fc712(0x21d))/0x5*(parseInt(_0x2fc712(0x2f2))/0x6)+parseInt(_0x2fc712(0x2f4))/0x7+-parseInt(_0x2fc712(0x334))/0x8*(parseInt(_0x2fc712(0x318))/0x9)+parseInt(_0x2fc712(0x2bb))/0xa+-parseInt(_0x2fc712(0x2b8))/0xb;if(_0x15e7fc===_0xb43df2)break;else _0x7eebb2['push'](_0x7eebb2['shift']());}catch(_0x456565){_0x7eebb2['push'](_0x7eebb2['shift']());}}}(a3_0x4fea,0x2689b));function a3_0x4fea(){const _0x82382=['minNodeCount','@google-cloud/resource-manager','parse','browserstack','YQjQv','setConfig','resourceLabels','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','SWiYz','../config/constants','EPMCr','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','https://www.googleapis.com/auth/cloud-platform','requestBody','wkjls','storage.objects.create','storage.multipartUploads.abort','GoogleCloudProvider','Creating\x20GKE\x20Cluster','JTKlz','69604EVrMHB','DQeCS','nXUjH','390IIIVLS','json','273448afyfef','PxOts','jocGj','concat','updateClusterRegion','rZIJQ','PUT','regionmap.json','ASgsB','get','serviceAccountName','XFWhf','cloudProvider','toLowerCase','accessKey','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','XVNaX','storage.objects.delete','containerClient','storage.buckets.create','ceSbu','gke_','stack','yaKdS','turboscale_custom_role','435272Zdqazl','storage.buckets.getIamPolicy','SvSHI','deleteCluster','5njJwzp','wDxFe','storage.multipartUploads.create','BErMI','RUNNING','gcp_credentials.json','rws','18zRjPjp','bindings','iam.serviceAccounts.signBlob','storage.objects.getIamPolicy','mZQAG','jDuXp','CxSfn','bnJVH','veSeX','auth','TpuMk','pGkjv','includedPermissions','3FsVDiq','Turboscale\x20Custom\x20Role','pJsNo','eDtRy','jHYZD','rooqY','haWwL','getClusterInfo','storage.objects.list','ynDnj','storage.buckets.listTagBindings','networkClient','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','OzbIc','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','80040okexfT','uhJie','managedby','projects','TOvAu','storage.objects.setIamPolicy','hkskE','isSubnetsValid','aRjbq','split','MqOlx','fSXqr','Cluster\x20creation\x20failed','DLIej','length','DxmdE','TuhyR','fbdyN','BrTqY','uGIwk','oEALO','rXvjx','name','UxIZV','seJCB','https://','hNmdu','UrQEM','dtUKo','bstackUsername','getCluster','Cexkx','accountId','ufcNm','maxNodes','NMdMc','project_id','jIZLC','push','AvPUe','ctXIh','resourcemanagerClient','scopes','IBvIr','projects/','getClient','JUuig','project','LcUDF','TAnJR','JjIVa','BxpvU','turboscale-service-account','/roles/','kUfBY','clusterCaCertificate','fetchLocalCreds','createCluster','serviceAccounts','checkServiceAccount','MbjBg','kkemW','ecLpR','storage.objects.update','machineType','pMmtz','instanceType','storage.multipartUploads.list','wMAmi','MRvub','saLrV','autoscaling','JSopy','network','iam','credentialsPath','ejnQZ','gridProfileId','aZYmj','GKE\x20Cluster\x20deletion\x20failed','wkLYB','aHKjS','RESOURCES','ElvRZ','jVDgj','tlRUS','uBXgl','verBE','bnBxT','NCfFv','wutdQ','dZLAN','/serviceAccounts/','VduNB','ogDgg','iUoGM','/locations/','mRMpc','3310iglKIb','storage.buckets.createTagBinding','listClusters','storage.buckets.listEffectiveTags','raXnS','members','cloudProviderName','clusterRegion','@google-cloud/compute','getKubeConfigData','aIeUZ','replace','CjVPb','5|2|0|3|4|1','AFrZL','AAyHI','clusters','aGbIK','sNXNK','create','@google-cloud/container','cqejD','isClusterPresent','JJDXP','PqtUs','https://www.googleapis.com/compute/v1/projects/','child_process','join','sendGCPInfoToHST','../utils/gridComponents','JWEky','XEiff','KMmRe','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','kOrUe','setupNewCluster','storage.buckets.get','serviceAccount','utf-8','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','ahTbO','RqlOY','ORqGi','sendResourceDataToHST','getGridHostname','XyqUG','profileId','zMeUJ','zTMhy','nXRRj','lckKL','username','storage.objects.get','frulw','./CloudProvider','pRdGq','subnetwork','maxNodeCount','toString','nodePools','error','NetworksClient','tsBoI','SkQKv','ClusterManagerClient','NvuCm','UJuaJ','OkbYC','dRepG','ingress','VjLzD','FNKjm','.\x20Error:\x20','webSocketUtils','XLfYQ','readFileAsync','setIamPolicy','message','OoYib','LagsV','zHWZw','ylpsL','CxjyI','info','Service\x20account\x20already\x20exists,\x20skipping','gcpresources','Dzfbs','.iam.gserviceaccount.com','/clusters/','ckjzi','rXFLn','owNEi','projectId','4|2|8|6|5|1|0|3|7','KubeConfigTemplate.yaml','exec','keyFile','newRegion','exit','isConfigured','gcloud\x20auth\x20login\x20--cred-file=','iamClient','CiwFD','sendEventToBackend','gcpConfigSet','spxSu','Bjmgx','pSXRG','pacGl','IvsCL','parent','KVYYW','bstackAccesskey','status','heJYU','pfORw','type','\x20--quiet\x20--user-output-enabled=false','storage.buckets.update','organizations','endpoint','aKalm','IQHhy','LDHxP','ZEsJu','DOteT','CGJss','Cannot\x20find\x20subnets\x20','aBjkU','masterAuth','minNodes','QvJWO','PXAwl','Creating\x20service\x20account','YVDBT','/regions/','UMRae','Found\x20cluster\x20with\x20name\x20\x27','googleapis','CKDmR','DixoO','hrPGs','loadBalancer','ONfEq','LOG','config','rTLCM','/global/networks/','serviceAccount:','storage.buckets.delete','getUserInput','zeSSf','clusterName','setupServiceAccount','VHgUM','2988480RqETcj','/packages/cli/update-cluster-region','ZThjs','846190nZgQOQ','../config/logger','nxFuU','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','OPmhg','mHWWu','getIamPolicy','GRNDg','storage.multipartUploads.listParts','storage.buckets.deleteTagBinding','/subnetworks/','storage.buckets.setIamPolicy','NkaqN','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','JZOSQ','lHcGL','TEudm','updateWindowsNodeGroup','../utils/utilityMethods','templates','default','mDjHW','vpcInfo','xtMWe','uSdKs','YPKHM','list','customRoleName','okPbf','qwSbI','ZLxyQ','myrHw'];a3_0x4fea=function(){return _0x82382;};return a3_0x4fea();}const fs=require('fs'),path=require('path'),got=require('got'),util=require('util'),cp=require(a3_0x291e68(0x237)),{google}=require(a3_0x291e68(0x2a7)),compute=require(a3_0x291e68(0x225)),container=require(a3_0x291e68(0x231)),{ProjectsClient}=require(a3_0x291e68(0x2dc))['v3'],{logger}=require(a3_0x291e68(0x2bc)),{CloudProvider}=require(a3_0x291e68(0x253)),{getDirForConfig,getAuthHeader}=require(a3_0x291e68(0x2cd)),{deleteRoutingDeps,deleteAgent}=require(a3_0x291e68(0x23a)),{inputConfirmation,closeInput}=require('../utils/userInput'),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x291e68(0x2e4));class GoogleCloudProvider extends CloudProvider{constructor(_0x1f380e,_0x35e659,_0x5859e4,_0x15ffb2){const _0x312179=a3_0x291e68,_0x563c26={};_0x563c26['LDHxP']=_0x312179(0x27a),_0x563c26[_0x312179(0x31c)]=_0x312179(0x30c),_0x563c26['myrHw']=_0x312179(0x1ef);const _0x2f5415=_0x563c26,_0x51755d=_0x2f5415[_0x312179(0x298)][_0x312179(0x33d)]('|');let _0x4ba1bc=0x0;while(!![]){switch(_0x51755d[_0x4ba1bc++]){case'0':this[_0x312179(0x279)]=null;continue;case'1':this['credentialsPath']=null;continue;case'2':this[_0x312179(0x306)]=null;continue;case'3':this[_0x312179(0x2d6)]=_0x2f5415[_0x312179(0x31c)];continue;case'4':super(GCP,_0x1f380e,_0x35e659,_0x5859e4,_0x15ffb2);continue;case'5':this['iamClient']=null;continue;case'6':this['resourcemanagerClient']=null;continue;case'7':this[_0x312179(0x2fe)]=_0x2f5415[_0x312179(0x2da)];continue;case'8':this['networkClient']=null;continue;}break;}}['configureIfNotConfigured'](){const _0x20a0bd=a3_0x291e68,_0x376a70={};_0x376a70['ZThjs']=function(_0x1c3ce9,_0x189fc5){return _0x1c3ce9!==_0x189fc5;},_0x376a70['wkjls']='WtScO',_0x376a70[_0x20a0bd(0x22f)]=_0x20a0bd(0x323);const _0x237541=_0x376a70;if(!this[_0x20a0bd(0x280)]()){if(_0x237541[_0x20a0bd(0x2ba)](_0x237541[_0x20a0bd(0x2e9)],_0x237541['sNXNK']))this[_0x20a0bd(0x2e0)]();else return _0x44ecfa['status'][_0x20a0bd(0x2ab)][_0x20a0bd(0x262)][0x0]['ip'];}}async[a3_0x291e68(0x248)](){const _0x13af97=a3_0x291e68;this['sendGCPInfoToHST'](this[_0x13af97(0x317)]);}[a3_0x291e68(0x280)](){const _0x29224b=a3_0x291e68,_0x1a76c0={};_0x1a76c0[_0x29224b(0x1ed)]=function(_0x3974fe,_0xe25ed1){return _0x3974fe===_0xe25ed1;};const _0x56ac5c=_0x1a76c0;return _0x56ac5c[_0x29224b(0x1ed)](global_registry[_0x29224b(0x285)],!![]);}[a3_0x291e68(0x2e0)](){const _0x5a660a=a3_0x291e68,_0x3dfec7=this[_0x5a660a(0x206)],_0x8074a9={};_0x8074a9['keyFile']=_0x3dfec7,this[_0x5a660a(0x306)]=new container['v1'][(_0x5a660a(0x25d))](_0x8074a9);const _0x3fda8e={};_0x3fda8e[_0x5a660a(0x27d)]=_0x3dfec7,this['networkClient']=new compute['v1']['NetworksClient'](_0x3fda8e);const _0x4fb41e={};_0x4fb41e[_0x5a660a(0x27d)]=_0x3dfec7,this['resourcemanagerClient']=new ProjectsClient(_0x4fb41e),this[_0x5a660a(0x282)]=google[_0x5a660a(0x205)]('v1'),global_registry[_0x5a660a(0x285)]=!![];}async[a3_0x291e68(0x2b3)](_0x567416,_0x57040d){const _0x6b8a55=a3_0x291e68,_0x2dbf50={'ujvEc':function(_0x58a8e2,_0x824d18){return _0x58a8e2(_0x824d18);},'JSopy':function(_0x32072f){return _0x32072f();},'KVYYW':_0x6b8a55(0x316)},_0x92dfb=await _0x2dbf50['ujvEc'](_0x567416,_0x6b8a55(0x303));let _0x470bd9=await fs[_0x6b8a55(0x268)](_0x92dfb);_0x470bd9=_0x470bd9[_0x6b8a55(0x257)]();const _0x4dad96=_0x2dbf50[_0x6b8a55(0x203)](getDirForConfig),_0x5a7eca=path[_0x6b8a55(0x238)](_0x4dad96,_0x2dbf50[_0x6b8a55(0x28c)]);fs['writeFileSync'](_0x5a7eca,_0x470bd9),this[_0x6b8a55(0x206)]=_0x5a7eca;const _0x486095={};return _0x486095[_0x6b8a55(0x27d)]=_0x5a7eca,_0x57040d[_0x6b8a55(0x300)][GCP]=_0x486095,_0x470bd9=JSON[_0x6b8a55(0x2dd)](_0x470bd9),this[_0x6b8a55(0x279)]=_0x470bd9[_0x6b8a55(0x1df)],_0x57040d;}async[a3_0x291e68(0x1f3)](_0xcca9d){const _0x449cc7=a3_0x291e68;this['credentialsPath']=_0xcca9d[this[_0x449cc7(0x223)]][_0x449cc7(0x27d)];let _0x413371=await fs[_0x449cc7(0x268)](this[_0x449cc7(0x206)]);_0x413371=JSON[_0x449cc7(0x2dd)](_0x413371),this[_0x449cc7(0x279)]=_0x413371[_0x449cc7(0x1df)];}[a3_0x291e68(0x249)](_0x3788d3){const _0x4f0ba0=a3_0x291e68;return _0x3788d3[_0x4f0ba0(0x28e)][_0x4f0ba0(0x2ab)]['ingress'][0x0]['ip'];}async['isBrowserstackCluster'](){const _0x400b0c=a3_0x291e68,_0x549992={};_0x549992['QTSTn']=_0x400b0c(0x333),_0x549992[_0x400b0c(0x29a)]=function(_0x186f19,_0x2937bc){return _0x186f19!==_0x2937bc;},_0x549992[_0x400b0c(0x21c)]=function(_0x535889,_0x452ff4){return _0x535889!==_0x452ff4;},_0x549992['QvJWO']=_0x400b0c(0x21a),_0x549992[_0x400b0c(0x247)]=_0x400b0c(0x276),_0x549992['VjLzD']=function(_0x3a5561,_0x25882c){return _0x3a5561===_0x25882c;},_0x549992[_0x400b0c(0x304)]=_0x400b0c(0x22b),_0x549992[_0x400b0c(0x2a1)]=function(_0x365bd7,_0x2dfe43){return _0x365bd7===_0x2dfe43;},_0x549992[_0x400b0c(0x1f9)]='browserstack',_0x549992[_0x400b0c(0x2d8)]=_0x400b0c(0x23f);const _0x54c3d6=_0x549992;try{if(_0x54c3d6[_0x400b0c(0x21c)](_0x54c3d6[_0x400b0c(0x2a0)],_0x54c3d6['ORqGi'])){const _0xefccba=await this['getClusterInfo']();if(_0xefccba[0x0]?.[_0x400b0c(0x2e1)]?.[_0x400b0c(0x336)]){if(_0x54c3d6[_0x400b0c(0x263)](_0x54c3d6[_0x400b0c(0x304)],_0x54c3d6[_0x400b0c(0x304)])){const _0x8ce3c4=_0xefccba[0x0]?.[_0x400b0c(0x2e1)]?.[_0x400b0c(0x336)];return _0x8ce3c4&&_0x54c3d6[_0x400b0c(0x2a1)](_0x8ce3c4['toLowerCase'](),_0x54c3d6[_0x400b0c(0x1f9)]);}else _0x1246ff[_0x400b0c(0x259)](_0x54c3d6['QTSTn']),_0x3b0f99[_0x400b0c(0x27f)](0x1);}}else _0x156653=_0x1f8d62[_0x400b0c(0x2f7)](_0xb563a1[_0x38ac13[_0x400b0c(0x224)]]);}catch(_0x59439f){return _0x54c3d6[_0x400b0c(0x29a)](_0x54c3d6[_0x400b0c(0x2d8)],_0x54c3d6[_0x400b0c(0x2d8)])?(_0x54c3d6[_0x400b0c(0x29a)](_0x83f03b[_0x400b0c(0x224)],_0x9f05c1[0x0])&&(_0x3ee034[_0x400b0c(0x224)]=_0x64b717[0x0],this[_0x400b0c(0x2f8)]()),!![]):![];}return![];}async['isClusterPresent'](){const _0x439d5b=a3_0x291e68,_0x34744b={'dZLAN':function(_0x114cbc,_0x3d4956){return _0x114cbc+_0x3d4956;},'ahTbO':function(_0x2a7c43,_0x1c15d6){return _0x2a7c43===_0x1c15d6;},'raXnS':'Service\x20account\x20already\x20exists,\x20skipping','NCfFv':function(_0x301f76,_0x5e642b){return _0x301f76===_0x5e642b;},'aBjkU':_0x439d5b(0x2de),'GKJoy':_0x439d5b(0x20a),'pacGl':_0x439d5b(0x2ce),'dRepG':_0x439d5b(0x272),'UMRae':_0x439d5b(0x2fb),'JUuig':'utf-8','UxIZV':function(_0x3a3c2d,_0x547f0f){return _0x3a3c2d!==_0x547f0f;},'XEiff':_0x439d5b(0x26e),'kUfBY':_0x439d5b(0x299),'BErMI':_0x439d5b(0x2f9),'UDPjv':function(_0xbfe398,_0x2e592e){return _0xbfe398!==_0x2e592e;},'DixoO':_0x439d5b(0x23b),'CiGmH':function(_0x49059a,_0x2de310){return _0x49059a===_0x2de310;},'CxjyI':'pZPRE','tlRUS':_0x439d5b(0x1cb),'bnBxT':_0x439d5b(0x320),'owNEi':function(_0x3182fa,_0x307697){return _0x3182fa!==_0x307697;},'NMdMc':function(_0x1c9175,_0x211db2){return _0x1c9175===_0x211db2;},'spxSu':_0x439d5b(0x30b),'CGJss':function(_0x929b0f,_0x1e474c){return _0x929b0f>_0x1e474c;},'ctXIh':function(_0x4cc44e,_0x2b3d90){return _0x4cc44e!==_0x2b3d90;},'SvSHI':_0x439d5b(0x1fc),'PqtUs':'oSMBy','NvuCm':function(_0x2e69e7,_0xf1c519){return _0x2e69e7<_0xf1c519;},'Kqkkg':function(_0x53b33f,_0x3fa587){return _0x53b33f===_0x3fa587;},'fbdyN':_0x439d5b(0x1ee),'ahmjI':function(_0x471e5b,_0x1ede36){return _0x471e5b(_0x1ede36);},'nXRRj':_0x439d5b(0x23e),'verBE':function(_0x3eb177,_0x55ae2b){return _0x3eb177(_0x55ae2b);},'rXvjx':function(_0x266195,_0x13d0bb){return _0x266195(_0x13d0bb);},'TOvAu':function(_0x1fd829,_0x38f0b6){return _0x1fd829<=_0x38f0b6;},'nxFuU':function(_0x35cc8a,_0xe4ce03){return _0x35cc8a>_0xe4ce03;},'FNKjm':'OJztB','okPbf':'GONut','jVDgj':_0x439d5b(0x333),'biwAq':function(_0x2210a5){return _0x2210a5();},'mDjHW':function(_0x152a64,_0x12e6c6){return _0x152a64-_0x12e6c6;},'pSXRG':function(_0x18361a,_0x4250b0){return _0x18361a!==_0x4250b0;},'AvPUe':_0x439d5b(0x2d9),'TEudm':_0x439d5b(0x328),'aIeUZ':function(_0x37f99e,_0x280936){return _0x37f99e-_0x280936;}};this['configureIfNotConfigured']();let _0x50c80f=await fs[_0x439d5b(0x268)](path['join'](__dirname,'..',_0x34744b[_0x439d5b(0x289)],_0x34744b[_0x439d5b(0x261)],_0x34744b[_0x439d5b(0x2a5)]),_0x34744b[_0x439d5b(0x1e9)]);_0x50c80f=JSON[_0x439d5b(0x2dd)](_0x50c80f);let _0x247404=[global_registry[_0x439d5b(0x224)]];_0x34744b[_0x439d5b(0x1d2)](_0x50c80f[global_registry[_0x439d5b(0x224)]],undefined)&&(_0x34744b[_0x439d5b(0x1d2)](_0x34744b[_0x439d5b(0x23c)],_0x34744b[_0x439d5b(0x23c)])?this['setConfig']():_0x247404=_0x247404[_0x439d5b(0x2f7)](_0x50c80f[global_registry[_0x439d5b(0x224)]]));const _0x440f2d=[];for await(let _0x48b6e4 of _0x247404){if(_0x34744b[_0x439d5b(0x1d2)](_0x34744b[_0x439d5b(0x1f1)],_0x34744b[_0x439d5b(0x314)])){const _0xc9d928={};_0xc9d928[_0x439d5b(0x28b)]='projects/'+this[_0x439d5b(0x279)]+'/locations/'+_0x48b6e4;const _0x3b0bec=_0xc9d928,_0x55ba81=await this[_0x439d5b(0x306)][_0x439d5b(0x21f)](_0x3b0bec);for(const _0x5f5e00 of _0x55ba81[0x0][_0x439d5b(0x22d)]){_0x34744b['UDPjv'](_0x34744b[_0x439d5b(0x2a9)],_0x34744b[_0x439d5b(0x2a9)])?!this[_0x439d5b(0x280)]()&&this[_0x439d5b(0x2e0)]():_0x34744b['CiGmH'](_0x5f5e00[_0x439d5b(0x1d1)],this[_0x439d5b(0x2b5)])&&(_0x34744b[_0x439d5b(0x214)](_0x34744b[_0x439d5b(0x26f)],_0x34744b[_0x439d5b(0x210)])?_0x233b19['log']('['+_0x34744b[_0x439d5b(0x216)](_0x564f77,0x1)+']\x20'+_0xa9de54[_0x175712]):_0x440f2d['push'](_0x48b6e4));}}else _0x34744b['ahTbO'](_0x30e24a[_0x439d5b(0x1d1)],this[_0x439d5b(0x2b5)])&&_0x23121d[_0x439d5b(0x1e1)](_0x3274b3);}const _0x27fa5c=_0x440f2d['length'];if(_0x34744b[_0x439d5b(0x245)](_0x27fa5c,0x1)){if(_0x34744b[_0x439d5b(0x1d2)](_0x34744b[_0x439d5b(0x213)],_0x34744b[_0x439d5b(0x213)])){_0x9101ed[_0x439d5b(0x270)](_0x34744b[_0x439d5b(0x221)]);return;}else{if(_0x34744b[_0x439d5b(0x278)](global_registry[_0x439d5b(0x224)],_0x440f2d[0x0])){if(_0x34744b[_0x439d5b(0x1de)](_0x34744b[_0x439d5b(0x286)],_0x34744b['spxSu']))global_registry[_0x439d5b(0x224)]=_0x440f2d[0x0],this['updateClusterRegion']();else return![];}return!![];}}else{if(_0x34744b[_0x439d5b(0x29b)](_0x27fa5c,0x1)){if(_0x34744b[_0x439d5b(0x1e3)](_0x34744b[_0x439d5b(0x30f)],_0x34744b[_0x439d5b(0x235)])){console['log'](_0x439d5b(0x2a6)+this[_0x439d5b(0x2b5)]+'\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:');for(let _0x385f4f=0x0;_0x34744b[_0x439d5b(0x25e)](_0x385f4f,_0x27fa5c);_0x385f4f+=0x1){if(_0x34744b['Kqkkg'](_0x34744b[_0x439d5b(0x1cc)],_0x34744b['fbdyN']))console['log']('['+_0x34744b['dZLAN'](_0x385f4f,0x1)+']\x20'+_0x440f2d[_0x385f4f]);else return!![];}const _0x2c888b=await _0x34744b['ahmjI'](inputConfirmation,_0x34744b[_0x439d5b(0x24e)]),_0x308b22=_0x34744b[_0x439d5b(0x212)](Number,_0x2c888b);if(_0x34744b[_0x439d5b(0x1d0)](isNaN,_0x308b22)||_0x34744b[_0x439d5b(0x338)](_0x308b22,0x0)||_0x34744b[_0x439d5b(0x2bd)](_0x308b22,_0x27fa5c)){if(_0x34744b[_0x439d5b(0x1e3)](_0x34744b[_0x439d5b(0x264)],_0x34744b[_0x439d5b(0x2d7)]))console[_0x439d5b(0x259)](_0x34744b[_0x439d5b(0x20f)]),process[_0x439d5b(0x27f)](0x1);else return![];}_0x34744b['biwAq'](closeInput),logger[_0x439d5b(0x270)](_0x439d5b(0x2e2)+_0x440f2d[_0x34744b[_0x439d5b(0x2d0)](_0x308b22,0x1)]);if(_0x34744b[_0x439d5b(0x288)](global_registry[_0x439d5b(0x224)],_0x440f2d[_0x34744b[_0x439d5b(0x2d0)](_0x308b22,0x1)])){if(_0x34744b['NMdMc'](_0x34744b[_0x439d5b(0x1e2)],_0x34744b[_0x439d5b(0x2cb)])){const _0x9daecb=_0x58f224[0x0]?.[_0x439d5b(0x2e1)]?.[_0x439d5b(0x336)];return _0x9daecb&&_0x34744b[_0x439d5b(0x214)](_0x9daecb[_0x439d5b(0x301)](),_0x34744b[_0x439d5b(0x29d)]);}else global_registry['clusterRegion']=_0x440f2d[_0x34744b[_0x439d5b(0x227)](_0x308b22,0x1)],this[_0x439d5b(0x2f8)]();}return!![];}else{_0x4409d0['info'](_0x34744b['GKJoy']);throw _0x460a65;}}}return![];}async['getClusterInfo'](){const _0x58e588=a3_0x291e68,_0x189343=await this[_0x58e588(0x306)][_0x58e588(0x1d9)]({'name':'projects/'+this[_0x58e588(0x279)]+_0x58e588(0x21b)+global_registry['clusterRegion']+'/clusters/'+this[_0x58e588(0x2b5)]});return _0x189343;}async[a3_0x291e68(0x226)](){const _0x2eae7f=a3_0x291e68,_0x4b1ff5={};_0x4b1ff5[_0x2eae7f(0x1d6)]=_0x2eae7f(0x2ce),_0x4b1ff5[_0x2eae7f(0x211)]=_0x2eae7f(0x272),_0x4b1ff5['ceSbu']=_0x2eae7f(0x27b);const _0x49834a=_0x4b1ff5;cp['execSync'](_0x2eae7f(0x2be)),cp[_0x2eae7f(0x27c)](_0x2eae7f(0x281)+this[_0x2eae7f(0x206)]);const _0x17efdd=await this[_0x2eae7f(0x32c)](),_0x2d5add=_0x2eae7f(0x309)+this['projectId']+'_'+global_registry[_0x2eae7f(0x224)]+'_'+this[_0x2eae7f(0x2b5)];let _0x3af17b=await fs['readFileAsync'](path[_0x2eae7f(0x238)](__dirname,'..',_0x49834a[_0x2eae7f(0x1d6)],_0x49834a[_0x2eae7f(0x211)],_0x49834a[_0x2eae7f(0x308)]));return _0x3af17b=_0x3af17b[_0x2eae7f(0x257)](),_0x3af17b=_0x3af17b['replace'](/<CLUSTER_NAME>/g,_0x2d5add),_0x3af17b=_0x3af17b[_0x2eae7f(0x228)](/<CLUSTER_URL>/g,_0x2eae7f(0x1d4)+_0x17efdd[0x0][_0x2eae7f(0x295)]),_0x3af17b=_0x3af17b[_0x2eae7f(0x228)](/<CERTIFICATE_DATA>/g,_0x17efdd[0x0][_0x2eae7f(0x29e)][_0x2eae7f(0x1f2)]),_0x3af17b;}async[a3_0x291e68(0x1f6)](){const _0x46418a=a3_0x291e68,_0x17d97e={};_0x17d97e['OWaql']=_0x46418a(0x1c7),_0x17d97e[_0x46418a(0x2e5)]=_0x46418a(0x2e7),_0x17d97e[_0x46418a(0x1dc)]=function(_0xc5356b,_0x5ad755){return _0xc5356b===_0x5ad755;},_0x17d97e[_0x46418a(0x277)]=_0x46418a(0x283),_0x17d97e[_0x46418a(0x234)]=_0x46418a(0x1ce),_0x17d97e['GiTcE']=function(_0x36afde,_0x1f89a1){return _0x36afde===_0x1f89a1;},_0x17d97e['CxSfn']=function(_0x30cec1,_0x103011){return _0x30cec1!==_0x103011;},_0x17d97e['ONfEq']=_0x46418a(0x25b);const _0x34fb79=_0x17d97e,_0x2019fd={};_0x2019fd[_0x46418a(0x1e5)]=[_0x34fb79['EPMCr']],_0x2019fd['keyFile']=this[_0x46418a(0x206)];const _0x42c7ad=await google['auth'][_0x46418a(0x1e8)](_0x2019fd),_0x3119a0=await this[_0x46418a(0x282)][_0x46418a(0x337)][_0x46418a(0x1f5)][_0x46418a(0x2d5)]({'name':'projects/'+this[_0x46418a(0x279)],'auth':_0x42c7ad});for(const _0x56e5de of _0x3119a0?.['data']?.['accounts']){if(_0x34fb79[_0x46418a(0x1dc)](_0x34fb79[_0x46418a(0x277)],_0x34fb79['JJDXP']))return[!![],_0x257961];else{if(_0x34fb79['GiTcE'](_0x56e5de?.[_0x46418a(0x1d1)],_0x46418a(0x1e7)+this[_0x46418a(0x279)]+_0x46418a(0x217)+this[_0x46418a(0x2fe)]+'@'+this[_0x46418a(0x279)]+_0x46418a(0x274))){if(_0x34fb79[_0x46418a(0x31e)](_0x34fb79['ONfEq'],_0x34fb79[_0x46418a(0x2ac)]))_0x13d2c9[_0x46418a(0x270)](_0x34fb79['OWaql']);else return!![];}}}return![];}async[a3_0x291e68(0x2b6)](){const _0x22bfeb=a3_0x291e68,_0x2bc321={};_0x2bc321[_0x22bfeb(0x335)]=function(_0x490f20,_0x546f3f){return _0x490f20===_0x546f3f;},_0x2bc321['jIZLC']=_0x22bfeb(0x26d),_0x2bc321[_0x22bfeb(0x2f6)]=_0x22bfeb(0x271),_0x2bc321[_0x22bfeb(0x33c)]=_0x22bfeb(0x2a2),_0x2bc321[_0x22bfeb(0x2e3)]=_0x22bfeb(0x2e7),_0x2bc321[_0x22bfeb(0x2c0)]=_0x22bfeb(0x31a),_0x2bc321[_0x22bfeb(0x1eb)]=_0x22bfeb(0x307),_0x2bc321['XyqUG']=_0x22bfeb(0x21e),_0x2bc321[_0x22bfeb(0x20c)]=_0x22bfeb(0x2b2),_0x2bc321[_0x22bfeb(0x219)]=_0x22bfeb(0x2c4),_0x2bc321[_0x22bfeb(0x296)]=_0x22bfeb(0x241),_0x2bc321[_0x22bfeb(0x252)]=_0x22bfeb(0x30e),_0x2bc321[_0x22bfeb(0x229)]='storage.buckets.getObjectInsights',_0x2bc321[_0x22bfeb(0x1e6)]='storage.buckets.list',_0x2bc321['haWwL']=_0x22bfeb(0x220),_0x2bc321[_0x22bfeb(0x232)]=_0x22bfeb(0x32f),_0x2bc321['mxEdM']=_0x22bfeb(0x2c6),_0x2bc321[_0x22bfeb(0x32a)]=_0x22bfeb(0x293),_0x2bc321[_0x22bfeb(0x23d)]=_0x22bfeb(0x2eb),_0x2bc321[_0x22bfeb(0x297)]=_0x22bfeb(0x313),_0x2bc321[_0x22bfeb(0x31d)]=_0x22bfeb(0x1fe),_0x2bc321[_0x22bfeb(0x2d2)]=_0x22bfeb(0x2c3),_0x2bc321[_0x22bfeb(0x1d3)]=_0x22bfeb(0x2ea),_0x2bc321[_0x22bfeb(0x25f)]=_0x22bfeb(0x305),_0x2bc321['OPmhg']=_0x22bfeb(0x251),_0x2bc321[_0x22bfeb(0x1d7)]=_0x22bfeb(0x31b),_0x2bc321[_0x22bfeb(0x254)]=_0x22bfeb(0x32d),_0x2bc321[_0x22bfeb(0x26c)]=_0x22bfeb(0x339),_0x2bc321['ASgsB']=_0x22bfeb(0x1fa),_0x2bc321[_0x22bfeb(0x209)]=_0x22bfeb(0x326),_0x2bc321[_0x22bfeb(0x1da)]='Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation';const _0x301c31=_0x2bc321,_0x20e400=await this[_0x22bfeb(0x1f6)]();if(_0x20e400){if(_0x301c31[_0x22bfeb(0x335)](_0x301c31[_0x22bfeb(0x1e0)],_0x301c31[_0x22bfeb(0x1e0)])){logger[_0x22bfeb(0x270)](_0x301c31[_0x22bfeb(0x2f6)]);return;}else{const _0xb0c42b=this[_0x22bfeb(0x206)],_0x4f733e={};_0x4f733e['keyFile']=_0xb0c42b,this[_0x22bfeb(0x306)]=new _0x4f568c['v1'][(_0x22bfeb(0x25d))](_0x4f733e);const _0x1a3c37={};_0x1a3c37[_0x22bfeb(0x27d)]=_0xb0c42b,this['networkClient']=new _0xdd68f6['v1'][(_0x22bfeb(0x25a))](_0x1a3c37);const _0x2bdd30={};_0x2bdd30['keyFile']=_0xb0c42b,this[_0x22bfeb(0x1e4)]=new _0x3c703b(_0x2bdd30),this[_0x22bfeb(0x282)]=_0x4a33e0['iam']('v1'),_0x23f56a[_0x22bfeb(0x285)]=!![];}}logger[_0x22bfeb(0x270)](_0x301c31['aRjbq']);const _0x1031fd={};_0x1031fd[_0x22bfeb(0x1e5)]=[_0x301c31[_0x22bfeb(0x2e3)]],_0x1031fd['keyFile']=this['credentialsPath'];const _0x3dd723=await google[_0x22bfeb(0x321)][_0x22bfeb(0x1e8)](_0x1031fd),_0x5032fe={};_0x5032fe[_0x22bfeb(0x324)]=[_0x301c31[_0x22bfeb(0x2c0)],_0x301c31[_0x22bfeb(0x1eb)],_0x301c31[_0x22bfeb(0x24a)],_0x301c31[_0x22bfeb(0x20c)],_0x301c31[_0x22bfeb(0x219)],_0x301c31[_0x22bfeb(0x296)],_0x301c31[_0x22bfeb(0x252)],_0x301c31[_0x22bfeb(0x229)],_0x301c31[_0x22bfeb(0x1e6)],_0x301c31[_0x22bfeb(0x32b)],_0x301c31[_0x22bfeb(0x232)],_0x301c31['mxEdM'],_0x301c31[_0x22bfeb(0x32a)],_0x301c31['KMmRe'],_0x301c31[_0x22bfeb(0x297)],_0x301c31[_0x22bfeb(0x31d)],_0x301c31[_0x22bfeb(0x2d2)],_0x301c31['seJCB'],_0x301c31[_0x22bfeb(0x25f)],_0x301c31[_0x22bfeb(0x2bf)],_0x301c31[_0x22bfeb(0x1d7)],_0x301c31[_0x22bfeb(0x254)],_0x301c31['LagsV'],_0x301c31[_0x22bfeb(0x2fc)]],_0x5032fe['title']=_0x301c31[_0x22bfeb(0x209)],await this['iamClient'][_0x22bfeb(0x294)]['roles'][_0x22bfeb(0x230)]({'parent':_0x22bfeb(0x1e7)+this[_0x22bfeb(0x279)],'requestBody':{'role':_0x5032fe,'roleId':this[_0x22bfeb(0x2d6)]},'auth':_0x3dd723});const _0x37961a={};_0x37961a[_0x22bfeb(0x1d1)]='projects/'+this['projectId'],_0x37961a[_0x22bfeb(0x2e8)]={},_0x37961a[_0x22bfeb(0x321)]=_0x3dd723,_0x37961a[_0x22bfeb(0x2e8)][_0x22bfeb(0x1db)]=this[_0x22bfeb(0x2fe)];const _0x3c6599=_0x37961a;await this[_0x22bfeb(0x282)][_0x22bfeb(0x337)]['serviceAccounts'][_0x22bfeb(0x230)](_0x3c6599);let _0x5ac9dc=await this[_0x22bfeb(0x1e4)][_0x22bfeb(0x2c1)]({'resource':_0x22bfeb(0x1e7)+this[_0x22bfeb(0x279)]});_0x5ac9dc=_0x5ac9dc[0x0][_0x22bfeb(0x319)];const _0x102dad={};_0x102dad['role']=_0x22bfeb(0x1e7)+this['projectId']+_0x22bfeb(0x1f0)+this[_0x22bfeb(0x2d6)],_0x102dad[_0x22bfeb(0x222)]=[_0x22bfeb(0x2b1)+this[_0x22bfeb(0x2fe)]+'@'+this[_0x22bfeb(0x279)]+_0x22bfeb(0x274)],_0x5ac9dc[_0x22bfeb(0x1e1)](_0x102dad);const _0x23c846={};_0x23c846[_0x22bfeb(0x319)]=_0x5ac9dc,await this[_0x22bfeb(0x1e4)][_0x22bfeb(0x269)]({'resource':_0x22bfeb(0x1e7)+this[_0x22bfeb(0x279)],'policy':_0x23c846}),logger['info'](_0x301c31[_0x22bfeb(0x1da)]);}async[a3_0x291e68(0x240)](_0x18d815='default',_0x1a882a=[a3_0x291e68(0x2cf)]){const _0x447dca=a3_0x291e68,_0x2494d6={};_0x2494d6[_0x447dca(0x2f5)]=_0x447dca(0x22a),_0x2494d6[_0x447dca(0x2df)]=_0x447dca(0x2e6),_0x2494d6[_0x447dca(0x28a)]=_0x447dca(0x244);const _0x2395d6=_0x2494d6,_0x54bec4=_0x2395d6[_0x447dca(0x2f5)][_0x447dca(0x33d)]('|');let _0x82a354=0x0;while(!![]){switch(_0x54bec4[_0x82a354++]){case'0':await this['setupServiceAccount']();continue;case'1':return!![];case'2':logger[_0x447dca(0x270)](_0x2395d6[_0x447dca(0x2df)]);continue;case'3':await this['createCluster'](_0x18d815,_0x1a882a);continue;case'4':await this[_0x447dca(0x2cc)]();continue;case'5':const _0x3ef35f={};_0x3ef35f[_0x447dca(0x291)]=WS_EVENTS[_0x447dca(0x2ad)],_0x3ef35f[_0x447dca(0x26a)]=_0x2395d6[_0x447dca(0x28a)],this[_0x447dca(0x266)][_0x447dca(0x284)](this[_0x447dca(0x317)],_0x3ef35f);continue;}break;}}async[a3_0x291e68(0x1f4)](_0x8cd1c1=a3_0x291e68(0x2cf),_0x3ea40c=[a3_0x291e68(0x2cf)]){const _0x78ca9f=a3_0x291e68,_0x28d9d3={};_0x28d9d3['MqOlx']=function(_0x348535,_0x4689ec){return _0x348535===_0x4689ec;},_0x28d9d3[_0x78ca9f(0x2f0)]=function(_0x5bb169,_0x509ae9){return _0x5bb169!==_0x509ae9;},_0x28d9d3[_0x78ca9f(0x31f)]=_0x78ca9f(0x218),_0x28d9d3[_0x78ca9f(0x2a3)]=_0x78ca9f(0x2ed),_0x28d9d3[_0x78ca9f(0x246)]=_0x78ca9f(0x2ce),_0x28d9d3[_0x78ca9f(0x1c6)]='gcpresources',_0x28d9d3['ejnQZ']='gkecluster.json',_0x28d9d3[_0x78ca9f(0x201)]=_0x78ca9f(0x243),_0x28d9d3[_0x78ca9f(0x2b4)]=_0x78ca9f(0x2fb),_0x28d9d3[_0x78ca9f(0x215)]=function(_0x134d59,_0x179283){return _0x134d59*_0x179283;},_0x28d9d3[_0x78ca9f(0x2c2)]=function(_0x510910,_0x20995c){return _0x510910*_0x20995c;},_0x28d9d3['NkaqN']=function(_0x5ac20f,_0x5b50fd){return _0x5ac20f!==_0x5b50fd;},_0x28d9d3['YPKHM']='FLyoZ',_0x28d9d3[_0x78ca9f(0x24c)]=_0x78ca9f(0x22e),_0x28d9d3[_0x78ca9f(0x1d5)]=_0x78ca9f(0x331),_0x28d9d3['DLIej']=function(_0x1c027a,_0x556921){return _0x1c027a===_0x556921;},_0x28d9d3[_0x78ca9f(0x1cd)]=_0x78ca9f(0x2ca),_0x28d9d3[_0x78ca9f(0x20b)]='OfSRw',_0x28d9d3['OkbYC']='Cluster\x20creation\x20failed';const _0x971cd9=_0x28d9d3;try{if(_0x971cd9[_0x78ca9f(0x2f0)](_0x971cd9[_0x78ca9f(0x31f)],_0x971cd9[_0x78ca9f(0x31f)]))_0x78950f['execSync'](_0x78ca9f(0x2c8)+this[_0x78ca9f(0x2b5)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+_0x99114d['clusterRegion']+_0x78ca9f(0x292));else{logger[_0x78ca9f(0x270)](_0x971cd9[_0x78ca9f(0x2a3)]);let _0x5e771d=await fs[_0x78ca9f(0x268)](path[_0x78ca9f(0x238)](__dirname,'..',_0x971cd9[_0x78ca9f(0x246)],_0x971cd9[_0x78ca9f(0x1c6)],_0x971cd9[_0x78ca9f(0x207)]),_0x971cd9[_0x78ca9f(0x201)]);_0x5e771d=JSON['parse'](_0x5e771d);let _0x4604d9=await fs['readFileAsync'](path['join'](__dirname,'..',_0x971cd9[_0x78ca9f(0x246)],_0x971cd9[_0x78ca9f(0x1c6)],_0x971cd9[_0x78ca9f(0x2b4)]),_0x971cd9[_0x78ca9f(0x201)]);_0x4604d9=JSON[_0x78ca9f(0x2dd)](_0x4604d9),_0x5e771d['name']=this[_0x78ca9f(0x2b5)],_0x5e771d[_0x78ca9f(0x258)][0x0][_0x78ca9f(0x2ae)][_0x78ca9f(0x1fb)]=global_registry[_0x78ca9f(0x1fd)],_0x5e771d[_0x78ca9f(0x258)][0x1]['config']['machineType']=global_registry['instanceType'],_0x5e771d['nodePools'][0x0][_0x78ca9f(0x2ae)][_0x78ca9f(0x242)]=this[_0x78ca9f(0x2fe)]+'@'+this['projectId']+_0x78ca9f(0x274),_0x5e771d[_0x78ca9f(0x258)][0x1][_0x78ca9f(0x2ae)][_0x78ca9f(0x242)]=this[_0x78ca9f(0x2fe)]+'@'+this['projectId']+_0x78ca9f(0x274),_0x5e771d[_0x78ca9f(0x258)][0x0][_0x78ca9f(0x202)][_0x78ca9f(0x2db)]=global_registry[_0x78ca9f(0x29f)],_0x5e771d[_0x78ca9f(0x258)][0x1][_0x78ca9f(0x202)][_0x78ca9f(0x2db)]=0x0,_0x5e771d[_0x78ca9f(0x258)][0x0][_0x78ca9f(0x202)][_0x78ca9f(0x256)]=global_registry[_0x78ca9f(0x1dd)],_0x5e771d['nodePools'][0x1][_0x78ca9f(0x202)][_0x78ca9f(0x256)]=global_registry[_0x78ca9f(0x1dd)],_0x5e771d['location']=global_registry[_0x78ca9f(0x224)],_0x5e771d['locations']=[_0x4604d9[global_registry[_0x78ca9f(0x224)]][0x0]],_0x5e771d[_0x78ca9f(0x204)]='projects/'+this[_0x78ca9f(0x279)]+_0x78ca9f(0x2b0)+_0x8cd1c1,_0x5e771d[_0x78ca9f(0x255)]='projects/'+this[_0x78ca9f(0x279)]+_0x78ca9f(0x2a4)+global_registry['clusterRegion']+_0x78ca9f(0x2c5)+_0x3ea40c[0x0];const _0x1e238b=await this['containerClient']['createCluster']({'cluster':_0x5e771d,'parent':_0x78ca9f(0x1e7)+this[_0x78ca9f(0x279)]+_0x78ca9f(0x21b)+global_registry[_0x78ca9f(0x224)]});await this[_0x78ca9f(0x266)]['delay'](_0x971cd9['wutdQ'](_0x971cd9[_0x78ca9f(0x2c2)](0x7,0x3c),0x3e8));}}catch(_0x10d88c){if(_0x971cd9[_0x78ca9f(0x2c7)](_0x971cd9[_0x78ca9f(0x2d4)],_0x971cd9[_0x78ca9f(0x2d4)]))this['sendGCPInfoToHST'](this[_0x78ca9f(0x317)]);else{const _0x3fe280=await this[_0x78ca9f(0x233)]();if(_0x3fe280){if(_0x971cd9[_0x78ca9f(0x2f0)](_0x971cd9['zMeUJ'],_0x971cd9[_0x78ca9f(0x24c)]))return!![];else logger[_0x78ca9f(0x270)](_0x971cd9['hNmdu'],_0x10d88c[_0x78ca9f(0x30a)]),await this[_0x78ca9f(0x310)]();}else{if(_0x971cd9[_0x78ca9f(0x1c8)](_0x971cd9['BrTqY'],_0x971cd9[_0x78ca9f(0x20b)])){const _0x3fa222=_0x78ca9f(0x236)+this[_0x78ca9f(0x279)]+_0x78ca9f(0x2a4)+_0x31c1b2[_0x78ca9f(0x224)]+'/subnetworks/'+_0x520f9b[0x0];if(_0x971cd9[_0x78ca9f(0x33e)](_0x3fa222,_0x5043cd))return[!![],_0x223837];}else logger[_0x78ca9f(0x270)](_0x971cd9[_0x78ca9f(0x260)]);}throw _0x10d88c;}}}async['updateWindowsNodeGroup'](){const _0x443a84=a3_0x291e68;cp['execSync'](_0x443a84(0x2c8)+this[_0x443a84(0x2b5)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+global_registry[_0x443a84(0x224)]+_0x443a84(0x292));}async[a3_0x291e68(0x310)](_0x178735,_0x3a7c86){const _0x1ab663=a3_0x291e68,_0x483657={'heJYU':function(_0x19318c,_0x44c0bd){return _0x19318c===_0x44c0bd;},'OzbIc':function(_0x67a327,_0x1af997){return _0x67a327!==_0x1af997;},'jHYZD':_0x1ab663(0x312),'MbjBg':function(_0x45e8e8,_0x2c07b8){return _0x45e8e8(_0x2c07b8);},'hkskE':function(_0xe04270,_0x4c031e){return _0xe04270(_0x4c031e);},'Bjmgx':_0x1ab663(0x315),'ynDnj':function(_0x22e72d,_0xcea3c5){return _0x22e72d===_0xcea3c5;},'XFWhf':'DONE','TpuMk':'Hghog','uSdKs':_0x1ab663(0x2c9),'Dzfbs':_0x1ab663(0x1cf),'aJLDG':_0x1ab663(0x20a)};try{if(_0x483657[_0x1ab663(0x332)](_0x483657[_0x1ab663(0x329)],_0x483657[_0x1ab663(0x329)]))return _0x483657[_0x1ab663(0x28f)](_0x53a5ba['gcpConfigSet'],!![]);else{await _0x483657[_0x1ab663(0x1f7)](deleteAgent,_0x178735),await _0x483657[_0x1ab663(0x33a)](deleteRoutingDeps,_0x178735),logger[_0x1ab663(0x270)]('Deleting\x20the\x20cluster\x20'+this[_0x1ab663(0x2b5)]);const _0x59f0a9=await this['containerClient']['deleteCluster']({'name':'projects/'+this[_0x1ab663(0x279)]+'/locations/'+global_registry[_0x1ab663(0x224)]+_0x1ab663(0x275)+this[_0x1ab663(0x2b5)]});if(_0x483657['heJYU'](_0x59f0a9[0x0]?.['status'],_0x483657[_0x1ab663(0x287)])||_0x483657[_0x1ab663(0x32e)](_0x59f0a9[0x0]?.[_0x1ab663(0x28e)],_0x483657[_0x1ab663(0x2ff)])){if(_0x483657[_0x1ab663(0x28f)](_0x483657[_0x1ab663(0x322)],_0x483657[_0x1ab663(0x322)]))return!![];else _0x428a7b[_0x1ab663(0x224)]=_0x22b01a[0x0],this['updateClusterRegion']();}logger[_0x1ab663(0x270)]('Cluster\x20deletion\x20completed');}}catch(_0x83eb22){if(_0x483657['OzbIc'](_0x483657[_0x1ab663(0x2d3)],_0x483657[_0x1ab663(0x273)])){logger['info'](_0x483657['aJLDG']);throw _0x83eb22;}else return!![];}}async['isVPCPresent'](_0x25467d){const _0x3a4be9=a3_0x291e68,_0x4e7e22={};_0x4e7e22['ElvRZ']=function(_0x5ae286,_0x397a94){return _0x5ae286-_0x397a94;},_0x4e7e22[_0x3a4be9(0x327)]=function(_0xe786fb,_0x4251cb){return _0xe786fb===_0x4251cb;},_0x4e7e22['XLfYQ']=_0x3a4be9(0x290),_0x4e7e22[_0x3a4be9(0x200)]=function(_0x1bb4e7,_0x125cc7){return _0x1bb4e7>_0x125cc7;},_0x4e7e22['SkQKv']=function(_0x10c2ae,_0x4f6699){return _0x10c2ae===_0x4f6699;},_0x4e7e22['AAyHI']=function(_0x5df9d2,_0xeabed3){return _0x5df9d2===_0xeabed3;},_0x4e7e22[_0x3a4be9(0x2af)]=_0x3a4be9(0x2a8),_0x4e7e22[_0x3a4be9(0x2aa)]=_0x3a4be9(0x1ec),_0x4e7e22[_0x3a4be9(0x1f8)]=function(_0x1b56a0,_0x9695e4){return _0x1b56a0!==_0x9695e4;},_0x4e7e22['lckKL']='PeYbS';const _0x27d5c6=_0x4e7e22;try{if(_0x27d5c6['pJsNo'](_0x27d5c6['XLfYQ'],_0x27d5c6[_0x3a4be9(0x267)])){const _0x5c21c6={};_0x5c21c6[_0x3a4be9(0x1ea)]=projectId,_0x5c21c6[_0x3a4be9(0x204)]=_0x25467d;const _0x28ac61=await networkClient['get'](_0x5c21c6);if(_0x27d5c6['MRvub'](_0x28ac61[_0x3a4be9(0x1c9)],0x0)&&_0x27d5c6[_0x3a4be9(0x25c)](_0x28ac61[0x0]['name'],_0x25467d)){if(_0x27d5c6[_0x3a4be9(0x22c)](_0x27d5c6[_0x3a4be9(0x2af)],_0x27d5c6[_0x3a4be9(0x2aa)]))_0x594121[_0x3a4be9(0x224)]=_0x3a33c0[_0x27d5c6[_0x3a4be9(0x20e)](_0x5c174e,0x1)],this[_0x3a4be9(0x2f8)]();else return!![];}}else _0x58f646[_0x3a4be9(0x1e1)](_0x3b6fca);}catch(_0x39ef20){if(_0x27d5c6[_0x3a4be9(0x1f8)](_0x27d5c6[_0x3a4be9(0x24f)],_0x27d5c6[_0x3a4be9(0x24f)])){if(_0x27d5c6[_0x3a4be9(0x327)](_0x5a1d03?.[_0x3a4be9(0x1d1)],_0x3a4be9(0x1e7)+this[_0x3a4be9(0x279)]+'/serviceAccounts/'+this[_0x3a4be9(0x2fe)]+'@'+this[_0x3a4be9(0x279)]+_0x3a4be9(0x274)))return!![];}else return![];}return![];}async[a3_0x291e68(0x33b)](_0x464acc,_0x1abbb0){const _0x561267=a3_0x291e68,_0x2c2740={};_0x2c2740[_0x561267(0x1ca)]=function(_0x33c20a,_0x3a6474){return _0x33c20a!==_0x3a6474;},_0x2c2740[_0x561267(0x24d)]=_0x561267(0x1ff),_0x2c2740['aQvlK']=_0x561267(0x2ee),_0x2c2740['ItvAV']=function(_0xe825be,_0x38ba81){return _0xe825be===_0x38ba81;},_0x2c2740[_0x561267(0x2b7)]=function(_0x4179d7,_0x157a0d){return _0x4179d7!==_0x157a0d;},_0x2c2740[_0x561267(0x2f1)]='NTYYe';const _0x52884d=_0x2c2740;try{const _0x342cfb={};_0x342cfb[_0x561267(0x1ea)]=projectId,_0x342cfb[_0x561267(0x204)]=_0x1abbb0;const _0x1a0171=await networkClient[_0x561267(0x2fd)](_0x342cfb);for(const _0x5aa6a2 of _0x1a0171[0x0]['subnetworks']){if(_0x52884d[_0x561267(0x1ca)](_0x52884d['zTMhy'],_0x52884d['aQvlK'])){const _0x444dd1=_0x561267(0x236)+this[_0x561267(0x279)]+_0x561267(0x2a4)+global_registry[_0x561267(0x224)]+_0x561267(0x2c5)+_0x464acc[0x0];if(_0x52884d['ItvAV'](_0x444dd1,_0x5aa6a2)){if(_0x52884d[_0x561267(0x2b7)](_0x52884d['nXUjH'],_0x52884d['nXUjH']))_0x3c8a91[_0x561267(0x2d1)][_0x561267(0x1e1)](_0x33f44d);else return[!![],_0x464acc];}}else return _0x366529[_0x561267(0x259)](_0x561267(0x29c)+_0x4b45c6+_0x561267(0x265)+_0x11c269),[![],[]];}}catch(_0x13abf7){return logger[_0x561267(0x259)](_0x561267(0x29c)+_0x464acc+_0x561267(0x265)+_0x13abf7),[![],[]];}return[![],[]];}async[a3_0x291e68(0x239)](){const _0x2a61f2=a3_0x291e68,_0x1d2ca7=await this[_0x2a61f2(0x330)][_0x2a61f2(0x2d5)]({'project':this['projectId']}),_0x574eaa={};_0x574eaa[_0x2a61f2(0x250)]=global_registry['bstackUsername'],_0x574eaa[_0x2a61f2(0x302)]=global_registry[_0x2a61f2(0x28d)],_0x574eaa[_0x2a61f2(0x300)]=GCP,_0x574eaa[_0x2a61f2(0x2d1)]=[];const _0xacb3cb=_0x574eaa;for(const _0x56a444 of _0x1d2ca7){_0xacb3cb[_0x2a61f2(0x2d1)][_0x2a61f2(0x1e1)](_0x56a444);}const _0xb5d8d9={};_0xb5d8d9[_0x2a61f2(0x291)]=WS_EVENTS[_0x2a61f2(0x20d)],_0xb5d8d9[_0x2a61f2(0x26a)]=_0xacb3cb,this[_0x2a61f2(0x266)]['sendEventToBackend'](this[_0x2a61f2(0x317)],_0xb5d8d9);}async[a3_0x291e68(0x2f8)](){const _0xd8f8ea=a3_0x291e68,_0x3793f8={'FWYvl':function(_0x1a9355,_0x1dd06e,_0x1e1659){return _0x1a9355(_0x1dd06e,_0x1e1659);},'NrsvD':_0xd8f8ea(0x2fa),'OoYib':_0xd8f8ea(0x2f3)},_0x4ec694='https://'+AG_API_URL+_0xd8f8ea(0x2b9),_0xea1fd2={};_0xea1fd2[_0xd8f8ea(0x24b)]=global_registry[_0xd8f8ea(0x208)];const _0x2c6ab2={};_0x2c6ab2[_0xd8f8ea(0x27e)]=global_registry['clusterRegion'];const _0xaccd8a={'searchParams':_0xea1fd2,'json':_0x2c6ab2,'headers':_0x3793f8['FWYvl'](getAuthHeader,global_registry[_0xd8f8ea(0x1d8)],global_registry[_0xd8f8ea(0x28d)]),'method':_0x3793f8['NrsvD'],'responseType':_0x3793f8[_0xd8f8ea(0x26b)],'throwHttpErrors':![]},_0x429292=await _0x3793f8['FWYvl'](got,_0x4ec694,_0xaccd8a);}}const a3_0x686a54={};function a3_0x1104(_0x53e028,_0x2de368){const _0x4fea4e=a3_0x4fea();return a3_0x1104=function(_0x11048d,_0x3a89c0){_0x11048d=_0x11048d-0x1c6;let _0x40471d=_0x4fea4e[_0x11048d];return _0x40471d;},a3_0x1104(_0x53e028,_0x2de368);}a3_0x686a54[a3_0x291e68(0x2ec)]=GoogleCloudProvider,module['exports']=a3_0x686a54;
|
|
1
|
+
const a3_0x146af1=a3_0x20ed;(function(_0x117e56,_0x2f32b3){const _0x381830=a3_0x20ed,_0x5bc49c=_0x117e56();while(!![]){try{const _0x2e0937=parseInt(_0x381830(0xa1))/0x1+parseInt(_0x381830(0x114))/0x2+-parseInt(_0x381830(0x180))/0x3+parseInt(_0x381830(0xb8))/0x4+parseInt(_0x381830(0x200))/0x5+-parseInt(_0x381830(0x1a9))/0x6+-parseInt(_0x381830(0x95))/0x7;if(_0x2e0937===_0x2f32b3)break;else _0x5bc49c['push'](_0x5bc49c['shift']());}catch(_0xfc535b){_0x5bc49c['push'](_0x5bc49c['shift']());}}}(a3_0x4ac8,0x31598));const fs=require('fs'),path=require(a3_0x146af1(0x172)),got=require(a3_0x146af1(0x13f)),util=require('util'),cp=require('child_process'),{google}=require(a3_0x146af1(0x14a)),compute=require(a3_0x146af1(0x195)),container=require('@google-cloud/container'),{ProjectsClient}=require(a3_0x146af1(0xb6))['v3'],{logger}=require(a3_0x146af1(0x1dc)),{CloudProvider}=require(a3_0x146af1(0x187)),{getDirForConfig,getAuthHeader}=require(a3_0x146af1(0x184)),{deleteRoutingDeps,deleteAgent}=require(a3_0x146af1(0x1d7)),{inputConfirmation,closeInput}=require('../utils/userInput'),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x146af1(0x1ce));class GoogleCloudProvider extends CloudProvider{constructor(_0x1b39e0,_0x57755b,_0x177e5a,_0x350297){const _0x5bf067=a3_0x146af1,_0x236be9={};_0x236be9[_0x5bf067(0xf8)]=_0x5bf067(0x171),_0x236be9[_0x5bf067(0x1af)]='turboscale_custom_role',_0x236be9[_0x5bf067(0x17a)]=_0x5bf067(0x165);const _0x28d2ea=_0x236be9,_0x519bf4=_0x28d2ea[_0x5bf067(0xf8)]['split']('|');let _0xc08e64=0x0;while(!![]){switch(_0x519bf4[_0xc08e64++]){case'0':this[_0x5bf067(0xf5)]=null;continue;case'1':this[_0x5bf067(0xd4)]=null;continue;case'2':this[_0x5bf067(0x123)]=null;continue;case'3':super(GCP,_0x1b39e0,_0x57755b,_0x177e5a,_0x350297);continue;case'4':this[_0x5bf067(0xbd)]=null;continue;case'5':this['customRoleName']=_0x28d2ea[_0x5bf067(0x1af)];continue;case'6':this[_0x5bf067(0x96)]=null;continue;case'7':this[_0x5bf067(0x1f5)]=null;continue;case'8':this['serviceAccountName']=_0x28d2ea[_0x5bf067(0x17a)];continue;}break;}}['configureIfNotConfigured'](){const _0x3dbd19=a3_0x146af1,_0x18b302={};_0x18b302[_0x3dbd19(0x13c)]=function(_0x431d56,_0x56f796){return _0x431d56!==_0x56f796;},_0x18b302[_0x3dbd19(0xa3)]=_0x3dbd19(0xf4),_0x18b302[_0x3dbd19(0x167)]=_0x3dbd19(0x98);const _0x3fa646=_0x18b302;if(!this[_0x3dbd19(0x1fb)]()){if(_0x3fa646[_0x3dbd19(0x13c)](_0x3fa646[_0x3dbd19(0xa3)],_0x3fa646['ANiuf']))this[_0x3dbd19(0x163)]();else return!![];}}async['sendResourceDataToHST'](){const _0x588ec1=a3_0x146af1;this[_0x588ec1(0x174)](this[_0x588ec1(0x1e0)]);}[a3_0x146af1(0x1fb)](){const _0x4c21ed=a3_0x146af1,_0x42d34c={};_0x42d34c[_0x4c21ed(0x103)]=function(_0x5365ff,_0x559267){return _0x5365ff===_0x559267;};const _0x11e0d9=_0x42d34c;return _0x11e0d9[_0x4c21ed(0x103)](global_registry[_0x4c21ed(0xaf)],!![]);}[a3_0x146af1(0x163)](){const _0x10e8b1=a3_0x146af1,_0x337bde=this[_0x10e8b1(0xbd)],_0x4e8226={};_0x4e8226['keyFile']=_0x337bde,this['containerClient']=new container['v1'][(_0x10e8b1(0xae))](_0x4e8226);const _0x320d9d={};_0x320d9d[_0x10e8b1(0x100)]=_0x337bde,this[_0x10e8b1(0x96)]=new compute['v1'][(_0x10e8b1(0xe6))](_0x320d9d);const _0x2bb461={};_0x2bb461[_0x10e8b1(0x100)]=_0x337bde,this['resourcemanagerClient']=new ProjectsClient(_0x2bb461),this[_0x10e8b1(0xd4)]=google['iam']('v1'),global_registry[_0x10e8b1(0xaf)]=!![];}async['getUserInput'](_0x5065bf,_0x43be23){const _0x4d1454=a3_0x146af1,_0x5ef3c7={'RYXVr':function(_0x42eec8,_0x39e006){return _0x42eec8(_0x39e006);},'qvcjI':function(_0x211fad){return _0x211fad();},'UMcfq':_0x4d1454(0xe4)},_0x29f90=await _0x5ef3c7[_0x4d1454(0x18a)](_0x5065bf,_0x4d1454(0x147));let _0xd0531b=await fs[_0x4d1454(0x189)](_0x29f90);_0xd0531b=_0xd0531b['toString']();const _0x50e3b9=_0x5ef3c7[_0x4d1454(0x198)](getDirForConfig),_0x141b73=path[_0x4d1454(0x1bb)](_0x50e3b9,_0x5ef3c7[_0x4d1454(0xc1)]);fs[_0x4d1454(0x146)](_0x141b73,_0xd0531b),this[_0x4d1454(0xbd)]=_0x141b73;const _0x270021={};return _0x270021[_0x4d1454(0x100)]=_0x141b73,_0x43be23[_0x4d1454(0x16c)][GCP]=_0x270021,_0xd0531b=JSON[_0x4d1454(0xdf)](_0xd0531b),this[_0x4d1454(0xf5)]=_0xd0531b[_0x4d1454(0xdb)],_0x43be23;}async[a3_0x146af1(0x143)](_0x273435){const _0x5395cc=a3_0x146af1;this[_0x5395cc(0xbd)]=_0x273435[this[_0x5395cc(0x20a)]][_0x5395cc(0x100)];let _0x5a5e3a=await fs[_0x5395cc(0x189)](this['credentialsPath']);_0x5a5e3a=JSON[_0x5395cc(0xdf)](_0x5a5e3a),this[_0x5395cc(0xf5)]=_0x5a5e3a[_0x5395cc(0xdb)];}[a3_0x146af1(0x1bc)](_0x488dc1){const _0x9d7e6d=a3_0x146af1;return _0x488dc1[_0x9d7e6d(0x14b)][_0x9d7e6d(0x18c)]['ingress'][0x0]['ip'];}async[a3_0x146af1(0x199)](){const _0x408130=a3_0x146af1,_0x14ff90={};_0x14ff90[_0x408130(0x13a)]=function(_0x2714da,_0x387517){return _0x2714da+_0x387517;},_0x14ff90[_0x408130(0x186)]=function(_0x2b6356,_0x3b6b56){return _0x2b6356!==_0x3b6b56;},_0x14ff90[_0x408130(0x14c)]=_0x408130(0x1da),_0x14ff90[_0x408130(0x1d4)]=function(_0x5dbf10,_0x5c433e){return _0x5dbf10===_0x5c433e;},_0x14ff90[_0x408130(0x1c2)]=_0x408130(0x125),_0x14ff90[_0x408130(0x1e4)]=_0x408130(0xa6),_0x14ff90[_0x408130(0x1e8)]=function(_0x696e56,_0x4be5d0){return _0x696e56===_0x4be5d0;},_0x14ff90[_0x408130(0xf3)]=_0x408130(0xa5),_0x14ff90[_0x408130(0x164)]=function(_0x15684c,_0x1901d6){return _0x15684c===_0x1901d6;},_0x14ff90[_0x408130(0x138)]=_0x408130(0x12e);const _0x5d1883=_0x14ff90;try{if(_0x5d1883[_0x408130(0x186)](_0x5d1883[_0x408130(0x14c)],_0x5d1883['PIIBY']))return!![];else{const _0xbc25cc=await this['getClusterInfo']();if(_0xbc25cc[0x0]?.['resourceLabels']?.[_0x408130(0x196)]){if(_0x5d1883[_0x408130(0x1d4)](_0x5d1883['uzJdb'],_0x5d1883[_0x408130(0x1e4)])){const _0xff5be1=this[_0x408130(0xbd)],_0x41ca77={};_0x41ca77[_0x408130(0x100)]=_0xff5be1,this[_0x408130(0x123)]=new _0x2f1e27['v1'][(_0x408130(0xae))](_0x41ca77);const _0x37f888={};_0x37f888[_0x408130(0x100)]=_0xff5be1,this[_0x408130(0x96)]=new _0x221711['v1'][(_0x408130(0xe6))](_0x37f888);const _0x10163f={};_0x10163f[_0x408130(0x100)]=_0xff5be1,this[_0x408130(0x1f5)]=new _0x47282b(_0x10163f),this[_0x408130(0xd4)]=_0x254fea[_0x408130(0x178)]('v1'),_0x1d6ba2['gcpConfigSet']=!![];}else{const _0xcbd3c3=_0xbc25cc[0x0]?.['resourceLabels']?.[_0x408130(0x196)];return _0xcbd3c3&&_0x5d1883['WSQQR'](_0xcbd3c3['toLowerCase'](),_0x5d1883[_0x408130(0xf3)]);}}}}catch(_0x3d1fa4){if(_0x5d1883[_0x408130(0x164)](_0x5d1883[_0x408130(0x138)],_0x5d1883['RftdY']))return![];else _0x3fad22['log']('['+_0x5d1883[_0x408130(0x13a)](_0x1e5a14,0x1)+']\x20'+_0x1f312e[_0x541539]);}return![];}async[a3_0x146af1(0xef)](){const _0x1aaeb6=a3_0x146af1,_0x503808={'FCDcK':function(_0x2d9521,_0x12c2b8){return _0x2d9521===_0x12c2b8;},'HmEQw':function(_0x457344,_0x45d649){return _0x457344===_0x45d649;},'KxRMR':'browserstack','ojhNx':'Cluster\x20creation\x20failed','GNUQz':function(_0x41f020,_0x103107){return _0x41f020!==_0x103107;},'FOkqJ':_0x1aaeb6(0x127),'mTaPl':_0x1aaeb6(0x1eb),'JURBm':_0x1aaeb6(0x145),'LduWV':'utf-8','GuQBa':function(_0x3c137d,_0x4e0eac){return _0x3c137d!==_0x4e0eac;},'AUmbz':function(_0xc2fb34,_0x3db244){return _0xc2fb34!==_0x3db244;},'hAVEl':_0x1aaeb6(0xda),'mtWAb':'jUyJy','oRFfR':_0x1aaeb6(0x10f),'mzePy':_0x1aaeb6(0x1fd),'lkyFx':function(_0xf5164f,_0x337f3d){return _0xf5164f!==_0x337f3d;},'KbgIx':_0x1aaeb6(0x19c),'rcAit':_0x1aaeb6(0x1ab),'ruPqL':function(_0x191fc0,_0x3cc231){return _0x191fc0===_0x3cc231;},'rogIF':function(_0x184a17,_0x539863){return _0x184a17!==_0x539863;},'IPnbi':_0x1aaeb6(0xcb),'ysVHq':'HGHPg','qbvAq':function(_0x50167d,_0x3f51e2){return _0x50167d!==_0x3f51e2;},'hLFKr':'KUfjO','UbMTq':function(_0x3c9ce0,_0x5ed060){return _0x3c9ce0!==_0x5ed060;},'KSTtN':'lNMOS','ZGMsK':function(_0xc3fd17,_0x33811a){return _0xc3fd17>_0x33811a;},'oYlZI':'FRnox','WJHHG':function(_0x49f8ef,_0x3918ec){return _0x49f8ef<_0x3918ec;},'yuCAH':function(_0x4b97c2,_0x1d49df){return _0x4b97c2!==_0x1d49df;},'Cqrto':_0x1aaeb6(0x1b4),'EKVdF':_0x1aaeb6(0xe9),'ZEeLC':function(_0x514d22,_0x23e7cb){return _0x514d22+_0x23e7cb;},'ImUEX':function(_0x18e254,_0xa41b7d){return _0x18e254(_0xa41b7d);},'mrnEv':_0x1aaeb6(0x175),'aSfXn':function(_0x159bd7,_0x1a484f){return _0x159bd7(_0x1a484f);},'nvIkC':function(_0x2d1b57,_0x34a3f0){return _0x2d1b57<=_0x34a3f0;},'ZUYOm':function(_0x214af0,_0x37449d){return _0x214af0>_0x37449d;},'FLzYR':_0x1aaeb6(0xc5),'yPWeP':_0x1aaeb6(0x1d3),'eVvtP':_0x1aaeb6(0xfa),'iVTnc':function(_0x1c9360){return _0x1c9360();},'mUmMP':function(_0xa48b55,_0x4953a2){return _0xa48b55-_0x4953a2;},'fCDFY':function(_0x27d9fb,_0x486f53){return _0x27d9fb!==_0x486f53;},'xNbom':function(_0x3c5522,_0x1894b3){return _0x3c5522-_0x1894b3;},'JlDOi':'TEQiL'};this[_0x1aaeb6(0x17c)]();let _0x21f09c=await fs[_0x1aaeb6(0x189)](path[_0x1aaeb6(0x1bb)](__dirname,'..',_0x503808[_0x1aaeb6(0x144)],_0x503808[_0x1aaeb6(0xbb)],_0x503808[_0x1aaeb6(0xd5)]),_0x503808[_0x1aaeb6(0xbe)]);_0x21f09c=JSON[_0x1aaeb6(0xdf)](_0x21f09c);let _0x4a8b6a=[global_registry['clusterRegion']];if(_0x503808[_0x1aaeb6(0xab)](_0x21f09c[global_registry['clusterRegion']],undefined)){if(_0x503808[_0x1aaeb6(0x12f)](_0x503808[_0x1aaeb6(0x173)],_0x503808[_0x1aaeb6(0x1ba)]))_0x4a8b6a=_0x4a8b6a[_0x1aaeb6(0x112)](_0x21f09c[global_registry[_0x1aaeb6(0x101)]]);else{if(_0x503808['FCDcK'](_0x528255?.[_0x1aaeb6(0x1f3)],_0x1aaeb6(0x148)+this['projectId']+_0x1aaeb6(0x19a)+this[_0x1aaeb6(0x110)]+'@'+this['projectId']+_0x1aaeb6(0x1e6)))return!![];}}const _0x22c27f=[];for await(let _0x3a7be2 of _0x4a8b6a){if(_0x503808[_0x1aaeb6(0x116)](_0x503808[_0x1aaeb6(0x9a)],_0x503808[_0x1aaeb6(0x1f8)]))return _0x4b675f[_0x1aaeb6(0x14b)][_0x1aaeb6(0x18c)][_0x1aaeb6(0x1ef)][0x0]['ip'];else{const _0x1a1274={};_0x1a1274['parent']=_0x1aaeb6(0x148)+this[_0x1aaeb6(0xf5)]+'/locations/'+_0x3a7be2;const _0x55a84d=_0x1a1274,_0x2d3877=await this['containerClient'][_0x1aaeb6(0x12b)](_0x55a84d);for(const _0x2c1da4 of _0x2d3877[0x0][_0x1aaeb6(0x1b0)]){if(_0x503808[_0x1aaeb6(0x1d8)](_0x503808[_0x1aaeb6(0x14e)],_0x503808['rcAit'])){if(_0x503808[_0x1aaeb6(0xca)](_0x2c1da4['name'],this[_0x1aaeb6(0x202)])){if(_0x503808[_0x1aaeb6(0xc6)](_0x503808['IPnbi'],_0x503808['ysVHq']))_0x22c27f['push'](_0x3a7be2);else return _0x433f63[_0x1aaeb6(0x115)](_0x1aaeb6(0xb7)+_0x24fd1d+'.\x20Error:\x20'+_0xaa7c78),[![],[]];}}else{const _0x466273=_0x1f9f43[0x0]?.[_0x1aaeb6(0xd7)]?.[_0x1aaeb6(0x196)];return _0x466273&&_0x503808[_0x1aaeb6(0x116)](_0x466273[_0x1aaeb6(0x1e5)](),_0x503808[_0x1aaeb6(0x155)]);}}}}const _0x5f2848=_0x22c27f[_0x1aaeb6(0x1b3)];if(_0x503808[_0x1aaeb6(0xca)](_0x5f2848,0x1))return _0x503808[_0x1aaeb6(0x105)](_0x503808[_0x1aaeb6(0x16e)],_0x503808[_0x1aaeb6(0x16e)])?_0x503808['FCDcK'](_0x60cc30['gcpConfigSet'],!![]):(_0x503808['UbMTq'](global_registry[_0x1aaeb6(0x101)],_0x22c27f[0x0])&&(_0x503808[_0x1aaeb6(0x116)](_0x503808[_0x1aaeb6(0x201)],_0x503808['KSTtN'])?(global_registry['clusterRegion']=_0x22c27f[0x0],this[_0x1aaeb6(0xe0)]()):_0x43eca3[_0x1aaeb6(0x133)](_0x503808[_0x1aaeb6(0x208)])),!![]);else{if(_0x503808[_0x1aaeb6(0x117)](_0x5f2848,0x1)){if(_0x503808[_0x1aaeb6(0x116)](_0x503808['oYlZI'],_0x503808[_0x1aaeb6(0xff)])){console['log'](_0x1aaeb6(0xf0)+this[_0x1aaeb6(0x202)]+'\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:');for(let _0xf6cf2a=0x0;_0x503808[_0x1aaeb6(0x10c)](_0xf6cf2a,_0x5f2848);_0xf6cf2a+=0x1){if(_0x503808[_0x1aaeb6(0x16a)](_0x503808[_0x1aaeb6(0x153)],_0x503808['EKVdF']))console[_0x1aaeb6(0x104)]('['+_0x503808[_0x1aaeb6(0x122)](_0xf6cf2a,0x1)+']\x20'+_0x22c27f[_0xf6cf2a]);else return _0x503808['GNUQz'](_0x1fccc3[_0x1aaeb6(0x101)],_0xad3110[0x0])&&(_0x17c118[_0x1aaeb6(0x101)]=_0x20a0fd[0x0],this['updateClusterRegion']()),!![];}const _0x5cf75a=await _0x503808[_0x1aaeb6(0x151)](inputConfirmation,_0x503808[_0x1aaeb6(0x18f)]),_0x584eef=_0x503808['aSfXn'](Number,_0x5cf75a);(_0x503808[_0x1aaeb6(0x151)](isNaN,_0x584eef)||_0x503808[_0x1aaeb6(0x132)](_0x584eef,0x0)||_0x503808['ZUYOm'](_0x584eef,_0x5f2848))&&(_0x503808[_0x1aaeb6(0x12f)](_0x503808[_0x1aaeb6(0x13e)],_0x503808[_0x1aaeb6(0xb1)])?(console[_0x1aaeb6(0x115)](_0x503808[_0x1aaeb6(0x1e7)]),process[_0x1aaeb6(0x124)](0x1)):_0x51e06e[_0x1aaeb6(0x204)][_0x1aaeb6(0x19f)](_0x19acfc));_0x503808[_0x1aaeb6(0xf2)](closeInput),logger[_0x1aaeb6(0x133)](_0x1aaeb6(0xed)+_0x22c27f[_0x503808[_0x1aaeb6(0xa4)](_0x584eef,0x1)]);if(_0x503808[_0x1aaeb6(0x1ea)](global_registry[_0x1aaeb6(0x101)],_0x22c27f[_0x503808[_0x1aaeb6(0xe8)](_0x584eef,0x1)])){if(_0x503808[_0x1aaeb6(0x129)](_0x503808[_0x1aaeb6(0xa9)],_0x503808[_0x1aaeb6(0xa9)]))return!![];else global_registry['clusterRegion']=_0x22c27f[_0x503808['mUmMP'](_0x584eef,0x1)],this[_0x1aaeb6(0xe0)]();}return!![];}else _0x302c89=_0x3d4ae0[_0x1aaeb6(0x112)](_0xfe3e87[_0x4cccb3[_0x1aaeb6(0x101)]]);}}return![];}async[a3_0x146af1(0x1c1)](){const _0x597a68=a3_0x146af1,_0x4e1ac8=await this[_0x597a68(0x123)][_0x597a68(0xb2)]({'name':_0x597a68(0x148)+this['projectId']+_0x597a68(0x1fa)+global_registry['clusterRegion']+_0x597a68(0x177)+this[_0x597a68(0x202)]});return _0x4e1ac8;}async[a3_0x146af1(0x135)](){const _0x291538=a3_0x146af1,_0x2e914f={};_0x2e914f[_0x291538(0x109)]=_0x291538(0x127),_0x2e914f['pBJrm']=_0x291538(0x1eb),_0x2e914f[_0x291538(0xd1)]='KubeConfigTemplate.yaml';const _0x142ad2=_0x2e914f;cp[_0x291538(0xcd)](_0x291538(0x1be)),cp[_0x291538(0x121)](_0x291538(0xec)+this[_0x291538(0xbd)]);const _0x1ffcb8=await this['getClusterInfo'](),_0x150704=_0x291538(0x1b6)+this[_0x291538(0xf5)]+'_'+global_registry['clusterRegion']+'_'+this[_0x291538(0x202)];let _0x1d027a=await fs[_0x291538(0x189)](path['join'](__dirname,'..',_0x142ad2[_0x291538(0x109)],_0x142ad2['pBJrm'],_0x142ad2['kZEYa']));return _0x1d027a=_0x1d027a[_0x291538(0xd3)](),_0x1d027a=_0x1d027a[_0x291538(0x1ca)](/<CLUSTER_NAME>/g,_0x150704),_0x1d027a=_0x1d027a[_0x291538(0x1ca)](/<CLUSTER_URL>/g,_0x291538(0x11f)+_0x1ffcb8[0x0]['endpoint']),_0x1d027a=_0x1d027a[_0x291538(0x1ca)](/<CERTIFICATE_DATA>/g,_0x1ffcb8[0x0][_0x291538(0x1a7)][_0x291538(0x206)]),_0x1d027a;}async[a3_0x146af1(0x10b)](){const _0x1ae2b2=a3_0x146af1,_0x4e5a71={};_0x4e5a71[_0x1ae2b2(0xb5)]='https://www.googleapis.com/auth/cloud-platform',_0x4e5a71[_0x1ae2b2(0xfb)]=function(_0x40024c,_0x370897){return _0x40024c===_0x370897;},_0x4e5a71[_0x1ae2b2(0xc3)]=_0x1ae2b2(0x10d),_0x4e5a71[_0x1ae2b2(0x9d)]=_0x1ae2b2(0x9c),_0x4e5a71[_0x1ae2b2(0x1ad)]=function(_0xc79f5,_0x4d0fbf){return _0xc79f5===_0x4d0fbf;},_0x4e5a71['UyDuS']=function(_0x4bcc0e,_0x17ec25){return _0x4bcc0e!==_0x17ec25;},_0x4e5a71['TNDJE']='YnDPr',_0x4e5a71['uHsjX']=_0x1ae2b2(0xaa);const _0x5196fb=_0x4e5a71,_0x57a7ca={};_0x57a7ca[_0x1ae2b2(0xe3)]=[_0x5196fb[_0x1ae2b2(0xb5)]],_0x57a7ca['keyFile']=this[_0x1ae2b2(0xbd)];const _0xd8c3e6=await google['auth'][_0x1ae2b2(0xfc)](_0x57a7ca),_0x2d88a7=await this[_0x1ae2b2(0xd4)][_0x1ae2b2(0xeb)][_0x1ae2b2(0x14d)][_0x1ae2b2(0xcc)]({'name':'projects/'+this[_0x1ae2b2(0xf5)],'auth':_0xd8c3e6});for(const _0x3eb6f8 of _0x2d88a7?.[_0x1ae2b2(0x1d9)]?.['accounts']){if(_0x5196fb[_0x1ae2b2(0xfb)](_0x5196fb['UmqVT'],_0x5196fb[_0x1ae2b2(0x9d)]))this[_0x1ae2b2(0x163)]();else{if(_0x5196fb['woQyX'](_0x3eb6f8?.['name'],_0x1ae2b2(0x148)+this[_0x1ae2b2(0xf5)]+_0x1ae2b2(0x19a)+this[_0x1ae2b2(0x110)]+'@'+this['projectId']+_0x1ae2b2(0x1e6)))return _0x5196fb[_0x1ae2b2(0x11d)](_0x5196fb[_0x1ae2b2(0xa8)],_0x5196fb[_0x1ae2b2(0x17f)])?!![]:![];}}return![];}async['setupServiceAccount'](){const _0x4d4370=a3_0x146af1,_0x23b031={};_0x23b031[_0x4d4370(0x9b)]=function(_0x145eca,_0xfff87e){return _0x145eca===_0xfff87e;},_0x23b031[_0x4d4370(0x1d6)]=_0x4d4370(0x181),_0x23b031[_0x4d4370(0x111)]=_0x4d4370(0x1a1),_0x23b031[_0x4d4370(0x1a6)]=_0x4d4370(0x190),_0x23b031[_0x4d4370(0x18e)]='Creating\x20service\x20account',_0x23b031[_0x4d4370(0x12c)]='https://www.googleapis.com/auth/cloud-platform',_0x23b031['OKlCF']=_0x4d4370(0x106),_0x23b031[_0x4d4370(0x156)]='storage.buckets.create',_0x23b031[_0x4d4370(0x1ed)]=_0x4d4370(0x1df),_0x23b031[_0x4d4370(0xd2)]=_0x4d4370(0xc2),_0x23b031[_0x4d4370(0xad)]='storage.buckets.deleteTagBinding',_0x23b031[_0x4d4370(0x1a8)]='storage.buckets.get',_0x23b031[_0x4d4370(0x1ff)]=_0x4d4370(0x1bd),_0x23b031[_0x4d4370(0xde)]=_0x4d4370(0xb9),_0x23b031[_0x4d4370(0xc8)]='storage.buckets.list',_0x23b031[_0x4d4370(0x1e9)]=_0x4d4370(0x19e),_0x23b031[_0x4d4370(0x14f)]='storage.buckets.listTagBindings',_0x23b031[_0x4d4370(0x131)]=_0x4d4370(0xa7),_0x23b031['JhtgV']=_0x4d4370(0x136),_0x23b031['McfKg']='storage.multipartUploads.abort',_0x23b031[_0x4d4370(0x1b1)]=_0x4d4370(0xe5),_0x23b031['dpDIB']='storage.multipartUploads.list',_0x23b031['zAptB']=_0x4d4370(0x141),_0x23b031[_0x4d4370(0xea)]=_0x4d4370(0xc7),_0x23b031[_0x4d4370(0xbf)]=_0x4d4370(0x161),_0x23b031[_0x4d4370(0xce)]=_0x4d4370(0x18b),_0x23b031['PqqyQ']=_0x4d4370(0xd0),_0x23b031['YkYeu']='storage.objects.list',_0x23b031[_0x4d4370(0x1f6)]='storage.objects.setIamPolicy',_0x23b031[_0x4d4370(0x1cb)]=_0x4d4370(0x150),_0x23b031[_0x4d4370(0xf6)]=_0x4d4370(0x1c8),_0x23b031[_0x4d4370(0x192)]=_0x4d4370(0x11b);const _0x77aa93=_0x23b031,_0x420117=await this[_0x4d4370(0x10b)]();if(_0x420117){if(_0x77aa93['GgEva'](_0x77aa93['MjOGZ'],_0x77aa93[_0x4d4370(0x111)]))return[!![],_0xefd1b7];else{logger[_0x4d4370(0x133)](_0x77aa93[_0x4d4370(0x1a6)]);return;}}logger[_0x4d4370(0x133)](_0x77aa93[_0x4d4370(0x18e)]);const _0x5cb25b={};_0x5cb25b[_0x4d4370(0xe3)]=[_0x77aa93['QRROx']],_0x5cb25b[_0x4d4370(0x100)]=this[_0x4d4370(0xbd)];const _0x1d813d=await google[_0x4d4370(0x1a4)][_0x4d4370(0xfc)](_0x5cb25b),_0x41aa28={};_0x41aa28[_0x4d4370(0x1a0)]=[_0x77aa93[_0x4d4370(0xf1)],_0x77aa93['SYFyx'],_0x77aa93['aZpKd'],_0x77aa93[_0x4d4370(0xd2)],_0x77aa93[_0x4d4370(0xad)],_0x77aa93[_0x4d4370(0x1a8)],_0x77aa93[_0x4d4370(0x1ff)],_0x77aa93[_0x4d4370(0xde)],_0x77aa93[_0x4d4370(0xc8)],_0x77aa93[_0x4d4370(0x1e9)],_0x77aa93[_0x4d4370(0x14f)],_0x77aa93[_0x4d4370(0x131)],_0x77aa93[_0x4d4370(0x185)],_0x77aa93[_0x4d4370(0xd9)],_0x77aa93['ehdyb'],_0x77aa93['dpDIB'],_0x77aa93['zAptB'],_0x77aa93[_0x4d4370(0xea)],_0x77aa93['xxiKT'],_0x77aa93[_0x4d4370(0xce)],_0x77aa93[_0x4d4370(0x139)],_0x77aa93[_0x4d4370(0xfd)],_0x77aa93[_0x4d4370(0x1f6)],_0x77aa93[_0x4d4370(0x1cb)]],_0x41aa28[_0x4d4370(0x1e1)]=_0x77aa93[_0x4d4370(0xf6)],await this[_0x4d4370(0xd4)]['organizations'][_0x4d4370(0x1a3)][_0x4d4370(0x154)]({'parent':_0x4d4370(0x148)+this[_0x4d4370(0xf5)],'requestBody':{'role':_0x41aa28,'roleId':this[_0x4d4370(0xe1)]},'auth':_0x1d813d});const _0x3e3780={};_0x3e3780['name']=_0x4d4370(0x148)+this[_0x4d4370(0xf5)],_0x3e3780[_0x4d4370(0xfe)]={},_0x3e3780['auth']=_0x1d813d,_0x3e3780[_0x4d4370(0xfe)]['accountId']=this[_0x4d4370(0x110)];const _0x1c9463=_0x3e3780;await this['iamClient'][_0x4d4370(0xeb)]['serviceAccounts'][_0x4d4370(0x154)](_0x1c9463);let _0x8cab8e=await this['resourcemanagerClient'][_0x4d4370(0x130)]({'resource':_0x4d4370(0x148)+this[_0x4d4370(0xf5)]});_0x8cab8e=_0x8cab8e[0x0][_0x4d4370(0x18d)];const _0x32f882={};_0x32f882[_0x4d4370(0xa2)]=_0x4d4370(0x148)+this[_0x4d4370(0xf5)]+_0x4d4370(0x11e)+this[_0x4d4370(0xe1)],_0x32f882[_0x4d4370(0xd8)]=[_0x4d4370(0x142)+this['serviceAccountName']+'@'+this[_0x4d4370(0xf5)]+_0x4d4370(0x1e6)],_0x8cab8e[_0x4d4370(0x19f)](_0x32f882);const _0x3423e2={};_0x3423e2[_0x4d4370(0x18d)]=_0x8cab8e,await this[_0x4d4370(0x1f5)][_0x4d4370(0x108)]({'resource':_0x4d4370(0x148)+this[_0x4d4370(0xf5)],'policy':_0x3423e2}),logger['info'](_0x77aa93[_0x4d4370(0x192)]);}async['setupNewCluster'](_0x2987dd=a3_0x146af1(0x119),_0x2aaca7=['default']){const _0x3cc8d9=a3_0x146af1,_0x229436={};_0x229436[_0x3cc8d9(0xb0)]=_0x3cc8d9(0x17d),_0x229436['dgNAs']='Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x229436[_0x3cc8d9(0x1f4)]=_0x3cc8d9(0x16d);const _0x561886=_0x229436,_0x1979bc=_0x561886[_0x3cc8d9(0xb0)][_0x3cc8d9(0x99)]('|');let _0x59f514=0x0;while(!![]){switch(_0x1979bc[_0x59f514++]){case'0':await this[_0x3cc8d9(0x9f)](_0x2987dd,_0x2aaca7);continue;case'1':logger[_0x3cc8d9(0x133)](_0x561886[_0x3cc8d9(0x19b)]);continue;case'2':await this[_0x3cc8d9(0x1d5)]();continue;case'3':await this[_0x3cc8d9(0x1bf)]();continue;case'4':return!![];case'5':const _0xfecd9a={};_0xfecd9a['type']=WS_EVENTS[_0x3cc8d9(0x1a2)],_0xfecd9a[_0x3cc8d9(0x1c7)]=_0x561886[_0x3cc8d9(0x1f4)],this['webSocketUtils'][_0x3cc8d9(0xd6)](this[_0x3cc8d9(0x1e0)],_0xfecd9a);continue;}break;}}async['createCluster'](_0x110617=a3_0x146af1(0x119),_0x1bd535=[a3_0x146af1(0x119)]){const _0x3cf776=a3_0x146af1,_0x3c5f14={};_0x3c5f14[_0x3cf776(0xdc)]=_0x3cf776(0x190),_0x3c5f14['dkZhv']=function(_0x277339,_0x29e58e){return _0x277339!==_0x29e58e;},_0x3c5f14[_0x3cf776(0x160)]=_0x3cf776(0x170),_0x3c5f14[_0x3cf776(0x134)]=_0x3cf776(0x13d),_0x3c5f14[_0x3cf776(0x1c0)]=_0x3cf776(0x1de),_0x3c5f14[_0x3cf776(0x1f2)]=_0x3cf776(0x127),_0x3c5f14[_0x3cf776(0x1c6)]='gcpresources',_0x3c5f14[_0x3cf776(0x1f1)]=_0x3cf776(0xee),_0x3c5f14[_0x3cf776(0xe2)]=_0x3cf776(0x11a),_0x3c5f14[_0x3cf776(0x182)]=_0x3cf776(0x145),_0x3c5f14['SfCci']=function(_0x42d754,_0x46d1ca){return _0x42d754*_0x46d1ca;},_0x3c5f14[_0x3cf776(0x15f)]=function(_0xf3dbe1,_0x118458){return _0xf3dbe1*_0x118458;},_0x3c5f14['iWVmq']=function(_0x287e91,_0x16c72e){return _0x287e91===_0x16c72e;},_0x3c5f14[_0x3cf776(0x1b7)]=_0x3cf776(0x159),_0x3c5f14[_0x3cf776(0x19d)]=function(_0x3d2dc6,_0x377800){return _0x3d2dc6!==_0x377800;},_0x3c5f14[_0x3cf776(0x16f)]=_0x3cf776(0x152),_0x3c5f14['wNjoQ']=_0x3cf776(0x1ac),_0x3c5f14['XRiBR']=_0x3cf776(0x209),_0x3c5f14[_0x3cf776(0x1e3)]=_0x3cf776(0xf9),_0x3c5f14[_0x3cf776(0xf7)]=_0x3cf776(0x13b);const _0x356fea=_0x3c5f14;try{if(_0x356fea[_0x3cf776(0x188)](_0x356fea[_0x3cf776(0x160)],_0x356fea[_0x3cf776(0x134)])){logger[_0x3cf776(0x133)](_0x356fea[_0x3cf776(0x1c0)]);let _0x13ff1e=await fs[_0x3cf776(0x189)](path[_0x3cf776(0x1bb)](__dirname,'..',_0x356fea[_0x3cf776(0x1f2)],_0x356fea[_0x3cf776(0x1c6)],_0x356fea[_0x3cf776(0x1f1)]),_0x356fea[_0x3cf776(0xe2)]);_0x13ff1e=JSON[_0x3cf776(0xdf)](_0x13ff1e);let _0x67827=await fs[_0x3cf776(0x189)](path['join'](__dirname,'..',_0x356fea[_0x3cf776(0x1f2)],_0x356fea['jRQvP'],_0x356fea[_0x3cf776(0x182)]),_0x356fea[_0x3cf776(0xe2)]);_0x67827=JSON['parse'](_0x67827),_0x13ff1e[_0x3cf776(0x1f3)]=this['clusterName'],_0x13ff1e[_0x3cf776(0x176)][0x0][_0x3cf776(0xc4)][_0x3cf776(0x12a)]=global_registry[_0x3cf776(0x1a5)],_0x13ff1e[_0x3cf776(0x176)][0x1]['config'][_0x3cf776(0x12a)]=global_registry['instanceType'],_0x13ff1e[_0x3cf776(0x176)][0x0][_0x3cf776(0xc4)][_0x3cf776(0x15c)]=this['serviceAccountName']+'@'+this['projectId']+_0x3cf776(0x1e6),_0x13ff1e[_0x3cf776(0x176)][0x1][_0x3cf776(0xc4)]['serviceAccount']=this['serviceAccountName']+'@'+this[_0x3cf776(0xf5)]+_0x3cf776(0x1e6),_0x13ff1e['nodePools'][0x0][_0x3cf776(0x15d)][_0x3cf776(0x162)]=global_registry['minNodes'],_0x13ff1e[_0x3cf776(0x176)][0x1]['autoscaling']['minNodeCount']=0x0,_0x13ff1e[_0x3cf776(0x176)][0x0][_0x3cf776(0x15d)][_0x3cf776(0x1c4)]=global_registry[_0x3cf776(0xcf)],_0x13ff1e[_0x3cf776(0x176)][0x1]['autoscaling']['maxNodeCount']=global_registry[_0x3cf776(0xcf)],_0x13ff1e[_0x3cf776(0x1cd)]=global_registry[_0x3cf776(0x101)],_0x13ff1e[_0x3cf776(0x137)]=[_0x67827[global_registry[_0x3cf776(0x101)]][0x0]],_0x13ff1e[_0x3cf776(0xa0)]=_0x3cf776(0x148)+this['projectId']+'/global/networks/'+_0x110617,_0x13ff1e['subnetwork']='projects/'+this[_0x3cf776(0xf5)]+_0x3cf776(0xdd)+global_registry[_0x3cf776(0x101)]+_0x3cf776(0x168)+_0x1bd535[0x0];const _0x3ad5b6=await this[_0x3cf776(0x123)][_0x3cf776(0x9f)]({'cluster':_0x13ff1e,'parent':_0x3cf776(0x148)+this[_0x3cf776(0xf5)]+_0x3cf776(0x1fa)+global_registry[_0x3cf776(0x101)]});await this[_0x3cf776(0x1cc)][_0x3cf776(0x12d)](_0x356fea[_0x3cf776(0x207)](_0x356fea[_0x3cf776(0x15f)](0x7,0x3c),0x3e8));}else!this[_0x3cf776(0x1fb)]()&&this[_0x3cf776(0x163)]();}catch(_0x5bdf69){if(_0x356fea[_0x3cf776(0x1f0)](_0x356fea[_0x3cf776(0x1b7)],_0x356fea[_0x3cf776(0x1b7)])){const _0x340e9b=await this[_0x3cf776(0xef)]();if(_0x340e9b)_0x356fea[_0x3cf776(0x19d)](_0x356fea[_0x3cf776(0x16f)],_0x356fea['LijeL'])?_0x594207[_0x3cf776(0x19f)](_0x3aeee3):(logger[_0x3cf776(0x133)](_0x356fea[_0x3cf776(0x1cf)],_0x5bdf69[_0x3cf776(0xb4)]),await this['deleteCluster']());else{if(_0x356fea['iWVmq'](_0x356fea[_0x3cf776(0x149)],_0x356fea[_0x3cf776(0x1e3)])){_0x21af73[_0x3cf776(0x133)](_0x356fea[_0x3cf776(0xdc)]);return;}else logger[_0x3cf776(0x133)](_0x356fea[_0x3cf776(0xf7)]);}throw _0x5bdf69;}else _0x44b4a5[_0x3cf776(0xcd)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x3cf776(0x202)]+_0x3cf776(0xc9)+_0x459759['clusterRegion']+_0x3cf776(0xbc));}}async[a3_0x146af1(0x1d5)](){const _0x5e7c61=a3_0x146af1;cp['execSync'](_0x5e7c61(0x1b5)+this[_0x5e7c61(0x202)]+_0x5e7c61(0xc9)+global_registry[_0x5e7c61(0x101)]+_0x5e7c61(0xbc));}async['deleteCluster'](_0x55f131,_0x3536e4){const _0x3983b4=a3_0x146af1,_0x45edec={'lGNiV':function(_0x2dd0bf,_0x21aec1){return _0x2dd0bf-_0x21aec1;},'FbTom':function(_0x417768,_0x5aefc8){return _0x417768===_0x5aefc8;},'hTece':function(_0x40561b,_0x4b38f1){return _0x40561b===_0x4b38f1;},'HFMyX':'OvoqA','FnLSI':function(_0x49a79a,_0x48664e){return _0x49a79a(_0x48664e);},'lfOUN':function(_0x51aef2,_0x123831){return _0x51aef2(_0x123831);},'VUUEA':function(_0x562d6e,_0x1f38fa){return _0x562d6e===_0x1f38fa;},'omzIu':_0x3983b4(0x113),'KEdqf':_0x3983b4(0x203),'jwHjK':function(_0x3b6615,_0x454abe){return _0x3b6615!==_0x454abe;},'hKSoN':_0x3983b4(0xac),'VsyZU':function(_0x3fffe0,_0x14819c){return _0x3fffe0!==_0x14819c;},'cfTHP':'PyiKJ','ZOJVJ':_0x3983b4(0x17e),'mojoM':'GKE\x20Cluster\x20deletion\x20failed'};try{if(_0x45edec[_0x3983b4(0x1ec)](_0x45edec['HFMyX'],_0x45edec[_0x3983b4(0x126)])){await _0x45edec['FnLSI'](deleteAgent,_0x55f131),await _0x45edec[_0x3983b4(0x1ee)](deleteRoutingDeps,_0x55f131),logger[_0x3983b4(0x133)](_0x3983b4(0x10e)+this[_0x3983b4(0x202)]);const _0x16ec7e=await this['containerClient'][_0x3983b4(0xb3)]({'name':_0x3983b4(0x148)+this['projectId']+_0x3983b4(0x1fa)+global_registry[_0x3983b4(0x101)]+'/clusters/'+this[_0x3983b4(0x202)]});if(_0x45edec[_0x3983b4(0x140)](_0x16ec7e[0x0]?.[_0x3983b4(0x14b)],_0x45edec[_0x3983b4(0xba)])||_0x45edec[_0x3983b4(0x1ec)](_0x16ec7e[0x0]?.['status'],_0x45edec[_0x3983b4(0x1b9)])){if(_0x45edec['jwHjK'](_0x45edec['hKSoN'],_0x45edec[_0x3983b4(0x118)]))_0x126a24[_0x3983b4(0x101)]=_0x52aa8b[_0x45edec[_0x3983b4(0x197)](_0x58b037,0x1)],this[_0x3983b4(0xe0)]();else return!![];}logger[_0x3983b4(0x133)](_0x3983b4(0x97));}else{const _0xb92035=_0x3983b4(0x193)+this[_0x3983b4(0xf5)]+_0x3983b4(0xdd)+_0x328672[_0x3983b4(0x101)]+'/subnetworks/'+_0x339c6d[0x0];if(_0x45edec['FbTom'](_0xb92035,_0x6a6934))return[!![],_0x3039c0];}}catch(_0x552945){if(_0x45edec[_0x3983b4(0x15a)](_0x45edec[_0x3983b4(0x1c5)],_0x45edec[_0x3983b4(0x169)])){logger[_0x3983b4(0x133)](_0x45edec['mojoM']);throw _0x552945;}else this['sendGCPInfoToHST'](this[_0x3983b4(0x1e0)]);}}async[a3_0x146af1(0x1d0)](_0x4f30e6){const _0x244853=a3_0x146af1,_0x393d9a={};_0x393d9a['UPcCp']=function(_0x23b197,_0x5efb13){return _0x23b197===_0x5efb13;},_0x393d9a[_0x244853(0x1b8)]='GKE\x20Cluster\x20deletion\x20failed',_0x393d9a[_0x244853(0x157)]=function(_0x2adf56,_0x463ee5){return _0x2adf56!==_0x463ee5;},_0x393d9a[_0x244853(0x1c3)]=_0x244853(0x1fe),_0x393d9a[_0x244853(0x1e2)]='eDLcz',_0x393d9a[_0x244853(0x102)]=function(_0x2c58ec,_0x46b7ec){return _0x2c58ec>_0x46b7ec;},_0x393d9a[_0x244853(0x9e)]=_0x244853(0xc0),_0x393d9a[_0x244853(0x158)]=_0x244853(0x107);const _0x43edc2=_0x393d9a;try{if(_0x43edc2[_0x244853(0x157)](_0x43edc2[_0x244853(0x1c3)],_0x43edc2[_0x244853(0x1e2)])){const _0x46568f={};_0x46568f[_0x244853(0x1f7)]=projectId,_0x46568f[_0x244853(0xa0)]=_0x4f30e6;const _0x12f633=await networkClient['get'](_0x46568f);if(_0x43edc2[_0x244853(0x102)](_0x12f633[_0x244853(0x1b3)],0x0)&&_0x43edc2['UPcCp'](_0x12f633[0x0][_0x244853(0x1f3)],_0x4f30e6)){if(_0x43edc2[_0x244853(0x120)](_0x43edc2['eqJnW'],_0x43edc2[_0x244853(0x9e)]))return!![];else _0x43edc2[_0x244853(0x120)](_0x50201b['name'],this[_0x244853(0x202)])&&_0x418d1b[_0x244853(0x19f)](_0x31a912);}}else{_0x162aea[_0x244853(0x133)](_0x43edc2['jJWRN']);throw _0x5209b1;}}catch(_0x361c10){if(_0x43edc2['UPcCp'](_0x43edc2['gAQnH'],_0x43edc2[_0x244853(0x158)]))return![];else _0x4656a8['clusterRegion']=_0x1373a5[0x0],this[_0x244853(0xe0)]();}return![];}async[a3_0x146af1(0x183)](_0x57f9a2,_0x23165c){const _0x416a7d=a3_0x146af1,_0x316057={};_0x316057['mMGXb']='Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.',_0x316057[_0x416a7d(0x205)]=function(_0x24ba2d,_0x38986b){return _0x24ba2d!==_0x38986b;},_0x316057[_0x416a7d(0x16b)]=_0x416a7d(0x15e),_0x316057['CKTVG']='PQlKC',_0x316057[_0x416a7d(0x17b)]=function(_0x33b583,_0x50600b){return _0x33b583===_0x50600b;},_0x316057[_0x416a7d(0x1f9)]=_0x416a7d(0x1d2);const _0x201ef8=_0x316057;try{const _0x4a6c58={};_0x4a6c58[_0x416a7d(0x1f7)]=projectId,_0x4a6c58[_0x416a7d(0xa0)]=_0x23165c;const _0x4efc4c=await networkClient[_0x416a7d(0x179)](_0x4a6c58);for(const _0x23e24e of _0x4efc4c[0x0]['subnetworks']){if(_0x201ef8[_0x416a7d(0x205)](_0x201ef8[_0x416a7d(0x16b)],_0x201ef8[_0x416a7d(0x166)])){const _0x2f61ee=_0x416a7d(0x193)+this[_0x416a7d(0xf5)]+_0x416a7d(0xdd)+global_registry[_0x416a7d(0x101)]+_0x416a7d(0x168)+_0x57f9a2[0x0];if(_0x201ef8[_0x416a7d(0x17b)](_0x2f61ee,_0x23e24e))return _0x201ef8[_0x416a7d(0x205)](_0x201ef8[_0x416a7d(0x1f9)],_0x201ef8[_0x416a7d(0x1f9)])?![]:[!![],_0x57f9a2];}else _0x605655[_0x416a7d(0x115)](_0x201ef8[_0x416a7d(0x10a)]),_0x36c644['exit'](0x1);}}catch(_0x3bf50d){return logger['error'](_0x416a7d(0xb7)+_0x57f9a2+_0x416a7d(0xe7)+_0x3bf50d),[![],[]];}return[![],[]];}async[a3_0x146af1(0x174)](){const _0x362a6d=a3_0x146af1,_0x4be1a8=await this['networkClient'][_0x362a6d(0xcc)]({'project':this[_0x362a6d(0xf5)]}),_0x123001={};_0x123001[_0x362a6d(0x194)]=global_registry['bstackUsername'],_0x123001['accessKey']=global_registry[_0x362a6d(0x15b)],_0x123001[_0x362a6d(0x16c)]=GCP,_0x123001[_0x362a6d(0x204)]=[];const _0x48a792=_0x123001;for(const _0x32d00b of _0x4be1a8){_0x48a792[_0x362a6d(0x204)][_0x362a6d(0x19f)](_0x32d00b);}const _0x4fab79={};_0x4fab79[_0x362a6d(0x1aa)]=WS_EVENTS['RESOURCES'],_0x4fab79[_0x362a6d(0x1c7)]=_0x48a792,this[_0x362a6d(0x1cc)][_0x362a6d(0xd6)](this[_0x362a6d(0x1e0)],_0x4fab79);}async[a3_0x146af1(0xe0)](){const _0xfa51ed=a3_0x146af1,_0x11865f={'xHFPF':function(_0x340aba,_0x4cc5e9,_0x2d19b5){return _0x340aba(_0x4cc5e9,_0x2d19b5);},'Xrqap':_0xfa51ed(0x191),'OHZGt':'json','OTnex':function(_0x53e7df,_0xdf8296,_0x2193dc){return _0x53e7df(_0xdf8296,_0x2193dc);}},_0x323d8f=_0xfa51ed(0x11f)+AG_API_URL+_0xfa51ed(0x1ae),_0x129141={};_0x129141[_0xfa51ed(0x1b2)]=global_registry[_0xfa51ed(0x1db)];const _0x5ac027={};_0x5ac027[_0xfa51ed(0x1c9)]=global_registry[_0xfa51ed(0x101)];const _0x1d4511={'searchParams':_0x129141,'json':_0x5ac027,'headers':_0x11865f[_0xfa51ed(0x1fc)](getAuthHeader,global_registry[_0xfa51ed(0x1dd)],global_registry[_0xfa51ed(0x15b)]),'method':_0x11865f[_0xfa51ed(0x11c)],'responseType':_0x11865f['OHZGt'],'throwHttpErrors':![]},_0x4345a2=await _0x11865f['OTnex'](got,_0x323d8f,_0x1d4511);}}function a3_0x20ed(_0x577bf0,_0x2043e5){const _0x4ac886=a3_0x4ac8();return a3_0x20ed=function(_0x20edb3,_0xe6a5d9){_0x20edb3=_0x20edb3-0x95;let _0x4f28f4=_0x4ac886[_0x20edb3];return _0x4f28f4;},a3_0x20ed(_0x577bf0,_0x2043e5);}const a3_0x173118={};function a3_0x4ac8(){const _0x1215bc=['hLFKr','LijeL','VhwFs','3|2|6|7|1|4|0|5|8','path','hAVEl','sendGCPInfoToHST','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','nodePools','/clusters/','iam','get','fJudl','OVoFT','configureIfNotConfigured','5|1|3|0|2|4','DlHbC','uHsjX','254565Shktof','BzrCx','DFino','isSubnetsValid','../utils/utilityMethods','JhtgV','sjGyz','./CloudProvider','dkZhv','readFileAsync','RYXVr','storage.objects.get','loadBalancer','bindings','NHjhv','mrnEv','Service\x20account\x20already\x20exists,\x20skipping','PUT','UUQDL','https://www.googleapis.com/compute/v1/projects/','username','@google-cloud/compute','managedby','lGNiV','qvcjI','isBrowserstackCluster','/serviceAccounts/','dgNAs','PyPaH','QzBxM','storage.buckets.listEffectiveTags','push','includedPermissions','bJXIA','LOG','roles','auth','instanceType','rCanv','masterAuth','yCzfF','333450KucGQh','type','pPGWe','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','woQyX','/packages/cli/update-cluster-region','AXLrh','clusters','ehdyb','profileId','length','YTKcU','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','gke_','ADqRC','jJWRN','KEdqf','mtWAb','join','getGridHostname','storage.buckets.getIamPolicy','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','setupServiceAccount','ePeSk','getClusterInfo','uzJdb','qWtIZ','maxNodeCount','cfTHP','jRQvP','message','Turboscale\x20Custom\x20Role','newRegion','replace','qNwyD','webSocketUtils','location','../config/constants','wNjoQ','isVPCPresent','exports','VGPNb','WhXmo','HSEdE','updateWindowsNodeGroup','MjOGZ','../utils/gridComponents','lkyFx','data','zpxjY','gridProfileId','../config/logger','bstackUsername','Creating\x20GKE\x20Cluster','storage.buckets.createTagBinding','rws','title','MWjSU','SHKIf','PRKDs','toLowerCase','.iam.gserviceaccount.com','eVvtP','WSQQR','aLvWG','fCDFY','gcpresources','hTece','aZpKd','lfOUN','ingress','iWVmq','RRYPh','zvsAO','name','YgegN','resourcemanagerClient','ZIVWa','project','mzePy','zuSMj','/locations/','isConfigured','xHFPF','oYbPq','pYwxK','SXuco','992010kVLpYk','KSTtN','clusterName','DONE','vpcInfo','ZGEme','clusterCaCertificate','SfCci','ojhNx','QxMoy','cloudProviderName','4616101ImAlDe','networkClient','Cluster\x20deletion\x20completed','KsQcN','split','oRFfR','GgEva','kfjoc','KAhTm','eqJnW','createCluster','network','167945HuwFTb','role','UcoPi','mUmMP','browserstack','jpOLY','storage.buckets.setIamPolicy','TNDJE','JlDOi','mxKhC','GuQBa','hMzby','JxVKl','ClusterManagerClient','gcpConfigSet','hPPvg','yPWeP','getCluster','deleteCluster','stack','mufdT','@google-cloud/resource-manager','Cannot\x20find\x20subnets\x20','1267564upVLPZ','storage.buckets.getObjectInsights','omzIu','mTaPl','\x20--quiet\x20--user-output-enabled=false','credentialsPath','LduWV','xxiKT','eDARS','UMcfq','storage.buckets.delete','UmqVT','config','HyuFE','rogIF','storage.objects.create','YKQHW','\x20--windows-os-version=ltsc2022\x20--region\x20','ruPqL','Drjkc','list','execSync','rQyxM','maxNodes','storage.objects.getIamPolicy','kZEYa','jzNZd','toString','iamClient','JURBm','sendEventToBackend','resourceLabels','members','McfKg','jpsNg','project_id','gAeVh','/regions/','RJSyS','parse','updateClusterRegion','customRoleName','dUcBe','scopes','gcp_credentials.json','storage.multipartUploads.create','NetworksClient','.\x20Error:\x20','xNbom','RWfov','YEKwd','projects','gcloud\x20auth\x20login\x20--cred-file=','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','gkecluster.json','isClusterPresent','Found\x20cluster\x20with\x20name\x20\x27','OKlCF','iVTnc','keVmT','zYgiT','projectId','kfyWX','Wzotq','ySWMK','SIXOY','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','pjlXi','getClient','YkYeu','requestBody','oYlZI','keyFile','clusterRegion','ojNqw','mRwOL','log','qbvAq','iam.serviceAccounts.signBlob','wTljm','setIamPolicy','byPUV','mMGXb','checkServiceAccount','WJHHG','faYIO','Deleting\x20the\x20cluster\x20','ZjEPl','serviceAccountName','BrLaN','concat','RUNNING','637542ectgLZ','error','HmEQw','ZGMsK','hKSoN','default','utf-8','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','Xrqap','UyDuS','/roles/','https://','UPcCp','exec','ZEeLC','containerClient','exit','aDynN','HFMyX','templates','GoogleCloudProvider','GNUQz','machineType','listClusters','QRROx','delay','NyZms','AUmbz','getIamPolicy','nmEKd','nvIkC','info','XQAkI','getKubeConfigData','storage.buckets.update','locations','RftdY','PqqyQ','ywvly','Cluster\x20creation\x20failed','MMEHG','QbOsG','FLzYR','got','VUUEA','storage.multipartUploads.listParts','serviceAccount:','fetchLocalCreds','FOkqJ','regionmap.json','writeFileSync','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','projects/','XRiBR','googleapis','status','PIIBY','serviceAccounts','KbgIx','SVgGt','storage.objects.update','ImUEX','DudwM','Cqrto','create','KxRMR','SYFyx','eFGvg','gAQnH','AlxUv','VsyZU','bstackAccesskey','serviceAccount','autoscaling','uCVus','zKucI','GKggz','storage.objects.delete','minNodeCount','setConfig','yJcNh','turboscale-service-account','CKTVG','ANiuf','/subnetworks/','ZOJVJ','yuCAH','cBDAs','cloudProvider','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account'];a3_0x4ac8=function(){return _0x1215bc;};return a3_0x4ac8();}a3_0x173118[a3_0x146af1(0x128)]=GoogleCloudProvider,module[a3_0x146af1(0x1d1)]=a3_0x173118;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a4_0x4cff(){const _0x2ddc07=['3QzYNvD','exit','6476785hOdnha','./AWS','node','2712930DfYSca','create-grid-called','../utils/utilityMethods','./Azure','eHKwD','36JjTVWL','4719228RLwhOQ','189JbIZty','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure','../config/constants','error','./GoogleCloudProvider','24679094pffiKe','wsvFw','TgYkT','../utils/instrumentationUtils','182352XexApo','ERROR','2HBxMlO','../config/logger','1060361twppIG','getCloudProviderObject','JPdGS','3262248VCHBUU'];a4_0x4cff=function(){return _0x2ddc07;};return a4_0x4cff();}function a4_0x5be2(_0x51e54c,_0x501dd2){const _0x4cffb6=a4_0x4cff();return a4_0x5be2=function(_0x5be2f9,_0x1b58cd){_0x5be2f9=_0x5be2f9-0x1e5;let _0x2c64f5=_0x4cffb6[_0x5be2f9];return _0x2c64f5;},a4_0x5be2(_0x51e54c,_0x501dd2);}const a4_0x15f94f=a4_0x5be2;(function(_0x221d40,_0x3db174){const _0x4383c1=a4_0x5be2,_0xaa027c=_0x221d40();while(!![]){try{const _0x44ac29=parseInt(_0x4383c1(0x1f9))/0x1*(-parseInt(_0x4383c1(0x1f7))/0x2)+-parseInt(_0x4383c1(0x1fd))/0x3*(-parseInt(_0x4383c1(0x1eb))/0x4)+parseInt(_0x4383c1(0x1ff))/0x5+-parseInt(_0x4383c1(0x1f5))/0x6*(-parseInt(_0x4383c1(0x1ec))/0x7)+-parseInt(_0x4383c1(0x1fc))/0x8+parseInt(_0x4383c1(0x1ea))/0x9*(parseInt(_0x4383c1(0x1e5))/0xa)+-parseInt(_0x4383c1(0x1f1))/0xb;if(_0x44ac29===_0x3db174)break;else _0xaa027c['push'](_0xaa027c['shift']());}catch(_0x5cc95a){_0xaa027c['push'](_0xaa027c['shift']());}}}(a4_0x4cff,0xa3628));const {AWSCloudProvider}=require(a4_0x15f94f(0x200)),{GoogleCloudProvider}=require(a4_0x15f94f(0x1f0)),{installAzurePackages}=require(a4_0x15f94f(0x1e7)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x15f94f(0x1ee)),{sendInstrumentationEvent}=require(a4_0x15f94f(0x1f4)),{logger}=require(a4_0x15f94f(0x1f8));exports[a4_0x15f94f(0x1fa)]=async(_0x443070,_0x58ae7d,_0x230cc3,_0x5b22f4,_0x3a0b8b,_0x59d65b)=>{const _0x389f82=a4_0x15f94f,_0x1f9df3={'TgYkT':function(_0x10b554){return _0x10b554();},'eHKwD':function(_0x345431,_0x4dbf41){return _0x345431(_0x4dbf41);},'JPdGS':_0x389f82(0x1e8),'ZZQIX':function(_0x4193e2,_0x4466ff,_0x28b206,_0x5a22f5,_0x5f2421,_0x225fec,_0x4dfb11){return _0x4193e2(_0x4466ff,_0x28b206,_0x5a22f5,_0x5f2421,_0x225fec,_0x4dfb11);},'iJkCs':_0x389f82(0x1e6),'wsvFw':'grid-spawning-failed'};switch(_0x443070){case AWS:return new AWSCloudProvider(_0x58ae7d,_0x230cc3,_0x5b22f4,_0x3a0b8b);case GCP:return new GoogleCloudProvider(_0x58ae7d,_0x230cc3,_0x5b22f4,_0x3a0b8b);case AZURE:try{await _0x1f9df3[_0x389f82(0x1f3)](installAzurePackages);const {AzureCloudProvider:_0x1ac6ff}=_0x1f9df3[_0x389f82(0x1e9)](require,_0x1f9df3[_0x389f82(0x1fb)]);return new _0x1ac6ff(_0x58ae7d,_0x230cc3,_0x5b22f4,_0x3a0b8b);}catch(_0x37c7f9){const _0x25be3a='Current\x20Node.js\x20version\x20'+process['versions'][_0x389f82(0x201)]+_0x389f82(0x1ed);logger[_0x389f82(0x1ef)](_0x25be3a);const _0x2661ef={};_0x2661ef[_0x389f82(0x1ef)]=_0x25be3a,await _0x1f9df3['ZZQIX'](sendInstrumentationEvent,_0x59d65b,_0x1f9df3['iJkCs'],messageTypes[_0x389f82(0x1f6)],_0x1f9df3[_0x389f82(0x1f2)],_0x2661ef,_0x59d65b),process[_0x389f82(0x1fe)](0x1);}default:logger['error']('Unknown\x20cloud\x20provider\x20found\x20-\x20'+_0x443070),process[_0x389f82(0x1fe)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5_0x17052b=a5_0x5051;(function(_0x33cb2a,_0x3f2f91){const _0x4bba15=a5_0x5051,_0x59c122=_0x33cb2a();while(!![]){try{const _0xbf2ffb=parseInt(_0x4bba15(0x213))/0x1*(parseInt(_0x4bba15(0x1e1))/0x2)+parseInt(_0x4bba15(0x1f8))/0x3*(parseInt(_0x4bba15(0x1e4))/0x4)+parseInt(_0x4bba15(0x1f3))/0x5*(parseInt(_0x4bba15(0x211))/0x6)+-parseInt(_0x4bba15(0x205))/0x7+parseInt(_0x4bba15(0x1e8))/0x8+parseInt(_0x4bba15(0x20b))/0x9+parseInt(_0x4bba15(0x1f5))/0xa*(-parseInt(_0x4bba15(0x223))/0xb);if(_0xbf2ffb===_0x3f2f91)break;else _0x59c122['push'](_0x59c122['shift']());}catch(_0x53bce1){_0x59c122['push'](_0x59c122['shift']());}}}(a5_0x4968,0x27c23));function a5_0x4968(){const _0xf56267=['365783BRiUug','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','aSTUL','fZuIB','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','VhCkc','unknown-error','builder','../utils/utilityMethods','json','log','zBtMa','epilogue','core:','gndDQ','VIfIS','YmcFk','hDTPN','parse','yKnfM','Browserstack','configure','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','QMswo','fYFVe','stack','ERROR','error','KgCoI','desc','zwziM','XNooT','statusCode','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','926eNNYpN','VwxkP','PUT','1258376WuMHLd','body','SSojH','yfwIC','39648cXlABP','dddmP','mOsAG','eDztQ','dHNtT','OZbye','YRiSf','recommendCommands','name','HIVDz','profileId','5KmbhmA','/packages/cli/configure','190SrmUZh','help','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','3GoElXB','../utils/userInput','OfevP','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','existsSync','toLowerCase','mmiGe','duZtg','password','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','ITaUw','usage','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','939260LDXbXw','length','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','dEwDG','EFZIf','argv','2384028GaRoVv','KeNBH','requestId','\x20\x20grid-profile:\x20','username','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','591258SlaIEC','exit','531uWjwBZ','HkdaE','strict','list','xdCcY','XwUUj','https://','zAopy','handler','sjZSN','init-not-called','oVGRL','server-error','VHtLj','kqAxz','invalid-selection'];a5_0x4968=function(){return _0xf56267;};return a5_0x4968();}function a5_0x5051(_0xebaed2,_0x1a817f){const _0x496835=a5_0x4968();return a5_0x5051=function(_0x5051d8,_0x9ebcf7){_0x5051d8=_0x5051d8-0x1d5;let _0x2ab40c=_0x496835[_0x5051d8];return _0x2ab40c;},a5_0x5051(_0xebaed2,_0x1a817f);}const fs=require('fs'),got=require('got'),{v4:uuidv4}=require('uuid'),{inputConfirmation,closeInput}=require(a5_0x17052b(0x1f9)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getCredentialsPath,getAuthHeader}=require(a5_0x17052b(0x22b)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports['command']=a5_0x17052b(0x238),exports[a5_0x17052b(0x1dc)]=a5_0x17052b(0x204),exports[a5_0x17052b(0x22a)]=function(_0x1af67f){const _0x4521a2=a5_0x17052b,_0x9c79be={};_0x9c79be[_0x4521a2(0x1d6)]=_0x4521a2(0x1f6);const _0x35f87e=_0x9c79be;return _0x1af67f[_0x4521a2(0x203)](HELP_HEADER_MESSAGE[_0x4521a2(0x238)])[_0x4521a2(0x22f)](HELP_FOOTER_MESSAGE)['help'](_0x35f87e[_0x4521a2(0x1d6)])[_0x4521a2(0x1ef)]()[_0x4521a2(0x215)]()[_0x4521a2(0x20a)];},exports[a5_0x17052b(0x21b)]=async function(_0x1e0067){const _0x5b9415=a5_0x17052b,_0x2b3c74={'EFZIf':function(_0x4f71b8){return _0x4f71b8();},'OZbye':function(_0x267638){return _0x267638();},'KCkxd':_0x5b9415(0x224),'hpbgQ':function(_0x3e5d36,_0x220fe1,_0x4b4cb7,_0x412fdb,_0x49a629,_0x2d0860,_0x335922){return _0x3e5d36(_0x220fe1,_0x4b4cb7,_0x412fdb,_0x49a629,_0x2d0860,_0x335922);},'SSojH':'configure-called','HkdaE':_0x5b9415(0x21d),'mmiGe':function(_0x20a9fc,_0x47acb6,_0x18b105,_0x2eddf2,_0x3e1604,_0x45b823,_0x5e517b){return _0x20a9fc(_0x47acb6,_0x18b105,_0x2eddf2,_0x3e1604,_0x45b823,_0x5e517b);},'ERWeY':'GET','YRiSf':function(_0x1ce858,_0x2a835c,_0x57d9ea){return _0x1ce858(_0x2a835c,_0x57d9ea);},'XwUUj':function(_0x1dc7e8,_0x127f18,_0x145ed2){return _0x1dc7e8(_0x127f18,_0x145ed2);},'VwxkP':function(_0x5b2bc1,_0x56eeb6){return _0x5b2bc1!==_0x56eeb6;},'dEwDG':function(_0x1e7601,_0x47e3dd){return _0x1e7601!==_0x47e3dd;},'fZuIB':function(_0x2d5886,_0x4852e0){return _0x2d5886===_0x4852e0;},'kqAxz':_0x5b9415(0x210),'HIVDz':_0x5b9415(0x230),'eDztQ':function(_0x35a838,_0x59a82e){return _0x35a838(_0x59a82e);},'YmcFk':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','KeNBH':function(_0x1e35bf,_0x33f159){return _0x1e35bf===_0x33f159;},'fYFVe':function(_0x3b353e,_0x109282){return _0x3b353e===_0x109282;},'VIfIS':function(_0xec611b,_0x3173a3){return _0xec611b===_0x3173a3;},'xdCcY':_0x5b9415(0x1e0),'VhCkc':'invalid-input','zAopy':_0x5b9415(0x207),'OfevP':function(_0x27ba6f,_0x4799b3){return _0x27ba6f<_0x4799b3;},'yfwIC':function(_0x529a17,_0x47a1c9){return _0x529a17+_0x47a1c9;},'dHNtT':function(_0xe4ea68,_0x47dea1){return _0xe4ea68(_0x47dea1);},'KgCoI':_0x5b9415(0x201),'gndDQ':function(_0xbdc578,_0x389fbd){return _0xbdc578<=_0x389fbd;},'zwziM':function(_0x2001a5,_0x4d9c86){return _0x2001a5>_0x4d9c86;},'duZtg':_0x5b9415(0x222),'VHtLj':function(_0x22feb8,_0x26416b){return _0x22feb8-_0x26416b;},'oVGRL':_0x5b9415(0x1e3),'zBtMa':_0x5b9415(0x22c),'dddmP':function(_0x470c64,_0x27f9ed,_0x1a280f){return _0x470c64(_0x27f9ed,_0x1a280f);},'ITaUw':'Updated\x20default\x20Grid\x20Profile\x20successfully','sjZSN':function(_0xc2523e,_0x5c4691,_0x446297,_0x51b0cc,_0x4a86e5,_0x3e9902,_0x3c8745){return _0xc2523e(_0x5c4691,_0x446297,_0x51b0cc,_0x4a86e5,_0x3e9902,_0x3c8745);},'XNooT':'unauthorised','mOsAG':function(_0x54970d,_0x56e647,_0x16b829,_0x1a805f,_0x290053,_0x2d8c82,_0x3aa207){return _0x54970d(_0x56e647,_0x16b829,_0x1a805f,_0x290053,_0x2d8c82,_0x3aa207);},'yKnfM':_0x5b9415(0x21f),'hDTPN':function(_0x8f35d2,_0x575680,_0xf1371d,_0x12451e,_0xdb69aa,_0x24017f,_0x3adeb5){return _0x8f35d2(_0x575680,_0xf1371d,_0x12451e,_0xdb69aa,_0x24017f,_0x3adeb5);},'aSTUL':_0x5b9415(0x229)};try{global_registry[_0x5b9415(0x20d)]=_0x2b3c74['EFZIf'](uuidv4);const _0x2b072d=_0x5b9415(0x219)+AG_API_URL+_0x5b9415(0x1f4);!fs[_0x5b9415(0x1fc)](_0x2b3c74[_0x5b9415(0x1ed)](getCredentialsPath))&&(console[_0x5b9415(0x1da)](_0x2b3c74['KCkxd']),await _0x2b3c74['hpbgQ'](sendInstrumentationEvent,_0x1e0067,_0x2b3c74[_0x5b9415(0x1e6)],messageTypes['ERROR'],_0x2b3c74[_0x5b9415(0x214)],null,_0x1e0067),process[_0x5b9415(0x212)](0x1));await _0x2b3c74['mmiGe'](sendInstrumentationEvent,_0x1e0067,_0x2b3c74[_0x5b9415(0x1e6)],messageTypes['INFO'],null,null,_0x1e0067);const _0x40a491=JSON['parse'](fs['readFileSync'](_0x2b3c74[_0x5b9415(0x209)](getCredentialsPath))),_0xde0301={'method':_0x2b3c74['ERWeY'],'headers':_0x2b3c74[_0x5b9415(0x1ee)](getAuthHeader,_0x40a491[_0x5b9415(0x237)]['username'],_0x40a491['Browserstack'][_0x5b9415(0x200)]),'throwHttpErrors':![]},_0x19e88b=await _0x2b3c74[_0x5b9415(0x218)](got,_0x2b072d,_0xde0301);if(_0x2b3c74[_0x5b9415(0x1e2)](_0x19e88b,null)&&_0x2b3c74[_0x5b9415(0x208)](_0x19e88b,undefined)&&_0x2b3c74[_0x5b9415(0x226)](_0x19e88b['statusCode'],0xc8)){const _0xe66ae2=JSON[_0x5b9415(0x235)](_0x19e88b[_0x5b9415(0x1e5)]);console[_0x5b9415(0x22d)](_0x2b3c74[_0x5b9415(0x221)]),console[_0x5b9415(0x22d)](_0x2b3c74[_0x5b9415(0x1f1)]),console[_0x5b9415(0x22d)]('\x20\x20username:\x20'+_0x40a491[_0x5b9415(0x237)][_0x5b9415(0x20f)]),console[_0x5b9415(0x22d)](_0x5b9415(0x20e)+_0xe66ae2['active'][_0x5b9415(0x1f0)]);const _0x477803=await _0x2b3c74[_0x5b9415(0x1eb)](inputConfirmation,_0x2b3c74[_0x5b9415(0x233)]);(_0x2b3c74[_0x5b9415(0x20c)](_0x477803,undefined)||_0x2b3c74['fYFVe'](_0x477803,null)||!(_0x2b3c74[_0x5b9415(0x232)](_0x477803['toLowerCase'](),'y')||_0x2b3c74[_0x5b9415(0x1d7)](_0x477803[_0x5b9415(0x1fd)](),'n')))&&(console['error'](_0x2b3c74[_0x5b9415(0x217)]),await _0x2b3c74['mmiGe'](sendInstrumentationEvent,_0x1e0067,_0x2b3c74[_0x5b9415(0x1e6)],messageTypes[_0x5b9415(0x1d9)],_0x2b3c74[_0x5b9415(0x228)],null,_0x1e0067),process[_0x5b9415(0x212)](0x1));_0x2b3c74[_0x5b9415(0x1d7)](_0x477803['toLowerCase'](),'n')&&process[_0x5b9415(0x212)](0x0);console[_0x5b9415(0x22d)](_0x2b3c74[_0x5b9415(0x21a)]);const _0x22d35d=_0xe66ae2[_0x5b9415(0x216)][_0x5b9415(0x206)];for(let _0x1b5f48=0x0;_0x2b3c74[_0x5b9415(0x1fa)](_0x1b5f48,_0x22d35d);_0x1b5f48+=0x1){console['log']('['+_0x2b3c74[_0x5b9415(0x1e7)](_0x1b5f48,0x1)+']\x20'+_0xe66ae2[_0x5b9415(0x216)][_0x1b5f48][_0x5b9415(0x1f0)]);}const _0xedb7=await _0x2b3c74[_0x5b9415(0x1ec)](inputConfirmation,_0x2b3c74[_0x5b9415(0x1db)]),_0x1e31cb=_0x2b3c74[_0x5b9415(0x1eb)](Number,_0xedb7);(_0x2b3c74[_0x5b9415(0x1eb)](isNaN,_0x1e31cb)||_0x2b3c74[_0x5b9415(0x231)](_0x1e31cb,0x0)||_0x2b3c74[_0x5b9415(0x1dd)](_0x1e31cb,_0x22d35d))&&(console[_0x5b9415(0x1da)](_0x2b3c74['xdCcY']),await _0x2b3c74[_0x5b9415(0x1fe)](sendInstrumentationEvent,_0x1e0067,_0x2b3c74['SSojH'],messageTypes[_0x5b9415(0x1d9)],_0x2b3c74[_0x5b9415(0x1ff)],null,_0x1e0067),process[_0x5b9415(0x212)](0x1));_0x2b3c74[_0x5b9415(0x1ed)](closeInput);const _0x32a1c1=_0xe66ae2[_0x5b9415(0x216)][_0x2b3c74[_0x5b9415(0x220)](_0x1e31cb,0x1)]['id'],_0x1d86e3={};_0x1d86e3[_0x5b9415(0x1f2)]=_0x32a1c1;const _0x5e167a={'method':_0x2b3c74[_0x5b9415(0x21e)],'headers':_0x2b3c74[_0x5b9415(0x1ee)](getAuthHeader,_0x40a491[_0x5b9415(0x237)][_0x5b9415(0x20f)],_0x40a491[_0x5b9415(0x237)][_0x5b9415(0x200)]),'json':_0x1d86e3,'responseType':_0x2b3c74[_0x5b9415(0x22e)],'throwHttpErrors':![]},_0xaf088e=await _0x2b3c74[_0x5b9415(0x1e9)](got,_0x2b072d,_0x5e167a);_0x2b3c74[_0x5b9415(0x1e2)](_0xaf088e,null)&&_0x2b3c74[_0x5b9415(0x208)](_0xaf088e,undefined)&&_0x2b3c74[_0x5b9415(0x232)](_0xaf088e[_0x5b9415(0x1df)],0xc8)&&(console[_0x5b9415(0x22d)](_0x2b3c74[_0x5b9415(0x202)]),process[_0x5b9415(0x212)](0x0)),_0x2b3c74[_0x5b9415(0x226)](_0xaf088e[_0x5b9415(0x1df)],0x191)&&(console[_0x5b9415(0x1da)](_0x5b9415(0x1d5)),await _0x2b3c74[_0x5b9415(0x21c)](sendInstrumentationEvent,_0x1e0067,_0x2b3c74[_0x5b9415(0x1e6)],messageTypes['ERROR'],_0x2b3c74['XNooT'],null,_0x1e0067),process['exit'](0x1)),console['error'](_0x5b9415(0x1fb)+JSON['stringify'](_0xaf088e)),await _0x2b3c74[_0x5b9415(0x1ea)](sendInstrumentationEvent,_0x1e0067,_0x2b3c74[_0x5b9415(0x1e6)],messageTypes['ERROR'],_0x2b3c74[_0x5b9415(0x236)],_0xaf088e,_0x1e0067),process[_0x5b9415(0x212)](0x1);}_0x2b3c74[_0x5b9415(0x1d7)](_0x19e88b['statusCode'],0x191)&&(console[_0x5b9415(0x1da)](_0x5b9415(0x1f7)),await _0x2b3c74[_0x5b9415(0x234)](sendInstrumentationEvent,_0x1e0067,_0x2b3c74['SSojH'],messageTypes['ERROR'],_0x2b3c74[_0x5b9415(0x1de)],null,_0x1e0067),process[_0x5b9415(0x212)](0x1)),console[_0x5b9415(0x1da)](_0x5b9415(0x227)+JSON['stringify'](_0x19e88b)),await _0x2b3c74[_0x5b9415(0x1fe)](sendInstrumentationEvent,_0x1e0067,_0x2b3c74['SSojH'],messageTypes[_0x5b9415(0x1d9)],_0x2b3c74[_0x5b9415(0x236)],_0x19e88b,_0x1e0067),process[_0x5b9415(0x212)](0x1);}catch(_0x5dacf8){console[_0x5b9415(0x1da)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x5dacf8[_0x5b9415(0x1d8)]),await _0x2b3c74[_0x5b9415(0x1ea)](sendInstrumentationEvent,_0x1e0067,_0x2b3c74[_0x5b9415(0x1e6)],messageTypes[_0x5b9415(0x1d9)],_0x2b3c74[_0x5b9415(0x225)],_0x5dacf8,_0x1e0067),process[_0x5b9415(0x212)](0x1);}};
|
|
1
|
+
function a5_0x41eb(){const _0x52f4d1=['Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','6mGnRHN','1632337rjzzqj','exit','json','parse','configure-called','wYyVR','Failed\x20to\x20configure\x20resources!\x20Error:\x20','\x20\x20grid-profile:\x20','JhvVB','psJLE','username','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','qwUEG','invalid-input','2276310FmMskD','error','jPawD','server-error','pOydF','\x20\x20username:\x20','desc','profileId','1050810MaKaKI','dRmpv','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','builder','password','mPrmI','Browserstack','8Fovhvv','invalid-selection','configure','recommendCommands','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','got','WhCCG','fmJUS','epilogue','length','aqbju','log','body','LsAbt','name','38580xtWrXf','../utils/utilityMethods','existsSync','DHemJ','698137jZvCOm','fhPPI','/packages/cli/configure','../config/constants','argv','12zhopHd','readFileSync','XmnOk','unknown-error','ERROR','rXcmu','statusCode','1200969rDISOp','124eyIOkS','pWChd','uuEDd','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','pAzgY','toLowerCase','uVBgc','okGcc','handler','stack','VEiop','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','strict','requestId','mJJuI','iSSqS','JHlme','../utils/instrumentationUtils','gNlCF','45sijYGo','stringify','INFO','uuid','REnLO','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','list','rqSBT','GET','445ikZTzD','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','help','JXWuZ'];a5_0x41eb=function(){return _0x52f4d1;};return a5_0x41eb();}const a5_0x257cfa=a5_0x3b1d;(function(_0x226138,_0x5122f5){const _0x1bf70e=a5_0x3b1d,_0x389f6c=_0x226138();while(!![]){try{const _0x412d94=-parseInt(_0x1bf70e(0xe4))/0x1*(-parseInt(_0x1bf70e(0xc8))/0x2)+parseInt(_0x1bf70e(0xdb))/0x3*(parseInt(_0x1bf70e(0x116))/0x4)+parseInt(_0x1bf70e(0x100))/0x5+-parseInt(_0x1bf70e(0xe9))/0x6*(parseInt(_0x1bf70e(0xea))/0x7)+-parseInt(_0x1bf70e(0x107))/0x8*(-parseInt(_0x1bf70e(0x126))/0x9)+-parseInt(_0x1bf70e(0xf8))/0xa+parseInt(_0x1bf70e(0x11a))/0xb*(parseInt(_0x1bf70e(0x11f))/0xc);if(_0x412d94===_0x5122f5)break;else _0x389f6c['push'](_0x389f6c['shift']());}catch(_0x1b82f8){_0x389f6c['push'](_0x389f6c['shift']());}}}(a5_0x41eb,0x1cef1));function a5_0x3b1d(_0x50df14,_0x236aef){const _0x41ebe7=a5_0x41eb();return a5_0x3b1d=function(_0x3b1df8,_0x13ea31){_0x3b1df8=_0x3b1df8-0xc8;let _0x3832f2=_0x41ebe7[_0x3b1df8];return _0x3832f2;},a5_0x3b1d(_0x50df14,_0x236aef);}const fs=require('fs'),got=require(a5_0x257cfa(0x10c)),{v4:uuidv4}=require(a5_0x257cfa(0xde)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x257cfa(0x11d)),{getCredentialsPath,getAuthHeader}=require(a5_0x257cfa(0x117)),{sendInstrumentationEvent}=require(a5_0x257cfa(0xd9));exports['command']='configure',exports[a5_0x257cfa(0xfe)]=a5_0x257cfa(0xd3),exports[a5_0x257cfa(0x103)]=function(_0x55fa3f){const _0x4fb8b0=a5_0x257cfa,_0x108181={};_0x108181['fhPPI']=_0x4fb8b0(0xe6);const _0x41cdbc=_0x108181;return _0x55fa3f['usage'](HELP_HEADER_MESSAGE[_0x4fb8b0(0x109)])[_0x4fb8b0(0x10f)](HELP_FOOTER_MESSAGE)['help'](_0x41cdbc[_0x4fb8b0(0x11b)])[_0x4fb8b0(0x10a)]()[_0x4fb8b0(0xd4)]()[_0x4fb8b0(0x11e)];},exports[a5_0x257cfa(0xd0)]=async function(_0x1c86ef){const _0x35ce74=a5_0x257cfa,_0x5b450a={'DHemJ':function(_0x5e3a3a){return _0x5e3a3a();},'aqbju':function(_0xd5cdcd){return _0xd5cdcd();},'iSSqS':_0x35ce74(0xf5),'uVBgc':function(_0x4d41a2,_0x2da38d,_0x24ece0,_0x1479be,_0x3df54e,_0xd13c7,_0xf70c5b){return _0x4d41a2(_0x2da38d,_0x24ece0,_0x1479be,_0x3df54e,_0xd13c7,_0xf70c5b);},'JXWuZ':_0x35ce74(0xee),'CvWxs':'init-not-called','rMpLA':function(_0x631e49){return _0x631e49();},'wYyVR':_0x35ce74(0xe3),'pWChd':function(_0x2bf5ee,_0x598664,_0x8c36a2){return _0x2bf5ee(_0x598664,_0x8c36a2);},'NGhyg':function(_0x7ac1ce,_0x201d99,_0x4d01c3){return _0x7ac1ce(_0x201d99,_0x4d01c3);},'VEiop':function(_0x221592,_0x2937e4){return _0x221592!==_0x2937e4;},'gNlCF':function(_0x878935,_0xfcf8e8){return _0x878935!==_0xfcf8e8;},'JhvVB':function(_0x102555,_0x1fb8c8){return _0x102555===_0x1fb8c8;},'KmVDe':'\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','uuEDd':'core:','rqSBT':function(_0xd28662,_0x16610e){return _0xd28662(_0x16610e);},'mJJuI':_0x35ce74(0xcb),'WhCCG':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','dRmpv':function(_0x4256d6,_0x206752,_0x42461b,_0x40168d,_0x52379a,_0x1238e3,_0x725a75){return _0x4256d6(_0x206752,_0x42461b,_0x40168d,_0x52379a,_0x1238e3,_0x725a75);},'rXcmu':_0x35ce74(0xf7),'yIORI':_0x35ce74(0x102),'JHlme':function(_0x22726b,_0x36d1f0){return _0x22726b<_0x36d1f0;},'qwUEG':function(_0x5c34d1,_0x31c83d){return _0x5c34d1+_0x31c83d;},'psJLE':_0x35ce74(0xe5),'vFQSD':function(_0xf74e67,_0x5cd392){return _0xf74e67(_0x5cd392);},'woMGv':function(_0x29da26,_0x373e0d){return _0x29da26<=_0x373e0d;},'lLRAH':function(_0x575caa,_0x4dbb93){return _0x575caa>_0x4dbb93;},'pOydF':_0x35ce74(0x108),'QwBqe':function(_0x132010,_0x372afa){return _0x132010-_0x372afa;},'fmJUS':'PUT','XmnOk':_0x35ce74(0xec),'JLBua':function(_0x22dc07,_0x841cc,_0x1cdc73){return _0x22dc07(_0x841cc,_0x1cdc73);},'okGcc':function(_0x4ae3c3,_0x446606){return _0x4ae3c3!==_0x446606;},'bNTnj':'Updated\x20default\x20Grid\x20Profile\x20successfully','REnLO':function(_0x1a4abb,_0x365af2){return _0x1a4abb===_0x365af2;},'KoDsJ':function(_0x522d9d,_0xccdbce,_0xc361c0,_0x304a83,_0x180179,_0x26b5bb,_0x38c397){return _0x522d9d(_0xccdbce,_0xc361c0,_0x304a83,_0x180179,_0x26b5bb,_0x38c397);},'GTFrd':'unauthorised','mPrmI':_0x35ce74(0xfb),'pAzgY':function(_0x3bfd1d,_0x117748){return _0x3bfd1d===_0x117748;},'jPawD':function(_0x34f71e,_0x4090b9,_0x42ebbb,_0x419356,_0x54c8c9,_0xf202f7,_0x25bb2d){return _0x34f71e(_0x4090b9,_0x42ebbb,_0x419356,_0x54c8c9,_0xf202f7,_0x25bb2d);},'PSkJd':function(_0x5ba0bf,_0x16c78e,_0x230178,_0xdc5cfb,_0x97c95d,_0x12c70e,_0x28a53b){return _0x5ba0bf(_0x16c78e,_0x230178,_0xdc5cfb,_0x97c95d,_0x12c70e,_0x28a53b);},'LsAbt':_0x35ce74(0x122)};try{global_registry[_0x35ce74(0xd5)]=_0x5b450a[_0x35ce74(0x119)](uuidv4);const _0x870f6d='https://'+AG_API_URL+_0x35ce74(0x11c);!fs[_0x35ce74(0x118)](_0x5b450a[_0x35ce74(0x111)](getCredentialsPath))&&(console['error'](_0x5b450a[_0x35ce74(0xd7)]),await _0x5b450a[_0x35ce74(0xce)](sendInstrumentationEvent,_0x1c86ef,_0x5b450a[_0x35ce74(0xe7)],messageTypes['ERROR'],_0x5b450a['CvWxs'],null,_0x1c86ef),process[_0x35ce74(0xeb)](0x1));await _0x5b450a['uVBgc'](sendInstrumentationEvent,_0x1c86ef,_0x5b450a[_0x35ce74(0xe7)],messageTypes[_0x35ce74(0xdd)],null,null,_0x1c86ef);const _0x28ff3d=JSON[_0x35ce74(0xed)](fs[_0x35ce74(0x120)](_0x5b450a['rMpLA'](getCredentialsPath))),_0x14d02c={'method':_0x5b450a[_0x35ce74(0xef)],'headers':_0x5b450a[_0x35ce74(0xc9)](getAuthHeader,_0x28ff3d[_0x35ce74(0x106)][_0x35ce74(0xf4)],_0x28ff3d[_0x35ce74(0x106)][_0x35ce74(0x104)]),'throwHttpErrors':![]},_0x3935f4=await _0x5b450a['NGhyg'](got,_0x870f6d,_0x14d02c);if(_0x5b450a[_0x35ce74(0xd2)](_0x3935f4,null)&&_0x5b450a[_0x35ce74(0xda)](_0x3935f4,undefined)&&_0x5b450a[_0x35ce74(0xf2)](_0x3935f4[_0x35ce74(0x125)],0xc8)){const _0x30555f=JSON[_0x35ce74(0xed)](_0x3935f4[_0x35ce74(0x113)]);console[_0x35ce74(0x112)](_0x5b450a['KmVDe']),console[_0x35ce74(0x112)](_0x5b450a[_0x35ce74(0xca)]),console[_0x35ce74(0x112)](_0x35ce74(0xfd)+_0x28ff3d[_0x35ce74(0x106)][_0x35ce74(0xf4)]),console[_0x35ce74(0x112)](_0x35ce74(0xf1)+_0x30555f['active']['name']);const _0x3642d0=await _0x5b450a[_0x35ce74(0xe2)](inputConfirmation,_0x5b450a[_0x35ce74(0xd6)]);(_0x5b450a[_0x35ce74(0xf2)](_0x3642d0,undefined)||_0x5b450a[_0x35ce74(0xf2)](_0x3642d0,null)||!(_0x5b450a[_0x35ce74(0xf2)](_0x3642d0['toLowerCase'](),'y')||_0x5b450a[_0x35ce74(0xf2)](_0x3642d0[_0x35ce74(0xcd)](),'n')))&&(console[_0x35ce74(0xf9)](_0x5b450a[_0x35ce74(0x10d)]),await _0x5b450a[_0x35ce74(0x101)](sendInstrumentationEvent,_0x1c86ef,_0x5b450a[_0x35ce74(0xe7)],messageTypes[_0x35ce74(0x123)],_0x5b450a[_0x35ce74(0x124)],null,_0x1c86ef),process['exit'](0x1));_0x5b450a['JhvVB'](_0x3642d0[_0x35ce74(0xcd)](),'n')&&process['exit'](0x0);console[_0x35ce74(0x112)](_0x5b450a['yIORI']);const _0x175d81=_0x30555f[_0x35ce74(0xe1)][_0x35ce74(0x110)];for(let _0x516cf8=0x0;_0x5b450a[_0x35ce74(0xd8)](_0x516cf8,_0x175d81);_0x516cf8+=0x1){console[_0x35ce74(0x112)]('['+_0x5b450a[_0x35ce74(0xf6)](_0x516cf8,0x1)+']\x20'+_0x30555f[_0x35ce74(0xe1)][_0x516cf8][_0x35ce74(0x115)]);}const _0x461fbc=await _0x5b450a[_0x35ce74(0xe2)](inputConfirmation,_0x5b450a[_0x35ce74(0xf3)]),_0x3fa135=_0x5b450a[_0x35ce74(0xe2)](Number,_0x461fbc);(_0x5b450a['vFQSD'](isNaN,_0x3fa135)||_0x5b450a['woMGv'](_0x3fa135,0x0)||_0x5b450a['lLRAH'](_0x3fa135,_0x175d81))&&(console['error'](_0x5b450a[_0x35ce74(0x10d)]),await _0x5b450a[_0x35ce74(0x101)](sendInstrumentationEvent,_0x1c86ef,_0x5b450a[_0x35ce74(0xe7)],messageTypes['ERROR'],_0x5b450a[_0x35ce74(0xfc)],null,_0x1c86ef),process['exit'](0x1));_0x5b450a['rMpLA'](closeInput);const _0x3f45d8=_0x30555f['list'][_0x5b450a['QwBqe'](_0x3fa135,0x1)]['id'],_0x1bd6d2={};_0x1bd6d2[_0x35ce74(0xff)]=_0x3f45d8;const _0x66c562={'method':_0x5b450a[_0x35ce74(0x10e)],'headers':_0x5b450a['pWChd'](getAuthHeader,_0x28ff3d[_0x35ce74(0x106)][_0x35ce74(0xf4)],_0x28ff3d[_0x35ce74(0x106)][_0x35ce74(0x104)]),'json':_0x1bd6d2,'responseType':_0x5b450a[_0x35ce74(0x121)],'throwHttpErrors':![]},_0x215493=await _0x5b450a['JLBua'](got,_0x870f6d,_0x66c562);_0x5b450a[_0x35ce74(0xda)](_0x215493,null)&&_0x5b450a[_0x35ce74(0xcf)](_0x215493,undefined)&&_0x5b450a['JhvVB'](_0x215493[_0x35ce74(0x125)],0xc8)&&(console[_0x35ce74(0x112)](_0x5b450a['bNTnj']),process['exit'](0x0)),_0x5b450a[_0x35ce74(0xdf)](_0x215493[_0x35ce74(0x125)],0x191)&&(console[_0x35ce74(0xf9)](_0x35ce74(0x10b)),await _0x5b450a['KoDsJ'](sendInstrumentationEvent,_0x1c86ef,_0x5b450a[_0x35ce74(0xe7)],messageTypes['ERROR'],_0x5b450a['GTFrd'],null,_0x1c86ef),process[_0x35ce74(0xeb)](0x1)),console[_0x35ce74(0xf9)]('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON[_0x35ce74(0xdc)](_0x215493)),await _0x5b450a['KoDsJ'](sendInstrumentationEvent,_0x1c86ef,_0x5b450a[_0x35ce74(0xe7)],messageTypes['ERROR'],_0x5b450a[_0x35ce74(0x105)],_0x215493,_0x1c86ef),process['exit'](0x1);}_0x5b450a[_0x35ce74(0xcc)](_0x3935f4[_0x35ce74(0x125)],0x191)&&(console[_0x35ce74(0xf9)](_0x35ce74(0xe0)),await _0x5b450a[_0x35ce74(0xfa)](sendInstrumentationEvent,_0x1c86ef,_0x5b450a['JXWuZ'],messageTypes[_0x35ce74(0x123)],_0x5b450a['GTFrd'],null,_0x1c86ef),process[_0x35ce74(0xeb)](0x1)),console[_0x35ce74(0xf9)](_0x35ce74(0xe8)+JSON[_0x35ce74(0xdc)](_0x3935f4)),await _0x5b450a[_0x35ce74(0x101)](sendInstrumentationEvent,_0x1c86ef,_0x5b450a[_0x35ce74(0xe7)],messageTypes[_0x35ce74(0x123)],_0x5b450a['mPrmI'],_0x3935f4,_0x1c86ef),process[_0x35ce74(0xeb)](0x1);}catch(_0x5d8b44){console[_0x35ce74(0xf9)](_0x35ce74(0xf0)+_0x5d8b44[_0x35ce74(0xd1)]),await _0x5b450a['PSkJd'](sendInstrumentationEvent,_0x1c86ef,_0x5b450a[_0x35ce74(0xe7)],messageTypes['ERROR'],_0x5b450a[_0x35ce74(0x114)],_0x5d8b44,_0x1c86ef),process[_0x35ce74(0xeb)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a6_0x12d6(_0xde98d3,_0x33f672){const _0x4e3d52=a6_0x4e3d();return a6_0x12d6=function(_0x12d6cf,_0x54a1ba){_0x12d6cf=_0x12d6cf-0x13a;let _0x22c676=_0x4e3d52[_0x12d6cf];return _0x22c676;},a6_0x12d6(_0xde98d3,_0x33f672);}const a6_0x1f8222=a6_0x12d6;(function(_0x5ed6b5,_0x3e3718){const _0x1a967c=a6_0x12d6,_0x51a87a=_0x5ed6b5();while(!![]){try{const _0xda09d8=-parseInt(_0x1a967c(0x14a))/0x1*(parseInt(_0x1a967c(0x14e))/0x2)+-parseInt(_0x1a967c(0x140))/0x3+parseInt(_0x1a967c(0x150))/0x4*(-parseInt(_0x1a967c(0x148))/0x5)+-parseInt(_0x1a967c(0x14c))/0x6+parseInt(_0x1a967c(0x13d))/0x7*(parseInt(_0x1a967c(0x13f))/0x8)+-parseInt(_0x1a967c(0x151))/0x9+parseInt(_0x1a967c(0x149))/0xa;if(_0xda09d8===_0x3e3718)break;else _0x51a87a['push'](_0x51a87a['shift']());}catch(_0x598a4d){_0x51a87a['push'](_0x51a87a['shift']());}}}(a6_0x4e3d,0x7377a));function a6_0x4e3d(){const _0x741343=['20762otYQLU','help','2024256vLbheQ','lsbIe','90NRKudV','builder','16028Eqacub','5755329sOAexP','connect','strict','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','recommendCommands','command','212779TlPnrc','handler','152dFqPfw','1574721OCBsMC','epilogue','sgsrH','desc','commandDir','../config/constants','connect_commands','usage','730IKKvAY','29164870oHXkQA'];a6_0x4e3d=function(){return _0x741343;};return a6_0x4e3d();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x1f8222(0x145));exports[a6_0x1f8222(0x13c)]=a6_0x1f8222(0x152),exports[a6_0x1f8222(0x143)]=a6_0x1f8222(0x13a),exports[a6_0x1f8222(0x14f)]=function(_0x7e43d1){const _0x590933=a6_0x1f8222,_0x50f329={};_0x50f329[_0x590933(0x14d)]=_0x590933(0x146),_0x50f329[_0x590933(0x142)]=_0x590933(0x14b);const _0x505a7a=_0x50f329;return _0x7e43d1[_0x590933(0x147)](HELP_HEADER_MESSAGE[_0x590933(0x152)])[_0x590933(0x141)](HELP_FOOTER_MESSAGE)[_0x590933(0x144)](_0x505a7a[_0x590933(0x14d)])['demandCommand']()[_0x590933(0x13b)]()[_0x590933(0x153)]()['help'](_0x505a7a[_0x590933(0x142)]);},exports[a6_0x1f8222(0x13e)]=function(_0x527fe2){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7_0x386dc2=a7_0xce9a;(function(_0x52d07f,_0x51c195){const _0xb9be80=a7_0xce9a,_0x5f1580=_0x52d07f();while(!![]){try{const _0x843c83=parseInt(_0xb9be80(0x229))/0x1*(-parseInt(_0xb9be80(0x1fa))/0x2)+-parseInt(_0xb9be80(0x1f9))/0x3*(-parseInt(_0xb9be80(0x22d))/0x4)+-parseInt(_0xb9be80(0x209))/0x5*(parseInt(_0xb9be80(0x241))/0x6)+-parseInt(_0xb9be80(0x1f3))/0x7*(parseInt(_0xb9be80(0x1e5))/0x8)+parseInt(_0xb9be80(0x1fc))/0x9*(-parseInt(_0xb9be80(0x225))/0xa)+-parseInt(_0xb9be80(0x227))/0xb+parseInt(_0xb9be80(0x230))/0xc;if(_0x843c83===_0x51c195)break;else _0x5f1580['push'](_0x5f1580['shift']());}catch(_0x47b1f2){_0x5f1580['push'](_0x5f1580['shift']());}}}(a7_0x21f9,0x28218));function a7_0x21f9(){const _0x2fde1e=['bstack-username','36aMkjVU','tOBmP','builder','STcjU','CpSbw','fiHHk','gridId','Phnol','../../config/logger','eMyPU','104GfgXGy','desc','SueYD','help','SIGTERM','gKThB','exit','PVZED','argv','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','sYPAJ','grid','NzwYd','126049NDooJC','GOVXp','grid-id','browserStackLocalOptions','usage','odwli','1632hlhRjV','74378eYIQjC','ELEDN','18DGdklT','fkHVx','mtOCR','use-staging','handler','ocfMm','ojueB','create','advanceOptions','PzxGY','wdWFM','gTwzG','options','9055XSQUrm','wlZva','customRepeaters','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.','hhswG','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','string','QDKkB','bstack-accesskey','true','advance-options','OgMzY','Pass\x20the\x20ID\x20of\x20the\x20Grid','lQXgR','BojIf','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','EKZyO','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','isTrialGrid','../../utils/utilityMethods','beforeExit','sMnAq','SIGINT','PCcPU','GAOLg','epilogue','ltgVh','36510ixKMxG','info','3115310UFDDMQ','isRunning','3OiWnrw','XhprC','Jzbmq','QphuQ','1720SsTmGH','IwWug','qBxdx','6929904euYMOp','Grid\x20type:\x20Trial','YBwUY','type','Advance\x20options\x20for\x20Browserstack\x20Local','useStaging','bstackUsername','ZXWFS','description','MCUXn','rBNEz','bstackAccesskey','VgcIu','hlBUr','haoja','YKuCk'];a7_0x21f9=function(){return _0x2fde1e;};return a7_0x21f9();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a7_0x386dc2(0x1e3)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x386dc2(0x21d));function a7_0xce9a(_0x465c92,_0x3b35f4){const _0x21f972=a7_0x21f9();return a7_0xce9a=function(_0xce9a10,_0x26ec69){_0xce9a10=_0xce9a10-0x1e3;let _0x41fc7d=_0x21f972[_0xce9a10];return _0x41fc7d;},a7_0xce9a(_0x465c92,_0x3b35f4);}exports['command']=a7_0x386dc2(0x1f1),exports[a7_0x386dc2(0x1e6)]='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports[a7_0x386dc2(0x243)]=_0x355f30=>{const _0x415653=a7_0x386dc2,_0x537f62={};_0x537f62['BojIf']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x537f62[_0x415653(0x248)]=_0x415653(0x20f),_0x537f62[_0x415653(0x23d)]=_0x415653(0x1ef),_0x537f62[_0x415653(0x22e)]=_0x415653(0x215),_0x537f62[_0x415653(0x22c)]=_0x415653(0x20e),_0x537f62[_0x415653(0x1ec)]='Advance\x20options\x20for\x20Browserstack\x20Local',_0x537f62[_0x415653(0x222)]='help';const _0x13d1fd=_0x537f62,_0x32d29d={};_0x32d29d[_0x415653(0x238)]=_0x13d1fd[_0x415653(0x217)],_0x32d29d[_0x415653(0x233)]=_0x13d1fd['Phnol'];const _0x136085={};_0x136085[_0x415653(0x238)]=_0x13d1fd['hlBUr'],_0x136085[_0x415653(0x233)]=_0x13d1fd[_0x415653(0x248)];const _0xeffc={};_0xeffc['demandOption']=!![],_0xeffc[_0x415653(0x238)]=_0x13d1fd[_0x415653(0x22e)],_0xeffc[_0x415653(0x233)]=_0x13d1fd[_0x415653(0x248)];const _0x902967={};_0x902967[_0x415653(0x238)]=_0x13d1fd['QphuQ'],_0x902967[_0x415653(0x233)]=_0x13d1fd[_0x415653(0x248)];const _0x373f61={};_0x373f61[_0x415653(0x238)]=_0x13d1fd[_0x415653(0x1ec)],_0x373f61['type']=_0x13d1fd[_0x415653(0x248)];const _0x2f8802={};return _0x2f8802[_0x415653(0x240)]=_0x32d29d,_0x2f8802[_0x415653(0x211)]=_0x136085,_0x2f8802['grid-id']=_0xeffc,_0x2f8802[_0x415653(0x1ff)]=_0x902967,_0x2f8802[_0x415653(0x213)]=_0x373f61,_0x355f30[_0x415653(0x1f7)](HELP_HEADER_MESSAGE[_0x415653(0x203)])[_0x415653(0x223)](HELP_FOOTER_MESSAGE)[_0x415653(0x208)](_0x2f8802)['help'](_0x13d1fd[_0x415653(0x222)])[_0x415653(0x1ed)];},exports[a7_0x386dc2(0x200)]=async _0x31942b=>{const _0x5ed81a=a7_0x386dc2,_0xec00b2={'SueYD':function(_0x23593c,_0x54d256){return _0x23593c==_0x54d256;},'PzxGY':function(_0x2a080a,_0x468d5f){return _0x2a080a(_0x468d5f);},'wdWFM':_0x5ed81a(0x21e),'GOVXp':_0x5ed81a(0x220),'ELEDN':_0x5ed81a(0x1e9),'sYPAJ':function(_0x330ce1,_0x10161f){return _0x330ce1!==_0x10161f;},'gTwzG':_0x5ed81a(0x1f2),'ojueB':_0x5ed81a(0x219),'Jzbmq':'string','vnPfi':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','kuFDU':_0x5ed81a(0x215),'sMnAq':_0x5ed81a(0x20e),'eMyPU':_0x5ed81a(0x234),'YBwUY':'help','lQXgR':function(_0x4131c0,_0x1ab293){return _0x4131c0===_0x1ab293;},'fiHHk':_0x5ed81a(0x201),'mtOCR':function(_0x41bca1,_0x3d1099){return _0x41bca1(_0x3d1099);},'KkWOZ':function(_0x185d92,_0x219e96,_0x438d83){return _0x185d92(_0x219e96,_0x438d83);},'hhswG':function(_0x16e2e3,_0x3ac957){return _0x16e2e3&&_0x3ac957;},'QDKkB':_0x5ed81a(0x221),'OgMzY':_0x5ed81a(0x242),'gYsLX':function(_0xe3bde3,_0x409577,_0x300d0e,_0x6a0d5c){return _0xe3bde3(_0x409577,_0x300d0e,_0x6a0d5c);},'nHqaf':function(_0x5cedde,_0x16d15e){return _0x5cedde!==_0x16d15e;},'CpSbw':_0x5ed81a(0x22a),'gKThB':function(_0x54d888,_0x2b00d7){return _0x54d888(_0x2b00d7);},'fkHVx':_0x5ed81a(0x212),'qBxdx':_0x5ed81a(0x239),'VgcIu':_0x5ed81a(0x20a),'rBNEz':_0x5ed81a(0x23e),'odwli':'EdbjJ','EKZyO':function(_0x24957d,_0x288a04){return _0x24957d(_0x288a04);},'YKuCk':'VhaIN'};let _0xf386a4=_0x31942b[_0x5ed81a(0x236)],_0xb5ce7=_0x31942b[_0x5ed81a(0x23b)],_0xcd3053=_0x31942b[_0x5ed81a(0x204)];const _0x39b119=_0x1381cd=>{const _0x3bbdbe=_0x5ed81a,_0x430b71={'jGKPn':function(_0x472478,_0x2c0174){const _0x409d32=a7_0xce9a;return _0xec00b2[_0x409d32(0x1e7)](_0x472478,_0x2c0174);},'STcjU':function(_0x124bef,_0x308222){const _0x438f94=a7_0xce9a;return _0xec00b2[_0x438f94(0x205)](_0x124bef,_0x308222);},'Tomwh':_0xec00b2[_0x3bbdbe(0x206)],'ZXWFS':_0xec00b2[_0x3bbdbe(0x1f4)],'XFiJl':_0xec00b2[_0x3bbdbe(0x1fb)]};if(_0xec00b2[_0x3bbdbe(0x1f0)](_0xec00b2[_0x3bbdbe(0x207)],_0xec00b2[_0x3bbdbe(0x207)])){_0x221576=_0x3bbdbe(0x231),_0x343741[_0x3bbdbe(0x226)](_0x11fbe2);try{const _0x18e458={};_0x18e458['accessKey']=_0x303a36,_0x18e458[_0x3bbdbe(0x20b)]=_0x5941b1['customRepeaters'],_0x18e458[_0x3bbdbe(0x1f6)]=_0x5e9126;const _0x559674=_0x18e458,_0x487106=_0x430b71[_0x3bbdbe(0x244)](_0x16b493,_0x559674);let _0x7fec3=0x0;const _0xfd4979=async()=>{const _0x315c7d=_0x3bbdbe;_0x7fec3++,_0x430b71['jGKPn'](_0x7fec3,0x1)&&_0x487106&&_0x487106['isRunning']()&&_0x430b71[_0x315c7d(0x244)](_0x24d544,_0x487106);};_0x2a28e1['on'](_0x430b71['Tomwh'],_0xfd4979),_0x547553['on'](_0x430b71[_0x3bbdbe(0x237)],_0xfd4979),_0x5a0bea['on'](_0x430b71['XFiJl'],_0xfd4979),_0x327ebf='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.',_0x558d2c[_0x3bbdbe(0x226)](_0x50dab0);}catch(_0x2cbaf9){_0x430b71[_0x3bbdbe(0x244)](_0x125a84,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}else logger['error'](_0x1381cd),process[_0x3bbdbe(0x1eb)](0x1);};[_0xf386a4,_0xb5ce7]=_0xec00b2['KkWOZ'](fetchOrUpdateUserConfig,_0xf386a4,_0xb5ce7);!_0xec00b2[_0x5ed81a(0x20d)](_0xf386a4,_0xb5ce7)&&(_0xec00b2['sYPAJ'](_0xec00b2[_0x5ed81a(0x210)],_0xec00b2[_0x5ed81a(0x214)])?_0xec00b2[_0x5ed81a(0x1fe)](_0x39b119,_0x5ed81a(0x218)):_0xec00b2[_0x5ed81a(0x205)](_0x198997,_0x5ed81a(0x21b)));let _0x2a37d6=_0x31942b[_0x5ed81a(0x247)],[_0x1ab267,_0xceb12b]=await _0xec00b2['gYsLX'](getGridDetails,_0xf386a4,_0xb5ce7,_0x2a37d6);!_0xceb12b&&(_0xec00b2['nHqaf'](_0xec00b2[_0x5ed81a(0x245)],_0xec00b2[_0x5ed81a(0x245)])?_0xec00b2[_0x5ed81a(0x205)](_0x161905,_0x5ed81a(0x1ee)):_0xec00b2[_0x5ed81a(0x1ea)](_0x39b119,_0x5ed81a(0x21b)));let _0x127657=_0xec00b2[_0x5ed81a(0x216)](_0x31942b[_0x5ed81a(0x235)],_0xec00b2[_0x5ed81a(0x1fd)])?!![]:![];if(_0xceb12b&&_0xceb12b[_0x5ed81a(0x21c)]&&_0x127657){if(_0xec00b2[_0x5ed81a(0x216)](_0xec00b2[_0x5ed81a(0x22f)],_0xec00b2[_0x5ed81a(0x23c)])){const _0x3ccbe6={};_0x3ccbe6[_0x5ed81a(0x238)]=_0xec00b2[_0x5ed81a(0x202)],_0x3ccbe6['type']=_0xec00b2[_0x5ed81a(0x22b)];const _0x193592={};_0x193592[_0x5ed81a(0x238)]=_0xec00b2['vnPfi'],_0x193592[_0x5ed81a(0x233)]=_0xec00b2[_0x5ed81a(0x22b)];const _0x5ba3a7={};_0x5ba3a7['demandOption']=!![],_0x5ba3a7['description']=_0xec00b2['kuFDU'],_0x5ba3a7[_0x5ed81a(0x233)]=_0xec00b2[_0x5ed81a(0x22b)];const _0x2b29e1={};_0x2b29e1[_0x5ed81a(0x238)]=_0xec00b2[_0x5ed81a(0x21f)],_0x2b29e1[_0x5ed81a(0x233)]=_0xec00b2[_0x5ed81a(0x22b)];const _0x1ba917={};_0x1ba917['description']=_0xec00b2[_0x5ed81a(0x1e4)],_0x1ba917[_0x5ed81a(0x233)]=_0xec00b2[_0x5ed81a(0x22b)];const _0xd848b6={};return _0xd848b6[_0x5ed81a(0x240)]=_0x3ccbe6,_0xd848b6[_0x5ed81a(0x211)]=_0x193592,_0xd848b6[_0x5ed81a(0x1f5)]=_0x5ba3a7,_0xd848b6[_0x5ed81a(0x1ff)]=_0x2b29e1,_0xd848b6[_0x5ed81a(0x213)]=_0x1ba917,_0x8d300c[_0x5ed81a(0x1f7)](_0x1c9665[_0x5ed81a(0x203)])[_0x5ed81a(0x223)](_0x38fe91)['options'](_0xd848b6)[_0x5ed81a(0x1e8)](_0xec00b2[_0x5ed81a(0x232)])['argv'];}else{logMessage=_0x5ed81a(0x231),logger['info'](logMessage);try{if(_0xec00b2['lQXgR'](_0xec00b2[_0x5ed81a(0x23a)],_0xec00b2[_0x5ed81a(0x1f8)]))_0x335324['error'](_0x1f948f),_0x506500[_0x5ed81a(0x1eb)](0x1);else{const _0x582188={};_0x582188['accessKey']=_0xb5ce7,_0x582188['customRepeaters']=_0xceb12b[_0x5ed81a(0x20b)],_0x582188[_0x5ed81a(0x1f6)]=_0xcd3053;const _0x170fda=_0x582188,_0x2622cc=_0xec00b2[_0x5ed81a(0x21a)](startLocalBinarySync,_0x170fda);let _0x521986=0x0;const _0x486794=async()=>{const _0x59d4da=_0x5ed81a,_0x487d29={'ltgVh':function(_0x509303,_0x593c6d){const _0x245283=a7_0xce9a;return _0xec00b2[_0x245283(0x205)](_0x509303,_0x593c6d);}};_0xec00b2['lQXgR'](_0xec00b2[_0x59d4da(0x246)],_0xec00b2['fiHHk'])?(_0x521986++,_0xec00b2[_0x59d4da(0x1e7)](_0x521986,0x1)&&_0x2622cc&&_0x2622cc[_0x59d4da(0x228)]()&&_0xec00b2[_0x59d4da(0x1fe)](stopLocalBinary,_0x2622cc)):_0x487d29[_0x59d4da(0x224)](_0x1e3d28,_0x59d4da(0x218));};process['on'](_0xec00b2[_0x5ed81a(0x206)],_0x486794),process['on'](_0xec00b2[_0x5ed81a(0x1f4)],_0x486794),process['on'](_0xec00b2['ELEDN'],_0x486794),logMessage=_0x5ed81a(0x20c),logger[_0x5ed81a(0x226)](logMessage);}}catch(_0x5660b6){_0xec00b2['lQXgR'](_0xec00b2[_0x5ed81a(0x23f)],_0xec00b2['YKuCk'])?_0xec00b2[_0x5ed81a(0x205)](_0x39b119,_0x5ed81a(0x1ee)):(_0x25a60a++,_0xec00b2['SueYD'](_0x6b337f,0x1)&&_0x130882&&_0xb52d04[_0x5ed81a(0x228)]()&&_0xec00b2[_0x5ed81a(0x1fe)](_0x31d639,_0x5ce814));}}}process[_0x5ed81a(0x1eb)](0x0);};
|
|
1
|
+
const a7_0x2ade11=a7_0xf6fb;(function(_0x41aad6,_0x50d3d8){const _0x4e511f=a7_0xf6fb,_0x5bed59=_0x41aad6();while(!![]){try{const _0x7b4e9c=parseInt(_0x4e511f(0x1c4))/0x1*(parseInt(_0x4e511f(0x1df))/0x2)+parseInt(_0x4e511f(0x1a7))/0x3+parseInt(_0x4e511f(0x1c6))/0x4*(-parseInt(_0x4e511f(0x1b3))/0x5)+-parseInt(_0x4e511f(0x1f6))/0x6*(-parseInt(_0x4e511f(0x1d9))/0x7)+parseInt(_0x4e511f(0x1eb))/0x8+-parseInt(_0x4e511f(0x1b2))/0x9+-parseInt(_0x4e511f(0x1d0))/0xa;if(_0x7b4e9c===_0x50d3d8)break;else _0x5bed59['push'](_0x5bed59['shift']());}catch(_0x5c9e83){_0x5bed59['push'](_0x5bed59['shift']());}}}(a7_0x77d8,0x4a2f0));function a7_0xf6fb(_0x465bd6,_0x39d2e7){const _0x77d845=a7_0x77d8();return a7_0xf6fb=function(_0xf6fbab,_0x11b45a){_0xf6fbab=_0xf6fbab-0x194;let _0x611010=_0x77d845[_0xf6fbab];return _0x611010;},a7_0xf6fb(_0x465bd6,_0x39d2e7);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x2ade11(0x1f0)),{logger}=require(a7_0x2ade11(0x1ee)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x2ade11(0x1e7));function a7_0x77d8(){const _0x5722f3=['aZJIY','77OEnfWC','rAgwJ','8CDHIYp','UXDif','HFcqt','customRepeaters','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','accessKey','fPDkc','DwyhN','bstack-username','kMUsY','2881730ZHNNYH','XQXRJ','info','AvPdb','epilogue','Advance\x20options\x20for\x20Browserstack\x20Local','wEGTG','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','KzqLW','184961rAtpjy','Lrzha','error','desc','ZplAs','demandOption','14162jTMcRT','bstackAccesskey','WdBjF','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.','lMlNm','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','help','builder','../../utils/utilityMethods','Kojti','obwWe','UxtfM','3547416CVLaZT','ftgqA','NJAvY','../../config/logger','Zspvu','../../config/constants','CVrWk','isTrialGrid','jxCaX','grid','SPaCn','54VvqpvE','TuSkW','dPpeH','bstack-accesskey','fHtFE','Pass\x20the\x20ID\x20of\x20the\x20Grid','use-staging','usage','yRyBH','MkkmA','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','isRunning','string','Dveum','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','FhWyQ','FLDca','bstackUsername','options','true','QjkxD','DqYPk','type','1040061FADIvE','handler','SPEzl','iWooT','iWIbb','grid-id','WVncP','pxztj','SIGTERM','zcIBT','advance-options','4365243mHsZTi','1240255wUWaaD','exit','pleNW','description','VgAUH','vAtGN','aPtfY','vkHLb','create','browserStackLocalOptions','advanceOptions','hKaGp','argv','IfcEL','command','yzpWy'];a7_0x77d8=function(){return _0x5722f3;};return a7_0x77d8();}exports[a7_0x2ade11(0x1c1)]=a7_0x2ade11(0x1f4),exports[a7_0x2ade11(0x1dc)]='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports[a7_0x2ade11(0x1e6)]=_0x1da531=>{const _0x3a057b=a7_0x2ade11,_0x624051={};_0x624051[_0x3a057b(0x1aa)]=_0x3a057b(0x1d7),_0x624051[_0x3a057b(0x198)]='string',_0x624051[_0x3a057b(0x1ef)]=_0x3a057b(0x19e),_0x624051['kMUsY']=_0x3a057b(0x195),_0x624051[_0x3a057b(0x1d8)]='Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.',_0x624051[_0x3a057b(0x1d3)]=_0x3a057b(0x1d5),_0x624051['zcIBT']='help';const _0x428a6e=_0x624051,_0x507fc0={};_0x507fc0['description']=_0x428a6e['iWooT'],_0x507fc0[_0x3a057b(0x1a6)]=_0x428a6e[_0x3a057b(0x198)];const _0x5edc59={};_0x5edc59[_0x3a057b(0x1b6)]=_0x428a6e[_0x3a057b(0x1ef)],_0x5edc59[_0x3a057b(0x1a6)]=_0x428a6e['yRyBH'];const _0x1537e2={};_0x1537e2[_0x3a057b(0x1de)]=!![],_0x1537e2['description']=_0x428a6e[_0x3a057b(0x1cf)],_0x1537e2['type']=_0x428a6e['yRyBH'];const _0x34c410={};_0x34c410[_0x3a057b(0x1b6)]=_0x428a6e[_0x3a057b(0x1d8)],_0x34c410[_0x3a057b(0x1a6)]=_0x428a6e['yRyBH'];const _0x2a1b2c={};_0x2a1b2c[_0x3a057b(0x1b6)]=_0x428a6e[_0x3a057b(0x1d3)],_0x2a1b2c[_0x3a057b(0x1a6)]=_0x428a6e['yRyBH'];const _0x35c385={};return _0x35c385[_0x3a057b(0x1ce)]=_0x507fc0,_0x35c385['bstack-accesskey']=_0x5edc59,_0x35c385[_0x3a057b(0x1ac)]=_0x1537e2,_0x35c385[_0x3a057b(0x196)]=_0x34c410,_0x35c385[_0x3a057b(0x1b1)]=_0x2a1b2c,_0x1da531['usage'](HELP_HEADER_MESSAGE[_0x3a057b(0x1bb)])[_0x3a057b(0x1d4)](HELP_FOOTER_MESSAGE)[_0x3a057b(0x1a2)](_0x35c385)[_0x3a057b(0x1e5)](_0x428a6e[_0x3a057b(0x1b0)])[_0x3a057b(0x1bf)];},exports[a7_0x2ade11(0x1a8)]=async _0x58fae4=>{const _0x3a3828=a7_0x2ade11,_0x2ddfa1={'aPtfY':function(_0x3b3632,_0x599960){return _0x3b3632==_0x599960;},'SPaCn':function(_0x2db1dd,_0x53c923){return _0x2db1dd(_0x53c923);},'TuSkW':'beforeExit','rAgwJ':'SIGINT','pleNW':_0x3a3828(0x1af),'rhBbw':function(_0x2327a7,_0x3e9f70){return _0x2327a7!==_0x3e9f70;},'GSkTO':_0x3a3828(0x1be),'obwWe':_0x3a3828(0x1e8),'gkiaZ':function(_0x5ca8fa,_0x18281f){return _0x5ca8fa==_0x18281f;},'vAtGN':_0x3a3828(0x1d7),'IfcEL':_0x3a3828(0x19c),'jgssI':_0x3a3828(0x19e),'DwyhN':_0x3a3828(0x195),'SPEzl':'Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','CVrWk':_0x3a3828(0x1d5),'fHtFE':_0x3a3828(0x1e5),'fPDkc':function(_0x510eaf,_0x88eb6d){return _0x510eaf(_0x88eb6d);},'rxYIb':function(_0x2194d3,_0x437c9d){return _0x2194d3!==_0x437c9d;},'nwqGe':_0x3a3828(0x1da),'WVncP':function(_0x56d9cd,_0x2bf13b){return _0x56d9cd==_0x2bf13b;},'pxztj':function(_0x35a9d8,_0x266083,_0x272b0a){return _0x35a9d8(_0x266083,_0x272b0a);},'WdBjF':function(_0x2007ee,_0x4bd177){return _0x2007ee&&_0x4bd177;},'VgAUH':function(_0x55f978,_0x44c809){return _0x55f978!==_0x44c809;},'MkkmA':_0x3a3828(0x1c3),'iWIbb':function(_0x42c0b9,_0x8c97f0,_0x560e76,_0x2285a2){return _0x42c0b9(_0x8c97f0,_0x560e76,_0x2285a2);},'UxtfM':function(_0x2dd40a,_0x181c58){return _0x2dd40a!==_0x181c58;},'ftgqA':'NdDjU','DqYPk':_0x3a3828(0x1c7),'FhWyQ':function(_0x7ac485,_0x53c9c1){return _0x7ac485===_0x53c9c1;},'lMlNm':_0x3a3828(0x1a3),'XQXRJ':function(_0x26313c,_0x22d454){return _0x26313c===_0x22d454;},'OfUzV':_0x3a3828(0x1f8),'vkHLb':'jJfmq','HFcqt':_0x3a3828(0x1a4),'FwWrc':_0x3a3828(0x1a0),'SWgMS':_0x3a3828(0x1dd),'wEGTG':function(_0x4a431b,_0x2b0d2e){return _0x4a431b(_0x2b0d2e);}};let _0x183bf5=_0x58fae4[_0x3a3828(0x1a1)],_0x52cc5b=_0x58fae4[_0x3a3828(0x1e0)],_0x2bb6aa=_0x58fae4[_0x3a3828(0x1bd)];const _0x44100d=_0x52a767=>{const _0x3f6b45=_0x3a3828,_0x3a43c5={'iXbnT':function(_0x1b3a1d,_0x427c70){const _0x59d879=a7_0xf6fb;return _0x2ddfa1[_0x59d879(0x1b9)](_0x1b3a1d,_0x427c70);},'Dveum':function(_0x3beaa0,_0x16bc62){const _0x41fd01=a7_0xf6fb;return _0x2ddfa1[_0x41fd01(0x1f5)](_0x3beaa0,_0x16bc62);},'mzaib':_0x2ddfa1[_0x3f6b45(0x1f7)],'yzpWy':_0x2ddfa1['rAgwJ'],'jxCaX':_0x2ddfa1[_0x3f6b45(0x1b5)]};if(_0x2ddfa1['rhBbw'](_0x2ddfa1['GSkTO'],_0x2ddfa1[_0x3f6b45(0x1e9)]))logger[_0x3f6b45(0x1db)](_0x52a767),process[_0x3f6b45(0x1b4)](0x1);else{_0x4d8294='Grid\x20type:\x20Trial',_0xe4dce4[_0x3f6b45(0x1d2)](_0x18ee98);try{const _0x52a4b8={};_0x52a4b8['accessKey']=_0x202d4f,_0x52a4b8[_0x3f6b45(0x1c9)]=_0x14130e['customRepeaters'],_0x52a4b8[_0x3f6b45(0x1bc)]=_0x2a417a;const _0xbefd97=_0x52a4b8,_0x14b404=_0x3a43c5[_0x3f6b45(0x19d)](_0x251510,_0xbefd97);let _0x3e95ed=0x0;const _0x43dfbe=async()=>{const _0xef1098=_0x3f6b45;_0x3e95ed++,_0x3a43c5['iXbnT'](_0x3e95ed,0x1)&&_0x14b404&&_0x14b404['isRunning']()&&_0x3a43c5[_0xef1098(0x19d)](_0x4b3d87,_0x14b404);};_0x3698a6['on'](_0x3a43c5['mzaib'],_0x43dfbe),_0x5a770c['on'](_0x3a43c5[_0x3f6b45(0x1c2)],_0x43dfbe),_0x1aa636['on'](_0x3a43c5[_0x3f6b45(0x1f3)],_0x43dfbe),_0x43a219=_0x3f6b45(0x1e2),_0x2df365['info'](_0x2c1f9b);}catch(_0x39d523){_0x3a43c5[_0x3f6b45(0x19d)](_0x27e99e,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}};[_0x183bf5,_0x52cc5b]=_0x2ddfa1[_0x3a3828(0x1ae)](fetchOrUpdateUserConfig,_0x183bf5,_0x52cc5b);!_0x2ddfa1[_0x3a3828(0x1e1)](_0x183bf5,_0x52cc5b)&&(_0x2ddfa1[_0x3a3828(0x1b7)](_0x2ddfa1[_0x3a3828(0x199)],_0x2ddfa1[_0x3a3828(0x199)])?_0x2ddfa1['SPaCn'](_0x5cc1ca,_0x3a3828(0x19a)):_0x2ddfa1[_0x3a3828(0x1cc)](_0x44100d,_0x3a3828(0x19a)));let _0x5a7d3d=_0x58fae4['gridId'],[_0x17af51,_0x1b6647]=await _0x2ddfa1[_0x3a3828(0x1ab)](getGridDetails,_0x183bf5,_0x52cc5b,_0x5a7d3d);!_0x1b6647&&(_0x2ddfa1[_0x3a3828(0x1ea)](_0x2ddfa1[_0x3a3828(0x1ec)],_0x2ddfa1[_0x3a3828(0x1a5)])?_0x2ddfa1['fPDkc'](_0x44100d,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier'):(_0x3a95c8++,_0x2ddfa1['gkiaZ'](_0xddbfd3,0x1)&&_0x13394c&&_0x4950e0['isRunning']()&&_0x2ddfa1['SPaCn'](_0x589720,_0x247cb3)));let _0x28d7bf=_0x2ddfa1[_0x3a3828(0x19f)](_0x58fae4['useStaging'],_0x2ddfa1[_0x3a3828(0x1e3)])?!![]:![];if(_0x1b6647&&_0x1b6647[_0x3a3828(0x1f2)]&&_0x28d7bf){if(_0x2ddfa1[_0x3a3828(0x1d1)](_0x2ddfa1['OfUzV'],_0x2ddfa1[_0x3a3828(0x1ba)]))_0x2ddfa1[_0x3a3828(0x1f5)](_0x4c7a1,_0x3a3828(0x1ca));else{logMessage='Grid\x20type:\x20Trial',logger[_0x3a3828(0x1d2)](logMessage);try{if(_0x2ddfa1['rxYIb'](_0x2ddfa1[_0x3a3828(0x1c8)],_0x2ddfa1[_0x3a3828(0x1c8)])){const _0x506e3d={};_0x506e3d[_0x3a3828(0x1b6)]=_0x2ddfa1[_0x3a3828(0x1b8)],_0x506e3d['type']=_0x2ddfa1[_0x3a3828(0x1c0)];const _0x52447c={};_0x52447c['description']=_0x2ddfa1['jgssI'],_0x52447c[_0x3a3828(0x1a6)]=_0x2ddfa1['IfcEL'];const _0x22a69f={};_0x22a69f['demandOption']=!![],_0x22a69f[_0x3a3828(0x1b6)]=_0x2ddfa1[_0x3a3828(0x1cd)],_0x22a69f[_0x3a3828(0x1a6)]=_0x2ddfa1[_0x3a3828(0x1c0)];const _0x41694e={};_0x41694e['description']=_0x2ddfa1[_0x3a3828(0x1a9)],_0x41694e[_0x3a3828(0x1a6)]=_0x2ddfa1[_0x3a3828(0x1c0)];const _0x151e6f={};_0x151e6f[_0x3a3828(0x1b6)]=_0x2ddfa1[_0x3a3828(0x1f1)],_0x151e6f[_0x3a3828(0x1a6)]=_0x2ddfa1[_0x3a3828(0x1c0)];const _0xf50680={};return _0xf50680[_0x3a3828(0x1ce)]=_0x506e3d,_0xf50680[_0x3a3828(0x1f9)]=_0x52447c,_0xf50680[_0x3a3828(0x1ac)]=_0x22a69f,_0xf50680['use-staging']=_0x41694e,_0xf50680[_0x3a3828(0x1b1)]=_0x151e6f,_0x70ce7b[_0x3a3828(0x197)](_0x4da4fe[_0x3a3828(0x1bb)])[_0x3a3828(0x1d4)](_0x5f3adf)[_0x3a3828(0x1a2)](_0xf50680)[_0x3a3828(0x1e5)](_0x2ddfa1[_0x3a3828(0x194)])[_0x3a3828(0x1bf)];}else{const _0x16fbb2={};_0x16fbb2[_0x3a3828(0x1cb)]=_0x52cc5b,_0x16fbb2['customRepeaters']=_0x1b6647['customRepeaters'],_0x16fbb2[_0x3a3828(0x1bc)]=_0x2bb6aa;const _0x3d0fc5=_0x16fbb2,_0x44cd8f=_0x2ddfa1[_0x3a3828(0x1cc)](startLocalBinarySync,_0x3d0fc5);let _0x222c76=0x0;const _0x189243=async()=>{const _0x16686a=_0x3a3828,_0x1118bc={'lQODA':function(_0x906ae4,_0x29cea1){const _0x87a1=a7_0xf6fb;return _0x2ddfa1[_0x87a1(0x1b9)](_0x906ae4,_0x29cea1);},'NJAvY':function(_0xb1adf6,_0x2055f2){const _0x397107=a7_0xf6fb;return _0x2ddfa1[_0x397107(0x1cc)](_0xb1adf6,_0x2055f2);}};if(_0x2ddfa1['rxYIb'](_0x2ddfa1['nwqGe'],_0x2ddfa1['nwqGe'])){const _0x5dc5d7={};_0x5dc5d7['accessKey']=_0x112ceb,_0x5dc5d7['customRepeaters']=_0x32f71d[_0x16686a(0x1c9)],_0x5dc5d7[_0x16686a(0x1bc)]=_0x1b366c;const _0x106cc9=_0x5dc5d7,_0x5d3880=_0x2ddfa1[_0x16686a(0x1f5)](_0xfdd6ae,_0x106cc9);let _0x1671a4=0x0;const _0x273bd1=async()=>{const _0x319104=_0x16686a;_0x1671a4++,_0x1118bc['lQODA'](_0x1671a4,0x1)&&_0x5d3880&&_0x5d3880[_0x319104(0x19b)]()&&_0x1118bc[_0x319104(0x1ed)](_0xb5e4a6,_0x5d3880);};_0x302610['on'](_0x2ddfa1[_0x16686a(0x1f7)],_0x273bd1),_0xf3fbf1['on'](_0x2ddfa1[_0x16686a(0x1c5)],_0x273bd1),_0x2e131e['on'](_0x2ddfa1['pleNW'],_0x273bd1),_0x2847c7=_0x16686a(0x1e2),_0x57c084[_0x16686a(0x1d2)](_0x1e9887);}else _0x222c76++,_0x2ddfa1[_0x16686a(0x1ad)](_0x222c76,0x1)&&_0x44cd8f&&_0x44cd8f['isRunning']()&&_0x2ddfa1[_0x16686a(0x1f5)](stopLocalBinary,_0x44cd8f);};process['on'](_0x2ddfa1[_0x3a3828(0x1f7)],_0x189243),process['on'](_0x2ddfa1[_0x3a3828(0x1c5)],_0x189243),process['on'](_0x2ddfa1[_0x3a3828(0x1b5)],_0x189243),logMessage='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.',logger['info'](logMessage);}}catch(_0x7074d6){_0x2ddfa1[_0x3a3828(0x1b7)](_0x2ddfa1['FwWrc'],_0x2ddfa1['SWgMS'])?_0x2ddfa1[_0x3a3828(0x1d6)](_0x44100d,_0x3a3828(0x1ca)):_0x2ddfa1[_0x3a3828(0x1cc)](_0x3c7ccf,_0x3a3828(0x1e4));}}}process[_0x3a3828(0x1b4)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x12e9b5=a8_0x1289;(function(_0x1985c5,_0x52549b){const _0x4d4a03=a8_0x1289,_0x41a354=_0x1985c5();while(!![]){try{const _0x44ea5b=parseInt(_0x4d4a03(0x17a))/0x1+-parseInt(_0x4d4a03(0x17e))/0x2+parseInt(_0x4d4a03(0x16c))/0x3*(-parseInt(_0x4d4a03(0x177))/0x4)+parseInt(_0x4d4a03(0x16a))/0x5+-parseInt(_0x4d4a03(0x16f))/0x6+-parseInt(_0x4d4a03(0x17d))/0x7+-parseInt(_0x4d4a03(0x170))/0x8*(-parseInt(_0x4d4a03(0x179))/0x9);if(_0x44ea5b===_0x52549b)break;else _0x41a354['push'](_0x41a354['shift']());}catch(_0xd0d4d6){_0x41a354['push'](_0x41a354['shift']());}}}(a8_0x1312,0xf1b9b));function a8_0x1289(_0x7c6e9f,_0x478fd8){const _0x131237=a8_0x1312();return a8_0x1289=function(_0x128986,_0x26060d){_0x128986=_0x128986-0x16a;let _0x5d609=_0x131237[_0x128986];return _0x5d609;},a8_0x1289(_0x7c6e9f,_0x478fd8);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x12e9b5(0x182));function a8_0x1312(){const _0xd8cd2b=['command','help','desc','GrEvd','36FAJAYQ','epilogue','44504631gXNmPT','378485RWRKtJ','demandCommand','recommendCommands','11897935IlAHgf','2658608BUSlJl','create_commands','create','strict','../config/constants','191885lzOpBG','commandDir','354015jOEdaq','handler','ufwyc','1683960Kmpkgq','8JylfkM','usage','builder'];a8_0x1312=function(){return _0xd8cd2b;};return a8_0x1312();}exports[a8_0x12e9b5(0x173)]=a8_0x12e9b5(0x180),exports[a8_0x12e9b5(0x175)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a8_0x12e9b5(0x172)]=function(_0x312810){const _0x28a65d=a8_0x12e9b5,_0x2c5039={};_0x2c5039[_0x28a65d(0x16e)]=_0x28a65d(0x17f),_0x2c5039[_0x28a65d(0x176)]=_0x28a65d(0x174);const _0x23b157=_0x2c5039;return _0x312810[_0x28a65d(0x171)](HELP_HEADER_MESSAGE['create'])[_0x28a65d(0x178)](HELP_FOOTER_MESSAGE)[_0x28a65d(0x16b)](_0x23b157[_0x28a65d(0x16e)])[_0x28a65d(0x17b)]()[_0x28a65d(0x17c)]()[_0x28a65d(0x181)]()[_0x28a65d(0x174)](_0x23b157[_0x28a65d(0x176)]);},exports[a8_0x12e9b5(0x16d)]=function(_0x253fbe){};
|