browserstack-node-sdk 1.64.2 → 1.65.0

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 (225) 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/generated/sdk-messages-accessibility_pb.d.ts +70 -0
  41. package/generated/sdk-messages-accessibility_pb.js +545 -1
  42. package/generated/sdk_grpc_pb.d.ts +5 -0
  43. package/generated/sdk_grpc_pb.js +33 -0
  44. package/package.json +3 -3
  45. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  46. package/src/bin/codeceptjs/command.js +1 -1
  47. package/src/bin/codeceptjs/helper.js +1 -1
  48. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  49. package/src/bin/cucumber-js/command.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  51. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  52. package/src/bin/cucumber-js/test-observability.js +1 -1
  53. package/src/bin/cucumber-js/test.setup.js +1 -1
  54. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  55. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  56. package/src/bin/integrations/command.js +1 -1
  57. package/src/bin/integrations/constants.js +1 -1
  58. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  59. package/src/bin/jasmine/command.js +1 -1
  60. package/src/bin/jasmine/test.setup.js +1 -1
  61. package/src/bin/jasmine/testRunMap.js +1 -1
  62. package/src/bin/jest/command.js +1 -1
  63. package/src/bin/jest/customImplements/customCircus.js +1 -1
  64. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  65. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  66. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  67. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  68. package/src/bin/jest/jest.setup.js +1 -1
  69. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  70. package/src/bin/jest/test-observability/helper.js +1 -1
  71. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  72. package/src/bin/jest/test-observability/test-details.js +1 -1
  73. package/src/bin/jest/test.setup.js +1 -1
  74. package/src/bin/jest/test_before.setup.js +1 -1
  75. package/src/bin/launcher/launcher.js +1 -1
  76. package/src/bin/load/index.js +1 -1
  77. package/src/bin/load/loadErrors.js +1 -1
  78. package/src/bin/load/loadUtils.js +1 -1
  79. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  80. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  81. package/src/bin/mocha/command.js +1 -1
  82. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  83. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  84. package/src/bin/mocha/test.setup.js +1 -1
  85. package/src/bin/newman/command.js +1 -1
  86. package/src/bin/newman/helper.js +1 -1
  87. package/src/bin/newman/reporter/index.js +1 -1
  88. package/src/bin/newman/scriptRunner.js +1 -1
  89. package/src/bin/nightwatch/command.js +1 -1
  90. package/src/bin/node-generic/client.js +1 -0
  91. package/src/bin/playwright/accessibility-helper.js +1 -1
  92. package/src/bin/playwright/command.js +1 -1
  93. package/src/bin/playwright/globalSetup.js +1 -1
  94. package/src/bin/playwright/mock-process.js +1 -1
  95. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  96. package/src/bin/playwright/patches.js +1 -1
  97. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  98. package/src/bin/playwright/reporter/reporter.js +1 -1
  99. package/src/bin/playwright/reporter/test-details.js +1 -1
  100. package/src/bin/playwright/sessionDetails.js +1 -1
  101. package/src/bin/puppeteer/patches.js +1 -1
  102. package/src/bin/puppeteer/sessionDetails.js +1 -1
  103. package/src/bin/puppeteer/test.setup.js +1 -1
  104. package/src/bin/runner.js +1 -1
  105. package/src/bin/setup.js +1 -1
  106. package/src/bin/test-runner/index.js +1 -1
  107. package/src/bin/test-runner/runTest.js +1 -1
  108. package/src/bin/test-runner/testWorker.js +1 -1
  109. package/src/bin/testcafe/a11y-runner.js +1 -1
  110. package/src/bin/testcafe/command.js +1 -1
  111. package/src/bin/testcafe/reporter/index.js +1 -1
  112. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  113. package/src/bin/testcafe/session-registry.js +1 -1
  114. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  115. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  116. package/src/bin/testcafe/w3c-driver.js +1 -1
  117. package/src/bin/utils/apiUtilityMethods.js +1 -1
  118. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  119. package/src/bin/utils/constants.js +1 -1
  120. package/src/bin/utils/log4jsAppender.js +1 -1
  121. package/src/bin/utils/logPatcher.js +1 -1
  122. package/src/bin/utils/logReportingAPI.js +1 -1
  123. package/src/bin/utils/playwright-patcher.js +1 -1
  124. package/src/bin/utils/puppeteer-patcher.js +1 -1
  125. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  126. package/src/bin/utils/sharedUtils.js +1 -1
  127. package/src/bin/v2/TestInfo.js +1 -1
  128. package/src/bin/v2/browserstackCLI.js +1 -1
  129. package/src/bin/v2/cliUtils.js +1 -1
  130. package/src/bin/v2/customTagManager.js +1 -1
  131. package/src/bin/v2/eventDispatcher.js +1 -1
  132. package/src/bin/v2/framework/automationFramework.js +1 -1
  133. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  134. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  135. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  136. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  137. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  138. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -0
  139. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  141. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  142. package/src/bin/v2/framework/testFramework.js +1 -1
  143. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  144. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  145. package/src/bin/v2/grpcClient.js +1 -1
  146. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  147. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  148. package/src/bin/v2/instances/trackedContext.js +1 -1
  149. package/src/bin/v2/instances/trackedInstance.js +1 -1
  150. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  151. package/src/bin/v2/modules/baseModule.js +1 -1
  152. package/src/bin/v2/modules/loadTestModule.js +1 -1
  153. package/src/bin/v2/modules/observabilityModule.js +1 -1
  154. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  155. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  156. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  157. package/src/bin/v2/modules/testhubModule.js +1 -1
  158. package/src/bin/v2/sdkErrorHandler.js +1 -1
  159. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  160. package/src/bin/v2/state/hookState.js +1 -1
  161. package/src/bin/v2/state/testFrameworkState.js +1 -1
  162. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  163. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  164. package/src/bin/v2/utils/jest-utils.js +1 -1
  165. package/src/bin/vanilla-js/command.js +1 -1
  166. package/src/browserStackSdk.js +1 -1
  167. package/src/helpers/BrowserStackSetup.js +1 -1
  168. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  169. package/src/helpers/accessibility-automation/constants.js +1 -1
  170. package/src/helpers/accessibility-automation/helper.js +1 -1
  171. package/src/helpers/accessibility-automation/scripts.js +1 -1
  172. package/src/helpers/ats/constants.js +1 -1
  173. package/src/helpers/ats/helper.js +1 -1
  174. package/src/helpers/caCertHelper.js +1 -1
  175. package/src/helpers/capsMapping.js +1 -1
  176. package/src/helpers/central-scanner/constants.js +1 -1
  177. package/src/helpers/central-scanner/helpers.js +1 -1
  178. package/src/helpers/classLogger.js +1 -1
  179. package/src/helpers/driverInitErrorReporter.js +1 -1
  180. package/src/helpers/globals.js +1 -1
  181. package/src/helpers/helper.js +1 -1
  182. package/src/helpers/logger.js +1 -1
  183. package/src/helpers/metadata.js +1 -1
  184. package/src/helpers/patchHelper.js +1 -1
  185. package/src/helpers/patchHelpers.js +1 -1
  186. package/src/helpers/percy/Percy.js +1 -1
  187. package/src/helpers/percy/PercyBinary.js +1 -1
  188. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  189. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  190. package/src/helpers/percy/PercySDK.js +1 -1
  191. package/src/helpers/percy/index.js +1 -1
  192. package/src/helpers/percy/utils.js +1 -1
  193. package/src/helpers/performance/constants.js +1 -1
  194. package/src/helpers/performance/performance-tester.js +1 -1
  195. package/src/helpers/playwright-helper.js +1 -1
  196. package/src/helpers/processHelper.js +1 -1
  197. package/src/helpers/puppeteer-helper.js +1 -1
  198. package/src/helpers/request-spy.js +1 -1
  199. package/src/helpers/setKeepAlive.js +1 -1
  200. package/src/helpers/stackFrameUtils.js +1 -1
  201. package/src/helpers/test-observability/constants.js +1 -1
  202. package/src/helpers/test-observability/error-handler.js +1 -1
  203. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  204. package/src/helpers/test-observability/sessionHandler.js +1 -1
  205. package/src/helpers/test-observability/utils.js +1 -1
  206. package/src/helpers/test-orchestration/constants.js +1 -1
  207. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  208. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  209. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  210. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  211. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  212. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  213. package/src/helpers/testhub/constants.js +1 -1
  214. package/src/helpers/testhub/testhubHandler.js +1 -1
  215. package/src/helpers/testhub/utils.js +1 -1
  216. package/src/helpers/utilities.js +1 -1
  217. package/src/helpers/w3cMapping.js +1 -1
  218. package/src/hubAllocationMethods.js +1 -1
  219. package/src/index.js +1 -1
  220. package/src/ai-sdk-node/bundle.js +0 -1
  221. package/src/ai-sdk-node/extensions/chrome_extension.crx +0 -0
  222. package/src/bin/mocha/test-observability/builderPatch.js +0 -1
  223. package/src/helpers/ai-sdk/aiSdkWrapper.js +0 -1
  224. package/src/helpers/ai-sdk/autoHealHelper.js +0 -1
  225. package/src/helpers/timeoutPromise.js +0 -1
@@ -1 +1 @@
1
- const a85_0x34abc2=a85_0x2ce1;function a85_0x519f(){const _0x3cfa3d=['Yivnu','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','cli_version','Krytm','../../helpers/utilities','mtime','isBinaryBusy','skipSessionStatus','vgyJC','automationFrameworkDetail','Resolved\x20binary\x20path:\x20','aKCqx','development','CLI\x20version\x20found\x20despite\x20error:\x20\x22','0755','downloaded_file_','DOWNLOAD_HTTP','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','BAwfu','Failed\x20to\x20delete\x20zip\x20file:\x20','data','concat','close','7304670ynAvSR','Resolving\x20with\x20stdout:\x20\x22','lazyEntries','hALTr','LPNKm','ynwHW','mergeObject','SHELL_EXECUTE_ERROR','TDrQe','Folder\x20','split','VjTQP','28yDmwMm','code','getCurrentInstanceName','arch','end','IGQRv','testContextOptions','yteHP','fcpnR','downloadLatestBinary','FMlfl','map','../../helpers/performance/constants','VFwCJ','getSdkLanguage','MvwPK','3625296VOgajv','zctWK','GglNA','bVbur','uvCeg','../utils/constants','\x20from\x20','juMfv','BROWSERSTACK_FILES_DIR','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','BaPsd','291400kVVCGf','oxFuN','util','.sock','GET','../../helpers/test-observability/utils.js','BROWSERSTACK_BINARY_URL','dBPke','binary-','chmod','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','Downloading\x20SDK\x20binary\x20from:\x20','JtdIg','pipe','url','trim','HEPMG','follow-redirects','info','getSdkVersion','hmwIE','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','open','coWiY','AajQo','HOOK_REGEX','kPRzI','yauzl','\x20version','1335036EchLmc','getCliDir','.zip','format','UdmBN','OGvai','vPZVt','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','SDK_CLI_CHECK_UPDATE','oOpRi','Error\x20while\x20reading\x20CLI\x20path:\x20','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','shouldSkipSessionStatus','copyFileSync','cwd','filePath','BROWSERSTACK_CLI_ENV','5890654RHWGGB','testFrameworkDetail','checkAndUpdateCli','hNYCI','version','join','\x20already\x20exists','homedir','McZrF','statusCode','message','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','platform','.browserstack','vcvzB','unix:/tmp/sdk-platform-','nZMrg','openSync','MMgcO','Binary\x20is\x20busy:\x20','uCEJf','test','qUsGb','353049CyVVqA','statSync','child_process','timeout','kDRgW','142uazKbt','XBwGO','entry','readEntry','NOYVA','../../helpers/helper','ITSJF','iMUPE','MrKDq','shouldSkipSessionName','oInmC','warn','getWritableDir','10sXghol','Stskg','getCLIParamsForDevEnv','RgNPt','startsWith','getExistingCliPath','bcWIS','preserveStatusCodeOnError','unlink','requestToUpdateCLI','includes','createWriteStream','exports','vSKUm','stringify','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','AJzgC','UFDBj','filter',',\x20automationFramework=','SDK_CLI_DOWNLOAD','srqMb','pid','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','dKEzW','getTestFrameworkDetail','Development\x20Cli\x20Path:\x20','path','LmXAU','tcbdW','fileName','reduce','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','SoAqo','aJPbP','parse','runShellCommand','getAutomationFrameworkDetail','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','SFmJe','OhZbS','3|4|1|0|2','start','zyCIh','HTTP\x20','isArray','isDevelopmentEnv','../utils/apiUtilityMethods.js','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','spEpz','./instances/testFrameworkInstance.js','env','cBaoC','skipSessionName','readdirSync','downloadFileStream','./framework/constants/testFrameworkConstants.js','DZNwo','closeSync','../../helpers/performance/performance-tester.js','isFile','qnfns','worker_threads','rename','existsSync','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','Setting\x20required\x20permissions\x20to\x20','once','error','../../../package.json','./state/hookState.js','frrpR','WjXuZ','debug','OSknw','matchHookRegex','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','jIiEb','RRDxl','response\x20','Current\x20CLI\x20Path\x20Found:\x20','eQlDD','wOsUO','4006xNOlre','CLIUtils'];a85_0x519f=function(){return _0x3cfa3d;};return a85_0x519f();}(function(_0x837852,_0x5010a7){const _0x4fd71c=a85_0x2ce1,_0x3c3009=_0x837852();while(!![]){try{const _0x5c8d86=-parseInt(_0x4fd71c(0x104))/0x1*(-parseInt(_0x4fd71c(0xa4))/0x2)+-parseInt(_0x4fd71c(0x9f))/0x3+parseInt(_0x4fd71c(0x129))/0x4*(-parseInt(_0x4fd71c(0x144))/0x5)+parseInt(_0x4fd71c(0x161))/0x6+parseInt(_0x4fd71c(0x172))/0x7+parseInt(_0x4fd71c(0x139))/0x8+-parseInt(_0x4fd71c(0x11d))/0x9*(parseInt(_0x4fd71c(0xb1))/0xa);if(_0x5c8d86===_0x5010a7)break;else _0x3c3009['push'](_0x3c3009['shift']());}catch(_0x49a92c){_0x3c3009['push'](_0x3c3009['shift']());}}}(a85_0x519f,0x715d7));function a85_0x2ce1(_0x300ee6,_0x14fdc4){const _0x519f63=a85_0x519f();return a85_0x2ce1=function(_0x2ce1bb,_0x47f8a9){_0x2ce1bb=_0x2ce1bb-0x92;let _0x440a89=_0x519f63[_0x2ce1bb];return _0x440a89;},a85_0x2ce1(_0x300ee6,_0x14fdc4);}const fs=require('fs'),os=require('os'),url=require('url'),path=require(a85_0x34abc2(0xcc)),{exec}=require(a85_0x34abc2(0xa1)),{https}=require(a85_0x34abc2(0x155)),yauzl=require(a85_0x34abc2(0x15f)),util=require(a85_0x34abc2(0x146)),{getFrameworkVersion}=require(a85_0x34abc2(0x149)),{threadId}=require(a85_0x34abc2(0xef)),PerformanceTester=require(a85_0x34abc2(0xec)),{EVENTS:PerformanceEvents}=require(a85_0x34abc2(0x135)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x34abc2(0x10a)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x34abc2(0xa9)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x34abc2(0x13e)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a85_0x34abc2(0xe3)),HookState=require(a85_0x34abc2(0xf7)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a85_0x34abc2(0xe9)),logger=createClassLogger(a85_0x34abc2(0x105)),{getBStackAPIUrl}=require(a85_0x34abc2(0xe0));class CLIUtils{['automationFrameworkDetail']={};['testFrameworkDetail']={};static[a85_0x34abc2(0xdf)](){const _0x5e5593=a85_0x34abc2,_0x133ca6={};_0x133ca6[_0x5e5593(0x120)]=function(_0x7ea1ce,_0xc122d7){return _0x7ea1ce===_0xc122d7;},_0x133ca6[_0x5e5593(0x122)]=_0x5e5593(0x112);const _0x2433f9=_0x133ca6;return _0x2433f9[_0x5e5593(0x120)](process[_0x5e5593(0xe4)][_0x5e5593(0x171)],_0x2433f9[_0x5e5593(0x122)]);}static[a85_0x34abc2(0xb3)](){const _0x419c0d=a85_0x34abc2,_0x221a32={};return _0x221a32['id']=process[_0x419c0d(0xe4)][_0x419c0d(0x171)],_0x221a32['listen']=_0x419c0d(0x97)+process[_0x419c0d(0xe4)][_0x419c0d(0x171)]+_0x419c0d(0x147),_0x221a32;}static[a85_0x34abc2(0x157)](){const _0x14933f=a85_0x34abc2,_0xda835b={'OSknw':function(_0x5aa38e,_0x38674f){return _0x5aa38e(_0x38674f);},'GglNA':_0x14933f(0xf6)};return _0xda835b[_0x14933f(0xfb)](require,_0xda835b[_0x14933f(0x13b)])[_0x14933f(0x176)];}static[a85_0x34abc2(0x137)](){const _0x16fa63=a85_0x34abc2,_0x170e40={};_0x170e40[_0x16fa63(0x96)]='node';const _0x33940f=_0x170e40;return _0x33940f[_0x16fa63(0x96)];}static async['setupCliPath'](_0x1074fc){const _0x108013=a85_0x34abc2,_0x92d5f1={'cbxvU':'Configuring\x20Cli\x20path.','oInmC':function(_0x3e1121,_0x3b6b07){return _0x3e1121(_0x3b6b07);},'AdBvX':function(_0xf346e5,_0x3d24b5){return _0xf346e5(_0x3d24b5);},'zEJjA':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x108013(0xfa)](_0x92d5f1['cbxvU']);const _0xc123f1=process['env']['SDK_CLI_BIN_PATH'];if(!_0x92d5f1[_0x108013(0xae)](isNullOrEmpty,_0xc123f1))return logger['debug'](_0x108013(0xcb)+_0xc123f1),_0xc123f1;try{const _0x36f0de=this[_0x108013(0x162)]();if(_0x92d5f1['AdBvX'](isNullOrEmpty,_0x36f0de))throw new Error(_0x92d5f1['zEJjA']);const _0x4d6072=this[_0x108013(0xb6)](_0x36f0de),_0xd93771=await this[_0x108013(0x174)](_0x4d6072,_0x36f0de,_0x1074fc);return logger['debug'](_0x108013(0x110)+_0xd93771),_0xd93771;}catch(_0x29a4d2){logger[_0x108013(0xfa)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x108013(0x164)](_0x29a4d2));}return null;}static async[a85_0x34abc2(0x174)](_0x39bc58,_0x224241,_0x37aa64){const _0x274e4e=a85_0x34abc2,_0x2a35ff={'NOYVA':function(_0x404e01){return _0x404e01();},'JtdIg':function(_0x61850d,_0x3f4330){return _0x61850d(_0x3f4330);},'chfdu':function(_0x9dba81,_0x23f3d3,_0x5cfe2f){return _0x9dba81(_0x23f3d3,_0x5cfe2f);},'EhJbF':_0x274e4e(0x11a),'VFwCJ':'url','wOsUO':function(_0x548fab,_0x5f5731,_0x182cdc){return _0x548fab(_0x5f5731,_0x182cdc);}};PerformanceTester['start'](PerformanceEvents[_0x274e4e(0x169)]);try{logger[_0x274e4e(0x156)](_0x274e4e(0x101)+_0x39bc58);const _0x3e1e6f=_0x2a35ff[_0x274e4e(0xa8)](getHostInfo),_0x43f424={'sdk_version':CLIUtils[_0x274e4e(0x157)](),'os':_0x3e1e6f[_0x274e4e(0x94)],'os_arch':_0x3e1e6f[_0x274e4e(0x12c)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x2a35ff[_0x274e4e(0x150)](isNullOrEmpty,_0x39bc58)&&(_0x43f424[_0x274e4e(0x108)]=await this[_0x274e4e(0xd5)](_0x39bc58+_0x274e4e(0x160)));const _0x493362=await this[_0x274e4e(0xba)](_0x43f424,_0x37aa64);process[_0x274e4e(0xe4)]['BROWSERSTACK_BINARY_URL']&&(logger['info'](_0x274e4e(0x142)+process[_0x274e4e(0xe4)][_0x274e4e(0x14a)]),_0x493362[_0x274e4e(0x11a)][_0x274e4e(0x152)]=process[_0x274e4e(0xe4)][_0x274e4e(0x14a)]);if(_0x2a35ff['chfdu'](nestedKeyValue,_0x493362,[_0x2a35ff['EhJbF'],_0x2a35ff[_0x274e4e(0x136)]])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x43f424['cli_version']);if(!_0x2a35ff[_0x274e4e(0x150)](isNullOrEmpty,_0x39bc58)&&this[_0x274e4e(0x10c)](_0x39bc58))return logger[_0x274e4e(0xaf)](_0x274e4e(0x93)+_0x39bc58),_0x39bc58;return await this[_0x274e4e(0x132)](_0x2a35ff[_0x274e4e(0x103)](nestedKeyValue,_0x493362,[_0x2a35ff['EhJbF'],_0x2a35ff[_0x274e4e(0x136)]]),_0x224241);}return _0x39bc58;}finally{PerformanceTester[_0x274e4e(0x12d)](PerformanceEvents[_0x274e4e(0x169)]);}}static[a85_0x34abc2(0x162)](){const _0x301956=a85_0x34abc2,_0x1f815b={'kgMia':function(_0x29126f,_0x6edcac){return _0x29126f(_0x6edcac);},'jIiEb':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','DZNwo':'cli','PCOAK':function(_0x32e9ae,_0x15bfb0){return _0x32e9ae(_0x15bfb0);}},_0x23a5d2=this[_0x301956(0xb0)]();try{if(_0x1f815b['kgMia'](isNullOrEmpty,_0x23a5d2))throw new Error(_0x1f815b[_0x301956(0xfe)]);const _0xc71035=path[_0x301956(0x177)](_0x23a5d2,_0x1f815b[_0x301956(0xea)]);return!fs[_0x301956(0xf1)](_0xc71035)&&_0x1f815b['PCOAK'](createDir,_0xc71035),_0xc71035;}catch(_0x53d51e){logger[_0x301956(0xfa)](_0x301956(0xf2)+util[_0x301956(0x164)](_0x53d51e));}}static['getWritableDir'](){const _0x58769c=a85_0x34abc2,_0x1212be={'ITSJF':_0x58769c(0x95),'LmVtL':function(_0x5f1044,_0x2c5f23){return _0x5f1044(_0x2c5f23);},'LmXAU':function(_0x32a46a,_0x44c204){return _0x32a46a(_0x44c204);},'uhNDB':function(_0x47d9eb,_0x3e0079){return _0x47d9eb(_0x3e0079);},'Yivnu':function(_0x1a23d3,_0x4c29d8){return _0x1a23d3(_0x4c29d8);},'RgNPt':function(_0x55382b,_0x8bc29f){return _0x55382b(_0x8bc29f);},'cBaoC':function(_0x323cf4,_0x3fc758){return _0x323cf4(_0x3fc758);}},_0x19fcd1=[process['env'][_0x58769c(0x141)],path[_0x58769c(0x177)](os[_0x58769c(0x179)](),_0x1212be['ITSJF']),path[_0x58769c(0x177)](os['tmpdir'](),_0x1212be[_0x58769c(0xaa)])];for(const _0x28535b of _0x19fcd1){if(_0x1212be['LmVtL'](isNullOrEmpty,_0x28535b))continue;try{if(fs[_0x58769c(0xf1)](_0x28535b)){logger[_0x58769c(0xfa)](_0x58769c(0x126)+_0x28535b+_0x58769c(0x178));if(!_0x1212be[_0x58769c(0xcd)](isModifiable,_0x28535b)){logger['debug'](_0x58769c(0xf3)+_0x28535b);const _0x1e3720=_0x1212be['uhNDB'](setReadWriteExecuteAccess,_0x28535b);if(!_0x1212be[_0x58769c(0x106)](isTrue,_0x1e3720)){logger[_0x58769c(0xaf)](_0x58769c(0x117)+_0x28535b);continue;}}}else{logger['debug']('Folder\x20does\x20not\x20exist:\x20'+_0x28535b),_0x1212be[_0x58769c(0xb4)](createDir,_0x28535b),logger[_0x58769c(0xfa)](_0x58769c(0xf3)+_0x28535b);const _0x35a618=_0x1212be[_0x58769c(0xe5)](setReadWriteExecuteAccess,_0x28535b);!_0x1212be[_0x58769c(0x106)](isTrue,_0x35a618)&&logger[_0x58769c(0xaf)](_0x58769c(0x117)+_0x28535b);}return _0x28535b;}catch(_0x5962ae){logger[_0x58769c(0xf5)](_0x58769c(0x14e)+util[_0x58769c(0x164)](_0x5962ae));}}return null;}static[a85_0x34abc2(0xb6)](_0x30f840){const _0xdf9630=a85_0x34abc2,_0x35db46={};_0x35db46['yteHP']=function(_0x1474c7,_0x28f1e5){return _0x1474c7>_0x28f1e5;};const _0x4ba108=_0x35db46;try{if(!fs[_0xdf9630(0xf1)](_0x30f840)||!fs[_0xdf9630(0xa0)](_0x30f840)['isDirectory']())return'';const _0x4f9097=fs[_0xdf9630(0xe7)](_0x30f840)[_0xdf9630(0x134)](_0x27c9c0=>path[_0xdf9630(0x177)](_0x30f840,_0x27c9c0))[_0xdf9630(0xc3)](_0x5dd8bd=>fs[_0xdf9630(0xa0)](_0x5dd8bd)[_0xdf9630(0xed)]()&&path['basename'](_0x5dd8bd)[_0xdf9630(0xb5)](_0xdf9630(0x14c)));if(_0x4ba108[_0xdf9630(0x130)](_0x4f9097['length'],0x0)){const _0x158654=_0x4f9097[_0xdf9630(0x134)](_0x1661d9=>({'filePath':_0x1661d9,'mtime':fs[_0xdf9630(0xa0)](_0x1661d9)[_0xdf9630(0x10b)]}))[_0xdf9630(0xd0)]((_0x15b178,_0x3b4f21)=>{const _0x2ce015=_0xdf9630;if(!_0x15b178||!_0x15b178['mtime'])return _0x3b4f21;if(_0x4ba108[_0x2ce015(0x130)](_0x3b4f21[_0x2ce015(0x10b)],_0x15b178['mtime']))return _0x3b4f21;return _0x15b178;},{});return _0x158654?_0x158654[_0xdf9630(0x170)]:'';}return'';}catch(_0x206b93){return logger[_0xdf9630(0xf5)](_0xdf9630(0x16b)+util[_0xdf9630(0x164)](_0x206b93)),'';}}static [a85_0x34abc2(0xba)]=async(_0x11cc8d,_0x34b04a)=>{const _0x49e059=a85_0x34abc2,_0x2c6fe8={'tcbdW':function(_0x379509,_0x166128,_0x36707c,_0x4bd1fe,_0x289cbb){return _0x379509(_0x166128,_0x36707c,_0x4bd1fe,_0x289cbb);},'zyCIh':_0x49e059(0x148)},_0x2a3879={};_0x2a3879['qs']=_0x11cc8d,_0x2a3879[_0x49e059(0xb8)]=!![];const _0x4489df=await _0x2c6fe8[_0x49e059(0xce)](nodeRequest,_0x2c6fe8[_0x49e059(0xdc)],UPDATED_CLI_ENDPOINT,_0x2a3879,_0x34b04a);return logger[_0x49e059(0xfa)](_0x49e059(0x100)+JSON[_0x49e059(0xbf)](_0x4489df)),_0x4489df;};static['isBinaryBusy'](_0x491b16){const _0x3d44ba=a85_0x34abc2;try{const _0xd5db54=fs[_0x3d44ba(0x99)](_0x491b16,'r+');return fs[_0x3d44ba(0xeb)](_0xd5db54),![];}catch(_0x9bbcae){if(BINARY_BUSY_ERROR_CODES['includes'](_0x9bbcae[_0x3d44ba(0x12a)]))return logger[_0x3d44ba(0xfa)](_0x3d44ba(0x9b)+_0x491b16),!![];return logger['debug']('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x9bbcae[_0x3d44ba(0x92)]),![];}}static[a85_0x34abc2(0xd5)](_0x5b7e57,_0x3fdc34=''){const _0x1ccfff=a85_0x34abc2,_0x1ab1a5={'aKCqx':function(_0x23936f,_0x29c766){return _0x23936f(_0x29c766);},'dKEzW':_0x1ccfff(0x124),'Krytm':_0x1ccfff(0x176),'nZMrg':function(_0x3f16a4,_0x43da25){return _0x3f16a4(_0x43da25);},'eOxZy':function(_0x2ca664,_0xa984b,_0x4b1757,_0x30666d){return _0x2ca664(_0xa984b,_0x4b1757,_0x30666d);},'YknnE':_0x1ccfff(0xf5)};return new Promise((_0x4f5dc0,_0x1019e7)=>{const _0x418cdd=_0x1ccfff,_0x899527={'spEpz':_0x1ab1a5[_0x418cdd(0x109)],'coWiY':function(_0x4b5d56,_0x62fa31){return _0x1ab1a5['aKCqx'](_0x4b5d56,_0x62fa31);},'uAoQP':function(_0xc8fa29,_0x2a9261){const _0x6b61e8=_0x418cdd;return _0x1ab1a5[_0x6b61e8(0x98)](_0xc8fa29,_0x2a9261);},'WjXuZ':_0x1ab1a5['dKEzW']},_0x4cd340={};_0x4cd340[_0x418cdd(0x16f)]=_0x3fdc34,_0x4cd340[_0x418cdd(0xa2)]=0x1388;const _0x27f664=_0x1ab1a5['eOxZy'](exec,_0x5b7e57,_0x4cd340,(_0x2779e9,_0x288e37,_0x53e8e3)=>{const _0x2dffff=_0x418cdd;if(_0x2779e9){if(_0x5b7e57[_0x2dffff(0xbb)](_0x899527[_0x2dffff(0xe2)])&&(_0x288e37[_0x2dffff(0x153)]()||_0x53e8e3['trim']())){const _0x49f217=_0x288e37[_0x2dffff(0x153)]()||_0x53e8e3[_0x2dffff(0x153)]();logger[_0x2dffff(0xfa)](_0x2dffff(0x113)+_0x49f217+'\x22'),_0x899527['coWiY'](_0x4f5dc0,_0x49f217);}else _0x899527['uAoQP'](_0x4f5dc0,_0x53e8e3['trim']()||_0x899527[_0x2dffff(0xf9)]);}else logger[_0x2dffff(0xfa)](_0x2dffff(0x11e)+_0x288e37[_0x2dffff(0x153)]()+'\x22'),_0x899527[_0x2dffff(0x15b)](_0x4f5dc0,_0x288e37[_0x2dffff(0x153)]());});_0x27f664['on'](_0x1ab1a5['YknnE'],()=>{const _0x10560a=_0x418cdd;_0x1ab1a5[_0x10560a(0x111)](_0x4f5dc0,_0x1ab1a5[_0x10560a(0xc9)]);});});}static [a85_0x34abc2(0x132)]=async(_0x4654e8,_0x3b1fbd)=>{const _0x2ea3b9=a85_0x34abc2,_0x583bd2={'hmwIE':_0x2ea3b9(0x159),'bVbur':function(_0x2bfd30,_0x254efd){return _0x2bfd30(_0x254efd);},'iMUPE':_0x2ea3b9(0x107),'XBwGO':function(_0x440926,_0x9cca49){return _0x440926>=_0x9cca49;},'kPRzI':_0x2ea3b9(0x116),'OGvai':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','SoAqo':_0x2ea3b9(0xf5),'uvCeg':_0x2ea3b9(0x16c)};PerformanceTester[_0x2ea3b9(0xdb)](PerformanceEvents[_0x2ea3b9(0xc5)]),logger['debug'](_0x2ea3b9(0x14f)+_0x4654e8);try{const _0x3bc10d=url['parse'](_0x4654e8),_0x974bb=path[_0x2ea3b9(0x177)](_0x3b1fbd,_0x2ea3b9(0x115)+process[_0x2ea3b9(0xc7)]+_0x2ea3b9(0x163)),_0x37a43f=fs['createWriteStream'](_0x974bb);return new Promise((_0x48eba8,_0x1eafe5)=>{const _0xde3937=_0x2ea3b9,_0x38ca45={'VjTQP':_0x583bd2[_0xde3937(0x158)],'MMgcO':function(_0x263366,_0x240805){const _0x4ffa8f=_0xde3937;return _0x583bd2[_0x4ffa8f(0x13c)](_0x263366,_0x240805);},'OhZbS':_0x583bd2[_0xde3937(0xab)],'aJPbP':function(_0x1f861d,_0x3fdb5d){const _0x4221c1=_0xde3937;return _0x583bd2[_0x4221c1(0xa5)](_0x1f861d,_0x3fdb5d);},'McZrF':_0x583bd2[_0xde3937(0x15e)],'srqMb':_0x583bd2[_0xde3937(0x166)],'LPNKm':function(_0x404af9,_0xc78eef){const _0x2bc7ac=_0xde3937;return _0x583bd2[_0x2bc7ac(0x13c)](_0x404af9,_0xc78eef);},'dBPke':_0x583bd2[_0xde3937(0xd2)]};https['get'](_0x3bc10d,function(_0x1233c8){const _0x1701b1=_0xde3937,_0x402c51={'TElNG':_0x38ca45[_0x1701b1(0xd9)],'eQlDD':function(_0x9cbdf4,_0x1ca4d8){const _0x575635=_0x1701b1;return _0x38ca45[_0x575635(0x9a)](_0x9cbdf4,_0x1ca4d8);}},_0x3ef39a=null;if(_0x1233c8[_0x1701b1(0x17b)]&&_0x38ca45[_0x1701b1(0xd3)](_0x1233c8[_0x1701b1(0x17b)],0x190)){const _0x297b18=new Error(_0x1701b1(0xe1)+_0x1233c8[_0x1701b1(0x17b)]+_0x1701b1(0x13f)+_0x4654e8);_0x297b18[_0x1701b1(0x12a)]=_0x38ca45[_0x1701b1(0x17a)],_0x297b18[_0x1701b1(0x17b)]=_0x1233c8[_0x1701b1(0x17b)],logger[_0x1701b1(0xf5)](util[_0x1701b1(0x164)](_0x38ca45[_0x1701b1(0xc6)],_0x1233c8[_0x1701b1(0x17b)])),PerformanceTester[_0x1701b1(0x12d)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],_0x1701b1(0xdd)+_0x1233c8[_0x1701b1(0x17b)]),_0x1233c8['resume'](),_0x37a43f['destroy'](),fs[_0x1701b1(0xb9)](_0x974bb,()=>{}),_0x38ca45[_0x1701b1(0x121)](_0x1eafe5,_0x297b18);return;}_0x1233c8[_0x1701b1(0x151)](_0x37a43f),_0x1233c8['on'](_0x38ca45[_0x1701b1(0x14b)],function(_0xb275f8){const _0x351d88=_0x1701b1;logger[_0x351d88(0xf5)](util['format'](_0x402c51['TElNG'],_0xb275f8)),PerformanceTester[_0x351d88(0x12d)](PerformanceEvents[_0x351d88(0xc5)],![],util[_0x351d88(0x164)](_0xb275f8)),_0x402c51[_0x351d88(0x102)](_0x1eafe5,_0xb275f8);}),_0x37a43f['on'](_0x38ca45[_0x1701b1(0x14b)],function(_0x39d071){const _0x55bb6f=_0x1701b1;logger[_0x55bb6f(0xf5)](util['format'](_0x38ca45[_0x55bb6f(0x128)],_0x39d071)),PerformanceTester[_0x55bb6f(0x12d)](PerformanceEvents[_0x55bb6f(0xc5)],![],util[_0x55bb6f(0x164)](_0x39d071)),_0x38ca45[_0x55bb6f(0x9a)](_0x1eafe5,_0x39d071);}),CLIUtils[_0x1701b1(0xe8)](_0x37a43f,_0x3ef39a,_0x974bb,_0x3b1fbd,_0x348c2d=>{const _0xa319bd=_0x1701b1;PerformanceTester[_0xa319bd(0x12d)](PerformanceEvents[_0xa319bd(0xc5)]),_0x38ca45[_0xa319bd(0x9a)](_0x48eba8,_0x348c2d);},_0x23613d=>{const _0x32a4c8=_0x1701b1;PerformanceTester[_0x32a4c8(0x12d)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x32a4c8(0x164)](_0x23613d)),_0x402c51[_0x32a4c8(0x102)](_0x1eafe5,_0x23613d);});})['on'](_0x583bd2['SoAqo'],function(_0x96e052){const _0x190230=_0xde3937;logger[_0x190230(0xf5)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x190230(0x164)](_0x96e052)),PerformanceTester[_0x190230(0x12d)](PerformanceEvents[_0x190230(0xc5)],![],util[_0x190230(0x164)](_0x96e052)),_0x38ca45['MMgcO'](_0x1eafe5,_0x96e052);});});}catch(_0x369fed){PerformanceTester[_0x2ea3b9(0x12d)](PerformanceEvents[_0x2ea3b9(0xc5)],![],util[_0x2ea3b9(0x164)](_0x369fed)),logger[_0x2ea3b9(0xf5)](util[_0x2ea3b9(0x164)](_0x583bd2[_0x2ea3b9(0x13d)],_0x369fed));throw _0x369fed;}};static[a85_0x34abc2(0xe8)](_0x236897,_0x144d62,_0xf3b245,_0x16b2a5,_0x2b87e9,_0xbdcec3){const _0x4f2168=a85_0x34abc2,_0x1a33aa={'hNYCI':function(_0x246103,_0x356c48){return _0x246103(_0x356c48);},'TDrQe':_0x4f2168(0x11c),'SFmJe':_0x4f2168(0x12d),'UFDBj':function(_0x14481e,_0x109a17){return _0x14481e!==_0x109a17;},'HEPMG':function(_0x163d17,_0x4a8fa0){return _0x163d17(_0x4a8fa0);},'uCEJf':_0x4f2168(0xf5),'rnsRW':'EXDEV','juMfv':function(_0x25f313,_0x3cf6de){return _0x25f313(_0x3cf6de);},'FMlfl':function(_0x1c8917,_0x11488e){return _0x1c8917(_0x11488e);},'Stskg':function(_0x31dc9a,_0x5237af){return _0x31dc9a(_0x5237af);},'oxFuN':_0x4f2168(0xa6),'pFHhZ':_0x4f2168(0x114)};_0x236897['on'](_0x1a33aa[_0x4f2168(0x125)],function(){const _0x41beb9=_0x4f2168,_0xc84515={'frrpR':function(_0x15644b,_0x405c25){const _0x2537c1=a85_0x2ce1;return _0x1a33aa[_0x2537c1(0x133)](_0x15644b,_0x405c25);},'bcWIS':_0x1a33aa['pFHhZ']},_0xcfb3e5={};_0xcfb3e5[_0x41beb9(0x11f)]=!![],yauzl[_0x41beb9(0x15a)](_0xf3b245,_0xcfb3e5,function(_0x412c66,_0x2a8ce0){const _0x11d5a6=_0x41beb9,_0x27c11e={'IGQRv':function(_0x4fa8da,_0x2c39a6){const _0x552fcc=a85_0x2ce1;return _0x1a33aa[_0x552fcc(0x175)](_0x4fa8da,_0x2c39a6);},'vgyJC':_0x1a33aa['TDrQe'],'vSKUm':_0x1a33aa[_0x11d5a6(0xd8)],'vPZVt':function(_0x507cc2,_0xe9df3e){return _0x1a33aa['UFDBj'](_0x507cc2,_0xe9df3e);},'eRAVZ':function(_0x5a0d3f,_0x20398e){const _0x328fc0=_0x11d5a6;return _0x1a33aa[_0x328fc0(0x175)](_0x5a0d3f,_0x20398e);},'MvwPK':function(_0x4d35ff,_0x5b955b){const _0x4ebd61=_0x11d5a6;return _0x1a33aa[_0x4ebd61(0x154)](_0x4d35ff,_0x5b955b);},'lIZBL':_0x1a33aa[_0x11d5a6(0x9c)],'MrKDq':function(_0x8fe41c,_0x397ce8){const _0x459f31=_0x11d5a6;return _0x1a33aa[_0x459f31(0xc2)](_0x8fe41c,_0x397ce8);},'qnfns':_0x1a33aa['rnsRW'],'AajQo':function(_0x5b30b6,_0x134767){const _0x371bc3=_0x11d5a6;return _0x1a33aa[_0x371bc3(0x140)](_0x5b30b6,_0x134767);},'UdmBN':function(_0x79024a,_0x192577){return _0x1a33aa['FMlfl'](_0x79024a,_0x192577);}};if(_0x412c66){_0x1a33aa[_0x11d5a6(0xb2)](_0xbdcec3,_0x412c66);return;}_0x2a8ce0[_0x11d5a6(0xa7)](),_0x2a8ce0['on'](_0x1a33aa[_0x11d5a6(0x145)],_0x57f9c1=>{const _0x24a3a5=_0x11d5a6,_0x3999ba={'hJuzR':_0x27c11e[_0x24a3a5(0x10e)],'fcpnR':function(_0x404e47,_0x2a8ad5){const _0xf549a=_0x24a3a5;return _0x27c11e[_0xf549a(0x12e)](_0x404e47,_0x2a8ad5);},'kdJNN':_0x27c11e[_0x24a3a5(0xbe)]};if(/\/$/[_0x24a3a5(0x9d)](_0x57f9c1['fileName'])){_0x2a8ce0[_0x24a3a5(0xa7)]();return;}!_0x144d62&&(_0x144d62=_0x57f9c1[_0x24a3a5(0xcf)]);if(_0x27c11e[_0x24a3a5(0x167)](_0x57f9c1['fileName'],_0x144d62))_0x2a8ce0[_0x24a3a5(0xa7)]();else{const _0x223287=_0x57f9c1[_0x24a3a5(0xcf)],_0xac1cf5=path['join'](_0x16b2a5,_0x223287+'.tmp.'+process[_0x24a3a5(0xc7)]);let _0x1e2cfa;try{_0x1e2cfa=fs[_0x24a3a5(0xbc)](_0xac1cf5);}catch(_0x389987){if(BINARY_BUSY_ERROR_CODES[_0x24a3a5(0xbb)](_0x389987['code'])){const _0x776c58=path[_0x24a3a5(0x177)](_0x16b2a5,_0x223287);if(fs[_0x24a3a5(0xf1)](_0x776c58)){logger[_0x24a3a5(0xaf)](_0x24a3a5(0xd1)+_0x223287),fs[_0x24a3a5(0xb9)](_0xf3b245,_0x3a2270=>{const _0xa4a3f9=_0x24a3a5;_0x3a2270&&logger[_0xa4a3f9(0xaf)](_0xa4a3f9(0x119)+_0xf3b245);}),_0x27c11e['eRAVZ'](_0x2b87e9,_0x776c58);return;}logger[_0x24a3a5(0xaf)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x223287);}_0x27c11e[_0x24a3a5(0x138)](_0xbdcec3,_0x389987);return;}_0x1e2cfa['on'](_0x27c11e['lIZBL'],_0x48a7a0=>{const _0x19f4b3=_0x24a3a5;if(BINARY_BUSY_ERROR_CODES[_0x19f4b3(0xbb)](_0x48a7a0['code'])){const _0x2afc15=path[_0x19f4b3(0x177)](_0x16b2a5,_0x223287);_0x1e2cfa['close'](),fs['existsSync'](_0x2afc15)?(logger[_0x19f4b3(0xaf)](_0x19f4b3(0xc8)+_0x48a7a0[_0x19f4b3(0x92)]),_0x2a8ce0[_0x19f4b3(0x11c)](),fs['unlink'](_0xf3b245,_0x72b455=>{const _0x41baea=_0x19f4b3;_0x72b455&&logger[_0x41baea(0xaf)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0xf3b245);}),_0x27c11e[_0x19f4b3(0x12e)](_0x2b87e9,_0x2afc15)):(logger[_0x19f4b3(0xaf)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x48a7a0[_0x19f4b3(0x92)]),fs[_0x19f4b3(0xb9)](_0xac1cf5,()=>{}),_0x27c11e[_0x19f4b3(0x12e)](_0xbdcec3,_0x48a7a0));}else fs[_0x19f4b3(0xb9)](_0xac1cf5,()=>{}),_0x27c11e[_0x19f4b3(0x12e)](_0xbdcec3,_0x48a7a0);}),_0x2a8ce0['openReadStream'](_0x57f9c1,function(_0x350da7,_0x39fd63){const _0x40eba5=_0x24a3a5;if(_0x350da7){fs['unlink'](_0xac1cf5,()=>{}),_0x3999ba[_0x40eba5(0x131)](_0xbdcec3,_0x350da7);return;}_0x39fd63['on'](_0x3999ba['kdJNN'],function(){const _0x1992f4=_0x40eba5;_0x1e2cfa[_0x1992f4(0x12d)](),_0x1e2cfa['on'](_0x3999ba['hJuzR'],function(){const _0x1c06e9=_0x1992f4;_0x2a8ce0[_0x1c06e9(0xa7)]();});}),_0x39fd63[_0x40eba5(0x151)](_0x1e2cfa);});}}),_0x2a8ce0['on'](_0x1a33aa[_0x11d5a6(0x9c)],_0x29de0c=>{const _0x5d0534=_0x11d5a6;_0xc84515[_0x5d0534(0xf8)](_0xbdcec3,_0x29de0c);}),_0x2a8ce0[_0x11d5a6(0xf4)](_0x1a33aa['SFmJe'],()=>{const _0x245330=_0x11d5a6;fs['unlink'](_0xf3b245,_0x233afb=>{const _0x253284=a85_0x2ce1;_0x233afb&&logger[_0x253284(0xaf)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0xf3b245);});const _0x52fc68=path[_0x245330(0x177)](_0x16b2a5,_0x144d62+'.tmp.'+process[_0x245330(0xc7)]),_0x60106b=path[_0x245330(0x177)](_0x16b2a5,_0x144d62);fs[_0x245330(0x14d)](_0x52fc68,_0xc84515[_0x245330(0xb7)],function(_0x9cbf17){const _0x426a6c=_0x245330,_0x5ee347={'zctWK':function(_0x41ea90,_0x48ebf8){const _0x14c833=a85_0x2ce1;return _0x27c11e[_0x14c833(0xac)](_0x41ea90,_0x48ebf8);},'BaPsd':_0x27c11e[_0x426a6c(0xee)],'qUsGb':function(_0x5ad799,_0x2a1153){const _0x370042=_0x426a6c;return _0x27c11e[_0x370042(0x15c)](_0x5ad799,_0x2a1153);}};if(_0x9cbf17){_0x2a8ce0[_0x426a6c(0x11c)](),fs[_0x426a6c(0xb9)](_0x52fc68,()=>{}),_0x27c11e[_0x426a6c(0x165)](_0xbdcec3,_0x9cbf17);return;}fs[_0x426a6c(0xf0)](_0x52fc68,_0x60106b,function(_0x3e877a){const _0x2b9f1d=_0x426a6c;if(_0x3e877a){if(_0x5ee347[_0x2b9f1d(0x13a)](_0x3e877a[_0x2b9f1d(0x12a)],_0x5ee347[_0x2b9f1d(0x143)])){_0x2a8ce0[_0x2b9f1d(0x11c)](),fs[_0x2b9f1d(0xb9)](_0x52fc68,()=>{}),_0x5ee347[_0x2b9f1d(0x9e)](_0xbdcec3,_0x3e877a);return;}logger[_0x2b9f1d(0xaf)](_0x2b9f1d(0x168)+_0x3e877a[_0x2b9f1d(0x92)]);try{fs[_0x2b9f1d(0x16e)](_0x52fc68,_0x60106b);}catch(_0x42c075){_0x2a8ce0[_0x2b9f1d(0x11c)](),fs['unlink'](_0x52fc68,()=>{}),_0x5ee347[_0x2b9f1d(0x9e)](_0xbdcec3,_0x42c075);return;}fs[_0x2b9f1d(0xb9)](_0x52fc68,_0x5a38ea=>{const _0x3a139d=_0x2b9f1d;_0x5a38ea&&logger[_0x3a139d(0xaf)](_0x3a139d(0xfd)+_0x5a38ea[_0x3a139d(0x92)]);});}_0x2a8ce0[_0x2b9f1d(0x11c)](),_0x5ee347['qUsGb'](_0x2b87e9,_0x60106b);});});});});});}static[a85_0x34abc2(0xca)](){const _0x394bc3=a85_0x34abc2;if(process[_0x394bc3(0xe4)][_0x394bc3(0xd7)])return JSON[_0x394bc3(0xd4)](process[_0x394bc3(0xe4)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this['testFrameworkDetail'];}static[a85_0x34abc2(0xd6)](){const _0x31899d=a85_0x34abc2;if(process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x31899d(0xd4)](process[_0x31899d(0xe4)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this[_0x31899d(0x10f)];}static['setFrameworkDetail'](_0x5e5e85,_0x510cf9){const _0x13bb69=a85_0x34abc2,_0x2a47c1={'BAwfu':_0x13bb69(0xda),'oOpRi':function(_0x2bcd2e,_0x3ff6ea){return _0x2bcd2e(_0x3ff6ea);},'kDRgW':function(_0x79026a,_0x2d2c27){return _0x79026a||_0x2d2c27;}},_0x5a025f=_0x2a47c1[_0x13bb69(0x118)][_0x13bb69(0x127)]('|');let _0x4cf136=0x0;while(!![]){switch(_0x5a025f[_0x4cf136++]){case'0':process[_0x13bb69(0xe4)][_0x13bb69(0xc0)]=JSON['stringify'](this[_0x13bb69(0x10f)]);continue;case'1':this[_0x13bb69(0x10f)]={'name':_0x510cf9,'version':_0x2a47c1[_0x13bb69(0x16a)](getFrameworkVersion,_0x510cf9)};continue;case'2':process[_0x13bb69(0xe4)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']=JSON[_0x13bb69(0xbf)](this[_0x13bb69(0x173)]);continue;case'3':_0x2a47c1[_0x13bb69(0xa3)](!_0x5e5e85,!_0x510cf9)&&logger[_0x13bb69(0xfa)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x5e5e85+_0x13bb69(0xc4)+_0x510cf9);continue;case'4':this[_0x13bb69(0x173)]={'name':_0x5e5e85,'version':{[_0x5e5e85]:_0x2a47c1[_0x13bb69(0x16a)](getFrameworkVersion,_0x5e5e85)}};continue;}break;}}static['getHookRegistryKey'](_0x38f206,_0x37d692){return _0x38f206+':'+_0x37d692;}static[a85_0x34abc2(0x12b)](){const _0x238341=a85_0x34abc2;return process[_0x238341(0xc7)]+':'+threadId;}static[a85_0x34abc2(0xad)](_0x17af19){const _0x29cf80=a85_0x34abc2;if(_0x17af19[_0x29cf80(0x12f)]&&_0x17af19['testContextOptions'][_0x29cf80(0xe6)])return!![];return![];}static[a85_0x34abc2(0x16d)](_0x4eaccc){const _0x2d369e=a85_0x34abc2;if(_0x4eaccc[_0x2d369e(0x12f)]&&_0x4eaccc[_0x2d369e(0x12f)][_0x2d369e(0x10d)])return!![];return![];}static[a85_0x34abc2(0xfc)](_0x48769c){const _0x18e816=a85_0x34abc2,_0x506266=new RegExp(TestFrameworkConstants[_0x18e816(0x15d)]);return _0x506266[_0x18e816(0x9d)](_0x48769c);}static[a85_0x34abc2(0x123)](_0x45564f,_0x4401a6){const _0x495dec=a85_0x34abc2,_0x21f2a9={};_0x21f2a9[_0x495dec(0xc1)]=function(_0x445611,_0x211f46){return _0x445611!==_0x211f46;},_0x21f2a9[_0x495dec(0xff)]=function(_0x326348,_0x49f2d3){return _0x326348===_0x49f2d3;},_0x21f2a9['LoqFx']='object';const _0x2e70d2=_0x21f2a9;for(const [_0x12a5c4,_0x4be875]of Object['entries'](_0x4401a6)){if(_0x2e70d2[_0x495dec(0xc1)](_0x4be875,null)&&_0x2e70d2[_0x495dec(0xff)](typeof _0x4be875,_0x2e70d2['LoqFx'])&&!Array[_0x495dec(0xde)](_0x4be875))_0x45564f[_0x12a5c4]=this[_0x495dec(0x123)](_0x45564f[_0x12a5c4]||{},_0x4be875);else Array[_0x495dec(0xde)](_0x4be875)?_0x45564f[_0x12a5c4]=(_0x45564f[_0x12a5c4]||[])[_0x495dec(0x11b)](_0x4be875):_0x45564f[_0x12a5c4]=_0x4be875;}return _0x45564f;}}module[a85_0x34abc2(0xbd)]=CLIUtils;
1
+ function a84_0x636e(_0x2c35a4,_0x274c06){const _0x27db04=a84_0x27db();return a84_0x636e=function(_0x636ec1,_0x5b8cd9){_0x636ec1=_0x636ec1-0x134;let _0x4b9922=_0x27db04[_0x636ec1];return _0x4b9922;},a84_0x636e(_0x2c35a4,_0x274c06);}const a84_0x20218f=a84_0x636e;(function(_0x96bbff,_0x9cabbc){const _0x2625cf=a84_0x636e,_0x18b78e=_0x96bbff();while(!![]){try{const _0x4351ac=parseInt(_0x2625cf(0x153))/0x1+parseInt(_0x2625cf(0x1af))/0x2*(parseInt(_0x2625cf(0x1a4))/0x3)+-parseInt(_0x2625cf(0x1b3))/0x4*(parseInt(_0x2625cf(0x1dc))/0x5)+-parseInt(_0x2625cf(0x1f8))/0x6+parseInt(_0x2625cf(0x181))/0x7*(-parseInt(_0x2625cf(0x144))/0x8)+-parseInt(_0x2625cf(0x1fc))/0x9+parseInt(_0x2625cf(0x163))/0xa;if(_0x4351ac===_0x9cabbc)break;else _0x18b78e['push'](_0x18b78e['shift']());}catch(_0x4e162c){_0x18b78e['push'](_0x18b78e['shift']());}}}(a84_0x27db,0xa413b));const fs=require('fs'),os=require('os'),url=require(a84_0x20218f(0x1df)),path=require(a84_0x20218f(0x145)),{exec}=require(a84_0x20218f(0x16b)),{https}=require('follow-redirects'),yauzl=require(a84_0x20218f(0x1f9)),util=require(a84_0x20218f(0x1fa)),{getFrameworkVersion}=require(a84_0x20218f(0x167)),{threadId}=require(a84_0x20218f(0x1d4)),PerformanceTester=require(a84_0x20218f(0x164)),{EVENTS:PerformanceEvents}=require(a84_0x20218f(0x208)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a84_0x20218f(0x1bc)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a84_0x20218f(0x1cd)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a84_0x20218f(0x186)),{createClassLogger}=require(a84_0x20218f(0x1c1)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require('./state/hookState.js'),TestFrameworkState=require(a84_0x20218f(0x1a7)),AutomationFrameworkState=require(a84_0x20218f(0x1b0)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a84_0x20218f(0x194));class CLIUtils{['automationFrameworkDetail']={};[a84_0x20218f(0x174)]={};static[a84_0x20218f(0x178)](){const _0x312725=a84_0x20218f,_0x310002={};_0x310002[_0x312725(0x210)]=function(_0xfb6a6e,_0x19f6dc){return _0xfb6a6e===_0x19f6dc;},_0x310002[_0x312725(0x1e3)]='development';const _0x44f1ea=_0x310002;return _0x44f1ea[_0x312725(0x210)](process[_0x312725(0x13e)][_0x312725(0x1cb)],_0x44f1ea[_0x312725(0x1e3)]);}static[a84_0x20218f(0x139)](){const _0x1d9cf7=a84_0x20218f,_0x437d34={};return _0x437d34['id']=process['env'][_0x1d9cf7(0x1cb)],_0x437d34[_0x1d9cf7(0x18e)]='unix:/tmp/sdk-platform-'+process[_0x1d9cf7(0x13e)][_0x1d9cf7(0x1cb)]+_0x1d9cf7(0x1f1),_0x437d34;}static[a84_0x20218f(0x191)](){const _0x47cb5f=a84_0x20218f,_0x279fb3={'ZgGnQ':function(_0x5d6ea3,_0x3daeb7){return _0x5d6ea3(_0x3daeb7);},'MumiQ':_0x47cb5f(0x13b)};return _0x279fb3[_0x47cb5f(0x1ca)](require,_0x279fb3[_0x47cb5f(0x20a)])[_0x47cb5f(0x1e7)];}static[a84_0x20218f(0x155)](){const _0xed5cfe=a84_0x20218f,_0x3d5176={};_0x3d5176['HUWcO']=_0xed5cfe(0x1eb);const _0x402827=_0x3d5176;return _0x402827[_0xed5cfe(0x18b)];}static async['setupCliPath'](_0x34d7ac){const _0x966486=a84_0x20218f,_0x154865={'aPJtM':'Configuring\x20Cli\x20path.','BASBO':function(_0x2bf36a,_0x4bd632){return _0x2bf36a(_0x4bd632);},'harkF':_0x966486(0x1d7)};logger[_0x966486(0x187)](_0x154865[_0x966486(0x1e5)]);const _0x17fec4=process['env'][_0x966486(0x13d)];if(!_0x154865['BASBO'](isNullOrEmpty,_0x17fec4))return logger[_0x966486(0x187)](_0x966486(0x137)+_0x17fec4),_0x17fec4;try{const _0x1b18c8=this[_0x966486(0x1f5)]();if(_0x154865[_0x966486(0x16e)](isNullOrEmpty,_0x1b18c8))throw new Error(_0x154865['harkF']);const _0x1e64e9=this['getExistingCliPath'](_0x1b18c8),_0x36964f=await this[_0x966486(0x1c7)](_0x1e64e9,_0x1b18c8,_0x34d7ac);return logger['debug'](_0x966486(0x17a)+_0x36964f),_0x36964f;}catch(_0x1d9984){logger[_0x966486(0x187)](_0x966486(0x142)+util[_0x966486(0x140)](_0x1d9984));}return null;}static async[a84_0x20218f(0x1c7)](_0x3fa655,_0x4b1248,_0x51f4c8){const _0x3f4789=a84_0x20218f,_0x3cb2b0={'gzlWV':function(_0x37fe44){return _0x37fe44();},'DNStT':function(_0x56d8aa,_0x1ec3a3){return _0x56d8aa(_0x1ec3a3);},'lSIvm':function(_0x1dfa1f,_0x3c2425,_0x122809){return _0x1dfa1f(_0x3c2425,_0x122809);},'nhVgq':_0x3f4789(0x1d6),'AJeEl':_0x3f4789(0x1df),'HJvum':function(_0x5d06f9,_0x58d85e,_0x127788){return _0x5d06f9(_0x58d85e,_0x127788);}};PerformanceTester[_0x3f4789(0x14d)](PerformanceEvents[_0x3f4789(0x1a8)]);try{logger[_0x3f4789(0x19b)](_0x3f4789(0x1cc)+_0x3fa655);const _0x3aeeb5=_0x3cb2b0[_0x3f4789(0x159)](getHostInfo),_0x148611={'sdk_version':CLIUtils[_0x3f4789(0x191)](),'os':_0x3aeeb5['platform'],'os_arch':_0x3aeeb5[_0x3f4789(0x18a)],'cli_version':'0','sdk_language':this[_0x3f4789(0x155)]()};!_0x3cb2b0['DNStT'](isNullOrEmpty,_0x3fa655)&&(_0x148611[_0x3f4789(0x1a6)]=await this[_0x3f4789(0x15c)](_0x3fa655+_0x3f4789(0x162)));const _0xf5a206=await this['requestToUpdateCLI'](_0x148611,_0x51f4c8);process[_0x3f4789(0x13e)][_0x3f4789(0x13f)]&&(logger['info']('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x3f4789(0x13e)][_0x3f4789(0x13f)]),_0xf5a206[_0x3f4789(0x1d6)][_0x3f4789(0x1df)]=process[_0x3f4789(0x13e)]['BROWSERSTACK_BINARY_URL']);if(_0x3cb2b0[_0x3f4789(0x197)](nestedKeyValue,_0xf5a206,[_0x3cb2b0['nhVgq'],_0x3cb2b0[_0x3f4789(0x202)]])){logger[_0x3f4789(0x187)](_0x3f4789(0x14e)+_0x148611[_0x3f4789(0x1a6)]);if(!_0x3cb2b0[_0x3f4789(0x17c)](isNullOrEmpty,_0x3fa655)&&this[_0x3f4789(0x150)](_0x3fa655))return logger['warn']('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0x3fa655),_0x3fa655;return await this[_0x3f4789(0x13c)](_0x3cb2b0[_0x3f4789(0x1c5)](nestedKeyValue,_0xf5a206,[_0x3cb2b0['nhVgq'],_0x3cb2b0[_0x3f4789(0x202)]]),_0x4b1248);}return _0x3fa655;}finally{PerformanceTester[_0x3f4789(0x20c)](PerformanceEvents[_0x3f4789(0x1a8)]);}}static[a84_0x20218f(0x1f5)](){const _0xd586e5=a84_0x20218f,_0x15a9af={'dYQrV':function(_0x131789,_0x3297ea){return _0x131789(_0x3297ea);},'yKbIV':_0xd586e5(0x1d7),'heWmN':_0xd586e5(0x205)},_0xd1a2c1=this['getWritableDir']();try{if(_0x15a9af[_0xd586e5(0x1d5)](isNullOrEmpty,_0xd1a2c1))throw new Error(_0x15a9af['yKbIV']);const _0x1bf930=path['join'](_0xd1a2c1,_0x15a9af[_0xd586e5(0x1e8)]);return!fs[_0xd586e5(0x177)](_0x1bf930)&&_0x15a9af[_0xd586e5(0x1d5)](createDir,_0x1bf930),_0x1bf930;}catch(_0x4aa82a){logger[_0xd586e5(0x187)]('Error\x20in\x20getting\x20writable\x20directory,\x20writableDir='+util[_0xd586e5(0x140)](_0x4aa82a));}}static[a84_0x20218f(0x15b)](){const _0x672204=a84_0x20218f,_0x3f222d={'Tsfsj':_0x672204(0x1b2),'XHhaY':function(_0x1d96f0,_0x17a6fb){return _0x1d96f0(_0x17a6fb);},'TGtcF':function(_0x4fbcb7,_0x2eab23){return _0x4fbcb7(_0x2eab23);},'WPxTe':function(_0x59a48b,_0x3aae93){return _0x59a48b(_0x3aae93);}},_0x3f312b=[process[_0x672204(0x13e)][_0x672204(0x156)],path['join'](os['homedir'](),_0x3f222d[_0x672204(0x15d)]),path['join'](os[_0x672204(0x136)](),_0x3f222d[_0x672204(0x15d)])];for(const _0x4ce512 of _0x3f312b){if(_0x3f222d[_0x672204(0x1ce)](isNullOrEmpty,_0x4ce512))continue;try{if(fs[_0x672204(0x177)](_0x4ce512)){logger[_0x672204(0x187)](_0x672204(0x1c6)+_0x4ce512+_0x672204(0x183));if(!_0x3f222d[_0x672204(0x1ce)](isModifiable,_0x4ce512)){logger[_0x672204(0x187)](_0x672204(0x214)+_0x4ce512);const _0x17b420=_0x3f222d['XHhaY'](setReadWriteExecuteAccess,_0x4ce512);if(!_0x3f222d[_0x672204(0x18c)](isTrue,_0x17b420)){logger[_0x672204(0x189)](_0x672204(0x16c)+_0x4ce512);continue;}}}else{logger[_0x672204(0x187)](_0x672204(0x13a)+_0x4ce512),_0x3f222d[_0x672204(0x18c)](createDir,_0x4ce512),logger[_0x672204(0x187)](_0x672204(0x214)+_0x4ce512);const _0x2bdf0e=_0x3f222d['TGtcF'](setReadWriteExecuteAccess,_0x4ce512);!_0x3f222d[_0x672204(0x1d2)](isTrue,_0x2bdf0e)&&logger['warn'](_0x672204(0x16c)+_0x4ce512);}return _0x4ce512;}catch(_0xae8098){logger[_0x672204(0x20f)](_0x672204(0x15f)+util['format'](_0xae8098));}}return null;}static[a84_0x20218f(0x17e)](_0x364d87){const _0x5cb249=a84_0x20218f,_0x56a073={};_0x56a073['DZUCu']=function(_0x380c82,_0x7a14bf){return _0x380c82>_0x7a14bf;},_0x56a073['tJvPZ']=function(_0x50f4bf,_0x12d493){return _0x50f4bf>_0x12d493;};const _0x4bd358=_0x56a073;try{if(!fs[_0x5cb249(0x177)](_0x364d87)||!fs['statSync'](_0x364d87)[_0x5cb249(0x1b1)]())return'';const _0x5ae893=fs[_0x5cb249(0x16a)](_0x364d87)[_0x5cb249(0x1c8)](_0x43dee8=>path[_0x5cb249(0x169)](_0x364d87,_0x43dee8))['filter'](_0x29cbf5=>fs[_0x5cb249(0x1da)](_0x29cbf5)[_0x5cb249(0x1a5)]()&&path[_0x5cb249(0x219)](_0x29cbf5)[_0x5cb249(0x1ee)](_0x5cb249(0x215)));if(_0x4bd358[_0x5cb249(0x217)](_0x5ae893[_0x5cb249(0x1ab)],0x0)){const _0x93ddc5=_0x5ae893[_0x5cb249(0x1c8)](_0x8fd36b=>({'filePath':_0x8fd36b,'mtime':fs[_0x5cb249(0x1da)](_0x8fd36b)[_0x5cb249(0x207)]}))[_0x5cb249(0x1fe)]((_0x2feed0,_0x5bb957)=>{const _0x368e61=_0x5cb249;if(!_0x2feed0||!_0x2feed0['mtime'])return _0x5bb957;if(_0x4bd358[_0x368e61(0x1db)](_0x5bb957['mtime'],_0x2feed0[_0x368e61(0x207)]))return _0x5bb957;return _0x2feed0;},{});return _0x93ddc5?_0x93ddc5['filePath']:'';}return'';}catch(_0x263499){return logger[_0x5cb249(0x20f)](_0x5cb249(0x171)+util[_0x5cb249(0x140)](_0x263499)),'';}}static [a84_0x20218f(0x184)]=async(_0x253f87,_0x4ec21a)=>{const _0x332398=a84_0x20218f,_0x157779={'ZwJvG':function(_0x4d4fa8,_0x1caca3,_0x31f20e,_0x200d6e,_0x3ddcfd){return _0x4d4fa8(_0x1caca3,_0x31f20e,_0x200d6e,_0x3ddcfd);},'LqSNi':_0x332398(0x1fd)},_0x5e81f4={};_0x5e81f4['qs']=_0x253f87,_0x5e81f4[_0x332398(0x1ec)]=!![];const _0x2b24b2=await _0x157779['ZwJvG'](nodeRequest,_0x157779[_0x332398(0x172)],UPDATED_CLI_ENDPOINT,_0x5e81f4,_0x4ec21a);return logger[_0x332398(0x187)](_0x332398(0x18f)+JSON[_0x332398(0x201)](_0x2b24b2)),_0x2b24b2;};static[a84_0x20218f(0x150)](_0x33ae25){const _0x2dcee3=a84_0x20218f;try{const _0x34585c=fs[_0x2dcee3(0x19a)](_0x33ae25,'r+');return fs[_0x2dcee3(0x1d1)](_0x34585c),![];}catch(_0x83b751){if(BINARY_BUSY_ERROR_CODES['includes'](_0x83b751['code']))return logger[_0x2dcee3(0x187)](_0x2dcee3(0x192)+_0x33ae25),!![];return logger[_0x2dcee3(0x187)]('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x83b751[_0x2dcee3(0x199)]),![];}}static[a84_0x20218f(0x15c)](_0x24c5f1,_0xae8a93=''){const _0x534685=a84_0x20218f,_0x4d5f2d={'LmrQC':function(_0x4d26d7,_0x2b02df){return _0x4d26d7(_0x2b02df);},'UUyEh':_0x534685(0x185),'NWqyk':'version','dwkFH':function(_0x355dfb,_0x5c66d2){return _0x355dfb(_0x5c66d2);},'ZbDHB':function(_0x1eec01,_0x1e905c){return _0x1eec01(_0x1e905c);},'LEZdQ':function(_0x2874ea,_0x25a623,_0x5182e8,_0x2a37c7){return _0x2874ea(_0x25a623,_0x5182e8,_0x2a37c7);},'OQLSX':_0x534685(0x20f)};return new Promise((_0x250d2d,_0x341c59)=>{const _0x1c4e17=_0x534685,_0x56b978={'NlSkt':_0x4d5f2d[_0x1c4e17(0x193)],'rLduC':function(_0x372249,_0x3f1afa){return _0x4d5f2d['dwkFH'](_0x372249,_0x3f1afa);},'JyAyA':function(_0x2c5d6f,_0x509f49){const _0x124271=_0x1c4e17;return _0x4d5f2d[_0x124271(0x1be)](_0x2c5d6f,_0x509f49);},'MGMvg':_0x4d5f2d['UUyEh']},_0x309a54={};_0x309a54[_0x1c4e17(0x1c2)]=_0xae8a93,_0x309a54['timeout']=0x1388;const _0x19e4d2=_0x4d5f2d['LEZdQ'](exec,_0x24c5f1,_0x309a54,(_0x36be61,_0x13a14d,_0x2d5310)=>{const _0x5dfd13=_0x1c4e17;if(_0x36be61){if(_0x24c5f1[_0x5dfd13(0x1ea)](_0x56b978[_0x5dfd13(0x1a3)])&&(_0x13a14d[_0x5dfd13(0x165)]()||_0x2d5310['trim']())){const _0x173201=_0x13a14d[_0x5dfd13(0x165)]()||_0x2d5310[_0x5dfd13(0x165)]();logger[_0x5dfd13(0x187)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x173201+'\x22'),_0x56b978[_0x5dfd13(0x1a1)](_0x250d2d,_0x173201);}else _0x56b978['JyAyA'](_0x250d2d,_0x2d5310['trim']()||_0x56b978['MGMvg']);}else logger[_0x5dfd13(0x187)](_0x5dfd13(0x161)+_0x13a14d[_0x5dfd13(0x165)]()+'\x22'),_0x56b978[_0x5dfd13(0x209)](_0x250d2d,_0x13a14d[_0x5dfd13(0x165)]());});_0x19e4d2['on'](_0x4d5f2d[_0x1c4e17(0x170)],()=>{const _0x35ce4c=_0x1c4e17;_0x4d5f2d[_0x35ce4c(0x19c)](_0x250d2d,_0x4d5f2d[_0x35ce4c(0x21a)]);});});}static [a84_0x20218f(0x13c)]=async(_0x4d34ff,_0x56edda)=>{const _0x4f818f=a84_0x20218f,_0x25c0ac={'XfKcW':_0x4f818f(0x204),'lYjgi':function(_0x2075bf,_0x4b30d5){return _0x2075bf(_0x4b30d5);},'mEGOI':'Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','GwNSB':function(_0x4ee5b3,_0x3f7168){return _0x4ee5b3>=_0x3f7168;},'qGhjP':_0x4f818f(0x151),'bwGYd':_0x4f818f(0x1f4),'lxszc':_0x4f818f(0x20f),'sCvtX':function(_0x560a1c,_0x2e4cdb){return _0x560a1c(_0x2e4cdb);},'WOkFA':_0x4f818f(0x1d8)};PerformanceTester[_0x4f818f(0x14d)](PerformanceEvents[_0x4f818f(0x1ad)]),logger['debug'](_0x4f818f(0x200)+_0x4d34ff);try{const _0x4b43b1=url[_0x4f818f(0x1bd)](_0x4d34ff),_0x36f312=path[_0x4f818f(0x169)](_0x56edda,'downloaded_file_'+process[_0x4f818f(0x20d)]+_0x4f818f(0x14a)),_0xa2c55e=fs[_0x4f818f(0x14c)](_0x36f312);return new Promise((_0x108776,_0x41cc7e)=>{const _0x210ee2=_0x4f818f,_0x165ab5={'xYOPd':function(_0x23d9d6,_0x4614c9){const _0x39843b=a84_0x636e;return _0x25c0ac[_0x39843b(0x157)](_0x23d9d6,_0x4614c9);}};https[_0x210ee2(0x173)](_0x4b43b1,function(_0x12c1e3){const _0x3f6a0d=_0x210ee2,_0x53035c={'dPQAx':_0x25c0ac[_0x3f6a0d(0x19f)],'sdEUY':function(_0x194474,_0x338f85){const _0x3c7a52=_0x3f6a0d;return _0x25c0ac[_0x3c7a52(0x1e6)](_0x194474,_0x338f85);},'bGbCp':_0x25c0ac['mEGOI'],'koRGT':function(_0x121013,_0x478ed6){return _0x25c0ac['lYjgi'](_0x121013,_0x478ed6);}},_0x3a1bae=null;if(_0x12c1e3[_0x3f6a0d(0x138)]&&_0x25c0ac['GwNSB'](_0x12c1e3[_0x3f6a0d(0x138)],0x190)){const _0x5c4fb2=new Error(_0x3f6a0d(0x141)+_0x12c1e3[_0x3f6a0d(0x138)]+_0x3f6a0d(0x20e)+_0x4d34ff);_0x5c4fb2['code']=_0x25c0ac['qGhjP'],_0x5c4fb2[_0x3f6a0d(0x138)]=_0x12c1e3[_0x3f6a0d(0x138)],logger[_0x3f6a0d(0x20f)](util[_0x3f6a0d(0x140)](_0x25c0ac[_0x3f6a0d(0x1b7)],_0x12c1e3[_0x3f6a0d(0x138)])),PerformanceTester['end'](PerformanceEvents[_0x3f6a0d(0x1ad)],![],'HTTP\x20'+_0x12c1e3[_0x3f6a0d(0x138)]),_0x12c1e3[_0x3f6a0d(0x206)](),_0xa2c55e[_0x3f6a0d(0x1d3)](),fs['unlink'](_0x36f312,()=>{}),_0x25c0ac[_0x3f6a0d(0x1e6)](_0x41cc7e,_0x5c4fb2);return;}_0x12c1e3[_0x3f6a0d(0x14f)](_0xa2c55e),_0x12c1e3['on'](_0x25c0ac['lxszc'],function(_0x222c07){const _0x2c30bd=_0x3f6a0d;logger[_0x2c30bd(0x20f)](util[_0x2c30bd(0x140)](_0x53035c[_0x2c30bd(0x154)],_0x222c07)),PerformanceTester[_0x2c30bd(0x20c)](PerformanceEvents[_0x2c30bd(0x1ad)],![],util[_0x2c30bd(0x140)](_0x222c07)),_0x53035c[_0x2c30bd(0x148)](_0x41cc7e,_0x222c07);}),_0xa2c55e['on'](_0x25c0ac[_0x3f6a0d(0x16d)],function(_0x122fb9){const _0x3bad39=_0x3f6a0d;logger['error'](util['format'](_0x53035c[_0x3bad39(0x1a9)],_0x122fb9)),PerformanceTester[_0x3bad39(0x20c)](PerformanceEvents[_0x3bad39(0x1ad)],![],util[_0x3bad39(0x140)](_0x122fb9)),_0x53035c[_0x3bad39(0x148)](_0x41cc7e,_0x122fb9);}),CLIUtils[_0x3f6a0d(0x203)](_0xa2c55e,_0x3a1bae,_0x36f312,_0x56edda,_0x3625f0=>{const _0x3f3991=_0x3f6a0d;PerformanceTester['end'](PerformanceEvents[_0x3f3991(0x1ad)]),_0x53035c[_0x3f3991(0x135)](_0x108776,_0x3625f0);},_0x437bc7=>{const _0x5cfadc=_0x3f6a0d;PerformanceTester[_0x5cfadc(0x20c)](PerformanceEvents[_0x5cfadc(0x1ad)],![],util[_0x5cfadc(0x140)](_0x437bc7)),_0x165ab5[_0x5cfadc(0x1d9)](_0x41cc7e,_0x437bc7);});})['on'](_0x25c0ac[_0x210ee2(0x16d)],function(_0x403788){const _0x5013f1=_0x210ee2;logger[_0x5013f1(0x20f)](_0x5013f1(0x1ff)+util[_0x5013f1(0x140)](_0x403788)),PerformanceTester[_0x5013f1(0x20c)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x5013f1(0x140)](_0x403788)),_0x165ab5[_0x5013f1(0x1d9)](_0x41cc7e,_0x403788);});});}catch(_0x146551){PerformanceTester[_0x4f818f(0x20c)](PerformanceEvents[_0x4f818f(0x1ad)],![],util[_0x4f818f(0x140)](_0x146551)),logger['error'](util[_0x4f818f(0x140)](_0x25c0ac[_0x4f818f(0x1f3)],_0x146551));throw _0x146551;}};static[a84_0x20218f(0x203)](_0x5441b2,_0x45f43a,_0x2577a1,_0x14ae59,_0x54b5f1,_0x56d5f3){const _0x39c881=a84_0x20218f,_0x69dece={'fYBoQ':function(_0x3e6547,_0x3ca8d1){return _0x3e6547!==_0x3ca8d1;},'ZwteK':_0x39c881(0x1ed),'KcLWl':function(_0x2f3fd3,_0x2864f2){return _0x2f3fd3(_0x2864f2);},'bEAaP':_0x39c881(0x1d0),'OweYF':_0x39c881(0x20c),'kMEVx':_0x39c881(0x1e9),'ioAXP':function(_0x413bbb,_0x14d7a4){return _0x413bbb(_0x14d7a4);},'nbsHY':_0x39c881(0x20f),'ORsMX':function(_0x589c29,_0x4ba523){return _0x589c29(_0x4ba523);},'akyzk':'entry'};_0x5441b2['on'](_0x69dece[_0x39c881(0x19d)],function(){const _0x5eb285=_0x39c881,_0x35723e={'AuvXw':function(_0x2c5e48,_0x51c8af){const _0x1f1baa=a84_0x636e;return _0x69dece[_0x1f1baa(0x1f7)](_0x2c5e48,_0x51c8af);},'pBXqO':_0x69dece['ZwteK'],'hBGwW':function(_0xae85f6,_0x82f2c8){const _0x393320=a84_0x636e;return _0x69dece[_0x393320(0x176)](_0xae85f6,_0x82f2c8);},'PPsTQ':function(_0x5a2663,_0xb6326a){return _0x69dece['KcLWl'](_0x5a2663,_0xb6326a);},'MghFH':_0x69dece[_0x5eb285(0x213)],'UheAs':_0x69dece['OweYF'],'XKjhh':_0x69dece[_0x5eb285(0x19d)],'WIxZK':function(_0x5e024d,_0x2c8de8){const _0x97b23d=_0x5eb285;return _0x69dece[_0x97b23d(0x1f7)](_0x5e024d,_0x2c8de8);},'YGJXn':function(_0x5c3c5c,_0x4bd8fa){return _0x69dece['ioAXP'](_0x5c3c5c,_0x4bd8fa);},'iaDko':_0x69dece['nbsHY'],'oBbNs':function(_0x1285bd,_0x305365){return _0x69dece['ORsMX'](_0x1285bd,_0x305365);},'fuLCo':_0x69dece[_0x5eb285(0x179)]},_0x3d4076={};_0x3d4076['lazyEntries']=!![],yauzl[_0x5eb285(0x18d)](_0x2577a1,_0x3d4076,function(_0x5b4e1d,_0x57fdbc){const _0x49bf90=_0x5eb285,_0x3f9f29={'PEqgB':function(_0x444f32,_0x30f2de){const _0x1ecf89=a84_0x636e;return _0x35723e[_0x1ecf89(0x15a)](_0x444f32,_0x30f2de);},'CoCpZ':_0x35723e[_0x49bf90(0x1b5)],'NHXIx':function(_0x23e67d,_0x5ec360){return _0x35723e['PPsTQ'](_0x23e67d,_0x5ec360);},'ZSYbP':_0x35723e[_0x49bf90(0x1f6)],'ugulA':function(_0x499562,_0x1c599e){const _0xd1198f=_0x49bf90;return _0x35723e[_0xd1198f(0x147)](_0x499562,_0x1c599e);},'ZBmEE':function(_0x5bc3f8,_0x459ba8){const _0x5242ca=_0x49bf90;return _0x35723e[_0x5242ca(0x1de)](_0x5bc3f8,_0x459ba8);},'LYqGl':_0x35723e[_0x49bf90(0x14b)],'wAoUb':function(_0x986e80,_0x39841c){const _0x5679bf=_0x49bf90;return _0x35723e[_0x5679bf(0x1ef)](_0x986e80,_0x39841c);}};if(_0x5b4e1d){_0x35723e[_0x49bf90(0x15a)](_0x56d5f3,_0x5b4e1d);return;}_0x57fdbc[_0x49bf90(0x17f)](),_0x57fdbc['on'](_0x35723e[_0x49bf90(0x1a2)],_0x588ed6=>{const _0x184fff=_0x49bf90,_0x1bf255={'bhVLK':function(_0x480bf9,_0x3629c7){const _0x1497a6=a84_0x636e;return _0x3f9f29[_0x1497a6(0x158)](_0x480bf9,_0x3629c7);},'LzxHU':_0x3f9f29['ZSYbP']};if(/\/$/['test'](_0x588ed6[_0x184fff(0x182)])){_0x57fdbc[_0x184fff(0x17f)]();return;}!_0x45f43a&&(_0x45f43a=_0x588ed6['fileName']);if(_0x3f9f29[_0x184fff(0x1fb)](_0x588ed6[_0x184fff(0x182)],_0x45f43a))_0x57fdbc['readEntry']();else{const _0x3ca9c7=_0x588ed6[_0x184fff(0x182)],_0x5b9ee0=path[_0x184fff(0x169)](_0x14ae59,_0x3ca9c7+'.tmp.'+process['pid']);let _0x2dc15d;try{_0x2dc15d=fs[_0x184fff(0x14c)](_0x5b9ee0);}catch(_0x1dc5bb){if(BINARY_BUSY_ERROR_CODES['includes'](_0x1dc5bb[_0x184fff(0x134)])){const _0x263f4b=path[_0x184fff(0x169)](_0x14ae59,_0x3ca9c7);if(fs[_0x184fff(0x177)](_0x263f4b)){logger[_0x184fff(0x189)](_0x184fff(0x175)+_0x3ca9c7),fs[_0x184fff(0x212)](_0x2577a1,_0x520c90=>{const _0xd72aa0=_0x184fff;_0x520c90&&logger['warn'](_0xd72aa0(0x17b)+_0x2577a1);}),_0x3f9f29['NHXIx'](_0x54b5f1,_0x263f4b);return;}logger[_0x184fff(0x189)]('Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x3ca9c7);}_0x3f9f29['ZBmEE'](_0x56d5f3,_0x1dc5bb);return;}_0x2dc15d['on'](_0x3f9f29[_0x184fff(0x195)],_0x4888ad=>{const _0xbd2591=_0x184fff;if(BINARY_BUSY_ERROR_CODES[_0xbd2591(0x1ea)](_0x4888ad['code'])){const _0x205f32=path[_0xbd2591(0x169)](_0x14ae59,_0x3ca9c7);_0x2dc15d[_0xbd2591(0x1e9)](),fs[_0xbd2591(0x177)](_0x205f32)?(logger[_0xbd2591(0x189)](_0xbd2591(0x198)+_0x4888ad[_0xbd2591(0x199)]),_0x57fdbc['close'](),fs[_0xbd2591(0x212)](_0x2577a1,_0x585a04=>{const _0x2b4b25=_0xbd2591;_0x585a04&&logger[_0x2b4b25(0x189)](_0x2b4b25(0x17b)+_0x2577a1);}),_0x1bf255[_0xbd2591(0x1bb)](_0x54b5f1,_0x205f32)):(logger[_0xbd2591(0x189)]('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x4888ad[_0xbd2591(0x199)]),fs[_0xbd2591(0x212)](_0x5b9ee0,()=>{}),_0x1bf255['bhVLK'](_0x56d5f3,_0x4888ad));}else fs[_0xbd2591(0x212)](_0x5b9ee0,()=>{}),_0x1bf255[_0xbd2591(0x1bb)](_0x56d5f3,_0x4888ad);}),_0x57fdbc[_0x184fff(0x166)](_0x588ed6,function(_0x1569dd,_0x5a0831){const _0x977579=_0x184fff;if(_0x1569dd){fs[_0x977579(0x212)](_0x5b9ee0,()=>{}),_0x3f9f29[_0x977579(0x17d)](_0x56d5f3,_0x1569dd);return;}_0x5a0831['on'](_0x3f9f29[_0x977579(0x190)],function(){const _0x5ac867=_0x977579;_0x2dc15d[_0x5ac867(0x20c)](),_0x2dc15d['on'](_0x1bf255[_0x5ac867(0x1c4)],function(){const _0x55ae93=_0x5ac867;_0x57fdbc[_0x55ae93(0x17f)]();});}),_0x5a0831[_0x977579(0x14f)](_0x2dc15d);});}}),_0x57fdbc['on'](_0x35723e[_0x49bf90(0x14b)],_0x124640=>{const _0xc14ade=_0x49bf90;_0x3f9f29[_0xc14ade(0x1b6)](_0x56d5f3,_0x124640);}),_0x57fdbc[_0x49bf90(0x1b9)](_0x35723e[_0x49bf90(0x1b5)],()=>{const _0x5a41e4=_0x49bf90,_0x58f0e2={'jfaNA':function(_0x20d95d,_0x23508f){const _0x2eb844=a84_0x636e;return _0x35723e[_0x2eb844(0x1cf)](_0x20d95d,_0x23508f);},'MCBRo':_0x35723e['pBXqO'],'MJHiu':function(_0x44662f,_0x465342){const _0xf51c00=a84_0x636e;return _0x35723e[_0xf51c00(0x1e1)](_0x44662f,_0x465342);},'fFdAu':function(_0x169065,_0x2161f4){const _0x12c7b7=a84_0x636e;return _0x35723e[_0x12c7b7(0x1e1)](_0x169065,_0x2161f4);},'jFUzu':function(_0x4bc721,_0x35d2a3){return _0x35723e['PPsTQ'](_0x4bc721,_0x35d2a3);},'fGRvB':function(_0x41866e,_0x210f09){const _0x50934f=a84_0x636e;return _0x35723e[_0x50934f(0x1e1)](_0x41866e,_0x210f09);}};fs[_0x5a41e4(0x212)](_0x2577a1,_0x453e7a=>{const _0x410a7e=_0x5a41e4;_0x453e7a&&logger[_0x410a7e(0x189)](_0x410a7e(0x17b)+_0x2577a1);});const _0x7e33cb=path[_0x5a41e4(0x169)](_0x14ae59,_0x45f43a+_0x5a41e4(0x218)+process['pid']),_0x45aa34=path[_0x5a41e4(0x169)](_0x14ae59,_0x45f43a);fs[_0x5a41e4(0x196)](_0x7e33cb,_0x35723e[_0x5a41e4(0x1ae)],function(_0x19345b){const _0x5c9c2e=_0x5a41e4;if(_0x19345b){_0x57fdbc[_0x5c9c2e(0x1e9)](),fs['unlink'](_0x7e33cb,()=>{}),_0x58f0e2[_0x5c9c2e(0x149)](_0x56d5f3,_0x19345b);return;}fs[_0x5c9c2e(0x1f2)](_0x7e33cb,_0x45aa34,function(_0x3e154d){const _0x343cac=_0x5c9c2e;if(_0x3e154d){if(_0x58f0e2['jfaNA'](_0x3e154d['code'],_0x58f0e2['MCBRo'])){_0x57fdbc[_0x343cac(0x1e9)](),fs['unlink'](_0x7e33cb,()=>{}),_0x58f0e2[_0x343cac(0x1e4)](_0x56d5f3,_0x3e154d);return;}logger[_0x343cac(0x189)](_0x343cac(0x1c9)+_0x3e154d[_0x343cac(0x199)]);try{fs['copyFileSync'](_0x7e33cb,_0x45aa34);}catch(_0x1f1256){_0x57fdbc[_0x343cac(0x1e9)](),fs[_0x343cac(0x212)](_0x7e33cb,()=>{}),_0x58f0e2[_0x343cac(0x152)](_0x56d5f3,_0x1f1256);return;}fs[_0x343cac(0x212)](_0x7e33cb,_0x48599c=>{const _0x403291=_0x343cac;_0x48599c&&logger[_0x403291(0x189)](_0x403291(0x180)+_0x48599c[_0x403291(0x199)]);});}_0x57fdbc[_0x343cac(0x1e9)](),_0x58f0e2[_0x343cac(0x1b8)](_0x54b5f1,_0x45aa34);});});});});});}static['getTestFrameworkDetail'](){const _0x56147b=a84_0x20218f;if(process[_0x56147b(0x13e)][_0x56147b(0x1e2)])return JSON['parse'](process[_0x56147b(0x13e)][_0x56147b(0x1e2)]);return this[_0x56147b(0x174)];}static[a84_0x20218f(0x211)](){const _0x1e616b=a84_0x20218f;if(process[_0x1e616b(0x13e)][_0x1e616b(0x15e)])return JSON[_0x1e616b(0x1bd)](process['env'][_0x1e616b(0x15e)]);return this[_0x1e616b(0x1e0)];}static[a84_0x20218f(0x188)](_0x53c8dd,_0x108453){const _0x36ed13=a84_0x20218f,_0x406fc0={'yBplo':_0x36ed13(0x216),'qwCkd':function(_0x2ec15e,_0x3857f4){return _0x2ec15e(_0x3857f4);},'paoeY':function(_0x4666a2,_0x329283){return _0x4666a2||_0x329283;},'PUEaP':function(_0x384f16,_0x445c0e){return _0x384f16(_0x445c0e);}},_0x1d1f1c=_0x406fc0[_0x36ed13(0x168)]['split']('|');let _0x2f4fec=0x0;while(!![]){switch(_0x1d1f1c[_0x2f4fec++]){case'0':this[_0x36ed13(0x1e0)]={'name':_0x108453,'version':_0x406fc0[_0x36ed13(0x1b4)](getFrameworkVersion,_0x108453)};continue;case'1':process['env'][_0x36ed13(0x1e2)]=JSON[_0x36ed13(0x201)](this[_0x36ed13(0x174)]);continue;case'2':_0x406fc0['paoeY'](!_0x53c8dd,!_0x108453)&&logger[_0x36ed13(0x187)](_0x36ed13(0x1ac)+_0x53c8dd+_0x36ed13(0x1bf)+_0x108453);continue;case'3':this[_0x36ed13(0x174)]={'name':_0x53c8dd,'version':{[_0x53c8dd]:_0x406fc0[_0x36ed13(0x1c3)](getFrameworkVersion,_0x53c8dd)}};continue;case'4':process[_0x36ed13(0x13e)][_0x36ed13(0x15e)]=JSON[_0x36ed13(0x201)](this[_0x36ed13(0x1e0)]);continue;}break;}}static['getHookRegistryKey'](_0x310085,_0x45d1be){return _0x310085+':'+_0x45d1be;}static[a84_0x20218f(0x19e)](){return process['pid']+':'+threadId;}static[a84_0x20218f(0x160)](_0x47ffac){const _0x267a04=a84_0x20218f;if(_0x47ffac[_0x267a04(0x16f)]&&_0x47ffac[_0x267a04(0x16f)]['skipSessionName'])return!![];return![];}static[a84_0x20218f(0x146)](_0x48701e){const _0x5a7ffa=a84_0x20218f;if(_0x48701e[_0x5a7ffa(0x16f)]&&_0x48701e['testContextOptions']['skipSessionStatus'])return!![];return![];}static['matchHookRegex'](_0x1899f9){const _0x439398=a84_0x20218f,_0x49218d=new RegExp(TestFrameworkConstants[_0x439398(0x1a0)]);return _0x49218d[_0x439398(0x143)](_0x1899f9);}static['mergeObject'](_0x4550db,_0x369cec){const _0x21c5cd=a84_0x20218f,_0x1dbc4a={};_0x1dbc4a[_0x21c5cd(0x1ba)]=function(_0x47752e,_0x15f9ee){return _0x47752e!==_0x15f9ee;},_0x1dbc4a['gqKeq']=function(_0x39bc1d,_0x30bcca){return _0x39bc1d===_0x30bcca;},_0x1dbc4a[_0x21c5cd(0x1dd)]=_0x21c5cd(0x1f0);const _0x2fa73c=_0x1dbc4a;for(const [_0x1807a9,_0x9bcde4]of Object['entries'](_0x369cec)){if(_0x2fa73c[_0x21c5cd(0x1ba)](_0x9bcde4,null)&&_0x2fa73c['gqKeq'](typeof _0x9bcde4,_0x2fa73c[_0x21c5cd(0x1dd)])&&!Array['isArray'](_0x9bcde4))_0x4550db[_0x1807a9]=this[_0x21c5cd(0x1c0)](_0x4550db[_0x1807a9]||{},_0x9bcde4);else Array[_0x21c5cd(0x1aa)](_0x9bcde4)?_0x4550db[_0x1807a9]=(_0x4550db[_0x1807a9]||[])['concat'](_0x9bcde4):_0x4550db[_0x1807a9]=_0x9bcde4;}return _0x4550db;}}module[a84_0x20218f(0x20b)]=CLIUtils;function a84_0x27db(){const _0x43d55e=['Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','KcLWl','existsSync','isDevelopmentEnv','akyzk','Resolved\x20binary\x20path:\x20','Failed\x20to\x20delete\x20zip\x20file:\x20','DNStT','PEqgB','getExistingCliPath','readEntry','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','1019613lvZiAi','fileName','\x20already\x20exists','requestToUpdateCLI','SHELL_EXECUTE_ERROR','../utils/constants','debug','setFrameworkDetail','warn','arch','HUWcO','TGtcF','open','listen','response\x20','CoCpZ','getSdkVersion','Binary\x20is\x20busy:\x20','NWqyk','../utils/apiUtilityMethods.js','LYqGl','chmod','lSIvm','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','message','openSync','info','LmrQC','kMEVx','getCurrentInstanceName','XfKcW','HOOK_REGEX','rLduC','fuLCo','NlSkt','24ircYjL','isFile','cli_version','./state/testFrameworkState.js','SDK_CLI_CHECK_UPDATE','bGbCp','isArray','length','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','SDK_CLI_DOWNLOAD','MghFH','110004iaeAfI','./state/automationFrameworkState.js','isDirectory','.browserstack','2988328TZkyxn','qwCkd','UheAs','wAoUb','bwGYd','jFUzu','once','iuINe','bhVLK','../../helpers/utilities','parse','ZbDHB',',\x20automationFramework=','mergeObject','../../helpers/classLogger.js','cwd','PUEaP','LzxHU','HJvum','Folder\x20','checkAndUpdateCli','map','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','ZgGnQ','BROWSERSTACK_CLI_ENV','Current\x20CLI\x20Path\x20Found:\x20','../../helpers/helper','XHhaY','AuvXw','0755','closeSync','WPxTe','destroy','worker_threads','dYQrV','data','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','xYOPd','statSync','DZUCu','5piaLWf','tCZfI','YGJXn','url','automationFrameworkDetail','hBGwW','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','TVrQg','MJHiu','aPJtM','lYjgi','version','heWmN','close','includes','node','preserveStatusCodeOnError','EXDEV','startsWith','oBbNs','object','.sock','rename','WOkFA','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','getCliDir','XKjhh','fYBoQ','6675696ocNbJL','yauzl','util','ugulA','6652629CTmdfE','GET','reduce','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','Downloading\x20SDK\x20binary\x20from:\x20','stringify','AJeEl','downloadFileStream','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','cli','resume','mtime','../../helpers/performance/constants','JyAyA','MumiQ','exports','end','pid','\x20from\x20','error','ddvvC','getAutomationFrameworkDetail','unlink','bEAaP','Setting\x20required\x20permissions\x20to\x20','binary-','2|3|0|4|1','tJvPZ','.tmp.','basename','UUyEh','code','koRGT','tmpdir','Development\x20Cli\x20Path:\x20','statusCode','getCLIParamsForDevEnv','Folder\x20does\x20not\x20exist:\x20','../../../package.json','downloadLatestBinary','SDK_CLI_BIN_PATH','env','BROWSERSTACK_BINARY_URL','format','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','test','40vkfKfQ','path','shouldSkipSessionStatus','WIxZK','sdEUY','fGRvB','.zip','iaDko','createWriteStream','start','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','pipe','isBinaryBusy','DOWNLOAD_HTTP','fFdAu','664724qWbbhH','dPQAx','getSdkLanguage','BROWSERSTACK_FILES_DIR','sCvtX','NHXIx','gzlWV','PPsTQ','getWritableDir','runShellCommand','Tsfsj','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','shouldSkipSessionName','Resolving\x20with\x20stdout:\x20\x22','\x20version','28944930HbOxHB','../../helpers/performance/performance-tester.js','trim','openReadStream','../../helpers/test-observability/utils.js','yBplo','join','readdirSync','child_process','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','lxszc','BASBO','testContextOptions','OQLSX','Error\x20while\x20reading\x20CLI\x20path:\x20','LqSNi','get','testFrameworkDetail'];a84_0x27db=function(){return _0x43d55e;};return a84_0x27db();}
@@ -1 +1 @@
1
- 'use strict';const a86_0x2e3a0d=a86_0x3906;(function(_0x1bc988,_0x5039b4){const _0x33142b=a86_0x3906,_0x1fee84=_0x1bc988();while(!![]){try{const _0xbc9095=parseInt(_0x33142b(0x7f))/0x1*(parseInt(_0x33142b(0xf6))/0x2)+-parseInt(_0x33142b(0x82))/0x3+parseInt(_0x33142b(0xc0))/0x4*(parseInt(_0x33142b(0x94))/0x5)+-parseInt(_0x33142b(0xce))/0x6*(-parseInt(_0x33142b(0x103))/0x7)+-parseInt(_0x33142b(0xdd))/0x8+parseInt(_0x33142b(0xc4))/0x9*(parseInt(_0x33142b(0xfd))/0xa)+parseInt(_0x33142b(0x97))/0xb*(-parseInt(_0x33142b(0xf0))/0xc);if(_0xbc9095===_0x5039b4)break;else _0x1fee84['push'](_0x1fee84['shift']());}catch(_0x2835d3){_0x1fee84['push'](_0x1fee84['shift']());}}}(a86_0x148b,0x226da));function a86_0x148b(){const _0x158c52=['name','9816FndtGs','__workerDetails','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','XGXQB','stringify','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','from','field_type','getBuildTagsRunId','STRSZ','YSDxo','KaRQy','getBuildLevelTags','oTxqD','GMYvb','MXoCx','getTestIdentifierFromTestInfo','message','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','180OPjxvP','__jestCurrentTestIdentifier','clearTags','CFpwe','getAllData',',\x20values=','126IXLnFX','getTestUUID','iBGgH','setCustomTags','\x20->\x20values=','getInstance','unlinkSync','20SEQKiV','isRunning','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','mtimeMs','mergeIntoTags','getBuildTagsFilePath','7WhTqLB','wqtMG','CeltB','BUILD_TAG_FILE_PREFIX','ydLJk','getTestDetails','TEST','startsWith','buildLevelTags','./modules/playwrightDriverModule','3539WLMumD','tmpdir','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','37920fAaeiO','CYrks','EosPc','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','mergeBuildLevelTags','KHtWb','./TestInfo','filter','keys','getTestFramework','wFhrR','VlIjA','path','kbups','join','trim','Biqbc','oHkwT','3115NvNhVo','CustomTagManager','./browserstackCLI','277618bOUiIl','efmtC','testInfo','mergeValues','../../helpers/classLogger','lUYll','getTrackedInstance','BROWSERSTACK_TESTHUB_UUID','debug','statSync',',\x20key=','retry','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','getTestFrameworkDetail','aggregateBuildLevelTagsFromTmp','./framework/automationFramework','TgORg','get','./framework/constants/testFrameworkConstants','writeFile','utf8','hjUjm','values','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','vYdBa','length','_testInternals','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','modules','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','./state/testFrameworkState','entries','currentTest','UazBt','fOBWQ','buildHashedId','toLowerCase','hSfIu','now','env','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','1684zTFuOT','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','pid','.json','132084cXqnkj','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','testhubConfig','../../helpers/helper','pCcAr','MODULE_NAME','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','KEY_TEST_ID','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','multi_dropdown','113178ECAHQz','./state/hookState','isArray','exports','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','testLevelTags','POST','wjJJM','null','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','tjgCa','mXEcN','KEY_CUSTOM_TAGS','QBNoJ'];a86_0x148b=function(){return _0x158c52;};return a86_0x148b();}const fs=require('fs'),os=require('os'),path=require(a86_0x2e3a0d(0x8e)),helper=require(a86_0x2e3a0d(0xc7)),AutomationFramework=require(a86_0x2e3a0d(0xa6)),TestFrameworkConstants=require(a86_0x2e3a0d(0xa9)),PlaywrightDriverModule=require(a86_0x2e3a0d(0x7e)),TestInfo=require(a86_0x2e3a0d(0x88)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a86_0x2e3a0d(0x9b)),logger=createClassLogger(a86_0x2e3a0d(0x95)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function getBuildTagsRunId(){const _0x31473a=a86_0x2e3a0d,_0x3eead5={};_0x3eead5[_0x31473a(0xd8)]=function(_0x503fd6,_0x48a6e0){return _0x503fd6===_0x48a6e0;},_0x3eead5[_0x31473a(0x107)]=_0x31473a(0xd6);const _0x5b268b=_0x3eead5,_0x40ee6a=process[_0x31473a(0xbe)][_0x31473a(0x9e)];if(!_0x40ee6a||_0x5b268b[_0x31473a(0xd8)](_0x40ee6a,_0x5b268b[_0x31473a(0x107)]))return null;return _0x40ee6a;}function a86_0x3906(_0x4ab938,_0x3dfd33){const _0x148bc5=a86_0x148b();return a86_0x3906=function(_0x3906fb,_0x5e6f9c){_0x3906fb=_0x3906fb-0x7e;let _0x3d5d7e=_0x148bc5[_0x3906fb];return _0x3d5d7e;},a86_0x3906(_0x4ab938,_0x3dfd33);}function getBuildTagsFilePath(_0x18fd5e){const _0x45120f=a86_0x2e3a0d;return path[_0x45120f(0x90)](os['tmpdir'](),''+BUILD_TAG_FILE_PREFIX+_0x18fd5e+'_'+process[_0x45120f(0xc2)]+_0x45120f(0xc3));}class CustomTagManager{static [a86_0x2e3a0d(0x10b)]={};static [a86_0x2e3a0d(0xd3)]={};static[a86_0x2e3a0d(0x9a)](_0x799f8c,_0x53a8a7){const _0x4fbdc8=a86_0x2e3a0d;return Array[_0x4fbdc8(0xe3)](new Set([..._0x799f8c||[],..._0x53a8a7||[]]));}static[a86_0x2e3a0d(0x101)](_0x24e0b4,_0x2bf1e5,_0x31bf83){const _0x127471=a86_0x2e3a0d,_0x51bbe1={};_0x51bbe1[_0x127471(0x87)]=_0x127471(0xcd);const _0x556008=_0x51bbe1;if(!_0x24e0b4[_0x2bf1e5]){const _0x46796a={};_0x46796a['field_type']=_0x556008[_0x127471(0x87)],_0x46796a[_0x127471(0xad)]=[..._0x31bf83||[]],_0x24e0b4[_0x2bf1e5]=_0x46796a;}else!_0x24e0b4[_0x2bf1e5]['field_type']&&(_0x24e0b4[_0x2bf1e5][_0x127471(0xe4)]=_0x556008[_0x127471(0x87)]),!Array[_0x127471(0xd0)](_0x24e0b4[_0x2bf1e5]['values'])&&(_0x24e0b4[_0x2bf1e5][_0x127471(0xad)]=[]),_0x24e0b4[_0x2bf1e5][_0x127471(0xad)]=CustomTagManager[_0x127471(0x9a)](_0x24e0b4[_0x2bf1e5][_0x127471(0xad)],_0x31bf83);return _0x24e0b4;}static async[a86_0x2e3a0d(0xf9)](_0x3c76a9,_0x375f4e,_0x2ae6a5=![]){const _0x250ff2=a86_0x2e3a0d,_0x496299={'CYrks':function(_0x3119e0,_0x86840c){return _0x3119e0!==_0x86840c;},'Biqbc':'string','CeltB':_0x250ff2(0xc1),'oTxqD':function(_0x20fbc5,_0x29b05b){return _0x20fbc5!==_0x29b05b;},'XGXQB':_0x250ff2(0xdf),'oHkwT':function(_0x12ad60,_0x9a5926){return _0x12ad60===_0x9a5926;},'efmtC':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','nvkXT':function(_0x5564af,_0x1b7cfb){return _0x5564af===_0x1b7cfb;},'UazBt':_0x250ff2(0xb2),'mXEcN':function(_0x51899b,_0x9c207e){return _0x51899b(_0x9c207e);},'wjJJM':_0x250ff2(0x96),'YSDxo':function(_0x4a1004){return _0x4a1004();},'kbups':'multi_dropdown','zwpuH':function(_0x21ca7b,_0x102914){return _0x21ca7b>_0x102914;},'QBNoJ':function(_0x10a4f7,_0x173369){return _0x10a4f7(_0x173369);},'wFhrR':_0x250ff2(0xcc),'fOBWQ':':jest-','CFpwe':function(_0x2e59d5,_0x45d0a3){return _0x2e59d5(_0x45d0a3);},'vYdBa':'./cliUtils','GMYvb':function(_0x3e12e1,_0x11644d){return _0x3e12e1(_0x11644d);},'pCcAr':function(_0x596872,_0x3bdc48){return _0x596872===_0x3bdc48;},'eXPPn':'jest','MXoCx':_0x250ff2(0xbf),'wqtMG':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','lUYll':_0x250ff2(0xb5),'VlIjA':_0x250ff2(0xcf),'IZTBK':_0x250ff2(0xff)};if(_0x496299[_0x250ff2(0x83)](typeof _0x3c76a9,_0x496299['Biqbc'])){logger['debug'](_0x496299[_0x250ff2(0x105)]);return;}if(_0x496299[_0x250ff2(0xea)](typeof _0x375f4e,_0x496299[_0x250ff2(0x92)])){logger['debug'](_0x496299[_0x250ff2(0xe0)]);return;}if(_0x496299[_0x250ff2(0x93)](_0x3c76a9[_0x250ff2(0x91)](),'')){logger[_0x250ff2(0x9f)](_0x496299[_0x250ff2(0x98)]);return;}if(_0x496299['nvkXT'](_0x375f4e['trim'](),'')){logger[_0x250ff2(0x9f)](_0x496299[_0x250ff2(0xb8)]);return;}const _0x108b8b=helper['parseCommaSeparatedValues'](_0x375f4e);if(_0x2ae6a5){const _0x112ed5=_0x496299['mXEcN'](require,_0x496299[_0x250ff2(0xd5)]),_0x593e4b=_0x112ed5[_0x250ff2(0xfb)](),_0x4a5080=_0x593e4b&&_0x593e4b[_0x250ff2(0xb3)][TestHubModule[_0x250ff2(0xc9)]];if(_0x4a5080){const _0x2c4b3d=_0x4a5080?.[_0x250ff2(0xc6)]?.['toObject']()?.[_0x250ff2(0xba)];TestInfo[_0x250ff2(0xf7)](_0x2c4b3d);const _0x1e6f2a=TestInfo[_0x250ff2(0x108)](_0x2c4b3d),_0x100b2c=_0x1e6f2a[TestFrameworkConstants[_0x250ff2(0xda)]]||{};CustomTagManager[_0x250ff2(0x101)](_0x100b2c,_0x3c76a9,_0x108b8b),_0x1e6f2a[TestFrameworkConstants[_0x250ff2(0xda)]]=_0x100b2c,TestInfo['setTestDetails'](_0x2c4b3d,_0x1e6f2a);!this[_0x250ff2(0x10b)][_0x2c4b3d]&&(this[_0x250ff2(0x10b)][_0x2c4b3d]={});this['buildLevelTags'][_0x2c4b3d][_0x3c76a9]=CustomTagManager['mergeValues'](this[_0x250ff2(0x10b)][_0x2c4b3d][_0x3c76a9],_0x108b8b);try{const _0x1dc5bb=_0x496299[_0x250ff2(0xe7)](getBuildTagsRunId);if(_0x1dc5bb){const _0x3ec5a6={};for(const [_0x4d2d58,_0x48ad1c]of Object['entries'](this[_0x250ff2(0x10b)][_0x2c4b3d]||{})){_0x3ec5a6[_0x4d2d58]={'field_type':_0x496299[_0x250ff2(0x8f)],'values':Array[_0x250ff2(0xd0)](_0x48ad1c)?[..._0x48ad1c]:[]};}_0x496299['zwpuH'](Object[_0x250ff2(0x8a)](_0x3ec5a6)[_0x250ff2(0xb0)],0x0)&&await fs['promises'][_0x250ff2(0xaa)](_0x496299[_0x250ff2(0xdb)](getBuildTagsFilePath,_0x1dc5bb),JSON[_0x250ff2(0xe1)](_0x3ec5a6));}else logger[_0x250ff2(0x9f)](_0x496299[_0x250ff2(0x8c)]);}catch(_0x5e2d0f){logger[_0x250ff2(0x9f)](_0x250ff2(0xe2)+(_0x5e2d0f&&_0x5e2d0f[_0x250ff2(0xee)]?_0x5e2d0f[_0x250ff2(0xee)]:_0x5e2d0f));}}}else{let _0x152e80;const _0x367a1c=global[_0x250ff2(0xf1)];let _0x41a6cc=![];if(_0x367a1c&&_0x367a1c['includes'](_0x496299['fOBWQ']))_0x41a6cc=!![],_0x152e80=_0x367a1c;else try{const _0x476274=_0x496299[_0x250ff2(0xf3)](require,_0x496299[_0x250ff2(0xaf)]),_0x3cfc5a=_0x496299[_0x250ff2(0xeb)](require,_0x496299[_0x250ff2(0xd5)]);if(_0x3cfc5a[_0x250ff2(0xfb)]()[_0x250ff2(0xfe)]()){const _0x1f6ed8=_0x476274[_0x250ff2(0xa4)]();if(_0x496299[_0x250ff2(0xc8)](_0x1f6ed8?.[_0x250ff2(0xdc)]?.[_0x250ff2(0xbb)](),_0x496299['eXPPn'])){const _0x4fe26c=AutomationFramework[_0x250ff2(0x9d)]();_0x152e80=AutomationFramework['getState'](_0x4fe26c,PlaywrightDriverModule[_0x250ff2(0xcb)],''),_0x152e80&&_0x152e80['includes'](_0x496299[_0x250ff2(0xb9)])&&(_0x41a6cc=!![]);}}}catch(_0x28343c){logger[_0x250ff2(0x9f)](_0x250ff2(0x81)+_0x28343c);}if(_0x41a6cc){if(!_0x152e80)throw new Error(_0x496299[_0x250ff2(0xec)]);const _0x3ed4dc=_0x496299[_0x250ff2(0xf3)](require,_0x496299[_0x250ff2(0xd5)]),_0x15b2da=_0x3ed4dc[_0x250ff2(0xfb)]()[_0x250ff2(0x8b)]();if(!_0x15b2da)throw new Error(_0x496299[_0x250ff2(0x104)]);const _0x59a557=_0x496299[_0x250ff2(0xf3)](require,_0x496299[_0x250ff2(0x9c)]),_0x1f29e6=_0x496299[_0x250ff2(0xd9)](require,_0x496299[_0x250ff2(0x8d)]),_0x94e816=_0x15b2da['resolveInstance'](_0x59a557[_0x250ff2(0x109)],_0x1f29e6[_0x250ff2(0xd4)]);if(!_0x94e816)throw new Error(_0x496299['IZTBK']);const _0x4ec7b6=_0x94e816[_0x250ff2(0xf4)]()[_0x250ff2(0xa8)](_0x152e80)||{},_0x5f76aa=_0x4ec7b6[TestFrameworkConstants[_0x250ff2(0xda)]]||{};logger[_0x250ff2(0x9f)](_0x250ff2(0xd7)+_0x152e80+_0x250ff2(0xa1)+_0x3c76a9+_0x250ff2(0xf5)+JSON[_0x250ff2(0xe1)](_0x108b8b)+',\x20existingTags='+JSON[_0x250ff2(0xe1)](_0x5f76aa)),CustomTagManager[_0x250ff2(0x101)](_0x5f76aa,_0x3c76a9,_0x108b8b),logger['debug'](_0x250ff2(0x85)+_0x3c76a9+_0x250ff2(0xfa)+JSON[_0x250ff2(0xe1)](_0x5f76aa[_0x3c76a9]['values']));const _0x375ae9={[TestFrameworkConstants[_0x250ff2(0xda)]]:_0x5f76aa},_0x12a62a={};_0x12a62a[_0x152e80]=_0x375ae9,_0x94e816['addMultipleEntries'](_0x12a62a),logger[_0x250ff2(0x9f)](_0x250ff2(0xa3)+_0x152e80+',\x20finalTags='+JSON[_0x250ff2(0xe1)](_0x5f76aa)),!this[_0x250ff2(0xd3)][_0x152e80]&&(this[_0x250ff2(0xd3)][_0x152e80]={}),this[_0x250ff2(0xd3)][_0x152e80][_0x3c76a9]=CustomTagManager[_0x250ff2(0x9a)](this[_0x250ff2(0xd3)][_0x152e80][_0x3c76a9],_0x108b8b);}else{const _0x3ddfe8=global[_0x250ff2(0xde)]?.[_0x250ff2(0xb7)]?.[_0x250ff2(0x99)];if(!_0x3ddfe8){const _0x4a1e63=AutomationFramework['getTrackedInstance']();_0x152e80=AutomationFramework['getState'](_0x4a1e63,PlaywrightDriverModule[_0x250ff2(0xcb)],'');}else _0x152e80=TestInfo[_0x250ff2(0xed)](_0x3ddfe8,_0x3ddfe8[_0x250ff2(0xa2)]);const _0x53b031=TestInfo['getTestDetails'](_0x152e80),_0x208b6c=_0x53b031[TestFrameworkConstants[_0x250ff2(0xda)]]||{};CustomTagManager[_0x250ff2(0x101)](_0x208b6c,_0x3c76a9,_0x108b8b),_0x53b031[TestFrameworkConstants[_0x250ff2(0xda)]]=_0x208b6c,TestInfo['setTestDetails'](_0x152e80,_0x53b031),!this[_0x250ff2(0xd3)][_0x152e80]&&(this['testLevelTags'][_0x152e80]={}),this[_0x250ff2(0xd3)][_0x152e80][_0x3c76a9]=CustomTagManager[_0x250ff2(0x9a)](this['testLevelTags'][_0x152e80][_0x3c76a9],_0x108b8b);}}}static[a86_0x2e3a0d(0xe9)](){const _0x3d380e=a86_0x2e3a0d,_0x3586cc={...this[_0x3d380e(0x10b)]};return _0x3586cc;}static['getTestLevelTags'](){const _0x4dccb4=a86_0x2e3a0d,_0x536350={...this[_0x4dccb4(0xd3)]};return _0x536350;}static[a86_0x2e3a0d(0xf2)](){const _0x3d0477=a86_0x2e3a0d;this['buildLevelTags']={},this[_0x3d0477(0xd3)]={};}static['mergeBuildLevelTags'](_0x1bd931,_0x32e8ff){const _0x40e5af=a86_0x2e3a0d,_0x45166a={};_0x45166a[_0x40e5af(0xe6)]=function(_0x67d7eb,_0xc8b018){return _0x67d7eb||_0xc8b018;};const _0x18e80a=_0x45166a;if(!_0x1bd931)return;!this['buildLevelTags'][_0x1bd931]&&(this[_0x40e5af(0x10b)][_0x1bd931]={});for(const [_0x288419,_0x3dac73]of Object[_0x40e5af(0xb6)](_0x18e80a[_0x40e5af(0xe6)](_0x32e8ff,{}))){if(!_0x3dac73||!Array[_0x40e5af(0xd0)](_0x3dac73['values']))continue;this[_0x40e5af(0x10b)][_0x1bd931][_0x288419]=CustomTagManager[_0x40e5af(0x9a)](this[_0x40e5af(0x10b)][_0x1bd931][_0x288419],_0x3dac73[_0x40e5af(0xad)]);}}static[a86_0x2e3a0d(0xa5)](_0x75d660,_0x4d86c0){const _0x5e04bf=a86_0x2e3a0d,_0x5d6626={};_0x5d6626['EosPc']=_0x5e04bf(0xd2),_0x5d6626[_0x5e04bf(0xac)]=function(_0x9291ee,_0x462f30){return _0x9291ee*_0x462f30;},_0x5d6626['hSfIu']=function(_0x434d06,_0x197c7c){return _0x434d06*_0x197c7c;},_0x5d6626['TgORg']=function(_0x41b69e,_0x36eb33){return _0x41b69e*_0x36eb33;},_0x5d6626[_0x5e04bf(0xf8)]=function(_0x327ce2,_0x4ecab3){return _0x327ce2>_0x4ecab3;},_0x5d6626['LLxyq']=function(_0x233c8b,_0x48c0a9){return _0x233c8b-_0x48c0a9;},_0x5d6626[_0x5e04bf(0xe8)]=_0x5e04bf(0xab);const _0x9befc2=_0x5d6626;if(!_0x75d660)return logger['debug'](_0x9befc2[_0x5e04bf(0x84)]),0x0;let _0x402066;try{_0x402066=os[_0x5e04bf(0x80)]();}catch(_0x64a111){return logger[_0x5e04bf(0x9f)](_0x5e04bf(0xb4)+_0x64a111),0x0;}let _0x25ab03;try{_0x25ab03=fs['readdirSync'](_0x402066);}catch(_0x45312e){return logger[_0x5e04bf(0x9f)](_0x5e04bf(0xae)+_0x45312e),0x0;}const _0x305225=''+BUILD_TAG_FILE_PREFIX+_0x75d660+'_',_0x18e308=_0x25ab03[_0x5e04bf(0x89)](_0x5e04ec=>_0x5e04ec[_0x5e04bf(0x10a)](_0x305225)&&_0x5e04ec['endsWith']('.json')),_0x3b9eaa=_0x9befc2[_0x5e04bf(0xac)](_0x9befc2[_0x5e04bf(0xbc)](_0x9befc2[_0x5e04bf(0xa7)](0x2,0x3c),0x3c),0x3e8);let _0x930604=0x0;for(const _0x20ff73 of _0x18e308){const _0x5d6e32=path[_0x5e04bf(0x90)](_0x402066,_0x20ff73);try{const _0x4c6c74=fs[_0x5e04bf(0xa0)](_0x5d6e32);if(_0x9befc2[_0x5e04bf(0xf8)](_0x9befc2['LLxyq'](Date[_0x5e04bf(0xbd)](),_0x4c6c74[_0x5e04bf(0x100)]),_0x3b9eaa)){logger[_0x5e04bf(0x9f)](_0x5e04bf(0xc5)+_0x3b9eaa+'ms)\x20'+_0x20ff73);try{fs[_0x5e04bf(0xfc)](_0x5d6e32);}catch(_0x4e49b8){logger['debug'](_0x5e04bf(0xef)+_0x20ff73+':\x20'+(_0x4e49b8&&_0x4e49b8[_0x5e04bf(0xee)]?_0x4e49b8[_0x5e04bf(0xee)]:_0x4e49b8));}continue;}const _0x4fa63c=fs['readFileSync'](_0x5d6e32,_0x9befc2['KaRQy']),_0x438c09=JSON['parse'](_0x4fa63c);this[_0x5e04bf(0x86)](_0x4d86c0,_0x438c09),_0x930604+=0x1;}catch(_0x17ee86){logger[_0x5e04bf(0x9f)](_0x5e04bf(0xca)+_0x20ff73+':\x20'+(_0x17ee86&&_0x17ee86[_0x5e04bf(0xee)]?_0x17ee86[_0x5e04bf(0xee)]:_0x17ee86));}try{fs[_0x5e04bf(0xfc)](_0x5d6e32);}catch(_0x2c0db8){logger[_0x5e04bf(0x9f)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0x20ff73+':\x20'+(_0x2c0db8&&_0x2c0db8[_0x5e04bf(0xee)]?_0x2c0db8[_0x5e04bf(0xee)]:_0x2c0db8));}}return _0x930604;}}const a86_0x266512={};a86_0x266512[a86_0x2e3a0d(0xe5)]=getBuildTagsRunId,a86_0x266512[a86_0x2e3a0d(0x102)]=getBuildTagsFilePath,a86_0x266512[a86_0x2e3a0d(0x106)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x2e3a0d(0xb1)]=a86_0x266512,module[a86_0x2e3a0d(0xd1)]=CustomTagManager;
1
+ 'use strict';const a85_0x3cdf8b=a85_0x3a34;(function(_0x3dfc08,_0x42a797){const _0x5ac9ef=a85_0x3a34,_0x4be911=_0x3dfc08();while(!![]){try{const _0x2f655e=parseInt(_0x5ac9ef(0x20a))/0x1+-parseInt(_0x5ac9ef(0x1d3))/0x2*(parseInt(_0x5ac9ef(0x1c4))/0x3)+-parseInt(_0x5ac9ef(0x206))/0x4+-parseInt(_0x5ac9ef(0x1e7))/0x5*(parseInt(_0x5ac9ef(0x1bf))/0x6)+parseInt(_0x5ac9ef(0x1da))/0x7*(parseInt(_0x5ac9ef(0x1c5))/0x8)+parseInt(_0x5ac9ef(0x211))/0x9*(-parseInt(_0x5ac9ef(0x1f0))/0xa)+parseInt(_0x5ac9ef(0x226))/0xb;if(_0x2f655e===_0x42a797)break;else _0x4be911['push'](_0x4be911['shift']());}catch(_0x5b4d5d){_0x4be911['push'](_0x4be911['shift']());}}}(a85_0x19ee,0x95d31));const fs=require('fs'),os=require('os'),path=require('path'),helper=require(a85_0x3cdf8b(0x207)),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a85_0x3cdf8b(0x218)),TestInfo=require('./TestInfo'),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a85_0x3cdf8b(0x205)),logger=createClassLogger(a85_0x3cdf8b(0x208)),BUILD_TAG_FILE_PREFIX=a85_0x3cdf8b(0x1ad);function getBuildTagsRunId(){const _0x83c605=a85_0x3cdf8b,_0x42a2fb={};_0x42a2fb['HULpU']=function(_0xd44ed8,_0x11c47a){return _0xd44ed8===_0x11c47a;},_0x42a2fb[_0x83c605(0x1d4)]=_0x83c605(0x1f1);const _0x374982=_0x42a2fb,_0x3b05d7=process[_0x83c605(0x1b3)][_0x83c605(0x21e)];if(!_0x3b05d7||_0x374982['HULpU'](_0x3b05d7,_0x374982['GmJiC']))return null;return _0x3b05d7;}function getBuildTagsFilePath(_0x4edacb){const _0x5f42fb=a85_0x3cdf8b;return path[_0x5f42fb(0x20f)](os[_0x5f42fb(0x1f6)](),''+BUILD_TAG_FILE_PREFIX+_0x4edacb+'_'+process[_0x5f42fb(0x233)]+_0x5f42fb(0x1cb));}class CustomTagManager{static [a85_0x3cdf8b(0x1dd)]={};static [a85_0x3cdf8b(0x1df)]={};static[a85_0x3cdf8b(0x1c7)](_0x21e165,_0x28e406){const _0x2efb3d=a85_0x3cdf8b;return Array[_0x2efb3d(0x1d0)](new Set([..._0x21e165||[],..._0x28e406||[]]));}static[a85_0x3cdf8b(0x213)](_0x33abcb,_0x5d4f62,_0x436797){const _0x2c7f6e=a85_0x3cdf8b,_0x16ae07={};_0x16ae07[_0x2c7f6e(0x1c3)]='multi_dropdown';const _0xb79f0=_0x16ae07;if(!_0x33abcb[_0x5d4f62]){const _0x20db53={};_0x20db53[_0x2c7f6e(0x1bb)]=_0xb79f0[_0x2c7f6e(0x1c3)],_0x20db53['values']=[..._0x436797||[]],_0x33abcb[_0x5d4f62]=_0x20db53;}else!_0x33abcb[_0x5d4f62][_0x2c7f6e(0x1bb)]&&(_0x33abcb[_0x5d4f62][_0x2c7f6e(0x1bb)]=_0xb79f0[_0x2c7f6e(0x1c3)]),!Array[_0x2c7f6e(0x21c)](_0x33abcb[_0x5d4f62][_0x2c7f6e(0x219)])&&(_0x33abcb[_0x5d4f62][_0x2c7f6e(0x219)]=[]),_0x33abcb[_0x5d4f62]['values']=CustomTagManager[_0x2c7f6e(0x1c7)](_0x33abcb[_0x5d4f62][_0x2c7f6e(0x219)],_0x436797);return _0x33abcb;}static async[a85_0x3cdf8b(0x1d6)](_0x308d87,_0x380082,_0x4f5614=![]){const _0xe44053=a85_0x3cdf8b,_0x15274a={'PWmEB':function(_0x155e14,_0x6bda49){return _0x155e14!==_0x6bda49;},'CICqG':_0xe44053(0x1ec),'SQOOQ':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','qjSkT':_0xe44053(0x1d2),'uWjcQ':function(_0x2195a2,_0x3b2b71){return _0x2195a2===_0x3b2b71;},'ppiwS':_0xe44053(0x1f3),'DPXqQ':_0xe44053(0x1c2),'uzZfa':function(_0x59f68e,_0x2e9b06){return _0x59f68e(_0x2e9b06);},'lIMum':_0xe44053(0x20b),'DZKwt':function(_0x1d55f9){return _0x1d55f9();},'AeFnO':_0xe44053(0x237),'lyeQD':function(_0x3a3b06,_0x5dcfa1){return _0x3a3b06>_0x5dcfa1;},'MikWb':function(_0x5a7b23,_0x418dd5){return _0x5a7b23(_0x418dd5);},'ndwxi':_0xe44053(0x22d),'PnVKq':_0xe44053(0x1b1),'MkczN':_0xe44053(0x1fe),'epVoU':_0xe44053(0x1e3),'nFipv':_0xe44053(0x1ae),'prTbV':function(_0x149800,_0x3531f4){return _0x149800(_0x3531f4);},'hfWGE':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','FkEyd':function(_0x262976,_0x33fdc4){return _0x262976(_0x33fdc4);},'vmQXI':_0xe44053(0x1b7),'hlPnq':'./state/hookState','STBiu':_0xe44053(0x1be),'sCkyJ':function(_0x43f3ea,_0x16973f){return _0x43f3ea(_0x16973f);},'eZxiT':_0xe44053(0x1e0)};if(_0x15274a[_0xe44053(0x1c9)](typeof _0x308d87,_0x15274a[_0xe44053(0x1d9)])){logger[_0xe44053(0x22b)](_0x15274a['SQOOQ']);return;}if(_0x15274a[_0xe44053(0x1c9)](typeof _0x380082,_0x15274a['CICqG'])){logger[_0xe44053(0x22b)](_0x15274a[_0xe44053(0x1f7)]);return;}if(_0x15274a[_0xe44053(0x216)](_0x308d87[_0xe44053(0x1b6)](),'')){logger[_0xe44053(0x22b)](_0x15274a['ppiwS']);return;}if(_0x15274a[_0xe44053(0x216)](_0x380082[_0xe44053(0x1b6)](),'')){logger['debug'](_0x15274a[_0xe44053(0x217)]);return;}const _0x420dc5=helper[_0xe44053(0x1ff)](_0x380082);if(_0x4f5614){const _0x3255e1=_0x15274a[_0xe44053(0x223)](require,_0x15274a[_0xe44053(0x201)]),_0x781c1e=_0x3255e1[_0xe44053(0x1fc)](),_0x13e43e=_0x781c1e&&_0x781c1e[_0xe44053(0x1f2)][TestHubModule['MODULE_NAME']];if(_0x13e43e){const _0x1483e9=_0x13e43e?.[_0xe44053(0x230)]?.[_0xe44053(0x1b0)]()?.[_0xe44053(0x22f)];TestInfo['getTestUUID'](_0x1483e9);const _0x37afa3=TestInfo[_0xe44053(0x234)](_0x1483e9),_0x42fccd=_0x37afa3[TestFrameworkConstants[_0xe44053(0x1c8)]]||{};CustomTagManager[_0xe44053(0x213)](_0x42fccd,_0x308d87,_0x420dc5),_0x37afa3[TestFrameworkConstants[_0xe44053(0x1c8)]]=_0x42fccd,TestInfo[_0xe44053(0x214)](_0x1483e9,_0x37afa3);!this['buildLevelTags'][_0x1483e9]&&(this[_0xe44053(0x1dd)][_0x1483e9]={});this[_0xe44053(0x1dd)][_0x1483e9][_0x308d87]=CustomTagManager['mergeValues'](this[_0xe44053(0x1dd)][_0x1483e9][_0x308d87],_0x420dc5);try{const _0x321d42=_0x15274a[_0xe44053(0x1f8)](getBuildTagsRunId);if(_0x321d42){const _0x21428d={};for(const [_0x3656f6,_0x9f1100]of Object[_0xe44053(0x228)](this['buildLevelTags'][_0x1483e9]||{})){_0x21428d[_0x3656f6]={'field_type':_0x15274a[_0xe44053(0x232)],'values':Array[_0xe44053(0x21c)](_0x9f1100)?[..._0x9f1100]:[]};}_0x15274a[_0xe44053(0x224)](Object[_0xe44053(0x1f4)](_0x21428d)[_0xe44053(0x227)],0x0)&&await fs[_0xe44053(0x1d5)]['writeFile'](_0x15274a['MikWb'](getBuildTagsFilePath,_0x321d42),JSON[_0xe44053(0x1e4)](_0x21428d));}else logger[_0xe44053(0x22b)](_0x15274a[_0xe44053(0x1de)]);}catch(_0x4c4c58){logger['debug'](_0xe44053(0x21f)+(_0x4c4c58&&_0x4c4c58[_0xe44053(0x1eb)]?_0x4c4c58[_0xe44053(0x1eb)]:_0x4c4c58));}}}else{let _0x1a4477;const _0x2d1b6d=global[_0xe44053(0x231)];let _0x4b2462=![];if(_0x2d1b6d&&_0x2d1b6d['includes'](_0x15274a[_0xe44053(0x1d1)]))_0x4b2462=!![],_0x1a4477=_0x2d1b6d;else try{const _0x2b2e77=_0x15274a['MikWb'](require,_0x15274a[_0xe44053(0x1fa)]),_0x5b7b24=_0x15274a[_0xe44053(0x223)](require,_0x15274a[_0xe44053(0x201)]);if(_0x5b7b24['getInstance']()[_0xe44053(0x1f9)]()){const _0x272302=_0x2b2e77[_0xe44053(0x1b5)]();if(_0x15274a[_0xe44053(0x216)](_0x272302?.[_0xe44053(0x1ed)]?.['toLowerCase'](),_0x15274a['epVoU'])){const _0x3b42d7=AutomationFramework[_0xe44053(0x202)]();_0x1a4477=AutomationFramework[_0xe44053(0x1ba)](_0x3b42d7,PlaywrightDriverModule[_0xe44053(0x1b9)],''),_0x1a4477&&_0x1a4477[_0xe44053(0x21d)](_0x15274a['PnVKq'])&&(_0x4b2462=!![]);}}}catch(_0x430a10){logger[_0xe44053(0x22b)](_0xe44053(0x1d7)+_0x430a10);}if(_0x4b2462){if(!_0x1a4477)throw new Error(_0x15274a['nFipv']);const _0x3b8e69=_0x15274a[_0xe44053(0x1ce)](require,_0x15274a[_0xe44053(0x201)]),_0x125433=_0x3b8e69['getInstance']()['getTestFramework']();if(!_0x125433)throw new Error(_0x15274a['hfWGE']);const _0x35fb37=_0x15274a['FkEyd'](require,_0x15274a['vmQXI']),_0x577740=_0x15274a[_0xe44053(0x1cf)](require,_0x15274a['hlPnq']),_0x523fa9=_0x125433[_0xe44053(0x22c)](_0x35fb37[_0xe44053(0x1e8)],_0x577740[_0xe44053(0x1fd)]);if(!_0x523fa9)throw new Error(_0x15274a[_0xe44053(0x1d8)]);const _0x488462=_0x523fa9[_0xe44053(0x209)]()['get'](_0x1a4477)||{},_0x48abfc=_0x488462[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0xe44053(0x22b)](_0xe44053(0x22a)+_0x1a4477+_0xe44053(0x210)+_0x308d87+_0xe44053(0x221)+JSON[_0xe44053(0x1e4)](_0x420dc5)+_0xe44053(0x1bc)+JSON[_0xe44053(0x1e4)](_0x48abfc)),CustomTagManager[_0xe44053(0x213)](_0x48abfc,_0x308d87,_0x420dc5),logger[_0xe44053(0x22b)](_0xe44053(0x1bd)+_0x308d87+_0xe44053(0x229)+JSON[_0xe44053(0x1e4)](_0x48abfc[_0x308d87][_0xe44053(0x219)]));const _0x85978b={[TestFrameworkConstants[_0xe44053(0x1c8)]]:_0x48abfc},_0x3c5ce5={};_0x3c5ce5[_0x1a4477]=_0x85978b,_0x523fa9[_0xe44053(0x222)](_0x3c5ce5),logger[_0xe44053(0x22b)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x1a4477+_0xe44053(0x20e)+JSON[_0xe44053(0x1e4)](_0x48abfc)),!this['testLevelTags'][_0x1a4477]&&(this['testLevelTags'][_0x1a4477]={}),this[_0xe44053(0x1df)][_0x1a4477][_0x308d87]=CustomTagManager[_0xe44053(0x1c7)](this[_0xe44053(0x1df)][_0x1a4477][_0x308d87],_0x420dc5);}else{const _0x5bfbfe=global[_0xe44053(0x215)]?.[_0xe44053(0x20d)]?.[_0xe44053(0x203)];if(!_0x5bfbfe){const _0xe51d2a=AutomationFramework[_0xe44053(0x202)]();_0x1a4477=AutomationFramework[_0xe44053(0x1ba)](_0xe51d2a,PlaywrightDriverModule[_0xe44053(0x1b9)],'');if(!_0x1a4477)try{const _0x9b2c7f=_0x15274a[_0xe44053(0x1ef)](require,_0x15274a[_0xe44053(0x201)]),_0x44a221=_0x9b2c7f['getInstance'](),_0x393ad4=_0x44a221&&_0x44a221['getTestFramework']();_0x1a4477=_0x393ad4&&_0x15274a[_0xe44053(0x216)](typeof _0x393ad4[_0xe44053(0x1fb)],_0x15274a['eZxiT'])&&_0x393ad4[_0xe44053(0x1fb)]()||_0x1a4477;}catch(_0x1aa4c5){logger[_0xe44053(0x22b)](_0xe44053(0x22e)+(_0x1aa4c5&&_0x1aa4c5[_0xe44053(0x1eb)]));}}else _0x1a4477=TestInfo[_0xe44053(0x1c1)](_0x5bfbfe,_0x5bfbfe[_0xe44053(0x1ca)]);const _0x38402e=TestInfo[_0xe44053(0x234)](_0x1a4477),_0x3a279c=_0x38402e[TestFrameworkConstants[_0xe44053(0x1c8)]]||{};CustomTagManager[_0xe44053(0x213)](_0x3a279c,_0x308d87,_0x420dc5),_0x38402e[TestFrameworkConstants[_0xe44053(0x1c8)]]=_0x3a279c,TestInfo[_0xe44053(0x214)](_0x1a4477,_0x38402e),!this[_0xe44053(0x1df)][_0x1a4477]&&(this[_0xe44053(0x1df)][_0x1a4477]={}),this['testLevelTags'][_0x1a4477][_0x308d87]=CustomTagManager[_0xe44053(0x1c7)](this[_0xe44053(0x1df)][_0x1a4477][_0x308d87],_0x420dc5);}}}static[a85_0x3cdf8b(0x1e9)](){const _0x2e7d5e=a85_0x3cdf8b,_0x3ca4f8={...this[_0x2e7d5e(0x1dd)]};return _0x3ca4f8;}static[a85_0x3cdf8b(0x225)](){const _0x347f18=a85_0x3cdf8b,_0x48ba97={...this[_0x347f18(0x1df)]};return _0x48ba97;}static['clearTags'](){const _0x4c325f=a85_0x3cdf8b;this[_0x4c325f(0x1dd)]={},this[_0x4c325f(0x1df)]={};}static[a85_0x3cdf8b(0x1e2)](_0x1711db,_0x16295e){const _0x1633a9=a85_0x3cdf8b,_0xb707e5={};_0xb707e5[_0x1633a9(0x235)]=function(_0x50636c,_0x22245e){return _0x50636c||_0x22245e;};const _0x1b127a=_0xb707e5;if(!_0x1711db)return;!this[_0x1633a9(0x1dd)][_0x1711db]&&(this[_0x1633a9(0x1dd)][_0x1711db]={});for(const [_0x4d1502,_0x2ea77f]of Object[_0x1633a9(0x228)](_0x1b127a[_0x1633a9(0x235)](_0x16295e,{}))){if(!_0x2ea77f||!Array[_0x1633a9(0x21c)](_0x2ea77f[_0x1633a9(0x219)]))continue;this[_0x1633a9(0x1dd)][_0x1711db][_0x4d1502]=CustomTagManager[_0x1633a9(0x1c7)](this[_0x1633a9(0x1dd)][_0x1711db][_0x4d1502],_0x2ea77f['values']);}}static[a85_0x3cdf8b(0x1b2)](_0x599049,_0x55d206){const _0x1e1352=a85_0x3cdf8b,_0x4ed372={};_0x4ed372['vCedL']='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0x4ed372[_0x1e1352(0x1e1)]=function(_0x3876aa,_0x288d0f){return _0x3876aa*_0x288d0f;},_0x4ed372[_0x1e1352(0x1f5)]=function(_0x3a72c5,_0x8a2ae7){return _0x3a72c5*_0x8a2ae7;},_0x4ed372[_0x1e1352(0x21b)]=function(_0x140ab1,_0x34af0c){return _0x140ab1>_0x34af0c;},_0x4ed372[_0x1e1352(0x1e6)]=function(_0x47d705,_0x4ba056){return _0x47d705-_0x4ba056;},_0x4ed372[_0x1e1352(0x1e5)]='utf8';const _0x47b4af=_0x4ed372;if(!_0x599049)return logger[_0x1e1352(0x22b)](_0x47b4af['vCedL']),0x0;let _0x5b74cb;try{_0x5b74cb=os['tmpdir']();}catch(_0x14928e){return logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x14928e),0x0;}let _0x234290;try{_0x234290=fs[_0x1e1352(0x1dc)](_0x5b74cb);}catch(_0x2debad){return logger[_0x1e1352(0x22b)](_0x1e1352(0x20c)+_0x2debad),0x0;}const _0x443e13=''+BUILD_TAG_FILE_PREFIX+_0x599049+'_',_0x270aa4=_0x234290[_0x1e1352(0x1b4)](_0x30fcd6=>_0x30fcd6[_0x1e1352(0x1db)](_0x443e13)&&_0x30fcd6['endsWith']('.json')),_0x556c57=_0x47b4af[_0x1e1352(0x1e1)](_0x47b4af[_0x1e1352(0x1e1)](_0x47b4af[_0x1e1352(0x1f5)](0x2,0x3c),0x3c),0x3e8);let _0x20f65c=0x0;for(const _0x51e3c9 of _0x270aa4){const _0x2b1f49=path[_0x1e1352(0x20f)](_0x5b74cb,_0x51e3c9);try{const _0x5eb6c6=fs[_0x1e1352(0x220)](_0x2b1f49);if(_0x47b4af[_0x1e1352(0x21b)](_0x47b4af['HsOWv'](Date[_0x1e1352(0x1c6)](),_0x5eb6c6[_0x1e1352(0x1ea)]),_0x556c57)){logger['debug'](_0x1e1352(0x200)+_0x556c57+_0x1e1352(0x1c0)+_0x51e3c9);try{fs[_0x1e1352(0x1cd)](_0x2b1f49);}catch(_0x2f1627){logger[_0x1e1352(0x22b)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x51e3c9+':\x20'+(_0x2f1627&&_0x2f1627[_0x1e1352(0x1eb)]?_0x2f1627[_0x1e1352(0x1eb)]:_0x2f1627));}continue;}const _0x4e3397=fs[_0x1e1352(0x204)](_0x2b1f49,_0x47b4af[_0x1e1352(0x1e5)]),_0x1ab027=JSON[_0x1e1352(0x1b8)](_0x4e3397);this['mergeBuildLevelTags'](_0x55d206,_0x1ab027),_0x20f65c+=0x1;}catch(_0x1b526e){logger[_0x1e1352(0x22b)](_0x1e1352(0x1cc)+_0x51e3c9+':\x20'+(_0x1b526e&&_0x1b526e[_0x1e1352(0x1eb)]?_0x1b526e[_0x1e1352(0x1eb)]:_0x1b526e));}try{fs[_0x1e1352(0x1cd)](_0x2b1f49);}catch(_0x2d8ac5){logger[_0x1e1352(0x22b)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0x51e3c9+':\x20'+(_0x2d8ac5&&_0x2d8ac5['message']?_0x2d8ac5[_0x1e1352(0x1eb)]:_0x2d8ac5));}}return _0x20f65c;}}function a85_0x19ee(){const _0x1e676c=['ndwxi','testLevelTags','function','QLOCB','mergeBuildLevelTags','jest','stringify','nQstI','HsOWv','10oDxrDN','TEST','getBuildLevelTags','mtimeMs','message','string','name','exports','sCkyJ','250210sTBJyG','null','modules','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','keys','mfbkg','tmpdir','qjSkT','DZKwt','isRunning','MkczN','getCurrentTestUUID','getInstance','POST','./cliUtils','parseCommaSeparatedValues','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','lIMum','getTrackedInstance','testInfo','readFileSync','../../helpers/classLogger','2600612wiLeeq','../../helpers/helper','CustomTagManager','getAllData','72248uUqnZn','./browserstackCLI','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','currentTest',',\x20finalTags=','join',',\x20key=','333JGFEqL','getBuildTagsFilePath','mergeIntoTags','setTestDetails','__workerDetails','uWjcQ','DPXqQ','./modules/playwrightDriverModule','values','BUILD_TAG_FILE_PREFIX','FeSOY','isArray','includes','BROWSERSTACK_TESTHUB_UUID','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','statSync',',\x20values=','addMultipleEntries','uzZfa','lyeQD','getTestLevelTags','24523389AvNLTv','length','entries','\x20->\x20values=','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','debug','resolveInstance','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','buildHashedId','testhubConfig','__jestCurrentTestIdentifier','AeFnO','pid','getTestDetails','ISJxe','getBuildTagsRunId','multi_dropdown','bstack_build_tags_','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','_testInternals','toObject',':jest-','aggregateBuildLevelTagsFromTmp','env','filter','getTestFrameworkDetail','trim','./state/testFrameworkState','parse','KEY_TEST_ID','getState','field_type',',\x20existingTags=','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','1271676RQUEcM','ms)\x20','getTestIdentifierFromTestInfo','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','ywYtJ','1305jXIBYx','2728008McneCW','now','mergeValues','KEY_CUSTOM_TAGS','PWmEB','retry','.json','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','unlinkSync','prTbV','MikWb','from','PnVKq','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','134qDjjeN','GmJiC','promises','setCustomTags','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','STBiu','CICqG','7mUrRVa','startsWith','readdirSync','buildLevelTags'];a85_0x19ee=function(){return _0x1e676c;};return a85_0x19ee();}function a85_0x3a34(_0x4ad045,_0x402c20){const _0x19ee9a=a85_0x19ee();return a85_0x3a34=function(_0x3a34ee,_0x5adbeb){_0x3a34ee=_0x3a34ee-0x1ad;let _0x253fff=_0x19ee9a[_0x3a34ee];return _0x253fff;},a85_0x3a34(_0x4ad045,_0x402c20);}const a85_0x19b1fb={};a85_0x19b1fb[a85_0x3cdf8b(0x236)]=getBuildTagsRunId,a85_0x19b1fb[a85_0x3cdf8b(0x212)]=getBuildTagsFilePath,a85_0x19b1fb[a85_0x3cdf8b(0x21a)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a85_0x3cdf8b(0x1af)]=a85_0x19b1fb,module[a85_0x3cdf8b(0x1ee)]=CustomTagManager;
@@ -1 +1 @@
1
- function a87_0x1a8a(_0x39c3a6,_0x5842c3){const _0x552868=a87_0x5528();return a87_0x1a8a=function(_0x1a8ad5,_0x5b666e){_0x1a8ad5=_0x1a8ad5-0x1ba;let _0x2dc1ac=_0x552868[_0x1a8ad5];return _0x2dc1ac;},a87_0x1a8a(_0x39c3a6,_0x5842c3);}const a87_0x45387c=a87_0x1a8a;(function(_0x12c45e,_0x37de13){const _0x43d2dd=a87_0x1a8a,_0x4bedb8=_0x12c45e();while(!![]){try{const _0x50cbaa=-parseInt(_0x43d2dd(0x1c0))/0x1+-parseInt(_0x43d2dd(0x1c4))/0x2+-parseInt(_0x43d2dd(0x1c1))/0x3*(parseInt(_0x43d2dd(0x1bf))/0x4)+parseInt(_0x43d2dd(0x1c6))/0x5+-parseInt(_0x43d2dd(0x1c7))/0x6+parseInt(_0x43d2dd(0x1bd))/0x7+parseInt(_0x43d2dd(0x1bc))/0x8;if(_0x50cbaa===_0x37de13)break;else _0x4bedb8['push'](_0x4bedb8['shift']());}catch(_0x1adead){_0x4bedb8['push'](_0x4bedb8['shift']());}}}(a87_0x5528,0xd0ca9));function a87_0x5528(){const _0x553ffb=['Nuyyq','48644PyhLIP','874699qRXjNU','102JhqYfP','registerObserver','exports','2806966BEPEDQ','../../helpers/classLogger.js','928360cmTXGX','1083966YhbIEN','observers','getInstance','17183336UItDBZ','9757559RaZFFQ'];a87_0x5528=function(){return _0x553ffb;};return a87_0x5528();}const {createClassLogger}=require(a87_0x45387c(0x1c5));class EventDispatcher{static #instance=null;constructor(){const _0x5195cc=a87_0x45387c;this[_0x5195cc(0x1ba)]={};}static[a87_0x45387c(0x1bb)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x45387c(0x1c2)](_0x40b253,_0x2c899a){const _0x22c3a0=a87_0x45387c;!this['observers'][_0x40b253]&&(this['observers'][_0x40b253]=[]),this[_0x22c3a0(0x1ba)][_0x40b253]['push'](_0x2c899a);}async['notifyObserver'](_0xdd001b,_0x123629){const _0x34c0e0=a87_0x45387c,_0x1c2bed={'Nuyyq':function(_0x29b342,_0x565c9d){return _0x29b342(_0x565c9d);}};if(this['observers'][_0xdd001b]){for(const _0x2c385c of this['observers'][_0xdd001b]){await _0x1c2bed[_0x34c0e0(0x1be)](_0x2c385c,_0x123629);}return;}}}const eventDispatcher=EventDispatcher[a87_0x45387c(0x1bb)]();Object['freeze'](eventDispatcher),module[a87_0x45387c(0x1c3)]=eventDispatcher;
1
+ const a86_0x53851f=a86_0x4133;(function(_0x150336,_0x305a43){const _0x52097c=a86_0x4133,_0x292ffc=_0x150336();while(!![]){try{const _0xc8abee=-parseInt(_0x52097c(0xf7))/0x1*(-parseInt(_0x52097c(0xf5))/0x2)+-parseInt(_0x52097c(0xf8))/0x3+parseInt(_0x52097c(0xe6))/0x4*(parseInt(_0x52097c(0xf1))/0x5)+-parseInt(_0x52097c(0xf0))/0x6+parseInt(_0x52097c(0xe7))/0x7*(-parseInt(_0x52097c(0xf4))/0x8)+-parseInt(_0x52097c(0xee))/0x9+parseInt(_0x52097c(0xf6))/0xa*(parseInt(_0x52097c(0xe9))/0xb);if(_0xc8abee===_0x305a43)break;else _0x292ffc['push'](_0x292ffc['shift']());}catch(_0x38814f){_0x292ffc['push'](_0x292ffc['shift']());}}}(a86_0x2699,0x2ae14));const {createClassLogger}=require(a86_0x53851f(0xf2));function a86_0x2699(){const _0x436887=['40wQZpZf','16706rOegrM','20RDceaP','32ILHOOk','675138asoJWM','1108XYodPW','245602rKHiom','getInstance','2943259Clwasm','observers','registerObserver','freeze','exports','615897xabYrj','notifyObserver','2045916doEBcc','3305YWBueX','../../helpers/classLogger.js','push'];a86_0x2699=function(){return _0x436887;};return a86_0x2699();}function a86_0x4133(_0x263f6c,_0xfb52df){const _0x2699a8=a86_0x2699();return a86_0x4133=function(_0x4133db,_0x450a15){_0x4133db=_0x4133db-0xe6;let _0x579829=_0x2699a8[_0x4133db];return _0x579829;},a86_0x4133(_0x263f6c,_0xfb52df);}class EventDispatcher{static #instance=null;constructor(){const _0x1189d1=a86_0x53851f;this[_0x1189d1(0xea)]={};}static[a86_0x53851f(0xe8)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a86_0x53851f(0xeb)](_0x203fdc,_0x1c19f9){const _0x305453=a86_0x53851f;!this[_0x305453(0xea)][_0x203fdc]&&(this['observers'][_0x203fdc]=[]),this[_0x305453(0xea)][_0x203fdc][_0x305453(0xf3)](_0x1c19f9);}async[a86_0x53851f(0xef)](_0x565564,_0x27ec1e){const _0x4ec7f4=a86_0x53851f,_0x24bf3e={'CBXnZ':function(_0x1668d9,_0x2d88d3){return _0x1668d9(_0x2d88d3);}};if(this['observers'][_0x565564]){for(const _0x332a18 of this[_0x4ec7f4(0xea)][_0x565564]){await _0x24bf3e['CBXnZ'](_0x332a18,_0x27ec1e);}return;}}}const eventDispatcher=EventDispatcher[a86_0x53851f(0xe8)]();Object[a86_0x53851f(0xec)](eventDispatcher),module[a86_0x53851f(0xed)]=eventDispatcher;
@@ -1 +1 @@
1
- const a88_0x4417ab=a88_0x3645;(function(_0x545599,_0x57da17){const _0x33c9a4=a88_0x3645,_0x4d6cad=_0x545599();while(!![]){try{const _0x2961db=-parseInt(_0x33c9a4(0x1fb))/0x1*(-parseInt(_0x33c9a4(0x1f5))/0x2)+parseInt(_0x33c9a4(0x1ff))/0x3+parseInt(_0x33c9a4(0x1f1))/0x4+-parseInt(_0x33c9a4(0x209))/0x5+parseInt(_0x33c9a4(0x205))/0x6*(-parseInt(_0x33c9a4(0x207))/0x7)+parseInt(_0x33c9a4(0x1f0))/0x8+-parseInt(_0x33c9a4(0x1fe))/0x9;if(_0x2961db===_0x57da17)break;else _0x4d6cad['push'](_0x4d6cad['shift']());}catch(_0x410ba2){_0x4d6cad['push'](_0x4d6cad['shift']());}}}(a88_0x46c1,0x2d17e));const {createClassLogger}=require('../../../helpers/classLogger.js'),util=require('util'),eventDispatcher=require(a88_0x4417ab(0x204)),CLIUtils=require(a88_0x4417ab(0x1f2)),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a88_0x4417ab(0x202));function a88_0x3645(_0x1db4eb,_0x1735c3){const _0x46c162=a88_0x46c1();return a88_0x3645=function(_0x36459a,_0x4a7aa4){_0x36459a=_0x36459a-0x1eb;let _0x279dc1=_0x46c162[_0x36459a];return _0x279dc1;},a88_0x3645(_0x1db4eb,_0x1735c3);}function a88_0x46c1(){const _0x3209c8=['1593115OBsRgD','getAllData','getAutomationFrameworkVersion','trackEvent','getTrackedInstance','createContext','registerObserver','setState','getAutomationFrameworkName','automationFrameworkName','2060040IoGrZL','1078656bZJIis','../cliUtils.js','instances','automation_sessions','4iPjOuI','exports','trackEvent:\x20automationFrameworkState=','getId','notifyObserver','get','7099dKJtSR','debug','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','1909485MHcKuA','637803JBgGdq','setTrackedInstance','getHookRegistryKey','AutomationFramework','automationFrameworkVersion','../eventDispatcher.js','76956KWlerw','set','21fLdqyN','runHooks'];a88_0x46c1=function(){return _0x3209c8;};return a88_0x46c1();}class AutomationFramework{static [a88_0x4417ab(0x1f3)]=new Map();static ['KEY_AUTOMATION_SESSIONS']=a88_0x4417ab(0x1f4);static [a88_0x4417ab(0x1fd)]='non_browserstack_automation_sessions';constructor(_0x1caeea,_0x5c2b84){const _0x496703=a88_0x4417ab;this[_0x496703(0x1ef)]=_0x1caeea,this[_0x496703(0x203)]=_0x5c2b84;}[a88_0x4417ab(0x1ee)](){const _0x1a6527=a88_0x4417ab;return this[_0x1a6527(0x1ef)];}[a88_0x4417ab(0x20b)](){const _0x342c9b=a88_0x4417ab;return this[_0x342c9b(0x203)];}async[a88_0x4417ab(0x20c)](_0x417187,_0x4b3be5,_0x2f9344={}){const _0x2ac337=a88_0x4417ab;logger[_0x2ac337(0x1fc)](_0x2ac337(0x1f7)+_0x417187+'\x20hookState='+_0x4b3be5);}async[a88_0x4417ab(0x208)](_0x20d72c,_0x43868f,_0x1e9c2b,_0x3760f0={}){const _0x11daf2=a88_0x4417ab,_0x182e04=CLIUtils[_0x11daf2(0x201)](_0x43868f,_0x1e9c2b);_0x20d72c&&_0x20d72c[_0x11daf2(0x1ed)](_0x43868f),await eventDispatcher[_0x11daf2(0x1f9)](_0x182e04,_0x3760f0);}static[a88_0x4417ab(0x1ec)](_0x41799e,_0x5dd2bf,_0x349f8e){const _0x41abc3=a88_0x4417ab;eventDispatcher['registerObserver'](CLIUtils[_0x41abc3(0x201)](_0x41799e,_0x5dd2bf),_0x349f8e);}static[a88_0x4417ab(0x200)](_0x2a4ed7,_0x1de5ae){const _0x422392=a88_0x4417ab;AutomationFramework[_0x422392(0x1f3)][_0x422392(0x206)](_0x2a4ed7[_0x422392(0x1f8)](),_0x1de5ae);}static[a88_0x4417ab(0x20d)](){const _0x5d3282=a88_0x4417ab,_0xfafd5=TrackedInstance[_0x5d3282(0x1eb)](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x5d3282(0x1f3)][_0x5d3282(0x1fa)](_0xfafd5[_0x5d3282(0x1f8)]());}static[a88_0x4417ab(0x1ed)](_0x2ffbaf,_0x1101ec,_0x38a1d7){const _0x428a6f=a88_0x4417ab;_0x2ffbaf[_0x428a6f(0x20a)]()[_0x428a6f(0x206)](_0x1101ec,_0x38a1d7);}static['getState'](_0x4f638d,_0xb1f6da){const _0x4134c6=a88_0x4417ab;return _0x4f638d['getAllData']()[_0x4134c6(0x1fa)](_0xb1f6da);}}module[a88_0x4417ab(0x1f6)]=AutomationFramework;
1
+ const a87_0x310789=a87_0x4348;(function(_0x38272e,_0x4ca66c){const _0x2dee11=a87_0x4348,_0x1b231a=_0x38272e();while(!![]){try{const _0x9b02f=parseInt(_0x2dee11(0xbc))/0x1+parseInt(_0x2dee11(0xc8))/0x2+parseInt(_0x2dee11(0xd3))/0x3+-parseInt(_0x2dee11(0xde))/0x4*(-parseInt(_0x2dee11(0xc0))/0x5)+-parseInt(_0x2dee11(0xbf))/0x6*(-parseInt(_0x2dee11(0xd2))/0x7)+-parseInt(_0x2dee11(0xcf))/0x8*(-parseInt(_0x2dee11(0xbe))/0x9)+-parseInt(_0x2dee11(0xd9))/0xa*(parseInt(_0x2dee11(0xce))/0xb);if(_0x9b02f===_0x4ca66c)break;else _0x1b231a['push'](_0x1b231a['shift']());}catch(_0x3c4ef2){_0x1b231a['push'](_0x1b231a['shift']());}}}(a87_0x2dfd,0x5fbc0));function a87_0x4348(_0x505c7b,_0x36b116){const _0x2dfdc4=a87_0x2dfd();return a87_0x4348=function(_0x4348bd,_0x485f60){_0x4348bd=_0x4348bd-0xb8;let _0x7f1ad6=_0x2dfdc4[_0x4348bd];return _0x7f1ad6;},a87_0x4348(_0x505c7b,_0x36b116);}const {createClassLogger}=require('../../../helpers/classLogger.js'),util=require(a87_0x310789(0xc5)),eventDispatcher=require(a87_0x310789(0xd6)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a87_0x310789(0xcb)),logger=createClassLogger('AutomationFramework');function a87_0x2dfd(){const _0x2cdc00=['4961930GbjhGI','automationFrameworkName','getHookRegistryKey','get','getState','732EZSGJi','registerObserver','notifyObserver','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','qxiTL','374533unRUmn','getAutomationFrameworkVersion','6528420SKHbwg','1251078aBjTLp','16140YjPVVG','function','getAutomationFrameworkName','FHEfq','KEY_AUTOMATION_SESSIONS','util','automationFrameworkVersion','trackEvent','775818XBlBET','getAllData','setState','../instances/trackedInstance.js','pKciK','non_browserstack_automation_sessions','55WTsHQp','8jSFFAe','getId','instances','7XbTLED','1758102gaHvML','exports','debug','../eventDispatcher.js','trackEvent:\x20automationFrameworkState=','runHooks'];a87_0x2dfd=function(){return _0x2cdc00;};return a87_0x2dfd();}class AutomationFramework{static [a87_0x310789(0xd1)]=new Map();static [a87_0x310789(0xc4)]='automation_sessions';static [a87_0x310789(0xba)]=a87_0x310789(0xcd);constructor(_0x4e0a52,_0x59951e){const _0x4dc2f5=a87_0x310789;this[_0x4dc2f5(0xda)]=_0x4e0a52,this[_0x4dc2f5(0xc6)]=_0x59951e;}[a87_0x310789(0xc2)](){const _0x48e200=a87_0x310789;return this[_0x48e200(0xda)];}[a87_0x310789(0xbd)](){const _0x4e84c8=a87_0x310789;return this[_0x4e84c8(0xc6)];}async[a87_0x310789(0xc7)](_0x53cb1e,_0x1ae689,_0x37d2e6={}){const _0x2dedb2=a87_0x310789;logger[_0x2dedb2(0xd5)](_0x2dedb2(0xd7)+_0x53cb1e+'\x20hookState='+_0x1ae689);}async[a87_0x310789(0xd8)](_0x597b1a,_0x44d06f,_0x16c704,_0x1e74f7={}){const _0x448581=a87_0x310789,_0xd1e19c=CLIUtils[_0x448581(0xdb)](_0x44d06f,_0x16c704);_0x597b1a&&_0x597b1a[_0x448581(0xca)](_0x44d06f),await eventDispatcher[_0x448581(0xb9)](_0xd1e19c,_0x1e74f7);}static[a87_0x310789(0xb8)](_0x2183d8,_0x6e08dd,_0xed9688){const _0xe5fac7=a87_0x310789;eventDispatcher[_0xe5fac7(0xb8)](CLIUtils[_0xe5fac7(0xdb)](_0x2183d8,_0x6e08dd),_0xed9688);}static['setTrackedInstance'](_0x3e14c0,_0x4db344){const _0x69c42b=a87_0x310789;AutomationFramework[_0x69c42b(0xd1)]['set'](_0x3e14c0[_0x69c42b(0xd0)](),_0x4db344);}static['getTrackedInstance'](){const _0x3aa314=a87_0x310789,_0xa9a51d=TrackedInstance['createContext'](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x3aa314(0xd1)][_0x3aa314(0xdc)](_0xa9a51d['getId']());}static[a87_0x310789(0xca)](_0x2389f7,_0x45321a,_0x4f3254){_0x2389f7['getAllData']()['set'](_0x45321a,_0x4f3254);}static[a87_0x310789(0xdd)](_0x434932,_0x576a4c,_0x5275ba=undefined){const _0x3d4d2d=a87_0x310789,_0x39841d={};_0x39841d[_0x3d4d2d(0xbb)]=function(_0x2ac094,_0x30d040){return _0x2ac094!==_0x30d040;},_0x39841d[_0x3d4d2d(0xc3)]=_0x3d4d2d(0xc1),_0x39841d[_0x3d4d2d(0xcc)]=function(_0x4c4cfc,_0x96ee7d){return _0x4c4cfc===_0x96ee7d;};const _0x29e4de=_0x39841d;if(!_0x434932||_0x29e4de[_0x3d4d2d(0xbb)](typeof _0x434932[_0x3d4d2d(0xc9)],_0x29e4de[_0x3d4d2d(0xc3)]))return _0x5275ba;const _0x2c1994=_0x434932[_0x3d4d2d(0xc9)]()[_0x3d4d2d(0xdc)](_0x576a4c);return _0x29e4de['pKciK'](_0x2c1994,undefined)?_0x5275ba:_0x2c1994;}}module[a87_0x310789(0xd4)]=AutomationFramework;
@@ -1 +1 @@
1
- const a89_0x124ac7=a89_0x39d7;(function(_0x3d1f20,_0x2f6621){const _0x486b45=a89_0x39d7,_0x35c261=_0x3d1f20();while(!![]){try{const _0x34222d=parseInt(_0x486b45(0x78))/0x1*(parseInt(_0x486b45(0x6f))/0x2)+parseInt(_0x486b45(0x6a))/0x3*(parseInt(_0x486b45(0x8a))/0x4)+parseInt(_0x486b45(0x8d))/0x5*(parseInt(_0x486b45(0x8f))/0x6)+-parseInt(_0x486b45(0x6d))/0x7*(parseInt(_0x486b45(0x72))/0x8)+parseInt(_0x486b45(0x6e))/0x9+-parseInt(_0x486b45(0x85))/0xa*(-parseInt(_0x486b45(0x8c))/0xb)+-parseInt(_0x486b45(0x80))/0xc;if(_0x34222d===_0x2f6621)break;else _0x35c261['push'](_0x35c261['shift']());}catch(_0x15b20a){_0x35c261['push'](_0x35c261['shift']());}}}(a89_0x2501,0xd1144));const a89_0x1a5cfe={};function a89_0x2501(){const _0x2c9e8d=['KEY_CAPABILITIES','COMMAND_NEW_SESSION','71JudsbM','exports','w3cexecutescriptasync','COMMAND_QUIT','ended_at','COMMAND_GET','started_at','get','20635692YyORpL','hub_url','capabilities','w3cexecutescript','newsession','174290KkqLsJ','COMMAND_W3C_EXECUTE_SCRIPT','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','COMMAND_SCREENSHOT','is_browserstack_hub','254268SsbZww','platform_index','99wGEfpH','52945euQUUx','input_capabilities','672RHJZWA','18BvMMMw','KEY_STARTED_AT','KEY_FRAMEWORK_SESSION_ID','7wfWFPc','5512122VmimLO','36118LFxMeL','screenshot','framework_session_id','8342792hFGtMT','KEY_INPUT_CAPABILITIES','quit','ENV_BROWSERSTACK_PLATFORM_INDEX'];a89_0x2501=function(){return _0x2c9e8d;};return a89_0x2501();}a89_0x1a5cfe[a89_0x124ac7(0x75)]='BROWSERSTACK_PLATFORM_INDEX',a89_0x1a5cfe['KEY_HUB_URL']=a89_0x124ac7(0x81),a89_0x1a5cfe[a89_0x124ac7(0x6c)]=a89_0x124ac7(0x71),a89_0x1a5cfe[a89_0x124ac7(0x73)]=a89_0x124ac7(0x8e),a89_0x1a5cfe[a89_0x124ac7(0x76)]=a89_0x124ac7(0x82),a89_0x1a5cfe['KEY_IS_BROWSERSTACK_HUB']=a89_0x124ac7(0x89),a89_0x1a5cfe[a89_0x124ac7(0x6b)]=a89_0x124ac7(0x7e),a89_0x1a5cfe['KEY_ENDED_AT']=a89_0x124ac7(0x7c),a89_0x1a5cfe['KEY_PLATFORM_INDEX']=a89_0x124ac7(0x8b),a89_0x1a5cfe[a89_0x124ac7(0x77)]=a89_0x124ac7(0x84),a89_0x1a5cfe[a89_0x124ac7(0x7d)]=a89_0x124ac7(0x7f),a89_0x1a5cfe[a89_0x124ac7(0x88)]=a89_0x124ac7(0x70),a89_0x1a5cfe[a89_0x124ac7(0x86)]=a89_0x124ac7(0x83),a89_0x1a5cfe[a89_0x124ac7(0x87)]=a89_0x124ac7(0x7a),a89_0x1a5cfe[a89_0x124ac7(0x7b)]=a89_0x124ac7(0x74);const AutomationFrameworkConstants=a89_0x1a5cfe;function a89_0x39d7(_0x4577d5,_0x159d78){const _0x25012e=a89_0x2501();return a89_0x39d7=function(_0x39d712,_0x45807c){_0x39d712=_0x39d712-0x6a;let _0xdaa673=_0x25012e[_0x39d712];return _0xdaa673;},a89_0x39d7(_0x4577d5,_0x159d78);}module[a89_0x124ac7(0x79)]=AutomationFrameworkConstants;
1
+ const a88_0x489c17=a88_0x429c;function a88_0x429c(_0x4c3d6b,_0xe0cd87){const _0x13a9e5=a88_0x13a9();return a88_0x429c=function(_0x429cb7,_0x2c7f4c){_0x429cb7=_0x429cb7-0x77;let _0x5b5efa=_0x13a9e5[_0x429cb7];return _0x5b5efa;},a88_0x429c(_0x4c3d6b,_0xe0cd87);}(function(_0x27238d,_0x291299){const _0x2608f2=a88_0x429c,_0x239088=_0x27238d();while(!![]){try{const _0x3ee9b0=parseInt(_0x2608f2(0x81))/0x1+parseInt(_0x2608f2(0x77))/0x2*(-parseInt(_0x2608f2(0x8f))/0x3)+-parseInt(_0x2608f2(0x8c))/0x4*(parseInt(_0x2608f2(0x8e))/0x5)+-parseInt(_0x2608f2(0x97))/0x6+-parseInt(_0x2608f2(0x7b))/0x7+parseInt(_0x2608f2(0x7f))/0x8*(-parseInt(_0x2608f2(0x88))/0x9)+parseInt(_0x2608f2(0x80))/0xa*(parseInt(_0x2608f2(0x95))/0xb);if(_0x3ee9b0===_0x291299)break;else _0x239088['push'](_0x239088['shift']());}catch(_0x2ce302){_0x239088['push'](_0x239088['shift']());}}}(a88_0x13a9,0x6e5d3));function a88_0x13a9(){const _0x514aa2=['KEY_STARTED_AT','hub_url','COMMAND_NEW_SESSION','is_browserstack_hub','BROWSERSTACK_PLATFORM_INDEX','832329uQVaar','quit','COMMAND_QUIT','input_capabilities','3005528misKZU','framework_session_id','5uCpfUT','15kvnKYG','KEY_PLATFORM_INDEX','capabilities','exports','get','KEY_ENDED_AT','28985869wgfYEc','COMMAND_GET','4433730lZfdxh','w3cexecutescriptasync','134614HBeOzD','ENV_BROWSERSTACK_PLATFORM_INDEX','KEY_HUB_URL','COMMAND_SCREENSHOT','205149FJhTRS','newsession','platform_index','KEY_IS_BROWSERSTACK_HUB','64fugYKO','10NEpSkA','412999cboAgp','screenshot'];a88_0x13a9=function(){return _0x514aa2;};return a88_0x13a9();}const a88_0x362d1d={};a88_0x362d1d[a88_0x489c17(0x78)]=a88_0x489c17(0x87),a88_0x362d1d[a88_0x489c17(0x79)]=a88_0x489c17(0x84),a88_0x362d1d['KEY_FRAMEWORK_SESSION_ID']=a88_0x489c17(0x8d),a88_0x362d1d['KEY_INPUT_CAPABILITIES']=a88_0x489c17(0x8b),a88_0x362d1d['KEY_CAPABILITIES']=a88_0x489c17(0x91),a88_0x362d1d[a88_0x489c17(0x7e)]=a88_0x489c17(0x86),a88_0x362d1d[a88_0x489c17(0x83)]='started_at',a88_0x362d1d[a88_0x489c17(0x94)]='ended_at',a88_0x362d1d[a88_0x489c17(0x90)]=a88_0x489c17(0x7d),a88_0x362d1d[a88_0x489c17(0x85)]=a88_0x489c17(0x7c),a88_0x362d1d[a88_0x489c17(0x96)]=a88_0x489c17(0x93),a88_0x362d1d[a88_0x489c17(0x7a)]=a88_0x489c17(0x82),a88_0x362d1d['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a88_0x362d1d['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a88_0x489c17(0x98),a88_0x362d1d[a88_0x489c17(0x8a)]=a88_0x489c17(0x89);const AutomationFrameworkConstants=a88_0x362d1d;module[a88_0x489c17(0x92)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- function a90_0x4ead(){const _0x22db7d=['KEY_EVENT_ENDED_AT','pending','KEY_TEST_LOGS','3735472QsDHfd','test_id','hook_failure_type','KEY_FILE_SIZE','KEY_HOOK_RESULT','KEY_TEST_SCOPES','KEY_HOOK_ID','logs','MAX_TOP_LEVEL_STEPS','KEY_HOOK_FAILURE_TYPE','test_result','hook_failure','retry_of','KEY_FILE_NAME','KEY_HOOK_FAILURE_REASON','KEY_TEST_META','file_name','KEY_TEST_NAME','KEY_TEST_DURATION','KEY_HOOK_LAST_STARTED','test_hook_last_started','hook_name','MAX_NESTED_STEP_DEPTH','KEY_TEST_SCREENSHOTS','test_rerun_name','KEY_FILE_LEVEL','HOOK_REGEX','hook_result','DEFAULT_TEST_RESULT','TEST_LOG','platform_index','test_failure_type','KEY_TEST_UUID','event_ended_at','KEY_SESSION_NAME','KEY_LOGS','TEST_SCREENSHOT','KEY_PLATFORM_INDEX','DEFAULT_HOOK_RESULT','test_failure','test_duration','625543IDmBoi','KEY_TEST_FAILURE_TYPE','77chKePR','test_uuid','KEY_HOOK_LAST_FINISHED','automate_session_reason','file_path','KEY_TEST_RETRY_OF','KEY_TEST_RESULT','custom_metadata','KEY_TEST_SCOPE','test_failure_reason','1355352XXHFga','2RiZZfB','70857iEYNYr','test_scope','test_logs','KEY_TEST_FAILURE_REASON','KEY_HOOKS_FINISHED','KEY_TEST_LOCATION','test_location','KIND_SCREENSHOT','KEY_EVENT_STARTED_AT','8KywCDT','hook_id','test_name','file_size','95673EtSGDH','35vLrDIx','KEY_CUSTOM_TAGS','test_started_at','KEY_AUTOMATE_SESSION_REASON','68QzefcN','508596CagNxA','770MOWIJI','hook_failure_reason','automate_session_status','KEY_TEST_FRAMEWORK_NAME','test_result_at','^(BEFORE_|AFTER_)','file_level','KEY_TEST_ENDED_AT','KEY_TEST_FAILURE','KEY_TEST_TAGS','hook_logs','2912686FTSCht','KEY_TEST_CODE','test_hooks_finished','event_started_at','KEY_TEST_RESULT_AT','test_session_name','test_ended_at'];a90_0x4ead=function(){return _0x22db7d;};return a90_0x4ead();}const a90_0x412181=a90_0x27b0;function a90_0x27b0(_0x3e7da0,_0x6705ad){const _0x4eadb0=a90_0x4ead();return a90_0x27b0=function(_0x27b007,_0x52d37e){_0x27b007=_0x27b007-0xe8;let _0x14768e=_0x4eadb0[_0x27b007];return _0x14768e;},a90_0x27b0(_0x3e7da0,_0x6705ad);}(function(_0x529087,_0x9531cc){const _0x2cb949=a90_0x27b0,_0x1ad90e=_0x529087();while(!![]){try{const _0x322eca=-parseInt(_0x2cb949(0x132))/0x1*(-parseInt(_0x2cb949(0x13f))/0x2)+-parseInt(_0x2cb949(0xed))/0x3*(-parseInt(_0x2cb949(0xf2))/0x4)+-parseInt(_0x2cb949(0xee))/0x5*(-parseInt(_0x2cb949(0xf3))/0x6)+-parseInt(_0x2cb949(0xff))/0x7*(-parseInt(_0x2cb949(0xe9))/0x8)+parseInt(_0x2cb949(0x140))/0x9*(-parseInt(_0x2cb949(0xf4))/0xa)+-parseInt(_0x2cb949(0x134))/0xb*(parseInt(_0x2cb949(0x13e))/0xc)+-parseInt(_0x2cb949(0x109))/0xd;if(_0x322eca===_0x9531cc)break;else _0x1ad90e['push'](_0x1ad90e['shift']());}catch(_0x21e5f6){_0x1ad90e['push'](_0x1ad90e['shift']());}}}(a90_0x4ead,0x785a3));const a90_0x5771c6={};a90_0x5771c6[a90_0x412181(0x129)]=a90_0x412181(0x135),a90_0x5771c6['KEY_TEST_ID']=a90_0x412181(0x10a),a90_0x5771c6[a90_0x412181(0x11a)]=a90_0x412181(0xeb),a90_0x5771c6['KEY_TEST_FILE_PATH']='test_file_path',a90_0x5771c6[a90_0x412181(0xfd)]='test_tags',a90_0x5771c6[a90_0x412181(0x13a)]=a90_0x412181(0x113),a90_0x5771c6[a90_0x412181(0x103)]=a90_0x412181(0xf8),a90_0x5771c6['KEY_TEST_STARTED_AT']=a90_0x412181(0xf0),a90_0x5771c6[a90_0x412181(0xfb)]=a90_0x412181(0x105),a90_0x5771c6[a90_0x412181(0x145)]=a90_0x412181(0x146),a90_0x5771c6[a90_0x412181(0x11b)]=a90_0x412181(0x131),a90_0x5771c6[a90_0x412181(0x13c)]=a90_0x412181(0x141),a90_0x5771c6[a90_0x412181(0x10e)]='test_scopes',a90_0x5771c6[a90_0x412181(0xf7)]='test_framework_name',a90_0x5771c6['KEY_TEST_FRAMEWORK_VERSION']='test_framework_version',a90_0x5771c6[a90_0x412181(0x100)]='test_code',a90_0x5771c6['KEY_TEST_RERUN_NAME']=a90_0x412181(0x121),a90_0x5771c6[a90_0x412181(0x139)]=a90_0x412181(0x115),a90_0x5771c6[a90_0x412181(0x12e)]=a90_0x412181(0x127),a90_0x5771c6[a90_0x412181(0xfc)]=a90_0x412181(0x130),a90_0x5771c6[a90_0x412181(0x133)]=a90_0x412181(0x128),a90_0x5771c6[a90_0x412181(0x143)]=a90_0x412181(0x13d),a90_0x5771c6[a90_0x412181(0x108)]=a90_0x412181(0x142),a90_0x5771c6[a90_0x412181(0x118)]='test_meta',a90_0x5771c6[a90_0x412181(0x12b)]=a90_0x412181(0x104),a90_0x5771c6['KEY_AUTOMATE_SESSION_NAME']='automate_session_name',a90_0x5771c6['KEY_AUTOMATE_SESSION_STATUS']=a90_0x412181(0xf6),a90_0x5771c6[a90_0x412181(0xf1)]=a90_0x412181(0x137),a90_0x5771c6[a90_0x412181(0xe8)]=a90_0x412181(0x102),a90_0x5771c6[a90_0x412181(0x106)]=a90_0x412181(0x12a),a90_0x5771c6[a90_0x412181(0x10f)]=a90_0x412181(0xea),a90_0x5771c6[a90_0x412181(0x10d)]=a90_0x412181(0x124),a90_0x5771c6[a90_0x412181(0x112)]=a90_0x412181(0x10b),a90_0x5771c6[a90_0x412181(0x117)]=a90_0x412181(0xf5),a90_0x5771c6['KEY_HOOK_FAILURE']=a90_0x412181(0x114),a90_0x5771c6['KEY_HOOK_LOGS']=a90_0x412181(0xfe),a90_0x5771c6['KEY_HOOK_NAME']=a90_0x412181(0x11e),a90_0x5771c6[a90_0x412181(0x125)]=a90_0x412181(0x107),a90_0x5771c6[a90_0x412181(0x12f)]=a90_0x412181(0x107),a90_0x5771c6[a90_0x412181(0x147)]=a90_0x412181(0x12d),a90_0x5771c6['KIND_LOG']=a90_0x412181(0x126),a90_0x5771c6[a90_0x412181(0x123)]=a90_0x412181(0xf9),a90_0x5771c6['KEY_HOOKS_STARTED']='test_hooks_started',a90_0x5771c6[a90_0x412181(0x144)]=a90_0x412181(0x101),a90_0x5771c6[a90_0x412181(0x11c)]=a90_0x412181(0x11d),a90_0x5771c6[a90_0x412181(0x136)]='test_hook_last_finished',a90_0x5771c6[a90_0x412181(0x12c)]=a90_0x412181(0x110),a90_0x5771c6[a90_0x412181(0xef)]=a90_0x412181(0x13b),a90_0x5771c6['KEY_TEST_ATTACHMENTS']='test_attachments',a90_0x5771c6[a90_0x412181(0x10c)]=a90_0x412181(0xec),a90_0x5771c6[a90_0x412181(0x116)]=a90_0x412181(0x119),a90_0x5771c6['KEY_FILE_PATH']=a90_0x412181(0x138),a90_0x5771c6[a90_0x412181(0x122)]=a90_0x412181(0xfa),a90_0x5771c6[a90_0x412181(0x120)]='test_screenshots',a90_0x5771c6[a90_0x412181(0x111)]=0xa,a90_0x5771c6[a90_0x412181(0x11f)]=0x2;const TestFrameworkConstants=a90_0x5771c6;module['exports']=TestFrameworkConstants;
1
+ const a89_0x167165=a89_0xf711;(function(_0x2213b9,_0x17a535){const _0xcd4b9a=a89_0xf711,_0x3b5267=_0x2213b9();while(!![]){try{const _0x2eb1dd=-parseInt(_0xcd4b9a(0x1d1))/0x1*(parseInt(_0xcd4b9a(0x1f6))/0x2)+parseInt(_0xcd4b9a(0x21a))/0x3+parseInt(_0xcd4b9a(0x210))/0x4*(parseInt(_0xcd4b9a(0x1d6))/0x5)+parseInt(_0xcd4b9a(0x218))/0x6*(parseInt(_0xcd4b9a(0x1d2))/0x7)+-parseInt(_0xcd4b9a(0x211))/0x8*(-parseInt(_0xcd4b9a(0x1fa))/0x9)+parseInt(_0xcd4b9a(0x1d4))/0xa*(parseInt(_0xcd4b9a(0x1ec))/0xb)+-parseInt(_0xcd4b9a(0x1db))/0xc;if(_0x2eb1dd===_0x17a535)break;else _0x3b5267['push'](_0x3b5267['shift']());}catch(_0x47588e){_0x3b5267['push'](_0x3b5267['shift']());}}}(a89_0xbf20,0x235db));const a89_0x260c38={};a89_0x260c38[a89_0x167165(0x207)]=a89_0x167165(0x201),a89_0x260c38[a89_0x167165(0x20c)]='test_id',a89_0x260c38[a89_0x167165(0x1c9)]=a89_0x167165(0x1d7),a89_0x260c38[a89_0x167165(0x1e5)]='test_file_path',a89_0x260c38[a89_0x167165(0x212)]=a89_0x167165(0x1e9),a89_0x260c38[a89_0x167165(0x1ca)]='test_result',a89_0x260c38[a89_0x167165(0x1fd)]='test_result_at',a89_0x260c38[a89_0x167165(0x1e8)]=a89_0x167165(0x1ea),a89_0x260c38['KEY_TEST_ENDED_AT']=a89_0x167165(0x1dd),a89_0x260c38[a89_0x167165(0x1e0)]='test_location',a89_0x260c38[a89_0x167165(0x20b)]=a89_0x167165(0x1e7),a89_0x260c38['KEY_TEST_SCOPE']=a89_0x167165(0x1f2),a89_0x260c38['KEY_TEST_SCOPES']=a89_0x167165(0x20a),a89_0x260c38[a89_0x167165(0x1cc)]='test_framework_name',a89_0x260c38['KEY_TEST_FRAMEWORK_VERSION']=a89_0x167165(0x1dc),a89_0x260c38[a89_0x167165(0x1c8)]=a89_0x167165(0x20f),a89_0x260c38[a89_0x167165(0x1ff)]=a89_0x167165(0x1cf),a89_0x260c38[a89_0x167165(0x1eb)]=a89_0x167165(0x1de),a89_0x260c38[a89_0x167165(0x1e6)]='platform_index',a89_0x260c38[a89_0x167165(0x21c)]=a89_0x167165(0x220),a89_0x260c38[a89_0x167165(0x215)]='test_failure_type',a89_0x260c38['KEY_TEST_FAILURE_REASON']=a89_0x167165(0x1fe),a89_0x260c38[a89_0x167165(0x1ef)]=a89_0x167165(0x1f1),a89_0x260c38[a89_0x167165(0x1f3)]=a89_0x167165(0x1f4),a89_0x260c38['KEY_SESSION_NAME']=a89_0x167165(0x21e),a89_0x260c38[a89_0x167165(0x1cb)]=a89_0x167165(0x203),a89_0x260c38[a89_0x167165(0x217)]=a89_0x167165(0x21d),a89_0x260c38[a89_0x167165(0x21f)]=a89_0x167165(0x1d9),a89_0x260c38[a89_0x167165(0x1ce)]=a89_0x167165(0x204),a89_0x260c38[a89_0x167165(0x20e)]=a89_0x167165(0x1e3),a89_0x260c38['KEY_HOOK_ID']='hook_id',a89_0x260c38[a89_0x167165(0x20d)]=a89_0x167165(0x206),a89_0x260c38['KEY_HOOK_FAILURE_TYPE']=a89_0x167165(0x1f0),a89_0x260c38['KEY_HOOK_FAILURE_REASON']=a89_0x167165(0x1f8),a89_0x260c38[a89_0x167165(0x222)]=a89_0x167165(0x216),a89_0x260c38[a89_0x167165(0x200)]=a89_0x167165(0x1df),a89_0x260c38['KEY_HOOK_NAME']=a89_0x167165(0x1e4),a89_0x260c38[a89_0x167165(0x1d3)]=a89_0x167165(0x208),a89_0x260c38['DEFAULT_HOOK_RESULT']=a89_0x167165(0x208),a89_0x260c38[a89_0x167165(0x1fb)]=a89_0x167165(0x1f9),a89_0x260c38[a89_0x167165(0x1d5)]=a89_0x167165(0x1d8),a89_0x260c38[a89_0x167165(0x223)]='^(BEFORE_|AFTER_)',a89_0x260c38['KEY_HOOKS_STARTED']=a89_0x167165(0x219),a89_0x260c38['KEY_HOOKS_FINISHED']=a89_0x167165(0x1ed),a89_0x260c38[a89_0x167165(0x213)]=a89_0x167165(0x209),a89_0x260c38[a89_0x167165(0x1e2)]=a89_0x167165(0x205),a89_0x260c38[a89_0x167165(0x202)]=a89_0x167165(0x221),a89_0x260c38[a89_0x167165(0x1f7)]=a89_0x167165(0x1f5),a89_0x260c38[a89_0x167165(0x1da)]=a89_0x167165(0x1fc),a89_0x260c38[a89_0x167165(0x21b)]='file_size',a89_0x260c38['KEY_FILE_NAME']=a89_0x167165(0x214),a89_0x260c38['KEY_FILE_PATH']='file_path',a89_0x260c38['KEY_FILE_LEVEL']=a89_0x167165(0x1ee),a89_0x260c38[a89_0x167165(0x1d0)]=a89_0x167165(0x1e1),a89_0x260c38['MAX_TOP_LEVEL_STEPS']=0xa,a89_0x260c38['MAX_NESTED_STEP_DEPTH']=0x2;function a89_0xf711(_0x4f1169,_0x310a41){const _0xbf20a9=a89_0xbf20();return a89_0xf711=function(_0xf711f5,_0x38f35b){_0xf711f5=_0xf711f5-0x1c8;let _0x28627e=_0xbf20a9[_0xf711f5];return _0x28627e;},a89_0xf711(_0x4f1169,_0x310a41);}const TestFrameworkConstants=a89_0x260c38;function a89_0xbf20(){const _0x1d50b1=['test_tags','test_started_at','KEY_TEST_RETRY_OF','2880295uyCMhF','test_hooks_finished','file_level','KEY_TEST_LOGS','hook_failure_type','test_logs','test_scope','KEY_TEST_META','test_meta','custom_metadata','44890yZuAII','KEY_CUSTOM_TAGS','hook_failure_reason','TEST_SCREENSHOT','9WBvUmr','KIND_SCREENSHOT','test_attachments','KEY_TEST_RESULT_AT','test_failure_reason','KEY_TEST_RERUN_NAME','KEY_HOOK_LOGS','test_uuid','KEY_LOGS','automate_session_name','event_started_at','test_hook_last_finished','hook_result','KEY_TEST_UUID','pending','test_hook_last_started','test_scopes','KEY_TEST_DURATION','KEY_TEST_ID','KEY_HOOK_RESULT','KEY_EVENT_ENDED_AT','test_code','123516YjhBkG','1324936aQLGJw','KEY_TEST_TAGS','KEY_HOOK_LAST_STARTED','file_name','KEY_TEST_FAILURE_TYPE','hook_failure','KEY_AUTOMATE_SESSION_STATUS','156keLxRc','test_hooks_started','682842stxpXD','KEY_FILE_SIZE','KEY_TEST_FAILURE','automate_session_status','test_session_name','KEY_AUTOMATE_SESSION_REASON','test_failure','logs','KEY_HOOK_FAILURE','HOOK_REGEX','KEY_TEST_CODE','KEY_TEST_NAME','KEY_TEST_RESULT','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_FRAMEWORK_NAME','exports','KEY_EVENT_STARTED_AT','test_rerun_name','KEY_TEST_SCREENSHOTS','9hgjIWu','1337lsxPmr','DEFAULT_TEST_RESULT','10lLFTje','KIND_LOG','40xMPWbm','test_name','TEST_LOG','automate_session_reason','KEY_TEST_ATTACHMENTS','6722520NoFuaS','test_framework_version','test_ended_at','retry_of','hook_logs','KEY_TEST_LOCATION','test_screenshots','KEY_HOOK_LAST_FINISHED','event_ended_at','hook_name','KEY_TEST_FILE_PATH','KEY_PLATFORM_INDEX','test_duration','KEY_TEST_STARTED_AT'];a89_0xbf20=function(){return _0x1d50b1;};return a89_0xbf20();}module[a89_0x167165(0x1cd)]=TestFrameworkConstants;
@@ -1 +1 @@
1
- function a91_0x4ed3(_0x481fc7,_0x598a51){const _0x438962=a91_0x4389();return a91_0x4ed3=function(_0x4ed381,_0x511a29){_0x4ed381=_0x4ed381-0x14d;let _0x44bd8c=_0x438962[_0x4ed381];return _0x44bd8c;},a91_0x4ed3(_0x481fc7,_0x598a51);}const a91_0x3217d7=a91_0x4ed3;(function(_0x1f6dea,_0x25413c){const _0x139137=a91_0x4ed3,_0x490a0d=_0x1f6dea();while(!![]){try{const _0x243ebf=parseInt(_0x139137(0x175))/0x1+-parseInt(_0x139137(0x219))/0x2+-parseInt(_0x139137(0x174))/0x3*(-parseInt(_0x139137(0x1df))/0x4)+-parseInt(_0x139137(0x194))/0x5+parseInt(_0x139137(0x208))/0x6+parseInt(_0x139137(0x15d))/0x7*(-parseInt(_0x139137(0x1d0))/0x8)+parseInt(_0x139137(0x1a1))/0x9*(parseInt(_0x139137(0x1a4))/0xa);if(_0x243ebf===_0x25413c)break;else _0x490a0d['push'](_0x490a0d['shift']());}catch(_0x5c5d43){_0x490a0d['push'](_0x490a0d['shift']());}}}(a91_0x4389,0x4f63e));const TestFramework=require(a91_0x3217d7(0x1c3)),TestFrameworkState=require(a91_0x3217d7(0x16d)),HookState=require(a91_0x3217d7(0x189)),{createClassLogger}=require(a91_0x3217d7(0x151)),TestFrameworkInstance=require(a91_0x3217d7(0x1c0)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a91_0x3217d7(0x1f6)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x3217d7(0x186)),logger=createClassLogger(a91_0x3217d7(0x1dd)),{v4:uuidv4}=require(a91_0x3217d7(0x20c)),util=require('util'),TestInfo=require(a91_0x3217d7(0x1fd)),GrpcClient=require(a91_0x3217d7(0x1bd));class CucumberTestFramework extends TestFramework{constructor(_0x1713bd,_0x9bcf4f,_0x1ae841){super(_0x1713bd,_0x9bcf4f,_0x1ae841);}async[a91_0x3217d7(0x16b)](_0x571555,_0x4a049e,_0x342f7e={}){const _0x398135=a91_0x3217d7,_0x365b3d={};_0x365b3d[_0x398135(0x160)]=_0x398135(0x1a9),_0x365b3d[_0x398135(0x1cb)]=function(_0x50c6c2,_0x4674b1){return _0x50c6c2===_0x4674b1;},_0x365b3d[_0x398135(0x184)]=function(_0x2a78c5,_0x1c7cc8){return _0x2a78c5===_0x1c7cc8;},_0x365b3d[_0x398135(0x1ee)]=_0x398135(0x202);const _0x4e7783=_0x365b3d;await super[_0x398135(0x16b)](_0x571555,_0x4a049e,_0x342f7e);const _0xed7351=this[_0x398135(0x1b9)](_0x571555,_0x4a049e,_0x342f7e);if(!_0xed7351){logger[_0x398135(0x169)](_0x4e7783[_0x398135(0x160)]);return;}try{let _0x20eeec,_0x507f73;switch(_0x571555){case TestFrameworkState[_0x398135(0x1d3)]:_0x20eeec=_0x342f7e['test'],_0x507f73=TestInfo[_0x398135(0x200)](_0x20eeec['id']);if(_0x4e7783[_0x398135(0x1cb)](_0x4a049e,HookState[_0x398135(0x18e)])){logger[_0x398135(0x169)](_0x398135(0x1ea)+_0x20eeec['id']);const _0x20d847={};_0x20d847[_0x398135(0x18d)]=_0x507f73,_0x20d847[_0x398135(0x14e)]=_0x20eeec,_0xed7351[_0x398135(0x1b3)](this[_0x398135(0x164)](_0x20d847)),logger[_0x398135(0x169)](_0x398135(0x15b)+_0x20eeec['id']),await this['processPendingHooks'](_0xed7351,_0x20eeec['id']);}else{if(_0x4e7783[_0x398135(0x184)](_0x4a049e,HookState[_0x398135(0x1e3)])){const _0x56e212={};_0x56e212[_0x398135(0x18d)]=_0x507f73,_0x56e212['testData']=_0x20eeec,_0xed7351[_0x398135(0x1b3)](this[_0x398135(0x1d8)](_0x56e212)),await this['processPendingHooks'](_0xed7351,_0x20eeec['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x4e7783[_0x398135(0x1cb)](_0x4a049e,HookState[_0x398135(0x1e3)])&&await this[_0x398135(0x14f)](_0xed7351,_0x571555,_0x342f7e);break;default:if(CLIUtils[_0x398135(0x1cd)](_0x571555[_0x398135(0x179)]()[_0x398135(0x16a)]('.')[0x1])){const _0x4b035f=await this[_0x398135(0x1bb)](_0xed7351,_0x571555,_0x4a049e,_0x342f7e);_0xed7351[_0x398135(0x1b3)](_0x4b035f);}else logger[_0x398135(0x169)](_0x398135(0x191)+_0x571555+'\x20&\x20hookState='+_0x4a049e);break;}}catch(_0x54d521){logger[_0x398135(0x1f3)](util[_0x398135(0x1bc)](_0x4e7783['SliFe'],_0x571555,_0x4a049e,_0x342f7e[_0x398135(0x217)],_0x54d521));}_0x342f7e[_0x398135(0x1b1)]=_0xed7351,await this[_0x398135(0x18a)](_0xed7351,_0x571555,_0x4a049e,_0x342f7e);}[a91_0x3217d7(0x1b9)](_0x24ae65,_0x13687f,_0x4d29c3={}){const _0x4de960=a91_0x3217d7,_0x47ef7c={};_0x47ef7c[_0x4de960(0x1e2)]=function(_0x38219b,_0x32e09a){return _0x38219b===_0x32e09a;},_0x47ef7c['eDVBv']=function(_0x560783,_0x15490b){return _0x560783===_0x15490b;};const _0x423bf2=_0x47ef7c;let _0x561345=null;return(_0x423bf2['Yfgiv'](_0x24ae65,TestFrameworkState[_0x4de960(0x159)])||_0x423bf2[_0x4de960(0x213)](_0x24ae65,TestFrameworkState[_0x4de960(0x150)]))&&this[_0x4de960(0x17d)](_0x24ae65,_0x4d29c3),_0x561345=TestFramework['getTrackedInstance'](),_0x561345;}[a91_0x3217d7(0x17d)](_0x3b08cc,_0x4a2112){const _0x3ae2b2=a91_0x3217d7,_0x9fb4a6=CLIUtils[_0x3ae2b2(0x1ca)](),_0x411638=TrackedInstance['createContext'](_0x9fb4a6);let _0x38503c=null;logger[_0x3ae2b2(0x169)](_0x3ae2b2(0x1f2)+_0x9fb4a6+_0x3ae2b2(0x166)+_0x3b08cc),_0x38503c=new TestFrameworkInstance(_0x411638,this[_0x3ae2b2(0x1c4)](),this[_0x3ae2b2(0x1c6)](),_0x3b08cc,HookState[_0x3ae2b2(0x150)]),TestFramework['setTrackedInstance'](_0x411638,_0x38503c),logger[_0x3ae2b2(0x169)](_0x3ae2b2(0x1db)+_0x411638[_0x3ae2b2(0x18c)]()+_0x3ae2b2(0x170)+_0x9fb4a6);}['parseCucumberTest'](_0x7e4d48){const _0x1f0b48=a91_0x3217d7,_0x55e982={};_0x55e982['AtOrF']=_0x1f0b48(0x203);const _0x472f59=_0x55e982,{testUUID:_0x167960,testData:_0x22f9e6}=_0x7e4d48;if(!_0x22f9e6||!_0x22f9e6[_0x1f0b48(0x20c)])return logger[_0x1f0b48(0x169)](_0x472f59[_0x1f0b48(0x20f)]),{};const _0x3cb577=_0x167960,_0x51f0cf=_0x22f9e6[_0x1f0b48(0x20c)],_0x34e31f=this[_0x1f0b48(0x1c4)]()[0x0],_0x40971b=this['getTestFrameworksVersions'](),_0x3d588e={[TestFrameworkConstants[_0x1f0b48(0x1c2)]]:_0x34e31f,[TestFrameworkConstants[_0x1f0b48(0x205)]]:_0x40971b[_0x34e31f],[TestFrameworkConstants[_0x1f0b48(0x1ff)]]:[],[TestFrameworkConstants[_0x1f0b48(0x17c)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x3cb577,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x1f0b48(0x19d)],[TestFrameworkConstants[_0x1f0b48(0x20b)]]:_0x22f9e6[_0x1f0b48(0x218)]||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x22f9e6[_0x1f0b48(0x172)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x51f0cf,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x22f9e6[_0x1f0b48(0x218)]||'',[TestFrameworkConstants[_0x1f0b48(0x1c9)]]:_0x22f9e6['location']||'',[TestFrameworkConstants[_0x1f0b48(0x1cc)]]:_0x22f9e6[_0x1f0b48(0x19f)]?.[_0x1f0b48(0x152)]||null,[TestFrameworkConstants[_0x1f0b48(0x1fa)]]:_0x22f9e6['tags']||[],[TestFrameworkConstants[_0x1f0b48(0x18f)]]:_0x22f9e6['startedAt']||new Date()[_0x1f0b48(0x20d)](),[TestFrameworkConstants[_0x1f0b48(0x1e7)]]:_0x22f9e6['scopes']?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x22f9e6[_0x1f0b48(0x1d9)]||[],[TestFrameworkConstants[_0x1f0b48(0x1e1)]]:_0x22f9e6[_0x1f0b48(0x214)]?.[_0x1f0b48(0x1b8)]||_0x22f9e6[_0x1f0b48(0x218)]||'',[TestFrameworkConstants[_0x1f0b48(0x1d1)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x22f9e6['meta']||{}};TestInfo[_0x1f0b48(0x15c)](_0x51f0cf,_0x3d588e),logger[_0x1f0b48(0x169)](_0x1f0b48(0x178)+_0x22f9e6[_0x1f0b48(0x218)]+_0x1f0b48(0x1e4)+_0x3cb577);const _0x5faea7={};return _0x5faea7[_0x51f0cf]=_0x3d588e,_0x5faea7;}[a91_0x3217d7(0x1d8)](_0xe27248){const _0x53d95b=a91_0x3217d7,_0x222f75={'NobTU':_0x53d95b(0x206),'tcosV':_0x53d95b(0x1a6),'NnGyW':function(_0x10fe42,_0x197049){return _0x10fe42===_0x197049;},'uHHJG':'failed','slJeB':_0x53d95b(0x1f5),'qaisN':function(_0x52cb88,_0x3f5a2d,_0x59ecb5){return _0x52cb88(_0x3f5a2d,_0x59ecb5);},'DRGKT':function(_0x5eca59,_0xc979a3){return _0x5eca59>_0xc979a3;},'LaeVZ':function(_0x2ad81e,_0x5e8207){return _0x2ad81e>_0x5e8207;}},{testUUID:_0xc01795,testData:_0x28d862}=_0xe27248;if(!_0x28d862||!_0x28d862[_0x53d95b(0x20c)])return logger['debug'](_0x222f75[_0x53d95b(0x1b5)]),{};const _0x11b51e=this[_0x53d95b(0x1b9)](TestFrameworkState[_0x53d95b(0x1d3)],HookState[_0x53d95b(0x1e3)]),_0xd82ddd=_0x28d862[_0x53d95b(0x20c)],_0x16165e=TestInfo[_0x53d95b(0x156)](_0xd82ddd)||{},_0x4976d3=_0x16165e?_0x16165e[TestFrameworkConstants[_0x53d95b(0x1d1)]]||{}:{},_0x55cd05={..._0x16165e,[TestFrameworkConstants[_0x53d95b(0x15a)]]:_0x28d862[_0x53d95b(0x171)]||_0x222f75[_0x53d95b(0x1e5)],[TestFrameworkConstants[_0x53d95b(0x158)]]:_0x28d862[_0x53d95b(0x173)]||new Date()[_0x53d95b(0x20d)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x53d95b(0x20d)](),[TestFrameworkConstants[_0x53d95b(0x1d1)]]:_0x4976d3,[TestFrameworkConstants[_0x53d95b(0x211)]]:[],[TestFrameworkConstants[_0x53d95b(0x1d7)]]:_0x28d862[_0x53d95b(0x1e6)]||{}};_0x222f75[_0x53d95b(0x15f)](_0x28d862[_0x53d95b(0x171)],_0x222f75[_0x53d95b(0x1bf)])&&_0x28d862['failure']&&(_0x55cd05[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x28d862[_0x53d95b(0x187)]||_0x222f75[_0x53d95b(0x168)],_0x55cd05[TestFrameworkConstants[_0x53d95b(0x1c1)]]=_0x28d862['failure_reason']||'',_0x55cd05[TestFrameworkConstants[_0x53d95b(0x17f)]]=_0x28d862[_0x53d95b(0x1d6)]);const _0x1853a6=TestInfo[_0x53d95b(0x156)](_0xd82ddd)[TestFrameworkConstants[_0x53d95b(0x17a)]]||{},_0x1a7d9d=_0x222f75['qaisN'](getManualUploadLogs,_0x1853a6,_0x11b51e['getAllData']()['get'](_0xd82ddd)[TestFrameworkConstants[_0x53d95b(0x19b)]]);if(_0x222f75[_0x53d95b(0x212)](_0x1a7d9d[_0x53d95b(0x217)],0x0)){const _0x2a73c9=_0x55cd05[TestFrameworkConstants[_0x53d95b(0x211)]]||[];_0x55cd05[TestFrameworkConstants[_0x53d95b(0x211)]]=[..._0x2a73c9,..._0x1a7d9d];}_0x28d862[_0x53d95b(0x1e0)]&&_0x222f75[_0x53d95b(0x1cf)](_0x28d862['hooks'][_0x53d95b(0x217)],0x0)&&(_0x55cd05[TestFrameworkConstants[_0x53d95b(0x17c)]]=_0x28d862[_0x53d95b(0x1e0)]);TestInfo[_0x53d95b(0x15c)](_0xd82ddd,_0x55cd05),logger[_0x53d95b(0x169)](_0x53d95b(0x177)+_0x28d862['name']+_0x53d95b(0x1d5)+_0x28d862[_0x53d95b(0x171)]);const _0x5a64ae={};return _0x5a64ae[_0xd82ddd]=_0x55cd05,_0x5a64ae;}async[a91_0x3217d7(0x1bb)](_0x331372,_0x50f2d6,_0x503e64,_0x111d58){const _0x14e535=a91_0x3217d7,_0x313a5c={'eOIEu':_0x14e535(0x167),'myFtk':function(_0x347c00){return _0x347c00();},'Uyjyy':function(_0x4c7950,_0x3bdd2e){return _0x4c7950 in _0x3bdd2e;},'bDzQx':function(_0xaba8,_0x3194c4){return _0xaba8 in _0x3194c4;},'IyTJh':function(_0x30d6d0,_0x466740){return _0x30d6d0===_0x466740;},'UnOmX':function(_0x318f29,_0x3279b6){return _0x318f29===_0x3279b6;},'ryIPd':function(_0x11eb40,_0x306e42){return _0x11eb40>_0x306e42;},'xiFTm':function(_0x4de065,_0x475561){return _0x4de065===_0x475561;},'lyLbC':_0x14e535(0x155),'OZgYk':_0x14e535(0x1f5),'CIvPp':_0x14e535(0x1eb),'UicFo':function(_0x619d9,_0x3d2b12){return _0x619d9!==_0x3d2b12;}},{hookData:_0x245ca2}=_0x111d58;if(!_0x245ca2)return logger[_0x14e535(0x169)](_0x313a5c[_0x14e535(0x20e)]),{};const _0x5276a1=_0x245ca2['uuid']||_0x313a5c[_0x14e535(0x180)](uuidv4),_0x5c7fbe=_0x245ca2['test_run_id'],_0x2c5d47=_0x50f2d6['toString']()[_0x14e535(0x16a)]('.')[0x1],_0x22dfef=TestInfo[_0x14e535(0x156)](_0x5c7fbe)[TestFrameworkConstants[_0x14e535(0x1d1)]]||{},_0x22cc05=_0x331372[_0x14e535(0x1a3)]()[_0x14e535(0x163)](_0x5c7fbe);if(!_0x22cc05)return logger['debug']('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x5c7fbe+_0x14e535(0x1f9)),this['storePendingHook'](_0x331372,_0x5c7fbe,_0x50f2d6,_0x503e64,_0x111d58),{};let _0x17211b=_0x22cc05[TestFrameworkConstants[_0x14e535(0x1a0)]];!_0x17211b&&(_0x17211b={});!_0x313a5c[_0x14e535(0x197)](_0x2c5d47,_0x17211b)&&(_0x17211b[_0x2c5d47]=[]);let _0x2e07c6=_0x22cc05[TestFrameworkConstants[_0x14e535(0x17c)]];!_0x2e07c6&&(_0x2e07c6={});!_0x313a5c[_0x14e535(0x181)](_0x2c5d47,_0x2e07c6)&&(_0x2e07c6[_0x2c5d47]=[]);const _0x5923c7={[TestFrameworkConstants[_0x14e535(0x1a0)]]:_0x17211b,[TestFrameworkConstants[_0x14e535(0x17c)]]:_0x2e07c6},_0x2879f7={};_0x2879f7[_0x5c7fbe]=_0x5923c7;const _0x1155bd=_0x2879f7;if(_0x313a5c[_0x14e535(0x1ab)](_0x503e64,HookState[_0x14e535(0x18e)])){const _0x3d4340={[TestFrameworkConstants[_0x14e535(0x188)]]:_0x5276a1,[TestFrameworkConstants[_0x14e535(0x192)]]:TestFrameworkConstants[_0x14e535(0x18b)],[TestFrameworkConstants[_0x14e535(0x1f8)]]:_0x245ca2[_0x14e535(0x161)],[TestFrameworkConstants[_0x14e535(0x1f4)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x245ca2[_0x14e535(0x1b4)],[TestFrameworkConstants[_0x14e535(0x1d1)]]:_0x22dfef};_0x3d4340[_0x14e535(0x1b6)]=_0x2c5d47;const _0x4d3aea=_0x3d4340;_0x17211b[_0x2c5d47]['push'](_0x4d3aea),_0x1155bd[_0x5c7fbe][TestFrameworkConstants[_0x14e535(0x183)]]=_0x2c5d47,logger['debug'](_0x14e535(0x1f7)+_0x2c5d47+_0x14e535(0x16f)+_0x4d3aea+_0x14e535(0x196)+_0x111d58);}else{if(_0x313a5c[_0x14e535(0x193)](_0x503e64,HookState[_0x14e535(0x1e3)])){const _0xf4ec34=_0x245ca2[_0x14e535(0x171)],_0x3f3b3c=_0x17211b[_0x2c5d47]||[];logger[_0x14e535(0x169)](_0x14e535(0x190)+_0x3f3b3c+_0x14e535(0x1f0)+_0x111d58);if(_0x313a5c['ryIPd'](_0x3f3b3c[_0x14e535(0x217)],0x0)){const _0x4270b2=_0x3f3b3c[_0x14e535(0x16c)]();_0x313a5c['xiFTm'](_0x245ca2[_0x14e535(0x171)],_0x313a5c[_0x14e535(0x199)])&&_0x245ca2[_0x14e535(0x1de)]?(_0x4270b2[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x245ca2[_0x14e535(0x187)]||_0x313a5c['OZgYk'],_0x4270b2[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x245ca2[_0x14e535(0x1ac)]||'',_0x4270b2[TestFrameworkConstants[_0x14e535(0x216)]]=_0x245ca2['failure_data']):_0x4270b2[TestFrameworkConstants[_0x14e535(0x192)]]=_0x313a5c[_0x14e535(0x19a)];_0x313a5c[_0x14e535(0x1c8)](_0xf4ec34,TestFrameworkConstants[_0x14e535(0x18b)])&&(_0x4270b2[TestFrameworkConstants[_0x14e535(0x192)]]=_0xf4ec34);_0x4270b2[TestFrameworkConstants[_0x14e535(0x1e9)]]=_0x245ca2[_0x14e535(0x21b)]||new Date()[_0x14e535(0x20d)](),_0x4270b2[TestFrameworkConstants['KEY_CUSTOM_TAGS']]=_0x22dfef;const _0x379094=_0x4270b2[TestFrameworkConstants[_0x14e535(0x188)]];!_0x2e07c6[_0x2c5d47]&&(_0x2e07c6[_0x2c5d47]=[]),_0x2e07c6[_0x2c5d47][_0x14e535(0x1aa)](_0x4270b2),_0x1155bd[_0x5c7fbe][TestFrameworkConstants[_0x14e535(0x1af)]]=_0x2c5d47;}}}return logger[_0x14e535(0x169)](_0x14e535(0x210)+_0x245ca2[_0x14e535(0x1b4)]+_0x14e535(0x1a2)+_0x5276a1+_0x14e535(0x1a5)+_0x5c7fbe),_0x1155bd;}[a91_0x3217d7(0x1fb)](_0xed9834){const _0x4e507a=a91_0x3217d7,_0xc179aa={};_0xc179aa[_0x4e507a(0x1be)]=_0x4e507a(0x21a);const _0x5be0b9=_0xc179aa;try{const _0x31fb35=_0xed9834[_0x4e507a(0x17e)]?_0xed9834[_0x4e507a(0x17e)]['id']:_0xed9834[_0x4e507a(0x1a7)][_0x4e507a(0x1c7)],_0x389b8c=_0xed9834[_0x4e507a(0x1b1)],_0x1aa5a1=_0x389b8c[_0x4e507a(0x185)](),_0x1533db=_0x389b8c[_0x4e507a(0x1a3)]()[_0x4e507a(0x163)](_0x31fb35);if(!_0x1533db)return logger[_0x4e507a(0x169)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x31fb35),{};logger[_0x4e507a(0x169)](_0x4e507a(0x1fc)+_0x31fb35);const {[TestFrameworkConstants[_0x4e507a(0x1c2)]]:_0x17638d='',[TestFrameworkConstants[_0x4e507a(0x205)]]:_0x375953='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x51b08b='',[TestFrameworkConstants[_0x4e507a(0x158)]]:_0x46b42e=''}=_0x1533db,_0x5d2141=_0x389b8c[_0x4e507a(0x1f1)]()[_0x4e507a(0x179)]()[_0x4e507a(0x16a)]('.')[0x1],_0x146869=_0x389b8c['getCurrentHookState']()[_0x4e507a(0x179)]()['split']('.')[0x1],_0x76cad1=global?.['browserstackPlatformIndex']??0x0,_0x1e399b=_0x389b8c['getRef'](),_0x5b7d90=Buffer['from'](JSON[_0x4e507a(0x1ec)](_0x1533db))[_0x4e507a(0x179)](_0x5be0b9[_0x4e507a(0x1be)]),_0x262089={'hash':_0x1aa5a1[_0x4e507a(0x18c)](),'threadId':_0x1aa5a1[_0x4e507a(0x19e)]()[_0x4e507a(0x179)](),'processId':_0x1aa5a1['getProcessId']()['toString']()},_0x42f875={};_0x42f875[_0x4e507a(0x201)]=_0x76cad1,_0x42f875[_0x4e507a(0x195)]=_0x17638d,_0x42f875[_0x4e507a(0x209)]=_0x375953,_0x42f875['testFrameworkState']=_0x5d2141,_0x42f875[_0x4e507a(0x153)]=_0x146869,_0x42f875[_0x4e507a(0x1dc)]=_0x51b08b,_0x42f875[_0x4e507a(0x1fe)]=_0x46b42e,_0x42f875[_0x4e507a(0x20c)]=_0x1e399b,_0x42f875[_0x4e507a(0x1c5)]=_0x5b7d90,_0x42f875['executionContext']=_0x262089;const _0x29997f=_0x42f875;return logger[_0x4e507a(0x169)](_0x4e507a(0x207)+_0x31fb35+_0x4e507a(0x14d)+_0x5d2141+'\x20hookState:\x20'+_0x146869),_0x29997f;}catch(_0x493c4d){return logger[_0x4e507a(0x1f3)](_0x4e507a(0x198)+util[_0x4e507a(0x1bc)](_0x493c4d)),{};}}async[a91_0x3217d7(0x14f)](_0x53b5ec,_0x565894,_0x42bff8){const _0xc1ac24=a91_0x3217d7,_0xeea09f={'NTiiE':function(_0x45003d,_0x2987a6,_0xff1c3c){return _0x45003d(_0x2987a6,_0xff1c3c);},'NUkoZ':function(_0x33415f,_0x5b2f5a){return _0x33415f===_0x5b2f5a;},'cTJFy':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','mZXMa':function(_0xeb78c0,_0x5e5c4b){return _0xeb78c0/_0x5e5c4b;},'jSdTv':function(_0x8ad75d,_0x5b90c2){return _0x8ad75d<_0x5b90c2;},'JNXwC':function(_0x274506,_0x3b9f09){return _0x274506*_0x3b9f09;},'NPiGz':function(_0x4224f0,_0x2d7724){return _0x4224f0+_0x2d7724;},'mwpPN':_0xc1ac24(0x1ef)};try{const _0x59a184=_0x42bff8[_0xc1ac24(0x18d)],_0x52edf5=_0x53b5ec['getAllData']()[_0xc1ac24(0x163)](_0x59a184),{[TestFrameworkConstants[_0xc1ac24(0x1c2)]]:_0x2cb8ff='',[TestFrameworkConstants['KEY_TEST_FRAMEWORK_VERSION']]:_0x12cc4c=''}=_0x52edf5,_0x2cdb22=TestInfo['readLogObjects'](_0x59a184),_0x5a3e19=TestInfo['getTestDetails'](_0x59a184)[TestFrameworkConstants[_0xc1ac24(0x17a)]]||{},_0x2da919=_0xeea09f[_0xc1ac24(0x162)](getMediaArtifactsLogs,_0x5a3e19,_0x53b5ec[_0xc1ac24(0x1a3)]()[_0xc1ac24(0x163)](_0x59a184)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x1fda23=(_0x2cdb22||[])[_0xc1ac24(0x16e)](_0x2da919||[]);if(!_0x1fda23||_0xeea09f['NUkoZ'](_0x1fda23[_0xc1ac24(0x217)],0x0)){logger[_0xc1ac24(0x169)](_0xeea09f[_0xc1ac24(0x1a8)]);return;}const _0x562a3d=0x28,_0x30ca74=Math['ceil'](_0xeea09f[_0xc1ac24(0x1ba)](_0x1fda23[_0xc1ac24(0x217)],_0x562a3d));for(let _0x5108b8=0x0;_0xeea09f['jSdTv'](_0x5108b8,_0x30ca74);_0x5108b8++){const _0x71432=_0xeea09f[_0xc1ac24(0x15e)](_0x5108b8,_0x562a3d),_0x2992b3=_0xeea09f[_0xc1ac24(0x215)](_0x71432,_0x562a3d),_0x491194=_0x1fda23[_0xc1ac24(0x1ad)](_0x71432,_0x2992b3),_0x3f21de={'platformIndex':global?.[_0xc1ac24(0x1ae)]??0x0,'logs':_0x491194,'testFrameworkName':_0x2cb8ff,'testFrameworkVersion':_0x12cc4c,'testFrameworkState':_0x565894[_0xc1ac24(0x179)]()['split']('.')[0x1]};logger[_0xc1ac24(0x169)](_0xc1ac24(0x176)+_0x59a184+'\x20batch\x20'+_0xeea09f[_0xc1ac24(0x215)](_0x5108b8,0x1)+'/'+_0x30ca74+_0xc1ac24(0x165)+util['inspect'](_0x3f21de));const _0x38216d=await GrpcClient[_0xc1ac24(0x182)]()['logCreatedEvent'](_0x3f21de);logger[_0xc1ac24(0x169)](_0xc1ac24(0x176)+_0x59a184+_0xc1ac24(0x1e8)+_0xeea09f[_0xc1ac24(0x215)](_0x5108b8,0x1)+'/'+_0x30ca74+'\x20response='+util[_0xc1ac24(0x1b7)](_0x38216d));}}catch(_0x38ffc7){logger[_0xc1ac24(0x1f3)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util['format'](_0x38ffc7));}logger[_0xc1ac24(0x169)](_0xeea09f[_0xc1ac24(0x1ed)]);}['storePendingHook'](_0x42859e,_0xeb3326,_0x500e7a,_0x14c5ae,_0x5a343f){const _0x4dd4ae=a91_0x3217d7,_0xfc0adf={'testId':_0xeb3326,'testFrameworkState':_0x500e7a,'hookState':_0x14c5ae,'args':_0x5a343f,'timestamp':new Date()[_0x4dd4ae(0x20d)]()};_0x42859e[_0x4dd4ae(0x19c)](_0xeb3326,_0xfc0adf),logger[_0x4dd4ae(0x169)](_0x4dd4ae(0x157)+_0xeb3326+',\x20state:\x20'+_0x500e7a+_0x4dd4ae(0x1da)+_0x14c5ae);}async['processPendingHooks'](_0x381bf4,_0x4daa32){const _0x2a961e=a91_0x3217d7,_0x59ca03={};_0x59ca03['nzFwt']=function(_0xa05fbd,_0x53b8d2){return _0xa05fbd>_0x53b8d2;};const _0x5cd78e=_0x59ca03;if(!_0x381bf4[_0x2a961e(0x1ce)](_0x4daa32))return;const _0x9c9444=_0x381bf4['getPendingHooks'](_0x4daa32);logger[_0x2a961e(0x169)]('Processing\x20'+_0x9c9444['length']+_0x2a961e(0x1d2)+_0x4daa32);for(const _0x43509a of _0x9c9444){try{const _0x544796=await this['trackHookEvent'](_0x381bf4,_0x43509a[_0x2a961e(0x1d4)],_0x43509a[_0x2a961e(0x153)],_0x43509a[_0x2a961e(0x20a)]);_0x544796&&_0x5cd78e['nzFwt'](Object['keys'](_0x544796)[_0x2a961e(0x217)],0x0)&&_0x381bf4[_0x2a961e(0x1b3)](_0x544796),await this[_0x2a961e(0x18a)](_0x381bf4,_0x43509a[_0x2a961e(0x1d4)],_0x43509a[_0x2a961e(0x153)],_0x43509a[_0x2a961e(0x20a)]);}catch(_0x54e6b2){logger[_0x2a961e(0x1f3)](_0x2a961e(0x204)+_0x4daa32+_0x2a961e(0x1b0)+_0x54e6b2);}}_0x381bf4[_0x2a961e(0x154)](_0x4daa32),logger[_0x2a961e(0x169)](_0x2a961e(0x17b)+_0x4daa32);}}function a91_0x4389(){const _0x320e80=['startedAt','CucumberTestFramework','failure_data','196772PVCFHy','hooks','KEY_TEST_RERUN_NAME','Yfgiv','POST','\x20with\x20UUID:\x20','tcosV','meta','KEY_TEST_SCOPE','\x20batch\x20','KEY_EVENT_ENDED_AT','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','passed','stringify','mwpPN','SliFe','Cucumber\x20log\x20created\x20event','\x20and\x20args\x20=\x20','getCurrentTestState','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','error','KEY_HOOK_LOGS','UnhandledError','./constants/testFrameworkConstants.js','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','KEY_EVENT_STARTED_AT',',\x20storing\x20as\x20pending\x20hook','KEY_TEST_TAGS','createTestFrameworkEventPayload','createTestFrameworkEventPayload\x20testId:\x20','../TestInfo.js','endedAt','KEY_TEST_LOGS','getTestUUID','platformIndex','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_FRAMEWORK_VERSION','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','315378ajFIXP','testFrameworkVersion','args','KEY_AUTOMATE_SESSION_NAME','uuid','toISOString','eOIEu','AtOrF','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_LOGS','DRGKT','eDVBv','customRerunParam','NPiGz','KEY_HOOK_FAILURE','length','name','1231126nrZqWu','base64','finished_at','\x20testState:\x20','testData','sendLogCreatedEvent','NONE','../../../helpers/classLogger.js','code','hookState','removePendingHooks','failed','getTestDetails','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_ENDED_AT','INIT_TEST','KEY_TEST_RESULT','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','setTestDetails','1656263PmBUtq','JNXwC','NnGyW','rwxHw','started_at','NTiiE','get','parseCucumberTest','\x20payload=',',\x20state=','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','slJeB','debug','split','trackEvent','pop','../state/testFrameworkState.js','concat','\x20&\x20hook\x20=\x20','\x20target=','result','file_name','finishedAt','3irWZwK','494951kmUvXG','sendLogCreatedEvent:\x20for\x20testId:\x20','Updated\x20cucumber\x20test\x20result:\x20','Parsed\x20cucumber\x20test:\x20','toString','KEY_TEST_ATTACHMENTS','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KEY_HOOKS_FINISHED','trackCucumberInstance','test','KEY_TEST_FAILURE','myFtk','bDzQx','getInstance','KEY_HOOK_LAST_STARTED','blNMk','getContext','../../../helpers/helper.js','failure_type','KEY_HOOK_ID','../state/hookState.js','runHooks','DEFAULT_HOOK_RESULT','getId','testUUID','PRE','KEY_TEST_STARTED_AT','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_HOOK_RESULT','UnOmX','966335tkPqsK','testFrameworkName','\x20\x20and\x20args\x20=\x20','Uyjyy','Error\x20in\x20createTestFrameworkEventPayload:\x20','lyLbC','CIvPp','KEY_TEST_UUID','addPendingHook','DEFAULT_TEST_RESULT','getThreadId','body','KEY_HOOKS_STARTED','18wyayim','\x20with\x20id\x20','getAllData','3869570eHbXLV','\x20for\x20test:\x20','unknown','hookData','cTJFy','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','push','IyTJh','failure_reason','slice','browserstackPlatformIndex','KEY_HOOK_LAST_FINISHED',',\x20error:\x20','instance','exports','addMultipleEntries','hook_type','NobTU','key','inspect','rerun_name','resolveInstance','mZXMa','trackHookEvent','format','../grpcClient','YCFUL','uHHJG','../instances/testFrameworkInstance.js','KEY_TEST_FAILURE_REASON','KEY_TEST_FRAMEWORK_NAME','./testFramework','getTestFrameworks','eventJson','getTestFrameworksVersions','test_run_id','UicFo','KEY_TEST_LOCATION','getCurrentInstanceName','IpgTX','KEY_TEST_CODE','matchHookRegex','hasPendingHooks','LaeVZ','8grDllO','KEY_CUSTOM_TAGS','\x20pending\x20hooks\x20for\x20testId:\x20','TEST','testFrameworkState','\x20with\x20result:\x20','failure','KEY_TEST_META','parseCucumberTestResult','scopes',',\x20hookState:\x20','trackCucumberInstance:\x20saved\x20instance\x20contextId='];a91_0x4389=function(){return _0x320e80;};return a91_0x4389();}module[a91_0x3217d7(0x1b2)]=CucumberTestFramework;
1
+ function a90_0xdff3(){const _0x55542d=['createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','meta','QkPQl','KEY_HOOK_LAST_FINISHED','19zbYJhF','Error\x20in\x20createTestFrameworkEventPayload:\x20','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','util','UwiTF','getAllData','body','KEY_TEST_SCOPES','KEY_HOOK_ID','code','KEY_HOOK_FAILURE_REASON','browserstackPlatformIndex','createTestFrameworkEventPayload','rerun_name','hooks','failure_reason','11028115NNlwxB','\x20response=','KEY_HOOKS_FINISHED','../state/testFrameworkState.js','yARyH','IeudN','CucumberTestFramework','resolveInstance','platformIndex','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','KHnUl','getInstance','testFrameworkState','./testFramework','getContext','POST','KEY_TEST_RESULT','base64','KEY_HOOKS_STARTED','\x20pending\x20hooks\x20for\x20testId:\x20','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','getTestDetails','finishedAt','XpwFQ','xbxZT','KEY_TEST_FRAMEWORK_VERSION','file_name','ceil','setTestDetails',',\x20error:\x20','KEY_TEST_FAILURE','inspect','KEY_CUSTOM_TAGS','length','sANvK','7059755sJgOJo','setTrackedInstance','getTestFrameworks','getCurrentTestState','JSMeo','KEY_TEST_LOCATION','result','PRE','Parsed\x20cucumber\x20test:\x20','KEY_TEST_RESULT_AT','hookState','NONE','name','cJuYL','\x20payload=','KEY_LOGS','hasPendingHooks','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','TEST','QqyAP','format','hook_type','trackCucumberInstance:\x20saved\x20instance\x20contextId=','trackHookEvent','getTestFrameworksVersions','testData','AoMJH',',\x20state:\x20','unRIE','getPendingHooks','exports','KEY_TEST_CODE','417131pDunYx','Tracked\x20cucumber\x20hook\x20event:\x20','KEY_TEST_ENDED_AT','KEY_TEST_FAILURE_REASON','slice','getThreadId','error','addMultipleEntries','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','trackEvent:\x20unsupported\x20testFrameworkState=','KEY_TEST_FILE_PATH','test_run_id','KEY_TEST_META','Updated\x20cucumber\x20test\x20result:\x20','getCurrentInstanceName','debug','\x20with\x20result:\x20','test','KEY_TEST_RERUN_NAME','RtRSa','instance','getTestUUID','../../../helpers/helper.js','uuid','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','KEY_HOOK_FAILURE_TYPE','KEY_EVENT_ENDED_AT','trackEvent','erRdt','KEY_TEST_STARTED_AT','split','failure_data','KEY_HOOK_FAILURE','keys','toString','INIT_TEST','YMrzi','testFrameworkVersion','passed','getId','eUtQK','scopes','\x20for\x20test:\x20','addPendingHook','yYJwX','failure_type','wdXja','KEY_TEST_UUID','startedAt','endedAt','hookData','sendLogCreatedEvent','createTestFrameworkEventPayload\x20testId:\x20','KEY_TEST_SCOPE','iVvce','matchHookRegex','createContext','2026921DfRhSp','../cliUtils.js','Processing\x20','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','uwGBC','logCreatedEvent','2193768PueeYP','getTrackedInstance','finished_at','Stored\x20pending\x20hook\x20for\x20testId:\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','wwRiP','../TestInfo.js','processPendingHooks','dZGnG','\x20testState:\x20','wXqyA','toISOString','GjOvG','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','\x20with\x20UUID:\x20','args','get','54jbUChE','removePendingHooks','failure','testUUID','executionContext','285297rDrhFL','KEY_HOOK_RESULT','LOG_REPORT','push','getCurrentHookState',',\x20state=','./constants/testFrameworkConstants.js','cVEEH','FIDfo','eventJson','KEY_HOOK_LOGS','customRerunParam','parseCucumberTest','kPLuO','getRef','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','../../../helpers/classLogger.js','\x20hookState:\x20','key','KEY_TEST_FRAMEWORK_NAME','24VbGCiJ','\x20&\x20hook\x20=\x20','140pgVjgy','pop','AtBlh',',\x20hookState:\x20','73826AuyynD','WdNIF','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','iyRiL','\x20batch\x20','KEY_TEST_NAME','from','MJmia','6KrLedQ','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','iuWTd','UnhandledError','DEFAULT_TEST_RESULT','testFrameworkName','\x20and\x20args\x20=\x20','failed','44xtZiQp','DEFAULT_HOOK_RESULT','KEY_TEST_ATTACHMENTS','trackCucumberInstance','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found'];a90_0xdff3=function(){return _0x55542d;};return a90_0xdff3();}const a90_0x10d4cb=a90_0x4784;(function(_0x5b87ea,_0x1ffc95){const _0x29152d=a90_0x4784,_0x2bcb7c=_0x5b87ea();while(!![]){try{const _0x36dc1b=-parseInt(_0x29152d(0x2a4))/0x1*(parseInt(_0x29152d(0x28b))/0x2)+-parseInt(_0x29152d(0x271))/0x3*(-parseInt(_0x29152d(0x29b))/0x4)+-parseInt(_0x29152d(0x1fc))/0x5*(-parseInt(_0x29152d(0x293))/0x6)+parseInt(_0x29152d(0x2b4))/0x7+parseInt(_0x29152d(0x25b))/0x8*(-parseInt(_0x29152d(0x26c))/0x9)+parseInt(_0x29152d(0x287))/0xa*(-parseInt(_0x29152d(0x21c))/0xb)+-parseInt(_0x29152d(0x285))/0xc*(parseInt(_0x29152d(0x255))/0xd);if(_0x36dc1b===_0x1ffc95)break;else _0x2bcb7c['push'](_0x2bcb7c['shift']());}catch(_0x12ec14){_0x2bcb7c['push'](_0x2bcb7c['shift']());}}}(a90_0xdff3,0xce134));function a90_0x4784(_0x3d73e3,_0x58e004){const _0xdff346=a90_0xdff3();return a90_0x4784=function(_0x478461,_0x40f48d){_0x478461=_0x478461-0x1dc;let _0x326b8a=_0xdff346[_0x478461];return _0x326b8a;},a90_0x4784(_0x3d73e3,_0x58e004);}const TestFramework=require(a90_0x10d4cb(0x1e6)),TestFrameworkState=require(a90_0x10d4cb(0x1dc)),HookState=require('../state/hookState.js'),{createClassLogger}=require(a90_0x10d4cb(0x281)),TestFrameworkInstance=require('../instances/testFrameworkInstance.js'),CLIUtils=require(a90_0x10d4cb(0x256)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require(a90_0x10d4cb(0x277)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a90_0x10d4cb(0x232)),logger=createClassLogger(a90_0x10d4cb(0x1df)),{v4:uuidv4}=require(a90_0x10d4cb(0x233)),util=require(a90_0x10d4cb(0x2a7)),TestInfo=require(a90_0x10d4cb(0x261)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x10d2be,_0x2d3972,_0x23ea72){super(_0x10d2be,_0x2d3972,_0x23ea72);}async['trackEvent'](_0x2ebbf2,_0x2708f3,_0x33bd67={}){const _0x402b19=a90_0x10d4cb,_0x3aa3bb={};_0x3aa3bb[_0x402b19(0x240)]=_0x402b19(0x29f),_0x3aa3bb['FIDfo']=function(_0x256962,_0x2c74bb){return _0x256962===_0x2c74bb;},_0x3aa3bb['erRdt']=function(_0x55664e,_0x29f6c1){return _0x55664e===_0x29f6c1;},_0x3aa3bb[_0x402b19(0x267)]=_0x402b19(0x280);const _0x2f10bd=_0x3aa3bb;await super[_0x402b19(0x237)](_0x2ebbf2,_0x2708f3,_0x33bd67);const _0x350eee=this['resolveInstance'](_0x2ebbf2,_0x2708f3,_0x33bd67);if(!_0x350eee){logger[_0x402b19(0x22b)](_0x2f10bd[_0x402b19(0x240)]);return;}try{let _0x239221,_0x2a3bb0;switch(_0x2ebbf2){case TestFrameworkState[_0x402b19(0x20e)]:_0x239221=_0x33bd67[_0x402b19(0x22d)],_0x2a3bb0=TestInfo[_0x402b19(0x231)](_0x239221['id']);if(_0x2f10bd[_0x402b19(0x279)](_0x2708f3,HookState[_0x402b19(0x203)])){logger[_0x402b19(0x22b)](_0x402b19(0x224)+_0x239221['id']);const _0x33c4af={};_0x33c4af['testUUID']=_0x2a3bb0,_0x33c4af[_0x402b19(0x215)]=_0x239221,_0x350eee[_0x402b19(0x223)](this[_0x402b19(0x27d)](_0x33c4af)),logger[_0x402b19(0x22b)](_0x402b19(0x20d)+_0x239221['id']),await this[_0x402b19(0x262)](_0x350eee,_0x239221['id']);}else{if(_0x2f10bd[_0x402b19(0x238)](_0x2708f3,HookState['POST'])){const _0x4e2d0b={};_0x4e2d0b['testUUID']=_0x2a3bb0,_0x4e2d0b[_0x402b19(0x215)]=_0x239221,_0x350eee[_0x402b19(0x223)](this['parseCucumberTestResult'](_0x4e2d0b)),await this[_0x402b19(0x262)](_0x350eee,_0x239221['id']);}}break;case TestFrameworkState[_0x402b19(0x273)]:_0x2f10bd[_0x402b19(0x279)](_0x2708f3,HookState[_0x402b19(0x1e8)])&&await this[_0x402b19(0x24f)](_0x350eee,_0x2ebbf2,_0x33bd67);break;default:if(CLIUtils[_0x402b19(0x253)](_0x2ebbf2[_0x402b19(0x23e)]()[_0x402b19(0x23a)]('.')[0x1])){const _0x1da5c7=await this[_0x402b19(0x213)](_0x350eee,_0x2ebbf2,_0x2708f3,_0x33bd67);_0x350eee[_0x402b19(0x223)](_0x1da5c7);}else logger[_0x402b19(0x22b)](_0x402b19(0x225)+_0x2ebbf2+'\x20&\x20hookState='+_0x2708f3);break;}}catch(_0x86c1e4){logger[_0x402b19(0x222)](util[_0x402b19(0x210)](_0x2f10bd[_0x402b19(0x267)],_0x2ebbf2,_0x2708f3,_0x33bd67['length'],_0x86c1e4));}_0x33bd67[_0x402b19(0x230)]=_0x350eee,await this['runHooks'](_0x350eee,_0x2ebbf2,_0x2708f3,_0x33bd67);}[a90_0x10d4cb(0x1e0)](_0x3f9c5e,_0x755ba2,_0x2bee7e={}){const _0xfab43b=a90_0x10d4cb,_0x493272={};_0x493272[_0xfab43b(0x24a)]=function(_0x1f08d1,_0xbddd1d){return _0x1f08d1===_0xbddd1d;};const _0x4c46cb=_0x493272;let _0x138186=null;return(_0x4c46cb[_0xfab43b(0x24a)](_0x3f9c5e,TestFrameworkState[_0xfab43b(0x23f)])||_0x4c46cb['wdXja'](_0x3f9c5e,TestFrameworkState[_0xfab43b(0x207)]))&&this['trackCucumberInstance'](_0x3f9c5e,_0x2bee7e),_0x138186=TestFramework[_0xfab43b(0x25c)](),_0x138186;}[a90_0x10d4cb(0x29e)](_0x3ec066,_0xc14eae){const _0x957b3e=a90_0x10d4cb,_0x419392=CLIUtils[_0x957b3e(0x22a)](),_0x57e7b6=TrackedInstance[_0x957b3e(0x254)](_0x419392);let _0x5ef7e8=null;logger[_0x957b3e(0x22b)](_0x957b3e(0x258)+_0x419392+_0x957b3e(0x276)+_0x3ec066),_0x5ef7e8=new TestFrameworkInstance(_0x57e7b6,this[_0x957b3e(0x1fe)](),this[_0x957b3e(0x214)](),_0x3ec066,HookState[_0x957b3e(0x207)]),TestFramework[_0x957b3e(0x1fd)](_0x57e7b6,_0x5ef7e8),logger[_0x957b3e(0x22b)](_0x957b3e(0x212)+_0x57e7b6[_0x957b3e(0x243)]()+'\x20target='+_0x419392);}['parseCucumberTest'](_0x513aa3){const _0x35ba77=a90_0x10d4cb,_0x1e9f69={};_0x1e9f69[_0x35ba77(0x289)]='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x4a4952=_0x1e9f69,{testUUID:_0x557a92,testData:_0x2713e3}=_0x513aa3;if(!_0x2713e3||!_0x2713e3[_0x35ba77(0x233)])return logger['debug'](_0x4a4952[_0x35ba77(0x289)]),{};const _0x3f4405=_0x557a92,_0x436345=_0x2713e3[_0x35ba77(0x233)],_0x4b7194=this[_0x35ba77(0x1fe)]()[0x0],_0x267883=this[_0x35ba77(0x214)](),_0xa7ef8b={[TestFrameworkConstants[_0x35ba77(0x284)]]:_0x4b7194,[TestFrameworkConstants[_0x35ba77(0x1f2)]]:_0x267883[_0x4b7194],[TestFrameworkConstants['KEY_TEST_LOGS']]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x35ba77(0x1eb)]]:{},[TestFrameworkConstants[_0x35ba77(0x24b)]]:_0x3f4405,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x35ba77(0x297)],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x2713e3['name']||'',[TestFrameworkConstants[_0x35ba77(0x226)]]:_0x2713e3[_0x35ba77(0x1f3)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x436345,[TestFrameworkConstants[_0x35ba77(0x290)]]:_0x2713e3[_0x35ba77(0x208)]||'',[TestFrameworkConstants[_0x35ba77(0x201)]]:_0x2713e3['location']||'',[TestFrameworkConstants[_0x35ba77(0x21b)]]:_0x2713e3[_0x35ba77(0x2aa)]?.[_0x35ba77(0x2ad)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x2713e3['tags']||[],[TestFrameworkConstants[_0x35ba77(0x239)]]:_0x2713e3[_0x35ba77(0x24c)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x35ba77(0x251)]]:_0x2713e3[_0x35ba77(0x245)]?.[0x0]||'',[TestFrameworkConstants[_0x35ba77(0x2ab)]]:_0x2713e3[_0x35ba77(0x245)]||[],[TestFrameworkConstants[_0x35ba77(0x22e)]]:_0x2713e3[_0x35ba77(0x27c)]?.[_0x35ba77(0x2b1)]||_0x2713e3[_0x35ba77(0x208)]||'',[TestFrameworkConstants[_0x35ba77(0x1f9)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x2713e3[_0x35ba77(0x2a1)]||{}};TestInfo[_0x35ba77(0x1f5)](_0x436345,_0xa7ef8b),logger[_0x35ba77(0x22b)](_0x35ba77(0x204)+_0x2713e3['name']+_0x35ba77(0x269)+_0x3f4405);const _0x49e5d8={};return _0x49e5d8[_0x436345]=_0xa7ef8b,_0x49e5d8;}['parseCucumberTestResult'](_0x91c61f){const _0x489228=a90_0x10d4cb,_0x909ae6={'QkPQl':_0x489228(0x268),'rqRoE':'unknown','kPLuO':function(_0x24474f,_0x286462){return _0x24474f===_0x286462;},'RtRSa':'failed','iyRiL':'UnhandledError','sANvK':function(_0x45fc75,_0x13b53a,_0x41f318){return _0x45fc75(_0x13b53a,_0x41f318);},'iVvce':function(_0x10847e,_0x5e9e11){return _0x10847e>_0x5e9e11;}},{testUUID:_0x490581,testData:_0xe5e0b2}=_0x91c61f;if(!_0xe5e0b2||!_0xe5e0b2[_0x489228(0x233)])return logger[_0x489228(0x22b)](_0x909ae6[_0x489228(0x2a2)]),{};const _0x59985e=this[_0x489228(0x1e0)](TestFrameworkState[_0x489228(0x20e)],HookState[_0x489228(0x1e8)]),_0x1f227c=_0xe5e0b2[_0x489228(0x233)],_0x3c3302=TestInfo['getTestDetails'](_0x1f227c)||{},_0x32b694=_0x3c3302?_0x3c3302[TestFrameworkConstants[_0x489228(0x1f9)]]||{}:{},_0xf0fbe7={..._0x3c3302,[TestFrameworkConstants[_0x489228(0x1e9)]]:_0xe5e0b2['result']||_0x909ae6['rqRoE'],[TestFrameworkConstants[_0x489228(0x21e)]]:_0xe5e0b2[_0x489228(0x1ef)]||new Date()[_0x489228(0x266)](),[TestFrameworkConstants[_0x489228(0x205)]]:new Date()[_0x489228(0x266)](),[TestFrameworkConstants[_0x489228(0x1f9)]]:_0x32b694,[TestFrameworkConstants[_0x489228(0x20b)]]:[],[TestFrameworkConstants[_0x489228(0x228)]]:_0xe5e0b2[_0x489228(0x2a1)]||{}};_0x909ae6[_0x489228(0x27e)](_0xe5e0b2[_0x489228(0x202)],_0x909ae6[_0x489228(0x22f)])&&_0xe5e0b2[_0x489228(0x26e)]&&(_0xf0fbe7[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0xe5e0b2[_0x489228(0x249)]||_0x909ae6[_0x489228(0x28e)],_0xf0fbe7[TestFrameworkConstants[_0x489228(0x21f)]]=_0xe5e0b2[_0x489228(0x2b3)]||'',_0xf0fbe7[TestFrameworkConstants[_0x489228(0x1f7)]]=_0xe5e0b2['failure']);const _0x57d871=TestInfo['getTestDetails'](_0x1f227c)[TestFrameworkConstants[_0x489228(0x29d)]]||{},_0x1e3151=_0x909ae6[_0x489228(0x1fb)](getManualUploadLogs,_0x57d871,_0x59985e[_0x489228(0x2a9)]()[_0x489228(0x26b)](_0x1f227c)[TestFrameworkConstants[_0x489228(0x24b)]]);if(_0x909ae6['iVvce'](_0x1e3151[_0x489228(0x1fa)],0x0)){const _0x332c39=_0xf0fbe7[TestFrameworkConstants[_0x489228(0x20b)]]||[];_0xf0fbe7[TestFrameworkConstants[_0x489228(0x20b)]]=[..._0x332c39,..._0x1e3151];}_0xe5e0b2[_0x489228(0x2b2)]&&_0x909ae6[_0x489228(0x252)](_0xe5e0b2[_0x489228(0x2b2)][_0x489228(0x1fa)],0x0)&&(_0xf0fbe7[TestFrameworkConstants[_0x489228(0x2b6)]]=_0xe5e0b2[_0x489228(0x2b2)]);TestInfo[_0x489228(0x1f5)](_0x1f227c,_0xf0fbe7),logger['debug'](_0x489228(0x229)+_0xe5e0b2[_0x489228(0x208)]+_0x489228(0x22c)+_0xe5e0b2[_0x489228(0x202)]);const _0x4c4b3c={};return _0x4c4b3c[_0x1f227c]=_0xf0fbe7,_0x4c4b3c;}async[a90_0x10d4cb(0x213)](_0x570723,_0x279fa2,_0x2a5d5d,_0x35c301){const _0x21357d=a90_0x10d4cb,_0x45da0d={'yYJwX':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','JSMeo':function(_0x16fe4c){return _0x16fe4c();},'uwGBC':function(_0x453922,_0x515f2f){return _0x453922 in _0x515f2f;},'IeudN':function(_0xd549a5,_0x238cb0){return _0xd549a5===_0x238cb0;},'WdNIF':function(_0x4f2060,_0x4e8844){return _0x4f2060>_0x4e8844;},'wXqyA':_0x21357d(0x29a),'xbxZT':_0x21357d(0x296),'cVEEH':_0x21357d(0x242),'cJuYL':function(_0x493bd1,_0x3f5187){return _0x493bd1!==_0x3f5187;}},{hookData:_0xf47251}=_0x35c301;if(!_0xf47251)return logger['debug'](_0x45da0d[_0x21357d(0x248)]),{};const _0x373fd3=_0xf47251['uuid']||_0x45da0d[_0x21357d(0x200)](uuidv4),_0x337079=_0xf47251[_0x21357d(0x227)],_0x8a4003=_0x279fa2[_0x21357d(0x23e)]()[_0x21357d(0x23a)]('.')[0x1],_0x9755b3=TestInfo[_0x21357d(0x1ee)](_0x337079)[TestFrameworkConstants[_0x21357d(0x1f9)]]||{},_0x3056c8=_0x570723['getAllData']()[_0x21357d(0x26b)](_0x337079);if(!_0x3056c8)return logger[_0x21357d(0x22b)](_0x21357d(0x234)+_0x337079+',\x20storing\x20as\x20pending\x20hook'),this['storePendingHook'](_0x570723,_0x337079,_0x279fa2,_0x2a5d5d,_0x35c301),{};let _0x184e28=_0x3056c8[TestFrameworkConstants[_0x21357d(0x1eb)]];!_0x184e28&&(_0x184e28={});!_0x45da0d[_0x21357d(0x259)](_0x8a4003,_0x184e28)&&(_0x184e28[_0x8a4003]=[]);let _0x59ebdb=_0x3056c8[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x59ebdb&&(_0x59ebdb={});!_0x45da0d[_0x21357d(0x259)](_0x8a4003,_0x59ebdb)&&(_0x59ebdb[_0x8a4003]=[]);const _0x2236e2={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x184e28,[TestFrameworkConstants[_0x21357d(0x2b6)]]:_0x59ebdb},_0x330c7c={};_0x330c7c[_0x337079]=_0x2236e2;const _0x475d98=_0x330c7c;if(_0x45da0d[_0x21357d(0x1de)](_0x2a5d5d,HookState[_0x21357d(0x203)])){const _0x4405e0={[TestFrameworkConstants[_0x21357d(0x2ac)]]:_0x373fd3,[TestFrameworkConstants[_0x21357d(0x272)]]:TestFrameworkConstants[_0x21357d(0x29c)],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0xf47251['started_at'],[TestFrameworkConstants[_0x21357d(0x27b)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0xf47251[_0x21357d(0x211)],[TestFrameworkConstants[_0x21357d(0x1f9)]]:_0x9755b3};_0x4405e0[_0x21357d(0x283)]=_0x8a4003;const _0x29761f=_0x4405e0;_0x184e28[_0x8a4003][_0x21357d(0x274)](_0x29761f),_0x475d98[_0x337079][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x8a4003,logger[_0x21357d(0x22b)](_0x21357d(0x2a6)+_0x8a4003+_0x21357d(0x286)+_0x29761f+'\x20\x20and\x20args\x20=\x20'+_0x35c301);}else{if(_0x45da0d[_0x21357d(0x1de)](_0x2a5d5d,HookState[_0x21357d(0x1e8)])){const _0x5a303a=_0xf47251['result'],_0x3fac4b=_0x184e28[_0x8a4003]||[];logger['debug']('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x3fac4b+_0x21357d(0x299)+_0x35c301);if(_0x45da0d[_0x21357d(0x28c)](_0x3fac4b['length'],0x0)){const _0x1444cc=_0x3fac4b[_0x21357d(0x288)]();_0x45da0d[_0x21357d(0x1de)](_0xf47251['result'],_0x45da0d[_0x21357d(0x265)])&&_0xf47251[_0x21357d(0x23b)]?(_0x1444cc[TestFrameworkConstants[_0x21357d(0x235)]]=_0xf47251[_0x21357d(0x249)]||_0x45da0d[_0x21357d(0x1f1)],_0x1444cc[TestFrameworkConstants[_0x21357d(0x2ae)]]=_0xf47251['failure_reason']||'',_0x1444cc[TestFrameworkConstants[_0x21357d(0x23c)]]=_0xf47251[_0x21357d(0x23b)]):_0x1444cc[TestFrameworkConstants[_0x21357d(0x272)]]=_0x45da0d[_0x21357d(0x278)];_0x45da0d[_0x21357d(0x209)](_0x5a303a,TestFrameworkConstants['DEFAULT_HOOK_RESULT'])&&(_0x1444cc[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x5a303a);_0x1444cc[TestFrameworkConstants[_0x21357d(0x236)]]=_0xf47251[_0x21357d(0x25d)]||new Date()[_0x21357d(0x266)](),_0x1444cc[TestFrameworkConstants[_0x21357d(0x1f9)]]=_0x9755b3;const _0x4095ae=_0x1444cc[TestFrameworkConstants[_0x21357d(0x2ac)]];!_0x59ebdb[_0x8a4003]&&(_0x59ebdb[_0x8a4003]=[]),_0x59ebdb[_0x8a4003][_0x21357d(0x274)](_0x1444cc),_0x475d98[_0x337079][TestFrameworkConstants[_0x21357d(0x2a3)]]=_0x8a4003;}}}return logger[_0x21357d(0x22b)](_0x21357d(0x21d)+_0xf47251['hook_type']+'\x20with\x20id\x20'+_0x373fd3+_0x21357d(0x246)+_0x337079),_0x475d98;}[a90_0x10d4cb(0x2b0)](_0x4c512d){const _0x2f466e=a90_0x10d4cb,_0x511bee={};_0x511bee[_0x2f466e(0x244)]=_0x2f466e(0x1ea);const _0x3b9578=_0x511bee;try{const _0x262dd6=_0x4c512d[_0x2f466e(0x22d)]?_0x4c512d['test']['id']:_0x4c512d[_0x2f466e(0x24e)][_0x2f466e(0x227)],_0x24cc41=_0x4c512d[_0x2f466e(0x230)],_0x1357d7=_0x24cc41[_0x2f466e(0x1e7)](),_0x5f368c=_0x24cc41[_0x2f466e(0x2a9)]()['get'](_0x262dd6);if(!_0x5f368c)return logger['debug'](_0x2f466e(0x294)+_0x262dd6),{};logger['debug'](_0x2f466e(0x250)+_0x262dd6);const {[TestFrameworkConstants[_0x2f466e(0x284)]]:_0x2b2672='',[TestFrameworkConstants[_0x2f466e(0x1f2)]]:_0x34a42c='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x16e343='',[TestFrameworkConstants[_0x2f466e(0x21e)]]:_0x5c2c7d=''}=_0x5f368c,_0x4bbb7a=_0x24cc41[_0x2f466e(0x1ff)]()['toString']()[_0x2f466e(0x23a)]('.')[0x1],_0x10ff14=_0x24cc41[_0x2f466e(0x275)]()[_0x2f466e(0x23e)]()[_0x2f466e(0x23a)]('.')[0x1],_0x41db43=global?.[_0x2f466e(0x2af)]??0x0,_0x5d3ea9=_0x24cc41[_0x2f466e(0x27f)](),_0x5b0282=Buffer[_0x2f466e(0x291)](JSON['stringify'](_0x5f368c))[_0x2f466e(0x23e)](_0x3b9578['eUtQK']),_0xceeee5={'hash':_0x1357d7[_0x2f466e(0x243)](),'threadId':_0x1357d7[_0x2f466e(0x221)]()[_0x2f466e(0x23e)](),'processId':_0x1357d7['getProcessId']()[_0x2f466e(0x23e)]()},_0x322010={};_0x322010[_0x2f466e(0x1e1)]=_0x41db43,_0x322010[_0x2f466e(0x298)]=_0x2b2672,_0x322010[_0x2f466e(0x241)]=_0x34a42c,_0x322010[_0x2f466e(0x1e5)]=_0x4bbb7a,_0x322010[_0x2f466e(0x206)]=_0x10ff14,_0x322010[_0x2f466e(0x24c)]=_0x16e343,_0x322010[_0x2f466e(0x24d)]=_0x5c2c7d,_0x322010[_0x2f466e(0x233)]=_0x5d3ea9,_0x322010[_0x2f466e(0x27a)]=_0x5b0282,_0x322010[_0x2f466e(0x270)]=_0xceeee5;const _0x42edd1=_0x322010;return logger[_0x2f466e(0x22b)](_0x2f466e(0x2a0)+_0x262dd6+_0x2f466e(0x264)+_0x4bbb7a+_0x2f466e(0x282)+_0x10ff14),_0x42edd1;}catch(_0x4dff10){return logger[_0x2f466e(0x222)](_0x2f466e(0x2a5)+util[_0x2f466e(0x210)](_0x4dff10)),{};}}async[a90_0x10d4cb(0x24f)](_0x7f2e25,_0x3fa942,_0x3c1a29){const _0x2276de=a90_0x10d4cb,_0x197203={'UwiTF':function(_0x14bad1,_0x9da1e,_0x427636){return _0x14bad1(_0x9da1e,_0x427636);},'XpwFQ':function(_0x24f732,_0x3f363d){return _0x24f732===_0x3f363d;},'iuWTd':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','dZGnG':function(_0x21ea02,_0x4cbebe){return _0x21ea02/_0x4cbebe;},'yARyH':function(_0x4f10c8,_0x5e621c){return _0x4f10c8<_0x5e621c;},'wwRiP':function(_0x47e6b3,_0x3b8622){return _0x47e6b3*_0x3b8622;},'KHnUl':function(_0x1627b2,_0x160be6){return _0x1627b2+_0x160be6;},'AoMJH':function(_0x3b7cc9,_0x1268f9){return _0x3b7cc9+_0x1268f9;},'MJmia':function(_0x5d33bc,_0x1b27ed){return _0x5d33bc+_0x1b27ed;},'QqyAP':'Cucumber\x20log\x20created\x20event'};try{const _0xe40239=_0x3c1a29[_0x2276de(0x26f)],_0x106ebb=_0x7f2e25[_0x2276de(0x2a9)]()['get'](_0xe40239),{[TestFrameworkConstants[_0x2276de(0x284)]]:_0x1192ec='',[TestFrameworkConstants[_0x2276de(0x1f2)]]:_0x3de553=''}=_0x106ebb,_0x5d8a0d=TestInfo['readLogObjects'](_0xe40239),_0x2c1186=TestInfo[_0x2276de(0x1ee)](_0xe40239)[TestFrameworkConstants[_0x2276de(0x29d)]]||{},_0xb8594c=_0x197203[_0x2276de(0x2a8)](getMediaArtifactsLogs,_0x2c1186,_0x7f2e25[_0x2276de(0x2a9)]()['get'](_0xe40239)[TestFrameworkConstants[_0x2276de(0x24b)]]),_0x567a20=(_0x5d8a0d||[])['concat'](_0xb8594c||[]);if(!_0x567a20||_0x197203[_0x2276de(0x1f0)](_0x567a20[_0x2276de(0x1fa)],0x0)){logger[_0x2276de(0x22b)](_0x197203[_0x2276de(0x295)]);return;}const _0x3d8b7c=0x28,_0xc69db2=Math[_0x2276de(0x1f4)](_0x197203[_0x2276de(0x263)](_0x567a20[_0x2276de(0x1fa)],_0x3d8b7c));for(let _0x2a2648=0x0;_0x197203[_0x2276de(0x1dd)](_0x2a2648,_0xc69db2);_0x2a2648++){const _0x355ad0=_0x197203[_0x2276de(0x260)](_0x2a2648,_0x3d8b7c),_0xf3afcb=_0x197203[_0x2276de(0x1e3)](_0x355ad0,_0x3d8b7c),_0x490439=_0x567a20[_0x2276de(0x220)](_0x355ad0,_0xf3afcb),_0x49abe5={'platformIndex':global?.[_0x2276de(0x2af)]??0x0,'logs':_0x490439,'testFrameworkName':_0x1192ec,'testFrameworkVersion':_0x3de553,'testFrameworkState':_0x3fa942[_0x2276de(0x23e)]()[_0x2276de(0x23a)]('.')[0x1]};logger['debug'](_0x2276de(0x25f)+_0xe40239+_0x2276de(0x28f)+_0x197203[_0x2276de(0x216)](_0x2a2648,0x1)+'/'+_0xc69db2+_0x2276de(0x20a)+util[_0x2276de(0x1f8)](_0x49abe5));const _0x2ceb48=await GrpcClient[_0x2276de(0x1e4)]()[_0x2276de(0x25a)](_0x49abe5);logger[_0x2276de(0x22b)](_0x2276de(0x25f)+_0xe40239+_0x2276de(0x28f)+_0x197203[_0x2276de(0x292)](_0x2a2648,0x1)+'/'+_0xc69db2+_0x2276de(0x2b5)+util[_0x2276de(0x1f8)](_0x2ceb48));}}catch(_0x3b7e9f){logger[_0x2276de(0x222)](_0x2276de(0x28d)+util[_0x2276de(0x210)](_0x3b7e9f));}logger[_0x2276de(0x22b)](_0x197203[_0x2276de(0x20f)]);}['storePendingHook'](_0x4d7e5f,_0x3c58d3,_0x416cb6,_0x190c46,_0x5959ae){const _0x415635=a90_0x10d4cb,_0x4ecfa4={'testId':_0x3c58d3,'testFrameworkState':_0x416cb6,'hookState':_0x190c46,'args':_0x5959ae,'timestamp':new Date()[_0x415635(0x266)]()};_0x4d7e5f[_0x415635(0x247)](_0x3c58d3,_0x4ecfa4),logger[_0x415635(0x22b)](_0x415635(0x25e)+_0x3c58d3+_0x415635(0x217)+_0x416cb6+_0x415635(0x28a)+_0x190c46);}async[a90_0x10d4cb(0x262)](_0x30b9c4,_0x1c99a1){const _0x29a21b=a90_0x10d4cb,_0x4e87c3={};_0x4e87c3[_0x29a21b(0x218)]=function(_0x14a5fb,_0x2ceba8){return _0x14a5fb>_0x2ceba8;};const _0x124bac=_0x4e87c3;if(!_0x30b9c4[_0x29a21b(0x20c)](_0x1c99a1))return;const _0x5ef22f=_0x30b9c4[_0x29a21b(0x219)](_0x1c99a1);logger[_0x29a21b(0x22b)](_0x29a21b(0x257)+_0x5ef22f[_0x29a21b(0x1fa)]+_0x29a21b(0x1ec)+_0x1c99a1);for(const _0x2bf148 of _0x5ef22f){try{const _0x4fc083=await this['trackHookEvent'](_0x30b9c4,_0x2bf148['testFrameworkState'],_0x2bf148['hookState'],_0x2bf148['args']);_0x4fc083&&_0x124bac[_0x29a21b(0x218)](Object[_0x29a21b(0x23d)](_0x4fc083)[_0x29a21b(0x1fa)],0x0)&&_0x30b9c4[_0x29a21b(0x223)](_0x4fc083),await this['runHooks'](_0x30b9c4,_0x2bf148['testFrameworkState'],_0x2bf148[_0x29a21b(0x206)],_0x2bf148[_0x29a21b(0x26a)]);}catch(_0x1d4801){logger['error'](_0x29a21b(0x1ed)+_0x1c99a1+_0x29a21b(0x1f6)+_0x1d4801);}}_0x30b9c4[_0x29a21b(0x26d)](_0x1c99a1),logger[_0x29a21b(0x22b)](_0x29a21b(0x1e2)+_0x1c99a1);}}module[a90_0x10d4cb(0x21a)]=CucumberTestFramework;