browserstack-node-sdk 1.54.0 → 1.54.2

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 +7 -7
  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
- function a38_0x4d49(_0x2fa6f1,_0x4ef2ce){const _0xf62578=a38_0xf625();return a38_0x4d49=function(_0x4d4974,_0x539f54){_0x4d4974=_0x4d4974-0x1a0;let _0x42c17c=_0xf62578[_0x4d4974];return _0x42c17c;},a38_0x4d49(_0x2fa6f1,_0x4ef2ce);}const a38_0x5a5fc1=a38_0x4d49;function a38_0xf625(){const _0x32893a=['browserStackExecuteDriver','Performing\x20scan\x20with\x20method:\x20','getAccessibilityResultsSummary','Desiu','browserName','Nzaxq','scannerVersion','ZRtCs','chrome','../../helpers/performance/constants','accessibilityOptions.wcagVersion','find','sEDnT','workerInfo','bstackSdkArgs','startsWith','winstonLogger','deviceName','playwright-chromium','849288bTHQeR','909682dRCrvD','parse','debug','isMobileScanningEnabledForGroup','accessibilityOptions.authToken','executeScript','WebDriver','][\x20SDK-AUTOMATION\x20]\x20','toISOString','16MOQARt','dBFxj','ymbgD','isBrowserSupportedForAccessibility','gdAfs','LGhaa','browserstack.accessibilityOptions','on\x20non-BrowserStack\x20infrastructure\x20','browser_version','cHubD','silly','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','SCTcP','295328DJoLFk','mFfyf','jAOxD','10UqAUOE','PERFORM_SCAN','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','replace','308833wRZHUo','No\x20summaryResults\x20found.','IZAQa','chromium','fqKHy','assign','testInfo','android','18816589ZIYeDR','connectOptions','hcbhg','format','toLowerCase','MOBILE_SCANNING_DISABLED_WARNING','Playwright','No\x20accessibility\x20results\x20were\x20found.','EhtwM','env','4186071IUUxUx','3dgkFUi','command','../../helpers/logger','getBrowserDisplayName','evaluate','mympV','AiyMp','cnGVT','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','585450QtIoIx','uxpxL','\x20browser\x20version\x20','accessibilityOptions','includePartOfPageScope','includes','getMinVersionForBrowser','BS_A11Y_JWT','currentTest','(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','YrFDB','util','../../helpers/helper','includeIssueType','eHVUJ','FytYI','VgGpI','(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','isVersionSupported','accessibilityOptions.includeIssueType.bestPractice','use','bbikJ','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','6wyCwFp','performScan','accessibilityOptions.scannerVersion','stringify','getAccessibilityResults','executeAsyncScript','latest','wcagVersion','hcjHr','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','constructor','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','scannerProcessingTimeout','message','browser','GftAp','YkFKU','platformValidation','forEach','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','yosHa','name','LgfBG','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','warn','bestPractice','response','parameters','error','../../helpers/accessibility-automation/helper','\x20or\x20higher\x20','nQSMI','accessibilityPlatform','../utils/constants','setAccessibilityCapabilities','request','project','VNsVL','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.'];a38_0xf625=function(){return _0x32893a;};return a38_0xf625();}(function(_0x3450f4,_0x465317){const _0x28b05e=a38_0x4d49,_0x5b23f3=_0x3450f4();while(!![]){try{const _0x5e6181=-parseInt(_0x28b05e(0x1da))/0x1+-parseInt(_0x28b05e(0x1db))/0x2*(parseInt(_0x28b05e(0x20b))/0x3)+parseInt(_0x28b05e(0x1e4))/0x4*(-parseInt(_0x28b05e(0x214))/0x5)+-parseInt(_0x28b05e(0x1a0))/0x6*(-parseInt(_0x28b05e(0x1f8))/0x7)+parseInt(_0x28b05e(0x1f1))/0x8+parseInt(_0x28b05e(0x20a))/0x9*(parseInt(_0x28b05e(0x1f4))/0xa)+parseInt(_0x28b05e(0x200))/0xb;if(_0x5e6181===_0x465317)break;else _0x5b23f3['push'](_0x5b23f3['shift']());}catch(_0x247ac3){_0x5b23f3['push'](_0x5b23f3['shift']());}}}(a38_0xf625,0x763a8));const util=require(a38_0x5a5fc1(0x21f)),logger=require(a38_0x5a5fc1(0x20d))[a38_0x5a5fc1(0x1d7)],{automationLogger}=require(a38_0x5a5fc1(0x20d)),{isAccessibilityAutomationSession}=require(a38_0x5a5fc1(0x1bd)),{isUndefined,isBrowserstackInfra}=require(a38_0x5a5fc1(0x220)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x5a5fc1(0x1d0)),accessibilityHelper=require(a38_0x5a5fc1(0x1bd)),{AUTOMATION_LOG_COMMANDS}=require(a38_0x5a5fc1(0x1c1));exports['browserStackEvaluate']=async(_0x639a6e,_0x152fba,_0x1ced7a={})=>{const _0x43ab47=a38_0x5a5fc1,_0x189258={};_0x189258['RTlwQ']=_0x43ab47(0x1d5),_0x189258['YmltT']=function(_0xa0860a,_0x4e0e32){return _0xa0860a===_0x4e0e32;},_0x189258[_0x43ab47(0x1cc)]='string';const _0x3c95ab=_0x189258,_0x3eb2ad=await _0x639a6e[_0x43ab47(0x20f)](_0x43ab47(0x21d)+_0x152fba[_0x43ab47(0x1f7)](/arguments/g,_0x3c95ab['RTlwQ'])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x43ab47(0x1a3)](_0x1ced7a)+')');try{if(_0x152fba&&_0x3c95ab['YmltT'](typeof _0x152fba,_0x3c95ab[_0x43ab47(0x1cc)])){const _0x84d2b4=AUTOMATION_LOG_COMMANDS[_0x43ab47(0x1d2)](_0x3fa3e9=>_0x152fba[_0x43ab47(0x219)](_0x3fa3e9));if(_0x84d2b4){const _0x570f3a={};_0x570f3a['command']=_0x84d2b4,_0x570f3a[_0x43ab47(0x1bb)]=[_0x1ced7a];const _0x50ab6c={};_0x50ab6c['body']=_0x3eb2ad;const _0x407e4b={};_0x407e4b[_0x43ab47(0x1c3)]=_0x570f3a,_0x407e4b[_0x43ab47(0x1ba)]=_0x50ab6c,automationLogger[_0x43ab47(0x1ee)]('['+new Date()[_0x43ab47(0x1e3)]()+_0x43ab47(0x1e2)+JSON[_0x43ab47(0x1a3)](_0x407e4b));}}}catch(_0x3d3695){logger[_0x43ab47(0x1dd)](_0x43ab47(0x1b3)+_0x3d3695[_0x43ab47(0x1ad)]);}return _0x3eb2ad;},exports[a38_0x5a5fc1(0x1c7)]=async(_0x2aff7b,_0x2d8cb,_0x42c35a={})=>{const _0x25bd42=a38_0x5a5fc1,_0xfe607e={};_0xfe607e['mFfyf']=function(_0x6de26f,_0x5e8fc0){return _0x6de26f===_0x5e8fc0;},_0xfe607e['VgGpI']=_0x25bd42(0x1e1),_0xfe607e[_0x25bd42(0x223)]=_0x25bd42(0x206),_0xfe607e[_0x25bd42(0x1e8)]=_0x25bd42(0x1d5);const _0x3b7a8f=_0xfe607e;if(_0x3b7a8f[_0x25bd42(0x1f2)](_0x2aff7b[_0x25bd42(0x1aa)][_0x25bd42(0x1b5)],_0x3b7a8f[_0x25bd42(0x224)]))return await _0x2aff7b[_0x25bd42(0x1a5)](_0x2d8cb,_0x42c35a);else{if(_0x3b7a8f[_0x25bd42(0x1f2)](_0x2aff7b[_0x25bd42(0x1aa)][_0x25bd42(0x1b5)],_0x3b7a8f[_0x25bd42(0x223)]))return await _0x2aff7b[_0x25bd42(0x1e0)](_0x25bd42(0x225)+_0x2d8cb['replace'](/arguments/g,_0x3b7a8f['gdAfs'])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x25bd42(0x1a3)](_0x42c35a)+')');}},exports[a38_0x5a5fc1(0x1c2)]=async _0x3b6c86=>{const _0x204d86=a38_0x5a5fc1,_0x597845={};_0x597845['ZRtCs']=_0x204d86(0x1d1),_0x597845[_0x204d86(0x1a8)]='accessibilityOptions.scannerProcessingTimeout',_0x597845[_0x204d86(0x1b6)]=_0x204d86(0x227),_0x597845['sEDnT']='accessibilityOptions.includeIssueType.needsReview',_0x597845[_0x204d86(0x212)]=_0x204d86(0x1df),_0x597845[_0x204d86(0x1e5)]=_0x204d86(0x1a2);const _0x1acee4=_0x597845;_0x3b6c86['accessibilityOptions']&&(_0x3b6c86[_0x204d86(0x217)][_0x204d86(0x1a7)]&&(_0x3b6c86[_0x1acee4[_0x204d86(0x1ce)]]=_0x3b6c86[_0x204d86(0x217)][_0x204d86(0x1a7)]),_0x3b6c86[_0x204d86(0x217)]['scannerProcessingTimeout']&&(_0x3b6c86[_0x1acee4['hcjHr']]=_0x3b6c86[_0x204d86(0x217)][_0x204d86(0x1ac)]),_0x3b6c86[_0x204d86(0x217)][_0x204d86(0x221)]&&(_0x3b6c86[_0x1acee4['LgfBG']]=_0x3b6c86['accessibilityOptions'][_0x204d86(0x221)][_0x204d86(0x1b9)],_0x3b6c86[_0x1acee4[_0x204d86(0x1d3)]]=_0x3b6c86[_0x204d86(0x217)][_0x204d86(0x221)]['needsReview']));const _0x54ea86=JSON[_0x204d86(0x1dc)](process[_0x204d86(0x209)][_0x204d86(0x1ef)])[_0x204d86(0x1cd)];_0x3b6c86[_0x1acee4['cnGVT']]=process[_0x204d86(0x209)][_0x204d86(0x21b)],_0x3b6c86[_0x1acee4['dBFxj']]=_0x54ea86,delete _0x3b6c86[_0x204d86(0x217)];},exports[a38_0x5a5fc1(0x1a4)]=async _0x410688=>{const _0x3765e0=a38_0x5a5fc1,_0x3f84bd={};_0x3f84bd[_0x3765e0(0x1f3)]=_0x3765e0(0x207),_0x3f84bd[_0x3765e0(0x1ca)]=_0x3765e0(0x22a);const _0x64679d=_0x3f84bd;if(global['accessibilityPlatform'])try{const details={'url':await _0x410688.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(_0x410688,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x410688,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x3765e0(0x1bc)](_0x64679d['jAOxD']),[];}else return logger[_0x3765e0(0x1b8)](_0x64679d[_0x3765e0(0x1ca)]),[];},exports[a38_0x5a5fc1(0x1a1)]=async(_0x38c819,_0x5b9c81='',_0x55f375={},_0x57cd5c={})=>{const _0x5e948f=a38_0x5a5fc1;logger[_0x5e948f(0x1dd)](_0x5e948f(0x1c8)+_0x5b9c81+'\x20page:\x20'+_0x38c819);const _0x25d8d9={'url':await _0x38c819['url'](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x5e948f(0x21c)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x5e948f(0x1f5)],async()=>{const _0x3fbaa8=_0x5e948f,_0x380df1={};_0x380df1[_0x3fbaa8(0x20c)]=_0x5b9c81;const _0x53d1fc=_0x380df1;_0x55f375&&_0x55f375[_0x3fbaa8(0x218)]&&(_0x53d1fc[_0x3fbaa8(0x218)]=_0x55f375['includePartOfPageScope']);Object[_0x3fbaa8(0x1fd)](_0x53d1fc,_0x57cd5c);const _0x2a851b=await exports['browserStackEvaluate'](_0x38c819,scripts[_0x3fbaa8(0x1a1)],_0x53d1fc);return _0x2a851b;},{'command':_0x5b9c81,..._0x25d8d9})();},exports[a38_0x5a5fc1(0x1c9)]=async _0xefb931=>{const _0x41f0c5=a38_0x5a5fc1,_0x400373={};_0x400373[_0x41f0c5(0x210)]=_0x41f0c5(0x1f9),_0x400373[_0x41f0c5(0x229)]=_0x41f0c5(0x1c6);const _0x6d9508=_0x400373;if(global['accessibilityPlatform'])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0xefb931,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0xefb931,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x41f0c5(0x1dd)](_0x6d9508['mympV']),{};}else return logger[_0x41f0c5(0x1b8)](_0x6d9508['bbikJ']),{};},exports[a38_0x5a5fc1(0x1b1)]=_0x1a58b6=>{const _0xbf0b68=a38_0x5a5fc1,_0x2abb9e={'lUjUb':_0xbf0b68(0x1ab),'IZAQa':_0xbf0b68(0x1b7),'uxpxL':function(_0x49a29a,_0x17ad57){return _0x49a29a!==_0x17ad57;},'yosHa':'latest','YrFDB':function(_0x120ab1){return _0x120ab1();},'ymbgD':_0xbf0b68(0x1eb)};try{if(global['isMobilePlatform'])return logger[_0xbf0b68(0x1dd)](_0x2abb9e['lUjUb']),!![];const _0x41fb18=_0x1a58b6['browser'],_0x5ec806=_0x1a58b6[_0xbf0b68(0x1ec)];if(!accessibilityHelper[_0xbf0b68(0x1e7)](_0x41fb18))return logger[_0xbf0b68(0x1b8)](_0x2abb9e[_0xbf0b68(0x1fa)]),![];if(_0x2abb9e[_0xbf0b68(0x215)](_0x5ec806,_0x2abb9e[_0xbf0b68(0x1b4)])){const _0x110d05=_0x2abb9e[_0xbf0b68(0x21e)](isBrowserstackInfra),_0x43b103=accessibilityHelper[_0xbf0b68(0x21a)](_0x41fb18,_0x110d05),_0x2aff83=accessibilityHelper['getBrowserDisplayName'](_0x41fb18);if(!accessibilityHelper[_0xbf0b68(0x226)](_0x5ec806,_0x43b103)){const _0x5972fb=_0x110d05?'':_0x2abb9e[_0xbf0b68(0x1e6)];return logger['warn'](_0xbf0b68(0x213)+_0x2aff83+_0xbf0b68(0x216)+_0x43b103+_0xbf0b68(0x1be)+_0x5972fb+'.'),![];}}}catch(_0x5db902){logger[_0xbf0b68(0x1dd)](_0xbf0b68(0x1f6)+util[_0xbf0b68(0x203)](_0x5db902));}return!![];},exports['processAccessibilityCaps']=(_0x1457da,_0x10afbe,_0x2d7964)=>{const _0x2c118d=a38_0x5a5fc1,_0x1e8aba={'ovrUn':_0x2c118d(0x1ea),'SCTcP':function(_0x5db785){return _0x5db785();},'AiyMp':'browserstack.accessibility','osvmZ':_0x2c118d(0x1b7),'eHVUJ':function(_0x14f628,_0x3cc061){return _0x14f628!==_0x3cc061;},'EhtwM':_0x2c118d(0x1a6),'LGhaa':_0x2c118d(0x1eb),'fqKHy':function(_0x1b0aa1,_0x3065ca){return _0x1b0aa1(_0x3065ca);},'cHubD':function(_0x3d61fb,_0x2b7528){return _0x3d61fb===_0x2b7528;},'DGhDK':_0x2c118d(0x1ff),'YkFKU':_0x2c118d(0x1cf),'UDrDv':_0x2c118d(0x1d9),'GftAp':_0x2c118d(0x1fb),'nQSMI':_0x2c118d(0x1a9),'hcbhg':function(_0x178031,_0x54fae8){return _0x178031+_0x54fae8;},'VNsVL':function(_0x164c21,_0x4324b5){return _0x164c21(_0x4324b5);}};try{if(_0x1e8aba[_0x2c118d(0x1f0)](isAccessibilityAutomationSession)){global[_0x2c118d(0x1c0)]=!![];!_0x1457da[_0x1e8aba['AiyMp']]&&(global[_0x2c118d(0x1c0)]=![]);const _0x1f1a41=_0x1457da['browserName']||_0x1457da[_0x2c118d(0x1ae)],_0x3851eb=_0x1457da[_0x2c118d(0x1ec)];!accessibilityHelper[_0x2c118d(0x1e7)](_0x1f1a41)&&(logger[_0x2c118d(0x1b8)](_0x1e8aba['osvmZ']),global['accessibilityPlatform']=![]);if(_0x1e8aba[_0x2c118d(0x222)](_0x3851eb,_0x1e8aba[_0x2c118d(0x208)])){const _0x16e996=_0x1e8aba[_0x2c118d(0x1f0)](isBrowserstackInfra),_0x533b62=accessibilityHelper[_0x2c118d(0x21a)](_0x1f1a41,_0x16e996),_0x512b53=accessibilityHelper[_0x2c118d(0x20e)](_0x1f1a41);if(!accessibilityHelper['isVersionSupported'](_0x3851eb,_0x533b62)){const _0x112fc0=_0x16e996?'':_0x1e8aba[_0x2c118d(0x1e9)];logger[_0x2c118d(0x1b8)](_0x2c118d(0x213)+_0x512b53+_0x2c118d(0x216)+_0x533b62+_0x2c118d(0x1be)+_0x112fc0+'.'),global[_0x2c118d(0x1c0)]=![];}}if(!_0x1e8aba[_0x2c118d(0x1fc)](isUndefined,_0x1457da[_0x2c118d(0x1d8)])){const _0x28d15f=(_0x1457da['os']||'')[_0x2c118d(0x204)](),_0x4f1e82=(_0x1457da[_0x2c118d(0x1cb)]||_0x1457da[_0x2c118d(0x1ae)]||'')['toLowerCase'](),_0x2c6e98=_0x1e8aba[_0x2c118d(0x1ed)](_0x28d15f,_0x1e8aba['DGhDK'])&&[_0x1e8aba[_0x2c118d(0x1b0)],_0x1e8aba['UDrDv'],_0x1e8aba[_0x2c118d(0x1af)]][_0x2c118d(0x219)](_0x4f1e82);if(!_0x2c6e98)logger[_0x2c118d(0x1b8)](_0x1e8aba[_0x2c118d(0x1bf)]),global[_0x2c118d(0x1c0)]=![];else!accessibilityHelper[_0x2c118d(0x1de)]()&&(logger[_0x2c118d(0x1b8)](accessibilityHelper[_0x2c118d(0x205)]),global[_0x2c118d(0x1c0)]=![]);}if(!global[_0x2c118d(0x1c0)]){_0x1457da[_0x1e8aba[_0x2c118d(0x211)]]=![],Object['keys'](_0x1457da)[_0x2c118d(0x1b2)](_0x3c2eb9=>{const _0xc4bfa0=_0x2c118d;_0x3c2eb9[_0xc4bfa0(0x1d6)](_0x1e8aba['ovrUn'])&&delete _0x1457da[_0x3c2eb9];});const _0x2f50f5=_0x1e8aba[_0x2c118d(0x202)](_0x10afbe,_0x1e8aba[_0x2c118d(0x1c5)](encodeURIComponent,JSON[_0x2c118d(0x1a3)](_0x1457da)));_0x2d7964&&(_0x2d7964['currentTest'][_0x2c118d(0x1fe)][_0x2c118d(0x1c4)][_0x2c118d(0x228)][_0x2c118d(0x201)]['wsEndpoint']=_0x2f50f5,_0x2d7964[_0x2c118d(0x1d4)][_0x2c118d(0x1c4)]['use'][_0x2c118d(0x201)]['wsEndpoint']=_0x2f50f5);}}else global['accessibilityPlatform']=![];}catch(_0x2aa919){logger['debug']('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x2c118d(0x203)](_0x2aa919));}};
1
+ const a38_0x231cc3=a38_0x2bdf;function a38_0x2bdf(_0x38506c,_0x1a1a2e){const _0x3b4a2f=a38_0x3b4a();return a38_0x2bdf=function(_0x2bdf1d,_0x3f3b72){_0x2bdf1d=_0x2bdf1d-0x1c2;let _0x3716a5=_0x3b4a2f[_0x2bdf1d];return _0x3716a5;},a38_0x2bdf(_0x38506c,_0x1a1a2e);}(function(_0x37ba89,_0x1f98c8){const _0x51f88a=a38_0x2bdf,_0x3f459d=_0x37ba89();while(!![]){try{const _0x52d2d7=parseInt(_0x51f88a(0x200))/0x1*(-parseInt(_0x51f88a(0x20c))/0x2)+-parseInt(_0x51f88a(0x1fb))/0x3+-parseInt(_0x51f88a(0x237))/0x4*(-parseInt(_0x51f88a(0x227))/0x5)+-parseInt(_0x51f88a(0x1ed))/0x6*(-parseInt(_0x51f88a(0x222))/0x7)+parseInt(_0x51f88a(0x1c9))/0x8*(-parseInt(_0x51f88a(0x23d))/0x9)+parseInt(_0x51f88a(0x225))/0xa+-parseInt(_0x51f88a(0x1d4))/0xb;if(_0x52d2d7===_0x1f98c8)break;else _0x3f459d['push'](_0x3f459d['shift']());}catch(_0x510314){_0x3f459d['push'](_0x3f459d['shift']());}}}(a38_0x3b4a,0x97839));const util=require(a38_0x231cc3(0x226)),logger=require(a38_0x231cc3(0x248))[a38_0x231cc3(0x1f8)],{automationLogger}=require(a38_0x231cc3(0x248)),{isAccessibilityAutomationSession}=require(a38_0x231cc3(0x23a)),{isUndefined,isBrowserstackInfra}=require(a38_0x231cc3(0x1c2)),scripts=require(a38_0x231cc3(0x202)),PerformanceTester=require(a38_0x231cc3(0x234)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require('../../helpers/accessibility-automation/helper'),{AUTOMATION_LOG_COMMANDS}=require(a38_0x231cc3(0x1d0));exports[a38_0x231cc3(0x233)]=async(_0x3e00b2,_0x19c2a6,_0x3731fb={})=>{const _0x3ac287=a38_0x231cc3,_0x352d98={};_0x352d98[_0x3ac287(0x21a)]=_0x3ac287(0x1cc),_0x352d98[_0x3ac287(0x1e5)]=function(_0x219e54,_0x3fdf2f){return _0x219e54===_0x3fdf2f;},_0x352d98[_0x3ac287(0x22f)]=_0x3ac287(0x1df);const _0x5d6fa1=_0x352d98,_0x1e5180=await _0x3e00b2[_0x3ac287(0x1d1)](_0x3ac287(0x1e1)+_0x19c2a6[_0x3ac287(0x23c)](/arguments/g,_0x5d6fa1[_0x3ac287(0x21a)])+_0x3ac287(0x1d8)+JSON[_0x3ac287(0x1fd)](_0x3731fb)+')');try{if(_0x19c2a6&&_0x5d6fa1[_0x3ac287(0x1e5)](typeof _0x19c2a6,_0x5d6fa1[_0x3ac287(0x22f)])){const _0x5e18c4=AUTOMATION_LOG_COMMANDS[_0x3ac287(0x1ee)](_0x250346=>_0x19c2a6[_0x3ac287(0x24d)](_0x250346));if(_0x5e18c4){const _0x117b2e={};_0x117b2e[_0x3ac287(0x21c)]=_0x5e18c4,_0x117b2e[_0x3ac287(0x1d5)]=[_0x3731fb];const _0x2a9ed3={};_0x2a9ed3[_0x3ac287(0x21e)]=_0x1e5180;const _0x4155b6={};_0x4155b6[_0x3ac287(0x238)]=_0x117b2e,_0x4155b6['response']=_0x2a9ed3,automationLogger[_0x3ac287(0x1fa)]('['+new Date()['toISOString']()+'][\x20SDK-AUTOMATION\x20]\x20'+JSON[_0x3ac287(0x1fd)](_0x4155b6));}}}catch(_0x2b46dd){logger[_0x3ac287(0x1c8)](_0x3ac287(0x205)+_0x2b46dd['message']);}return _0x1e5180;},exports[a38_0x231cc3(0x24a)]=async(_0x139543,_0xba0560,_0x2801fc={})=>{const _0x3bdb0e=a38_0x231cc3,_0x15f4fc={};_0x15f4fc[_0x3bdb0e(0x240)]=function(_0x4a14ef,_0x44f23a){return _0x4a14ef===_0x44f23a;},_0x15f4fc[_0x3bdb0e(0x207)]=_0x3bdb0e(0x1d7),_0x15f4fc[_0x3bdb0e(0x1f4)]=_0x3bdb0e(0x246),_0x15f4fc['LqPZc']=_0x3bdb0e(0x1cc);const _0x3cc46d=_0x15f4fc;if(_0x3cc46d[_0x3bdb0e(0x240)](_0x139543[_0x3bdb0e(0x24e)][_0x3bdb0e(0x1ea)],_0x3cc46d['Pcgyl']))return await _0x139543[_0x3bdb0e(0x1f2)](_0xba0560,_0x2801fc);else{if(_0x3cc46d['uQygS'](_0x139543[_0x3bdb0e(0x24e)][_0x3bdb0e(0x1ea)],_0x3cc46d[_0x3bdb0e(0x1f4)]))return await _0x139543[_0x3bdb0e(0x244)](_0x3bdb0e(0x236)+_0xba0560[_0x3bdb0e(0x23c)](/arguments/g,_0x3cc46d[_0x3bdb0e(0x211)])+_0x3bdb0e(0x219)+JSON[_0x3bdb0e(0x1fd)](_0x2801fc)+')');}},exports[a38_0x231cc3(0x228)]=async _0x4c2437=>{const _0x3c524d=a38_0x231cc3,_0xb3a1bb={};_0xb3a1bb[_0x3c524d(0x210)]='accessibilityOptions.wcagVersion',_0xb3a1bb['Jnqeb']=_0x3c524d(0x1e3),_0xb3a1bb[_0x3c524d(0x215)]=_0x3c524d(0x230),_0xb3a1bb['DnoyR']=_0x3c524d(0x231),_0xb3a1bb[_0x3c524d(0x1e8)]=_0x3c524d(0x1dc),_0xb3a1bb[_0x3c524d(0x20b)]=_0x3c524d(0x20e);const _0x4a1178=_0xb3a1bb;_0x4c2437[_0x3c524d(0x1c7)]&&(_0x4c2437[_0x3c524d(0x1c7)][_0x3c524d(0x1ff)]&&(_0x4c2437[_0x4a1178[_0x3c524d(0x210)]]=_0x4c2437[_0x3c524d(0x1c7)][_0x3c524d(0x1ff)]),_0x4c2437[_0x3c524d(0x1c7)][_0x3c524d(0x224)]&&(_0x4c2437[_0x4a1178[_0x3c524d(0x1e7)]]=_0x4c2437[_0x3c524d(0x1c7)]['scannerProcessingTimeout']),_0x4c2437[_0x3c524d(0x1c7)]['includeIssueType']&&(_0x4c2437[_0x4a1178[_0x3c524d(0x215)]]=_0x4c2437['accessibilityOptions'][_0x3c524d(0x22d)]['bestPractice'],_0x4c2437[_0x4a1178[_0x3c524d(0x201)]]=_0x4c2437['accessibilityOptions'][_0x3c524d(0x22d)][_0x3c524d(0x20d)]));const _0x519165=JSON['parse'](process[_0x3c524d(0x239)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x3c524d(0x209)];_0x4c2437[_0x4a1178[_0x3c524d(0x1e8)]]=process[_0x3c524d(0x239)][_0x3c524d(0x23f)],_0x4c2437[_0x4a1178['wJggE']]=_0x519165,delete _0x4c2437[_0x3c524d(0x1c7)];},exports[a38_0x231cc3(0x24c)]=async _0x21b137=>{const _0x39d092=a38_0x231cc3,_0x5990ea={};_0x5990ea[_0x39d092(0x1ec)]='No\x20accessibility\x20results\x20were\x20found.',_0x5990ea[_0x39d092(0x1f3)]=_0x39d092(0x212);const _0x59718b=_0x5990ea;if(global[_0x39d092(0x22e)])try{const details={'url':await _0x21b137.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(_0x21b137,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x21b137,scripts.getResults,mobileArgs);},{...details})();return res;}catch{return logger[_0x39d092(0x22c)](_0x59718b[_0x39d092(0x1ec)]),[];}else return logger['warn'](_0x59718b[_0x39d092(0x1f3)]),[];},exports['performScan']=async(_0x17c534,_0x26aa0e='',_0x3775dc={},_0x2e216c={})=>{const _0x584f55=a38_0x231cc3;logger[_0x584f55(0x1c8)]('Performing\x20scan\x20with\x20method:\x20'+_0x26aa0e+_0x584f55(0x206)+_0x17c534);const _0xa8bd15={'url':await _0x17c534[_0x584f55(0x213)](),'testhub_btcer_uuid':global[_0x584f55(0x23e)]?.[_0x584f55(0x216)]?.['id']};if(global[_0x584f55(0x22e)])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x27725d=_0x584f55,_0x13760d={};_0x13760d['command']=_0x26aa0e;const _0x3abbb5=_0x13760d;_0x3775dc&&_0x3775dc[_0x27725d(0x232)]&&(_0x3abbb5['includePartOfPageScope']=_0x3775dc[_0x27725d(0x232)]);Object['assign'](_0x3abbb5,_0x2e216c);const _0x337bdc=await exports[_0x27725d(0x233)](_0x17c534,scripts[_0x27725d(0x235)],_0x3abbb5);return _0x337bdc;},{'command':_0x26aa0e,..._0xa8bd15})();},exports[a38_0x231cc3(0x24b)]=async _0xe8121=>{const _0x195b53=a38_0x231cc3,_0x175ec2={};_0x175ec2[_0x195b53(0x20a)]=_0x195b53(0x1e4),_0x175ec2[_0x195b53(0x1f7)]=_0x195b53(0x20f);const _0x3f957a=_0x175ec2;if(global['accessibilityPlatform'])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0xe8121,scripts.performScan,mobileArgs)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0xe8121,scripts.getResultsSummary,mobileArgs);})();return summaryResults;}catch{return logger[_0x195b53(0x1c8)](_0x3f957a['Ghlsj']),{};}else return logger['warn'](_0x3f957a[_0x195b53(0x1f7)]),{};},exports[a38_0x231cc3(0x217)]=_0x17bd3c=>{const _0x59a2a5=a38_0x231cc3,_0x16a7db={'TAcio':_0x59a2a5(0x1f1),'zwGij':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','ZhuLR':function(_0x10e995,_0x11eb6b){return _0x10e995!==_0x11eb6b;},'GWfsh':_0x59a2a5(0x1db),'QRicO':function(_0x51f413){return _0x51f413();},'TIofr':_0x59a2a5(0x223)};try{if(global[_0x59a2a5(0x1f5)])return logger[_0x59a2a5(0x1c8)](_0x16a7db[_0x59a2a5(0x204)]),!![];const _0x4fa073=_0x17bd3c['browser'],_0x3b0f55=_0x17bd3c[_0x59a2a5(0x208)];if(!accessibilityHelper[_0x59a2a5(0x1da)](_0x4fa073))return logger[_0x59a2a5(0x1ca)](_0x16a7db[_0x59a2a5(0x1c5)]),![];if(_0x16a7db[_0x59a2a5(0x243)](_0x3b0f55,_0x16a7db[_0x59a2a5(0x21b)])){const _0x208c84=_0x16a7db[_0x59a2a5(0x1d2)](isBrowserstackInfra),_0x373521=accessibilityHelper[_0x59a2a5(0x1cb)](_0x4fa073,_0x208c84),_0x27bd0d=accessibilityHelper[_0x59a2a5(0x1de)](_0x4fa073);if(!accessibilityHelper['isVersionSupported'](_0x3b0f55,_0x373521)){const _0x8433d3=_0x208c84?'':_0x16a7db['TIofr'];return logger[_0x59a2a5(0x1ca)](_0x59a2a5(0x1ef)+_0x27bd0d+_0x59a2a5(0x1c4)+_0x373521+_0x59a2a5(0x1e2)+_0x8433d3+'.'),![];}}}catch(_0x496739){logger[_0x59a2a5(0x1c8)](_0x59a2a5(0x1cf)+util[_0x59a2a5(0x22a)](_0x496739));}return!![];},exports[a38_0x231cc3(0x214)]=(_0x2ae511,_0x1e9232,_0x3c24b2)=>{const _0x37e27=a38_0x231cc3,_0x28794c={'JRfNI':'browserstack.accessibilityOptions','DsCFh':function(_0x35e601){return _0x35e601();},'DxUQi':_0x37e27(0x1dd),'WZGnG':_0x37e27(0x249),'JdiMy':function(_0xb362eb,_0x3aa1bc){return _0xb362eb!==_0x3aa1bc;},'JeRId':_0x37e27(0x1db),'NkQbT':function(_0x368136){return _0x368136();},'VKpGU':'on\x20non-BrowserStack\x20infrastructure\x20','wNnIG':function(_0x1e8be4,_0x613a62){return _0x1e8be4(_0x613a62);},'QHXOB':function(_0x4cc630,_0x1bdd5e){return _0x4cc630===_0x1bdd5e;},'SfTrq':_0x37e27(0x23b),'jYjEt':_0x37e27(0x241),'czNjT':'playwright-chromium','Autcu':_0x37e27(0x218),'QfHbV':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','kEDTK':function(_0x13329,_0x5087e6){return _0x13329+_0x5087e6;},'ljHNm':function(_0x269cfa,_0x33cb74){return _0x269cfa(_0x33cb74);}};try{if(_0x28794c[_0x37e27(0x1e6)](isAccessibilityAutomationSession)){global[_0x37e27(0x22e)]=!![];!_0x2ae511[_0x28794c[_0x37e27(0x1f6)]]&&(global['accessibilityPlatform']=![]);const _0x544631=_0x2ae511['browserName']||_0x2ae511[_0x37e27(0x1d9)],_0x373b32=_0x2ae511[_0x37e27(0x208)];!accessibilityHelper['isBrowserSupportedForAccessibility'](_0x544631)&&(logger[_0x37e27(0x1ca)](_0x28794c[_0x37e27(0x1d6)]),global[_0x37e27(0x22e)]=![]);if(_0x28794c['JdiMy'](_0x373b32,_0x28794c[_0x37e27(0x1f9)])){const _0x3f8f25=_0x28794c['NkQbT'](isBrowserstackInfra),_0x599008=accessibilityHelper['getMinVersionForBrowser'](_0x544631,_0x3f8f25),_0x36597c=accessibilityHelper[_0x37e27(0x1de)](_0x544631);if(!accessibilityHelper[_0x37e27(0x220)](_0x373b32,_0x599008)){const _0x3862cf=_0x3f8f25?'':_0x28794c[_0x37e27(0x245)];logger[_0x37e27(0x1ca)](_0x37e27(0x1ef)+_0x36597c+_0x37e27(0x1c4)+_0x599008+_0x37e27(0x1e2)+_0x3862cf+'.'),global[_0x37e27(0x22e)]=![];}}if(!_0x28794c[_0x37e27(0x1fc)](isUndefined,_0x2ae511['deviceName'])){const _0x4ffbf8=(_0x2ae511['os']||'')[_0x37e27(0x21f)](),_0x43af21=(_0x2ae511[_0x37e27(0x203)]||_0x2ae511['browser']||'')[_0x37e27(0x21f)](),_0xadbb1e=_0x28794c[_0x37e27(0x221)](_0x4ffbf8,_0x28794c[_0x37e27(0x1f0)])&&[_0x28794c['jYjEt'],_0x28794c[_0x37e27(0x1e9)],_0x28794c[_0x37e27(0x229)]][_0x37e27(0x24d)](_0x43af21);if(!_0xadbb1e)logger['warn'](_0x28794c[_0x37e27(0x21d)]),global[_0x37e27(0x22e)]=![];else!accessibilityHelper[_0x37e27(0x1d3)]()&&(logger[_0x37e27(0x1ca)](accessibilityHelper['MOBILE_SCANNING_DISABLED_WARNING']),global['accessibilityPlatform']=![]);}if(!global['accessibilityPlatform']){_0x2ae511[_0x28794c[_0x37e27(0x1f6)]]=![],Object[_0x37e27(0x22b)](_0x2ae511)[_0x37e27(0x1ce)](_0x123d3b=>{const _0x71be1=_0x37e27;_0x123d3b[_0x71be1(0x242)](_0x28794c[_0x71be1(0x247)])&&delete _0x2ae511[_0x123d3b];});const _0x40cfd1=_0x28794c['kEDTK'](_0x1e9232,_0x28794c[_0x37e27(0x1fe)](encodeURIComponent,JSON[_0x37e27(0x1fd)](_0x2ae511)));_0x3c24b2&&(_0x3c24b2['currentTest'][_0x37e27(0x1eb)]['project']['use']['connectOptions'][_0x37e27(0x1c6)]=_0x40cfd1,_0x3c24b2[_0x37e27(0x1cd)][_0x37e27(0x1e0)]['use']['connectOptions'][_0x37e27(0x1c6)]=_0x40cfd1);}}else global[_0x37e27(0x22e)]=![];}catch(_0x1f94f0){logger['debug'](_0x37e27(0x1c3)+util['format'](_0x1f94f0));}};function a38_0x3b4a(){const _0x309816=['android','replace','1257264nGBAPt','__workerDetails','BS_A11Y_JWT','uQygS','chrome','startsWith','ZhuLR','executeScript','VKpGU','Playwright','JRfNI','../../helpers/logger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','browserStackExecuteDriver','getAccessibilityResultsSummary','getAccessibilityResults','includes','constructor','../../helpers/helper','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','\x20browser\x20version\x20','zwGij','wsEndpoint','accessibilityOptions','debug','56zKoBDj','warn','getMinVersionForBrowser','bstackSdkArgs','workerInfo','forEach','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','../utils/constants','evaluate','QRicO','isMobileScanningEnabledForGroup','2705164FFZfco','parameters','WZGnG','WebDriver','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','browser','isBrowserSupportedForAccessibility','latest','accessibilityOptions.authToken','browserstack.accessibility','getBrowserDisplayName','string','project','(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','\x20or\x20higher\x20','accessibilityOptions.scannerProcessingTimeout','No\x20summaryResults\x20found.','gWYJU','DsCFh','Jnqeb','zzudF','czNjT','name','testInfo','CIxqO','2778VnOkSW','find','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','SfTrq','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','executeAsyncScript','VWAXP','nQCtV','isMobilePlatform','DxUQi','RigGR','winstonLogger','JeRId','silly','1650768etGuBc','wNnIG','stringify','ljHNm','wcagVersion','2XprJcO','DnoyR','../../helpers/accessibility-automation/scripts','browserName','TAcio','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','\x20page:\x20','Pcgyl','browser_version','scannerVersion','Ghlsj','wJggE','809358XVjdJk','needsReview','accessibilityOptions.scannerVersion','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','tURjy','LqPZc','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','url','processAccessibilityCaps','FgzxB','currentTest','platformValidation','chromium','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','uesQP','GWfsh','command','QfHbV','body','toLowerCase','isVersionSupported','QHXOB','17241iHXmFD','on\x20non-BrowserStack\x20infrastructure\x20','scannerProcessingTimeout','9023400NxBugS','util','17230tmTRPf','setAccessibilityCapabilities','Autcu','format','keys','error','includeIssueType','accessibilityPlatform','uGHDQ','accessibilityOptions.includeIssueType.bestPractice','accessibilityOptions.includeIssueType.needsReview','includePartOfPageScope','browserStackEvaluate','../../helpers/performance/performance-tester','performScan','(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','1348OQrpee','request','env','../../helpers/accessibility-automation/helper'];a38_0x3b4a=function(){return _0x309816;};return a38_0x3b4a();}
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a39_0x1ae69a=a39_0x557a;function a39_0x557a(_0x4b21d2,_0x1678a6){const _0xd48079=a39_0xd480();return a39_0x557a=function(_0x557aad,_0x1c1332){_0x557aad=_0x557aad-0xb7;let _0x147d76=_0xd48079[_0x557aad];return _0x147d76;},a39_0x557a(_0x4b21d2,_0x1678a6);}(function(_0x30accb,_0xc0544){const _0x2ea3ca=a39_0x557a,_0x31e9e1=_0x30accb();while(!![]){try{const _0x14451b=-parseInt(_0x2ea3ca(0x173))/0x1+-parseInt(_0x2ea3ca(0xf5))/0x2+parseInt(_0x2ea3ca(0x103))/0x3*(-parseInt(_0x2ea3ca(0x168))/0x4)+-parseInt(_0x2ea3ca(0x17e))/0x5*(-parseInt(_0x2ea3ca(0xfb))/0x6)+-parseInt(_0x2ea3ca(0xf7))/0x7+-parseInt(_0x2ea3ca(0xfe))/0x8*(parseInt(_0x2ea3ca(0x14e))/0x9)+parseInt(_0x2ea3ca(0x120))/0xa;if(_0x14451b===_0xc0544)break;else _0x31e9e1['push'](_0x31e9e1['shift']());}catch(_0x2ac791){_0x31e9e1['push'](_0x31e9e1['shift']());}}}(a39_0xd480,0x2d67d));const fs=require('fs'),path=require(a39_0x1ae69a(0x10e)),{spawn}=require(a39_0x1ae69a(0xde)),{format}=require(a39_0x1ae69a(0x11b)),logger=require(a39_0x1ae69a(0xfa))['winstonLogger'],{default:BrowserStackSetup}=require(a39_0x1ae69a(0x15a)),helper=require('../../helpers/helper'),utilities=require(a39_0x1ae69a(0xc7)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a39_0x1ae69a(0x10d)),{getConfigLoaderPath}=require(a39_0x1ae69a(0x115)),{checkAccessibilityPlatformConfig}=require(a39_0x1ae69a(0x172)),{setAccessibilityCapabilities}=require(a39_0x1ae69a(0x12e)),{printBuildLink}=require(a39_0x1ae69a(0x12f)),TestDetails=require(a39_0x1ae69a(0x179)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a39_0x1ae69a(0x141)),BrowserstackCLI=require(a39_0x1ae69a(0xce)),PerformanceEvents=require(a39_0x1ae69a(0x10f))[a39_0x1ae69a(0xc4)],CLIUtils=require(a39_0x1ae69a(0x160)),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require(a39_0x1ae69a(0x16d)),getUserPlaywrightConfig=async(_0x4db577,_0x478d12)=>{const _0x21d56f=a39_0x1ae69a,_0x36aaff={'KRekP':function(_0x292cbe){return _0x292cbe();},'gfrTt':function(_0x3f0b5f){return _0x3f0b5f();},'XPeRw':function(_0xa965ca,_0x49cf84){return _0xa965ca(_0x49cf84);},'DmgpS':function(_0x558cd4,_0x3ea54){return _0x558cd4(_0x3ea54);},'OEQYK':_0x21d56f(0x17a),'fYThW':'--config='},_0x4eb835=!helper['isUndefined'](_0x4db577[_0x21d56f(0x133)]),_0x3a5fc4=_0x4eb835?path[_0x21d56f(0x106)](process[_0x21d56f(0xd6)](),_0x4db577[_0x21d56f(0x133)]):process[_0x21d56f(0xd6)](),{resolveConfigFile:_0x140f1d,resolveConfigLocation:_0x36b59f}=helper['isYarnPnP']()?helper[_0x21d56f(0xed)](..._0x36aaff[_0x21d56f(0x140)](getConfigLoaderPath)):helper[_0x21d56f(0x10a)][_0x21d56f(0x135)](null,_0x36aaff[_0x21d56f(0x150)](getConfigLoaderPath)),_0x5c2bb4=_0x140f1d?_0x36aaff['XPeRw'](_0x140f1d,_0x3a5fc4):helper[_0x21d56f(0x13a)](_0x36aaff[_0x21d56f(0x13c)](_0x36b59f,_0x3a5fc4),[_0x36aaff['OEQYK']]),_0x408af3={};if(_0x4eb835){const _0x553017=_0x478d12[_0x21d56f(0xef)](_0x3e5b44=>_0x3e5b44==='--config'||_0x3e5b44==='-c'||_0x3e5b44[_0x21d56f(0x165)](_0x21d56f(0x169)));_0x478d12['splice'](_0x553017,_0x478d12[_0x553017][_0x21d56f(0x165)](_0x36aaff[_0x21d56f(0x16f)])?0x1:0x2);}const _0x1a5aaa={};return _0x1a5aaa[_0x21d56f(0x10e)]=_0x5c2bb4,_0x1a5aaa[_0x21d56f(0x133)]=_0x408af3,_0x1a5aaa;},handleO11yRerun=_0x267289=>{const _0x282f5e=a39_0x1ae69a,_0x3819a3={};_0x3819a3['pynCn']=_0x282f5e(0x144);const _0x2c3ed1=_0x3819a3,_0x24adb5=helper['isTrue'](process[_0x282f5e(0x11d)][_0x282f5e(0xf4)]);if(_0x24adb5){const _0x4da7ed=process[_0x282f5e(0x11d)][_0x282f5e(0xe5)],_0x4f0cea=[];if(helper[_0x282f5e(0x146)](_0x4da7ed)&&!helper[_0x282f5e(0xd3)](_0x4da7ed)){_0x4da7ed['split'](',')[_0x282f5e(0xdf)](_0x518333=>{const _0x5c5c93=_0x282f5e;_0x4f0cea['push']('('+_0x518333[_0x5c5c93(0xbf)]()+')');});const _0x23cac1='^'+_0x4f0cea['join']('|')+'$';_0x267289['push'](_0x2c3ed1['pynCn'],_0x23cac1);}}},spawnOriginalProcess=_0xe5c955=>{const _0x5ad218=a39_0x1ae69a,_0x10b6fd={'JHmng':function(_0x4333a3,_0x33ca32,_0x30af67,_0x370cc1){return _0x4333a3(_0x33ca32,_0x30af67,_0x370cc1);},'ZdGZb':_0x5ad218(0x153),'RKGFh':_0x5ad218(0x163),'FKFnu':'playwright','pzXay':function(_0x2d2b4e,_0x3f68a4){return _0x2d2b4e===_0x3f68a4;},'wtZHq':_0x5ad218(0x12c),'sGMYT':_0x5ad218(0xc0)};_0x10b6fd[_0x5ad218(0x117)](spawn,helper[_0x5ad218(0x156)]()?_0x10b6fd[_0x5ad218(0x11c)]:_0x10b6fd[_0x5ad218(0x132)],[_0x10b6fd[_0x5ad218(0x15e)],..._0xe5c955[_0x5ad218(0x177)](0x1)],{'shell':_0x10b6fd['pzXay'](process[_0x5ad218(0x15f)],_0x10b6fd[_0x5ad218(0xd7)]),'stdio':_0x10b6fd[_0x5ad218(0x166)],'cwd':process[_0x5ad218(0xd6)]()});},isTestCommand=(_0x3ba155,_0x24f9c9)=>{const _0x1200b1=a39_0x1ae69a,_0x4bfa64={};_0x4bfa64[_0x1200b1(0x14b)]=function(_0x363f51,_0x3f5cec){return _0x363f51>_0x3f5cec;},_0x4bfa64[_0x1200b1(0x12b)]=function(_0x4cb065,_0x48bbfe){return _0x4cb065===_0x48bbfe;},_0x4bfa64[_0x1200b1(0xdc)]=_0x1200b1(0xc2);const _0x5db72c=_0x4bfa64;if(_0x5db72c['pynvT'](_0x24f9c9[_0x1200b1(0x152)],0x1)&&_0x5db72c[_0x1200b1(0x12b)](_0x24f9c9[0x1],_0x5db72c[_0x1200b1(0xdc)]))return!![];return![];};async function run(_0x2a550d,_0x37b688,_0x34940e){const _0x5d95d7=a39_0x1ae69a,_0xc63316={'LRjBa':function(_0xcf0f29,_0x1bfce0){return _0xcf0f29(_0x1bfce0);},'nuHHg':_0x5d95d7(0x105),'nIizr':_0x5d95d7(0x134),'cSTuZ':function(_0x1ebffb,_0x415896){return _0x1ebffb+_0x415896;},'LIRsW':_0x5d95d7(0xe0),'XcTZg':function(_0x10d464){return _0x10d464();},'IyhPs':function(_0x320ded){return _0x320ded();},'PJPMi':function(_0x253c17,_0x4c53e8){return _0x253c17+_0x4c53e8;},'PSmdA':_0x5d95d7(0x14d),'jafRw':_0x5d95d7(0x16e),'ehjJv':function(_0x49e336,_0x12ca69){return _0x49e336<_0x12ca69;},'pDdMF':function(_0x1fe3b3,_0xa93881){return _0x1fe3b3===_0xa93881;},'AtMTF':_0x5d95d7(0x174),'HKstr':_0x5d95d7(0x149),'WubOb':function(_0x4c5080,_0x60b13e){return _0x4c5080>=_0x60b13e;},'gIAQg':_0x5d95d7(0xe1),'feBzs':function(_0x3e19d8,_0x36a0d5){return _0x3e19d8!=_0x36a0d5;},'ktPgN':function(_0x56781b,_0x323956,_0x2b3f77){return _0x56781b(_0x323956,_0x2b3f77);},'voBJU':function(_0x2d14dd,_0xfb7b17){return _0x2d14dd(_0xfb7b17);},'Xtgqr':_0x5d95d7(0x119),'OMYRg':_0x5d95d7(0x113),'aAnmQ':'playwright-browserstack-sdk.config.cjs','awoJk':_0x5d95d7(0x125),'nmGPJ':function(_0x48b7e3,_0x4457c1){return _0x48b7e3-_0x4457c1;},'vyxNB':function(_0x2ee5d9,_0x4606e2){return _0x2ee5d9+_0x4606e2;},'gHLhW':_0x5d95d7(0x142),'DvmOA':function(_0x2dc144,_0x590117){return _0x2dc144>_0x590117;},'IlopY':function(_0x401209,_0x474b13){return _0x401209+_0x474b13;},'HLmtS':function(_0x21cca1,_0x9bcc08,_0x110053,_0x2571e1){return _0x21cca1(_0x9bcc08,_0x110053,_0x2571e1);},'HTBXI':'yarn','MbjjE':_0x5d95d7(0x163),'JpRgZ':'playwright','FOqeo':'test','rrhES':_0x5d95d7(0x151),'NoUIB':_0x5d95d7(0x12c),'ofByz':_0x5d95d7(0xc0),'xvgus':_0x5d95d7(0xc6),'JJdzz':function(_0x5b38fd,_0x17739b){return _0x5b38fd|_0x17739b;},'CUfwq':_0x5d95d7(0xfc),'JPIwl':_0x5d95d7(0xe6)};try{const _0x4f0057=path[_0x5d95d7(0x162)](helper[_0x5d95d7(0xc3)](),_0xc63316[_0x5d95d7(0x12d)]);try{fs[_0x5d95d7(0xc1)](_0x4f0057,_0xc63316[_0x5d95d7(0x124)](fs['constants'][_0x5d95d7(0xcc)],fs[_0x5d95d7(0x137)][_0x5d95d7(0x14c)]));}catch(_0x18073e){ClientTroubleShootingService[_0x5d95d7(0x107)]();}}catch(_0x3689b1){logger[_0x5d95d7(0x13f)](_0xc63316[_0x5d95d7(0xb7)](_0xc63316[_0x5d95d7(0xb9)],_0x3689b1));}try{const _0x89978c=path[_0x5d95d7(0x162)](helper['homedir'](),_0xc63316['nuHHg'],_0xc63316[_0x5d95d7(0xea)]);fs['existsSync'](_0x89978c)&&fs[_0x5d95d7(0xbd)](_0x89978c);}catch(_0x2c3843){logger[_0x5d95d7(0x13f)](_0xc63316[_0x5d95d7(0xe3)](_0xc63316[_0x5d95d7(0x116)],_0x2c3843));}if(!_0xc63316[_0x5d95d7(0xc9)](isTestCommand,_0x2a550d,_0x37b688)){_0xc63316[_0x5d95d7(0xe8)](spawnOriginalProcess,_0x37b688);return;}await PerformanceTester['measureWrapper'](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x1f02e1=_0x5d95d7,_0x43af23={'zBGNv':function(_0x2776e2,_0x2b3d41){const _0x2da84a=a39_0x557a;return _0xc63316[_0x2da84a(0x108)](_0x2776e2,_0x2b3d41);},'Rasaf':_0xc63316[_0x1f02e1(0x12d)],'xnZKM':_0xc63316[_0x1f02e1(0xea)],'gkNFD':function(_0x2ee3c8,_0x28fd9c){const _0x21711d=_0x1f02e1;return _0xc63316[_0x21711d(0xb7)](_0x2ee3c8,_0x28fd9c);},'qPlrF':_0xc63316['LIRsW'],'UtZCv':function(_0x5a11b8){return _0xc63316['XcTZg'](_0x5a11b8);},'NXQPs':function(_0x25ea94){const _0x44f10f=_0x1f02e1;return _0xc63316[_0x44f10f(0xb8)](_0x25ea94);},'uEmTB':function(_0xa0764e,_0x241817){const _0x47cd98=_0x1f02e1;return _0xc63316[_0x47cd98(0xe3)](_0xa0764e,_0x241817);},'fCSBg':_0xc63316['PSmdA']};if(!_0x34940e['config']){logger[_0x1f02e1(0x138)](_0xc63316[_0x1f02e1(0x123)]);return;}await _0x34940e[_0x1f02e1(0x126)](_0x2a550d),CLIUtils['setFrameworkDetail'](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x1f02e1(0x14f)]),BrowserstackCLI['getInstance']()[_0x1f02e1(0x178)](_0x34940e['config'],_0x34940e[_0x1f02e1(0x139)],_0x34940e[_0x1f02e1(0xd8)]),await BrowserstackCLI[_0x1f02e1(0xf1)]()['bootstrap']();for(var _0x30ec18=0x0;_0xc63316[_0x1f02e1(0xfd)](_0x30ec18,constants['INTERNALLY_USED_ENV_VARS'][_0x1f02e1(0x152)]);_0x30ec18++){var _0x3cc2ad=constants[_0x1f02e1(0x158)][_0x30ec18];process[_0x1f02e1(0x11d)][_0x3cc2ad]&&await ClientTroubleShootingService[_0x1f02e1(0x159)](_0x3cc2ad);}const _0x3f4afe=BrowserstackCLI[_0x1f02e1(0xf1)]()[_0x1f02e1(0x16b)]();!helper[_0x1f02e1(0xdb)](_0x3f4afe[_0x1f02e1(0x128)])&&(process[_0x1f02e1(0x11d)][_0x1f02e1(0x101)]=!![]);_0xc63316[_0x1f02e1(0xe2)](_0x3f4afe[_0x1f02e1(0x128)],![])&&(process[_0x1f02e1(0x11d)][_0x1f02e1(0x101)]=_0xc63316[_0x1f02e1(0x145)],_0x37b688=_0x37b688[_0x1f02e1(0xdd)](_0x1aaf8f=>_0x1aaf8f!==_0x1f02e1(0xd9)));const _0x373a68=_0x37b688[_0x1f02e1(0x109)](_0xc63316[_0x1f02e1(0x176)]);(_0xc63316[_0x1f02e1(0xba)](_0x373a68,0x0)||_0xc63316[_0x1f02e1(0xe2)](_0x3f4afe[_0x1f02e1(0x111)],![]))&&(process['env'][_0x1f02e1(0x164)]=_0xc63316['AtMTF'],_0x37b688=_0x37b688['filter'](_0x5b6d5d=>_0x5b6d5d!==_0x1f02e1(0x149)));!helper[_0x1f02e1(0xd3)](_0x34940e[_0x1f02e1(0xd8)])&&_0x34940e[_0x1f02e1(0xd8)][_0x1f02e1(0xee)](_0xc63316[_0x1f02e1(0x12a)])&&(process['env'][_0x1f02e1(0x101)]=_0x34940e[_0x1f02e1(0xd8)]['get'](_0xc63316['gIAQg'])||!![]);_0xc63316[_0x1f02e1(0xbe)](_0x34940e[_0x1f02e1(0x133)][_0x1f02e1(0x111)],null)&&!helper['isTrue'](process[_0x1f02e1(0x11d)][_0x1f02e1(0x164)])&&(process[_0x1f02e1(0x11d)][_0x1f02e1(0x164)]=process[_0x1f02e1(0x11d)][_0x1f02e1(0x164)]||_0x34940e[_0x1f02e1(0x133)][_0x1f02e1(0x111)]);const _0x13a854=!helper[_0x1f02e1(0xdb)](process[_0x1f02e1(0x11d)][_0x1f02e1(0x164)]);_0x34940e['config'][_0x1f02e1(0xf6)]&&(process[_0x1f02e1(0x11d)][_0x1f02e1(0x100)]=JSON[_0x1f02e1(0xe4)](_0x34940e[_0x1f02e1(0x133)][_0x1f02e1(0xf6)]));let _0xe2c53a=![];_0x34940e[_0x1f02e1(0x133)][_0x1f02e1(0x16a)]&&(_0xe2c53a=!![],process[_0x1f02e1(0x11d)][_0x1f02e1(0xf0)]=_0x34940e[_0x1f02e1(0x133)]['accessibility']);const _0x16a248=_0x37b688[_0x1f02e1(0x16c)](),_0x5a8bc6=await _0xc63316['ktPgN'](getUserPlaywrightConfig,_0x2a550d,_0x37b688);if(helper[_0x1f02e1(0xd3)](_0x5a8bc6)){_0xc63316[_0x1f02e1(0xe8)](spawnOriginalProcess,_0x16a248);return;}const _0x19df5f=_0x5a8bc6[_0x1f02e1(0x10e)]?path['dirname'](_0x5a8bc6[_0x1f02e1(0x10e)]):process[_0x1f02e1(0xd6)]();process['env']['BROWSERSTACK_PW_CONFIG_DIR']=_0x19df5f,await PerformanceTester[_0x1f02e1(0xcf)](PerformanceEvents[_0x1f02e1(0xd2)],async()=>{const _0x2fe0db=_0x1f02e1;!BrowserstackCLI[_0x2fe0db(0xf1)]()[_0x2fe0db(0x154)]()&&await TestHubHandler[_0x2fe0db(0xf3)](FRAMEWORKS['PLAYWRIGHT'],_0x34940e),_0x13a854&&_0x43af23['zBGNv'](handleO11yRerun,_0x37b688);})();if(!BrowserstackCLI['getInstance']()[_0x1f02e1(0x154)]()){let _0x2dff4a=_0xc63316[_0x1f02e1(0xe2)](process[_0x1f02e1(0x11d)][_0x1f02e1(0xf0)],_0xc63316[_0x1f02e1(0xc8)]);_0x2dff4a=_0x2dff4a||_0xc63316[_0x1f02e1(0x108)](checkAccessibilityPlatformConfig,_0x34940e[_0x1f02e1(0x133)]),process['env'][_0x1f02e1(0xf0)]=_0x2dff4a,_0x2dff4a&&_0xc63316['voBJU'](setAccessibilityCapabilities,_0x34940e['config']);}const _0xe877d1=path[_0x1f02e1(0x162)](_0x5a8bc6[_0x1f02e1(0x10e)]?path[_0x1f02e1(0xec)](_0x5a8bc6[_0x1f02e1(0x10e)]):process[_0x1f02e1(0xd6)](),_0xc63316[_0x1f02e1(0x118)]);fs[_0x1f02e1(0x10b)](_0xe877d1,helper[_0x1f02e1(0xf9)](_0x34940e[_0x1f02e1(0x133)])),process[_0x1f02e1(0x11d)][_0x1f02e1(0x17c)]=_0xe877d1,helper[_0x1f02e1(0x13d)]();let _0x46951f='';_0xc63316['pDdMF'](helper[_0x1f02e1(0x130)](),constants[_0x1f02e1(0x122)][_0x1f02e1(0xf2)])?_0x46951f=_0xc63316[_0x1f02e1(0x127)]:_0x46951f=_0xc63316[_0x1f02e1(0x161)];let _0x12fb22='';if(helper[_0x1f02e1(0xda)](_0x5a8bc6[_0x1f02e1(0x10e)])){_0x12fb22=_0x1f02e1(0x157);const _0x255867=_0x46951f['split']('.');_0x255867[_0xc63316[_0x1f02e1(0x131)](_0x255867[_0x1f02e1(0x152)],0x1)]='ts',_0x46951f=_0x255867[_0x1f02e1(0x162)]('.'),logger[_0x1f02e1(0x13f)](_0xc63316[_0x1f02e1(0x167)](_0xc63316[_0x1f02e1(0xd4)],_0x46951f));}else _0x12fb22=_0x1f02e1(0x143);const _0xf707cb=path[_0x1f02e1(0x162)](_0x5a8bc6[_0x1f02e1(0x10e)]?path[_0x1f02e1(0xec)](_0x5a8bc6['path']):process[_0x1f02e1(0xd6)](),_0x46951f);let _0x25e3fc=_0x5a8bc6[_0x1f02e1(0x10e)]?_0x5a8bc6[_0x1f02e1(0x10e)]:'';_0x25e3fc=_0xc63316['DvmOA'](_0x25e3fc[_0x1f02e1(0x152)],0x0)?path['resolve'](_0x25e3fc):'',process['env']['USER_CONFIG_DETAILS_PATH']=_0x25e3fc;const _0x2f0e7f=helper[_0x1f02e1(0x14a)](_0x34940e['config']),_0x4e1dea=helper[_0x1f02e1(0x175)](_0x34940e[_0x1f02e1(0x133)]);logger['debug'](_0x1f02e1(0x15d)+_0x2f0e7f),logger[_0x1f02e1(0x13f)](_0x1f02e1(0xff)+_0x4e1dea);_0x2f0e7f&&(_0x12fb22=_0xc63316['IlopY'](_0x1f02e1(0xcd)+_0x2f0e7f+'\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'+_0x4e1dea+_0x1f02e1(0x110),_0x12fb22));helper[_0x1f02e1(0x15c)]({},_0x37b688),fs[_0x1f02e1(0x10b)](_0xf707cb,_0x12fb22),PerformanceTester['end'](PerformanceEvents[_0x1f02e1(0xe7)]);const _0xdd09c8=_0xc63316['HLmtS'](spawn,helper['isYarnPnP']()?_0xc63316['HTBXI']:_0xc63316['MbjjE'],[_0xc63316[_0x1f02e1(0x15b)],_0xc63316[_0x1f02e1(0xbc)],_0xc63316[_0x1f02e1(0x136)],_0xc63316[_0x1f02e1(0xe2)](process[_0x1f02e1(0x15f)],_0xc63316[_0x1f02e1(0x148)])?'\x22'+_0xf707cb+'\x22':_0xf707cb,..._0x37b688[_0x1f02e1(0x177)](0x2)],{'shell':_0xc63316[_0x1f02e1(0xe2)](process[_0x1f02e1(0x15f)],_0xc63316[_0x1f02e1(0x148)]),'stdio':_0xc63316[_0x1f02e1(0x114)],'cwd':process['cwd'](),'env':Object['assign']({},process[_0x1f02e1(0x11d)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x1f02e1(0x17b)](_0x2a550d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x34940e[_0x1f02e1(0x133)][_0x1f02e1(0xe9)][_0x1f02e1(0x129)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x34940e['config'][_0x1f02e1(0xe9)][_0x1f02e1(0xd5)],'BROWSERSTACK_LOG_LEVEL':_0x34940e[_0x1f02e1(0x133)][_0x1f02e1(0xcb)]})}),_0x44227b=()=>{const _0x32cc8f=_0x1f02e1;try{const _0x575cc5=path[_0x32cc8f(0x162)](helper[_0x32cc8f(0xc3)](),_0x43af23['Rasaf'],_0x43af23[_0x32cc8f(0x17d)]);if(fs[_0x32cc8f(0x17f)](_0x575cc5)){let _0x519c49=fs['readFileSync'](_0x575cc5);_0x519c49=JSON[_0x32cc8f(0x102)](_0x519c49),_0x34940e[_0x32cc8f(0x170)]=_0x519c49,fs[_0x32cc8f(0xbd)](_0x575cc5);}}catch(_0x2c1d90){logger[_0x32cc8f(0x13f)](_0x43af23[_0x32cc8f(0xc5)](_0x43af23[_0x32cc8f(0xca)],_0x2c1d90));}};_0xdd09c8['on'](_0xc63316[_0x1f02e1(0x13b)],async _0x59a2d5=>{const _0x110457=_0x1f02e1;try{PerformanceTester[_0x110457(0x13e)](PerformanceEvents[_0x110457(0x121)]),_0x43af23[_0x110457(0xbb)](_0x44227b),await TestHubHandler['stop'](),await ClientTroubleShootingService[_0x110457(0x155)]();const _0x5fb14=BrowserstackCLI[_0x110457(0x11a)]();await BrowserstackCLI[_0x110457(0xf1)]()[_0x110457(0xeb)](),TestDetails['shutdown'](),_0x43af23[_0x110457(0xf8)](printBuildLink),await utilities['finalExecution'](_0x34940e,_0x5fb14),process[_0x110457(0x104)]=_0x59a2d5,logger[_0x110457(0x13f)](_0x110457(0x147)+_0x59a2d5),logger[_0x110457(0x171)](_0x110457(0xd0)+_0xf707cb),fs[_0x110457(0xbd)](_0xf707cb);fs['existsSync'](_0xe877d1)&&(logger[_0x110457(0x13f)](_0x110457(0xd0)+_0xe877d1),fs[_0x110457(0xbd)](_0xe877d1));const _0x22485d=fs['readdirSync'](path[_0x110457(0x162)](helper[_0x110457(0xc3)](),_0x43af23['Rasaf']))[_0x110457(0xdd)](_0x512290=>_0x512290[_0x110457(0x165)](_0x110457(0x10c)));_0x22485d[_0x110457(0x11e)](_0x5dcdec=>{const _0x5d0ca3=_0x110457;fs[_0x5d0ca3(0xbd)](path[_0x5d0ca3(0x162)](helper[_0x5d0ca3(0xc3)](),_0x43af23['Rasaf'],_0x5dcdec));});}catch(_0x4369e6){logger[_0x110457(0x13f)](_0x43af23[_0x110457(0x11f)](_0x43af23[_0x110457(0x112)],_0x4369e6));}});})();}module[a39_0x1ae69a(0xd1)]=run;function a39_0xd480(){const _0x5bf1dc=['isRunning','reportFinalDetectionState','isYarnPnP','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','INTERNALLY_USED_ENV_VARS','reportConflictingEnvVarIssue','../../helpers/BrowserStackSetup','JpRgZ','filterBrowserstackArgs','Proxy\x20url\x20:\x20','FKFnu','platform','../v2/cliUtils','awoJk','join','npx','BROWSERSTACK_TEST_OBSERVABILITY','startsWith','sGMYT','vyxNB','78128gtxQgo','--config=','accessibility','getConfig','concat','../utils/clientTroubleshootingService','BrowserStack\x20config\x20file\x20not\x20found.','fYThW','errorMessage','info','../../helpers/accessibility-automation/helper','309960OazWvX','false','getNoProxy','HKstr','slice','setBrowserstackConfig','./reporter/test-details','resolvedConfigFile','getConfigPath','BROWSERSTACK_SETUP_CONFIG_PATH','xnZKM','60rWMglY','existsSync','cSTuZ','IyhPs','CUfwq','WubOb','UtZCv','FOqeo','unlinkSync','feBzs','trim','inherit','accessSync','test','homedir','EVENTS','gkNFD','close','../../helpers/utilities','Xtgqr','ktPgN','qPlrF','logLevel','R_OK','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','../v2/browserstackCLI','measureWrapper','Deleting\x20','exports','SDK_POST_INITIALIZE','isUndefined','gHLhW','skipSessionName','cwd','wtZHq','cliConfig','--disable-browserstack-automation','isTypescriptProject','isFalse','LWlaw','filter','child_process','map','Error\x20in\x20getting\x20funnel\x20data\x20results','automation','pDdMF','PJPMi','stringify','BROWSERSTACK_RERUN_TESTS','Error\x20in\x20deleting\x20playwright\x20results','SDK_SETUP','voBJU','testContextOptions','nIizr','stop','dirname','requireConfigLoaderYarnPnP','has','findIndex','BROWSERSTACK_TEST_ACCESSIBILITY_YML','getInstance','MODULE','launchBuild','BROWSERSTACK_RERUN','276140BKxZkP','accessibilityOptions','1170113HYtmty','NXQPs','serializeToYamlString','../../helpers/logger','44610WSMbog','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','ehjJv','16CQzEEi','No\x20Proxy\x20:\x20','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','BROWSERSTACK_AUTOMATION','parse','33eKLCIh','exitCode','.browserstack','resolve','reportDotBrowserStackFolderNotAccessibleIssue','LRjBa','indexOf','requirePWModule','writeFileSync','trace_','../../helpers/test-observability/constants','path','../../helpers/performance/constants','\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();','testObservability','fCSBg','browserstackSetupConfig.json','ofByz','./reporter/pwUtils','JPIwl','JHmng','OMYRg','true','isCLIEnabled','util','ZdGZb','env','forEach','uEmTB','11753540eVRszM','SDK_CLEANUP','PACKAGE_TYPE','jafRw','JJdzz','playwright-browserstack-sdk.config.js','initialize','aAnmQ','browserstackAutomation','skipSessionStatus','gIAQg','RwuNl','win32','nuHHg','./accessibility-helper','../../helpers/test-observability/utils','getPackageType','nmGPJ','RKGFh','config','pw_result.json','apply','rrhES','constants','error','configPath','nestedKeyValue','xvgus','DmgpS','clearTempPWConfig','start','debug','KRekP','../../helpers/performance/performance-tester','Updated\x20config\x20file\x20name\x20to\x20-\x20','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','--grep','AtMTF','validateRerunTestList','Playwright\x20process\x20exited\x20with\x20code\x20','NoUIB','--disable-test-observability','getProxyUrl','pynvT','W_OK','Error\x20in\x20closing\x20playwright','1118484XiFrNi','PLAYWRIGHT','gfrTt','--config','length','yarn'];a39_0xd480=function(){return _0x5bf1dc;};return a39_0xd480();}
2
+ 'use strict';const a39_0x4c4447=a39_0x3cce;function a39_0x3cce(_0x59a71e,_0x24744e){const _0x287a68=a39_0x287a();return a39_0x3cce=function(_0x3cce77,_0x4b0f34){_0x3cce77=_0x3cce77-0xae;let _0x15ecf4=_0x287a68[_0x3cce77];return _0x15ecf4;},a39_0x3cce(_0x59a71e,_0x24744e);}(function(_0xe3e2fb,_0x38bcc6){const _0x420f51=a39_0x3cce,_0xf866ba=_0xe3e2fb();while(!![]){try{const _0x22e22b=-parseInt(_0x420f51(0xfc))/0x1*(parseInt(_0x420f51(0x152))/0x2)+parseInt(_0x420f51(0x12a))/0x3+parseInt(_0x420f51(0xff))/0x4*(-parseInt(_0x420f51(0x156))/0x5)+parseInt(_0x420f51(0xd5))/0x6*(parseInt(_0x420f51(0x13a))/0x7)+parseInt(_0x420f51(0xfa))/0x8+-parseInt(_0x420f51(0x12d))/0x9+-parseInt(_0x420f51(0x11d))/0xa*(-parseInt(_0x420f51(0x169))/0xb);if(_0x22e22b===_0x38bcc6)break;else _0xf866ba['push'](_0xf866ba['shift']());}catch(_0x29c7a7){_0xf866ba['push'](_0xf866ba['shift']());}}}(a39_0x287a,0x99d4e));function a39_0x287a(){const _0x13288f=['getProxyUrl','rdeQS','Updated\x20config\x20file\x20name\x20to\x20-\x20','startsWith','automation','join','isTrue','getInstance','\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();','ruBUJ','TTZhj','bootstrap','SDK_CLEANUP','../../helpers/test-observability/constants','5877920cfJROv','length','3412MRSZXk','pw_result.json','UhSBe','393412udvfmK','fWHwt','fxppz','false','dRByu','agVDu','serializeToYamlString','../../helpers/test-observability/utils','cliConfig','resolve','accessibilityOptions','Error\x20in\x20getting\x20funnel\x20data\x20results','getConfigPath','path','ehoAy','--config','configPath','errorMessage','EOkTC','--config=','../../helpers/logger','EUuVz','lKTCv','browserstackSetupConfig.json','../../helpers/performance/performance-tester','YJWUB','XbEjB','splice','finalExecution','../../helpers/BrowserStackSetup','1561740uXPJLb','isFalse','true','playwright','writeFileSync','BROWSERSTACK_TEST_OBSERVABILITY','getConfig','readdirSync','cQyix','filterBrowserstackArgs','./reporter/test-details','isYarnPnP','../v2/browserstackCLI','142758UzUaKu','has','iblRJ','2824065Gusvrv','lJvPE','BrowserStack\x20config\x20file\x20not\x20found.','isRunning','BROWSERSTACK_TEST_ACCESSIBILITY_YML','TohxD','accessibility','gJWNi','IAFVX','PVihT','apply','./reporter/pwUtils','validateRerunTestList','1140314fRxsKu','test','DuITl','--disable-test-observability','util','../utils/clientTroubleshootingService','assign','env','reportDotBrowserStackFolderNotAccessibleIssue','parse','../utils/constants','ihkKl','setFrameworkDetail','lZsMM','readFileSync','mtXrp','CJMHL','R_OK','kQXbd','getNoProxy','PLAYWRIGHT','inherit','CSdfr','ERWNh','234WYhuxC','HloYd','UpDMh','shutdown','45XmnmHG','platform','RtITI','RYzhZ','measureWrapper','isUndefined','existsSync','slice','UDPtN','BROWSERSTACK_AUTOMATION','win32','requirePWModule','requireConfigLoaderYarnPnP','nestedKeyValue','npx','../v2/TestInfo','Error\x20in\x20closing\x20playwright','pTXFU','concat','33dOsaHd','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','end','homedir','push','qXKKT','reportFinalDetectionState','debug','.browserstack','error','ByrRW','stringify','accessSync','Deleting\x20','skipSessionStatus','findIndex','initialize','SDK_POST_INITIALIZE','No\x20Proxy\x20:\x20','dirname','../../helpers/testhub/testhubHandler','SDK_PRE_INITIALIZE','rOKRY','vLOEv','BROWSERSTACK_PW_CONFIG_DIR','config','BROWSERSTACK_RERUN','isCLIEnabled','testObservability','logLevel','split','yarn','IKlVZ','Proxy\x20url\x20:\x20','tzwsx','gDXlh','vvkRF','zwdEJ','constants','xdYgV','PACKAGE_TYPE','exitCode','map','AcHif','36plNeZK','forEach','ODWvN','../../helpers/helper','YlxIy','filter','close','stop','unlinkSync','trim','qwCNe','ZzDvT','nupoi','EAeNv','VpycZ','zCnJq','cwd','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','Playwright\x20process\x20exited\x20with\x20code\x20','testContextOptions','resolvedConfigFile','../../helpers/performance/constants','xpLBI'];a39_0x287a=function(){return _0x13288f;};return a39_0x287a();}const fs=require('fs'),path=require(a39_0x4c4447(0x10c)),{spawn}=require('child_process'),{format}=require(a39_0x4c4447(0x13e)),logger=require(a39_0x4c4447(0x113))['winstonLogger'],{default:BrowserStackSetup}=require(a39_0x4c4447(0x11c)),helper=require(a39_0x4c4447(0xd8)),utilities=require('../../helpers/utilities'),constants=require(a39_0x4c4447(0x144)),{FRAMEWORKS}=require(a39_0x4c4447(0xf9)),{getConfigLoaderPath}=require(a39_0x4c4447(0x138)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a39_0x4c4447(0x106)),TestDetails=require(a39_0x4c4447(0x127)),TestHubHandler=require(a39_0x4c4447(0xbd)),PerformanceTester=require(a39_0x4c4447(0x117)),BrowserstackCLI=require(a39_0x4c4447(0x129)),PerformanceEvents=require(a39_0x4c4447(0xea))['EVENTS'],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a39_0x4c4447(0x165)),ClientTroubleShootingService=require(a39_0x4c4447(0x13f)),getUserPlaywrightConfig=async(_0x13b2f8,_0x5b71fa)=>{const _0x3af238=a39_0x4c4447,_0x34f8cf={'UDPtN':function(_0x3a6ac1){return _0x3a6ac1();},'kQXbd':function(_0x2649a2,_0x3b5578){return _0x2649a2(_0x3b5578);},'RtITI':_0x3af238(0xe9),'agVDu':_0x3af238(0x112)},_0x1ad840=!helper['isUndefined'](_0x13b2f8[_0x3af238(0xc2)]),_0x35d425=_0x1ad840?path['resolve'](process['cwd'](),_0x13b2f8[_0x3af238(0xc2)]):process[_0x3af238(0xe5)](),{resolveConfigFile:_0x249cc1,resolveConfigLocation:_0x452b1d}=helper['isYarnPnP']()?helper[_0x3af238(0x162)](..._0x34f8cf[_0x3af238(0x15e)](getConfigLoaderPath)):helper[_0x3af238(0x161)][_0x3af238(0x137)](null,_0x34f8cf['UDPtN'](getConfigLoaderPath)),_0xc72887=_0x249cc1?_0x34f8cf['kQXbd'](_0x249cc1,_0x35d425):helper[_0x3af238(0x163)](_0x34f8cf[_0x3af238(0x14c)](_0x452b1d,_0x35d425),[_0x34f8cf[_0x3af238(0x158)]]),_0x27a573={};if(_0x1ad840){const _0x1b3e51=_0x5b71fa[_0x3af238(0xb8)](_0x5818d3=>_0x5818d3===_0x3af238(0x10e)||_0x5818d3==='-c'||_0x5818d3[_0x3af238(0xef)](_0x3af238(0x112)));_0x5b71fa[_0x3af238(0x11a)](_0x1b3e51,_0x5b71fa[_0x1b3e51][_0x3af238(0xef)](_0x34f8cf[_0x3af238(0x104)])?0x1:0x2);}const _0x11d315={};return _0x11d315[_0x3af238(0x10c)]=_0xc72887,_0x11d315['config']=_0x27a573,_0x11d315;},handleO11yRerun=_0x36d191=>{const _0x137cff=a39_0x4c4447,_0x34f1fc={};_0x34f1fc['ehoAy']='--grep';const _0x3c7fa7=_0x34f1fc,_0x518b57=helper[_0x137cff(0xf2)](process[_0x137cff(0x141)][_0x137cff(0xc3)]);if(_0x518b57){const _0x5d07fd=process['env']['BROWSERSTACK_RERUN_TESTS'],_0x35d5cd=[];if(helper[_0x137cff(0x139)](_0x5d07fd)&&!helper[_0x137cff(0x15b)](_0x5d07fd)){_0x5d07fd['split'](',')[_0x137cff(0xd3)](_0xa6655f=>{const _0x4e2a30=_0x137cff;_0x35d5cd[_0x4e2a30(0x16d)]('('+_0xa6655f[_0x4e2a30(0xde)]()+')');});const _0x5e27ca='^'+_0x35d5cd[_0x137cff(0xf1)]('|')+'$';_0x36d191[_0x137cff(0x16d)](_0x3c7fa7[_0x137cff(0x10d)],_0x5e27ca);}}},spawnOriginalProcess=_0x14427b=>{const _0xe071ec=a39_0x4c4447,_0x93e5dd={'UpDMh':function(_0x59f93f,_0x2d240c,_0x2f3923,_0x285281){return _0x59f93f(_0x2d240c,_0x2f3923,_0x285281);},'XbEjB':_0xe071ec(0xc8),'dRByu':'npx','YGWBQ':'playwright','gDXlh':function(_0x553179,_0x13f144){return _0x553179===_0x13f144;},'TohxD':_0xe071ec(0x160),'ooAUO':_0xe071ec(0x14f)};_0x93e5dd[_0xe071ec(0x154)](spawn,helper[_0xe071ec(0x128)]()?_0x93e5dd[_0xe071ec(0x119)]:_0x93e5dd[_0xe071ec(0x103)],[_0x93e5dd['YGWBQ'],..._0x14427b[_0xe071ec(0x15d)](0x1)],{'shell':_0x93e5dd[_0xe071ec(0xcc)](process[_0xe071ec(0x157)],_0x93e5dd[_0xe071ec(0x132)]),'stdio':_0x93e5dd['ooAUO'],'cwd':process[_0xe071ec(0xe5)]()});},isTestCommand=(_0x83e560,_0x2344f6)=>{const _0x268cdc=a39_0x4c4447,_0x29369={};_0x29369[_0x268cdc(0x151)]=function(_0x1518a,_0x41dbb1){return _0x1518a>_0x41dbb1;},_0x29369[_0x268cdc(0x147)]=function(_0x2ea99b,_0x4aef0c){return _0x2ea99b===_0x4aef0c;},_0x29369[_0x268cdc(0x100)]='test';const _0x13ec8e=_0x29369;if(_0x13ec8e[_0x268cdc(0x151)](_0x2344f6[_0x268cdc(0xfb)],0x1)&&_0x13ec8e['lZsMM'](_0x2344f6[0x1],_0x13ec8e[_0x268cdc(0x100)]))return!![];return![];};async function run(_0x4e2151,_0x5b86a5,_0x77a862){const _0x2f0249=a39_0x4c4447,_0x1e8fb1={'ByrRW':function(_0x159193){return _0x159193();},'vvkRF':_0x2f0249(0xb1),'mtXrp':function(_0x3c4f9e,_0x2e093e){return _0x3c4f9e+_0x2e093e;},'HloYd':_0x2f0249(0x166),'CJMHL':function(_0xa2d76c,_0x7f0883){return _0xa2d76c(_0x7f0883);},'vLOEv':_0x2f0249(0xfd),'nupoi':_0x2f0249(0x10a),'jDsZH':_0x2f0249(0x12f),'TTZhj':function(_0x5d3669,_0x5402c9){return _0x5d3669<_0x5402c9;},'CSdfr':function(_0x5aa6fd,_0x2176f9){return _0x5aa6fd===_0x2176f9;},'EAeNv':_0x2f0249(0x102),'ihkKl':_0x2f0249(0x13d),'tzwsx':function(_0x2a910b,_0xe3d444){return _0x2a910b>=_0xe3d444;},'YJWUB':_0x2f0249(0xf0),'rZnVf':function(_0x997657,_0x12b60c){return _0x997657!=_0x12b60c;},'lJvPE':function(_0x35be6a,_0x8c7328,_0x20b009){return _0x35be6a(_0x8c7328,_0x20b009);},'EUuVz':_0x2f0249(0x11f),'xdYgV':function(_0x4cd896,_0x1b64b1){return _0x4cd896(_0x1b64b1);},'rOKRY':function(_0xb6ea63,_0x6d3166){return _0xb6ea63(_0x6d3166);},'cQyix':_0x2f0249(0x116),'zwdEJ':'playwright-browserstack-sdk.config.cjs','xpLBI':'playwright-browserstack-sdk.config.js','uhSbp':function(_0x152355,_0x131b15){return _0x152355-_0x131b15;},'lKTCv':_0x2f0249(0xee),'pTXFU':function(_0x1e03f2,_0x2b5352){return _0x1e03f2>_0x2b5352;},'iblRJ':function(_0x426de2,_0x3a5236,_0x5806b2,_0x4f6435){return _0x426de2(_0x3a5236,_0x5806b2,_0x4f6435);},'RYzhZ':_0x2f0249(0xc8),'ZzDvT':_0x2f0249(0x164),'AcHif':_0x2f0249(0x120),'EOkTC':_0x2f0249(0x13b),'VpycZ':_0x2f0249(0x10e),'gJWNi':_0x2f0249(0x160),'ODWvN':function(_0x4db392,_0x2d9a24){return _0x4db392===_0x2d9a24;},'fxppz':_0x2f0249(0x14f),'rdeQS':_0x2f0249(0xdb),'qXKKT':function(_0x231f93,_0x3bd3e9){return _0x231f93|_0x3bd3e9;},'zCnJq':function(_0x5a609a,_0x4fa95c){return _0x5a609a+_0x4fa95c;},'DuITl':_0x2f0249(0xe6),'ruBUJ':function(_0x3f7383,_0x2e286b){return _0x3f7383+_0x2e286b;},'YlxIy':'Error\x20in\x20deleting\x20playwright\x20results','qwCNe':function(_0x22177d,_0x1896cd,_0x9cd327){return _0x22177d(_0x1896cd,_0x9cd327);},'UhSBe':function(_0x113401,_0x2c9840){return _0x113401(_0x2c9840);}};try{const _0x1015e2=path[_0x2f0249(0xf1)](helper[_0x2f0249(0x16c)](),_0x1e8fb1['vvkRF']);try{fs[_0x2f0249(0xb5)](_0x1015e2,_0x1e8fb1[_0x2f0249(0xae)](fs[_0x2f0249(0xcf)][_0x2f0249(0x14b)],fs[_0x2f0249(0xcf)]['W_OK']));}catch(_0xb52d7e){ClientTroubleShootingService[_0x2f0249(0x142)]();}}catch(_0x4d3d81){logger[_0x2f0249(0xb0)](_0x1e8fb1[_0x2f0249(0xe4)](_0x1e8fb1[_0x2f0249(0x13c)],_0x4d3d81));}try{const _0x1be2a6=path[_0x2f0249(0xf1)](helper[_0x2f0249(0x16c)](),_0x1e8fb1[_0x2f0249(0xcd)],_0x1e8fb1[_0x2f0249(0xc0)]);fs[_0x2f0249(0x15c)](_0x1be2a6)&&fs[_0x2f0249(0xdd)](_0x1be2a6);}catch(_0x2d90e1){logger[_0x2f0249(0xb0)](_0x1e8fb1[_0x2f0249(0xf5)](_0x1e8fb1[_0x2f0249(0xd9)],_0x2d90e1));}if(!_0x1e8fb1[_0x2f0249(0xdf)](isTestCommand,_0x4e2151,_0x5b86a5)){_0x1e8fb1[_0x2f0249(0xfe)](spawnOriginalProcess,_0x5b86a5);return;}await PerformanceTester[_0x2f0249(0x15a)](PerformanceEvents[_0x2f0249(0xbe)],async()=>{const _0x47bd06=_0x2f0249,_0x167508={'IAFVX':function(_0xe3b2a9,_0x109941){const _0x5bd59d=a39_0x3cce;return _0x1e8fb1[_0x5bd59d(0x14a)](_0xe3b2a9,_0x109941);},'IKlVZ':_0x1e8fb1[_0x47bd06(0xcd)],'WQnon':_0x1e8fb1[_0x47bd06(0xc0)],'KfSdW':function(_0x52411a,_0x529300){return _0x1e8fb1['mtXrp'](_0x52411a,_0x529300);},'PVihT':_0x1e8fb1[_0x47bd06(0xe1)]};if(!_0x77a862[_0x47bd06(0xc2)]){logger[_0x47bd06(0xb2)](_0x1e8fb1['jDsZH']);return;}await _0x77a862[_0x47bd06(0xb9)](_0x4e2151),CLIUtils[_0x47bd06(0x146)](FRAMEWORKS[_0x47bd06(0x14e)],FRAMEWORKS[_0x47bd06(0x14e)]),BrowserstackCLI[_0x47bd06(0xf3)]()['setBrowserstackConfig'](_0x77a862[_0x47bd06(0xc2)],_0x77a862[_0x47bd06(0x10f)],_0x77a862[_0x47bd06(0x107)]),await BrowserstackCLI[_0x47bd06(0xf3)]()[_0x47bd06(0xf7)]();for(var _0x4e058f=0x0;_0x1e8fb1[_0x47bd06(0xf6)](_0x4e058f,constants['INTERNALLY_USED_ENV_VARS'][_0x47bd06(0xfb)]);_0x4e058f++){var _0x4484ad=constants['INTERNALLY_USED_ENV_VARS'][_0x4e058f];process['env'][_0x4484ad]&&await ClientTroubleShootingService['reportConflictingEnvVarIssue'](_0x4484ad);}const _0x11bf38=BrowserstackCLI[_0x47bd06(0xf3)]()[_0x47bd06(0x123)]();!helper[_0x47bd06(0x11e)](_0x11bf38['browserstackAutomation'])&&(process[_0x47bd06(0x141)]['BROWSERSTACK_AUTOMATION']=!![]);_0x1e8fb1['CSdfr'](_0x11bf38['browserstackAutomation'],![])&&(process[_0x47bd06(0x141)][_0x47bd06(0x15f)]=_0x1e8fb1[_0x47bd06(0xe2)],_0x5b86a5=_0x5b86a5[_0x47bd06(0xda)](_0x437f2f=>_0x437f2f!=='--disable-browserstack-automation'));const _0x105ea3=_0x5b86a5['indexOf'](_0x1e8fb1[_0x47bd06(0x145)]);(_0x1e8fb1[_0x47bd06(0xcb)](_0x105ea3,0x0)||_0x1e8fb1[_0x47bd06(0x150)](_0x11bf38[_0x47bd06(0xc5)],![]))&&(process[_0x47bd06(0x141)][_0x47bd06(0x122)]=_0x1e8fb1[_0x47bd06(0xe2)],_0x5b86a5=_0x5b86a5[_0x47bd06(0xda)](_0x56b670=>_0x56b670!==_0x47bd06(0x13d)));!helper['isUndefined'](_0x77a862[_0x47bd06(0x107)])&&_0x77a862[_0x47bd06(0x107)][_0x47bd06(0x12b)](_0x1e8fb1[_0x47bd06(0x118)])&&(process[_0x47bd06(0x141)][_0x47bd06(0x15f)]=_0x77a862['cliConfig']['get'](_0x1e8fb1[_0x47bd06(0x118)])||!![]);_0x1e8fb1['rZnVf'](_0x77a862['config'][_0x47bd06(0xc5)],null)&&!helper['isTrue'](process[_0x47bd06(0x141)][_0x47bd06(0x122)])&&(process[_0x47bd06(0x141)][_0x47bd06(0x122)]=process[_0x47bd06(0x141)][_0x47bd06(0x122)]||_0x77a862[_0x47bd06(0xc2)][_0x47bd06(0xc5)]);const _0x5518b3=!helper['isFalse'](process['env']['BROWSERSTACK_TEST_OBSERVABILITY']);_0x77a862['config'][_0x47bd06(0x109)]&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x47bd06(0xb4)](_0x77a862[_0x47bd06(0xc2)][_0x47bd06(0x109)]));let _0x5d75d9=![];_0x77a862[_0x47bd06(0xc2)][_0x47bd06(0x133)]&&(_0x5d75d9=!![],process['env'][_0x47bd06(0x131)]=_0x77a862['config']['accessibility']);const _0x48b2da=_0x5b86a5[_0x47bd06(0x168)](),_0x2b0003=await _0x1e8fb1[_0x47bd06(0x12e)](getUserPlaywrightConfig,_0x4e2151,_0x5b86a5);if(helper['isUndefined'](_0x2b0003)){_0x1e8fb1['CJMHL'](spawnOriginalProcess,_0x48b2da);return;}const _0x156b2f=_0x2b0003['path']?path[_0x47bd06(0xbc)](_0x2b0003[_0x47bd06(0x10c)]):process[_0x47bd06(0xe5)]();process[_0x47bd06(0x141)][_0x47bd06(0xc1)]=_0x156b2f,await PerformanceTester[_0x47bd06(0x15a)](PerformanceEvents[_0x47bd06(0xba)],async()=>{const _0x719e37=_0x47bd06;!BrowserstackCLI[_0x719e37(0xf3)]()[_0x719e37(0x130)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0x719e37(0x14e)],_0x77a862),_0x5518b3&&_0x167508[_0x719e37(0x135)](handleO11yRerun,_0x5b86a5);})();if(!BrowserstackCLI[_0x47bd06(0xf3)]()[_0x47bd06(0x130)]()){let _0x5a5586=_0x1e8fb1[_0x47bd06(0x150)](process[_0x47bd06(0x141)][_0x47bd06(0x131)],_0x1e8fb1[_0x47bd06(0x114)]);_0x5a5586=_0x5a5586||_0x1e8fb1[_0x47bd06(0xd0)](checkAccessibilityPlatformConfig,_0x77a862[_0x47bd06(0xc2)]),process[_0x47bd06(0x141)][_0x47bd06(0x131)]=_0x5a5586,_0x5a5586&&_0x1e8fb1[_0x47bd06(0xbf)](setAccessibilityCapabilities,_0x77a862['config']);}const _0x1ebeae=path[_0x47bd06(0xf1)](_0x2b0003[_0x47bd06(0x10c)]?path[_0x47bd06(0xbc)](_0x2b0003[_0x47bd06(0x10c)]):process[_0x47bd06(0xe5)](),_0x1e8fb1[_0x47bd06(0x125)]);fs[_0x47bd06(0x121)](_0x1ebeae,helper[_0x47bd06(0x105)](_0x77a862[_0x47bd06(0xc2)])),process[_0x47bd06(0x141)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x1ebeae,helper['clearTempPWConfig']();let _0x53f326='';_0x1e8fb1[_0x47bd06(0x150)](helper['getPackageType'](),constants[_0x47bd06(0xd1)]['MODULE'])?_0x53f326=_0x1e8fb1[_0x47bd06(0xce)]:_0x53f326=_0x1e8fb1[_0x47bd06(0xeb)];let _0x15ef57='';if(helper['isTypescriptProject'](_0x2b0003[_0x47bd06(0x10c)])){_0x15ef57='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x426350=_0x53f326[_0x47bd06(0xc7)]('.');_0x426350[_0x1e8fb1['uhSbp'](_0x426350[_0x47bd06(0xfb)],0x1)]='ts',_0x53f326=_0x426350['join']('.'),logger[_0x47bd06(0xb0)](_0x1e8fb1['mtXrp'](_0x1e8fb1[_0x47bd06(0x115)],_0x53f326));}else _0x15ef57=_0x47bd06(0x16a);const _0x595684=path['join'](_0x2b0003[_0x47bd06(0x10c)]?path[_0x47bd06(0xbc)](_0x2b0003[_0x47bd06(0x10c)]):process[_0x47bd06(0xe5)](),_0x53f326);let _0x4d4b4d=_0x2b0003[_0x47bd06(0x10c)]?_0x2b0003[_0x47bd06(0x10c)]:'';_0x4d4b4d=_0x1e8fb1[_0x47bd06(0x167)](_0x4d4b4d[_0x47bd06(0xfb)],0x0)?path[_0x47bd06(0x108)](_0x4d4b4d):'',process['env']['USER_CONFIG_DETAILS_PATH']=_0x4d4b4d;const _0x3fdd0f=helper[_0x47bd06(0xec)](_0x77a862[_0x47bd06(0xc2)]),_0x3aa2f7=helper[_0x47bd06(0x14d)](_0x77a862[_0x47bd06(0xc2)]);logger[_0x47bd06(0xb0)](_0x47bd06(0xca)+_0x3fdd0f),logger['debug'](_0x47bd06(0xbb)+_0x3aa2f7);_0x3fdd0f&&(_0x15ef57=_0x1e8fb1[_0x47bd06(0x149)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x3fdd0f+'\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'+_0x3aa2f7+_0x47bd06(0xf4),_0x15ef57));helper[_0x47bd06(0x126)]({},_0x5b86a5),fs[_0x47bd06(0x121)](_0x595684,_0x15ef57),PerformanceTester[_0x47bd06(0x16b)](PerformanceEvents['SDK_SETUP']);const _0x575e11=_0x1e8fb1[_0x47bd06(0x12c)](spawn,helper['isYarnPnP']()?_0x1e8fb1[_0x47bd06(0x159)]:_0x1e8fb1[_0x47bd06(0xe0)],[_0x1e8fb1[_0x47bd06(0xd4)],_0x1e8fb1[_0x47bd06(0x111)],_0x1e8fb1[_0x47bd06(0xe3)],_0x1e8fb1['CSdfr'](process[_0x47bd06(0x157)],_0x1e8fb1[_0x47bd06(0x134)])?'\x22'+_0x595684+'\x22':_0x595684,..._0x5b86a5[_0x47bd06(0x15d)](0x2)],{'shell':_0x1e8fb1[_0x47bd06(0xd7)](process['platform'],_0x1e8fb1[_0x47bd06(0x134)]),'stdio':_0x1e8fb1[_0x47bd06(0x101)],'cwd':process[_0x47bd06(0xe5)](),'env':Object[_0x47bd06(0x140)]({},process[_0x47bd06(0x141)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x47bd06(0x10b)](_0x4e2151),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x77a862[_0x47bd06(0xc2)][_0x47bd06(0xe8)][_0x47bd06(0xb7)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x77a862[_0x47bd06(0xc2)][_0x47bd06(0xe8)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x77a862[_0x47bd06(0xc2)][_0x47bd06(0xc6)]})}),_0xcbf35e=()=>{const _0x2a5b28=_0x47bd06;try{const _0x40b7cc=path['join'](helper[_0x2a5b28(0x16c)](),_0x167508[_0x2a5b28(0xc9)],_0x167508['WQnon']);if(fs[_0x2a5b28(0x15c)](_0x40b7cc)){let _0x3317b7=fs[_0x2a5b28(0x148)](_0x40b7cc);_0x3317b7=JSON[_0x2a5b28(0x143)](_0x3317b7),_0x77a862[_0x2a5b28(0x110)]=_0x3317b7,fs[_0x2a5b28(0xdd)](_0x40b7cc);}}catch(_0x4c3bf0){logger[_0x2a5b28(0xb0)](_0x167508['KfSdW'](_0x167508[_0x2a5b28(0x136)],_0x4c3bf0));}};_0x575e11['on'](_0x1e8fb1[_0x47bd06(0xed)],async _0xea86a2=>{const _0x2db5cb=_0x47bd06;try{PerformanceTester['start'](PerformanceEvents[_0x2db5cb(0xf8)]),_0x1e8fb1[_0x2db5cb(0xb3)](_0xcbf35e),await TestHubHandler[_0x2db5cb(0xdc)](),await ClientTroubleShootingService[_0x2db5cb(0xaf)]();const _0xddccc4=BrowserstackCLI[_0x2db5cb(0xc4)]();await BrowserstackCLI[_0x2db5cb(0xf3)]()[_0x2db5cb(0xdc)](),TestDetails[_0x2db5cb(0x155)](),_0x1e8fb1[_0x2db5cb(0xb3)](printBuildLink),await utilities[_0x2db5cb(0x11b)](_0x77a862,_0xddccc4),process[_0x2db5cb(0xd2)]=_0xea86a2,logger[_0x2db5cb(0xb0)](_0x2db5cb(0xe7)+_0xea86a2),logger['info'](_0x2db5cb(0xb6)+_0x595684),fs[_0x2db5cb(0xdd)](_0x595684);fs['existsSync'](_0x1ebeae)&&(logger[_0x2db5cb(0xb0)]('Deleting\x20'+_0x1ebeae),fs[_0x2db5cb(0xdd)](_0x1ebeae));const _0x434da0=fs[_0x2db5cb(0x124)](path[_0x2db5cb(0xf1)](helper[_0x2db5cb(0x16c)](),_0x1e8fb1[_0x2db5cb(0xcd)]))[_0x2db5cb(0xda)](_0x3deb10=>_0x3deb10[_0x2db5cb(0xef)]('trace_'));_0x434da0[_0x2db5cb(0xd6)](_0x4c7db1=>{const _0x3c30ca=_0x2db5cb;fs[_0x3c30ca(0xdd)](path['join'](helper[_0x3c30ca(0x16c)](),_0x167508[_0x3c30ca(0xc9)],_0x4c7db1));});}catch(_0x267b6b){logger['debug'](_0x1e8fb1[_0x2db5cb(0x149)](_0x1e8fb1[_0x2db5cb(0x153)],_0x267b6b));}});})();}module['exports']=run;
@@ -1 +1 @@
1
- const a40_0x135ea7=a40_0x382a;function a40_0x4c92(){const _0x3a321c=['496iQrrzB','608743jEdpsq','../../helpers/helper','1486515QZzAKI','apply','winstonLogger','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','953588frmOPW','315200WxjZbm','requirePWModule','2ZDpHcl','fork','./reporter/pwUtils','resolve','PhMMr','nwjHe','OsHcn','env','mWluy','PLAYWRIGHT','yUflF','Running\x20existing\x20global\x20setup','debug','function','EElDw','43317FUtzON','exports','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','error','../../helpers/test-observability/utils','2827620vwneXT','YikCl','qMXFf','includes','./patches','1.33.0','Path\x20','util','./mock-process.js','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','5ikUalJ','isHandlePWErrorSet','wcGFF','1842575kDEAhU'];a40_0x4c92=function(){return _0x3a321c;};return a40_0x4c92();}(function(_0x1fe218,_0x47b38a){const _0x551fa3=a40_0x382a,_0x40c3a7=_0x1fe218();while(!![]){try{const _0x2786d0=parseInt(_0x551fa3(0x150))/0x1+-parseInt(_0x551fa3(0x12d))/0x2*(-parseInt(_0x551fa3(0x152))/0x3)+parseInt(_0x551fa3(0x12a))/0x4*(-parseInt(_0x551fa3(0x14b))/0x5)+-parseInt(_0x551fa3(0x141))/0x6+-parseInt(_0x551fa3(0x14e))/0x7+-parseInt(_0x551fa3(0x14f))/0x8*(-parseInt(_0x551fa3(0x13c))/0x9)+parseInt(_0x551fa3(0x12b))/0xa;if(_0x2786d0===_0x47b38a)break;else _0x40c3a7['push'](_0x40c3a7['shift']());}catch(_0x576f26){_0x40c3a7['push'](_0x40c3a7['shift']());}}}(a40_0x4c92,0x709e2));function a40_0x382a(_0xa32de1,_0x11f499){const _0x4c92c7=a40_0x4c92();return a40_0x382a=function(_0x382abc,_0x42faf9){_0x382abc=_0x382abc-0x12a;let _0x49ef57=_0x4c92c7[_0x382abc];return _0x49ef57;},a40_0x382a(_0xa32de1,_0x11f499);}const util=require(a40_0x135ea7(0x148)),child_process=require('child_process'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a40_0x135ea7(0x140)),helper=require(a40_0x135ea7(0x151)),{getLoadUtilsPath,getForkProcessPath}=require(a40_0x135ea7(0x12f)),{mockIsWorkerRedundant}=require(a40_0x135ea7(0x145)),logger=require('../../helpers/logger')[a40_0x135ea7(0x154)];module[a40_0x135ea7(0x13d)]=async function(_0x503546){const _0x15f3e6=a40_0x135ea7,_0x288d3b={'qMXFf':function(_0x480842,_0x522017){return _0x480842(_0x522017);},'EElDw':function(_0xa96ebf){return _0xa96ebf();},'PhMMr':_0x15f3e6(0x149),'nwjHe':function(_0x289126){return _0x289126();},'OsHcn':function(_0x50e4cc){return _0x50e4cc();},'mWluy':function(_0x4d9c8,_0x55b68b){return _0x4d9c8(_0x55b68b);},'yUflF':_0x15f3e6(0x138),'nYlUd':function(_0x26d91e,_0x5d0294){return _0x26d91e>=_0x5d0294;},'JwAaA':_0x15f3e6(0x146),'wcGFF':function(_0x1dd492,_0x3dcd1c,_0x1cda18){return _0x1dd492(_0x3dcd1c,_0x1cda18);},'kmdCo':function(_0x240de8,_0x3057ce){return _0x240de8!==_0x3057ce;},'YikCl':_0x15f3e6(0x13a),'YMenx':'Not\x20able\x20to\x20import\x20globalSetup'},_0x471304=child_process['fork'];if(helper[_0x15f3e6(0x14c)]())try{_0x288d3b[_0x15f3e6(0x133)](mockIsWorkerRedundant);}catch(_0x2bc7d9){logger[_0x15f3e6(0x139)](_0x15f3e6(0x14a)+util['format'](_0x2bc7d9));}child_process[_0x15f3e6(0x12e)]=function(){const _0x8abc94=_0x15f3e6;return _0x288d3b[_0x8abc94(0x143)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x8abc94(0x144)](_0x288d3b[_0x8abc94(0x13b)](getForkProcessPath))?arguments[0x0]=require[_0x8abc94(0x130)](_0x288d3b[_0x8abc94(0x131)]):logger[_0x8abc94(0x13f)](_0x8abc94(0x147)+_0x288d3b[_0x8abc94(0x132)](getForkProcessPath)+'\x20is\x20not\x20found'),_0x471304[_0x8abc94(0x153)](null,arguments);};if(process['env'][_0x15f3e6(0x13e)]){_0x288d3b[_0x15f3e6(0x135)](debug,_0x288d3b[_0x15f3e6(0x137)]);try{const {loadGlobalHook:_0x5e5fec}=helper[_0x15f3e6(0x12c)][_0x15f3e6(0x153)](null,_0x288d3b[_0x15f3e6(0x133)](getLoadUtilsPath)),_0x1aab7e=_0x288d3b[_0x15f3e6(0x135)](getFrameworkVersion,FRAMEWORKS[_0x15f3e6(0x136)]);let _0x1fd1a3=_0x503546;if(_0x288d3b['nYlUd'](helper['compareVersions'](_0x1aab7e,_0x288d3b['JwAaA']),0x0)){const _0x12fcb1={};_0x12fcb1['config']=_0x503546,_0x1fd1a3=_0x12fcb1;}const _0x3ae6cd=await _0x288d3b[_0x15f3e6(0x14d)](_0x5e5fec,_0x1fd1a3,process[_0x15f3e6(0x134)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x288d3b['kmdCo'](typeof _0x3ae6cd,_0x288d3b[_0x15f3e6(0x142)]))throw new Error(_0x288d3b['YMenx']);return _0x3ae6cd[_0x15f3e6(0x153)](null,arguments);}catch(_0x308400){_0x288d3b['mWluy'](debug,_0x15f3e6(0x155)+_0x308400['toString']());}}};
1
+ const a40_0x61bc20=a40_0x9457;(function(_0xbfffe,_0x25b967){const _0x5cc585=a40_0x9457,_0x428bb6=_0xbfffe();while(!![]){try{const _0x36fd21=-parseInt(_0x5cc585(0xc7))/0x1+parseInt(_0x5cc585(0xb8))/0x2+parseInt(_0x5cc585(0xcf))/0x3+-parseInt(_0x5cc585(0xd2))/0x4*(-parseInt(_0x5cc585(0xc2))/0x5)+-parseInt(_0x5cc585(0xa5))/0x6+-parseInt(_0x5cc585(0xb0))/0x7+-parseInt(_0x5cc585(0xcd))/0x8*(-parseInt(_0x5cc585(0xb4))/0x9);if(_0x36fd21===_0x25b967)break;else _0x428bb6['push'](_0x428bb6['shift']());}catch(_0x50f834){_0x428bb6['push'](_0x428bb6['shift']());}}}(a40_0xb53b,0x6d63f));function a40_0x9457(_0x552013,_0x26326c){const _0xb53b7d=a40_0xb53b();return a40_0x9457=function(_0x94575f,_0x4d0cac){_0x94575f=_0x94575f-0xa5;let _0x3f0466=_0xb53b7d[_0x94575f];return _0x3f0466;},a40_0x9457(_0x552013,_0x26326c);}const util=require(a40_0x61bc20(0xa7)),child_process=require('child_process'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a40_0x61bc20(0xb5)),helper=require(a40_0x61bc20(0xc0)),{getLoadUtilsPath,getForkProcessPath}=require(a40_0x61bc20(0xca)),{mockIsWorkerRedundant}=require(a40_0x61bc20(0xc9)),logger=require(a40_0x61bc20(0xc1))['winstonLogger'];function a40_0xb53b(){const _0x1b1eeb=['BjHXg','1.33.0','includes','Path\x20','okrFN','Call\x20to\x20child\x20fork\x20with\x20args\x20','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','621572WWBVrl','exports','format','FAHuf','214875jENHGY','../../helpers/test-observability/utils','Not\x20able\x20to\x20import\x20globalSetup','error','204056FdVXyf','QSusQ','toString','HgwpU','mbIoW','WxpwX','TNJSY','PLAYWRIGHT','../../helpers/helper','../../helpers/logger','39365ikaMFF','IzEQe','\x20is\x20not\x20found','requirePWModule','fork','275832fKGqNc','IiUPY','./patches','./reporter/pwUtils','fjWwP','csDJE','88RlcPRF','env','1716540upWjPx','apply','compareVersions','12SXZPIg','./mock-process.js','debug','ApimN','886566KsfCgH','Running\x20existing\x20global\x20setup','util','fijDJ'];a40_0xb53b=function(){return _0x1b1eeb;};return a40_0xb53b();}module[a40_0x61bc20(0xb1)]=async function(_0x32a72b){const _0x836eb0=a40_0x61bc20,_0x5e239f={'IiUPY':function(_0x35c9b0,_0x216110){return _0x35c9b0(_0x216110);},'BjHXg':function(_0x44f602){return _0x44f602();},'fjWwP':_0x836eb0(0xd3),'TNJSY':function(_0x26d6fe){return _0x26d6fe();},'okrFN':_0x836eb0(0xa6),'FAHuf':function(_0x295648){return _0x295648();},'HgwpU':function(_0x142554,_0x30b650){return _0x142554(_0x30b650);},'WxpwX':function(_0x491238,_0x509043){return _0x491238>=_0x509043;},'mbIoW':_0x836eb0(0xaa),'QSusQ':function(_0xde9d48,_0x4223e0,_0x3aba88){return _0xde9d48(_0x4223e0,_0x3aba88);},'csDJE':function(_0x53f326,_0x530eb7){return _0x53f326!==_0x530eb7;},'IzEQe':'function','ApimN':_0x836eb0(0xb6),'fijDJ':function(_0xb3f7af,_0x24521b){return _0xb3f7af(_0x24521b);}},_0x26d6ad=child_process[_0x836eb0(0xc6)];if(helper['isHandlePWErrorSet']())try{_0x5e239f[_0x836eb0(0xbe)](mockIsWorkerRedundant);}catch(_0x1753f7){logger[_0x836eb0(0xd4)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0x836eb0(0xb2)](_0x1753f7));}child_process['fork']=function(){const _0x3159d2=_0x836eb0;return _0x5e239f['IiUPY'](debug,_0x3159d2(0xae)+arguments[0x0]),arguments[0x0][_0x3159d2(0xab)](_0x5e239f['BjHXg'](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x5e239f[_0x3159d2(0xcb)]):logger[_0x3159d2(0xb7)](_0x3159d2(0xac)+_0x5e239f[_0x3159d2(0xa9)](getForkProcessPath)+_0x3159d2(0xc4)),_0x26d6ad[_0x3159d2(0xd0)](null,arguments);};if(process[_0x836eb0(0xce)][_0x836eb0(0xaf)]){_0x5e239f[_0x836eb0(0xc8)](debug,_0x5e239f[_0x836eb0(0xad)]);try{const {loadGlobalHook:_0x3c35df}=helper[_0x836eb0(0xc5)][_0x836eb0(0xd0)](null,_0x5e239f[_0x836eb0(0xb3)](getLoadUtilsPath)),_0x51ac90=_0x5e239f[_0x836eb0(0xbb)](getFrameworkVersion,FRAMEWORKS[_0x836eb0(0xbf)]);let _0xadc315=_0x32a72b;if(_0x5e239f[_0x836eb0(0xbd)](helper[_0x836eb0(0xd1)](_0x51ac90,_0x5e239f[_0x836eb0(0xbc)]),0x0)){const _0x4c0132={};_0x4c0132['config']=_0x32a72b,_0xadc315=_0x4c0132;}const _0x154a5b=await _0x5e239f[_0x836eb0(0xb9)](_0x3c35df,_0xadc315,process[_0x836eb0(0xce)][_0x836eb0(0xaf)]);if(_0x5e239f[_0x836eb0(0xcc)](typeof _0x154a5b,_0x5e239f[_0x836eb0(0xc3)]))throw new Error(_0x5e239f[_0x836eb0(0xd5)]);return _0x154a5b[_0x836eb0(0xd0)](null,arguments);}catch(_0x2cad17){_0x5e239f[_0x836eb0(0xa8)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x2cad17[_0x836eb0(0xba)]());}}};