browserstack-node-sdk 1.52.3 → 1.53.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 (193) 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/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a38_0x48f78=a38_0x4e49;function a38_0x2b82(){const _0x476641=['url','getAccessibilityResults','body','CIsgE','291834SVbbam','browserStackExecuteDriver','eIOii','connectOptions','\x20browser\x20version\x20','../../helpers/logger','format','getMinVersionForBrowser','currentTest','replace','ylphf','Wkvvs','string','\x20page:\x20','warn','isBrowserSupportedForAccessibility','workerInfo','1104lDpMXQ','error','4sGZoNO','5671650OmzKAZ','BS_A11Y_JWT','env','FiKsh','MBSSF','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','7cCSkkf','browserName','includes','winstonLogger','silly','needsReview','keys','IGLty','bstackSdkArgs','uxZnT','browser','message','1362723BkOeyu','HIgSd','][\x20SDK-AUTOMATION\x20]\x20','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','Idjhp','BcBxZ','bRaHb','JhNHm','VNgZJ','1941510DirdwG','48QWySYT','includePartOfPageScope','evaluate','PERFORM_SCAN','project','WFJVH','kkSso','scannerProcessingTimeout','browserstack.accessibilityOptions','browser_version','104DXIZnV','accessibilityOptions.includeIssueType.needsReview','scannerVersion','wsEndpoint','2946435uhUKwC','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','name','executeScript','accessibilityPlatform','../../helpers/performance/constants','MMAji','constructor','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','deviceName','zjoHu','parse','../../helpers/helper','performScan','muqXC','accessibilityOptions.scannerVersion','kOTpv','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','../../helpers/accessibility-automation/scripts','BrBGp','../../helpers/performance/performance-tester','GWSHf','../utils/constants','browserStackEvaluate','50780vxbBAa','accessibilityOptions.wcagVersion','\x20or\x20higher\x20','Performing\x20scan\x20with\x20method:\x20','getBrowserDisplayName','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','pMncF','use','256663DxDZSG','latest','on\x20non-BrowserStack\x20infrastructure\x20','browserstack.accessibility','accessibilityOptions.authToken','accessibilityOptions','(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','YMexB','RugJF','includeIssueType','VmMEs','bFGfC','measureWrapper','wcagVersion','setAccessibilityCapabilities','debug','toISOString','YgeIt','Playwright','../../helpers/accessibility-automation/helper','No\x20summaryResults\x20found.','command','VKsZd','executeAsyncScript','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','CTYCH','response','xOtoI','AlSbI','isVersionSupported','dCBNl','accessibilityOptions.includeIssueType.bestPractice','stringify','accessibilityOptions.scannerProcessingTimeout'];a38_0x2b82=function(){return _0x476641;};return a38_0x2b82();}(function(_0x1cc19a,_0x27003c){const _0x488538=a38_0x4e49,_0x132b91=_0x1cc19a();while(!![]){try{const _0xe636d3=-parseInt(_0x488538(0xa4))/0x1+-parseInt(_0x488538(0xd4))/0x2*(-parseInt(_0x488538(0xae))/0x3)+-parseInt(_0x488538(0x91))/0x4*(parseInt(_0x488538(0xbc))/0x5)+parseInt(_0x488538(0xad))/0x6*(parseInt(_0x488538(0x98))/0x7)+-parseInt(_0x488538(0xb8))/0x8*(-parseInt(_0x488538(0x7e))/0x9)+-parseInt(_0x488538(0x92))/0xa+parseInt(_0x488538(0xdc))/0xb*(parseInt(_0x488538(0x8f))/0xc);if(_0xe636d3===_0x27003c)break;else _0x132b91['push'](_0x132b91['shift']());}catch(_0x4a1e5e){_0x132b91['push'](_0x132b91['shift']());}}}(a38_0x2b82,0xbe248));const util=require('util'),logger=require('../../helpers/logger')[a38_0x48f78(0x9b)],{automationLogger}=require(a38_0x48f78(0x83)),{isAccessibilityAutomationSession}=require(a38_0x48f78(0xef)),{isUndefined,isBrowserstackInfra}=require(a38_0x48f78(0xc8)),scripts=require(a38_0x48f78(0xce)),PerformanceTester=require(a38_0x48f78(0xd0)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x48f78(0xc1)),accessibilityHelper=require(a38_0x48f78(0xef)),{AUTOMATION_LOG_COMMANDS}=require(a38_0x48f78(0xd2));function a38_0x4e49(_0x567cd4,_0x5ed29d){const _0x2b823c=a38_0x2b82();return a38_0x4e49=function(_0x4e4922,_0x4abbeb){_0x4e4922=_0x4e4922-0x7e;let _0xb568ab=_0x2b823c[_0x4e4922];return _0xb568ab;},a38_0x4e49(_0x567cd4,_0x5ed29d);}exports[a38_0x48f78(0xd3)]=async(_0x3ad8b4,_0x150e90,_0x102805={})=>{const _0x207ac8=a38_0x48f78,_0x22a418={};_0x22a418[_0x207ac8(0x95)]=_0x207ac8(0xa0),_0x22a418[_0x207ac8(0xab)]=function(_0x57646e,_0x417cb4){return _0x57646e===_0x417cb4;},_0x22a418[_0x207ac8(0xf5)]=_0x207ac8(0x8a);const _0x32761e=_0x22a418,_0x371ae3=await _0x3ad8b4[_0x207ac8(0xb0)]('(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'+_0x150e90[_0x207ac8(0x87)](/arguments/g,_0x32761e['FiKsh'])+_0x207ac8(0xc4)+JSON[_0x207ac8(0xfc)](_0x102805)+')');try{if(_0x150e90&&_0x32761e[_0x207ac8(0xab)](typeof _0x150e90,_0x32761e[_0x207ac8(0xf5)])){const _0x56fddf=AUTOMATION_LOG_COMMANDS['find'](_0x577bf3=>_0x150e90[_0x207ac8(0x9a)](_0x577bf3));if(_0x56fddf){const _0x17bb3f={};_0x17bb3f[_0x207ac8(0xf1)]=_0x56fddf,_0x17bb3f['parameters']=[_0x102805];const _0x118a3d={};_0x118a3d[_0x207ac8(0x100)]=_0x371ae3;const _0x1d815c={};_0x1d815c['request']=_0x17bb3f,_0x1d815c[_0x207ac8(0xf6)]=_0x118a3d,automationLogger[_0x207ac8(0x9c)]('['+new Date()[_0x207ac8(0xec)]()+_0x207ac8(0xa6)+JSON[_0x207ac8(0xfc)](_0x1d815c));}}}catch(_0x58bc03){logger[_0x207ac8(0xeb)](_0x207ac8(0xd9)+_0x58bc03[_0x207ac8(0xa3)]);}return _0x371ae3;},exports[a38_0x48f78(0x7f)]=async(_0x2778a4,_0x2895c6,_0x5ee390={})=>{const _0x193898=a38_0x48f78,_0x4ddb15={};_0x4ddb15[_0x193898(0x88)]=function(_0x59a46f,_0x2fe11f){return _0x59a46f===_0x2fe11f;},_0x4ddb15[_0x193898(0x9f)]='WebDriver',_0x4ddb15[_0x193898(0xa5)]=function(_0x141c3c,_0x40f12d){return _0x141c3c===_0x40f12d;},_0x4ddb15['YgeIt']=_0x193898(0xee),_0x4ddb15[_0x193898(0x101)]=_0x193898(0xa0);const _0x30cf82=_0x4ddb15;if(_0x30cf82['ylphf'](_0x2778a4[_0x193898(0xc3)][_0x193898(0xbe)],_0x30cf82[_0x193898(0x9f)]))return await _0x2778a4[_0x193898(0xf3)](_0x2895c6,_0x5ee390);else{if(_0x30cf82[_0x193898(0xa5)](_0x2778a4[_0x193898(0xc3)]['name'],_0x30cf82[_0x193898(0xed)]))return await _0x2778a4[_0x193898(0xbf)](_0x193898(0xe2)+_0x2895c6[_0x193898(0x87)](/arguments/g,_0x30cf82[_0x193898(0x101)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x193898(0xfc)](_0x5ee390)+')');}},exports[a38_0x48f78(0xea)]=async _0x4cc3c4=>{const _0x3e144a=a38_0x48f78,_0x501d03={};_0x501d03[_0x3e144a(0xe6)]=_0x3e144a(0xd5),_0x501d03[_0x3e144a(0xd1)]=_0x3e144a(0xfd),_0x501d03[_0x3e144a(0xf8)]=_0x3e144a(0xfb),_0x501d03['dCBNl']=_0x3e144a(0xb9),_0x501d03['MRfvg']=_0x3e144a(0xe0),_0x501d03['RugJF']=_0x3e144a(0xcb);const _0x219ea9=_0x501d03;_0x4cc3c4[_0x3e144a(0xe1)]&&(_0x4cc3c4['accessibilityOptions']['wcagVersion']&&(_0x4cc3c4[_0x219ea9[_0x3e144a(0xe6)]]=_0x4cc3c4[_0x3e144a(0xe1)][_0x3e144a(0xe9)]),_0x4cc3c4[_0x3e144a(0xe1)][_0x3e144a(0xb5)]&&(_0x4cc3c4[_0x219ea9['GWSHf']]=_0x4cc3c4[_0x3e144a(0xe1)]['scannerProcessingTimeout']),_0x4cc3c4[_0x3e144a(0xe1)][_0x3e144a(0xe5)]&&(_0x4cc3c4[_0x219ea9['AlSbI']]=_0x4cc3c4[_0x3e144a(0xe1)][_0x3e144a(0xe5)]['bestPractice'],_0x4cc3c4[_0x219ea9[_0x3e144a(0xfa)]]=_0x4cc3c4[_0x3e144a(0xe1)]['includeIssueType'][_0x3e144a(0x9d)]));const _0x1734da=JSON[_0x3e144a(0xc7)](process[_0x3e144a(0x94)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x3e144a(0xba)];_0x4cc3c4[_0x219ea9['MRfvg']]=process[_0x3e144a(0x94)][_0x3e144a(0x93)],_0x4cc3c4[_0x219ea9[_0x3e144a(0xe4)]]=_0x1734da,delete _0x4cc3c4[_0x3e144a(0xe1)];},exports[a38_0x48f78(0xff)]=async _0x1adf1e=>{const _0x2da761=a38_0x48f78,_0x2b8ad6={};_0x2b8ad6['MMAji']='No\x20accessibility\x20results\x20were\x20found.',_0x2b8ad6['VNgZJ']=_0x2da761(0xcd);const _0x15fc1d=_0x2b8ad6;if(global[_0x2da761(0xc0)])try{const details={'url':await _0x1adf1e.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x1adf1e,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x1adf1e,scripts.getResults);},{...details})();return res;}catch{return logger[_0x2da761(0x90)](_0x15fc1d[_0x2da761(0xc2)]),[];}else return logger[_0x2da761(0x8c)](_0x15fc1d[_0x2da761(0xac)]),[];},exports['performScan']=async(_0x3e3fa9,_0x42542a='',_0x1f1a5d={})=>{const _0x19efa3=a38_0x48f78;logger[_0x19efa3(0xeb)](_0x19efa3(0xd7)+_0x42542a+_0x19efa3(0x8b)+_0x3e3fa9);const _0x797378={'url':await _0x3e3fa9[_0x19efa3(0xfe)](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x19efa3(0x86)]?.['id']};if(global[_0x19efa3(0xc0)])return await PerformanceTester[_0x19efa3(0xe8)](PerformanceA11yEvents[_0x19efa3(0xb1)],async()=>{const _0x4d2c47=_0x19efa3,_0x2dea4e={};_0x2dea4e[_0x4d2c47(0xf1)]=_0x42542a;const _0x59c147=_0x2dea4e;_0x1f1a5d&&_0x1f1a5d[_0x4d2c47(0xaf)]&&(_0x59c147[_0x4d2c47(0xaf)]=_0x1f1a5d['includePartOfPageScope']);const _0x47191d=await exports['browserStackEvaluate'](_0x3e3fa9,scripts[_0x4d2c47(0xc9)],_0x59c147);return _0x47191d;},{'command':_0x42542a,..._0x797378})();},exports['getAccessibilityResultsSummary']=async _0x2d51af=>{const _0x5b9f9e=a38_0x48f78,_0x4ca61e={};_0x4ca61e[_0x5b9f9e(0xb3)]=_0x5b9f9e(0xf0),_0x4ca61e['zjoHu']=_0x5b9f9e(0xbd);const _0x38b4c1=_0x4ca61e;if(global['accessibilityPlatform'])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x2d51af,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x2d51af,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x5b9f9e(0xeb)](_0x38b4c1[_0x5b9f9e(0xb3)]),{};}else return logger[_0x5b9f9e(0x8c)](_0x38b4c1[_0x5b9f9e(0xc6)]),{};},exports['platformValidation']=_0x9dc9b0=>{const _0x4c22f4=a38_0x48f78,_0x5aa0a4={'kkSso':function(_0x53b509,_0x52cad0){return _0x53b509!==_0x52cad0;},'YMexB':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','BrBGp':_0x4c22f4(0xf4),'kOTpv':function(_0xb1876a,_0x2171e6){return _0xb1876a!==_0x2171e6;},'DOTlb':_0x4c22f4(0xdd),'eIOii':function(_0x2b7ac0){return _0x2b7ac0();},'VKsZd':_0x4c22f4(0xde)};try{if(!_0x5aa0a4[_0x4c22f4(0xb4)](_0x9dc9b0[_0x4c22f4(0xc5)],''))return logger[_0x4c22f4(0x8c)](_0x5aa0a4[_0x4c22f4(0xe3)]),![];const _0x439202=_0x9dc9b0['browser'],_0x359d27=_0x9dc9b0[_0x4c22f4(0xb7)];if(!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x439202))return logger[_0x4c22f4(0x8c)](_0x5aa0a4[_0x4c22f4(0xcf)]),![];if(_0x5aa0a4[_0x4c22f4(0xcc)](_0x359d27,_0x5aa0a4['DOTlb'])){const _0x4b3be7=_0x5aa0a4[_0x4c22f4(0x80)](isBrowserstackInfra),_0x2d1d10=accessibilityHelper[_0x4c22f4(0x85)](_0x439202,_0x4b3be7),_0x4176=accessibilityHelper['getBrowserDisplayName'](_0x439202);if(!accessibilityHelper[_0x4c22f4(0xf9)](_0x359d27,_0x2d1d10)){const _0x5783a1=_0x4b3be7?'':_0x5aa0a4[_0x4c22f4(0xf2)];return logger[_0x4c22f4(0x8c)](_0x4c22f4(0xa7)+_0x4176+_0x4c22f4(0x82)+_0x2d1d10+_0x4c22f4(0xd6)+_0x5783a1+'.'),![];}}}catch(_0x20c434){logger[_0x4c22f4(0xeb)](_0x4c22f4(0x97)+util['format'](_0x20c434));}return!![];},exports['processAccessibilityCaps']=(_0x4d357e,_0x372e2f,_0x2a85c8)=>{const _0x37ace6=a38_0x48f78,_0x50c120={'MBSSF':_0x37ace6(0xb6),'xOtoI':function(_0x428baf){return _0x428baf();},'uxZnT':_0x37ace6(0xdf),'Wkvvs':_0x37ace6(0xf4),'muqXC':function(_0x454cbb,_0x50b185){return _0x454cbb!==_0x50b185;},'bFGfC':_0x37ace6(0xdd),'Idjhp':_0x37ace6(0xde),'kpdJr':function(_0x44f9ba,_0x3e8c61){return _0x44f9ba(_0x3e8c61);},'bRaHb':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','BcBxZ':function(_0xfcd5d5,_0x3e2d3){return _0xfcd5d5+_0x3e2d3;},'pMncF':function(_0x4aa5df,_0x5e01ee){return _0x4aa5df(_0x5e01ee);}};try{if(_0x50c120[_0x37ace6(0xf7)](isAccessibilityAutomationSession)){global[_0x37ace6(0xc0)]=!![];!_0x4d357e[_0x50c120[_0x37ace6(0xa1)]]&&(global[_0x37ace6(0xc0)]=![]);const _0x72f97a=_0x4d357e[_0x37ace6(0x99)]||_0x4d357e[_0x37ace6(0xa2)],_0x186b74=_0x4d357e[_0x37ace6(0xb7)];!accessibilityHelper[_0x37ace6(0x8d)](_0x72f97a)&&(logger['warn'](_0x50c120[_0x37ace6(0x89)]),global['accessibilityPlatform']=![]);if(_0x50c120[_0x37ace6(0xca)](_0x186b74,_0x50c120[_0x37ace6(0xe7)])){const _0x526a8b=_0x50c120[_0x37ace6(0xf7)](isBrowserstackInfra),_0x388d2b=accessibilityHelper[_0x37ace6(0x85)](_0x72f97a,_0x526a8b),_0x2572be=accessibilityHelper[_0x37ace6(0xd8)](_0x72f97a);if(!accessibilityHelper[_0x37ace6(0xf9)](_0x186b74,_0x388d2b)){const _0x506a3f=_0x526a8b?'':_0x50c120[_0x37ace6(0xa8)];logger['warn'](_0x37ace6(0xa7)+_0x2572be+_0x37ace6(0x82)+_0x388d2b+_0x37ace6(0xd6)+_0x506a3f+'.'),global[_0x37ace6(0xc0)]=![];}}!_0x50c120['kpdJr'](isUndefined,_0x4d357e[_0x37ace6(0xc5)])&&(logger[_0x37ace6(0x8c)](_0x50c120[_0x37ace6(0xaa)]),global[_0x37ace6(0xc0)]=![]);if(!global['accessibilityPlatform']){_0x4d357e[_0x50c120[_0x37ace6(0xa1)]]=![],Object[_0x37ace6(0x9e)](_0x4d357e)['forEach'](_0x21c519=>{const _0x17afa1=_0x37ace6;_0x21c519['startsWith'](_0x50c120[_0x17afa1(0x96)])&&delete _0x4d357e[_0x21c519];});const _0x118f4b=_0x50c120[_0x37ace6(0xa9)](_0x372e2f,_0x50c120[_0x37ace6(0xda)](encodeURIComponent,JSON[_0x37ace6(0xfc)](_0x4d357e)));_0x2a85c8&&(_0x2a85c8[_0x37ace6(0x86)]['testInfo'][_0x37ace6(0xb2)][_0x37ace6(0xdb)]['connectOptions']['wsEndpoint']=_0x118f4b,_0x2a85c8[_0x37ace6(0x8e)][_0x37ace6(0xb2)][_0x37ace6(0xdb)][_0x37ace6(0x81)][_0x37ace6(0xbb)]=_0x118f4b);}}else global[_0x37ace6(0xc0)]=![];}catch(_0xe9716c){logger['debug']('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x37ace6(0x84)](_0xe9716c));}};
1
+ const a38_0x29dcb9=a38_0x3444;(function(_0x1b7a63,_0x586095){const _0xbf752c=a38_0x3444,_0x87c817=_0x1b7a63();while(!![]){try{const _0x2e5ca6=-parseInt(_0xbf752c(0x82))/0x1*(parseInt(_0xbf752c(0xe2))/0x2)+parseInt(_0xbf752c(0x8f))/0x3*(parseInt(_0xbf752c(0xd7))/0x4)+-parseInt(_0xbf752c(0xf7))/0x5*(-parseInt(_0xbf752c(0xda))/0x6)+parseInt(_0xbf752c(0x9b))/0x7*(parseInt(_0xbf752c(0xac))/0x8)+-parseInt(_0xbf752c(0x6f))/0x9+parseInt(_0xbf752c(0x72))/0xa*(parseInt(_0xbf752c(0xeb))/0xb)+-parseInt(_0xbf752c(0xd3))/0xc*(parseInt(_0xbf752c(0x85))/0xd);if(_0x2e5ca6===_0x586095)break;else _0x87c817['push'](_0x87c817['shift']());}catch(_0x2b67fd){_0x87c817['push'](_0x87c817['shift']());}}}(a38_0x4ed8,0x35ed0));function a38_0x4ed8(){const _0x40cab4=['silly','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','UNdvw','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','stringify','use','vVXVQ','cdoSj','QukGh','body','wsEndpoint','BurMZ','toISOString','on\x20non-BrowserStack\x20infrastructure\x20','accessibilityOptions.includeIssueType.bestPractice','xCaHM','BdtOb','warn','performScan','winstonLogger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','SZfND','forEach','accessibilityOptions.wcagVersion','fQfdv','1164plxsPH','ryfyq','../../helpers/performance/constants','browserName','4oIayok','lYZry','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','132ZncLwo','(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','isMobilePlatform','dXOHU','woCba','name','startsWith','browserStackExecuteDriver','812278hNvOJW','isBrowserSupportedForAccessibility','scannerVersion','android','__workerDetails','bestPractice','isMobileScanningEnabledForGroup','assign','executeAsyncScript','34661pLeMno','WebDriver','zwYXN','currentTest','browser','getMinVersionForBrowser','constructor','includes','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','replace','platformValidation','string','45145fPzywh','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','browserstack.accessibility','jtNNX','bstackSdkArgs','\x20browser\x20version\x20','1445409BggEvB','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','mQjbJ','950JywZRk','No\x20accessibility\x20results\x20were\x20found.','includeIssueType','project','PERFORM_SCAN','env','message','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','WyyJs','EVEfF','hNAbJ','TEACB','accessibilityOptions.authToken','connectOptions','EuFUu','ZSUet','1zhoxAO','includePartOfPageScope','evaluate','30342LBwklf','szXww','wcagVersion','deviceName','latest','processAccessibilityCaps','response','../../helpers/logger','request','accessibilityOptions.scannerProcessingTimeout','1155042NSiXQh','accessibilityOptions.includeIssueType.needsReview','SAotV','scannerProcessingTimeout','getAccessibilityResults','util','url','wVpLC','\x20or\x20higher\x20','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','isVersionSupported','BS_A11Y_JWT','7BKrIYq','GTatk','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','getAccessibilityResultsSummary','aCDUY','parameters','setAccessibilityCapabilities','toLowerCase','kwuEa','keys','accessibilityPlatform','][\x20SDK-AUTOMATION\x20]\x20','Qbnsd','Playwright','../../helpers/accessibility-automation/helper','\x20page:\x20','VvTTe','1048168TYBncr','getBrowserDisplayName','YGXyt','browserStackEvaluate','command','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','debug','No\x20summaryResults\x20found.','accessibilityOptions','icaCY','workerInfo','testInfo','jqBYQ','needsReview'];a38_0x4ed8=function(){return _0x40cab4;};return a38_0x4ed8();}const util=require(a38_0x29dcb9(0x94)),logger=require(a38_0x29dcb9(0x8c))[a38_0x29dcb9(0xcd)],{automationLogger}=require(a38_0x29dcb9(0x8c)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x29dcb9(0xd5)),accessibilityHelper=require(a38_0x29dcb9(0xa9)),{AUTOMATION_LOG_COMMANDS}=require('../utils/constants');function a38_0x3444(_0x1bb818,_0x474530){const _0x4ed8db=a38_0x4ed8();return a38_0x3444=function(_0x344468,_0x2ef036){_0x344468=_0x344468-0x6f;let _0x5b7ea7=_0x4ed8db[_0x344468];return _0x5b7ea7;},a38_0x3444(_0x1bb818,_0x474530);}exports[a38_0x29dcb9(0xaf)]=async(_0x352eb8,_0x31b5c4,_0x32ccd1={})=>{const _0x3a0a42=a38_0x29dcb9,_0x42cdaa={};_0x42cdaa[_0x3a0a42(0x7a)]=_0x3a0a42(0xfb),_0x42cdaa['BurMZ']=function(_0x293d88,_0x2375bc){return _0x293d88===_0x2375bc;},_0x42cdaa[_0x3a0a42(0xfa)]=_0x3a0a42(0xf6);const _0x389805=_0x42cdaa,_0x1e70b7=await _0x352eb8[_0x3a0a42(0x84)]('(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'+_0x31b5c4[_0x3a0a42(0xf4)](/arguments/g,_0x389805[_0x3a0a42(0x7a)])+_0x3a0a42(0xb1)+JSON['stringify'](_0x32ccd1)+')');try{if(_0x31b5c4&&_0x389805[_0x3a0a42(0xc5)](typeof _0x31b5c4,_0x389805[_0x3a0a42(0xfa)])){const _0x224093=AUTOMATION_LOG_COMMANDS['find'](_0xdea7ec=>_0x31b5c4[_0x3a0a42(0xf2)](_0xdea7ec));if(_0x224093){const _0x2759ac={};_0x2759ac[_0x3a0a42(0xb0)]=_0x224093,_0x2759ac[_0x3a0a42(0xa0)]=[_0x32ccd1];const _0x3114a5={};_0x3114a5[_0x3a0a42(0xc3)]=_0x1e70b7;const _0x2c644a={};_0x2c644a[_0x3a0a42(0x8d)]=_0x2759ac,_0x2c644a[_0x3a0a42(0x8b)]=_0x3114a5,automationLogger[_0x3a0a42(0xba)]('['+new Date()[_0x3a0a42(0xc6)]()+_0x3a0a42(0xa6)+JSON[_0x3a0a42(0xbe)](_0x2c644a));}}}catch(_0x873dd2){logger[_0x3a0a42(0xb2)](_0x3a0a42(0xbd)+_0x873dd2[_0x3a0a42(0x78)]);}return _0x1e70b7;},exports[a38_0x29dcb9(0xe1)]=async(_0x299550,_0x57145d,_0x4b1b69={})=>{const _0x2c69a2=a38_0x29dcb9,_0x14c56f={};_0x14c56f[_0x2c69a2(0x80)]=function(_0x1d481f,_0x1d1a0a){return _0x1d481f===_0x1d1a0a;},_0x14c56f[_0x2c69a2(0xbc)]=_0x2c69a2(0xec),_0x14c56f[_0x2c69a2(0xa3)]=function(_0x406a5e,_0x1d237d){return _0x406a5e===_0x1d237d;},_0x14c56f[_0x2c69a2(0xde)]=_0x2c69a2(0xa8),_0x14c56f['aEgUU']=_0x2c69a2(0xfb);const _0x33114a=_0x14c56f;if(_0x33114a['EuFUu'](_0x299550[_0x2c69a2(0xf1)]['name'],_0x33114a[_0x2c69a2(0xbc)]))return await _0x299550[_0x2c69a2(0xea)](_0x57145d,_0x4b1b69);else{if(_0x33114a[_0x2c69a2(0xa3)](_0x299550[_0x2c69a2(0xf1)][_0x2c69a2(0xdf)],_0x33114a[_0x2c69a2(0xde)]))return await _0x299550['executeScript'](_0x2c69a2(0xdb)+_0x57145d[_0x2c69a2(0xf4)](/arguments/g,_0x33114a['aEgUU'])+_0x2c69a2(0x79)+JSON[_0x2c69a2(0xbe)](_0x4b1b69)+')');}},exports[a38_0x29dcb9(0xa1)]=async _0x4fe1bb=>{const _0x21f57f=a38_0x29dcb9,_0x5e26b1={};_0x5e26b1[_0x21f57f(0x9c)]=_0x21f57f(0xd1),_0x5e26b1['VvTTe']=_0x21f57f(0x8e),_0x5e26b1[_0x21f57f(0xcf)]=_0x21f57f(0xc8),_0x5e26b1[_0x21f57f(0xdd)]=_0x21f57f(0x90),_0x5e26b1[_0x21f57f(0x96)]=_0x21f57f(0x7e),_0x5e26b1[_0x21f57f(0xa7)]='accessibilityOptions.scannerVersion';const _0x3d2cd6=_0x5e26b1;_0x4fe1bb[_0x21f57f(0xb4)]&&(_0x4fe1bb['accessibilityOptions']['wcagVersion']&&(_0x4fe1bb[_0x3d2cd6['GTatk']]=_0x4fe1bb[_0x21f57f(0xb4)][_0x21f57f(0x87)]),_0x4fe1bb[_0x21f57f(0xb4)][_0x21f57f(0x92)]&&(_0x4fe1bb[_0x3d2cd6[_0x21f57f(0xab)]]=_0x4fe1bb[_0x21f57f(0xb4)][_0x21f57f(0x92)]),_0x4fe1bb[_0x21f57f(0xb4)][_0x21f57f(0x74)]&&(_0x4fe1bb[_0x3d2cd6[_0x21f57f(0xcf)]]=_0x4fe1bb['accessibilityOptions'][_0x21f57f(0x74)][_0x21f57f(0xe7)],_0x4fe1bb[_0x3d2cd6[_0x21f57f(0xdd)]]=_0x4fe1bb[_0x21f57f(0xb4)][_0x21f57f(0x74)][_0x21f57f(0xb9)]));const _0x29a108=JSON['parse'](process[_0x21f57f(0x77)][_0x21f57f(0xf8)])[_0x21f57f(0xe4)];_0x4fe1bb[_0x3d2cd6[_0x21f57f(0x96)]]=process['env'][_0x21f57f(0x9a)],_0x4fe1bb[_0x3d2cd6[_0x21f57f(0xa7)]]=_0x29a108,delete _0x4fe1bb[_0x21f57f(0xb4)];},exports[a38_0x29dcb9(0x93)]=async _0x772ceb=>{const _0x281479=a38_0x29dcb9,_0x4fd4c6={};_0x4fd4c6['szXww']=_0x281479(0x73),_0x4fd4c6[_0x281479(0xd4)]=_0x281479(0x70);const _0x2e89ca=_0x4fd4c6;if(global[_0x281479(0xa5)])try{const details={'url':await _0x772ceb.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(_0x772ceb,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x772ceb,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger['error'](_0x2e89ca[_0x281479(0x86)]),[];}else return logger[_0x281479(0xcb)](_0x2e89ca['ryfyq']),[];},exports[a38_0x29dcb9(0xcc)]=async(_0x27df59,_0x78d146='',_0x1857d2={},_0x2d0ec4={})=>{const _0x11f6ca=a38_0x29dcb9;logger[_0x11f6ca(0xb2)]('Performing\x20scan\x20with\x20method:\x20'+_0x78d146+_0x11f6ca(0xaa)+_0x27df59);const _0x5d3035={'url':await _0x27df59[_0x11f6ca(0x95)](),'testhub_btcer_uuid':global[_0x11f6ca(0xe6)]?.[_0x11f6ca(0xee)]?.['id']};if(global[_0x11f6ca(0xa5)])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x11f6ca(0x76)],async()=>{const _0x49e72f=_0x11f6ca,_0x4f64e7={};_0x4f64e7['command']=_0x78d146;const _0xdae7f=_0x4f64e7;_0x1857d2&&_0x1857d2[_0x49e72f(0x83)]&&(_0xdae7f[_0x49e72f(0x83)]=_0x1857d2[_0x49e72f(0x83)]);Object[_0x49e72f(0xe9)](_0xdae7f,_0x2d0ec4);const _0x39cea8=await exports[_0x49e72f(0xaf)](_0x27df59,scripts['performScan'],_0xdae7f);return _0x39cea8;},{'command':_0x78d146,..._0x5d3035})();},exports[a38_0x29dcb9(0x9e)]=async _0x49bf1e=>{const _0x198f2e=a38_0x29dcb9,_0x12d1c4={};_0x12d1c4[_0x198f2e(0x91)]=_0x198f2e(0xb3),_0x12d1c4[_0x198f2e(0x7d)]=_0x198f2e(0xbb);const _0x21a48d=_0x12d1c4;if(global[_0x198f2e(0xa5)])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(_0x49bf1e,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x49bf1e,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger['debug'](_0x21a48d['SAotV']),{};}else return logger[_0x198f2e(0xcb)](_0x21a48d['TEACB']),{};},exports[a38_0x29dcb9(0xf5)]=_0x2dd4ee=>{const _0x5304c4=a38_0x29dcb9,_0x29b814={'QukGh':_0x5304c4(0xd9),'CnjOe':_0x5304c4(0xf3),'mQjbJ':function(_0x50b679,_0x3e0a72){return _0x50b679!==_0x3e0a72;},'zwYXN':_0x5304c4(0x89),'aquXc':function(_0x5950c7){return _0x5950c7();},'YGXyt':_0x5304c4(0xc7)};try{if(global[_0x5304c4(0xdc)])return logger[_0x5304c4(0xb2)](_0x29b814[_0x5304c4(0xc2)]),!![];const _0x289505=_0x2dd4ee[_0x5304c4(0xef)],_0x33ecd5=_0x2dd4ee['browser_version'];if(!accessibilityHelper[_0x5304c4(0xe3)](_0x289505))return logger[_0x5304c4(0xcb)](_0x29b814['CnjOe']),![];if(_0x29b814[_0x5304c4(0x71)](_0x33ecd5,_0x29b814[_0x5304c4(0xed)])){const _0x3a0d7d=_0x29b814['aquXc'](isBrowserstackInfra),_0x82dac6=accessibilityHelper[_0x5304c4(0xf0)](_0x289505,_0x3a0d7d),_0x659cfb=accessibilityHelper[_0x5304c4(0xad)](_0x289505);if(!accessibilityHelper['isVersionSupported'](_0x33ecd5,_0x82dac6)){const _0x56098e=_0x3a0d7d?'':_0x29b814[_0x5304c4(0xae)];return logger[_0x5304c4(0xcb)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x659cfb+_0x5304c4(0xfc)+_0x82dac6+_0x5304c4(0x97)+_0x56098e+'.'),![];}}}catch(_0x27eb2c){logger[_0x5304c4(0xb2)](_0x5304c4(0x9d)+util['format'](_0x27eb2c));}return!![];},exports[a38_0x29dcb9(0x8a)]=(_0x3841a6,_0x59335c,_0x3986ab)=>{const _0x57bb8b=a38_0x29dcb9,_0x20b955={'aCDUY':'browserstack.accessibilityOptions','lYZry':function(_0x1d85df){return _0x1d85df();},'jqBYQ':_0x57bb8b(0xf9),'vVXVQ':_0x57bb8b(0xf3),'icaCY':function(_0x325149,_0xb037c8){return _0x325149!==_0xb037c8;},'OsVCy':_0x57bb8b(0x89),'hNAbJ':function(_0x21d1ab){return _0x21d1ab();},'ZSUet':_0x57bb8b(0xc7),'eplnx':function(_0x1a6d13,_0x2d8237){return _0x1a6d13(_0x2d8237);},'ItFNZ':function(_0x5dc151,_0x51c2c4){return _0x5dc151===_0x51c2c4;},'cdoSj':_0x57bb8b(0xe5),'fQfdv':'chrome','EVEfF':'playwright-chromium','BdtOb':'chromium','LOBvL':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','xCaHM':function(_0x41bc18,_0x245219){return _0x41bc18+_0x245219;}};try{if(_0x20b955[_0x57bb8b(0xd8)](isAccessibilityAutomationSession)){global[_0x57bb8b(0xa5)]=!![];!_0x3841a6[_0x20b955[_0x57bb8b(0xb8)]]&&(global[_0x57bb8b(0xa5)]=![]);const _0x255e64=_0x3841a6[_0x57bb8b(0xd6)]||_0x3841a6['browser'],_0x59e37a=_0x3841a6['browser_version'];!accessibilityHelper[_0x57bb8b(0xe3)](_0x255e64)&&(logger['warn'](_0x20b955[_0x57bb8b(0xc0)]),global[_0x57bb8b(0xa5)]=![]);if(_0x20b955[_0x57bb8b(0xb5)](_0x59e37a,_0x20b955['OsVCy'])){const _0x3f9dfa=_0x20b955[_0x57bb8b(0x7c)](isBrowserstackInfra),_0xaf4fc4=accessibilityHelper[_0x57bb8b(0xf0)](_0x255e64,_0x3f9dfa),_0x1d387f=accessibilityHelper[_0x57bb8b(0xad)](_0x255e64);if(!accessibilityHelper[_0x57bb8b(0x99)](_0x59e37a,_0xaf4fc4)){const _0x548b8e=_0x3f9dfa?'':_0x20b955[_0x57bb8b(0x81)];logger[_0x57bb8b(0xcb)](_0x57bb8b(0xce)+_0x1d387f+'\x20browser\x20version\x20'+_0xaf4fc4+_0x57bb8b(0x97)+_0x548b8e+'.'),global[_0x57bb8b(0xa5)]=![];}}if(!_0x20b955['eplnx'](isUndefined,_0x3841a6[_0x57bb8b(0x88)])){const _0xe9de4a=(_0x3841a6['os']||'')[_0x57bb8b(0xa2)](),_0x30f59b=(_0x3841a6[_0x57bb8b(0xd6)]||_0x3841a6[_0x57bb8b(0xef)]||'')[_0x57bb8b(0xa2)](),_0x2a7be6=_0x20b955['ItFNZ'](_0xe9de4a,_0x20b955[_0x57bb8b(0xc1)])&&[_0x20b955[_0x57bb8b(0xd2)],_0x20b955[_0x57bb8b(0x7b)],_0x20b955[_0x57bb8b(0xca)]][_0x57bb8b(0xf2)](_0x30f59b);if(!_0x2a7be6)logger['warn'](_0x20b955['LOBvL']),global[_0x57bb8b(0xa5)]=![];else!accessibilityHelper[_0x57bb8b(0xe8)]()&&(logger[_0x57bb8b(0xcb)](accessibilityHelper['MOBILE_SCANNING_DISABLED_WARNING']),global[_0x57bb8b(0xa5)]=![]);}if(!global[_0x57bb8b(0xa5)]){_0x3841a6[_0x20b955[_0x57bb8b(0xb8)]]=![],Object[_0x57bb8b(0xa4)](_0x3841a6)[_0x57bb8b(0xd0)](_0x5e6205=>{const _0x2321ab=_0x57bb8b;_0x5e6205[_0x2321ab(0xe0)](_0x20b955[_0x2321ab(0x9f)])&&delete _0x3841a6[_0x5e6205];});const _0x268f55=_0x20b955[_0x57bb8b(0xc9)](_0x59335c,_0x20b955['eplnx'](encodeURIComponent,JSON[_0x57bb8b(0xbe)](_0x3841a6)));_0x3986ab&&(_0x3986ab[_0x57bb8b(0xee)][_0x57bb8b(0xb7)][_0x57bb8b(0x75)][_0x57bb8b(0xbf)][_0x57bb8b(0x7f)][_0x57bb8b(0xc4)]=_0x268f55,_0x3986ab[_0x57bb8b(0xb6)][_0x57bb8b(0x75)][_0x57bb8b(0xbf)][_0x57bb8b(0x7f)][_0x57bb8b(0xc4)]=_0x268f55);}}else global[_0x57bb8b(0xa5)]=![];}catch(_0x1428f5){logger[_0x57bb8b(0xb2)](_0x57bb8b(0x98)+util['format'](_0x1428f5));}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a39_0x5db44e=a39_0xc267;(function(_0x469292,_0x259144){const _0x591fde=a39_0xc267,_0x20d347=_0x469292();while(!![]){try{const _0x24d603=parseInt(_0x591fde(0xd3))/0x1+-parseInt(_0x591fde(0x15d))/0x2+parseInt(_0x591fde(0xf8))/0x3*(parseInt(_0x591fde(0x120))/0x4)+-parseInt(_0x591fde(0xa9))/0x5*(parseInt(_0x591fde(0x121))/0x6)+parseInt(_0x591fde(0x12e))/0x7+-parseInt(_0x591fde(0x14b))/0x8*(parseInt(_0x591fde(0xdb))/0x9)+parseInt(_0x591fde(0xf7))/0xa;if(_0x24d603===_0x259144)break;else _0x20d347['push'](_0x20d347['shift']());}catch(_0x1eefd5){_0x20d347['push'](_0x20d347['shift']());}}}(a39_0x122d,0x56683));function a39_0x122d(){const _0x2eda99=['get','R_OK','getNoProxy','resolve','hgSDo','SDK_POST_INITIALIZE','osFli','qHXjL','W_OK','PACKAGE_TYPE','.browserstack','vdfuT','UcRHw','shutdown','./reporter/pwUtils','map','accessSync','GAwjz','8QomlLQ','cliConfig','setFrameworkDetail','URzzk','playwright-browserstack-sdk.config.js','close','dsIzo','length','--config','USER_CONFIG_DETAILS_PATH','../v2/cliUtils','indexOf','zcxAr','slice','--disable-test-observability','parse','existsSync','sKuYk','392714blZWbV','Deleting\x20','BROWSERSTACK_AUTOMATION','inherit','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','winstonLogger','BROWSERSTACK_SETUP_CONFIG_PATH','accessibilityOptions','gsIsu','PLAYWRIGHT','start','writeFileSync','reportDotBrowserStackFolderNotAccessibleIssue','LCBVN','ZfZeC','../../helpers/accessibility-automation/helper','../../helpers/test-observability/constants','finalExecution','243055cEHiQu','HbmEd','qPtoq','child_process','DDCjz','getConfig','vYEQU','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','resolvedConfigFile','../v2/browserstackCLI','BROWSERSTACK_PW_CONFIG_DIR','exports','kcSFL','EWyRc','kWilK','false','zGBzt','eXkWS','exitCode','Odfgb','Updated\x20config\x20file\x20name\x20to\x20-\x20','debug','readdirSync','getProxyUrl','crSnJ','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','filter','bootstrap','sLwVb','accessibility','browserstackSetupConfig.json','nbwno','BROWSERSTACK_TEST_ACCESSIBILITY_YML','stop','getPackageType','browserstackAutomation','getInstance','requirePWModule','join','Lsagl','platform','IgtaY','496461RxQQAR','./accessibility-helper','SDK_SETUP','dPLiS','BROWSERSTACK_TEST_OBSERVABILITY','xZLoF','path','../../helpers/utilities','4792050UYazCM','reportConflictingEnvVarIssue','EVENTS','INTERNALLY_USED_ENV_VARS','isRunning','launchBuild','--config=','testContextOptions','measureWrapper','Error\x20in\x20getting\x20funnel\x20data\x20results','gxhJf','Error\x20in\x20closing\x20playwright','error','iXMrT','end','cwd','forEach','\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','BROWSERSTACK_RERUN_TESTS','XeTEw','BrowserStack\x20config\x20file\x20not\x20found.','../utils/constants','vZnSi','requireConfigLoaderYarnPnP','constants','RtKvS','startsWith','CNKbi','6283010ElpKmv','22089rKbpwp','rTFlb','fPIMG','NJGWW','../../helpers/logger','pcGOs','Playwright\x20process\x20exited\x20with\x20code\x20','stringify','automation','./reporter/test-details','zNCsK','qJVZq','bJGCx','env','npx','jpzIO','MODULE','push','isUndefined','skipSessionName','true','isCLIEnabled','SMVIg','config','logLevel','../../helpers/performance/performance-tester','zYGnQ','yarn','win32','unlinkSync','\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();','assign','JFJBZ','isFalse','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','dirname','isYarnPnP','serializeToYamlString','yBXlt','guYei','28LgBkSf','24eUygsq','skipSessionStatus','test','testObservability','pw_result.json','qoicO','--grep','concat','homedir','SNGEA','FOAAN','validateRerunTestList','../utils/clientTroubleshootingService','706097ciBSFn','NNnAm','../v2/TestInfo','findIndex','No\x20Proxy\x20:\x20','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','dvrZa','tYYsK','hmjsr','uyGOv','split'];a39_0x122d=function(){return _0x2eda99;};return a39_0x122d();}const fs=require('fs'),path=require(a39_0x5db44e(0xd9)),{spawn}=require(a39_0x5db44e(0xac)),{format}=require('util'),logger=require(a39_0x5db44e(0xfc))[a39_0x5db44e(0x9c)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),utilities=require(a39_0x5db44e(0xda)),constants=require(a39_0x5db44e(0xf0)),{FRAMEWORKS}=require(a39_0x5db44e(0xa7)),{getConfigLoaderPath}=require(a39_0x5db44e(0x147)),{checkAccessibilityPlatformConfig}=require(a39_0x5db44e(0xa6)),{setAccessibilityCapabilities}=require(a39_0x5db44e(0xd4)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a39_0x5db44e(0x101)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a39_0x5db44e(0x111)),BrowserstackCLI=require(a39_0x5db44e(0xb2)),PerformanceEvents=require('../../helpers/performance/constants')[a39_0x5db44e(0xdd)],CLIUtils=require(a39_0x5db44e(0x155)),TestInfo=require(a39_0x5db44e(0x130)),ClientTroubleShootingService=require(a39_0x5db44e(0x12d)),getUserPlaywrightConfig=async(_0x3ec641,_0x54d40a)=>{const _0x1d05c3=a39_0x5db44e,_0xa6a427={'pcGOs':function(_0x1e56e1){return _0x1e56e1();},'osFli':function(_0x2476b7){return _0x2476b7();},'bJGCx':function(_0x2ab91a,_0x3c2209){return _0x2ab91a(_0x3c2209);},'kuYem':function(_0x527087,_0x38926b){return _0x527087(_0x38926b);},'qJVZq':_0x1d05c3(0xb1),'EWyRc':'--config='},_0x41dd6b=!helper[_0x1d05c3(0x10a)](_0x3ec641[_0x1d05c3(0x10f)]),_0x3be2f0=_0x41dd6b?path[_0x1d05c3(0x13c)](process[_0x1d05c3(0xea)](),_0x3ec641[_0x1d05c3(0x10f)]):process[_0x1d05c3(0xea)](),{resolveConfigFile:_0x127792,resolveConfigLocation:_0x1f8f5f}=helper['isYarnPnP']()?helper[_0x1d05c3(0xf2)](..._0xa6a427[_0x1d05c3(0xfd)](getConfigLoaderPath)):helper[_0x1d05c3(0xce)]['apply'](null,_0xa6a427[_0x1d05c3(0x13f)](getConfigLoaderPath)),_0x228d2b=_0x127792?_0xa6a427[_0x1d05c3(0x104)](_0x127792,_0x3be2f0):helper['nestedKeyValue'](_0xa6a427['kuYem'](_0x1f8f5f,_0x3be2f0),[_0xa6a427[_0x1d05c3(0x103)]]),_0x4b46ed={};if(_0x41dd6b){const _0x16a287=_0x54d40a[_0x1d05c3(0x131)](_0x137c7f=>_0x137c7f===_0x1d05c3(0x153)||_0x137c7f==='-c'||_0x137c7f[_0x1d05c3(0xf5)](_0x1d05c3(0xe1)));_0x54d40a['splice'](_0x16a287,_0x54d40a[_0x16a287][_0x1d05c3(0xf5)](_0xa6a427[_0x1d05c3(0xb6)])?0x1:0x2);}const _0x4e5245={};return _0x4e5245[_0x1d05c3(0xd9)]=_0x228d2b,_0x4e5245['config']=_0x4b46ed,_0x4e5245;},handleO11yRerun=_0x5d496a=>{const _0x5a6c2b=a39_0x5db44e,_0x151167={};_0x151167[_0x5a6c2b(0xab)]=_0x5a6c2b(0x127);const _0x230598=_0x151167,_0x3d68d2=helper['isTrue'](process[_0x5a6c2b(0x105)]['BROWSERSTACK_RERUN']);if(_0x3d68d2){const _0x165fe4=process[_0x5a6c2b(0x105)][_0x5a6c2b(0xed)],_0x1afd43=[];if(helper[_0x5a6c2b(0x12c)](_0x165fe4)&&!helper[_0x5a6c2b(0x10a)](_0x165fe4)){_0x165fe4[_0x5a6c2b(0x138)](',')[_0x5a6c2b(0x148)](_0x10d410=>{const _0x31693a=_0x5a6c2b;_0x1afd43[_0x31693a(0x109)]('('+_0x10d410['trim']()+')');});const _0x5f3f91='^'+_0x1afd43[_0x5a6c2b(0xcf)]('|')+'$';_0x5d496a[_0x5a6c2b(0x109)](_0x230598[_0x5a6c2b(0xab)],_0x5f3f91);}}},spawnOriginalProcess=_0x531567=>{const _0x374901=a39_0x5db44e,_0x3b734b={'sKuYk':function(_0x1f5d74,_0x549933,_0x2ce490,_0x53f082){return _0x1f5d74(_0x549933,_0x2ce490,_0x53f082);},'vZnSi':_0x374901(0x113),'dvrZa':_0x374901(0x106),'qHXjL':'playwright','uFprB':function(_0x45827a,_0x2a87fd){return _0x45827a===_0x2a87fd;},'NJGWW':_0x374901(0x114),'vYEQU':_0x374901(0x9a)};_0x3b734b[_0x374901(0x15c)](spawn,helper['isYarnPnP']()?_0x3b734b[_0x374901(0xf1)]:_0x3b734b[_0x374901(0x134)],[_0x3b734b[_0x374901(0x140)],..._0x531567[_0x374901(0x158)](0x1)],{'shell':_0x3b734b['uFprB'](process[_0x374901(0xd1)],_0x3b734b[_0x374901(0xfb)]),'stdio':_0x3b734b[_0x374901(0xaf)],'cwd':process[_0x374901(0xea)]()});},isTestCommand=(_0x302344,_0x1e0b57)=>{const _0x1afbfb=a39_0x5db44e,_0x4d5ca1={};_0x4d5ca1['XXkcf']=function(_0x466b99,_0xf5ef97){return _0x466b99>_0xf5ef97;},_0x4d5ca1[_0x1afbfb(0x136)]=function(_0xcb53c6,_0x201e63){return _0xcb53c6===_0x201e63;},_0x4d5ca1[_0x1afbfb(0xad)]=_0x1afbfb(0x123);const _0x5cb6e7=_0x4d5ca1;if(_0x5cb6e7['XXkcf'](_0x1e0b57['length'],0x1)&&_0x5cb6e7['hmjsr'](_0x1e0b57[0x1],_0x5cb6e7[_0x1afbfb(0xad)]))return!![];return![];};async function run(_0x4eb7e6,_0xd6a847,_0x565c14){const _0xc2a2be=a39_0x5db44e,_0x46d1c6={'URzzk':function(_0x1183db,_0x36aee4){return _0x1183db(_0x36aee4);},'Lsagl':function(_0x5ba99a){return _0x5ba99a();},'NNnAm':_0xc2a2be(0x143),'GAwjz':function(_0x13587d,_0x427217){return _0x13587d+_0x427217;},'hgSDo':_0xc2a2be(0xe6),'JFJBZ':_0xc2a2be(0x125),'gxhJf':_0xc2a2be(0xe4),'SNGEA':_0xc2a2be(0xef),'uyGOv':function(_0x1d772d,_0x564d17){return _0x1d772d<_0x564d17;},'Odfgb':function(_0x58cc3e,_0x4ab134){return _0x58cc3e===_0x4ab134;},'iXMrT':_0xc2a2be(0xb8),'zNCsK':_0xc2a2be(0x159),'BYDOu':function(_0x536766,_0x27ab55){return _0x536766>=_0x27ab55;},'jpzIO':function(_0x594cad,_0x25febc){return _0x594cad===_0x25febc;},'eXkWS':_0xc2a2be(0x100),'zcxAr':function(_0x51ef3e,_0x79cb52){return _0x51ef3e!=_0x79cb52;},'dPLiS':function(_0x1b0626,_0x3d89ef,_0x20a537){return _0x1b0626(_0x3d89ef,_0x20a537);},'sLwVb':_0xc2a2be(0x10c),'gsIsu':function(_0x25a07c,_0x50c642){return _0x25a07c(_0x50c642);},'SMVIg':_0xc2a2be(0xc7),'guYei':'playwright-browserstack-sdk.config.cjs','UcRHw':_0xc2a2be(0x14f),'zGBzt':function(_0x39e2cf,_0x1d694d){return _0x39e2cf-_0x1d694d;},'crSnJ':function(_0x48cbed,_0x3b8f19){return _0x48cbed+_0x3b8f19;},'xZLoF':_0xc2a2be(0xbd),'bFtgK':function(_0x380f63,_0x5a3ed2){return _0x380f63>_0x5a3ed2;},'XeTEw':function(_0x1551e4,_0x2380d5){return _0x1551e4+_0x2380d5;},'LCBVN':function(_0x5909e6,_0x5c0785,_0x2ecb92,_0xafeb20){return _0x5909e6(_0x5c0785,_0x2ecb92,_0xafeb20);},'xPtvx':_0xc2a2be(0x113),'nbwno':_0xc2a2be(0x106),'RtKvS':'playwright','FOAAN':_0xc2a2be(0x123),'fPIMG':'--config','qoicO':_0xc2a2be(0x114),'kcSFL':function(_0x2ef083,_0x2a48f1){return _0x2ef083===_0x2a48f1;},'kWilK':_0xc2a2be(0x9a),'IgtaY':_0xc2a2be(0x150),'CNKbi':function(_0x313077,_0x45b1fb){return _0x313077|_0x45b1fb;},'dsIzo':_0xc2a2be(0x9b),'vdfuT':function(_0x1fb846,_0x4da7f7){return _0x1fb846+_0x4da7f7;},'yBXlt':'Error\x20in\x20deleting\x20playwright\x20results','rTFlb':function(_0x3a530e,_0x5738d9){return _0x3a530e(_0x5738d9);}};try{const _0xde7378=path[_0xc2a2be(0xcf)](helper[_0xc2a2be(0x129)](),_0x46d1c6[_0xc2a2be(0x12f)]);try{fs[_0xc2a2be(0x149)](_0xde7378,_0x46d1c6[_0xc2a2be(0xf6)](fs[_0xc2a2be(0xf3)][_0xc2a2be(0x13a)],fs[_0xc2a2be(0xf3)][_0xc2a2be(0x141)]));}catch(_0x9d4709){ClientTroubleShootingService[_0xc2a2be(0xa3)]();}}catch(_0x5b549b){logger[_0xc2a2be(0xbe)](_0x46d1c6['XeTEw'](_0x46d1c6[_0xc2a2be(0x151)],_0x5b549b));}try{const _0x1d9bbb=path[_0xc2a2be(0xcf)](helper[_0xc2a2be(0x129)](),_0x46d1c6[_0xc2a2be(0x12f)],_0x46d1c6[_0xc2a2be(0x118)]);fs[_0xc2a2be(0x15b)](_0x1d9bbb)&&fs[_0xc2a2be(0x115)](_0x1d9bbb);}catch(_0x12e613){logger[_0xc2a2be(0xbe)](_0x46d1c6[_0xc2a2be(0x144)](_0x46d1c6[_0xc2a2be(0x11e)],_0x12e613));}if(!_0x46d1c6[_0xc2a2be(0xd6)](isTestCommand,_0x4eb7e6,_0xd6a847)){_0x46d1c6[_0xc2a2be(0xf9)](spawnOriginalProcess,_0xd6a847);return;}await PerformanceTester[_0xc2a2be(0xe3)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x34c391=_0xc2a2be,_0x2add70={'ZfZeC':_0x46d1c6['NNnAm'],'HbmEd':_0x46d1c6['JFJBZ'],'zYGnQ':function(_0x1943e2,_0x4d6d7c){return _0x46d1c6['GAwjz'](_0x1943e2,_0x4d6d7c);},'tYYsK':_0x46d1c6[_0x34c391(0xe5)]};if(!_0x565c14[_0x34c391(0x10f)]){logger[_0x34c391(0xe7)](_0x46d1c6[_0x34c391(0x12a)]);return;}await _0x565c14['initialize'](_0x4eb7e6),CLIUtils[_0x34c391(0x14d)](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x34c391(0xa0)]),BrowserstackCLI[_0x34c391(0xcd)]()['setBrowserstackConfig'](_0x565c14['config'],_0x565c14['configPath'],_0x565c14['cliConfig']),await BrowserstackCLI[_0x34c391(0xcd)]()[_0x34c391(0xc4)]();for(var _0x28cfb7=0x0;_0x46d1c6[_0x34c391(0x137)](_0x28cfb7,constants[_0x34c391(0xde)][_0x34c391(0x152)]);_0x28cfb7++){var _0x3b2df7=constants['INTERNALLY_USED_ENV_VARS'][_0x28cfb7];process['env'][_0x3b2df7]&&await ClientTroubleShootingService[_0x34c391(0xdc)](_0x3b2df7);}const _0x5835fd=BrowserstackCLI['getInstance']()[_0x34c391(0xae)]();!helper[_0x34c391(0x119)](_0x5835fd[_0x34c391(0xcc)])&&(process[_0x34c391(0x105)][_0x34c391(0x99)]=!![]);_0x46d1c6[_0x34c391(0xbc)](_0x5835fd[_0x34c391(0xcc)],![])&&(process['env'][_0x34c391(0x99)]=_0x46d1c6[_0x34c391(0xe8)],_0xd6a847=_0xd6a847['filter'](_0x238f2e=>_0x238f2e!=='--disable-browserstack-automation'));const _0x441079=_0xd6a847[_0x34c391(0x156)](_0x46d1c6[_0x34c391(0x102)]);(_0x46d1c6['BYDOu'](_0x441079,0x0)||_0x46d1c6[_0x34c391(0x107)](_0x5835fd[_0x34c391(0x124)],![]))&&(process['env'][_0x34c391(0xd7)]=_0x46d1c6[_0x34c391(0xe8)],_0xd6a847=_0xd6a847[_0x34c391(0xc3)](_0x1db9c4=>_0x1db9c4!==_0x34c391(0x159)));!helper[_0x34c391(0x10a)](_0x565c14[_0x34c391(0x14c)])&&_0x565c14[_0x34c391(0x14c)]['has'](_0x46d1c6[_0x34c391(0xba)])&&(process['env'][_0x34c391(0x99)]=_0x565c14[_0x34c391(0x14c)][_0x34c391(0x139)](_0x46d1c6[_0x34c391(0xba)])||!![]);_0x46d1c6[_0x34c391(0x157)](_0x565c14[_0x34c391(0x10f)][_0x34c391(0x124)],null)&&!helper['isTrue'](process[_0x34c391(0x105)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process['env'][_0x34c391(0xd7)]=process[_0x34c391(0x105)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x565c14[_0x34c391(0x10f)][_0x34c391(0x124)]);const _0x515f5d=!helper[_0x34c391(0x119)](process['env'][_0x34c391(0xd7)]);_0x565c14[_0x34c391(0x10f)][_0x34c391(0x9e)]&&(process['env'][_0x34c391(0x133)]=JSON[_0x34c391(0xff)](_0x565c14[_0x34c391(0x10f)][_0x34c391(0x9e)]));let _0x5be4f8=![];_0x565c14[_0x34c391(0x10f)]['accessibility']&&(_0x5be4f8=!![],process[_0x34c391(0x105)][_0x34c391(0xc9)]=_0x565c14['config'][_0x34c391(0xc6)]);const _0x3ebfb4=_0xd6a847[_0x34c391(0x128)](),_0x533666=await _0x46d1c6[_0x34c391(0xd6)](getUserPlaywrightConfig,_0x4eb7e6,_0xd6a847);if(helper['isUndefined'](_0x533666)){_0x46d1c6['URzzk'](spawnOriginalProcess,_0x3ebfb4);return;}const _0x5ec005=_0x533666[_0x34c391(0xd9)]?path[_0x34c391(0x11b)](_0x533666[_0x34c391(0xd9)]):process[_0x34c391(0xea)]();process[_0x34c391(0x105)][_0x34c391(0xb3)]=_0x5ec005,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x34c391(0x13e)],async()=>{const _0x558180=_0x34c391;!BrowserstackCLI[_0x558180(0xcd)]()[_0x558180(0xdf)]()&&await TestHubHandler[_0x558180(0xe0)](FRAMEWORKS[_0x558180(0xa0)],_0x565c14),_0x515f5d&&_0x46d1c6[_0x558180(0x14e)](handleO11yRerun,_0xd6a847);})();if(!BrowserstackCLI[_0x34c391(0xcd)]()[_0x34c391(0xdf)]()){let _0x3a5335=_0x46d1c6[_0x34c391(0xbc)](process[_0x34c391(0x105)][_0x34c391(0xc9)],_0x46d1c6[_0x34c391(0xc5)]);_0x3a5335=_0x3a5335||_0x46d1c6[_0x34c391(0x9f)](checkAccessibilityPlatformConfig,_0x565c14[_0x34c391(0x10f)]),process[_0x34c391(0x105)][_0x34c391(0xc9)]=_0x3a5335,_0x3a5335&&_0x46d1c6[_0x34c391(0x14e)](setAccessibilityCapabilities,_0x565c14[_0x34c391(0x10f)]);}const _0x3e7c15=path[_0x34c391(0xcf)](_0x533666['path']?path[_0x34c391(0x11b)](_0x533666['path']):process[_0x34c391(0xea)](),_0x46d1c6[_0x34c391(0x10e)]);fs[_0x34c391(0xa2)](_0x3e7c15,helper[_0x34c391(0x11d)](_0x565c14[_0x34c391(0x10f)])),process[_0x34c391(0x105)][_0x34c391(0x9d)]=_0x3e7c15,helper['clearTempPWConfig']();let _0x54fe85='';_0x46d1c6[_0x34c391(0x107)](helper[_0x34c391(0xcb)](),constants[_0x34c391(0x142)][_0x34c391(0x108)])?_0x54fe85=_0x46d1c6[_0x34c391(0x11f)]:_0x54fe85=_0x46d1c6[_0x34c391(0x145)];let _0x5eb209='';if(helper['isTypescriptProject'](_0x533666[_0x34c391(0xd9)])){_0x5eb209=_0x34c391(0xb0);const _0x2d24d8=_0x54fe85[_0x34c391(0x138)]('.');_0x2d24d8[_0x46d1c6[_0x34c391(0xb9)](_0x2d24d8['length'],0x1)]='ts',_0x54fe85=_0x2d24d8[_0x34c391(0xcf)]('.'),logger[_0x34c391(0xbe)](_0x46d1c6[_0x34c391(0xc1)](_0x46d1c6[_0x34c391(0xd8)],_0x54fe85));}else _0x5eb209=_0x34c391(0x11a);const _0xccb6fd=path[_0x34c391(0xcf)](_0x533666[_0x34c391(0xd9)]?path[_0x34c391(0x11b)](_0x533666['path']):process[_0x34c391(0xea)](),_0x54fe85);let _0x4c7663=_0x533666[_0x34c391(0xd9)]?_0x533666['path']:'';_0x4c7663=_0x46d1c6['bFtgK'](_0x4c7663[_0x34c391(0x152)],0x0)?path[_0x34c391(0x13c)](_0x4c7663):'',process[_0x34c391(0x105)][_0x34c391(0x154)]=_0x4c7663;const _0x22def5=helper[_0x34c391(0xc0)](_0x565c14[_0x34c391(0x10f)]),_0x58a767=helper[_0x34c391(0x13b)](_0x565c14['config']);logger[_0x34c391(0xbe)]('Proxy\x20url\x20:\x20'+_0x22def5),logger['debug'](_0x34c391(0x132)+_0x58a767);_0x22def5&&(_0x5eb209=_0x46d1c6[_0x34c391(0xee)](_0x34c391(0xc2)+_0x22def5+_0x34c391(0xec)+_0x58a767+_0x34c391(0x116),_0x5eb209));helper['filterBrowserstackArgs']({},_0xd6a847),fs[_0x34c391(0xa2)](_0xccb6fd,_0x5eb209),PerformanceTester[_0x34c391(0xe9)](PerformanceEvents[_0x34c391(0xd5)]);const _0x56ee63=_0x46d1c6[_0x34c391(0xa4)](spawn,helper[_0x34c391(0x11c)]()?_0x46d1c6['xPtvx']:_0x46d1c6[_0x34c391(0xc8)],[_0x46d1c6[_0x34c391(0xf4)],_0x46d1c6[_0x34c391(0x12b)],_0x46d1c6[_0x34c391(0xfa)],_0x46d1c6[_0x34c391(0xbc)](process['platform'],_0x46d1c6[_0x34c391(0x126)])?'\x22'+_0xccb6fd+'\x22':_0xccb6fd,..._0xd6a847[_0x34c391(0x158)](0x2)],{'shell':_0x46d1c6[_0x34c391(0xb5)](process['platform'],_0x46d1c6['qoicO']),'stdio':_0x46d1c6[_0x34c391(0xb7)],'cwd':process[_0x34c391(0xea)](),'env':Object[_0x34c391(0x117)]({},process[_0x34c391(0x105)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x4eb7e6),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x565c14[_0x34c391(0x10f)][_0x34c391(0xe2)][_0x34c391(0x122)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x565c14[_0x34c391(0x10f)][_0x34c391(0xe2)][_0x34c391(0x10b)],'BROWSERSTACK_LOG_LEVEL':_0x565c14[_0x34c391(0x10f)][_0x34c391(0x110)]})}),_0x33d20f=()=>{const _0x172b0f=_0x34c391;try{const _0x456a11=path[_0x172b0f(0xcf)](helper[_0x172b0f(0x129)](),_0x2add70[_0x172b0f(0xa5)],_0x2add70[_0x172b0f(0xaa)]);if(fs[_0x172b0f(0x15b)](_0x456a11)){let _0x41ec11=fs['readFileSync'](_0x456a11);_0x41ec11=JSON[_0x172b0f(0x15a)](_0x41ec11),_0x565c14['errorMessage']=_0x41ec11,fs['unlinkSync'](_0x456a11);}}catch(_0x5705f2){logger[_0x172b0f(0xbe)](_0x2add70[_0x172b0f(0x112)](_0x2add70[_0x172b0f(0x135)],_0x5705f2));}};_0x56ee63['on'](_0x46d1c6[_0x34c391(0xd2)],async _0x46b50d=>{const _0x5a5088=_0x34c391;try{PerformanceTester[_0x5a5088(0xa1)](PerformanceEvents['SDK_CLEANUP']),_0x46d1c6[_0x5a5088(0xd0)](_0x33d20f),await TestHubHandler[_0x5a5088(0xca)](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x519890=BrowserstackCLI[_0x5a5088(0x10d)]();await BrowserstackCLI[_0x5a5088(0xcd)]()['stop'](),TestDetails[_0x5a5088(0x146)](),_0x46d1c6[_0x5a5088(0xd0)](printBuildLink),await utilities[_0x5a5088(0xa8)](_0x565c14,_0x519890),process[_0x5a5088(0xbb)]=_0x46b50d,logger[_0x5a5088(0xbe)](_0x5a5088(0xfe)+_0x46b50d),logger['info'](_0x5a5088(0x15e)+_0xccb6fd),fs[_0x5a5088(0x115)](_0xccb6fd);fs[_0x5a5088(0x15b)](_0x3e7c15)&&(logger[_0x5a5088(0xbe)](_0x5a5088(0x15e)+_0x3e7c15),fs['unlinkSync'](_0x3e7c15));const _0x4feaae=fs[_0x5a5088(0xbf)](path[_0x5a5088(0xcf)](helper['homedir'](),_0x46d1c6['NNnAm']))[_0x5a5088(0xc3)](_0x84f558=>_0x84f558[_0x5a5088(0xf5)]('trace_'));_0x4feaae[_0x5a5088(0xeb)](_0x4fe080=>{const _0x4a2804=_0x5a5088;fs[_0x4a2804(0x115)](path[_0x4a2804(0xcf)](helper[_0x4a2804(0x129)](),_0x2add70[_0x4a2804(0xa5)],_0x4fe080));});}catch(_0x3bdb90){logger[_0x5a5088(0xbe)](_0x46d1c6[_0x5a5088(0x14a)](_0x46d1c6[_0x5a5088(0x13d)],_0x3bdb90));}});})();}function a39_0xc267(_0x275249,_0x197b91){const _0x122d8b=a39_0x122d();return a39_0xc267=function(_0xc26767,_0x43c6ec){_0xc26767=_0xc26767-0x99;let _0x2f363e=_0x122d8b[_0xc26767];return _0x2f363e;},a39_0xc267(_0x275249,_0x197b91);}module[a39_0x5db44e(0xb4)]=run;
2
+ 'use strict';const a39_0x20895a=a39_0x5e60;function a39_0x3355(){const _0x3e8e39=['PcpwW','dBBLe','playwright-browserstack-sdk.config.js','UQLHa','Proxy\x20url\x20:\x20','reportDotBrowserStackFolderNotAccessibleIssue','6718970qiXOAU','slice','MODULE','exports','uOhVu','4743CKYhQy','isFalse','child_process','kRIGs','aITdf','lNojb','cliConfig','filterBrowserstackArgs','path','../v2/cliUtils','forEach','indexOf','../../helpers/BrowserStackSetup','measureWrapper','trace_','sWcDP','6FyEwgf','./reporter/pwUtils','R_OK','IcZUO','close','trim','error','bootstrap','mFMdH','DUycy','YUfzy','has','--grep','eLWGW','writeFileSync','configPath','SDK_PRE_INITIALIZE','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','diMbi','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','serializeToYamlString','ufgpe','SDK_POST_INITIALIZE','accessibility','parse','Etigy','WMuiQ','../../helpers/testhub/testhubHandler','BROWSERSTACK_AUTOMATION','XDnng','../v2/TestInfo','debug','cUALN','BROWSERSTACK_TEST_ACCESSIBILITY_YML','util','SDK_CLEANUP','KOGIE','launchBuild','accessSync','\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','MfVyM','unlinkSync','INTERNALLY_USED_ENV_VARS','VsRRv','BvPVR','tBFbW','getProxyUrl','automation','reportConflictingEnvVarIssue','resolve','../../helpers/logger','yrshV','push','WWbsN','../../helpers/test-observability/constants','info','ObdfP','brZtC','Uzhts','setFrameworkDetail','MjNjZ','../../helpers/performance/performance-tester','2937180hKyKii','test','isUndefined','../utils/clientTroubleshootingService','PACKAGE_TYPE','start','concat','pw_result.json','--config=','constants','platform','yarn','../../helpers/accessibility-automation/helper','startsWith','PLAYWRIGHT','XECxi','length','playwright-browserstack-sdk.config.cjs','requirePWModule','shutdown','cmTgj','homedir','4819463nJksFY','xTzuO','YqzdO','isTrue','\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();','wkRYW','browserstackAutomation','QAXOJ','cwd','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','nRPVk','clearTempPWConfig','getInstance','../../helpers/utilities','errorMessage','30uFiLRG','requireConfigLoaderYarnPnP','ezAgb','splice','cRDep','CvAsG','yvQIu','734fZADiB','env','exitCode','dirname','11059497JSNxDg','JOGyy','readFileSync','fmxHy','BROWSERSTACK_TEST_OBSERVABILITY','isRunning','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','browserstackSetupConfig.json','filter','702521kgXGag','OGzNa','true','dmzkT','ZbHsC','existsSync','npx','8kCruRj','Deleting\x20','BCVOe','xfBZA','uYtDc','stringify','ccuHd','--config','./reporter/test-details','bslQv','718893WfOhnK','end','accessibilityOptions','nestedKeyValue','BROWSERSTACK_PW_CONFIG_DIR','dSZvD','yZjfU','testContextOptions','MoQvl','--disable-test-observability','../v2/browserstackCLI','wqTfX','assign','finalExecution','apply','Koiox','stop','logLevel','Playwright\x20process\x20exited\x20with\x20code\x20','drMSd','Error\x20in\x20getting\x20funnel\x20data\x20results','isYarnPnP','FdmVV','SDK_SETUP','getConfig','win32','USER_CONFIG_DETAILS_PATH','EVENTS','get','Yvory','vAicR','skipSessionName','testObservability','../../helpers/performance/constants','initialize','Updated\x20config\x20file\x20name\x20to\x20-\x20','join','./accessibility-helper','isCLIEnabled','config','playwright','../../helpers/helper','suPjc','BROWSERSTACK_RERUN'];a39_0x3355=function(){return _0x3e8e39;};return a39_0x3355();}function a39_0x5e60(_0x578e13,_0x43d9ae){const _0x33557b=a39_0x3355();return a39_0x5e60=function(_0x5e60a3,_0x58edbe){_0x5e60a3=_0x5e60a3-0x104;let _0x1dbb20=_0x33557b[_0x5e60a3];return _0x1dbb20;},a39_0x5e60(_0x578e13,_0x43d9ae);}(function(_0x2c459b,_0x268146){const _0x2d7d7c=a39_0x5e60,_0x4e91fb=_0x2c459b();while(!![]){try{const _0x38dd06=-parseInt(_0x2d7d7c(0x135))/0x1+parseInt(_0x2d7d7c(0x128))/0x2*(-parseInt(_0x2d7d7c(0x17d))/0x3)+parseInt(_0x2d7d7c(0x1cb))/0x4+-parseInt(_0x2d7d7c(0x178))/0x5*(-parseInt(_0x2d7d7c(0x18d))/0x6)+-parseInt(_0x2d7d7c(0x146))/0x7+parseInt(_0x2d7d7c(0x13c))/0x8*(-parseInt(_0x2d7d7c(0x12c))/0x9)+parseInt(_0x2d7d7c(0x121))/0xa*(parseInt(_0x2d7d7c(0x112))/0xb);if(_0x38dd06===_0x268146)break;else _0x4e91fb['push'](_0x4e91fb['shift']());}catch(_0xf46b48){_0x4e91fb['push'](_0x4e91fb['shift']());}}}(a39_0x3355,0xbdfe0));const fs=require('fs'),path=require(a39_0x20895a(0x185)),{spawn}=require(a39_0x20895a(0x17f)),{format}=require(a39_0x20895a(0x1af)),logger=require(a39_0x20895a(0x1bf))['winstonLogger'],{default:BrowserStackSetup}=require(a39_0x20895a(0x189)),helper=require(a39_0x20895a(0x16f)),utilities=require(a39_0x20895a(0x11f)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a39_0x20895a(0x1c3)),{getConfigLoaderPath}=require(a39_0x20895a(0x18e)),{checkAccessibilityPlatformConfig}=require(a39_0x20895a(0x108)),{setAccessibilityCapabilities}=require(a39_0x20895a(0x16b)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a39_0x20895a(0x144)),TestHubHandler=require(a39_0x20895a(0x1a8)),PerformanceTester=require(a39_0x20895a(0x1ca)),BrowserstackCLI=require(a39_0x20895a(0x150)),PerformanceEvents=require(a39_0x20895a(0x167))[a39_0x20895a(0x161)],CLIUtils=require(a39_0x20895a(0x186)),TestInfo=require(a39_0x20895a(0x1ab)),ClientTroubleShootingService=require(a39_0x20895a(0x1ce)),getUserPlaywrightConfig=async(_0x84e683,_0x50b642)=>{const _0x5725c3=a39_0x20895a,_0x3dfdb5={'WMuiQ':function(_0x4ebb9b){return _0x4ebb9b();},'uYtDc':function(_0x5712a4){return _0x5712a4();},'cAoJq':function(_0x12773c,_0x350f26){return _0x12773c(_0x350f26);},'FdmVV':function(_0x41597b,_0x641751){return _0x41597b(_0x641751);},'yvQIu':'resolvedConfigFile','cRDep':_0x5725c3(0x104)},_0x33a613=!helper[_0x5725c3(0x1cd)](_0x84e683[_0x5725c3(0x16d)]),_0x5d4a37=_0x33a613?path[_0x5725c3(0x1be)](process[_0x5725c3(0x11a)](),_0x84e683['config']):process['cwd'](),{resolveConfigFile:_0x1a3a91,resolveConfigLocation:_0x57343a}=helper[_0x5725c3(0x15b)]()?helper[_0x5725c3(0x122)](..._0x3dfdb5[_0x5725c3(0x1a7)](getConfigLoaderPath)):helper[_0x5725c3(0x10e)][_0x5725c3(0x154)](null,_0x3dfdb5[_0x5725c3(0x140)](getConfigLoaderPath)),_0x3c6d46=_0x1a3a91?_0x3dfdb5['cAoJq'](_0x1a3a91,_0x5d4a37):helper[_0x5725c3(0x149)](_0x3dfdb5[_0x5725c3(0x15c)](_0x57343a,_0x5d4a37),[_0x3dfdb5[_0x5725c3(0x127)]]),_0x4213b5={};if(_0x33a613){const _0x9a8291=_0x50b642['findIndex'](_0x31f63c=>_0x31f63c===_0x5725c3(0x143)||_0x31f63c==='-c'||_0x31f63c[_0x5725c3(0x109)]('--config='));_0x50b642[_0x5725c3(0x124)](_0x9a8291,_0x50b642[_0x9a8291][_0x5725c3(0x109)](_0x3dfdb5[_0x5725c3(0x125)])?0x1:0x2);}const _0x513023={};return _0x513023[_0x5725c3(0x185)]=_0x3c6d46,_0x513023[_0x5725c3(0x16d)]=_0x4213b5,_0x513023;},handleO11yRerun=_0x1e4aeb=>{const _0x554bb9=a39_0x20895a,_0x397236={};_0x397236[_0x554bb9(0x136)]=_0x554bb9(0x199);const _0x1c7837=_0x397236,_0x52cff5=helper[_0x554bb9(0x115)](process[_0x554bb9(0x129)][_0x554bb9(0x171)]);if(_0x52cff5){const _0x478cc4=process[_0x554bb9(0x129)]['BROWSERSTACK_RERUN_TESTS'],_0x55513f=[];if(helper['validateRerunTestList'](_0x478cc4)&&!helper[_0x554bb9(0x1cd)](_0x478cc4)){_0x478cc4['split'](',')['map'](_0x308346=>{const _0x341df=_0x554bb9;_0x55513f[_0x341df(0x1c1)]('('+_0x308346[_0x341df(0x192)]()+')');});const _0x301442='^'+_0x55513f[_0x554bb9(0x16a)]('|')+'$';_0x1e4aeb[_0x554bb9(0x1c1)](_0x1c7837[_0x554bb9(0x136)],_0x301442);}}},spawnOriginalProcess=_0x41d0d9=>{const _0x5b3d2f=a39_0x20895a,_0x4b2943={'dBBLe':function(_0x86ec0c,_0x476462,_0xd53b37,_0x40dd14){return _0x86ec0c(_0x476462,_0xd53b37,_0x40dd14);},'dmzkT':'yarn','bslQv':_0x5b3d2f(0x13b),'uOhVu':_0x5b3d2f(0x16e),'yZjfU':function(_0x24433c,_0x44ac67){return _0x24433c===_0x44ac67;},'mFMdH':_0x5b3d2f(0x15f),'ZbHsC':'inherit'};_0x4b2943[_0x5b3d2f(0x173)](spawn,helper[_0x5b3d2f(0x15b)]()?_0x4b2943[_0x5b3d2f(0x138)]:_0x4b2943[_0x5b3d2f(0x145)],[_0x4b2943[_0x5b3d2f(0x17c)],..._0x41d0d9[_0x5b3d2f(0x179)](0x1)],{'shell':_0x4b2943[_0x5b3d2f(0x14c)](process[_0x5b3d2f(0x106)],_0x4b2943[_0x5b3d2f(0x195)]),'stdio':_0x4b2943[_0x5b3d2f(0x139)],'cwd':process[_0x5b3d2f(0x11a)]()});},isTestCommand=(_0x264c39,_0x2d01db)=>{const _0x282a91=a39_0x20895a,_0x420a5b={};_0x420a5b[_0x282a91(0x1c2)]=function(_0x26f459,_0x18a035){return _0x26f459>_0x18a035;},_0x420a5b[_0x282a91(0x117)]=function(_0x2e119e,_0x268d93){return _0x2e119e===_0x268d93;},_0x420a5b[_0x282a91(0x19a)]=_0x282a91(0x1cc);const _0x4e2fe8=_0x420a5b;if(_0x4e2fe8[_0x282a91(0x1c2)](_0x2d01db[_0x282a91(0x10c)],0x1)&&_0x4e2fe8[_0x282a91(0x117)](_0x2d01db[0x1],_0x4e2fe8[_0x282a91(0x19a)]))return!![];return![];};async function run(_0x160ce0,_0x2e82e1,_0x76fed9){const _0x352ff5=a39_0x20895a,_0x577b5b={'YUfzy':function(_0x202712,_0xf4ba4d){return _0x202712(_0xf4ba4d);},'dSZvD':'.browserstack','elBla':_0x352ff5(0x1d2),'brZtC':function(_0x1358db,_0x5dbcbd){return _0x1358db+_0x5dbcbd;},'kRIGs':_0x352ff5(0x15a),'iICGG':function(_0x53c87c){return _0x53c87c();},'xTzuO':'Error\x20in\x20closing\x20playwright','VsRRv':'BrowserStack\x20config\x20file\x20not\x20found.','wqTfX':function(_0x4626db,_0xd8984f){return _0x4626db<_0xd8984f;},'fmxHy':function(_0x3f758,_0x288316){return _0x3f758===_0x288316;},'cUALN':'false','BCVOe':_0x352ff5(0x14f),'nRPVk':function(_0x740ef7,_0x392417){return _0x740ef7>=_0x392417;},'kmZsi':_0x352ff5(0x1bc),'AZWrR':function(_0x42c9da,_0x5a6db7){return _0x42c9da!=_0x5a6db7;},'Zfocb':function(_0x25f24b,_0x2920f3,_0x3a0074){return _0x25f24b(_0x2920f3,_0x3a0074);},'QAXOJ':function(_0xb95d41,_0x584a0b){return _0xb95d41===_0x584a0b;},'QyMgO':_0x352ff5(0x137),'ccuHd':function(_0x27b252,_0x338d55){return _0x27b252(_0x338d55);},'Etigy':function(_0x8eb435,_0x5c7245){return _0x8eb435(_0x5c7245);},'diMbi':_0x352ff5(0x133),'sWcDP':_0x352ff5(0x10d),'suPjc':_0x352ff5(0x174),'MoQvl':function(_0x209e54,_0x374ff4){return _0x209e54-_0x374ff4;},'Koiox':function(_0x15afff,_0x5ac9e6){return _0x15afff+_0x5ac9e6;},'Uzhts':_0x352ff5(0x169),'MfVyM':function(_0x296ad3,_0x1d4f55){return _0x296ad3>_0x1d4f55;},'ufgpe':function(_0x10ec3b,_0x2d7ec3){return _0x10ec3b+_0x2d7ec3;},'ydcWj':function(_0x4a2d8e,_0x467bcf,_0x2dde8c,_0x7176d5){return _0x4a2d8e(_0x467bcf,_0x2dde8c,_0x7176d5);},'aITdf':_0x352ff5(0x107),'UQLHa':'npx','BvPVR':'playwright','CvAsG':_0x352ff5(0x1cc),'XDnng':_0x352ff5(0x143),'ObdfP':function(_0x5866f8,_0x42c5b3){return _0x5866f8===_0x42c5b3;},'DUycy':_0x352ff5(0x15f),'XECxi':function(_0x2f96e6,_0x5c8174){return _0x2f96e6===_0x5c8174;},'tBFbW':'inherit','IcZUO':_0x352ff5(0x191),'xfBZA':function(_0x574194,_0x2120ef){return _0x574194|_0x2120ef;},'YhiZN':function(_0xf4ed5,_0xd98c19){return _0xf4ed5+_0xd98c19;},'KOGIE':_0x352ff5(0x11b),'vAicR':'Error\x20in\x20deleting\x20playwright\x20results','MjNjZ':function(_0x4a9142,_0x5daa7f,_0x22eeeb){return _0x4a9142(_0x5daa7f,_0x22eeeb);},'PcpwW':function(_0x2b42c9,_0x348d27){return _0x2b42c9(_0x348d27);}};try{const _0x27a356=path[_0x352ff5(0x16a)](helper['homedir'](),_0x577b5b[_0x352ff5(0x14b)]);try{fs[_0x352ff5(0x1b3)](_0x27a356,_0x577b5b[_0x352ff5(0x13f)](fs[_0x352ff5(0x105)][_0x352ff5(0x18f)],fs[_0x352ff5(0x105)]['W_OK']));}catch(_0x5046a6){ClientTroubleShootingService[_0x352ff5(0x177)]();}}catch(_0x242570){logger[_0x352ff5(0x1ac)](_0x577b5b['YhiZN'](_0x577b5b[_0x352ff5(0x1b1)],_0x242570));}try{const _0x155192=path['join'](helper[_0x352ff5(0x111)](),_0x577b5b['dSZvD'],_0x577b5b['elBla']);fs[_0x352ff5(0x13a)](_0x155192)&&fs[_0x352ff5(0x1b6)](_0x155192);}catch(_0x17bdf3){logger[_0x352ff5(0x1ac)](_0x577b5b[_0x352ff5(0x1a2)](_0x577b5b[_0x352ff5(0x164)],_0x17bdf3));}if(!_0x577b5b[_0x352ff5(0x1c9)](isTestCommand,_0x160ce0,_0x2e82e1)){_0x577b5b[_0x352ff5(0x172)](spawnOriginalProcess,_0x2e82e1);return;}await PerformanceTester[_0x352ff5(0x18a)](PerformanceEvents[_0x352ff5(0x19d)],async()=>{const _0x5d1e08=_0x352ff5,_0x48250a={'YqzdO':function(_0x7cd433,_0x3d0e4b){const _0x4edaad=a39_0x5e60;return _0x577b5b[_0x4edaad(0x197)](_0x7cd433,_0x3d0e4b);},'drMSd':_0x577b5b[_0x5d1e08(0x14b)],'cmTgj':_0x577b5b['elBla'],'Yvory':function(_0x2f1a2b,_0x2455f1){const _0x1beae2=_0x5d1e08;return _0x577b5b[_0x1beae2(0x1c6)](_0x2f1a2b,_0x2455f1);},'JOGyy':_0x577b5b[_0x5d1e08(0x180)],'lNojb':function(_0x1041c4){return _0x577b5b['iICGG'](_0x1041c4);},'yrshV':_0x577b5b[_0x5d1e08(0x113)]};if(!_0x76fed9['config']){logger[_0x5d1e08(0x193)](_0x577b5b[_0x5d1e08(0x1b8)]);return;}await _0x76fed9[_0x5d1e08(0x168)](_0x160ce0),CLIUtils[_0x5d1e08(0x1c8)](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x5d1e08(0x10a)]),BrowserstackCLI[_0x5d1e08(0x11e)]()['setBrowserstackConfig'](_0x76fed9[_0x5d1e08(0x16d)],_0x76fed9[_0x5d1e08(0x19c)],_0x76fed9[_0x5d1e08(0x183)]),await BrowserstackCLI['getInstance']()[_0x5d1e08(0x194)]();for(var _0x5c88d5=0x0;_0x577b5b[_0x5d1e08(0x151)](_0x5c88d5,constants[_0x5d1e08(0x1b7)][_0x5d1e08(0x10c)]);_0x5c88d5++){var _0x4ab85c=constants[_0x5d1e08(0x1b7)][_0x5c88d5];process[_0x5d1e08(0x129)][_0x4ab85c]&&await ClientTroubleShootingService[_0x5d1e08(0x1bd)](_0x4ab85c);}const _0xe10f5b=BrowserstackCLI[_0x5d1e08(0x11e)]()[_0x5d1e08(0x15e)]();!helper[_0x5d1e08(0x17e)](_0xe10f5b[_0x5d1e08(0x118)])&&(process[_0x5d1e08(0x129)][_0x5d1e08(0x1a9)]=!![]);_0x577b5b[_0x5d1e08(0x12f)](_0xe10f5b[_0x5d1e08(0x118)],![])&&(process[_0x5d1e08(0x129)][_0x5d1e08(0x1a9)]=_0x577b5b[_0x5d1e08(0x1ad)],_0x2e82e1=_0x2e82e1['filter'](_0x2f45a7=>_0x2f45a7!=='--disable-browserstack-automation'));const _0x27b3c9=_0x2e82e1[_0x5d1e08(0x188)](_0x577b5b[_0x5d1e08(0x13e)]);(_0x577b5b[_0x5d1e08(0x11c)](_0x27b3c9,0x0)||_0x577b5b['fmxHy'](_0xe10f5b[_0x5d1e08(0x166)],![]))&&(process[_0x5d1e08(0x129)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x577b5b[_0x5d1e08(0x1ad)],_0x2e82e1=_0x2e82e1[_0x5d1e08(0x134)](_0x125248=>_0x125248!==_0x5d1e08(0x14f)));!helper[_0x5d1e08(0x1cd)](_0x76fed9['cliConfig'])&&_0x76fed9[_0x5d1e08(0x183)][_0x5d1e08(0x198)](_0x577b5b['kmZsi'])&&(process[_0x5d1e08(0x129)][_0x5d1e08(0x1a9)]=_0x76fed9[_0x5d1e08(0x183)][_0x5d1e08(0x162)](_0x577b5b['kmZsi'])||!![]);_0x577b5b['AZWrR'](_0x76fed9['config'][_0x5d1e08(0x166)],null)&&!helper['isTrue'](process[_0x5d1e08(0x129)][_0x5d1e08(0x130)])&&(process[_0x5d1e08(0x129)][_0x5d1e08(0x130)]=process['env']['BROWSERSTACK_TEST_OBSERVABILITY']||_0x76fed9[_0x5d1e08(0x16d)][_0x5d1e08(0x166)]);const _0x2cdf92=!helper[_0x5d1e08(0x17e)](process[_0x5d1e08(0x129)][_0x5d1e08(0x130)]);_0x76fed9[_0x5d1e08(0x16d)][_0x5d1e08(0x148)]&&(process[_0x5d1e08(0x129)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x5d1e08(0x141)](_0x76fed9[_0x5d1e08(0x16d)][_0x5d1e08(0x148)]));let _0x478bd9=![];_0x76fed9['config'][_0x5d1e08(0x1a4)]&&(_0x478bd9=!![],process[_0x5d1e08(0x129)][_0x5d1e08(0x1ae)]=_0x76fed9['config'][_0x5d1e08(0x1a4)]);const _0x3283cb=_0x2e82e1[_0x5d1e08(0x1d1)](),_0x2a0b77=await _0x577b5b['Zfocb'](getUserPlaywrightConfig,_0x160ce0,_0x2e82e1);if(helper[_0x5d1e08(0x1cd)](_0x2a0b77)){_0x577b5b[_0x5d1e08(0x197)](spawnOriginalProcess,_0x3283cb);return;}const _0x10acc5=_0x2a0b77[_0x5d1e08(0x185)]?path['dirname'](_0x2a0b77[_0x5d1e08(0x185)]):process[_0x5d1e08(0x11a)]();process['env'][_0x5d1e08(0x14a)]=_0x10acc5,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x5d1e08(0x1a3)],async()=>{const _0x17ea25=_0x5d1e08;!BrowserstackCLI[_0x17ea25(0x11e)]()['isRunning']()&&await TestHubHandler[_0x17ea25(0x1b2)](FRAMEWORKS[_0x17ea25(0x10a)],_0x76fed9),_0x2cdf92&&_0x48250a[_0x17ea25(0x114)](handleO11yRerun,_0x2e82e1);})();if(!BrowserstackCLI['getInstance']()[_0x5d1e08(0x131)]()){let _0x1cb4d1=_0x577b5b[_0x5d1e08(0x119)](process[_0x5d1e08(0x129)][_0x5d1e08(0x1ae)],_0x577b5b['QyMgO']);_0x1cb4d1=_0x1cb4d1||_0x577b5b[_0x5d1e08(0x142)](checkAccessibilityPlatformConfig,_0x76fed9[_0x5d1e08(0x16d)]),process[_0x5d1e08(0x129)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x1cb4d1,_0x1cb4d1&&_0x577b5b[_0x5d1e08(0x1a6)](setAccessibilityCapabilities,_0x76fed9[_0x5d1e08(0x16d)]);}const _0xd8bea9=path[_0x5d1e08(0x16a)](_0x2a0b77[_0x5d1e08(0x185)]?path[_0x5d1e08(0x12b)](_0x2a0b77['path']):process[_0x5d1e08(0x11a)](),_0x577b5b[_0x5d1e08(0x19f)]);fs[_0x5d1e08(0x19b)](_0xd8bea9,helper[_0x5d1e08(0x1a1)](_0x76fed9[_0x5d1e08(0x16d)])),process[_0x5d1e08(0x129)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0xd8bea9,helper[_0x5d1e08(0x11d)]();let _0x3fc5ce='';_0x577b5b[_0x5d1e08(0x12f)](helper['getPackageType'](),constants[_0x5d1e08(0x1cf)][_0x5d1e08(0x17a)])?_0x3fc5ce=_0x577b5b[_0x5d1e08(0x18c)]:_0x3fc5ce=_0x577b5b[_0x5d1e08(0x170)];let _0x2bfad9='';if(helper['isTypescriptProject'](_0x2a0b77['path'])){_0x2bfad9=_0x5d1e08(0x19e);const _0x2fe927=_0x3fc5ce['split']('.');_0x2fe927[_0x577b5b[_0x5d1e08(0x14e)](_0x2fe927[_0x5d1e08(0x10c)],0x1)]='ts',_0x3fc5ce=_0x2fe927['join']('.'),logger[_0x5d1e08(0x1ac)](_0x577b5b[_0x5d1e08(0x155)](_0x577b5b[_0x5d1e08(0x1c7)],_0x3fc5ce));}else _0x2bfad9=_0x5d1e08(0x132);const _0x3b684f=path[_0x5d1e08(0x16a)](_0x2a0b77[_0x5d1e08(0x185)]?path[_0x5d1e08(0x12b)](_0x2a0b77['path']):process[_0x5d1e08(0x11a)](),_0x3fc5ce);let _0x1d59ba=_0x2a0b77[_0x5d1e08(0x185)]?_0x2a0b77['path']:'';_0x1d59ba=_0x577b5b[_0x5d1e08(0x1b5)](_0x1d59ba[_0x5d1e08(0x10c)],0x0)?path[_0x5d1e08(0x1be)](_0x1d59ba):'',process[_0x5d1e08(0x129)][_0x5d1e08(0x160)]=_0x1d59ba;const _0x10d094=helper[_0x5d1e08(0x1bb)](_0x76fed9[_0x5d1e08(0x16d)]),_0x45be81=helper['getNoProxy'](_0x76fed9[_0x5d1e08(0x16d)]);logger['debug'](_0x5d1e08(0x176)+_0x10d094),logger[_0x5d1e08(0x1ac)]('No\x20Proxy\x20:\x20'+_0x45be81);_0x10d094&&(_0x2bfad9=_0x577b5b['ufgpe'](_0x5d1e08(0x1a0)+_0x10d094+_0x5d1e08(0x1b4)+_0x45be81+_0x5d1e08(0x116),_0x2bfad9));helper[_0x5d1e08(0x184)]({},_0x2e82e1),fs[_0x5d1e08(0x19b)](_0x3b684f,_0x2bfad9),PerformanceTester[_0x5d1e08(0x147)](PerformanceEvents[_0x5d1e08(0x15d)]);const _0x316c16=_0x577b5b['ydcWj'](spawn,helper[_0x5d1e08(0x15b)]()?_0x577b5b[_0x5d1e08(0x181)]:_0x577b5b[_0x5d1e08(0x175)],[_0x577b5b[_0x5d1e08(0x1b9)],_0x577b5b[_0x5d1e08(0x126)],_0x577b5b[_0x5d1e08(0x1aa)],_0x577b5b[_0x5d1e08(0x1c5)](process[_0x5d1e08(0x106)],_0x577b5b[_0x5d1e08(0x196)])?'\x22'+_0x3b684f+'\x22':_0x3b684f,..._0x2e82e1[_0x5d1e08(0x179)](0x2)],{'shell':_0x577b5b[_0x5d1e08(0x10b)](process['platform'],_0x577b5b[_0x5d1e08(0x196)]),'stdio':_0x577b5b[_0x5d1e08(0x1ba)],'cwd':process['cwd'](),'env':Object[_0x5d1e08(0x152)]({},process[_0x5d1e08(0x129)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x160ce0),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x76fed9[_0x5d1e08(0x16d)][_0x5d1e08(0x14d)]['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x76fed9[_0x5d1e08(0x16d)]['testContextOptions'][_0x5d1e08(0x165)],'BROWSERSTACK_LOG_LEVEL':_0x76fed9[_0x5d1e08(0x16d)][_0x5d1e08(0x157)]})}),_0x560bb5=()=>{const _0x1cc288=_0x5d1e08;try{const _0x2d3b1d=path[_0x1cc288(0x16a)](helper['homedir'](),_0x48250a[_0x1cc288(0x159)],_0x48250a[_0x1cc288(0x110)]);if(fs[_0x1cc288(0x13a)](_0x2d3b1d)){let _0x5d3be4=fs[_0x1cc288(0x12e)](_0x2d3b1d);_0x5d3be4=JSON[_0x1cc288(0x1a5)](_0x5d3be4),_0x76fed9[_0x1cc288(0x120)]=_0x5d3be4,fs[_0x1cc288(0x1b6)](_0x2d3b1d);}}catch(_0x433d8d){logger[_0x1cc288(0x1ac)](_0x48250a[_0x1cc288(0x163)](_0x48250a[_0x1cc288(0x12d)],_0x433d8d));}};_0x316c16['on'](_0x577b5b[_0x5d1e08(0x190)],async _0x85277b=>{const _0xf08882=_0x5d1e08,_0x194a18={};_0x194a18['ezAgb']=_0x48250a[_0xf08882(0x159)];const _0x23c411=_0x194a18;try{PerformanceTester[_0xf08882(0x1d0)](PerformanceEvents[_0xf08882(0x1b0)]),_0x48250a[_0xf08882(0x182)](_0x560bb5),await TestHubHandler[_0xf08882(0x156)](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x284ac6=BrowserstackCLI[_0xf08882(0x16c)]();await BrowserstackCLI[_0xf08882(0x11e)]()[_0xf08882(0x156)](),TestDetails[_0xf08882(0x10f)](),_0x48250a[_0xf08882(0x182)](printBuildLink),await utilities[_0xf08882(0x153)](_0x76fed9,_0x284ac6),process[_0xf08882(0x12a)]=_0x85277b,logger[_0xf08882(0x1ac)](_0xf08882(0x158)+_0x85277b),logger[_0xf08882(0x1c4)]('Deleting\x20'+_0x3b684f),fs[_0xf08882(0x1b6)](_0x3b684f);fs[_0xf08882(0x13a)](_0xd8bea9)&&(logger[_0xf08882(0x1ac)](_0xf08882(0x13d)+_0xd8bea9),fs['unlinkSync'](_0xd8bea9));const _0x37bcff=fs['readdirSync'](path[_0xf08882(0x16a)](helper[_0xf08882(0x111)](),_0x48250a['drMSd']))[_0xf08882(0x134)](_0x4e7c0f=>_0x4e7c0f[_0xf08882(0x109)](_0xf08882(0x18b)));_0x37bcff[_0xf08882(0x187)](_0x30bd7c=>{const _0x1219ef=_0xf08882;fs['unlinkSync'](path['join'](helper[_0x1219ef(0x111)](),_0x23c411[_0x1219ef(0x123)],_0x30bd7c));});}catch(_0xf8f1ef){logger[_0xf08882(0x1ac)](_0x48250a[_0xf08882(0x163)](_0x48250a[_0xf08882(0x1c0)],_0xf8f1ef));}});})();}module[a39_0x20895a(0x17b)]=run;
@@ -1 +1 @@
1
- const a40_0x5e7e1d=a40_0x1984;function a40_0xfeb3(){const _0x2373e9=['uupTz','isHandlePWErrorSet','243028OGuPxl','20630rIJkas','bRTQb','yNZbJ','837KcBhNA','debug','bLtJS','./reporter/pwUtils','format','util','config','30PeaqTt','./patches','8848114BjlBUq','MrSwL','error','gxhnx','winstonLogger','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','resolve','child_process','Call\x20to\x20child\x20fork\x20with\x20args\x20','../../helpers/test-observability/constants','../../helpers/test-observability/utils','toString','PLAYWRIGHT','1603aliTrp','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','exports','env','1.33.0','2cwSXIJ','yVZIE','176135EHmIGC','fork','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','apply','compareVersions','xcpCp','./mock-process.js','81930TMtIEL','157777SerVAi','Path\x20','../../helpers/logger','zSxvV','5816XkytzB'];a40_0xfeb3=function(){return _0x2373e9;};return a40_0xfeb3();}(function(_0x2013be,_0x113cc2){const _0x4aa303=a40_0x1984,_0x5ed990=_0x2013be();while(!![]){try{const _0x865f10=-parseInt(_0x4aa303(0xf3))/0x1*(parseInt(_0x4aa303(0xe9))/0x2)+parseInt(_0x4aa303(0xf2))/0x3+parseInt(_0x4aa303(0xfa))/0x4+parseInt(_0x4aa303(0xeb))/0x5*(-parseInt(_0x4aa303(0x105))/0x6)+-parseInt(_0x4aa303(0xe4))/0x7*(parseInt(_0x4aa303(0xf7))/0x8)+-parseInt(_0x4aa303(0xfe))/0x9*(parseInt(_0x4aa303(0xfb))/0xa)+parseInt(_0x4aa303(0x107))/0xb;if(_0x865f10===_0x113cc2)break;else _0x5ed990['push'](_0x5ed990['shift']());}catch(_0x34744a){_0x5ed990['push'](_0x5ed990['shift']());}}}(a40_0xfeb3,0x30dfb));const util=require(a40_0x5e7e1d(0x103)),child_process=require(a40_0x5e7e1d(0xde)),{FRAMEWORKS}=require(a40_0x5e7e1d(0xe0)),{getFrameworkVersion,debug}=require(a40_0x5e7e1d(0xe1)),helper=require('../../helpers/helper'),{getLoadUtilsPath,getForkProcessPath}=require(a40_0x5e7e1d(0x101)),{mockIsWorkerRedundant}=require(a40_0x5e7e1d(0x106)),logger=require(a40_0x5e7e1d(0xf5))[a40_0x5e7e1d(0x10b)];function a40_0x1984(_0x227eee,_0x1af995){const _0xfeb36b=a40_0xfeb3();return a40_0x1984=function(_0x198425,_0x64d328){_0x198425=_0x198425-0xdc;let _0x1e872b=_0xfeb36b[_0x198425];return _0x1e872b;},a40_0x1984(_0x227eee,_0x1af995);}module[a40_0x5e7e1d(0xe6)]=async function(_0x558d89){const _0x355fae=a40_0x5e7e1d,_0x19c070={'xcpCp':function(_0x5c674a,_0x5e02d5){return _0x5c674a(_0x5e02d5);},'bRTQb':function(_0x5bd9b4){return _0x5bd9b4();},'NtIrT':_0x355fae(0xf1),'gxhnx':function(_0x557735){return _0x557735();},'MrSwL':'Running\x20existing\x20global\x20setup','yNZbJ':function(_0x35f4a6,_0x1ce3fb){return _0x35f4a6(_0x1ce3fb);},'uupTz':function(_0x3eb500,_0x1cc3db){return _0x3eb500>=_0x1cc3db;},'uEuvc':_0x355fae(0xe8),'Kpuxq':function(_0x45eb6f,_0x26a437,_0x46be7a){return _0x45eb6f(_0x26a437,_0x46be7a);},'bLtJS':function(_0x4a0b0e,_0x3d2ba5){return _0x4a0b0e!==_0x3d2ba5;},'yVZIE':'function','zSxvV':'Not\x20able\x20to\x20import\x20globalSetup'},_0x3fb3b1=child_process[_0x355fae(0xec)];if(helper[_0x355fae(0xf9)]())try{_0x19c070['bRTQb'](mockIsWorkerRedundant);}catch(_0x472a2f){logger[_0x355fae(0xff)](_0x355fae(0xdc)+util[_0x355fae(0x102)](_0x472a2f));}child_process['fork']=function(){const _0x341651=_0x355fae;return _0x19c070[_0x341651(0xf0)](debug,_0x341651(0xdf)+arguments[0x0]),arguments[0x0]['includes'](_0x19c070[_0x341651(0xfc)](getForkProcessPath))?arguments[0x0]=require[_0x341651(0xdd)](_0x19c070['NtIrT']):logger[_0x341651(0x109)](_0x341651(0xf4)+_0x19c070[_0x341651(0x10a)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x3fb3b1[_0x341651(0xee)](null,arguments);};if(process['env'][_0x355fae(0xe5)]){_0x19c070[_0x355fae(0xf0)](debug,_0x19c070[_0x355fae(0x108)]);try{const {loadGlobalHook:_0x4a9d66}=helper['requirePWModule'][_0x355fae(0xee)](null,_0x19c070[_0x355fae(0xfc)](getLoadUtilsPath)),_0x40359b=_0x19c070['yNZbJ'](getFrameworkVersion,FRAMEWORKS[_0x355fae(0xe3)]);let _0x2930df=_0x558d89;if(_0x19c070[_0x355fae(0xf8)](helper[_0x355fae(0xef)](_0x40359b,_0x19c070['uEuvc']),0x0)){const _0x129072={};_0x129072[_0x355fae(0x104)]=_0x558d89,_0x2930df=_0x129072;}const _0x43b4ce=await _0x19c070['Kpuxq'](_0x4a9d66,_0x2930df,process[_0x355fae(0xe7)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x19c070[_0x355fae(0x100)](typeof _0x43b4ce,_0x19c070[_0x355fae(0xea)]))throw new Error(_0x19c070[_0x355fae(0xf6)]);return _0x43b4ce['apply'](null,arguments);}catch(_0x3b9085){_0x19c070[_0x355fae(0xfd)](debug,_0x355fae(0xed)+_0x3b9085[_0x355fae(0xe2)]());}}};
1
+ const a40_0x163429=a40_0x5b4c;function a40_0x33e9(){const _0x1a9b88=['Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','11361616WOLBEf','lNzXM','./mock-process.js','exports','resolve','\x20is\x20not\x20found','1307655hUrMLk','error','450709laIUTe','LNllM','YREFZ','./patches','Icney','90GEPHpZ','debug','phnPo','../../helpers/helper','11votSSL','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','1363333rpTQab','Not\x20able\x20to\x20import\x20globalSetup','636147Ortqom','format','uinkx','40AvQdLB','Path\x20','ANmDQ','function','YBiQj','compareVersions','apply','2cGoLzt','./reporter/pwUtils','includes','config','Running\x20existing\x20global\x20setup','625740COSNVP','isHandlePWErrorSet','winstonLogger','dVWEA','../../helpers/logger','../../helpers/test-observability/constants','44607192lyKiyn','XnpcU','35lKWibi','Call\x20to\x20child\x20fork\x20with\x20args\x20','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'];a40_0x33e9=function(){return _0x1a9b88;};return a40_0x33e9();}(function(_0x50bff8,_0x147bde){const _0x274073=a40_0x5b4c,_0x38ee91=_0x50bff8();while(!![]){try{const _0x48cb3a=-parseInt(_0x274073(0x14b))/0x1*(-parseInt(_0x274073(0x157))/0x2)+-parseInt(_0x274073(0x13e))/0x3+parseInt(_0x274073(0x12c))/0x4*(-parseInt(_0x274073(0x134))/0x5)+-parseInt(_0x274073(0x145))/0x6*(parseInt(_0x274073(0x140))/0x7)+-parseInt(_0x274073(0x138))/0x8+parseInt(_0x274073(0x14d))/0x9*(-parseInt(_0x274073(0x150))/0xa)+parseInt(_0x274073(0x149))/0xb*(parseInt(_0x274073(0x132))/0xc);if(_0x48cb3a===_0x147bde)break;else _0x38ee91['push'](_0x38ee91['shift']());}catch(_0x4e105c){_0x38ee91['push'](_0x38ee91['shift']());}}}(a40_0x33e9,0xd7122));const util=require('util'),child_process=require('child_process'),{FRAMEWORKS}=require(a40_0x163429(0x131)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a40_0x163429(0x148)),{getLoadUtilsPath,getForkProcessPath}=require(a40_0x163429(0x128)),{mockIsWorkerRedundant}=require(a40_0x163429(0x143)),logger=require(a40_0x163429(0x130))[a40_0x163429(0x12e)];function a40_0x5b4c(_0x44fa5f,_0x44e8ee){const _0x33e9b1=a40_0x33e9();return a40_0x5b4c=function(_0x5b4c94,_0x9dc57e){_0x5b4c94=_0x5b4c94-0x128;let _0x58094a=_0x33e9b1[_0x5b4c94];return _0x58094a;},a40_0x5b4c(_0x44fa5f,_0x44e8ee);}module[a40_0x163429(0x13b)]=async function(_0x187841){const _0x432eec=a40_0x163429,_0x2c88e1={'phnPo':function(_0x22c0f1,_0x345853){return _0x22c0f1(_0x345853);},'lNzXM':function(_0x1b01b3){return _0x1b01b3();},'uinkx':_0x432eec(0x13a),'OaNbZ':_0x432eec(0x12b),'YREFZ':function(_0x3135d3){return _0x3135d3();},'anpFf':function(_0x3a5188,_0x2bb31a){return _0x3a5188(_0x2bb31a);},'dVWEA':function(_0x219575,_0x419f9c){return _0x219575>=_0x419f9c;},'LNllM':'1.33.0','XnpcU':function(_0x44ec97,_0x1a8ecf,_0x270ff2){return _0x44ec97(_0x1a8ecf,_0x270ff2);},'mRMTB':function(_0x672445,_0x5e393d){return _0x672445!==_0x5e393d;},'YBiQj':_0x432eec(0x153),'Icney':_0x432eec(0x14c),'ANmDQ':function(_0x5249fd,_0xd6948){return _0x5249fd(_0xd6948);}},_0x57cbb1=child_process['fork'];if(helper[_0x432eec(0x12d)]())try{_0x2c88e1[_0x432eec(0x139)](mockIsWorkerRedundant);}catch(_0x50e3be){logger[_0x432eec(0x146)](_0x432eec(0x137)+util[_0x432eec(0x14e)](_0x50e3be));}child_process['fork']=function(){const _0x1ed740=_0x432eec;return _0x2c88e1[_0x1ed740(0x147)](debug,_0x1ed740(0x135)+arguments[0x0]),arguments[0x0][_0x1ed740(0x129)](_0x2c88e1['lNzXM'](getForkProcessPath))?arguments[0x0]=require[_0x1ed740(0x13c)](_0x2c88e1[_0x1ed740(0x14f)]):logger[_0x1ed740(0x13f)](_0x1ed740(0x151)+_0x2c88e1[_0x1ed740(0x139)](getForkProcessPath)+_0x1ed740(0x13d)),_0x57cbb1['apply'](null,arguments);};if(process['env'][_0x432eec(0x14a)]){_0x2c88e1[_0x432eec(0x147)](debug,_0x2c88e1['OaNbZ']);try{const {loadGlobalHook:_0x183cc9}=helper['requirePWModule'][_0x432eec(0x156)](null,_0x2c88e1[_0x432eec(0x142)](getLoadUtilsPath)),_0x5cce1c=_0x2c88e1['anpFf'](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x4beb8a=_0x187841;if(_0x2c88e1[_0x432eec(0x12f)](helper[_0x432eec(0x155)](_0x5cce1c,_0x2c88e1[_0x432eec(0x141)]),0x0)){const _0x132ae0={};_0x132ae0[_0x432eec(0x12a)]=_0x187841,_0x4beb8a=_0x132ae0;}const _0x2b2426=await _0x2c88e1[_0x432eec(0x133)](_0x183cc9,_0x4beb8a,process['env'][_0x432eec(0x14a)]);if(_0x2c88e1['mRMTB'](typeof _0x2b2426,_0x2c88e1[_0x432eec(0x154)]))throw new Error(_0x2c88e1[_0x432eec(0x144)]);return _0x2b2426[_0x432eec(0x156)](null,arguments);}catch(_0x4c4fe0){_0x2c88e1[_0x432eec(0x152)](debug,_0x432eec(0x136)+_0x4c4fe0['toString']());}}};