browserstack-node-sdk 1.63.2 → 1.63.3

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 (218) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadErrors.js +1 -1
  75. package/src/bin/load/loadUtils.js +1 -1
  76. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  77. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  78. package/src/bin/mocha/command.js +1 -1
  79. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  80. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  81. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  82. package/src/bin/mocha/test.setup.js +1 -1
  83. package/src/bin/newman/command.js +1 -1
  84. package/src/bin/newman/helper.js +1 -1
  85. package/src/bin/newman/reporter/index.js +1 -1
  86. package/src/bin/newman/scriptRunner.js +1 -1
  87. package/src/bin/nightwatch/command.js +1 -1
  88. package/src/bin/playwright/accessibility-helper.js +1 -1
  89. package/src/bin/playwright/command.js +1 -1
  90. package/src/bin/playwright/globalSetup.js +1 -1
  91. package/src/bin/playwright/mock-process.js +1 -1
  92. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  93. package/src/bin/playwright/patches.js +1 -1
  94. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  95. package/src/bin/playwright/reporter/reporter.js +1 -1
  96. package/src/bin/playwright/reporter/test-details.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/playwrightAutomationFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  137. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/testFramework.js +1 -1
  139. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  141. package/src/bin/v2/grpcClient.js +1 -1
  142. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  143. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/trackedContext.js +1 -1
  145. package/src/bin/v2/instances/trackedInstance.js +1 -1
  146. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  147. package/src/bin/v2/modules/baseModule.js +1 -1
  148. package/src/bin/v2/modules/loadTestModule.js +1 -1
  149. package/src/bin/v2/modules/observabilityModule.js +1 -1
  150. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  151. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  152. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testhubModule.js +1 -1
  154. package/src/bin/v2/sdkErrorHandler.js +1 -1
  155. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  156. package/src/bin/v2/state/hookState.js +1 -1
  157. package/src/bin/v2/state/testFrameworkState.js +1 -1
  158. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  159. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  160. package/src/bin/v2/utils/jest-utils.js +1 -1
  161. package/src/bin/vanilla-js/command.js +1 -1
  162. package/src/browserStackSdk.js +1 -1
  163. package/src/helpers/BrowserStackSetup.js +1 -1
  164. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  165. package/src/helpers/accessibility-automation/constants.js +1 -1
  166. package/src/helpers/accessibility-automation/helper.js +1 -1
  167. package/src/helpers/accessibility-automation/scripts.js +1 -1
  168. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  169. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  170. package/src/helpers/ats/constants.js +1 -1
  171. package/src/helpers/ats/helper.js +1 -1
  172. package/src/helpers/caCertHelper.js +1 -1
  173. package/src/helpers/capsMapping.js +1 -1
  174. package/src/helpers/central-scanner/constants.js +1 -1
  175. package/src/helpers/central-scanner/helpers.js +1 -1
  176. package/src/helpers/classLogger.js +1 -1
  177. package/src/helpers/driverInitErrorReporter.js +1 -1
  178. package/src/helpers/globals.js +1 -1
  179. package/src/helpers/helper.js +1 -1
  180. package/src/helpers/logger.js +1 -1
  181. package/src/helpers/metadata.js +1 -1
  182. package/src/helpers/patchHelper.js +1 -1
  183. package/src/helpers/patchHelpers.js +1 -1
  184. package/src/helpers/percy/Percy.js +1 -1
  185. package/src/helpers/percy/PercyBinary.js +1 -1
  186. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  187. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  188. package/src/helpers/percy/PercySDK.js +1 -1
  189. package/src/helpers/percy/index.js +1 -1
  190. package/src/helpers/percy/utils.js +1 -1
  191. package/src/helpers/performance/constants.js +1 -1
  192. package/src/helpers/performance/performance-tester.js +1 -1
  193. package/src/helpers/playwright-helper.js +1 -1
  194. package/src/helpers/processHelper.js +1 -1
  195. package/src/helpers/puppeteer-helper.js +1 -1
  196. package/src/helpers/request-spy.js +1 -1
  197. package/src/helpers/setKeepAlive.js +1 -1
  198. package/src/helpers/stackFrameUtils.js +1 -1
  199. package/src/helpers/test-observability/constants.js +1 -1
  200. package/src/helpers/test-observability/error-handler.js +1 -1
  201. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  202. package/src/helpers/test-observability/sessionHandler.js +1 -1
  203. package/src/helpers/test-observability/utils.js +1 -1
  204. package/src/helpers/test-orchestration/constants.js +1 -1
  205. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  206. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  207. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  208. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  209. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  210. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  211. package/src/helpers/testhub/constants.js +1 -1
  212. package/src/helpers/testhub/testhubHandler.js +1 -1
  213. package/src/helpers/testhub/utils.js +1 -1
  214. package/src/helpers/timeoutPromise.js +1 -1
  215. package/src/helpers/utilities.js +1 -1
  216. package/src/helpers/w3cMapping.js +1 -1
  217. package/src/hubAllocationMethods.js +1 -1
  218. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a85_0x539d(_0x1b25a4,_0x3f355e){const _0x55f31b=a85_0x55f3();return a85_0x539d=function(_0x539db3,_0x17ec70){_0x539db3=_0x539db3-0x93;let _0x485f30=_0x55f31b[_0x539db3];return _0x485f30;},a85_0x539d(_0x1b25a4,_0x3f355e);}const a85_0x544dea=a85_0x539d;(function(_0x1af093,_0x1de1f8){const _0x4050e0=a85_0x539d,_0x18b266=_0x1af093();while(!![]){try{const _0x538d9f=-parseInt(_0x4050e0(0x15e))/0x1+parseInt(_0x4050e0(0xfc))/0x2*(parseInt(_0x4050e0(0x177))/0x3)+parseInt(_0x4050e0(0x165))/0x4*(parseInt(_0x4050e0(0xb6))/0x5)+-parseInt(_0x4050e0(0x140))/0x6*(parseInt(_0x4050e0(0x162))/0x7)+parseInt(_0x4050e0(0x100))/0x8+parseInt(_0x4050e0(0x104))/0x9+-parseInt(_0x4050e0(0xae))/0xa;if(_0x538d9f===_0x1de1f8)break;else _0x18b266['push'](_0x18b266['shift']());}catch(_0x1e1609){_0x18b266['push'](_0x18b266['shift']());}}}(a85_0x55f3,0xb485f));function a85_0x55f3(){const _0x4c3301=['EMuRE','yWjKT','Resolving\x20with\x20stdout:\x20\x22','env','once','19350DIazDF','worker_threads','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','AtOEv','cczWI','ZIeXH',',\x20automationFramework=','shouldSkipSessionName','fHGGp','../../helpers/performance/constants','mergeObject','isArray','./state/hookState.js','get','SrFFM','zEHvk','join','version','RqBjv','UvuSP','open','getSdkVersion','oDPod','statSync','end','SdNqq','EXDEV','ZUOrH','tVOjn','existsSync','tmpdir','ZSNjY','info','wqLnA','UCawR','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','pid','riIJD','EohxJ','debug','\x20version','../../helpers/utilities','openSync','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','ctwNy','response\x20','xPxIw','BROWSERSTACK_FILES_DIR','matchHookRegex','HTTP\x20','SDK_CLI_CHECK_UPDATE','../../helpers/classLogger.js','BKvTD','../../helpers/helper','downloadFileStream','destroy','QRyvQ','length','cli','entry','cNxRL','VdXnu','reduce','qwnjv','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','copyFileSync','DzbIs','XDcdQ','split','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','184jcjQOZ','skipSessionName','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','8815888ppHgvu','.browserstack','DruYm','lazyEntries','923634YwAfTZ','map','Current\x20CLI\x20Path\x20Found:\x20','pipe','SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','fSJoW','shouldSkipSessionStatus','testContextOptions','test','downloaded_file_','GsdNN','cIJtA','testFrameworkDetail','createWriteStream','url','Binary\x20is\x20busy:\x20','PEvuD','parse','automationFrameworkDetail','object','getCLIParamsForDevEnv','startsWith','DrKuT','Pziwv','\x20from\x20','readEntry','fRiLx','cfmVj','../../helpers/performance/performance-tester.js','getAutomationFrameworkDetail','node','vPyXB','VuAcX','cli_version','0|2|3|1|4','\x20already\x20exists','Setting\x20required\x20permissions\x20to\x20','path','readdirSync','checkAndUpdateCli','SDK_CLI_BIN_PATH','jHCxQ','ZKKyI','oYSsD','unlink','stringify','warn','.zip','getSdkLanguage','includes','getWritableDir','error','listen','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','Resolved\x20binary\x20path:\x20','KIqGp','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','xqZxg','lYsjJ','SHELL_EXECUTE_ERROR','5101458OGjkBB','fileName','RdfpF','uGRmB','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','Development\x20Cli\x20Path:\x20','NwGPl','close','rename','getCliDir','trim','platform','requestToUpdateCLI','sPwHV','follow-redirects','binary-','mtime','IBJoY','OIShX','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','oRBSr','unix:/tmp/sdk-platform-','isBinaryBusy','preserveStatusCodeOnError','DIUMF','code','nvzUU','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','bpaGS','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','1121294KRKTRK','isDirectory','Folder\x20does\x20not\x20exist:\x20','start','7mXWwbK','Pksfz','.tmp.','880YPAidi','exports','ITgVp','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','MyxHK','PlnHo','Failed\x20to\x20delete\x20zip\x20file:\x20','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','BROWSERSTACK_CLI_ENV','homedir','chmod','ZyCHa','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','setFrameworkDetail','DxCjM','filter','basename','ejPiu','48156jgDufn','yauzl','getExistingCliPath','sYPZY','HOOK_REGEX','entries','LBQez','DOWNLOAD_HTTP','SDK_CLI_DOWNLOAD','./state/automationFrameworkState.js','BROWSERSTACK_BINARY_URL','otJbv','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','message','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','downloadLatestBinary','isFile','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','child_process','vrkyL','getCurrentInstanceName','NmqDL','Downloading\x20SDK\x20binary\x20from:\x20','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Error\x20while\x20reading\x20CLI\x20path:\x20','Configuring\x20Cli\x20path.','CLIUtils','bTcRC','../../helpers/test-observability/utils.js','data','runShellCommand','statusCode','skipSessionStatus','8218360mTKcid','filePath','format'];a85_0x55f3=function(){return _0x4c3301;};return a85_0x55f3();}const fs=require('fs'),os=require('os'),url=require(a85_0x544dea(0x112)),path=require(a85_0x544dea(0x129)),{exec}=require(a85_0x544dea(0x9f)),{https}=require(a85_0x544dea(0x14e)),yauzl=require(a85_0x544dea(0x178)),util=require('util'),{getFrameworkVersion}=require(a85_0x544dea(0xa9)),{threadId}=require(a85_0x544dea(0xb7)),PerformanceTester=require(a85_0x544dea(0x120)),{EVENTS:PerformanceEvents}=require(a85_0x544dea(0xbf)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x544dea(0xdf)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x544dea(0xeb)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require('../utils/constants'),{createClassLogger}=require(a85_0x544dea(0xe9)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a85_0x544dea(0xc2)),TestFrameworkState=require('./state/testFrameworkState.js'),AutomationFrameworkState=require(a85_0x544dea(0x95)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger(a85_0x544dea(0xa7)),{getBStackAPIUrl}=require('../utils/apiUtilityMethods.js');class CLIUtils{[a85_0x544dea(0x116)]={};['testFrameworkDetail']={};static['isDevelopmentEnv'](){const _0x1e1ace=a85_0x544dea,_0x214929={};_0x214929[_0x1e1ace(0x152)]=function(_0x1f2ed0,_0x4d0e3c){return _0x1f2ed0===_0x4d0e3c;},_0x214929[_0x1e1ace(0xcc)]='development';const _0x14a11a=_0x214929;return _0x14a11a[_0x1e1ace(0x152)](process[_0x1e1ace(0xb4)][_0x1e1ace(0x16d)],_0x14a11a[_0x1e1ace(0xcc)]);}static[a85_0x544dea(0x118)](){const _0x4bc62a=a85_0x544dea,_0x46e866={};return _0x46e866['id']=process['env'][_0x4bc62a(0x16d)],_0x46e866[_0x4bc62a(0x138)]=_0x4bc62a(0x155)+process[_0x4bc62a(0xb4)][_0x4bc62a(0x16d)]+'.sock',_0x46e866;}static[a85_0x544dea(0xcb)](){const _0x4047e1=a85_0x544dea,_0x2a88e1={'cfmVj':function(_0x1aa236,_0x43a5ce){return _0x1aa236(_0x43a5ce);},'eXKYa':'../../../package.json'};return _0x2a88e1[_0x4047e1(0x11f)](require,_0x2a88e1['eXKYa'])[_0x4047e1(0xc7)];}static[a85_0x544dea(0x134)](){const _0xf4c8a3=a85_0x544dea,_0x4888d0={};_0x4888d0[_0xf4c8a3(0x146)]=_0xf4c8a3(0x122);const _0x12ef39=_0x4888d0;return _0x12ef39[_0xf4c8a3(0x146)];}static async['setupCliPath'](_0x22853e){const _0x2db2d4=a85_0x544dea,_0x1074c8={'qwnjv':_0x2db2d4(0xa6),'VdXnu':function(_0x38ecf4,_0x2a211b){return _0x38ecf4(_0x2a211b);},'lYsjJ':function(_0x34d394,_0xc4493a){return _0x34d394(_0xc4493a);},'SdNqq':_0x2db2d4(0xfe)};logger[_0x2db2d4(0xdd)](_0x1074c8[_0x2db2d4(0xf5)]);const _0xcb6358=process[_0x2db2d4(0xb4)][_0x2db2d4(0x12c)];if(!_0x1074c8[_0x2db2d4(0xf3)](isNullOrEmpty,_0xcb6358))return logger[_0x2db2d4(0xdd)](_0x2db2d4(0x145)+_0xcb6358),_0xcb6358;try{const _0x421dd5=this[_0x2db2d4(0x149)]();if(_0x1074c8[_0x2db2d4(0x13e)](isNullOrEmpty,_0x421dd5))throw new Error(_0x1074c8[_0x2db2d4(0xcf)]);const _0x5b4b2a=this[_0x2db2d4(0x179)](_0x421dd5),_0x3db044=await this[_0x2db2d4(0x12b)](_0x5b4b2a,_0x421dd5,_0x22853e);return logger['debug'](_0x2db2d4(0x13a)+_0x3db044),_0x3db044;}catch(_0x32c06e){logger[_0x2db2d4(0xdd)](_0x2db2d4(0x9a)+util[_0x2db2d4(0xb0)](_0x32c06e));}return null;}static async['checkAndUpdateCli'](_0x158e16,_0x2bab2f,_0x395f7d){const _0x5737ee=a85_0x544dea,_0x685261={'ZyCHa':function(_0x3e39a0){return _0x3e39a0();},'rGLzM':function(_0x26562e,_0x39faeb){return _0x26562e(_0x39faeb);},'cNxRL':function(_0x367219,_0x16b3df,_0x3ed261){return _0x367219(_0x16b3df,_0x3ed261);},'DruYm':_0x5737ee(0xaa),'jHCxQ':_0x5737ee(0x112),'tVOjn':function(_0x2390d5,_0x79be61){return _0x2390d5(_0x79be61);}};PerformanceTester[_0x5737ee(0x161)](PerformanceEvents[_0x5737ee(0xe8)]);try{logger[_0x5737ee(0xd6)](_0x5737ee(0x106)+_0x158e16);const _0x581efc=_0x685261[_0x5737ee(0x170)](getHostInfo),_0x3be314={'sdk_version':CLIUtils[_0x5737ee(0xcb)](),'os':_0x581efc[_0x5737ee(0x14b)],'os_arch':_0x581efc['arch'],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x685261['rGLzM'](isNullOrEmpty,_0x158e16)&&(_0x3be314[_0x5737ee(0x125)]=await this[_0x5737ee(0xab)](_0x158e16+_0x5737ee(0xde)));const _0x55d15b=await this[_0x5737ee(0x14c)](_0x3be314,_0x395f7d);process[_0x5737ee(0xb4)]['BROWSERSTACK_BINARY_URL']&&(logger[_0x5737ee(0xd6)](_0x5737ee(0x171)+process[_0x5737ee(0xb4)]['BROWSERSTACK_BINARY_URL']),_0x55d15b[_0x5737ee(0xaa)][_0x5737ee(0x112)]=process[_0x5737ee(0xb4)][_0x5737ee(0x96)]);if(_0x685261[_0x5737ee(0xf2)](nestedKeyValue,_0x55d15b,[_0x685261[_0x5737ee(0x102)],_0x685261[_0x5737ee(0x12d)]])){logger[_0x5737ee(0xdd)](_0x5737ee(0xd9)+_0x3be314[_0x5737ee(0x125)]);if(!_0x685261[_0x5737ee(0xd2)](isNullOrEmpty,_0x158e16)&&this['isBinaryBusy'](_0x158e16))return logger[_0x5737ee(0x132)](_0x5737ee(0x15b)+_0x158e16),_0x158e16;return await this[_0x5737ee(0x9b)](_0x685261[_0x5737ee(0xf2)](nestedKeyValue,_0x55d15b,[_0x685261[_0x5737ee(0x102)],_0x685261[_0x5737ee(0x12d)]]),_0x2bab2f);}return _0x158e16;}finally{PerformanceTester['end'](PerformanceEvents[_0x5737ee(0xe8)]);}}static['getCliDir'](){const _0x1251ca=a85_0x544dea,_0x581bea={'wqLnA':function(_0x45ba7f,_0xed4b32){return _0x45ba7f(_0xed4b32);},'XDcdQ':_0x1251ca(0xfe),'EohxJ':_0x1251ca(0xf0)},_0x205f14=this[_0x1251ca(0x136)]();try{if(_0x581bea[_0x1251ca(0xd7)](isNullOrEmpty,_0x205f14))throw new Error(_0x581bea[_0x1251ca(0xf9)]);const _0xe8aae=path[_0x1251ca(0xc6)](_0x205f14,_0x581bea[_0x1251ca(0xdc)]);return!fs['existsSync'](_0xe8aae)&&_0x581bea['wqLnA'](createDir,_0xe8aae),_0xe8aae;}catch(_0x4346a4){logger[_0x1251ca(0xdd)](_0x1251ca(0x9d)+util['format'](_0x4346a4));}}static[a85_0x544dea(0x136)](){const _0x247f8b=a85_0x544dea,_0x108c1d={'ITgVp':_0x247f8b(0x101),'ZSNjY':function(_0xfa3876,_0x2d4d74){return _0xfa3876(_0x2d4d74);},'xPxIw':function(_0x1b5811,_0x1e696e){return _0x1b5811(_0x1e696e);},'uGRmB':function(_0xea6010,_0xd192e1){return _0xea6010(_0xd192e1);},'oRBSr':function(_0x5e6319,_0xb58bdc){return _0x5e6319(_0xb58bdc);}},_0x20088e=[process['env'][_0x247f8b(0xe5)],path[_0x247f8b(0xc6)](os[_0x247f8b(0x16e)](),_0x108c1d[_0x247f8b(0x167)]),path[_0x247f8b(0xc6)](os[_0x247f8b(0xd4)](),_0x108c1d['ITgVp'])];for(const _0x4da46e of _0x20088e){if(_0x108c1d[_0x247f8b(0xd5)](isNullOrEmpty,_0x4da46e))continue;try{if(fs[_0x247f8b(0xd3)](_0x4da46e)){logger[_0x247f8b(0xdd)]('Folder\x20'+_0x4da46e+_0x247f8b(0x127));if(!_0x108c1d['xPxIw'](isModifiable,_0x4da46e)){logger['debug']('Setting\x20required\x20permissions\x20to\x20'+_0x4da46e);const _0x1a9218=_0x108c1d['xPxIw'](setReadWriteExecuteAccess,_0x4da46e);if(!_0x108c1d[_0x247f8b(0x143)](isTrue,_0x1a9218)){logger['warn'](_0x247f8b(0x13c)+_0x4da46e);continue;}}}else{logger[_0x247f8b(0xdd)](_0x247f8b(0x160)+_0x4da46e),_0x108c1d[_0x247f8b(0x154)](createDir,_0x4da46e),logger[_0x247f8b(0xdd)](_0x247f8b(0x128)+_0x4da46e);const _0x1491d3=_0x108c1d[_0x247f8b(0xe4)](setReadWriteExecuteAccess,_0x4da46e);!_0x108c1d[_0x247f8b(0x154)](isTrue,_0x1491d3)&&logger[_0x247f8b(0x132)](_0x247f8b(0x13c)+_0x4da46e);}return _0x4da46e;}catch(_0x214e39){logger['error'](_0x247f8b(0xfb)+util[_0x247f8b(0xb0)](_0x214e39));}}return null;}static[a85_0x544dea(0x179)](_0xf01b58){const _0x2ecf53=a85_0x544dea,_0x4fb1df={};_0x4fb1df[_0x2ecf53(0x173)]=function(_0x26ad62,_0x188085){return _0x26ad62>_0x188085;};const _0xa9b0e=_0x4fb1df;try{if(!fs[_0x2ecf53(0xd3)](_0xf01b58)||!fs[_0x2ecf53(0xcd)](_0xf01b58)[_0x2ecf53(0x15f)]())return'';const _0x373cc3=fs[_0x2ecf53(0x12a)](_0xf01b58)[_0x2ecf53(0x105)](_0x4402b7=>path[_0x2ecf53(0xc6)](_0xf01b58,_0x4402b7))[_0x2ecf53(0x174)](_0x22c61a=>fs['statSync'](_0x22c61a)[_0x2ecf53(0x9c)]()&&path[_0x2ecf53(0x175)](_0x22c61a)[_0x2ecf53(0x119)](_0x2ecf53(0x14f)));if(_0xa9b0e['DxCjM'](_0x373cc3[_0x2ecf53(0xef)],0x0)){const _0x214d15=_0x373cc3[_0x2ecf53(0x105)](_0x31e54e=>({'filePath':_0x31e54e,'mtime':fs[_0x2ecf53(0xcd)](_0x31e54e)[_0x2ecf53(0x150)]}))[_0x2ecf53(0xf4)]((_0x3d0736,_0x399a51)=>{const _0x1a6782=_0x2ecf53;if(!_0x3d0736||!_0x3d0736[_0x1a6782(0x150)])return _0x399a51;if(_0xa9b0e[_0x1a6782(0x173)](_0x399a51[_0x1a6782(0x150)],_0x3d0736[_0x1a6782(0x150)]))return _0x399a51;return _0x3d0736;},{});return _0x214d15?_0x214d15[_0x2ecf53(0xaf)]:'';}return'';}catch(_0x596d72){return logger[_0x2ecf53(0x137)](_0x2ecf53(0xa5)+util[_0x2ecf53(0xb0)](_0x596d72)),'';}}static [a85_0x544dea(0x14c)]=async(_0x56b7f3,_0x32ec0a)=>{const _0x4cfbc3=a85_0x544dea,_0xd286fd={'VuAcX':function(_0x3beb1c,_0xee6423,_0x1e3cb3,_0x1a65ef,_0x2918e6){return _0x3beb1c(_0xee6423,_0x1e3cb3,_0x1a65ef,_0x2918e6);},'cIJtA':'GET'},_0x1ff56a={};_0x1ff56a['qs']=_0x56b7f3,_0x1ff56a[_0x4cfbc3(0x157)]=!![];const _0x115965=await _0xd286fd[_0x4cfbc3(0x124)](nodeRequest,_0xd286fd[_0x4cfbc3(0x10f)],UPDATED_CLI_ENDPOINT,_0x1ff56a,_0x32ec0a);return logger[_0x4cfbc3(0xdd)](_0x4cfbc3(0xe3)+JSON[_0x4cfbc3(0x131)](_0x115965)),_0x115965;};static[a85_0x544dea(0x156)](_0x4767a5){const _0x59ca5f=a85_0x544dea;try{const _0x334a99=fs[_0x59ca5f(0xe0)](_0x4767a5,'r+');return fs['closeSync'](_0x334a99),![];}catch(_0x32bea7){if(BINARY_BUSY_ERROR_CODES[_0x59ca5f(0x135)](_0x32bea7[_0x59ca5f(0x159)]))return logger['debug'](_0x59ca5f(0x113)+_0x4767a5),!![];return logger[_0x59ca5f(0xdd)](_0x59ca5f(0x144)+_0x32bea7[_0x59ca5f(0x99)]),![];}}static['runShellCommand'](_0x13adbf,_0x4522eb=''){const _0x412ef1=a85_0x544dea,_0x467548={'ZKKyI':function(_0x53b1f2,_0x3674d4){return _0x53b1f2(_0x3674d4);},'fHGGp':_0x412ef1(0x13f),'xUQEv':'version','vrkyL':function(_0x5bcfef,_0x5bd64e){return _0x5bcfef(_0x5bd64e);},'IFQby':function(_0xd60296,_0x2e960a,_0x427237,_0x98cf28){return _0xd60296(_0x2e960a,_0x427237,_0x98cf28);},'MWXoN':_0x412ef1(0x137)};return new Promise((_0x38393b,_0x13b15b)=>{const _0x2e5b0c=_0x412ef1,_0x5ef580={'SrFFM':_0x467548['xUQEv'],'KIqGp':function(_0x395445,_0x46be58){const _0x42248a=a85_0x539d;return _0x467548[_0x42248a(0xa0)](_0x395445,_0x46be58);},'vPyXB':_0x467548[_0x2e5b0c(0xbe)]},_0x126ed1={};_0x126ed1['cwd']=_0x4522eb,_0x126ed1['timeout']=0x1388;const _0x3f0928=_0x467548['IFQby'](exec,_0x13adbf,_0x126ed1,(_0x533083,_0x141d0a,_0x20e91f)=>{const _0x5098fa=_0x2e5b0c;if(_0x533083){if(_0x13adbf[_0x5098fa(0x135)](_0x5ef580[_0x5098fa(0xc4)])&&(_0x141d0a[_0x5098fa(0x14a)]()||_0x20e91f[_0x5098fa(0x14a)]())){const _0x4e0f81=_0x141d0a[_0x5098fa(0x14a)]()||_0x20e91f[_0x5098fa(0x14a)]();logger['debug']('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x4e0f81+'\x22'),_0x5ef580['KIqGp'](_0x38393b,_0x4e0f81);}else _0x5ef580[_0x5098fa(0x13b)](_0x38393b,_0x20e91f[_0x5098fa(0x14a)]()||_0x5ef580[_0x5098fa(0x123)]);}else logger[_0x5098fa(0xdd)](_0x5098fa(0xb3)+_0x141d0a[_0x5098fa(0x14a)]()+'\x22'),_0x5ef580['KIqGp'](_0x38393b,_0x141d0a[_0x5098fa(0x14a)]());});_0x3f0928['on'](_0x467548['MWXoN'],()=>{const _0x1ed322=_0x2e5b0c;_0x467548[_0x1ed322(0x12e)](_0x38393b,_0x467548[_0x1ed322(0xbe)]);});});}static [a85_0x544dea(0x9b)]=async(_0x1ba88e,_0x48d695)=>{const _0x44c6cf=a85_0x544dea,_0x31858d={'Pziwv':function(_0x31913d,_0x25f641){return _0x31913d>=_0x25f641;},'etxMi':_0x44c6cf(0x93),'UCawR':_0x44c6cf(0x108),'ctwNy':function(_0x69c1ec,_0x180ea0){return _0x69c1ec(_0x180ea0);},'DrKuT':'error','nvzUU':_0x44c6cf(0x168),'izmSe':_0x44c6cf(0x153),'YbLcL':function(_0x4f8b73,_0x34c2e5){return _0x4f8b73(_0x34c2e5);},'RqBjv':_0x44c6cf(0x98)};PerformanceTester[_0x44c6cf(0x161)](PerformanceEvents[_0x44c6cf(0x94)]),logger[_0x44c6cf(0xdd)](_0x44c6cf(0xa3)+_0x1ba88e);try{const _0x59963b=url[_0x44c6cf(0x115)](_0x1ba88e),_0xf85059=path[_0x44c6cf(0xc6)](_0x48d695,_0x44c6cf(0x10d)+process[_0x44c6cf(0xda)]+_0x44c6cf(0x133)),_0x3e9498=fs[_0x44c6cf(0x111)](_0xf85059);return new Promise((_0x2acbe2,_0x3564d5)=>{const _0x1b5e75=_0x44c6cf,_0x163a3e={'tQmew':_0x31858d[_0x1b5e75(0x15a)],'JUNDb':function(_0xedb0f2,_0x31c303){const _0x4b0717=_0x1b5e75;return _0x31858d[_0x4b0717(0xe2)](_0xedb0f2,_0x31c303);},'BKvTD':_0x31858d['izmSe'],'riIJD':function(_0x1bfb04,_0x4dba5e){return _0x31858d['YbLcL'](_0x1bfb04,_0x4dba5e);}};https[_0x1b5e75(0xc3)](_0x59963b,function(_0x5367ca){const _0x1f8f4f=_0x1b5e75,_0x1abf02=null;if(_0x5367ca[_0x1f8f4f(0xac)]&&_0x31858d[_0x1f8f4f(0x11b)](_0x5367ca[_0x1f8f4f(0xac)],0x190)){const _0x214359=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x5367ca[_0x1f8f4f(0xac)]+_0x1f8f4f(0x11c)+_0x1ba88e);_0x214359[_0x1f8f4f(0x159)]=_0x31858d['etxMi'],_0x214359[_0x1f8f4f(0xac)]=_0x5367ca['statusCode'],logger[_0x1f8f4f(0x137)](util[_0x1f8f4f(0xb0)](_0x31858d[_0x1f8f4f(0xd8)],_0x5367ca[_0x1f8f4f(0xac)])),PerformanceTester[_0x1f8f4f(0xce)](PerformanceEvents[_0x1f8f4f(0x94)],![],_0x1f8f4f(0xe7)+_0x5367ca[_0x1f8f4f(0xac)]),_0x5367ca['resume'](),_0x3e9498[_0x1f8f4f(0xed)](),fs[_0x1f8f4f(0x130)](_0xf85059,()=>{}),_0x31858d[_0x1f8f4f(0xe2)](_0x3564d5,_0x214359);return;}_0x5367ca[_0x1f8f4f(0x107)](_0x3e9498),_0x5367ca['on'](_0x31858d[_0x1f8f4f(0x11a)],function(_0x2c9b1a){const _0x42d179=_0x1f8f4f;logger[_0x42d179(0x137)](util[_0x42d179(0xb0)](_0x163a3e['tQmew'],_0x2c9b1a)),PerformanceTester[_0x42d179(0xce)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x2c9b1a)),_0x163a3e['JUNDb'](_0x3564d5,_0x2c9b1a);}),_0x3e9498['on'](_0x31858d['DrKuT'],function(_0x37e47e){const _0x201aa0=_0x1f8f4f;logger[_0x201aa0(0x137)](util[_0x201aa0(0xb0)](_0x163a3e[_0x201aa0(0xea)],_0x37e47e)),PerformanceTester[_0x201aa0(0xce)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x201aa0(0xb0)](_0x37e47e)),_0x163a3e['JUNDb'](_0x3564d5,_0x37e47e);}),CLIUtils[_0x1f8f4f(0xec)](_0x3e9498,_0x1abf02,_0xf85059,_0x48d695,_0x256ea3=>{const _0x4e6811=_0x1f8f4f;PerformanceTester[_0x4e6811(0xce)](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x163a3e['JUNDb'](_0x2acbe2,_0x256ea3);},_0x234a5c=>{const _0x25fb7b=_0x1f8f4f;PerformanceTester['end'](PerformanceEvents[_0x25fb7b(0x94)],![],util[_0x25fb7b(0xb0)](_0x234a5c)),_0x163a3e[_0x25fb7b(0xdb)](_0x3564d5,_0x234a5c);});})['on'](_0x31858d[_0x1b5e75(0x11a)],function(_0x2979ea){const _0x578efa=_0x1b5e75;logger['error']('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util['format'](_0x2979ea)),PerformanceTester['end'](PerformanceEvents[_0x578efa(0x94)],![],util[_0x578efa(0xb0)](_0x2979ea)),_0x163a3e['JUNDb'](_0x3564d5,_0x2979ea);});});}catch(_0x599c37){PerformanceTester[_0x44c6cf(0xce)](PerformanceEvents[_0x44c6cf(0x94)],![],util[_0x44c6cf(0xb0)](_0x599c37)),logger[_0x44c6cf(0x137)](util[_0x44c6cf(0xb0)](_0x31858d[_0x44c6cf(0xc8)],_0x599c37));throw _0x599c37;}};static[a85_0x544dea(0xec)](_0x49696b,_0xcd279d,_0x1ef4ed,_0x4012ef,_0x5be961,_0x330493){const _0x16bdb5=a85_0x544dea,_0x3678bf={'PEvuD':function(_0x186041,_0x5a8442){return _0x186041(_0x5a8442);},'kGFVk':function(_0x305638,_0x56e727){return _0x305638(_0x56e727);},'EMuRE':_0x16bdb5(0x147),'GsdNN':_0x16bdb5(0xce),'PlnHo':function(_0x2bab1e,_0x24b9ab){return _0x2bab1e!==_0x24b9ab;},'NmqDL':_0x16bdb5(0x137),'sPwHV':_0x16bdb5(0xd0),'xqZxg':'0755','DIUMF':_0x16bdb5(0xf1)};_0x49696b['on'](_0x3678bf[_0x16bdb5(0xb1)],function(){const _0x9d6cb=_0x16bdb5,_0x9f0ef4={'sYPZY':function(_0x44baa8,_0x7cac44){const _0x5d9120=a85_0x539d;return _0x3678bf[_0x5d9120(0x114)](_0x44baa8,_0x7cac44);},'eTLfF':function(_0x42865c,_0x4c8ec9){return _0x3678bf['kGFVk'](_0x42865c,_0x4c8ec9);},'MyxHK':_0x3678bf[_0x9d6cb(0xb1)],'LBQez':_0x3678bf[_0x9d6cb(0x10e)],'oYSsD':function(_0x518462,_0x46a7a6){const _0x4add0d=_0x9d6cb;return _0x3678bf[_0x4add0d(0x16a)](_0x518462,_0x46a7a6);},'fRiLx':_0x3678bf[_0x9d6cb(0xa2)],'otJbv':_0x3678bf[_0x9d6cb(0x14d)],'DzbIs':_0x3678bf[_0x9d6cb(0x13d)],'SyGVd':_0x3678bf[_0x9d6cb(0x158)]},_0x5117f6={};_0x5117f6[_0x9d6cb(0x103)]=!![],yauzl[_0x9d6cb(0xca)](_0x1ef4ed,_0x5117f6,function(_0x6ac8f0,_0x56cbc4){const _0x1a0151=_0x9d6cb,_0x1af05e={'fSJoW':function(_0x1e9af0,_0xa34b86){const _0x537a76=a85_0x539d;return _0x9f0ef4[_0x537a76(0x17a)](_0x1e9af0,_0xa34b86);},'AtOEv':function(_0x4a5107,_0x2920f0){const _0x337adb=a85_0x539d;return _0x9f0ef4[_0x337adb(0x17a)](_0x4a5107,_0x2920f0);},'bTcRC':function(_0x39b4ea,_0x378e38){return _0x9f0ef4['eTLfF'](_0x39b4ea,_0x378e38);},'ZUOrH':_0x9f0ef4[_0x1a0151(0x169)],'wdXTd':_0x9f0ef4[_0x1a0151(0x17d)],'IBJoY':function(_0x28a6b3,_0x48db75){const _0x1b8c50=_0x1a0151;return _0x9f0ef4[_0x1b8c50(0x12f)](_0x28a6b3,_0x48db75);},'dWTPm':_0x9f0ef4[_0x1a0151(0x11e)],'bpaGS':_0x9f0ef4[_0x1a0151(0x97)],'cczWI':_0x9f0ef4[_0x1a0151(0xf8)]};if(_0x6ac8f0){_0x9f0ef4[_0x1a0151(0x17a)](_0x330493,_0x6ac8f0);return;}_0x56cbc4[_0x1a0151(0x11d)](),_0x56cbc4['on'](_0x9f0ef4['SyGVd'],_0x1f8350=>{const _0x23cbdf=_0x1a0151;if(/\/$/[_0x23cbdf(0x10c)](_0x1f8350[_0x23cbdf(0x141)])){_0x56cbc4[_0x23cbdf(0x11d)]();return;}!_0xcd279d&&(_0xcd279d=_0x1f8350['fileName']);if(_0x1af05e[_0x23cbdf(0x151)](_0x1f8350[_0x23cbdf(0x141)],_0xcd279d))_0x56cbc4[_0x23cbdf(0x11d)]();else{const _0x2f95f9=_0x1f8350[_0x23cbdf(0x141)],_0x34e991=path[_0x23cbdf(0xc6)](_0x4012ef,_0x2f95f9+_0x23cbdf(0x164)+process['pid']);let _0x253a6e;try{_0x253a6e=fs[_0x23cbdf(0x111)](_0x34e991);}catch(_0x112625){if(BINARY_BUSY_ERROR_CODES[_0x23cbdf(0x135)](_0x112625[_0x23cbdf(0x159)])){const _0x5100de=path[_0x23cbdf(0xc6)](_0x4012ef,_0x2f95f9);if(fs[_0x23cbdf(0xd3)](_0x5100de)){logger[_0x23cbdf(0x132)](_0x23cbdf(0xff)+_0x2f95f9),fs[_0x23cbdf(0x130)](_0x1ef4ed,_0x4acf04=>{const _0x32ce71=_0x23cbdf;_0x4acf04&&logger[_0x32ce71(0x132)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x1ef4ed);}),_0x1af05e[_0x23cbdf(0xa8)](_0x5be961,_0x5100de);return;}logger[_0x23cbdf(0x132)](_0x23cbdf(0x139)+_0x2f95f9);}_0x1af05e['bTcRC'](_0x330493,_0x112625);return;}_0x253a6e['on'](_0x1af05e['dWTPm'],_0x92c5b6=>{const _0x40a697=_0x23cbdf;if(BINARY_BUSY_ERROR_CODES[_0x40a697(0x135)](_0x92c5b6[_0x40a697(0x159)])){const _0x130ab1=path[_0x40a697(0xc6)](_0x4012ef,_0x2f95f9);_0x253a6e[_0x40a697(0x147)](),fs['existsSync'](_0x130ab1)?(logger['warn'](_0x40a697(0xb8)+_0x92c5b6[_0x40a697(0x99)]),_0x56cbc4[_0x40a697(0x147)](),fs[_0x40a697(0x130)](_0x1ef4ed,_0x2c98d1=>{const _0x39277a=_0x40a697;_0x2c98d1&&logger[_0x39277a(0x132)](_0x39277a(0x16b)+_0x1ef4ed);}),_0x1af05e[_0x40a697(0x109)](_0x5be961,_0x130ab1)):(logger[_0x40a697(0x132)](_0x40a697(0x9e)+_0x92c5b6[_0x40a697(0x99)]),fs[_0x40a697(0x130)](_0x34e991,()=>{}),_0x1af05e[_0x40a697(0xb9)](_0x330493,_0x92c5b6));}else fs[_0x40a697(0x130)](_0x34e991,()=>{}),_0x1af05e['bTcRC'](_0x330493,_0x92c5b6);}),_0x56cbc4['openReadStream'](_0x1f8350,function(_0x35bcc3,_0x157e1f){const _0x58fe0d=_0x23cbdf,_0x10a8d8={};_0x10a8d8['Pksfz']=_0x1af05e[_0x58fe0d(0xd1)];const _0xa828f7=_0x10a8d8;if(_0x35bcc3){fs['unlink'](_0x34e991,()=>{}),_0x1af05e[_0x58fe0d(0xb9)](_0x330493,_0x35bcc3);return;}_0x157e1f['on'](_0x1af05e['wdXTd'],function(){const _0xae5e83=_0x58fe0d;_0x253a6e[_0xae5e83(0xce)](),_0x253a6e['on'](_0xa828f7[_0xae5e83(0x163)],function(){const _0x374fe0=_0xae5e83;_0x56cbc4[_0x374fe0(0x11d)]();});}),_0x157e1f[_0x58fe0d(0x107)](_0x253a6e);});}}),_0x56cbc4['on'](_0x9f0ef4['fRiLx'],_0x2c2f15=>{const _0x521342=_0x1a0151;_0x9f0ef4[_0x521342(0x17a)](_0x330493,_0x2c2f15);}),_0x56cbc4[_0x1a0151(0xb5)](_0x9f0ef4[_0x1a0151(0x17d)],()=>{const _0x523e59=_0x1a0151,_0x14002b={'LBNkb':function(_0x479d32,_0x336ad8){const _0x4ca8b3=a85_0x539d;return _0x1af05e[_0x4ca8b3(0x151)](_0x479d32,_0x336ad8);},'UvuSP':_0x1af05e[_0x523e59(0x15c)],'muKMY':function(_0x5dcb9f,_0x426360){const _0x95ff7f=_0x523e59;return _0x1af05e[_0x95ff7f(0xa8)](_0x5dcb9f,_0x426360);},'RdfpF':function(_0x2e5bf7,_0x405a87){const _0x34ccae=_0x523e59;return _0x1af05e[_0x34ccae(0xa8)](_0x2e5bf7,_0x405a87);}};fs[_0x523e59(0x130)](_0x1ef4ed,_0x3e41f7=>{const _0x287889=_0x523e59;_0x3e41f7&&logger[_0x287889(0x132)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x1ef4ed);});const _0x169b86=path[_0x523e59(0xc6)](_0x4012ef,_0xcd279d+'.tmp.'+process[_0x523e59(0xda)]),_0x49ca5d=path[_0x523e59(0xc6)](_0x4012ef,_0xcd279d);fs[_0x523e59(0x16f)](_0x169b86,_0x1af05e[_0x523e59(0xba)],function(_0xe14c06){const _0x4e0e2c=_0x523e59;if(_0xe14c06){_0x56cbc4[_0x4e0e2c(0x147)](),fs['unlink'](_0x169b86,()=>{}),_0x14002b[_0x4e0e2c(0x142)](_0x330493,_0xe14c06);return;}fs[_0x4e0e2c(0x148)](_0x169b86,_0x49ca5d,function(_0x27bc51){const _0x2843f7=_0x4e0e2c;if(_0x27bc51){if(_0x14002b['LBNkb'](_0x27bc51[_0x2843f7(0x159)],_0x14002b[_0x2843f7(0xc9)])){_0x56cbc4[_0x2843f7(0x147)](),fs[_0x2843f7(0x130)](_0x169b86,()=>{}),_0x14002b['muKMY'](_0x330493,_0x27bc51);return;}logger[_0x2843f7(0x132)](_0x2843f7(0xf6)+_0x27bc51[_0x2843f7(0x99)]);try{fs[_0x2843f7(0xf7)](_0x169b86,_0x49ca5d);}catch(_0xa69261){_0x56cbc4[_0x2843f7(0x147)](),fs[_0x2843f7(0x130)](_0x169b86,()=>{}),_0x14002b[_0x2843f7(0x142)](_0x330493,_0xa69261);return;}fs[_0x2843f7(0x130)](_0x169b86,_0x760d14=>{const _0x57178f=_0x2843f7;_0x760d14&&logger[_0x57178f(0x132)](_0x57178f(0xa4)+_0x760d14[_0x57178f(0x99)]);});}_0x56cbc4[_0x2843f7(0x147)](),_0x14002b[_0x2843f7(0x142)](_0x5be961,_0x49ca5d);});});});});});}static['getTestFrameworkDetail'](){const _0x27a63e=a85_0x544dea;if(process[_0x27a63e(0xb4)][_0x27a63e(0x15d)])return JSON[_0x27a63e(0x115)](process[_0x27a63e(0xb4)][_0x27a63e(0x15d)]);return this['testFrameworkDetail'];}static[a85_0x544dea(0x121)](){const _0xb51b87=a85_0x544dea;if(process['env'][_0xb51b87(0xe1)])return JSON['parse'](process[_0xb51b87(0xb4)][_0xb51b87(0xe1)]);return this['automationFrameworkDetail'];}static[a85_0x544dea(0x172)](_0x29ed91,_0x5df668){const _0x1c21ad=a85_0x544dea,_0x8148d1={'QRyvQ':_0x1c21ad(0x126),'ejPiu':function(_0x575c6b,_0xef05fc){return _0x575c6b||_0xef05fc;},'ZIeXH':function(_0x41bc61,_0x32cef5){return _0x41bc61(_0x32cef5);}},_0x4c9249=_0x8148d1[_0x1c21ad(0xee)][_0x1c21ad(0xfa)]('|');let _0x375838=0x0;while(!![]){switch(_0x4c9249[_0x375838++]){case'0':_0x8148d1[_0x1c21ad(0x176)](!_0x29ed91,!_0x5df668)&&logger[_0x1c21ad(0xdd)](_0x1c21ad(0x16c)+_0x29ed91+_0x1c21ad(0xbc)+_0x5df668);continue;case'1':process[_0x1c21ad(0xb4)][_0x1c21ad(0xe1)]=JSON[_0x1c21ad(0x131)](this[_0x1c21ad(0x116)]);continue;case'2':this[_0x1c21ad(0x110)]={'name':_0x29ed91,'version':{[_0x29ed91]:_0x8148d1[_0x1c21ad(0xbb)](getFrameworkVersion,_0x29ed91)}};continue;case'3':this['automationFrameworkDetail']={'name':_0x5df668,'version':_0x8148d1['ZIeXH'](getFrameworkVersion,_0x5df668)};continue;case'4':process[_0x1c21ad(0xb4)][_0x1c21ad(0x15d)]=JSON['stringify'](this[_0x1c21ad(0x110)]);continue;}break;}}static['getHookRegistryKey'](_0x4e15ec,_0x871f7b){return _0x4e15ec+':'+_0x871f7b;}static[a85_0x544dea(0xa1)](){return process['pid']+':'+threadId;}static[a85_0x544dea(0xbd)](_0x27997b){const _0x3dfc08=a85_0x544dea;if(_0x27997b[_0x3dfc08(0x10b)]&&_0x27997b[_0x3dfc08(0x10b)][_0x3dfc08(0xfd)])return!![];return![];}static[a85_0x544dea(0x10a)](_0x3ed310){const _0x3d3b6b=a85_0x544dea;if(_0x3ed310[_0x3d3b6b(0x10b)]&&_0x3ed310['testContextOptions'][_0x3d3b6b(0xad)])return!![];return![];}static[a85_0x544dea(0xe6)](_0x4746da){const _0x30ad6c=a85_0x544dea,_0x1a86da=new RegExp(TestFrameworkConstants[_0x30ad6c(0x17b)]);return _0x1a86da[_0x30ad6c(0x10c)](_0x4746da);}static[a85_0x544dea(0xc0)](_0x29cc76,_0x5a0f8b){const _0x142ad9=a85_0x544dea,_0x1c63c0={};_0x1c63c0[_0x142ad9(0xc5)]=function(_0x4dab29,_0xf2b9ae){return _0x4dab29!==_0xf2b9ae;},_0x1c63c0['gkDsP']=function(_0x3a1830,_0x414f59){return _0x3a1830===_0x414f59;},_0x1c63c0[_0x142ad9(0xb2)]=_0x142ad9(0x117);const _0x11b089=_0x1c63c0;for(const [_0x2f6651,_0x58447f]of Object[_0x142ad9(0x17c)](_0x5a0f8b)){if(_0x11b089[_0x142ad9(0xc5)](_0x58447f,null)&&_0x11b089['gkDsP'](typeof _0x58447f,_0x11b089[_0x142ad9(0xb2)])&&!Array[_0x142ad9(0xc1)](_0x58447f))_0x29cc76[_0x2f6651]=this[_0x142ad9(0xc0)](_0x29cc76[_0x2f6651]||{},_0x58447f);else Array[_0x142ad9(0xc1)](_0x58447f)?_0x29cc76[_0x2f6651]=(_0x29cc76[_0x2f6651]||[])['concat'](_0x58447f):_0x29cc76[_0x2f6651]=_0x58447f;}return _0x29cc76;}}module[a85_0x544dea(0x166)]=CLIUtils;
1
+ const a85_0x52c9c7=a85_0x57f3;(function(_0xa2468d,_0x4fec90){const _0x2b54c3=a85_0x57f3,_0x5bdefb=_0xa2468d();while(!![]){try{const _0x2edad7=-parseInt(_0x2b54c3(0x112))/0x1+-parseInt(_0x2b54c3(0xc0))/0x2+-parseInt(_0x2b54c3(0x17b))/0x3*(parseInt(_0x2b54c3(0x100))/0x4)+parseInt(_0x2b54c3(0x148))/0x5*(parseInt(_0x2b54c3(0xfc))/0x6)+-parseInt(_0x2b54c3(0x11a))/0x7+parseInt(_0x2b54c3(0xcf))/0x8*(parseInt(_0x2b54c3(0xeb))/0x9)+parseInt(_0x2b54c3(0xfb))/0xa;if(_0x2edad7===_0x4fec90)break;else _0x5bdefb['push'](_0x5bdefb['shift']());}catch(_0x1ecbcb){_0x5bdefb['push'](_0x5bdefb['shift']());}}}(a85_0x3f88,0x32ed5));const fs=require('fs'),os=require('os'),url=require(a85_0x52c9c7(0xa4)),path=require(a85_0x52c9c7(0x8c)),{exec}=require('child_process'),{https}=require(a85_0x52c9c7(0xbd)),yauzl=require('yauzl'),util=require(a85_0x52c9c7(0xca)),{getFrameworkVersion}=require(a85_0x52c9c7(0xff)),{threadId}=require(a85_0x52c9c7(0x139)),PerformanceTester=require(a85_0x52c9c7(0xf3)),{EVENTS:PerformanceEvents}=require(a85_0x52c9c7(0xb7)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a85_0x52c9c7(0xe1)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a85_0x52c9c7(0xa2)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a85_0x52c9c7(0xed)),{createClassLogger}=require(a85_0x52c9c7(0xc4)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a85_0x52c9c7(0x176)),TestFrameworkState=require(a85_0x52c9c7(0xd3)),AutomationFrameworkState=require(a85_0x52c9c7(0x160)),TestFrameworkConstants=require(a85_0x52c9c7(0x13c)),logger=createClassLogger(a85_0x52c9c7(0x162)),{getBStackAPIUrl}=require('../utils/apiUtilityMethods.js');class CLIUtils{[a85_0x52c9c7(0x14a)]={};[a85_0x52c9c7(0xae)]={};static['isDevelopmentEnv'](){const _0x3774c2=a85_0x52c9c7,_0x15e56d={};_0x15e56d[_0x3774c2(0x135)]=function(_0xf8796d,_0x3b530e){return _0xf8796d===_0x3b530e;},_0x15e56d[_0x3774c2(0x10c)]=_0x3774c2(0xa6);const _0x5c131d=_0x15e56d;return _0x5c131d[_0x3774c2(0x135)](process['env'][_0x3774c2(0x109)],_0x5c131d[_0x3774c2(0x10c)]);}static['getCLIParamsForDevEnv'](){const _0x12edec=a85_0x52c9c7,_0x5d286d={};return _0x5d286d['id']=process[_0x12edec(0x16c)][_0x12edec(0x109)],_0x5d286d[_0x12edec(0x99)]=_0x12edec(0x15d)+process[_0x12edec(0x16c)][_0x12edec(0x109)]+'.sock',_0x5d286d;}static[a85_0x52c9c7(0x116)](){const _0x336fdd=a85_0x52c9c7,_0x432040={'HLjSv':function(_0x109306,_0x3b2b78){return _0x109306(_0x3b2b78);},'EUzhW':_0x336fdd(0x12d)};return _0x432040[_0x336fdd(0xc3)](require,_0x432040[_0x336fdd(0xd6)])[_0x336fdd(0x10f)];}static[a85_0x52c9c7(0x131)](){const _0x12d174=a85_0x52c9c7,_0x31e276={};_0x31e276[_0x12d174(0x165)]=_0x12d174(0x9a);const _0x1bccc9=_0x31e276;return _0x1bccc9[_0x12d174(0x165)];}static async[a85_0x52c9c7(0xb3)](_0x1787d5){const _0x231c13=a85_0x52c9c7,_0x579ff0={'FcSpV':_0x231c13(0x155),'sGrGO':function(_0x366025,_0x2ccff0){return _0x366025(_0x2ccff0);},'xbioK':_0x231c13(0xfa)};logger[_0x231c13(0xd0)](_0x579ff0['FcSpV']);const _0x186912=process['env'][_0x231c13(0xdf)];if(!_0x579ff0['sGrGO'](isNullOrEmpty,_0x186912))return logger[_0x231c13(0xd0)]('Development\x20Cli\x20Path:\x20'+_0x186912),_0x186912;try{const _0x2d483e=this['getCliDir']();if(_0x579ff0['sGrGO'](isNullOrEmpty,_0x2d483e))throw new Error(_0x579ff0[_0x231c13(0x133)]);const _0x27b050=this['getExistingCliPath'](_0x2d483e),_0x3cc880=await this['checkAndUpdateCli'](_0x27b050,_0x2d483e,_0x1787d5);return logger[_0x231c13(0xd0)](_0x231c13(0xde)+_0x3cc880),_0x3cc880;}catch(_0x1ba91c){logger[_0x231c13(0xd0)]('Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20'+util[_0x231c13(0x10e)](_0x1ba91c));}return null;}static async['checkAndUpdateCli'](_0x4bcd01,_0xf60803,_0x3f815c){const _0x3b9a59=a85_0x52c9c7,_0x2dadec={'zwotV':function(_0x3b6191){return _0x3b6191();},'gYLEX':function(_0x54e409,_0x17c22a){return _0x54e409(_0x17c22a);},'uWVca':function(_0x1bd40e,_0x55682e,_0xc4a59a){return _0x1bd40e(_0x55682e,_0xc4a59a);},'TvbKz':_0x3b9a59(0x14e),'BHnvL':'url','xaaqt':function(_0xa65e79,_0x28b7e0,_0x27e999){return _0xa65e79(_0x28b7e0,_0x27e999);}};PerformanceTester[_0x3b9a59(0x108)](PerformanceEvents[_0x3b9a59(0x11f)]);try{logger[_0x3b9a59(0xc9)](_0x3b9a59(0x121)+_0x4bcd01);const _0x1cd8bf=_0x2dadec[_0x3b9a59(0xa3)](getHostInfo),_0x48f6e2={'sdk_version':CLIUtils[_0x3b9a59(0x116)](),'os':_0x1cd8bf[_0x3b9a59(0x120)],'os_arch':_0x1cd8bf[_0x3b9a59(0x13f)],'cli_version':'0','sdk_language':this[_0x3b9a59(0x131)]()};!_0x2dadec[_0x3b9a59(0x8d)](isNullOrEmpty,_0x4bcd01)&&(_0x48f6e2[_0x3b9a59(0x110)]=await this[_0x3b9a59(0xbf)](_0x4bcd01+_0x3b9a59(0x123)));const _0xee13f=await this[_0x3b9a59(0x178)](_0x48f6e2,_0x3f815c);process[_0x3b9a59(0x16c)][_0x3b9a59(0xe3)]&&(logger['info'](_0x3b9a59(0x8e)+process[_0x3b9a59(0x16c)][_0x3b9a59(0xe3)]),_0xee13f[_0x3b9a59(0x14e)]['url']=process['env']['BROWSERSTACK_BINARY_URL']);if(_0x2dadec['uWVca'](nestedKeyValue,_0xee13f,[_0x2dadec[_0x3b9a59(0x93)],_0x2dadec[_0x3b9a59(0x107)]])){logger['debug']('Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20'+_0x48f6e2[_0x3b9a59(0x110)]);if(!_0x2dadec[_0x3b9a59(0x8d)](isNullOrEmpty,_0x4bcd01)&&this[_0x3b9a59(0x157)](_0x4bcd01))return logger[_0x3b9a59(0x8a)](_0x3b9a59(0x9b)+_0x4bcd01),_0x4bcd01;return await this['downloadLatestBinary'](_0x2dadec['xaaqt'](nestedKeyValue,_0xee13f,[_0x2dadec['TvbKz'],_0x2dadec[_0x3b9a59(0x107)]]),_0xf60803);}return _0x4bcd01;}finally{PerformanceTester['end'](PerformanceEvents[_0x3b9a59(0x11f)]);}}static[a85_0x52c9c7(0x11c)](){const _0xcabb28=a85_0x52c9c7,_0x2f07d4={'GwPml':function(_0x209adc,_0x50362e){return _0x209adc(_0x50362e);},'rXoVQ':_0xcabb28(0xfa),'QUqRe':_0xcabb28(0x156),'SIvsd':function(_0x6299b1,_0x5234a3){return _0x6299b1(_0x5234a3);}},_0x342967=this[_0xcabb28(0xf8)]();try{if(_0x2f07d4[_0xcabb28(0xd9)](isNullOrEmpty,_0x342967))throw new Error(_0x2f07d4[_0xcabb28(0x15a)]);const _0xfd12bd=path[_0xcabb28(0xf0)](_0x342967,_0x2f07d4[_0xcabb28(0xd5)]);return!fs[_0xcabb28(0x171)](_0xfd12bd)&&_0x2f07d4[_0xcabb28(0x125)](createDir,_0xfd12bd),_0xfd12bd;}catch(_0x3c4112){logger[_0xcabb28(0xd0)](_0xcabb28(0x144)+util[_0xcabb28(0x10e)](_0x3c4112));}}static[a85_0x52c9c7(0xf8)](){const _0x16a5f3=a85_0x52c9c7,_0x29911a={'rvBJM':_0x16a5f3(0x94),'ZeRLG':function(_0x63d5e5,_0xc97d44){return _0x63d5e5(_0xc97d44);},'DiAgh':function(_0x3ca1c,_0x311b25){return _0x3ca1c(_0x311b25);},'shtmu':function(_0xf53a78,_0x41b18b){return _0xf53a78(_0x41b18b);},'jcALn':function(_0x235db4,_0x36c38b){return _0x235db4(_0x36c38b);}},_0x1007fc=[process['env']['BROWSERSTACK_FILES_DIR'],path['join'](os['homedir'](),_0x29911a[_0x16a5f3(0x92)]),path[_0x16a5f3(0xf0)](os[_0x16a5f3(0x114)](),_0x29911a[_0x16a5f3(0x92)])];for(const _0xa678ae of _0x1007fc){if(_0x29911a['ZeRLG'](isNullOrEmpty,_0xa678ae))continue;try{if(fs[_0x16a5f3(0x171)](_0xa678ae)){logger[_0x16a5f3(0xd0)](_0x16a5f3(0xb0)+_0xa678ae+_0x16a5f3(0xb5));if(!_0x29911a['ZeRLG'](isModifiable,_0xa678ae)){logger[_0x16a5f3(0xd0)](_0x16a5f3(0x169)+_0xa678ae);const _0x391132=_0x29911a['ZeRLG'](setReadWriteExecuteAccess,_0xa678ae);if(!_0x29911a[_0x16a5f3(0xfe)](isTrue,_0x391132)){logger[_0x16a5f3(0x8a)](_0x16a5f3(0x16e)+_0xa678ae);continue;}}}else{logger['debug'](_0x16a5f3(0x153)+_0xa678ae),_0x29911a[_0x16a5f3(0x90)](createDir,_0xa678ae),logger[_0x16a5f3(0xd0)](_0x16a5f3(0x169)+_0xa678ae);const _0x20a101=_0x29911a[_0x16a5f3(0xbc)](setReadWriteExecuteAccess,_0xa678ae);!_0x29911a[_0x16a5f3(0xba)](isTrue,_0x20a101)&&logger[_0x16a5f3(0x8a)](_0x16a5f3(0x16e)+_0xa678ae);}return _0xa678ae;}catch(_0x1bb3ad){logger[_0x16a5f3(0x141)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util[_0x16a5f3(0x10e)](_0x1bb3ad));}}return null;}static['getExistingCliPath'](_0x17c91a){const _0x18f320=a85_0x52c9c7,_0x2e9537={};_0x2e9537[_0x18f320(0x173)]=function(_0x3c326e,_0x4315d5){return _0x3c326e>_0x4315d5;},_0x2e9537[_0x18f320(0x111)]=function(_0x572fab,_0xb80e33){return _0x572fab>_0xb80e33;};const _0x4d4b5d=_0x2e9537;try{if(!fs[_0x18f320(0x171)](_0x17c91a)||!fs[_0x18f320(0xe5)](_0x17c91a)[_0x18f320(0x104)]())return'';const _0x245952=fs[_0x18f320(0x177)](_0x17c91a)[_0x18f320(0x14f)](_0x3673d4=>path[_0x18f320(0xf0)](_0x17c91a,_0x3673d4))[_0x18f320(0xb2)](_0x2ee23a=>fs[_0x18f320(0xe5)](_0x2ee23a)[_0x18f320(0xf6)]()&&path[_0x18f320(0x127)](_0x2ee23a)[_0x18f320(0x138)](_0x18f320(0x12e)));if(_0x4d4b5d[_0x18f320(0x111)](_0x245952[_0x18f320(0x105)],0x0)){const _0xe088ed=_0x245952[_0x18f320(0x14f)](_0x289be4=>({'filePath':_0x289be4,'mtime':fs['statSync'](_0x289be4)[_0x18f320(0x159)]}))[_0x18f320(0xaa)]((_0x158369,_0x23eeef)=>{const _0x5b3b7e=_0x18f320;if(!_0x158369||!_0x158369['mtime'])return _0x23eeef;if(_0x4d4b5d[_0x5b3b7e(0x173)](_0x23eeef[_0x5b3b7e(0x159)],_0x158369[_0x5b3b7e(0x159)]))return _0x23eeef;return _0x158369;},{});return _0xe088ed?_0xe088ed[_0x18f320(0x14d)]:'';}return'';}catch(_0x272183){return logger[_0x18f320(0x141)](_0x18f320(0x17a)+util[_0x18f320(0x10e)](_0x272183)),'';}}static [a85_0x52c9c7(0x178)]=async(_0x45cf88,_0xd9491f)=>{const _0x4e3983=a85_0x52c9c7,_0x1c412f={'Qzybf':function(_0x9ca57d,_0x1ac0c0,_0xa9091d,_0x5e52f7,_0x4f9f62){return _0x9ca57d(_0x1ac0c0,_0xa9091d,_0x5e52f7,_0x4f9f62);},'RqVgk':_0x4e3983(0xf1)},_0xcd621b={};_0xcd621b['qs']=_0x45cf88,_0xcd621b[_0x4e3983(0x9e)]=!![];const _0x5fb5af=await _0x1c412f['Qzybf'](nodeRequest,_0x1c412f[_0x4e3983(0xef)],UPDATED_CLI_ENDPOINT,_0xcd621b,_0xd9491f);return logger[_0x4e3983(0xd0)](_0x4e3983(0xd2)+JSON[_0x4e3983(0xb8)](_0x5fb5af)),_0x5fb5af;};static[a85_0x52c9c7(0x157)](_0x25785d){const _0x52430a=a85_0x52c9c7;try{const _0x240a7c=fs[_0x52430a(0x17e)](_0x25785d,'r+');return fs['closeSync'](_0x240a7c),![];}catch(_0x141fef){if(BINARY_BUSY_ERROR_CODES[_0x52430a(0x132)](_0x141fef[_0x52430a(0x175)]))return logger['debug'](_0x52430a(0x9f)+_0x25785d),!![];return logger[_0x52430a(0xd0)](_0x52430a(0xe0)+_0x141fef[_0x52430a(0x16d)]),![];}}static['runShellCommand'](_0x122831,_0x4c41b8=''){const _0x4f39b1=a85_0x52c9c7,_0x4e1019={'CHEZO':'version','oDNBF':function(_0x4a91b5,_0x5a62e8){return _0x4a91b5(_0x5a62e8);},'pUKVU':_0x4f39b1(0x17d),'BMdSw':function(_0x5a3ad6,_0xd315a9,_0x14bc66,_0x52b32c){return _0x5a3ad6(_0xd315a9,_0x14bc66,_0x52b32c);},'nXqtN':_0x4f39b1(0x141)};return new Promise((_0x598b41,_0x1fb83f)=>{const _0x3cf30e=_0x4f39b1,_0x25ae5e={'iqkiF':_0x4e1019[_0x3cf30e(0x13a)],'qjOXU':function(_0xd7a6bb,_0x1b86cf){return _0x4e1019['oDNBF'](_0xd7a6bb,_0x1b86cf);},'CNDnB':_0x4e1019[_0x3cf30e(0x10d)],'wmRrV':function(_0x501197,_0x1a9594){const _0x33174b=_0x3cf30e;return _0x4e1019[_0x33174b(0xdb)](_0x501197,_0x1a9594);}},_0x42da51={};_0x42da51[_0x3cf30e(0xf9)]=_0x4c41b8,_0x42da51[_0x3cf30e(0xcc)]=0x1388;const _0x15435c=_0x4e1019['BMdSw'](exec,_0x122831,_0x42da51,(_0x2c4b3c,_0x44fba5,_0x5222cb)=>{const _0x571534=_0x3cf30e;if(_0x2c4b3c){if(_0x122831['includes'](_0x25ae5e['iqkiF'])&&(_0x44fba5[_0x571534(0x17c)]()||_0x5222cb[_0x571534(0x17c)]())){const _0x155142=_0x44fba5[_0x571534(0x17c)]()||_0x5222cb[_0x571534(0x17c)]();logger[_0x571534(0xd0)]('CLI\x20version\x20found\x20despite\x20error:\x20\x22'+_0x155142+'\x22'),_0x25ae5e['qjOXU'](_0x598b41,_0x155142);}else _0x25ae5e[_0x571534(0x174)](_0x598b41,_0x5222cb['trim']()||_0x25ae5e[_0x571534(0x10a)]);}else logger[_0x571534(0xd0)]('Resolving\x20with\x20stdout:\x20\x22'+_0x44fba5['trim']()+'\x22'),_0x25ae5e[_0x571534(0x16a)](_0x598b41,_0x44fba5[_0x571534(0x17c)]());});_0x15435c['on'](_0x4e1019[_0x3cf30e(0x13b)],()=>{const _0x3b71a2=_0x3cf30e;_0x25ae5e['wmRrV'](_0x598b41,_0x25ae5e[_0x3b71a2(0x10a)]);});});}static [a85_0x52c9c7(0x128)]=async(_0x319588,_0x1a6e52)=>{const _0x4dac61=a85_0x52c9c7,_0x2b0eb4={'OhgEx':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','kEOsl':function(_0x23a953,_0x451c40){return _0x23a953(_0x451c40);},'FkOeb':_0x4dac61(0x13d),'yuSgv':function(_0x14a871,_0x228b84){return _0x14a871(_0x228b84);},'OUjOI':function(_0x29b918,_0x351f9d){return _0x29b918>=_0x351f9d;},'cIOOc':_0x4dac61(0x149),'xUFOK':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','loRpK':_0x4dac61(0x141),'EXOot':_0x4dac61(0x102)};PerformanceTester['start'](PerformanceEvents[_0x4dac61(0x119)]),logger[_0x4dac61(0xd0)](_0x4dac61(0x15c)+_0x319588);try{const _0x398309=url[_0x4dac61(0xc5)](_0x319588),_0x172fd4=path['join'](_0x1a6e52,'downloaded_file_'+process[_0x4dac61(0x12f)]+_0x4dac61(0x158)),_0x2d8c9f=fs[_0x4dac61(0xd8)](_0x172fd4);return new Promise((_0x3da708,_0xc42f98)=>{const _0x15e619=_0x4dac61,_0x293c5b={'iZzaT':_0x2b0eb4[_0x15e619(0xce)],'HanfI':function(_0x4c017c,_0x55cef7){const _0x566be3=_0x15e619;return _0x2b0eb4[_0x566be3(0x147)](_0x4c017c,_0x55cef7);},'AhVsG':_0x2b0eb4[_0x15e619(0x180)],'HeiZO':function(_0x2c4963,_0x47eb77){const _0x4345d5=_0x15e619;return _0x2b0eb4[_0x4345d5(0xee)](_0x2c4963,_0x47eb77);},'BgzMC':function(_0x50f812,_0x524ca0){const _0x5bddc2=_0x15e619;return _0x2b0eb4[_0x5bddc2(0xd1)](_0x50f812,_0x524ca0);},'cwqrR':_0x2b0eb4[_0x15e619(0x179)],'KCwon':_0x2b0eb4['xUFOK'],'BHFRz':_0x2b0eb4[_0x15e619(0x9c)]};https['get'](_0x398309,function(_0x485660){const _0x3e73fe=_0x15e619,_0x121523=null;if(_0x485660['statusCode']&&_0x293c5b[_0x3e73fe(0x143)](_0x485660['statusCode'],0x190)){const _0x201db0=new Error(_0x3e73fe(0x89)+_0x485660[_0x3e73fe(0x134)]+_0x3e73fe(0x14b)+_0x319588);_0x201db0[_0x3e73fe(0x175)]=_0x293c5b[_0x3e73fe(0xe8)],_0x201db0[_0x3e73fe(0x134)]=_0x485660[_0x3e73fe(0x134)],logger[_0x3e73fe(0x141)](util[_0x3e73fe(0x10e)](_0x293c5b[_0x3e73fe(0x11e)],_0x485660[_0x3e73fe(0x134)])),PerformanceTester[_0x3e73fe(0x8b)](PerformanceEvents[_0x3e73fe(0x119)],![],'HTTP\x20'+_0x485660[_0x3e73fe(0x134)]),_0x485660[_0x3e73fe(0x17f)](),_0x2d8c9f[_0x3e73fe(0xa1)](),fs[_0x3e73fe(0x137)](_0x172fd4,()=>{}),_0x293c5b[_0x3e73fe(0xd4)](_0xc42f98,_0x201db0);return;}_0x485660['pipe'](_0x2d8c9f),_0x485660['on'](_0x293c5b[_0x3e73fe(0x96)],function(_0x4097ca){const _0x591df6=_0x3e73fe;logger[_0x591df6(0x141)](util[_0x591df6(0x10e)](_0x293c5b[_0x591df6(0x11b)],_0x4097ca)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util['format'](_0x4097ca)),_0x293c5b[_0x591df6(0x145)](_0xc42f98,_0x4097ca);}),_0x2d8c9f['on'](_0x293c5b[_0x3e73fe(0x96)],function(_0x29467b){const _0x4320a1=_0x3e73fe;logger[_0x4320a1(0x141)](util[_0x4320a1(0x10e)](_0x293c5b[_0x4320a1(0xc8)],_0x29467b)),PerformanceTester[_0x4320a1(0x8b)](PerformanceEvents[_0x4320a1(0x119)],![],util[_0x4320a1(0x10e)](_0x29467b)),_0x293c5b[_0x4320a1(0x145)](_0xc42f98,_0x29467b);}),CLIUtils[_0x3e73fe(0xea)](_0x2d8c9f,_0x121523,_0x172fd4,_0x1a6e52,_0x116576=>{PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD']),_0x293c5b['HeiZO'](_0x3da708,_0x116576);},_0x50df25=>{const _0x1ae128=_0x3e73fe;PerformanceTester['end'](PerformanceEvents[_0x1ae128(0x119)],![],util[_0x1ae128(0x10e)](_0x50df25)),_0x293c5b['HanfI'](_0xc42f98,_0x50df25);});})['on'](_0x2b0eb4['loRpK'],function(_0x5871d7){const _0x304521=_0x15e619;logger[_0x304521(0x141)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x304521(0x10e)](_0x5871d7)),PerformanceTester[_0x304521(0x8b)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x304521(0x10e)](_0x5871d7)),_0x293c5b[_0x304521(0x145)](_0xc42f98,_0x5871d7);});});}catch(_0x14e325){PerformanceTester[_0x4dac61(0x8b)](PerformanceEvents[_0x4dac61(0x119)],![],util[_0x4dac61(0x10e)](_0x14e325)),logger[_0x4dac61(0x141)](util[_0x4dac61(0x10e)](_0x2b0eb4[_0x4dac61(0xc1)],_0x14e325));throw _0x14e325;}};static[a85_0x52c9c7(0xea)](_0x82ce61,_0x4f29fd,_0x299616,_0x46011f,_0x20c21b,_0x86dcd2){const _0x126008=a85_0x52c9c7,_0xd302e1={'EDoUR':function(_0x34251b,_0x5690e3){return _0x34251b(_0x5690e3);},'ktsPi':function(_0x548599,_0x3db6b8){return _0x548599(_0x3db6b8);},'sPLPF':_0x126008(0xec),'dGiAs':_0x126008(0x8b),'RLdTq':function(_0x154342,_0x49f52d){return _0x154342!==_0x49f52d;},'rMHHC':function(_0x3644a9,_0x7fc90){return _0x3644a9(_0x7fc90);},'yTXxY':'error','liygy':_0x126008(0xb4),'DuoYp':_0x126008(0xc6),'austq':_0x126008(0xd7)};_0x82ce61['on'](_0xd302e1[_0x126008(0x98)],function(){const _0x2b8b43=_0x126008,_0x3a2fe2={'FVsxw':function(_0x4080a3,_0xda6548){const _0x416057=a85_0x57f3;return _0xd302e1[_0x416057(0x12b)](_0x4080a3,_0xda6548);},'vsvWy':function(_0x23e520,_0x4aa415){const _0x4782e8=a85_0x57f3;return _0xd302e1[_0x4782e8(0x88)](_0x23e520,_0x4aa415);},'UmcaB':_0xd302e1['sPLPF'],'awjsr':_0xd302e1[_0x2b8b43(0x136)],'qntMZ':function(_0xa99deb,_0x36ef7f){return _0xd302e1['RLdTq'](_0xa99deb,_0x36ef7f);},'WctOH':function(_0x1839c6,_0x5b9e63){const _0x4c26f5=_0x2b8b43;return _0xd302e1[_0x4c26f5(0xb9)](_0x1839c6,_0x5b9e63);},'BGXJH':_0xd302e1[_0x2b8b43(0x16f)],'heaST':_0xd302e1['liygy'],'WbCue':function(_0x52d010,_0x426d91){const _0x1bfcf8=_0x2b8b43;return _0xd302e1[_0x1bfcf8(0xb9)](_0x52d010,_0x426d91);},'diHdu':_0xd302e1[_0x2b8b43(0x103)],'jVxrB':_0xd302e1[_0x2b8b43(0xe4)]},_0x4af2f5={};_0x4af2f5[_0x2b8b43(0x166)]=!![],yauzl[_0x2b8b43(0xe6)](_0x299616,_0x4af2f5,function(_0x51568c,_0x36a068){const _0x5e4b8e=_0x2b8b43,_0x11287d={'xoAiK':function(_0x1f1364,_0x34f019){return _0x3a2fe2['vsvWy'](_0x1f1364,_0x34f019);},'ULwYY':_0x3a2fe2[_0x5e4b8e(0x9d)],'xxlwo':_0x3a2fe2[_0x5e4b8e(0x172)],'QecKz':function(_0x5b43bb,_0x4d7b7e){const _0x4853a7=_0x5e4b8e;return _0x3a2fe2[_0x4853a7(0xa8)](_0x5b43bb,_0x4d7b7e);},'UxmJc':function(_0x5cc000,_0x168260){const _0x4b149a=_0x5e4b8e;return _0x3a2fe2[_0x4b149a(0xb6)](_0x5cc000,_0x168260);},'WFFOs':function(_0x5cb8e5,_0x503234){const _0x3c41fc=_0x5e4b8e;return _0x3a2fe2[_0x3c41fc(0x15e)](_0x5cb8e5,_0x503234);},'chkkd':_0x3a2fe2[_0x5e4b8e(0x97)],'eAqmi':_0x3a2fe2[_0x5e4b8e(0x163)],'FjSsR':function(_0xc584f5,_0x15a8ca){const _0x29b153=_0x5e4b8e;return _0x3a2fe2[_0x29b153(0xf2)](_0xc584f5,_0x15a8ca);},'gJczl':function(_0x2fc919,_0x104bb8){const _0x3a19b4=_0x5e4b8e;return _0x3a2fe2[_0x3a19b4(0x15e)](_0x2fc919,_0x104bb8);},'sakAN':_0x3a2fe2['diHdu']};if(_0x51568c){_0x3a2fe2[_0x5e4b8e(0xf2)](_0x86dcd2,_0x51568c);return;}_0x36a068[_0x5e4b8e(0xad)](),_0x36a068['on'](_0x3a2fe2[_0x5e4b8e(0x95)],_0x4458fb=>{const _0x5ec695=_0x5e4b8e,_0x41e373={'EXWyp':function(_0x937d59,_0x236df0){return _0x11287d['xoAiK'](_0x937d59,_0x236df0);},'Oggvt':function(_0xd5f64d,_0x432884){const _0x57f9db=a85_0x57f3;return _0x11287d[_0x57f9db(0xbb)](_0xd5f64d,_0x432884);},'QNTtn':_0x11287d[_0x5ec695(0x122)],'fMtYL':function(_0x40d0c5,_0x3df224){const _0x2ddf7e=_0x5ec695;return _0x11287d[_0x2ddf7e(0xbb)](_0x40d0c5,_0x3df224);},'aFidN':_0x11287d['xxlwo']};if(/\/$/[_0x5ec695(0x181)](_0x4458fb['fileName'])){_0x36a068[_0x5ec695(0xad)]();return;}!_0x4f29fd&&(_0x4f29fd=_0x4458fb[_0x5ec695(0x146)]);if(_0x11287d[_0x5ec695(0x13e)](_0x4458fb['fileName'],_0x4f29fd))_0x36a068[_0x5ec695(0xad)]();else{const _0x5445e9=_0x4458fb[_0x5ec695(0x146)],_0x18df05=path['join'](_0x46011f,_0x5445e9+_0x5ec695(0xac)+process['pid']);let _0x724925;try{_0x724925=fs[_0x5ec695(0xd8)](_0x18df05);}catch(_0x4da31a){if(BINARY_BUSY_ERROR_CODES[_0x5ec695(0x132)](_0x4da31a[_0x5ec695(0x175)])){const _0x5834f8=path[_0x5ec695(0xf0)](_0x46011f,_0x5445e9);if(fs['existsSync'](_0x5834f8)){logger['warn'](_0x5ec695(0x151)+_0x5445e9),fs['unlink'](_0x299616,_0x545e65=>{const _0x2c4370=_0x5ec695;_0x545e65&&logger[_0x2c4370(0x8a)](_0x2c4370(0x8f)+_0x299616);}),_0x11287d[_0x5ec695(0x150)](_0x20c21b,_0x5834f8);return;}logger['warn'](_0x5ec695(0xc2)+_0x5445e9);}_0x11287d[_0x5ec695(0x14c)](_0x86dcd2,_0x4da31a);return;}_0x724925['on'](_0x11287d[_0x5ec695(0x15b)],_0x23bd0b=>{const _0x7e8012=_0x5ec695;if(BINARY_BUSY_ERROR_CODES[_0x7e8012(0x132)](_0x23bd0b[_0x7e8012(0x175)])){const _0x2dc6e3=path[_0x7e8012(0xf0)](_0x46011f,_0x5445e9);_0x724925['close'](),fs[_0x7e8012(0x171)](_0x2dc6e3)?(logger[_0x7e8012(0x8a)](_0x7e8012(0x10b)+_0x23bd0b[_0x7e8012(0x16d)]),_0x36a068['close'](),fs[_0x7e8012(0x137)](_0x299616,_0x2d435d=>{const _0x36a70d=_0x7e8012;_0x2d435d&&logger[_0x36a70d(0x8a)]('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x299616);}),_0x41e373['EXWyp'](_0x20c21b,_0x2dc6e3)):(logger['warn'](_0x7e8012(0x161)+_0x23bd0b[_0x7e8012(0x16d)]),fs[_0x7e8012(0x137)](_0x18df05,()=>{}),_0x41e373[_0x7e8012(0x106)](_0x86dcd2,_0x23bd0b));}else fs[_0x7e8012(0x137)](_0x18df05,()=>{}),_0x41e373[_0x7e8012(0x106)](_0x86dcd2,_0x23bd0b);}),_0x36a068[_0x5ec695(0xdd)](_0x4458fb,function(_0x488d8a,_0x37ad89){const _0x31395f=_0x5ec695,_0x564743={};_0x564743[_0x31395f(0x11d)]=_0x41e373[_0x31395f(0xe7)];const _0x470750=_0x564743;if(_0x488d8a){fs[_0x31395f(0x137)](_0x18df05,()=>{}),_0x41e373['fMtYL'](_0x86dcd2,_0x488d8a);return;}_0x37ad89['on'](_0x41e373[_0x31395f(0x115)],function(){const _0x255d65=_0x31395f;_0x724925['end'](),_0x724925['on'](_0x470750[_0x255d65(0x11d)],function(){_0x36a068['readEntry']();});}),_0x37ad89[_0x31395f(0x12a)](_0x724925);});}}),_0x36a068['on'](_0x3a2fe2['BGXJH'],_0x49c33a=>{const _0x436807=_0x5e4b8e;_0x3a2fe2[_0x436807(0xb6)](_0x86dcd2,_0x49c33a);}),_0x36a068['once'](_0x3a2fe2[_0x5e4b8e(0x172)],()=>{const _0x1bbd48=_0x5e4b8e,_0x1adb1a={'eHrcz':function(_0x4771c8,_0x36e4f7){const _0x57ef97=a85_0x57f3;return _0x11287d[_0x57ef97(0x13e)](_0x4771c8,_0x36e4f7);},'TRdxS':_0x11287d[_0x1bbd48(0xe2)],'suRJr':function(_0x14c408,_0x40869c){const _0x1bf767=_0x1bbd48;return _0x11287d[_0x1bf767(0x170)](_0x14c408,_0x40869c);},'SwEWE':function(_0x15dcf5,_0x434e9b){const _0x2f5eaa=_0x1bbd48;return _0x11287d[_0x2f5eaa(0xcd)](_0x15dcf5,_0x434e9b);}};fs[_0x1bbd48(0x137)](_0x299616,_0x28a522=>{const _0x5e1e44=_0x1bbd48;_0x28a522&&logger[_0x5e1e44(0x8a)](_0x5e1e44(0x8f)+_0x299616);});const _0x4e2381=path['join'](_0x46011f,_0x4f29fd+_0x1bbd48(0xac)+process[_0x1bbd48(0x12f)]),_0x1e1ef5=path[_0x1bbd48(0xf0)](_0x46011f,_0x4f29fd);fs[_0x1bbd48(0x140)](_0x4e2381,_0x11287d[_0x1bbd48(0x142)],function(_0x5331e9){const _0x549874=_0x1bbd48,_0x279e5f={'Sefeh':function(_0x27379d,_0x55651b){return _0x1adb1a['eHrcz'](_0x27379d,_0x55651b);},'Pdula':_0x1adb1a[_0x549874(0xa9)],'hyHQX':function(_0x439ea6,_0x32e301){const _0x32727e=_0x549874;return _0x1adb1a[_0x32727e(0xf4)](_0x439ea6,_0x32e301);}};if(_0x5331e9){_0x36a068[_0x549874(0xec)](),fs[_0x549874(0x137)](_0x4e2381,()=>{}),_0x1adb1a[_0x549874(0xfd)](_0x86dcd2,_0x5331e9);return;}fs['rename'](_0x4e2381,_0x1e1ef5,function(_0x22ec20){const _0x5b02b9=_0x549874;if(_0x22ec20){if(_0x279e5f['Sefeh'](_0x22ec20[_0x5b02b9(0x175)],_0x279e5f[_0x5b02b9(0xab)])){_0x36a068['close'](),fs[_0x5b02b9(0x137)](_0x4e2381,()=>{}),_0x279e5f[_0x5b02b9(0x101)](_0x86dcd2,_0x22ec20);return;}logger[_0x5b02b9(0x8a)](_0x5b02b9(0xdc)+_0x22ec20[_0x5b02b9(0x16d)]);try{fs[_0x5b02b9(0xa0)](_0x4e2381,_0x1e1ef5);}catch(_0x340c32){_0x36a068[_0x5b02b9(0xec)](),fs['unlink'](_0x4e2381,()=>{}),_0x279e5f[_0x5b02b9(0x101)](_0x86dcd2,_0x340c32);return;}fs['unlink'](_0x4e2381,_0x148009=>{const _0xd2a3d1=_0x5b02b9;_0x148009&&logger[_0xd2a3d1(0x8a)](_0xd2a3d1(0x168)+_0x148009[_0xd2a3d1(0x16d)]);});}_0x36a068[_0x5b02b9(0xec)](),_0x279e5f[_0x5b02b9(0x101)](_0x20c21b,_0x1e1ef5);});});});});});}static[a85_0x52c9c7(0x113)](){const _0x3196ef=a85_0x52c9c7;if(process['env'][_0x3196ef(0xc7)])return JSON[_0x3196ef(0xc5)](process[_0x3196ef(0x16c)]['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x3196ef(0xae)];}static[a85_0x52c9c7(0x129)](){const _0x4e0905=a85_0x52c9c7;if(process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x4e0905(0xc5)](process[_0x4e0905(0x16c)][_0x4e0905(0x164)]);return this[_0x4e0905(0x14a)];}static['setFrameworkDetail'](_0x447666,_0x2e7044){const _0x3db7b7=a85_0x52c9c7,_0x357098={'WEctY':'1|3|2|0|4','iicXD':function(_0x14d960,_0x1ad742){return _0x14d960||_0x1ad742;},'laApn':function(_0x4cdc9f,_0x4a4f1b){return _0x4cdc9f(_0x4a4f1b);},'YDNwS':function(_0x2799a8,_0x1ddb6f){return _0x2799a8(_0x1ddb6f);}},_0x1996e1=_0x357098[_0x3db7b7(0xe9)][_0x3db7b7(0xf5)]('|');let _0x47ee59=0x0;while(!![]){switch(_0x1996e1[_0x47ee59++]){case'0':process[_0x3db7b7(0x16c)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON['stringify'](this[_0x3db7b7(0x14a)]);continue;case'1':_0x357098[_0x3db7b7(0x152)](!_0x447666,!_0x2e7044)&&logger[_0x3db7b7(0xd0)](_0x3db7b7(0x12c)+_0x447666+',\x20automationFramework='+_0x2e7044);continue;case'2':this[_0x3db7b7(0x14a)]={'name':_0x2e7044,'version':_0x357098[_0x3db7b7(0x126)](getFrameworkVersion,_0x2e7044)};continue;case'3':this[_0x3db7b7(0xae)]={'name':_0x447666,'version':{[_0x447666]:_0x357098[_0x3db7b7(0x15f)](getFrameworkVersion,_0x447666)}};continue;case'4':process[_0x3db7b7(0x16c)][_0x3db7b7(0xc7)]=JSON[_0x3db7b7(0xb8)](this[_0x3db7b7(0xae)]);continue;}break;}}static[a85_0x52c9c7(0xb1)](_0x249110,_0x4e610a){return _0x249110+':'+_0x4e610a;}static[a85_0x52c9c7(0x124)](){return process['pid']+':'+threadId;}static[a85_0x52c9c7(0xf7)](_0x4adf6c){const _0x429ebf=a85_0x52c9c7;if(_0x4adf6c[_0x429ebf(0xa7)]&&_0x4adf6c['testContextOptions']['skipSessionName'])return!![];return![];}static['shouldSkipSessionStatus'](_0x5e785d){const _0x394a53=a85_0x52c9c7;if(_0x5e785d[_0x394a53(0xa7)]&&_0x5e785d[_0x394a53(0xa7)][_0x394a53(0x118)])return!![];return![];}static[a85_0x52c9c7(0xa5)](_0x5f09db){const _0x5cd42b=a85_0x52c9c7,_0x46c3c3=new RegExp(TestFrameworkConstants[_0x5cd42b(0xbe)]);return _0x46c3c3[_0x5cd42b(0x181)](_0x5f09db);}static['mergeObject'](_0x534a3f,_0x1e767c){const _0x17a4ad=a85_0x52c9c7,_0x1b668b={};_0x1b668b[_0x17a4ad(0x154)]=function(_0x329945,_0x1778a2){return _0x329945!==_0x1778a2;},_0x1b668b[_0x17a4ad(0x91)]=function(_0xbbf060,_0x1e356f){return _0xbbf060===_0x1e356f;},_0x1b668b['SeVmw']=_0x17a4ad(0x167);const _0x33e0d2=_0x1b668b;for(const [_0x7f40c8,_0x380007]of Object[_0x17a4ad(0x16b)](_0x1e767c)){if(_0x33e0d2[_0x17a4ad(0x154)](_0x380007,null)&&_0x33e0d2[_0x17a4ad(0x91)](typeof _0x380007,_0x33e0d2[_0x17a4ad(0xaf)])&&!Array[_0x17a4ad(0x130)](_0x380007))_0x534a3f[_0x7f40c8]=this[_0x17a4ad(0xda)](_0x534a3f[_0x7f40c8]||{},_0x380007);else Array[_0x17a4ad(0x130)](_0x380007)?_0x534a3f[_0x7f40c8]=(_0x534a3f[_0x7f40c8]||[])[_0x17a4ad(0xcb)](_0x380007):_0x534a3f[_0x7f40c8]=_0x380007;}return _0x534a3f;}}function a85_0x57f3(_0xbb12f5,_0x2759fb){const _0x3f888a=a85_0x3f88();return a85_0x57f3=function(_0x57f3b2,_0x40a872){_0x57f3b2=_0x57f3b2-0x88;let _0xbc9181=_0x3f888a[_0x57f3b2];return _0xbc9181;},a85_0x57f3(_0xbb12f5,_0x2759fb);}function a85_0x3f88(){const _0x3a0460=['shouldSkipSessionName','getWritableDir','cwd','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','1203580geakIc','12sUpisl','SwEWE','ZeRLG','../../helpers/test-observability/utils.js','164snMAkN','hyHQX','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','DuoYp','isDirectory','length','Oggvt','BHnvL','start','BROWSERSTACK_CLI_ENV','CNDnB','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','UvAjy','pUKVU','format','version','cli_version','kvVsV','87402ONvFMT','getTestFrameworkDetail','tmpdir','aFidN','getSdkVersion','exports','skipSessionStatus','SDK_CLI_DOWNLOAD','1495081xWmCRl','iZzaT','getCliDir','tgOSp','KCwon','SDK_CLI_CHECK_UPDATE','platform','Current\x20CLI\x20Path\x20Found:\x20','ULwYY','\x20version','getCurrentInstanceName','SIvsd','laApn','basename','downloadLatestBinary','getAutomationFrameworkDetail','pipe','EDoUR','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','../../../package.json','binary-','pid','isArray','getSdkLanguage','includes','xbioK','statusCode','GdkHw','dGiAs','unlink','startsWith','worker_threads','CHEZO','nXqtN','./framework/constants/testFrameworkConstants.js','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','QecKz','arch','chmod','error','sakAN','BgzMC','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','HanfI','fileName','kEOsl','1016935CyJXNW','DOWNLOAD_HTTP','automationFrameworkDetail','\x20from\x20','WFFOs','filePath','data','map','UxmJc','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','iicXD','Folder\x20does\x20not\x20exist:\x20','tkzTL','Configuring\x20Cli\x20path.','cli','isBinaryBusy','.zip','mtime','rXoVQ','chkkd','Downloading\x20SDK\x20binary\x20from:\x20','unix:/tmp/sdk-platform-','WctOH','YDNwS','./state/automationFrameworkState.js','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','CLIUtils','heaST','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','YiRIg','lazyEntries','object','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','Setting\x20required\x20permissions\x20to\x20','wmRrV','entries','env','message','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','yTXxY','FjSsR','existsSync','awjsr','DnHud','qjOXU','code','./state/hookState.js','readdirSync','requestToUpdateCLI','cIOOc','Error\x20while\x20reading\x20CLI\x20path:\x20','20499xicDWg','trim','SHELL_EXECUTE_ERROR','openSync','resume','FkOeb','test','ktsPi','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','warn','end','path','gYLEX','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','Failed\x20to\x20delete\x20zip\x20file:\x20','DiAgh','UlRRL','rvBJM','TvbKz','.browserstack','jVxrB','BHFRz','BGXJH','sPLPF','listen','node','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','loRpK','UmcaB','preserveStatusCodeOnError','Binary\x20is\x20busy:\x20','copyFileSync','destroy','../../helpers/helper','zwotV','url','matchHookRegex','development','testContextOptions','qntMZ','TRdxS','reduce','Pdula','.tmp.','readEntry','testFrameworkDetail','SeVmw','Folder\x20','getHookRegistryKey','filter','setupCliPath','EXDEV','\x20already\x20exists','FVsxw','../../helpers/performance/constants','stringify','rMHHC','jcALn','xoAiK','shtmu','follow-redirects','HOOK_REGEX','runShellCommand','238044MKxgwK','EXOot','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','HLjSv','../../helpers/classLogger.js','parse','0755','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','AhVsG','info','util','concat','timeout','gJczl','OhgEx','1720HzLtPm','debug','OUjOI','response\x20','./state/testFrameworkState.js','HeiZO','QUqRe','EUzhW','entry','createWriteStream','GwPml','mergeObject','oDNBF','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','openReadStream','Resolved\x20binary\x20path:\x20','SDK_CLI_BIN_PATH','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','../../helpers/utilities','eAqmi','BROWSERSTACK_BINARY_URL','austq','statSync','open','QNTtn','cwqrR','WEctY','downloadFileStream','15975LEDhOf','close','../utils/constants','yuSgv','RqVgk','join','GET','WbCue','../../helpers/performance/performance-tester.js','suRJr','split','isFile'];a85_0x3f88=function(){return _0x3a0460;};return a85_0x3f88();}module[a85_0x52c9c7(0x117)]=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';const a86_0x169695=a86_0x3c50;(function(_0x477550,_0x18627d){const _0x1821b8=a86_0x3c50,_0x248f1b=_0x477550();while(!![]){try{const _0x5c2101=-parseInt(_0x1821b8(0x110))/0x1*(parseInt(_0x1821b8(0x111))/0x2)+parseInt(_0x1821b8(0xe9))/0x3+parseInt(_0x1821b8(0x11b))/0x4*(-parseInt(_0x1821b8(0x130))/0x5)+-parseInt(_0x1821b8(0xc4))/0x6+parseInt(_0x1821b8(0x131))/0x7*(parseInt(_0x1821b8(0xf3))/0x8)+-parseInt(_0x1821b8(0x11e))/0x9*(parseInt(_0x1821b8(0xe2))/0xa)+parseInt(_0x1821b8(0xd4))/0xb*(parseInt(_0x1821b8(0xc1))/0xc);if(_0x5c2101===_0x18627d)break;else _0x248f1b['push'](_0x248f1b['shift']());}catch(_0x2f0ed1){_0x248f1b['push'](_0x248f1b['shift']());}}}(a86_0x39f7,0xb9d59));const fs=require('fs'),os=require('os'),path=require(a86_0x169695(0x122)),helper=require(a86_0x169695(0x113)),AutomationFramework=require(a86_0x169695(0xbf)),TestFrameworkConstants=require(a86_0x169695(0xc5)),PlaywrightDriverModule=require(a86_0x169695(0x132)),TestInfo=require(a86_0x169695(0xde)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require(a86_0x169695(0xec)),logger=createClassLogger('CustomTagManager'),BUILD_TAG_FILE_PREFIX=a86_0x169695(0xf5);function getBuildTagsRunId(){const _0x275301=a86_0x169695,_0x137d84={};_0x137d84[_0x275301(0xca)]=function(_0x54c028,_0x3c09a5){return _0x54c028===_0x3c09a5;},_0x137d84[_0x275301(0xe8)]=_0x275301(0x114);const _0x7cc09e=_0x137d84,_0x2aa76b=process[_0x275301(0x140)][_0x275301(0x112)];if(!_0x2aa76b||_0x7cc09e[_0x275301(0xca)](_0x2aa76b,_0x7cc09e[_0x275301(0xe8)]))return null;return _0x2aa76b;}function getBuildTagsFilePath(_0x210044){const _0xad17ac=a86_0x169695;return path['join'](os[_0xad17ac(0x124)](),''+BUILD_TAG_FILE_PREFIX+_0x210044+'_'+process[_0xad17ac(0x13c)]+_0xad17ac(0xf4));}function a86_0x3c50(_0x37407d,_0x2b1c77){const _0x39f7ca=a86_0x39f7();return a86_0x3c50=function(_0x3c5081,_0x3f99d6){_0x3c5081=_0x3c5081-0xbc;let _0x54c463=_0x39f7ca[_0x3c5081];return _0x54c463;},a86_0x3c50(_0x37407d,_0x2b1c77);}class CustomTagManager{static [a86_0x169695(0xf9)]={};static [a86_0x169695(0x11a)]={};static['mergeValues'](_0x1c9df5,_0x4094ad){return Array['from'](new Set([..._0x1c9df5||[],..._0x4094ad||[]]));}static[a86_0x169695(0x120)](_0x31ebcf,_0x8bae6d,_0x2a60d2){const _0x4a7b62=a86_0x169695,_0x138fad={};_0x138fad[_0x4a7b62(0xbd)]=_0x4a7b62(0xeb);const _0x492788=_0x138fad;if(!_0x31ebcf[_0x8bae6d]){const _0x1b1ff0={};_0x1b1ff0[_0x4a7b62(0xda)]=_0x492788[_0x4a7b62(0xbd)],_0x1b1ff0[_0x4a7b62(0x136)]=[..._0x2a60d2||[]],_0x31ebcf[_0x8bae6d]=_0x1b1ff0;}else!_0x31ebcf[_0x8bae6d][_0x4a7b62(0xda)]&&(_0x31ebcf[_0x8bae6d][_0x4a7b62(0xda)]=_0x492788[_0x4a7b62(0xbd)]),!Array['isArray'](_0x31ebcf[_0x8bae6d][_0x4a7b62(0x136)])&&(_0x31ebcf[_0x8bae6d][_0x4a7b62(0x136)]=[]),_0x31ebcf[_0x8bae6d][_0x4a7b62(0x136)]=CustomTagManager[_0x4a7b62(0xf8)](_0x31ebcf[_0x8bae6d]['values'],_0x2a60d2);return _0x31ebcf;}static async[a86_0x169695(0xd5)](_0x453035,_0x3f7af5,_0x361f59=![]){const _0x5c2553=a86_0x169695,_0x498eeb={'oGtMH':function(_0x4df83e,_0x17105c){return _0x4df83e!==_0x17105c;},'RMfDK':'string','gtHVm':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','HJnVZ':function(_0x4aea81,_0x568926){return _0x4aea81!==_0x568926;},'AmLMB':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','GxytI':function(_0x50f4e8,_0x545ab0){return _0x50f4e8===_0x545ab0;},'KBNuP':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','Xvdso':function(_0x1654a8,_0x25e7b6){return _0x1654a8===_0x25e7b6;},'oefUt':_0x5c2553(0x129),'mTRuu':function(_0x578f43,_0x46bf85){return _0x578f43(_0x46bf85);},'PfAhv':'./browserstackCLI','jWCkI':function(_0x48eaea){return _0x48eaea();},'bDglM':_0x5c2553(0xeb),'jbLKF':function(_0x195ac1,_0x49ff4c){return _0x195ac1>_0x49ff4c;},'RkzZD':function(_0x21262a,_0x3f450a){return _0x21262a(_0x3f450a);},'ByMTv':_0x5c2553(0x138),'OLLDl':':jest-','WvPee':function(_0x1ae481,_0x484b67){return _0x1ae481(_0x484b67);},'ZPhCk':_0x5c2553(0xe0),'GVdLI':function(_0x4d55d6,_0x402b1a){return _0x4d55d6===_0x402b1a;},'SeTgN':_0x5c2553(0xfe),'WAmpV':_0x5c2553(0x102),'ySEqQ':function(_0x9538a3,_0x18693c){return _0x9538a3(_0x18693c);},'jGybu':_0x5c2553(0xdf),'MFTAs':function(_0x4ac80f,_0x45a1ed){return _0x4ac80f(_0x45a1ed);},'Owgal':_0x5c2553(0xc6),'VlTml':_0x5c2553(0x125),'zZoeB':_0x5c2553(0x115)};if(_0x498eeb[_0x5c2553(0x142)](typeof _0x453035,_0x498eeb[_0x5c2553(0xf2)])){logger['debug'](_0x498eeb[_0x5c2553(0x11c)]);return;}if(_0x498eeb[_0x5c2553(0x10c)](typeof _0x3f7af5,_0x498eeb[_0x5c2553(0xf2)])){logger['debug'](_0x498eeb[_0x5c2553(0x10b)]);return;}if(_0x498eeb['GxytI'](_0x453035[_0x5c2553(0xbc)](),'')){logger[_0x5c2553(0x109)](_0x498eeb[_0x5c2553(0xf1)]);return;}if(_0x498eeb[_0x5c2553(0xf6)](_0x3f7af5[_0x5c2553(0xbc)](),'')){logger[_0x5c2553(0x109)](_0x498eeb[_0x5c2553(0xed)]);return;}const _0x574a9c=helper[_0x5c2553(0x108)](_0x3f7af5);if(_0x361f59){const _0x212a8c=_0x498eeb[_0x5c2553(0xcd)](require,_0x498eeb[_0x5c2553(0x126)]),_0x52329a=_0x212a8c['getInstance'](),_0x2ea5f0=_0x52329a&&_0x52329a['modules'][TestHubModule['MODULE_NAME']];if(_0x2ea5f0){const _0x50abe2=_0x2ea5f0?.[_0x5c2553(0x11f)]?.[_0x5c2553(0x100)]()?.['buildHashedId'];TestInfo['getTestUUID'](_0x50abe2);const _0x3cb9fe=TestInfo[_0x5c2553(0xd8)](_0x50abe2),_0x5406d3=_0x3cb9fe[TestFrameworkConstants[_0x5c2553(0xfc)]]||{};CustomTagManager[_0x5c2553(0x120)](_0x5406d3,_0x453035,_0x574a9c),_0x3cb9fe[TestFrameworkConstants[_0x5c2553(0xfc)]]=_0x5406d3,TestInfo[_0x5c2553(0x13a)](_0x50abe2,_0x3cb9fe);!this[_0x5c2553(0xf9)][_0x50abe2]&&(this[_0x5c2553(0xf9)][_0x50abe2]={});this[_0x5c2553(0xf9)][_0x50abe2][_0x453035]=CustomTagManager[_0x5c2553(0xf8)](this[_0x5c2553(0xf9)][_0x50abe2][_0x453035],_0x574a9c);try{const _0x490e4b=_0x498eeb[_0x5c2553(0x128)](getBuildTagsRunId);if(_0x490e4b){const _0x16692d={};for(const [_0x3a5686,_0x5480fa]of Object[_0x5c2553(0x10e)](this[_0x5c2553(0xf9)][_0x50abe2]||{})){_0x16692d[_0x3a5686]={'field_type':_0x498eeb[_0x5c2553(0xff)],'values':Array[_0x5c2553(0x101)](_0x5480fa)?[..._0x5480fa]:[]};}_0x498eeb[_0x5c2553(0x134)](Object[_0x5c2553(0x10d)](_0x16692d)[_0x5c2553(0x12e)],0x0)&&await fs[_0x5c2553(0xe6)][_0x5c2553(0x10f)](_0x498eeb[_0x5c2553(0xea)](getBuildTagsFilePath,_0x490e4b),JSON['stringify'](_0x16692d));}else logger[_0x5c2553(0x109)](_0x498eeb['ByMTv']);}catch(_0x3f1127){logger[_0x5c2553(0x109)](_0x5c2553(0xef)+(_0x3f1127&&_0x3f1127[_0x5c2553(0xc8)]?_0x3f1127[_0x5c2553(0xc8)]:_0x3f1127));}}}else{let _0x5a64a7;const _0x44ba93=global[_0x5c2553(0xce)];let _0x51fabf=![];if(_0x44ba93&&_0x44ba93[_0x5c2553(0x12d)](_0x498eeb[_0x5c2553(0x135)]))_0x51fabf=!![],_0x5a64a7=_0x44ba93;else try{const _0x489d24=_0x498eeb[_0x5c2553(0xd1)](require,_0x498eeb['ZPhCk']),_0x5d456a=_0x498eeb[_0x5c2553(0xcd)](require,_0x498eeb['PfAhv']);if(_0x5d456a[_0x5c2553(0x116)]()['isRunning']()){const _0x15a062=_0x489d24[_0x5c2553(0xcc)]();if(_0x498eeb['GVdLI'](_0x15a062?.[_0x5c2553(0x12c)]?.[_0x5c2553(0xd2)](),_0x498eeb[_0x5c2553(0x103)])){const _0x2eda2e=AutomationFramework[_0x5c2553(0xd9)]();_0x5a64a7=AutomationFramework[_0x5c2553(0x118)](_0x2eda2e,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x5a64a7&&_0x5a64a7[_0x5c2553(0x12d)](_0x498eeb[_0x5c2553(0x135)])&&(_0x51fabf=!![]);}}}catch(_0x185c8e){logger['debug'](_0x5c2553(0x11d)+_0x185c8e);}if(_0x51fabf){if(!_0x5a64a7)throw new Error(_0x498eeb['WAmpV']);const _0x1b1eae=_0x498eeb[_0x5c2553(0x13f)](require,_0x498eeb['PfAhv']),_0x43b0c4=_0x1b1eae[_0x5c2553(0x116)]()[_0x5c2553(0xf0)]();if(!_0x43b0c4)throw new Error(_0x498eeb['jGybu']);const _0x53ad33=_0x498eeb[_0x5c2553(0xdb)](require,_0x498eeb['Owgal']),_0x531bbc=_0x498eeb[_0x5c2553(0xd1)](require,_0x498eeb[_0x5c2553(0x13d)]),_0x59ed3e=_0x43b0c4[_0x5c2553(0xc9)](_0x53ad33['TEST'],_0x531bbc[_0x5c2553(0xf7)]);if(!_0x59ed3e)throw new Error(_0x498eeb[_0x5c2553(0xfd)]);const _0xe0592d=_0x59ed3e[_0x5c2553(0x127)]()['get'](_0x5a64a7)||{},_0x2d5f80=_0xe0592d[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x5c2553(0x109)](_0x5c2553(0xcb)+_0x5a64a7+_0x5c2553(0xe5)+_0x453035+_0x5c2553(0x12f)+JSON[_0x5c2553(0xe4)](_0x574a9c)+_0x5c2553(0x119)+JSON['stringify'](_0x2d5f80)),CustomTagManager['mergeIntoTags'](_0x2d5f80,_0x453035,_0x574a9c),logger[_0x5c2553(0x109)](_0x5c2553(0x107)+_0x453035+_0x5c2553(0x13b)+JSON[_0x5c2553(0xe4)](_0x2d5f80[_0x453035][_0x5c2553(0x136)]));const _0x4c495c={[TestFrameworkConstants[_0x5c2553(0xfc)]]:_0x2d5f80},_0x211002={};_0x211002[_0x5a64a7]=_0x4c495c,_0x59ed3e[_0x5c2553(0xe3)](_0x211002),logger[_0x5c2553(0x109)]('[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier='+_0x5a64a7+_0x5c2553(0xcf)+JSON[_0x5c2553(0xe4)](_0x2d5f80)),!this['testLevelTags'][_0x5a64a7]&&(this['testLevelTags'][_0x5a64a7]={}),this['testLevelTags'][_0x5a64a7][_0x453035]=CustomTagManager[_0x5c2553(0xf8)](this[_0x5c2553(0x11a)][_0x5a64a7][_0x453035],_0x574a9c);}else{const _0x2c7944=global[_0x5c2553(0x123)]?.[_0x5c2553(0x121)]?.['testInfo'];if(!_0x2c7944){const _0x46d2ea=AutomationFramework[_0x5c2553(0xd9)]();_0x5a64a7=AutomationFramework[_0x5c2553(0x118)](_0x46d2ea,PlaywrightDriverModule[_0x5c2553(0xd7)],'');}else _0x5a64a7=TestInfo[_0x5c2553(0xdd)](_0x2c7944,_0x2c7944[_0x5c2553(0xe7)]);const _0x4c20e8=TestInfo[_0x5c2553(0xd8)](_0x5a64a7),_0x2372c4=_0x4c20e8[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x5c2553(0x120)](_0x2372c4,_0x453035,_0x574a9c),_0x4c20e8[TestFrameworkConstants[_0x5c2553(0xfc)]]=_0x2372c4,TestInfo[_0x5c2553(0x13a)](_0x5a64a7,_0x4c20e8),!this[_0x5c2553(0x11a)][_0x5a64a7]&&(this[_0x5c2553(0x11a)][_0x5a64a7]={}),this[_0x5c2553(0x11a)][_0x5a64a7][_0x453035]=CustomTagManager['mergeValues'](this[_0x5c2553(0x11a)][_0x5a64a7][_0x453035],_0x574a9c);}}}static[a86_0x169695(0xc3)](){const _0xdfc733={...this['buildLevelTags']};return _0xdfc733;}static[a86_0x169695(0x133)](){const _0x320095=a86_0x169695,_0x2f02e6={...this[_0x320095(0x11a)]};return _0x2f02e6;}static[a86_0x169695(0xd3)](){const _0x40138f=a86_0x169695;this[_0x40138f(0xf9)]={},this['testLevelTags']={};}static[a86_0x169695(0xe1)](_0x280e36,_0x4c88f8){const _0xffe462=a86_0x169695,_0x1746a2={};_0x1746a2[_0xffe462(0xc7)]=function(_0x1fdb46,_0xc049e4){return _0x1fdb46||_0xc049e4;};const _0x29eac8=_0x1746a2;if(!_0x280e36)return;!this[_0xffe462(0xf9)][_0x280e36]&&(this[_0xffe462(0xf9)][_0x280e36]={});for(const [_0x1b2851,_0x4d41f2]of Object['entries'](_0x29eac8['hTZZp'](_0x4c88f8,{}))){if(!_0x4d41f2||!Array['isArray'](_0x4d41f2[_0xffe462(0x136)]))continue;this['buildLevelTags'][_0x280e36][_0x1b2851]=CustomTagManager[_0xffe462(0xf8)](this['buildLevelTags'][_0x280e36][_0x1b2851],_0x4d41f2[_0xffe462(0x136)]);}}static[a86_0x169695(0xdc)](_0x4bb984,_0x1568e1){const _0x1c9a7b=a86_0x169695,_0x59c125={};_0x59c125[_0x1c9a7b(0xfb)]=_0x1c9a7b(0xfa),_0x59c125[_0x1c9a7b(0xc2)]=function(_0x257267,_0x48b1a9){return _0x257267*_0x48b1a9;},_0x59c125['fdFFv']=function(_0x29e06e,_0x527c5d){return _0x29e06e*_0x527c5d;},_0x59c125[_0x1c9a7b(0xc0)]=function(_0x4bafdd,_0x2b0613){return _0x4bafdd>_0x2b0613;},_0x59c125[_0x1c9a7b(0xd6)]=function(_0x529cb6,_0x15290f){return _0x529cb6-_0x15290f;},_0x59c125[_0x1c9a7b(0x10a)]='utf8';const _0x26bebe=_0x59c125;if(!_0x4bb984)return logger[_0x1c9a7b(0x109)](_0x26bebe[_0x1c9a7b(0xfb)]),0x0;let _0xfa7a3b;try{_0xfa7a3b=os['tmpdir']();}catch(_0x16dcb9){return logger[_0x1c9a7b(0x109)](_0x1c9a7b(0xd0)+_0x16dcb9),0x0;}let _0x237b3d;try{_0x237b3d=fs['readdirSync'](_0xfa7a3b);}catch(_0x210f76){return logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20'+_0x210f76),0x0;}const _0x24ef3b=''+BUILD_TAG_FILE_PREFIX+_0x4bb984+'_',_0x3b8d92=_0x237b3d[_0x1c9a7b(0xbe)](_0x6b402=>_0x6b402['startsWith'](_0x24ef3b)&&_0x6b402['endsWith'](_0x1c9a7b(0xf4))),_0x3d7529=_0x26bebe[_0x1c9a7b(0xc2)](_0x26bebe[_0x1c9a7b(0xc2)](_0x26bebe['fdFFv'](0x2,0x3c),0x3c),0x3e8);let _0x234335=0x0;for(const _0x465a0c of _0x3b8d92){const _0x444242=path[_0x1c9a7b(0x13e)](_0xfa7a3b,_0x465a0c);try{const _0x3d6f6e=fs['statSync'](_0x444242);if(_0x26bebe[_0x1c9a7b(0xc0)](_0x26bebe['vEYzN'](Date[_0x1c9a7b(0x137)](),_0x3d6f6e[_0x1c9a7b(0x139)]),_0x3d7529)){logger[_0x1c9a7b(0x109)](_0x1c9a7b(0x105)+_0x3d7529+'ms)\x20'+_0x465a0c);try{fs[_0x1c9a7b(0x106)](_0x444242);}catch(_0x128b62){logger[_0x1c9a7b(0x109)](_0x1c9a7b(0x104)+_0x465a0c+':\x20'+(_0x128b62&&_0x128b62[_0x1c9a7b(0xc8)]?_0x128b62[_0x1c9a7b(0xc8)]:_0x128b62));}continue;}const _0x5ab424=fs[_0x1c9a7b(0x117)](_0x444242,_0x26bebe[_0x1c9a7b(0x10a)]),_0x87c1f5=JSON[_0x1c9a7b(0x12b)](_0x5ab424);this[_0x1c9a7b(0xe1)](_0x1568e1,_0x87c1f5),_0x234335+=0x1;}catch(_0x2cdd9d){logger[_0x1c9a7b(0x109)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x465a0c+':\x20'+(_0x2cdd9d&&_0x2cdd9d[_0x1c9a7b(0xc8)]?_0x2cdd9d[_0x1c9a7b(0xc8)]:_0x2cdd9d));}try{fs['unlinkSync'](_0x444242);}catch(_0x5e526f){logger['debug']('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0x465a0c+':\x20'+(_0x5e526f&&_0x5e526f['message']?_0x5e526f['message']:_0x5e526f));}}return _0x234335;}}const a86_0x2651ee={};a86_0x2651ee['getBuildTagsRunId']=getBuildTagsRunId,a86_0x2651ee[a86_0x169695(0x141)]=getBuildTagsFilePath,a86_0x2651ee[a86_0x169695(0x12a)]=BUILD_TAG_FILE_PREFIX,CustomTagManager['_testInternals']=a86_0x2651ee,module[a86_0x169695(0xee)]=CustomTagManager;function a86_0x39f7(){const _0x36a051=['jWCkI','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','BUILD_TAG_FILE_PREFIX','parse','name','includes','length',',\x20values=','7563995CPkJQl','7tifhOv','./modules/playwrightDriverModule','getTestLevelTags','jbLKF','OLLDl','values','now','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','mtimeMs','setTestDetails','\x20->\x20values=','pid','VlTml','join','ySEqQ','env','getBuildTagsFilePath','oGtMH','trim','RgcGP','filter','./framework/automationFramework','CKJMJ','136524FAzEVC','oaggm','getBuildLevelTags','2035854JeGVHQ','./framework/constants/testFrameworkConstants','./state/testFrameworkState','hTZZp','message','resolveInstance','BojsY','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','getTestFrameworkDetail','mTRuu','__jestCurrentTestIdentifier',',\x20finalTags=','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','WvPee','toLowerCase','clearTags','1628HHRaCE','setCustomTags','vEYzN','KEY_TEST_ID','getTestDetails','getTrackedInstance','field_type','MFTAs','aggregateBuildLevelTagsFromTmp','getTestIdentifierFromTestInfo','./TestInfo','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','./cliUtils','mergeBuildLevelTags','904120BGkDZF','addMultipleEntries','stringify',',\x20key=','promises','retry','BFDAI','3934206XoBjhO','RkzZD','multi_dropdown','../../helpers/classLogger','oefUt','exports','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','getTestFramework','KBNuP','RMfDK','1058680IQFxgo','.json','bstack_build_tags_','Xvdso','POST','mergeValues','buildLevelTags','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','CFwbX','KEY_CUSTOM_TAGS','zZoeB','jest','bDglM','toObject','isArray','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','SeTgN','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','unlinkSync','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','parseCommaSeparatedValues','debug','AXdOw','AmLMB','HJnVZ','keys','entries','writeFile','60548AobMnk','14abKdAC','BROWSERSTACK_TESTHUB_UUID','../../helpers/helper','null','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','getInstance','readFileSync','getState',',\x20existingTags=','testLevelTags','4xGIUpv','gtHVm','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','9mxoYhy','testhubConfig','mergeIntoTags','currentTest','path','__workerDetails','tmpdir','./state/hookState','PfAhv','getAllData'];a86_0x39f7=function(){return _0x36a051;};return a86_0x39f7();}
1
+ 'use strict';const a86_0x39afab=a86_0x59ba;(function(_0xf7ce46,_0x43b060){const _0x13743a=a86_0x59ba,_0x13997f=_0xf7ce46();while(!![]){try{const _0x507fc9=-parseInt(_0x13743a(0xdf))/0x1+-parseInt(_0x13743a(0xc1))/0x2*(parseInt(_0x13743a(0x110))/0x3)+parseInt(_0x13743a(0xfc))/0x4+-parseInt(_0x13743a(0xdb))/0x5*(parseInt(_0x13743a(0xbb))/0x6)+parseInt(_0x13743a(0x103))/0x7+parseInt(_0x13743a(0x123))/0x8+parseInt(_0x13743a(0x12b))/0x9;if(_0x507fc9===_0x43b060)break;else _0x13997f['push'](_0x13997f['shift']());}catch(_0x4a8e05){_0x13997f['push'](_0x13997f['shift']());}}}(a86_0x4b24,0x4f8d7));const fs=require('fs'),os=require('os'),path=require(a86_0x39afab(0xca)),helper=require('../../helpers/helper'),AutomationFramework=require('./framework/automationFramework'),TestFrameworkConstants=require(a86_0x39afab(0x10d)),PlaywrightDriverModule=require(a86_0x39afab(0x117)),TestInfo=require(a86_0x39afab(0xb7)),TestHubModule=require(a86_0x39afab(0xd1)),{createClassLogger}=require(a86_0x39afab(0xce)),logger=createClassLogger(a86_0x39afab(0xcb)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function a86_0x59ba(_0x15a040,_0x5551d8){const _0x4b24cb=a86_0x4b24();return a86_0x59ba=function(_0x59ba0e,_0x45bb47){_0x59ba0e=_0x59ba0e-0xac;let _0xa6de34=_0x4b24cb[_0x59ba0e];return _0xa6de34;},a86_0x59ba(_0x15a040,_0x5551d8);}function getBuildTagsRunId(){const _0x428a20=a86_0x39afab,_0x154cb8={};_0x154cb8['jlYPJ']=function(_0x3ca284,_0x4c49e5){return _0x3ca284===_0x4c49e5;},_0x154cb8[_0x428a20(0xfe)]='null';const _0xb7df02=_0x154cb8,_0x43c843=process[_0x428a20(0xbe)][_0x428a20(0x118)];if(!_0x43c843||_0xb7df02[_0x428a20(0x119)](_0x43c843,_0xb7df02[_0x428a20(0xfe)]))return null;return _0x43c843;}function a86_0x4b24(){const _0x391536=['tMUbx','qTvyY','./browserstackCLI','iXVfV','path','CustomTagManager','mergeBuildLevelTags','message','../../helpers/classLogger',',\x20key=','unlinkSync','./modules/testhubModule','oRxRE','trim','LMgrh','length','aggregateBuildLevelTagsFromTmp','toObject','debug','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','KEY_TEST_ID','1005eTBDtH','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','getBuildTagsRunId','values','193082Tkowey','jest','__workerDetails','POST','kgjFX','getBuildLevelTags','mergeIntoTags',',\x20existingTags=','TEST','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','name','toLowerCase','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','entries','testLevelTags',':jest-','resolveInstance','BUILD_TAG_FILE_PREFIX','getTrackedInstance','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','getState','getTestDetails','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','VDdMl','JvfgN','now','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','SBwGy','getAllData','717976EXJpIn','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','PgOrb','getTestFrameworkDetail','EgPPk','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','Dwmyb','148890KjZYMN','stringify','testhubConfig','mTYbx','includes','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','multi_dropdown','promises','readdirSync','buildLevelTags','./framework/constants/testFrameworkConstants',',\x20values=','mergeValues','3cLyfBV','field_type','BvPQx','parse','hNqGe','xzJfF','./state/testFrameworkState','./modules/playwrightDriverModule','BROWSERSTACK_TESTHUB_UUID','jlYPJ','getInstance','FZaqC','DLoVR','filter','KEY_CUSTOM_TAGS','ryaDh','startsWith','getTestFramework','isRunning','761472PBDcNK','./cliUtils','tdgNd','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','getTestLevelTags','get','8356221tlZNGz','modules','_testInternals','kLfgO','from','getTestUUID','addMultipleEntries','SuKvo','join','parseCommaSeparatedValues','isArray','.json','giHtn','ms)\x20','sBGrb','WHkfG','DTfft','./TestInfo','endsWith','getBuildTagsFilePath','BRYDb','8886enbTih','mtimeMs','vmjej','env','setTestDetails','tmpdir','815614hPnyWJ','tahlA','keys','testInfo','\x20->\x20values='];a86_0x4b24=function(){return _0x391536;};return a86_0x4b24();}function getBuildTagsFilePath(_0x411c61){const _0x2bce4d=a86_0x39afab;return path[_0x2bce4d(0xae)](os[_0x2bce4d(0xc0)](),''+BUILD_TAG_FILE_PREFIX+_0x411c61+'_'+process['pid']+_0x2bce4d(0xb1));}class CustomTagManager{static [a86_0x39afab(0x10c)]={};static [a86_0x39afab(0xed)]={};static[a86_0x39afab(0x10f)](_0x399094,_0x127868){const _0x24c8bd=a86_0x39afab;return Array[_0x24c8bd(0x12f)](new Set([..._0x399094||[],..._0x127868||[]]));}static['mergeIntoTags'](_0x34ee5d,_0xbada53,_0x223413){const _0x8eef4c=a86_0x39afab,_0x5adf9a={};_0x5adf9a[_0x8eef4c(0x11c)]=_0x8eef4c(0x109);const _0x100a69=_0x5adf9a;if(!_0x34ee5d[_0xbada53]){const _0x3402d0={};_0x3402d0[_0x8eef4c(0x111)]=_0x100a69[_0x8eef4c(0x11c)],_0x3402d0[_0x8eef4c(0xde)]=[..._0x223413||[]],_0x34ee5d[_0xbada53]=_0x3402d0;}else!_0x34ee5d[_0xbada53]['field_type']&&(_0x34ee5d[_0xbada53][_0x8eef4c(0x111)]=_0x100a69[_0x8eef4c(0x11c)]),!Array[_0x8eef4c(0xb0)](_0x34ee5d[_0xbada53][_0x8eef4c(0xde)])&&(_0x34ee5d[_0xbada53]['values']=[]),_0x34ee5d[_0xbada53][_0x8eef4c(0xde)]=CustomTagManager[_0x8eef4c(0x10f)](_0x34ee5d[_0xbada53][_0x8eef4c(0xde)],_0x223413);return _0x34ee5d;}static async['setCustomTags'](_0x459797,_0x4feec3,_0x77da=![]){const _0x47638d=a86_0x39afab,_0x2399d7={'giHtn':function(_0x5c9251,_0xc34edb){return _0x5c9251!==_0xc34edb;},'VDdMl':'string','LMgrh':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','oRxRE':_0x47638d(0x128),'kLfgO':function(_0x36fbaf,_0x26a339){return _0x36fbaf===_0x26a339;},'xzJfF':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','WHkfG':function(_0xb79c3e,_0x2cd733){return _0xb79c3e===_0x2cd733;},'jPGKq':_0x47638d(0x127),'qTvyY':function(_0x524fe9,_0x18628d){return _0x524fe9(_0x18628d);},'BvPQx':_0x47638d(0xc8),'JvfgN':function(_0x599803){return _0x599803();},'MCnWj':_0x47638d(0x109),'lXDEK':function(_0x47a677,_0x2521c0){return _0x47a677>_0x2521c0;},'mTYbx':'CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','ryaDh':_0x47638d(0xee),'tdgNd':_0x47638d(0x124),'SBwGy':_0x47638d(0xe0),'sBGrb':_0x47638d(0xfd),'tahlA':'CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','vmjej':function(_0x4467ce,_0x6b3139){return _0x4467ce(_0x6b3139);},'DTfft':_0x47638d(0x116),'hNqGe':'./state/hookState','iXVfV':_0x47638d(0x108)};if(_0x2399d7[_0x47638d(0xb2)](typeof _0x459797,_0x2399d7[_0x47638d(0xf6)])){logger['debug'](_0x2399d7[_0x47638d(0xd4)]);return;}if(_0x2399d7[_0x47638d(0xb2)](typeof _0x4feec3,_0x2399d7['VDdMl'])){logger[_0x47638d(0xd8)](_0x2399d7[_0x47638d(0xd2)]);return;}if(_0x2399d7[_0x47638d(0x12e)](_0x459797['trim'](),'')){logger[_0x47638d(0xd8)](_0x2399d7[_0x47638d(0x115)]);return;}if(_0x2399d7[_0x47638d(0xb5)](_0x4feec3[_0x47638d(0xd3)](),'')){logger[_0x47638d(0xd8)](_0x2399d7['jPGKq']);return;}const _0x3967ef=helper[_0x47638d(0xaf)](_0x4feec3);if(_0x77da){const _0x2df696=_0x2399d7[_0x47638d(0xc7)](require,_0x2399d7[_0x47638d(0x112)]),_0x400ca7=_0x2df696['getInstance'](),_0x4178b5=_0x400ca7&&_0x400ca7[_0x47638d(0x12c)][TestHubModule['MODULE_NAME']];if(_0x4178b5){const _0x35c4f2=_0x4178b5?.[_0x47638d(0x105)]?.[_0x47638d(0xd7)]()?.['buildHashedId'];TestInfo[_0x47638d(0x130)](_0x35c4f2);const _0xe9fcd2=TestInfo[_0x47638d(0xf4)](_0x35c4f2),_0x402e82=_0xe9fcd2[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x47638d(0xe5)](_0x402e82,_0x459797,_0x3967ef),_0xe9fcd2[TestFrameworkConstants[_0x47638d(0x11e)]]=_0x402e82,TestInfo[_0x47638d(0xbf)](_0x35c4f2,_0xe9fcd2);!this[_0x47638d(0x10c)][_0x35c4f2]&&(this[_0x47638d(0x10c)][_0x35c4f2]={});this[_0x47638d(0x10c)][_0x35c4f2][_0x459797]=CustomTagManager['mergeValues'](this[_0x47638d(0x10c)][_0x35c4f2][_0x459797],_0x3967ef);try{const _0x3adea0=_0x2399d7[_0x47638d(0xf7)](getBuildTagsRunId);if(_0x3adea0){const _0x4ff8d5={};for(const [_0x360ba5,_0x383cd1]of Object[_0x47638d(0xec)](this[_0x47638d(0x10c)][_0x35c4f2]||{})){_0x4ff8d5[_0x360ba5]={'field_type':_0x2399d7['MCnWj'],'values':Array[_0x47638d(0xb0)](_0x383cd1)?[..._0x383cd1]:[]};}_0x2399d7['lXDEK'](Object[_0x47638d(0xc3)](_0x4ff8d5)[_0x47638d(0xd5)],0x0)&&await fs[_0x47638d(0x10a)]['writeFile'](_0x2399d7[_0x47638d(0xc7)](getBuildTagsFilePath,_0x3adea0),JSON[_0x47638d(0x104)](_0x4ff8d5));}else logger[_0x47638d(0xd8)](_0x2399d7[_0x47638d(0x106)]);}catch(_0xf2d2a6){logger['debug']('CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20'+(_0xf2d2a6&&_0xf2d2a6['message']?_0xf2d2a6['message']:_0xf2d2a6));}}}else{let _0x85ab66;const _0x3f16f9=global['__jestCurrentTestIdentifier'];let _0x43586b=![];if(_0x3f16f9&&_0x3f16f9[_0x47638d(0x107)](_0x2399d7[_0x47638d(0x11f)]))_0x43586b=!![],_0x85ab66=_0x3f16f9;else try{const _0x5e4c00=_0x2399d7[_0x47638d(0xc7)](require,_0x2399d7[_0x47638d(0x125)]),_0x16bb8c=_0x2399d7[_0x47638d(0xc7)](require,_0x2399d7['BvPQx']);if(_0x16bb8c[_0x47638d(0x11a)]()[_0x47638d(0x122)]()){const _0x4f777b=_0x5e4c00[_0x47638d(0xff)]();if(_0x2399d7['WHkfG'](_0x4f777b?.[_0x47638d(0xe9)]?.[_0x47638d(0xea)](),_0x2399d7[_0x47638d(0xfa)])){const _0x5ef1f2=AutomationFramework[_0x47638d(0xf1)]();_0x85ab66=AutomationFramework[_0x47638d(0xf3)](_0x5ef1f2,PlaywrightDriverModule[_0x47638d(0xda)],''),_0x85ab66&&_0x85ab66[_0x47638d(0x107)](_0x2399d7[_0x47638d(0x11f)])&&(_0x43586b=!![]);}}}catch(_0x4cb78d){logger['debug'](_0x47638d(0xe8)+_0x4cb78d);}if(_0x43586b){if(!_0x85ab66)throw new Error(_0x2399d7[_0x47638d(0xb4)]);const _0x24ac8c=_0x2399d7[_0x47638d(0xc7)](require,_0x2399d7[_0x47638d(0x112)]),_0x156aae=_0x24ac8c[_0x47638d(0x11a)]()[_0x47638d(0x121)]();if(!_0x156aae)throw new Error(_0x2399d7[_0x47638d(0xc2)]);const _0x3373ad=_0x2399d7[_0x47638d(0xbd)](require,_0x2399d7[_0x47638d(0xb6)]),_0x2df49c=_0x2399d7[_0x47638d(0xbd)](require,_0x2399d7[_0x47638d(0x114)]),_0x55ef4d=_0x156aae[_0x47638d(0xef)](_0x3373ad[_0x47638d(0xe7)],_0x2df49c[_0x47638d(0xe2)]);if(!_0x55ef4d)throw new Error(_0x2399d7[_0x47638d(0xc9)]);const _0x5ead16=_0x55ef4d[_0x47638d(0xfb)]()[_0x47638d(0x12a)](_0x85ab66)||{},_0x5a1339=_0x5ead16[TestFrameworkConstants[_0x47638d(0x11e)]]||{};logger['debug'](_0x47638d(0xd9)+_0x85ab66+_0x47638d(0xcf)+_0x459797+_0x47638d(0x10e)+JSON[_0x47638d(0x104)](_0x3967ef)+_0x47638d(0xe6)+JSON[_0x47638d(0x104)](_0x5a1339)),CustomTagManager[_0x47638d(0xe5)](_0x5a1339,_0x459797,_0x3967ef),logger[_0x47638d(0xd8)](_0x47638d(0x126)+_0x459797+_0x47638d(0xc5)+JSON[_0x47638d(0x104)](_0x5a1339[_0x459797][_0x47638d(0xde)]));const _0xcc8bd3={[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x5a1339},_0x5e49f4={};_0x5e49f4[_0x85ab66]=_0xcc8bd3,_0x55ef4d[_0x47638d(0xac)](_0x5e49f4),logger['debug'](_0x47638d(0xf2)+_0x85ab66+',\x20finalTags='+JSON[_0x47638d(0x104)](_0x5a1339)),!this['testLevelTags'][_0x85ab66]&&(this['testLevelTags'][_0x85ab66]={}),this[_0x47638d(0xed)][_0x85ab66][_0x459797]=CustomTagManager[_0x47638d(0x10f)](this[_0x47638d(0xed)][_0x85ab66][_0x459797],_0x3967ef);}else{const _0x220138=global[_0x47638d(0xe1)]?.['currentTest']?.[_0x47638d(0xc4)];if(!_0x220138){const _0x526157=AutomationFramework[_0x47638d(0xf1)]();_0x85ab66=AutomationFramework[_0x47638d(0xf3)](_0x526157,PlaywrightDriverModule['KEY_TEST_ID'],'');}else _0x85ab66=TestInfo['getTestIdentifierFromTestInfo'](_0x220138,_0x220138['retry']);const _0x3a3e97=TestInfo[_0x47638d(0xf4)](_0x85ab66),_0x52597e=_0x3a3e97[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};CustomTagManager[_0x47638d(0xe5)](_0x52597e,_0x459797,_0x3967ef),_0x3a3e97[TestFrameworkConstants[_0x47638d(0x11e)]]=_0x52597e,TestInfo[_0x47638d(0xbf)](_0x85ab66,_0x3a3e97),!this['testLevelTags'][_0x85ab66]&&(this[_0x47638d(0xed)][_0x85ab66]={}),this[_0x47638d(0xed)][_0x85ab66][_0x459797]=CustomTagManager[_0x47638d(0x10f)](this[_0x47638d(0xed)][_0x85ab66][_0x459797],_0x3967ef);}}}static[a86_0x39afab(0xe4)](){const _0x57afe9=a86_0x39afab,_0x4a1cdd={...this[_0x57afe9(0x10c)]};return _0x4a1cdd;}static[a86_0x39afab(0x129)](){const _0x55d5d8={...this['testLevelTags']};return _0x55d5d8;}static['clearTags'](){const _0x24057e=a86_0x39afab;this[_0x24057e(0x10c)]={},this[_0x24057e(0xed)]={};}static[a86_0x39afab(0xcc)](_0x5e6531,_0x29a8ed){const _0x5e4475=a86_0x39afab,_0x45f336={};_0x45f336[_0x5e4475(0xba)]=function(_0x195ea1,_0x96a2f1){return _0x195ea1||_0x96a2f1;};const _0x40b951=_0x45f336;if(!_0x5e6531)return;!this['buildLevelTags'][_0x5e6531]&&(this[_0x5e4475(0x10c)][_0x5e6531]={});for(const [_0x48347d,_0xacd46d]of Object[_0x5e4475(0xec)](_0x40b951[_0x5e4475(0xba)](_0x29a8ed,{}))){if(!_0xacd46d||!Array[_0x5e4475(0xb0)](_0xacd46d[_0x5e4475(0xde)]))continue;this[_0x5e4475(0x10c)][_0x5e6531][_0x48347d]=CustomTagManager[_0x5e4475(0x10f)](this[_0x5e4475(0x10c)][_0x5e6531][_0x48347d],_0xacd46d[_0x5e4475(0xde)]);}}static[a86_0x39afab(0xd6)](_0xfae5b,_0x27be48){const _0x369618=a86_0x39afab,_0x1abaed={};_0x1abaed[_0x369618(0x100)]='CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate',_0x1abaed[_0x369618(0xe3)]=function(_0x510abd,_0x2f8b51){return _0x510abd*_0x2f8b51;},_0x1abaed['SuKvo']=function(_0x1acceb,_0x4053f7){return _0x1acceb*_0x4053f7;},_0x1abaed['Dwmyb']=function(_0x3ace80,_0x15103f){return _0x3ace80>_0x15103f;},_0x1abaed[_0x369618(0xc6)]=function(_0xa43ec7,_0x3f5ff2){return _0xa43ec7-_0x3f5ff2;},_0x1abaed[_0x369618(0x11b)]='utf8';const _0x168bc7=_0x1abaed;if(!_0xfae5b)return logger['debug'](_0x168bc7[_0x369618(0x100)]),0x0;let _0x14f918;try{_0x14f918=os[_0x369618(0xc0)]();}catch(_0x50866e){return logger['debug'](_0x369618(0x101)+_0x50866e),0x0;}let _0x4725de;try{_0x4725de=fs[_0x369618(0x10b)](_0x14f918);}catch(_0x1921cc){return logger[_0x369618(0xd8)](_0x369618(0xeb)+_0x1921cc),0x0;}const _0xca3e53=''+BUILD_TAG_FILE_PREFIX+_0xfae5b+'_',_0x57d80f=_0x4725de[_0x369618(0x11d)](_0x23915b=>_0x23915b[_0x369618(0x120)](_0xca3e53)&&_0x23915b[_0x369618(0xb8)](_0x369618(0xb1))),_0x1fd389=_0x168bc7[_0x369618(0xe3)](_0x168bc7[_0x369618(0xad)](_0x168bc7[_0x369618(0xad)](0x2,0x3c),0x3c),0x3e8);let _0x45a0cd=0x0;for(const _0x170f1e of _0x57d80f){const _0x35e85d=path[_0x369618(0xae)](_0x14f918,_0x170f1e);try{const _0x5535dc=fs['statSync'](_0x35e85d);if(_0x168bc7[_0x369618(0x102)](_0x168bc7[_0x369618(0xc6)](Date[_0x369618(0xf8)](),_0x5535dc[_0x369618(0xbc)]),_0x1fd389)){logger[_0x369618(0xd8)](_0x369618(0xf9)+_0x1fd389+_0x369618(0xb3)+_0x170f1e);try{fs[_0x369618(0xd0)](_0x35e85d);}catch(_0x44c4e9){logger['debug'](_0x369618(0xdc)+_0x170f1e+':\x20'+(_0x44c4e9&&_0x44c4e9['message']?_0x44c4e9[_0x369618(0xcd)]:_0x44c4e9));}continue;}const _0x5e8d64=fs['readFileSync'](_0x35e85d,_0x168bc7[_0x369618(0x11b)]),_0x1a79b0=JSON[_0x369618(0x113)](_0x5e8d64);this[_0x369618(0xcc)](_0x27be48,_0x1a79b0),_0x45a0cd+=0x1;}catch(_0x2a1acf){logger[_0x369618(0xd8)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20'+_0x170f1e+':\x20'+(_0x2a1acf&&_0x2a1acf['message']?_0x2a1acf['message']:_0x2a1acf));}try{fs['unlinkSync'](_0x35e85d);}catch(_0x488847){logger[_0x369618(0xd8)](_0x369618(0xf5)+_0x170f1e+':\x20'+(_0x488847&&_0x488847[_0x369618(0xcd)]?_0x488847[_0x369618(0xcd)]:_0x488847));}}return _0x45a0cd;}}const a86_0x570478={};a86_0x570478[a86_0x39afab(0xdd)]=getBuildTagsRunId,a86_0x570478[a86_0x39afab(0xb9)]=getBuildTagsFilePath,a86_0x570478[a86_0x39afab(0xf0)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a86_0x39afab(0x12d)]=a86_0x570478,module['exports']=CustomTagManager;
@@ -1 +1 @@
1
- const a87_0x4beb27=a87_0x4a99;(function(_0x3f4421,_0xce162b){const _0x27f072=a87_0x4a99,_0x4442cb=_0x3f4421();while(!![]){try{const _0x1937cd=-parseInt(_0x27f072(0x15e))/0x1*(-parseInt(_0x27f072(0x163))/0x2)+parseInt(_0x27f072(0x157))/0x3*(-parseInt(_0x27f072(0x169))/0x4)+parseInt(_0x27f072(0x168))/0x5*(-parseInt(_0x27f072(0x15d))/0x6)+-parseInt(_0x27f072(0x16b))/0x7*(-parseInt(_0x27f072(0x165))/0x8)+-parseInt(_0x27f072(0x16a))/0x9*(-parseInt(_0x27f072(0x16c))/0xa)+-parseInt(_0x27f072(0x15b))/0xb*(parseInt(_0x27f072(0x162))/0xc)+-parseInt(_0x27f072(0x166))/0xd;if(_0x1937cd===_0xce162b)break;else _0x4442cb['push'](_0x4442cb['shift']());}catch(_0x26943b){_0x4442cb['push'](_0x4442cb['shift']());}}}(a87_0x5696,0xc7bdb));function a87_0x5696(){const _0x398643=['exports','getInstance','registerObserver','187nkKmMy','LZRdZ','4948914HiRPrY','1519887VcHrcE','../../helpers/classLogger.js','observers','push','685236dACgoj','2QHnNBs','freeze','16ldpfoN','10718916AEhBmW','notifyObserver','5cRVPTG','222536dxtTnp','72ScpWeV','4768274eBRwLw','1877210NvErkr','51aqnvVQ'];a87_0x5696=function(){return _0x398643;};return a87_0x5696();}function a87_0x4a99(_0x271502,_0x191d00){const _0x56967c=a87_0x5696();return a87_0x4a99=function(_0x4a99d5,_0x2228cc){_0x4a99d5=_0x4a99d5-0x157;let _0x44fe4d=_0x56967c[_0x4a99d5];return _0x44fe4d;},a87_0x4a99(_0x271502,_0x191d00);}const {createClassLogger}=require(a87_0x4beb27(0x15f));class EventDispatcher{static #instance=null;constructor(){this['observers']={};}static['getInstance'](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x4beb27(0x15a)](_0x319736,_0x415403){const _0x58c266=a87_0x4beb27;!this[_0x58c266(0x160)][_0x319736]&&(this[_0x58c266(0x160)][_0x319736]=[]),this[_0x58c266(0x160)][_0x319736][_0x58c266(0x161)](_0x415403);}async[a87_0x4beb27(0x167)](_0x2119c6,_0x1d639e){const _0x6a2bef=a87_0x4beb27,_0x1cbca1={'LZRdZ':function(_0x2777dd,_0x2ca992){return _0x2777dd(_0x2ca992);}};if(this[_0x6a2bef(0x160)][_0x2119c6]){for(const _0x352208 of this[_0x6a2bef(0x160)][_0x2119c6]){await _0x1cbca1[_0x6a2bef(0x15c)](_0x352208,_0x1d639e);}return;}}}const eventDispatcher=EventDispatcher[a87_0x4beb27(0x159)]();Object[a87_0x4beb27(0x164)](eventDispatcher),module[a87_0x4beb27(0x158)]=eventDispatcher;
1
+ const a87_0x71c181=a87_0x2248;function a87_0x2248(_0x285dc5,_0x38239c){const _0x5a23df=a87_0x5a23();return a87_0x2248=function(_0x224890,_0x3e4034){_0x224890=_0x224890-0x11e;let _0x34069e=_0x5a23df[_0x224890];return _0x34069e;},a87_0x2248(_0x285dc5,_0x38239c);}(function(_0x519657,_0x54334c){const _0x1b4eb5=a87_0x2248,_0x31d83b=_0x519657();while(!![]){try{const _0x4cb181=parseInt(_0x1b4eb5(0x121))/0x1*(parseInt(_0x1b4eb5(0x127))/0x2)+parseInt(_0x1b4eb5(0x12b))/0x3*(-parseInt(_0x1b4eb5(0x12c))/0x4)+parseInt(_0x1b4eb5(0x123))/0x5+-parseInt(_0x1b4eb5(0x122))/0x6+-parseInt(_0x1b4eb5(0x130))/0x7*(-parseInt(_0x1b4eb5(0x12d))/0x8)+-parseInt(_0x1b4eb5(0x125))/0x9*(parseInt(_0x1b4eb5(0x12a))/0xa)+-parseInt(_0x1b4eb5(0x129))/0xb*(-parseInt(_0x1b4eb5(0x12e))/0xc);if(_0x4cb181===_0x54334c)break;else _0x31d83b['push'](_0x31d83b['shift']());}catch(_0x3e808c){_0x31d83b['push'](_0x31d83b['shift']());}}}(a87_0x5a23,0xcede6));function a87_0x5a23(){const _0x2fa005=['exports','31320707UcNgBk','110300UhouQy','13677RIaWUy','940KTXyie','56CTcaVP','12pbtQhN','registerObserver','738514TcvtpR','getInstance','NGVWx','observers','../../helpers/classLogger.js','7AejbBp','6838494ZadWZf','3092300KawGHr','freeze','954RMxvwq','push','6662TyMMGZ'];a87_0x5a23=function(){return _0x2fa005;};return a87_0x5a23();}const {createClassLogger}=require(a87_0x71c181(0x120));class EventDispatcher{static #instance=null;constructor(){const _0x42be77=a87_0x71c181;this[_0x42be77(0x11f)]={};}static[a87_0x71c181(0x131)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a87_0x71c181(0x12f)](_0x44fc2b,_0x4789d3){const _0x5cc19d=a87_0x71c181;!this['observers'][_0x44fc2b]&&(this[_0x5cc19d(0x11f)][_0x44fc2b]=[]),this[_0x5cc19d(0x11f)][_0x44fc2b][_0x5cc19d(0x126)](_0x4789d3);}async['notifyObserver'](_0x188118,_0xa05d17){const _0x1fd0cc=a87_0x71c181,_0x5d2d06={'NGVWx':function(_0x341542,_0x51fec7){return _0x341542(_0x51fec7);}};if(this[_0x1fd0cc(0x11f)][_0x188118]){for(const _0x12f99a of this[_0x1fd0cc(0x11f)][_0x188118]){await _0x5d2d06[_0x1fd0cc(0x11e)](_0x12f99a,_0xa05d17);}return;}}}const eventDispatcher=EventDispatcher['getInstance']();Object[a87_0x71c181(0x124)](eventDispatcher),module[a87_0x71c181(0x128)]=eventDispatcher;
@@ -1 +1 @@
1
- function a88_0x4fbd(){const _0x29f80c=['util','notifyObserver','trackEvent','744101YGdiMn','registerObserver','6094672yNCyfR','exports','instances','automationFrameworkVersion','non_browserstack_automation_sessions','runHooks','getAllData','getState','6scpnGs','automation_sessions','getId','\x20hookState=','set','../instances/trackedInstance.js','../../../helpers/classLogger.js','setTrackedInstance','6735722SHeKbe','11889264MVJlSi','69918SPZpUM','debug','4527hsPptb','getHookRegistryKey','get','2088945ybPJPP','getCurrentInstanceName','51usbdQZ','getTrackedInstance','automationFrameworkName','KEY_AUTOMATION_SESSIONS','19130yoJscG','createContext','getAutomationFrameworkName','setState','getAutomationFrameworkVersion','trackEvent:\x20automationFrameworkState='];a88_0x4fbd=function(){return _0x29f80c;};return a88_0x4fbd();}const a88_0x184c93=a88_0x27e3;(function(_0x55fc41,_0xc17c7b){const _0x55a60b=a88_0x27e3,_0x189575=_0x55fc41();while(!![]){try{const _0x31861a=parseInt(_0x55a60b(0x1a6))/0x1+-parseInt(_0x55a60b(0x192))/0x2*(-parseInt(_0x55a60b(0x199))/0x3)+-parseInt(_0x55a60b(0x1a8))/0x4+-parseInt(_0x55a60b(0x197))/0x5+parseInt(_0x55a60b(0x188))/0x6*(-parseInt(_0x55a60b(0x190))/0x7)+parseInt(_0x55a60b(0x191))/0x8+parseInt(_0x55a60b(0x194))/0x9*(parseInt(_0x55a60b(0x19d))/0xa);if(_0x31861a===_0xc17c7b)break;else _0x189575['push'](_0x189575['shift']());}catch(_0x58adb0){_0x189575['push'](_0x189575['shift']());}}}(a88_0x4fbd,0xd799a));const {createClassLogger}=require(a88_0x184c93(0x18e)),util=require(a88_0x184c93(0x1a3)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a88_0x184c93(0x18d)),logger=createClassLogger('AutomationFramework');function a88_0x27e3(_0x201427,_0x2945f9){const _0x4fbd39=a88_0x4fbd();return a88_0x27e3=function(_0x27e300,_0x1889b8){_0x27e300=_0x27e300-0x184;let _0x406e2c=_0x4fbd39[_0x27e300];return _0x406e2c;},a88_0x27e3(_0x201427,_0x2945f9);}class AutomationFramework{static [a88_0x184c93(0x1aa)]=new Map();static [a88_0x184c93(0x19c)]=a88_0x184c93(0x189);static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']=a88_0x184c93(0x184);constructor(_0x415061,_0x3fe508){const _0x49d5c2=a88_0x184c93;this[_0x49d5c2(0x19b)]=_0x415061,this[_0x49d5c2(0x1ab)]=_0x3fe508;}[a88_0x184c93(0x19f)](){const _0xf6450f=a88_0x184c93;return this[_0xf6450f(0x19b)];}[a88_0x184c93(0x1a1)](){const _0x1daebe=a88_0x184c93;return this[_0x1daebe(0x1ab)];}async[a88_0x184c93(0x1a5)](_0x4126d7,_0x5dc93e,_0x85fa9e={}){const _0x1cec77=a88_0x184c93;logger[_0x1cec77(0x193)](_0x1cec77(0x1a2)+_0x4126d7+_0x1cec77(0x18b)+_0x5dc93e);}async[a88_0x184c93(0x185)](_0x37b0fb,_0x540720,_0x48e3ad,_0xeb86fb={}){const _0x4b4675=a88_0x184c93,_0x2b6fe1=CLIUtils['getHookRegistryKey'](_0x540720,_0x48e3ad);_0x37b0fb&&_0x37b0fb[_0x4b4675(0x1a0)](_0x540720),await eventDispatcher[_0x4b4675(0x1a4)](_0x2b6fe1,_0xeb86fb);}static[a88_0x184c93(0x1a7)](_0x5cb777,_0x410510,_0x3926a6){const _0xea27f1=a88_0x184c93;eventDispatcher['registerObserver'](CLIUtils[_0xea27f1(0x195)](_0x5cb777,_0x410510),_0x3926a6);}static[a88_0x184c93(0x18f)](_0x467f7e,_0x1fc711){const _0xd73afa=a88_0x184c93;AutomationFramework[_0xd73afa(0x1aa)][_0xd73afa(0x18c)](_0x467f7e['getId'](),_0x1fc711);}static[a88_0x184c93(0x19a)](){const _0x181739=a88_0x184c93,_0x340cd5=TrackedInstance[_0x181739(0x19e)](CLIUtils[_0x181739(0x198)]());return AutomationFramework[_0x181739(0x1aa)][_0x181739(0x196)](_0x340cd5[_0x181739(0x18a)]());}static['setState'](_0x4f4bf6,_0x567b0c,_0xdfa99b){const _0x2512ce=a88_0x184c93;_0x4f4bf6[_0x2512ce(0x186)]()[_0x2512ce(0x18c)](_0x567b0c,_0xdfa99b);}static[a88_0x184c93(0x187)](_0x384bc8,_0x594a7d){return _0x384bc8['getAllData']()['get'](_0x594a7d);}}module[a88_0x184c93(0x1a9)]=AutomationFramework;
1
+ const a88_0x1a2b20=a88_0x4562;function a88_0x4669(){const _0x1e10c2=['automation_sessions','automationFrameworkName','16HXbOmS','getState','automationFrameworkVersion','2058162vftULK','instances','get','exports','../../../helpers/classLogger.js','getAllData','491813hikSdP','../eventDispatcher.js','getCurrentInstanceName','416310QEwgbX','setState','util','../instances/trackedInstance.js','trackEvent','getHookRegistryKey','getTrackedInstance','non_browserstack_automation_sessions','createContext','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getId','593HoTnVL','5tgFQPx','2974221LuCewN','KEY_AUTOMATION_SESSIONS','3570870XNGnvE','set','3336836QaEpJW','2074jehUmK','275eQsFYv','registerObserver','getAutomationFrameworkVersion'];a88_0x4669=function(){return _0x1e10c2;};return a88_0x4669();}(function(_0x1d700a,_0x574ffd){const _0x4840e0=a88_0x4562,_0x3b704d=_0x1d700a();while(!![]){try{const _0x4155ad=parseInt(_0x4840e0(0xb8))/0x1*(parseInt(_0x4840e0(0x9b))/0x2)+parseInt(_0x4840e0(0xa4))/0x3+-parseInt(_0x4840e0(0x9a))/0x4+-parseInt(_0x4840e0(0xb9))/0x5*(parseInt(_0x4840e0(0x98))/0x6)+-parseInt(_0x4840e0(0xaa))/0x7*(-parseInt(_0x4840e0(0xa1))/0x8)+-parseInt(_0x4840e0(0x96))/0x9+parseInt(_0x4840e0(0xad))/0xa*(parseInt(_0x4840e0(0x9c))/0xb);if(_0x4155ad===_0x574ffd)break;else _0x3b704d['push'](_0x3b704d['shift']());}catch(_0x2c0a84){_0x3b704d['push'](_0x3b704d['shift']());}}}(a88_0x4669,0xb0621));const {createClassLogger}=require(a88_0x1a2b20(0xa8)),util=require(a88_0x1a2b20(0xaf)),eventDispatcher=require(a88_0x1a2b20(0xab)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a88_0x1a2b20(0xb0)),logger=createClassLogger('AutomationFramework');function a88_0x4562(_0x37a5a9,_0x2e7b55){const _0x466900=a88_0x4669();return a88_0x4562=function(_0x4562e7,_0x3db4cd){_0x4562e7=_0x4562e7-0x96;let _0x38db1b=_0x466900[_0x4562e7];return _0x38db1b;},a88_0x4562(_0x37a5a9,_0x2e7b55);}class AutomationFramework{static [a88_0x1a2b20(0xa5)]=new Map();static [a88_0x1a2b20(0x97)]=a88_0x1a2b20(0x9f);static [a88_0x1a2b20(0xb6)]=a88_0x1a2b20(0xb4);constructor(_0x3e1a98,_0xd7043){const _0x571ef8=a88_0x1a2b20;this['automationFrameworkName']=_0x3e1a98,this[_0x571ef8(0xa3)]=_0xd7043;}['getAutomationFrameworkName'](){const _0x42593b=a88_0x1a2b20;return this[_0x42593b(0xa0)];}[a88_0x1a2b20(0x9e)](){const _0x9071e6=a88_0x1a2b20;return this[_0x9071e6(0xa3)];}async[a88_0x1a2b20(0xb1)](_0x1a40e0,_0x334b47,_0x33e0e9={}){logger['debug']('trackEvent:\x20automationFrameworkState='+_0x1a40e0+'\x20hookState='+_0x334b47);}async['runHooks'](_0x29a769,_0x467371,_0x301677,_0x29cbdb={}){const _0x3f57e4=CLIUtils['getHookRegistryKey'](_0x467371,_0x301677);_0x29a769&&_0x29a769['setState'](_0x467371),await eventDispatcher['notifyObserver'](_0x3f57e4,_0x29cbdb);}static[a88_0x1a2b20(0x9d)](_0xa1f89d,_0xb81733,_0x200a60){const _0x194744=a88_0x1a2b20;eventDispatcher[_0x194744(0x9d)](CLIUtils[_0x194744(0xb2)](_0xa1f89d,_0xb81733),_0x200a60);}static['setTrackedInstance'](_0x483724,_0xd1654e){const _0x493452=a88_0x1a2b20;AutomationFramework[_0x493452(0xa5)][_0x493452(0x99)](_0x483724[_0x493452(0xb7)](),_0xd1654e);}static[a88_0x1a2b20(0xb3)](){const _0x3356eb=a88_0x1a2b20,_0x1a2c9f=TrackedInstance[_0x3356eb(0xb5)](CLIUtils[_0x3356eb(0xac)]());return AutomationFramework['instances'][_0x3356eb(0xa6)](_0x1a2c9f[_0x3356eb(0xb7)]());}static[a88_0x1a2b20(0xae)](_0x37beb4,_0x867b27,_0x2efe47){const _0x5e8e7c=a88_0x1a2b20;_0x37beb4[_0x5e8e7c(0xa9)]()[_0x5e8e7c(0x99)](_0x867b27,_0x2efe47);}static[a88_0x1a2b20(0xa2)](_0x19bf21,_0x4bbd94){const _0x5d871e=a88_0x1a2b20;return _0x19bf21[_0x5d871e(0xa9)]()[_0x5d871e(0xa6)](_0x4bbd94);}}module[a88_0x1a2b20(0xa7)]=AutomationFramework;
@@ -1 +1 @@
1
- const a89_0x59794a=a89_0x1a40;(function(_0x3c1f98,_0x4209dd){const _0x2eb198=a89_0x1a40,_0x1b3fce=_0x3c1f98();while(!![]){try{const _0x15b6f8=-parseInt(_0x2eb198(0x154))/0x1*(-parseInt(_0x2eb198(0x159))/0x2)+parseInt(_0x2eb198(0x161))/0x3+parseInt(_0x2eb198(0x152))/0x4+-parseInt(_0x2eb198(0x156))/0x5*(-parseInt(_0x2eb198(0x14e))/0x6)+-parseInt(_0x2eb198(0x164))/0x7*(parseInt(_0x2eb198(0x15d))/0x8)+parseInt(_0x2eb198(0x160))/0x9*(-parseInt(_0x2eb198(0x15a))/0xa)+-parseInt(_0x2eb198(0x165))/0xb*(parseInt(_0x2eb198(0x15f))/0xc);if(_0x15b6f8===_0x4209dd)break;else _0x1b3fce['push'](_0x1b3fce['shift']());}catch(_0x5e5dc7){_0x1b3fce['push'](_0x1b3fce['shift']());}}}(a89_0x3f12,0x89e28));const a89_0x1887cf={};a89_0x1887cf[a89_0x59794a(0x15b)]=a89_0x59794a(0x15e),a89_0x1887cf[a89_0x59794a(0x16d)]='hub_url',a89_0x1887cf[a89_0x59794a(0x16c)]=a89_0x59794a(0x16a),a89_0x1887cf[a89_0x59794a(0x155)]=a89_0x59794a(0x15c),a89_0x1887cf['KEY_CAPABILITIES']=a89_0x59794a(0x153),a89_0x1887cf[a89_0x59794a(0x14f)]=a89_0x59794a(0x157),a89_0x1887cf['KEY_STARTED_AT']=a89_0x59794a(0x16f),a89_0x1887cf[a89_0x59794a(0x166)]='ended_at',a89_0x1887cf[a89_0x59794a(0x151)]=a89_0x59794a(0x168),a89_0x1887cf[a89_0x59794a(0x150)]=a89_0x59794a(0x167),a89_0x1887cf['COMMAND_GET']=a89_0x59794a(0x16e),a89_0x1887cf[a89_0x59794a(0x14d)]='screenshot',a89_0x1887cf['COMMAND_W3C_EXECUTE_SCRIPT']=a89_0x59794a(0x163),a89_0x1887cf['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a89_0x59794a(0x162),a89_0x1887cf[a89_0x59794a(0x158)]=a89_0x59794a(0x169);const AutomationFrameworkConstants=a89_0x1887cf;function a89_0x1a40(_0x3db264,_0x5d1c5d){const _0x3f1210=a89_0x3f12();return a89_0x1a40=function(_0x1a401d,_0x371ffa){_0x1a401d=_0x1a401d-0x14d;let _0x839729=_0x3f1210[_0x1a401d];return _0x839729;},a89_0x1a40(_0x3db264,_0x5d1c5d);}module[a89_0x59794a(0x16b)]=AutomationFrameworkConstants;function a89_0x3f12(){const _0x3151a9=['1662720vxStlI','ENV_BROWSERSTACK_PLATFORM_INDEX','input_capabilities','2664MKYXHT','BROWSERSTACK_PLATFORM_INDEX','12alKoGr','45BgNCFF','2996490vZSMRP','w3cexecutescriptasync','w3cexecutescript','700BJxiJa','12347830fLROXC','KEY_ENDED_AT','newsession','platform_index','quit','framework_session_id','exports','KEY_FRAMEWORK_SESSION_ID','KEY_HUB_URL','get','started_at','COMMAND_SCREENSHOT','66kSZaSf','KEY_IS_BROWSERSTACK_HUB','COMMAND_NEW_SESSION','KEY_PLATFORM_INDEX','1106404jWlPff','capabilities','392003EAqHJN','KEY_INPUT_CAPABILITIES','402060UQpFmi','is_browserstack_hub','COMMAND_QUIT','2GZMDrj'];a89_0x3f12=function(){return _0x3151a9;};return a89_0x3f12();}
1
+ const a89_0x18e806=a89_0x24e5;(function(_0x1cb78d,_0xd2b149){const _0x50aaaa=a89_0x24e5,_0x3893df=_0x1cb78d();while(!![]){try{const _0x799291=-parseInt(_0x50aaaa(0xc0))/0x1+-parseInt(_0x50aaaa(0xb4))/0x2+-parseInt(_0x50aaaa(0xc2))/0x3+-parseInt(_0x50aaaa(0xc7))/0x4+parseInt(_0x50aaaa(0xbe))/0x5*(parseInt(_0x50aaaa(0xb1))/0x6)+parseInt(_0x50aaaa(0xcb))/0x7*(-parseInt(_0x50aaaa(0xb6))/0x8)+parseInt(_0x50aaaa(0xca))/0x9;if(_0x799291===_0xd2b149)break;else _0x3893df['push'](_0x3893df['shift']());}catch(_0x9c26eb){_0x3893df['push'](_0x3893df['shift']());}}}(a89_0x4d02,0x791d0));function a89_0x4d02(){const _0x49032d=['COMMAND_W3C_EXECUTE_SCRIPT','w3cexecutescript','2976660lQEsqU','capabilities','get','20483964sIHISY','14qQaMFi','KEY_IS_BROWSERSTACK_HUB','is_browserstack_hub','KEY_INPUT_CAPABILITIES','BROWSERSTACK_PLATFORM_INDEX','2802yZXtOa','started_at','newsession','1348196fTuFrf','platform_index','416968VAQEVj','KEY_CAPABILITIES','KEY_ENDED_AT','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','COMMAND_SCREENSHOT','ENV_BROWSERSTACK_PLATFORM_INDEX','COMMAND_NEW_SESSION','hub_url','4685SKGcsC','KEY_HUB_URL','207256xdaJJN','screenshot','1463202kyvgZT','KEY_STARTED_AT','input_capabilities'];a89_0x4d02=function(){return _0x49032d;};return a89_0x4d02();}const a89_0x244f63={};a89_0x244f63[a89_0x18e806(0xbb)]=a89_0x18e806(0xcf),a89_0x244f63[a89_0x18e806(0xbf)]=a89_0x18e806(0xbd),a89_0x244f63['KEY_FRAMEWORK_SESSION_ID']='framework_session_id',a89_0x244f63[a89_0x18e806(0xce)]=a89_0x18e806(0xc4),a89_0x244f63[a89_0x18e806(0xb7)]=a89_0x18e806(0xc8),a89_0x244f63[a89_0x18e806(0xcc)]=a89_0x18e806(0xcd),a89_0x244f63[a89_0x18e806(0xc3)]=a89_0x18e806(0xb2),a89_0x244f63[a89_0x18e806(0xb8)]='ended_at',a89_0x244f63['KEY_PLATFORM_INDEX']=a89_0x18e806(0xb5),a89_0x244f63[a89_0x18e806(0xbc)]=a89_0x18e806(0xb3),a89_0x244f63['COMMAND_GET']=a89_0x18e806(0xc9),a89_0x244f63[a89_0x18e806(0xba)]=a89_0x18e806(0xc1),a89_0x244f63[a89_0x18e806(0xc5)]=a89_0x18e806(0xc6),a89_0x244f63[a89_0x18e806(0xb9)]='w3cexecutescriptasync',a89_0x244f63['COMMAND_QUIT']='quit';function a89_0x24e5(_0xee048e,_0x495afd){const _0x4d027e=a89_0x4d02();return a89_0x24e5=function(_0x24e5b7,_0x3e1061){_0x24e5b7=_0x24e5b7-0xb1;let _0x24d82c=_0x4d027e[_0x24e5b7];return _0x24d82c;},a89_0x24e5(_0xee048e,_0x495afd);}const AutomationFrameworkConstants=a89_0x244f63;module['exports']=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- function a90_0x5a83(){const _0x1f8292=['event_ended_at','KEY_EVENT_ENDED_AT','737948WsaLnn','KEY_TEST_SCOPE','KEY_AUTOMATE_SESSION_NAME','KEY_HOOK_LAST_FINISHED','KIND_SCREENSHOT','MAX_NESTED_STEP_DEPTH','test_scope','test_session_name','KEY_TEST_FILE_PATH','KEY_TEST_FAILURE_REASON','KEY_AUTOMATE_SESSION_REASON','file_size','test_tags','KEY_TEST_RESULT_AT','pending','KEY_TEST_FRAMEWORK_VERSION','KEY_HOOK_FAILURE','6Sxxbse','custom_metadata','hook_failure_type','KEY_HOOK_RESULT','test_id','test_file_path','hook_failure','test_hook_last_started','test_duration','KEY_SESSION_NAME','^(BEFORE_|AFTER_)','MAX_TOP_LEVEL_STEPS','test_meta','2612444VahxfA','test_failure_reason','KEY_TEST_META','test_hooks_finished','KEY_HOOKS_FINISHED','22844480EYhzFV','test_result_at','1082991vTNiLT','KEY_FILE_SIZE','KEY_FILE_PATH','logs','KEY_TEST_NAME','KEY_TEST_FRAMEWORK_NAME','KEY_TEST_UUID','DEFAULT_HOOK_RESULT','test_started_at','KEY_HOOK_NAME','KEY_HOOK_ID','KEY_TEST_SCREENSHOTS','KEY_HOOKS_STARTED','8130510lFPOdm','KEY_TEST_CODE','hook_id','718032KLhowV','test_location','test_failure_type','hook_result','TEST_LOG','exports','KEY_CUSTOM_TAGS','KEY_FILE_LEVEL','file_level','test_framework_name','KEY_TEST_RESULT','KEY_TEST_LOCATION','test_hook_last_finished','KEY_TEST_FAILURE','retry_of','KEY_HOOK_LAST_STARTED','test_hooks_started','12126653aRjrwM','KEY_TEST_SCOPES','test_logs','KEY_FILE_NAME','KEY_TEST_ATTACHMENTS','platform_index','automate_session_reason','KEY_TEST_LOGS','KEY_TEST_TAGS','test_rerun_name','event_started_at','test_ended_at','test_framework_version','KEY_TEST_RETRY_OF','KEY_HOOK_LOGS','test_name','automate_session_name','DEFAULT_TEST_RESULT','hook_logs','TEST_SCREENSHOT','file_path'];a90_0x5a83=function(){return _0x1f8292;};return a90_0x5a83();}function a90_0x2981(_0x2200c6,_0x49140c){const _0x5a8329=a90_0x5a83();return a90_0x2981=function(_0x2981fa,_0x54fb99){_0x2981fa=_0x2981fa-0xb7;let _0x335651=_0x5a8329[_0x2981fa];return _0x335651;},a90_0x2981(_0x2200c6,_0x49140c);}const a90_0xb824c1=a90_0x2981;(function(_0x1677cc,_0xc9e2f3){const _0x379f54=a90_0x2981,_0x19b775=_0x1677cc();while(!![]){try{const _0x5b0fc2=-parseInt(_0x379f54(0xfa))/0x1+parseInt(_0x379f54(0xbb))/0x2+-parseInt(_0x379f54(0xc2))/0x3+parseInt(_0x379f54(0xd2))/0x4+parseInt(_0x379f54(0xcf))/0x5+parseInt(_0x379f54(0x10b))/0x6*(parseInt(_0x379f54(0xe3))/0x7)+-parseInt(_0x379f54(0xc0))/0x8;if(_0x5b0fc2===_0xc9e2f3)break;else _0x19b775['push'](_0x19b775['shift']());}catch(_0x5f58bb){_0x19b775['push'](_0x19b775['shift']());}}}(a90_0x5a83,0xd936a));const a90_0x588117={};a90_0x588117[a90_0xb824c1(0xc8)]='test_uuid',a90_0x588117['KEY_TEST_ID']=a90_0xb824c1(0x10f),a90_0x588117[a90_0xb824c1(0xc6)]=a90_0xb824c1(0xf2),a90_0x588117[a90_0xb824c1(0x102)]=a90_0xb824c1(0x110),a90_0x588117[a90_0xb824c1(0xeb)]=a90_0xb824c1(0x106),a90_0x588117[a90_0xb824c1(0xdc)]='test_result',a90_0x588117[a90_0xb824c1(0x107)]=a90_0xb824c1(0xc1),a90_0x588117['KEY_TEST_STARTED_AT']=a90_0xb824c1(0xca),a90_0x588117['KEY_TEST_ENDED_AT']=a90_0xb824c1(0xee),a90_0x588117[a90_0xb824c1(0xdd)]=a90_0xb824c1(0xd3),a90_0x588117['KEY_TEST_DURATION']=a90_0xb824c1(0x113),a90_0x588117[a90_0xb824c1(0xfb)]=a90_0xb824c1(0x100),a90_0x588117[a90_0xb824c1(0xe4)]='test_scopes',a90_0x588117[a90_0xb824c1(0xc7)]=a90_0xb824c1(0xdb),a90_0x588117[a90_0xb824c1(0x109)]=a90_0xb824c1(0xef),a90_0x588117[a90_0xb824c1(0xd0)]='test_code',a90_0x588117['KEY_TEST_RERUN_NAME']=a90_0xb824c1(0xec),a90_0x588117[a90_0xb824c1(0xf0)]=a90_0xb824c1(0xe0),a90_0x588117['KEY_PLATFORM_INDEX']=a90_0xb824c1(0xe8),a90_0x588117[a90_0xb824c1(0xdf)]='test_failure',a90_0x588117['KEY_TEST_FAILURE_TYPE']=a90_0xb824c1(0xd4),a90_0x588117[a90_0xb824c1(0x103)]=a90_0xb824c1(0xbc),a90_0x588117[a90_0xb824c1(0xea)]=a90_0xb824c1(0xe5),a90_0x588117[a90_0xb824c1(0xbd)]=a90_0xb824c1(0xba),a90_0x588117[a90_0xb824c1(0xb7)]=a90_0xb824c1(0x101),a90_0x588117[a90_0xb824c1(0xfc)]=a90_0xb824c1(0xf3),a90_0x588117['KEY_AUTOMATE_SESSION_STATUS']='automate_session_status',a90_0x588117[a90_0xb824c1(0x104)]=a90_0xb824c1(0xe9),a90_0x588117['KEY_EVENT_STARTED_AT']=a90_0xb824c1(0xed),a90_0x588117[a90_0xb824c1(0xf9)]=a90_0xb824c1(0xf8),a90_0x588117[a90_0xb824c1(0xcc)]=a90_0xb824c1(0xd1),a90_0x588117[a90_0xb824c1(0x10e)]=a90_0xb824c1(0xd5),a90_0x588117['KEY_HOOK_FAILURE_TYPE']=a90_0xb824c1(0x10d),a90_0x588117['KEY_HOOK_FAILURE_REASON']='hook_failure_reason',a90_0x588117[a90_0xb824c1(0x10a)]=a90_0xb824c1(0x111),a90_0x588117[a90_0xb824c1(0xf1)]=a90_0xb824c1(0xf5),a90_0x588117[a90_0xb824c1(0xcb)]='hook_name',a90_0x588117[a90_0xb824c1(0xf4)]='pending',a90_0x588117[a90_0xb824c1(0xc9)]=a90_0xb824c1(0x108),a90_0x588117[a90_0xb824c1(0xfe)]=a90_0xb824c1(0xf6),a90_0x588117['KIND_LOG']=a90_0xb824c1(0xd6),a90_0x588117['HOOK_REGEX']=a90_0xb824c1(0xb8),a90_0x588117[a90_0xb824c1(0xce)]=a90_0xb824c1(0xe2),a90_0x588117[a90_0xb824c1(0xbf)]=a90_0xb824c1(0xbe),a90_0x588117[a90_0xb824c1(0xe1)]=a90_0xb824c1(0x112),a90_0x588117[a90_0xb824c1(0xfd)]=a90_0xb824c1(0xde),a90_0x588117['KEY_LOGS']=a90_0xb824c1(0xc5),a90_0x588117[a90_0xb824c1(0xd8)]=a90_0xb824c1(0x10c),a90_0x588117[a90_0xb824c1(0xe7)]='test_attachments',a90_0x588117[a90_0xb824c1(0xc3)]=a90_0xb824c1(0x105),a90_0x588117[a90_0xb824c1(0xe6)]='file_name',a90_0x588117[a90_0xb824c1(0xc4)]=a90_0xb824c1(0xf7),a90_0x588117[a90_0xb824c1(0xd9)]=a90_0xb824c1(0xda),a90_0x588117[a90_0xb824c1(0xcd)]='test_screenshots',a90_0x588117[a90_0xb824c1(0xb9)]=0xa,a90_0x588117[a90_0xb824c1(0xff)]=0x2;const TestFrameworkConstants=a90_0x588117;module[a90_0xb824c1(0xd7)]=TestFrameworkConstants;
1
+ function a90_0x1fb3(){const _0x1d3a2b=['test_framework_name','event_ended_at','DEFAULT_TEST_RESULT','test_tags','test_session_name','test_duration','event_started_at','automate_session_reason','KEY_TEST_FRAMEWORK_NAME','KIND_SCREENSHOT','KEY_TEST_META','KEY_EVENT_STARTED_AT','99LYjqOj','KIND_LOG','KEY_TEST_UUID','494768OqiOLg','KEY_AUTOMATE_SESSION_STATUS','file_level','test_scopes','KEY_TEST_TAGS','KEY_TEST_SCOPE','KEY_TEST_ID','test_uuid','TEST_LOG','KEY_TEST_FAILURE_TYPE','KEY_SESSION_NAME','automate_session_name','5qGMebn','1863228VVafpl','KEY_FILE_LEVEL','test_framework_version','automate_session_status','KEY_LOGS','hook_failure_type','file_name','KEY_TEST_NAME','KEY_TEST_STARTED_AT','test_id','test_result_at','test_hook_last_started','KEY_HOOK_LAST_FINISHED','KEY_TEST_CODE','KEY_TEST_RETRY_OF','KEY_HOOK_LOGS','2944380LhtZkZ','KEY_HOOK_FAILURE_TYPE','test_failure_reason','test_failure','KEY_TEST_ATTACHMENTS','36549964RZuVyK','DEFAULT_HOOK_RESULT','test_location','KEY_TEST_RESULT','303988kulCMj','KEY_TEST_LOCATION','KEY_CUSTOM_TAGS','retry_of','test_ended_at','hook_logs','9318631SbKOqI','KEY_TEST_RERUN_NAME','3ZymqXg','test_screenshots','test_hooks_started','KEY_HOOK_LAST_STARTED','hook_failure','test_file_path','test_name','TEST_SCREENSHOT','file_path','KEY_TEST_LOGS','KEY_FILE_NAME','test_hooks_finished','KEY_TEST_FRAMEWORK_VERSION','test_hook_last_finished','KEY_EVENT_ENDED_AT','MAX_TOP_LEVEL_STEPS','KEY_AUTOMATE_SESSION_REASON','test_meta','platform_index','11907250yGswed','KEY_PLATFORM_INDEX','test_result','KEY_HOOKS_FINISHED','KEY_TEST_FILE_PATH','file_size','KEY_TEST_DURATION','test_failure_type','test_code','KEY_TEST_ENDED_AT','pending','hook_result','KEY_HOOK_FAILURE','test_logs','5prhIwz','logs','KEY_HOOKS_STARTED','KEY_HOOK_RESULT','KEY_FILE_PATH'];a90_0x1fb3=function(){return _0x1d3a2b;};return a90_0x1fb3();}const a90_0x217e14=a90_0x1902;(function(_0x5caf77,_0x73726a){const _0x3bafea=a90_0x1902,_0xd226da=_0x5caf77();while(!![]){try{const _0x68a683=-parseInt(_0x3bafea(0x200))/0x1*(parseInt(_0x3bafea(0x23a))/0x2)+parseInt(_0x3bafea(0x242))/0x3*(parseInt(_0x3bafea(0x221))/0x4)+parseInt(_0x3bafea(0x220))/0x5*(-parseInt(_0x3bafea(0x231))/0x6)+-parseInt(_0x3bafea(0x240))/0x7+parseInt(_0x3bafea(0x214))/0x8*(parseInt(_0x3bafea(0x211))/0x9)+-parseInt(_0x3bafea(0x1f2))/0xa+parseInt(_0x3bafea(0x236))/0xb;if(_0x68a683===_0x73726a)break;else _0xd226da['push'](_0xd226da['shift']());}catch(_0xdc8c4c){_0xd226da['push'](_0xd226da['shift']());}}}(a90_0x1fb3,0xa9f73));const a90_0x37e4cb={};a90_0x37e4cb[a90_0x217e14(0x213)]=a90_0x217e14(0x21b),a90_0x37e4cb[a90_0x217e14(0x21a)]=a90_0x217e14(0x22a),a90_0x37e4cb[a90_0x217e14(0x228)]=a90_0x217e14(0x248),a90_0x37e4cb[a90_0x217e14(0x1f6)]=a90_0x217e14(0x247),a90_0x37e4cb[a90_0x217e14(0x218)]=a90_0x217e14(0x208),a90_0x37e4cb[a90_0x217e14(0x239)]=a90_0x217e14(0x1f4),a90_0x37e4cb['KEY_TEST_RESULT_AT']=a90_0x217e14(0x22b),a90_0x37e4cb[a90_0x217e14(0x229)]='test_started_at',a90_0x37e4cb[a90_0x217e14(0x1fb)]=a90_0x217e14(0x23e),a90_0x37e4cb[a90_0x217e14(0x23b)]=a90_0x217e14(0x238),a90_0x37e4cb[a90_0x217e14(0x1f8)]=a90_0x217e14(0x20a),a90_0x37e4cb[a90_0x217e14(0x219)]='test_scope',a90_0x37e4cb['KEY_TEST_SCOPES']=a90_0x217e14(0x217),a90_0x37e4cb[a90_0x217e14(0x20d)]=a90_0x217e14(0x205),a90_0x37e4cb[a90_0x217e14(0x1eb)]=a90_0x217e14(0x223),a90_0x37e4cb[a90_0x217e14(0x22e)]=a90_0x217e14(0x1fa),a90_0x37e4cb[a90_0x217e14(0x241)]='test_rerun_name',a90_0x37e4cb[a90_0x217e14(0x22f)]=a90_0x217e14(0x23d),a90_0x37e4cb[a90_0x217e14(0x1f3)]=a90_0x217e14(0x1f1),a90_0x37e4cb['KEY_TEST_FAILURE']=a90_0x217e14(0x234),a90_0x37e4cb[a90_0x217e14(0x21d)]=a90_0x217e14(0x1f9),a90_0x37e4cb['KEY_TEST_FAILURE_REASON']=a90_0x217e14(0x233),a90_0x37e4cb[a90_0x217e14(0x24b)]=a90_0x217e14(0x1ff),a90_0x37e4cb[a90_0x217e14(0x20f)]=a90_0x217e14(0x1f0),a90_0x37e4cb[a90_0x217e14(0x21e)]=a90_0x217e14(0x209),a90_0x37e4cb['KEY_AUTOMATE_SESSION_NAME']=a90_0x217e14(0x21f),a90_0x37e4cb[a90_0x217e14(0x215)]=a90_0x217e14(0x224),a90_0x37e4cb[a90_0x217e14(0x1ef)]=a90_0x217e14(0x20c),a90_0x37e4cb[a90_0x217e14(0x210)]=a90_0x217e14(0x20b),a90_0x37e4cb[a90_0x217e14(0x1ed)]=a90_0x217e14(0x206),a90_0x37e4cb['KEY_HOOK_ID']='hook_id',a90_0x37e4cb[a90_0x217e14(0x203)]=a90_0x217e14(0x1fd),a90_0x37e4cb[a90_0x217e14(0x232)]=a90_0x217e14(0x226),a90_0x37e4cb['KEY_HOOK_FAILURE_REASON']='hook_failure_reason',a90_0x37e4cb[a90_0x217e14(0x1fe)]=a90_0x217e14(0x246),a90_0x37e4cb[a90_0x217e14(0x230)]=a90_0x217e14(0x23f),a90_0x37e4cb['KEY_HOOK_NAME']='hook_name',a90_0x37e4cb[a90_0x217e14(0x207)]=a90_0x217e14(0x1fc),a90_0x37e4cb[a90_0x217e14(0x237)]=a90_0x217e14(0x1fc),a90_0x37e4cb[a90_0x217e14(0x20e)]=a90_0x217e14(0x249),a90_0x37e4cb[a90_0x217e14(0x212)]=a90_0x217e14(0x21c),a90_0x37e4cb['HOOK_REGEX']='^(BEFORE_|AFTER_)',a90_0x37e4cb[a90_0x217e14(0x202)]=a90_0x217e14(0x244),a90_0x37e4cb[a90_0x217e14(0x1f5)]=a90_0x217e14(0x1ea),a90_0x37e4cb[a90_0x217e14(0x245)]=a90_0x217e14(0x22c),a90_0x37e4cb[a90_0x217e14(0x22d)]=a90_0x217e14(0x1ec),a90_0x37e4cb[a90_0x217e14(0x225)]=a90_0x217e14(0x201),a90_0x37e4cb[a90_0x217e14(0x23c)]='custom_metadata',a90_0x37e4cb[a90_0x217e14(0x235)]='test_attachments',a90_0x37e4cb['KEY_FILE_SIZE']=a90_0x217e14(0x1f7),a90_0x37e4cb[a90_0x217e14(0x24c)]=a90_0x217e14(0x227),a90_0x37e4cb[a90_0x217e14(0x204)]=a90_0x217e14(0x24a),a90_0x37e4cb[a90_0x217e14(0x222)]=a90_0x217e14(0x216),a90_0x37e4cb['KEY_TEST_SCREENSHOTS']=a90_0x217e14(0x243),a90_0x37e4cb[a90_0x217e14(0x1ee)]=0xa,a90_0x37e4cb['MAX_NESTED_STEP_DEPTH']=0x2;const TestFrameworkConstants=a90_0x37e4cb;function a90_0x1902(_0x711296,_0x41a327){const _0x1fb39f=a90_0x1fb3();return a90_0x1902=function(_0x190203,_0x5ddc88){_0x190203=_0x190203-0x1ea;let _0x4ba5c2=_0x1fb39f[_0x190203];return _0x4ba5c2;},a90_0x1902(_0x711296,_0x41a327);}module['exports']=TestFrameworkConstants;
@@ -1 +1 @@
1
- const a91_0x5324d9=a91_0x1da3;(function(_0x155c67,_0x2f4593){const _0x34dd03=a91_0x1da3,_0x4becc4=_0x155c67();while(!![]){try{const _0x8be42e=parseInt(_0x34dd03(0xfb))/0x1+parseInt(_0x34dd03(0x127))/0x2+-parseInt(_0x34dd03(0x121))/0x3+parseInt(_0x34dd03(0xff))/0x4*(parseInt(_0x34dd03(0x152))/0x5)+parseInt(_0x34dd03(0x14d))/0x6*(parseInt(_0x34dd03(0xb8))/0x7)+-parseInt(_0x34dd03(0xdc))/0x8+-parseInt(_0x34dd03(0x10a))/0x9*(parseInt(_0x34dd03(0x11b))/0xa);if(_0x8be42e===_0x2f4593)break;else _0x4becc4['push'](_0x4becc4['shift']());}catch(_0x25e1f7){_0x4becc4['push'](_0x4becc4['shift']());}}}(a91_0x501c,0x83088));function a91_0x1da3(_0x271ef9,_0x2073f7){const _0x501cb4=a91_0x501c();return a91_0x1da3=function(_0x1da371,_0x3578a8){_0x1da371=_0x1da371-0xa7;let _0x5cdd83=_0x501cb4[_0x1da371];return _0x5cdd83;},a91_0x1da3(_0x271ef9,_0x2073f7);}const TestFramework=require('./testFramework'),TestFrameworkState=require(a91_0x5324d9(0xaa)),HookState=require(a91_0x5324d9(0x10b)),{createClassLogger}=require(a91_0x5324d9(0x150)),TestFrameworkInstance=require(a91_0x5324d9(0xba)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require(a91_0x5324d9(0xb9)),TestFrameworkConstants=require(a91_0x5324d9(0xce)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x5324d9(0x108)),logger=createClassLogger(a91_0x5324d9(0x16d)),{v4:uuidv4}=require(a91_0x5324d9(0xf5)),util=require(a91_0x5324d9(0x143)),TestInfo=require(a91_0x5324d9(0xbc)),GrpcClient=require(a91_0x5324d9(0xf7));class CucumberTestFramework extends TestFramework{constructor(_0x1b1c63,_0x2fe2d4,_0x23277a){super(_0x1b1c63,_0x2fe2d4,_0x23277a);}async[a91_0x5324d9(0xbf)](_0x15b9c4,_0x6ae57,_0x44f2a5={}){const _0x1c5661=a91_0x5324d9,_0x517117={};_0x517117[_0x1c5661(0xbe)]='trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found',_0x517117['whPbf']=function(_0x1bfda2,_0x35d665){return _0x1bfda2===_0x35d665;},_0x517117['wvENB']=function(_0x4b4d2f,_0x133e8b){return _0x4b4d2f===_0x133e8b;},_0x517117['nWlDq']=function(_0x190c0f,_0xc1a931){return _0x190c0f===_0xc1a931;},_0x517117[_0x1c5661(0xab)]='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x31d673=_0x517117;await super['trackEvent'](_0x15b9c4,_0x6ae57,_0x44f2a5);const _0x14e36d=this['resolveInstance'](_0x15b9c4,_0x6ae57,_0x44f2a5);if(!_0x14e36d){logger[_0x1c5661(0x16b)](_0x31d673[_0x1c5661(0xbe)]);return;}try{let _0x291fdd,_0x46a8b0;switch(_0x15b9c4){case TestFrameworkState[_0x1c5661(0x102)]:_0x291fdd=_0x44f2a5['test'],_0x46a8b0=TestInfo[_0x1c5661(0x125)](_0x291fdd['id']);if(_0x31d673[_0x1c5661(0x14c)](_0x6ae57,HookState[_0x1c5661(0xc1)])){logger['debug']('trackEvent\x20loading\x20testData\x20for\x20testId:\x20'+_0x291fdd['id']);const _0x263537={};_0x263537['testUUID']=_0x46a8b0,_0x263537[_0x1c5661(0x11e)]=_0x291fdd,_0x14e36d[_0x1c5661(0x128)](this[_0x1c5661(0x169)](_0x263537)),logger[_0x1c5661(0x16b)](_0x1c5661(0x116)+_0x291fdd['id']),await this[_0x1c5661(0xe0)](_0x14e36d,_0x291fdd['id']);}else{if(_0x31d673[_0x1c5661(0xdb)](_0x6ae57,HookState[_0x1c5661(0xda)])){const _0x36bf1e={};_0x36bf1e[_0x1c5661(0xd3)]=_0x46a8b0,_0x36bf1e[_0x1c5661(0x11e)]=_0x291fdd,_0x14e36d[_0x1c5661(0x128)](this[_0x1c5661(0xcd)](_0x36bf1e)),await this[_0x1c5661(0xe0)](_0x14e36d,_0x291fdd['id']);}}break;case TestFrameworkState['LOG_REPORT']:_0x31d673['nWlDq'](_0x6ae57,HookState[_0x1c5661(0xda)])&&await this[_0x1c5661(0x133)](_0x14e36d,_0x15b9c4,_0x44f2a5);break;default:if(CLIUtils[_0x1c5661(0x141)](_0x15b9c4[_0x1c5661(0x13a)]()[_0x1c5661(0xb6)]('.')[0x1])){const _0x2416b7=await this[_0x1c5661(0x154)](_0x14e36d,_0x15b9c4,_0x6ae57,_0x44f2a5);_0x14e36d[_0x1c5661(0x128)](_0x2416b7);}else logger[_0x1c5661(0x16b)]('trackEvent:\x20unsupported\x20testFrameworkState='+_0x15b9c4+'\x20&\x20hookState='+_0x6ae57);break;}}catch(_0x3fbb8d){logger[_0x1c5661(0x126)](util[_0x1c5661(0x110)](_0x31d673['yMKnJ'],_0x15b9c4,_0x6ae57,_0x44f2a5[_0x1c5661(0x171)],_0x3fbb8d));}_0x44f2a5['instance']=_0x14e36d,await this[_0x1c5661(0x106)](_0x14e36d,_0x15b9c4,_0x6ae57,_0x44f2a5);}[a91_0x5324d9(0x142)](_0x5c5aac,_0x43b123,_0x20f384={}){const _0x48fbe0=a91_0x5324d9,_0x482332={};_0x482332[_0x48fbe0(0xc5)]=function(_0x76876c,_0x41bb6f){return _0x76876c===_0x41bb6f;},_0x482332[_0x48fbe0(0x16e)]=function(_0xc74a25,_0x5da58a){return _0xc74a25===_0x5da58a;};const _0x5546d4=_0x482332;let _0x3b33b4=null;return(_0x5546d4[_0x48fbe0(0xc5)](_0x5c5aac,TestFrameworkState['INIT_TEST'])||_0x5546d4[_0x48fbe0(0x16e)](_0x5c5aac,TestFrameworkState[_0x48fbe0(0x117)]))&&this[_0x48fbe0(0xfc)](_0x5c5aac,_0x20f384),_0x3b33b4=TestFramework['getTrackedInstance'](),_0x3b33b4;}[a91_0x5324d9(0xfc)](_0x1aa302,_0x438524){const _0x365465=a91_0x5324d9,_0x24f997=CLIUtils[_0x365465(0x104)](),_0x2708d5=TrackedInstance['createContext'](_0x24f997);let _0x5ed147=null;logger[_0x365465(0x16b)](_0x365465(0x130)+_0x24f997+_0x365465(0x10d)+_0x1aa302),_0x5ed147=new TestFrameworkInstance(_0x2708d5,this[_0x365465(0x11c)](),this[_0x365465(0x10f)](),_0x1aa302,HookState[_0x365465(0x117)]),TestFramework[_0x365465(0x129)](_0x2708d5,_0x5ed147),logger[_0x365465(0x16b)](_0x365465(0xbd)+_0x2708d5[_0x365465(0x148)]()+_0x365465(0x124)+_0x24f997);}[a91_0x5324d9(0x169)](_0x3ee5c8){const _0x21f0ce=a91_0x5324d9,_0x523588={};_0x523588[_0x21f0ce(0xd9)]=_0x21f0ce(0xc3);const _0x500400=_0x523588,{testUUID:_0x223b03,testData:_0x2aab97}=_0x3ee5c8;if(!_0x2aab97||!_0x2aab97[_0x21f0ce(0xf5)])return logger[_0x21f0ce(0x16b)](_0x500400[_0x21f0ce(0xd9)]),{};const _0x10ad41=_0x223b03,_0x2ed28d=_0x2aab97[_0x21f0ce(0xf5)],_0x3a4b06=this[_0x21f0ce(0x11c)]()[0x0],_0xb2053a=this[_0x21f0ce(0x10f)](),_0x9c8a44={[TestFrameworkConstants[_0x21f0ce(0x16f)]]:_0x3a4b06,[TestFrameworkConstants[_0x21f0ce(0xc9)]]:_0xb2053a[_0x3a4b06],[TestFrameworkConstants[_0x21f0ce(0x165)]]:[],[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:{},[TestFrameworkConstants[_0x21f0ce(0xfe)]]:{},[TestFrameworkConstants[_0x21f0ce(0x137)]]:_0x10ad41,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x21f0ce(0x123)],[TestFrameworkConstants[_0x21f0ce(0xdd)]]:_0x2aab97[_0x21f0ce(0xfa)]||'',[TestFrameworkConstants[_0x21f0ce(0xe1)]]:_0x2aab97[_0x21f0ce(0xe6)]||'',[TestFrameworkConstants[_0x21f0ce(0xb3)]]:_0x2ed28d,[TestFrameworkConstants[_0x21f0ce(0x151)]]:_0x2aab97[_0x21f0ce(0xfa)]||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x2aab97['location']||'',[TestFrameworkConstants[_0x21f0ce(0xb7)]]:_0x2aab97['body']?.[_0x21f0ce(0xec)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x2aab97[_0x21f0ce(0x135)]||[],[TestFrameworkConstants[_0x21f0ce(0xe5)]]:_0x2aab97['startedAt']||new Date()[_0x21f0ce(0xb1)](),[TestFrameworkConstants[_0x21f0ce(0xd7)]]:_0x2aab97[_0x21f0ce(0xef)]?.[0x0]||'',[TestFrameworkConstants[_0x21f0ce(0xae)]]:_0x2aab97[_0x21f0ce(0xef)]||[],[TestFrameworkConstants[_0x21f0ce(0xe8)]]:_0x2aab97[_0x21f0ce(0x153)]?.[_0x21f0ce(0xd8)]||_0x2aab97[_0x21f0ce(0xfa)]||'',[TestFrameworkConstants[_0x21f0ce(0xdf)]]:{},[TestFrameworkConstants[_0x21f0ce(0x12c)]]:_0x2aab97['meta']||{}};TestInfo['setTestDetails'](_0x2ed28d,_0x9c8a44),logger[_0x21f0ce(0x16b)](_0x21f0ce(0xf0)+_0x2aab97[_0x21f0ce(0xfa)]+_0x21f0ce(0x146)+_0x10ad41);const _0x2ee997={};return _0x2ee997[_0x2ed28d]=_0x9c8a44,_0x2ee997;}[a91_0x5324d9(0xcd)](_0x49d9b3){const _0x1d8ac9=a91_0x5324d9,_0x4630da={'jTkMp':_0x1d8ac9(0x14e),'wCbSm':_0x1d8ac9(0xd1),'jlcjk':function(_0x46c786,_0x1ba3aa){return _0x46c786===_0x1ba3aa;},'zbegQ':_0x1d8ac9(0xbb),'laWhZ':_0x1d8ac9(0x138),'fXYjk':function(_0x2d94e2,_0x501d88,_0x3a5e9b){return _0x2d94e2(_0x501d88,_0x3a5e9b);},'awnTp':function(_0x407f7d,_0x2d33a2){return _0x407f7d>_0x2d33a2;},'SmMaG':function(_0x146e20,_0x207217){return _0x146e20>_0x207217;}},{testUUID:_0x14d6d0,testData:_0x3fd6ae}=_0x49d9b3;if(!_0x3fd6ae||!_0x3fd6ae[_0x1d8ac9(0xf5)])return logger['debug'](_0x4630da[_0x1d8ac9(0x156)]),{};const _0x359268=this[_0x1d8ac9(0x142)](TestFrameworkState[_0x1d8ac9(0x102)],HookState[_0x1d8ac9(0xda)]),_0x545f84=_0x3fd6ae[_0x1d8ac9(0xf5)],_0x5bf96d=TestInfo[_0x1d8ac9(0xc4)](_0x545f84)||{},_0xc17978=_0x5bf96d?_0x5bf96d[TestFrameworkConstants[_0x1d8ac9(0xdf)]]||{}:{},_0x40cf8e={..._0x5bf96d,[TestFrameworkConstants[_0x1d8ac9(0x120)]]:_0x3fd6ae[_0x1d8ac9(0x145)]||_0x4630da['wCbSm'],[TestFrameworkConstants[_0x1d8ac9(0xe9)]]:_0x3fd6ae[_0x1d8ac9(0xac)]||new Date()['toISOString'](),[TestFrameworkConstants[_0x1d8ac9(0x113)]]:new Date()[_0x1d8ac9(0xb1)](),[TestFrameworkConstants[_0x1d8ac9(0xdf)]]:_0xc17978,[TestFrameworkConstants[_0x1d8ac9(0x149)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x3fd6ae[_0x1d8ac9(0x115)]||{}};_0x4630da['jlcjk'](_0x3fd6ae[_0x1d8ac9(0x145)],_0x4630da[_0x1d8ac9(0x101)])&&_0x3fd6ae[_0x1d8ac9(0x136)]&&(_0x40cf8e[TestFrameworkConstants[_0x1d8ac9(0x13e)]]=_0x3fd6ae[_0x1d8ac9(0x12a)]||_0x4630da[_0x1d8ac9(0x13c)],_0x40cf8e[TestFrameworkConstants[_0x1d8ac9(0xf4)]]=_0x3fd6ae[_0x1d8ac9(0x114)]||'',_0x40cf8e[TestFrameworkConstants[_0x1d8ac9(0xb2)]]=_0x3fd6ae[_0x1d8ac9(0x136)]);const _0x5ac06a=TestInfo[_0x1d8ac9(0xc4)](_0x545f84)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0xa2fccd=_0x4630da[_0x1d8ac9(0x131)](getManualUploadLogs,_0x5ac06a,_0x359268[_0x1d8ac9(0xfd)]()['get'](_0x545f84)[TestFrameworkConstants[_0x1d8ac9(0x137)]]);if(_0x4630da[_0x1d8ac9(0x122)](_0xa2fccd[_0x1d8ac9(0x171)],0x0)){const _0x1b594d=_0x40cf8e[TestFrameworkConstants[_0x1d8ac9(0x149)]]||[];_0x40cf8e[TestFrameworkConstants[_0x1d8ac9(0x149)]]=[..._0x1b594d,..._0xa2fccd];}_0x3fd6ae[_0x1d8ac9(0x13b)]&&_0x4630da['SmMaG'](_0x3fd6ae[_0x1d8ac9(0x13b)][_0x1d8ac9(0x171)],0x0)&&(_0x40cf8e[TestFrameworkConstants[_0x1d8ac9(0xe4)]]=_0x3fd6ae[_0x1d8ac9(0x13b)]);TestInfo[_0x1d8ac9(0x166)](_0x545f84,_0x40cf8e),logger['debug'](_0x1d8ac9(0xc2)+_0x3fd6ae[_0x1d8ac9(0xfa)]+_0x1d8ac9(0x167)+_0x3fd6ae[_0x1d8ac9(0x145)]);const _0xb6d3f9={};return _0xb6d3f9[_0x545f84]=_0x40cf8e,_0xb6d3f9;}async[a91_0x5324d9(0x154)](_0x413c38,_0x392e4b,_0x25fec3,_0x4054b0){const _0x91462e=a91_0x5324d9,_0x263928={'VyDoM':_0x91462e(0x112),'kUfRY':function(_0xaaabf6){return _0xaaabf6();},'gDPZh':function(_0x41c2c7,_0x2860cb){return _0x41c2c7 in _0x2860cb;},'INISd':function(_0x1fd0e5,_0x5ad902){return _0x1fd0e5 in _0x5ad902;},'FriBF':function(_0xa65ee4,_0x13017a){return _0xa65ee4===_0x13017a;},'ICIAa':function(_0x1db874,_0x1798b7){return _0x1db874>_0x1798b7;},'HJgXS':_0x91462e(0xbb),'shwiI':'UnhandledError','EariF':'passed','hPhMU':function(_0x1d56a8,_0x2afd5f){return _0x1d56a8!==_0x2afd5f;}},{hookData:_0x5afc13}=_0x4054b0;if(!_0x5afc13)return logger[_0x91462e(0x16b)](_0x263928['VyDoM']),{};const _0x3507cb=_0x5afc13[_0x91462e(0xf5)]||_0x263928['kUfRY'](uuidv4),_0x374e42=_0x5afc13['test_run_id'],_0x46f486=_0x392e4b[_0x91462e(0x13a)]()[_0x91462e(0xb6)]('.')[0x1],_0x2d488e=TestInfo[_0x91462e(0xc4)](_0x374e42)[TestFrameworkConstants[_0x91462e(0xdf)]]||{},_0x10f679=_0x413c38[_0x91462e(0xfd)]()['get'](_0x374e42);if(!_0x10f679)return logger[_0x91462e(0x16b)]('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x374e42+',\x20storing\x20as\x20pending\x20hook'),this[_0x91462e(0xe7)](_0x413c38,_0x374e42,_0x392e4b,_0x25fec3,_0x4054b0),{};let _0x4162ea=_0x10f679[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x4162ea&&(_0x4162ea={});!_0x263928['gDPZh'](_0x46f486,_0x4162ea)&&(_0x4162ea[_0x46f486]=[]);let _0xb54a93=_0x10f679[TestFrameworkConstants[_0x91462e(0xe4)]];!_0xb54a93&&(_0xb54a93={});!_0x263928['INISd'](_0x46f486,_0xb54a93)&&(_0xb54a93[_0x46f486]=[]);const _0x21fab0={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x4162ea,[TestFrameworkConstants[_0x91462e(0xe4)]]:_0xb54a93},_0x2d9dea={};_0x2d9dea[_0x374e42]=_0x21fab0;const _0x3f3b4f=_0x2d9dea;if(_0x263928[_0x91462e(0xee)](_0x25fec3,HookState['PRE'])){const _0x589d2f={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x3507cb,[TestFrameworkConstants['KEY_HOOK_RESULT']]:TestFrameworkConstants[_0x91462e(0xe3)],[TestFrameworkConstants[_0x91462e(0x134)]]:_0x5afc13[_0x91462e(0xe2)],[TestFrameworkConstants[_0x91462e(0xf1)]]:[],[TestFrameworkConstants['KEY_HOOK_NAME']]:_0x5afc13[_0x91462e(0x15f)],[TestFrameworkConstants['KEY_CUSTOM_TAGS']]:_0x2d488e};_0x589d2f['key']=_0x46f486;const _0x417e55=_0x589d2f;_0x4162ea[_0x46f486][_0x91462e(0xea)](_0x417e55),_0x3f3b4f[_0x374e42][TestFrameworkConstants[_0x91462e(0x140)]]=_0x46f486,logger[_0x91462e(0x16b)](_0x91462e(0x10c)+_0x46f486+_0x91462e(0xeb)+_0x417e55+_0x91462e(0x15c)+_0x4054b0);}else{if(_0x263928[_0x91462e(0xee)](_0x25fec3,HookState[_0x91462e(0xda)])){const _0x1b6daa=_0x5afc13[_0x91462e(0x145)],_0x1bd02c=_0x4162ea[_0x46f486]||[];logger[_0x91462e(0x16b)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x1bd02c+_0x91462e(0x16c)+_0x4054b0);if(_0x263928[_0x91462e(0x109)](_0x1bd02c[_0x91462e(0x171)],0x0)){const _0x24e3a1=_0x1bd02c[_0x91462e(0x103)]();_0x263928[_0x91462e(0xee)](_0x5afc13[_0x91462e(0x145)],_0x263928[_0x91462e(0xf2)])&&_0x5afc13[_0x91462e(0x105)]?(_0x24e3a1[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x5afc13['failure_type']||_0x263928['shwiI'],_0x24e3a1[TestFrameworkConstants[_0x91462e(0x164)]]=_0x5afc13['failure_reason']||'',_0x24e3a1[TestFrameworkConstants[_0x91462e(0x118)]]=_0x5afc13['failure_data']):_0x24e3a1[TestFrameworkConstants[_0x91462e(0xd0)]]=_0x263928[_0x91462e(0x132)];_0x263928[_0x91462e(0xb5)](_0x1b6daa,TestFrameworkConstants[_0x91462e(0xe3)])&&(_0x24e3a1[TestFrameworkConstants[_0x91462e(0xd0)]]=_0x1b6daa);_0x24e3a1[TestFrameworkConstants[_0x91462e(0x100)]]=_0x5afc13[_0x91462e(0x16a)]||new Date()[_0x91462e(0xb1)](),_0x24e3a1[TestFrameworkConstants[_0x91462e(0xdf)]]=_0x2d488e;const _0x4e0d73=_0x24e3a1[TestFrameworkConstants['KEY_HOOK_ID']];!_0xb54a93[_0x46f486]&&(_0xb54a93[_0x46f486]=[]),_0xb54a93[_0x46f486][_0x91462e(0xea)](_0x24e3a1),_0x3f3b4f[_0x374e42][TestFrameworkConstants[_0x91462e(0x160)]]=_0x46f486;}}}return logger[_0x91462e(0x16b)](_0x91462e(0xcb)+_0x5afc13[_0x91462e(0x15f)]+_0x91462e(0xc8)+_0x3507cb+_0x91462e(0x158)+_0x374e42),_0x3f3b4f;}[a91_0x5324d9(0xa8)](_0x1dc9dd){const _0x2ee142=a91_0x5324d9,_0x121f9c={};_0x121f9c[_0x2ee142(0xc7)]=_0x2ee142(0x14f);const _0x321a9f=_0x121f9c;try{const _0x5c0824=_0x1dc9dd[_0x2ee142(0x163)]?_0x1dc9dd[_0x2ee142(0x163)]['id']:_0x1dc9dd[_0x2ee142(0x159)][_0x2ee142(0xb0)],_0x32bc9a=_0x1dc9dd[_0x2ee142(0xcf)],_0x444075=_0x32bc9a[_0x2ee142(0xcc)](),_0x158eb8=_0x32bc9a[_0x2ee142(0xfd)]()[_0x2ee142(0x168)](_0x5c0824);if(!_0x158eb8)return logger[_0x2ee142(0x16b)](_0x2ee142(0x111)+_0x5c0824),{};logger['debug']('createTestFrameworkEventPayload\x20testId:\x20'+_0x5c0824);const {[TestFrameworkConstants[_0x2ee142(0x16f)]]:_0x246f66='',[TestFrameworkConstants[_0x2ee142(0xc9)]]:_0xdc556d='',[TestFrameworkConstants[_0x2ee142(0xe5)]]:_0x3e12f9='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x5ad819=''}=_0x158eb8,_0x1c9569=_0x32bc9a[_0x2ee142(0xd5)]()['toString']()[_0x2ee142(0xb6)]('.')[0x1],_0x213740=_0x32bc9a[_0x2ee142(0x157)]()[_0x2ee142(0x13a)]()[_0x2ee142(0xb6)]('.')[0x1],_0x480eda=global?.[_0x2ee142(0x11f)]??0x0,_0x242537=_0x32bc9a[_0x2ee142(0x147)](),_0x24b59b=Buffer[_0x2ee142(0xa7)](JSON['stringify'](_0x158eb8))[_0x2ee142(0x13a)](_0x321a9f['TBwIF']),_0x1e4dba={'hash':_0x444075[_0x2ee142(0x148)](),'threadId':_0x444075[_0x2ee142(0x15a)]()[_0x2ee142(0x13a)](),'processId':_0x444075['getProcessId']()[_0x2ee142(0x13a)]()},_0x28ffa7={};_0x28ffa7['platformIndex']=_0x480eda,_0x28ffa7['testFrameworkName']=_0x246f66,_0x28ffa7['testFrameworkVersion']=_0xdc556d,_0x28ffa7['testFrameworkState']=_0x1c9569,_0x28ffa7[_0x2ee142(0xf6)]=_0x213740,_0x28ffa7[_0x2ee142(0xc0)]=_0x3e12f9,_0x28ffa7[_0x2ee142(0xaf)]=_0x5ad819,_0x28ffa7[_0x2ee142(0xf5)]=_0x242537,_0x28ffa7['eventJson']=_0x24b59b,_0x28ffa7[_0x2ee142(0xf8)]=_0x1e4dba;const _0x1762a6=_0x28ffa7;return logger[_0x2ee142(0x16b)](_0x2ee142(0x155)+_0x5c0824+'\x20testState:\x20'+_0x1c9569+_0x2ee142(0x10e)+_0x213740),_0x1762a6;}catch(_0x3c0d20){return logger['error'](_0x2ee142(0xd6)+util['format'](_0x3c0d20)),{};}}async['sendLogCreatedEvent'](_0x2f1555,_0x3b04c6,_0x336442){const _0x550b08=a91_0x5324d9,_0x2ec53f={'igiEC':function(_0x3fb3cd,_0x141bda,_0x5d3223){return _0x3fb3cd(_0x141bda,_0x5d3223);},'JzRvA':function(_0x346b03,_0x194491){return _0x346b03===_0x194491;},'PaHrW':_0x550b08(0x11a),'DZzsU':function(_0x1b907b,_0x379931){return _0x1b907b/_0x379931;},'ItENd':function(_0x30673a,_0x58488a){return _0x30673a<_0x58488a;},'HQond':function(_0x1b8717,_0x12988f){return _0x1b8717*_0x12988f;},'iovxX':function(_0x828ea1,_0x46369f){return _0x828ea1+_0x46369f;},'WTECW':function(_0x2e1d22,_0x491908){return _0x2e1d22+_0x491908;},'zIvtX':_0x550b08(0x12d)};try{const _0x7c5bae=_0x336442[_0x550b08(0xd3)],_0x4ac3b8=_0x2f1555['getAllData']()[_0x550b08(0x168)](_0x7c5bae),{[TestFrameworkConstants[_0x550b08(0x16f)]]:_0xb2141d='',[TestFrameworkConstants[_0x550b08(0xc9)]]:_0x1bd74b=''}=_0x4ac3b8,_0x1930aa=TestInfo['readLogObjects'](_0x7c5bae),_0x2d28ac=TestInfo[_0x550b08(0xc4)](_0x7c5bae)[TestFrameworkConstants[_0x550b08(0xed)]]||{},_0x3c9fac=_0x2ec53f[_0x550b08(0xc6)](getMediaArtifactsLogs,_0x2d28ac,_0x2f1555[_0x550b08(0xfd)]()[_0x550b08(0x168)](_0x7c5bae)[TestFrameworkConstants[_0x550b08(0x137)]]),_0x590eab=(_0x1930aa||[])['concat'](_0x3c9fac||[]);if(!_0x590eab||_0x2ec53f['JzRvA'](_0x590eab[_0x550b08(0x171)],0x0)){logger[_0x550b08(0x16b)](_0x2ec53f[_0x550b08(0x15e)]);return;}const _0x40e77a=0x28,_0x2d0f4c=Math[_0x550b08(0x162)](_0x2ec53f[_0x550b08(0xde)](_0x590eab[_0x550b08(0x171)],_0x40e77a));for(let _0x16d609=0x0;_0x2ec53f[_0x550b08(0xa9)](_0x16d609,_0x2d0f4c);_0x16d609++){const _0x59e564=_0x2ec53f[_0x550b08(0x15d)](_0x16d609,_0x40e77a),_0x250c88=_0x2ec53f[_0x550b08(0x170)](_0x59e564,_0x40e77a),_0x5d0e8c=_0x590eab[_0x550b08(0xad)](_0x59e564,_0x250c88),_0x1eff14={'platformIndex':global?.[_0x550b08(0x11f)]??0x0,'logs':_0x5d0e8c,'testFrameworkName':_0xb2141d,'testFrameworkVersion':_0x1bd74b,'testFrameworkState':_0x3b04c6[_0x550b08(0x13a)]()[_0x550b08(0xb6)]('.')[0x1]};logger['debug']('sendLogCreatedEvent:\x20for\x20testId:\x20'+_0x7c5bae+_0x550b08(0xd2)+_0x2ec53f[_0x550b08(0x170)](_0x16d609,0x1)+'/'+_0x2d0f4c+_0x550b08(0x139)+util[_0x550b08(0x12f)](_0x1eff14));const _0x2c4835=await GrpcClient[_0x550b08(0x12b)]()[_0x550b08(0xf9)](_0x1eff14);logger['debug'](_0x550b08(0x107)+_0x7c5bae+_0x550b08(0xd2)+_0x2ec53f[_0x550b08(0xca)](_0x16d609,0x1)+'/'+_0x2d0f4c+'\x20response='+util[_0x550b08(0x12f)](_0x2c4835));}}catch(_0xab3400){logger[_0x550b08(0x126)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x550b08(0x110)](_0xab3400));}logger['debug'](_0x2ec53f[_0x550b08(0xd4)]);}['storePendingHook'](_0x36e079,_0x15ffe0,_0xf217ad,_0x23b19d,_0x9fe146){const _0x2b36d4=a91_0x5324d9,_0x5f5665={'testId':_0x15ffe0,'testFrameworkState':_0xf217ad,'hookState':_0x23b19d,'args':_0x9fe146,'timestamp':new Date()['toISOString']()};_0x36e079[_0x2b36d4(0x15b)](_0x15ffe0,_0x5f5665),logger[_0x2b36d4(0x16b)](_0x2b36d4(0x13f)+_0x15ffe0+_0x2b36d4(0x14b)+_0xf217ad+',\x20hookState:\x20'+_0x23b19d);}async[a91_0x5324d9(0xe0)](_0x1c0d7c,_0x4f3039){const _0x548ed6=a91_0x5324d9,_0x165ce1={};_0x165ce1[_0x548ed6(0x161)]=function(_0x24fddb,_0x3a91f9){return _0x24fddb>_0x3a91f9;};const _0x506bbc=_0x165ce1;if(!_0x1c0d7c['hasPendingHooks'](_0x4f3039))return;const _0x154ae8=_0x1c0d7c[_0x548ed6(0x144)](_0x4f3039);logger['debug'](_0x548ed6(0x13d)+_0x154ae8[_0x548ed6(0x171)]+'\x20pending\x20hooks\x20for\x20testId:\x20'+_0x4f3039);for(const _0x3643c4 of _0x154ae8){try{const _0x19fe3b=await this['trackHookEvent'](_0x1c0d7c,_0x3643c4[_0x548ed6(0xf3)],_0x3643c4[_0x548ed6(0xf6)],_0x3643c4[_0x548ed6(0x11d)]);_0x19fe3b&&_0x506bbc[_0x548ed6(0x161)](Object[_0x548ed6(0x14a)](_0x19fe3b)['length'],0x0)&&_0x1c0d7c['addMultipleEntries'](_0x19fe3b),await this[_0x548ed6(0x106)](_0x1c0d7c,_0x3643c4[_0x548ed6(0xf3)],_0x3643c4[_0x548ed6(0xf6)],_0x3643c4[_0x548ed6(0x11d)]);}catch(_0x115278){logger[_0x548ed6(0x126)]('Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20'+_0x4f3039+_0x548ed6(0xb4)+_0x115278);}}_0x1c0d7c['removePendingHooks'](_0x4f3039),logger[_0x548ed6(0x16b)](_0x548ed6(0x12e)+_0x4f3039);}}module[a91_0x5324d9(0x119)]=CucumberTestFramework;function a91_0x501c(){const _0x4f7042=['failure_data','runHooks','sendLogCreatedEvent:\x20for\x20testId:\x20','../../../helpers/helper.js','ICIAa','1899amwhKO','../state/hookState.js','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20',',\x20state=','\x20hookState:\x20','getTestFrameworksVersions','format','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','KEY_TEST_RESULT_AT','failure_reason','meta','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','NONE','KEY_HOOK_FAILURE','exports','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','39730OjSAnr','getTestFrameworks','args','testData','browserstackPlatformIndex','KEY_TEST_RESULT','2224134Xkdfmf','awnTp','DEFAULT_TEST_RESULT','\x20target=','getTestUUID','error','329108PSjORF','addMultipleEntries','setTrackedInstance','failure_type','getInstance','KEY_TEST_META','Cucumber\x20log\x20created\x20event','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','inspect','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','fXYjk','EariF','sendLogCreatedEvent','KEY_EVENT_STARTED_AT','tags','failure','KEY_TEST_UUID','UnhandledError','\x20payload=','toString','hooks','laWhZ','Processing\x20','KEY_TEST_FAILURE_TYPE','Stored\x20pending\x20hook\x20for\x20testId:\x20','KEY_HOOK_LAST_STARTED','matchHookRegex','resolveInstance','util','getPendingHooks','result','\x20with\x20UUID:\x20','getRef','getId','KEY_LOGS','keys',',\x20state:\x20','whPbf','50334RZyTmI','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','base64','../../../helpers/classLogger.js','KEY_TEST_NAME','7610rHNymo','customRerunParam','trackHookEvent','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','jTkMp','getCurrentHookState','\x20for\x20test:\x20','hookData','getThreadId','addPendingHook','\x20\x20and\x20args\x20=\x20','HQond','PaHrW','hook_type','KEY_HOOK_LAST_FINISHED','uHcWJ','ceil','test','KEY_HOOK_FAILURE_REASON','KEY_TEST_LOGS','setTestDetails','\x20with\x20result:\x20','get','parseCucumberTest','finished_at','debug','\x20and\x20args\x20=\x20','CucumberTestFramework','kfPnv','KEY_TEST_FRAMEWORK_NAME','iovxX','length','from','createTestFrameworkEventPayload','ItENd','../state/testFrameworkState.js','yMKnJ','finishedAt','slice','KEY_TEST_SCOPES','endedAt','test_run_id','toISOString','KEY_TEST_FAILURE','KEY_TEST_ID',',\x20error:\x20','hPhMU','split','KEY_TEST_CODE','336zVRfPM','../instances/trackedInstance.js','../instances/testFrameworkInstance.js','failed','../TestInfo.js','trackCucumberInstance:\x20saved\x20instance\x20contextId=','iPsOC','trackEvent','startedAt','PRE','Updated\x20cucumber\x20test\x20result:\x20','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','getTestDetails','xGOQh','igiEC','TBwIF','\x20with\x20id\x20','KEY_TEST_FRAMEWORK_VERSION','WTECW','Tracked\x20cucumber\x20hook\x20event:\x20','getContext','parseCucumberTestResult','./constants/testFrameworkConstants.js','instance','KEY_HOOK_RESULT','unknown','\x20batch\x20','testUUID','zIvtX','getCurrentTestState','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_SCOPE','rerun_name','eCFjE','POST','wvENB','891504ehtZAz','KEY_AUTOMATE_SESSION_NAME','DZzsU','KEY_CUSTOM_TAGS','processPendingHooks','KEY_TEST_FILE_PATH','started_at','DEFAULT_HOOK_RESULT','KEY_HOOKS_FINISHED','KEY_TEST_STARTED_AT','file_name','storePendingHook','KEY_TEST_RERUN_NAME','KEY_TEST_ENDED_AT','push','\x20&\x20hook\x20=\x20','code','KEY_TEST_ATTACHMENTS','FriBF','scopes','Parsed\x20cucumber\x20test:\x20','KEY_HOOK_LOGS','HJgXS','testFrameworkState','KEY_TEST_FAILURE_REASON','uuid','hookState','../grpcClient','executionContext','logCreatedEvent','name','887429IFWBEY','trackCucumberInstance','getAllData','KEY_HOOKS_STARTED','2032muxpnJ','KEY_EVENT_ENDED_AT','zbegQ','TEST','pop','getCurrentInstanceName'];a91_0x501c=function(){return _0x4f7042;};return a91_0x501c();}
1
+ const a91_0x22251b=a91_0x51e7;(function(_0x1ff78d,_0x58c9d5){const _0xe111d1=a91_0x51e7,_0x32d15e=_0x1ff78d();while(!![]){try{const _0x286880=parseInt(_0xe111d1(0x193))/0x1+-parseInt(_0xe111d1(0xf9))/0x2+parseInt(_0xe111d1(0x177))/0x3*(parseInt(_0xe111d1(0x1a3))/0x4)+parseInt(_0xe111d1(0x137))/0x5+-parseInt(_0xe111d1(0x1ac))/0x6*(parseInt(_0xe111d1(0x19a))/0x7)+-parseInt(_0xe111d1(0x15f))/0x8*(-parseInt(_0xe111d1(0x146))/0x9)+parseInt(_0xe111d1(0xf6))/0xa;if(_0x286880===_0x58c9d5)break;else _0x32d15e['push'](_0x32d15e['shift']());}catch(_0x1fc9bc){_0x32d15e['push'](_0x32d15e['shift']());}}}(a91_0x4c34,0x4039c));function a91_0x51e7(_0x2c2f43,_0x5564c7){const _0x4c349b=a91_0x4c34();return a91_0x51e7=function(_0x51e754,_0x50181d){_0x51e754=_0x51e754-0xdd;let _0x83ed65=_0x4c349b[_0x51e754];return _0x83ed65;},a91_0x51e7(_0x2c2f43,_0x5564c7);}const TestFramework=require(a91_0x22251b(0x12e)),TestFrameworkState=require(a91_0x22251b(0xfb)),HookState=require(a91_0x22251b(0xed)),{createClassLogger}=require('../../../helpers/classLogger.js'),TestFrameworkInstance=require(a91_0x22251b(0x109)),CLIUtils=require(a91_0x22251b(0xfd)),TrackedInstance=require(a91_0x22251b(0xdf)),TestFrameworkConstants=require(a91_0x22251b(0x104)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a91_0x22251b(0x170)),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require(a91_0x22251b(0x17d)),util=require(a91_0x22251b(0xe5)),TestInfo=require(a91_0x22251b(0x195)),GrpcClient=require(a91_0x22251b(0x13c));function a91_0x4c34(){const _0x3b526b=['base64','81xLBbsT','getId','KEY_TEST_TAGS','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','KEY_CUSTOM_TAGS',',\x20state:\x20','uuid','getTestUUID','toIyV','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','KEY_TEST_FILE_PATH','CCBRg','scopes','vrBkc','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','trackEvent:\x20unsupported\x20testFrameworkState=','instance','KEY_TEST_META','testData','failure_data','storePendingHook','Processing\x20','\x20response=','test_run_id','KEY_EVENT_ENDED_AT','sendLogCreatedEvent:\x20for\x20testId:\x20','tags','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s','97983kWgwUj','NONE','../TestInfo.js','KEY_TEST_RERUN_NAME','get','split','KEY_TEST_FRAMEWORK_NAME','11221MEhdrO','KEY_HOOKS_FINISHED',',\x20storing\x20as\x20pending\x20hook','nxHOt','\x20with\x20UUID:\x20','INIT_TEST','RFiaH','KEY_HOOK_FAILURE','\x20hookState:\x20','67764vjsHPa','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','hookState','KEY_HOOK_LOGS','KEY_TEST_UUID','executionContext','KEY_HOOKS_STARTED','setTrackedInstance','Cucumber\x20log\x20created\x20event','1140rvutov','parseCucumberTestResult','DmHex','unknown','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','meta','result','failed','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_SCOPES','KEY_HOOK_LAST_STARTED','getCurrentTestState','TEST','browserstackPlatformIndex','../instances/trackedInstance.js','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','hooks','testFrameworkName','KEY_HOOK_RESULT','KEY_TEST_LOCATION','util','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','NsRqN','inspect','getCurrentHookState','processPendingHooks','\x20payload=','rLEaW','../state/hookState.js','ICOhe','testFrameworkVersion','failure_reason','vukHS','KEY_TEST_ATTACHMENTS','Parsed\x20cucumber\x20test:\x20','QbBSE','createContext','646980srnRRX','getRef','getContext','753886JRAYdB','getAllData','../state/testFrameworkState.js','toISOString','../cliUtils.js','WbTzE','KmnXa','trackEvent\x20loading\x20testData\x20for\x20testId:\x20',',\x20error:\x20','failure','KEY_TEST_ENDED_AT','./constants/testFrameworkConstants.js','getCurrentInstanceName','VxcST','KEY_TEST_LOGS','readLogObjects','../instances/testFrameworkInstance.js','WKEdk','eventJson','KEY_LOGS','setTestDetails','\x20&\x20hook\x20=\x20','RbZim','kiHTy','format','KEY_EVENT_STARTED_AT','POST','KEY_HOOK_NAME','length','startedAt','hasPendingHooks','\x20&\x20hookState=','sendLogCreatedEvent','getTrackedInstance','NLQAc','fMyjQ','getInstance','file_name','getTestFrameworks',',\x20hookState:\x20','\x20\x20and\x20args\x20=\x20','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','getThreadId','getProcessId','getPendingHooks','failure_type','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','ljOQr','trackEvent','testUUID','seUhl','parseCucumberTest','error','./testFramework','Stored\x20pending\x20hook\x20for\x20testId:\x20','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','mtYpM','push','ceil','DEFAULT_TEST_RESULT','TZYek','eOkaU','1442165tLgqVe','MtbbW','pop','KEY_TEST_FAILURE_REASON','qHOSC','../grpcClient','rerun_name','finished_at',',\x20state=','trackHookEvent','\x20with\x20result:\x20','stringify','addMultipleEntries','WjUfR','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','27045LgXswh','KEY_HOOK_LAST_FINISHED','PRE','\x20testState:\x20','exports','UnhandledError','uSceR','removePendingHooks','KEY_TEST_STARTED_AT','addPendingHook','toString','from','KEY_TEST_FRAMEWORK_VERSION','matchHookRegex','\x20pending\x20hooks\x20for\x20testId:\x20','resolveInstance','platformIndex','\x20for\x20test:\x20','getTestDetails','KEY_TEST_SCOPE','hook_type','KEY_HOOK_ID','XAbOs','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','logCreatedEvent','96wygYRW','KEY_TEST_CODE','endedAt','debug','Pkhzt','code','KEY_TEST_NAME','createTestFrameworkEventPayload\x20testId:\x20','DEFAULT_HOOK_RESULT','\x20batch\x20','Error\x20in\x20createTestFrameworkEventPayload:\x20','runHooks','KEY_TEST_ID','LOG_REPORT','testFrameworkState','getTestFrameworksVersions','wRcnh','../../../helpers/helper.js','name','trackCucumberInstance','test','KEY_HOOK_FAILURE_TYPE','\x20with\x20id\x20'];a91_0x4c34=function(){return _0x3b526b;};return a91_0x4c34();}class CucumberTestFramework extends TestFramework{constructor(_0x43d01b,_0x115239,_0x279953){super(_0x43d01b,_0x115239,_0x279953);}async['trackEvent'](_0x26d5a4,_0x5386b1,_0x4b69d8={}){const _0x5c3967=a91_0x22251b,_0x41b182={};_0x41b182['QbBSE']=_0x5c3967(0x130),_0x41b182['WjUfR']=function(_0x371e80,_0x41dcd7){return _0x371e80===_0x41dcd7;},_0x41b182[_0x5c3967(0x10a)]=_0x5c3967(0x192);const _0x24ad9d=_0x41b182;await super[_0x5c3967(0x129)](_0x26d5a4,_0x5386b1,_0x4b69d8);const _0x119bda=this['resolveInstance'](_0x26d5a4,_0x5386b1,_0x4b69d8);if(!_0x119bda){logger[_0x5c3967(0x162)](_0x24ad9d[_0x5c3967(0xf4)]);return;}try{let _0x56842a,_0x2a2e03;switch(_0x26d5a4){case TestFrameworkState[_0x5c3967(0xdd)]:_0x56842a=_0x4b69d8[_0x5c3967(0x173)],_0x2a2e03=TestInfo[_0x5c3967(0x17e)](_0x56842a['id']);if(_0x24ad9d[_0x5c3967(0x144)](_0x5386b1,HookState[_0x5c3967(0x148)])){logger[_0x5c3967(0x162)](_0x5c3967(0x100)+_0x56842a['id']);const _0x7b9c79={};_0x7b9c79['testUUID']=_0x2a2e03,_0x7b9c79[_0x5c3967(0x189)]=_0x56842a,_0x119bda[_0x5c3967(0x143)](this['parseCucumberTest'](_0x7b9c79)),logger[_0x5c3967(0x162)](_0x5c3967(0xe6)+_0x56842a['id']),await this[_0x5c3967(0xea)](_0x119bda,_0x56842a['id']);}else{if(_0x24ad9d[_0x5c3967(0x144)](_0x5386b1,HookState[_0x5c3967(0x113)])){const _0x40411e={};_0x40411e['testUUID']=_0x2a2e03,_0x40411e[_0x5c3967(0x189)]=_0x56842a,_0x119bda[_0x5c3967(0x143)](this[_0x5c3967(0x1ad)](_0x40411e)),await this[_0x5c3967(0xea)](_0x119bda,_0x56842a['id']);}}break;case TestFrameworkState[_0x5c3967(0x16c)]:_0x24ad9d[_0x5c3967(0x144)](_0x5386b1,HookState[_0x5c3967(0x113)])&&await this['sendLogCreatedEvent'](_0x119bda,_0x26d5a4,_0x4b69d8);break;default:if(CLIUtils[_0x5c3967(0x153)](_0x26d5a4[_0x5c3967(0x150)]()[_0x5c3967(0x198)]('.')[0x1])){const _0x33171c=await this[_0x5c3967(0x140)](_0x119bda,_0x26d5a4,_0x5386b1,_0x4b69d8);_0x119bda[_0x5c3967(0x143)](_0x33171c);}else logger[_0x5c3967(0x162)](_0x5c3967(0x186)+_0x26d5a4+_0x5c3967(0x118)+_0x5386b1);break;}}catch(_0x407b19){logger[_0x5c3967(0x12d)](util[_0x5c3967(0x111)](_0x24ad9d[_0x5c3967(0x10a)],_0x26d5a4,_0x5386b1,_0x4b69d8[_0x5c3967(0x115)],_0x407b19));}_0x4b69d8[_0x5c3967(0x187)]=_0x119bda,await this[_0x5c3967(0x16a)](_0x119bda,_0x26d5a4,_0x5386b1,_0x4b69d8);}[a91_0x22251b(0x155)](_0x58b5ad,_0x5d675f,_0x2b4e64={}){const _0x7fac3b=a91_0x22251b,_0x516bba={};_0x516bba[_0x7fac3b(0x16f)]=function(_0x4b1610,_0x3788c0){return _0x4b1610===_0x3788c0;};const _0x4dacbb=_0x516bba;let _0x1d7dc6=null;return(_0x4dacbb[_0x7fac3b(0x16f)](_0x58b5ad,TestFrameworkState[_0x7fac3b(0x19f)])||_0x4dacbb[_0x7fac3b(0x16f)](_0x58b5ad,TestFrameworkState[_0x7fac3b(0x194)]))&&this[_0x7fac3b(0x172)](_0x58b5ad,_0x2b4e64),_0x1d7dc6=TestFramework[_0x7fac3b(0x11a)](),_0x1d7dc6;}[a91_0x22251b(0x172)](_0x51d3a5,_0x5e8119){const _0x148e68=a91_0x22251b,_0x4afe1b=CLIUtils[_0x148e68(0x105)](),_0x527284=TrackedInstance[_0x148e68(0xf5)](_0x4afe1b);let _0x511d00=null;logger[_0x148e68(0x162)](_0x148e68(0x1a4)+_0x4afe1b+_0x148e68(0x13f)+_0x51d3a5),_0x511d00=new TestFrameworkInstance(_0x527284,this[_0x148e68(0x11f)](),this[_0x148e68(0x16e)](),_0x51d3a5,HookState[_0x148e68(0x194)]),TestFramework[_0x148e68(0x1aa)](_0x527284,_0x511d00),logger['debug']('trackCucumberInstance:\x20saved\x20instance\x20contextId='+_0x527284[_0x148e68(0x178)]()+'\x20target='+_0x4afe1b);}[a91_0x22251b(0x12c)](_0x468be0){const _0xe12bed=a91_0x22251b,_0x37e48c={};_0x37e48c['seUhl']=_0xe12bed(0x15d);const _0x1073e4=_0x37e48c,{testUUID:_0x553688,testData:_0x462163}=_0x468be0;if(!_0x462163||!_0x462163[_0xe12bed(0x17d)])return logger[_0xe12bed(0x162)](_0x1073e4[_0xe12bed(0x12b)]),{};const _0x3e7b81=_0x553688,_0x2d0fdf=_0x462163[_0xe12bed(0x17d)],_0x5ca463=this[_0xe12bed(0x11f)]()[0x0],_0x17f796=this['getTestFrameworksVersions'](),_0x148f3b={[TestFrameworkConstants[_0xe12bed(0x199)]]:_0x5ca463,[TestFrameworkConstants[_0xe12bed(0x152)]]:_0x17f796[_0x5ca463],[TestFrameworkConstants[_0xe12bed(0x107)]]:[],[TestFrameworkConstants[_0xe12bed(0x19b)]]:{},[TestFrameworkConstants[_0xe12bed(0x1a9)]]:{},[TestFrameworkConstants[_0xe12bed(0x1a7)]]:_0x3e7b81,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0xe12bed(0x134)],[TestFrameworkConstants[_0xe12bed(0x1b4)]]:_0x462163['name']||'',[TestFrameworkConstants[_0xe12bed(0x181)]]:_0x462163[_0xe12bed(0x11e)]||'',[TestFrameworkConstants[_0xe12bed(0x16b)]]:_0x2d0fdf,[TestFrameworkConstants[_0xe12bed(0x165)]]:_0x462163[_0xe12bed(0x171)]||'',[TestFrameworkConstants[_0xe12bed(0xe4)]]:_0x462163['location']||'',[TestFrameworkConstants[_0xe12bed(0x160)]]:_0x462163['body']?.[_0xe12bed(0x164)]||null,[TestFrameworkConstants[_0xe12bed(0x179)]]:_0x462163[_0xe12bed(0x191)]||[],[TestFrameworkConstants[_0xe12bed(0x14e)]]:_0x462163[_0xe12bed(0x116)]||new Date()['toISOString'](),[TestFrameworkConstants[_0xe12bed(0x159)]]:_0x462163[_0xe12bed(0x183)]?.[0x0]||'',[TestFrameworkConstants[_0xe12bed(0x1b5)]]:_0x462163[_0xe12bed(0x183)]||[],[TestFrameworkConstants[_0xe12bed(0x196)]]:_0x462163['customRerunParam']?.[_0xe12bed(0x13d)]||_0x462163[_0xe12bed(0x171)]||'',[TestFrameworkConstants[_0xe12bed(0x17b)]]:{},[TestFrameworkConstants[_0xe12bed(0x188)]]:_0x462163[_0xe12bed(0x1b1)]||{}};TestInfo['setTestDetails'](_0x2d0fdf,_0x148f3b),logger[_0xe12bed(0x162)](_0xe12bed(0xf3)+_0x462163[_0xe12bed(0x171)]+_0xe12bed(0x19e)+_0x3e7b81);const _0x3b7f32={};return _0x3b7f32[_0x2d0fdf]=_0x148f3b,_0x3b7f32;}['parseCucumberTestResult'](_0x5037f5){const _0x4f2ee4=a91_0x22251b,_0x5f187c={'Pkhzt':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','rLEaW':_0x4f2ee4(0x1af),'KmnXa':function(_0x22e967,_0x88e4a0){return _0x22e967===_0x88e4a0;},'qHOSC':_0x4f2ee4(0x1b3),'RbZim':'UnhandledError','TZYek':function(_0x101924,_0x3dfe14,_0x1c8e99){return _0x101924(_0x3dfe14,_0x1c8e99);},'ljOQr':function(_0x57194d,_0x3ee978){return _0x57194d>_0x3ee978;},'NsRqN':function(_0x44400f,_0x1cc179){return _0x44400f>_0x1cc179;}},{testUUID:_0x3f7ff8,testData:_0x2ba089}=_0x5037f5;if(!_0x2ba089||!_0x2ba089[_0x4f2ee4(0x17d)])return logger[_0x4f2ee4(0x162)](_0x5f187c[_0x4f2ee4(0x163)]),{};const _0x169e1f=this[_0x4f2ee4(0x155)](TestFrameworkState[_0x4f2ee4(0xdd)],HookState[_0x4f2ee4(0x113)]),_0x2b2110=_0x2ba089[_0x4f2ee4(0x17d)],_0x36533e=TestInfo[_0x4f2ee4(0x158)](_0x2b2110)||{},_0x1d7ae8=_0x36533e?_0x36533e[TestFrameworkConstants[_0x4f2ee4(0x17b)]]||{}:{},_0x100c62={..._0x36533e,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x2ba089[_0x4f2ee4(0x1b2)]||_0x5f187c[_0x4f2ee4(0xec)],[TestFrameworkConstants[_0x4f2ee4(0x103)]]:_0x2ba089['finishedAt']||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()['toISOString'](),[TestFrameworkConstants[_0x4f2ee4(0x17b)]]:_0x1d7ae8,[TestFrameworkConstants[_0x4f2ee4(0x10c)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x2ba089[_0x4f2ee4(0x1b1)]||{}};_0x5f187c[_0x4f2ee4(0xff)](_0x2ba089[_0x4f2ee4(0x1b2)],_0x5f187c[_0x4f2ee4(0x13b)])&&_0x2ba089[_0x4f2ee4(0x102)]&&(_0x100c62[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x2ba089[_0x4f2ee4(0x126)]||_0x5f187c[_0x4f2ee4(0x10f)],_0x100c62[TestFrameworkConstants[_0x4f2ee4(0x13a)]]=_0x2ba089[_0x4f2ee4(0xf0)]||'',_0x100c62[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x2ba089[_0x4f2ee4(0x102)]);const _0x1c42cd=TestInfo[_0x4f2ee4(0x158)](_0x2b2110)[TestFrameworkConstants[_0x4f2ee4(0xf2)]]||{},_0x39716c=_0x5f187c[_0x4f2ee4(0x135)](getManualUploadLogs,_0x1c42cd,_0x169e1f[_0x4f2ee4(0xfa)]()[_0x4f2ee4(0x197)](_0x2b2110)[TestFrameworkConstants[_0x4f2ee4(0x1a7)]]);if(_0x5f187c[_0x4f2ee4(0x128)](_0x39716c['length'],0x0)){const _0x1e8743=_0x100c62[TestFrameworkConstants['KEY_LOGS']]||[];_0x100c62[TestFrameworkConstants[_0x4f2ee4(0x10c)]]=[..._0x1e8743,..._0x39716c];}_0x2ba089[_0x4f2ee4(0xe1)]&&_0x5f187c[_0x4f2ee4(0xe7)](_0x2ba089[_0x4f2ee4(0xe1)][_0x4f2ee4(0x115)],0x0)&&(_0x100c62[TestFrameworkConstants[_0x4f2ee4(0x19b)]]=_0x2ba089[_0x4f2ee4(0xe1)]);TestInfo[_0x4f2ee4(0x10d)](_0x2b2110,_0x100c62),logger[_0x4f2ee4(0x162)]('Updated\x20cucumber\x20test\x20result:\x20'+_0x2ba089[_0x4f2ee4(0x171)]+_0x4f2ee4(0x141)+_0x2ba089[_0x4f2ee4(0x1b2)]);const _0x407e60={};return _0x407e60[_0x2b2110]=_0x100c62,_0x407e60;}async[a91_0x22251b(0x140)](_0x12003c,_0x8e2648,_0x2709fd,_0x34e26e){const _0x450562=a91_0x22251b,_0x557752={'VxcST':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','qyhAB':function(_0x35c8c0){return _0x35c8c0();},'CCBRg':function(_0x312f20,_0x248454){return _0x312f20 in _0x248454;},'RFiaH':function(_0x531fa6,_0x383b96){return _0x531fa6 in _0x383b96;},'NLQAc':function(_0x13990e,_0x3a53b1){return _0x13990e===_0x3a53b1;},'kiHTy':function(_0x439aba,_0x2c3781){return _0x439aba===_0x2c3781;},'WbTzE':function(_0x181a01,_0x2ccd7f){return _0x181a01>_0x2ccd7f;},'XAbOs':'failed','uSceR':_0x450562(0x14b),'ahAQX':'passed','TJegT':function(_0x4eddfe,_0x50cdec){return _0x4eddfe!==_0x50cdec;}},{hookData:_0x3a19e3}=_0x34e26e;if(!_0x3a19e3)return logger[_0x450562(0x162)](_0x557752[_0x450562(0x106)]),{};const _0x18c1f3=_0x3a19e3['uuid']||_0x557752['qyhAB'](uuidv4),_0x3ced61=_0x3a19e3[_0x450562(0x18e)],_0x28c96a=_0x8e2648['toString']()[_0x450562(0x198)]('.')[0x1],_0x24ad88=TestInfo[_0x450562(0x158)](_0x3ced61)[TestFrameworkConstants[_0x450562(0x17b)]]||{},_0x5da69f=_0x12003c[_0x450562(0xfa)]()[_0x450562(0x197)](_0x3ced61);if(!_0x5da69f)return logger[_0x450562(0x162)](_0x450562(0x122)+_0x3ced61+_0x450562(0x19c)),this[_0x450562(0x18b)](_0x12003c,_0x3ced61,_0x8e2648,_0x2709fd,_0x34e26e),{};let _0x13dc8f=_0x5da69f[TestFrameworkConstants[_0x450562(0x1a9)]];!_0x13dc8f&&(_0x13dc8f={});!_0x557752[_0x450562(0x182)](_0x28c96a,_0x13dc8f)&&(_0x13dc8f[_0x28c96a]=[]);let _0x238c4c=_0x5da69f[TestFrameworkConstants[_0x450562(0x19b)]];!_0x238c4c&&(_0x238c4c={});!_0x557752[_0x450562(0x1a0)](_0x28c96a,_0x238c4c)&&(_0x238c4c[_0x28c96a]=[]);const _0x49833f={[TestFrameworkConstants[_0x450562(0x1a9)]]:_0x13dc8f,[TestFrameworkConstants['KEY_HOOKS_FINISHED']]:_0x238c4c},_0x580a5b={};_0x580a5b[_0x3ced61]=_0x49833f;const _0x3c8741=_0x580a5b;if(_0x557752[_0x450562(0x11b)](_0x2709fd,HookState[_0x450562(0x148)])){const _0x71549e={[TestFrameworkConstants[_0x450562(0x15b)]]:_0x18c1f3,[TestFrameworkConstants[_0x450562(0xe3)]]:TestFrameworkConstants[_0x450562(0x167)],[TestFrameworkConstants[_0x450562(0x112)]]:_0x3a19e3['started_at'],[TestFrameworkConstants[_0x450562(0x1a6)]]:[],[TestFrameworkConstants[_0x450562(0x114)]]:_0x3a19e3[_0x450562(0x15a)],[TestFrameworkConstants[_0x450562(0x17b)]]:_0x24ad88};_0x71549e['key']=_0x28c96a;const _0x3cc791=_0x71549e;_0x13dc8f[_0x28c96a][_0x450562(0x132)](_0x3cc791),_0x3c8741[_0x3ced61][TestFrameworkConstants[_0x450562(0x1b6)]]=_0x28c96a,logger['debug'](_0x450562(0x185)+_0x28c96a+_0x450562(0x10e)+_0x3cc791+_0x450562(0x121)+_0x34e26e);}else{if(_0x557752[_0x450562(0x110)](_0x2709fd,HookState[_0x450562(0x113)])){const _0x5ad33d=_0x3a19e3[_0x450562(0x1b2)],_0x352f77=_0x13dc8f[_0x28c96a]||[];logger[_0x450562(0x162)](_0x450562(0x145)+_0x352f77+'\x20and\x20args\x20=\x20'+_0x34e26e);if(_0x557752[_0x450562(0xfe)](_0x352f77[_0x450562(0x115)],0x0)){const _0x324cbb=_0x352f77[_0x450562(0x139)]();_0x557752[_0x450562(0x110)](_0x3a19e3[_0x450562(0x1b2)],_0x557752[_0x450562(0x15c)])&&_0x3a19e3[_0x450562(0x18a)]?(_0x324cbb[TestFrameworkConstants[_0x450562(0x174)]]=_0x3a19e3[_0x450562(0x126)]||_0x557752[_0x450562(0x14c)],_0x324cbb[TestFrameworkConstants['KEY_HOOK_FAILURE_REASON']]=_0x3a19e3['failure_reason']||'',_0x324cbb[TestFrameworkConstants[_0x450562(0x1a1)]]=_0x3a19e3[_0x450562(0x18a)]):_0x324cbb[TestFrameworkConstants[_0x450562(0xe3)]]=_0x557752['ahAQX'];_0x557752['TJegT'](_0x5ad33d,TestFrameworkConstants[_0x450562(0x167)])&&(_0x324cbb[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x5ad33d);_0x324cbb[TestFrameworkConstants[_0x450562(0x18f)]]=_0x3a19e3[_0x450562(0x13e)]||new Date()[_0x450562(0xfc)](),_0x324cbb[TestFrameworkConstants[_0x450562(0x17b)]]=_0x24ad88;const _0x27bc56=_0x324cbb[TestFrameworkConstants['KEY_HOOK_ID']];!_0x238c4c[_0x28c96a]&&(_0x238c4c[_0x28c96a]=[]),_0x238c4c[_0x28c96a][_0x450562(0x132)](_0x324cbb),_0x3c8741[_0x3ced61][TestFrameworkConstants[_0x450562(0x147)]]=_0x28c96a;}}}return logger[_0x450562(0x162)]('Tracked\x20cucumber\x20hook\x20event:\x20'+_0x3a19e3[_0x450562(0x15a)]+_0x450562(0x175)+_0x18c1f3+_0x450562(0x157)+_0x3ced61),_0x3c8741;}['createTestFrameworkEventPayload'](_0x29a579){const _0x58302b=a91_0x22251b,_0x4a3d28={};_0x4a3d28[_0x58302b(0x136)]=_0x58302b(0x176);const _0x5e2559=_0x4a3d28;try{const _0x14de41=_0x29a579['test']?_0x29a579[_0x58302b(0x173)]['id']:_0x29a579['hookData'][_0x58302b(0x18e)],_0x31a94e=_0x29a579[_0x58302b(0x187)],_0xfd81b5=_0x31a94e[_0x58302b(0xf8)](),_0xd56fa3=_0x31a94e[_0x58302b(0xfa)]()[_0x58302b(0x197)](_0x14de41);if(!_0xd56fa3)return logger[_0x58302b(0x162)](_0x58302b(0x127)+_0x14de41),{};logger[_0x58302b(0x162)](_0x58302b(0x166)+_0x14de41);const {[TestFrameworkConstants[_0x58302b(0x199)]]:_0x34591d='',[TestFrameworkConstants[_0x58302b(0x152)]]:_0x4a4ac1='',[TestFrameworkConstants[_0x58302b(0x14e)]]:_0x491efc='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0xc7e132=''}=_0xd56fa3,_0x191c0e=_0x31a94e[_0x58302b(0x1b7)]()[_0x58302b(0x150)]()[_0x58302b(0x198)]('.')[0x1],_0x59a020=_0x31a94e[_0x58302b(0xe9)]()[_0x58302b(0x150)]()['split']('.')[0x1],_0x3a47f4=global?.['browserstackPlatformIndex']??0x0,_0x1b0ed3=_0x31a94e[_0x58302b(0xf7)](),_0xeaf87f=Buffer[_0x58302b(0x151)](JSON[_0x58302b(0x142)](_0xd56fa3))[_0x58302b(0x150)](_0x5e2559[_0x58302b(0x136)]),_0x3711f8={'hash':_0xfd81b5[_0x58302b(0x178)](),'threadId':_0xfd81b5[_0x58302b(0x123)]()[_0x58302b(0x150)](),'processId':_0xfd81b5[_0x58302b(0x124)]()[_0x58302b(0x150)]()},_0x26d1e1={};_0x26d1e1[_0x58302b(0x156)]=_0x3a47f4,_0x26d1e1[_0x58302b(0xe2)]=_0x34591d,_0x26d1e1[_0x58302b(0xef)]=_0x4a4ac1,_0x26d1e1[_0x58302b(0x16d)]=_0x191c0e,_0x26d1e1[_0x58302b(0x1a5)]=_0x59a020,_0x26d1e1[_0x58302b(0x116)]=_0x491efc,_0x26d1e1[_0x58302b(0x161)]=_0xc7e132,_0x26d1e1['uuid']=_0x1b0ed3,_0x26d1e1[_0x58302b(0x10b)]=_0xeaf87f,_0x26d1e1[_0x58302b(0x1a8)]=_0x3711f8;const _0x5135e9=_0x26d1e1;return logger[_0x58302b(0x162)](_0x58302b(0x1b0)+_0x14de41+_0x58302b(0x149)+_0x191c0e+_0x58302b(0x1a2)+_0x59a020),_0x5135e9;}catch(_0x3612f4){return logger[_0x58302b(0x12d)](_0x58302b(0x169)+util[_0x58302b(0x111)](_0x3612f4)),{};}}async[a91_0x22251b(0x119)](_0x5d2251,_0x21c427,_0x170b79){const _0x2c4e90=a91_0x22251b,_0x277a69={'vrBkc':function(_0x3cf40e,_0x1bb78f,_0x37d097){return _0x3cf40e(_0x1bb78f,_0x37d097);},'DmHex':function(_0x4477fd,_0x3025c3){return _0x4477fd===_0x3025c3;},'ICOhe':_0x2c4e90(0x180),'toIyV':function(_0x493c4f,_0x3f738b){return _0x493c4f/_0x3f738b;},'fMyjQ':function(_0x5c35d0,_0x5bf59c){return _0x5c35d0<_0x5bf59c;},'mtYpM':function(_0x3fb1ea,_0x5267bb){return _0x3fb1ea*_0x5267bb;},'nxHOt':function(_0x1f787d,_0x535bb1){return _0x1f787d+_0x535bb1;},'kGEjV':function(_0x44c188,_0x4e2053){return _0x44c188+_0x4e2053;},'vukHS':_0x2c4e90(0x1ab)};try{const _0x44e84a=_0x170b79[_0x2c4e90(0x12a)],_0x116f77=_0x5d2251['getAllData']()[_0x2c4e90(0x197)](_0x44e84a),{[TestFrameworkConstants[_0x2c4e90(0x199)]]:_0x1cdf1b='',[TestFrameworkConstants[_0x2c4e90(0x152)]]:_0x14ac92=''}=_0x116f77,_0x807845=TestInfo[_0x2c4e90(0x108)](_0x44e84a),_0x16e284=TestInfo[_0x2c4e90(0x158)](_0x44e84a)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x2d96f2=_0x277a69[_0x2c4e90(0x184)](getMediaArtifactsLogs,_0x16e284,_0x5d2251[_0x2c4e90(0xfa)]()['get'](_0x44e84a)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x4323c=(_0x807845||[])['concat'](_0x2d96f2||[]);if(!_0x4323c||_0x277a69[_0x2c4e90(0x1ae)](_0x4323c[_0x2c4e90(0x115)],0x0)){logger[_0x2c4e90(0x162)](_0x277a69[_0x2c4e90(0xee)]);return;}const _0x485fe6=0x28,_0x2fbe10=Math[_0x2c4e90(0x133)](_0x277a69[_0x2c4e90(0x17f)](_0x4323c[_0x2c4e90(0x115)],_0x485fe6));for(let _0x1e648f=0x0;_0x277a69[_0x2c4e90(0x11c)](_0x1e648f,_0x2fbe10);_0x1e648f++){const _0x122dca=_0x277a69[_0x2c4e90(0x131)](_0x1e648f,_0x485fe6),_0xcb6385=_0x277a69[_0x2c4e90(0x19d)](_0x122dca,_0x485fe6),_0x4f7230=_0x4323c['slice'](_0x122dca,_0xcb6385),_0xf34a4f={'platformIndex':global?.[_0x2c4e90(0xde)]??0x0,'logs':_0x4f7230,'testFrameworkName':_0x1cdf1b,'testFrameworkVersion':_0x14ac92,'testFrameworkState':_0x21c427[_0x2c4e90(0x150)]()[_0x2c4e90(0x198)]('.')[0x1]};logger['debug'](_0x2c4e90(0x190)+_0x44e84a+_0x2c4e90(0x168)+_0x277a69['nxHOt'](_0x1e648f,0x1)+'/'+_0x2fbe10+_0x2c4e90(0xeb)+util[_0x2c4e90(0xe8)](_0xf34a4f));const _0x13fe94=await GrpcClient[_0x2c4e90(0x11d)]()[_0x2c4e90(0x15e)](_0xf34a4f);logger[_0x2c4e90(0x162)](_0x2c4e90(0x190)+_0x44e84a+_0x2c4e90(0x168)+_0x277a69['kGEjV'](_0x1e648f,0x1)+'/'+_0x2fbe10+_0x2c4e90(0x18d)+util[_0x2c4e90(0xe8)](_0x13fe94));}}catch(_0x10570d){logger['error'](_0x2c4e90(0x17a)+util[_0x2c4e90(0x111)](_0x10570d));}logger[_0x2c4e90(0x162)](_0x277a69[_0x2c4e90(0xf1)]);}[a91_0x22251b(0x18b)](_0x5edf9f,_0x40e7b4,_0x5843c7,_0x16d215,_0xed0a33){const _0x43270f=a91_0x22251b,_0x1085e8={'testId':_0x40e7b4,'testFrameworkState':_0x5843c7,'hookState':_0x16d215,'args':_0xed0a33,'timestamp':new Date()['toISOString']()};_0x5edf9f[_0x43270f(0x14f)](_0x40e7b4,_0x1085e8),logger['debug'](_0x43270f(0x12f)+_0x40e7b4+_0x43270f(0x17c)+_0x5843c7+_0x43270f(0x120)+_0x16d215);}async['processPendingHooks'](_0x42df49,_0x501be0){const _0xd1da25=a91_0x22251b,_0x2dbe86={};_0x2dbe86[_0xd1da25(0x138)]=function(_0x2e0c37,_0x4d9f83){return _0x2e0c37>_0x4d9f83;};const _0x459315=_0x2dbe86;if(!_0x42df49[_0xd1da25(0x117)](_0x501be0))return;const _0x53ef13=_0x42df49[_0xd1da25(0x125)](_0x501be0);logger['debug'](_0xd1da25(0x18c)+_0x53ef13[_0xd1da25(0x115)]+_0xd1da25(0x154)+_0x501be0);for(const _0x26ee90 of _0x53ef13){try{const _0x20a7e4=await this[_0xd1da25(0x140)](_0x42df49,_0x26ee90['testFrameworkState'],_0x26ee90[_0xd1da25(0x1a5)],_0x26ee90['args']);_0x20a7e4&&_0x459315[_0xd1da25(0x138)](Object['keys'](_0x20a7e4)['length'],0x0)&&_0x42df49[_0xd1da25(0x143)](_0x20a7e4),await this['runHooks'](_0x42df49,_0x26ee90['testFrameworkState'],_0x26ee90[_0xd1da25(0x1a5)],_0x26ee90['args']);}catch(_0x2a433e){logger[_0xd1da25(0x12d)](_0xd1da25(0xe0)+_0x501be0+_0xd1da25(0x101)+_0x2a433e);}}_0x42df49[_0xd1da25(0x14d)](_0x501be0),logger[_0xd1da25(0x162)]('Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20'+_0x501be0);}}module[a91_0x22251b(0x14a)]=CucumberTestFramework;