browserstack-node-sdk 1.34.28 → 1.34.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -60
- 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/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-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -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
|
-
function a9_0x3419(_0x3b3f8e,_0x4b8a81){const _0x5f3b34=a9_0x5f3b();return a9_0x3419=function(_0x3419e6,_0x32b45d){_0x3419e6=_0x3419e6-0x134;let _0x33f080=_0x5f3b34[_0x3419e6];return _0x33f080;},a9_0x3419(_0x3b3f8e,_0x4b8a81);}const a9_0x1b13bf=a9_0x3419;(function(_0x376e6b,_0x4b3f4c){const _0x285c41=a9_0x3419,_0x197517=_0x376e6b();while(!![]){try{const _0x3912b5=parseInt(_0x285c41(0x1c3))/0x1+-parseInt(_0x285c41(0x160))/0x2+-parseInt(_0x285c41(0x213))/0x3*(parseInt(_0x285c41(0x1a0))/0x4)+parseInt(_0x285c41(0x1a2))/0x5*(parseInt(_0x285c41(0x215))/0x6)+-parseInt(_0x285c41(0x252))/0x7+parseInt(_0x285c41(0x16b))/0x8*(-parseInt(_0x285c41(0x14c))/0x9)+parseInt(_0x285c41(0x154))/0xa;if(_0x3912b5===_0x4b3f4c)break;else _0x197517['push'](_0x197517['shift']());}catch(_0x493868){_0x197517['push'](_0x197517['shift']());}}}(a9_0x5f3b,0x1c15b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x1b13bf(0x168)),got=require(a9_0x1b13bf(0x177)),{v4:uuidv4}=require(a9_0x1b13bf(0x1c8)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x1b13bf(0x23b)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x1b13bf(0x1ee)),{getCloudProviderObject}=require(a9_0x1b13bf(0x19c)),{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('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a9_0x1b13bf(0x19b)]='grid',exports[a9_0x1b13bf(0x1a5)]=a9_0x1b13bf(0x254),exports[a9_0x1b13bf(0x229)]=function(_0x475cc0){const _0x5a95b2=a9_0x1b13bf,_0x50dc5b={};_0x50dc5b[_0x5a95b2(0x1da)]=_0x5a95b2(0x216),_0x50dc5b['ijwfQ']=_0x5a95b2(0x243),_0x50dc5b[_0x5a95b2(0x153)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x50dc5b[_0x5a95b2(0x15b)]=_0x5a95b2(0x15d),_0x50dc5b[_0x5a95b2(0x28b)]=_0x5a95b2(0x26a),_0x50dc5b[_0x5a95b2(0x24f)]=_0x5a95b2(0x22d),_0x50dc5b[_0x5a95b2(0x1cb)]=_0x5a95b2(0x17e),_0x50dc5b[_0x5a95b2(0x1d7)]=_0x5a95b2(0x250),_0x50dc5b['ENIAW']=_0x5a95b2(0x291),_0x50dc5b[_0x5a95b2(0x1a7)]='help';const _0x12542f=_0x50dc5b,_0x179ae0={};_0x179ae0[_0x5a95b2(0x200)]=_0x12542f[_0x5a95b2(0x1da)],_0x179ae0[_0x5a95b2(0x18c)]=_0x12542f[_0x5a95b2(0x28d)];const _0x190543={};_0x190543[_0x5a95b2(0x200)]=_0x12542f['LDbSD'],_0x190543['type']=_0x12542f[_0x5a95b2(0x28d)];const _0x1779e1={};_0x1779e1[_0x5a95b2(0x200)]=_0x12542f[_0x5a95b2(0x15b)],_0x1779e1['type']=_0x12542f[_0x5a95b2(0x28d)];const _0x51a25f={};_0x51a25f[_0x5a95b2(0x200)]=_0x12542f['miXUJ'],_0x51a25f[_0x5a95b2(0x18c)]=_0x12542f[_0x5a95b2(0x28d)];const _0x45fc93={};_0x45fc93[_0x5a95b2(0x200)]=_0x12542f[_0x5a95b2(0x24f)],_0x45fc93['type']=_0x12542f[_0x5a95b2(0x28d)];const _0xa00644={};_0xa00644[_0x5a95b2(0x200)]=_0x12542f['cvoBt'],_0xa00644[_0x5a95b2(0x18c)]=_0x12542f[_0x5a95b2(0x28d)];const _0x4b6f0e={};_0x4b6f0e[_0x5a95b2(0x200)]=_0x12542f[_0x5a95b2(0x1d7)],_0x4b6f0e[_0x5a95b2(0x18c)]=_0x12542f['ENIAW'],_0x4b6f0e[_0x5a95b2(0x207)]=![];const _0x1f3eea={};return _0x1f3eea[_0x5a95b2(0x1e8)]=_0x179ae0,_0x1f3eea[_0x5a95b2(0x164)]=_0x190543,_0x1f3eea[_0x5a95b2(0x157)]=_0x1779e1,_0x1f3eea[_0x5a95b2(0x1f0)]=_0x51a25f,_0x1f3eea[_0x5a95b2(0x1e1)]=_0x45fc93,_0x1f3eea[_0x5a95b2(0x208)]=_0xa00644,_0x1f3eea[_0x5a95b2(0x212)]=_0x4b6f0e,_0x475cc0[_0x5a95b2(0x236)](HELP_HEADER_MESSAGE[_0x5a95b2(0x1de)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5a95b2(0x287)](_0x1f3eea)[_0x5a95b2(0x1f8)](_0x12542f[_0x5a95b2(0x1a7)])[_0x5a95b2(0x1b8)];},exports[a9_0x1b13bf(0x1c1)]=async function(_0x22d0bd){const _0x265c28=a9_0x1b13bf,_0x3e2bf6={'YQQHe':'warn','MJurl':function(_0x353d7d,_0x2ee39e){return _0x353d7d===_0x2ee39e;},'Hjccx':_0x265c28(0x260),'gkfhJ':function(_0x35b3f5,_0x4e90a4){return _0x35b3f5!==_0x4e90a4;},'WYGNx':function(_0x814aca,_0x5e1046,_0x1d63ff,_0x1f24dd,_0x4e88e7,_0x447329,_0x2aac7e,_0x5047ac,_0x4d1be0,_0x38601f,_0x6fb432,_0x2da143){return _0x814aca(_0x5e1046,_0x1d63ff,_0x1f24dd,_0x4e88e7,_0x447329,_0x2aac7e,_0x5047ac,_0x4d1be0,_0x38601f,_0x6fb432,_0x2da143);},'zUdLN':_0x265c28(0x216),'JmBcH':'string','itEvH':_0x265c28(0x18f),'bywCl':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','tcARJ':_0x265c28(0x26a),'RYNmN':_0x265c28(0x22d),'svEGw':_0x265c28(0x17e),'sbzBA':_0x265c28(0x250),'GosrD':_0x265c28(0x291),'bterC':_0x265c28(0x1f8),'gHqWC':_0x265c28(0x26c),'zSyIW':'CLI\x20run\x20started','SJabC':_0x265c28(0x251),'BPPpR':'error','bRRVz':_0x265c28(0x1f3),'McVWD':function(_0x2da0f4){return _0x2da0f4();},'yuyOr':function(_0x99b391){return _0x99b391();},'yNXuU':function(_0x58f674,_0x4b31ba){return _0x58f674===_0x4b31ba;},'zeJhU':'MweCY','LxwAp':_0x265c28(0x1ec),'KnHuq':_0x265c28(0x22e),'kjGgL':function(_0x183085,_0x8eecb,_0x330c4c,_0x2896d2,_0x16e7f2,_0x266162,_0x16d2ba){return _0x183085(_0x8eecb,_0x330c4c,_0x2896d2,_0x16e7f2,_0x266162,_0x16d2ba);},'YJyrt':_0x265c28(0x17c),'koLLk':'init-not-called','UrZYp':function(_0x3f6e31,_0xcfec89,_0x19055b,_0x3ccb33,_0x19795f,_0x1de534,_0x4078e5){return _0x3f6e31(_0xcfec89,_0x19055b,_0x3ccb33,_0x19795f,_0x1de534,_0x4078e5);},'Aeyrx':function(_0x10dd44){return _0x10dd44();},'VrJjj':_0x265c28(0x139),'pTyaz':_0x265c28(0x188),'wpdaw':_0x265c28(0x265),'TzUkH':function(_0x46a877,_0x33ac49){return _0x46a877!==_0x33ac49;},'hIVjm':_0x265c28(0x256),'jCLsc':function(_0x507804,_0x52d375){return _0x507804===_0x52d375;},'ZtnFo':_0x265c28(0x17b),'gfoIc':_0x265c28(0x1fa),'ftXlZ':_0x265c28(0x1e2),'CZbIy':function(_0x5e0b4f,_0x708b61,_0x4b5a9a,_0x5dfe86,_0xe4c9d9,_0x523fae,_0x3fe2a4,_0x5ca233){return _0x5e0b4f(_0x708b61,_0x4b5a9a,_0x5dfe86,_0xe4c9d9,_0x523fae,_0x3fe2a4,_0x5ca233);},'OnWJX':'prespawned-cluster-args-not-passed','SUnWQ':'SZrDK','GhAoN':'xvxVT','CkUTL':_0x265c28(0x25d),'RYhRk':_0x265c28(0x22a),'lWZXO':_0x265c28(0x25f),'zWyCy':_0x265c28(0x24b),'LeBYW':_0x265c28(0x288),'nemLs':function(_0x1d7c5f,_0x5a5d6e,_0x5db6b5,_0x14ad9b,_0x602f1e,_0x3f4077,_0x74cb3c){return _0x1d7c5f(_0x5a5d6e,_0x5db6b5,_0x14ad9b,_0x602f1e,_0x3f4077,_0x74cb3c);},'MewVT':'FVgDQ','HesDh':function(_0x15b301,_0x52b8b2){return _0x15b301!==_0x52b8b2;},'WwEXm':'nYSxp','nPPpS':_0x265c28(0x21a),'GMAiY':_0x265c28(0x179),'JchLE':_0x265c28(0x283),'nHqVC':function(_0x4b43f7,_0x4fd78a,_0x7098dd){return _0x4b43f7(_0x4fd78a,_0x7098dd);},'OLEzQ':_0x265c28(0x197),'lVmQm':function(_0x5eb695,_0x407523,_0x402830){return _0x5eb695(_0x407523,_0x402830);},'TxaiE':function(_0x738dd7,_0x4a58c5){return _0x738dd7===_0x4a58c5;},'gzRLH':function(_0x20d42d,_0x363fe7){return _0x20d42d===_0x363fe7;},'rAExO':_0x265c28(0x285),'Wzqyi':_0x265c28(0x1bf),'HYwbM':function(_0x1bd4e7,_0x3237f3,_0xf8d060,_0x25a7dc,_0xf90605,_0x4d46a7,_0x54f677,_0x59f0db){return _0x1bd4e7(_0x3237f3,_0xf8d060,_0x25a7dc,_0xf90605,_0x4d46a7,_0x54f677,_0x59f0db);},'oVfKp':'create-grid-checks-null-response','uwhMa':function(_0x5304fe,_0x30a743){return _0x5304fe===_0x30a743;},'yJilE':function(_0x270090,_0x13fe88){return _0x270090===_0x13fe88;},'tjzPW':_0x265c28(0x26f),'nGgcN':'FDYdI','usXWk':_0x265c28(0x16a),'nYkyS':_0x265c28(0x19d),'qgExZ':function(_0x1fb924,_0x30723a){return _0x1fb924===_0x30723a;},'XuRpz':_0x265c28(0x1eb),'sTmev':_0x265c28(0x1b0),'qUttc':_0x265c28(0x1ef),'HrKlB':_0x265c28(0x190),'QZlgM':function(_0x1cb4e1,_0x17adaf){return _0x1cb4e1!==_0x17adaf;},'Yrdvk':_0x265c28(0x249),'sLtYX':_0x265c28(0x239),'wYqRG':function(_0xaae8,_0x4cc949,_0x25d815,_0x3353a3,_0x5f14c6,_0xa066ad,_0x529c17,_0x43ad80){return _0xaae8(_0x4cc949,_0x25d815,_0x3353a3,_0x5f14c6,_0xa066ad,_0x529c17,_0x43ad80);},'zpieb':_0x265c28(0x185),'wKuPD':function(_0x4a3c4e,_0x16ee78){return _0x4a3c4e!==_0x16ee78;},'SYfCn':_0x265c28(0x167),'Regvk':function(_0x5a04bd,_0x4ecdd4){return _0x5a04bd===_0x4ecdd4;},'kSysK':_0x265c28(0x1f6),'btkLf':_0x265c28(0x1b7),'mxTab':function(_0x5ab10c,_0x43e46b){return _0x5ab10c===_0x43e46b;},'jjZku':function(_0x236924,_0x5bb3d6){return _0x236924!==_0x5bb3d6;},'jxPqR':_0x265c28(0x1e9),'YkidT':_0x265c28(0x144),'TnAnh':_0x265c28(0x1fe),'gkGBy':_0x265c28(0x235),'KRNGY':function(_0x5f46c8,_0x2cd602){return _0x5f46c8===_0x2cd602;},'yPKFb':_0x265c28(0x206),'GPjDf':function(_0x39c1cc,_0xbf1335){return _0x39c1cc!==_0xbf1335;},'PpBPM':_0x265c28(0x1f9),'FjHpW':function(_0x1838f1,_0x246f42){return _0x1838f1===_0x246f42;},'AqieN':_0x265c28(0x146),'HijBM':'lzgXX','uQQCd':function(_0x1aff3b,_0x5ef578,_0x1fad63,_0xee65f2,_0x55c706,_0x2c861a,_0x528058,_0x1d7198,_0x9e4f71,_0x3682f2,_0x9cfb5c,_0x2749ba){return _0x1aff3b(_0x5ef578,_0x1fad63,_0xee65f2,_0x55c706,_0x2c861a,_0x528058,_0x1d7198,_0x9e4f71,_0x3682f2,_0x9cfb5c,_0x2749ba);},'haFUB':function(_0x24c36c,_0x3cf5d3){return _0x24c36c===_0x3cf5d3;},'jxOHL':_0x265c28(0x284),'LYskw':_0x265c28(0x17d),'bjYsO':_0x265c28(0x187),'UVsgR':'aZsBv','NbhsW':function(_0x95b843,_0x39a942,_0xb05c62,_0x33257d,_0xbec186,_0x2a887d,_0x2ec924,_0x484d9c,_0x1083e9,_0x2379cb,_0x4d2cd9,_0x57ed25){return _0x95b843(_0x39a942,_0xb05c62,_0x33257d,_0xbec186,_0x2a887d,_0x2ec924,_0x484d9c,_0x1083e9,_0x2379cb,_0x4d2cd9,_0x57ed25);},'sQesQ':_0x265c28(0x262),'yLoFA':_0x265c28(0x191),'SEmPA':function(_0x2808f8,_0x2872fb,_0x57edf6,_0x1e63d3,_0x1c76d5,_0x4897a4,_0x4b60ee){return _0x2808f8(_0x2872fb,_0x57edf6,_0x1e63d3,_0x1c76d5,_0x4897a4,_0x4b60ee);},'tUsXg':function(_0x15c0bf,_0x5528ab){return _0x15c0bf!==_0x5528ab;},'chshj':function(_0x1367a9,_0x41663c){return _0x1367a9===_0x41663c;},'hJktC':_0x265c28(0x171),'qXVqa':function(_0x46484f,_0x29b99e){return _0x46484f!=_0x29b99e;},'XNQHp':function(_0x5e41f1,_0x295882){return _0x5e41f1!==_0x295882;},'owIgB':function(_0x372f11,_0x538dd7){return _0x372f11>_0x538dd7;},'dxdBX':function(_0x3c9f6c,_0x393221){return _0x3c9f6c===_0x393221;},'RCMdL':_0x265c28(0x253),'Moepl':function(_0x389317,_0x435498,_0x41d12c,_0x4056e1,_0x40002f,_0x374c6b,_0x347de0,_0x5eed44){return _0x389317(_0x435498,_0x41d12c,_0x4056e1,_0x40002f,_0x374c6b,_0x347de0,_0x5eed44);},'WEFFU':_0x265c28(0x155),'IjUJz':function(_0x1ab2c2,_0x40094c){return _0x1ab2c2===_0x40094c;},'JemiC':_0x265c28(0x23f),'suTnI':_0x265c28(0x13c),'ayNDS':_0x265c28(0x148),'ioNOF':'3|2|4|0|1','jkMBE':_0x265c28(0x178),'jpGsI':'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.','Fsceo':function(_0x421563,_0x57e277){return _0x421563===_0x57e277;},'kZAig':function(_0x451e0b,_0x209ff4){return _0x451e0b===_0x209ff4;},'IUbcD':function(_0x2b46c5,_0x52fbb3){return _0x2b46c5(_0x52fbb3);},'pXrGT':_0x265c28(0x19f),'WKtKo':function(_0x36b8ef,_0x55aad0){return _0x36b8ef!==_0x55aad0;},'MANHy':'default','UxLCz':_0x265c28(0x217),'ZdHhr':_0x265c28(0x1d0),'Lynwo':_0x265c28(0x1e3),'ioFlR':_0x265c28(0x24a),'aDHgb':_0x265c28(0x1d4),'FdFzd':function(_0x416ee4,_0x10da9c){return _0x416ee4===_0x10da9c;},'vSvNq':function(_0x37fb4b,_0x2ed867,_0x4eda83,_0x57be29,_0x1393f1,_0xa24dbe,_0x2606d5,_0x18c028,_0xd397fa,_0x534ff7,_0x2017f3){return _0x37fb4b(_0x2ed867,_0x4eda83,_0x57be29,_0x1393f1,_0xa24dbe,_0x2606d5,_0x18c028,_0xd397fa,_0x534ff7,_0x2017f3);},'hSTNp':_0x265c28(0x186),'Cnsml':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','homdx':function(_0x554be2,_0x36d1f0,_0x20873c,_0x938f55,_0x1ba3d8){return _0x554be2(_0x36d1f0,_0x20873c,_0x938f55,_0x1ba3d8);},'XtJfn':function(_0x5d1c8c,_0x23826c,_0x28462e){return _0x5d1c8c(_0x23826c,_0x28462e);},'qeDyr':_0x265c28(0x1b2),'wQphg':_0x265c28(0x17f),'ImpAN':_0x265c28(0x267),'EPKqJ':function(_0xd238b4,_0x297014){return _0xd238b4===_0x297014;},'hqdum':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','rYjpQ':function(_0x975721,_0xa22bca,_0x4f34b6,_0x873c8c,_0x3b8b1b,_0x567d65,_0x2d1530,_0x3a7a64){return _0x975721(_0xa22bca,_0x4f34b6,_0x873c8c,_0x3b8b1b,_0x567d65,_0x2d1530,_0x3a7a64);},'VYsao':_0x265c28(0x278),'RoxPy':_0x265c28(0x170),'qzqsT':_0x265c28(0x138),'dzmiy':_0x265c28(0x1d1),'mzXqi':'Deleting\x20the\x20CloudFormation\x20Stacks','gXWmG':function(_0x44b842,_0x238b8b,_0x256286,_0xe53376,_0x418ba8,_0x4f2b81){return _0x44b842(_0x238b8b,_0x256286,_0xe53376,_0x418ba8,_0x4f2b81);},'nCILa':_0x265c28(0x22c)};let _0x5db38a=![],_0x572b65=![],_0x5e0b5d,_0x4ba814,_0x3aec04,_0xea956,_0x5a7d1a,_0x3d58ee,_0x18801a,_0xf35b14,_0x27c47f,_0x532b5e,_0x291a58,_0x5288b3,_0x32ba03,_0x52bc86,_0x5a52fc=0x1,_0x48d3bc=0xe;try{global_registry[_0x265c28(0x14d)]=_0x3e2bf6[_0x265c28(0x28a)](uuidv4),global_registry[_0x265c28(0x275)]=![];if(!fs[_0x265c28(0x286)](_0x3e2bf6['yuyOr'](getCredentialsPath))){if(_0x3e2bf6[_0x265c28(0x276)](_0x3e2bf6[_0x265c28(0x1d6)],_0x3e2bf6[_0x265c28(0x263)])){const _0x5c6ec1={};_0x5c6ec1['type']=_0x5edc3f['LOG'],_0x5c6ec1[_0x265c28(0x18e)]='Cluster\x20'+_0x40535e+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x5ea718[_0x265c28(0x192)](_0x5a7fe6,_0x5c6ec1,_0x3e2bf6[_0x265c28(0x1cd)]),_0x2a4582[_0x265c28(0x1bc)](_0x265c28(0x292)+_0x41b044+_0x265c28(0x1a6)),_0x16b735=!![];if(_0x3e2bf6[_0x265c28(0x26e)](_0x384898,!![]))throw new _0x3d055a(_0x265c28(0x292)+_0x11c476+_0x265c28(0x27c));}else console['error'](_0x3e2bf6[_0x265c28(0x1f1)]),await _0x3e2bf6['kjGgL'](sendInstrumentationEvent,_0x22d0bd,_0x3e2bf6[_0x265c28(0x14f)],messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x147)],null,_0x22d0bd),process[_0x265c28(0x17a)](0x1);}await _0x3e2bf6['UrZYp'](sendInstrumentationEvent,_0x22d0bd,_0x3e2bf6[_0x265c28(0x14f)],messageTypes[_0x265c28(0x202)],null,null,_0x22d0bd);const _0x13e15c=JSON['parse'](fs['readFileSync'](_0x3e2bf6['Aeyrx'](getCredentialsPath)));global_registry[_0x265c28(0x27e)]=_0x13e15c['Browserstack']['username'],global_registry[_0x265c28(0x209)]=_0x13e15c[_0x265c28(0x217)][_0x265c28(0x290)];const _0x55ffd3=WS_ENDPOINT[_0x265c28(0x270)](_0x3e2bf6[_0x265c28(0x1ed)],_0x13e15c['Browserstack'][_0x265c28(0x23e)])['replace'](_0x3e2bf6[_0x265c28(0x1df)],_0x13e15c[_0x265c28(0x217)][_0x265c28(0x290)]),_0x3a834e={};_0x3a834e[_0x265c28(0x161)]=ws,_0x3a834e['connectionTimeout']=0x36ee80,_0x5288b3=new ReconnectingWebSocket(_0x55ffd3,[],_0x3a834e),logger[_0x265c28(0x1ae)](_0x3e2bf6[_0x265c28(0x1aa)]),webSocketUtils[_0x265c28(0x1a4)](_0x5288b3,_0x22d0bd[_0x265c28(0x189)],_0x22d0bd['password']);const _0x376e39=_0x22d0bd[_0x265c28(0x1c4)]||DEFAULT_GRID_NAME;if(_0x22d0bd['clusterName']||_0x22d0bd[_0x265c28(0x227)]||_0x22d0bd[_0x265c28(0x1e1)]){if(_0x3e2bf6[_0x265c28(0x142)](_0x3e2bf6[_0x265c28(0x1af)],_0x3e2bf6[_0x265c28(0x1af)]))_0x389ed7[_0x265c28(0x1bc)](_0x265c28(0x196)+_0x4963a0['stringify'](_0x58786c)+'\x20');else{if(!(_0x22d0bd[_0x265c28(0x159)]&&_0x22d0bd['cloudProvider']&&_0x22d0bd[_0x265c28(0x1e1)])){if(_0x3e2bf6[_0x265c28(0x140)](_0x3e2bf6[_0x265c28(0x172)],_0x3e2bf6[_0x265c28(0x141)])){const _0x561b45=_0x3e2bf6['Hjccx']['split']('|');let _0xf02fda=0x0;while(!![]){switch(_0x561b45[_0xf02fda++]){case'0':_0x3e2bf6[_0x265c28(0x18a)](_0x5c2cf7[_0x265c28(0x25c)],_0xeb8020)&&_0x246f0b[_0x265c28(0x25c)]&&(_0x4bb186['isPrivateGrid']=!![]);continue;case'1':_0x11b24c=_0x3bc6f7[_0x265c28(0x1d2)];continue;case'2':const _0x315e8e={};_0x315e8e[_0x265c28(0x18c)]=_0x1440c9[_0x265c28(0x23c)],_0x315e8e[_0x265c28(0x18e)]=_0x286a64,_0x37f8b7[_0x265c28(0x192)](_0x307d94,_0x315e8e);continue;case'3':_0x9407c='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x863722;continue;case'4':_0xfdd11a=null;continue;case'5':_0x163605=_0x3da8b5[_0x265c28(0x20f)];continue;case'6':_0x187f80=_0x42c81a['concurrency'];continue;case'7':_0x3e2bf6[_0x265c28(0x158)](_0x52f120,_0x52b47e,_0x1a9871,_0x3966cc,_0x14e337,_0x2d7bae,_0x135c51,_0x5a8a49,_0x574ca2,_0x51a065,_0x27f388,_0x39b709);continue;case'8':_0x173053=null;continue;case'9':_0x4e947b=_0x1e74fb[_0x265c28(0x1ca)];continue;case'10':_0x24ff03[_0x265c28(0x1bc)](_0x943aca);continue;case'11':_0x5b4263=_0x53d14b[_0x265c28(0x1db)];continue;case'12':_0x5c2039=null;continue;case'13':_0x24c46d=_0x336502[_0x265c28(0x233)];continue;case'14':_0x10e1e5=_0x528476[_0x265c28(0x205)];continue;}break;}}else _0x5e0b5d=_0x3e2bf6[_0x265c28(0x228)],await _0x3e2bf6[_0x265c28(0x20d)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x26b)],_0x3e2bf6[_0x265c28(0x1c5)]),logger['error'](_0x5e0b5d),process[_0x265c28(0x17a)](0x1);}![AWS,AZURE,GCP]['includes'](_0x22d0bd[_0x265c28(0x227)][_0x265c28(0x237)]())&&(_0x3e2bf6[_0x265c28(0x142)](_0x3e2bf6[_0x265c28(0x14e)],_0x3e2bf6[_0x265c28(0x294)])?(_0x5e0b5d=_0x3e2bf6[_0x265c28(0x219)],await _0x3e2bf6['CZbIy'](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x194)],_0x3e2bf6['BPPpR']),logger[_0x265c28(0x1e6)](_0x5e0b5d),process['exit'](0x1)):(_0x4de910[_0x265c28(0x1e1)]=_0x59227,_0x346271[_0x265c28(0x227)]=_0x20a0af,_0x15cdbb[_0x265c28(0x246)]=!![]));_0x22d0bd['privateGrid']&&_0x3e2bf6[_0x265c28(0x140)](_0x22d0bd[_0x265c28(0x25c)][_0x265c28(0x237)](),_0x3e2bf6[_0x265c28(0x174)])&&(_0x3e2bf6[_0x265c28(0x142)](_0x3e2bf6[_0x265c28(0x269)],_0x3e2bf6[_0x265c28(0x225)])?global_registry[_0x265c28(0x275)]=!![]:_0x1ab879=_0x89c9[_0x336c8b['gridProfile']]);global_registry[_0x265c28(0x227)]=_0x22d0bd[_0x265c28(0x227)],global_registry[_0x265c28(0x1c0)]=_0x22d0bd[_0x265c28(0x1e1)],global_registry[_0x265c28(0x159)]=_0x22d0bd[_0x265c28(0x159)];const _0x27b16c=await _0x3e2bf6[_0x265c28(0x198)](getCloudProviderObject,_0x22d0bd[_0x265c28(0x227)],_0x22d0bd['clusterName'],_0x376e39,_0x5288b3,webSocketUtils,_0x22d0bd),_0x3ee423=await _0x27b16c[_0x265c28(0x240)]();if(!_0x3ee423){if(_0x3e2bf6[_0x265c28(0x142)](_0x3e2bf6['MewVT'],_0x3e2bf6[_0x265c28(0x175)])){const _0x1f5cef={};_0x1f5cef[_0x265c28(0x200)]=_0x3e2bf6[_0x265c28(0x20b)],_0x1f5cef[_0x265c28(0x18c)]=_0x3e2bf6['JmBcH'];const _0x4532c7={};_0x4532c7[_0x265c28(0x200)]=_0x3e2bf6[_0x265c28(0x15e)],_0x4532c7[_0x265c28(0x18c)]=_0x3e2bf6[_0x265c28(0x1bb)];const _0x286318={};_0x286318[_0x265c28(0x200)]=_0x3e2bf6[_0x265c28(0x16e)],_0x286318['type']=_0x3e2bf6['JmBcH'];const _0x55e8cb={};_0x55e8cb[_0x265c28(0x200)]=_0x3e2bf6[_0x265c28(0x18d)],_0x55e8cb[_0x265c28(0x18c)]=_0x3e2bf6[_0x265c28(0x1bb)];const _0x2fc754={};_0x2fc754[_0x265c28(0x200)]=_0x3e2bf6[_0x265c28(0x1a1)],_0x2fc754[_0x265c28(0x18c)]=_0x3e2bf6['JmBcH'];const _0x533921={};_0x533921[_0x265c28(0x200)]=_0x3e2bf6[_0x265c28(0x1d9)],_0x533921['type']=_0x3e2bf6[_0x265c28(0x1bb)];const _0x9134c0={};_0x9134c0[_0x265c28(0x200)]=_0x3e2bf6[_0x265c28(0x1a3)],_0x9134c0[_0x265c28(0x18c)]=_0x3e2bf6[_0x265c28(0x230)],_0x9134c0[_0x265c28(0x207)]=![];const _0x100b0a={};return _0x100b0a[_0x265c28(0x1e8)]=_0x1f5cef,_0x100b0a['grid-profile']=_0x4532c7,_0x100b0a[_0x265c28(0x157)]=_0x286318,_0x100b0a['cloud-provider']=_0x55e8cb,_0x100b0a['region']=_0x2fc754,_0x100b0a['private-grid']=_0x533921,_0x100b0a[_0x265c28(0x212)]=_0x9134c0,_0xa81bf1['usage'](_0x4132c0[_0x265c28(0x1de)])[_0x265c28(0x28f)](_0x90c761)[_0x265c28(0x287)](_0x100b0a)[_0x265c28(0x1f8)](_0x3e2bf6[_0x265c28(0x293)])[_0x265c28(0x1b8)];}else logger[_0x265c28(0x1bc)](_0x265c28(0x268)+_0x22d0bd[_0x265c28(0x159)]+_0x265c28(0x134)),_0x5db38a=![],_0x572b65=!![];}else{if(_0x3e2bf6['HesDh'](_0x3e2bf6['WwEXm'],_0x3e2bf6['WwEXm']))throw new _0x579626('Cluster\x20'+_0x5ba6e2+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else _0x5db38a=!![];}_0x3aec04=_0x22d0bd[_0x265c28(0x159)],_0x4ba814=_0x22d0bd[_0x265c28(0x227)][_0x265c28(0x237)](),_0xea956=_0x22d0bd[_0x265c28(0x1e1)];}}else{if(_0x22d0bd['gridProfile']){if(_0x3e2bf6['yNXuU'](_0x3e2bf6[_0x265c28(0x1be)],_0x3e2bf6[_0x265c28(0x13f)])){const _0x5cf167=_0x3e2bf6['gHqWC'][_0x265c28(0x1d8)]('|');let _0x36162e=0x0;while(!![]){switch(_0x5cf167[_0x36162e++]){case'0':_0x36b8b7['hubVersion']=_0x30dc65[_0x265c28(0x1d2)];continue;case'1':const _0x26401c={};_0x26401c[_0x265c28(0x18c)]=_0x254ae6[_0x265c28(0x23c)],_0x26401c[_0x265c28(0x18e)]=_0x162ce3,_0x6705d2[_0x265c28(0x192)](_0x26501a,_0x26401c);continue;case'2':_0x57f41c['info'](_0x3fe58c);continue;case'3':_0x1fb3c1[_0x265c28(0x227)]=_0x30c376;continue;case'4':_0x113751[_0x265c28(0x233)]=_0x38b36a[_0x265c28(0x233)];continue;case'5':_0x53c27e[_0x265c28(0x159)]=_0x20c5fd;continue;case'6':_0x176d17[_0x265c28(0x1c0)]=_0x5599d2;continue;case'7':_0x3220bd=_0x265c28(0x281)+_0x4d4b50+_0x265c28(0x280)+_0x257076+'\x27';continue;case'8':const _0x5a8075={};_0x5a8075[_0x265c28(0x18c)]=_0x427616['CLI_RUN_STARTED'],_0x5a8075[_0x265c28(0x18e)]=_0x3e2bf6[_0x265c28(0x264)],_0x3b372f[_0x265c28(0x192)](_0x5ca2f9,_0x5a8075);continue;}break;}}else global_registry[_0x265c28(0x1c6)]=_0x22d0bd['gridProfile'];}}global_registry[_0x265c28(0x1c4)]=_0x22d0bd[_0x265c28(0x1c4)];const _0x2afdc1={'method':_0x3e2bf6[_0x265c28(0x136)],'headers':_0x3e2bf6['nHqVC'](getAuthHeader,_0x13e15c[_0x265c28(0x217)][_0x265c28(0x23e)],_0x13e15c[_0x265c28(0x217)][_0x265c28(0x290)]),'throwHttpErrors':![]},_0x55cc8e={};_0x55cc8e[_0x265c28(0x1c4)]=_0x376e39;const _0x4a49fb=_0x55cc8e;_0x572b65&&(_0x3e2bf6[_0x265c28(0x140)](_0x3e2bf6['OLEzQ'],_0x3e2bf6[_0x265c28(0x181)])?(_0x4a49fb['region']=_0xea956,_0x4a49fb[_0x265c28(0x227)]=_0x4ba814,_0x4a49fb['newCluster']=!![]):_0x8c9fe3=!![]);const _0x29bc10=_0x265c28(0x1ab)+AG_API_URL+'/packages/cli/create-grid-checks',_0x4b80a8={'searchParams':_0x4a49fb,'throwHttpErrors':![],..._0x2afdc1},_0x2a0463=_0x4b80a8,_0x283550=await _0x3e2bf6[_0x265c28(0x143)](got,_0x29bc10,_0x2a0463);(_0x3e2bf6[_0x265c28(0x140)](_0x283550,null)||_0x3e2bf6[_0x265c28(0x20e)](_0x283550,undefined))&&(_0x3e2bf6[_0x265c28(0x149)](_0x3e2bf6[_0x265c28(0x238)],_0x3e2bf6['rAExO'])?(_0x5e0b5d=_0x3e2bf6[_0x265c28(0x137)],await _0x3e2bf6['HYwbM'](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6['oVfKp'],_0x3e2bf6[_0x265c28(0x1c5)]),logger[_0x265c28(0x1e6)](_0x5e0b5d),process[_0x265c28(0x17a)](0x1)):_0x36c8cd[_0x265c28(0x275)]=!![]);_0x3e2bf6[_0x265c28(0x21b)](_0x283550[_0x265c28(0x1bd)],0x191)&&(_0x3e2bf6[_0x265c28(0x273)](_0x3e2bf6[_0x265c28(0x163)],_0x3e2bf6[_0x265c28(0x21f)])?_0x42ebbd=null:(_0x5e0b5d=_0x3e2bf6[_0x265c28(0x241)],await _0x3e2bf6[_0x265c28(0x20d)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x220)],_0x3e2bf6[_0x265c28(0x1c5)]),logger[_0x265c28(0x1e6)](_0x5e0b5d),process[_0x265c28(0x17a)](0x1)));_0x3e2bf6['HesDh'](_0x283550[_0x265c28(0x1bd)],0xc8)&&(_0x3e2bf6[_0x265c28(0x19e)](_0x3e2bf6[_0x265c28(0x21d)],_0x3e2bf6[_0x265c28(0x1b4)])?_0x4ec7a5['isPrivateGrid']=!![]:(_0x5e0b5d=_0x265c28(0x24c)+JSON[_0x265c28(0x1fb)](_0x283550[_0x265c28(0x274)]),await _0x3e2bf6[_0x265c28(0x20d)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x266)],_0x3e2bf6[_0x265c28(0x1c5)]),logger['error'](_0x5e0b5d),process[_0x265c28(0x17a)](0x1)));const _0x306060=JSON[_0x265c28(0x1fc)](_0x283550[_0x265c28(0x274)]),_0x4ca6a4={};_0x4ca6a4[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x135)],_0x4ca6a4[_0x265c28(0x18e)]=_0x3e2bf6[_0x265c28(0x264)],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x4ca6a4);const _0x79a45c={};_0x79a45c[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x79a45c[_0x265c28(0x18e)]=_0x3e2bf6[_0x265c28(0x1ea)],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x79a45c);_0x306060[_0x265c28(0x259)]&&(_0x3e2bf6[_0x265c28(0x271)](_0x3e2bf6[_0x265c28(0x1ac)],_0x3e2bf6[_0x265c28(0x20a)])?(_0x5e0b5d=_0x265c28(0x1d5)+_0x376e39+_0x265c28(0x16d),await _0x3e2bf6[_0x265c28(0x1a8)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes['ERROR'],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x1e0)],_0x3e2bf6['BPPpR']),logger[_0x265c28(0x1e6)](_0x5e0b5d),process['exit'](0x1)):_0x13d5ff[_0x265c28(0x1e6)](_0x265c28(0x193)+_0x259fe9+'\x20\x0a'+_0x172e61['stringify'](_0x1d8fd0[_0x265c28(0x176)])));const _0x394083=_0x306060[_0x265c28(0x19a)];let _0xbdbab4=_0x394083[_0x306060['defaultGridProfile']];_0x22d0bd[_0x265c28(0x1c6)]&&(_0x3e2bf6[_0x265c28(0x24d)](_0x3e2bf6[_0x265c28(0x156)],_0x3e2bf6[_0x265c28(0x156)])?(_0x57a9e8[_0x265c28(0x1bc)](_0x265c28(0x268)+_0x33bb83[_0x265c28(0x159)]+_0x265c28(0x134)),_0x3991d5=![],_0x1f03a4=!![]):_0xbdbab4=_0x394083[_0x22d0bd['gridProfile']]);if(_0x3e2bf6[_0x265c28(0x149)](_0x5db38a,![])&&_0x3e2bf6[_0x265c28(0x15a)](_0x572b65,![])){if(_0x3e2bf6['QZlgM'](_0x3e2bf6['kSysK'],_0x3e2bf6[_0x265c28(0x26d)])){_0x3e2bf6[_0x265c28(0x1d3)](_0xbdbab4,undefined)&&(_0x3e2bf6['jjZku'](_0x3e2bf6['jxPqR'],_0x3e2bf6[_0x265c28(0x282)])?(_0x5e0b5d=_0x3e2bf6[_0x265c28(0x1b1)],await _0x3e2bf6[_0x265c28(0x1a8)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6['gkGBy'],_0x3e2bf6[_0x265c28(0x1c5)]),logger[_0x265c28(0x1e6)](_0x5e0b5d),process[_0x265c28(0x17a)](0x1)):_0x4a0a6e[_0x265c28(0x275)]=!![]);global_registry[_0x265c28(0x20c)]=_0xbdbab4['id'],_0x5e0b5d=_0x265c28(0x1fd)+_0x376e39+_0x265c28(0x152)+_0xbdbab4[_0x265c28(0x1f4)]+_0x265c28(0x27a),logger[_0x265c28(0x1bc)](_0x5e0b5d);const _0x379dba={};_0x379dba[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x379dba['message']=_0x5e0b5d,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x379dba),_0x4ba814=_0xbdbab4['cloudProvider'],_0x3aec04=_0xbdbab4[_0x265c28(0x159)],_0xea956=_0xbdbab4[_0x265c28(0x1e1)],_0x5a7d1a=_0xbdbab4[_0x265c28(0x257)],_0x3d58ee=_0xbdbab4[_0x265c28(0x20f)],_0x18801a=_0xbdbab4[_0x265c28(0x223)],_0xf35b14=_0xbdbab4['securityGroups'],_0x27c47f=_0xbdbab4[_0x265c28(0x23a)],_0x532b5e=_0xbdbab4[_0x265c28(0x205)],_0x5a52fc=_0xbdbab4[_0x265c28(0x1ca)],_0x48d3bc=_0xbdbab4[_0x265c28(0x1db)],_0x32ba03=_0x306060[_0x265c28(0x1d2)],_0x52bc86=_0x306060[_0x265c28(0x233)],_0x18801a&&_0x3e2bf6[_0x265c28(0x1dd)](_0x18801a[_0x265c28(0x195)],0x0)&&(_0x3e2bf6[_0x265c28(0x15a)](_0x3e2bf6[_0x265c28(0x21e)],_0x3e2bf6[_0x265c28(0x21e)])?_0x18801a=null:_0x3f8545=null),_0x27c47f&&_0x3e2bf6['gzRLH'](_0x27c47f[_0x265c28(0x195)],0x0)&&(_0x3e2bf6[_0x265c28(0x14a)](_0x3e2bf6[_0x265c28(0x224)],_0x3e2bf6[_0x265c28(0x224)])?_0x855786['info'](_0x265c28(0x15f)+_0x5ca249+'\x20'):_0x27c47f=null),_0x3e2bf6[_0x265c28(0x271)](_0xbdbab4['privateGrid'],undefined)&&_0xbdbab4[_0x265c28(0x25c)]&&(_0x3e2bf6['FjHpW'](_0x3e2bf6[_0x265c28(0x28e)],_0x3e2bf6[_0x265c28(0x166)])?(_0x4a3128=_0x2dc4be[_0x265c28(0x183)],_0x3c6a73=_0x3e2bf6[_0x265c28(0x1f7)]):global_registry[_0x265c28(0x275)]=!![]),_0x3e2bf6[_0x265c28(0x1cc)](updateGlobalRegistryWithConfig,_0x4ba814,_0x3aec04,_0xea956,_0x5a7d1a,_0x3d58ee,_0x532b5e,_0xbdbab4,_0x32ba03,_0x52bc86,_0x5a52fc,_0x48d3bc);}else _0x186d76[_0x265c28(0x27f)]();}else{if(_0x3e2bf6['haFUB'](_0x572b65,!![])){if(_0x3e2bf6[_0x265c28(0x1ba)](_0x3e2bf6[_0x265c28(0x23d)],_0x3e2bf6['LYskw'])){_0x5e0b5d='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x376e39,logger[_0x265c28(0x1bc)](_0x5e0b5d);const _0x57fad5={};_0x57fad5[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x57fad5[_0x265c28(0x18e)]=_0x5e0b5d,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x57fad5),_0x5a7d1a=_0xbdbab4['concurrency'],_0x3d58ee=_0xbdbab4[_0x265c28(0x20f)],_0x18801a=null,_0xf35b14=null,_0x27c47f=null,_0x532b5e=_0xbdbab4[_0x265c28(0x205)],_0x5a52fc=_0xbdbab4[_0x265c28(0x1ca)],_0x48d3bc=_0xbdbab4[_0x265c28(0x1db)],_0x32ba03=_0x306060['hubVersion'],_0x52bc86=_0x306060['browserVersion'];if(_0x3e2bf6[_0x265c28(0x18a)](_0xbdbab4['privateGrid'],undefined)&&_0xbdbab4[_0x265c28(0x25c)]){if(_0x3e2bf6[_0x265c28(0x1ba)](_0x3e2bf6[_0x265c28(0x22f)],_0x3e2bf6[_0x265c28(0x1ff)]))global_registry[_0x265c28(0x275)]=!![];else{const _0xb9a5dd={};_0xb9a5dd[_0x265c28(0x18c)]=_0x1055c4['LOG'],_0xb9a5dd[_0x265c28(0x18e)]=_0x349e5f,_0x14a9d0['sendEventToBackend'](_0x3105f2,_0xb9a5dd,_0x3e2bf6[_0x265c28(0x1c5)],!![]);}}_0x3e2bf6['NbhsW'](updateGlobalRegistryWithConfig,_0x4ba814,_0x3aec04,_0xea956,_0x5a7d1a,_0x3d58ee,_0x532b5e,_0xbdbab4,_0x32ba03,_0x52bc86,_0x5a52fc,_0x48d3bc);}else _0x29a86c[_0x265c28(0x1c6)]=_0x1a9209['gridProfile'];}else{if(_0x3e2bf6[_0x265c28(0x142)](_0x3e2bf6[_0x265c28(0x232)],_0x3e2bf6[_0x265c28(0x232)]))_0x3ca245=_0x3e2bf6[_0x265c28(0x1a9)];else{const _0x5534b8=_0x3e2bf6[_0x265c28(0x199)][_0x265c28(0x1d8)]('|');let _0x5b546c=0x0;while(!![]){switch(_0x5534b8[_0x5b546c++]){case'0':global_registry[_0x265c28(0x227)]=_0x4ba814;continue;case'1':global_registry[_0x265c28(0x1c0)]=_0xea956;continue;case'2':global_registry['browserVersion']=_0x306060[_0x265c28(0x233)];continue;case'3':logger[_0x265c28(0x1bc)](_0x5e0b5d);continue;case'4':const _0x16a91a={};_0x16a91a['type']=WS_EVENTS[_0x265c28(0x23c)],_0x16a91a[_0x265c28(0x18e)]=_0x5e0b5d,webSocketUtils['sendEventToBackend'](_0x5288b3,_0x16a91a);continue;case'5':_0x5e0b5d=_0x265c28(0x281)+_0x376e39+_0x265c28(0x280)+_0x3aec04+'\x27';continue;case'6':global_registry[_0x265c28(0x159)]=_0x3aec04;continue;case'7':const _0x8ba462={};_0x8ba462['type']=WS_EVENTS[_0x265c28(0x135)],_0x8ba462[_0x265c28(0x18e)]=_0x3e2bf6[_0x265c28(0x264)],webSocketUtils['sendEventToBackend'](_0x5288b3,_0x8ba462);continue;case'8':global_registry['hubVersion']=_0x306060[_0x265c28(0x1d2)];continue;}break;}}}}const _0x4a2e3c=await _0x3e2bf6['SEmPA'](getCloudProviderObject,_0x4ba814,_0x3aec04,_0x376e39,_0x5288b3,webSocketUtils,_0x22d0bd);_0x3e2bf6[_0x265c28(0x14b)](_0x4ba814,AZURE)&&_0x4a2e3c[_0x265c28(0x27f)]();let _0x1fb151;if(_0x3e2bf6[_0x265c28(0x1ad)](_0x5db38a,![])){_0x5e0b5d=_0x265c28(0x218)+_0xea956+').';const _0xf1016e={};_0xf1016e[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0xf1016e[_0x265c28(0x18e)]=_0x5e0b5d,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0xf1016e),logger[_0x265c28(0x1bc)](_0x5e0b5d);const _0x493cb8=await _0x4a2e3c[_0x265c28(0x240)]();if(_0x493cb8){const _0x225b86={};_0x225b86[_0x265c28(0x18c)]=WS_EVENTS['LOG'],_0x225b86['message']=_0x265c28(0x292)+_0x3aec04+_0x265c28(0x1a6),webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x225b86,_0x3e2bf6[_0x265c28(0x1cd)]),logger[_0x265c28(0x1bc)](_0x265c28(0x292)+_0x3aec04+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x5db38a=!![];if(_0x3e2bf6[_0x265c28(0x1ad)](_0x572b65,!![]))throw new Error(_0x265c28(0x292)+_0x3aec04+_0x265c28(0x27c));}else{const _0xb272dd={};_0xb272dd[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0xb272dd[_0x265c28(0x18e)]=_0x3e2bf6[_0x265c28(0x24e)],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0xb272dd),logger[_0x265c28(0x1bc)](_0x3e2bf6[_0x265c28(0x24e)]);const _0x3e2d7c=_0x3e2bf6[_0x265c28(0x1f2)](_0x18801a,null)&&_0x3e2bf6[_0x265c28(0x244)](_0x18801a,undefined),_0x4804d7=_0x3e2bf6[_0x265c28(0x1f2)](_0x27c47f,null)&&_0x3e2bf6['XNQHp'](_0x27c47f,undefined)&&_0x3e2bf6[_0x265c28(0x13e)](_0x27c47f[_0x265c28(0x195)],0x0);if(_0x3e2d7c){_0x3e2bf6[_0x265c28(0x13b)](_0x4804d7,![])&&(_0x5e0b5d=_0x3e2bf6[_0x265c28(0x1ce)],await _0x3e2bf6['Moepl'](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes['ERROR'],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x162)],_0x3e2bf6[_0x265c28(0x1c5)]),logger[_0x265c28(0x1e6)](_0x5e0b5d),process['exit'](0x1));const _0x31957b=await _0x4a2e3c[_0x265c28(0x277)](_0x18801a);_0x3e2bf6['IjUJz'](_0x31957b,![])?(_0x5e0b5d=_0x3e2bf6['JemiC'],await _0x3e2bf6[_0x265c28(0x25a)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x1c7)],_0x3e2bf6[_0x265c28(0x1c5)]),logger[_0x265c28(0x1e6)](_0x5e0b5d),process[_0x265c28(0x17a)](0x1)):logger[_0x265c28(0x1bc)](_0x265c28(0x15f)+_0x18801a+'\x20');const _0x3e7da5=await _0x4a2e3c[_0x265c28(0x1b9)](_0x27c47f,_0x18801a);_0x3e2bf6[_0x265c28(0x20e)](_0x3e7da5[0x0],![])?(_0x5e0b5d=_0x265c28(0x1c9)+JSON[_0x265c28(0x1fb)](_0x3e7da5[0x1])+_0x265c28(0x173)+_0x18801a+_0x265c28(0x182),await _0x3e2bf6[_0x265c28(0x1a8)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x1c2)],_0x3e2bf6[_0x265c28(0x1c5)]),logger[_0x265c28(0x1e6)](_0x5e0b5d),process['exit'](0x1)):logger['info'](_0x265c28(0x196)+JSON['stringify'](_0x27c47f)+'\x20'),await _0x4a2e3c[_0x265c28(0x226)](_0x18801a,_0x27c47f);}else{const _0x5caec5=_0x3e2bf6['ioNOF'][_0x265c28(0x1d8)]('|');let _0x49296d=0x0;while(!![]){switch(_0x5caec5[_0x49296d++]){case'0':const _0x50f5ee={};_0x50f5ee[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x50f5ee['message']=_0x3e2bf6['jkMBE'],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x50f5ee);continue;case'1':logger[_0x265c28(0x1bc)](_0x3e2bf6[_0x265c28(0x247)]);continue;case'2':logger[_0x265c28(0x1bc)](_0x3e2bf6[_0x265c28(0x145)]);continue;case'3':const _0x9844e9={};_0x9844e9[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x9844e9['message']=_0x3e2bf6[_0x265c28(0x145)],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x9844e9);continue;case'4':await _0x4a2e3c['setupNewCluster'](_0x18801a,_0x27c47f);continue;}break;}}}}_0x5db38a&&_0x3e2bf6['Fsceo'](_0x4ba814,AZURE)&&(await _0x4a2e3c['updateClusterAlreadyPresent'](),await _0x4a2e3c[_0x265c28(0x222)]());const [_0x56186f,_0x278ddd,_0x13fd7b,_0x3dd9eb,_0x4d610b,_0x27d665]=await _0x3e2bf6[_0x265c28(0x143)](createK8sClient,_0x4a2e3c,_0x22d0bd[_0x265c28(0x1cf)]);_0x3e2bf6[_0x265c28(0x1f5)](_0x5db38a,![])&&_0x3e2bf6[_0x265c28(0x1e4)](_0x4ba814,AWS)&&(global_registry[_0x265c28(0x18b)]=!![],_0x1fb151=await _0x4a2e3c[_0x265c28(0x204)](_0x56186f,_0x22d0bd));try{_0x291a58=_0x3e2bf6[_0x265c28(0x28c)](kebabCase,_0x376e39),logger['info'](_0x3e2bf6[_0x265c28(0x203)]);const _0x5bf243={};_0x5bf243[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x5bf243[_0x265c28(0x18e)]=_0x3e2bf6[_0x265c28(0x203)],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x5bf243);if(_0x3e2bf6[_0x265c28(0x201)](_0x291a58,_0x3e2bf6[_0x265c28(0x151)])){const _0x346636={};_0x346636[_0x265c28(0x1b6)]=_0x3e2bf6[_0x265c28(0x13d)],_0x346636[_0x265c28(0x1b3)]=_0x3e2bf6[_0x265c28(0x13d)];const _0x4ccaac={};_0x4ccaac[_0x265c28(0x1f4)]=_0x291a58,_0x4ccaac[_0x265c28(0x261)]=_0x346636;const _0x5721a7={};_0x5721a7[_0x265c28(0x1e7)]=_0x4ccaac;const _0x35eb01=_0x5721a7,_0x4a62a5={};_0x4a62a5[_0x265c28(0x274)]=_0x35eb01,await _0x56186f['createNamespace'](_0x4a62a5),logger[_0x265c28(0x1bc)](_0x3e2bf6[_0x265c28(0x169)]);}const _0x2ae883={};_0x2ae883['type']=WS_EVENTS['LOG'],_0x2ae883['message']=_0x3e2bf6['Lynwo'],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x2ae883);const _0x4d9762={};_0x4d9762[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x4d9762['message']=_0x3e2bf6[_0x265c28(0x211)],webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x4d9762),logger['info'](_0x3e2bf6[_0x265c28(0x25b)]);let _0x25f2c6={};_0x3e2bf6[_0x265c28(0x21c)](_0x4ba814,AZURE)&&(_0x25f2c6={'clientId':await _0x4a2e3c[_0x265c28(0x13a)](_0x265c28(0x295)+_0x3aec04)});await _0x3e2bf6[_0x265c28(0x150)](addGridComponents,_0x56186f,_0x278ddd,_0x13fd7b,_0x3dd9eb,_0x291a58,_0x3aec04,_0x1fb151,_0x4d610b,_0x27d665,_0x25f2c6),_0x5e0b5d=_0x3e2bf6['hSTNp'],logger[_0x265c28(0x1bc)](_0x5e0b5d);const _0x4fae11={};_0x4fae11[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x4fae11[_0x265c28(0x18e)]=_0x5e0b5d,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x4fae11),_0x5e0b5d=_0x3e2bf6['Cnsml'],logger[_0x265c28(0x1bc)](_0x5e0b5d);const _0x46fd04={};_0x46fd04['type']=WS_EVENTS['LOG'],_0x46fd04[_0x265c28(0x18e)]=_0x5e0b5d,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x46fd04),await _0x3e2bf6[_0x265c28(0x234)](waitForDeployment,_0x278ddd,_0x291a58,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x27d075=await _0x3e2bf6['XtJfn'](getNamespaceUID,_0x56186f,_0x291a58),_0x99f2f9=global_registry[_0x265c28(0x275)]?_0x3e2bf6[_0x265c28(0x214)]:_0x3e2bf6[_0x265c28(0x231)],_0x2822ad={};_0x2822ad[_0x265c28(0x1f4)]=_0x99f2f9,_0x2822ad[_0x265c28(0x180)]=_0x3e2bf6[_0x265c28(0x1e5)];const _0x2186d4=await _0x56186f[_0x265c28(0x255)](_0x2822ad);let _0x5a09a2=_0x4a2e3c[_0x265c28(0x258)](_0x2186d4)+'/'+_0x291a58,_0x293319=_0x3e2bf6['bRRVz'];try{const _0x3db0a7=_0x265c28(0x1ab)+AG_API_URL+_0x265c28(0x210)+_0x27d075,_0x8bac57=await _0x3e2bf6['lVmQm'](got,_0x3db0a7,_0x2afdc1);(_0x3e2bf6[_0x265c28(0x27b)](_0x8bac57,null)||_0x3e2bf6['chshj'](_0x8bac57,undefined))&&(_0x5e0b5d=_0x3e2bf6[_0x265c28(0x16c)],await _0x3e2bf6[_0x265c28(0x1dc)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6['VYsao'],_0x3e2bf6[_0x265c28(0x1c5)]),logger['error'](_0x5e0b5d),process[_0x265c28(0x17a)](0x1));_0x3e2bf6[_0x265c28(0x20e)](_0x8bac57[_0x265c28(0x1bd)],0x191)&&(_0x5e0b5d=_0x3e2bf6[_0x265c28(0x22b)],await _0x3e2bf6[_0x265c28(0x20d)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6['qzqsT'],_0x3e2bf6['BPPpR']),logger[_0x265c28(0x1e6)](_0x5e0b5d),process[_0x265c28(0x17a)](0x1));_0x3e2bf6[_0x265c28(0x14b)](_0x8bac57[_0x265c28(0x1bd)],0xc8)&&(_0x5e0b5d='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x8bac57),await _0x3e2bf6[_0x265c28(0x20d)](reportToGalactusAndSendToEDS,_0x22d0bd,_0x5288b3,_0x5e0b5d,messageTypes[_0x265c28(0x272)],_0x3e2bf6[_0x265c28(0x14f)],_0x3e2bf6[_0x265c28(0x27d)],_0x3e2bf6[_0x265c28(0x1c5)]),logger[_0x265c28(0x1e6)](_0x5e0b5d),process[_0x265c28(0x17a)](0x1));const _0x88b7e5=JSON[_0x265c28(0x1fc)](_0x8bac57['body']);_0x88b7e5[_0x265c28(0x183)]&&(_0x5a09a2=_0x88b7e5[_0x265c28(0x183)],_0x293319=_0x3e2bf6['SJabC']),global_registry[_0x265c28(0x275)]&&(_0x293319=_0x3e2bf6['bRRVz']);}catch(_0x121120){}_0x5e0b5d=_0x265c28(0x16f)+_0x5a09a2+'\x20',logger[_0x265c28(0x1bc)](_0x5e0b5d);const _0x3786c9={};_0x3786c9['type']=WS_EVENTS[_0x265c28(0x23c)],_0x3786c9[_0x265c28(0x18e)]=_0x5e0b5d,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x3786c9),_0x5e0b5d=_0x265c28(0x248)+_0x293319+_0x265c28(0x279)+_0x5a09a2+_0x265c28(0x242),logger[_0x265c28(0x1bc)](_0x5e0b5d);const _0x5c76d9={};_0x5c76d9['type']=WS_EVENTS[_0x265c28(0x23c)],_0x5c76d9[_0x265c28(0x18e)]=_0x5e0b5d,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x5c76d9);const _0x4f80d7={};_0x4f80d7[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x184)],_0x4f80d7[_0x265c28(0x18e)]=_0x265c28(0x245)+_0x5a09a2,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x4f80d7),await webSocketUtils[_0x265c28(0x25e)](0x7d0);}catch(_0xeb105){logger[_0x265c28(0x1e6)](_0x265c28(0x289)+_0xeb105+'\x20\x0a'+JSON[_0x265c28(0x1fb)](_0xeb105[_0x265c28(0x176)]));if(_0x3e2bf6[_0x265c28(0x21b)](_0x5db38a,![]))try{logger[_0x265c28(0x1bc)](_0x3e2bf6['mzXqi']),await _0x3e2bf6[_0x265c28(0x15c)](removeGridComponents,_0x56186f,_0x278ddd,_0x13fd7b,_0x3dd9eb,_0x291a58),await _0x4a2e3c[_0x265c28(0x165)](_0x56186f,global_registry[_0x265c28(0x1c0)]);}catch(_0x8bacc4){logger[_0x265c28(0x1e6)](_0x265c28(0x193)+_0x8bacc4+'\x20\x0a'+JSON['stringify'](_0x8bacc4[_0x265c28(0x176)]));}throw _0xeb105;}}catch(_0x356f9d){const _0x199549=_0x265c28(0x1b5)+_0x356f9d+'\x20\x0a'+JSON[_0x265c28(0x1fb)](_0x356f9d['stack']);if(_0x5288b3){const _0x55c5f0={};_0x55c5f0[_0x265c28(0x18c)]=WS_EVENTS[_0x265c28(0x23c)],_0x55c5f0[_0x265c28(0x18e)]=_0x199549,webSocketUtils[_0x265c28(0x192)](_0x5288b3,_0x55c5f0,_0x3e2bf6[_0x265c28(0x1c5)],!![]);}await webSocketUtils[_0x265c28(0x25e)](0x7d0);const _0x2e928d={};_0x2e928d[_0x265c28(0x1e6)]=_0x199549,await _0x3e2bf6['UrZYp'](sendInstrumentationEvent,_0x22d0bd,_0x3e2bf6[_0x265c28(0x14f)],messageTypes['ERROR'],_0x3e2bf6[_0x265c28(0x221)],_0x2e928d,_0x22d0bd),logger[_0x265c28(0x1e6)](_0x199549);}process[_0x265c28(0x17a)](0x0);};function a9_0x5f3b(){const _0x109410=['hqdum','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','bywCl','Grid\x20can\x20be\x20accessed\x20at:\x20','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','ZtnFo','\x20are\x20not\x20present\x20in\x20VPC:\x20','lWZXO','MewVT','stack','got','Cluster\x20created\x20successfully','hdhXF','exit','YfwRH','create-grid-called','nSiIi','Create\x20a\x20private/public\x20grid.','ingress-nginx-controller','namespace','OLEzQ','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','route53','CLI_RUN_FINISHED','create-grid-checks-grid-already-exists','Grid\x20spawned\x20on\x20the\x20cluster','NDpAI','<PasswordPlaceholder>','user','gkfhJ','isNewAWSCluster','type','tcARJ','message','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Grid\x20profile\x20fetched\x20from\x20backend','7|5|3|4|0|1|6|8|2','sendEventToBackend','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','RYhRk','length','Found\x20Subnets:\x20','gWrrz','nemLs','yLoFA','gridProfiles','command','../../cloudproviders/utils','create-grid-checks-auth-failed','qgExZ','Creating\x20namespace','20MTlWqw','RYNmN','1165OqaarL','sbzBA','addListeners','desc','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','DKMNx','wYqRG','bRRVz','wpdaw','https://','Yrdvk','chshj','debug','hIVjm','ahkCq','TnAnh','private-ingress-nginx-controller','managedBy','sTmev','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','createdBy','grYwU','argv','isSubnetsValid','HesDh','JmBcH','info','statusCode','nPPpS','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','clusterRegion','handler','ayNDS','181785fPvEbg','gridName','BPPpR','gridProfile','suTnI','uuid','Subnets:\x20','minNodes','cvoBt','uQQCd','YQQHe','RCMdL','skipTlsCertVerify','Namespace\x20Created','get-grid-url-non-200','hubVersion','mxTab','Spawning\x20Grid\x20on\x20the\x20Cluster','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','zeJhU','cFkib','split','svEGw','fpuCg','maxNodes','rYjpQ','KRNGY','create','pTyaz','zpieb','region','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','Namespace\x20created','Fsceo','ImpAN','error','metadata','grid-name','PQjqY','HrKlB','SGbsl','Fahnv','VrJjj','../../utils/utilityMethods','create-grid-checks-non-200','cloud-provider','KnHuq','qXVqa','http','name','kZAig','IQRwa','SJabC','help','yXvcz','uiXyS','stringify','parse','Will\x20be\x20spawning\x20the\x20grid\x20','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','UVsgR','description','WKtKo','INFO','pXrGT','setupAutoscaler','s3bucket','cBUNT','default','private-grid','bstackAccesskey','sLtYX','zUdLN','gridProfileId','CZbIy','TxaiE','instanceType','/packages/cli/get-grid-url?gridIdentifier=','ioFlR','skip-tls-cert-verify','9528WjXQOZ','qeDyr','3174eQxGkp','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Browserstack','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','CkUTL','ZlCgP','uwhMa','FdFzd','XuRpz','yPKFb','nGgcN','nYkyS','nCILa','createOtherResources','vpc','PpBPM','LeBYW','setupNewCluster','cloudProvider','ftXlZ','builder','non-aws-azure-cluster','RoxPy','grid-spawning-failed','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','bjYsO','GosrD','wQphg','sQesQ','browserVersion','homdx','create-grid-checks-invalid-profile','usage','toLowerCase','rAExO','IUMDr','subnets','../../config/logger','LOG','jxOHL','username','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','isClusterPresent','usXWk','/wd/hub','string','XNQHp','CLI\x20run\x20finished:\x20','newCluster','jkMBE','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','mudMN','Spawning\x20grid\x20on\x20to\x20the\x20cluster','yolsC','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','wKuPD','hJktC','iDfyZ','Skip\x20insecure\x20cert\x20verification.','https','176260aApyUg','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Create\x20a\x20new\x20Automation\x20grid.','readNamespacedService','CiMDo','concurrency','getGridHostname','alreadyPresent','HYwbM','aDHgb','privateGrid','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','delay','true','3|10|2|6|5|12|8|4|14|9|11|1|13|0|7','annotations','NhKwG','LxwAp','zSyIW','Adding\x20Websocket\x20listeners','qUttc','ingress-nginx','Cluster:\x20','zWyCy','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','OnWJX','8|7|2|1|3|6|5|0|4','btkLf','MJurl','XBDwh','replace','QZlgM','ERROR','yJilE','body','isPrivateGrid','yNXuU','isVPCPresent','get-grid-url-null-response','://','\x27\x20grid\x20profile','EPKqJ','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','dzmiy','bstackUsername','sendResourceDataToHST','\x20in\x20existing\x20cluster\x20\x27','Spawning\x20the\x20grid\x20','YkidT','GET','bkZfc','UgvlT','existsSync','options','MkBLi','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','McVWD','miXUJ','IUbcD','ijwfQ','AqieN','epilogue','password','boolean','Cluster\x20','bterC','GhAoN','turboscale-managed-identity-','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','CLI_RUN_STARTED','JchLE','Wzqyi','get-grid-url-auth-failed','<UsernamePlaceholder>','getResourceClientId','dxdBX','pre-spawned-invalid-vpc','UxLCz','owIgB','GMAiY','jCLsc','gfoIc','TzUkH','lVmQm','kajFz','jpGsI','icxSf','koLLk','pre-spawned-invalid-subnets','gzRLH','GPjDf','tUsXg','43011PQLzBH','requestId','SUnWQ','YJyrt','vSvNq','MANHy','\x20using\x20\x27','LDbSD','488790JRiNyk','pre-spawned-subnets-not-selected','SYfCn','cluster-name','WYGNx','clusterName','Regvk','EsNPA','gXWmG','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','itEvH','Found\x20VPC:\x20','175818naaITj','WebSocket','WEFFU','tjzPW','grid-profile','deleteCluster','HijBM','SzbDt','reconnecting-websocket','ZdHhr','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','184kgqtuK'];a9_0x5f3b=function(){return _0x109410;};return a9_0x5f3b();}
|
|
1
|
+
const a9_0x25d38f=a9_0x100f;function a9_0x23af(){const _0x18a968=['get-grid-url-null-response','hkiDA','zofgN','prespawned-cluster-args-not-passed','8207442xKnhte','oYlAY','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','yjGfh','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','fbyGs','http','INZxN','../../utils/gridComponents','../../utils/createk8sClient','erSZt','MfRCm','fgJGQ','stack','4|1|2|3|0','minNodes','DddZU','UgZKS','pKQfb','CLI\x20run\x20started','qMCbL','isSubnetsValid','ZIMXV','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','readNamespacedService','user','connectionTimeout','../../utils/webSocketUtils','length','bxuQB','8SHXAZg','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','description','CLI\x20run\x20finished:\x20','get-grid-url-auth-failed','desc','\x20in\x20existing\x20cluster\x20\x27','yLqIa','jobwR','epilogue','KhcUE','SWRkG','browserVersion','GlzZE','gqOUT','MEGoy','<UsernamePlaceholder>','maxNodes','wbdTq','oZwyz','vAPUN','qvSrK','QgwDi','create-grid-checks-null-response','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','6564edWYCk','loxej','dXhUi','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','IlJPH','FoUTX','oCsEP','8|2|4|0|5|7|3|6|1','annotations','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.','hubVersion','FUriH','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Adding\x20Websocket\x20listeners','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','ingress-nginx-controller','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','s3bucket','SomEx','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','true','gridName','FIrYr','error','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','reconnecting-websocket','QTTky','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','\x20are\x20not\x20present\x20in\x20VPC:\x20','UwteZ','EhqDk','Ziutm','bstackUsername','EfxyZ','AHvbO','INFO','create-grid-called','region','Grid\x20spawned\x20on\x20the\x20cluster','SlDdh','HXYhM','Skip\x20insecure\x20cert\x20verification.','lvezc','ikYVQ','hBxUU','securityGroups','privateGrid','tkJCY','Found\x20Subnets:\x20','Create\x20a\x20private/public\x20grid.','pPUqA','TYaaa','950839eLtbQB','IHLOC','managedBy','QZpZZ','38607813xpOCKO','tvUtI','create','options','YQzXm','name','sDmFA','BvGeN','hyuHC','NUByv','hCgGu','cKMtE','zvifk','RwrKR','isVPCPresent','Yixgg','KvyGy','../../config/constants','ubmzS','newCluster','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','VqHoc','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','isClusterPresent','ieqMB','cWXIf','split','readFileSync','https','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','ooFWt','clusterName','Ydzmq','\x27\x20grid\x20profile','CjESJ','argv','Create\x20a\x20new\x20Automation\x20grid.','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','sendResourceDataToHST','alreadyPresent','command','bnDIW','IVWGW','route53','createNamespace','requestId','RImhh','skipTlsCertVerify','updateClusterAlreadyPresent','sendEventToBackend','grid-spawning-failed','gNZBr','WebSocket','MjEYC','cypps','ommOW','ytAMu','ReiLd','Deleting\x20the\x20CloudFormation\x20Stacks','lqicq','getResourceClientId','defaultGridProfile','Will\x20be\x20spawning\x20the\x20grid\x20','KUIph','builder','private-ingress-nginx-controller','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','ouyOb','IgEtl','YOCDD','iNUKW','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Found\x20VPC:\x20','subnets','jwIVS','lqsqc','grid-name','CFzmr','Namespace\x20created','Spawning\x20Grid\x20on\x20the\x20Cluster','KnDWv','../../utils/instrumentationUtils','Namespace\x20Created','cloudProvider','cKLgg','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','ZeLeY','../../utils/utilityMethods','string','Spawning\x20grid\x20on\x20to\x20the\x20cluster','Cluster\x20created\x20successfully','createdBy','TsRYc','pxjrW','vpc','Rqdol','Browserstack','init-not-called','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','got','<PasswordPlaceholder>','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','MIgef','poGSx','boolean','toLowerCase','gridProfiles','ekNsZ','RApes','XlSwc','/packages/cli/create-grid-checks','ourHg','XyeVW','NklHQ','ZdGIw','/wd/hub','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','obPJv','info','QvUox','replace','instanceType','brLQZ','VhgOb','ilhBD','Giokz','warn','PeNxs','message','ePwYq','isPrivateGrid','usage','handler','diwRZ','private-grid','WrqYE','getGridHostname','KsqfB','UNuBT','type','Cluster\x20','ERROR','cluster-name','body','create-grid-checks-auth-failed','MzLht','CLI_RUN_FINISHED','IBRNk','ihPaK','cloud-provider','bAnJH','debug','wjHKl','DbgLW','WMVoh','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','CLI_RUN_STARTED','wsBHr','2622ykOIGD','parse','pre-spawned-subnets-not-selected','gridProfile','DndgY','fePvk','rNiUn','8490384ATUqVc','tFaRS','help','Cluster:\x20','default','bpJID','bstackAccesskey','username','gridProfileId','2|5|1|3|6|7|8|4|0','ingress-nginx','axeLC','JqmNn','gpMYH','7575725VFEzoM','concurrency','Spawning\x20the\x20grid\x20','AvxPA','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','statusCode','YQdtI','lugdx','grid','TxTtg','isNewAWSCluster','oqoPc','rdaJM','://','clusterRegion','skip-tls-cert-verify','delay','LOG','JISOK','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','YLNZT','https://','grid-profile','mwBgK','stringify','0|4|11|12|5|3|13|10|6|14|1|9|7|8|2','GBKFS','qlkNq','password','aKrym','tlmmR','bgZgQ','GET','2833820NDQDtm','nftCV','mPQIm','exit','ORoQz'];a9_0x23af=function(){return _0x18a968;};return a9_0x23af();}(function(_0x2c75f5,_0x68cbd9){const _0x58e870=a9_0x100f,_0x4c7f24=_0x2c75f5();while(!![]){try{const _0x3f2aac=parseInt(_0x58e870(0x1f1))/0x1+-parseInt(_0x58e870(0x2cb))/0x2+-parseInt(_0x58e870(0x294))/0x3*(-parseInt(_0x58e870(0x1bd))/0x4)+parseInt(_0x58e870(0x2a9))/0x5+parseInt(_0x58e870(0x2d4))/0x6+parseInt(_0x58e870(0x29b))/0x7+parseInt(_0x58e870(0x2f2))/0x8*(-parseInt(_0x58e870(0x1f5))/0x9);if(_0x3f2aac===_0x68cbd9)break;else _0x4c7f24['push'](_0x4c7f24['shift']());}catch(_0x1e31e3){_0x4c7f24['push'](_0x4c7f24['shift']());}}}(a9_0x23af,0xbd0e2));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x25d38f(0x1d6)),got=require(a9_0x25d38f(0x259)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x25d38f(0x2ef)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x25d38f(0x24d)),{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_0x25d38f(0x206)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x25d38f(0x2dc)),{createK8sClient}=require(a9_0x25d38f(0x2dd)),{sendInstrumentationEvent}=require(a9_0x25d38f(0x247));function a9_0x100f(_0xd5dfd9,_0x2c3f8b){const _0x23af01=a9_0x23af();return a9_0x100f=function(_0x100fbc,_0xa3539){_0x100fbc=_0x100fbc-0x1b3;let _0x4c3c86=_0x23af01[_0x100fbc];return _0x4c3c86;},a9_0x100f(_0xd5dfd9,_0x2c3f8b);}exports[a9_0x25d38f(0x21d)]=a9_0x25d38f(0x2b2),exports[a9_0x25d38f(0x2f7)]=a9_0x25d38f(0x219),exports[a9_0x25d38f(0x235)]=function(_0x200b15){const _0x150fdd=a9_0x25d38f,_0x4e008c={};_0x4e008c[_0x150fdd(0x299)]=_0x150fdd(0x25b),_0x4e008c[_0x150fdd(0x27b)]=_0x150fdd(0x24e),_0x4e008c[_0x150fdd(0x204)]=_0x150fdd(0x1d5),_0x4e008c[_0x150fdd(0x241)]=_0x150fdd(0x209),_0x4e008c['ZeLeY']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4e008c[_0x150fdd(0x239)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4e008c[_0x150fdd(0x1fc)]=_0x150fdd(0x1ee),_0x4e008c[_0x150fdd(0x223)]=_0x150fdd(0x1e6),_0x4e008c['YQzXm']=_0x150fdd(0x25e),_0x4e008c[_0x150fdd(0x20e)]=_0x150fdd(0x29d);const _0x4e754b=_0x4e008c,_0x243951={};_0x243951['description']=_0x4e754b[_0x150fdd(0x299)],_0x243951[_0x150fdd(0x281)]=_0x4e754b[_0x150fdd(0x27b)];const _0x405caf={};_0x405caf[_0x150fdd(0x2f4)]=_0x4e754b['Yixgg'],_0x405caf[_0x150fdd(0x281)]=_0x4e754b[_0x150fdd(0x27b)];const _0x885d26={};_0x885d26[_0x150fdd(0x2f4)]=_0x4e754b['lqsqc'],_0x885d26['type']=_0x4e754b[_0x150fdd(0x27b)];const _0x4ae267={};_0x4ae267[_0x150fdd(0x2f4)]=_0x4e754b[_0x150fdd(0x24c)],_0x4ae267['type']=_0x4e754b[_0x150fdd(0x27b)];const _0x1a8db7={};_0x1a8db7[_0x150fdd(0x2f4)]=_0x4e754b[_0x150fdd(0x239)],_0x1a8db7['type']=_0x4e754b[_0x150fdd(0x27b)];const _0x5c8b84={};_0x5c8b84[_0x150fdd(0x2f4)]=_0x4e754b[_0x150fdd(0x1fc)],_0x5c8b84['type']=_0x4e754b[_0x150fdd(0x27b)];const _0x2259dd={};_0x2259dd[_0x150fdd(0x2f4)]=_0x4e754b[_0x150fdd(0x223)],_0x2259dd['type']=_0x4e754b[_0x150fdd(0x1f9)],_0x2259dd['default']=![];const _0x400d34={};return _0x400d34[_0x150fdd(0x242)]=_0x243951,_0x400d34[_0x150fdd(0x2c0)]=_0x405caf,_0x400d34[_0x150fdd(0x284)]=_0x885d26,_0x400d34[_0x150fdd(0x28b)]=_0x4ae267,_0x400d34[_0x150fdd(0x1e2)]=_0x1a8db7,_0x400d34[_0x150fdd(0x27c)]=_0x5c8b84,_0x400d34[_0x150fdd(0x2b9)]=_0x2259dd,_0x200b15[_0x150fdd(0x279)](HELP_HEADER_MESSAGE[_0x150fdd(0x1f7)])[_0x150fdd(0x2fb)](HELP_FOOTER_MESSAGE)[_0x150fdd(0x1f8)](_0x400d34)[_0x150fdd(0x29d)](_0x4e754b[_0x150fdd(0x20e)])['argv'];},exports[a9_0x25d38f(0x27a)]=async function(_0x359906){const _0x10f748=a9_0x25d38f,_0x3f0e25={'jobwR':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','ooFWt':_0x10f748(0x24e),'DiJDw':_0x10f748(0x1d5),'ytAMu':_0x10f748(0x209),'ikYVQ':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','cKMtE':_0x10f748(0x291),'Ziutm':'Create\x20a\x20private/public\x20grid.','QItTD':_0x10f748(0x1e6),'aKrym':_0x10f748(0x25e),'QgwDi':_0x10f748(0x29d),'ePwYq':_0x10f748(0x1d4),'SomEx':_0x10f748(0x1c4),'YLNZT':_0x10f748(0x2e7),'MjEYC':_0x10f748(0x211),'ourHg':_0x10f748(0x2c3),'YOCDD':function(_0x4ee0c3,_0x5b6062,_0x9e8cae,_0x146ce9,_0x4cea8c,_0x33b3a7,_0x58d278,_0x401e40,_0xcd0dd7,_0x5292de,_0x51a39a,_0x383104){return _0x4ee0c3(_0x5b6062,_0x9e8cae,_0x146ce9,_0x4cea8c,_0x33b3a7,_0x58d278,_0x401e40,_0xcd0dd7,_0x5292de,_0x51a39a,_0x383104);},'oqoPc':function(_0x59e0b9,_0x513129){return _0x59e0b9!==_0x513129;},'pKQfb':_0x10f748(0x2da),'VhgOb':_0x10f748(0x274),'AvxPA':function(_0x2108d7,_0x343f98){return _0x2108d7===_0x343f98;},'IlJPH':function(_0x384db9){return _0x384db9();},'sdCXI':function(_0xbf1094){return _0xbf1094();},'tvUtI':function(_0x44f116,_0x156151){return _0x44f116!==_0x156151;},'IHLOC':_0x10f748(0x2ea),'MfRCm':_0x10f748(0x1f0),'bAnJH':_0x10f748(0x1bc),'QTTky':function(_0x34a4da,_0x3010e6,_0x4c5a5b,_0x4a470c,_0xb32349,_0x24cd01,_0x580837){return _0x34a4da(_0x3010e6,_0x4c5a5b,_0x4a470c,_0xb32349,_0x24cd01,_0x580837);},'QZpZZ':_0x10f748(0x1e1),'QvUox':_0x10f748(0x257),'RApes':function(_0x10bfeb){return _0x10bfeb();},'dhBOZ':_0x10f748(0x1b3),'fgJGQ':_0x10f748(0x25a),'ZzqTG':_0x10f748(0x1ca),'bnDIW':_0x10f748(0x23a),'NklHQ':_0x10f748(0x287),'WrqYE':function(_0x478ccc,_0x42cbe5){return _0x478ccc!==_0x42cbe5;},'cKLgg':_0x10f748(0x2d1),'UwteZ':_0x10f748(0x21f),'oZwyz':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','JqmNn':function(_0x3f753c,_0x1f6471,_0x3fcb37,_0x19bbb0,_0x4a9018,_0x107627,_0x4b8f27,_0x4be9d9){return _0x3f753c(_0x1f6471,_0x3fcb37,_0x19bbb0,_0x4a9018,_0x107627,_0x4b8f27,_0x4be9d9);},'UgZKS':_0x10f748(0x2d3),'AJJAT':_0x10f748(0x1fe),'AncGq':_0x10f748(0x289),'ORoQz':_0x10f748(0x23d),'bpJID':function(_0x5f1807,_0x325c7e,_0x45543d,_0x3fd636,_0x1c73e7,_0x23e8d4,_0x299563,_0x1606b0){return _0x5f1807(_0x325c7e,_0x45543d,_0x3fd636,_0x1c73e7,_0x23e8d4,_0x299563,_0x1606b0);},'oCsEP':'non-aws-azure-cluster','obPJv':function(_0x2c03e,_0x51de1c){return _0x2c03e===_0x51de1c;},'fbyGs':_0x10f748(0x1d1),'lelvR':_0x10f748(0x1fb),'XlSwc':function(_0x10c34a,_0x197c25,_0x470d99,_0x2fe045,_0x2bda8b,_0x25949f,_0x4f4c2f){return _0x10c34a(_0x197c25,_0x470d99,_0x2fe045,_0x2bda8b,_0x25949f,_0x4f4c2f);},'AFiTw':'mHuwi','wEwfp':_0x10f748(0x1db),'CFzmr':function(_0x28c6ad,_0x5173cf){return _0x28c6ad!==_0x5173cf;},'jrqun':_0x10f748(0x240),'DndgY':'PYIwb','ClNQA':'dSFVr','CZJMr':'YAXLV','GlzZE':_0x10f748(0x2ca),'SlDdh':function(_0x3b5eaa,_0x529e3f,_0x34d64e){return _0x3b5eaa(_0x529e3f,_0x34d64e);},'ieqMB':_0x10f748(0x1b5),'Figwv':function(_0x46648d,_0x2ccc65,_0x1b80d1){return _0x46648d(_0x2ccc65,_0x1b80d1);},'rdaJM':function(_0x3b57f8,_0x3ceb32){return _0x3b57f8===_0x3ceb32;},'INZxN':_0x10f748(0x29a),'KnDWv':_0x10f748(0x24b),'zBsHm':_0x10f748(0x1ba),'pxjrW':function(_0x7f2c9a,_0x3fd15c){return _0x7f2c9a===_0x3fd15c;},'mPQIm':function(_0x5ac2db,_0x3cd923){return _0x5ac2db!==_0x3cd923;},'MEGoy':_0x10f748(0x2a8),'AHvbO':_0x10f748(0x1cb),'tkJCY':function(_0x25d3df,_0x579763,_0x3b1c0a,_0x23609a,_0x15d052,_0x8b5beb,_0x1b856d,_0x145ad0){return _0x25d3df(_0x579763,_0x3b1c0a,_0x23609a,_0x15d052,_0x8b5beb,_0x1b856d,_0x145ad0);},'pPUqA':_0x10f748(0x286),'DddZU':function(_0x124f57,_0x1b9288){return _0x124f57!==_0x1b9288;},'EfxyZ':'KsaMU','ZpFTh':_0x10f748(0x1e5),'JISOK':'create-grid-checks-non-200','ilhBD':'Grid\x20profile\x20fetched\x20from\x20backend','SxVhS':_0x10f748(0x205),'TxTtg':_0x10f748(0x1e7),'PeNxs':'create-grid-checks-grid-already-exists','CjESJ':function(_0x165e49,_0x4b3292){return _0x165e49===_0x4b3292;},'iNUKW':_0x10f748(0x1be),'XaDhV':function(_0x5a057f,_0xb56f5){return _0x5a057f===_0xb56f5;},'yjGfh':_0x10f748(0x2e8),'TsRYc':function(_0x35fda1,_0x282647){return _0x35fda1===_0x282647;},'ubmzS':_0x10f748(0x2f1),'GBKFS':_0x10f748(0x1c0),'RwrKR':'create-grid-checks-invalid-profile','Giokz':function(_0xdc7211,_0x288b03){return _0xdc7211===_0x288b03;},'cypps':_0x10f748(0x1d3),'WDeBm':_0x10f748(0x293),'EduUW':'WvvHg','OPzxJ':_0x10f748(0x2d2),'DbgLW':function(_0x16bf9f,_0x3b44c3){return _0x16bf9f!==_0x3b44c3;},'lugdx':function(_0x4981c2,_0x96672){return _0x4981c2!==_0x96672;},'JSbmV':_0x10f748(0x2c9),'hCgGu':_0x10f748(0x28e),'qlkNq':function(_0x1c0eb0,_0x4e50a7){return _0x1c0eb0!==_0x4e50a7;},'KUIph':_0x10f748(0x290),'DIoYu':_0x10f748(0x270),'tlmmR':function(_0x3afc79,_0x44abd4){return _0x3afc79!==_0x44abd4;},'hgiwa':function(_0x4cf992,_0x4d0363){return _0x4cf992!==_0x4d0363;},'BHKFI':_0x10f748(0x2d5),'goJBx':_0x10f748(0x25c),'axeLC':_0x10f748(0x228),'qvSrK':_0x10f748(0x2a4),'FUriH':_0x10f748(0x1d8),'Bgmjd':function(_0x53567d,_0x38c1d6){return _0x53567d!=_0x38c1d6;},'OqORE':function(_0x119ba8,_0x30a1ac){return _0x119ba8!==_0x30a1ac;},'LQBli':function(_0xb239b0,_0x1f5c5c){return _0xb239b0>_0x1f5c5c;},'vxHkJ':_0x10f748(0x2d8),'zvifk':function(_0x38eb7c,_0x48c353,_0x3ea262,_0x10a751,_0x504341,_0x2165bc,_0xe46904,_0x33878e){return _0x38eb7c(_0x48c353,_0x3ea262,_0x10a751,_0x504341,_0x2165bc,_0xe46904,_0x33878e);},'KhcUE':_0x10f748(0x296),'ZdGIw':_0x10f748(0x1c9),'lqicq':'pre-spawned-invalid-vpc','hBxUU':'pre-spawned-invalid-subnets','dXhUi':_0x10f748(0x2e2),'YQdtI':_0x10f748(0x250),'yLqIa':_0x10f748(0x1c6),'ihPaK':function(_0x28d9a1,_0x13036d,_0x3b0625){return _0x28d9a1(_0x13036d,_0x3b0625);},'ijmAA':function(_0x2a438c,_0x4839df){return _0x2a438c===_0x4839df;},'ELOoz':function(_0x4c2348,_0x36859d){return _0x4c2348(_0x36859d);},'VqHoc':'Creating\x20namespace','AUFnw':_0x10f748(0x29f),'Rqdol':_0x10f748(0x256),'vAPUN':_0x10f748(0x248),'FoUTX':_0x10f748(0x244),'poGSx':_0x10f748(0x24f),'ReiLd':_0x10f748(0x245),'hRXhd':function(_0x4ef187,_0x2777c6,_0x3612fd,_0x43809d,_0x39861b,_0x4e2f51,_0x3e2418,_0x11bb2,_0x57dfcd,_0x3b794e,_0x567510){return _0x4ef187(_0x2777c6,_0x3612fd,_0x43809d,_0x39861b,_0x4e2f51,_0x3e2418,_0x11bb2,_0x57dfcd,_0x3b794e,_0x567510);},'nftCV':_0x10f748(0x1e3),'XyeVW':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Ydzmq':function(_0x32ea8a,_0x52c246,_0x245f6f,_0x1b2ef6,_0x43c6ba){return _0x32ea8a(_0x52c246,_0x245f6f,_0x1b2ef6,_0x43c6ba);},'RGRab':_0x10f748(0x236),'fvIUN':_0x10f748(0x1cc),'ESNXz':_0x10f748(0x2a5),'UBVKm':function(_0x34643b,_0x5d7daf,_0x2efb1e){return _0x34643b(_0x5d7daf,_0x2efb1e);},'hyuHC':function(_0xabfa0e,_0x3ec66c){return _0xabfa0e===_0x3ec66c;},'UNuBT':function(_0x384d58,_0x488934){return _0x384d58===_0x488934;},'gqOUT':_0x10f748(0x2bd),'tFaRS':_0x10f748(0x2d0),'wTbrY':function(_0x33e8f8,_0x3c8c1d){return _0x33e8f8===_0x3c8c1d;},'mwBgK':_0x10f748(0x212),'SWRkG':_0x10f748(0x2f6),'ekNsZ':function(_0x43e21d,_0x2b2fa1,_0xb9e1c3,_0x109d78,_0x404f78,_0x522c5f,_0x15f62f,_0x1c472b){return _0x43e21d(_0x2b2fa1,_0xb9e1c3,_0x109d78,_0x404f78,_0x522c5f,_0x15f62f,_0x1c472b);},'ommOW':'get-grid-url-non-200','KsqfB':_0x10f748(0x22f),'jPMhf':function(_0x3ac19f,_0x9e89ee,_0x460066,_0x57a768,_0x112399,_0x4e3b08){return _0x3ac19f(_0x9e89ee,_0x460066,_0x57a768,_0x112399,_0x4e3b08);},'erSZt':_0x10f748(0x227)};let _0x25b476=![],_0xee1da0=![],_0x204b4b,_0x3bdaf1,_0x5ecbd0,_0x4f4492,_0x885aaf,_0x13d0f8,_0x36c8af,_0x2056e4,_0x3cdaf2,_0x47d4ad,_0x559318,_0x51ad25,_0x2bf7e4,_0x11822f,_0xf7eb94=0x1,_0x354a00=0xe;try{global_registry[_0x10f748(0x222)]=_0x3f0e25[_0x10f748(0x1c1)](uuidv4),global_registry['isPrivateGrid']=![];!fs['existsSync'](_0x3f0e25['sdCXI'](getCredentialsPath))&&(_0x3f0e25[_0x10f748(0x1f6)](_0x3f0e25[_0x10f748(0x1f2)],_0x3f0e25[_0x10f748(0x2df)])?(console['error'](_0x3f0e25[_0x10f748(0x28c)]),await _0x3f0e25[_0x10f748(0x1d7)](sendInstrumentationEvent,_0x359906,_0x3f0e25['QZpZZ'],messageTypes['ERROR'],_0x3f0e25[_0x10f748(0x26d)],null,_0x359906),process[_0x10f748(0x2ce)](0x1)):_0x3a58f9=_0xb696a1[_0x31a95e['gridProfile']]);await _0x3f0e25['QTTky'](sendInstrumentationEvent,_0x359906,_0x3f0e25[_0x10f748(0x1f4)],messageTypes[_0x10f748(0x1e0)],null,null,_0x359906);const _0x59a2bd=JSON[_0x10f748(0x295)](fs[_0x10f748(0x210)](_0x3f0e25[_0x10f748(0x262)](getCredentialsPath)));global_registry[_0x10f748(0x1dd)]=_0x59a2bd['Browserstack'][_0x10f748(0x2a2)],global_registry[_0x10f748(0x2a1)]=_0x59a2bd['Browserstack'][_0x10f748(0x2c6)];const _0x5d29cc=WS_ENDPOINT[_0x10f748(0x26e)](_0x3f0e25['dhBOZ'],_0x59a2bd[_0x10f748(0x256)][_0x10f748(0x2a2)])[_0x10f748(0x26e)](_0x3f0e25[_0x10f748(0x2e0)],_0x59a2bd[_0x10f748(0x256)][_0x10f748(0x2c6)]),_0x2a0ed9={};_0x2a0ed9[_0x10f748(0x229)]=ws,_0x2a0ed9[_0x10f748(0x2ee)]=0x36ee80,_0x51ad25=new ReconnectingWebSocket(_0x5d29cc,[],_0x2a0ed9),logger[_0x10f748(0x28d)](_0x3f0e25['ZzqTG']),webSocketUtils['addListeners'](_0x51ad25,_0x359906[_0x10f748(0x2ed)],_0x359906[_0x10f748(0x2c6)]);const _0x3eb429=_0x359906[_0x10f748(0x1d2)]||DEFAULT_GRID_NAME;if(_0x359906[_0x10f748(0x214)]||_0x359906[_0x10f748(0x249)]||_0x359906[_0x10f748(0x1e2)]){if(_0x3f0e25[_0x10f748(0x1f6)](_0x3f0e25[_0x10f748(0x21e)],_0x3f0e25[_0x10f748(0x267)])){!(_0x359906['clusterName']&&_0x359906[_0x10f748(0x249)]&&_0x359906[_0x10f748(0x1e2)])&&(_0x3f0e25[_0x10f748(0x27d)](_0x3f0e25[_0x10f748(0x24a)],_0x3f0e25[_0x10f748(0x1da)])?(_0x204b4b=_0x3f0e25[_0x10f748(0x1b6)],await _0x3f0e25[_0x10f748(0x2a7)](reportToGalactusAndSendToEDS,_0x359906,_0x51ad25,_0x204b4b,messageTypes[_0x10f748(0x283)],_0x3f0e25[_0x10f748(0x1f4)],_0x3f0e25[_0x10f748(0x2e5)],_0x3f0e25[_0x10f748(0x277)]),logger[_0x10f748(0x1d4)](_0x204b4b),process['exit'](0x1)):(_0x3cf62d[_0x10f748(0x1e2)]=_0x5e6a6e,_0x26f93b[_0x10f748(0x249)]=_0x51f4cb,_0x912ec2[_0x10f748(0x208)]=!![]));if(![AWS,AZURE,GCP]['includes'](_0x359906[_0x10f748(0x249)][_0x10f748(0x25f)]())){if(_0x3f0e25[_0x10f748(0x27d)](_0x3f0e25['AJJAT'],_0x3f0e25['AncGq']))_0x204b4b=_0x3f0e25[_0x10f748(0x2cf)],await _0x3f0e25[_0x10f748(0x2a0)](reportToGalactusAndSendToEDS,_0x359906,_0x51ad25,_0x204b4b,messageTypes[_0x10f748(0x283)],_0x3f0e25['QZpZZ'],_0x3f0e25[_0x10f748(0x1c3)],_0x3f0e25[_0x10f748(0x277)]),logger['error'](_0x204b4b),process[_0x10f748(0x2ce)](0x1);else{const _0x559650={};_0x559650['description']=_0x3f0e25[_0x10f748(0x2fa)],_0x559650[_0x10f748(0x281)]=_0x3f0e25[_0x10f748(0x213)];const _0x50b6cf={};_0x50b6cf[_0x10f748(0x2f4)]=_0x3f0e25['DiJDw'],_0x50b6cf['type']=_0x3f0e25['ooFWt'];const _0x2af171={};_0x2af171[_0x10f748(0x2f4)]=_0x3f0e25[_0x10f748(0x22d)],_0x2af171['type']=_0x3f0e25[_0x10f748(0x213)];const _0x36237f={};_0x36237f[_0x10f748(0x2f4)]=_0x3f0e25[_0x10f748(0x1e8)],_0x36237f[_0x10f748(0x281)]=_0x3f0e25[_0x10f748(0x213)];const _0x149850={};_0x149850[_0x10f748(0x2f4)]=_0x3f0e25[_0x10f748(0x200)],_0x149850[_0x10f748(0x281)]=_0x3f0e25[_0x10f748(0x213)];const _0x318be6={};_0x318be6['description']=_0x3f0e25[_0x10f748(0x1dc)],_0x318be6[_0x10f748(0x281)]=_0x3f0e25['ooFWt'];const _0x5aa77f={};_0x5aa77f[_0x10f748(0x2f4)]=_0x3f0e25['QItTD'],_0x5aa77f['type']=_0x3f0e25[_0x10f748(0x2c7)],_0x5aa77f[_0x10f748(0x29f)]=![];const _0x36ac01={};return _0x36ac01['grid-name']=_0x559650,_0x36ac01[_0x10f748(0x2c0)]=_0x50b6cf,_0x36ac01[_0x10f748(0x284)]=_0x2af171,_0x36ac01['cloud-provider']=_0x36237f,_0x36ac01['region']=_0x149850,_0x36ac01[_0x10f748(0x27c)]=_0x318be6,_0x36ac01[_0x10f748(0x2b9)]=_0x5aa77f,_0x3cb834[_0x10f748(0x279)](_0x4b78b3[_0x10f748(0x1f7)])[_0x10f748(0x2fb)](_0x2b3392)['options'](_0x36ac01)[_0x10f748(0x29d)](_0x3f0e25[_0x10f748(0x1b9)])[_0x10f748(0x218)];}}if(_0x359906[_0x10f748(0x1eb)]&&_0x3f0e25[_0x10f748(0x26b)](_0x359906[_0x10f748(0x1eb)][_0x10f748(0x25f)](),_0x3f0e25[_0x10f748(0x2d9)])){if(_0x3f0e25[_0x10f748(0x26b)](_0x3f0e25['lelvR'],_0x3f0e25['lelvR']))global_registry[_0x10f748(0x278)]=!![];else{const _0x3cb917={};_0x3cb917[_0x10f748(0x281)]=_0x40165a[_0x10f748(0x2bb)],_0x3cb917['message']=_0x507d60,_0x429007['sendEventToBackend'](_0x3c1d97,_0x3cb917,_0x3f0e25[_0x10f748(0x277)],!![]);}}global_registry[_0x10f748(0x249)]=_0x359906['cloudProvider'],global_registry['clusterRegion']=_0x359906[_0x10f748(0x1e2)],global_registry[_0x10f748(0x214)]=_0x359906['clusterName'];const _0x5812af=await _0x3f0e25['XlSwc'](getCloudProviderObject,_0x359906[_0x10f748(0x249)],_0x359906[_0x10f748(0x214)],_0x3eb429,_0x51ad25,webSocketUtils,_0x359906),_0x46ed27=await _0x5812af[_0x10f748(0x20c)]();!_0x46ed27?_0x3f0e25[_0x10f748(0x2b5)](_0x3f0e25['AFiTw'],_0x3f0e25['wEwfp'])?(logger[_0x10f748(0x26c)](_0x10f748(0x29e)+_0x359906[_0x10f748(0x214)]+_0x10f748(0x1cd)),_0x25b476=![],_0xee1da0=!![]):(_0x55a1cc[_0x10f748(0x26c)](_0x10f748(0x29e)+_0x3c2761['clusterName']+_0x10f748(0x1cd)),_0x33012d=![],_0x161f89=!![]):_0x3f0e25[_0x10f748(0x243)](_0x3f0e25['jrqun'],_0x3f0e25[_0x10f748(0x298)])?_0x25b476=!![]:_0x5d8e0d[_0x10f748(0x26c)](_0x10f748(0x23e)+_0x2b0eb9+'\x20'),_0x5ecbd0=_0x359906['clusterName'],_0x3bdaf1=_0x359906[_0x10f748(0x249)][_0x10f748(0x25f)](),_0x4f4492=_0x359906[_0x10f748(0x1e2)];}else _0x3e6761[_0x10f748(0x21b)]();}else{if(_0x359906[_0x10f748(0x297)]){if(_0x3f0e25[_0x10f748(0x2ac)](_0x3f0e25['ClNQA'],_0x3f0e25['CZJMr'])){const _0x272139=_0x3f0e25[_0x10f748(0x1cf)]['split']('|');let _0x27e3a7=0x0;while(!![]){switch(_0x272139[_0x27e3a7++]){case'0':const _0x303e45={};_0x303e45['type']=_0x24d2c7[_0x10f748(0x2bb)],_0x303e45['message']=_0x3661dd,_0x4dbf6c[_0x10f748(0x226)](_0x4f5c2c,_0x303e45);continue;case'1':_0x49dd20[_0x10f748(0x2fe)]=_0x2288b['browserVersion'];continue;case'2':_0x45b7b0=_0x10f748(0x2ab)+_0x279655+_0x10f748(0x2f8)+_0xc16757+'\x27';continue;case'3':_0x43aa98[_0x10f748(0x214)]=_0x9812e6;continue;case'4':_0xa3b3c4['info'](_0x4f84f4);continue;case'5':_0x2214c2[_0x10f748(0x249)]=_0x19d440;continue;case'6':_0x42e3d6[_0x10f748(0x1c7)]=_0x5d3062[_0x10f748(0x1c7)];continue;case'7':_0x20a7f9[_0x10f748(0x2b8)]=_0x45fec7;continue;case'8':const _0x393108={};_0x393108[_0x10f748(0x281)]=_0x216f45[_0x10f748(0x292)],_0x393108[_0x10f748(0x276)]=_0x3f0e25['YLNZT'],_0x361b78[_0x10f748(0x226)](_0x3dd84a,_0x393108);continue;}break;}}else global_registry[_0x10f748(0x297)]=_0x359906['gridProfile'];}}global_registry[_0x10f748(0x1d2)]=_0x359906[_0x10f748(0x1d2)];const _0x437381={'method':_0x3f0e25[_0x10f748(0x2ff)],'headers':_0x3f0e25[_0x10f748(0x1e4)](getAuthHeader,_0x59a2bd[_0x10f748(0x256)][_0x10f748(0x2a2)],_0x59a2bd[_0x10f748(0x256)][_0x10f748(0x2c6)]),'throwHttpErrors':![]},_0x3c7109={};_0x3c7109[_0x10f748(0x1d2)]=_0x3eb429;const _0x20dfec=_0x3c7109;_0xee1da0&&(_0x3f0e25['WrqYE'](_0x3f0e25[_0x10f748(0x20d)],_0x3f0e25['ieqMB'])?(_0x1aa959=_0x7b608d['route53'],_0xd83d3a=_0x3f0e25[_0x10f748(0x22a)]):(_0x20dfec[_0x10f748(0x1e2)]=_0x4f4492,_0x20dfec['cloudProvider']=_0x3bdaf1,_0x20dfec[_0x10f748(0x208)]=!![]));const _0x1d6fdc=_0x10f748(0x2bf)+AG_API_URL+_0x10f748(0x264),_0x39b171={'searchParams':_0x20dfec,'throwHttpErrors':![],..._0x437381},_0x54ee49=_0x39b171,_0x2ce676=await _0x3f0e25['Figwv'](got,_0x1d6fdc,_0x54ee49);(_0x3f0e25['AvxPA'](_0x2ce676,null)||_0x3f0e25[_0x10f748(0x2b6)](_0x2ce676,undefined))&&(_0x3f0e25['oqoPc'](_0x3f0e25[_0x10f748(0x2db)],_0x3f0e25[_0x10f748(0x2db)])?_0x368735[_0x10f748(0x1d4)](_0x10f748(0x2d6)+_0x403f61+'\x20\x0a'+_0x360f83[_0x10f748(0x2c2)](_0x387206[_0x10f748(0x2e1)])):(_0x204b4b=_0x3f0e25[_0x10f748(0x246)],await _0x3f0e25[_0x10f748(0x2a0)](reportToGalactusAndSendToEDS,_0x359906,_0x51ad25,_0x204b4b,messageTypes[_0x10f748(0x283)],_0x3f0e25[_0x10f748(0x1f4)],_0x3f0e25['zBsHm'],_0x3f0e25[_0x10f748(0x277)]),logger['error'](_0x204b4b),process['exit'](0x1)));_0x3f0e25[_0x10f748(0x253)](_0x2ce676[_0x10f748(0x2af)],0x191)&&(_0x3f0e25[_0x10f748(0x2cd)](_0x3f0e25[_0x10f748(0x301)],_0x3f0e25[_0x10f748(0x301)])?_0x229751[_0x10f748(0x26c)](_0x10f748(0x1ed)+_0x38df3c['stringify'](_0x3623e5)+'\x20'):(_0x204b4b=_0x3f0e25[_0x10f748(0x1df)],await _0x3f0e25['tkJCY'](reportToGalactusAndSendToEDS,_0x359906,_0x51ad25,_0x204b4b,messageTypes[_0x10f748(0x283)],_0x3f0e25[_0x10f748(0x1f4)],_0x3f0e25[_0x10f748(0x1ef)],_0x3f0e25[_0x10f748(0x277)]),logger[_0x10f748(0x1d4)](_0x204b4b),process[_0x10f748(0x2ce)](0x1)));_0x3f0e25[_0x10f748(0x2e4)](_0x2ce676[_0x10f748(0x2af)],0xc8)&&(_0x3f0e25[_0x10f748(0x2ac)](_0x3f0e25[_0x10f748(0x1de)],_0x3f0e25['ZpFTh'])?_0x18008d['isPrivateGrid']=!![]:(_0x204b4b=_0x10f748(0x1bb)+JSON[_0x10f748(0x2c2)](_0x2ce676[_0x10f748(0x285)]),await _0x3f0e25[_0x10f748(0x2a7)](reportToGalactusAndSendToEDS,_0x359906,_0x51ad25,_0x204b4b,messageTypes[_0x10f748(0x283)],_0x3f0e25[_0x10f748(0x1f4)],_0x3f0e25[_0x10f748(0x2bc)],_0x3f0e25['ePwYq']),logger[_0x10f748(0x1d4)](_0x204b4b),process[_0x10f748(0x2ce)](0x1)));const _0x155e98=JSON['parse'](_0x2ce676[_0x10f748(0x285)]),_0x2a8891={};_0x2a8891[_0x10f748(0x281)]=WS_EVENTS['CLI_RUN_STARTED'],_0x2a8891[_0x10f748(0x276)]=_0x3f0e25[_0x10f748(0x2be)],webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x2a8891);const _0x3bc906={};_0x3bc906['type']=WS_EVENTS['LOG'],_0x3bc906[_0x10f748(0x276)]=_0x3f0e25[_0x10f748(0x272)],webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x3bc906);_0x155e98[_0x10f748(0x21c)]&&(_0x3f0e25['obPJv'](_0x3f0e25['SxVhS'],_0x3f0e25[_0x10f748(0x2b3)])?_0x183997=!![]:(_0x204b4b=_0x10f748(0x2f3)+_0x3eb429+_0x10f748(0x2ad),await _0x3f0e25[_0x10f748(0x2a0)](reportToGalactusAndSendToEDS,_0x359906,_0x51ad25,_0x204b4b,messageTypes[_0x10f748(0x283)],_0x3f0e25[_0x10f748(0x1f4)],_0x3f0e25[_0x10f748(0x275)],_0x3f0e25[_0x10f748(0x277)]),logger[_0x10f748(0x1d4)](_0x204b4b),process['exit'](0x1)));const _0x49b7a4=_0x155e98[_0x10f748(0x260)];let _0x4c2dbd=_0x49b7a4[_0x155e98[_0x10f748(0x232)]];_0x359906[_0x10f748(0x297)]&&(_0x3f0e25[_0x10f748(0x217)](_0x3f0e25[_0x10f748(0x23c)],_0x3f0e25['iNUKW'])?_0x4c2dbd=_0x49b7a4[_0x359906[_0x10f748(0x297)]]:_0x1da7b1[_0x10f748(0x297)]=_0x444dd5[_0x10f748(0x297)]);if(_0x3f0e25['CjESJ'](_0x25b476,![])&&_0x3f0e25[_0x10f748(0x26b)](_0xee1da0,![])){if(_0x3f0e25['XaDhV'](_0x3f0e25[_0x10f748(0x2d7)],_0x3f0e25[_0x10f748(0x2d7)])){_0x3f0e25[_0x10f748(0x26b)](_0x4c2dbd,undefined)&&(_0x3f0e25[_0x10f748(0x252)](_0x3f0e25['ubmzS'],_0x3f0e25[_0x10f748(0x207)])?(_0x204b4b=_0x3f0e25[_0x10f748(0x2c4)],await _0x3f0e25[_0x10f748(0x2a7)](reportToGalactusAndSendToEDS,_0x359906,_0x51ad25,_0x204b4b,messageTypes['ERROR'],_0x3f0e25['QZpZZ'],_0x3f0e25[_0x10f748(0x202)],_0x3f0e25[_0x10f748(0x277)]),logger['error'](_0x204b4b),process[_0x10f748(0x2ce)](0x1)):_0x40a4cc['isPrivateGrid']=!![]);global_registry[_0x10f748(0x2a3)]=_0x4c2dbd['id'],_0x204b4b=_0x10f748(0x233)+_0x3eb429+'\x20using\x20\x27'+_0x4c2dbd[_0x10f748(0x1fa)]+_0x10f748(0x216),logger[_0x10f748(0x26c)](_0x204b4b);const _0xb74fe7={};_0xb74fe7[_0x10f748(0x281)]=WS_EVENTS[_0x10f748(0x2bb)],_0xb74fe7['message']=_0x204b4b,webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0xb74fe7),_0x3bdaf1=_0x4c2dbd[_0x10f748(0x249)],_0x5ecbd0=_0x4c2dbd[_0x10f748(0x214)],_0x4f4492=_0x4c2dbd[_0x10f748(0x1e2)],_0x885aaf=_0x4c2dbd['concurrency'],_0x13d0f8=_0x4c2dbd[_0x10f748(0x26f)],_0x36c8af=_0x4c2dbd[_0x10f748(0x254)],_0x2056e4=_0x4c2dbd[_0x10f748(0x1ea)],_0x3cdaf2=_0x4c2dbd[_0x10f748(0x23f)],_0x47d4ad=_0x4c2dbd[_0x10f748(0x1ce)],_0xf7eb94=_0x4c2dbd['minNodes'],_0x354a00=_0x4c2dbd[_0x10f748(0x1b4)],_0x2bf7e4=_0x155e98[_0x10f748(0x1c7)],_0x11822f=_0x155e98[_0x10f748(0x2fe)];if(_0x36c8af&&_0x3f0e25[_0x10f748(0x273)](_0x36c8af[_0x10f748(0x2f0)],0x0)){if(_0x3f0e25['XaDhV'](_0x3f0e25[_0x10f748(0x22b)],_0x3f0e25['WDeBm']))throw new _0x4452ab(_0x10f748(0x282)+_0x44d54d+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else _0x36c8af=null;}if(_0x3cdaf2&&_0x3f0e25[_0x10f748(0x273)](_0x3cdaf2['length'],0x0)){if(_0x3f0e25[_0x10f748(0x2e4)](_0x3f0e25['EduUW'],_0x3f0e25['OPzxJ']))_0x3cdaf2=null;else{const _0x1de099=_0x3f0e25[_0x10f748(0x265)][_0x10f748(0x20f)]('|');let _0x169808=0x0;while(!![]){switch(_0x1de099[_0x169808++]){case'0':_0x4dfb3f=_0x10f748(0x21a)+_0x10e606;continue;case'1':_0x58cf89=_0x41cc85[_0x10f748(0x1b4)];continue;case'2':_0x3f0e25[_0x10f748(0x23b)](_0x4c9434,_0x110992,_0x451158,_0x33ca7e,_0x5c02aa,_0x3c08d7,_0x21bbb8,_0x4f99fa,_0x3b4f91,_0x1ed04c,_0x2ad26c,_0x123544);continue;case'3':_0x596fac=null;continue;case'4':_0x533a0f[_0x10f748(0x26c)](_0xfaf46b);continue;case'5':_0x32e239=_0x1ba917[_0x10f748(0x26f)];continue;case'6':_0x34decb=_0x1eead6[_0x10f748(0x1ce)];continue;case'7':_0x795158=_0x488db5['browserVersion'];continue;case'8':_0x3f0e25['oqoPc'](_0x460896[_0x10f748(0x1eb)],_0x527f68)&&_0x35a37b[_0x10f748(0x1eb)]&&(_0x385320[_0x10f748(0x278)]=!![]);continue;case'9':_0x3f25a4=_0x4cdf7d[_0x10f748(0x1c7)];continue;case'10':_0x5c6d98=null;continue;case'11':const _0x3094ed={};_0x3094ed[_0x10f748(0x281)]=_0x2fddd9[_0x10f748(0x2bb)],_0x3094ed[_0x10f748(0x276)]=_0x1f7c9f,_0x3337f3[_0x10f748(0x226)](_0x21553f,_0x3094ed);continue;case'12':_0x4334ec=_0x334bdc['concurrency'];continue;case'13':_0x48f0b7=null;continue;case'14':_0x5efb5c=_0x54a52d[_0x10f748(0x2e3)];continue;}break;}}}_0x3f0e25[_0x10f748(0x28f)](_0x4c2dbd[_0x10f748(0x1eb)],undefined)&&_0x4c2dbd['privateGrid']&&(_0x3f0e25[_0x10f748(0x2b1)](_0x3f0e25['JSbmV'],_0x3f0e25[_0x10f748(0x1ff)])?global_registry[_0x10f748(0x278)]=!![]:_0x138442=_0x3f0e25[_0x10f748(0x2e6)]),_0x3f0e25[_0x10f748(0x23b)](updateGlobalRegistryWithConfig,_0x3bdaf1,_0x5ecbd0,_0x4f4492,_0x885aaf,_0x13d0f8,_0x47d4ad,_0x4c2dbd,_0x2bf7e4,_0x11822f,_0xf7eb94,_0x354a00);}else{const _0x829e02={};_0x829e02['type']=_0x3bbeca[_0x10f748(0x2bb)],_0x829e02[_0x10f748(0x276)]=_0x10f748(0x282)+_0x16ff52+_0x10f748(0x26a),_0x5690de[_0x10f748(0x226)](_0xf8e5fa,_0x829e02,_0x3f0e25[_0x10f748(0x271)]),_0x1884c3[_0x10f748(0x26c)](_0x10f748(0x282)+_0x52a1ef+_0x10f748(0x26a)),_0x21844f=!![];if(_0x3f0e25[_0x10f748(0x2ac)](_0x50b843,!![]))throw new _0x3b4abe('Cluster\x20'+_0x2a823e+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}else{if(_0x3f0e25[_0x10f748(0x2ac)](_0xee1da0,!![])){if(_0x3f0e25[_0x10f748(0x2c5)](_0x3f0e25[_0x10f748(0x234)],_0x3f0e25['DIoYu'])){_0x204b4b=_0x10f748(0x21a)+_0x3eb429,logger[_0x10f748(0x26c)](_0x204b4b);const _0x14819b={};_0x14819b['type']=WS_EVENTS[_0x10f748(0x2bb)],_0x14819b[_0x10f748(0x276)]=_0x204b4b,webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x14819b),_0x885aaf=_0x4c2dbd[_0x10f748(0x2aa)],_0x13d0f8=_0x4c2dbd[_0x10f748(0x26f)],_0x36c8af=null,_0x2056e4=null,_0x3cdaf2=null,_0x47d4ad=_0x4c2dbd[_0x10f748(0x1ce)],_0xf7eb94=_0x4c2dbd['minNodes'],_0x354a00=_0x4c2dbd[_0x10f748(0x1b4)],_0x2bf7e4=_0x155e98[_0x10f748(0x1c7)],_0x11822f=_0x155e98[_0x10f748(0x2fe)],_0x3f0e25[_0x10f748(0x2c8)](_0x4c2dbd[_0x10f748(0x1eb)],undefined)&&_0x4c2dbd['privateGrid']&&(_0x3f0e25['hgiwa'](_0x3f0e25['BHKFI'],_0x3f0e25['goJBx'])?global_registry[_0x10f748(0x278)]=!![]:_0x44c750=null),_0x3f0e25[_0x10f748(0x23b)](updateGlobalRegistryWithConfig,_0x3bdaf1,_0x5ecbd0,_0x4f4492,_0x885aaf,_0x13d0f8,_0x47d4ad,_0x4c2dbd,_0x2bf7e4,_0x11822f,_0xf7eb94,_0x354a00);}else _0x36ff9e[_0x10f748(0x278)]=!![];}else{if(_0x3f0e25[_0x10f748(0x2c5)](_0x3f0e25[_0x10f748(0x2a6)],_0x3f0e25[_0x10f748(0x2a6)]))_0x24f364=null;else{const _0x5aa19a=_0x3f0e25[_0x10f748(0x1b8)][_0x10f748(0x20f)]('|');let _0x971be1=0x0;while(!![]){switch(_0x5aa19a[_0x971be1++]){case'0':global_registry[_0x10f748(0x2fe)]=_0x155e98[_0x10f748(0x2fe)];continue;case'1':logger[_0x10f748(0x26c)](_0x204b4b);continue;case'2':const _0x534197={};_0x534197['type']=WS_EVENTS['CLI_RUN_STARTED'],_0x534197['message']=_0x3f0e25['YLNZT'],webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x534197);continue;case'3':const _0x367374={};_0x367374[_0x10f748(0x281)]=WS_EVENTS[_0x10f748(0x2bb)],_0x367374['message']=_0x204b4b,webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x367374);continue;case'4':global_registry[_0x10f748(0x1c7)]=_0x155e98[_0x10f748(0x1c7)];continue;case'5':_0x204b4b=_0x10f748(0x2ab)+_0x3eb429+_0x10f748(0x2f8)+_0x5ecbd0+'\x27';continue;case'6':global_registry[_0x10f748(0x249)]=_0x3bdaf1;continue;case'7':global_registry[_0x10f748(0x2b8)]=_0x4f4492;continue;case'8':global_registry[_0x10f748(0x214)]=_0x5ecbd0;continue;}break;}}}}const _0x20eac7=await _0x3f0e25['QTTky'](getCloudProviderObject,_0x3bdaf1,_0x5ecbd0,_0x3eb429,_0x51ad25,webSocketUtils,_0x359906);_0x3f0e25[_0x10f748(0x2e4)](_0x3bdaf1,AZURE)&&_0x20eac7[_0x10f748(0x21b)]();let _0x4ec91c;if(_0x3f0e25[_0x10f748(0x26b)](_0x25b476,![])){_0x204b4b=_0x10f748(0x238)+_0x4f4492+').';const _0x3e3fe6={};_0x3e3fe6[_0x10f748(0x281)]=WS_EVENTS[_0x10f748(0x2bb)],_0x3e3fe6[_0x10f748(0x276)]=_0x204b4b,webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x3e3fe6),logger[_0x10f748(0x26c)](_0x204b4b);const _0x5d2544=await _0x20eac7[_0x10f748(0x20c)]();if(_0x5d2544){const _0x7f4a4b={};_0x7f4a4b['type']=WS_EVENTS[_0x10f748(0x2bb)],_0x7f4a4b[_0x10f748(0x276)]=_0x10f748(0x282)+_0x5ecbd0+_0x10f748(0x26a),webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x7f4a4b,_0x3f0e25['VhgOb']),logger[_0x10f748(0x26c)]('Cluster\x20'+_0x5ecbd0+_0x10f748(0x26a)),_0x25b476=!![];if(_0x3f0e25[_0x10f748(0x273)](_0xee1da0,!![]))throw new Error(_0x10f748(0x282)+_0x5ecbd0+_0x10f748(0x2eb));}else{const _0xae26d5={};_0xae26d5[_0x10f748(0x281)]=WS_EVENTS['LOG'],_0xae26d5[_0x10f748(0x276)]=_0x3f0e25[_0x10f748(0x1c8)],webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0xae26d5),logger['info'](_0x3f0e25[_0x10f748(0x1c8)]);const _0xd876d1=_0x3f0e25['Bgmjd'](_0x36c8af,null)&&_0x3f0e25['lugdx'](_0x36c8af,undefined),_0x5cf046=_0x3f0e25['Bgmjd'](_0x3cdaf2,null)&&_0x3f0e25['OqORE'](_0x3cdaf2,undefined)&&_0x3f0e25['LQBli'](_0x3cdaf2['length'],0x0);if(_0xd876d1){_0x3f0e25[_0x10f748(0x252)](_0x5cf046,![])&&(_0x204b4b=_0x3f0e25['vxHkJ'],await _0x3f0e25[_0x10f748(0x201)](reportToGalactusAndSendToEDS,_0x359906,_0x51ad25,_0x204b4b,messageTypes['ERROR'],_0x3f0e25[_0x10f748(0x1f4)],_0x3f0e25[_0x10f748(0x2fc)],_0x3f0e25[_0x10f748(0x277)]),logger[_0x10f748(0x1d4)](_0x204b4b),process['exit'](0x1));const _0x26a602=await _0x20eac7[_0x10f748(0x203)](_0x36c8af);_0x3f0e25[_0x10f748(0x273)](_0x26a602,![])?(_0x204b4b=_0x3f0e25[_0x10f748(0x268)],await _0x3f0e25[_0x10f748(0x1ec)](reportToGalactusAndSendToEDS,_0x359906,_0x51ad25,_0x204b4b,messageTypes[_0x10f748(0x283)],_0x3f0e25[_0x10f748(0x1f4)],_0x3f0e25[_0x10f748(0x230)],_0x3f0e25[_0x10f748(0x277)]),logger[_0x10f748(0x1d4)](_0x204b4b),process['exit'](0x1)):logger['info'](_0x10f748(0x23e)+_0x36c8af+'\x20');const _0x5e06c3=await _0x20eac7[_0x10f748(0x2e9)](_0x3cdaf2,_0x36c8af);_0x3f0e25[_0x10f748(0x253)](_0x5e06c3[0x0],![])?(_0x204b4b='Subnets:\x20'+JSON['stringify'](_0x5e06c3[0x1])+_0x10f748(0x1d9)+_0x36c8af+_0x10f748(0x237),await _0x3f0e25[_0x10f748(0x1ec)](reportToGalactusAndSendToEDS,_0x359906,_0x51ad25,_0x204b4b,messageTypes['ERROR'],_0x3f0e25[_0x10f748(0x1f4)],_0x3f0e25[_0x10f748(0x1e9)],_0x3f0e25[_0x10f748(0x277)]),logger[_0x10f748(0x1d4)](_0x204b4b),process[_0x10f748(0x2ce)](0x1)):logger[_0x10f748(0x26c)](_0x10f748(0x1ed)+JSON[_0x10f748(0x2c2)](_0x3cdaf2)+'\x20'),await _0x20eac7['setupNewCluster'](_0x36c8af,_0x3cdaf2);}else{const _0x200b00=_0x3f0e25[_0x10f748(0x1bf)][_0x10f748(0x20f)]('|');let _0xe3c61a=0x0;while(!![]){switch(_0x200b00[_0xe3c61a++]){case'0':logger['info'](_0x3f0e25['YQdtI']);continue;case'1':logger[_0x10f748(0x26c)](_0x3f0e25[_0x10f748(0x2f9)]);continue;case'2':await _0x20eac7['setupNewCluster'](_0x36c8af,_0x3cdaf2);continue;case'3':const _0x1065b2={};_0x1065b2[_0x10f748(0x281)]=WS_EVENTS['LOG'],_0x1065b2[_0x10f748(0x276)]=_0x3f0e25[_0x10f748(0x2b0)],webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x1065b2);continue;case'4':const _0x3a34df={};_0x3a34df[_0x10f748(0x281)]=WS_EVENTS['LOG'],_0x3a34df[_0x10f748(0x276)]=_0x3f0e25[_0x10f748(0x2f9)],webSocketUtils['sendEventToBackend'](_0x51ad25,_0x3a34df);continue;}break;}}}}_0x25b476&&_0x3f0e25[_0x10f748(0x2b6)](_0x3bdaf1,AZURE)&&(await _0x20eac7[_0x10f748(0x225)](),await _0x20eac7['createOtherResources']());const [_0x116b97,_0x202cb8,_0x8c61b8,_0x22e7e2,_0x5b354d,_0x441c30]=await _0x3f0e25['ihPaK'](createK8sClient,_0x20eac7,_0x359906[_0x10f748(0x224)]);_0x3f0e25[_0x10f748(0x252)](_0x25b476,![])&&_0x3f0e25['ijmAA'](_0x3bdaf1,AWS)&&(global_registry[_0x10f748(0x2b4)]=!![],_0x4ec91c=await _0x20eac7['setupAutoscaler'](_0x116b97,_0x359906));try{_0x559318=_0x3f0e25['ELOoz'](kebabCase,_0x3eb429),logger['info'](_0x3f0e25['VqHoc']);const _0x577861={};_0x577861[_0x10f748(0x281)]=WS_EVENTS[_0x10f748(0x2bb)],_0x577861[_0x10f748(0x276)]=_0x3f0e25[_0x10f748(0x20a)],webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x577861);if(_0x3f0e25[_0x10f748(0x2e4)](_0x559318,_0x3f0e25['AUFnw'])){const _0x4204e7={};_0x4204e7[_0x10f748(0x251)]=_0x3f0e25[_0x10f748(0x255)],_0x4204e7[_0x10f748(0x1f3)]=_0x3f0e25['Rqdol'];const _0x1ad56d={};_0x1ad56d[_0x10f748(0x1fa)]=_0x559318,_0x1ad56d[_0x10f748(0x1c5)]=_0x4204e7;const _0x4650e1={};_0x4650e1['metadata']=_0x1ad56d;const _0x19da79=_0x4650e1,_0x2ef3cc={};_0x2ef3cc[_0x10f748(0x285)]=_0x19da79,await _0x116b97[_0x10f748(0x221)](_0x2ef3cc),logger[_0x10f748(0x26c)](_0x3f0e25[_0x10f748(0x1b7)]);}const _0x49a90a={};_0x49a90a[_0x10f748(0x281)]=WS_EVENTS[_0x10f748(0x2bb)],_0x49a90a[_0x10f748(0x276)]=_0x3f0e25[_0x10f748(0x1c2)],webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x49a90a);const _0x2d72c={};_0x2d72c[_0x10f748(0x281)]=WS_EVENTS[_0x10f748(0x2bb)],_0x2d72c['message']=_0x3f0e25[_0x10f748(0x25d)],webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x2d72c),logger[_0x10f748(0x26c)](_0x3f0e25[_0x10f748(0x22e)]);let _0x453873={};_0x3f0e25['Giokz'](_0x3bdaf1,AZURE)&&(_0x453873={'clientId':await _0x20eac7[_0x10f748(0x231)]('turboscale-managed-identity-'+_0x5ecbd0)});await _0x3f0e25['hRXhd'](addGridComponents,_0x116b97,_0x202cb8,_0x8c61b8,_0x22e7e2,_0x559318,_0x5ecbd0,_0x4ec91c,_0x5b354d,_0x441c30,_0x453873),_0x204b4b=_0x3f0e25[_0x10f748(0x2cc)],logger[_0x10f748(0x26c)](_0x204b4b);const _0x5b292d={};_0x5b292d[_0x10f748(0x281)]=WS_EVENTS[_0x10f748(0x2bb)],_0x5b292d[_0x10f748(0x276)]=_0x204b4b,webSocketUtils['sendEventToBackend'](_0x51ad25,_0x5b292d),_0x204b4b=_0x3f0e25[_0x10f748(0x266)],logger[_0x10f748(0x26c)](_0x204b4b);const _0x4ebcf1={};_0x4ebcf1[_0x10f748(0x281)]=WS_EVENTS[_0x10f748(0x2bb)],_0x4ebcf1[_0x10f748(0x276)]=_0x204b4b,webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x4ebcf1),await _0x3f0e25[_0x10f748(0x215)](waitForDeployment,_0x202cb8,_0x559318,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0xf2737=await _0x3f0e25[_0x10f748(0x28a)](getNamespaceUID,_0x116b97,_0x559318),_0xe9e923=global_registry[_0x10f748(0x278)]?_0x3f0e25['RGRab']:_0x3f0e25['fvIUN'],_0x3629bc={};_0x3629bc[_0x10f748(0x1fa)]=_0xe9e923,_0x3629bc['namespace']=_0x3f0e25['ESNXz'];const _0x53bdf7=await _0x116b97[_0x10f748(0x2ec)](_0x3629bc);let _0x27d3f5=_0x20eac7[_0x10f748(0x27e)](_0x53bdf7)+'/'+_0x559318,_0x313b6f=_0x3f0e25[_0x10f748(0x2e6)];try{const _0x407907='https://'+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0xf2737,_0x2b64b6=await _0x3f0e25['UBVKm'](got,_0x407907,_0x437381);(_0x3f0e25[_0x10f748(0x1fd)](_0x2b64b6,null)||_0x3f0e25[_0x10f748(0x280)](_0x2b64b6,undefined))&&(_0x204b4b=_0x3f0e25[_0x10f748(0x300)],await _0x3f0e25[_0x10f748(0x201)](reportToGalactusAndSendToEDS,_0x359906,_0x51ad25,_0x204b4b,messageTypes['ERROR'],_0x3f0e25[_0x10f748(0x1f4)],_0x3f0e25[_0x10f748(0x29c)],_0x3f0e25[_0x10f748(0x277)]),logger['error'](_0x204b4b),process['exit'](0x1));_0x3f0e25['wTbrY'](_0x2b64b6[_0x10f748(0x2af)],0x191)&&(_0x204b4b=_0x3f0e25[_0x10f748(0x2c1)],await _0x3f0e25[_0x10f748(0x2a7)](reportToGalactusAndSendToEDS,_0x359906,_0x51ad25,_0x204b4b,messageTypes[_0x10f748(0x283)],_0x3f0e25[_0x10f748(0x1f4)],_0x3f0e25[_0x10f748(0x2fd)],_0x3f0e25[_0x10f748(0x277)]),logger[_0x10f748(0x1d4)](_0x204b4b),process['exit'](0x1));_0x3f0e25['qlkNq'](_0x2b64b6[_0x10f748(0x2af)],0xc8)&&(_0x204b4b=_0x10f748(0x1d0)+JSON[_0x10f748(0x2c2)](_0x2b64b6),await _0x3f0e25[_0x10f748(0x261)](reportToGalactusAndSendToEDS,_0x359906,_0x51ad25,_0x204b4b,messageTypes['ERROR'],_0x3f0e25[_0x10f748(0x1f4)],_0x3f0e25[_0x10f748(0x22c)],_0x3f0e25[_0x10f748(0x277)]),logger[_0x10f748(0x1d4)](_0x204b4b),process[_0x10f748(0x2ce)](0x1));const _0x48cf36=JSON[_0x10f748(0x295)](_0x2b64b6[_0x10f748(0x285)]);_0x48cf36[_0x10f748(0x220)]&&(_0x27d3f5=_0x48cf36[_0x10f748(0x220)],_0x313b6f=_0x3f0e25[_0x10f748(0x22a)]),global_registry[_0x10f748(0x278)]&&(_0x313b6f=_0x3f0e25[_0x10f748(0x2e6)]);}catch(_0x577c82){}_0x204b4b='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x27d3f5+'\x20',logger[_0x10f748(0x26c)](_0x204b4b);const _0x3520e7={};_0x3520e7['type']=WS_EVENTS[_0x10f748(0x2bb)],_0x3520e7[_0x10f748(0x276)]=_0x204b4b,webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x3520e7),_0x204b4b=_0x10f748(0x258)+_0x313b6f+_0x10f748(0x2b7)+_0x27d3f5+_0x10f748(0x269),logger[_0x10f748(0x26c)](_0x204b4b);const _0x10985d={};_0x10985d[_0x10f748(0x281)]=WS_EVENTS[_0x10f748(0x2bb)],_0x10985d[_0x10f748(0x276)]=_0x204b4b,webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x10985d);const _0x2f0d93={};_0x2f0d93[_0x10f748(0x281)]=WS_EVENTS[_0x10f748(0x288)],_0x2f0d93[_0x10f748(0x276)]=_0x10f748(0x2f5)+_0x27d3f5,webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0x2f0d93),await webSocketUtils[_0x10f748(0x2ba)](0x7d0);}catch(_0x279e6a){logger[_0x10f748(0x1d4)](_0x10f748(0x2ae)+_0x279e6a+'\x20\x0a'+JSON['stringify'](_0x279e6a['stack']));if(_0x3f0e25[_0x10f748(0x273)](_0x25b476,![]))try{logger[_0x10f748(0x26c)](_0x3f0e25[_0x10f748(0x27f)]),await _0x3f0e25['jPMhf'](removeGridComponents,_0x116b97,_0x202cb8,_0x8c61b8,_0x22e7e2,_0x559318),await _0x20eac7['deleteCluster'](_0x116b97,global_registry['clusterRegion']);}catch(_0x4a6003){logger[_0x10f748(0x1d4)](_0x10f748(0x2d6)+_0x4a6003+'\x20\x0a'+JSON[_0x10f748(0x2c2)](_0x4a6003[_0x10f748(0x2e1)]));}throw _0x279e6a;}}catch(_0x577418){const _0x5314dc=_0x10f748(0x20b)+_0x577418+'\x20\x0a'+JSON[_0x10f748(0x2c2)](_0x577418[_0x10f748(0x2e1)]);if(_0x51ad25){const _0xdb9add={};_0xdb9add[_0x10f748(0x281)]=WS_EVENTS[_0x10f748(0x2bb)],_0xdb9add['message']=_0x5314dc,webSocketUtils[_0x10f748(0x226)](_0x51ad25,_0xdb9add,_0x3f0e25[_0x10f748(0x277)],!![]);}await webSocketUtils[_0x10f748(0x2ba)](0x7d0);const _0x3ce5c7={};_0x3ce5c7[_0x10f748(0x1d4)]=_0x5314dc,await _0x3f0e25[_0x10f748(0x263)](sendInstrumentationEvent,_0x359906,_0x3f0e25[_0x10f748(0x1f4)],messageTypes[_0x10f748(0x283)],_0x3f0e25[_0x10f748(0x2de)],_0x3ce5c7,_0x359906),logger['error'](_0x5314dc);}process['exit'](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a10_0xc06669=a10_0x4e6a;function a10_0x4e6a(_0x1909c3,_0x113254){const _0x5a56a8=a10_0x5a56();return a10_0x4e6a=function(_0x4e6a1f,_0x1c16a8){_0x4e6a1f=_0x4e6a1f-0xed;let _0x1dba93=_0x5a56a8[_0x4e6a1f];return _0x1dba93;},a10_0x4e6a(_0x1909c3,_0x113254);}(function(_0xbf9e89,_0x5cfb9b){const _0x554e46=a10_0x4e6a,_0x5e6789=_0xbf9e89();while(!![]){try{const _0x299ede=-parseInt(_0x554e46(0xee))/0x1+-parseInt(_0x554e46(0x102))/0x2*(-parseInt(_0x554e46(0xf9))/0x3)+-parseInt(_0x554e46(0xfd))/0x4*(-parseInt(_0x554e46(0xff))/0x5)+-parseInt(_0x554e46(0xfc))/0x6+parseInt(_0x554e46(0xf8))/0x7*(-parseInt(_0x554e46(0xf6))/0x8)+-parseInt(_0x554e46(0xfb))/0x9+parseInt(_0x554e46(0xed))/0xa;if(_0x299ede===_0x5cfb9b)break;else _0x5e6789['push'](_0x5e6789['shift']());}catch(_0x4d5ac0){_0x5e6789['push'](_0x5e6789['shift']());}}}(a10_0x5a56,0xe6f32));function a10_0x5a56(){const _0x3d5812=['yDWZK','builder','usage','../config/constants','desc','delete','help','2506744sCXJRk','command','7qSyrKb','5378307IJEVgk','commandDir','4052529DmSOvP','4612968KdstoW','596ceDmJg','handler','31940wMuLoq','List\x20Grid\x20resources.','strict','2ERhtjY','6533390AWwYfN','919498GcbzMC'];a10_0x5a56=function(){return _0x3d5812;};return a10_0x5a56();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0xc06669(0xf2));exports[a10_0xc06669(0xf7)]=a10_0xc06669(0xf4),exports[a10_0xc06669(0xf3)]=a10_0xc06669(0x100),exports[a10_0xc06669(0xf0)]=function(_0x5f2ca7){const _0x5b039a=a10_0xc06669,_0x4a2c25={};_0x4a2c25[_0x5b039a(0xef)]='delete_commands',_0x4a2c25['HdwBH']=_0x5b039a(0xf5);const _0x1368fd=_0x4a2c25;return _0x5f2ca7[_0x5b039a(0xf1)](HELP_HEADER_MESSAGE[_0x5b039a(0xf4)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5b039a(0xfa)](_0x1368fd['yDWZK'])['demandCommand']()['recommendCommands']()[_0x5b039a(0x101)]()[_0x5b039a(0xf5)](_0x1368fd['HdwBH']);},exports[a10_0xc06669(0xfe)]=function(_0x81312f){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a11_0x32dd(){const _0x168d3e=['../../utils/webSocketUtils','gDJlW','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','179364IDzGnc','vRKhM','EQZkw','ZUQST','argv','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','body','delete-grid-called','INFO','readNamespace','XLmGD','3621771EUuctR','wchqJ','NvMCS','../../utils/instrumentationUtils','PCTun','statusCode','uuid','clusterName','../../utils/userInput','Namespace:\x20','/packages/cli/grid/','DgeWn','whhqD','replace','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','clusterSpawnedVia','cCnpP','invalid-input','GjKBK','sYCLz','RNCHx','unknown-error','command','OpMFE','clusterRegion','FygGF','19696iThUoZ','toLowerCase','deleteCluster','LroBZ','235776brRrco','UChyh','exit','oOgTU','isBrowserstackCluster','string','description','QBCvx','warn','YhDlV','JIbgm','../../utils/gridComponents','epilogue','usage','region','Cluster:\x20','AoolK','QoTLA','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','JoXRx','\x22\x20and\x20ID\x20','Browserstack','Delete\x20an\x20Automation\x20grid.','got','HFwNR','type','uGnys','fRzOH','165645hknbbT','BPuiR','xqLNK','isClusterPresent','Ugvcy','skipTlsCertVerify','delete','HQytJ','options','gqMps','49HkocEa','MBTSf','SehCb','Failed\x20to\x20delete\x20resources!\x20Error:\x20','gridId','RBNAe','zRQuh','error','tyVDg','gnSui','catch','QieGo','syBfA','DELETE','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','builder','then','Pass\x20the\x20ID\x20of\x20the\x20Grid','ERROR','username','existsSync','oSXxx','tiHmc','readFileSync','gtsie','requestId','stack','connectionTimeout','4004620YvaRKK','fmEsP','jJegu','IougK','tcLif','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','grid-id','skip-tls-cert-verify','https://','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','tvCTO','grid','gqrWf','../../config/logger','../../utils/utilityMethods','handler','help','vbrPM','lTlaq','qaCAV','name','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','eYQCp','clusterId','WXTVw','info','dbpPL','onlyGridInCluster','mANtp','RNXrq','<PasswordPlaceholder>','2154380MpARVM','cloudProvider','3OHJqzd','message','password','bDcfm'];a11_0x32dd=function(){return _0x168d3e;};return a11_0x32dd();}const a11_0x2db2cb=a11_0x310e;(function(_0x2655cf,_0x12a583){const _0x2f7550=a11_0x310e,_0x3b86a3=_0x2655cf();while(!![]){try{const _0x520454=-parseInt(_0x2f7550(0x165))/0x1+-parseInt(_0x2f7550(0x149))/0x2+-parseInt(_0x2f7550(0x1ac))/0x3*(parseInt(_0x2f7550(0x1aa))/0x4)+parseInt(_0x2f7550(0x18b))/0x5+parseInt(_0x2f7550(0x1b3))/0x6*(parseInt(_0x2f7550(0x16f))/0x7)+-parseInt(_0x2f7550(0x145))/0x8+parseInt(_0x2f7550(0x1be))/0x9;if(_0x520454===_0x12a583)break;else _0x3b86a3['push'](_0x3b86a3['shift']());}catch(_0x1e0f42){_0x3b86a3['push'](_0x3b86a3['shift']());}}}(a11_0x32dd,0x8f8eb));const fs=require('fs'),got=require(a11_0x2db2cb(0x160)),{v4:uuidv4}=require(a11_0x2db2cb(0x1c4)),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(a11_0x2db2cb(0x198)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x2db2cb(0x154)),{sendInstrumentationEvent}=require(a11_0x2db2cb(0x1c1)),{inputConfirmation}=require(a11_0x2db2cb(0x1c6)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x2db2cb(0x199)),webSocketUtils=require(a11_0x2db2cb(0x1b0));function a11_0x310e(_0x2f8b8a,_0x2e31a9){const _0x32ddf5=a11_0x32dd();return a11_0x310e=function(_0x310ed8,_0x587880){_0x310ed8=_0x310ed8-0x13d;let _0x266634=_0x32ddf5[_0x310ed8];return _0x266634;},a11_0x310e(_0x2f8b8a,_0x2e31a9);}exports[a11_0x2db2cb(0x141)]=a11_0x2db2cb(0x196),exports['desc']=a11_0x2db2cb(0x15f),exports[a11_0x2db2cb(0x17e)]=function(_0x3d0dd3){const _0x46355e=a11_0x2db2cb,_0x197963={};_0x197963['cCnpP']=_0x46355e(0x180),_0x197963['gDJlW']='string',_0x197963[_0x46355e(0x178)]='Skip\x20insecure\x20cert\x20verification.',_0x197963[_0x46355e(0x175)]='boolean',_0x197963[_0x46355e(0x17b)]=_0x46355e(0x19b);const _0x116ea2=_0x197963,_0x44e95e={};_0x44e95e['description']=_0x116ea2[_0x46355e(0x1ce)],_0x44e95e[_0x46355e(0x162)]=_0x116ea2[_0x46355e(0x1b1)];const _0x482ea3={};_0x482ea3['description']=_0x116ea2[_0x46355e(0x178)],_0x482ea3[_0x46355e(0x162)]=_0x116ea2['zRQuh'],_0x482ea3['default']=![];const _0xc4fa87={};return _0xc4fa87[_0x46355e(0x191)]=_0x44e95e,_0xc4fa87[_0x46355e(0x192)]=_0x482ea3,_0x3d0dd3[_0x46355e(0x156)](HELP_HEADER_MESSAGE[_0x46355e(0x16b)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x46355e(0x16d)](_0xc4fa87)[_0x46355e(0x19b)](_0x116ea2[_0x46355e(0x17b)])[_0x46355e(0x1b7)];},exports[a11_0x2db2cb(0x19a)]=async function(_0x242fd4){const _0x36a3bb=a11_0x2db2cb,_0x3d343e={'bDcfm':_0x36a3bb(0x180),'kqxwP':_0x36a3bb(0x14e),'dbpPL':'Skip\x20insecure\x20cert\x20verification.','mANtp':'boolean','LWsCG':_0x36a3bb(0x19b),'gqMps':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','gtsie':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','fRzOH':function(_0x72dcb1,_0x28af58){return _0x72dcb1===_0x28af58;},'ZUQST':_0x36a3bb(0x177),'lTlaq':function(_0x525af2,_0x38794b){return _0x525af2!==_0x38794b;},'VGQuS':'sTdph','tvCTO':'Successfully\x20deleted\x20the\x20grid','qaCAV':function(_0x2d40df){return _0x2d40df();},'jJegu':function(_0x4796db){return _0x4796db();},'tcLif':'GzQtr','QoTLA':_0x36a3bb(0x194),'gqrWf':function(_0xb345d8,_0x10f666,_0x10090b,_0x1591cc,_0x140a60,_0xcba3be,_0x2e3eb9){return _0xb345d8(_0x10f666,_0x10090b,_0x1591cc,_0x140a60,_0xcba3be,_0x2e3eb9);},'eYQCp':_0x36a3bb(0x1ba),'RwBnp':'init-not-called','BPuiR':function(_0xb07e53,_0xaeacc1,_0x3fe5fa,_0x53875b,_0x23a8f,_0x12eeab,_0x3f1712){return _0xb07e53(_0xaeacc1,_0x3fe5fa,_0x53875b,_0x23a8f,_0x12eeab,_0x3f1712);},'RNCHx':'ciBgl','NvMCS':'xpTwr','whhqD':function(_0xd7d4fc,_0x4257f9,_0x10e038,_0x3275e4){return _0xd7d4fc(_0x4257f9,_0x10e038,_0x3275e4);},'RBNAe':function(_0x16108b,_0x980b1a){return _0x16108b===_0x980b1a;},'GjKBK':_0x36a3bb(0x15e),'dNexI':function(_0x33c119,_0x389fac){return _0x33c119===_0x389fac;},'MBTSf':_0x36a3bb(0x153),'XLmGD':function(_0x403472,_0x38222f){return _0x403472(_0x38222f);},'fWrGK':function(_0x30c636,_0x49323e){return _0x30c636===_0x49323e;},'YhDlV':function(_0x5fe5ad,_0x1344d0){return _0x5fe5ad===_0x1344d0;},'EQZkw':_0x36a3bb(0x150),'WNnXm':_0x36a3bb(0x14c),'PCTun':_0x36a3bb(0x1a0),'JoXRx':function(_0x9d783,_0x4a5449,_0x2efdc8,_0x1f9d1c,_0x3e3a41,_0x5b043f,_0x5ce825){return _0x9d783(_0x4a5449,_0x2efdc8,_0x1f9d1c,_0x3e3a41,_0x5b043f,_0x5ce825);},'oSXxx':_0x36a3bb(0x1cf),'WXTVw':function(_0x6ed10,_0x31b9e9){return _0x6ed10===_0x31b9e9;},'AoolK':function(_0x20cd5f,_0x4aa188){return _0x20cd5f===_0x4aa188;},'tiHmc':_0x36a3bb(0x1bf),'xqLNK':'<UsernamePlaceholder>','uGnys':_0x36a3bb(0x1a9),'Ugvcy':function(_0x503362,_0x1acdb7,_0x2002f7){return _0x503362(_0x1acdb7,_0x2002f7);},'vRKhM':function(_0xf741cc,_0x511006,_0x4ed8c6,_0x54bc7e,_0x2b9f36,_0x535e7a){return _0xf741cc(_0x511006,_0x4ed8c6,_0x54bc7e,_0x2b9f36,_0x535e7a);},'FygGF':'fbJHp','mOXii':function(_0x436b51,_0x4d5b07){return _0x436b51===_0x4d5b07;},'sYCLz':'iTNFr','ivPbr':_0x36a3bb(0x148),'SehCb':_0x36a3bb(0x17c),'Aapcu':function(_0x25816c,_0xa48728,_0x3973ba){return _0x25816c(_0xa48728,_0x3973ba);},'UChyh':function(_0x2929cd,_0x510b64){return _0x2929cd!==_0x510b64;},'HFwNR':function(_0x4aeeb1,_0x3846d8){return _0x4aeeb1!==_0x3846d8;},'vbrPM':'server-error','DgeWn':function(_0x2b7124,_0x582f31){return _0x2b7124===_0x582f31;},'IougK':_0x36a3bb(0x1cc),'HQytJ':function(_0x3aa606,_0x427c20,_0x148c15,_0x1f5dfc,_0x435930,_0x4498ca,_0x32f78a){return _0x3aa606(_0x427c20,_0x148c15,_0x1f5dfc,_0x435930,_0x4498ca,_0x32f78a);},'QieGo':'unauthorised','RNXrq':function(_0x34c950,_0x5cdae0){return _0x34c950===_0x5cdae0;},'fmEsP':'invalid-grid-id','nbffV':_0x36a3bb(0x140)};try{global_registry[_0x36a3bb(0x188)]=_0x3d343e[_0x36a3bb(0x19e)](uuidv4);!fs[_0x36a3bb(0x183)](_0x3d343e[_0x36a3bb(0x18d)](getCredentialsPath))&&(_0x3d343e[_0x36a3bb(0x164)](_0x3d343e[_0x36a3bb(0x18f)],_0x3d343e['tcLif'])?(console[_0x36a3bb(0x176)](_0x3d343e[_0x36a3bb(0x15a)]),await _0x3d343e[_0x36a3bb(0x197)](sendInstrumentationEvent,_0x242fd4,_0x3d343e[_0x36a3bb(0x1a1)],messageTypes['ERROR'],_0x3d343e['RwBnp'],null,_0x242fd4),process[_0x36a3bb(0x14b)](0x1)):_0x1a3bc8[_0x36a3bb(0x1a4)](_0x36a3bb(0x1c7)+_0x2e32f2+_0x36a3bb(0x190)));_0x3d343e[_0x36a3bb(0x166)](sendInstrumentationEvent,_0x242fd4,_0x3d343e[_0x36a3bb(0x1a1)],messageTypes[_0x36a3bb(0x1bb)],null,null,_0x242fd4);if(!_0x242fd4[_0x36a3bb(0x173)]){if(_0x3d343e[_0x36a3bb(0x164)](_0x3d343e[_0x36a3bb(0x13f)],_0x3d343e[_0x36a3bb(0x1c0)])){const _0x1d7b90={};_0x1d7b90[_0x36a3bb(0x14f)]=_0x3d343e[_0x36a3bb(0x1af)],_0x1d7b90[_0x36a3bb(0x162)]=_0x3d343e['kqxwP'];const _0x3a5fdb={};_0x3a5fdb['description']=_0x3d343e[_0x36a3bb(0x1a5)],_0x3a5fdb['type']=_0x3d343e[_0x36a3bb(0x1a7)],_0x3a5fdb['default']=![];const _0x3031f2={};return _0x3031f2['grid-id']=_0x1d7b90,_0x3031f2[_0x36a3bb(0x192)]=_0x3a5fdb,_0x129bbd[_0x36a3bb(0x156)](_0x21e936[_0x36a3bb(0x16b)])[_0x36a3bb(0x155)](_0x451a92)[_0x36a3bb(0x16d)](_0x3031f2)[_0x36a3bb(0x19b)](_0x3d343e['LWsCG'])[_0x36a3bb(0x1b7)];}else console['error'](_0x3d343e[_0x36a3bb(0x16e)]),process[_0x36a3bb(0x14b)](0x1);}const _0x24279d=JSON['parse'](fs[_0x36a3bb(0x186)](_0x3d343e[_0x36a3bb(0x19e)](getCredentialsPath))),[_0xd8ef3d,_0x201ae1]=await _0x3d343e[_0x36a3bb(0x1ca)](getGridDetails,_0x24279d['Browserstack'][_0x36a3bb(0x182)],_0x24279d[_0x36a3bb(0x15e)][_0x36a3bb(0x1ae)],_0x242fd4[_0x36a3bb(0x173)]);if(_0x201ae1){const _0x20996f=_0x201ae1[_0x36a3bb(0x1a4)];let _0x5b763b=_0x36a3bb(0x1b8)+_0x20996f[_0x36a3bb(0x19f)]+_0x36a3bb(0x15d)+_0x20996f['id']+_0x36a3bb(0x17d);_0x201ae1[_0x36a3bb(0x1a6)]&&_0x3d343e['RBNAe'](_0x201ae1[_0x36a3bb(0x1cd)],_0x3d343e[_0x36a3bb(0x13d)])&&(_0x3d343e['dNexI'](_0x3d343e[_0x36a3bb(0x170)],_0x3d343e[_0x36a3bb(0x170)])?_0x5b763b=_0x36a3bb(0x1b8)+_0x20996f[_0x36a3bb(0x19f)]+_0x36a3bb(0x15d)+_0x20996f['id']+_0x36a3bb(0x15b)+_0x20996f[_0x36a3bb(0x1c5)]+'\x22\x20with\x20ID\x20'+_0x20996f[_0x36a3bb(0x1a2)]+_0x36a3bb(0x17d):(_0x3841e7['error'](_0x3d343e['gqMps']),_0x2be0f0[_0x36a3bb(0x14b)](0x1)));const _0x1594d8=await _0x3d343e[_0x36a3bb(0x1bd)](inputConfirmation,_0x5b763b);(_0x3d343e[_0x36a3bb(0x164)](_0x1594d8,undefined)||_0x3d343e['fWrGK'](_0x1594d8,null)||!(_0x3d343e['YhDlV'](_0x1594d8[_0x36a3bb(0x146)](),'y')||_0x3d343e[_0x36a3bb(0x152)](_0x1594d8[_0x36a3bb(0x146)](),'n')))&&(_0x3d343e[_0x36a3bb(0x152)](_0x3d343e[_0x36a3bb(0x1b5)],_0x3d343e['WNnXm'])?_0x378b4a='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0xb628e2[_0x36a3bb(0x19f)]+'\x22\x20and\x20ID\x20'+_0x3ff864['id']+_0x36a3bb(0x15b)+_0x2501f4[_0x36a3bb(0x1c5)]+'\x22\x20with\x20ID\x20'+_0x1c129d[_0x36a3bb(0x1a2)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(console['error'](_0x3d343e[_0x36a3bb(0x1c2)]),await _0x3d343e['JoXRx'](sendInstrumentationEvent,_0x242fd4,_0x3d343e[_0x36a3bb(0x1a1)],messageTypes[_0x36a3bb(0x181)],_0x3d343e[_0x36a3bb(0x184)],null,_0x242fd4),process[_0x36a3bb(0x14b)](0x1)));_0x3d343e[_0x36a3bb(0x1a3)](_0x1594d8['toLowerCase'](),'n')&&(_0x3d343e[_0x36a3bb(0x159)](_0x3d343e[_0x36a3bb(0x185)],_0x3d343e['tiHmc'])?process[_0x36a3bb(0x14b)](0x0):_0x2104a1[_0x36a3bb(0x14b)](0x0));const _0xb0520=WS_ENDPOINT['replace'](_0x3d343e[_0x36a3bb(0x167)],_0x24279d['Browserstack']['username'])[_0x36a3bb(0x1cb)](_0x3d343e[_0x36a3bb(0x163)],_0x24279d[_0x36a3bb(0x15e)][_0x36a3bb(0x1ae)]),_0x3c0dfa={};_0x3c0dfa['WebSocket']=ws,_0x3c0dfa[_0x36a3bb(0x18a)]=0x36ee80;const _0x4b20fd=new ReconnectingWebSocket(_0xb0520,[],_0x3c0dfa);global_registry[_0x36a3bb(0x143)]=_0x20996f[_0x36a3bb(0x157)];const _0x1f27e3=_0x20996f[_0x36a3bb(0x1ab)],_0x3e12a7=await _0x3d343e[_0x36a3bb(0x15c)](getCloudProviderObject,_0x1f27e3,_0x20996f[_0x36a3bb(0x1c5)],_0x20996f[_0x36a3bb(0x19f)],_0x4b20fd,webSocketUtils,_0x242fd4),_0x3bc785=await _0x3e12a7[_0x36a3bb(0x168)]();if(_0x3bc785){const _0x3bae84=_0x3d343e[_0x36a3bb(0x1bd)](kebabCase,_0x20996f[_0x36a3bb(0x19f)]),[_0x3c7c15,_0xeaa8ee,_0x429b26,_0x2d3f1f,_0x1f7cb5,_0x490581]=await _0x3d343e[_0x36a3bb(0x169)](createK8sClient,_0x3e12a7,_0x242fd4[_0x36a3bb(0x16a)]);let _0x5ccc4b=!![];const _0x4c152a={};_0x4c152a[_0x36a3bb(0x19f)]=_0x3bae84,await _0x3c7c15[_0x36a3bb(0x1bc)](_0x4c152a)[_0x36a3bb(0x17f)](_0x363ea2=>{const _0x53df3b=_0x36a3bb,_0x19902d={};_0x19902d[_0x53df3b(0x142)]=_0x3d343e[_0x53df3b(0x187)];const _0x332917=_0x19902d;_0x3d343e[_0x53df3b(0x164)](_0x3d343e[_0x53df3b(0x1b6)],_0x3d343e[_0x53df3b(0x1b6)])?logger[_0x53df3b(0x1a4)](_0x53df3b(0x1c7)+_0x3bae84+_0x53df3b(0x190)):_0x481307[_0x53df3b(0x151)](_0x332917[_0x53df3b(0x142)]);})[_0x36a3bb(0x179)](_0x587ea0=>{const _0x32dbf3=_0x36a3bb;_0x3d343e[_0x32dbf3(0x19d)](_0x3d343e['VGQuS'],_0x3d343e['VGQuS'])?_0x31b0f1[_0x32dbf3(0x151)](_0x32dbf3(0x158)+_0x20914a[_0x32dbf3(0x1c5)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):(logger[_0x32dbf3(0x151)](_0x32dbf3(0x1c7)+_0x3bae84+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x5ccc4b=![]);});if(_0x5ccc4b){await _0x3d343e[_0x36a3bb(0x1b4)](removeGridComponents,_0x3c7c15,_0xeaa8ee,_0x429b26,_0x2d3f1f,_0x3bae84);if(_0x201ae1[_0x36a3bb(0x1a6)]){const _0x5e523=await _0x3e12a7[_0x36a3bb(0x14d)]();_0x5e523?_0x3d343e[_0x36a3bb(0x164)](_0x3d343e[_0x36a3bb(0x144)],_0x3d343e['FygGF'])?await _0x3e12a7[_0x36a3bb(0x147)](_0x3c7c15,_0x20996f['region']):(_0x5650e2[_0x36a3bb(0x151)](_0x36a3bb(0x1c7)+_0x3f9bac+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0xc214cb=![]):_0x3d343e['mOXii'](_0x3d343e[_0x36a3bb(0x13e)],_0x3d343e['ivPbr'])?(_0x1c63a4['info'](_0x3d343e[_0x36a3bb(0x195)]),_0x57857d[_0x36a3bb(0x14b)](0x0)):logger[_0x36a3bb(0x151)](_0x36a3bb(0x158)+_0x20996f[_0x36a3bb(0x1c5)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger[_0x36a3bb(0x151)](_0x3d343e[_0x36a3bb(0x187)]);const _0x37e183=_0x36a3bb(0x193)+AG_API_URL+_0x36a3bb(0x1c8)+_0x242fd4['gridId'],_0x18146c={'method':_0x3d343e[_0x36a3bb(0x171)],'headers':_0x3d343e[_0x36a3bb(0x169)](getAuthHeader,_0x24279d[_0x36a3bb(0x15e)][_0x36a3bb(0x182)],_0x24279d[_0x36a3bb(0x15e)][_0x36a3bb(0x1ae)]),'throwHttpErrors':![]},_0x1f317d=await _0x3d343e['Aapcu'](got,_0x37e183,_0x18146c);_0x3d343e[_0x36a3bb(0x14a)](_0x1f317d,null)&&_0x3d343e[_0x36a3bb(0x161)](_0x1f317d,undefined)&&_0x3d343e[_0x36a3bb(0x174)](_0x1f317d['statusCode'],0xc8)&&(logger['info'](_0x3d343e['tvCTO']),process[_0x36a3bb(0x14b)](0x0)),logger[_0x36a3bb(0x176)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x1f317d[_0x36a3bb(0x1b9)]),await _0x3d343e[_0x36a3bb(0x197)](sendInstrumentationEvent,_0x242fd4,_0x3d343e['eYQCp'],messageTypes[_0x36a3bb(0x181)],_0x3d343e[_0x36a3bb(0x19c)],_0xd8ef3d,_0x242fd4),process[_0x36a3bb(0x14b)](0x1);}_0x3d343e[_0x36a3bb(0x1c9)](_0xd8ef3d[_0x36a3bb(0x1c3)],0x191)&&(logger[_0x36a3bb(0x176)](_0x3d343e[_0x36a3bb(0x18e)]),await _0x3d343e[_0x36a3bb(0x16c)](sendInstrumentationEvent,_0x242fd4,_0x3d343e[_0x36a3bb(0x1a1)],messageTypes[_0x36a3bb(0x181)],_0x3d343e[_0x36a3bb(0x17a)],null,_0x242fd4),process[_0x36a3bb(0x14b)](0x1)),_0x3d343e[_0x36a3bb(0x1a8)](_0xd8ef3d[_0x36a3bb(0x1c3)],0x190)&&(logger[_0x36a3bb(0x176)](JSON['parse'](_0xd8ef3d[_0x36a3bb(0x1b9)])[_0x36a3bb(0x1ad)]),await _0x3d343e[_0x36a3bb(0x16c)](sendInstrumentationEvent,_0x242fd4,_0x3d343e['eYQCp'],messageTypes['ERROR'],_0x3d343e[_0x36a3bb(0x18c)],null,_0x242fd4),process['exit'](0x1)),logger['error'](_0x36a3bb(0x1b2)+JSON['stringify'](_0xd8ef3d)),await _0x3d343e[_0x36a3bb(0x15c)](sendInstrumentationEvent,_0x242fd4,_0x3d343e['eYQCp'],messageTypes[_0x36a3bb(0x181)],_0x3d343e[_0x36a3bb(0x19c)],_0xd8ef3d,_0x242fd4),process[_0x36a3bb(0x14b)](0x1);}catch(_0x58b85f){logger[_0x36a3bb(0x176)](_0x36a3bb(0x172)+_0x58b85f[_0x36a3bb(0x189)]),await _0x3d343e['gqrWf'](sendInstrumentationEvent,_0x242fd4,_0x3d343e[_0x36a3bb(0x1a1)],messageTypes['ERROR'],_0x3d343e['nbffV'],_0x58b85f,_0x242fd4),process[_0x36a3bb(0x14b)](0x1);}};
|
|
1
|
+
const a11_0x4bfddd=a11_0x2bb3;(function(_0x304e4d,_0xb1e60b){const _0x3c8be0=a11_0x2bb3,_0x2d88c7=_0x304e4d();while(!![]){try{const _0x376fe8=parseInt(_0x3c8be0(0x265))/0x1*(parseInt(_0x3c8be0(0x229))/0x2)+parseInt(_0x3c8be0(0x26a))/0x3*(-parseInt(_0x3c8be0(0x205))/0x4)+parseInt(_0x3c8be0(0x215))/0x5*(parseInt(_0x3c8be0(0x281))/0x6)+parseInt(_0x3c8be0(0x23a))/0x7*(parseInt(_0x3c8be0(0x206))/0x8)+-parseInt(_0x3c8be0(0x260))/0x9*(-parseInt(_0x3c8be0(0x25b))/0xa)+parseInt(_0x3c8be0(0x245))/0xb*(parseInt(_0x3c8be0(0x257))/0xc)+parseInt(_0x3c8be0(0x277))/0xd*(-parseInt(_0x3c8be0(0x28a))/0xe);if(_0x376fe8===_0xb1e60b)break;else _0x2d88c7['push'](_0x2d88c7['shift']());}catch(_0x3952ee){_0x2d88c7['push'](_0x2d88c7['shift']());}}}(a11_0x4e2c,0x5a11d));const fs=require('fs'),got=require(a11_0x4bfddd(0x220)),{v4:uuidv4}=require(a11_0x4bfddd(0x21c)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x4bfddd(0x1fc)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x4bfddd(0x274)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x4bfddd(0x21b)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x4bfddd(0x28d)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x4bfddd(0x239)),{createK8sClient}=require(a11_0x4bfddd(0x20d)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x4bfddd(0x27e)),webSocketUtils=require(a11_0x4bfddd(0x275));exports[a11_0x4bfddd(0x1f6)]=a11_0x4bfddd(0x1fe),exports['desc']=a11_0x4bfddd(0x259),exports[a11_0x4bfddd(0x233)]=function(_0x514a14){const _0x194b91=a11_0x4bfddd,_0x185b97={};_0x185b97[_0x194b91(0x1f3)]=_0x194b91(0x221),_0x185b97[_0x194b91(0x280)]=_0x194b91(0x27c),_0x185b97['nFXnW']=_0x194b91(0x1f7),_0x185b97[_0x194b91(0x234)]=_0x194b91(0x243),_0x185b97[_0x194b91(0x236)]=_0x194b91(0x224);const _0xafa8c5=_0x185b97,_0x48c8be={};_0x48c8be[_0x194b91(0x21a)]=_0xafa8c5['zYcyT'],_0x48c8be[_0x194b91(0x246)]=_0xafa8c5[_0x194b91(0x280)];const _0x753357={};_0x753357[_0x194b91(0x21a)]=_0xafa8c5[_0x194b91(0x254)],_0x753357[_0x194b91(0x246)]=_0xafa8c5['SuPyT'],_0x753357[_0x194b91(0x211)]=![];const _0x3b8376={};return _0x3b8376['grid-id']=_0x48c8be,_0x3b8376[_0x194b91(0x267)]=_0x753357,_0x514a14['usage'](HELP_HEADER_MESSAGE[_0x194b91(0x218)])[_0x194b91(0x23b)](HELP_FOOTER_MESSAGE)['options'](_0x3b8376)['help'](_0xafa8c5[_0x194b91(0x236)])['argv'];},exports[a11_0x4bfddd(0x230)]=async function(_0x5ab4a4){const _0x36467d=a11_0x4bfddd,_0x2cc690={'hmgOx':_0x36467d(0x221),'Gdhkw':'string','iToeQ':_0x36467d(0x1f7),'BFkVj':_0x36467d(0x243),'nIBqK':_0x36467d(0x224),'qcHdu':_0x36467d(0x255),'Wjydr':_0x36467d(0x269),'lghFA':function(_0x55ee85,_0x507c55){return _0x55ee85===_0x507c55;},'FCmOL':'lSgek','yxKqG':_0x36467d(0x1fb),'sYmSO':function(_0x1a9a48,_0x2e05e5){return _0x1a9a48===_0x2e05e5;},'tKYYC':_0x36467d(0x26c),'TBwOi':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','KGqte':function(_0x14fda7){return _0x14fda7();},'ZvyMv':function(_0x231d0c,_0x4519a1){return _0x231d0c!==_0x4519a1;},'SzbRm':_0x36467d(0x241),'qflnu':_0x36467d(0x256),'ONdlD':function(_0x371dab,_0x347d17,_0x385f71,_0x2739f3,_0x474666,_0x275cf6,_0x26fe04){return _0x371dab(_0x347d17,_0x385f71,_0x2739f3,_0x474666,_0x275cf6,_0x26fe04);},'FJSOB':_0x36467d(0x1f5),'gnQoE':'init-not-called','zJVpC':function(_0x50bc34,_0x54d51e,_0x125cab,_0x17121f,_0x528e7e,_0x1e5b9e,_0x16e22b){return _0x50bc34(_0x54d51e,_0x125cab,_0x17121f,_0x528e7e,_0x1e5b9e,_0x16e22b);},'PhayQ':function(_0x9944a8,_0x3e4fce){return _0x9944a8!==_0x3e4fce;},'rsMnG':_0x36467d(0x1f9),'lNKTe':_0x36467d(0x250),'hnlqR':function(_0xd8c993,_0x4a4804,_0x2d5f4b,_0x4eee0b){return _0xd8c993(_0x4a4804,_0x2d5f4b,_0x4eee0b);},'LpMpa':function(_0x26089b,_0xfd7f84){return _0x26089b===_0xfd7f84;},'deaKu':_0x36467d(0x203),'heWgU':function(_0x3350a8,_0x31566e){return _0x3350a8===_0x31566e;},'lTzuM':_0x36467d(0x1fd),'CQPQz':_0x36467d(0x1ee),'enbzb':function(_0x3d76ee,_0x55fadc){return _0x3d76ee(_0x55fadc);},'ahmMQ':function(_0x36977a,_0xf5b5a5){return _0x36977a===_0xf5b5a5;},'YXZPf':function(_0x1bbc60,_0x103546){return _0x1bbc60===_0x103546;},'YCvWe':function(_0x9f189e,_0x29a6d3){return _0x9f189e===_0x29a6d3;},'YJjPU':function(_0x3a6d9f,_0x2987df){return _0x3a6d9f!==_0x2987df;},'OehPA':_0x36467d(0x24d),'Haylt':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','IYZMi':_0x36467d(0x1ff),'vUYuF':function(_0x3d4878,_0x182456){return _0x3d4878===_0x182456;},'yUSPi':_0x36467d(0x25d),'diJCq':_0x36467d(0x283),'rWafd':_0x36467d(0x1ea),'tUwFB':_0x36467d(0x20c),'qzAUA':function(_0x435788,_0x448ec1,_0x17faba,_0x23f79e,_0x482bdc,_0xfa1a4e,_0x2665a5){return _0x435788(_0x448ec1,_0x17faba,_0x23f79e,_0x482bdc,_0xfa1a4e,_0x2665a5);},'fJpsG':function(_0x2b9e8b,_0x48cc5c){return _0x2b9e8b(_0x48cc5c);},'cXwbF':function(_0x42df47,_0xffe354,_0x11c837){return _0x42df47(_0xffe354,_0x11c837);},'pFrXo':function(_0x40f896,_0x184aac,_0x397276,_0x5914c1,_0x57a98a,_0x2318e1){return _0x40f896(_0x184aac,_0x397276,_0x5914c1,_0x57a98a,_0x2318e1);},'MDfkr':function(_0x1a4cb0,_0x3a8134){return _0x1a4cb0!==_0x3a8134;},'lzUVl':_0x36467d(0x242),'XMukU':'EqNzV','UtQWM':function(_0x71602c,_0xeb0640){return _0x71602c===_0xeb0640;},'BiDTm':_0x36467d(0x273),'HyIEQ':_0x36467d(0x21e),'gqKEk':function(_0x5d9b04,_0x3b5a6d,_0x43ec49){return _0x5d9b04(_0x3b5a6d,_0x43ec49);},'IuDNX':function(_0x1d3bdd,_0x4738b5,_0x4bdbb9){return _0x1d3bdd(_0x4738b5,_0x4bdbb9);},'SSoUh':function(_0x51a67d,_0x58e6e5){return _0x51a67d!==_0x58e6e5;},'ZdshR':_0x36467d(0x287),'RhjvT':_0x36467d(0x237),'vWKHk':_0x36467d(0x270),'LZniU':_0x36467d(0x20b),'JsAET':function(_0x10ed31,_0x480159,_0x18614c,_0x5231f7,_0x3608ff,_0x2f7b98,_0x572c99){return _0x10ed31(_0x480159,_0x18614c,_0x5231f7,_0x3608ff,_0x2f7b98,_0x572c99);},'WmYBF':_0x36467d(0x25c)};try{global_registry['requestId']=_0x2cc690['KGqte'](uuidv4);!fs['existsSync'](_0x2cc690['KGqte'](getCredentialsPath))&&(_0x2cc690[_0x36467d(0x1f2)](_0x2cc690['SzbRm'],_0x2cc690[_0x36467d(0x20f)])?_0x26289c[_0x36467d(0x207)](_0x36467d(0x290)+_0x17ebb2+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):(console[_0x36467d(0x20a)](_0x2cc690['qflnu']),await _0x2cc690[_0x36467d(0x1ef)](sendInstrumentationEvent,_0x5ab4a4,_0x2cc690[_0x36467d(0x22c)],messageTypes['ERROR'],_0x2cc690[_0x36467d(0x271)],null,_0x5ab4a4),process['exit'](0x1)));_0x2cc690['zJVpC'](sendInstrumentationEvent,_0x5ab4a4,_0x2cc690[_0x36467d(0x22c)],messageTypes[_0x36467d(0x23c)],null,null,_0x5ab4a4);if(!_0x5ab4a4[_0x36467d(0x226)]){if(_0x2cc690[_0x36467d(0x209)](_0x2cc690['rsMnG'],_0x2cc690[_0x36467d(0x268)]))console[_0x36467d(0x20a)](_0x2cc690['TBwOi']),process['exit'](0x1);else{const _0x49f054={};_0x49f054[_0x36467d(0x21a)]=_0x2cc690[_0x36467d(0x204)],_0x49f054['type']=_0x2cc690['Gdhkw'];const _0x5d46ec={};_0x5d46ec['description']=_0x2cc690[_0x36467d(0x24e)],_0x5d46ec['type']=_0x2cc690[_0x36467d(0x253)],_0x5d46ec['default']=![];const _0x237c7b={};return _0x237c7b['grid-id']=_0x49f054,_0x237c7b[_0x36467d(0x267)]=_0x5d46ec,_0x3ea1a3[_0x36467d(0x26b)](_0x5053d7[_0x36467d(0x218)])['epilogue'](_0x3c3f68)[_0x36467d(0x27b)](_0x237c7b)[_0x36467d(0x224)](_0x2cc690['nIBqK'])[_0x36467d(0x27d)];}}const _0x3c1144=JSON[_0x36467d(0x26e)](fs[_0x36467d(0x278)](_0x2cc690[_0x36467d(0x263)](getCredentialsPath))),[_0x43faa1,_0x5ba995]=await _0x2cc690[_0x36467d(0x27a)](getGridDetails,_0x3c1144['Browserstack']['username'],_0x3c1144['Browserstack'][_0x36467d(0x244)],_0x5ab4a4[_0x36467d(0x226)]);if(_0x5ba995){const _0x32132b=_0x5ba995[_0x36467d(0x207)];let _0x373cfd=_0x36467d(0x289)+_0x32132b[_0x36467d(0x223)]+'\x22\x20and\x20ID\x20'+_0x32132b['id']+_0x36467d(0x285);_0x5ba995['onlyGridInCluster']&&_0x2cc690[_0x36467d(0x1fa)](_0x5ba995['clusterSpawnedVia'],_0x2cc690[_0x36467d(0x282)])&&(_0x2cc690[_0x36467d(0x228)](_0x2cc690[_0x36467d(0x235)],_0x2cc690['CQPQz'])?_0x3d7932['exit'](0x0):_0x373cfd='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x32132b['name']+_0x36467d(0x248)+_0x32132b['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x32132b[_0x36467d(0x26d)]+'\x22\x20with\x20ID\x20'+_0x32132b[_0x36467d(0x219)]+_0x36467d(0x285));const _0x2ca0a7=await _0x2cc690[_0x36467d(0x213)](inputConfirmation,_0x373cfd);(_0x2cc690[_0x36467d(0x1ec)](_0x2ca0a7,undefined)||_0x2cc690['YXZPf'](_0x2ca0a7,null)||!(_0x2cc690[_0x36467d(0x232)](_0x2ca0a7[_0x36467d(0x28b)](),'y')||_0x2cc690[_0x36467d(0x222)](_0x2ca0a7[_0x36467d(0x28b)](),'n')))&&(_0x2cc690['YJjPU'](_0x2cc690[_0x36467d(0x247)],_0x2cc690[_0x36467d(0x247)])?_0xe0bd5='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x5cd385[_0x36467d(0x223)]+'\x22\x20and\x20ID\x20'+_0x2702d1['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x35bebe[_0x36467d(0x26d)]+_0x36467d(0x261)+_0x2f1adb[_0x36467d(0x219)]+_0x36467d(0x285):(console[_0x36467d(0x20a)](_0x2cc690[_0x36467d(0x1f4)]),await _0x2cc690[_0x36467d(0x1ef)](sendInstrumentationEvent,_0x5ab4a4,_0x2cc690['FJSOB'],messageTypes['ERROR'],_0x2cc690[_0x36467d(0x22d)],null,_0x5ab4a4),process[_0x36467d(0x200)](0x1)));_0x2cc690[_0x36467d(0x232)](_0x2ca0a7['toLowerCase'](),'n')&&(_0x2cc690[_0x36467d(0x21d)](_0x2cc690[_0x36467d(0x21f)],_0x2cc690['diJCq'])?_0x48bc38[_0x36467d(0x28e)](_0x2cc690[_0x36467d(0x28f)]):process[_0x36467d(0x200)](0x0));const _0x2fedf4=WS_ENDPOINT[_0x36467d(0x208)](_0x2cc690['rWafd'],_0x3c1144['Browserstack']['username'])[_0x36467d(0x208)](_0x2cc690[_0x36467d(0x210)],_0x3c1144[_0x36467d(0x203)][_0x36467d(0x244)]),_0x35c0ba={};_0x35c0ba[_0x36467d(0x238)]=ws,_0x35c0ba[_0x36467d(0x28c)]=0x36ee80;const _0x555e7c=new ReconnectingWebSocket(_0x2fedf4,[],_0x35c0ba);global_registry[_0x36467d(0x217)]=_0x32132b[_0x36467d(0x201)];const _0x181a6c=_0x32132b['cloudProvider'],_0x301825=await _0x2cc690['qzAUA'](getCloudProviderObject,_0x181a6c,_0x32132b[_0x36467d(0x26d)],_0x32132b[_0x36467d(0x223)],_0x555e7c,webSocketUtils,_0x5ab4a4),_0x582705=await _0x301825[_0x36467d(0x1f0)]();if(_0x582705){const _0x1b9e19=_0x2cc690[_0x36467d(0x262)](kebabCase,_0x32132b[_0x36467d(0x223)]),[_0x270022,_0x596b76,_0x16f635,_0x1f0c24,_0x2ad888,_0x4cca78]=await _0x2cc690[_0x36467d(0x24a)](createK8sClient,_0x301825,_0x5ab4a4[_0x36467d(0x1f8)]);let _0x2aab3d=!![];const _0x293f4f={};_0x293f4f[_0x36467d(0x223)]=_0x1b9e19,await _0x270022[_0x36467d(0x23d)](_0x293f4f)[_0x36467d(0x252)](_0x45fda6=>{const _0x54dea5=_0x36467d,_0x4aa783={};_0x4aa783['RjwgA']=_0x2cc690[_0x54dea5(0x1ed)];const _0x14221a=_0x4aa783;_0x2cc690[_0x54dea5(0x24f)](_0x2cc690[_0x54dea5(0x25e)],_0x2cc690['yxKqG'])?(_0x278779['info'](_0x14221a[_0x54dea5(0x227)]),_0x70af6e['exit'](0x0)):logger['info'](_0x54dea5(0x290)+_0x1b9e19+_0x54dea5(0x225));})[_0x36467d(0x22f)](_0x4205e1=>{const _0x4d9036=_0x36467d;_0x2cc690[_0x4d9036(0x222)](_0x2cc690[_0x4d9036(0x26f)],_0x2cc690[_0x4d9036(0x26f)])?(logger[_0x4d9036(0x28e)](_0x4d9036(0x290)+_0x1b9e19+_0x4d9036(0x249)),_0x2aab3d=![]):_0x4011f3[_0x4d9036(0x28e)](_0x4d9036(0x286)+_0x51f0f9[_0x4d9036(0x26d)]+_0x4d9036(0x212));});if(_0x2aab3d){await _0x2cc690[_0x36467d(0x22e)](removeGridComponents,_0x270022,_0x596b76,_0x16f635,_0x1f0c24,_0x1b9e19);if(_0x5ba995['onlyGridInCluster']){const _0x3d89bd=await _0x301825[_0x36467d(0x279)]();_0x3d89bd?_0x2cc690[_0x36467d(0x25f)](_0x2cc690[_0x36467d(0x288)],_0x2cc690[_0x36467d(0x216)])?await _0x301825[_0x36467d(0x276)](_0x270022,_0x32132b[_0x36467d(0x201)]):(_0x108961['warn'](_0x36467d(0x290)+_0x351042+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x39e247=![]):_0x2cc690[_0x36467d(0x214)](_0x2cc690['BiDTm'],_0x2cc690['BiDTm'])?logger[_0x36467d(0x28e)]('Cluster:\x20'+_0x32132b['clusterName']+_0x36467d(0x212)):(_0x341859[_0x36467d(0x20a)](_0x2cc690['TBwOi']),_0x2fb4aa[_0x36467d(0x200)](0x1));}}}else logger[_0x36467d(0x28e)](_0x2cc690[_0x36467d(0x28f)]);const _0x4cd19c=_0x36467d(0x251)+AG_API_URL+_0x36467d(0x25a)+_0x5ab4a4[_0x36467d(0x226)],_0x3153c1={'method':_0x2cc690['HyIEQ'],'headers':_0x2cc690[_0x36467d(0x27f)](getAuthHeader,_0x3c1144['Browserstack'][_0x36467d(0x23e)],_0x3c1144[_0x36467d(0x203)]['password']),'throwHttpErrors':![]},_0x1dc0a7=await _0x2cc690[_0x36467d(0x240)](got,_0x4cd19c,_0x3153c1);_0x2cc690[_0x36467d(0x284)](_0x1dc0a7,null)&&_0x2cc690[_0x36467d(0x1f2)](_0x1dc0a7,undefined)&&_0x2cc690[_0x36467d(0x222)](_0x1dc0a7['statusCode'],0xc8)&&(logger[_0x36467d(0x207)](_0x2cc690[_0x36467d(0x1ed)]),process['exit'](0x0)),logger[_0x36467d(0x20a)](_0x36467d(0x1f1)+_0x1dc0a7[_0x36467d(0x24b)]),await _0x2cc690[_0x36467d(0x1ef)](sendInstrumentationEvent,_0x5ab4a4,_0x2cc690['FJSOB'],messageTypes[_0x36467d(0x22a)],_0x2cc690[_0x36467d(0x264)],_0x43faa1,_0x5ab4a4),process[_0x36467d(0x200)](0x1);}_0x2cc690[_0x36467d(0x1fa)](_0x43faa1[_0x36467d(0x258)],0x191)&&(logger['error'](_0x2cc690[_0x36467d(0x20e)]),await _0x2cc690['zJVpC'](sendInstrumentationEvent,_0x5ab4a4,_0x2cc690[_0x36467d(0x22c)],messageTypes['ERROR'],_0x2cc690['vWKHk'],null,_0x5ab4a4),process['exit'](0x1)),_0x2cc690[_0x36467d(0x232)](_0x43faa1[_0x36467d(0x258)],0x190)&&(logger[_0x36467d(0x20a)](JSON[_0x36467d(0x26e)](_0x43faa1[_0x36467d(0x24b)])[_0x36467d(0x22b)]),await _0x2cc690['qzAUA'](sendInstrumentationEvent,_0x5ab4a4,_0x2cc690[_0x36467d(0x22c)],messageTypes[_0x36467d(0x22a)],_0x2cc690[_0x36467d(0x231)],null,_0x5ab4a4),process[_0x36467d(0x200)](0x1)),logger[_0x36467d(0x20a)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x36467d(0x24c)](_0x43faa1)),await _0x2cc690[_0x36467d(0x23f)](sendInstrumentationEvent,_0x5ab4a4,_0x2cc690['FJSOB'],messageTypes[_0x36467d(0x22a)],_0x2cc690[_0x36467d(0x264)],_0x43faa1,_0x5ab4a4),process['exit'](0x1);}catch(_0x3aacf0){logger[_0x36467d(0x20a)](_0x36467d(0x202)+_0x3aacf0[_0x36467d(0x1eb)]),await _0x2cc690[_0x36467d(0x272)](sendInstrumentationEvent,_0x5ab4a4,_0x2cc690[_0x36467d(0x22c)],messageTypes[_0x36467d(0x22a)],_0x2cc690[_0x36467d(0x266)],_0x3aacf0,_0x5ab4a4),process[_0x36467d(0x200)](0x1);}};function a11_0x2bb3(_0x4a5e8f,_0xd8737f){const _0x4e2c55=a11_0x4e2c();return a11_0x2bb3=function(_0x2bb305,_0x33c080){_0x2bb305=_0x2bb305-0x1ea;let _0x2e8dc5=_0x4e2c55[_0x2bb305];return _0x2e8dc5;},a11_0x2bb3(_0x4a5e8f,_0xd8737f);}function a11_0x4e2c(){const _0x4d04f2=['Skip\x20insecure\x20cert\x20verification.','skipTlsCertVerify','fBWlw','LpMpa','dWQfC','reconnecting-websocket','FeYAk','grid','invalid-input','exit','region','Failed\x20to\x20delete\x20resources!\x20Error:\x20','Browserstack','hmgOx','2181792UymWol','520LIunGP','info','replace','PhayQ','error','invalid-grid-id','<PasswordPlaceholder>','../../utils/createk8sClient','RhjvT','SzbRm','tUwFB','default','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','enbzb','UtQWM','800UXMbhr','XMukU','clusterRegion','delete','clusterId','description','../../cloudproviders/utils','uuid','vUYuF','DELETE','yUSPi','got','Pass\x20the\x20ID\x20of\x20the\x20Grid','sYmSO','name','help','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','gridId','RjwgA','heWgU','1844JxSWnH','ERROR','message','FJSOB','IYZMi','pFrXo','catch','handler','LZniU','YCvWe','builder','SuPyT','lTzuM','qelQa','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','WebSocket','../../utils/userInput','29099xbQpHy','epilogue','INFO','readNamespace','username','zJVpC','IuDNX','GmLLu','Mvxhd','boolean','password','33FkygQf','type','OehPA','\x22\x20and\x20ID\x20','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','cXwbF','body','stringify','kmLGA','iToeQ','lghFA','OdjTx','https://','then','BFkVj','nFXnW','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','1484832nMjpmy','statusCode','Delete\x20an\x20Automation\x20grid.','/packages/cli/grid/','16070EHEBeY','unknown-error','KDhEk','FCmOL','MDfkr','2961IBpCHX','\x22\x20with\x20ID\x20','fJpsG','KGqte','ZdshR','712HuaAds','WmYBF','skip-tls-cert-verify','lNKTe','Successfully\x20deleted\x20the\x20grid','3UCpInw','usage','fvkwu','clusterName','parse','tKYYC','unauthorised','gnQoE','JsAET','iDrFE','../../config/constants','../../utils/webSocketUtils','deleteCluster','13QHbrZE','readFileSync','isBrowserstackCluster','hnlqR','options','string','argv','../../utils/utilityMethods','gqKEk','zdTEU','14616iQRNpE','deaKu','DtWyL','SSoUh','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Cluster:\x20','server-error','lzUVl','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','18227538ZhFpKY','toLowerCase','connectionTimeout','../../utils/gridComponents','warn','qcHdu','Namespace:\x20','<UsernamePlaceholder>','stack','ahmMQ','Wjydr','UliyW','ONdlD','isClusterPresent','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','ZvyMv','zYcyT','Haylt','delete-grid-called','command'];a11_0x4e2c=function(){return _0x4d04f2;};return a11_0x4e2c();}
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0x2baf(){const _0x34cc73=['uuid','boVuf','687848EJdFMe','8790MuGyje','statusCode','Kwnvw','description','366veRIgs','8RNRxxP','argv','PqUDp','ZsxvA','vxdbw','hxYXt','bstackAccesskey','bstack-username','ydMFm','eEoHz','pPzOl','shyQq','gLErt','existsSync','recommendCommands','WXVgr','Tzfmw','password','help','stringify','JgbqX','ERROR','Browserstack','YOVuH','IBqsa','../config/constants','stack','FlwYa','JbWTo','WgVSV','dlqjl','BROWSERSTACK_USERNAME','QPeTQ','751200LiXxAO','gqbxF','BROWSERSTACK_ACCESS_KEY','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','Dpsro','6411XoOUeo','options','76eBOztY','vLkCD','frzDd','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','3751335zGakTb','desc','bstackUsername','JwraF','prwnR','strict','kNDvV','parse','mkdirSync','string','readFileSync','RagRi','got','gxgHE','username','HlqqU','debug','EJhsM','5063954mjXvct','GXECe','kSJij','/automate/plan.json','exit','util','pbHSY','TzVKl','writeFileSync','../utils/instrumentationUtils','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','builder','error','uHZkq','env','type','29405ErpLeT','TNSgn','requestId','init','RNBhv','aQpDo','869sDRtVR','utf-8','VNEqp','handler','usage','GET','wJTFS','TCXRe','JxJWU','afQdK','gKWUo'];a12_0x2baf=function(){return _0x34cc73;};return a12_0x2baf();}const a12_0x21162d=a12_0x5713;function a12_0x5713(_0x6a258d,_0x5bb6e0){const _0x2baf73=a12_0x2baf();return a12_0x5713=function(_0x57135b,_0x31134b){_0x57135b=_0x57135b-0x140;let _0x7beaf0=_0x2baf73[_0x57135b];return _0x7beaf0;},a12_0x5713(_0x6a258d,_0x5bb6e0);}(function(_0x4e4304,_0x3babf2){const _0x47847c=a12_0x5713,_0x585db0=_0x4e4304();while(!![]){try{const _0x1cc577=parseInt(_0x47847c(0x19d))/0x1+-parseInt(_0x47847c(0x176))/0x2+parseInt(_0x47847c(0x1a2))/0x3*(parseInt(_0x47847c(0x1a4))/0x4)+-parseInt(_0x47847c(0x163))/0x5*(-parseInt(_0x47847c(0x17b))/0x6)+-parseInt(_0x47847c(0x153))/0x7+-parseInt(_0x47847c(0x17c))/0x8*(-parseInt(_0x47847c(0x141))/0x9)+-parseInt(_0x47847c(0x177))/0xa*(parseInt(_0x47847c(0x169))/0xb);if(_0x1cc577===_0x3babf2)break;else _0x585db0['push'](_0x585db0['shift']());}catch(_0xa7b898){_0x585db0['push'](_0x585db0['shift']());}}}(a12_0x2baf,0x691ec));const fs=require('fs'),util=require(a12_0x21162d(0x158)),got=require(a12_0x21162d(0x14d)),{v4:uuidv4}=require(a12_0x21162d(0x174)),{logger}=require('../config/logger'),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x21162d(0x195)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x21162d(0x15c));exports['command']=a12_0x21162d(0x166),exports[a12_0x21162d(0x142)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x21162d(0x15e)]=function(_0x1f715c){const _0x49e790=a12_0x21162d,_0x3d5eb7={};_0x3d5eb7['WgVSV']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x3d5eb7[_0x49e790(0x180)]=_0x49e790(0x14a),_0x3d5eb7['OBxll']=_0x49e790(0x140),_0x3d5eb7[_0x49e790(0x19c)]=_0x49e790(0x18e);const _0x4df333=_0x3d5eb7,_0x4e17ae={};_0x4e17ae['description']=_0x4df333[_0x49e790(0x199)],_0x4e17ae[_0x49e790(0x162)]=_0x4df333[_0x49e790(0x180)];const _0x148b61={};_0x148b61[_0x49e790(0x17a)]=_0x4df333['OBxll'],_0x148b61['type']=_0x4df333[_0x49e790(0x180)];const _0x1d2fa5={};return _0x1d2fa5[_0x49e790(0x183)]=_0x4e17ae,_0x1d2fa5['bstack-accesskey']=_0x148b61,_0x1f715c[_0x49e790(0x16d)](HELP_HEADER_MESSAGE[_0x49e790(0x166)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x49e790(0x1a3)](_0x1d2fa5)['recommendCommands']()[_0x49e790(0x146)]()[_0x49e790(0x18e)](_0x4df333[_0x49e790(0x19c)])['argv'];},exports[a12_0x21162d(0x16c)]=async function(_0x19bd56){const _0x4e86a9=a12_0x21162d,_0x232029={'shyQq':function(_0x422208){return _0x422208();},'WXVgr':_0x4e86a9(0x16a),'uHZkq':_0x4e86a9(0x15d),'JgbqX':_0x4e86a9(0x14a),'boVuf':_0x4e86a9(0x140),'PqUDp':_0x4e86a9(0x18e),'IBqsa':function(_0x5dbfca){return _0x5dbfca();},'GXECe':function(_0x17d85b,_0x503a8d,_0x3707e5,_0x52b1b0,_0x20743b,_0x3cbda1,_0x16f662){return _0x17d85b(_0x503a8d,_0x3707e5,_0x52b1b0,_0x20743b,_0x3cbda1,_0x16f662);},'Tzfmw':'init-called','ZsxvA':function(_0x3c427f,_0xe36bb6){return _0x3c427f===_0xe36bb6;},'vLkCD':_0x4e86a9(0x14e),'wJTFS':function(_0x3e71a2,_0x255aba){return _0x3e71a2!==_0x255aba;},'Dpsro':_0x4e86a9(0x181),'frzDd':_0x4e86a9(0x171),'RNBhv':'cYsnZ','JbWTo':_0x4e86a9(0x184),'prwnR':_0x4e86a9(0x164),'OKLqs':'TlRLc','RagRi':_0x4e86a9(0x188),'EJhsM':_0x4e86a9(0x15a),'gqbxF':function(_0x184453,_0x5f499e){return _0x184453!==_0x5f499e;},'JwraF':'qEgoc','tJRiu':'ekDmg','gKWUo':_0x4e86a9(0x1a0),'YOVuH':_0x4e86a9(0x16e),'afQdK':function(_0x2bacc8,_0xd32009,_0x2950b2){return _0x2bacc8(_0xd32009,_0x2950b2);},'pPzOl':function(_0x5eac7a,_0x3c41fc){return _0x5eac7a!==_0x3c41fc;},'TCXRe':function(_0x170bda,_0x5d0259){return _0x170bda!==_0x5d0259;},'kpFwV':_0x4e86a9(0x155),'dlqjl':_0x4e86a9(0x159),'AFnjx':'UwOTH','HlqqU':_0x4e86a9(0x16b),'eEoHz':'dVoTO','FlwYa':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','kNDvV':function(_0x387350,_0x4b0824,_0x3c984e,_0x4a8ba1,_0x2d78d0,_0x332b8d,_0x108b64){return _0x387350(_0x4b0824,_0x3c984e,_0x4a8ba1,_0x2d78d0,_0x332b8d,_0x108b64);},'aQpDo':'wrong-creds','kXcxH':function(_0x3744e6,_0xeb412e,_0x3bd1ab,_0x50165b,_0x30838d,_0x3728ac,_0x1486f2){return _0x3744e6(_0xeb412e,_0x3bd1ab,_0x50165b,_0x30838d,_0x3728ac,_0x1486f2);},'Kwnvw':'unknown-error'};try{global_registry[_0x4e86a9(0x165)]=_0x232029[_0x4e86a9(0x194)](uuidv4),_0x232029[_0x4e86a9(0x154)](sendInstrumentationEvent,_0x19bd56,_0x232029['Tzfmw'],messageTypes['INFO'],null,null,_0x19bd56);const _0x4f87c8=_0x232029[_0x4e86a9(0x194)](getDirForConfig);!fs[_0x4e86a9(0x189)](_0x4f87c8)&&(_0x232029[_0x4e86a9(0x17f)](_0x232029[_0x4e86a9(0x1a5)],_0x232029[_0x4e86a9(0x1a5)])?fs['mkdirSync'](_0x4f87c8):_0x514c7b=_0x45368a[_0x4e86a9(0x143)]);let _0x5c5664,_0x3f9f21;if(process['env'][_0x4e86a9(0x19b)]){if(_0x232029[_0x4e86a9(0x16f)](_0x232029[_0x4e86a9(0x1a1)],_0x232029[_0x4e86a9(0x1a6)]))_0x5c5664=process[_0x4e86a9(0x161)][_0x4e86a9(0x19b)];else{let _0x42c74b={};const _0x11dc0c=_0x232029[_0x4e86a9(0x187)](_0x54c96d);_0x42dcce[_0x4e86a9(0x189)](_0x11dc0c)&&(_0x42c74b=_0x232b38[_0x4e86a9(0x148)](_0x234651['readFileSync'](_0x11dc0c,_0x232029[_0x4e86a9(0x18b)])));const _0x5da028={};_0x5da028[_0x4e86a9(0x14f)]=_0x1a34fb,_0x5da028[_0x4e86a9(0x18d)]=_0x41ecc3,_0x42c74b[_0x4e86a9(0x192)]=_0x5da028,_0x4ce967[_0x4e86a9(0x15b)](_0x11dc0c,_0x4bb4e6[_0x4e86a9(0x18f)](_0x42c74b)),_0x1eed90[_0x4e86a9(0x157)](0x0);}}process[_0x4e86a9(0x161)][_0x4e86a9(0x19f)]&&(_0x232029[_0x4e86a9(0x17f)](_0x232029[_0x4e86a9(0x167)],_0x232029[_0x4e86a9(0x198)])?_0x83e834=!![]:_0x3f9f21=process[_0x4e86a9(0x161)][_0x4e86a9(0x19f)]);_0x19bd56[_0x4e86a9(0x143)]&&(_0x232029['ZsxvA'](_0x232029[_0x4e86a9(0x145)],_0x232029['OKLqs'])?_0x392e42=_0x504f48['env']['BROWSERSTACK_USERNAME']:_0x5c5664=_0x19bd56[_0x4e86a9(0x143)]);_0x19bd56[_0x4e86a9(0x182)]&&(_0x232029[_0x4e86a9(0x16f)](_0x232029[_0x4e86a9(0x14c)],_0x232029[_0x4e86a9(0x152)])?_0x3f9f21=_0x19bd56[_0x4e86a9(0x182)]:_0x5155c2=_0x28ddf0[_0x4e86a9(0x182)]);if(_0x232029[_0x4e86a9(0x17f)](_0x5c5664,undefined)||_0x232029[_0x4e86a9(0x17f)](_0x3f9f21,undefined)){if(_0x232029[_0x4e86a9(0x19e)](_0x232029[_0x4e86a9(0x144)],_0x232029['tJRiu'])){logger[_0x4e86a9(0x151)](_0x232029[_0x4e86a9(0x173)]);const [_0xf7f813,_0x6be29f]=await _0x232029[_0x4e86a9(0x187)](inputBstackKeys);_0x5c5664=_0xf7f813,_0x3f9f21=_0x6be29f;}else{const _0x1c4aaf={};_0x1c4aaf['description']=_0x232029[_0x4e86a9(0x160)],_0x1c4aaf[_0x4e86a9(0x162)]=_0x232029[_0x4e86a9(0x190)];const _0x16d3a1={};_0x16d3a1[_0x4e86a9(0x17a)]=_0x232029[_0x4e86a9(0x175)],_0x16d3a1[_0x4e86a9(0x162)]=_0x232029['JgbqX'];const _0x3d2c2e={};return _0x3d2c2e[_0x4e86a9(0x183)]=_0x1c4aaf,_0x3d2c2e['bstack-accesskey']=_0x16d3a1,_0x40d89e[_0x4e86a9(0x16d)](_0x192fff[_0x4e86a9(0x166)])['epilogue'](_0x44802e)['options'](_0x3d2c2e)[_0x4e86a9(0x18a)]()[_0x4e86a9(0x146)]()[_0x4e86a9(0x18e)](_0x232029[_0x4e86a9(0x17e)])[_0x4e86a9(0x17d)];}}let _0x1dc0e9=![];const _0x435fba='https://'+_0x5c5664+':'+_0x3f9f21+'@'+BS_API_URL+_0x4e86a9(0x156),_0x5b6dfd={'method':_0x232029[_0x4e86a9(0x193)],'headers':_0x232029[_0x4e86a9(0x172)](getAuthHeader,_0x5c5664,_0x3f9f21),'throwHttpErrors':![]},_0x4958e0=await _0x232029['afQdK'](got,_0x435fba,_0x5b6dfd);_0x232029[_0x4e86a9(0x186)](_0x4958e0,null)&&_0x232029[_0x4e86a9(0x19e)](_0x4958e0,undefined)&&_0x232029[_0x4e86a9(0x17f)](_0x4958e0[_0x4e86a9(0x178)],0xc8)&&(_0x232029[_0x4e86a9(0x170)](_0x232029['kpFwV'],_0x232029[_0x4e86a9(0x19a)])?_0x1dc0e9=!![]:_0x4d6f3a=_0x38ef87['env'][_0x4e86a9(0x19f)]);if(_0x1dc0e9){if(_0x232029[_0x4e86a9(0x17f)](_0x232029['AFnjx'],_0x232029[_0x4e86a9(0x150)]))_0x5e7f4b=_0x61bef1[_0x4e86a9(0x148)](_0x3af2bb['readFileSync'](_0x556089,_0x232029[_0x4e86a9(0x18b)]));else{let _0x27d1b2={};const _0x598346=_0x232029[_0x4e86a9(0x187)](getCredentialsPath);fs[_0x4e86a9(0x189)](_0x598346)&&(_0x232029[_0x4e86a9(0x186)](_0x232029[_0x4e86a9(0x185)],_0x232029[_0x4e86a9(0x185)])?_0x5d8227[_0x4e86a9(0x149)](_0x26018c):_0x27d1b2=JSON[_0x4e86a9(0x148)](fs[_0x4e86a9(0x14b)](_0x598346,_0x232029[_0x4e86a9(0x18b)])));const _0x310cfe={};_0x310cfe[_0x4e86a9(0x14f)]=_0x5c5664,_0x310cfe['password']=_0x3f9f21,_0x27d1b2['Browserstack']=_0x310cfe,fs[_0x4e86a9(0x15b)](_0x598346,JSON[_0x4e86a9(0x18f)](_0x27d1b2)),process[_0x4e86a9(0x157)](0x0);}}else logger[_0x4e86a9(0x15f)](_0x232029[_0x4e86a9(0x197)]),await _0x232029[_0x4e86a9(0x147)](sendInstrumentationEvent,_0x19bd56,_0x232029[_0x4e86a9(0x18c)],messageTypes[_0x4e86a9(0x191)],_0x232029[_0x4e86a9(0x168)],null,_0x19bd56),process['exit'](0x1);}catch(_0x539cd6){logger[_0x4e86a9(0x15f)](_0x539cd6[_0x4e86a9(0x196)]),await _0x232029['kXcxH'](sendInstrumentationEvent,_0x19bd56,_0x232029[_0x4e86a9(0x18c)],messageTypes[_0x4e86a9(0x191)],_0x232029[_0x4e86a9(0x179)],_0x539cd6,_0x19bd56),process[_0x4e86a9(0x157)](0x1);}};
|
|
1
|
+
const a12_0x34e926=a12_0x54e1;(function(_0x2741b0,_0x52da68){const _0x2403b0=a12_0x54e1,_0x1f1799=_0x2741b0();while(!![]){try{const _0x269646=parseInt(_0x2403b0(0x145))/0x1+-parseInt(_0x2403b0(0x15f))/0x2+-parseInt(_0x2403b0(0x148))/0x3+parseInt(_0x2403b0(0x164))/0x4*(-parseInt(_0x2403b0(0x14c))/0x5)+-parseInt(_0x2403b0(0x118))/0x6+-parseInt(_0x2403b0(0x14d))/0x7+parseInt(_0x2403b0(0x121))/0x8;if(_0x269646===_0x52da68)break;else _0x1f1799['push'](_0x1f1799['shift']());}catch(_0x4d226d){_0x1f1799['push'](_0x1f1799['shift']());}}}(a12_0x1b9c,0x9a46c));const fs=require('fs'),util=require(a12_0x34e926(0x16f)),got=require(a12_0x34e926(0x12b)),{v4:uuidv4}=require(a12_0x34e926(0x157)),{logger}=require(a12_0x34e926(0x16e)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x34e926(0x173)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x34e926(0x138)),{sendInstrumentationEvent}=require(a12_0x34e926(0x158));function a12_0x54e1(_0x2e57ee,_0x333504){const _0x1b9c54=a12_0x1b9c();return a12_0x54e1=function(_0x54e124,_0x564d0d){_0x54e124=_0x54e124-0x10d;let _0x5d620f=_0x1b9c54[_0x54e124];return _0x5d620f;},a12_0x54e1(_0x2e57ee,_0x333504);}exports[a12_0x34e926(0x139)]='init',exports[a12_0x34e926(0x12c)]=a12_0x34e926(0x140),exports[a12_0x34e926(0x124)]=function(_0x2d6691){const _0x341253=a12_0x34e926,_0x1123bd={};_0x1123bd[_0x341253(0x11b)]=_0x341253(0x153),_0x1123bd[_0x341253(0x113)]=_0x341253(0x169),_0x1123bd[_0x341253(0x177)]=_0x341253(0x172),_0x1123bd['QLHOQ']=_0x341253(0x11d);const _0x478603=_0x1123bd,_0x2f1f75={};_0x2f1f75[_0x341253(0x151)]=_0x478603[_0x341253(0x11b)],_0x2f1f75[_0x341253(0x168)]=_0x478603[_0x341253(0x113)];const _0x409ba8={};_0x409ba8[_0x341253(0x151)]=_0x478603['rubtv'],_0x409ba8[_0x341253(0x168)]=_0x478603[_0x341253(0x113)];const _0x508ed9={};return _0x508ed9[_0x341253(0x15b)]=_0x2f1f75,_0x508ed9[_0x341253(0x117)]=_0x409ba8,_0x2d6691[_0x341253(0x16d)](HELP_HEADER_MESSAGE[_0x341253(0x171)])[_0x341253(0x133)](HELP_FOOTER_MESSAGE)[_0x341253(0x15e)](_0x508ed9)['recommendCommands']()['strict']()[_0x341253(0x11d)](_0x478603[_0x341253(0x167)])['argv'];},exports[a12_0x34e926(0x160)]=async function(_0x523721){const _0x432de6=a12_0x34e926,_0x4b973b={'PdXBc':'utf-8','GEKur':_0x432de6(0x153),'BiBUx':'string','NQpaq':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','pCBzI':'help','oJUtS':function(_0x3c66ca){return _0x3c66ca();},'tCJxk':function(_0x3ae1c2){return _0x3ae1c2();},'WnrYE':function(_0x2cb3c4,_0x1a4cc4,_0x56f934,_0x328279,_0x3efe36,_0x23f602,_0xa13d91){return _0x2cb3c4(_0x1a4cc4,_0x56f934,_0x328279,_0x3efe36,_0x23f602,_0xa13d91);},'KvZjP':'init-called','magiG':function(_0x27c4b8,_0x39cb50){return _0x27c4b8===_0x39cb50;},'YDJsI':_0x432de6(0x135),'ISSKC':_0x432de6(0x125),'URsVG':_0x432de6(0x176),'dWrtV':function(_0x147f1c,_0x1348e0){return _0x147f1c!==_0x1348e0;},'uyQuJ':_0x432de6(0x15d),'VXNnB':function(_0x462678,_0x3b7e23){return _0x462678!==_0x3b7e23;},'SLzIh':_0x432de6(0x15c),'NiHoo':_0x432de6(0x122),'tdeqD':function(_0x8bc1ca,_0x26e260){return _0x8bc1ca===_0x26e260;},'CnFLf':function(_0x41e43a,_0x5c7921){return _0x41e43a!==_0x5c7921;},'mEgPI':_0x432de6(0x112),'HQewx':_0x432de6(0x149),'jiCum':_0x432de6(0x15a),'UBMEy':function(_0x3565a1,_0x7131d7,_0x3f16f5){return _0x3565a1(_0x7131d7,_0x3f16f5);},'IyvWg':function(_0x20c9f,_0x2a26e5,_0x496368){return _0x20c9f(_0x2a26e5,_0x496368);},'ZAATk':function(_0x438d9c,_0x517d90){return _0x438d9c!==_0x517d90;},'XiAwY':function(_0x300231,_0x28fca0){return _0x300231===_0x28fca0;},'IYjvS':function(_0x5cea80,_0x533ae7){return _0x5cea80!==_0x533ae7;},'bueeF':_0x432de6(0x16b),'Zqfiq':_0x432de6(0x11c),'hsCLa':_0x432de6(0x16a),'DOusR':function(_0x1f7705){return _0x1f7705();},'gfVOJ':_0x432de6(0x120),'HCHZh':_0x432de6(0x116),'RoVQx':_0x432de6(0x147),'MoktG':_0x432de6(0x126),'aiYKM':_0x432de6(0x123)};try{global_registry[_0x432de6(0x13d)]=_0x4b973b[_0x432de6(0x14f)](uuidv4),_0x4b973b[_0x432de6(0x114)](sendInstrumentationEvent,_0x523721,_0x4b973b['KvZjP'],messageTypes['INFO'],null,null,_0x523721);const _0x1352f8=_0x4b973b[_0x432de6(0x12f)](getDirForConfig);!fs['existsSync'](_0x1352f8)&&(_0x4b973b[_0x432de6(0x174)](_0x4b973b[_0x432de6(0x134)],_0x4b973b[_0x432de6(0x13f)])?_0x342028['mkdirSync'](_0x31d957):fs[_0x432de6(0x10d)](_0x1352f8));let _0x13017d,_0x1dae09;process[_0x432de6(0x14b)][_0x432de6(0x11f)]&&(_0x4b973b[_0x432de6(0x174)](_0x4b973b[_0x432de6(0x131)],_0x4b973b['URsVG'])?_0x13017d=process[_0x432de6(0x14b)]['BROWSERSTACK_USERNAME']:_0x2434ae=_0x3d6fa1['bstackAccesskey']);process[_0x432de6(0x14b)]['BROWSERSTACK_ACCESS_KEY']&&(_0x4b973b[_0x432de6(0x146)](_0x4b973b['uyQuJ'],_0x4b973b[_0x432de6(0x11a)])?_0x466c15=!![]:_0x1dae09=process[_0x432de6(0x14b)][_0x432de6(0x110)]);_0x523721[_0x432de6(0x170)]&&(_0x4b973b['VXNnB'](_0x4b973b[_0x432de6(0x13c)],_0x4b973b[_0x432de6(0x13c)])?_0xfc6d9=_0x108f65[_0x432de6(0x14b)][_0x432de6(0x110)]:_0x13017d=_0x523721['bstackUsername']);_0x523721['bstackAccesskey']&&(_0x4b973b[_0x432de6(0x146)](_0x4b973b[_0x432de6(0x128)],_0x4b973b[_0x432de6(0x128)])?_0x304101=_0x1d3245[_0x432de6(0x161)](_0xe4507d['readFileSync'](_0x32e60d,_0x4b973b[_0x432de6(0x130)])):_0x1dae09=_0x523721['bstackAccesskey']);if(_0x4b973b[_0x432de6(0x174)](_0x13017d,undefined)||_0x4b973b[_0x432de6(0x154)](_0x1dae09,undefined)){if(_0x4b973b[_0x432de6(0x141)](_0x4b973b[_0x432de6(0x159)],_0x4b973b[_0x432de6(0x159)]))_0x49c88e=_0x18d515[_0x432de6(0x14b)][_0x432de6(0x11f)];else{logger[_0x432de6(0x12a)](_0x4b973b[_0x432de6(0x178)]);const [_0x2f3aa3,_0x177046]=await _0x4b973b[_0x432de6(0x12f)](inputBstackKeys);_0x13017d=_0x2f3aa3,_0x1dae09=_0x177046;}}let _0x2b9fa8=![];const _0x4ee26b=_0x432de6(0x10f)+_0x13017d+':'+_0x1dae09+'@'+BS_API_URL+_0x432de6(0x163),_0x339738={'method':_0x4b973b[_0x432de6(0x156)],'headers':_0x4b973b['UBMEy'](getAuthHeader,_0x13017d,_0x1dae09),'throwHttpErrors':![]},_0x1988b6=await _0x4b973b[_0x432de6(0x162)](got,_0x4ee26b,_0x339738);if(_0x4b973b[_0x432de6(0x11e)](_0x1988b6,null)&&_0x4b973b[_0x432de6(0x14e)](_0x1988b6,undefined)&&_0x4b973b[_0x432de6(0x165)](_0x1988b6[_0x432de6(0x12d)],0xc8)){if(_0x4b973b[_0x432de6(0x137)](_0x4b973b[_0x432de6(0x155)],_0x4b973b[_0x432de6(0x10e)]))_0x2b9fa8=!![];else{const _0x2192a9={};_0x2192a9[_0x432de6(0x151)]=_0x4b973b[_0x432de6(0x12e)],_0x2192a9[_0x432de6(0x168)]=_0x4b973b[_0x432de6(0x119)];const _0x2e8d92={};_0x2e8d92['description']=_0x4b973b[_0x432de6(0x111)],_0x2e8d92[_0x432de6(0x168)]=_0x4b973b[_0x432de6(0x119)];const _0x4880fc={};return _0x4880fc[_0x432de6(0x15b)]=_0x2192a9,_0x4880fc[_0x432de6(0x117)]=_0x2e8d92,_0x34bfa9[_0x432de6(0x16d)](_0x293a5d[_0x432de6(0x171)])['epilogue'](_0x2ad392)[_0x432de6(0x15e)](_0x4880fc)['recommendCommands']()[_0x432de6(0x136)]()[_0x432de6(0x11d)](_0x4b973b['pCBzI'])[_0x432de6(0x150)];}}if(_0x2b9fa8){if(_0x4b973b['tdeqD'](_0x4b973b['hsCLa'],_0x4b973b['hsCLa'])){let _0x997691={};const _0x59b85e=_0x4b973b[_0x432de6(0x142)](getCredentialsPath);fs[_0x432de6(0x175)](_0x59b85e)&&(_0x4b973b[_0x432de6(0x141)](_0x4b973b[_0x432de6(0x13e)],_0x4b973b[_0x432de6(0x13a)])?_0x997691=JSON['parse'](fs[_0x432de6(0x129)](_0x59b85e,_0x4b973b[_0x432de6(0x130)])):_0xa5bb37=_0x55154d[_0x432de6(0x170)]);const _0x3a5944={};_0x3a5944['username']=_0x13017d,_0x3a5944[_0x432de6(0x152)]=_0x1dae09,_0x997691['Browserstack']=_0x3a5944,fs[_0x432de6(0x14a)](_0x59b85e,JSON[_0x432de6(0x132)](_0x997691)),process['exit'](0x0);}else{let _0x4a520c={};const _0x5eeb1d=_0x4b973b[_0x432de6(0x12f)](_0x31448a);_0x3b503f[_0x432de6(0x175)](_0x5eeb1d)&&(_0x4a520c=_0x4a4a88['parse'](_0x5c33b9[_0x432de6(0x129)](_0x5eeb1d,_0x4b973b['PdXBc'])));const _0x54c4ce={};_0x54c4ce['username']=_0x3f134f,_0x54c4ce[_0x432de6(0x152)]=_0x3c4f9a,_0x4a520c['Browserstack']=_0x54c4ce,_0x593782[_0x432de6(0x14a)](_0x5eeb1d,_0xf54b0c[_0x432de6(0x132)](_0x4a520c)),_0x1a1c34[_0x432de6(0x143)](0x0);}}else logger[_0x432de6(0x144)](_0x4b973b[_0x432de6(0x16c)]),await _0x4b973b[_0x432de6(0x114)](sendInstrumentationEvent,_0x523721,_0x4b973b[_0x432de6(0x166)],messageTypes[_0x432de6(0x115)],_0x4b973b[_0x432de6(0x13b)],null,_0x523721),process[_0x432de6(0x143)](0x1);}catch(_0x5edf27){logger[_0x432de6(0x144)](_0x5edf27['stack']),await _0x4b973b[_0x432de6(0x114)](sendInstrumentationEvent,_0x523721,_0x4b973b['KvZjP'],messageTypes['ERROR'],_0x4b973b[_0x432de6(0x127)],_0x5edf27,_0x523721),process[_0x432de6(0x143)](0x1);}};function a12_0x1b9c(){const _0x5f14be=['epilogue','YDJsI','wbsJC','strict','IYjvS','../utils/utilityMethods','command','HCHZh','MoktG','SLzIh','requestId','gfVOJ','ISSKC','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','CnFLf','DOusR','exit','error','536071Nhhzxy','dWrtV','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','2787807VigPvc','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','writeFileSync','env','345OZzWDV','6204562icxTeg','VXNnB','tCJxk','argv','description','password','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','tdeqD','bueeF','jiCum','uuid','../utils/instrumentationUtils','mEgPI','GET','bstack-username','bHFFP','glMIh','options','2334366kjZNsI','handler','parse','IyvWg','/automate/plan.json','42916CgJqZB','XiAwY','KvZjP','QLHOQ','type','string','sNnCy','TQypr','RoVQx','usage','../config/logger','util','bstackUsername','init','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','../config/constants','magiG','existsSync','jYOCB','rubtv','HQewx','mkdirSync','Zqfiq','https://','BROWSERSTACK_ACCESS_KEY','NQpaq','oUTLI','YnZKk','WnrYE','ERROR','zjGEK','bstack-accesskey','5151144JelKaa','BiBUx','uyQuJ','voHnz','vfIjF','help','ZAATk','BROWSERSTACK_USERNAME','ENLxC','37419904OnxWhA','mCBAP','unknown-error','builder','cLaCJ','wrong-creds','aiYKM','NiHoo','readFileSync','debug','got','desc','statusCode','GEKur','oJUtS','PdXBc','URsVG','stringify'];a12_0x1b9c=function(){return _0x5f14be;};return a12_0x1b9c();}
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a13_0x21a3(){const _0x4c97e8=['help','commandDir','list','66485ujmktz','4231700OGaFXO','root','1413nISyxS','../config/constants','109677hhqhfH','lCLWp','8fuOLHj','2996ELTxAn','36291RSnSsH','list_commands','20lpiNud','strict','desc','ntzep','recommendCommands','builder','epilogue','2557200jwcIbU','16152gTBkQF','282ECNIvV'];a13_0x21a3=function(){return _0x4c97e8;};return a13_0x21a3();}const a13_0x3814bf=a13_0x5054;function a13_0x5054(_0x50eb43,_0x2c06e5){const _0x21a3bd=a13_0x21a3();return a13_0x5054=function(_0x505418,_0x49fa6d){_0x505418=_0x505418-0x123;let _0x4dd925=_0x21a3bd[_0x505418];return _0x4dd925;},a13_0x5054(_0x50eb43,_0x2c06e5);}(function(_0x1c5747,_0xccecdf){const _0x3c47cd=a13_0x5054,_0x15021b=_0x1c5747();while(!![]){try{const _0x23226a=-parseInt(_0x3c47cd(0x138))/0x1*(parseInt(_0x3c47cd(0x136))/0x2)+-parseInt(_0x3c47cd(0x134))/0x3+parseInt(_0x3c47cd(0x13a))/0x4*(parseInt(_0x3c47cd(0x12f))/0x5)+parseInt(_0x3c47cd(0x12b))/0x6*(-parseInt(_0x3c47cd(0x137))/0x7)+parseInt(_0x3c47cd(0x12a))/0x8*(-parseInt(_0x3c47cd(0x132))/0x9)+parseInt(_0x3c47cd(0x129))/0xa+parseInt(_0x3c47cd(0x130))/0xb;if(_0x23226a===_0xccecdf)break;else _0x15021b['push'](_0x15021b['shift']());}catch(_0x102e84){_0x15021b['push'](_0x15021b['shift']());}}}(a13_0x21a3,0x2deb3));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x3814bf(0x133));exports['command']='list',exports[a13_0x3814bf(0x124)]='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0x3814bf(0x127)]=function(_0x1665cf){const _0x57f1f9=a13_0x3814bf,_0xd669d8={};_0xd669d8[_0x57f1f9(0x125)]=_0x57f1f9(0x139),_0xd669d8[_0x57f1f9(0x135)]=_0x57f1f9(0x12c);const _0x2057fe=_0xd669d8;return _0x1665cf[_0x57f1f9(0x12d)](_0x2057fe[_0x57f1f9(0x125)])['demandCommand']()['usage'](HELP_HEADER_MESSAGE[_0x57f1f9(0x12e)][_0x57f1f9(0x131)])[_0x57f1f9(0x128)](HELP_FOOTER_MESSAGE)[_0x57f1f9(0x126)]()[_0x57f1f9(0x123)]()[_0x57f1f9(0x12c)](_0x2057fe[_0x57f1f9(0x135)]);},exports['handler']=function(_0x187541){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x18ec41=a14_0x5026;(function(_0x6e14f9,_0xce3e7e){const _0x4b0806=a14_0x5026,_0xbabafc=_0x6e14f9();while(!![]){try{const _0x19c565=parseInt(_0x4b0806(0xc7))/0x1+parseInt(_0x4b0806(0xf3))/0x2*(-parseInt(_0x4b0806(0xf5))/0x3)+parseInt(_0x4b0806(0xf6))/0x4+-parseInt(_0x4b0806(0xef))/0x5*(-parseInt(_0x4b0806(0xed))/0x6)+parseInt(_0x4b0806(0xe6))/0x7+parseInt(_0x4b0806(0x10a))/0x8*(parseInt(_0x4b0806(0xda))/0x9)+parseInt(_0x4b0806(0xe7))/0xa*(-parseInt(_0x4b0806(0xc4))/0xb);if(_0x19c565===_0xce3e7e)break;else _0xbabafc['push'](_0xbabafc['shift']());}catch(_0x19d920){_0xbabafc['push'](_0xbabafc['shift']());}}}(a14_0xd6fc,0xeff1b));function a14_0xd6fc(){const _0x16c071=['epilogue','requestId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','9114574SqTmMo','30pcMtos','name','../../utils/utilityMethods','parse','region','forEach','120nQNOdk','builder','90805DbastU','ERROR','type','Failed\x20to\x20list\x20resources!\x20Error:\x20','51538jqkJuE','exit','3UWCcyK','6433560fPqnSB','usage','VVDKa','RQqit','zZyVr','command','https://','TeAjj','argv','PjANd','iHVeJ','cVkNd','HpwbX','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','init-not-called','Gkuzi','list','username','zQMBl','bstackAccesskey','8KaWigZ','IeuwC','HFBnl','allGridProfiles','push','xoQeJ','rgPkT','help','bstackUsername','uXWno','14353581NCkYig','log','concurrency','1584190kdqYFP','FubJH','readFileSync','statusCode','stack','unauthorised','cloudProvider','qfCYG','xiRDj','tInhX','got','password','pWsrW','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','/packages/cli/get-all-grid-profiles','options','uEIWU','unknown-error','list-grid-profiles-called','587799jOsZuZ','uuid','server-error','desc','Browserstack','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','qjeYY','error','hGlZQ'];a14_0xd6fc=function(){return _0x16c071;};return a14_0xd6fc();}function a14_0x5026(_0x1a199a,_0x40d927){const _0xd6fc4a=a14_0xd6fc();return a14_0x5026=function(_0x5026bc,_0x1c8d68){_0x5026bc=_0x5026bc-0xbf;let _0x58a6c1=_0xd6fc4a[_0x5026bc];return _0x58a6c1;},a14_0x5026(_0x1a199a,_0x40d927);}const fs=require('fs'),got=require(a14_0x18ec41(0xd1)),{table}=require('table'),{v4:uuidv4}=require(a14_0x18ec41(0xdb)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a14_0x18ec41(0xe9)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x18ec41(0xfb)]='grid-profiles',exports[a14_0x18ec41(0xdd)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a14_0x18ec41(0xee)]=function(_0x39253f){const _0x522622=a14_0x18ec41,_0x1f0f99={};_0x1f0f99['VVDKa']=_0x522622(0xd4),_0x1f0f99[_0x522622(0xf9)]='boolean',_0x1f0f99['lZkTd']=_0x522622(0xc1);const _0x513ab0=_0x1f0f99,_0x22df7b={};_0x22df7b['description']=_0x513ab0[_0x522622(0xf8)],_0x22df7b[_0x522622(0xf1)]=_0x513ab0[_0x522622(0xf9)];const _0x562834={};return _0x562834['all-grid-profiles']=_0x22df7b,_0x39253f[_0x522622(0xf7)](HELP_HEADER_MESSAGE[_0x522622(0x106)]['gridProfile'])[_0x522622(0xe3)](HELP_FOOTER_MESSAGE)[_0x522622(0xd6)](_0x562834)[_0x522622(0xc1)](_0x513ab0['lZkTd'])[_0x522622(0xfe)];},exports['handler']=async function(_0x171f9d){const _0x4d8408=a14_0x18ec41,_0x689174={'HpwbX':function(_0x300aed){return _0x300aed();},'zQMBl':_0x4d8408(0xe5),'kUHFl':function(_0x5a5fc4,_0x931989,_0x50d2f5,_0x200a79,_0x73a046,_0x4b16a2,_0x4afe25){return _0x5a5fc4(_0x931989,_0x50d2f5,_0x200a79,_0x73a046,_0x4b16a2,_0x4afe25);},'hGlZQ':_0x4d8408(0xd9),'ROGOg':_0x4d8408(0x104),'FubJH':function(_0x2f0584){return _0x2f0584();},'rgPkT':'GET','qjeYY':function(_0x1718bb,_0x303513,_0x46fc85){return _0x1718bb(_0x303513,_0x46fc85);},'Gkuzi':function(_0x988e43,_0x3dcf99,_0x284582,_0x4683e7,_0x4f8cc3,_0x422f98,_0x46615f){return _0x988e43(_0x3dcf99,_0x284582,_0x4683e7,_0x4f8cc3,_0x422f98,_0x46615f);},'tInhX':function(_0x540b94,_0x239bcd){return _0x540b94!==_0x239bcd;},'IeuwC':function(_0x3ea5bd,_0x4d3c8d){return _0x3ea5bd!==_0x4d3c8d;},'TeAjj':function(_0x27e3e3,_0x4a4d97){return _0x27e3e3===_0x4a4d97;},'zZyVr':_0x4d8408(0x103),'ljgKY':'grid-profile-name','pWsrW':'cloud-provider','xoQeJ':'region','qfCYG':'concurrency','PjANd':function(_0x25e8a9,_0x52506d){return _0x25e8a9(_0x52506d);},'xiRDj':function(_0x1f1d25,_0x173081){return _0x1f1d25===_0x173081;},'zWchN':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','uXWno':function(_0x2738ac,_0x5bcf59,_0x2c0b2c,_0x331080,_0x4e3fe5,_0x36ffd4,_0x30130c){return _0x2738ac(_0x5bcf59,_0x2c0b2c,_0x331080,_0x4e3fe5,_0x36ffd4,_0x30130c);},'iHVeJ':_0x4d8408(0xcc),'RRUgk':function(_0x20ac75,_0x31c4a2,_0x344d3d,_0x44b48c,_0xa320af,_0x16bb05,_0x49be20){return _0x20ac75(_0x31c4a2,_0x344d3d,_0x44b48c,_0xa320af,_0x16bb05,_0x49be20);},'HFBnl':_0x4d8408(0xdc),'cVkNd':function(_0x3a6ca6,_0x2451e5,_0x33002a,_0x446dc0,_0x250ea2,_0x3f5e1e,_0x11285b){return _0x3a6ca6(_0x2451e5,_0x33002a,_0x446dc0,_0x250ea2,_0x3f5e1e,_0x11285b);},'uEIWU':_0x4d8408(0xd8)};try{global_registry[_0x4d8408(0xe4)]=_0x689174[_0x4d8408(0x102)](uuidv4);let _0x2c493a=_0x4d8408(0xfc)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x171f9d[_0x4d8408(0x10d)]&&(_0x2c493a=_0x4d8408(0xfc)+AG_API_URL+_0x4d8408(0xd5));!fs['existsSync'](_0x689174[_0x4d8408(0x102)](getCredentialsPath))&&(console[_0x4d8408(0xe1)](_0x689174[_0x4d8408(0x108)]),await _0x689174['kUHFl'](sendInstrumentationEvent,_0x171f9d,_0x689174['hGlZQ'],messageTypes[_0x4d8408(0xf0)],_0x689174['ROGOg'],null,_0x171f9d),process['exit'](0x1));const _0x4c7a57=JSON[_0x4d8408(0xea)](fs[_0x4d8408(0xc9)](_0x689174[_0x4d8408(0xc8)](getCredentialsPath))),_0x21a249={'method':_0x689174[_0x4d8408(0xc0)],'headers':_0x689174[_0x4d8408(0xe0)](getAuthHeader,_0x4c7a57[_0x4d8408(0xde)][_0x4d8408(0x107)],_0x4c7a57[_0x4d8408(0xde)][_0x4d8408(0xd2)]),'throwHttpErrors':![]};global_registry[_0x4d8408(0xc2)]=_0x4c7a57[_0x4d8408(0xde)][_0x4d8408(0x107)],global_registry[_0x4d8408(0x109)]=_0x4c7a57[_0x4d8408(0xde)][_0x4d8408(0xd2)],_0x689174[_0x4d8408(0x105)](sendInstrumentationEvent,_0x171f9d,_0x689174['hGlZQ'],messageTypes['INFO'],null,null,_0x171f9d);const _0x4fc3de=await _0x689174[_0x4d8408(0xe0)](got,_0x2c493a,_0x21a249);if(_0x689174[_0x4d8408(0xd0)](_0x4fc3de,null)&&_0x689174[_0x4d8408(0x10b)](_0x4fc3de,undefined)&&_0x689174[_0x4d8408(0xfd)](_0x4fc3de['statusCode'],0xc8)){const _0x549b1d=JSON['parse'](_0x4fc3de['body']);console['log'](_0x689174[_0x4d8408(0xfa)]);const _0x48ac2e=[];_0x48ac2e[_0x4d8408(0x10e)]([_0x689174['ljgKY'],_0x689174[_0x4d8408(0xd3)],_0x689174[_0x4d8408(0xbf)],_0x689174[_0x4d8408(0xce)]]),_0x549b1d[_0x4d8408(0xec)](_0x387711=>{const _0xcde5cd=_0x4d8408;_0x48ac2e[_0xcde5cd(0x10e)]([_0x387711[_0xcde5cd(0xe8)],_0x387711[_0xcde5cd(0xcd)],_0x387711[_0xcde5cd(0xeb)],_0x387711[_0xcde5cd(0xc6)]]);}),console[_0x4d8408(0xc5)](_0x689174[_0x4d8408(0xff)](table,_0x48ac2e)),process[_0x4d8408(0xf4)](0x0);}_0x689174[_0x4d8408(0xcf)](_0x4fc3de[_0x4d8408(0xca)],0x191)&&(console[_0x4d8408(0xe1)](_0x689174['zWchN']),await _0x689174[_0x4d8408(0xc3)](sendInstrumentationEvent,_0x171f9d,_0x689174[_0x4d8408(0xe2)],messageTypes[_0x4d8408(0xf0)],_0x689174[_0x4d8408(0x100)],null,_0x171f9d),process[_0x4d8408(0xf4)](0x1)),console[_0x4d8408(0xe1)](_0x4d8408(0xdf)+JSON['stringify'](_0x4fc3de)),await _0x689174['RRUgk'](sendInstrumentationEvent,_0x171f9d,_0x689174[_0x4d8408(0xe2)],messageTypes[_0x4d8408(0xf0)],_0x689174[_0x4d8408(0x10c)],_0x4fc3de,_0x171f9d),process[_0x4d8408(0xf4)](0x1);}catch(_0x33eb0b){console['error'](_0x4d8408(0xf2)+_0x33eb0b[_0x4d8408(0xcb)]),await _0x689174[_0x4d8408(0x101)](sendInstrumentationEvent,_0x171f9d,_0x689174['hGlZQ'],messageTypes[_0x4d8408(0xf0)],_0x689174[_0x4d8408(0xd7)],_0x33eb0b,_0x171f9d),process[_0x4d8408(0xf4)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a15_0x7191(_0x528e2e,_0x1d7bc1){const _0x1e1348=a15_0x1e13();return a15_0x7191=function(_0x7191bf,_0x407de7){_0x7191bf=_0x7191bf-0xac;let _0x29ae39=_0x1e1348[_0x7191bf];return _0x29ae39;},a15_0x7191(_0x528e2e,_0x1d7bc1);}const a15_0x2e4fbe=a15_0x7191;(function(_0x102583,_0x459b53){const _0x1fa979=a15_0x7191,_0x2c1d23=_0x102583();while(!![]){try{const _0x2e3ee8=parseInt(_0x1fa979(0xe1))/0x1+parseInt(_0x1fa979(0xd7))/0x2*(-parseInt(_0x1fa979(0xbe))/0x3)+-parseInt(_0x1fa979(0x100))/0x4+-parseInt(_0x1fa979(0xf8))/0x5+parseInt(_0x1fa979(0xc3))/0x6*(parseInt(_0x1fa979(0xcd))/0x7)+-parseInt(_0x1fa979(0xfb))/0x8+-parseInt(_0x1fa979(0xbf))/0x9*(parseInt(_0x1fa979(0xe2))/0xa);if(_0x2e3ee8===_0x459b53)break;else _0x2c1d23['push'](_0x2c1d23['shift']());}catch(_0x5c8400){_0x2c1d23['push'](_0x2c1d23['shift']());}}}(a15_0x1e13,0x71875));const fs=require('fs'),got=require(a15_0x2e4fbe(0xc1)),{table}=require(a15_0x2e4fbe(0xc8)),{v4:uuidv4}=require(a15_0x2e4fbe(0x102)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x2e4fbe(0xd4)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x1e13(){const _0x4d748d=['push','username','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','desc','kmhbb','exit','905147yAvdxM','752530rEeGTa','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid-name','Failed\x20to\x20list\x20resources!\x20Error:\x20','init-not-called','error','OzsKh','\x0aFound\x20the\x20following\x20grids:\x0a','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','doqTE','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','eDjKW','zAAHu','argv','PFvHW','statusCode','readFileSync','handler','running','epilogue','fPZBi','1936695kTxlLi','/packages/cli/get-all-grids','INFO','721256axGsVf','ERROR','qmyXv','hRkjG','bstackAccesskey','1438376pfAzah','log','uuid','parse','rKOQX','forEach','stack','name','rWLTq','ErnuW','list','PJvPG','LSmdt','help','TKuba','allGrids','clusterName','command','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','/packages/cli/get-grids','status','374937otxwyU','9WPOegI','options','got','list-grids-called','4333002CWJwsY','server-error','Browserstack','Ixuqp','unknown-error','table','body','ikEJn','bstackUsername','all-grids','7qFgMlS','grid-id','kFRgN','bcNIB','existsSync','queued','uLWvp','../../utils/utilityMethods','PDJOz','https://','4pRFwkT','type','wsfBw','cluster-name'];a15_0x1e13=function(){return _0x4d748d;};return a15_0x1e13();}exports[a15_0x2e4fbe(0xba)]='grids',exports[a15_0x2e4fbe(0xde)]=a15_0x2e4fbe(0xbb),exports['builder']=function(_0x28557a){const _0x528d16=a15_0x2e4fbe,_0x524c7c={};_0x524c7c[_0x528d16(0xd3)]=_0x528d16(0xdd),_0x524c7c[_0x528d16(0xb5)]='boolean',_0x524c7c[_0x528d16(0xcf)]=_0x528d16(0xb6);const _0x39270f=_0x524c7c,_0x1029d0={};_0x1029d0['description']=_0x39270f[_0x528d16(0xd3)],_0x1029d0[_0x528d16(0xd8)]=_0x39270f[_0x528d16(0xb5)];const _0x286b3b={};return _0x286b3b[_0x528d16(0xcc)]=_0x1029d0,_0x28557a['usage'](HELP_HEADER_MESSAGE[_0x528d16(0xb3)]['grid'])[_0x528d16(0xf6)](HELP_FOOTER_MESSAGE)[_0x528d16(0xc0)](_0x286b3b)[_0x528d16(0xb6)](_0x39270f[_0x528d16(0xcf)])[_0x528d16(0xf0)];},exports[a15_0x2e4fbe(0xf4)]=async function(_0x4e14e3){const _0x3bd868=a15_0x2e4fbe,_0x7889f0={'OzsKh':function(_0x2020bd){return _0x2020bd();},'kmhbb':_0x3bd868(0xe3),'Ixuqp':function(_0x2d509c,_0x4e3d79,_0x4b9920,_0x29cea9,_0x45d730,_0xbc1b19,_0x5a579b){return _0x2d509c(_0x4e3d79,_0x4b9920,_0x29cea9,_0x45d730,_0xbc1b19,_0x5a579b);},'TKuba':_0x3bd868(0xc2),'PDJOz':_0x3bd868(0xe6),'ikEJn':'GET','PFvHW':function(_0x3f0763,_0x180569,_0x50d146){return _0x3f0763(_0x180569,_0x50d146);},'rWLTq':function(_0x4190dc,_0x597d95){return _0x4190dc!==_0x597d95;},'hRkjG':function(_0x2456f5,_0x2dbe07){return _0x2456f5!==_0x2dbe07;},'QnrER':function(_0x817c92,_0x42c904){return _0x817c92===_0x42c904;},'doqTE':_0x3bd868(0xe9),'xkXtv':_0x3bd868(0xce),'eDjKW':_0x3bd868(0xe4),'zAAHu':_0x3bd868(0xbd),'wsfBw':_0x3bd868(0xf5),'ErnuW':_0x3bd868(0xd2),'PJvPG':_0x3bd868(0xda),'qmyXv':function(_0x100b70,_0xc4334){return _0x100b70(_0xc4334);},'PGLHZ':_0x3bd868(0xed),'bcNIB':'unauthorised','cSssY':_0x3bd868(0xc4),'rKOQX':function(_0x2927b1,_0x524014,_0x10ea18,_0x2e155b,_0x372714,_0x1e2c22,_0x54c3be){return _0x2927b1(_0x524014,_0x10ea18,_0x2e155b,_0x372714,_0x1e2c22,_0x54c3be);},'fPZBi':_0x3bd868(0xc7)};try{global_registry['requestId']=_0x7889f0[_0x3bd868(0xe8)](uuidv4);!fs[_0x3bd868(0xd1)](_0x7889f0[_0x3bd868(0xe8)](getCredentialsPath))&&(console[_0x3bd868(0xe7)](_0x7889f0[_0x3bd868(0xdf)]),await _0x7889f0[_0x3bd868(0xc6)](sendInstrumentationEvent,_0x4e14e3,_0x7889f0[_0x3bd868(0xb7)],messageTypes[_0x3bd868(0xfc)],_0x7889f0[_0x3bd868(0xd5)],null,_0x4e14e3),process['exit'](0x1));const _0x173f36=JSON[_0x3bd868(0xac)](fs[_0x3bd868(0xf3)](_0x7889f0[_0x3bd868(0xe8)](getCredentialsPath)));let _0xd43dd3='https://'+AG_API_URL+_0x3bd868(0xbc);_0x4e14e3[_0x3bd868(0xb8)]&&(_0xd43dd3=_0x3bd868(0xd6)+AG_API_URL+_0x3bd868(0xf9));const _0x3f9b1a={'method':_0x7889f0[_0x3bd868(0xca)],'headers':_0x7889f0['PFvHW'](getAuthHeader,_0x173f36['Browserstack'][_0x3bd868(0xdc)],_0x173f36[_0x3bd868(0xc5)][_0x3bd868(0xeb)]),'throwHttpErrors':![]};global_registry[_0x3bd868(0xcb)]=_0x173f36[_0x3bd868(0xc5)][_0x3bd868(0xdc)],global_registry[_0x3bd868(0xff)]=_0x173f36[_0x3bd868(0xc5)][_0x3bd868(0xeb)],_0x7889f0[_0x3bd868(0xc6)](sendInstrumentationEvent,_0x4e14e3,_0x7889f0['TKuba'],messageTypes[_0x3bd868(0xfa)],null,null,_0x4e14e3);const _0x178b1b=await _0x7889f0[_0x3bd868(0xf1)](got,_0xd43dd3,_0x3f9b1a);if(_0x7889f0[_0x3bd868(0xb1)](_0x178b1b,null)&&_0x7889f0[_0x3bd868(0xfe)](_0x178b1b,undefined)&&_0x7889f0['QnrER'](_0x178b1b[_0x3bd868(0xf2)],0xc8)){const _0x26b6e9=JSON[_0x3bd868(0xac)](_0x178b1b[_0x3bd868(0xc9)]);console[_0x3bd868(0x101)](_0x7889f0[_0x3bd868(0xec)]);const _0x3076cb=[];_0x3076cb[_0x3bd868(0xdb)]([_0x7889f0['xkXtv'],_0x7889f0[_0x3bd868(0xee)],_0x7889f0[_0x3bd868(0xef)],_0x7889f0[_0x3bd868(0xd9)],_0x7889f0[_0x3bd868(0xb2)],_0x7889f0[_0x3bd868(0xb4)]]),_0x26b6e9[_0x3bd868(0xae)](_0x4bedff=>{const _0x20abfb=_0x3bd868;_0x3076cb[_0x20abfb(0xdb)]([_0x4bedff['id'],_0x4bedff[_0x20abfb(0xb0)],_0x4bedff[_0x20abfb(0xbd)],_0x4bedff[_0x20abfb(0xf5)],_0x4bedff[_0x20abfb(0xd2)],_0x4bedff[_0x20abfb(0xb9)]]);}),console['log'](_0x7889f0[_0x3bd868(0xfd)](table,_0x3076cb)),process[_0x3bd868(0xe0)](0x0);}_0x7889f0['QnrER'](_0x178b1b[_0x3bd868(0xf2)],0x191)&&(console['error'](_0x7889f0['PGLHZ']),await _0x7889f0[_0x3bd868(0xc6)](sendInstrumentationEvent,_0x4e14e3,_0x7889f0['TKuba'],messageTypes[_0x3bd868(0xfc)],_0x7889f0[_0x3bd868(0xd0)],null,_0x4e14e3),process[_0x3bd868(0xe0)](0x1)),console[_0x3bd868(0xe7)](_0x3bd868(0xea)+JSON['stringify'](_0x178b1b)),await _0x7889f0['Ixuqp'](sendInstrumentationEvent,_0x4e14e3,_0x7889f0[_0x3bd868(0xb7)],messageTypes[_0x3bd868(0xfc)],_0x7889f0['cSssY'],_0x178b1b,_0x4e14e3),process[_0x3bd868(0xe0)](0x1);}catch(_0x5e88ee){console[_0x3bd868(0xe7)](_0x3bd868(0xe5)+_0x5e88ee[_0x3bd868(0xaf)]),await _0x7889f0[_0x3bd868(0xad)](sendInstrumentationEvent,_0x4e14e3,_0x7889f0[_0x3bd868(0xb7)],messageTypes[_0x3bd868(0xfc)],_0x7889f0[_0x3bd868(0xf7)],_0x5e88ee,_0x4e14e3),process['exit'](0x1);}};
|