browserstack-node-sdk 1.65.1 → 1.65.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  42. package/src/bin/codeceptjs/command.js +1 -1
  43. package/src/bin/codeceptjs/helper.js +1 -1
  44. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  45. package/src/bin/cucumber-js/command.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  48. package/src/bin/cucumber-js/test-observability.js +1 -1
  49. package/src/bin/cucumber-js/test.setup.js +1 -1
  50. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  51. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  52. package/src/bin/integrations/command.js +1 -1
  53. package/src/bin/integrations/constants.js +1 -1
  54. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  55. package/src/bin/jasmine/command.js +1 -1
  56. package/src/bin/jasmine/test.setup.js +1 -1
  57. package/src/bin/jasmine/testRunMap.js +1 -1
  58. package/src/bin/jest/command.js +1 -1
  59. package/src/bin/jest/customImplements/customCircus.js +1 -1
  60. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  61. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  62. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  63. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  64. package/src/bin/jest/jest.setup.js +1 -1
  65. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  66. package/src/bin/jest/test-observability/helper.js +1 -1
  67. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  68. package/src/bin/jest/test-observability/test-details.js +1 -1
  69. package/src/bin/jest/test.setup.js +1 -1
  70. package/src/bin/jest/test_before.setup.js +1 -1
  71. package/src/bin/launcher/launcher.js +1 -1
  72. package/src/bin/load/index.js +1 -1
  73. package/src/bin/load/loadErrors.js +1 -1
  74. package/src/bin/load/loadUtils.js +1 -1
  75. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  76. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  77. package/src/bin/mocha/command.js +1 -1
  78. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  79. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  80. package/src/bin/mocha/test.setup.js +1 -1
  81. package/src/bin/newman/command.js +1 -1
  82. package/src/bin/newman/helper.js +1 -1
  83. package/src/bin/newman/reporter/index.js +1 -1
  84. package/src/bin/newman/scriptRunner.js +1 -1
  85. package/src/bin/nightwatch/command.js +1 -1
  86. package/src/bin/node-generic/client.js +1 -1
  87. package/src/bin/playwright/accessibility-helper.js +1 -1
  88. package/src/bin/playwright/command.js +1 -1
  89. package/src/bin/playwright/globalSetup.js +1 -1
  90. package/src/bin/playwright/mock-process.js +1 -1
  91. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  92. package/src/bin/playwright/patches.js +1 -1
  93. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  94. package/src/bin/playwright/reporter/reporter.js +1 -1
  95. package/src/bin/playwright/reporter/test-details.js +1 -1
  96. package/src/bin/playwright/reporterArgs.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  137. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  138. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  139. package/src/bin/v2/framework/testFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  142. package/src/bin/v2/grpcClient.js +1 -1
  143. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  145. package/src/bin/v2/instances/trackedContext.js +1 -1
  146. package/src/bin/v2/instances/trackedInstance.js +1 -1
  147. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  148. package/src/bin/v2/modules/baseModule.js +1 -1
  149. package/src/bin/v2/modules/loadTestModule.js +1 -1
  150. package/src/bin/v2/modules/observabilityModule.js +1 -1
  151. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  152. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  154. package/src/bin/v2/modules/testhubModule.js +1 -1
  155. package/src/bin/v2/sdkErrorHandler.js +1 -1
  156. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  157. package/src/bin/v2/state/hookState.js +1 -1
  158. package/src/bin/v2/state/testFrameworkState.js +1 -1
  159. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  160. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  161. package/src/bin/v2/utils/jest-utils.js +1 -1
  162. package/src/bin/vanilla-js/command.js +1 -1
  163. package/src/browserStackSdk.js +1 -1
  164. package/src/helpers/BrowserStackSetup.js +1 -1
  165. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  166. package/src/helpers/accessibility-automation/constants.js +1 -1
  167. package/src/helpers/accessibility-automation/helper.js +1 -1
  168. package/src/helpers/accessibility-automation/scripts.js +1 -1
  169. package/src/helpers/ats/constants.js +1 -1
  170. package/src/helpers/ats/helper.js +1 -1
  171. package/src/helpers/caCertHelper.js +1 -1
  172. package/src/helpers/capsMapping.js +1 -1
  173. package/src/helpers/central-scanner/constants.js +1 -1
  174. package/src/helpers/central-scanner/helpers.js +1 -1
  175. package/src/helpers/classLogger.js +1 -1
  176. package/src/helpers/driverInitErrorReporter.js +1 -1
  177. package/src/helpers/globals.js +1 -1
  178. package/src/helpers/helper.js +1 -1
  179. package/src/helpers/logger.js +1 -1
  180. package/src/helpers/metadata.js +1 -1
  181. package/src/helpers/patchHelper.js +1 -1
  182. package/src/helpers/patchHelpers.js +1 -1
  183. package/src/helpers/percy/Percy.js +1 -1
  184. package/src/helpers/percy/PercyBinary.js +1 -1
  185. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  186. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  187. package/src/helpers/percy/PercySDK.js +1 -1
  188. package/src/helpers/percy/index.js +1 -1
  189. package/src/helpers/percy/utils.js +1 -1
  190. package/src/helpers/performance/constants.js +1 -1
  191. package/src/helpers/performance/performance-tester.js +1 -1
  192. package/src/helpers/playwright-helper.js +1 -1
  193. package/src/helpers/processHelper.js +1 -1
  194. package/src/helpers/puppeteer-helper.js +1 -1
  195. package/src/helpers/request-spy.js +1 -1
  196. package/src/helpers/setKeepAlive.js +1 -1
  197. package/src/helpers/stackFrameUtils.js +1 -1
  198. package/src/helpers/test-observability/constants.js +1 -1
  199. package/src/helpers/test-observability/error-handler.js +1 -1
  200. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  201. package/src/helpers/test-observability/sessionHandler.js +1 -1
  202. package/src/helpers/test-observability/utils.js +1 -1
  203. package/src/helpers/test-orchestration/constants.js +1 -1
  204. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  205. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  206. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  207. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  208. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  209. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  210. package/src/helpers/testhub/constants.js +1 -1
  211. package/src/helpers/testhub/testhubHandler.js +1 -1
  212. package/src/helpers/testhub/utils.js +1 -1
  213. package/src/helpers/utilities.js +1 -1
  214. package/src/helpers/w3cMapping.js +1 -1
  215. package/src/hubAllocationMethods.js +1 -1
  216. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a85_0x16a6(_0x6fc326,_0x28f093){const _0x48fe27=a85_0x48fe();return a85_0x16a6=function(_0x16a66f,_0x21f4dd){_0x16a66f=_0x16a66f-0xaf;let _0x1359d9=_0x48fe27[_0x16a66f];return _0x1359d9;},a85_0x16a6(_0x6fc326,_0x28f093);}const a85_0x3a807f=a85_0x16a6;function a85_0x48fe(){const _0xbd1724=['downloadLatestBinary','getAutomationFrameworkDetail','SDK_CLI_CHECK_UPDATE','sgFMp','XkpyG','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','statSync','tyiat','plyhS','qtHix','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','url','closeSync','basename','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','skipSessionName','join','platform','AjeJz','MuWHh','getCliDir','warn','SZgqy','./state/testFrameworkState.js','testFrameworkDetail','fileName','2lBLwEU','exports','Resolved\x20binary\x20path:\x20','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','error','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','DOWNLOAD_HTTP','SDK_CLI_DOWNLOAD','22253DpriiN','yauzl','CADYB','cznWw','BROWSERSTACK_CLI_ENV','env','statusCode','5126268pYrtec','fnjxa','getWritableDir','uhWCz','IblHs','cli_version','testContextOptions','getSdkLanguage','NerNq','CLI\x20version\x20found\x20despite\x20error:\x20\x22','MjkRK','GKliD','getCLIParamsForDevEnv','preserveStatusCodeOnError','ZDRUP','cwd','./state/automationFrameworkState.js','end','vfkhu','close','node','YbOpA','VFiPb','info','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','map','code','mtime','acAUK','concat','data','BROWSERSTACK_BINARY_URL','aMooV','smorH','timeout','Binary\x20is\x20busy:\x20','HleGg','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','getSdkVersion','yQeUD','HVdKG','275QjkLNx','lZUXo','mergeObject','../../helpers/helper','BcguZ','difTI','once','split','TfMnV','0755','./state/hookState.js','KMkvj','PrrIr','shouldSkipSessionStatus','SHELL_EXECUTE_ERROR','952461uRtDhn','DALJB','entries','hLpiB','tAZAw','./instances/testFrameworkInstance.js','object','Configuring\x20Cli\x20path.','util','dbebj','../../helpers/performance/performance-tester.js','openReadStream','OVIpP','runShellCommand','0|4|2|1|3','\x20already\x20exists','VVSVm','version','HTTP\x20','lazyEntries','vZkrf','includes','isBinaryBusy','Development\x20Cli\x20Path:\x20','existsSync','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','downloadFileStream','aQLrN','.zip','QEpEk','./framework/constants/testFrameworkConstants.js','unlink','format','Resolving\x20with\x20stdout:\x20\x22','nujjw','YadOL','setupCliPath','../../helpers/performance/constants','setFrameworkDetail','chmod','USvjn','wUxip','\x20version','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','Failed\x20to\x20delete\x20zip\x20file:\x20','CLIUtils','NXPQK','46088CFPFgV','tezrm','dvckX','1432AWjVZc','filter','Jcbvd','777740eCfDXp','.tmp.','open','vMIDY','getExistingCliPath','startsWith','SYmkX','pid','child_process','trim','UeGMd','path','jTZqI','RGSsp','Setting\x20required\x20permissions\x20to\x20','hvgHR','910lnVptX','test','worker_threads','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','binary-','../utils/apiUtilityMethods.js','../../helpers/test-observability/utils.js','getHookRegistryKey','checkAndUpdateCli','getCurrentInstanceName','entry','tOmhE','shouldSkipSessionName','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','stringify','length','../../helpers/utilities','181266DYrElT','homedir','unix:/tmp/sdk-platform-','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','tmpdir','debug','VaCQK','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','automationFrameworkDetail','xnLze','createWriteStream','Folder\x20','filePath','parse','cKzzZ','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','367949yoltmP','isArray','readdirSync','message','follow-redirects','readEntry','ZIAya','skipSessionStatus','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','../utils/constants','get','pipe','downloaded_file_','TQgJc','ZVisj',',\x20automationFramework=','\x20from\x20'];a85_0x48fe=function(){return _0xbd1724;};return a85_0x48fe();}(function(_0x43d40e,_0x49b22f){const _0x5e7259=a85_0x16a6,_0x372f98=_0x43d40e();while(!![]){try{const _0x5b59ad=parseInt(_0x5e7259(0x18a))/0x1*(-parseInt(_0x5e7259(0xd9))/0x2)+parseInt(_0x5e7259(0xea))/0x3+parseInt(_0x5e7259(0x158))/0x4+-parseInt(_0x5e7259(0x113))/0x5*(parseInt(_0x5e7259(0x17a))/0x6)+-parseInt(_0x5e7259(0x152))/0x7*(-parseInt(_0x5e7259(0x155))/0x8)+parseInt(_0x5e7259(0x122))/0x9+-parseInt(_0x5e7259(0x168))/0xa*(parseInt(_0x5e7259(0xe3))/0xb);if(_0x5b59ad===_0x49b22f)break;else _0x372f98['push'](_0x372f98['shift']());}catch(_0x2f8e96){_0x372f98['push'](_0x372f98['shift']());}}}(a85_0x48fe,0xedc55));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a85_0x3a807f(0x163)),{exec}=require(a85_0x3a807f(0x160)),{https}=require(a85_0x3a807f(0xb2)),yauzl=require(a85_0x3a807f(0xe4)),util=require(a85_0x3a807f(0x12a)),{getFrameworkVersion}=require(a85_0x3a807f(0x16e)),{threadId}=require(a85_0x3a807f(0x16a)),PerformanceTester=require(a85_0x3a807f(0x12c)),{EVENTS:PerformanceEvents}=require(a85_0x3a807f(0x148)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x3a807f(0x179)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x3a807f(0x116)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x3a807f(0xb7)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a85_0x3a807f(0x127)),HookState=require(a85_0x3a807f(0x11d)),TestFrameworkState=require(a85_0x3a807f(0xd6)),AutomationFrameworkState=require(a85_0x3a807f(0xfa)),TestFrameworkConstants=require(a85_0x3a807f(0x141)),logger=createClassLogger(a85_0x3a807f(0x150)),{getBStackAPIUrl}=require(a85_0x3a807f(0x16d));class CLIUtils{[a85_0x3a807f(0x182)]={};[a85_0x3a807f(0xd7)]={};static['isDevelopmentEnv'](){const _0x4b0964=a85_0x3a807f,_0x1a5db2={};_0x1a5db2[_0x4b0964(0xf4)]=function(_0x1a9a19,_0x279dba){return _0x1a9a19===_0x279dba;},_0x1a5db2[_0x4b0964(0x180)]='development';const _0xd5c206=_0x1a5db2;return _0xd5c206[_0x4b0964(0xf4)](process[_0x4b0964(0xe8)][_0x4b0964(0xe7)],_0xd5c206[_0x4b0964(0x180)]);}static[a85_0x3a807f(0xf6)](){const _0x265266=a85_0x3a807f,_0xd25a00={};return _0xd25a00['id']=process[_0x265266(0xe8)][_0x265266(0xe7)],_0xd25a00['listen']=_0x265266(0x17c)+process[_0x265266(0xe8)]['BROWSERSTACK_CLI_ENV']+'.sock',_0xd25a00;}static['getSdkVersion'](){const _0x14f116=a85_0x3a807f,_0x4fdb2e={'lGXNQ':function(_0x3b650f,_0x31d608){return _0x3b650f(_0x31d608);},'difTI':'../../../package.json'};return _0x4fdb2e['lGXNQ'](require,_0x4fdb2e[_0x14f116(0x118)])[_0x14f116(0x133)];}static[a85_0x3a807f(0xf1)](){const _0x133fd7=a85_0x3a807f,_0x52975c={};_0x52975c[_0x133fd7(0x153)]=_0x133fd7(0xfe);const _0x33ae2b=_0x52975c;return _0x33ae2b['tezrm'];}static async[a85_0x3a807f(0x147)](_0x3b1069){const _0x44a946=a85_0x3a807f,_0x4aa9c1={'NtoAV':_0x44a946(0x129),'VVSVm':function(_0x36ab36,_0x442575){return _0x36ab36(_0x442575);},'gZGEM':function(_0x4f1b2b,_0x52996e){return _0x4f1b2b(_0x52996e);},'FxZcJ':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI'};logger[_0x44a946(0x17f)](_0x4aa9c1['NtoAV']);const _0x5960fb=process[_0x44a946(0xe8)]['SDK_CLI_BIN_PATH'];if(!_0x4aa9c1[_0x44a946(0x132)](isNullOrEmpty,_0x5960fb))return logger[_0x44a946(0x17f)](_0x44a946(0x139)+_0x5960fb),_0x5960fb;try{const _0x24b729=this[_0x44a946(0xd3)]();if(_0x4aa9c1['gZGEM'](isNullOrEmpty,_0x24b729))throw new Error(_0x4aa9c1['FxZcJ']);const _0x2d80a2=this[_0x44a946(0x15c)](_0x24b729),_0x52573b=await this[_0x44a946(0x170)](_0x2d80a2,_0x24b729,_0x3b1069);return logger['debug'](_0x44a946(0xdb)+_0x52573b),_0x52573b;}catch(_0x510459){logger['debug'](_0x44a946(0xb6)+util[_0x44a946(0x143)](_0x510459));}return null;}static async[a85_0x3a807f(0x170)](_0x1b28d4,_0x3f1123,_0x8b1d5){const _0x1c58de=a85_0x3a807f,_0x4b47c2={'QEpEk':function(_0x490993){return _0x490993();},'XkpyG':function(_0x4b441f,_0x39b3fb){return _0x4b441f(_0x39b3fb);},'xnLze':function(_0x85262f,_0x4065,_0x5ee9ff){return _0x85262f(_0x4065,_0x5ee9ff);},'AjeJz':_0x1c58de(0x108),'smorH':_0x1c58de(0xca),'tAZAw':function(_0x4524e3,_0x4adcfc,_0x17387d){return _0x4524e3(_0x4adcfc,_0x17387d);}};PerformanceTester['start'](PerformanceEvents['SDK_CLI_CHECK_UPDATE']);try{logger[_0x1c58de(0x101)]('Current\x20CLI\x20Path\x20Found:\x20'+_0x1b28d4);const _0x5a7a65=_0x4b47c2[_0x1c58de(0x140)](getHostInfo),_0x36e120={'sdk_version':CLIUtils[_0x1c58de(0x110)](),'os':_0x5a7a65[_0x1c58de(0xd0)],'os_arch':_0x5a7a65['arch'],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x4b47c2[_0x1c58de(0xc3)](isNullOrEmpty,_0x1b28d4)&&(_0x36e120[_0x1c58de(0xef)]=await this['runShellCommand'](_0x1b28d4+_0x1c58de(0x14d)));const _0x1315ad=await this['requestToUpdateCLI'](_0x36e120,_0x8b1d5);process['env'][_0x1c58de(0x109)]&&(logger[_0x1c58de(0x101)](_0x1c58de(0xc4)+process[_0x1c58de(0xe8)][_0x1c58de(0x109)]),_0x1315ad[_0x1c58de(0x108)]['url']=process[_0x1c58de(0xe8)]['BROWSERSTACK_BINARY_URL']);if(_0x4b47c2[_0x1c58de(0x183)](nestedKeyValue,_0x1315ad,[_0x4b47c2[_0x1c58de(0xd1)],_0x4b47c2['smorH']])){logger['debug'](_0x1c58de(0x16b)+_0x36e120[_0x1c58de(0xef)]);if(!_0x4b47c2[_0x1c58de(0xc3)](isNullOrEmpty,_0x1b28d4)&&this[_0x1c58de(0x138)](_0x1b28d4))return logger[_0x1c58de(0xd4)](_0x1c58de(0x102)+_0x1b28d4),_0x1b28d4;return await this[_0x1c58de(0xbf)](_0x4b47c2[_0x1c58de(0x126)](nestedKeyValue,_0x1315ad,[_0x4b47c2[_0x1c58de(0xd1)],_0x4b47c2[_0x1c58de(0x10b)]]),_0x3f1123);}return _0x1b28d4;}finally{PerformanceTester['end'](PerformanceEvents[_0x1c58de(0xc1)]);}}static[a85_0x3a807f(0xd3)](){const _0x228c87=a85_0x3a807f,_0x2bf81e={'dvckX':function(_0x3d25c7,_0x4062d2){return _0x3d25c7(_0x4062d2);},'SYmkX':_0x228c87(0xe0),'rAoHA':'cli'},_0x584e31=this[_0x228c87(0xec)]();try{if(_0x2bf81e[_0x228c87(0x154)](isNullOrEmpty,_0x584e31))throw new Error(_0x2bf81e[_0x228c87(0x15e)]);const _0x1d676b=path['join'](_0x584e31,_0x2bf81e['rAoHA']);return!fs[_0x228c87(0x13a)](_0x1d676b)&&_0x2bf81e['dvckX'](createDir,_0x1d676b),_0x1d676b;}catch(_0x3c88e2){logger['debug'](_0x228c87(0x17d)+util[_0x228c87(0x143)](_0x3c88e2));}}static[a85_0x3a807f(0xec)](){const _0x26b338=a85_0x3a807f,_0x425a54={'EGtTG':'.browserstack','lZUXo':function(_0x589682,_0x5689c4){return _0x589682(_0x5689c4);},'NXPQK':function(_0xac55c,_0x20e0ea){return _0xac55c(_0x20e0ea);},'EGlrZ':function(_0x195738,_0x30a77e){return _0x195738(_0x30a77e);},'vfkhu':function(_0x428ef9,_0x3ec3c4){return _0x428ef9(_0x3ec3c4);}},_0xd453d8=[process['env']['BROWSERSTACK_FILES_DIR'],path['join'](os[_0x26b338(0x17b)](),_0x425a54['EGtTG']),path[_0x26b338(0xcf)](os[_0x26b338(0x17e)](),_0x425a54['EGtTG'])];for(const _0x4e3507 of _0xd453d8){if(_0x425a54[_0x26b338(0x114)](isNullOrEmpty,_0x4e3507))continue;try{if(fs['existsSync'](_0x4e3507)){logger[_0x26b338(0x17f)](_0x26b338(0x185)+_0x4e3507+_0x26b338(0x131));if(!_0x425a54[_0x26b338(0x114)](isModifiable,_0x4e3507)){logger[_0x26b338(0x17f)](_0x26b338(0x166)+_0x4e3507);const _0x1278f5=_0x425a54[_0x26b338(0x151)](setReadWriteExecuteAccess,_0x4e3507);if(!_0x425a54['NXPQK'](isTrue,_0x1278f5)){logger['warn']('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x4e3507);continue;}}}else{logger[_0x26b338(0x17f)]('Folder\x20does\x20not\x20exist:\x20'+_0x4e3507),_0x425a54['EGlrZ'](createDir,_0x4e3507),logger[_0x26b338(0x17f)](_0x26b338(0x166)+_0x4e3507);const _0x464dcc=_0x425a54[_0x26b338(0xfc)](setReadWriteExecuteAccess,_0x4e3507);!_0x425a54['EGlrZ'](isTrue,_0x464dcc)&&logger[_0x26b338(0xd4)](_0x26b338(0x13c)+_0x4e3507);}return _0x4e3507;}catch(_0x5547ba){logger[_0x26b338(0xdd)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x26b338(0x143)](_0x5547ba));}}return null;}static[a85_0x3a807f(0x15c)](_0xd0b380){const _0xf9552b=a85_0x3a807f,_0x5109c7={};_0x5109c7[_0xf9552b(0xb4)]=function(_0x4cb7c2,_0x16ee4c){return _0x4cb7c2>_0x16ee4c;},_0x5109c7[_0xf9552b(0xe5)]=function(_0x44e577,_0x4cbd3e){return _0x44e577>_0x4cbd3e;};const _0x309e97=_0x5109c7;try{if(!fs[_0xf9552b(0x13a)](_0xd0b380)||!fs[_0xf9552b(0xc5)](_0xd0b380)['isDirectory']())return'';const _0x2083d2=fs[_0xf9552b(0xb0)](_0xd0b380)[_0xf9552b(0x103)](_0x5f1eda=>path[_0xf9552b(0xcf)](_0xd0b380,_0x5f1eda))[_0xf9552b(0x156)](_0x451122=>fs[_0xf9552b(0xc5)](_0x451122)['isFile']()&&path[_0xf9552b(0xcc)](_0x451122)[_0xf9552b(0x15d)](_0xf9552b(0x16c)));if(_0x309e97[_0xf9552b(0xe5)](_0x2083d2[_0xf9552b(0x178)],0x0)){const _0x524f0e=_0x2083d2[_0xf9552b(0x103)](_0x1a60fb=>({'filePath':_0x1a60fb,'mtime':fs[_0xf9552b(0xc5)](_0x1a60fb)[_0xf9552b(0x105)]}))['reduce']((_0x57b430,_0x35c9f9)=>{const _0x4394f7=_0xf9552b;if(!_0x57b430||!_0x57b430[_0x4394f7(0x105)])return _0x35c9f9;if(_0x309e97['ZIAya'](_0x35c9f9[_0x4394f7(0x105)],_0x57b430[_0x4394f7(0x105)]))return _0x35c9f9;return _0x57b430;},{});return _0x524f0e?_0x524f0e[_0xf9552b(0x186)]:'';}return'';}catch(_0x7ee797){return logger[_0xf9552b(0xdd)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0xf9552b(0x143)](_0x7ee797)),'';}}static ['requestToUpdateCLI']=async(_0x1a914e,_0x1f32af)=>{const _0x3c8320=a85_0x3a807f,_0x4afb47={'oCaXR':function(_0x396a3a,_0x398b74,_0x329527,_0x371eb2,_0x28d15e){return _0x396a3a(_0x398b74,_0x329527,_0x371eb2,_0x28d15e);},'VFzYS':'GET'},_0x18e08c={};_0x18e08c['qs']=_0x1a914e,_0x18e08c[_0x3c8320(0xf7)]=!![];const _0x1dca52=await _0x4afb47['oCaXR'](nodeRequest,_0x4afb47['VFzYS'],UPDATED_CLI_ENDPOINT,_0x18e08c,_0x1f32af);return logger['debug']('response\x20'+JSON[_0x3c8320(0x177)](_0x1dca52)),_0x1dca52;};static[a85_0x3a807f(0x138)](_0xed377c){const _0x55edb6=a85_0x3a807f;try{const _0x4d0ba7=fs['openSync'](_0xed377c,'r+');return fs[_0x55edb6(0xcb)](_0x4d0ba7),![];}catch(_0x3311ee){if(BINARY_BUSY_ERROR_CODES[_0x55edb6(0x137)](_0x3311ee[_0x55edb6(0x104)]))return logger[_0x55edb6(0x17f)](_0x55edb6(0x10d)+_0xed377c),!![];return logger['debug']('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x3311ee['message']),![];}}static[a85_0x3a807f(0x12f)](_0x190333,_0x388ca1=''){const _0x325230=a85_0x3a807f,_0x227bbb={'JPYtK':_0x325230(0x133),'ZVisj':function(_0x36b82d,_0x4b6385){return _0x36b82d(_0x4b6385);},'YbOpA':function(_0x4885b0,_0xb690e6){return _0x4885b0(_0xb690e6);},'wUxip':_0x325230(0x121),'dbebj':function(_0x27fca5,_0x7f6e68){return _0x27fca5(_0x7f6e68);},'RGSsp':function(_0x49a770,_0x2b43fa,_0x5cb54d,_0x3cfc19){return _0x49a770(_0x2b43fa,_0x5cb54d,_0x3cfc19);},'ytMdZ':_0x325230(0xdd)};return new Promise((_0x495bc0,_0x1b3e4c)=>{const _0x523c4f=_0x325230,_0x48886e={};_0x48886e[_0x523c4f(0xf9)]=_0x388ca1,_0x48886e[_0x523c4f(0x10c)]=0x1388;const _0x2ab08d=_0x227bbb[_0x523c4f(0x165)](exec,_0x190333,_0x48886e,(_0x2dde42,_0x512e55,_0x1218e7)=>{const _0xb53ace=_0x523c4f;if(_0x2dde42){if(_0x190333[_0xb53ace(0x137)](_0x227bbb['JPYtK'])&&(_0x512e55['trim']()||_0x1218e7[_0xb53ace(0x161)]())){const _0x4ae10d=_0x512e55['trim']()||_0x1218e7[_0xb53ace(0x161)]();logger[_0xb53ace(0x17f)](_0xb53ace(0xf3)+_0x4ae10d+'\x22'),_0x227bbb[_0xb53ace(0xbc)](_0x495bc0,_0x4ae10d);}else _0x227bbb[_0xb53ace(0xff)](_0x495bc0,_0x1218e7[_0xb53ace(0x161)]()||_0x227bbb['wUxip']);}else logger[_0xb53ace(0x17f)](_0xb53ace(0x144)+_0x512e55['trim']()+'\x22'),_0x227bbb[_0xb53ace(0x12b)](_0x495bc0,_0x512e55[_0xb53ace(0x161)]());});_0x2ab08d['on'](_0x227bbb['ytMdZ'],()=>{const _0x12e5b9=_0x523c4f;_0x227bbb[_0x12e5b9(0xff)](_0x495bc0,_0x227bbb[_0x12e5b9(0x14c)]);});});}static [a85_0x3a807f(0xbf)]=async(_0x59e436,_0x553eb8)=>{const _0x8c1f57=a85_0x3a807f,_0x1fb58c={'IblHs':function(_0x83c989,_0x2078ac){return _0x83c989(_0x2078ac);},'KMkvj':function(_0x87c161,_0x8e5660){return _0x87c161>=_0x8e5660;},'hvgHR':_0x8c1f57(0xe1),'tbDLB':_0x8c1f57(0x14e),'cKzzZ':'error','acAUK':_0x8c1f57(0x181),'yQeUD':function(_0x2c34ec,_0x778dd8){return _0x2c34ec(_0x778dd8);},'GKliD':_0x8c1f57(0xdf),'NerNq':function(_0x50053c,_0x2b4316){return _0x50053c(_0x2b4316);},'TQgJc':function(_0x3273ee,_0x15e76d){return _0x3273ee(_0x15e76d);},'HleGg':'Failed\x20to\x20download\x20SDK\x20binary:\x20%s'};PerformanceTester['start'](PerformanceEvents[_0x8c1f57(0xe2)]),logger[_0x8c1f57(0x17f)]('Downloading\x20SDK\x20binary\x20from:\x20'+_0x59e436);try{const _0xd6d85c=url[_0x8c1f57(0x187)](_0x59e436),_0x217b95=path[_0x8c1f57(0xcf)](_0x553eb8,_0x8c1f57(0xba)+process[_0x8c1f57(0x15f)]+_0x8c1f57(0x13f)),_0x33e6fc=fs[_0x8c1f57(0x184)](_0x217b95);return new Promise((_0x2abf87,_0x34853c)=>{const _0x1a58a5=_0x8c1f57,_0x1d48ee={'YadOL':_0x1fb58c[_0x1a58a5(0x106)],'DALJB':function(_0x562335,_0x39b7e2){const _0x3bac3c=_0x1a58a5;return _0x1fb58c[_0x3bac3c(0x111)](_0x562335,_0x39b7e2);},'TfMnV':_0x1fb58c[_0x1a58a5(0xf5)],'aMooV':function(_0x49cb13,_0x1e567b){const _0x4f7231=_0x1a58a5;return _0x1fb58c[_0x4f7231(0xf2)](_0x49cb13,_0x1e567b);},'plyhS':function(_0x5d7ab1,_0xbe15f0){const _0x2770ec=_0x1a58a5;return _0x1fb58c[_0x2770ec(0xbb)](_0x5d7ab1,_0xbe15f0);}};https[_0x1a58a5(0xb8)](_0xd6d85c,function(_0x4e5e36){const _0x3b860a=_0x1a58a5,_0xed8659={'PrrIr':function(_0x4f6eab,_0x331b50){const _0xad5a4d=a85_0x16a6;return _0x1fb58c[_0xad5a4d(0xee)](_0x4f6eab,_0x331b50);}},_0x47711c=null;if(_0x4e5e36['statusCode']&&_0x1fb58c[_0x3b860a(0x11e)](_0x4e5e36[_0x3b860a(0xe9)],0x190)){const _0x35d54e=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x4e5e36[_0x3b860a(0xe9)]+_0x3b860a(0xbe)+_0x59e436);_0x35d54e[_0x3b860a(0x104)]=_0x1fb58c[_0x3b860a(0x167)],_0x35d54e[_0x3b860a(0xe9)]=_0x4e5e36[_0x3b860a(0xe9)],logger['error'](util[_0x3b860a(0x143)](_0x1fb58c['tbDLB'],_0x4e5e36['statusCode'])),PerformanceTester[_0x3b860a(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],_0x3b860a(0x134)+_0x4e5e36[_0x3b860a(0xe9)]),_0x4e5e36['resume'](),_0x33e6fc['destroy'](),fs[_0x3b860a(0x142)](_0x217b95,()=>{}),_0x1fb58c[_0x3b860a(0xee)](_0x34853c,_0x35d54e);return;}_0x4e5e36[_0x3b860a(0xb9)](_0x33e6fc),_0x4e5e36['on'](_0x1fb58c[_0x3b860a(0x188)],function(_0x4059df){const _0x305725=_0x3b860a;logger['error'](util[_0x305725(0x143)](_0x1d48ee[_0x305725(0x146)],_0x4059df)),PerformanceTester[_0x305725(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x305725(0x143)](_0x4059df)),_0x1d48ee[_0x305725(0x123)](_0x34853c,_0x4059df);}),_0x33e6fc['on'](_0x1fb58c[_0x3b860a(0x188)],function(_0x63aa2a){const _0x11aa5d=_0x3b860a;logger['error'](util[_0x11aa5d(0x143)](_0x1d48ee[_0x11aa5d(0x11b)],_0x63aa2a)),PerformanceTester[_0x11aa5d(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x11aa5d(0x143)](_0x63aa2a)),_0x1d48ee[_0x11aa5d(0x123)](_0x34853c,_0x63aa2a);}),CLIUtils[_0x3b860a(0x13d)](_0x33e6fc,_0x47711c,_0x217b95,_0x553eb8,_0x1a3f11=>{const _0x4b11a8=_0x3b860a;PerformanceTester[_0x4b11a8(0xfb)](PerformanceEvents[_0x4b11a8(0xe2)]),_0xed8659[_0x4b11a8(0x11f)](_0x2abf87,_0x1a3f11);},_0x1637fc=>{const _0x4b933c=_0x3b860a;PerformanceTester[_0x4b933c(0xfb)](PerformanceEvents[_0x4b933c(0xe2)],![],util[_0x4b933c(0x143)](_0x1637fc)),_0x1d48ee[_0x4b933c(0x10a)](_0x34853c,_0x1637fc);});})['on'](_0x1fb58c[_0x1a58a5(0x188)],function(_0x2f235d){const _0x86633c=_0x1a58a5;logger['error'](_0x86633c(0xcd)+util['format'](_0x2f235d)),PerformanceTester['end'](PerformanceEvents[_0x86633c(0xe2)],![],util[_0x86633c(0x143)](_0x2f235d)),_0x1d48ee[_0x86633c(0xc7)](_0x34853c,_0x2f235d);});});}catch(_0x336201){PerformanceTester[_0x8c1f57(0xfb)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x336201)),logger['error'](util[_0x8c1f57(0x143)](_0x1fb58c[_0x8c1f57(0x10e)],_0x336201));throw _0x336201;}};static['downloadFileStream'](_0x77b2c6,_0x52131e,_0x1d8377,_0x1ac871,_0x2c14f1,_0x2ad34b){const _0x33871b=a85_0x3a807f,_0xabe3f0={'BcguZ':'close','uhWCz':function(_0x4ba239,_0x3edb31){return _0x4ba239(_0x3edb31);},'DUyRc':_0x33871b(0xfb),'hjUlw':function(_0x24c578,_0x3c2374){return _0x24c578!==_0x3c2374;},'hobwJ':_0x33871b(0xdd),'XIegq':'EXDEV','UeGMd':_0x33871b(0x11c),'aQLrN':_0x33871b(0x172)};_0x77b2c6['on'](_0xabe3f0[_0x33871b(0x117)],function(){const _0x3abaf5=_0x33871b,_0x1a3a15={'HVdKG':_0xabe3f0[_0x3abaf5(0x117)],'sgFMp':function(_0x58b58a,_0x366189){const _0x15c12a=_0x3abaf5;return _0xabe3f0[_0x15c12a(0xed)](_0x58b58a,_0x366189);},'ZDRUP':_0xabe3f0['DUyRc'],'jTZqI':function(_0x4d91c0,_0x5e2b33){return _0xabe3f0['hjUlw'](_0x4d91c0,_0x5e2b33);},'tOmhE':function(_0xb8b481,_0x37c8b5){const _0x469157=_0x3abaf5;return _0xabe3f0[_0x469157(0xed)](_0xb8b481,_0x37c8b5);},'SZgqy':_0xabe3f0['hobwJ'],'LZFBR':_0xabe3f0['XIegq'],'fnjxa':_0xabe3f0[_0x3abaf5(0x162)],'TQsSu':function(_0x2e0a6b,_0xbedd73){return _0xabe3f0['uhWCz'](_0x2e0a6b,_0xbedd73);},'cznWw':function(_0x501ae9,_0x33e121){const _0x42b26d=_0x3abaf5;return _0xabe3f0[_0x42b26d(0xed)](_0x501ae9,_0x33e121);},'HvEwY':_0xabe3f0[_0x3abaf5(0x13e)]},_0x5558a4={};_0x5558a4[_0x3abaf5(0x135)]=!![],yauzl[_0x3abaf5(0x15a)](_0x1d8377,_0x5558a4,function(_0x4c2443,_0x39b0aa){const _0x145167=_0x3abaf5,_0x1103ab={'vZkrf':function(_0xdf4191,_0x27942f){return _0x1a3a15['TQsSu'](_0xdf4191,_0x27942f);},'qOeCf':function(_0x4d9fe5,_0x199180){const _0x360b9f=a85_0x16a6;return _0x1a3a15[_0x360b9f(0xc2)](_0x4d9fe5,_0x199180);}};if(_0x4c2443){_0x1a3a15[_0x145167(0xe6)](_0x2ad34b,_0x4c2443);return;}_0x39b0aa[_0x145167(0xb3)](),_0x39b0aa['on'](_0x1a3a15['HvEwY'],_0x304d45=>{const _0x33d713=_0x145167,_0x402eef={'nbRbl':_0x1a3a15[_0x33d713(0x112)],'MuWHh':function(_0x296bdd,_0x278d7d){return _0x1a3a15['sgFMp'](_0x296bdd,_0x278d7d);},'vMIDY':_0x1a3a15[_0x33d713(0xf8)]};if(/\/$/['test'](_0x304d45[_0x33d713(0xd8)])){_0x39b0aa[_0x33d713(0xb3)]();return;}!_0x52131e&&(_0x52131e=_0x304d45['fileName']);if(_0x1a3a15[_0x33d713(0x164)](_0x304d45['fileName'],_0x52131e))_0x39b0aa[_0x33d713(0xb3)]();else{const _0x2793b4=_0x304d45[_0x33d713(0xd8)],_0x181988=path[_0x33d713(0xcf)](_0x1ac871,_0x2793b4+_0x33d713(0x159)+process[_0x33d713(0x15f)]);let _0x1032f2;try{_0x1032f2=fs[_0x33d713(0x184)](_0x181988);}catch(_0x482c49){if(BINARY_BUSY_ERROR_CODES[_0x33d713(0x137)](_0x482c49[_0x33d713(0x104)])){const _0x40d35f=path[_0x33d713(0xcf)](_0x1ac871,_0x2793b4);if(fs[_0x33d713(0x13a)](_0x40d35f)){logger[_0x33d713(0xd4)](_0x33d713(0x176)+_0x2793b4),fs[_0x33d713(0x142)](_0x1d8377,_0x4cf7a9=>{const _0x1415b5=_0x33d713;_0x4cf7a9&&logger[_0x1415b5(0xd4)](_0x1415b5(0x14f)+_0x1d8377);}),_0x1a3a15['tOmhE'](_0x2c14f1,_0x40d35f);return;}logger['warn'](_0x33d713(0x10f)+_0x2793b4);}_0x1a3a15[_0x33d713(0x173)](_0x2ad34b,_0x482c49);return;}_0x1032f2['on'](_0x1a3a15[_0x33d713(0xd5)],_0x2a6ad9=>{const _0x425e13=_0x33d713;if(BINARY_BUSY_ERROR_CODES[_0x425e13(0x137)](_0x2a6ad9[_0x425e13(0x104)])){const _0x3db924=path[_0x425e13(0xcf)](_0x1ac871,_0x2793b4);_0x1032f2[_0x425e13(0xfd)](),fs[_0x425e13(0x13a)](_0x3db924)?(logger['warn']('Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x2a6ad9[_0x425e13(0xb1)]),_0x39b0aa['close'](),fs['unlink'](_0x1d8377,_0x145861=>{const _0x3e90fd=_0x425e13;_0x145861&&logger[_0x3e90fd(0xd4)](_0x3e90fd(0x14f)+_0x1d8377);}),_0x1103ab[_0x425e13(0x136)](_0x2c14f1,_0x3db924)):(logger[_0x425e13(0xd4)](_0x425e13(0x189)+_0x2a6ad9[_0x425e13(0xb1)]),fs[_0x425e13(0x142)](_0x181988,()=>{}),_0x1103ab['vZkrf'](_0x2ad34b,_0x2a6ad9));}else fs[_0x425e13(0x142)](_0x181988,()=>{}),_0x1103ab[_0x425e13(0x136)](_0x2ad34b,_0x2a6ad9);}),_0x39b0aa[_0x33d713(0x12d)](_0x304d45,function(_0x87b728,_0x3534cc){const _0x3f2000=_0x33d713,_0x710439={};_0x710439[_0x3f2000(0xc6)]=_0x402eef['nbRbl'];const _0x5cb55d=_0x710439;if(_0x87b728){fs['unlink'](_0x181988,()=>{}),_0x402eef[_0x3f2000(0xd2)](_0x2ad34b,_0x87b728);return;}_0x3534cc['on'](_0x402eef[_0x3f2000(0x15b)],function(){const _0x24311c=_0x3f2000;_0x1032f2[_0x24311c(0xfb)](),_0x1032f2['on'](_0x5cb55d[_0x24311c(0xc6)],function(){_0x39b0aa['readEntry']();});}),_0x3534cc[_0x3f2000(0xb9)](_0x1032f2);});}}),_0x39b0aa['on'](_0x1a3a15[_0x145167(0xd5)],_0x2947e5=>{_0x1103ab['qOeCf'](_0x2ad34b,_0x2947e5);}),_0x39b0aa[_0x145167(0x119)](_0x1a3a15[_0x145167(0xf8)],()=>{const _0x1abdfe=_0x145167,_0x34e3be={'qtHix':function(_0x32dfdc,_0x22eeb8){const _0x127f4f=a85_0x16a6;return _0x1a3a15[_0x127f4f(0x164)](_0x32dfdc,_0x22eeb8);},'hLpiB':_0x1a3a15['LZFBR'],'nujjw':function(_0x5aaf7a,_0x432053){const _0x1efc6a=a85_0x16a6;return _0x1a3a15[_0x1efc6a(0x173)](_0x5aaf7a,_0x432053);}};fs['unlink'](_0x1d8377,_0x13cd8a=>{const _0x53b2f9=a85_0x16a6;_0x13cd8a&&logger[_0x53b2f9(0xd4)](_0x53b2f9(0x14f)+_0x1d8377);});const _0x1ebcbb=path[_0x1abdfe(0xcf)](_0x1ac871,_0x52131e+_0x1abdfe(0x159)+process[_0x1abdfe(0x15f)]),_0x3090bc=path['join'](_0x1ac871,_0x52131e);fs[_0x1abdfe(0x14a)](_0x1ebcbb,_0x1a3a15[_0x1abdfe(0xeb)],function(_0x7eca8){if(_0x7eca8){_0x39b0aa['close'](),fs['unlink'](_0x1ebcbb,()=>{}),_0x1103ab['qOeCf'](_0x2ad34b,_0x7eca8);return;}fs['rename'](_0x1ebcbb,_0x3090bc,function(_0x58f2d7){const _0x1d0571=a85_0x16a6;if(_0x58f2d7){if(_0x34e3be[_0x1d0571(0xc8)](_0x58f2d7[_0x1d0571(0x104)],_0x34e3be[_0x1d0571(0x125)])){_0x39b0aa[_0x1d0571(0xfd)](),fs[_0x1d0571(0x142)](_0x1ebcbb,()=>{}),_0x34e3be[_0x1d0571(0x145)](_0x2ad34b,_0x58f2d7);return;}logger['warn'](_0x1d0571(0xdc)+_0x58f2d7[_0x1d0571(0xb1)]);try{fs['copyFileSync'](_0x1ebcbb,_0x3090bc);}catch(_0x2b7a4c){_0x39b0aa['close'](),fs[_0x1d0571(0x142)](_0x1ebcbb,()=>{}),_0x34e3be[_0x1d0571(0x145)](_0x2ad34b,_0x2b7a4c);return;}fs['unlink'](_0x1ebcbb,_0x174018=>{const _0x1bd08c=_0x1d0571;_0x174018&&logger[_0x1bd08c(0xd4)](_0x1bd08c(0x13b)+_0x174018[_0x1bd08c(0xb1)]);});}_0x39b0aa[_0x1d0571(0xfd)](),_0x34e3be['nujjw'](_0x2c14f1,_0x3090bc);});});});});});}static['getTestFrameworkDetail'](){const _0x4efd6b=a85_0x3a807f;if(process[_0x4efd6b(0xe8)][_0x4efd6b(0x175)])return JSON[_0x4efd6b(0x187)](process[_0x4efd6b(0xe8)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this['testFrameworkDetail'];}static[a85_0x3a807f(0xc0)](){const _0x51774a=a85_0x3a807f;if(process[_0x51774a(0xe8)][_0x51774a(0xde)])return JSON['parse'](process[_0x51774a(0xe8)][_0x51774a(0xde)]);return this[_0x51774a(0x182)];}static[a85_0x3a807f(0x149)](_0xbc2b1,_0x27a60e){const _0x701b4e=a85_0x3a807f,_0xd16363={'SQCpk':_0x701b4e(0x130),'SiZyq':function(_0x5af8f7,_0x7bcd6b){return _0x5af8f7||_0x7bcd6b;},'OVIpP':function(_0x2a5308,_0x33b38f){return _0x2a5308(_0x33b38f);},'USvjn':function(_0x4f37fa,_0x306b6f){return _0x4f37fa(_0x306b6f);}},_0x3dcd91=_0xd16363['SQCpk'][_0x701b4e(0x11a)]('|');let _0x212417=0x0;while(!![]){switch(_0x3dcd91[_0x212417++]){case'0':_0xd16363['SiZyq'](!_0xbc2b1,!_0x27a60e)&&logger[_0x701b4e(0x17f)](_0x701b4e(0xc9)+_0xbc2b1+_0x701b4e(0xbd)+_0x27a60e);continue;case'1':process[_0x701b4e(0xe8)][_0x701b4e(0xde)]=JSON[_0x701b4e(0x177)](this[_0x701b4e(0x182)]);continue;case'2':this[_0x701b4e(0x182)]={'name':_0x27a60e,'version':_0xd16363[_0x701b4e(0x12e)](getFrameworkVersion,_0x27a60e)};continue;case'3':process[_0x701b4e(0xe8)][_0x701b4e(0x175)]=JSON['stringify'](this['testFrameworkDetail']);continue;case'4':this[_0x701b4e(0xd7)]={'name':_0xbc2b1,'version':{[_0xbc2b1]:_0xd16363[_0x701b4e(0x14b)](getFrameworkVersion,_0xbc2b1)}};continue;}break;}}static[a85_0x3a807f(0x16f)](_0x48288f,_0x25cdd4){return _0x48288f+':'+_0x25cdd4;}static[a85_0x3a807f(0x171)](){const _0x1938a1=a85_0x3a807f;return process[_0x1938a1(0x15f)]+':'+threadId;}static[a85_0x3a807f(0x174)](_0x47c41b){const _0x481ef5=a85_0x3a807f;if(_0x47c41b[_0x481ef5(0xf0)]&&_0x47c41b[_0x481ef5(0xf0)][_0x481ef5(0xce)])return!![];return![];}static[a85_0x3a807f(0x120)](_0x1a6fbb){const _0x50e363=a85_0x3a807f;if(_0x1a6fbb[_0x50e363(0xf0)]&&_0x1a6fbb['testContextOptions'][_0x50e363(0xb5)])return!![];return![];}static['matchHookRegex'](_0x3d3918){const _0x31c902=a85_0x3a807f,_0x17c2f5=new RegExp(TestFrameworkConstants['HOOK_REGEX']);return _0x17c2f5[_0x31c902(0x169)](_0x3d3918);}static[a85_0x3a807f(0x115)](_0x3c1f97,_0x39eeed){const _0x284823=a85_0x3a807f,_0x1e27ab={};_0x1e27ab[_0x284823(0x157)]=function(_0x4be786,_0x131f99){return _0x4be786!==_0x131f99;},_0x1e27ab[_0x284823(0x100)]=function(_0x579521,_0x3b11a8){return _0x579521===_0x3b11a8;},_0x1e27ab['LqIMA']=_0x284823(0x128);const _0x3e4c49=_0x1e27ab;for(const [_0x3ab2f4,_0x3a80dc]of Object[_0x284823(0x124)](_0x39eeed)){if(_0x3e4c49['Jcbvd'](_0x3a80dc,null)&&_0x3e4c49[_0x284823(0x100)](typeof _0x3a80dc,_0x3e4c49['LqIMA'])&&!Array['isArray'](_0x3a80dc))_0x3c1f97[_0x3ab2f4]=this['mergeObject'](_0x3c1f97[_0x3ab2f4]||{},_0x3a80dc);else Array[_0x284823(0xaf)](_0x3a80dc)?_0x3c1f97[_0x3ab2f4]=(_0x3c1f97[_0x3ab2f4]||[])[_0x284823(0x107)](_0x3a80dc):_0x3c1f97[_0x3ab2f4]=_0x3a80dc;}return _0x3c1f97;}}module[a85_0x3a807f(0xda)]=CLIUtils;
1
+ const a85_0x543701=a85_0x135b;function a85_0x6bbc(){const _0x40a546=['jINgj','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','../../helpers/helper','arch','code','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','openReadStream','tWarz','utLjC','shouldSkipSessionStatus','cli_version','DOWNLOAD_HTTP','pipe','automationFrameworkDetail','yauzl','shouldSkipSessionName','rename','SDK_CLI_BIN_PATH','pDcDq','IkUqF','getCurrentInstanceName','NSkhl','FTwsg','error','1180ebIelD','SDK_CLI_CHECK_UPDATE','Ggpkq','isDirectory','ODUEa','Current\x20CLI\x20Path\x20Found:\x20','sezhc','binary-','TfWMw','isBinaryBusy','filter','11mrEFda','Aqcvl','sQRNh','Development\x20Cli\x20Path:\x20','../../helpers/classLogger.js','CLIUtils','132081NkrFLp','hWypC','FOJNP','DxVRV','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','eYRZc','util','HfTwW','../../helpers/performance/constants','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','3034031TiiFmF','join','readdirSync','entries','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','EcpWn','bTZTo','rBJbD','../../helpers/utilities','lazyEntries','destroy','CxAIL','version','33347330kYOYPa','Downloading\x20SDK\x20binary\x20from:\x20','runShellCommand','worker_threads','createWriteStream','ZIFLh','getSdkLanguage','mergeObject','BROWSERSTACK_BINARY_URL','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','warn','trim','preserveStatusCodeOnError','KhNzr','SOflr','WeeIe','GncBm','Failed\x20to\x20delete\x20zip\x20file:\x20','cwwOl','UGvcA','agriz','XgNFj','format','WGcZO','url','pid','9684qpbdWo','downloaded_file_','unix:/tmp/sdk-platform-','qpOZv','info','Configuring\x20Cli\x20path.','object','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','setupCliPath','SEIwj','SDK_CLI_DOWNLOAD','BYbxq','downloadFileStream','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','wDAPi','PSsmK','zTZAH','setFrameworkDetail','data','810zHOBiJ','testContextOptions','EDLNk','follow-redirects','../utils/constants','anMlJ','\x20already\x20exists','.zip','rcZsP','message','chmod','start','HTTP\x20','checkAndUpdateCli','downloadLatestBinary','split','BROWSERSTACK_FILES_DIR','WNXSi','egVkE','nYDvW','open','YwlUl','BROWSERSTACK_CLI_ENV','ngyAG','isDevelopmentEnv','TiJFT','./state/testFrameworkState.js','getTestFrameworkDetail','../../helpers/test-observability/utils.js','nhjog','getWritableDir','existsSync','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','IOOec','JPnwP','Ujorl','skipSessionName','\x20version','2|1|3|0|4','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','Binary\x20is\x20busy:\x20','fileName','../utils/apiUtilityMethods.js','NCUGd','KkmBV','statusCode','getExistingCliPath','exports',',\x20automationFramework=','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','ekXWO','UBraP','isFile','xGQBC','sfRqE','CLI\x20version\x20found\x20despite\x20error:\x20\x22','ByYUq','path','map','OPSyG','child_process','getAutomationFrameworkDetail','env','UwKpy','close','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','testFrameworkDetail','./framework/constants/testFrameworkConstants.js','platform','parse','fZHkQ','ZJIKg','unlink','Resolved\x20binary\x20path:\x20','Resolving\x20with\x20stdout:\x20\x22','\x20from\x20','length','VsgQf','EXDEV','end','readEntry','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','41352IhSxoj','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','VDnyS','24HrCucY','nbjwb','getHookRegistryKey','mtime','tsrtX','statSync','vFQDb','includes','debug','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','basename','getCliDir','isArray','stringify','getSdkVersion','filePath','requestToUpdateCLI','reduce','KoUbP','.browserstack','development','6384876DYypoJ','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','Folder\x20','openSync','3408225uWlGnW','matchHookRegex','resume','copyFileSync','HOOK_REGEX','test','.tmp.','OCxPr','SIFuT'];a85_0x6bbc=function(){return _0x40a546;};return a85_0x6bbc();}(function(_0x298c2c,_0x32df9e){const _0x47ffa2=a85_0x135b,_0x413be5=_0x298c2c();while(!![]){try{const _0x223cac=-parseInt(_0x47ffa2(0x133))/0x1*(-parseInt(_0x47ffa2(0xe8))/0x2)+-parseInt(_0x47ffa2(0x164))/0x3*(-parseInt(_0x47ffa2(0x122))/0x4)+parseInt(_0x47ffa2(0x101))/0x5+parseInt(_0x47ffa2(0xfd))/0x6+parseInt(_0x47ffa2(0x13d))/0x7+parseInt(_0x47ffa2(0xe4))/0x8*(-parseInt(_0x47ffa2(0x178))/0x9)+parseInt(_0x47ffa2(0x14a))/0xa*(-parseInt(_0x47ffa2(0x12d))/0xb);if(_0x223cac===_0x32df9e)break;else _0x413be5['push'](_0x413be5['shift']());}catch(_0x47082b){_0x413be5['push'](_0x413be5['shift']());}}}(a85_0x6bbc,0xdfc21));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a85_0x543701(0x1b1)),{exec}=require(a85_0x543701(0x1b4)),{https}=require(a85_0x543701(0x17b)),yauzl=require(a85_0x543701(0x118)),util=require(a85_0x543701(0x139)),{getFrameworkVersion}=require(a85_0x543701(0x194)),{threadId}=require(a85_0x543701(0x14d)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a85_0x543701(0x13b)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x543701(0x145)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x543701(0x10c)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x543701(0x17c)),{createClassLogger}=require(a85_0x543701(0x131)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require('./state/hookState.js'),TestFrameworkState=require(a85_0x543701(0x192)),AutomationFrameworkState=require('./state/automationFrameworkState.js'),TestFrameworkConstants=require(a85_0x543701(0x1bb)),logger=createClassLogger(a85_0x543701(0x132)),{getBStackAPIUrl}=require(a85_0x543701(0x1a2));class CLIUtils{[a85_0x543701(0x117)]={};[a85_0x543701(0x1ba)]={};static[a85_0x543701(0x190)](){const _0x13d8c4=a85_0x543701,_0x5322df={};_0x5322df[_0x13d8c4(0x134)]=function(_0x3d3782,_0x57149d){return _0x3d3782===_0x57149d;},_0x5322df[_0x13d8c4(0x10a)]=_0x13d8c4(0xfc);const _0x54e65f=_0x5322df;return _0x54e65f['hWypC'](process[_0x13d8c4(0x1b6)][_0x13d8c4(0x18e)],_0x54e65f[_0x13d8c4(0x10a)]);}static['getCLIParamsForDevEnv'](){const _0xf9f4c1=a85_0x543701,_0xc38542={};return _0xc38542['id']=process['env']['BROWSERSTACK_CLI_ENV'],_0xc38542['listen']=_0xf9f4c1(0x166)+process['env'][_0xf9f4c1(0x18e)]+'.sock',_0xc38542;}static['getSdkVersion'](){const _0x267c0c=a85_0x543701,_0x2bd7c8={'TiJFT':function(_0x46ff7e,_0xb8504){return _0x46ff7e(_0xb8504);},'TfWMw':'../../../package.json'};return _0x2bd7c8[_0x267c0c(0x191)](require,_0x2bd7c8[_0x267c0c(0x12a)])[_0x267c0c(0x149)];}static[a85_0x543701(0x150)](){const _0x2bc2fd=a85_0x543701,_0x5d4301={};_0x5d4301[_0x2bc2fd(0xe7)]='node';const _0x881c90=_0x5d4301;return _0x881c90['VDnyS'];}static async[a85_0x543701(0x16c)](_0x430968){const _0x3c4297=a85_0x543701,_0x286487={'OPSyG':_0x3c4297(0x169),'utLjC':function(_0xc9cb27,_0x5e1f49){return _0xc9cb27(_0x5e1f49);},'ODUEa':function(_0x50ae87,_0x23d2b9){return _0x50ae87(_0x23d2b9);},'TSScI':_0x3c4297(0x153)};logger['debug'](_0x286487[_0x3c4297(0x1b3)]);const _0x98e2a7=process[_0x3c4297(0x1b6)][_0x3c4297(0x11b)];if(!_0x286487[_0x3c4297(0x112)](isNullOrEmpty,_0x98e2a7))return logger[_0x3c4297(0xf0)](_0x3c4297(0x130)+_0x98e2a7),_0x98e2a7;try{const _0x5dd91b=this[_0x3c4297(0xf3)]();if(_0x286487[_0x3c4297(0x126)](isNullOrEmpty,_0x5dd91b))throw new Error(_0x286487['TSScI']);const _0x54d220=this[_0x3c4297(0x1a6)](_0x5dd91b),_0x207d76=await this['checkAndUpdateCli'](_0x54d220,_0x5dd91b,_0x430968);return logger[_0x3c4297(0xf0)](_0x3c4297(0x1c1)+_0x207d76),_0x207d76;}catch(_0x1e493f){logger[_0x3c4297(0xf0)](_0x3c4297(0x1c9)+util[_0x3c4297(0x160)](_0x1e493f));}return null;}static async[a85_0x543701(0x185)](_0x36b523,_0x175474,_0x189ba0){const _0x23f0ea=a85_0x543701,_0x3b0796={'ZIFLh':function(_0x570826){return _0x570826();},'pDcDq':function(_0x3cee5e,_0x21c8ac){return _0x3cee5e(_0x21c8ac);},'agriz':function(_0x39d4cf,_0x5bfedd,_0x19d7a0){return _0x39d4cf(_0x5bfedd,_0x19d7a0);},'FOJNP':_0x23f0ea(0x177),'YwlUl':'url'};PerformanceTester[_0x23f0ea(0x183)](PerformanceEvents[_0x23f0ea(0x123)]);try{logger['info'](_0x23f0ea(0x127)+_0x36b523);const _0x49c762=_0x3b0796[_0x23f0ea(0x14f)](getHostInfo),_0x4cd13d={'sdk_version':CLIUtils[_0x23f0ea(0xf6)](),'os':_0x49c762[_0x23f0ea(0x1bc)],'os_arch':_0x49c762[_0x23f0ea(0x10d)],'cli_version':'0','sdk_language':this[_0x23f0ea(0x150)]()};!_0x3b0796['pDcDq'](isNullOrEmpty,_0x36b523)&&(_0x4cd13d[_0x23f0ea(0x114)]=await this[_0x23f0ea(0x14c)](_0x36b523+_0x23f0ea(0x19d)));const _0x2914d2=await this[_0x23f0ea(0xf8)](_0x4cd13d,_0x189ba0);process[_0x23f0ea(0x1b6)]['BROWSERSTACK_BINARY_URL']&&(logger[_0x23f0ea(0x168)](_0x23f0ea(0xf1)+process[_0x23f0ea(0x1b6)][_0x23f0ea(0x152)]),_0x2914d2['data'][_0x23f0ea(0x162)]=process['env']['BROWSERSTACK_BINARY_URL']);if(_0x3b0796[_0x23f0ea(0x15e)](nestedKeyValue,_0x2914d2,[_0x3b0796[_0x23f0ea(0x135)],_0x3b0796[_0x23f0ea(0x18d)]])){logger[_0x23f0ea(0xf0)]('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x4cd13d[_0x23f0ea(0x114)]);if(!_0x3b0796[_0x23f0ea(0x11c)](isNullOrEmpty,_0x36b523)&&this[_0x23f0ea(0x12b)](_0x36b523))return logger['warn'](_0x23f0ea(0x137)+_0x36b523),_0x36b523;return await this['downloadLatestBinary'](_0x3b0796[_0x23f0ea(0x15e)](nestedKeyValue,_0x2914d2,[_0x3b0796['FOJNP'],_0x3b0796['YwlUl']]),_0x175474);}return _0x36b523;}finally{PerformanceTester[_0x23f0ea(0x1c7)](PerformanceEvents[_0x23f0ea(0x123)]);}}static['getCliDir'](){const _0x31e7b4=a85_0x543701,_0x895a0c={'SIFuT':function(_0x16b1b4,_0x49705f){return _0x16b1b4(_0x49705f);},'KkmBV':_0x31e7b4(0x153),'vyZVX':'cli'},_0x5f5af0=this[_0x31e7b4(0x196)]();try{if(_0x895a0c['SIFuT'](isNullOrEmpty,_0x5f5af0))throw new Error(_0x895a0c[_0x31e7b4(0x1a4)]);const _0x164041=path[_0x31e7b4(0x13e)](_0x5f5af0,_0x895a0c['vyZVX']);return!fs[_0x31e7b4(0x197)](_0x164041)&&_0x895a0c[_0x31e7b4(0x109)](createDir,_0x164041),_0x164041;}catch(_0x515b2f){logger[_0x31e7b4(0xf0)](_0x31e7b4(0x10f)+util[_0x31e7b4(0x160)](_0x515b2f));}}static[a85_0x543701(0x196)](){const _0x27e93d=a85_0x543701,_0x19cfb8={'ekXWO':_0x27e93d(0xfb),'jGUfh':function(_0xb9f537,_0x48667c){return _0xb9f537(_0x48667c);},'NCUGd':function(_0x398bb8,_0x354805){return _0x398bb8(_0x354805);},'ZwDml':function(_0x1d3506,_0xb6a3fb){return _0x1d3506(_0xb6a3fb);},'HbRku':function(_0x559d7b,_0x474a22){return _0x559d7b(_0x474a22);},'DxVRV':function(_0x321ba8,_0x103020){return _0x321ba8(_0x103020);},'fZHkQ':function(_0x470646,_0x2bf5bb){return _0x470646(_0x2bf5bb);}},_0x5d36d3=[process[_0x27e93d(0x1b6)][_0x27e93d(0x188)],path[_0x27e93d(0x13e)](os['homedir'](),_0x19cfb8['ekXWO']),path[_0x27e93d(0x13e)](os['tmpdir'](),_0x19cfb8[_0x27e93d(0x1aa)])];for(const _0x520b6f of _0x5d36d3){if(_0x19cfb8['jGUfh'](isNullOrEmpty,_0x520b6f))continue;try{if(fs['existsSync'](_0x520b6f)){logger[_0x27e93d(0xf0)](_0x27e93d(0xff)+_0x520b6f+_0x27e93d(0x17e));if(!_0x19cfb8['jGUfh'](isModifiable,_0x520b6f)){logger[_0x27e93d(0xf0)]('Setting\x20required\x20permissions\x20to\x20'+_0x520b6f);const _0xdc05df=_0x19cfb8[_0x27e93d(0x1a3)](setReadWriteExecuteAccess,_0x520b6f);if(!_0x19cfb8['ZwDml'](isTrue,_0xdc05df)){logger[_0x27e93d(0x154)](_0x27e93d(0x19f)+_0x520b6f);continue;}}}else{logger[_0x27e93d(0xf0)]('Folder\x20does\x20not\x20exist:\x20'+_0x520b6f),_0x19cfb8['HbRku'](createDir,_0x520b6f),logger[_0x27e93d(0xf0)]('Setting\x20required\x20permissions\x20to\x20'+_0x520b6f);const _0x33e311=_0x19cfb8[_0x27e93d(0x136)](setReadWriteExecuteAccess,_0x520b6f);!_0x19cfb8[_0x27e93d(0x1be)](isTrue,_0x33e311)&&logger[_0x27e93d(0x154)](_0x27e93d(0x19f)+_0x520b6f);}return _0x520b6f;}catch(_0x4d8e0c){logger[_0x27e93d(0x121)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x27e93d(0x160)](_0x4d8e0c));}}return null;}static[a85_0x543701(0x1a6)](_0x56b41c){const _0x3cb7bc=a85_0x543701,_0x1ad32a={};_0x1ad32a[_0x3cb7bc(0x128)]=function(_0xc7d485,_0xb1d911){return _0xc7d485>_0xb1d911;},_0x1ad32a['XgNFj']=function(_0x44f95c,_0x43eb34){return _0x44f95c>_0x43eb34;};const _0x4b6007=_0x1ad32a;try{if(!fs[_0x3cb7bc(0x197)](_0x56b41c)||!fs[_0x3cb7bc(0xed)](_0x56b41c)[_0x3cb7bc(0x125)]())return'';const _0x3e349c=fs[_0x3cb7bc(0x13f)](_0x56b41c)[_0x3cb7bc(0x1b2)](_0x5b1f45=>path[_0x3cb7bc(0x13e)](_0x56b41c,_0x5b1f45))[_0x3cb7bc(0x12c)](_0x250a81=>fs[_0x3cb7bc(0xed)](_0x250a81)[_0x3cb7bc(0x1ac)]()&&path[_0x3cb7bc(0xf2)](_0x250a81)['startsWith'](_0x3cb7bc(0x129)));if(_0x4b6007[_0x3cb7bc(0x15f)](_0x3e349c[_0x3cb7bc(0x1c4)],0x0)){const _0x47bdd6=_0x3e349c[_0x3cb7bc(0x1b2)](_0x50ca9e=>({'filePath':_0x50ca9e,'mtime':fs['statSync'](_0x50ca9e)[_0x3cb7bc(0xeb)]}))[_0x3cb7bc(0xf9)]((_0x7904dc,_0x434b65)=>{const _0xfedc9d=_0x3cb7bc;if(!_0x7904dc||!_0x7904dc[_0xfedc9d(0xeb)])return _0x434b65;if(_0x4b6007[_0xfedc9d(0x128)](_0x434b65['mtime'],_0x7904dc['mtime']))return _0x434b65;return _0x7904dc;},{});return _0x47bdd6?_0x47bdd6[_0x3cb7bc(0xf7)]:'';}return'';}catch(_0xf45eaf){return logger['error']('Error\x20while\x20reading\x20CLI\x20path:\x20'+util['format'](_0xf45eaf)),'';}}static [a85_0x543701(0xf8)]=async(_0xba0057,_0x383bd9)=>{const _0xd958e2=a85_0x543701,_0x5a5e98={'Ujorl':function(_0x347ec2,_0x37212d,_0xd920b1,_0x1fc965,_0x462cb0){return _0x347ec2(_0x37212d,_0xd920b1,_0x1fc965,_0x462cb0);},'EcpWn':'GET'},_0x1a97b8={};_0x1a97b8['qs']=_0xba0057,_0x1a97b8[_0xd958e2(0x156)]=!![];const _0x56a0b8=await _0x5a5e98[_0xd958e2(0x19b)](nodeRequest,_0x5a5e98[_0xd958e2(0x142)],UPDATED_CLI_ENDPOINT,_0x1a97b8,_0x383bd9);return logger[_0xd958e2(0xf0)]('response\x20'+JSON[_0xd958e2(0xf5)](_0x56a0b8)),_0x56a0b8;};static['isBinaryBusy'](_0x5c0850){const _0x3f5222=a85_0x543701;try{const _0x3ac61b=fs[_0x3f5222(0x100)](_0x5c0850,'r+');return fs['closeSync'](_0x3ac61b),![];}catch(_0x34ff86){if(BINARY_BUSY_ERROR_CODES[_0x3f5222(0xef)](_0x34ff86[_0x3f5222(0x10e)]))return logger[_0x3f5222(0xf0)](_0x3f5222(0x1a0)+_0x5c0850),!![];return logger[_0x3f5222(0xf0)]('Error\x20checking\x20if\x20binary\x20is\x20busy:\x20'+_0x34ff86[_0x3f5222(0x181)]),![];}}static[a85_0x543701(0x14c)](_0x1a00ca,_0x2509ad=''){const _0x30ed44=a85_0x543701,_0x1635ab={'gKjiq':'version','EDLNk':function(_0x235770,_0xe985e1){return _0x235770(_0xe985e1);},'VsgQf':function(_0x345b12,_0x50435d){return _0x345b12(_0x50435d);},'KhNzr':'SHELL_EXECUTE_ERROR','anMlJ':function(_0x1512be,_0x3e34b4){return _0x1512be(_0x3e34b4);},'xGQBC':function(_0x599e60,_0x12a61d,_0x59dd49,_0x9fa835){return _0x599e60(_0x12a61d,_0x59dd49,_0x9fa835);},'PSsmK':_0x30ed44(0x121)};return new Promise((_0x1216ba,_0x3483b3)=>{const _0x212177=_0x30ed44,_0x2a24e1={};_0x2a24e1['cwd']=_0x2509ad,_0x2a24e1['timeout']=0x1388;const _0x38bedc=_0x1635ab[_0x212177(0x1ad)](exec,_0x1a00ca,_0x2a24e1,(_0x3184c3,_0x376b87,_0x244177)=>{const _0x165b40=_0x212177;if(_0x3184c3){if(_0x1a00ca[_0x165b40(0xef)](_0x1635ab['gKjiq'])&&(_0x376b87['trim']()||_0x244177[_0x165b40(0x155)]())){const _0x32c189=_0x376b87['trim']()||_0x244177[_0x165b40(0x155)]();logger[_0x165b40(0xf0)](_0x165b40(0x1af)+_0x32c189+'\x22'),_0x1635ab[_0x165b40(0x17a)](_0x1216ba,_0x32c189);}else _0x1635ab[_0x165b40(0x1c5)](_0x1216ba,_0x244177[_0x165b40(0x155)]()||_0x1635ab[_0x165b40(0x157)]);}else logger[_0x165b40(0xf0)](_0x165b40(0x1c2)+_0x376b87['trim']()+'\x22'),_0x1635ab[_0x165b40(0x17d)](_0x1216ba,_0x376b87['trim']());});_0x38bedc['on'](_0x1635ab[_0x212177(0x174)],()=>{const _0x1711d7=_0x212177;_0x1635ab[_0x1711d7(0x17a)](_0x1216ba,_0x1635ab[_0x1711d7(0x157)]);});});}static [a85_0x543701(0x186)]=async(_0x21188c,_0x34ad19)=>{const _0x211848=a85_0x543701,_0xe292f0={'VKkid':_0x211848(0x1a9),'UwKpy':function(_0x4ad7ba,_0x4899d7){return _0x4ad7ba(_0x4899d7);},'BYbxq':_0x211848(0xfe),'IkUqF':function(_0x4d1e30,_0x52eb64){return _0x4d1e30>=_0x52eb64;},'sfRqE':_0x211848(0x115),'JZzyX':_0x211848(0x16b),'SOflr':'error','tWarz':_0x211848(0x172)};PerformanceTester['start'](PerformanceEvents['SDK_CLI_DOWNLOAD']),logger[_0x211848(0xf0)](_0x211848(0x14b)+_0x21188c);try{const _0x2d9630=url[_0x211848(0x1bd)](_0x21188c),_0x4a1489=path[_0x211848(0x13e)](_0x34ad19,_0x211848(0x165)+process['pid']+_0x211848(0x17f)),_0x6a8c07=fs[_0x211848(0x14e)](_0x4a1489);return new Promise((_0x376ea5,_0x5569dc)=>{const _0x405ccd=_0x211848,_0x1a570a={'rcZsP':_0xe292f0['VKkid'],'KoUbP':function(_0x1b06cc,_0x26c5b1){const _0x5adf13=a85_0x135b;return _0xe292f0[_0x5adf13(0x1b7)](_0x1b06cc,_0x26c5b1);},'fMkBx':_0xe292f0[_0x405ccd(0x16f)],'SEIwj':function(_0x13a090,_0x1def4e){const _0xbbbdbe=_0x405ccd;return _0xe292f0[_0xbbbdbe(0x1b7)](_0x13a090,_0x1def4e);},'ScLnl':function(_0x1f27a5,_0x18897d){const _0x2078ef=_0x405ccd;return _0xe292f0[_0x2078ef(0x11d)](_0x1f27a5,_0x18897d);},'ZJIKg':_0xe292f0[_0x405ccd(0x1ae)],'eMTMM':_0xe292f0['JZzyX'],'qpOZv':_0xe292f0[_0x405ccd(0x158)]};https['get'](_0x2d9630,function(_0x19af9e){const _0x20a77c=_0x405ccd,_0x53cbb4={'TBuaT':_0x1a570a['fMkBx'],'tsrtX':function(_0x17f422,_0x4b9b05){const _0x1b6fd6=a85_0x135b;return _0x1a570a[_0x1b6fd6(0xfa)](_0x17f422,_0x4b9b05);},'ByYUq':function(_0x70ed18,_0x47d204){const _0x216868=a85_0x135b;return _0x1a570a[_0x216868(0x16d)](_0x70ed18,_0x47d204);}},_0x1e2618=null;if(_0x19af9e[_0x20a77c(0x1a5)]&&_0x1a570a['ScLnl'](_0x19af9e[_0x20a77c(0x1a5)],0x190)){const _0x2d0811=new Error(_0x20a77c(0x13c)+_0x19af9e[_0x20a77c(0x1a5)]+_0x20a77c(0x1c3)+_0x21188c);_0x2d0811[_0x20a77c(0x10e)]=_0x1a570a[_0x20a77c(0x1bf)],_0x2d0811[_0x20a77c(0x1a5)]=_0x19af9e[_0x20a77c(0x1a5)],logger[_0x20a77c(0x121)](util[_0x20a77c(0x160)](_0x1a570a['eMTMM'],_0x19af9e['statusCode'])),PerformanceTester[_0x20a77c(0x1c7)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],_0x20a77c(0x184)+_0x19af9e[_0x20a77c(0x1a5)]),_0x19af9e[_0x20a77c(0x103)](),_0x6a8c07[_0x20a77c(0x147)](),fs[_0x20a77c(0x1c0)](_0x4a1489,()=>{}),_0x1a570a['SEIwj'](_0x5569dc,_0x2d0811);return;}_0x19af9e[_0x20a77c(0x116)](_0x6a8c07),_0x19af9e['on'](_0x1a570a[_0x20a77c(0x167)],function(_0x4a21e8){const _0x386cf8=_0x20a77c;logger['error'](util[_0x386cf8(0x160)](_0x53cbb4['TBuaT'],_0x4a21e8)),PerformanceTester['end'](PerformanceEvents[_0x386cf8(0x16e)],![],util[_0x386cf8(0x160)](_0x4a21e8)),_0x53cbb4[_0x386cf8(0xec)](_0x5569dc,_0x4a21e8);}),_0x6a8c07['on'](_0x1a570a[_0x20a77c(0x167)],function(_0x5190b0){const _0xeb93ac=_0x20a77c;logger[_0xeb93ac(0x121)](util[_0xeb93ac(0x160)](_0x1a570a[_0xeb93ac(0x180)],_0x5190b0)),PerformanceTester[_0xeb93ac(0x1c7)](PerformanceEvents[_0xeb93ac(0x16e)],![],util[_0xeb93ac(0x160)](_0x5190b0)),_0x1a570a[_0xeb93ac(0xfa)](_0x5569dc,_0x5190b0);}),CLIUtils['downloadFileStream'](_0x6a8c07,_0x1e2618,_0x4a1489,_0x34ad19,_0x53774a=>{const _0x440523=_0x20a77c;PerformanceTester[_0x440523(0x1c7)](PerformanceEvents[_0x440523(0x16e)]),_0x53cbb4[_0x440523(0x1b0)](_0x376ea5,_0x53774a);},_0x27be32=>{const _0x1b3b50=_0x20a77c;PerformanceTester['end'](PerformanceEvents[_0x1b3b50(0x16e)],![],util[_0x1b3b50(0x160)](_0x27be32)),_0x53cbb4[_0x1b3b50(0xec)](_0x5569dc,_0x27be32);});})['on'](_0xe292f0[_0x405ccd(0x158)],function(_0x5665b9){const _0x484078=_0x405ccd;logger['error'](_0x484078(0xe6)+util[_0x484078(0x160)](_0x5665b9)),PerformanceTester['end'](PerformanceEvents[_0x484078(0x16e)],![],util[_0x484078(0x160)](_0x5665b9)),_0x1a570a[_0x484078(0xfa)](_0x5569dc,_0x5665b9);});});}catch(_0x5be48f){PerformanceTester[_0x211848(0x1c7)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x211848(0x160)](_0x5be48f)),logger[_0x211848(0x121)](util[_0x211848(0x160)](_0xe292f0[_0x211848(0x111)],_0x5be48f));throw _0x5be48f;}};static[a85_0x543701(0x170)](_0x3a6949,_0x5f42e6,_0x7b7307,_0x1c4d70,_0x378fb9,_0x1d0621){const _0x2cbef4=a85_0x543701,_0x24fd03={'GncBm':function(_0xb277ed,_0x16014e){return _0xb277ed(_0x16014e);},'Ggpkq':'close','nbjwb':function(_0x49c86b,_0x563321){return _0x49c86b!==_0x563321;},'WNXSi':_0x2cbef4(0x121),'eYRZc':_0x2cbef4(0x1c6),'UGvcA':'0755','JgPfw':_0x2cbef4(0x1c7),'UQbFi':'entry'};_0x3a6949['on'](_0x24fd03[_0x2cbef4(0x124)],function(){const _0x55942e=_0x2cbef4,_0x1b9d34={'rBJbD':function(_0x2f1a8b,_0x1612b0){return _0x24fd03['GncBm'](_0x2f1a8b,_0x1612b0);},'UBraP':_0x24fd03['Ggpkq'],'WTuSF':function(_0x3fc306,_0xc9852c){const _0x1fb09b=a85_0x135b;return _0x24fd03[_0x1fb09b(0xe9)](_0x3fc306,_0xc9852c);},'nYDvW':_0x24fd03[_0x55942e(0x189)],'egVkE':function(_0x577f0a,_0x1f7192){const _0x458592=_0x55942e;return _0x24fd03[_0x458592(0x15a)](_0x577f0a,_0x1f7192);},'zTZAH':function(_0x4a2ac8,_0x19ce0d){const _0x231cb=_0x55942e;return _0x24fd03[_0x231cb(0xe9)](_0x4a2ac8,_0x19ce0d);},'JPnwP':_0x24fd03[_0x55942e(0x138)],'NSkhl':_0x24fd03[_0x55942e(0x15d)],'bTZTo':_0x24fd03['JgPfw'],'cwwOl':_0x24fd03['UQbFi']},_0x2b8ec5={};_0x2b8ec5[_0x55942e(0x146)]=!![],yauzl[_0x55942e(0x18c)](_0x7b7307,_0x2b8ec5,function(_0x17f07f,_0x47097f){const _0x4594af=_0x55942e,_0x1672fd={'IOOec':function(_0x5b085e,_0x2f81c7){const _0x59e8d1=a85_0x135b;return _0x1b9d34[_0x59e8d1(0x144)](_0x5b085e,_0x2f81c7);},'CxAIL':_0x1b9d34[_0x4594af(0x143)]};if(_0x17f07f){_0x1b9d34['rBJbD'](_0x1d0621,_0x17f07f);return;}_0x47097f[_0x4594af(0x1c8)](),_0x47097f['on'](_0x1b9d34[_0x4594af(0x15c)],_0x4befee=>{const _0x32b891=_0x4594af,_0x34cdeb={'FTwsg':function(_0x4f6476,_0x1f33fe){return _0x1b9d34['rBJbD'](_0x4f6476,_0x1f33fe);},'ngyAG':_0x1b9d34[_0x32b891(0x1ab)]};if(/\/$/[_0x32b891(0x106)](_0x4befee['fileName'])){_0x47097f[_0x32b891(0x1c8)]();return;}!_0x5f42e6&&(_0x5f42e6=_0x4befee[_0x32b891(0x1a1)]);if(_0x1b9d34['WTuSF'](_0x4befee['fileName'],_0x5f42e6))_0x47097f[_0x32b891(0x1c8)]();else{const _0x57ef59=_0x4befee[_0x32b891(0x1a1)],_0x3d7e16=path['join'](_0x1c4d70,_0x57ef59+'.tmp.'+process[_0x32b891(0x163)]);let _0x58df2d;try{_0x58df2d=fs[_0x32b891(0x14e)](_0x3d7e16);}catch(_0x483d7b){if(BINARY_BUSY_ERROR_CODES[_0x32b891(0xef)](_0x483d7b[_0x32b891(0x10e)])){const _0x535378=path[_0x32b891(0x13e)](_0x1c4d70,_0x57ef59);if(fs[_0x32b891(0x197)](_0x535378)){logger[_0x32b891(0x154)](_0x32b891(0x10b)+_0x57ef59),fs[_0x32b891(0x1c0)](_0x7b7307,_0x3e17e0=>{const _0x5ae7f3=_0x32b891;_0x3e17e0&&logger[_0x5ae7f3(0x154)](_0x5ae7f3(0x15b)+_0x7b7307);}),_0x1b9d34['rBJbD'](_0x378fb9,_0x535378);return;}logger[_0x32b891(0x154)](_0x32b891(0x141)+_0x57ef59);}_0x1b9d34[_0x32b891(0x144)](_0x1d0621,_0x483d7b);return;}_0x58df2d['on'](_0x1b9d34[_0x32b891(0x18b)],_0x51ad81=>{const _0x4b21c4=_0x32b891;if(BINARY_BUSY_ERROR_CODES[_0x4b21c4(0xef)](_0x51ad81[_0x4b21c4(0x10e)])){const _0x4df427=path[_0x4b21c4(0x13e)](_0x1c4d70,_0x57ef59);_0x58df2d[_0x4b21c4(0x1b8)](),fs[_0x4b21c4(0x197)](_0x4df427)?(logger[_0x4b21c4(0x154)](_0x4b21c4(0x171)+_0x51ad81[_0x4b21c4(0x181)]),_0x47097f['close'](),fs[_0x4b21c4(0x1c0)](_0x7b7307,_0x1f5a1c=>{const _0x9d8462=_0x4b21c4;_0x1f5a1c&&logger['warn'](_0x9d8462(0x15b)+_0x7b7307);}),_0x34cdeb[_0x4b21c4(0x120)](_0x378fb9,_0x4df427)):(logger['warn']('Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20'+_0x51ad81[_0x4b21c4(0x181)]),fs[_0x4b21c4(0x1c0)](_0x3d7e16,()=>{}),_0x34cdeb['FTwsg'](_0x1d0621,_0x51ad81));}else fs[_0x4b21c4(0x1c0)](_0x3d7e16,()=>{}),_0x34cdeb['FTwsg'](_0x1d0621,_0x51ad81);}),_0x47097f[_0x32b891(0x110)](_0x4befee,function(_0x18eed6,_0x351c11){const _0x21e37e=_0x32b891;if(_0x18eed6){fs['unlink'](_0x3d7e16,()=>{}),_0x1672fd[_0x21e37e(0x199)](_0x1d0621,_0x18eed6);return;}_0x351c11['on'](_0x1672fd[_0x21e37e(0x148)],function(){const _0x98e284=_0x21e37e;_0x58df2d[_0x98e284(0x1c7)](),_0x58df2d['on'](_0x34cdeb[_0x98e284(0x18f)],function(){_0x47097f['readEntry']();});}),_0x351c11[_0x21e37e(0x116)](_0x58df2d);});}}),_0x47097f['on'](_0x1b9d34['nYDvW'],_0x298984=>{const _0xa4e16b=_0x4594af;_0x1b9d34[_0xa4e16b(0x18a)](_0x1d0621,_0x298984);}),_0x47097f['once'](_0x1b9d34[_0x4594af(0x143)],()=>{const _0x200ea4=_0x4594af,_0x977fbf={'sQRNh':function(_0x3dfd0c,_0x451ad3){const _0xa66efc=a85_0x135b;return _0x1b9d34[_0xa66efc(0x175)](_0x3dfd0c,_0x451ad3);},'vFQDb':_0x1b9d34[_0x200ea4(0x19a)],'WFEpG':function(_0x200f71,_0x13aa15){const _0x3a445f=_0x200ea4;return _0x1b9d34[_0x3a445f(0x144)](_0x200f71,_0x13aa15);},'nhjog':function(_0x3e1f41,_0x24cbd8){return _0x1b9d34['egVkE'](_0x3e1f41,_0x24cbd8);}};fs[_0x200ea4(0x1c0)](_0x7b7307,_0x5d23b1=>{const _0x3e54d0=_0x200ea4;_0x5d23b1&&logger[_0x3e54d0(0x154)](_0x3e54d0(0x15b)+_0x7b7307);});const _0x5061b9=path[_0x200ea4(0x13e)](_0x1c4d70,_0x5f42e6+_0x200ea4(0x107)+process['pid']),_0x4925f2=path[_0x200ea4(0x13e)](_0x1c4d70,_0x5f42e6);fs[_0x200ea4(0x182)](_0x5061b9,_0x1b9d34[_0x200ea4(0x11f)],function(_0x452acf){const _0x4d22a7=_0x200ea4;if(_0x452acf){_0x47097f[_0x4d22a7(0x1b8)](),fs['unlink'](_0x5061b9,()=>{}),_0x1672fd[_0x4d22a7(0x199)](_0x1d0621,_0x452acf);return;}fs[_0x4d22a7(0x11a)](_0x5061b9,_0x4925f2,function(_0x34549d){const _0x2fc322=_0x4d22a7;if(_0x34549d){if(_0x977fbf[_0x2fc322(0x12f)](_0x34549d[_0x2fc322(0x10e)],_0x977fbf[_0x2fc322(0xee)])){_0x47097f[_0x2fc322(0x1b8)](),fs['unlink'](_0x5061b9,()=>{}),_0x977fbf['WFEpG'](_0x1d0621,_0x34549d);return;}logger[_0x2fc322(0x154)](_0x2fc322(0x198)+_0x34549d[_0x2fc322(0x181)]);try{fs[_0x2fc322(0x104)](_0x5061b9,_0x4925f2);}catch(_0x3683f5){_0x47097f[_0x2fc322(0x1b8)](),fs[_0x2fc322(0x1c0)](_0x5061b9,()=>{}),_0x977fbf['nhjog'](_0x1d0621,_0x3683f5);return;}fs[_0x2fc322(0x1c0)](_0x5061b9,_0x1c7446=>{const _0x25791f=_0x2fc322;_0x1c7446&&logger[_0x25791f(0x154)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x1c7446[_0x25791f(0x181)]);});}_0x47097f[_0x2fc322(0x1b8)](),_0x977fbf[_0x2fc322(0x195)](_0x378fb9,_0x4925f2);});});});});});}static[a85_0x543701(0x193)](){const _0x31f286=a85_0x543701;if(process['env'][_0x31f286(0xe5)])return JSON[_0x31f286(0x1bd)](process[_0x31f286(0x1b6)][_0x31f286(0xe5)]);return this[_0x31f286(0x1ba)];}static[a85_0x543701(0x1b5)](){const _0x33ab5c=a85_0x543701;if(process[_0x33ab5c(0x1b6)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x33ab5c(0x1bd)](process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']);return this['automationFrameworkDetail'];}static[a85_0x543701(0x176)](_0x1a833a,_0x133a0e){const _0x23158f=a85_0x543701,_0x4cc24e={'OCxPr':_0x23158f(0x19e),'uNnGU':function(_0x37e188,_0x1c6d3e){return _0x37e188(_0x1c6d3e);},'Aqcvl':function(_0x5777e4,_0x46fecd){return _0x5777e4||_0x46fecd;},'WeeIe':function(_0x50b700,_0x3ed19e){return _0x50b700(_0x3ed19e);}},_0x1b9f5a=_0x4cc24e[_0x23158f(0x108)][_0x23158f(0x187)]('|');let _0x2b02b8=0x0;while(!![]){switch(_0x1b9f5a[_0x2b02b8++]){case'0':process[_0x23158f(0x1b6)][_0x23158f(0x1b9)]=JSON['stringify'](this[_0x23158f(0x117)]);continue;case'1':this[_0x23158f(0x1ba)]={'name':_0x1a833a,'version':{[_0x1a833a]:_0x4cc24e['uNnGU'](getFrameworkVersion,_0x1a833a)}};continue;case'2':_0x4cc24e[_0x23158f(0x12e)](!_0x1a833a,!_0x133a0e)&&logger[_0x23158f(0xf0)]('Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework='+_0x1a833a+_0x23158f(0x1a8)+_0x133a0e);continue;case'3':this['automationFrameworkDetail']={'name':_0x133a0e,'version':_0x4cc24e[_0x23158f(0x159)](getFrameworkVersion,_0x133a0e)};continue;case'4':process[_0x23158f(0x1b6)][_0x23158f(0xe5)]=JSON[_0x23158f(0xf5)](this[_0x23158f(0x1ba)]);continue;}break;}}static[a85_0x543701(0xea)](_0xac4a34,_0x1a018d){return _0xac4a34+':'+_0x1a018d;}static[a85_0x543701(0x11e)](){const _0x10c311=a85_0x543701;return process[_0x10c311(0x163)]+':'+threadId;}static[a85_0x543701(0x119)](_0x4db91c){const _0x251c20=a85_0x543701;if(_0x4db91c[_0x251c20(0x179)]&&_0x4db91c[_0x251c20(0x179)][_0x251c20(0x19c)])return!![];return![];}static[a85_0x543701(0x113)](_0x14a8e2){const _0x1f3b2d=a85_0x543701;if(_0x14a8e2[_0x1f3b2d(0x179)]&&_0x14a8e2[_0x1f3b2d(0x179)]['skipSessionStatus'])return!![];return![];}static[a85_0x543701(0x102)](_0x1adb74){const _0x34fcf5=a85_0x543701,_0x49989d=new RegExp(TestFrameworkConstants[_0x34fcf5(0x105)]);return _0x49989d[_0x34fcf5(0x106)](_0x1adb74);}static[a85_0x543701(0x151)](_0x1831a3,_0x58e959){const _0x6b0a7b=a85_0x543701,_0x20ed7d={};_0x20ed7d[_0x6b0a7b(0x13a)]=function(_0x112914,_0x327efe){return _0x112914!==_0x327efe;},_0x20ed7d[_0x6b0a7b(0x161)]=function(_0x364336,_0x54cca9){return _0x364336===_0x54cca9;},_0x20ed7d[_0x6b0a7b(0x173)]=_0x6b0a7b(0x16a);const _0x257745=_0x20ed7d;for(const [_0x3c418c,_0x339db4]of Object[_0x6b0a7b(0x140)](_0x58e959)){if(_0x257745[_0x6b0a7b(0x13a)](_0x339db4,null)&&_0x257745['WGcZO'](typeof _0x339db4,_0x257745[_0x6b0a7b(0x173)])&&!Array[_0x6b0a7b(0xf4)](_0x339db4))_0x1831a3[_0x3c418c]=this['mergeObject'](_0x1831a3[_0x3c418c]||{},_0x339db4);else Array[_0x6b0a7b(0xf4)](_0x339db4)?_0x1831a3[_0x3c418c]=(_0x1831a3[_0x3c418c]||[])['concat'](_0x339db4):_0x1831a3[_0x3c418c]=_0x339db4;}return _0x1831a3;}}function a85_0x135b(_0x3d585a,_0x4f1799){const _0x6bbc29=a85_0x6bbc();return a85_0x135b=function(_0x135b96,_0x3d4807){_0x135b96=_0x135b96-0xe4;let _0x44ef2d=_0x6bbc29[_0x135b96];return _0x44ef2d;},a85_0x135b(_0x3d585a,_0x4f1799);}module[a85_0x543701(0x1a7)]=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';const a86_0x42adc5=a86_0x31be;(function(_0xc45380,_0x4faa02){const _0x3bf45a=a86_0x31be,_0x2fe0c3=_0xc45380();while(!![]){try{const _0x4f9501=parseInt(_0x3bf45a(0xb7))/0x1*(parseInt(_0x3bf45a(0xb1))/0x2)+parseInt(_0x3bf45a(0x98))/0x3+parseInt(_0x3bf45a(0xc4))/0x4+-parseInt(_0x3bf45a(0xda))/0x5+parseInt(_0x3bf45a(0x6b))/0x6*(parseInt(_0x3bf45a(0x7b))/0x7)+parseInt(_0x3bf45a(0xea))/0x8*(-parseInt(_0x3bf45a(0xe6))/0x9)+parseInt(_0x3bf45a(0x91))/0xa;if(_0x4f9501===_0x4faa02)break;else _0x2fe0c3['push'](_0x2fe0c3['shift']());}catch(_0x6ad680){_0x2fe0c3['push'](_0x2fe0c3['shift']());}}}(a86_0x4bb3,0x49002));const fs=require('fs'),os=require('os'),path=require(a86_0x42adc5(0xb2)),helper=require(a86_0x42adc5(0x97)),AutomationFramework=require(a86_0x42adc5(0x80)),TestFrameworkConstants=require(a86_0x42adc5(0x73)),PlaywrightDriverModule=require(a86_0x42adc5(0xdc)),TestInfo=require('./TestInfo'),TestHubModule=require(a86_0x42adc5(0xa5)),{createClassLogger}=require(a86_0x42adc5(0x9b)),logger=createClassLogger('CustomTagManager'),BUILD_TAG_FILE_PREFIX=a86_0x42adc5(0xc1);function a86_0x4bb3(){const _0x3d22b5=['getTestDetails','unlinkSync','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','mergeBuildLevelTags','getTestLevelTags','1494VzNBZa','KEY_TEST_ID','sWtbU','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','pid','fyDZv','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','./framework/constants/testFrameworkConstants','isArray','endsWith','multi_dropdown','POST','VfUwK','retry','BROWSERSTACK_TESTHUB_UUID','12460kKREXI','function',',\x20finalTags=','TEST','FGZtJ','./framework/automationFramework','./cliUtils','ms)\x20','getBuildTagsRunId','debug','jHblG','getBuildTagsFilePath','QLfdH','parse','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','getAllData','efXSh','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','FZTcK','pAgaf','isRunning','clearTags','12430tKMrkY','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','buildHashedId','name','GUiwA','MYucX','../../helpers/helper','761889yXqmZL','getTestFramework','readFileSync','../../helpers/classLogger',',\x20key=','addMultipleEntries','getInstance','setCustomTags','modules','now','buildLevelTags','getCurrentTestUUID','BUILD_TAG_FILE_PREFIX','./modules/testhubModule','nvDTc','promises','toLowerCase','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','getTestUUID','utf8','GYypu','ayxbR','getTestFrameworkDetail','xQfKK','tmpdir','10GoWCsu','path','keys','lYOjQ','statSync','join','41357HGPCAQ','null','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','exports','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','YViFL','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','trim','includes','resolveInstance','bstack_build_tags_','env','./browserstackCLI','57108DqWXYi','kxLLZ','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','mtimeMs','startsWith','QUOVP','setTestDetails','vTBtd','wBthr','./state/hookState',',\x20values=','qGjrY','field_type','CfpxU','KEY_CUSTOM_TAGS','__jestCurrentTestIdentifier','parseCommaSeparatedValues','stringify','currentTest','MODULE_NAME','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','mergeIntoTags','1629505ZskOFC','mergeValues','./modules/playwrightDriverModule','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','pDRay','length','values','SLrIL','jest','testLevelTags','from','testhubConfig','2439hKfKYV','message','getTestIdentifierFromTestInfo','entries','8696GEvemM','getTrackedInstance','getState','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','bhHTw','testInfo'];a86_0x4bb3=function(){return _0x3d22b5;};return a86_0x4bb3();}function a86_0x31be(_0x50e025,_0x5c012a){const _0x4bb35a=a86_0x4bb3();return a86_0x31be=function(_0x31be2d,_0x5a23e0){_0x31be2d=_0x31be2d-0x68;let _0x2f7f1a=_0x4bb35a[_0x31be2d];return _0x2f7f1a;},a86_0x31be(_0x50e025,_0x5c012a);}function getBuildTagsRunId(){const _0x243786=a86_0x42adc5,_0x2167a4={};_0x2167a4[_0x243786(0x85)]=function(_0x3952a8,_0x2ed99d){return _0x3952a8===_0x2ed99d;},_0x2167a4[_0x243786(0xe1)]=_0x243786(0xb8);const _0x1ae92d=_0x2167a4,_0x374de9=process[_0x243786(0xc2)][_0x243786(0x7a)];if(!_0x374de9||_0x1ae92d['jHblG'](_0x374de9,_0x1ae92d['SLrIL']))return null;return _0x374de9;}function getBuildTagsFilePath(_0x5ce2ad){const _0x12ce98=a86_0x42adc5;return path['join'](os[_0x12ce98(0xb0)](),''+BUILD_TAG_FILE_PREFIX+_0x5ce2ad+'_'+process[_0x12ce98(0x70)]+'.json');}class CustomTagManager{static ['buildLevelTags']={};static ['testLevelTags']={};static['mergeValues'](_0x5287e2,_0x4a86a3){const _0x8534e7=a86_0x42adc5;return Array[_0x8534e7(0xe4)](new Set([..._0x5287e2||[],..._0x4a86a3||[]]));}static[a86_0x42adc5(0xd9)](_0x26065b,_0x2f0e98,_0x270f1a){const _0x56c1cc=a86_0x42adc5,_0xcdb9e6={};_0xcdb9e6['GUiwA']=_0x56c1cc(0x76);const _0x50d37b=_0xcdb9e6;if(!_0x26065b[_0x2f0e98]){const _0x5e2e31={};_0x5e2e31[_0x56c1cc(0xd0)]=_0x50d37b['GUiwA'],_0x5e2e31[_0x56c1cc(0xe0)]=[..._0x270f1a||[]],_0x26065b[_0x2f0e98]=_0x5e2e31;}else!_0x26065b[_0x2f0e98]['field_type']&&(_0x26065b[_0x2f0e98][_0x56c1cc(0xd0)]=_0x50d37b[_0x56c1cc(0x95)]),!Array[_0x56c1cc(0x74)](_0x26065b[_0x2f0e98][_0x56c1cc(0xe0)])&&(_0x26065b[_0x2f0e98][_0x56c1cc(0xe0)]=[]),_0x26065b[_0x2f0e98][_0x56c1cc(0xe0)]=CustomTagManager[_0x56c1cc(0xdb)](_0x26065b[_0x2f0e98]['values'],_0x270f1a);return _0x26065b;}static async[a86_0x42adc5(0x9f)](_0x44489a,_0x121d82,_0x3014a9=![]){const _0x20af60=a86_0x42adc5,_0x2e576a={'afrqr':function(_0x3c9444,_0x338219){return _0x3c9444!==_0x338219;},'wBthr':'string','GYypu':_0x20af60(0x72),'QLfdH':_0x20af60(0x68),'NloNr':function(_0x471f27,_0x13b05e){return _0x471f27===_0x13b05e;},'dSSWR':_0x20af60(0xd8),'eyGkJ':function(_0xfd8752,_0x3e4252){return _0xfd8752===_0x3e4252;},'vhDlN':_0x20af60(0x6f),'MYucX':function(_0x340f8d,_0x392979){return _0x340f8d(_0x392979);},'pAgaf':_0x20af60(0xc3),'qGjrY':function(_0xd92303){return _0xd92303();},'CfpxU':_0x20af60(0x76),'sWtbU':function(_0x5ab665,_0x4add63){return _0x5ab665>_0x4add63;},'VfUwK':function(_0x4b2b06,_0x298455){return _0x4b2b06(_0x298455);},'SKPMa':_0x20af60(0xa9),'pDRay':':jest-','ayxbR':_0x20af60(0x81),'dJSuH':function(_0x5c2d15,_0x2e3c78){return _0x5c2d15===_0x2e3c78;},'GEvDP':_0x20af60(0xe2),'lYOjQ':'CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','xQfKK':function(_0x246766,_0x4e18a9){return _0x246766(_0x4e18a9);},'kxLLZ':_0x20af60(0xc6),'YViFL':'./state/testFrameworkState','sEiYJ':_0x20af60(0xcd),'otlhd':_0x20af60(0xb9),'bhHTw':function(_0x1efefc,_0x296545){return _0x1efefc(_0x296545);},'fyDZv':function(_0xb53f16,_0x5836fd){return _0xb53f16===_0x5836fd;},'nvDTc':_0x20af60(0x7c)};if(_0x2e576a['afrqr'](typeof _0x44489a,_0x2e576a['wBthr'])){logger[_0x20af60(0x84)](_0x2e576a[_0x20af60(0xac)]);return;}if(_0x2e576a['afrqr'](typeof _0x121d82,_0x2e576a[_0x20af60(0xcc)])){logger[_0x20af60(0x84)](_0x2e576a[_0x20af60(0x87)]);return;}if(_0x2e576a['NloNr'](_0x44489a[_0x20af60(0xbe)](),'')){logger[_0x20af60(0x84)](_0x2e576a['dSSWR']);return;}if(_0x2e576a['eyGkJ'](_0x121d82['trim'](),'')){logger['debug'](_0x2e576a['vhDlN']);return;}const _0x46783f=helper[_0x20af60(0xd4)](_0x121d82);if(_0x3014a9){const _0x125191=_0x2e576a[_0x20af60(0x96)](require,_0x2e576a[_0x20af60(0x8e)]),_0x141125=_0x125191[_0x20af60(0x9e)](),_0x4e18f3=_0x141125&&_0x141125[_0x20af60(0xa0)][TestHubModule[_0x20af60(0xd7)]];if(_0x4e18f3){const _0x4fed52=_0x4e18f3?.[_0x20af60(0xe5)]?.['toObject']()?.[_0x20af60(0x93)];TestInfo[_0x20af60(0xaa)](_0x4fed52);const _0x36ced8=TestInfo[_0x20af60(0xf0)](_0x4fed52),_0x233473=_0x36ced8[TestFrameworkConstants[_0x20af60(0xd2)]]||{};CustomTagManager[_0x20af60(0xd9)](_0x233473,_0x44489a,_0x46783f),_0x36ced8[TestFrameworkConstants[_0x20af60(0xd2)]]=_0x233473,TestInfo[_0x20af60(0xca)](_0x4fed52,_0x36ced8);!this[_0x20af60(0xa2)][_0x4fed52]&&(this[_0x20af60(0xa2)][_0x4fed52]={});this[_0x20af60(0xa2)][_0x4fed52][_0x44489a]=CustomTagManager[_0x20af60(0xdb)](this['buildLevelTags'][_0x4fed52][_0x44489a],_0x46783f);try{const _0x294763=_0x2e576a[_0x20af60(0xcf)](getBuildTagsRunId);if(_0x294763){const _0x579a7f={};for(const [_0xc782db,_0x4ca085]of Object[_0x20af60(0xe9)](this[_0x20af60(0xa2)][_0x4fed52]||{})){_0x579a7f[_0xc782db]={'field_type':_0x2e576a[_0x20af60(0xd1)],'values':Array[_0x20af60(0x74)](_0x4ca085)?[..._0x4ca085]:[]};}_0x2e576a[_0x20af60(0x6d)](Object[_0x20af60(0xb3)](_0x579a7f)[_0x20af60(0xdf)],0x0)&&await fs[_0x20af60(0xa7)]['writeFile'](_0x2e576a[_0x20af60(0x78)](getBuildTagsFilePath,_0x294763),JSON[_0x20af60(0xd5)](_0x579a7f));}else logger['debug'](_0x2e576a['SKPMa']);}catch(_0x1d5be3){logger['debug'](_0x20af60(0x92)+(_0x1d5be3&&_0x1d5be3[_0x20af60(0xe7)]?_0x1d5be3['message']:_0x1d5be3));}}}else{let _0x1ecc7a;const _0x275311=global[_0x20af60(0xd3)];let _0x3c34a8=![];if(_0x275311&&_0x275311[_0x20af60(0xbf)](_0x2e576a['pDRay']))_0x3c34a8=!![],_0x1ecc7a=_0x275311;else try{const _0x5aba3c=_0x2e576a['MYucX'](require,_0x2e576a[_0x20af60(0xad)]),_0x26b9cc=_0x2e576a[_0x20af60(0x96)](require,_0x2e576a[_0x20af60(0x8e)]);if(_0x26b9cc[_0x20af60(0x9e)]()[_0x20af60(0x8f)]()){const _0x49c89b=_0x5aba3c[_0x20af60(0xae)]();if(_0x2e576a['dJSuH'](_0x49c89b?.[_0x20af60(0x94)]?.[_0x20af60(0xa8)](),_0x2e576a['GEvDP'])){const _0x25776=AutomationFramework[_0x20af60(0xeb)]();_0x1ecc7a=AutomationFramework[_0x20af60(0xec)](_0x25776,PlaywrightDriverModule[_0x20af60(0x6c)],''),_0x1ecc7a&&_0x1ecc7a[_0x20af60(0xbf)](_0x2e576a[_0x20af60(0xde)])&&(_0x3c34a8=!![]);}}}catch(_0x3ee592){logger[_0x20af60(0x84)]('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x3ee592);}if(_0x3c34a8){if(!_0x1ecc7a)throw new Error(_0x2e576a[_0x20af60(0xb4)]);const _0x316184=_0x2e576a[_0x20af60(0xaf)](require,_0x2e576a['pAgaf']),_0x557780=_0x316184[_0x20af60(0x9e)]()[_0x20af60(0x99)]();if(!_0x557780)throw new Error(_0x2e576a[_0x20af60(0xc5)]);const _0x3c378c=_0x2e576a[_0x20af60(0xaf)](require,_0x2e576a[_0x20af60(0xbc)]),_0x47f281=_0x2e576a[_0x20af60(0x78)](require,_0x2e576a['sEiYJ']),_0x2166c9=_0x557780[_0x20af60(0xc0)](_0x3c378c[_0x20af60(0x7e)],_0x47f281[_0x20af60(0x77)]);if(!_0x2166c9)throw new Error(_0x2e576a['otlhd']);const _0x2cef85=_0x2166c9[_0x20af60(0x8a)]()['get'](_0x1ecc7a)||{},_0x57c39d=_0x2cef85[TestFrameworkConstants[_0x20af60(0xd2)]]||{};logger['debug'](_0x20af60(0x89)+_0x1ecc7a+_0x20af60(0x9c)+_0x44489a+_0x20af60(0xce)+JSON[_0x20af60(0xd5)](_0x46783f)+',\x20existingTags='+JSON['stringify'](_0x57c39d)),CustomTagManager[_0x20af60(0xd9)](_0x57c39d,_0x44489a,_0x46783f),logger['debug'](_0x20af60(0x8c)+_0x44489a+'\x20->\x20values='+JSON[_0x20af60(0xd5)](_0x57c39d[_0x44489a][_0x20af60(0xe0)]));const _0x406ab3={[TestFrameworkConstants[_0x20af60(0xd2)]]:_0x57c39d},_0x13739a={};_0x13739a[_0x1ecc7a]=_0x406ab3,_0x2166c9[_0x20af60(0x9d)](_0x13739a),logger[_0x20af60(0x84)](_0x20af60(0xdd)+_0x1ecc7a+_0x20af60(0x7d)+JSON[_0x20af60(0xd5)](_0x57c39d)),!this[_0x20af60(0xe3)][_0x1ecc7a]&&(this[_0x20af60(0xe3)][_0x1ecc7a]={}),this[_0x20af60(0xe3)][_0x1ecc7a][_0x44489a]=CustomTagManager[_0x20af60(0xdb)](this['testLevelTags'][_0x1ecc7a][_0x44489a],_0x46783f);}else{const _0x209e35=global['__workerDetails']?.[_0x20af60(0xd6)]?.[_0x20af60(0xef)];if(!_0x209e35){const _0x4f3d72=AutomationFramework['getTrackedInstance']();_0x1ecc7a=AutomationFramework[_0x20af60(0xec)](_0x4f3d72,PlaywrightDriverModule[_0x20af60(0x6c)],'');if(!_0x1ecc7a)try{const _0x56f17f=_0x2e576a[_0x20af60(0xee)](require,_0x2e576a[_0x20af60(0x8e)]),_0xdf81d5=_0x56f17f[_0x20af60(0x9e)](),_0x3cd7e0=_0xdf81d5&&_0xdf81d5[_0x20af60(0x99)]();_0x1ecc7a=_0x3cd7e0&&_0x2e576a[_0x20af60(0x71)](typeof _0x3cd7e0[_0x20af60(0xa3)],_0x2e576a[_0x20af60(0xa6)])&&_0x3cd7e0['getCurrentTestUUID']()||_0x1ecc7a;}catch(_0x354e2c){logger[_0x20af60(0x84)](_0x20af60(0xed)+(_0x354e2c&&_0x354e2c[_0x20af60(0xe7)]));}}else _0x1ecc7a=TestInfo[_0x20af60(0xe8)](_0x209e35,_0x209e35[_0x20af60(0x79)]);const _0x4d4d08=TestInfo[_0x20af60(0xf0)](_0x1ecc7a),_0x14cdfa=_0x4d4d08[TestFrameworkConstants[_0x20af60(0xd2)]]||{};CustomTagManager[_0x20af60(0xd9)](_0x14cdfa,_0x44489a,_0x46783f),_0x4d4d08[TestFrameworkConstants[_0x20af60(0xd2)]]=_0x14cdfa,TestInfo[_0x20af60(0xca)](_0x1ecc7a,_0x4d4d08),!this[_0x20af60(0xe3)][_0x1ecc7a]&&(this[_0x20af60(0xe3)][_0x1ecc7a]={}),this['testLevelTags'][_0x1ecc7a][_0x44489a]=CustomTagManager['mergeValues'](this[_0x20af60(0xe3)][_0x1ecc7a][_0x44489a],_0x46783f);}}}static['getBuildLevelTags'](){const _0x7188a0=a86_0x42adc5,_0x2f1561={...this[_0x7188a0(0xa2)]};return _0x2f1561;}static[a86_0x42adc5(0x6a)](){const _0x1086d8=a86_0x42adc5,_0x3f7e9c={...this[_0x1086d8(0xe3)]};return _0x3f7e9c;}static[a86_0x42adc5(0x90)](){const _0x5c3ec6=a86_0x42adc5;this['buildLevelTags']={},this[_0x5c3ec6(0xe3)]={};}static[a86_0x42adc5(0x69)](_0x39f423,_0xb2afe1){const _0x2bbdfb=a86_0x42adc5,_0x4b52a7={};_0x4b52a7[_0x2bbdfb(0xcb)]=function(_0x538244,_0x107ab0){return _0x538244||_0x107ab0;};const _0x17d7d1=_0x4b52a7;if(!_0x39f423)return;!this[_0x2bbdfb(0xa2)][_0x39f423]&&(this[_0x2bbdfb(0xa2)][_0x39f423]={});for(const [_0x5cd484,_0xb71075]of Object['entries'](_0x17d7d1[_0x2bbdfb(0xcb)](_0xb2afe1,{}))){if(!_0xb71075||!Array['isArray'](_0xb71075[_0x2bbdfb(0xe0)]))continue;this[_0x2bbdfb(0xa2)][_0x39f423][_0x5cd484]=CustomTagManager[_0x2bbdfb(0xdb)](this[_0x2bbdfb(0xa2)][_0x39f423][_0x5cd484],_0xb71075[_0x2bbdfb(0xe0)]);}}static['aggregateBuildLevelTagsFromTmp'](_0x3ad400,_0x229166){const _0x536631=a86_0x42adc5,_0x5f389a={};_0x5f389a[_0x536631(0x7f)]=_0x536631(0xbb),_0x5f389a['FZTcK']=function(_0x366ab6,_0xdf3577){return _0x366ab6*_0xdf3577;},_0x5f389a[_0x536631(0x8b)]=function(_0x5a7b9b,_0x86761c){return _0x5a7b9b>_0x86761c;},_0x5f389a[_0x536631(0xc9)]=function(_0x505620,_0x5bd700){return _0x505620-_0x5bd700;},_0x5f389a['hqvrt']=_0x536631(0xab);const _0x479d2b=_0x5f389a;if(!_0x3ad400)return logger[_0x536631(0x84)](_0x479d2b['FGZtJ']),0x0;let _0x337653;try{_0x337653=os[_0x536631(0xb0)]();}catch(_0x3def77){return logger[_0x536631(0x84)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x3def77),0x0;}let _0x18a93c;try{_0x18a93c=fs['readdirSync'](_0x337653);}catch(_0x591e94){return logger[_0x536631(0x84)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x591e94),0x0;}const _0x2a13d4=''+BUILD_TAG_FILE_PREFIX+_0x3ad400+'_',_0x1d5683=_0x18a93c['filter'](_0x5c1697=>_0x5c1697[_0x536631(0xc8)](_0x2a13d4)&&_0x5c1697[_0x536631(0x75)]('.json')),_0x33739b=_0x479d2b[_0x536631(0x8d)](_0x479d2b[_0x536631(0x8d)](_0x479d2b[_0x536631(0x8d)](0x2,0x3c),0x3c),0x3e8);let _0x265d4d=0x0;for(const _0x5b3bc8 of _0x1d5683){const _0x63e17f=path[_0x536631(0xb6)](_0x337653,_0x5b3bc8);try{const _0x229b8a=fs[_0x536631(0xb5)](_0x63e17f);if(_0x479d2b[_0x536631(0x8b)](_0x479d2b[_0x536631(0xc9)](Date[_0x536631(0xa1)](),_0x229b8a[_0x536631(0xc7)]),_0x33739b)){logger['debug'](_0x536631(0xbd)+_0x33739b+_0x536631(0x82)+_0x5b3bc8);try{fs[_0x536631(0xf1)](_0x63e17f);}catch(_0x305dc3){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x5b3bc8+':\x20'+(_0x305dc3&&_0x305dc3[_0x536631(0xe7)]?_0x305dc3['message']:_0x305dc3));}continue;}const _0x24300f=fs[_0x536631(0x9a)](_0x63e17f,_0x479d2b['hqvrt']),_0x15ab0a=JSON[_0x536631(0x88)](_0x24300f);this['mergeBuildLevelTags'](_0x229166,_0x15ab0a),_0x265d4d+=0x1;}catch(_0x1593f1){logger[_0x536631(0x84)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x5b3bc8+':\x20'+(_0x1593f1&&_0x1593f1[_0x536631(0xe7)]?_0x1593f1[_0x536631(0xe7)]:_0x1593f1));}try{fs[_0x536631(0xf1)](_0x63e17f);}catch(_0x12012f){logger[_0x536631(0x84)](_0x536631(0x6e)+_0x5b3bc8+':\x20'+(_0x12012f&&_0x12012f[_0x536631(0xe7)]?_0x12012f[_0x536631(0xe7)]:_0x12012f));}}return _0x265d4d;}}const a86_0x32fc9b={};a86_0x32fc9b[a86_0x42adc5(0x83)]=getBuildTagsRunId,a86_0x32fc9b[a86_0x42adc5(0x86)]=getBuildTagsFilePath,a86_0x32fc9b[a86_0x42adc5(0xa4)]=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a86_0x32fc9b,module[a86_0x42adc5(0xba)]=CustomTagManager;
1
+ 'use strict';const a86_0x14adf6=a86_0xe052;(function(_0x3ed66c,_0xc40562){const _0x3816b6=a86_0xe052,_0xa76eb1=_0x3ed66c();while(!![]){try{const _0x49b74b=parseInt(_0x3816b6(0x1c9))/0x1*(parseInt(_0x3816b6(0x240))/0x2)+parseInt(_0x3816b6(0x239))/0x3*(parseInt(_0x3816b6(0x1f6))/0x4)+-parseInt(_0x3816b6(0x22c))/0x5+parseInt(_0x3816b6(0x228))/0x6*(-parseInt(_0x3816b6(0x1dd))/0x7)+-parseInt(_0x3816b6(0x24c))/0x8+-parseInt(_0x3816b6(0x1ce))/0x9*(-parseInt(_0x3816b6(0x1f2))/0xa)+-parseInt(_0x3816b6(0x23e))/0xb*(parseInt(_0x3816b6(0x20b))/0xc);if(_0x49b74b===_0xc40562)break;else _0xa76eb1['push'](_0xa76eb1['shift']());}catch(_0x593fc8){_0xa76eb1['push'](_0xa76eb1['shift']());}}}(a86_0x367e,0x1afbb));const fs=require('fs'),os=require('os'),path=require(a86_0x14adf6(0x1e3)),helper=require(a86_0x14adf6(0x231)),AutomationFramework=require(a86_0x14adf6(0x22a)),TestFrameworkConstants=require(a86_0x14adf6(0x249)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a86_0x14adf6(0x1d3)),TestHubModule=require(a86_0x14adf6(0x1dc)),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a86_0x14adf6(0x222)),BUILD_TAG_FILE_PREFIX=a86_0x14adf6(0x232);function getBuildTagsRunId(){const _0x450e65=a86_0x14adf6,_0x3e3cbc={};_0x3e3cbc[_0x450e65(0x223)]=function(_0x302f13,_0x1547e8){return _0x302f13===_0x1547e8;},_0x3e3cbc[_0x450e65(0x1c5)]=_0x450e65(0x24d);const _0x191795=_0x3e3cbc,_0x5732e3=process['env'][_0x450e65(0x203)];if(!_0x5732e3||_0x191795[_0x450e65(0x223)](_0x5732e3,_0x191795[_0x450e65(0x1c5)]))return null;return _0x5732e3;}function a86_0x367e(){const _0x554a82=['128053QwGlrf','currentTest','endsWith','./state/hookState','now','27cAgIFH','entries','isUol','getTestUUID','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','./TestInfo','from','field_type','./browserstackCLI','./cliUtils','multi_dropdown','getBuildTagsFilePath','dHxcd','BGBME','./modules/testhubModule','181951xlZtkc','yNoso','MLEEn','mergeValues',',\x20values=','FKZjc','path','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','TEST','setCustomTags','gyNHV','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','GiFuJ','fNIyX','getTestIdentifierFromTestInfo','isArray','writeFile','TSvli','addMultipleEntries','GUvXw','609430CHjZvX','message','getCurrentTestUUID','rLZcL','26956tVOsbM','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','OiQKz','KEY_CUSTOM_TAGS','clearTags','getTrackedInstance','kNcVM','Ljafb','zbSvd','buildHashedId','ms)\x20','getState','testhubConfig','BROWSERSTACK_TESTHUB_UUID','get','getTestFrameworkDetail','trim','includes','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','length','stringify','1300548bPkMdN','oMZje','promises','getTestDetails','name','testLevelTags','pid','getInstance','toObject','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','buildLevelTags','getTestFramework','./state/testFrameworkState','iWpWF','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','parse','jest','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','setTestDetails','statSync','__workerDetails','Yngia','__jestCurrentTestIdentifier','CustomTagManager','BmsJe','keys','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','function','TgNEL','30rOcNVO','mbley','./framework/automationFramework','MivSD','391070aCexTY','unlinkSync',',\x20key=','mtimeMs','KEY_TEST_ID','../../helpers/helper','bstack_build_tags_','values','OWSMo','mergeIntoTags','modules','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright',':jest-','93NcxWgL','getBuildTagsRunId','debug','filter','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','11rNtvPx','string','2mIryys','tMcPF','mergeBuildLevelTags','qZRhq','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','aggregateBuildLevelTagsFromTmp',',\x20finalTags=','cwHtP','retry','./framework/constants/testFrameworkConstants','.json','tmpdir','741680VugeLi','null','toLowerCase','_testInternals','parseCommaSeparatedValues','join','readFileSync','REWgh','utf8','TWLWR','TqgdN'];a86_0x367e=function(){return _0x554a82;};return a86_0x367e();}function getBuildTagsFilePath(_0x88dafc){const _0x58e91b=a86_0x14adf6;return path[_0x58e91b(0x251)](os[_0x58e91b(0x24b)](),''+BUILD_TAG_FILE_PREFIX+_0x88dafc+'_'+process[_0x58e91b(0x211)]+_0x58e91b(0x24a));}class CustomTagManager{static [a86_0x14adf6(0x215)]={};static [a86_0x14adf6(0x210)]={};static[a86_0x14adf6(0x1e0)](_0x341461,_0x21caa5){const _0x41bf23=a86_0x14adf6;return Array[_0x41bf23(0x1d4)](new Set([..._0x341461||[],..._0x21caa5||[]]));}static[a86_0x14adf6(0x235)](_0x152f82,_0x3880a0,_0x150212){const _0x310dad=a86_0x14adf6,_0x3339be={};_0x3339be[_0x310dad(0x1c8)]=_0x310dad(0x1d8);const _0x5499c3=_0x3339be;if(!_0x152f82[_0x3880a0]){const _0x7fff6e={};_0x7fff6e[_0x310dad(0x1d5)]=_0x5499c3['TqgdN'],_0x7fff6e['values']=[..._0x150212||[]],_0x152f82[_0x3880a0]=_0x7fff6e;}else!_0x152f82[_0x3880a0]['field_type']&&(_0x152f82[_0x3880a0][_0x310dad(0x1d5)]=_0x5499c3[_0x310dad(0x1c8)]),!Array[_0x310dad(0x1ed)](_0x152f82[_0x3880a0]['values'])&&(_0x152f82[_0x3880a0]['values']=[]),_0x152f82[_0x3880a0][_0x310dad(0x233)]=CustomTagManager['mergeValues'](_0x152f82[_0x3880a0]['values'],_0x150212);return _0x152f82;}static async[a86_0x14adf6(0x1e7)](_0x3cb37d,_0x4301a5,_0x177e5e=![]){const _0x465ba9=a86_0x14adf6,_0x3b49d6={'TWLWR':function(_0x4d7d14,_0x2a811c){return _0x4d7d14!==_0x2a811c;},'MLEEn':_0x465ba9(0x23f),'BGBME':_0x465ba9(0x208),'MKSOX':_0x465ba9(0x1e9),'FKZjc':function(_0x4c5cf6,_0x31f9ae){return _0x4c5cf6===_0x31f9ae;},'tMcPF':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','zbSvd':_0x465ba9(0x1f7),'oMZje':function(_0xe3ae7,_0x1333c4){return _0xe3ae7(_0x1333c4);},'TgNEL':_0x465ba9(0x1d6),'qZRhq':function(_0x36208a){return _0x36208a();},'oQFCV':'multi_dropdown','dHxcd':function(_0x598192,_0x8d4eb3){return _0x598192>_0x8d4eb3;},'isUol':function(_0x1f5996,_0x4d92ab){return _0x1f5996(_0x4d92ab);},'rLZcL':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','OiQKz':_0x465ba9(0x238),'Ljafb':_0x465ba9(0x1d7),'gyNHV':function(_0x5f4ff6,_0x454171){return _0x5f4ff6===_0x454171;},'rafrR':_0x465ba9(0x21b),'VGVeN':_0x465ba9(0x219),'OWSMo':function(_0x3c71fa,_0x287f09){return _0x3c71fa(_0x287f09);},'RbQUd':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','kNcVM':function(_0x1b4ddd,_0x58fdf0){return _0x1b4ddd(_0x58fdf0);},'xCwGo':_0x465ba9(0x217),'fNIyX':_0x465ba9(0x1cc),'GiFuJ':_0x465ba9(0x237),'iWpWF':function(_0x4e82a4,_0x4c0328){return _0x4e82a4===_0x4c0328;},'Yngia':_0x465ba9(0x226)};if(_0x3b49d6[_0x465ba9(0x1c7)](typeof _0x3cb37d,_0x3b49d6[_0x465ba9(0x1df)])){logger['debug'](_0x3b49d6[_0x465ba9(0x1db)]);return;}if(_0x3b49d6[_0x465ba9(0x1c7)](typeof _0x4301a5,_0x3b49d6[_0x465ba9(0x1df)])){logger[_0x465ba9(0x23b)](_0x3b49d6['MKSOX']);return;}if(_0x3b49d6[_0x465ba9(0x1e2)](_0x3cb37d[_0x465ba9(0x206)](),'')){logger[_0x465ba9(0x23b)](_0x3b49d6[_0x465ba9(0x241)]);return;}if(_0x3b49d6['FKZjc'](_0x4301a5[_0x465ba9(0x206)](),'')){logger['debug'](_0x3b49d6[_0x465ba9(0x1fe)]);return;}const _0x121e66=helper[_0x465ba9(0x250)](_0x4301a5);if(_0x177e5e){const _0x3c6f7b=_0x3b49d6[_0x465ba9(0x20c)](require,_0x3b49d6[_0x465ba9(0x227)]),_0x6ed2e3=_0x3c6f7b[_0x465ba9(0x212)](),_0x22578c=_0x6ed2e3&&_0x6ed2e3[_0x465ba9(0x236)][TestHubModule['MODULE_NAME']];if(_0x22578c){const _0x1f1381=_0x22578c?.[_0x465ba9(0x202)]?.[_0x465ba9(0x213)]()?.[_0x465ba9(0x1ff)];TestInfo[_0x465ba9(0x1d1)](_0x1f1381);const _0x431b7d=TestInfo[_0x465ba9(0x20e)](_0x1f1381),_0x2f6a2e=_0x431b7d[TestFrameworkConstants[_0x465ba9(0x1f9)]]||{};CustomTagManager[_0x465ba9(0x235)](_0x2f6a2e,_0x3cb37d,_0x121e66),_0x431b7d[TestFrameworkConstants[_0x465ba9(0x1f9)]]=_0x2f6a2e,TestInfo[_0x465ba9(0x21d)](_0x1f1381,_0x431b7d);!this[_0x465ba9(0x215)][_0x1f1381]&&(this[_0x465ba9(0x215)][_0x1f1381]={});this['buildLevelTags'][_0x1f1381][_0x3cb37d]=CustomTagManager[_0x465ba9(0x1e0)](this['buildLevelTags'][_0x1f1381][_0x3cb37d],_0x121e66);try{const _0x5eb5c5=_0x3b49d6[_0x465ba9(0x243)](getBuildTagsRunId);if(_0x5eb5c5){const _0x5f3737={};for(const [_0x2ee6ea,_0x3286b6]of Object['entries'](this[_0x465ba9(0x215)][_0x1f1381]||{})){_0x5f3737[_0x2ee6ea]={'field_type':_0x3b49d6['oQFCV'],'values':Array[_0x465ba9(0x1ed)](_0x3286b6)?[..._0x3286b6]:[]};}_0x3b49d6[_0x465ba9(0x1da)](Object[_0x465ba9(0x224)](_0x5f3737)[_0x465ba9(0x209)],0x0)&&await fs[_0x465ba9(0x20d)][_0x465ba9(0x1ee)](_0x3b49d6[_0x465ba9(0x1d0)](getBuildTagsFilePath,_0x5eb5c5),JSON['stringify'](_0x5f3737));}else logger[_0x465ba9(0x23b)](_0x3b49d6[_0x465ba9(0x1f5)]);}catch(_0xd42eb4){logger[_0x465ba9(0x23b)](_0x465ba9(0x1e5)+(_0xd42eb4&&_0xd42eb4['message']?_0xd42eb4[_0x465ba9(0x1f3)]:_0xd42eb4));}}}else{let _0x206fe6;const _0x2917c1=global[_0x465ba9(0x221)];let _0x45fc4e=![];if(_0x2917c1&&_0x2917c1[_0x465ba9(0x207)](_0x3b49d6[_0x465ba9(0x1f8)]))_0x45fc4e=!![],_0x206fe6=_0x2917c1;else try{const _0x1e1ff4=_0x3b49d6[_0x465ba9(0x20c)](require,_0x3b49d6[_0x465ba9(0x1fd)]),_0x5a760d=_0x3b49d6[_0x465ba9(0x20c)](require,_0x3b49d6['TgNEL']);if(_0x5a760d[_0x465ba9(0x212)]()['isRunning']()){const _0x19c782=_0x1e1ff4[_0x465ba9(0x205)]();if(_0x3b49d6[_0x465ba9(0x1e8)](_0x19c782?.[_0x465ba9(0x20f)]?.[_0x465ba9(0x24e)](),_0x3b49d6['rafrR'])){const _0xf8b62c=AutomationFramework[_0x465ba9(0x1fb)]();_0x206fe6=AutomationFramework[_0x465ba9(0x201)](_0xf8b62c,PlaywrightDriverModule[_0x465ba9(0x230)],''),_0x206fe6&&_0x206fe6[_0x465ba9(0x207)](_0x3b49d6[_0x465ba9(0x1f8)])&&(_0x45fc4e=!![]);}}}catch(_0x48b155){logger['debug']('CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20'+_0x48b155);}if(_0x45fc4e){if(!_0x206fe6)throw new Error(_0x3b49d6['VGVeN']);const _0x2e8098=_0x3b49d6[_0x465ba9(0x234)](require,_0x3b49d6[_0x465ba9(0x227)]),_0x1b161e=_0x2e8098[_0x465ba9(0x212)]()[_0x465ba9(0x216)]();if(!_0x1b161e)throw new Error(_0x3b49d6['RbQUd']);const _0x5a10dd=_0x3b49d6['kNcVM'](require,_0x3b49d6['xCwGo']),_0x235959=_0x3b49d6[_0x465ba9(0x20c)](require,_0x3b49d6[_0x465ba9(0x1eb)]),_0x39d03c=_0x1b161e['resolveInstance'](_0x5a10dd[_0x465ba9(0x1e6)],_0x235959['POST']);if(!_0x39d03c)throw new Error(_0x3b49d6[_0x465ba9(0x1ea)]);const _0x358f9e=_0x39d03c['getAllData']()[_0x465ba9(0x204)](_0x206fe6)||{},_0x516832=_0x358f9e[TestFrameworkConstants[_0x465ba9(0x1f9)]]||{};logger[_0x465ba9(0x23b)](_0x465ba9(0x244)+_0x206fe6+_0x465ba9(0x22e)+_0x3cb37d+_0x465ba9(0x1e1)+JSON['stringify'](_0x121e66)+',\x20existingTags='+JSON[_0x465ba9(0x20a)](_0x516832)),CustomTagManager[_0x465ba9(0x235)](_0x516832,_0x3cb37d,_0x121e66),logger[_0x465ba9(0x23b)]('[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key='+_0x3cb37d+'\x20->\x20values='+JSON[_0x465ba9(0x20a)](_0x516832[_0x3cb37d]['values']));const _0x57a51c={[TestFrameworkConstants[_0x465ba9(0x1f9)]]:_0x516832},_0x2724c0={};_0x2724c0[_0x206fe6]=_0x57a51c,_0x39d03c[_0x465ba9(0x1f0)](_0x2724c0),logger[_0x465ba9(0x23b)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x206fe6+_0x465ba9(0x246)+JSON[_0x465ba9(0x20a)](_0x516832)),!this[_0x465ba9(0x210)][_0x206fe6]&&(this[_0x465ba9(0x210)][_0x206fe6]={}),this[_0x465ba9(0x210)][_0x206fe6][_0x3cb37d]=CustomTagManager[_0x465ba9(0x1e0)](this['testLevelTags'][_0x206fe6][_0x3cb37d],_0x121e66);}else{const _0x2b26ce=global[_0x465ba9(0x21f)]?.[_0x465ba9(0x1ca)]?.['testInfo'];if(!_0x2b26ce){const _0x927eaa=AutomationFramework[_0x465ba9(0x1fb)]();_0x206fe6=AutomationFramework[_0x465ba9(0x201)](_0x927eaa,PlaywrightDriverModule['KEY_TEST_ID'],'');if(!_0x206fe6)try{const _0x505d36=_0x3b49d6[_0x465ba9(0x1fc)](require,_0x3b49d6[_0x465ba9(0x227)]),_0x55dcbe=_0x505d36[_0x465ba9(0x212)](),_0x274893=_0x55dcbe&&_0x55dcbe[_0x465ba9(0x216)]();_0x206fe6=_0x274893&&_0x3b49d6[_0x465ba9(0x218)](typeof _0x274893['getCurrentTestUUID'],_0x3b49d6[_0x465ba9(0x220)])&&_0x274893[_0x465ba9(0x1f4)]()||_0x206fe6;}catch(_0x423031){logger[_0x465ba9(0x23b)](_0x465ba9(0x1d2)+(_0x423031&&_0x423031[_0x465ba9(0x1f3)]));}}else _0x206fe6=TestInfo[_0x465ba9(0x1ec)](_0x2b26ce,_0x2b26ce[_0x465ba9(0x248)]);const _0x103704=TestInfo['getTestDetails'](_0x206fe6),_0x50cb6c=_0x103704[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x465ba9(0x235)](_0x50cb6c,_0x3cb37d,_0x121e66),_0x103704[TestFrameworkConstants[_0x465ba9(0x1f9)]]=_0x50cb6c,TestInfo[_0x465ba9(0x21d)](_0x206fe6,_0x103704),!this[_0x465ba9(0x210)][_0x206fe6]&&(this[_0x465ba9(0x210)][_0x206fe6]={}),this[_0x465ba9(0x210)][_0x206fe6][_0x3cb37d]=CustomTagManager[_0x465ba9(0x1e0)](this[_0x465ba9(0x210)][_0x206fe6][_0x3cb37d],_0x121e66);}}}static['getBuildLevelTags'](){const _0x329869=a86_0x14adf6,_0x5e35d8={...this[_0x329869(0x215)]};return _0x5e35d8;}static['getTestLevelTags'](){const _0x384303=a86_0x14adf6,_0x52eee9={...this[_0x384303(0x210)]};return _0x52eee9;}static[a86_0x14adf6(0x1fa)](){const _0x38456d=a86_0x14adf6;this[_0x38456d(0x215)]={},this[_0x38456d(0x210)]={};}static[a86_0x14adf6(0x242)](_0x125a4b,_0x274d99){const _0x4b4fa3=a86_0x14adf6,_0x58ef69={};_0x58ef69[_0x4b4fa3(0x1de)]=function(_0x16c95d,_0x2475c6){return _0x16c95d||_0x2475c6;};const _0x70849a=_0x58ef69;if(!_0x125a4b)return;!this[_0x4b4fa3(0x215)][_0x125a4b]&&(this['buildLevelTags'][_0x125a4b]={});for(const [_0xb3111c,_0x47ccad]of Object[_0x4b4fa3(0x1cf)](_0x70849a[_0x4b4fa3(0x1de)](_0x274d99,{}))){if(!_0x47ccad||!Array[_0x4b4fa3(0x1ed)](_0x47ccad[_0x4b4fa3(0x233)]))continue;this[_0x4b4fa3(0x215)][_0x125a4b][_0xb3111c]=CustomTagManager[_0x4b4fa3(0x1e0)](this[_0x4b4fa3(0x215)][_0x125a4b][_0xb3111c],_0x47ccad[_0x4b4fa3(0x233)]);}}static[a86_0x14adf6(0x245)](_0x14d1d0,_0x4f838c){const _0x74a122=a86_0x14adf6,_0xed4784={};_0xed4784['TSvli']='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0xed4784[_0x74a122(0x247)]=function(_0x378969,_0x3dbd75){return _0x378969*_0x3dbd75;},_0xed4784[_0x74a122(0x1f1)]=function(_0x4d12d9,_0x3ff4e6){return _0x4d12d9>_0x3ff4e6;},_0xed4784[_0x74a122(0x22b)]=function(_0x1c32b9,_0x3c4d65){return _0x1c32b9-_0x3c4d65;},_0xed4784[_0x74a122(0x229)]=_0x74a122(0x1c6);const _0x41585e=_0xed4784;if(!_0x14d1d0)return logger[_0x74a122(0x23b)](_0x41585e[_0x74a122(0x1ef)]),0x0;let _0x5a7121;try{_0x5a7121=os['tmpdir']();}catch(_0x5af655){return logger[_0x74a122(0x23b)](_0x74a122(0x214)+_0x5af655),0x0;}let _0xf06ada;try{_0xf06ada=fs['readdirSync'](_0x5a7121);}catch(_0x46c5a2){return logger[_0x74a122(0x23b)](_0x74a122(0x23d)+_0x46c5a2),0x0;}const _0x915b7=''+BUILD_TAG_FILE_PREFIX+_0x14d1d0+'_',_0x12b39c=_0xf06ada[_0x74a122(0x23c)](_0x4ccab6=>_0x4ccab6['startsWith'](_0x915b7)&&_0x4ccab6[_0x74a122(0x1cb)](_0x74a122(0x24a))),_0x46384f=_0x41585e[_0x74a122(0x247)](_0x41585e['cwHtP'](_0x41585e[_0x74a122(0x247)](0x2,0x3c),0x3c),0x3e8);let _0x553d1c=0x0;for(const _0x5b6eb5 of _0x12b39c){const _0x4b28ae=path[_0x74a122(0x251)](_0x5a7121,_0x5b6eb5);try{const _0xc25ed2=fs[_0x74a122(0x21e)](_0x4b28ae);if(_0x41585e['GUvXw'](_0x41585e[_0x74a122(0x22b)](Date[_0x74a122(0x1cd)](),_0xc25ed2[_0x74a122(0x22f)]),_0x46384f)){logger[_0x74a122(0x23b)](_0x74a122(0x21c)+_0x46384f+_0x74a122(0x200)+_0x5b6eb5);try{fs[_0x74a122(0x22d)](_0x4b28ae);}catch(_0x47684a){logger['debug'](_0x74a122(0x1e4)+_0x5b6eb5+':\x20'+(_0x47684a&&_0x47684a[_0x74a122(0x1f3)]?_0x47684a['message']:_0x47684a));}continue;}const _0x296bee=fs[_0x74a122(0x252)](_0x4b28ae,_0x41585e[_0x74a122(0x229)]),_0x5536de=JSON[_0x74a122(0x21a)](_0x296bee);this[_0x74a122(0x242)](_0x4f838c,_0x5536de),_0x553d1c+=0x1;}catch(_0x36b329){logger[_0x74a122(0x23b)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x5b6eb5+':\x20'+(_0x36b329&&_0x36b329['message']?_0x36b329['message']:_0x36b329));}try{fs[_0x74a122(0x22d)](_0x4b28ae);}catch(_0x575b0e){logger[_0x74a122(0x23b)](_0x74a122(0x225)+_0x5b6eb5+':\x20'+(_0x575b0e&&_0x575b0e[_0x74a122(0x1f3)]?_0x575b0e['message']:_0x575b0e));}}return _0x553d1c;}}function a86_0xe052(_0x161a00,_0x2f46f9){const _0x367e95=a86_0x367e();return a86_0xe052=function(_0xe05287,_0x53c48b){_0xe05287=_0xe05287-0x1c5;let _0x319fd0=_0x367e95[_0xe05287];return _0x319fd0;},a86_0xe052(_0x161a00,_0x2f46f9);}const a86_0x175b28={};a86_0x175b28[a86_0x14adf6(0x23a)]=getBuildTagsRunId,a86_0x175b28[a86_0x14adf6(0x1d9)]=getBuildTagsFilePath,a86_0x175b28['BUILD_TAG_FILE_PREFIX']=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x14adf6(0x24f)]=a86_0x175b28,module['exports']=CustomTagManager;
@@ -1 +1 @@
1
- function a87_0x33ef(){const _0x183270=['124864ZNlKCx','push','262476UOxZGW','4522078rmAUlI','328741YdaDNw','6EHmkfk','807496AyDeaN','9tDHBAl','56795xPiUbB','40947gwdbwo','notifyObserver','QZXbr','observers','freeze','registerObserver','10xovsGy','getInstance','6nDBpUT'];a87_0x33ef=function(){return _0x183270;};return a87_0x33ef();}const a87_0x4c054b=a87_0x235c;(function(_0x28cc39,_0xca2eb0){const _0x125bd2=a87_0x235c,_0x33d2ba=_0x28cc39();while(!![]){try{const _0xdb354a=parseInt(_0x125bd2(0x1c1))/0x1+-parseInt(_0x125bd2(0x1b8))/0x2*(parseInt(_0x125bd2(0x1bd))/0x3)+parseInt(_0x125bd2(0x1ba))/0x4+parseInt(_0x125bd2(0x1c0))/0x5+-parseInt(_0x125bd2(0x1b7))/0x6*(parseInt(_0x125bd2(0x1bc))/0x7)+parseInt(_0x125bd2(0x1be))/0x8*(-parseInt(_0x125bd2(0x1bf))/0x9)+parseInt(_0x125bd2(0x1b5))/0xa*(parseInt(_0x125bd2(0x1bb))/0xb);if(_0xdb354a===_0xca2eb0)break;else _0x33d2ba['push'](_0x33d2ba['shift']());}catch(_0x273c4f){_0x33d2ba['push'](_0x33d2ba['shift']());}}}(a87_0x33ef,0x3e903));const {createClassLogger}=require('../../helpers/classLogger.js');function a87_0x235c(_0x26b6fe,_0x274377){const _0x33efcb=a87_0x33ef();return a87_0x235c=function(_0x235caf,_0x4e416a){_0x235caf=_0x235caf-0x1b2;let _0x6fd7e0=_0x33efcb[_0x235caf];return _0x6fd7e0;},a87_0x235c(_0x26b6fe,_0x274377);}class EventDispatcher{static #instance=null;constructor(){const _0x2c7a3d=a87_0x235c;this[_0x2c7a3d(0x1b2)]={};}static[a87_0x4c054b(0x1b6)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x4c054b(0x1b4)](_0x4bce89,_0xd870b){const _0x1947b6=a87_0x4c054b;!this[_0x1947b6(0x1b2)][_0x4bce89]&&(this[_0x1947b6(0x1b2)][_0x4bce89]=[]),this[_0x1947b6(0x1b2)][_0x4bce89][_0x1947b6(0x1b9)](_0xd870b);}async[a87_0x4c054b(0x1c2)](_0x2077f2,_0x53f363){const _0x6b1177=a87_0x4c054b,_0x289ede={'QZXbr':function(_0x47b040,_0x33eff2){return _0x47b040(_0x33eff2);}};if(this[_0x6b1177(0x1b2)][_0x2077f2]){for(const _0x1bfc65 of this[_0x6b1177(0x1b2)][_0x2077f2]){await _0x289ede[_0x6b1177(0x1c3)](_0x1bfc65,_0x53f363);}return;}}}const eventDispatcher=EventDispatcher[a87_0x4c054b(0x1b6)]();Object[a87_0x4c054b(0x1b3)](eventDispatcher),module['exports']=eventDispatcher;
1
+ function a87_0xe2ac(){const _0x3965f6=['4386348ekRngc','19770wORJPK','1221246jFGxTK','GIRnu','exports','2056LXjIlm','1107752ZThRVc','194652HlzFBX','../../helpers/classLogger.js','push','1068nsmRiA','17577aguSGr','freeze','getInstance','observers','notifyObserver','3152488RCUnor'];a87_0xe2ac=function(){return _0x3965f6;};return a87_0xe2ac();}function a87_0x19ef(_0x6053b,_0x453000){const _0xe2accd=a87_0xe2ac();return a87_0x19ef=function(_0x19efab,_0x199d0d){_0x19efab=_0x19efab-0x1b3;let _0x36186f=_0xe2accd[_0x19efab];return _0x36186f;},a87_0x19ef(_0x6053b,_0x453000);}const a87_0x54bad9=a87_0x19ef;(function(_0x3f872f,_0x3b9aa4){const _0x33874b=a87_0x19ef,_0x1e606e=_0x3f872f();while(!![]){try{const _0x102f18=-parseInt(_0x33874b(0x1ba))/0x1+parseInt(_0x33874b(0x1b9))/0x2+parseInt(_0x33874b(0x1b5))/0x3+-parseInt(_0x33874b(0x1c3))/0x4+-parseInt(_0x33874b(0x1b4))/0x5*(parseInt(_0x33874b(0x1bd))/0x6)+-parseInt(_0x33874b(0x1be))/0x7*(-parseInt(_0x33874b(0x1b8))/0x8)+parseInt(_0x33874b(0x1b3))/0x9;if(_0x102f18===_0x3b9aa4)break;else _0x1e606e['push'](_0x1e606e['shift']());}catch(_0x441a92){_0x1e606e['push'](_0x1e606e['shift']());}}}(a87_0xe2ac,0x6361f));const {createClassLogger}=require(a87_0x54bad9(0x1bb));class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static[a87_0x54bad9(0x1c0)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}['registerObserver'](_0xbdb98e,_0x59d7d4){const _0x1bb00c=a87_0x54bad9;!this[_0x1bb00c(0x1c1)][_0xbdb98e]&&(this[_0x1bb00c(0x1c1)][_0xbdb98e]=[]),this[_0x1bb00c(0x1c1)][_0xbdb98e][_0x1bb00c(0x1bc)](_0x59d7d4);}async[a87_0x54bad9(0x1c2)](_0x45b40b,_0x1802d2){const _0x31e647=a87_0x54bad9,_0x35772c={'GIRnu':function(_0x2202db,_0x4e9c87){return _0x2202db(_0x4e9c87);}};if(this[_0x31e647(0x1c1)][_0x45b40b]){for(const _0x375f23 of this['observers'][_0x45b40b]){await _0x35772c[_0x31e647(0x1b6)](_0x375f23,_0x1802d2);}return;}}}const eventDispatcher=EventDispatcher[a87_0x54bad9(0x1c0)]();Object[a87_0x54bad9(0x1bf)](eventDispatcher),module[a87_0x54bad9(0x1b7)]=eventDispatcher;
@@ -1 +1 @@
1
- const a88_0x32ec5f=a88_0xc80b;(function(_0x5e7d2d,_0x23d45f){const _0x892c2c=a88_0xc80b,_0x3fc413=_0x5e7d2d();while(!![]){try{const _0x6b7029=parseInt(_0x892c2c(0xe0))/0x1+parseInt(_0x892c2c(0xed))/0x2+-parseInt(_0x892c2c(0xe6))/0x3+-parseInt(_0x892c2c(0xd9))/0x4*(-parseInt(_0x892c2c(0xdb))/0x5)+parseInt(_0x892c2c(0xc9))/0x6*(parseInt(_0x892c2c(0xc7))/0x7)+-parseInt(_0x892c2c(0xce))/0x8+parseInt(_0x892c2c(0xea))/0x9*(parseInt(_0x892c2c(0xe7))/0xa);if(_0x6b7029===_0x23d45f)break;else _0x3fc413['push'](_0x3fc413['shift']());}catch(_0x23abe5){_0x3fc413['push'](_0x3fc413['shift']());}}}(a88_0x41f8,0xe39a2));function a88_0xc80b(_0x25719b,_0x2b173e){const _0x41f8de=a88_0x41f8();return a88_0xc80b=function(_0xc80b2f,_0x2dbcc1){_0xc80b2f=_0xc80b2f-0xc5;let _0xa5af8f=_0x41f8de[_0xc80b2f];return _0xa5af8f;},a88_0xc80b(_0x25719b,_0x2b173e);}const {createClassLogger}=require(a88_0x32ec5f(0xe4)),util=require(a88_0x32ec5f(0xe9)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a88_0x32ec5f(0xcc)),TrackedInstance=require(a88_0x32ec5f(0xe8)),logger=createClassLogger(a88_0x32ec5f(0xdd));class AutomationFramework{static [a88_0x32ec5f(0xd8)]=new Map();static ['KEY_AUTOMATION_SESSIONS']=a88_0x32ec5f(0xec);static [a88_0x32ec5f(0xda)]=a88_0x32ec5f(0xd3);constructor(_0x349220,_0x216e52){const _0x419a4f=a88_0x32ec5f;this[_0x419a4f(0xd6)]=_0x349220,this['automationFrameworkVersion']=_0x216e52;}['getAutomationFrameworkName'](){const _0x52fe33=a88_0x32ec5f;return this[_0x52fe33(0xd6)];}['getAutomationFrameworkVersion'](){const _0x1a2ad5=a88_0x32ec5f;return this[_0x1a2ad5(0xca)];}async['trackEvent'](_0xec9979,_0x183b66,_0xae0d9d={}){const _0x742e02=a88_0x32ec5f;logger[_0x742e02(0xd7)]('trackEvent:\x20automationFrameworkState='+_0xec9979+_0x742e02(0xd0)+_0x183b66);}async[a88_0x32ec5f(0xe5)](_0x173bab,_0x474211,_0x2e9371,_0x286899={}){const _0x197400=a88_0x32ec5f,_0x33d1f8=CLIUtils[_0x197400(0xdc)](_0x474211,_0x2e9371);_0x173bab&&_0x173bab[_0x197400(0xd4)](_0x474211),await eventDispatcher[_0x197400(0xc5)](_0x33d1f8,_0x286899);}static[a88_0x32ec5f(0xcd)](_0x2e0074,_0x5ec345,_0x440541){const _0xa596f1=a88_0x32ec5f;eventDispatcher['registerObserver'](CLIUtils[_0xa596f1(0xdc)](_0x2e0074,_0x5ec345),_0x440541);}static[a88_0x32ec5f(0xcb)](_0x540b36,_0x9e9cc3){const _0x3b7172=a88_0x32ec5f;AutomationFramework['instances'][_0x3b7172(0xc8)](_0x540b36[_0x3b7172(0xdf)](),_0x9e9cc3);}static[a88_0x32ec5f(0xe3)](){const _0x26d0ec=a88_0x32ec5f,_0x1a0bb9=TrackedInstance[_0x26d0ec(0xd5)](CLIUtils[_0x26d0ec(0xd1)]());return AutomationFramework[_0x26d0ec(0xd8)][_0x26d0ec(0xc6)](_0x1a0bb9[_0x26d0ec(0xdf)]());}static[a88_0x32ec5f(0xd4)](_0x6ea4da,_0x186d6d,_0x59c096){const _0x379f3b=a88_0x32ec5f;_0x6ea4da[_0x379f3b(0xcf)]()[_0x379f3b(0xc8)](_0x186d6d,_0x59c096);}static['getState'](_0x47b2ad,_0xb6c7db,_0x514de5=undefined){const _0x5531a3=a88_0x32ec5f,_0x27b736={};_0x27b736[_0x5531a3(0xd2)]=function(_0x395722,_0x56b61e){return _0x395722!==_0x56b61e;},_0x27b736[_0x5531a3(0xe2)]=_0x5531a3(0xe1),_0x27b736[_0x5531a3(0xde)]=function(_0x3ff355,_0x573cb6){return _0x3ff355===_0x573cb6;};const _0x472217=_0x27b736;if(!_0x47b2ad||_0x472217[_0x5531a3(0xd2)](typeof _0x47b2ad['getAllData'],_0x472217[_0x5531a3(0xe2)]))return _0x514de5;const _0x2a3271=_0x47b2ad[_0x5531a3(0xcf)]()['get'](_0xb6c7db);return _0x472217[_0x5531a3(0xde)](_0x2a3271,undefined)?_0x514de5:_0x2a3271;}}function a88_0x41f8(){const _0x528cfd=['dUHHB','non_browserstack_automation_sessions','setState','createContext','automationFrameworkName','debug','instances','16UeFKQx','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','62580QRYRne','getHookRegistryKey','AutomationFramework','FGcUs','getId','764205eYRBqS','function','MqdPE','getTrackedInstance','../../../helpers/classLogger.js','runHooks','5038248lUwgeS','19892050wAowXB','../instances/trackedInstance.js','util','9wZJwVa','exports','automation_sessions','5678tbCxwC','notifyObserver','get','7049SpckLt','set','6942EWEAds','automationFrameworkVersion','setTrackedInstance','../cliUtils.js','registerObserver','10877904hqZevc','getAllData','\x20hookState=','getCurrentInstanceName'];a88_0x41f8=function(){return _0x528cfd;};return a88_0x41f8();}module[a88_0x32ec5f(0xeb)]=AutomationFramework;
1
+ const a88_0xc554d2=a88_0x2fb8;(function(_0x557bf2,_0x303a06){const _0x3aa80e=a88_0x2fb8,_0x1afe9e=_0x557bf2();while(!![]){try{const _0x1674a0=-parseInt(_0x3aa80e(0x113))/0x1*(-parseInt(_0x3aa80e(0x111))/0x2)+-parseInt(_0x3aa80e(0x107))/0x3+-parseInt(_0x3aa80e(0x116))/0x4+parseInt(_0x3aa80e(0x10b))/0x5*(-parseInt(_0x3aa80e(0x10c))/0x6)+-parseInt(_0x3aa80e(0x115))/0x7+parseInt(_0x3aa80e(0x10e))/0x8*(-parseInt(_0x3aa80e(0x110))/0x9)+-parseInt(_0x3aa80e(0x10a))/0xa*(-parseInt(_0x3aa80e(0x101))/0xb);if(_0x1674a0===_0x303a06)break;else _0x1afe9e['push'](_0x1afe9e['shift']());}catch(_0x1f7e46){_0x1afe9e['push'](_0x1afe9e['shift']());}}}(a88_0x2d3b,0x28c26));function a88_0x2d3b(){const _0x74d349=['getAllData','1eOuYYn','../eventDispatcher.js','694295ABSzzC','6824aDSixq','automationFrameworkName','rWvNb','getHookRegistryKey','\x20hookState=','runHooks','AutomationFramework','instances','function','setTrackedInstance','registerObserver','getTrackedInstance','getAutomationFrameworkVersion','debug','exports','set','getState','11ftzgbg','getId','trackEvent:\x20automationFrameworkState=','automation_sessions','KDpge','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','491886vYXNKC','../../../helpers/classLogger.js','automationFrameworkVersion','3728220lCvHGR','5wRAgrA','1038318leSXNG','setState','59352tAXvOS','non_browserstack_automation_sessions','45igAuaC','538258dxKonQ'];a88_0x2d3b=function(){return _0x74d349;};return a88_0x2d3b();}function a88_0x2fb8(_0x37be94,_0x5bc2b9){const _0x2d3bc0=a88_0x2d3b();return a88_0x2fb8=function(_0x2fb874,_0x2ad67d){_0x2fb874=_0x2fb874-0xf3;let _0x591d81=_0x2d3bc0[_0x2fb874];return _0x591d81;},a88_0x2fb8(_0x37be94,_0x5bc2b9);}const {createClassLogger}=require(a88_0xc554d2(0x108)),util=require('util'),eventDispatcher=require(a88_0xc554d2(0x114)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a88_0xc554d2(0xf6));class AutomationFramework{static [a88_0xc554d2(0xf7)]=new Map();static ['KEY_AUTOMATION_SESSIONS']=a88_0xc554d2(0x104);static [a88_0xc554d2(0x106)]=a88_0xc554d2(0x10f);constructor(_0x116129,_0xecf7f7){const _0x3c4368=a88_0xc554d2;this['automationFrameworkName']=_0x116129,this[_0x3c4368(0x109)]=_0xecf7f7;}['getAutomationFrameworkName'](){const _0x52a888=a88_0xc554d2;return this[_0x52a888(0x117)];}[a88_0xc554d2(0xfc)](){const _0x352f2e=a88_0xc554d2;return this[_0x352f2e(0x109)];}async['trackEvent'](_0x21c16f,_0x4aefd5,_0x654214={}){const _0x19e90a=a88_0xc554d2;logger[_0x19e90a(0xfd)](_0x19e90a(0x103)+_0x21c16f+_0x19e90a(0xf4)+_0x4aefd5);}async[a88_0xc554d2(0xf5)](_0x3efbfe,_0x5726e4,_0x45ff36,_0x3d6bcd={}){const _0xf60605=a88_0xc554d2,_0x5bc3d9=CLIUtils['getHookRegistryKey'](_0x5726e4,_0x45ff36);_0x3efbfe&&_0x3efbfe[_0xf60605(0x10d)](_0x5726e4),await eventDispatcher['notifyObserver'](_0x5bc3d9,_0x3d6bcd);}static[a88_0xc554d2(0xfa)](_0x10f9a5,_0x1bd64e,_0x116176){const _0x5f350c=a88_0xc554d2;eventDispatcher[_0x5f350c(0xfa)](CLIUtils[_0x5f350c(0xf3)](_0x10f9a5,_0x1bd64e),_0x116176);}static[a88_0xc554d2(0xf9)](_0x27f0a,_0x15614e){const _0x17d1f6=a88_0xc554d2;AutomationFramework[_0x17d1f6(0xf7)]['set'](_0x27f0a[_0x17d1f6(0x102)](),_0x15614e);}static[a88_0xc554d2(0xfb)](){const _0x534553=a88_0xc554d2,_0x31f900=TrackedInstance['createContext'](CLIUtils['getCurrentInstanceName']());return AutomationFramework[_0x534553(0xf7)]['get'](_0x31f900[_0x534553(0x102)]());}static['setState'](_0x41c960,_0x1d5f17,_0x4646ad){const _0x3d374e=a88_0xc554d2;_0x41c960[_0x3d374e(0x112)]()[_0x3d374e(0xff)](_0x1d5f17,_0x4646ad);}static[a88_0xc554d2(0x100)](_0xce3b7a,_0x204c09,_0x150f1f=undefined){const _0x552e13=a88_0xc554d2,_0x2fb7ed={};_0x2fb7ed['mrZLg']=function(_0x23547b,_0x193276){return _0x23547b!==_0x193276;},_0x2fb7ed[_0x552e13(0x118)]=_0x552e13(0xf8),_0x2fb7ed[_0x552e13(0x105)]=function(_0x541a9c,_0x248327){return _0x541a9c===_0x248327;};const _0x36902d=_0x2fb7ed;if(!_0xce3b7a||_0x36902d['mrZLg'](typeof _0xce3b7a[_0x552e13(0x112)],_0x36902d['rWvNb']))return _0x150f1f;const _0x2e8c0c=_0xce3b7a[_0x552e13(0x112)]()['get'](_0x204c09);return _0x36902d['KDpge'](_0x2e8c0c,undefined)?_0x150f1f:_0x2e8c0c;}}module[a88_0xc554d2(0xfe)]=AutomationFramework;
@@ -1 +1 @@
1
- const a89_0x3c77be=a89_0x47df;(function(_0x2094b4,_0x54a262){const _0x58847c=a89_0x47df,_0x5cc08a=_0x2094b4();while(!![]){try{const _0x603703=-parseInt(_0x58847c(0xcb))/0x1*(parseInt(_0x58847c(0xdf))/0x2)+-parseInt(_0x58847c(0xdc))/0x3+-parseInt(_0x58847c(0xd5))/0x4*(parseInt(_0x58847c(0xc9))/0x5)+-parseInt(_0x58847c(0xd3))/0x6*(parseInt(_0x58847c(0xdd))/0x7)+parseInt(_0x58847c(0xcf))/0x8*(-parseInt(_0x58847c(0xd7))/0x9)+parseInt(_0x58847c(0xd4))/0xa+-parseInt(_0x58847c(0xd0))/0xb*(-parseInt(_0x58847c(0xe2))/0xc);if(_0x603703===_0x54a262)break;else _0x5cc08a['push'](_0x5cc08a['shift']());}catch(_0x4041ab){_0x5cc08a['push'](_0x5cc08a['shift']());}}}(a89_0x3fd7,0x827f4));const a89_0x53338b={};function a89_0x3fd7(){const _0x4d9346=['exports','471176MCawOY','625977wgsvce','quit','is_browserstack_hub','181614soBqcJ','3658240aZnkvo','32FGjoTP','KEY_STARTED_AT','117ZpEzQJ','COMMAND_GET','COMMAND_SCREENSHOT','KEY_INPUT_CAPABILITIES','COMMAND_QUIT','2990775nobfrt','147dWkbYP','KEY_ENDED_AT','314hoasvV','started_at','input_capabilities','900VZyCix','w3cexecutescriptasync','BROWSERSTACK_PLATFORM_INDEX','COMMAND_W3C_EXECUTE_SCRIPT','get','COMMAND_NEW_SESSION','capabilities','KEY_PLATFORM_INDEX','KEY_CAPABILITIES','415365UIpeBI','screenshot','6602YAvMPl','KEY_IS_BROWSERSTACK_HUB','ended_at'];a89_0x3fd7=function(){return _0x4d9346;};return a89_0x3fd7();}function a89_0x47df(_0x3746d4,_0x407649){const _0x3fd70b=a89_0x3fd7();return a89_0x47df=function(_0x47df73,_0x5a7a64){_0x47df73=_0x47df73-0xc9;let _0x36f646=_0x3fd70b[_0x47df73];return _0x36f646;},a89_0x47df(_0x3746d4,_0x407649);}a89_0x53338b['ENV_BROWSERSTACK_PLATFORM_INDEX']=a89_0x3c77be(0xe4),a89_0x53338b['KEY_HUB_URL']='hub_url',a89_0x53338b['KEY_FRAMEWORK_SESSION_ID']='framework_session_id',a89_0x53338b[a89_0x3c77be(0xda)]=a89_0x3c77be(0xe1),a89_0x53338b[a89_0x3c77be(0xea)]=a89_0x3c77be(0xe8),a89_0x53338b[a89_0x3c77be(0xcc)]=a89_0x3c77be(0xd2),a89_0x53338b[a89_0x3c77be(0xd6)]=a89_0x3c77be(0xe0),a89_0x53338b[a89_0x3c77be(0xde)]=a89_0x3c77be(0xcd),a89_0x53338b[a89_0x3c77be(0xe9)]='platform_index',a89_0x53338b[a89_0x3c77be(0xe7)]='newsession',a89_0x53338b[a89_0x3c77be(0xd8)]=a89_0x3c77be(0xe6),a89_0x53338b[a89_0x3c77be(0xd9)]=a89_0x3c77be(0xca),a89_0x53338b[a89_0x3c77be(0xe5)]='w3cexecutescript',a89_0x53338b['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a89_0x3c77be(0xe3),a89_0x53338b[a89_0x3c77be(0xdb)]=a89_0x3c77be(0xd1);const AutomationFrameworkConstants=a89_0x53338b;module[a89_0x3c77be(0xce)]=AutomationFrameworkConstants;
1
+ const a89_0x47d75e=a89_0x2124;function a89_0x2124(_0x5a3a84,_0x2e0b9b){const _0x374c96=a89_0x374c();return a89_0x2124=function(_0x21248a,_0x26bda0){_0x21248a=_0x21248a-0x1b4;let _0x2505e9=_0x374c96[_0x21248a];return _0x2505e9;},a89_0x2124(_0x5a3a84,_0x2e0b9b);}(function(_0x2f5213,_0x176e1e){const _0x212aec=a89_0x2124,_0x3e1cc6=_0x2f5213();while(!![]){try{const _0x5aba99=-parseInt(_0x212aec(0x1ca))/0x1+-parseInt(_0x212aec(0x1d1))/0x2*(parseInt(_0x212aec(0x1bd))/0x3)+-parseInt(_0x212aec(0x1c6))/0x4+parseInt(_0x212aec(0x1cb))/0x5+parseInt(_0x212aec(0x1c9))/0x6*(parseInt(_0x212aec(0x1cd))/0x7)+-parseInt(_0x212aec(0x1c7))/0x8*(-parseInt(_0x212aec(0x1bf))/0x9)+parseInt(_0x212aec(0x1c1))/0xa;if(_0x5aba99===_0x176e1e)break;else _0x3e1cc6['push'](_0x3e1cc6['shift']());}catch(_0x15e0d5){_0x3e1cc6['push'](_0x3e1cc6['shift']());}}}(a89_0x374c,0x4d4e7));const a89_0x10f826={};function a89_0x374c(){const _0x37be8d=['521229UutoAU','773770FiNVqL','COMMAND_SCREENSHOT','21NlTclT','KEY_CAPABILITIES','KEY_IS_BROWSERSTACK_HUB','screenshot','18gQxxVJ','w3cexecutescriptasync','quit','platform_index','newsession','BROWSERSTACK_PLATFORM_INDEX','ENV_BROWSERSTACK_PLATFORM_INDEX','KEY_PLATFORM_INDEX','COMMAND_NEW_SESSION','KEY_HUB_URL','get','capabilities','COMMAND_GET','KEY_ENDED_AT','200388IwDwJI','COMMAND_QUIT','124029CBFFpz','KEY_STARTED_AT','9044940lQUhzk','hub_url','exports','input_capabilities','w3cexecutescript','1389204kEIUlG','208lFStGa','started_at','737574vwiXQn'];a89_0x374c=function(){return _0x37be8d;};return a89_0x374c();}a89_0x10f826[a89_0x47d75e(0x1b5)]=a89_0x47d75e(0x1b4),a89_0x10f826[a89_0x47d75e(0x1b8)]=a89_0x47d75e(0x1c2),a89_0x10f826['KEY_FRAMEWORK_SESSION_ID']='framework_session_id',a89_0x10f826['KEY_INPUT_CAPABILITIES']=a89_0x47d75e(0x1c4),a89_0x10f826[a89_0x47d75e(0x1ce)]=a89_0x47d75e(0x1ba),a89_0x10f826[a89_0x47d75e(0x1cf)]='is_browserstack_hub',a89_0x10f826[a89_0x47d75e(0x1c0)]=a89_0x47d75e(0x1c8),a89_0x10f826[a89_0x47d75e(0x1bc)]='ended_at',a89_0x10f826[a89_0x47d75e(0x1b6)]=a89_0x47d75e(0x1d4),a89_0x10f826[a89_0x47d75e(0x1b7)]=a89_0x47d75e(0x1d5),a89_0x10f826[a89_0x47d75e(0x1bb)]=a89_0x47d75e(0x1b9),a89_0x10f826[a89_0x47d75e(0x1cc)]=a89_0x47d75e(0x1d0),a89_0x10f826['COMMAND_W3C_EXECUTE_SCRIPT']=a89_0x47d75e(0x1c5),a89_0x10f826['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a89_0x47d75e(0x1d2),a89_0x10f826[a89_0x47d75e(0x1be)]=a89_0x47d75e(0x1d3);const AutomationFrameworkConstants=a89_0x10f826;module[a89_0x47d75e(0x1c3)]=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- const a90_0x5d811f=a90_0xdbc7;(function(_0x5291e5,_0x49f2e6){const _0x3f9dfd=a90_0xdbc7,_0xd852c6=_0x5291e5();while(!![]){try{const _0x36f363=-parseInt(_0x3f9dfd(0x13b))/0x1*(-parseInt(_0x3f9dfd(0x177))/0x2)+-parseInt(_0x3f9dfd(0x141))/0x3*(parseInt(_0x3f9dfd(0x18e))/0x4)+-parseInt(_0x3f9dfd(0x15e))/0x5+parseInt(_0x3f9dfd(0x168))/0x6+parseInt(_0x3f9dfd(0x15d))/0x7+-parseInt(_0x3f9dfd(0x136))/0x8*(parseInt(_0x3f9dfd(0x167))/0x9)+-parseInt(_0x3f9dfd(0x166))/0xa*(-parseInt(_0x3f9dfd(0x146))/0xb);if(_0x36f363===_0x49f2e6)break;else _0xd852c6['push'](_0xd852c6['shift']());}catch(_0x412ab9){_0xd852c6['push'](_0xd852c6['shift']());}}}(a90_0x4524,0xb7720));function a90_0x4524(){const _0x12998b=['KEY_TEST_META','8DrXwNn','platform_index','automate_session_reason','file_name','file_path','178019QLLjBF','KEY_TEST_FRAMEWORK_VERSION','KEY_FILE_NAME','TEST_SCREENSHOT','KEY_LOGS','test_meta','2731116PPInHL','KEY_HOOK_ID','KEY_TEST_RETRY_OF','KEY_HOOKS_STARTED','KEY_TEST_SCOPE','4197402CYgeOZ','test_failure_reason','test_started_at','hook_name','hook_failure_reason','KEY_TEST_LOCATION','MAX_NESTED_STEP_DEPTH','KEY_TEST_FAILURE_TYPE','hook_failure','TEST_LOG','KEY_TEST_STARTED_AT','test_failure_type','KEY_HOOK_FAILURE_TYPE','KEY_HOOKS_FINISHED','KEY_HOOK_FAILURE_REASON','KEY_TEST_FILE_PATH','KEY_TEST_RERUN_NAME','KEY_TEST_UUID','hook_id','test_hook_last_finished','test_file_path','test_name','KEY_SESSION_NAME','9003435kedpPD','5115685zqnwpt','test_framework_version','KIND_LOG','test_uuid','retry_of','KEY_TEST_RESULT','KEY_TEST_SCOPES','KEY_TEST_ENDED_AT','10QBLPuu','4656906vrDASU','2798604swIccq','KEY_TEST_ID','KEY_HOOK_FAILURE','test_session_name','test_ended_at','test_framework_name','hook_result','test_screenshots','KEY_FILE_SIZE','KEY_HOOK_LOGS','test_rerun_name','KEY_AUTOMATE_SESSION_NAME','KEY_HOOK_LAST_FINISHED','custom_metadata','KEY_TEST_TAGS','12ECEjhd','KEY_AUTOMATE_SESSION_REASON','KEY_HOOK_LAST_STARTED','test_failure','KIND_SCREENSHOT','test_result_at','MAX_TOP_LEVEL_STEPS','test_scopes','HOOK_REGEX','file_size','test_result','KEY_PLATFORM_INDEX','test_hook_last_started','KEY_EVENT_STARTED_AT','test_scope','file_level','hook_failure_type','exports','KEY_HOOK_NAME','DEFAULT_HOOK_RESULT','hook_logs','test_code','test_id','4fgBkZw','KEY_HOOK_RESULT','KEY_EVENT_ENDED_AT','test_hooks_finished','KEY_FILE_PATH','KEY_TEST_CODE'];a90_0x4524=function(){return _0x12998b;};return a90_0x4524();}const a90_0x2f19d0={};a90_0x2f19d0[a90_0x5d811f(0x157)]=a90_0x5d811f(0x161),a90_0x2f19d0[a90_0x5d811f(0x169)]=a90_0x5d811f(0x18d),a90_0x2f19d0['KEY_TEST_NAME']=a90_0x5d811f(0x15b),a90_0x2f19d0[a90_0x5d811f(0x155)]=a90_0x5d811f(0x15a),a90_0x2f19d0[a90_0x5d811f(0x176)]='test_tags',a90_0x2f19d0[a90_0x5d811f(0x163)]=a90_0x5d811f(0x181),a90_0x2f19d0['KEY_TEST_RESULT_AT']=a90_0x5d811f(0x17c),a90_0x2f19d0[a90_0x5d811f(0x150)]=a90_0x5d811f(0x148),a90_0x2f19d0[a90_0x5d811f(0x165)]=a90_0x5d811f(0x16c),a90_0x2f19d0[a90_0x5d811f(0x14b)]='test_location',a90_0x2f19d0['KEY_TEST_DURATION']='test_duration',a90_0x2f19d0[a90_0x5d811f(0x145)]=a90_0x5d811f(0x185),a90_0x2f19d0[a90_0x5d811f(0x164)]=a90_0x5d811f(0x17e),a90_0x2f19d0['KEY_TEST_FRAMEWORK_NAME']=a90_0x5d811f(0x16d),a90_0x2f19d0[a90_0x5d811f(0x13c)]=a90_0x5d811f(0x15f),a90_0x2f19d0[a90_0x5d811f(0x134)]=a90_0x5d811f(0x18c),a90_0x2f19d0[a90_0x5d811f(0x156)]=a90_0x5d811f(0x172),a90_0x2f19d0[a90_0x5d811f(0x143)]=a90_0x5d811f(0x162),a90_0x2f19d0[a90_0x5d811f(0x182)]=a90_0x5d811f(0x137),a90_0x2f19d0['KEY_TEST_FAILURE']=a90_0x5d811f(0x17a),a90_0x2f19d0[a90_0x5d811f(0x14d)]=a90_0x5d811f(0x151),a90_0x2f19d0['KEY_TEST_FAILURE_REASON']=a90_0x5d811f(0x147),a90_0x2f19d0['KEY_TEST_LOGS']='test_logs',a90_0x2f19d0[a90_0x5d811f(0x135)]=a90_0x5d811f(0x140),a90_0x2f19d0[a90_0x5d811f(0x15c)]=a90_0x5d811f(0x16b),a90_0x2f19d0[a90_0x5d811f(0x173)]='automate_session_name',a90_0x2f19d0['KEY_AUTOMATE_SESSION_STATUS']='automate_session_status',a90_0x2f19d0[a90_0x5d811f(0x178)]=a90_0x5d811f(0x138),a90_0x2f19d0[a90_0x5d811f(0x184)]='event_started_at',a90_0x2f19d0[a90_0x5d811f(0x190)]='event_ended_at',a90_0x2f19d0[a90_0x5d811f(0x142)]=a90_0x5d811f(0x158),a90_0x2f19d0[a90_0x5d811f(0x18f)]=a90_0x5d811f(0x16e),a90_0x2f19d0[a90_0x5d811f(0x152)]=a90_0x5d811f(0x187),a90_0x2f19d0[a90_0x5d811f(0x154)]=a90_0x5d811f(0x14a),a90_0x2f19d0[a90_0x5d811f(0x16a)]=a90_0x5d811f(0x14e),a90_0x2f19d0[a90_0x5d811f(0x171)]=a90_0x5d811f(0x18b),a90_0x2f19d0[a90_0x5d811f(0x189)]=a90_0x5d811f(0x149),a90_0x2f19d0['DEFAULT_TEST_RESULT']='pending',a90_0x2f19d0[a90_0x5d811f(0x18a)]='pending',a90_0x2f19d0[a90_0x5d811f(0x17b)]=a90_0x5d811f(0x13e),a90_0x2f19d0[a90_0x5d811f(0x160)]=a90_0x5d811f(0x14f),a90_0x2f19d0[a90_0x5d811f(0x17f)]='^(BEFORE_|AFTER_)',a90_0x2f19d0[a90_0x5d811f(0x144)]='test_hooks_started',a90_0x2f19d0[a90_0x5d811f(0x153)]=a90_0x5d811f(0x132),a90_0x2f19d0[a90_0x5d811f(0x179)]=a90_0x5d811f(0x183),a90_0x2f19d0[a90_0x5d811f(0x174)]=a90_0x5d811f(0x159),a90_0x2f19d0[a90_0x5d811f(0x13f)]='logs',a90_0x2f19d0['KEY_CUSTOM_TAGS']=a90_0x5d811f(0x175),a90_0x2f19d0['KEY_TEST_ATTACHMENTS']='test_attachments',a90_0x2f19d0[a90_0x5d811f(0x170)]=a90_0x5d811f(0x180),a90_0x2f19d0[a90_0x5d811f(0x13d)]=a90_0x5d811f(0x139),a90_0x2f19d0[a90_0x5d811f(0x133)]=a90_0x5d811f(0x13a),a90_0x2f19d0['KEY_FILE_LEVEL']=a90_0x5d811f(0x186),a90_0x2f19d0['KEY_TEST_SCREENSHOTS']=a90_0x5d811f(0x16f),a90_0x2f19d0[a90_0x5d811f(0x17d)]=0xa,a90_0x2f19d0[a90_0x5d811f(0x14c)]=0x2;function a90_0xdbc7(_0x1e5480,_0x3e85cc){const _0x452419=a90_0x4524();return a90_0xdbc7=function(_0xdbc773,_0x4b8780){_0xdbc773=_0xdbc773-0x132;let _0x6ac471=_0x452419[_0xdbc773];return _0x6ac471;},a90_0xdbc7(_0x1e5480,_0x3e85cc);}const TestFrameworkConstants=a90_0x2f19d0;module[a90_0x5d811f(0x188)]=TestFrameworkConstants;
1
+ const a90_0x54a0b8=a90_0x53ce;(function(_0x27edf2,_0x593996){const _0x3a65e5=a90_0x53ce,_0x204b71=_0x27edf2();while(!![]){try{const _0x18a2f3=-parseInt(_0x3a65e5(0x11e))/0x1+-parseInt(_0x3a65e5(0x136))/0x2*(parseInt(_0x3a65e5(0x15a))/0x3)+-parseInt(_0x3a65e5(0x13e))/0x4*(parseInt(_0x3a65e5(0x164))/0x5)+parseInt(_0x3a65e5(0x113))/0x6*(-parseInt(_0x3a65e5(0x10d))/0x7)+-parseInt(_0x3a65e5(0x150))/0x8*(-parseInt(_0x3a65e5(0x139))/0x9)+parseInt(_0x3a65e5(0x11a))/0xa+parseInt(_0x3a65e5(0x15d))/0xb*(parseInt(_0x3a65e5(0x12e))/0xc);if(_0x18a2f3===_0x593996)break;else _0x204b71['push'](_0x204b71['shift']());}catch(_0x9643c1){_0x204b71['push'](_0x204b71['shift']());}}}(a90_0x2a13,0xeec7e));function a90_0x53ce(_0x47c0a0,_0x317aad){const _0x2a1362=a90_0x2a13();return a90_0x53ce=function(_0x53ce01,_0x49a45a){_0x53ce01=_0x53ce01-0x10d;let _0xfa359b=_0x2a1362[_0x53ce01];return _0xfa359b;},a90_0x53ce(_0x47c0a0,_0x317aad);}function a90_0x2a13(){const _0x127dd6=['35795HyNPFA','6435667xIgrko','KEY_HOOK_ID','retry_of','test_failure_type','KEY_TEST_DURATION','KEY_TEST_LOCATION','12YgzGpq','test_scope','KEY_FILE_NAME','KEY_AUTOMATE_SESSION_STATUS','KEY_TEST_SCOPES','automate_session_name','KIND_SCREENSHOT','3157910KKKFWm','DEFAULT_TEST_RESULT','test_framework_version','event_ended_at','1485058bWMiNv','KEY_TEST_RETRY_OF','file_size','pending','KEY_HOOK_FAILURE','KEY_TEST_RESULT_AT','KEY_PLATFORM_INDEX','test_id','KEY_EVENT_ENDED_AT','test_code','KEY_TEST_FRAMEWORK_VERSION','test_ended_at','automate_session_reason','KEY_HOOK_FAILURE_TYPE','HOOK_REGEX','hook_id','118308PXWrju','event_started_at','KEY_HOOK_FAILURE_REASON','test_failure_reason','KEY_EVENT_STARTED_AT','KEY_TEST_UUID','custom_metadata','KEY_TEST_SCOPE','2GQqKBU','KEY_HOOK_RESULT','KIND_LOG','171nkapzi','hook_failure','MAX_NESTED_STEP_DEPTH','DEFAULT_HOOK_RESULT','KEY_TEST_FILE_PATH','484RFVlCd','KEY_TEST_FAILURE_REASON','test_framework_name','KEY_SESSION_NAME','file_name','KEY_HOOK_LAST_STARTED','KEY_HOOKS_STARTED','test_duration','test_hook_last_started','KEY_TEST_LOGS','hook_name','KEY_TEST_CODE','logs','KEY_TEST_RERUN_NAME','KEY_TEST_NAME','test_result_at','test_started_at','KEY_HOOKS_FINISHED','138944rofxgx','hook_failure_type','test_file_path','KEY_HOOK_NAME','KEY_TEST_FRAMEWORK_NAME','KEY_AUTOMATE_SESSION_REASON','test_screenshots','file_path','KEY_TEST_ATTACHMENTS','KEY_HOOK_LAST_FINISHED','5155275SPhEMi','TEST_LOG','test_attachments','6963EADllb','test_location','test_result','KEY_TEST_SCREENSHOTS','KEY_TEST_RESULT','KEY_TEST_FAILURE_TYPE','KEY_HOOK_LOGS'];a90_0x2a13=function(){return _0x127dd6;};return a90_0x2a13();}const a90_0x2ce5ec={};a90_0x2ce5ec[a90_0x54a0b8(0x133)]='test_uuid',a90_0x2ce5ec['KEY_TEST_ID']=a90_0x54a0b8(0x125),a90_0x2ce5ec[a90_0x54a0b8(0x14c)]='test_name',a90_0x2ce5ec[a90_0x54a0b8(0x13d)]=a90_0x54a0b8(0x152),a90_0x2ce5ec['KEY_TEST_TAGS']='test_tags',a90_0x2ce5ec[a90_0x54a0b8(0x161)]=a90_0x54a0b8(0x15f),a90_0x2ce5ec[a90_0x54a0b8(0x123)]=a90_0x54a0b8(0x14d),a90_0x2ce5ec['KEY_TEST_STARTED_AT']=a90_0x54a0b8(0x14e),a90_0x2ce5ec['KEY_TEST_ENDED_AT']=a90_0x54a0b8(0x129),a90_0x2ce5ec[a90_0x54a0b8(0x112)]=a90_0x54a0b8(0x15e),a90_0x2ce5ec[a90_0x54a0b8(0x111)]=a90_0x54a0b8(0x145),a90_0x2ce5ec[a90_0x54a0b8(0x135)]=a90_0x54a0b8(0x114),a90_0x2ce5ec[a90_0x54a0b8(0x117)]='test_scopes',a90_0x2ce5ec[a90_0x54a0b8(0x154)]=a90_0x54a0b8(0x140),a90_0x2ce5ec[a90_0x54a0b8(0x128)]=a90_0x54a0b8(0x11c),a90_0x2ce5ec[a90_0x54a0b8(0x149)]=a90_0x54a0b8(0x127),a90_0x2ce5ec[a90_0x54a0b8(0x14b)]='test_rerun_name',a90_0x2ce5ec[a90_0x54a0b8(0x11f)]=a90_0x54a0b8(0x10f),a90_0x2ce5ec[a90_0x54a0b8(0x124)]='platform_index',a90_0x2ce5ec['KEY_TEST_FAILURE']='test_failure',a90_0x2ce5ec[a90_0x54a0b8(0x162)]=a90_0x54a0b8(0x110),a90_0x2ce5ec[a90_0x54a0b8(0x13f)]=a90_0x54a0b8(0x131),a90_0x2ce5ec[a90_0x54a0b8(0x147)]='test_logs',a90_0x2ce5ec['KEY_TEST_META']='test_meta',a90_0x2ce5ec[a90_0x54a0b8(0x141)]='test_session_name',a90_0x2ce5ec['KEY_AUTOMATE_SESSION_NAME']=a90_0x54a0b8(0x118),a90_0x2ce5ec[a90_0x54a0b8(0x116)]='automate_session_status',a90_0x2ce5ec[a90_0x54a0b8(0x155)]=a90_0x54a0b8(0x12a),a90_0x2ce5ec[a90_0x54a0b8(0x132)]=a90_0x54a0b8(0x12f),a90_0x2ce5ec[a90_0x54a0b8(0x126)]=a90_0x54a0b8(0x11d),a90_0x2ce5ec[a90_0x54a0b8(0x10e)]=a90_0x54a0b8(0x12d),a90_0x2ce5ec[a90_0x54a0b8(0x137)]='hook_result',a90_0x2ce5ec[a90_0x54a0b8(0x12b)]=a90_0x54a0b8(0x151),a90_0x2ce5ec[a90_0x54a0b8(0x130)]='hook_failure_reason',a90_0x2ce5ec[a90_0x54a0b8(0x122)]=a90_0x54a0b8(0x13a),a90_0x2ce5ec[a90_0x54a0b8(0x163)]='hook_logs',a90_0x2ce5ec[a90_0x54a0b8(0x153)]=a90_0x54a0b8(0x148),a90_0x2ce5ec[a90_0x54a0b8(0x11b)]=a90_0x54a0b8(0x121),a90_0x2ce5ec[a90_0x54a0b8(0x13c)]=a90_0x54a0b8(0x121),a90_0x2ce5ec[a90_0x54a0b8(0x119)]='TEST_SCREENSHOT',a90_0x2ce5ec[a90_0x54a0b8(0x138)]=a90_0x54a0b8(0x15b),a90_0x2ce5ec[a90_0x54a0b8(0x12c)]='^(BEFORE_|AFTER_)',a90_0x2ce5ec[a90_0x54a0b8(0x144)]='test_hooks_started',a90_0x2ce5ec[a90_0x54a0b8(0x14f)]='test_hooks_finished',a90_0x2ce5ec[a90_0x54a0b8(0x143)]=a90_0x54a0b8(0x146),a90_0x2ce5ec[a90_0x54a0b8(0x159)]='test_hook_last_finished',a90_0x2ce5ec['KEY_LOGS']=a90_0x54a0b8(0x14a),a90_0x2ce5ec['KEY_CUSTOM_TAGS']=a90_0x54a0b8(0x134),a90_0x2ce5ec[a90_0x54a0b8(0x158)]=a90_0x54a0b8(0x15c),a90_0x2ce5ec['KEY_FILE_SIZE']=a90_0x54a0b8(0x120),a90_0x2ce5ec[a90_0x54a0b8(0x115)]=a90_0x54a0b8(0x142),a90_0x2ce5ec['KEY_FILE_PATH']=a90_0x54a0b8(0x157),a90_0x2ce5ec['KEY_FILE_LEVEL']='file_level',a90_0x2ce5ec[a90_0x54a0b8(0x160)]=a90_0x54a0b8(0x156),a90_0x2ce5ec['MAX_TOP_LEVEL_STEPS']=0xa,a90_0x2ce5ec[a90_0x54a0b8(0x13b)]=0x2;const TestFrameworkConstants=a90_0x2ce5ec;module['exports']=TestFrameworkConstants;
@@ -1 +1 @@
1
- function a91_0x3622(){const _0x36b7bd=['KEY_HOOKS_STARTED','hook_type','trackCucumberInstance','\x20testState:\x20','2131865AeVJKy','removePendingHooks','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','gDKsm','KEY_HOOK_NAME','slice','\x20pending\x20hooks\x20for\x20testId:\x20','failure','readLogObjects','body','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','DEFAULT_TEST_RESULT','getPendingHooks','52629zCEhDX','lYhdv','emOpM','dlNUv','addMultipleEntries','getRef','KEY_HOOKS_FINISHED','KEY_TEST_UUID','\x20and\x20args\x20=\x20','AclaT','debug','result','createTestFrameworkEventPayload\x20testId:\x20','KEY_EVENT_STARTED_AT','trackCucumberInstance:\x20saved\x20instance\x20contextId=','KEY_AUTOMATE_SESSION_NAME','inspect','addPendingHook','storePendingHook','KEY_TEST_RERUN_NAME','ETTYz','matchHookRegex','739129YHvDox','../../../helpers/helper.js','resolveInstance','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','\x20with\x20id\x20','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','VjnLx','ANewL',',\x20error:\x20','sendLogCreatedEvent:\x20for\x20testId:\x20','\x20with\x20UUID:\x20','KEY_TEST_RESULT','getTestUUID','KEY_TEST_FAILURE_REASON','KEY_LOGS','trackHookEvent','base64','toISOString','PRE','getThreadId','POST','DEFAULT_HOOK_RESULT','runHooks','../state/hookState.js','Dpocf','./testFramework','KEY_HOOK_ID','gjgzP','KEY_HOOK_LOGS','executionContext','../state/testFrameworkState.js','stringify','KEY_TEST_STARTED_AT','setTestDetails','customRerunParam','CucumberTestFramework','224838VlheVs','tSSTQ','location','endedAt','getTestFrameworksVersions','KEY_TEST_CODE','XNfUf','rerun_name','toString','push','\x20batch\x20','name','testData','RUoqF','\x20\x20and\x20args\x20=\x20',',\x20storing\x20as\x20pending\x20hook','testFrameworkState','KEY_TEST_LOGS','KEY_TEST_SCOPE','RSfEU','../TestInfo.js','VBcQh','uuid','KEY_TEST_FRAMEWORK_NAME','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','getProcessId','test','failure_type','9197289wrWIjy','from','../cliUtils.js','ZwDiF','failure_reason','hooks','jdJsT','logCreatedEvent','meta','getTestFrameworks','84kbuGEM','util',',\x20state=','getCurrentTestState','getContext','platformIndex','sendLogCreatedEvent','testFrameworkVersion','parseCucumberTestResult','code','getTrackedInstance','processPendingHooks','ifzyf','KEY_HOOK_RESULT','KEY_HOOK_FAILURE_TYPE','getCurrentHookState','TEST','\x20hookState:\x20','uMAsw','started_at','KEY_TEST_ID','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','KEY_HOOK_FAILURE','trackEvent','parseCucumberTest','hookState','KEY_TEST_FILE_PATH','NONE','test_run_id','PFBiP','KEY_TEST_FAILURE_TYPE','get','keys','failed','passed','error','KEY_TEST_META','gsKpR','createTestFrameworkEventPayload','pop','\x20with\x20result:\x20','startedAt','UQEzx','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','4740928nkpsRI','KEY_TEST_FRAMEWORK_VERSION','testUUID','leqNt','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','trackEvent:\x20unsupported\x20testFrameworkState=','ceil','KEY_TEST_ATTACHMENTS','\x20&\x20hook\x20=\x20','KEY_CUSTOM_TAGS','yhGPs','LffYE','KbCfO','eventJson','KEY_TEST_ENDED_AT','length','UnhandledError','WDjoQ','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','tags','failure_data','KEY_EVENT_ENDED_AT','156GtirWF','args','concat','Stored\x20pending\x20hook\x20for\x20testId:\x20','file_name','unknown','../instances/testFrameworkInstance.js','getId','format','browserstackPlatformIndex','getInstance','Etjfg','finished_at','Processing\x20','\x20&\x20hookState=','scopes','getAllData','87810cOlzWF','CJdfU','JgoNS','instance','getTestDetails','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test'];a91_0x3622=function(){return _0x36b7bd;};return a91_0x3622();}function a91_0x4235(_0x3af103,_0x6a36f4){const _0x362224=a91_0x3622();return a91_0x4235=function(_0x4235fa,_0x21458c){_0x4235fa=_0x4235fa-0xb0;let _0x4cdd3d=_0x362224[_0x4235fa];return _0x4cdd3d;},a91_0x4235(_0x3af103,_0x6a36f4);}const a91_0x38cea9=a91_0x4235;(function(_0x57e2d8,_0x426341){const _0xaaedab=a91_0x4235,_0x82c66c=_0x57e2d8();while(!![]){try{const _0x245519=parseInt(_0xaaedab(0xba))/0x1+parseInt(_0xaaedab(0xde))/0x2+-parseInt(_0xaaedab(0x16e))/0x3*(-parseInt(_0xaaedab(0x146))/0x4)+parseInt(_0xaaedab(0x161))/0x5+-parseInt(_0xaaedab(0x157))/0x6*(-parseInt(_0xaaedab(0x104))/0x7)+-parseInt(_0xaaedab(0x130))/0x8+-parseInt(_0xaaedab(0xfa))/0x9;if(_0x245519===_0x426341)break;else _0x82c66c['push'](_0x82c66c['shift']());}catch(_0x5e2bb7){_0x82c66c['push'](_0x82c66c['shift']());}}}(a91_0x3622,0x7fbad));const TestFramework=require(a91_0x38cea9(0xd3)),TestFrameworkState=require(a91_0x38cea9(0xd8)),HookState=require(a91_0x38cea9(0xd1)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a91_0x38cea9(0x14c)),CLIUtils=require(a91_0x38cea9(0xfc)),TrackedInstance=require('../instances/trackedInstance.js'),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x38cea9(0xbb)),logger=createClassLogger(a91_0x38cea9(0xdd)),{v4:uuidv4}=require(a91_0x38cea9(0xf4)),util=require(a91_0x38cea9(0x105)),TestInfo=require(a91_0x38cea9(0xf2)),GrpcClient=require('../grpcClient');class CucumberTestFramework extends TestFramework{constructor(_0x2fdcef,_0x2cd658,_0x46ac5e){super(_0x2fdcef,_0x2cd658,_0x46ac5e);}async[a91_0x38cea9(0x11b)](_0x366162,_0x2461dc,_0xcc36b1={}){const _0x232005=a91_0x38cea9,_0x63eb12={};_0x63eb12[_0x232005(0x121)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x63eb12['tSSTQ']=function(_0x521be8,_0x24aec7){return _0x521be8===_0x24aec7;},_0x63eb12[_0x232005(0x13b)]=function(_0xdf8494,_0x5b0b1f){return _0xdf8494===_0x5b0b1f;},_0x63eb12[_0x232005(0xc0)]=function(_0x5093ee,_0x154db5){return _0x5093ee===_0x154db5;},_0x63eb12['AclaT']=_0x232005(0x142);const _0x42857d=_0x63eb12;await super[_0x232005(0x11b)](_0x366162,_0x2461dc,_0xcc36b1);const _0x4c34de=this[_0x232005(0xbc)](_0x366162,_0x2461dc,_0xcc36b1);if(!_0x4c34de){logger[_0x232005(0x178)](_0x42857d[_0x232005(0x121)]);return;}try{let _0x511c95,_0x59435e;switch(_0x366162){case TestFrameworkState[_0x232005(0x114)]:_0x511c95=_0xcc36b1[_0x232005(0xf8)],_0x59435e=TestInfo[_0x232005(0xc6)](_0x511c95['id']);if(_0x42857d[_0x232005(0xdf)](_0x2461dc,HookState[_0x232005(0xcc)])){logger[_0x232005(0x178)](_0x232005(0x163)+_0x511c95['id']);const _0x2932ee={};_0x2932ee[_0x232005(0x132)]=_0x59435e,_0x2932ee[_0x232005(0xea)]=_0x511c95,_0x4c34de[_0x232005(0x172)](this['parseCucumberTest'](_0x2932ee)),logger[_0x232005(0x178)]('trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20'+_0x511c95['id']),await this[_0x232005(0x10f)](_0x4c34de,_0x511c95['id']);}else{if(_0x42857d['LffYE'](_0x2461dc,HookState[_0x232005(0xce)])){const _0x4c5c1e={};_0x4c5c1e[_0x232005(0x132)]=_0x59435e,_0x4c5c1e[_0x232005(0xea)]=_0x511c95,_0x4c34de[_0x232005(0x172)](this[_0x232005(0x10c)](_0x4c5c1e)),await this[_0x232005(0x10f)](_0x4c34de,_0x511c95['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x42857d[_0x232005(0xc0)](_0x2461dc,HookState[_0x232005(0xce)])&&await this[_0x232005(0x10a)](_0x4c34de,_0x366162,_0xcc36b1);break;default:if(CLIUtils[_0x232005(0xb9)](_0x366162[_0x232005(0xe6)]()['split']('.')[0x1])){const _0x2d2e05=await this['trackHookEvent'](_0x4c34de,_0x366162,_0x2461dc,_0xcc36b1);_0x4c34de[_0x232005(0x172)](_0x2d2e05);}else logger['debug'](_0x232005(0x135)+_0x366162+_0x232005(0x154)+_0x2461dc);break;}}catch(_0xed3415){logger[_0x232005(0x127)](util[_0x232005(0x14e)](_0x42857d[_0x232005(0x177)],_0x366162,_0x2461dc,_0xcc36b1[_0x232005(0x13f)],_0xed3415));}_0xcc36b1[_0x232005(0x15a)]=_0x4c34de,await this[_0x232005(0xd0)](_0x4c34de,_0x366162,_0x2461dc,_0xcc36b1);}[a91_0x38cea9(0xbc)](_0x48f26d,_0x3fac97,_0x1442f6={}){const _0x623387=a91_0x38cea9,_0x482375={};_0x482375[_0x623387(0xc1)]=function(_0xf2f38b,_0x2f7463){return _0xf2f38b===_0x2f7463;};const _0x12ccf5=_0x482375;let _0x328ccf=null;return(_0x12ccf5['ANewL'](_0x48f26d,TestFrameworkState['INIT_TEST'])||_0x12ccf5[_0x623387(0xc1)](_0x48f26d,TestFrameworkState[_0x623387(0x11f)]))&&this[_0x623387(0x15f)](_0x48f26d,_0x1442f6),_0x328ccf=TestFramework[_0x623387(0x10e)](),_0x328ccf;}[a91_0x38cea9(0x15f)](_0x17ba22,_0x3d571d){const _0x416bad=a91_0x38cea9,_0x262489=CLIUtils['getCurrentInstanceName'](),_0x2b8b6e=TrackedInstance['createContext'](_0x262489);let _0x364885=null;logger[_0x416bad(0x178)](_0x416bad(0x12f)+_0x262489+_0x416bad(0x106)+_0x17ba22),_0x364885=new TestFrameworkInstance(_0x2b8b6e,this['getTestFrameworks'](),this[_0x416bad(0xe2)](),_0x17ba22,HookState[_0x416bad(0x11f)]),TestFramework['setTrackedInstance'](_0x2b8b6e,_0x364885),logger[_0x416bad(0x178)](_0x416bad(0xb2)+_0x2b8b6e[_0x416bad(0x14d)]()+'\x20target='+_0x262489);}[a91_0x38cea9(0x11c)](_0x2f8ae3){const _0x99c929=a91_0x38cea9,_0x10e17f={};_0x10e17f['VBcQh']=_0x99c929(0x15c);const _0x465e68=_0x10e17f,{testUUID:_0x456145,testData:_0x51c3b5}=_0x2f8ae3;if(!_0x51c3b5||!_0x51c3b5[_0x99c929(0xf4)])return logger[_0x99c929(0x178)](_0x465e68[_0x99c929(0xf3)]),{};const _0x3815e4=_0x456145,_0x153ea6=_0x51c3b5[_0x99c929(0xf4)],_0x25780d=this[_0x99c929(0x103)]()[0x0],_0x782d6=this[_0x99c929(0xe2)](),_0x5a771d={[TestFrameworkConstants[_0x99c929(0xf5)]]:_0x25780d,[TestFrameworkConstants[_0x99c929(0x131)]]:_0x782d6[_0x25780d],[TestFrameworkConstants[_0x99c929(0xef)]]:[],[TestFrameworkConstants[_0x99c929(0x174)]]:{},[TestFrameworkConstants['KEY_HOOKS_STARTED']]:{},[TestFrameworkConstants[_0x99c929(0x175)]]:_0x3815e4,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x99c929(0x16c)],[TestFrameworkConstants[_0x99c929(0xb3)]]:_0x51c3b5['name']||'',[TestFrameworkConstants[_0x99c929(0x11e)]]:_0x51c3b5[_0x99c929(0x14a)]||'',[TestFrameworkConstants[_0x99c929(0x118)]]:_0x153ea6,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x51c3b5[_0x99c929(0xe9)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x51c3b5[_0x99c929(0xe0)]||'',[TestFrameworkConstants[_0x99c929(0xe3)]]:_0x51c3b5[_0x99c929(0x16a)]?.[_0x99c929(0x10d)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x51c3b5[_0x99c929(0x143)]||[],[TestFrameworkConstants[_0x99c929(0xda)]]:_0x51c3b5[_0x99c929(0x12d)]||new Date()[_0x99c929(0xcb)](),[TestFrameworkConstants[_0x99c929(0xf0)]]:_0x51c3b5[_0x99c929(0x155)]?.[0x0]||'',[TestFrameworkConstants['KEY_TEST_SCOPES']]:_0x51c3b5['scopes']||[],[TestFrameworkConstants[_0x99c929(0xb7)]]:_0x51c3b5[_0x99c929(0xdc)]?.[_0x99c929(0xe5)]||_0x51c3b5['name']||'',[TestFrameworkConstants[_0x99c929(0x139)]]:{},[TestFrameworkConstants[_0x99c929(0x128)]]:_0x51c3b5[_0x99c929(0x102)]||{}};TestInfo[_0x99c929(0xdb)](_0x153ea6,_0x5a771d),logger[_0x99c929(0x178)]('Parsed\x20cucumber\x20test:\x20'+_0x51c3b5['name']+_0x99c929(0xc4)+_0x3815e4);const _0x1146d2={};return _0x1146d2[_0x153ea6]=_0x5a771d,_0x1146d2;}[a91_0x38cea9(0x10c)](_0x29ba19){const _0xc71c47=a91_0x38cea9,_0x1367be={'oWwFn':_0xc71c47(0xbd),'RSfEU':_0xc71c47(0x14b),'yhGPs':function(_0x5880e1,_0x107583){return _0x5880e1===_0x107583;},'UQEzx':_0xc71c47(0x125),'HpLFg':'UnhandledError','ywMIt':function(_0x40333e,_0x33a005,_0x16b915){return _0x40333e(_0x33a005,_0x16b915);},'WDjoQ':function(_0xd36d9f,_0x3831a8){return _0xd36d9f>_0x3831a8;}},{testUUID:_0x92975b,testData:_0x30fe0c}=_0x29ba19;if(!_0x30fe0c||!_0x30fe0c[_0xc71c47(0xf4)])return logger[_0xc71c47(0x178)](_0x1367be['oWwFn']),{};const _0xaacd52=this[_0xc71c47(0xbc)](TestFrameworkState[_0xc71c47(0x114)],HookState[_0xc71c47(0xce)]),_0x2c89f2=_0x30fe0c[_0xc71c47(0xf4)],_0x44e631=TestInfo[_0xc71c47(0x15b)](_0x2c89f2)||{},_0x544dc0=_0x44e631?_0x44e631[TestFrameworkConstants[_0xc71c47(0x139)]]||{}:{},_0x1a3f7b={..._0x44e631,[TestFrameworkConstants[_0xc71c47(0xc5)]]:_0x30fe0c[_0xc71c47(0x179)]||_0x1367be[_0xc71c47(0xf1)],[TestFrameworkConstants[_0xc71c47(0x13e)]]:_0x30fe0c['finishedAt']||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x544dc0,[TestFrameworkConstants[_0xc71c47(0xc8)]]:[],[TestFrameworkConstants[_0xc71c47(0x128)]]:_0x30fe0c[_0xc71c47(0x102)]||{}};_0x1367be[_0xc71c47(0x13a)](_0x30fe0c[_0xc71c47(0x179)],_0x1367be[_0xc71c47(0x12e)])&&_0x30fe0c['failure']&&(_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0x122)]]=_0x30fe0c[_0xc71c47(0xf9)]||_0x1367be['HpLFg'],_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0xc7)]]=_0x30fe0c[_0xc71c47(0xfe)]||'',_0x1a3f7b[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x30fe0c[_0xc71c47(0x168)]);const _0x34edee=TestInfo[_0xc71c47(0x15b)](_0x2c89f2)[TestFrameworkConstants[_0xc71c47(0x137)]]||{},_0x23c523=_0x1367be['ywMIt'](getManualUploadLogs,_0x34edee,_0xaacd52[_0xc71c47(0x156)]()['get'](_0x2c89f2)[TestFrameworkConstants[_0xc71c47(0x175)]]);if(_0x1367be['WDjoQ'](_0x23c523[_0xc71c47(0x13f)],0x0)){const _0x1b1416=_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0xc8)]]||[];_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0xc8)]]=[..._0x1b1416,..._0x23c523];}_0x30fe0c[_0xc71c47(0xff)]&&_0x1367be[_0xc71c47(0x141)](_0x30fe0c[_0xc71c47(0xff)][_0xc71c47(0x13f)],0x0)&&(_0x1a3f7b[TestFrameworkConstants[_0xc71c47(0x174)]]=_0x30fe0c[_0xc71c47(0xff)]);TestInfo[_0xc71c47(0xdb)](_0x2c89f2,_0x1a3f7b),logger[_0xc71c47(0x178)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x30fe0c[_0xc71c47(0xe9)]+_0xc71c47(0x12c)+_0x30fe0c['result']);const _0x53c1da={};return _0x53c1da[_0x2c89f2]=_0x1a3f7b,_0x53c1da;}async[a91_0x38cea9(0xc9)](_0xf931be,_0xd968a0,_0x57f44c,_0x44486a){const _0x158ab7=a91_0x38cea9,_0x5df485={'gDKsm':_0x158ab7(0xbf),'IIavC':function(_0x34c8c3){return _0x34c8c3();},'CJdfU':function(_0x4b8cd8,_0x4ca655){return _0x4b8cd8 in _0x4ca655;},'leqNt':function(_0x584536,_0x4f1213){return _0x584536===_0x4f1213;},'gjgzP':function(_0x19fb5d,_0x4128f5){return _0x19fb5d===_0x4128f5;},'jdJsT':function(_0x464f68,_0x4464d1){return _0x464f68>_0x4464d1;},'QWiID':function(_0x13e4ed,_0x73ac98){return _0x13e4ed===_0x73ac98;},'gsKpR':'failed','emOpM':_0x158ab7(0x140),'RUoqF':_0x158ab7(0x126),'XNfUf':function(_0x38d928,_0x29f93f){return _0x38d928!==_0x29f93f;}},{hookData:_0x1dad48}=_0x44486a;if(!_0x1dad48)return logger[_0x158ab7(0x178)](_0x5df485[_0x158ab7(0x164)]),{};const _0x33a27d=_0x1dad48[_0x158ab7(0xf4)]||_0x5df485['IIavC'](uuidv4),_0x10bb73=_0x1dad48[_0x158ab7(0x120)],_0x16e13e=_0xd968a0[_0x158ab7(0xe6)]()['split']('.')[0x1],_0x9efb0e=TestInfo[_0x158ab7(0x15b)](_0x10bb73)[TestFrameworkConstants[_0x158ab7(0x139)]]||{},_0x11aeb7=_0xf931be[_0x158ab7(0x156)]()['get'](_0x10bb73);if(!_0x11aeb7)return logger['debug'](_0x158ab7(0xf6)+_0x10bb73+_0x158ab7(0xed)),this[_0x158ab7(0xb6)](_0xf931be,_0x10bb73,_0xd968a0,_0x57f44c,_0x44486a),{};let _0xd34177=_0x11aeb7[TestFrameworkConstants[_0x158ab7(0x15d)]];!_0xd34177&&(_0xd34177={});!_0x5df485[_0x158ab7(0x158)](_0x16e13e,_0xd34177)&&(_0xd34177[_0x16e13e]=[]);let _0xcb6c3b=_0x11aeb7[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0xcb6c3b&&(_0xcb6c3b={});!_0x5df485[_0x158ab7(0x158)](_0x16e13e,_0xcb6c3b)&&(_0xcb6c3b[_0x16e13e]=[]);const _0x409211={[TestFrameworkConstants[_0x158ab7(0x15d)]]:_0xd34177,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0xcb6c3b},_0xa1411f={};_0xa1411f[_0x10bb73]=_0x409211;const _0x3b5429=_0xa1411f;if(_0x5df485[_0x158ab7(0x133)](_0x57f44c,HookState[_0x158ab7(0xcc)])){const _0x2e5367={[TestFrameworkConstants[_0x158ab7(0xd4)]]:_0x33a27d,[TestFrameworkConstants[_0x158ab7(0x111)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0x158ab7(0xb1)]]:_0x1dad48[_0x158ab7(0x117)],[TestFrameworkConstants[_0x158ab7(0xd6)]]:[],[TestFrameworkConstants[_0x158ab7(0x165)]]:_0x1dad48[_0x158ab7(0x15e)],[TestFrameworkConstants[_0x158ab7(0x139)]]:_0x9efb0e};_0x2e5367['key']=_0x16e13e;const _0x2009ee=_0x2e5367;_0xd34177[_0x16e13e][_0x158ab7(0xe7)](_0x2009ee),_0x3b5429[_0x10bb73][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x16e13e,logger[_0x158ab7(0x178)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x16e13e+_0x158ab7(0x138)+_0x2009ee+_0x158ab7(0xec)+_0x44486a);}else{if(_0x5df485[_0x158ab7(0xd5)](_0x57f44c,HookState[_0x158ab7(0xce)])){const _0x3ad272=_0x1dad48[_0x158ab7(0x179)],_0x3f4532=_0xd34177[_0x16e13e]||[];logger[_0x158ab7(0x178)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x3f4532+_0x158ab7(0x176)+_0x44486a);if(_0x5df485[_0x158ab7(0x100)](_0x3f4532[_0x158ab7(0x13f)],0x0)){const _0x3c54f2=_0x3f4532[_0x158ab7(0x12b)]();_0x5df485['QWiID'](_0x1dad48[_0x158ab7(0x179)],_0x5df485[_0x158ab7(0x129)])&&_0x1dad48['failure_data']?(_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x112)]]=_0x1dad48[_0x158ab7(0xf9)]||_0x5df485[_0x158ab7(0x170)],_0x3c54f2[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x1dad48[_0x158ab7(0xfe)]||'',_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x11a)]]=_0x1dad48[_0x158ab7(0x144)]):_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x111)]]=_0x5df485[_0x158ab7(0xeb)];_0x5df485[_0x158ab7(0xe4)](_0x3ad272,TestFrameworkConstants[_0x158ab7(0xcf)])&&(_0x3c54f2[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x3ad272);_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x145)]]=_0x1dad48[_0x158ab7(0x152)]||new Date()[_0x158ab7(0xcb)](),_0x3c54f2[TestFrameworkConstants[_0x158ab7(0x139)]]=_0x9efb0e;const _0x3cafdd=_0x3c54f2[TestFrameworkConstants[_0x158ab7(0xd4)]];!_0xcb6c3b[_0x16e13e]&&(_0xcb6c3b[_0x16e13e]=[]),_0xcb6c3b[_0x16e13e]['push'](_0x3c54f2),_0x3b5429[_0x10bb73][TestFrameworkConstants['KEY_HOOK_LAST_FINISHED']]=_0x16e13e;}}}return logger['debug']('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x1dad48['hook_type']+_0x158ab7(0xbe)+_0x33a27d+'\x20for\x20test:\x20'+_0x10bb73),_0x3b5429;}[a91_0x38cea9(0x12a)](_0x55d1a1){const _0x5a6fa4=a91_0x38cea9,_0x5b0c7e={};_0x5b0c7e[_0x5a6fa4(0x16f)]=_0x5a6fa4(0xca);const _0x49bd18=_0x5b0c7e;try{const _0x2d783c=_0x55d1a1[_0x5a6fa4(0xf8)]?_0x55d1a1['test']['id']:_0x55d1a1['hookData'][_0x5a6fa4(0x120)],_0x10fc7d=_0x55d1a1[_0x5a6fa4(0x15a)],_0x3e3b76=_0x10fc7d[_0x5a6fa4(0x108)](),_0x2ec9e0=_0x10fc7d[_0x5a6fa4(0x156)]()[_0x5a6fa4(0x123)](_0x2d783c);if(!_0x2ec9e0)return logger[_0x5a6fa4(0x178)]('createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x2d783c),{};logger[_0x5a6fa4(0x178)](_0x5a6fa4(0xb0)+_0x2d783c);const {[TestFrameworkConstants[_0x5a6fa4(0xf5)]]:_0x34bb0d='',[TestFrameworkConstants[_0x5a6fa4(0x131)]]:_0x3f9e53='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x2c5b8a='',[TestFrameworkConstants[_0x5a6fa4(0x13e)]]:_0x182917=''}=_0x2ec9e0,_0x4eb2ae=_0x10fc7d[_0x5a6fa4(0x107)]()[_0x5a6fa4(0xe6)]()['split']('.')[0x1],_0xfdf552=_0x10fc7d[_0x5a6fa4(0x113)]()[_0x5a6fa4(0xe6)]()['split']('.')[0x1],_0x1fea20=global?.[_0x5a6fa4(0x14f)]??0x0,_0x2c285b=_0x10fc7d[_0x5a6fa4(0x173)](),_0x2b4a67=Buffer[_0x5a6fa4(0xfb)](JSON[_0x5a6fa4(0xd9)](_0x2ec9e0))[_0x5a6fa4(0xe6)](_0x49bd18[_0x5a6fa4(0x16f)]),_0x483783={'hash':_0x3e3b76['getId'](),'threadId':_0x3e3b76[_0x5a6fa4(0xcd)]()[_0x5a6fa4(0xe6)](),'processId':_0x3e3b76[_0x5a6fa4(0xf7)]()[_0x5a6fa4(0xe6)]()},_0x5cb4eb={};_0x5cb4eb[_0x5a6fa4(0x109)]=_0x1fea20,_0x5cb4eb['testFrameworkName']=_0x34bb0d,_0x5cb4eb[_0x5a6fa4(0x10b)]=_0x3f9e53,_0x5cb4eb[_0x5a6fa4(0xee)]=_0x4eb2ae,_0x5cb4eb[_0x5a6fa4(0x11d)]=_0xfdf552,_0x5cb4eb['startedAt']=_0x2c5b8a,_0x5cb4eb[_0x5a6fa4(0xe1)]=_0x182917,_0x5cb4eb[_0x5a6fa4(0xf4)]=_0x2c285b,_0x5cb4eb[_0x5a6fa4(0x13d)]=_0x2b4a67,_0x5cb4eb[_0x5a6fa4(0xd7)]=_0x483783;const _0x27e977=_0x5cb4eb;return logger[_0x5a6fa4(0x178)]('createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20'+_0x2d783c+_0x5a6fa4(0x160)+_0x4eb2ae+_0x5a6fa4(0x115)+_0xfdf552),_0x27e977;}catch(_0x9a39be){return logger[_0x5a6fa4(0x127)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util['format'](_0x9a39be)),{};}}async[a91_0x38cea9(0x10a)](_0x13d4f6,_0x101f7c,_0x5b7cd9){const _0x1df744=a91_0x38cea9,_0x51f7bf={'KbCfO':function(_0x5e3d19,_0x2554e3,_0x2ba840){return _0x5e3d19(_0x2554e3,_0x2ba840);},'ETTYz':function(_0x3c2e61,_0x3021f9){return _0x3c2e61===_0x3021f9;},'AYjvJ':'sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','uMAsw':function(_0x45a212,_0x18a7d4){return _0x45a212/_0x18a7d4;},'ifzyf':function(_0x323cbf,_0x258f79){return _0x323cbf<_0x258f79;},'Etjfg':function(_0x549f03,_0x396fe3){return _0x549f03*_0x396fe3;},'JgoNS':function(_0x475226,_0x547bf4){return _0x475226+_0x547bf4;},'ZwDiF':function(_0x44a5f8,_0x399b83){return _0x44a5f8+_0x399b83;},'dlNUv':'Cucumber\x20log\x20created\x20event'};try{const _0x943763=_0x5b7cd9[_0x1df744(0x132)],_0x5097df=_0x13d4f6[_0x1df744(0x156)]()[_0x1df744(0x123)](_0x943763),{[TestFrameworkConstants[_0x1df744(0xf5)]]:_0x16fd43='',[TestFrameworkConstants[_0x1df744(0x131)]]:_0x3f7844=''}=_0x5097df,_0xaa4b99=TestInfo[_0x1df744(0x169)](_0x943763),_0x426c91=TestInfo[_0x1df744(0x15b)](_0x943763)[TestFrameworkConstants[_0x1df744(0x137)]]||{},_0x2e5a04=_0x51f7bf[_0x1df744(0x13c)](getMediaArtifactsLogs,_0x426c91,_0x13d4f6[_0x1df744(0x156)]()[_0x1df744(0x123)](_0x943763)[TestFrameworkConstants[_0x1df744(0x175)]]),_0x37e0f4=(_0xaa4b99||[])[_0x1df744(0x148)](_0x2e5a04||[]);if(!_0x37e0f4||_0x51f7bf[_0x1df744(0xb8)](_0x37e0f4[_0x1df744(0x13f)],0x0)){logger['debug'](_0x51f7bf['AYjvJ']);return;}const _0x254aa9=0x28,_0x25697f=Math[_0x1df744(0x136)](_0x51f7bf[_0x1df744(0x116)](_0x37e0f4[_0x1df744(0x13f)],_0x254aa9));for(let _0x1e508c=0x0;_0x51f7bf[_0x1df744(0x110)](_0x1e508c,_0x25697f);_0x1e508c++){const _0x1846bd=_0x51f7bf[_0x1df744(0x151)](_0x1e508c,_0x254aa9),_0x75d96c=_0x51f7bf[_0x1df744(0x159)](_0x1846bd,_0x254aa9),_0x8da2eb=_0x37e0f4[_0x1df744(0x166)](_0x1846bd,_0x75d96c),_0x36d662={'platformIndex':global?.['browserstackPlatformIndex']??0x0,'logs':_0x8da2eb,'testFrameworkName':_0x16fd43,'testFrameworkVersion':_0x3f7844,'testFrameworkState':_0x101f7c['toString']()['split']('.')[0x1]};logger[_0x1df744(0x178)](_0x1df744(0xc3)+_0x943763+_0x1df744(0xe8)+_0x51f7bf['JgoNS'](_0x1e508c,0x1)+'/'+_0x25697f+'\x20payload='+util[_0x1df744(0xb4)](_0x36d662));const _0x3cce1d=await GrpcClient[_0x1df744(0x150)]()[_0x1df744(0x101)](_0x36d662);logger[_0x1df744(0x178)](_0x1df744(0xc3)+_0x943763+_0x1df744(0xe8)+_0x51f7bf[_0x1df744(0xfd)](_0x1e508c,0x1)+'/'+_0x25697f+'\x20response='+util[_0x1df744(0xb4)](_0x3cce1d));}}catch(_0x3cb647){logger[_0x1df744(0x127)](_0x1df744(0x16b)+util[_0x1df744(0x14e)](_0x3cb647));}logger[_0x1df744(0x178)](_0x51f7bf[_0x1df744(0x171)]);}[a91_0x38cea9(0xb6)](_0x236f1c,_0x46695a,_0x4030be,_0x38df93,_0x35b1be){const _0x279609=a91_0x38cea9,_0x5eb33f={'testId':_0x46695a,'testFrameworkState':_0x4030be,'hookState':_0x38df93,'args':_0x35b1be,'timestamp':new Date()[_0x279609(0xcb)]()};_0x236f1c[_0x279609(0xb5)](_0x46695a,_0x5eb33f),logger['debug'](_0x279609(0x149)+_0x46695a+',\x20state:\x20'+_0x4030be+',\x20hookState:\x20'+_0x38df93);}async[a91_0x38cea9(0x10f)](_0x10bc05,_0x4c2dc8){const _0x27b41d=a91_0x38cea9,_0x450f59={};_0x450f59['Dpocf']=function(_0x43dc23,_0x411246){return _0x43dc23>_0x411246;};const _0x3f1a66=_0x450f59;if(!_0x10bc05['hasPendingHooks'](_0x4c2dc8))return;const _0x58fd7f=_0x10bc05[_0x27b41d(0x16d)](_0x4c2dc8);logger['debug'](_0x27b41d(0x153)+_0x58fd7f[_0x27b41d(0x13f)]+_0x27b41d(0x167)+_0x4c2dc8);for(const _0x291db6 of _0x58fd7f){try{const _0x436a67=await this[_0x27b41d(0xc9)](_0x10bc05,_0x291db6[_0x27b41d(0xee)],_0x291db6['hookState'],_0x291db6['args']);_0x436a67&&_0x3f1a66[_0x27b41d(0xd2)](Object[_0x27b41d(0x124)](_0x436a67)[_0x27b41d(0x13f)],0x0)&&_0x10bc05[_0x27b41d(0x172)](_0x436a67),await this[_0x27b41d(0xd0)](_0x10bc05,_0x291db6[_0x27b41d(0xee)],_0x291db6[_0x27b41d(0x11d)],_0x291db6[_0x27b41d(0x147)]);}catch(_0x193931){logger[_0x27b41d(0x127)](_0x27b41d(0x119)+_0x4c2dc8+_0x27b41d(0xc2)+_0x193931);}}_0x10bc05[_0x27b41d(0x162)](_0x4c2dc8),logger[_0x27b41d(0x178)](_0x27b41d(0x134)+_0x4c2dc8);}}module['exports']=CucumberTestFramework;
1
+ const a91_0x49f560=a91_0x5e48;function a91_0x1820(){const _0xf364c1=['failure','trackEvent:\x20unsupported\x20testFrameworkState=','UnhandledError','eventJson','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','epTiT','Cucumber\x20log\x20created\x20event','hKFrT','trackHookEvent','browserstackPlatformIndex','instance','started_at','2383568zDRsnI','getTestFrameworksVersions','\x20&\x20hookState=','format','\x20with\x20result:\x20','KEY_TEST_FRAMEWORK_VERSION','hCzIJ','meta','muqqW','KEY_LOGS','KEY_HOOK_FAILURE','body','../grpcClient','ceil','DEFAULT_HOOK_RESULT','\x20target=','addPendingHook','KEY_TEST_TAGS','getId','storePendingHook','error','KEY_TEST_STARTED_AT','../cliUtils.js','testFrameworkVersion','KEY_CUSTOM_TAGS','KEY_EVENT_ENDED_AT','4526570QmfwzW','setTestDetails','split','KEY_TEST_LOGS','KEY_TEST_FAILURE','platformIndex','6UaKcvF','KEY_TEST_META','../state/hookState.js','KEY_TEST_SCOPE','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','inspect','result','rerun_name','setTrackedInstance','ecgfu','\x20response=','parseCucumberTest','sendLogCreatedEvent','getTrackedInstance',',\x20error:\x20','trackEvent','addMultipleEntries','KEY_HOOK_ID','pOkXq','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','nQzAC',',\x20state:\x20','testFrameworkState','KEY_TEST_LOCATION','push','\x20\x20and\x20args\x20=\x20','\x20batch\x20','parseCucumberTestResult','xIiMT','getTestDetails','bPozw','exports','passed','../instances/trackedInstance.js','KEY_TEST_ID','failure_type','CMdOx','getCurrentInstanceName','debug','KEY_TEST_FRAMEWORK_NAME','hQbID','createContext','210kZznba','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','FpywU','failure_data','KEY_HOOK_RESULT','oFeax','getContext','\x20payload=','uuid','trackCucumberInstance','testUUID','args','\x20for\x20test:\x20','pop','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','customRerunParam','sendLogCreatedEvent:\x20for\x20testId:\x20','createTestFrameworkEventPayload','slice','87272sOQuwh','581752pzIkAY','code','KEY_TEST_ENDED_AT','getProcessId','SaqhR','KEY_HOOK_LAST_STARTED','test_run_id','qczMb','../../../helpers/helper.js','test','executionContext','getCurrentTestState','scopes','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_TEST_NAME','tpmZM','lbgDi','tags','getTestUUID','iHXDD','keys',',\x20hookState:\x20','9buwDQB','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','trackCucumberInstance:\x20saved\x20instance\x20contextId=','GjSsV','708274IuRILr','Processing\x20','hasPendingHooks','KEY_TEST_SCOPES','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','KEY_HOOKS_STARTED','KEY_HOOK_LAST_FINISHED','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','toString','./testFramework','KEY_HOOK_LOGS','getThreadId','endedAt','CucumberTestFramework','length','failure_reason','\x20pending\x20hooks\x20for\x20testId:\x20','POST','Tracked\x20cucumber\x20hook\x20event:\x20','\x20testState:\x20','KEY_TEST_RERUN_NAME','KEY_HOOK_FAILURE_TYPE','KEY_TEST_UUID','oYNXD','finished_at',',\x20storing\x20as\x20pending\x20hook','jWTDh','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','ySqvH','7999845lFMMPY','hooks','failed','location','runHooks','PRE','\x20with\x20id\x20','NONE','removePendingHooks','from','logCreatedEvent','KEY_HOOK_NAME','Updated\x20cucumber\x20test\x20result:\x20','hookState','name','getAllData','6eIzGho','getInstance','toISOString','../instances/testFrameworkInstance.js','KEY_EVENT_STARTED_AT','KEY_TEST_ATTACHMENTS','startedAt','processPendingHooks','KEY_AUTOMATE_SESSION_NAME','DEFAULT_TEST_RESULT','\x20and\x20args\x20=\x20','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','pkMFL','ydvuz','LOG_REPORT','KEY_HOOKS_FINISHED','readLogObjects','KEY_TEST_FAILURE_REASON','UwUMC','testData','matchHookRegex','base64','YVmXC','./constants/testFrameworkConstants.js','getPendingHooks','../state/testFrameworkState.js','resolveInstance','qpHaj','getCurrentHookState','26017552RwNXfO','JioWu','getTestFrameworks','getRef','key','INIT_TEST','get','createTestFrameworkEventPayload\x20testId:\x20','woEBE','IeCeZ','tJtuA'];a91_0x1820=function(){return _0xf364c1;};return a91_0x1820();}function a91_0x5e48(_0x4d5cbc,_0x1b0f2e){const _0x18207b=a91_0x1820();return a91_0x5e48=function(_0x5e48e3,_0x5b4c47){_0x5e48e3=_0x5e48e3-0xaa;let _0x4060bf=_0x18207b[_0x5e48e3];return _0x4060bf;},a91_0x5e48(_0x4d5cbc,_0x1b0f2e);}(function(_0x44ea4f,_0x44deb2){const _0x21a56e=a91_0x5e48,_0x435122=_0x44ea4f();while(!![]){try{const _0x3daca1=parseInt(_0x21a56e(0x12c))/0x1*(-parseInt(_0x21a56e(0xee))/0x2)+-parseInt(_0x21a56e(0x118))/0x3*(parseInt(_0x21a56e(0x12b))/0x4)+parseInt(_0x21a56e(0x163))/0x5+-parseInt(_0x21a56e(0x173))/0x6*(-parseInt(_0x21a56e(0x146))/0x7)+-parseInt(_0x21a56e(0xce))/0x8+parseInt(_0x21a56e(0x142))/0x9*(parseInt(_0x21a56e(0xe8))/0xa)+parseInt(_0x21a56e(0xb7))/0xb;if(_0x3daca1===_0x44deb2)break;else _0x435122['push'](_0x435122['shift']());}catch(_0x237b54){_0x435122['push'](_0x435122['shift']());}}}(a91_0x1820,0xe7962));const TestFramework=require(a91_0x49f560(0x14f)),TestFrameworkState=require(a91_0x49f560(0xb3)),HookState=require(a91_0x49f560(0xf0)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a91_0x49f560(0x176)),CLIUtils=require(a91_0x49f560(0xe4)),TrackedInstance=require(a91_0x49f560(0x10f)),TestFrameworkConstants=require(a91_0x49f560(0xb1)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x49f560(0x134)),logger=createClassLogger(a91_0x49f560(0x153)),{v4:uuidv4}=require('uuid'),util=require('util'),TestInfo=require('../TestInfo.js'),GrpcClient=require(a91_0x49f560(0xda));class CucumberTestFramework extends TestFramework{constructor(_0x1543ad,_0x41660d,_0x2aff0c){super(_0x1543ad,_0x41660d,_0x2aff0c);}async[a91_0x49f560(0xfd)](_0x318042,_0x39cde7,_0x3217ef={}){const _0x289659=a91_0x49f560,_0x15f2ae={};_0x15f2ae[_0x289659(0x133)]=_0x289659(0x14d),_0x15f2ae[_0x289659(0xac)]=function(_0x4d57cf,_0x28e565){return _0x4d57cf===_0x28e565;},_0x15f2ae[_0x289659(0xc0)]=function(_0x3ed575,_0xca00a0){return _0x3ed575===_0xca00a0;},_0x15f2ae[_0x289659(0xd6)]=function(_0x34434f,_0x39c214){return _0x34434f===_0x39c214;},_0x15f2ae[_0x289659(0x130)]=_0x289659(0x119);const _0x4d7ed0=_0x15f2ae;await super['trackEvent'](_0x318042,_0x39cde7,_0x3217ef);const _0x5bf502=this[_0x289659(0xb4)](_0x318042,_0x39cde7,_0x3217ef);if(!_0x5bf502){logger['debug'](_0x4d7ed0['qczMb']);return;}try{let _0x1b4ab1,_0xdcf755;switch(_0x318042){case TestFrameworkState['TEST']:_0x1b4ab1=_0x3217ef['test'],_0xdcf755=TestInfo[_0x289659(0x13e)](_0x1b4ab1['id']);if(_0x4d7ed0[_0x289659(0xac)](_0x39cde7,HookState[_0x289659(0x168)])){logger[_0x289659(0x114)]('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x1b4ab1['id']);const _0x55354b={};_0x55354b['testUUID']=_0xdcf755,_0x55354b['testData']=_0x1b4ab1,_0x5bf502[_0x289659(0xfe)](this[_0x289659(0xf9)](_0x55354b)),logger[_0x289659(0x114)](_0x289659(0x161)+_0x1b4ab1['id']),await this[_0x289659(0x17a)](_0x5bf502,_0x1b4ab1['id']);}else{if(_0x4d7ed0['IeCeZ'](_0x39cde7,HookState[_0x289659(0x157)])){const _0x8555d={};_0x8555d[_0x289659(0x122)]=_0xdcf755,_0x8555d[_0x289659(0xad)]=_0x1b4ab1,_0x5bf502[_0x289659(0xfe)](this['parseCucumberTestResult'](_0x8555d)),await this[_0x289659(0x17a)](_0x5bf502,_0x1b4ab1['id']);}}break;case TestFrameworkState[_0x289659(0x181)]:_0x4d7ed0['muqqW'](_0x39cde7,HookState[_0x289659(0x157)])&&await this[_0x289659(0xfa)](_0x5bf502,_0x318042,_0x3217ef);break;default:if(CLIUtils[_0x289659(0xae)](_0x318042['toString']()[_0x289659(0xea)]('.')[0x1])){const _0x503c3b=await this[_0x289659(0xca)](_0x5bf502,_0x318042,_0x39cde7,_0x3217ef);_0x5bf502['addMultipleEntries'](_0x503c3b);}else logger[_0x289659(0x114)](_0x289659(0xc3)+_0x318042+_0x289659(0xd0)+_0x39cde7);break;}}catch(_0x2454f1){logger['error'](util[_0x289659(0xd1)](_0x4d7ed0[_0x289659(0x130)],_0x318042,_0x39cde7,_0x3217ef[_0x289659(0x154)],_0x2454f1));}_0x3217ef[_0x289659(0xcc)]=_0x5bf502,await this[_0x289659(0x167)](_0x5bf502,_0x318042,_0x39cde7,_0x3217ef);}['resolveInstance'](_0x1dd849,_0x571675,_0x675600={}){const _0x21bf4a=a91_0x49f560,_0x3325e4={};_0x3325e4[_0x21bf4a(0x10c)]=function(_0x444169,_0x1a8b8d){return _0x444169===_0x1a8b8d;},_0x3325e4[_0x21bf4a(0x13c)]=function(_0x32189b,_0x57dba8){return _0x32189b===_0x57dba8;};const _0x119deb=_0x3325e4;let _0x1f9904=null;return(_0x119deb[_0x21bf4a(0x10c)](_0x1dd849,TestFrameworkState[_0x21bf4a(0xbc)])||_0x119deb[_0x21bf4a(0x13c)](_0x1dd849,TestFrameworkState[_0x21bf4a(0x16a)]))&&this[_0x21bf4a(0x121)](_0x1dd849,_0x675600),_0x1f9904=TestFramework[_0x21bf4a(0xfb)](),_0x1f9904;}[a91_0x49f560(0x121)](_0x42b432,_0x525728){const _0xddbf18=a91_0x49f560,_0x3e5b72=CLIUtils[_0xddbf18(0x113)](),_0x364d9f=TrackedInstance[_0xddbf18(0x117)](_0x3e5b72);let _0x1cbce7=null;logger[_0xddbf18(0x114)](_0xddbf18(0x101)+_0x3e5b72+',\x20state='+_0x42b432),_0x1cbce7=new TestFrameworkInstance(_0x364d9f,this[_0xddbf18(0xb9)](),this[_0xddbf18(0xcf)](),_0x42b432,HookState[_0xddbf18(0x16a)]),TestFramework[_0xddbf18(0xf6)](_0x364d9f,_0x1cbce7),logger[_0xddbf18(0x114)](_0xddbf18(0x144)+_0x364d9f[_0xddbf18(0xe0)]()+_0xddbf18(0xdd)+_0x3e5b72);}['parseCucumberTest'](_0x168e79){const _0x34f2dc=a91_0x49f560,_0x2f9859={};_0x2f9859[_0x34f2dc(0x145)]=_0x34f2dc(0x14a);const _0x22e469=_0x2f9859,{testUUID:_0x227476,testData:_0x1addd5}=_0x168e79;if(!_0x1addd5||!_0x1addd5['uuid'])return logger[_0x34f2dc(0x114)](_0x22e469[_0x34f2dc(0x145)]),{};const _0x5b0223=_0x227476,_0xd9a4f=_0x1addd5['uuid'],_0x513ff6=this['getTestFrameworks']()[0x0],_0x2390d9=this[_0x34f2dc(0xcf)](),_0x4e8d15={[TestFrameworkConstants[_0x34f2dc(0x115)]]:_0x513ff6,[TestFrameworkConstants[_0x34f2dc(0xd3)]]:_0x2390d9[_0x513ff6],[TestFrameworkConstants[_0x34f2dc(0xeb)]]:[],[TestFrameworkConstants[_0x34f2dc(0x182)]]:{},[TestFrameworkConstants[_0x34f2dc(0x14b)]]:{},[TestFrameworkConstants[_0x34f2dc(0x15c)]]:_0x5b0223,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x34f2dc(0x17c)],[TestFrameworkConstants[_0x34f2dc(0x17b)]]:_0x1addd5['name']||'',[TestFrameworkConstants['KEY_TEST_FILE_PATH']]:_0x1addd5['file_name']||'',[TestFrameworkConstants[_0x34f2dc(0x110)]]:_0xd9a4f,[TestFrameworkConstants[_0x34f2dc(0x13a)]]:_0x1addd5[_0x34f2dc(0x171)]||'',[TestFrameworkConstants[_0x34f2dc(0x105)]]:_0x1addd5[_0x34f2dc(0x166)]||'',[TestFrameworkConstants['KEY_TEST_CODE']]:_0x1addd5[_0x34f2dc(0xd9)]?.[_0x34f2dc(0x12d)]||null,[TestFrameworkConstants[_0x34f2dc(0xdf)]]:_0x1addd5[_0x34f2dc(0x13d)]||[],[TestFrameworkConstants[_0x34f2dc(0xe3)]]:_0x1addd5[_0x34f2dc(0x179)]||new Date()[_0x34f2dc(0x175)](),[TestFrameworkConstants[_0x34f2dc(0xf1)]]:_0x1addd5[_0x34f2dc(0x138)]?.[0x0]||'',[TestFrameworkConstants[_0x34f2dc(0x149)]]:_0x1addd5[_0x34f2dc(0x138)]||[],[TestFrameworkConstants[_0x34f2dc(0x15a)]]:_0x1addd5[_0x34f2dc(0x127)]?.[_0x34f2dc(0xf5)]||_0x1addd5[_0x34f2dc(0x171)]||'',[TestFrameworkConstants[_0x34f2dc(0xe6)]]:{},[TestFrameworkConstants[_0x34f2dc(0xef)]]:_0x1addd5[_0x34f2dc(0xd5)]||{}};TestInfo[_0x34f2dc(0xe9)](_0xd9a4f,_0x4e8d15),logger['debug']('Parsed\x20cucumber\x20test:\x20'+_0x1addd5['name']+'\x20with\x20UUID:\x20'+_0x5b0223);const _0xe0adde={};return _0xe0adde[_0xd9a4f]=_0x4e8d15,_0xe0adde;}[a91_0x49f560(0x109)](_0x1dc3b0){const _0x4fb9ac=a91_0x49f560,_0x199832={'iHXDD':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','qpHaj':'unknown','ecgfu':function(_0x596b6d,_0x102ffc){return _0x596b6d===_0x102ffc;},'FpywU':_0x4fb9ac(0x165),'ixrks':_0x4fb9ac(0xc4),'angGj':function(_0x28d930,_0x38b340,_0x414b98){return _0x28d930(_0x38b340,_0x414b98);},'xIiMT':function(_0x56cb6e,_0x18cf8a){return _0x56cb6e>_0x18cf8a;}},{testUUID:_0x30bec7,testData:_0x108bdc}=_0x1dc3b0;if(!_0x108bdc||!_0x108bdc[_0x4fb9ac(0x120)])return logger[_0x4fb9ac(0x114)](_0x199832[_0x4fb9ac(0x13f)]),{};const _0x2dfb9=this[_0x4fb9ac(0xb4)](TestFrameworkState['TEST'],HookState[_0x4fb9ac(0x157)]),_0xb63e3b=_0x108bdc[_0x4fb9ac(0x120)],_0x544582=TestInfo[_0x4fb9ac(0x10b)](_0xb63e3b)||{},_0x353fb2=_0x544582?_0x544582[TestFrameworkConstants[_0x4fb9ac(0xe6)]]||{}:{},_0xd080f4={..._0x544582,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x108bdc['result']||_0x199832[_0x4fb9ac(0xb5)],[TestFrameworkConstants[_0x4fb9ac(0x12e)]]:_0x108bdc['finishedAt']||new Date()[_0x4fb9ac(0x175)](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x4fb9ac(0x175)](),[TestFrameworkConstants[_0x4fb9ac(0xe6)]]:_0x353fb2,[TestFrameworkConstants[_0x4fb9ac(0xd7)]]:[],[TestFrameworkConstants[_0x4fb9ac(0xef)]]:_0x108bdc[_0x4fb9ac(0xd5)]||{}};_0x199832[_0x4fb9ac(0xf7)](_0x108bdc[_0x4fb9ac(0xf4)],_0x199832[_0x4fb9ac(0x11a)])&&_0x108bdc[_0x4fb9ac(0xc2)]&&(_0xd080f4[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x108bdc[_0x4fb9ac(0x111)]||_0x199832['ixrks'],_0xd080f4[TestFrameworkConstants[_0x4fb9ac(0xab)]]=_0x108bdc[_0x4fb9ac(0x155)]||'',_0xd080f4[TestFrameworkConstants[_0x4fb9ac(0xec)]]=_0x108bdc[_0x4fb9ac(0xc2)]);const _0x480bee=TestInfo[_0x4fb9ac(0x10b)](_0xb63e3b)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x5330ed=_0x199832['angGj'](getManualUploadLogs,_0x480bee,_0x2dfb9[_0x4fb9ac(0x172)]()['get'](_0xb63e3b)[TestFrameworkConstants[_0x4fb9ac(0x15c)]]);if(_0x199832['xIiMT'](_0x5330ed[_0x4fb9ac(0x154)],0x0)){const _0x1c6492=_0xd080f4[TestFrameworkConstants[_0x4fb9ac(0xd7)]]||[];_0xd080f4[TestFrameworkConstants[_0x4fb9ac(0xd7)]]=[..._0x1c6492,..._0x5330ed];}_0x108bdc['hooks']&&_0x199832[_0x4fb9ac(0x10a)](_0x108bdc[_0x4fb9ac(0x164)][_0x4fb9ac(0x154)],0x0)&&(_0xd080f4[TestFrameworkConstants[_0x4fb9ac(0x182)]]=_0x108bdc[_0x4fb9ac(0x164)]);TestInfo[_0x4fb9ac(0xe9)](_0xb63e3b,_0xd080f4),logger[_0x4fb9ac(0x114)](_0x4fb9ac(0x16f)+_0x108bdc[_0x4fb9ac(0x171)]+_0x4fb9ac(0xd2)+_0x108bdc[_0x4fb9ac(0xf4)]);const _0x138db5={};return _0x138db5[_0xb63e3b]=_0xd080f4,_0x138db5;}async[a91_0x49f560(0xca)](_0x1cd921,_0x501ed5,_0x3da62c,_0x509713){const _0x5cf979=a91_0x49f560,_0x42ddec={'CMdOx':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','jWTDh':function(_0x594522){return _0x594522();},'hCzIJ':function(_0x20df05,_0x17bb8d){return _0x20df05 in _0x17bb8d;},'pkMFL':function(_0x3721a8,_0x1b2343){return _0x3721a8===_0x1b2343;},'ySqvH':function(_0x56c39e,_0x400d4d){return _0x56c39e===_0x400d4d;},'HRjpS':function(_0x4f7712,_0x22b404){return _0x4f7712>_0x22b404;},'tJtuA':_0x5cf979(0x165),'OMDiQ':_0x5cf979(0xc4),'woEBE':_0x5cf979(0x10e),'JioWu':function(_0x4399da,_0x2e128a){return _0x4399da!==_0x2e128a;}},{hookData:_0x2b5f59}=_0x509713;if(!_0x2b5f59)return logger[_0x5cf979(0x114)](_0x42ddec[_0x5cf979(0x112)]),{};const _0x2957b1=_0x2b5f59[_0x5cf979(0x120)]||_0x42ddec[_0x5cf979(0x160)](uuidv4),_0x1c83b0=_0x2b5f59[_0x5cf979(0x132)],_0x30f7c7=_0x501ed5[_0x5cf979(0x14e)]()['split']('.')[0x1],_0x218aad=TestInfo[_0x5cf979(0x10b)](_0x1c83b0)[TestFrameworkConstants[_0x5cf979(0xe6)]]||{},_0x4c0957=_0x1cd921[_0x5cf979(0x172)]()['get'](_0x1c83b0);if(!_0x4c0957)return logger[_0x5cf979(0x114)](_0x5cf979(0x17e)+_0x1c83b0+_0x5cf979(0x15f)),this['storePendingHook'](_0x1cd921,_0x1c83b0,_0x501ed5,_0x3da62c,_0x509713),{};let _0xa5aaba=_0x4c0957[TestFrameworkConstants[_0x5cf979(0x14b)]];!_0xa5aaba&&(_0xa5aaba={});!_0x42ddec[_0x5cf979(0xd4)](_0x30f7c7,_0xa5aaba)&&(_0xa5aaba[_0x30f7c7]=[]);let _0x2c515a=_0x4c0957[TestFrameworkConstants[_0x5cf979(0x182)]];!_0x2c515a&&(_0x2c515a={});!_0x42ddec['hCzIJ'](_0x30f7c7,_0x2c515a)&&(_0x2c515a[_0x30f7c7]=[]);const _0x43ccad={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0xa5aaba,[TestFrameworkConstants[_0x5cf979(0x182)]]:_0x2c515a},_0x362818={};_0x362818[_0x1c83b0]=_0x43ccad;const _0x180b8e=_0x362818;if(_0x42ddec[_0x5cf979(0x17f)](_0x3da62c,HookState[_0x5cf979(0x168)])){const _0x86ec83={[TestFrameworkConstants[_0x5cf979(0xff)]]:_0x2957b1,[TestFrameworkConstants[_0x5cf979(0x11c)]]:TestFrameworkConstants[_0x5cf979(0xdc)],[TestFrameworkConstants[_0x5cf979(0x177)]]:_0x2b5f59[_0x5cf979(0xcd)],[TestFrameworkConstants[_0x5cf979(0x150)]]:[],[TestFrameworkConstants[_0x5cf979(0x16e)]]:_0x2b5f59['hook_type'],[TestFrameworkConstants[_0x5cf979(0xe6)]]:_0x218aad};_0x86ec83[_0x5cf979(0xbb)]=_0x30f7c7;const _0x14a6f8=_0x86ec83;_0xa5aaba[_0x30f7c7][_0x5cf979(0x106)](_0x14a6f8),_0x180b8e[_0x1c83b0][TestFrameworkConstants[_0x5cf979(0x131)]]=_0x30f7c7,logger[_0x5cf979(0x114)]('trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20'+_0x30f7c7+'\x20&\x20hook\x20=\x20'+_0x14a6f8+_0x5cf979(0x107)+_0x509713);}else{if(_0x42ddec['ySqvH'](_0x3da62c,HookState[_0x5cf979(0x157)])){const _0x35c292=_0x2b5f59[_0x5cf979(0xf4)],_0x316ea9=_0xa5aaba[_0x30f7c7]||[];logger[_0x5cf979(0x114)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x316ea9+_0x5cf979(0x17d)+_0x509713);if(_0x42ddec['HRjpS'](_0x316ea9[_0x5cf979(0x154)],0x0)){const _0x5e79ce=_0x316ea9[_0x5cf979(0x125)]();_0x42ddec[_0x5cf979(0x162)](_0x2b5f59[_0x5cf979(0xf4)],_0x42ddec[_0x5cf979(0xc1)])&&_0x2b5f59[_0x5cf979(0x11b)]?(_0x5e79ce[TestFrameworkConstants[_0x5cf979(0x15b)]]=_0x2b5f59[_0x5cf979(0x111)]||_0x42ddec['OMDiQ'],_0x5e79ce[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x2b5f59[_0x5cf979(0x155)]||'',_0x5e79ce[TestFrameworkConstants[_0x5cf979(0xd8)]]=_0x2b5f59[_0x5cf979(0x11b)]):_0x5e79ce[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x42ddec[_0x5cf979(0xbf)];_0x42ddec[_0x5cf979(0xb8)](_0x35c292,TestFrameworkConstants[_0x5cf979(0xdc)])&&(_0x5e79ce[TestFrameworkConstants[_0x5cf979(0x11c)]]=_0x35c292);_0x5e79ce[TestFrameworkConstants[_0x5cf979(0xe7)]]=_0x2b5f59[_0x5cf979(0x15e)]||new Date()[_0x5cf979(0x175)](),_0x5e79ce[TestFrameworkConstants[_0x5cf979(0xe6)]]=_0x218aad;const _0x34da4f=_0x5e79ce[TestFrameworkConstants[_0x5cf979(0xff)]];!_0x2c515a[_0x30f7c7]&&(_0x2c515a[_0x30f7c7]=[]),_0x2c515a[_0x30f7c7][_0x5cf979(0x106)](_0x5e79ce),_0x180b8e[_0x1c83b0][TestFrameworkConstants[_0x5cf979(0x14c)]]=_0x30f7c7;}}}return logger[_0x5cf979(0x114)](_0x5cf979(0x158)+_0x2b5f59['hook_type']+_0x5cf979(0x169)+_0x2957b1+_0x5cf979(0x124)+_0x1c83b0),_0x180b8e;}[a91_0x49f560(0x129)](_0x3238eb){const _0x1252d9=a91_0x49f560,_0x2e7de4={};_0x2e7de4[_0x1252d9(0x102)]=_0x1252d9(0xaf);const _0x21a155=_0x2e7de4;try{const _0x9e902d=_0x3238eb[_0x1252d9(0x135)]?_0x3238eb['test']['id']:_0x3238eb['hookData'][_0x1252d9(0x132)],_0x475277=_0x3238eb['instance'],_0x396166=_0x475277[_0x1252d9(0x11e)](),_0x376c31=_0x475277[_0x1252d9(0x172)]()['get'](_0x9e902d);if(!_0x376c31)return logger[_0x1252d9(0x114)](_0x1252d9(0x126)+_0x9e902d),{};logger[_0x1252d9(0x114)](_0x1252d9(0xbe)+_0x9e902d);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x397820='',[TestFrameworkConstants[_0x1252d9(0xd3)]]:_0x4dcb5e='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x553733='',[TestFrameworkConstants[_0x1252d9(0x12e)]]:_0x1739d9=''}=_0x376c31,_0x2f5ba4=_0x475277[_0x1252d9(0x137)]()['toString']()['split']('.')[0x1],_0x5ec426=_0x475277[_0x1252d9(0xb6)]()['toString']()[_0x1252d9(0xea)]('.')[0x1],_0x5883ac=global?.[_0x1252d9(0xcb)]??0x0,_0x1db24b=_0x475277[_0x1252d9(0xba)](),_0x211ceb=Buffer[_0x1252d9(0x16c)](JSON['stringify'](_0x376c31))[_0x1252d9(0x14e)](_0x21a155['nQzAC']),_0x3b8855={'hash':_0x396166['getId'](),'threadId':_0x396166[_0x1252d9(0x151)]()[_0x1252d9(0x14e)](),'processId':_0x396166[_0x1252d9(0x12f)]()[_0x1252d9(0x14e)]()},_0x48f5d0={};_0x48f5d0[_0x1252d9(0xed)]=_0x5883ac,_0x48f5d0['testFrameworkName']=_0x397820,_0x48f5d0[_0x1252d9(0xe5)]=_0x4dcb5e,_0x48f5d0[_0x1252d9(0x104)]=_0x2f5ba4,_0x48f5d0[_0x1252d9(0x170)]=_0x5ec426,_0x48f5d0[_0x1252d9(0x179)]=_0x553733,_0x48f5d0[_0x1252d9(0x152)]=_0x1739d9,_0x48f5d0[_0x1252d9(0x120)]=_0x1db24b,_0x48f5d0[_0x1252d9(0xc5)]=_0x211ceb,_0x48f5d0[_0x1252d9(0x136)]=_0x3b8855;const _0x23b569=_0x48f5d0;return logger[_0x1252d9(0x114)](_0x1252d9(0xf2)+_0x9e902d+_0x1252d9(0x159)+_0x2f5ba4+'\x20hookState:\x20'+_0x5ec426),_0x23b569;}catch(_0x405f49){return logger[_0x1252d9(0xe2)]('Error\x20in\x20createTestFrameworkEventPayload:\x20'+util[_0x1252d9(0xd1)](_0x405f49)),{};}}async[a91_0x49f560(0xfa)](_0x4f4e3c,_0x5de471,_0x7bb869){const _0x5ca956=a91_0x49f560,_0x56942f={'oYNXD':function(_0x333209,_0x438a7c,_0x243781){return _0x333209(_0x438a7c,_0x243781);},'hKFrT':function(_0x25e0ad,_0x1fbe32){return _0x25e0ad===_0x1fbe32;},'pOkXq':_0x5ca956(0xc6),'ydvuz':function(_0x3cf490,_0x1c8303){return _0x3cf490/_0x1c8303;},'YVmXC':function(_0x58d267,_0x49ffe2){return _0x58d267<_0x49ffe2;},'hQbID':function(_0x33b4a9,_0x107084){return _0x33b4a9*_0x107084;},'tpmZM':function(_0x125e30,_0x20437e){return _0x125e30+_0x20437e;},'oFeax':function(_0x385f11,_0x442cd6){return _0x385f11+_0x442cd6;},'pDism':function(_0x516745,_0x15b674){return _0x516745+_0x15b674;},'ybqDe':_0x5ca956(0xc8)};try{const _0x2f501d=_0x7bb869[_0x5ca956(0x122)],_0x53acd8=_0x4f4e3c[_0x5ca956(0x172)]()[_0x5ca956(0xbd)](_0x2f501d),{[TestFrameworkConstants[_0x5ca956(0x115)]]:_0x589a10='',[TestFrameworkConstants[_0x5ca956(0xd3)]]:_0x866396=''}=_0x53acd8,_0xaee461=TestInfo[_0x5ca956(0xaa)](_0x2f501d),_0x4c52f6=TestInfo[_0x5ca956(0x10b)](_0x2f501d)[TestFrameworkConstants[_0x5ca956(0x178)]]||{},_0x53c7e8=_0x56942f[_0x5ca956(0x15d)](getMediaArtifactsLogs,_0x4c52f6,_0x4f4e3c[_0x5ca956(0x172)]()[_0x5ca956(0xbd)](_0x2f501d)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x1f2045=(_0xaee461||[])['concat'](_0x53c7e8||[]);if(!_0x1f2045||_0x56942f[_0x5ca956(0xc9)](_0x1f2045['length'],0x0)){logger[_0x5ca956(0x114)](_0x56942f[_0x5ca956(0x100)]);return;}const _0x316f6a=0x28,_0x512c2d=Math[_0x5ca956(0xdb)](_0x56942f[_0x5ca956(0x180)](_0x1f2045['length'],_0x316f6a));for(let _0x59f2e3=0x0;_0x56942f[_0x5ca956(0xb0)](_0x59f2e3,_0x512c2d);_0x59f2e3++){const _0x28fd89=_0x56942f[_0x5ca956(0x116)](_0x59f2e3,_0x316f6a),_0x19e781=_0x56942f[_0x5ca956(0x13b)](_0x28fd89,_0x316f6a),_0x10ab55=_0x1f2045[_0x5ca956(0x12a)](_0x28fd89,_0x19e781),_0x42e7b7={'platformIndex':global?.[_0x5ca956(0xcb)]??0x0,'logs':_0x10ab55,'testFrameworkName':_0x589a10,'testFrameworkVersion':_0x866396,'testFrameworkState':_0x5de471['toString']()[_0x5ca956(0xea)]('.')[0x1]};logger[_0x5ca956(0x114)](_0x5ca956(0x128)+_0x2f501d+_0x5ca956(0x108)+_0x56942f[_0x5ca956(0x11d)](_0x59f2e3,0x1)+'/'+_0x512c2d+_0x5ca956(0x11f)+util[_0x5ca956(0xf3)](_0x42e7b7));const _0x5bca36=await GrpcClient[_0x5ca956(0x174)]()[_0x5ca956(0x16d)](_0x42e7b7);logger[_0x5ca956(0x114)]('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x2f501d+'\x20batch\x20'+_0x56942f['pDism'](_0x59f2e3,0x1)+'/'+_0x512c2d+_0x5ca956(0xf8)+util['inspect'](_0x5bca36));}}catch(_0x4c7059){logger[_0x5ca956(0xe2)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x5ca956(0xd1)](_0x4c7059));}logger[_0x5ca956(0x114)](_0x56942f['ybqDe']);}[a91_0x49f560(0xe1)](_0x3b9e94,_0x119ad0,_0x1b432a,_0x495119,_0x3b78c2){const _0x4c4b0f=a91_0x49f560,_0x19abba={'testId':_0x119ad0,'testFrameworkState':_0x1b432a,'hookState':_0x495119,'args':_0x3b78c2,'timestamp':new Date()['toISOString']()};_0x3b9e94[_0x4c4b0f(0xde)](_0x119ad0,_0x19abba),logger['debug'](_0x4c4b0f(0x139)+_0x119ad0+_0x4c4b0f(0x103)+_0x1b432a+_0x4c4b0f(0x141)+_0x495119);}async['processPendingHooks'](_0x39d301,_0x4e9d1a){const _0x3d736f=a91_0x49f560,_0x246177={};_0x246177[_0x3d736f(0xc7)]=function(_0x1b18c7,_0x14429a){return _0x1b18c7>_0x14429a;};const _0x1c6cee=_0x246177;if(!_0x39d301[_0x3d736f(0x148)](_0x4e9d1a))return;const _0x1e9c1e=_0x39d301[_0x3d736f(0xb2)](_0x4e9d1a);logger['debug'](_0x3d736f(0x147)+_0x1e9c1e[_0x3d736f(0x154)]+_0x3d736f(0x156)+_0x4e9d1a);for(const _0x593c41 of _0x1e9c1e){try{const _0x2e9a41=await this[_0x3d736f(0xca)](_0x39d301,_0x593c41[_0x3d736f(0x104)],_0x593c41[_0x3d736f(0x170)],_0x593c41[_0x3d736f(0x123)]);_0x2e9a41&&_0x1c6cee[_0x3d736f(0xc7)](Object[_0x3d736f(0x140)](_0x2e9a41)['length'],0x0)&&_0x39d301[_0x3d736f(0xfe)](_0x2e9a41),await this['runHooks'](_0x39d301,_0x593c41[_0x3d736f(0x104)],_0x593c41['hookState'],_0x593c41['args']);}catch(_0x226dd7){logger[_0x3d736f(0xe2)]('Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20'+_0x4e9d1a+_0x3d736f(0xfc)+_0x226dd7);}}_0x39d301[_0x3d736f(0x16b)](_0x4e9d1a),logger[_0x3d736f(0x114)](_0x3d736f(0x143)+_0x4e9d1a);}}module[a91_0x49f560(0x10d)]=CucumberTestFramework;