browserstack-node-sdk 1.35.0 → 1.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x28cbb4=a9_0x5360;function a9_0x5360(_0x1f5592,_0x403ab4){const _0x3bb4fc=a9_0x3bb4();return a9_0x5360=function(_0x5360ea,_0x1e155f){_0x5360ea=_0x5360ea-0x101;let _0x45e3f5=_0x3bb4fc[_0x5360ea];return _0x45e3f5;},a9_0x5360(_0x1f5592,_0x403ab4);}(function(_0x55dcff,_0x1ced87){const _0x25daf3=a9_0x5360,_0x1deda3=_0x55dcff();while(!![]){try{const _0x34ecae=-parseInt(_0x25daf3(0x223))/0x1+parseInt(_0x25daf3(0x154))/0x2*(-parseInt(_0x25daf3(0x294))/0x3)+-parseInt(_0x25daf3(0x1bf))/0x4+parseInt(_0x25daf3(0x1d8))/0x5+-parseInt(_0x25daf3(0x160))/0x6*(parseInt(_0x25daf3(0x156))/0x7)+-parseInt(_0x25daf3(0x117))/0x8*(-parseInt(_0x25daf3(0x1df))/0x9)+-parseInt(_0x25daf3(0x132))/0xa*(parseInt(_0x25daf3(0x1b5))/0xb);if(_0x34ecae===_0x1ced87)break;else _0x1deda3['push'](_0x1deda3['shift']());}catch(_0x2f16b1){_0x1deda3['push'](_0x1deda3['shift']());}}}(a9_0x3bb4,0xa6ba7));const fs=require('fs'),ws=require('ws'),path=require(a9_0x28cbb4(0x23b)),yaml=require(a9_0x28cbb4(0x190)),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x28cbb4(0x11d)),{v4:uuidv4}=require(a9_0x28cbb4(0x1be)),webSocketUtils=require(a9_0x28cbb4(0x176)),{logger}=require(a9_0x28cbb4(0x26b)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x28cbb4(0x272)),{getCloudProviderObject}=require(a9_0x28cbb4(0x229)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x28cbb4(0x1db)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a9_0x28cbb4(0x29c));exports['command']=a9_0x28cbb4(0x24e),exports['desc']=a9_0x28cbb4(0x29e),exports[a9_0x28cbb4(0x265)]=function(_0x19157c){const _0x5a3315=a9_0x28cbb4,_0x34e9ce={};_0x34e9ce[_0x5a3315(0x297)]=_0x5a3315(0x233),_0x34e9ce[_0x5a3315(0x25e)]=_0x5a3315(0x161),_0x34e9ce[_0x5a3315(0x11b)]=_0x5a3315(0x109),_0x34e9ce['kkZTU']=_0x5a3315(0x2a6),_0x34e9ce['bgHbz']=_0x5a3315(0x13c),_0x34e9ce[_0x5a3315(0x288)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x34e9ce[_0x5a3315(0x284)]='Create\x20a\x20private/public\x20grid.',_0x34e9ce[_0x5a3315(0x196)]=_0x5a3315(0x239),_0x34e9ce['oENTH']=_0x5a3315(0x1b7),_0x34e9ce[_0x5a3315(0x175)]=_0x5a3315(0x165),_0x34e9ce[_0x5a3315(0x15f)]=_0x5a3315(0x169);const _0x577981=_0x34e9ce,_0x436d3e={};_0x436d3e[_0x5a3315(0x1ad)]=_0x577981['SxIJZ'],_0x436d3e[_0x5a3315(0x235)]=_0x577981[_0x5a3315(0x25e)];const _0x2a3e4c={};_0x2a3e4c[_0x5a3315(0x1ad)]=_0x577981[_0x5a3315(0x11b)],_0x2a3e4c[_0x5a3315(0x235)]=_0x577981[_0x5a3315(0x25e)];const _0x2eb416={};_0x2eb416['description']=_0x577981[_0x5a3315(0x27a)],_0x2eb416['type']=_0x577981[_0x5a3315(0x25e)];const _0x3cf8c5={};_0x3cf8c5[_0x5a3315(0x1ad)]=_0x577981[_0x5a3315(0x2b1)],_0x3cf8c5['type']=_0x577981['pvXPs'];const _0x5d1a1d={};_0x5d1a1d[_0x5a3315(0x1ad)]=_0x577981[_0x5a3315(0x288)],_0x5d1a1d[_0x5a3315(0x235)]=_0x577981[_0x5a3315(0x25e)];const _0x1651ae={};_0x1651ae['description']=_0x577981[_0x5a3315(0x284)],_0x1651ae[_0x5a3315(0x235)]=_0x577981[_0x5a3315(0x25e)];const _0x3fe623={};_0x3fe623[_0x5a3315(0x1ad)]=_0x577981[_0x5a3315(0x196)],_0x3fe623[_0x5a3315(0x235)]=_0x577981['oENTH'],_0x3fe623[_0x5a3315(0x201)]=![];const _0x406604={};_0x406604[_0x5a3315(0x1ad)]=_0x577981['Uheov'],_0x406604[_0x5a3315(0x235)]=_0x577981[_0x5a3315(0x253)],_0x406604[_0x5a3315(0x201)]=![];const _0x111c10={};return _0x111c10[_0x5a3315(0x12b)]=_0x436d3e,_0x111c10['grid-profile']=_0x2a3e4c,_0x111c10['cluster-name']=_0x2eb416,_0x111c10[_0x5a3315(0x25c)]=_0x3cf8c5,_0x111c10[_0x5a3315(0x1ea)]=_0x5d1a1d,_0x111c10[_0x5a3315(0x16a)]=_0x1651ae,_0x111c10[_0x5a3315(0x246)]=_0x3fe623,_0x111c10[_0x5a3315(0x12e)]=_0x406604,_0x19157c[_0x5a3315(0x1fd)](HELP_HEADER_MESSAGE[_0x5a3315(0x22f)])[_0x5a3315(0x195)](HELP_FOOTER_MESSAGE)[_0x5a3315(0x106)](_0x111c10)[_0x5a3315(0x169)](_0x577981[_0x5a3315(0x15f)])[_0x5a3315(0x1e5)];},exports[a9_0x28cbb4(0x10c)]=async function(_0x52f3d9){const _0x9c497a=a9_0x28cbb4,_0x1b6ddf={'XQokH':'true','NQePr':'default','nAjLg':function(_0x185648,_0x32d508){return _0x185648(_0x32d508);},'licOL':_0x9c497a(0x219),'bHcRY':function(_0x46ea4f,_0x247144){return _0x46ea4f(_0x247144);},'gfYCO':_0x9c497a(0x1c4),'FFlwk':function(_0x358e0e,_0xb93543){return _0x358e0e===_0xb93543;},'SSrmB':'https','vYuGb':_0x9c497a(0x236),'pSyxH':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','oRVIs':_0x9c497a(0x161),'NZfyU':_0x9c497a(0x109),'DdYCb':_0x9c497a(0x2a6),'OSfah':_0x9c497a(0x13c),'KvOxt':_0x9c497a(0x252),'JFKMn':'Create\x20a\x20private/public\x20grid.','HlWkQ':'Skip\x20insecure\x20cert\x20verification.','EApNN':_0x9c497a(0x1b7),'BryRg':'Flag\x20to\x20enable\x20Hub\x20HA','rtXiC':_0x9c497a(0x169),'DADeL':_0x9c497a(0x2a2),'lYXmF':_0x9c497a(0x1dd),'MIpHd':_0x9c497a(0x108),'ZBuqd':_0x9c497a(0x206),'xtlkb':_0x9c497a(0x247),'vMLkP':_0x9c497a(0x1e8),'ysycR':_0x9c497a(0x24f),'ejneb':function(_0x3038fa,_0x53261c){return _0x3038fa!==_0x53261c;},'KHOHj':function(_0x363078,_0x40a3f4,_0x4eb4cf,_0x537e4e,_0x505092,_0x4f8df5,_0x418329,_0x40d411,_0x74376a,_0x10175f,_0x12071d,_0x5ec1c9){return _0x363078(_0x40a3f4,_0x4eb4cf,_0x537e4e,_0x505092,_0x4f8df5,_0x418329,_0x40d411,_0x74376a,_0x10175f,_0x12071d,_0x5ec1c9);},'KgSHX':_0x9c497a(0x119),'erITK':_0x9c497a(0x26e),'ClIWG':_0x9c497a(0x19e),'sVkTx':function(_0x243b04){return _0x243b04();},'nVMnu':_0x9c497a(0x24a),'ONiVY':_0x9c497a(0x244),'ERwHY':function(_0xd60c59,_0x489637,_0x366bc6,_0x359c88,_0x40db61,_0x20ec4b,_0xdfc7de){return _0xd60c59(_0x489637,_0x366bc6,_0x359c88,_0x40db61,_0x20ec4b,_0xdfc7de);},'HYGfb':_0x9c497a(0x14b),'yUstf':_0x9c497a(0x137),'TqIPs':'<UsernamePlaceholder>','iMYJM':'<PasswordPlaceholder>','Iwdhu':_0x9c497a(0x134),'EFJrp':'BpgZy','gBGNV':_0x9c497a(0x1e6),'wYPcP':_0x9c497a(0x276),'kgJdQ':'qJdJG','PwIUk':_0x9c497a(0x178),'SkwIs':function(_0x2a0070,_0x5bbc91,_0x4bfc3f,_0x3bdf31,_0x43534d,_0x303c5a,_0x104e8c,_0x149ee7){return _0x2a0070(_0x5bbc91,_0x4bfc3f,_0x3bdf31,_0x43534d,_0x303c5a,_0x104e8c,_0x149ee7);},'rjXam':_0x9c497a(0x260),'BDpxI':_0x9c497a(0x198),'DyOvb':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','IFiya':function(_0x2e4ea4,_0x33dd2e,_0xc47e1d,_0x22f06f,_0x4380ee,_0x5195f4,_0x11f4d4,_0x2921fc){return _0x2e4ea4(_0x33dd2e,_0xc47e1d,_0x22f06f,_0x4380ee,_0x5195f4,_0x11f4d4,_0x2921fc);},'ETuqD':_0x9c497a(0x189),'HcqPB':function(_0x24e116,_0x288063){return _0x24e116===_0x288063;},'lyOOd':function(_0x1c8c76,_0x42b48c){return _0x1c8c76!==_0x42b48c;},'qgaCf':_0x9c497a(0x1dc),'Dxnjp':_0x9c497a(0x226),'GULFO':function(_0x498275,_0x337064,_0x59762b,_0x3b02f0,_0x44534a,_0x1c2564,_0x3ea635){return _0x498275(_0x337064,_0x59762b,_0x3b02f0,_0x44534a,_0x1c2564,_0x3ea635);},'WSyTJ':function(_0x446311,_0x557d18){return _0x446311===_0x557d18;},'oXNEy':_0x9c497a(0x234),'PlvxY':'RFPRu','cIqRY':function(_0x52597a,_0x2eeac5){return _0x52597a===_0x2eeac5;},'SXLTx':_0x9c497a(0x21e),'MzUHI':_0x9c497a(0x224),'ENbdQ':_0x9c497a(0x14c),'UaMoc':_0x9c497a(0x291),'tssYN':function(_0x4f35c9,_0x2a8d45,_0x5c084c){return _0x4f35c9(_0x2a8d45,_0x5c084c);},'CVXWH':_0x9c497a(0x1da),'oipIL':function(_0x493e07,_0x440806){return _0x493e07!==_0x440806;},'hgXnA':_0x9c497a(0x27b),'hAKjj':_0x9c497a(0x29b),'UrurB':'create-grid-checks-null-response','kYLZF':function(_0x33f971,_0x51e4dc){return _0x33f971===_0x51e4dc;},'vnVIR':_0x9c497a(0x1ff),'DVLDh':'lLAub','akxGg':_0x9c497a(0x149),'JuVha':function(_0x5a6e11,_0x28f0cf,_0x46aeb2,_0x598858,_0x1a0685,_0x24979a,_0x11c966,_0x207e02){return _0x5a6e11(_0x28f0cf,_0x46aeb2,_0x598858,_0x1a0685,_0x24979a,_0x11c966,_0x207e02);},'qBCXG':_0x9c497a(0x193),'gTOiD':'GjXdZ','IauUe':function(_0x24ac5e,_0x1eefa4,_0x1784c8,_0xc02688,_0x4435f4,_0x141997,_0x1c1048,_0x322b6e){return _0x24ac5e(_0x1eefa4,_0x1784c8,_0xc02688,_0x4435f4,_0x141997,_0x1c1048,_0x322b6e);},'dlNYC':'create-grid-checks-non-200','ylvXc':_0x9c497a(0x187),'McfLl':_0x9c497a(0x2a1),'NJEud':function(_0x292094,_0x88cdbc,_0x3d6f4c,_0x1e6d56,_0x2e2bc1,_0x16d46f,_0x216c14,_0x32b5ae){return _0x292094(_0x88cdbc,_0x3d6f4c,_0x1e6d56,_0x2e2bc1,_0x16d46f,_0x216c14,_0x32b5ae);},'YbIvS':_0x9c497a(0x230),'GFywb':_0x9c497a(0x1c0),'JwjWM':function(_0x381ae5,_0xf94bbb){return _0x381ae5!==_0xf94bbb;},'XrfWs':'OOjyz','eeaeq':_0x9c497a(0x18a),'crNNx':_0x9c497a(0x164),'plVzU':function(_0x237ed7,_0x1e65c9){return _0x237ed7===_0x1e65c9;},'ZmiaQ':_0x9c497a(0x12c),'ioRrO':_0x9c497a(0x18f),'fNtWg':function(_0x48baba,_0x101674){return _0x48baba===_0x101674;},'rNnHz':function(_0x4d6e31,_0x33d155){return _0x4d6e31!==_0x33d155;},'AIDia':_0x9c497a(0x200),'GlErV':_0x9c497a(0x177),'hqKRp':_0x9c497a(0x1e7),'QuLVR':function(_0x4d8f36,_0x4d683d){return _0x4d8f36===_0x4d683d;},'zRtby':_0x9c497a(0x13a),'MAZdo':_0x9c497a(0x293),'VNdRQ':_0x9c497a(0x1ef),'qVbLt':_0x9c497a(0x29a),'jGnYs':_0x9c497a(0x22c),'rqOsC':_0x9c497a(0x150),'yzIfl':function(_0x1e0ce0,_0x11e276){return _0x1e0ce0===_0x11e276;},'lwhEw':_0x9c497a(0x172),'gQLZC':_0x9c497a(0x147),'zoXBG':function(_0x5b76a7,_0x2ca052){return _0x5b76a7!==_0x2ca052;},'UTIQG':_0x9c497a(0x145),'ESLxV':function(_0x3753fb,_0x3d88e6){return _0x3753fb!==_0x3d88e6;},'OvsKi':_0x9c497a(0x208),'Hegfe':function(_0x4cc3cd,_0x49ffc1){return _0x4cc3cd(_0x49ffc1);},'dSryX':_0x9c497a(0x28d),'YYNHr':_0x9c497a(0x1f2),'EwlIp':_0x9c497a(0x257),'vChCg':function(_0x5b00ec,_0x2de2c6,_0x14944f,_0x319b32,_0x564d31,_0x3f23e4,_0x1d5136){return _0x5b00ec(_0x2de2c6,_0x14944f,_0x319b32,_0x564d31,_0x3f23e4,_0x1d5136);},'SFokd':function(_0x1136e8,_0x4ddc68){return _0x1136e8===_0x4ddc68;},'MSqGx':_0x9c497a(0x261),'IAVyS':_0x9c497a(0x1cc),'mqsee':_0x9c497a(0x1ab),'vwcjE':function(_0x3f08ca,_0x16c5b5){return _0x3f08ca!==_0x16c5b5;},'AMvfo':_0x9c497a(0x1b8),'FocZr':_0x9c497a(0x15c),'SPHxd':function(_0x4ddf7f,_0x406d35){return _0x4ddf7f!=_0x406d35;},'JTnwG':function(_0x318ace,_0x19f26f){return _0x318ace!==_0x19f26f;},'cObhu':function(_0x407750,_0x640d8d){return _0x407750!=_0x640d8d;},'aildR':function(_0x1341fb,_0x249fcd){return _0x1341fb!==_0x249fcd;},'iGOiG':function(_0xd0aade,_0x2aa6dd){return _0xd0aade>_0x2aa6dd;},'bIEjw':function(_0x24f651,_0x299ffe){return _0x24f651===_0x299ffe;},'TxOdq':_0x9c497a(0x25a),'GAYbd':function(_0x50959a,_0x467f56,_0x20d939,_0x17ec10,_0x4b3e3b,_0x29081b,_0x2ecd95,_0x54914e){return _0x50959a(_0x467f56,_0x20d939,_0x17ec10,_0x4b3e3b,_0x29081b,_0x2ecd95,_0x54914e);},'PVsRH':_0x9c497a(0x1a1),'akJin':function(_0x5100e0,_0x3c7ecc){return _0x5100e0===_0x3c7ecc;},'lPHlz':_0x9c497a(0x1bd),'INYUh':_0x9c497a(0x1e2),'EEMTK':function(_0x4ef1db,_0x106b44,_0x1f6903,_0xb5560c,_0x2b4e31,_0x401e2f,_0x219185,_0xb7f54c){return _0x4ef1db(_0x106b44,_0x1f6903,_0xb5560c,_0x2b4e31,_0x401e2f,_0x219185,_0xb7f54c);},'gQnDo':_0x9c497a(0x26f),'srycv':_0x9c497a(0x1d6),'Oizxb':_0x9c497a(0x1d7),'knQOk':'The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','RGaBu':function(_0x47a867,_0x7f49c6){return _0x47a867===_0x7f49c6;},'uYAhe':function(_0x4fe26c,_0x58313f){return _0x4fe26c===_0x58313f;},'IyEYj':_0x9c497a(0x215),'Piyji':function(_0x4ef897,_0xf1e93d,_0x3a85ee){return _0x4ef897(_0xf1e93d,_0x3a85ee);},'xpdUl':'Adding\x20Secret\x20Mapping','RTZWI':_0x9c497a(0x22d),'LywmX':'templates','rQSXF':_0x9c497a(0x2b0),'wGCty':_0x9c497a(0x18b),'zzgpQ':'utf-8','CfdKg':function(_0x5c59f6,_0x41a5e8){return _0x5c59f6(_0x41a5e8);},'PHtjH':function(_0x22ab8b,_0x1120ed){return _0x22ab8b(_0x1120ed);},'KVzTk':function(_0xbec961,_0x208f5f,_0x1ea015){return _0xbec961(_0x208f5f,_0x1ea015);},'ogdEV':_0x9c497a(0x17c),'uOapv':_0x9c497a(0x24d),'jogLr':function(_0x5762bc,_0x29790d){return _0x5762bc===_0x29790d;},'ixtgA':'Adding\x20Redis\x20deployment...','fXQrD':_0x9c497a(0x1bb),'LWRIl':_0x9c497a(0x1c1),'qjDkp':_0x9c497a(0x18c),'PbnBV':_0x9c497a(0x262),'UuIQB':function(_0x5e2433,_0x23aa97,_0x396bb7){return _0x5e2433(_0x23aa97,_0x396bb7);},'lNJvB':_0x9c497a(0x143),'ZNLOB':_0x9c497a(0x240),'zgJse':_0x9c497a(0x1ca),'unvwe':function(_0x2e1991,_0x25359a){return _0x2e1991===_0x25359a;},'glFvC':_0x9c497a(0x296),'fUPqT':_0x9c497a(0x13d),'eykjh':_0x9c497a(0x19a),'PHAWv':'2|3|1|4|0','XJDQS':function(_0x443363,_0x519ff4,_0x3f048a,_0x4da446,_0x484b94,_0x53a37f,_0x5d2bbd,_0xcc8a5e){return _0x443363(_0x519ff4,_0x3f048a,_0x4da446,_0x484b94,_0x53a37f,_0x5d2bbd,_0xcc8a5e);},'YNOhW':_0x9c497a(0x194),'YuUps':_0x9c497a(0x274),'xNgyj':_0x9c497a(0x23d),'vFZpk':'Namespace\x20Created','TTgxU':_0x9c497a(0x1b2),'RIGOQ':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','jduQz':'Spawning\x20Grid\x20on\x20the\x20Cluster','VtnsR':function(_0xdb1bc7,_0x3e1844){return _0xdb1bc7===_0x3e1844;},'ZbssN':function(_0x4c2908,_0x343c0a,_0xf6548,_0x25a457,_0xd44a93,_0x1b81b2,_0x5e7ffb,_0x4a57d6,_0x5418b5,_0x17c8ad,_0x1239b0){return _0x4c2908(_0x343c0a,_0xf6548,_0x25a457,_0xd44a93,_0x1b81b2,_0x5e7ffb,_0x4a57d6,_0x5418b5,_0x17c8ad,_0x1239b0);},'GTgax':_0x9c497a(0x152),'Yugge':_0x9c497a(0x286),'JUfga':function(_0x10ed97,_0x1ffe08,_0x131c16,_0x102197,_0x4c61ee){return _0x10ed97(_0x1ffe08,_0x131c16,_0x102197,_0x4c61ee);},'xxNyz':'private-ingress-nginx-controller','rVAlA':_0x9c497a(0x259),'VAeGh':_0x9c497a(0x1d1),'UtCtK':_0x9c497a(0x216),'CgWXq':_0x9c497a(0x1b9),'SXgJA':function(_0x2a9aee,_0x1ecae4){return _0x2a9aee===_0x1ecae4;},'ODUua':_0x9c497a(0x1fc),'KXxFn':function(_0x3ebb6d,_0x44dae5,_0x59b0d7,_0x37b4ac,_0x2cf5d7,_0x48a5d1,_0x3348e0,_0x1d9f15){return _0x3ebb6d(_0x44dae5,_0x59b0d7,_0x37b4ac,_0x2cf5d7,_0x48a5d1,_0x3348e0,_0x1d9f15);},'QNyHl':'get-grid-url-auth-failed','KsZXI':function(_0x4204ed,_0x3d83a8){return _0x4204ed!==_0x3d83a8;},'FFxCS':_0x9c497a(0x217),'cTtRY':function(_0x476612,_0x9eb7b1){return _0x476612===_0x9eb7b1;},'QzHsm':_0x9c497a(0x133),'cTzrK':function(_0x1df4da,_0x4f941b,_0x4f4746,_0x364215,_0x2348c4,_0x4b94a7){return _0x1df4da(_0x4f941b,_0x4f4746,_0x364215,_0x2348c4,_0x4b94a7);},'UOIBH':_0x9c497a(0x126)};let _0x4a3fd4=![],_0xcbe24e=![],_0x15b37e,_0x57bcc2,_0x4cd602,_0x138e9d,_0x14dad7,_0x50d76c,_0xc4fdc1,_0x155ae9,_0x3ae9f9,_0x3bc10f,_0x52f4e3,_0x396c02,_0x55881a,_0x1a6be0,_0x481424=0x1,_0x3e696e=0xe;try{global_registry[_0x9c497a(0x1c7)]=_0x1b6ddf[_0x9c497a(0x1b0)](uuidv4),global_registry[_0x9c497a(0x18d)]=![];!fs[_0x9c497a(0x203)](_0x1b6ddf['sVkTx'](getCredentialsPath))&&(_0x1b6ddf[_0x9c497a(0x22b)](_0x1b6ddf[_0x9c497a(0x1a9)],_0x1b6ddf[_0x9c497a(0x1a9)])?(console[_0x9c497a(0x2a2)](_0x1b6ddf[_0x9c497a(0x218)]),await _0x1b6ddf[_0x9c497a(0x2ae)](sendInstrumentationEvent,_0x52f3d9,_0x1b6ddf[_0x9c497a(0x1d0)],messageTypes['ERROR'],_0x1b6ddf[_0x9c497a(0x19f)],null,_0x52f3d9),process[_0x9c497a(0x1c6)](0x1)):(_0xa1ca7f[_0x9c497a(0x1ea)]=_0xc3f52c,_0x122400[_0x9c497a(0x20a)]=_0x284466,_0x35a877[_0x9c497a(0x17f)]=!![]));await _0x1b6ddf[_0x9c497a(0x2ae)](sendInstrumentationEvent,_0x52f3d9,_0x1b6ddf[_0x9c497a(0x1d0)],messageTypes['INFO'],null,null,_0x52f3d9);const _0x32a6ef=JSON[_0x9c497a(0x12d)](fs[_0x9c497a(0x101)](_0x1b6ddf[_0x9c497a(0x1b0)](getCredentialsPath)));global_registry['bstackUsername']=_0x32a6ef['Browserstack'][_0x9c497a(0x16d)],global_registry[_0x9c497a(0x2b2)]=_0x32a6ef[_0x9c497a(0x23d)]['password'];const _0x5ea72d=WS_ENDPOINT[_0x9c497a(0x141)](_0x1b6ddf['TqIPs'],_0x32a6ef[_0x9c497a(0x23d)][_0x9c497a(0x16d)])[_0x9c497a(0x141)](_0x1b6ddf[_0x9c497a(0x1b1)],_0x32a6ef['Browserstack']['password']),_0x2e42b1={};_0x2e42b1['WebSocket']=ws,_0x2e42b1['connectionTimeout']=0x36ee80,_0x396c02=new ReconnectingWebSocket(_0x5ea72d,[],_0x2e42b1),logger[_0x9c497a(0x28b)](_0x1b6ddf['Iwdhu']),webSocketUtils[_0x9c497a(0x11f)](_0x396c02,_0x52f3d9['user'],_0x52f3d9[_0x9c497a(0x18e)]);const _0x3df6e4=_0x52f3d9[_0x9c497a(0x1cf)]||DEFAULT_GRID_NAME;if(_0x52f3d9[_0x9c497a(0x1f1)]||_0x52f3d9[_0x9c497a(0x20a)]||_0x52f3d9['region']){if(_0x1b6ddf['ejneb'](_0x1b6ddf[_0x9c497a(0x1e9)],_0x1b6ddf['gBGNV'])){!(_0x52f3d9[_0x9c497a(0x1f1)]&&_0x52f3d9[_0x9c497a(0x20a)]&&_0x52f3d9[_0x9c497a(0x1ea)])&&(_0x1b6ddf[_0x9c497a(0x22b)](_0x1b6ddf[_0x9c497a(0x1ce)],_0x1b6ddf[_0x9c497a(0x2a9)])?_0x2ab0e8=null:(_0x15b37e=_0x1b6ddf[_0x9c497a(0x180)],await _0x1b6ddf[_0x9c497a(0x17a)](reportToGalactusAndSendToEDS,_0x52f3d9,_0x396c02,_0x15b37e,messageTypes[_0x9c497a(0x1e4)],_0x1b6ddf[_0x9c497a(0x1d0)],_0x1b6ddf[_0x9c497a(0x13f)],_0x1b6ddf[_0x9c497a(0x17d)]),logger['error'](_0x15b37e),process[_0x9c497a(0x1c6)](0x1)));![AWS,AZURE,GCP]['includes'](_0x52f3d9[_0x9c497a(0x20a)][_0x9c497a(0x1c5)]())&&(_0x1b6ddf['FFlwk'](_0x1b6ddf[_0x9c497a(0x14e)],_0x1b6ddf[_0x9c497a(0x14e)])?(_0x15b37e=_0x1b6ddf[_0x9c497a(0x245)],await _0x1b6ddf[_0x9c497a(0x14f)](reportToGalactusAndSendToEDS,_0x52f3d9,_0x396c02,_0x15b37e,messageTypes[_0x9c497a(0x1e4)],_0x1b6ddf[_0x9c497a(0x1d0)],_0x1b6ddf[_0x9c497a(0x1d3)],_0x1b6ddf[_0x9c497a(0x17d)]),logger[_0x9c497a(0x2a2)](_0x15b37e),process[_0x9c497a(0x1c6)](0x1)):_0x151857[_0x9c497a(0x18d)]=!![]);if(_0x52f3d9[_0x9c497a(0x275)]&&_0x1b6ddf[_0x9c497a(0x130)](_0x52f3d9[_0x9c497a(0x275)][_0x9c497a(0x1c5)](),_0x1b6ddf['XQokH'])){if(_0x1b6ddf['lyOOd'](_0x1b6ddf[_0x9c497a(0x22e)],_0x1b6ddf['Dxnjp']))global_registry[_0x9c497a(0x18d)]=!![];else{const _0x12bd28={'azure.workload.identity/use':_0x1b6ddf['XQokH'],..._0x46e05a[0x0][_0x9c497a(0x146)][_0x9c497a(0x1a0)][_0x9c497a(0x16b)]['labels']};_0xf8c822[0x0][_0x9c497a(0x146)][_0x9c497a(0x1a0)]['metadata'][_0x9c497a(0x168)]=_0x12bd28,_0x21354b[0x0]['spec']['template']['spec']['serviceAccountName']=_0x1b6ddf[_0x9c497a(0x118)];}}global_registry['cloudProvider']=_0x52f3d9[_0x9c497a(0x20a)],global_registry[_0x9c497a(0x163)]=_0x52f3d9[_0x9c497a(0x1ea)],global_registry[_0x9c497a(0x1f1)]=_0x52f3d9[_0x9c497a(0x1f1)];const _0x3f43f6=await _0x1b6ddf['GULFO'](getCloudProviderObject,_0x52f3d9[_0x9c497a(0x20a)],_0x52f3d9[_0x9c497a(0x1f1)],_0x3df6e4,_0x396c02,webSocketUtils,_0x52f3d9),_0x152926=await _0x3f43f6[_0x9c497a(0x2a0)]();!_0x152926?_0x1b6ddf[_0x9c497a(0x2a8)](_0x1b6ddf[_0x9c497a(0x243)],_0x1b6ddf['PlvxY'])?_0x1b6ddf[_0x9c497a(0x15e)](_0x52d65c,_0x427dda[_0x9c497a(0x131)]):(logger[_0x9c497a(0x21b)](_0x9c497a(0x128)+_0x52f3d9['clusterName']+_0x9c497a(0x25d)),_0x4a3fd4=![],_0xcbe24e=!![]):_0x1b6ddf[_0x9c497a(0x1fb)](_0x1b6ddf[_0x9c497a(0x179)],_0x1b6ddf[_0x9c497a(0x1cd)])?_0x25493c[_0x9c497a(0x184)]():_0x4a3fd4=!![],_0x4cd602=_0x52f3d9[_0x9c497a(0x1f1)],_0x57bcc2=_0x52f3d9[_0x9c497a(0x20a)]['toLowerCase'](),_0x138e9d=_0x52f3d9[_0x9c497a(0x1ea)];}else _0x5e885e=_0x1b6ddf[_0x9c497a(0x271)];}else _0x52f3d9[_0x9c497a(0x115)]&&(_0x1b6ddf['lyOOd'](_0x1b6ddf['ENbdQ'],_0x1b6ddf['ENbdQ'])?_0x412855[_0x9c497a(0x2a2)](_0x9c497a(0x238)+_0x8c48aa+'\x20\x0a'+_0x56086a[_0x9c497a(0x125)](_0x5770d1['stack'])):global_registry[_0x9c497a(0x115)]=_0x52f3d9['gridProfile']);global_registry[_0x9c497a(0x1cf)]=_0x52f3d9[_0x9c497a(0x1cf)];const _0x11c574={'method':_0x1b6ddf[_0x9c497a(0x298)],'headers':_0x1b6ddf[_0x9c497a(0x2a4)](getAuthHeader,_0x32a6ef[_0x9c497a(0x23d)][_0x9c497a(0x16d)],_0x32a6ef[_0x9c497a(0x23d)][_0x9c497a(0x18e)]),'throwHttpErrors':![]},_0x1fe10e={};_0x1fe10e[_0x9c497a(0x1cf)]=_0x3df6e4;const _0x210c7f=_0x1fe10e;_0xcbe24e&&(_0x1b6ddf[_0x9c497a(0x19d)](_0x1b6ddf[_0x9c497a(0x1a7)],_0x1b6ddf['CVXWH'])?_0x44aaa6[_0x9c497a(0x21b)]('Found\x20VPC:\x20'+_0x19fd49+'\x20'):(_0x210c7f[_0x9c497a(0x1ea)]=_0x138e9d,_0x210c7f[_0x9c497a(0x20a)]=_0x57bcc2,_0x210c7f[_0x9c497a(0x17f)]=!![]));const _0x42ae58=_0x9c497a(0x103)+AG_API_URL+_0x9c497a(0x221),_0x5a631d={'searchParams':_0x210c7f,'throwHttpErrors':![],..._0x11c574},_0x2ff52e=_0x5a631d,_0x170c1c=await _0x1b6ddf['tssYN'](got,_0x42ae58,_0x2ff52e);(_0x1b6ddf[_0x9c497a(0x2a8)](_0x170c1c,null)||_0x1b6ddf['WSyTJ'](_0x170c1c,undefined))&&(_0x1b6ddf[_0x9c497a(0x220)](_0x1b6ddf[_0x9c497a(0x28a)],_0x1b6ddf[_0x9c497a(0x28a)])?_0x1b6ddf[_0x9c497a(0x1f3)](_0x286d1,_0x57d9ef[_0x9c497a(0x1f0)]):(_0x15b37e=_0x1b6ddf[_0x9c497a(0x2a7)],await _0x1b6ddf[_0x9c497a(0x14f)](reportToGalactusAndSendToEDS,_0x52f3d9,_0x396c02,_0x15b37e,messageTypes[_0x9c497a(0x1e4)],_0x1b6ddf[_0x9c497a(0x1d0)],_0x1b6ddf[_0x9c497a(0x292)],_0x1b6ddf[_0x9c497a(0x17d)]),logger[_0x9c497a(0x2a2)](_0x15b37e),process[_0x9c497a(0x1c6)](0x1)));if(_0x1b6ddf[_0x9c497a(0x10a)](_0x170c1c[_0x9c497a(0x267)],0x191)){if(_0x1b6ddf[_0x9c497a(0x19d)](_0x1b6ddf[_0x9c497a(0x2af)],_0x1b6ddf[_0x9c497a(0x151)]))_0x15b37e=_0x1b6ddf[_0x9c497a(0x159)],await _0x1b6ddf['JuVha'](reportToGalactusAndSendToEDS,_0x52f3d9,_0x396c02,_0x15b37e,messageTypes[_0x9c497a(0x1e4)],_0x1b6ddf[_0x9c497a(0x1d0)],_0x1b6ddf[_0x9c497a(0x14d)],_0x1b6ddf[_0x9c497a(0x17d)]),logger[_0x9c497a(0x2a2)](_0x15b37e),process[_0x9c497a(0x1c6)](0x1);else{const _0x212075={};_0x212075['type']=_0x3f1793[_0x9c497a(0x14a)],_0x212075[_0x9c497a(0x213)]='Cluster\x20'+_0x510b55+_0x9c497a(0x205),_0x4a7b56[_0x9c497a(0x1de)](_0xb89790,_0x212075,_0x1b6ddf['gfYCO']),_0x344572['info'](_0x9c497a(0x12f)+_0x21799d+_0x9c497a(0x205)),_0x11afe2=!![];if(_0x1b6ddf[_0x9c497a(0x22b)](_0x59a283,!![]))throw new _0x2e34f7(_0x9c497a(0x12f)+_0x4fe601+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}_0x1b6ddf[_0x9c497a(0x19d)](_0x170c1c[_0x9c497a(0x267)],0xc8)&&(_0x1b6ddf[_0x9c497a(0x10a)](_0x1b6ddf[_0x9c497a(0x1f6)],_0x1b6ddf[_0x9c497a(0x1f6)])?(_0x15b37e=_0x9c497a(0x186)+JSON[_0x9c497a(0x125)](_0x170c1c[_0x9c497a(0x242)]),await _0x1b6ddf[_0x9c497a(0x20b)](reportToGalactusAndSendToEDS,_0x52f3d9,_0x396c02,_0x15b37e,messageTypes['ERROR'],_0x1b6ddf['HYGfb'],_0x1b6ddf[_0x9c497a(0x19b)],_0x1b6ddf[_0x9c497a(0x17d)]),logger['error'](_0x15b37e),process[_0x9c497a(0x1c6)](0x1)):_0x687e1d=null);const _0x360a86=JSON[_0x9c497a(0x12d)](_0x170c1c[_0x9c497a(0x242)]),_0x56be11={};_0x56be11['type']=WS_EVENTS[_0x9c497a(0x1c3)],_0x56be11[_0x9c497a(0x213)]=_0x1b6ddf[_0x9c497a(0x113)],webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x56be11);const _0x3bd4e7={};_0x3bd4e7[_0x9c497a(0x235)]=WS_EVENTS['LOG'],_0x3bd4e7['message']=_0x1b6ddf['ylvXc'],webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x3bd4e7);_0x360a86[_0x9c497a(0x202)]&&(_0x1b6ddf[_0x9c497a(0x199)](_0x1b6ddf[_0x9c497a(0x11e)],_0x1b6ddf[_0x9c497a(0x11e)])?(_0x1f4684=_0x5ae3ee[_0x9c497a(0x295)],_0x3ce7c2=_0x1b6ddf[_0x9c497a(0x249)]):(_0x15b37e=_0x9c497a(0x13b)+_0x3df6e4+_0x9c497a(0x27f),await _0x1b6ddf[_0x9c497a(0x29d)](reportToGalactusAndSendToEDS,_0x52f3d9,_0x396c02,_0x15b37e,messageTypes[_0x9c497a(0x1e4)],_0x1b6ddf[_0x9c497a(0x1d0)],_0x1b6ddf['YbIvS'],_0x1b6ddf['DADeL']),logger[_0x9c497a(0x2a2)](_0x15b37e),process[_0x9c497a(0x1c6)](0x1)));const _0xabd6d2=_0x360a86[_0x9c497a(0x24c)];let _0x269653=_0xabd6d2[_0x360a86['defaultGridProfile']];_0x52f3d9['gridProfile']&&(_0x1b6ddf[_0x9c497a(0x10a)](_0x1b6ddf[_0x9c497a(0x1ee)],_0x1b6ddf['GFywb'])?_0x269653=_0xabd6d2[_0x52f3d9[_0x9c497a(0x115)]]:_0x4a595d=_0x1b6ddf[_0x9c497a(0x23e)]);global_registry[_0x9c497a(0x153)]=![];if(_0x52f3d9[_0x9c497a(0x2ac)]){if(_0x1b6ddf[_0x9c497a(0x21d)](_0x1b6ddf[_0x9c497a(0x15b)],_0x1b6ddf[_0x9c497a(0x1fa)])){const _0x6cbeb4=_0x1b6ddf[_0x9c497a(0x251)]['split']('|');let _0x47be3b=0x0;while(!![]){switch(_0x6cbeb4[_0x47be3b++]){case'0':global_registry['hubHaNameSpace']=_0x1b6ddf[_0x9c497a(0x225)];continue;case'1':logger['info'](_0x1b6ddf[_0x9c497a(0x1f7)]);continue;case'2':global_registry[_0x9c497a(0x280)]=_0x1b6ddf[_0x9c497a(0x282)];continue;case'3':global_registry[_0x9c497a(0x153)]=!![];continue;case'4':global_registry[_0x9c497a(0x258)]=_0x1b6ddf[_0x9c497a(0x1c2)];continue;}break;}}else{const _0x23431c={};_0x23431c[_0x9c497a(0x1ad)]=_0x1b6ddf[_0x9c497a(0x1a4)],_0x23431c[_0x9c497a(0x235)]=_0x1b6ddf[_0x9c497a(0x16c)];const _0xc4f1b={};_0xc4f1b[_0x9c497a(0x1ad)]=_0x1b6ddf[_0x9c497a(0x188)],_0xc4f1b['type']=_0x1b6ddf['oRVIs'];const _0x325f1b={};_0x325f1b[_0x9c497a(0x1ad)]=_0x1b6ddf[_0x9c497a(0x1ba)],_0x325f1b[_0x9c497a(0x235)]=_0x1b6ddf[_0x9c497a(0x16c)];const _0x3d5a40={};_0x3d5a40[_0x9c497a(0x1ad)]=_0x1b6ddf[_0x9c497a(0x127)],_0x3d5a40[_0x9c497a(0x235)]=_0x1b6ddf['oRVIs'];const _0x3dbf43={};_0x3dbf43[_0x9c497a(0x1ad)]=_0x1b6ddf[_0x9c497a(0x10b)],_0x3dbf43[_0x9c497a(0x235)]=_0x1b6ddf[_0x9c497a(0x16c)];const _0xa94322={};_0xa94322[_0x9c497a(0x1ad)]=_0x1b6ddf[_0x9c497a(0x212)],_0xa94322['type']=_0x1b6ddf['oRVIs'];const _0x5bec8e={};_0x5bec8e['description']=_0x1b6ddf[_0x9c497a(0x11a)],_0x5bec8e[_0x9c497a(0x235)]=_0x1b6ddf[_0x9c497a(0x279)],_0x5bec8e['default']=![];const _0x2a6386={};_0x2a6386[_0x9c497a(0x1ad)]=_0x1b6ddf['BryRg'],_0x2a6386['type']=_0x1b6ddf['EApNN'],_0x2a6386['default']=![];const _0xc382b3={};return _0xc382b3[_0x9c497a(0x12b)]=_0x23431c,_0xc382b3[_0x9c497a(0x1f5)]=_0xc4f1b,_0xc382b3[_0x9c497a(0x10d)]=_0x325f1b,_0xc382b3['cloud-provider']=_0x3d5a40,_0xc382b3[_0x9c497a(0x1ea)]=_0x3dbf43,_0xc382b3[_0x9c497a(0x16a)]=_0xa94322,_0xc382b3[_0x9c497a(0x246)]=_0x5bec8e,_0xc382b3[_0x9c497a(0x12e)]=_0x2a6386,_0x7f613e[_0x9c497a(0x1fd)](_0x371c6c['create'])[_0x9c497a(0x195)](_0x58d5c2)[_0x9c497a(0x106)](_0xc382b3)[_0x9c497a(0x169)](_0x1b6ddf[_0x9c497a(0x11c)])[_0x9c497a(0x1e5)];}}if(_0x1b6ddf[_0x9c497a(0x2a8)](_0x4a3fd4,![])&&_0x1b6ddf[_0x9c497a(0x1c9)](_0xcbe24e,![])){if(_0x1b6ddf[_0x9c497a(0x1c9)](_0x1b6ddf[_0x9c497a(0x287)],_0x1b6ddf[_0x9c497a(0x10e)]))_0xb71ca5[_0x9c497a(0x21b)](_0x9c497a(0x120)+_0x1b86e0['stringify'](_0x28df90)+'\x20');else{if(_0x1b6ddf['fNtWg'](_0x269653,undefined)){if(_0x1b6ddf[_0x9c497a(0x27d)](_0x1b6ddf[_0x9c497a(0x26a)],_0x1b6ddf['AIDia'])){const _0xe53974={};_0xe53974[_0x9c497a(0x235)]=_0x279ea7[_0x9c497a(0x14a)],_0xe53974[_0x9c497a(0x213)]=_0x276019,_0x474449['sendEventToBackend'](_0x9d25e0,_0xe53974,_0x1b6ddf['DADeL'],!![]);}else _0x15b37e=_0x1b6ddf['GlErV'],await _0x1b6ddf['IFiya'](reportToGalactusAndSendToEDS,_0x52f3d9,_0x396c02,_0x15b37e,messageTypes[_0x9c497a(0x1e4)],_0x1b6ddf[_0x9c497a(0x1d0)],_0x1b6ddf[_0x9c497a(0x129)],_0x1b6ddf[_0x9c497a(0x17d)]),logger[_0x9c497a(0x2a2)](_0x15b37e),process['exit'](0x1);}global_registry[_0x9c497a(0x20f)]=_0x269653['id'],_0x15b37e=_0x9c497a(0x256)+_0x3df6e4+'\x20using\x20\x27'+_0x269653['name']+'\x27\x20grid\x20profile',logger['info'](_0x15b37e);const _0x5e854c={};_0x5e854c[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x5e854c[_0x9c497a(0x213)]=_0x15b37e,webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x5e854c),_0x57bcc2=_0x269653[_0x9c497a(0x20a)],_0x4cd602=_0x269653[_0x9c497a(0x1f1)],_0x138e9d=_0x269653[_0x9c497a(0x1ea)],_0x14dad7=_0x269653[_0x9c497a(0x142)],_0x50d76c=_0x269653[_0x9c497a(0x181)],_0xc4fdc1=_0x269653[_0x9c497a(0x1af)],_0x155ae9=_0x269653[_0x9c497a(0x209)],_0x3ae9f9=_0x269653[_0x9c497a(0x2a5)],_0x3bc10f=_0x269653[_0x9c497a(0x21c)],_0x481424=_0x269653['minNodes'],_0x3e696e=_0x269653[_0x9c497a(0x1d9)],_0x55881a=_0x360a86[_0x9c497a(0x210)],_0x1a6be0=_0x360a86[_0x9c497a(0x25b)];if(_0xc4fdc1&&_0x1b6ddf[_0x9c497a(0x130)](_0xc4fdc1['length'],0x0)){if(_0x1b6ddf['QuLVR'](_0x1b6ddf[_0x9c497a(0x227)],_0x1b6ddf[_0x9c497a(0x227)]))_0xc4fdc1=null;else throw new _0x2ad2a5(_0x9c497a(0x12f)+_0x2a58f4+_0x9c497a(0x2ad));}if(_0x3ae9f9&&_0x1b6ddf[_0x9c497a(0x1c9)](_0x3ae9f9[_0x9c497a(0x26c)],0x0)){if(_0x1b6ddf[_0x9c497a(0x19d)](_0x1b6ddf['MAZdo'],_0x1b6ddf[_0x9c497a(0x122)]))_0x3ae9f9=null;else{const _0x26a2f1=_0x1b6ddf['lYXmF']['split']('|');let _0x150477=0x0;while(!![]){switch(_0x26a2f1[_0x150477++]){case'0':_0x32cc4d['kafkaPassword']=_0x1b6ddf[_0x9c497a(0x1c2)];continue;case'1':_0x4a2358[_0x9c497a(0x21b)](_0x1b6ddf[_0x9c497a(0x1f7)]);continue;case'2':_0x3b3d0b[_0x9c497a(0x153)]=!![];continue;case'3':_0x592cfc[_0x9c497a(0x280)]=_0x1b6ddf[_0x9c497a(0x282)];continue;case'4':_0x56e7a0[_0x9c497a(0x140)]=_0x1b6ddf[_0x9c497a(0x225)];continue;}break;}}}if(_0x1b6ddf['lyOOd'](_0x269653[_0x9c497a(0x275)],undefined)&&_0x269653[_0x9c497a(0x275)]){if(_0x1b6ddf[_0x9c497a(0x2a8)](_0x1b6ddf[_0x9c497a(0x277)],_0x1b6ddf[_0x9c497a(0x1b3)])){const _0xc22b23=_0x1b6ddf[_0x9c497a(0x20d)][_0x9c497a(0x283)]('|');let _0x5ed2fd=0x0;while(!![]){switch(_0xc22b23[_0x5ed2fd++]){case'0':_0x3d2354='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x489db2;continue;case'1':_0x530c8a[_0x9c497a(0x153)]&&_0x1b6ddf[_0x9c497a(0x1f3)](_0x3d1427,_0x47a9f5['kafkaUploader']);continue;case'2':_0x1b6ddf[_0x9c497a(0x19d)](_0x39e690[_0x9c497a(0x275)],_0x5b946c)&&_0x2092ee['privateGrid']&&(_0x5d0297[_0x9c497a(0x18d)]=!![]);continue;case'3':const _0x85fa9a={};_0x85fa9a[_0x9c497a(0x235)]=_0x5ab5a0['LOG'],_0x85fa9a[_0x9c497a(0x213)]=_0xffb2a5,_0x4c9bed[_0x9c497a(0x1de)](_0x5a5bbe,_0x85fa9a);continue;case'4':_0x2c9cb1=_0x4534a1[_0x9c497a(0x210)];continue;case'5':_0x4da8d4[_0x9c497a(0x21b)](_0x4973a8);continue;case'6':_0x4eff6d=null;continue;case'7':_0x1587be=null;continue;case'8':_0x497d2d=_0x448e1c[_0x9c497a(0x138)];continue;case'9':_0x3b04d1=_0x4c5e49[_0x9c497a(0x21c)];continue;case'10':_0x1b6cef=_0x92489c[_0x9c497a(0x142)];continue;case'11':_0x588ba9=null;continue;case'12':_0x374758=_0x492935[_0x9c497a(0x25b)];continue;case'13':_0x2b950c=_0x54b291[_0x9c497a(0x1d9)];continue;case'14':_0x1b6ddf[_0x9c497a(0x27e)](_0x56a69b,_0x2cb520,_0x3abd3d,_0x3c2569,_0x7b8f07,_0x296321,_0x46d002,_0x2bde99,_0x4feaa0,_0x46eb5e,_0x3fad06,_0x358443);continue;case'15':_0x598039=_0x37d8e6[_0x9c497a(0x181)];continue;}break;}}else global_registry[_0x9c497a(0x18d)]=!![];}_0x1b6ddf[_0x9c497a(0x27e)](updateGlobalRegistryWithConfig,_0x57bcc2,_0x4cd602,_0x138e9d,_0x14dad7,_0x50d76c,_0x3bc10f,_0x269653,_0x55881a,_0x1a6be0,_0x481424,_0x3e696e);if(global_registry['enableHubHa']){if(_0x1b6ddf['lyOOd'](_0x1b6ddf['rqOsC'],_0x1b6ddf['rqOsC'])){const _0x3213f9=_0x1b6ddf[_0x9c497a(0x285)]['split']('|');let _0x165112=0x0;while(!![]){switch(_0x3213f9[_0x165112++]){case'0':_0x22ae80[_0x9c497a(0x210)]=_0x5a3107[_0x9c497a(0x210)];continue;case'1':const _0x3b9876={};_0x3b9876[_0x9c497a(0x235)]=_0x542aca[_0x9c497a(0x1c3)],_0x3b9876[_0x9c497a(0x213)]=_0x1b6ddf[_0x9c497a(0x113)],_0x153776[_0x9c497a(0x1de)](_0x56f767,_0x3b9876);continue;case'2':_0x262729[_0x9c497a(0x163)]=_0x165b8a;continue;case'3':_0x316222[_0x9c497a(0x21b)](_0x1908f1);continue;case'4':_0x47efa5[_0x9c497a(0x25b)]=_0x4eade2[_0x9c497a(0x25b)];continue;case'5':_0x1d4433['cloudProvider']=_0x38f4fe;continue;case'6':_0xa8d5ad['clusterName']=_0x98a9c;continue;case'7':const _0x17cb61={};_0x17cb61[_0x9c497a(0x235)]=_0x185048[_0x9c497a(0x14a)],_0x17cb61[_0x9c497a(0x213)]=_0x5bc8ea,_0x1ed252[_0x9c497a(0x1de)](_0x119768,_0x17cb61);continue;case'8':_0xc34c42=_0x9c497a(0x1f9)+_0x4e98a+_0x9c497a(0x20e)+_0x44fd3c+'\x27';continue;}break;}}else _0x1b6ddf[_0x9c497a(0x15e)](updateGlobalRegistryForHubHa,_0x360a86[_0x9c497a(0x1f0)]);}}}else{if(_0x1b6ddf[_0x9c497a(0x185)](_0xcbe24e,!![])){if(_0x1b6ddf[_0x9c497a(0x185)](_0x1b6ddf[_0x9c497a(0x22a)],_0x1b6ddf[_0x9c497a(0x1d2)]))_0x17b04e=_0x27fc0f[_0x1256a8['gridProfile']];else{_0x15b37e=_0x9c497a(0x197)+_0x3df6e4,logger['info'](_0x15b37e);const _0x30e07f={};_0x30e07f[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x30e07f[_0x9c497a(0x213)]=_0x15b37e,webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x30e07f),_0x14dad7=_0x269653[_0x9c497a(0x142)],_0x50d76c=_0x269653[_0x9c497a(0x181)],_0xc4fdc1=null,_0x155ae9=null,_0x3ae9f9=null,_0x3bc10f=_0x269653[_0x9c497a(0x21c)],_0x481424=_0x269653['minNodes'],_0x3e696e=_0x269653[_0x9c497a(0x1d9)],_0x55881a=_0x360a86[_0x9c497a(0x210)],_0x1a6be0=_0x360a86[_0x9c497a(0x25b)],_0x1b6ddf[_0x9c497a(0x199)](_0x269653[_0x9c497a(0x275)],undefined)&&_0x269653[_0x9c497a(0x275)]&&(_0x1b6ddf[_0x9c497a(0x191)](_0x1b6ddf[_0x9c497a(0x1b4)],_0x1b6ddf[_0x9c497a(0x1b4)])?_0x555aa1['isPrivateGrid']=!![]:global_registry[_0x9c497a(0x18d)]=!![]),_0x1b6ddf['KHOHj'](updateGlobalRegistryWithConfig,_0x57bcc2,_0x4cd602,_0x138e9d,_0x14dad7,_0x50d76c,_0x3bc10f,_0x269653,_0x55881a,_0x1a6be0,_0x481424,_0x3e696e),global_registry[_0x9c497a(0x153)]&&(_0x1b6ddf[_0x9c497a(0x232)](_0x1b6ddf['OvsKi'],_0x1b6ddf[_0x9c497a(0x121)])?(_0x1096fb[_0x9c497a(0x21b)](_0x9c497a(0x128)+_0x161381[_0x9c497a(0x1f1)]+_0x9c497a(0x25d)),_0x2ace7d=![],_0x23b1af=!![]):_0x1b6ddf['Hegfe'](updateGlobalRegistryForHubHa,_0x360a86['kafkaUploader']));}}else{if(_0x1b6ddf[_0x9c497a(0x1c9)](_0x1b6ddf[_0x9c497a(0x26d)],_0x1b6ddf[_0x9c497a(0x237)]))_0x20b972['gridProfile']=_0x54c1a3[_0x9c497a(0x115)];else{const _0x6326a7=_0x1b6ddf[_0x9c497a(0x1e3)]['split']('|');let _0x4b80ff=0x0;while(!![]){switch(_0x6326a7[_0x4b80ff++]){case'0':_0x15b37e=_0x9c497a(0x1f9)+_0x3df6e4+_0x9c497a(0x20e)+_0x4cd602+'\x27';continue;case'1':global_registry['clusterName']=_0x4cd602;continue;case'2':global_registry[_0x9c497a(0x163)]=_0x138e9d;continue;case'3':global_registry[_0x9c497a(0x25b)]=_0x360a86[_0x9c497a(0x25b)];continue;case'4':global_registry[_0x9c497a(0x210)]=_0x360a86['hubVersion'];continue;case'5':const _0x4edfd0={};_0x4edfd0[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x4edfd0[_0x9c497a(0x213)]=_0x15b37e,webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x4edfd0);continue;case'6':logger[_0x9c497a(0x21b)](_0x15b37e);continue;case'7':global_registry[_0x9c497a(0x20a)]=_0x57bcc2;continue;case'8':const _0x9e1e91={};_0x9e1e91['type']=WS_EVENTS['CLI_RUN_STARTED'],_0x9e1e91[_0x9c497a(0x213)]=_0x1b6ddf[_0x9c497a(0x113)],webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x9e1e91);continue;}break;}}}}const _0x2881b2=await _0x1b6ddf[_0x9c497a(0x270)](getCloudProviderObject,_0x57bcc2,_0x4cd602,_0x3df6e4,_0x396c02,webSocketUtils,_0x52f3d9);_0x1b6ddf[_0x9c497a(0x220)](_0x57bcc2,AZURE)&&(_0x1b6ddf[_0x9c497a(0x264)](_0x1b6ddf[_0x9c497a(0x1ac)],_0x1b6ddf[_0x9c497a(0x1ac)])?_0x2881b2[_0x9c497a(0x184)]():_0xb26e47[_0x9c497a(0x18d)]=!![]);let _0x2e2d00;if(_0x1b6ddf[_0x9c497a(0x185)](_0x4a3fd4,![])){_0x15b37e=_0x9c497a(0x299)+_0x138e9d+').';const _0x1c355d={};_0x1c355d[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x1c355d[_0x9c497a(0x213)]=_0x15b37e,webSocketUtils['sendEventToBackend'](_0x396c02,_0x1c355d),logger[_0x9c497a(0x21b)](_0x15b37e);const _0x347feb=await _0x2881b2[_0x9c497a(0x2a0)]();if(_0x347feb){if(_0x1b6ddf[_0x9c497a(0x264)](_0x1b6ddf['IAVyS'],_0x1b6ddf[_0x9c497a(0x269)]))_0x4eb526=!![];else{const _0x3f9647={};_0x3f9647[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x3f9647[_0x9c497a(0x213)]='Cluster\x20'+_0x4cd602+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x3f9647,_0x1b6ddf[_0x9c497a(0x23c)]),logger[_0x9c497a(0x21b)](_0x9c497a(0x12f)+_0x4cd602+_0x9c497a(0x205)),_0x4a3fd4=!![];if(_0x1b6ddf[_0x9c497a(0x167)](_0xcbe24e,!![])){if(_0x1b6ddf['vwcjE'](_0x1b6ddf[_0x9c497a(0x12a)],_0x1b6ddf[_0x9c497a(0x12a)]))_0x2bba88=_0x1b6ddf[_0x9c497a(0x23a)];else throw new Error('Cluster\x20'+_0x4cd602+_0x9c497a(0x2ad));}}}else{const _0x3aba76={};_0x3aba76[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x3aba76[_0x9c497a(0x213)]=_0x1b6ddf['FocZr'],webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x3aba76),logger[_0x9c497a(0x21b)](_0x1b6ddf[_0x9c497a(0x170)]);const _0x408c0c=_0x1b6ddf[_0x9c497a(0x254)](_0xc4fdc1,null)&&_0x1b6ddf['JTnwG'](_0xc4fdc1,undefined),_0x5db3fb=_0x1b6ddf['cObhu'](_0x3ae9f9,null)&&_0x1b6ddf[_0x9c497a(0x23f)](_0x3ae9f9,undefined)&&_0x1b6ddf[_0x9c497a(0x273)](_0x3ae9f9[_0x9c497a(0x26c)],0x0);if(_0x408c0c){_0x1b6ddf['bIEjw'](_0x5db3fb,![])&&(_0x15b37e=_0x1b6ddf[_0x9c497a(0x1e1)],await _0x1b6ddf[_0x9c497a(0x136)](reportToGalactusAndSendToEDS,_0x52f3d9,_0x396c02,_0x15b37e,messageTypes[_0x9c497a(0x1e4)],_0x1b6ddf[_0x9c497a(0x1d0)],_0x1b6ddf[_0x9c497a(0x144)],_0x1b6ddf['DADeL']),logger['error'](_0x15b37e),process[_0x9c497a(0x1c6)](0x1));const _0x309a07=await _0x2881b2[_0x9c497a(0x110)](_0xc4fdc1);_0x1b6ddf[_0x9c497a(0x182)](_0x309a07,![])?(_0x15b37e=_0x1b6ddf[_0x9c497a(0x105)],await _0x1b6ddf[_0x9c497a(0x19c)](reportToGalactusAndSendToEDS,_0x52f3d9,_0x396c02,_0x15b37e,messageTypes[_0x9c497a(0x1e4)],_0x1b6ddf['HYGfb'],_0x1b6ddf[_0x9c497a(0x2ab)],_0x1b6ddf[_0x9c497a(0x17d)]),logger[_0x9c497a(0x2a2)](_0x15b37e),process[_0x9c497a(0x1c6)](0x1)):logger['info'](_0x9c497a(0x29f)+_0xc4fdc1+'\x20');const _0x39b0fa=await _0x2881b2['isSubnetsValid'](_0x3ae9f9,_0xc4fdc1);_0x1b6ddf['WSyTJ'](_0x39b0fa[0x0],![])?(_0x15b37e=_0x9c497a(0x1d4)+JSON[_0x9c497a(0x125)](_0x39b0fa[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0xc4fdc1+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x1b6ddf[_0x9c497a(0x28e)](reportToGalactusAndSendToEDS,_0x52f3d9,_0x396c02,_0x15b37e,messageTypes[_0x9c497a(0x1e4)],_0x1b6ddf[_0x9c497a(0x1d0)],_0x1b6ddf['gQnDo'],_0x1b6ddf['DADeL']),logger[_0x9c497a(0x2a2)](_0x15b37e),process['exit'](0x1)):logger[_0x9c497a(0x21b)](_0x9c497a(0x120)+JSON[_0x9c497a(0x125)](_0x3ae9f9)+'\x20'),[_0xc4fdc1,_0x3ae9f9]=await _0x2881b2[_0x9c497a(0x1a5)](_0xc4fdc1,_0x3ae9f9);}else{const _0x381515=_0x1b6ddf['srycv'][_0x9c497a(0x283)]('|');let _0x67f1cd=0x0;while(!![]){switch(_0x381515[_0x67f1cd++]){case'0':logger[_0x9c497a(0x21b)](_0x1b6ddf[_0x9c497a(0x1d5)]);continue;case'1':const _0x36ee83={};_0x36ee83[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x36ee83[_0x9c497a(0x213)]=_0x1b6ddf[_0x9c497a(0x266)],webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x36ee83);continue;case'2':logger['info'](_0x1b6ddf[_0x9c497a(0x266)]);continue;case'3':[_0xc4fdc1,_0x3ae9f9]=await _0x2881b2[_0x9c497a(0x1a5)](_0xc4fdc1,_0x3ae9f9);continue;case'4':const _0x3bf098={};_0x3bf098[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x3bf098[_0x9c497a(0x213)]=_0x1b6ddf[_0x9c497a(0x1d5)],webSocketUtils['sendEventToBackend'](_0x396c02,_0x3bf098);continue;}break;}}}}_0x4a3fd4&&_0x1b6ddf[_0x9c497a(0x2a8)](_0x57bcc2,AZURE)&&(await _0x2881b2[_0x9c497a(0x102)](),await _0x2881b2['createOtherResources']());const [_0x5cf86e,_0x5a59bd,_0x56142b,_0x2a0dfb,_0x5457be,_0x56348d,_0x567690]=await _0x1b6ddf[_0x9c497a(0x2a4)](createK8sClient,_0x2881b2,_0x52f3d9['skipTlsCertVerify']);_0x1b6ddf['HcqPB'](_0x4a3fd4,![])&&_0x1b6ddf[_0x9c497a(0x1ed)](_0x57bcc2,AWS)&&(global_registry[_0x9c497a(0x1a3)]=!![],_0x2e2d00=await _0x2881b2[_0x9c497a(0x1f8)](_0x5cf86e,_0x52f3d9));if(_0x1b6ddf[_0x9c497a(0x248)](_0x4a3fd4,![])&&global_registry[_0x9c497a(0x153)])try{await _0x2881b2[_0x9c497a(0x1c8)](_0x56348d,_0x567690,_0x52f3d9,_0xc4fdc1,_0x3ae9f9);const _0x5af22e={};_0x5af22e[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x5af22e[_0x9c497a(0x213)]=_0x1b6ddf[_0x9c497a(0x124)],webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x5af22e);!await _0x1b6ddf[_0x9c497a(0x112)](namespaceExists,_0x5cf86e,global_registry[_0x9c497a(0x140)])&&await _0x1b6ddf[_0x9c497a(0x2a4)](createNamespace,_0x5cf86e,global_registry['hubHaNameSpace']);logger[_0x9c497a(0x21b)](_0x1b6ddf[_0x9c497a(0x1eb)]);let _0x3eba3f=await fs[_0x9c497a(0x183)](path[_0x9c497a(0x1ae)](__dirname,_0x1b6ddf[_0x9c497a(0x24b)],_0x1b6ddf[_0x9c497a(0x28c)],_0x1b6ddf[_0x9c497a(0x1cb)],_0x1b6ddf[_0x9c497a(0x15d)]),_0x1b6ddf['zzgpQ']);_0x3eba3f=_0x3eba3f[_0x9c497a(0x141)](/<RedisClientPassword>/g,_0x1b6ddf[_0x9c497a(0x1f3)](encodeBase64,global_registry[_0x9c497a(0x280)])),_0x3eba3f=_0x3eba3f[_0x9c497a(0x141)](/<KafkaClientPassword>/g,_0x1b6ddf['CfdKg'](encodeBase64,global_registry[_0x9c497a(0x258)])),_0x3eba3f=_0x3eba3f['replace'](/<BstackUsername>/g,_0x1b6ddf['PHtjH'](encodeBase64,global_registry['bstackUsername'])),_0x3eba3f=_0x3eba3f['replace'](/<BstackAccessKey>/g,_0x1b6ddf[_0x9c497a(0x1f3)](encodeBase64,global_registry[_0x9c497a(0x2b2)]));const _0x88dfd3=yaml['loadAll'](_0x3eba3f);await _0x1b6ddf['KVzTk'](kubeApply,_0x88dfd3,_0x567690),logger[_0x9c497a(0x21b)](_0x1b6ddf[_0x9c497a(0x116)]);let _0x18f9bf=_0x1b6ddf[_0x9c497a(0x1aa)];if(_0x1b6ddf[_0x9c497a(0x10a)](_0x57bcc2,AZURE))_0x18f9bf=_0x1b6ddf[_0x9c497a(0x23a)];else _0x1b6ddf['jogLr'](_0x57bcc2,GCP)&&(_0x18f9bf=_0x1b6ddf[_0x9c497a(0x23e)]);logger[_0x9c497a(0x21b)](_0x1b6ddf['ixtgA']);let _0x3b2785=await fs[_0x9c497a(0x183)](path['join'](__dirname,_0x1b6ddf[_0x9c497a(0x24b)],_0x1b6ddf[_0x9c497a(0x28c)],_0x1b6ddf[_0x9c497a(0x1cb)],_0x1b6ddf[_0x9c497a(0x114)]),_0x1b6ddf['zzgpQ']);_0x3b2785=_0x3b2785[_0x9c497a(0x141)](/<HubHaNameSpace>/g,global_registry[_0x9c497a(0x140)]),_0x3b2785=_0x3b2785['replace'](/<StorageClassName>/g,_0x18f9bf);const _0x17d2af=yaml[_0x9c497a(0x25f)](_0x3b2785);await _0x1b6ddf['KVzTk'](kubeApply,_0x17d2af,_0x567690),logger['info'](_0x1b6ddf[_0x9c497a(0x241)]),logger[_0x9c497a(0x21b)](_0x1b6ddf[_0x9c497a(0x268)]);let _0x1fa9f1=await fs[_0x9c497a(0x183)](path[_0x9c497a(0x1ae)](__dirname,_0x1b6ddf[_0x9c497a(0x24b)],_0x1b6ddf['LywmX'],_0x1b6ddf[_0x9c497a(0x1cb)],_0x1b6ddf[_0x9c497a(0x255)]),_0x1b6ddf[_0x9c497a(0x21a)]);_0x1fa9f1=_0x1fa9f1[_0x9c497a(0x141)](/<HubHaNameSpace>/g,global_registry[_0x9c497a(0x140)]),_0x1fa9f1=_0x1fa9f1[_0x9c497a(0x141)](/<StorageClassName>/g,_0x18f9bf);const _0x2b202c=yaml[_0x9c497a(0x25f)](_0x1fa9f1);await _0x1b6ddf[_0x9c497a(0x157)](kubeApply,_0x2b202c,_0x567690),logger[_0x9c497a(0x21b)](_0x1b6ddf['lNJvB']),logger[_0x9c497a(0x21b)](_0x1b6ddf['ZNLOB']);let _0x4bff2c=await fs[_0x9c497a(0x183)](path['join'](__dirname,_0x1b6ddf[_0x9c497a(0x24b)],_0x1b6ddf[_0x9c497a(0x28c)],_0x1b6ddf['rQSXF'],_0x1b6ddf[_0x9c497a(0x281)]),_0x1b6ddf[_0x9c497a(0x21a)]);_0x4bff2c=_0x4bff2c[_0x9c497a(0x141)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x4bff2c=_0x4bff2c[_0x9c497a(0x141)](/<HubHaNameSpace>/g,global_registry[_0x9c497a(0x140)]);const _0x461bd1=yaml[_0x9c497a(0x25f)](_0x4bff2c);_0x1b6ddf[_0x9c497a(0x250)](global_registry[_0x9c497a(0x20a)],AZURE)&&(_0x461bd1[0x0][_0x9c497a(0x146)][_0x9c497a(0x1a0)][_0x9c497a(0x16b)][_0x9c497a(0x168)]={'azure.workload.identity/use':_0x1b6ddf['XQokH'],..._0x461bd1[0x0]['spec'][_0x9c497a(0x1a0)][_0x9c497a(0x16b)][_0x9c497a(0x168)]},_0x461bd1[0x0][_0x9c497a(0x146)][_0x9c497a(0x1a0)][_0x9c497a(0x146)][_0x9c497a(0x111)]=_0x1b6ddf['NQePr']);await _0x1b6ddf['Piyji'](kubeApply,_0x461bd1,_0x567690),logger[_0x9c497a(0x21b)](_0x1b6ddf[_0x9c497a(0x1bc)]);const _0x13b0e4={};_0x13b0e4['type']=WS_EVENTS['LOG'],_0x13b0e4[_0x9c497a(0x213)]=_0x1b6ddf[_0x9c497a(0x228)],webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x13b0e4),logger[_0x9c497a(0x21b)](_0x1b6ddf[_0x9c497a(0x21f)]);}catch(_0x425995){const _0x652a74=_0x1b6ddf[_0x9c497a(0x222)]['split']('|');let _0x2caf55=0x0;while(!![]){switch(_0x652a74[_0x2caf55++]){case'0':process['exit'](0x1);continue;case'1':await _0x1b6ddf[_0x9c497a(0x174)](reportToGalactusAndSendToEDS,_0x52f3d9,_0x396c02,_0x15b37e,messageTypes[_0x9c497a(0x1e4)],_0x1b6ddf[_0x9c497a(0x1d0)],_0x1b6ddf[_0x9c497a(0x20c)],_0x1b6ddf[_0x9c497a(0x17d)]);continue;case'2':_0x15b37e=_0x9c497a(0x171)+_0x425995[_0x9c497a(0x213)];continue;case'3':logger['error'](_0x15b37e);continue;case'4':await _0x2881b2[_0x9c497a(0x2aa)](_0x5cf86e,global_registry['clusterRegion']);continue;}break;}}try{_0x52f4e3=_0x1b6ddf[_0x9c497a(0x1a6)](kebabCase,_0x3df6e4),logger[_0x9c497a(0x21b)](_0x1b6ddf[_0x9c497a(0x231)]);const _0x4c10af={};_0x4c10af[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x4c10af['message']=_0x1b6ddf[_0x9c497a(0x231)],webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x4c10af);if(_0x1b6ddf[_0x9c497a(0x199)](_0x52f4e3,_0x1b6ddf[_0x9c497a(0x118)])){const _0x351bf1={};_0x351bf1['createdBy']=_0x1b6ddf[_0x9c497a(0x107)],_0x351bf1[_0x9c497a(0x214)]=_0x1b6ddf[_0x9c497a(0x107)];const _0x1011ba={};_0x1011ba[_0x9c497a(0x17b)]=_0x52f4e3,_0x1011ba[_0x9c497a(0x155)]=_0x351bf1;const _0x1f7014={};_0x1f7014[_0x9c497a(0x16b)]=_0x1011ba;const _0x25139f=_0x1f7014,_0x38a6f9={};_0x38a6f9['body']=_0x25139f,await _0x5cf86e[_0x9c497a(0x28f)](_0x38a6f9),logger[_0x9c497a(0x21b)](_0x1b6ddf['vFZpk']);}const _0x46c229={};_0x46c229[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x46c229[_0x9c497a(0x213)]=_0x1b6ddf[_0x9c497a(0x1fe)],webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x46c229);const _0x49a1e5={};_0x49a1e5[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x49a1e5[_0x9c497a(0x213)]=_0x1b6ddf[_0x9c497a(0x10f)],webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x49a1e5),logger[_0x9c497a(0x21b)](_0x1b6ddf[_0x9c497a(0x16f)]);let _0x336f31={};_0x1b6ddf['VtnsR'](_0x57bcc2,AZURE)&&(_0x336f31={'clientId':await _0x2881b2[_0x9c497a(0x104)]('turboscale-managed-identity-'+_0x4cd602)});await _0x1b6ddf[_0x9c497a(0x158)](addGridComponents,_0x5cf86e,_0x5a59bd,_0x56142b,_0x2a0dfb,_0x52f4e3,_0x4cd602,_0x2e2d00,_0x5457be,_0x567690,_0x336f31),_0x15b37e=_0x1b6ddf['GTgax'],logger[_0x9c497a(0x21b)](_0x15b37e);const _0x27fb79={};_0x27fb79[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x27fb79['message']=_0x15b37e,webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x27fb79),_0x15b37e=_0x1b6ddf[_0x9c497a(0x15a)],logger[_0x9c497a(0x21b)](_0x15b37e);const _0x999783={};_0x999783[_0x9c497a(0x235)]=WS_EVENTS['LOG'],_0x999783[_0x9c497a(0x213)]=_0x15b37e,webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x999783),await _0x1b6ddf[_0x9c497a(0x1a2)](waitForDeployment,_0x5a59bd,_0x52f4e3,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x24e852=await _0x1b6ddf[_0x9c497a(0x1a8)](getNamespaceUID,_0x5cf86e,_0x52f4e3),_0x48bf82=global_registry[_0x9c497a(0x18d)]?_0x1b6ddf['xxNyz']:_0x1b6ddf['rVAlA'],_0x101b28={};_0x101b28['name']=_0x48bf82,_0x101b28['namespace']=_0x1b6ddf[_0x9c497a(0x289)];const _0x587d23=await _0x5cf86e[_0x9c497a(0x139)](_0x101b28);let _0x5ce81d=_0x2881b2[_0x9c497a(0x1b6)](_0x587d23)+'/'+_0x52f4e3,_0xe8f5ea=_0x1b6ddf['licOL'];try{const _0x2a9902=_0x9c497a(0x103)+AG_API_URL+_0x9c497a(0x16e)+_0x24e852,_0x296d3b=await _0x1b6ddf[_0x9c497a(0x1a8)](got,_0x2a9902,_0x11c574);(_0x1b6ddf[_0x9c497a(0x2a8)](_0x296d3b,null)||_0x1b6ddf[_0x9c497a(0x182)](_0x296d3b,undefined))&&(_0x15b37e=_0x1b6ddf[_0x9c497a(0x278)],await _0x1b6ddf[_0x9c497a(0x20b)](reportToGalactusAndSendToEDS,_0x52f3d9,_0x396c02,_0x15b37e,messageTypes['ERROR'],_0x1b6ddf['HYGfb'],_0x1b6ddf[_0x9c497a(0x27c)],_0x1b6ddf[_0x9c497a(0x17d)]),logger[_0x9c497a(0x2a2)](_0x15b37e),process[_0x9c497a(0x1c6)](0x1));_0x1b6ddf[_0x9c497a(0x173)](_0x296d3b['statusCode'],0x191)&&(_0x15b37e=_0x1b6ddf['ODUua'],await _0x1b6ddf['KXxFn'](reportToGalactusAndSendToEDS,_0x52f3d9,_0x396c02,_0x15b37e,messageTypes[_0x9c497a(0x1e4)],_0x1b6ddf[_0x9c497a(0x1d0)],_0x1b6ddf['QNyHl'],_0x1b6ddf['DADeL']),logger[_0x9c497a(0x2a2)](_0x15b37e),process[_0x9c497a(0x1c6)](0x1));_0x1b6ddf[_0x9c497a(0x148)](_0x296d3b[_0x9c497a(0x267)],0xc8)&&(_0x15b37e=_0x9c497a(0x263)+JSON['stringify'](_0x296d3b),await _0x1b6ddf[_0x9c497a(0x28e)](reportToGalactusAndSendToEDS,_0x52f3d9,_0x396c02,_0x15b37e,messageTypes[_0x9c497a(0x1e4)],_0x1b6ddf[_0x9c497a(0x1d0)],_0x1b6ddf[_0x9c497a(0x1ec)],_0x1b6ddf['DADeL']),logger[_0x9c497a(0x2a2)](_0x15b37e),process[_0x9c497a(0x1c6)](0x1));const _0x23db70=JSON[_0x9c497a(0x12d)](_0x296d3b[_0x9c497a(0x242)]);_0x23db70[_0x9c497a(0x295)]&&(_0x5ce81d=_0x23db70['route53'],_0xe8f5ea=_0x1b6ddf[_0x9c497a(0x249)]),global_registry[_0x9c497a(0x18d)]&&(_0xe8f5ea=_0x1b6ddf[_0x9c497a(0x271)]);}catch(_0x17bd41){}_0x15b37e=_0x9c497a(0x1e0)+_0x5ce81d+'\x20',logger[_0x9c497a(0x21b)](_0x15b37e);const _0x408c64={};_0x408c64[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x408c64['message']=_0x15b37e,webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x408c64),_0x15b37e=_0x9c497a(0x1f4)+_0xe8f5ea+_0x9c497a(0x13e)+_0x5ce81d+_0x9c497a(0x162),logger[_0x9c497a(0x21b)](_0x15b37e);const _0x4923c={};_0x4923c[_0x9c497a(0x235)]=WS_EVENTS[_0x9c497a(0x14a)],_0x4923c['message']=_0x15b37e,webSocketUtils['sendEventToBackend'](_0x396c02,_0x4923c);const _0x1d4640={};_0x1d4640['type']=WS_EVENTS[_0x9c497a(0x192)],_0x1d4640[_0x9c497a(0x213)]=_0x9c497a(0x290)+_0x5ce81d,webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x1d4640),await webSocketUtils[_0x9c497a(0x135)](0x7d0);}catch(_0x4b5dfa){logger[_0x9c497a(0x2a2)](_0x9c497a(0x2a3)+_0x4b5dfa+'\x20\x0a'+JSON[_0x9c497a(0x125)](_0x4b5dfa['stack']));if(_0x1b6ddf[_0x9c497a(0x211)](_0x4a3fd4,![]))try{logger[_0x9c497a(0x21b)](_0x1b6ddf[_0x9c497a(0x207)]),await _0x1b6ddf[_0x9c497a(0x123)](removeGridComponents,_0x5cf86e,_0x5a59bd,_0x56142b,_0x2a0dfb,_0x52f4e3),await _0x2881b2[_0x9c497a(0x2aa)](_0x5cf86e,global_registry['clusterRegion']);}catch(_0x2cea5e){logger[_0x9c497a(0x2a2)](_0x9c497a(0x238)+_0x2cea5e+'\x20\x0a'+JSON[_0x9c497a(0x125)](_0x2cea5e['stack']));}throw _0x4b5dfa;}}catch(_0x5087d2){const _0xfe940='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x5087d2+'\x20\x0a'+JSON[_0x9c497a(0x125)](_0x5087d2[_0x9c497a(0x204)]);if(_0x396c02){const _0x570327={};_0x570327[_0x9c497a(0x235)]=WS_EVENTS['LOG'],_0x570327[_0x9c497a(0x213)]=_0xfe940,webSocketUtils[_0x9c497a(0x1de)](_0x396c02,_0x570327,_0x1b6ddf['DADeL'],!![]);}await webSocketUtils[_0x9c497a(0x135)](0x7d0);const _0x1970b6={};_0x1970b6[_0x9c497a(0x2a2)]=_0xfe940,await _0x1b6ddf[_0x9c497a(0x166)](sendInstrumentationEvent,_0x52f3d9,_0x1b6ddf['HYGfb'],messageTypes[_0x9c497a(0x1e4)],_0x1b6ddf[_0x9c497a(0x17e)],_0x1970b6,_0x52f3d9),logger[_0x9c497a(0x2a2)](_0xfe940);}process[_0x9c497a(0x1c6)](0x0);};function a9_0x3bb4(){const _0x14fdec=['replace','concurrency','Added\x20Kafka\x20deployment.','PVsRH','kdjvK','spec','EwHkx','KsZXI','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','LOG','create-grid-called','qvYhF','qBCXG','BDpxI','IFiya','ZYOeX','DVLDh','Grid\x20spawned\x20on\x20the\x20cluster','enableHubHa','1416dmwJWN','annotations','18907MDbhYm','UuIQB','ZbssN','akxGg','Yugge','XrfWs','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','wGCty','nAjLg','usxtD','246RDfubH','string','/wd/hub','clusterRegion','1|0|2|4|3','Flag\x20to\x20enable\x20Hub\x20HA','GULFO','QuLVR','labels','help','private-grid','metadata','oRVIs','username','/packages/cli/get-grid-url?gridIdentifier=','jduQz','FocZr','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','OOCgn','SXgJA','XJDQS','Uheov','../../utils/webSocketUtils','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','SXLTx','SkwIs','name','Added\x20Secret\x20Mapping','DADeL','UOIBH','newCluster','PwIUk','instanceType','akJin','readFileAsync','sendResourceDataToHST','yzIfl','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Grid\x20profile\x20fetched\x20from\x20backend','NZfyU','non-aws-azure-cluster','iSomM','browserstack-secret.yaml','Adding\x20Kafka\x20deployment...','isPrivateGrid','password','vFhIQ','js-yaml','zoXBG','CLI_RUN_FINISHED','create-grid-checks-auth-failed','hub-ha-deployments-failed','epilogue','UaQkh','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','ZkfVm','lyOOd','Hub\x20HA\x20setup\x20completed\x20successfully.','dlNYC','JuVha','ejneb','azurefile-csi-premium','yUstf','template','pre-spawned-subnets-not-selected','JUfga','isNewAWSCluster','pSyxH','setupNewCluster','CfdKg','CVXWH','KVzTk','nVMnu','uOapv','uXSAg','MSqGx','description','join','vpc','sVkTx','iMYJM','Namespace\x20created','jGnYs','UTIQG','4642055UicUng','getGridHostname','boolean','iqGQO','get-grid-url-null-response','DdYCb','bitnami-redis.yaml','glFvC','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','uuid','2260400FUUWOH','KqIIq','Added\x20Redis\x20deployment.','MIpHd','CLI_RUN_STARTED','warn','toLowerCase','exit','requestId','setupHubHa','plVzU','turboscale-uploader.yaml','rQSXF','RTfzB','MzUHI','wYPcP','gridName','HYGfb','ingress-nginx','gQLZC','ETuqD','Subnets:\x20','Oizxb','1|2|3|4|0','Cluster\x20created\x20successfully','5089250ZOGdBG','maxNodes','DbwJI','../../config/constants','HJKYA','1|4|3|0|2','sendEventToBackend','10842453zqwOJd','Grid\x20can\x20be\x20accessed\x20at:\x20','TxOdq','pre-spawned-invalid-vpc','EwlIp','ERROR','argv','mcgkP','create-grid-checks-invalid-profile','browserstack','EFJrp','region','xpdUl','FFxCS','RGaBu','GFywb','lOoCF','uploaderVersion','clusterName','cDLZw','bHcRY','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','grid-profile','gTOiD','ZBuqd','setupAutoscaler','Spawning\x20the\x20grid\x20','eeaeq','cIqRY','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','usage','TTgxU','ECUSu','nRqGf','default','alreadyPresent','existsSync','stack','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Enabling\x20Hub\x20HA\x20flow','QzHsm','IISHl','securityGroups','cloudProvider','IauUe','YNOhW','ysycR','\x20in\x20existing\x20cluster\x20\x27','gridProfileId','hubVersion','cTtRY','JFKMn','message','managedBy','Creating\x20Hub\x20HA\x20resources','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','get-grid-url-non-200','ONiVY','http','zzgpQ','info','s3bucket','JwjWM','epmSe','eykjh','oipIL','/packages/cli/create-grid-checks','PHAWv','86386diLAfn','qogVp','vMLkP','sSsrb','zRtby','fUPqT','../../cloudproviders/utils','lwhEw','FFlwk','ldkUj','../..','qgaCf','create','create-grid-checks-grid-already-exists','YuUps','ESLxV','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','fcnAz','type','premium-rwo','YYNHr','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','Skip\x20insecure\x20cert\x20verification.','ClIWG','path','gfYCO','Browserstack','vYuGb','aildR','Adding\x20Turboscale\x20Uploader\x20deployment...','LWRIl','body','oXNEy','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','DyOvb','skip-tls-cert-verify','UkRNzNYCBU','uYAhe','SSrmB','uiAku','RTZWI','gridProfiles','efs-csi','grid','0|5|3|10|15|7|6|11|9|8|13|4|12|2|14|1','unvwe','crNNx','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','oENTH','SPHxd','PbnBV','Will\x20be\x20spawning\x20the\x20grid\x20','8|0|6|5|7|2|1|4|3','kafkaPassword','ingress-nginx-controller','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','browserVersion','cloud-provider','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','pvXPs','loadAll','prespawned-cluster-args-not-passed','RHoWz','bitnami-kafka.yaml','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','SFokd','builder','knQOk','statusCode','qjDkp','mqsee','AIDia','../../config/logger','length','dSryX','CLI\x20run\x20started','pre-spawned-invalid-subnets','vChCg','licOL','../../utils/utilityMethods','iGOiG','Creating\x20namespace','privateGrid','upPQd','qVbLt','UtCtK','EApNN','kkZTU','IDysP','CgWXq','rNnHz','KHOHj','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','redisPassword','zgJse','xtlkb','split','cvTaD','KgSHX','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','ZmiaQ','lCiRK','VAeGh','hgXnA','debug','LywmX','rfAOc','EEMTK','createNamespace','CLI\x20run\x20finished:\x20','GET','UrurB','UXDsn','1506RRvKmz','route53','Added\x20Turboscale\x20Uploader\x20deployment.','SxIJZ','UaMoc','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','zEhIJ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','../../utils/instrumentationUtils','NJEud','Create\x20a\x20new\x20Automation\x20grid.','Found\x20VPC:\x20','isClusterPresent','sdQYt','error','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','tssYN','subnets','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','hAKjj','WSyTJ','kgJdQ','deleteCluster','INYUh','hubHa','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','ERwHY','vnVIR','hubharesources','bgHbz','bstackAccesskey','readFileSync','updateClusterAlreadyPresent','https://','getResourceClientId','lPHlz','options','xNgyj','Epyd5nXbRK','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','kYLZF','KvOxt','handler','cluster-name','ioRrO','RIGOQ','isVPCPresent','serviceAccountName','Piyji','erITK','fXQrD','gridProfile','ogdEV','8EqpBNE','NQePr','1|8|3|7|5|2|6|0|4','HlWkQ','XhSAC','rtXiC','got','McfLl','addListeners','Found\x20Subnets:\x20','OvsKi','VNdRQ','cTzrK','IyEYj','stringify','grid-spawning-failed','OSfah','Cluster:\x20','hqKRp','AMvfo','grid-name','BoKfb','parse','hub-ha','Cluster\x20','HcqPB','kafkaUploader','10YDmZJK','Deleting\x20the\x20CloudFormation\x20Stacks','Adding\x20Websocket\x20listeners','delay','GAYbd','init-not-called','minNodes','readNamespacedService','lancC','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Created\x20Hub\x20HA\x20resources','://','rjXam','hubHaNameSpace'];a9_0x3bb4=function(){return _0x14fdec;};return a9_0x3bb4();}
|
|
1
|
+
function a9_0x4234(_0x21b764,_0x5145be){const _0x15b9ed=a9_0x15b9();return a9_0x4234=function(_0x4234f8,_0x9894c5){_0x4234f8=_0x4234f8-0x13e;let _0x5dd50a=_0x15b9ed[_0x4234f8];return _0x5dd50a;},a9_0x4234(_0x21b764,_0x5145be);}const a9_0x23e40c=a9_0x4234;(function(_0x52d729,_0x4a5dbc){const _0x4c8fe3=a9_0x4234,_0x1f4a67=_0x52d729();while(!![]){try{const _0x19a906=parseInt(_0x4c8fe3(0x207))/0x1*(-parseInt(_0x4c8fe3(0x2dd))/0x2)+parseInt(_0x4c8fe3(0x142))/0x3*(-parseInt(_0x4c8fe3(0x178))/0x4)+-parseInt(_0x4c8fe3(0x1d6))/0x5+-parseInt(_0x4c8fe3(0x22b))/0x6*(-parseInt(_0x4c8fe3(0x17e))/0x7)+parseInt(_0x4c8fe3(0x247))/0x8*(parseInt(_0x4c8fe3(0x166))/0x9)+parseInt(_0x4c8fe3(0x171))/0xa*(-parseInt(_0x4c8fe3(0x2e7))/0xb)+parseInt(_0x4c8fe3(0x2bd))/0xc*(parseInt(_0x4c8fe3(0x284))/0xd);if(_0x19a906===_0x4a5dbc)break;else _0x1f4a67['push'](_0x1f4a67['shift']());}catch(_0x507d6e){_0x1f4a67['push'](_0x1f4a67['shift']());}}}(a9_0x15b9,0x3ae27));const fs=require('fs'),ws=require('ws'),path=require(a9_0x23e40c(0x1a2)),yaml=require(a9_0x23e40c(0x197)),ReconnectingWebSocket=require(a9_0x23e40c(0x263)),got=require('got'),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x23e40c(0x2c9)),{logger}=require(a9_0x23e40c(0x221)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x23e40c(0x23e)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x23e40c(0x2a0)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x23e40c(0x212)),{createK8sClient}=require(a9_0x23e40c(0x15b)),{sendInstrumentationEvent}=require(a9_0x23e40c(0x2bb));function a9_0x15b9(){const _0x1ea68a=['createOtherResources','namespace','dFVRX','../..','mnzAa','maxNodes','Will\x20be\x20spawning\x20the\x20grid\x20','vmOcp','stack','umjby','DkgoA','kafkaPassword','JxAKj','../../utils/utilityMethods','UkRNzNYCBU','jWPQM','grid-name','labels','updateClusterAlreadyPresent','CRXTm','Hub\x20HA\x20setup\x20completed\x20successfully.','EwkQS','24FreaRx','readFileAsync','message','Tvohx','ERROR','/packages/cli/get-grid-url?gridIdentifier=','concurrency','create-grid-checks-invalid-profile','cjwiz','password','MWfVS','TeRpS','xwJsa','wQqkU','tfuvD','Creating\x20Hub\x20HA\x20resources','hHLjW','WVcki','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Vdhfv','cloud-provider','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','metadata','cCkSM','uFBaT','yDYXr','handler','ozscF','reconnecting-websocket','nNBjY','4|2|1|3|0','aGeop','RyjFB','UlHNI','createNamespace','hubVersion','LbzmR','WtrFa','turboscale-managed-identity-','Grid\x20profile\x20fetched\x20from\x20backend','browserstack-secret.yaml','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','DVwRi','isNewAWSCluster','ZtSkU','AXUSw','ognAp','fntEH','CgmdD','Bocsy','4|1|3|2|0','JWXJb','dbVKc','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','rZylr','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','BKxfx','hubHaNameSpace','2|0|3|4|1','get-grid-url-non-200','656435jrbSIc','template','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','ooXte','aqXES','\x20in\x20existing\x20cluster\x20\x27','SoSPP','ckqzi','help','clusterRegion','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Added\x20Kafka\x20deployment.','VfFrm','s3bucket','NtJUQ','parse','uoASa','hubharesources','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','YDrun','qGuPM','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','annotations','Found\x20VPC:\x20','Browserstack','Subnets:\x20','efs-csi','GAyFc','../../config/constants','gridName','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','turboscale-uploader.yaml','wWLhD','JtCWf','Namespace\x20created','AsEwp','BUeoC','bstackAccesskey','serviceAccountName','aDMhp','pre-spawned-invalid-subnets','NeOfp','stringify','tumIi','ECHMQ','wIGaM','type','create-grid-checks-auth-failed','BxxpF','yedIL','YkmUx','nPdjO','eFYTq','DRHqo','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','../../utils/instrumentationUtils','azurefile-csi-premium','60raajbf','xChcZ','YXBaC','tizxn','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','TbUFL','<PasswordPlaceholder>','CLI_RUN_FINISHED','yqRCT','cTGgg','getResourceClientId','pre-spawned-subnets-not-selected','../../utils/webSocketUtils','premium-rwo','deleteCluster','enableHubHa','Adding\x20Redis\x20deployment...','vVhFC','bitnami-kafka.yaml','<UsernamePlaceholder>','qDMkR','VZKsK','newCluster','1|3|0|4|2','addListeners','xIyom','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','lihnG','VduUE','krzIh','YhFQz','utf-8','248KpkRBB','1|14|11|3|9|4|15|10|5|13|8|2|6|0|12|7','delay','VmHYO','jCJIs','VtBTW','includes','options','isSubnetsValid','redisPassword','1353zEsSlu','Spawning\x20Grid\x20on\x20the\x20Cluster','boolean','vXHiR','KBTil','BfdIt','uploaderVersion','create-grid-called','NBILQ','vrGag','command','spec','465081rSdqtz','mtWqf','default','VmwyC','epilogue','QYRIa','/packages/cli/create-grid-checks','body','OgAoG','dYkgh','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','dAWZI','region','evDGT','jByjZ','vpc','MnYeu','vprcd','warn','join','usage','https','IapSa','lpuui','tunjk','../../utils/createk8sClient','mVmSw','QLXEd','jOXdd','xmVXj','browserstack','zPnuG','private-grid','bNwMj','uploaderImageVersion','coULG','1114317RMmfyC','vGfMt','wGPWn','defaultGridProfile','rRfkg','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','grid-profile','idRCi','PfMop','DyGXF','gridProfiles','8110kveThS','/wd/hub','LoXHL','skip-tls-cert-verify','cloudProvider','CLI_RUN_STARTED','loadAll','4kvrqHj','qUbqz','ITOWB','Pbziq','nILyc','BWahC','7oFKmBi','Adding\x20Kafka\x20deployment...','YbxeJ','statusCode','WocuY','LOG','ivPet','RlmBP','Grid\x20can\x20be\x20accessed\x20at:\x20','error','name','privateGrid','XWsLm','aanxC','ubZbT','Spawning\x20the\x20grid\x20','route53','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','get-grid-url-null-response','aXjws','subnets','TebXU','CeEdw','length','rnpAh','js-yaml','grid-spawning-failed','cLhvU','info','Adding\x20Turboscale\x20Uploader\x20deployment...','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','https://','gridProfile','syFgX','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','fvPXE','path','dBxRi','ElKjX','instanceType','yFiNE','rRGDi','CwQlc','bstackUsername','Found\x20Subnets:\x20','gridProfileId','username','lGcga','create-grid-checks-non-200','kafkaUploader','RjYAN','QiKOo','MePWJ','Grid\x20spawned\x20on\x20the\x20cluster','VOBuG','sendResourceDataToHST','jWQMI','createdBy','templates','CLI\x20run\x20finished:\x20','mkeYo','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','IPxWU','builder','IRMzg','bWbfp','description','xsvUL','replace','AeEYI','HMVOZ','Adding\x20Secret\x20Mapping','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','IthSw','http','bitnami-redis.yaml','string','true','Skip\x20insecure\x20cert\x20verification.','DOedN','://','ZPYoS','create','CMnzR','FzULf','minNodes','securityGroups','489230heAAIw','pfhtG','iiMry','QcyWN','tyYaj','get-grid-url-auth-failed','Namespace\x20Created','Flag\x20to\x20enable\x20Hub\x20HA','AleVc','hubHa','PVhpQ','aFqqX','hdHLP','TRwwl','dkNFw','MqHye','CLI\x20run\x20started','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','setupNewCluster','ZasCl','NvdgC','aCntI','toLowerCase','PTgNf','split','KYzIv','uydwP','uJzHL','cVdwa','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','isClusterPresent','1|4|0|5|6|3|8|2|7','nGzbQ','browserVersion','Cluster\x20','XJZmY','DONlB','Create\x20a\x20private/public\x20grid.','exit','CvdsS','GUiYZ','readNamespacedService','\x27\x20grid\x20profile','FvPvt','Cluster:\x20','cluster-name','hub-ha','Deleting\x20the\x20CloudFormation\x20Stacks','LTajH','3042xycsvi','YlbvY','HuzBL','aJFMB','create-grid-checks-null-response','init-not-called','KZHfz','DUPVt','isPrivateGrid','vDcaj','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','../../utils/gridComponents','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','TFJcw','sendEventToBackend','zkogT','WySio','INFO','CPvCA','Qpixr','\x20using\x20\x27','LiQEs','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','clusterName','rLDNR','xTxiI','../../config/logger','IKHPc','FlXNF','zBGoA','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','ULDeT','QGKqh','lnRkt','xuZnj','Created\x20Hub\x20HA\x20resources','2082666ZjsGky','getGridHostname','Enabling\x20Hub\x20HA\x20flow','vRsCd','ojWCx','XDHyj'];a9_0x15b9=function(){return _0x1ea68a;};return a9_0x15b9();}exports[a9_0x23e40c(0x140)]='grid',exports['desc']='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x23e40c(0x1be)]=function(_0x48dcce){const _0x29176c=a9_0x23e40c,_0x240aaf={};_0x240aaf[_0x29176c(0x191)]=_0x29176c(0x16b),_0x240aaf[_0x29176c(0x23b)]=_0x29176c(0x1cb),_0x240aaf['YDrun']=_0x29176c(0x28e),_0x240aaf[_0x29176c(0x143)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x240aaf[_0x29176c(0x15a)]=_0x29176c(0x18f),_0x240aaf[_0x29176c(0x1e1)]=_0x29176c(0x2c1),_0x240aaf[_0x29176c(0x2ad)]='Create\x20a\x20private/public\x20grid.',_0x240aaf[_0x29176c(0x217)]=_0x29176c(0x1cd),_0x240aaf[_0x29176c(0x20a)]=_0x29176c(0x2e9),_0x240aaf['coULG']=_0x29176c(0x1dd),_0x240aaf[_0x29176c(0x254)]=_0x29176c(0x28c);const _0x53e1a3=_0x240aaf,_0x2142a2={};_0x2142a2['description']=_0x53e1a3['aXjws'],_0x2142a2[_0x29176c(0x2b2)]=_0x53e1a3[_0x29176c(0x23b)];const _0x5db589={};_0x5db589[_0x29176c(0x1c1)]=_0x53e1a3[_0x29176c(0x297)],_0x5db589[_0x29176c(0x2b2)]=_0x53e1a3[_0x29176c(0x23b)];const _0x55482f={};_0x55482f[_0x29176c(0x1c1)]=_0x53e1a3[_0x29176c(0x143)],_0x55482f['type']=_0x53e1a3[_0x29176c(0x23b)];const _0x324530={};_0x324530[_0x29176c(0x1c1)]=_0x53e1a3[_0x29176c(0x15a)],_0x324530['type']=_0x53e1a3[_0x29176c(0x23b)];const _0x3a6a60={};_0x3a6a60[_0x29176c(0x1c1)]=_0x53e1a3[_0x29176c(0x1e1)],_0x3a6a60['type']=_0x53e1a3['DkgoA'];const _0x209533={};_0x209533[_0x29176c(0x1c1)]=_0x53e1a3[_0x29176c(0x2ad)],_0x209533[_0x29176c(0x2b2)]=_0x53e1a3[_0x29176c(0x23b)];const _0x51407a={};_0x51407a[_0x29176c(0x1c1)]=_0x53e1a3['WySio'],_0x51407a['type']=_0x53e1a3[_0x29176c(0x20a)],_0x51407a[_0x29176c(0x144)]=![];const _0x135e00={};_0x135e00[_0x29176c(0x1c1)]=_0x53e1a3[_0x29176c(0x165)],_0x135e00['type']=_0x53e1a3[_0x29176c(0x20a)],_0x135e00[_0x29176c(0x144)]=![];const _0x478165={};return _0x478165[_0x29176c(0x241)]=_0x2142a2,_0x478165[_0x29176c(0x16c)]=_0x5db589,_0x478165[_0x29176c(0x203)]=_0x55482f,_0x478165[_0x29176c(0x25b)]=_0x324530,_0x478165[_0x29176c(0x14e)]=_0x3a6a60,_0x478165[_0x29176c(0x162)]=_0x209533,_0x478165['skip-tls-cert-verify']=_0x51407a,_0x478165[_0x29176c(0x204)]=_0x135e00,_0x48dcce[_0x29176c(0x156)](HELP_HEADER_MESSAGE[_0x29176c(0x1d1)])[_0x29176c(0x146)](HELP_FOOTER_MESSAGE)[_0x29176c(0x2e4)](_0x478165)[_0x29176c(0x28c)](_0x53e1a3[_0x29176c(0x254)])['argv'];},exports[a9_0x23e40c(0x261)]=async function(_0x4e24b7){const _0x2dec58=a9_0x23e40c,_0x350f9f={'nNBjY':_0x2dec58(0x1cc),'UlHNI':_0x2dec58(0x144),'cVdwa':_0x2dec58(0x187),'cLhvU':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','DVwRi':_0x2dec58(0x1cb),'YkIfJ':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','CvdsS':_0x2dec58(0x25c),'TFJcw':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ZMukr':_0x2dec58(0x2c1),'CRXTm':_0x2dec58(0x1fb),'rRGDi':_0x2dec58(0x1cd),'vVhFC':_0x2dec58(0x2e9),'wIGaM':_0x2dec58(0x1dd),'HMVOZ':'help','CgmdD':function(_0x20a594,_0x5cabbc){return _0x20a594(_0x5cabbc);},'XJZmY':_0x2dec58(0x2bc),'syFgX':_0x2dec58(0x2ca),'BxxpF':_0x2dec58(0x157),'ozscF':_0x2dec58(0x2d4),'Vdhfv':_0x2dec58(0x23f),'CwQlc':_0x2dec58(0x22d),'MePWJ':_0x2dec58(0x160),'SoSPP':'Epyd5nXbRK','TRwwl':_0x2dec58(0x1f5),'pfhtG':_0x2dec58(0x1e6),'tumIi':_0x2dec58(0x1c9),'IapSa':_0x2dec58(0x154),'tizxn':function(_0x47c3fa,_0x2182bf){return _0x47c3fa===_0x2182bf;},'WocuY':_0x2dec58(0x2de),'fntEH':function(_0x5a0ee6,_0x134c5c){return _0x5a0ee6!==_0x134c5c;},'jByjZ':function(_0x52ae61,_0x1e94db){return _0x52ae61(_0x1e94db);},'ZtSkU':function(_0x43f9da,_0x409258,_0xa3596e,_0x3b8b1a,_0x418ce4,_0x51f8f8,_0x1f726e,_0x5d545c,_0xd834dd,_0x5f169b,_0x2b9666,_0x2ec552){return _0x43f9da(_0x409258,_0xa3596e,_0x3b8b1a,_0x418ce4,_0x51f8f8,_0x1f726e,_0x5d545c,_0xd834dd,_0x5f169b,_0x2b9666,_0x2ec552);},'lKjLW':function(_0x223415){return _0x223415();},'GAyFc':function(_0x5b283c){return _0x5b283c();},'MnYeu':_0x2dec58(0x24a),'mVmSw':_0x2dec58(0x28b),'SHPbc':_0x2dec58(0x259),'qDMkR':function(_0x27a5e5,_0x529ca2,_0x1e443a,_0x1a36d0,_0x190a4c,_0x2eea37,_0x4cd21f){return _0x27a5e5(_0x529ca2,_0x1e443a,_0x1a36d0,_0x190a4c,_0x2eea37,_0x4cd21f);},'idRCi':_0x2dec58(0x2ee),'DUPVt':_0x2dec58(0x20c),'QGKqh':function(_0x3291d9){return _0x3291d9();},'vRsCd':_0x2dec58(0x2d0),'XDHyj':_0x2dec58(0x2c3),'lGcga':'Adding\x20Websocket\x20listeners','vDcaj':function(_0xfc63d5,_0x5c73b9){return _0xfc63d5!==_0x5c73b9;},'yqRCT':_0x2dec58(0x194),'DRHqo':'pGLSj','rRfkg':function(_0x284aa9,_0x1525f6){return _0x284aa9===_0x1525f6;},'JtCWf':_0x2dec58(0x1a4),'nGzbQ':_0x2dec58(0x27f),'LiQEs':function(_0x3a3d63,_0x57d7ff,_0xe64d0d,_0x1f89b5,_0x5a1eec,_0x2b8ca9,_0x137a75,_0x505e12){return _0x3a3d63(_0x57d7ff,_0xe64d0d,_0x1f89b5,_0x5a1eec,_0x2b8ca9,_0x137a75,_0x505e12);},'XFWob':'prespawned-cluster-args-not-passed','hHLjW':_0x2dec58(0x163),'XWsLm':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','RstgL':'non-aws-azure-cluster','VtBTW':function(_0xd05a50,_0x81730b){return _0xd05a50!==_0x81730b;},'gtAmE':'djoJc','eFYTq':_0x2dec58(0x2b5),'DfqzO':function(_0x1933a1,_0xe3f72a,_0x39dda5,_0x48a227,_0x23fa61,_0x2cd8c1,_0x3da3e5){return _0x1933a1(_0xe3f72a,_0x39dda5,_0x48a227,_0x23fa61,_0x2cd8c1,_0x3da3e5);},'CPvCA':function(_0x2c3e92,_0x5d302b){return _0x2c3e92!==_0x5d302b;},'RlmBP':_0x2dec58(0x1ef),'zkogT':_0x2dec58(0x14a),'nILyc':function(_0x508fb8,_0x572661){return _0x508fb8!==_0x572661;},'WtrFa':_0x2dec58(0x25e),'YhFQz':'unZdh','xIyom':'GET','ooXte':function(_0x5fa219,_0x58ccff,_0x1af845){return _0x5fa219(_0x58ccff,_0x1af845);},'SorcO':_0x2dec58(0x1ea),'zPnuG':'uSJLM','qGuPM':function(_0x28c7d0,_0x3c6cfd,_0x3dff27){return _0x28c7d0(_0x3c6cfd,_0x3dff27);},'NBILQ':function(_0x55c229,_0x5cda4d){return _0x55c229===_0x5cda4d;},'AeEYI':function(_0x479861,_0x304bc4){return _0x479861===_0x304bc4;},'RjYAN':_0x2dec58(0x1a3),'jWPQM':_0x2dec58(0x1c7),'WeotM':_0x2dec58(0x20b),'ojWCx':function(_0x19b604,_0x1703c9){return _0x19b604!==_0x1703c9;},'RyjFB':_0x2dec58(0x14f),'FzULf':'hJUYF','GrXfr':_0x2dec58(0x299),'wGPWn':function(_0x41d983,_0x38c3d5,_0x2d58ea,_0x1dd103,_0x5e092e,_0x50992f,_0x2c96f8,_0x366559){return _0x41d983(_0x38c3d5,_0x2d58ea,_0x1dd103,_0x5e092e,_0x50992f,_0x2c96f8,_0x366559);},'HoTjJ':_0x2dec58(0x2b3),'BWahC':function(_0x1abb8e,_0x3ffc78){return _0x1abb8e!==_0x3ffc78;},'ivPet':function(_0x3b12af,_0x36be4b){return _0x3b12af===_0x36be4b;},'IthSw':_0x2dec58(0x2b0),'TwpxZ':_0x2dec58(0x1ae),'LoXHL':_0x2dec58(0x26e),'YkmUx':_0x2dec58(0x1d0),'aDMhp':function(_0x1e852f,_0x413bf6,_0x3bdd67,_0x4f6ff8,_0x2be651,_0xbda546,_0x135b8f,_0x5b312e){return _0x1e852f(_0x413bf6,_0x3bdd67,_0x4f6ff8,_0x2be651,_0xbda546,_0x135b8f,_0x5b312e);},'TbUFL':'create-grid-checks-grid-already-exists','vXHiR':_0x2dec58(0x279),'vmOcp':_0x2dec58(0x288),'bWbfp':_0x2dec58(0x282),'JWXJb':function(_0x28883e,_0x2ce1e8){return _0x28883e!==_0x2ce1e8;},'cjwiz':_0x2dec58(0x26b),'PfMop':function(_0x1ab1b7,_0x3b6ba6){return _0x1ab1b7===_0x3b6ba6;},'ITOWB':'cIvEg','zBGoA':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','vprcd':_0x2dec58(0x24e),'aanxC':function(_0x2181db,_0x879866){return _0x2181db===_0x879866;},'LTajH':_0x2dec58(0x258),'NRKED':function(_0x16b744,_0x360c28){return _0x16b744===_0x360c28;},'dFVRX':_0x2dec58(0x2e1),'krzIh':_0x2dec58(0x1e9),'KZHfz':function(_0x323188,_0x5a5955){return _0x323188!==_0x5a5955;},'DyGXF':_0x2dec58(0x180),'umjby':_0x2dec58(0x246),'IPxWU':function(_0x1c093a,_0x2c3080){return _0x1c093a!==_0x2c3080;},'FvPvt':_0x2dec58(0x235),'lihnG':function(_0x472d4d,_0x2ffc7e){return _0x472d4d===_0x2ffc7e;},'hJmkA':_0x2dec58(0x2a7),'qUbqz':'JbdAR','rLDNR':_0x2dec58(0x1b4),'mkeYo':function(_0x40a047,_0x174de6,_0x1fd3f4,_0x26790f,_0x1bb686,_0x175c88,_0x299898,_0x2c9865,_0x1849b6,_0x942add,_0x1b9d0b,_0x1356e9){return _0x40a047(_0x174de6,_0x1fd3f4,_0x26790f,_0x1bb686,_0x175c88,_0x299898,_0x2c9865,_0x1849b6,_0x942add,_0x1b9d0b,_0x1356e9);},'dbVKc':_0x2dec58(0x21a),'QYRIa':function(_0x3a50eb,_0x1eb07f){return _0x3a50eb(_0x1eb07f);},'ognAp':function(_0x85f842,_0x372b41){return _0x85f842!==_0x372b41;},'BfdIt':_0x2dec58(0x2a4),'rZylr':'6|2|1|8|0|5|3|7|4','AleVc':_0x2dec58(0x1f0),'MWfVS':_0x2dec58(0x226),'KBTil':_0x2dec58(0x1fa),'uJzHL':'KtNin','QLXEd':function(_0x943098,_0x2106e6){return _0x943098===_0x2106e6;},'aCntI':'eskZW','dkNFw':_0x2dec58(0x292),'tyYaj':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','jOXdd':function(_0x43fd72,_0x478f00){return _0x43fd72!=_0x478f00;},'IKHPc':function(_0x367cda,_0x4a76d4){return _0x367cda!==_0x4a76d4;},'IgbET':function(_0x5381d9,_0x1e5174){return _0x5381d9>_0x1e5174;},'CMnzR':function(_0x3cf426,_0x133c7b){return _0x3cf426===_0x133c7b;},'kyisD':_0x2dec58(0x1a0),'PTgNf':function(_0x5647a2,_0x4eae36,_0x1192db,_0x130ff0,_0x31c3a4,_0x1e8bcf,_0x4b945f,_0x238a97){return _0x5647a2(_0x4eae36,_0x1192db,_0x130ff0,_0x31c3a4,_0x1e8bcf,_0x4b945f,_0x238a97);},'FlXNF':_0x2dec58(0x2c8),'QiKOo':function(_0x251c33,_0x3bb51c){return _0x251c33===_0x3bb51c;},'fvPXE':_0x2dec58(0x2d7),'VmwyC':function(_0x1f773f,_0x5b336f,_0x105ddd,_0x100966,_0x10c850,_0x816e34,_0x554bb4,_0x520d24){return _0x1f773f(_0x5b336f,_0x105ddd,_0x100966,_0x10c850,_0x816e34,_0x554bb4,_0x520d24);},'aGeop':'pre-spawned-invalid-vpc','uoASa':function(_0x254f31,_0x1142da){return _0x254f31===_0x1142da;},'argon':_0x2dec58(0x2ac),'LfISJ':_0x2dec58(0x27a),'QcyWN':'Cluster\x20created\x20successfully','VZKsK':_0x2dec58(0x1bb),'BUeoC':function(_0x2a8b1b,_0x14081b){return _0x2a8b1b===_0x14081b;},'xwJsa':_0x2dec58(0x256),'KTZnB':_0x2dec58(0x1c6),'YlbvY':_0x2dec58(0x234),'AXUSw':_0x2dec58(0x1b8),'Pbziq':_0x2dec58(0x295),'UbJiQ':_0x2dec58(0x26f),'TebXU':_0x2dec58(0x2dc),'MqHye':function(_0x454f65,_0x5ba83c){return _0x454f65(_0x5ba83c);},'zdKDD':function(_0x452a1b,_0x5c8f35){return _0x452a1b(_0x5c8f35);},'IaFRx':function(_0x2434e7,_0x438e55){return _0x2434e7(_0x438e55);},'tfuvD':function(_0x13b50d,_0x170a36,_0x4a483b){return _0x13b50d(_0x170a36,_0x4a483b);},'ubZbT':'Added\x20Secret\x20Mapping','WHdjD':_0x2dec58(0x29e),'JjYKN':function(_0x312ffc,_0x2f8cce){return _0x312ffc===_0x2f8cce;},'xuZnj':_0x2dec58(0x2cd),'VggoF':_0x2dec58(0x1ca),'vGfMt':function(_0x5d8683,_0x566589,_0x32f043){return _0x5d8683(_0x566589,_0x32f043);},'jWWUi':'Added\x20Redis\x20deployment.','dAWZI':_0x2dec58(0x17f),'xChcZ':_0x2dec58(0x2cf),'cTGgg':_0x2dec58(0x28f),'dYkgh':_0x2dec58(0x19b),'ffkTm':_0x2dec58(0x2a3),'iiMry':function(_0x201491,_0x1f99dd,_0x753c87){return _0x201491(_0x1f99dd,_0x753c87);},'xTxiI':'Added\x20Turboscale\x20Uploader\x20deployment.','lnRkt':_0x2dec58(0x22a),'GUiYZ':_0x2dec58(0x245),'rnpAh':_0x2dec58(0x265),'vrGag':'hub-ha-deployments-failed','hdHLP':function(_0x278854,_0x310d1f){return _0x278854(_0x310d1f);},'YXBaC':'Creating\x20namespace','lpuui':_0x2dec58(0x29c),'UfVxA':_0x2dec58(0x1dc),'yDRaf':_0x2dec58(0x2a6),'IRMzg':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','jWQMI':_0x2dec58(0x2e8),'VmHYO':function(_0x34ac15,_0x3256e,_0x3f96c5,_0x2e5679,_0x501222,_0x18d157,_0x746e08,_0x217cd6,_0x129113,_0x253610,_0x44b4f4){return _0x34ac15(_0x3256e,_0x3f96c5,_0x2e5679,_0x501222,_0x18d157,_0x746e08,_0x217cd6,_0x129113,_0x253610,_0x44b4f4);},'qyQwF':_0x2dec58(0x1b3),'KUqiX':_0x2dec58(0x27d),'JxAKj':function(_0x41cf1e,_0xe6f4cf,_0x25c511,_0x478fd7,_0x52a8ea){return _0x41cf1e(_0xe6f4cf,_0x25c511,_0x478fd7,_0x52a8ea);},'yFiNE':function(_0x4c3cc9,_0x549738,_0x3367f4){return _0x4c3cc9(_0x549738,_0x3367f4);},'xmVXj':'private-ingress-nginx-controller','VduUE':'ingress-nginx-controller','VfFrm':'ingress-nginx','uFBaT':function(_0x2c7aa2,_0x1d3a50,_0xbcf108){return _0x2c7aa2(_0x1d3a50,_0xbcf108);},'BKxfx':function(_0x55bf32,_0x63627e){return _0x55bf32===_0x63627e;},'Ivstp':function(_0x910705,_0x97e23d){return _0x910705===_0x97e23d;},'yDYXr':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','DOedN':function(_0x29fb37,_0x39b9ef,_0x335b9c,_0x19d4a6,_0x1ef149,_0x591760,_0xf108a7,_0x193846){return _0x29fb37(_0x39b9ef,_0x335b9c,_0x19d4a6,_0x1ef149,_0x591760,_0xf108a7,_0x193846);},'YgVfv':_0x2dec58(0x190),'HuzBL':_0x2dec58(0x1bc),'sZuSi':function(_0x160058,_0x229c65,_0x4724d6,_0x242fd3,_0x81db96,_0x3243ac,_0xca643c,_0x4a40bc){return _0x160058(_0x229c65,_0x4724d6,_0x242fd3,_0x81db96,_0x3243ac,_0xca643c,_0x4a40bc);},'SQlYt':_0x2dec58(0x1db),'nPdjO':_0x2dec58(0x283),'KjyvY':function(_0x1c9528,_0x3bebee){return _0x1c9528===_0x3bebee;},'TeRpS':_0x2dec58(0x205),'PVhpQ':function(_0x3857de,_0x31da46,_0x44a587,_0x39d9d4,_0x3c2734,_0x4af677){return _0x3857de(_0x31da46,_0x44a587,_0x39d9d4,_0x3c2734,_0x4af677);},'xsvUL':_0x2dec58(0x198)};let _0x5d4fdd=![],_0x54280c=![],_0x2576f3,_0x45e9b9,_0x2c635a,_0x500540,_0x2bbe2c,_0x30b39a,_0x36ab15,_0x48bbf4,_0x8f004b,_0x4fae0c,_0x345150,_0x39ab0f,_0x460eb9,_0x4248d1,_0x23cd5f=0x1,_0x4933ae=0xe;try{global_registry['requestId']=_0x350f9f['lKjLW'](uuidv4),global_registry[_0x2dec58(0x20f)]=![];!fs['existsSync'](_0x350f9f[_0x2dec58(0x29f)](getCredentialsPath))&&(_0x350f9f[_0x2dec58(0x277)](_0x350f9f[_0x2dec58(0x152)],_0x350f9f[_0x2dec58(0x15c)])?(console[_0x2dec58(0x187)](_0x350f9f['SHPbc']),await _0x350f9f[_0x2dec58(0x2d1)](sendInstrumentationEvent,_0x4e24b7,_0x350f9f[_0x2dec58(0x16d)],messageTypes[_0x2dec58(0x24b)],_0x350f9f[_0x2dec58(0x20e)],null,_0x4e24b7),process[_0x2dec58(0x1fc)](0x1)):_0x3a49a9[_0x2dec58(0x20f)]=!![]);await _0x350f9f[_0x2dec58(0x2d1)](sendInstrumentationEvent,_0x4e24b7,_0x350f9f[_0x2dec58(0x16d)],messageTypes[_0x2dec58(0x218)],null,null,_0x4e24b7);const _0x5deb92=JSON[_0x2dec58(0x293)](fs['readFileSync'](_0x350f9f[_0x2dec58(0x227)](getCredentialsPath)));global_registry[_0x2dec58(0x1a9)]=_0x5deb92[_0x2dec58(0x29c)][_0x2dec58(0x1ac)],global_registry['bstackAccesskey']=_0x5deb92[_0x2dec58(0x29c)][_0x2dec58(0x250)];const _0x7f9c77=WS_ENDPOINT['replace'](_0x350f9f[_0x2dec58(0x22e)],_0x5deb92[_0x2dec58(0x29c)][_0x2dec58(0x1ac)])['replace'](_0x350f9f[_0x2dec58(0x230)],_0x5deb92[_0x2dec58(0x29c)][_0x2dec58(0x250)]),_0x43d8f5={};_0x43d8f5['WebSocket']=ws,_0x43d8f5['connectionTimeout']=0x36ee80,_0x39ab0f=new ReconnectingWebSocket(_0x7f9c77,[],_0x43d8f5),logger['debug'](_0x350f9f[_0x2dec58(0x1ad)]),webSocketUtils[_0x2dec58(0x2d5)](_0x39ab0f,_0x4e24b7['user'],_0x4e24b7[_0x2dec58(0x250)]);const _0x36ae28=_0x4e24b7[_0x2dec58(0x2a1)]||DEFAULT_GRID_NAME;if(_0x4e24b7['clusterName']||_0x4e24b7[_0x2dec58(0x175)]||_0x4e24b7['region']){if(_0x350f9f[_0x2dec58(0x210)](_0x350f9f[_0x2dec58(0x2c5)],_0x350f9f[_0x2dec58(0x2b9)])){if(!(_0x4e24b7[_0x2dec58(0x21e)]&&_0x4e24b7[_0x2dec58(0x175)]&&_0x4e24b7[_0x2dec58(0x14e)])){if(_0x350f9f[_0x2dec58(0x16a)](_0x350f9f[_0x2dec58(0x2a5)],_0x350f9f['JtCWf']))_0x2576f3=_0x350f9f[_0x2dec58(0x1f6)],await _0x350f9f[_0x2dec58(0x21c)](reportToGalactusAndSendToEDS,_0x4e24b7,_0x39ab0f,_0x2576f3,messageTypes['ERROR'],_0x350f9f[_0x2dec58(0x16d)],_0x350f9f['XFWob'],_0x350f9f['cVdwa']),logger[_0x2dec58(0x187)](_0x2576f3),process[_0x2dec58(0x1fc)](0x1);else{const _0x191a17={'azure.workload.identity/use':_0x350f9f[_0x2dec58(0x264)],..._0x246077[0x0][_0x2dec58(0x141)][_0x2dec58(0x285)][_0x2dec58(0x25d)]['labels']};_0x5aa0a3[0x0][_0x2dec58(0x141)][_0x2dec58(0x285)][_0x2dec58(0x25d)][_0x2dec58(0x242)]=_0x191a17,_0x54f5d4[0x0]['spec']['template'][_0x2dec58(0x141)]['serviceAccountName']=_0x350f9f[_0x2dec58(0x268)];}}if(![AWS,AZURE,GCP][_0x2dec58(0x2e3)](_0x4e24b7['cloudProvider']['toLowerCase']())){if(_0x350f9f[_0x2dec58(0x2c0)](_0x350f9f['hHLjW'],_0x350f9f[_0x2dec58(0x257)]))_0x2576f3=_0x350f9f[_0x2dec58(0x18a)],await _0x350f9f['LiQEs'](reportToGalactusAndSendToEDS,_0x4e24b7,_0x39ab0f,_0x2576f3,messageTypes[_0x2dec58(0x24b)],_0x350f9f['idRCi'],_0x350f9f['RstgL'],_0x350f9f[_0x2dec58(0x1f2)]),logger[_0x2dec58(0x187)](_0x2576f3),process[_0x2dec58(0x1fc)](0x1);else{const _0x14d189={};_0x14d189[_0x2dec58(0x2b2)]=_0x29ecdb[_0x2dec58(0x183)],_0x14d189[_0x2dec58(0x249)]=_0x377719,_0x1a839d[_0x2dec58(0x215)](_0x5c1956,_0x14d189,_0x350f9f['cVdwa'],!![]);}}_0x4e24b7[_0x2dec58(0x189)]&&_0x350f9f[_0x2dec58(0x16a)](_0x4e24b7[_0x2dec58(0x189)][_0x2dec58(0x1ec)](),_0x350f9f['nNBjY'])&&(_0x350f9f['VtBTW'](_0x350f9f['gtAmE'],_0x350f9f[_0x2dec58(0x2b8)])?global_registry['isPrivateGrid']=!![]:_0x55c68e[_0x2dec58(0x19e)]=_0x46b787[_0x2dec58(0x19e)]);global_registry[_0x2dec58(0x175)]=_0x4e24b7[_0x2dec58(0x175)],global_registry['clusterRegion']=_0x4e24b7['region'],global_registry[_0x2dec58(0x21e)]=_0x4e24b7[_0x2dec58(0x21e)];const _0x9a04b1=await _0x350f9f['DfqzO'](getCloudProviderObject,_0x4e24b7[_0x2dec58(0x175)],_0x4e24b7[_0x2dec58(0x21e)],_0x36ae28,_0x39ab0f,webSocketUtils,_0x4e24b7),_0x2899a0=await _0x9a04b1[_0x2dec58(0x1f4)]();if(!_0x2899a0){if(_0x350f9f['CPvCA'](_0x350f9f[_0x2dec58(0x185)],_0x350f9f[_0x2dec58(0x216)]))logger[_0x2dec58(0x19a)]('Cluster:\x20'+_0x4e24b7['clusterName']+_0x2dec58(0x213)),_0x5d4fdd=![],_0x54280c=!![];else{const _0x3a7cd7={};_0x3a7cd7['description']=_0x350f9f[_0x2dec58(0x199)],_0x3a7cd7[_0x2dec58(0x2b2)]=_0x350f9f[_0x2dec58(0x272)];const _0xc70da8={};_0xc70da8[_0x2dec58(0x1c1)]=_0x350f9f['YkIfJ'],_0xc70da8[_0x2dec58(0x2b2)]=_0x350f9f['DVwRi'];const _0x1e0f75={};_0x1e0f75['description']=_0x350f9f[_0x2dec58(0x1fd)],_0x1e0f75['type']=_0x350f9f['DVwRi'];const _0x548f97={};_0x548f97['description']=_0x350f9f[_0x2dec58(0x214)],_0x548f97[_0x2dec58(0x2b2)]=_0x350f9f[_0x2dec58(0x272)];const _0x3e9f5d={};_0x3e9f5d[_0x2dec58(0x1c1)]=_0x350f9f['ZMukr'],_0x3e9f5d[_0x2dec58(0x2b2)]=_0x350f9f[_0x2dec58(0x272)];const _0x58c40d={};_0x58c40d[_0x2dec58(0x1c1)]=_0x350f9f[_0x2dec58(0x244)],_0x58c40d[_0x2dec58(0x2b2)]=_0x350f9f[_0x2dec58(0x272)];const _0x5d7a0a={};_0x5d7a0a[_0x2dec58(0x1c1)]=_0x350f9f[_0x2dec58(0x1a7)],_0x5d7a0a[_0x2dec58(0x2b2)]=_0x350f9f[_0x2dec58(0x2ce)],_0x5d7a0a[_0x2dec58(0x144)]=![];const _0x4323f9={};_0x4323f9[_0x2dec58(0x1c1)]=_0x350f9f[_0x2dec58(0x2b1)],_0x4323f9[_0x2dec58(0x2b2)]=_0x350f9f[_0x2dec58(0x2ce)],_0x4323f9[_0x2dec58(0x144)]=![];const _0xde2ea7={};return _0xde2ea7[_0x2dec58(0x241)]=_0x3a7cd7,_0xde2ea7[_0x2dec58(0x16c)]=_0xc70da8,_0xde2ea7[_0x2dec58(0x203)]=_0x1e0f75,_0xde2ea7['cloud-provider']=_0x548f97,_0xde2ea7[_0x2dec58(0x14e)]=_0x3e9f5d,_0xde2ea7[_0x2dec58(0x162)]=_0x58c40d,_0xde2ea7[_0x2dec58(0x174)]=_0x5d7a0a,_0xde2ea7['hub-ha']=_0x4323f9,_0x345526[_0x2dec58(0x156)](_0x5a0131[_0x2dec58(0x1d1)])[_0x2dec58(0x146)](_0x131f8c)[_0x2dec58(0x2e4)](_0xde2ea7)['help'](_0x350f9f[_0x2dec58(0x1c5)])['argv'];}}else{if(_0x350f9f[_0x2dec58(0x17c)](_0x350f9f[_0x2dec58(0x26c)],_0x350f9f[_0x2dec58(0x26c)]))throw new _0x3cceeb('Cluster\x20'+_0x497375+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else _0x5d4fdd=!![];}_0x2c635a=_0x4e24b7[_0x2dec58(0x21e)],_0x45e9b9=_0x4e24b7[_0x2dec58(0x175)][_0x2dec58(0x1ec)](),_0x500540=_0x4e24b7['region'];}else _0x1baa1b['region']=_0x549bca,_0x23e52a['cloudProvider']=_0x1bb986,_0x39b6fe['newCluster']=!![];}else _0x4e24b7[_0x2dec58(0x19e)]&&(_0x350f9f[_0x2dec58(0x17c)](_0x350f9f[_0x2dec58(0x2db)],_0x350f9f[_0x2dec58(0x2db)])?_0x3264c0[_0x2dec58(0x19a)](_0x2dec58(0x29b)+_0x5e3407+'\x20'):global_registry[_0x2dec58(0x19e)]=_0x4e24b7[_0x2dec58(0x19e)]);global_registry['gridName']=_0x4e24b7[_0x2dec58(0x2a1)];const _0x1bb7a1={'method':_0x350f9f[_0x2dec58(0x2d6)],'headers':_0x350f9f[_0x2dec58(0x287)](getAuthHeader,_0x5deb92['Browserstack'][_0x2dec58(0x1ac)],_0x5deb92[_0x2dec58(0x29c)][_0x2dec58(0x250)]),'throwHttpErrors':![]},_0x4a41d3={};_0x4a41d3[_0x2dec58(0x2a1)]=_0x36ae28;const _0x43545b=_0x4a41d3;_0x54280c&&(_0x350f9f[_0x2dec58(0x210)](_0x350f9f['SorcO'],_0x350f9f[_0x2dec58(0x161)])?(_0x43545b[_0x2dec58(0x14e)]=_0x500540,_0x43545b[_0x2dec58(0x175)]=_0x45e9b9,_0x43545b[_0x2dec58(0x2d3)]=!![]):_0x149ffe[_0x2dec58(0x19a)](_0x2dec58(0x1aa)+_0x21c342[_0x2dec58(0x2ae)](_0x3c7802)+'\x20'));const _0x2251f5='https://'+AG_API_URL+_0x2dec58(0x148),_0x194ab8={'searchParams':_0x43545b,'throwHttpErrors':![],..._0x1bb7a1},_0x4723fa=_0x194ab8,_0x29a7a3=await _0x350f9f[_0x2dec58(0x298)](got,_0x2251f5,_0x4723fa);(_0x350f9f[_0x2dec58(0x2c0)](_0x29a7a3,null)||_0x350f9f[_0x2dec58(0x13e)](_0x29a7a3,undefined))&&(_0x350f9f[_0x2dec58(0x1c4)](_0x350f9f[_0x2dec58(0x1b0)],_0x350f9f[_0x2dec58(0x1b0)])?(_0x2576f3=_0x350f9f[_0x2dec58(0x240)],await _0x350f9f[_0x2dec58(0x21c)](reportToGalactusAndSendToEDS,_0x4e24b7,_0x39ab0f,_0x2576f3,messageTypes[_0x2dec58(0x24b)],_0x350f9f[_0x2dec58(0x16d)],_0x350f9f['WeotM'],_0x350f9f[_0x2dec58(0x1f2)]),logger[_0x2dec58(0x187)](_0x2576f3),process[_0x2dec58(0x1fc)](0x1)):_0x49abf9['isPrivateGrid']=!![]);_0x350f9f['tizxn'](_0x29a7a3[_0x2dec58(0x181)],0x191)&&(_0x350f9f[_0x2dec58(0x22f)](_0x350f9f[_0x2dec58(0x267)],_0x350f9f[_0x2dec58(0x1d3)])?(_0x2576f3=_0x350f9f['GrXfr'],await _0x350f9f[_0x2dec58(0x168)](reportToGalactusAndSendToEDS,_0x4e24b7,_0x39ab0f,_0x2576f3,messageTypes['ERROR'],_0x350f9f[_0x2dec58(0x16d)],_0x350f9f['HoTjJ'],_0x350f9f[_0x2dec58(0x1f2)]),logger[_0x2dec58(0x187)](_0x2576f3),process['exit'](0x1)):_0x350f9f[_0x2dec58(0x278)](_0x1ce39c,_0x3520fe['uploaderVersion']));_0x350f9f[_0x2dec58(0x17d)](_0x29a7a3[_0x2dec58(0x181)],0xc8)&&(_0x350f9f[_0x2dec58(0x184)](_0x350f9f['IthSw'],_0x350f9f[_0x2dec58(0x1c8)])?(_0x2576f3=_0x2dec58(0x19c)+JSON[_0x2dec58(0x2ae)](_0x29a7a3[_0x2dec58(0x149)]),await _0x350f9f[_0x2dec58(0x21c)](reportToGalactusAndSendToEDS,_0x4e24b7,_0x39ab0f,_0x2576f3,messageTypes[_0x2dec58(0x24b)],_0x350f9f[_0x2dec58(0x16d)],_0x350f9f['TwpxZ'],_0x350f9f[_0x2dec58(0x1f2)]),logger[_0x2dec58(0x187)](_0x2576f3),process[_0x2dec58(0x1fc)](0x1)):_0x1c07b8=_0x350f9f[_0x2dec58(0x1f9)]);const _0x454a21=JSON['parse'](_0x29a7a3[_0x2dec58(0x149)]),_0x279b19={};_0x279b19[_0x2dec58(0x2b2)]=WS_EVENTS[_0x2dec58(0x176)],_0x279b19[_0x2dec58(0x249)]=_0x350f9f[_0x2dec58(0x1d7)],webSocketUtils['sendEventToBackend'](_0x39ab0f,_0x279b19);const _0x3c179c={};_0x3c179c[_0x2dec58(0x2b2)]=WS_EVENTS[_0x2dec58(0x183)],_0x3c179c['message']=_0x350f9f[_0x2dec58(0x173)],webSocketUtils['sendEventToBackend'](_0x39ab0f,_0x3c179c);_0x454a21['alreadyPresent']&&(_0x350f9f[_0x2dec58(0x219)](_0x350f9f[_0x2dec58(0x2b6)],_0x350f9f['YkmUx'])?_0x76b0c=_0x350f9f[_0x2dec58(0x19f)]:(_0x2576f3=_0x2dec58(0x225)+_0x36ae28+_0x2dec58(0x270),await _0x350f9f[_0x2dec58(0x2ab)](reportToGalactusAndSendToEDS,_0x4e24b7,_0x39ab0f,_0x2576f3,messageTypes[_0x2dec58(0x24b)],_0x350f9f[_0x2dec58(0x16d)],_0x350f9f[_0x2dec58(0x2c2)],_0x350f9f[_0x2dec58(0x1f2)]),logger[_0x2dec58(0x187)](_0x2576f3),process[_0x2dec58(0x1fc)](0x1)));const _0x51eb29=_0x454a21[_0x2dec58(0x170)];let _0x241bdf=_0x51eb29[_0x454a21[_0x2dec58(0x169)]];_0x4e24b7[_0x2dec58(0x19e)]&&(_0x350f9f[_0x2dec58(0x16a)](_0x350f9f[_0x2dec58(0x2ea)],_0x350f9f[_0x2dec58(0x2ea)])?_0x241bdf=_0x51eb29[_0x4e24b7[_0x2dec58(0x19e)]]:(_0x5bea75=_0x44d93c[_0x2dec58(0x18e)],_0x229312=_0x350f9f[_0x2dec58(0x2b4)]));global_registry[_0x2dec58(0x2cc)]=![];if(_0x4e24b7[_0x2dec58(0x1df)]){if(_0x350f9f[_0x2dec58(0x219)](_0x350f9f[_0x2dec58(0x238)],_0x350f9f[_0x2dec58(0x238)]))_0x4dcea4=!![];else{const _0x10d8db=_0x350f9f[_0x2dec58(0x1c0)]['split']('|');let _0x4e9bb8=0x0;while(!![]){switch(_0x10d8db[_0x4e9bb8++]){case'0':global_registry['hubHaNameSpace']=_0x350f9f[_0x2dec58(0x1b2)];continue;case'1':global_registry[_0x2dec58(0x2cc)]=!![];continue;case'2':logger[_0x2dec58(0x19a)](_0x350f9f[_0x2dec58(0x1a8)]);continue;case'3':global_registry['redisPassword']=_0x350f9f[_0x2dec58(0x25a)];continue;case'4':global_registry[_0x2dec58(0x23c)]=_0x350f9f[_0x2dec58(0x28a)];continue;}break;}}}if(_0x350f9f[_0x2dec58(0x184)](_0x5d4fdd,![])&&_0x350f9f['AeEYI'](_0x54280c,![])){if(_0x350f9f[_0x2dec58(0x27b)](_0x350f9f[_0x2dec58(0x24f)],_0x350f9f[_0x2dec58(0x24f)]))_0x350f9f[_0x2dec58(0x278)](_0x4979b0,_0x287e0b[_0x2dec58(0x1af)]);else{_0x350f9f[_0x2dec58(0x16e)](_0x241bdf,undefined)&&(_0x350f9f['JWXJb'](_0x350f9f[_0x2dec58(0x17a)],_0x350f9f[_0x2dec58(0x17a)])?_0x1d5425['error'](_0x2dec58(0x14c)+_0x5904c6+'\x20\x0a'+_0x492f61[_0x2dec58(0x2ae)](_0x1c8c1d[_0x2dec58(0x239)])):(_0x2576f3=_0x350f9f[_0x2dec58(0x224)],await _0x350f9f[_0x2dec58(0x168)](reportToGalactusAndSendToEDS,_0x4e24b7,_0x39ab0f,_0x2576f3,messageTypes[_0x2dec58(0x24b)],_0x350f9f[_0x2dec58(0x16d)],_0x350f9f[_0x2dec58(0x153)],_0x350f9f[_0x2dec58(0x1f2)]),logger['error'](_0x2576f3),process[_0x2dec58(0x1fc)](0x1)));global_registry[_0x2dec58(0x1ab)]=_0x241bdf['id'],_0x2576f3=_0x2dec58(0x237)+_0x36ae28+_0x2dec58(0x21b)+_0x241bdf[_0x2dec58(0x188)]+_0x2dec58(0x200),logger[_0x2dec58(0x19a)](_0x2576f3);const _0x2abcd2={};_0x2abcd2[_0x2dec58(0x2b2)]=WS_EVENTS[_0x2dec58(0x183)],_0x2abcd2[_0x2dec58(0x249)]=_0x2576f3,webSocketUtils['sendEventToBackend'](_0x39ab0f,_0x2abcd2),_0x45e9b9=_0x241bdf[_0x2dec58(0x175)],_0x2c635a=_0x241bdf[_0x2dec58(0x21e)],_0x500540=_0x241bdf[_0x2dec58(0x14e)],_0x2bbe2c=_0x241bdf['concurrency'],_0x30b39a=_0x241bdf[_0x2dec58(0x1a5)],_0x36ab15=_0x241bdf[_0x2dec58(0x151)],_0x48bbf4=_0x241bdf[_0x2dec58(0x1d5)],_0x8f004b=_0x241bdf[_0x2dec58(0x192)],_0x4fae0c=_0x241bdf[_0x2dec58(0x291)],_0x23cd5f=_0x241bdf[_0x2dec58(0x1d4)],_0x4933ae=_0x241bdf['maxNodes'],_0x460eb9=_0x454a21[_0x2dec58(0x26a)],_0x4248d1=_0x454a21[_0x2dec58(0x1f7)];_0x36ab15&&_0x350f9f[_0x2dec58(0x16a)](_0x36ab15['length'],0x0)&&(_0x350f9f[_0x2dec58(0x18b)](_0x350f9f[_0x2dec58(0x206)],_0x350f9f['LTajH'])?_0x36ab15=null:(_0x2d2326[_0x2dec58(0x19a)](_0x2dec58(0x202)+_0x58598f['clusterName']+_0x2dec58(0x213)),_0x20e3e3=![],_0x58f29c=!![]));_0x8f004b&&_0x350f9f[_0x2dec58(0x184)](_0x8f004b['length'],0x0)&&(_0x350f9f['NRKED'](_0x350f9f[_0x2dec58(0x233)],_0x350f9f[_0x2dec58(0x2da)])?_0x309c2c[_0x2dec58(0x1b5)]():_0x8f004b=null);if(_0x350f9f[_0x2dec58(0x27b)](_0x241bdf[_0x2dec58(0x189)],undefined)&&_0x241bdf[_0x2dec58(0x189)]){if(_0x350f9f[_0x2dec58(0x20d)](_0x350f9f[_0x2dec58(0x16f)],_0x350f9f[_0x2dec58(0x23a)]))global_registry[_0x2dec58(0x20f)]=!![];else{const _0x4ea9fb=_0x350f9f[_0x2dec58(0x262)][_0x2dec58(0x1ee)]('|');let _0x4081b3=0x0;while(!![]){switch(_0x4ea9fb[_0x4081b3++]){case'0':_0x32f72b[_0x2dec58(0x2e6)]=_0x350f9f[_0x2dec58(0x25a)];continue;case'1':_0x39a398[_0x2dec58(0x19a)](_0x350f9f['CwQlc']);continue;case'2':_0x11c592['enableHubHa']=!![];continue;case'3':_0x1fd8b6[_0x2dec58(0x281)]=_0x350f9f[_0x2dec58(0x1b2)];continue;case'4':_0x6e3f95[_0x2dec58(0x23c)]=_0x350f9f[_0x2dec58(0x28a)];continue;}break;}}}_0x350f9f[_0x2dec58(0x274)](updateGlobalRegistryWithConfig,_0x45e9b9,_0x2c635a,_0x500540,_0x2bbe2c,_0x30b39a,_0x4fae0c,_0x241bdf,_0x460eb9,_0x4248d1,_0x23cd5f,_0x4933ae);if(global_registry[_0x2dec58(0x2cc)]){if(_0x350f9f[_0x2dec58(0x1bd)](_0x350f9f['FvPvt'],_0x350f9f[_0x2dec58(0x201)])){const _0x6028ed=_0x350f9f[_0x2dec58(0x1e3)][_0x2dec58(0x1ee)]('|');let _0x5ad988=0x0;while(!![]){switch(_0x6028ed[_0x5ad988++]){case'0':_0xc2c3d8[_0x2dec58(0x19a)](_0x14dd62);continue;case'1':const _0x2274aa={};_0x2274aa[_0x2dec58(0x2b2)]=_0x44b370[_0x2dec58(0x176)],_0x2274aa[_0x2dec58(0x249)]=_0x350f9f[_0x2dec58(0x1d7)],_0x424073[_0x2dec58(0x215)](_0x258b4c,_0x2274aa);continue;case'2':_0x5caee3['hubVersion']=_0x18ec5c[_0x2dec58(0x26a)];continue;case'3':_0x1cab97['clusterRegion']=_0x328897;continue;case'4':_0x58b291=_0x2dec58(0x18d)+_0x1cbdaf+_0x2dec58(0x289)+_0x359bf1+'\x27';continue;case'5':const _0x348103={};_0x348103[_0x2dec58(0x2b2)]=_0x5cef11[_0x2dec58(0x183)],_0x348103['message']=_0x47594e,_0x237cc8[_0x2dec58(0x215)](_0x41322f,_0x348103);continue;case'6':_0x14a305[_0x2dec58(0x175)]=_0x2c60f4;continue;case'7':_0x38cf8a[_0x2dec58(0x1f7)]=_0x30a010[_0x2dec58(0x1f7)];continue;case'8':_0xbd4ce2[_0x2dec58(0x21e)]=_0x3031f9;continue;}break;}}else _0x350f9f['jByjZ'](updateGlobalRegistryForHubHa,_0x454a21[_0x2dec58(0x2ed)]);}}}else{if(_0x350f9f[_0x2dec58(0x2d8)](_0x54280c,!![])){if(_0x350f9f[_0x2dec58(0x219)](_0x350f9f['hJmkA'],_0x350f9f[_0x2dec58(0x179)])){_0x2576f3=_0x2dec58(0x271)+_0x36ae28,logger[_0x2dec58(0x19a)](_0x2576f3);const _0x39ebfc={};_0x39ebfc[_0x2dec58(0x2b2)]=WS_EVENTS[_0x2dec58(0x183)],_0x39ebfc[_0x2dec58(0x249)]=_0x2576f3,webSocketUtils[_0x2dec58(0x215)](_0x39ab0f,_0x39ebfc),_0x2bbe2c=_0x241bdf[_0x2dec58(0x24d)],_0x30b39a=_0x241bdf[_0x2dec58(0x1a5)],_0x36ab15=null,_0x48bbf4=null,_0x8f004b=null,_0x4fae0c=_0x241bdf['s3bucket'],_0x23cd5f=_0x241bdf['minNodes'],_0x4933ae=_0x241bdf[_0x2dec58(0x236)],_0x460eb9=_0x454a21[_0x2dec58(0x26a)],_0x4248d1=_0x454a21[_0x2dec58(0x1f7)];_0x350f9f['fntEH'](_0x241bdf['privateGrid'],undefined)&&_0x241bdf['privateGrid']&&(_0x350f9f[_0x2dec58(0x184)](_0x350f9f[_0x2dec58(0x21f)],_0x350f9f['rLDNR'])?global_registry[_0x2dec58(0x20f)]=!![]:_0x5b3313=_0x350f9f['tumIi']);_0x350f9f[_0x2dec58(0x1ba)](updateGlobalRegistryWithConfig,_0x45e9b9,_0x2c635a,_0x500540,_0x2bbe2c,_0x30b39a,_0x4fae0c,_0x241bdf,_0x460eb9,_0x4248d1,_0x23cd5f,_0x4933ae);if(global_registry['enableHubHa']){if(_0x350f9f['AeEYI'](_0x350f9f[_0x2dec58(0x27c)],_0x350f9f[_0x2dec58(0x27c)]))_0x350f9f[_0x2dec58(0x147)](updateGlobalRegistryForHubHa,_0x454a21[_0x2dec58(0x1af)]);else{const _0x358821={};_0x358821[_0x2dec58(0x2b2)]=_0x52b15f[_0x2dec58(0x183)],_0x358821['message']=_0x2dec58(0x1f8)+_0x32eb05+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x1c03fd['sendEventToBackend'](_0x2cd1f5,_0x358821,_0x350f9f[_0x2dec58(0x158)]),_0x2f58d2['info'](_0x2dec58(0x1f8)+_0x34cb00+_0x2dec58(0x2a2)),_0x6652e4=!![];if(_0x350f9f[_0x2dec58(0x2c0)](_0x13b71d,!![]))throw new _0x18af5c('Cluster\x20'+_0x350c50+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}}else{const _0x28c683=_0x350f9f[_0x2dec58(0x182)]['split']('|');let _0x109a71=0x0;while(!![]){switch(_0x28c683[_0x109a71++]){case'0':_0x350f9f[_0x2dec58(0x277)](_0x49bc0f[_0x2dec58(0x189)],_0x15593b)&&_0x48d565[_0x2dec58(0x189)]&&(_0x2d75d0[_0x2dec58(0x20f)]=!![]);continue;case'1':_0x33caf3=_0x2dec58(0x271)+_0x57a521;continue;case'2':_0x254d37=_0x35cfab[_0x2dec58(0x26a)];continue;case'3':_0x4855ab=_0xba34ab[_0x2dec58(0x24d)];continue;case'4':_0x36199d=null;continue;case'5':_0x3b13c5=_0x12c358[_0x2dec58(0x291)];continue;case'6':_0x2a6d10=_0x5e113a[_0x2dec58(0x1f7)];continue;case'7':_0x3d2e06[_0x2dec58(0x2cc)]&&_0x350f9f[_0x2dec58(0x150)](_0x442f19,_0xfd9b3b[_0x2dec58(0x1af)]);continue;case'8':_0x26c050=_0x320648[_0x2dec58(0x236)];continue;case'9':_0x462a3f=_0xed02e7[_0x2dec58(0x1a5)];continue;case'10':_0x2c5864=null;continue;case'11':const _0x87c26b={};_0x87c26b[_0x2dec58(0x2b2)]=_0x52d843['LOG'],_0x87c26b[_0x2dec58(0x249)]=_0x94fd67,_0x30d989[_0x2dec58(0x215)](_0x4bf692,_0x87c26b);continue;case'12':_0x350f9f[_0x2dec58(0x274)](_0x43cfd6,_0x274cef,_0x295753,_0xf8c0b8,_0x3415ef,_0x22acb6,_0x1fdad6,_0x425c14,_0x4ae7a5,_0x367aa3,_0x4c2706,_0x5933c1);continue;case'13':_0x1ad11d=_0xb51d27[_0x2dec58(0x1d4)];continue;case'14':_0x3b786b[_0x2dec58(0x19a)](_0x1936d5);continue;case'15':_0x3c3768=null;continue;}break;}}}else{if(_0x350f9f[_0x2dec58(0x276)](_0x350f9f[_0x2dec58(0x2ec)],_0x350f9f[_0x2dec58(0x2ec)]))_0x3615da=_0x553084[_0x204d9c[_0x2dec58(0x19e)]];else{const _0x51073c=_0x350f9f[_0x2dec58(0x27e)]['split']('|');let _0x42d58d=0x0;while(!![]){switch(_0x51073c[_0x42d58d++]){case'0':global_registry['cloudProvider']=_0x45e9b9;continue;case'1':logger['info'](_0x2576f3);continue;case'2':_0x2576f3=_0x2dec58(0x18d)+_0x36ae28+_0x2dec58(0x289)+_0x2c635a+'\x27';continue;case'3':global_registry['clusterName']=_0x2c635a;continue;case'4':global_registry[_0x2dec58(0x1f7)]=_0x454a21['browserVersion'];continue;case'5':global_registry[_0x2dec58(0x28d)]=_0x500540;continue;case'6':const _0x5b0bd3={};_0x5b0bd3[_0x2dec58(0x2b2)]=WS_EVENTS[_0x2dec58(0x176)],_0x5b0bd3['message']=_0x350f9f['pfhtG'],webSocketUtils['sendEventToBackend'](_0x39ab0f,_0x5b0bd3);continue;case'7':global_registry[_0x2dec58(0x26a)]=_0x454a21[_0x2dec58(0x26a)];continue;case'8':const _0x25f581={};_0x25f581[_0x2dec58(0x2b2)]=WS_EVENTS[_0x2dec58(0x183)],_0x25f581[_0x2dec58(0x249)]=_0x2576f3,webSocketUtils[_0x2dec58(0x215)](_0x39ab0f,_0x25f581);continue;}break;}}}}const _0xa892d6=await _0x350f9f[_0x2dec58(0x2d1)](getCloudProviderObject,_0x45e9b9,_0x2c635a,_0x36ae28,_0x39ab0f,webSocketUtils,_0x4e24b7);_0x350f9f[_0x2dec58(0x20d)](_0x45e9b9,AZURE)&&(_0x350f9f[_0x2dec58(0x16e)](_0x350f9f[_0x2dec58(0x1de)],_0x350f9f[_0x2dec58(0x251)])?_0x4b9100=null:_0xa892d6[_0x2dec58(0x1b5)]());let _0x4c96fd;if(_0x350f9f['lihnG'](_0x5d4fdd,![])){_0x2576f3=_0x2dec58(0x21d)+_0x500540+').';const _0x51e7c1={};_0x51e7c1['type']=WS_EVENTS[_0x2dec58(0x183)],_0x51e7c1[_0x2dec58(0x249)]=_0x2576f3,webSocketUtils[_0x2dec58(0x215)](_0x39ab0f,_0x51e7c1),logger[_0x2dec58(0x19a)](_0x2576f3);const _0x17e160=await _0xa892d6[_0x2dec58(0x1f4)]();if(_0x17e160){if(_0x350f9f[_0x2dec58(0x18b)](_0x350f9f[_0x2dec58(0x2eb)],_0x350f9f[_0x2dec58(0x1f1)]))_0xcc9271['isPrivateGrid']=!![];else{const _0x5931b6={};_0x5931b6[_0x2dec58(0x2b2)]=WS_EVENTS['LOG'],_0x5931b6[_0x2dec58(0x249)]=_0x2dec58(0x1f8)+_0x2c635a+_0x2dec58(0x2a2),webSocketUtils[_0x2dec58(0x215)](_0x39ab0f,_0x5931b6,_0x350f9f[_0x2dec58(0x158)]),logger[_0x2dec58(0x19a)](_0x2dec58(0x1f8)+_0x2c635a+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x5d4fdd=!![];if(_0x350f9f[_0x2dec58(0x15d)](_0x54280c,!![])){if(_0x350f9f[_0x2dec58(0x184)](_0x350f9f[_0x2dec58(0x1eb)],_0x350f9f[_0x2dec58(0x1e4)]))_0x3b35b5=null;else throw new Error(_0x2dec58(0x1f8)+_0x2c635a+_0x2dec58(0x296));}}}else{const _0x549d4d={};_0x549d4d[_0x2dec58(0x2b2)]=WS_EVENTS[_0x2dec58(0x183)],_0x549d4d['message']=_0x350f9f[_0x2dec58(0x1da)],webSocketUtils[_0x2dec58(0x215)](_0x39ab0f,_0x549d4d),logger[_0x2dec58(0x19a)](_0x350f9f[_0x2dec58(0x1da)]);const _0x19ecca=_0x350f9f[_0x2dec58(0x15e)](_0x36ab15,null)&&_0x350f9f[_0x2dec58(0x2e2)](_0x36ab15,undefined),_0x34e94c=_0x350f9f['jOXdd'](_0x8f004b,null)&&_0x350f9f[_0x2dec58(0x222)](_0x8f004b,undefined)&&_0x350f9f['IgbET'](_0x8f004b[_0x2dec58(0x195)],0x0);if(_0x19ecca){_0x350f9f[_0x2dec58(0x1d2)](_0x34e94c,![])&&(_0x2576f3=_0x350f9f['kyisD'],await _0x350f9f[_0x2dec58(0x1ed)](reportToGalactusAndSendToEDS,_0x4e24b7,_0x39ab0f,_0x2576f3,messageTypes[_0x2dec58(0x24b)],_0x350f9f[_0x2dec58(0x16d)],_0x350f9f[_0x2dec58(0x223)],_0x350f9f[_0x2dec58(0x1f2)]),logger['error'](_0x2576f3),process[_0x2dec58(0x1fc)](0x1));const _0x4d6d04=await _0xa892d6['isVPCPresent'](_0x36ab15);_0x350f9f[_0x2dec58(0x1b1)](_0x4d6d04,![])?(_0x2576f3=_0x350f9f[_0x2dec58(0x1a1)],await _0x350f9f[_0x2dec58(0x145)](reportToGalactusAndSendToEDS,_0x4e24b7,_0x39ab0f,_0x2576f3,messageTypes[_0x2dec58(0x24b)],_0x350f9f[_0x2dec58(0x16d)],_0x350f9f[_0x2dec58(0x266)],_0x350f9f[_0x2dec58(0x1f2)]),logger[_0x2dec58(0x187)](_0x2576f3),process[_0x2dec58(0x1fc)](0x1)):logger[_0x2dec58(0x19a)](_0x2dec58(0x29b)+_0x36ab15+'\x20');const _0x308c08=await _0xa892d6[_0x2dec58(0x2e5)](_0x8f004b,_0x36ab15);_0x350f9f[_0x2dec58(0x294)](_0x308c08[0x0],![])?(_0x2576f3=_0x2dec58(0x29d)+JSON['stringify'](_0x308c08[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x36ab15+_0x2dec58(0x1e7),await _0x350f9f[_0x2dec58(0x2ab)](reportToGalactusAndSendToEDS,_0x4e24b7,_0x39ab0f,_0x2576f3,messageTypes[_0x2dec58(0x24b)],_0x350f9f[_0x2dec58(0x16d)],_0x350f9f['argon'],_0x350f9f[_0x2dec58(0x1f2)]),logger['error'](_0x2576f3),process['exit'](0x1)):logger[_0x2dec58(0x19a)](_0x2dec58(0x1aa)+JSON['stringify'](_0x8f004b)+'\x20'),[_0x36ab15,_0x8f004b]=await _0xa892d6[_0x2dec58(0x1e8)](_0x36ab15,_0x8f004b);}else{const _0x11ff74=_0x350f9f['LfISJ'][_0x2dec58(0x1ee)]('|');let _0x3ec77d=0x0;while(!![]){switch(_0x11ff74[_0x3ec77d++]){case'0':logger[_0x2dec58(0x19a)](_0x350f9f[_0x2dec58(0x1d9)]);continue;case'1':logger['info'](_0x350f9f[_0x2dec58(0x2d2)]);continue;case'2':const _0x871648={};_0x871648['type']=WS_EVENTS[_0x2dec58(0x183)],_0x871648[_0x2dec58(0x249)]=_0x350f9f[_0x2dec58(0x1d9)],webSocketUtils['sendEventToBackend'](_0x39ab0f,_0x871648);continue;case'3':[_0x36ab15,_0x8f004b]=await _0xa892d6[_0x2dec58(0x1e8)](_0x36ab15,_0x8f004b);continue;case'4':const _0x597879={};_0x597879[_0x2dec58(0x2b2)]=WS_EVENTS[_0x2dec58(0x183)],_0x597879[_0x2dec58(0x249)]=_0x350f9f['VZKsK'],webSocketUtils[_0x2dec58(0x215)](_0x39ab0f,_0x597879);continue;}break;}}}}_0x5d4fdd&&_0x350f9f[_0x2dec58(0x2a8)](_0x45e9b9,AZURE)&&(await _0xa892d6[_0x2dec58(0x243)](),await _0xa892d6[_0x2dec58(0x231)]());const [_0x53cda4,_0x3b7d00,_0x52d773,_0xf4137b,_0xdbdc42,_0x56b18a,_0xbd4f0a]=await _0x350f9f[_0x2dec58(0x287)](createK8sClient,_0xa892d6,_0x4e24b7['skipTlsCertVerify']);_0x350f9f[_0x2dec58(0x16a)](_0x5d4fdd,![])&&_0x350f9f[_0x2dec58(0x2a8)](_0x45e9b9,AWS)&&(global_registry[_0x2dec58(0x273)]=!![],_0x4c96fd=await _0xa892d6['setupAutoscaler'](_0x53cda4,_0x4e24b7));if(_0x350f9f[_0x2dec58(0x13e)](_0x5d4fdd,![])&&global_registry['enableHubHa'])try{await _0xa892d6['setupHubHa'](_0x56b18a,_0xbd4f0a,_0x4e24b7,_0x36ab15,_0x8f004b);const _0x274564={};_0x274564[_0x2dec58(0x2b2)]=WS_EVENTS[_0x2dec58(0x183)],_0x274564['message']=_0x350f9f[_0x2dec58(0x253)],webSocketUtils[_0x2dec58(0x215)](_0x39ab0f,_0x274564);!await _0x350f9f[_0x2dec58(0x298)](namespaceExists,_0x53cda4,global_registry['hubHaNameSpace'])&&await _0x350f9f['qGuPM'](createNamespace,_0x53cda4,global_registry[_0x2dec58(0x281)]);logger[_0x2dec58(0x19a)](_0x350f9f['KTZnB']);let _0x399639=await fs[_0x2dec58(0x248)](path[_0x2dec58(0x155)](__dirname,_0x350f9f[_0x2dec58(0x208)],_0x350f9f['AXUSw'],_0x350f9f['Pbziq'],_0x350f9f['UbJiQ']),_0x350f9f[_0x2dec58(0x193)]);_0x399639=_0x399639[_0x2dec58(0x1c3)](/<RedisClientPassword>/g,_0x350f9f[_0x2dec58(0x1e5)](encodeBase64,global_registry[_0x2dec58(0x2e6)])),_0x399639=_0x399639['replace'](/<KafkaClientPassword>/g,_0x350f9f['zdKDD'](encodeBase64,global_registry['kafkaPassword'])),_0x399639=_0x399639[_0x2dec58(0x1c3)](/<BstackUsername>/g,_0x350f9f['IaFRx'](encodeBase64,global_registry[_0x2dec58(0x1a9)])),_0x399639=_0x399639[_0x2dec58(0x1c3)](/<BstackAccessKey>/g,_0x350f9f[_0x2dec58(0x147)](encodeBase64,global_registry[_0x2dec58(0x2a9)]));const _0x2b33ec=yaml['loadAll'](_0x399639);await _0x350f9f[_0x2dec58(0x255)](kubeApply,_0x2b33ec,_0xbd4f0a),logger[_0x2dec58(0x19a)](_0x350f9f[_0x2dec58(0x18c)]);let _0x3dd11e=_0x350f9f['WHdjD'];if(_0x350f9f[_0x2dec58(0x15d)](_0x45e9b9,AZURE))_0x3dd11e=_0x350f9f[_0x2dec58(0x1f9)];else _0x350f9f['JjYKN'](_0x45e9b9,GCP)&&(_0x3dd11e=_0x350f9f['syFgX']);logger[_0x2dec58(0x19a)](_0x350f9f[_0x2dec58(0x229)]);let _0x3d7fad=await fs[_0x2dec58(0x248)](path[_0x2dec58(0x155)](__dirname,_0x350f9f['YlbvY'],_0x350f9f[_0x2dec58(0x275)],_0x350f9f[_0x2dec58(0x17b)],_0x350f9f['VggoF']),_0x350f9f[_0x2dec58(0x193)]);_0x3d7fad=_0x3d7fad['replace'](/<HubHaNameSpace>/g,global_registry[_0x2dec58(0x281)]),_0x3d7fad=_0x3d7fad['replace'](/<StorageClassName>/g,_0x3dd11e);const _0x2f5555=yaml['loadAll'](_0x3d7fad);await _0x350f9f[_0x2dec58(0x167)](kubeApply,_0x2f5555,_0xbd4f0a),logger[_0x2dec58(0x19a)](_0x350f9f['jWWUi']),logger[_0x2dec58(0x19a)](_0x350f9f[_0x2dec58(0x14d)]);let _0x4d71fb=await fs[_0x2dec58(0x248)](path[_0x2dec58(0x155)](__dirname,_0x350f9f[_0x2dec58(0x208)],_0x350f9f['AXUSw'],_0x350f9f[_0x2dec58(0x17b)],_0x350f9f[_0x2dec58(0x2be)]),_0x350f9f[_0x2dec58(0x193)]);_0x4d71fb=_0x4d71fb[_0x2dec58(0x1c3)](/<HubHaNameSpace>/g,global_registry[_0x2dec58(0x281)]),_0x4d71fb=_0x4d71fb[_0x2dec58(0x1c3)](/<StorageClassName>/g,_0x3dd11e);const _0x1974fc=yaml[_0x2dec58(0x177)](_0x4d71fb);await _0x350f9f[_0x2dec58(0x167)](kubeApply,_0x1974fc,_0xbd4f0a),logger[_0x2dec58(0x19a)](_0x350f9f[_0x2dec58(0x2c6)]),logger[_0x2dec58(0x19a)](_0x350f9f[_0x2dec58(0x14b)]);let _0x423413=await fs['readFileAsync'](path[_0x2dec58(0x155)](__dirname,_0x350f9f[_0x2dec58(0x208)],_0x350f9f['AXUSw'],_0x350f9f[_0x2dec58(0x17b)],_0x350f9f['ffkTm']),_0x350f9f['TebXU']);_0x423413=_0x423413[_0x2dec58(0x1c3)](/<UploaderImageVersion>/g,global_registry[_0x2dec58(0x164)]),_0x423413=_0x423413[_0x2dec58(0x1c3)](/<HubHaNameSpace>/g,global_registry[_0x2dec58(0x281)]);const _0x1f6f44=yaml[_0x2dec58(0x177)](_0x423413);_0x350f9f[_0x2dec58(0x184)](global_registry[_0x2dec58(0x175)],AZURE)&&(_0x1f6f44[0x0]['spec'][_0x2dec58(0x285)][_0x2dec58(0x25d)][_0x2dec58(0x242)]={'azure.workload.identity/use':_0x350f9f[_0x2dec58(0x264)],..._0x1f6f44[0x0][_0x2dec58(0x141)][_0x2dec58(0x285)][_0x2dec58(0x25d)][_0x2dec58(0x242)]},_0x1f6f44[0x0][_0x2dec58(0x141)]['template'][_0x2dec58(0x141)][_0x2dec58(0x2aa)]=_0x350f9f['UlHNI']);await _0x350f9f[_0x2dec58(0x1d8)](kubeApply,_0x1f6f44,_0xbd4f0a),logger[_0x2dec58(0x19a)](_0x350f9f[_0x2dec58(0x220)]);const _0x53a376={};_0x53a376[_0x2dec58(0x2b2)]=WS_EVENTS['LOG'],_0x53a376['message']=_0x350f9f[_0x2dec58(0x228)],webSocketUtils[_0x2dec58(0x215)](_0x39ab0f,_0x53a376),logger[_0x2dec58(0x19a)](_0x350f9f[_0x2dec58(0x1fe)]);}catch(_0x45da76){const _0x12c193=_0x350f9f[_0x2dec58(0x196)][_0x2dec58(0x1ee)]('|');let _0x210072=0x0;while(!![]){switch(_0x12c193[_0x210072++]){case'0':process[_0x2dec58(0x1fc)](0x1);continue;case'1':await _0x350f9f['PTgNf'](reportToGalactusAndSendToEDS,_0x4e24b7,_0x39ab0f,_0x2576f3,messageTypes[_0x2dec58(0x24b)],_0x350f9f[_0x2dec58(0x16d)],_0x350f9f[_0x2dec58(0x13f)],_0x350f9f['cVdwa']);continue;case'2':logger[_0x2dec58(0x187)](_0x2576f3);continue;case'3':await _0xa892d6[_0x2dec58(0x2cb)](_0x53cda4,global_registry[_0x2dec58(0x28d)]);continue;case'4':_0x2576f3=_0x2dec58(0x2ba)+_0x45da76[_0x2dec58(0x249)];continue;}break;}}try{_0x345150=_0x350f9f[_0x2dec58(0x1e2)](kebabCase,_0x36ae28),logger[_0x2dec58(0x19a)](_0x350f9f[_0x2dec58(0x2bf)]);const _0x48e545={};_0x48e545['type']=WS_EVENTS['LOG'],_0x48e545[_0x2dec58(0x249)]=_0x350f9f[_0x2dec58(0x2bf)],webSocketUtils[_0x2dec58(0x215)](_0x39ab0f,_0x48e545);if(_0x350f9f['VtBTW'](_0x345150,_0x350f9f['UlHNI'])){const _0x544fd3={};_0x544fd3[_0x2dec58(0x1b7)]=_0x350f9f[_0x2dec58(0x159)],_0x544fd3['managedBy']=_0x350f9f['lpuui'];const _0x3f4b0f={};_0x3f4b0f[_0x2dec58(0x188)]=_0x345150,_0x3f4b0f[_0x2dec58(0x29a)]=_0x544fd3;const _0x531268={};_0x531268[_0x2dec58(0x25d)]=_0x3f4b0f;const _0x47a0ac=_0x531268,_0x5f18ff={};_0x5f18ff[_0x2dec58(0x149)]=_0x47a0ac,await _0x53cda4[_0x2dec58(0x269)](_0x5f18ff),logger['info'](_0x350f9f['UfVxA']);}const _0x3a24b2={};_0x3a24b2[_0x2dec58(0x2b2)]=WS_EVENTS['LOG'],_0x3a24b2[_0x2dec58(0x249)]=_0x350f9f['yDRaf'],webSocketUtils[_0x2dec58(0x215)](_0x39ab0f,_0x3a24b2);const _0x3688d3={};_0x3688d3[_0x2dec58(0x2b2)]=WS_EVENTS[_0x2dec58(0x183)],_0x3688d3[_0x2dec58(0x249)]=_0x350f9f[_0x2dec58(0x1bf)],webSocketUtils[_0x2dec58(0x215)](_0x39ab0f,_0x3688d3),logger['info'](_0x350f9f[_0x2dec58(0x1b6)]);let _0x5f1086={};_0x350f9f[_0x2dec58(0x16a)](_0x45e9b9,AZURE)&&(_0x5f1086={'clientId':await _0xa892d6[_0x2dec58(0x2c7)](_0x2dec58(0x26d)+_0x2c635a)});await _0x350f9f[_0x2dec58(0x2e0)](addGridComponents,_0x53cda4,_0x3b7d00,_0x52d773,_0xf4137b,_0x345150,_0x2c635a,_0x4c96fd,_0xdbdc42,_0xbd4f0a,_0x5f1086),_0x2576f3=_0x350f9f['qyQwF'],logger[_0x2dec58(0x19a)](_0x2576f3);const _0xa47934={};_0xa47934[_0x2dec58(0x2b2)]=WS_EVENTS[_0x2dec58(0x183)],_0xa47934[_0x2dec58(0x249)]=_0x2576f3,webSocketUtils['sendEventToBackend'](_0x39ab0f,_0xa47934),_0x2576f3=_0x350f9f['KUqiX'],logger[_0x2dec58(0x19a)](_0x2576f3);const _0xf24e1a={};_0xf24e1a['type']=WS_EVENTS[_0x2dec58(0x183)],_0xf24e1a[_0x2dec58(0x249)]=_0x2576f3,webSocketUtils[_0x2dec58(0x215)](_0x39ab0f,_0xf24e1a),await _0x350f9f[_0x2dec58(0x23d)](waitForDeployment,_0x3b7d00,_0x345150,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x35f44a=await _0x350f9f[_0x2dec58(0x1a6)](getNamespaceUID,_0x53cda4,_0x345150),_0x45421d=global_registry[_0x2dec58(0x20f)]?_0x350f9f[_0x2dec58(0x15f)]:_0x350f9f[_0x2dec58(0x2d9)],_0x6ee96={};_0x6ee96[_0x2dec58(0x188)]=_0x45421d,_0x6ee96[_0x2dec58(0x232)]=_0x350f9f[_0x2dec58(0x290)];const _0x11f362=await _0x53cda4[_0x2dec58(0x1ff)](_0x6ee96);let _0x5923b5=_0xa892d6[_0x2dec58(0x22c)](_0x11f362)+'/'+_0x345150,_0x10b85c=_0x350f9f[_0x2dec58(0x2af)];try{const _0xb88cf1=_0x2dec58(0x19d)+AG_API_URL+_0x2dec58(0x24c)+_0x35f44a,_0x4e9d81=await _0x350f9f[_0x2dec58(0x25f)](got,_0xb88cf1,_0x1bb7a1);(_0x350f9f['BKxfx'](_0x4e9d81,null)||_0x350f9f['Ivstp'](_0x4e9d81,undefined))&&(_0x2576f3=_0x350f9f[_0x2dec58(0x260)],await _0x350f9f[_0x2dec58(0x1ce)](reportToGalactusAndSendToEDS,_0x4e24b7,_0x39ab0f,_0x2576f3,messageTypes[_0x2dec58(0x24b)],_0x350f9f['idRCi'],_0x350f9f['YgVfv'],_0x350f9f[_0x2dec58(0x1f2)]),logger['error'](_0x2576f3),process[_0x2dec58(0x1fc)](0x1));_0x350f9f[_0x2dec58(0x280)](_0x4e9d81[_0x2dec58(0x181)],0x191)&&(_0x2576f3=_0x350f9f[_0x2dec58(0x209)],await _0x350f9f['sZuSi'](reportToGalactusAndSendToEDS,_0x4e24b7,_0x39ab0f,_0x2576f3,messageTypes['ERROR'],_0x350f9f['idRCi'],_0x350f9f['SQlYt'],_0x350f9f[_0x2dec58(0x1f2)]),logger[_0x2dec58(0x187)](_0x2576f3),process['exit'](0x1));_0x350f9f['VtBTW'](_0x4e9d81['statusCode'],0xc8)&&(_0x2576f3='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x4e9d81),await _0x350f9f[_0x2dec58(0x21c)](reportToGalactusAndSendToEDS,_0x4e24b7,_0x39ab0f,_0x2576f3,messageTypes[_0x2dec58(0x24b)],_0x350f9f[_0x2dec58(0x16d)],_0x350f9f[_0x2dec58(0x2b7)],_0x350f9f['cVdwa']),logger[_0x2dec58(0x187)](_0x2576f3),process[_0x2dec58(0x1fc)](0x1));const _0x516712=JSON[_0x2dec58(0x293)](_0x4e9d81[_0x2dec58(0x149)]);_0x516712[_0x2dec58(0x18e)]&&(_0x5923b5=_0x516712[_0x2dec58(0x18e)],_0x10b85c=_0x350f9f[_0x2dec58(0x2b4)]),global_registry[_0x2dec58(0x20f)]&&(_0x10b85c=_0x350f9f[_0x2dec58(0x2af)]);}catch(_0x3b1d48){}_0x2576f3=_0x2dec58(0x186)+_0x5923b5+'\x20',logger[_0x2dec58(0x19a)](_0x2576f3);const _0x5c1097={};_0x5c1097[_0x2dec58(0x2b2)]=WS_EVENTS[_0x2dec58(0x183)],_0x5c1097[_0x2dec58(0x249)]=_0x2576f3,webSocketUtils['sendEventToBackend'](_0x39ab0f,_0x5c1097),_0x2576f3=_0x2dec58(0x1f3)+_0x10b85c+_0x2dec58(0x1cf)+_0x5923b5+_0x2dec58(0x172),logger[_0x2dec58(0x19a)](_0x2576f3);const _0x4167c6={};_0x4167c6['type']=WS_EVENTS['LOG'],_0x4167c6[_0x2dec58(0x249)]=_0x2576f3,webSocketUtils[_0x2dec58(0x215)](_0x39ab0f,_0x4167c6);const _0x18cedb={};_0x18cedb[_0x2dec58(0x2b2)]=WS_EVENTS[_0x2dec58(0x2c4)],_0x18cedb[_0x2dec58(0x249)]=_0x2dec58(0x1b9)+_0x5923b5,webSocketUtils[_0x2dec58(0x215)](_0x39ab0f,_0x18cedb),await webSocketUtils[_0x2dec58(0x2df)](0x7d0);}catch(_0x24bc35){logger[_0x2dec58(0x187)](_0x2dec58(0x286)+_0x24bc35+'\x20\x0a'+JSON['stringify'](_0x24bc35[_0x2dec58(0x239)]));if(_0x350f9f['KjyvY'](_0x5d4fdd,![]))try{logger[_0x2dec58(0x19a)](_0x350f9f[_0x2dec58(0x252)]),await _0x350f9f[_0x2dec58(0x1e0)](removeGridComponents,_0x53cda4,_0x3b7d00,_0x52d773,_0xf4137b,_0x345150),await _0xa892d6[_0x2dec58(0x2cb)](_0x53cda4,global_registry[_0x2dec58(0x28d)]);}catch(_0x4d095d){logger['error'](_0x2dec58(0x14c)+_0x4d095d+'\x20\x0a'+JSON[_0x2dec58(0x2ae)](_0x4d095d['stack']));}throw _0x24bc35;}}catch(_0x20f939){const _0x352438=_0x2dec58(0x211)+_0x20f939+'\x20\x0a'+JSON[_0x2dec58(0x2ae)](_0x20f939[_0x2dec58(0x239)]);if(_0x39ab0f){const _0x255e0c={};_0x255e0c[_0x2dec58(0x2b2)]=WS_EVENTS[_0x2dec58(0x183)],_0x255e0c[_0x2dec58(0x249)]=_0x352438,webSocketUtils['sendEventToBackend'](_0x39ab0f,_0x255e0c,_0x350f9f[_0x2dec58(0x1f2)],!![]);}await webSocketUtils[_0x2dec58(0x2df)](0x7d0);const _0x9225cb={};_0x9225cb[_0x2dec58(0x187)]=_0x352438,await _0x350f9f['DfqzO'](sendInstrumentationEvent,_0x4e24b7,_0x350f9f['idRCi'],messageTypes['ERROR'],_0x350f9f[_0x2dec58(0x1c2)],_0x9225cb,_0x4e24b7),logger[_0x2dec58(0x187)](_0x352438);}process['exit'](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10_0x3e3494=a10_0x120b;(function(_0x41e6dc,_0x136b7e){const _0x1a74a5=a10_0x120b,_0x2e07ff=_0x41e6dc();while(!![]){try{const _0x11c0a4=parseInt(_0x1a74a5(0x175))/0x1*(parseInt(_0x1a74a5(0x17d))/0x2)+parseInt(_0x1a74a5(0x172))/0x3*(parseInt(_0x1a74a5(0x17e))/0x4)+-parseInt(_0x1a74a5(0x16c))/0x5+-parseInt(_0x1a74a5(0x168))/0x6+-parseInt(_0x1a74a5(0x177))/0x7*(-parseInt(_0x1a74a5(0x16a))/0x8)+-parseInt(_0x1a74a5(0x180))/0x9*(-parseInt(_0x1a74a5(0x174))/0xa)+-parseInt(_0x1a74a5(0x170))/0xb;if(_0x11c0a4===_0x136b7e)break;else _0x2e07ff['push'](_0x2e07ff['shift']());}catch(_0x1296fd){_0x2e07ff['push'](_0x2e07ff['shift']());}}}(a10_0x51f9,0xec970));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x3e3494(0x171));function a10_0x51f9(){const _0x45bc2f=['desc','epilogue','708jBMDGb','348iKSujU','strict','7868547eZLtBn','2807220wQZOEB','command','5571136YbLkxs','help','1010405YSbnLp','List\x20Grid\x20resources.','zcRRs','PUJCq','41237878UbjDls','../config/constants','39651zitKFM','delete','20VgPXUN','3098dAhhzm','commandDir','14IUSNnF','recommendCommands','delete_commands','builder'];a10_0x51f9=function(){return _0x45bc2f;};return a10_0x51f9();}function a10_0x120b(_0x504cb2,_0x2d6af0){const _0x51f908=a10_0x51f9();return a10_0x120b=function(_0x120bb0,_0x5544d7){_0x120bb0=_0x120bb0-0x168;let _0x5ab670=_0x51f908[_0x120bb0];return _0x5ab670;},a10_0x120b(_0x504cb2,_0x2d6af0);}exports[a10_0x3e3494(0x169)]=a10_0x3e3494(0x173),exports[a10_0x3e3494(0x17b)]=a10_0x3e3494(0x16d),exports[a10_0x3e3494(0x17a)]=function(_0x19ece3){const _0x3cdc1a=a10_0x3e3494,_0x5da64d={};_0x5da64d[_0x3cdc1a(0x16f)]=_0x3cdc1a(0x179),_0x5da64d[_0x3cdc1a(0x16e)]=_0x3cdc1a(0x16b);const _0x4f6ce5=_0x5da64d;return _0x19ece3['usage'](HELP_HEADER_MESSAGE[_0x3cdc1a(0x173)])[_0x3cdc1a(0x17c)](HELP_FOOTER_MESSAGE)[_0x3cdc1a(0x176)](_0x4f6ce5[_0x3cdc1a(0x16f)])['demandCommand']()[_0x3cdc1a(0x178)]()[_0x3cdc1a(0x17f)]()[_0x3cdc1a(0x16b)](_0x4f6ce5[_0x3cdc1a(0x16e)]);},exports['handler']=function(_0x1abb2){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x5b96e4=a11_0x2286;(function(_0x530154,_0x2c4b17){const _0x82747a=a11_0x2286,_0xb717ea=_0x530154();while(!![]){try{const _0x3e6730=parseInt(_0x82747a(0x162))/0x1+parseInt(_0x82747a(0x18e))/0x2*(parseInt(_0x82747a(0x186))/0x3)+-parseInt(_0x82747a(0x12e))/0x4*(-parseInt(_0x82747a(0x14b))/0x5)+-parseInt(_0x82747a(0x110))/0x6+-parseInt(_0x82747a(0x153))/0x7*(parseInt(_0x82747a(0x10f))/0x8)+parseInt(_0x82747a(0x154))/0x9+-parseInt(_0x82747a(0x146))/0xa;if(_0x3e6730===_0x2c4b17)break;else _0xb717ea['push'](_0xb717ea['shift']());}catch(_0x1d4de2){_0xb717ea['push'](_0xb717ea['shift']());}}}(a11_0x3e49,0xc6ded));function a11_0x2286(_0x7b9dbe,_0x109c17){const _0x3e49f8=a11_0x3e49();return a11_0x2286=function(_0x2286dc,_0xce4ffc){_0x2286dc=_0x2286dc-0xfa;let _0x37c484=_0x3e49f8[_0x2286dc];return _0x37c484;},a11_0x2286(_0x7b9dbe,_0x109c17);}const fs=require('fs'),got=require(a11_0x5b96e4(0x116)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x5b96e4(0x160)),{sendInstrumentationEvent}=require(a11_0x5b96e4(0x10e)),{inputConfirmation}=require(a11_0x5b96e4(0x139)),{createK8sClient}=require(a11_0x5b96e4(0x170)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x5b96e4(0x163)),webSocketUtils=require(a11_0x5b96e4(0x169));function a11_0x3e49(){const _0x373787=['options','kERFK','87kmxrxD','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','command','handler','exit','existsSync','lcstm','epilogue','88342klvdGE','readNamespace','readFileSync','yPwDM','<PasswordPlaceholder>','grid-id','llmvE','lAhGM','amnDS','delete','username','warn','zACwU','GOrgq','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','\x22\x20and\x20ID\x20','LrRvx','Pass\x20the\x20ID\x20of\x20the\x20Grid','ERROR','connectionTimeout','argv','KylvM','../../utils/instrumentationUtils','16GydjNz','3371016dPPNhY','bkfqQ','ozDqE','sxMwG','DNvdS','\x22\x20with\x20ID\x20','got','QEuem','onlyGridInCluster','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','parse','HtwzG','name','FvUAg','cloudProvider','zUGMU','clusterSpawnedVia','builder','rjZvG','htUAK','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','stringify','/packages/cli/grid/','KQhAN','invalid-input','uXTOB','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','UbQhc','ZejKh','176IWVYAT','Delete\x20an\x20Automation\x20grid.','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','VuhTJ','clusterName','pONYg','SWMMY','toLowerCase','replace','PpNCN','../../utils/userInput','kwPfh','IZbNY','isClusterPresent','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','qknWf','INFO','TTTbU','Successfully\x20deleted\x20the\x20grid','stack','Skip\x20insecure\x20cert\x20verification.','password','Xgumu','19707310zJGjjP','OYJSu','invalid-grid-id','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','then','54780CuMGFn','unknown-error','delete-grid-called','fiKbR','tWzbR','error','statusCode','https://','3522071GgPWsf','8857305fwguWV','gridId','body','bjBVA','info','aGwbu','requestId','string','help','isBrowserstackCluster','xYOJQ','usage','../../utils/gridComponents','uyPsN','1606278JYqZJS','../../utils/utilityMethods','type','Cluster:\x20','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','qFqwG','Namespace:\x20','../../utils/webSocketUtils','VzSFb','azzie','ljssj','<UsernamePlaceholder>','uPikK','boolean','../../utils/createk8sClient','lqbKj','DGOVF','zlUbH','description','SjANf','clusterRegion','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','WebSocket','unauthorised','dXSoJ','JSZEl','skipTlsCertVerify','TZLOL','ItIny','PMUeG','Xpgvr','default','Browserstack','skip-tls-cert-verify'];a11_0x3e49=function(){return _0x373787;};return a11_0x3e49();}exports[a11_0x5b96e4(0x188)]='grid',exports['desc']=a11_0x5b96e4(0x12f),exports[a11_0x5b96e4(0x121)]=function(_0x20e37b){const _0x3e1fbe=a11_0x5b96e4,_0x414f9d={};_0x414f9d[_0x3e1fbe(0x161)]=_0x3e1fbe(0x109),_0x414f9d[_0x3e1fbe(0x129)]=_0x3e1fbe(0x15b),_0x414f9d['amnDS']=_0x3e1fbe(0x143),_0x414f9d[_0x3e1fbe(0x140)]=_0x3e1fbe(0x16f),_0x414f9d[_0x3e1fbe(0x17a)]=_0x3e1fbe(0x15c);const _0x55d287=_0x414f9d,_0x1581ee={};_0x1581ee[_0x3e1fbe(0x174)]=_0x55d287[_0x3e1fbe(0x161)],_0x1581ee[_0x3e1fbe(0x164)]=_0x55d287['uXTOB'];const _0x114d57={};_0x114d57[_0x3e1fbe(0x174)]=_0x55d287[_0x3e1fbe(0x100)],_0x114d57['type']=_0x55d287['TTTbU'],_0x114d57[_0x3e1fbe(0x181)]=![];const _0x466985={};return _0x466985[_0x3e1fbe(0xfd)]=_0x1581ee,_0x466985[_0x3e1fbe(0x183)]=_0x114d57,_0x20e37b[_0x3e1fbe(0x15f)](HELP_HEADER_MESSAGE[_0x3e1fbe(0x101)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3e1fbe(0x184)](_0x466985)[_0x3e1fbe(0x15c)](_0x55d287[_0x3e1fbe(0x17a)])[_0x3e1fbe(0x10c)];},exports[a11_0x5b96e4(0x189)]=async function(_0x27501c){const _0x1a3182=a11_0x5b96e4,_0x1ae6eb={'TZLOL':_0x1a3182(0x141),'kwPfh':_0x1a3182(0x109),'LrRvx':_0x1a3182(0x15b),'ZejKh':_0x1a3182(0x143),'ljssj':_0x1a3182(0x16f),'GOrgq':_0x1a3182(0x15c),'uPikK':function(_0xa15f28,_0x4c8acc){return _0xa15f28===_0x4c8acc;},'rjZvG':_0x1a3182(0x16b),'TAOqr':'WaKzp','pONYg':_0x1a3182(0x149),'SWMMY':_0x1a3182(0x131),'ZiIRF':function(_0x2b21b7){return _0x2b21b7();},'tWzbR':function(_0x23735f,_0x354e62){return _0x23735f===_0x354e62;},'XIesY':_0x1a3182(0x104),'lqbKj':_0x1a3182(0x114),'bjBVA':_0x1a3182(0x187),'PpNCN':function(_0x19b507,_0x5964fb,_0x387f8c,_0x3d520c,_0x56d103,_0x31ac2a,_0x24fb12){return _0x19b507(_0x5964fb,_0x387f8c,_0x3d520c,_0x56d103,_0x31ac2a,_0x24fb12);},'kERFK':_0x1a3182(0x14d),'DGOVF':'init-not-called','OYJSu':function(_0x1df4f0,_0x7ebce0,_0x44d29c,_0x11c049,_0x2f3a08,_0x184cf7,_0x230669){return _0x1df4f0(_0x7ebce0,_0x44d29c,_0x11c049,_0x2f3a08,_0x184cf7,_0x230669);},'Xgumu':function(_0x2c4545,_0x412195){return _0x2c4545!==_0x412195;},'FvUAg':'xYrFE','qknWf':function(_0x1ffa85,_0x29a59d,_0x5c2a5a,_0x29d675){return _0x1ffa85(_0x29a59d,_0x5c2a5a,_0x29d675);},'Xpgvr':_0x1a3182(0x182),'lAhGM':function(_0x4e9e58,_0x44a379){return _0x4e9e58===_0x44a379;},'xYOJQ':'MgHlA','HtwzG':function(_0xa8207e,_0x352905){return _0xa8207e(_0x352905);},'GMNrj':function(_0x36aeff,_0x3d53b8){return _0x36aeff===_0x3d53b8;},'HZkOR':function(_0x4a3708,_0x2481ae){return _0x4a3708===_0x2481ae;},'QEuem':function(_0x43ef72,_0x22fbd8){return _0x43ef72===_0x22fbd8;},'JSZEl':function(_0x2e3a1b,_0x11bdbe){return _0x2e3a1b!==_0x11bdbe;},'zlUbH':_0x1a3182(0x159),'lcstm':_0x1a3182(0x12b),'llmvE':function(_0x4da48f,_0x4a6f65,_0x14b080,_0x13772b,_0x265a57,_0x26b51a,_0x5a3140){return _0x4da48f(_0x4a6f65,_0x14b080,_0x13772b,_0x265a57,_0x26b51a,_0x5a3140);},'zUGMU':_0x1a3182(0x128),'UbQhc':'QAWaM','VzSFb':_0x1a3182(0x16d),'KQhAN':_0x1a3182(0xfc),'IZbNY':function(_0x29dfe0,_0xee0fe2,_0x309c20){return _0x29dfe0(_0xee0fe2,_0x309c20);},'ozDqE':function(_0x51432c,_0x3b144b,_0x5bf31e,_0x28f741,_0x187237,_0x5c5cbe){return _0x51432c(_0x3b144b,_0x5bf31e,_0x28f741,_0x187237,_0x5c5cbe);},'CjiZA':_0x1a3182(0x123),'bkfqQ':function(_0x42e048,_0x1b3710){return _0x42e048===_0x1b3710;},'VuhTJ':'SZxKe','KylvM':_0x1a3182(0xfb),'PMUeG':'DELETE','SjANf':function(_0x45c124,_0xead3e4){return _0x45c124!==_0xead3e4;},'fiKbR':function(_0x365c98,_0x56b6ee){return _0x365c98!==_0x56b6ee;},'sxMwG':'server-error','MIcxx':function(_0x50b8d1,_0x3e56b0){return _0x50b8d1===_0x3e56b0;},'dSRnk':_0x1a3182(0x106),'qFqwG':function(_0xfd63fb,_0x515e4f,_0xeb6eaf,_0x422819,_0x538290,_0x477bd9,_0x556edf){return _0xfd63fb(_0x515e4f,_0xeb6eaf,_0x422819,_0x538290,_0x477bd9,_0x556edf);},'EyUHT':_0x1a3182(0x179),'ItIny':function(_0x49ce15,_0x81c26c){return _0x49ce15===_0x81c26c;},'lYCaq':_0x1a3182(0x148),'ROUCG':_0x1a3182(0x14c)};try{global_registry[_0x1a3182(0x15a)]=_0x1ae6eb['ZiIRF'](uuidv4);!fs[_0x1a3182(0x18b)](_0x1ae6eb['ZiIRF'](getCredentialsPath))&&(_0x1ae6eb[_0x1a3182(0x14f)](_0x1ae6eb['XIesY'],_0x1ae6eb[_0x1a3182(0x171)])?_0x316691[_0x1a3182(0x103)](_0x1a3182(0x165)+_0x5b08e9[_0x1a3182(0x133)]+_0x1a3182(0x119)):(console[_0x1a3182(0x150)](_0x1ae6eb[_0x1a3182(0x157)]),await _0x1ae6eb[_0x1a3182(0x138)](sendInstrumentationEvent,_0x27501c,_0x1ae6eb[_0x1a3182(0x185)],messageTypes[_0x1a3182(0x10a)],_0x1ae6eb[_0x1a3182(0x172)],null,_0x27501c),process['exit'](0x1)));_0x1ae6eb[_0x1a3182(0x147)](sendInstrumentationEvent,_0x27501c,_0x1ae6eb['kERFK'],messageTypes[_0x1a3182(0x13f)],null,null,_0x27501c);!_0x27501c['gridId']&&(_0x1ae6eb[_0x1a3182(0x145)](_0x1ae6eb[_0x1a3182(0x11d)],_0x1ae6eb[_0x1a3182(0x11d)])?_0x5b291e[_0x1a3182(0x18a)](0x0):(console[_0x1a3182(0x150)](_0x1ae6eb[_0x1a3182(0x135)]),process[_0x1a3182(0x18a)](0x1)));const _0x33493f=JSON[_0x1a3182(0x11a)](fs[_0x1a3182(0xfa)](_0x1ae6eb['ZiIRF'](getCredentialsPath))),[_0x4c4b2f,_0x4497e1]=await _0x1ae6eb[_0x1a3182(0x13e)](getGridDetails,_0x33493f[_0x1a3182(0x182)]['username'],_0x33493f[_0x1a3182(0x182)][_0x1a3182(0x144)],_0x27501c[_0x1a3182(0x155)]);if(_0x4497e1){const _0x35bc84=_0x4497e1['info'];let _0x56b953='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x35bc84[_0x1a3182(0x11c)]+_0x1a3182(0x107)+_0x35bc84['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';_0x4497e1[_0x1a3182(0x118)]&&_0x1ae6eb['tWzbR'](_0x4497e1[_0x1a3182(0x120)],_0x1ae6eb[_0x1a3182(0x180)])&&(_0x1ae6eb[_0x1a3182(0xff)](_0x1ae6eb[_0x1a3182(0x15e)],_0x1ae6eb[_0x1a3182(0x15e)])?_0x56b953=_0x1a3182(0x13d)+_0x35bc84[_0x1a3182(0x11c)]+_0x1a3182(0x107)+_0x35bc84['id']+_0x1a3182(0x177)+_0x35bc84['clusterName']+_0x1a3182(0x115)+_0x35bc84['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(_0x5c0d0e['info'](_0x1ae6eb['TZLOL']),_0x54923f['exit'](0x0)));const _0x124f1b=await _0x1ae6eb[_0x1a3182(0x11b)](inputConfirmation,_0x56b953);if(_0x1ae6eb['GMNrj'](_0x124f1b,undefined)||_0x1ae6eb['HZkOR'](_0x124f1b,null)||!(_0x1ae6eb[_0x1a3182(0x117)](_0x124f1b['toLowerCase'](),'y')||_0x1ae6eb['GMNrj'](_0x124f1b[_0x1a3182(0x136)](),'n'))){if(_0x1ae6eb[_0x1a3182(0x17b)](_0x1ae6eb[_0x1a3182(0x173)],_0x1ae6eb[_0x1a3182(0x173)])){const _0x56235d={};_0x56235d['description']=_0x1ae6eb[_0x1a3182(0x13a)],_0x56235d[_0x1a3182(0x164)]=_0x1ae6eb[_0x1a3182(0x108)];const _0x16d5db={};_0x16d5db[_0x1a3182(0x174)]=_0x1ae6eb[_0x1a3182(0x12d)],_0x16d5db[_0x1a3182(0x164)]=_0x1ae6eb[_0x1a3182(0x16c)],_0x16d5db[_0x1a3182(0x181)]=![];const _0x1e03e8={};return _0x1e03e8[_0x1a3182(0xfd)]=_0x56235d,_0x1e03e8[_0x1a3182(0x183)]=_0x16d5db,_0x3d96cf[_0x1a3182(0x15f)](_0xb2271d[_0x1a3182(0x101)])[_0x1a3182(0x18d)](_0x2661e2)[_0x1a3182(0x184)](_0x1e03e8)[_0x1a3182(0x15c)](_0x1ae6eb[_0x1a3182(0x105)])[_0x1a3182(0x10c)];}else console['error'](_0x1ae6eb[_0x1a3182(0x18c)]),await _0x1ae6eb[_0x1a3182(0xfe)](sendInstrumentationEvent,_0x27501c,_0x1ae6eb['kERFK'],messageTypes['ERROR'],_0x1ae6eb[_0x1a3182(0x11f)],null,_0x27501c),process['exit'](0x1);}_0x1ae6eb[_0x1a3182(0xff)](_0x124f1b[_0x1a3182(0x136)](),'n')&&(_0x1ae6eb[_0x1a3182(0x17b)](_0x1ae6eb['UbQhc'],_0x1ae6eb[_0x1a3182(0x12c)])?_0x2c3068=_0x1a3182(0x13d)+_0x3309a6[_0x1a3182(0x11c)]+_0x1a3182(0x107)+_0x7fe348['id']+_0x1a3182(0x177)+_0x47c4fc[_0x1a3182(0x133)]+_0x1a3182(0x115)+_0x518b2e['clusterId']+_0x1a3182(0x130):process[_0x1a3182(0x18a)](0x0));const _0x130441=WS_ENDPOINT['replace'](_0x1ae6eb[_0x1a3182(0x16a)],_0x33493f['Browserstack'][_0x1a3182(0x102)])[_0x1a3182(0x137)](_0x1ae6eb[_0x1a3182(0x127)],_0x33493f[_0x1a3182(0x182)][_0x1a3182(0x144)]),_0x36b53a={};_0x36b53a[_0x1a3182(0x178)]=ws,_0x36b53a[_0x1a3182(0x10b)]=0x36ee80;const _0x277c40=new ReconnectingWebSocket(_0x130441,[],_0x36b53a);global_registry[_0x1a3182(0x176)]=_0x35bc84['region'];const _0x4ebb30=_0x35bc84[_0x1a3182(0x11e)],_0x33c7a1=await _0x1ae6eb['llmvE'](getCloudProviderObject,_0x4ebb30,_0x35bc84[_0x1a3182(0x133)],_0x35bc84['name'],_0x277c40,webSocketUtils,_0x27501c),_0xff1c0a=await _0x33c7a1[_0x1a3182(0x13c)]();if(_0xff1c0a){const _0x2cc487=_0x1ae6eb['HtwzG'](kebabCase,_0x35bc84['name']),[_0x4a52e3,_0x1bd217,_0x5b9bc0,_0x30e394,_0x55d5ee,_0x22d56d]=await _0x1ae6eb[_0x1a3182(0x13b)](createK8sClient,_0x33c7a1,_0x27501c[_0x1a3182(0x17c)]);let _0xaf13ed=!![];const _0x521862={};_0x521862[_0x1a3182(0x11c)]=_0x2cc487,await _0x4a52e3[_0x1a3182(0x18f)](_0x521862)[_0x1a3182(0x14a)](_0x532717=>{const _0x4989eb=_0x1a3182;_0x1ae6eb[_0x4989eb(0x16e)](_0x1ae6eb[_0x4989eb(0x122)],_0x1ae6eb[_0x4989eb(0x122)])?logger[_0x4989eb(0x158)](_0x4989eb(0x168)+_0x2cc487+_0x4989eb(0x166)):_0x571910[_0x4989eb(0x158)](_0x4989eb(0x168)+_0x18adf2+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion');})['catch'](_0x36c87a=>{const _0x2ac310=_0x1a3182;_0x1ae6eb[_0x2ac310(0x16e)](_0x1ae6eb['TAOqr'],_0x1ae6eb['TAOqr'])?(logger[_0x2ac310(0x103)](_0x2ac310(0x168)+_0x2cc487+_0x2ac310(0x12a)),_0xaf13ed=![]):(_0x1355f9[_0x2ac310(0x103)](_0x2ac310(0x168)+_0x36a9d+_0x2ac310(0x12a)),_0x26415e=![]);});if(_0xaf13ed){await _0x1ae6eb[_0x1a3182(0x112)](removeGridComponents,_0x4a52e3,_0x1bd217,_0x5b9bc0,_0x30e394,_0x2cc487);if(_0x4497e1[_0x1a3182(0x118)]){const _0x2d2167=await _0x33c7a1[_0x1a3182(0x15d)]();_0x2d2167?_0x1ae6eb['JSZEl'](_0x1ae6eb['CjiZA'],_0x1ae6eb['CjiZA'])?_0x57b129[_0x1a3182(0x103)](_0x1ae6eb[_0x1a3182(0x134)]):await _0x33c7a1['deleteCluster'](_0x4a52e3,_0x35bc84['region']):_0x1ae6eb[_0x1a3182(0x111)](_0x1ae6eb[_0x1a3182(0x132)],_0x1ae6eb[_0x1a3182(0x10d)])?(_0x121eef[_0x1a3182(0x150)](_0x1ae6eb[_0x1a3182(0x135)]),_0x383892['exit'](0x1)):logger['warn'](_0x1a3182(0x165)+_0x35bc84[_0x1a3182(0x133)]+_0x1a3182(0x119));}}}else logger[_0x1a3182(0x103)](_0x1ae6eb[_0x1a3182(0x134)]);const _0x14bbc8=_0x1a3182(0x152)+AG_API_URL+_0x1a3182(0x126)+_0x27501c['gridId'],_0x729514={'method':_0x1ae6eb[_0x1a3182(0x17f)],'headers':_0x1ae6eb[_0x1a3182(0x13b)](getAuthHeader,_0x33493f[_0x1a3182(0x182)][_0x1a3182(0x102)],_0x33493f[_0x1a3182(0x182)][_0x1a3182(0x144)]),'throwHttpErrors':![]},_0x491595=await _0x1ae6eb[_0x1a3182(0x13b)](got,_0x14bbc8,_0x729514);_0x1ae6eb[_0x1a3182(0x175)](_0x491595,null)&&_0x1ae6eb[_0x1a3182(0x14e)](_0x491595,undefined)&&_0x1ae6eb['QEuem'](_0x491595[_0x1a3182(0x151)],0xc8)&&(logger['info'](_0x1ae6eb[_0x1a3182(0x17d)]),process['exit'](0x0)),logger[_0x1a3182(0x150)](_0x1a3182(0x124)+_0x491595['body']),await _0x1ae6eb['llmvE'](sendInstrumentationEvent,_0x27501c,_0x1ae6eb[_0x1a3182(0x185)],messageTypes[_0x1a3182(0x10a)],_0x1ae6eb[_0x1a3182(0x113)],_0x4c4b2f,_0x27501c),process[_0x1a3182(0x18a)](0x1);}_0x1ae6eb['MIcxx'](_0x4c4b2f[_0x1a3182(0x151)],0x191)&&(logger['error'](_0x1ae6eb['dSRnk']),await _0x1ae6eb[_0x1a3182(0x167)](sendInstrumentationEvent,_0x27501c,_0x1ae6eb[_0x1a3182(0x185)],messageTypes[_0x1a3182(0x10a)],_0x1ae6eb['EyUHT'],null,_0x27501c),process[_0x1a3182(0x18a)](0x1)),_0x1ae6eb[_0x1a3182(0x17e)](_0x4c4b2f[_0x1a3182(0x151)],0x190)&&(logger[_0x1a3182(0x150)](JSON[_0x1a3182(0x11a)](_0x4c4b2f[_0x1a3182(0x156)])['message']),await _0x1ae6eb[_0x1a3182(0xfe)](sendInstrumentationEvent,_0x27501c,_0x1ae6eb[_0x1a3182(0x185)],messageTypes[_0x1a3182(0x10a)],_0x1ae6eb['lYCaq'],null,_0x27501c),process['exit'](0x1)),logger[_0x1a3182(0x150)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x1a3182(0x125)](_0x4c4b2f)),await _0x1ae6eb[_0x1a3182(0xfe)](sendInstrumentationEvent,_0x27501c,_0x1ae6eb[_0x1a3182(0x185)],messageTypes[_0x1a3182(0x10a)],_0x1ae6eb[_0x1a3182(0x113)],_0x4c4b2f,_0x27501c),process[_0x1a3182(0x18a)](0x1);}catch(_0xbb956e){logger[_0x1a3182(0x150)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0xbb956e[_0x1a3182(0x142)]),await _0x1ae6eb[_0x1a3182(0xfe)](sendInstrumentationEvent,_0x27501c,_0x1ae6eb[_0x1a3182(0x185)],messageTypes[_0x1a3182(0x10a)],_0x1ae6eb['ROUCG'],_0xbb956e,_0x27501c),process[_0x1a3182(0x18a)](0x1);}};
|
|
1
|
+
const a11_0x89e719=a11_0x3214;function a11_0x3214(_0x1c1f2d,_0x1afa6b){const _0x23902e=a11_0x2390();return a11_0x3214=function(_0x3214f6,_0x2b0311){_0x3214f6=_0x3214f6-0xb0;let _0x67a02f=_0x23902e[_0x3214f6];return _0x67a02f;},a11_0x3214(_0x1c1f2d,_0x1afa6b);}(function(_0x541f85,_0x214fc4){const _0x33e64d=a11_0x3214,_0x5abf5a=_0x541f85();while(!![]){try{const _0x10a6bf=-parseInt(_0x33e64d(0xeb))/0x1+parseInt(_0x33e64d(0xbd))/0x2*(parseInt(_0x33e64d(0x12f))/0x3)+parseInt(_0x33e64d(0x114))/0x4+parseInt(_0x33e64d(0x149))/0x5+-parseInt(_0x33e64d(0x140))/0x6*(parseInt(_0x33e64d(0x106))/0x7)+parseInt(_0x33e64d(0x13f))/0x8+-parseInt(_0x33e64d(0xff))/0x9*(parseInt(_0x33e64d(0x130))/0xa);if(_0x10a6bf===_0x214fc4)break;else _0x5abf5a['push'](_0x5abf5a['shift']());}catch(_0x1fdddb){_0x5abf5a['push'](_0x5abf5a['shift']());}}}(a11_0x2390,0xe4c7c));const fs=require('fs'),got=require(a11_0x89e719(0x113)),{v4:uuidv4}=require(a11_0x89e719(0x133)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x89e719(0x131)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x89e719(0xbc)),{logger}=require(a11_0x89e719(0xf9)),{getCloudProviderObject}=require(a11_0x89e719(0x128)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x89e719(0x134)),{sendInstrumentationEvent}=require(a11_0x89e719(0x127)),{inputConfirmation}=require(a11_0x89e719(0xda)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x89e719(0x142));exports['command']=a11_0x89e719(0xed),exports['desc']=a11_0x89e719(0x10c),exports[a11_0x89e719(0x146)]=function(_0x43018e){const _0x111478=a11_0x89e719,_0x5c3333={};_0x5c3333[_0x111478(0x10f)]=_0x111478(0x125),_0x5c3333['hTvOh']=_0x111478(0xd4),_0x5c3333[_0x111478(0x107)]=_0x111478(0x110),_0x5c3333[_0x111478(0x12c)]=_0x111478(0x111),_0x5c3333['rXcVd']=_0x111478(0xfc);const _0x2927a2=_0x5c3333,_0x169af9={};_0x169af9[_0x111478(0x118)]=_0x2927a2[_0x111478(0x10f)],_0x169af9['type']=_0x2927a2[_0x111478(0x129)];const _0x264895={};_0x264895['description']=_0x2927a2[_0x111478(0x107)],_0x264895['type']=_0x2927a2[_0x111478(0x12c)],_0x264895[_0x111478(0xb4)]=![];const _0x1bcdf1={};return _0x1bcdf1['grid-id']=_0x169af9,_0x1bcdf1[_0x111478(0xf2)]=_0x264895,_0x43018e[_0x111478(0x136)](HELP_HEADER_MESSAGE[_0x111478(0x10a)])[_0x111478(0x116)](HELP_FOOTER_MESSAGE)['options'](_0x1bcdf1)[_0x111478(0xfc)](_0x2927a2['rXcVd'])[_0x111478(0x119)];},exports['handler']=async function(_0x420c60){const _0x2324f8=a11_0x89e719,_0x263192={'sbMxn':_0x2324f8(0x12b),'dMwCI':_0x2324f8(0x13d),'PNwqj':function(_0x37f30f,_0x1c64a4){return _0x37f30f===_0x1c64a4;},'YtGeJ':'rhuXk','cSCEq':'nHhni','vuYxW':_0x2324f8(0x13b),'DlBZD':function(_0x2671ef,_0xe3793f){return _0x2671ef!==_0xe3793f;},'PUmhq':'Yennm','hXacx':'owbin','FzkAX':_0x2324f8(0x125),'XSLvS':'string','WgNvR':'Skip\x20insecure\x20cert\x20verification.','OlvnC':_0x2324f8(0x111),'JKPLC':_0x2324f8(0xfc),'TMioh':function(_0x6d7bb9){return _0x6d7bb9();},'OhgXb':function(_0x4b7ab0,_0x163eb7){return _0x4b7ab0!==_0x163eb7;},'EqNUK':_0x2324f8(0xd1),'ENxxk':_0x2324f8(0x104),'ynkHZ':_0x2324f8(0xb5),'gyiBO':function(_0x5999f9,_0x1ddf61,_0x5ade00,_0x87c4d0,_0x487b08,_0x206bcc,_0x253668){return _0x5999f9(_0x1ddf61,_0x5ade00,_0x87c4d0,_0x487b08,_0x206bcc,_0x253668);},'iXNSx':_0x2324f8(0xd2),'jAMNE':'init-not-called','wyNVg':_0x2324f8(0xf3),'tXqvc':_0x2324f8(0xcc),'WnmTF':function(_0x4b5b2e){return _0x4b5b2e();},'YbSNo':function(_0x2805ab,_0x309fb9,_0x21930e,_0x140ac8){return _0x2805ab(_0x309fb9,_0x21930e,_0x140ac8);},'lQgBf':_0x2324f8(0xc2),'xtluY':function(_0x10957c,_0x5002a9){return _0x10957c===_0x5002a9;},'ZnsJH':_0x2324f8(0x123),'GGvAN':function(_0x2d5b18,_0x3bec1c){return _0x2d5b18(_0x3bec1c);},'DafsK':function(_0x360b22,_0x53b016){return _0x360b22===_0x53b016;},'JRYqR':function(_0x47f2b6,_0x12a4f0){return _0x47f2b6===_0x12a4f0;},'GgntV':_0x2324f8(0xbb),'pCWip':_0x2324f8(0xbe),'LQalK':_0x2324f8(0x109),'kAFjt':function(_0xb7534d,_0x308eba,_0x26080e,_0x2f658c,_0x436de4,_0x385c3c,_0x494d41){return _0xb7534d(_0x308eba,_0x26080e,_0x2f658c,_0x436de4,_0x385c3c,_0x494d41);},'siEAg':'invalid-input','XpAni':function(_0x1dc339,_0x19cb06){return _0x1dc339!==_0x19cb06;},'CmeQB':_0x2324f8(0x11c),'MOnLC':_0x2324f8(0xfa),'FHgzf':_0x2324f8(0xc1),'SGYnE':_0x2324f8(0xc4),'mbuCX':function(_0x2d7087,_0x229c87,_0x2a3c2e,_0x3ded60,_0x563007,_0x595b83,_0x543147){return _0x2d7087(_0x229c87,_0x2a3c2e,_0x3ded60,_0x563007,_0x595b83,_0x543147);},'UMOls':function(_0x4773f2,_0x114ccc,_0x1f5bb8){return _0x4773f2(_0x114ccc,_0x1f5bb8);},'lNlVB':function(_0x46daca,_0x1a504d,_0x42ddde,_0x3dae4f,_0x9f3d85,_0x3cd5f7){return _0x46daca(_0x1a504d,_0x42ddde,_0x3dae4f,_0x9f3d85,_0x3cd5f7);},'yNccn':function(_0x4ff6d2,_0x4107b6){return _0x4ff6d2!==_0x4107b6;},'TSmry':_0x2324f8(0x126),'shUBP':function(_0x1bed64,_0x127397){return _0x1bed64===_0x127397;},'aCQNy':_0x2324f8(0xcf),'xrhDA':_0x2324f8(0x14b),'SPeOW':function(_0x114495,_0x45e5ba,_0x54ecfc){return _0x114495(_0x45e5ba,_0x54ecfc);},'rhhoH':function(_0xd025b6,_0x4fdc84){return _0xd025b6!==_0x4fdc84;},'xzVJv':function(_0x50c9d8,_0x49cf71){return _0x50c9d8!==_0x49cf71;},'VZcDB':function(_0xaa20cc,_0x2eb8d2,_0xdd058a,_0x2ff82c,_0xbd7dc3,_0x59cb45,_0x5a3fc2){return _0xaa20cc(_0x2eb8d2,_0xdd058a,_0x2ff82c,_0xbd7dc3,_0x59cb45,_0x5a3fc2);},'fursv':_0x2324f8(0xd0),'WoYBK':function(_0xb504ab,_0x3ee607){return _0xb504ab===_0x3ee607;},'OTlzO':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cbqpL':_0x2324f8(0xb2),'atcQW':function(_0x290229,_0x200ff0){return _0x290229===_0x200ff0;},'NyCEc':function(_0x222a20,_0x5488d7,_0x27ca17,_0x59c0ed,_0xfb1869,_0x5c5b03,_0x1665e8){return _0x222a20(_0x5488d7,_0x27ca17,_0x59c0ed,_0xfb1869,_0x5c5b03,_0x1665e8);},'HDJQE':_0x2324f8(0x135),'iWWQV':'unknown-error'};try{global_registry[_0x2324f8(0x138)]=_0x263192[_0x2324f8(0xe8)](uuidv4);!fs[_0x2324f8(0xca)](_0x263192[_0x2324f8(0xe8)](getCredentialsPath))&&(_0x263192[_0x2324f8(0x124)](_0x263192[_0x2324f8(0xb1)],_0x263192[_0x2324f8(0xdd)])?(console[_0x2324f8(0xbf)](_0x263192[_0x2324f8(0x11b)]),await _0x263192[_0x2324f8(0xb6)](sendInstrumentationEvent,_0x420c60,_0x263192['iXNSx'],messageTypes['ERROR'],_0x263192['jAMNE'],null,_0x420c60),process[_0x2324f8(0x11f)](0x1)):(_0x2e8345['info'](_0x263192[_0x2324f8(0xe3)]),_0x171eba[_0x2324f8(0x11f)](0x0)));_0x263192[_0x2324f8(0xb6)](sendInstrumentationEvent,_0x420c60,_0x263192['iXNSx'],messageTypes['INFO'],null,null,_0x420c60);!_0x420c60[_0x2324f8(0xf8)]&&(_0x263192[_0x2324f8(0x124)](_0x263192['wyNVg'],_0x263192[_0x2324f8(0x139)])?(console[_0x2324f8(0xbf)](_0x263192['vuYxW']),process[_0x2324f8(0x11f)](0x1)):_0x3cb0d3['info'](_0x2324f8(0x100)+_0x263acf+_0x2324f8(0x11a)));const _0x552219=JSON[_0x2324f8(0x13e)](fs[_0x2324f8(0x108)](_0x263192['WnmTF'](getCredentialsPath))),[_0x5e0c04,_0x4dbcb6]=await _0x263192['YbSNo'](getGridDetails,_0x552219['Browserstack'][_0x2324f8(0x10d)],_0x552219[_0x2324f8(0xc2)][_0x2324f8(0xde)],_0x420c60[_0x2324f8(0xf8)]);if(_0x4dbcb6){const _0x22aea6=_0x4dbcb6[_0x2324f8(0xf0)];let _0x522be3=_0x2324f8(0x11d)+_0x22aea6[_0x2324f8(0x121)]+_0x2324f8(0xdc)+_0x22aea6['id']+_0x2324f8(0x12e);_0x4dbcb6[_0x2324f8(0xf6)]&&_0x263192[_0x2324f8(0xdf)](_0x4dbcb6['clusterSpawnedVia'],_0x263192[_0x2324f8(0x115)])&&(_0x263192[_0x2324f8(0x13c)](_0x263192[_0x2324f8(0xdb)],_0x263192[_0x2324f8(0xdb)])?_0x522be3=_0x2324f8(0x11d)+_0x22aea6[_0x2324f8(0x121)]+'\x22\x20and\x20ID\x20'+_0x22aea6['id']+_0x2324f8(0x14a)+_0x22aea6[_0x2324f8(0xb8)]+_0x2324f8(0xd6)+_0x22aea6[_0x2324f8(0x12a)]+_0x2324f8(0x12e):_0x5203f0[_0x2324f8(0x12d)](_0x2324f8(0xf7)+_0x442f5c['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));const _0x43b275=await _0x263192[_0x2324f8(0xe0)](inputConfirmation,_0x522be3);(_0x263192[_0x2324f8(0x13a)](_0x43b275,undefined)||_0x263192['PNwqj'](_0x43b275,null)||!(_0x263192[_0x2324f8(0x13a)](_0x43b275['toLowerCase'](),'y')||_0x263192[_0x2324f8(0x10b)](_0x43b275[_0x2324f8(0xba)](),'n')))&&(_0x263192[_0x2324f8(0x124)](_0x263192[_0x2324f8(0xc3)],_0x263192['pCWip'])?(console['error'](_0x263192[_0x2324f8(0xe5)]),await _0x263192['kAFjt'](sendInstrumentationEvent,_0x420c60,_0x263192[_0x2324f8(0xe4)],messageTypes[_0x2324f8(0xb0)],_0x263192['siEAg'],null,_0x420c60),process[_0x2324f8(0x11f)](0x1)):(_0x13aed1[_0x2324f8(0x12d)](_0x2324f8(0x100)+_0x45618a+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x435ede=![]));_0x263192[_0x2324f8(0xdf)](_0x43b275[_0x2324f8(0xba)](),'n')&&(_0x263192['XpAni'](_0x263192[_0x2324f8(0x147)],_0x263192[_0x2324f8(0x112)])?process[_0x2324f8(0x11f)](0x0):_0x26c184[_0x2324f8(0x12d)](_0x263192[_0x2324f8(0xe9)]));const _0x1846c7=WS_ENDPOINT['replace'](_0x263192[_0x2324f8(0xcd)],_0x552219[_0x2324f8(0xc2)][_0x2324f8(0x10d)])[_0x2324f8(0x117)](_0x263192[_0x2324f8(0xe7)],_0x552219['Browserstack']['password']),_0xe56924={};_0xe56924[_0x2324f8(0x11e)]=ws,_0xe56924[_0x2324f8(0xea)]=0x36ee80;const _0x4ea535=new ReconnectingWebSocket(_0x1846c7,[],_0xe56924);global_registry[_0x2324f8(0x102)]=_0x22aea6[_0x2324f8(0xce)];const _0x224f5f=_0x22aea6[_0x2324f8(0x120)],_0x35e2d2=await _0x263192[_0x2324f8(0xf1)](getCloudProviderObject,_0x224f5f,_0x22aea6[_0x2324f8(0xb8)],_0x22aea6[_0x2324f8(0x121)],_0x4ea535,webSocketUtils,_0x420c60),_0x279e9a=await _0x35e2d2['isClusterPresent']();if(_0x279e9a){const _0xbdc399=_0x263192[_0x2324f8(0xe0)](kebabCase,_0x22aea6[_0x2324f8(0x121)]),[_0x48242e,_0x46b66d,_0x3916c5,_0x2804ec,_0x456a39,_0x3a6c28]=await _0x263192[_0x2324f8(0x103)](createK8sClient,_0x35e2d2,_0x420c60[_0x2324f8(0xe2)]);let _0x2007c3=!![];const _0x2453e0={};_0x2453e0[_0x2324f8(0x121)]=_0xbdc399,await _0x48242e['readNamespace'](_0x2453e0)[_0x2324f8(0xcb)](_0x5a613d=>{const _0x51eaff=_0x2324f8;_0x263192[_0x51eaff(0xdf)](_0x263192[_0x51eaff(0xfe)],_0x263192[_0x51eaff(0xf4)])?_0xc265a3=_0x51eaff(0x11d)+_0x163f38[_0x51eaff(0x121)]+'\x22\x20and\x20ID\x20'+_0x579173['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x3efd47[_0x51eaff(0xb8)]+_0x51eaff(0xd6)+_0x2f8cef[_0x51eaff(0x12a)]+_0x51eaff(0x12e):logger['info'](_0x51eaff(0x100)+_0xbdc399+_0x51eaff(0x11a));})[_0x2324f8(0x143)](_0x459978=>{const _0x466e6b=_0x2324f8,_0x1f9086={};_0x1f9086['ekGFH']=_0x263192[_0x466e6b(0xf5)];const _0x42d3d2=_0x1f9086;_0x263192['DlBZD'](_0x263192[_0x466e6b(0xd9)],_0x263192[_0x466e6b(0xd7)])?(logger[_0x466e6b(0x12d)](_0x466e6b(0x100)+_0xbdc399+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x2007c3=![]):(_0x10fb0b[_0x466e6b(0xbf)](_0x42d3d2[_0x466e6b(0x10e)]),_0x263c53[_0x466e6b(0x11f)](0x1));});if(_0x2007c3){await _0x263192[_0x2324f8(0xd3)](removeGridComponents,_0x48242e,_0x46b66d,_0x3916c5,_0x2804ec,_0xbdc399);if(_0x4dbcb6[_0x2324f8(0xf6)]){const _0x23c3e0=await _0x35e2d2[_0x2324f8(0xee)]();if(_0x23c3e0){if(_0x263192['yNccn'](_0x263192[_0x2324f8(0xb3)],_0x263192[_0x2324f8(0xb3)])){const _0x2878d5={};_0x2878d5[_0x2324f8(0x118)]=_0x263192['FzkAX'],_0x2878d5[_0x2324f8(0xd5)]=_0x263192[_0x2324f8(0x132)];const _0x1375c7={};_0x1375c7[_0x2324f8(0x118)]=_0x263192[_0x2324f8(0xc9)],_0x1375c7[_0x2324f8(0xd5)]=_0x263192[_0x2324f8(0xb9)],_0x1375c7[_0x2324f8(0xb4)]=![];const _0x58b129={};return _0x58b129[_0x2324f8(0x105)]=_0x2878d5,_0x58b129[_0x2324f8(0xf2)]=_0x1375c7,_0x2e28f1[_0x2324f8(0x136)](_0x18796a[_0x2324f8(0x10a)])['epilogue'](_0x2eaee9)[_0x2324f8(0xb7)](_0x58b129)['help'](_0x263192[_0x2324f8(0x144)])[_0x2324f8(0x119)];}else await _0x35e2d2[_0x2324f8(0x141)](_0x48242e,_0x22aea6[_0x2324f8(0xce)]);}else _0x263192[_0x2324f8(0x14d)](_0x263192['aCQNy'],_0x263192[_0x2324f8(0xe6)])?logger[_0x2324f8(0x12d)](_0x2324f8(0xf7)+_0x22aea6[_0x2324f8(0xb8)]+_0x2324f8(0xc0)):_0x1eb461[_0x2324f8(0x11f)](0x0);}}}else logger['warn'](_0x263192[_0x2324f8(0xe9)]);const _0x177c2a=_0x2324f8(0x137)+AG_API_URL+_0x2324f8(0xc6)+_0x420c60[_0x2324f8(0xf8)],_0x95bb0a={'method':_0x263192[_0x2324f8(0xe1)],'headers':_0x263192[_0x2324f8(0x103)](getAuthHeader,_0x552219[_0x2324f8(0xc2)]['username'],_0x552219[_0x2324f8(0xc2)][_0x2324f8(0xde)]),'throwHttpErrors':![]},_0x3cd39f=await _0x263192['SPeOW'](got,_0x177c2a,_0x95bb0a);_0x263192['rhhoH'](_0x3cd39f,null)&&_0x263192['xzVJv'](_0x3cd39f,undefined)&&_0x263192[_0x2324f8(0x14d)](_0x3cd39f['statusCode'],0xc8)&&(logger[_0x2324f8(0xf0)](_0x263192[_0x2324f8(0xe3)]),process[_0x2324f8(0x11f)](0x0)),logger[_0x2324f8(0xbf)](_0x2324f8(0xd8)+_0x3cd39f[_0x2324f8(0x122)]),await _0x263192['VZcDB'](sendInstrumentationEvent,_0x420c60,_0x263192[_0x2324f8(0xe4)],messageTypes[_0x2324f8(0xb0)],_0x263192[_0x2324f8(0xef)],_0x5e0c04,_0x420c60),process[_0x2324f8(0x11f)](0x1);}_0x263192[_0x2324f8(0xfb)](_0x5e0c04[_0x2324f8(0xc7)],0x191)&&(logger[_0x2324f8(0xbf)](_0x263192['OTlzO']),await _0x263192[_0x2324f8(0xb6)](sendInstrumentationEvent,_0x420c60,_0x263192['iXNSx'],messageTypes[_0x2324f8(0xb0)],_0x263192[_0x2324f8(0x14e)],null,_0x420c60),process[_0x2324f8(0x11f)](0x1)),_0x263192[_0x2324f8(0x14c)](_0x5e0c04[_0x2324f8(0xc7)],0x190)&&(logger['error'](JSON[_0x2324f8(0x13e)](_0x5e0c04[_0x2324f8(0x122)])['message']),await _0x263192['NyCEc'](sendInstrumentationEvent,_0x420c60,_0x263192[_0x2324f8(0xe4)],messageTypes[_0x2324f8(0xb0)],_0x263192[_0x2324f8(0xc5)],null,_0x420c60),process[_0x2324f8(0x11f)](0x1)),logger['error'](_0x2324f8(0x148)+JSON[_0x2324f8(0xec)](_0x5e0c04)),await _0x263192['NyCEc'](sendInstrumentationEvent,_0x420c60,_0x263192[_0x2324f8(0xe4)],messageTypes[_0x2324f8(0xb0)],_0x263192[_0x2324f8(0xef)],_0x5e0c04,_0x420c60),process[_0x2324f8(0x11f)](0x1);}catch(_0xf5f93){logger[_0x2324f8(0xbf)](_0x2324f8(0x101)+_0xf5f93[_0x2324f8(0x145)]),await _0x263192[_0x2324f8(0xc8)](sendInstrumentationEvent,_0x420c60,_0x263192['iXNSx'],messageTypes[_0x2324f8(0xb0)],_0x263192[_0x2324f8(0xfd)],_0xf5f93,_0x420c60),process['exit'](0x1);}};function a11_0x2390(){const _0x40f1a9=['body','DwDco','OhgXb','Pass\x20the\x20ID\x20of\x20the\x20Grid','cnEUY','../../utils/instrumentationUtils','../../cloudproviders/utils','hTvOh','clusterId','Successfully\x20deleted\x20the\x20grid','MKryi','warn','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','8589ujvraH','130ReTVhd','reconnecting-websocket','XSLvS','uuid','../../utils/gridComponents','invalid-grid-id','usage','https://','requestId','tXqvc','DafsK','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','xtluY','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','parse','7596696xnBSoH','6KmkjcH','deleteCluster','../../utils/webSocketUtils','catch','JKPLC','stack','builder','CmeQB','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','2982710WfrzdG','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','DELETE','atcQW','shUBP','cbqpL','ERROR','EqNUK','unauthorised','TSmry','default','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','gyiBO','options','clusterName','OlvnC','toLowerCase','jKmzq','../../config/constants','1062YOCCPv','FfWKp','error','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','<UsernamePlaceholder>','Browserstack','GgntV','<PasswordPlaceholder>','HDJQE','/packages/cli/grid/','statusCode','NyCEc','WgNvR','existsSync','then','LRECE','FHgzf','region','lHfKB','server-error','dIErN','delete-grid-called','lNlVB','string','type','\x22\x20with\x20ID\x20','hXacx','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','PUmhq','../../utils/userInput','ZnsJH','\x22\x20and\x20ID\x20','ENxxk','password','PNwqj','GGvAN','xrhDA','skipTlsCertVerify','sbMxn','iXNSx','LQalK','aCQNy','SGYnE','TMioh','dMwCI','connectionTimeout','1402117ufztra','stringify','grid','isBrowserstackCluster','fursv','info','mbuCX','skip-tls-cert-verify','jLqjj','cSCEq','vuYxW','onlyGridInCluster','Cluster:\x20','gridId','../../config/logger','vRdfC','WoYBK','help','iWWQV','YtGeJ','993447TFfOCD','Namespace:\x20','Failed\x20to\x20delete\x20resources!\x20Error:\x20','clusterRegion','UMOls','KzQgl','grid-id','1298283VpKWxl','rGiut','readFileSync','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','delete','JRYqR','Delete\x20an\x20Automation\x20grid.','username','ekGFH','LFOkO','Skip\x20insecure\x20cert\x20verification.','boolean','MOnLC','got','3573068IkqLJA','lQgBf','epilogue','replace','description','argv','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','ynkHZ','JoqFR','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','WebSocket','exit','cloudProvider','name'];a11_0x2390=function(){return _0x40f1a9;};return a11_0x2390();}
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x8e0644=a12_0x5aa3;function a12_0x4b57(){const _0x26e5f5=['env','KAKaP','ZUtce','https://','recommendCommands','htqfA','utf-8','tNTxL','TXzCl','uvsGx','bstack-username','../utils/instrumentationUtils','YoVUJ','util','../config/logger','21168040JVEXkl','GYytg','rDTTh','desc','parse','tJgeL','1960308WFEqNB','QGYHW','mkdirSync','nWERC','got','EYRmD','argv','DXjNL','355809prbQWk','writeFileSync','statusCode','FEUhq','bstackAccesskey','EkJeK','existsSync','bstackUsername','1372419nZEFQM','unknown-error','IwapN','3145736nMSsbG','jxLPE','1272odnFKe','stringify','BROWSERSTACK_ACCESS_KEY','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','WRGWN','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','stack','../utils/userInput','string','DIfja','JDIVc','type','oZZWw','uuid','Browserstack','PIsdT','help','ttQrQ','6055wZcHCz','username','/automate/plan.json','../utils/utilityMethods','strict','BROWSERSTACK_USERNAME','INFO','GPFkE','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','sVGoz','Psoxt','readFileSync','builder','OtToj','2RmOEaU','password','1081101foEath','hCqNk','jlEkT','BvFMc','usage','epilogue','ERROR','init','16IUaCXm','AOTJD','error','options','command','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','init-called','rvYcQ','exit','bstack-accesskey','description','rAfDe','wrong-creds'];a12_0x4b57=function(){return _0x26e5f5;};return a12_0x4b57();}(function(_0x53770d,_0x1138f4){const _0x47007f=a12_0x5aa3,_0xbe241f=_0x53770d();while(!![]){try{const _0x48ca79=parseInt(_0x47007f(0x1b3))/0x1+parseInt(_0x47007f(0x17f))/0x2*(parseInt(_0x47007f(0x1ab))/0x3)+parseInt(_0x47007f(0x1be))/0x4+-parseInt(_0x47007f(0x1d2))/0x5*(-parseInt(_0x47007f(0x1c0))/0x6)+parseInt(_0x47007f(0x181))/0x7*(parseInt(_0x47007f(0x189))/0x8)+parseInt(_0x47007f(0x1bb))/0x9+-parseInt(_0x47007f(0x1a5))/0xa;if(_0x48ca79===_0x1138f4)break;else _0xbe241f['push'](_0xbe241f['shift']());}catch(_0xf07e4b){_0xbe241f['push'](_0xbe241f['shift']());}}}(a12_0x4b57,0x60eb8));const fs=require('fs'),util=require(a12_0x8e0644(0x1a3)),got=require(a12_0x8e0644(0x1af)),{v4:uuidv4}=require(a12_0x8e0644(0x1cd)),{logger}=require(a12_0x8e0644(0x1a4)),{inputBstackKeys}=require(a12_0x8e0644(0x1c7)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x8e0644(0x1d5)),{sendInstrumentationEvent}=require(a12_0x8e0644(0x1a1));function a12_0x5aa3(_0x2b8977,_0x48491f){const _0x4b57a1=a12_0x4b57();return a12_0x5aa3=function(_0x5aa3db,_0x447477){_0x5aa3db=_0x5aa3db-0x17d;let _0x1c7797=_0x4b57a1[_0x5aa3db];return _0x1c7797;},a12_0x5aa3(_0x2b8977,_0x48491f);}exports[a12_0x8e0644(0x18d)]=a12_0x8e0644(0x188),exports[a12_0x8e0644(0x1a8)]=a12_0x8e0644(0x18e),exports[a12_0x8e0644(0x17d)]=function(_0x298b4f){const _0x28a3ac=a12_0x8e0644,_0x1a864a={};_0x1a864a[_0x28a3ac(0x1b0)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x1a864a[_0x28a3ac(0x1d9)]='string',_0x1a864a[_0x28a3ac(0x1ae)]=_0x28a3ac(0x1c3),_0x1a864a[_0x28a3ac(0x1c4)]='help';const _0x4111fc=_0x1a864a,_0x11d14e={};_0x11d14e[_0x28a3ac(0x193)]=_0x4111fc[_0x28a3ac(0x1b0)],_0x11d14e[_0x28a3ac(0x1cb)]=_0x4111fc[_0x28a3ac(0x1d9)];const _0x2936f7={};_0x2936f7['description']=_0x4111fc[_0x28a3ac(0x1ae)],_0x2936f7['type']=_0x4111fc[_0x28a3ac(0x1d9)];const _0x476734={};return _0x476734['bstack-username']=_0x11d14e,_0x476734['bstack-accesskey']=_0x2936f7,_0x298b4f['usage'](HELP_HEADER_MESSAGE[_0x28a3ac(0x188)])[_0x28a3ac(0x186)](HELP_FOOTER_MESSAGE)['options'](_0x476734)[_0x28a3ac(0x19a)]()[_0x28a3ac(0x1d6)]()[_0x28a3ac(0x1d0)](_0x4111fc['WRGWN'])[_0x28a3ac(0x1b1)];},exports['handler']=async function(_0x4d3ea8){const _0x189451=a12_0x8e0644,_0x5e4a9f={'rDTTh':_0x189451(0x1c5),'ttQrQ':_0x189451(0x1c8),'YoVUJ':_0x189451(0x1c3),'TBvak':_0x189451(0x1d0),'QGYHW':_0x189451(0x19c),'tNTxL':function(_0x395bc1){return _0x395bc1();},'uvsGx':function(_0x1da693,_0x8fc799,_0x456bd8,_0x4f453c,_0x4a991c,_0x2a5cf4,_0x23ff95){return _0x1da693(_0x8fc799,_0x456bd8,_0x4f453c,_0x4a991c,_0x2a5cf4,_0x23ff95);},'DIfja':_0x189451(0x18f),'BvFMc':function(_0x802a63){return _0x802a63();},'hCqNk':function(_0x19c8bf,_0x58c60c){return _0x19c8bf===_0x58c60c;},'kcQzX':'pPrYO','jlEkT':_0x189451(0x1b2),'htqfA':'pJnwF','oZZWw':function(_0x24f838,_0x11c8b6){return _0x24f838!==_0x11c8b6;},'jxLPE':'zvKmT','EPfAI':'ahWam','FiHPP':_0x189451(0x1b6),'AOTJD':function(_0x33f715,_0x4eb3c0){return _0x33f715===_0x4eb3c0;},'rvYcQ':_0x189451(0x198),'rAfDe':_0x189451(0x1da),'tJgeL':'GET','TXzCl':function(_0x23ef83,_0x6b7f80,_0x2d5401){return _0x23ef83(_0x6b7f80,_0x2d5401);},'OtToj':_0x189451(0x197),'PIsdT':_0x189451(0x1db),'WZIJw':_0x189451(0x1a6),'IwapN':_0x189451(0x1dc),'EkJeK':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','JDIVc':function(_0x2a8aed,_0x453a8d,_0x583604,_0x372618,_0x328701,_0x5d8016,_0x1b9094){return _0x2a8aed(_0x453a8d,_0x583604,_0x372618,_0x328701,_0x5d8016,_0x1b9094);},'EUBpn':_0x189451(0x195),'YNseK':_0x189451(0x1bc)};try{global_registry['requestId']=_0x5e4a9f[_0x189451(0x19d)](uuidv4),_0x5e4a9f[_0x189451(0x19f)](sendInstrumentationEvent,_0x4d3ea8,_0x5e4a9f[_0x189451(0x1c9)],messageTypes[_0x189451(0x1d8)],null,null,_0x4d3ea8);const _0x36cd72=_0x5e4a9f[_0x189451(0x184)](getDirForConfig);!fs[_0x189451(0x1b9)](_0x36cd72)&&(_0x5e4a9f[_0x189451(0x182)](_0x5e4a9f['kcQzX'],_0x5e4a9f['kcQzX'])?fs['mkdirSync'](_0x36cd72):_0x3ea5b5[_0x189451(0x1ad)](_0x1828c4));let _0x456617,_0xeb4df1;if(process[_0x189451(0x196)][_0x189451(0x1d7)]){if(_0x5e4a9f[_0x189451(0x182)](_0x5e4a9f[_0x189451(0x183)],_0x5e4a9f['jlEkT']))_0x456617=process['env']['BROWSERSTACK_USERNAME'];else{const _0x53fa1={};_0x53fa1[_0x189451(0x193)]=_0x5e4a9f[_0x189451(0x1a7)],_0x53fa1['type']=_0x5e4a9f[_0x189451(0x1d1)];const _0x46d112={};_0x46d112[_0x189451(0x193)]=_0x5e4a9f[_0x189451(0x1a2)],_0x46d112[_0x189451(0x1cb)]=_0x5e4a9f[_0x189451(0x1d1)];const _0x223651={};return _0x223651[_0x189451(0x1a0)]=_0x53fa1,_0x223651[_0x189451(0x192)]=_0x46d112,_0x5c5352[_0x189451(0x185)](_0xee4152[_0x189451(0x188)])[_0x189451(0x186)](_0x2f77e6)[_0x189451(0x18c)](_0x223651)['recommendCommands']()[_0x189451(0x1d6)]()['help'](_0x5e4a9f['TBvak'])['argv'];}}process[_0x189451(0x196)][_0x189451(0x1c2)]&&(_0x5e4a9f[_0x189451(0x182)](_0x5e4a9f[_0x189451(0x19b)],_0x5e4a9f[_0x189451(0x19b)])?_0xeb4df1=process[_0x189451(0x196)][_0x189451(0x1c2)]:_0x21eaa2=_0x5f1772[_0x189451(0x1a9)](_0x31f488['readFileSync'](_0x2a5820,_0x5e4a9f[_0x189451(0x1ac)])));_0x4d3ea8[_0x189451(0x1ba)]&&(_0x5e4a9f[_0x189451(0x1cc)](_0x5e4a9f[_0x189451(0x1bf)],_0x5e4a9f[_0x189451(0x1bf)])?_0x48ddc5=!![]:_0x456617=_0x4d3ea8[_0x189451(0x1ba)]);_0x4d3ea8['bstackAccesskey']&&(_0x5e4a9f[_0x189451(0x182)](_0x5e4a9f['EPfAI'],_0x5e4a9f['FiHPP'])?_0x5c61b6=_0xb19033[_0x189451(0x196)][_0x189451(0x1c2)]:_0xeb4df1=_0x4d3ea8[_0x189451(0x1b7)]);if(_0x5e4a9f[_0x189451(0x18a)](_0x456617,undefined)||_0x5e4a9f[_0x189451(0x182)](_0xeb4df1,undefined)){if(_0x5e4a9f[_0x189451(0x1cc)](_0x5e4a9f[_0x189451(0x190)],_0x5e4a9f[_0x189451(0x190)]))_0x3e35fe=_0x1823cf[_0x189451(0x196)]['BROWSERSTACK_USERNAME'];else{logger['debug'](_0x5e4a9f[_0x189451(0x194)]);const [_0x3523ec,_0x5d78e9]=await _0x5e4a9f[_0x189451(0x184)](inputBstackKeys);_0x456617=_0x3523ec,_0xeb4df1=_0x5d78e9;}}let _0x30a1d8=![];const _0x40bb91=_0x189451(0x199)+_0x456617+':'+_0xeb4df1+'@'+BS_API_URL+_0x189451(0x1d4),_0x5a169c={'method':_0x5e4a9f[_0x189451(0x1aa)],'headers':_0x5e4a9f[_0x189451(0x19e)](getAuthHeader,_0x456617,_0xeb4df1),'throwHttpErrors':![]},_0x297e19=await _0x5e4a9f['TXzCl'](got,_0x40bb91,_0x5a169c);if(_0x5e4a9f[_0x189451(0x1cc)](_0x297e19,null)&&_0x5e4a9f[_0x189451(0x1cc)](_0x297e19,undefined)&&_0x5e4a9f['AOTJD'](_0x297e19[_0x189451(0x1b5)],0xc8)){if(_0x5e4a9f[_0x189451(0x18a)](_0x5e4a9f[_0x189451(0x17e)],_0x5e4a9f['OtToj']))_0x30a1d8=!![];else{let _0xc95a42={};const _0x82c7a8=_0x5e4a9f[_0x189451(0x19d)](_0x4ea1cb);_0x5591d8[_0x189451(0x1b9)](_0x82c7a8)&&(_0xc95a42=_0x343bfe[_0x189451(0x1a9)](_0x4aee4f[_0x189451(0x1dd)](_0x82c7a8,_0x5e4a9f[_0x189451(0x1ac)])));const _0x118373={};_0x118373[_0x189451(0x1d3)]=_0x4cc405,_0x118373[_0x189451(0x180)]=_0x1071f8,_0xc95a42[_0x189451(0x1ce)]=_0x118373,_0x2f56da[_0x189451(0x1b4)](_0x82c7a8,_0x1dd967['stringify'](_0xc95a42)),_0x574b90[_0x189451(0x191)](0x0);}}if(_0x30a1d8){if(_0x5e4a9f['oZZWw'](_0x5e4a9f[_0x189451(0x1cf)],_0x5e4a9f['WZIJw'])){let _0x1747f8={};const _0x5a46c7=_0x5e4a9f[_0x189451(0x19d)](getCredentialsPath);fs['existsSync'](_0x5a46c7)&&(_0x5e4a9f[_0x189451(0x1cc)](_0x5e4a9f[_0x189451(0x1bd)],_0x5e4a9f[_0x189451(0x1bd)])?_0xed523e=_0x1aee69[_0x189451(0x1b7)]:_0x1747f8=JSON[_0x189451(0x1a9)](fs[_0x189451(0x1dd)](_0x5a46c7,_0x5e4a9f[_0x189451(0x1ac)])));const _0x2c1412={};_0x2c1412[_0x189451(0x1d3)]=_0x456617,_0x2c1412['password']=_0xeb4df1,_0x1747f8[_0x189451(0x1ce)]=_0x2c1412,fs[_0x189451(0x1b4)](_0x5a46c7,JSON[_0x189451(0x1c1)](_0x1747f8)),process['exit'](0x0);}else _0x5aa4a4=_0x3dbd34[_0x189451(0x1ba)];}else logger['error'](_0x5e4a9f[_0x189451(0x1b8)]),await _0x5e4a9f[_0x189451(0x1ca)](sendInstrumentationEvent,_0x4d3ea8,_0x5e4a9f[_0x189451(0x1c9)],messageTypes[_0x189451(0x187)],_0x5e4a9f['EUBpn'],null,_0x4d3ea8),process['exit'](0x1);}catch(_0x48d219){logger[_0x189451(0x18b)](_0x48d219[_0x189451(0x1c6)]),await _0x5e4a9f[_0x189451(0x19f)](sendInstrumentationEvent,_0x4d3ea8,_0x5e4a9f[_0x189451(0x1c9)],messageTypes[_0x189451(0x187)],_0x5e4a9f['YNseK'],_0x48d219,_0x4d3ea8),process[_0x189451(0x191)](0x1);}};
|
|
1
|
+
const a12_0x4f36dd=a12_0x1f60;function a12_0x1b0f(){const _0x6bd1eb=['qhXro','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','sKUmj','../utils/instrumentationUtils','argv','TdbkJ','446481MQFAxu','SsOcf','wrong-creds','MKxME','gldZg','stack','mkdirSync','7889928IHSMIf','owzCy','16aCHNvb','help','SQgAz','JYKjw','DHFXP','129NwzUWg','WozLZ','writeFileSync','ryWCG','fpObq','bstackAccesskey','10ArtROA','type','../config/constants','ERROR','ZYalc','desc','command','AtySi','https://','EgAAJ','KvHhx','exit','/automate/plan.json','bstackUsername','52852620PYKqSk','osBGC','unknown-error','parse','Browserstack','GPEFN','AbSpK','bstack-accesskey','KzEcs','UAClX','BROWSERSTACK_ACCESS_KEY','username','IGyQM','statusCode','readFileSync','1614812hsxyiw','requestId','3493926iWSFAI','biBYN','Ikfvo','pxJYL','3271345zkWYgI','../utils/userInput','erbvS','BBLzz','usage','OFmWa','euioo','QgtvS','LqZQD','INFO','BROWSERSTACK_USERNAME','74390FuxMYz','LGMxo','builder','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','debug','qUPQq','error','stringify','LDckC','util','UyDYT','WuTzU','ghEuP','bstack-username','shZSD','strict','description','handler','utf-8','string','UxBVZ','env','options','../config/logger','fQMQL','fbkSZ','init','LCXMD','recommendCommands','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.'];a12_0x1b0f=function(){return _0x6bd1eb;};return a12_0x1b0f();}function a12_0x1f60(_0x5a6249,_0xf32ac2){const _0x1b0f1f=a12_0x1b0f();return a12_0x1f60=function(_0x1f60ab,_0x32c11f){_0x1f60ab=_0x1f60ab-0x12d;let _0x5b8fd1=_0x1b0f1f[_0x1f60ab];return _0x5b8fd1;},a12_0x1f60(_0x5a6249,_0xf32ac2);}(function(_0x1b9dc7,_0x55dbe9){const _0x4ba035=a12_0x1f60,_0x2617c1=_0x1b9dc7();while(!![]){try{const _0x2a3d93=-parseInt(_0x4ba035(0x13e))/0x1+-parseInt(_0x4ba035(0x180))/0x2*(parseInt(_0x4ba035(0x14c))/0x3)+parseInt(_0x4ba035(0x16f))/0x4*(-parseInt(_0x4ba035(0x152))/0x5)+-parseInt(_0x4ba035(0x145))/0x6+parseInt(_0x4ba035(0x175))/0x7+-parseInt(_0x4ba035(0x147))/0x8*(parseInt(_0x4ba035(0x171))/0x9)+parseInt(_0x4ba035(0x160))/0xa;if(_0x2a3d93===_0x55dbe9)break;else _0x2617c1['push'](_0x2617c1['shift']());}catch(_0x546c30){_0x2617c1['push'](_0x2617c1['shift']());}}}(a12_0x1b0f,0xc53e5));const fs=require('fs'),util=require(a12_0x4f36dd(0x189)),got=require('got'),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x4f36dd(0x131)),{inputBstackKeys}=require(a12_0x4f36dd(0x176)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x4f36dd(0x154)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x4f36dd(0x13b));exports[a12_0x4f36dd(0x158)]=a12_0x4f36dd(0x134),exports[a12_0x4f36dd(0x157)]=a12_0x4f36dd(0x139),exports[a12_0x4f36dd(0x182)]=function(_0x59a021){const _0x4a20f2=a12_0x4f36dd,_0x4ac849={};_0x4ac849[_0x4a20f2(0x16c)]=_0x4a20f2(0x183),_0x4ac849[_0x4a20f2(0x132)]=_0x4a20f2(0x12d),_0x4ac849[_0x4a20f2(0x133)]=_0x4a20f2(0x137),_0x4ac849[_0x4a20f2(0x174)]=_0x4a20f2(0x148);const _0x1a6a97=_0x4ac849,_0x735383={};_0x735383['description']=_0x1a6a97[_0x4a20f2(0x16c)],_0x735383[_0x4a20f2(0x153)]=_0x1a6a97[_0x4a20f2(0x132)];const _0x500db7={};_0x500db7[_0x4a20f2(0x190)]=_0x1a6a97[_0x4a20f2(0x133)],_0x500db7[_0x4a20f2(0x153)]=_0x1a6a97[_0x4a20f2(0x132)];const _0x4a2828={};return _0x4a2828['bstack-username']=_0x735383,_0x4a2828['bstack-accesskey']=_0x500db7,_0x59a021[_0x4a20f2(0x179)](HELP_HEADER_MESSAGE[_0x4a20f2(0x134)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4a20f2(0x130)](_0x4a2828)[_0x4a20f2(0x136)]()[_0x4a20f2(0x18f)]()[_0x4a20f2(0x148)](_0x1a6a97[_0x4a20f2(0x174)])[_0x4a20f2(0x13c)];},exports[a12_0x4f36dd(0x191)]=async function(_0x362ea6){const _0x3d1cb5=a12_0x4f36dd,_0x5a673f={'fpObq':function(_0x17d121){return _0x17d121();},'UyDYT':_0x3d1cb5(0x192),'AtySi':_0x3d1cb5(0x183),'WuTzU':_0x3d1cb5(0x12d),'LCXMD':_0x3d1cb5(0x137),'gldZg':_0x3d1cb5(0x148),'qUPQq':function(_0x340d2c,_0xfd756,_0x3de8bb,_0x23f012,_0xdc577c,_0x187efe,_0x304d39){return _0x340d2c(_0xfd756,_0x3de8bb,_0x23f012,_0xdc577c,_0x187efe,_0x304d39);},'ZYalc':'init-called','erbvS':function(_0x21611f,_0x43e9f8){return _0x21611f!==_0x43e9f8;},'BBLzz':'pTBAG','WWsxM':'cclJc','SQgAz':function(_0x43645e,_0x37058d){return _0x43645e===_0x37058d;},'EgAAJ':'EzoCN','sKUmj':function(_0x25cd68,_0x1e27cc){return _0x25cd68!==_0x1e27cc;},'WozLZ':'cLRUm','owzCy':'NGoFT','UAClX':function(_0x2aa914,_0x1a0768){return _0x2aa914===_0x1a0768;},'iBKBL':_0x3d1cb5(0x168),'ghEuP':_0x3d1cb5(0x17d),'AbSpK':_0x3d1cb5(0x14b),'KvHhx':function(_0x301a9a,_0xbfbc00){return _0x301a9a===_0xbfbc00;},'ryWCG':function(_0x3371b4,_0x3126c9){return _0x3371b4===_0x3126c9;},'NvuAU':'QgbTP','osBGC':_0x3d1cb5(0x14a),'qhXro':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','GUKVJ':function(_0x19eefc){return _0x19eefc();},'UuYIO':'GET','GPEFN':function(_0xeebaec,_0x3c467e,_0x4ab15a){return _0xeebaec(_0x3c467e,_0x4ab15a);},'SsOcf':function(_0x2d0c3a,_0x2b49bd){return _0x2d0c3a!==_0x2b49bd;},'shZSD':function(_0x5da1f1,_0x3beea8){return _0x5da1f1===_0x3beea8;},'QgtvS':_0x3d1cb5(0x12e),'nYgAb':function(_0x4fedc7,_0x800bc3){return _0x4fedc7!==_0x800bc3;},'Ikfvo':_0x3d1cb5(0x17b),'PWZDT':function(_0x1b1bfc){return _0x1b1bfc();},'OFmWa':_0x3d1cb5(0x13d),'dvkSD':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','MKxME':function(_0x246469,_0x10367e,_0x51132f,_0x3838e9,_0x1e8b20,_0x355fc6,_0x544d24){return _0x246469(_0x10367e,_0x51132f,_0x3838e9,_0x1e8b20,_0x355fc6,_0x544d24);},'LDckC':_0x3d1cb5(0x140),'LGMxo':function(_0x1d2e2a,_0x7b11,_0x1c4000,_0x2aefc8,_0x6cb057,_0x428782,_0x26cafa){return _0x1d2e2a(_0x7b11,_0x1c4000,_0x2aefc8,_0x6cb057,_0x428782,_0x26cafa);},'biBYN':_0x3d1cb5(0x162)};try{global_registry[_0x3d1cb5(0x170)]=_0x5a673f[_0x3d1cb5(0x150)](uuidv4),_0x5a673f[_0x3d1cb5(0x185)](sendInstrumentationEvent,_0x362ea6,_0x5a673f['ZYalc'],messageTypes[_0x3d1cb5(0x17e)],null,null,_0x362ea6);const _0x86306f=_0x5a673f[_0x3d1cb5(0x150)](getDirForConfig);!fs['existsSync'](_0x86306f)&&(_0x5a673f[_0x3d1cb5(0x177)](_0x5a673f[_0x3d1cb5(0x178)],_0x5a673f['WWsxM'])?fs['mkdirSync'](_0x86306f):_0x4cc502=_0xd20a7f[_0x3d1cb5(0x12f)][_0x3d1cb5(0x16a)]);let _0x3db558,_0x39f87c;if(process['env']['BROWSERSTACK_USERNAME']){if(_0x5a673f[_0x3d1cb5(0x149)](_0x5a673f[_0x3d1cb5(0x15b)],_0x5a673f['EgAAJ']))_0x3db558=process['env'][_0x3d1cb5(0x17f)];else{let _0x3561d0={};const _0x3cc3a4=_0x5a673f['fpObq'](_0x2f83d2);_0x4019f0['existsSync'](_0x3cc3a4)&&(_0x3561d0=_0x2f0345[_0x3d1cb5(0x163)](_0x318c40[_0x3d1cb5(0x16e)](_0x3cc3a4,_0x5a673f[_0x3d1cb5(0x18a)])));const _0x16ecd9={};_0x16ecd9['username']=_0x4de4e1,_0x16ecd9['password']=_0x22a89d,_0x3561d0[_0x3d1cb5(0x164)]=_0x16ecd9,_0xd131e6['writeFileSync'](_0x3cc3a4,_0x13c6cb[_0x3d1cb5(0x187)](_0x3561d0)),_0x37988f[_0x3d1cb5(0x15d)](0x0);}}if(process[_0x3d1cb5(0x12f)][_0x3d1cb5(0x16a)]){if(_0x5a673f[_0x3d1cb5(0x13a)](_0x5a673f[_0x3d1cb5(0x14d)],_0x5a673f[_0x3d1cb5(0x146)]))_0x39f87c=process['env'][_0x3d1cb5(0x16a)];else{const _0x332365={};_0x332365[_0x3d1cb5(0x190)]=_0x5a673f[_0x3d1cb5(0x159)],_0x332365[_0x3d1cb5(0x153)]=_0x5a673f[_0x3d1cb5(0x18b)];const _0x55b596={};_0x55b596[_0x3d1cb5(0x190)]=_0x5a673f[_0x3d1cb5(0x135)],_0x55b596[_0x3d1cb5(0x153)]=_0x5a673f['WuTzU'];const _0x1eb430={};return _0x1eb430[_0x3d1cb5(0x18d)]=_0x332365,_0x1eb430[_0x3d1cb5(0x167)]=_0x55b596,_0x17f8af[_0x3d1cb5(0x179)](_0x46dcfb[_0x3d1cb5(0x134)])['epilogue'](_0x4eca68)[_0x3d1cb5(0x130)](_0x1eb430)[_0x3d1cb5(0x136)]()['strict']()[_0x3d1cb5(0x148)](_0x5a673f[_0x3d1cb5(0x142)])['argv'];}}_0x362ea6[_0x3d1cb5(0x15f)]&&(_0x5a673f[_0x3d1cb5(0x169)](_0x5a673f['iBKBL'],_0x5a673f['iBKBL'])?_0x3db558=_0x362ea6['bstackUsername']:_0x5acbf3[_0x3d1cb5(0x144)](_0x1e1235));_0x362ea6[_0x3d1cb5(0x151)]&&(_0x5a673f[_0x3d1cb5(0x177)](_0x5a673f[_0x3d1cb5(0x18c)],_0x5a673f[_0x3d1cb5(0x166)])?_0x39f87c=_0x362ea6[_0x3d1cb5(0x151)]:_0x131eea=_0xf7e1e6[_0x3d1cb5(0x12f)]['BROWSERSTACK_USERNAME']);if(_0x5a673f[_0x3d1cb5(0x15c)](_0x3db558,undefined)||_0x5a673f[_0x3d1cb5(0x14f)](_0x39f87c,undefined)){if(_0x5a673f['UAClX'](_0x5a673f['NvuAU'],_0x5a673f[_0x3d1cb5(0x161)]))_0x33d739=!![];else{logger[_0x3d1cb5(0x184)](_0x5a673f[_0x3d1cb5(0x138)]);const [_0x319ac8,_0x4d60cd]=await _0x5a673f['GUKVJ'](inputBstackKeys);_0x3db558=_0x319ac8,_0x39f87c=_0x4d60cd;}}let _0x5c1b86=![];const _0x23928c=_0x3d1cb5(0x15a)+_0x3db558+':'+_0x39f87c+'@'+BS_API_URL+_0x3d1cb5(0x15e),_0x65c07c={'method':_0x5a673f['UuYIO'],'headers':_0x5a673f[_0x3d1cb5(0x165)](getAuthHeader,_0x3db558,_0x39f87c),'throwHttpErrors':![]},_0x1a8e1f=await _0x5a673f[_0x3d1cb5(0x165)](got,_0x23928c,_0x65c07c);_0x5a673f[_0x3d1cb5(0x13f)](_0x1a8e1f,null)&&_0x5a673f[_0x3d1cb5(0x13a)](_0x1a8e1f,undefined)&&_0x5a673f[_0x3d1cb5(0x18e)](_0x1a8e1f[_0x3d1cb5(0x16d)],0xc8)&&(_0x5a673f[_0x3d1cb5(0x14f)](_0x5a673f[_0x3d1cb5(0x17c)],_0x5a673f[_0x3d1cb5(0x17c)])?_0x5c1b86=!![]:_0x21c2be=_0x54b8e2[_0x3d1cb5(0x15f)]);if(_0x5c1b86){if(_0x5a673f['nYgAb'](_0x5a673f[_0x3d1cb5(0x173)],_0x5a673f['Ikfvo']))_0x3b138d=_0x387c8d['bstackAccesskey'];else{let _0x3e29aa={};const _0x3ba8cc=_0x5a673f['PWZDT'](getCredentialsPath);fs['existsSync'](_0x3ba8cc)&&(_0x5a673f[_0x3d1cb5(0x15c)](_0x5a673f[_0x3d1cb5(0x17a)],_0x5a673f[_0x3d1cb5(0x17a)])?_0x3e29aa=JSON['parse'](fs[_0x3d1cb5(0x16e)](_0x3ba8cc,_0x5a673f['UyDYT'])):_0x22b0cb=_0x49c349[_0x3d1cb5(0x163)](_0x5966a7[_0x3d1cb5(0x16e)](_0x438c52,_0x5a673f['UyDYT'])));const _0x594d69={};_0x594d69[_0x3d1cb5(0x16b)]=_0x3db558,_0x594d69['password']=_0x39f87c,_0x3e29aa['Browserstack']=_0x594d69,fs[_0x3d1cb5(0x14e)](_0x3ba8cc,JSON[_0x3d1cb5(0x187)](_0x3e29aa)),process['exit'](0x0);}}else logger[_0x3d1cb5(0x186)](_0x5a673f['dvkSD']),await _0x5a673f[_0x3d1cb5(0x141)](sendInstrumentationEvent,_0x362ea6,_0x5a673f[_0x3d1cb5(0x156)],messageTypes[_0x3d1cb5(0x155)],_0x5a673f[_0x3d1cb5(0x188)],null,_0x362ea6),process[_0x3d1cb5(0x15d)](0x1);}catch(_0x46480f){logger[_0x3d1cb5(0x186)](_0x46480f[_0x3d1cb5(0x143)]),await _0x5a673f[_0x3d1cb5(0x181)](sendInstrumentationEvent,_0x362ea6,_0x5a673f[_0x3d1cb5(0x156)],messageTypes[_0x3d1cb5(0x155)],_0x5a673f[_0x3d1cb5(0x172)],_0x46480f,_0x362ea6),process[_0x3d1cb5(0x15d)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a13_0x5c98(){const _0x35a50d=['builder','usage','desc','3310lzVOpA','commandDir','list','59982KhQXOY','strict','640304jUXgNp','epilogue','1197556sKuGtt','2328EDBpUa','2136JywOwO','handler','19107TcNIkW','3215810hPgLHi','list_commands','190581KCVHFx','2rFyefG','help','AtCQS','../config/constants','command','AmzqQ'];a13_0x5c98=function(){return _0x35a50d;};return a13_0x5c98();}const a13_0x12871b=a13_0x3a16;function a13_0x3a16(_0x9c9260,_0x1fa9eb){const _0x5c983b=a13_0x5c98();return a13_0x3a16=function(_0x3a16cc,_0x2973af){_0x3a16cc=_0x3a16cc-0xca;let _0x578bd2=_0x5c983b[_0x3a16cc];return _0x578bd2;},a13_0x3a16(_0x9c9260,_0x1fa9eb);}(function(_0x11c66c,_0x5395ee){const _0x16afb0=a13_0x3a16,_0x28dfc9=_0x11c66c();while(!![]){try{const _0x2d68b3=parseInt(_0x16afb0(0xd4))/0x1+-parseInt(_0x16afb0(0xe0))/0x2*(parseInt(_0x16afb0(0xdf))/0x3)+-parseInt(_0x16afb0(0xd8))/0x4+-parseInt(_0x16afb0(0xd1))/0x5*(parseInt(_0x16afb0(0xda))/0x6)+-parseInt(_0x16afb0(0xd6))/0x7+parseInt(_0x16afb0(0xd9))/0x8*(parseInt(_0x16afb0(0xdc))/0x9)+parseInt(_0x16afb0(0xdd))/0xa;if(_0x2d68b3===_0x5395ee)break;else _0x28dfc9['push'](_0x28dfc9['shift']());}catch(_0x223d88){_0x28dfc9['push'](_0x28dfc9['shift']());}}}(a13_0x5c98,0x4b830));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x12871b(0xcb));exports[a13_0x12871b(0xcc)]=a13_0x12871b(0xd3),exports[a13_0x12871b(0xd0)]='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0x12871b(0xce)]=function(_0xaa3068){const _0x2865d0=a13_0x12871b,_0xd07e43={};_0xd07e43['AmzqQ']=_0x2865d0(0xde),_0xd07e43[_0x2865d0(0xca)]=_0x2865d0(0xe1);const _0x434f52=_0xd07e43;return _0xaa3068[_0x2865d0(0xd2)](_0x434f52[_0x2865d0(0xcd)])['demandCommand']()[_0x2865d0(0xcf)](HELP_HEADER_MESSAGE[_0x2865d0(0xd3)]['root'])[_0x2865d0(0xd7)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x2865d0(0xd5)]()[_0x2865d0(0xe1)](_0x434f52[_0x2865d0(0xca)]);},exports[a13_0x12871b(0xdb)]=function(_0x56854d){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a14_0x10c6b5=a14_0x3856;(function(_0x1b4ace,_0xeaf27){const _0x2b6695=a14_0x3856,_0x15479a=_0x1b4ace();while(!![]){try{const _0x497663=parseInt(_0x2b6695(0xf1))/0x1*(parseInt(_0x2b6695(0x119))/0x2)+parseInt(_0x2b6695(0x132))/0x3+parseInt(_0x2b6695(0x126))/0x4*(parseInt(_0x2b6695(0x11a))/0x5)+-parseInt(_0x2b6695(0x13c))/0x6+-parseInt(_0x2b6695(0xf5))/0x7*(-parseInt(_0x2b6695(0x10b))/0x8)+parseInt(_0x2b6695(0x133))/0x9*(parseInt(_0x2b6695(0x10d))/0xa)+-parseInt(_0x2b6695(0x12d))/0xb*(parseInt(_0x2b6695(0x13f))/0xc);if(_0x497663===_0xeaf27)break;else _0x15479a['push'](_0x15479a['shift']());}catch(_0x42d42c){_0x15479a['push'](_0x15479a['shift']());}}}(a14_0x226d,0x38006));function a14_0x3856(_0x25734b,_0x209b48){const _0x226d91=a14_0x226d();return a14_0x3856=function(_0x385611,_0x4c2520){_0x385611=_0x385611-0xed;let _0x36202a=_0x226d91[_0x385611];return _0x36202a;},a14_0x3856(_0x25734b,_0x209b48);}function a14_0x226d(){const _0x6117b0=['/packages/cli/get-all-grid-profiles','../../config/constants','log','username','ExQhx','2228898FcxIOx','zsNTN','GvwGf','1358556JmfseS','password','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','cxysr','init-not-called','61141WJFbuN','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','body','readFileSync','7OWEWyn','grid-profiles','Jjaij','vTFUI','type','table','unknown-error','got','NUroY','handler','pzKYb','wXSJE','requestId','Failed\x20to\x20list\x20resources!\x20Error:\x20','name','YANXE','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid-profile-name','options','JCSLO','DwmjS','epilogue','152784PDYvWW','jnZvu','347830bmKNbZ','concurrency','/packages/cli/get-grid-profiles','desc','existsSync','forEach','mKHwU','Browserstack','parse','stringify','push','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','2AUJdgq','1699175WDbIyy','../../utils/utilityMethods','unauthorised','cloud-provider','TaFhJ','exit','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','stack','cloudProvider','GET','help','INFO','4LYPCJC','YCeyS','statusCode','description','AyWex','lxGsc','ERROR','33hXsttM','PMhZk','error','list-grid-profiles-called','../../utils/instrumentationUtils','1143894VqoICw','36MlBeJe','region','uuid','GcuJg'];a14_0x226d=function(){return _0x6117b0;};return a14_0x226d();}const fs=require('fs'),got=require(a14_0x10c6b5(0xfc)),{table}=require(a14_0x10c6b5(0xfa)),{v4:uuidv4}=require(a14_0x10c6b5(0x135)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x10c6b5(0x138)),{getCredentialsPath,getAuthHeader}=require(a14_0x10c6b5(0x11b)),{sendInstrumentationEvent}=require(a14_0x10c6b5(0x131));exports['command']=a14_0x10c6b5(0xf6),exports[a14_0x10c6b5(0x110)]=a14_0x10c6b5(0xee),exports['builder']=function(_0x2e2741){const _0x5cb284=a14_0x10c6b5,_0x3b479c={};_0x3b479c['qfMSg']=_0x5cb284(0x120),_0x3b479c['rjHMq']='boolean',_0x3b479c[_0x5cb284(0x127)]=_0x5cb284(0x124);const _0x143fbe=_0x3b479c,_0x1d9ae2={};_0x1d9ae2[_0x5cb284(0x129)]=_0x143fbe['qfMSg'],_0x1d9ae2[_0x5cb284(0xf9)]=_0x143fbe['rjHMq'];const _0x551aea={};return _0x551aea['all-grid-profiles']=_0x1d9ae2,_0x2e2741['usage'](HELP_HEADER_MESSAGE['list']['gridProfile'])[_0x5cb284(0x10a)](HELP_FOOTER_MESSAGE)[_0x5cb284(0x107)](_0x551aea)[_0x5cb284(0x124)](_0x143fbe[_0x5cb284(0x127)])['argv'];},exports[a14_0x10c6b5(0xfe)]=async function(_0x4b7b61){const _0x540594=a14_0x10c6b5,_0x15dca8={'cxysr':function(_0x4c341e){return _0x4c341e();},'GvwGf':_0x540594(0x105),'lxGsc':function(_0x4480f6,_0x1d93fa,_0x3d9ea6,_0x1c8289,_0x1f51f6,_0x2bbf7b,_0x1d62f5){return _0x4480f6(_0x1d93fa,_0x3d9ea6,_0x1c8289,_0x1f51f6,_0x2bbf7b,_0x1d62f5);},'pzKYb':_0x540594(0x130),'wXSJE':_0x540594(0xf0),'YANXE':function(_0x415eb4){return _0x415eb4();},'YuFQM':_0x540594(0x123),'GcuJg':function(_0x6e37b7,_0x4ee606,_0x15eb8d){return _0x6e37b7(_0x4ee606,_0x15eb8d);},'xzakm':function(_0x3bf2bb,_0x829ed7,_0x507f6c,_0x3bdaf7,_0x541078,_0x28b78e,_0x508a29){return _0x3bf2bb(_0x829ed7,_0x507f6c,_0x3bdaf7,_0x541078,_0x28b78e,_0x508a29);},'ExQhx':function(_0x5a9e51,_0x36bc4b){return _0x5a9e51!==_0x36bc4b;},'zsNTN':function(_0x51d97e,_0x501203){return _0x51d97e===_0x501203;},'DwmjS':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','AyWex':_0x540594(0x106),'vTFUI':_0x540594(0x11d),'JCSLO':'region','NyPiG':_0x540594(0x10e),'jnZvu':function(_0x38bde8,_0x3f9746){return _0x38bde8(_0x3f9746);},'NUroY':function(_0x262df4,_0x1300c9){return _0x262df4===_0x1300c9;},'mKHwU':_0x540594(0x118),'PMhZk':function(_0x3fb76b,_0x29952b,_0x4c2506,_0x340e90,_0x28841b,_0x5d954a,_0x5c328b){return _0x3fb76b(_0x29952b,_0x4c2506,_0x340e90,_0x28841b,_0x5d954a,_0x5c328b);},'TaFhJ':_0x540594(0x11c),'HXZAY':'server-error','Jjaij':function(_0x363ac3,_0x35654c,_0x1df090,_0x33c248,_0x3e7011,_0x35e538,_0x5f29c0){return _0x363ac3(_0x35654c,_0x1df090,_0x33c248,_0x3e7011,_0x35e538,_0x5f29c0);},'VThBk':_0x540594(0xfb)};try{global_registry[_0x540594(0x101)]=_0x15dca8['cxysr'](uuidv4);let _0x2dc1dd='https://'+AG_API_URL+_0x540594(0x10f);_0x4b7b61['allGridProfiles']&&(_0x2dc1dd='https://'+AG_API_URL+_0x540594(0x137));!fs[_0x540594(0x111)](_0x15dca8[_0x540594(0xef)](getCredentialsPath))&&(console[_0x540594(0x12f)](_0x15dca8[_0x540594(0x13e)]),await _0x15dca8[_0x540594(0x12b)](sendInstrumentationEvent,_0x4b7b61,_0x15dca8['pzKYb'],messageTypes['ERROR'],_0x15dca8[_0x540594(0x100)],null,_0x4b7b61),process[_0x540594(0x11f)](0x1));const _0xe274c3=JSON[_0x540594(0x115)](fs[_0x540594(0xf4)](_0x15dca8[_0x540594(0x104)](getCredentialsPath))),_0x2ac9fe={'method':_0x15dca8['YuFQM'],'headers':_0x15dca8[_0x540594(0x136)](getAuthHeader,_0xe274c3['Browserstack'][_0x540594(0x13a)],_0xe274c3['Browserstack'][_0x540594(0xed)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0xe274c3[_0x540594(0x114)][_0x540594(0x13a)],global_registry['bstackAccesskey']=_0xe274c3[_0x540594(0x114)][_0x540594(0xed)],_0x15dca8['xzakm'](sendInstrumentationEvent,_0x4b7b61,_0x15dca8['pzKYb'],messageTypes[_0x540594(0x125)],null,null,_0x4b7b61);const _0x4e4e2d=await _0x15dca8[_0x540594(0x136)](got,_0x2dc1dd,_0x2ac9fe);if(_0x15dca8[_0x540594(0x13b)](_0x4e4e2d,null)&&_0x15dca8[_0x540594(0x13b)](_0x4e4e2d,undefined)&&_0x15dca8[_0x540594(0x13d)](_0x4e4e2d[_0x540594(0x128)],0xc8)){const _0x15f7eb=JSON[_0x540594(0x115)](_0x4e4e2d[_0x540594(0xf3)]);console[_0x540594(0x139)](_0x15dca8[_0x540594(0x109)]);const _0x1cf3b2=[];_0x1cf3b2[_0x540594(0x117)]([_0x15dca8[_0x540594(0x12a)],_0x15dca8[_0x540594(0xf8)],_0x15dca8[_0x540594(0x108)],_0x15dca8['NyPiG']]),_0x15f7eb[_0x540594(0x112)](_0x187590=>{const _0x9b8385=_0x540594;_0x1cf3b2[_0x9b8385(0x117)]([_0x187590[_0x9b8385(0x103)],_0x187590[_0x9b8385(0x122)],_0x187590[_0x9b8385(0x134)],_0x187590[_0x9b8385(0x10e)]]);}),console[_0x540594(0x139)](_0x15dca8[_0x540594(0x10c)](table,_0x1cf3b2)),process[_0x540594(0x11f)](0x0);}_0x15dca8[_0x540594(0xfd)](_0x4e4e2d['statusCode'],0x191)&&(console['error'](_0x15dca8[_0x540594(0x113)]),await _0x15dca8[_0x540594(0x12e)](sendInstrumentationEvent,_0x4b7b61,_0x15dca8['pzKYb'],messageTypes[_0x540594(0x12c)],_0x15dca8[_0x540594(0x11e)],null,_0x4b7b61),process['exit'](0x1)),console[_0x540594(0x12f)](_0x540594(0xf2)+JSON[_0x540594(0x116)](_0x4e4e2d)),await _0x15dca8[_0x540594(0x12e)](sendInstrumentationEvent,_0x4b7b61,_0x15dca8[_0x540594(0xff)],messageTypes[_0x540594(0x12c)],_0x15dca8['HXZAY'],_0x4e4e2d,_0x4b7b61),process[_0x540594(0x11f)](0x1);}catch(_0x1e6de0){console[_0x540594(0x12f)](_0x540594(0x102)+_0x1e6de0[_0x540594(0x121)]),await _0x15dca8[_0x540594(0xf7)](sendInstrumentationEvent,_0x4b7b61,_0x15dca8[_0x540594(0xff)],messageTypes[_0x540594(0x12c)],_0x15dca8['VThBk'],_0x1e6de0,_0x4b7b61),process[_0x540594(0x11f)](0x1);}};
|