browserstack-node-sdk 1.62.0 → 1.63.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 (220) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/load/index.js +193 -12
  75. package/src/bin/load/load/loadErrors.js +248 -0
  76. package/src/bin/load/loadErrors.js +1 -0
  77. package/src/bin/load/loadUtils.js +1 -1
  78. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  79. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  80. package/src/bin/mocha/command.js +1 -1
  81. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  82. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  83. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  84. package/src/bin/mocha/test.setup.js +1 -1
  85. package/src/bin/newman/command.js +1 -1
  86. package/src/bin/newman/helper.js +1 -1
  87. package/src/bin/newman/reporter/index.js +1 -1
  88. package/src/bin/newman/scriptRunner.js +1 -1
  89. package/src/bin/nightwatch/command.js +1 -1
  90. package/src/bin/playwright/accessibility-helper.js +1 -1
  91. package/src/bin/playwright/command.js +1 -1
  92. package/src/bin/playwright/globalSetup.js +1 -1
  93. package/src/bin/playwright/mock-process.js +1 -1
  94. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  95. package/src/bin/playwright/patches.js +1 -1
  96. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  97. package/src/bin/playwright/reporter/reporter.js +1 -1
  98. package/src/bin/playwright/reporter/test-details.js +1 -1
  99. package/src/bin/playwright/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/patches.js +1 -1
  101. package/src/bin/puppeteer/sessionDetails.js +1 -1
  102. package/src/bin/puppeteer/test.setup.js +1 -1
  103. package/src/bin/runner.js +1 -1
  104. package/src/bin/setup.js +1 -1
  105. package/src/bin/test-runner/index.js +1 -1
  106. package/src/bin/test-runner/runTest.js +1 -1
  107. package/src/bin/test-runner/testWorker.js +1 -1
  108. package/src/bin/testcafe/a11y-runner.js +1 -1
  109. package/src/bin/testcafe/command.js +1 -1
  110. package/src/bin/testcafe/reporter/index.js +1 -1
  111. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  112. package/src/bin/testcafe/session-registry.js +1 -1
  113. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  114. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  115. package/src/bin/testcafe/w3c-driver.js +1 -1
  116. package/src/bin/utils/apiUtilityMethods.js +1 -1
  117. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  118. package/src/bin/utils/constants.js +1 -1
  119. package/src/bin/utils/log4jsAppender.js +1 -1
  120. package/src/bin/utils/logPatcher.js +1 -1
  121. package/src/bin/utils/logReportingAPI.js +1 -1
  122. package/src/bin/utils/playwright-patcher.js +1 -1
  123. package/src/bin/utils/puppeteer-patcher.js +1 -1
  124. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  125. package/src/bin/utils/sharedUtils.js +1 -1
  126. package/src/bin/v2/TestInfo.js +1 -1
  127. package/src/bin/v2/browserstackCLI.js +1 -1
  128. package/src/bin/v2/cliUtils.js +1 -1
  129. package/src/bin/v2/customTagManager.js +1 -1
  130. package/src/bin/v2/eventDispatcher.js +1 -1
  131. package/src/bin/v2/framework/automationFramework.js +1 -1
  132. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  133. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  134. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  135. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  136. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  137. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  139. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testFramework.js +1 -1
  141. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  142. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  143. package/src/bin/v2/grpcClient.js +1 -1
  144. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  145. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  146. package/src/bin/v2/instances/trackedContext.js +1 -1
  147. package/src/bin/v2/instances/trackedInstance.js +1 -1
  148. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  149. package/src/bin/v2/modules/baseModule.js +1 -1
  150. package/src/bin/v2/modules/loadTestModule.js +1 -1
  151. package/src/bin/v2/modules/observabilityModule.js +1 -1
  152. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  153. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  154. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  155. package/src/bin/v2/modules/testhubModule.js +1 -1
  156. package/src/bin/v2/sdkErrorHandler.js +1 -0
  157. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  158. package/src/bin/v2/state/hookState.js +1 -1
  159. package/src/bin/v2/state/testFrameworkState.js +1 -1
  160. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  161. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  162. package/src/bin/v2/utils/jest-utils.js +1 -1
  163. package/src/bin/vanilla-js/command.js +1 -1
  164. package/src/browserStackSdk.js +1 -1
  165. package/src/helpers/BrowserStackSetup.js +1 -1
  166. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  167. package/src/helpers/accessibility-automation/constants.js +1 -1
  168. package/src/helpers/accessibility-automation/helper.js +1 -1
  169. package/src/helpers/accessibility-automation/scripts.js +1 -1
  170. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  171. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  172. package/src/helpers/ats/constants.js +1 -1
  173. package/src/helpers/ats/helper.js +1 -1
  174. package/src/helpers/caCertHelper.js +1 -1
  175. package/src/helpers/capsMapping.js +1 -1
  176. package/src/helpers/central-scanner/constants.js +1 -1
  177. package/src/helpers/central-scanner/helpers.js +1 -1
  178. package/src/helpers/classLogger.js +1 -1
  179. package/src/helpers/driverInitErrorReporter.js +1 -1
  180. package/src/helpers/globals.js +1 -1
  181. package/src/helpers/helper.js +1 -1
  182. package/src/helpers/logger.js +1 -1
  183. package/src/helpers/metadata.js +1 -1
  184. package/src/helpers/patchHelper.js +1 -1
  185. package/src/helpers/patchHelpers.js +1 -1
  186. package/src/helpers/percy/Percy.js +1 -1
  187. package/src/helpers/percy/PercyBinary.js +1 -1
  188. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  189. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  190. package/src/helpers/percy/PercySDK.js +1 -1
  191. package/src/helpers/percy/index.js +1 -1
  192. package/src/helpers/percy/utils.js +1 -1
  193. package/src/helpers/performance/constants.js +1 -1
  194. package/src/helpers/performance/performance-tester.js +1 -1
  195. package/src/helpers/playwright-helper.js +1 -1
  196. package/src/helpers/processHelper.js +1 -1
  197. package/src/helpers/puppeteer-helper.js +1 -1
  198. package/src/helpers/request-spy.js +1 -1
  199. package/src/helpers/setKeepAlive.js +1 -1
  200. package/src/helpers/stackFrameUtils.js +1 -1
  201. package/src/helpers/test-observability/constants.js +1 -1
  202. package/src/helpers/test-observability/error-handler.js +1 -1
  203. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  204. package/src/helpers/test-observability/sessionHandler.js +1 -1
  205. package/src/helpers/test-observability/utils.js +1 -1
  206. package/src/helpers/test-orchestration/constants.js +1 -1
  207. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  208. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  209. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  210. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  211. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  212. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  213. package/src/helpers/testhub/constants.js +1 -1
  214. package/src/helpers/testhub/testhubHandler.js +1 -1
  215. package/src/helpers/testhub/utils.js +1 -1
  216. package/src/helpers/timeoutPromise.js +1 -1
  217. package/src/helpers/utilities.js +1 -1
  218. package/src/helpers/w3cMapping.js +1 -1
  219. package/src/hubAllocationMethods.js +1 -1
  220. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a46_0x5026a3=a46_0x5e47;(function(_0xe4e70e,_0x59ddfd){const _0x1cf006=a46_0x5e47,_0x70c344=_0xe4e70e();while(!![]){try{const _0x4ae8c5=-parseInt(_0x1cf006(0xe9))/0x1*(parseInt(_0x1cf006(0x158))/0x2)+parseInt(_0x1cf006(0x110))/0x3+parseInt(_0x1cf006(0x10f))/0x4*(-parseInt(_0x1cf006(0xdc))/0x5)+-parseInt(_0x1cf006(0xe2))/0x6+-parseInt(_0x1cf006(0xe5))/0x7*(-parseInt(_0x1cf006(0x11a))/0x8)+-parseInt(_0x1cf006(0x147))/0x9+-parseInt(_0x1cf006(0xee))/0xa*(-parseInt(_0x1cf006(0x139))/0xb);if(_0x4ae8c5===_0x59ddfd)break;else _0x70c344['push'](_0x70c344['shift']());}catch(_0x476a3b){_0x70c344['push'](_0x70c344['shift']());}}}(a46_0x1035,0x2b35a));const util=require(a46_0x5026a3(0x15d)),logger=require(a46_0x5026a3(0x115))[a46_0x5026a3(0xfc)],{automationLogger}=require(a46_0x5026a3(0x115)),{isAccessibilityAutomationSession}=require(a46_0x5026a3(0x162)),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require(a46_0x5026a3(0x14c)),PerformanceTester=require(a46_0x5026a3(0xec)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require(a46_0x5026a3(0x162)),{AUTOMATION_LOG_COMMANDS}=require(a46_0x5026a3(0x103));function a46_0x5e47(_0x2d40d4,_0x59a7aa){const _0x103502=a46_0x1035();return a46_0x5e47=function(_0x5e47ae,_0x298ca1){_0x5e47ae=_0x5e47ae-0xdb;let _0x39b407=_0x103502[_0x5e47ae];return _0x39b407;},a46_0x5e47(_0x2d40d4,_0x59a7aa);}exports[a46_0x5026a3(0x116)]=async(_0x224846,_0x51dab3,_0x14b75a={})=>{const _0x26fcc1=a46_0x5026a3,_0x17e35a={};_0x17e35a[_0x26fcc1(0xe7)]=_0x26fcc1(0x11b),_0x17e35a['YXAHK']=function(_0xc93bad,_0x1eea26){return _0xc93bad===_0x1eea26;},_0x17e35a['qNReb']=_0x26fcc1(0x11e);const _0x2ead7e=_0x17e35a,_0x5b1fbf=await _0x224846[_0x26fcc1(0x12e)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x51dab3['replace'](/arguments/g,_0x2ead7e[_0x26fcc1(0xe7)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x26fcc1(0x14e)](_0x14b75a)+')');try{if(_0x51dab3&&_0x2ead7e[_0x26fcc1(0x13e)](typeof _0x51dab3,_0x2ead7e[_0x26fcc1(0x151)])){const _0x2f3686=AUTOMATION_LOG_COMMANDS['find'](_0x4840f3=>_0x51dab3[_0x26fcc1(0xdb)](_0x4840f3));if(_0x2f3686){const _0x1d67fc={};_0x1d67fc[_0x26fcc1(0x129)]=_0x2f3686,_0x1d67fc[_0x26fcc1(0x12a)]=[_0x14b75a];const _0x3a21ec={};_0x3a21ec[_0x26fcc1(0x144)]=_0x5b1fbf;const _0x8486a3={};_0x8486a3['request']=_0x1d67fc,_0x8486a3['response']=_0x3a21ec,automationLogger[_0x26fcc1(0x14d)]('['+new Date()[_0x26fcc1(0x150)]()+_0x26fcc1(0xe4)+JSON[_0x26fcc1(0x14e)](_0x8486a3));}}}catch(_0x146c69){logger[_0x26fcc1(0x163)]('[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'+_0x146c69['message']);}return _0x5b1fbf;},exports['browserStackExecuteDriver']=async(_0x5a0fea,_0xdb9b78,_0x3cbbcc={})=>{const _0x8c2b12=a46_0x5026a3,_0x2680cd={};_0x2680cd['OqxRM']=function(_0x421fdd,_0x1909be){return _0x421fdd===_0x1909be;},_0x2680cd[_0x8c2b12(0xfd)]=_0x8c2b12(0x137),_0x2680cd['OnUae']=function(_0x475338,_0x237a3e){return _0x475338===_0x237a3e;},_0x2680cd[_0x8c2b12(0xed)]=_0x8c2b12(0x114),_0x2680cd[_0x8c2b12(0x10a)]='bstackSdkArgs';const _0x76bff=_0x2680cd;if(_0x76bff['OqxRM'](_0x5a0fea[_0x8c2b12(0x112)]['name'],_0x76bff[_0x8c2b12(0xfd)]))return await _0x5a0fea[_0x8c2b12(0x159)](_0xdb9b78,_0x3cbbcc);else{if(_0x76bff['OnUae'](_0x5a0fea[_0x8c2b12(0x112)][_0x8c2b12(0xe6)],_0x76bff['KAFgt']))return await _0x5a0fea[_0x8c2b12(0x15a)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0xdb9b78[_0x8c2b12(0x152)](/arguments/g,_0x76bff[_0x8c2b12(0x10a)])+_0x8c2b12(0x105)+JSON[_0x8c2b12(0x14e)](_0x3cbbcc)+')');}},exports[a46_0x5026a3(0xdf)]=async _0x49fa91=>{const _0x10acd0=a46_0x5026a3,_0x2333bc={};_0x2333bc[_0x10acd0(0xf6)]=_0x10acd0(0x11f),_0x2333bc['ksQbw']=_0x10acd0(0xde),_0x2333bc[_0x10acd0(0x125)]=_0x10acd0(0xe3),_0x2333bc[_0x10acd0(0x104)]=_0x10acd0(0x123),_0x2333bc['uyoHX']=_0x10acd0(0x10d),_0x2333bc[_0x10acd0(0x12b)]=_0x10acd0(0x108);const _0x1dd34d=_0x2333bc;_0x49fa91[_0x10acd0(0x153)]&&(_0x49fa91[_0x10acd0(0x153)]['wcagVersion']&&(_0x49fa91[_0x1dd34d[_0x10acd0(0xf6)]]=_0x49fa91[_0x10acd0(0x153)]['wcagVersion']),_0x49fa91[_0x10acd0(0x153)][_0x10acd0(0x10b)]&&(_0x49fa91[_0x1dd34d[_0x10acd0(0x131)]]=_0x49fa91[_0x10acd0(0x153)][_0x10acd0(0x10b)]),_0x49fa91[_0x10acd0(0x153)][_0x10acd0(0x141)]&&(_0x49fa91[_0x1dd34d[_0x10acd0(0x125)]]=_0x49fa91[_0x10acd0(0x153)][_0x10acd0(0x141)]['bestPractice'],_0x49fa91[_0x1dd34d[_0x10acd0(0x104)]]=_0x49fa91[_0x10acd0(0x153)][_0x10acd0(0x141)]['needsReview']));const _0x331b55=JSON[_0x10acd0(0x12d)](process[_0x10acd0(0x133)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']||'{}')['scannerVersion'];_0x49fa91[_0x1dd34d[_0x10acd0(0x154)]]=process[_0x10acd0(0x133)][_0x10acd0(0x128)],_0x49fa91[_0x1dd34d[_0x10acd0(0x12b)]]=_0x331b55,delete _0x49fa91[_0x10acd0(0x153)];},exports[a46_0x5026a3(0xeb)]=async _0x36338a=>{const _0x47961f=a46_0x5026a3,_0x5c5cb6={};_0x5c5cb6[_0x47961f(0xf4)]=_0x47961f(0x119),_0x5c5cb6['VDIST']=_0x47961f(0x121);const _0x32e2fd=_0x5c5cb6;if(global['accessibilityPlatform'])try{const details={'url':await _0x36338a.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x36338a,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x36338a,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x47961f(0x140)](_0x32e2fd['iYGPG']),[];}else return logger[_0x47961f(0xe8)](_0x32e2fd[_0x47961f(0x143)]),[];},exports[a46_0x5026a3(0x11d)]=async(_0x4953e2,_0xf32666='',_0x1b0597={},_0x4ed4b3={})=>{const _0x3b1362=a46_0x5026a3;logger[_0x3b1362(0x163)](_0x3b1362(0xfb)+_0xf32666+_0x3b1362(0x138)+_0x4953e2);const _0x38255f={'url':await _0x4953e2[_0x3b1362(0xf0)](),'testhub_btcer_uuid':global[_0x3b1362(0xf3)]?.[_0x3b1362(0x13f)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x489571=_0x3b1362,_0x5dd4dd={};_0x5dd4dd[_0x489571(0x129)]=_0xf32666;const _0x85f150=_0x5dd4dd;_0x1b0597&&_0x1b0597[_0x489571(0x13c)]&&(_0x85f150[_0x489571(0x13c)]=_0x1b0597[_0x489571(0x13c)]);Object[_0x489571(0x15f)](_0x85f150,_0x4ed4b3);const _0x27b494=await exports[_0x489571(0x116)](_0x4953e2,scripts[_0x489571(0x11d)],_0x85f150);return _0x27b494;},{'command':_0xf32666,..._0x38255f})();},exports[a46_0x5026a3(0x10c)]=async _0x1b0e14=>{const _0x3d83f1=a46_0x5026a3,_0x4cc855={};_0x4cc855[_0x3d83f1(0x14b)]=_0x3d83f1(0xf1),_0x4cc855[_0x3d83f1(0x117)]=_0x3d83f1(0x102);const _0x1560b4=_0x4cc855;if(global[_0x3d83f1(0x135)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1b0e14,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x1b0e14,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x3d83f1(0x163)](_0x1560b4[_0x3d83f1(0x14b)]),{};}else return logger[_0x3d83f1(0xe8)](_0x1560b4['XJrjM']),{};},exports[a46_0x5026a3(0xff)]=_0x12d6c9=>{const _0x1cca90=a46_0x5026a3,_0x4548b8={'cxSJH':'platformValidation:\x20Mobile\x20platform\x20already\x20validated.','YTUIi':_0x1cca90(0x12c),'zPKDW':function(_0x55be07,_0x577b40){return _0x55be07!==_0x577b40;},'GYhot':_0x1cca90(0x111),'NopUX':function(_0x4ffa77){return _0x4ffa77();},'zJXDg':_0x1cca90(0x164)};try{if(global[_0x1cca90(0x145)])return logger[_0x1cca90(0x163)](_0x4548b8['cxSJH']),!![];const _0x1402ec=_0x12d6c9[_0x1cca90(0x113)],_0x5967de=_0x12d6c9[_0x1cca90(0x15e)];if(!accessibilityHelper[_0x1cca90(0x127)](_0x1402ec))return logger[_0x1cca90(0xe8)](_0x4548b8[_0x1cca90(0x14a)]),![];if(_0x4548b8[_0x1cca90(0xf8)](_0x5967de,_0x4548b8[_0x1cca90(0x160)])){const _0x2586ce=_0x4548b8[_0x1cca90(0x100)](isBrowserstackInfra),_0x20ec2d=accessibilityHelper[_0x1cca90(0xef)](_0x1402ec,_0x2586ce),_0x401860=accessibilityHelper['getBrowserDisplayName'](_0x1402ec);if(!accessibilityHelper[_0x1cca90(0x136)](_0x5967de,_0x20ec2d)){const _0x3c91b0=_0x2586ce?'':_0x4548b8[_0x1cca90(0x134)];return logger['warn'](_0x1cca90(0x11c)+_0x401860+'\x20browser\x20version\x20'+_0x20ec2d+_0x1cca90(0x107)+_0x3c91b0+'.'),![];}}}catch(_0x270f5e){logger[_0x1cca90(0x163)](_0x1cca90(0x148)+util[_0x1cca90(0xe0)](_0x270f5e));}return!![];},exports['processAccessibilityCaps']=(_0x4a0595,_0x571202,_0x1a27ec)=>{const _0x3586ab=a46_0x5026a3,_0x4e6680={'VJduv':_0x3586ab(0x109),'DmpTN':function(_0x2b5e6b){return _0x2b5e6b();},'YMGWV':_0x3586ab(0x161),'gQAmo':_0x3586ab(0x12c),'Eoywd':function(_0x42a46b,_0x582b5e){return _0x42a46b!==_0x582b5e;},'YDgAE':_0x3586ab(0x111),'qdnqe':'on\x20non-BrowserStack\x20infrastructure\x20','ftpKD':function(_0x20d40b,_0x365ea1){return _0x20d40b(_0x365ea1);},'iRkBP':function(_0x14c3e1,_0x1ab2e2){return _0x14c3e1===_0x1ab2e2;},'DhuTy':_0x3586ab(0x155),'ZphFa':_0x3586ab(0xf9),'ySwOW':_0x3586ab(0x10e),'ludbX':_0x3586ab(0x124),'UwyaW':_0x3586ab(0x149),'PrFMU':function(_0x28ae1c,_0x987b49){return _0x28ae1c+_0x987b49;}};try{if(_0x4e6680[_0x3586ab(0x157)](isAccessibilityAutomationSession)){global[_0x3586ab(0x135)]=!![];!_0x4a0595[_0x4e6680[_0x3586ab(0x132)]]&&(global[_0x3586ab(0x135)]=![]);const _0x1702dd=_0x4a0595[_0x3586ab(0x15c)]||_0x4a0595[_0x3586ab(0x113)],_0x29826e=_0x4a0595[_0x3586ab(0x15e)];!accessibilityHelper[_0x3586ab(0x127)](_0x1702dd)&&(logger[_0x3586ab(0xe8)](_0x4e6680['gQAmo']),global[_0x3586ab(0x135)]=![]);if(_0x4e6680[_0x3586ab(0x120)](_0x29826e,_0x4e6680['YDgAE'])){const _0x5e75c6=_0x4e6680[_0x3586ab(0x157)](isBrowserstackInfra),_0x5234bc=accessibilityHelper[_0x3586ab(0xef)](_0x1702dd,_0x5e75c6),_0x3f0a65=accessibilityHelper[_0x3586ab(0x130)](_0x1702dd);if(!accessibilityHelper['isVersionSupported'](_0x29826e,_0x5234bc)){const _0x16e6b8=_0x5e75c6?'':_0x4e6680[_0x3586ab(0x14f)];logger[_0x3586ab(0xe8)](_0x3586ab(0x11c)+_0x3f0a65+_0x3586ab(0x126)+_0x5234bc+_0x3586ab(0x107)+_0x16e6b8+'.'),global[_0x3586ab(0x135)]=![];}}if(!_0x4e6680['ftpKD'](isUndefined,_0x4a0595[_0x3586ab(0x118)])){const _0x378cf1=(_0x4a0595['os']||'')['toLowerCase'](),_0x23d0d2=(_0x4a0595[_0x3586ab(0x15c)]||_0x4a0595[_0x3586ab(0x113)]||'')[_0x3586ab(0x122)](),_0x1a5699=_0x4e6680[_0x3586ab(0x156)](_0x378cf1,_0x4e6680[_0x3586ab(0xf5)])&&[_0x4e6680['ZphFa'],_0x4e6680[_0x3586ab(0xea)],_0x4e6680[_0x3586ab(0x146)]]['includes'](_0x23d0d2);if(!_0x1a5699)logger[_0x3586ab(0xe8)](_0x4e6680['UwyaW']),global[_0x3586ab(0x135)]=![];else!accessibilityHelper['isMobileScanningEnabledForGroup']()&&(logger[_0x3586ab(0xe8)](accessibilityHelper[_0x3586ab(0xfa)]),global['accessibilityPlatform']=![]);}if(!global[_0x3586ab(0x135)]){_0x4a0595[_0x4e6680[_0x3586ab(0x132)]]=![],Object[_0x3586ab(0xdd)](_0x4a0595)[_0x3586ab(0xfe)](_0x58c202=>{const _0x31069e=_0x3586ab;_0x58c202[_0x31069e(0x142)](_0x4e6680[_0x31069e(0x106)])&&delete _0x4a0595[_0x58c202];});const _0xb120f0=_0x4e6680[_0x3586ab(0xe1)](_0x571202,_0x4e6680[_0x3586ab(0xf7)](encodeURIComponent,JSON[_0x3586ab(0x14e)](_0x4a0595)));_0x1a27ec&&(_0x1a27ec[_0x3586ab(0x13f)][_0x3586ab(0x101)][_0x3586ab(0xf2)][_0x3586ab(0x13a)][_0x3586ab(0x13b)][_0x3586ab(0x12f)]=_0xb120f0,_0x1a27ec[_0x3586ab(0x13d)][_0x3586ab(0xf2)][_0x3586ab(0x13a)][_0x3586ab(0x13b)][_0x3586ab(0x12f)]=_0xb120f0);}}else global[_0x3586ab(0x135)]=![];}catch(_0x551c52){logger[_0x3586ab(0x163)](_0x3586ab(0x15b)+util[_0x3586ab(0xe0)](_0x551c52));}};function a46_0x1035(){const _0x1d594f=['\x20browser\x20version\x20','isBrowserSupportedForAccessibility','BS_A11Y_JWT','command','parameters','kjRQC','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','parse','evaluate','wsEndpoint','getBrowserDisplayName','ksQbw','YMGWV','env','zJXDg','accessibilityPlatform','isVersionSupported','WebDriver','\x20page:\x20','946LKYokH','use','connectOptions','includePartOfPageScope','workerInfo','YXAHK','currentTest','error','includeIssueType','startsWith','VDIST','body','isMobilePlatform','ludbX','2077560MrEVwV','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','YTUIi','aNZAC','../../helpers/accessibility-automation/scripts','silly','stringify','qdnqe','toISOString','qNReb','replace','accessibilityOptions','uyoHX','android','iRkBP','DmpTN','44XGlzbx','executeAsyncScript','executeScript','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','browserName','util','browser_version','assign','GYhot','browserstack.accessibility','../../helpers/accessibility-automation/helper','debug','on\x20non-BrowserStack\x20infrastructure\x20','includes','6350AKECWB','keys','accessibilityOptions.scannerProcessingTimeout','setAccessibilityCapabilities','format','PrFMU','1108542IjhyvG','accessibilityOptions.includeIssueType.bestPractice','][\x20SDK-AUTOMATION\x20]\x20','147707pwKcdM','name','RwbwC','warn','2252eCMxyn','ySwOW','getAccessibilityResults','../../helpers/performance/performance-tester','KAFgt','37250dHQEMT','getMinVersionForBrowser','url','No\x20summaryResults\x20found.','project','__workerDetails','iYGPG','DhuTy','kCzdp','ftpKD','zPKDW','chrome','MOBILE_SCANNING_DISABLED_WARNING','Performing\x20scan\x20with\x20method:\x20','winstonLogger','FAWru','forEach','platformValidation','NopUX','testInfo','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','../utils/constants','zDMAK','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','VJduv','\x20or\x20higher\x20','accessibilityOptions.scannerVersion','browserstack.accessibilityOptions','oktye','scannerProcessingTimeout','getAccessibilityResultsSummary','accessibilityOptions.authToken','playwright-chromium','272wZTCxW','781290lSCQEV','latest','constructor','browser','Playwright','../../helpers/logger','browserStackEvaluate','XJrjM','deviceName','No\x20accessibility\x20results\x20were\x20found.','56uSiFlP','bstackSdkArgs','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','performScan','string','accessibilityOptions.wcagVersion','Eoywd','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','toLowerCase','accessibilityOptions.includeIssueType.needsReview','chromium','JKFPS'];a46_0x1035=function(){return _0x1d594f;};return a46_0x1035();}
1
+ const a47_0x45581f=a47_0x1c9b;function a47_0xbef9(){const _0x548d71=['browserStackEvaluate','MOBILE_SCANNING_DISABLED_WARNING','silly','qJMlR','message','kyTIJ','accessibilityOptions','quzwc','GzwGr','performScan','ZhpLS','on\x20non-BrowserStack\x20infrastructure\x20','constructor','CZIjs','7354820BPCBCA','string','][\x20SDK-AUTOMATION\x20]\x20','browserstack.accessibilityOptions','name','error','ahuKd','evaluate','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','accessibilityPlatform','TjQLb','Performing\x20scan\x20with\x20method:\x20','isVersionSupported','browser','winstonLogger','IiGUM','request','WebDriver','chrome','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','yAjsG','toLowerCase','WZhLo','tVcXo','measureWrapper','startsWith','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','oWIgH','executeAsyncScript','247512hxRdll','hIMsS','URCcN','wcagVersion','../../helpers/accessibility-automation/scripts','accessibilityOptions.authToken','processAccessibilityCaps','../../helpers/accessibility-automation/helper','workerInfo','find','ioPXu','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','vMeyx','wsEndpoint','accessibilityOptions.includeIssueType.bestPractice','includes','90eqJWlZ','setAccessibilityCapabilities','latest','\x20or\x20higher\x20','BS_A11Y_JWT','debug','zMcBH','5vRLqPv','warn','includePartOfPageScope','UIIJl','26902cIQUkh','../../helpers/helper','vEmZV','11IjCoUh','\x20browser\x20version\x20','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','11959404NFQvzz','getBrowserDisplayName','toISOString','format','DjuER','browserName','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','getMinVersionForBrowser','XWrGk','assign','1044138XgQOFG','android','zPakR','PERFORM_SCAN','Playwright','accessibilityOptions.wcagVersion','../../helpers/performance/constants','replace','browserstack.accessibility','chromium','../utils/constants','../../helpers/logger','parse','HbGDk','getAccessibilityResultsSummary','accessibilityOptions.scannerVersion','forEach','axNuj','bestPractice','NhQCA','env','stringify','bstackSdkArgs','__workerDetails','13DrubQd','includeIssueType','command','use','getAccessibilityResults','iODpt','playwright-chromium','No\x20accessibility\x20results\x20were\x20found.','needsReview','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','scannerProcessingTimeout','gvdbE','IpIhb','ybRcc','../../helpers/performance/performance-tester','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','kZIeT','3491663cgiIxP','browserStackExecuteDriver','RJHlx','isBrowserSupportedForAccessibility','browser_version','73584iGNHku','GgSlo','response','4sspcaR','project','platformValidation','testInfo','currentTest','connectOptions','deviceName','UJzON'];a47_0xbef9=function(){return _0x548d71;};return a47_0xbef9();}(function(_0x4b6bec,_0x14392b){const _0x1537a2=a47_0x1c9b,_0x16d48d=_0x4b6bec();while(!![]){try{const _0x12d35f=parseInt(_0x1537a2(0x201))/0x1*(parseInt(_0x1537a2(0x1d8))/0x2)+parseInt(_0x1537a2(0x1e9))/0x3*(parseInt(_0x1537a2(0x18a))/0x4)+parseInt(_0x1537a2(0x1d4))/0x5*(parseInt(_0x1537a2(0x1bd))/0x6)+parseInt(_0x1537a2(0x212))/0x7+-parseInt(_0x1537a2(0x187))/0x8*(parseInt(_0x1537a2(0x1cd))/0x9)+parseInt(_0x1537a2(0x1a0))/0xa+parseInt(_0x1537a2(0x1db))/0xb*(-parseInt(_0x1537a2(0x1df))/0xc);if(_0x12d35f===_0x14392b)break;else _0x16d48d['push'](_0x16d48d['shift']());}catch(_0x13c6c5){_0x16d48d['push'](_0x16d48d['shift']());}}}(a47_0xbef9,0xad4df));const util=require('util'),logger=require(a47_0x45581f(0x1f4))[a47_0x45581f(0x1ae)],{automationLogger}=require('../../helpers/logger'),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require(a47_0x45581f(0x1d9)),scripts=require(a47_0x45581f(0x1c1)),PerformanceTester=require(a47_0x45581f(0x20f)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a47_0x45581f(0x1ef)),accessibilityHelper=require(a47_0x45581f(0x1c4)),{AUTOMATION_LOG_COMMANDS}=require(a47_0x45581f(0x1f3));function a47_0x1c9b(_0xa142a8,_0x214444){const _0xbef9c0=a47_0xbef9();return a47_0x1c9b=function(_0x1c9bc8,_0x7aecb1){_0x1c9bc8=_0x1c9bc8-0x186;let _0x3bf539=_0xbef9c0[_0x1c9bc8];return _0x3bf539;},a47_0x1c9b(_0xa142a8,_0x214444);}exports[a47_0x45581f(0x192)]=async(_0x1e333d,_0x247815,_0x5f9c88={})=>{const _0xded028=a47_0x45581f,_0x2bf4a4={};_0x2bf4a4[_0xded028(0x19c)]=_0xded028(0x1ff),_0x2bf4a4['XWrGk']=function(_0x4168f7,_0x4fa7a6){return _0x4168f7===_0x4fa7a6;},_0x2bf4a4[_0xded028(0x1bb)]=_0xded028(0x1a1);const _0x2509b2=_0x2bf4a4,_0x598f75=await _0x1e333d[_0xded028(0x1a7)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x247815[_0xded028(0x1f0)](/arguments/g,_0x2509b2[_0xded028(0x19c)])+_0xded028(0x1ba)+JSON[_0xded028(0x1fe)](_0x5f9c88)+')');try{if(_0x247815&&_0x2509b2[_0xded028(0x1e7)](typeof _0x247815,_0x2509b2['oWIgH'])){const _0x5be842=AUTOMATION_LOG_COMMANDS[_0xded028(0x1c6)](_0x186541=>_0x247815['includes'](_0x186541));if(_0x5be842){const _0x176fd4={};_0x176fd4[_0xded028(0x203)]=_0x5be842,_0x176fd4['parameters']=[_0x5f9c88];const _0x314f86={};_0x314f86['body']=_0x598f75;const _0x46ea4f={};_0x46ea4f[_0xded028(0x1b0)]=_0x176fd4,_0x46ea4f[_0xded028(0x189)]=_0x314f86,automationLogger[_0xded028(0x194)]('['+new Date()[_0xded028(0x1e1)]()+_0xded028(0x1a2)+JSON[_0xded028(0x1fe)](_0x46ea4f));}}}catch(_0x652da2){logger[_0xded028(0x1d2)](_0xded028(0x20a)+_0x652da2[_0xded028(0x196)]);}return _0x598f75;},exports[a47_0x45581f(0x213)]=async(_0x73a545,_0x5b7e3f,_0x127478={})=>{const _0x133f5b=a47_0x45581f,_0xddbc32={};_0xddbc32[_0x133f5b(0x20c)]=function(_0xb8b74f,_0x3bcc06){return _0xb8b74f===_0x3bcc06;},_0xddbc32[_0x133f5b(0x1a6)]=_0x133f5b(0x1b1),_0xddbc32[_0x133f5b(0x206)]=function(_0xbf1f59,_0x3c276c){return _0xbf1f59===_0x3c276c;},_0xddbc32[_0x133f5b(0x1d3)]=_0x133f5b(0x1ed),_0xddbc32[_0x133f5b(0x1c9)]=_0x133f5b(0x1ff);const _0x4b5f08=_0xddbc32;if(_0x4b5f08[_0x133f5b(0x20c)](_0x73a545[_0x133f5b(0x19e)]['name'],_0x4b5f08[_0x133f5b(0x1a6)]))return await _0x73a545[_0x133f5b(0x1bc)](_0x5b7e3f,_0x127478);else{if(_0x4b5f08[_0x133f5b(0x206)](_0x73a545[_0x133f5b(0x19e)][_0x133f5b(0x1a4)],_0x4b5f08[_0x133f5b(0x1d3)]))return await _0x73a545['executeScript']('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5b7e3f[_0x133f5b(0x1f0)](/arguments/g,_0x4b5f08[_0x133f5b(0x1c9)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x133f5b(0x1fe)](_0x127478)+')');}},exports[a47_0x45581f(0x1ce)]=async _0x5e474a=>{const _0x5d3fbd=a47_0x45581f,_0xe52ec4={};_0xe52ec4['yAjsG']=_0x5d3fbd(0x1ee),_0xe52ec4[_0x5d3fbd(0x199)]='accessibilityOptions.scannerProcessingTimeout',_0xe52ec4[_0x5d3fbd(0x1af)]=_0x5d3fbd(0x1cb),_0xe52ec4[_0x5d3fbd(0x1aa)]='accessibilityOptions.includeIssueType.needsReview',_0xe52ec4[_0x5d3fbd(0x1da)]=_0x5d3fbd(0x1c2),_0xe52ec4['jIjBV']=_0x5d3fbd(0x1f8);const _0x3587c1=_0xe52ec4;_0x5e474a[_0x5d3fbd(0x198)]&&(_0x5e474a['accessibilityOptions']['wcagVersion']&&(_0x5e474a[_0x3587c1[_0x5d3fbd(0x1b4)]]=_0x5e474a[_0x5d3fbd(0x198)][_0x5d3fbd(0x1c0)]),_0x5e474a['accessibilityOptions'][_0x5d3fbd(0x20b)]&&(_0x5e474a[_0x3587c1['quzwc']]=_0x5e474a[_0x5d3fbd(0x198)][_0x5d3fbd(0x20b)]),_0x5e474a[_0x5d3fbd(0x198)][_0x5d3fbd(0x202)]&&(_0x5e474a[_0x3587c1['IiGUM']]=_0x5e474a[_0x5d3fbd(0x198)][_0x5d3fbd(0x202)][_0x5d3fbd(0x1fb)],_0x5e474a[_0x3587c1[_0x5d3fbd(0x1aa)]]=_0x5e474a['accessibilityOptions'][_0x5d3fbd(0x202)][_0x5d3fbd(0x209)]));const _0x4fc2b7=JSON[_0x5d3fbd(0x1f5)](process[_0x5d3fbd(0x1fd)][_0x5d3fbd(0x210)]||'{}')['scannerVersion'];_0x5e474a[_0x3587c1[_0x5d3fbd(0x1da)]]=process[_0x5d3fbd(0x1fd)][_0x5d3fbd(0x1d1)],_0x5e474a[_0x3587c1['jIjBV']]=_0x4fc2b7,delete _0x5e474a['accessibilityOptions'];},exports[a47_0x45581f(0x205)]=async _0x1e8c9a=>{const _0x369987=a47_0x45581f,_0x4e984a={};_0x4e984a[_0x369987(0x1be)]=_0x369987(0x208),_0x4e984a['GgSlo']='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x4049b3=_0x4e984a;if(global[_0x369987(0x1a9)])try{const details={'url':await _0x1e8c9a.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x1e8c9a,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x1e8c9a,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x369987(0x1a5)](_0x4049b3['hIMsS']),[];}else return logger[_0x369987(0x1d5)](_0x4049b3[_0x369987(0x188)]),[];},exports[a47_0x45581f(0x19b)]=async(_0x26737d,_0x1982f9='',_0x9a0266={},_0xa81bea={})=>{const _0x32ccaa=a47_0x45581f;logger['debug'](_0x32ccaa(0x1ab)+_0x1982f9+'\x20page:\x20'+_0x26737d);const _0x1ebf30={'url':await _0x26737d['url'](),'testhub_btcer_uuid':global[_0x32ccaa(0x200)]?.['currentTest']?.['id']};if(global[_0x32ccaa(0x1a9)])return await PerformanceTester[_0x32ccaa(0x1b8)](PerformanceA11yEvents[_0x32ccaa(0x1ec)],async()=>{const _0x577c70=_0x32ccaa,_0x2a1d4a={};_0x2a1d4a['command']=_0x1982f9;const _0x577a29=_0x2a1d4a;_0x9a0266&&_0x9a0266[_0x577c70(0x1d6)]&&(_0x577a29[_0x577c70(0x1d6)]=_0x9a0266[_0x577c70(0x1d6)]);Object[_0x577c70(0x1e8)](_0x577a29,_0xa81bea);const _0x3f480d=await exports[_0x577c70(0x192)](_0x26737d,scripts[_0x577c70(0x19b)],_0x577a29);return _0x3f480d;},{'command':_0x1982f9,..._0x1ebf30})();},exports[a47_0x45581f(0x1f7)]=async _0x549fcc=>{const _0x33bf79=a47_0x45581f,_0x29bed5={};_0x29bed5[_0x33bf79(0x19f)]='No\x20summaryResults\x20found.',_0x29bed5[_0x33bf79(0x1e3)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x4cb68a=_0x29bed5;if(global[_0x33bf79(0x1a9)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x549fcc,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x549fcc,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger['debug'](_0x4cb68a[_0x33bf79(0x19f)]),{};}else return logger['warn'](_0x4cb68a[_0x33bf79(0x1e3)]),{};},exports[a47_0x45581f(0x18c)]=_0x259197=>{const _0x368761=a47_0x45581f,_0x469e45={'hCxWn':_0x368761(0x1de),'HbGDk':_0x368761(0x1dd),'WZhLo':function(_0x5dd7b2,_0x4b67f8){return _0x5dd7b2!==_0x4b67f8;},'EJSXX':_0x368761(0x1cf),'zPakR':function(_0x3bc625){return _0x3bc625();},'joUAz':_0x368761(0x19d)};try{if(global['isMobilePlatform'])return logger['debug'](_0x469e45['hCxWn']),!![];const _0x558fac=_0x259197['browser'],_0x59caa1=_0x259197[_0x368761(0x186)];if(!accessibilityHelper[_0x368761(0x215)](_0x558fac))return logger[_0x368761(0x1d5)](_0x469e45[_0x368761(0x1f6)]),![];if(_0x469e45[_0x368761(0x1b6)](_0x59caa1,_0x469e45['EJSXX'])){const _0x1f18e9=_0x469e45[_0x368761(0x1eb)](isBrowserstackInfra),_0x47a908=accessibilityHelper['getMinVersionForBrowser'](_0x558fac,_0x1f18e9),_0x547376=accessibilityHelper[_0x368761(0x1e0)](_0x558fac);if(!accessibilityHelper[_0x368761(0x1ac)](_0x59caa1,_0x47a908)){const _0x2bd0cd=_0x1f18e9?'':_0x469e45['joUAz'];return logger[_0x368761(0x1d5)](_0x368761(0x1b3)+_0x547376+_0x368761(0x1dc)+_0x47a908+_0x368761(0x1d0)+_0x2bd0cd+'.'),![];}}}catch(_0xa21f64){logger[_0x368761(0x1d2)](_0x368761(0x1e5)+util[_0x368761(0x1e2)](_0xa21f64));}return!![];},exports[a47_0x45581f(0x1c3)]=(_0x1a4080,_0x3b2637,_0x18c2f4)=>{const _0x27529e=a47_0x45581f,_0x2a9776={'kuZra':_0x27529e(0x1a3),'IpIhb':function(_0x134bca){return _0x134bca();},'ybRcc':_0x27529e(0x1f1),'ioPXu':_0x27529e(0x1dd),'tVcXo':function(_0x1f6596,_0x3e6fd3){return _0x1f6596!==_0x3e6fd3;},'qJMlR':'latest','UIIJl':function(_0x660f30){return _0x660f30();},'mHlrt':_0x27529e(0x19d),'GzwGr':function(_0x7b2659,_0x4b84db){return _0x7b2659(_0x4b84db);},'kyTIJ':function(_0x3ef38b,_0x1885f1){return _0x3ef38b===_0x1885f1;},'UJzON':_0x27529e(0x1ea),'NhQCA':_0x27529e(0x1b2),'kZIeT':_0x27529e(0x207),'axNuj':_0x27529e(0x1f2),'RJHlx':_0x27529e(0x1a8),'URCcN':function(_0x58e08a,_0x41aa9c){return _0x58e08a+_0x41aa9c;}};try{if(_0x2a9776[_0x27529e(0x20d)](isAccessibilityAutomationSession)){global[_0x27529e(0x1a9)]=!![];!_0x1a4080[_0x2a9776[_0x27529e(0x20e)]]&&(global[_0x27529e(0x1a9)]=![]);const _0x4d010f=_0x1a4080[_0x27529e(0x1e4)]||_0x1a4080[_0x27529e(0x1ad)],_0x572f48=_0x1a4080[_0x27529e(0x186)];!accessibilityHelper[_0x27529e(0x215)](_0x4d010f)&&(logger['warn'](_0x2a9776[_0x27529e(0x1c7)]),global[_0x27529e(0x1a9)]=![]);if(_0x2a9776[_0x27529e(0x1b7)](_0x572f48,_0x2a9776[_0x27529e(0x195)])){const _0x86805=_0x2a9776[_0x27529e(0x1d7)](isBrowserstackInfra),_0x35e8e3=accessibilityHelper[_0x27529e(0x1e6)](_0x4d010f,_0x86805),_0x128fcd=accessibilityHelper[_0x27529e(0x1e0)](_0x4d010f);if(!accessibilityHelper['isVersionSupported'](_0x572f48,_0x35e8e3)){const _0x4dd0ff=_0x86805?'':_0x2a9776['mHlrt'];logger['warn'](_0x27529e(0x1b3)+_0x128fcd+'\x20browser\x20version\x20'+_0x35e8e3+_0x27529e(0x1d0)+_0x4dd0ff+'.'),global[_0x27529e(0x1a9)]=![];}}if(!_0x2a9776[_0x27529e(0x19a)](isUndefined,_0x1a4080[_0x27529e(0x190)])){const _0x45bc2c=(_0x1a4080['os']||'')[_0x27529e(0x1b5)](),_0x1a6269=(_0x1a4080['browserName']||_0x1a4080[_0x27529e(0x1ad)]||'')[_0x27529e(0x1b5)](),_0x104124=_0x2a9776[_0x27529e(0x197)](_0x45bc2c,_0x2a9776[_0x27529e(0x191)])&&[_0x2a9776[_0x27529e(0x1fc)],_0x2a9776[_0x27529e(0x211)],_0x2a9776[_0x27529e(0x1fa)]][_0x27529e(0x1cc)](_0x1a6269);if(!_0x104124)logger['warn'](_0x2a9776[_0x27529e(0x214)]),global[_0x27529e(0x1a9)]=![];else!accessibilityHelper['isMobileScanningEnabledForGroup']()&&(logger['warn'](accessibilityHelper[_0x27529e(0x193)]),global['accessibilityPlatform']=![]);}if(!global['accessibilityPlatform']){_0x1a4080[_0x2a9776['ybRcc']]=![],Object['keys'](_0x1a4080)[_0x27529e(0x1f9)](_0x3791aa=>{const _0xa7e77c=_0x27529e;_0x3791aa[_0xa7e77c(0x1b9)](_0x2a9776['kuZra'])&&delete _0x1a4080[_0x3791aa];});const _0x3fd4e8=_0x2a9776[_0x27529e(0x1bf)](_0x3b2637,_0x2a9776[_0x27529e(0x19a)](encodeURIComponent,JSON[_0x27529e(0x1fe)](_0x1a4080)));_0x18c2f4&&(_0x18c2f4[_0x27529e(0x18e)][_0x27529e(0x18d)]['project'][_0x27529e(0x204)]['connectOptions'][_0x27529e(0x1ca)]=_0x3fd4e8,_0x18c2f4[_0x27529e(0x1c5)][_0x27529e(0x18b)][_0x27529e(0x204)][_0x27529e(0x18f)][_0x27529e(0x1ca)]=_0x3fd4e8);}}else global['accessibilityPlatform']=![];}catch(_0x5debec){logger[_0x27529e(0x1d2)](_0x27529e(0x1c8)+util[_0x27529e(0x1e2)](_0x5debec));}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a47_0x146a7f=a47_0x605c;(function(_0x4bb41a,_0x2a777e){const _0x3eda79=a47_0x605c,_0x1fbf51=_0x4bb41a();while(!![]){try{const _0x69467c=parseInt(_0x3eda79(0x261))/0x1*(parseInt(_0x3eda79(0x1e6))/0x2)+parseInt(_0x3eda79(0x226))/0x3+-parseInt(_0x3eda79(0x26f))/0x4*(parseInt(_0x3eda79(0x1ea))/0x5)+parseInt(_0x3eda79(0x27a))/0x6+-parseInt(_0x3eda79(0x267))/0x7*(-parseInt(_0x3eda79(0x216))/0x8)+-parseInt(_0x3eda79(0x287))/0x9*(-parseInt(_0x3eda79(0x27d))/0xa)+parseInt(_0x3eda79(0x21a))/0xb*(-parseInt(_0x3eda79(0x1dc))/0xc);if(_0x69467c===_0x2a777e)break;else _0x1fbf51['push'](_0x1fbf51['shift']());}catch(_0x520302){_0x1fbf51['push'](_0x1fbf51['shift']());}}}(a47_0x3cbb,0x959af));function a47_0x3cbb(){const _0x43b404=['BROWSERSTACK_FRAMEWORK','--grep','filter','UGuNN','splice','has','Deleting\x20','BROWSERSTACK_RERUN_TESTS','browserstackAutomation','end','testObservability','816GvVjrr','R_OK','JabNN','getProxyUrl','PLAYWRIGHT','Danpl','findIndex','cliConfig','insaU','VysqH','8958ttyWtF','isTrue','EnOfX','BROWSERSTACK_RERUN','5LWcSdK','startsWith','anuve','split','WYZlI','JsbzF','pUlEN','kEJAW','myRLc','concat','nnYHO','XUIBG','isTypescriptProject','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','skipSessionStatus','BROWSERSTACK_PW_CONFIG_DIR','Bntff','wnJLm','../../helpers/test-observability/utils','platform','BROWSERSTACK_TEST_ACCESSIBILITY_YML','playwright','homedir','indexOf','EvelV','../../helpers/accessibility-automation/helper','debug','--config=','.browserstack','push','trace_','clearTempPWConfig','stringify','Found:\x20','slice','RAbYE','testContextOptions','opJhF','finalExecution','Playwright\x20process\x20exited\x20with\x20code\x20','getPackageType','WBwAM','accessSync','playwright-browserstack-sdk.config.js','837536KjEZBQ','../../helpers/test-orchestration/testOrchestrationHandler','child_process','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','184899NJupcX','exitCode','yarn','util','errorMessage','XSCeO','validateRerunTestList','../utils/clientTroubleshootingService','vykkC','SNBwc','isTestOrchestrationEnabled','dirname','1425156YqJiwt','existsSync','Error\x20in\x20getting\x20funnel\x20data\x20results','VpRUW','isYarnPnP','reportConflictingEnvVarIssue','shutdown','exports','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','../../helpers/performance/performance-tester','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','../v2/TestInfo','readdirSync','error','resolvedConfigFile','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','findPlaywrightTestFiles','readFileSync','test','setupBrowserstackLocal','isCLIEnabled','initialize','aSSoI','bootstrap','ZeDny','SDK_POST_INITIALIZE','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','PPwin','IgRSY','browserstackSetupConfig.json','BROWSERSTACK_SETUP_CONFIG_PATH','./accessibility-helper','BROWSERSTACK_PW_TEST_ORDER','accessibility','reportFinalDetectionState','EVENTS','SSFYB','npx','join','filterBrowserstackArgs','serializeToYamlString','KofFD','winstonLogger','tcAHV','hmxhh','BrowserStack\x20config\x20file\x20not\x20found.','vzvdp','logLevel','skipSessionName','start','requireConfigLoaderYarnPnP','fPFur','rshiZ','slTOa','EJtsN','cyTjP','config','BROWSERSTACK_TEST_OBSERVABILITY','isFalse','233RppdUV','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','true','RUoFb','win32','../v2/browserstackCLI','14aSUStX','nThIn','RTgcE','info','fvzEi','../../helpers/performance/constants','resolve','getInstance','2520324oFiCwx','yLTkN','../../helpers/BrowserStackSetup','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','faVgb','constants','unlinkSync','getConfigPath','isRunning','inherit','diruH','2349816elcQhy','W_OK','uOvhS','9610XQyVrB','USER_CONFIG_DETAILS_PATH','YdWMg','--disable-test-observability','mfuxU','env','INTERNALLY_USED_ENV_VARS','Reordered\x20Test\x20Files:\x20','isUndefined','false','2493DXISyh','apply','../../helpers/test-observability/constants','Mulvv','SDK_CLEANUP','setBrowserstackConfig','length','BROWSERSTACK_AUTOMATION','--config','stop','measureWrapper','iwBYG','reportDotBrowserStackFolderNotAccessibleIssue','path','NYAvB','configPath','playwright-browserstack-sdk.config.cjs','arLtT','Error\x20in\x20deleting\x20playwright\x20results','cwd','./reporter/test-details','writeFileSync'];a47_0x3cbb=function(){return _0x43b404;};return a47_0x3cbb();}function a47_0x605c(_0x23d934,_0x569836){const _0x3cbb97=a47_0x3cbb();return a47_0x605c=function(_0x605cc8,_0x5f3a96){_0x605cc8=_0x605cc8-0x1c5;let _0x17d886=_0x3cbb97[_0x605cc8];return _0x17d886;},a47_0x605c(_0x23d934,_0x569836);}const fs=require('fs'),path=require(a47_0x146a7f(0x1c8)),{spawn}=require(a47_0x146a7f(0x218)),{format}=require(a47_0x146a7f(0x21d)),logger=require('../../helpers/logger')[a47_0x146a7f(0x250)],{default:BrowserStackSetup}=require(a47_0x146a7f(0x271)),helper=require('../../helpers/helper'),utilities=require('../../helpers/utilities'),constants=require('../utils/constants'),{FRAMEWORKS}=require(a47_0x146a7f(0x289)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a47_0x146a7f(0x203)),{setAccessibilityCapabilities}=require(a47_0x146a7f(0x245)),{printBuildLink}=require(a47_0x146a7f(0x1fc)),TestDetails=require(a47_0x146a7f(0x1cf)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a47_0x146a7f(0x22f)),TestOrchestrationHandler=require(a47_0x146a7f(0x217)),BrowserstackCLI=require(a47_0x146a7f(0x266)),PerformanceEvents=require(a47_0x146a7f(0x26c))[a47_0x146a7f(0x249)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a47_0x146a7f(0x231)),ClientTroubleShootingService=require(a47_0x146a7f(0x221)),getUserPlaywrightConfig=async(_0x48c7eb,_0x1b8559)=>{const _0x8f28c3=a47_0x146a7f,_0x4bb5b4={'UGuNN':function(_0x1c9a40){return _0x1c9a40();},'PisYR':function(_0x10d92c){return _0x10d92c();},'NYAvB':function(_0x52755e,_0x3a4726){return _0x52755e(_0x3a4726);},'diruH':function(_0x382ea1,_0x59081f){return _0x382ea1(_0x59081f);},'wAxlI':_0x8f28c3(0x234),'fPFur':'--config='},_0x47177c=!helper[_0x8f28c3(0x285)](_0x48c7eb[_0x8f28c3(0x25e)]),_0x125165=_0x47177c?path['resolve'](process[_0x8f28c3(0x1ce)](),_0x48c7eb[_0x8f28c3(0x25e)]):process[_0x8f28c3(0x1ce)](),{resolveConfigFile:_0x2f617b,resolveConfigLocation:_0x38650a}=helper['isYarnPnP']()?helper[_0x8f28c3(0x258)](..._0x4bb5b4[_0x8f28c3(0x1d4)](getConfigLoaderPath)):helper['requirePWModule'][_0x8f28c3(0x288)](null,_0x4bb5b4['PisYR'](getConfigLoaderPath)),_0x1b5cc7=_0x2f617b?_0x4bb5b4[_0x8f28c3(0x1c9)](_0x2f617b,_0x125165):helper['nestedKeyValue'](_0x4bb5b4[_0x8f28c3(0x279)](_0x38650a,_0x125165),[_0x4bb5b4['wAxlI']]),_0x38214b={};if(_0x47177c){const _0x3ade03=_0x1b8559[_0x8f28c3(0x1e2)](_0x762641=>_0x762641==='--config'||_0x762641==='-c'||_0x762641['startsWith'](_0x8f28c3(0x205)));_0x1b8559[_0x8f28c3(0x1d5)](_0x3ade03,_0x1b8559[_0x3ade03][_0x8f28c3(0x1eb)](_0x4bb5b4[_0x8f28c3(0x259)])?0x1:0x2);}const _0x2d66be={};return _0x2d66be[_0x8f28c3(0x1c8)]=_0x1b5cc7,_0x2d66be[_0x8f28c3(0x25e)]=_0x38214b,_0x2d66be;},handleO11yRerun=_0x56dac5=>{const _0x4c2e43=a47_0x146a7f,_0x1f8e56={};_0x1f8e56[_0x4c2e43(0x20f)]=_0x4c2e43(0x1d2);const _0x185241=_0x1f8e56,_0x5da866=helper[_0x4c2e43(0x1e7)](process[_0x4c2e43(0x282)][_0x4c2e43(0x1e9)]);if(_0x5da866){const _0x18e15f=process[_0x4c2e43(0x282)][_0x4c2e43(0x1d8)],_0x11506b=[];if(helper[_0x4c2e43(0x220)](_0x18e15f)&&!helper['isUndefined'](_0x18e15f)){_0x18e15f[_0x4c2e43(0x1ed)](',')['map'](_0x36a36e=>{const _0x27ec91=_0x4c2e43;_0x11506b[_0x27ec91(0x207)]('('+_0x36a36e['trim']()+')');});const _0xcfa4f1='^'+_0x11506b['join']('|')+'$';_0x56dac5[_0x4c2e43(0x207)](_0x185241['opJhF'],_0xcfa4f1);}}},spawnOriginalProcess=_0x488288=>{const _0x291223=a47_0x146a7f,_0x1479e5={'TAyIZ':function(_0x5f30b1,_0x491584,_0x4abc6e,_0x139a2f){return _0x5f30b1(_0x491584,_0x4abc6e,_0x139a2f);},'wnJLm':_0x291223(0x21c),'rshiZ':_0x291223(0x24b),'PbSIC':_0x291223(0x1ff),'cgFCr':function(_0x124204,_0x1a27de){return _0x124204===_0x1a27de;},'SSFYB':_0x291223(0x265),'WBwAM':_0x291223(0x278)};_0x1479e5['TAyIZ'](spawn,helper['isYarnPnP']()?_0x1479e5[_0x291223(0x1fb)]:_0x1479e5[_0x291223(0x25a)],[_0x1479e5['PbSIC'],..._0x488288[_0x291223(0x20c)](0x1)],{'shell':_0x1479e5['cgFCr'](process[_0x291223(0x1fd)],_0x1479e5[_0x291223(0x24a)]),'stdio':_0x1479e5[_0x291223(0x213)],'cwd':process[_0x291223(0x1ce)]()});},isTestCommand=(_0x117c7f,_0x4b1ed4)=>{const _0x5954c4=a47_0x146a7f,_0x1869f4={};_0x1869f4['insaU']=function(_0x2e628d,_0x42cc4c){return _0x2e628d>_0x42cc4c;},_0x1869f4[_0x5954c4(0x25c)]=function(_0x1f89f2,_0xcbc4c9){return _0x1f89f2===_0xcbc4c9;},_0x1869f4['WYZlI']=_0x5954c4(0x238);const _0x37a5bf=_0x1869f4;if(_0x37a5bf[_0x5954c4(0x1e4)](_0x4b1ed4[_0x5954c4(0x28d)],0x1)&&_0x37a5bf['EJtsN'](_0x4b1ed4[0x1],_0x37a5bf[_0x5954c4(0x1ee)]))return!![];return![];};async function run(_0xb673cf,_0x944982,_0x19ba38){const _0x44db0f=a47_0x146a7f,_0x3bb5d7={'vykkC':function(_0x5d8229,_0x3827e3){return _0x5d8229(_0x3827e3);},'JabNN':_0x44db0f(0x206),'tcAHV':'pw_result.json','hmxhh':function(_0x4ba40b,_0x2f8bb5){return _0x4ba40b+_0x2f8bb5;},'PPwin':_0x44db0f(0x228),'aSSoI':function(_0x5740ff){return _0x5740ff();},'MGicG':function(_0xc61447){return _0xc61447();},'Bntff':'Error\x20in\x20closing\x20playwright','vzvdp':_0x44db0f(0x253),'Danpl':function(_0xb4dc89,_0x1b124e){return _0xb4dc89<_0x1b124e;},'ZeDny':function(_0x8d9e83,_0x4783f4){return _0x8d9e83===_0x4783f4;},'faVgb':_0x44db0f(0x286),'anuve':_0x44db0f(0x280),'XSCeO':function(_0x31e8b6,_0x5b3de5){return _0x31e8b6>=_0x5b3de5;},'uOvhS':'automation','HGqnj':function(_0x1d8cde,_0x76241e){return _0x1d8cde!=_0x76241e;},'Mulvv':function(_0xc355b6,_0x7950a4,_0x37e960){return _0xc355b6(_0x7950a4,_0x37e960);},'myRLc':function(_0x343cdf,_0x23df08){return _0x343cdf(_0x23df08);},'XUIBG':function(_0x5cf9a1,_0x41c87b){return _0x5cf9a1===_0x41c87b;},'arLtT':_0x44db0f(0x263),'sHWYn':function(_0x5d55d0,_0x8fc543){return _0x5d55d0(_0x8fc543);},'EnOfX':function(_0x393d99,_0x336bb2){return _0x393d99(_0x336bb2);},'RTgcE':_0x44db0f(0x243),'kEJAW':function(_0xdc60a9,_0x320f65){return _0xdc60a9===_0x320f65;},'pUlEN':_0x44db0f(0x1cb),'JsbzF':_0x44db0f(0x215),'slTOa':function(_0x581db1,_0x1139e4){return _0x581db1-_0x1139e4;},'KofFD':function(_0x2f93be,_0x44f47b){return _0x2f93be+_0x44f47b;},'nnYHO':'Updated\x20config\x20file\x20name\x20to\x20-\x20','LivOM':function(_0x22dac8,_0x16bc08){return _0x22dac8>_0x16bc08;},'RAbYE':function(_0x1750e3,_0x121fdc){return _0x1750e3+_0x121fdc;},'wICEY':_0x44db0f(0x272),'cxOPd':function(_0x992091,_0x4823dc){return _0x992091>_0x4823dc;},'mfuxU':_0x44db0f(0x1ff),'cyTjP':function(_0x2ab2e9,_0x25ef0d,_0x37c353,_0x59bc5b){return _0x2ab2e9(_0x25ef0d,_0x37c353,_0x59bc5b);},'EvelV':_0x44db0f(0x21c),'RUoFb':_0x44db0f(0x24b),'VpRUW':_0x44db0f(0x238),'YdWMg':_0x44db0f(0x28f),'eHOBD':function(_0x200d40,_0xfb8f51){return _0x200d40===_0xfb8f51;},'fvzEi':_0x44db0f(0x265),'SNBwc':function(_0x403508,_0x452127){return _0x403508===_0x452127;},'KLkRn':_0x44db0f(0x278),'iwBYG':'close','ADaZD':function(_0x5e2835,_0x3bfa21){return _0x5e2835|_0x3bfa21;},'VysqH':_0x44db0f(0x219),'IgRSY':_0x44db0f(0x1cd),'nThIn':function(_0x3cf811,_0x191449,_0x4dd3eb){return _0x3cf811(_0x191449,_0x4dd3eb);}};try{const _0x1dfbc0=path[_0x44db0f(0x24c)](helper[_0x44db0f(0x200)](),_0x3bb5d7[_0x44db0f(0x1de)]);try{fs[_0x44db0f(0x214)](_0x1dfbc0,_0x3bb5d7['ADaZD'](fs[_0x44db0f(0x274)][_0x44db0f(0x1dd)],fs[_0x44db0f(0x274)][_0x44db0f(0x27b)]));}catch(_0xc0fd02){ClientTroubleShootingService[_0x44db0f(0x1c7)]();}}catch(_0x30a8d3){logger[_0x44db0f(0x204)](_0x3bb5d7['RAbYE'](_0x3bb5d7[_0x44db0f(0x1e5)],_0x30a8d3));}try{const _0x15979e=path[_0x44db0f(0x24c)](helper[_0x44db0f(0x200)](),_0x3bb5d7['JabNN'],_0x3bb5d7['tcAHV']);fs[_0x44db0f(0x227)](_0x15979e)&&fs[_0x44db0f(0x275)](_0x15979e);}catch(_0x3c1fba){logger[_0x44db0f(0x204)](_0x3bb5d7[_0x44db0f(0x20d)](_0x3bb5d7[_0x44db0f(0x242)],_0x3c1fba));}if(!_0x3bb5d7[_0x44db0f(0x268)](isTestCommand,_0xb673cf,_0x944982)){_0x3bb5d7[_0x44db0f(0x1e8)](spawnOriginalProcess,_0x944982);return;}await PerformanceTester[_0x44db0f(0x1c5)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x2db995=_0x44db0f;if(!_0x19ba38[_0x2db995(0x25e)]){logger[_0x2db995(0x233)](_0x3bb5d7[_0x2db995(0x254)]);return;}await _0x19ba38[_0x2db995(0x23b)](_0xb673cf),CLIUtils['setFrameworkDetail'](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x2db995(0x1e0)]),BrowserstackCLI[_0x2db995(0x26e)]()[_0x2db995(0x28c)](_0x19ba38[_0x2db995(0x25e)],_0x19ba38[_0x2db995(0x1ca)],_0x19ba38['cliConfig']),await BrowserstackCLI[_0x2db995(0x26e)]()[_0x2db995(0x23d)]();!BrowserstackCLI[_0x2db995(0x26e)]()['isRunning']()&&await _0x19ba38[_0x2db995(0x239)]();for(var _0x3d6434=0x0;_0x3bb5d7[_0x2db995(0x1e1)](_0x3d6434,constants[_0x2db995(0x283)][_0x2db995(0x28d)]);_0x3d6434++){var _0x5d531f=constants[_0x2db995(0x283)][_0x3d6434];process['env'][_0x5d531f]&&await ClientTroubleShootingService[_0x2db995(0x22b)](_0x5d531f);}const _0x4786b=BrowserstackCLI[_0x2db995(0x26e)]()['getConfig']();!helper[_0x2db995(0x260)](_0x4786b[_0x2db995(0x1d9)])&&(process['env'][_0x2db995(0x28e)]=!![]);_0x3bb5d7[_0x2db995(0x23e)](_0x4786b[_0x2db995(0x1d9)],![])&&(process[_0x2db995(0x282)][_0x2db995(0x28e)]=_0x3bb5d7[_0x2db995(0x273)],_0x944982=_0x944982[_0x2db995(0x1d3)](_0x55deef=>_0x55deef!=='--disable-browserstack-automation'));const _0x17fe0e=_0x944982[_0x2db995(0x201)](_0x3bb5d7[_0x2db995(0x1ec)]);(_0x3bb5d7[_0x2db995(0x21f)](_0x17fe0e,0x0)||_0x3bb5d7[_0x2db995(0x23e)](_0x4786b[_0x2db995(0x1db)],![]))&&(process[_0x2db995(0x282)][_0x2db995(0x25f)]=_0x3bb5d7[_0x2db995(0x273)],_0x944982=_0x944982[_0x2db995(0x1d3)](_0x52f0e2=>_0x52f0e2!==_0x2db995(0x280)));!helper[_0x2db995(0x285)](_0x19ba38['cliConfig'])&&_0x19ba38['cliConfig'][_0x2db995(0x1d6)](_0x3bb5d7[_0x2db995(0x27c)])&&(process['env'][_0x2db995(0x28e)]=_0x19ba38[_0x2db995(0x1e3)]['get'](_0x3bb5d7[_0x2db995(0x27c)])||!![]);_0x3bb5d7['HGqnj'](_0x19ba38[_0x2db995(0x25e)][_0x2db995(0x1db)],null)&&!helper[_0x2db995(0x1e7)](process['env'][_0x2db995(0x25f)])&&(process[_0x2db995(0x282)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x2db995(0x282)][_0x2db995(0x25f)]||_0x19ba38[_0x2db995(0x25e)][_0x2db995(0x1db)]);const _0x50141c=!helper[_0x2db995(0x260)](process['env'][_0x2db995(0x25f)]);_0x19ba38['config']['accessibilityOptions']&&(process['env'][_0x2db995(0x240)]=JSON['stringify'](_0x19ba38[_0x2db995(0x25e)]['accessibilityOptions']));let _0x36a40e=![];_0x19ba38[_0x2db995(0x25e)][_0x2db995(0x247)]&&(_0x36a40e=!![],process[_0x2db995(0x282)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x19ba38[_0x2db995(0x25e)][_0x2db995(0x247)]);const _0x81ade9=_0x944982[_0x2db995(0x1f3)](),_0x13030f=await _0x3bb5d7[_0x2db995(0x28a)](getUserPlaywrightConfig,_0xb673cf,_0x944982);if(helper[_0x2db995(0x285)](_0x13030f)){_0x3bb5d7[_0x2db995(0x1f2)](spawnOriginalProcess,_0x81ade9);return;}const _0x13e6cd=_0x13030f['path']?path[_0x2db995(0x225)](_0x13030f[_0x2db995(0x1c8)]):process['cwd']();process[_0x2db995(0x282)][_0x2db995(0x1f9)]=_0x13e6cd,await PerformanceTester[_0x2db995(0x1c5)](PerformanceEvents[_0x2db995(0x23f)],async()=>{const _0x206d9d=_0x2db995;!BrowserstackCLI['getInstance']()[_0x206d9d(0x277)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0x206d9d(0x1e0)],_0x19ba38),_0x50141c&&_0x3bb5d7[_0x206d9d(0x222)](handleO11yRerun,_0x944982);})();if(!BrowserstackCLI[_0x2db995(0x26e)]()[_0x2db995(0x277)]()){let _0x6c23cc=_0x3bb5d7[_0x2db995(0x1f5)](process[_0x2db995(0x282)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x3bb5d7[_0x2db995(0x1cc)]);_0x6c23cc=_0x6c23cc||_0x3bb5d7['sHWYn'](checkAccessibilityPlatformConfig,_0x19ba38[_0x2db995(0x25e)]),process[_0x2db995(0x282)][_0x2db995(0x1fe)]=_0x6c23cc,_0x6c23cc&&_0x3bb5d7[_0x2db995(0x1e8)](setAccessibilityCapabilities,_0x19ba38['config']);}const _0x34f99b=path[_0x2db995(0x24c)](_0x13030f[_0x2db995(0x1c8)]?path['dirname'](_0x13030f[_0x2db995(0x1c8)]):process[_0x2db995(0x1ce)](),_0x3bb5d7[_0x2db995(0x269)]);fs[_0x2db995(0x1d0)](_0x34f99b,helper[_0x2db995(0x24e)](_0x19ba38[_0x2db995(0x25e)])),process['env'][_0x2db995(0x244)]=_0x34f99b,helper[_0x2db995(0x209)]();let _0x5536e4='';_0x3bb5d7[_0x2db995(0x1f1)](helper[_0x2db995(0x212)](),constants['PACKAGE_TYPE']['MODULE'])?_0x5536e4=_0x3bb5d7[_0x2db995(0x1f0)]:_0x5536e4=_0x3bb5d7[_0x2db995(0x1ef)];let _0x4d7b3c='';if(helper[_0x2db995(0x1f6)](_0x13030f[_0x2db995(0x1c8)])){_0x4d7b3c=_0x2db995(0x22e);const _0x31c41d=_0x5536e4[_0x2db995(0x1ed)]('.');_0x31c41d[_0x3bb5d7[_0x2db995(0x25b)](_0x31c41d[_0x2db995(0x28d)],0x1)]='ts',_0x5536e4=_0x31c41d[_0x2db995(0x24c)]('.'),logger['debug'](_0x3bb5d7[_0x2db995(0x24f)](_0x3bb5d7[_0x2db995(0x1f4)],_0x5536e4));}else _0x4d7b3c=_0x2db995(0x235);const _0x9ee935=path[_0x2db995(0x24c)](_0x13030f['path']?path[_0x2db995(0x225)](_0x13030f[_0x2db995(0x1c8)]):process[_0x2db995(0x1ce)](),_0x5536e4);let _0x4f7a31=_0x13030f[_0x2db995(0x1c8)]?_0x13030f[_0x2db995(0x1c8)]:'';_0x4f7a31=_0x3bb5d7['LivOM'](_0x4f7a31[_0x2db995(0x28d)],0x0)?path[_0x2db995(0x26d)](_0x4f7a31):'',process['env'][_0x2db995(0x27e)]=_0x4f7a31;const _0xd00831=helper[_0x2db995(0x1df)](_0x19ba38[_0x2db995(0x25e)]),_0x4cd6f1=helper['getNoProxy'](_0x19ba38[_0x2db995(0x25e)]);logger['debug']('Proxy\x20url\x20:\x20'+_0xd00831),logger[_0x2db995(0x204)]('No\x20Proxy\x20:\x20'+_0x4cd6f1);_0xd00831&&(_0x4d7b3c=_0x3bb5d7[_0x2db995(0x20d)](_0x2db995(0x262)+_0xd00831+_0x2db995(0x230)+_0x4cd6f1+_0x2db995(0x1f7),_0x4d7b3c));helper[_0x2db995(0x24d)]({},_0x944982),fs[_0x2db995(0x1d0)](_0x9ee935,_0x4d7b3c);let _0x1b29e5=[];const _0x4bfcf5=new TestOrchestrationHandler(_0x19ba38[_0x2db995(0x25e)]);if(_0x4bfcf5[_0x2db995(0x224)]()){logger['debug'](_0x3bb5d7['wICEY']);const _0x40b0b0=await _0x4bfcf5[_0x2db995(0x236)](_0x4f7a31,_0x944982[_0x2db995(0x20c)](0x2));logger[_0x2db995(0x204)](_0x2db995(0x20b)+JSON[_0x2db995(0x20a)](_0x40b0b0)+'\x20test\x20files\x20to\x20run.');const _0x2ff190=await _0x4bfcf5['reorderTestFiles'](_0x40b0b0);logger['debug'](_0x2db995(0x284)+JSON['stringify'](_0x2ff190)),_0x2ff190&&_0x3bb5d7['cxOPd'](_0x2ff190[_0x2db995(0x28d)],0x0)&&(process[_0x2db995(0x282)][_0x2db995(0x246)]=_0x2ff190[_0x2db995(0x24c)](','),_0x3bb5d7[_0x2db995(0x1e1)](_0x2ff190[_0x2db995(0x28d)],_0x40b0b0['length'])&&(_0x1b29e5=_0x2ff190['map'](_0x75ce0b=>path['relative'](process[_0x2db995(0x1ce)](),_0x75ce0b)[_0x2db995(0x1ed)](path['sep'])[_0x2db995(0x24c)]('/'))));}PerformanceTester[_0x2db995(0x1da)](PerformanceEvents['SDK_SETUP']),process[_0x2db995(0x282)][_0x2db995(0x1d1)]=process[_0x2db995(0x282)]['BROWSERSTACK_FRAMEWORK']||_0x3bb5d7[_0x2db995(0x281)];const _0x39fa7a=_0x3bb5d7[_0x2db995(0x25d)](spawn,helper[_0x2db995(0x22a)]()?_0x3bb5d7[_0x2db995(0x202)]:_0x3bb5d7[_0x2db995(0x264)],[_0x3bb5d7['mfuxU'],_0x3bb5d7[_0x2db995(0x229)],_0x3bb5d7[_0x2db995(0x27f)],_0x3bb5d7['eHOBD'](process[_0x2db995(0x1fd)],_0x3bb5d7[_0x2db995(0x26b)])?'\x22'+_0x9ee935+'\x22':_0x9ee935,..._0x944982[_0x2db995(0x20c)](0x2),..._0x1b29e5],{'shell':_0x3bb5d7[_0x2db995(0x223)](process[_0x2db995(0x1fd)],_0x3bb5d7[_0x2db995(0x26b)]),'stdio':_0x3bb5d7['KLkRn'],'cwd':process[_0x2db995(0x1ce)](),'env':Object['assign']({},process[_0x2db995(0x282)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2db995(0x276)](_0xb673cf),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x19ba38['config'][_0x2db995(0x20e)][_0x2db995(0x1f8)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x19ba38[_0x2db995(0x25e)]['testContextOptions'][_0x2db995(0x256)],'BROWSERSTACK_LOG_LEVEL':_0x19ba38[_0x2db995(0x25e)][_0x2db995(0x255)]})}),_0x288e2f=()=>{const _0x275d95=_0x2db995;try{const _0x136ae2=path[_0x275d95(0x24c)](helper['homedir'](),_0x3bb5d7[_0x275d95(0x1de)],_0x3bb5d7[_0x275d95(0x251)]);if(fs[_0x275d95(0x227)](_0x136ae2)){let _0x32d9ed=fs[_0x275d95(0x237)](_0x136ae2);_0x32d9ed=JSON['parse'](_0x32d9ed),_0x19ba38[_0x275d95(0x21e)]=_0x32d9ed,fs[_0x275d95(0x275)](_0x136ae2);}}catch(_0x2ef66f){logger[_0x275d95(0x204)](_0x3bb5d7['hmxhh'](_0x3bb5d7[_0x275d95(0x241)],_0x2ef66f));}};_0x39fa7a['on'](_0x3bb5d7[_0x2db995(0x1c6)],async _0x63d56f=>{const _0xbc6fac=_0x2db995,_0x3b6dbd={};_0x3b6dbd[_0xbc6fac(0x270)]=_0x3bb5d7[_0xbc6fac(0x1de)];const _0x2c34e5=_0x3b6dbd;try{PerformanceTester[_0xbc6fac(0x257)](PerformanceEvents[_0xbc6fac(0x28b)]),_0x3bb5d7[_0xbc6fac(0x23c)](_0x288e2f),await TestHubHandler[_0xbc6fac(0x290)](),await ClientTroubleShootingService[_0xbc6fac(0x248)]();const _0x5e913d=BrowserstackCLI[_0xbc6fac(0x23a)]();await BrowserstackCLI[_0xbc6fac(0x26e)]()[_0xbc6fac(0x290)](),TestDetails[_0xbc6fac(0x22c)](),_0x3bb5d7['MGicG'](printBuildLink),await utilities[_0xbc6fac(0x210)](_0x19ba38,_0x5e913d),process[_0xbc6fac(0x21b)]=_0x63d56f,logger[_0xbc6fac(0x204)](_0xbc6fac(0x211)+_0x63d56f),logger[_0xbc6fac(0x26a)](_0xbc6fac(0x1d7)+_0x9ee935),fs[_0xbc6fac(0x275)](_0x9ee935);fs[_0xbc6fac(0x227)](_0x34f99b)&&(logger[_0xbc6fac(0x204)]('Deleting\x20'+_0x34f99b),fs['unlinkSync'](_0x34f99b));const _0x26dcf8=fs[_0xbc6fac(0x232)](path['join'](helper[_0xbc6fac(0x200)](),_0x3bb5d7[_0xbc6fac(0x1de)]))[_0xbc6fac(0x1d3)](_0x267e9b=>_0x267e9b[_0xbc6fac(0x1eb)](_0xbc6fac(0x208)));_0x26dcf8['forEach'](_0x570fd7=>{const _0x156ccb=_0xbc6fac;fs['unlinkSync'](path[_0x156ccb(0x24c)](helper[_0x156ccb(0x200)](),_0x2c34e5[_0x156ccb(0x270)],_0x570fd7));});}catch(_0xf91c27){logger[_0xbc6fac(0x204)](_0x3bb5d7[_0xbc6fac(0x252)](_0x3bb5d7[_0xbc6fac(0x1fa)],_0xf91c27));}});})();}module[a47_0x146a7f(0x22d)]=run;
2
+ 'use strict';const a48_0x1ffe61=a48_0xce60;function a48_0xce60(_0x17c204,_0x5f51ef){const _0x172aeb=a48_0x172a();return a48_0xce60=function(_0xce6008,_0x292514){_0xce6008=_0xce6008-0x6a;let _0x3a3a7a=_0x172aeb[_0xce6008];return _0x3a3a7a;},a48_0xce60(_0x17c204,_0x5f51ef);}(function(_0x166ddd,_0x464d53){const _0x27ce64=a48_0xce60,_0x3e02c0=_0x166ddd();while(!![]){try{const _0x35cc81=-parseInt(_0x27ce64(0xa5))/0x1*(parseInt(_0x27ce64(0x112))/0x2)+-parseInt(_0x27ce64(0x105))/0x3+-parseInt(_0x27ce64(0xe8))/0x4+-parseInt(_0x27ce64(0x11d))/0x5*(-parseInt(_0x27ce64(0x101))/0x6)+parseInt(_0x27ce64(0x73))/0x7+-parseInt(_0x27ce64(0xdf))/0x8+parseInt(_0x27ce64(0x99))/0x9*(parseInt(_0x27ce64(0xe3))/0xa);if(_0x35cc81===_0x464d53)break;else _0x3e02c0['push'](_0x3e02c0['shift']());}catch(_0x41adb3){_0x3e02c0['push'](_0x3e02c0['shift']());}}}(a48_0x172a,0xaf96e));function a48_0x172a(){const _0x3722e0=['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','BROWSERSTACK_FRAMEWORK','../../helpers/utilities','Deleting\x20','shutdown','unlinkSync','wpEqu','PLAYWRIGHT','resolve','byNBc','inherit','KwtYq','zrfeB','env','BPhAv','.browserstack','FlyJM','cxIMu','getProxyUrl','reportConflictingEnvVarIssue','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','homedir','3739694zWVDtX','sep','jBHjr','SReIv','true','serializeToYamlString','automation','launchBuild','concat','MDjHc','error','CZhUA','push','startsWith','kZdpb','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_AUTOMATION','tKxtf','join','isUndefined','cliConfig','measureWrapper','mdmOW','xewaL','../utils/clientTroubleshootingService','browserstackAutomation','child_process','accessibilityOptions','stringify','GOXiG','setupBrowserstackLocal','stop','has','gEHQm','TQenR','getConfigPath','../v2/TestInfo','EZLov','3051FGaUcS','getInstance','logLevel','\x20test\x20files\x20to\x20run.','isYarnPnP','map','KikCh','winstonLogger','constants','iNkuh','getNoProxy','filter','1091983XxHnnd','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','../utils/constants','Error\x20in\x20getting\x20funnel\x20data\x20results','R_OK','rkFhG','isTrue','../../helpers/test-observability/constants','length','exports','config','./reporter/pwUtils','../../helpers/performance/performance-tester','EVENTS','reportDotBrowserStackFolderNotAccessibleIssue','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','split','indexOf','../../helpers/test-observability/utils','finalExecution','Found:\x20','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','writeFileSync','false','BROWSERSTACK_TEST_OBSERVABILITY','SDK_SETUP','SDK_CLEANUP','testContextOptions','BROWSERSTACK_SETUP_CONFIG_PATH','playwright','filterBrowserstackArgs','isRunning','WoDuC','playwright-browserstack-sdk.config.js','xTxKE','EaOCt','reorderTestFiles','../../helpers/BrowserStackSetup','../../helpers/test-orchestration/testOrchestrationHandler','parse','dirname','requirePWModule','ohstu','uTeMD','accessibility','resolvedConfigFile','win32','test','yAQhw','initialize','debug','MODULE','../../helpers/logger','XCdYd','yarn','forEach','BROWSERSTACK_PW_TEST_ORDER','qxjnL','2529880rQcQGC','pgzPn','assign','./reporter/test-details','67190aNuHqo','uynHT','../../helpers/performance/constants','buTSw','configPath','3269376BauxTg','../../helpers/testhub/testhubHandler','INTERNALLY_USED_ENV_VARS','requireConfigLoaderYarnPnP','get','browserstackSetupConfig.json','PACKAGE_TYPE','Error\x20in\x20deleting\x20playwright\x20results','accessSync','../v2/cliUtils','pPIjE','relative','umgZb','./accessibility-helper','ZsjrI','slice','info','Error\x20in\x20closing\x20playwright','--disable-test-observability','HzGCo','GgnsC','existsSync','util','--config=','setBrowserstackConfig','25266MfczgH','isTestOrchestrationEnabled','npx','start','2595642bBZxNC','Proxy\x20url\x20:\x20','exitCode','--config','skipSessionStatus','SDK_POST_INITIALIZE','setFrameworkDetail','close','findIndex','apply','getConfig','QCIjH','JGjHE','2VZrYgw','cwd','BROWSERSTACK_PW_CONFIG_DIR','../../helpers/helper','Updated\x20config\x20file\x20name\x20to\x20-\x20','GhyZm','ArXvB','AbKTu','path','reportFinalDetectionState','skipSessionName','1185XrXyvw','getPackageType','readdirSync','testObservability','platform','bootstrap','IVTkc'];a48_0x172a=function(){return _0x3722e0;};return a48_0x172a();}const fs=require('fs'),path=require('path'),{spawn}=require(a48_0x1ffe61(0x8d)),{format}=require(a48_0x1ffe61(0xfe)),logger=require(a48_0x1ffe61(0xd9))[a48_0x1ffe61(0xa0)],{default:BrowserStackSetup}=require(a48_0x1ffe61(0xca)),helper=require(a48_0x1ffe61(0x115)),utilities=require(a48_0x1ffe61(0x126)),constants=require(a48_0x1ffe61(0xa7)),{FRAMEWORKS}=require(a48_0x1ffe61(0xac)),{getConfigLoaderPath}=require(a48_0x1ffe61(0xb0)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a48_0x1ffe61(0xf5)),{printBuildLink}=require(a48_0x1ffe61(0xb7)),TestDetails=require(a48_0x1ffe61(0xe2)),TestHubHandler=require(a48_0x1ffe61(0xe9)),PerformanceTester=require(a48_0x1ffe61(0xb1)),TestOrchestrationHandler=require(a48_0x1ffe61(0xcb)),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require(a48_0x1ffe61(0xe5))[a48_0x1ffe61(0xb2)],CLIUtils=require(a48_0x1ffe61(0xf1)),TestInfo=require(a48_0x1ffe61(0x97)),ClientTroubleShootingService=require(a48_0x1ffe61(0x8b)),getUserPlaywrightConfig=async(_0x535e10,_0x2a5797)=>{const _0x4da9da=a48_0x1ffe61,_0x34cc94={'vKCAU':function(_0x3727ef){return _0x3727ef();},'LfqKs':function(_0xebcd52,_0x1444cd){return _0xebcd52(_0x1444cd);},'ArXvB':function(_0x1cba91,_0x437502){return _0x1cba91(_0x437502);},'xewaL':_0x4da9da(0xd2),'rkFhG':_0x4da9da(0xff)},_0xda58ff=!helper[_0x4da9da(0x86)](_0x535e10['config']),_0x4828c2=_0xda58ff?path[_0x4da9da(0x12c)](process['cwd'](),_0x535e10[_0x4da9da(0xaf)]):process['cwd'](),{resolveConfigFile:_0x45942d,resolveConfigLocation:_0x400efe}=helper[_0x4da9da(0x9d)]()?helper[_0x4da9da(0xeb)](..._0x34cc94['vKCAU'](getConfigLoaderPath)):helper[_0x4da9da(0xce)][_0x4da9da(0x10e)](null,_0x34cc94['vKCAU'](getConfigLoaderPath)),_0x5bbfa0=_0x45942d?_0x34cc94['LfqKs'](_0x45942d,_0x4828c2):helper['nestedKeyValue'](_0x34cc94[_0x4da9da(0x118)](_0x400efe,_0x4828c2),[_0x34cc94[_0x4da9da(0x8a)]]),_0x5f2890={};if(_0xda58ff){const _0x343995=_0x2a5797[_0x4da9da(0x10d)](_0x142e4b=>_0x142e4b==='--config'||_0x142e4b==='-c'||_0x142e4b[_0x4da9da(0x80)](_0x4da9da(0xff)));_0x2a5797['splice'](_0x343995,_0x2a5797[_0x343995][_0x4da9da(0x80)](_0x34cc94[_0x4da9da(0xaa)])?0x1:0x2);}const _0x4f312e={};return _0x4f312e['path']=_0x5bbfa0,_0x4f312e['config']=_0x5f2890,_0x4f312e;},handleO11yRerun=_0x3d4766=>{const _0x3646ac=a48_0x1ffe61,_0x46dabb={};_0x46dabb[_0x3646ac(0x95)]='--grep';const _0x549e3b=_0x46dabb,_0x11e375=helper[_0x3646ac(0xab)](process[_0x3646ac(0x6a)]['BROWSERSTACK_RERUN']);if(_0x11e375){const _0x2632a8=process[_0x3646ac(0x6a)]['BROWSERSTACK_RERUN_TESTS'],_0x56da64=[];if(helper['validateRerunTestList'](_0x2632a8)&&!helper[_0x3646ac(0x86)](_0x2632a8)){_0x2632a8['split'](',')[_0x3646ac(0x9e)](_0x353028=>{_0x56da64['push']('('+_0x353028['trim']()+')');});const _0x494053='^'+_0x56da64[_0x3646ac(0x85)]('|')+'$';_0x3d4766[_0x3646ac(0x7f)](_0x549e3b[_0x3646ac(0x95)],_0x494053);}}},spawnOriginalProcess=_0x27fdbc=>{const _0x3c5e65=a48_0x1ffe61,_0xe5bb5b={'JGjHE':function(_0x100f76,_0x537182,_0x14cdaf,_0x43de7a){return _0x100f76(_0x537182,_0x14cdaf,_0x43de7a);},'ohstu':_0x3c5e65(0xdb),'SJIyi':'npx','GhyZm':'playwright','pgzPn':function(_0x136912,_0x49b05b){return _0x136912===_0x49b05b;},'tKxtf':_0x3c5e65(0xd3),'jfHxc':'inherit'};_0xe5bb5b[_0x3c5e65(0x111)](spawn,helper[_0x3c5e65(0x9d)]()?_0xe5bb5b[_0x3c5e65(0xcf)]:_0xe5bb5b['SJIyi'],[_0xe5bb5b[_0x3c5e65(0x117)],..._0x27fdbc[_0x3c5e65(0xf7)](0x1)],{'shell':_0xe5bb5b[_0x3c5e65(0xe0)](process[_0x3c5e65(0x121)],_0xe5bb5b[_0x3c5e65(0x84)]),'stdio':_0xe5bb5b['jfHxc'],'cwd':process[_0x3c5e65(0x113)]()});},isTestCommand=(_0x5b28e2,_0x4315de)=>{const _0x50ac09=a48_0x1ffe61,_0x5b14c2={};_0x5b14c2[_0x50ac09(0x12a)]=function(_0x1201d6,_0x371e2c){return _0x1201d6>_0x371e2c;},_0x5b14c2[_0x50ac09(0xe4)]=function(_0x5a194f,_0x18ea66){return _0x5a194f===_0x18ea66;},_0x5b14c2[_0x50ac09(0x75)]=_0x50ac09(0xd4);const _0x50133b=_0x5b14c2;if(_0x50133b['wpEqu'](_0x4315de[_0x50ac09(0xad)],0x1)&&_0x50133b[_0x50ac09(0xe4)](_0x4315de[0x1],_0x50133b[_0x50ac09(0x75)]))return!![];return![];};async function run(_0x4a44d5,_0x575a08,_0x3e82ad){const _0x4ff30c=a48_0x1ffe61,_0x345d53={'mdmOW':function(_0x4afdf2,_0x56403c){return _0x4afdf2(_0x56403c);},'uTeMD':_0x4ff30c(0x6c),'KwtYq':'pw_result.json','pPIjE':function(_0x52cbdd,_0x30c585){return _0x52cbdd+_0x30c585;},'hcJei':_0x4ff30c(0xa8),'cxIMu':function(_0x206c52){return _0x206c52();},'GBaZQ':function(_0x1a1c46){return _0x1a1c46();},'UZCAz':_0x4ff30c(0xf9),'XCdYd':'BrowserStack\x20config\x20file\x20not\x20found.','QCIjH':function(_0x5a83f2,_0x5caef1){return _0x5a83f2<_0x5caef1;},'zrfeB':function(_0x1a9055,_0x155f45){return _0x1a9055===_0x155f45;},'buTSw':_0x4ff30c(0xbc),'KikCh':_0x4ff30c(0xfa),'SKORU':function(_0x58b633,_0x382a0c){return _0x58b633>=_0x382a0c;},'byNBc':function(_0x2283ac,_0x10e958){return _0x2283ac===_0x10e958;},'qxjnL':_0x4ff30c(0x79),'CZhUA':function(_0xb32198,_0x1537d3){return _0xb32198!=_0x1537d3;},'umgZb':function(_0x502fde,_0x583082,_0x21f1c5){return _0x502fde(_0x583082,_0x21f1c5);},'YpnjK':_0x4ff30c(0x77),'HzGCo':function(_0x419b8e,_0x397b0a){return _0x419b8e(_0x397b0a);},'jeBbw':function(_0x1b75b9,_0x512301){return _0x1b75b9(_0x512301);},'iNkuh':_0x4ff30c(0xed),'EaOCt':_0x4ff30c(0x82),'IVTkc':_0x4ff30c(0xc6),'MDjHc':function(_0x464a7e,_0x2132c4){return _0x464a7e-_0x2132c4;},'kZdpb':function(_0x378eb3,_0x3df305){return _0x378eb3+_0x3df305;},'SReIv':_0x4ff30c(0x116),'BPhAv':function(_0xbc0fc1,_0x3146bc){return _0xbc0fc1>_0x3146bc;},'dCBeD':function(_0x3f949e,_0x35b914){return _0x3f949e+_0x35b914;},'sLFeM':_0x4ff30c(0x71),'ZsjrI':function(_0x430519,_0x3b6054){return _0x430519>_0x3b6054;},'xTxKE':_0x4ff30c(0xc2),'tZvmW':function(_0x72855d,_0xa84dd4,_0x52c694,_0x165549){return _0x72855d(_0xa84dd4,_0x52c694,_0x165549);},'DjNTO':'yarn','GOXiG':_0x4ff30c(0x103),'EZLov':_0x4ff30c(0xd4),'FlyJM':_0x4ff30c(0x108),'WoDuC':_0x4ff30c(0xd3),'yAQhw':_0x4ff30c(0x12e),'VzWDb':_0x4ff30c(0x10c),'GgnsC':function(_0x256aea,_0x696ae6){return _0x256aea|_0x696ae6;},'OFbdJ':function(_0x3f1ded,_0x1d9050){return _0x3f1ded+_0x1d9050;},'IEYwy':_0x4ff30c(0xa6),'AbKTu':_0x4ff30c(0xef)};try{const _0x3c0e05=path['join'](helper[_0x4ff30c(0x72)](),_0x345d53[_0x4ff30c(0xd0)]);try{fs[_0x4ff30c(0xf0)](_0x3c0e05,_0x345d53[_0x4ff30c(0xfc)](fs['constants'][_0x4ff30c(0xa9)],fs[_0x4ff30c(0xa1)]['W_OK']));}catch(_0xb0dbac){ClientTroubleShootingService[_0x4ff30c(0xb3)]();}}catch(_0x150699){logger['debug'](_0x345d53['OFbdJ'](_0x345d53['IEYwy'],_0x150699));}try{const _0x3409c8=path[_0x4ff30c(0x85)](helper[_0x4ff30c(0x72)](),_0x345d53[_0x4ff30c(0xd0)],_0x345d53['KwtYq']);fs[_0x4ff30c(0xfd)](_0x3409c8)&&fs['unlinkSync'](_0x3409c8);}catch(_0x41b6c2){logger[_0x4ff30c(0xd7)](_0x345d53[_0x4ff30c(0x81)](_0x345d53[_0x4ff30c(0x119)],_0x41b6c2));}if(!_0x345d53[_0x4ff30c(0xf4)](isTestCommand,_0x4a44d5,_0x575a08)){_0x345d53[_0x4ff30c(0xfb)](spawnOriginalProcess,_0x575a08);return;}await PerformanceTester[_0x4ff30c(0x88)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x55d5f5=_0x4ff30c;if(!_0x3e82ad['config']){logger[_0x55d5f5(0x7d)](_0x345d53[_0x55d5f5(0xda)]);return;}await _0x3e82ad[_0x55d5f5(0xd6)](_0x4a44d5),CLIUtils[_0x55d5f5(0x10b)](FRAMEWORKS[_0x55d5f5(0x12b)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI[_0x55d5f5(0x9a)]()[_0x55d5f5(0x100)](_0x3e82ad[_0x55d5f5(0xaf)],_0x3e82ad[_0x55d5f5(0xe7)],_0x3e82ad[_0x55d5f5(0x87)]),await BrowserstackCLI[_0x55d5f5(0x9a)]()[_0x55d5f5(0x122)]();!BrowserstackCLI['getInstance']()[_0x55d5f5(0xc4)]()&&await _0x3e82ad[_0x55d5f5(0x91)]();for(var _0x28e649=0x0;_0x345d53[_0x55d5f5(0x110)](_0x28e649,constants[_0x55d5f5(0xea)][_0x55d5f5(0xad)]);_0x28e649++){var _0x4b9311=constants['INTERNALLY_USED_ENV_VARS'][_0x28e649];process[_0x55d5f5(0x6a)][_0x4b9311]&&await ClientTroubleShootingService[_0x55d5f5(0x70)](_0x4b9311);}const _0x33ed3d=BrowserstackCLI[_0x55d5f5(0x9a)]()[_0x55d5f5(0x10f)]();!helper['isFalse'](_0x33ed3d[_0x55d5f5(0x8c)])&&(process[_0x55d5f5(0x6a)]['BROWSERSTACK_AUTOMATION']=!![]);_0x345d53[_0x55d5f5(0x130)](_0x33ed3d['browserstackAutomation'],![])&&(process[_0x55d5f5(0x6a)][_0x55d5f5(0x83)]=_0x345d53[_0x55d5f5(0xe6)],_0x575a08=_0x575a08['filter'](_0x407d1b=>_0x407d1b!=='--disable-browserstack-automation'));const _0x434f5f=_0x575a08[_0x55d5f5(0xb6)](_0x345d53[_0x55d5f5(0x9f)]);(_0x345d53['SKORU'](_0x434f5f,0x0)||_0x345d53['byNBc'](_0x33ed3d[_0x55d5f5(0x120)],![]))&&(process[_0x55d5f5(0x6a)][_0x55d5f5(0xbd)]=_0x345d53[_0x55d5f5(0xe6)],_0x575a08=_0x575a08[_0x55d5f5(0xa4)](_0x3692d7=>_0x3692d7!==_0x55d5f5(0xfa)));!helper[_0x55d5f5(0x86)](_0x3e82ad['cliConfig'])&&_0x3e82ad['cliConfig'][_0x55d5f5(0x93)](_0x345d53[_0x55d5f5(0xde)])&&(process[_0x55d5f5(0x6a)][_0x55d5f5(0x83)]=_0x3e82ad[_0x55d5f5(0x87)][_0x55d5f5(0xec)](_0x345d53[_0x55d5f5(0xde)])||!![]);_0x345d53[_0x55d5f5(0x7e)](_0x3e82ad[_0x55d5f5(0xaf)]['testObservability'],null)&&!helper[_0x55d5f5(0xab)](process[_0x55d5f5(0x6a)][_0x55d5f5(0xbd)])&&(process[_0x55d5f5(0x6a)][_0x55d5f5(0xbd)]=process[_0x55d5f5(0x6a)][_0x55d5f5(0xbd)]||_0x3e82ad[_0x55d5f5(0xaf)]['testObservability']);const _0x4b440c=!helper['isFalse'](process[_0x55d5f5(0x6a)]['BROWSERSTACK_TEST_OBSERVABILITY']);_0x3e82ad['config'][_0x55d5f5(0x8e)]&&(process[_0x55d5f5(0x6a)][_0x55d5f5(0x124)]=JSON[_0x55d5f5(0x8f)](_0x3e82ad[_0x55d5f5(0xaf)][_0x55d5f5(0x8e)]));let _0xbf866f=![];_0x3e82ad[_0x55d5f5(0xaf)]['accessibility']&&(_0xbf866f=!![],process[_0x55d5f5(0x6a)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x3e82ad[_0x55d5f5(0xaf)][_0x55d5f5(0xd1)]);const _0x199c3d=_0x575a08[_0x55d5f5(0x7b)](),_0x1d5bcb=await _0x345d53[_0x55d5f5(0xf4)](getUserPlaywrightConfig,_0x4a44d5,_0x575a08);if(helper[_0x55d5f5(0x86)](_0x1d5bcb)){_0x345d53[_0x55d5f5(0x89)](spawnOriginalProcess,_0x199c3d);return;}const _0x4d6f76=_0x1d5bcb[_0x55d5f5(0x11a)]?path[_0x55d5f5(0xcd)](_0x1d5bcb['path']):process[_0x55d5f5(0x113)]();process['env'][_0x55d5f5(0x114)]=_0x4d6f76,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x55d5f5(0x10a)],async()=>{const _0x35eb0b=_0x55d5f5;!BrowserstackCLI[_0x35eb0b(0x9a)]()['isRunning']()&&await TestHubHandler[_0x35eb0b(0x7a)](FRAMEWORKS[_0x35eb0b(0x12b)],_0x3e82ad),_0x4b440c&&_0x345d53[_0x35eb0b(0x89)](handleO11yRerun,_0x575a08);})();if(!BrowserstackCLI[_0x55d5f5(0x9a)]()[_0x55d5f5(0xc4)]()){let _0x8b6d3d=_0x345d53[_0x55d5f5(0x12d)](process[_0x55d5f5(0x6a)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x345d53['YpnjK']);_0x8b6d3d=_0x8b6d3d||_0x345d53[_0x55d5f5(0xfb)](checkAccessibilityPlatformConfig,_0x3e82ad['config']),process[_0x55d5f5(0x6a)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x8b6d3d,_0x8b6d3d&&_0x345d53['jeBbw'](setAccessibilityCapabilities,_0x3e82ad[_0x55d5f5(0xaf)]);}const _0x396038=path[_0x55d5f5(0x85)](_0x1d5bcb[_0x55d5f5(0x11a)]?path[_0x55d5f5(0xcd)](_0x1d5bcb[_0x55d5f5(0x11a)]):process['cwd'](),_0x345d53[_0x55d5f5(0xa2)]);fs[_0x55d5f5(0xbb)](_0x396038,helper[_0x55d5f5(0x78)](_0x3e82ad[_0x55d5f5(0xaf)])),process[_0x55d5f5(0x6a)][_0x55d5f5(0xc1)]=_0x396038,helper['clearTempPWConfig']();let _0x25e762='';_0x345d53[_0x55d5f5(0x130)](helper[_0x55d5f5(0x11e)](),constants[_0x55d5f5(0xee)][_0x55d5f5(0xd8)])?_0x25e762=_0x345d53[_0x55d5f5(0xc8)]:_0x25e762=_0x345d53[_0x55d5f5(0x123)];let _0x48c609='';if(helper['isTypescriptProject'](_0x1d5bcb[_0x55d5f5(0x11a)])){_0x48c609='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x2bf044=_0x25e762[_0x55d5f5(0xb5)]('.');_0x2bf044[_0x345d53[_0x55d5f5(0x7c)](_0x2bf044[_0x55d5f5(0xad)],0x1)]='ts',_0x25e762=_0x2bf044[_0x55d5f5(0x85)]('.'),logger[_0x55d5f5(0xd7)](_0x345d53[_0x55d5f5(0x81)](_0x345d53[_0x55d5f5(0x76)],_0x25e762));}else _0x48c609='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x8df3ba=path['join'](_0x1d5bcb[_0x55d5f5(0x11a)]?path[_0x55d5f5(0xcd)](_0x1d5bcb['path']):process['cwd'](),_0x25e762);let _0x12489b=_0x1d5bcb[_0x55d5f5(0x11a)]?_0x1d5bcb[_0x55d5f5(0x11a)]:'';_0x12489b=_0x345d53[_0x55d5f5(0x6b)](_0x12489b[_0x55d5f5(0xad)],0x0)?path[_0x55d5f5(0x12c)](_0x12489b):'',process[_0x55d5f5(0x6a)]['USER_CONFIG_DETAILS_PATH']=_0x12489b;const _0xee93bb=helper[_0x55d5f5(0x6f)](_0x3e82ad[_0x55d5f5(0xaf)]),_0x3af99a=helper[_0x55d5f5(0xa3)](_0x3e82ad['config']);logger[_0x55d5f5(0xd7)](_0x55d5f5(0x106)+_0xee93bb),logger[_0x55d5f5(0xd7)]('No\x20Proxy\x20:\x20'+_0x3af99a);_0xee93bb&&(_0x48c609=_0x345d53['dCBeD'](_0x55d5f5(0xb4)+_0xee93bb+'\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22'+_0x3af99a+_0x55d5f5(0xba),_0x48c609));helper[_0x55d5f5(0xc3)]({},_0x575a08),fs[_0x55d5f5(0xbb)](_0x8df3ba,_0x48c609);let _0x5d4a13=[];const _0x38671c=new TestOrchestrationHandler(_0x3e82ad[_0x55d5f5(0xaf)]);if(_0x38671c[_0x55d5f5(0x102)]()){logger[_0x55d5f5(0xd7)](_0x345d53['sLFeM']);const _0x254796=await _0x38671c['findPlaywrightTestFiles'](_0x12489b,_0x575a08['slice'](0x2));logger[_0x55d5f5(0xd7)](_0x55d5f5(0xb9)+JSON[_0x55d5f5(0x8f)](_0x254796)+_0x55d5f5(0x9c));const _0x1a615a=await _0x38671c[_0x55d5f5(0xc9)](_0x254796);logger[_0x55d5f5(0xd7)]('Reordered\x20Test\x20Files:\x20'+JSON[_0x55d5f5(0x8f)](_0x1a615a)),_0x1a615a&&_0x345d53[_0x55d5f5(0xf6)](_0x1a615a['length'],0x0)&&(process[_0x55d5f5(0x6a)][_0x55d5f5(0xdd)]=_0x1a615a[_0x55d5f5(0x85)](','),_0x345d53[_0x55d5f5(0x110)](_0x1a615a[_0x55d5f5(0xad)],_0x254796[_0x55d5f5(0xad)])&&(_0x5d4a13=_0x1a615a['map'](_0x54485d=>path[_0x55d5f5(0xf3)](process['cwd'](),_0x54485d)['split'](path[_0x55d5f5(0x74)])[_0x55d5f5(0x85)]('/'))));}PerformanceTester['end'](PerformanceEvents[_0x55d5f5(0xbe)]),process[_0x55d5f5(0x6a)][_0x55d5f5(0x125)]=process[_0x55d5f5(0x6a)][_0x55d5f5(0x125)]||_0x345d53[_0x55d5f5(0xc7)];const _0x1ab986=_0x345d53['tZvmW'](spawn,helper['isYarnPnP']()?_0x345d53['DjNTO']:_0x345d53[_0x55d5f5(0x90)],[_0x345d53['xTxKE'],_0x345d53[_0x55d5f5(0x98)],_0x345d53[_0x55d5f5(0x6d)],_0x345d53['zrfeB'](process[_0x55d5f5(0x121)],_0x345d53['WoDuC'])?'\x22'+_0x8df3ba+'\x22':_0x8df3ba,..._0x575a08[_0x55d5f5(0xf7)](0x2),..._0x5d4a13],{'shell':_0x345d53[_0x55d5f5(0x12d)](process[_0x55d5f5(0x121)],_0x345d53[_0x55d5f5(0xc5)]),'stdio':_0x345d53[_0x55d5f5(0xd5)],'cwd':process[_0x55d5f5(0x113)](),'env':Object[_0x55d5f5(0xe1)]({},process[_0x55d5f5(0x6a)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x55d5f5(0x96)](_0x4a44d5),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x3e82ad['config']['testContextOptions'][_0x55d5f5(0x109)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x3e82ad[_0x55d5f5(0xaf)][_0x55d5f5(0xc0)][_0x55d5f5(0x11c)],'BROWSERSTACK_LOG_LEVEL':_0x3e82ad[_0x55d5f5(0xaf)][_0x55d5f5(0x9b)]})}),_0x40a327=()=>{const _0x4b7115=_0x55d5f5;try{const _0xf4a495=path['join'](helper[_0x4b7115(0x72)](),_0x345d53[_0x4b7115(0xd0)],_0x345d53[_0x4b7115(0x12f)]);if(fs[_0x4b7115(0xfd)](_0xf4a495)){let _0x446e5d=fs['readFileSync'](_0xf4a495);_0x446e5d=JSON[_0x4b7115(0xcc)](_0x446e5d),_0x3e82ad['errorMessage']=_0x446e5d,fs[_0x4b7115(0x129)](_0xf4a495);}}catch(_0x1acc0b){logger[_0x4b7115(0xd7)](_0x345d53[_0x4b7115(0xf2)](_0x345d53['hcJei'],_0x1acc0b));}};_0x1ab986['on'](_0x345d53['VzWDb'],async _0x423a23=>{const _0xd3f931=_0x55d5f5,_0x2de3d6={};_0x2de3d6[_0xd3f931(0x94)]=_0x345d53[_0xd3f931(0xd0)];const _0x350b4b=_0x2de3d6;try{PerformanceTester[_0xd3f931(0x104)](PerformanceEvents[_0xd3f931(0xbf)]),_0x345d53[_0xd3f931(0x6e)](_0x40a327),await TestHubHandler[_0xd3f931(0x92)](),await ClientTroubleShootingService[_0xd3f931(0x11b)]();const _0x40bf6f=BrowserstackCLI['isCLIEnabled']();await BrowserstackCLI['getInstance']()[_0xd3f931(0x92)](),TestDetails[_0xd3f931(0x128)](),_0x345d53['GBaZQ'](printBuildLink),await utilities[_0xd3f931(0xb8)](_0x3e82ad,_0x40bf6f),process[_0xd3f931(0x107)]=_0x423a23,logger['debug']('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x423a23),logger[_0xd3f931(0xf8)](_0xd3f931(0x127)+_0x8df3ba),fs['unlinkSync'](_0x8df3ba);fs[_0xd3f931(0xfd)](_0x396038)&&(logger[_0xd3f931(0xd7)](_0xd3f931(0x127)+_0x396038),fs[_0xd3f931(0x129)](_0x396038));const _0x22e01d=fs[_0xd3f931(0x11f)](path[_0xd3f931(0x85)](helper[_0xd3f931(0x72)](),_0x345d53[_0xd3f931(0xd0)]))[_0xd3f931(0xa4)](_0x3ac1d8=>_0x3ac1d8[_0xd3f931(0x80)]('trace_'));_0x22e01d[_0xd3f931(0xdc)](_0x2e6dd5=>{const _0xc07aea=_0xd3f931;fs[_0xc07aea(0x129)](path[_0xc07aea(0x85)](helper[_0xc07aea(0x72)](),_0x350b4b[_0xc07aea(0x94)],_0x2e6dd5));});}catch(_0x37ed9f){logger['debug'](_0x345d53[_0xd3f931(0xf2)](_0x345d53['UZCAz'],_0x37ed9f));}});})();}module[a48_0x1ffe61(0xae)]=run;
@@ -1 +1 @@
1
- const a48_0x517e84=a48_0x16fc;(function(_0x503bea,_0x2ebd89){const _0x52a00b=a48_0x16fc,_0x52c483=_0x503bea();while(!![]){try{const _0x9fa51e=-parseInt(_0x52a00b(0x1a0))/0x1*(parseInt(_0x52a00b(0x1b3))/0x2)+-parseInt(_0x52a00b(0x1ba))/0x3*(-parseInt(_0x52a00b(0x1ab))/0x4)+parseInt(_0x52a00b(0x1ad))/0x5*(parseInt(_0x52a00b(0x1b5))/0x6)+parseInt(_0x52a00b(0x1ae))/0x7*(-parseInt(_0x52a00b(0x1be))/0x8)+-parseInt(_0x52a00b(0x1a2))/0x9*(-parseInt(_0x52a00b(0x1b2))/0xa)+-parseInt(_0x52a00b(0x1cb))/0xb+parseInt(_0x52a00b(0x1d0))/0xc*(parseInt(_0x52a00b(0x1bd))/0xd);if(_0x9fa51e===_0x2ebd89)break;else _0x52c483['push'](_0x52c483['shift']());}catch(_0xc25a7e){_0x52c483['push'](_0x52c483['shift']());}}}(a48_0x34c1,0x60ea5));function a48_0x34c1(){const _0x3e4121=['Running\x20existing\x20global\x20setup','toString','isHandlePWErrorSet','message','fork','JKpvd','5035349SZqMnm','JrWqn','MntVe','compareVersions','child_process','180vjVhRJ','../../helpers/driverInitErrorReporter','OLdvi','1.33.0','winstonLogger','util','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','uEvQr','115849ywDHAL','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','3278403NGMNyB','env','SKvue','Path\x20','exports','elegG','PwqfJ','Not\x20able\x20to\x20import\x20globalSetup','Not\x20able\x20to\x20resolve\x20loadGlobalHook\x20for\x20current\x20Playwright\x20version','420JvvSBN','Call\x20to\x20child\x20fork\x20with\x20args\x20','5aZRfjQ','2200513qFRTuM','config','apply','function','10jFnCEz','4ULrzmT','installAll','3565614iaYNGG','CyyPx','txkgI','./patches','resolveLoadGlobalHook','10362QlopbA','format','./reporter/pwUtils','68965fpucPg','8ClfkaL','../../helpers/test-observability/constants','debug','driver-init\x20capture\x20install\x20failed:\x20','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','\x20is\x20not\x20found','../../helpers/test-observability/utils'];a48_0x34c1=function(){return _0x3e4121;};return a48_0x34c1();}const util=require(a48_0x517e84(0x19d)),child_process=require(a48_0x517e84(0x1cf)),{FRAMEWORKS}=require(a48_0x517e84(0x1bf)),{getFrameworkVersion,debug}=require(a48_0x517e84(0x1c4)),helper=require('../../helpers/helper'),{getForkProcessPath}=require(a48_0x517e84(0x1bc)),{mockIsWorkerRedundant}=require(a48_0x517e84(0x1b8)),logger=require('../../helpers/logger')[a48_0x517e84(0x19c)];function a48_0x16fc(_0x278757,_0x313afa){const _0x34c18e=a48_0x34c1();return a48_0x16fc=function(_0x16fccc,_0xa0dec4){_0x16fccc=_0x16fccc-0x19c;let _0xc6f76f=_0x34c18e[_0x16fccc];return _0xc6f76f;},a48_0x16fc(_0x278757,_0x313afa);}try{require(a48_0x517e84(0x1d1))[a48_0x517e84(0x1b4)]('playwright');}catch(a48_0x3fdbbc){logger['debug'](a48_0x517e84(0x1c1)+(a48_0x3fdbbc&&a48_0x3fdbbc[a48_0x517e84(0x1c8)]));}module[a48_0x517e84(0x1a6)]=async function(_0x477cf6){const _0x4a9a0f=a48_0x517e84,_0x56fa71={'PwqfJ':function(_0x45ef9b,_0xd1707b){return _0x45ef9b(_0xd1707b);},'JrWqn':function(_0x4afab2){return _0x4afab2();},'CyyPx':'./mock-process.js','SKvue':_0x4a9a0f(0x1c5),'SeEBM':function(_0x283e48,_0x1a35ca){return _0x283e48!==_0x1a35ca;},'MntVe':_0x4a9a0f(0x1b1),'rwxWj':_0x4a9a0f(0x1aa),'uEvQr':function(_0x1c9306,_0x193d3c){return _0x1c9306>=_0x193d3c;},'OLdvi':_0x4a9a0f(0x1d3),'JKpvd':function(_0x193b68,_0x2e411e,_0x42f901){return _0x193b68(_0x2e411e,_0x42f901);},'wHuhB':function(_0x5c410c,_0x1da797){return _0x5c410c!==_0x1da797;},'elegG':_0x4a9a0f(0x1a9),'txkgI':function(_0x5dc695,_0xb5881){return _0x5dc695(_0xb5881);}},_0x4ec273=child_process[_0x4a9a0f(0x1c9)];if(helper[_0x4a9a0f(0x1c7)]())try{_0x56fa71['JrWqn'](mockIsWorkerRedundant);}catch(_0xbd3212){logger[_0x4a9a0f(0x1c0)](_0x4a9a0f(0x1a1)+util[_0x4a9a0f(0x1bb)](_0xbd3212));}child_process['fork']=function(){const _0x14b461=_0x4a9a0f;return _0x56fa71['PwqfJ'](debug,_0x14b461(0x1ac)+arguments[0x0]),arguments[0x0]['includes'](_0x56fa71[_0x14b461(0x1cc)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x56fa71[_0x14b461(0x1b6)]):logger['error'](_0x14b461(0x1a5)+_0x56fa71[_0x14b461(0x1cc)](getForkProcessPath)+_0x14b461(0x1c3)),_0x4ec273['apply'](null,arguments);};if(process[_0x4a9a0f(0x1a3)][_0x4a9a0f(0x1c2)]){_0x56fa71[_0x4a9a0f(0x1a8)](debug,_0x56fa71[_0x4a9a0f(0x1a4)]);try{const _0x4c825b=helper[_0x4a9a0f(0x1b9)]();if(_0x56fa71['SeEBM'](typeof _0x4c825b,_0x56fa71['MntVe']))throw new Error(_0x56fa71['rwxWj']);const _0x2f6e0b=_0x56fa71[_0x4a9a0f(0x1a8)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x314c74=_0x477cf6;if(_0x56fa71[_0x4a9a0f(0x19f)](helper[_0x4a9a0f(0x1ce)](_0x2f6e0b,_0x56fa71[_0x4a9a0f(0x1d2)]),0x0)){const _0x3b3b53={};_0x3b3b53[_0x4a9a0f(0x1af)]=_0x477cf6,_0x314c74=_0x3b3b53;}const _0x9abcf4=await _0x56fa71[_0x4a9a0f(0x1ca)](_0x4c825b,_0x314c74,process[_0x4a9a0f(0x1a3)][_0x4a9a0f(0x1c2)]);if(_0x56fa71['wHuhB'](typeof _0x9abcf4,_0x56fa71[_0x4a9a0f(0x1cd)]))throw new Error(_0x56fa71[_0x4a9a0f(0x1a7)]);return _0x9abcf4[_0x4a9a0f(0x1b0)](null,arguments);}catch(_0x4869a4){_0x56fa71[_0x4a9a0f(0x1b7)](debug,_0x4a9a0f(0x19e)+_0x4869a4[_0x4a9a0f(0x1c6)]());}}};
1
+ const a49_0x283f9c=a49_0x423c;(function(_0x1e6c17,_0x1ed281){const _0x4e34be=a49_0x423c,_0x17dc88=_0x1e6c17();while(!![]){try{const _0x1b3cbe=parseInt(_0x4e34be(0xf0))/0x1+-parseInt(_0x4e34be(0xf3))/0x2+parseInt(_0x4e34be(0xe9))/0x3+-parseInt(_0x4e34be(0xea))/0x4+parseInt(_0x4e34be(0xf9))/0x5+parseInt(_0x4e34be(0xe8))/0x6*(parseInt(_0x4e34be(0xf8))/0x7)+-parseInt(_0x4e34be(0xed))/0x8;if(_0x1b3cbe===_0x1ed281)break;else _0x17dc88['push'](_0x17dc88['shift']());}catch(_0x35eee4){_0x17dc88['push'](_0x17dc88['shift']());}}}(a49_0x2c98,0xc817c));function a49_0x2c98(){const _0x17054f=['apply','Running\x20existing\x20global\x20setup','config','fork','YFWsQ','xXSyF','../../helpers/test-observability/constants','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','HEuqB','Path\x20','resolve','WmyGa','Not\x20able\x20to\x20import\x20globalSetup','message','toString','installAll','6BJrnXd','3019230jjKFuY','4746716bfkhSJ','\x20is\x20not\x20found','compareVersions','8615064cymChc','util','TpHCu','1587441pvvVPj','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','QWVAL','16628JKuTYy','error','uHdMD','../../helpers/driverInitErrorReporter','../../helpers/logger','499303ocsvjg','2131380ZkMqFr','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','env','KRGMx','Unkxa','1.33.0','includes','./mock-process.js','Call\x20to\x20child\x20fork\x20with\x20args\x20','driver-init\x20capture\x20install\x20failed:\x20','./patches','mVUhH','exports','playwright','ypGBf','../../helpers/helper','PLAYWRIGHT'];a49_0x2c98=function(){return _0x17054f;};return a49_0x2c98();}const util=require(a49_0x283f9c(0xee)),child_process=require('child_process'),{FRAMEWORKS}=require(a49_0x283f9c(0xde)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a49_0x283f9c(0xd6)),{getForkProcessPath}=require('./reporter/pwUtils'),{mockIsWorkerRedundant}=require(a49_0x283f9c(0xd1)),logger=require(a49_0x283f9c(0xf7))['winstonLogger'];function a49_0x423c(_0x12cd85,_0x2bbdea){const _0x2c9863=a49_0x2c98();return a49_0x423c=function(_0x423c1f,_0x5cbae9){_0x423c1f=_0x423c1f-0xce;let _0x48bc3d=_0x2c9863[_0x423c1f];return _0x48bc3d;},a49_0x423c(_0x12cd85,_0x2bbdea);}try{require(a49_0x283f9c(0xf6))[a49_0x283f9c(0xe7)](a49_0x283f9c(0xd4));}catch(a49_0x5202b9){logger['debug'](a49_0x283f9c(0xd0)+(a49_0x5202b9&&a49_0x5202b9[a49_0x283f9c(0xe5)]));}module[a49_0x283f9c(0xd3)]=async function(_0x17c1f6){const _0x44e719=a49_0x283f9c,_0x24bd27={'QWVAL':function(_0x13e8f9,_0x4abc9d){return _0x13e8f9(_0x4abc9d);},'bCCHZ':function(_0x53a2cf){return _0x53a2cf();},'KRGMx':_0x44e719(0xce),'WmyGa':function(_0x3582e5){return _0x3582e5();},'bZdfw':function(_0x80ecac){return _0x80ecac();},'PUcqw':function(_0x3a89c5,_0x4b4c28){return _0x3a89c5(_0x4b4c28);},'xXSyF':_0x44e719(0xd9),'Unkxa':function(_0x45c92b,_0x37b834){return _0x45c92b!==_0x37b834;},'mVUhH':'function','YFWsQ':'Not\x20able\x20to\x20resolve\x20loadGlobalHook\x20for\x20current\x20Playwright\x20version','xaYyK':function(_0x14d981,_0x1ff095){return _0x14d981>=_0x1ff095;},'HEuqB':_0x44e719(0xfe),'ypGBf':function(_0x2cf1a0,_0x2639c9,_0x4fd281){return _0x2cf1a0(_0x2639c9,_0x4fd281);},'TpHCu':_0x44e719(0xe4),'uHdMD':function(_0x5b735b,_0x158261){return _0x5b735b(_0x158261);}},_0x57be74=child_process['fork'];if(helper['isHandlePWErrorSet']())try{_0x24bd27['bZdfw'](mockIsWorkerRedundant);}catch(_0x2268b3){logger['debug'](_0x44e719(0xdf)+util['format'](_0x2268b3));}child_process[_0x44e719(0xdb)]=function(){const _0xbe9a45=_0x44e719;return _0x24bd27[_0xbe9a45(0xf2)](debug,_0xbe9a45(0xcf)+arguments[0x0]),arguments[0x0][_0xbe9a45(0xff)](_0x24bd27['bCCHZ'](getForkProcessPath))?arguments[0x0]=require[_0xbe9a45(0xe2)](_0x24bd27[_0xbe9a45(0xfc)]):logger[_0xbe9a45(0xf4)](_0xbe9a45(0xe1)+_0x24bd27[_0xbe9a45(0xe3)](getForkProcessPath)+_0xbe9a45(0xeb)),_0x57be74['apply'](null,arguments);};if(process[_0x44e719(0xfb)][_0x44e719(0xf1)]){_0x24bd27['PUcqw'](debug,_0x24bd27[_0x44e719(0xdd)]);try{const _0x330669=helper['resolveLoadGlobalHook']();if(_0x24bd27[_0x44e719(0xfd)](typeof _0x330669,_0x24bd27['mVUhH']))throw new Error(_0x24bd27[_0x44e719(0xdc)]);const _0x22cf42=_0x24bd27[_0x44e719(0xf2)](getFrameworkVersion,FRAMEWORKS[_0x44e719(0xd7)]);let _0x21aff4=_0x17c1f6;if(_0x24bd27['xaYyK'](helper[_0x44e719(0xec)](_0x22cf42,_0x24bd27[_0x44e719(0xe0)]),0x0)){const _0x1837cd={};_0x1837cd[_0x44e719(0xda)]=_0x17c1f6,_0x21aff4=_0x1837cd;}const _0x393d06=await _0x24bd27[_0x44e719(0xd5)](_0x330669,_0x21aff4,process[_0x44e719(0xfb)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x24bd27[_0x44e719(0xfd)](typeof _0x393d06,_0x24bd27[_0x44e719(0xd2)]))throw new Error(_0x24bd27[_0x44e719(0xef)]);return _0x393d06[_0x44e719(0xd8)](null,arguments);}catch(_0x579c30){_0x24bd27[_0x44e719(0xf5)](debug,_0x44e719(0xfa)+_0x579c30[_0x44e719(0xe6)]());}}};