browserstack-node-sdk 1.63.0 → 1.63.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadErrors.js +1 -1
  75. package/src/bin/load/loadUtils.js +1 -1
  76. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  77. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  78. package/src/bin/mocha/command.js +1 -1
  79. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  80. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  81. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  82. package/src/bin/mocha/test.setup.js +1 -1
  83. package/src/bin/newman/command.js +1 -1
  84. package/src/bin/newman/helper.js +1 -1
  85. package/src/bin/newman/reporter/index.js +1 -1
  86. package/src/bin/newman/scriptRunner.js +1 -1
  87. package/src/bin/nightwatch/command.js +1 -1
  88. package/src/bin/playwright/accessibility-helper.js +1 -1
  89. package/src/bin/playwright/command.js +1 -1
  90. package/src/bin/playwright/globalSetup.js +1 -1
  91. package/src/bin/playwright/mock-process.js +1 -1
  92. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  93. package/src/bin/playwright/patches.js +1 -1
  94. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  95. package/src/bin/playwright/reporter/reporter.js +1 -1
  96. package/src/bin/playwright/reporter/test-details.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  137. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/testFramework.js +1 -1
  139. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  141. package/src/bin/v2/grpcClient.js +1 -1
  142. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  143. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/trackedContext.js +1 -1
  145. package/src/bin/v2/instances/trackedInstance.js +1 -1
  146. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  147. package/src/bin/v2/modules/baseModule.js +1 -1
  148. package/src/bin/v2/modules/loadTestModule.js +1 -1
  149. package/src/bin/v2/modules/observabilityModule.js +1 -1
  150. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  151. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  152. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testhubModule.js +1 -1
  154. package/src/bin/v2/sdkErrorHandler.js +1 -1
  155. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  156. package/src/bin/v2/state/hookState.js +1 -1
  157. package/src/bin/v2/state/testFrameworkState.js +1 -1
  158. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  159. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  160. package/src/bin/v2/utils/jest-utils.js +1 -1
  161. package/src/bin/vanilla-js/command.js +1 -1
  162. package/src/browserStackSdk.js +1 -1
  163. package/src/helpers/BrowserStackSetup.js +1 -1
  164. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  165. package/src/helpers/accessibility-automation/constants.js +1 -1
  166. package/src/helpers/accessibility-automation/helper.js +1 -1
  167. package/src/helpers/accessibility-automation/scripts.js +1 -1
  168. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  169. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  170. package/src/helpers/ats/constants.js +1 -1
  171. package/src/helpers/ats/helper.js +1 -1
  172. package/src/helpers/caCertHelper.js +1 -1
  173. package/src/helpers/capsMapping.js +1 -1
  174. package/src/helpers/central-scanner/constants.js +1 -1
  175. package/src/helpers/central-scanner/helpers.js +1 -1
  176. package/src/helpers/classLogger.js +1 -1
  177. package/src/helpers/driverInitErrorReporter.js +1 -1
  178. package/src/helpers/globals.js +1 -1
  179. package/src/helpers/helper.js +1 -1
  180. package/src/helpers/logger.js +1 -1
  181. package/src/helpers/metadata.js +1 -1
  182. package/src/helpers/patchHelper.js +1 -1
  183. package/src/helpers/patchHelpers.js +1 -1
  184. package/src/helpers/percy/Percy.js +1 -1
  185. package/src/helpers/percy/PercyBinary.js +1 -1
  186. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  187. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  188. package/src/helpers/percy/PercySDK.js +1 -1
  189. package/src/helpers/percy/index.js +1 -1
  190. package/src/helpers/percy/utils.js +1 -1
  191. package/src/helpers/performance/constants.js +1 -1
  192. package/src/helpers/performance/performance-tester.js +1 -1
  193. package/src/helpers/playwright-helper.js +1 -1
  194. package/src/helpers/processHelper.js +1 -1
  195. package/src/helpers/puppeteer-helper.js +1 -1
  196. package/src/helpers/request-spy.js +1 -1
  197. package/src/helpers/setKeepAlive.js +1 -1
  198. package/src/helpers/stackFrameUtils.js +1 -1
  199. package/src/helpers/test-observability/constants.js +1 -1
  200. package/src/helpers/test-observability/error-handler.js +1 -1
  201. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  202. package/src/helpers/test-observability/sessionHandler.js +1 -1
  203. package/src/helpers/test-observability/utils.js +1 -1
  204. package/src/helpers/test-orchestration/constants.js +1 -1
  205. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  206. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  207. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  208. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  209. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  210. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  211. package/src/helpers/testhub/constants.js +1 -1
  212. package/src/helpers/testhub/testhubHandler.js +1 -1
  213. package/src/helpers/testhub/utils.js +1 -1
  214. package/src/helpers/timeoutPromise.js +1 -1
  215. package/src/helpers/utilities.js +1 -1
  216. package/src/helpers/w3cMapping.js +1 -1
  217. package/src/hubAllocationMethods.js +1 -1
  218. package/src/index.js +1 -1
@@ -1 +1 @@
1
- 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
+ const a47_0xe3a82c=a47_0x4b73;(function(_0x20c5ed,_0x4f91e3){const _0x2af48f=a47_0x4b73,_0x24e30d=_0x20c5ed();while(!![]){try{const _0x324d3e=parseInt(_0x2af48f(0x1f7))/0x1*(-parseInt(_0x2af48f(0x21b))/0x2)+parseInt(_0x2af48f(0x255))/0x3+parseInt(_0x2af48f(0x1f1))/0x4+-parseInt(_0x2af48f(0x212))/0x5*(parseInt(_0x2af48f(0x210))/0x6)+-parseInt(_0x2af48f(0x253))/0x7*(-parseInt(_0x2af48f(0x1ef))/0x8)+-parseInt(_0x2af48f(0x25d))/0x9*(parseInt(_0x2af48f(0x1e4))/0xa)+-parseInt(_0x2af48f(0x23b))/0xb*(-parseInt(_0x2af48f(0x221))/0xc);if(_0x324d3e===_0x4f91e3)break;else _0x24e30d['push'](_0x24e30d['shift']());}catch(_0x56fa94){_0x24e30d['push'](_0x24e30d['shift']());}}}(a47_0x3c68,0x642ab));const util=require(a47_0xe3a82c(0x1f2)),logger=require(a47_0xe3a82c(0x239))[a47_0xe3a82c(0x1ee)],{automationLogger}=require('../../helpers/logger'),{isAccessibilityAutomationSession}=require(a47_0xe3a82c(0x22c)),{isUndefined,isBrowserstackInfra}=require(a47_0xe3a82c(0x267)),scripts=require(a47_0xe3a82c(0x20a)),PerformanceTester=require(a47_0xe3a82c(0x21e)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a47_0xe3a82c(0x257)),accessibilityHelper=require(a47_0xe3a82c(0x22c)),{AUTOMATION_LOG_COMMANDS}=require(a47_0xe3a82c(0x225));function a47_0x4b73(_0x1f9f8b,_0x4220b3){const _0x3c68e2=a47_0x3c68();return a47_0x4b73=function(_0x4b73fd,_0x53c6d8){_0x4b73fd=_0x4b73fd-0x1dc;let _0x547643=_0x3c68e2[_0x4b73fd];return _0x547643;},a47_0x4b73(_0x1f9f8b,_0x4220b3);}exports[a47_0xe3a82c(0x20d)]=async(_0x2114cb,_0x41482c,_0x3b4dca={})=>{const _0x429051=a47_0xe3a82c,_0x29fa41={};_0x29fa41[_0x429051(0x26c)]=_0x429051(0x247),_0x29fa41[_0x429051(0x25c)]=function(_0x42d294,_0x26e08e){return _0x42d294===_0x26e08e;},_0x29fa41[_0x429051(0x266)]='string';const _0x5d316d=_0x29fa41,_0x4f3cfa=await _0x2114cb[_0x429051(0x22f)](_0x429051(0x226)+_0x41482c[_0x429051(0x224)](/arguments/g,_0x5d316d[_0x429051(0x26c)])+_0x429051(0x263)+JSON[_0x429051(0x20c)](_0x3b4dca)+')');try{if(_0x41482c&&_0x5d316d[_0x429051(0x25c)](typeof _0x41482c,_0x5d316d['UxKbq'])){const _0x37263c=AUTOMATION_LOG_COMMANDS[_0x429051(0x251)](_0xb91cef=>_0x41482c['includes'](_0xb91cef));if(_0x37263c){const _0x41e8ab={};_0x41e8ab[_0x429051(0x262)]=_0x37263c,_0x41e8ab[_0x429051(0x259)]=[_0x3b4dca];const _0x5181ca={};_0x5181ca[_0x429051(0x25e)]=_0x4f3cfa;const _0x25a166={};_0x25a166[_0x429051(0x20e)]=_0x41e8ab,_0x25a166[_0x429051(0x217)]=_0x5181ca,automationLogger['silly']('['+new Date()[_0x429051(0x26d)]()+_0x429051(0x1f4)+JSON[_0x429051(0x20c)](_0x25a166));}}}catch(_0x21e510){logger[_0x429051(0x220)](_0x429051(0x22b)+_0x21e510[_0x429051(0x23d)]);}return _0x4f3cfa;},exports[a47_0xe3a82c(0x219)]=async(_0x4ffb27,_0x460c73,_0x531db5={})=>{const _0x2ea52c=a47_0xe3a82c,_0x13d809={};_0x13d809['iQvIB']=function(_0x2f2e51,_0x405b06){return _0x2f2e51===_0x405b06;},_0x13d809[_0x2ea52c(0x24f)]=_0x2ea52c(0x20b),_0x13d809[_0x2ea52c(0x222)]='Playwright',_0x13d809[_0x2ea52c(0x245)]=_0x2ea52c(0x247);const _0x5ea692=_0x13d809;if(_0x5ea692['iQvIB'](_0x4ffb27['constructor'][_0x2ea52c(0x1f9)],_0x5ea692[_0x2ea52c(0x24f)]))return await _0x4ffb27[_0x2ea52c(0x20f)](_0x460c73,_0x531db5);else{if(_0x5ea692[_0x2ea52c(0x26b)](_0x4ffb27[_0x2ea52c(0x24c)]['name'],_0x5ea692[_0x2ea52c(0x222)]))return await _0x4ffb27[_0x2ea52c(0x1e6)](_0x2ea52c(0x227)+_0x460c73[_0x2ea52c(0x224)](/arguments/g,_0x5ea692[_0x2ea52c(0x245)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON['stringify'](_0x531db5)+')');}},exports[a47_0xe3a82c(0x237)]=async _0x4dbc4a=>{const _0x4f548a=a47_0xe3a82c,_0x3567ce={};_0x3567ce['rBMuB']=_0x4f548a(0x218),_0x3567ce[_0x4f548a(0x201)]=_0x4f548a(0x260),_0x3567ce[_0x4f548a(0x238)]=_0x4f548a(0x1dc),_0x3567ce[_0x4f548a(0x1ec)]='accessibilityOptions.includeIssueType.needsReview',_0x3567ce[_0x4f548a(0x26a)]='accessibilityOptions.authToken',_0x3567ce[_0x4f548a(0x223)]=_0x4f548a(0x268);const _0x44e51e=_0x3567ce;_0x4dbc4a[_0x4f548a(0x207)]&&(_0x4dbc4a[_0x4f548a(0x207)]['wcagVersion']&&(_0x4dbc4a[_0x44e51e[_0x4f548a(0x1e8)]]=_0x4dbc4a[_0x4f548a(0x207)][_0x4f548a(0x1fe)]),_0x4dbc4a[_0x4f548a(0x207)][_0x4f548a(0x22e)]&&(_0x4dbc4a[_0x44e51e[_0x4f548a(0x201)]]=_0x4dbc4a['accessibilityOptions'][_0x4f548a(0x22e)]),_0x4dbc4a[_0x4f548a(0x207)][_0x4f548a(0x243)]&&(_0x4dbc4a[_0x44e51e[_0x4f548a(0x238)]]=_0x4dbc4a[_0x4f548a(0x207)]['includeIssueType']['bestPractice'],_0x4dbc4a[_0x44e51e[_0x4f548a(0x1ec)]]=_0x4dbc4a[_0x4f548a(0x207)][_0x4f548a(0x243)][_0x4f548a(0x235)]));const _0x41a698=JSON[_0x4f548a(0x1dd)](process[_0x4f548a(0x1e7)][_0x4f548a(0x213)]||'{}')[_0x4f548a(0x214)];_0x4dbc4a[_0x44e51e['gtxwd']]=process[_0x4f548a(0x1e7)]['BS_A11Y_JWT'],_0x4dbc4a[_0x44e51e[_0x4f548a(0x223)]]=_0x41a698,delete _0x4dbc4a[_0x4f548a(0x207)];},exports[a47_0xe3a82c(0x249)]=async _0x5a29ab=>{const _0x447c05=a47_0xe3a82c,_0x1a552c={};_0x1a552c[_0x447c05(0x231)]=_0x447c05(0x1e9),_0x1a552c[_0x447c05(0x234)]=_0x447c05(0x1fa);const _0x70db27=_0x1a552c;if(global[_0x447c05(0x240)])try{const details={'url':await _0x5a29ab.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(_0x5a29ab,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x5a29ab,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger['error'](_0x70db27[_0x447c05(0x231)]),[];}else return logger[_0x447c05(0x23a)](_0x70db27['EsCOH']),[];},exports[a47_0xe3a82c(0x250)]=async(_0x269d4f,_0x353184='',_0x4e2c25={},_0x213e18={})=>{const _0x5ddcdd=a47_0xe3a82c;logger[_0x5ddcdd(0x220)](_0x5ddcdd(0x254)+_0x353184+_0x5ddcdd(0x23f)+_0x269d4f);const _0xdb9838={'url':await _0x269d4f[_0x5ddcdd(0x242)](),'testhub_btcer_uuid':global[_0x5ddcdd(0x208)]?.['currentTest']?.['id']};if(global[_0x5ddcdd(0x240)])return await PerformanceTester[_0x5ddcdd(0x1eb)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x1e401b=_0x5ddcdd,_0x1b20d4={};_0x1b20d4[_0x1e401b(0x262)]=_0x353184;const _0x4dd0bd=_0x1b20d4;_0x4e2c25&&_0x4e2c25[_0x1e401b(0x216)]&&(_0x4dd0bd[_0x1e401b(0x216)]=_0x4e2c25[_0x1e401b(0x216)]);Object['assign'](_0x4dd0bd,_0x213e18);const _0xb02b03=await exports['browserStackEvaluate'](_0x269d4f,scripts[_0x1e401b(0x250)],_0x4dd0bd);return _0xb02b03;},{'command':_0x353184,..._0xdb9838})();},exports[a47_0xe3a82c(0x26e)]=async _0x19667f=>{const _0x4f3b04=a47_0xe3a82c,_0x4ad5f8={};_0x4ad5f8[_0x4f3b04(0x261)]=_0x4f3b04(0x200),_0x4ad5f8[_0x4f3b04(0x232)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x340c34=_0x4ad5f8;if(global['accessibilityPlatform'])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(_0x19667f,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x19667f,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x4f3b04(0x220)](_0x340c34['xaGfh']),{};}else return logger['warn'](_0x340c34[_0x4f3b04(0x232)]),{};},exports[a47_0xe3a82c(0x264)]=_0x2e3d7c=>{const _0x16565e=a47_0xe3a82c,_0x38c8fd={'DlzHC':_0x16565e(0x25a),'MmcKM':_0x16565e(0x21d),'QrJxq':function(_0x577919,_0x315b4f){return _0x577919!==_0x315b4f;},'DUvfR':_0x16565e(0x205),'xcqrl':function(_0xb58f81){return _0xb58f81();},'Miuww':_0x16565e(0x1e2)};try{if(global[_0x16565e(0x206)])return logger[_0x16565e(0x220)](_0x38c8fd[_0x16565e(0x246)]),!![];const _0x3546c6=_0x2e3d7c[_0x16565e(0x256)],_0x36cb50=_0x2e3d7c[_0x16565e(0x1f0)];if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x3546c6))return logger['warn'](_0x38c8fd['MmcKM']),![];if(_0x38c8fd[_0x16565e(0x22d)](_0x36cb50,_0x38c8fd[_0x16565e(0x1f8)])){const _0x2e5969=_0x38c8fd[_0x16565e(0x202)](isBrowserstackInfra),_0x469906=accessibilityHelper[_0x16565e(0x25f)](_0x3546c6,_0x2e5969),_0x584c7e=accessibilityHelper[_0x16565e(0x1fc)](_0x3546c6);if(!accessibilityHelper[_0x16565e(0x236)](_0x36cb50,_0x469906)){const _0x17f845=_0x2e5969?'':_0x38c8fd[_0x16565e(0x244)];return logger[_0x16565e(0x23a)](_0x16565e(0x24d)+_0x584c7e+_0x16565e(0x1e0)+_0x469906+_0x16565e(0x233)+_0x17f845+'.'),![];}}}catch(_0x3f043a){logger['debug'](_0x16565e(0x209)+util[_0x16565e(0x269)](_0x3f043a));}return!![];},exports[a47_0xe3a82c(0x1f5)]=(_0x5b80ab,_0x3c0c42,_0x39291c)=>{const _0x51338f=a47_0xe3a82c,_0x480a1c={'BcVRI':_0x51338f(0x203),'ZtkJJ':function(_0x12815f){return _0x12815f();},'ZeTcI':_0x51338f(0x1e1),'zMToO':_0x51338f(0x21d),'gsAjY':function(_0x404dd6,_0x5cdbb8){return _0x404dd6!==_0x5cdbb8;},'kFRQJ':_0x51338f(0x205),'RNAUE':function(_0x1fc090){return _0x1fc090();},'gghCP':_0x51338f(0x1e2),'YQDLF':function(_0x132016,_0x30e64c){return _0x132016(_0x30e64c);},'Hbwlq':function(_0x3f277c,_0x16185f){return _0x3f277c===_0x16185f;},'EphvB':_0x51338f(0x215),'FpTMt':_0x51338f(0x1df),'ZxTfJ':'playwright-chromium','KZQhr':_0x51338f(0x21c),'Uovkz':_0x51338f(0x21a),'ewkUu':function(_0x505bcd,_0x2cb5e8){return _0x505bcd+_0x2cb5e8;},'ZbOAz':function(_0x4bd15c,_0x28eebd){return _0x4bd15c(_0x28eebd);}};try{if(_0x480a1c[_0x51338f(0x229)](isAccessibilityAutomationSession)){global[_0x51338f(0x240)]=!![];!_0x5b80ab[_0x480a1c[_0x51338f(0x24e)]]&&(global[_0x51338f(0x240)]=![]);const _0x56fe27=_0x5b80ab[_0x51338f(0x265)]||_0x5b80ab[_0x51338f(0x256)],_0x482aee=_0x5b80ab[_0x51338f(0x1f0)];!accessibilityHelper[_0x51338f(0x1f3)](_0x56fe27)&&(logger[_0x51338f(0x23a)](_0x480a1c['zMToO']),global[_0x51338f(0x240)]=![]);if(_0x480a1c[_0x51338f(0x25b)](_0x482aee,_0x480a1c['kFRQJ'])){const _0x366dda=_0x480a1c['RNAUE'](isBrowserstackInfra),_0x138867=accessibilityHelper[_0x51338f(0x25f)](_0x56fe27,_0x366dda),_0x431e58=accessibilityHelper[_0x51338f(0x1fc)](_0x56fe27);if(!accessibilityHelper[_0x51338f(0x236)](_0x482aee,_0x138867)){const _0x1bf72a=_0x366dda?'':_0x480a1c[_0x51338f(0x204)];logger[_0x51338f(0x23a)](_0x51338f(0x24d)+_0x431e58+_0x51338f(0x1e0)+_0x138867+_0x51338f(0x233)+_0x1bf72a+'.'),global[_0x51338f(0x240)]=![];}}if(!_0x480a1c[_0x51338f(0x22a)](isUndefined,_0x5b80ab[_0x51338f(0x1ed)])){const _0x29a9ae=(_0x5b80ab['os']||'')['toLowerCase'](),_0x578c12=(_0x5b80ab[_0x51338f(0x265)]||_0x5b80ab['browser']||'')[_0x51338f(0x21f)](),_0x33ff03=_0x480a1c[_0x51338f(0x230)](_0x29a9ae,_0x480a1c[_0x51338f(0x1fd)])&&[_0x480a1c[_0x51338f(0x1e3)],_0x480a1c[_0x51338f(0x23c)],_0x480a1c['KZQhr']][_0x51338f(0x252)](_0x578c12);if(!_0x33ff03)logger[_0x51338f(0x23a)](_0x480a1c['Uovkz']),global[_0x51338f(0x240)]=![];else!accessibilityHelper[_0x51338f(0x23e)]()&&(logger[_0x51338f(0x23a)](accessibilityHelper[_0x51338f(0x1e5)]),global[_0x51338f(0x240)]=![]);}if(!global['accessibilityPlatform']){_0x5b80ab[_0x480a1c[_0x51338f(0x24e)]]=![],Object[_0x51338f(0x24a)](_0x5b80ab)[_0x51338f(0x24b)](_0x198d59=>{const _0x4927c2=_0x51338f;_0x198d59[_0x4927c2(0x1f6)](_0x480a1c['BcVRI'])&&delete _0x5b80ab[_0x198d59];});const _0xfcfa7a=_0x480a1c[_0x51338f(0x1de)](_0x3c0c42,_0x480a1c[_0x51338f(0x248)](encodeURIComponent,JSON[_0x51338f(0x20c)](_0x5b80ab)));_0x39291c&&(_0x39291c['currentTest'][_0x51338f(0x1ea)]['project'][_0x51338f(0x1ff)][_0x51338f(0x241)][_0x51338f(0x1fb)]=_0xfcfa7a,_0x39291c[_0x51338f(0x211)][_0x51338f(0x228)][_0x51338f(0x1ff)][_0x51338f(0x241)][_0x51338f(0x1fb)]=_0xfcfa7a);}}else global[_0x51338f(0x240)]=![];}catch(_0xad3ebb){logger['debug'](_0x51338f(0x258)+util['format'](_0xad3ebb));}};function a47_0x3c68(){const _0x3587fc=['scannerVersion','android','includePartOfPageScope','response','accessibilityOptions.wcagVersion','browserStackExecuteDriver','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','514NHtBhS','chromium','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','../../helpers/performance/performance-tester','toLowerCase','debug','4212GXBBpf','tSsJW','Bkiey','replace','../utils/constants','(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','(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','project','ZtkJJ','YQDLF','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','../../helpers/accessibility-automation/helper','QrJxq','scannerProcessingTimeout','evaluate','Hbwlq','OFkrC','jQsnL','\x20or\x20higher\x20','EsCOH','needsReview','isVersionSupported','setAccessibilityCapabilities','cFWWw','../../helpers/logger','warn','4103YhABIa','ZxTfJ','message','isMobileScanningEnabledForGroup','\x20page:\x20','accessibilityPlatform','connectOptions','url','includeIssueType','Miuww','OsiLO','DlzHC','bstackSdkArgs','ZbOAz','getAccessibilityResults','keys','forEach','constructor','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','ZeTcI','BVptc','performScan','find','includes','1263479FvApcV','Performing\x20scan\x20with\x20method:\x20','1240329RZcRVL','browser','../../helpers/performance/constants','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','parameters','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','gsAjY','WQQYi','18YFhcuB','body','getMinVersionForBrowser','accessibilityOptions.scannerProcessingTimeout','xaGfh','command','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','platformValidation','browserName','UxKbq','../../helpers/helper','accessibilityOptions.scannerVersion','format','gtxwd','iQvIB','gVYQO','toISOString','getAccessibilityResultsSummary','accessibilityOptions.includeIssueType.bestPractice','parse','ewkUu','chrome','\x20browser\x20version\x20','browserstack.accessibility','on\x20non-BrowserStack\x20infrastructure\x20','FpTMt','2911420SLDcXZ','MOBILE_SCANNING_DISABLED_WARNING','executeScript','env','rBMuB','No\x20accessibility\x20results\x20were\x20found.','testInfo','measureWrapper','ePEiE','deviceName','winstonLogger','24IKZjAN','browser_version','1525444qAKmfm','util','isBrowserSupportedForAccessibility','][\x20SDK-AUTOMATION\x20]\x20','processAccessibilityCaps','startsWith','1259tskjIc','DUvfR','name','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','wsEndpoint','getBrowserDisplayName','EphvB','wcagVersion','use','No\x20summaryResults\x20found.','ihPrK','xcqrl','browserstack.accessibilityOptions','gghCP','latest','isMobilePlatform','accessibilityOptions','__workerDetails','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','../../helpers/accessibility-automation/scripts','WebDriver','stringify','browserStackEvaluate','request','executeAsyncScript','12768PGcXuk','workerInfo','355GLFxkL','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'];a47_0x3c68=function(){return _0x3587fc;};return a47_0x3c68();}
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
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;
2
+ 'use strict';const a48_0x2b150c=a48_0x4e7d;(function(_0x461084,_0x3e936e){const _0xff4f09=a48_0x4e7d,_0x365df2=_0x461084();while(!![]){try{const _0x141a99=-parseInt(_0xff4f09(0x104))/0x1+parseInt(_0xff4f09(0x121))/0x2+-parseInt(_0xff4f09(0xc6))/0x3*(-parseInt(_0xff4f09(0x118))/0x4)+-parseInt(_0xff4f09(0x16e))/0x5+parseInt(_0xff4f09(0x117))/0x6*(-parseInt(_0xff4f09(0x140))/0x7)+parseInt(_0xff4f09(0x159))/0x8+parseInt(_0xff4f09(0x13f))/0x9;if(_0x141a99===_0x3e936e)break;else _0x365df2['push'](_0x365df2['shift']());}catch(_0x59e251){_0x365df2['push'](_0x365df2['shift']());}}}(a48_0x4475,0xb01cb));function a48_0x4e7d(_0x958748,_0x4766cd){const _0x4475f5=a48_0x4475();return a48_0x4e7d=function(_0x4e7ded,_0x44a595){_0x4e7ded=_0x4e7ded-0xaf;let _0x56744a=_0x4475f5[_0x4e7ded];return _0x56744a;},a48_0x4e7d(_0x958748,_0x4766cd);}function a48_0x4475(){const _0x39bf14=['11415591ySvudJ','16618yKslxa','reorderTestFiles','ehdCR','../utils/clientTroubleshootingService','cwd','length','fjfBC','has','initialize','npx','Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','qpfQr','OaWki','KhTZS','BROWSERSTACK_AUTOMATION','../../helpers/test-observability/utils','push','findPlaywrightTestFiles','isTrue','Error\x20in\x20deleting\x20playwright\x20results','bootstrap','getProxyUrl','ZNsNt','VYXNH','env','8102088QnCOtX','cliConfig','byaxQ','concat','validateRerunTestList','isRunning','GrbmE','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','oKavi','vwUoC','writeFileSync','splice','iTDxy','VtPKj','map','debug','uPSHC','split','\x20test\x20files\x20to\x20run.','--grep','zoaiF','4668720SMmKYq','util','join','setupBrowserstackLocal','resolve','browserstackSetupConfig.json','EVENTS','Playwright\x20process\x20exited\x20with\x20code\x20','GVbHl','BROWSERSTACK_PW_CONFIG_DIR','OMxTf','testObservability','isCLIEnabled','../v2/TestInfo','rnCtY','BROWSERSTACK_FRAMEWORK','yarn','XCyvH','accessSync','fPYsF','isUndefined','exports','BROWSERSTACK_RERUN','../v2/cliUtils','getInstance','BROWSERSTACK_SETUP_CONFIG_PATH','INTERNALLY_USED_ENV_VARS','LAPyW','false','tMXsz','setFrameworkDetail','stop','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','BROWSERSTACK_TEST_OBSERVABILITY','HgeJF','dirname','../../helpers/accessibility-automation/helper','6bouVNY','\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();','xfLjp','kSTjE','readFileSync','../../helpers/utilities','Updated\x20config\x20file\x20name\x20to\x20-\x20','Error\x20in\x20closing\x20playwright','testContextOptions','uGLNa','PLAYWRIGHT','getPackageType','hCLYw','PACKAGE_TYPE','SDK_PRE_INITIALIZE','MLnDd','BrowserStack\x20config\x20file\x20not\x20found.','Reordered\x20Test\x20Files:\x20','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','winstonLogger','reportDotBrowserStackFolderNotAccessibleIssue','HlfWe','reportConflictingEnvVarIssue','--config','\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','indexOf','homedir','stringify','relative','close','playwright-browserstack-sdk.config.js','slice','inherit','findIndex','BROWSERSTACK_PW_TEST_ORDER','eDKfH','trim','info','reportFinalDetectionState','--config=','mpNoI','./reporter/test-details','parse','test','SbypH','forEach','skipSessionStatus','existsSync','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','platform','xsSeQ','automation','accessibilityOptions','../../helpers/test-observability/constants','SDK_CLEANUP','config','child_process','.browserstack','tREZC','CrUIs','sLEvM','1201236iYQLtx','yhELF','apply','setBrowserstackConfig','constants','jgQeu','getConfig','./reporter/pwUtils','end','../../helpers/BrowserStackSetup','getConfigPath','../../helpers/test-orchestration/testOrchestrationHandler','MODULE','get','unlinkSync','win32','finalExecution','nestedKeyValue','KzJcI','1950uLXgco','684188ZGNUFN','../v2/browserstackCLI','pw_result.json','bqOZE','KCUxs','measureWrapper','isTestOrchestrationEnabled','W_OK','./accessibility-helper','2009262yEPOkS','OnqUo','rgqbJ','BROWSERSTACK_TEST_ACCESSIBILITY_YML','ufFqV','../../helpers/performance/constants','No\x20Proxy\x20:\x20','isYarnPnP','../../helpers/logger','CfaHk','path','readdirSync','HuIue','UQVyI','assign','resolvedConfigFile','SDK_POST_INITIALIZE','GxIQz','ebafv','filter','true','start','nEihW','HCjtI','trace_','accessibility','filterBrowserstackArgs','--disable-test-observability','XSWcc','startsWith'];a48_0x4475=function(){return _0x39bf14;};return a48_0x4475();}const fs=require('fs'),path=require(a48_0x2b150c(0x12b)),{spawn}=require(a48_0x2b150c(0xff)),{format}=require(a48_0x2b150c(0x16f)),logger=require(a48_0x2b150c(0x129))[a48_0x2b150c(0xda)],{default:BrowserStackSetup}=require(a48_0x2b150c(0x10d)),helper=require('../../helpers/helper'),utilities=require(a48_0x2b150c(0xcb)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a48_0x2b150c(0xfc)),{getConfigLoaderPath}=require(a48_0x2b150c(0x10b)),{checkAccessibilityPlatformConfig}=require(a48_0x2b150c(0xc5)),{setAccessibilityCapabilities}=require(a48_0x2b150c(0x120)),{printBuildLink}=require(a48_0x2b150c(0x14f)),TestDetails=require(a48_0x2b150c(0xf0)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require('../../helpers/performance/performance-tester'),TestOrchestrationHandler=require(a48_0x2b150c(0x10f)),BrowserstackCLI=require(a48_0x2b150c(0x119)),PerformanceEvents=require(a48_0x2b150c(0x126))[a48_0x2b150c(0x174)],CLIUtils=require(a48_0x2b150c(0xb8)),TestInfo=require(a48_0x2b150c(0x17b)),ClientTroubleShootingService=require(a48_0x2b150c(0x143)),getUserPlaywrightConfig=async(_0x2215a5,_0x122d25)=>{const _0x47edf6=a48_0x2b150c,_0x11cf90={'LAPyW':function(_0x4c72f6){return _0x4c72f6();},'SbypH':function(_0x56a7f0,_0x1d32c9){return _0x56a7f0(_0x1d32c9);},'ufFqV':function(_0x3205c6,_0x170a97){return _0x3205c6(_0x170a97);},'uPSHC':_0x47edf6(0x130),'MLnDd':_0x47edf6(0xee)},_0x47adb1=!helper['isUndefined'](_0x2215a5[_0x47edf6(0xfe)]),_0xf04b3a=_0x47adb1?path[_0x47edf6(0x172)](process[_0x47edf6(0x144)](),_0x2215a5['config']):process[_0x47edf6(0x144)](),{resolveConfigFile:_0x10db3b,resolveConfigLocation:_0x65143d}=helper[_0x47edf6(0x128)]()?helper['requireConfigLoaderYarnPnP'](..._0x11cf90[_0x47edf6(0xbc)](getConfigLoaderPath)):helper['requirePWModule'][_0x47edf6(0x106)](null,_0x11cf90['LAPyW'](getConfigLoaderPath)),_0x223509=_0x10db3b?_0x11cf90[_0x47edf6(0xf3)](_0x10db3b,_0xf04b3a):helper[_0x47edf6(0x115)](_0x11cf90[_0x47edf6(0x125)](_0x65143d,_0xf04b3a),[_0x11cf90[_0x47edf6(0x169)]]),_0x15ca9e={};if(_0x47adb1){const _0x5af766=_0x122d25[_0x47edf6(0xe8)](_0x18860c=>_0x18860c==='--config'||_0x18860c==='-c'||_0x18860c['startsWith']('--config='));_0x122d25[_0x47edf6(0x164)](_0x5af766,_0x122d25[_0x5af766][_0x47edf6(0x13e)](_0x11cf90[_0x47edf6(0xd5)])?0x1:0x2);}const _0x1f7814={};return _0x1f7814['path']=_0x223509,_0x1f7814[_0x47edf6(0xfe)]=_0x15ca9e,_0x1f7814;},handleO11yRerun=_0x1e8396=>{const _0x41993e=a48_0x2b150c,_0x3b4bee={};_0x3b4bee[_0x41993e(0x14c)]=_0x41993e(0x16c);const _0x5b0a11=_0x3b4bee,_0x331209=helper['isTrue'](process[_0x41993e(0x158)][_0x41993e(0xb7)]);if(_0x331209){const _0x31b570=process[_0x41993e(0x158)]['BROWSERSTACK_RERUN_TESTS'],_0x325176=[];if(helper[_0x41993e(0x15d)](_0x31b570)&&!helper[_0x41993e(0xb5)](_0x31b570)){_0x31b570[_0x41993e(0x16a)](',')[_0x41993e(0x167)](_0x137260=>{const _0x291767=_0x41993e;_0x325176[_0x291767(0x150)]('('+_0x137260[_0x291767(0xeb)]()+')');});const _0x416fca='^'+_0x325176[_0x41993e(0x170)]('|')+'$';_0x1e8396[_0x41993e(0x150)](_0x5b0a11[_0x41993e(0x14c)],_0x416fca);}}},spawnOriginalProcess=_0x4ffe13=>{const _0x556005=a48_0x2b150c,_0x1f5205={'XSWcc':function(_0x4769db,_0x1bc1f4,_0x4b7e70,_0x47667e){return _0x4769db(_0x1bc1f4,_0x4b7e70,_0x47667e);},'TwkLX':_0x556005(0xb1),'XNDoV':_0x556005(0x149),'oKavi':'playwright','fPYsF':function(_0x5e25d1,_0x2922e7){return _0x5e25d1===_0x2922e7;},'ehdCR':'win32','GxIQz':'inherit'};_0x1f5205[_0x556005(0x13d)](spawn,helper['isYarnPnP']()?_0x1f5205['TwkLX']:_0x1f5205['XNDoV'],[_0x1f5205[_0x556005(0x161)],..._0x4ffe13[_0x556005(0xe6)](0x1)],{'shell':_0x1f5205[_0x556005(0xb4)](process[_0x556005(0xf8)],_0x1f5205[_0x556005(0x142)]),'stdio':_0x1f5205[_0x556005(0x132)],'cwd':process['cwd']()});},isTestCommand=(_0x277cf7,_0x38ac45)=>{const _0x30af88=a48_0x2b150c,_0x2460c5={};_0x2460c5[_0x30af88(0x12d)]=function(_0x1a3e5a,_0x32171e){return _0x1a3e5a>_0x32171e;},_0x2460c5['tMXsz']=function(_0x202566,_0x55bc61){return _0x202566===_0x55bc61;},_0x2460c5[_0x30af88(0x138)]='test';const _0x40c08a=_0x2460c5;if(_0x40c08a[_0x30af88(0x12d)](_0x38ac45[_0x30af88(0x145)],0x1)&&_0x40c08a[_0x30af88(0xbe)](_0x38ac45[0x1],_0x40c08a['HCjtI']))return!![];return![];};async function run(_0xcf74d6,_0x4a4bbe,_0x4c267d){const _0x3c2d14=a48_0x2b150c,_0x2b4789={'VtPKj':function(_0x2b7991,_0x322e3f){return _0x2b7991(_0x322e3f);},'mpNoI':_0x3c2d14(0x100),'HlfWe':_0x3c2d14(0x11a),'KhTZS':function(_0x21b278,_0x408eb9){return _0x21b278+_0x408eb9;},'KCUxs':'Error\x20in\x20getting\x20funnel\x20data\x20results','rnCtY':function(_0x31bc42){return _0x31bc42();},'sLEvM':_0x3c2d14(0xcd),'VYXNH':_0x3c2d14(0xd6),'CrUIs':function(_0x811f4c,_0x5a1235){return _0x811f4c<_0x5a1235;},'OMxTf':function(_0x1f04f3,_0x267e01){return _0x1f04f3===_0x267e01;},'UQVyI':_0x3c2d14(0xbd),'hFEVS':_0x3c2d14(0x13c),'zoaiF':function(_0xf46a94,_0x261d24){return _0xf46a94>=_0x261d24;},'hkfza':function(_0x322de2,_0x12e456){return _0x322de2===_0x12e456;},'CfaHk':_0x3c2d14(0xfa),'bqOZE':function(_0x545e3d,_0x18bd4b){return _0x545e3d!=_0x18bd4b;},'hCLYw':function(_0x441fae,_0x4ba57d,_0xcc7324){return _0x441fae(_0x4ba57d,_0xcc7324);},'GrbmE':function(_0x2c192f,_0x33a9d3){return _0x2c192f(_0x33a9d3);},'byaxQ':_0x3c2d14(0x135),'gaNIX':function(_0x179a28,_0x1ed452){return _0x179a28(_0x1ed452);},'ebafv':function(_0x393dc0,_0x5071ab){return _0x393dc0(_0x5071ab);},'HgeJF':_0x3c2d14(0x173),'KzJcI':function(_0x52c4e8,_0x1d816a){return _0x52c4e8===_0x1d816a;},'nEihW':_0x3c2d14(0xd8),'kSTjE':_0x3c2d14(0xe5),'iTDxy':function(_0x454ab3,_0x57294c){return _0x454ab3-_0x57294c;},'DTObS':_0x3c2d14(0xcc),'xsSeQ':function(_0xaeffcd,_0x1735b9){return _0xaeffcd>_0x1735b9;},'eDKfH':_0x3c2d14(0x14a),'OnqUo':function(_0xb94c3b,_0x304567){return _0xb94c3b>_0x304567;},'fjfBC':function(_0x1e735d,_0x1378a6){return _0x1e735d<_0x1378a6;},'XCyvH':'playwright','XQQae':function(_0x3bb7b5,_0x2a955f,_0x355273,_0x41259e){return _0x3bb7b5(_0x2a955f,_0x355273,_0x41259e);},'xfLjp':_0x3c2d14(0xb1),'GVbHl':_0x3c2d14(0x149),'tjzQF':_0x3c2d14(0xf2),'rgqbJ':_0x3c2d14(0xde),'yhELF':_0x3c2d14(0x113),'vwUoC':function(_0x56c349,_0x1f32a5){return _0x56c349===_0x1f32a5;},'ZNsNt':_0x3c2d14(0xe7),'qpfQr':_0x3c2d14(0xe4),'jgQeu':function(_0x1325d9,_0x5c94a1){return _0x1325d9|_0x5c94a1;},'RYFzr':function(_0x194ecc,_0x26ec17){return _0x194ecc+_0x26ec17;},'PVIKA':_0x3c2d14(0xf7),'tREZC':_0x3c2d14(0x153)};try{const _0xbbcba9=path[_0x3c2d14(0x170)](helper[_0x3c2d14(0xe1)](),_0x2b4789['mpNoI']);try{fs[_0x3c2d14(0xb3)](_0xbbcba9,_0x2b4789[_0x3c2d14(0x109)](fs[_0x3c2d14(0x108)]['R_OK'],fs[_0x3c2d14(0x108)][_0x3c2d14(0x11f)]));}catch(_0x5edafd){ClientTroubleShootingService[_0x3c2d14(0xdb)]();}}catch(_0x218387){logger['debug'](_0x2b4789['RYFzr'](_0x2b4789['PVIKA'],_0x218387));}try{const _0x454694=path[_0x3c2d14(0x170)](helper[_0x3c2d14(0xe1)](),_0x2b4789[_0x3c2d14(0xef)],_0x2b4789[_0x3c2d14(0xdc)]);fs['existsSync'](_0x454694)&&fs[_0x3c2d14(0x112)](_0x454694);}catch(_0x2988e6){logger[_0x3c2d14(0x168)](_0x2b4789['KhTZS'](_0x2b4789[_0x3c2d14(0x101)],_0x2988e6));}if(!_0x2b4789['hCLYw'](isTestCommand,_0xcf74d6,_0x4a4bbe)){_0x2b4789[_0x3c2d14(0x15f)](spawnOriginalProcess,_0x4a4bbe);return;}await PerformanceTester[_0x3c2d14(0x11d)](PerformanceEvents[_0x3c2d14(0xd4)],async()=>{const _0x39a667=_0x3c2d14,_0x14cf5d={};_0x14cf5d[_0x39a667(0xcf)]=_0x2b4789[_0x39a667(0xef)];const _0xc0d05a=_0x14cf5d;if(!_0x4c267d[_0x39a667(0xfe)]){logger['error'](_0x2b4789[_0x39a667(0x157)]);return;}await _0x4c267d[_0x39a667(0x148)](_0xcf74d6),CLIUtils[_0x39a667(0xbf)](FRAMEWORKS[_0x39a667(0xd0)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI['getInstance']()[_0x39a667(0x107)](_0x4c267d[_0x39a667(0xfe)],_0x4c267d['configPath'],_0x4c267d[_0x39a667(0x15a)]),await BrowserstackCLI['getInstance']()[_0x39a667(0x154)]();!BrowserstackCLI[_0x39a667(0xb9)]()['isRunning']()&&await _0x4c267d[_0x39a667(0x171)]();for(var _0x55e2b4=0x0;_0x2b4789[_0x39a667(0x102)](_0x55e2b4,constants['INTERNALLY_USED_ENV_VARS'][_0x39a667(0x145)]);_0x55e2b4++){var _0x5a8a8e=constants[_0x39a667(0xbb)][_0x55e2b4];process['env'][_0x5a8a8e]&&await ClientTroubleShootingService[_0x39a667(0xdd)](_0x5a8a8e);}const _0x1191a9=BrowserstackCLI[_0x39a667(0xb9)]()[_0x39a667(0x10a)]();!helper['isFalse'](_0x1191a9['browserstackAutomation'])&&(process[_0x39a667(0x158)]['BROWSERSTACK_AUTOMATION']=!![]);_0x2b4789[_0x39a667(0x178)](_0x1191a9['browserstackAutomation'],![])&&(process[_0x39a667(0x158)][_0x39a667(0x14e)]=_0x2b4789[_0x39a667(0x12e)],_0x4a4bbe=_0x4a4bbe[_0x39a667(0x134)](_0x437175=>_0x437175!=='--disable-browserstack-automation'));const _0x4b1b0f=_0x4a4bbe[_0x39a667(0xe0)](_0x2b4789['hFEVS']);(_0x2b4789[_0x39a667(0x16d)](_0x4b1b0f,0x0)||_0x2b4789['hkfza'](_0x1191a9[_0x39a667(0x179)],![]))&&(process['env'][_0x39a667(0xc2)]=_0x2b4789['UQVyI'],_0x4a4bbe=_0x4a4bbe[_0x39a667(0x134)](_0x17dfff=>_0x17dfff!==_0x39a667(0x13c)));!helper[_0x39a667(0xb5)](_0x4c267d[_0x39a667(0x15a)])&&_0x4c267d[_0x39a667(0x15a)][_0x39a667(0x147)](_0x2b4789['CfaHk'])&&(process[_0x39a667(0x158)]['BROWSERSTACK_AUTOMATION']=_0x4c267d['cliConfig'][_0x39a667(0x111)](_0x2b4789[_0x39a667(0x12a)])||!![]);_0x2b4789[_0x39a667(0x11b)](_0x4c267d[_0x39a667(0xfe)]['testObservability'],null)&&!helper[_0x39a667(0x152)](process[_0x39a667(0x158)][_0x39a667(0xc2)])&&(process['env'][_0x39a667(0xc2)]=process[_0x39a667(0x158)][_0x39a667(0xc2)]||_0x4c267d[_0x39a667(0xfe)]['testObservability']);const _0x5d06de=!helper['isFalse'](process[_0x39a667(0x158)][_0x39a667(0xc2)]);_0x4c267d['config'][_0x39a667(0xfb)]&&(process[_0x39a667(0x158)][_0x39a667(0xd9)]=JSON[_0x39a667(0xe2)](_0x4c267d[_0x39a667(0xfe)][_0x39a667(0xfb)]));let _0x1bdc7d=![];_0x4c267d[_0x39a667(0xfe)][_0x39a667(0x13a)]&&(_0x1bdc7d=!![],process[_0x39a667(0x158)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x4c267d[_0x39a667(0xfe)][_0x39a667(0x13a)]);const _0x2da369=_0x4a4bbe[_0x39a667(0x15c)](),_0x4d45ff=await _0x2b4789[_0x39a667(0xd2)](getUserPlaywrightConfig,_0xcf74d6,_0x4a4bbe);if(helper[_0x39a667(0xb5)](_0x4d45ff)){_0x2b4789[_0x39a667(0x15f)](spawnOriginalProcess,_0x2da369);return;}const _0x6a347b=_0x4d45ff[_0x39a667(0x12b)]?path['dirname'](_0x4d45ff[_0x39a667(0x12b)]):process[_0x39a667(0x144)]();process[_0x39a667(0x158)][_0x39a667(0x177)]=_0x6a347b,await PerformanceTester[_0x39a667(0x11d)](PerformanceEvents[_0x39a667(0x131)],async()=>{const _0x731ed6=_0x39a667;!BrowserstackCLI[_0x731ed6(0xb9)]()['isRunning']()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0x731ed6(0xd0)],_0x4c267d),_0x5d06de&&_0x2b4789[_0x731ed6(0x166)](handleO11yRerun,_0x4a4bbe);})();if(!BrowserstackCLI[_0x39a667(0xb9)]()[_0x39a667(0x15e)]()){let _0x1559bf=_0x2b4789[_0x39a667(0x178)](process['env'][_0x39a667(0x124)],_0x2b4789[_0x39a667(0x15b)]);_0x1559bf=_0x1559bf||_0x2b4789['gaNIX'](checkAccessibilityPlatformConfig,_0x4c267d[_0x39a667(0xfe)]),process[_0x39a667(0x158)][_0x39a667(0x124)]=_0x1559bf,_0x1559bf&&_0x2b4789[_0x39a667(0x133)](setAccessibilityCapabilities,_0x4c267d[_0x39a667(0xfe)]);}const _0xbd2296=path[_0x39a667(0x170)](_0x4d45ff['path']?path[_0x39a667(0xc4)](_0x4d45ff['path']):process[_0x39a667(0x144)](),_0x2b4789[_0x39a667(0xc3)]);fs[_0x39a667(0x163)](_0xbd2296,helper['serializeToYamlString'](_0x4c267d[_0x39a667(0xfe)])),process[_0x39a667(0x158)][_0x39a667(0xba)]=_0xbd2296,helper['clearTempPWConfig']();let _0x2145ca='';_0x2b4789[_0x39a667(0x116)](helper[_0x39a667(0xd1)](),constants[_0x39a667(0xd3)][_0x39a667(0x110)])?_0x2145ca=_0x2b4789[_0x39a667(0x137)]:_0x2145ca=_0x2b4789[_0x39a667(0xc9)];let _0x4d2d7a='';if(helper['isTypescriptProject'](_0x4d45ff[_0x39a667(0x12b)])){_0x4d2d7a=_0x39a667(0xc1);const _0x3e65eb=_0x2145ca['split']('.');_0x3e65eb[_0x2b4789[_0x39a667(0x165)](_0x3e65eb[_0x39a667(0x145)],0x1)]='ts',_0x2145ca=_0x3e65eb[_0x39a667(0x170)]('.'),logger['debug'](_0x2b4789['KhTZS'](_0x2b4789['DTObS'],_0x2145ca));}else _0x4d2d7a='\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 _0x25cd0f=path[_0x39a667(0x170)](_0x4d45ff[_0x39a667(0x12b)]?path[_0x39a667(0xc4)](_0x4d45ff[_0x39a667(0x12b)]):process[_0x39a667(0x144)](),_0x2145ca);let _0x41c16f=_0x4d45ff[_0x39a667(0x12b)]?_0x4d45ff['path']:'';_0x41c16f=_0x2b4789[_0x39a667(0xf9)](_0x41c16f[_0x39a667(0x145)],0x0)?path[_0x39a667(0x172)](_0x41c16f):'',process[_0x39a667(0x158)]['USER_CONFIG_DETAILS_PATH']=_0x41c16f;const _0x252ab9=helper[_0x39a667(0x155)](_0x4c267d[_0x39a667(0xfe)]),_0x387ea3=helper['getNoProxy'](_0x4c267d[_0x39a667(0xfe)]);logger[_0x39a667(0x168)]('Proxy\x20url\x20:\x20'+_0x252ab9),logger['debug'](_0x39a667(0x127)+_0x387ea3);_0x252ab9&&(_0x4d2d7a=_0x2b4789['KhTZS'](_0x39a667(0x160)+_0x252ab9+_0x39a667(0xdf)+_0x387ea3+_0x39a667(0xc7),_0x4d2d7a));helper[_0x39a667(0x13b)]({},_0x4a4bbe),fs['writeFileSync'](_0x25cd0f,_0x4d2d7a);let _0x1ab483=[];const _0x3bfaae=new TestOrchestrationHandler(_0x4c267d[_0x39a667(0xfe)]);if(_0x3bfaae[_0x39a667(0x11e)]()){logger['debug'](_0x2b4789[_0x39a667(0xea)]);const _0x3b4fcc=await _0x3bfaae[_0x39a667(0x151)](_0x41c16f,_0x4a4bbe['slice'](0x2));logger[_0x39a667(0x168)]('Found:\x20'+JSON['stringify'](_0x3b4fcc)+_0x39a667(0x16b));const _0x32406b=await _0x3bfaae[_0x39a667(0x141)](_0x3b4fcc);logger[_0x39a667(0x168)](_0x39a667(0xd7)+JSON[_0x39a667(0xe2)](_0x32406b)),_0x32406b&&_0x2b4789[_0x39a667(0x122)](_0x32406b['length'],0x0)&&(process['env'][_0x39a667(0xe9)]=_0x32406b['join'](','),_0x2b4789[_0x39a667(0x146)](_0x32406b[_0x39a667(0x145)],_0x3b4fcc[_0x39a667(0x145)])&&(_0x1ab483=_0x32406b[_0x39a667(0x167)](_0x58218e=>path[_0x39a667(0xe3)](process[_0x39a667(0x144)](),_0x58218e)[_0x39a667(0x16a)](path['sep'])[_0x39a667(0x170)]('/'))));}PerformanceTester[_0x39a667(0x10c)](PerformanceEvents['SDK_SETUP']),process['env'][_0x39a667(0xb0)]=process['env'][_0x39a667(0xb0)]||_0x2b4789['XCyvH'];const _0x47ee50=_0x2b4789['XQQae'](spawn,helper[_0x39a667(0x128)]()?_0x2b4789[_0x39a667(0xc8)]:_0x2b4789[_0x39a667(0x176)],[_0x2b4789[_0x39a667(0xb2)],_0x2b4789['tjzQF'],_0x2b4789[_0x39a667(0x123)],_0x2b4789[_0x39a667(0x178)](process[_0x39a667(0xf8)],_0x2b4789[_0x39a667(0x105)])?'\x22'+_0x25cd0f+'\x22':_0x25cd0f,..._0x4a4bbe[_0x39a667(0xe6)](0x2),..._0x1ab483],{'shell':_0x2b4789[_0x39a667(0x162)](process['platform'],_0x2b4789[_0x39a667(0x105)]),'stdio':_0x2b4789[_0x39a667(0x156)],'cwd':process[_0x39a667(0x144)](),'env':Object[_0x39a667(0x12f)]({},process[_0x39a667(0x158)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x39a667(0x10e)](_0xcf74d6),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x4c267d[_0x39a667(0xfe)][_0x39a667(0xce)][_0x39a667(0xf5)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x4c267d[_0x39a667(0xfe)][_0x39a667(0xce)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x4c267d[_0x39a667(0xfe)]['logLevel']})}),_0x271d72=()=>{const _0x5830ac=_0x39a667;try{const _0x2b5eb2=path[_0x5830ac(0x170)](helper['homedir'](),_0x2b4789[_0x5830ac(0xef)],_0x2b4789[_0x5830ac(0xdc)]);if(fs['existsSync'](_0x2b5eb2)){let _0x232a0b=fs[_0x5830ac(0xca)](_0x2b5eb2);_0x232a0b=JSON[_0x5830ac(0xf1)](_0x232a0b),_0x4c267d['errorMessage']=_0x232a0b,fs[_0x5830ac(0x112)](_0x2b5eb2);}}catch(_0x13791b){logger[_0x5830ac(0x168)](_0x2b4789['KhTZS'](_0x2b4789[_0x5830ac(0x11c)],_0x13791b));}};_0x47ee50['on'](_0x2b4789[_0x39a667(0x14b)],async _0x3de310=>{const _0x27bd9d=_0x39a667;try{PerformanceTester[_0x27bd9d(0x136)](PerformanceEvents[_0x27bd9d(0xfd)]),_0x2b4789[_0x27bd9d(0xaf)](_0x271d72),await TestHubHandler[_0x27bd9d(0xc0)](),await ClientTroubleShootingService[_0x27bd9d(0xed)]();const _0x43daa9=BrowserstackCLI[_0x27bd9d(0x17a)]();await BrowserstackCLI[_0x27bd9d(0xb9)]()[_0x27bd9d(0xc0)](),TestDetails['shutdown'](),_0x2b4789[_0x27bd9d(0xaf)](printBuildLink),await utilities[_0x27bd9d(0x114)](_0x4c267d,_0x43daa9),process['exitCode']=_0x3de310,logger[_0x27bd9d(0x168)](_0x27bd9d(0x175)+_0x3de310),logger[_0x27bd9d(0xec)]('Deleting\x20'+_0x25cd0f),fs[_0x27bd9d(0x112)](_0x25cd0f);fs[_0x27bd9d(0xf6)](_0xbd2296)&&(logger['debug']('Deleting\x20'+_0xbd2296),fs[_0x27bd9d(0x112)](_0xbd2296));const _0x15a257=fs[_0x27bd9d(0x12c)](path[_0x27bd9d(0x170)](helper[_0x27bd9d(0xe1)](),_0x2b4789[_0x27bd9d(0xef)]))[_0x27bd9d(0x134)](_0x3eba60=>_0x3eba60[_0x27bd9d(0x13e)](_0x27bd9d(0x139)));_0x15a257[_0x27bd9d(0xf4)](_0x5f45d4=>{const _0x511aa8=_0x27bd9d;fs[_0x511aa8(0x112)](path[_0x511aa8(0x170)](helper['homedir'](),_0xc0d05a['uGLNa'],_0x5f45d4));});}catch(_0x29d5dc){logger[_0x27bd9d(0x168)](_0x2b4789[_0x27bd9d(0x14d)](_0x2b4789[_0x27bd9d(0x103)],_0x29d5dc));}});})();}module[a48_0x2b150c(0xb6)]=run;
@@ -1 +1 @@
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)]());}}};
1
+ const a49_0x46192e=a49_0x4a28;(function(_0x2b3e6b,_0x4bfe1d){const _0x341fea=a49_0x4a28,_0x481d77=_0x2b3e6b();while(!![]){try{const _0x3f2b02=parseInt(_0x341fea(0x1e1))/0x1*(parseInt(_0x341fea(0x1ba))/0x2)+parseInt(_0x341fea(0x1c4))/0x3*(-parseInt(_0x341fea(0x1c7))/0x4)+parseInt(_0x341fea(0x1bb))/0x5+-parseInt(_0x341fea(0x1d4))/0x6*(-parseInt(_0x341fea(0x1ab))/0x7)+parseInt(_0x341fea(0x1b5))/0x8+parseInt(_0x341fea(0x1ce))/0x9+-parseInt(_0x341fea(0x1cf))/0xa*(parseInt(_0x341fea(0x1c6))/0xb);if(_0x3f2b02===_0x4bfe1d)break;else _0x481d77['push'](_0x481d77['shift']());}catch(_0x1a9031){_0x481d77['push'](_0x481d77['shift']());}}}(a49_0x1588,0xbb6cd));const util=require(a49_0x46192e(0x1d9)),child_process=require(a49_0x46192e(0x1b0)),{FRAMEWORKS}=require(a49_0x46192e(0x1c1)),{getFrameworkVersion,debug}=require(a49_0x46192e(0x1aa)),helper=require(a49_0x46192e(0x1d2)),{getForkProcessPath}=require(a49_0x46192e(0x1a7)),{mockIsWorkerRedundant}=require(a49_0x46192e(0x1a9)),logger=require(a49_0x46192e(0x1cd))[a49_0x46192e(0x1bf)];function a49_0x4a28(_0x570348,_0x31a2d0){const _0x1588aa=a49_0x1588();return a49_0x4a28=function(_0x4a2869,_0x4a306b){_0x4a2869=_0x4a2869-0x1a7;let _0x37c6fc=_0x1588aa[_0x4a2869];return _0x37c6fc;},a49_0x4a28(_0x570348,_0x31a2d0);}function a49_0x1588(){const _0xa8ef2=['12biycWB','installAll','kEZvv','fork','message','util','Not\x20able\x20to\x20import\x20globalSetup','exports','nEuSv','Call\x20to\x20child\x20fork\x20with\x20args\x20','function','PLAYWRIGHT','format','1rEXMEH','resolveLoadGlobalHook','./reporter/pwUtils','qAFRo','./patches','../../helpers/test-observability/utils','3072783VVkANR','OlZTE','isHandlePWErrorSet','resolve','mSINQ','child_process','debug','Path\x20','Running\x20existing\x20global\x20setup','apply','6652312tGKuwc','env','1.33.0','VIKUh','compareVersions','3013378vkrtun','1679610bCtEia','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','config','wuNAg','winstonLogger','PcbEa','../../helpers/test-observability/constants','playwright','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','3nNiGTl','error','7183737PmnQTq','5471724EkQIUD','ZCZis','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','ckQSz','../../helpers/driverInitErrorReporter','cMKZj','../../helpers/logger','4884633CMkVha','30mtWKUE','toString','Not\x20able\x20to\x20resolve\x20loadGlobalHook\x20for\x20current\x20Playwright\x20version','../../helpers/helper','driver-init\x20capture\x20install\x20failed:\x20'];a49_0x1588=function(){return _0xa8ef2;};return a49_0x1588();}try{require(a49_0x46192e(0x1cb))[a49_0x46192e(0x1d5)](a49_0x46192e(0x1c2));}catch(a49_0x468863){logger[a49_0x46192e(0x1b1)](a49_0x46192e(0x1d3)+(a49_0x468863&&a49_0x468863[a49_0x46192e(0x1d8)]));}module[a49_0x46192e(0x1db)]=async function(_0x20e4e4){const _0x45c20d=a49_0x46192e,_0x1a1788={'qAFRo':function(_0x4f8893,_0x58dc7e){return _0x4f8893(_0x58dc7e);},'OlZTE':function(_0x48b571){return _0x48b571();},'AqcuZ':'./mock-process.js','ckQSz':_0x45c20d(0x1b3),'VIKUh':function(_0x3a3e8d,_0x1fbb07){return _0x3a3e8d!==_0x1fbb07;},'kEZvv':_0x45c20d(0x1de),'mSINQ':_0x45c20d(0x1d1),'PcbEa':function(_0x40b4a4,_0x54539c){return _0x40b4a4(_0x54539c);},'wuNAg':function(_0x452bf6,_0x11d366){return _0x452bf6>=_0x11d366;},'ZCZis':_0x45c20d(0x1b7),'dvpGH':function(_0x2bb207,_0x57e370,_0x3c76a8){return _0x2bb207(_0x57e370,_0x3c76a8);},'nEuSv':function(_0xde1b1d,_0x102b1d){return _0xde1b1d!==_0x102b1d;},'cMKZj':_0x45c20d(0x1da)},_0x3ed141=child_process[_0x45c20d(0x1d7)];if(helper[_0x45c20d(0x1ad)]())try{_0x1a1788[_0x45c20d(0x1ac)](mockIsWorkerRedundant);}catch(_0x3793f8){logger[_0x45c20d(0x1b1)](_0x45c20d(0x1bc)+util[_0x45c20d(0x1e0)](_0x3793f8));}child_process['fork']=function(){const _0x1c23bf=_0x45c20d;return _0x1a1788[_0x1c23bf(0x1a8)](debug,_0x1c23bf(0x1dd)+arguments[0x0]),arguments[0x0]['includes'](_0x1a1788['OlZTE'](getForkProcessPath))?arguments[0x0]=require[_0x1c23bf(0x1ae)](_0x1a1788['AqcuZ']):logger[_0x1c23bf(0x1c5)](_0x1c23bf(0x1b2)+_0x1a1788[_0x1c23bf(0x1ac)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x3ed141['apply'](null,arguments);};if(process[_0x45c20d(0x1b6)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x1a1788[_0x45c20d(0x1a8)](debug,_0x1a1788[_0x45c20d(0x1ca)]);try{const _0x52cee9=helper[_0x45c20d(0x1e2)]();if(_0x1a1788[_0x45c20d(0x1b8)](typeof _0x52cee9,_0x1a1788[_0x45c20d(0x1d6)]))throw new Error(_0x1a1788[_0x45c20d(0x1af)]);const _0x288347=_0x1a1788['PcbEa'](getFrameworkVersion,FRAMEWORKS[_0x45c20d(0x1df)]);let _0x19c42d=_0x20e4e4;if(_0x1a1788[_0x45c20d(0x1be)](helper[_0x45c20d(0x1b9)](_0x288347,_0x1a1788[_0x45c20d(0x1c8)]),0x0)){const _0x40eea9={};_0x40eea9[_0x45c20d(0x1bd)]=_0x20e4e4,_0x19c42d=_0x40eea9;}const _0x1859e6=await _0x1a1788['dvpGH'](_0x52cee9,_0x19c42d,process['env'][_0x45c20d(0x1c3)]);if(_0x1a1788[_0x45c20d(0x1dc)](typeof _0x1859e6,_0x1a1788[_0x45c20d(0x1d6)]))throw new Error(_0x1a1788[_0x45c20d(0x1cc)]);return _0x1859e6[_0x45c20d(0x1b4)](null,arguments);}catch(_0x184e5e){_0x1a1788[_0x45c20d(0x1c0)](debug,_0x45c20d(0x1c9)+_0x184e5e[_0x45c20d(0x1d0)]());}}};