browserstack-node-sdk 1.68.1 → 1.69.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 (227) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/generated/sdk-messages_pb.d.ts +172 -0
  41. package/generated/sdk-messages_pb.js +1334 -0
  42. package/generated/sdk_grpc_pb.d.ts +10 -0
  43. package/generated/sdk_grpc_pb.js +69 -0
  44. package/package.json +5 -1
  45. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  46. package/src/bin/codeceptjs/command.js +1 -1
  47. package/src/bin/codeceptjs/helper.js +1 -1
  48. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  49. package/src/bin/cucumber-js/command.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  51. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  52. package/src/bin/cucumber-js/test-observability.js +1 -1
  53. package/src/bin/cucumber-js/test.setup.js +1 -1
  54. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  55. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  56. package/src/bin/detox/a11ySetup.js +1 -1
  57. package/src/bin/detox/command.js +1 -1
  58. package/src/bin/detox/modifyDetoxConf.js +1 -1
  59. package/src/bin/detox/traEmitter.js +1 -1
  60. package/src/bin/integrations/command.js +1 -1
  61. package/src/bin/integrations/constants.js +1 -1
  62. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  63. package/src/bin/jasmine/command.js +1 -1
  64. package/src/bin/jasmine/test.setup.js +1 -1
  65. package/src/bin/jasmine/testRunMap.js +1 -1
  66. package/src/bin/jest/command.js +1 -1
  67. package/src/bin/jest/customImplements/customCircus.js +1 -1
  68. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  69. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  70. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  71. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  72. package/src/bin/jest/jest.setup.js +1 -1
  73. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  74. package/src/bin/jest/test-observability/helper.js +1 -1
  75. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  76. package/src/bin/jest/test-observability/test-details.js +1 -1
  77. package/src/bin/jest/test.setup.js +1 -1
  78. package/src/bin/jest/test_before.setup.js +1 -1
  79. package/src/bin/launcher/launcher.js +1 -1
  80. package/src/bin/load/index.js +1 -1
  81. package/src/bin/load/loadErrors.js +1 -1
  82. package/src/bin/load/loadUtils.js +1 -1
  83. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  84. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  85. package/src/bin/mocha/command.js +1 -1
  86. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  87. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  88. package/src/bin/mocha/test.setup.js +1 -1
  89. package/src/bin/newman/command.js +1 -1
  90. package/src/bin/newman/helper.js +1 -1
  91. package/src/bin/newman/reporter/index.js +1 -1
  92. package/src/bin/newman/scriptRunner.js +1 -1
  93. package/src/bin/nightwatch/command.js +1 -1
  94. package/src/bin/node-generic/client.js +1 -1
  95. package/src/bin/playwright/accessibility-helper.js +1 -1
  96. package/src/bin/playwright/command.js +1 -1
  97. package/src/bin/playwright/globalSetup.js +1 -1
  98. package/src/bin/playwright/mock-process.js +1 -1
  99. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  100. package/src/bin/playwright/patches.js +1 -1
  101. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  102. package/src/bin/playwright/reporter/reporter.js +1 -1
  103. package/src/bin/playwright/reporter/test-details.js +1 -1
  104. package/src/bin/playwright/reporterArgs.js +1 -1
  105. package/src/bin/playwright/sessionDetails.js +1 -1
  106. package/src/bin/puppeteer/patches.js +1 -1
  107. package/src/bin/puppeteer/sessionDetails.js +1 -1
  108. package/src/bin/puppeteer/test.setup.js +1 -1
  109. package/src/bin/runner.js +1 -1
  110. package/src/bin/setup.js +1 -1
  111. package/src/bin/test-runner/index.js +1 -1
  112. package/src/bin/test-runner/runTest.js +1 -1
  113. package/src/bin/test-runner/testWorker.js +1 -1
  114. package/src/bin/testcafe/a11y-runner.js +1 -1
  115. package/src/bin/testcafe/command.js +1 -1
  116. package/src/bin/testcafe/reporter/index.js +1 -1
  117. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  118. package/src/bin/testcafe/session-registry.js +1 -1
  119. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  120. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  121. package/src/bin/testcafe/w3c-driver.js +1 -1
  122. package/src/bin/utils/apiUtilityMethods.js +1 -1
  123. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  124. package/src/bin/utils/constants.js +1 -1
  125. package/src/bin/utils/log4jsAppender.js +1 -1
  126. package/src/bin/utils/logPatcher.js +1 -1
  127. package/src/bin/utils/logReportingAPI.js +1 -1
  128. package/src/bin/utils/playwright-patcher.js +1 -1
  129. package/src/bin/utils/puppeteer-patcher.js +1 -1
  130. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  131. package/src/bin/utils/sharedUtils.js +1 -1
  132. package/src/bin/v2/TestInfo.js +1 -1
  133. package/src/bin/v2/browserstackCLI.js +1 -1
  134. package/src/bin/v2/cliUtils.js +1 -1
  135. package/src/bin/v2/customTagManager.js +1 -1
  136. package/src/bin/v2/eventDispatcher.js +1 -1
  137. package/src/bin/v2/framework/automationFramework.js +1 -1
  138. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  139. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  140. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  141. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  142. package/src/bin/v2/framework/mochaTestFramework.js +1 -0
  143. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  144. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  145. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  146. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  147. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  148. package/src/bin/v2/framework/seleniumAutomationFramework.js +1 -0
  149. package/src/bin/v2/framework/testFramework.js +1 -1
  150. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  151. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  152. package/src/bin/v2/grpcClient.js +1 -1
  153. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  154. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  155. package/src/bin/v2/instances/trackedContext.js +1 -1
  156. package/src/bin/v2/instances/trackedInstance.js +1 -1
  157. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  158. package/src/bin/v2/modules/baseModule.js +1 -1
  159. package/src/bin/v2/modules/loadTestModule.js +1 -1
  160. package/src/bin/v2/modules/observabilityModule.js +1 -1
  161. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  162. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  163. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  164. package/src/bin/v2/modules/testhubModule.js +1 -1
  165. package/src/bin/v2/runStateStore.js +1 -0
  166. package/src/bin/v2/sdkErrorHandler.js +1 -1
  167. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  168. package/src/bin/v2/state/hookState.js +1 -1
  169. package/src/bin/v2/state/testFrameworkState.js +1 -1
  170. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  171. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  172. package/src/bin/v2/utils/jest-utils.js +1 -1
  173. package/src/bin/vanilla-js/command.js +1 -1
  174. package/src/browserStackSdk.js +1 -1
  175. package/src/helpers/BrowserStackSetup.js +1 -1
  176. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  177. package/src/helpers/accessibility-automation/constants.js +1 -1
  178. package/src/helpers/accessibility-automation/helper.js +1 -1
  179. package/src/helpers/accessibility-automation/scripts.js +1 -1
  180. package/src/helpers/ats/constants.js +1 -1
  181. package/src/helpers/ats/helper.js +1 -1
  182. package/src/helpers/caCertHelper.js +1 -1
  183. package/src/helpers/capsMapping.js +1 -1
  184. package/src/helpers/central-scanner/constants.js +1 -1
  185. package/src/helpers/central-scanner/helpers.js +1 -1
  186. package/src/helpers/classLogger.js +1 -1
  187. package/src/helpers/driverInitErrorReporter.js +1 -1
  188. package/src/helpers/globals.js +1 -1
  189. package/src/helpers/helper.js +1 -1
  190. package/src/helpers/logger.js +1 -1
  191. package/src/helpers/metadata.js +1 -1
  192. package/src/helpers/patchHelper.js +1 -1
  193. package/src/helpers/patchHelpers.js +1 -1
  194. package/src/helpers/percy/Percy.js +1 -1
  195. package/src/helpers/percy/PercyBinary.js +1 -1
  196. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  197. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  198. package/src/helpers/percy/PercySDK.js +1 -1
  199. package/src/helpers/percy/index.js +1 -1
  200. package/src/helpers/percy/utils.js +1 -1
  201. package/src/helpers/performance/constants.js +1 -1
  202. package/src/helpers/performance/performance-tester.js +1 -1
  203. package/src/helpers/playwright-helper.js +1 -1
  204. package/src/helpers/processHelper.js +1 -1
  205. package/src/helpers/puppeteer-helper.js +1 -1
  206. package/src/helpers/request-spy.js +1 -1
  207. package/src/helpers/setKeepAlive.js +1 -1
  208. package/src/helpers/stackFrameUtils.js +1 -1
  209. package/src/helpers/test-observability/constants.js +1 -1
  210. package/src/helpers/test-observability/error-handler.js +1 -1
  211. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  212. package/src/helpers/test-observability/sessionHandler.js +1 -1
  213. package/src/helpers/test-observability/utils.js +1 -1
  214. package/src/helpers/test-orchestration/constants.js +1 -1
  215. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  216. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  217. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  218. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  219. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  220. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  221. package/src/helpers/testhub/constants.js +1 -1
  222. package/src/helpers/testhub/testhubHandler.js +1 -1
  223. package/src/helpers/testhub/utils.js +1 -1
  224. package/src/helpers/utilities.js +1 -1
  225. package/src/helpers/w3cMapping.js +1 -1
  226. package/src/hubAllocationMethods.js +1 -1
  227. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a8_0x4287a0=a8_0x3a18;(function(_0x331aba,_0x1943a2){const _0x56466b=a8_0x3a18,_0x5a92a7=_0x331aba();while(!![]){try{const _0x3836f8=parseInt(_0x56466b(0xd7))/0x1*(parseInt(_0x56466b(0xf1))/0x2)+-parseInt(_0x56466b(0x85))/0x3+parseInt(_0x56466b(0xac))/0x4+-parseInt(_0x56466b(0x108))/0x5*(parseInt(_0x56466b(0xf3))/0x6)+parseInt(_0x56466b(0xec))/0x7*(parseInt(_0x56466b(0x179))/0x8)+parseInt(_0x56466b(0x163))/0x9*(parseInt(_0x56466b(0x115))/0xa)+parseInt(_0x56466b(0xd9))/0xb*(parseInt(_0x56466b(0x14b))/0xc);if(_0x3836f8===_0x1943a2)break;else _0x5a92a7['push'](_0x5a92a7['shift']());}catch(_0x220a36){_0x5a92a7['push'](_0x5a92a7['shift']());}}}(a8_0x1082,0x28438));const {requireModule,modifyCommand,isTrue,markSessionStatus,isBrowserstackInfra,playwrightSetSessionName,playwrightMarkSessionStatus,nestedKeyValue}=require('../../helpers/helper'),{TEST_FRAMEWORK_HOOK_TIMEOUT,FRAMEWORKS}=require(a8_0x4287a0(0x84)),setKeepAlive=require(a8_0x4287a0(0xa6)),util=require(a8_0x4287a0(0x16a)),PerformanceTester=require('../../helpers/performance/performance-tester'),{EVENTS:PerformanceEvents}=require(a8_0x4287a0(0x161)),cucumberModule=requireModule(a8_0x4287a0(0x8d),a8_0x4287a0(0x12d)),logger=require('../../helpers/logger')['winstonLogger'],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),{sendPlatformDetails,addRequestSpy,patchConsoleLogger}=require(a8_0x4287a0(0x16c)),TestDetails=require(a8_0x4287a0(0xb6)),TestInfo=require(a8_0x4287a0(0xa3)),RequestQueueHandler=require('../../helpers/test-observability/requestQueueHandler'),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),MyReporter=require('../playwright/reporter/reporter.js'),SessionHandler=require(a8_0x4287a0(0xa2)),scripts=require(a8_0x4287a0(0xdf)),globals=require('../../helpers/globals'),testHubConstants=require('../../helpers/testhub/constants.js'),{shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require('lodash'),helper=require(a8_0x4287a0(0xf4));try{require(a8_0x4287a0(0x164))[a8_0x4287a0(0x162)]('cucumber-js');}catch(a8_0x53ae67){logger[a8_0x4287a0(0x7f)]('driver-init\x20capture\x20install\x20failed:\x20'+(a8_0x53ae67&&a8_0x53ae67[a8_0x4287a0(0x103)]));}const a8_0x2beb1e={};a8_0x2beb1e[a8_0x4287a0(0x120)]=undefined,a8_0x2beb1e[a8_0x4287a0(0x96)]={},a8_0x2beb1e['o11ySyncDone']=![],a8_0x2beb1e['pwPage']=null,a8_0x2beb1e[a8_0x4287a0(0x16b)]=![],a8_0x2beb1e[a8_0x4287a0(0x96)]['id']=undefined,a8_0x2beb1e[a8_0x4287a0(0x96)]['testInfo']=undefined;const workerDetails=a8_0x2beb1e;global[a8_0x4287a0(0x155)]=workerDetails;let playwrightPatcher=null;shouldProcessEventForTesthub()&&patchConsoleLogger();function a8_0x1082(){const _0x233dc4=['__platformCaps','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','length','getInstance','msSKp','Error:\x20at\x20After\x20(Playwright):\x20','hVxPB','rITBI','FwgJJ','28984mkIeRx','PRE','wEyix','debug','../../index','test_run_uuid','Error:\x20quiting\x20driver\x20at\x20After:\x20','Inside\x20browserstack\x20AfterAll','../utils/constants','771156QfUjOI','browserstackAgentV2','pzVyR','__currentTestInfo','PLAYWRIGHT','wmGZE','Error\x20sending\x20log\x20created\x20event:\x20','__drivers','@cucumber/cucumber/lib/index.js','browserstackPlatformIndex','WPEZe','trackEvent','Cleaned\x20up\x20close\x20tracker','bvsGC','pCvoT','IvSkF','CBTSessionCreated','currentTest','\x0aError:\x20','session_','XpdcU','isCliEnabled','stopMonitoring','Performing\x20scan\x20before\x20saving\x20results','cucumber-test','pickle','getGlobal','pid','eEtOg','../../helpers/test-observability/sessionHandler','../v2/TestInfo.js','MctLr',',\x22level\x22:\x20\x22','../../helpers/setKeepAlive','mrfOl','eEztB','UfUvz','Completed\x20Playwright\x20afterTestHook\x20execution','Executed\x20deferred\x20closes\x20after\x20QUIT\x20PRE\x20event\x20completion','751788weqgZj','map','bstack','BmfSD','text','ENV_VAR','performScan','__sessionFailed','1|4|2|3|0','iZZNW','../playwright/reporter/test-details.js','Failed:\x20','Executed\x20fallback\x20deferred\x20Playwright\x20closes\x20after\x20error','../v2/state/automationFrameworkState','afterTestHook','zsYnc','Flow\x20detection:\x20isSeleniumFlow=','qKGXj','kgyKo','\x22}}','PBAtd','iMByc','timeout','QwMbW','addTestUIDAndReportLog','executeDeferredCloses','\x20|\x20','../v2/browserstackCLI.js','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20\x22','Inside\x20browserstack\x20Before','is_mobile_session','toString','setFrameworkDetail','MAGwJ','Cucumber-JS','aNqQB','testCaseStartedId','pickleStep','AutomationFramework\x20QUIT\x20PRE\x20event\x20completed\x20for\x20test:\x20','initializePlaywrightPatching','then','shUGz',',\x20isPlaywrightFlow=','3hKqrGz','driverCleanup','11BArwJz','CONFIG','FIUVP','YwcZY','rSqXO','../v2/browserstackCLI','../../helpers/accessibility-automation/scripts','quitCount_','Error:\x20at\x20After\x20Step:\x20','Error:\x20cleaning\x20up\x20driver:\x20','Passed','Inside\x20browserstack\x20registerListeners','UFjTY','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','platformIndex','startMonitoring','vKGnr','Inside\x20browserstack\x20AfterStep','Patching\x20Playwright','77lgrUfO','Error\x20triggering\x20AutomationFramework\x20QUIT\x20PRE\x20event:\x20','bs:addLog:','pwPage','VJtNH','147374LIqICV','bdulW','587166VzxxVr','../../helpers/helper','driver\x20session\x20resolution\x20failed\x20during\x20cleanup:\x20','__error_messages__','shift','isRunning','__skipSessionName','qfjbe','Error\x20triggering\x20AutomationFramework\x20events:\x20','jygCq','catch','After','toLowerCase','Error:\x20in\x20After\x20Step\x20for\x20driver\x20','tags','WksvH','message','PGkzt','suzfa','test_run','Error\x20cleaning\x20up\x20Playwright\x20close\x20tracker:\x20','15hcdtlH','Before','uuid','page','AfterStep','Error\x20executing\x20deferred\x20closes:\x20','BROWSERSTACK_TESTHUB_JWT','initQuit','HBUjE','../utils/playwright-patcher','finally','Error:\x20sendPlatformDetails\x20at\x20After:\x20','bstackA11yShouldScan','3390bNmcNK','kHmou','testInfo','stringify','umsTD','MJbEV','executeScript','../v2/cliUtils','iZIQI','CUCUMBER','storeLogObjects','workerInfo','qMXjR','cleanup','jrAzu','Error\x20initializing\x20Playwright\x20patching:\x20','name','setGlobal','Error:\x20adding\x20scenario\x20error\x20at\x20After:\x20','__timeout','QUIT','event_type','pTXlb','env','@cucumber/cucumber','executeAsyncScript','getId','passed','join','sendTestLog:\x20No\x20testId\x20found\x20in\x20testInfo','uploadEventData','browserstackSessionName','eiwwR','Exception\x20in\x20setting\x20bstackA11yShouldScan\x20in\x20Before\x20Scenario\x20','mCNRS','Error\x20cleaning\x20up\x20close\x20tracker:\x20','platformCaps','getTestUUID','HBoRM','nZqRJ','Unknown\x20Test','bQWDF','Playwright\x20flow\x20detected\x20-\x20page\x20exists:\x20','ZzxcC','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case.\x20Error\x20:\x20','yJSiY','ajjSd','../v2/state/hookState','format','PPTgB','removeAllListeners','result','xZwUv','BeforeAll','674100bvRrBC','integrations','CXRUo','DtKcA','cMFSb','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','__skipSessionStatus','duYga','closeTracker','fVsJb','__workerDetails','skipSessionStatus','bjTjc','Cleaned\x20up\x20Playwright\x20close\x20tracker','YjVpD','error','status','aKoMu','jXAkn','getPackageVersion','Error\x20in\x20playwright\x20beforeTestHook:\x20','ZJtvY','../../helpers/performance/constants','installAll','5589Xoppdc','../../helpers/driverInitErrorReporter','JTzhw','Error:\x20quiting\x20driver\x20at\x20driver\x20cleanup:\x20','failed','@playwright/test','scenario','util','isPageFixture','../../helpers/test-observability/utils','info','QEncV','setDefaultTimeout'];a8_0x1082=function(){return _0x233dc4;};return a8_0x1082();}const sendTestLog=o11yErrorHandler(async function sendTestLog(_0x4c3dd1){const _0x29cbd7=a8_0x4287a0,_0x10a3a7={'WPEZe':function(_0x2051d1,_0x3e91a4){return _0x2051d1(_0x3e91a4);},'BRelx':'../v2/browserstackCLI','UFjTY':_0x29cbd7(0x132)},_0x456235=workerDetails['currentTest'][_0x29cbd7(0x117)];if(!_0x456235)return;if(playwrightPatcher)try{const _0x2d66da=_0x10a3a7[_0x29cbd7(0x8f)](require,_0x10a3a7['BRelx']);if(_0x2d66da[_0x29cbd7(0x173)]()[_0x29cbd7(0xf8)]()){const _0x88c7d3=_0x456235[_0x29cbd7(0xd0)];_0x88c7d3?(_0x4c3dd1[_0x29cbd7(0x10a)]=_0x88c7d3,_0x4c3dd1[_0x29cbd7(0x81)]=_0x88c7d3,TestInfo[_0x29cbd7(0x11f)](_0x88c7d3,_0x4c3dd1)):logger[_0x29cbd7(0x7f)](_0x10a3a7[_0x29cbd7(0xe5)]);return;}}catch(_0x35cbc3){logger['debug'](_0x29cbd7(0x8b)+util[_0x29cbd7(0x145)](_0x35cbc3));}await MyReporter[_0x29cbd7(0xc4)](_0x456235,_0x4c3dd1);}),registerListeners=()=>{const _0x1b31ad=a8_0x4287a0,_0x39f0b9={};_0x39f0b9[_0x1b31ad(0x116)]=_0x1b31ad(0xe4);const _0x1e2b3b=_0x39f0b9;logger[_0x1b31ad(0x7f)](_0x1e2b3b[_0x1b31ad(0x116)]),process[_0x1b31ad(0x147)](_0x1b31ad(0xee)+process[_0x1b31ad(0xa0)]),process['on'](_0x1b31ad(0xee)+process[_0x1b31ad(0xa0)],sendTestLog),PerformanceTester[_0x1b31ad(0xe8)]();};modifyCommand(),setKeepAlive();const Before=cucumberModule[a8_0x4287a0(0x109)],After=cucumberModule[a8_0x4287a0(0xfe)],AfterAll=cucumberModule['AfterAll'],BeforeAll=cucumberModule[a8_0x4287a0(0x14a)],AfterStep=cucumberModule[a8_0x4287a0(0x10c)],configuration=process[a8_0x4287a0(0x12c)][a8_0x4287a0(0xda)];if(configuration!==undefined){const config=JSON['parse'](configuration);isBrowserstackInfra()?(global[a8_0x4287a0(0xf9)]=isTrue(config['skipSessionName']),global[a8_0x4287a0(0x151)]=isTrue(config[a8_0x4287a0(0x156)])):(global['__skipSessionName']=!![],global[a8_0x4287a0(0x151)]=!![]);!helper[a8_0x4287a0(0x15e)](a8_0x4287a0(0x168))&&(logger['debug']('Patching\x20Selenium'),shouldProcessEventForTesthub()?require(a8_0x4287a0(0x80))[a8_0x4287a0(0x86)](config,null,!![]):require('../../index')[a8_0x4287a0(0x86)](config));global[a8_0x4287a0(0x170)]=config[a8_0x4287a0(0x139)]||{},global[a8_0x4287a0(0x8e)]=config[a8_0x4287a0(0xe7)];if(helper[a8_0x4287a0(0x15e)](a8_0x4287a0(0x168)))try{logger['debug'](a8_0x4287a0(0xeb)),playwrightPatcher=require(a8_0x4287a0(0x111)),playwrightPatcher[a8_0x4287a0(0xd3)](config),logger['debug']('Playwright\x20patching\x20initialized\x20for\x20Cucumber-JS');}catch(a8_0x40eb1e){logger['debug'](a8_0x4287a0(0x124)+util[a8_0x4287a0(0x145)](a8_0x40eb1e));}}global[a8_0x4287a0(0x128)]=0x0;const __setDefaultTimeout=cucumberModule[a8_0x4287a0(0x16f)];cucumberModule['setDefaultTimeout']=_0x63b1b=>{const _0x47fb0e=a8_0x4287a0,_0x5857aa={'zPOMt':function(_0x2d5627,_0x200343){return _0x2d5627(_0x200343);}};global[_0x47fb0e(0x128)]=_0x63b1b,_0x5857aa['zPOMt'](__setDefaultTimeout,_0x63b1b);};const a8_0x4ff417={};a8_0x4ff417[a8_0x4287a0(0x125)]='bstack',BeforeAll(a8_0x4ff417,async function(){const _0x28b411=a8_0x4287a0,_0x177300={'wmGZE':function(_0x170a07,_0x11eb7f,_0x36737d,_0x20dc4f){return _0x170a07(_0x11eb7f,_0x36737d,_0x20dc4f);},'wCBsn':_0x28b411(0x167),'nZqRJ':'\x20|\x20','wEyix':function(_0x5c4330,_0x41bf03,_0x726461){return _0x5c4330(_0x41bf03,_0x726461);},'MctLr':'passed','bjTjc':'Inside\x20browserstack\x20BeforeAll','fVsJb':function(_0x9dce3d,_0x51c6cd){return _0x9dce3d(_0x51c6cd);},'XpdcU':'../v2/browserstackCLI','zjIhp':_0x28b411(0x11c),'dpGUE':'Bootstrapping\x20BrowserstackCLI\x20for\x20cucumber-js\x20worker\x20process','vKGnr':function(_0x1d11cf){return _0x1d11cf();},'HuzCW':function(_0x406383,_0x18c2af){return _0x406383(_0x18c2af);}};PerformanceTester[_0x28b411(0xe8)](),logger[_0x28b411(0x7f)](_0x177300[_0x28b411(0x157)]),global[_0x28b411(0xf6)]=[],global[_0x28b411(0xb3)]=![];if(playwrightPatcher)try{const _0x4bf9ba=_0x177300[_0x28b411(0x154)](require,_0x177300[_0x28b411(0x99)]),_0x2e52ae=_0x177300[_0x28b411(0x154)](require,_0x177300['zjIhp']);_0x4bf9ba[_0x28b411(0x173)]()[_0x28b411(0x9a)]()&&(logger[_0x28b411(0x7f)](_0x177300['dpGUE']),_0x2e52ae[_0x28b411(0xcc)](FRAMEWORKS[_0x28b411(0x11e)],FRAMEWORKS[_0x28b411(0x89)]),await _0x4bf9ba['getInstance']()['bootstrap']());}catch(_0x3cffd7){logger['debug']('Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20'+util[_0x28b411(0x145)](_0x3cffd7));}_0x177300['vKGnr'](shouldProcessEventForTesthub)&&(_0x177300[_0x28b411(0xe9)](registerListeners),_0x177300['HuzCW'](addRequestSpy,![])),global['driverCleanup']=async()=>{const _0x1ab148=_0x28b411;let _0x9b79fa=![];try{global[_0x1ab148(0x8c)]&&global[_0x1ab148(0x8c)][0x0]&&(await global[_0x1ab148(0x8c)][0x0][_0x1ab148(0x98)],_0x9b79fa=!![],global[_0x1ab148(0xb3)]?await _0x177300[_0x1ab148(0x8a)](markSessionStatus,global[_0x1ab148(0x8c)][0x0],_0x177300['wCBsn'],global[_0x1ab148(0xf6)][_0x1ab148(0x131)](_0x177300[_0x1ab148(0x13c)])):await _0x177300[_0x1ab148(0x17b)](markSessionStatus,global['__drivers'][0x0],_0x177300[_0x1ab148(0xa4)]));}catch(_0x2da826){logger[_0x1ab148(0x7f)](_0x1ab148(0xe2)+_0x2da826);}global[_0x1ab148(0xf6)]=[],global[_0x1ab148(0xb3)]=![];if(_0x9b79fa)try{await global[_0x1ab148(0x8c)][0x0][_0x1ab148(0x10f)](),global[_0x1ab148(0x8c)][0x0][_0x1ab148(0x98)][_0x1ab148(0xd4)](_0x5d61c2=>{const _0x1f6a06=_0x1ab148;logger[_0x1f6a06(0x7f)]('Error:\x20in\x20quitting\x20driver\x20'+_0x5d61c2[_0x1f6a06(0x12f)]());})[_0x1ab148(0xfd)](_0x566304=>{const _0x49e3bb=_0x1ab148;logger[_0x49e3bb(0x7f)](_0x49e3bb(0xf5)+(_0x566304&&_0x566304['stack']||_0x566304));});}catch(_0x26a80b){logger[_0x1ab148(0x7f)](_0x1ab148(0x166)+_0x26a80b);}};});const a8_0x313294={};a8_0x313294[a8_0x4287a0(0x125)]=a8_0x4287a0(0xae),a8_0x313294[a8_0x4287a0(0xc2)]=TEST_FRAMEWORK_HOOK_TIMEOUT['Cucumber-JS'],Before(a8_0x313294,function(_0xd1f32c,_0x41af99){const _0x1fe77e=a8_0x4287a0,_0x5058eb={'duYga':function(_0x536653,_0x8f5ded){return _0x536653>_0x8f5ded;},'ShyqP':function(_0x117af3,_0x343b8f){return _0x117af3>_0x343b8f;},'JTzhw':function(_0x4629bc,_0x559c06){return _0x4629bc(_0x559c06);},'pTXlb':function(_0x26ff8d,_0x3bfae9,_0x24b1f2,_0x1ecfc2){return _0x26ff8d(_0x3bfae9,_0x24b1f2,_0x1ecfc2);},'UfUvz':_0x1fe77e(0x114),'PPTgB':_0x1fe77e(0xde),'qfjbe':function(_0x221897,_0x4c8e49){return _0x221897(_0x4c8e49);},'eLUrD':'../v2/state/automationFrameworkState','SwLYx':_0x1fe77e(0x144),'shUGz':_0x1fe77e(0x13d),'PGkzt':_0x1fe77e(0x9d),'iZIQI':function(_0x21747b){return _0x21747b();},'QwMbW':_0x1fe77e(0xc9)};logger[_0x1fe77e(0x7f)](_0x5058eb[_0x1fe77e(0xc3)]),new Promise(async _0x2df543=>{const _0x10fe0b=_0x1fe77e;try{global['__drivers']&&_0x5058eb[_0x10fe0b(0x152)](global[_0x10fe0b(0x8c)]['length'],0x1)&&(await global[_0x10fe0b(0xd8)](),global[_0x10fe0b(0x8c)]['shift']()),global[_0x10fe0b(0x8c)]&&global['__drivers'][0x0]&&global[_0x10fe0b(0x8c)][0x0][_0x10fe0b(0xe0)]&&_0x5058eb['ShyqP'](global[_0x10fe0b(0x8c)][0x0]['quitCount_'],0x0)&&await global[_0x10fe0b(0xd8)]();}catch(_0x3389ed){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x3389ed);}workerDetails[_0x10fe0b(0x96)][_0x10fe0b(0x117)]=_0xd1f32c;if(!playwrightPatcher){try{if(!_0x5058eb[_0x10fe0b(0x165)](isUndefined,_0xd1f32c['pickle'][_0x10fe0b(0x101)])){const _0x3e5cf9=_0x5058eb[_0x10fe0b(0x12b)](shouldScanTestForAccessibility,null,![],_0xd1f32c[_0x10fe0b(0x9e)][_0x10fe0b(0x101)][_0x10fe0b(0xad)](({name:_0x1140cb})=>_0x1140cb));globals[_0x10fe0b(0x126)](_0x5058eb[_0x10fe0b(0xa9)],_0x3e5cf9);}}catch(_0x50136b){logger[_0x10fe0b(0x7f)](_0x10fe0b(0x136)+util[_0x10fe0b(0x145)](_0x50136b));}workerDetails[_0x10fe0b(0x96)]['thTestRunUuid']=TestDetails[_0x10fe0b(0x13a)](_0xd1f32c[_0x10fe0b(0xd0)]);}if(playwrightPatcher)try{await playwrightPatcher['beforeTestHook'](_0xd1f32c),global[_0x10fe0b(0x155)]&&global[_0x10fe0b(0x155)][_0x10fe0b(0xef)]&&playwrightPatcher['patchPageCommandsForAccessibility'](global['__workerDetails'][_0x10fe0b(0xef)]);}catch(_0x2b8c28){logger[_0x10fe0b(0x7f)](_0x10fe0b(0x15f)+util['format'](_0x2b8c28));}if(playwrightPatcher)try{const _0x49f2dc=_0x5058eb[_0x10fe0b(0x165)](require,_0x5058eb[_0x10fe0b(0x146)]),_0x13bb1f=_0x5058eb[_0x10fe0b(0xfa)](require,_0x5058eb['eLUrD']),_0x1114a7=_0x5058eb[_0x10fe0b(0xfa)](require,_0x5058eb['SwLYx']);if(_0x49f2dc[_0x10fe0b(0x173)]()[_0x10fe0b(0xf8)]()){const _0x234b0e={'title':_0xd1f32c[_0x10fe0b(0x9e)][_0x10fe0b(0x125)]||_0x5058eb[_0x10fe0b(0xd5)],'titlePath':[_0xd1f32c[_0x10fe0b(0x9e)][_0x10fe0b(0x125)]||_0x5058eb[_0x10fe0b(0xd5)]],'id':_0xd1f32c[_0x10fe0b(0xd0)]||_0x5058eb[_0x10fe0b(0x104)],'tags':_0xd1f32c['pickle'][_0x10fe0b(0x101)]||[],..._0xd1f32c},_0xb5a677=_0x234b0e;global[_0x10fe0b(0x88)]=_0xb5a677,logger[_0x10fe0b(0x7f)]('Test\x20info\x20prepared\x20for\x20CREATE\x20PRE\x20event:\x20'+_0xd1f32c[_0x10fe0b(0x9e)][_0x10fe0b(0x125)]);}}catch(_0x5589e7){logger[_0x10fe0b(0x7f)](_0x10fe0b(0xfb)+util[_0x10fe0b(0x145)](_0x5589e7));}_0x5058eb[_0x10fe0b(0x11d)](_0x2df543);})['finally'](_0x41af99);});const a8_0x631fb0={};a8_0x631fb0[a8_0x4287a0(0x125)]=a8_0x4287a0(0xae),a8_0x631fb0[a8_0x4287a0(0xc2)]=TEST_FRAMEWORK_HOOK_TIMEOUT[a8_0x4287a0(0xce)],After(a8_0x631fb0,function(_0x403e12,_0x4858fc){const _0x39101b=a8_0x4287a0,_0x29c6b9={'aKoMu':function(_0x2d19d2,_0x37a76f){return _0x2d19d2>_0x37a76f;},'iMByc':function(_0x1fe211,_0xd900ca){return _0x1fe211===_0xd900ca;},'umsTD':_0x39101b(0x167),'bvsGC':function(_0x52ebbe,_0x40fe02){return _0x52ebbe===_0x40fe02;},'bdulW':function(_0x49e4f1,_0x541988){return _0x49e4f1>_0x541988;},'WksvH':function(_0x28009b,_0x31a44e,_0x4dd41c,_0x2c813e){return _0x28009b(_0x31a44e,_0x4dd41c,_0x2c813e);},'dLffC':_0x39101b(0xc6),'ZJtvY':function(_0x33733f,_0x55f4b9,_0x2812bc){return _0x33733f(_0x55f4b9,_0x2812bc);},'hVxPB':_0x39101b(0x130),'rSqXO':function(_0x21371b,_0x44c62b){return _0x21371b(_0x44c62b);},'hiZSE':_0x39101b(0xde),'QEncV':function(_0xfaa427,_0x2dd587){return _0xfaa427(_0x2dd587);},'bQWDF':_0x39101b(0xb9),'DtKcA':'../v2/state/hookState','IvSkF':_0x39101b(0x13d),'mCNRS':'cucumber-test','YjVpD':_0x39101b(0xaa),'ZzxcC':_0x39101b(0xab),'PBAtd':_0x39101b(0x91),'eEtOg':_0x39101b(0xb8),'pCvoT':'Executed\x20fallback\x20close\x20tracker\x20cleanup\x20after\x20error','kjcav':function(_0x5c528e,_0x3694c6){return _0x5c528e(_0x3694c6);},'DtJKz':_0x39101b(0xc7),'aNqQB':function(_0x5bf680){return _0x5bf680();},'pzVyR':function(_0x1f9e0e,_0x110073,_0x1f5b73,_0x234b45,_0x59aea0){return _0x1f9e0e(_0x110073,_0x1f5b73,_0x234b45,_0x59aea0);},'MJbEV':_0x39101b(0x95),'HBoRM':'isAccessibilityPlatform','jrAzu':_0x39101b(0x114),'HBUjE':_0x39101b(0x171),'mjsqS':_0x39101b(0x9c),'FwgJJ':'isMobilePlatform','BwsLT':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','FIUVP':function(_0x3f0b99,_0x20fa40){return _0x3f0b99>_0x20fa40;},'jygCq':'Inside\x20browserstack\x20After'};logger[_0x39101b(0x7f)](_0x29c6b9[_0x39101b(0xfc)]),workerDetails[_0x39101b(0x96)][_0x39101b(0x117)]=_0x403e12,new Promise(async _0x15c547=>{const _0x23b3cf=_0x39101b;let _0x5d3a6a=![],_0x3988e1=![],_0x376fbc=![];try{global[_0x23b3cf(0x8c)]&&_0x29c6b9[_0x23b3cf(0x15c)](global[_0x23b3cf(0x8c)][_0x23b3cf(0x172)],0x0)&&(_0x3988e1=!![]),playwrightPatcher&&global[_0x23b3cf(0x155)]&&global[_0x23b3cf(0x155)][_0x23b3cf(0xef)]&&(_0x376fbc=!![],logger[_0x23b3cf(0x7f)](_0x23b3cf(0x13f)+!!global[_0x23b3cf(0x155)][_0x23b3cf(0xef)]));}catch(_0x20e7f1){logger['debug']('Error\x20determining\x20test\x20flow:\x20'+_0x20e7f1);}logger[_0x23b3cf(0x7f)](_0x23b3cf(0xbc)+_0x3988e1+_0x23b3cf(0xd6)+_0x376fbc);const _0x31f089=_0x403e12[_0x23b3cf(0x148)][_0x23b3cf(0x15b)][_0x23b3cf(0xcb)]()[_0x23b3cf(0xff)](),_0x49efb4=_0x29c6b9[_0x23b3cf(0xc1)](_0x31f089,_0x29c6b9[_0x23b3cf(0x119)])||_0x29c6b9[_0x23b3cf(0x92)](_0x31f089,'6'),_0x2bd9c5=_0x49efb4?_0x403e12[_0x23b3cf(0x148)]['message']:null;if(_0x49efb4)try{global[_0x23b3cf(0xf6)]['push'](_0x403e12[_0x23b3cf(0x148)]['message']),global[_0x23b3cf(0xb3)]=!![];}catch(_0x340265){logger['debug'](_0x23b3cf(0x127)+_0x340265);}if(_0x3988e1)try{global[_0x23b3cf(0x8c)]&&_0x29c6b9[_0x23b3cf(0xf2)](global['__drivers']['length'],0x1)&&(await global[_0x23b3cf(0xd8)](),global[_0x23b3cf(0x8c)][_0x23b3cf(0xf7)](),global['__error_messages__']=[],global[_0x23b3cf(0xb3)]=![]),global[_0x23b3cf(0x8c)]&&global[_0x23b3cf(0x8c)][0x0]&&(await global['__drivers'][0x0][_0x23b3cf(0x98)],_0x5d3a6a=!![],!global[_0x23b3cf(0xf9)]&&await global[_0x23b3cf(0x8c)][0x0][_0x23b3cf(0x11b)](_0x23b3cf(0xc8)+_0x403e12[_0x23b3cf(0x9e)]['name']+_0x23b3cf(0xbf)),_0x49efb4?await _0x29c6b9[_0x23b3cf(0x102)](markSessionStatus,global[_0x23b3cf(0x8c)][0x0],_0x29c6b9[_0x23b3cf(0x119)],global[_0x23b3cf(0xf6)][_0x23b3cf(0x131)](_0x29c6b9['dLffC'])):await _0x29c6b9[_0x23b3cf(0x160)](markSessionStatus,global[_0x23b3cf(0x8c)][0x0],_0x29c6b9[_0x23b3cf(0x176)]));}catch(_0x31c38d){logger[_0x23b3cf(0x7f)]('Error:\x20at\x20After\x20(Selenium):\x20'+util[_0x23b3cf(0x145)](_0x31c38d));}if(_0x376fbc)try{try{const _0x43860f=_0x29c6b9[_0x23b3cf(0xdd)](require,_0x29c6b9['hiZSE']),_0x20f77f=_0x29c6b9[_0x23b3cf(0x16e)](require,_0x29c6b9[_0x23b3cf(0x13e)]),_0xb3af39=_0x29c6b9[_0x23b3cf(0x16e)](require,_0x29c6b9[_0x23b3cf(0x14e)]);if(_0x43860f[_0x23b3cf(0x173)]()[_0x23b3cf(0xf8)]()){const _0xcde509={'title':_0x403e12[_0x23b3cf(0x9e)][_0x23b3cf(0x125)]||_0x29c6b9['IvSkF'],'titlePath':[_0x403e12[_0x23b3cf(0x9e)]['name']||_0x29c6b9[_0x23b3cf(0x94)]],'id':_0x403e12[_0x23b3cf(0xd0)]||_0x29c6b9[_0x23b3cf(0x137)],'status':_0x49efb4?_0x29c6b9[_0x23b3cf(0x119)]:_0x29c6b9[_0x23b3cf(0x176)],'error':_0x2bd9c5?{'message':_0x2bd9c5}:null,'tags':_0x403e12[_0x23b3cf(0x9e)][_0x23b3cf(0x101)]||[],..._0x403e12},_0x2060b1=_0xcde509,_0x270f0c={};_0x270f0c[_0x23b3cf(0x117)]=_0x2060b1,_0x270f0c[_0x23b3cf(0x169)]=_0x403e12,_0x270f0c[_0x23b3cf(0x10b)]=global[_0x23b3cf(0x155)]['pwPage'],_0x270f0c['testFramework']=FRAMEWORKS[_0x23b3cf(0x11e)],await _0x43860f[_0x23b3cf(0x173)]()['getAutomationFramework']()[_0x23b3cf(0x90)](_0x20f77f[_0x23b3cf(0x129)],_0xb3af39[_0x23b3cf(0x17a)],_0x270f0c),logger[_0x23b3cf(0x7f)](_0x23b3cf(0xd2)+_0x403e12['pickle'][_0x23b3cf(0x125)]);}}catch(_0x4509d0){logger[_0x23b3cf(0x7f)](_0x23b3cf(0xed)+util['format'](_0x4509d0));}const _0x51f3c2=_0x49efb4?_0x29c6b9['umsTD']:_0x29c6b9[_0x23b3cf(0x176)];await playwrightPatcher[_0x23b3cf(0xba)](_0x403e12,_0x51f3c2,_0x2bd9c5),logger['debug'](_0x29c6b9[_0x23b3cf(0x159)]);try{await playwrightPatcher['executeDeferredCloses'](),logger[_0x23b3cf(0x7f)](_0x29c6b9[_0x23b3cf(0x140)]);}catch(_0x56aeab){logger['debug'](_0x23b3cf(0x10d)+util[_0x23b3cf(0x145)](_0x56aeab));}try{playwrightPatcher['closeTracker'][_0x23b3cf(0x122)](),logger[_0x23b3cf(0x7f)](_0x29c6b9[_0x23b3cf(0xc0)]);}catch(_0x1e3416){logger[_0x23b3cf(0x7f)](_0x23b3cf(0x138)+util[_0x23b3cf(0x145)](_0x1e3416));}}catch(_0x3a5559){logger['debug'](_0x23b3cf(0x175)+util[_0x23b3cf(0x145)](_0x3a5559));try{playwrightPatcher[_0x23b3cf(0xc5)]&&(await playwrightPatcher['executeDeferredCloses'](),logger['debug'](_0x29c6b9[_0x23b3cf(0xa1)])),playwrightPatcher[_0x23b3cf(0x153)]&&playwrightPatcher[_0x23b3cf(0x153)][_0x23b3cf(0x122)]&&(playwrightPatcher[_0x23b3cf(0x153)][_0x23b3cf(0x122)](),logger[_0x23b3cf(0x7f)](_0x29c6b9[_0x23b3cf(0x93)]));}catch(_0x500dc5){logger['debug']('Error\x20in\x20fallback\x20cleanup:\x20'+util[_0x23b3cf(0x145)](_0x500dc5));}}const _0x209ee5=_0x29c6b9['kjcav'](require,_0x29c6b9['DtJKz']);if(!_0x209ee5[_0x23b3cf(0x173)]()[_0x23b3cf(0xf8)]())try{if(_0x29c6b9[_0x23b3cf(0xcf)](shouldProcessEventForTesthub)){const _0x15b402=TestDetails['getTestUUID'](_0x403e12[_0x23b3cf(0xd0)]);let _0x31e84d=null;global[_0x23b3cf(0x8c)]&&global['__drivers'][0x0]&&(_0x31e84d=await _0x29c6b9[_0x23b3cf(0x87)](sendPlatformDetails,global['__drivers'][0x0],_0x15b402,!![],!![]));const _0x2e2a00={};_0x2e2a00['uuid']=_0x15b402,_0x2e2a00[_0x23b3cf(0x14c)]=_0x31e84d;const _0x22018a=_0x2e2a00,_0x2610a6={};_0x2610a6[_0x23b3cf(0x12a)]=_0x29c6b9[_0x23b3cf(0x11a)],_0x2610a6[_0x23b3cf(0x106)]=_0x22018a,await SessionHandler[_0x23b3cf(0x133)](_0x2610a6);}}catch(_0x250a02){logger[_0x23b3cf(0x7f)](_0x23b3cf(0x113)+util['format'](_0x250a02));}try{if(globals[_0x23b3cf(0x9f)](_0x29c6b9[_0x23b3cf(0x13b)])&&globals[_0x23b3cf(0x9f)](_0x29c6b9[_0x23b3cf(0x123)])){logger[_0x23b3cf(0x16d)](_0x29c6b9[_0x23b3cf(0x110)]);const _0x31ac73=TestDetails[_0x23b3cf(0x13a)](_0x403e12[_0x23b3cf(0xd0)]),_0x43980a={};_0x43980a['thTestRunUuid']=_0x31ac73,_0x43980a['thBuildUuid']=process[_0x23b3cf(0x12c)][testHubConstants[_0x23b3cf(0xb1)]['BROWSERSTACK_TESTHUB_UUID']],_0x43980a['thJwtToken']=process['env'][testHubConstants['ENV_VAR'][_0x23b3cf(0x10e)]];const _0x5a46f5=_0x43980a;logger[_0x23b3cf(0x7f)](_0x23b3cf(0xe6)+JSON[_0x23b3cf(0x118)](_0x5a46f5)),logger[_0x23b3cf(0x7f)](_0x29c6b9['mjsqS']),global[_0x23b3cf(0x8c)]&&global[_0x23b3cf(0x8c)][0x0]&&(logger[_0x23b3cf(0x7f)](util[_0x23b3cf(0x145)](await global['__drivers'][0x0][_0x23b3cf(0x12e)](scripts[_0x23b3cf(0xb2)],{'method':global[_0x23b3cf(0x134)]}))),globals[_0x23b3cf(0x9f)](_0x29c6b9[_0x23b3cf(0x178)])&&(_0x5a46f5[_0x23b3cf(0xca)]=!![]),await global['__drivers'][0x0][_0x23b3cf(0x12e)](scripts['saveTestResults'],_0x5a46f5)),logger[_0x23b3cf(0x16d)](_0x29c6b9['BwsLT']);}}catch(_0x5d9e78){logger[_0x23b3cf(0x15a)](_0x23b3cf(0x141)+util[_0x23b3cf(0x145)](_0x5d9e78));}if(_0x5d3a6a)try{global[_0x23b3cf(0x8c)][0x0]&&_0x29c6b9[_0x23b3cf(0xdb)](global[_0x23b3cf(0x8c)][0x0]['quitCount_'],0x0)&&await global[_0x23b3cf(0x8c)][0x0][_0x23b3cf(0x10f)]();}catch(_0x267ae0){logger['debug'](_0x23b3cf(0x82)+_0x267ae0);}_0x29c6b9[_0x23b3cf(0xcf)](_0x15c547);})[_0x39101b(0x112)](()=>_0x4858fc());});function a8_0x3a18(_0x32dff9,_0x466a51){const _0x10821e=a8_0x1082();return a8_0x3a18=function(_0x3a1860,_0x2645ae){_0x3a1860=_0x3a1860-0x7f;let _0x20681c=_0x10821e[_0x3a1860];return _0x20681c;},a8_0x3a18(_0x32dff9,_0x466a51);}const a8_0x4377e0={};a8_0x4377e0[a8_0x4287a0(0x125)]=a8_0x4287a0(0xae),a8_0x4377e0[a8_0x4287a0(0xc2)]=TEST_FRAMEWORK_HOOK_TIMEOUT[a8_0x4287a0(0xce)],AfterStep(a8_0x4377e0,function(_0x3423fb,_0x328b65){const _0x3fb7a8=a8_0x4287a0,_0x373fa5={'qKGXj':function(_0x3d29b7,_0x557c81){return _0x3d29b7===_0x557c81;},'qMXjR':_0x3fb7a8(0x167),'eEztB':function(_0x5d68e6,_0x358c57){return _0x5d68e6===_0x358c57;},'cMFSb':function(_0xe3e18d,_0x4a34d8){return _0xe3e18d!==_0x4a34d8;},'YwcZY':function(_0x6ff5d5,_0x5ed687,_0x276b44){return _0x6ff5d5(_0x5ed687,_0x276b44);},'xZwUv':function(_0x419dda,_0x5d9ec7){return _0x419dda+_0x5d9ec7;},'iZZNW':function(_0x47646c,_0x14107f){return _0x47646c+_0x14107f;},'BmfSD':_0x3fb7a8(0xb7),'MAGwJ':_0x3fb7a8(0x97),'yJSiY':_0x3fb7a8(0x15a),'mrfOl':function(_0x421daa,_0x46dc4b){return _0x421daa+_0x46dc4b;},'kgyKo':function(_0x5876a5,_0x32fb8e){return _0x5876a5!==_0x32fb8e;},'VJtNH':'Passed:\x20','CXRUo':_0x3fb7a8(0x16d),'jXAkn':function(_0x4a7047,_0x455efd,_0x2773a9){return _0x4a7047(_0x455efd,_0x2773a9);},'rITBI':_0x3fb7a8(0xe3),'eiwwR':function(_0x20caec){return _0x20caec();},'WkOFl':_0x3fb7a8(0xea)};logger[_0x3fb7a8(0x7f)](_0x373fa5['WkOFl']);const _0x163e7e=async(_0x33739c,_0x3c2509)=>{const _0x284884=_0x3fb7a8;global[_0x284884(0x8c)]&&global[_0x284884(0x8c)][0x0]&&await global[_0x284884(0x8c)][0x0]['executeScript'](_0x284884(0x150)+_0x33739c+_0x284884(0xa5)+_0x3c2509+'\x22}}');};new Promise(async _0x1d598c=>{const _0x52a589=_0x3fb7a8;try{const _0x3597ee=_0x373fa5[_0x52a589(0xbd)](_0x3423fb['result']['status'][_0x52a589(0xcb)]()[_0x52a589(0xff)](),_0x373fa5[_0x52a589(0x121)])||_0x373fa5[_0x52a589(0xa8)](_0x3423fb[_0x52a589(0x148)][_0x52a589(0x15b)][_0x52a589(0xcb)]()[_0x52a589(0xff)](),'6');_0x3597ee?(global[_0x52a589(0xb3)]=!![],global[_0x52a589(0xf6)]['push'](_0x3423fb['result'][_0x52a589(0x103)]),_0x373fa5[_0x52a589(0x14f)](_0x3423fb[_0x52a589(0xd1)],undefined)?await _0x373fa5[_0x52a589(0xdc)](_0x163e7e,JSON['stringify'](_0x373fa5['xZwUv'](_0x373fa5[_0x52a589(0x149)](_0x373fa5[_0x52a589(0xb5)](_0x373fa5[_0x52a589(0xaf)],'\x22'+_0x3423fb[_0x52a589(0xd1)][_0x52a589(0xb0)]+'\x22\x20'),_0x373fa5[_0x52a589(0xcd)]),_0x3423fb[_0x52a589(0x148)]['message'])),_0x373fa5[_0x52a589(0x142)]):await _0x373fa5[_0x52a589(0xdc)](_0x163e7e,JSON[_0x52a589(0x118)](_0x373fa5[_0x52a589(0xa7)](_0x373fa5[_0x52a589(0xaf)],_0x3423fb[_0x52a589(0x148)]['message'])),_0x373fa5[_0x52a589(0x142)])):_0x373fa5[_0x52a589(0xbe)](_0x3423fb['pickleStep'],undefined)?await _0x373fa5[_0x52a589(0xdc)](_0x163e7e,JSON[_0x52a589(0x118)](_0x373fa5[_0x52a589(0x149)](_0x373fa5[_0x52a589(0xf0)],'\x22'+_0x3423fb[_0x52a589(0xd1)]['text']+'\x22')),_0x373fa5[_0x52a589(0x14d)]):await _0x373fa5[_0x52a589(0x15d)](_0x163e7e,JSON['stringify'](_0x373fa5[_0x52a589(0x177)]),_0x373fa5[_0x52a589(0x14d)]),global[_0x52a589(0x8c)]&&global[_0x52a589(0x8c)][0x0]&&global[_0x52a589(0x8c)][0x0][_0x52a589(0x98)]['then'](_0x1d72ed=>{})['catch'](_0x28dda3=>{const _0x465e66=_0x52a589;logger[_0x465e66(0x7f)](_0x465e66(0x100)+util[_0x465e66(0x145)](_0x28dda3));});}catch(_0x2946dc){logger['debug'](_0x52a589(0xe1)+_0x2946dc);}_0x373fa5[_0x52a589(0x135)](_0x1d598c);})[_0x3fb7a8(0x112)](()=>_0x328b65());});const a8_0x75b972={};a8_0x75b972['name']=a8_0x4287a0(0xae),a8_0x75b972['timeout']=TEST_FRAMEWORK_HOOK_TIMEOUT[a8_0x4287a0(0xce)],AfterAll(a8_0x75b972,async function(_0x421064,_0x33fa60){const _0x5125f5=a8_0x4287a0,_0xafa929={'zsYnc':_0x5125f5(0xb4),'msSKp':function(_0x2f5717){return _0x2f5717();},'ajjSd':_0x5125f5(0x158),'suzfa':_0x5125f5(0x83)};logger[_0x5125f5(0x7f)](_0xafa929[_0x5125f5(0x105)]),await new Promise(async _0x28544d=>{const _0x35abbf=_0x5125f5,_0x4040f8=_0xafa929[_0x35abbf(0xbb)]['split']('|');let _0x39e35a=0x0;while(!![]){switch(_0x4040f8[_0x39e35a++]){case'0':_0xafa929[_0x35abbf(0x174)](_0x28544d);continue;case'1':await RequestQueueHandler['getInstance']()['shutdown']();continue;case'2':try{playwrightPatcher&&playwrightPatcher[_0x35abbf(0xc5)]&&(await playwrightPatcher[_0x35abbf(0xc5)](),playwrightPatcher[_0x35abbf(0x153)]&&playwrightPatcher['closeTracker'][_0x35abbf(0x122)](),logger[_0x35abbf(0x7f)](_0xafa929[_0x35abbf(0x143)]));}catch(_0x198423){logger['debug'](_0x35abbf(0x107)+util[_0x35abbf(0x145)](_0x198423));}continue;case'3':await global['driverCleanup']();continue;case'4':PerformanceTester[_0x35abbf(0x9b)]();continue;}break;}});});
1
+ const a8_0x506f3d=a8_0x3766;(function(_0x5a9298,_0x57db8d){const _0x47b52d=a8_0x3766,_0x25817c=_0x5a9298();while(!![]){try{const _0x2cdead=parseInt(_0x47b52d(0x1ac))/0x1+-parseInt(_0x47b52d(0x154))/0x2*(parseInt(_0x47b52d(0x18d))/0x3)+-parseInt(_0x47b52d(0x188))/0x4+parseInt(_0x47b52d(0x129))/0x5+-parseInt(_0x47b52d(0x1a8))/0x6+-parseInt(_0x47b52d(0xb2))/0x7*(parseInt(_0x47b52d(0x107))/0x8)+parseInt(_0x47b52d(0xd3))/0x9;if(_0x2cdead===_0x57db8d)break;else _0x25817c['push'](_0x25817c['shift']());}catch(_0x254b33){_0x25817c['push'](_0x25817c['shift']());}}}(a8_0x4647,0x71239));const {requireModule,modifyCommand,isTrue,markSessionStatus,isBrowserstackInfra,playwrightSetSessionName,playwrightMarkSessionStatus,nestedKeyValue}=require(a8_0x506f3d(0x196)),{TEST_FRAMEWORK_HOOK_TIMEOUT,FRAMEWORKS}=require(a8_0x506f3d(0x140)),setKeepAlive=require(a8_0x506f3d(0x11e)),util=require(a8_0x506f3d(0x119)),PerformanceTester=require(a8_0x506f3d(0x1a9)),{EVENTS:PerformanceEvents}=require(a8_0x506f3d(0x149)),cucumberModule=requireModule(a8_0x506f3d(0xf6),a8_0x506f3d(0x159)),logger=require(a8_0x506f3d(0xfd))[a8_0x506f3d(0x104)],{shouldProcessEventForTesthub}=require(a8_0x506f3d(0x146)),{sendPlatformDetails,addRequestSpy,patchConsoleLogger}=require(a8_0x506f3d(0x186)),TestDetails=require(a8_0x506f3d(0xb8)),TestInfo=require('../v2/TestInfo.js'),RequestQueueHandler=require(a8_0x506f3d(0x126)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),MyReporter=require(a8_0x506f3d(0xef)),SessionHandler=require(a8_0x506f3d(0x132)),scripts=require(a8_0x506f3d(0x106)),globals=require(a8_0x506f3d(0x141)),testHubConstants=require(a8_0x506f3d(0x1a5)),{shouldScanTestForAccessibility}=require(a8_0x506f3d(0x174)),{isUndefined}=require(a8_0x506f3d(0x120)),helper=require(a8_0x506f3d(0x196));function a8_0x4647(){const _0x1c8b34=['catch','LWvth','__platformCaps','Error:\x20cleaning\x20up\x20driver:\x20','WReBT','ToGna','pickle','../../index','shift','../playwright/reporter/reporter.js','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','Error\x20in\x20playwright\x20beforeTestHook:\x20','ENV_VAR','Error:\x20quiting\x20driver\x20at\x20driver\x20cleanup:\x20','addTestUIDAndReportLog','Inside\x20browserstack\x20registerListeners','@cucumber/cucumber/lib/index.js','isRunning','installAll','browserstackPlatformIndex','\x20|\x20','QZzYq','thTestRunUuid','../../helpers/logger','uploadEventData','platformIndex','HcAII','DXEMh','Error:\x20adding\x20scenario\x20error\x20at\x20After:\x20','TdcPI','winstonLogger','Performing\x20scan\x20before\x20saving\x20results','../../helpers/accessibility-automation/scripts','136XQIipE','XNehh',',\x20isPlaywrightFlow=','uuid','scenario','testInfo','pid','pwPage','performScan','test_run_uuid','ildNn','Exception\x20in\x20setting\x20bstackA11yShouldScan\x20in\x20Before\x20Scenario\x20','Executed\x20fallback\x20close\x20tracker\x20cleanup\x20after\x20error','QMxLs','RXcjy','TKKOI','Error\x20cleaning\x20up\x20close\x20tracker:\x20','tags','util','toLowerCase','lCpdu','cleanup','TfadS','../../helpers/setKeepAlive','afterTestHook','lodash','bJwYp','browserstackAgentV2','Error\x20in\x20fallback\x20cleanup:\x20','CBTSessionCreated','Before','../../helpers/test-observability/requestQueueHandler','Error:\x20in\x20After\x20Step\x20for\x20driver\x20','WqAWR','822550HJjLBt','Error\x20determining\x20test\x20flow:\x20','__sessionFailed','executeScript','Executed\x20fallback\x20deferred\x20Playwright\x20closes\x20after\x20error','QyhNZ','initQuit','Failed:\x20','skipSessionName','../../helpers/test-observability/sessionHandler','../v2/browserstackCLI','YRUun','xXQGg','test_run','Inside\x20browserstack\x20AfterAll','closeTracker','message','getAutomationFramework','Test\x20info\x20prepared\x20for\x20CREATE\x20PRE\x20event:\x20','BeforeAll','../utils/playwright-patcher','session_','RSiuy','../utils/constants','../../helpers/globals','gdtLq','MyoLj','length','stringify','../../helpers/testhub/utils','qXLbW','dcYFD','../../helpers/performance/constants','WMvNi','getId','isAccessibilityPlatform','bstackA11yShouldScan','name','text','Inside\x20browserstack\x20BeforeAll','__skipSessionStatus','passed','skipSessionStatus','86BsciSa','testCaseStartedId','push','isPageFixture','Playwright\x20flow\x20detected\x20-\x20page\x20exists:\x20','@cucumber/cucumber','driver-init\x20capture\x20install\x20failed:\x20','ALVRV','euzam','cucumber-js','event_type','stack','AfterStep','eCpyw','storeLogObjects','join','CpdkF','__workerDetails','timeout','shutdown','platformCaps','WAKBe','patchPageCommandsForAccessibility','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case.\x20Error\x20:\x20','driverCleanup','PLAYWRIGHT','zbYBX','Error:\x20at\x20After\x20Step:\x20','KjmVQ','bstack','Inside\x20browserstack\x20Before','Flow\x20detection:\x20isSeleniumFlow=','../../helpers/accessibility-automation/helper','WNBzZ','quitCount_','integrations','env','Error:\x20in\x20quitting\x20driver\x20','pickleStep','Cucumber-JS','failed','\x22}}','Error:\x20sendPlatformDetails\x20at\x20After:\x20','LAHOv','debug','o11ySyncDone','GhDCy','Error:\x20at\x20After\x20(Playwright):\x20','startMonitoring','getTestUUID','../../helpers/test-observability/utils','AfterAll','2899276OAzHTR','UksQA','BMUae','format','toString','58563HitmgZ','Error:\x20at\x20After\x20(Selenium):\x20','gBaaJ','xzzFP','CUCUMBER','../v2/state/automationFrameworkState','__timeout','error','MObjh','../../helpers/helper','bootstrap','AQvIq','setFrameworkDetail','beforeTestHook','BROWSERSTACK_TESTHUB_JWT','getGlobal','QUIT','dbZjE','../v2/state/hookState','BKUzC','isCliEnabled','saveTestResults','Error\x20triggering\x20AutomationFramework\x20QUIT\x20PRE\x20event:\x20','fLJRj','../../helpers/testhub/constants.js','tyZgO','bs:addLog:','5369088BVPcvY','../../helpers/performance/performance-tester','WwIAg','page','73855cThbWI','YNiYQ','result','exDqF','csDBP','cucumber-test','getInstance','\x0aError:\x20',',\x22level\x22:\x20\x22','100065MvhUPB','Patching\x20Selenium','VNGXz','SyOxa','status','Unknown\x20Test','../playwright/reporter/test-details.js','SmIBz','TFRtX','2|1|0|4|3','executeDeferredCloses','Cleaned\x20up\x20close\x20tracker','QHzcF','Rcbwh','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','setDefaultTimeout','rimZp','eyqIY','map','__error_messages__','GAOmM','BDZTk','__currentTestInfo','currentTest','info','AutomationFramework\x20QUIT\x20PRE\x20event\x20completed\x20for\x20test:\x20','Playwright\x20patching\x20initialized\x20for\x20Cucumber-JS','workerInfo','getPackageVersion','Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','__skipSessionName','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','OprEp','26344233lfhZAU','Completed\x20Playwright\x20afterTestHook\x20execution','xnTpN','then','IAPfB','Error\x20cleaning\x20up\x20Playwright\x20close\x20tracker:\x20','WvdsX','initializePlaywrightPatching','__drivers','After','../v2/browserstackCLI.js','stopMonitoring','Error\x20executing\x20deferred\x20closes:\x20','setGlobal','thJwtToken','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','finally','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20\x22','GRuSp'];a8_0x4647=function(){return _0x1c8b34;};return a8_0x4647();}try{require('../../helpers/driverInitErrorReporter')[a8_0x506f3d(0xf8)](a8_0x506f3d(0x15d));}catch(a8_0x158868){logger[a8_0x506f3d(0x180)](a8_0x506f3d(0x15a)+(a8_0x158868&&a8_0x158868['message']));}const a8_0x575888={};a8_0x575888[a8_0x506f3d(0xcd)]=undefined,a8_0x575888[a8_0x506f3d(0xc9)]={},a8_0x575888[a8_0x506f3d(0x181)]=![],a8_0x575888[a8_0x506f3d(0x10e)]=null,a8_0x575888[a8_0x506f3d(0x157)]=![],a8_0x575888[a8_0x506f3d(0xc9)]['id']=undefined,a8_0x575888[a8_0x506f3d(0xc9)][a8_0x506f3d(0x10c)]=undefined;const workerDetails=a8_0x575888;global[a8_0x506f3d(0x165)]=workerDetails;let playwrightPatcher=null;shouldProcessEventForTesthub()&&patchConsoleLogger();const sendTestLog=o11yErrorHandler(async function sendTestLog(_0x3035bf){const _0x37506d=a8_0x506f3d,_0x320fc5={'zbYBX':function(_0x238d3d,_0xb3e5a0){return _0x238d3d(_0xb3e5a0);},'csDBP':'../v2/browserstackCLI','krKLw':'sendTestLog:\x20No\x20testId\x20found\x20in\x20testInfo'},_0x39a7b2=workerDetails[_0x37506d(0xc9)]['testInfo'];if(!_0x39a7b2)return;if(playwrightPatcher)try{const _0x261080=_0x320fc5[_0x37506d(0x16e)](require,_0x320fc5[_0x37506d(0xad)]);if(_0x261080['getInstance']()[_0x37506d(0xf7)]()){const _0x1d5dc1=_0x39a7b2[_0x37506d(0x155)];_0x1d5dc1?(_0x3035bf[_0x37506d(0x10a)]=_0x1d5dc1,_0x3035bf[_0x37506d(0x110)]=_0x1d5dc1,TestInfo[_0x37506d(0x162)](_0x1d5dc1,_0x3035bf)):logger[_0x37506d(0x180)](_0x320fc5['krKLw']);return;}}catch(_0x224d62){logger[_0x37506d(0x180)]('Error\x20sending\x20log\x20created\x20event:\x20'+util[_0x37506d(0x18b)](_0x224d62));}await MyReporter[_0x37506d(0xf4)](_0x39a7b2,_0x3035bf);}),registerListeners=()=>{const _0x5b17f9=a8_0x506f3d,_0x571a70={};_0x571a70[_0x5b17f9(0xeb)]=_0x5b17f9(0xf5);const _0x3d93df=_0x571a70;logger[_0x5b17f9(0x180)](_0x3d93df[_0x5b17f9(0xeb)]),process['removeAllListeners'](_0x5b17f9(0x1a7)+process[_0x5b17f9(0x10d)]),process['on']('bs:addLog:'+process[_0x5b17f9(0x10d)],sendTestLog),PerformanceTester['startMonitoring']();};modifyCommand(),setKeepAlive();const Before=cucumberModule[a8_0x506f3d(0x125)],After=cucumberModule[a8_0x506f3d(0xdc)],AfterAll=cucumberModule[a8_0x506f3d(0x187)],BeforeAll=cucumberModule[a8_0x506f3d(0x13c)],AfterStep=cucumberModule[a8_0x506f3d(0x160)],configuration=process['env']['CONFIG'];if(configuration!==undefined){const config=JSON['parse'](configuration);isBrowserstackInfra()?(global['__skipSessionName']=isTrue(config[a8_0x506f3d(0x131)]),global['__skipSessionStatus']=isTrue(config[a8_0x506f3d(0x153)])):(global[a8_0x506f3d(0xd0)]=!![],global[a8_0x506f3d(0x151)]=!![]);!helper['getPackageVersion']('@playwright/test')&&(logger[a8_0x506f3d(0x180)](a8_0x506f3d(0xb3)),shouldProcessEventForTesthub()?require(a8_0x506f3d(0xed))[a8_0x506f3d(0x122)](config,null,!![]):require(a8_0x506f3d(0xed))[a8_0x506f3d(0x122)](config));global[a8_0x506f3d(0xe8)]=config[a8_0x506f3d(0x168)]||{},global[a8_0x506f3d(0xf9)]=config[a8_0x506f3d(0xff)];if(helper[a8_0x506f3d(0xce)]('@playwright/test'))try{logger[a8_0x506f3d(0x180)]('Patching\x20Playwright'),playwrightPatcher=require(a8_0x506f3d(0x13d)),playwrightPatcher[a8_0x506f3d(0xda)](config),logger['debug'](a8_0x506f3d(0xcc));}catch(a8_0x215f01){logger[a8_0x506f3d(0x180)]('Error\x20initializing\x20Playwright\x20patching:\x20'+util[a8_0x506f3d(0x18b)](a8_0x215f01));}}global[a8_0x506f3d(0x193)]=0x0;const __setDefaultTimeout=cucumberModule[a8_0x506f3d(0xc1)];cucumberModule[a8_0x506f3d(0xc1)]=_0x3a7d7f=>{const _0x2a6d5b={'qeEkU':function(_0x4c1686,_0x5cc4df){return _0x4c1686(_0x5cc4df);}};global['__timeout']=_0x3a7d7f,_0x2a6d5b['qeEkU'](__setDefaultTimeout,_0x3a7d7f);};const a8_0x3b4a04={};a8_0x3b4a04[a8_0x506f3d(0x14e)]=a8_0x506f3d(0x171),BeforeAll(a8_0x3b4a04,async function(){const _0x36507b=a8_0x506f3d,_0x55692b={'tyZgO':function(_0x3c5c66,_0x5d3605,_0x2ed4f4,_0x3904bb){return _0x3c5c66(_0x5d3605,_0x2ed4f4,_0x3904bb);},'DwYeg':_0x36507b(0x17c),'WReBT':_0x36507b(0xfa),'rOTSo':function(_0x32b712,_0x156948,_0x301fcb){return _0x32b712(_0x156948,_0x301fcb);},'IAPfB':_0x36507b(0x152),'LuTwU':_0x36507b(0x150),'LAHOv':function(_0x22433a,_0x3dcf7b){return _0x22433a(_0x3dcf7b);},'dbZjE':'../v2/browserstackCLI','rimZp':'../v2/cliUtils','ALVRV':'Bootstrapping\x20BrowserstackCLI\x20for\x20cucumber-js\x20worker\x20process','lCpdu':function(_0x5ee430){return _0x5ee430();},'BMUae':function(_0x160d88,_0x271b34){return _0x160d88(_0x271b34);}};PerformanceTester[_0x36507b(0x184)](),logger['debug'](_0x55692b['LuTwU']),global[_0x36507b(0xc5)]=[],global[_0x36507b(0x12b)]=![];if(playwrightPatcher)try{const _0x2fbc87=_0x55692b['LAHOv'](require,_0x55692b[_0x36507b(0x19e)]),_0x37f5a6=_0x55692b[_0x36507b(0x17f)](require,_0x55692b[_0x36507b(0xc2)]);_0x2fbc87[_0x36507b(0xaf)]()[_0x36507b(0x1a1)]()&&(logger[_0x36507b(0x180)](_0x55692b[_0x36507b(0x15b)]),_0x37f5a6[_0x36507b(0x199)](FRAMEWORKS[_0x36507b(0x191)],FRAMEWORKS[_0x36507b(0x16d)]),await _0x2fbc87[_0x36507b(0xaf)]()[_0x36507b(0x197)]());}catch(_0x45d95f){logger[_0x36507b(0x180)](_0x36507b(0xcf)+util['format'](_0x45d95f));}_0x55692b[_0x36507b(0x11b)](shouldProcessEventForTesthub)&&(_0x55692b[_0x36507b(0x11b)](registerListeners),_0x55692b[_0x36507b(0x18a)](addRequestSpy,![])),global[_0x36507b(0x16c)]=async()=>{const _0x22bd50=_0x36507b;let _0x5412f7=![];try{global['__drivers']&&global[_0x22bd50(0xdb)][0x0]&&(await global['__drivers'][0x0][_0x22bd50(0x13e)],_0x5412f7=!![],global['__sessionFailed']?await _0x55692b[_0x22bd50(0x1a6)](markSessionStatus,global[_0x22bd50(0xdb)][0x0],_0x55692b['DwYeg'],global[_0x22bd50(0xc5)][_0x22bd50(0x163)](_0x55692b[_0x22bd50(0xea)])):await _0x55692b['rOTSo'](markSessionStatus,global[_0x22bd50(0xdb)][0x0],_0x55692b[_0x22bd50(0xd7)]));}catch(_0x45ea23){logger['debug'](_0x22bd50(0xe9)+_0x45ea23);}global['__error_messages__']=[],global[_0x22bd50(0x12b)]=![];if(_0x5412f7)try{await global['__drivers'][0x0][_0x22bd50(0x12f)](),global['__drivers'][0x0]['session_'][_0x22bd50(0xd6)](_0x327c2d=>{const _0xaf9e1e=_0x22bd50;logger['debug'](_0xaf9e1e(0x179)+_0x327c2d[_0xaf9e1e(0x14b)]());})[_0x22bd50(0xe6)](_0x4ed34c=>{const _0x406e2f=_0x22bd50;logger[_0x406e2f(0x180)]('driver\x20session\x20resolution\x20failed\x20during\x20cleanup:\x20'+(_0x4ed34c&&_0x4ed34c[_0x406e2f(0x15f)]||_0x4ed34c));});}catch(_0x41058e){logger['debug'](_0x22bd50(0xf3)+_0x41058e);}};});const a8_0x5e6c58={};a8_0x5e6c58[a8_0x506f3d(0x14e)]=a8_0x506f3d(0x171),a8_0x5e6c58[a8_0x506f3d(0x166)]=TEST_FRAMEWORK_HOOK_TIMEOUT['Cucumber-JS'],Before(a8_0x5e6c58,function(_0x50ff7c,_0x2ecc9e){const _0x1ecf78=a8_0x506f3d,_0x14fb2a={'TdgYG':function(_0x3d2f27,_0x37d40){return _0x3d2f27>_0x37d40;},'qXLbW':function(_0x5aaa35,_0x22cfad){return _0x5aaa35>_0x22cfad;},'RXcjy':function(_0x47ae4e,_0x3e71c1){return _0x47ae4e(_0x3e71c1);},'GRuSp':function(_0x15418d,_0x4ef77d,_0x2a8aa7,_0x50642a){return _0x15418d(_0x4ef77d,_0x2a8aa7,_0x50642a);},'MyoLj':'bstackA11yShouldScan','QMxLs':function(_0x2e817b,_0x4d484e){return _0x2e817b(_0x4d484e);},'xIpmh':_0x1ecf78(0x133),'Rcbwh':function(_0x4b0d55,_0x3e5582){return _0x4b0d55(_0x3e5582);},'euzam':_0x1ecf78(0x192),'uHZhe':'../v2/state/hookState','DXEMh':'Unknown\x20Test','gBaaJ':_0x1ecf78(0xae),'TFRtX':function(_0x5e8c6c){return _0x5e8c6c();},'tZZXO':_0x1ecf78(0x172)};logger[_0x1ecf78(0x180)](_0x14fb2a['tZZXO']),new Promise(async _0x3be5f8=>{const _0x17727d=_0x1ecf78;try{global[_0x17727d(0xdb)]&&_0x14fb2a['TdgYG'](global[_0x17727d(0xdb)][_0x17727d(0x144)],0x1)&&(await global[_0x17727d(0x16c)](),global[_0x17727d(0xdb)][_0x17727d(0xee)]()),global[_0x17727d(0xdb)]&&global[_0x17727d(0xdb)][0x0]&&global[_0x17727d(0xdb)][0x0]['quitCount_']&&_0x14fb2a[_0x17727d(0x147)](global[_0x17727d(0xdb)][0x0][_0x17727d(0x176)],0x0)&&await global[_0x17727d(0x16c)]();}catch(_0x44c83c){logger[_0x17727d(0x180)](_0x17727d(0xf0)+_0x44c83c);}workerDetails[_0x17727d(0xc9)][_0x17727d(0x10c)]=_0x50ff7c;if(!playwrightPatcher){try{if(!_0x14fb2a[_0x17727d(0x115)](isUndefined,_0x50ff7c[_0x17727d(0xec)][_0x17727d(0x118)])){const _0x104d46=_0x14fb2a[_0x17727d(0xe5)](shouldScanTestForAccessibility,null,![],_0x50ff7c[_0x17727d(0xec)][_0x17727d(0x118)][_0x17727d(0xc4)](({name:_0x142566})=>_0x142566));globals[_0x17727d(0xe0)](_0x14fb2a[_0x17727d(0x143)],_0x104d46);}}catch(_0x54ca0b){logger['debug'](_0x17727d(0x112)+util[_0x17727d(0x18b)](_0x54ca0b));}workerDetails[_0x17727d(0xc9)][_0x17727d(0xfc)]=TestDetails[_0x17727d(0x185)](_0x50ff7c['testCaseStartedId']);}if(playwrightPatcher)try{await playwrightPatcher[_0x17727d(0x19a)](_0x50ff7c),global[_0x17727d(0x165)]&&global[_0x17727d(0x165)]['pwPage']&&playwrightPatcher[_0x17727d(0x16a)](global['__workerDetails'][_0x17727d(0x10e)]);}catch(_0x45d38d){logger[_0x17727d(0x180)](_0x17727d(0xf1)+util[_0x17727d(0x18b)](_0x45d38d));}if(playwrightPatcher)try{const _0x2f018d=_0x14fb2a[_0x17727d(0x114)](require,_0x14fb2a['xIpmh']),_0x55128b=_0x14fb2a[_0x17727d(0xbf)](require,_0x14fb2a[_0x17727d(0x15c)]),_0x3f80f3=_0x14fb2a[_0x17727d(0x115)](require,_0x14fb2a['uHZhe']);if(_0x2f018d[_0x17727d(0xaf)]()[_0x17727d(0xf7)]()){const _0x35c9eb={'title':_0x50ff7c[_0x17727d(0xec)][_0x17727d(0x14e)]||_0x14fb2a[_0x17727d(0x101)],'titlePath':[_0x50ff7c[_0x17727d(0xec)][_0x17727d(0x14e)]||_0x14fb2a[_0x17727d(0x101)]],'id':_0x50ff7c[_0x17727d(0x155)]||_0x14fb2a[_0x17727d(0x18f)],'tags':_0x50ff7c[_0x17727d(0xec)][_0x17727d(0x118)]||[],..._0x50ff7c},_0x4f5c60=_0x35c9eb;global[_0x17727d(0xc8)]=_0x4f5c60,logger[_0x17727d(0x180)](_0x17727d(0x13b)+_0x50ff7c[_0x17727d(0xec)][_0x17727d(0x14e)]);}}catch(_0x3a7232){logger[_0x17727d(0x180)]('Error\x20triggering\x20AutomationFramework\x20events:\x20'+util['format'](_0x3a7232));}_0x14fb2a[_0x17727d(0xba)](_0x3be5f8);})[_0x1ecf78(0xe3)](_0x2ecc9e);});const a8_0x377b7c={};function a8_0x3766(_0xbebd4,_0x5131d5){const _0x464767=a8_0x4647();return a8_0x3766=function(_0x37662a,_0x2c0de4){_0x37662a=_0x37662a-0xab;let _0x564141=_0x464767[_0x37662a];return _0x564141;},a8_0x3766(_0xbebd4,_0x5131d5);}a8_0x377b7c[a8_0x506f3d(0x14e)]=a8_0x506f3d(0x171),a8_0x377b7c['timeout']=TEST_FRAMEWORK_HOOK_TIMEOUT[a8_0x506f3d(0x17b)],After(a8_0x377b7c,function(_0x3bead8,_0x3f2f39){const _0x33438c=a8_0x506f3d,_0x1221eb={'BDZTk':function(_0x723672,_0x21282b){return _0x723672>_0x21282b;},'OprEp':function(_0x323441,_0x5d57f9){return _0x323441===_0x5d57f9;},'RSiuy':_0x33438c(0x17c),'MObjh':function(_0xb3ef3a,_0x5d2c40){return _0xb3ef3a===_0x5d2c40;},'exDqF':function(_0x106742,_0xb49826){return _0x106742>_0xb49826;},'BZEjn':function(_0x443446,_0x591491,_0x5d18cd,_0x20bc37){return _0x443446(_0x591491,_0x5d18cd,_0x20bc37);},'uzXHi':'\x20|\x20','ildNn':function(_0x108e1d,_0x317b27,_0x1ffa5d){return _0x108e1d(_0x317b27,_0x1ffa5d);},'YNiYQ':_0x33438c(0x152),'QyhNZ':function(_0x5647a5,_0x3ad6cf){return _0x5647a5(_0x3ad6cf);},'SyOxa':'../v2/browserstackCLI','GhDCy':function(_0x14580a,_0x13cf86){return _0x14580a(_0x13cf86);},'WwIAg':_0x33438c(0x192),'YRUun':function(_0x2e664b,_0x5eb907){return _0x2e664b(_0x5eb907);},'UksQA':_0x33438c(0x19f),'uppYV':_0x33438c(0xb7),'TKKOI':'cucumber-test','LWvth':_0x33438c(0xd4),'WvdsX':'Executed\x20deferred\x20closes\x20after\x20QUIT\x20PRE\x20event\x20completion','eCpyw':_0x33438c(0xbd),'xnTpN':_0x33438c(0x12d),'XNehh':_0x33438c(0x113),'VNGXz':_0x33438c(0xdd),'WMvNi':function(_0xeee07c){return _0xeee07c();},'SmIBz':function(_0x1ca543,_0xd64429,_0x241e13,_0x1b6928,_0x368b49){return _0x1ca543(_0xd64429,_0x241e13,_0x1b6928,_0x368b49);},'fLJRj':_0x33438c(0x124),'seDTs':_0x33438c(0x14c),'AvdGa':_0x33438c(0x14d),'fiTDd':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','AQvIq':_0x33438c(0x105),'dcYFD':'isMobilePlatform','TfadS':_0x33438c(0xd1),'TdcPI':'Inside\x20browserstack\x20After'};logger[_0x33438c(0x180)](_0x1221eb[_0x33438c(0x103)]),workerDetails['currentTest'][_0x33438c(0x10c)]=_0x3bead8,new Promise(async _0xfde0eb=>{const _0x48514d=_0x33438c;let _0x554054=![],_0x4ccba6=![],_0xe4ac46=![];try{global[_0x48514d(0xdb)]&&_0x1221eb[_0x48514d(0xc7)](global[_0x48514d(0xdb)]['length'],0x0)&&(_0x4ccba6=!![]),playwrightPatcher&&global['__workerDetails']&&global[_0x48514d(0x165)]['pwPage']&&(_0xe4ac46=!![],logger['debug'](_0x48514d(0x158)+!!global['__workerDetails'][_0x48514d(0x10e)]));}catch(_0x5c956d){logger[_0x48514d(0x180)](_0x48514d(0x12a)+_0x5c956d);}logger[_0x48514d(0x180)](_0x48514d(0x173)+_0x4ccba6+_0x48514d(0x109)+_0xe4ac46);const _0x3bdc96=_0x3bead8['result'][_0x48514d(0xb6)][_0x48514d(0x18c)]()[_0x48514d(0x11a)](),_0x5d3521=_0x1221eb[_0x48514d(0xd2)](_0x3bdc96,_0x1221eb[_0x48514d(0x13f)])||_0x1221eb[_0x48514d(0x195)](_0x3bdc96,'6'),_0x5cc078=_0x5d3521?_0x3bead8['result'][_0x48514d(0x139)]:null;if(_0x5d3521)try{global[_0x48514d(0xc5)]['push'](_0x3bead8[_0x48514d(0xab)]['message']),global[_0x48514d(0x12b)]=!![];}catch(_0x5c56e0){logger[_0x48514d(0x180)](_0x48514d(0x102)+_0x5c56e0);}if(_0x4ccba6)try{global['__drivers']&&_0x1221eb[_0x48514d(0xac)](global['__drivers'][_0x48514d(0x144)],0x1)&&(await global[_0x48514d(0x16c)](),global[_0x48514d(0xdb)][_0x48514d(0xee)](),global[_0x48514d(0xc5)]=[],global[_0x48514d(0x12b)]=![]),global[_0x48514d(0xdb)]&&global[_0x48514d(0xdb)][0x0]&&(await global[_0x48514d(0xdb)][0x0]['session_'],_0x554054=!![],!global[_0x48514d(0xd0)]&&await global[_0x48514d(0xdb)][0x0][_0x48514d(0x12c)](_0x48514d(0xe4)+_0x3bead8['pickle'][_0x48514d(0x14e)]+_0x48514d(0x17d)),_0x5d3521?await _0x1221eb['BZEjn'](markSessionStatus,global[_0x48514d(0xdb)][0x0],_0x1221eb[_0x48514d(0x13f)],global[_0x48514d(0xc5)][_0x48514d(0x163)](_0x1221eb['uzXHi'])):await _0x1221eb[_0x48514d(0x111)](markSessionStatus,global[_0x48514d(0xdb)][0x0],_0x1221eb[_0x48514d(0x1ad)]));}catch(_0x1e8a21){logger[_0x48514d(0x180)](_0x48514d(0x18e)+util['format'](_0x1e8a21));}if(_0xe4ac46)try{try{const _0x25396a=_0x1221eb[_0x48514d(0x12e)](require,_0x1221eb[_0x48514d(0xb5)]),_0x42111d=_0x1221eb[_0x48514d(0x182)](require,_0x1221eb[_0x48514d(0x1aa)]),_0xcb4411=_0x1221eb['YRUun'](require,_0x1221eb[_0x48514d(0x189)]);if(_0x25396a['getInstance']()['isRunning']()){const _0x29cab5={'title':_0x3bead8['pickle'][_0x48514d(0x14e)]||_0x1221eb['uppYV'],'titlePath':[_0x3bead8[_0x48514d(0xec)][_0x48514d(0x14e)]||_0x1221eb['uppYV']],'id':_0x3bead8[_0x48514d(0x155)]||_0x1221eb[_0x48514d(0x116)],'status':_0x5d3521?_0x1221eb['RSiuy']:_0x1221eb[_0x48514d(0x1ad)],'error':_0x5cc078?{'message':_0x5cc078}:null,'tags':_0x3bead8[_0x48514d(0xec)][_0x48514d(0x118)]||[],..._0x3bead8},_0x306733=_0x29cab5,_0x1899da={};_0x1899da[_0x48514d(0x10c)]=_0x306733,_0x1899da[_0x48514d(0x10b)]=_0x3bead8,_0x1899da[_0x48514d(0x1ab)]=global[_0x48514d(0x165)][_0x48514d(0x10e)],_0x1899da['testFramework']=FRAMEWORKS[_0x48514d(0x191)],await _0x25396a['getInstance']()[_0x48514d(0x13a)]()['trackEvent'](_0x42111d[_0x48514d(0x19d)],_0xcb4411['PRE'],_0x1899da),logger['debug'](_0x48514d(0xcb)+_0x3bead8['pickle']['name']);}}catch(_0x43ef1b){logger[_0x48514d(0x180)](_0x48514d(0x1a3)+util[_0x48514d(0x18b)](_0x43ef1b));}const _0xc5fe0b=_0x5d3521?_0x1221eb[_0x48514d(0x13f)]:_0x1221eb[_0x48514d(0x1ad)];await playwrightPatcher[_0x48514d(0x11f)](_0x3bead8,_0xc5fe0b,_0x5cc078),logger[_0x48514d(0x180)](_0x1221eb[_0x48514d(0xe7)]);try{await playwrightPatcher[_0x48514d(0xbc)](),logger[_0x48514d(0x180)](_0x1221eb[_0x48514d(0xd9)]);}catch(_0x11905b){logger[_0x48514d(0x180)](_0x48514d(0xdf)+util[_0x48514d(0x18b)](_0x11905b));}try{playwrightPatcher[_0x48514d(0x138)]['cleanup'](),logger[_0x48514d(0x180)](_0x1221eb[_0x48514d(0x161)]);}catch(_0xc287c8){logger[_0x48514d(0x180)](_0x48514d(0x117)+util[_0x48514d(0x18b)](_0xc287c8));}}catch(_0x3984ce){logger[_0x48514d(0x180)](_0x48514d(0x183)+util[_0x48514d(0x18b)](_0x3984ce));try{playwrightPatcher[_0x48514d(0xbc)]&&(await playwrightPatcher[_0x48514d(0xbc)](),logger[_0x48514d(0x180)](_0x1221eb[_0x48514d(0xd5)])),playwrightPatcher[_0x48514d(0x138)]&&playwrightPatcher[_0x48514d(0x138)]['cleanup']&&(playwrightPatcher[_0x48514d(0x138)][_0x48514d(0x11c)](),logger[_0x48514d(0x180)](_0x1221eb[_0x48514d(0x108)]));}catch(_0x42d5bf){logger['debug'](_0x48514d(0x123)+util[_0x48514d(0x18b)](_0x42d5bf));}}const _0x201047=_0x1221eb[_0x48514d(0x134)](require,_0x1221eb[_0x48514d(0xb4)]);if(!_0x201047[_0x48514d(0xaf)]()[_0x48514d(0xf7)]())try{if(_0x1221eb[_0x48514d(0x14a)](shouldProcessEventForTesthub)){const _0x527f23=TestDetails['getTestUUID'](_0x3bead8['testCaseStartedId']);let _0x1dc8d3=null;global[_0x48514d(0xdb)]&&global[_0x48514d(0xdb)][0x0]&&(_0x1dc8d3=await _0x1221eb[_0x48514d(0xb9)](sendPlatformDetails,global['__drivers'][0x0],_0x527f23,!![],!![]));const _0x245274={};_0x245274[_0x48514d(0x10a)]=_0x527f23,_0x245274[_0x48514d(0x177)]=_0x1dc8d3;const _0x2d98b9=_0x245274,_0x2714a5={};_0x2714a5[_0x48514d(0x15e)]=_0x1221eb[_0x48514d(0x1a4)],_0x2714a5[_0x48514d(0x136)]=_0x2d98b9,await SessionHandler[_0x48514d(0xfe)](_0x2714a5);}}catch(_0x259de3){logger[_0x48514d(0x180)](_0x48514d(0x17e)+util[_0x48514d(0x18b)](_0x259de3));}try{if(globals['getGlobal'](_0x1221eb['seDTs'])&&globals['getGlobal'](_0x1221eb['AvdGa'])){logger[_0x48514d(0xca)](_0x1221eb['fiTDd']);const _0x4694a7=TestDetails[_0x48514d(0x185)](_0x3bead8[_0x48514d(0x155)]),_0x4116c9={};_0x4116c9[_0x48514d(0xfc)]=_0x4694a7,_0x4116c9['thBuildUuid']=process[_0x48514d(0x178)][testHubConstants[_0x48514d(0xf2)]['BROWSERSTACK_TESTHUB_UUID']],_0x4116c9[_0x48514d(0xe1)]=process[_0x48514d(0x178)][testHubConstants[_0x48514d(0xf2)][_0x48514d(0x19b)]];const _0xf7e54e=_0x4116c9;logger['debug'](_0x48514d(0xe2)+JSON[_0x48514d(0x145)](_0xf7e54e)),logger[_0x48514d(0x180)](_0x1221eb[_0x48514d(0x198)]),global['__drivers']&&global[_0x48514d(0xdb)][0x0]&&(logger[_0x48514d(0x180)](util[_0x48514d(0x18b)](await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x48514d(0x10f)],{'method':global['browserstackSessionName']}))),globals[_0x48514d(0x19c)](_0x1221eb[_0x48514d(0x148)])&&(_0xf7e54e['is_mobile_session']=!![]),await global['__drivers'][0x0]['executeAsyncScript'](scripts[_0x48514d(0x1a2)],_0xf7e54e)),logger[_0x48514d(0xca)](_0x1221eb[_0x48514d(0x11d)]);}}catch(_0x748deb){logger['error'](_0x48514d(0x16b)+util[_0x48514d(0x18b)](_0x748deb));}if(_0x554054)try{global[_0x48514d(0xdb)][0x0]&&_0x1221eb['BDZTk'](global[_0x48514d(0xdb)][0x0][_0x48514d(0x176)],0x0)&&await global[_0x48514d(0xdb)][0x0]['initQuit']();}catch(_0x5a059c){logger['debug']('Error:\x20quiting\x20driver\x20at\x20After:\x20'+_0x5a059c);}_0x1221eb[_0x48514d(0x14a)](_0xfde0eb);})[_0x33438c(0xe3)](()=>_0x3f2f39());});const a8_0x22929d={};a8_0x22929d[a8_0x506f3d(0x14e)]='bstack',a8_0x22929d['timeout']=TEST_FRAMEWORK_HOOK_TIMEOUT[a8_0x506f3d(0x17b)],AfterStep(a8_0x22929d,function(_0x5f05d2,_0x24db0f){const _0x3c6c7a=a8_0x506f3d,_0x2a4eed={'BKUzC':function(_0x5a1a4b,_0x7fd73f){return _0x5a1a4b===_0x7fd73f;},'QHzcF':'failed','WqAWR':function(_0x170b3a,_0x175ff0){return _0x170b3a===_0x175ff0;},'gdtLq':function(_0x496376,_0x2b0264){return _0x496376!==_0x2b0264;},'CpdkF':function(_0x3b1301,_0x1e199d,_0x57b757){return _0x3b1301(_0x1e199d,_0x57b757);},'bJwYp':function(_0x308656,_0x58ed11){return _0x308656+_0x58ed11;},'xzzFP':_0x3c6c7a(0x130),'giMBs':_0x3c6c7a(0xb0),'GAOmM':_0x3c6c7a(0x194),'WNBzZ':function(_0x1c1e52,_0x5bd5a8,_0x5995fa){return _0x1c1e52(_0x5bd5a8,_0x5995fa);},'xXQGg':function(_0x20ffa1,_0x180c37){return _0x20ffa1+_0x180c37;},'jiolW':'Passed:\x20','eyqIY':_0x3c6c7a(0xca),'KaeoL':'Passed','QZzYq':function(_0x21485b){return _0x21485b();},'WAKBe':'Inside\x20browserstack\x20AfterStep'};logger[_0x3c6c7a(0x180)](_0x2a4eed[_0x3c6c7a(0x169)]);const _0x4de670=async(_0xa0355b,_0x443000)=>{const _0x6cd92d=_0x3c6c7a;global['__drivers']&&global[_0x6cd92d(0xdb)][0x0]&&await global[_0x6cd92d(0xdb)][0x0][_0x6cd92d(0x12c)](_0x6cd92d(0xc0)+_0xa0355b+_0x6cd92d(0xb1)+_0x443000+_0x6cd92d(0x17d));};new Promise(async _0x51280f=>{const _0x45dd92=_0x3c6c7a;try{const _0x24c22f=_0x2a4eed[_0x45dd92(0x1a0)](_0x5f05d2[_0x45dd92(0xab)][_0x45dd92(0xb6)]['toString']()['toLowerCase'](),_0x2a4eed[_0x45dd92(0xbe)])||_0x2a4eed[_0x45dd92(0x128)](_0x5f05d2[_0x45dd92(0xab)][_0x45dd92(0xb6)][_0x45dd92(0x18c)]()[_0x45dd92(0x11a)](),'6');_0x24c22f?(global['__sessionFailed']=!![],global[_0x45dd92(0xc5)][_0x45dd92(0x156)](_0x5f05d2[_0x45dd92(0xab)][_0x45dd92(0x139)]),_0x2a4eed['gdtLq'](_0x5f05d2[_0x45dd92(0x17a)],undefined)?await _0x2a4eed[_0x45dd92(0x164)](_0x4de670,JSON['stringify'](_0x2a4eed['bJwYp'](_0x2a4eed['bJwYp'](_0x2a4eed['bJwYp'](_0x2a4eed[_0x45dd92(0x190)],'\x22'+_0x5f05d2['pickleStep'][_0x45dd92(0x14f)]+'\x22\x20'),_0x2a4eed['giMBs']),_0x5f05d2[_0x45dd92(0xab)][_0x45dd92(0x139)])),_0x2a4eed['GAOmM']):await _0x2a4eed['CpdkF'](_0x4de670,JSON[_0x45dd92(0x145)](_0x2a4eed[_0x45dd92(0x121)](_0x2a4eed[_0x45dd92(0x190)],_0x5f05d2[_0x45dd92(0xab)][_0x45dd92(0x139)])),_0x2a4eed[_0x45dd92(0xc6)])):_0x2a4eed[_0x45dd92(0x142)](_0x5f05d2[_0x45dd92(0x17a)],undefined)?await _0x2a4eed['WNBzZ'](_0x4de670,JSON[_0x45dd92(0x145)](_0x2a4eed[_0x45dd92(0x135)](_0x2a4eed['jiolW'],'\x22'+_0x5f05d2[_0x45dd92(0x17a)][_0x45dd92(0x14f)]+'\x22')),_0x2a4eed[_0x45dd92(0xc3)]):await _0x2a4eed[_0x45dd92(0x175)](_0x4de670,JSON['stringify'](_0x2a4eed['KaeoL']),_0x2a4eed[_0x45dd92(0xc3)]),global[_0x45dd92(0xdb)]&&global[_0x45dd92(0xdb)][0x0]&&global[_0x45dd92(0xdb)][0x0]['session_'][_0x45dd92(0xd6)](_0x598014=>{})['catch'](_0x3970a8=>{const _0x3883d9=_0x45dd92;logger['debug'](_0x3883d9(0x127)+util[_0x3883d9(0x18b)](_0x3970a8));});}catch(_0x3715ee){logger[_0x45dd92(0x180)](_0x45dd92(0x16f)+_0x3715ee);}_0x2a4eed[_0x45dd92(0xfb)](_0x51280f);})[_0x3c6c7a(0xe3)](()=>_0x24db0f());});const a8_0xb9c27f={};a8_0xb9c27f[a8_0x506f3d(0x14e)]=a8_0x506f3d(0x171),a8_0xb9c27f[a8_0x506f3d(0x166)]=TEST_FRAMEWORK_HOOK_TIMEOUT[a8_0x506f3d(0x17b)],AfterAll(a8_0xb9c27f,async function(_0x4acd5d,_0x3d2c30){const _0x2dea0a=a8_0x506f3d,_0x179700={'huKXQ':_0x2dea0a(0xbb),'KjmVQ':'Cleaned\x20up\x20Playwright\x20close\x20tracker','tvzhx':function(_0x3b8793){return _0x3b8793();},'HcAII':_0x2dea0a(0x137)};logger[_0x2dea0a(0x180)](_0x179700[_0x2dea0a(0x100)]),await new Promise(async _0x1e9eb5=>{const _0x2384ea=_0x2dea0a,_0x31b2b1=_0x179700['huKXQ']['split']('|');let _0x2acf1d=0x0;while(!![]){switch(_0x31b2b1[_0x2acf1d++]){case'0':try{playwrightPatcher&&playwrightPatcher[_0x2384ea(0xbc)]&&(await playwrightPatcher[_0x2384ea(0xbc)](),playwrightPatcher[_0x2384ea(0x138)]&&playwrightPatcher[_0x2384ea(0x138)]['cleanup'](),logger[_0x2384ea(0x180)](_0x179700[_0x2384ea(0x170)]));}catch(_0x455127){logger['debug'](_0x2384ea(0xd8)+util[_0x2384ea(0x18b)](_0x455127));}continue;case'1':PerformanceTester[_0x2384ea(0xde)]();continue;case'2':await RequestQueueHandler[_0x2384ea(0xaf)]()[_0x2384ea(0x167)]();continue;case'3':_0x179700['tvzhx'](_0x1e9eb5);continue;case'4':await global[_0x2384ea(0x16c)]();continue;}break;}});});
@@ -1 +1 @@
1
- const a9_0x4e6b02=a9_0x30f1;(function(_0x55a5c1,_0x2b85d4){const _0x1e5613=a9_0x30f1,_0x16abb3=_0x55a5c1();while(!![]){try{const _0x13608b=-parseInt(_0x1e5613(0x17d))/0x1*(parseInt(_0x1e5613(0x189))/0x2)+-parseInt(_0x1e5613(0x1a8))/0x3*(parseInt(_0x1e5613(0x178))/0x4)+parseInt(_0x1e5613(0x1b1))/0x5*(-parseInt(_0x1e5613(0x18d))/0x6)+parseInt(_0x1e5613(0x198))/0x7*(-parseInt(_0x1e5613(0x199))/0x8)+-parseInt(_0x1e5613(0x18c))/0x9+-parseInt(_0x1e5613(0x1a2))/0xa+parseInt(_0x1e5613(0x182))/0xb;if(_0x13608b===_0x2b85d4)break;else _0x16abb3['push'](_0x16abb3['shift']());}catch(_0x21c529){_0x16abb3['push'](_0x16abb3['shift']());}}}(a9_0x95f0,0x32ab7));const {requireModule,modifyCommand,isTrue,markSessionStatus}=require(a9_0x4e6b02(0x19f)),setKeepAlive=require('../../helpers/setKeepAlive'),cucumberModule=requireModule(a9_0x4e6b02(0x172),a9_0x4e6b02(0x18f)),logger=require(a9_0x4e6b02(0x171))['winstonLogger'];modifyCommand(),setKeepAlive();const Before=cucumberModule[a9_0x4e6b02(0x196)],After=cucumberModule[a9_0x4e6b02(0x1a3)],configuration=process[a9_0x4e6b02(0x181)][a9_0x4e6b02(0x18a)];if(configuration!==undefined){const config=JSON[a9_0x4e6b02(0x18b)](configuration);isTrue(config[a9_0x4e6b02(0x1af)])&&(global[a9_0x4e6b02(0x1ae)]=!![]),global[a9_0x4e6b02(0x1ad)]=isTrue(config[a9_0x4e6b02(0x17c)]),require(a9_0x4e6b02(0x18e))[a9_0x4e6b02(0x1b0)](config),global[a9_0x4e6b02(0x17e)]=config[a9_0x4e6b02(0x19a)]||{};}function a9_0x30f1(_0x489f37,_0x20d975){const _0x95f06=a9_0x95f0();return a9_0x30f1=function(_0x30f120,_0x1727ed){_0x30f120=_0x30f120-0x171;let _0x220830=_0x95f06[_0x30f120];return _0x220830;},a9_0x30f1(_0x489f37,_0x20d975);}global[a9_0x4e6b02(0x185)]=0x0;const __setDefaultTimeout=cucumberModule[a9_0x4e6b02(0x1a0)];cucumberModule[a9_0x4e6b02(0x1a0)]=_0xa802ce=>{const _0x273276=a9_0x4e6b02,_0x45f492={'ueLQE':function(_0x17b1aa,_0x32c3b8){return _0x17b1aa(_0x32c3b8);}};global[_0x273276(0x185)]=_0xa802ce,_0x45f492[_0x273276(0x179)](__setDefaultTimeout,_0xa802ce);};function a9_0x95f0(){const _0x39b557=['3191166dRfauT','50658TgKubJ','../../index','cucumber','status','pickle','session_','browserstack_executor:\x20','UPIRP','\x20|\x20','Before','BKqDT','1298535WxvCFa','16saluEN','platformCaps','stringify','then','initQuit','setSessionName','../../helpers/helper','setDefaultTimeout','__driver','1452210kNwqut','After','timeout','DVpDC','name','arguments','51GbYIbT','Error:\x20setting\x20status\x20at\x20After:\x20','slADs','bNFqI','kzMLF','__skipSessionStatus','__skipSessionName','skipSessionName','browserstackAgentV2','40Cfjoht','../../helpers/logger','cucumber/lib/index.js','toLowerCase','__error_messages__','jFrBz','failed','ZYYZj','56360pIgAxk','ueLQE','Inside\x20browserstack\x20Before','Error:\x20quiting\x20at\x20After:\x20','skipSessionStatus','43202TFYuqq','__platformCaps','bstack','UxTLz','env','15714864jRDjVw','join','kmkqZ','__timeout','debug','IBAXk','UcXTw','2VAGrXV','CONFIG','parse'];a9_0x95f0=function(){return _0x39b557;};return a9_0x95f0();}const a9_0x21abea={};a9_0x21abea['name']=a9_0x4e6b02(0x17f),Before(a9_0x21abea,function(){const _0xc7511c=a9_0x4e6b02,_0xf16434={};_0xf16434[_0xc7511c(0x184)]=_0xc7511c(0x17a);const _0x34ec56=_0xf16434;logger[_0xc7511c(0x186)](_0x34ec56[_0xc7511c(0x184)]),global['__error_messages__']=[];});const a9_0x11b07b={};a9_0x11b07b[a9_0x4e6b02(0x1a6)]=a9_0x4e6b02(0x17f),a9_0x11b07b[a9_0x4e6b02(0x1a4)]=0x2710,After(a9_0x11b07b,function(_0x228d92,_0x2f1b13){const _0xe6267e=a9_0x4e6b02,_0x2e0908={'IBAXk':_0xe6267e(0x19e),'UxTLz':function(_0xe914fb,_0x1dabba){return _0xe914fb===_0x1dabba;},'BKqDT':_0xe6267e(0x176),'DVpDC':function(_0x4a0bdb,_0x34b840,_0x41a077,_0x53c8cb){return _0x4a0bdb(_0x34b840,_0x41a077,_0x53c8cb);},'kzMLF':_0xe6267e(0x195),'UPIRP':function(_0x1d7b3,_0x1dca1f,_0x20e3da){return _0x1d7b3(_0x1dca1f,_0x20e3da);},'slADs':'passed','UcXTw':function(_0x11d1b5){return _0x11d1b5();},'jFrBz':function(_0x1efeeb,_0x5f35f6){return _0x1efeeb(_0x5f35f6);},'ZYYZj':function(_0x1ed628){return _0x1ed628();},'bNFqI':'Inside\x20browserstack\x20After'};logger[_0xe6267e(0x186)](_0x2e0908[_0xe6267e(0x1ab)]),new Promise(async(_0x23c158,_0x29465f)=>{const _0x10cc53=_0xe6267e;let _0x5c81dd=![];try{await global[_0x10cc53(0x1a1)][_0x10cc53(0x192)],_0x5c81dd=!![];if(!global[_0x10cc53(0x1ae)]){const _0x2ebc76={};_0x2ebc76[_0x10cc53(0x1a6)]=_0x228d92[_0x10cc53(0x191)][_0x10cc53(0x1a6)];const _0x1b5571={};_0x1b5571['action']=_0x2e0908[_0x10cc53(0x187)],_0x1b5571[_0x10cc53(0x1a7)]=_0x2ebc76;const _0xd17161=_0x1b5571;await global[_0x10cc53(0x1a1)]['executeScript'](_0x10cc53(0x193)+JSON[_0x10cc53(0x19b)](_0xd17161));}_0x2e0908[_0x10cc53(0x180)](_0x228d92['result'][_0x10cc53(0x190)][_0x10cc53(0x173)](),_0x2e0908[_0x10cc53(0x197)])?await _0x2e0908[_0x10cc53(0x1a5)](markSessionStatus,global[_0x10cc53(0x1a1)],_0x2e0908['BKqDT'],global[_0x10cc53(0x174)][_0x10cc53(0x183)](_0x2e0908[_0x10cc53(0x1ac)])):await _0x2e0908[_0x10cc53(0x194)](markSessionStatus,global[_0x10cc53(0x1a1)],_0x2e0908[_0x10cc53(0x1aa)]);}catch(_0x53d713){logger[_0x10cc53(0x186)](_0x10cc53(0x1a9)+_0x53d713);}if(_0x5c81dd)try{await global[_0x10cc53(0x1a1)][_0x10cc53(0x19d)](),_0x2e0908[_0x10cc53(0x188)](_0x23c158);}catch(_0x853f4f){logger[_0x10cc53(0x186)](_0x10cc53(0x17b)+_0x853f4f),_0x2e0908[_0x10cc53(0x175)](_0x29465f,_0x853f4f);}else _0x2e0908[_0x10cc53(0x177)](_0x29465f);})[_0xe6267e(0x19c)](()=>_0x2f1b13());});
1
+ const a9_0x566ec5=a9_0x2bf3;(function(_0x3d6f6f,_0x803923){const _0x1dac45=a9_0x2bf3,_0x35a4ae=_0x3d6f6f();while(!![]){try{const _0x4d6e1e=-parseInt(_0x1dac45(0x11d))/0x1*(-parseInt(_0x1dac45(0x10b))/0x2)+-parseInt(_0x1dac45(0xed))/0x3+parseInt(_0x1dac45(0xf1))/0x4+-parseInt(_0x1dac45(0xfe))/0x5*(parseInt(_0x1dac45(0xec))/0x6)+parseInt(_0x1dac45(0x101))/0x7*(parseInt(_0x1dac45(0x110))/0x8)+-parseInt(_0x1dac45(0xf4))/0x9+parseInt(_0x1dac45(0xea))/0xa;if(_0x4d6e1e===_0x803923)break;else _0x35a4ae['push'](_0x35a4ae['shift']());}catch(_0x4e5171){_0x35a4ae['push'](_0x35a4ae['shift']());}}}(a9_0x2361,0x4b343));const {requireModule,modifyCommand,isTrue,markSessionStatus}=require(a9_0x566ec5(0x10d)),setKeepAlive=require(a9_0x566ec5(0xf6)),cucumberModule=requireModule(a9_0x566ec5(0x117),'cucumber'),logger=require(a9_0x566ec5(0x10c))[a9_0x566ec5(0xf3)];function a9_0x2361(){const _0x35c6f6=['toLowerCase','Before','wlSIU','7849950uNvySA','uxTZm','661698rHbhLQ','1651947RcCheZ','status','Error:\x20quiting\x20at\x20After:\x20','fLarP','747356PdyKjC','timeout','winstonLogger','4946670bSBkSw','EQttf','../../helpers/setKeepAlive','debug','setDefaultTimeout','WqiQy','RSFvW','__driver','__platformCaps','browserstack_executor:\x20','5pZvHpb','__skipSessionName','__error_messages__','84ScZQNJ','arguments','session_','skipSessionStatus','bstack','__timeout','join','CONFIG','result','parse','2oTEAHr','../../helpers/logger','../../helpers/helper','VqaXD','../../index','182696MTNIWJ','stringify','browserstackAgentV2','env','executeScript','failed','pickle','cucumber/lib/index.js','initQuit','\x20|\x20','Inside\x20browserstack\x20After','action','Inside\x20browserstack\x20Before','272719vUluwj','qJIFr','name','platformCaps','setSessionName','After'];a9_0x2361=function(){return _0x35c6f6;};return a9_0x2361();}modifyCommand(),setKeepAlive();const Before=cucumberModule[a9_0x566ec5(0xe8)],After=cucumberModule[a9_0x566ec5(0xe6)],configuration=process[a9_0x566ec5(0x113)][a9_0x566ec5(0x108)];function a9_0x2bf3(_0x21bb91,_0x26a446){const _0x236102=a9_0x2361();return a9_0x2bf3=function(_0x2bf352,_0x1ba2e6){_0x2bf352=_0x2bf352-0xe3;let _0x5b0a60=_0x236102[_0x2bf352];return _0x5b0a60;},a9_0x2bf3(_0x21bb91,_0x26a446);}if(configuration!==undefined){const config=JSON[a9_0x566ec5(0x10a)](configuration);isTrue(config['skipSessionName'])&&(global[a9_0x566ec5(0xff)]=!![]),global['__skipSessionStatus']=isTrue(config[a9_0x566ec5(0x104)]),require(a9_0x566ec5(0x10f))[a9_0x566ec5(0x112)](config),global[a9_0x566ec5(0xfc)]=config[a9_0x566ec5(0xe4)]||{};}global[a9_0x566ec5(0x106)]=0x0;const __setDefaultTimeout=cucumberModule['setDefaultTimeout'];cucumberModule[a9_0x566ec5(0xf8)]=_0x476088=>{const _0x54ab42=a9_0x566ec5,_0x190d19={'RSFvW':function(_0x1d928a,_0x7fb28c){return _0x1d928a(_0x7fb28c);}};global[_0x54ab42(0x106)]=_0x476088,_0x190d19[_0x54ab42(0xfa)](__setDefaultTimeout,_0x476088);};const a9_0x97f282={};a9_0x97f282[a9_0x566ec5(0xe3)]='bstack',Before(a9_0x97f282,function(){const _0x20ee0d=a9_0x566ec5,_0x12b597={};_0x12b597['gwffu']=_0x20ee0d(0x11c);const _0x1684da=_0x12b597;logger[_0x20ee0d(0xf7)](_0x1684da['gwffu']),global['__error_messages__']=[];});const a9_0x1e8b91={};a9_0x1e8b91[a9_0x566ec5(0xe3)]=a9_0x566ec5(0x105),a9_0x1e8b91[a9_0x566ec5(0xf2)]=0x2710,After(a9_0x1e8b91,function(_0xf0d120,_0x50b256){const _0x3debbc=a9_0x566ec5,_0x14c9ba={'WlKZB':_0x3debbc(0xe5),'fLarP':function(_0x390632,_0x4e4bbb){return _0x390632===_0x4e4bbb;},'VqaXD':_0x3debbc(0x115),'EQttf':function(_0x3f4970,_0x18872e,_0x124387,_0x5ec05b){return _0x3f4970(_0x18872e,_0x124387,_0x5ec05b);},'qJIFr':_0x3debbc(0x119),'wlSIU':function(_0x12234a,_0x582c1f,_0x3e7c3b){return _0x12234a(_0x582c1f,_0x3e7c3b);},'jqvAt':'passed','WqiQy':function(_0x9e45d5){return _0x9e45d5();},'VkQhm':function(_0x53c947,_0x116746){return _0x53c947(_0x116746);},'uxTZm':function(_0x312b54){return _0x312b54();},'DMkfY':_0x3debbc(0x11a)};logger[_0x3debbc(0xf7)](_0x14c9ba['DMkfY']),new Promise(async(_0x4f261a,_0x46b5ba)=>{const _0x2e2be4=_0x3debbc;let _0x5aab1c=![];try{await global['__driver'][_0x2e2be4(0x103)],_0x5aab1c=!![];if(!global['__skipSessionName']){const _0x44ca46={};_0x44ca46[_0x2e2be4(0xe3)]=_0xf0d120[_0x2e2be4(0x116)][_0x2e2be4(0xe3)];const _0x1906dd={};_0x1906dd[_0x2e2be4(0x11b)]=_0x14c9ba['WlKZB'],_0x1906dd[_0x2e2be4(0x102)]=_0x44ca46;const _0xf0420e=_0x1906dd;await global[_0x2e2be4(0xfb)][_0x2e2be4(0x114)](_0x2e2be4(0xfd)+JSON[_0x2e2be4(0x111)](_0xf0420e));}_0x14c9ba[_0x2e2be4(0xf0)](_0xf0d120[_0x2e2be4(0x109)][_0x2e2be4(0xee)][_0x2e2be4(0xe7)](),_0x14c9ba[_0x2e2be4(0x10e)])?await _0x14c9ba[_0x2e2be4(0xf5)](markSessionStatus,global[_0x2e2be4(0xfb)],_0x14c9ba[_0x2e2be4(0x10e)],global[_0x2e2be4(0x100)][_0x2e2be4(0x107)](_0x14c9ba[_0x2e2be4(0x11e)])):await _0x14c9ba[_0x2e2be4(0xe9)](markSessionStatus,global[_0x2e2be4(0xfb)],_0x14c9ba['jqvAt']);}catch(_0x535a2b){logger[_0x2e2be4(0xf7)]('Error:\x20setting\x20status\x20at\x20After:\x20'+_0x535a2b);}if(_0x5aab1c)try{await global[_0x2e2be4(0xfb)][_0x2e2be4(0x118)](),_0x14c9ba[_0x2e2be4(0xf9)](_0x4f261a);}catch(_0x1df68a){logger[_0x2e2be4(0xf7)](_0x2e2be4(0xef)+_0x1df68a),_0x14c9ba['VkQhm'](_0x46b5ba,_0x1df68a);}else _0x14c9ba[_0x2e2be4(0xeb)](_0x46b5ba);})['then'](()=>_0x50b256());});
@@ -1 +1 @@
1
- const a10_0x522e1f=a10_0x342c;(function(_0x47be3,_0x548593){const _0x572822=a10_0x342c,_0x42567a=_0x47be3();while(!![]){try{const _0x471006=parseInt(_0x572822(0x1ca))/0x1*(parseInt(_0x572822(0x1c5))/0x2)+-parseInt(_0x572822(0x1cb))/0x3+-parseInt(_0x572822(0x1c8))/0x4*(-parseInt(_0x572822(0x1c7))/0x5)+parseInt(_0x572822(0x1c1))/0x6*(-parseInt(_0x572822(0x1c0))/0x7)+-parseInt(_0x572822(0x1cd))/0x8*(-parseInt(_0x572822(0x1cc))/0x9)+parseInt(_0x572822(0x1bf))/0xa*(parseInt(_0x572822(0x1bb))/0xb)+-parseInt(_0x572822(0x1c2))/0xc*(-parseInt(_0x572822(0x1c9))/0xd);if(_0x471006===_0x548593)break;else _0x42567a['push'](_0x42567a['shift']());}catch(_0x265a34){_0x42567a['push'](_0x42567a['shift']());}}}(a10_0x4e3d,0x1c76f));const {requireModule}=require(a10_0x522e1f(0x1bc)),constants=require(a10_0x522e1f(0x1c6));let cucumberModule=null;function a10_0x4e3d(){const _0x5c1d0c=['517439gpWaWt','16RefPlE','523605VGYXgL','495hAIzDX','5720SlDGaU','385leiGJt','../../helpers/helper','cucumber/lib/index.js','BSTACK_DELTA','2780FDsfRo','66290oSLKoR','114daajuH','108acDSis','__timeout','@cucumber/cucumber/lib/index.js','482UbPNta','../utils/constants','10iBtfPG','119836ltXPin'];a10_0x4e3d=function(){return _0x5c1d0c;};return a10_0x4e3d();}function a10_0x342c(_0x5a0753,_0x461f36){const _0x4e3d24=a10_0x4e3d();return a10_0x342c=function(_0x342c94,_0x3598d2){_0x342c94=_0x342c94-0x1bb;let _0xe7fc8b=_0x4e3d24[_0x342c94];return _0xe7fc8b;},a10_0x342c(_0x5a0753,_0x461f36);}try{cucumberModule=requireModule(a10_0x522e1f(0x1c4),'@cucumber/cucumber');}catch(a10_0x72c12b){cucumberModule=requireModule(a10_0x522e1f(0x1bd),'cucumber');}const userValue=global[a10_0x522e1f(0x1c3)]||0x0;(userValue===0x0||userValue<constants[a10_0x522e1f(0x1be)])&&cucumberModule['setDefaultTimeout'](constants[a10_0x522e1f(0x1be)]);
1
+ const a10_0x575f1d=a10_0x299a;function a10_0x299a(_0x18c69b,_0x372444){const _0xc1e2e2=a10_0xc1e2();return a10_0x299a=function(_0x299ae9,_0x439cbb){_0x299ae9=_0x299ae9-0x11e;let _0x4dc3fe=_0xc1e2e2[_0x299ae9];return _0x4dc3fe;},a10_0x299a(_0x18c69b,_0x372444);}(function(_0x32ce39,_0x1b431d){const _0x4b30de=a10_0x299a,_0x3ec57b=_0x32ce39();while(!![]){try{const _0x2a33b0=parseInt(_0x4b30de(0x11f))/0x1*(parseInt(_0x4b30de(0x125))/0x2)+-parseInt(_0x4b30de(0x124))/0x3+-parseInt(_0x4b30de(0x126))/0x4*(parseInt(_0x4b30de(0x130))/0x5)+-parseInt(_0x4b30de(0x12d))/0x6*(parseInt(_0x4b30de(0x12b))/0x7)+-parseInt(_0x4b30de(0x120))/0x8+-parseInt(_0x4b30de(0x12e))/0x9*(-parseInt(_0x4b30de(0x11e))/0xa)+parseInt(_0x4b30de(0x12f))/0xb*(parseInt(_0x4b30de(0x128))/0xc);if(_0x2a33b0===_0x1b431d)break;else _0x3ec57b['push'](_0x3ec57b['shift']());}catch(_0x34cd76){_0x3ec57b['push'](_0x3ec57b['shift']());}}}(a10_0xc1e2,0xb4723));const {requireModule}=require(a10_0x575f1d(0x121)),constants=require('../utils/constants');let cucumberModule=null;try{cucumberModule=requireModule(a10_0x575f1d(0x129),a10_0x575f1d(0x123));}catch(a10_0x51dac5){cucumberModule=requireModule(a10_0x575f1d(0x12a),'cucumber');}const userValue=global[a10_0x575f1d(0x12c)]||0x0;function a10_0xc1e2(){const _0x35c170=['20frRZdJ','817252fyOAKN','BSTACK_DELTA','2292KmtBWa','@cucumber/cucumber/lib/index.js','cucumber/lib/index.js','64939OnIuon','__timeout','300rDQnUK','2042739DehyLq','46255HYJrCM','5NvUbil','50GvmzpH','100649LFtHVn','3787008BNjcEY','../../helpers/helper','setDefaultTimeout','@cucumber/cucumber','3191562PPngfT'];a10_0xc1e2=function(){return _0x35c170;};return a10_0xc1e2();}(userValue===0x0||userValue<constants[a10_0x575f1d(0x127)])&&cucumberModule[a10_0x575f1d(0x122)](constants[a10_0x575f1d(0x127)]);
@@ -1 +1 @@
1
- 'use strict';function a11_0x542c(){const _0x3e7905=['class','hub','BROWSERSTACK_TESTHUB_JWT','detoxA11y','accessibilityToken','mode','method','info','writeFileSync','hub-cloud.browserstack.com','BROWSERSTACK_DETOX_A11Y_CONFIG','App\x20Accessibility:\x20no\x20TestHub\x20build\x20uuid\x20resolved\x20—\x20scans\x20will\x20be\x20dispatched\x20without\x20one.','21VafPHD','env','command','tphca','library','aODbV','accessibilityConfig','scriptsList','cls','isTrue','has','846349WcuKhv','authHeader','BROWSERSTACK_USERNAME','assign','exports','find','PROBE_ENV','stringify','userName','message','\x20script(s)\x20but\x20no\x20\x22scan\x22\x20script\x20—\x20no\x20scans\x20can\x20be\x20armed\x20for\x20this\x20run.','capabilitiesList','getAccessibilityModule','add','pid','join','51594bYWsyY','thBuildUuid','value','hjANZ','FKrIv','user','function','mCiRO','mDrlX','47812GjNqyu','1170664SjpaKC','warn','SDK-local\x20supplement\x20only','App\x20Accessibility:\x20the\x20build\x20served\x20no\x20commands\x20to\x20wrap\x20—\x20no\x20scans\x20can\x20be\x20armed\x20for\x20this\x20run.','commandsToWrap','522441lvtzGS','key','CONFIG_ENV','push','host','path','bstack-detox-a11y-','arm','134295ShZwBF','commandsList','resolveArmingData','name','accessibility','served\x20by\x20App\x20Accessibility','module','detox','App\x20Accessibility:\x20','forEach','tmpdir','../../helpers/classLogger.js','BROWSERSTACK_DETOX_A11Y_HUB_HOST','.json','accessibilityOptions','5tGvayO','accessKey','length','1535484btDloU'];a11_0x542c=function(){return _0x3e7905;};return a11_0x542c();}const a11_0x9b69ff=a11_0x167a;(function(_0x5ef2e1,_0x5ae63d){const _0x525410=a11_0x167a,_0x335c3a=_0x5ef2e1();while(!![]){try{const _0x5d3711=parseInt(_0x525410(0x18d))/0x1+-parseInt(_0x525410(0x176))/0x2*(-parseInt(_0x525410(0x1ac))/0x3)+parseInt(_0x525410(0x17f))/0x4*(parseInt(_0x525410(0x19c))/0x5)+-parseInt(_0x525410(0x19f))/0x6+-parseInt(_0x525410(0x1b7))/0x7+parseInt(_0x525410(0x180))/0x8+parseInt(_0x525410(0x185))/0x9;if(_0x5d3711===_0x5ae63d)break;else _0x335c3a['push'](_0x335c3a['shift']());}catch(_0x44723d){_0x335c3a['push'](_0x335c3a['shift']());}}}(a11_0x542c,0x25b14));function a11_0x167a(_0x4cb41f,_0x2c6b5d){const _0x542c17=a11_0x542c();return a11_0x167a=function(_0x167a68,_0x571db8){_0x167a68=_0x167a68-0x16a;let _0x370e6f=_0x542c17[_0x167a68];return _0x370e6f;},a11_0x167a(_0x4cb41f,_0x2c6b5d);}const fs=require('fs'),os=require('os'),path=require(a11_0x9b69ff(0x18a)),helper=require('../../helpers/helper'),{createClassLogger}=require(a11_0x9b69ff(0x198)),logger=createClassLogger(a11_0x9b69ff(0x1a3)),CONFIG_ENV=a11_0x9b69ff(0x1aa),PROBE_ENV='BROWSERSTACK_DETOX_A11Y_PROBE',HUB_HOST_ENV=a11_0x9b69ff(0x199),commandOf=_0x36a1b9=>({'library':_0x36a1b9[a11_0x9b69ff(0x1b0)]||a11_0x9b69ff(0x194),'method':_0x36a1b9['method']||'','module':_0x36a1b9['module']||'','name':_0x36a1b9[a11_0x9b69ff(0x190)]||_0x36a1b9[a11_0x9b69ff(0x1a6)]||'','class':_0x36a1b9[a11_0x9b69ff(0x1a0)]||_0x36a1b9[a11_0x9b69ff(0x1b4)]||''}),capabilityValue=(_0xcb9618,_0x28e540)=>{const _0x15852e=a11_0x9b69ff,_0x47bf58=(_0xcb9618||[])[_0x15852e(0x16b)](_0x136b0b=>_0x136b0b&&_0x136b0b['name']===_0x28e540);return _0x47bf58?_0x47bf58[_0x15852e(0x178)]:'';},LOCAL_COMMAND_SUPPLEMENTS=[],mergeCommands=_0xf107e1=>{const _0x2c760a=a11_0x9b69ff,_0x2004d6={'FKrIv':function(_0x33b3d0,_0x23cbb7){return _0x33b3d0(_0x23cbb7);}},_0x5dc4e0=_0xf107e1['map'](commandOf)['filter'](_0x1e3d76=>_0x1e3d76[_0x2c760a(0x1a6)]&&(_0x1e3d76[_0x2c760a(0x1a0)]||_0x1e3d76[_0x2c760a(0x193)])),_0x36b1f4=new Set(_0x5dc4e0['map'](_0x46ddd4=>(_0x46ddd4[_0x2c760a(0x1a0)]||_0x46ddd4[_0x2c760a(0x193)])+'.'+_0x46ddd4['method'])),_0x4ef512=[];return LOCAL_COMMAND_SUPPLEMENTS[_0x2c760a(0x196)](_0x15be52=>{const _0x5a0d61=_0x2c760a,_0x33b8ce=_0x2004d6[_0x5a0d61(0x17a)](commandOf,_0x15be52),_0x1ca315=(_0x33b8ce[_0x5a0d61(0x1a0)]||_0x33b8ce[_0x5a0d61(0x193)])+'.'+_0x33b8ce[_0x5a0d61(0x1a6)];if(!_0x36b1f4[_0x5a0d61(0x1b6)](_0x1ca315)){_0x36b1f4[_0x5a0d61(0x173)](_0x1ca315);const _0x1ea316={};_0x1ea316['bstackLocal']=!![],_0x5dc4e0[_0x5a0d61(0x188)](Object[_0x5a0d61(0x1ba)]({},_0x33b8ce,_0x1ea316)),_0x4ef512['push'](_0x33b8ce['name']);}}),_0x4ef512[_0x2c760a(0x19e)]&&logger['warn'](_0x2c760a(0x195)+_0x4ef512[_0x2c760a(0x19e)]+'\x20command(s)\x20supplied\x20locally\x20because\x20the\x20served\x20list\x20omits\x20them:\x20'+_0x4ef512[_0x2c760a(0x175)](',\x20')),_0x5dc4e0;},resolveArmingData=_0x113460=>{const _0x30c026=a11_0x9b69ff,_0x299e3b={'mDrlX':function(_0x3541dc,_0x243eee){return _0x3541dc===_0x243eee;},'jcipb':_0x30c026(0x17c),'tphca':function(_0x136f54,_0x2be286){return _0x136f54(_0x2be286);},'qJlSa':_0x30c026(0x183),'mCiRO':_0x30c026(0x192),'hjANZ':_0x30c026(0x182),'ZTyaU':function(_0x55b3c9,_0x39e9bb,_0x2f6924){return _0x55b3c9(_0x39e9bb,_0x2f6924);},'evuMt':_0x30c026(0x1a4)},_0x3e928f=_0x113460&&_0x299e3b[_0x30c026(0x17e)](typeof _0x113460['getAccessibilityModule'],_0x299e3b['jcipb'])?_0x113460[_0x30c026(0x172)]():null,_0x4316af=_0x3e928f&&_0x3e928f[_0x30c026(0x1b2)]&&_0x3e928f[_0x30c026(0x1b2)]['options'];if(!_0x4316af)return null;const _0x2b93fb=_0x4316af[_0x30c026(0x1b3)]||[],_0x1f1492=_0x2b93fb[_0x30c026(0x16b)](_0x57f940=>_0x57f940&&_0x57f940[_0x30c026(0x190)]==='scan'),_0x103758=_0x4316af[_0x30c026(0x171)]||[],_0x4a4023=_0x4316af[_0x30c026(0x184)]&&_0x4316af[_0x30c026(0x184)][_0x30c026(0x18e)]||[];if(!_0x1f1492||!_0x1f1492[_0x30c026(0x1ae)])return logger['warn']('App\x20Accessibility:\x20the\x20build\x20served\x20'+_0x2b93fb[_0x30c026(0x19e)]+_0x30c026(0x170)),null;const _0x17148a=_0x299e3b[_0x30c026(0x1af)](mergeCommands,_0x4a4023);if(!_0x17148a[_0x30c026(0x19e)])return logger[_0x30c026(0x181)](_0x299e3b['qJlSa']),null;return logger[_0x30c026(0x1a7)]('App\x20Accessibility\x20armed:\x20'+_0x17148a['length']+'\x20command(s)\x20to\x20wrap,\x20source='+(_0x4a4023[_0x30c026(0x19e)]?_0x299e3b[_0x30c026(0x17d)]:_0x299e3b[_0x30c026(0x179)])+'.'),{'scanScript':_0x1f1492[_0x30c026(0x1ae)],'thBuildUuid':process[_0x30c026(0x1ad)]['BROWSERSTACK_TESTHUB_UUID']||'','thJwtToken':process['env'][_0x30c026(0x1a2)]||'','authHeader':_0x299e3b['ZTyaU'](capabilityValue,_0x103758,_0x299e3b['evuMt'])||process[_0x30c026(0x1ad)]['BS_A11Y_JWT']||'','commands':_0x17148a,'probe':helper[_0x30c026(0x1b5)](process['env'][PROBE_ENV])};},arm=(_0x4aaa8f,_0x4d7f09)=>{const _0x4f89d9=a11_0x9b69ff,_0xccff17={'MCRaI':function(_0x33c58d,_0x5cf6dc){return _0x33c58d(_0x5cf6dc);},'aODbV':_0x4f89d9(0x1a9),'hlVBe':_0x4f89d9(0x1ab)};try{const _0x3ed955=_0xccff17['MCRaI'](resolveArmingData,_0x4aaa8f);if(!_0x3ed955)return null;if(_0x4d7f09){_0x4d7f09[_0x4f89d9(0x191)]=!![];const _0x525a1e={};_0x525a1e['authToken']=_0x3ed955[_0x4f89d9(0x1b8)],_0x4d7f09['accessibilityOptions']=Object[_0x4f89d9(0x1ba)]({},_0x4d7f09[_0x4f89d9(0x19b)],_0x525a1e);}const _0x11f4cc={};_0x11f4cc[_0x4f89d9(0x189)]=process['env'][HUB_HOST_ENV]||_0xccff17[_0x4f89d9(0x1b1)],_0x11f4cc[_0x4f89d9(0x17b)]=_0x4d7f09&&_0x4d7f09[_0x4f89d9(0x16e)]||process[_0x4f89d9(0x1ad)][_0x4f89d9(0x1b9)]||'',_0x11f4cc[_0x4f89d9(0x186)]=_0x4d7f09&&_0x4d7f09[_0x4f89d9(0x19d)]||process[_0x4f89d9(0x1ad)]['BROWSERSTACK_ACCESS_KEY']||'',_0x3ed955[_0x4f89d9(0x1a1)]=_0x11f4cc;const _0x3e58ea=path[_0x4f89d9(0x175)](os[_0x4f89d9(0x197)](),_0x4f89d9(0x18b)+process[_0x4f89d9(0x174)]+_0x4f89d9(0x19a)),_0x1244aa={};return _0x1244aa[_0x4f89d9(0x1a5)]=0x180,fs[_0x4f89d9(0x1a8)](_0x3e58ea,JSON[_0x4f89d9(0x16d)](_0x3ed955),_0x1244aa),process[_0x4f89d9(0x1ad)][CONFIG_ENV]=_0x3e58ea,!_0x3ed955[_0x4f89d9(0x177)]&&logger[_0x4f89d9(0x181)](_0xccff17['hlVBe']),_0x3e58ea;}catch(_0x51b722){return logger[_0x4f89d9(0x181)]('App\x20Accessibility\x20could\x20not\x20be\x20armed\x20for\x20this\x20run\x20('+(_0x51b722&&_0x51b722[_0x4f89d9(0x16f)])+');\x20the\x20run\x20continues\x20without\x20scans.'),null;}},a11_0x186ac0={};a11_0x186ac0[a11_0x9b69ff(0x18c)]=arm,a11_0x186ac0[a11_0x9b69ff(0x18f)]=resolveArmingData,a11_0x186ac0[a11_0x9b69ff(0x187)]=CONFIG_ENV,a11_0x186ac0[a11_0x9b69ff(0x16c)]=PROBE_ENV,module[a11_0x9b69ff(0x16a)]=a11_0x186ac0;
1
+ 'use strict';const a11_0x75d9f4=a11_0x8053;function a11_0x8053(_0x103e34,_0x5d3b61){const _0x5c23e5=a11_0x5c23();return a11_0x8053=function(_0x8053b6,_0x154fda){_0x8053b6=_0x8053b6-0x10b;let _0x26d019=_0x5c23e5[_0x8053b6];return _0x26d019;},a11_0x8053(_0x103e34,_0x5d3b61);}function a11_0x5c23(){const _0x39a3c0=['BROWSERSTACK_TESTHUB_UUID','writeFileSync','BROWSERSTACK_DETOX_A11Y_PROBE','App\x20Accessibility\x20armed:\x20','tmpdir','uxYfe','join','../../helpers/classLogger.js','add','method','ddhEn','4YtlTdc','arm','scan','cUMBO','BS_A11Y_JWT','../../helpers/helper','pvwVr','accessKey','commandsToWrap','10lSaQGk','bstackLocal','warn','assign','stringify','getAccessibilityModule','79102tWEBbH','length','CONFIG_ENV','function','5375250ncCvcf','accessibility','served\x20by\x20App\x20Accessibility','userName','authHeader','accessibilityConfig','detox','BROWSERSTACK_DETOX_A11Y_CONFIG','1299872ZJtwHp','cls','7548688IrWoUh','.json','mode','45sYeqSq','host','PROBE_ENV','scriptsList','thBuildUuid','8016834fflHSI','command','message','value','hub','env','detoxA11y','fVlru','filter','has','11417890VqeaJq','resolveArmingData','map','forEach','qPRJi','class','push','key','BROWSERSTACK_TESTHUB_JWT','App\x20Accessibility:\x20no\x20TestHub\x20build\x20uuid\x20resolved\x20—\x20scans\x20will\x20be\x20dispatched\x20without\x20one.','bstack-detox-a11y-','find','options','authToken','user','14gGiWMG','capabilitiesList','BROWSERSTACK_ACCESS_KEY','module','13435398dGTXtk','exports','isTrue','name','ejfyK','SDK-local\x20supplement\x20only','BcrMz','pgmop','NUBwu'];a11_0x5c23=function(){return _0x39a3c0;};return a11_0x5c23();}(function(_0x244a38,_0x14f1f5){const _0x3e90b7=a11_0x8053,_0x2c3b0f=_0x244a38();while(!![]){try{const _0x32706d=-parseInt(_0x3e90b7(0x10f))/0x1+parseInt(_0x3e90b7(0x159))/0x2*(parseInt(_0x3e90b7(0x114))/0x3)+-parseInt(_0x3e90b7(0x14a))/0x4*(parseInt(_0x3e90b7(0x15d))/0x5)+parseInt(_0x3e90b7(0x119))/0x6+-parseInt(_0x3e90b7(0x132))/0x7*(-parseInt(_0x3e90b7(0x111))/0x8)+parseInt(_0x3e90b7(0x136))/0x9*(-parseInt(_0x3e90b7(0x153))/0xa)+parseInt(_0x3e90b7(0x123))/0xb;if(_0x32706d===_0x14f1f5)break;else _0x2c3b0f['push'](_0x2c3b0f['shift']());}catch(_0x42d685){_0x2c3b0f['push'](_0x2c3b0f['shift']());}}}(a11_0x5c23,0xf0ec6));const fs=require('fs'),os=require('os'),path=require('path'),helper=require(a11_0x75d9f4(0x14f)),{createClassLogger}=require(a11_0x75d9f4(0x146)),logger=createClassLogger(a11_0x75d9f4(0x11f)),CONFIG_ENV=a11_0x75d9f4(0x10e),PROBE_ENV=a11_0x75d9f4(0x141),HUB_HOST_ENV='BROWSERSTACK_DETOX_A11Y_HUB_HOST',commandOf=_0x41e989=>({'library':_0x41e989['library']||a11_0x75d9f4(0x10d),'method':_0x41e989[a11_0x75d9f4(0x148)]||'','module':_0x41e989['module']||'','name':_0x41e989[a11_0x75d9f4(0x139)]||_0x41e989[a11_0x75d9f4(0x148)]||'','class':_0x41e989[a11_0x75d9f4(0x128)]||_0x41e989[a11_0x75d9f4(0x110)]||''}),capabilityValue=(_0x1f8e31,_0x2d7b38)=>{const _0xa0f2f6=a11_0x75d9f4,_0x2ead44=(_0x1f8e31||[])[_0xa0f2f6(0x12e)](_0x146ac2=>_0x146ac2&&_0x146ac2[_0xa0f2f6(0x139)]===_0x2d7b38);return _0x2ead44?_0x2ead44[_0xa0f2f6(0x11c)]:'';},LOCAL_COMMAND_SUPPLEMENTS=[],mergeCommands=_0x5a0030=>{const _0x3e5497=a11_0x75d9f4,_0x55ad63={'fVlru':function(_0x4c2d78,_0x1f6e21){return _0x4c2d78(_0x1f6e21);}},_0x2dadca=_0x5a0030[_0x3e5497(0x125)](commandOf)[_0x3e5497(0x121)](_0xa9c4ca=>_0xa9c4ca['method']&&(_0xa9c4ca[_0x3e5497(0x128)]||_0xa9c4ca[_0x3e5497(0x135)])),_0x5ceacc=new Set(_0x2dadca[_0x3e5497(0x125)](_0x9aac12=>(_0x9aac12[_0x3e5497(0x128)]||_0x9aac12['module'])+'.'+_0x9aac12[_0x3e5497(0x148)])),_0x475da7=[];return LOCAL_COMMAND_SUPPLEMENTS[_0x3e5497(0x126)](_0x4a54bf=>{const _0x216682=_0x3e5497,_0x34bc8d=_0x55ad63[_0x216682(0x120)](commandOf,_0x4a54bf),_0x231c5c=(_0x34bc8d[_0x216682(0x128)]||_0x34bc8d['module'])+'.'+_0x34bc8d[_0x216682(0x148)];if(!_0x5ceacc[_0x216682(0x122)](_0x231c5c)){_0x5ceacc[_0x216682(0x147)](_0x231c5c);const _0x18a345={};_0x18a345[_0x216682(0x154)]=!![],_0x2dadca['push'](Object[_0x216682(0x156)]({},_0x34bc8d,_0x18a345)),_0x475da7[_0x216682(0x129)](_0x34bc8d[_0x216682(0x139)]);}}),_0x475da7[_0x3e5497(0x15a)]&&logger['warn']('App\x20Accessibility:\x20'+_0x475da7[_0x3e5497(0x15a)]+'\x20command(s)\x20supplied\x20locally\x20because\x20the\x20served\x20list\x20omits\x20them:\x20'+_0x475da7[_0x3e5497(0x145)](',\x20')),_0x2dadca;},resolveArmingData=_0x584655=>{const _0x185bcf=a11_0x75d9f4,_0x3fd798={'JsyVm':function(_0x3d02dc,_0x23955e){return _0x3d02dc===_0x23955e;},'pgmop':_0x185bcf(0x15c),'pvwVr':function(_0x1f76a0,_0x831d79){return _0x1f76a0(_0x831d79);},'cUMBO':'App\x20Accessibility:\x20the\x20build\x20served\x20no\x20commands\x20to\x20wrap\x20—\x20no\x20scans\x20can\x20be\x20armed\x20for\x20this\x20run.','NUBwu':_0x185bcf(0x15f),'BcrMz':_0x185bcf(0x13b),'ddhEn':function(_0x1b9622,_0x1957d8,_0x267826){return _0x1b9622(_0x1957d8,_0x267826);},'DFTZb':'accessibilityToken'},_0x3fe32a=_0x584655&&_0x3fd798['JsyVm'](typeof _0x584655[_0x185bcf(0x158)],_0x3fd798[_0x185bcf(0x13d)])?_0x584655[_0x185bcf(0x158)]():null,_0x10bd1d=_0x3fe32a&&_0x3fe32a[_0x185bcf(0x10c)]&&_0x3fe32a['accessibilityConfig'][_0x185bcf(0x12f)];if(!_0x10bd1d)return null;const _0x583eb2=_0x10bd1d[_0x185bcf(0x117)]||[],_0x217a24=_0x583eb2[_0x185bcf(0x12e)](_0x53a935=>_0x53a935&&_0x53a935[_0x185bcf(0x139)]===_0x185bcf(0x14c)),_0x5173be=_0x10bd1d[_0x185bcf(0x133)]||[],_0x2768bc=_0x10bd1d[_0x185bcf(0x152)]&&_0x10bd1d['commandsToWrap']['commandsList']||[];if(!_0x217a24||!_0x217a24[_0x185bcf(0x11a)])return logger[_0x185bcf(0x155)]('App\x20Accessibility:\x20the\x20build\x20served\x20'+_0x583eb2[_0x185bcf(0x15a)]+'\x20script(s)\x20but\x20no\x20\x22scan\x22\x20script\x20—\x20no\x20scans\x20can\x20be\x20armed\x20for\x20this\x20run.'),null;const _0x261fc5=_0x3fd798[_0x185bcf(0x150)](mergeCommands,_0x2768bc);if(!_0x261fc5[_0x185bcf(0x15a)])return logger[_0x185bcf(0x155)](_0x3fd798[_0x185bcf(0x14d)]),null;return logger['info'](_0x185bcf(0x142)+_0x261fc5['length']+'\x20command(s)\x20to\x20wrap,\x20source='+(_0x2768bc['length']?_0x3fd798[_0x185bcf(0x13e)]:_0x3fd798[_0x185bcf(0x13c)])+'.'),{'scanScript':_0x217a24['command'],'thBuildUuid':process[_0x185bcf(0x11e)][_0x185bcf(0x13f)]||'','thJwtToken':process['env'][_0x185bcf(0x12b)]||'','authHeader':_0x3fd798[_0x185bcf(0x149)](capabilityValue,_0x5173be,_0x3fd798['DFTZb'])||process['env'][_0x185bcf(0x14e)]||'','commands':_0x261fc5,'probe':helper[_0x185bcf(0x138)](process[_0x185bcf(0x11e)][PROBE_ENV])};},arm=(_0x291f83,_0x53f03a)=>{const _0x400c50=a11_0x75d9f4,_0x14f74f={'ejfyK':function(_0x4a2387,_0x1f06d6){return _0x4a2387(_0x1f06d6);},'uxYfe':'hub-cloud.browserstack.com','qPRJi':_0x400c50(0x12c)};try{const _0xd54d83=_0x14f74f[_0x400c50(0x13a)](resolveArmingData,_0x291f83);if(!_0xd54d83)return null;if(_0x53f03a){_0x53f03a[_0x400c50(0x15e)]=!![];const _0xcb81e1={};_0xcb81e1[_0x400c50(0x130)]=_0xd54d83[_0x400c50(0x10b)],_0x53f03a['accessibilityOptions']=Object[_0x400c50(0x156)]({},_0x53f03a['accessibilityOptions'],_0xcb81e1);}const _0x5a4424={};_0x5a4424[_0x400c50(0x115)]=process[_0x400c50(0x11e)][HUB_HOST_ENV]||_0x14f74f[_0x400c50(0x144)],_0x5a4424[_0x400c50(0x131)]=_0x53f03a&&_0x53f03a[_0x400c50(0x160)]||process[_0x400c50(0x11e)]['BROWSERSTACK_USERNAME']||'',_0x5a4424[_0x400c50(0x12a)]=_0x53f03a&&_0x53f03a[_0x400c50(0x151)]||process[_0x400c50(0x11e)][_0x400c50(0x134)]||'',_0xd54d83[_0x400c50(0x11d)]=_0x5a4424;const _0x598601=path[_0x400c50(0x145)](os[_0x400c50(0x143)](),_0x400c50(0x12d)+process['pid']+_0x400c50(0x112)),_0x28edab={};return _0x28edab[_0x400c50(0x113)]=0x180,fs[_0x400c50(0x140)](_0x598601,JSON[_0x400c50(0x157)](_0xd54d83),_0x28edab),process[_0x400c50(0x11e)][CONFIG_ENV]=_0x598601,!_0xd54d83[_0x400c50(0x118)]&&logger[_0x400c50(0x155)](_0x14f74f[_0x400c50(0x127)]),_0x598601;}catch(_0x447cf8){return logger[_0x400c50(0x155)]('App\x20Accessibility\x20could\x20not\x20be\x20armed\x20for\x20this\x20run\x20('+(_0x447cf8&&_0x447cf8[_0x400c50(0x11b)])+');\x20the\x20run\x20continues\x20without\x20scans.'),null;}},a11_0x1aac7a={};a11_0x1aac7a[a11_0x75d9f4(0x14b)]=arm,a11_0x1aac7a[a11_0x75d9f4(0x124)]=resolveArmingData,a11_0x1aac7a[a11_0x75d9f4(0x15b)]=CONFIG_ENV,a11_0x1aac7a[a11_0x75d9f4(0x116)]=PROBE_ENV,module[a11_0x75d9f4(0x137)]=a11_0x1aac7a;
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a12_0x12e7a3=a12_0x1f79;(function(_0x57b3ee,_0x224c1c){const _0x5e955e=a12_0x1f79,_0x1df1b6=_0x57b3ee();while(!![]){try{const _0x501b42=-parseInt(_0x5e955e(0x173))/0x1*(-parseInt(_0x5e955e(0x158))/0x2)+-parseInt(_0x5e955e(0x20b))/0x3*(parseInt(_0x5e955e(0x201))/0x4)+parseInt(_0x5e955e(0x16d))/0x5*(parseInt(_0x5e955e(0x15a))/0x6)+-parseInt(_0x5e955e(0x250))/0x7+-parseInt(_0x5e955e(0x1c4))/0x8*(-parseInt(_0x5e955e(0x1f6))/0x9)+parseInt(_0x5e955e(0x1cf))/0xa+-parseInt(_0x5e955e(0x1da))/0xb;if(_0x501b42===_0x224c1c)break;else _0x1df1b6['push'](_0x1df1b6['shift']());}catch(_0x3e6c81){_0x1df1b6['push'](_0x1df1b6['shift']());}}}(a12_0x45b8,0x2947f));const {spawn}=require('child_process'),fs=require('fs'),os=require('os'),path=require(a12_0x12e7a3(0x269)),logger=require(a12_0x12e7a3(0x1f9))[a12_0x12e7a3(0x15e)],helper=require(a12_0x12e7a3(0x18e)),constants=require(a12_0x12e7a3(0x1d4)),modifyDetoxConf=require('./modifyDetoxConf'),detoxA11y=require('./a11ySetup'),traEmitter=require(a12_0x12e7a3(0x1b9)),utilities=require(a12_0x12e7a3(0x244)),testOpsHelper=require('../../helpers/test-observability/utils'),TestHubHandler=require('../../helpers/testhub/testhubHandler'),BrowserstackCLI=require(a12_0x12e7a3(0x1e1)),CLIUtils=require(a12_0x12e7a3(0x236)),GrpcClient=require(a12_0x12e7a3(0x1eb)),detoxBinary=()=>/^win/[a12_0x12e7a3(0x22f)](process[a12_0x12e7a3(0x231)])?a12_0x12e7a3(0x26c):a12_0x12e7a3(0x1dc);async function uploadDetoxAppsIfLocal(_0x409f12){const _0x5c0c98=a12_0x12e7a3,_0x4b553d={'wqxkZ':'https://api-cloud.browserstack.com','vIahO':_0x5c0c98(0x22a),'EEEJe':'app-automate/detox/v2/android/app','AwlzB':_0x5c0c98(0x288),'hSqjT':_0x5c0c98(0x1c2),'lSsPf':_0x5c0c98(0x19d),'uHojX':_0x5c0c98(0x192),'iXpnK':function(_0xe9e844,_0x2e26b0){return _0xe9e844(_0x2e26b0);},'fUTQJ':_0x5c0c98(0x1fc),'jojcq':'POST'},_0x3bd72d=_0x409f12[_0x5c0c98(0x1d5)]&&_0x409f12[_0x5c0c98(0x1d5)]['appAutomate']&&_0x409f12[_0x5c0c98(0x1d5)]['appAutomate'][_0x5c0c98(0x235)]||constants[_0x5c0c98(0x241)]||_0x4b553d[_0x5c0c98(0x1cc)],_0x1c34a={};_0x1c34a['key']=_0x4b553d[_0x5c0c98(0x155)],_0x1c34a[_0x5c0c98(0x1c9)]=_0x4b553d[_0x5c0c98(0x1b5)],_0x1c34a[_0x5c0c98(0x146)]=_0x4b553d[_0x5c0c98(0x21c)];const _0x3a7da2={};_0x3a7da2[_0x5c0c98(0x1ea)]=_0x4b553d[_0x5c0c98(0x22c)],_0x3a7da2[_0x5c0c98(0x1c9)]=_0x4b553d[_0x5c0c98(0x271)],_0x3a7da2[_0x5c0c98(0x146)]=_0x4b553d[_0x5c0c98(0x183)];const _0x2b147d=[_0x1c34a,_0x3a7da2];for(const {key:_0xf0b8b0,endpoint:_0x593fdd,responseKey:_0x2aab4d}of _0x2b147d){const _0x2ee6e0=_0x409f12[_0xf0b8b0];if(!_0x2ee6e0||_0x4b553d[_0x5c0c98(0x1b8)](String,_0x2ee6e0)[_0x5c0c98(0x159)](_0x4b553d['fUTQJ']))continue;const _0xdf6ed9=path[_0x5c0c98(0x26d)](_0x4b553d['iXpnK'](String,_0x2ee6e0));if(!fs['existsSync'](_0xdf6ed9))throw new Error('[detox]\x20'+_0xf0b8b0+_0x5c0c98(0x286)+_0x2ee6e0);logger[_0x5c0c98(0x219)](_0x5c0c98(0x204)+_0xf0b8b0+'\x20'+_0xdf6ed9+_0x5c0c98(0x267));const _0x295b8b={'formData':{'file':fs[_0x5c0c98(0x148)](_0xdf6ed9)}},_0x256548=await helper['nodeRequest'](_0x4b553d['jojcq'],_0x593fdd,_0x295b8b,_0x409f12,_0x3bd72d),_0xec7999=_0x256548&&_0x256548['data']&&_0x256548['data'][_0x2aab4d];if(!_0xec7999)throw new Error(_0x5c0c98(0x197)+_0xf0b8b0+_0x5c0c98(0x23e)+_0x2aab4d+':\x20'+JSON[_0x5c0c98(0x274)](_0x256548&&_0x256548[_0x5c0c98(0x24d)]));_0x409f12[_0xf0b8b0]=_0xec7999,logger[_0x5c0c98(0x219)](_0x5c0c98(0x1fa)+_0xf0b8b0+'\x20uploaded:\x20'+_0xec7999);}}function collectDetoxSessionVerdicts(_0x3a6186,_0x3f9fae,_0x982163){const _0x306561=a12_0x12e7a3,_0x33ca91={};_0x33ca91[_0x306561(0x13e)]=function(_0x2b03ad,_0x1689c3){return _0x2b03ad===_0x1689c3;},_0x33ca91[_0x306561(0x21e)]=function(_0xbf4f82,_0x317589){return _0xbf4f82+_0x317589;},_0x33ca91[_0x306561(0x1d6)]=function(_0x57da8e,_0x3949a7){return _0x57da8e||_0x3949a7;},_0x33ca91[_0x306561(0x279)]=function(_0x265042,_0x5b1144){return _0x265042===_0x5b1144;},_0x33ca91[_0x306561(0x21d)]=_0x306561(0x144),_0x33ca91[_0x306561(0x1d1)]=function(_0x2ba369,_0x27f31a){return _0x2ba369===_0x27f31a;},_0x33ca91[_0x306561(0x257)]='passed',_0x33ca91[_0x306561(0x24f)]='utf8',_0x33ca91[_0x306561(0x255)]=function(_0xa78022,_0x229e8b){return _0xa78022===_0x229e8b;},_0x33ca91[_0x306561(0x13b)]='Detox\x20suite\x20passed';const _0x1f985b=_0x33ca91,_0x4a369b=new Map();try{_0x3a6186&&fs[_0x306561(0x169)](_0x3a6186)&&fs['readFileSync'](_0x3a6186,_0x1f985b[_0x306561(0x24f)])[_0x306561(0x151)]('\x0a')[_0x306561(0x13d)](_0x39930f=>{const _0x41c1a3=_0x306561,_0xcaebbe=_0x39930f['trim']();if(!_0xcaebbe)return;const _0x307bc7=_0xcaebbe[_0x41c1a3(0x252)]('\x09'),_0x2b0bd6=_0x1f985b[_0x41c1a3(0x13e)](_0x307bc7,-0x1)?_0xcaebbe:_0xcaebbe[_0x41c1a3(0x1b0)](0x0,_0x307bc7),_0x8aa70=_0x1f985b[_0x41c1a3(0x13e)](_0x307bc7,-0x1)?'':_0xcaebbe[_0x41c1a3(0x1b0)](_0x1f985b[_0x41c1a3(0x21e)](_0x307bc7,0x1));if(!_0x2b0bd6)return;(!_0x4a369b[_0x41c1a3(0x264)](_0x2b0bd6)||_0x8aa70&&!_0x4a369b[_0x41c1a3(0x170)](_0x2b0bd6))&&_0x4a369b[_0x41c1a3(0x1ad)](_0x2b0bd6,_0x1f985b[_0x41c1a3(0x1d6)](_0x8aa70,''));});}catch(_0x5c11f6){logger[_0x306561(0x232)](_0x306561(0x1b3)+(_0x5c11f6&&_0x5c11f6[_0x306561(0x12b)]));}if(!_0x4a369b[_0x306561(0x228)])return[];const _0x3fa238=new Map();try{_0x3f9fae&&fs[_0x306561(0x169)](_0x3f9fae)&&fs[_0x306561(0x160)](_0x3f9fae,_0x1f985b['LOnOz'])[_0x306561(0x151)]('\x0a')[_0x306561(0x13d)](_0xcd4d29=>{const _0x32e35f=_0x306561,_0x5e3da2=_0xcd4d29[_0x32e35f(0x1d2)]();if(!_0x5e3da2)return;let _0x5c6670;try{_0x5c6670=JSON[_0x32e35f(0x1f2)](_0x5e3da2);}catch(_0x13fef5){return;}if(!_0x5c6670||!_0x5c6670['path'])return;const _0xf8acc6=_0x3fa238[_0x32e35f(0x170)](_0x5c6670[_0x32e35f(0x269)]),_0x22f8b0=_0xf8acc6&&_0x1f985b[_0x32e35f(0x279)](_0xf8acc6[_0x32e35f(0x218)],_0x1f985b[_0x32e35f(0x21d)])||_0x1f985b[_0x32e35f(0x1d1)](_0x5c6670[_0x32e35f(0x218)],_0x1f985b[_0x32e35f(0x21d)])?_0x1f985b[_0x32e35f(0x21d)]:_0x1f985b[_0x32e35f(0x257)];_0x3fa238[_0x32e35f(0x1ad)](_0x5c6670[_0x32e35f(0x269)],{'status':_0x22f8b0,'name':_0x5c6670[_0x32e35f(0x275)]||_0xf8acc6&&_0xf8acc6['name']});});}catch(_0x17fafd){logger['debug']('Could\x20not\x20read\x20detox\x20test\x20results:\x20'+(_0x17fafd&&_0x17fafd['message']));}const _0x54c757=[];for(const [_0x5e2fa3,_0x1c13e7]of _0x4a369b){const _0x47f2b2=_0x3fa238[_0x306561(0x170)](_0x1c13e7),_0x27e15f=_0x47f2b2?_0x47f2b2[_0x306561(0x218)]:_0x1f985b[_0x306561(0x13e)](_0x982163,0x0)?_0x1f985b['MlWQm']:_0x1f985b[_0x306561(0x21d)];_0x54c757[_0x306561(0x1cb)]({'sessionId':_0x5e2fa3,'status':_0x27e15f,'reason':_0x1f985b[_0x306561(0x255)](_0x27e15f,_0x1f985b['MlWQm'])?_0x1f985b['kNpWH']:_0x306561(0x1b4)+_0x982163+')','name':_0x47f2b2&&_0x47f2b2[_0x306561(0x275)]||'','specPath':_0x1c13e7});}return _0x54c757;}async function markDetoxSessionStatuses(_0x496a08,_0x173a5b,_0x38e4ab,_0x37c86b){const _0x558b39=a12_0x12e7a3,_0x2d1fbc={'PSbUK':function(_0x32a2b0,_0xc15f2a,_0x5a9aaa,_0x4c16f9){return _0x32a2b0(_0xc15f2a,_0x5a9aaa,_0x4c16f9);},'rBiYs':_0x558b39(0x273),'lhums':function(_0x42acba,_0x539da5){return _0x42acba&&_0x539da5;},'mcuUv':_0x558b39(0x1fe)},_0x5eaf1b=_0x2d1fbc[_0x558b39(0x221)](collectDetoxSessionVerdicts,_0x496a08,_0x173a5b,_0x38e4ab);if(!_0x5eaf1b['length'])return;const _0x2a292e=CLIUtils[_0x558b39(0x266)](_0x37c86b),_0x3c8c4e=CLIUtils[_0x558b39(0x209)](_0x37c86b),_0x45c8eb=_0x37c86b[_0x558b39(0x1d5)]&&_0x37c86b[_0x558b39(0x1d5)][_0x558b39(0x263)]&&_0x37c86b[_0x558b39(0x1d5)][_0x558b39(0x263)][_0x558b39(0x235)]||constants['APP_UPLOAD_URL']||_0x2d1fbc[_0x558b39(0x122)];for(const {sessionId:_0x5c5ff0,status:_0x1c8170,reason:_0x3fe028,name:_0x5278dd}of _0x5eaf1b){const _0x10f0dd={};!_0x2a292e&&(_0x10f0dd[_0x558b39(0x218)]=_0x1c8170,_0x10f0dd[_0x558b39(0x1b2)]=_0x3fe028);_0x2d1fbc['lhums'](!_0x3c8c4e,_0x5278dd)&&(_0x10f0dd[_0x558b39(0x275)]=_0x5278dd);if(!Object['keys'](_0x10f0dd)[_0x558b39(0x190)])continue;try{const _0x2a8c7b={};_0x2a8c7b[_0x558b39(0x178)]=_0x10f0dd,await helper['nodeRequest'](_0x2d1fbc[_0x558b39(0x21f)],_0x558b39(0x1c0)+_0x5c5ff0+_0x558b39(0x18c),_0x2a8c7b,_0x37c86b,_0x45c8eb),logger['info'](_0x558b39(0x277)+_0x5c5ff0+(_0x10f0dd[_0x558b39(0x218)]?'\x20as\x20'+_0x10f0dd[_0x558b39(0x218)]:'')+(_0x10f0dd[_0x558b39(0x275)]?_0x558b39(0x27e)+_0x10f0dd['name']+')':''));}catch(_0x27c94e){logger[_0x558b39(0x232)](_0x558b39(0x1db)+_0x5c5ff0+':\x20'+(_0x27c94e&&_0x27c94e['message']));}}}const getSubcommand=_0x56672c=>_0x56672c[0x1],SDK_ONLY_ARG_MATCHERS=['browserstackconfigfile','browserstack.config'],isSdkOnlyArg=_0x117dd0=>{const _0x41c8c0=a12_0x12e7a3,_0xbecc2f={'VQwMs':function(_0x2fc094,_0x1e03ff){return _0x2fc094(_0x1e03ff);}},_0x1463c6=_0xbecc2f[_0x41c8c0(0x203)](String,_0x117dd0)[_0x41c8c0(0x175)]();return _0x1463c6[_0x41c8c0(0x159)]('-')&&SDK_ONLY_ARG_MATCHERS[_0x41c8c0(0x224)](_0x29cd56=>_0x1463c6[_0x41c8c0(0x195)](_0x29cd56));},stripSdkOnlyArgs=_0x5478a8=>{const _0x2d2e6c=a12_0x12e7a3,_0x53b7fa={'yNeAR':function(_0x157c9b,_0x25ce7b){return _0x157c9b<_0x25ce7b;},'lTJjY':function(_0x394b8e,_0x1066f4){return _0x394b8e(_0x1066f4);},'BtvYU':function(_0x1e8405,_0x4cbf45){return _0x1e8405+_0x4cbf45;},'Dwavh':function(_0x40a129,_0x1eb958){return _0x40a129(_0x1eb958);}},_0x6a7c86=[];for(let _0x5087b0=0x0;_0x53b7fa[_0x2d2e6c(0x167)](_0x5087b0,_0x5478a8['length']);_0x5087b0++){if(!_0x53b7fa[_0x2d2e6c(0x187)](isSdkOnlyArg,_0x5478a8[_0x5087b0])){_0x6a7c86[_0x2d2e6c(0x1cb)](_0x5478a8[_0x5087b0]);continue;}const _0x26e48f=_0x53b7fa[_0x2d2e6c(0x187)](String,_0x5478a8[_0x5087b0])[_0x2d2e6c(0x195)]('=')||_0x53b7fa[_0x2d2e6c(0x187)](String,_0x5478a8[_0x5087b0])[_0x2d2e6c(0x195)](':');!_0x26e48f&&_0x53b7fa['yNeAR'](_0x53b7fa[_0x2d2e6c(0x20c)](_0x5087b0,0x1),_0x5478a8['length'])&&!_0x53b7fa[_0x2d2e6c(0x133)](String,_0x5478a8[_0x53b7fa[_0x2d2e6c(0x20c)](_0x5087b0,0x1)])[_0x2d2e6c(0x159)]('-')&&_0x5087b0++;}return _0x6a7c86;},detoxArgs=_0x47d2b5=>stripSdkOnlyArgs(_0x47d2b5[a12_0x12e7a3(0x1b0)](0x1)),withoutCredentials=_0x5641d4=>{const _0x2fff31=a12_0x12e7a3,_0x466ef7=Object[_0x2fff31(0x233)]({},_0x5641d4);return constants[_0x2fff31(0x210)][_0x2fff31(0x14d)][_0x2fff31(0x13d)](_0x148551=>delete _0x466ef7[_0x148551]),_0x466ef7[_0x2fff31(0x237)]&&(_0x466ef7[_0x2fff31(0x237)]=Object[_0x2fff31(0x233)]({},_0x466ef7[_0x2fff31(0x237)]),constants[_0x2fff31(0x210)][_0x2fff31(0x237)][_0x2fff31(0x13d)](_0x5ee19f=>delete _0x466ef7[_0x2fff31(0x237)][_0x5ee19f])),_0x466ef7[_0x2fff31(0x143)]&&(_0x466ef7['localOptions']=Object[_0x2fff31(0x233)]({},_0x466ef7[_0x2fff31(0x143)]),constants[_0x2fff31(0x210)][_0x2fff31(0x237)]['forEach'](_0x5de86d=>delete _0x466ef7[_0x2fff31(0x143)][_0x5de86d])),_0x466ef7;},hasUserSelectedConfig=_0x312a16=>(_0x312a16||[])[a12_0x12e7a3(0x224)](_0x1c32f1=>{const _0x15b03b=a12_0x12e7a3,_0x3085f8={'yLgPl':function(_0x5e0247,_0x15d06c){return _0x5e0247(_0x15d06c);},'auzCy':function(_0x2cb107,_0x298168){return _0x2cb107===_0x298168;},'vuLac':function(_0xe33771,_0x2177a3){return _0xe33771===_0x2177a3;},'syVNt':'--configuration','UcNZT':_0x15b03b(0x16a),'qqcTq':_0x15b03b(0x152)},_0x1fb474=_0x3085f8[_0x15b03b(0x1a9)](String,_0x1c32f1);return _0x3085f8['auzCy'](_0x1fb474,'-c')||_0x3085f8[_0x15b03b(0x208)](_0x1fb474,_0x3085f8[_0x15b03b(0x1c6)])||_0x1fb474['startsWith'](_0x3085f8[_0x15b03b(0x278)])||_0x1fb474[_0x15b03b(0x159)](_0x3085f8[_0x15b03b(0x211)]);}),shardArgFor=(_0x452dee,_0x1015cd,_0x46af8d=process[a12_0x12e7a3(0x253)])=>{const _0x59d1af=a12_0x12e7a3;if(!_0x452dee)return null;if(helper[_0x59d1af(0x1de)](_0x46af8d[_0x59d1af(0x12d)]))return null;if((_0x1015cd||[])[_0x59d1af(0x224)](_0x1a8f9d=>/^(-R|--retries)(=|$)/[_0x59d1af(0x22f)](String(_0x1a8f9d))))return null;return _0x59d1af(0x1a4)+_0x452dee;},PATH_VALUE_FLAGS=new Set(['-C','--config-path','-c',a12_0x12e7a3(0x20e),'-o','--runner-config','-a',a12_0x12e7a3(0x156),a12_0x12e7a3(0x131),a12_0x12e7a3(0x1a2),a12_0x12e7a3(0x212),a12_0x12e7a3(0x1e6),a12_0x12e7a3(0x1c1),a12_0x12e7a3(0x179),a12_0x12e7a3(0x1e7),a12_0x12e7a3(0x136),a12_0x12e7a3(0x14e),a12_0x12e7a3(0x17a),'--resolver',a12_0x12e7a3(0x281),'--testResultsProcessor',a12_0x12e7a3(0x1bc),a12_0x12e7a3(0x1cd),a12_0x12e7a3(0x214),'--outputFile',a12_0x12e7a3(0x1b7),'--testRegex',a12_0x12e7a3(0x138),a12_0x12e7a3(0x15d),a12_0x12e7a3(0x1f8),a12_0x12e7a3(0x1e3),'-t',a12_0x12e7a3(0x168),a12_0x12e7a3(0x230),'--device-boot-args']),SPEC_EXT=/\.[jt]sx?$/,partitionSpecArgs=_0x22d669=>{const _0x55cac8=a12_0x12e7a3,_0x5916e8={'mBTZG':function(_0x3ffb4b,_0x246443){return _0x3ffb4b<_0x246443;},'fDKIi':function(_0x52b7e1,_0xb2ad9b){return _0x52b7e1(_0xb2ad9b);},'xxqoz':function(_0x461440,_0x2fc02){return _0x461440<_0x2fc02;},'OEARI':function(_0xcf0dee,_0x25e8cb){return _0xcf0dee+_0x25e8cb;},'Tjolp':function(_0x578555,_0x83fefb){return _0x578555(_0x83fefb);},'FBfmc':function(_0x185baf,_0x4bc29f){return _0x185baf+_0x4bc29f;},'SYGGZ':function(_0x2b6335,_0x56d34){return _0x2b6335+_0x56d34;}},_0x4943ea=[],_0x179b0d=[],_0x1ac4db=_0x22d669||[];for(let _0x5d8bf6=0x0;_0x5916e8[_0x55cac8(0x207)](_0x5d8bf6,_0x1ac4db[_0x55cac8(0x190)]);_0x5d8bf6++){const _0x47e095=_0x5916e8[_0x55cac8(0x24e)](String,_0x1ac4db[_0x5d8bf6]);if(_0x47e095[_0x55cac8(0x159)]('-')){_0x179b0d[_0x55cac8(0x1cb)](_0x1ac4db[_0x5d8bf6]);PATH_VALUE_FLAGS[_0x55cac8(0x264)](_0x47e095)&&_0x5916e8['xxqoz'](_0x5916e8['OEARI'](_0x5d8bf6,0x1),_0x1ac4db[_0x55cac8(0x190)])&&!_0x5916e8[_0x55cac8(0x12c)](String,_0x1ac4db[_0x5916e8[_0x55cac8(0x12f)](_0x5d8bf6,0x1)])[_0x55cac8(0x159)]('-')&&(_0x179b0d[_0x55cac8(0x1cb)](_0x1ac4db[_0x5916e8[_0x55cac8(0x19a)](_0x5d8bf6,0x1)]),_0x5d8bf6++);continue;}SPEC_EXT['test'](_0x47e095)?_0x4943ea['push'](_0x1ac4db[_0x5d8bf6]):_0x179b0d[_0x55cac8(0x1cb)](_0x1ac4db[_0x5d8bf6]);}const _0x3a83b3={};return _0x3a83b3[_0x55cac8(0x287)]=_0x4943ea,_0x3a83b3[_0x55cac8(0x130)]=_0x179b0d,_0x3a83b3;},planSlots=({configKeys:_0x47658d,parallelsPerPlatform:_0x3ba6a0,specArgs:_0x43d0f2})=>{const _0x30182e=a12_0x12e7a3,_0x11b909={'CghWw':function(_0x10e78f,_0x53414f,_0x1af252){return _0x10e78f(_0x53414f,_0x1af252);}},_0x3b63b4=_0x47658d&&_0x47658d[_0x30182e(0x190)]?_0x47658d:[null],_0x575ff8=_0x43d0f2||[],_0xe52cd9=Math[_0x30182e(0x123)](0x1,_0x11b909['CghWw'](parseInt,_0x3ba6a0,0xa)||0x1),_0x24e7c=[];return _0x3b63b4['forEach'](_0x3af364=>{const _0x3b573a=_0x30182e,_0x5868a9=_0x575ff8[_0x3b573a(0x190)]?Math[_0x3b573a(0x123)](0x1,Math[_0x3b573a(0x196)](_0xe52cd9,_0x575ff8[_0x3b573a(0x190)])):_0xe52cd9,_0x43f47a={};_0x43f47a['length']=_0x5868a9;const _0x350aec=Array[_0x3b573a(0x1ef)](_0x43f47a,()=>[]);_0x575ff8['forEach']((_0x359218,_0x641976)=>_0x350aec[_0x641976%_0x5868a9][_0x3b573a(0x1cb)](_0x359218)),_0x350aec[_0x3b573a(0x13d)]((_0x20d372,_0x1b83f8)=>_0x24e7c[_0x3b573a(0x1cb)]({'configKey':_0x3af364,'specs':_0x20d372,'shard':!_0x575ff8[_0x3b573a(0x190)]&&_0x5868a9>0x1?_0x1b83f8+0x1+'/'+_0x5868a9:null}));}),_0x24e7c;};function assertLocalTunnelBound(_0x4c523b,_0xef43c4){const _0x453bef=a12_0x12e7a3,_0x424d5c={};_0x424d5c[_0x453bef(0x27d)]='2|4|0|1|3',_0x424d5c['hoANW']=function(_0x40d6bc,_0x369ddb){return _0x40d6bc!==_0x369ddb;},_0x424d5c[_0x453bef(0x229)]=_0x453bef(0x193),_0x424d5c[_0x453bef(0x25b)]=function(_0xa5b7c6,_0x532e10){return _0xa5b7c6+_0x532e10;},_0x424d5c['LcVVe']=_0x453bef(0x26b),_0x424d5c[_0x453bef(0x1fb)]=_0x453bef(0x247),_0x424d5c[_0x453bef(0x1e0)]=_0x453bef(0x181),_0x424d5c[_0x453bef(0x17b)]=function(_0x525ca7,_0x471286){return _0x525ca7+_0x471286;},_0x424d5c[_0x453bef(0x242)]=function(_0x27a3d2,_0x2818f7){return _0x27a3d2+_0x2818f7;},_0x424d5c[_0x453bef(0x243)]=_0x453bef(0x163),_0x424d5c[_0x453bef(0x154)]='so\x20the\x20app\x20under\x20test\x20would\x20not\x20be\x20able\x20to\x20reach\x20your\x20local\x20host.\x20Refusing\x20to\x20run\x20the\x20suite\x20',_0x424d5c[_0x453bef(0x205)]='because\x20the\x20results\x20would\x20not\x20reflect\x20your\x20local\x20environment.\x20The\x20tunnel\x20failed\x20to\x20start\x20—\x20',_0x424d5c['sCrvL']=_0x453bef(0x157),_0x424d5c[_0x453bef(0x246)]=_0x453bef(0x188),_0x424d5c['BNneF']=function(_0xedfe48,_0x2b4b5a){return _0xedfe48+_0x2b4b5a;},_0x424d5c[_0x453bef(0x17f)]='browserstackLocal\x20is\x20enabled\x20but\x20the\x20binary\x20did\x20not\x20build\x20the\x20Detox\x20configuration,\x20',_0x424d5c[_0x453bef(0x222)]=_0x453bef(0x234);const _0x4f6a5e=_0x424d5c,_0x1c8b84=_0x4f6a5e['NWsHH']['split']('|');let _0x158d88=0x0;while(!![]){switch(_0x1c8b84[_0x158d88++]){case'0':if(_0x4f6a5e[_0x453bef(0x139)](typeof _0xef43c4[_0x453bef(0x1be)],_0x4f6a5e[_0x453bef(0x229)])){logger[_0x453bef(0x174)](_0x4f6a5e[_0x453bef(0x25b)](_0x4f6a5e[_0x453bef(0x25b)](_0x4f6a5e[_0x453bef(0x161)],_0x4f6a5e[_0x453bef(0x1fb)]),_0x4f6a5e[_0x453bef(0x1e0)]));return;}continue;case'1':if(_0xef43c4[_0x453bef(0x1be)])return;continue;case'2':if(!helper[_0x453bef(0x1f1)](_0x4c523b))return;continue;case'3':throw new Error(_0x4f6a5e[_0x453bef(0x25b)](_0x4f6a5e['GNQlu'](_0x4f6a5e[_0x453bef(0x25b)](_0x4f6a5e[_0x453bef(0x242)](_0x4f6a5e[_0x453bef(0x243)],_0x4f6a5e[_0x453bef(0x154)]),_0x4f6a5e['hZtbf']),_0x4f6a5e[_0x453bef(0x124)]),_0x4f6a5e['AbMbN']));continue;case'4':if(!_0xef43c4){logger[_0x453bef(0x174)](_0x4f6a5e[_0x453bef(0x25b)](_0x4f6a5e[_0x453bef(0x25f)](_0x4f6a5e[_0x453bef(0x17f)],_0x4f6a5e[_0x453bef(0x222)]),_0x4f6a5e[_0x453bef(0x1e0)]));return;}continue;}break;}}function a12_0x45b8(){const _0x3231e0=['17326HEbQMc','startsWith','1750362eMYeop','BROWSERSTACK_TEST_OBSERVABILITY_YML','inherit','--testPathIgnorePatterns','winstonLogger','bstack-detox-results-','readFileSync','LcVVe','\x20exceeds\x20the\x20','browserstackLocal\x20is\x20enabled\x20but\x20the\x20BrowserStack\x20Local\x20tunnel\x20is\x20not\x20bound\x20to\x20this\x20Detox\x20run,\x20','cwPgM','vSzAB','YrQxR','yNeAR','--app-launch-args','existsSync','-c=','getPackageVersion','ensureScreenshotDir','5iVCTYr','kFIla','LnhHX','get','BROWSERSTACK_SETUP_CONFIG_PATH','resultsFile','1obsaxk','warn','toLowerCase','ELybh','configurations','json','--setupFilesAfterEnv','--transform','GNQlu','wksAu','DtJZz','writeFileSync','quKyV','unlinkSync','reach\x20your\x20local\x20host,\x20check\x20that\x20the\x20SDK\x20binary\x20started\x20BrowserStackLocal.','LQIEE','uHojX','.txt','binSessionId','yjzpA','lTJjY','same\x20localIdentifier\x20and\x20an\x20invalid\x20access\x20key\x20are\x20the\x20usual\x20causes).','BtSAn','slot(s)\x20(','concat','.json','getInstance','../../helpers/helper','Could\x20not\x20print\x20the\x20TestHub\x20build\x20link:\x20','length','FMmKT','app_client_url','boolean',');\x20continuing\x20without\x20test\x20reporting.','includes','min','[detox]\x20','iAbYU','markDetoxSessionStatuses','SYGGZ','hjDwo','screenshotDirFor','app-automate/detox/v2/android/app-client','bstack-detox-shots-','stop','parallelsPerPlatform=','IsfNs','--reporters','--require\x20','--shard=','Could\x20not\x20create\x20the\x20detox\x20screenshot\x20dir:\x20','modifyConfig','findUserDetoxConfig','cliConfig','yLgPl','QmJNg','rmdirSync','--config-path','set','join','No\x20buildName\x20configured;\x20using\x20\x22','slice','VnucZ','reason','Could\x20not\x20read\x20captured\x20detox\x20session\x20ids:\x20','Detox\x20suite\x20failed\x20(exit\x20code\x20','EEEJe','QJpOd','--testMatch','iXpnK','./traEmitter','configKey',').\x20Using\x20the\x20SDK\x20config.','--testSequencer','tmpdir','localBound','Using\x20binary-built\x20Detox\x20configuration\x20(','app-automate/sessions/','--setupFiles','appClient','SIGTERM','8ORKloU','\x20but\x20this\x20run\x20spawns\x20','syVNt','Generated\x20BrowserStack\x20Detox\x20config\x20at\x20','finalExecution','endpoint','BROWSERSTACK_FRAMEWORK','push','wqxkZ','--coverageDirectory','Error\x20stopping\x20BrowserStack\x20CLI:\x20','1374570ojvxsa','basename','FREFt','trim','BROWSERSTACK_CLI_BIN_SESSION_ID','../utils/constants','apis','vdIWK','ARQdK','BROWSERSTACK_BUILD_NAME','abortWithShutdown','3158353Weofbs','Could\x20not\x20mark\x20session\x20','detox','cwd','isFalse','close','VXBKa','../v2/browserstackCLI','ajzHY','--testNamePattern','user','clientDetoxVersion','--testEnvironment','--globalSetup','bootstrap','browserstackSetupConfig.json','key','../v2/grpcClient','emitTraEvents','mkdirSync','hJDBf','from','bstack-detox-sessions-','getLocalConfig','parse','PfSoz','UzTyG','collectScreenshotPaths','1322154gesmyY','../../detox-driver/login-timeout-preload','--modulePathIgnorePatterns','../../helpers/logger','Detox\x20','LLNNj','bs://','qKNNm','PUT','\x20platform(s)\x20x\x20parallelsPerPlatform=','FWqIW','4008VatPYN','DetoxMarkSessions\x20RPC\x20unavailable\x20(','VQwMs','Uploading\x20detox\x20','hZtbf','\x20(config\x20','mBTZG','vuLac','shouldSkipSessionName','DetoxConfig\x20RPC\x20returned\x20no\x20configurations;\x20using\x20the\x20SDK-local\x20capability\x20builder.','129QKabaX','BtvYU','config','--configuration','SIGINT','REDACTED_KEYS','qqcTq','--rootDir','sessionIdsFile','--cacheDirectory','enxyJ','.jsonl','pKRoj','status','info','setFrameworkDetail','observability','AwlzB','LMRDj','XyDMG','mcuUv','pid','PSbUK','depBI','stripSdkOnlyArgs','some','aNCXq','recursive','../../helpers/testhub/utils','size','RNNfh','app','withoutCredentials','hSqjT','DsHOY','registerCredentialArtifactCleanup','test','--device-launch-args','platform','debug','assign','so\x20the\x20SDK\x20cannot\x20confirm\x20the\x20Local\x20tunnel\x20is\x20bound\x20to\x20this\x20run.\x20If\x20the\x20app\x20under\x20test\x20cannot\x20','upload','../v2/cliUtils','browserStackLocalOptions','find','browserstackAutomation','initialize','filePath',');\x20dashboard\x20test\x20reporting\x20may\x20be\x20incomplete.',')\x20exited\x20with\x20code\x20','\x20upload\x20returned\x20no\x20','BckWU',');\x20using\x20the\x20SDK-local\x20capability\x20builder.','APP_UPLOAD_URL','OwuNJ','NyysM','../../helpers/utilities','maxWorkers','AbMbN','binding,\x20so\x20the\x20SDK\x20cannot\x20confirm\x20it\x20is\x20bound\x20to\x20this\x20run.\x20If\x20the\x20app\x20under\x20test\x20cannot\x20','arm','IVhpk','setBrowserstackConfig','platforms','JFrYf','data','fDKIi','LOnOz','598199tbNAVD','ouJzK','indexOf','env','once','ZIxDk','\x20session(s)).','MlWQm','Detox\x20TRA\x20emission\x20failed\x20(','buildName','planSlots','FSdkd','traEventsFile','UJTWB','exitCode','BNneF','\x20platform\x20configuration(s),\x20maxWorkers=','testObservability','RsZtk','appAutomate','has','sweepScreenshotDir','shouldSkipSessionStatus','\x20to\x20BrowserStack','fviPR','path','vgOMq','browserstackLocal\x20is\x20enabled\x20but\x20this\x20SDK\x20binary\x20does\x20not\x20report\x20the\x20Local\x20tunnel\x20','detox.cmd','resolve','all','configKeys','Binary\x20teardown\x20after\x20abort\x20failed:\x20','lSsPf','oDHGP','https://api-cloud.browserstack.com','stringify','name','values','Marked\x20BrowserStack\x20Detox\x20session\x20','UcNZT','QKmIA','shardArgFor','BROWSERSTACK_DETOX_KEEP_ARTIFACTS','konuB','NWsHH','\x20(name:\x20','collectDetoxSessionVerdicts','Gbfzp','--snapshotResolver','from\x20config',',\x20specs\x20','LKGIo','Generated\x20BrowserStack\x20jest\x20config\x20(with\x20session\x20reporter)\x20at\x20','\x20is\x20neither\x20a\x20bs://\x20id\x20nor\x20an\x20existing\x20file:\x20','specArgs','app_url','rBiYs','max','sCrvL','isTrue','map',');\x20marking\x20sessions\x20from\x20the\x20SDK.','Could\x20not\x20create\x20detox\x20capture\x20files:\x20','isCLIEnabled','BROWSERSTACK_CLIENT_DETOX_VERSION','message','Tjolp','BROWSERSTACK_DETOX_SHARD_SPECS','\x20spec\x20file(s)\x20given;\x20running\x20','FBfmc','nonSpecArgs','--config','partitionSpecArgs','Dwavh','NODE_OPTIONS','FRAMEWORKS','--globalTeardown','exit','--testPathPattern','hoANW','rofGw','kNpWH','Detox\x20TRA\x20verdict\x20enrichment\x20failed\x20for\x20slot\x20','forEach','ywKuZ','collectSlotTestData','exports','DETOX','Detox\x20sessions\x20marked\x20via\x20the\x20binary\x20(','localOptions','failed','cloudConfigurationKeys','responseKey','lSFTl','createReadStream','\x20shard\x20','serializeToYamlString','SvNhS','isUndefined','root','--moduleNameMapper','hasUserSelectedConfig','BROWSERSTACK_PRODUCT_MAP','split','--configuration=','reduce','SWxzD','vIahO','--artifacts-location','check\x20the\x20SDK\x20binary\x20log\x20for\x20\x22failed\x20to\x20start\x20BrowserStackLocal\x22\x20(a\x20stale\x20tunnel\x20holding\x20the\x20'];a12_0x45b8=function(){return _0x3231e0;};return a12_0x45b8();}function a12_0x1f79(_0x246f3c,_0xd8ec67){const _0x45b892=a12_0x45b8();return a12_0x1f79=function(_0x1f7999,_0xbfe645){_0x1f7999=_0x1f7999-0x122;let _0x119726=_0x45b892[_0x1f7999];return _0x119726;},a12_0x1f79(_0x246f3c,_0xd8ec67);}async function shutdownBinarySession(){const _0x125781=a12_0x12e7a3;try{await TestHubHandler[_0x125781(0x19f)]();}catch(_0x1f98c9){logger['debug']('TestHub\x20stop\x20failed:\x20'+(_0x1f98c9&&_0x1f98c9[_0x125781(0x12b)]));}const _0x354904=BrowserstackCLI[_0x125781(0x18d)]();if(_0x354904)try{await _0x354904['stop']();}catch(_0xd41bf8){logger[_0x125781(0x232)](_0x125781(0x1ce)+(_0xd41bf8&&_0xd41bf8['message']));}}const screenshotDirFor=(_0x4f1f8f=process[a12_0x12e7a3(0x220)])=>path[a12_0x12e7a3(0x1ae)](os[a12_0x12e7a3(0x1bd)](),a12_0x12e7a3(0x19e)+_0x4f1f8f),ensureScreenshotDir=_0x14d98c=>{const _0x916618=a12_0x12e7a3;try{const _0x197387={};return _0x197387[_0x916618(0x226)]=!![],fs[_0x916618(0x1ed)](_0x14d98c,_0x197387),!![];}catch(_0x61820){return logger[_0x916618(0x232)](_0x916618(0x1a5)+(_0x61820&&_0x61820[_0x916618(0x12b)])),![];}},collectScreenshotPaths=(_0xe139c3,_0x13d0c2)=>{const _0x59f3d4=a12_0x12e7a3,_0x3b332a=[];try{fs['readdirSync'](_0xe139c3)[_0x59f3d4(0x13d)](_0x17a36f=>_0x3b332a[_0x59f3d4(0x1cb)](path[_0x59f3d4(0x1ae)](_0xe139c3,_0x17a36f)));}catch(_0x175bfe){}return(_0x13d0c2||[])[_0x59f3d4(0x13d)](_0x3cb7b0=>{const _0xf07d54=_0x59f3d4;for(const _0x5439ae of _0x3cb7b0['bySpec'][_0xf07d54(0x276)]()){(_0x5439ae['screenshots']||[])[_0xf07d54(0x13d)](_0x5e5376=>{const _0x394069=_0xf07d54;_0x5e5376[_0x394069(0x23b)]&&!_0x3b332a[_0x394069(0x195)](_0x5e5376[_0x394069(0x23b)])&&_0x3b332a[_0x394069(0x1cb)](_0x5e5376['filePath']);});}}),_0x3b332a;},registerCredentialArtifactCleanup=(_0x4f38b6,_0x21137c=process[a12_0x12e7a3(0x253)])=>{const _0x44c05b=a12_0x12e7a3,_0xdd1803={'vgOMq':function(_0x29661e){return _0x29661e();},'BtSAn':_0x44c05b(0x137),'IsfNs':_0x44c05b(0x20f),'ARQdK':_0x44c05b(0x1c3)},_0x276a25=()=>{const _0x256b81=_0x44c05b;if(helper['isTrue'](_0x21137c[_0x256b81(0x27b)]))return;(_0x4f38b6||[])[_0x256b81(0x13d)](_0x3de768=>{const _0x381ec6=_0x256b81;try{_0x3de768&&fs[_0x381ec6(0x169)](_0x3de768)&&fs[_0x381ec6(0x180)](_0x3de768);}catch(_0x5ea2c8){}});};return process['once'](_0xdd1803[_0x44c05b(0x189)],_0x276a25),[_0xdd1803[_0x44c05b(0x1a1)],_0xdd1803[_0x44c05b(0x1d7)]]['forEach'](_0x4d7b7b=>{const _0x30e736=_0x44c05b;process[_0x30e736(0x254)](_0x4d7b7b,()=>{const _0xd5d899=_0x30e736;_0xdd1803[_0xd5d899(0x26a)](_0x276a25);try{process['kill'](process[_0xd5d899(0x220)],_0x4d7b7b);}catch(_0x2ebcb1){process[_0xd5d899(0x137)](0x1);}});}),_0x276a25;},sweepScreenshotDir=(_0x539432,_0x16368d=process[a12_0x12e7a3(0x253)])=>{const _0x4a2a0f=a12_0x12e7a3;if(helper[_0x4a2a0f(0x125)](_0x16368d[_0x4a2a0f(0x27b)]))return![];try{return fs[_0x4a2a0f(0x1ab)](_0x539432),!![];}catch(_0x3971e4){}return![];},abortWithShutdown=async(_0x513f1a,_0x5f5729=shutdownBinarySession)=>{const _0x1a28b0=a12_0x12e7a3,_0x81274c={'BckWU':function(_0x3081b9){return _0x3081b9();}};try{return await _0x81274c[_0x1a28b0(0x23f)](_0x513f1a);}catch(_0x3f7e9b){try{await _0x81274c['BckWU'](_0x5f5729);}catch(_0x2db2ed){logger[_0x1a28b0(0x232)](_0x1a28b0(0x270)+(_0x2db2ed&&_0x2db2ed['message']));}throw _0x3f7e9b;}};async function run(_0x17bf3f,_0x44d1e4,_0x50e622){const _0x2b8fd5=a12_0x12e7a3,_0x50add2={'UzTyG':function(_0x3f447f,_0x158455){return _0x3f447f===_0x158455;},'RsZtk':function(_0x253941,_0x319207){return _0x253941||_0x319207;},'DtJZz':_0x2b8fd5(0x1e4),'iAbYU':function(_0x25aff4,_0xad2b0a){return _0x25aff4(_0xad2b0a);},'vSzAB':function(_0x1f35c0,_0x298f82){return _0x1f35c0||_0x298f82;},'LnhHX':_0x2b8fd5(0x1dc),'SvNhS':_0x2b8fd5(0x1ac),'Gbfzp':function(_0xfb251d,_0x2b2027,_0x523042){return _0xfb251d(_0x2b2027,_0x523042);},'LQIEE':function(_0x3c08bc,_0x36c01f,_0x223375,_0x37212c){return _0x3c08bc(_0x36c01f,_0x223375,_0x37212c);},'wksAu':function(_0x2c914f){return _0x2c914f();},'yjzpA':_0x2b8fd5(0x15c),'YrQxR':_0x2b8fd5(0x1df),'lSFTl':function(_0x246c73,_0x7fbed3){return _0x246c73===_0x7fbed3;},'DsHOY':function(_0x24f031,_0xc7a9b8){return _0x24f031(_0xc7a9b8);},'konuB':'build','VnucZ':'Passing\x20`detox\x20build`\x20through\x20without\x20BrowserStack\x20instrumentation.','iLSDh':function(_0x207134,_0x151b5b,_0x26ca5a,_0x5fbd){return _0x207134(_0x151b5b,_0x26ca5a,_0x5fbd);},'oDHGP':function(_0x5e4279){return _0x5e4279();},'LKGIo':function(_0x283597,_0xeee696){return _0x283597(_0xeee696);},'rofGw':'browserstackAutomation:\x20false\x20is\x20not\x20applicable\x20to\x20Detox\x20—\x20the\x20cloud\x20device\x20is\x20the\x20SDK-owned\x20driver,\x20so\x20the\x20run\x20continues\x20on\x20BrowserStack.\x20Use\x20vanilla\x20`detox\x20test`\x20without\x20the\x20SDK\x20to\x20run\x20against\x20a\x20local\x20emulator.','qKNNm':_0x2b8fd5(0x227),'cwPgM':function(_0x5481c1,_0x2a2c7e){return _0x5481c1(_0x2a2c7e);},'QJpOd':_0x2b8fd5(0x20a),'ouJzK':function(_0x2a29e2,_0x5676e2){return _0x2a29e2(_0x5676e2);},'FMmKT':function(_0x281a52,_0x1d2cbd){return _0x281a52(_0x1d2cbd);},'PfSoz':_0x2b8fd5(0x1e9),'kFIla':function(_0x23e3af,_0xf074a6){return _0x23e3af(_0xf074a6);},'wrFvq':_0x2b8fd5(0x1f7),'ELybh':function(_0x2b46b6,_0x2f284b){return _0x2b46b6(_0x2f284b);},'ajzHY':function(_0x2c73ee,_0x270bea){return _0x2c73ee(_0x270bea);},'rdSee':function(_0x504802,_0x189cee){return _0x504802!==_0x189cee;},'pKRoj':function(_0x4c2f49,_0x1529e3){return _0x4c2f49*_0x1529e3;},'hjDwo':function(_0x201ad1,_0x50ff27){return _0x201ad1+_0x50ff27;},'aNCXq':function(_0x5469ae,_0x144155){return _0x5469ae*_0x144155;},'hJDBf':function(_0x54e999,_0x4c9243){return _0x54e999(_0x4c9243);},'IVhpk':function(_0x3ce0eb,_0x5a71c3){return _0x3ce0eb(_0x5a71c3);},'JFrYf':function(_0x25ad85,_0x45db2b){return _0x25ad85>_0x45db2b;},'FWqIW':function(_0x176bea,_0x68fdca){return _0x176bea/_0x68fdca;},'fviPR':function(_0x506efd,_0x3d4211){return _0x506efd(_0x3d4211);},'enxyJ':function(_0x42f8b3,_0x1d65dc){return _0x42f8b3&&_0x1d65dc;},'YNPQi':function(_0x54eebc){return _0x54eebc();},'UJTWB':function(_0x4a5256,_0xa5b148,_0x102298,_0x27a5c4,_0x57db7c){return _0x4a5256(_0xa5b148,_0x102298,_0x27a5c4,_0x57db7c);},'HKfKT':function(_0x87cc4e,_0x509813,_0x1c5760){return _0x87cc4e(_0x509813,_0x1c5760);},'QmJNg':function(_0x45cc60,_0x3df321){return _0x45cc60(_0x3df321);}};if(!_0x50e622[_0x2b8fd5(0x20d)])return;if(_0x50add2['lSFTl'](_0x50add2[_0x2b8fd5(0x22d)](getSubcommand,_0x44d1e4),_0x50add2[_0x2b8fd5(0x27c)])){logger[_0x2b8fd5(0x219)](_0x50add2[_0x2b8fd5(0x1b1)]);const _0x451c89=_0x50add2['iLSDh'](spawn,_0x50add2[_0x2b8fd5(0x272)](detoxBinary),_0x50add2['DsHOY'](detoxArgs,_0x44d1e4),{'stdio':_0x50add2['yjzpA'],'env':process['env']});_0x451c89['on'](_0x50add2[_0x2b8fd5(0x166)],_0x498698=>{const _0xc5a0e=_0x2b8fd5;process[_0xc5a0e(0x25e)]=_0x498698;});return;}process['env'][_0x2b8fd5(0x1ca)]=process['env'][_0x2b8fd5(0x1ca)]||_0x50add2[_0x2b8fd5(0x16f)],await _0x50e622[_0x2b8fd5(0x23a)](_0x17bf3f);if(helper[_0x2b8fd5(0x14c)](process[_0x2b8fd5(0x253)][_0x2b8fd5(0x12a)])&&helper['isUndefined'](_0x50e622[_0x2b8fd5(0x20d)]['clientDetoxVersion']))try{const _0x42ec60=helper[_0x2b8fd5(0x16b)](_0x50add2[_0x2b8fd5(0x16f)]);_0x42ec60&&(process['env'][_0x2b8fd5(0x12a)]=_0x42ec60,_0x50e622[_0x2b8fd5(0x20d)][_0x2b8fd5(0x1e5)]=_0x42ec60);}catch(_0x2d0ec8){logger[_0x2b8fd5(0x232)]('Could\x20not\x20resolve\x20installed\x20detox\x20version:\x20'+(_0x2d0ec8&&_0x2d0ec8['message']));}CLIUtils[_0x2b8fd5(0x21a)](constants['FRAMEWORKS'][_0x2b8fd5(0x141)]||_0x50add2[_0x2b8fd5(0x16f)],constants[_0x2b8fd5(0x135)][_0x2b8fd5(0x141)]||_0x50add2['LnhHX']);(helper[_0x2b8fd5(0x14c)](_0x50e622[_0x2b8fd5(0x20d)][_0x2b8fd5(0x259)])||_0x50add2[_0x2b8fd5(0x147)](_0x50e622['config'][_0x2b8fd5(0x259)],''))&&(_0x50e622[_0x2b8fd5(0x20d)][_0x2b8fd5(0x259)]=path[_0x2b8fd5(0x1d0)](process[_0x2b8fd5(0x1dd)]()),process['env'][_0x2b8fd5(0x1d8)]=_0x50e622[_0x2b8fd5(0x20d)]['buildName'],logger[_0x2b8fd5(0x219)](_0x2b8fd5(0x1af)+_0x50e622[_0x2b8fd5(0x20d)][_0x2b8fd5(0x259)]+'\x22\x20for\x20the\x20build.'));!helper[_0x2b8fd5(0x14c)](_0x50e622[_0x2b8fd5(0x20d)]['testObservability'])&&(process[_0x2b8fd5(0x253)][_0x2b8fd5(0x15b)]=_0x50add2['LKGIo'](String,_0x50e622[_0x2b8fd5(0x20d)][_0x2b8fd5(0x261)]));helper[_0x2b8fd5(0x1de)](_0x50e622[_0x2b8fd5(0x20d)][_0x2b8fd5(0x239)])&&logger['warn'](_0x50add2[_0x2b8fd5(0x13a)]);const {getProductMap:_0x12fbfd}=_0x50add2[_0x2b8fd5(0x284)](require,_0x50add2[_0x2b8fd5(0x1fd)]);process[_0x2b8fd5(0x253)][_0x2b8fd5(0x150)]=JSON[_0x2b8fd5(0x274)](_0x50add2[_0x2b8fd5(0x164)](_0x12fbfd,_0x50e622[_0x2b8fd5(0x20d)]));const _0x3d807e=BrowserstackCLI[_0x2b8fd5(0x18d)]();_0x3d807e&&(_0x3d807e[_0x2b8fd5(0x24a)](_0x50e622[_0x2b8fd5(0x20d)],_0x50e622['configPath'],_0x50e622[_0x2b8fd5(0x1a8)]),await _0x3d807e[_0x2b8fd5(0x1e8)](),_0x3d807e[_0x2b8fd5(0x185)]&&(process[_0x2b8fd5(0x253)]['BROWSERSTACK_CLI_BIN_SESSION_ID']=_0x3d807e[_0x2b8fd5(0x185)]));let _0x2d220c=null;if(_0x3d807e&&_0x3d807e[_0x2b8fd5(0x185)])try{_0x2d220c=await GrpcClient[_0x2b8fd5(0x18d)]()['getDetoxConfig'](),!_0x2d220c||!Array['isArray'](_0x2d220c[_0x2b8fd5(0x177)])||!_0x2d220c[_0x2b8fd5(0x177)][_0x2b8fd5(0x190)]?(_0x2d220c=null,logger['warn'](_0x50add2[_0x2b8fd5(0x1b6)])):logger['info'](_0x2b8fd5(0x1bf)+_0x2d220c['configurations']['length']+_0x2b8fd5(0x260)+_0x2d220c[_0x2b8fd5(0x245)]+')');}catch(_0x106770){logger['warn']('DetoxConfig\x20RPC\x20unavailable\x20('+(_0x106770&&_0x106770['message'])+_0x2b8fd5(0x240));}await _0x50add2[_0x2b8fd5(0x251)](abortWithShutdown,()=>assertLocalTunnelBound(_0x50e622[_0x2b8fd5(0x20d)],_0x2d220c));!_0x2d220c&&await _0x50add2[_0x2b8fd5(0x191)](abortWithShutdown,()=>uploadDetoxAppsIfLocal(_0x50e622[_0x2b8fd5(0x20d)]));const _0x13be50=path[_0x2b8fd5(0x1ae)](process[_0x2b8fd5(0x1dd)](),_0x50add2[_0x2b8fd5(0x1f3)]);fs[_0x2b8fd5(0x17e)](_0x13be50,helper[_0x2b8fd5(0x14a)](_0x50add2[_0x2b8fd5(0x251)](withoutCredentials,_0x50e622['config']))),process[_0x2b8fd5(0x253)][_0x2b8fd5(0x171)]=_0x13be50;const _0x20b34c=detoxA11y[_0x2b8fd5(0x248)](_0x3d807e,_0x50e622['config']),_0x5d69e1=modifyDetoxConf[_0x2b8fd5(0x1a7)]();_0x5d69e1&&(process[_0x2b8fd5(0x253)]['DETOX_USER_CONFIG_DETAILS_PATH']=_0x5d69e1);const {configPath:_0x373599,jestConfigPath:_0x478c2f}=modifyDetoxConf[_0x2b8fd5(0x1a6)](_0x50e622[_0x2b8fd5(0x20d)],_0x5d69e1,_0x2d220c&&_0x2d220c[_0x2b8fd5(0x177)]);logger[_0x2b8fd5(0x219)](_0x2b8fd5(0x1c7)+_0x373599);_0x478c2f&&logger[_0x2b8fd5(0x219)](_0x2b8fd5(0x285)+_0x478c2f);_0x50add2[_0x2b8fd5(0x16e)](registerCredentialArtifactCleanup,[_0x373599,_0x13be50,_0x20b34c,_0x478c2f]);const _0x282214=require[_0x2b8fd5(0x26d)](_0x50add2['wrFvq']),_0x4baa54=process[_0x2b8fd5(0x253)][_0x2b8fd5(0x134)]||'',_0x2acad8=_0x2b8fd5(0x1a3)+JSON[_0x2b8fd5(0x274)](_0x282214),_0x398082=_0x4baa54?_0x4baa54+'\x20'+_0x2acad8:_0x2acad8,_0x56c09e=_0x50add2[_0x2b8fd5(0x176)](detoxArgs,_0x44d1e4),_0xe5d68f=_0x50add2[_0x2b8fd5(0x1e2)](hasUserSelectedConfig,_0x56c09e),_0x4af6b7=_0xe5d68f?[null]:_0x2d220c?_0x2d220c[_0x2b8fd5(0x177)][_0x2b8fd5(0x126)](_0x1827ed=>_0x1827ed[_0x2b8fd5(0x1ea)]):modifyDetoxConf[_0x2b8fd5(0x145)](_0x50e622[_0x2b8fd5(0x20d)]),_0x25e46a=_0xe5d68f?0x1:_0x50add2[_0x2b8fd5(0x280)](parseInt,_0x50e622[_0x2b8fd5(0x20d)]['parallelsPerPlatform'],0xa)||0x1,_0x2081c0=_0x2d220c?_0x50add2['Gbfzp'](parseInt,_0x2d220c[_0x2b8fd5(0x245)],0xa):NaN;Number['isFinite'](_0x2081c0)&&_0x4af6b7['length']&&_0x50add2['rdSee'](_0x2081c0,_0x50add2[_0x2b8fd5(0x217)](_0x4af6b7[_0x2b8fd5(0x190)],_0x25e46a))&&logger[_0x2b8fd5(0x174)](_0x50add2[_0x2b8fd5(0x19b)]('Binary\x20reported\x20maxWorkers='+_0x2081c0+_0x2b8fd5(0x1c5)+_0x50add2[_0x2b8fd5(0x225)](_0x4af6b7['length'],_0x25e46a)+'\x20',_0x2b8fd5(0x18a)+_0x4af6b7['length']+_0x2b8fd5(0x1ff)+_0x25e46a+_0x2b8fd5(0x1bb)));const {specArgs:_0x5a3666,nonSpecArgs:_0x3cb1c0}=_0x50add2[_0x2b8fd5(0x1ee)](partitionSpecArgs,_0x56c09e),_0x5bc1f5={};_0x5bc1f5[_0x2b8fd5(0x26f)]=_0x4af6b7,_0x5bc1f5['parallelsPerPlatform']=_0x25e46a,_0x5bc1f5[_0x2b8fd5(0x287)]=_0x5a3666;const _0x357333=_0x50add2[_0x2b8fd5(0x249)](planSlots,_0x5bc1f5);_0x5a3666[_0x2b8fd5(0x190)]&&_0x50add2[_0x2b8fd5(0x24c)](_0x25e46a,_0x5a3666[_0x2b8fd5(0x190)])&&logger[_0x2b8fd5(0x219)](_0x2b8fd5(0x1a0)+_0x25e46a+_0x2b8fd5(0x162)+_0x5a3666[_0x2b8fd5(0x190)]+_0x2b8fd5(0x12e)+_0x50add2[_0x2b8fd5(0x200)](_0x357333[_0x2b8fd5(0x190)],_0x4af6b7[_0x2b8fd5(0x190)]||0x1)+'\x20slot(s)\x20per\x20platform.');const _0xf4a423=((()=>{const _0x351b2f=_0x2b8fd5;try{return _0x50add2[_0x351b2f(0x1f4)](JSON[_0x351b2f(0x1f2)](process[_0x351b2f(0x253)]['BROWSERSTACK_PRODUCT_MAP']||'{}')[_0x351b2f(0x21b)],!![]);}catch(_0x55550b){return![];}})()),_0x28ab64=_0x50add2['wksAu'](screenshotDirFor);_0x50add2[_0x2b8fd5(0x268)](ensureScreenshotDir,_0x28ab64);const _0x5a906e=[],_0x2689ba=({configKey:_0x2c41b6,specs:_0x39f344,shard:_0x189c63},_0x1a6850)=>new Promise(_0x4d21cd=>{const _0x528105=_0x2b8fd5,_0x3dcc0a=path['join'](os[_0x528105(0x1bd)](),_0x528105(0x1f0)+process[_0x528105(0x220)]+'-'+_0x1a6850+_0x528105(0x184)),_0x1840d2=path[_0x528105(0x1ae)](os[_0x528105(0x1bd)](),_0x528105(0x15f)+process[_0x528105(0x220)]+'-'+_0x1a6850+_0x528105(0x184)),_0x5797b2=_0xf4a423?path[_0x528105(0x1ae)](os[_0x528105(0x1bd)](),'bstack-detox-tra-events-'+process[_0x528105(0x220)]+'-'+_0x1a6850+_0x528105(0x216)):null;try{fs['writeFileSync'](_0x3dcc0a,''),fs[_0x528105(0x17e)](_0x1840d2,''),_0x5797b2&&fs[_0x528105(0x17e)](_0x5797b2,'');}catch(_0xeed360){logger[_0x528105(0x232)](_0x528105(0x128)+(_0xeed360&&_0xeed360[_0x528105(0x12b)]));}const _0x92137a={};_0x92137a[_0x528105(0x213)]=_0x3dcc0a,_0x92137a[_0x528105(0x172)]=_0x1840d2,_0x92137a[_0x528105(0x25c)]=_0x5797b2,_0x92137a[_0x528105(0x1ba)]=_0x2c41b6,_0x92137a['slotIndex']=_0x1a6850,_0x5a906e['push'](_0x92137a);const _0x1aaf90=Object['assign']({},process['env'],{'NODE_OPTIONS':_0x398082,'BROWSERSTACK_FRAMEWORK':process[_0x528105(0x253)][_0x528105(0x1ca)]||_0x50add2['LnhHX'],'BROWSERSTACK_DETOX_SESSION_IDS_FILE':_0x3dcc0a,'BROWSERSTACK_DETOX_TEST_RESULTS_FILE':_0x1840d2,'BROWSERSTACK_DETOX_SCREENSHOT_DIR':_0x28ab64},_0x5797b2?{'BROWSERSTACK_DETOX_TRA_EVENTS_FILE':_0x5797b2}:{});delete _0x1aaf90[_0x528105(0x1d3)];const _0x590b39=_0x3cb1c0['concat']([_0x50add2[_0x528105(0x14b)],_0x373599],_0x39f344);_0x2c41b6&&_0x590b39[_0x528105(0x1cb)]('-c',_0x2c41b6);const _0xed1a0e=_0x50add2['Gbfzp'](shardArgFor,_0x189c63,_0x3cb1c0);_0xed1a0e&&_0x590b39[_0x528105(0x1cb)](_0xed1a0e);const _0x4c3b65=_0x50add2['LQIEE'](spawn,_0x50add2[_0x528105(0x17c)](detoxBinary),_0x590b39,{'stdio':_0x50add2[_0x528105(0x186)],'env':_0x1aaf90});_0x4c3b65['on'](_0x50add2[_0x528105(0x166)],_0x5e3d8e=>{const _0x2cb994=_0x528105;logger[_0x2cb994(0x232)]('detox\x20slot\x20'+_0x1a6850+_0x2cb994(0x206)+_0x50add2[_0x2cb994(0x262)](_0x2c41b6,_0x50add2[_0x2cb994(0x17d)])+_0x2cb994(0x283)+(_0x39f344[_0x2cb994(0x190)]?_0x39f344['join'](','):_0x2cb994(0x282)+(_0x189c63?_0x2cb994(0x149)+_0x189c63:''))+_0x2cb994(0x23d)+_0x5e3d8e),_0x50add2[_0x2cb994(0x198)](_0x4d21cd,_0x50add2[_0x2cb994(0x165)](_0x5e3d8e,0x0));});}),_0x3fa6dd=await Promise[_0x2b8fd5(0x26e)](_0x357333[_0x2b8fd5(0x126)]((_0x28164b,_0x3968b6)=>_0x2689ba(_0x28164b,_0x3968b6))),_0x237ab8=_0x3fa6dd[_0x2b8fd5(0x238)](_0x242e28=>_0x242e28!==0x0)||0x0;let _0x22bd07=null;if(_0xf4a423)try{_0x22bd07=traEmitter[_0x2b8fd5(0x13f)](_0x5a906e);}catch(_0x47e42f){logger[_0x2b8fd5(0x174)]('Detox\x20TRA\x20capture\x20parsing\x20failed\x20('+(_0x47e42f&&_0x47e42f[_0x2b8fd5(0x12b)])+_0x2b8fd5(0x194)),_0x22bd07=null;}const _0x382ee6=_0x5a906e[_0x2b8fd5(0x153)]((_0xd69ac2,_0x4dd994,_0x49bfac)=>{const _0x1f1af5=_0x2b8fd5,_0x5329da=_0x50add2[_0x1f1af5(0x182)](collectDetoxSessionVerdicts,_0x4dd994[_0x1f1af5(0x213)],_0x4dd994[_0x1f1af5(0x172)],_0x237ab8);if(_0x22bd07&&_0x22bd07[_0x49bfac])try{traEmitter['enrichSlotVerdicts'](_0x5329da,_0x22bd07[_0x49bfac],_0x50e622[_0x1f1af5(0x20d)][_0x1f1af5(0x24b)]);}catch(_0x25939a){logger[_0x1f1af5(0x174)](_0x1f1af5(0x13c)+_0x49bfac+'\x20('+(_0x25939a&&_0x25939a['message'])+').');}return _0xd69ac2['concat'](_0x5329da);},[]);if(_0x50add2[_0x2b8fd5(0x215)](_0x22bd07,_0x3d807e)&&_0x3d807e['binSessionId'])try{const _0x23ac87=helper[_0x2b8fd5(0x16b)](_0x50add2[_0x2b8fd5(0x16f)])||'',_0x3ed39b={};_0x3ed39b['frameworkVersion']=_0x23ac87,await traEmitter[_0x2b8fd5(0x1ec)](GrpcClient[_0x2b8fd5(0x18d)](),_0x22bd07,_0x3ed39b);}catch(_0x6476bb){logger[_0x2b8fd5(0x174)](_0x2b8fd5(0x258)+(_0x6476bb&&_0x6476bb[_0x2b8fd5(0x12b)])+_0x2b8fd5(0x23c));}let _0x16e3af=![];if(_0x3d807e&&_0x3d807e[_0x2b8fd5(0x185)]&&_0x382ee6[_0x2b8fd5(0x190)])try{_0x16e3af=await GrpcClient['getInstance']()['detoxMarkSessions'](_0x382ee6),_0x16e3af&&logger[_0x2b8fd5(0x219)](_0x2b8fd5(0x142)+_0x382ee6['length']+_0x2b8fd5(0x256));}catch(_0x467492){logger['warn'](_0x2b8fd5(0x202)+(_0x467492&&_0x467492[_0x2b8fd5(0x12b)])+_0x2b8fd5(0x127));}const _0x59f310=BrowserstackCLI[_0x2b8fd5(0x129)]();await _0x50add2['YNPQi'](shutdownBinarySession);if(!_0x16e3af)for(const {sessionIdsFile:_0x47941e,resultsFile:_0x272883}of _0x5a906e){await _0x50add2[_0x2b8fd5(0x25d)](markDetoxSessionStatuses,_0x47941e,_0x272883,_0x237ab8,_0x50e622[_0x2b8fd5(0x20d)]);}try{testOpsHelper['printBuildLink']();}catch(_0x2bdaf5){logger[_0x2b8fd5(0x232)](_0x2b8fd5(0x18f)+(_0x2bdaf5&&_0x2bdaf5[_0x2b8fd5(0x12b)]));}try{await utilities[_0x2b8fd5(0x1c8)](_0x50e622,_0x59f310);}catch(_0x1dc932){logger[_0x2b8fd5(0x232)]('Detox\x20final\x20execution\x20(log\x20upload)\x20failed:\x20'+(_0x1dc932&&_0x1dc932[_0x2b8fd5(0x12b)]));}const _0x186a07=_0x5a906e['reduce']((_0x31fead,_0x3a3f2c)=>_0x31fead[_0x2b8fd5(0x18b)]([_0x3a3f2c[_0x2b8fd5(0x213)],_0x3a3f2c[_0x2b8fd5(0x172)],_0x3a3f2c['traEventsFile']]),[]),_0x496825=_0x50add2['HKfKT'](collectScreenshotPaths,_0x28ab64,_0x22bd07),_0x53a2d6=helper[_0x2b8fd5(0x125)](process[_0x2b8fd5(0x253)][_0x2b8fd5(0x27b)])?[]:[_0x373599,_0x478c2f,_0x13be50,_0x20b34c][_0x2b8fd5(0x18b)](_0x186a07)[_0x2b8fd5(0x18b)](_0x496825);_0x53a2d6[_0x2b8fd5(0x13d)](_0xce3e7a=>{const _0x3c49bf=_0x2b8fd5;try{_0xce3e7a&&fs[_0x3c49bf(0x169)](_0xce3e7a)&&fs['unlinkSync'](_0xce3e7a);}catch(_0x286bcd){logger[_0x3c49bf(0x232)]('Error\x20removing\x20'+_0xce3e7a+':\x20'+(_0x286bcd&&_0x286bcd[_0x3c49bf(0x12b)]));}}),_0x50add2[_0x2b8fd5(0x1aa)](sweepScreenshotDir,_0x28ab64),process[_0x2b8fd5(0x25e)]=_0x237ab8;}module[a12_0x12e7a3(0x140)]=run,module[a12_0x12e7a3(0x140)][a12_0x12e7a3(0x199)]=markDetoxSessionStatuses,module[a12_0x12e7a3(0x140)][a12_0x12e7a3(0x27f)]=collectDetoxSessionVerdicts,module[a12_0x12e7a3(0x140)][a12_0x12e7a3(0x223)]=stripSdkOnlyArgs,module[a12_0x12e7a3(0x140)]['assertLocalTunnelBound']=assertLocalTunnelBound,module[a12_0x12e7a3(0x140)][a12_0x12e7a3(0x14f)]=hasUserSelectedConfig,module[a12_0x12e7a3(0x140)][a12_0x12e7a3(0x25a)]=planSlots,module['exports'][a12_0x12e7a3(0x27a)]=shardArgFor,module['exports'][a12_0x12e7a3(0x132)]=partitionSpecArgs,module['exports'][a12_0x12e7a3(0x1d9)]=abortWithShutdown,module['exports'][a12_0x12e7a3(0x19c)]=screenshotDirFor,module[a12_0x12e7a3(0x140)][a12_0x12e7a3(0x16c)]=ensureScreenshotDir,module[a12_0x12e7a3(0x140)][a12_0x12e7a3(0x1f5)]=collectScreenshotPaths,module[a12_0x12e7a3(0x140)][a12_0x12e7a3(0x265)]=sweepScreenshotDir,module[a12_0x12e7a3(0x140)][a12_0x12e7a3(0x22e)]=registerCredentialArtifactCleanup,module[a12_0x12e7a3(0x140)][a12_0x12e7a3(0x22b)]=withoutCredentials;
2
+ 'use strict';const a12_0x549475=a12_0x1f7d;(function(_0x4b7138,_0x223e57){const _0x297f88=a12_0x1f7d,_0x3671b5=_0x4b7138();while(!![]){try{const _0x24a359=parseInt(_0x297f88(0x165))/0x1*(-parseInt(_0x297f88(0x258))/0x2)+parseInt(_0x297f88(0x21e))/0x3*(parseInt(_0x297f88(0x1c3))/0x4)+parseInt(_0x297f88(0x1db))/0x5*(-parseInt(_0x297f88(0x1f3))/0x6)+parseInt(_0x297f88(0x1b6))/0x7*(-parseInt(_0x297f88(0x16a))/0x8)+parseInt(_0x297f88(0x177))/0x9*(-parseInt(_0x297f88(0x1b3))/0xa)+parseInt(_0x297f88(0x1f7))/0xb+-parseInt(_0x297f88(0x1ee))/0xc*(-parseInt(_0x297f88(0x1c8))/0xd);if(_0x24a359===_0x223e57)break;else _0x3671b5['push'](_0x3671b5['shift']());}catch(_0x5c1bec){_0x3671b5['push'](_0x3671b5['shift']());}}}(a12_0x46bb,0xcfd75));function a12_0x46bb(){const _0x461e93=['createReadStream','kill','reduce','isUndefined','getPackageVersion','DETOX_USER_CONFIG_DETAILS_PATH','FRAMEWORKS','2wRNuWy','passed','because\x20the\x20results\x20would\x20not\x20reflect\x20your\x20local\x20environment.\x20The\x20tunnel\x20failed\x20to\x20start\x20—\x20','isFalse','sessionIdsFile','GixCM','../../helpers/helper','apis','bs://','isArray','once','app-automate/detox/v2/android/app','HZSiI','Using\x20binary-built\x20Detox\x20configuration\x20(',').\x20Using\x20the\x20SDK\x20config.','app-automate/sessions/','has','bstack-detox-results-',');\x20using\x20the\x20SDK-local\x20capability\x20builder.','readFileSync','root','binSessionId','-c=','length','set','forEach','BROWSERSTACK_DETOX_KEEP_ARTIFACTS','../../helpers/logger','--testEnvironment','ioLym','resultsFile','APP_UPLOAD_URL','browserstack.config','browserstackLocal\x20is\x20enabled\x20but\x20the\x20binary\x20did\x20not\x20build\x20the\x20Detox\x20configuration,\x20','split','--testMatch','specArgs','bstack-detox-tra-events-','./a11ySetup','boolean','configKey','--testPathPattern','bootstrap',')\x20exited\x20with\x20code\x20','iVouv','cyfMH','DkMue','pLKoC','../v2/cliUtils','data','\x20uploaded:\x20','Detox\x20final\x20execution\x20(log\x20upload)\x20failed:\x20','ZpVOy','FRJzF','.txt','appAutomate','Ldgfz','NKpnH','detox.cmd','writeFileSync','../../helpers/testhub/testhubHandler','ylbxI','size','eoWlt','rrnau','\x20session(s)).','check\x20the\x20SDK\x20binary\x20log\x20for\x20\x22failed\x20to\x20start\x20BrowserStackLocal\x22\x20(a\x20stale\x20tunnel\x20holding\x20the\x20','buildName','filePath','aNVsx','\x20(name:\x20','finalExecution','NODE_OPTIONS','--runner-config','resolve','BROWSERSTACK_FRAMEWORK','Generated\x20BrowserStack\x20jest\x20config\x20(with\x20session\x20reporter)\x20at\x20','https://api-cloud.browserstack.com','feFdI','reason','Passing\x20`detox\x20build`\x20through\x20without\x20BrowserStack\x20instrumentation.','POST','SWfaY','clientDetoxVersion','join','EaTmL','PsMeX','collectDetoxSessionVerdicts','haDHA','OGqeS','Detox\x20sessions\x20marked\x20via\x20the\x20binary\x20(','debug','rxxMV','DetoxMarkSessions\x20RPC\x20unavailable\x20(','PfEoA','setBrowserstackConfig','[detox]\x20','existsSync','Could\x20not\x20create\x20the\x20detox\x20screenshot\x20dir:\x20','--artifacts-location','yRole','bsnrN','--snapshotResolver','exports','Marked\x20BrowserStack\x20Detox\x20session\x20','1152222PUrZyS','elGwY','collectSlotTestData','\x20upload\x20returned\x20no\x20','cloudConfigurationKeys','16hDSCIH','Could\x20not\x20resolve\x20installed\x20detox\x20version:\x20','info','platforms','RdEKd','../v2/grpcClient','browserstackAutomation:\x20false\x20is\x20not\x20applicable\x20to\x20Detox\x20—\x20the\x20cloud\x20device\x20is\x20the\x20SDK-owned\x20driver,\x20so\x20the\x20run\x20continues\x20on\x20BrowserStack.\x20Use\x20vanilla\x20`detox\x20test`\x20without\x20the\x20SDK\x20to\x20run\x20against\x20a\x20local\x20emulator.','nodeRequest','VvSQU','get','LSyGK','withoutCredentials','--coverageDirectory','9RuXVvh','QiLUm','VgPHI','zfhkw','smyPe','pPjvf','qLdSV','sfoLP','dtoxR','BROWSERSTACK_BUILD_NAME','maxWorkers','configPath','--reporters','binding,\x20so\x20the\x20SDK\x20cannot\x20confirm\x20it\x20is\x20bound\x20to\x20this\x20run.\x20If\x20the\x20app\x20under\x20test\x20cannot\x20','Avvuq','ngvym','ZTvGF','browserstackSetupConfig.json','--globalSetup','--moduleNameMapper','bQKSN','includes','some','app_client_url','startsWith','--setupFilesAfterEnv','all','toLowerCase','siZNA','close','zEThb','Could\x20not\x20read\x20captured\x20detox\x20session\x20ids:\x20','sweepScreenshotDir','assertLocalTunnelBound','readdirSync','platform','test','bySpec','detoxMarkSessions','fNVhZ','LdCMO','inherit','screenshots','UWwhN','max','--require\x20','BROWSERSTACK_TEST_OBSERVABILITY_YML','--shard=','indexOf','enrichSlotVerdicts','SIGINT','ogbQy','responseKey','testObservability','oHdzq','--testPathIgnorePatterns','child_process','BROWSERSTACK_CLIENT_DETOX_VERSION','getDetoxConfig','frameworkVersion','16256060yGFtHi','unlinkSync','isTrue','488705qFaTBw','Uploading\x20detox\x20','ensureScreenshotDir','from','status','assign','WXijh','../../helpers/utilities','jADSH','printBuildLink','app','REDACTED_KEYS','CIndF','37652EUtGMo','concat','--device-launch-args','wzVML','HlOHW','72605PYNvym','\x20but\x20this\x20run\x20spawns\x20','FTUug','suvJV','rmdirSync','Detox\x20suite\x20failed\x20(exit\x20code\x20','detox','SIGTERM','hbyaH','browserStackLocalOptions','PUT','app_url','hZibI','zkRxA','slice',');\x20marking\x20sessions\x20from\x20the\x20SDK.','bstack-detox-sessions-','glOHB','partitionSpecArgs','815OoZzxF','mGXoZ','trim','Detox\x20suite\x20passed','configurations','exitCode','fwtAs','push','mXSsw','--rootDir','CXEZm','min','--testNamePattern','ZytPL','user','exit','findUserDetoxConfig','\x22\x20for\x20the\x20build.','Could\x20not\x20read\x20detox\x20test\x20results:\x20','7068zmdMvt','env','reach\x20your\x20local\x20host,\x20check\x20that\x20the\x20SDK\x20binary\x20started\x20BrowserStackLocal.','stringify','yDGRK','43170QUikoe','bstack-detox-shots-','BROWSERSTACK_CLI_BIN_SESSION_ID','qqfFt','13201881KCVggg','fFAoj','GAcUM','collectScreenshotPaths','\x20exceeds\x20the\x20','aDKWA','appClient','detox\x20slot\x20','Could\x20not\x20create\x20detox\x20capture\x20files:\x20','TtZnb','oCnvu','key','parse','tmpdir','\x20platform(s)\x20x\x20parallelsPerPlatform=','recursive','observability','TestHub\x20stop\x20failed:\x20','Binary\x20teardown\x20after\x20abort\x20failed:\x20','hAJRs','KIzpX','localBound','warn','--device-boot-args','Generated\x20BrowserStack\x20Detox\x20config\x20at\x20','getInstance','ASYlr','setFrameworkDetail','\x20is\x20neither\x20a\x20bs://\x20id\x20nor\x20an\x20existing\x20file:\x20','spBhO','browserstackLocal\x20is\x20enabled\x20but\x20this\x20SDK\x20binary\x20does\x20not\x20report\x20the\x20Local\x20tunnel\x20',');\x20continuing\x20without\x20test\x20reporting.','YpwpF','find','--globalTeardown','spjDU','planSlots','\x20platform\x20configuration(s),\x20maxWorkers=',');\x20dashboard\x20test\x20reporting\x20may\x20be\x20incomplete.','144gDNqxB','serializeToYamlString','name','pid','CTMmQ','shouldSkipSessionName','bnIEj','cliConfig','mgXpl','--configuration','DcOuX','OTNyT','ZGtdg','Binary\x20reported\x20maxWorkers=','abortWithShutdown','.json','NPURZ','localOptions','stop','\x20to\x20BrowserStack','upload','Detox\x20TRA\x20emission\x20failed\x20(','endpoint',',\x20specs\x20','./traEmitter','4|1|3|2|0','message','DETOX','--testSequencer','./modifyDetoxConf','\x20as\x20','browserstackconfigfile','tppkE','isFinite','../../detox-driver/login-timeout-preload','modifyConfig','jsHkI','../../helpers/testhub/utils','failed','--resolver','BROWSERSTACK_PRODUCT_MAP','weMBb','wqNcJ','\x20spec\x20file(s)\x20given;\x20running\x20','map','config','--testResultsProcessor','NaUTl','path','dREyZ','\x20(config\x20'];a12_0x46bb=function(){return _0x461e93;};return a12_0x46bb();}const {spawn}=require(a12_0x549475(0x1af)),fs=require('fs'),os=require('os'),path=require(a12_0x549475(0x24e)),logger=require(a12_0x549475(0x273))['winstonLogger'],helper=require(a12_0x549475(0x25e)),constants=require('../utils/constants'),modifyDetoxConf=require(a12_0x549475(0x23b)),detoxA11y=require(a12_0x549475(0x27e)),traEmitter=require(a12_0x549475(0x236)),utilities=require(a12_0x549475(0x1bd)),testOpsHelper=require('../../helpers/test-observability/utils'),TestHubHandler=require(a12_0x549475(0x294)),BrowserstackCLI=require('../v2/browserstackCLI'),CLIUtils=require(a12_0x549475(0x288)),GrpcClient=require(a12_0x549475(0x16f)),detoxBinary=()=>/^win/[a12_0x549475(0x19b)](process[a12_0x549475(0x19a)])?a12_0x549475(0x292):'detox';async function uploadDetoxAppsIfLocal(_0x45cd67){const _0x23d03c=a12_0x549475,_0x1fe905={'qqfFt':_0x23d03c(0x149),'KIzpX':_0x23d03c(0x1c0),'NPURZ':_0x23d03c(0x263),'ZODId':_0x23d03c(0x1d3),'ZTvGF':_0x23d03c(0x1fd),'UpwUN':'app-automate/detox/v2/android/app-client','elGwY':_0x23d03c(0x18e),'tppkE':function(_0x3a5eb2,_0x22b66b){return _0x3a5eb2(_0x22b66b);},'Avvuq':_0x23d03c(0x260),'aNVsx':function(_0x176a4b,_0x4f17a0){return _0x176a4b(_0x4f17a0);},'dtoxR':_0x23d03c(0x14d)},_0xb8a080=_0x45cd67[_0x23d03c(0x25f)]&&_0x45cd67['apis'][_0x23d03c(0x28f)]&&_0x45cd67[_0x23d03c(0x25f)][_0x23d03c(0x28f)][_0x23d03c(0x232)]||constants[_0x23d03c(0x277)]||_0x1fe905[_0x23d03c(0x1f6)],_0x14df7e={};_0x14df7e[_0x23d03c(0x202)]=_0x1fe905[_0x23d03c(0x20b)],_0x14df7e[_0x23d03c(0x234)]=_0x1fe905[_0x23d03c(0x22e)],_0x14df7e[_0x23d03c(0x1ab)]=_0x1fe905['ZODId'];const _0x4b6563={};_0x4b6563[_0x23d03c(0x202)]=_0x1fe905[_0x23d03c(0x187)],_0x4b6563[_0x23d03c(0x234)]=_0x1fe905['UpwUN'],_0x4b6563[_0x23d03c(0x1ab)]=_0x1fe905[_0x23d03c(0x166)];const _0x41c96e=[_0x14df7e,_0x4b6563];for(const {key:_0x5c2157,endpoint:_0x2ec54f,responseKey:_0x54beaa}of _0x41c96e){const _0x4e8175=_0x45cd67[_0x5c2157];if(!_0x4e8175||_0x1fe905[_0x23d03c(0x23e)](String,_0x4e8175)[_0x23d03c(0x18f)](_0x1fe905[_0x23d03c(0x185)]))continue;const _0x28e5f1=path[_0x23d03c(0x146)](_0x1fe905[_0x23d03c(0x29d)](String,_0x4e8175));if(!fs[_0x23d03c(0x15d)](_0x28e5f1))throw new Error(_0x23d03c(0x15c)+_0x5c2157+_0x23d03c(0x213)+_0x4e8175);logger[_0x23d03c(0x16c)](_0x23d03c(0x1b7)+_0x5c2157+'\x20'+_0x28e5f1+_0x23d03c(0x231));const _0x7abd9d={'formData':{'file':fs[_0x23d03c(0x251)](_0x28e5f1)}},_0x274a65=await helper['nodeRequest'](_0x1fe905[_0x23d03c(0x17f)],_0x2ec54f,_0x7abd9d,_0x45cd67,_0xb8a080),_0x4823b1=_0x274a65&&_0x274a65[_0x23d03c(0x289)]&&_0x274a65['data'][_0x54beaa];if(!_0x4823b1)throw new Error(_0x23d03c(0x15c)+_0x5c2157+_0x23d03c(0x168)+_0x54beaa+':\x20'+JSON[_0x23d03c(0x1f1)](_0x274a65&&_0x274a65[_0x23d03c(0x289)]));_0x45cd67[_0x5c2157]=_0x4823b1,logger[_0x23d03c(0x16c)]('Detox\x20'+_0x5c2157+_0x23d03c(0x28a)+_0x4823b1);}}function collectDetoxSessionVerdicts(_0x44d4d3,_0xf9e547,_0x1b12d9){const _0x1c8177=a12_0x549475,_0x9e714b={};_0x9e714b[_0x1c8177(0x287)]=function(_0x32af87,_0x10caed){return _0x32af87===_0x10caed;},_0x9e714b['CTMmQ']=function(_0x1094ba,_0x17d143){return _0x1094ba+_0x17d143;},_0x9e714b['jADSH']=function(_0x2fa538,_0x3e6017){return _0x2fa538||_0x3e6017;},_0x9e714b[_0x1c8177(0x16e)]=function(_0x2a0c96,_0xe901e4){return _0x2a0c96===_0xe901e4;},_0x9e714b['smyPe']=_0x1c8177(0x244),_0x9e714b['OTNyT']=_0x1c8177(0x259),_0x9e714b[_0x1c8177(0x15a)]='utf8',_0x9e714b[_0x1c8177(0x25d)]=function(_0x1c7767,_0x48b7df){return _0x1c7767===_0x48b7df;},_0x9e714b[_0x1c8177(0x297)]=_0x1c8177(0x1de);const _0xef89f8=_0x9e714b,_0x5bcabc=new Map();try{_0x44d4d3&&fs[_0x1c8177(0x15d)](_0x44d4d3)&&fs['readFileSync'](_0x44d4d3,_0xef89f8[_0x1c8177(0x15a)])[_0x1c8177(0x27a)]('\x0a')['forEach'](_0x48021a=>{const _0xff5480=_0x1c8177,_0x3c80f2=_0x48021a[_0xff5480(0x1dd)]();if(!_0x3c80f2)return;const _0x361810=_0x3c80f2[_0xff5480(0x1a7)]('\x09'),_0x2b9ad7=_0xef89f8['pLKoC'](_0x361810,-0x1)?_0x3c80f2:_0x3c80f2[_0xff5480(0x1d6)](0x0,_0x361810),_0xe7a1e1=_0xef89f8['pLKoC'](_0x361810,-0x1)?'':_0x3c80f2[_0xff5480(0x1d6)](_0xef89f8[_0xff5480(0x222)](_0x361810,0x1));if(!_0x2b9ad7)return;(!_0x5bcabc[_0xff5480(0x268)](_0x2b9ad7)||_0xe7a1e1&&!_0x5bcabc[_0xff5480(0x173)](_0x2b9ad7))&&_0x5bcabc[_0xff5480(0x270)](_0x2b9ad7,_0xef89f8[_0xff5480(0x1be)](_0xe7a1e1,''));});}catch(_0x3f284d){logger['debug'](_0x1c8177(0x196)+(_0x3f284d&&_0x3f284d[_0x1c8177(0x238)]));}if(!_0x5bcabc[_0x1c8177(0x296)])return[];const _0x210974=new Map();try{_0xf9e547&&fs[_0x1c8177(0x15d)](_0xf9e547)&&fs[_0x1c8177(0x26b)](_0xf9e547,_0xef89f8[_0x1c8177(0x15a)])['split']('\x0a')['forEach'](_0x2a683b=>{const _0x39b15b=_0x1c8177,_0x25008a=_0x2a683b[_0x39b15b(0x1dd)]();if(!_0x25008a)return;let _0x48535c;try{_0x48535c=JSON[_0x39b15b(0x203)](_0x25008a);}catch(_0x376dc6){return;}if(!_0x48535c||!_0x48535c[_0x39b15b(0x24e)])return;const _0x3bcd77=_0x210974[_0x39b15b(0x173)](_0x48535c[_0x39b15b(0x24e)]),_0x1ded4d=_0x3bcd77&&_0xef89f8[_0x39b15b(0x16e)](_0x3bcd77[_0x39b15b(0x1ba)],_0xef89f8[_0x39b15b(0x17b)])||_0xef89f8['pLKoC'](_0x48535c[_0x39b15b(0x1ba)],_0xef89f8[_0x39b15b(0x17b)])?_0xef89f8[_0x39b15b(0x17b)]:_0xef89f8['OTNyT'];_0x210974['set'](_0x48535c['path'],{'status':_0x1ded4d,'name':_0x48535c[_0x39b15b(0x220)]||_0x3bcd77&&_0x3bcd77[_0x39b15b(0x220)]});});}catch(_0x2c85cf){logger[_0x1c8177(0x157)](_0x1c8177(0x1ed)+(_0x2c85cf&&_0x2c85cf[_0x1c8177(0x238)]));}const _0x498db1=[];for(const [_0x316ead,_0x26643d]of _0x5bcabc){const _0x17b837=_0x210974[_0x1c8177(0x173)](_0x26643d),_0x2bf152=_0x17b837?_0x17b837[_0x1c8177(0x1ba)]:_0xef89f8[_0x1c8177(0x287)](_0x1b12d9,0x0)?_0xef89f8[_0x1c8177(0x229)]:_0xef89f8[_0x1c8177(0x17b)];_0x498db1[_0x1c8177(0x1e2)]({'sessionId':_0x316ead,'status':_0x2bf152,'reason':_0xef89f8[_0x1c8177(0x25d)](_0x2bf152,_0xef89f8[_0x1c8177(0x229)])?_0xef89f8[_0x1c8177(0x297)]:_0x1c8177(0x1cd)+_0x1b12d9+')','name':_0x17b837&&_0x17b837['name']||'','specPath':_0x26643d});}return _0x498db1;}async function markDetoxSessionStatuses(_0x544f36,_0x17b8f4,_0x322a1c,_0x22bc90){const _0x3011e2=a12_0x549475,_0x4be84f={'fJsIN':function(_0x4d3ade,_0x2f63e3,_0x57f50b,_0x4c3d93){return _0x4d3ade(_0x2f63e3,_0x57f50b,_0x4c3d93);},'mGXoZ':'https://api-cloud.browserstack.com','zfhkw':function(_0x4bfe6d,_0x17da1b){return _0x4bfe6d&&_0x17da1b;},'zMTxs':_0x3011e2(0x1d2)},_0x3b6cd0=_0x4be84f['fJsIN'](collectDetoxSessionVerdicts,_0x544f36,_0x17b8f4,_0x322a1c);if(!_0x3b6cd0[_0x3011e2(0x26f)])return;const _0x5e6ce5=CLIUtils['shouldSkipSessionStatus'](_0x22bc90),_0x3e9ae5=CLIUtils[_0x3011e2(0x223)](_0x22bc90),_0x16539c=_0x22bc90['apis']&&_0x22bc90['apis']['appAutomate']&&_0x22bc90[_0x3011e2(0x25f)]['appAutomate'][_0x3011e2(0x232)]||constants[_0x3011e2(0x277)]||_0x4be84f[_0x3011e2(0x1dc)];for(const {sessionId:_0x5a109d,status:_0x7285e6,reason:_0x433d73,name:_0x480572}of _0x3b6cd0){const _0x4f98e2={};!_0x5e6ce5&&(_0x4f98e2[_0x3011e2(0x1ba)]=_0x7285e6,_0x4f98e2[_0x3011e2(0x14b)]=_0x433d73);_0x4be84f[_0x3011e2(0x17a)](!_0x3e9ae5,_0x480572)&&(_0x4f98e2[_0x3011e2(0x220)]=_0x480572);if(!Object['keys'](_0x4f98e2)['length'])continue;try{const _0x32dc56={};_0x32dc56['json']=_0x4f98e2,await helper[_0x3011e2(0x171)](_0x4be84f['zMTxs'],_0x3011e2(0x267)+_0x5a109d+_0x3011e2(0x22d),_0x32dc56,_0x22bc90,_0x16539c),logger[_0x3011e2(0x16c)](_0x3011e2(0x164)+_0x5a109d+(_0x4f98e2[_0x3011e2(0x1ba)]?_0x3011e2(0x23c)+_0x4f98e2[_0x3011e2(0x1ba)]:'')+(_0x4f98e2['name']?_0x3011e2(0x142)+_0x4f98e2['name']+')':''));}catch(_0x299302){logger['debug']('Could\x20not\x20mark\x20session\x20'+_0x5a109d+':\x20'+(_0x299302&&_0x299302[_0x3011e2(0x238)]));}}}const getSubcommand=_0x891607=>_0x891607[0x1],SDK_ONLY_ARG_MATCHERS=[a12_0x549475(0x23d),a12_0x549475(0x278)],isSdkOnlyArg=_0x3d3bb7=>{const _0x1a189d=a12_0x549475,_0x5d2c45={'DkMue':function(_0x4659b6,_0x5f4ac2){return _0x4659b6(_0x5f4ac2);}},_0xafac4e=_0x5d2c45[_0x1a189d(0x286)](String,_0x3d3bb7)[_0x1a189d(0x192)]();return _0xafac4e[_0x1a189d(0x18f)]('-')&&SDK_ONLY_ARG_MATCHERS['some'](_0x39429d=>_0xafac4e[_0x1a189d(0x18c)](_0x39429d));},stripSdkOnlyArgs=_0xf0e092=>{const _0x2112c5=a12_0x549475,_0x7aaafd={'TtZnb':function(_0x2c9c65,_0x164444){return _0x2c9c65<_0x164444;},'zkRxA':function(_0x5b652e,_0x11717d){return _0x5b652e(_0x11717d);},'UwWJu':function(_0x43506e,_0x3e4687){return _0x43506e(_0x3e4687);},'weMBb':function(_0x1aac28,_0x1a0a49){return _0x1aac28(_0x1a0a49);},'mgXpl':function(_0x3cb963,_0x298567){return _0x3cb963+_0x298567;},'spBhO':function(_0x432cb1,_0x49af70){return _0x432cb1(_0x49af70);}},_0x4679cb=[];for(let _0x307935=0x0;_0x7aaafd[_0x2112c5(0x200)](_0x307935,_0xf0e092[_0x2112c5(0x26f)]);_0x307935++){if(!_0x7aaafd[_0x2112c5(0x1d5)](isSdkOnlyArg,_0xf0e092[_0x307935])){_0x4679cb[_0x2112c5(0x1e2)](_0xf0e092[_0x307935]);continue;}const _0x591ce7=_0x7aaafd['UwWJu'](String,_0xf0e092[_0x307935])[_0x2112c5(0x18c)]('=')||_0x7aaafd[_0x2112c5(0x247)](String,_0xf0e092[_0x307935])[_0x2112c5(0x18c)](':');!_0x591ce7&&_0x7aaafd[_0x2112c5(0x200)](_0x7aaafd[_0x2112c5(0x226)](_0x307935,0x1),_0xf0e092[_0x2112c5(0x26f)])&&!_0x7aaafd[_0x2112c5(0x214)](String,_0xf0e092[_0x7aaafd['mgXpl'](_0x307935,0x1)])[_0x2112c5(0x18f)]('-')&&_0x307935++;}return _0x4679cb;},detoxArgs=_0x4030de=>stripSdkOnlyArgs(_0x4030de[a12_0x549475(0x1d6)](0x1)),withoutCredentials=_0x31a0bd=>{const _0x217c88=a12_0x549475,_0x453e1b=Object[_0x217c88(0x1bb)]({},_0x31a0bd);return constants['REDACTED_KEYS'][_0x217c88(0x26c)][_0x217c88(0x271)](_0x4d1fe6=>delete _0x453e1b[_0x4d1fe6]),_0x453e1b[_0x217c88(0x1d1)]&&(_0x453e1b[_0x217c88(0x1d1)]=Object[_0x217c88(0x1bb)]({},_0x453e1b[_0x217c88(0x1d1)]),constants[_0x217c88(0x1c1)][_0x217c88(0x1d1)][_0x217c88(0x271)](_0x550c0b=>delete _0x453e1b[_0x217c88(0x1d1)][_0x550c0b])),_0x453e1b[_0x217c88(0x22f)]&&(_0x453e1b[_0x217c88(0x22f)]=Object[_0x217c88(0x1bb)]({},_0x453e1b[_0x217c88(0x22f)]),constants[_0x217c88(0x1c1)][_0x217c88(0x1d1)][_0x217c88(0x271)](_0x113db9=>delete _0x453e1b[_0x217c88(0x22f)][_0x113db9])),_0x453e1b;},hasUserSelectedConfig=_0x27785f=>(_0x27785f||[])[a12_0x549475(0x18d)](_0x3b190c=>{const _0x28a4a9=a12_0x549475,_0x2085ca={'ASYlr':function(_0x55bfd1,_0x5b8608){return _0x55bfd1(_0x5b8608);},'PsMeX':function(_0x49b502,_0x1449d4){return _0x49b502===_0x1449d4;},'qLdSV':function(_0xa387f2,_0x40a883){return _0xa387f2===_0x40a883;},'EmTdE':_0x28a4a9(0x227),'FRJzF':_0x28a4a9(0x26e),'MZsxi':'--configuration='},_0x314b7b=_0x2085ca[_0x28a4a9(0x211)](String,_0x3b190c);return _0x2085ca[_0x28a4a9(0x152)](_0x314b7b,'-c')||_0x2085ca[_0x28a4a9(0x17d)](_0x314b7b,_0x2085ca['EmTdE'])||_0x314b7b['startsWith'](_0x2085ca[_0x28a4a9(0x28d)])||_0x314b7b[_0x28a4a9(0x18f)](_0x2085ca['MZsxi']);}),shardArgFor=(_0x1db086,_0x357f30,_0xec93ab=process['env'])=>{const _0x36c49c=a12_0x549475;if(!_0x1db086)return null;if(helper[_0x36c49c(0x25b)](_0xec93ab['BROWSERSTACK_DETOX_SHARD_SPECS']))return null;if((_0x357f30||[])[_0x36c49c(0x18d)](_0x4b742d=>/^(-R|--retries)(=|$)/[_0x36c49c(0x19b)](String(_0x4b742d))))return null;return _0x36c49c(0x1a6)+_0x1db086;},PATH_VALUE_FLAGS=new Set(['-C','--config-path','-c','--configuration','-o',a12_0x549475(0x145),'-a',a12_0x549475(0x15f),'--config',a12_0x549475(0x183),a12_0x549475(0x1e4),a12_0x549475(0x274),'--setupFiles',a12_0x549475(0x190),a12_0x549475(0x189),a12_0x549475(0x219),a12_0x549475(0x18a),'--transform',a12_0x549475(0x245),a12_0x549475(0x162),a12_0x549475(0x24c),a12_0x549475(0x23a),a12_0x549475(0x176),'--cacheDirectory','--outputFile',a12_0x549475(0x27b),'--testRegex',a12_0x549475(0x281),a12_0x549475(0x1ae),'--modulePathIgnorePatterns',a12_0x549475(0x1e7),'-t','--app-launch-args',a12_0x549475(0x1c5),a12_0x549475(0x20e)]),SPEC_EXT=/\.[jt]sx?$/,partitionSpecArgs=_0x2a9579=>{const _0xbf825e=a12_0x549475,_0x54f2dd={'NKpnH':function(_0x524c29,_0x4511f9){return _0x524c29<_0x4511f9;},'xzWys':function(_0x585bb0,_0x3735fc){return _0x585bb0(_0x3735fc);},'rxxMV':function(_0x549c27,_0x1fd29a){return _0x549c27+_0x1fd29a;},'rrnau':function(_0x1e8a51,_0xeec252){return _0x1e8a51(_0xeec252);}},_0x2b36de=[],_0x19b1bc=[],_0x2f4859=_0x2a9579||[];for(let _0x58eb73=0x0;_0x54f2dd[_0xbf825e(0x291)](_0x58eb73,_0x2f4859['length']);_0x58eb73++){const _0x26f996=_0x54f2dd['xzWys'](String,_0x2f4859[_0x58eb73]);if(_0x26f996[_0xbf825e(0x18f)]('-')){_0x19b1bc[_0xbf825e(0x1e2)](_0x2f4859[_0x58eb73]);PATH_VALUE_FLAGS[_0xbf825e(0x268)](_0x26f996)&&_0x54f2dd[_0xbf825e(0x291)](_0x54f2dd[_0xbf825e(0x158)](_0x58eb73,0x1),_0x2f4859[_0xbf825e(0x26f)])&&!_0x54f2dd[_0xbf825e(0x298)](String,_0x2f4859[_0x54f2dd[_0xbf825e(0x158)](_0x58eb73,0x1)])[_0xbf825e(0x18f)]('-')&&(_0x19b1bc[_0xbf825e(0x1e2)](_0x2f4859[_0x54f2dd[_0xbf825e(0x158)](_0x58eb73,0x1)]),_0x58eb73++);continue;}SPEC_EXT[_0xbf825e(0x19b)](_0x26f996)?_0x2b36de['push'](_0x2f4859[_0x58eb73]):_0x19b1bc[_0xbf825e(0x1e2)](_0x2f4859[_0x58eb73]);}const _0x45d8ea={};return _0x45d8ea[_0xbf825e(0x27c)]=_0x2b36de,_0x45d8ea['nonSpecArgs']=_0x19b1bc,_0x45d8ea;},planSlots=({configKeys:_0x363048,parallelsPerPlatform:_0x396c07,specArgs:_0x2fea44})=>{const _0x410bf3=a12_0x549475,_0x32f358={'pPjvf':function(_0x17b086,_0x403aad,_0x57036b){return _0x17b086(_0x403aad,_0x57036b);}},_0x14bb1b=_0x363048&&_0x363048['length']?_0x363048:[null],_0x5879b2=_0x2fea44||[],_0x54ef8=Math[_0x410bf3(0x1a3)](0x1,_0x32f358[_0x410bf3(0x17c)](parseInt,_0x396c07,0xa)||0x1),_0x2662df=[];return _0x14bb1b[_0x410bf3(0x271)](_0x1c5d81=>{const _0x3ecc32=_0x410bf3,_0x1f09f3=_0x5879b2['length']?Math[_0x3ecc32(0x1a3)](0x1,Math[_0x3ecc32(0x1e6)](_0x54ef8,_0x5879b2[_0x3ecc32(0x26f)])):_0x54ef8,_0x50dee5={};_0x50dee5[_0x3ecc32(0x26f)]=_0x1f09f3;const _0x127424=Array[_0x3ecc32(0x1b9)](_0x50dee5,()=>[]);_0x5879b2['forEach']((_0x55a88c,_0xf69040)=>_0x127424[_0xf69040%_0x1f09f3][_0x3ecc32(0x1e2)](_0x55a88c)),_0x127424[_0x3ecc32(0x271)]((_0x4d02c0,_0x327f18)=>_0x2662df['push']({'configKey':_0x1c5d81,'specs':_0x4d02c0,'shard':!_0x5879b2[_0x3ecc32(0x26f)]&&_0x1f09f3>0x1?_0x327f18+0x1+'/'+_0x1f09f3:null}));}),_0x2662df;};function a12_0x1f7d(_0x340468,_0x5dad81){const _0x46bbc4=a12_0x46bb();return a12_0x1f7d=function(_0x1f7d27,_0xc58997){_0x1f7d27=_0x1f7d27-0x142;let _0x24a925=_0x46bbc4[_0x1f7d27];return _0x24a925;},a12_0x1f7d(_0x340468,_0x5dad81);}function assertLocalTunnelBound(_0x11206c,_0x53c02a){const _0xf85eb=a12_0x549475,_0x533724={};_0x533724[_0xf85eb(0x28c)]=_0xf85eb(0x237),_0x533724[_0xf85eb(0x20a)]=function(_0x1fc201,_0x3116e){return _0x1fc201+_0x3116e;},_0x533724[_0xf85eb(0x1e1)]=function(_0x1910df,_0x54bed5){return _0x1910df+_0x54bed5;},_0x533724['ogbQy']='browserstackLocal\x20is\x20enabled\x20but\x20the\x20BrowserStack\x20Local\x20tunnel\x20is\x20not\x20bound\x20to\x20this\x20Detox\x20run,\x20',_0x533724[_0xf85eb(0x161)]='so\x20the\x20app\x20under\x20test\x20would\x20not\x20be\x20able\x20to\x20reach\x20your\x20local\x20host.\x20Refusing\x20to\x20run\x20the\x20suite\x20',_0x533724[_0xf85eb(0x172)]=_0xf85eb(0x25a),_0x533724[_0xf85eb(0x1f9)]=_0xf85eb(0x29a),_0x533724['iMKTl']='same\x20localIdentifier\x20and\x20an\x20invalid\x20access\x20key\x20are\x20the\x20usual\x20causes).',_0x533724[_0xf85eb(0x1d0)]=function(_0x2cc33b,_0x1dabd0){return _0x2cc33b+_0x1dabd0;},_0x533724[_0xf85eb(0x1f8)]=_0xf85eb(0x279),_0x533724['mXSsw']='so\x20the\x20SDK\x20cannot\x20confirm\x20the\x20Local\x20tunnel\x20is\x20bound\x20to\x20this\x20run.\x20If\x20the\x20app\x20under\x20test\x20cannot\x20',_0x533724[_0xf85eb(0x264)]=_0xf85eb(0x1f0),_0x533724[_0xf85eb(0x1ca)]=function(_0x592b5e,_0x45e6b0){return _0x592b5e!==_0x45e6b0;},_0x533724[_0xf85eb(0x1fc)]=_0xf85eb(0x27f),_0x533724['sfoLP']=function(_0x594e59,_0x59ee14){return _0x594e59+_0x59ee14;},_0x533724[_0xf85eb(0x290)]=_0xf85eb(0x215),_0x533724[_0xf85eb(0x1c6)]=_0xf85eb(0x184);const _0xa3899a=_0x533724,_0x477657=_0xa3899a[_0xf85eb(0x28c)][_0xf85eb(0x27a)]('|');let _0x5c72df=0x0;while(!![]){switch(_0x477657[_0x5c72df++]){case'0':throw new Error(_0xa3899a[_0xf85eb(0x20a)](_0xa3899a[_0xf85eb(0x20a)](_0xa3899a[_0xf85eb(0x1e1)](_0xa3899a['fwtAs'](_0xa3899a[_0xf85eb(0x1aa)],_0xa3899a[_0xf85eb(0x161)]),_0xa3899a[_0xf85eb(0x172)]),_0xa3899a['GAcUM']),_0xa3899a['iMKTl']));continue;case'1':if(!_0x53c02a){logger[_0xf85eb(0x20d)](_0xa3899a['hbyaH'](_0xa3899a[_0xf85eb(0x1e1)](_0xa3899a[_0xf85eb(0x1f8)],_0xa3899a[_0xf85eb(0x1e3)]),_0xa3899a['HZSiI']));return;}continue;case'2':if(_0x53c02a[_0xf85eb(0x20c)])return;continue;case'3':if(_0xa3899a['FTUug'](typeof _0x53c02a['localBound'],_0xa3899a[_0xf85eb(0x1fc)])){logger[_0xf85eb(0x20d)](_0xa3899a[_0xf85eb(0x1e1)](_0xa3899a[_0xf85eb(0x17e)](_0xa3899a[_0xf85eb(0x290)],_0xa3899a[_0xf85eb(0x1c6)]),_0xa3899a['HZSiI']));return;}continue;case'4':if(!helper['getLocalConfig'](_0x11206c))return;continue;}break;}}async function shutdownBinarySession(){const _0x1040d3=a12_0x549475;try{await TestHubHandler[_0x1040d3(0x230)]();}catch(_0x2319b3){logger['debug'](_0x1040d3(0x208)+(_0x2319b3&&_0x2319b3[_0x1040d3(0x238)]));}const _0x35bd5e=BrowserstackCLI['getInstance']();if(_0x35bd5e)try{await _0x35bd5e[_0x1040d3(0x230)]();}catch(_0x5f40ac){logger['debug']('Error\x20stopping\x20BrowserStack\x20CLI:\x20'+(_0x5f40ac&&_0x5f40ac[_0x1040d3(0x238)]));}}const screenshotDirFor=(_0x51e08f=process['pid'])=>path[a12_0x549475(0x150)](os['tmpdir'](),a12_0x549475(0x1f4)+_0x51e08f),ensureScreenshotDir=_0x263887=>{const _0x55f96f=a12_0x549475;try{const _0x5116ba={};return _0x5116ba[_0x55f96f(0x206)]=!![],fs['mkdirSync'](_0x263887,_0x5116ba),!![];}catch(_0x864e42){return logger['debug'](_0x55f96f(0x15e)+(_0x864e42&&_0x864e42[_0x55f96f(0x238)])),![];}},collectScreenshotPaths=(_0x20013a,_0x36fd85)=>{const _0x245e20=a12_0x549475,_0x5c2979=[];try{fs[_0x245e20(0x199)](_0x20013a)[_0x245e20(0x271)](_0x81fe00=>_0x5c2979['push'](path[_0x245e20(0x150)](_0x20013a,_0x81fe00)));}catch(_0x20aafc){}return(_0x36fd85||[])[_0x245e20(0x271)](_0x39d409=>{const _0x208f32=_0x245e20;for(const _0x2305b2 of _0x39d409[_0x208f32(0x19c)]['values']()){(_0x2305b2[_0x208f32(0x1a1)]||[])[_0x208f32(0x271)](_0x1fc039=>{const _0x51974a=_0x208f32;_0x1fc039[_0x51974a(0x29c)]&&!_0x5c2979['includes'](_0x1fc039[_0x51974a(0x29c)])&&_0x5c2979[_0x51974a(0x1e2)](_0x1fc039[_0x51974a(0x29c)]);});}}),_0x5c2979;},registerCredentialArtifactCleanup=(_0x37a50f,_0x5bb38d=process[a12_0x549475(0x1ef)])=>{const _0x24c879=a12_0x549475,_0x26a23c={'dREyZ':function(_0xfb3769){return _0xfb3769();},'VgPHI':_0x24c879(0x1ea),'tjIgK':_0x24c879(0x1a9),'spjDU':_0x24c879(0x1cf)},_0x4f305a=()=>{const _0x1caef5=_0x24c879;if(helper[_0x1caef5(0x1b5)](_0x5bb38d[_0x1caef5(0x272)]))return;(_0x37a50f||[])['forEach'](_0x6550ad=>{const _0x390be0=_0x1caef5;try{_0x6550ad&&fs[_0x390be0(0x15d)](_0x6550ad)&&fs[_0x390be0(0x1b4)](_0x6550ad);}catch(_0x39efa5){}});};return process[_0x24c879(0x262)](_0x26a23c[_0x24c879(0x179)],_0x4f305a),[_0x26a23c['tjIgK'],_0x26a23c[_0x24c879(0x21a)]]['forEach'](_0x1c3b3d=>{const _0x203286=_0x24c879;process[_0x203286(0x262)](_0x1c3b3d,()=>{const _0x332527=_0x203286;_0x26a23c[_0x332527(0x24f)](_0x4f305a);try{process[_0x332527(0x252)](process[_0x332527(0x221)],_0x1c3b3d);}catch(_0x38e9ee){process[_0x332527(0x1ea)](0x1);}});}),_0x4f305a;},sweepScreenshotDir=(_0x18c7fc,_0x167d9b=process[a12_0x549475(0x1ef)])=>{const _0x2712e8=a12_0x549475;if(helper[_0x2712e8(0x1b5)](_0x167d9b[_0x2712e8(0x272)]))return![];try{return fs[_0x2712e8(0x1cc)](_0x18c7fc),!![];}catch(_0x379fa2){}return![];},abortWithShutdown=async(_0x52e7c2,_0x309a75=shutdownBinarySession)=>{const _0x48b91=a12_0x549475,_0x5c037c={'bQKSN':function(_0x56dbc9){return _0x56dbc9();}};try{return await _0x5c037c[_0x48b91(0x18b)](_0x52e7c2);}catch(_0x4fb4a4){try{await _0x5c037c[_0x48b91(0x18b)](_0x309a75);}catch(_0x15dc60){logger[_0x48b91(0x157)](_0x48b91(0x209)+(_0x15dc60&&_0x15dc60[_0x48b91(0x238)]));}throw _0x4fb4a4;}};async function run(_0xa5ea60,_0x2ebbed,_0x212e15){const _0x476f63=a12_0x549475,_0x29546d={'haDHA':function(_0x52fd1c,_0x281abc){return _0x52fd1c===_0x281abc;},'JfBuu':function(_0x352d1e,_0x3fca0b){return _0x352d1e||_0x3fca0b;},'knUlm':_0x476f63(0x1e9),'DcOuX':function(_0x2ca26d,_0x4894b6){return _0x2ca26d(_0x4894b6);},'bnIEj':_0x476f63(0x1ce),'HlOHW':'--config-path','oCnvu':function(_0x96fed2,_0x3c5742,_0x1420d0){return _0x96fed2(_0x3c5742,_0x1420d0);},'suvJV':function(_0xbbfedc,_0x3379c5,_0x400b2c,_0x4c4ff0){return _0xbbfedc(_0x3379c5,_0x400b2c,_0x4c4ff0);},'feFdI':function(_0x468a8a){return _0x468a8a();},'ZytPL':_0x476f63(0x1a0),'zEThb':_0x476f63(0x194),'ngvym':'build','CIndF':_0x476f63(0x14c),'fUsOP':function(_0x42f68d,_0x48ab7a,_0x10259c,_0x114a13){return _0x42f68d(_0x48ab7a,_0x10259c,_0x114a13);},'SWfaY':function(_0x2cf3bd,_0x46c4c1){return _0x2cf3bd(_0x46c4c1);},'fNVhZ':_0x476f63(0x170),'NaUTl':function(_0x4f1acb,_0x246926){return _0x4f1acb(_0x246926);},'EaTmL':_0x476f63(0x243),'QiLUm':function(_0x16bfe3,_0x110f35){return _0x16bfe3(_0x110f35);},'wqNcJ':'DetoxConfig\x20RPC\x20returned\x20no\x20configurations;\x20using\x20the\x20SDK-local\x20capability\x20builder.','glOHB':function(_0x2cf0d3,_0x44ccff){return _0x2cf0d3(_0x44ccff);},'yDGRK':function(_0x58f715,_0x525932){return _0x58f715(_0x525932);},'QdAcE':_0x476f63(0x188),'yRole':function(_0x43d2f5,_0x47b5e2){return _0x43d2f5(_0x47b5e2);},'hZibI':_0x476f63(0x240),'GvAlP':function(_0x32dd24,_0xd33f12){return _0x32dd24(_0xd33f12);},'siZNA':function(_0x3689ee,_0x4b0be4){return _0x3689ee(_0x4b0be4);},'VkTtC':function(_0x2e0217,_0x3f23e4,_0x5ccce7){return _0x2e0217(_0x3f23e4,_0x5ccce7);},'LSyGK':function(_0x3d84bf,_0xf7702e){return _0x3d84bf!==_0xf7702e;},'oHdzq':function(_0x3920e2,_0x2b05f9){return _0x3920e2*_0x2b05f9;},'iVouv':function(_0x3a7ed5,_0x4a5d12){return _0x3a7ed5+_0x4a5d12;},'ZGtdg':function(_0x4496fd,_0x2a1cf0){return _0x4496fd*_0x2a1cf0;},'LdCMO':function(_0x129114,_0x3316f2){return _0x129114(_0x3316f2);},'WXijh':function(_0x43c075,_0x3dca94){return _0x43c075(_0x3dca94);},'cyfMH':function(_0x5b20e6,_0x212077){return _0x5b20e6>_0x212077;},'jsHkI':function(_0xbc6291,_0x3c28cd){return _0xbc6291/_0x3c28cd;},'YpwpF':function(_0x8453ad){return _0x8453ad();},'UWwhN':function(_0x336309,_0x2e22e0){return _0x336309&&_0x2e22e0;},'ioLym':function(_0xf114c7,_0x496926,_0x5e6926,_0x481fa7,_0x2c0974){return _0xf114c7(_0x496926,_0x5e6926,_0x481fa7,_0x2c0974);},'CXEZm':function(_0x1c2bfc,_0xd71661,_0x20e57b){return _0x1c2bfc(_0xd71661,_0x20e57b);}};if(!_0x212e15['config'])return;if(_0x29546d[_0x476f63(0x154)](_0x29546d[_0x476f63(0x228)](getSubcommand,_0x2ebbed),_0x29546d[_0x476f63(0x186)])){logger[_0x476f63(0x16c)](_0x29546d[_0x476f63(0x1c2)]);const _0x549694=_0x29546d['fUsOP'](spawn,_0x29546d[_0x476f63(0x14a)](detoxBinary),_0x29546d[_0x476f63(0x228)](detoxArgs,_0x2ebbed),{'stdio':_0x29546d[_0x476f63(0x1e8)],'env':process[_0x476f63(0x1ef)]});_0x549694['on'](_0x29546d[_0x476f63(0x195)],_0x14deaa=>{const _0x542f1c=_0x476f63;process[_0x542f1c(0x1e0)]=_0x14deaa;});return;}process[_0x476f63(0x1ef)][_0x476f63(0x147)]=process[_0x476f63(0x1ef)]['BROWSERSTACK_FRAMEWORK']||_0x29546d[_0x476f63(0x224)],await _0x212e15['initialize'](_0xa5ea60);if(helper[_0x476f63(0x254)](process[_0x476f63(0x1ef)]['BROWSERSTACK_CLIENT_DETOX_VERSION'])&&helper[_0x476f63(0x254)](_0x212e15[_0x476f63(0x24b)]['clientDetoxVersion']))try{const _0x174991=helper['getPackageVersion'](_0x29546d[_0x476f63(0x224)]);_0x174991&&(process[_0x476f63(0x1ef)][_0x476f63(0x1b0)]=_0x174991,_0x212e15[_0x476f63(0x24b)][_0x476f63(0x14f)]=_0x174991);}catch(_0xbf2a12){logger[_0x476f63(0x157)](_0x476f63(0x16b)+(_0xbf2a12&&_0xbf2a12[_0x476f63(0x238)]));}CLIUtils[_0x476f63(0x212)](constants[_0x476f63(0x257)][_0x476f63(0x239)]||_0x29546d[_0x476f63(0x224)],constants['FRAMEWORKS'][_0x476f63(0x239)]||_0x29546d[_0x476f63(0x224)]);(helper[_0x476f63(0x254)](_0x212e15['config'][_0x476f63(0x29b)])||_0x29546d[_0x476f63(0x154)](_0x212e15[_0x476f63(0x24b)][_0x476f63(0x29b)],''))&&(_0x212e15['config']['buildName']=path['basename'](process['cwd']()),process[_0x476f63(0x1ef)][_0x476f63(0x180)]=_0x212e15[_0x476f63(0x24b)][_0x476f63(0x29b)],logger[_0x476f63(0x16c)]('No\x20buildName\x20configured;\x20using\x20\x22'+_0x212e15[_0x476f63(0x24b)]['buildName']+_0x476f63(0x1ec)));!helper[_0x476f63(0x254)](_0x212e15[_0x476f63(0x24b)][_0x476f63(0x1ac)])&&(process[_0x476f63(0x1ef)][_0x476f63(0x1a5)]=_0x29546d[_0x476f63(0x14e)](String,_0x212e15[_0x476f63(0x24b)][_0x476f63(0x1ac)]));helper[_0x476f63(0x25b)](_0x212e15[_0x476f63(0x24b)]['browserstackAutomation'])&&logger[_0x476f63(0x20d)](_0x29546d[_0x476f63(0x19e)]);const {getProductMap:_0x1a4489}=_0x29546d[_0x476f63(0x24d)](require,_0x29546d[_0x476f63(0x151)]);process[_0x476f63(0x1ef)][_0x476f63(0x246)]=JSON[_0x476f63(0x1f1)](_0x29546d[_0x476f63(0x178)](_0x1a4489,_0x212e15['config']));const _0x45f79b=BrowserstackCLI[_0x476f63(0x210)]();_0x45f79b&&(_0x45f79b[_0x476f63(0x15b)](_0x212e15[_0x476f63(0x24b)],_0x212e15[_0x476f63(0x182)],_0x212e15[_0x476f63(0x225)]),await _0x45f79b[_0x476f63(0x282)](),_0x45f79b[_0x476f63(0x26d)]&&(process['env'][_0x476f63(0x1f5)]=_0x45f79b[_0x476f63(0x26d)]));let _0xb52286=null;if(_0x45f79b&&_0x45f79b[_0x476f63(0x26d)])try{_0xb52286=await GrpcClient['getInstance']()[_0x476f63(0x1b1)](),!_0xb52286||!Array[_0x476f63(0x261)](_0xb52286['configurations'])||!_0xb52286['configurations'][_0x476f63(0x26f)]?(_0xb52286=null,logger[_0x476f63(0x20d)](_0x29546d[_0x476f63(0x248)])):logger['info'](_0x476f63(0x265)+_0xb52286['configurations'][_0x476f63(0x26f)]+_0x476f63(0x21c)+_0xb52286[_0x476f63(0x181)]+')');}catch(_0xe9a1de){logger['warn']('DetoxConfig\x20RPC\x20unavailable\x20('+(_0xe9a1de&&_0xe9a1de[_0x476f63(0x238)])+_0x476f63(0x26a));}await _0x29546d[_0x476f63(0x1d9)](abortWithShutdown,()=>assertLocalTunnelBound(_0x212e15[_0x476f63(0x24b)],_0xb52286));!_0xb52286&&await _0x29546d[_0x476f63(0x1f2)](abortWithShutdown,()=>uploadDetoxAppsIfLocal(_0x212e15['config']));const _0x3aa1b7=path[_0x476f63(0x150)](process['cwd'](),_0x29546d['QdAcE']);fs[_0x476f63(0x293)](_0x3aa1b7,helper[_0x476f63(0x21f)](_0x29546d[_0x476f63(0x1f2)](withoutCredentials,_0x212e15[_0x476f63(0x24b)]))),process[_0x476f63(0x1ef)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x3aa1b7;const _0x54903a=detoxA11y['arm'](_0x45f79b,_0x212e15[_0x476f63(0x24b)]),_0x13eda5=modifyDetoxConf[_0x476f63(0x1eb)]();_0x13eda5&&(process['env'][_0x476f63(0x256)]=_0x13eda5);const {configPath:_0x14eeec,jestConfigPath:_0x4017bc}=modifyDetoxConf[_0x476f63(0x241)](_0x212e15[_0x476f63(0x24b)],_0x13eda5,_0xb52286&&_0xb52286['configurations']);logger[_0x476f63(0x16c)](_0x476f63(0x20f)+_0x14eeec);_0x4017bc&&logger[_0x476f63(0x16c)](_0x476f63(0x148)+_0x4017bc);_0x29546d[_0x476f63(0x160)](registerCredentialArtifactCleanup,[_0x14eeec,_0x3aa1b7,_0x54903a,_0x4017bc]);const _0x3c730c=require['resolve'](_0x29546d[_0x476f63(0x1d4)]),_0x4dc369=process[_0x476f63(0x1ef)][_0x476f63(0x144)]||'',_0x4d247c=_0x476f63(0x1a4)+JSON['stringify'](_0x3c730c),_0x31ac06=_0x4dc369?_0x4dc369+'\x20'+_0x4d247c:_0x4d247c,_0x29a9ce=_0x29546d['GvAlP'](detoxArgs,_0x2ebbed),_0x3ddb30=_0x29546d[_0x476f63(0x193)](hasUserSelectedConfig,_0x29a9ce),_0x3e8f32=_0x3ddb30?[null]:_0xb52286?_0xb52286[_0x476f63(0x1df)][_0x476f63(0x24a)](_0x45ebb1=>_0x45ebb1[_0x476f63(0x202)]):modifyDetoxConf[_0x476f63(0x169)](_0x212e15[_0x476f63(0x24b)]),_0x534c10=_0x3ddb30?0x1:_0x29546d['VkTtC'](parseInt,_0x212e15[_0x476f63(0x24b)]['parallelsPerPlatform'],0xa)||0x1,_0x220b57=_0xb52286?_0x29546d[_0x476f63(0x201)](parseInt,_0xb52286[_0x476f63(0x181)],0xa):NaN;Number[_0x476f63(0x23f)](_0x220b57)&&_0x3e8f32[_0x476f63(0x26f)]&&_0x29546d[_0x476f63(0x174)](_0x220b57,_0x29546d[_0x476f63(0x1ad)](_0x3e8f32['length'],_0x534c10))&&logger['warn'](_0x29546d[_0x476f63(0x284)](_0x476f63(0x22b)+_0x220b57+_0x476f63(0x1c9)+_0x29546d[_0x476f63(0x22a)](_0x3e8f32[_0x476f63(0x26f)],_0x534c10)+'\x20','slot(s)\x20('+_0x3e8f32[_0x476f63(0x26f)]+_0x476f63(0x205)+_0x534c10+_0x476f63(0x266)));const {specArgs:_0x421447,nonSpecArgs:_0x4f7de4}=_0x29546d[_0x476f63(0x19f)](partitionSpecArgs,_0x29a9ce),_0x91749a={};_0x91749a['configKeys']=_0x3e8f32,_0x91749a['parallelsPerPlatform']=_0x534c10,_0x91749a[_0x476f63(0x27c)]=_0x421447;const _0x2e24de=_0x29546d[_0x476f63(0x1bc)](planSlots,_0x91749a);_0x421447[_0x476f63(0x26f)]&&_0x29546d[_0x476f63(0x285)](_0x534c10,_0x421447[_0x476f63(0x26f)])&&logger[_0x476f63(0x16c)]('parallelsPerPlatform='+_0x534c10+_0x476f63(0x1fb)+_0x421447[_0x476f63(0x26f)]+_0x476f63(0x249)+_0x29546d[_0x476f63(0x242)](_0x2e24de[_0x476f63(0x26f)],_0x3e8f32[_0x476f63(0x26f)]||0x1)+'\x20slot(s)\x20per\x20platform.');const _0x2d494d=((()=>{const _0x27a772=_0x476f63;try{return _0x29546d[_0x27a772(0x154)](JSON['parse'](process['env'][_0x27a772(0x246)]||'{}')[_0x27a772(0x207)],!![]);}catch(_0x4317a3){return![];}})()),_0x3162b1=_0x29546d[_0x476f63(0x217)](screenshotDirFor);_0x29546d['SWfaY'](ensureScreenshotDir,_0x3162b1);const _0x296786=[],_0x2700be=({configKey:_0x26ed05,specs:_0x1f0ebd,shard:_0x152e06},_0x3566f7)=>new Promise(_0x17a30b=>{const _0x2a6153=_0x476f63,_0x5a4c11={'ylbxI':function(_0x303041,_0x2cec86){return _0x29546d['JfBuu'](_0x303041,_0x2cec86);},'OGqeS':_0x29546d['knUlm'],'gWYwI':function(_0x1177d9,_0x5cbfe1){return _0x29546d['DcOuX'](_0x1177d9,_0x5cbfe1);}},_0x11d4e6=path[_0x2a6153(0x150)](os[_0x2a6153(0x204)](),_0x2a6153(0x1d8)+process[_0x2a6153(0x221)]+'-'+_0x3566f7+_0x2a6153(0x28e)),_0x533a44=path['join'](os[_0x2a6153(0x204)](),_0x2a6153(0x269)+process['pid']+'-'+_0x3566f7+_0x2a6153(0x28e)),_0x5b28d7=_0x2d494d?path[_0x2a6153(0x150)](os[_0x2a6153(0x204)](),_0x2a6153(0x27d)+process[_0x2a6153(0x221)]+'-'+_0x3566f7+'.jsonl'):null;try{fs[_0x2a6153(0x293)](_0x11d4e6,''),fs[_0x2a6153(0x293)](_0x533a44,''),_0x5b28d7&&fs['writeFileSync'](_0x5b28d7,'');}catch(_0x517994){logger[_0x2a6153(0x157)](_0x2a6153(0x1ff)+(_0x517994&&_0x517994['message']));}const _0x4f3bc3={};_0x4f3bc3[_0x2a6153(0x25c)]=_0x11d4e6,_0x4f3bc3['resultsFile']=_0x533a44,_0x4f3bc3['traEventsFile']=_0x5b28d7,_0x4f3bc3[_0x2a6153(0x280)]=_0x26ed05,_0x4f3bc3['slotIndex']=_0x3566f7,_0x296786[_0x2a6153(0x1e2)](_0x4f3bc3);const _0x538bc6=Object['assign']({},process[_0x2a6153(0x1ef)],{'NODE_OPTIONS':_0x31ac06,'BROWSERSTACK_FRAMEWORK':process[_0x2a6153(0x1ef)]['BROWSERSTACK_FRAMEWORK']||_0x29546d[_0x2a6153(0x224)],'BROWSERSTACK_DETOX_SESSION_IDS_FILE':_0x11d4e6,'BROWSERSTACK_DETOX_TEST_RESULTS_FILE':_0x533a44,'BROWSERSTACK_DETOX_SCREENSHOT_DIR':_0x3162b1},_0x5b28d7?{'BROWSERSTACK_DETOX_TRA_EVENTS_FILE':_0x5b28d7}:{});delete _0x538bc6[_0x2a6153(0x1f5)];const _0x42edfe=_0x4f7de4[_0x2a6153(0x1c4)]([_0x29546d[_0x2a6153(0x1c7)],_0x14eeec],_0x1f0ebd);_0x26ed05&&_0x42edfe[_0x2a6153(0x1e2)]('-c',_0x26ed05);const _0x365d6d=_0x29546d[_0x2a6153(0x201)](shardArgFor,_0x152e06,_0x4f7de4);_0x365d6d&&_0x42edfe['push'](_0x365d6d);const _0x2f0164=_0x29546d['suvJV'](spawn,_0x29546d[_0x2a6153(0x14a)](detoxBinary),_0x42edfe,{'stdio':_0x29546d[_0x2a6153(0x1e8)],'env':_0x538bc6});_0x2f0164['on'](_0x29546d['zEThb'],_0xb7d032=>{const _0x15d34b=_0x2a6153;logger[_0x15d34b(0x157)](_0x15d34b(0x1fe)+_0x3566f7+_0x15d34b(0x250)+_0x5a4c11[_0x15d34b(0x295)](_0x26ed05,_0x5a4c11[_0x15d34b(0x155)])+_0x15d34b(0x235)+(_0x1f0ebd[_0x15d34b(0x26f)]?_0x1f0ebd[_0x15d34b(0x150)](','):'from\x20config'+(_0x152e06?'\x20shard\x20'+_0x152e06:''))+_0x15d34b(0x283)+_0xb7d032),_0x5a4c11['gWYwI'](_0x17a30b,_0x5a4c11[_0x15d34b(0x295)](_0xb7d032,0x0));});}),_0x227f92=await Promise[_0x476f63(0x191)](_0x2e24de[_0x476f63(0x24a)]((_0x291200,_0x3a65d7)=>_0x2700be(_0x291200,_0x3a65d7))),_0x3ba072=_0x227f92[_0x476f63(0x218)](_0x23b6b8=>_0x23b6b8!==0x0)||0x0;let _0x4b1870=null;if(_0x2d494d)try{_0x4b1870=traEmitter[_0x476f63(0x167)](_0x296786);}catch(_0x1fa165){logger[_0x476f63(0x20d)]('Detox\x20TRA\x20capture\x20parsing\x20failed\x20('+(_0x1fa165&&_0x1fa165[_0x476f63(0x238)])+_0x476f63(0x216)),_0x4b1870=null;}const _0x34f9c4=_0x296786['reduce']((_0x22911e,_0x390c41,_0x4d5322)=>{const _0x349311=_0x476f63,_0x31514a=_0x29546d[_0x349311(0x1cb)](collectDetoxSessionVerdicts,_0x390c41[_0x349311(0x25c)],_0x390c41[_0x349311(0x276)],_0x3ba072);if(_0x4b1870&&_0x4b1870[_0x4d5322])try{traEmitter[_0x349311(0x1a8)](_0x31514a,_0x4b1870[_0x4d5322],_0x212e15[_0x349311(0x24b)][_0x349311(0x16d)]);}catch(_0x1a25e7){logger[_0x349311(0x20d)]('Detox\x20TRA\x20verdict\x20enrichment\x20failed\x20for\x20slot\x20'+_0x4d5322+'\x20('+(_0x1a25e7&&_0x1a25e7['message'])+').');}return _0x22911e[_0x349311(0x1c4)](_0x31514a);},[]);if(_0x29546d[_0x476f63(0x1a2)](_0x4b1870,_0x45f79b)&&_0x45f79b['binSessionId'])try{const _0x469d42=helper[_0x476f63(0x255)](_0x29546d[_0x476f63(0x224)])||'',_0x2c0cac={};_0x2c0cac[_0x476f63(0x1b2)]=_0x469d42,await traEmitter['emitTraEvents'](GrpcClient[_0x476f63(0x210)](),_0x4b1870,_0x2c0cac);}catch(_0x337ea0){logger[_0x476f63(0x20d)](_0x476f63(0x233)+(_0x337ea0&&_0x337ea0['message'])+_0x476f63(0x21d));}let _0x32d77a=![];if(_0x45f79b&&_0x45f79b['binSessionId']&&_0x34f9c4[_0x476f63(0x26f)])try{_0x32d77a=await GrpcClient[_0x476f63(0x210)]()[_0x476f63(0x19d)](_0x34f9c4),_0x32d77a&&logger[_0x476f63(0x16c)](_0x476f63(0x156)+_0x34f9c4[_0x476f63(0x26f)]+_0x476f63(0x299));}catch(_0x3fd13c){logger[_0x476f63(0x20d)](_0x476f63(0x159)+(_0x3fd13c&&_0x3fd13c[_0x476f63(0x238)])+_0x476f63(0x1d7));}const _0xddce47=BrowserstackCLI['isCLIEnabled']();await _0x29546d['YpwpF'](shutdownBinarySession);if(!_0x32d77a)for(const {sessionIdsFile:_0x1ad36d,resultsFile:_0x20e723}of _0x296786){await _0x29546d[_0x476f63(0x275)](markDetoxSessionStatuses,_0x1ad36d,_0x20e723,_0x3ba072,_0x212e15[_0x476f63(0x24b)]);}try{testOpsHelper[_0x476f63(0x1bf)]();}catch(_0x22ef6a){logger[_0x476f63(0x157)]('Could\x20not\x20print\x20the\x20TestHub\x20build\x20link:\x20'+(_0x22ef6a&&_0x22ef6a[_0x476f63(0x238)]));}try{await utilities[_0x476f63(0x143)](_0x212e15,_0xddce47);}catch(_0x5b4f20){logger[_0x476f63(0x157)](_0x476f63(0x28b)+(_0x5b4f20&&_0x5b4f20[_0x476f63(0x238)]));}const _0x43f52a=_0x296786[_0x476f63(0x253)]((_0x21ba1c,_0x501e8e)=>_0x21ba1c[_0x476f63(0x1c4)]([_0x501e8e[_0x476f63(0x25c)],_0x501e8e[_0x476f63(0x276)],_0x501e8e['traEventsFile']]),[]),_0x576541=_0x29546d[_0x476f63(0x1e5)](collectScreenshotPaths,_0x3162b1,_0x4b1870),_0x552028=helper[_0x476f63(0x1b5)](process[_0x476f63(0x1ef)][_0x476f63(0x272)])?[]:[_0x14eeec,_0x4017bc,_0x3aa1b7,_0x54903a]['concat'](_0x43f52a)[_0x476f63(0x1c4)](_0x576541);_0x552028[_0x476f63(0x271)](_0x216851=>{const _0x27c5d4=_0x476f63;try{_0x216851&&fs[_0x27c5d4(0x15d)](_0x216851)&&fs['unlinkSync'](_0x216851);}catch(_0x5cca6b){logger['debug']('Error\x20removing\x20'+_0x216851+':\x20'+(_0x5cca6b&&_0x5cca6b[_0x27c5d4(0x238)]));}}),_0x29546d['NaUTl'](sweepScreenshotDir,_0x3162b1),process[_0x476f63(0x1e0)]=_0x3ba072;}module['exports']=run,module[a12_0x549475(0x163)]['markDetoxSessionStatuses']=markDetoxSessionStatuses,module[a12_0x549475(0x163)][a12_0x549475(0x153)]=collectDetoxSessionVerdicts,module[a12_0x549475(0x163)]['stripSdkOnlyArgs']=stripSdkOnlyArgs,module[a12_0x549475(0x163)][a12_0x549475(0x198)]=assertLocalTunnelBound,module[a12_0x549475(0x163)]['hasUserSelectedConfig']=hasUserSelectedConfig,module[a12_0x549475(0x163)][a12_0x549475(0x21b)]=planSlots,module[a12_0x549475(0x163)]['shardArgFor']=shardArgFor,module[a12_0x549475(0x163)][a12_0x549475(0x1da)]=partitionSpecArgs,module['exports'][a12_0x549475(0x22c)]=abortWithShutdown,module[a12_0x549475(0x163)]['screenshotDirFor']=screenshotDirFor,module[a12_0x549475(0x163)][a12_0x549475(0x1b8)]=ensureScreenshotDir,module[a12_0x549475(0x163)][a12_0x549475(0x1fa)]=collectScreenshotPaths,module[a12_0x549475(0x163)][a12_0x549475(0x197)]=sweepScreenshotDir,module[a12_0x549475(0x163)]['registerCredentialArtifactCleanup']=registerCredentialArtifactCleanup,module[a12_0x549475(0x163)][a12_0x549475(0x175)]=withoutCredentials;