browserstack-node-sdk 1.35.4 → 1.35.6

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.
Files changed (137) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  60. package/src/bin/jest/jest.setup.js +1 -1
  61. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  62. package/src/bin/jest/test-observability/helper.js +1 -1
  63. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  64. package/src/bin/jest/test-observability/test-details.js +1 -1
  65. package/src/bin/jest/test_before.setup.js +1 -1
  66. package/src/bin/launcher/launcher.js +1 -1
  67. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  68. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  69. package/src/bin/mocha/command.js +1 -1
  70. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  71. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  72. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  73. package/src/bin/mocha/test.setup.js +1 -1
  74. package/src/bin/nightwatch/command.js +1 -1
  75. package/src/bin/playwright/accessibility-helper.js +1 -1
  76. package/src/bin/playwright/command.js +1 -1
  77. package/src/bin/playwright/globalSetup.js +1 -1
  78. package/src/bin/playwright/mock-process.js +1 -1
  79. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  80. package/src/bin/playwright/patches.js +1 -1
  81. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  82. package/src/bin/playwright/reporter/reporter.js +1 -1
  83. package/src/bin/playwright/reporter/test-details.js +1 -1
  84. package/src/bin/playwright/sessionDetails.js +1 -1
  85. package/src/bin/runner.js +1 -1
  86. package/src/bin/setup.js +1 -1
  87. package/src/bin/test-runner/index.js +1 -1
  88. package/src/bin/test-runner/runTest.js +1 -1
  89. package/src/bin/test-runner/testWorker.js +1 -1
  90. package/src/bin/utils/constants.js +1 -1
  91. package/src/bin/utils/log4jsAppender.js +1 -1
  92. package/src/bin/utils/logPatcher.js +1 -1
  93. package/src/bin/utils/logReportingAPI.js +1 -1
  94. package/src/bin/vanilla-js/command.js +1 -1
  95. package/src/browserStackSdk.js +1 -1
  96. package/src/helpers/BrowserStackSetup.js +1 -1
  97. package/src/helpers/accessibility-automation/constants.js +1 -1
  98. package/src/helpers/accessibility-automation/helper.js +1 -1
  99. package/src/helpers/accessibility-automation/scripts.js +1 -1
  100. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  101. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  102. package/src/helpers/ats/constants.js +1 -1
  103. package/src/helpers/ats/helper.js +1 -1
  104. package/src/helpers/capsMapping.js +1 -1
  105. package/src/helpers/central-scanner/constants.js +1 -1
  106. package/src/helpers/central-scanner/helpers.js +1 -1
  107. package/src/helpers/globals.js +1 -1
  108. package/src/helpers/helper.js +1 -1
  109. package/src/helpers/logger.js +1 -1
  110. package/src/helpers/metadata.js +1 -1
  111. package/src/helpers/patchHelper.js +1 -1
  112. package/src/helpers/patchHelpers.js +1 -1
  113. package/src/helpers/percy/Percy.js +1 -1
  114. package/src/helpers/percy/PercyBinary.js +1 -1
  115. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  116. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  117. package/src/helpers/percy/PercySDK.js +1 -1
  118. package/src/helpers/percy/index.js +1 -1
  119. package/src/helpers/percy/utils.js +1 -1
  120. package/src/helpers/performance/constants.js +1 -1
  121. package/src/helpers/performance/performance-tester.js +1 -1
  122. package/src/helpers/processHelper.js +1 -1
  123. package/src/helpers/request-spy.js +1 -1
  124. package/src/helpers/setKeepAlive.js +1 -1
  125. package/src/helpers/test-observability/constants.js +1 -1
  126. package/src/helpers/test-observability/error-handler.js +1 -1
  127. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  128. package/src/helpers/test-observability/sessionHandler.js +1 -1
  129. package/src/helpers/test-observability/utils.js +1 -1
  130. package/src/helpers/testhub/constants.js +1 -1
  131. package/src/helpers/testhub/testhubHandler.js +1 -1
  132. package/src/helpers/testhub/utils.js +1 -1
  133. package/src/helpers/timeoutPromise.js +1 -1
  134. package/src/helpers/utilities.js +1 -1
  135. package/src/helpers/w3cMapping.js +1 -1
  136. package/src/hubAllocationMethods.js +1 -1
  137. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0xaed964=a9_0x3bf8;function a9_0x3bf8(_0xb9d742,_0x2b7ae0){const _0x3ef6cb=a9_0x3ef6();return a9_0x3bf8=function(_0x3bf860,_0x261278){_0x3bf860=_0x3bf860-0x1bd;let _0x3fbb5c=_0x3ef6cb[_0x3bf860];return _0x3fbb5c;},a9_0x3bf8(_0xb9d742,_0x2b7ae0);}(function(_0x2f567f,_0x31792c){const _0x5ea02d=a9_0x3bf8,_0x300324=_0x2f567f();while(!![]){try{const _0x2cee15=parseInt(_0x5ea02d(0x268))/0x1*(-parseInt(_0x5ea02d(0x25f))/0x2)+parseInt(_0x5ea02d(0x2d8))/0x3*(-parseInt(_0x5ea02d(0x1dc))/0x4)+-parseInt(_0x5ea02d(0x24a))/0x5+parseInt(_0x5ea02d(0x22c))/0x6*(-parseInt(_0x5ea02d(0x34f))/0x7)+-parseInt(_0x5ea02d(0x29f))/0x8+parseInt(_0x5ea02d(0x1ca))/0x9+parseInt(_0x5ea02d(0x1de))/0xa;if(_0x2cee15===_0x31792c)break;else _0x300324['push'](_0x300324['shift']());}catch(_0x4580d9){_0x300324['push'](_0x300324['shift']());}}}(a9_0x3ef6,0xd6aab));const fs=require('fs'),ws=require('ws'),path=require(a9_0xaed964(0x1e1)),yaml=require('js-yaml'),ReconnectingWebSocket=require(a9_0xaed964(0x227)),got=require(a9_0xaed964(0x35a)),{v4:uuidv4}=require(a9_0xaed964(0x1ef)),webSocketUtils=require(a9_0xaed964(0x296)),{logger}=require(a9_0xaed964(0x293)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0xaed964(0x294)),{getCloudProviderObject}=require(a9_0xaed964(0x32a)),{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_0xaed964(0x2de)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0xaed964(0x2a1)),{createK8sClient}=require(a9_0xaed964(0x2bc)),{sendInstrumentationEvent}=require(a9_0xaed964(0x34a));function a9_0x3ef6(){const _0x36f981=['pqYdz','PbwSv','rwpth','Grid\x20spawned\x20on\x20the\x20cluster','uMtiU','CjfGS','ERROR','CNeul','bstackUsername','pQRpN','non-aws-azure-cluster','lljuI','EYXTw','error','sBsUk','Create\x20a\x20new\x20Automation\x20grid.','QuOGi','https','ZxSBZ','\x27\x20grid\x20profile','rOeVI','updateClusterAlreadyPresent','nrSaa','uploaderVersion','jDezN','CLI_RUN_STARTED','vajAG','ndyCA','Found\x20VPC:\x20','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','qAzgg','HtDSY','bstackAccesskey','NSPWC','delay','hub-ha','KdqCs','UkRNzNYCBU','MmXhm','create-grid-checks-invalid-profile','fHdNe','oFdor','labels','INFO','CLI\x20run\x20finished:\x20','sAmOf','sALDz','0|1|4|2|3','txMLG','sBYmO','vpc','CnmAN','https://','Found\x20Subnets:\x20','Cluster:\x20','ffODV','create','eruhp','0|1|3|2|4','metadata','KpNEg','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','qaYed','ffWEm','../../cloudproviders/utils','warn','OwSUD','gealr','cBuZU','epilogue','Skip\x20insecure\x20cert\x20verification.','EsrqP','HFWsF','HQjBK','XbhRA','Create\x20a\x20private/public\x20grid.','NudPT','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Bjigp','URJbI','cluster-name','zETHY','jkJad','skipTlsCertVerify','serviceAccountName','ingress-nginx','jEBja','2|7|6|1|3|5|0|4|8','get-grid-url-non-200','jTTdN','Pfbpe','hubVersion','azurefile-csi-premium','LOxOM','JXAtN','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.','../../utils/instrumentationUtils','jlotG','eHxCv','KBKoT','replace','609bFttIx','pre-spawned-invalid-vpc','minNodes','KfvJP','stack','boolean','loadAll','Spawning\x20the\x20grid\x20','sendResourceDataToHST','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','ngyMM','got','cloudProvider','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','statusCode','cFvkS','FTQJs','get-grid-url-auth-failed','namespace','EmdpB','browserVersion','hub-ha-deployments-failed','GvDlz','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WkQdx','uviNU','split','QqqiF','qLFCC','ENSxa','default','region','jHEXK','DSxLu','Added\x20Kafka\x20deployment.','deleteCluster','zqRFv','SGGqX','njFOf','kxpgd','MOQIk','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','7460748afMtYL','newCluster','clusterRegion','username','argv','message','\x20in\x20existing\x20cluster\x20\x27','Xzvre','kSYJg','jrSun','cuSwS','ErPJD','LgrPU','UWwRS','2|0|3|1|4','turboscale-uploader.yaml','hubharesources','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','188ZKXaRx','hubHa','41603480eEbQFL','fpXWR','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','path','hubHaNameSpace','nMnvp','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','password','LcdXQ','oWkfY','create-grid-checks-auth-failed','join','Adding\x20Redis\x20deployment...','rgwUf','xYRRQ','GnUdc','browserstack','uuid','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','usage','CNDdt','cnNia','gWvyq','qGREX','oNUzS','type','s3bucket','LVEaB','eDlBH','kBfCP','/packages/cli/get-grid-url?gridIdentifier=','qihhe','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','concurrency','Flag\x20to\x20enable\x20Hub\x20HA','uTeuB','oYovj','spec','QwDEk','defaultGridProfile','dGNsV','nfxXH','GTsnA','body','grid-profile','jzxMQ','xvrmf','aGrkA','privateGrid','FQmwV','ISnQd','oLHQi','Cluster\x20created\x20successfully','kafkaUploader','parse','CeKcV','gXInY','yQLBP','sppaJ','hetQx','tHZJK','ENrLT','NoqXk','EmaOw','OwsXw','CWDPR','wsfoR','FFCdx','sMmne','Qqwcm','VodOT','xWSNi','XxcEC','reconnecting-websocket','gridProfiles','help','clusterName','XIriM','12006RYwrjl','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','YUlEl','length','redisPassword','Added\x20Turboscale\x20Uploader\x20deployment.','10|6|14|13|5|7|12|11|2|1|8|4|0|9|3|15','gridProfile','getResourceClientId','Adding\x20Websocket\x20listeners','gridName','LOG','LTdzG','prespawned-cluster-args-not-passed','thAbH','enableHubHa','Cluster\x20','Dkweh','VlxXd','Grid\x20can\x20be\x20accessed\x20at:\x20','isPrivateGrid','sJxHM','connectionTimeout','Namespace\x20Created','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','options','managedBy','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','<PasswordPlaceholder>','5649425wIvFcD','cloud-provider','INaSp','HCoCX','createdBy','xWGam','skip-tls-cert-verify','rmhRn','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','HQjIp','wfZyg','string','xEGoS','handler','true','aKlEf','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','uatwH','KWOWu','AhKQA','zFsTM','4772slOlEq','GJwjZ','info','UWQXI','bFftg','maxNodes','create-grid-checks-null-response','readFileAsync','Spawning\x20Grid\x20on\x20the\x20Cluster','652ciWDPj','njjzT','1|5|4|6|2|7|0|8|3','isSubnetsValid','Browserstack','desc','zHrVK','pFEFw','jhlgd','Adding\x20Turboscale\x20Uploader\x20deployment...','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','stringify','Enabling\x20Hub\x20HA\x20flow','CLI_RUN_FINISHED','bfVqP','SrQdO','grid-name','Epyd5nXbRK','zSapo','://','readNamespacedService','createOtherResources','TqOvU','idszV','MrcfC','xiKuJ','ZafRT','bitnami-redis.yaml','JJUJW','YPUYn','kLJfi','Fvexy','Creating\x20Hub\x20HA\x20resources','toLowerCase','IIOAV','builder','init-not-called','OQQHJ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','NbZJN','RthWm','amrrA','command','../../config/logger','../../utils/utilityMethods','Spawning\x20grid\x20on\x20to\x20the\x20cluster','../../utils/webSocketUtils','sendEventToBackend','Hub\x20HA\x20setup\x20completed\x20successfully.','GztHa','includes','PqjLS','TougW','KgWkh','sBCCG','7775032BdwVzi','3|4|0|1|2','../../utils/gridComponents','grid-spawning-failed','ingress-nginx-controller','description','ikoau','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','ppqhf','yUDVO','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','mwPim','instanceType','utf-8','readFileSync','ulSIh','MQYSB','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','BHBSk','qGXit','templates','CZPWb','pre-spawned-subnets-not-selected','ZaVZX','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','FxWME','eUegx','gEfZT','QuKlV','../../utils/createk8sClient','FRGnQ','pre-spawned-invalid-subnets','WebSocket','isVPCPresent','Added\x20Secret\x20Mapping','premium-rwo','iAWik','zvBKR','/wd/hub','rHdxR','zxHpo','tHdYj','LYGNb','OBHzo','efs-csi','UkYRT','cihWG','RKhGy','/packages/cli/create-grid-checks','Will\x20be\x20spawning\x20the\x20grid\x20','alreadyPresent','JKpvZ','Added\x20Redis\x20deployment.','Oywol','../..','AICnQ','private-grid','17778YuJeCM','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','atjyr','exit','template','UPdAU','../../config/constants','route53','lShZN','hFibp','kafkaPassword','CmzNo','nQXdU','grid','isClusterPresent','create-grid-called','gZTos'];a9_0x3ef6=function(){return _0x36f981;};return a9_0x3ef6();}exports[a9_0xaed964(0x292)]=a9_0xaed964(0x2e5),exports[a9_0xaed964(0x26d)]=a9_0xaed964(0x2f8),exports[a9_0xaed964(0x28b)]=function(_0x50fd23){const _0x164479=a9_0xaed964,_0x41ae40={};_0x41ae40[_0x164479(0x2ca)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x41ae40[_0x164479(0x22b)]='string',_0x41ae40[_0x164479(0x256)]=_0x164479(0x2d9),_0x41ae40['ppqhf']=_0x164479(0x337),_0x41ae40['rHdxR']=_0x164479(0x252),_0x41ae40['hFibp']=_0x164479(0x35c),_0x41ae40[_0x164479(0x2d4)]='Create\x20a\x20private/public\x20grid.',_0x41ae40[_0x164479(0x304)]=_0x164479(0x330),_0x41ae40[_0x164479(0x2c8)]=_0x164479(0x354),_0x41ae40[_0x164479(0x331)]='Flag\x20to\x20enable\x20Hub\x20HA',_0x41ae40[_0x164479(0x290)]=_0x164479(0x229);const _0x4a8398=_0x41ae40,_0x2787f1={};_0x2787f1[_0x164479(0x2a4)]=_0x4a8398[_0x164479(0x2ca)],_0x2787f1[_0x164479(0x1f7)]=_0x4a8398[_0x164479(0x22b)];const _0x493d80={};_0x493d80[_0x164479(0x2a4)]=_0x4a8398[_0x164479(0x256)],_0x493d80['type']=_0x4a8398[_0x164479(0x22b)];const _0x4df36e={};_0x4df36e[_0x164479(0x2a4)]=_0x4a8398[_0x164479(0x2a7)],_0x4df36e[_0x164479(0x1f7)]=_0x4a8398[_0x164479(0x22b)];const _0x44e650={};_0x44e650[_0x164479(0x2a4)]=_0x4a8398[_0x164479(0x2c6)],_0x44e650['type']=_0x4a8398[_0x164479(0x22b)];const _0x1458ef={};_0x1458ef[_0x164479(0x2a4)]=_0x4a8398[_0x164479(0x2e1)],_0x1458ef[_0x164479(0x1f7)]=_0x4a8398[_0x164479(0x22b)];const _0x3e0c07={};_0x3e0c07[_0x164479(0x2a4)]=_0x4a8398['Oywol'],_0x3e0c07[_0x164479(0x1f7)]=_0x4a8398[_0x164479(0x22b)];const _0x46777b={};_0x46777b[_0x164479(0x2a4)]=_0x4a8398[_0x164479(0x304)],_0x46777b['type']=_0x4a8398[_0x164479(0x2c8)],_0x46777b[_0x164479(0x1be)]=![];const _0x3fad30={};_0x3fad30[_0x164479(0x2a4)]=_0x4a8398[_0x164479(0x331)],_0x3fad30[_0x164479(0x1f7)]=_0x4a8398[_0x164479(0x2c8)],_0x3fad30['default']=![];const _0x14ac58={};return _0x14ac58[_0x164479(0x278)]=_0x2787f1,_0x14ac58[_0x164479(0x20a)]=_0x493d80,_0x14ac58[_0x164479(0x33a)]=_0x4df36e,_0x14ac58[_0x164479(0x24b)]=_0x44e650,_0x14ac58[_0x164479(0x1bf)]=_0x1458ef,_0x14ac58['private-grid']=_0x3e0c07,_0x14ac58[_0x164479(0x250)]=_0x46777b,_0x14ac58[_0x164479(0x30d)]=_0x3fad30,_0x50fd23[_0x164479(0x1f1)](HELP_HEADER_MESSAGE[_0x164479(0x322)])[_0x164479(0x32f)](HELP_FOOTER_MESSAGE)[_0x164479(0x245)](_0x14ac58)[_0x164479(0x229)](_0x4a8398['RthWm'])['argv'];},exports[a9_0xaed964(0x257)]=async function(_0x380b04){const _0x3fc2a9=a9_0xaed964,_0x3259f1={'LgrPU':_0x3fc2a9(0x2f6),'zETHY':function(_0x241c5e,_0x564e68){return _0x241c5e(_0x564e68);},'QhZCw':_0x3fc2a9(0x341),'njFOf':'CLI\x20run\x20started','aGrkA':_0x3fc2a9(0x232),'FQmwV':function(_0x5d028e,_0x9a7311,_0x1f40f8,_0x2088c0,_0x424e92,_0x12decf,_0x1f8672,_0x1880d4,_0x36be69,_0x131e04,_0x34aa39,_0x34aa5a){return _0x5d028e(_0x9a7311,_0x1f40f8,_0x2088c0,_0x424e92,_0x12decf,_0x1f8672,_0x1880d4,_0x36be69,_0x131e04,_0x34aa39,_0x34aa5a);},'KpNEg':function(_0x4c6d71,_0x13979d){return _0x4c6d71!==_0x13979d;},'zHrVK':function(_0x3d1101,_0x4413eb){return _0x3d1101(_0x4413eb);},'nthDn':_0x3fc2a9(0x248),'zFsTM':_0x3fc2a9(0x255),'PdzAc':_0x3fc2a9(0x2d9),'QqqiF':_0x3fc2a9(0x337),'dOMmj':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','EmaOw':_0x3fc2a9(0x35c),'EYXTw':_0x3fc2a9(0x335),'WqPdL':'Skip\x20insecure\x20cert\x20verification.','DOvmh':_0x3fc2a9(0x354),'KBKoT':_0x3fc2a9(0x200),'MrcfC':'help','sMmne':_0x3fc2a9(0x258),'YUlEl':'default','xiKuJ':'http','KWOWu':_0x3fc2a9(0x319),'CeKcV':_0x3fc2a9(0x274),'jrSun':_0x3fc2a9(0x1ee),'HtDSY':_0x3fc2a9(0x279),'qLFCC':_0x3fc2a9(0x30f),'Fvexy':_0x3fc2a9(0x2fa),'CjfGS':_0x3fc2a9(0x346),'sppaJ':_0x3fc2a9(0x32b),'FRGnQ':function(_0x3df500,_0x4d6fdb){return _0x3df500===_0x4d6fdb;},'cFvkS':_0x3fc2a9(0x2c2),'CZPWb':function(_0x101de9){return _0x101de9();},'QnRaR':function(_0x518f67){return _0x518f67();},'EhZow':_0x3fc2a9(0x340),'HQjBK':_0x3fc2a9(0x34b),'ZaVZX':_0x3fc2a9(0x366),'atjyr':function(_0x1ead9e,_0x4f0dc0,_0x2a7103,_0x26c4dd,_0x59f70c,_0xe9f500,_0x5be9){return _0x1ead9e(_0x4f0dc0,_0x2a7103,_0x26c4dd,_0x59f70c,_0xe9f500,_0x5be9);},'sBCCG':_0x3fc2a9(0x2e7),'bLmkI':_0x3fc2a9(0x28c),'xYRRQ':function(_0x305b38){return _0x305b38();},'URJbI':'<UsernamePlaceholder>','mwPim':_0x3fc2a9(0x249),'nrSaa':_0x3fc2a9(0x235),'lljuI':function(_0x59a2aa,_0x34b922){return _0x59a2aa!==_0x34b922;},'sJxHM':'XyZJl','qGXit':_0x3fc2a9(0x285),'FxWME':function(_0x442277,_0x1d71a1){return _0x442277===_0x1d71a1;},'CmzNo':_0x3fc2a9(0x2d2),'LcdXQ':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','wsfoR':function(_0x45b0b9,_0x710e52,_0x4ce38b,_0x1e937d,_0x1a28cf,_0x7bf6e4,_0x1715c4,_0x1e0c04){return _0x45b0b9(_0x710e52,_0x4ce38b,_0x1e937d,_0x1a28cf,_0x7bf6e4,_0x1715c4,_0x1e0c04);},'LTdzG':_0x3fc2a9(0x239),'FTQJs':_0x3fc2a9(0x2af),'jTTdN':_0x3fc2a9(0x306),'CnmAN':_0x3fc2a9(0x2f3),'Qqwcm':function(_0xbdd4a8,_0x4751db){return _0xbdd4a8===_0x4751db;},'ZxSBZ':_0x3fc2a9(0x226),'ISnQd':function(_0x2df643,_0x396b9f,_0x3d6530,_0x3f578d,_0x8a5ed5,_0x4bef8c,_0xfdd40b){return _0x2df643(_0x396b9f,_0x3d6530,_0x3f578d,_0x8a5ed5,_0x4bef8c,_0xfdd40b);},'gZTos':function(_0xd759b1,_0x1cf2aa){return _0xd759b1===_0x1cf2aa;},'HCoCX':_0x3fc2a9(0x368),'jzxMQ':'wSVOj','gWvyq':function(_0x4d021b,_0x515244){return _0x4d021b!==_0x515244;},'Dkweh':_0x3fc2a9(0x23a),'XbhRA':'GET','xvrmf':function(_0x1dfaf7,_0x495cf0,_0x58804a){return _0x1dfaf7(_0x495cf0,_0x58804a);},'ipilU':function(_0x4cb803,_0x417a48){return _0x4cb803===_0x417a48;},'nQXdU':'Ciihb','qCOCi':_0x3fc2a9(0x303),'UWQXI':function(_0x26a51a,_0x23042e){return _0x26a51a===_0x23042e;},'sBsUk':function(_0x3de0e1,_0x48a68f){return _0x3de0e1!==_0x48a68f;},'zxHpo':_0x3fc2a9(0x1df),'iwXMv':_0x3fc2a9(0x2b7),'meDYQ':function(_0x14ffba,_0x4af510,_0x434449,_0x3cdbe3,_0x665165,_0x4ef9ed,_0x413f5c,_0x2623e7){return _0x14ffba(_0x4af510,_0x434449,_0x3cdbe3,_0x665165,_0x4ef9ed,_0x413f5c,_0x2623e7);},'LVEaB':_0x3fc2a9(0x265),'AICnQ':function(_0x5de1d6,_0x390267){return _0x5de1d6===_0x390267;},'AAgcC':function(_0x5c4085,_0x36c8ad){return _0x5c4085!==_0x36c8ad;},'ngyMM':'KDaaC','pqYdz':'utGdn','pQRpN':_0x3fc2a9(0x1fe),'egxIH':_0x3fc2a9(0x1e8),'SrQdO':function(_0x590014,_0x4f6ccb){return _0x590014!==_0x4f6ccb;},'rwpth':'mdNdO','Xzvre':'create-grid-checks-non-200','qAzgg':'Grid\x20profile\x20fetched\x20from\x20backend','hetQx':function(_0x5573ff,_0x2a43f9){return _0x5573ff===_0x2a43f9;},'nMnvp':_0x3fc2a9(0x2fd),'CNeul':'create-grid-checks-grid-already-exists','eDlBH':function(_0x2fb45f,_0x53205b){return _0x2fb45f===_0x53205b;},'cihWG':_0x3fc2a9(0x32d),'uMtiU':_0x3fc2a9(0x30b),'MOQIk':_0x3fc2a9(0x324),'ulSIh':function(_0x44d2b1,_0x34d72c){return _0x44d2b1===_0x34d72c;},'kLJfi':function(_0x185a29,_0x2aa837){return _0x185a29!==_0x2aa837;},'uatwH':_0x3fc2a9(0x1d7),'yUDVO':_0x3fc2a9(0x1c1),'BHBSk':'AicCN','UPdAU':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','oWkfY':function(_0x551113,_0x4f3956,_0x3e864b,_0x247e46,_0x3d341f,_0x2d2375,_0xd2d81e,_0x278f18){return _0x551113(_0x4f3956,_0x3e864b,_0x247e46,_0x3d341f,_0x2d2375,_0xd2d81e,_0x278f18);},'eUegx':_0x3fc2a9(0x311),'ikoau':function(_0x51741b,_0x4bc5ca){return _0x51741b===_0x4bc5ca;},'rgwUf':function(_0x44c45f,_0x597ae1){return _0x44c45f===_0x597ae1;},'cnNia':'jkuQr','bAHLp':_0x3fc2a9(0x1f5),'GTsnA':function(_0x13bf2b,_0x2e72df){return _0x13bf2b===_0x2e72df;},'jkJad':function(_0x5a34cd,_0x53361d){return _0x5a34cd===_0x53361d;},'KgWkh':_0x3fc2a9(0x338),'ffWEm':_0x3fc2a9(0x202),'TqOvU':function(_0x155e89,_0xfec7e4){return _0x155e89!==_0xfec7e4;},'eruhp':function(_0x165a63,_0x554ac3){return _0x165a63===_0x554ac3;},'KfvJP':_0x3fc2a9(0x276),'TcjVF':'NRGff','Pfbpe':function(_0x5ca3a9,_0x3a27b0){return _0x5ca3a9!==_0x3a27b0;},'uTeuB':_0x3fc2a9(0x25d),'sBYmO':_0x3fc2a9(0x2bb),'OwsXw':function(_0x426c9f,_0x3b13f6){return _0x426c9f!==_0x3b13f6;},'uleAa':'pQdpY','oLHQi':_0x3fc2a9(0x225),'ZafRT':_0x3fc2a9(0x29b),'cBuZU':function(_0x3090c3,_0x31f139){return _0x3090c3(_0x31f139);},'amrrA':_0x3fc2a9(0x1d5),'iOOAX':_0x3fc2a9(0x26a),'JXAtN':function(_0x30d04e,_0x32fd74){return _0x30d04e!==_0x32fd74;},'aKlEf':_0x3fc2a9(0x312),'kykcK':_0x3fc2a9(0x1bd),'ENrLT':function(_0x37219a,_0x2bac95){return _0x37219a!==_0x2bac95;},'MmXhm':_0x3fc2a9(0x269),'PbwSv':function(_0x83eb30,_0x25000e){return _0x83eb30!==_0x25000e;},'JGUls':_0x3fc2a9(0x30e),'GPfDI':_0x3fc2a9(0x224),'WkQdx':_0x3fc2a9(0x1db),'dGNsV':function(_0x9c3ea8,_0x55b50c){return _0x9c3ea8!=_0x55b50c;},'oFdor':function(_0x2e58b9,_0x45d525){return _0x2e58b9!==_0x45d525;},'VlxXd':function(_0x385588,_0x25bdc2){return _0x385588!==_0x25bdc2;},'idszV':function(_0x39c92c,_0x390a33){return _0x39c92c>_0x390a33;},'WxNdM':function(_0xbf2a0,_0x913d82){return _0xbf2a0===_0x913d82;},'SGGqX':_0x3fc2a9(0x1e4),'sAmOf':function(_0x109ff5,_0x14f4b5,_0x46bbc7,_0x492de0,_0x574c69,_0x51f19f,_0x254c34,_0x3d2a0c){return _0x109ff5(_0x14f4b5,_0x46bbc7,_0x492de0,_0x574c69,_0x51f19f,_0x254c34,_0x3d2a0c);},'iWvCC':_0x3fc2a9(0x2b5),'tHZJK':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','NudPT':_0x3fc2a9(0x350),'qaYed':_0x3fc2a9(0x2be),'QuOGi':_0x3fc2a9(0x2a0),'UkYRT':_0x3fc2a9(0x212),'jHEXK':_0x3fc2a9(0x349),'qihhe':function(_0x45914b,_0xb691a6){return _0x45914b===_0xb691a6;},'JJUJW':function(_0x44e940,_0xd3ca53,_0x492d2e){return _0x44e940(_0xd3ca53,_0x492d2e);},'cuSwS':_0x3fc2a9(0x288),'RyKXl':'Adding\x20Secret\x20Mapping','GnUdc':_0x3fc2a9(0x2d5),'CNDdt':_0x3fc2a9(0x2b3),'xWGam':_0x3fc2a9(0x1da),'lShZN':'browserstack-secret.yaml','nfxXH':_0x3fc2a9(0x2ac),'NoqXk':function(_0x1502ae,_0x480d19){return _0x1502ae(_0x480d19);},'sxVvj':function(_0x4929f7,_0x34b843){return _0x4929f7(_0x34b843);},'sALDz':_0x3fc2a9(0x2c1),'ffODV':_0x3fc2a9(0x2cb),'GztHa':function(_0x18aa61,_0xc4ef29){return _0x18aa61===_0xc4ef29;},'kBfCP':_0x3fc2a9(0x1ea),'bISWr':_0x3fc2a9(0x283),'GvDlz':function(_0x25938a,_0x3a7ca8,_0x183ffc){return _0x25938a(_0x3a7ca8,_0x183ffc);},'OQQHJ':_0x3fc2a9(0x2d3),'UQzCI':'Adding\x20Kafka\x20deployment...','pFEFw':'bitnami-kafka.yaml','jhlgd':_0x3fc2a9(0x1c2),'OwSUD':_0x3fc2a9(0x271),'POdcX':_0x3fc2a9(0x1d9),'Ixvva':function(_0x1278f2,_0xd2123a){return _0x1278f2===_0xd2123a;},'NbZJN':function(_0x25698d,_0x25837b,_0x2a2e44){return _0x25698d(_0x25837b,_0x2a2e44);},'iAWik':_0x3fc2a9(0x231),'yQLBP':'Created\x20Hub\x20HA\x20resources','gEfZT':_0x3fc2a9(0x298),'txMLG':_0x3fc2a9(0x1d8),'GJwjZ':function(_0x42f682,_0x22201b,_0x5d4587,_0x42288d,_0xff60d8,_0x59d82f,_0x536892,_0x162e30){return _0x42f682(_0x22201b,_0x5d4587,_0x42288d,_0xff60d8,_0x59d82f,_0x536892,_0x162e30);},'hVcky':_0x3fc2a9(0x364),'QzkRT':function(_0x355704,_0x5700fd){return _0x355704(_0x5700fd);},'zSapo':'Creating\x20namespace','TougW':_0x3fc2a9(0x26c),'EmdpB':_0x3fc2a9(0x243),'LYGNb':'Namespace\x20created','LihlI':_0x3fc2a9(0x295),'QwDEk':_0x3fc2a9(0x267),'FFCdx':function(_0x1e4327,_0xa5c33d){return _0x1e4327===_0xa5c33d;},'RKhGy':function(_0x573e47,_0x5e0209,_0x5f10b4,_0x1deab2,_0x36b83b,_0x414a71,_0x586508,_0xc6bd7a,_0x2f6130,_0x1c809c,_0x57934c){return _0x573e47(_0x5e0209,_0x5f10b4,_0x1deab2,_0x36b83b,_0x414a71,_0x586508,_0xc6bd7a,_0x2f6130,_0x1c809c,_0x57934c);},'gXInY':_0x3fc2a9(0x2ec),'wfZyg':_0x3fc2a9(0x2a9),'HQjIp':function(_0x2445be,_0x4278bb,_0x4bcf63,_0x541dbc,_0xe0bcfd){return _0x2445be(_0x4278bb,_0x4bcf63,_0x541dbc,_0xe0bcfd);},'zqRFv':'private-ingress-nginx-controller','tOgXv':_0x3fc2a9(0x2a3),'rmhRn':_0x3fc2a9(0x33f),'jDezN':function(_0x34c471,_0x2bb6a1){return _0x34c471===_0x2bb6a1;},'kxpgd':_0x3fc2a9(0x22d),'hFoaW':function(_0x3a9fab,_0x526c14,_0x48158e,_0x5ea7d4,_0x24b1ef,_0x9cd13a,_0x1ef69a,_0x1b6db3){return _0x3a9fab(_0x526c14,_0x48158e,_0x5ea7d4,_0x24b1ef,_0x9cd13a,_0x1ef69a,_0x1b6db3);},'IIOAV':'get-grid-url-null-response','bFftg':function(_0x4685a6,_0x4a1fa0){return _0x4685a6===_0x4a1fa0;},'LOxOM':_0x3fc2a9(0x1c9),'eHxCv':_0x3fc2a9(0x360),'HFWsF':function(_0x4c7d44,_0x4ab714){return _0x4c7d44!==_0x4ab714;},'oNUzS':function(_0x2bce90,_0x3e09c2,_0x48bd06,_0x5d8ce5,_0x2b2839,_0x393361,_0x5ecf7f,_0x5a693d){return _0x2bce90(_0x3e09c2,_0x48bd06,_0x5d8ce5,_0x2b2839,_0x393361,_0x5ecf7f,_0x5a693d);},'INaSp':_0x3fc2a9(0x342),'kSYJg':function(_0x18eb8b,_0x4dac20){return _0x18eb8b===_0x4dac20;},'nxStU':'Deleting\x20the\x20CloudFormation\x20Stacks','zvBKR':function(_0x1f07d0,_0x3dbfc0,_0x52d971,_0x35f079,_0x5cf07a,_0x13c638){return _0x1f07d0(_0x3dbfc0,_0x52d971,_0x35f079,_0x5cf07a,_0x13c638);},'CWDPR':_0x3fc2a9(0x2a2)};let _0x4fa3bd=![],_0x459300=![],_0x27a4bf,_0x17b304,_0x32bd38,_0x365a75,_0x2f5180,_0x318011,_0x40ed9a,_0x333cf1,_0xded7a8,_0x5b227a,_0x4f8b5c,_0x3601d9,_0x4e8a02,_0xfae697,_0x8be1fa=0x1,_0x1deb5d=0xe;try{global_registry['requestId']=_0x3259f1[_0x3fc2a9(0x2b4)](uuidv4),global_registry['isPrivateGrid']=![];if(!fs['existsSync'](_0x3259f1['QnRaR'](getCredentialsPath))){if(_0x3259f1[_0x3fc2a9(0x326)](_0x3259f1['EhZow'],_0x3259f1[_0x3fc2a9(0x333)]))console[_0x3fc2a9(0x2f6)](_0x3259f1[_0x3fc2a9(0x2b6)]),await _0x3259f1[_0x3fc2a9(0x2da)](sendInstrumentationEvent,_0x380b04,_0x3259f1[_0x3fc2a9(0x29e)],messageTypes['ERROR'],_0x3259f1['bLmkI'],null,_0x380b04),process['exit'](0x1);else{const _0x4050ed={};_0x4050ed[_0x3fc2a9(0x1f7)]=_0x390c62[_0x3fc2a9(0x237)],_0x4050ed['message']=_0x3e432a,_0x3c7dd9[_0x3fc2a9(0x297)](_0x39d978,_0x4050ed,_0x3259f1['LgrPU'],!![]);}}await _0x3259f1[_0x3fc2a9(0x2da)](sendInstrumentationEvent,_0x380b04,_0x3259f1[_0x3fc2a9(0x29e)],messageTypes[_0x3fc2a9(0x315)],null,null,_0x380b04);const _0x1ca14a=JSON[_0x3fc2a9(0x214)](fs[_0x3fc2a9(0x2ad)](_0x3259f1[_0x3fc2a9(0x1ec)](getCredentialsPath)));global_registry[_0x3fc2a9(0x2f1)]=_0x1ca14a['Browserstack'][_0x3fc2a9(0x1cd)],global_registry[_0x3fc2a9(0x30a)]=_0x1ca14a[_0x3fc2a9(0x26c)][_0x3fc2a9(0x1e5)];const _0x4a4d0=WS_ENDPOINT['replace'](_0x3259f1[_0x3fc2a9(0x339)],_0x1ca14a[_0x3fc2a9(0x26c)][_0x3fc2a9(0x1cd)])['replace'](_0x3259f1[_0x3fc2a9(0x2aa)],_0x1ca14a[_0x3fc2a9(0x26c)][_0x3fc2a9(0x1e5)]),_0x539c3b={};_0x539c3b[_0x3fc2a9(0x2bf)]=ws,_0x539c3b[_0x3fc2a9(0x242)]=0x36ee80,_0x3601d9=new ReconnectingWebSocket(_0x4a4d0,[],_0x539c3b),logger['debug'](_0x3259f1[_0x3fc2a9(0x2ff)]),webSocketUtils['addListeners'](_0x3601d9,_0x380b04['user'],_0x380b04[_0x3fc2a9(0x1e5)]);const _0x196bb9=_0x380b04[_0x3fc2a9(0x236)]||DEFAULT_GRID_NAME;if(_0x380b04[_0x3fc2a9(0x22a)]||_0x380b04[_0x3fc2a9(0x35b)]||_0x380b04[_0x3fc2a9(0x1bf)]){if(_0x3259f1['lljuI'](_0x3259f1[_0x3fc2a9(0x241)],_0x3259f1[_0x3fc2a9(0x2b2)])){!(_0x380b04[_0x3fc2a9(0x22a)]&&_0x380b04['cloudProvider']&&_0x380b04['region'])&&(_0x3259f1[_0x3fc2a9(0x2b8)](_0x3259f1[_0x3fc2a9(0x2e3)],_0x3259f1[_0x3fc2a9(0x2e3)])?(_0x27a4bf=_0x3259f1[_0x3fc2a9(0x1e6)],await _0x3259f1[_0x3fc2a9(0x220)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x238)],_0x3259f1[_0x3fc2a9(0x1d6)]),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1)):_0x3259f1['zETHY'](_0x1db4ca,_0x8caffc[_0x3fc2a9(0x300)]));![AWS,AZURE,GCP][_0x3fc2a9(0x29a)](_0x380b04[_0x3fc2a9(0x35b)][_0x3fc2a9(0x289)]())&&(_0x3259f1[_0x3fc2a9(0x2b8)](_0x3259f1[_0x3fc2a9(0x35f)],_0x3259f1[_0x3fc2a9(0x35f)])?(_0x27a4bf=_0x3259f1[_0x3fc2a9(0x343)],await _0x3259f1[_0x3fc2a9(0x220)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x31d)],_0x3259f1[_0x3fc2a9(0x1d6)]),logger['error'](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1)):_0x3c948e[_0x3fc2a9(0x357)]());if(_0x380b04[_0x3fc2a9(0x20e)]&&_0x3259f1['Qqwcm'](_0x380b04[_0x3fc2a9(0x20e)][_0x3fc2a9(0x289)](),_0x3259f1[_0x3fc2a9(0x222)])){if(_0x3259f1[_0x3fc2a9(0x2bd)](_0x3259f1['ZxSBZ'],_0x3259f1[_0x3fc2a9(0x2fb)]))global_registry['isPrivateGrid']=!![];else{const _0x51f453=_0x3259f1['QhZCw'][_0x3fc2a9(0x369)]('|');let _0x28e0a8=0x0;while(!![]){switch(_0x51f453[_0x28e0a8++]){case'0':_0x398c06[_0x3fc2a9(0x22a)]=_0x568105;continue;case'1':const _0x426142={};_0x426142[_0x3fc2a9(0x1f7)]=_0x355dca[_0x3fc2a9(0x237)],_0x426142[_0x3fc2a9(0x1cf)]=_0x5202c8,_0x6ae5a6[_0x3fc2a9(0x297)](_0x12283f,_0x426142);continue;case'2':const _0x49cc4a={};_0x49cc4a[_0x3fc2a9(0x1f7)]=_0x1fb0a6[_0x3fc2a9(0x302)],_0x49cc4a[_0x3fc2a9(0x1cf)]=_0x3259f1[_0x3fc2a9(0x1c6)],_0x523fa6[_0x3fc2a9(0x297)](_0x30b47f,_0x49cc4a);continue;case'3':_0x2af615['cloudProvider']=_0x242f66;continue;case'4':_0x9f5753['hubVersion']=_0x138330[_0x3fc2a9(0x345)];continue;case'5':_0xef7588['clusterRegion']=_0x52710f;continue;case'6':_0x2071d6[_0x3fc2a9(0x261)](_0x1191a6);continue;case'7':_0x35e440='Spawning\x20the\x20grid\x20'+_0x42b2a1+_0x3fc2a9(0x1d0)+_0x42345f+'\x27';continue;case'8':_0x24ccc0[_0x3fc2a9(0x363)]=_0x2520f5[_0x3fc2a9(0x363)];continue;}break;}}}global_registry[_0x3fc2a9(0x35b)]=_0x380b04[_0x3fc2a9(0x35b)],global_registry[_0x3fc2a9(0x1cc)]=_0x380b04[_0x3fc2a9(0x1bf)],global_registry[_0x3fc2a9(0x22a)]=_0x380b04['clusterName'];const _0x3f3d22=await _0x3259f1[_0x3fc2a9(0x210)](getCloudProviderObject,_0x380b04[_0x3fc2a9(0x35b)],_0x380b04[_0x3fc2a9(0x22a)],_0x196bb9,_0x3601d9,webSocketUtils,_0x380b04),_0x221d00=await _0x3f3d22['isClusterPresent']();!_0x221d00?_0x3259f1[_0x3fc2a9(0x2e8)](_0x3259f1[_0x3fc2a9(0x24d)],_0x3259f1['HCoCX'])?(logger[_0x3fc2a9(0x261)](_0x3fc2a9(0x320)+_0x380b04[_0x3fc2a9(0x22a)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x4fa3bd=![],_0x459300=!![]):_0x5af2d9['isPrivateGrid']=!![]:_0x3259f1[_0x3fc2a9(0x2f4)](_0x3259f1[_0x3fc2a9(0x20b)],_0x3259f1['jzxMQ'])?_0x3157c2=!![]:_0x4fa3bd=!![],_0x32bd38=_0x380b04[_0x3fc2a9(0x22a)],_0x17b304=_0x380b04[_0x3fc2a9(0x35b)][_0x3fc2a9(0x289)](),_0x365a75=_0x380b04['region'];}else _0x4bc322=null;}else{if(_0x380b04[_0x3fc2a9(0x233)]){if(_0x3259f1[_0x3fc2a9(0x1f4)](_0x3259f1[_0x3fc2a9(0x23d)],_0x3259f1['Dkweh'])){const _0x4d91cb=_0x3259f1[_0x3fc2a9(0x20d)][_0x3fc2a9(0x369)]('|');let _0x3a5be9=0x0;while(!![]){switch(_0x4d91cb[_0x3a5be9++]){case'0':_0xf8cbb5=_0x415bda[_0x3fc2a9(0x363)];continue;case'1':_0x20ccb3=_0x599e06[_0x3fc2a9(0x351)];continue;case'2':_0x9b26cc=_0x1a8a07['s3bucket'];continue;case'3':_0x3259f1[_0x3fc2a9(0x20f)](_0x425c7f,_0x37675f,_0x242e89,_0xd7d2d9,_0x5cfebb,_0x26f6f6,_0x5b57b6,_0x47a87b,_0x1b7455,_0x1531ab,_0x15ac27,_0x51d177);continue;case'4':_0x42db8e=_0x45fe32['hubVersion'];continue;case'5':_0x5f3b53=_0x4d4684[_0x3fc2a9(0x2ab)];continue;case'6':_0xedd093[_0x3fc2a9(0x261)](_0x448d93);continue;case'7':_0x2121e2=null;continue;case'8':_0x5b7d85=_0x5cde48['maxNodes'];continue;case'9':_0x3259f1['KpNEg'](_0x59c4ee[_0x3fc2a9(0x20e)],_0x5e3226)&&_0x3ce007['privateGrid']&&(_0x52f4fa[_0x3fc2a9(0x240)]=!![]);continue;case'10':_0xaab870=_0x3fc2a9(0x247)+_0x4ec390;continue;case'11':_0x3a768c=null;continue;case'12':_0x5af88d=null;continue;case'13':_0x48bad1=_0x37a7f1[_0x3fc2a9(0x1ff)];continue;case'14':const _0x4e8220={};_0x4e8220[_0x3fc2a9(0x1f7)]=_0x3e5f1c[_0x3fc2a9(0x237)],_0x4e8220[_0x3fc2a9(0x1cf)]=_0x1bbf7b,_0x4932ba['sendEventToBackend'](_0x2196a1,_0x4e8220);continue;case'15':_0x199ba1[_0x3fc2a9(0x23b)]&&_0x3259f1[_0x3fc2a9(0x33b)](_0x177d8f,_0x3844fa[_0x3fc2a9(0x213)]);continue;}break;}}else global_registry[_0x3fc2a9(0x233)]=_0x380b04['gridProfile'];}}global_registry[_0x3fc2a9(0x236)]=_0x380b04['gridName'];const _0x4f95e8={'method':_0x3259f1[_0x3fc2a9(0x334)],'headers':_0x3259f1['xvrmf'](getAuthHeader,_0x1ca14a['Browserstack']['username'],_0x1ca14a[_0x3fc2a9(0x26c)][_0x3fc2a9(0x1e5)]),'throwHttpErrors':![]},_0x636f26={};_0x636f26[_0x3fc2a9(0x236)]=_0x196bb9;const _0x544a20=_0x636f26;_0x459300&&(_0x3259f1['ipilU'](_0x3259f1[_0x3fc2a9(0x2e4)],_0x3259f1['qCOCi'])?_0x3259f1[_0x3fc2a9(0x26e)](_0x1c5d3f,_0x162b87[_0x3fc2a9(0x213)]):(_0x544a20[_0x3fc2a9(0x1bf)]=_0x365a75,_0x544a20['cloudProvider']=_0x17b304,_0x544a20['newCluster']=!![]));const _0x234e6e=_0x3fc2a9(0x31e)+AG_API_URL+_0x3fc2a9(0x2cf),_0x3bf966={'searchParams':_0x544a20,'throwHttpErrors':![],..._0x4f95e8},_0x3ee8ae=_0x3bf966,_0x4874d4=await _0x3259f1[_0x3fc2a9(0x20c)](got,_0x234e6e,_0x3ee8ae);if(_0x3259f1[_0x3fc2a9(0x262)](_0x4874d4,null)||_0x3259f1[_0x3fc2a9(0x262)](_0x4874d4,undefined)){if(_0x3259f1['sBsUk'](_0x3259f1[_0x3fc2a9(0x2c7)],_0x3259f1[_0x3fc2a9(0x2c7)])){const _0x4e4f85={};_0x4e4f85[_0x3fc2a9(0x2a4)]=_0x3259f1['nthDn'],_0x4e4f85[_0x3fc2a9(0x1f7)]=_0x3259f1[_0x3fc2a9(0x25e)];const _0x3732f4={};_0x3732f4['description']=_0x3259f1['PdzAc'],_0x3732f4[_0x3fc2a9(0x1f7)]=_0x3259f1[_0x3fc2a9(0x25e)];const _0x519957={};_0x519957[_0x3fc2a9(0x2a4)]=_0x3259f1[_0x3fc2a9(0x36a)],_0x519957[_0x3fc2a9(0x1f7)]=_0x3259f1[_0x3fc2a9(0x25e)];const _0x4e1d12={};_0x4e1d12['description']=_0x3259f1['dOMmj'],_0x4e1d12[_0x3fc2a9(0x1f7)]=_0x3259f1[_0x3fc2a9(0x25e)];const _0x13d79c={};_0x13d79c[_0x3fc2a9(0x2a4)]=_0x3259f1[_0x3fc2a9(0x21d)],_0x13d79c[_0x3fc2a9(0x1f7)]=_0x3259f1[_0x3fc2a9(0x25e)];const _0x5a9dc1={};_0x5a9dc1['description']=_0x3259f1[_0x3fc2a9(0x2f5)],_0x5a9dc1['type']=_0x3259f1[_0x3fc2a9(0x25e)];const _0x28c977={};_0x28c977[_0x3fc2a9(0x2a4)]=_0x3259f1['WqPdL'],_0x28c977[_0x3fc2a9(0x1f7)]=_0x3259f1['DOvmh'],_0x28c977['default']=![];const _0x14a4a1={};_0x14a4a1[_0x3fc2a9(0x2a4)]=_0x3259f1[_0x3fc2a9(0x34d)],_0x14a4a1[_0x3fc2a9(0x1f7)]=_0x3259f1['DOvmh'],_0x14a4a1['default']=![];const _0x55d2d8={};return _0x55d2d8[_0x3fc2a9(0x278)]=_0x4e4f85,_0x55d2d8[_0x3fc2a9(0x20a)]=_0x3732f4,_0x55d2d8[_0x3fc2a9(0x33a)]=_0x519957,_0x55d2d8[_0x3fc2a9(0x24b)]=_0x4e1d12,_0x55d2d8[_0x3fc2a9(0x1bf)]=_0x13d79c,_0x55d2d8[_0x3fc2a9(0x2d7)]=_0x5a9dc1,_0x55d2d8['skip-tls-cert-verify']=_0x28c977,_0x55d2d8['hub-ha']=_0x14a4a1,_0x56e4a0[_0x3fc2a9(0x1f1)](_0x1d88d0[_0x3fc2a9(0x322)])[_0x3fc2a9(0x32f)](_0x4662ac)[_0x3fc2a9(0x245)](_0x55d2d8)[_0x3fc2a9(0x229)](_0x3259f1[_0x3fc2a9(0x280)])[_0x3fc2a9(0x1ce)];}else _0x27a4bf=_0x3259f1['iwXMv'],await _0x3259f1['meDYQ'](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x1f9)],_0x3259f1['LgrPU']),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1);}if(_0x3259f1[_0x3fc2a9(0x2d6)](_0x4874d4[_0x3fc2a9(0x35d)],0x191)){if(_0x3259f1['AAgcC'](_0x3259f1[_0x3fc2a9(0x359)],_0x3259f1[_0x3fc2a9(0x2e9)]))_0x27a4bf=_0x3259f1[_0x3fc2a9(0x2f2)],await _0x3259f1[_0x3fc2a9(0x220)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1['egxIH'],_0x3259f1['LgrPU']),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1);else{const _0x445a61={'azure.workload.identity/use':_0x3259f1[_0x3fc2a9(0x222)],..._0x4b0d9d[0x0][_0x3fc2a9(0x203)][_0x3fc2a9(0x2dc)][_0x3fc2a9(0x325)]['labels']};_0x525642[0x0][_0x3fc2a9(0x203)]['template'][_0x3fc2a9(0x325)][_0x3fc2a9(0x314)]=_0x445a61,_0x19ee36[0x0]['spec']['template'][_0x3fc2a9(0x203)][_0x3fc2a9(0x33e)]=_0x3259f1['YUlEl'];}}_0x3259f1['AAgcC'](_0x4874d4['statusCode'],0xc8)&&(_0x3259f1[_0x3fc2a9(0x277)](_0x3259f1[_0x3fc2a9(0x2eb)],_0x3259f1[_0x3fc2a9(0x2eb)])?_0x315688=null:(_0x27a4bf=_0x3fc2a9(0x28e)+JSON[_0x3fc2a9(0x273)](_0x4874d4['body']),await _0x3259f1['meDYQ'](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x1d1)],_0x3259f1[_0x3fc2a9(0x1d6)]),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1)));const _0x10ceaa=JSON[_0x3fc2a9(0x214)](_0x4874d4[_0x3fc2a9(0x209)]),_0xad3fda={};_0xad3fda['type']=WS_EVENTS[_0x3fc2a9(0x302)],_0xad3fda[_0x3fc2a9(0x1cf)]=_0x3259f1[_0x3fc2a9(0x1c6)],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0xad3fda);const _0x28453={};_0x28453[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x28453[_0x3fc2a9(0x1cf)]=_0x3259f1[_0x3fc2a9(0x308)],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x28453);_0x10ceaa[_0x3fc2a9(0x2d1)]&&(_0x3259f1['hetQx'](_0x3259f1['nMnvp'],_0x3259f1[_0x3fc2a9(0x1e3)])?(_0x27a4bf='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x196bb9+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x3259f1['meDYQ'](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x2f0)],_0x3259f1[_0x3fc2a9(0x1d6)]),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1)):_0x1261df[_0x3fc2a9(0x261)]('Found\x20VPC:\x20'+_0x2c0479+'\x20'));const _0xe6f7c7=_0x10ceaa[_0x3fc2a9(0x228)];let _0x121ff9=_0xe6f7c7[_0x10ceaa[_0x3fc2a9(0x205)]];_0x380b04[_0x3fc2a9(0x233)]&&(_0x3259f1[_0x3fc2a9(0x1fa)](_0x3259f1[_0x3fc2a9(0x2cd)],_0x3259f1['cihWG'])?_0x121ff9=_0xe6f7c7[_0x380b04[_0x3fc2a9(0x233)]]:_0xaa2af8[_0x3fc2a9(0x233)]=_0x6d71a8[_0x3fc2a9(0x233)]);global_registry['enableHubHa']=![];if(_0x380b04[_0x3fc2a9(0x1dd)]){if(_0x3259f1[_0x3fc2a9(0x326)](_0x3259f1[_0x3fc2a9(0x2ed)],_0x3259f1[_0x3fc2a9(0x2ed)]))_0xa081d8=_0x3259f1[_0x3fc2a9(0x281)];else{const _0x5c7ae6=_0x3259f1[_0x3fc2a9(0x1c8)][_0x3fc2a9(0x369)]('|');let _0x3f739c=0x0;while(!![]){switch(_0x5c7ae6[_0x3f739c++]){case'0':logger[_0x3fc2a9(0x261)](_0x3259f1['CeKcV']);continue;case'1':global_registry[_0x3fc2a9(0x1e2)]=_0x3259f1[_0x3fc2a9(0x1d3)];continue;case'2':global_registry[_0x3fc2a9(0x2e2)]=_0x3259f1[_0x3fc2a9(0x309)];continue;case'3':global_registry[_0x3fc2a9(0x230)]=_0x3259f1[_0x3fc2a9(0x36b)];continue;case'4':global_registry['enableHubHa']=!![];continue;}break;}}}if(_0x3259f1[_0x3fc2a9(0x2ae)](_0x4fa3bd,![])&&_0x3259f1[_0x3fc2a9(0x2b8)](_0x459300,![])){if(_0x3259f1['kLJfi'](_0x3259f1[_0x3fc2a9(0x25b)],_0x3259f1[_0x3fc2a9(0x2a8)])){_0x3259f1[_0x3fc2a9(0x219)](_0x121ff9,undefined)&&(_0x3259f1[_0x3fc2a9(0x219)](_0x3259f1[_0x3fc2a9(0x2b1)],_0x3259f1['BHBSk'])?(_0x27a4bf=_0x3259f1[_0x3fc2a9(0x2dd)],await _0x3259f1[_0x3fc2a9(0x1e7)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1['sBCCG'],_0x3259f1[_0x3fc2a9(0x2b9)],_0x3259f1[_0x3fc2a9(0x1d6)]),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1)):_0x4463e9[_0x3fc2a9(0x2f6)](_0x3fc2a9(0x2a6)+_0x12c361+'\x20\x0a'+_0x5b198f[_0x3fc2a9(0x273)](_0x54226d['stack'])));global_registry['gridProfileId']=_0x121ff9['id'],_0x27a4bf=_0x3fc2a9(0x2d0)+_0x196bb9+'\x20using\x20\x27'+_0x121ff9['name']+_0x3fc2a9(0x2fc),logger[_0x3fc2a9(0x261)](_0x27a4bf);const _0x1ce1f5={};_0x1ce1f5['type']=WS_EVENTS[_0x3fc2a9(0x237)],_0x1ce1f5[_0x3fc2a9(0x1cf)]=_0x27a4bf,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x1ce1f5),_0x17b304=_0x121ff9[_0x3fc2a9(0x35b)],_0x32bd38=_0x121ff9[_0x3fc2a9(0x22a)],_0x365a75=_0x121ff9['region'],_0x2f5180=_0x121ff9[_0x3fc2a9(0x1ff)],_0x318011=_0x121ff9[_0x3fc2a9(0x2ab)],_0x40ed9a=_0x121ff9[_0x3fc2a9(0x31c)],_0x333cf1=_0x121ff9['securityGroups'],_0xded7a8=_0x121ff9['subnets'],_0x5b227a=_0x121ff9[_0x3fc2a9(0x1f8)],_0x8be1fa=_0x121ff9[_0x3fc2a9(0x351)],_0x1deb5d=_0x121ff9[_0x3fc2a9(0x264)],_0x4e8a02=_0x10ceaa['hubVersion'],_0xfae697=_0x10ceaa[_0x3fc2a9(0x363)];if(_0x40ed9a&&_0x3259f1['ikoau'](_0x40ed9a['length'],0x0)){if(_0x3259f1[_0x3fc2a9(0x1eb)](_0x3259f1[_0x3fc2a9(0x1f3)],_0x3259f1['bAHLp']))throw new _0x23eea2(_0x3fc2a9(0x23c)+_0x2e3245+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else _0x40ed9a=null;}_0xded7a8&&_0x3259f1[_0x3fc2a9(0x208)](_0xded7a8[_0x3fc2a9(0x22f)],0x0)&&(_0x3259f1[_0x3fc2a9(0x33c)](_0x3259f1[_0x3fc2a9(0x29d)],_0x3259f1[_0x3fc2a9(0x329)])?(_0x295470[_0x3fc2a9(0x1bf)]=_0xa69098,_0x59a6b5[_0x3fc2a9(0x35b)]=_0x3646b5,_0x1d693f[_0x3fc2a9(0x1cb)]=!![]):_0xded7a8=null);_0x3259f1[_0x3fc2a9(0x27e)](_0x121ff9[_0x3fc2a9(0x20e)],undefined)&&_0x121ff9[_0x3fc2a9(0x20e)]&&(_0x3259f1['eruhp'](_0x3259f1[_0x3fc2a9(0x352)],_0x3259f1['TcjVF'])?_0x5663bc=_0x1e62b8[_0x5cca29['gridProfile']]:global_registry[_0x3fc2a9(0x240)]=!![]);_0x3259f1[_0x3fc2a9(0x20f)](updateGlobalRegistryWithConfig,_0x17b304,_0x32bd38,_0x365a75,_0x2f5180,_0x318011,_0x5b227a,_0x121ff9,_0x4e8a02,_0xfae697,_0x8be1fa,_0x1deb5d);if(global_registry[_0x3fc2a9(0x23b)]){if(_0x3259f1[_0x3fc2a9(0x344)](_0x3259f1[_0x3fc2a9(0x201)],_0x3259f1[_0x3fc2a9(0x201)])){const _0x381e21=_0x3259f1[_0x3fc2a9(0x25c)][_0x3fc2a9(0x369)]('|');let _0x1c7c98=0x0;while(!![]){switch(_0x381e21[_0x1c7c98++]){case'0':_0x23159b[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x215)]);continue;case'1':_0x280de2[_0x3fc2a9(0x1e2)]=_0x3259f1[_0x3fc2a9(0x1d3)];continue;case'2':_0x53048e[_0x3fc2a9(0x2e2)]=_0x3259f1[_0x3fc2a9(0x309)];continue;case'3':_0x2ffbfe[_0x3fc2a9(0x23b)]=!![];continue;case'4':_0x44f057[_0x3fc2a9(0x230)]=_0x3259f1['qLFCC'];continue;}break;}}else _0x3259f1[_0x3fc2a9(0x33b)](updateGlobalRegistryForHubHa,_0x10ceaa['uploaderVersion']);}}else _0x1e9f56=_0x1669b9[_0x3fc2a9(0x2df)],_0x373e1b=_0x3259f1[_0x3fc2a9(0x287)];}else{if(_0x3259f1[_0x3fc2a9(0x323)](_0x459300,!![])){if(_0x3259f1[_0x3fc2a9(0x2f7)](_0x3259f1[_0x3fc2a9(0x31b)],_0x3259f1[_0x3fc2a9(0x31b)]))_0xb13622[_0x3fc2a9(0x261)]('Cluster:\x20'+_0x44c99f['clusterName']+_0x3fc2a9(0x1e0)),_0x44f8a3=![],_0x2643b7=!![];else{_0x27a4bf=_0x3fc2a9(0x247)+_0x196bb9,logger[_0x3fc2a9(0x261)](_0x27a4bf);const _0xd9bcf8={};_0xd9bcf8[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0xd9bcf8['message']=_0x27a4bf,webSocketUtils['sendEventToBackend'](_0x3601d9,_0xd9bcf8),_0x2f5180=_0x121ff9['concurrency'],_0x318011=_0x121ff9[_0x3fc2a9(0x2ab)],_0x40ed9a=null,_0x333cf1=null,_0xded7a8=null,_0x5b227a=_0x121ff9['s3bucket'],_0x8be1fa=_0x121ff9[_0x3fc2a9(0x351)],_0x1deb5d=_0x121ff9['maxNodes'],_0x4e8a02=_0x10ceaa[_0x3fc2a9(0x345)],_0xfae697=_0x10ceaa[_0x3fc2a9(0x363)],_0x3259f1[_0x3fc2a9(0x286)](_0x121ff9[_0x3fc2a9(0x20e)],undefined)&&_0x121ff9[_0x3fc2a9(0x20e)]&&(_0x3259f1[_0x3fc2a9(0x21e)](_0x3259f1['uleAa'],_0x3259f1[_0x3fc2a9(0x211)])?global_registry[_0x3fc2a9(0x240)]=!![]:_0x259f35=_0x3259f1[_0x3fc2a9(0x2ee)]),_0x3259f1['FQmwV'](updateGlobalRegistryWithConfig,_0x17b304,_0x32bd38,_0x365a75,_0x2f5180,_0x318011,_0x5b227a,_0x121ff9,_0x4e8a02,_0xfae697,_0x8be1fa,_0x1deb5d),global_registry[_0x3fc2a9(0x23b)]&&(_0x3259f1[_0x3fc2a9(0x219)](_0x3259f1[_0x3fc2a9(0x282)],_0x3259f1[_0x3fc2a9(0x282)])?_0x3259f1[_0x3fc2a9(0x32e)](updateGlobalRegistryForHubHa,_0x10ceaa[_0x3fc2a9(0x213)]):_0x58b579[_0x3fc2a9(0x240)]=!![]);}}else{if(_0x3259f1['OwsXw'](_0x3259f1[_0x3fc2a9(0x291)],_0x3259f1[_0x3fc2a9(0x291)])){const _0x400fa7={};_0x400fa7[_0x3fc2a9(0x1f7)]=_0x13433c[_0x3fc2a9(0x237)],_0x400fa7['message']='Cluster\x20'+_0x4a3b62+_0x3fc2a9(0x244),_0x3048ec[_0x3fc2a9(0x297)](_0x4d8b53,_0x400fa7,_0x3259f1[_0x3fc2a9(0x218)]),_0x141785[_0x3fc2a9(0x261)](_0x3fc2a9(0x23c)+_0x1d81e9+_0x3fc2a9(0x244)),_0x421eb8=!![];if(_0x3259f1[_0x3fc2a9(0x2bd)](_0x223d3a,!![]))throw new _0x481b09(_0x3fc2a9(0x23c)+_0x22b73f+_0x3fc2a9(0x2b0));}else{const _0xa72c34=_0x3259f1['iOOAX'][_0x3fc2a9(0x369)]('|');let _0x2fe161=0x0;while(!![]){switch(_0xa72c34[_0x2fe161++]){case'0':global_registry[_0x3fc2a9(0x22a)]=_0x32bd38;continue;case'1':const _0x1ef00a={};_0x1ef00a['type']=WS_EVENTS[_0x3fc2a9(0x302)],_0x1ef00a[_0x3fc2a9(0x1cf)]=_0x3259f1['njFOf'],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x1ef00a);continue;case'2':global_registry['cloudProvider']=_0x17b304;continue;case'3':global_registry[_0x3fc2a9(0x363)]=_0x10ceaa[_0x3fc2a9(0x363)];continue;case'4':logger[_0x3fc2a9(0x261)](_0x27a4bf);continue;case'5':_0x27a4bf=_0x3fc2a9(0x356)+_0x196bb9+'\x20in\x20existing\x20cluster\x20\x27'+_0x32bd38+'\x27';continue;case'6':const _0x1abde0={};_0x1abde0[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x1abde0[_0x3fc2a9(0x1cf)]=_0x27a4bf,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x1abde0);continue;case'7':global_registry[_0x3fc2a9(0x1cc)]=_0x365a75;continue;case'8':global_registry[_0x3fc2a9(0x345)]=_0x10ceaa[_0x3fc2a9(0x345)];continue;}break;}}}}const _0x304498=await _0x3259f1[_0x3fc2a9(0x210)](getCloudProviderObject,_0x17b304,_0x32bd38,_0x196bb9,_0x3601d9,webSocketUtils,_0x380b04);_0x3259f1['gWvyq'](_0x17b304,AZURE)&&(_0x3259f1[_0x3fc2a9(0x348)](_0x3259f1[_0x3fc2a9(0x259)],_0x3259f1['kykcK'])?_0x304498['sendResourceDataToHST']():_0x5c700f[_0x3fc2a9(0x240)]=!![]);let _0x313f4c;if(_0x3259f1['eDlBH'](_0x4fa3bd,![])){_0x27a4bf=_0x3fc2a9(0x25a)+_0x365a75+').';const _0x11387b={};_0x11387b['type']=WS_EVENTS[_0x3fc2a9(0x237)],_0x11387b[_0x3fc2a9(0x1cf)]=_0x27a4bf,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x11387b),logger['info'](_0x27a4bf);const _0x13ae25=await _0x304498[_0x3fc2a9(0x2e6)]();if(_0x13ae25){if(_0x3259f1[_0x3fc2a9(0x21b)](_0x3259f1[_0x3fc2a9(0x310)],_0x3259f1[_0x3fc2a9(0x310)]))_0x4574ff['info']('Found\x20Subnets:\x20'+_0x48b757[_0x3fc2a9(0x273)](_0x49d37f)+'\x20');else{const _0x59264a={};_0x59264a[_0x3fc2a9(0x1f7)]=WS_EVENTS['LOG'],_0x59264a[_0x3fc2a9(0x1cf)]=_0x3fc2a9(0x23c)+_0x32bd38+_0x3fc2a9(0x244),webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x59264a,_0x3259f1[_0x3fc2a9(0x218)]),logger[_0x3fc2a9(0x261)](_0x3fc2a9(0x23c)+_0x32bd38+_0x3fc2a9(0x244)),_0x4fa3bd=!![];if(_0x3259f1['ulSIh'](_0x459300,!![])){if(_0x3259f1[_0x3fc2a9(0x2ea)](_0x3259f1['JGUls'],_0x3259f1['GPfDI']))throw new Error(_0x3fc2a9(0x23c)+_0x32bd38+_0x3fc2a9(0x2b0));else _0x34dacf=_0x3259f1[_0x3fc2a9(0x35e)];}}}else{const _0x1c6aba={};_0x1c6aba[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x1c6aba[_0x3fc2a9(0x1cf)]=_0x3259f1['WkQdx'],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x1c6aba),logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x367)]);const _0x4d6cd6=_0x3259f1[_0x3fc2a9(0x206)](_0x40ed9a,null)&&_0x3259f1[_0x3fc2a9(0x313)](_0x40ed9a,undefined),_0x23df2b=_0x3259f1[_0x3fc2a9(0x206)](_0xded7a8,null)&&_0x3259f1[_0x3fc2a9(0x23e)](_0xded7a8,undefined)&&_0x3259f1[_0x3fc2a9(0x27f)](_0xded7a8[_0x3fc2a9(0x22f)],0x0);if(_0x4d6cd6){_0x3259f1['WxNdM'](_0x23df2b,![])&&(_0x27a4bf=_0x3259f1[_0x3fc2a9(0x1c5)],await _0x3259f1[_0x3fc2a9(0x317)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes['ERROR'],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1['iWvCC'],_0x3259f1['LgrPU']),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1));const _0x385d35=await _0x304498[_0x3fc2a9(0x2c0)](_0x40ed9a);_0x3259f1[_0x3fc2a9(0x223)](_0x385d35,![])?(_0x27a4bf=_0x3259f1[_0x3fc2a9(0x21a)],await _0x3259f1[_0x3fc2a9(0x1e7)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x336)],_0x3259f1[_0x3fc2a9(0x1d6)]),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process['exit'](0x1)):logger[_0x3fc2a9(0x261)](_0x3fc2a9(0x305)+_0x40ed9a+'\x20');const _0x28f512=await _0x304498[_0x3fc2a9(0x26b)](_0xded7a8,_0x40ed9a);_0x3259f1[_0x3fc2a9(0x262)](_0x28f512[0x0],![])?(_0x27a4bf='Subnets:\x20'+JSON[_0x3fc2a9(0x273)](_0x28f512[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x40ed9a+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x3259f1['meDYQ'](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x328)],_0x3259f1['LgrPU']),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process['exit'](0x1)):logger['info'](_0x3fc2a9(0x31f)+JSON[_0x3fc2a9(0x273)](_0xded7a8)+'\x20'),[_0x40ed9a,_0xded7a8]=await _0x304498['setupNewCluster'](_0x40ed9a,_0xded7a8);}else{const _0xb83e9c=_0x3259f1[_0x3fc2a9(0x2f9)]['split']('|');let _0x10c90c=0x0;while(!![]){switch(_0xb83e9c[_0x10c90c++]){case'0':[_0x40ed9a,_0xded7a8]=await _0x304498['setupNewCluster'](_0x40ed9a,_0xded7a8);continue;case'1':const _0x5c6957={};_0x5c6957[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x5c6957[_0x3fc2a9(0x1cf)]=_0x3259f1['UkYRT'],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x5c6957);continue;case'2':logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x2cc)]);continue;case'3':const _0x52e1db={};_0x52e1db['type']=WS_EVENTS['LOG'],_0x52e1db['message']=_0x3259f1[_0x3fc2a9(0x1c0)],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x52e1db);continue;case'4':logger['info'](_0x3259f1[_0x3fc2a9(0x1c0)]);continue;}break;}}}}_0x4fa3bd&&_0x3259f1[_0x3fc2a9(0x1fd)](_0x17b304,AZURE)&&(await _0x304498[_0x3fc2a9(0x2fe)](),await _0x304498[_0x3fc2a9(0x27d)]());const [_0x3a3ac3,_0x3f9a72,_0x1579f1,_0x3e6995,_0x158cb3,_0x5dd1cd,_0x37b1e3]=await _0x3259f1['JJUJW'](createK8sClient,_0x304498,_0x380b04[_0x3fc2a9(0x33d)]);_0x3259f1[_0x3fc2a9(0x2b8)](_0x4fa3bd,![])&&_0x3259f1[_0x3fc2a9(0x2a5)](_0x17b304,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x313f4c=await _0x304498['setupAutoscaler'](_0x3a3ac3,_0x380b04));if(_0x3259f1[_0x3fc2a9(0x2e8)](_0x4fa3bd,![])&&global_registry[_0x3fc2a9(0x23b)])try{await _0x304498['setupHubHa'](_0x5dd1cd,_0x37b1e3,_0x380b04,_0x40ed9a,_0xded7a8);const _0x1fb975={};_0x1fb975['type']=WS_EVENTS[_0x3fc2a9(0x237)],_0x1fb975['message']=_0x3259f1[_0x3fc2a9(0x1d4)],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x1fb975);!await _0x3259f1[_0x3fc2a9(0x284)](namespaceExists,_0x3a3ac3,global_registry[_0x3fc2a9(0x1e2)])&&await _0x3259f1[_0x3fc2a9(0x20c)](createNamespace,_0x3a3ac3,global_registry['hubHaNameSpace']);logger[_0x3fc2a9(0x261)](_0x3259f1['RyKXl']);let _0x3d810a=await fs[_0x3fc2a9(0x266)](path[_0x3fc2a9(0x1e9)](__dirname,_0x3259f1[_0x3fc2a9(0x1ed)],_0x3259f1[_0x3fc2a9(0x1f2)],_0x3259f1['xWGam'],_0x3259f1[_0x3fc2a9(0x2e0)]),_0x3259f1['nfxXH']);_0x3d810a=_0x3d810a[_0x3fc2a9(0x34e)](/<RedisClientPassword>/g,_0x3259f1[_0x3fc2a9(0x21c)](encodeBase64,global_registry[_0x3fc2a9(0x230)])),_0x3d810a=_0x3d810a[_0x3fc2a9(0x34e)](/<KafkaClientPassword>/g,_0x3259f1[_0x3fc2a9(0x21c)](encodeBase64,global_registry['kafkaPassword'])),_0x3d810a=_0x3d810a[_0x3fc2a9(0x34e)](/<BstackUsername>/g,_0x3259f1['zHrVK'](encodeBase64,global_registry[_0x3fc2a9(0x2f1)])),_0x3d810a=_0x3d810a['replace'](/<BstackAccessKey>/g,_0x3259f1['sxVvj'](encodeBase64,global_registry[_0x3fc2a9(0x30a)]));const _0x1b1d56=yaml[_0x3fc2a9(0x355)](_0x3d810a);await _0x3259f1[_0x3fc2a9(0x284)](kubeApply,_0x1b1d56,_0x37b1e3),logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x318)]);let _0xe44856=_0x3259f1[_0x3fc2a9(0x321)];if(_0x3259f1[_0x3fc2a9(0x2ae)](_0x17b304,AZURE))_0xe44856=_0x3259f1[_0x3fc2a9(0x2ee)];else _0x3259f1[_0x3fc2a9(0x299)](_0x17b304,GCP)&&(_0xe44856=_0x3259f1[_0x3fc2a9(0x35e)]);logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x1fb)]);let _0x1850dc=await fs['readFileAsync'](path['join'](__dirname,_0x3259f1[_0x3fc2a9(0x1ed)],_0x3259f1[_0x3fc2a9(0x1f2)],_0x3259f1[_0x3fc2a9(0x24f)],_0x3259f1['bISWr']),_0x3259f1[_0x3fc2a9(0x207)]);_0x1850dc=_0x1850dc[_0x3fc2a9(0x34e)](/<HubHaNameSpace>/g,global_registry[_0x3fc2a9(0x1e2)]),_0x1850dc=_0x1850dc['replace'](/<StorageClassName>/g,_0xe44856);const _0x1698b4=yaml[_0x3fc2a9(0x355)](_0x1850dc);await _0x3259f1[_0x3fc2a9(0x365)](kubeApply,_0x1698b4,_0x37b1e3),logger['info'](_0x3259f1[_0x3fc2a9(0x28d)]),logger[_0x3fc2a9(0x261)](_0x3259f1['UQzCI']);let _0x3fad8c=await fs[_0x3fc2a9(0x266)](path[_0x3fc2a9(0x1e9)](__dirname,_0x3259f1[_0x3fc2a9(0x1ed)],_0x3259f1[_0x3fc2a9(0x1f2)],_0x3259f1['xWGam'],_0x3259f1[_0x3fc2a9(0x26f)]),_0x3259f1['nfxXH']);_0x3fad8c=_0x3fad8c['replace'](/<HubHaNameSpace>/g,global_registry[_0x3fc2a9(0x1e2)]),_0x3fad8c=_0x3fad8c['replace'](/<StorageClassName>/g,_0xe44856);const _0x423961=yaml['loadAll'](_0x3fad8c);await _0x3259f1['JJUJW'](kubeApply,_0x423961,_0x37b1e3),logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x270)]),logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x32c)]);let _0x571e98=await fs[_0x3fc2a9(0x266)](path['join'](__dirname,_0x3259f1[_0x3fc2a9(0x1ed)],_0x3259f1[_0x3fc2a9(0x1f2)],_0x3259f1[_0x3fc2a9(0x24f)],_0x3259f1['POdcX']),_0x3259f1['nfxXH']);_0x571e98=_0x571e98['replace'](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x571e98=_0x571e98['replace'](/<HubHaNameSpace>/g,global_registry[_0x3fc2a9(0x1e2)]);const _0x48831e=yaml[_0x3fc2a9(0x355)](_0x571e98);_0x3259f1['Ixvva'](global_registry[_0x3fc2a9(0x35b)],AZURE)&&(_0x48831e[0x0][_0x3fc2a9(0x203)][_0x3fc2a9(0x2dc)][_0x3fc2a9(0x325)][_0x3fc2a9(0x314)]={'azure.workload.identity/use':_0x3259f1[_0x3fc2a9(0x222)],..._0x48831e[0x0][_0x3fc2a9(0x203)][_0x3fc2a9(0x2dc)][_0x3fc2a9(0x325)]['labels']},_0x48831e[0x0][_0x3fc2a9(0x203)]['template'][_0x3fc2a9(0x203)][_0x3fc2a9(0x33e)]=_0x3259f1[_0x3fc2a9(0x22e)]);await _0x3259f1[_0x3fc2a9(0x28f)](kubeApply,_0x48831e,_0x37b1e3),logger['info'](_0x3259f1[_0x3fc2a9(0x2c3)]);const _0x5ab0e7={};_0x5ab0e7[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x5ab0e7[_0x3fc2a9(0x1cf)]=_0x3259f1[_0x3fc2a9(0x217)],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x5ab0e7),logger['info'](_0x3259f1[_0x3fc2a9(0x2ba)]);}catch(_0x4c57bf){const _0x5d5a3a=_0x3259f1[_0x3fc2a9(0x31a)][_0x3fc2a9(0x369)]('|');let _0x1c7aa5=0x0;while(!![]){switch(_0x5d5a3a[_0x1c7aa5++]){case'0':logger[_0x3fc2a9(0x2f6)](_0x27a4bf);continue;case'1':await _0x304498['deleteCluster'](_0x3a3ac3,global_registry[_0x3fc2a9(0x1cc)]);continue;case'2':_0x27a4bf=_0x3fc2a9(0x272)+_0x4c57bf[_0x3fc2a9(0x1cf)];continue;case'3':await _0x3259f1[_0x3fc2a9(0x260)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1['hVcky'],_0x3259f1[_0x3fc2a9(0x1d6)]);continue;case'4':process[_0x3fc2a9(0x2db)](0x1);continue;}break;}}try{_0x4f8b5c=_0x3259f1['QzkRT'](kebabCase,_0x196bb9),logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x27a)]);const _0x472ebe={};_0x472ebe[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x472ebe[_0x3fc2a9(0x1cf)]=_0x3259f1[_0x3fc2a9(0x27a)],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x472ebe);if(_0x3259f1['sBsUk'](_0x4f8b5c,_0x3259f1[_0x3fc2a9(0x22e)])){const _0x5369a7={};_0x5369a7[_0x3fc2a9(0x24e)]=_0x3259f1[_0x3fc2a9(0x29c)],_0x5369a7[_0x3fc2a9(0x246)]=_0x3259f1[_0x3fc2a9(0x29c)];const _0x5b94f8={};_0x5b94f8['name']=_0x4f8b5c,_0x5b94f8['annotations']=_0x5369a7;const _0x6655ce={};_0x6655ce[_0x3fc2a9(0x325)]=_0x5b94f8;const _0x21ea58=_0x6655ce,_0x1043e8={};_0x1043e8[_0x3fc2a9(0x209)]=_0x21ea58,await _0x3a3ac3['createNamespace'](_0x1043e8),logger[_0x3fc2a9(0x261)](_0x3259f1[_0x3fc2a9(0x362)]);}const _0x520708={};_0x520708[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x520708['message']=_0x3259f1[_0x3fc2a9(0x2c9)],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x520708);const _0x5c535e={};_0x5c535e['type']=WS_EVENTS[_0x3fc2a9(0x237)],_0x5c535e[_0x3fc2a9(0x1cf)]=_0x3259f1['LihlI'],webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x5c535e),logger['info'](_0x3259f1[_0x3fc2a9(0x204)]);let _0x27f61f={};_0x3259f1[_0x3fc2a9(0x221)](_0x17b304,AZURE)&&(_0x27f61f={'clientId':await _0x304498[_0x3fc2a9(0x234)]('turboscale-managed-identity-'+_0x32bd38)});await _0x3259f1[_0x3fc2a9(0x2ce)](addGridComponents,_0x3a3ac3,_0x3f9a72,_0x1579f1,_0x3e6995,_0x4f8b5c,_0x32bd38,_0x313f4c,_0x158cb3,_0x37b1e3,_0x27f61f),_0x27a4bf=_0x3259f1[_0x3fc2a9(0x216)],logger[_0x3fc2a9(0x261)](_0x27a4bf);const _0x19f1b3={};_0x19f1b3['type']=WS_EVENTS[_0x3fc2a9(0x237)],_0x19f1b3['message']=_0x27a4bf,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x19f1b3),_0x27a4bf=_0x3259f1[_0x3fc2a9(0x254)],logger['info'](_0x27a4bf);const _0x285216={};_0x285216[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x285216[_0x3fc2a9(0x1cf)]=_0x27a4bf,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x285216),await _0x3259f1[_0x3fc2a9(0x253)](waitForDeployment,_0x3f9a72,_0x4f8b5c,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x5dfb87=await _0x3259f1[_0x3fc2a9(0x28f)](getNamespaceUID,_0x3a3ac3,_0x4f8b5c),_0x7b9f64=global_registry[_0x3fc2a9(0x240)]?_0x3259f1[_0x3fc2a9(0x1c4)]:_0x3259f1['tOgXv'],_0x1f55f7={};_0x1f55f7['name']=_0x7b9f64,_0x1f55f7[_0x3fc2a9(0x361)]=_0x3259f1[_0x3fc2a9(0x251)];const _0x3727f8=await _0x3a3ac3[_0x3fc2a9(0x27c)](_0x1f55f7);let _0x498588=_0x304498['getGridHostname'](_0x3727f8)+'/'+_0x4f8b5c,_0x3cca76=_0x3259f1[_0x3fc2a9(0x281)];try{const _0x18492c=_0x3fc2a9(0x31e)+AG_API_URL+_0x3fc2a9(0x1fc)+_0x5dfb87,_0x4ecf2b=await _0x3259f1[_0x3fc2a9(0x365)](got,_0x18492c,_0x4f95e8);(_0x3259f1[_0x3fc2a9(0x301)](_0x4ecf2b,null)||_0x3259f1[_0x3fc2a9(0x221)](_0x4ecf2b,undefined))&&(_0x27a4bf=_0x3259f1[_0x3fc2a9(0x1c7)],await _0x3259f1['hFoaW'](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x29e)],_0x3259f1[_0x3fc2a9(0x28a)],_0x3259f1['LgrPU']),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process['exit'](0x1));_0x3259f1[_0x3fc2a9(0x263)](_0x4ecf2b[_0x3fc2a9(0x35d)],0x191)&&(_0x27a4bf=_0x3259f1[_0x3fc2a9(0x347)],await _0x3259f1[_0x3fc2a9(0x317)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1['sBCCG'],_0x3259f1[_0x3fc2a9(0x34c)],_0x3259f1['LgrPU']),logger['error'](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1));_0x3259f1[_0x3fc2a9(0x332)](_0x4ecf2b[_0x3fc2a9(0x35d)],0xc8)&&(_0x27a4bf=_0x3fc2a9(0x1f0)+JSON[_0x3fc2a9(0x273)](_0x4ecf2b),await _0x3259f1[_0x3fc2a9(0x1f6)](reportToGalactusAndSendToEDS,_0x380b04,_0x3601d9,_0x27a4bf,messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1['sBCCG'],_0x3259f1[_0x3fc2a9(0x24c)],_0x3259f1[_0x3fc2a9(0x1d6)]),logger[_0x3fc2a9(0x2f6)](_0x27a4bf),process[_0x3fc2a9(0x2db)](0x1));const _0x3f9f5e=JSON[_0x3fc2a9(0x214)](_0x4ecf2b[_0x3fc2a9(0x209)]);_0x3f9f5e[_0x3fc2a9(0x2df)]&&(_0x498588=_0x3f9f5e[_0x3fc2a9(0x2df)],_0x3cca76=_0x3259f1[_0x3fc2a9(0x287)]),global_registry[_0x3fc2a9(0x240)]&&(_0x3cca76=_0x3259f1[_0x3fc2a9(0x281)]);}catch(_0x2b232d){}_0x27a4bf=_0x3fc2a9(0x23f)+_0x498588+'\x20',logger[_0x3fc2a9(0x261)](_0x27a4bf);const _0xe7e325={};_0xe7e325[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0xe7e325[_0x3fc2a9(0x1cf)]=_0x27a4bf,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0xe7e325),_0x27a4bf=_0x3fc2a9(0x307)+_0x3cca76+_0x3fc2a9(0x27b)+_0x498588+_0x3fc2a9(0x2c5),logger[_0x3fc2a9(0x261)](_0x27a4bf);const _0x25d3fd={};_0x25d3fd[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x25d3fd['message']=_0x27a4bf,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x25d3fd);const _0x1e8394={};_0x1e8394[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x275)],_0x1e8394[_0x3fc2a9(0x1cf)]=_0x3fc2a9(0x316)+_0x498588,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x1e8394),await webSocketUtils[_0x3fc2a9(0x30c)](0x7d0);}catch(_0x4b281b){logger['error'](_0x3fc2a9(0x358)+_0x4b281b+'\x20\x0a'+JSON[_0x3fc2a9(0x273)](_0x4b281b[_0x3fc2a9(0x353)]));if(_0x3259f1[_0x3fc2a9(0x1d2)](_0x4fa3bd,![]))try{logger[_0x3fc2a9(0x261)](_0x3259f1['nxStU']),await _0x3259f1[_0x3fc2a9(0x2c4)](removeGridComponents,_0x3a3ac3,_0x3f9a72,_0x1579f1,_0x3e6995,_0x4f8b5c),await _0x304498[_0x3fc2a9(0x1c3)](_0x3a3ac3,global_registry[_0x3fc2a9(0x1cc)]);}catch(_0x2b3c75){logger[_0x3fc2a9(0x2f6)](_0x3fc2a9(0x2a6)+_0x2b3c75+'\x20\x0a'+JSON[_0x3fc2a9(0x273)](_0x2b3c75[_0x3fc2a9(0x353)]));}throw _0x4b281b;}}catch(_0x1f82fa){const _0x323f26=_0x3fc2a9(0x327)+_0x1f82fa+'\x20\x0a'+JSON[_0x3fc2a9(0x273)](_0x1f82fa[_0x3fc2a9(0x353)]);if(_0x3601d9){const _0x2b09a3={};_0x2b09a3[_0x3fc2a9(0x1f7)]=WS_EVENTS[_0x3fc2a9(0x237)],_0x2b09a3[_0x3fc2a9(0x1cf)]=_0x323f26,webSocketUtils[_0x3fc2a9(0x297)](_0x3601d9,_0x2b09a3,_0x3259f1[_0x3fc2a9(0x1d6)],!![]);}await webSocketUtils[_0x3fc2a9(0x30c)](0x7d0);const _0x4d7c15={};_0x4d7c15['error']=_0x323f26,await _0x3259f1[_0x3fc2a9(0x2da)](sendInstrumentationEvent,_0x380b04,_0x3259f1[_0x3fc2a9(0x29e)],messageTypes[_0x3fc2a9(0x2ef)],_0x3259f1[_0x3fc2a9(0x21f)],_0x4d7c15,_0x380b04),logger[_0x3fc2a9(0x2f6)](_0x323f26);}process[_0x3fc2a9(0x2db)](0x0);};
1
+ function a9_0x3d8a(){const _0x4ad826=['kfWNp','lOiQS','FvCOe','ursoD','lAYVp','skip-tls-cert-verify','parse','xhjao','rmfJI','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','TMMne','VMljo','connectionTimeout','Added\x20Turboscale\x20Uploader\x20deployment.','uDVaU','isSubnetsValid','CXOdZ','skipTlsCertVerify','pdpPB','dZdSl','builder','includes','yzvmh','SBEqe','labels','eeBtt','TcTqo','jalyd','949377ubfMYn','UESmx','18lFwlJA','Flag\x20to\x20enable\x20Hub\x20HA','\x20using\x20\x27','template','private-grid','IqTSX','error','XwzUP','TnVre','grid-name','createNamespace','nayHR','jyVjr','description','oiTIN','MbyiP','gridProfileId','usage','ERROR','sPTPJ','OLbXv','route53','wMOsN','aWEwG','browserstack-secret.yaml','password','ZgYBw','exit','../../utils/webSocketUtils','get-grid-url-non-200','grid-spawning-failed','XAKKU','Skip\x20insecure\x20cert\x20verification.','LeHPF','qjRxq','pre-spawned-invalid-vpc','Adding\x20Turboscale\x20Uploader\x20deployment...','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','readNamespacedService','gridName','Grid\x20can\x20be\x20accessed\x20at:\x20','HXtKK','1679121QqWQBd','0|3|7|5|6|4|2|8|1','requestId','stack','NgRKs','WebSocket','newCluster','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','createOtherResources','clusterRegion','UiIZM','Create\x20a\x20new\x20Automation\x20grid.','ADqMj','BfaWQ','SxRgX','hubharesources','eIwfA','aPrbR','split','GET','awXlL','Namespace\x20created','instanceType','YtcVN','updateClusterAlreadyPresent','create-grid-checks-auth-failed','JfgmU','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','kDSpd','1404032cLLYqE','rlvqr','createdBy','kafkaUploader','kafkaPassword','create','Added\x20Kafka\x20deployment.','securityGroups','https://','iyWCr','Creating\x20namespace','Subnets:\x20','NoLuJ','bEgQM','OVcHL','ktQhV','reconnecting-websocket','bstackUsername','lMiEL','ingress-nginx-controller','Found\x20Subnets:\x20','sdTPD','region','YolAS','oOoBE','isPrivateGrid','OvOVl','BTTnR','WcGrd','HNeLy','HgwMd','iKJBF','handler','Adding\x20Redis\x20deployment...','jhfRT','Cluster\x20created\x20successfully','privateGrid','setupHubHa','AfQvv','serviceAccountName','FIlcR','/packages/cli/get-grid-url?gridIdentifier=','cuEgp','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','oojJz','jUDIu','EOCjN','<PasswordPlaceholder>','MBCaB','alreadyPresent','MwUSV','WFCgr','isNewAWSCluster','dMdvk','browserVersion','yPPKk','INFO','CLI_RUN_FINISHED','yMZDY','cloud-provider','XPawe','qJHCj','HNznR','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','BBFWS','addListeners','toLowerCase','ycNiv','LqJJP','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','vaBIJ','uploaderVersion','mYSPe','got','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','lUdUL','JPUom','\x20are\x20not\x20present\x20in\x20VPC:\x20','nCLTe','subnets','pIRQM','SKHQY','../../utils/instrumentationUtils','1|0|4|3|2','swubc','ObBab','oFXpP','Created\x20Hub\x20HA\x20resources','mMztD','ecAac','MWilA','isVPCPresent','../../cloudproviders/utils','dRUnB','GGKxt','Wsbya','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','parVw','\x20in\x20existing\x20cluster\x20\x27','Adding\x20Secret\x20Mapping','redisPassword','23836TdqOFZ','js-yaml','hub-ha','QEBUh','RATvu','UkRNzNYCBU','Cluster\x20','WXTcZ','DJRam','CLI\x20run\x20started','Added\x20Redis\x20deployment.','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','grid','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','true','Namespace\x20Created','Wjqln','1|10|8|3|14|6|7|5|2|9|11|15|12|0|4|13','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','LYMfh','FbDMh','gGCgz','user','/wd/hub','vvEFJ','cluster-name','gpFPJ','opsME','fKMen','argv','enableHubHa','lEhFA','xvNOu','create-grid-called','bhWmp','gljoq','fXZWk','XIpgi','nZIBy','length','mLJIS','wczpn','HTtIN','ikWEZ','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','gridProfile','maxNodes','deleteCluster','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','namespace','templates','diLgN','jxxFb','hubHaNameSpace','azurefile-csi-premium','ccJMS','command','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','Found\x20VPC:\x20','746235MzRKWo','prespawned-cluster-args-not-passed','NdqnI','Cluster:\x20','khmLr','irLEa','managedBy','://','turboscale-uploader.yaml','uuid','SIuGl','xxVUO','bitnami-kafka.yaml','fOpwp','Deleting\x20the\x20CloudFormation\x20Stacks','premium-rwo','options','bstackAccesskey','CLI_RUN_STARTED','oJtLH','hulIX','Spawning\x20the\x20grid\x20','Enabling\x20Hub\x20HA\x20flow','minNodes','string','clusterName','loadAll','uJxOh','stringify','iXVDL','fyhRv','setupNewCluster','QBrbE','debug','Hub\x20HA\x20setup\x20completed\x20successfully.','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','JvMwH','WhvzX','setupAutoscaler','VSTPa','TwKQJ','sendResourceDataToHST','40iNVTdl','create-grid-checks-non-200','srWIc','fNUFb','VVask','vpc','pixsz','kFMSd','\x27\x20grid\x20profile','2261622JseBzt','GhxQF','get-grid-url-null-response','TXkFq','Bhvpj','pre-spawned-subnets-not-selected','epilogue','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','../../utils/utilityMethods','path','geKGp','type','efs-csi','cgYje','pSfJx','dTlRG','mdYCC','ILJNo','WbVVA','CmHBX','create-grid-checks-null-response','Create\x20a\x20private/public\x20grid.','IvTxF','SrKLg','LOG','GSIDr','username','default','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','statusCode','cloudProvider','vjpmo','iFZVw','130aGrNTQ','poovc','create-grid-checks-invalid-profile','oLcPS','CKWGp','isClusterPresent','pZrNj','FvAKY','eYxtf','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','spGvs','OKEHb','rhqdX','concurrency','TzAqR','desc','BGBZi','hub-ha-deployments-failed','metadata','JogdI','body','InkGC','CLI\x20run\x20finished:\x20','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','join','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','krCMo','iuPpA','get-grid-url-auth-failed','675592yJfMrw','gxJVT','iaXtx','readFileAsync','biInI','ATsYZ','cOmEz','jpveA','pgDQy','../../config/constants','Adding\x20Websocket\x20listeners','tyHaG','grid-profile','hubVersion','Adding\x20Kafka\x20deployment...','pre-spawned-invalid-subnets','MCVDJ','oNzRc','spec','CsCZD','MRqwx','name','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','browserstack','sendEventToBackend','delay','Browserstack','annotations','QVMEO','HmNqS','gridProfiles','uploaderImageVersion','replace','brUoG','message','ybiUF','help','UhbLp','eCVVV','mURaQ','getResourceClientId','DGjyU','MJUYp','GSpjl','vixjv','SaOCP','OuGYc','UDgen','../../utils/gridComponents','info','defaultGridProfile','s3bucket'];a9_0x3d8a=function(){return _0x4ad826;};return a9_0x3d8a();}const a9_0x41d4c4=a9_0x2441;function a9_0x2441(_0x167149,_0x27640a){const _0x3d8a6b=a9_0x3d8a();return a9_0x2441=function(_0x244153,_0x59ca61){_0x244153=_0x244153-0xf0;let _0x1ca5b1=_0x3d8a6b[_0x244153];return _0x1ca5b1;},a9_0x2441(_0x167149,_0x27640a);}(function(_0x533a19,_0x1aecd3){const _0x4697b4=a9_0x2441,_0x2c7679=_0x533a19();while(!![]){try{const _0x73d206=-parseInt(_0x4697b4(0x1dc))/0x1+parseInt(_0x4697b4(0x19e))/0x2+parseInt(_0x4697b4(0x22c))/0x3+parseInt(_0x4697b4(0x12e))/0x4*(parseInt(_0x4697b4(0x1bf))/0x5)+parseInt(_0x4697b4(0x22e))/0x6*(parseInt(_0x4697b4(0x16b))/0x7)+parseInt(_0x4697b4(0x275))/0x8+-parseInt(_0x4697b4(0x258))/0x9*(parseInt(_0x4697b4(0x195))/0xa);if(_0x73d206===_0x1aecd3)break;else _0x2c7679['push'](_0x2c7679['shift']());}catch(_0x2c1fea){_0x2c7679['push'](_0x2c7679['shift']());}}}(a9_0x3d8a,0xa4f47));const fs=require('fs'),ws=require('ws'),path=require(a9_0x41d4c4(0x1a7)),yaml=require(a9_0x41d4c4(0x12f)),ReconnectingWebSocket=require(a9_0x41d4c4(0x285)),got=require(a9_0x41d4c4(0x112)),{v4:uuidv4}=require(a9_0x41d4c4(0x174)),webSocketUtils=require(a9_0x41d4c4(0x24a)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x41d4c4(0x1a6)),{getCloudProviderObject}=require(a9_0x41d4c4(0x125)),{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_0x41d4c4(0x1e5)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x41d4c4(0x20c)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a9_0x41d4c4(0x11b));exports[a9_0x41d4c4(0x168)]=a9_0x41d4c4(0x13b),exports[a9_0x41d4c4(0x1ce)]=a9_0x41d4c4(0x263),exports[a9_0x41d4c4(0x224)]=function(_0xa5d904){const _0x45b423=a9_0x41d4c4,_0x148cda={};_0x148cda[_0x45b423(0x14b)]=_0x45b423(0x13c),_0x148cda[_0x45b423(0x175)]=_0x45b423(0x183),_0x148cda['pXKAD']=_0x45b423(0x107),_0x148cda[_0x45b423(0x1c9)]=_0x45b423(0x253),_0x148cda[_0x45b423(0x135)]=_0x45b423(0x160),_0x148cda[_0x45b423(0x115)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x148cda[_0x45b423(0x229)]='Create\x20a\x20private/public\x20grid.',_0x148cda[_0x45b423(0xf0)]=_0x45b423(0x24e),_0x148cda['JfgmU']='boolean',_0x148cda[_0x45b423(0x282)]=_0x45b423(0x22f),_0x148cda[_0x45b423(0x291)]=_0x45b423(0x200);const _0x62ff31=_0x148cda,_0x49bfcf={};_0x49bfcf['description']=_0x62ff31[_0x45b423(0x14b)],_0x49bfcf[_0x45b423(0x1a9)]=_0x62ff31['SIuGl'];const _0x3ae3a7={};_0x3ae3a7[_0x45b423(0x23b)]=_0x62ff31['pXKAD'],_0x3ae3a7[_0x45b423(0x1a9)]=_0x62ff31[_0x45b423(0x175)];const _0x9933de={};_0x9933de[_0x45b423(0x23b)]=_0x62ff31[_0x45b423(0x1c9)],_0x9933de[_0x45b423(0x1a9)]=_0x62ff31[_0x45b423(0x175)];const _0x1232ca={};_0x1232ca[_0x45b423(0x23b)]=_0x62ff31[_0x45b423(0x135)],_0x1232ca[_0x45b423(0x1a9)]=_0x62ff31[_0x45b423(0x175)];const _0x1dc829={};_0x1dc829['description']=_0x62ff31[_0x45b423(0x115)],_0x1dc829['type']=_0x62ff31[_0x45b423(0x175)];const _0x1ee1ae={};_0x1ee1ae[_0x45b423(0x23b)]=_0x62ff31[_0x45b423(0x229)],_0x1ee1ae['type']=_0x62ff31[_0x45b423(0x175)];const _0xfbd79d={};_0xfbd79d[_0x45b423(0x23b)]=_0x62ff31[_0x45b423(0xf0)],_0xfbd79d[_0x45b423(0x1a9)]=_0x62ff31['JfgmU'],_0xfbd79d[_0x45b423(0x1b9)]=![];const _0x2695ae={};_0x2695ae['description']=_0x62ff31[_0x45b423(0x282)],_0x2695ae[_0x45b423(0x1a9)]=_0x62ff31[_0x45b423(0x272)],_0x2695ae[_0x45b423(0x1b9)]=![];const _0xcec9b3={};return _0xcec9b3['grid-name']=_0x49bfcf,_0xcec9b3[_0x45b423(0x1e8)]=_0x3ae3a7,_0xcec9b3[_0x45b423(0x148)]=_0x9933de,_0xcec9b3[_0x45b423(0x103)]=_0x1232ca,_0xcec9b3[_0x45b423(0x28b)]=_0x1dc829,_0xcec9b3[_0x45b423(0x232)]=_0x1ee1ae,_0xcec9b3[_0x45b423(0x215)]=_0xfbd79d,_0xcec9b3['hub-ha']=_0x2695ae,_0xa5d904[_0x45b423(0x23f)](HELP_HEADER_MESSAGE[_0x45b423(0x27a)])[_0x45b423(0x1a4)](HELP_FOOTER_MESSAGE)[_0x45b423(0x17b)](_0xcec9b3)[_0x45b423(0x200)](_0x62ff31[_0x45b423(0x291)])[_0x45b423(0x14c)];},exports[a9_0x41d4c4(0x295)]=async function(_0x5cd46d){const _0xd094f9=a9_0x41d4c4,_0x23c0e5={'gljoq':_0xd094f9(0x166),'lOiQS':'warn','fNUFb':function(_0x1cce11,_0x6f89f2){return _0x1cce11===_0x6f89f2;},'oLcPS':function(_0x38f0c1,_0x484a10){return _0x38f0c1(_0x484a10);},'opsME':_0xd094f9(0x17a),'FOtND':_0xd094f9(0x259),'rlvqr':_0xd094f9(0x137),'rWTte':_0xd094f9(0x140),'yMZDY':function(_0x26afcf,_0x59202d){return _0x26afcf!==_0x59202d;},'HXtKK':function(_0x20f087,_0x7fd290,_0x1fe6c8,_0x45ccac,_0x3dc277,_0x1d5977,_0x42cdea,_0x28c327,_0x44c14d,_0x6745b1,_0x23a365,_0x5e3f80){return _0x20f087(_0x7fd290,_0x1fe6c8,_0x45ccac,_0x3dc277,_0x1d5977,_0x42cdea,_0x28c327,_0x44c14d,_0x6745b1,_0x23a365,_0x5e3f80);},'ybiUF':function(_0x2465c6,_0x455a3f){return _0x2465c6(_0x455a3f);},'pIRQM':_0xd094f9(0x234),'uDVaU':_0xd094f9(0x11c),'lMiEL':_0xd094f9(0x1f3),'jalyd':_0xd094f9(0x181),'LqJJP':'Epyd5nXbRK','GSIDr':_0xd094f9(0x133),'CsCZD':'http','wczpn':_0xd094f9(0x13c),'oojJz':_0xd094f9(0x183),'pgDQy':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','CmHBX':_0xd094f9(0x253),'QFNLo':_0xd094f9(0x160),'dRUnB':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Wsbya':_0xd094f9(0x1b3),'QQJaa':_0xd094f9(0x24e),'iKJBF':'boolean','AGisg':_0xd094f9(0x22f),'MJUYp':_0xd094f9(0x200),'ADqMj':'https','UESmx':_0xd094f9(0x13d),'eYxtf':_0xd094f9(0x1b9),'ObBab':function(_0x2ce7e3){return _0x2ce7e3();},'geKGp':_0xd094f9(0xfa),'YxoaB':'VRCsI','XPawe':_0xd094f9(0x1f2),'cuEgp':function(_0x42845b,_0x2887f4,_0x4098b7,_0x50ccaf,_0x11c41d,_0x597b5e,_0x3507a8){return _0x42845b(_0x2887f4,_0x4098b7,_0x50ccaf,_0x11c41d,_0x597b5e,_0x3507a8);},'VVask':_0xd094f9(0x150),'SxRgX':'init-not-called','IqTSX':function(_0x2c61b3,_0x5d4278,_0x2f391b,_0x4c222f,_0x487d6b,_0x47e991,_0x38cbec){return _0x2c61b3(_0x5d4278,_0x2f391b,_0x4c222f,_0x487d6b,_0x47e991,_0x38cbec);},'XwzUP':function(_0x13c2a6){return _0x13c2a6();},'OKEHb':'<UsernamePlaceholder>','CXOdZ':_0xd094f9(0xf7),'WhvzX':_0xd094f9(0x1e6),'diLgN':_0xd094f9(0x283),'iXVDL':_0xd094f9(0x25c),'ikWEZ':_0xd094f9(0x273),'vvEFJ':function(_0x3b9d91,_0x101e9c,_0x2066aa,_0x1aa84d,_0x40d0e4,_0x4173b1,_0x555d84,_0x42b13a){return _0x3b9d91(_0x101e9c,_0x2066aa,_0x1aa84d,_0x40d0e4,_0x4173b1,_0x555d84,_0x42b13a);},'mdYCC':_0xd094f9(0x16c),'YolAS':function(_0x55092b,_0x3b0bee){return _0x55092b!==_0x3b0bee;},'qjRxq':_0xd094f9(0x205),'vaBIJ':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','LwMop':'non-aws-azure-cluster','wMOsN':function(_0x4021fc,_0x4c9284){return _0x4021fc===_0x4c9284;},'Bhvpj':_0xd094f9(0x284),'NUQmV':_0xd094f9(0x292),'RATvu':function(_0x33adfe,_0x16b5b6){return _0x33adfe===_0x16b5b6;},'khmLr':_0xd094f9(0xfd),'fAcqo':_0xd094f9(0x12a),'Vauha':'gDpRe','fXZWk':_0xd094f9(0x114),'lAYVp':function(_0x34ffe4,_0x22574e){return _0x34ffe4!==_0x22574e;},'NdqnI':_0xd094f9(0x1ac),'HNznR':_0xd094f9(0x151),'jUDIu':_0xd094f9(0x26b),'NoLuJ':function(_0x2ce86e,_0x9b9313,_0x1191bd){return _0x2ce86e(_0x9b9313,_0x1191bd);},'iaXtx':'GAOjJ','CKWGp':_0xd094f9(0x21a),'qJHCj':function(_0x51d236,_0x41e427,_0x83efe6){return _0x51d236(_0x41e427,_0x83efe6);},'ATsYZ':function(_0x1a18ea,_0x1561c0){return _0x1a18ea===_0x1561c0;},'lEhFA':'qSUQx','kDSpd':_0xd094f9(0x1d6),'mMztD':_0xd094f9(0x1b2),'jyVjr':_0xd094f9(0x10c),'KxUCY':'ejbbb','cgYje':_0xd094f9(0x169),'rhqdX':_0xd094f9(0x271),'dTlRG':function(_0x22b9e5,_0x47e3d6){return _0x22b9e5!==_0x47e3d6;},'VjZGc':function(_0x2a3e76,_0x40ced6){return _0x2a3e76!==_0x40ced6;},'OuGYc':'YDezV','pixsz':_0xd094f9(0x122),'ursoD':_0xd094f9(0x196),'VnFHm':'Grid\x20profile\x20fetched\x20from\x20backend','YtcVN':'cHIqH','ZYLuy':_0xd094f9(0x192),'XAKKU':'create-grid-checks-grid-already-exists','UtXNE':_0xd094f9(0x29b),'gGCgz':_0xd094f9(0x297),'LYMfh':function(_0x23293d,_0x214f7a){return _0x23293d===_0x214f7a;},'BfaWQ':'mpvMs','nCLTe':_0xd094f9(0x167),'aSHij':function(_0x4ed24e,_0x36b9e0){return _0x4ed24e===_0x36b9e0;},'GSpjl':'KmDER','FvCOe':'FCgrP','xVQYI':_0xd094f9(0x1c8),'oiTIN':_0xd094f9(0x1c1),'krCMo':function(_0x1c8daf,_0x334b82){return _0x1c8daf===_0x334b82;},'srWIc':'EYsvE','mYSPe':_0xd094f9(0x28f),'TXkFq':function(_0x80f2c6,_0x342e64){return _0x80f2c6===_0x342e64;},'MWilA':_0xd094f9(0x208),'BGBZi':function(_0x5befb4,_0x36c84c){return _0x5befb4!==_0x36c84c;},'iFZVw':'jAbSq','QVMEO':function(_0x346d98,_0x5811b3){return _0x346d98===_0x5811b3;},'dZdSl':_0xd094f9(0x1dd),'swubc':function(_0x1c0736,_0xbf1492){return _0x1c0736(_0xbf1492);},'gpFPJ':_0xd094f9(0x1bd),'awXlL':'tWUOx','EOCjN':function(_0xb2d6d2,_0x58726d){return _0xb2d6d2!==_0x58726d;},'JogdI':function(_0x24b2ad,_0x151880){return _0x24b2ad===_0x151880;},'oJtLH':_0xd094f9(0x269),'TnVre':function(_0x53b3d8,_0x12a5d8,_0xc65d26,_0xba116c,_0x3fd102,_0x141a64,_0x9b2128,_0x191dba,_0x5d8fc8,_0x425d1e,_0x51c6c2,_0x5a892d){return _0x53b3d8(_0x12a5d8,_0xc65d26,_0xba116c,_0x3fd102,_0x141a64,_0x9b2128,_0x191dba,_0x5d8fc8,_0x425d1e,_0x51c6c2,_0x5a892d);},'mURaQ':'ttBek','nayHR':function(_0x45c25f,_0x5b2bc2){return _0x45c25f!==_0x5b2bc2;},'sPTPJ':_0xd094f9(0x27e),'kfWNp':'3|5|7|2|8|0|1|4|6','pdpPB':function(_0x552a91,_0x3fc901,_0x4bf7f9,_0x11aeef,_0x443b11,_0x4ebfcb,_0x183067){return _0x552a91(_0x3fc901,_0x4bf7f9,_0x11aeef,_0x443b11,_0x4ebfcb,_0x183067);},'mLJIS':function(_0x30efa0,_0x343932){return _0x30efa0!==_0x343932;},'SrKLg':_0xd094f9(0x13f),'NfIvE':_0xd094f9(0x248),'yzvmh':_0xd094f9(0xfb),'jpveA':function(_0x427613,_0x2a2cea){return _0x427613===_0x2a2cea;},'XIpgi':_0xd094f9(0x127),'sdTPD':_0xd094f9(0x1c0),'HgwMd':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','kFMSd':function(_0x5a5154,_0x3fad98){return _0x5a5154!=_0x3fad98;},'oFXpP':function(_0x2370b4,_0x1342c2){return _0x2370b4!==_0x1342c2;},'oOoBE':function(_0x351290,_0x13553d){return _0x351290!=_0x13553d;},'yPPKk':function(_0x2366f8,_0x6dd6a7){return _0x2366f8!==_0x6dd6a7;},'dwEsr':function(_0x1d9018,_0x40ba87){return _0x1d9018>_0x40ba87;},'jxxFb':function(_0x59a5e8,_0x3ff5e7){return _0x59a5e8===_0x3ff5e7;},'xvNOu':_0xd094f9(0x113),'TzAqR':_0xd094f9(0x1a3),'eCVVV':function(_0xccb892,_0x336763){return _0xccb892===_0x336763;},'HTtIN':_0xd094f9(0x18e),'InkGC':function(_0xce778c,_0x3e64b7,_0x1bfc88,_0x13a870,_0x24aae1,_0x37bdfb,_0x54713f,_0x4a19aa){return _0xce778c(_0x3e64b7,_0x1bfc88,_0x13a870,_0x24aae1,_0x37bdfb,_0x54713f,_0x4a19aa);},'ImoFp':_0xd094f9(0x251),'xhjao':function(_0x115307,_0x3ac0d9,_0x5d8ad1,_0x28b213,_0x237c83,_0x2c8ef4,_0x4a0bf3,_0x2f7e53){return _0x115307(_0x3ac0d9,_0x5d8ad1,_0x28b213,_0x237c83,_0x2c8ef4,_0x4a0bf3,_0x2f7e53);},'Omibm':_0xd094f9(0x1eb),'QBrbE':'4|1|3|2|0','ILJNo':_0xd094f9(0x298),'SKHQY':'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.','vXggL':function(_0x5888cf,_0x5ba5b9){return _0x5888cf===_0x5ba5b9;},'BBFWS':'Creating\x20Hub\x20HA\x20resources','uJxOh':function(_0x45f20b,_0x1ac150,_0x3eb99f){return _0x45f20b(_0x1ac150,_0x3eb99f);},'irLEa':function(_0x5f6c2c,_0xabd897,_0x1af2e2){return _0x5f6c2c(_0xabd897,_0x1af2e2);},'MRqwx':_0xd094f9(0x12c),'UDgen':'../..','iuPpA':_0xd094f9(0x162),'oNzRc':_0xd094f9(0x267),'fyhRv':_0xd094f9(0x246),'cOmEz':'utf-8','nJLaL':function(_0x4aa16d,_0x4ee99f){return _0x4aa16d(_0x4ee99f);},'biInI':function(_0x2a45c1,_0x9593ab){return _0x2a45c1(_0x9593ab);},'TcTqo':function(_0x3cece8,_0x1852dc){return _0x3cece8(_0x1852dc);},'fOpwp':'Added\x20Secret\x20Mapping','UhbLp':_0xd094f9(0x1aa),'FvAKY':function(_0x2198aa,_0x422c86){return _0x2198aa===_0x422c86;},'ebAqG':_0xd094f9(0x296),'UiIZM':'bitnami-redis.yaml','QEBUh':function(_0x122dbc,_0xf974ef,_0xfe50d){return _0x122dbc(_0xf974ef,_0xfe50d);},'DJRam':_0xd094f9(0x138),'IvTxF':_0xd094f9(0x1ea),'JvMwH':_0xd094f9(0x177),'brUoG':_0xd094f9(0x27b),'eASNR':_0xd094f9(0x252),'BTTnR':_0xd094f9(0x173),'piAYR':_0xd094f9(0x21d),'rmfJI':_0xd094f9(0x120),'KypYT':_0xd094f9(0x18d),'tyHaG':'4|0|2|1|3','hwVlc':_0xd094f9(0x1d0),'WbVVA':_0xd094f9(0x27f),'eIwfA':_0xd094f9(0x1f6),'MBCaB':_0xd094f9(0x13e),'jToVh':_0xd094f9(0x26d),'vqBWh':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','GhxQF':'Spawning\x20Grid\x20on\x20the\x20Cluster','CpbTX':function(_0x3cf2b3,_0x5a01c4){return _0x3cf2b3===_0x5a01c4;},'SnDkY':function(_0x41b107,_0x819b4c,_0x45c986,_0x3f21c0,_0x47f566,_0x2b3cef,_0x104c25,_0x3c830a,_0x4d1b3d,_0x39cc19,_0x6f5d4){return _0x41b107(_0x819b4c,_0x45c986,_0x3f21c0,_0x47f566,_0x2b3cef,_0x104c25,_0x3c830a,_0x4d1b3d,_0x39cc19,_0x6f5d4);},'MbyiP':'Grid\x20spawned\x20on\x20the\x20cluster','hulIX':_0xd094f9(0x219),'SBEqe':function(_0x17fa5d,_0xfa683d,_0x1409be,_0x3e873c,_0x2ec9ff){return _0x17fa5d(_0xfa683d,_0x1409be,_0x3e873c,_0x2ec9ff);},'NwpDs':function(_0x57c6f7,_0x512c55,_0x21ad7a){return _0x57c6f7(_0x512c55,_0x21ad7a);},'FbDMh':'private-ingress-nginx-controller','sputj':_0xd094f9(0x288),'OLbXv':'ingress-nginx','pZrNj':function(_0x5b7e4c,_0x19b007){return _0x5b7e4c===_0x19b007;},'VMljo':_0xd094f9(0x25f),'DPSCx':_0xd094f9(0x1a0),'xxVUO':function(_0x5e8326,_0x390c7a){return _0x5e8326===_0x390c7a;},'SaOCP':_0xd094f9(0x1ba),'HmNqS':function(_0x36fafb,_0x36f6e8,_0x4624c6,_0x33c54a,_0x243d0b,_0x194f73,_0x152492,_0x4733f6){return _0x36fafb(_0x36f6e8,_0x4624c6,_0x33c54a,_0x243d0b,_0x194f73,_0x152492,_0x4733f6);},'MCVDJ':_0xd094f9(0x1db),'nZIBy':function(_0x121a1d,_0x575668,_0x5217b6,_0x3d337c,_0x7dabb9,_0x3b3925,_0x251ebe,_0x1b3735){return _0x121a1d(_0x575668,_0x5217b6,_0x3d337c,_0x7dabb9,_0x3b3925,_0x251ebe,_0x1b3735);},'TwKQJ':_0xd094f9(0x24b),'aWEwG':_0xd094f9(0x179),'LeHPF':function(_0x18e756,_0x5acbff,_0x23933a,_0x40228a,_0x5718a4,_0x2fa9c0){return _0x18e756(_0x5acbff,_0x23933a,_0x40228a,_0x5718a4,_0x2fa9c0);},'AcThx':_0xd094f9(0x24c)};let _0x14f716=![],_0x1c7919=![],_0xb5ec71,_0x5aae81,_0x30ef54,_0x44355f,_0x173925,_0x42013f,_0x8af0c,_0xc1a05d,_0x354e22,_0xdc8aa3,_0x224033,_0x106983,_0x3dd1fc,_0x544554,_0x1c9b96=0x1,_0x48eb02=0xe;try{global_registry[_0xd094f9(0x25a)]=_0x23c0e5[_0xd094f9(0x11e)](uuidv4),global_registry[_0xd094f9(0x28e)]=![];!fs['existsSync'](_0x23c0e5[_0xd094f9(0x11e)](getCredentialsPath))&&(_0x23c0e5[_0xd094f9(0x198)](_0x23c0e5[_0xd094f9(0x1a8)],_0x23c0e5['YxoaB'])?(_0x5d12e7[_0xd094f9(0x28b)]=_0x39af83,_0x5b488e['cloudProvider']=_0x3137e0,_0x598d51[_0xd094f9(0x25e)]=!![]):(console[_0xd094f9(0x234)](_0x23c0e5[_0xd094f9(0x104)]),await _0x23c0e5[_0xd094f9(0xf2)](sendInstrumentationEvent,_0x5cd46d,_0x23c0e5['VVask'],messageTypes[_0xd094f9(0x240)],_0x23c0e5[_0xd094f9(0x266)],null,_0x5cd46d),process[_0xd094f9(0x249)](0x1)));await _0x23c0e5[_0xd094f9(0x233)](sendInstrumentationEvent,_0x5cd46d,_0x23c0e5[_0xd094f9(0x199)],messageTypes[_0xd094f9(0x100)],null,null,_0x5cd46d);const _0x2ec9f1=JSON['parse'](fs['readFileSync'](_0x23c0e5[_0xd094f9(0x235)](getCredentialsPath)));global_registry['bstackUsername']=_0x2ec9f1[_0xd094f9(0x1f6)][_0xd094f9(0x1b8)],global_registry[_0xd094f9(0x17c)]=_0x2ec9f1[_0xd094f9(0x1f6)]['password'];const _0x558759=WS_ENDPOINT[_0xd094f9(0x1fc)](_0x23c0e5[_0xd094f9(0x1ca)],_0x2ec9f1[_0xd094f9(0x1f6)][_0xd094f9(0x1b8)])[_0xd094f9(0x1fc)](_0x23c0e5[_0xd094f9(0x220)],_0x2ec9f1['Browserstack']['password']),_0x51a3a5={};_0x51a3a5[_0xd094f9(0x25d)]=ws,_0x51a3a5[_0xd094f9(0x21c)]=0x36ee80,_0x106983=new ReconnectingWebSocket(_0x558759,[],_0x51a3a5),logger[_0xd094f9(0x18c)](_0x23c0e5[_0xd094f9(0x190)]),webSocketUtils[_0xd094f9(0x10a)](_0x106983,_0x5cd46d[_0xd094f9(0x145)],_0x5cd46d[_0xd094f9(0x247)]);const _0x5381a3=_0x5cd46d[_0xd094f9(0x255)]||DEFAULT_GRID_NAME;if(_0x5cd46d[_0xd094f9(0x184)]||_0x5cd46d[_0xd094f9(0x1bc)]||_0x5cd46d['region']){if(_0x23c0e5[_0xd094f9(0x198)](_0x23c0e5[_0xd094f9(0x163)],_0x23c0e5[_0xd094f9(0x163)])){!(_0x5cd46d[_0xd094f9(0x184)]&&_0x5cd46d[_0xd094f9(0x1bc)]&&_0x5cd46d['region'])&&(_0x23c0e5[_0xd094f9(0x102)](_0x23c0e5['iXVDL'],_0x23c0e5[_0xd094f9(0x188)])?_0xc452bc=_0x21568e[_0x3881c8[_0xd094f9(0x15d)]]:(_0xb5ec71=_0x23c0e5[_0xd094f9(0x15a)],await _0x23c0e5['vvEFJ'](reportToGalactusAndSendToEDS,_0x5cd46d,_0x106983,_0xb5ec71,messageTypes['ERROR'],_0x23c0e5[_0xd094f9(0x199)],_0x23c0e5[_0xd094f9(0x1ae)],_0x23c0e5[_0xd094f9(0x119)]),logger[_0xd094f9(0x234)](_0xb5ec71),process[_0xd094f9(0x249)](0x1)));![AWS,AZURE,GCP][_0xd094f9(0x225)](_0x5cd46d['cloudProvider'][_0xd094f9(0x10b)]())&&(_0x23c0e5[_0xd094f9(0x28c)](_0x23c0e5[_0xd094f9(0x250)],_0x23c0e5[_0xd094f9(0x250)])?_0xaaff2[_0xd094f9(0x20d)](_0xd094f9(0x16a)+_0x1749d5+'\x20'):(_0xb5ec71=_0x23c0e5[_0xd094f9(0x10f)],await _0x23c0e5['vvEFJ'](reportToGalactusAndSendToEDS,_0x5cd46d,_0x106983,_0xb5ec71,messageTypes['ERROR'],_0x23c0e5[_0xd094f9(0x199)],_0x23c0e5['LwMop'],_0x23c0e5['pIRQM']),logger[_0xd094f9(0x234)](_0xb5ec71),process['exit'](0x1)));_0x5cd46d[_0xd094f9(0x299)]&&_0x23c0e5[_0xd094f9(0x244)](_0x5cd46d[_0xd094f9(0x299)]['toLowerCase'](),_0x23c0e5[_0xd094f9(0x22d)])&&(_0x23c0e5[_0xd094f9(0x198)](_0x23c0e5[_0xd094f9(0x1a2)],_0x23c0e5['NUQmV'])?_0x2fb11f=_0x23c0e5[_0xd094f9(0x152)]:global_registry[_0xd094f9(0x28e)]=!![]);global_registry[_0xd094f9(0x1bc)]=_0x5cd46d[_0xd094f9(0x1bc)],global_registry['clusterRegion']=_0x5cd46d[_0xd094f9(0x28b)],global_registry[_0xd094f9(0x184)]=_0x5cd46d['clusterName'];const _0x2f8383=await _0x23c0e5[_0xd094f9(0xf2)](getCloudProviderObject,_0x5cd46d[_0xd094f9(0x1bc)],_0x5cd46d['clusterName'],_0x5381a3,_0x106983,webSocketUtils,_0x5cd46d),_0x4e5150=await _0x2f8383[_0xd094f9(0x1c4)]();if(!_0x4e5150){if(_0x23c0e5['RATvu'](_0x23c0e5[_0xd094f9(0x16f)],_0x23c0e5['fAcqo']))throw new _0x5a2031(_0xd094f9(0x134)+_0xe60051+_0xd094f9(0xf3));else logger['info']('Cluster:\x20'+_0x5cd46d[_0xd094f9(0x184)]+_0xd094f9(0x1a5)),_0x14f716=![],_0x1c7919=!![];}else _0x23c0e5[_0xd094f9(0x102)](_0x23c0e5['Vauha'],_0x23c0e5[_0xd094f9(0x153)])?_0x14f716=!![]:_0x5003e2=!![];_0x30ef54=_0x5cd46d['clusterName'],_0x5aae81=_0x5cd46d['cloudProvider']['toLowerCase'](),_0x44355f=_0x5cd46d[_0xd094f9(0x28b)];}else _0x1217c6[_0xd094f9(0x20d)](_0xd094f9(0x289)+_0x30e529[_0xd094f9(0x187)](_0x17de32)+'\x20');}else{if(_0x5cd46d[_0xd094f9(0x15d)]){if(_0x23c0e5[_0xd094f9(0x214)](_0x23c0e5[_0xd094f9(0x16d)],_0x23c0e5[_0xd094f9(0x106)]))global_registry[_0xd094f9(0x15d)]=_0x5cd46d[_0xd094f9(0x15d)];else{const _0x248224={};_0x248224[_0xd094f9(0x1a9)]=_0x578920[_0xd094f9(0x1b6)],_0x248224[_0xd094f9(0x1fe)]=_0xd094f9(0x134)+_0x564003+_0xd094f9(0x129),_0x4ee891[_0xd094f9(0x1f4)](_0x687cfa,_0x248224,_0x23c0e5['lOiQS']),_0x2ca15f[_0xd094f9(0x20d)](_0xd094f9(0x134)+_0x550e04+_0xd094f9(0x129)),_0x35c263=!![];if(_0x23c0e5[_0xd094f9(0x198)](_0x446169,!![]))throw new _0x33c59e(_0xd094f9(0x134)+_0x303524+_0xd094f9(0xf3));}}}global_registry[_0xd094f9(0x255)]=_0x5cd46d[_0xd094f9(0x255)];const _0x1e134c={'method':_0x23c0e5[_0xd094f9(0xf5)],'headers':_0x23c0e5[_0xd094f9(0x281)](getAuthHeader,_0x2ec9f1[_0xd094f9(0x1f6)][_0xd094f9(0x1b8)],_0x2ec9f1[_0xd094f9(0x1f6)][_0xd094f9(0x247)]),'throwHttpErrors':![]},_0x422103={};_0x422103[_0xd094f9(0x255)]=_0x5381a3;const _0x5e5d2b=_0x422103;_0x1c7919&&(_0x23c0e5['fNUFb'](_0x23c0e5[_0xd094f9(0x1de)],_0x23c0e5[_0xd094f9(0x1c3)])?_0x23c0e5[_0xd094f9(0x1c2)](_0x42b55b,_0x2e0dfa[_0xd094f9(0x110)]):(_0x5e5d2b[_0xd094f9(0x28b)]=_0x44355f,_0x5e5d2b['cloudProvider']=_0x5aae81,_0x5e5d2b[_0xd094f9(0x25e)]=!![]));const _0x8273aa=_0xd094f9(0x27d)+AG_API_URL+'/packages/cli/create-grid-checks',_0x1b3ea8={'searchParams':_0x5e5d2b,'throwHttpErrors':![],..._0x1e134c},_0x3ae1af=_0x1b3ea8,_0x23f194=await _0x23c0e5[_0xd094f9(0x105)](got,_0x8273aa,_0x3ae1af);(_0x23c0e5[_0xd094f9(0x1e1)](_0x23f194,null)||_0x23c0e5['ATsYZ'](_0x23f194,undefined))&&(_0x23c0e5['fNUFb'](_0x23c0e5[_0xd094f9(0x14e)],_0x23c0e5[_0xd094f9(0x14e)])?(_0xb5ec71=_0x23c0e5[_0xd094f9(0x274)],await _0x23c0e5[_0xd094f9(0x147)](reportToGalactusAndSendToEDS,_0x5cd46d,_0x106983,_0xb5ec71,messageTypes[_0xd094f9(0x240)],_0x23c0e5[_0xd094f9(0x199)],_0x23c0e5[_0xd094f9(0x121)],_0x23c0e5[_0xd094f9(0x119)]),logger['error'](_0xb5ec71),process['exit'](0x1)):_0x6dbf23=_0x23c0e5[_0xd094f9(0x14a)]);if(_0x23c0e5['wMOsN'](_0x23f194['statusCode'],0x191)){if(_0x23c0e5[_0xd094f9(0x132)](_0x23c0e5[_0xd094f9(0x23a)],_0x23c0e5['KxUCY'])){const _0x5e3048=_0x23c0e5['FOtND']['split']('|');let _0x178671=0x0;while(!![]){switch(_0x5e3048[_0x178671++]){case'0':const _0x54ce06={};_0x54ce06['type']=_0x539939[_0xd094f9(0x17d)],_0x54ce06['message']=_0x23c0e5['rlvqr'],_0x2e77cc[_0xd094f9(0x1f4)](_0x53d42,_0x54ce06);continue;case'1':_0x18858a['browserVersion']=_0x4caa14['browserVersion'];continue;case'2':_0x5cf082[_0xd094f9(0x184)]=_0x44b2d3;continue;case'3':_0x2ce7f3='Spawning\x20the\x20grid\x20'+_0x2f392a+'\x20in\x20existing\x20cluster\x20\x27'+_0x20fb51+'\x27';continue;case'4':_0x123b07[_0xd094f9(0x261)]=_0x309e54;continue;case'5':const _0x2c43fe={};_0x2c43fe[_0xd094f9(0x1a9)]=_0x42c29b[_0xd094f9(0x1b6)],_0x2c43fe['message']=_0x6a41ef,_0x271ba4['sendEventToBackend'](_0x21d544,_0x2c43fe);continue;case'6':_0x2274a5['cloudProvider']=_0x2ab4a0;continue;case'7':_0x1f48ac[_0xd094f9(0x20d)](_0x13eab7);continue;case'8':_0x4683dd[_0xd094f9(0x1e9)]=_0x59d250[_0xd094f9(0x1e9)];continue;}break;}}else _0xb5ec71=_0x23c0e5[_0xd094f9(0x1ab)],await _0x23c0e5[_0xd094f9(0x147)](reportToGalactusAndSendToEDS,_0x5cd46d,_0x106983,_0xb5ec71,messageTypes['ERROR'],_0x23c0e5['VVask'],_0x23c0e5[_0xd094f9(0x1cb)],_0x23c0e5['pIRQM']),logger[_0xd094f9(0x234)](_0xb5ec71),process[_0xd094f9(0x249)](0x1);}_0x23c0e5['dTlRG'](_0x23f194[_0xd094f9(0x1bb)],0xc8)&&(_0x23c0e5['VjZGc'](_0x23c0e5[_0xd094f9(0x20a)],_0x23c0e5[_0xd094f9(0x19b)])?(_0xb5ec71=_0xd094f9(0x141)+JSON[_0xd094f9(0x187)](_0x23f194[_0xd094f9(0x1d3)]),await _0x23c0e5[_0xd094f9(0x147)](reportToGalactusAndSendToEDS,_0x5cd46d,_0x106983,_0xb5ec71,messageTypes[_0xd094f9(0x240)],_0x23c0e5[_0xd094f9(0x199)],_0x23c0e5[_0xd094f9(0x213)],_0x23c0e5['pIRQM']),logger[_0xd094f9(0x234)](_0xb5ec71),process[_0xd094f9(0x249)](0x1)):_0x4558e2=null);const _0x2e626a=JSON[_0xd094f9(0x216)](_0x23f194[_0xd094f9(0x1d3)]),_0x23ccff={};_0x23ccff[_0xd094f9(0x1a9)]=WS_EVENTS[_0xd094f9(0x17d)],_0x23ccff[_0xd094f9(0x1fe)]=_0x23c0e5[_0xd094f9(0x276)],webSocketUtils['sendEventToBackend'](_0x106983,_0x23ccff);const _0x187317={};_0x187317[_0xd094f9(0x1a9)]=WS_EVENTS['LOG'],_0x187317[_0xd094f9(0x1fe)]=_0x23c0e5['VnFHm'],webSocketUtils['sendEventToBackend'](_0x106983,_0x187317);if(_0x2e626a[_0xd094f9(0xf9)]){if(_0x23c0e5[_0xd094f9(0x1e1)](_0x23c0e5[_0xd094f9(0x26f)],_0x23c0e5['ZYLuy'])){const _0x51016b=_0x23c0e5['rWTte'][_0xd094f9(0x26a)]('|');let _0x59e380=0x0;while(!![]){switch(_0x51016b[_0x59e380++]){case'0':_0x23c0e5[_0xd094f9(0x102)](_0x16e09f[_0xd094f9(0x299)],_0x4c4cb2)&&_0x1524d6[_0xd094f9(0x299)]&&(_0x4b92b2['isPrivateGrid']=!![]);continue;case'1':_0x12d771=_0xd094f9(0x108)+_0x24ee20;continue;case'2':_0x4a3817=_0x56a28d[_0xd094f9(0x20f)];continue;case'3':_0x417c89=_0x5a6415[_0xd094f9(0x1cc)];continue;case'4':_0x23c0e5[_0xd094f9(0x257)](_0x1b676a,_0x3fbb27,_0x18c5a6,_0xa83aa5,_0x244fcf,_0x310819,_0x58d1cb,_0x5915db,_0x82f995,_0x5e5bb1,_0x549b87,_0x3c7e60);continue;case'5':_0x302b76=null;continue;case'6':_0x1f45c6=null;continue;case'7':_0x138154=null;continue;case'8':const _0x35a9c6={};_0x35a9c6[_0xd094f9(0x1a9)]=_0x205243[_0xd094f9(0x1b6)],_0x35a9c6[_0xd094f9(0x1fe)]=_0x19780c,_0x5234cf[_0xd094f9(0x1f4)](_0x996e94,_0x35a9c6);continue;case'9':_0x434d40=_0x5aa96a[_0xd094f9(0x182)];continue;case'10':_0x64fd6b[_0xd094f9(0x20d)](_0x2a36cb);continue;case'11':_0x48efa7=_0x677993['maxNodes'];continue;case'12':_0x24ef02=_0x318153[_0xd094f9(0xfe)];continue;case'13':_0x310bb5[_0xd094f9(0x14d)]&&_0x23c0e5[_0xd094f9(0x1ff)](_0x5951fa,_0x164000[_0xd094f9(0x278)]);continue;case'14':_0x30833b=_0x68f169['instanceType'];continue;case'15':_0x4fe8b7=_0x4cb8e1[_0xd094f9(0x1e9)];continue;}break;}}else _0xb5ec71=_0xd094f9(0x15b)+_0x5381a3+_0xd094f9(0x13a),await _0x23c0e5[_0xd094f9(0x147)](reportToGalactusAndSendToEDS,_0x5cd46d,_0x106983,_0xb5ec71,messageTypes['ERROR'],_0x23c0e5[_0xd094f9(0x199)],_0x23c0e5[_0xd094f9(0x24d)],_0x23c0e5['pIRQM']),logger['error'](_0xb5ec71),process[_0xd094f9(0x249)](0x1);}const _0x1d7ac=_0x2e626a[_0xd094f9(0x1fa)];let _0x1fefbf=_0x1d7ac[_0x2e626a[_0xd094f9(0x20e)]];if(_0x5cd46d['gridProfile']){if(_0x23c0e5[_0xd094f9(0x198)](_0x23c0e5['UtXNE'],_0x23c0e5['UtXNE']))_0x1fefbf=_0x1d7ac[_0x5cd46d[_0xd094f9(0x15d)]];else{const _0xaec82a={};_0xaec82a['type']=_0x35ba59[_0xd094f9(0x1b6)],_0xaec82a[_0xd094f9(0x1fe)]=_0x4c337c,_0x3e4db4[_0xd094f9(0x1f4)](_0x5eeb95,_0xaec82a,_0x23c0e5['pIRQM'],!![]);}}global_registry['enableHubHa']=![];if(_0x5cd46d['hubHa']){if(_0x23c0e5[_0xd094f9(0x198)](_0x23c0e5[_0xd094f9(0x144)],_0x23c0e5[_0xd094f9(0x144)])){const _0xae7d32=_0x23c0e5[_0xd094f9(0x21e)][_0xd094f9(0x26a)]('|');let _0x1eca24=0x0;while(!![]){switch(_0xae7d32[_0x1eca24++]){case'0':global_registry[_0xd094f9(0x165)]=_0x23c0e5['lMiEL'];continue;case'1':logger['info'](_0x23c0e5[_0xd094f9(0x22b)]);continue;case'2':global_registry['enableHubHa']=!![];continue;case'3':global_registry[_0xd094f9(0x279)]=_0x23c0e5[_0xd094f9(0x10d)];continue;case'4':global_registry[_0xd094f9(0x12d)]=_0x23c0e5[_0xd094f9(0x1b7)];continue;}break;}}else{const _0x238beb=_0x23c0e5[_0xd094f9(0x21e)]['split']('|');let _0x49dfc2=0x0;while(!![]){switch(_0x238beb[_0x49dfc2++]){case'0':_0x1bb31f[_0xd094f9(0x165)]=_0x23c0e5[_0xd094f9(0x287)];continue;case'1':_0x8ca016[_0xd094f9(0x20d)](_0x23c0e5[_0xd094f9(0x22b)]);continue;case'2':_0x2bacf4['enableHubHa']=!![];continue;case'3':_0x26c888['kafkaPassword']=_0x23c0e5[_0xd094f9(0x10d)];continue;case'4':_0x121ace[_0xd094f9(0x12d)]=_0x23c0e5['GSIDr'];continue;}break;}}}if(_0x23c0e5['ATsYZ'](_0x14f716,![])&&_0x23c0e5[_0xd094f9(0x142)](_0x1c7919,![])){if(_0x23c0e5['LYMfh'](_0x23c0e5[_0xd094f9(0x265)],_0x23c0e5[_0xd094f9(0x117)]))_0x5a0eb5[_0xd094f9(0x20d)](_0xd094f9(0x16e)+_0x42a3d5[_0xd094f9(0x184)]+_0xd094f9(0x1a5)),_0x3d785a=![],_0x55d459=!![];else{_0x23c0e5[_0xd094f9(0x142)](_0x1fefbf,undefined)&&(_0x23c0e5['aSHij'](_0x23c0e5[_0xd094f9(0x207)],_0x23c0e5[_0xd094f9(0x212)])?_0x6cfeb8=_0x23c0e5['CsCZD']:(_0xb5ec71=_0x23c0e5['xVQYI'],await _0x23c0e5['vvEFJ'](reportToGalactusAndSendToEDS,_0x5cd46d,_0x106983,_0xb5ec71,messageTypes[_0xd094f9(0x240)],_0x23c0e5[_0xd094f9(0x199)],_0x23c0e5[_0xd094f9(0x23c)],_0x23c0e5[_0xd094f9(0x119)]),logger[_0xd094f9(0x234)](_0xb5ec71),process[_0xd094f9(0x249)](0x1)));global_registry[_0xd094f9(0x23e)]=_0x1fefbf['id'],_0xb5ec71='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x5381a3+_0xd094f9(0x230)+_0x1fefbf[_0xd094f9(0x1f1)]+_0xd094f9(0x19d),logger[_0xd094f9(0x20d)](_0xb5ec71);const _0x498892={};_0x498892[_0xd094f9(0x1a9)]=WS_EVENTS[_0xd094f9(0x1b6)],_0x498892['message']=_0xb5ec71,webSocketUtils[_0xd094f9(0x1f4)](_0x106983,_0x498892),_0x5aae81=_0x1fefbf[_0xd094f9(0x1bc)],_0x30ef54=_0x1fefbf[_0xd094f9(0x184)],_0x44355f=_0x1fefbf[_0xd094f9(0x28b)],_0x173925=_0x1fefbf[_0xd094f9(0x1cc)],_0x42013f=_0x1fefbf[_0xd094f9(0x26e)],_0x8af0c=_0x1fefbf[_0xd094f9(0x19a)],_0xc1a05d=_0x1fefbf[_0xd094f9(0x27c)],_0x354e22=_0x1fefbf[_0xd094f9(0x118)],_0xdc8aa3=_0x1fefbf[_0xd094f9(0x20f)],_0x1c9b96=_0x1fefbf[_0xd094f9(0x182)],_0x48eb02=_0x1fefbf[_0xd094f9(0x15e)],_0x3dd1fc=_0x2e626a[_0xd094f9(0x1e9)],_0x544554=_0x2e626a[_0xd094f9(0xfe)];_0x8af0c&&_0x23c0e5[_0xd094f9(0x1d9)](_0x8af0c[_0xd094f9(0x156)],0x0)&&(_0x23c0e5[_0xd094f9(0x1ad)](_0x23c0e5[_0xd094f9(0x197)],_0x23c0e5[_0xd094f9(0x111)])?_0x8af0c=null:_0x509204=null);if(_0x354e22&&_0x23c0e5[_0xd094f9(0x1a1)](_0x354e22[_0xd094f9(0x156)],0x0)){if(_0x23c0e5[_0xd094f9(0x1d9)](_0x23c0e5[_0xd094f9(0x123)],_0x23c0e5[_0xd094f9(0x123)]))_0x354e22=null;else{const _0x271493={};_0x271493[_0xd094f9(0x23b)]=_0x23c0e5[_0xd094f9(0x158)],_0x271493[_0xd094f9(0x1a9)]=_0x23c0e5[_0xd094f9(0xf4)];const _0x25f9b6={};_0x25f9b6[_0xd094f9(0x23b)]=_0x23c0e5[_0xd094f9(0x1e4)],_0x25f9b6[_0xd094f9(0x1a9)]=_0x23c0e5[_0xd094f9(0xf4)];const _0x3d0fcd={};_0x3d0fcd[_0xd094f9(0x23b)]=_0x23c0e5[_0xd094f9(0x1b1)],_0x3d0fcd[_0xd094f9(0x1a9)]=_0x23c0e5[_0xd094f9(0xf4)];const _0x565d03={};_0x565d03[_0xd094f9(0x23b)]=_0x23c0e5['QFNLo'],_0x565d03[_0xd094f9(0x1a9)]=_0x23c0e5['oojJz'];const _0x3fc274={};_0x3fc274[_0xd094f9(0x23b)]=_0x23c0e5[_0xd094f9(0x126)],_0x3fc274[_0xd094f9(0x1a9)]=_0x23c0e5[_0xd094f9(0xf4)];const _0x2a9001={};_0x2a9001[_0xd094f9(0x23b)]=_0x23c0e5[_0xd094f9(0x128)],_0x2a9001[_0xd094f9(0x1a9)]=_0x23c0e5[_0xd094f9(0xf4)];const _0x414d02={};_0x414d02['description']=_0x23c0e5['QQJaa'],_0x414d02[_0xd094f9(0x1a9)]=_0x23c0e5[_0xd094f9(0x294)],_0x414d02[_0xd094f9(0x1b9)]=![];const _0xfd97f6={};_0xfd97f6[_0xd094f9(0x23b)]=_0x23c0e5['AGisg'],_0xfd97f6['type']=_0x23c0e5['iKJBF'],_0xfd97f6[_0xd094f9(0x1b9)]=![];const _0x53192a={};return _0x53192a[_0xd094f9(0x237)]=_0x271493,_0x53192a[_0xd094f9(0x1e8)]=_0x25f9b6,_0x53192a[_0xd094f9(0x148)]=_0x3d0fcd,_0x53192a[_0xd094f9(0x103)]=_0x565d03,_0x53192a[_0xd094f9(0x28b)]=_0x3fc274,_0x53192a[_0xd094f9(0x232)]=_0x2a9001,_0x53192a['skip-tls-cert-verify']=_0x414d02,_0x53192a[_0xd094f9(0x130)]=_0xfd97f6,_0x7de2b[_0xd094f9(0x23f)](_0x357256['create'])['epilogue'](_0x31962c)[_0xd094f9(0x17b)](_0x53192a)[_0xd094f9(0x200)](_0x23c0e5[_0xd094f9(0x206)])[_0xd094f9(0x14c)];}}_0x23c0e5[_0xd094f9(0x1cf)](_0x1fefbf[_0xd094f9(0x299)],undefined)&&_0x1fefbf['privateGrid']&&(_0x23c0e5['lAYVp'](_0x23c0e5[_0xd094f9(0x1be)],_0x23c0e5[_0xd094f9(0x1be)])?(_0x1d5f45=_0x4f9412[_0xd094f9(0x243)],_0x34c56c=_0x23c0e5['ADqMj']):global_registry[_0xd094f9(0x28e)]=!![]),_0x23c0e5[_0xd094f9(0x257)](updateGlobalRegistryWithConfig,_0x5aae81,_0x30ef54,_0x44355f,_0x173925,_0x42013f,_0xdc8aa3,_0x1fefbf,_0x3dd1fc,_0x544554,_0x1c9b96,_0x48eb02),global_registry[_0xd094f9(0x14d)]&&(_0x23c0e5[_0xd094f9(0x1f8)](_0x23c0e5[_0xd094f9(0x223)],_0x23c0e5[_0xd094f9(0x223)])?_0x23c0e5['swubc'](updateGlobalRegistryForHubHa,_0x2e626a[_0xd094f9(0x110)]):_0x23c0e5[_0xd094f9(0x1c2)](_0x4563f1,_0x28147f['kafkaUploader']));}}else{if(_0x23c0e5[_0xd094f9(0x132)](_0x1c7919,!![])){if(_0x23c0e5['QVMEO'](_0x23c0e5[_0xd094f9(0x149)],_0x23c0e5[_0xd094f9(0x26c)]))_0x3972e4[_0xd094f9(0x194)]();else{_0xb5ec71='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x5381a3,logger[_0xd094f9(0x20d)](_0xb5ec71);const _0x333a8c={};_0x333a8c[_0xd094f9(0x1a9)]=WS_EVENTS[_0xd094f9(0x1b6)],_0x333a8c[_0xd094f9(0x1fe)]=_0xb5ec71,webSocketUtils['sendEventToBackend'](_0x106983,_0x333a8c),_0x173925=_0x1fefbf[_0xd094f9(0x1cc)],_0x42013f=_0x1fefbf[_0xd094f9(0x26e)],_0x8af0c=null,_0xc1a05d=null,_0x354e22=null,_0xdc8aa3=_0x1fefbf[_0xd094f9(0x20f)],_0x1c9b96=_0x1fefbf[_0xd094f9(0x182)],_0x48eb02=_0x1fefbf[_0xd094f9(0x15e)],_0x3dd1fc=_0x2e626a[_0xd094f9(0x1e9)],_0x544554=_0x2e626a[_0xd094f9(0xfe)];_0x23c0e5[_0xd094f9(0xf6)](_0x1fefbf['privateGrid'],undefined)&&_0x1fefbf[_0xd094f9(0x299)]&&(_0x23c0e5[_0xd094f9(0x1d2)](_0x23c0e5[_0xd094f9(0x17e)],_0x23c0e5[_0xd094f9(0x17e)])?global_registry['isPrivateGrid']=!![]:_0x5c3459[_0xd094f9(0x15d)]=_0x800cf4['gridProfile']);_0x23c0e5[_0xd094f9(0x236)](updateGlobalRegistryWithConfig,_0x5aae81,_0x30ef54,_0x44355f,_0x173925,_0x42013f,_0xdc8aa3,_0x1fefbf,_0x3dd1fc,_0x544554,_0x1c9b96,_0x48eb02);if(global_registry[_0xd094f9(0x14d)]){if(_0x23c0e5[_0xd094f9(0x28c)](_0x23c0e5[_0xd094f9(0x203)],_0x23c0e5['mURaQ'])){const _0xd7cebf={'azure.workload.identity/use':_0x23c0e5[_0xd094f9(0x22d)],..._0x20e35a[0x0][_0xd094f9(0x1ee)]['template'][_0xd094f9(0x1d1)][_0xd094f9(0x228)]};_0x68a09b[0x0][_0xd094f9(0x1ee)]['template'][_0xd094f9(0x1d1)][_0xd094f9(0x228)]=_0xd7cebf,_0x2ee3ee[0x0]['spec'][_0xd094f9(0x231)]['spec']['serviceAccountName']=_0x23c0e5[_0xd094f9(0x1c7)];}else _0x23c0e5[_0xd094f9(0x1c2)](updateGlobalRegistryForHubHa,_0x2e626a[_0xd094f9(0x278)]);}}}else{if(_0x23c0e5[_0xd094f9(0x239)](_0x23c0e5[_0xd094f9(0x241)],_0x23c0e5[_0xd094f9(0x241)]))_0x48bb01[_0xd094f9(0x28e)]=!![];else{const _0x1da5f4=_0x23c0e5[_0xd094f9(0x210)]['split']('|');let _0x1b3345=0x0;while(!![]){switch(_0x1da5f4[_0x1b3345++]){case'0':global_registry[_0xd094f9(0x261)]=_0x44355f;continue;case'1':global_registry[_0xd094f9(0x184)]=_0x30ef54;continue;case'2':const _0x304493={};_0x304493[_0xd094f9(0x1a9)]=WS_EVENTS['LOG'],_0x304493[_0xd094f9(0x1fe)]=_0xb5ec71,webSocketUtils[_0xd094f9(0x1f4)](_0x106983,_0x304493);continue;case'3':const _0x2d074d={};_0x2d074d[_0xd094f9(0x1a9)]=WS_EVENTS[_0xd094f9(0x17d)],_0x2d074d[_0xd094f9(0x1fe)]=_0x23c0e5['rlvqr'],webSocketUtils[_0xd094f9(0x1f4)](_0x106983,_0x2d074d);continue;case'4':global_registry['hubVersion']=_0x2e626a[_0xd094f9(0x1e9)];continue;case'5':_0xb5ec71=_0xd094f9(0x180)+_0x5381a3+_0xd094f9(0x12b)+_0x30ef54+'\x27';continue;case'6':global_registry[_0xd094f9(0xfe)]=_0x2e626a[_0xd094f9(0xfe)];continue;case'7':logger['info'](_0xb5ec71);continue;case'8':global_registry['cloudProvider']=_0x5aae81;continue;}break;}}}}const _0x2f2e35=await _0x23c0e5[_0xd094f9(0x222)](getCloudProviderObject,_0x5aae81,_0x30ef54,_0x5381a3,_0x106983,webSocketUtils,_0x5cd46d);_0x23c0e5[_0xd094f9(0x157)](_0x5aae81,AZURE)&&(_0x23c0e5[_0xd094f9(0x244)](_0x23c0e5[_0xd094f9(0x1b5)],_0x23c0e5['NfIvE'])?_0x2e13d3[_0xd094f9(0x234)](_0xd094f9(0x15c)+_0xe16809+'\x20\x0a'+_0x13352['stringify'](_0x2cc9cb[_0xd094f9(0x25b)])):_0x2f2e35[_0xd094f9(0x194)]());let _0x172e4b;if(_0x23c0e5[_0xd094f9(0x1a1)](_0x14f716,![])){_0xb5ec71='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x44355f+').';const _0x2a0e09={};_0x2a0e09[_0xd094f9(0x1a9)]=WS_EVENTS[_0xd094f9(0x1b6)],_0x2a0e09['message']=_0xb5ec71,webSocketUtils[_0xd094f9(0x1f4)](_0x106983,_0x2a0e09),logger['info'](_0xb5ec71);const _0x5f4a62=await _0x2f2e35[_0xd094f9(0x1c4)]();if(_0x5f4a62){if(_0x23c0e5[_0xd094f9(0x1ad)](_0x23c0e5[_0xd094f9(0x226)],_0x23c0e5['yzvmh']))_0x3f54c1[_0xd094f9(0x28e)]=!![];else{const _0x392256={};_0x392256[_0xd094f9(0x1a9)]=WS_EVENTS['LOG'],_0x392256[_0xd094f9(0x1fe)]=_0xd094f9(0x134)+_0x30ef54+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0xd094f9(0x1f4)](_0x106983,_0x392256,_0x23c0e5[_0xd094f9(0x211)]),logger[_0xd094f9(0x20d)](_0xd094f9(0x134)+_0x30ef54+_0xd094f9(0x129)),_0x14f716=!![];if(_0x23c0e5[_0xd094f9(0x1e3)](_0x1c7919,!![])){if(_0x23c0e5[_0xd094f9(0x198)](_0x23c0e5[_0xd094f9(0x154)],_0x23c0e5[_0xd094f9(0x28a)]))_0x4287cf[_0xd094f9(0x28e)]=!![];else throw new Error(_0xd094f9(0x134)+_0x30ef54+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}}else{const _0x168e6e={};_0x168e6e['type']=WS_EVENTS[_0xd094f9(0x1b6)],_0x168e6e[_0xd094f9(0x1fe)]=_0x23c0e5[_0xd094f9(0x293)],webSocketUtils['sendEventToBackend'](_0x106983,_0x168e6e),logger[_0xd094f9(0x20d)](_0x23c0e5[_0xd094f9(0x293)]);const _0x60096a=_0x23c0e5[_0xd094f9(0x19c)](_0x8af0c,null)&&_0x23c0e5[_0xd094f9(0x11f)](_0x8af0c,undefined),_0x57e4f1=_0x23c0e5[_0xd094f9(0x28d)](_0x354e22,null)&&_0x23c0e5[_0xd094f9(0xff)](_0x354e22,undefined)&&_0x23c0e5['dwEsr'](_0x354e22[_0xd094f9(0x156)],0x0);if(_0x60096a){_0x23c0e5[_0xd094f9(0x164)](_0x57e4f1,![])&&(_0xb5ec71=_0x23c0e5[_0xd094f9(0x14f)],await _0x23c0e5[_0xd094f9(0x147)](reportToGalactusAndSendToEDS,_0x5cd46d,_0x106983,_0xb5ec71,messageTypes[_0xd094f9(0x240)],_0x23c0e5[_0xd094f9(0x199)],_0x23c0e5[_0xd094f9(0x1cd)],_0x23c0e5[_0xd094f9(0x119)]),logger['error'](_0xb5ec71),process[_0xd094f9(0x249)](0x1));const _0x10e6b5=await _0x2f2e35[_0xd094f9(0x124)](_0x8af0c);_0x23c0e5[_0xd094f9(0x202)](_0x10e6b5,![])?(_0xb5ec71=_0x23c0e5[_0xd094f9(0x159)],await _0x23c0e5[_0xd094f9(0x1d4)](reportToGalactusAndSendToEDS,_0x5cd46d,_0x106983,_0xb5ec71,messageTypes[_0xd094f9(0x240)],_0x23c0e5['VVask'],_0x23c0e5['ImoFp'],_0x23c0e5[_0xd094f9(0x119)]),logger['error'](_0xb5ec71),process[_0xd094f9(0x249)](0x1)):logger['info'](_0xd094f9(0x16a)+_0x8af0c+'\x20');const _0x477ed9=await _0x2f2e35[_0xd094f9(0x21f)](_0x354e22,_0x8af0c);_0x23c0e5[_0xd094f9(0x164)](_0x477ed9[0x0],![])?(_0xb5ec71=_0xd094f9(0x280)+JSON[_0xd094f9(0x187)](_0x477ed9[0x1])+_0xd094f9(0x116)+_0x8af0c+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x23c0e5[_0xd094f9(0x217)](reportToGalactusAndSendToEDS,_0x5cd46d,_0x106983,_0xb5ec71,messageTypes[_0xd094f9(0x240)],_0x23c0e5['VVask'],_0x23c0e5['Omibm'],_0x23c0e5[_0xd094f9(0x119)]),logger[_0xd094f9(0x234)](_0xb5ec71),process[_0xd094f9(0x249)](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON[_0xd094f9(0x187)](_0x354e22)+'\x20'),[_0x8af0c,_0x354e22]=await _0x2f2e35['setupNewCluster'](_0x8af0c,_0x354e22);}else{const _0x2e4bff=_0x23c0e5[_0xd094f9(0x18b)][_0xd094f9(0x26a)]('|');let _0x1f440d=0x0;while(!![]){switch(_0x2e4bff[_0x1f440d++]){case'0':logger[_0xd094f9(0x20d)](_0x23c0e5[_0xd094f9(0x1af)]);continue;case'1':logger[_0xd094f9(0x20d)](_0x23c0e5[_0xd094f9(0x11a)]);continue;case'2':const _0x25e506={};_0x25e506['type']=WS_EVENTS['LOG'],_0x25e506['message']=_0x23c0e5[_0xd094f9(0x1af)],webSocketUtils['sendEventToBackend'](_0x106983,_0x25e506);continue;case'3':[_0x8af0c,_0x354e22]=await _0x2f2e35[_0xd094f9(0x18a)](_0x8af0c,_0x354e22);continue;case'4':const _0x55618f={};_0x55618f[_0xd094f9(0x1a9)]=WS_EVENTS[_0xd094f9(0x1b6)],_0x55618f[_0xd094f9(0x1fe)]=_0x23c0e5[_0xd094f9(0x11a)],webSocketUtils[_0xd094f9(0x1f4)](_0x106983,_0x55618f);continue;}break;}}}}_0x14f716&&_0x23c0e5[_0xd094f9(0x1e1)](_0x5aae81,AZURE)&&(await _0x2f2e35[_0xd094f9(0x270)](),await _0x2f2e35[_0xd094f9(0x260)]());const [_0x497d69,_0x55b744,_0x340b31,_0x423ea0,_0x16070b,_0x456489,_0x8fca0f]=await _0x23c0e5['qJHCj'](createK8sClient,_0x2f2e35,_0x5cd46d[_0xd094f9(0x221)]);_0x23c0e5['vXggL'](_0x14f716,![])&&_0x23c0e5[_0xd094f9(0x142)](_0x5aae81,AWS)&&(global_registry[_0xd094f9(0xfc)]=!![],_0x172e4b=await _0x2f2e35[_0xd094f9(0x191)](_0x497d69,_0x5cd46d));if(_0x23c0e5[_0xd094f9(0x198)](_0x14f716,![])&&global_registry[_0xd094f9(0x14d)])try{await _0x2f2e35[_0xd094f9(0x29a)](_0x456489,_0x8fca0f,_0x5cd46d,_0x8af0c,_0x354e22);const _0x1a49b7={};_0x1a49b7[_0xd094f9(0x1a9)]=WS_EVENTS[_0xd094f9(0x1b6)],_0x1a49b7['message']=_0x23c0e5[_0xd094f9(0x109)],webSocketUtils['sendEventToBackend'](_0x106983,_0x1a49b7);!await _0x23c0e5['uJxOh'](namespaceExists,_0x497d69,global_registry['hubHaNameSpace'])&&await _0x23c0e5[_0xd094f9(0x170)](createNamespace,_0x497d69,global_registry[_0xd094f9(0x165)]);logger[_0xd094f9(0x20d)](_0x23c0e5[_0xd094f9(0x1f0)]);let _0xdd3723=await fs[_0xd094f9(0x1df)](path[_0xd094f9(0x1d7)](__dirname,_0x23c0e5[_0xd094f9(0x20b)],_0x23c0e5[_0xd094f9(0x1da)],_0x23c0e5[_0xd094f9(0x1ed)],_0x23c0e5[_0xd094f9(0x189)]),_0x23c0e5[_0xd094f9(0x1e2)]);_0xdd3723=_0xdd3723[_0xd094f9(0x1fc)](/<RedisClientPassword>/g,_0x23c0e5['nJLaL'](encodeBase64,global_registry[_0xd094f9(0x12d)])),_0xdd3723=_0xdd3723[_0xd094f9(0x1fc)](/<KafkaClientPassword>/g,_0x23c0e5[_0xd094f9(0x1e0)](encodeBase64,global_registry[_0xd094f9(0x279)])),_0xdd3723=_0xdd3723['replace'](/<BstackUsername>/g,_0x23c0e5[_0xd094f9(0x22a)](encodeBase64,global_registry[_0xd094f9(0x286)])),_0xdd3723=_0xdd3723[_0xd094f9(0x1fc)](/<BstackAccessKey>/g,_0x23c0e5[_0xd094f9(0x1c2)](encodeBase64,global_registry[_0xd094f9(0x17c)]));const _0x4c3887=yaml[_0xd094f9(0x185)](_0xdd3723);await _0x23c0e5[_0xd094f9(0x186)](kubeApply,_0x4c3887,_0x8fca0f),logger[_0xd094f9(0x20d)](_0x23c0e5[_0xd094f9(0x178)]);let _0x168661=_0x23c0e5[_0xd094f9(0x201)];if(_0x23c0e5[_0xd094f9(0x198)](_0x5aae81,AZURE))_0x168661=_0x23c0e5[_0xd094f9(0x152)];else _0x23c0e5[_0xd094f9(0x1c6)](_0x5aae81,GCP)&&(_0x168661=_0x23c0e5[_0xd094f9(0x14a)]);logger[_0xd094f9(0x20d)](_0x23c0e5['ebAqG']);let _0x7f20a8=await fs['readFileAsync'](path[_0xd094f9(0x1d7)](__dirname,_0x23c0e5[_0xd094f9(0x20b)],_0x23c0e5[_0xd094f9(0x1da)],_0x23c0e5['oNzRc'],_0x23c0e5[_0xd094f9(0x262)]),_0x23c0e5[_0xd094f9(0x1e2)]);_0x7f20a8=_0x7f20a8[_0xd094f9(0x1fc)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x7f20a8=_0x7f20a8[_0xd094f9(0x1fc)](/<StorageClassName>/g,_0x168661);const _0x11c13b=yaml['loadAll'](_0x7f20a8);await _0x23c0e5['QEBUh'](kubeApply,_0x11c13b,_0x8fca0f),logger['info'](_0x23c0e5[_0xd094f9(0x136)]),logger[_0xd094f9(0x20d)](_0x23c0e5[_0xd094f9(0x1b4)]);let _0x18e758=await fs['readFileAsync'](path['join'](__dirname,_0x23c0e5[_0xd094f9(0x20b)],_0x23c0e5[_0xd094f9(0x1da)],_0x23c0e5[_0xd094f9(0x1ed)],_0x23c0e5[_0xd094f9(0x18f)]),_0x23c0e5[_0xd094f9(0x1e2)]);_0x18e758=_0x18e758[_0xd094f9(0x1fc)](/<HubHaNameSpace>/g,global_registry[_0xd094f9(0x165)]),_0x18e758=_0x18e758[_0xd094f9(0x1fc)](/<StorageClassName>/g,_0x168661);const _0x436958=yaml[_0xd094f9(0x185)](_0x18e758);await _0x23c0e5[_0xd094f9(0x105)](kubeApply,_0x436958,_0x8fca0f),logger[_0xd094f9(0x20d)](_0x23c0e5[_0xd094f9(0x1fd)]),logger['info'](_0x23c0e5['eASNR']);let _0x3c85e4=await fs[_0xd094f9(0x1df)](path['join'](__dirname,_0x23c0e5[_0xd094f9(0x20b)],_0x23c0e5[_0xd094f9(0x1da)],_0x23c0e5['oNzRc'],_0x23c0e5[_0xd094f9(0x290)]),_0x23c0e5['cOmEz']);_0x3c85e4=_0x3c85e4[_0xd094f9(0x1fc)](/<UploaderImageVersion>/g,global_registry[_0xd094f9(0x1fb)]),_0x3c85e4=_0x3c85e4[_0xd094f9(0x1fc)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']);const _0x2e5be0=yaml[_0xd094f9(0x185)](_0x3c85e4);_0x23c0e5[_0xd094f9(0x1d2)](global_registry['cloudProvider'],AZURE)&&(_0x2e5be0[0x0]['spec'][_0xd094f9(0x231)][_0xd094f9(0x1d1)][_0xd094f9(0x228)]={'azure.workload.identity/use':_0x23c0e5[_0xd094f9(0x22d)],..._0x2e5be0[0x0][_0xd094f9(0x1ee)][_0xd094f9(0x231)][_0xd094f9(0x1d1)][_0xd094f9(0x228)]},_0x2e5be0[0x0]['spec'][_0xd094f9(0x231)][_0xd094f9(0x1ee)][_0xd094f9(0x29c)]=_0x23c0e5[_0xd094f9(0x1c7)]);await _0x23c0e5[_0xd094f9(0x131)](kubeApply,_0x2e5be0,_0x8fca0f),logger['info'](_0x23c0e5['piAYR']);const _0x5b97d1={};_0x5b97d1[_0xd094f9(0x1a9)]=WS_EVENTS[_0xd094f9(0x1b6)],_0x5b97d1['message']=_0x23c0e5[_0xd094f9(0x218)],webSocketUtils[_0xd094f9(0x1f4)](_0x106983,_0x5b97d1),logger['info'](_0x23c0e5['KypYT']);}catch(_0x3e0d98){const _0x13a182=_0x23c0e5[_0xd094f9(0x1e7)][_0xd094f9(0x26a)]('|');let _0x10c323=0x0;while(!![]){switch(_0x13a182[_0x10c323++]){case'0':logger[_0xd094f9(0x234)](_0xb5ec71);continue;case'1':await _0x2f2e35[_0xd094f9(0x15f)](_0x497d69,global_registry[_0xd094f9(0x261)]);continue;case'2':await _0x23c0e5[_0xd094f9(0x147)](reportToGalactusAndSendToEDS,_0x5cd46d,_0x106983,_0xb5ec71,messageTypes[_0xd094f9(0x240)],_0x23c0e5[_0xd094f9(0x199)],_0x23c0e5['hwVlc'],_0x23c0e5[_0xd094f9(0x119)]);continue;case'3':process[_0xd094f9(0x249)](0x1);continue;case'4':_0xb5ec71=_0xd094f9(0x1d8)+_0x3e0d98[_0xd094f9(0x1fe)];continue;}break;}}try{_0x224033=_0x23c0e5[_0xd094f9(0x11d)](kebabCase,_0x5381a3),logger[_0xd094f9(0x20d)](_0x23c0e5['WbVVA']);const _0x22acc6={};_0x22acc6[_0xd094f9(0x1a9)]=WS_EVENTS[_0xd094f9(0x1b6)],_0x22acc6[_0xd094f9(0x1fe)]=_0x23c0e5[_0xd094f9(0x1b0)],webSocketUtils['sendEventToBackend'](_0x106983,_0x22acc6);if(_0x23c0e5[_0xd094f9(0xf6)](_0x224033,_0x23c0e5[_0xd094f9(0x1c7)])){const _0x2a3ded={};_0x2a3ded[_0xd094f9(0x277)]=_0x23c0e5['eIwfA'],_0x2a3ded[_0xd094f9(0x171)]=_0x23c0e5[_0xd094f9(0x268)];const _0x57885d={};_0x57885d[_0xd094f9(0x1f1)]=_0x224033,_0x57885d[_0xd094f9(0x1f7)]=_0x2a3ded;const _0x55b6c4={};_0x55b6c4['metadata']=_0x57885d;const _0xfed9a=_0x55b6c4,_0x366d1e={};_0x366d1e['body']=_0xfed9a,await _0x497d69[_0xd094f9(0x238)](_0x366d1e),logger[_0xd094f9(0x20d)](_0x23c0e5[_0xd094f9(0xf8)]);}const _0x41766d={};_0x41766d[_0xd094f9(0x1a9)]=WS_EVENTS[_0xd094f9(0x1b6)],_0x41766d[_0xd094f9(0x1fe)]=_0x23c0e5['jToVh'],webSocketUtils['sendEventToBackend'](_0x106983,_0x41766d);const _0xa39d57={};_0xa39d57[_0xd094f9(0x1a9)]=WS_EVENTS['LOG'],_0xa39d57[_0xd094f9(0x1fe)]=_0x23c0e5['vqBWh'],webSocketUtils[_0xd094f9(0x1f4)](_0x106983,_0xa39d57),logger[_0xd094f9(0x20d)](_0x23c0e5[_0xd094f9(0x19f)]);let _0x26dc43={};_0x23c0e5['CpbTX'](_0x5aae81,AZURE)&&(_0x26dc43={'clientId':await _0x2f2e35[_0xd094f9(0x204)]('turboscale-managed-identity-'+_0x30ef54)});await _0x23c0e5['SnDkY'](addGridComponents,_0x497d69,_0x55b744,_0x340b31,_0x423ea0,_0x224033,_0x30ef54,_0x172e4b,_0x16070b,_0x8fca0f,_0x26dc43),_0xb5ec71=_0x23c0e5[_0xd094f9(0x23d)],logger[_0xd094f9(0x20d)](_0xb5ec71);const _0x37c70f={};_0x37c70f[_0xd094f9(0x1a9)]=WS_EVENTS[_0xd094f9(0x1b6)],_0x37c70f['message']=_0xb5ec71,webSocketUtils[_0xd094f9(0x1f4)](_0x106983,_0x37c70f),_0xb5ec71=_0x23c0e5[_0xd094f9(0x17f)],logger['info'](_0xb5ec71);const _0x4774e2={};_0x4774e2['type']=WS_EVENTS[_0xd094f9(0x1b6)],_0x4774e2[_0xd094f9(0x1fe)]=_0xb5ec71,webSocketUtils['sendEventToBackend'](_0x106983,_0x4774e2),await _0x23c0e5[_0xd094f9(0x227)](waitForDeployment,_0x55b744,_0x224033,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x506616=await _0x23c0e5['NwpDs'](getNamespaceUID,_0x497d69,_0x224033),_0x1270b7=global_registry[_0xd094f9(0x28e)]?_0x23c0e5[_0xd094f9(0x143)]:_0x23c0e5['sputj'],_0x35b17e={};_0x35b17e['name']=_0x1270b7,_0x35b17e[_0xd094f9(0x161)]=_0x23c0e5[_0xd094f9(0x242)];const _0x10ae9e=await _0x497d69[_0xd094f9(0x254)](_0x35b17e);let _0x33a590=_0x2f2e35['getGridHostname'](_0x10ae9e)+'/'+_0x224033,_0x17bef7=_0x23c0e5[_0xd094f9(0x1ef)];try{const _0x58f755=_0xd094f9(0x27d)+AG_API_URL+_0xd094f9(0xf1)+_0x506616,_0x3b4ee2=await _0x23c0e5[_0xd094f9(0x281)](got,_0x58f755,_0x1e134c);(_0x23c0e5[_0xd094f9(0x1c5)](_0x3b4ee2,null)||_0x23c0e5[_0xd094f9(0x1f8)](_0x3b4ee2,undefined))&&(_0xb5ec71=_0x23c0e5[_0xd094f9(0x21b)],await _0x23c0e5['xhjao'](reportToGalactusAndSendToEDS,_0x5cd46d,_0x106983,_0xb5ec71,messageTypes[_0xd094f9(0x240)],_0x23c0e5[_0xd094f9(0x199)],_0x23c0e5['DPSCx'],_0x23c0e5['pIRQM']),logger[_0xd094f9(0x234)](_0xb5ec71),process['exit'](0x1));_0x23c0e5[_0xd094f9(0x176)](_0x3b4ee2[_0xd094f9(0x1bb)],0x191)&&(_0xb5ec71=_0x23c0e5[_0xd094f9(0x209)],await _0x23c0e5[_0xd094f9(0x1f9)](reportToGalactusAndSendToEDS,_0x5cd46d,_0x106983,_0xb5ec71,messageTypes[_0xd094f9(0x240)],_0x23c0e5[_0xd094f9(0x199)],_0x23c0e5[_0xd094f9(0x1ec)],_0x23c0e5[_0xd094f9(0x119)]),logger[_0xd094f9(0x234)](_0xb5ec71),process[_0xd094f9(0x249)](0x1));_0x23c0e5[_0xd094f9(0x102)](_0x3b4ee2[_0xd094f9(0x1bb)],0xc8)&&(_0xb5ec71=_0xd094f9(0x10e)+JSON['stringify'](_0x3b4ee2),await _0x23c0e5[_0xd094f9(0x155)](reportToGalactusAndSendToEDS,_0x5cd46d,_0x106983,_0xb5ec71,messageTypes[_0xd094f9(0x240)],_0x23c0e5[_0xd094f9(0x199)],_0x23c0e5[_0xd094f9(0x193)],_0x23c0e5[_0xd094f9(0x119)]),logger['error'](_0xb5ec71),process[_0xd094f9(0x249)](0x1));const _0xbda6ca=JSON[_0xd094f9(0x216)](_0x3b4ee2[_0xd094f9(0x1d3)]);_0xbda6ca['route53']&&(_0x33a590=_0xbda6ca[_0xd094f9(0x243)],_0x17bef7=_0x23c0e5[_0xd094f9(0x264)]),global_registry[_0xd094f9(0x28e)]&&(_0x17bef7=_0x23c0e5[_0xd094f9(0x1ef)]);}catch(_0x36f386){}_0xb5ec71=_0xd094f9(0x256)+_0x33a590+'\x20',logger[_0xd094f9(0x20d)](_0xb5ec71);const _0x385712={};_0x385712[_0xd094f9(0x1a9)]=WS_EVENTS[_0xd094f9(0x1b6)],_0x385712[_0xd094f9(0x1fe)]=_0xb5ec71,webSocketUtils['sendEventToBackend'](_0x106983,_0x385712),_0xb5ec71=_0xd094f9(0x139)+_0x17bef7+_0xd094f9(0x172)+_0x33a590+_0xd094f9(0x146),logger[_0xd094f9(0x20d)](_0xb5ec71);const _0x225d9f={};_0x225d9f[_0xd094f9(0x1a9)]=WS_EVENTS[_0xd094f9(0x1b6)],_0x225d9f['message']=_0xb5ec71,webSocketUtils[_0xd094f9(0x1f4)](_0x106983,_0x225d9f);const _0x4131d2={};_0x4131d2[_0xd094f9(0x1a9)]=WS_EVENTS[_0xd094f9(0x101)],_0x4131d2[_0xd094f9(0x1fe)]=_0xd094f9(0x1d5)+_0x33a590,webSocketUtils['sendEventToBackend'](_0x106983,_0x4131d2),await webSocketUtils[_0xd094f9(0x1f5)](0x7d0);}catch(_0x2eb643){logger[_0xd094f9(0x234)]('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x2eb643+'\x20\x0a'+JSON[_0xd094f9(0x187)](_0x2eb643[_0xd094f9(0x25b)]));if(_0x23c0e5['CpbTX'](_0x14f716,![]))try{logger[_0xd094f9(0x20d)](_0x23c0e5[_0xd094f9(0x245)]),await _0x23c0e5[_0xd094f9(0x24f)](removeGridComponents,_0x497d69,_0x55b744,_0x340b31,_0x423ea0,_0x224033),await _0x2f2e35[_0xd094f9(0x15f)](_0x497d69,global_registry[_0xd094f9(0x261)]);}catch(_0xc44aaa){logger[_0xd094f9(0x234)](_0xd094f9(0x15c)+_0xc44aaa+'\x20\x0a'+JSON['stringify'](_0xc44aaa[_0xd094f9(0x25b)]));}throw _0x2eb643;}}catch(_0x4dbc37){const _0x19fed6='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x4dbc37+'\x20\x0a'+JSON['stringify'](_0x4dbc37['stack']);if(_0x106983){const _0x26526f={};_0x26526f['type']=WS_EVENTS[_0xd094f9(0x1b6)],_0x26526f[_0xd094f9(0x1fe)]=_0x19fed6,webSocketUtils['sendEventToBackend'](_0x106983,_0x26526f,_0x23c0e5[_0xd094f9(0x119)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x2c4ad6={};_0x2c4ad6[_0xd094f9(0x234)]=_0x19fed6,await _0x23c0e5[_0xd094f9(0xf2)](sendInstrumentationEvent,_0x5cd46d,_0x23c0e5[_0xd094f9(0x199)],messageTypes[_0xd094f9(0x240)],_0x23c0e5['AcThx'],_0x2c4ad6,_0x5cd46d),logger[_0xd094f9(0x234)](_0x19fed6);}process[_0xd094f9(0x249)](0x0);};
@@ -1 +1 @@
1
- function a10_0xc9df(){const _0x196a45=['delete','21408972EcyDds','demandCommand','strict','hlHgI','List\x20Grid\x20resources.','sQKhX','command','50aBfdVM','handler','desc','480yOYpij','2696096FNJYqG','help','1896389VfXgeX','../config/constants','usage','3wCdyCd','1808505PQLmKg','8huCaah','12zrPPlW','21378lAGRwc','commandDir','epilogue','64143mDoWAT','764600mZcroX','builder'];a10_0xc9df=function(){return _0x196a45;};return a10_0xc9df();}function a10_0x5a9b(_0x167db6,_0x5adb78){const _0xc9dfd1=a10_0xc9df();return a10_0x5a9b=function(_0x5a9b81,_0x40b1f4){_0x5a9b81=_0x5a9b81-0x195;let _0x5df8ea=_0xc9dfd1[_0x5a9b81];return _0x5df8ea;},a10_0x5a9b(_0x167db6,_0x5adb78);}const a10_0x1341a7=a10_0x5a9b;(function(_0xd87f4f,_0x204765){const _0x185ac6=a10_0x5a9b,_0x442a23=_0xd87f4f();while(!![]){try{const _0x327f5d=-parseInt(_0x185ac6(0x19a))/0x1*(parseInt(_0x185ac6(0x196))/0x2)+parseInt(_0x185ac6(0x1ae))/0x3*(parseInt(_0x185ac6(0x1a9))/0x4)+-parseInt(_0x185ac6(0x19b))/0x5+-parseInt(_0x185ac6(0x1a8))/0x6*(parseInt(_0x185ac6(0x197))/0x7)+parseInt(_0x185ac6(0x195))/0x8*(-parseInt(_0x185ac6(0x1af))/0x9)+-parseInt(_0x185ac6(0x1a5))/0xa*(parseInt(_0x185ac6(0x1ab))/0xb)+parseInt(_0x185ac6(0x19e))/0xc;if(_0x327f5d===_0x204765)break;else _0x442a23['push'](_0x442a23['shift']());}catch(_0x574733){_0x442a23['push'](_0x442a23['shift']());}}}(a10_0xc9df,0x95acb));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x1341a7(0x1ac));exports[a10_0x1341a7(0x1a4)]='delete',exports[a10_0x1341a7(0x1a7)]=a10_0x1341a7(0x1a2),exports[a10_0x1341a7(0x19c)]=function(_0x277875){const _0x1b238a=a10_0x1341a7,_0x3e3654={};_0x3e3654[_0x1b238a(0x1a1)]='delete_commands',_0x3e3654[_0x1b238a(0x1a3)]=_0x1b238a(0x1aa);const _0x52654d=_0x3e3654;return _0x277875[_0x1b238a(0x1ad)](HELP_HEADER_MESSAGE[_0x1b238a(0x19d)])[_0x1b238a(0x199)](HELP_FOOTER_MESSAGE)[_0x1b238a(0x198)](_0x52654d[_0x1b238a(0x1a1)])[_0x1b238a(0x19f)]()['recommendCommands']()[_0x1b238a(0x1a0)]()[_0x1b238a(0x1aa)](_0x52654d[_0x1b238a(0x1a3)]);},exports[a10_0x1341a7(0x1a6)]=function(_0x1715b9){};
1
+ function a10_0x5d73(){const _0x2889b4=['handler','783854IjcOcf','112510xltldl','6465018QCwppl','delete','strict','2604230KhixJy','delete_commands','usage','recommendCommands','669230frsUzl','List\x20Grid\x20resources.','../config/constants','7528oivHhR','commandDir','desc','99AgmawO','builder','Vcfyx','command','2523657xVvjrh','epilogue','demandCommand','Fyqja','84rpIswK','3339aQcqYd','help'];a10_0x5d73=function(){return _0x2889b4;};return a10_0x5d73();}function a10_0x500d(_0x82a6e3,_0x1f7b9a){const _0x5d73e9=a10_0x5d73();return a10_0x500d=function(_0x500da9,_0x1e0cc0){_0x500da9=_0x500da9-0x125;let _0x24b98d=_0x5d73e9[_0x500da9];return _0x24b98d;},a10_0x500d(_0x82a6e3,_0x1f7b9a);}const a10_0x502b05=a10_0x500d;(function(_0x103d77,_0x497817){const _0x1542e7=a10_0x500d,_0x295bad=_0x103d77();while(!![]){try{const _0x611197=-parseInt(_0x1542e7(0x125))/0x1+-parseInt(_0x1542e7(0x12e))/0x2+-parseInt(_0x1542e7(0x138))/0x3+parseInt(_0x1542e7(0x13c))/0x4*(parseInt(_0x1542e7(0x126))/0x5)+-parseInt(_0x1542e7(0x127))/0x6+-parseInt(_0x1542e7(0x13d))/0x7*(-parseInt(_0x1542e7(0x131))/0x8)+parseInt(_0x1542e7(0x134))/0x9*(parseInt(_0x1542e7(0x12a))/0xa);if(_0x611197===_0x497817)break;else _0x295bad['push'](_0x295bad['shift']());}catch(_0x4c4a48){_0x295bad['push'](_0x295bad['shift']());}}}(a10_0x5d73,0xb6d3d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x502b05(0x130));exports[a10_0x502b05(0x137)]='delete',exports[a10_0x502b05(0x133)]=a10_0x502b05(0x12f),exports[a10_0x502b05(0x135)]=function(_0x4a69d5){const _0x2ddf12=a10_0x502b05,_0x5416c5={};_0x5416c5[_0x2ddf12(0x13b)]=_0x2ddf12(0x12b),_0x5416c5[_0x2ddf12(0x136)]='help';const _0x5ecc9e=_0x5416c5;return _0x4a69d5[_0x2ddf12(0x12c)](HELP_HEADER_MESSAGE[_0x2ddf12(0x128)])[_0x2ddf12(0x139)](HELP_FOOTER_MESSAGE)[_0x2ddf12(0x132)](_0x5ecc9e[_0x2ddf12(0x13b)])[_0x2ddf12(0x13a)]()[_0x2ddf12(0x12d)]()[_0x2ddf12(0x129)]()[_0x2ddf12(0x13e)](_0x5ecc9e[_0x2ddf12(0x136)]);},exports[a10_0x502b05(0x13f)]=function(_0x4a96be){};
@@ -1 +1 @@
1
- const a11_0x295761=a11_0x5c4f;function a11_0x3dc4(){const _0x14e26f=['dkOZq','reconnecting-websocket','AAmnn','zQppq','INusq','replace','yGMMk','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','zUFzL','wIPJw','AdDlc','readNamespace','info','FfEXo','fCOSc','invalid-input','BAiTB','pdPsO','onlyGridInCluster','gOQaV','lvazm','BCieh','278839NzfKMK','../../utils/instrumentationUtils','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','isBrowserstackCluster','default','oLKdW','error','36470JUOVAL','cwell','unauthorised','delete','<PasswordPlaceholder>','catch','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','hAWYb','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','type','ANzJF','Cluster:\x20','invalid-grid-id','eKoSN','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','toLowerCase','got','225IIQODL','handler','UCeln','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','TDqDl','PjVXk','../../utils/createk8sClient','body','grid-id','97846XdNYKY','xUrDD','server-error','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','ERROR','PxGHp','cloudProvider','region','rGojZ','RGGfk','132FSrbVA','YutdY','Successfully\x20deleted\x20the\x20grid','DELETE','xMTzL','skip-tls-cert-verify','AGrah','BUrti','message','string','gridId','/packages/cli/grid/','description','Namespace:\x20','131010YJfaDp','stringify','EarQS','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','CvyOp','heSPI','../../utils/utilityMethods','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','dORgS','hNTkp','stack','PrmWF','RzzQm','gQAhf','kokfK','skGKC','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','clusterSpawnedVia','isClusterPresent','argv','statusCode','8XESipc','ieXuG','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','ARmlp','VzrpS','1290102xRoQmF','deleteCluster','\x22\x20and\x20ID\x20','Ltmob','xOJey','gKQNE','CPufx','help','readFileSync','eXeVJ','dKaHq','maYaw','parse','requestId','ZAnbw','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','username','EXeHL','uBkMf','Failed\x20to\x20delete\x20resources!\x20Error:\x20','EtttA','bkxpA','<UsernamePlaceholder>','VLmxT','clusterId','32rlQyqx','../../utils/userInput','BGNaV','eoWPx','bLQUI','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','yZbSt','usage','warn','EzkgG','exit','xeQnP','MCsOi','command','epilogue','290908GXPxmm','unknown-error','then','564hPgRSR','CFUnR','name','password','qwyii','Browserstack','uuid','Skip\x20insecure\x20cert\x20verification.','nuNZh','clusterRegion','uqqrk','../../config/constants','26953uBGjFt','clusterName','boolean','INFO','jkShJ'];a11_0x3dc4=function(){return _0x14e26f;};return a11_0x3dc4();}function a11_0x5c4f(_0x12505c,_0xd59bd4){const _0x3dc41c=a11_0x3dc4();return a11_0x5c4f=function(_0x5c4ffd,_0x3fca83){_0x5c4ffd=_0x5c4ffd-0x132;let _0xbb0b4a=_0x3dc41c[_0x5c4ffd];return _0xbb0b4a;},a11_0x5c4f(_0x12505c,_0xd59bd4);}(function(_0x4d794e,_0x51e05a){const _0x5f01cd=a11_0x5c4f,_0x22b1ee=_0x4d794e();while(!![]){try{const _0x3a585b=-parseInt(_0x5f01cd(0x1b7))/0x1*(parseInt(_0x5f01cd(0x199))/0x2)+-parseInt(_0x5f01cd(0x180))/0x3+parseInt(_0x5f01cd(0x1a8))/0x4+parseInt(_0x5f01cd(0x134))/0x5*(parseInt(_0x5f01cd(0x158))/0x6)+-parseInt(_0x5f01cd(0x14e))/0x7*(-parseInt(_0x5f01cd(0x17b))/0x8)+-parseInt(_0x5f01cd(0x145))/0x9*(parseInt(_0x5f01cd(0x166))/0xa)+-parseInt(_0x5f01cd(0x1d2))/0xb*(-parseInt(_0x5f01cd(0x1ab))/0xc);if(_0x3a585b===_0x51e05a)break;else _0x22b1ee['push'](_0x22b1ee['shift']());}catch(_0x58f92d){_0x22b1ee['push'](_0x22b1ee['shift']());}}}(a11_0x3dc4,0x3cfa9));const fs=require('fs'),got=require(a11_0x295761(0x144)),{v4:uuidv4}=require(a11_0x295761(0x1b1)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x295761(0x1bd)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x295761(0x1b6)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x295761(0x1d3)),{inputConfirmation}=require(a11_0x295761(0x19a)),{createK8sClient}=require(a11_0x295761(0x14b)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x295761(0x16c)),webSocketUtils=require('../../utils/webSocketUtils');exports[a11_0x295761(0x1a6)]='grid',exports['desc']='Delete\x20an\x20Automation\x20grid.',exports['builder']=function(_0x47a222){const _0x490155=a11_0x295761,_0xb0a1fa={};_0xb0a1fa[_0x490155(0x15c)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0xb0a1fa[_0x490155(0x197)]=_0x490155(0x161),_0xb0a1fa[_0x490155(0x1ac)]=_0x490155(0x1b2),_0xb0a1fa['BMhVK']=_0x490155(0x1b9),_0xb0a1fa[_0x490155(0x191)]=_0x490155(0x187);const _0x5c699e=_0xb0a1fa,_0x1ea887={};_0x1ea887[_0x490155(0x164)]=_0x5c699e[_0x490155(0x15c)],_0x1ea887[_0x490155(0x13d)]=_0x5c699e[_0x490155(0x197)];const _0x31565d={};_0x31565d[_0x490155(0x164)]=_0x5c699e[_0x490155(0x1ac)],_0x31565d['type']=_0x5c699e['BMhVK'],_0x31565d[_0x490155(0x1d6)]=![];const _0x216be0={};return _0x216be0[_0x490155(0x14d)]=_0x1ea887,_0x216be0[_0x490155(0x15d)]=_0x31565d,_0x47a222[_0x490155(0x1a0)](HELP_HEADER_MESSAGE[_0x490155(0x137)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x216be0)[_0x490155(0x187)](_0x5c699e['EXeHL'])['argv'];},exports[a11_0x295761(0x146)]=async function(_0x5e7621){const _0x1bcd2c=a11_0x295761,_0xde35d3={'oLKdW':_0x1bcd2c(0x15a),'fCOSc':_0x1bcd2c(0x1d4),'uqqrk':_0x1bcd2c(0x17d),'qhOrh':function(_0x54571e,_0x369c1f){return _0x54571e!==_0x369c1f;},'VzrpS':_0x1bcd2c(0x1c0),'EtttA':function(_0x4f98cd,_0x35221c){return _0x4f98cd!==_0x35221c;},'ClqzF':_0x1bcd2c(0x1bc),'ARmlp':'Pass\x20the\x20ID\x20of\x20the\x20Grid','hNTkp':'string','CvyOp':_0x1bcd2c(0x1b2),'FfEXo':_0x1bcd2c(0x1b9),'PxGHp':'help','uBkMf':function(_0x3067fc){return _0x3067fc();},'kPCGj':function(_0x570d7f){return _0x570d7f();},'xeQnP':function(_0x1f2e41,_0x2f3b72){return _0x1f2e41===_0x2f3b72;},'AGrah':'bkUQp','eKoSN':_0x1bcd2c(0x174),'luMEM':_0x1bcd2c(0x142),'RzzQm':function(_0x45a488,_0x212c1f,_0xaade2,_0x581fa6,_0x15181,_0x870360,_0x41b9ac){return _0x45a488(_0x212c1f,_0xaade2,_0x581fa6,_0x15181,_0x870360,_0x41b9ac);},'BCieh':'delete-grid-called','eoWPx':'init-not-called','bkxpA':function(_0x50e6c4,_0x1d1674,_0x1cb82c,_0x1181a3,_0x557424,_0x29f81e,_0x2aabb1){return _0x50e6c4(_0x1d1674,_0x1cb82c,_0x1181a3,_0x557424,_0x29f81e,_0x2aabb1);},'RGGfk':'gDZsV','gOQaV':_0x1bcd2c(0x18e),'pdPsO':function(_0x3390d3){return _0x3390d3();},'nuNZh':function(_0x663761,_0x561de8,_0x38b6a,_0x5d8653){return _0x663761(_0x561de8,_0x38b6a,_0x5d8653);},'lvazm':function(_0x43df71,_0xd7bbb3){return _0x43df71===_0xd7bbb3;},'AAmnn':_0x1bcd2c(0x1b0),'PjVXk':function(_0x1f7029,_0x179adf){return _0x1f7029===_0x179adf;},'CPufx':_0x1bcd2c(0x1bf),'OpgFW':_0x1bcd2c(0x1af),'BUrti':function(_0x31ae45,_0x252166){return _0x31ae45(_0x252166);},'dKaHq':function(_0x393103,_0x2fb541){return _0x393103===_0x2fb541;},'ieXuG':function(_0x43fce1,_0x1bf220){return _0x43fce1===_0x1bf220;},'EzkgG':function(_0xbf6246,_0xe04571){return _0xbf6246!==_0xe04571;},'CUpmL':_0x1bcd2c(0x13e),'yGMMk':'asljE','zUFzL':_0x1bcd2c(0x18f),'BIdOu':function(_0xa21448,_0x5c0567,_0x9fcd30,_0x56657b,_0x58e7fb,_0x47474d,_0x1f450b){return _0xa21448(_0x5c0567,_0x9fcd30,_0x56657b,_0x58e7fb,_0x47474d,_0x1f450b);},'xOJey':_0x1bcd2c(0x1cb),'heSPI':function(_0xcfb8c2,_0x4cd311){return _0xcfb8c2===_0x4cd311;},'wIPJw':_0x1bcd2c(0x19d),'MCsOi':_0x1bcd2c(0x173),'rGojZ':_0x1bcd2c(0x196),'dORgS':_0x1bcd2c(0x138),'mCXMY':function(_0x1b272f,_0x2fa00c,_0x59e5ca,_0x1ca4b9,_0x50e78a,_0x5a9b0b,_0xf4d755){return _0x1b272f(_0x2fa00c,_0x59e5ca,_0x1ca4b9,_0x50e78a,_0x5a9b0b,_0xf4d755);},'YvQUE':function(_0x282a8a,_0x5130ce){return _0x282a8a(_0x5130ce);},'Ltmob':function(_0x42289e,_0x54b78c,_0x44d447){return _0x42289e(_0x54b78c,_0x44d447);},'eXeVJ':function(_0x1b7fdb,_0x3c01af,_0x4b03a6,_0x3c81ba,_0xa00f56,_0x3a4047){return _0x1b7fdb(_0x3c01af,_0x4b03a6,_0x3c81ba,_0xa00f56,_0x3a4047);},'UlXxW':function(_0x19e8f9,_0x145158){return _0x19e8f9!==_0x145158;},'BAiTB':_0x1bcd2c(0x149),'cwell':_0x1bcd2c(0x185),'tmqla':_0x1bcd2c(0x14f),'UCeln':_0x1bcd2c(0x168),'skGKC':_0x1bcd2c(0x15b),'hAWYb':function(_0x3bfc4d,_0x25bd92){return _0x3bfc4d!==_0x25bd92;},'PrmWF':function(_0x1c1a1c,_0x2c1103){return _0x1c1a1c!==_0x2c1103;},'BGNaV':_0x1bcd2c(0x150),'NVMuE':function(_0x473b52,_0x144a3c){return _0x473b52===_0x144a3c;},'hjPOP':_0x1bcd2c(0x1c3),'jkShJ':function(_0x3dc6c4,_0x265c24,_0x1e503c,_0x538070,_0x2ba55e,_0x457e63,_0x3323ef){return _0x3dc6c4(_0x265c24,_0x1e503c,_0x538070,_0x2ba55e,_0x457e63,_0x3323ef);},'YutdY':_0x1bcd2c(0x136),'AdDlc':function(_0x26c2f8,_0x4467d2){return _0x26c2f8===_0x4467d2;},'maYaw':_0x1bcd2c(0x140),'yZbSt':_0x1bcd2c(0x1a9)};try{global_registry[_0x1bcd2c(0x18d)]=_0xde35d3[_0x1bcd2c(0x192)](uuidv4);!fs['existsSync'](_0xde35d3['kPCGj'](getCredentialsPath))&&(_0xde35d3[_0x1bcd2c(0x1a4)](_0xde35d3[_0x1bcd2c(0x15e)],_0xde35d3[_0x1bcd2c(0x141)])?_0x2c07c3=_0x1bcd2c(0x19e)+_0x52f3d8[_0x1bcd2c(0x1ad)]+'\x22\x20and\x20ID\x20'+_0x2a6b1d['id']+_0x1bcd2c(0x148)+_0xf61b64[_0x1bcd2c(0x1b8)]+'\x22\x20with\x20ID\x20'+_0x5c0ce5[_0x1bcd2c(0x198)]+_0x1bcd2c(0x169):(console[_0x1bcd2c(0x133)](_0xde35d3['luMEM']),await _0xde35d3[_0x1bcd2c(0x172)](sendInstrumentationEvent,_0x5e7621,_0xde35d3[_0x1bcd2c(0x1d1)],messageTypes[_0x1bcd2c(0x152)],_0xde35d3[_0x1bcd2c(0x19c)],null,_0x5e7621),process['exit'](0x1)));_0xde35d3[_0x1bcd2c(0x195)](sendInstrumentationEvent,_0x5e7621,_0xde35d3['BCieh'],messageTypes[_0x1bcd2c(0x1ba)],null,null,_0x5e7621);!_0x5e7621['gridId']&&(_0xde35d3['xeQnP'](_0xde35d3[_0x1bcd2c(0x157)],_0xde35d3[_0x1bcd2c(0x1cf)])?(_0x298a34['info'](_0xde35d3[_0x1bcd2c(0x132)]),_0x3e1051[_0x1bcd2c(0x1a3)](0x0)):(console['error'](_0xde35d3[_0x1bcd2c(0x1ca)]),process[_0x1bcd2c(0x1a3)](0x1)));const _0xa73b75=JSON[_0x1bcd2c(0x18c)](fs[_0x1bcd2c(0x188)](_0xde35d3[_0x1bcd2c(0x1cd)](getCredentialsPath))),[_0x319294,_0xdbbc2f]=await _0xde35d3[_0x1bcd2c(0x1b3)](getGridDetails,_0xa73b75['Browserstack']['username'],_0xa73b75[_0x1bcd2c(0x1b0)][_0x1bcd2c(0x1ae)],_0x5e7621[_0x1bcd2c(0x162)]);if(_0xdbbc2f){const _0x38f9cf=_0xdbbc2f['info'];let _0x24daff=_0x1bcd2c(0x19e)+_0x38f9cf[_0x1bcd2c(0x1ad)]+_0x1bcd2c(0x182)+_0x38f9cf['id']+_0x1bcd2c(0x169);_0xdbbc2f[_0x1bcd2c(0x1ce)]&&_0xde35d3[_0x1bcd2c(0x1d0)](_0xdbbc2f[_0x1bcd2c(0x177)],_0xde35d3[_0x1bcd2c(0x1be)])&&(_0xde35d3[_0x1bcd2c(0x14a)](_0xde35d3[_0x1bcd2c(0x186)],_0xde35d3['OpgFW'])?(_0x1077e8[_0x1bcd2c(0x1a1)](_0x1bcd2c(0x165)+_0x46a970+_0x1bcd2c(0x151)),_0x19ce95=![]):_0x24daff='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x38f9cf['name']+_0x1bcd2c(0x182)+_0x38f9cf['id']+_0x1bcd2c(0x148)+_0x38f9cf[_0x1bcd2c(0x1b8)]+'\x22\x20with\x20ID\x20'+_0x38f9cf[_0x1bcd2c(0x198)]+_0x1bcd2c(0x169));const _0x4fee45=await _0xde35d3[_0x1bcd2c(0x15f)](inputConfirmation,_0x24daff);(_0xde35d3[_0x1bcd2c(0x18a)](_0x4fee45,undefined)||_0xde35d3['PjVXk'](_0x4fee45,null)||!(_0xde35d3[_0x1bcd2c(0x17c)](_0x4fee45[_0x1bcd2c(0x143)](),'y')||_0xde35d3[_0x1bcd2c(0x18a)](_0x4fee45[_0x1bcd2c(0x143)](),'n')))&&(_0xde35d3[_0x1bcd2c(0x1a2)](_0xde35d3['CUpmL'],_0xde35d3[_0x1bcd2c(0x1c2)])?(console[_0x1bcd2c(0x133)](_0xde35d3[_0x1bcd2c(0x1c4)]),await _0xde35d3['BIdOu'](sendInstrumentationEvent,_0x5e7621,_0xde35d3[_0x1bcd2c(0x1d1)],messageTypes[_0x1bcd2c(0x152)],_0xde35d3[_0x1bcd2c(0x184)],null,_0x5e7621),process[_0x1bcd2c(0x1a3)](0x1)):(_0x395211['error'](_0xde35d3[_0x1bcd2c(0x1ca)]),_0x17f4fe[_0x1bcd2c(0x1a3)](0x1)));_0xde35d3[_0x1bcd2c(0x16b)](_0x4fee45[_0x1bcd2c(0x143)](),'n')&&(_0xde35d3['dKaHq'](_0xde35d3[_0x1bcd2c(0x1c5)],_0xde35d3[_0x1bcd2c(0x1a5)])?_0x3553dc[_0x1bcd2c(0x1a1)](_0xde35d3[_0x1bcd2c(0x1b5)]):process[_0x1bcd2c(0x1a3)](0x0));const _0x331b48=WS_ENDPOINT[_0x1bcd2c(0x1c1)](_0xde35d3[_0x1bcd2c(0x156)],_0xa73b75[_0x1bcd2c(0x1b0)][_0x1bcd2c(0x190)])[_0x1bcd2c(0x1c1)](_0xde35d3[_0x1bcd2c(0x16e)],_0xa73b75['Browserstack'][_0x1bcd2c(0x1ae)]),_0x2a6f3c={};_0x2a6f3c['WebSocket']=ws,_0x2a6f3c['connectionTimeout']=0x36ee80;const _0x890b6f=new ReconnectingWebSocket(_0x331b48,[],_0x2a6f3c);global_registry[_0x1bcd2c(0x1b4)]=_0x38f9cf['region'];const _0x38a983=_0x38f9cf[_0x1bcd2c(0x154)],_0x4371ec=await _0xde35d3['mCXMY'](getCloudProviderObject,_0x38a983,_0x38f9cf['clusterName'],_0x38f9cf[_0x1bcd2c(0x1ad)],_0x890b6f,webSocketUtils,_0x5e7621),_0x2aaa5c=await _0x4371ec[_0x1bcd2c(0x178)]();if(_0x2aaa5c){const _0x1ded34=_0xde35d3['YvQUE'](kebabCase,_0x38f9cf[_0x1bcd2c(0x1ad)]),[_0x28dd7d,_0x542797,_0x474dd2,_0x520532,_0x9815a7,_0x1090c9]=await _0xde35d3[_0x1bcd2c(0x183)](createK8sClient,_0x4371ec,_0x5e7621['skipTlsCertVerify']);let _0x2260f6=!![];const _0x539f10={};_0x539f10['name']=_0x1ded34,await _0x28dd7d[_0x1bcd2c(0x1c7)](_0x539f10)[_0x1bcd2c(0x1aa)](_0x389605=>{const _0xbc8f9b=_0x1bcd2c;_0xde35d3['qhOrh'](_0xde35d3[_0xbc8f9b(0x17f)],_0xde35d3[_0xbc8f9b(0x17f)])?_0x173bd6[_0xbc8f9b(0x1a3)](0x0):logger[_0xbc8f9b(0x1c8)](_0xbc8f9b(0x165)+_0x1ded34+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion');})[_0x1bcd2c(0x139)](_0x252f00=>{const _0x280261=_0x1bcd2c;_0xde35d3[_0x280261(0x194)](_0xde35d3['ClqzF'],_0xde35d3['ClqzF'])?_0x4eda85[_0x280261(0x1c8)]('Namespace:\x20'+_0x531ac4+_0x280261(0x176)):(logger[_0x280261(0x1a1)](_0x280261(0x165)+_0x1ded34+_0x280261(0x151)),_0x2260f6=![]);});if(_0x2260f6){await _0xde35d3[_0x1bcd2c(0x189)](removeGridComponents,_0x28dd7d,_0x542797,_0x474dd2,_0x520532,_0x1ded34);if(_0xdbbc2f[_0x1bcd2c(0x1ce)]){const _0x13c42f=await _0x4371ec[_0x1bcd2c(0x1d5)]();if(_0x13c42f){if(_0xde35d3['UlXxW'](_0xde35d3[_0x1bcd2c(0x1cc)],_0xde35d3[_0x1bcd2c(0x135)]))await _0x4371ec[_0x1bcd2c(0x181)](_0x28dd7d,_0x38f9cf[_0x1bcd2c(0x155)]);else{const _0x18405f={};_0x18405f[_0x1bcd2c(0x164)]=_0xde35d3[_0x1bcd2c(0x17e)],_0x18405f[_0x1bcd2c(0x13d)]=_0xde35d3[_0x1bcd2c(0x16f)];const _0x2b4cda={};_0x2b4cda['description']=_0xde35d3[_0x1bcd2c(0x16a)],_0x2b4cda['type']=_0xde35d3[_0x1bcd2c(0x1c9)],_0x2b4cda['default']=![];const _0x400cfc={};return _0x400cfc[_0x1bcd2c(0x14d)]=_0x18405f,_0x400cfc['skip-tls-cert-verify']=_0x2b4cda,_0x24d20d[_0x1bcd2c(0x1a0)](_0x299016[_0x1bcd2c(0x137)])[_0x1bcd2c(0x1a7)](_0xd2896e)['options'](_0x400cfc)[_0x1bcd2c(0x187)](_0xde35d3[_0x1bcd2c(0x153)])[_0x1bcd2c(0x179)];}}else _0xde35d3[_0x1bcd2c(0x194)](_0xde35d3['tmqla'],_0xde35d3[_0x1bcd2c(0x147)])?logger[_0x1bcd2c(0x1a1)](_0x1bcd2c(0x13f)+_0x38f9cf[_0x1bcd2c(0x1b8)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):_0x3a8ee2['warn'](_0x1bcd2c(0x13f)+_0x2bf57e[_0x1bcd2c(0x1b8)]+_0x1bcd2c(0x16d));}}}else logger[_0x1bcd2c(0x1a1)](_0xde35d3[_0x1bcd2c(0x1b5)]);const _0x1d7ca8='https://'+AG_API_URL+_0x1bcd2c(0x163)+_0x5e7621[_0x1bcd2c(0x162)],_0x3c1967={'method':_0xde35d3[_0x1bcd2c(0x175)],'headers':_0xde35d3['Ltmob'](getAuthHeader,_0xa73b75[_0x1bcd2c(0x1b0)][_0x1bcd2c(0x190)],_0xa73b75[_0x1bcd2c(0x1b0)][_0x1bcd2c(0x1ae)]),'throwHttpErrors':![]},_0x41b179=await _0xde35d3[_0x1bcd2c(0x183)](got,_0x1d7ca8,_0x3c1967);_0xde35d3[_0x1bcd2c(0x13b)](_0x41b179,null)&&_0xde35d3[_0x1bcd2c(0x171)](_0x41b179,undefined)&&_0xde35d3[_0x1bcd2c(0x18a)](_0x41b179[_0x1bcd2c(0x17a)],0xc8)&&(logger[_0x1bcd2c(0x1c8)](_0xde35d3['oLKdW']),process['exit'](0x0)),logger['error'](_0x1bcd2c(0x13c)+_0x41b179[_0x1bcd2c(0x14c)]),await _0xde35d3[_0x1bcd2c(0x195)](sendInstrumentationEvent,_0x5e7621,_0xde35d3[_0x1bcd2c(0x1d1)],messageTypes[_0x1bcd2c(0x152)],_0xde35d3[_0x1bcd2c(0x19b)],_0x319294,_0x5e7621),process[_0x1bcd2c(0x1a3)](0x1);}_0xde35d3['NVMuE'](_0x319294[_0x1bcd2c(0x17a)],0x191)&&(logger['error'](_0xde35d3['hjPOP']),await _0xde35d3[_0x1bcd2c(0x1bb)](sendInstrumentationEvent,_0x5e7621,_0xde35d3[_0x1bcd2c(0x1d1)],messageTypes[_0x1bcd2c(0x152)],_0xde35d3[_0x1bcd2c(0x159)],null,_0x5e7621),process[_0x1bcd2c(0x1a3)](0x1)),_0xde35d3[_0x1bcd2c(0x1c6)](_0x319294['statusCode'],0x190)&&(logger['error'](JSON[_0x1bcd2c(0x18c)](_0x319294[_0x1bcd2c(0x14c)])[_0x1bcd2c(0x160)]),await _0xde35d3[_0x1bcd2c(0x195)](sendInstrumentationEvent,_0x5e7621,_0xde35d3[_0x1bcd2c(0x1d1)],messageTypes[_0x1bcd2c(0x152)],_0xde35d3[_0x1bcd2c(0x18b)],null,_0x5e7621),process[_0x1bcd2c(0x1a3)](0x1)),logger[_0x1bcd2c(0x133)](_0x1bcd2c(0x13a)+JSON[_0x1bcd2c(0x167)](_0x319294)),await _0xde35d3[_0x1bcd2c(0x172)](sendInstrumentationEvent,_0x5e7621,_0xde35d3[_0x1bcd2c(0x1d1)],messageTypes[_0x1bcd2c(0x152)],_0xde35d3['BGNaV'],_0x319294,_0x5e7621),process[_0x1bcd2c(0x1a3)](0x1);}catch(_0x177e7f){logger[_0x1bcd2c(0x133)](_0x1bcd2c(0x193)+_0x177e7f[_0x1bcd2c(0x170)]),await _0xde35d3[_0x1bcd2c(0x172)](sendInstrumentationEvent,_0x5e7621,_0xde35d3[_0x1bcd2c(0x1d1)],messageTypes[_0x1bcd2c(0x152)],_0xde35d3[_0x1bcd2c(0x19f)],_0x177e7f,_0x5e7621),process[_0x1bcd2c(0x1a3)](0x1);}};
1
+ function a11_0x2ad2(){const _0x3b8571=['njHdM','error','../../utils/webSocketUtils','wkiLv','statusCode','warn','bzRMt','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','\x22\x20and\x20ID\x20','bBPRt','<PasswordPlaceholder>','replace','deleteCluster','gridId','desc','reconnecting-websocket','dViqx','password','../../cloudproviders/utils','ERROR','kiNCb','xTGwy','boolean','YxNrw','clusterName','type','Sxhoh','Cluster:\x20','348pDfFzB','Fnimg','bQqSH','clusterId','invalid-grid-id','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','server-error','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','CfYme','xcvwR','32ivSswc','nMWpX','dFong','../../config/constants','\x22\x20with\x20ID\x20','string','mSGzm','hxyKP','sEDkN','4eFLOMD','info','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','pKRFm','Successfully\x20deleted\x20the\x20grid','wOKjH','iAuEL','nXvyT','uuid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','fSZmr','PxkEu','help','VuzjI','readFileSync','then','iwPEE','ieTlp','stack','clusterRegion','stringify','6HqpOeg','tiOjZ','PdgYs','DELETE','isBrowserstackCluster','<UsernamePlaceholder>','VVxYT','378171YOfdaK','TKgah','yWfsb','822041ATqdhU','116637nGsglH','delete','skip-tls-cert-verify','cloudProvider','oWRWN','6909007LGqMrP','argv','body','Pass\x20the\x20ID\x20of\x20the\x20Grid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','unauthorised','description','pbuZx','HzsGV','TppCb','tOmWE','username','got','KqgiN','Uldyt','hLJpA','Namespace:\x20','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','248XecbCe','catch','../../utils/gridComponents','FCfcv','SLGKp','name','bYEdo','25982YuyEVK','JlfCa','FyllY','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','epilogue','options','5519615lmybsB','usage','nzQjO','OHWln','EIGPq','Vvcou','init-not-called','Browserstack','OeQKD','LPIOR','existsSync','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','grid','zWGhf','Woxpg','readNamespace','eXeHi','exit','handler','STzvK','region','parse','Delete\x20an\x20Automation\x20grid.','skipTlsCertVerify','command','XPNwp','10495370ITyBOL','isClusterPresent','invalid-input','clusterSpawnedVia','../../utils/createk8sClient','toLowerCase','/packages/cli/grid/','WGcfG','../../utils/instrumentationUtils','ZOlsw','grid-id','VcVJk','PZxxJ','https://','YYMEq','INFO','Rpirj'];a11_0x2ad2=function(){return _0x3b8571;};return a11_0x2ad2();}const a11_0x58c564=a11_0x124a;(function(_0x2214ed,_0xddc15c){const _0x2d4e05=a11_0x124a,_0x11995c=_0x2214ed();while(!![]){try{const _0x29fa76=-parseInt(_0x2d4e05(0x21d))/0x1+parseInt(_0x2d4e05(0x1d6))/0x2*(parseInt(_0x2d4e05(0x1ff))/0x3)+parseInt(_0x2d4e05(0x1df))/0x4*(parseInt(_0x2d4e05(0x223))/0x5)+-parseInt(_0x2d4e05(0x1f4))/0x6*(-parseInt(_0x2d4e05(0x204))/0x7)+parseInt(_0x2d4e05(0x216))/0x8*(parseInt(_0x2d4e05(0x1fb))/0x9)+-parseInt(_0x2d4e05(0x23d))/0xa+parseInt(_0x2d4e05(0x1fe))/0xb*(-parseInt(_0x2d4e05(0x26a))/0xc);if(_0x29fa76===_0xddc15c)break;else _0x11995c['push'](_0x11995c['shift']());}catch(_0x140325){_0x11995c['push'](_0x11995c['shift']());}}}(a11_0x2ad2,0xbcafb));const fs=require('fs'),got=require(a11_0x58c564(0x210)),{v4:uuidv4}=require(a11_0x58c564(0x1e7)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x58c564(0x25d)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x58c564(0x1d9)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x58c564(0x260)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x58c564(0x218)),{sendInstrumentationEvent}=require(a11_0x58c564(0x245)),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x58c564(0x241)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x58c564(0x250));function a11_0x124a(_0x648ead,_0x4ac8fd){const _0x2ad20c=a11_0x2ad2();return a11_0x124a=function(_0x124a40,_0x2c7ced){_0x124a40=_0x124a40-0x1d5;let _0x1d2ebe=_0x2ad20c[_0x124a40];return _0x1d2ebe;},a11_0x124a(_0x648ead,_0x4ac8fd);}exports[a11_0x58c564(0x23b)]=a11_0x58c564(0x22f),exports[a11_0x58c564(0x25c)]=a11_0x58c564(0x239),exports['builder']=function(_0x3abbde){const _0x422360=a11_0x58c564,_0x3ad7f9={};_0x3ad7f9['leDlt']=_0x422360(0x207),_0x3ad7f9[_0x422360(0x26b)]=_0x422360(0x1db),_0x3ad7f9[_0x422360(0x1e6)]='Skip\x20insecure\x20cert\x20verification.',_0x3ad7f9[_0x422360(0x1de)]='boolean',_0x3ad7f9[_0x422360(0x1fd)]='help';const _0xcceba7=_0x3ad7f9,_0x234092={};_0x234092[_0x422360(0x20a)]=_0xcceba7['leDlt'],_0x234092[_0x422360(0x267)]=_0xcceba7[_0x422360(0x26b)];const _0xbb1702={};_0xbb1702['description']=_0xcceba7[_0x422360(0x1e6)],_0xbb1702[_0x422360(0x267)]=_0xcceba7[_0x422360(0x1de)],_0xbb1702['default']=![];const _0x2a2ad1={};return _0x2a2ad1['grid-id']=_0x234092,_0x2a2ad1[_0x422360(0x201)]=_0xbb1702,_0x3abbde[_0x422360(0x224)](HELP_HEADER_MESSAGE[_0x422360(0x200)])[_0x422360(0x221)](HELP_FOOTER_MESSAGE)[_0x422360(0x222)](_0x2a2ad1)[_0x422360(0x1eb)](_0xcceba7[_0x422360(0x1fd)])[_0x422360(0x205)];},exports[a11_0x58c564(0x235)]=async function(_0x4dba6c){const _0x4cae99=a11_0x58c564,_0x2a5792={'nMWpX':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','WGcfG':_0x4cae99(0x1e3),'bYEdo':function(_0xf13ea5,_0x1b750d){return _0xf13ea5===_0x1b750d;},'ZOlsw':'ZDyun','xcvwR':_0x4cae99(0x24d),'ieTlp':_0x4cae99(0x20c),'PZxxJ':'Pass\x20the\x20ID\x20of\x20the\x20Grid','bQqSH':'string','YaCPi':'Skip\x20insecure\x20cert\x20verification.','tOmWE':_0x4cae99(0x264),'XDZFh':'help','dFong':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','VuzjI':function(_0x1798f5){return _0x1798f5();},'FCfcv':_0x4cae99(0x265),'TppCb':_0x4cae99(0x208),'FyllY':function(_0xdb9d50,_0x81f8c,_0x3b4559,_0x5a0e74,_0x2431db,_0x4e20e8,_0x56a863){return _0xdb9d50(_0x81f8c,_0x3b4559,_0x5a0e74,_0x2431db,_0x4e20e8,_0x56a863);},'bBPRt':'delete-grid-called','dViqx':_0x4cae99(0x229),'fSZmr':function(_0x2410b4,_0xc2a831,_0x302470,_0x4afcf6,_0x43a09b,_0x9e89df,_0x389e74){return _0x2410b4(_0xc2a831,_0x302470,_0x4afcf6,_0x43a09b,_0x9e89df,_0x389e74);},'LPiDI':function(_0x25a4a4,_0x28a2c5){return _0x25a4a4!==_0x28a2c5;},'OHWln':_0x4cae99(0x24e),'bzRMt':function(_0x2a3026){return _0x2a3026();},'wkiLv':function(_0x4a71ff,_0x11a823,_0x4d9f07,_0x56a8c6){return _0x4a71ff(_0x11a823,_0x4d9f07,_0x56a8c6);},'tiOjZ':function(_0x3dee63,_0x501718){return _0x3dee63===_0x501718;},'ZpJrG':_0x4cae99(0x22a),'JlfCa':_0x4cae99(0x1fc),'CvxrB':'WDfzO','zWGhf':function(_0x3c18ca,_0x46e462){return _0x3c18ca(_0x46e462);},'Sxhoh':function(_0x4e0909,_0x4132c1){return _0x4e0909===_0x4132c1;},'eXeHi':function(_0x579096,_0x141509){return _0x579096!==_0x141509;},'VcVJk':_0x4cae99(0x203),'tIVAU':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','SLGKp':function(_0x4cb5f3,_0x74466b,_0x3e76df,_0x35d94a,_0x175e17,_0x462878,_0x8ef334){return _0x4cb5f3(_0x74466b,_0x3e76df,_0x35d94a,_0x175e17,_0x462878,_0x8ef334);},'iwPEE':_0x4cae99(0x23f),'wOKjH':function(_0x218f62,_0x3b0071){return _0x218f62===_0x3b0071;},'OeQKD':_0x4cae99(0x1f6),'DSCgN':_0x4cae99(0x1f9),'Uldyt':_0x4cae99(0x258),'VVxYT':function(_0x14cac4,_0xd2c70a,_0x4d3bc1){return _0x14cac4(_0xd2c70a,_0x4d3bc1);},'CfYme':function(_0x210d95,_0x44e29a,_0x2d224a,_0x4fd37e,_0x5871e3,_0x2592a4){return _0x210d95(_0x44e29a,_0x2d224a,_0x4fd37e,_0x5871e3,_0x2592a4);},'pbuZx':function(_0x30f605,_0x4b3912){return _0x30f605===_0x4b3912;},'YYMEq':_0x4cae99(0x262),'KqgiN':'eKfoH','laKZZ':_0x4cae99(0x23c),'Woxpg':'bgHRg','hLJpA':_0x4cae99(0x1f7),'Vvcou':function(_0xa07cb5,_0x1dcd5a,_0x35a9c8){return _0xa07cb5(_0x1dcd5a,_0x35a9c8);},'UFHtE':function(_0x5840a2,_0x5a93b6){return _0x5840a2!==_0x5a93b6;},'LPIOR':function(_0x2a09a4,_0x254809){return _0x2a09a4!==_0x254809;},'nzQjO':function(_0x5c4f50,_0xd1eb1f){return _0x5c4f50===_0xd1eb1f;},'yhitV':function(_0x2ad29b,_0x5f2a4b,_0xad7fda,_0x129862,_0x151af1,_0x2a8b9d,_0x597401){return _0x2ad29b(_0x5f2a4b,_0xad7fda,_0x129862,_0x151af1,_0x2a8b9d,_0x597401);},'PxkEu':_0x4cae99(0x270),'hxyKP':function(_0x43cf50,_0x13fb89){return _0x43cf50===_0x13fb89;},'EIGPq':_0x4cae99(0x26f),'xTGwy':function(_0x3b94e8,_0x3f0984,_0x33a6bd,_0x810e91,_0x15c0a6,_0x47c315,_0x3db7b3){return _0x3b94e8(_0x3f0984,_0x33a6bd,_0x810e91,_0x15c0a6,_0x47c315,_0x3db7b3);},'pKRFm':_0x4cae99(0x209),'mSGzm':function(_0x4a1f75,_0x5d0b4b){return _0x4a1f75===_0x5d0b4b;},'iAuEL':function(_0x5628f2,_0x113ab9,_0xa1ac26,_0x23004f,_0x23c1fe,_0x9355a7,_0x2f78be){return _0x5628f2(_0x113ab9,_0xa1ac26,_0x23004f,_0x23c1fe,_0x9355a7,_0x2f78be);},'STzvK':_0x4cae99(0x26e),'xxfxK':'unknown-error'};try{global_registry['requestId']=_0x2a5792[_0x4cae99(0x1ec)](uuidv4);!fs[_0x4cae99(0x22d)](_0x2a5792[_0x4cae99(0x1ec)](getCredentialsPath))&&(_0x2a5792[_0x4cae99(0x21c)](_0x2a5792[_0x4cae99(0x219)],_0x2a5792[_0x4cae99(0x219)])?(console[_0x4cae99(0x24f)](_0x2a5792[_0x4cae99(0x20d)]),await _0x2a5792[_0x4cae99(0x21f)](sendInstrumentationEvent,_0x4dba6c,_0x2a5792[_0x4cae99(0x257)],messageTypes[_0x4cae99(0x261)],_0x2a5792[_0x4cae99(0x25e)],null,_0x4dba6c),process['exit'](0x1)):_0x202e88['warn'](_0x2a5792[_0x4cae99(0x1d7)]));_0x2a5792[_0x4cae99(0x1e9)](sendInstrumentationEvent,_0x4dba6c,_0x2a5792['bBPRt'],messageTypes[_0x4cae99(0x24c)],null,null,_0x4dba6c);!_0x4dba6c[_0x4cae99(0x25b)]&&(_0x2a5792['LPiDI'](_0x2a5792[_0x4cae99(0x226)],_0x2a5792[_0x4cae99(0x226)])?_0x2d72a3['exit'](0x0):(console[_0x4cae99(0x24f)](_0x2a5792['dFong']),process[_0x4cae99(0x234)](0x1)));const _0x1452c1=JSON[_0x4cae99(0x238)](fs[_0x4cae99(0x1ed)](_0x2a5792[_0x4cae99(0x254)](getCredentialsPath))),[_0x300840,_0x514363]=await _0x2a5792[_0x4cae99(0x251)](getGridDetails,_0x1452c1['Browserstack'][_0x4cae99(0x20f)],_0x1452c1['Browserstack'][_0x4cae99(0x25f)],_0x4dba6c[_0x4cae99(0x25b)]);if(_0x514363){const _0x12bb7d=_0x514363[_0x4cae99(0x1e0)];let _0x40f573=_0x4cae99(0x255)+_0x12bb7d[_0x4cae99(0x21b)]+'\x22\x20and\x20ID\x20'+_0x12bb7d['id']+_0x4cae99(0x272);_0x514363['onlyGridInCluster']&&_0x2a5792[_0x4cae99(0x1f5)](_0x514363[_0x4cae99(0x240)],_0x2a5792['ZpJrG'])&&(_0x2a5792['bYEdo'](_0x2a5792[_0x4cae99(0x21e)],_0x2a5792['CvxrB'])?_0x1df627[_0x4cae99(0x253)](_0x4cae99(0x269)+_0x5bd9b3[_0x4cae99(0x266)]+_0x4cae99(0x1e1)):_0x40f573=_0x4cae99(0x255)+_0x12bb7d[_0x4cae99(0x21b)]+'\x22\x20and\x20ID\x20'+_0x12bb7d['id']+_0x4cae99(0x22e)+_0x12bb7d['clusterName']+_0x4cae99(0x1da)+_0x12bb7d[_0x4cae99(0x26d)]+_0x4cae99(0x272));const _0x1ef2f9=await _0x2a5792[_0x4cae99(0x230)](inputConfirmation,_0x40f573);(_0x2a5792['tiOjZ'](_0x1ef2f9,undefined)||_0x2a5792[_0x4cae99(0x21c)](_0x1ef2f9,null)||!(_0x2a5792[_0x4cae99(0x268)](_0x1ef2f9[_0x4cae99(0x242)](),'y')||_0x2a5792[_0x4cae99(0x1f5)](_0x1ef2f9[_0x4cae99(0x242)](),'n')))&&(_0x2a5792[_0x4cae99(0x233)](_0x2a5792[_0x4cae99(0x248)],_0x2a5792['VcVJk'])?_0x404f40[_0x4cae99(0x1e0)](_0x4cae99(0x214)+_0x7fb82f+_0x4cae99(0x220)):(console[_0x4cae99(0x24f)](_0x2a5792['tIVAU']),await _0x2a5792[_0x4cae99(0x21a)](sendInstrumentationEvent,_0x4dba6c,_0x2a5792['bBPRt'],messageTypes['ERROR'],_0x2a5792[_0x4cae99(0x1ef)],null,_0x4dba6c),process[_0x4cae99(0x234)](0x1)));_0x2a5792[_0x4cae99(0x1e4)](_0x1ef2f9[_0x4cae99(0x242)](),'n')&&(_0x2a5792[_0x4cae99(0x268)](_0x2a5792[_0x4cae99(0x22b)],_0x2a5792[_0x4cae99(0x22b)])?process['exit'](0x0):(_0x2ffd49[_0x4cae99(0x1e0)](_0x2a5792[_0x4cae99(0x244)]),_0x226bea[_0x4cae99(0x234)](0x0)));const _0x54b34e=WS_ENDPOINT[_0x4cae99(0x259)](_0x2a5792['DSCgN'],_0x1452c1[_0x4cae99(0x22a)][_0x4cae99(0x20f)])[_0x4cae99(0x259)](_0x2a5792[_0x4cae99(0x212)],_0x1452c1[_0x4cae99(0x22a)][_0x4cae99(0x25f)]),_0x2ccc83={};_0x2ccc83['WebSocket']=ws,_0x2ccc83['connectionTimeout']=0x36ee80;const _0x48df9f=new ReconnectingWebSocket(_0x54b34e,[],_0x2ccc83);global_registry[_0x4cae99(0x1f2)]=_0x12bb7d['region'];const _0x4a1c02=_0x12bb7d[_0x4cae99(0x202)],_0x21665f=await _0x2a5792['FyllY'](getCloudProviderObject,_0x4a1c02,_0x12bb7d['clusterName'],_0x12bb7d[_0x4cae99(0x21b)],_0x48df9f,webSocketUtils,_0x4dba6c),_0x2b6af6=await _0x21665f[_0x4cae99(0x23e)]();if(_0x2b6af6){const _0x41ef21=_0x2a5792[_0x4cae99(0x230)](kebabCase,_0x12bb7d['name']),[_0x58a9a5,_0x1c3aae,_0x11e7f7,_0x52dc30,_0x3f5872,_0x33eb22]=await _0x2a5792[_0x4cae99(0x1fa)](createK8sClient,_0x21665f,_0x4dba6c[_0x4cae99(0x23a)]);let _0x46ad07=!![];const _0xb329f9={};_0xb329f9[_0x4cae99(0x21b)]=_0x41ef21,await _0x58a9a5[_0x4cae99(0x232)](_0xb329f9)[_0x4cae99(0x1ee)](_0x2686af=>{const _0x552458=_0x4cae99;_0x2a5792[_0x552458(0x21c)](_0x2a5792['ZOlsw'],_0x2a5792[_0x552458(0x246)])?logger[_0x552458(0x1e0)](_0x552458(0x214)+_0x41ef21+_0x552458(0x220)):(_0x41b8b9[_0x552458(0x253)](_0x552458(0x214)+_0x2433ec+_0x552458(0x271)),_0x30aab7=![]);})[_0x4cae99(0x217)](_0x1b833a=>{const _0xd83406=_0x4cae99;_0x2a5792['bYEdo'](_0x2a5792[_0xd83406(0x1d5)],_0x2a5792[_0xd83406(0x1f0)])?_0x28e014=_0xd83406(0x255)+_0x44498b[_0xd83406(0x21b)]+_0xd83406(0x256)+_0x6179aa['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x3c1591[_0xd83406(0x266)]+'\x22\x20with\x20ID\x20'+_0x5890db[_0xd83406(0x26d)]+_0xd83406(0x272):(logger[_0xd83406(0x253)](_0xd83406(0x214)+_0x41ef21+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x46ad07=![]);});if(_0x46ad07){await _0x2a5792[_0x4cae99(0x273)](removeGridComponents,_0x58a9a5,_0x1c3aae,_0x11e7f7,_0x52dc30,_0x41ef21);if(_0x514363['onlyGridInCluster']){const _0x3bb1f0=await _0x21665f[_0x4cae99(0x1f8)]();if(_0x3bb1f0){if(_0x2a5792[_0x4cae99(0x20b)](_0x2a5792[_0x4cae99(0x24b)],_0x2a5792[_0x4cae99(0x211)])){const _0x18e318={};_0x18e318[_0x4cae99(0x20a)]=_0x2a5792[_0x4cae99(0x249)],_0x18e318[_0x4cae99(0x267)]=_0x2a5792[_0x4cae99(0x26c)];const _0x49e9ab={};_0x49e9ab[_0x4cae99(0x20a)]=_0x2a5792['YaCPi'],_0x49e9ab[_0x4cae99(0x267)]=_0x2a5792[_0x4cae99(0x20e)],_0x49e9ab['default']=![];const _0xf9dd7a={};return _0xf9dd7a[_0x4cae99(0x247)]=_0x18e318,_0xf9dd7a['skip-tls-cert-verify']=_0x49e9ab,_0x359741[_0x4cae99(0x224)](_0x2b33c1['delete'])[_0x4cae99(0x221)](_0x52dbad)[_0x4cae99(0x222)](_0xf9dd7a)[_0x4cae99(0x1eb)](_0x2a5792['XDZFh'])['argv'];}else await _0x21665f[_0x4cae99(0x25a)](_0x58a9a5,_0x12bb7d[_0x4cae99(0x237)]);}else _0x2a5792[_0x4cae99(0x233)](_0x2a5792['laKZZ'],_0x2a5792[_0x4cae99(0x231)])?logger[_0x4cae99(0x253)]('Cluster:\x20'+_0x12bb7d[_0x4cae99(0x266)]+_0x4cae99(0x1e1)):(_0x8f9ab5[_0x4cae99(0x24f)](_0x2a5792[_0x4cae99(0x1d8)]),_0x534f34[_0x4cae99(0x234)](0x1));}}}else logger['warn'](_0x2a5792[_0x4cae99(0x1d7)]);const _0x5fa620=_0x4cae99(0x24a)+AG_API_URL+_0x4cae99(0x243)+_0x4dba6c[_0x4cae99(0x25b)],_0x4b9daf={'method':_0x2a5792[_0x4cae99(0x213)],'headers':_0x2a5792[_0x4cae99(0x1fa)](getAuthHeader,_0x1452c1[_0x4cae99(0x22a)][_0x4cae99(0x20f)],_0x1452c1[_0x4cae99(0x22a)]['password']),'throwHttpErrors':![]},_0x37fa92=await _0x2a5792[_0x4cae99(0x228)](got,_0x5fa620,_0x4b9daf);_0x2a5792['UFHtE'](_0x37fa92,null)&&_0x2a5792[_0x4cae99(0x22c)](_0x37fa92,undefined)&&_0x2a5792[_0x4cae99(0x225)](_0x37fa92[_0x4cae99(0x252)],0xc8)&&(logger[_0x4cae99(0x1e0)](_0x2a5792[_0x4cae99(0x244)]),process['exit'](0x0)),logger[_0x4cae99(0x24f)](_0x4cae99(0x215)+_0x37fa92[_0x4cae99(0x206)]),await _0x2a5792['yhitV'](sendInstrumentationEvent,_0x4dba6c,_0x2a5792[_0x4cae99(0x257)],messageTypes[_0x4cae99(0x261)],_0x2a5792['PxkEu'],_0x300840,_0x4dba6c),process[_0x4cae99(0x234)](0x1);}_0x2a5792[_0x4cae99(0x1dd)](_0x300840[_0x4cae99(0x252)],0x191)&&(logger[_0x4cae99(0x24f)](_0x2a5792[_0x4cae99(0x227)]),await _0x2a5792[_0x4cae99(0x263)](sendInstrumentationEvent,_0x4dba6c,_0x2a5792[_0x4cae99(0x257)],messageTypes['ERROR'],_0x2a5792[_0x4cae99(0x1e2)],null,_0x4dba6c),process[_0x4cae99(0x234)](0x1)),_0x2a5792[_0x4cae99(0x1dc)](_0x300840['statusCode'],0x190)&&(logger[_0x4cae99(0x24f)](JSON[_0x4cae99(0x238)](_0x300840['body'])['message']),await _0x2a5792[_0x4cae99(0x1e5)](sendInstrumentationEvent,_0x4dba6c,_0x2a5792[_0x4cae99(0x257)],messageTypes[_0x4cae99(0x261)],_0x2a5792[_0x4cae99(0x236)],null,_0x4dba6c),process[_0x4cae99(0x234)](0x1)),logger[_0x4cae99(0x24f)](_0x4cae99(0x1e8)+JSON[_0x4cae99(0x1f3)](_0x300840)),await _0x2a5792[_0x4cae99(0x1e5)](sendInstrumentationEvent,_0x4dba6c,_0x2a5792[_0x4cae99(0x257)],messageTypes[_0x4cae99(0x261)],_0x2a5792[_0x4cae99(0x1ea)],_0x300840,_0x4dba6c),process['exit'](0x1);}catch(_0x5baa44){logger['error']('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x5baa44[_0x4cae99(0x1f1)]),await _0x2a5792['iAuEL'](sendInstrumentationEvent,_0x4dba6c,_0x2a5792[_0x4cae99(0x257)],messageTypes[_0x4cae99(0x261)],_0x2a5792['xxfxK'],_0x5baa44,_0x4dba6c),process[_0x4cae99(0x234)](0x1);}};
@@ -1 +1 @@
1
- const a12_0x5b690d=a12_0x4ebc;(function(_0x3a168d,_0x2fbc9b){const _0x2b49a3=a12_0x4ebc,_0x51544a=_0x3a168d();while(!![]){try{const _0x2b109f=parseInt(_0x2b49a3(0x1a1))/0x1*(-parseInt(_0x2b49a3(0x1be))/0x2)+parseInt(_0x2b49a3(0x17f))/0x3+-parseInt(_0x2b49a3(0x1df))/0x4*(-parseInt(_0x2b49a3(0x1bc))/0x5)+parseInt(_0x2b49a3(0x1c7))/0x6+-parseInt(_0x2b49a3(0x1bb))/0x7+-parseInt(_0x2b49a3(0x195))/0x8+-parseInt(_0x2b49a3(0x18e))/0x9*(-parseInt(_0x2b49a3(0x1d7))/0xa);if(_0x2b109f===_0x2fbc9b)break;else _0x51544a['push'](_0x51544a['shift']());}catch(_0x3037e4){_0x51544a['push'](_0x51544a['shift']());}}}(a12_0x2f80,0x91b57));const fs=require('fs'),util=require(a12_0x5b690d(0x199)),got=require(a12_0x5b690d(0x1af)),{v4:uuidv4}=require(a12_0x5b690d(0x1dc)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x5b690d(0x1d5)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x5b690d(0x1d4)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x5b690d(0x1d3));function a12_0x4ebc(_0x4324f8,_0x32f5dd){const _0x2f80fe=a12_0x2f80();return a12_0x4ebc=function(_0x4ebce2,_0x1f8f8d){_0x4ebce2=_0x4ebce2-0x17a;let _0x229d56=_0x2f80fe[_0x4ebce2];return _0x229d56;},a12_0x4ebc(_0x4324f8,_0x32f5dd);}exports[a12_0x5b690d(0x17c)]=a12_0x5b690d(0x1c6),exports['desc']=a12_0x5b690d(0x18d),exports[a12_0x5b690d(0x19c)]=function(_0x1e10f7){const _0x5bfa5c=a12_0x5b690d,_0x52ca22={};_0x52ca22[_0x5bfa5c(0x193)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x52ca22['FbYyW']=_0x5bfa5c(0x1b6),_0x52ca22['CKRyc']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x52ca22['POqrJ']=_0x5bfa5c(0x1ad);const _0xb16022=_0x52ca22,_0x1500a3={};_0x1500a3['description']=_0xb16022[_0x5bfa5c(0x193)],_0x1500a3['type']=_0xb16022[_0x5bfa5c(0x1bd)];const _0x126ab1={};_0x126ab1[_0x5bfa5c(0x1a0)]=_0xb16022[_0x5bfa5c(0x19b)],_0x126ab1[_0x5bfa5c(0x1a7)]=_0xb16022[_0x5bfa5c(0x1bd)];const _0x5cacdb={};return _0x5cacdb['bstack-username']=_0x1500a3,_0x5cacdb['bstack-accesskey']=_0x126ab1,_0x1e10f7[_0x5bfa5c(0x1ab)](HELP_HEADER_MESSAGE[_0x5bfa5c(0x1c6)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x5cacdb)[_0x5bfa5c(0x1b0)]()[_0x5bfa5c(0x185)]()['help'](_0xb16022['POqrJ'])[_0x5bfa5c(0x1cf)];},exports[a12_0x5b690d(0x1da)]=async function(_0x26d48d){const _0x17548e=a12_0x5b690d,_0x3bc84b={'uhGQq':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','LQxfM':_0x17548e(0x1b6),'VeaYs':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','lXTbC':_0x17548e(0x1ad),'rvjXa':function(_0x53c5a3){return _0x53c5a3();},'BspZJ':_0x17548e(0x1cb),'PXbTy':function(_0x3e809f){return _0x3e809f();},'oSKaS':function(_0x3988c6,_0x4730b5,_0x1c18d0,_0x3ac33a,_0x2561d6,_0xa47b07,_0x3e245a){return _0x3988c6(_0x4730b5,_0x1c18d0,_0x3ac33a,_0x2561d6,_0xa47b07,_0x3e245a);},'ErynZ':'init-called','jXsdl':function(_0x448124){return _0x448124();},'UOiHV':function(_0x5290cc,_0x4cc4ef){return _0x5290cc!==_0x4cc4ef;},'blOeT':'lnXII','Ksdkl':function(_0x7d83c8,_0x5bb83b){return _0x7d83c8===_0x5bb83b;},'nnGyD':_0x17548e(0x1ac),'FtpOM':'dVzJb','ReuPK':function(_0x3a30d0,_0x3c461e){return _0x3a30d0!==_0x3c461e;},'kkXDT':_0x17548e(0x19a),'maoOy':_0x17548e(0x1de),'KreMq':function(_0x10f69f,_0x374ca9){return _0x10f69f!==_0x374ca9;},'Eouuv':_0x17548e(0x1cc),'sZUNt':function(_0x4727b2,_0x35892d){return _0x4727b2!==_0x35892d;},'tgBRT':_0x17548e(0x1db),'SdpbD':_0x17548e(0x1c5),'CMCIJ':function(_0x12409f,_0x42f54f){return _0x12409f===_0x42f54f;},'uvgmJ':_0x17548e(0x1c9),'iAjAf':_0x17548e(0x1d0),'rSxxR':_0x17548e(0x197),'ELOyp':function(_0x39a10c){return _0x39a10c();},'qGjwT':_0x17548e(0x1a9),'rkjtg':function(_0x2e3e0c,_0x5230ad,_0xe39e78){return _0x2e3e0c(_0x5230ad,_0xe39e78);},'usuKm':function(_0x4a0f6f,_0x2b4d3a,_0x31d101){return _0x4a0f6f(_0x2b4d3a,_0x31d101);},'eRbOM':function(_0x436098,_0x55aa69){return _0x436098!==_0x55aa69;},'MXShn':_0x17548e(0x196),'HJdfz':'PANCR','DjiPq':function(_0x2fc19e,_0x109002){return _0x2fc19e===_0x109002;},'idpWF':_0x17548e(0x1c2),'wouVn':_0x17548e(0x1b7),'neruo':_0x17548e(0x191),'XINBv':_0x17548e(0x181),'RlrGo':'unknown-error'};try{global_registry[_0x17548e(0x1e0)]=_0x3bc84b['PXbTy'](uuidv4),_0x3bc84b[_0x17548e(0x1ae)](sendInstrumentationEvent,_0x26d48d,_0x3bc84b[_0x17548e(0x1cd)],messageTypes[_0x17548e(0x182)],null,null,_0x26d48d);const _0x5a1a88=_0x3bc84b[_0x17548e(0x1a4)](getDirForConfig);!fs[_0x17548e(0x1ce)](_0x5a1a88)&&(_0x3bc84b[_0x17548e(0x1a3)](_0x3bc84b[_0x17548e(0x194)],_0x3bc84b[_0x17548e(0x194)])?_0x3e1289=!![]:fs[_0x17548e(0x188)](_0x5a1a88));let _0x37961b,_0xd1be3e;if(process[_0x17548e(0x1b4)][_0x17548e(0x18c)]){if(_0x3bc84b[_0x17548e(0x1c0)](_0x3bc84b[_0x17548e(0x1bf)],_0x3bc84b['FtpOM'])){const _0x4a7b28={};_0x4a7b28[_0x17548e(0x1a0)]=_0x3bc84b[_0x17548e(0x1ca)],_0x4a7b28[_0x17548e(0x1a7)]=_0x3bc84b[_0x17548e(0x1b9)];const _0x258a86={};_0x258a86[_0x17548e(0x1a0)]=_0x3bc84b['VeaYs'],_0x258a86['type']=_0x3bc84b['LQxfM'];const _0x201502={};return _0x201502['bstack-username']=_0x4a7b28,_0x201502['bstack-accesskey']=_0x258a86,_0x2905fa['usage'](_0x4ea5c2[_0x17548e(0x1c6)])[_0x17548e(0x17e)](_0x497e5c)[_0x17548e(0x1d1)](_0x201502)[_0x17548e(0x1b0)]()[_0x17548e(0x185)]()['help'](_0x3bc84b['lXTbC'])['argv'];}else _0x37961b=process[_0x17548e(0x1b4)][_0x17548e(0x18c)];}if(process[_0x17548e(0x1b4)]['BROWSERSTACK_ACCESS_KEY']){if(_0x3bc84b['ReuPK'](_0x3bc84b[_0x17548e(0x184)],_0x3bc84b[_0x17548e(0x190)]))_0xd1be3e=process[_0x17548e(0x1b4)][_0x17548e(0x192)];else{let _0x5ed476={};const _0x310d9f=_0x3bc84b[_0x17548e(0x180)](_0x4b880b);_0x77b1da['existsSync'](_0x310d9f)&&(_0x5ed476=_0x2758ec[_0x17548e(0x1b3)](_0x4bf421[_0x17548e(0x18a)](_0x310d9f,_0x3bc84b['BspZJ'])));const _0x3ff6d6={};_0x3ff6d6[_0x17548e(0x187)]=_0x3550ae,_0x3ff6d6[_0x17548e(0x17a)]=_0x26c46b,_0x5ed476[_0x17548e(0x17d)]=_0x3ff6d6,_0x2b57fc[_0x17548e(0x1ba)](_0x310d9f,_0x35967f['stringify'](_0x5ed476)),_0xa6a01a[_0x17548e(0x1a2)](0x0);}}_0x26d48d[_0x17548e(0x1c3)]&&(_0x3bc84b[_0x17548e(0x1d9)](_0x3bc84b[_0x17548e(0x19e)],_0x3bc84b[_0x17548e(0x19e)])?_0x11d0be=_0xeeaf5['env'][_0x17548e(0x18c)]:_0x37961b=_0x26d48d[_0x17548e(0x1c3)]);_0x26d48d[_0x17548e(0x1a8)]&&(_0x3bc84b[_0x17548e(0x198)](_0x3bc84b[_0x17548e(0x19d)],_0x3bc84b['SdpbD'])?_0xd1be3e=_0x26d48d[_0x17548e(0x1a8)]:_0x945cec=_0x19b63f[_0x17548e(0x1b3)](_0x361057[_0x17548e(0x18a)](_0x1f7631,_0x3bc84b[_0x17548e(0x1d8)])));if(_0x3bc84b[_0x17548e(0x18f)](_0x37961b,undefined)||_0x3bc84b[_0x17548e(0x18f)](_0xd1be3e,undefined)){if(_0x3bc84b[_0x17548e(0x183)](_0x3bc84b['uvgmJ'],_0x3bc84b[_0x17548e(0x1d2)])){logger[_0x17548e(0x1a6)](_0x3bc84b[_0x17548e(0x189)]);const [_0x1c87c0,_0x3f4783]=await _0x3bc84b[_0x17548e(0x1b8)](inputBstackKeys);_0x37961b=_0x1c87c0,_0xd1be3e=_0x3f4783;}else _0x99da1c=_0x3d918e['bstackUsername'];}let _0x6bfd97=![];const _0x5742b8=_0x17548e(0x1c4)+_0x37961b+':'+_0xd1be3e+'@'+BS_API_URL+_0x17548e(0x1b2),_0x2ea480={'method':_0x3bc84b[_0x17548e(0x1aa)],'headers':_0x3bc84b[_0x17548e(0x1b5)](getAuthHeader,_0x37961b,_0xd1be3e),'throwHttpErrors':![]},_0x87b171=await _0x3bc84b[_0x17548e(0x18b)](got,_0x5742b8,_0x2ea480);_0x3bc84b[_0x17548e(0x1c1)](_0x87b171,null)&&_0x3bc84b['KreMq'](_0x87b171,undefined)&&_0x3bc84b[_0x17548e(0x18f)](_0x87b171['statusCode'],0xc8)&&(_0x3bc84b['Ksdkl'](_0x3bc84b[_0x17548e(0x1a5)],_0x3bc84b['MXShn'])?_0x6bfd97=!![]:_0x1a2bcc[_0x17548e(0x188)](_0x36db21));if(_0x6bfd97){if(_0x3bc84b[_0x17548e(0x183)](_0x3bc84b['HJdfz'],_0x3bc84b[_0x17548e(0x1d6)]))_0x5d6fcf=_0xcaec06['bstackAccesskey'];else{let _0x4ba03c={};const _0x307c78=_0x3bc84b[_0x17548e(0x1b8)](getCredentialsPath);fs[_0x17548e(0x1ce)](_0x307c78)&&(_0x3bc84b[_0x17548e(0x17b)](_0x3bc84b[_0x17548e(0x1c8)],_0x3bc84b['wouVn'])?_0x2cb15a=_0xd14990['env'][_0x17548e(0x192)]:_0x4ba03c=JSON[_0x17548e(0x1b3)](fs['readFileSync'](_0x307c78,_0x3bc84b[_0x17548e(0x1d8)])));const _0x4636bc={};_0x4636bc[_0x17548e(0x187)]=_0x37961b,_0x4636bc['password']=_0xd1be3e,_0x4ba03c[_0x17548e(0x17d)]=_0x4636bc,fs['writeFileSync'](_0x307c78,JSON['stringify'](_0x4ba03c)),process[_0x17548e(0x1a2)](0x0);}}else logger[_0x17548e(0x1dd)](_0x3bc84b['neruo']),await _0x3bc84b[_0x17548e(0x1ae)](sendInstrumentationEvent,_0x26d48d,_0x3bc84b[_0x17548e(0x1cd)],messageTypes[_0x17548e(0x186)],_0x3bc84b[_0x17548e(0x19f)],null,_0x26d48d),process[_0x17548e(0x1a2)](0x1);}catch(_0x1ce55a){logger[_0x17548e(0x1dd)](_0x1ce55a[_0x17548e(0x1b1)]),await _0x3bc84b[_0x17548e(0x1ae)](sendInstrumentationEvent,_0x26d48d,_0x3bc84b[_0x17548e(0x1cd)],messageTypes[_0x17548e(0x186)],_0x3bc84b['RlrGo'],_0x1ce55a,_0x26d48d),process[_0x17548e(0x1a2)](0x1);}};function a12_0x2f80(){const _0x161a76=['UnVOy','init','2241318yuqTgd','idpWF','qZJDQ','uhGQq','utf-8','xBbYE','ErynZ','existsSync','argv','JOiKO','options','iAjAf','../utils/instrumentationUtils','../config/constants','../utils/userInput','HJdfz','70KtGcAm','BspZJ','KreMq','handler','BRBzf','uuid','error','CkDTs','543572ffcOmq','requestId','password','DjiPq','command','Browserstack','epilogue','2100759voSdQk','rvjXa','wrong-creds','INFO','ReuPK','kkXDT','strict','ERROR','username','mkdirSync','rSxxR','readFileSync','usuKm','BROWSERSTACK_USERNAME','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','1176543Wofgmq','CMCIJ','maoOy','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','BROWSERSTACK_ACCESS_KEY','yEVIx','blOeT','663160ibGTUZ','ZrVSU','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','sZUNt','util','ZGLNg','CKRyc','builder','tgBRT','Eouuv','XINBv','description','194330BraYOX','exit','UOiHV','jXsdl','MXShn','debug','type','bstackAccesskey','GET','qGjwT','usage','HGOvF','help','oSKaS','got','recommendCommands','stack','/automate/plan.json','parse','env','rkjtg','string','QkFYx','ELOyp','LQxfM','writeFileSync','7394870QwWwlX','5yQaCNi','FbYyW','4KUTKdQ','nnGyD','Ksdkl','eRbOM','gKCOK','bstackUsername','https://'];a12_0x2f80=function(){return _0x161a76;};return a12_0x2f80();}
1
+ function a12_0xd821(){const _0xcef44b=['desc','qVguL','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','QASCv','FeArY','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','395298TlpwWC','error','EwqQS','1173VDqmuv','YeByg','uuid','BROWSERSTACK_ACCESS_KEY','MYxLR','https://','czwMv','unknown-error','usage','IwHTH','options','nqooN','xRnTX','../utils/instrumentationUtils','909081ETAigr','GET','bstackUsername','QCqeu','ubdeI','EeKbH','string','ERROR','kAvvw','type','VeJSQ','3622ZfPfxl','WKRqG','init','exit','../utils/userInput','AGjxB','OzfUj','stringify','uOxpl','1735200GcKycn','got','description','mkdirSync','bLQpG','YRrDL','builder','Nlxzm','EVZCn','GeQNB','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','../config/logger','nxTdC','56SoVQpI','IMSZg','LgQNX','recommendCommands','argv','password','Browserstack','bstackAccesskey','help','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','username','cAkrI','bstack-username','YsyVC','../config/constants','xLnrn','YtXzt','ICcgp','ttDPt','stack','writeFileSync','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','peiXx','iPHIm','fpJKh','requestId','aAuQh','existsSync','utf-8','Jwzpp','parse','INFO','ukiNU','Hkxkw','bstack-accesskey','1285380MIMxWY','oIjjg','OxjFt','readFileSync','tDGff','38617DzuVIO','SIFYp','PGYBs','/automate/plan.json','epilogue','YBsGQ','jVYyO','env','BROWSERSTACK_USERNAME','jZYiU','2906253nBflDC','OtTDo','fcJzo'];a12_0xd821=function(){return _0xcef44b;};return a12_0xd821();}function a12_0x5f7f(_0x4a915c,_0x51b390){const _0xd8218a=a12_0xd821();return a12_0x5f7f=function(_0x5f7f81,_0x2c7e98){_0x5f7f81=_0x5f7f81-0x122;let _0x3e4507=_0xd8218a[_0x5f7f81];return _0x3e4507;},a12_0x5f7f(_0x4a915c,_0x51b390);}const a12_0x492ad5=a12_0x5f7f;(function(_0x18d678,_0x5d4c6b){const _0x231ab0=a12_0x5f7f,_0x3fd9f3=_0x18d678();while(!![]){try{const _0x3d57e8=parseInt(_0x231ab0(0x189))/0x1+parseInt(_0x231ab0(0x14b))/0x2*(parseInt(_0x231ab0(0x132))/0x3)+parseInt(_0x231ab0(0x184))/0x4+parseInt(_0x231ab0(0x154))/0x5+parseInt(_0x231ab0(0x12f))/0x6+-parseInt(_0x231ab0(0x126))/0x7+-parseInt(_0x231ab0(0x161))/0x8*(parseInt(_0x231ab0(0x140))/0x9);if(_0x3d57e8===_0x5d4c6b)break;else _0x3fd9f3['push'](_0x3fd9f3['shift']());}catch(_0x2f20cb){_0x3fd9f3['push'](_0x3fd9f3['shift']());}}}(a12_0xd821,0x57958));const fs=require('fs'),util=require('util'),got=require(a12_0x492ad5(0x155)),{v4:uuidv4}=require(a12_0x492ad5(0x134)),{logger}=require(a12_0x492ad5(0x15f)),{inputBstackKeys}=require(a12_0x492ad5(0x14f)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x492ad5(0x16f)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x492ad5(0x13f));exports['command']=a12_0x492ad5(0x14d),exports[a12_0x492ad5(0x129)]=a12_0x492ad5(0x12b),exports[a12_0x492ad5(0x15a)]=function(_0x281aa2){const _0x2215f3=a12_0x492ad5,_0xb6f8aa={};_0xb6f8aa[_0x2215f3(0x148)]=_0x2215f3(0x16a),_0xb6f8aa['ukiNU']='string',_0xb6f8aa['uOxpl']=_0x2215f3(0x176),_0xb6f8aa[_0x2215f3(0x13e)]=_0x2215f3(0x169);const _0x4b6a5a=_0xb6f8aa,_0x1a131d={};_0x1a131d[_0x2215f3(0x156)]=_0x4b6a5a[_0x2215f3(0x148)],_0x1a131d[_0x2215f3(0x149)]=_0x4b6a5a[_0x2215f3(0x181)];const _0x536f19={};_0x536f19['description']=_0x4b6a5a[_0x2215f3(0x153)],_0x536f19[_0x2215f3(0x149)]=_0x4b6a5a[_0x2215f3(0x181)];const _0x386914={};return _0x386914[_0x2215f3(0x16d)]=_0x1a131d,_0x386914[_0x2215f3(0x183)]=_0x536f19,_0x281aa2[_0x2215f3(0x13a)](HELP_HEADER_MESSAGE[_0x2215f3(0x14d)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2215f3(0x13c)](_0x386914)[_0x2215f3(0x164)]()['strict']()[_0x2215f3(0x169)](_0x4b6a5a[_0x2215f3(0x13e)])[_0x2215f3(0x165)];},exports['handler']=async function(_0x283aa5){const _0x2ef30a=a12_0x492ad5,_0x590c48={'jVYyO':_0x2ef30a(0x17d),'MYxLR':_0x2ef30a(0x16a),'SIFYp':_0x2ef30a(0x146),'ICcgp':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','sjLCt':'help','EeKbH':function(_0x55eaa4){return _0x55eaa4();},'aAuQh':function(_0x3caa4e,_0x282029,_0x5acc2c,_0x693438,_0x5d77a0,_0x3d861b,_0x5454e2){return _0x3caa4e(_0x282029,_0x5acc2c,_0x693438,_0x5d77a0,_0x3d861b,_0x5454e2);},'TPnja':'init-called','AGjxB':function(_0x2afb7b){return _0x2afb7b();},'bLQpG':function(_0x86bcb9,_0x53ced8){return _0x86bcb9!==_0x53ced8;},'YRrDL':_0x2ef30a(0x186),'nxTdC':function(_0x1fe25a,_0x2f42b9){return _0x1fe25a!==_0x2f42b9;},'iOpTU':_0x2ef30a(0x178),'ttDPt':_0x2ef30a(0x138),'xLnrn':function(_0xbb1796,_0x55444c){return _0xbb1796===_0x55444c;},'GeQNB':_0x2ef30a(0x17e),'oIjjg':_0x2ef30a(0x151),'YsyVC':_0x2ef30a(0x143),'VeJSQ':_0x2ef30a(0x179),'jZYiU':'gUHpt','ubdeI':'ZjoMA','YBsGQ':function(_0x491056,_0x2343bb){return _0x491056===_0x2343bb;},'qVguL':'vLzkK','OtTDo':_0x2ef30a(0x15e),'LgQNX':_0x2ef30a(0x141),'peiXx':function(_0x2821c9,_0x336356,_0x1efba2){return _0x2821c9(_0x336356,_0x1efba2);},'IMSZg':function(_0x3fae48,_0x405c0c){return _0x3fae48!==_0x405c0c;},'fcJzo':function(_0x43ef54,_0x529ab1){return _0x43ef54!==_0x529ab1;},'IwHTH':function(_0xa329d6,_0x5c1fe3){return _0xa329d6===_0x5c1fe3;},'YeByg':_0x2ef30a(0x171),'nqooN':_0x2ef30a(0x12d),'tDGff':_0x2ef30a(0x182),'PGYBs':'BRGaP','QASCv':function(_0x5ecb85){return _0x5ecb85();},'iejRu':_0x2ef30a(0x14c),'EVZCn':_0x2ef30a(0x12e),'EwqQS':function(_0xc307e0,_0x423199,_0x530647,_0x3dc83e,_0x395ba2,_0x2c0469,_0x45f29b){return _0xc307e0(_0x423199,_0x530647,_0x3dc83e,_0x395ba2,_0x2c0469,_0x45f29b);},'cAkrI':'wrong-creds','Nlxzm':function(_0x2a31db,_0xa9b22a,_0x43a38c,_0x4efb0a,_0x3fb2a3,_0xf86824,_0x485484){return _0x2a31db(_0xa9b22a,_0x43a38c,_0x4efb0a,_0x3fb2a3,_0xf86824,_0x485484);},'heWKN':_0x2ef30a(0x139)};try{global_registry[_0x2ef30a(0x17a)]=_0x590c48[_0x2ef30a(0x145)](uuidv4),_0x590c48[_0x2ef30a(0x17b)](sendInstrumentationEvent,_0x283aa5,_0x590c48['TPnja'],messageTypes[_0x2ef30a(0x180)],null,null,_0x283aa5);const _0x328367=_0x590c48[_0x2ef30a(0x150)](getDirForConfig);!fs[_0x2ef30a(0x17c)](_0x328367)&&(_0x590c48[_0x2ef30a(0x158)](_0x590c48[_0x2ef30a(0x159)],_0x590c48[_0x2ef30a(0x159)])?_0x508dba=_0x2989c6[_0x2ef30a(0x17f)](_0x3567b9[_0x2ef30a(0x187)](_0x20b25b,_0x590c48[_0x2ef30a(0x122)])):fs[_0x2ef30a(0x157)](_0x328367));let _0x2325f0,_0x56fd64;process[_0x2ef30a(0x123)][_0x2ef30a(0x124)]&&(_0x590c48[_0x2ef30a(0x160)](_0x590c48['iOpTU'],_0x590c48[_0x2ef30a(0x173)])?_0x2325f0=process[_0x2ef30a(0x123)][_0x2ef30a(0x124)]:_0x39fb1e=!![]);process[_0x2ef30a(0x123)]['BROWSERSTACK_ACCESS_KEY']&&(_0x590c48['xLnrn'](_0x590c48[_0x2ef30a(0x15d)],_0x590c48[_0x2ef30a(0x185)])?_0x4b454c=_0x5b9c05['bstackUsername']:_0x56fd64=process[_0x2ef30a(0x123)][_0x2ef30a(0x135)]);if(_0x283aa5['bstackUsername']){if(_0x590c48[_0x2ef30a(0x160)](_0x590c48[_0x2ef30a(0x16e)],_0x590c48[_0x2ef30a(0x14a)]))_0x2325f0=_0x283aa5[_0x2ef30a(0x142)];else{const _0x51469c={};_0x51469c[_0x2ef30a(0x156)]=_0x590c48[_0x2ef30a(0x136)],_0x51469c['type']=_0x590c48[_0x2ef30a(0x18a)];const _0x18c990={};_0x18c990[_0x2ef30a(0x156)]=_0x590c48[_0x2ef30a(0x172)],_0x18c990[_0x2ef30a(0x149)]=_0x590c48[_0x2ef30a(0x18a)];const _0xbaff79={};return _0xbaff79[_0x2ef30a(0x16d)]=_0x51469c,_0xbaff79[_0x2ef30a(0x183)]=_0x18c990,_0x19ed3a['usage'](_0x193d09['init'])[_0x2ef30a(0x18d)](_0x4d01f2)[_0x2ef30a(0x13c)](_0xbaff79)['recommendCommands']()['strict']()[_0x2ef30a(0x169)](_0x590c48['sjLCt'])[_0x2ef30a(0x165)];}}if(_0x283aa5[_0x2ef30a(0x168)]){if(_0x590c48[_0x2ef30a(0x160)](_0x590c48[_0x2ef30a(0x125)],_0x590c48[_0x2ef30a(0x144)]))_0x56fd64=_0x283aa5[_0x2ef30a(0x168)];else{let _0x47a3db={};const _0x3ca9dc=_0x590c48[_0x2ef30a(0x145)](_0x563ca0);_0xec7469['existsSync'](_0x3ca9dc)&&(_0x47a3db=_0x4c593b[_0x2ef30a(0x17f)](_0x479d41[_0x2ef30a(0x187)](_0x3ca9dc,_0x590c48[_0x2ef30a(0x122)])));const _0x3b4cec={};_0x3b4cec[_0x2ef30a(0x16b)]=_0x410454,_0x3b4cec[_0x2ef30a(0x166)]=_0xc7bcc1,_0x47a3db['Browserstack']=_0x3b4cec,_0x4dfaa1[_0x2ef30a(0x175)](_0x3ca9dc,_0x5db809[_0x2ef30a(0x152)](_0x47a3db)),_0xcc0d13[_0x2ef30a(0x14e)](0x0);}}if(_0x590c48[_0x2ef30a(0x18e)](_0x2325f0,undefined)||_0x590c48[_0x2ef30a(0x170)](_0x56fd64,undefined)){if(_0x590c48[_0x2ef30a(0x18e)](_0x590c48[_0x2ef30a(0x12a)],_0x590c48[_0x2ef30a(0x12a)])){logger['debug'](_0x590c48[_0x2ef30a(0x127)]);const [_0x471e8c,_0x46dd58]=await _0x590c48['AGjxB'](inputBstackKeys);_0x2325f0=_0x471e8c,_0x56fd64=_0x46dd58;}else _0x2a0252=_0x16154a[_0x2ef30a(0x168)];}let _0x59ca71=![];const _0x22a824=_0x2ef30a(0x137)+_0x2325f0+':'+_0x56fd64+'@'+BS_API_URL+_0x2ef30a(0x18c),_0x35b9e8={'method':_0x590c48[_0x2ef30a(0x163)],'headers':_0x590c48[_0x2ef30a(0x177)](getAuthHeader,_0x2325f0,_0x56fd64),'throwHttpErrors':![]},_0x72be3=await _0x590c48[_0x2ef30a(0x177)](got,_0x22a824,_0x35b9e8);_0x590c48[_0x2ef30a(0x162)](_0x72be3,null)&&_0x590c48[_0x2ef30a(0x128)](_0x72be3,undefined)&&_0x590c48[_0x2ef30a(0x13b)](_0x72be3['statusCode'],0xc8)&&(_0x590c48[_0x2ef30a(0x170)](_0x590c48[_0x2ef30a(0x133)],_0x590c48[_0x2ef30a(0x13d)])?_0x331063=_0x2ed33c[_0x2ef30a(0x123)][_0x2ef30a(0x135)]:_0x59ca71=!![]);if(_0x59ca71){if(_0x590c48['YBsGQ'](_0x590c48[_0x2ef30a(0x188)],_0x590c48[_0x2ef30a(0x18b)]))_0x441a44=_0x56835a[_0x2ef30a(0x123)][_0x2ef30a(0x124)];else{let _0x45a101={};const _0xbe8ca4=_0x590c48[_0x2ef30a(0x12c)](getCredentialsPath);fs[_0x2ef30a(0x17c)](_0xbe8ca4)&&(_0x590c48['xLnrn'](_0x590c48['iejRu'],_0x590c48['iejRu'])?_0x45a101=JSON[_0x2ef30a(0x17f)](fs[_0x2ef30a(0x187)](_0xbe8ca4,_0x590c48['jVYyO'])):_0x1aead1[_0x2ef30a(0x157)](_0x10cb53));const _0x48d4eb={};_0x48d4eb[_0x2ef30a(0x16b)]=_0x2325f0,_0x48d4eb[_0x2ef30a(0x166)]=_0x56fd64,_0x45a101[_0x2ef30a(0x167)]=_0x48d4eb,fs[_0x2ef30a(0x175)](_0xbe8ca4,JSON['stringify'](_0x45a101)),process[_0x2ef30a(0x14e)](0x0);}}else logger[_0x2ef30a(0x130)](_0x590c48[_0x2ef30a(0x15c)]),await _0x590c48[_0x2ef30a(0x131)](sendInstrumentationEvent,_0x283aa5,_0x590c48['TPnja'],messageTypes[_0x2ef30a(0x147)],_0x590c48[_0x2ef30a(0x16c)],null,_0x283aa5),process[_0x2ef30a(0x14e)](0x1);}catch(_0x3c7f00){logger[_0x2ef30a(0x130)](_0x3c7f00[_0x2ef30a(0x174)]),await _0x590c48[_0x2ef30a(0x15b)](sendInstrumentationEvent,_0x283aa5,_0x590c48['TPnja'],messageTypes[_0x2ef30a(0x147)],_0x590c48['heWKN'],_0x3c7f00,_0x283aa5),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a13_0x278f(){const _0x3920a5=['12824PoPeiC','3810196uimjJY','command','root','desc','6962106UujIdE','list','4134195luNGEj','11952ZmLFEa','3023NaYbTj','228ZQmYcu','vBOcM','3JMfNbL','epilogue','2830HeYAGQ','usage','5512ZcucQJ','handler','help','strict','16195069sbuFAq','uiazw','../config/constants','List\x20down\x20the\x20Grid\x20resources.'];a13_0x278f=function(){return _0x3920a5;};return a13_0x278f();}const a13_0x2077db=a13_0x6844;(function(_0x5cbd0d,_0x5e388c){const _0x3beedb=a13_0x6844,_0x3eaf65=_0x5cbd0d();while(!![]){try{const _0xa5bd8=-parseInt(_0x3beedb(0xde))/0x1*(parseInt(_0x3beedb(0xdf))/0x2)+parseInt(_0x3beedb(0xe1))/0x3*(parseInt(_0x3beedb(0xd6))/0x4)+-parseInt(_0x3beedb(0xdc))/0x5+parseInt(_0x3beedb(0xda))/0x6+-parseInt(_0x3beedb(0xd5))/0x7*(parseInt(_0x3beedb(0xcd))/0x8)+-parseInt(_0x3beedb(0xdd))/0x9*(parseInt(_0x3beedb(0xe3))/0xa)+parseInt(_0x3beedb(0xd1))/0xb;if(_0xa5bd8===_0x5e388c)break;else _0x3eaf65['push'](_0x3eaf65['shift']());}catch(_0xd078f2){_0x3eaf65['push'](_0x3eaf65['shift']());}}}(a13_0x278f,0xbd5de));function a13_0x6844(_0x2b788f,_0x51f5e7){const _0x278f34=a13_0x278f();return a13_0x6844=function(_0x684456,_0x6e38ec){_0x684456=_0x684456-0xcd;let _0x1097e1=_0x278f34[_0x684456];return _0x1097e1;},a13_0x6844(_0x2b788f,_0x51f5e7);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x2077db(0xd3));exports[a13_0x2077db(0xd7)]='list',exports[a13_0x2077db(0xd9)]=a13_0x2077db(0xd4),exports['builder']=function(_0x3e2a52){const _0x1417a1=a13_0x2077db,_0x4c44a4={};_0x4c44a4['uiazw']='list_commands',_0x4c44a4[_0x1417a1(0xe0)]=_0x1417a1(0xcf);const _0x2f526e=_0x4c44a4;return _0x3e2a52['commandDir'](_0x2f526e[_0x1417a1(0xd2)])['demandCommand']()[_0x1417a1(0xe4)](HELP_HEADER_MESSAGE[_0x1417a1(0xdb)][_0x1417a1(0xd8)])[_0x1417a1(0xe2)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x1417a1(0xd0)]()[_0x1417a1(0xcf)](_0x2f526e[_0x1417a1(0xe0)]);},exports[a13_0x2077db(0xce)]=function(_0xa55636){};
1
+ const a13_0x2c664b=a13_0xddff;function a13_0x4afe(){const _0x512772=['183210ajIgqP','builder','obsOF','42122GGyLwP','245zRxSyo','usage','8233614GkAKos','handler','list','commandDir','173756hQnzjV','root','SDzqx','list_commands','24NnWcyS','813573NgSvvL','3532336jclkJl','strict','List\x20down\x20the\x20Grid\x20resources.','../config/constants','command','help','37832yJWmXH','desc','demandCommand'];a13_0x4afe=function(){return _0x512772;};return a13_0x4afe();}(function(_0x3ac119,_0x12fb83){const _0x577620=a13_0xddff,_0x56a0ee=_0x3ac119();while(!![]){try{const _0x3194f1=-parseInt(_0x577620(0x10f))/0x1+-parseInt(_0x577620(0x108))/0x2*(-parseInt(_0x577620(0xfa))/0x3)+-parseInt(_0x577620(0xfc))/0x4+parseInt(_0x577620(0x105))/0x5+parseInt(_0x577620(0x10b))/0x6+parseInt(_0x577620(0x109))/0x7*(parseInt(_0x577620(0x102))/0x8)+parseInt(_0x577620(0xfb))/0x9;if(_0x3194f1===_0x12fb83)break;else _0x56a0ee['push'](_0x56a0ee['shift']());}catch(_0x2c54b2){_0x56a0ee['push'](_0x56a0ee['shift']());}}}(a13_0x4afe,0xbd917));function a13_0xddff(_0x472886,_0x16298e){const _0x4afe1f=a13_0x4afe();return a13_0xddff=function(_0xddff00,_0x528ec4){_0xddff00=_0xddff00-0xf7;let _0x1187cb=_0x4afe1f[_0xddff00];return _0x1187cb;},a13_0xddff(_0x472886,_0x16298e);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x2c664b(0xff));exports[a13_0x2c664b(0x100)]=a13_0x2c664b(0x10d),exports[a13_0x2c664b(0x103)]=a13_0x2c664b(0xfe),exports[a13_0x2c664b(0x106)]=function(_0x2e36ce){const _0x59a1e5=a13_0x2c664b,_0x3c23e4={};_0x3c23e4['SDzqx']=_0x59a1e5(0xf9),_0x3c23e4[_0x59a1e5(0x107)]=_0x59a1e5(0x101);const _0x507ea4=_0x3c23e4;return _0x2e36ce[_0x59a1e5(0x10e)](_0x507ea4[_0x59a1e5(0xf8)])[_0x59a1e5(0x104)]()[_0x59a1e5(0x10a)](HELP_HEADER_MESSAGE[_0x59a1e5(0x10d)][_0x59a1e5(0xf7)])['epilogue'](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x59a1e5(0xfd)]()[_0x59a1e5(0x101)](_0x507ea4[_0x59a1e5(0x107)]);},exports[a13_0x2c664b(0x10c)]=function(_0x4f7723){};
@@ -1 +1 @@
1
- const a14_0x504488=a14_0x2b7f;(function(_0x5745a6,_0x2bd73f){const _0x49a2e1=a14_0x2b7f,_0x50a513=_0x5745a6();while(!![]){try{const _0x185663=parseInt(_0x49a2e1(0xa3))/0x1+parseInt(_0x49a2e1(0xe4))/0x2*(-parseInt(_0x49a2e1(0xba))/0x3)+parseInt(_0x49a2e1(0xc8))/0x4+parseInt(_0x49a2e1(0xb6))/0x5+parseInt(_0x49a2e1(0xb5))/0x6+parseInt(_0x49a2e1(0xbc))/0x7+-parseInt(_0x49a2e1(0xbf))/0x8*(parseInt(_0x49a2e1(0xc0))/0x9);if(_0x185663===_0x2bd73f)break;else _0x50a513['push'](_0x50a513['shift']());}catch(_0xa2fb55){_0x50a513['push'](_0x50a513['shift']());}}}(a14_0x41f6,0x92110));const fs=require('fs'),got=require('got'),{table}=require('table'),{v4:uuidv4}=require(a14_0x504488(0xe8)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x504488(0xdc)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x504488(0xa7));function a14_0x2b7f(_0x212ec7,_0x1fde65){const _0x41f689=a14_0x41f6();return a14_0x2b7f=function(_0x2b7f55,_0xc0b0a1){_0x2b7f55=_0x2b7f55-0xa0;let _0x42f7fa=_0x41f689[_0x2b7f55];return _0x42f7fa;},a14_0x2b7f(_0x212ec7,_0x1fde65);}function a14_0x41f6(){const _0x5b6de0=['tYsmi','uuid','error','help','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','list-grid-profiles-called','INFO','password','lrHzQ','248858buirOF','qAiJC','YBsym','init-not-called','../../utils/instrumentationUtils','list','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','handler','username','stack','argv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','VgiBe','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','requestId','ERROR','statusCode','ieSTR','4246446iFnCsA','1074225ZfheUj','QpDXz','hhSkQ','allGridProfiles','96003geNFHo','zznzk','6494145qmFfTT','grid-profiles','https://','18232904WYUaXq','9DVeTJO','boolean','Browserstack','unknown-error','ELYcP','push','body','stringify','4264924KwreUO','desc','name','region','type','exit','FXSxt','usage','bstackUsername','log','parse','options','UjcLj','grid-profile-name','HoUem','EyFBO','cloudProvider','iZyvP','GET','/packages/cli/get-all-grid-profiles','../../config/constants','cloud-provider','all-grid-profiles','concurrency','forEach','WmBhm','igZKm','gridProfile','18mloNfw','readFileSync','GrEnG'];a14_0x41f6=function(){return _0x5b6de0;};return a14_0x41f6();}exports['command']=a14_0x504488(0xbd),exports[a14_0x504488(0xc9)]=a14_0x504488(0xb0),exports['builder']=function(_0x564592){const _0x378c0b=a14_0x504488,_0x45cefa={};_0x45cefa[_0x378c0b(0xd4)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x45cefa[_0x378c0b(0xbb)]=_0x378c0b(0xc1),_0x45cefa[_0x378c0b(0xb7)]=_0x378c0b(0xea);const _0xb7f636=_0x45cefa,_0x22c20b={};_0x22c20b['description']=_0xb7f636[_0x378c0b(0xd4)],_0x22c20b[_0x378c0b(0xcc)]=_0xb7f636[_0x378c0b(0xbb)];const _0xf0a286={};return _0xf0a286[_0x378c0b(0xde)]=_0x22c20b,_0x564592[_0x378c0b(0xcf)](HELP_HEADER_MESSAGE[_0x378c0b(0xa8)][_0x378c0b(0xe3)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x378c0b(0xd3)](_0xf0a286)['help'](_0xb7f636['QpDXz'])[_0x378c0b(0xad)];},exports[a14_0x504488(0xaa)]=async function(_0x53a2fb){const _0x21780e=a14_0x504488,_0x14ae8d={'hhSkQ':function(_0x39d998){return _0x39d998();},'tYsmi':_0x21780e(0xae),'ieSTR':function(_0x621ef4,_0x477e8a,_0x56f29e,_0x4f06b7,_0x51c166,_0x5c7e97,_0xd7a4d6){return _0x621ef4(_0x477e8a,_0x56f29e,_0x4f06b7,_0x51c166,_0x5c7e97,_0xd7a4d6);},'WmBhm':_0x21780e(0xec),'GrEnG':_0x21780e(0xa6),'SjXlT':_0x21780e(0xda),'PVUmB':function(_0x10b910,_0x19c0fd,_0xce5c44){return _0x10b910(_0x19c0fd,_0xce5c44);},'DyILq':function(_0x1f07ba,_0x18bb4e,_0x2f60e5){return _0x1f07ba(_0x18bb4e,_0x2f60e5);},'qAiJC':function(_0x10b32b,_0x22caed){return _0x10b32b!==_0x22caed;},'CirTL':function(_0x3b19ae,_0x467700){return _0x3b19ae!==_0x467700;},'VgiBe':function(_0x5d2999,_0x3c698e){return _0x5d2999===_0x3c698e;},'ADDio':_0x21780e(0xeb),'ELYcP':_0x21780e(0xd5),'iZyvP':_0x21780e(0xdd),'igZKm':_0x21780e(0xcb),'FXSxt':_0x21780e(0xdf),'shJWE':function(_0x467e7a,_0x2ed4b8){return _0x467e7a(_0x2ed4b8);},'HoUem':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','YBsym':function(_0x4765b0,_0x314d18,_0x15f51e,_0x470b72,_0x44a33d,_0xf5c691,_0x1a50ef){return _0x4765b0(_0x314d18,_0x15f51e,_0x470b72,_0x44a33d,_0xf5c691,_0x1a50ef);},'EyFBO':'unauthorised','RxqCV':'server-error','lrHzQ':_0x21780e(0xc3)};try{global_registry[_0x21780e(0xb1)]=_0x14ae8d[_0x21780e(0xb8)](uuidv4);let _0x903a7d=_0x21780e(0xbe)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x53a2fb[_0x21780e(0xb9)]&&(_0x903a7d=_0x21780e(0xbe)+AG_API_URL+_0x21780e(0xdb));!fs['existsSync'](_0x14ae8d[_0x21780e(0xb8)](getCredentialsPath))&&(console['error'](_0x14ae8d[_0x21780e(0xe7)]),await _0x14ae8d[_0x21780e(0xb4)](sendInstrumentationEvent,_0x53a2fb,_0x14ae8d['WmBhm'],messageTypes[_0x21780e(0xb2)],_0x14ae8d[_0x21780e(0xe6)],null,_0x53a2fb),process['exit'](0x1));const _0x3210ce=JSON[_0x21780e(0xd2)](fs[_0x21780e(0xe5)](_0x14ae8d[_0x21780e(0xb8)](getCredentialsPath))),_0x4718d3={'method':_0x14ae8d['SjXlT'],'headers':_0x14ae8d['PVUmB'](getAuthHeader,_0x3210ce['Browserstack'][_0x21780e(0xab)],_0x3210ce[_0x21780e(0xc2)][_0x21780e(0xa1)]),'throwHttpErrors':![]};global_registry[_0x21780e(0xd0)]=_0x3210ce[_0x21780e(0xc2)][_0x21780e(0xab)],global_registry['bstackAccesskey']=_0x3210ce[_0x21780e(0xc2)][_0x21780e(0xa1)],_0x14ae8d[_0x21780e(0xb4)](sendInstrumentationEvent,_0x53a2fb,_0x14ae8d['WmBhm'],messageTypes[_0x21780e(0xa0)],null,null,_0x53a2fb);const _0x498abe=await _0x14ae8d['DyILq'](got,_0x903a7d,_0x4718d3);if(_0x14ae8d[_0x21780e(0xa4)](_0x498abe,null)&&_0x14ae8d['CirTL'](_0x498abe,undefined)&&_0x14ae8d[_0x21780e(0xaf)](_0x498abe['statusCode'],0xc8)){const _0x482e25=JSON[_0x21780e(0xd2)](_0x498abe[_0x21780e(0xc6)]);console['log'](_0x14ae8d['ADDio']);const _0x1e978f=[];_0x1e978f[_0x21780e(0xc5)]([_0x14ae8d[_0x21780e(0xc4)],_0x14ae8d[_0x21780e(0xd9)],_0x14ae8d[_0x21780e(0xe2)],_0x14ae8d[_0x21780e(0xce)]]),_0x482e25[_0x21780e(0xe0)](_0x4e2395=>{const _0x27df24=_0x21780e;_0x1e978f[_0x27df24(0xc5)]([_0x4e2395[_0x27df24(0xca)],_0x4e2395[_0x27df24(0xd8)],_0x4e2395[_0x27df24(0xcb)],_0x4e2395['concurrency']]);}),console[_0x21780e(0xd1)](_0x14ae8d['shJWE'](table,_0x1e978f)),process['exit'](0x0);}_0x14ae8d[_0x21780e(0xaf)](_0x498abe[_0x21780e(0xb3)],0x191)&&(console[_0x21780e(0xe9)](_0x14ae8d[_0x21780e(0xd6)]),await _0x14ae8d[_0x21780e(0xa5)](sendInstrumentationEvent,_0x53a2fb,_0x14ae8d[_0x21780e(0xe1)],messageTypes[_0x21780e(0xb2)],_0x14ae8d[_0x21780e(0xd7)],null,_0x53a2fb),process[_0x21780e(0xcd)](0x1)),console[_0x21780e(0xe9)](_0x21780e(0xa9)+JSON[_0x21780e(0xc7)](_0x498abe)),await _0x14ae8d[_0x21780e(0xb4)](sendInstrumentationEvent,_0x53a2fb,_0x14ae8d[_0x21780e(0xe1)],messageTypes[_0x21780e(0xb2)],_0x14ae8d['RxqCV'],_0x498abe,_0x53a2fb),process['exit'](0x1);}catch(_0x54e511){console['error']('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x54e511[_0x21780e(0xac)]),await _0x14ae8d['ieSTR'](sendInstrumentationEvent,_0x53a2fb,_0x14ae8d['WmBhm'],messageTypes[_0x21780e(0xb2)],_0x14ae8d[_0x21780e(0xa2)],_0x54e511,_0x53a2fb),process[_0x21780e(0xcd)](0x1);}};
1
+ function a14_0x1448(){const _0x2521d2=['hMira','got','builder','push','ZrNqy','help','readFileSync','NrovT','30hqtwfw','all-grid-profiles','allGridProfiles','command','OvubJ','parse','hBSTg','body','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','username','init-not-called','oCsqD','INFO','vDuPi','jhvKa','grid-profile-name','SNOuA','GjpBv','exit','concurrency','uuid','gridProfile','type','alXhW','2602345DsOALZ','koWxX','password','boolean','aqfiP','list-grid-profiles-called','GHtuD','630791OZXSls','server-error','log','STuNO','rVqAr','903519tcKrnp','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','CDgDi','existsSync','table','4443768TwVDVT','unknown-error','argv','unauthorised','cloudProvider','name','jvJkZ','GET','417064yxdvwA','ZPiIT','QbIBJ','YCqiK','../../utils/instrumentationUtils','1486QtMaxc','/packages/cli/get-all-grid-profiles','ERROR','587IfwgUT','120wtrinv','Browserstack','grid-profiles','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','Failed\x20to\x20list\x20resources!\x20Error:\x20','list','SQVKt','usage','KjASG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cloud-provider','statusCode','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','region','https://','/packages/cli/get-grid-profiles','error','UWOpA','1087230SuYxCi','XZSGw','stringify','wzWFg'];a14_0x1448=function(){return _0x2521d2;};return a14_0x1448();}const a14_0xc50c06=a14_0x4a7e;(function(_0x26f2a2,_0x47685b){const _0x4e602f=a14_0x4a7e,_0x4a9cc4=_0x26f2a2();while(!![]){try{const _0x2394eb=parseInt(_0x4e602f(0xa2))/0x1*(-parseInt(_0x4e602f(0x9f))/0x2)+parseInt(_0x4e602f(0xc1))/0x3*(-parseInt(_0x4e602f(0x9a))/0x4)+parseInt(_0x4e602f(0x81))/0x5+-parseInt(_0x4e602f(0xb5))/0x6+-parseInt(_0x4e602f(0x88))/0x7+parseInt(_0x4e602f(0x92))/0x8+parseInt(_0x4e602f(0x8d))/0x9*(parseInt(_0x4e602f(0xa3))/0xa);if(_0x2394eb===_0x47685b)break;else _0x4a9cc4['push'](_0x4a9cc4['shift']());}catch(_0x5c8207){_0x4a9cc4['push'](_0x4a9cc4['shift']());}}}(a14_0x1448,0x81851));function a14_0x4a7e(_0x2dba62,_0x55ef2b){const _0x1448c3=a14_0x1448();return a14_0x4a7e=function(_0x4a7ec7,_0x4e84a8){_0x4a7ec7=_0x4a7ec7-0x6f;let _0x29d581=_0x1448c3[_0x4a7ec7];return _0x29d581;},a14_0x4a7e(_0x2dba62,_0x55ef2b);}const fs=require('fs'),got=require(a14_0xc50c06(0xba)),{table}=require(a14_0xc50c06(0x91)),{v4:uuidv4}=require(a14_0xc50c06(0x7d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0xc50c06(0x9e));exports[a14_0xc50c06(0xc4)]=a14_0xc50c06(0xa5),exports['desc']='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a14_0xc50c06(0xbb)]=function(_0x9f0f11){const _0x499cf0=a14_0xc50c06,_0x5e1377={};_0x5e1377[_0x499cf0(0xb9)]=_0x499cf0(0xaf),_0x5e1377[_0x499cf0(0x76)]=_0x499cf0(0x84),_0x5e1377[_0x499cf0(0xb4)]=_0x499cf0(0xbe);const _0x49e9b9=_0x5e1377,_0x5a7e9d={};_0x5a7e9d['description']=_0x49e9b9['hMira'],_0x5a7e9d[_0x499cf0(0x7f)]=_0x49e9b9[_0x499cf0(0x76)];const _0x7206de={};return _0x7206de[_0x499cf0(0xc2)]=_0x5a7e9d,_0x9f0f11[_0x499cf0(0xaa)](HELP_HEADER_MESSAGE[_0x499cf0(0xa8)][_0x499cf0(0x7e)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x7206de)[_0x499cf0(0xbe)](_0x49e9b9[_0x499cf0(0xb4)])[_0x499cf0(0x94)];},exports['handler']=async function(_0x413f34){const _0x1b4c21=a14_0xc50c06,_0x26f729={'jvJkZ':function(_0x5d0890){return _0x5d0890();},'GHtuD':function(_0x5d65c9){return _0x5d65c9();},'GjpBv':_0x1b4c21(0xac),'hBSTg':function(_0x3a8f83,_0x299059,_0x9a0c96,_0x40d3eb,_0x50f969,_0x19319d,_0x45a25e){return _0x3a8f83(_0x299059,_0x9a0c96,_0x40d3eb,_0x50f969,_0x19319d,_0x45a25e);},'SQVKt':_0x1b4c21(0x86),'hPson':_0x1b4c21(0x73),'gPZSB':_0x1b4c21(0x99),'OvubJ':function(_0x4482ca,_0x5d7f7a,_0x504259){return _0x4482ca(_0x5d7f7a,_0x504259);},'QbIBJ':function(_0x179277,_0x24b845){return _0x179277!==_0x24b845;},'rVqAr':function(_0x575fba,_0x55118f){return _0x575fba!==_0x55118f;},'YCqiK':function(_0x432b97,_0x132059){return _0x432b97===_0x132059;},'XZSGw':_0x1b4c21(0xa6),'alXhW':_0x1b4c21(0x78),'STuNO':_0x1b4c21(0xad),'jhvKa':_0x1b4c21(0xb0),'CDgDi':_0x1b4c21(0x7c),'wzWFg':function(_0x25b6ac,_0x1c40c9){return _0x25b6ac(_0x1c40c9);},'NrovT':function(_0x4ff548,_0x18c303){return _0x4ff548===_0x18c303;},'ZrNqy':_0x1b4c21(0x71),'aqfiP':function(_0x4d5294,_0x7ed447,_0x319714,_0x1dbe08,_0x254894,_0x332f2c,_0x499259){return _0x4d5294(_0x7ed447,_0x319714,_0x1dbe08,_0x254894,_0x332f2c,_0x499259);},'ZPiIT':_0x1b4c21(0x95),'koWxX':function(_0x3bb9bc,_0x1f6adc,_0x260685,_0x1ffc19,_0xdee8f1,_0xb65136,_0x50a28f){return _0x3bb9bc(_0x1f6adc,_0x260685,_0x1ffc19,_0xdee8f1,_0xb65136,_0x50a28f);},'KjASG':_0x1b4c21(0x89),'oCsqD':function(_0x1d076c,_0x4cbb77,_0x1ba9c4,_0x18f7fd,_0x1d3a08,_0x3f24ba,_0x14e502){return _0x1d076c(_0x4cbb77,_0x1ba9c4,_0x18f7fd,_0x1d3a08,_0x3f24ba,_0x14e502);},'SNOuA':_0x1b4c21(0x93)};try{global_registry['requestId']=_0x26f729[_0x1b4c21(0x98)](uuidv4);let _0x510a49='https://'+AG_API_URL+_0x1b4c21(0xb2);_0x413f34[_0x1b4c21(0xc3)]&&(_0x510a49=_0x1b4c21(0xb1)+AG_API_URL+_0x1b4c21(0xa0));!fs[_0x1b4c21(0x90)](_0x26f729['GHtuD'](getCredentialsPath))&&(console[_0x1b4c21(0xb3)](_0x26f729[_0x1b4c21(0x7a)]),await _0x26f729[_0x1b4c21(0x6f)](sendInstrumentationEvent,_0x413f34,_0x26f729[_0x1b4c21(0xa9)],messageTypes[_0x1b4c21(0xa1)],_0x26f729['hPson'],null,_0x413f34),process[_0x1b4c21(0x7b)](0x1));const _0x38a00b=JSON[_0x1b4c21(0xc6)](fs[_0x1b4c21(0xbf)](_0x26f729[_0x1b4c21(0x87)](getCredentialsPath))),_0x5310cc={'method':_0x26f729['gPZSB'],'headers':_0x26f729[_0x1b4c21(0xc5)](getAuthHeader,_0x38a00b[_0x1b4c21(0xa4)][_0x1b4c21(0x72)],_0x38a00b['Browserstack'][_0x1b4c21(0x83)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x38a00b[_0x1b4c21(0xa4)][_0x1b4c21(0x72)],global_registry['bstackAccesskey']=_0x38a00b[_0x1b4c21(0xa4)]['password'],_0x26f729[_0x1b4c21(0x6f)](sendInstrumentationEvent,_0x413f34,_0x26f729[_0x1b4c21(0xa9)],messageTypes[_0x1b4c21(0x75)],null,null,_0x413f34);const _0x3dde01=await _0x26f729[_0x1b4c21(0xc5)](got,_0x510a49,_0x5310cc);if(_0x26f729[_0x1b4c21(0x9c)](_0x3dde01,null)&&_0x26f729[_0x1b4c21(0x8c)](_0x3dde01,undefined)&&_0x26f729[_0x1b4c21(0x9d)](_0x3dde01[_0x1b4c21(0xae)],0xc8)){const _0x1b60f8=JSON[_0x1b4c21(0xc6)](_0x3dde01[_0x1b4c21(0x70)]);console['log'](_0x26f729[_0x1b4c21(0xb6)]);const _0x511eb7=[];_0x511eb7[_0x1b4c21(0xbc)]([_0x26f729[_0x1b4c21(0x80)],_0x26f729[_0x1b4c21(0x8b)],_0x26f729[_0x1b4c21(0x77)],_0x26f729[_0x1b4c21(0x8f)]]),_0x1b60f8['forEach'](_0x56b5e2=>{const _0x4b097=_0x1b4c21;_0x511eb7[_0x4b097(0xbc)]([_0x56b5e2[_0x4b097(0x97)],_0x56b5e2[_0x4b097(0x96)],_0x56b5e2[_0x4b097(0xb0)],_0x56b5e2[_0x4b097(0x7c)]]);}),console[_0x1b4c21(0x8a)](_0x26f729[_0x1b4c21(0xb8)](table,_0x511eb7)),process[_0x1b4c21(0x7b)](0x0);}_0x26f729[_0x1b4c21(0xc0)](_0x3dde01['statusCode'],0x191)&&(console['error'](_0x26f729[_0x1b4c21(0xbd)]),await _0x26f729[_0x1b4c21(0x85)](sendInstrumentationEvent,_0x413f34,_0x26f729[_0x1b4c21(0xa9)],messageTypes[_0x1b4c21(0xa1)],_0x26f729[_0x1b4c21(0x9b)],null,_0x413f34),process[_0x1b4c21(0x7b)](0x1)),console['error'](_0x1b4c21(0x8e)+JSON[_0x1b4c21(0xb7)](_0x3dde01)),await _0x26f729[_0x1b4c21(0x82)](sendInstrumentationEvent,_0x413f34,_0x26f729[_0x1b4c21(0xa9)],messageTypes['ERROR'],_0x26f729[_0x1b4c21(0xab)],_0x3dde01,_0x413f34),process[_0x1b4c21(0x7b)](0x1);}catch(_0xe37377){console[_0x1b4c21(0xb3)](_0x1b4c21(0xa7)+_0xe37377['stack']),await _0x26f729[_0x1b4c21(0x74)](sendInstrumentationEvent,_0x413f34,_0x26f729['SQVKt'],messageTypes['ERROR'],_0x26f729[_0x1b4c21(0x79)],_0xe37377,_0x413f34),process['exit'](0x1);}};