browserstack-node-sdk 1.69.0 → 1.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  42. package/src/bin/codeceptjs/command.js +1 -1
  43. package/src/bin/codeceptjs/helper.js +1 -1
  44. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  45. package/src/bin/cucumber-js/command.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  48. package/src/bin/cucumber-js/test-observability.js +1 -1
  49. package/src/bin/cucumber-js/test.setup.js +1 -1
  50. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  51. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  52. package/src/bin/detox/a11ySetup.js +1 -1
  53. package/src/bin/detox/command.js +1 -1
  54. package/src/bin/detox/modifyDetoxConf.js +1 -1
  55. package/src/bin/detox/traEmitter.js +1 -1
  56. package/src/bin/integrations/command.js +1 -1
  57. package/src/bin/integrations/constants.js +1 -1
  58. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  59. package/src/bin/jasmine/command.js +1 -1
  60. package/src/bin/jasmine/test.setup.js +1 -1
  61. package/src/bin/jasmine/testRunMap.js +1 -1
  62. package/src/bin/jest/command.js +1 -1
  63. package/src/bin/jest/customImplements/customCircus.js +1 -1
  64. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  65. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  66. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  67. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  68. package/src/bin/jest/jest.setup.js +1 -1
  69. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  70. package/src/bin/jest/test-observability/helper.js +1 -1
  71. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  72. package/src/bin/jest/test-observability/test-details.js +1 -1
  73. package/src/bin/jest/test.setup.js +1 -1
  74. package/src/bin/jest/test_before.setup.js +1 -1
  75. package/src/bin/launcher/launcher.js +1 -1
  76. package/src/bin/load/index.js +1 -1
  77. package/src/bin/load/loadErrors.js +1 -1
  78. package/src/bin/load/loadUtils.js +1 -1
  79. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  80. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  81. package/src/bin/mocha/command.js +1 -1
  82. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  83. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  84. package/src/bin/mocha/test.setup.js +1 -1
  85. package/src/bin/newman/command.js +1 -1
  86. package/src/bin/newman/helper.js +1 -1
  87. package/src/bin/newman/reporter/index.js +1 -1
  88. package/src/bin/newman/scriptRunner.js +1 -1
  89. package/src/bin/nightwatch/command.js +1 -1
  90. package/src/bin/node-generic/client.js +1 -1
  91. package/src/bin/playwright/accessibility-helper.js +1 -1
  92. package/src/bin/playwright/command.js +1 -1
  93. package/src/bin/playwright/globalSetup.js +1 -1
  94. package/src/bin/playwright/mock-process.js +1 -1
  95. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  96. package/src/bin/playwright/patches.js +1 -1
  97. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  98. package/src/bin/playwright/reporter/reporter.js +1 -1
  99. package/src/bin/playwright/reporter/test-details.js +1 -1
  100. package/src/bin/playwright/reporterArgs.js +1 -1
  101. package/src/bin/playwright/sessionDetails.js +1 -1
  102. package/src/bin/puppeteer/patches.js +1 -1
  103. package/src/bin/puppeteer/sessionDetails.js +1 -1
  104. package/src/bin/puppeteer/test.setup.js +1 -1
  105. package/src/bin/runner.js +1 -1
  106. package/src/bin/setup.js +1 -1
  107. package/src/bin/test-runner/index.js +1 -1
  108. package/src/bin/test-runner/runTest.js +1 -1
  109. package/src/bin/test-runner/testWorker.js +1 -1
  110. package/src/bin/testcafe/a11y-runner.js +1 -1
  111. package/src/bin/testcafe/command.js +1 -1
  112. package/src/bin/testcafe/reporter/index.js +1 -1
  113. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  114. package/src/bin/testcafe/session-registry.js +1 -1
  115. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  116. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  117. package/src/bin/testcafe/w3c-driver.js +1 -1
  118. package/src/bin/utils/apiUtilityMethods.js +1 -1
  119. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  120. package/src/bin/utils/constants.js +1 -1
  121. package/src/bin/utils/log4jsAppender.js +1 -1
  122. package/src/bin/utils/logPatcher.js +1 -1
  123. package/src/bin/utils/logReportingAPI.js +1 -1
  124. package/src/bin/utils/playwright-patcher.js +1 -1
  125. package/src/bin/utils/puppeteer-patcher.js +1 -1
  126. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  127. package/src/bin/utils/sharedUtils.js +1 -1
  128. package/src/bin/v2/TestInfo.js +1 -1
  129. package/src/bin/v2/browserstackCLI.js +1 -1
  130. package/src/bin/v2/cliUtils.js +1 -1
  131. package/src/bin/v2/customTagManager.js +1 -1
  132. package/src/bin/v2/eventDispatcher.js +1 -1
  133. package/src/bin/v2/framework/automationFramework.js +1 -1
  134. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  135. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  136. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  137. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  138. package/src/bin/v2/framework/mochaTestFramework.js +1 -1
  139. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  140. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  141. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  142. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  143. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  144. package/src/bin/v2/framework/seleniumAutomationFramework.js +1 -1
  145. package/src/bin/v2/framework/testFramework.js +1 -1
  146. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  147. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  148. package/src/bin/v2/grpcClient.js +1 -1
  149. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  150. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  151. package/src/bin/v2/instances/trackedContext.js +1 -1
  152. package/src/bin/v2/instances/trackedInstance.js +1 -1
  153. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  154. package/src/bin/v2/modules/baseModule.js +1 -1
  155. package/src/bin/v2/modules/loadTestModule.js +1 -1
  156. package/src/bin/v2/modules/observabilityModule.js +1 -1
  157. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  158. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  159. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  160. package/src/bin/v2/modules/testhubModule.js +1 -1
  161. package/src/bin/v2/runStateStore.js +1 -1
  162. package/src/bin/v2/sdkErrorHandler.js +1 -1
  163. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  164. package/src/bin/v2/state/hookState.js +1 -1
  165. package/src/bin/v2/state/testFrameworkState.js +1 -1
  166. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  167. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  168. package/src/bin/v2/utils/jest-utils.js +1 -1
  169. package/src/bin/vanilla-js/command.js +1 -1
  170. package/src/browserStackSdk.js +1 -1
  171. package/src/helpers/BrowserStackSetup.js +1 -1
  172. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  173. package/src/helpers/accessibility-automation/constants.js +1 -1
  174. package/src/helpers/accessibility-automation/helper.js +1 -1
  175. package/src/helpers/accessibility-automation/scripts.js +1 -1
  176. package/src/helpers/ats/constants.js +1 -1
  177. package/src/helpers/ats/helper.js +1 -1
  178. package/src/helpers/caCertHelper.js +1 -1
  179. package/src/helpers/capsMapping.js +1 -1
  180. package/src/helpers/central-scanner/constants.js +1 -1
  181. package/src/helpers/central-scanner/helpers.js +1 -1
  182. package/src/helpers/classLogger.js +1 -1
  183. package/src/helpers/driverInitErrorReporter.js +1 -1
  184. package/src/helpers/globals.js +1 -1
  185. package/src/helpers/helper.js +1 -1
  186. package/src/helpers/logger.js +1 -1
  187. package/src/helpers/metadata.js +1 -1
  188. package/src/helpers/patchHelper.js +1 -1
  189. package/src/helpers/patchHelpers.js +1 -1
  190. package/src/helpers/percy/Percy.js +1 -1
  191. package/src/helpers/percy/PercyBinary.js +1 -1
  192. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  193. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  194. package/src/helpers/percy/PercySDK.js +1 -1
  195. package/src/helpers/percy/index.js +1 -1
  196. package/src/helpers/percy/utils.js +1 -1
  197. package/src/helpers/performance/constants.js +1 -1
  198. package/src/helpers/performance/performance-tester.js +1 -1
  199. package/src/helpers/playwright-helper.js +1 -1
  200. package/src/helpers/processHelper.js +1 -1
  201. package/src/helpers/puppeteer-helper.js +1 -1
  202. package/src/helpers/request-spy.js +1 -1
  203. package/src/helpers/setKeepAlive.js +1 -1
  204. package/src/helpers/stackFrameUtils.js +1 -1
  205. package/src/helpers/test-observability/constants.js +1 -1
  206. package/src/helpers/test-observability/error-handler.js +1 -1
  207. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  208. package/src/helpers/test-observability/sessionHandler.js +1 -1
  209. package/src/helpers/test-observability/utils.js +1 -1
  210. package/src/helpers/test-orchestration/constants.js +1 -1
  211. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  212. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  213. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  214. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  215. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  216. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  217. package/src/helpers/testhub/constants.js +1 -1
  218. package/src/helpers/testhub/testhubHandler.js +1 -1
  219. package/src/helpers/testhub/utils.js +1 -1
  220. package/src/helpers/utilities.js +1 -1
  221. package/src/helpers/w3cMapping.js +1 -1
  222. package/src/hubAllocationMethods.js +1 -1
  223. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a89_0x92ccaf=a89_0x57e0;function a89_0xed1b(){const _0x1f4ab0=['CLIUtils','downloadLatestBinary','follow-redirects','VHVLd','testFrameworkDetail','Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','parse','join','.tmp.','684050llEYwZ','SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20','preserveStatusCodeOnError','statSync','IybHH','resume','BHETR','NUVNh','KvpiK','SDK_CLI_DOWNLOAD','entries','shouldSkipSessionName','sBMqM','object','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','../../helpers/helper','1614tvnDdy','iDUWt','eVjjs','ZjAMT','gqzmf','TLXcb','qozXR','code','LwPnk','KmdIi','OJXEY','skxBv','pipe','trim','ARMlr','CLI\x20version\x20found\x20despite\x20error:\x20\x22','platform','yauzl','BCkxX','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','aFhqF','checkAndUpdateCli','ocjEO','.browserstack','WdeMP','format','./instances/testFrameworkInstance.js','statusCode','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','pJQhy','SkWrb','Folder\x20does\x20not\x20exist:\x20','start','QVmwS','uaTWf','url','pid','runShellCommand','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','gaCRZ','homedir','getExistingCliPath','PcXNG','yvcAL','9ryMtmN','isBinaryBusy','downloaded_file_','../../helpers/test-observability/utils.js','BROWSERSTACK_FILES_DIR','gCByf','UKKww','open','Kylvw','createWriteStream','1|3|2|4|0','Resolved\x20binary\x20path:\x20','2lOwprU','testContextOptions','hEPRW','yabtH','pnFow','xVyka','cwd','reduce','binary-','once','message','heIQD','./state/hookState.js','bpJPS','532824fetrpI','DOWNLOAD_HTTP','test','response\x20','1122447FyDOXs','zrQvT','.sock','Xncsg','mtime','yuUjs','HOOK_REGEX','5095zjcWxT','debug','GET','epLlN','unix:/tmp/sdk-platform-','./state/automationFrameworkState.js','close','existsSync','cBZmK','MZZPo','DbDbs','shouldSkipSessionStatus','Folder\x20','0755','unlink','kNqzc','cli','stringify','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','YsTnJ','BJMsU','sdHvd','isArray','openSync','uhztg','data','NNSZf','./state/testFrameworkState.js','concat','EhWmG','Downloading\x20SDK\x20binary\x20from:\x20','yshIX','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','Failed\x20to\x20download\x20SDK\x20binary:\x20%s','end','OLbkM','ghGWU','info','Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20','yTrWI','xaTeo','includes','ElyTX','../utils/constants','mJBsj','Wcejd','RdPhp','Setting\x20required\x20permissions\x20to\x20','requestToUpdateCLI','ucYmT','NLVxa','gXOSP','\x20from\x20','.zip','../../helpers/utilities','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','445280IxjhIc','getCurrentInstanceName','AMEYv','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','lazyEntries','rsExg','../../../package.json','downloadFileStream','child_process','entry','getSdkVersion','filter','cli_version','listen','version','isFile','wvFTd','Binary\x20is\x20busy:\x20','development','Resolving\x20with\x20stdout:\x20\x22','PagiQ','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','readEntry','BROWSERSTACK_BINARY_URL','basename','YmkWE','../../helpers/performance/performance-tester.js','kfSxN','setFrameworkDetail','CYouh','openReadStream','mergeObject','env','MgFZd','KSjFk','getSdkLanguage','Current\x20CLI\x20Path\x20Found:\x20','./framework/constants/testFrameworkConstants.js','warn','SDK_CLI_CHECK_UPDATE','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','EXDEV','NeFXv','automationFrameworkDetail','getTestFrameworkDetail','2034347ZuRBEG','YQtVn','setupCliPath','sdKdF','getWritableDir','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','rename','HxRdr','timeout','ekaov','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','QFSzc','closeSync','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','filePath','fileName','BROWSERSTACK_CLI_ENV','exports','error','Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20','bERoz','getAutomationFrameworkDetail','path','getCliDir','worker_threads','\x20version','DjnNQ','331571RUkIko',',\x20automationFramework=','Failed\x20to\x20delete\x20zip\x20file:\x20','ohGOP','startsWith','getHookRegistryKey','util','map'];a89_0xed1b=function(){return _0x1f4ab0;};return a89_0xed1b();}function a89_0x57e0(_0x258eb1,_0x4cc9fa){const _0xed1b2f=a89_0xed1b();return a89_0x57e0=function(_0x57e03e,_0x377168){_0x57e03e=_0x57e03e-0xf5;let _0x17c6e0=_0xed1b2f[_0x57e03e];return _0x17c6e0;},a89_0x57e0(_0x258eb1,_0x4cc9fa);}(function(_0x38b698,_0x434afa){const _0xed75d5=a89_0x57e0,_0xe6b544=_0x38b698();while(!![]){try{const _0x4e8f93=-parseInt(_0xed75d5(0x15e))/0x1+-parseInt(_0xed75d5(0x1b7))/0x2*(-parseInt(_0xed75d5(0x1c9))/0x3)+parseInt(_0xed75d5(0x1c5))/0x4+parseInt(_0xed75d5(0x1d0))/0x5*(-parseInt(_0xed75d5(0x17f))/0x6)+parseInt(_0xed75d5(0x143))/0x7+-parseInt(_0xed75d5(0x116))/0x8*(parseInt(_0xed75d5(0x1ab))/0x9)+parseInt(_0xed75d5(0x16f))/0xa;if(_0x4e8f93===_0x434afa)break;else _0xe6b544['push'](_0xe6b544['shift']());}catch(_0x5344a6){_0xe6b544['push'](_0xe6b544['shift']());}}}(a89_0xed1b,0x320ef));const fs=require('fs'),os=require('os'),url=require('url'),path=require(a89_0x92ccaf(0x159)),{exec}=require(a89_0x92ccaf(0x11e)),{https}=require(a89_0x92ccaf(0x168)),yauzl=require(a89_0x92ccaf(0x190)),util=require(a89_0x92ccaf(0x164)),{getFrameworkVersion}=require(a89_0x92ccaf(0x1ae)),{threadId}=require(a89_0x92ccaf(0x15b)),PerformanceTester=require(a89_0x92ccaf(0x130)),{EVENTS:PerformanceEvents}=require('../../helpers/performance/constants'),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a89_0x92ccaf(0x114)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a89_0x92ccaf(0x17e)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a89_0x92ccaf(0x109)),{createClassLogger}=require('../../helpers/classLogger.js'),TestFrameworkInstance=require(a89_0x92ccaf(0x199)),HookState=require(a89_0x92ccaf(0x1c3)),TestFrameworkState=require(a89_0x92ccaf(0xf9)),AutomationFrameworkState=require(a89_0x92ccaf(0x1d5)),TestFrameworkConstants=require(a89_0x92ccaf(0x13b)),logger=createClassLogger(a89_0x92ccaf(0x166)),{getBStackAPIUrl}=require('../utils/apiUtilityMethods.js');class CLIUtils{[a89_0x92ccaf(0x141)]={};[a89_0x92ccaf(0x16a)]={};static['isDevelopmentEnv'](){const _0x5aaca7=a89_0x92ccaf,_0x4bb73c={};_0x4bb73c[_0x5aaca7(0xfb)]=function(_0x2bff6a,_0x1eca4f){return _0x2bff6a===_0x1eca4f;},_0x4bb73c['pqLlL']=_0x5aaca7(0x128);const _0x4753a9=_0x4bb73c;return _0x4753a9[_0x5aaca7(0xfb)](process[_0x5aaca7(0x136)][_0x5aaca7(0x153)],_0x4753a9['pqLlL']);}static['getCLIParamsForDevEnv'](){const _0x7cd1c2=a89_0x92ccaf,_0x4a68a9={};return _0x4a68a9['id']=process[_0x7cd1c2(0x136)][_0x7cd1c2(0x153)],_0x4a68a9[_0x7cd1c2(0x123)]=_0x7cd1c2(0x1d4)+process[_0x7cd1c2(0x136)][_0x7cd1c2(0x153)]+_0x7cd1c2(0x1cb),_0x4a68a9;}static['getSdkVersion'](){const _0x263607=a89_0x92ccaf,_0x117b13={'sdKdF':function(_0x2f9bc6,_0x11754e){return _0x2f9bc6(_0x11754e);},'hJCkB':_0x263607(0x11c)};return _0x117b13[_0x263607(0x146)](require,_0x117b13['hJCkB'])[_0x263607(0x124)];}static['getSdkLanguage'](){const _0x21f6e1=a89_0x92ccaf,_0x2e755a={};_0x2e755a[_0x21f6e1(0x1a9)]='node';const _0xda9ba=_0x2e755a;return _0xda9ba[_0x21f6e1(0x1a9)];}static async[a89_0x92ccaf(0x145)](_0x5a8c5c){const _0x5f3d39=a89_0x92ccaf,_0x1c437d={'ARMlr':'Configuring\x20Cli\x20path.','kNqzc':function(_0x1672e1,_0x4408ec){return _0x1672e1(_0x4408ec);},'pnFow':_0x5f3d39(0x115)};logger[_0x5f3d39(0x1d1)](_0x1c437d[_0x5f3d39(0x18d)]);const _0x17fe3e=process[_0x5f3d39(0x136)]['SDK_CLI_BIN_PATH'];if(!_0x1c437d[_0x5f3d39(0x1df)](isNullOrEmpty,_0x17fe3e))return logger[_0x5f3d39(0x1d1)]('Development\x20Cli\x20Path:\x20'+_0x17fe3e),_0x17fe3e;try{const _0x31162f=this[_0x5f3d39(0x15a)]();if(_0x1c437d[_0x5f3d39(0x1df)](isNullOrEmpty,_0x31162f))throw new Error(_0x1c437d[_0x5f3d39(0x1bb)]);const _0xfce1b1=this[_0x5f3d39(0x1a8)](_0x31162f),_0x4452e6=await this[_0x5f3d39(0x194)](_0xfce1b1,_0x31162f,_0x5a8c5c);return logger[_0x5f3d39(0x1d1)](_0x5f3d39(0x1b6)+_0x4452e6),_0x4452e6;}catch(_0x546659){logger[_0x5f3d39(0x1d1)](_0x5f3d39(0xfe)+util[_0x5f3d39(0x198)](_0x546659));}return null;}static async[a89_0x92ccaf(0x194)](_0xe7025c,_0x486c34,_0x5b39f0){const _0x28d23d=a89_0x92ccaf,_0x99b9ad={'LwPnk':function(_0x36a572){return _0x36a572();},'aHJHV':function(_0x73b6bb,_0x412933){return _0x73b6bb(_0x412933);},'qozXR':function(_0x10e4bf,_0x22b6ad,_0x2255da){return _0x10e4bf(_0x22b6ad,_0x2255da);},'uhztg':'data','YmkWE':_0x28d23d(0x1a2)};PerformanceTester[_0x28d23d(0x19f)](PerformanceEvents[_0x28d23d(0x13d)]);try{logger[_0x28d23d(0x103)](_0x28d23d(0x13a)+_0xe7025c);const _0x3f6edf=_0x99b9ad[_0x28d23d(0x187)](getHostInfo),_0x4c8df6={'sdk_version':CLIUtils[_0x28d23d(0x120)](),'os':_0x3f6edf[_0x28d23d(0x18f)],'os_arch':_0x3f6edf['arch'],'cli_version':'0','sdk_language':this[_0x28d23d(0x139)]()};!_0x99b9ad['aHJHV'](isNullOrEmpty,_0xe7025c)&&(_0x4c8df6[_0x28d23d(0x122)]=await this[_0x28d23d(0x1a4)](_0xe7025c+_0x28d23d(0x15c)));const _0x177b34=await this[_0x28d23d(0x10e)](_0x4c8df6,_0x5b39f0);process['env'][_0x28d23d(0x12d)]&&(logger['info']('Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20'+process[_0x28d23d(0x136)][_0x28d23d(0x12d)]),_0x177b34[_0x28d23d(0xf7)][_0x28d23d(0x1a2)]=process[_0x28d23d(0x136)][_0x28d23d(0x12d)]);if(_0x99b9ad['qozXR'](nestedKeyValue,_0x177b34,[_0x99b9ad['uhztg'],_0x99b9ad['YmkWE']])){logger[_0x28d23d(0x1d1)](_0x28d23d(0x19b)+_0x4c8df6['cli_version']);if(!_0x99b9ad['aHJHV'](isNullOrEmpty,_0xe7025c)&&this[_0x28d23d(0x1ac)](_0xe7025c))return logger[_0x28d23d(0x13c)]('Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20'+_0xe7025c),_0xe7025c;return await this['downloadLatestBinary'](_0x99b9ad[_0x28d23d(0x185)](nestedKeyValue,_0x177b34,[_0x99b9ad[_0x28d23d(0xf6)],_0x99b9ad[_0x28d23d(0x12f)]]),_0x486c34);}return _0xe7025c;}finally{PerformanceTester['end'](PerformanceEvents[_0x28d23d(0x13d)]);}}static[a89_0x92ccaf(0x15a)](){const _0x56e392=a89_0x92ccaf,_0x33f660={'TZXvv':function(_0x215822,_0x222758){return _0x215822(_0x222758);},'yshIX':'No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','HxRdr':_0x56e392(0x1e0)},_0x25fe47=this[_0x56e392(0x147)]();try{if(_0x33f660['TZXvv'](isNullOrEmpty,_0x25fe47))throw new Error(_0x33f660[_0x56e392(0xfd)]);const _0x409edc=path[_0x56e392(0x16d)](_0x25fe47,_0x33f660[_0x56e392(0x14a)]);return!fs[_0x56e392(0x1d7)](_0x409edc)&&_0x33f660['TZXvv'](createDir,_0x409edc),_0x409edc;}catch(_0x28d6e9){logger[_0x56e392(0x1d1)](_0x56e392(0x119)+util['format'](_0x28d6e9));}}static[a89_0x92ccaf(0x147)](){const _0x1e71bc=a89_0x92ccaf,_0x225efd={'QFSzc':_0x1e71bc(0x196),'gXOSP':function(_0x14a882,_0x2a760c){return _0x14a882(_0x2a760c);},'ghGWU':function(_0x40c00f,_0x54c96e){return _0x40c00f(_0x54c96e);},'JEjrI':function(_0x293c32,_0x598b1a){return _0x293c32(_0x598b1a);},'skxBv':function(_0xffdc26,_0x107c56){return _0xffdc26(_0x107c56);},'wvFTd':function(_0x25fb3d,_0x63d0a3){return _0x25fb3d(_0x63d0a3);},'NUVNh':function(_0x13c4e5,_0x4704a2){return _0x13c4e5(_0x4704a2);}},_0x25d995=[process[_0x1e71bc(0x136)][_0x1e71bc(0x1af)],path[_0x1e71bc(0x16d)](os[_0x1e71bc(0x1a7)](),_0x225efd[_0x1e71bc(0x14e)]),path[_0x1e71bc(0x16d)](os['tmpdir'](),_0x225efd[_0x1e71bc(0x14e)])];for(const _0x410310 of _0x25d995){if(_0x225efd[_0x1e71bc(0x111)](isNullOrEmpty,_0x410310))continue;try{if(fs['existsSync'](_0x410310)){logger[_0x1e71bc(0x1d1)](_0x1e71bc(0x1dc)+_0x410310+'\x20already\x20exists');if(!_0x225efd[_0x1e71bc(0x102)](isModifiable,_0x410310)){logger[_0x1e71bc(0x1d1)](_0x1e71bc(0x10d)+_0x410310);const _0x5a25d1=_0x225efd['JEjrI'](setReadWriteExecuteAccess,_0x410310);if(!_0x225efd[_0x1e71bc(0x111)](isTrue,_0x5a25d1)){logger[_0x1e71bc(0x13c)](_0x1e71bc(0x150)+_0x410310);continue;}}}else{logger[_0x1e71bc(0x1d1)](_0x1e71bc(0x19e)+_0x410310),_0x225efd[_0x1e71bc(0x18a)](createDir,_0x410310),logger['debug'](_0x1e71bc(0x10d)+_0x410310);const _0x3dad89=_0x225efd[_0x1e71bc(0x126)](setReadWriteExecuteAccess,_0x410310);!_0x225efd[_0x1e71bc(0x176)](isTrue,_0x3dad89)&&logger[_0x1e71bc(0x13c)](_0x1e71bc(0x150)+_0x410310);}return _0x410310;}catch(_0x3e073f){logger['error'](_0x1e71bc(0x156)+util[_0x1e71bc(0x198)](_0x3e073f));}}return null;}static[a89_0x92ccaf(0x1a8)](_0x4673b8){const _0x3c0d6d=a89_0x92ccaf,_0x1d342d={};_0x1d342d[_0x3c0d6d(0x105)]=function(_0x5a6872,_0x4ea8ce){return _0x5a6872>_0x4ea8ce;},_0x1d342d['EFLVh']=function(_0x36596f,_0x7dacbd){return _0x36596f>_0x7dacbd;};const _0x55e68a=_0x1d342d;try{if(!fs[_0x3c0d6d(0x1d7)](_0x4673b8)||!fs[_0x3c0d6d(0x172)](_0x4673b8)['isDirectory']())return'';const _0x26b858=fs['readdirSync'](_0x4673b8)[_0x3c0d6d(0x165)](_0xdf1f07=>path[_0x3c0d6d(0x16d)](_0x4673b8,_0xdf1f07))[_0x3c0d6d(0x121)](_0x1f889f=>fs['statSync'](_0x1f889f)[_0x3c0d6d(0x125)]()&&path[_0x3c0d6d(0x12e)](_0x1f889f)[_0x3c0d6d(0x162)](_0x3c0d6d(0x1bf)));if(_0x55e68a['EFLVh'](_0x26b858['length'],0x0)){const _0x381930=_0x26b858[_0x3c0d6d(0x165)](_0x3012ca=>({'filePath':_0x3012ca,'mtime':fs[_0x3c0d6d(0x172)](_0x3012ca)['mtime']}))[_0x3c0d6d(0x1be)]((_0xab538c,_0x3c012b)=>{const _0x27393d=_0x3c0d6d;if(!_0xab538c||!_0xab538c[_0x27393d(0x1cd)])return _0x3c012b;if(_0x55e68a['yTrWI'](_0x3c012b[_0x27393d(0x1cd)],_0xab538c[_0x27393d(0x1cd)]))return _0x3c012b;return _0xab538c;},{});return _0x381930?_0x381930[_0x3c0d6d(0x151)]:'';}return'';}catch(_0x4d28d0){return logger[_0x3c0d6d(0x155)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x3c0d6d(0x198)](_0x4d28d0)),'';}}static [a89_0x92ccaf(0x10e)]=async(_0x41d355,_0x18fba3)=>{const _0x2c9153=a89_0x92ccaf,_0x1851f2={'FKQIy':function(_0x5f243f,_0x42b15d,_0x21df19,_0x340c3a,_0x31a8dc){return _0x5f243f(_0x42b15d,_0x21df19,_0x340c3a,_0x31a8dc);},'WdeMP':_0x2c9153(0x1d2)},_0x34bbee={};_0x34bbee['qs']=_0x41d355,_0x34bbee[_0x2c9153(0x171)]=!![];const _0x4827f4=await _0x1851f2['FKQIy'](nodeRequest,_0x1851f2[_0x2c9153(0x197)],UPDATED_CLI_ENDPOINT,_0x34bbee,_0x18fba3);return logger[_0x2c9153(0x1d1)](_0x2c9153(0x1c8)+JSON[_0x2c9153(0x1e1)](_0x4827f4)),_0x4827f4;};static[a89_0x92ccaf(0x1ac)](_0x370941){const _0x1a5482=a89_0x92ccaf;try{const _0x39b60a=fs[_0x1a5482(0xf5)](_0x370941,'r+');return fs[_0x1a5482(0x14f)](_0x39b60a),![];}catch(_0x17d569){if(BINARY_BUSY_ERROR_CODES[_0x1a5482(0x107)](_0x17d569[_0x1a5482(0x186)]))return logger['debug'](_0x1a5482(0x127)+_0x370941),!![];return logger[_0x1a5482(0x1d1)](_0x1a5482(0x1e2)+_0x17d569[_0x1a5482(0x1c1)]),![];}}static[a89_0x92ccaf(0x1a4)](_0x2608d8,_0x4995e=''){const _0x3f3fcd=a89_0x92ccaf,_0x4be114={'VHVLd':'version','xaTeo':function(_0x2956eb,_0x34bf1b){return _0x2956eb(_0x34bf1b);},'SkWrb':function(_0x494cc4,_0x2893fb){return _0x494cc4(_0x2893fb);},'MgFZd':'SHELL_EXECUTE_ERROR','KmdIi':function(_0x3cf7ef,_0x27b549){return _0x3cf7ef(_0x27b549);},'sBMqM':function(_0x2f9b14,_0x137857,_0x427de5,_0x375d3e){return _0x2f9b14(_0x137857,_0x427de5,_0x375d3e);},'QVmwS':_0x3f3fcd(0x155)};return new Promise((_0x58e31f,_0x481ec8)=>{const _0x4a4ce2=_0x3f3fcd,_0x2590b3={'sdHvd':function(_0x3bd13f,_0x41dd68){const _0x8865ac=a89_0x57e0;return _0x4be114[_0x8865ac(0x188)](_0x3bd13f,_0x41dd68);},'KvpiK':_0x4be114[_0x4a4ce2(0x137)]},_0x4f7148={};_0x4f7148[_0x4a4ce2(0x1bd)]=_0x4995e,_0x4f7148[_0x4a4ce2(0x14b)]=0x1388;const _0x10f94a=_0x4be114[_0x4a4ce2(0x17b)](exec,_0x2608d8,_0x4f7148,(_0x177273,_0x5c6c7d,_0x4b7a80)=>{const _0xde6da9=_0x4a4ce2;if(_0x177273){if(_0x2608d8['includes'](_0x4be114[_0xde6da9(0x169)])&&(_0x5c6c7d['trim']()||_0x4b7a80['trim']())){const _0x4589d0=_0x5c6c7d['trim']()||_0x4b7a80['trim']();logger[_0xde6da9(0x1d1)](_0xde6da9(0x18e)+_0x4589d0+'\x22'),_0x4be114['xaTeo'](_0x58e31f,_0x4589d0);}else _0x4be114[_0xde6da9(0x19d)](_0x58e31f,_0x4b7a80[_0xde6da9(0x18c)]()||_0x4be114[_0xde6da9(0x137)]);}else logger[_0xde6da9(0x1d1)](_0xde6da9(0x129)+_0x5c6c7d[_0xde6da9(0x18c)]()+'\x22'),_0x4be114[_0xde6da9(0x106)](_0x58e31f,_0x5c6c7d[_0xde6da9(0x18c)]());});_0x10f94a['on'](_0x4be114[_0x4a4ce2(0x1a0)],()=>{const _0x1ae4d1=_0x4a4ce2;_0x2590b3[_0x1ae4d1(0x1e5)](_0x58e31f,_0x2590b3[_0x1ae4d1(0x177)]);});});}static [a89_0x92ccaf(0x167)]=async(_0x265e97,_0x591243)=>{const _0xc9a494=a89_0x92ccaf,_0x106f57={'heIQD':_0xc9a494(0x192),'YQtVn':function(_0x13db0b,_0xe1afcd){return _0x13db0b(_0xe1afcd);},'bpJPS':function(_0x2ff4f6,_0x35f0ee){return _0x2ff4f6>=_0x35f0ee;},'zXaeD':_0xc9a494(0x1c6),'vwced':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','IybHH':_0xc9a494(0x155),'yabtH':_0xc9a494(0x16b),'DjnNQ':_0xc9a494(0xff)};PerformanceTester['start'](PerformanceEvents[_0xc9a494(0x178)]),logger['debug'](_0xc9a494(0xfc)+_0x265e97);try{const _0x5cc012=url['parse'](_0x265e97),_0x626e77=path[_0xc9a494(0x16d)](_0x591243,_0xc9a494(0x1ad)+process[_0xc9a494(0x1a3)]+_0xc9a494(0x113)),_0x5798ae=fs[_0xc9a494(0x1b4)](_0x626e77);return new Promise((_0x24431c,_0x21ad19)=>{const _0x5925d1=_0xc9a494,_0x380a1b={'rsExg':_0x106f57[_0x5925d1(0x1ba)],'Xncsg':function(_0x443a68,_0x545614){const _0x5aaca6=_0x5925d1;return _0x106f57[_0x5aaca6(0x144)](_0x443a68,_0x545614);}};https['get'](_0x5cc012,function(_0x3e4fe4){const _0x53284b=_0x5925d1,_0x51a979={'OJXEY':_0x106f57[_0x53284b(0x1c2)],'PagiQ':function(_0x2e9591,_0x3422e8){const _0x65e083=_0x53284b;return _0x106f57[_0x65e083(0x144)](_0x2e9591,_0x3422e8);},'YsTnJ':function(_0x3ac3d6,_0x43a775){const _0x287c7d=_0x53284b;return _0x106f57[_0x287c7d(0x144)](_0x3ac3d6,_0x43a775);}},_0x3d062a=null;if(_0x3e4fe4[_0x53284b(0x19a)]&&_0x106f57[_0x53284b(0x1c4)](_0x3e4fe4[_0x53284b(0x19a)],0x190)){const _0x1a294c=new Error(_0x53284b(0x170)+_0x3e4fe4[_0x53284b(0x19a)]+_0x53284b(0x112)+_0x265e97);_0x1a294c['code']=_0x106f57['zXaeD'],_0x1a294c[_0x53284b(0x19a)]=_0x3e4fe4['statusCode'],logger['error'](util[_0x53284b(0x198)](_0x106f57['vwced'],_0x3e4fe4[_0x53284b(0x19a)])),PerformanceTester[_0x53284b(0x100)](PerformanceEvents[_0x53284b(0x178)],![],'HTTP\x20'+_0x3e4fe4[_0x53284b(0x19a)]),_0x3e4fe4[_0x53284b(0x174)](),_0x5798ae['destroy'](),fs['unlink'](_0x626e77,()=>{}),_0x106f57[_0x53284b(0x144)](_0x21ad19,_0x1a294c);return;}_0x3e4fe4[_0x53284b(0x18b)](_0x5798ae),_0x3e4fe4['on'](_0x106f57[_0x53284b(0x173)],function(_0x54fa39){const _0x25b8a9=_0x53284b;logger[_0x25b8a9(0x155)](util['format'](_0x380a1b[_0x25b8a9(0x11b)],_0x54fa39)),PerformanceTester['end'](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x25b8a9(0x198)](_0x54fa39)),_0x380a1b['Xncsg'](_0x21ad19,_0x54fa39);}),_0x5798ae['on'](_0x106f57[_0x53284b(0x173)],function(_0x114c1d){const _0x203def=_0x53284b;logger[_0x203def(0x155)](util[_0x203def(0x198)](_0x51a979[_0x203def(0x189)],_0x114c1d)),PerformanceTester[_0x203def(0x100)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x203def(0x198)](_0x114c1d)),_0x51a979[_0x203def(0x12a)](_0x21ad19,_0x114c1d);}),CLIUtils[_0x53284b(0x11d)](_0x5798ae,_0x3d062a,_0x626e77,_0x591243,_0xf95b0f=>{const _0x2e1b14=_0x53284b;PerformanceTester[_0x2e1b14(0x100)](PerformanceEvents[_0x2e1b14(0x178)]),_0x51a979[_0x2e1b14(0x1e3)](_0x24431c,_0xf95b0f);},_0x53c65d=>{const _0x201f9b=_0x53284b;PerformanceTester[_0x201f9b(0x100)](PerformanceEvents[_0x201f9b(0x178)],![],util[_0x201f9b(0x198)](_0x53c65d)),_0x380a1b[_0x201f9b(0x1cc)](_0x21ad19,_0x53c65d);});})['on'](_0x106f57[_0x5925d1(0x173)],function(_0x326a81){const _0xdacd2c=_0x5925d1;logger[_0xdacd2c(0x155)](_0xdacd2c(0x104)+util[_0xdacd2c(0x198)](_0x326a81)),PerformanceTester[_0xdacd2c(0x100)](PerformanceEvents[_0xdacd2c(0x178)],![],util[_0xdacd2c(0x198)](_0x326a81)),_0x106f57['YQtVn'](_0x21ad19,_0x326a81);});});}catch(_0x395b56){PerformanceTester[_0xc9a494(0x100)](PerformanceEvents[_0xc9a494(0x178)],![],util[_0xc9a494(0x198)](_0x395b56)),logger[_0xc9a494(0x155)](util['format'](_0x106f57[_0xc9a494(0x15d)],_0x395b56));throw _0x395b56;}};static[a89_0x92ccaf(0x11d)](_0x104dcd,_0x4136a3,_0x4936f9,_0x451bc1,_0x4f1717,_0x252457){const _0x28bba9=a89_0x92ccaf,_0x397227={'Wcejd':function(_0x4314b8,_0x4cb9d1){return _0x4314b8(_0x4cb9d1);},'NLVxa':_0x28bba9(0x1d6),'gryXS':_0x28bba9(0x100),'RlHba':function(_0x26f8f9,_0xbf8f1a){return _0x26f8f9!==_0xbf8f1a;},'bERoz':'error','CYouh':_0x28bba9(0x13f),'mJBsj':_0x28bba9(0x1dd),'aFhqF':_0x28bba9(0x11f)};_0x104dcd['on'](_0x397227['NLVxa'],function(){const _0x1bfd7d=_0x28bba9,_0x283ad4={'pJQhy':function(_0x2a7c12,_0x1885b6){const _0x4c3482=a89_0x57e0;return _0x397227[_0x4c3482(0x10b)](_0x2a7c12,_0x1885b6);},'yuUjs':_0x397227[_0x1bfd7d(0x110)],'cBZmK':_0x397227['gryXS'],'ucYmT':function(_0x17b43b,_0x5a1dcd){return _0x397227['RlHba'](_0x17b43b,_0x5a1dcd);},'iDUWt':function(_0x530ac8,_0x33f6e0){const _0x2abe0d=_0x1bfd7d;return _0x397227[_0x2abe0d(0x10b)](_0x530ac8,_0x33f6e0);},'AMEYv':_0x397227[_0x1bfd7d(0x157)],'DbDbs':_0x397227[_0x1bfd7d(0x133)],'hiHbP':_0x397227[_0x1bfd7d(0x10a)],'yvcAL':function(_0x267618,_0x11738a){const _0x114927=_0x1bfd7d;return _0x397227[_0x114927(0x10b)](_0x267618,_0x11738a);},'ohGOP':_0x397227[_0x1bfd7d(0x193)]},_0x1c27df={};_0x1c27df[_0x1bfd7d(0x11a)]=!![],yauzl[_0x1bfd7d(0x1b2)](_0x4936f9,_0x1c27df,function(_0x5a5b46,_0x30331d){const _0x2ae0c0=_0x1bfd7d,_0x56b933={'xVyka':function(_0x229a5c,_0x30b404){const _0x38f599=a89_0x57e0;return _0x283ad4[_0x38f599(0x19c)](_0x229a5c,_0x30b404);},'uaTWf':_0x283ad4[_0x2ae0c0(0x1ce)],'NTEub':function(_0x225739,_0x5e6abf){const _0x9a1b4a=_0x2ae0c0;return _0x283ad4[_0x9a1b4a(0x19c)](_0x225739,_0x5e6abf);},'CNcHu':_0x283ad4[_0x2ae0c0(0x1d8)],'RdPhp':function(_0xfd6991,_0x1a83c2){const _0x539dc1=_0x2ae0c0;return _0x283ad4[_0x539dc1(0x10f)](_0xfd6991,_0x1a83c2);},'oUntd':function(_0x448098,_0x103f85){const _0x438ba1=_0x2ae0c0;return _0x283ad4[_0x438ba1(0x180)](_0x448098,_0x103f85);},'eVjjs':_0x283ad4['AMEYv'],'gCByf':function(_0x17c99,_0x16edb0){const _0x34aac1=_0x2ae0c0;return _0x283ad4[_0x34aac1(0x10f)](_0x17c99,_0x16edb0);},'Lfeah':_0x283ad4[_0x2ae0c0(0x1da)],'ElyTX':function(_0x29ace9,_0x16fb49){return _0x283ad4['pJQhy'](_0x29ace9,_0x16fb49);},'BCkxX':_0x283ad4['hiHbP']};if(_0x5a5b46){_0x283ad4[_0x2ae0c0(0x1aa)](_0x252457,_0x5a5b46);return;}_0x30331d[_0x2ae0c0(0x12c)](),_0x30331d['on'](_0x283ad4[_0x2ae0c0(0x161)],_0x43a5e2=>{const _0x41826f=_0x2ae0c0,_0x5a516c={'KSjFk':function(_0x418f89,_0xcef07e){const _0xe96858=a89_0x57e0;return _0x56b933[_0xe96858(0x1bc)](_0x418f89,_0xcef07e);},'NeFXv':function(_0x58d707,_0x3d20e0){const _0xc01bd5=a89_0x57e0;return _0x56b933[_0xc01bd5(0x1bc)](_0x58d707,_0x3d20e0);},'zrQvT':function(_0xdc7571,_0xdb21f3){const _0x21ccb9=a89_0x57e0;return _0x56b933[_0x21ccb9(0x1bc)](_0xdc7571,_0xdb21f3);},'ZjAMT':_0x56b933[_0x41826f(0x1a1)],'tGGUm':function(_0x545d15,_0x41ee27){return _0x56b933['NTEub'](_0x545d15,_0x41ee27);},'NNSZf':_0x56b933['CNcHu']};if(/\/$/[_0x41826f(0x1c7)](_0x43a5e2[_0x41826f(0x152)])){_0x30331d['readEntry']();return;}!_0x4136a3&&(_0x4136a3=_0x43a5e2[_0x41826f(0x152)]);if(_0x56b933[_0x41826f(0x10c)](_0x43a5e2['fileName'],_0x4136a3))_0x30331d[_0x41826f(0x12c)]();else{const _0x4eb9f2=_0x43a5e2[_0x41826f(0x152)],_0x41d3fa=path[_0x41826f(0x16d)](_0x451bc1,_0x4eb9f2+'.tmp.'+process[_0x41826f(0x1a3)]);let _0x1ccf3c;try{_0x1ccf3c=fs[_0x41826f(0x1b4)](_0x41d3fa);}catch(_0x5e4986){if(BINARY_BUSY_ERROR_CODES[_0x41826f(0x107)](_0x5e4986[_0x41826f(0x186)])){const _0x4a8041=path[_0x41826f(0x16d)](_0x451bc1,_0x4eb9f2);if(fs[_0x41826f(0x1d7)](_0x4a8041)){logger[_0x41826f(0x13c)]('Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20'+_0x4eb9f2),fs['unlink'](_0x4936f9,_0x290ba9=>{const _0x3db7d6=_0x41826f;_0x290ba9&&logger[_0x3db7d6(0x13c)](_0x3db7d6(0x160)+_0x4936f9);}),_0x56b933['xVyka'](_0x4f1717,_0x4a8041);return;}logger['warn'](_0x41826f(0x148)+_0x4eb9f2);}_0x56b933['oUntd'](_0x252457,_0x5e4986);return;}_0x1ccf3c['on'](_0x56b933[_0x41826f(0x181)],_0x4fe20a=>{const _0x8dbed4=_0x41826f;if(BINARY_BUSY_ERROR_CODES['includes'](_0x4fe20a['code'])){const _0x5239c2=path[_0x8dbed4(0x16d)](_0x451bc1,_0x4eb9f2);_0x1ccf3c[_0x8dbed4(0x1d6)](),fs['existsSync'](_0x5239c2)?(logger[_0x8dbed4(0x13c)](_0x8dbed4(0x13e)+_0x4fe20a[_0x8dbed4(0x1c1)]),_0x30331d[_0x8dbed4(0x1d6)](),fs['unlink'](_0x4936f9,_0x25cfab=>{const _0x3029a4=_0x8dbed4;_0x25cfab&&logger[_0x3029a4(0x13c)](_0x3029a4(0x160)+_0x4936f9);}),_0x5a516c[_0x8dbed4(0x138)](_0x4f1717,_0x5239c2)):(logger[_0x8dbed4(0x13c)](_0x8dbed4(0x1a5)+_0x4fe20a[_0x8dbed4(0x1c1)]),fs[_0x8dbed4(0x1de)](_0x41d3fa,()=>{}),_0x5a516c[_0x8dbed4(0x140)](_0x252457,_0x4fe20a));}else fs[_0x8dbed4(0x1de)](_0x41d3fa,()=>{}),_0x5a516c[_0x8dbed4(0x1ca)](_0x252457,_0x4fe20a);}),_0x30331d[_0x41826f(0x134)](_0x43a5e2,function(_0x3a6d43,_0x4ae918){const _0x4b89b9=_0x41826f;if(_0x3a6d43){fs[_0x4b89b9(0x1de)](_0x41d3fa,()=>{}),_0x5a516c['tGGUm'](_0x252457,_0x3a6d43);return;}_0x4ae918['on'](_0x5a516c[_0x4b89b9(0xf8)],function(){const _0x2f9ce8=_0x4b89b9;_0x1ccf3c[_0x2f9ce8(0x100)](),_0x1ccf3c['on'](_0x5a516c[_0x2f9ce8(0x182)],function(){const _0x3a443f=_0x2f9ce8;_0x30331d[_0x3a443f(0x12c)]();});}),_0x4ae918['pipe'](_0x1ccf3c);});}}),_0x30331d['on'](_0x283ad4[_0x2ae0c0(0x118)],_0x569bf2=>{const _0x40d640=_0x2ae0c0;_0x283ad4[_0x40d640(0x19c)](_0x252457,_0x569bf2);}),_0x30331d[_0x2ae0c0(0x1c0)](_0x283ad4[_0x2ae0c0(0x1d8)],()=>{const _0x40bd93=_0x2ae0c0,_0x5b0f29={'TljZx':function(_0x1b1b83,_0x3fee7d){const _0x3ec2dd=a89_0x57e0;return _0x56b933[_0x3ec2dd(0x1b0)](_0x1b1b83,_0x3fee7d);},'ekaov':_0x56b933['Lfeah'],'kfSxN':function(_0x2a00f4,_0x4e6fb3){const _0x5849be=a89_0x57e0;return _0x56b933[_0x5849be(0x1bc)](_0x2a00f4,_0x4e6fb3);},'BYsky':function(_0x1a9879,_0x1abc69){const _0x3ad61e=a89_0x57e0;return _0x56b933[_0x3ad61e(0x108)](_0x1a9879,_0x1abc69);},'Kylvw':function(_0x370028,_0x3a9da2){const _0x48cbcf=a89_0x57e0;return _0x56b933[_0x48cbcf(0x108)](_0x370028,_0x3a9da2);}};fs[_0x40bd93(0x1de)](_0x4936f9,_0x571708=>{_0x571708&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x4936f9);});const _0x8c7f3c=path[_0x40bd93(0x16d)](_0x451bc1,_0x4136a3+_0x40bd93(0x16e)+process['pid']),_0x1054be=path[_0x40bd93(0x16d)](_0x451bc1,_0x4136a3);fs['chmod'](_0x8c7f3c,_0x56b933[_0x40bd93(0x191)],function(_0x53ac05){const _0x3262ec=_0x40bd93,_0x2a460d={'ocjEO':function(_0x57bc80,_0x70ecf7){return _0x5b0f29['TljZx'](_0x57bc80,_0x70ecf7);},'OLbkM':_0x5b0f29[_0x3262ec(0x14c)],'epLlN':function(_0x5a18be,_0x599ecd){const _0x38d7cc=_0x3262ec;return _0x5b0f29[_0x38d7cc(0x131)](_0x5a18be,_0x599ecd);},'gqzmf':function(_0x3b104e,_0x27fe36){const _0x5bb20b=_0x3262ec;return _0x5b0f29[_0x5bb20b(0x131)](_0x3b104e,_0x27fe36);},'MZZPo':function(_0xeb53e3,_0x38d221){return _0x5b0f29['BYsky'](_0xeb53e3,_0x38d221);}};if(_0x53ac05){_0x30331d[_0x3262ec(0x1d6)](),fs[_0x3262ec(0x1de)](_0x8c7f3c,()=>{}),_0x5b0f29[_0x3262ec(0x1b3)](_0x252457,_0x53ac05);return;}fs[_0x3262ec(0x149)](_0x8c7f3c,_0x1054be,function(_0xce64c1){const _0x5bd874=_0x3262ec;if(_0xce64c1){if(_0x2a460d[_0x5bd874(0x195)](_0xce64c1[_0x5bd874(0x186)],_0x2a460d[_0x5bd874(0x101)])){_0x30331d[_0x5bd874(0x1d6)](),fs[_0x5bd874(0x1de)](_0x8c7f3c,()=>{}),_0x2a460d[_0x5bd874(0x1d3)](_0x252457,_0xce64c1);return;}logger[_0x5bd874(0x13c)]('Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20'+_0xce64c1[_0x5bd874(0x1c1)]);try{fs['copyFileSync'](_0x8c7f3c,_0x1054be);}catch(_0x75bd12){_0x30331d[_0x5bd874(0x1d6)](),fs[_0x5bd874(0x1de)](_0x8c7f3c,()=>{}),_0x2a460d[_0x5bd874(0x183)](_0x252457,_0x75bd12);return;}fs[_0x5bd874(0x1de)](_0x8c7f3c,_0x57f1dc=>{const _0x25564d=_0x5bd874;_0x57f1dc&&logger[_0x25564d(0x13c)]('Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20'+_0x57f1dc[_0x25564d(0x1c1)]);});}_0x30331d['close'](),_0x2a460d[_0x5bd874(0x1d9)](_0x4f1717,_0x1054be);});});});});});}static[a89_0x92ccaf(0x142)](){const _0x518934=a89_0x92ccaf;if(process[_0x518934(0x136)][_0x518934(0x17d)])return JSON[_0x518934(0x16c)](process[_0x518934(0x136)][_0x518934(0x17d)]);return this[_0x518934(0x16a)];}static[a89_0x92ccaf(0x158)](){const _0x30df29=a89_0x92ccaf;if(process[_0x30df29(0x136)][_0x30df29(0x14d)])return JSON[_0x30df29(0x16c)](process[_0x30df29(0x136)][_0x30df29(0x14d)]);return this[_0x30df29(0x141)];}static[a89_0x92ccaf(0x132)](_0x3e1c8d,_0x19d03a){const _0x23579e=a89_0x92ccaf,_0x147994={'UKKww':_0x23579e(0x1b5),'BARkb':function(_0x82ae1e,_0x4a7c9d){return _0x82ae1e||_0x4a7c9d;},'BJMsU':function(_0x299f7e,_0x3a492e){return _0x299f7e(_0x3a492e);},'hEPRW':function(_0x47e7de,_0x4ccce8){return _0x47e7de(_0x4ccce8);}},_0x4d04fd=_0x147994[_0x23579e(0x1b1)]['split']('|');let _0x474d8a=0x0;while(!![]){switch(_0x4d04fd[_0x474d8a++]){case'0':process[_0x23579e(0x136)][_0x23579e(0x17d)]=JSON[_0x23579e(0x1e1)](this[_0x23579e(0x16a)]);continue;case'1':_0x147994['BARkb'](!_0x3e1c8d,!_0x19d03a)&&logger[_0x23579e(0x1d1)](_0x23579e(0x12b)+_0x3e1c8d+_0x23579e(0x15f)+_0x19d03a);continue;case'2':this['automationFrameworkDetail']={'name':_0x19d03a,'version':_0x147994[_0x23579e(0x1e4)](getFrameworkVersion,_0x19d03a)};continue;case'3':this[_0x23579e(0x16a)]={'name':_0x3e1c8d,'version':{[_0x3e1c8d]:_0x147994[_0x23579e(0x1b9)](getFrameworkVersion,_0x3e1c8d)}};continue;case'4':process[_0x23579e(0x136)]['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL']=JSON[_0x23579e(0x1e1)](this[_0x23579e(0x141)]);continue;}break;}}static[a89_0x92ccaf(0x163)](_0x2cb1e3,_0x3c3427){return _0x2cb1e3+':'+_0x3c3427;}static[a89_0x92ccaf(0x117)](){const _0x13aa72=a89_0x92ccaf;return process[_0x13aa72(0x1a3)]+':'+threadId;}static[a89_0x92ccaf(0x17a)](_0x37f736){const _0x22c32a=a89_0x92ccaf;if(_0x37f736[_0x22c32a(0x1b8)]&&_0x37f736[_0x22c32a(0x1b8)]['skipSessionName'])return!![];return![];}static[a89_0x92ccaf(0x1db)](_0x3597ee){const _0x4992e0=a89_0x92ccaf;if(_0x3597ee[_0x4992e0(0x1b8)]&&_0x3597ee[_0x4992e0(0x1b8)]['skipSessionStatus'])return!![];return![];}static['matchHookRegex'](_0x2f1a1c){const _0x1f8e43=a89_0x92ccaf,_0x2bfc32=new RegExp(TestFrameworkConstants[_0x1f8e43(0x1cf)]);return _0x2bfc32[_0x1f8e43(0x1c7)](_0x2f1a1c);}static[a89_0x92ccaf(0x135)](_0x42f5cb,_0x2e543a){const _0x39a844=a89_0x92ccaf,_0x5a9928={};_0x5a9928[_0x39a844(0x175)]=function(_0x42a8d3,_0x36b77c){return _0x42a8d3!==_0x36b77c;},_0x5a9928['TLXcb']=function(_0x3dfc0d,_0x1834ab){return _0x3dfc0d===_0x1834ab;},_0x5a9928[_0x39a844(0x1a6)]=_0x39a844(0x17c);const _0x5a9a33=_0x5a9928;for(const [_0xcb9745,_0xab7551]of Object[_0x39a844(0x179)](_0x2e543a)){if(_0x5a9a33[_0x39a844(0x175)](_0xab7551,null)&&_0x5a9a33[_0x39a844(0x184)](typeof _0xab7551,_0x5a9a33[_0x39a844(0x1a6)])&&!Array[_0x39a844(0x1e6)](_0xab7551))_0x42f5cb[_0xcb9745]=this[_0x39a844(0x135)](_0x42f5cb[_0xcb9745]||{},_0xab7551);else Array[_0x39a844(0x1e6)](_0xab7551)?_0x42f5cb[_0xcb9745]=(_0x42f5cb[_0xcb9745]||[])[_0x39a844(0xfa)](_0xab7551):_0x42f5cb[_0xcb9745]=_0xab7551;}return _0x42f5cb;}}module[a89_0x92ccaf(0x154)]=CLIUtils;
1
+ const a89_0x3c5521=a89_0x163f;(function(_0x89e685,_0x3f6fca){const _0x5045f0=a89_0x163f,_0x482301=_0x89e685();while(!![]){try{const _0x372c5d=parseInt(_0x5045f0(0x29a))/0x1+parseInt(_0x5045f0(0x2a5))/0x2+-parseInt(_0x5045f0(0x23f))/0x3+-parseInt(_0x5045f0(0x288))/0x4*(parseInt(_0x5045f0(0x1f1))/0x5)+parseInt(_0x5045f0(0x231))/0x6+parseInt(_0x5045f0(0x2a8))/0x7+parseInt(_0x5045f0(0x281))/0x8*(-parseInt(_0x5045f0(0x1f8))/0x9);if(_0x372c5d===_0x3f6fca)break;else _0x482301['push'](_0x482301['shift']());}catch(_0x11b49b){_0x482301['push'](_0x482301['shift']());}}}(a89_0x4991,0x204e9));const fs=require('fs'),os=require('os'),url=require(a89_0x3c5521(0x242)),path=require('path'),{exec}=require('child_process'),{https}=require(a89_0x3c5521(0x2bc)),yauzl=require(a89_0x3c5521(0x27d)),util=require(a89_0x3c5521(0x25c)),{getFrameworkVersion}=require(a89_0x3c5521(0x1f7)),{threadId}=require(a89_0x3c5521(0x1fb)),PerformanceTester=require('../../helpers/performance/performance-tester.js'),{EVENTS:PerformanceEvents}=require(a89_0x3c5521(0x272)),{isNullOrEmpty,isModifiable,setReadWriteExecuteAccess}=require(a89_0x3c5521(0x2ae)),{isTrue,createDir,getHostInfo,nodeRequest,nestedKeyValue}=require(a89_0x3c5521(0x202)),{UPDATED_CLI_ENDPOINT,BINARY_BUSY_ERROR_CODES}=require(a89_0x3c5521(0x286)),{createClassLogger}=require(a89_0x3c5521(0x238)),TestFrameworkInstance=require('./instances/testFrameworkInstance.js'),HookState=require(a89_0x3c5521(0x214)),TestFrameworkState=require(a89_0x3c5521(0x2c3)),AutomationFrameworkState=require(a89_0x3c5521(0x247)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants.js'),logger=createClassLogger('CLIUtils'),{getBStackAPIUrl}=require(a89_0x3c5521(0x1fc));class CLIUtils{['automationFrameworkDetail']={};[a89_0x3c5521(0x295)]={};static[a89_0x3c5521(0x294)](){const _0x5ab47e=a89_0x3c5521,_0x402c73={};_0x402c73['EkUnX']=function(_0x56bd93,_0x59776b){return _0x56bd93===_0x59776b;},_0x402c73[_0x5ab47e(0x26a)]='development';const _0x59bb54=_0x402c73;return _0x59bb54[_0x5ab47e(0x2c8)](process[_0x5ab47e(0x254)][_0x5ab47e(0x2a2)],_0x59bb54[_0x5ab47e(0x26a)]);}static[a89_0x3c5521(0x249)](){const _0x37144a=a89_0x3c5521,_0x23d016={};return _0x23d016['id']=process['env'][_0x37144a(0x2a2)],_0x23d016[_0x37144a(0x225)]=_0x37144a(0x293)+process[_0x37144a(0x254)]['BROWSERSTACK_CLI_ENV']+'.sock',_0x23d016;}static[a89_0x3c5521(0x2d8)](){const _0x8f871d=a89_0x3c5521,_0x3f9493={'uMnjw':function(_0x26ebf0,_0x6b279){return _0x26ebf0(_0x6b279);},'KrRAy':'../../../package.json'};return _0x3f9493[_0x8f871d(0x2a0)](require,_0x3f9493['KrRAy'])[_0x8f871d(0x22c)];}static[a89_0x3c5521(0x24b)](){const _0x34048a=a89_0x3c5521,_0x225b0a={};_0x225b0a[_0x34048a(0x27e)]='node';const _0x541923=_0x225b0a;return _0x541923[_0x34048a(0x27e)];}static async['setupCliPath'](_0x322a04){const _0x5aa7c8=a89_0x3c5521,_0x2843f6={'xMEci':'Configuring\x20Cli\x20path.','Nfmrt':function(_0xc775cd,_0x4b15e5){return _0xc775cd(_0x4b15e5);},'NNoUz':_0x5aa7c8(0x266)};logger['debug'](_0x2843f6[_0x5aa7c8(0x23d)]);const _0x390d0d=process[_0x5aa7c8(0x254)][_0x5aa7c8(0x244)];if(!_0x2843f6[_0x5aa7c8(0x25f)](isNullOrEmpty,_0x390d0d))return logger['debug'](_0x5aa7c8(0x268)+_0x390d0d),_0x390d0d;try{const _0xbfe2c2=this['getCliDir']();if(_0x2843f6[_0x5aa7c8(0x25f)](isNullOrEmpty,_0xbfe2c2))throw new Error(_0x2843f6['NNoUz']);const _0x4348df=this[_0x5aa7c8(0x229)](_0xbfe2c2),_0x2ee702=await this[_0x5aa7c8(0x2a4)](_0x4348df,_0xbfe2c2,_0x322a04);return logger[_0x5aa7c8(0x21f)](_0x5aa7c8(0x25d)+_0x2ee702),_0x2ee702;}catch(_0x178f0a){logger[_0x5aa7c8(0x21f)](_0x5aa7c8(0x269)+util[_0x5aa7c8(0x2c6)](_0x178f0a));}return null;}static async[a89_0x3c5521(0x2a4)](_0x493443,_0x51ddf5,_0x1ced38){const _0x28fdae=a89_0x3c5521,_0x2364a6={'sEvTT':function(_0xe1db35){return _0xe1db35();},'URBWP':function(_0x2b95d1,_0x51e757){return _0x2b95d1(_0x51e757);},'OILBL':function(_0x3dbf94,_0x21c5a9,_0x1ba24b){return _0x3dbf94(_0x21c5a9,_0x1ba24b);},'vRiVu':_0x28fdae(0x277),'asydb':_0x28fdae(0x242),'SMMdY':function(_0x8682a3,_0x2d321b){return _0x8682a3(_0x2d321b);}};PerformanceTester[_0x28fdae(0x224)](PerformanceEvents[_0x28fdae(0x278)]);try{logger[_0x28fdae(0x24e)](_0x28fdae(0x23e)+_0x493443);const _0x812b4d=_0x2364a6[_0x28fdae(0x267)](getHostInfo),_0x58a4c7={'sdk_version':CLIUtils[_0x28fdae(0x2d8)](),'os':_0x812b4d[_0x28fdae(0x250)],'os_arch':_0x812b4d[_0x28fdae(0x203)],'cli_version':'0','sdk_language':this['getSdkLanguage']()};!_0x2364a6[_0x28fdae(0x2ba)](isNullOrEmpty,_0x493443)&&(_0x58a4c7[_0x28fdae(0x21c)]=await this['runShellCommand'](_0x493443+'\x20version'));const _0x1469a2=await this['requestToUpdateCLI'](_0x58a4c7,_0x1ced38);process[_0x28fdae(0x254)][_0x28fdae(0x29e)]&&(logger[_0x28fdae(0x24e)](_0x28fdae(0x265)+process[_0x28fdae(0x254)][_0x28fdae(0x29e)]),_0x1469a2[_0x28fdae(0x277)][_0x28fdae(0x242)]=process[_0x28fdae(0x254)]['BROWSERSTACK_BINARY_URL']);if(_0x2364a6[_0x28fdae(0x237)](nestedKeyValue,_0x1469a2,[_0x2364a6['vRiVu'],_0x2364a6[_0x28fdae(0x221)]])){logger[_0x28fdae(0x21f)](_0x28fdae(0x21a)+_0x58a4c7[_0x28fdae(0x21c)]);if(!_0x2364a6[_0x28fdae(0x29b)](isNullOrEmpty,_0x493443)&&this[_0x28fdae(0x2c5)](_0x493443))return logger[_0x28fdae(0x232)](_0x28fdae(0x299)+_0x493443),_0x493443;return await this['downloadLatestBinary'](_0x2364a6[_0x28fdae(0x237)](nestedKeyValue,_0x1469a2,[_0x2364a6[_0x28fdae(0x29c)],_0x2364a6['asydb']]),_0x51ddf5);}return _0x493443;}finally{PerformanceTester[_0x28fdae(0x2a6)](PerformanceEvents[_0x28fdae(0x278)]);}}static[a89_0x3c5521(0x2ce)](){const _0x5cbeb5=a89_0x3c5521,_0x49325a={'gnKHS':function(_0x434a54,_0x2fb946){return _0x434a54(_0x2fb946);},'UzsDP':_0x5cbeb5(0x266),'VRwRx':_0x5cbeb5(0x2da)},_0x4c3399=this[_0x5cbeb5(0x22d)]();try{if(_0x49325a['gnKHS'](isNullOrEmpty,_0x4c3399))throw new Error(_0x49325a[_0x5cbeb5(0x291)]);const _0x3a4363=path['join'](_0x4c3399,_0x49325a[_0x5cbeb5(0x2ab)]);return!fs['existsSync'](_0x3a4363)&&_0x49325a['gnKHS'](createDir,_0x3a4363),_0x3a4363;}catch(_0x416d33){logger[_0x5cbeb5(0x21f)](_0x5cbeb5(0x2d4)+util['format'](_0x416d33));}}static['getWritableDir'](){const _0xdf2872=a89_0x3c5521,_0x2016e9={'bEcDd':_0xdf2872(0x2b8),'nlVvY':function(_0x452e7a,_0x5e401b){return _0x452e7a(_0x5e401b);},'hIIuQ':function(_0x1ee0d8,_0x1c3f78){return _0x1ee0d8(_0x1c3f78);},'GmVhb':function(_0x56568b,_0x34f15e){return _0x56568b(_0x34f15e);},'VkFli':function(_0x115e2b,_0x54b950){return _0x115e2b(_0x54b950);}},_0x1ff2ac=[process[_0xdf2872(0x254)][_0xdf2872(0x230)],path[_0xdf2872(0x26f)](os['homedir'](),_0x2016e9[_0xdf2872(0x256)]),path[_0xdf2872(0x26f)](os[_0xdf2872(0x241)](),_0x2016e9[_0xdf2872(0x256)])];for(const _0x49fdac of _0x1ff2ac){if(_0x2016e9[_0xdf2872(0x298)](isNullOrEmpty,_0x49fdac))continue;try{if(fs[_0xdf2872(0x248)](_0x49fdac)){logger[_0xdf2872(0x21f)](_0xdf2872(0x26b)+_0x49fdac+_0xdf2872(0x210));if(!_0x2016e9[_0xdf2872(0x263)](isModifiable,_0x49fdac)){logger[_0xdf2872(0x21f)](_0xdf2872(0x27a)+_0x49fdac);const _0x54dbe8=_0x2016e9[_0xdf2872(0x298)](setReadWriteExecuteAccess,_0x49fdac);if(!_0x2016e9[_0xdf2872(0x2ac)](isTrue,_0x54dbe8)){logger[_0xdf2872(0x232)]('Unable\x20to\x20set\x20required\x20permissions\x20to\x20'+_0x49fdac);continue;}}}else{logger[_0xdf2872(0x21f)](_0xdf2872(0x212)+_0x49fdac),_0x2016e9['GmVhb'](createDir,_0x49fdac),logger[_0xdf2872(0x21f)](_0xdf2872(0x27a)+_0x49fdac);const _0x531d5c=_0x2016e9[_0xdf2872(0x2ac)](setReadWriteExecuteAccess,_0x49fdac);!_0x2016e9[_0xdf2872(0x2be)](isTrue,_0x531d5c)&&logger[_0xdf2872(0x232)](_0xdf2872(0x236)+_0x49fdac);}return _0x49fdac;}catch(_0x31978b){logger[_0xdf2872(0x2b7)]('Unable\x20to\x20get\x20writable\x20directory,\x20exception\x20'+util['format'](_0x31978b));}}return null;}static[a89_0x3c5521(0x229)](_0x150e12){const _0x51f2c0=a89_0x3c5521,_0x2979a1={};_0x2979a1[_0x51f2c0(0x2b4)]=function(_0x668a6,_0x95130b){return _0x668a6>_0x95130b;};const _0x5e4fb5=_0x2979a1;try{if(!fs[_0x51f2c0(0x248)](_0x150e12)||!fs[_0x51f2c0(0x207)](_0x150e12)[_0x51f2c0(0x24c)]())return'';const _0x50b9ab=fs[_0x51f2c0(0x20a)](_0x150e12)[_0x51f2c0(0x25a)](_0xa4e638=>path['join'](_0x150e12,_0xa4e638))['filter'](_0x48d7e6=>fs['statSync'](_0x48d7e6)[_0x51f2c0(0x23b)]()&&path['basename'](_0x48d7e6)[_0x51f2c0(0x2b9)]('binary-'));if(_0x5e4fb5[_0x51f2c0(0x2b4)](_0x50b9ab['length'],0x0)){const _0x3c50b2=_0x50b9ab[_0x51f2c0(0x25a)](_0x4a5284=>({'filePath':_0x4a5284,'mtime':fs[_0x51f2c0(0x207)](_0x4a5284)['mtime']}))['reduce']((_0x389d96,_0x3c4cea)=>{const _0x7c745b=_0x51f2c0;if(!_0x389d96||!_0x389d96[_0x7c745b(0x228)])return _0x3c4cea;if(_0x5e4fb5[_0x7c745b(0x2b4)](_0x3c4cea[_0x7c745b(0x228)],_0x389d96[_0x7c745b(0x228)]))return _0x3c4cea;return _0x389d96;},{});return _0x3c50b2?_0x3c50b2['filePath']:'';}return'';}catch(_0x1e5d22){return logger[_0x51f2c0(0x2b7)]('Error\x20while\x20reading\x20CLI\x20path:\x20'+util[_0x51f2c0(0x2c6)](_0x1e5d22)),'';}}static [a89_0x3c5521(0x2b0)]=async(_0x6db5e7,_0x4663d6)=>{const _0x553159=a89_0x3c5521,_0x1ca330={'FmnxD':function(_0x458859,_0x46dd60,_0x4931d3,_0x1b4b0f,_0xf69b6d){return _0x458859(_0x46dd60,_0x4931d3,_0x1b4b0f,_0xf69b6d);},'ZfBJK':_0x553159(0x21d)},_0x26eaf4={};_0x26eaf4['qs']=_0x6db5e7,_0x26eaf4[_0x553159(0x261)]=!![];const _0x162391=await _0x1ca330[_0x553159(0x28c)](nodeRequest,_0x1ca330[_0x553159(0x2d0)],UPDATED_CLI_ENDPOINT,_0x26eaf4,_0x4663d6);return logger[_0x553159(0x21f)](_0x553159(0x20d)+JSON[_0x553159(0x276)](_0x162391)),_0x162391;};static[a89_0x3c5521(0x2c5)](_0x11376e){const _0x364f56=a89_0x3c5521;try{const _0x44d95e=fs['openSync'](_0x11376e,'r+');return fs[_0x364f56(0x240)](_0x44d95e),![];}catch(_0x45a2ee){if(BINARY_BUSY_ERROR_CODES[_0x364f56(0x216)](_0x45a2ee[_0x364f56(0x25b)]))return logger[_0x364f56(0x21f)](_0x364f56(0x1f5)+_0x11376e),!![];return logger[_0x364f56(0x21f)](_0x364f56(0x234)+_0x45a2ee[_0x364f56(0x273)]),![];}}static[a89_0x3c5521(0x21e)](_0x126cde,_0x4365b4=''){const _0x564f2b=a89_0x3c5521,_0x1418ab={'itCJo':_0x564f2b(0x22c),'JRptl':function(_0x1baa35,_0x14a42d){return _0x1baa35(_0x14a42d);},'hPUcr':_0x564f2b(0x290),'FPiAI':function(_0x3d3cab,_0x221f3b){return _0x3d3cab(_0x221f3b);},'AaHCI':function(_0x11e451,_0x82b4dd){return _0x11e451(_0x82b4dd);},'wJimL':function(_0x337e3b,_0x539ae2,_0x2d4efd,_0x43eff4){return _0x337e3b(_0x539ae2,_0x2d4efd,_0x43eff4);},'qsZWa':_0x564f2b(0x2b7)};return new Promise((_0xe722c4,_0xf3a592)=>{const _0x4417de=_0x564f2b,_0x54c075={};_0x54c075[_0x4417de(0x20b)]=_0x4365b4,_0x54c075[_0x4417de(0x287)]=0x1388;const _0x105e89=_0x1418ab[_0x4417de(0x285)](exec,_0x126cde,_0x54c075,(_0x3816b1,_0x8a4569,_0x74ca7c)=>{const _0x782d53=_0x4417de;if(_0x3816b1){if(_0x126cde[_0x782d53(0x216)](_0x1418ab[_0x782d53(0x222)])&&(_0x8a4569[_0x782d53(0x22b)]()||_0x74ca7c[_0x782d53(0x22b)]())){const _0x4d00e4=_0x8a4569[_0x782d53(0x22b)]()||_0x74ca7c['trim']();logger[_0x782d53(0x21f)](_0x782d53(0x26c)+_0x4d00e4+'\x22'),_0x1418ab[_0x782d53(0x2d1)](_0xe722c4,_0x4d00e4);}else _0x1418ab['JRptl'](_0xe722c4,_0x74ca7c[_0x782d53(0x22b)]()||_0x1418ab['hPUcr']);}else logger[_0x782d53(0x21f)](_0x782d53(0x270)+_0x8a4569[_0x782d53(0x22b)]()+'\x22'),_0x1418ab[_0x782d53(0x24a)](_0xe722c4,_0x8a4569['trim']());});_0x105e89['on'](_0x1418ab[_0x4417de(0x2a3)],()=>{const _0x4c4a1f=_0x4417de;_0x1418ab['AaHCI'](_0xe722c4,_0x1418ab[_0x4c4a1f(0x2d7)]);});});}static [a89_0x3c5521(0x28b)]=async(_0x346912,_0x6dc263)=>{const _0x4517ab=a89_0x3c5521,_0x405489={'fhOpv':function(_0x3fa1fe,_0x1061c8){return _0x3fa1fe(_0x1061c8);},'NpRxz':'Got\x20Error\x20in\x20SDK\x20binary\x20download\x20response\x20%s','AZyNm':function(_0x424fc5,_0x538d2a){return _0x424fc5(_0x538d2a);},'oLMNx':_0x4517ab(0x220),'BOwuu':function(_0x54bced,_0x49dadc){return _0x54bced>=_0x49dadc;},'zQjIT':_0x4517ab(0x206),'jqyBh':'SDK\x20binary\x20download\x20returned\x20HTTP\x20%s','bBmsx':'error','cuVPp':'Failed\x20to\x20download\x20SDK\x20binary:\x20%s'};PerformanceTester[_0x4517ab(0x224)](PerformanceEvents[_0x4517ab(0x22f)]),logger['debug'](_0x4517ab(0x26d)+_0x346912);try{const _0x1836f4=url['parse'](_0x346912),_0x6aca8e=path['join'](_0x6dc263,_0x4517ab(0x2cd)+process[_0x4517ab(0x2a7)]+'.zip'),_0x2b6472=fs[_0x4517ab(0x271)](_0x6aca8e);return new Promise((_0x33de7b,_0x935559)=>{const _0x2ca3d5=_0x4517ab,_0x337013={'kzYfU':_0x405489[_0x2ca3d5(0x1f6)],'WIzKi':function(_0x17525f,_0x14256c){const _0x5846e7=_0x2ca3d5;return _0x405489[_0x5846e7(0x2a1)](_0x17525f,_0x14256c);},'WTBCo':_0x405489['oLMNx'],'GuZVF':function(_0x54252f,_0x44c9bb){const _0x3cb22f=_0x2ca3d5;return _0x405489[_0x3cb22f(0x209)](_0x54252f,_0x44c9bb);},'aMNEQ':_0x405489[_0x2ca3d5(0x2d2)],'GkqdC':_0x405489['jqyBh'],'hkidT':function(_0x2cbed1,_0x5cc7e3){const _0x4eeeb6=_0x2ca3d5;return _0x405489[_0x4eeeb6(0x226)](_0x2cbed1,_0x5cc7e3);},'rxwps':_0x405489[_0x2ca3d5(0x2aa)]};https[_0x2ca3d5(0x2ca)](_0x1836f4,function(_0x21a0b3){const _0x41bd5e=_0x2ca3d5,_0x31f2d2={'PHeiu':function(_0x27db1b,_0x4d3d51){const _0x314c87=a89_0x163f;return _0x337013[_0x314c87(0x211)](_0x27db1b,_0x4d3d51);}},_0x27edef=null;if(_0x21a0b3[_0x41bd5e(0x259)]&&_0x337013[_0x41bd5e(0x275)](_0x21a0b3[_0x41bd5e(0x259)],0x190)){const _0x599942=new Error('SDK\x20binary\x20download\x20failed\x20with\x20HTTP\x20'+_0x21a0b3[_0x41bd5e(0x259)]+_0x41bd5e(0x284)+_0x346912);_0x599942[_0x41bd5e(0x25b)]=_0x337013['aMNEQ'],_0x599942['statusCode']=_0x21a0b3[_0x41bd5e(0x259)],logger[_0x41bd5e(0x2b7)](util[_0x41bd5e(0x2c6)](_0x337013[_0x41bd5e(0x2b3)],_0x21a0b3[_0x41bd5e(0x259)])),PerformanceTester[_0x41bd5e(0x2a6)](PerformanceEvents[_0x41bd5e(0x22f)],![],'HTTP\x20'+_0x21a0b3[_0x41bd5e(0x259)]),_0x21a0b3[_0x41bd5e(0x223)](),_0x2b6472[_0x41bd5e(0x258)](),fs['unlink'](_0x6aca8e,()=>{}),_0x337013[_0x41bd5e(0x21b)](_0x935559,_0x599942);return;}_0x21a0b3[_0x41bd5e(0x264)](_0x2b6472),_0x21a0b3['on'](_0x337013[_0x41bd5e(0x25e)],function(_0x24235c){const _0x56e501=_0x41bd5e;logger[_0x56e501(0x2b7)](util['format'](_0x337013[_0x56e501(0x23a)],_0x24235c)),PerformanceTester[_0x56e501(0x2a6)](PerformanceEvents['SDK_CLI_DOWNLOAD'],![],util[_0x56e501(0x2c6)](_0x24235c)),_0x337013['WIzKi'](_0x935559,_0x24235c);}),_0x2b6472['on'](_0x337013[_0x41bd5e(0x25e)],function(_0xd780f4){const _0x45b4b5=_0x41bd5e;logger[_0x45b4b5(0x2b7)](util[_0x45b4b5(0x2c6)](_0x337013['WTBCo'],_0xd780f4)),PerformanceTester[_0x45b4b5(0x2a6)](PerformanceEvents[_0x45b4b5(0x22f)],![],util[_0x45b4b5(0x2c6)](_0xd780f4)),_0x337013[_0x45b4b5(0x211)](_0x935559,_0xd780f4);}),CLIUtils['downloadFileStream'](_0x2b6472,_0x27edef,_0x6aca8e,_0x6dc263,_0xf13a36=>{const _0x2773c6=_0x41bd5e;PerformanceTester['end'](PerformanceEvents[_0x2773c6(0x22f)]),_0x31f2d2[_0x2773c6(0x2d3)](_0x33de7b,_0xf13a36);},_0x113040=>{const _0x148b19=_0x41bd5e;PerformanceTester['end'](PerformanceEvents[_0x148b19(0x22f)],![],util[_0x148b19(0x2c6)](_0x113040)),_0x31f2d2[_0x148b19(0x2d3)](_0x935559,_0x113040);});})['on'](_0x405489[_0x2ca3d5(0x2aa)],function(_0x361040){const _0x2a768a=_0x2ca3d5;logger[_0x2a768a(0x2b7)]('Got\x20Error\x20in\x20SDK\x20binary\x20downloading\x20request\x20'+util[_0x2a768a(0x2c6)](_0x361040)),PerformanceTester['end'](PerformanceEvents[_0x2a768a(0x22f)],![],util[_0x2a768a(0x2c6)](_0x361040)),_0x405489[_0x2a768a(0x226)](_0x935559,_0x361040);});});}catch(_0x4df7a8){PerformanceTester[_0x4517ab(0x2a6)](PerformanceEvents[_0x4517ab(0x22f)],![],util[_0x4517ab(0x2c6)](_0x4df7a8)),logger[_0x4517ab(0x2b7)](util['format'](_0x405489[_0x4517ab(0x28e)],_0x4df7a8));throw _0x4df7a8;}};static[a89_0x3c5521(0x218)](_0x2db2d0,_0x2d2254,_0x2002cd,_0x39413f,_0x4128cb,_0x29d239){const _0x48cd21=a89_0x3c5521,_0x13261f={'izIXV':function(_0x2ec56,_0x5d8a5a){return _0x2ec56(_0x5d8a5a);},'gCMuI':'end','uDGZF':_0x48cd21(0x201),'FYeHG':function(_0x537385,_0x25cc37){return _0x537385!==_0x25cc37;},'FkRDH':_0x48cd21(0x2b7),'mhCfk':_0x48cd21(0x1fd),'mvLmi':function(_0x87f277,_0x480eec){return _0x87f277(_0x480eec);},'NLyPH':_0x48cd21(0x2b2),'mAifK':function(_0x45a606,_0x23d30d){return _0x45a606(_0x23d30d);},'iYgEI':_0x48cd21(0x28f)};_0x2db2d0['on'](_0x13261f[_0x48cd21(0x1f9)],function(){const _0x185126=_0x48cd21,_0x52b5bd={'aaYmu':function(_0x46ac46,_0x461b66){const _0x47b560=a89_0x163f;return _0x13261f[_0x47b560(0x27f)](_0x46ac46,_0x461b66);},'PuEBn':_0x13261f[_0x185126(0x262)],'BaksF':_0x13261f[_0x185126(0x1f9)],'eFoaV':function(_0xc150fa,_0x1039c1){const _0x1a6fc2=_0x185126;return _0x13261f[_0x1a6fc2(0x28d)](_0xc150fa,_0x1039c1);},'NCbTj':_0x13261f['FkRDH'],'RtgJX':_0x13261f['mhCfk'],'GGfxm':function(_0x28ec8a,_0x53a761){return _0x13261f['mvLmi'](_0x28ec8a,_0x53a761);},'mubcu':_0x13261f[_0x185126(0x213)],'iIHTz':function(_0x5ce8d5,_0x45e1de){const _0x4284f1=_0x185126;return _0x13261f[_0x4284f1(0x279)](_0x5ce8d5,_0x45e1de);},'kVaNw':_0x13261f[_0x185126(0x243)]},_0x296b5d={};_0x296b5d[_0x185126(0x23c)]=!![],yauzl[_0x185126(0x24d)](_0x2002cd,_0x296b5d,function(_0x2cfd64,_0x46e03c){const _0x22ba1d=_0x185126,_0x271c6f={'ihILs':function(_0x44b766,_0x704a9){const _0x1f5b9e=a89_0x163f;return _0x52b5bd[_0x1f5b9e(0x2c2)](_0x44b766,_0x704a9);},'nLlle':function(_0x5e9290,_0x129b79){const _0x5de05d=a89_0x163f;return _0x52b5bd[_0x5de05d(0x2c2)](_0x5e9290,_0x129b79);},'UZjlM':_0x52b5bd['PuEBn'],'PNYFh':_0x52b5bd[_0x22ba1d(0x2c4)],'OOQgL':function(_0x44379c,_0x1c13c9){return _0x52b5bd['eFoaV'](_0x44379c,_0x1c13c9);},'wNOcl':_0x52b5bd['NCbTj'],'FgxmO':_0x52b5bd[_0x22ba1d(0x2cb)],'UZfrg':function(_0x4c0923,_0x4b14c0){return _0x52b5bd['GGfxm'](_0x4c0923,_0x4b14c0);},'orXiB':_0x52b5bd['mubcu']};if(_0x2cfd64){_0x52b5bd[_0x22ba1d(0x22a)](_0x29d239,_0x2cfd64);return;}_0x46e03c[_0x22ba1d(0x2d6)](),_0x46e03c['on'](_0x52b5bd[_0x22ba1d(0x217)],_0x52113a=>{const _0x1035a0=_0x22ba1d,_0x470e86={};_0x470e86[_0x1035a0(0x2b5)]=_0x271c6f[_0x1035a0(0x2ad)];const _0xe00688=_0x470e86;if(/\/$/[_0x1035a0(0x289)](_0x52113a[_0x1035a0(0x1fa)])){_0x46e03c[_0x1035a0(0x2d6)]();return;}!_0x2d2254&&(_0x2d2254=_0x52113a['fileName']);if(_0x271c6f[_0x1035a0(0x2bd)](_0x52113a[_0x1035a0(0x1fa)],_0x2d2254))_0x46e03c['readEntry']();else{const _0x3af8d1=_0x52113a[_0x1035a0(0x1fa)],_0x2d2662=path[_0x1035a0(0x26f)](_0x39413f,_0x3af8d1+_0x1035a0(0x22e)+process[_0x1035a0(0x2a7)]);let _0x1a642e;try{_0x1a642e=fs[_0x1035a0(0x271)](_0x2d2662);}catch(_0x2dbcc5){if(BINARY_BUSY_ERROR_CODES[_0x1035a0(0x216)](_0x2dbcc5[_0x1035a0(0x25b)])){const _0x157844=path[_0x1035a0(0x26f)](_0x39413f,_0x3af8d1);if(fs[_0x1035a0(0x248)](_0x157844)){logger[_0x1035a0(0x232)](_0x1035a0(0x252)+_0x3af8d1),fs[_0x1035a0(0x29f)](_0x2002cd,_0xcf90dc=>{_0xcf90dc&&logger['warn']('Failed\x20to\x20delete\x20zip\x20file:\x20'+_0x2002cd);}),_0x271c6f[_0x1035a0(0x292)](_0x4128cb,_0x157844);return;}logger['warn'](_0x1035a0(0x204)+_0x3af8d1);}_0x271c6f[_0x1035a0(0x292)](_0x29d239,_0x2dbcc5);return;}_0x1a642e['on'](_0x271c6f[_0x1035a0(0x219)],_0x1a1cf4=>{const _0x56255f=_0x1035a0;if(BINARY_BUSY_ERROR_CODES[_0x56255f(0x216)](_0x1a1cf4[_0x56255f(0x25b)])){const _0x2f4541=path[_0x56255f(0x26f)](_0x39413f,_0x3af8d1);_0x1a642e['close'](),fs[_0x56255f(0x248)](_0x2f4541)?(logger[_0x56255f(0x232)](_0x56255f(0x283)+_0x1a1cf4['message']),_0x46e03c[_0x56255f(0x201)](),fs['unlink'](_0x2002cd,_0x17ff68=>{const _0x33e430=_0x56255f;_0x17ff68&&logger[_0x33e430(0x232)](_0x33e430(0x255)+_0x2002cd);}),_0x271c6f['ihILs'](_0x4128cb,_0x2f4541)):(logger[_0x56255f(0x232)](_0x56255f(0x2c1)+_0x1a1cf4[_0x56255f(0x273)]),fs['unlink'](_0x2d2662,()=>{}),_0x271c6f[_0x56255f(0x292)](_0x29d239,_0x1a1cf4));}else fs[_0x56255f(0x29f)](_0x2d2662,()=>{}),_0x271c6f['ihILs'](_0x29d239,_0x1a1cf4);}),_0x46e03c['openReadStream'](_0x52113a,function(_0x2681bd,_0x4664dd){const _0x3685a7=_0x1035a0;if(_0x2681bd){fs[_0x3685a7(0x29f)](_0x2d2662,()=>{}),_0x271c6f[_0x3685a7(0x26e)](_0x29d239,_0x2681bd);return;}_0x4664dd['on'](_0x271c6f[_0x3685a7(0x205)],function(){const _0x5e9c76=_0x3685a7;_0x1a642e[_0x5e9c76(0x2a6)](),_0x1a642e['on'](_0xe00688[_0x5e9c76(0x2b5)],function(){_0x46e03c['readEntry']();});}),_0x4664dd[_0x3685a7(0x264)](_0x1a642e);});}}),_0x46e03c['on'](_0x52b5bd['NCbTj'],_0x126908=>{const _0x1e7b7d=_0x22ba1d;_0x271c6f[_0x1e7b7d(0x26e)](_0x29d239,_0x126908);}),_0x46e03c[_0x22ba1d(0x20c)](_0x52b5bd[_0x22ba1d(0x2bf)],()=>{const _0x4996d3=_0x22ba1d,_0x3e7a50={'XNaFo':function(_0x2e37ff,_0x576c5b){const _0x5bc39d=a89_0x163f;return _0x271c6f[_0x5bc39d(0x2bd)](_0x2e37ff,_0x576c5b);},'RVzMP':_0x271c6f[_0x4996d3(0x29d)],'wxDPA':function(_0x34e0c2,_0x53901e){const _0x53d471=_0x4996d3;return _0x271c6f[_0x53d471(0x26e)](_0x34e0c2,_0x53901e);},'DHfBZ':function(_0x2cdb5a,_0x13689f){const _0x5a4258=_0x4996d3;return _0x271c6f[_0x5a4258(0x2cc)](_0x2cdb5a,_0x13689f);}};fs['unlink'](_0x2002cd,_0x3d41f8=>{const _0x20dde0=_0x4996d3;_0x3d41f8&&logger[_0x20dde0(0x232)](_0x20dde0(0x255)+_0x2002cd);});const _0x5984ec=path[_0x4996d3(0x26f)](_0x39413f,_0x2d2254+_0x4996d3(0x22e)+process[_0x4996d3(0x2a7)]),_0x55dba7=path[_0x4996d3(0x26f)](_0x39413f,_0x2d2254);fs[_0x4996d3(0x1f2)](_0x5984ec,_0x271c6f[_0x4996d3(0x20e)],function(_0x1e02d3){const _0x396661=_0x4996d3,_0x13ae96={'PwXEB':function(_0x183062,_0x5c1661){const _0xa05e61=a89_0x163f;return _0x3e7a50[_0xa05e61(0x239)](_0x183062,_0x5c1661);},'CHECr':_0x3e7a50[_0x396661(0x2af)],'ZUkjm':function(_0x2cf428,_0x1fdf12){const _0x9ebbe5=_0x396661;return _0x3e7a50[_0x9ebbe5(0x253)](_0x2cf428,_0x1fdf12);},'LnMyf':function(_0x21eb96,_0x11841a){const _0x5bda20=_0x396661;return _0x3e7a50[_0x5bda20(0x253)](_0x21eb96,_0x11841a);}};if(_0x1e02d3){_0x46e03c[_0x396661(0x201)](),fs['unlink'](_0x5984ec,()=>{}),_0x3e7a50['DHfBZ'](_0x29d239,_0x1e02d3);return;}fs[_0x396661(0x274)](_0x5984ec,_0x55dba7,function(_0x646459){const _0x5d83ed=_0x396661;if(_0x646459){if(_0x13ae96[_0x5d83ed(0x24f)](_0x646459[_0x5d83ed(0x25b)],_0x13ae96[_0x5d83ed(0x2d9)])){_0x46e03c[_0x5d83ed(0x201)](),fs[_0x5d83ed(0x29f)](_0x5984ec,()=>{}),_0x13ae96[_0x5d83ed(0x208)](_0x29d239,_0x646459);return;}logger[_0x5d83ed(0x232)](_0x5d83ed(0x1fe)+_0x646459[_0x5d83ed(0x273)]);try{fs['copyFileSync'](_0x5984ec,_0x55dba7);}catch(_0xbec3bc){_0x46e03c[_0x5d83ed(0x201)](),fs['unlink'](_0x5984ec,()=>{}),_0x13ae96['LnMyf'](_0x29d239,_0xbec3bc);return;}fs['unlink'](_0x5984ec,_0x373109=>{const _0x415da3=_0x5d83ed;_0x373109&&logger[_0x415da3(0x232)](_0x415da3(0x28a)+_0x373109[_0x415da3(0x273)]);});}_0x46e03c[_0x5d83ed(0x201)](),_0x13ae96[_0x5d83ed(0x1f4)](_0x4128cb,_0x55dba7);});});});});});}static['getTestFrameworkDetail'](){const _0x125afa=a89_0x3c5521;if(process[_0x125afa(0x254)][_0x125afa(0x260)])return JSON[_0x125afa(0x246)](process['env']['BROWSERSTACK_TEST_FRAMEWORK_DETAIL']);return this[_0x125afa(0x295)];}static[a89_0x3c5521(0x27b)](){const _0x126478=a89_0x3c5521;if(process['env']['BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL'])return JSON[_0x126478(0x246)](process['env'][_0x126478(0x200)]);return this['automationFrameworkDetail'];}static[a89_0x3c5521(0x297)](_0x23b3b8,_0x2997a6){const _0x8b82bb=a89_0x3c5521,_0x4e9c60={'EOfnM':'3|4|1|2|0','jsdoU':function(_0x430397,_0x1f3e96){return _0x430397(_0x1f3e96);},'RwoOS':function(_0x506796,_0x13b652){return _0x506796||_0x13b652;},'fPajE':function(_0x478494,_0x517d45){return _0x478494(_0x517d45);}},_0x582652=_0x4e9c60[_0x8b82bb(0x280)]['split']('|');let _0x3b5486=0x0;while(!![]){switch(_0x582652[_0x3b5486++]){case'0':process[_0x8b82bb(0x254)][_0x8b82bb(0x260)]=JSON['stringify'](this['testFrameworkDetail']);continue;case'1':this[_0x8b82bb(0x235)]={'name':_0x2997a6,'version':_0x4e9c60[_0x8b82bb(0x251)](getFrameworkVersion,_0x2997a6)};continue;case'2':process[_0x8b82bb(0x254)][_0x8b82bb(0x200)]=JSON[_0x8b82bb(0x276)](this[_0x8b82bb(0x235)]);continue;case'3':_0x4e9c60[_0x8b82bb(0x296)](!_0x23b3b8,!_0x2997a6)&&logger[_0x8b82bb(0x21f)](_0x8b82bb(0x2a9)+_0x23b3b8+_0x8b82bb(0x20f)+_0x2997a6);continue;case'4':this[_0x8b82bb(0x295)]={'name':_0x23b3b8,'version':{[_0x23b3b8]:_0x4e9c60[_0x8b82bb(0x215)](getFrameworkVersion,_0x23b3b8)}};continue;}break;}}static[a89_0x3c5521(0x2c9)](_0x3fa1fd,_0x2417ee){return _0x3fa1fd+':'+_0x2417ee;}static[a89_0x3c5521(0x27c)](){const _0xfa71ca=a89_0x3c5521;return process[_0xfa71ca(0x2a7)]+':'+threadId;}static[a89_0x3c5521(0x2d5)](_0x58f36d){const _0x46b0e4=a89_0x3c5521;if(_0x58f36d[_0x46b0e4(0x2b6)]&&_0x58f36d[_0x46b0e4(0x2b6)][_0x46b0e4(0x1ff)])return!![];return![];}static[a89_0x3c5521(0x2bb)](_0x21a17e){const _0x5dc5a3=a89_0x3c5521;if(_0x21a17e[_0x5dc5a3(0x2b6)]&&_0x21a17e[_0x5dc5a3(0x2b6)]['skipSessionStatus'])return!![];return![];}static['matchHookRegex'](_0x37b04e){const _0x15ee44=a89_0x3c5521,_0xddc2ab=new RegExp(TestFrameworkConstants[_0x15ee44(0x2b1)]);return _0xddc2ab[_0x15ee44(0x289)](_0x37b04e);}static[a89_0x3c5521(0x2c7)](_0x52e898,_0x3ab96c){const _0x1b26c=a89_0x3c5521,_0x4d8ded={};_0x4d8ded[_0x1b26c(0x282)]=function(_0xa3bb97,_0x49ab50){return _0xa3bb97!==_0x49ab50;},_0x4d8ded[_0x1b26c(0x1f3)]=function(_0x261e9f,_0x4d678b){return _0x261e9f===_0x4d678b;},_0x4d8ded[_0x1b26c(0x257)]=_0x1b26c(0x233);const _0x16c863=_0x4d8ded;for(const [_0x14b52c,_0x361ccd]of Object[_0x1b26c(0x245)](_0x3ab96c)){if(_0x16c863[_0x1b26c(0x282)](_0x361ccd,null)&&_0x16c863[_0x1b26c(0x1f3)](typeof _0x361ccd,_0x16c863[_0x1b26c(0x257)])&&!Array[_0x1b26c(0x2c0)](_0x361ccd))_0x52e898[_0x14b52c]=this[_0x1b26c(0x2c7)](_0x52e898[_0x14b52c]||{},_0x361ccd);else Array['isArray'](_0x361ccd)?_0x52e898[_0x14b52c]=(_0x52e898[_0x14b52c]||[])[_0x1b26c(0x227)](_0x361ccd):_0x52e898[_0x14b52c]=_0x361ccd;}return _0x52e898;}}function a89_0x163f(_0x556e4c,_0x23d553){const _0x4991a6=a89_0x4991();return a89_0x163f=function(_0x163fc9,_0x175e25){_0x163fc9=_0x163fc9-0x1f1;let _0x46c7a7=_0x4991a6[_0x163fc9];return _0x46c7a7;},a89_0x163f(_0x556e4c,_0x23d553);}function a89_0x4991(){const _0xcadca=['EOfnM','1184myowHP','hflMV','Temp\x20file\x20became\x20busy\x20during\x20write,\x20falling\x20back\x20to\x20existing\x20binary:\x20','\x20from\x20','wJimL','../utils/constants','timeout','320aoRuom','test','Failed\x20to\x20unlink\x20temp\x20file\x20after\x20cross-device\x20copy:\x20','downloadLatestBinary','FmnxD','FYeHG','cuVPp','entry','SHELL_EXECUTE_ERROR','UzsDP','nLlle','unix:/tmp/sdk-platform-','isDevelopmentEnv','testFrameworkDetail','RwoOS','setFrameworkDetail','nlVvY','Existing\x20binary\x20is\x20currently\x20in\x20use,\x20skipping\x20update\x20and\x20continuing\x20with\x20current\x20version:\x20','111850OcSTzl','SMMdY','vRiVu','FgxmO','BROWSERSTACK_BINARY_URL','unlink','uMnjw','AZyNm','BROWSERSTACK_CLI_ENV','qsZWa','checkAndUpdateCli','463728dpRbpy','end','pid','307643lemddc','Test\x20or\x20Automation\x20framework\x20not\x20provided\x20testFramework=','bBmsx','VRwRx','GmVhb','PNYFh','../../helpers/utilities','RVzMP','requestToUpdateCLI','HOOK_REGEX','0755','GkqdC','dclfU','jTVjK','testContextOptions','error','.browserstack','startsWith','URBWP','shouldSkipSessionStatus','follow-redirects','OOQgL','VkFli','PuEBn','isArray','Temp\x20file\x20became\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','aaYmu','./state/testFrameworkState.js','BaksF','isBinaryBusy','format','mergeObject','EkUnX','getHookRegistryKey','get','RtgJX','UZfrg','downloaded_file_','getCliDir','exports','ZfBJK','JRptl','zQjIT','PHeiu','Error\x20in\x20getting\x20writable\x20directory,\x20writableDir=','shouldSkipSessionName','readEntry','hPUcr','getSdkVersion','CHECr','cli','565CohTfk','chmod','qGbqR','LnMyf','Binary\x20is\x20busy:\x20','NpRxz','../../helpers/test-observability/utils.js','23949LRGAYm','uDGZF','fileName','worker_threads','../utils/apiUtilityMethods.js','EXDEV','Cross-device\x20rename,\x20falling\x20back\x20to\x20copy:\x20','skipSessionName','BROWSERSTACK_AUTOMATION_FRAMEWORK_DETAIL','close','../../helpers/helper','arch','Temp\x20file\x20is\x20busy\x20and\x20no\x20existing\x20binary\x20found:\x20','UZjlM','DOWNLOAD_HTTP','statSync','ZUkjm','BOwuu','readdirSync','cwd','once','response\x20','orXiB',',\x20automationFramework=','\x20already\x20exists','WIzKi','Folder\x20does\x20not\x20exist:\x20','NLyPH','./state/hookState.js','fPajE','includes','kVaNw','downloadFileStream','wNOcl','Need\x20to\x20update\x20binary,\x20current\x20binary\x20version:\x20','hkidT','cli_version','GET','runShellCommand','debug','Got\x20Error\x20while\x20downloading\x20SDK\x20binary\x20file\x20%s','asydb','itCJo','resume','start','listen','fhOpv','concat','mtime','getExistingCliPath','iIHTz','trim','version','getWritableDir','.tmp.','SDK_CLI_DOWNLOAD','BROWSERSTACK_FILES_DIR','1297782kEXMEy','warn','object','Error\x20checking\x20if\x20binary\x20is\x20busy:\x20','automationFrameworkDetail','Unable\x20to\x20set\x20required\x20permissions\x20to\x20','OILBL','../../helpers/classLogger.js','XNaFo','kzYfU','isFile','lazyEntries','xMEci','Current\x20CLI\x20Path\x20Found:\x20','206289oOpczu','closeSync','tmpdir','url','iYgEI','SDK_CLI_BIN_PATH','entries','parse','./state/automationFrameworkState.js','existsSync','getCLIParamsForDevEnv','FPiAI','getSdkLanguage','isDirectory','open','info','PwXEB','platform','jsdoU','Temp\x20file\x20is\x20busy,\x20falling\x20back\x20to\x20existing\x20binary:\x20','wxDPA','env','Failed\x20to\x20delete\x20zip\x20file:\x20','bEcDd','gyFqZ','destroy','statusCode','map','code','util','Resolved\x20binary\x20path:\x20','rxwps','Nfmrt','BROWSERSTACK_TEST_FRAMEWORK_DETAIL','preserveStatusCodeOnError','gCMuI','hIIuQ','pipe','Using\x20BROWSERSTACK_BINARY_URL\x20from\x20env\x20variable:\x20','No\x20writable\x20directory\x20available\x20for\x20the\x20CLI','sEvTT','Development\x20Cli\x20Path:\x20','Error\x20in\x20setting\x20up\x20cli\x20path\x20directory,\x20Exception:\x20','BNRvO','Folder\x20','CLI\x20version\x20found\x20despite\x20error:\x20\x22','Downloading\x20SDK\x20binary\x20from:\x20','ihILs','join','Resolving\x20with\x20stdout:\x20\x22','createWriteStream','../../helpers/performance/constants','message','rename','GuZVF','stringify','data','SDK_CLI_CHECK_UPDATE','mAifK','Setting\x20required\x20permissions\x20to\x20','getAutomationFrameworkDetail','getCurrentInstanceName','yauzl','dVynx','izIXV'];a89_0x4991=function(){return _0xcadca;};return a89_0x4991();}module[a89_0x3c5521(0x2cf)]=CLIUtils;
@@ -1 +1 @@
1
- 'use strict';const a90_0x50e03d=a90_0x27f5;(function(_0x2430aa,_0x3c0b81){const _0x12acce=a90_0x27f5,_0x2da190=_0x2430aa();while(!![]){try{const _0x1fa109=-parseInt(_0x12acce(0x137))/0x1*(parseInt(_0x12acce(0x16b))/0x2)+-parseInt(_0x12acce(0x15a))/0x3*(parseInt(_0x12acce(0x149))/0x4)+parseInt(_0x12acce(0x155))/0x5*(parseInt(_0x12acce(0x11d))/0x6)+parseInt(_0x12acce(0x135))/0x7*(parseInt(_0x12acce(0x133))/0x8)+parseInt(_0x12acce(0x148))/0x9+parseInt(_0x12acce(0x175))/0xa+-parseInt(_0x12acce(0x11b))/0xb;if(_0x1fa109===_0x3c0b81)break;else _0x2da190['push'](_0x2da190['shift']());}catch(_0x1d63f1){_0x2da190['push'](_0x2da190['shift']());}}}(a90_0x410d,0x5799e));function a90_0x27f5(_0x242877,_0x522384){const _0x410d4e=a90_0x410d();return a90_0x27f5=function(_0x27f516,_0x25e6fc){_0x27f516=_0x27f516-0xf8;let _0x2c52ed=_0x410d4e[_0x27f516];return _0x2c52ed;},a90_0x27f5(_0x242877,_0x522384);}const fs=require('fs'),os=require('os'),path=require(a90_0x50e03d(0x119)),helper=require(a90_0x50e03d(0x172)),AutomationFramework=require(a90_0x50e03d(0x150)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),PlaywrightDriverModule=require(a90_0x50e03d(0x13c)),TestInfo=require(a90_0x50e03d(0x17a)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a90_0x50e03d(0x156)),BUILD_TAG_FILE_PREFIX=a90_0x50e03d(0x112);function getBuildTagsRunId(){const _0xd7389a=a90_0x50e03d,_0x1e68e6={};_0x1e68e6[_0xd7389a(0x14e)]=function(_0x11d7a1,_0x39933b){return _0x11d7a1===_0x39933b;},_0x1e68e6['vnYui']='null';const _0x14f630=_0x1e68e6,_0x5c54bc=process[_0xd7389a(0x109)][_0xd7389a(0x13a)];if(!_0x5c54bc||_0x14f630[_0xd7389a(0x14e)](_0x5c54bc,_0x14f630['vnYui']))return null;return _0x5c54bc;}function getBuildTagsFilePath(_0x3f5b07){const _0x46f4e2=a90_0x50e03d;return path[_0x46f4e2(0x10c)](os['tmpdir'](),''+BUILD_TAG_FILE_PREFIX+_0x3f5b07+'_'+process['pid']+_0x46f4e2(0x139));}class CustomTagManager{static [a90_0x50e03d(0x132)]={};static [a90_0x50e03d(0x174)]={};static[a90_0x50e03d(0x15d)](_0x49197f,_0x367477){const _0x2e7f04=a90_0x50e03d;return Array[_0x2e7f04(0xfa)](new Set([..._0x49197f||[],..._0x367477||[]]));}static[a90_0x50e03d(0x10a)](_0x187dd2,_0xad9f84,_0x26d754){const _0x330316=a90_0x50e03d,_0x2f66a6={};_0x2f66a6[_0x330316(0x126)]=_0x330316(0x143);const _0x1d7f7b=_0x2f66a6;if(!_0x187dd2[_0xad9f84]){const _0x124012={};_0x124012[_0x330316(0x176)]=_0x1d7f7b[_0x330316(0x126)],_0x124012[_0x330316(0xfe)]=[..._0x26d754||[]],_0x187dd2[_0xad9f84]=_0x124012;}else!_0x187dd2[_0xad9f84][_0x330316(0x176)]&&(_0x187dd2[_0xad9f84][_0x330316(0x176)]=_0x1d7f7b[_0x330316(0x126)]),!Array[_0x330316(0x12e)](_0x187dd2[_0xad9f84][_0x330316(0xfe)])&&(_0x187dd2[_0xad9f84][_0x330316(0xfe)]=[]),_0x187dd2[_0xad9f84]['values']=CustomTagManager[_0x330316(0x15d)](_0x187dd2[_0xad9f84]['values'],_0x26d754);return _0x187dd2;}static async['setCustomTags'](_0x1e5998,_0x48c7fd,_0x335205=![]){const _0x3a9c4b=a90_0x50e03d,_0x4cadb5={'zFAkI':function(_0x40cd81,_0x388a10){return _0x40cd81!==_0x388a10;},'iCRSo':_0x3a9c4b(0x110),'CZNRT':_0x3a9c4b(0x13f),'miVWE':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','xeyRB':function(_0x519f73,_0x2f675a){return _0x519f73===_0x2f675a;},'HBLkD':_0x3a9c4b(0x103),'heGtH':_0x3a9c4b(0x14a),'USVtS':function(_0x5644a9,_0x3d2a60){return _0x5644a9(_0x3d2a60);},'EMSns':'./browserstackCLI','uGpWM':function(_0xc48dc2){return _0xc48dc2();},'VumUN':_0x3a9c4b(0x143),'xkjPB':function(_0x468b23,_0x366eb4){return _0x468b23>_0x366eb4;},'JbPmv':function(_0x2f5ac4,_0x18682f){return _0x2f5ac4(_0x18682f);},'XMSdh':_0x3a9c4b(0x15b),'cpPcv':':jest-','ayGxc':function(_0x3c7258,_0x15a11f){return _0x3c7258(_0x15a11f);},'qleTg':_0x3a9c4b(0x127),'FhUzx':'jest','eVJTD':_0x3a9c4b(0x173),'tdbyV':_0x3a9c4b(0x170),'qmTIt':function(_0x3501c4,_0x3ab7f2){return _0x3501c4(_0x3ab7f2);},'YmnJO':_0x3a9c4b(0x131),'FnZDH':function(_0x13840d,_0xf463d0){return _0x13840d(_0xf463d0);},'SWidx':'./state/hookState','OlULx':_0x3a9c4b(0x105),'ELSiF':function(_0x1a8894,_0x28d259){return _0x1a8894(_0x28d259);},'SwHai':function(_0x3c4815,_0x484b22){return _0x3c4815===_0x484b22;},'SfnGQ':_0x3a9c4b(0x177)};if(_0x4cadb5[_0x3a9c4b(0x129)](typeof _0x1e5998,_0x4cadb5['iCRSo'])){logger[_0x3a9c4b(0x163)](_0x4cadb5['CZNRT']);return;}if(_0x4cadb5[_0x3a9c4b(0x129)](typeof _0x48c7fd,_0x4cadb5['iCRSo'])){logger['debug'](_0x4cadb5['miVWE']);return;}if(_0x4cadb5[_0x3a9c4b(0x124)](_0x1e5998[_0x3a9c4b(0x15e)](),'')){logger[_0x3a9c4b(0x163)](_0x4cadb5['HBLkD']);return;}if(_0x4cadb5['xeyRB'](_0x48c7fd[_0x3a9c4b(0x15e)](),'')){logger[_0x3a9c4b(0x163)](_0x4cadb5['heGtH']);return;}const _0x1975cd=helper[_0x3a9c4b(0x161)](_0x48c7fd);if(_0x335205){const _0x2c28b5=_0x4cadb5[_0x3a9c4b(0x144)](require,_0x4cadb5[_0x3a9c4b(0x106)]),_0x371e49=_0x2c28b5['getInstance'](),_0x77e1e1=_0x371e49&&_0x371e49[_0x3a9c4b(0xfb)][TestHubModule[_0x3a9c4b(0x102)]];if(_0x77e1e1){const _0x5a1955=_0x77e1e1?.[_0x3a9c4b(0x146)]?.[_0x3a9c4b(0x145)]()?.['buildHashedId'];TestInfo[_0x3a9c4b(0x142)](_0x5a1955),await TestInfo[_0x3a9c4b(0x120)](_0x5a1955,_0x1e5998,_0x1975cd);!this[_0x3a9c4b(0x132)][_0x5a1955]&&(this[_0x3a9c4b(0x132)][_0x5a1955]={});this[_0x3a9c4b(0x132)][_0x5a1955][_0x1e5998]=CustomTagManager[_0x3a9c4b(0x15d)](this['buildLevelTags'][_0x5a1955][_0x1e5998],_0x1975cd);try{const _0x34f899=_0x4cadb5['uGpWM'](getBuildTagsRunId);if(_0x34f899){const _0x445dc8={};for(const [_0xa2c5e7,_0x33dc95]of Object[_0x3a9c4b(0x166)](this[_0x3a9c4b(0x132)][_0x5a1955]||{})){_0x445dc8[_0xa2c5e7]={'field_type':_0x4cadb5[_0x3a9c4b(0x167)],'values':Array[_0x3a9c4b(0x12e)](_0x33dc95)?[..._0x33dc95]:[]};}_0x4cadb5['xkjPB'](Object[_0x3a9c4b(0xfd)](_0x445dc8)[_0x3a9c4b(0x101)],0x0)&&await fs[_0x3a9c4b(0x11a)][_0x3a9c4b(0x164)](_0x4cadb5['JbPmv'](getBuildTagsFilePath,_0x34f899),JSON[_0x3a9c4b(0x12c)](_0x445dc8));}else logger['debug'](_0x4cadb5[_0x3a9c4b(0x13b)]);}catch(_0x7dad41){logger[_0x3a9c4b(0x163)](_0x3a9c4b(0x168)+(_0x7dad41&&_0x7dad41[_0x3a9c4b(0x114)]?_0x7dad41[_0x3a9c4b(0x114)]:_0x7dad41));}}}else{let _0x4e398d;const _0xde8dd8=global[_0x3a9c4b(0x162)];let _0xf573da=![];if(_0xde8dd8&&_0xde8dd8[_0x3a9c4b(0x13d)](_0x4cadb5[_0x3a9c4b(0x100)]))_0xf573da=!![],_0x4e398d=_0xde8dd8;else try{const _0x15becd=_0x4cadb5[_0x3a9c4b(0x111)](require,_0x4cadb5[_0x3a9c4b(0x10f)]),_0x112398=_0x4cadb5[_0x3a9c4b(0x144)](require,_0x4cadb5[_0x3a9c4b(0x106)]);if(_0x112398[_0x3a9c4b(0x179)]()['isRunning']()){const _0x595611=_0x15becd[_0x3a9c4b(0x11f)]();if(_0x4cadb5[_0x3a9c4b(0x124)](_0x595611?.[_0x3a9c4b(0x11c)]?.['toLowerCase'](),_0x4cadb5[_0x3a9c4b(0x125)])){const _0x4c39c4=AutomationFramework['getTrackedInstance']();_0x4e398d=AutomationFramework[_0x3a9c4b(0x10d)](_0x4c39c4,PlaywrightDriverModule[_0x3a9c4b(0x134)],''),_0x4e398d&&_0x4e398d[_0x3a9c4b(0x13d)](_0x4cadb5[_0x3a9c4b(0x100)])&&(_0xf573da=!![]);}}}catch(_0x36edea){logger[_0x3a9c4b(0x163)](_0x3a9c4b(0x152)+_0x36edea);}if(_0xf573da){if(!_0x4e398d)throw new Error(_0x4cadb5['eVJTD']);const _0x299e2c=_0x4cadb5[_0x3a9c4b(0x144)](require,_0x4cadb5[_0x3a9c4b(0x106)]),_0x99991b=_0x299e2c[_0x3a9c4b(0x179)]()[_0x3a9c4b(0x130)]();if(!_0x99991b)throw new Error(_0x4cadb5[_0x3a9c4b(0x151)]);const _0xd18a3e=_0x4cadb5[_0x3a9c4b(0x117)](require,_0x4cadb5[_0x3a9c4b(0x138)]),_0x579b4f=_0x4cadb5['FnZDH'](require,_0x4cadb5[_0x3a9c4b(0x12f)]),_0x392630=_0x99991b[_0x3a9c4b(0x118)](_0xd18a3e[_0x3a9c4b(0x147)],_0x579b4f[_0x3a9c4b(0xff)]);if(!_0x392630)throw new Error(_0x4cadb5['OlULx']);const _0x2e4697=_0x392630[_0x3a9c4b(0x14f)]()[_0x3a9c4b(0x108)](_0x4e398d)||{},_0x2dc4e7=_0x2e4697[TestFrameworkConstants[_0x3a9c4b(0x10b)]]||{};logger[_0x3a9c4b(0x163)](_0x3a9c4b(0x13e)+_0x4e398d+_0x3a9c4b(0x116)+_0x1e5998+_0x3a9c4b(0x140)+JSON[_0x3a9c4b(0x12c)](_0x1975cd)+_0x3a9c4b(0x16f)+JSON[_0x3a9c4b(0x12c)](_0x2dc4e7)),CustomTagManager[_0x3a9c4b(0x10a)](_0x2dc4e7,_0x1e5998,_0x1975cd),logger['debug'](_0x3a9c4b(0xf9)+_0x1e5998+_0x3a9c4b(0x122)+JSON['stringify'](_0x2dc4e7[_0x1e5998]['values']));const _0x54f614={[TestFrameworkConstants[_0x3a9c4b(0x10b)]]:_0x2dc4e7},_0x5ca14f={};_0x5ca14f[_0x4e398d]=_0x54f614,_0x392630[_0x3a9c4b(0x16a)](_0x5ca14f),logger[_0x3a9c4b(0x163)](_0x3a9c4b(0x17b)+_0x4e398d+_0x3a9c4b(0x14d)+JSON[_0x3a9c4b(0x12c)](_0x2dc4e7)),!this[_0x3a9c4b(0x174)][_0x4e398d]&&(this[_0x3a9c4b(0x174)][_0x4e398d]={}),this[_0x3a9c4b(0x174)][_0x4e398d][_0x1e5998]=CustomTagManager['mergeValues'](this[_0x3a9c4b(0x174)][_0x4e398d][_0x1e5998],_0x1975cd);}else{const _0x2784d8=global[_0x3a9c4b(0x14c)]?.['currentTest']?.['testInfo'];if(!_0x2784d8){const _0x34d704=AutomationFramework[_0x3a9c4b(0x12d)]();_0x4e398d=AutomationFramework['getState'](_0x34d704,PlaywrightDriverModule[_0x3a9c4b(0x134)],'');if(!_0x4e398d)try{const _0x4f6256=_0x4cadb5[_0x3a9c4b(0x178)](require,_0x4cadb5[_0x3a9c4b(0x106)]),_0x20374f=_0x4f6256['getInstance'](),_0x49ce05=_0x20374f&&_0x20374f[_0x3a9c4b(0x130)]();_0x4e398d=_0x49ce05&&_0x4cadb5['SwHai'](typeof _0x49ce05[_0x3a9c4b(0x128)],_0x4cadb5['SfnGQ'])&&_0x49ce05[_0x3a9c4b(0x128)]()||_0x4e398d;}catch(_0x4f3cbf){logger['debug'](_0x3a9c4b(0x16d)+(_0x4f3cbf&&_0x4f3cbf[_0x3a9c4b(0x114)]));}}else _0x4e398d=TestInfo[_0x3a9c4b(0x169)](_0x2784d8,_0x2784d8['retry']);await TestInfo['appendCustomTagAsync'](_0x4e398d,_0x1e5998,_0x1975cd),!this[_0x3a9c4b(0x174)][_0x4e398d]&&(this['testLevelTags'][_0x4e398d]={}),this[_0x3a9c4b(0x174)][_0x4e398d][_0x1e5998]=CustomTagManager[_0x3a9c4b(0x15d)](this[_0x3a9c4b(0x174)][_0x4e398d][_0x1e5998],_0x1975cd);}}}static[a90_0x50e03d(0x14b)](){const _0x301a36=a90_0x50e03d,_0x25a25d={...this[_0x301a36(0x132)]};return _0x25a25d;}static[a90_0x50e03d(0x123)](){const _0x449f80=a90_0x50e03d,_0x327a9f={...this[_0x449f80(0x174)]};return _0x327a9f;}static['clearTags'](){const _0x640873=a90_0x50e03d;this[_0x640873(0x132)]={},this[_0x640873(0x174)]={};}static[a90_0x50e03d(0x113)](_0x2d9944,_0x361c99){const _0x5949f1=a90_0x50e03d,_0x348769={};_0x348769[_0x5949f1(0xf8)]=function(_0x2b2dc8,_0x2e786e){return _0x2b2dc8||_0x2e786e;};const _0x249fbc=_0x348769;if(!_0x2d9944)return;!this[_0x5949f1(0x132)][_0x2d9944]&&(this[_0x5949f1(0x132)][_0x2d9944]={});for(const [_0xf99750,_0x5bf1a3]of Object[_0x5949f1(0x166)](_0x249fbc[_0x5949f1(0xf8)](_0x361c99,{}))){if(!_0x5bf1a3||!Array[_0x5949f1(0x12e)](_0x5bf1a3[_0x5949f1(0xfe)]))continue;this['buildLevelTags'][_0x2d9944][_0xf99750]=CustomTagManager[_0x5949f1(0x15d)](this[_0x5949f1(0x132)][_0x2d9944][_0xf99750],_0x5bf1a3[_0x5949f1(0xfe)]);}}static['aggregateBuildLevelTagsFromTmp'](_0x3e376c,_0x286020){const _0x6e2376=a90_0x50e03d,_0xf310a9={};_0xf310a9[_0x6e2376(0x11e)]=_0x6e2376(0x158),_0xf310a9[_0x6e2376(0x115)]=function(_0x55f122,_0x4c8152){return _0x55f122*_0x4c8152;},_0xf310a9[_0x6e2376(0x171)]=function(_0x57ce6e,_0x49f6c2){return _0x57ce6e*_0x49f6c2;},_0xf310a9[_0x6e2376(0x16c)]=function(_0x2a8129,_0x7baf4d){return _0x2a8129>_0x7baf4d;},_0xf310a9[_0x6e2376(0x160)]=function(_0x263c41,_0x158a72){return _0x263c41-_0x158a72;},_0xf310a9[_0x6e2376(0x10e)]='utf8';const _0x5c0c6d=_0xf310a9;if(!_0x3e376c)return logger[_0x6e2376(0x163)](_0x5c0c6d[_0x6e2376(0x11e)]),0x0;let _0x1f91d8;try{_0x1f91d8=os[_0x6e2376(0x136)]();}catch(_0x41dddd){return logger[_0x6e2376(0x163)](_0x6e2376(0x107)+_0x41dddd),0x0;}let _0x5ccb86;try{_0x5ccb86=fs[_0x6e2376(0x165)](_0x1f91d8);}catch(_0x52d593){return logger['debug'](_0x6e2376(0x141)+_0x52d593),0x0;}const _0x598b47=''+BUILD_TAG_FILE_PREFIX+_0x3e376c+'_',_0x108091=_0x5ccb86['filter'](_0x5a1460=>_0x5a1460[_0x6e2376(0x12b)](_0x598b47)&&_0x5a1460['endsWith'](_0x6e2376(0x139))),_0x9acb32=_0x5c0c6d['ioMVF'](_0x5c0c6d[_0x6e2376(0x171)](_0x5c0c6d[_0x6e2376(0x115)](0x2,0x3c),0x3c),0x3e8);let _0xcfee88=0x0;for(const _0x3159e0 of _0x108091){const _0x28b052=path[_0x6e2376(0x10c)](_0x1f91d8,_0x3159e0);try{const _0x2dfc21=fs[_0x6e2376(0xfc)](_0x28b052);if(_0x5c0c6d[_0x6e2376(0x16c)](_0x5c0c6d[_0x6e2376(0x160)](Date['now'](),_0x2dfc21[_0x6e2376(0x159)]),_0x9acb32)){logger['debug'](_0x6e2376(0x15c)+_0x9acb32+_0x6e2376(0x104)+_0x3159e0);try{fs['unlinkSync'](_0x28b052);}catch(_0x1a827a){logger[_0x6e2376(0x163)](_0x6e2376(0x153)+_0x3159e0+':\x20'+(_0x1a827a&&_0x1a827a[_0x6e2376(0x114)]?_0x1a827a[_0x6e2376(0x114)]:_0x1a827a));}continue;}const _0x20a47e=fs[_0x6e2376(0x16e)](_0x28b052,_0x5c0c6d[_0x6e2376(0x10e)]),_0xf88d65=JSON[_0x6e2376(0x121)](_0x20a47e);this[_0x6e2376(0x113)](_0x286020,_0xf88d65),_0xcfee88+=0x1;}catch(_0x489a72){logger[_0x6e2376(0x163)](_0x6e2376(0x154)+_0x3159e0+':\x20'+(_0x489a72&&_0x489a72[_0x6e2376(0x114)]?_0x489a72[_0x6e2376(0x114)]:_0x489a72));}try{fs['unlinkSync'](_0x28b052);}catch(_0x240736){logger[_0x6e2376(0x163)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20'+_0x3159e0+':\x20'+(_0x240736&&_0x240736[_0x6e2376(0x114)]?_0x240736[_0x6e2376(0x114)]:_0x240736));}}return _0xcfee88;}}const a90_0x5bf11a={};a90_0x5bf11a[a90_0x50e03d(0x157)]=getBuildTagsRunId,a90_0x5bf11a['getBuildTagsFilePath']=getBuildTagsFilePath,a90_0x5bf11a[a90_0x50e03d(0x17c)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a90_0x50e03d(0x12a)]=a90_0x5bf11a,module[a90_0x50e03d(0x15f)]=CustomTagManager;function a90_0x410d(){const _0x212a25=['resolveInstance','path','promises','8272407kwTKwv','name','16980CgxqdV','LITxn','getTestFrameworkDetail','appendCustomTagAsync','parse','\x20->\x20values=','getTestLevelTags','xeyRB','FhUzx','JRwEn','./cliUtils','getCurrentTestUUID','zFAkI','_testInternals','startsWith','stringify','getTrackedInstance','isArray','SWidx','getTestFramework','./state/testFrameworkState','buildLevelTags','296hyFfTt','KEY_TEST_ID','15484FgnDkX','tmpdir','21321jGVTNq','YmnJO','.json','BROWSERSTACK_TESTHUB_UUID','XMSdh','./modules/playwrightDriverModule','includes','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract',',\x20values=','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','getTestUUID','multi_dropdown','USVtS','toObject','testhubConfig','TEST','4582845aCsVSA','4bgLxMD','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','getBuildLevelTags','__workerDetails',',\x20finalTags=','WksXX','getAllData','./framework/automationFramework','tdbyV','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','770PrfghZ','CustomTagManager','getBuildTagsRunId','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','mtimeMs','329142vkPMQB','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>','mergeValues','trim','exports','kZnEJ','parseCommaSeparatedValues','__jestCurrentTestIdentifier','debug','writeFile','readdirSync','entries','VumUN','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','getTestIdentifierFromTestInfo','addMultipleEntries','40YMbMLP','xOhLa','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','readFileSync',',\x20existingTags=','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','qfoIp','../../helpers/helper','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','testLevelTags','6201160EfqdIR','field_type','function','ELSiF','getInstance','./TestInfo','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','BUILD_TAG_FILE_PREFIX','RqoQn','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','from','modules','statSync','keys','values','POST','cpPcv','length','MODULE_NAME','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','ms)\x20','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','EMSns','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20','get','env','mergeIntoTags','KEY_CUSTOM_TAGS','join','getState','bfBdN','qleTg','string','ayGxc','bstack_build_tags_','mergeBuildLevelTags','message','ioMVF',',\x20key=','qmTIt'];a90_0x410d=function(){return _0x212a25;};return a90_0x410d();}
1
+ 'use strict';const a90_0x11a3be=a90_0xe777;(function(_0xaaf867,_0x46390e){const _0x46225a=a90_0xe777,_0x40f143=_0xaaf867();while(!![]){try{const _0x3b615d=parseInt(_0x46225a(0xa5))/0x1+parseInt(_0x46225a(0xa6))/0x2+-parseInt(_0x46225a(0xf6))/0x3*(-parseInt(_0x46225a(0xbc))/0x4)+parseInt(_0x46225a(0xf1))/0x5+parseInt(_0x46225a(0xcb))/0x6+parseInt(_0x46225a(0xfa))/0x7*(-parseInt(_0x46225a(0x8a))/0x8)+-parseInt(_0x46225a(0xbb))/0x9;if(_0x3b615d===_0x46390e)break;else _0x40f143['push'](_0x40f143['shift']());}catch(_0x4a6a66){_0x40f143['push'](_0x40f143['shift']());}}}(a90_0x2570,0xb8a65));const fs=require('fs'),os=require('os'),path=require(a90_0x11a3be(0xb7)),helper=require(a90_0x11a3be(0xe8)),AutomationFramework=require(a90_0x11a3be(0x8c)),TestFrameworkConstants=require(a90_0x11a3be(0xdc)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a90_0x11a3be(0xc6)),TestHubModule=require('./modules/testhubModule'),{createClassLogger}=require('../../helpers/classLogger'),logger=createClassLogger(a90_0x11a3be(0xb2)),BUILD_TAG_FILE_PREFIX='bstack_build_tags_';function getBuildTagsRunId(){const _0x2989f6=a90_0x11a3be,_0x346066={};_0x346066[_0x2989f6(0xdf)]=function(_0x1e9961,_0x514715){return _0x1e9961===_0x514715;},_0x346066[_0x2989f6(0xc8)]='null';const _0x3af8a1=_0x346066,_0x46b2ff=process['env'][_0x2989f6(0xf4)];if(!_0x46b2ff||_0x3af8a1[_0x2989f6(0xdf)](_0x46b2ff,_0x3af8a1[_0x2989f6(0xc8)]))return null;return _0x46b2ff;}function a90_0x2570(){const _0x2f97d4=['../../helpers/helper','Ztffc','ms)\x20','mergeValues','[CustomTagManager]\x20setCustomTags:\x20Merged\x20tag\x20key=','length','stringify','mergeBuildLevelTags','getCurrentTestUUID','2225485XFUnaY','toLowerCase',',\x20key=','BROWSERSTACK_TESTHUB_UUID','HqLyq','3wkAavr','readFileSync','BUILD_TAG_FILE_PREFIX','statSync','9548497zJwXUj','getTestLevelTags','dxcTA','debug','.json','__jestCurrentTestIdentifier','message','filter','CustomTagManager.setCustomTags:\x20TestFramework\x20not\x20available\x20for\x20Jest+Playwright','includes','wDZIm','retry','getBuildTagsRunId','getTrackedInstance','__workerDetails','tmpdir','_testInternals','from','function','getState','CustomTagManager.setCustomTags:\x20Instance\x20not\x20available\x20for\x20Jest+Playwright','CustomTagManager.setCustomTags:\x20BROWSERSTACK_TESTHUB_UUID\x20not\x20set;\x20skipping\x20build-tag\x20temp-file\x20write','kkesA','8lUEjpE','resolveInstance','./framework/automationFramework','NClzQ','getTestFrameworkDetail','IvdWW','currentTest','testLevelTags','./browserstackCLI','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','KEY_CUSTOM_TAGS','values','rIPpC','writeFile','itEvX','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20non-string\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','pid',',\x20existingTags=','getAllData','zcPWr','VIkgD','CustomTagManager.setCustomTags:\x20node-generic\x20testId\x20fallback\x20failed:\x20','string','utf8','[CustomTagManager]\x20setCustomTags:\x20Jest+Playwright\x20-\x20testIdentifier=','CustomTagManager.setCustomTags\x20:\x20Error\x20detecting\x20Jest+Playwright:\x20','jest','1182219oofYOD','954368hvmkFo','buildLevelTags','vwxuA','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20error\x20reading\x20','YdBzz','TEST','McJqd','join','POST','testhubConfig','setCustomTags','NIKqO','CustomTagManager','field_type','qCyJU','[CustomTagManager]\x20setCustomTags:\x20Stored\x20customTags\x20in\x20instance\x20memory\x20for\x20testIdentifier=','\x20->\x20values=','path','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20','getInstance','CustomTagManager.setCustomTags:\x20No\x20testIdentifier\x20found\x20for\x20Jest+Playwright.\x20This\x20may\x20occur\x20if\x20setCustomTags\x20is\x20called\x20outside\x20test\x20context.','9654453iYqTbs','777756gRuyvx','toObject','mergeIntoTags','name','get','KqNhk','iBjel','LSAYn','VvReU','getBuildTagsFilePath','./TestInfo',',\x20finalTags=','VuQgA','endsWith','trim','5365044LAIOlp','SceFZ','CustomTagManager.setCustomTags:\x20build-tag\x20temp-file\x20write\x20failed:\x20','GZhDt','getTestIdentifierFromTestInfo','./cliUtils','pQKSw',',\x20values=','getTestFramework','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20readdir\x20failed:\x20','multi_dropdown','[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyName\x20—\x20no-op\x20per\x20API\x20contract','./state/hookState','isArray','unlinkSync','BHzsQ','aggregateBuildLevelTagsFromTmp','./framework/constants/testFrameworkConstants','uqKlA','nECFJ','gRLeF','clearTags','exports','parseCommaSeparatedValues','entries','appendCustomTagAsync','readdirSync','CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20no\x20runId\x20provided;\x20nothing\x20to\x20aggregate','./state/testFrameworkState'];a90_0x2570=function(){return _0x2f97d4;};return a90_0x2570();}function a90_0xe777(_0x3d01cd,_0x101e5d){const _0x257002=a90_0x2570();return a90_0xe777=function(_0xe77763,_0x1649b3){_0xe77763=_0xe77763-0x7b;let _0xbdd0a8=_0x257002[_0xe77763];return _0xbdd0a8;},a90_0xe777(_0x3d01cd,_0x101e5d);}function getBuildTagsFilePath(_0x4f6b6d){const _0x58e6ec=a90_0x11a3be;return path[_0x58e6ec(0xad)](os[_0x58e6ec(0x82)](),''+BUILD_TAG_FILE_PREFIX+_0x4f6b6d+'_'+process[_0x58e6ec(0x9a)]+_0x58e6ec(0xfe));}class CustomTagManager{static [a90_0x11a3be(0xa7)]={};static [a90_0x11a3be(0x91)]={};static[a90_0x11a3be(0xeb)](_0x130a64,_0x43e60a){const _0x3b4681=a90_0x11a3be;return Array[_0x3b4681(0x84)](new Set([..._0x130a64||[],..._0x43e60a||[]]));}static[a90_0x11a3be(0xbe)](_0x3849ad,_0x5dc396,_0x5c0ea0){const _0x38dea8=a90_0x11a3be,_0x1a6e6d={};_0x1a6e6d[_0x38dea8(0x9d)]=_0x38dea8(0xd5);const _0x4d4d7a=_0x1a6e6d;if(!_0x3849ad[_0x5dc396]){const _0x45130b={};_0x45130b[_0x38dea8(0xb3)]=_0x4d4d7a[_0x38dea8(0x9d)],_0x45130b['values']=[..._0x5c0ea0||[]],_0x3849ad[_0x5dc396]=_0x45130b;}else!_0x3849ad[_0x5dc396][_0x38dea8(0xb3)]&&(_0x3849ad[_0x5dc396][_0x38dea8(0xb3)]=_0x4d4d7a[_0x38dea8(0x9d)]),!Array['isArray'](_0x3849ad[_0x5dc396][_0x38dea8(0x95)])&&(_0x3849ad[_0x5dc396]['values']=[]),_0x3849ad[_0x5dc396][_0x38dea8(0x95)]=CustomTagManager[_0x38dea8(0xeb)](_0x3849ad[_0x5dc396][_0x38dea8(0x95)],_0x5c0ea0);return _0x3849ad;}static async[a90_0x11a3be(0xb0)](_0x3bf824,_0x112e0d,_0x142b75=![]){const _0x3b5a59=a90_0x11a3be,_0x1b9116={'VIkgD':function(_0x304d35,_0x1e19e2){return _0x304d35!==_0x1e19e2;},'YdBzz':_0x3b5a59(0xa0),'IEOYF':_0x3b5a59(0x93),'pQKSw':_0x3b5a59(0x99),'qCyJU':function(_0xb1167d,_0x59b196){return _0xb1167d===_0x59b196;},'NIKqO':_0x3b5a59(0xd6),'rIPpC':function(_0x151c05,_0x3dcf9d){return _0x151c05===_0x3dcf9d;},'McJqd':'[CustomTagManager]\x20setCustomTags:\x20ignoring\x20empty\x20keyValue\x20—\x20no-op\x20per\x20API\x20contract','vwxuA':function(_0x1b4fe1,_0x27d6b2){return _0x1b4fe1(_0x27d6b2);},'wDZIm':_0x3b5a59(0x92),'KWPlY':function(_0x3ed7dc){return _0x3ed7dc();},'vfZGR':_0x3b5a59(0xd5),'LSAYn':function(_0x5f105e,_0xdd60f){return _0x5f105e>_0xdd60f;},'oPmOT':_0x3b5a59(0x88),'IvdWW':':jest-','iBjel':_0x3b5a59(0xd0),'GZhDt':function(_0x458d57,_0x960d4a){return _0x458d57(_0x960d4a);},'BHzsQ':function(_0x225427,_0x55e4ec){return _0x225427===_0x55e4ec;},'SceFZ':_0x3b5a59(0xa4),'aTltQ':_0x3b5a59(0xba),'dxcTA':_0x3b5a59(0x7b),'nECFJ':_0x3b5a59(0xe7),'Ztffc':_0x3b5a59(0xd7),'uhhAz':_0x3b5a59(0x87),'itEvX':_0x3b5a59(0x85)};if(_0x1b9116[_0x3b5a59(0x9e)](typeof _0x3bf824,_0x1b9116[_0x3b5a59(0xaa)])){logger[_0x3b5a59(0xfd)](_0x1b9116['IEOYF']);return;}if(_0x1b9116['VIkgD'](typeof _0x112e0d,_0x1b9116['YdBzz'])){logger['debug'](_0x1b9116[_0x3b5a59(0xd1)]);return;}if(_0x1b9116[_0x3b5a59(0xb4)](_0x3bf824[_0x3b5a59(0xca)](),'')){logger[_0x3b5a59(0xfd)](_0x1b9116[_0x3b5a59(0xb1)]);return;}if(_0x1b9116[_0x3b5a59(0x96)](_0x112e0d[_0x3b5a59(0xca)](),'')){logger[_0x3b5a59(0xfd)](_0x1b9116[_0x3b5a59(0xac)]);return;}const _0x6e5cc=helper[_0x3b5a59(0xe2)](_0x112e0d);if(_0x142b75){const _0x3c3918=_0x1b9116[_0x3b5a59(0xa8)](require,_0x1b9116[_0x3b5a59(0x7d)]),_0x4c8d91=_0x3c3918[_0x3b5a59(0xb9)](),_0x1c617d=_0x4c8d91&&_0x4c8d91['modules'][TestHubModule['MODULE_NAME']];if(_0x1c617d){const _0xff719d=_0x1c617d?.[_0x3b5a59(0xaf)]?.[_0x3b5a59(0xbd)]()?.['buildHashedId'];TestInfo['getTestUUID'](_0xff719d),await TestInfo[_0x3b5a59(0xe4)](_0xff719d,_0x3bf824,_0x6e5cc);!this[_0x3b5a59(0xa7)][_0xff719d]&&(this[_0x3b5a59(0xa7)][_0xff719d]={});this[_0x3b5a59(0xa7)][_0xff719d][_0x3bf824]=CustomTagManager[_0x3b5a59(0xeb)](this[_0x3b5a59(0xa7)][_0xff719d][_0x3bf824],_0x6e5cc);try{const _0x236cef=_0x1b9116['KWPlY'](getBuildTagsRunId);if(_0x236cef){const _0x3810fb={};for(const [_0x33fe95,_0x4464d6]of Object[_0x3b5a59(0xe3)](this['buildLevelTags'][_0xff719d]||{})){_0x3810fb[_0x33fe95]={'field_type':_0x1b9116['vfZGR'],'values':Array[_0x3b5a59(0xd8)](_0x4464d6)?[..._0x4464d6]:[]};}_0x1b9116[_0x3b5a59(0xc3)](Object['keys'](_0x3810fb)[_0x3b5a59(0xed)],0x0)&&await fs['promises'][_0x3b5a59(0x97)](_0x1b9116[_0x3b5a59(0xa8)](getBuildTagsFilePath,_0x236cef),JSON[_0x3b5a59(0xee)](_0x3810fb));}else logger['debug'](_0x1b9116['oPmOT']);}catch(_0x1cf213){logger[_0x3b5a59(0xfd)](_0x3b5a59(0xcd)+(_0x1cf213&&_0x1cf213[_0x3b5a59(0x100)]?_0x1cf213['message']:_0x1cf213));}}}else{let _0x27f2c8;const _0x57dab5=global[_0x3b5a59(0xff)];let _0x5c53e0=![];if(_0x57dab5&&_0x57dab5[_0x3b5a59(0x7c)](_0x1b9116[_0x3b5a59(0x8f)]))_0x5c53e0=!![],_0x27f2c8=_0x57dab5;else try{const _0x3314a7=_0x1b9116[_0x3b5a59(0xa8)](require,_0x1b9116[_0x3b5a59(0xc2)]),_0x4b86d7=_0x1b9116['GZhDt'](require,_0x1b9116[_0x3b5a59(0x7d)]);if(_0x4b86d7[_0x3b5a59(0xb9)]()['isRunning']()){const _0x435c5b=_0x3314a7[_0x3b5a59(0x8e)]();if(_0x1b9116[_0x3b5a59(0xda)](_0x435c5b?.[_0x3b5a59(0xbf)]?.[_0x3b5a59(0xf2)](),_0x1b9116[_0x3b5a59(0xcc)])){const _0x26c5a0=AutomationFramework[_0x3b5a59(0x80)]();_0x27f2c8=AutomationFramework[_0x3b5a59(0x86)](_0x26c5a0,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x27f2c8&&_0x27f2c8[_0x3b5a59(0x7c)](_0x1b9116[_0x3b5a59(0x8f)])&&(_0x5c53e0=!![]);}}}catch(_0x3c09f7){logger['debug'](_0x3b5a59(0xa3)+_0x3c09f7);}if(_0x5c53e0){if(!_0x27f2c8)throw new Error(_0x1b9116['aTltQ']);const _0x497bdc=_0x1b9116[_0x3b5a59(0xa8)](require,_0x1b9116[_0x3b5a59(0x7d)]),_0x202a88=_0x497bdc[_0x3b5a59(0xb9)]()['getTestFramework']();if(!_0x202a88)throw new Error(_0x1b9116[_0x3b5a59(0xfc)]);const _0x57b806=_0x1b9116['vwxuA'](require,_0x1b9116[_0x3b5a59(0xde)]),_0x39995a=_0x1b9116[_0x3b5a59(0xce)](require,_0x1b9116[_0x3b5a59(0xe9)]),_0x344fdd=_0x202a88[_0x3b5a59(0x8b)](_0x57b806[_0x3b5a59(0xab)],_0x39995a[_0x3b5a59(0xae)]);if(!_0x344fdd)throw new Error(_0x1b9116['uhhAz']);const _0x4a984c=_0x344fdd[_0x3b5a59(0x9c)]()[_0x3b5a59(0xc0)](_0x27f2c8)||{},_0x16f7e8=_0x4a984c[TestFrameworkConstants['KEY_CUSTOM_TAGS']]||{};logger[_0x3b5a59(0xfd)](_0x3b5a59(0xa2)+_0x27f2c8+_0x3b5a59(0xf3)+_0x3bf824+_0x3b5a59(0xd2)+JSON[_0x3b5a59(0xee)](_0x6e5cc)+_0x3b5a59(0x9b)+JSON[_0x3b5a59(0xee)](_0x16f7e8)),CustomTagManager[_0x3b5a59(0xbe)](_0x16f7e8,_0x3bf824,_0x6e5cc),logger['debug'](_0x3b5a59(0xec)+_0x3bf824+_0x3b5a59(0xb6)+JSON['stringify'](_0x16f7e8[_0x3bf824][_0x3b5a59(0x95)]));const _0x57c3dd={[TestFrameworkConstants[_0x3b5a59(0x94)]]:_0x16f7e8},_0x205b3b={};_0x205b3b[_0x27f2c8]=_0x57c3dd,_0x344fdd['addMultipleEntries'](_0x205b3b),logger['debug'](_0x3b5a59(0xb5)+_0x27f2c8+_0x3b5a59(0xc7)+JSON[_0x3b5a59(0xee)](_0x16f7e8)),!this[_0x3b5a59(0x91)][_0x27f2c8]&&(this[_0x3b5a59(0x91)][_0x27f2c8]={}),this[_0x3b5a59(0x91)][_0x27f2c8][_0x3bf824]=CustomTagManager['mergeValues'](this[_0x3b5a59(0x91)][_0x27f2c8][_0x3bf824],_0x6e5cc);}else{const _0x5f5d8=global[_0x3b5a59(0x81)]?.[_0x3b5a59(0x90)]?.['testInfo'];if(!_0x5f5d8){const _0x538c7f=AutomationFramework[_0x3b5a59(0x80)]();_0x27f2c8=AutomationFramework[_0x3b5a59(0x86)](_0x538c7f,PlaywrightDriverModule['KEY_TEST_ID'],'');if(!_0x27f2c8)try{const _0x2f202c=_0x1b9116[_0x3b5a59(0xce)](require,_0x1b9116[_0x3b5a59(0x7d)]),_0x237f3b=_0x2f202c[_0x3b5a59(0xb9)](),_0x3bc67a=_0x237f3b&&_0x237f3b[_0x3b5a59(0xd3)]();_0x27f2c8=_0x3bc67a&&_0x1b9116[_0x3b5a59(0xda)](typeof _0x3bc67a['getCurrentTestUUID'],_0x1b9116[_0x3b5a59(0x98)])&&_0x3bc67a[_0x3b5a59(0xf0)]()||_0x27f2c8;}catch(_0x5c5899){logger[_0x3b5a59(0xfd)](_0x3b5a59(0x9f)+(_0x5c5899&&_0x5c5899[_0x3b5a59(0x100)]));}}else _0x27f2c8=TestInfo[_0x3b5a59(0xcf)](_0x5f5d8,_0x5f5d8[_0x3b5a59(0x7e)]);await TestInfo[_0x3b5a59(0xe4)](_0x27f2c8,_0x3bf824,_0x6e5cc),!this[_0x3b5a59(0x91)][_0x27f2c8]&&(this[_0x3b5a59(0x91)][_0x27f2c8]={}),this[_0x3b5a59(0x91)][_0x27f2c8][_0x3bf824]=CustomTagManager[_0x3b5a59(0xeb)](this['testLevelTags'][_0x27f2c8][_0x3bf824],_0x6e5cc);}}}static['getBuildLevelTags'](){const _0xd0b7f4={...this['buildLevelTags']};return _0xd0b7f4;}static[a90_0x11a3be(0xfb)](){const _0x7ccbc7=a90_0x11a3be,_0x1f0f97={...this[_0x7ccbc7(0x91)]};return _0x1f0f97;}static[a90_0x11a3be(0xe0)](){const _0x46b26c=a90_0x11a3be;this[_0x46b26c(0xa7)]={},this['testLevelTags']={};}static[a90_0x11a3be(0xef)](_0x41dbba,_0x4ee054){const _0x31b6d3=a90_0x11a3be,_0x454577={};_0x454577['NClzQ']=function(_0x2b9566,_0x255ff5){return _0x2b9566||_0x255ff5;};const _0x551ea2=_0x454577;if(!_0x41dbba)return;!this[_0x31b6d3(0xa7)][_0x41dbba]&&(this['buildLevelTags'][_0x41dbba]={});for(const [_0x148202,_0x3fec35]of Object[_0x31b6d3(0xe3)](_0x551ea2[_0x31b6d3(0x8d)](_0x4ee054,{}))){if(!_0x3fec35||!Array[_0x31b6d3(0xd8)](_0x3fec35[_0x31b6d3(0x95)]))continue;this['buildLevelTags'][_0x41dbba][_0x148202]=CustomTagManager[_0x31b6d3(0xeb)](this[_0x31b6d3(0xa7)][_0x41dbba][_0x148202],_0x3fec35[_0x31b6d3(0x95)]);}}static[a90_0x11a3be(0xdb)](_0x5bf866,_0x66a58){const _0x34afbb=a90_0x11a3be,_0x437f51={};_0x437f51['VvReU']=_0x34afbb(0xe6),_0x437f51[_0x34afbb(0xc1)]=function(_0x2fefd9,_0x2a4f83){return _0x2fefd9*_0x2a4f83;},_0x437f51[_0x34afbb(0xdd)]=function(_0x64cbf9,_0x8043a8){return _0x64cbf9>_0x8043a8;},_0x437f51[_0x34afbb(0x89)]=function(_0x13e1f0,_0x4e1092){return _0x13e1f0-_0x4e1092;},_0x437f51[_0x34afbb(0xf5)]=_0x34afbb(0xa1);const _0x17e22c=_0x437f51;if(!_0x5bf866)return logger['debug'](_0x17e22c[_0x34afbb(0xc4)]),0x0;let _0xd107af;try{_0xd107af=os['tmpdir']();}catch(_0x1da637){return logger[_0x34afbb(0xfd)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20os.tmpdir()\x20failed:\x20'+_0x1da637),0x0;}let _0x170ff1;try{_0x170ff1=fs[_0x34afbb(0xe5)](_0xd107af);}catch(_0x278e23){return logger[_0x34afbb(0xfd)](_0x34afbb(0xd4)+_0x278e23),0x0;}const _0x1a8281=''+BUILD_TAG_FILE_PREFIX+_0x5bf866+'_',_0x149456=_0x170ff1[_0x34afbb(0x101)](_0x379ab3=>_0x379ab3['startsWith'](_0x1a8281)&&_0x379ab3[_0x34afbb(0xc9)](_0x34afbb(0xfe))),_0x576fe0=_0x17e22c['KqNhk'](_0x17e22c[_0x34afbb(0xc1)](_0x17e22c['KqNhk'](0x2,0x3c),0x3c),0x3e8);let _0x3e4a27=0x0;for(const _0x284a2f of _0x149456){const _0x332b7d=path[_0x34afbb(0xad)](_0xd107af,_0x284a2f);try{const _0x229753=fs[_0x34afbb(0xf9)](_0x332b7d);if(_0x17e22c[_0x34afbb(0xdd)](_0x17e22c['kkesA'](Date['now'](),_0x229753['mtimeMs']),_0x576fe0)){logger[_0x34afbb(0xfd)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20skipping\x20stale\x20file\x20(>'+_0x576fe0+_0x34afbb(0xea)+_0x284a2f);try{fs[_0x34afbb(0xd9)](_0x332b7d);}catch(_0x1c84b0){logger[_0x34afbb(0xfd)]('CustomTagManager.aggregateBuildLevelTagsFromTmp:\x20unlink\x20failed\x20for\x20stale\x20'+_0x284a2f+':\x20'+(_0x1c84b0&&_0x1c84b0[_0x34afbb(0x100)]?_0x1c84b0[_0x34afbb(0x100)]:_0x1c84b0));}continue;}const _0x31f308=fs[_0x34afbb(0xf7)](_0x332b7d,_0x17e22c[_0x34afbb(0xf5)]),_0x59aca0=JSON['parse'](_0x31f308);this[_0x34afbb(0xef)](_0x66a58,_0x59aca0),_0x3e4a27+=0x1;}catch(_0xbff630){logger[_0x34afbb(0xfd)](_0x34afbb(0xa9)+_0x284a2f+':\x20'+(_0xbff630&&_0xbff630[_0x34afbb(0x100)]?_0xbff630[_0x34afbb(0x100)]:_0xbff630));}try{fs[_0x34afbb(0xd9)](_0x332b7d);}catch(_0x45544b){logger[_0x34afbb(0xfd)](_0x34afbb(0xb8)+_0x284a2f+':\x20'+(_0x45544b&&_0x45544b[_0x34afbb(0x100)]?_0x45544b['message']:_0x45544b));}}return _0x3e4a27;}}const a90_0x5063fd={};a90_0x5063fd[a90_0x11a3be(0x7f)]=getBuildTagsRunId,a90_0x5063fd[a90_0x11a3be(0xc5)]=getBuildTagsFilePath,a90_0x5063fd[a90_0x11a3be(0xf8)]=BUILD_TAG_FILE_PREFIX,CustomTagManager[a90_0x11a3be(0x83)]=a90_0x5063fd,module[a90_0x11a3be(0xe1)]=CustomTagManager;
@@ -1 +1 @@
1
- const a91_0x3a44e2=a91_0x4f29;(function(_0x345814,_0x262685){const _0xda5ab5=a91_0x4f29,_0x36f473=_0x345814();while(!![]){try{const _0x3e8a05=-parseInt(_0xda5ab5(0x14d))/0x1+parseInt(_0xda5ab5(0x14f))/0x2*(parseInt(_0xda5ab5(0x15a))/0x3)+-parseInt(_0xda5ab5(0x153))/0x4+parseInt(_0xda5ab5(0x15f))/0x5*(-parseInt(_0xda5ab5(0x15e))/0x6)+-parseInt(_0xda5ab5(0x154))/0x7*(parseInt(_0xda5ab5(0x15b))/0x8)+parseInt(_0xda5ab5(0x157))/0x9+-parseInt(_0xda5ab5(0x14e))/0xa*(-parseInt(_0xda5ab5(0x150))/0xb);if(_0x3e8a05===_0x262685)break;else _0x36f473['push'](_0x36f473['shift']());}catch(_0x4fe38a){_0x36f473['push'](_0x36f473['shift']());}}}(a91_0x26cb,0xe7800));const {createClassLogger}=require(a91_0x3a44e2(0x158));class EventDispatcher{static #instance=null;constructor(){const _0x2d79e1=a91_0x3a44e2;this[_0x2d79e1(0x151)]={};}static[a91_0x3a44e2(0x15c)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a91_0x3a44e2(0x152)](_0x365f40,_0x2ff6c0){const _0x6b8a8b=a91_0x3a44e2;!this[_0x6b8a8b(0x151)][_0x365f40]&&(this[_0x6b8a8b(0x151)][_0x365f40]=[]),this[_0x6b8a8b(0x151)][_0x365f40][_0x6b8a8b(0x159)](_0x2ff6c0);}async[a91_0x3a44e2(0x15d)](_0x5b59ee,_0x134cc3){const _0x358deb=a91_0x3a44e2,_0x4cffa3={'ZSXFj':function(_0x4e21ba,_0x1e6451){return _0x4e21ba(_0x1e6451);}};if(this[_0x358deb(0x151)][_0x5b59ee]){for(const _0xe13c5d of this[_0x358deb(0x151)][_0x5b59ee]){await _0x4cffa3[_0x358deb(0x156)](_0xe13c5d,_0x134cc3);}return;}}}function a91_0x4f29(_0x5bbe9f,_0x29a01f){const _0x26cb89=a91_0x26cb();return a91_0x4f29=function(_0x4f29df,_0x299e77){_0x4f29df=_0x4f29df-0x14d;let _0xd7fa8b=_0x26cb89[_0x4f29df];return _0xd7fa8b;},a91_0x4f29(_0x5bbe9f,_0x29a01f);}const eventDispatcher=EventDispatcher[a91_0x3a44e2(0x15c)]();Object['freeze'](eventDispatcher),module[a91_0x3a44e2(0x155)]=eventDispatcher;function a91_0x26cb(){const _0x2a2117=['54KyQIiN','297295ucmYxq','932021WCsKwS','10zryPca','32986MbgFMd','32646317kctsmZ','observers','registerObserver','2287980UZNfnC','135793oFVkdR','exports','ZSXFj','9436140rZMIcJ','../../helpers/classLogger.js','push','141xMcJvH','744mWQMkF','getInstance','notifyObserver'];a91_0x26cb=function(){return _0x2a2117;};return a91_0x26cb();}
1
+ const a91_0x3a5187=a91_0x3a33;function a91_0x3a33(_0x26a9f2,_0x183e1d){const _0x343bd0=a91_0x343b();return a91_0x3a33=function(_0x3a3320,_0x9bd54d){_0x3a3320=_0x3a3320-0x1b4;let _0x5bf3f4=_0x343bd0[_0x3a3320];return _0x5bf3f4;},a91_0x3a33(_0x26a9f2,_0x183e1d);}(function(_0x3d7516,_0x297301){const _0x3e008b=a91_0x3a33,_0x5e1b1b=_0x3d7516();while(!![]){try{const _0x579538=-parseInt(_0x3e008b(0x1c0))/0x1+-parseInt(_0x3e008b(0x1b4))/0x2+-parseInt(_0x3e008b(0x1bc))/0x3+-parseInt(_0x3e008b(0x1ba))/0x4+-parseInt(_0x3e008b(0x1c1))/0x5+parseInt(_0x3e008b(0x1c2))/0x6*(-parseInt(_0x3e008b(0x1be))/0x7)+parseInt(_0x3e008b(0x1b8))/0x8;if(_0x579538===_0x297301)break;else _0x5e1b1b['push'](_0x5e1b1b['shift']());}catch(_0x3e7ccc){_0x5e1b1b['push'](_0x5e1b1b['shift']());}}}(a91_0x343b,0xd325d));const {createClassLogger}=require(a91_0x3a5187(0x1b7));class EventDispatcher{static #instance=null;constructor(){const _0x2d139d=a91_0x3a5187;this[_0x2d139d(0x1b6)]={};}static[a91_0x3a5187(0x1c3)](){return!EventDispatcher.#instance&&(EventDispatcher.#instance=new EventDispatcher()),EventDispatcher.#instance;}[a91_0x3a5187(0x1b5)](_0x15cd25,_0x16e5c9){const _0x250d9c=a91_0x3a5187;!this['observers'][_0x15cd25]&&(this['observers'][_0x15cd25]=[]),this[_0x250d9c(0x1b6)][_0x15cd25][_0x250d9c(0x1bd)](_0x16e5c9);}async[a91_0x3a5187(0x1bf)](_0x2e71ed,_0x3f7faf){const _0x343005=a91_0x3a5187,_0x5a4687={'XcSRT':function(_0x26174f,_0x53f6ff){return _0x26174f(_0x53f6ff);}};if(this[_0x343005(0x1b6)][_0x2e71ed]){for(const _0x2883cc of this[_0x343005(0x1b6)][_0x2e71ed]){await _0x5a4687['XcSRT'](_0x2883cc,_0x3f7faf);}return;}}}const eventDispatcher=EventDispatcher[a91_0x3a5187(0x1c3)]();function a91_0x343b(){const _0x57ec4f=['getInstance','1147934mxABfL','registerObserver','observers','../../helpers/classLogger.js','46242952yKuSHk','exports','607640bDqwHs','freeze','4094760ionuve','push','2681tzouXf','notifyObserver','1647830TvjvWw','3412140JLltCA','7746qXNfqF'];a91_0x343b=function(){return _0x57ec4f;};return a91_0x343b();}Object[a91_0x3a5187(0x1bb)](eventDispatcher),module[a91_0x3a5187(0x1b9)]=eventDispatcher;
@@ -1 +1 @@
1
- function a92_0x81c4(){const _0x34ba6c=['KEY_AUTOMATION_SESSIONS','registerObserver','runHooks','setTrackedInstance','150lafQvu','setState','automationFrameworkVersion','../../../helpers/classLogger.js','341ixkcjq','AutomationFramework','LhgIN','5yYUVyX','get','djivw','70bDqVsB','1687xNFsFv','581211cPxVvt','notifyObserver','getAllData','createContext','3849UQeKcY','147912otJBjL','set','debug','trackEvent:\x20automationFrameworkState=','automationFrameworkName','18596643jAhNAY','\x20hookState=','instances','FnlxI','508ZmQEQG','getAutomationFrameworkName','util','getAutomationFrameworkVersion','getId','4483AQYZOt','3512766FIiSMH','KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS','getCurrentInstanceName','14776AvbVHA','function','getHookRegistryKey','../eventDispatcher.js'];a92_0x81c4=function(){return _0x34ba6c;};return a92_0x81c4();}function a92_0x2dc2(_0x596a27,_0x2ae63e){const _0x81c40a=a92_0x81c4();return a92_0x2dc2=function(_0x2dc2fa,_0x10ca17){_0x2dc2fa=_0x2dc2fa-0xdb;let _0x24d6e0=_0x81c40a[_0x2dc2fa];return _0x24d6e0;},a92_0x2dc2(_0x596a27,_0x2ae63e);}const a92_0x15cef4=a92_0x2dc2;(function(_0x29f785,_0x4965e5){const _0x3424e2=a92_0x2dc2,_0x6777ad=_0x29f785();while(!![]){try{const _0x4b2057=parseInt(_0x3424e2(0xea))/0x1*(-parseInt(_0x3424e2(0xf6))/0x2)+-parseInt(_0x3424e2(0xdb))/0x3*(-parseInt(_0x3424e2(0xe5))/0x4)+-parseInt(_0x3424e2(0xfd))/0x5*(parseInt(_0x3424e2(0xeb))/0x6)+parseInt(_0x3424e2(0x101))/0x7*(-parseInt(_0x3424e2(0xee))/0x8)+-parseInt(_0x3424e2(0x102))/0x9*(-parseInt(_0x3424e2(0x100))/0xa)+-parseInt(_0x3424e2(0xfa))/0xb*(parseInt(_0x3424e2(0xdc))/0xc)+parseInt(_0x3424e2(0xe1))/0xd;if(_0x4b2057===_0x4965e5)break;else _0x6777ad['push'](_0x6777ad['shift']());}catch(_0x4f319b){_0x6777ad['push'](_0x6777ad['shift']());}}}(a92_0x81c4,0x4868a));const {createClassLogger}=require(a92_0x15cef4(0xf9)),util=require(a92_0x15cef4(0xe7)),eventDispatcher=require(a92_0x15cef4(0xf1)),CLIUtils=require('../cliUtils.js'),TrackedInstance=require('../instances/trackedInstance.js'),logger=createClassLogger(a92_0x15cef4(0xfb));class AutomationFramework{static [a92_0x15cef4(0xe3)]=new Map();static [a92_0x15cef4(0xf2)]='automation_sessions';static [a92_0x15cef4(0xec)]='non_browserstack_automation_sessions';constructor(_0x960318,_0x239fd9){const _0x1abf54=a92_0x15cef4;this['automationFrameworkName']=_0x960318,this[_0x1abf54(0xf8)]=_0x239fd9;}[a92_0x15cef4(0xe6)](){const _0x153994=a92_0x15cef4;return this[_0x153994(0xe0)];}[a92_0x15cef4(0xe8)](){const _0x5f2fe0=a92_0x15cef4;return this[_0x5f2fe0(0xf8)];}async['trackEvent'](_0xe7d4e2,_0x17358a,_0x5e9b09={}){const _0x2c1318=a92_0x15cef4;logger[_0x2c1318(0xde)](_0x2c1318(0xdf)+_0xe7d4e2+_0x2c1318(0xe2)+_0x17358a);}async[a92_0x15cef4(0xf4)](_0x1146de,_0x5c3d74,_0xe91fc2,_0x4d4490={}){const _0x18eb06=a92_0x15cef4,_0x3ed032=CLIUtils[_0x18eb06(0xf0)](_0x5c3d74,_0xe91fc2);_0x1146de&&_0x1146de[_0x18eb06(0xf7)](_0x5c3d74),await eventDispatcher[_0x18eb06(0x103)](_0x3ed032,_0x4d4490);}static[a92_0x15cef4(0xf3)](_0xb8ac32,_0x4baafe,_0xde891e){const _0x1ca9f5=a92_0x15cef4;eventDispatcher['registerObserver'](CLIUtils[_0x1ca9f5(0xf0)](_0xb8ac32,_0x4baafe),_0xde891e);}static[a92_0x15cef4(0xf5)](_0x1bf4f7,_0x3d7601){const _0x535086=a92_0x15cef4;AutomationFramework[_0x535086(0xe3)][_0x535086(0xdd)](_0x1bf4f7[_0x535086(0xe9)](),_0x3d7601);}static['getTrackedInstance'](){const _0x1896f7=a92_0x15cef4,_0x36af47=TrackedInstance[_0x1896f7(0x105)](CLIUtils[_0x1896f7(0xed)]());return AutomationFramework[_0x1896f7(0xe3)]['get'](_0x36af47['getId']());}static[a92_0x15cef4(0xf7)](_0x5e93aa,_0x5e0b24,_0x49684a){const _0xab6bfe=a92_0x15cef4;_0x5e93aa['getAllData']()[_0xab6bfe(0xdd)](_0x5e0b24,_0x49684a);}static['getState'](_0x37225b,_0x2ed450,_0x199225=undefined){const _0x16f093=a92_0x15cef4,_0x27a59a={};_0x27a59a[_0x16f093(0xe4)]=function(_0x4dd0b8,_0x37e7a9){return _0x4dd0b8!==_0x37e7a9;},_0x27a59a[_0x16f093(0xff)]=_0x16f093(0xef),_0x27a59a[_0x16f093(0xfc)]=function(_0x20542b,_0xc398e){return _0x20542b===_0xc398e;};const _0x4e9f51=_0x27a59a;if(!_0x37225b||_0x4e9f51['FnlxI'](typeof _0x37225b['getAllData'],_0x4e9f51[_0x16f093(0xff)]))return _0x199225;const _0xee9a20=_0x37225b[_0x16f093(0x104)]()[_0x16f093(0xfe)](_0x2ed450);return _0x4e9f51[_0x16f093(0xfc)](_0xee9a20,undefined)?_0x199225:_0xee9a20;}}module['exports']=AutomationFramework;
1
+ function a92_0x328e(){const _0x3314b2=['110aiGiJN','VeTCp','CjCZL','AutomationFramework','120488kOSaUb','../instances/trackedInstance.js','8188818bkQzKi','setState','debug','79882AGsqpG','312dovpso','getState','getId','\x20hookState=','KEY_AUTOMATION_SESSIONS','non_browserstack_automation_sessions','function','getTrackedInstance','util','getAllData','registerObserver','trackEvent:\x20automationFrameworkState=','../cliUtils.js','createContext','getCurrentInstanceName','rbqvX','5jktTep','20YOpmsE','automationFrameworkName','runHooks','../../../helpers/classLogger.js','get','150489MHSuaf','getAutomationFrameworkName','1883248OQyTIM','14cEqcnG','getAutomationFrameworkVersion','642360fLvTPh','instances','getHookRegistryKey'];a92_0x328e=function(){return _0x3314b2;};return a92_0x328e();}function a92_0x4ca2(_0x1bb9d5,_0xe8be56){const _0x328e37=a92_0x328e();return a92_0x4ca2=function(_0x4ca27c,_0x75e0c7){_0x4ca27c=_0x4ca27c-0xce;let _0x4dd89d=_0x328e37[_0x4ca27c];return _0x4dd89d;},a92_0x4ca2(_0x1bb9d5,_0xe8be56);}const a92_0x24afab=a92_0x4ca2;(function(_0x41f825,_0xb19afc){const _0x51ff74=a92_0x4ca2,_0x2bb2a6=_0x41f825();while(!![]){try{const _0x4e2fcb=parseInt(_0x51ff74(0xe1))/0x1+parseInt(_0x51ff74(0xd8))/0x2*(-parseInt(_0x51ff74(0xe2))/0x3)+parseInt(_0x51ff74(0xdc))/0x4*(parseInt(_0x51ff74(0xf2))/0x5)+-parseInt(_0x51ff74(0xd5))/0x6+parseInt(_0x51ff74(0xd3))/0x7*(-parseInt(_0x51ff74(0xd2))/0x8)+-parseInt(_0x51ff74(0xd0))/0x9*(parseInt(_0x51ff74(0xf3))/0xa)+parseInt(_0x51ff74(0xde))/0xb;if(_0x4e2fcb===_0xb19afc)break;else _0x2bb2a6['push'](_0x2bb2a6['shift']());}catch(_0x1095ff){_0x2bb2a6['push'](_0x2bb2a6['shift']());}}}(a92_0x328e,0x39f60));const {createClassLogger}=require(a92_0x24afab(0xce)),util=require(a92_0x24afab(0xea)),eventDispatcher=require('../eventDispatcher.js'),CLIUtils=require(a92_0x24afab(0xee)),TrackedInstance=require(a92_0x24afab(0xdd)),logger=createClassLogger(a92_0x24afab(0xdb));class AutomationFramework{static [a92_0x24afab(0xd6)]=new Map();static [a92_0x24afab(0xe6)]='automation_sessions';static ['KEY_NON_BROWSERSTACK_AUTOMATION_SESSIONS']=a92_0x24afab(0xe7);constructor(_0x2e5d49,_0x39fd9c){const _0x5122f6=a92_0x24afab;this[_0x5122f6(0xf4)]=_0x2e5d49,this['automationFrameworkVersion']=_0x39fd9c;}[a92_0x24afab(0xd1)](){return this['automationFrameworkName'];}[a92_0x24afab(0xd4)](){return this['automationFrameworkVersion'];}async['trackEvent'](_0x233114,_0x199142,_0x2b4268={}){const _0x52aab8=a92_0x24afab;logger[_0x52aab8(0xe0)](_0x52aab8(0xed)+_0x233114+_0x52aab8(0xe5)+_0x199142);}async[a92_0x24afab(0xf5)](_0x264c1e,_0x1ce496,_0x30e261,_0x4c102c={}){const _0x24a522=a92_0x24afab,_0x27e728=CLIUtils[_0x24a522(0xd7)](_0x1ce496,_0x30e261);_0x264c1e&&_0x264c1e[_0x24a522(0xdf)](_0x1ce496),await eventDispatcher['notifyObserver'](_0x27e728,_0x4c102c);}static[a92_0x24afab(0xec)](_0x2c4432,_0x2523f0,_0x55bc02){const _0x4df568=a92_0x24afab;eventDispatcher[_0x4df568(0xec)](CLIUtils[_0x4df568(0xd7)](_0x2c4432,_0x2523f0),_0x55bc02);}static['setTrackedInstance'](_0xc81a98,_0x24feac){const _0x5ec352=a92_0x24afab;AutomationFramework[_0x5ec352(0xd6)]['set'](_0xc81a98[_0x5ec352(0xe4)](),_0x24feac);}static[a92_0x24afab(0xe9)](){const _0x42844e=a92_0x24afab,_0x42b99d=TrackedInstance[_0x42844e(0xef)](CLIUtils[_0x42844e(0xf0)]());return AutomationFramework[_0x42844e(0xd6)][_0x42844e(0xcf)](_0x42b99d[_0x42844e(0xe4)]());}static['setState'](_0x27eaaf,_0x379b3b,_0x4a9f61){const _0x3cd05b=a92_0x24afab;_0x27eaaf[_0x3cd05b(0xeb)]()['set'](_0x379b3b,_0x4a9f61);}static[a92_0x24afab(0xe3)](_0xaa4465,_0x49a3d0,_0x163d37=undefined){const _0x5f140f=a92_0x24afab,_0x2a7993={};_0x2a7993[_0x5f140f(0xf1)]=function(_0x1bbd0d,_0x25be11){return _0x1bbd0d!==_0x25be11;},_0x2a7993[_0x5f140f(0xda)]=_0x5f140f(0xe8),_0x2a7993[_0x5f140f(0xd9)]=function(_0x1d1cbe,_0x34e427){return _0x1d1cbe===_0x34e427;};const _0x94df3d=_0x2a7993;if(!_0xaa4465||_0x94df3d[_0x5f140f(0xf1)](typeof _0xaa4465['getAllData'],_0x94df3d[_0x5f140f(0xda)]))return _0x163d37;const _0x3e5fae=_0xaa4465['getAllData']()['get'](_0x49a3d0);return _0x94df3d[_0x5f140f(0xd9)](_0x3e5fae,undefined)?_0x163d37:_0x3e5fae;}}module['exports']=AutomationFramework;
@@ -1 +1 @@
1
- function a93_0x5773(_0x2f1c28,_0x3c077c){const _0x2194b5=a93_0x2194();return a93_0x5773=function(_0x577352,_0x15dcf9){_0x577352=_0x577352-0x96;let _0x191d1e=_0x2194b5[_0x577352];return _0x191d1e;},a93_0x5773(_0x2f1c28,_0x3c077c);}function a93_0x2194(){const _0x1245ad=['8yjoPLL','COMMAND_W3C_EXECUTE_SCRIPT','1149756NndGvc','35gPAFUY','ENV_BROWSERSTACK_PLATFORM_INDEX','is_browserstack_hub','KEY_FRAMEWORK_SESSION_ID','w3cexecutescript','BROWSERSTACK_PLATFORM_INDEX','KEY_STARTED_AT','KEY_CAPABILITIES','capabilities','14190363NYYGxp','newsession','KEY_ENDED_AT','get','COMMAND_SCREENSHOT','1020970sxfeFX','framework_session_id','COMMAND_QUIT','277740xfbuSb','platform_index','KEY_PLATFORM_INDEX','exports','1755924sUxsAf','6825469KWZMSJ','KEY_INPUT_CAPABILITIES','input_capabilities','988531WmlJVR','KEY_IS_BROWSERSTACK_HUB','ended_at','COMMAND_NEW_SESSION','w3cexecutescriptasync'];a93_0x2194=function(){return _0x1245ad;};return a93_0x2194();}const a93_0x24ca53=a93_0x5773;(function(_0x50c7d5,_0x29d5ab){const _0x243a53=a93_0x5773,_0x2b25c0=_0x50c7d5();while(!![]){try{const _0x50c540=-parseInt(_0x243a53(0xa3))/0x1+-parseInt(_0x243a53(0x98))/0x2+parseInt(_0x243a53(0xaa))/0x3+parseInt(_0x243a53(0x9b))/0x4*(-parseInt(_0x243a53(0xab))/0x5)+-parseInt(_0x243a53(0x9f))/0x6+parseInt(_0x243a53(0xa0))/0x7+parseInt(_0x243a53(0xa8))/0x8*(parseInt(_0x243a53(0xb4))/0x9);if(_0x50c540===_0x29d5ab)break;else _0x2b25c0['push'](_0x2b25c0['shift']());}catch(_0x3390ee){_0x2b25c0['push'](_0x2b25c0['shift']());}}}(a93_0x2194,0xa079f));const a93_0x44a631={};a93_0x44a631[a93_0x24ca53(0xac)]=a93_0x24ca53(0xb0),a93_0x44a631['KEY_HUB_URL']='hub_url',a93_0x44a631[a93_0x24ca53(0xae)]=a93_0x24ca53(0x99),a93_0x44a631[a93_0x24ca53(0xa1)]=a93_0x24ca53(0xa2),a93_0x44a631[a93_0x24ca53(0xb2)]=a93_0x24ca53(0xb3),a93_0x44a631[a93_0x24ca53(0xa4)]=a93_0x24ca53(0xad),a93_0x44a631[a93_0x24ca53(0xb1)]='started_at',a93_0x44a631[a93_0x24ca53(0xb6)]=a93_0x24ca53(0xa5),a93_0x44a631[a93_0x24ca53(0x9d)]=a93_0x24ca53(0x9c),a93_0x44a631[a93_0x24ca53(0xa6)]=a93_0x24ca53(0xb5),a93_0x44a631['COMMAND_GET']=a93_0x24ca53(0x96),a93_0x44a631[a93_0x24ca53(0x97)]='screenshot',a93_0x44a631[a93_0x24ca53(0xa9)]=a93_0x24ca53(0xaf),a93_0x44a631['COMMAND_W3C_EXECUTE_SCRIPT_ASYNC']=a93_0x24ca53(0xa7),a93_0x44a631[a93_0x24ca53(0x9a)]='quit';const AutomationFrameworkConstants=a93_0x44a631;module[a93_0x24ca53(0x9e)]=AutomationFrameworkConstants;
1
+ const a93_0x34ddb5=a93_0x511e;(function(_0x1dab68,_0x32928d){const _0x35063f=a93_0x511e,_0x2bf1aa=_0x1dab68();while(!![]){try{const _0x4b2e56=parseInt(_0x35063f(0x1c8))/0x1+-parseInt(_0x35063f(0x1ce))/0x2*(parseInt(_0x35063f(0x1d4))/0x3)+parseInt(_0x35063f(0x1cf))/0x4+parseInt(_0x35063f(0x1e7))/0x5*(-parseInt(_0x35063f(0x1d1))/0x6)+-parseInt(_0x35063f(0x1d2))/0x7+-parseInt(_0x35063f(0x1e4))/0x8+-parseInt(_0x35063f(0x1ca))/0x9*(-parseInt(_0x35063f(0x1da))/0xa);if(_0x4b2e56===_0x32928d)break;else _0x2bf1aa['push'](_0x2bf1aa['shift']());}catch(_0x2b929a){_0x2bf1aa['push'](_0x2bf1aa['shift']());}}}(a93_0x172d,0xcb9b5));const a93_0x251788={};function a93_0x511e(_0x5c17fb,_0x5e000c){const _0x172d7b=a93_0x172d();return a93_0x511e=function(_0x511ee6,_0x35e9a7){_0x511ee6=_0x511ee6-0x1c8;let _0x2adc89=_0x172d7b[_0x511ee6];return _0x2adc89;},a93_0x511e(_0x5c17fb,_0x5e000c);}function a93_0x172d(){const _0x131a10=['6qUQyyW','589169joZqIx','COMMAND_W3C_EXECUTE_SCRIPT_ASYNC','1037565NtluFj','input_capabilities','ended_at','platform_index','is_browserstack_hub','KEY_INPUT_CAPABILITIES','80530OLwILy','get','screenshot','KEY_HUB_URL','KEY_PLATFORM_INDEX','KEY_STARTED_AT','COMMAND_SCREENSHOT','KEY_FRAMEWORK_SESSION_ID','KEY_ENDED_AT','KEY_IS_BROWSERSTACK_HUB','8924920BpxMcr','newsession','w3cexecutescriptasync','5165635VCFZle','started_at','ENV_BROWSERSTACK_PLATFORM_INDEX','1465951WAcjcY','COMMAND_QUIT','2601BPDfUu','capabilities','framework_session_id','COMMAND_GET','8XOkTOy','2628136SvBbRk','KEY_CAPABILITIES'];a93_0x172d=function(){return _0x131a10;};return a93_0x172d();}a93_0x251788[a93_0x34ddb5(0x1e9)]='BROWSERSTACK_PLATFORM_INDEX',a93_0x251788[a93_0x34ddb5(0x1dd)]='hub_url',a93_0x251788[a93_0x34ddb5(0x1e1)]=a93_0x34ddb5(0x1cc),a93_0x251788[a93_0x34ddb5(0x1d9)]=a93_0x34ddb5(0x1d5),a93_0x251788[a93_0x34ddb5(0x1d0)]=a93_0x34ddb5(0x1cb),a93_0x251788[a93_0x34ddb5(0x1e3)]=a93_0x34ddb5(0x1d8),a93_0x251788[a93_0x34ddb5(0x1df)]=a93_0x34ddb5(0x1e8),a93_0x251788[a93_0x34ddb5(0x1e2)]=a93_0x34ddb5(0x1d6),a93_0x251788[a93_0x34ddb5(0x1de)]=a93_0x34ddb5(0x1d7),a93_0x251788['COMMAND_NEW_SESSION']=a93_0x34ddb5(0x1e5),a93_0x251788[a93_0x34ddb5(0x1cd)]=a93_0x34ddb5(0x1db),a93_0x251788[a93_0x34ddb5(0x1e0)]=a93_0x34ddb5(0x1dc),a93_0x251788['COMMAND_W3C_EXECUTE_SCRIPT']='w3cexecutescript',a93_0x251788[a93_0x34ddb5(0x1d3)]=a93_0x34ddb5(0x1e6),a93_0x251788[a93_0x34ddb5(0x1c9)]='quit';const AutomationFrameworkConstants=a93_0x251788;module['exports']=AutomationFrameworkConstants;
@@ -1 +1 @@
1
- const a94_0x5f2844=a94_0x1e36;(function(_0x251d74,_0x77e71f){const _0xe5200e=a94_0x1e36,_0x4de0ca=_0x251d74();while(!![]){try{const _0x235cc6=parseInt(_0xe5200e(0x87))/0x1+-parseInt(_0xe5200e(0xc4))/0x2*(parseInt(_0xe5200e(0xd7))/0x3)+parseInt(_0xe5200e(0x7f))/0x4*(-parseInt(_0xe5200e(0xbd))/0x5)+-parseInt(_0xe5200e(0x88))/0x6+parseInt(_0xe5200e(0xa5))/0x7+-parseInt(_0xe5200e(0xcb))/0x8+parseInt(_0xe5200e(0xb1))/0x9*(parseInt(_0xe5200e(0x93))/0xa);if(_0x235cc6===_0x77e71f)break;else _0x4de0ca['push'](_0x4de0ca['shift']());}catch(_0x410172){_0x4de0ca['push'](_0x4de0ca['shift']());}}}(a94_0x5e46,0x2f9f6));function a94_0x1e36(_0xf8c131,_0xc82808){const _0x5e465a=a94_0x5e46();return a94_0x1e36=function(_0x1e360d,_0x15824b){_0x1e360d=_0x1e360d-0x7b;let _0x19e6a6=_0x5e465a[_0x1e360d];return _0x19e6a6;},a94_0x1e36(_0xf8c131,_0xc82808);}const a94_0x1676e7={};function a94_0x5e46(){const _0x106a9c=['3yApChx','test_identifier','test_tags','KEY_TEST_FAILURE_REASON','test_location','8956hDUnPa','KEY_HOOK_FAILURE_TYPE','KEY_TEST_ATTACHMENTS','file_name','event_started_at','KEY_HOOKS_FINISHED','test_ended_at','KEY_TEST_META','56080sBnSGI','1867530jbxMJA','test_hooks_started','KEY_HOOK_ID','KEY_HOOK_FAILURE','test_attachments','KEY_PLATFORM_INDEX','HOOK_REGEX','KEY_AUTOMATE_SESSION_STATUS','test_logs','DEFAULT_HOOK_RESULT','test_hook_last_finished','3331010YcRTMP','KEY_TEST_FILE_PATH','test_result','hook_result','MAX_TOP_LEVEL_STEPS','KEY_TEST_TAGS','hook_failure_type','KEY_TEST_FAILURE_TYPE','KIND_LOG','KEY_HOOK_LAST_FINISHED','pending','test_hook_last_started','test_scopes','KEY_HOOK_LAST_STARTED','KEY_AUTOMATE_SESSION_REASON','KEY_FILE_LEVEL','automate_session_reason','test_failure_reason_expanded','402010uLwgpF','KEY_HOOK_FAILURE_REASON','KEY_TEST_SCOPES','exports','hook_failure','hook_logs','MAX_NESTED_STEP_DEPTH','hook_name','KEY_TEST_STARTED_AT','test_result_at','DEFAULT_TEST_RESULT','test_framework_version','27wTWIPF','KEY_TEST_RERUN_NAME','platform_index','test_uuid','KEY_CUSTOM_TAGS','KEY_EVENT_ENDED_AT','KEY_TEST_DURATION','retry_of','hook_id','KEY_TEST_FRAMEWORK_NAME','test_session_name','KEY_TEST_ID','405ppZrXK','test_started_at','automate_session_status','KEY_TEST_IDENTIFIER','KEY_EVENT_STARTED_AT','^(BEFORE_|AFTER_)','test_name','434638gmHXSO','KEY_FILE_SIZE','KEY_TEST_FAILURE','custom_metadata','test_meta','KEY_TEST_FAILURE_REASON_EXPANDED','KEY_TEST_SCOPE','1662544iAkUdY','KEY_FILE_PATH','KEY_TEST_RESULT','test_failure_backtrace','KEY_LOGS','KEY_HOOKS_STARTED','KEY_TEST_UUID','test_code','KEY_TEST_RESULT_AT','KEY_SESSION_NAME','KEY_HOOK_NAME','test_failure_type'];a94_0x5e46=function(){return _0x106a9c;};return a94_0x5e46();}a94_0x1676e7[a94_0x5f2844(0xd1)]=a94_0x5f2844(0xb4),a94_0x1676e7[a94_0x5f2844(0xbc)]='test_id',a94_0x1676e7['KEY_TEST_NAME']=a94_0x5f2844(0xc3),a94_0x1676e7[a94_0x5f2844(0x94)]='test_file_path',a94_0x1676e7[a94_0x5f2844(0x98)]=a94_0x5f2844(0x7c),a94_0x1676e7[a94_0x5f2844(0xcd)]=a94_0x5f2844(0x95),a94_0x1676e7[a94_0x5f2844(0xd3)]=a94_0x5f2844(0xae),a94_0x1676e7[a94_0x5f2844(0xad)]=a94_0x5f2844(0xbe),a94_0x1676e7['KEY_TEST_ENDED_AT']=a94_0x5f2844(0x85),a94_0x1676e7['KEY_TEST_LOCATION']=a94_0x5f2844(0x7e),a94_0x1676e7[a94_0x5f2844(0xb7)]='test_duration',a94_0x1676e7[a94_0x5f2844(0xca)]='test_scope',a94_0x1676e7[a94_0x5f2844(0xa7)]=a94_0x5f2844(0x9f),a94_0x1676e7[a94_0x5f2844(0xba)]='test_framework_name',a94_0x1676e7['KEY_TEST_FRAMEWORK_VERSION']=a94_0x5f2844(0xb0),a94_0x1676e7['KEY_TEST_CODE']=a94_0x5f2844(0xd2),a94_0x1676e7[a94_0x5f2844(0xb2)]='test_rerun_name',a94_0x1676e7['KEY_TEST_RETRY_OF']=a94_0x5f2844(0xb8),a94_0x1676e7[a94_0x5f2844(0x8d)]=a94_0x5f2844(0xb3),a94_0x1676e7[a94_0x5f2844(0xc6)]='test_failure',a94_0x1676e7[a94_0x5f2844(0x9a)]=a94_0x5f2844(0xd6),a94_0x1676e7[a94_0x5f2844(0x7d)]='test_failure_reason',a94_0x1676e7['KEY_TEST_FAILURE_BACKTRACE']=a94_0x5f2844(0xce),a94_0x1676e7[a94_0x5f2844(0xc9)]=a94_0x5f2844(0xa4),a94_0x1676e7[a94_0x5f2844(0xc0)]=a94_0x5f2844(0x7b),a94_0x1676e7['KEY_TEST_LOGS']=a94_0x5f2844(0x90),a94_0x1676e7[a94_0x5f2844(0x86)]=a94_0x5f2844(0xc8),a94_0x1676e7[a94_0x5f2844(0xd4)]=a94_0x5f2844(0xbb),a94_0x1676e7['KEY_AUTOMATE_SESSION_NAME']='automate_session_name',a94_0x1676e7[a94_0x5f2844(0x8f)]=a94_0x5f2844(0xbf),a94_0x1676e7[a94_0x5f2844(0xa1)]=a94_0x5f2844(0xa3),a94_0x1676e7[a94_0x5f2844(0xc1)]=a94_0x5f2844(0x83),a94_0x1676e7[a94_0x5f2844(0xb6)]='event_ended_at',a94_0x1676e7[a94_0x5f2844(0x8a)]=a94_0x5f2844(0xb9),a94_0x1676e7['KEY_HOOK_RESULT']=a94_0x5f2844(0x96),a94_0x1676e7[a94_0x5f2844(0x80)]=a94_0x5f2844(0x99),a94_0x1676e7[a94_0x5f2844(0xa6)]='hook_failure_reason',a94_0x1676e7[a94_0x5f2844(0x8b)]=a94_0x5f2844(0xa9),a94_0x1676e7['KEY_HOOK_LOGS']=a94_0x5f2844(0xaa),a94_0x1676e7[a94_0x5f2844(0xd5)]=a94_0x5f2844(0xac),a94_0x1676e7[a94_0x5f2844(0xaf)]=a94_0x5f2844(0x9d),a94_0x1676e7[a94_0x5f2844(0x91)]='pending',a94_0x1676e7['KIND_SCREENSHOT']='TEST_SCREENSHOT',a94_0x1676e7[a94_0x5f2844(0x9b)]='TEST_LOG',a94_0x1676e7[a94_0x5f2844(0x8e)]=a94_0x5f2844(0xc2),a94_0x1676e7[a94_0x5f2844(0xd0)]=a94_0x5f2844(0x89),a94_0x1676e7[a94_0x5f2844(0x84)]='test_hooks_finished',a94_0x1676e7[a94_0x5f2844(0xa0)]=a94_0x5f2844(0x9e),a94_0x1676e7[a94_0x5f2844(0x9c)]=a94_0x5f2844(0x92),a94_0x1676e7[a94_0x5f2844(0xcf)]='logs',a94_0x1676e7[a94_0x5f2844(0xb5)]=a94_0x5f2844(0xc7),a94_0x1676e7[a94_0x5f2844(0x81)]=a94_0x5f2844(0x8c),a94_0x1676e7[a94_0x5f2844(0xc5)]='file_size',a94_0x1676e7['KEY_FILE_NAME']=a94_0x5f2844(0x82),a94_0x1676e7[a94_0x5f2844(0xcc)]='file_path',a94_0x1676e7[a94_0x5f2844(0xa2)]='file_level',a94_0x1676e7['KEY_TEST_SCREENSHOTS']='test_screenshots',a94_0x1676e7[a94_0x5f2844(0x97)]=0xa,a94_0x1676e7[a94_0x5f2844(0xab)]=0x2;const TestFrameworkConstants=a94_0x1676e7;module[a94_0x5f2844(0xa8)]=TestFrameworkConstants;
1
+ const a94_0x591c25=a94_0xb4ed;(function(_0x1e81db,_0x4e4ee3){const _0x2ef861=a94_0xb4ed,_0x4767a1=_0x1e81db();while(!![]){try{const _0x443cf4=parseInt(_0x2ef861(0xea))/0x1+-parseInt(_0x2ef861(0xf4))/0x2*(parseInt(_0x2ef861(0x112))/0x3)+-parseInt(_0x2ef861(0xe5))/0x4+parseInt(_0x2ef861(0xf3))/0x5*(-parseInt(_0x2ef861(0x109))/0x6)+-parseInt(_0x2ef861(0xff))/0x7+-parseInt(_0x2ef861(0x107))/0x8*(parseInt(_0x2ef861(0xce))/0x9)+-parseInt(_0x2ef861(0x10c))/0xa*(-parseInt(_0x2ef861(0xfd))/0xb);if(_0x443cf4===_0x4e4ee3)break;else _0x4767a1['push'](_0x4767a1['shift']());}catch(_0x456c3b){_0x4767a1['push'](_0x4767a1['shift']());}}}(a94_0x23b2,0xe8723));const a94_0x1ddaac={};function a94_0xb4ed(_0x44ff89,_0x5f4e61){const _0x23b29d=a94_0x23b2();return a94_0xb4ed=function(_0xb4ed42,_0x509ed0){_0xb4ed42=_0xb4ed42-0xc1;let _0x44104b=_0x23b29d[_0xb4ed42];return _0x44104b;},a94_0xb4ed(_0x44ff89,_0x5f4e61);}function a94_0x23b2(){const _0x540f7a=['KEY_HOOK_LOGS','KEY_TEST_FAILURE','KIND_LOG','test_location','test_uuid','KEY_TEST_RESULT_AT','pending','KEY_FILE_SIZE','95769HOhrLF','test_failure_reason','test_failure_backtrace','test_hook_last_finished','test_failure_reason_expanded','KEY_TEST_SCREENSHOTS','KIND_SCREENSHOT','KEY_TEST_ENDED_AT','test_scopes','test_screenshots','test_ended_at','hook_failure_type','DEFAULT_HOOK_RESULT','KEY_HOOK_FAILURE_TYPE','^(BEFORE_|AFTER_)','KEY_HOOK_NAME','KEY_HOOK_FAILURE','KEY_FILE_NAME','KEY_TEST_FAILURE_TYPE','hook_failure_reason','test_failure_type','KEY_TEST_ATTACHMENTS','DEFAULT_TEST_RESULT','6025036iKCJcc','KEY_TEST_ID','test_id','test_logs','HOOK_REGEX','502347jwUowe','test_started_at','automate_session_reason','file_level','test_result_at','KEY_HOOK_LAST_FINISHED','test_framework_version','test_hooks_finished','KEY_TEST_STARTED_AT','5joWiuR','2278996JhkFIx','test_name','KEY_HOOK_ID','KEY_TEST_FRAMEWORK_VERSION','test_hooks_started','KEY_AUTOMATE_SESSION_NAME','KEY_TEST_DURATION','custom_metadata','KEY_TEST_IDENTIFIER','396ATewFZ','hook_logs','3307486BVFqUV','KEY_TEST_FILE_PATH','KEY_PLATFORM_INDEX','automate_session_name','KEY_TEST_SCOPE','file_size','test_scope','KEY_TEST_RETRY_OF','1032WWRZLU','KEY_FILE_PATH','10806792JMVszv','test_framework_name','KEY_TEST_RERUN_NAME','1872730khgnOd','KEY_AUTOMATE_SESSION_REASON','KEY_HOOK_FAILURE_REASON','KEY_HOOKS_FINISHED','automate_session_status','KEY_FILE_LEVEL','3HTFxdx','hook_result','KEY_TEST_META','event_started_at','KEY_LOGS','test_identifier','KEY_AUTOMATE_SESSION_STATUS','file_name','KEY_TEST_FAILURE_BACKTRACE','KEY_HOOKS_STARTED','test_attachments','KEY_EVENT_STARTED_AT','KEY_TEST_FRAMEWORK_NAME','KEY_EVENT_ENDED_AT','KEY_TEST_UUID','KEY_TEST_FAILURE_REASON_EXPANDED','retry_of','hook_id','test_rerun_name','TEST_SCREENSHOT','KEY_TEST_RESULT','test_file_path','KEY_HOOK_RESULT','test_tags','test_failure','test_session_name','KEY_TEST_TAGS','test_duration','KEY_TEST_LOCATION'];a94_0x23b2=function(){return _0x540f7a;};return a94_0x23b2();}a94_0x1ddaac[a94_0x591c25(0x120)]=a94_0x591c25(0xca),a94_0x1ddaac[a94_0x591c25(0xe6)]=a94_0x591c25(0xe7),a94_0x1ddaac['KEY_TEST_NAME']=a94_0x591c25(0xf5),a94_0x1ddaac[a94_0x591c25(0x100)]=a94_0x591c25(0x127),a94_0x1ddaac[a94_0x591c25(0xc3)]=a94_0x591c25(0x129),a94_0x1ddaac[a94_0x591c25(0x126)]='test_result',a94_0x1ddaac[a94_0x591c25(0xcb)]=a94_0x591c25(0xee),a94_0x1ddaac[a94_0x591c25(0xf2)]=a94_0x591c25(0xeb),a94_0x1ddaac[a94_0x591c25(0xd5)]=a94_0x591c25(0xd8),a94_0x1ddaac[a94_0x591c25(0xc5)]=a94_0x591c25(0xc9),a94_0x1ddaac[a94_0x591c25(0xfa)]=a94_0x591c25(0xc4),a94_0x1ddaac[a94_0x591c25(0x103)]=a94_0x591c25(0x105),a94_0x1ddaac['KEY_TEST_SCOPES']=a94_0x591c25(0xd6),a94_0x1ddaac[a94_0x591c25(0x11e)]=a94_0x591c25(0x10a),a94_0x1ddaac[a94_0x591c25(0xf7)]=a94_0x591c25(0xf0),a94_0x1ddaac['KEY_TEST_CODE']='test_code',a94_0x1ddaac[a94_0x591c25(0x10b)]=a94_0x591c25(0x124),a94_0x1ddaac[a94_0x591c25(0x106)]=a94_0x591c25(0x122),a94_0x1ddaac[a94_0x591c25(0x101)]='platform_index',a94_0x1ddaac[a94_0x591c25(0xc7)]=a94_0x591c25(0xc1),a94_0x1ddaac[a94_0x591c25(0xe0)]=a94_0x591c25(0xe2),a94_0x1ddaac['KEY_TEST_FAILURE_REASON']=a94_0x591c25(0xcf),a94_0x1ddaac[a94_0x591c25(0x11a)]=a94_0x591c25(0xd0),a94_0x1ddaac[a94_0x591c25(0x121)]=a94_0x591c25(0xd2),a94_0x1ddaac[a94_0x591c25(0xfc)]=a94_0x591c25(0x117),a94_0x1ddaac['KEY_TEST_LOGS']=a94_0x591c25(0xe8),a94_0x1ddaac[a94_0x591c25(0x114)]='test_meta',a94_0x1ddaac['KEY_SESSION_NAME']=a94_0x591c25(0xc2),a94_0x1ddaac[a94_0x591c25(0xf9)]=a94_0x591c25(0x102),a94_0x1ddaac[a94_0x591c25(0x118)]=a94_0x591c25(0x110),a94_0x1ddaac[a94_0x591c25(0x10d)]=a94_0x591c25(0xec),a94_0x1ddaac[a94_0x591c25(0x11d)]=a94_0x591c25(0x115),a94_0x1ddaac[a94_0x591c25(0x11f)]='event_ended_at',a94_0x1ddaac[a94_0x591c25(0xf6)]=a94_0x591c25(0x123),a94_0x1ddaac[a94_0x591c25(0x128)]=a94_0x591c25(0x113),a94_0x1ddaac[a94_0x591c25(0xdb)]=a94_0x591c25(0xd9),a94_0x1ddaac[a94_0x591c25(0x10e)]=a94_0x591c25(0xe1),a94_0x1ddaac[a94_0x591c25(0xde)]='hook_failure',a94_0x1ddaac[a94_0x591c25(0xc6)]=a94_0x591c25(0xfe),a94_0x1ddaac[a94_0x591c25(0xdd)]='hook_name',a94_0x1ddaac[a94_0x591c25(0xe4)]=a94_0x591c25(0xcc),a94_0x1ddaac[a94_0x591c25(0xda)]=a94_0x591c25(0xcc),a94_0x1ddaac[a94_0x591c25(0xd4)]=a94_0x591c25(0x125),a94_0x1ddaac[a94_0x591c25(0xc8)]='TEST_LOG',a94_0x1ddaac[a94_0x591c25(0xe9)]=a94_0x591c25(0xdc),a94_0x1ddaac[a94_0x591c25(0x11b)]=a94_0x591c25(0xf8),a94_0x1ddaac[a94_0x591c25(0x10f)]=a94_0x591c25(0xf1),a94_0x1ddaac['KEY_HOOK_LAST_STARTED']='test_hook_last_started',a94_0x1ddaac[a94_0x591c25(0xef)]=a94_0x591c25(0xd1),a94_0x1ddaac[a94_0x591c25(0x116)]='logs',a94_0x1ddaac['KEY_CUSTOM_TAGS']=a94_0x591c25(0xfb),a94_0x1ddaac[a94_0x591c25(0xe3)]=a94_0x591c25(0x11c),a94_0x1ddaac[a94_0x591c25(0xcd)]=a94_0x591c25(0x104),a94_0x1ddaac[a94_0x591c25(0xdf)]=a94_0x591c25(0x119),a94_0x1ddaac[a94_0x591c25(0x108)]='file_path',a94_0x1ddaac[a94_0x591c25(0x111)]=a94_0x591c25(0xed),a94_0x1ddaac[a94_0x591c25(0xd3)]=a94_0x591c25(0xd7),a94_0x1ddaac['MAX_TOP_LEVEL_STEPS']=0xa,a94_0x1ddaac['MAX_NESTED_STEP_DEPTH']=0x2;const TestFrameworkConstants=a94_0x1ddaac;module['exports']=TestFrameworkConstants;
@@ -1 +1 @@
1
- function a95_0xcc66(_0x139d55,_0xa6449f){const _0x29db3c=a95_0x29db();return a95_0xcc66=function(_0xcc6667,_0x411ddb){_0xcc6667=_0xcc6667-0x7e;let _0x2f3676=_0x29db3c[_0xcc6667];return _0x2f3676;},a95_0xcc66(_0x139d55,_0xa6449f);}const a95_0x220bb9=a95_0xcc66;(function(_0x3e9328,_0x50c661){const _0x4b7afd=a95_0xcc66,_0x6940be=_0x3e9328();while(!![]){try{const _0x2f9831=parseInt(_0x4b7afd(0xcc))/0x1*(-parseInt(_0x4b7afd(0xb7))/0x2)+parseInt(_0x4b7afd(0x11f))/0x3+-parseInt(_0x4b7afd(0xa1))/0x4*(parseInt(_0x4b7afd(0xc8))/0x5)+-parseInt(_0x4b7afd(0x126))/0x6+parseInt(_0x4b7afd(0x142))/0x7+parseInt(_0x4b7afd(0x112))/0x8*(-parseInt(_0x4b7afd(0xb8))/0x9)+-parseInt(_0x4b7afd(0x107))/0xa*(-parseInt(_0x4b7afd(0xd7))/0xb);if(_0x2f9831===_0x50c661)break;else _0x6940be['push'](_0x6940be['shift']());}catch(_0x42dbe5){_0x6940be['push'](_0x6940be['shift']());}}}(a95_0x29db,0xc2d93));const TestFramework=require(a95_0x220bb9(0xbd)),TestFrameworkState=require(a95_0x220bb9(0x106)),HookState=require('../state/hookState.js'),{createClassLogger}=require(a95_0x220bb9(0x120)),TestFrameworkInstance=require(a95_0x220bb9(0xe7)),CLIUtils=require(a95_0x220bb9(0x14f)),TrackedInstance=require(a95_0x220bb9(0x97)),TestFrameworkConstants=require('./constants/testFrameworkConstants.js'),{getManualUploadLogs,getMediaArtifactsLogs}=require('../../../helpers/helper.js'),logger=createClassLogger('CucumberTestFramework'),{v4:uuidv4}=require('uuid'),util=require(a95_0x220bb9(0xf2)),TestInfo=require(a95_0x220bb9(0x118)),GrpcClient=require(a95_0x220bb9(0xa7));function a95_0x29db(){const _0x3263a4=['tags','slice','Updated\x20cucumber\x20test\x20result:\x20','vuBiV','KEY_LOGS','UnhandledError','KEY_TEST_CODE','base64','hooks','Tracked\x20cucumber\x20hook\x20event:\x20','808843pVzfFx','getTestUUID','ccUJx','No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','finished_at','runHooks','KEY_HOOK_FAILURE_REASON','customRerunParam','YPDQU','format','SDSJi','getThreadId','LOG_REPORT','../cliUtils.js','KEY_TEST_TAGS','KEY_TEST_FAILURE_REASON','testFrameworkVersion','\x20with\x20id\x20','parseCucumberTest','failure_data','error','INIT_TEST','\x20with\x20result:\x20','key','KEY_HOOK_LAST_FINISHED','trackEvent','debug','kJBCE','DEFAULT_HOOK_RESULT','KEY_HOOK_LOGS','KEY_TEST_STARTED_AT','getInstance','UBNPI','tDKfI','trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s',',\x20storing\x20as\x20pending\x20hook','mpwLM','pop','xJTDU','keys','\x20response=','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','file_name','endedAt','../instances/trackedInstance.js','KEY_HOOK_ID','addMultipleEntries','KEY_TEST_FRAMEWORK_NAME','KEY_TEST_ATTACHMENTS','KEY_HOOKS_FINISHED','trackHookEvent','\x20and\x20args\x20=\x20','txIRM','getPendingHooks','297904CkAVhm','KEY_TEST_FILE_PATH','KEY_EVENT_ENDED_AT','\x20testState:\x20','test_run_id','KEY_TEST_LOGS','../grpcClient','startedAt','hasPendingHooks','started_at','KEY_TEST_RERUN_NAME','trackCucumberInstance','toString','failure','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','getTestFrameworks','inspect','meta','KEY_HOOK_NAME','dPvZb','parseCucumberTestResult','GFXMy','465554rTUHfe','9swRkVQ','KEY_TEST_ENDED_AT','finishedAt','hMMiY','xDnQv','./testFramework',',\x20state:\x20','createTestFrameworkEventPayload\x20testId:\x20','ceil','hookState','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','setTrackedInstance','concat',',\x20error:\x20','testFrameworkState',',\x20hookState:\x20','30ZhGMCv','name','location','Processing\x20','1kmlYAC','\x20&\x20hookState=','KEY_HOOK_FAILURE','KEY_TEST_FRAMEWORK_VERSION','split','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','KEY_HOOK_FAILURE_TYPE','failure_type','getTestFrameworksVersions','lzjXw','instance','1540OsNkGr','lgCdx','kprxX','setTestDetails','KEY_TEST_FAILURE','\x20target=','result','POST','get','addPendingHook','VZwBw','eventJson','trackCucumberInstance:\x20saved\x20instance\x20contextId=','failed','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','\x20pending\x20hooks\x20for\x20testId:\x20','../instances/testFrameworkInstance.js','testData','from','PRE','Stored\x20pending\x20hook\x20for\x20testId:\x20','KSFuX','body','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','matchHookRegex','\x20\x20and\x20args\x20=\x20','\x20payload=','util','resolveInstance','xzpjZ','\x20with\x20UUID:\x20','getProcessId','passed','getAllData','KEY_TEST_ID','length','NONE','TEST','code','DEFAULT_TEST_RESULT','getCurrentInstanceName','createContext','push','getTestDetails','executionContext','testUUID','logCreatedEvent','../state/testFrameworkState.js','176200TDvPsV','stringify','BJSgO','getRef','\x20for\x20test:\x20','unknown','KEY_TEST_UUID','test','browserstackPlatformIndex','KEY_HOOK_RESULT','kBcjL','6244760DwKiaW','KEY_CUSTOM_TAGS','sendLogCreatedEvent:\x20for\x20testId:\x20','toISOString','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','getCurrentTestState','../TestInfo.js','AWevD','\x20batch\x20','oDeii','trackEvent:\x20unsupported\x20testFrameworkState=','FiwAW','storePendingHook','2641251TsLPvO','../../../helpers/classLogger.js','processPendingHooks','trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20','sendLogCreatedEvent','BdaUi','rerun_name','7226634OehnbL','dMzIP','Cucumber\x20log\x20created\x20event','uuid','exports','getId','hookData','hook_type','Error\x20in\x20createTestFrameworkEventPayload:\x20','KEY_TEST_SCOPES','GbjTy','args','failure_reason','KEY_HOOKS_STARTED','\x20&\x20hook\x20=\x20','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','trackEvent\x20loading\x20testData\x20for\x20testId:\x20',',\x20state='];a95_0x29db=function(){return _0x3263a4;};return a95_0x29db();}class CucumberTestFramework extends TestFramework{constructor(_0x577a23,_0x24ec67,_0x309fed){super(_0x577a23,_0x24ec67,_0x309fed);}async[a95_0x220bb9(0x84)](_0x371dbe,_0x5d864d,_0x2c365a={}){const _0xd61c59=a95_0x220bb9,_0x5749b1={};_0x5749b1[_0xd61c59(0xb4)]=_0xd61c59(0xe5),_0x5749b1['oDeii']=function(_0x172705,_0x1fc9e0){return _0x172705===_0x1fc9e0;},_0x5749b1[_0xd61c59(0x111)]=function(_0x753086,_0x57ff58){return _0x753086===_0x57ff58;},_0x5749b1['hMMiY']=_0xd61c59(0x8d);const _0x241599=_0x5749b1;await super[_0xd61c59(0x84)](_0x371dbe,_0x5d864d,_0x2c365a);const _0x1d31b5=this[_0xd61c59(0xf3)](_0x371dbe,_0x5d864d,_0x2c365a);if(!_0x1d31b5){logger[_0xd61c59(0x85)](_0x241599['dPvZb']);return;}try{let _0x5f02a4,_0x257282;switch(_0x371dbe){case TestFrameworkState[_0xd61c59(0xfc)]:_0x5f02a4=_0x2c365a[_0xd61c59(0x10e)],_0x257282=TestInfo[_0xd61c59(0x143)](_0x5f02a4['id']);if(_0x241599[_0xd61c59(0x11b)](_0x5d864d,HookState['PRE'])){logger['debug'](_0xd61c59(0x136)+_0x5f02a4['id']);const _0x192334={};_0x192334[_0xd61c59(0x104)]=_0x257282,_0x192334[_0xd61c59(0xe8)]=_0x5f02a4,_0x1d31b5[_0xd61c59(0x99)](this[_0xd61c59(0x154)](_0x192334)),logger[_0xd61c59(0x85)](_0xd61c59(0xaf)+_0x5f02a4['id']),await this[_0xd61c59(0x121)](_0x1d31b5,_0x5f02a4['id']);}else{if(_0x241599[_0xd61c59(0x11b)](_0x5d864d,HookState[_0xd61c59(0xde)])){const _0x50aad7={};_0x50aad7['testUUID']=_0x257282,_0x50aad7[_0xd61c59(0xe8)]=_0x5f02a4,_0x1d31b5['addMultipleEntries'](this['parseCucumberTestResult'](_0x50aad7)),await this['processPendingHooks'](_0x1d31b5,_0x5f02a4['id']);}}break;case TestFrameworkState[_0xd61c59(0x14e)]:_0x241599['kBcjL'](_0x5d864d,HookState[_0xd61c59(0xde)])&&await this[_0xd61c59(0x123)](_0x1d31b5,_0x371dbe,_0x2c365a);break;default:if(CLIUtils[_0xd61c59(0xef)](_0x371dbe[_0xd61c59(0xad)]()[_0xd61c59(0xd0)]('.')[0x1])){const _0x42bc14=await this['trackHookEvent'](_0x1d31b5,_0x371dbe,_0x5d864d,_0x2c365a);_0x1d31b5['addMultipleEntries'](_0x42bc14);}else logger['debug'](_0xd61c59(0x11c)+_0x371dbe+_0xd61c59(0xcd)+_0x5d864d);break;}}catch(_0x1ee5b2){logger['error'](util['format'](_0x241599[_0xd61c59(0xbb)],_0x371dbe,_0x5d864d,_0x2c365a['length'],_0x1ee5b2));}_0x2c365a[_0xd61c59(0xd6)]=_0x1d31b5,await this[_0xd61c59(0x147)](_0x1d31b5,_0x371dbe,_0x5d864d,_0x2c365a);}[a95_0x220bb9(0xf3)](_0x22fbe8,_0x5bf905,_0x3723b7={}){const _0x53a9c8=a95_0x220bb9,_0x57ed5f={};_0x57ed5f['GFXMy']=function(_0x2dac48,_0x426c2){return _0x2dac48===_0x426c2;};const _0x318b47=_0x57ed5f;let _0x48658a=null;return(_0x318b47[_0x53a9c8(0xb6)](_0x22fbe8,TestFrameworkState[_0x53a9c8(0x80)])||_0x318b47[_0x53a9c8(0xb6)](_0x22fbe8,TestFrameworkState[_0x53a9c8(0xfb)]))&&this['trackCucumberInstance'](_0x22fbe8,_0x3723b7),_0x48658a=TestFramework['getTrackedInstance'](),_0x48658a;}[a95_0x220bb9(0xac)](_0x1723c3,_0x2bc817){const _0x176c81=a95_0x220bb9,_0x1d4db2=CLIUtils[_0x176c81(0xff)](),_0x2bb2a6=TrackedInstance[_0x176c81(0x100)](_0x1d4db2);let _0x4ee3e0=null;logger[_0x176c81(0x85)](_0x176c81(0x135)+_0x1d4db2+_0x176c81(0x137)+_0x1723c3),_0x4ee3e0=new TestFrameworkInstance(_0x2bb2a6,this[_0x176c81(0xb0)](),this[_0x176c81(0xd4)](),_0x1723c3,HookState[_0x176c81(0xfb)]),TestFramework[_0x176c81(0xc3)](_0x2bb2a6,_0x4ee3e0),logger[_0x176c81(0x85)](_0x176c81(0xe3)+_0x2bb2a6[_0x176c81(0x12b)]()+_0x176c81(0xdc)+_0x1d4db2);}['parseCucumberTest'](_0x1d352d){const _0x4b8505=a95_0x220bb9,_0x5e9720={};_0x5e9720['lLWWx']='No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test';const _0x5a03a9=_0x5e9720,{testUUID:_0x5ba2c1,testData:_0x111671}=_0x1d352d;if(!_0x111671||!_0x111671[_0x4b8505(0x129)])return logger[_0x4b8505(0x85)](_0x5a03a9['lLWWx']),{};const _0x22c77c=_0x5ba2c1,_0x3ed464=_0x111671['uuid'],_0x3b3f96=this[_0x4b8505(0xb0)]()[0x0],_0x3b384c=this[_0x4b8505(0xd4)](),_0x322bad={[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x3b3f96,[TestFrameworkConstants[_0x4b8505(0xcf)]]:_0x3b384c[_0x3b3f96],[TestFrameworkConstants[_0x4b8505(0xa6)]]:[],[TestFrameworkConstants[_0x4b8505(0x9c)]]:{},[TestFrameworkConstants[_0x4b8505(0x133)]]:{},[TestFrameworkConstants[_0x4b8505(0x10d)]]:_0x22c77c,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x4b8505(0xfe)],[TestFrameworkConstants['KEY_AUTOMATE_SESSION_NAME']]:_0x111671[_0x4b8505(0xc9)]||'',[TestFrameworkConstants[_0x4b8505(0xa2)]]:_0x111671[_0x4b8505(0x95)]||'',[TestFrameworkConstants[_0x4b8505(0xf9)]]:_0x3ed464,[TestFrameworkConstants['KEY_TEST_NAME']]:_0x111671['name']||'',[TestFrameworkConstants['KEY_TEST_LOCATION']]:_0x111671[_0x4b8505(0xca)]||'',[TestFrameworkConstants[_0x4b8505(0x13e)]]:_0x111671[_0x4b8505(0xed)]?.[_0x4b8505(0xfd)]||null,[TestFrameworkConstants[_0x4b8505(0x150)]]:_0x111671[_0x4b8505(0x138)]||[],[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x111671[_0x4b8505(0xa8)]||new Date()[_0x4b8505(0x115)](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x111671['scopes']?.[0x0]||'',[TestFrameworkConstants[_0x4b8505(0x12f)]]:_0x111671['scopes']||[],[TestFrameworkConstants[_0x4b8505(0xab)]]:_0x111671[_0x4b8505(0x149)]?.[_0x4b8505(0x125)]||_0x111671[_0x4b8505(0xc9)]||'',[TestFrameworkConstants[_0x4b8505(0x113)]]:{},[TestFrameworkConstants['KEY_TEST_META']]:_0x111671[_0x4b8505(0xb2)]||{}};TestInfo[_0x4b8505(0xda)](_0x3ed464,_0x322bad),logger[_0x4b8505(0x85)]('Parsed\x20cucumber\x20test:\x20'+_0x111671[_0x4b8505(0xc9)]+_0x4b8505(0xf5)+_0x22c77c);const _0x233840={};return _0x233840[_0x3ed464]=_0x322bad,_0x233840;}[a95_0x220bb9(0xb5)](_0x46031e){const _0x3f2783=a95_0x220bb9,_0x43cb2a={'xJTDU':'No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','DBPZl':_0x3f2783(0x10c),'BJSgO':function(_0x5efb30,_0x3fd948){return _0x5efb30===_0x3fd948;},'kprxX':_0x3f2783(0xe4),'VZwBw':_0x3f2783(0x13d),'QfTUj':function(_0x11ccd2,_0x5766a1,_0x82ba80){return _0x11ccd2(_0x5766a1,_0x82ba80);},'tDKfI':function(_0x3fbfd4,_0x4efbc2){return _0x3fbfd4>_0x4efbc2;}},{testUUID:_0x58e9b3,testData:_0x188910}=_0x46031e;if(!_0x188910||!_0x188910[_0x3f2783(0x129)])return logger[_0x3f2783(0x85)](_0x43cb2a[_0x3f2783(0x91)]),{};const _0x443650=this[_0x3f2783(0xf3)](TestFrameworkState[_0x3f2783(0xfc)],HookState[_0x3f2783(0xde)]),_0x3179ff=_0x188910[_0x3f2783(0x129)],_0x1426f0=TestInfo[_0x3f2783(0x102)](_0x3179ff)||{},_0x29b272=_0x1426f0?_0x1426f0[TestFrameworkConstants[_0x3f2783(0x113)]]||{}:{},_0x4eddb8={..._0x1426f0,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x188910[_0x3f2783(0xdd)]||_0x43cb2a['DBPZl'],[TestFrameworkConstants[_0x3f2783(0xb9)]]:_0x188910[_0x3f2783(0xba)]||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_RESULT_AT']]:new Date()[_0x3f2783(0x115)](),[TestFrameworkConstants[_0x3f2783(0x113)]]:_0x29b272,[TestFrameworkConstants[_0x3f2783(0x13c)]]:[],[TestFrameworkConstants['KEY_TEST_META']]:_0x188910[_0x3f2783(0xb2)]||{}};_0x43cb2a[_0x3f2783(0x109)](_0x188910[_0x3f2783(0xdd)],_0x43cb2a[_0x3f2783(0xd9)])&&_0x188910[_0x3f2783(0xae)]&&(_0x4eddb8[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x188910[_0x3f2783(0xd3)]||_0x43cb2a[_0x3f2783(0xe1)],_0x4eddb8[TestFrameworkConstants[_0x3f2783(0x151)]]=_0x188910[_0x3f2783(0x132)]||'',_0x4eddb8[TestFrameworkConstants[_0x3f2783(0xdb)]]=_0x188910[_0x3f2783(0xae)]);const _0x2af6c5=TestInfo[_0x3f2783(0x102)](_0x3179ff)[TestFrameworkConstants[_0x3f2783(0x9b)]]||{},_0x3dd710=_0x43cb2a['QfTUj'](getManualUploadLogs,_0x2af6c5,_0x443650['getAllData']()['get'](_0x3179ff)[TestFrameworkConstants[_0x3f2783(0x10d)]]);if(_0x43cb2a[_0x3f2783(0x8c)](_0x3dd710['length'],0x0)){const _0x2dc533=_0x4eddb8[TestFrameworkConstants[_0x3f2783(0x13c)]]||[];_0x4eddb8[TestFrameworkConstants[_0x3f2783(0x13c)]]=[..._0x2dc533,..._0x3dd710];}_0x188910[_0x3f2783(0x140)]&&_0x43cb2a['tDKfI'](_0x188910['hooks'][_0x3f2783(0xfa)],0x0)&&(_0x4eddb8[TestFrameworkConstants['KEY_HOOKS_FINISHED']]=_0x188910['hooks']);TestInfo[_0x3f2783(0xda)](_0x3179ff,_0x4eddb8),logger['debug'](_0x3f2783(0x13a)+_0x188910['name']+_0x3f2783(0x81)+_0x188910[_0x3f2783(0xdd)]);const _0x4fbf37={};return _0x4fbf37[_0x3179ff]=_0x4eddb8,_0x4fbf37;}async[a95_0x220bb9(0x9d)](_0x57132f,_0x2eccfe,_0x169484,_0x9c2eed){const _0x4e706f=a95_0x220bb9,_0xcbb21={'kJBCE':'No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','txIRM':function(_0x2a2fa3){return _0x2a2fa3();},'YPDQU':function(_0x13f8b6,_0x4c41bf){return _0x13f8b6 in _0x4c41bf;},'PKnJK':function(_0x2fa2cc,_0x996885){return _0x2fa2cc===_0x996885;},'ccUJx':function(_0x5cf242,_0x1da36c){return _0x5cf242===_0x1da36c;},'xzpjZ':function(_0x272357,_0x41af58){return _0x272357>_0x41af58;},'lzjXw':function(_0x90450c,_0x4f3bc1){return _0x90450c===_0x4f3bc1;},'zRZdd':_0x4e706f(0xe4),'UeUea':'UnhandledError','dMzIP':_0x4e706f(0xf7),'mpwLM':function(_0x266b32,_0x5237b3){return _0x266b32!==_0x5237b3;}},{hookData:_0x49795d}=_0x9c2eed;if(!_0x49795d)return logger[_0x4e706f(0x85)](_0xcbb21[_0x4e706f(0x86)]),{};const _0x285d57=_0x49795d[_0x4e706f(0x129)]||_0xcbb21[_0x4e706f(0x9f)](uuidv4),_0x381034=_0x49795d[_0x4e706f(0xa5)],_0xf6407f=_0x2eccfe[_0x4e706f(0xad)]()['split']('.')[0x1],_0x407b52=TestInfo['getTestDetails'](_0x381034)[TestFrameworkConstants[_0x4e706f(0x113)]]||{},_0x54ccab=_0x57132f[_0x4e706f(0xf8)]()[_0x4e706f(0xdf)](_0x381034);if(!_0x54ccab)return logger['debug'](_0x4e706f(0x145)+_0x381034+_0x4e706f(0x8e)),this[_0x4e706f(0x11e)](_0x57132f,_0x381034,_0x2eccfe,_0x169484,_0x9c2eed),{};let _0x397f79=_0x54ccab[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x397f79&&(_0x397f79={});!_0xcbb21[_0x4e706f(0x14a)](_0xf6407f,_0x397f79)&&(_0x397f79[_0xf6407f]=[]);let _0x47d646=_0x54ccab[TestFrameworkConstants['KEY_HOOKS_FINISHED']];!_0x47d646&&(_0x47d646={});!_0xcbb21[_0x4e706f(0x14a)](_0xf6407f,_0x47d646)&&(_0x47d646[_0xf6407f]=[]);const _0x242d37={[TestFrameworkConstants['KEY_HOOKS_STARTED']]:_0x397f79,[TestFrameworkConstants[_0x4e706f(0x9c)]]:_0x47d646},_0x31b9dd={};_0x31b9dd[_0x381034]=_0x242d37;const _0x26e3a=_0x31b9dd;if(_0xcbb21['PKnJK'](_0x169484,HookState[_0x4e706f(0xea)])){const _0x49f242={[TestFrameworkConstants[_0x4e706f(0x98)]]:_0x285d57,[TestFrameworkConstants[_0x4e706f(0x110)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants['KEY_EVENT_STARTED_AT']]:_0x49795d[_0x4e706f(0xaa)],[TestFrameworkConstants[_0x4e706f(0x88)]]:[],[TestFrameworkConstants[_0x4e706f(0xb3)]]:_0x49795d[_0x4e706f(0xc9)]||_0x49795d[_0x4e706f(0x12d)],[TestFrameworkConstants[_0x4e706f(0x113)]]:_0x407b52};_0x49f242[_0x4e706f(0x82)]=_0xf6407f;const _0x1cac2d=_0x49f242;_0x397f79[_0xf6407f][_0x4e706f(0x101)](_0x1cac2d),_0x26e3a[_0x381034][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0xf6407f,logger[_0x4e706f(0x85)](_0x4e706f(0xd1)+_0xf6407f+_0x4e706f(0x134)+_0x1cac2d+_0x4e706f(0xf0)+_0x9c2eed);}else{if(_0xcbb21[_0x4e706f(0x144)](_0x169484,HookState['POST'])){const _0x27bdae=_0x49795d[_0x4e706f(0xdd)],_0x56919c=_0x397f79[_0xf6407f]||[];logger[_0x4e706f(0x85)](_0x4e706f(0x122)+_0x56919c+_0x4e706f(0x9e)+_0x9c2eed);if(_0xcbb21[_0x4e706f(0xf4)](_0x56919c[_0x4e706f(0xfa)],0x0)){const _0x1fdc2f=_0x56919c[_0x4e706f(0x90)]();_0xcbb21[_0x4e706f(0xd5)](_0x49795d['result'],_0xcbb21['zRZdd'])&&_0x49795d[_0x4e706f(0x7e)]?(_0x1fdc2f[TestFrameworkConstants[_0x4e706f(0xd2)]]=_0x49795d[_0x4e706f(0xd3)]||_0xcbb21['UeUea'],_0x1fdc2f[TestFrameworkConstants[_0x4e706f(0x148)]]=_0x49795d[_0x4e706f(0x132)]||'',_0x1fdc2f[TestFrameworkConstants[_0x4e706f(0xce)]]=_0x49795d[_0x4e706f(0x7e)]):_0x1fdc2f[TestFrameworkConstants[_0x4e706f(0x110)]]=_0xcbb21[_0x4e706f(0x127)];_0xcbb21[_0x4e706f(0x8f)](_0x27bdae,TestFrameworkConstants[_0x4e706f(0x87)])&&(_0x1fdc2f[TestFrameworkConstants[_0x4e706f(0x110)]]=_0x27bdae);_0x1fdc2f[TestFrameworkConstants[_0x4e706f(0xa3)]]=_0x49795d[_0x4e706f(0x146)]||new Date()[_0x4e706f(0x115)](),_0x1fdc2f[TestFrameworkConstants[_0x4e706f(0x113)]]=_0x407b52;const _0x5df567=_0x1fdc2f[TestFrameworkConstants[_0x4e706f(0x98)]];!_0x47d646[_0xf6407f]&&(_0x47d646[_0xf6407f]=[]),_0x47d646[_0xf6407f][_0x4e706f(0x101)](_0x1fdc2f),_0x26e3a[_0x381034][TestFrameworkConstants[_0x4e706f(0x83)]]=_0xf6407f;}}}return logger[_0x4e706f(0x85)](_0x4e706f(0x141)+_0x49795d[_0x4e706f(0x12d)]+_0x4e706f(0x153)+_0x285d57+_0x4e706f(0x10b)+_0x381034),_0x26e3a;}['createTestFrameworkEventPayload'](_0x541dd3){const _0x4f5be2=a95_0x220bb9,_0x24fa1b={};_0x24fa1b['SDSJi']=_0x4f5be2(0x13f);const _0x368972=_0x24fa1b;try{const _0x26ccea=_0x541dd3[_0x4f5be2(0x10e)]?_0x541dd3['test']['id']:_0x541dd3[_0x4f5be2(0x12c)]['test_run_id'],_0x419a11=_0x541dd3['instance'],_0x3b47c8=_0x419a11['getContext'](),_0x362d06=_0x419a11[_0x4f5be2(0xf8)]()[_0x4f5be2(0xdf)](_0x26ccea);if(!_0x362d06)return logger[_0x4f5be2(0x85)](_0x4f5be2(0x116)+_0x26ccea),{};logger['debug'](_0x4f5be2(0xbf)+_0x26ccea);const {[TestFrameworkConstants[_0x4f5be2(0x9a)]]:_0x313d50='',[TestFrameworkConstants[_0x4f5be2(0xcf)]]:_0xabf8f7='',[TestFrameworkConstants[_0x4f5be2(0x89)]]:_0x3932df='',[TestFrameworkConstants[_0x4f5be2(0xb9)]]:_0x1292dc=''}=_0x362d06,_0x1cad67=_0x419a11[_0x4f5be2(0x117)]()[_0x4f5be2(0xad)]()['split']('.')[0x1],_0x3ffea0=_0x419a11['getCurrentHookState']()['toString']()[_0x4f5be2(0xd0)]('.')[0x1],_0x66e866=global?.[_0x4f5be2(0x10f)]??0x0,_0x3d4a7c=_0x419a11[_0x4f5be2(0x10a)](),_0x57cdb0=Buffer[_0x4f5be2(0xe9)](JSON[_0x4f5be2(0x108)](_0x362d06))[_0x4f5be2(0xad)](_0x368972[_0x4f5be2(0x14c)]),_0x5c9c83={'hash':_0x3b47c8[_0x4f5be2(0x12b)](),'threadId':_0x3b47c8[_0x4f5be2(0x14d)]()[_0x4f5be2(0xad)](),'processId':_0x3b47c8[_0x4f5be2(0xf6)]()[_0x4f5be2(0xad)]()},_0x114b5c={};_0x114b5c['platformIndex']=_0x66e866,_0x114b5c['testFrameworkName']=_0x313d50,_0x114b5c[_0x4f5be2(0x152)]=_0xabf8f7,_0x114b5c[_0x4f5be2(0xc6)]=_0x1cad67,_0x114b5c['hookState']=_0x3ffea0,_0x114b5c[_0x4f5be2(0xa8)]=_0x3932df,_0x114b5c[_0x4f5be2(0x96)]=_0x1292dc,_0x114b5c[_0x4f5be2(0x129)]=_0x3d4a7c,_0x114b5c[_0x4f5be2(0xe2)]=_0x57cdb0,_0x114b5c[_0x4f5be2(0x103)]=_0x5c9c83;const _0x5ecb44=_0x114b5c;return logger['debug'](_0x4f5be2(0xee)+_0x26ccea+_0x4f5be2(0xa4)+_0x1cad67+'\x20hookState:\x20'+_0x3ffea0),_0x5ecb44;}catch(_0xbabbe2){return logger['error'](_0x4f5be2(0x12e)+util[_0x4f5be2(0x14b)](_0xbabbe2)),{};}}async[a95_0x220bb9(0x123)](_0x3ed798,_0x3595b3,_0x25aafe){const _0x386f87=a95_0x220bb9,_0x16507d={'FiwAW':function(_0x393f26,_0x3e4d8d,_0x1f3a30){return _0x393f26(_0x3e4d8d,_0x1f3a30);},'GbjTy':function(_0x311e83,_0x56a2e9){return _0x311e83===_0x56a2e9;},'xDnQv':_0x386f87(0x94),'vuBiV':function(_0x3d61d5,_0x38c8cf){return _0x3d61d5/_0x38c8cf;},'KSFuX':function(_0x222065,_0x5c4001){return _0x222065<_0x5c4001;},'BdaUi':function(_0x56cd75,_0x283ac8){return _0x56cd75*_0x283ac8;},'AWevD':function(_0x1c644a,_0x5ecef4){return _0x1c644a+_0x5ecef4;},'PujVf':function(_0x27cb53,_0x2db72b){return _0x27cb53+_0x2db72b;},'UBNPI':_0x386f87(0x128)};try{const _0x44996d=_0x25aafe['testUUID'],_0x455579=_0x3ed798[_0x386f87(0xf8)]()[_0x386f87(0xdf)](_0x44996d),{[TestFrameworkConstants[_0x386f87(0x9a)]]:_0xc7f8e5='',[TestFrameworkConstants[_0x386f87(0xcf)]]:_0x5cc217=''}=_0x455579,_0x43c10d=TestInfo['readLogObjects'](_0x44996d),_0x30df2b=TestInfo[_0x386f87(0x102)](_0x44996d)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x576021=_0x16507d[_0x386f87(0x11d)](getMediaArtifactsLogs,_0x30df2b,_0x3ed798[_0x386f87(0xf8)]()[_0x386f87(0xdf)](_0x44996d)[TestFrameworkConstants['KEY_TEST_UUID']]),_0x2d1273=(_0x43c10d||[])[_0x386f87(0xc4)](_0x576021||[]);if(!_0x2d1273||_0x16507d[_0x386f87(0x130)](_0x2d1273[_0x386f87(0xfa)],0x0)){logger[_0x386f87(0x85)](_0x16507d[_0x386f87(0xbc)]);return;}const _0x20ea05=0x28,_0x2676b1=Math[_0x386f87(0xc0)](_0x16507d[_0x386f87(0x13b)](_0x2d1273[_0x386f87(0xfa)],_0x20ea05));for(let _0x13b57b=0x0;_0x16507d[_0x386f87(0xec)](_0x13b57b,_0x2676b1);_0x13b57b++){const _0x337b0f=_0x16507d[_0x386f87(0x124)](_0x13b57b,_0x20ea05),_0x304f1c=_0x16507d['AWevD'](_0x337b0f,_0x20ea05),_0x5f1056=_0x2d1273[_0x386f87(0x139)](_0x337b0f,_0x304f1c),_0x57127f={'platformIndex':global?.[_0x386f87(0x10f)]??0x0,'logs':_0x5f1056,'testFrameworkName':_0xc7f8e5,'testFrameworkVersion':_0x5cc217,'testFrameworkState':_0x3595b3[_0x386f87(0xad)]()['split']('.')[0x1]};logger['debug'](_0x386f87(0x114)+_0x44996d+_0x386f87(0x11a)+_0x16507d[_0x386f87(0x119)](_0x13b57b,0x1)+'/'+_0x2676b1+_0x386f87(0xf1)+util[_0x386f87(0xb1)](_0x57127f));const _0xf65673=await GrpcClient[_0x386f87(0x8a)]()[_0x386f87(0x105)](_0x57127f);logger[_0x386f87(0x85)](_0x386f87(0x114)+_0x44996d+'\x20batch\x20'+_0x16507d['PujVf'](_0x13b57b,0x1)+'/'+_0x2676b1+_0x386f87(0x93)+util[_0x386f87(0xb1)](_0xf65673));}}catch(_0xee0db8){logger[_0x386f87(0x7f)]('sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20'+util[_0x386f87(0x14b)](_0xee0db8));}logger[_0x386f87(0x85)](_0x16507d[_0x386f87(0x8b)]);}['storePendingHook'](_0x10ed4b,_0x539e7d,_0x1ba59e,_0x341708,_0x451412){const _0x411bb8=a95_0x220bb9,_0x2ae35b={'testId':_0x539e7d,'testFrameworkState':_0x1ba59e,'hookState':_0x341708,'args':_0x451412,'timestamp':new Date()['toISOString']()};_0x10ed4b[_0x411bb8(0xe0)](_0x539e7d,_0x2ae35b),logger['debug'](_0x411bb8(0xeb)+_0x539e7d+_0x411bb8(0xbe)+_0x1ba59e+_0x411bb8(0xc7)+_0x341708);}async[a95_0x220bb9(0x121)](_0x3c0814,_0x4746fc){const _0x3703bc=a95_0x220bb9,_0x287166={};_0x287166[_0x3703bc(0xd8)]=function(_0x2d650c,_0x2349c7){return _0x2d650c>_0x2349c7;};const _0x2bfd30=_0x287166;if(!_0x3c0814[_0x3703bc(0xa9)](_0x4746fc))return;const _0x50fcda=_0x3c0814[_0x3703bc(0xa0)](_0x4746fc);logger['debug'](_0x3703bc(0xcb)+_0x50fcda[_0x3703bc(0xfa)]+_0x3703bc(0xe6)+_0x4746fc);for(const _0x2ceb77 of _0x50fcda){try{const _0x10dc1b=await this['trackHookEvent'](_0x3c0814,_0x2ceb77[_0x3703bc(0xc6)],_0x2ceb77[_0x3703bc(0xc1)],_0x2ceb77[_0x3703bc(0x131)]);_0x10dc1b&&_0x2bfd30[_0x3703bc(0xd8)](Object[_0x3703bc(0x92)](_0x10dc1b)['length'],0x0)&&_0x3c0814[_0x3703bc(0x99)](_0x10dc1b),await this[_0x3703bc(0x147)](_0x3c0814,_0x2ceb77['testFrameworkState'],_0x2ceb77[_0x3703bc(0xc1)],_0x2ceb77[_0x3703bc(0x131)]);}catch(_0x48775d){logger[_0x3703bc(0x7f)]('Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20'+_0x4746fc+_0x3703bc(0xc5)+_0x48775d);}}_0x3c0814['removePendingHooks'](_0x4746fc),logger[_0x3703bc(0x85)](_0x3703bc(0xc2)+_0x4746fc);}}module[a95_0x220bb9(0x12a)]=CucumberTestFramework;
1
+ const a95_0x224d5a=a95_0x27ef;(function(_0x52c231,_0x25c690){const _0x481d0=a95_0x27ef,_0x55bbef=_0x52c231();while(!![]){try{const _0x5731c6=-parseInt(_0x481d0(0x1e6))/0x1+parseInt(_0x481d0(0x155))/0x2+-parseInt(_0x481d0(0x1be))/0x3+-parseInt(_0x481d0(0x1ca))/0x4*(-parseInt(_0x481d0(0x16d))/0x5)+-parseInt(_0x481d0(0x1ec))/0x6*(parseInt(_0x481d0(0x1a0))/0x7)+-parseInt(_0x481d0(0x13a))/0x8*(parseInt(_0x481d0(0x13b))/0x9)+parseInt(_0x481d0(0x1a4))/0xa*(parseInt(_0x481d0(0x1b8))/0xb);if(_0x5731c6===_0x25c690)break;else _0x55bbef['push'](_0x55bbef['shift']());}catch(_0x2b0dcd){_0x55bbef['push'](_0x55bbef['shift']());}}}(a95_0x3ed0,0x4e10c));const TestFramework=require(a95_0x224d5a(0x1e5)),TestFrameworkState=require('../state/testFrameworkState.js'),HookState=require(a95_0x224d5a(0x1a3)),{createClassLogger}=require(a95_0x224d5a(0x19e)),TestFrameworkInstance=require(a95_0x224d5a(0x18a)),CLIUtils=require(a95_0x224d5a(0x1d2)),TrackedInstance=require(a95_0x224d5a(0x182)),TestFrameworkConstants=require(a95_0x224d5a(0x18d)),{getManualUploadLogs,getMediaArtifactsLogs}=require(a95_0x224d5a(0x1d1)),logger=createClassLogger(a95_0x224d5a(0x1d6)),{v4:uuidv4}=require(a95_0x224d5a(0x143)),util=require(a95_0x224d5a(0x1c4)),TestInfo=require(a95_0x224d5a(0x15f)),GrpcClient=require(a95_0x224d5a(0x157));class CucumberTestFramework extends TestFramework{constructor(_0x126ab1,_0xc27efd,_0x1f8074){super(_0x126ab1,_0xc27efd,_0x1f8074);}async[a95_0x224d5a(0x133)](_0x507523,_0x4435fc,_0x182a1a={}){const _0x5a1342=a95_0x224d5a,_0x20f0d6={};_0x20f0d6[_0x5a1342(0x156)]=_0x5a1342(0x145),_0x20f0d6[_0x5a1342(0x141)]=function(_0x532042,_0x3375ce){return _0x532042===_0x3375ce;},_0x20f0d6['AbMFW']='trackEvent:\x20Exception\x20in\x20event\x20tracking,\x20testFrameworkState=%s\x20hookState=%s\x20argsLength=%s,\x20exception=%s';const _0x10adec=_0x20f0d6;await super[_0x5a1342(0x133)](_0x507523,_0x4435fc,_0x182a1a);const _0x43e904=this['resolveInstance'](_0x507523,_0x4435fc,_0x182a1a);if(!_0x43e904){logger[_0x5a1342(0x189)](_0x10adec[_0x5a1342(0x156)]);return;}try{let _0x1aeb4b,_0x5b1c46;switch(_0x507523){case TestFrameworkState[_0x5a1342(0x171)]:_0x1aeb4b=_0x182a1a[_0x5a1342(0x1cf)],_0x5b1c46=TestInfo['getTestUUID'](_0x1aeb4b['id']);if(_0x10adec['ZKZnd'](_0x4435fc,HookState[_0x5a1342(0x192)])){logger[_0x5a1342(0x189)](_0x5a1342(0x1e4)+_0x1aeb4b['id']);const _0x416d39={};_0x416d39[_0x5a1342(0x162)]=_0x5b1c46,_0x416d39[_0x5a1342(0x1e7)]=_0x1aeb4b,_0x43e904['addMultipleEntries'](this['parseCucumberTest'](_0x416d39)),logger[_0x5a1342(0x189)](_0x5a1342(0x126)+_0x1aeb4b['id']),await this['processPendingHooks'](_0x43e904,_0x1aeb4b['id']);}else{if(_0x10adec[_0x5a1342(0x141)](_0x4435fc,HookState['POST'])){const _0x31b483={};_0x31b483['testUUID']=_0x5b1c46,_0x31b483[_0x5a1342(0x1e7)]=_0x1aeb4b,_0x43e904[_0x5a1342(0x1c9)](this['parseCucumberTestResult'](_0x31b483)),await this['processPendingHooks'](_0x43e904,_0x1aeb4b['id']);}}break;case TestFrameworkState[_0x5a1342(0x18b)]:_0x10adec['ZKZnd'](_0x4435fc,HookState[_0x5a1342(0x1c2)])&&await this['sendLogCreatedEvent'](_0x43e904,_0x507523,_0x182a1a);break;default:if(CLIUtils[_0x5a1342(0x14e)](_0x507523['toString']()[_0x5a1342(0x14d)]('.')[0x1])){const _0xbf5ff4=await this['trackHookEvent'](_0x43e904,_0x507523,_0x4435fc,_0x182a1a);_0x43e904[_0x5a1342(0x1c9)](_0xbf5ff4);}else logger['debug'](_0x5a1342(0x15a)+_0x507523+_0x5a1342(0x1f3)+_0x4435fc);break;}}catch(_0x19b69e){logger['error'](util[_0x5a1342(0x16f)](_0x10adec[_0x5a1342(0x146)],_0x507523,_0x4435fc,_0x182a1a[_0x5a1342(0x1e9)],_0x19b69e));}_0x182a1a[_0x5a1342(0x1cc)]=_0x43e904,await this[_0x5a1342(0x176)](_0x43e904,_0x507523,_0x4435fc,_0x182a1a);}['resolveInstance'](_0x51e05e,_0x232a7b,_0x477101={}){const _0x301862=a95_0x224d5a,_0x2078f9={};_0x2078f9['tOrHX']=function(_0x5d4893,_0x2809a4){return _0x5d4893===_0x2809a4;};const _0x205881=_0x2078f9;let _0x359cf9=null;return(_0x205881[_0x301862(0x1e1)](_0x51e05e,TestFrameworkState[_0x301862(0x174)])||_0x205881[_0x301862(0x1e1)](_0x51e05e,TestFrameworkState[_0x301862(0x1f4)]))&&this['trackCucumberInstance'](_0x51e05e,_0x477101),_0x359cf9=TestFramework[_0x301862(0x173)](),_0x359cf9;}[a95_0x224d5a(0x1ea)](_0x1f67d3,_0x4f3a2f){const _0x24334e=a95_0x224d5a,_0x595861=CLIUtils['getCurrentInstanceName'](),_0x52d630=TrackedInstance[_0x24334e(0x186)](_0x595861);let _0x133fc4=null;logger[_0x24334e(0x189)](_0x24334e(0x1de)+_0x595861+_0x24334e(0x154)+_0x1f67d3),_0x133fc4=new TestFrameworkInstance(_0x52d630,this['getTestFrameworks'](),this[_0x24334e(0x1ac)](),_0x1f67d3,HookState[_0x24334e(0x1f4)]),TestFramework[_0x24334e(0x1df)](_0x52d630,_0x133fc4),logger[_0x24334e(0x189)](_0x24334e(0x1ba)+_0x52d630['getId']()+'\x20target='+_0x595861);}['parseCucumberTest'](_0x51c1aa){const _0x788fa6=a95_0x224d5a,_0x9282f9={};_0x9282f9[_0x788fa6(0x134)]=_0x788fa6(0x1d4);const _0x9d7cd0=_0x9282f9,{testUUID:_0x1a7cd,testData:_0x14bfa5}=_0x51c1aa;if(!_0x14bfa5||!_0x14bfa5[_0x788fa6(0x143)])return logger[_0x788fa6(0x189)](_0x9d7cd0[_0x788fa6(0x134)]),{};const _0x511a1d=_0x1a7cd,_0x4e0668=_0x14bfa5[_0x788fa6(0x143)],_0x3c566=this[_0x788fa6(0x1dd)]()[0x0],_0x4d4841=this[_0x788fa6(0x1ac)](),_0x2f02ad={[TestFrameworkConstants[_0x788fa6(0x128)]]:_0x3c566,[TestFrameworkConstants[_0x788fa6(0x138)]]:_0x4d4841[_0x3c566],[TestFrameworkConstants[_0x788fa6(0x194)]]:[],[TestFrameworkConstants[_0x788fa6(0x1d5)]]:{},[TestFrameworkConstants[_0x788fa6(0x12c)]]:{},[TestFrameworkConstants['KEY_TEST_UUID']]:_0x511a1d,[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x788fa6(0x1af)],[TestFrameworkConstants[_0x788fa6(0x1d7)]]:_0x14bfa5[_0x788fa6(0x197)]||'',[TestFrameworkConstants[_0x788fa6(0x1f9)]]:_0x14bfa5[_0x788fa6(0x1b5)]||'',[TestFrameworkConstants['KEY_TEST_ID']]:_0x4e0668,[TestFrameworkConstants[_0x788fa6(0x1f8)]]:_0x14bfa5[_0x788fa6(0x197)]||'',[TestFrameworkConstants[_0x788fa6(0x149)]]:_0x14bfa5[_0x788fa6(0x1e3)]||'',[TestFrameworkConstants[_0x788fa6(0x17c)]]:_0x14bfa5[_0x788fa6(0x170)]?.[_0x788fa6(0x179)]||null,[TestFrameworkConstants['KEY_TEST_TAGS']]:_0x14bfa5[_0x788fa6(0x1c5)]||[],[TestFrameworkConstants[_0x788fa6(0x19f)]]:_0x14bfa5[_0x788fa6(0x1b3)]||new Date()['toISOString'](),[TestFrameworkConstants['KEY_TEST_SCOPE']]:_0x14bfa5[_0x788fa6(0x188)]?.[0x0]||'',[TestFrameworkConstants[_0x788fa6(0x180)]]:_0x14bfa5['scopes']||[],[TestFrameworkConstants[_0x788fa6(0x1b6)]]:_0x14bfa5[_0x788fa6(0x1d3)]?.[_0x788fa6(0x168)]||_0x14bfa5['name']||'',[TestFrameworkConstants[_0x788fa6(0x1d9)]]:{},[TestFrameworkConstants[_0x788fa6(0x1c3)]]:_0x14bfa5['meta']||{}};TestInfo['setTestDetails'](_0x4e0668,_0x2f02ad),logger['debug'](_0x788fa6(0x199)+_0x14bfa5['name']+_0x788fa6(0x1b2)+_0x511a1d);const _0x190c00={};return _0x190c00[_0x4e0668]=_0x2f02ad,_0x190c00;}[a95_0x224d5a(0x1b7)](_0x525c42){const _0x49842d=a95_0x224d5a,_0x4e6654={'ixVRy':_0x49842d(0x135),'mVIRE':_0x49842d(0x136),'zecHo':function(_0x44cb68,_0x2e105e){return _0x44cb68===_0x2e105e;},'SaIHn':_0x49842d(0x1ee),'oXFPa':_0x49842d(0x13d),'SVIrT':function(_0x99df3f,_0x3e9848,_0x5a0083){return _0x99df3f(_0x3e9848,_0x5a0083);},'UDmHB':function(_0x22194a,_0x174fb8){return _0x22194a>_0x174fb8;}},{testUUID:_0x52c2f5,testData:_0x5e01a9}=_0x525c42;if(!_0x5e01a9||!_0x5e01a9[_0x49842d(0x143)])return logger['debug'](_0x4e6654['ixVRy']),{};const _0x7d23e4=this[_0x49842d(0x160)](TestFrameworkState[_0x49842d(0x171)],HookState['POST']),_0x1e9887=_0x5e01a9[_0x49842d(0x143)],_0x280aed=TestInfo[_0x49842d(0x140)](_0x1e9887)||{},_0x439d63=_0x280aed?_0x280aed[TestFrameworkConstants[_0x49842d(0x1d9)]]||{}:{},_0x2415ec={..._0x280aed,[TestFrameworkConstants['KEY_TEST_RESULT']]:_0x5e01a9['result']||_0x4e6654[_0x49842d(0x150)],[TestFrameworkConstants[_0x49842d(0x1a8)]]:_0x5e01a9[_0x49842d(0x1ae)]||new Date()[_0x49842d(0x1cb)](),[TestFrameworkConstants[_0x49842d(0x1ab)]]:new Date()[_0x49842d(0x1cb)](),[TestFrameworkConstants[_0x49842d(0x1d9)]]:_0x439d63,[TestFrameworkConstants[_0x49842d(0x139)]]:[],[TestFrameworkConstants[_0x49842d(0x1c3)]]:_0x5e01a9[_0x49842d(0x1d0)]||{}};_0x4e6654[_0x49842d(0x1ed)](_0x5e01a9[_0x49842d(0x1b1)],_0x4e6654[_0x49842d(0x1a1)])&&_0x5e01a9[_0x49842d(0x147)]&&(_0x2415ec[TestFrameworkConstants['KEY_TEST_FAILURE_TYPE']]=_0x5e01a9['failure_type']||_0x4e6654[_0x49842d(0x1f5)],_0x2415ec[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]=_0x5e01a9[_0x49842d(0x1bd)]||'',_0x2415ec[TestFrameworkConstants['KEY_TEST_FAILURE']]=_0x5e01a9['failure']);const _0x3e3446=TestInfo[_0x49842d(0x140)](_0x1e9887)[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{},_0x33319c=_0x4e6654[_0x49842d(0x158)](getManualUploadLogs,_0x3e3446,_0x7d23e4[_0x49842d(0x187)]()[_0x49842d(0x19b)](_0x1e9887)[TestFrameworkConstants[_0x49842d(0x1a2)]]);if(_0x4e6654['UDmHB'](_0x33319c[_0x49842d(0x1e9)],0x0)){const _0x11907=_0x2415ec[TestFrameworkConstants[_0x49842d(0x139)]]||[];_0x2415ec[TestFrameworkConstants[_0x49842d(0x139)]]=[..._0x11907,..._0x33319c];}_0x5e01a9[_0x49842d(0x1bc)]&&_0x4e6654[_0x49842d(0x1ce)](_0x5e01a9[_0x49842d(0x1bc)][_0x49842d(0x1e9)],0x0)&&(_0x2415ec[TestFrameworkConstants[_0x49842d(0x1d5)]]=_0x5e01a9[_0x49842d(0x1bc)]);TestInfo['setTestDetails'](_0x1e9887,_0x2415ec),logger[_0x49842d(0x189)](_0x49842d(0x12a)+_0x5e01a9[_0x49842d(0x197)]+_0x49842d(0x191)+_0x5e01a9['result']);const _0x5e7cc9={};return _0x5e7cc9[_0x1e9887]=_0x2415ec,_0x5e7cc9;}async['trackHookEvent'](_0x1ab770,_0x685e31,_0x4d10e4,_0x2a11c6){const _0xa74660=a95_0x224d5a,_0x528cdb={'lUqXX':_0xa74660(0x15b),'RtxBZ':function(_0x3014a7){return _0x3014a7();},'rkXWx':function(_0x3b0b20,_0xb43e5f){return _0x3b0b20 in _0xb43e5f;},'vTyUE':function(_0x4bca7d,_0x172b92){return _0x4bca7d in _0x172b92;},'xVaPp':function(_0x112841,_0x5b1816){return _0x112841===_0x5b1816;},'OGLzG':function(_0x295b5f,_0x6c3804){return _0x295b5f===_0x6c3804;},'tjBCg':function(_0x1622b7,_0x35b0fa){return _0x1622b7>_0x35b0fa;},'zrKXs':function(_0x3f4949,_0x211e40){return _0x3f4949===_0x211e40;},'zpoVV':_0xa74660(0x1ee),'jaJOO':_0xa74660(0x13d),'teLDN':_0xa74660(0x1a6),'Xnlec':function(_0x16f3cd,_0x54b02f){return _0x16f3cd!==_0x54b02f;}},{hookData:_0x5ca086}=_0x2a11c6;if(!_0x5ca086)return logger['debug'](_0x528cdb[_0xa74660(0x195)]),{};const _0x2c2792=_0x5ca086[_0xa74660(0x143)]||_0x528cdb['RtxBZ'](uuidv4),_0x118e17=_0x5ca086[_0xa74660(0x172)],_0x4a8ba2=_0x685e31[_0xa74660(0x16b)]()[_0xa74660(0x14d)]('.')[0x1],_0x1469e3=TestInfo['getTestDetails'](_0x118e17)[TestFrameworkConstants[_0xa74660(0x1d9)]]||{},_0x2b76f6=_0x1ab770[_0xa74660(0x187)]()[_0xa74660(0x19b)](_0x118e17);if(!_0x2b76f6)return logger[_0xa74660(0x189)]('No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20'+_0x118e17+',\x20storing\x20as\x20pending\x20hook'),this[_0xa74660(0x1c0)](_0x1ab770,_0x118e17,_0x685e31,_0x4d10e4,_0x2a11c6),{};let _0x153633=_0x2b76f6[TestFrameworkConstants['KEY_HOOKS_STARTED']];!_0x153633&&(_0x153633={});!_0x528cdb[_0xa74660(0x127)](_0x4a8ba2,_0x153633)&&(_0x153633[_0x4a8ba2]=[]);let _0x322ed1=_0x2b76f6[TestFrameworkConstants[_0xa74660(0x1d5)]];!_0x322ed1&&(_0x322ed1={});!_0x528cdb[_0xa74660(0x152)](_0x4a8ba2,_0x322ed1)&&(_0x322ed1[_0x4a8ba2]=[]);const _0x4f8985={[TestFrameworkConstants[_0xa74660(0x12c)]]:_0x153633,[TestFrameworkConstants[_0xa74660(0x1d5)]]:_0x322ed1},_0x305f2b={};_0x305f2b[_0x118e17]=_0x4f8985;const _0x2e1b23=_0x305f2b;if(_0x528cdb[_0xa74660(0x12e)](_0x4d10e4,HookState[_0xa74660(0x192)])){const _0x4de187={[TestFrameworkConstants['KEY_HOOK_ID']]:_0x2c2792,[TestFrameworkConstants[_0xa74660(0x1aa)]]:TestFrameworkConstants['DEFAULT_HOOK_RESULT'],[TestFrameworkConstants[_0xa74660(0x13f)]]:_0x5ca086[_0xa74660(0x161)],[TestFrameworkConstants['KEY_HOOK_LOGS']]:[],[TestFrameworkConstants[_0xa74660(0x159)]]:_0x5ca086[_0xa74660(0x197)]||_0x5ca086[_0xa74660(0x14f)],[TestFrameworkConstants[_0xa74660(0x1d9)]]:_0x1469e3};_0x4de187[_0xa74660(0x14c)]=_0x4a8ba2;const _0x4acd1b=_0x4de187;_0x153633[_0x4a8ba2][_0xa74660(0x17b)](_0x4acd1b),_0x2e1b23[_0x118e17][TestFrameworkConstants['KEY_HOOK_LAST_STARTED']]=_0x4a8ba2,logger['debug'](_0xa74660(0x1a9)+_0x4a8ba2+'\x20&\x20hook\x20=\x20'+_0x4acd1b+'\x20\x20and\x20args\x20=\x20'+_0x2a11c6);}else{if(_0x528cdb[_0xa74660(0x1bb)](_0x4d10e4,HookState[_0xa74660(0x1c2)])){const _0x14c671=_0x5ca086[_0xa74660(0x1b1)],_0x55316d=_0x153633[_0x4a8ba2]||[];logger[_0xa74660(0x189)]('trackHookEvent:\x20Hook\x20List\x20in\x20Post\x20'+_0x55316d+_0xa74660(0x15e)+_0x2a11c6);if(_0x528cdb[_0xa74660(0x12d)](_0x55316d[_0xa74660(0x1e9)],0x0)){const _0x47e395=_0x55316d[_0xa74660(0x1f7)]();_0x528cdb[_0xa74660(0x1b9)](_0x5ca086['result'],_0x528cdb[_0xa74660(0x13e)])&&_0x5ca086[_0xa74660(0x183)]?(_0x47e395[TestFrameworkConstants['KEY_HOOK_FAILURE_TYPE']]=_0x5ca086[_0xa74660(0x167)]||_0x528cdb['jaJOO'],_0x47e395[TestFrameworkConstants[_0xa74660(0x144)]]=_0x5ca086[_0xa74660(0x1bd)]||'',_0x47e395[TestFrameworkConstants[_0xa74660(0x14a)]]=_0x5ca086[_0xa74660(0x183)]):_0x47e395[TestFrameworkConstants['KEY_HOOK_RESULT']]=_0x528cdb['teLDN'];_0x528cdb[_0xa74660(0x16a)](_0x14c671,TestFrameworkConstants[_0xa74660(0x1f6)])&&(_0x47e395[TestFrameworkConstants[_0xa74660(0x1aa)]]=_0x14c671);_0x47e395[TestFrameworkConstants[_0xa74660(0x153)]]=_0x5ca086[_0xa74660(0x1e8)]||new Date()[_0xa74660(0x1cb)](),_0x47e395[TestFrameworkConstants[_0xa74660(0x1d9)]]=_0x1469e3;const _0x221478=_0x47e395[TestFrameworkConstants[_0xa74660(0x142)]];!_0x322ed1[_0x4a8ba2]&&(_0x322ed1[_0x4a8ba2]=[]),_0x322ed1[_0x4a8ba2][_0xa74660(0x17b)](_0x47e395),_0x2e1b23[_0x118e17][TestFrameworkConstants[_0xa74660(0x151)]]=_0x4a8ba2;}}}return logger[_0xa74660(0x189)](_0xa74660(0x198)+_0x5ca086[_0xa74660(0x14f)]+_0xa74660(0x17a)+_0x2c2792+_0xa74660(0x1cd)+_0x118e17),_0x2e1b23;}[a95_0x224d5a(0x13c)](_0x4d9881){const _0x1b3dd7=a95_0x224d5a,_0x3b0dc2={};_0x3b0dc2[_0x1b3dd7(0x17e)]=_0x1b3dd7(0x1f1);const _0x3585c1=_0x3b0dc2;try{const _0x663eec=_0x4d9881[_0x1b3dd7(0x1cf)]?_0x4d9881[_0x1b3dd7(0x1cf)]['id']:_0x4d9881[_0x1b3dd7(0x15d)][_0x1b3dd7(0x172)],_0xe6bdbe=_0x4d9881[_0x1b3dd7(0x1cc)],_0x1e9780=_0xe6bdbe[_0x1b3dd7(0x196)](),_0x5d5e64=_0xe6bdbe[_0x1b3dd7(0x187)]()['get'](_0x663eec);if(!_0x5d5e64)return logger['debug'](_0x1b3dd7(0x1b0)+_0x663eec),{};logger[_0x1b3dd7(0x189)]('createTestFrameworkEventPayload\x20testId:\x20'+_0x663eec);const {[TestFrameworkConstants[_0x1b3dd7(0x128)]]:_0x318d0d='',[TestFrameworkConstants[_0x1b3dd7(0x138)]]:_0x1e0a3e='',[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:_0x54ff1f='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0xd24a8f=''}=_0x5d5e64,_0x255ff4=_0xe6bdbe[_0x1b3dd7(0x1b4)]()['toString']()['split']('.')[0x1],_0xbc5658=_0xe6bdbe[_0x1b3dd7(0x184)]()[_0x1b3dd7(0x16b)]()['split']('.')[0x1],_0xd934d3=global?.[_0x1b3dd7(0x18f)]??0x0,_0x43c4d3=_0xe6bdbe[_0x1b3dd7(0x137)](),_0x21ab09=Buffer[_0x1b3dd7(0x16e)](JSON[_0x1b3dd7(0x132)](_0x5d5e64))[_0x1b3dd7(0x16b)](_0x3585c1[_0x1b3dd7(0x17e)]),_0x59e1e8={'hash':_0x1e9780['getId'](),'threadId':_0x1e9780['getThreadId']()[_0x1b3dd7(0x16b)](),'processId':_0x1e9780[_0x1b3dd7(0x177)]()[_0x1b3dd7(0x16b)]()},_0x5c625d={};_0x5c625d['platformIndex']=_0xd934d3,_0x5c625d[_0x1b3dd7(0x193)]=_0x318d0d,_0x5c625d[_0x1b3dd7(0x1dc)]=_0x1e0a3e,_0x5c625d[_0x1b3dd7(0x16c)]=_0x255ff4,_0x5c625d[_0x1b3dd7(0x14b)]=_0xbc5658,_0x5c625d[_0x1b3dd7(0x1b3)]=_0x54ff1f,_0x5c625d[_0x1b3dd7(0x1ef)]=_0xd24a8f,_0x5c625d[_0x1b3dd7(0x143)]=_0x43c4d3,_0x5c625d[_0x1b3dd7(0x18e)]=_0x21ab09,_0x5c625d[_0x1b3dd7(0x1d8)]=_0x59e1e8;const _0x369181=_0x5c625d;return logger['debug'](_0x1b3dd7(0x1a7)+_0x663eec+_0x1b3dd7(0x131)+_0x255ff4+_0x1b3dd7(0x1bf)+_0xbc5658),_0x369181;}catch(_0x2ea34a){return logger[_0x1b3dd7(0x1c8)](_0x1b3dd7(0x1eb)+util[_0x1b3dd7(0x16f)](_0x2ea34a)),{};}}async[a95_0x224d5a(0x1f0)](_0x191f39,_0x515303,_0x5e474e){const _0x558cd2=a95_0x224d5a,_0x210cc3={'qEofW':function(_0x39cd5c,_0x45c392,_0x598cd0){return _0x39cd5c(_0x45c392,_0x598cd0);},'iFiVi':function(_0x1e1d76,_0x5c16b8){return _0x1e1d76===_0x5c16b8;},'sERvQ':_0x558cd2(0x181),'moikK':function(_0x5c3e30,_0x446f34){return _0x5c3e30/_0x446f34;},'vbqVr':function(_0x16a4d0,_0x33439f){return _0x16a4d0<_0x33439f;},'goWyx':function(_0x22b4d3,_0x4899ae){return _0x22b4d3*_0x4899ae;},'JqjHC':function(_0x30b43a,_0x39fd5e){return _0x30b43a+_0x39fd5e;},'IwvOT':function(_0x160dcb,_0x54bc02){return _0x160dcb+_0x54bc02;},'Bivhk':_0x558cd2(0x1c7)};try{const _0x5616e1=_0x5e474e[_0x558cd2(0x162)],_0x141785=_0x191f39[_0x558cd2(0x187)]()['get'](_0x5616e1),{[TestFrameworkConstants[_0x558cd2(0x128)]]:_0x301bf0='',[TestFrameworkConstants[_0x558cd2(0x138)]]:_0x50567f=''}=_0x141785,_0x1ef2c0=TestInfo['readLogObjects'](_0x5616e1),_0xf9fc6=TestInfo['getTestDetails'](_0x5616e1)[TestFrameworkConstants[_0x558cd2(0x185)]]||{},_0x22c670=_0x210cc3[_0x558cd2(0x18c)](getMediaArtifactsLogs,_0xf9fc6,_0x191f39[_0x558cd2(0x187)]()['get'](_0x5616e1)[TestFrameworkConstants[_0x558cd2(0x1a2)]]),_0xd6dcf4=(_0x1ef2c0||[])[_0x558cd2(0x190)](_0x22c670||[]);if(!_0xd6dcf4||_0x210cc3[_0x558cd2(0x1c6)](_0xd6dcf4[_0x558cd2(0x1e9)],0x0)){logger['debug'](_0x210cc3['sERvQ']);return;}const _0x37ef24=0x28,_0x499f54=Math[_0x558cd2(0x15c)](_0x210cc3['moikK'](_0xd6dcf4[_0x558cd2(0x1e9)],_0x37ef24));for(let _0x5bcb76=0x0;_0x210cc3['vbqVr'](_0x5bcb76,_0x499f54);_0x5bcb76++){const _0x460aec=_0x210cc3[_0x558cd2(0x1e0)](_0x5bcb76,_0x37ef24),_0x534d80=_0x210cc3[_0x558cd2(0x1f2)](_0x460aec,_0x37ef24),_0x4a27c7=_0xd6dcf4['slice'](_0x460aec,_0x534d80),_0x3bb36a={'platformIndex':global?.[_0x558cd2(0x18f)]??0x0,'logs':_0x4a27c7,'testFrameworkName':_0x301bf0,'testFrameworkVersion':_0x50567f,'testFrameworkState':_0x515303[_0x558cd2(0x16b)]()[_0x558cd2(0x14d)]('.')[0x1]};logger[_0x558cd2(0x189)](_0x558cd2(0x1e2)+_0x5616e1+_0x558cd2(0x148)+_0x210cc3[_0x558cd2(0x1f2)](_0x5bcb76,0x1)+'/'+_0x499f54+_0x558cd2(0x130)+util[_0x558cd2(0x17f)](_0x3bb36a));const _0x40a040=await GrpcClient[_0x558cd2(0x12f)]()[_0x558cd2(0x163)](_0x3bb36a);logger[_0x558cd2(0x189)](_0x558cd2(0x1e2)+_0x5616e1+_0x558cd2(0x148)+_0x210cc3[_0x558cd2(0x19d)](_0x5bcb76,0x1)+'/'+_0x499f54+_0x558cd2(0x1ad)+util[_0x558cd2(0x17f)](_0x40a040));}}catch(_0x2ebe5d){logger[_0x558cd2(0x1c8)](_0x558cd2(0x1db)+util['format'](_0x2ebe5d));}logger[_0x558cd2(0x189)](_0x210cc3[_0x558cd2(0x17d)]);}['storePendingHook'](_0x45216f,_0x24608a,_0x26560a,_0x5eac6b,_0x4f3cae){const _0x1cca19=a95_0x224d5a,_0x4341c2={'testId':_0x24608a,'testFrameworkState':_0x26560a,'hookState':_0x5eac6b,'args':_0x4f3cae,'timestamp':new Date()['toISOString']()};_0x45216f['addPendingHook'](_0x24608a,_0x4341c2),logger[_0x1cca19(0x189)](_0x1cca19(0x166)+_0x24608a+_0x1cca19(0x129)+_0x26560a+',\x20hookState:\x20'+_0x5eac6b);}async[a95_0x224d5a(0x12b)](_0x921a63,_0x11633c){const _0x2151ef=a95_0x224d5a,_0x588bf2={};_0x588bf2['cJgYO']=function(_0x1dbfac,_0x5d8d59){return _0x1dbfac>_0x5d8d59;};const _0x458805=_0x588bf2;if(!_0x921a63['hasPendingHooks'](_0x11633c))return;const _0x5c3496=_0x921a63['getPendingHooks'](_0x11633c);logger[_0x2151ef(0x189)](_0x2151ef(0x1da)+_0x5c3496[_0x2151ef(0x1e9)]+_0x2151ef(0x169)+_0x11633c);for(const _0x1c0f85 of _0x5c3496){try{const _0x42783f=await this[_0x2151ef(0x178)](_0x921a63,_0x1c0f85['testFrameworkState'],_0x1c0f85[_0x2151ef(0x14b)],_0x1c0f85['args']);_0x42783f&&_0x458805[_0x2151ef(0x165)](Object[_0x2151ef(0x164)](_0x42783f)[_0x2151ef(0x1e9)],0x0)&&_0x921a63[_0x2151ef(0x1c9)](_0x42783f),await this[_0x2151ef(0x176)](_0x921a63,_0x1c0f85['testFrameworkState'],_0x1c0f85[_0x2151ef(0x14b)],_0x1c0f85['args']);}catch(_0x17ab05){logger[_0x2151ef(0x1c8)](_0x2151ef(0x175)+_0x11633c+_0x2151ef(0x1a5)+_0x17ab05);}}_0x921a63[_0x2151ef(0x19c)](_0x11633c),logger[_0x2151ef(0x189)](_0x2151ef(0x1c1)+_0x11633c);}}function a95_0x27ef(_0x5d715d,_0x48a5c7){const _0x3ed00f=a95_0x3ed0();return a95_0x27ef=function(_0x27ef97,_0x536949){_0x27ef97=_0x27ef97-0x126;let _0x31662d=_0x3ed00f[_0x27ef97];return _0x31662d;},a95_0x27ef(_0x5d715d,_0x48a5c7);}module[a95_0x224d5a(0x19a)]=CucumberTestFramework;function a95_0x3ed0(){const _0xb84a48=['exports','get','removePendingHooks','IwvOT','../../../helpers/classLogger.js','KEY_TEST_STARTED_AT','2709497sGtzUK','SaIHn','KEY_TEST_UUID','../state/hookState.js','10uJUUkt',',\x20error:\x20','passed','createTestFrameworkEventPayload:\x20complete\x20for\x20testId:\x20','KEY_TEST_ENDED_AT','trackHookEvent:\x20Hook\x20Started\x20in\x20PRE\x20key\x20=\x20','KEY_HOOK_RESULT','KEY_TEST_RESULT_AT','getTestFrameworksVersions','\x20response=','finishedAt','DEFAULT_TEST_RESULT','createTestFrameworkEventPayload:\x20No\x20test\x20data\x20found\x20for\x20test\x20ID:\x20','result','\x20with\x20UUID:\x20','startedAt','getCurrentTestState','file_name','KEY_TEST_RERUN_NAME','parseCucumberTestResult','7716335bEnUiJ','zrKXs','trackCucumberInstance:\x20saved\x20instance\x20contextId=','OGLzG','hooks','failure_reason','1204653RPGvXs','\x20hookState:\x20','storePendingHook','Cleared\x20processed\x20pending\x20hooks\x20for\x20testId:\x20','POST','KEY_TEST_META','util','tags','iFiVi','Cucumber\x20log\x20created\x20event','error','addMultipleEntries','1928772BZBrNY','toISOString','instance','\x20for\x20test:\x20','UDmHB','test','meta','../../../helpers/helper.js','../cliUtils.js','customRerunParam','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test','KEY_HOOKS_FINISHED','CucumberTestFramework','KEY_AUTOMATE_SESSION_NAME','executionContext','KEY_CUSTOM_TAGS','Processing\x20','sendLogCreatedEvent:\x20Error\x20in\x20sending\x20log\x20events:\x20','testFrameworkVersion','getTestFrameworks','trackCucumberInstance:\x20created\x20instance\x20for\x20target=','setTrackedInstance','goWyx','tOrHX','sendLogCreatedEvent:\x20for\x20testId:\x20','location','trackEvent\x20loading\x20testData\x20for\x20testId:\x20','./testFramework','158853xooDcL','testData','finished_at','length','trackCucumberInstance','Error\x20in\x20createTestFrameworkEventPayload:\x20','6npkBQC','zecHo','failed','endedAt','sendLogCreatedEvent','base64','JqjHC','\x20&\x20hookState=','NONE','oXFPa','DEFAULT_HOOK_RESULT','pop','KEY_TEST_NAME','KEY_TEST_FILE_PATH','trackEvent:\x20loaded\x20testData\x20for\x20testId:\x20','rkXWx','KEY_TEST_FRAMEWORK_NAME',',\x20state:\x20','Updated\x20cucumber\x20test\x20result:\x20','processPendingHooks','KEY_HOOKS_STARTED','tjBCg','xVaPp','getInstance','\x20payload=','\x20testState:\x20','stringify','trackEvent','HtQcW','No\x20test\x20data\x20or\x20UUID\x20found\x20for\x20cucumber\x20test\x20result','unknown','getRef','KEY_TEST_FRAMEWORK_VERSION','KEY_LOGS','120mruBnj','10512XcKgMC','createTestFrameworkEventPayload','UnhandledError','zpoVV','KEY_EVENT_STARTED_AT','getTestDetails','ZKZnd','KEY_HOOK_ID','uuid','KEY_HOOK_FAILURE_REASON','trackEvent:\x20Test\x20Framework\x20instance\x20not\x20found','AbMFW','failure','\x20batch\x20','KEY_TEST_LOCATION','KEY_HOOK_FAILURE','hookState','key','split','matchHookRegex','hook_type','mVIRE','KEY_HOOK_LAST_FINISHED','vTyUE','KEY_EVENT_ENDED_AT',',\x20state=','202146ZzaOWj','dsNYH','../grpcClient','SVIrT','KEY_HOOK_NAME','trackEvent:\x20unsupported\x20testFrameworkState=','No\x20hook\x20data\x20provided\x20for\x20cucumber\x20hook\x20event','ceil','hookData','\x20and\x20args\x20=\x20','../TestInfo.js','resolveInstance','started_at','testUUID','logCreatedEvent','keys','cJgYO','Stored\x20pending\x20hook\x20for\x20testId:\x20','failure_type','rerun_name','\x20pending\x20hooks\x20for\x20testId:\x20','Xnlec','toString','testFrameworkState','5ZnmXAS','from','format','body','TEST','test_run_id','getTrackedInstance','INIT_TEST','Error\x20processing\x20pending\x20hook\x20for\x20testId:\x20','runHooks','getProcessId','trackHookEvent','code','\x20with\x20id\x20','push','KEY_TEST_CODE','Bivhk','DSXaN','inspect','KEY_TEST_SCOPES','sendLogCreatedEvent:\x20No\x20logs\x20found,\x20skipping','../instances/trackedInstance.js','failure_data','getCurrentHookState','KEY_TEST_ATTACHMENTS','createContext','getAllData','scopes','debug','../instances/testFrameworkInstance.js','LOG_REPORT','qEofW','./constants/testFrameworkConstants.js','eventJson','browserstackPlatformIndex','concat','\x20with\x20result:\x20','PRE','testFrameworkName','KEY_TEST_LOGS','lUqXX','getContext','name','Tracked\x20cucumber\x20hook\x20event:\x20','Parsed\x20cucumber\x20test:\x20'];a95_0x3ed0=function(){return _0xb84a48;};return a95_0x3ed0();}