browserstack-node-sdk 1.65.6 → 1.65.7

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 (216) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  42. package/src/bin/codeceptjs/command.js +1 -1
  43. package/src/bin/codeceptjs/helper.js +1 -1
  44. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  45. package/src/bin/cucumber-js/command.js +1 -1
  46. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  48. package/src/bin/cucumber-js/test-observability.js +1 -1
  49. package/src/bin/cucumber-js/test.setup.js +1 -1
  50. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  51. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  52. package/src/bin/integrations/command.js +1 -1
  53. package/src/bin/integrations/constants.js +1 -1
  54. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  55. package/src/bin/jasmine/command.js +1 -1
  56. package/src/bin/jasmine/test.setup.js +1 -1
  57. package/src/bin/jasmine/testRunMap.js +1 -1
  58. package/src/bin/jest/command.js +1 -1
  59. package/src/bin/jest/customImplements/customCircus.js +1 -1
  60. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  61. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  62. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  63. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  64. package/src/bin/jest/jest.setup.js +1 -1
  65. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  66. package/src/bin/jest/test-observability/helper.js +1 -1
  67. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  68. package/src/bin/jest/test-observability/test-details.js +1 -1
  69. package/src/bin/jest/test.setup.js +1 -1
  70. package/src/bin/jest/test_before.setup.js +1 -1
  71. package/src/bin/launcher/launcher.js +1 -1
  72. package/src/bin/load/index.js +1 -1
  73. package/src/bin/load/loadErrors.js +1 -1
  74. package/src/bin/load/loadUtils.js +1 -1
  75. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  76. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  77. package/src/bin/mocha/command.js +1 -1
  78. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  79. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  80. package/src/bin/mocha/test.setup.js +1 -1
  81. package/src/bin/newman/command.js +1 -1
  82. package/src/bin/newman/helper.js +1 -1
  83. package/src/bin/newman/reporter/index.js +1 -1
  84. package/src/bin/newman/scriptRunner.js +1 -1
  85. package/src/bin/nightwatch/command.js +1 -1
  86. package/src/bin/node-generic/client.js +1 -1
  87. package/src/bin/playwright/accessibility-helper.js +1 -1
  88. package/src/bin/playwright/command.js +1 -1
  89. package/src/bin/playwright/globalSetup.js +1 -1
  90. package/src/bin/playwright/mock-process.js +1 -1
  91. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  92. package/src/bin/playwright/patches.js +1 -1
  93. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  94. package/src/bin/playwright/reporter/reporter.js +1 -1
  95. package/src/bin/playwright/reporter/test-details.js +1 -1
  96. package/src/bin/playwright/reporterArgs.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  137. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  138. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  139. package/src/bin/v2/framework/testFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  142. package/src/bin/v2/grpcClient.js +1 -1
  143. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  145. package/src/bin/v2/instances/trackedContext.js +1 -1
  146. package/src/bin/v2/instances/trackedInstance.js +1 -1
  147. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  148. package/src/bin/v2/modules/baseModule.js +1 -1
  149. package/src/bin/v2/modules/loadTestModule.js +1 -1
  150. package/src/bin/v2/modules/observabilityModule.js +1 -1
  151. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  152. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  154. package/src/bin/v2/modules/testhubModule.js +1 -1
  155. package/src/bin/v2/sdkErrorHandler.js +1 -1
  156. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  157. package/src/bin/v2/state/hookState.js +1 -1
  158. package/src/bin/v2/state/testFrameworkState.js +1 -1
  159. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  160. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  161. package/src/bin/v2/utils/jest-utils.js +1 -1
  162. package/src/bin/vanilla-js/command.js +1 -1
  163. package/src/browserStackSdk.js +1 -1
  164. package/src/helpers/BrowserStackSetup.js +1 -1
  165. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  166. package/src/helpers/accessibility-automation/constants.js +1 -1
  167. package/src/helpers/accessibility-automation/helper.js +1 -1
  168. package/src/helpers/accessibility-automation/scripts.js +1 -1
  169. package/src/helpers/ats/constants.js +1 -1
  170. package/src/helpers/ats/helper.js +1 -1
  171. package/src/helpers/caCertHelper.js +1 -1
  172. package/src/helpers/capsMapping.js +1 -1
  173. package/src/helpers/central-scanner/constants.js +1 -1
  174. package/src/helpers/central-scanner/helpers.js +1 -1
  175. package/src/helpers/classLogger.js +1 -1
  176. package/src/helpers/driverInitErrorReporter.js +1 -1
  177. package/src/helpers/globals.js +1 -1
  178. package/src/helpers/helper.js +1 -1
  179. package/src/helpers/logger.js +1 -1
  180. package/src/helpers/metadata.js +1 -1
  181. package/src/helpers/patchHelper.js +1 -1
  182. package/src/helpers/patchHelpers.js +1 -1
  183. package/src/helpers/percy/Percy.js +1 -1
  184. package/src/helpers/percy/PercyBinary.js +1 -1
  185. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  186. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  187. package/src/helpers/percy/PercySDK.js +1 -1
  188. package/src/helpers/percy/index.js +1 -1
  189. package/src/helpers/percy/utils.js +1 -1
  190. package/src/helpers/performance/constants.js +1 -1
  191. package/src/helpers/performance/performance-tester.js +1 -1
  192. package/src/helpers/playwright-helper.js +1 -1
  193. package/src/helpers/processHelper.js +1 -1
  194. package/src/helpers/puppeteer-helper.js +1 -1
  195. package/src/helpers/request-spy.js +1 -1
  196. package/src/helpers/setKeepAlive.js +1 -1
  197. package/src/helpers/stackFrameUtils.js +1 -1
  198. package/src/helpers/test-observability/constants.js +1 -1
  199. package/src/helpers/test-observability/error-handler.js +1 -1
  200. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  201. package/src/helpers/test-observability/sessionHandler.js +1 -1
  202. package/src/helpers/test-observability/utils.js +1 -1
  203. package/src/helpers/test-orchestration/constants.js +1 -1
  204. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  205. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  206. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  207. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  208. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  209. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  210. package/src/helpers/testhub/constants.js +1 -1
  211. package/src/helpers/testhub/testhubHandler.js +1 -1
  212. package/src/helpers/testhub/utils.js +1 -1
  213. package/src/helpers/utilities.js +1 -1
  214. package/src/helpers/w3cMapping.js +1 -1
  215. package/src/hubAllocationMethods.js +1 -1
  216. package/src/index.js +1 -1
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a44_0x38a4f9=a44_0x148d;(function(_0x488aec,_0xb59b92){const _0x134594=a44_0x148d,_0x4e67b8=_0x488aec();while(!![]){try{const _0x1bebdf=parseInt(_0x134594(0x205))/0x1+-parseInt(_0x134594(0x1ca))/0x2+-parseInt(_0x134594(0x1fd))/0x3+parseInt(_0x134594(0x1de))/0x4+-parseInt(_0x134594(0x1f1))/0x5+-parseInt(_0x134594(0x1c8))/0x6+-parseInt(_0x134594(0x1d7))/0x7*(-parseInt(_0x134594(0x1ec))/0x8);if(_0x1bebdf===_0xb59b92)break;else _0x4e67b8['push'](_0x4e67b8['shift']());}catch(_0x3b1953){_0x4e67b8['push'](_0x4e67b8['shift']());}}}(a44_0x150d,0xb2c2d));const fs=require('fs'),path=require('path'),{spawn}=require(a44_0x38a4f9(0x1c4)),logger=require('../../helpers/logger')[a44_0x38a4f9(0x1c7)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),constants=require(a44_0x38a4f9(0x1d5)),getUserNightwatchConfigs=(_0x2e4b0b,_0x5cff4b)=>{const _0x4d9089=a44_0x38a4f9,_0x1588d8={'swBtu':_0x4d9089(0x1ea),'CVdXu':_0x4d9089(0x1cc),'ldXvX':function(_0x194c38,_0x19a3e4){return _0x194c38(_0x19a3e4);},'IFdnh':_0x4d9089(0x1bb)};let _0x360dca=null,_0x3cf294={};const _0x4d63e0=_0x5cff4b['findIndex'](_0x5c00f0=>_0x5c00f0===_0x4d9089(0x1e5)),_0x25b3ca=!helper[_0x4d9089(0x1f9)](_0x2e4b0b['config'])?helper['resolveWithinCwd'](_0x2e4b0b[_0x4d9089(0x1bd)]):null;!helper[_0x4d9089(0x1f9)](_0x2e4b0b['config'])&&!_0x25b3ca&&logger[_0x4d9089(0x1cb)](_0x4d9089(0x1c5)+_0x2e4b0b[_0x4d9089(0x1bd)]+_0x4d9089(0x1e2));if(_0x25b3ca&&fs['existsSync'](_0x25b3ca))_0x360dca=_0x25b3ca,_0x5cff4b[_0x4d9089(0x1fa)](_0x4d63e0,0x2);else{if(fs[_0x4d9089(0x1d2)](path['join'](process[_0x4d9089(0x200)](),_0x1588d8['swBtu'])))_0x360dca=path[_0x4d9089(0x1d4)](process[_0x4d9089(0x200)](),_0x1588d8[_0x4d9089(0x1c9)]);else fs['existsSync'](path[_0x4d9089(0x1d4)](process[_0x4d9089(0x200)](),_0x1588d8[_0x4d9089(0x1ef)]))&&(_0x360dca=path['join'](process['cwd'](),_0x1588d8[_0x4d9089(0x1ef)]));}return _0x360dca?(logger[_0x4d9089(0x1eb)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x360dca),_0x3cf294=_0x1588d8[_0x4d9089(0x1c6)](require,_0x360dca)):logger[_0x4d9089(0x1eb)](_0x1588d8[_0x4d9089(0x1b7)]),_0x3cf294;},removeExistingEnvs=_0xd61c9d=>{const _0xaaa5fc=a44_0x38a4f9,_0x298080={};_0x298080[_0xaaa5fc(0x1ce)]=function(_0x4574d8,_0x2045cf){return _0x4574d8>_0x2045cf;},_0x298080[_0xaaa5fc(0x1b8)]=function(_0x527e14,_0x47938e){return _0x527e14>_0x47938e;};const _0x56c6f9=_0x298080;let _0x7cd494=_0xd61c9d['findIndex'](_0x504195=>_0x504195===_0xaaa5fc(0x1bc));_0x56c6f9[_0xaaa5fc(0x1ce)](_0x7cd494,-0x1)&&_0xd61c9d[_0xaaa5fc(0x1fa)](_0x7cd494,0x2),_0x7cd494=_0xd61c9d[_0xaaa5fc(0x1c2)](_0x20fa50=>_0x20fa50==='-e'),_0x56c6f9['wCFQy'](_0x7cd494,-0x1)&&_0xd61c9d[_0xaaa5fc(0x1fa)](_0x7cd494,0x2);};function run(_0x4a07c1,_0x30831a,_0x132b2f){const _0xf189cf=a44_0x38a4f9,_0x30b337={'rjSQC':'nightwatch','LQChD':function(_0x587605,_0x2d5e07){return _0x587605+_0x2d5e07;},'DgPhQ':_0xf189cf(0x1d3),'nlgkJ':function(_0x2a618f,_0x57a21d,_0x183094){return _0x2a618f(_0x57a21d,_0x183094);},'yukIb':_0xf189cf(0x1e0),'Yngbg':_0xf189cf(0x1ed),'QUZIc':function(_0x4fe882,_0x245c5b){return _0x4fe882===_0x245c5b;},'nIfZU':'nightwatch-browserstack.json','YPyqF':function(_0x5ed699,_0x38a6fd){return _0x5ed699(_0x38a6fd);},'xMOch':_0xf189cf(0x1b6),'CMGok':function(_0x42d59f,_0x4b24de,_0x3b7e15,_0x158c3a){return _0x42d59f(_0x4b24de,_0x3b7e15,_0x158c3a);},'mgnJv':_0xf189cf(0x1f6),'kxsZh':_0xf189cf(0x1e5),'IaSuf':_0xf189cf(0x1bc),'Uvlxy':'inherit','ILVIZ':_0xf189cf(0x1dd)};if(!_0x132b2f[_0xf189cf(0x1bd)])return;const _0x24d27e=_0x30b337[_0xf189cf(0x1fe)](getUserNightwatchConfigs,_0x4a07c1,_0x30831a),_0x3fa960={};_0x3fa960[_0xf189cf(0x1da)]=![];const _0x3df36a={};_0x3df36a['host']=_0x30b337['yukIb'],_0x3df36a[_0xf189cf(0x202)]=0x1bb;const _0x31eca0={};_0x31eca0['webdriver']=_0x3fa960,_0x31eca0['selenium']=_0x3df36a;const _0x5ee12f=_0x31eca0;logger[_0xf189cf(0x1eb)](_0x30b337[_0xf189cf(0x1e6)]);const _0x546380={..._0x24d27e},_0x534888=_0x546380,_0x404da2=helper[_0xf189cf(0x203)](_0x132b2f[_0xf189cf(0x1bd)]),_0x406981=[];_0x132b2f[_0xf189cf(0x1bd)]['platforms'][_0xf189cf(0x1ba)]((_0x121fd7,_0x20225a)=>{const _0x9b5d22=_0xf189cf;_0x404da2?_0x406981[_0x9b5d22(0x1d1)](helper[_0x9b5d22(0x1d0)](_0x132b2f[_0x9b5d22(0x1bd)],_0x30b337[_0x9b5d22(0x1c1)],_0x20225a)):_0x406981[_0x9b5d22(0x1d1)](helper['modifyBrowserStackCaps'](_0x132b2f[_0x9b5d22(0x1bd)],_0x30b337['rjSQC'],_0x20225a));});const _0x236c41={},_0x33106c=[];_0x4a07c1['env']=_0x4a07c1['env']||_0x4a07c1['e'];const _0x1323c6=_0x4a07c1[_0xf189cf(0x1fc)]?_0x4a07c1[_0xf189cf(0x1fc)][_0xf189cf(0x1fb)]()[_0xf189cf(0x1be)](',')['map'](_0x58bdcc=>_0x58bdcc['trim']())[_0xf189cf(0x1df)](_0x141c55=>_0x141c55!==''):[''];_0x30b337[_0xf189cf(0x1f8)](_0x1323c6[_0xf189cf(0x1cf)],0x0)&&_0x1323c6['push']('');_0x1323c6[_0xf189cf(0x1ba)](_0x4f4b36=>{const _0x322042=_0xf189cf,_0x3b8ad1={'RJWFs':function(_0x3904ad,_0x11bd9a){const _0x4f86b7=a44_0x148d;return _0x30b337[_0x4f86b7(0x1ee)](_0x3904ad,_0x11bd9a);},'FbRIo':_0x30b337[_0x322042(0x1e3)]};_0x406981[_0x322042(0x1ba)](_0x46d936=>{const _0x2c2c09=_0x322042;let _0x4a3380=_0x3b8ad1[_0x2c2c09(0x1f7)](helper[_0x2c2c09(0x1f4)](_0x46d936,'_'),'_'+Date[_0x2c2c09(0x1f2)]());_0x4f4b36&&(_0x4a3380+='_'+_0x4f4b36);if(_0x4f4b36&&(!_0x24d27e[_0x3b8ad1[_0x2c2c09(0x1e1)]]||!_0x24d27e[_0x3b8ad1[_0x2c2c09(0x1e1)]][_0x4f4b36]))return;const _0x5b1ed2={..._0x5ee12f};_0x5b1ed2['desiredCapabilities']=_0x46d936;const _0x35d30b=_0x5b1ed2;_0x236c41[_0x4a3380]=_0x4f4b36?helper[_0x2c2c09(0x1b9)](_0x24d27e[_0x3b8ad1[_0x2c2c09(0x1e1)]][_0x4f4b36],_0x35d30b):_0x35d30b,_0x33106c['push'](_0x4a3380);});});!_0x534888[_0xf189cf(0x1d3)]&&(_0x534888[_0xf189cf(0x1d3)]={});_0x534888['test_settings']={..._0x534888[_0xf189cf(0x1d3)],..._0x236c41};const _0xea8698=path[_0xf189cf(0x1d4)](__dirname,_0x30b337['nIfZU']);fs[_0xf189cf(0x1d9)](_0xea8698,JSON[_0xf189cf(0x1db)](_0x534888)),_0x30b337[_0xf189cf(0x1e8)](removeExistingEnvs,_0x30831a);const _0x54b6a3=require[_0xf189cf(0x204)](_0x30b337[_0xf189cf(0x1ff)]),_0x89c4f2=process[_0xf189cf(0x1fc)][_0xf189cf(0x1bf)]||'',_0x4346f0='--require\x20'+JSON[_0xf189cf(0x1db)](_0x54b6a3),_0x39ba2a=_0x89c4f2?_0x89c4f2+'\x20'+_0x4346f0:_0x4346f0,_0x314ccb=Object['assign']({},process[_0xf189cf(0x1fc)],{'NODE_OPTIONS':_0x39ba2a,'BROWSERSTACK_FRAMEWORK':process[_0xf189cf(0x1fc)][_0xf189cf(0x201)]||_0x30b337[_0xf189cf(0x1c1)]}),_0xb75e3e=_0x30b337[_0xf189cf(0x1cd)](spawn,/^win/[_0xf189cf(0x1c3)](process[_0xf189cf(0x1dc)])?_0x30b337[_0xf189cf(0x1e4)]:_0x30b337[_0xf189cf(0x1c1)],[_0x30b337[_0xf189cf(0x1f5)],_0xea8698,..._0x30831a[_0xf189cf(0x1d6)](0x1),_0x30b337['IaSuf'],_0x33106c[_0xf189cf(0x1d4)](',')],{'stdio':_0x30b337[_0xf189cf(0x1c0)],'env':_0x314ccb});_0xb75e3e['on'](_0x30b337['ILVIZ'],async _0x5afe55=>{const _0x1a9f54=_0xf189cf;logger[_0x1a9f54(0x1d8)](_0x1a9f54(0x1f0)+_0x5afe55),logger['info'](_0x1a9f54(0x1f3)+_0xea8698),fs[_0x1a9f54(0x1e9)](_0xea8698);});}module[a44_0x38a4f9(0x1e7)]=run;function a44_0x148d(_0x68853c,_0x325c94){const _0x150d94=a44_0x150d();return a44_0x148d=function(_0x148d8f,_0x596ca2){_0x148d8f=_0x148d8f-0x1b6;let _0x118e81=_0x150d94[_0x148d8f];return _0x118e81;},a44_0x148d(_0x68853c,_0x325c94);}function a44_0x150d(){const _0x2aa115=['port','useW3C','resolve','910514LBikhp','../../index','IFdnh','wCFQy','mergeDeep','forEach','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','--env','config','split','NODE_OPTIONS','Uvlxy','rjSQC','findIndex','test','child_process','Ignoring\x20--config\x20path\x20\x22','ldXvX','winstonLogger','1372440LqyVtu','swBtu','2425468QdWqYj','warn','nightwatch.json','CMGok','mZKke','length','modifyBrowserStackW3CCaps','push','existsSync','test_settings','join','../utils/constants','slice','77RnHUCv','debug','writeFileSync','start_process','stringify','platform','close','597444yQTtmD','filter','hub.browserstack.com','FbRIo','\x22:\x20it\x20resolves\x20outside\x20the\x20project\x20directory.','DgPhQ','mgnJv','--config','Yngbg','exports','YPyqF','unlinkSync','nightwatch.conf.js','info','1324376tdaGJm','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','LQChD','CVdXu','child\x20process\x20exited\x20with\x20code\x20','372610lgnbyb','now','Deleting\x20','getPlatformName','kxsZh','nightwatch.cmd','RJWFs','QUZIc','isUndefined','splice','trim','env','1898073esoeSd','nlgkJ','xMOch','cwd','BROWSERSTACK_FRAMEWORK'];a44_0x150d=function(){return _0x2aa115;};return a44_0x150d();}
2
+ 'use strict';function a44_0x5b8e(){const _0x14979d=['forEach','config','exports','sOmqu','../utils/constants','kMHkr','child_process','cwd','nightwatch-browserstack.json','nightwatch.conf.js','../../helpers/BrowserStackSetup','join','start_process','1861316GsGFkN','nzvkw','test_settings','--env','5470188tCXpiP','filter','KEZhk','\x22:\x20it\x20resolves\x20outside\x20the\x20project\x20directory.','../../helpers/logger','mergeDeep','NOETa','useW3C','test','modifyBrowserStackW3CCaps','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','RNPsU','kwJhK','azFGI','1583010eyEWAz','findIndex','QmKAh','modifyBrowserStackCaps','host','unlinkSync','platform','split','child\x20process\x20exited\x20with\x20code\x20','egCNw','10490459RfOMaf','nightwatch','length','webdriver','986513UEEsIp','nightwatch.cmd','resolveWithinCwd','wBDAa','BROWSERSTACK_FRAMEWORK','push','selenium','resolve','platforms','3166194RpFmsp','assign','--config','trim','env','splice','writeFileSync','port','TJoHd','../../helpers/helper','warn','Deleting\x20','hub.browserstack.com','nightwatch.json','32tlyhOo','15bYnyNC','path','--require\x20','info','5448636WDtQfu','close','Ignoring\x20--config\x20path\x20\x22','inherit','UluxJ','../../index','isUndefined','FwMmH','existsSync','Getting\x20your\x20nightwatch\x20configs\x20from\x20','rGEVC','now','stringify','map'];a44_0x5b8e=function(){return _0x14979d;};return a44_0x5b8e();}function a44_0x2592(_0x15820b,_0x325786){const _0x5b8e3a=a44_0x5b8e();return a44_0x2592=function(_0x259242,_0x24a603){_0x259242=_0x259242-0x1bf;let _0x11ee18=_0x5b8e3a[_0x259242];return _0x11ee18;},a44_0x2592(_0x15820b,_0x325786);}const a44_0x878373=a44_0x2592;(function(_0x429804,_0x4158eb){const _0x1bd515=a44_0x2592,_0x4e0afb=_0x429804();while(!![]){try{const _0x1ec464=-parseInt(_0x1bd515(0x1e3))/0x1+-parseInt(_0x1bd515(0x1d5))/0x2+parseInt(_0x1bd515(0x1ec))/0x3+-parseInt(_0x1bd515(0x1c3))/0x4*(parseInt(_0x1bd515(0x1fb))/0x5)+-parseInt(_0x1bd515(0x1c7))/0x6+parseInt(_0x1bd515(0x1df))/0x7+parseInt(_0x1bd515(0x1fa))/0x8*(parseInt(_0x1bd515(0x1ff))/0x9);if(_0x1ec464===_0x4158eb)break;else _0x4e0afb['push'](_0x4e0afb['shift']());}catch(_0x5dc792){_0x4e0afb['push'](_0x4e0afb['shift']());}}}(a44_0x5b8e,0xd945c));const fs=require('fs'),path=require(a44_0x878373(0x1fc)),{spawn}=require(a44_0x878373(0x213)),logger=require(a44_0x878373(0x1cb))['winstonLogger'],{default:BrowserStackSetup}=require(a44_0x878373(0x1c0)),helper=require(a44_0x878373(0x1f5)),constants=require(a44_0x878373(0x211)),getUserNightwatchConfigs=(_0x3f2c00,_0xdf34)=>{const _0x4ac112=a44_0x878373,_0x4b57d4={'azFGI':_0x4ac112(0x1bf),'NOETa':_0x4ac112(0x1f9),'kMHkr':function(_0x264811,_0x323bfc){return _0x264811(_0x323bfc);},'uFfKR':_0x4ac112(0x1d1)};let _0x4b29bc=null,_0x4e9f0={};const _0x3f1f1c=_0xdf34[_0x4ac112(0x1d6)](_0x4acf5e=>_0x4acf5e===_0x4ac112(0x1ee)),_0xea9a0d=!helper[_0x4ac112(0x205)](_0x3f2c00[_0x4ac112(0x20e)])?helper[_0x4ac112(0x1e5)](_0x3f2c00[_0x4ac112(0x20e)]):null;!helper[_0x4ac112(0x205)](_0x3f2c00[_0x4ac112(0x20e)])&&!_0xea9a0d&&logger[_0x4ac112(0x1f6)](_0x4ac112(0x201)+_0x3f2c00['config']+_0x4ac112(0x1ca));if(_0xea9a0d&&fs[_0x4ac112(0x207)](_0xea9a0d))_0x4b29bc=_0xea9a0d,_0xdf34[_0x4ac112(0x1f1)](_0x3f1f1c,0x2);else{if(fs[_0x4ac112(0x207)](path[_0x4ac112(0x1c1)](process['cwd'](),_0x4b57d4[_0x4ac112(0x1d4)])))_0x4b29bc=path[_0x4ac112(0x1c1)](process['cwd'](),_0x4b57d4[_0x4ac112(0x1d4)]);else fs[_0x4ac112(0x207)](path[_0x4ac112(0x1c1)](process['cwd'](),_0x4b57d4[_0x4ac112(0x1cd)]))&&(_0x4b29bc=path['join'](process[_0x4ac112(0x214)](),_0x4b57d4['NOETa']));}return _0x4b29bc?(logger[_0x4ac112(0x1fe)](_0x4ac112(0x208)+_0x4b29bc),_0x4e9f0=_0x4b57d4[_0x4ac112(0x212)](require,_0x4b29bc)):logger[_0x4ac112(0x1fe)](_0x4b57d4['uFfKR']),_0x4e9f0;},removeExistingEnvs=_0x2aabe1=>{const _0x19bb9d=a44_0x878373,_0x498575={};_0x498575[_0x19bb9d(0x1c4)]=function(_0x1cd520,_0x54b76d){return _0x1cd520>_0x54b76d;};const _0x1113a3=_0x498575;let _0x31cc49=_0x2aabe1[_0x19bb9d(0x1d6)](_0x5b7837=>_0x5b7837==='--env');_0x1113a3[_0x19bb9d(0x1c4)](_0x31cc49,-0x1)&&_0x2aabe1[_0x19bb9d(0x1f1)](_0x31cc49,0x2),_0x31cc49=_0x2aabe1[_0x19bb9d(0x1d6)](_0x456711=>_0x456711==='-e'),_0x1113a3[_0x19bb9d(0x1c4)](_0x31cc49,-0x1)&&_0x2aabe1[_0x19bb9d(0x1f1)](_0x31cc49,0x2);};function run(_0x2b86e3,_0x52131c,_0x2fc37d){const _0x44f2c8=a44_0x878373,_0x34d439={'wBDAa':_0x44f2c8(0x1e0),'sOmqu':function(_0x1be560,_0x4bb5e2){return _0x1be560+_0x4bb5e2;},'FwMmH':'test_settings','QmKAh':function(_0x3e454b,_0x22bb62,_0x227a6e){return _0x3e454b(_0x22bb62,_0x227a6e);},'kwJhK':_0x44f2c8(0x1f8),'UluxJ':'Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','IWTdv':function(_0x3faa46,_0x1dabf2){return _0x3faa46===_0x1dabf2;},'yULut':_0x44f2c8(0x215),'XnfQo':function(_0x2732d4,_0x75dd0a){return _0x2732d4(_0x75dd0a);},'uwiZv':_0x44f2c8(0x204),'KEZhk':function(_0x2d1543,_0x4476d5,_0x3caf3f,_0x150908){return _0x2d1543(_0x4476d5,_0x3caf3f,_0x150908);},'TJoHd':_0x44f2c8(0x1e4),'rGEVC':'--config','RNPsU':_0x44f2c8(0x1c6),'iqOlb':_0x44f2c8(0x202),'egCNw':_0x44f2c8(0x200)};if(!_0x2fc37d['config'])return;const _0x44dbbf=_0x34d439[_0x44f2c8(0x1d7)](getUserNightwatchConfigs,_0x2b86e3,_0x52131c),_0x4c2779={};_0x4c2779[_0x44f2c8(0x1c2)]=![];const _0x26331e={};_0x26331e[_0x44f2c8(0x1d9)]=_0x34d439[_0x44f2c8(0x1d3)],_0x26331e[_0x44f2c8(0x1f3)]=0x1bb;const _0x400d89={};_0x400d89[_0x44f2c8(0x1e2)]=_0x4c2779,_0x400d89[_0x44f2c8(0x1e9)]=_0x26331e;const _0x2a437b=_0x400d89;logger[_0x44f2c8(0x1fe)](_0x34d439[_0x44f2c8(0x203)]);const _0x2a7058={..._0x44dbbf},_0x1a2068=_0x2a7058,_0x599cac=helper[_0x44f2c8(0x1ce)](_0x2fc37d[_0x44f2c8(0x20e)]),_0x1a0418=[];_0x2fc37d[_0x44f2c8(0x20e)][_0x44f2c8(0x1eb)][_0x44f2c8(0x20d)]((_0x3cc29e,_0x257ac0)=>{const _0x425c9f=_0x44f2c8;_0x599cac?_0x1a0418['push'](helper[_0x425c9f(0x1d0)](_0x2fc37d['config'],_0x34d439['wBDAa'],_0x257ac0)):_0x1a0418[_0x425c9f(0x1e8)](helper[_0x425c9f(0x1d8)](_0x2fc37d[_0x425c9f(0x20e)],_0x34d439[_0x425c9f(0x1e6)],_0x257ac0));});const _0xa39c50={},_0x55913e=[];_0x2b86e3[_0x44f2c8(0x1f0)]=_0x2b86e3[_0x44f2c8(0x1f0)]||_0x2b86e3['e'];const _0x3c7a20=_0x2b86e3[_0x44f2c8(0x1f0)]?_0x2b86e3[_0x44f2c8(0x1f0)][_0x44f2c8(0x1ef)]()[_0x44f2c8(0x1dc)](',')[_0x44f2c8(0x20c)](_0xc9a58f=>_0xc9a58f[_0x44f2c8(0x1ef)]())[_0x44f2c8(0x1c8)](_0x2cb33d=>_0x2cb33d!==''):[''];_0x34d439['IWTdv'](_0x3c7a20[_0x44f2c8(0x1e1)],0x0)&&_0x3c7a20['push']('');_0x3c7a20[_0x44f2c8(0x20d)](_0xd74431=>{const _0xef08ca=_0x44f2c8;_0x1a0418[_0xef08ca(0x20d)](_0x50acf9=>{const _0x10bf8b=_0xef08ca;let _0x1cc8f9=_0x34d439[_0x10bf8b(0x210)](helper['getPlatformName'](_0x50acf9,'_'),'_'+Date[_0x10bf8b(0x20a)]());_0xd74431&&(_0x1cc8f9+='_'+_0xd74431);if(_0xd74431&&(!_0x44dbbf[_0x34d439[_0x10bf8b(0x206)]]||!_0x44dbbf[_0x34d439[_0x10bf8b(0x206)]][_0xd74431]))return;const _0xfff0d7={..._0x2a437b};_0xfff0d7['desiredCapabilities']=_0x50acf9;const _0x210bb0=_0xfff0d7;_0xa39c50[_0x1cc8f9]=_0xd74431?helper[_0x10bf8b(0x1cc)](_0x44dbbf[_0x34d439['FwMmH']][_0xd74431],_0x210bb0):_0x210bb0,_0x55913e['push'](_0x1cc8f9);});});!_0x1a2068[_0x44f2c8(0x1c5)]&&(_0x1a2068[_0x44f2c8(0x1c5)]={});_0x1a2068[_0x44f2c8(0x1c5)]={..._0x1a2068[_0x44f2c8(0x1c5)],..._0xa39c50};const _0x4873b5=path[_0x44f2c8(0x1c1)](__dirname,_0x34d439['yULut']);fs[_0x44f2c8(0x1f2)](_0x4873b5,JSON[_0x44f2c8(0x20b)](_0x1a2068)),_0x34d439['XnfQo'](removeExistingEnvs,_0x52131c);const _0x525877=require[_0x44f2c8(0x1ea)](_0x34d439['uwiZv']),_0x1c7604=process['env']['NODE_OPTIONS']||'',_0x80ecd0=_0x44f2c8(0x1fd)+JSON[_0x44f2c8(0x20b)](_0x525877),_0x4b4bf2=_0x1c7604?_0x1c7604+'\x20'+_0x80ecd0:_0x80ecd0,_0x39ec7d=Object[_0x44f2c8(0x1ed)]({},process['env'],{'NODE_OPTIONS':_0x4b4bf2,'BROWSERSTACK_FRAMEWORK':process[_0x44f2c8(0x1f0)][_0x44f2c8(0x1e7)]||_0x34d439[_0x44f2c8(0x1e6)]}),_0x57f659=_0x34d439[_0x44f2c8(0x1c9)](spawn,/^win/[_0x44f2c8(0x1cf)](process[_0x44f2c8(0x1db)])?_0x34d439[_0x44f2c8(0x1f4)]:_0x34d439[_0x44f2c8(0x1e6)],[_0x34d439[_0x44f2c8(0x209)],_0x4873b5,..._0x52131c['slice'](0x1),_0x34d439[_0x44f2c8(0x1d2)],_0x55913e['join'](',')],{'stdio':_0x34d439['iqOlb'],'env':_0x39ec7d});_0x57f659['on'](_0x34d439[_0x44f2c8(0x1de)],async _0x567eb7=>{const _0x1cd67e=_0x44f2c8;logger['debug'](_0x1cd67e(0x1dd)+_0x567eb7),logger['info'](_0x1cd67e(0x1f7)+_0x4873b5),fs[_0x1cd67e(0x1da)](_0x4873b5);});}module[a44_0x878373(0x20f)]=run;
@@ -1 +1 @@
1
- 'use strict';const a45_0x1cf6ba=a45_0x1ce8;function a45_0x1ce8(_0x353419,_0x423fb1){const _0x1b787d=a45_0x1b78();return a45_0x1ce8=function(_0x1ce8b9,_0x3b3fd7){_0x1ce8b9=_0x1ce8b9-0x90;let _0x2c6cce=_0x1b787d[_0x1ce8b9];return _0x2c6cce;},a45_0x1ce8(_0x353419,_0x423fb1);}function a45_0x1b78(){const _0x24c7b3=['[TestClient]\x20start:\x20testHierarchy\x20is\x20required.\x20Call\x20setTestHierarchy()\x20before\x20start().','_sendPlatformDetailsViaGrpc','loadDriverExecuteParams','env','_performAccessibilityScan','QSJzH','[TestClient]\x20start:\x20No\x20test\x20framework\x20available.\x20Binary\x20may\x20not\x20be\x20running.','test','markSessionStatus','[TRACE:node-generic]\x20TestClient.markFailed()\x20test_uuid=','KEY_TEST_SCOPES','zaNiF','DEFAULT_TEST_RESULT','3689469ypMkof','_markSessionStatus','uuid','passed','../../helpers/testhub/constants','TEST','setShouldScanCurrentTest','getAccessibilityModule','getSession','LFyLr','startsWith','11060MmfRvl','sessionNameSet__','provider','1424994hEzbre','ios','substring','match','wydgm','thBuildUuid','\x5cs*[=(]','isAbsolute','setFilePath','[App-A11y]\x20Checkpoint\x202\x20scan\x20failed\x20for\x20test\x20\x27','__workerDetails','WGuYQ','ItBxh','bemOT','frameworkSessionId','appium:platformName','_testName','ULWVi','KEY_TEST_SCOPE','ref','oukXG','JCzgr','(async\x5cs+)?function\x5cs+','__bstackPlatformIndex','BROWSERSTACK_TESTHUB_UUID','performScan','[TestClient]\x20_enableAccessibilityScanning:\x20Error:\x20','nPEWv','YabBj','includes','bstackA11yShouldScan','markPassed','saveTestResults','LbQdx','IuYEt','_callerInfo','SgZXA','[TestClient]\x20Sent\x20platform\x20details\x20for\x20test_uuid=','BoDpG','ljgwo',',\x20test_name=','[TestClient]\x20_detectCallerInfo:\x20Error:\x20','hsLQk','KEY_TEST_FRAMEWORK_VERSION','mzzeg','thTestRunUuid','getGlobal','8996746OQCclC','exports','KEY_TEST_FAILURE_TYPE','\x27:\x20','_startedAt','rcRhh','getCapabilities','[TestClient]\x20_performAccessibilityScan:\x20Error\x20processing\x20accessibility\x20scan\x20for\x20test\x20\x27','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20test\x20\x27','max','stack-trace','aisyo','../v2/browserstackCLI.js','setSessionName','VuOwo','KEY_TEST_FILE_PATH','JPqPL','slice','wLSsP','../../helpers/accessibility-automation/helper','NODE_GENERIC','hnGqn','frameworkName','aZBGD','KjfZR','Exomy','../../helpers/classLogger.js','WiprK','ZNtZC','[TestClient]\x20_enableAccessibilityScanning:\x20a11yModule\x20update\x20failed:\x20','map_','YoVoe','_sendPlatformDetails','centralAuthHeader','RMBeV','vKRVe','52ENChnW','cwAYq','[TestClient]\x20start:\x20Error\x20dispatching\x20TEST\x20PRE\x20event:\x20','[TestClient]\x20a11yModule.setShouldScanCurrentTest(','_testCode','cJUrZ','appium:app','appium','join','|const\x5cs+','getLineNumber','afterTestHook','UmoDn','AssertionError','KEY_TEST_FAILURE','[TestClient]\x20markFailed:\x20start()\x20was\x20not\x20called.\x20Ignoring.','[TestClient]\x20_markSessionStatus:\x20Error:\x20','VoqWv','_enableAccessibilityScanning','Unhzm','toISOString','fromEntries','[TestClient]\x20_markSessionName:\x20Error:\x20',')\x20—\x20Checkpoint\x201\x20gate\x20opened','[TestClient]\x20markPassed:\x20result\x20already\x20marked.\x20Ignoring.','_started','getTestFramework','stringify','finishScanningForCli','error','ENV_VAR','_vcFilePath','1117089TNoIOR','../v2/state/hookState.js','readFileSync','cwd','name','yKKlX','_getTestDrivers','../../helpers/globals','\x27.\x20Error:','__skipSessionName','browserstack','path','getFunctionName','__cloud_provider___','jxSNM','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.',',\x20reason=','action','2shnzOc','parallelIndex','trackEvent','[TestClient]\x20Marked\x20session\x20status\x20\x27','getMethodName','acVlT','_filePath','lineNumber','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.','KEY_TEST_FRAMEWORK_NAME','setGlobal','resolve','KEY_PLATFORM_INDEX','../v2/state/testFrameworkState.js','jCJAB','GGeFC','bxsCX','workerInfo','frameworkVersion','_testHierarchy','hubUrl','[TestClient]\x20_markResult:\x20Error\x20dispatching\x20TEST\x20POST\x20event:\x20','gGrYi','function','pid','info','ACHkF','existsSync','zaaVh','executeAsyncScript','testData','exit','_buildTestData','7DvrzHQ','../v2/modules/accessibilityModule','start','jYCZR','centralAuthToken','11965928AVtIiu','KEY_TEST_UUID','lsasG','vkdmR','android','[TestClient]\x20start:\x20testName\x20is\x20required.\x20Call\x20setTestName()\x20before\x20start().','KEY_TEST_RESULT','../../helpers/helper.js','[TestClient]\x20_extractSourceCode:\x20Error:\x20','getInstance','RPrGS','_resultMarked','rRgaI','_detectCallerInfo','DdRPq','[TestClient]\x20Accessibility\x20shouldScan=','isAppAccessibility','browserstack_executor:\x20','pWaNs','message','__driversArray','[TestClient]\x20markPassed:\x20start()\x20was\x20not\x20called.\x20Ignoring.','1089518dLWPdp','../v2/framework/constants/testFrameworkConstants.js','../v2/grpcClient','stack','../v2/grpcClient.js','pAyYn','SzSDo','10FhdMuP','VYGYS','warn','split','[TRACE:node-generic]\x20TestClient.quit()\x20-\x20shutting\x20down','KEY_TEST_CODE','exitCode','_markSessionName','wZVkq','[TestClient]\x20quit:\x20Error\x20during\x20shutdown:\x20','utf-8','[TRACE:node-generic]\x20TestClient.markPassed()\x20test_uuid=','saveResults','fetchDriverExecuteParamsEvent','debug','BROWSERSTACK_TESTHUB_JWT','szRkd','toString','<anonymous>','../../helpers/test-observability/utils','_testUUID','replace','KEY_TEST_NAME','min','../../helpers/helper','\x5cs*=|','setCurrentTestUUID','now','_extractSourceCode','oTexb','Ettvw','ulxGL','POST','QiVrs','quit','HjkeB','ZxSoW','Sxvoi','setTestHierarchy','BnMUb','_driversAtStart','getFileName','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','cBmpU','setVcFilePath','length','tGxFh','qegVi','node_modules','../../helpers/accessibility-automation/scripts','[TRACE:node-generic]\x20TestClient.start()\x20test_uuid=','base64','ZMSPJ','lhrHC','markFailed','ZLFlE','[TestClient]\x20markFailed:\x20result\x20already\x20marked.\x20Ignoring.'];a45_0x1b78=function(){return _0x24c7b3;};return a45_0x1b78();}(function(_0x375548,_0x55f47b){const _0x147d2b=a45_0x1ce8,_0x4d4195=_0x375548();while(!![]){try{const _0x2c4d5b=-parseInt(_0x147d2b(0xce))/0x1+parseInt(_0x147d2b(0x92))/0x2*(parseInt(_0x147d2b(0x11b))/0x3)+-parseInt(_0x147d2b(0x17c))/0x4*(parseInt(_0x147d2b(0x126))/0x5)+parseInt(_0x147d2b(0x129))/0x6*(parseInt(_0x147d2b(0xb3))/0x7)+parseInt(_0x147d2b(0xb8))/0x8+-parseInt(_0x147d2b(0x19c))/0x9*(parseInt(_0x147d2b(0xd5))/0xa)+-parseInt(_0x147d2b(0x158))/0xb;if(_0x2c4d5b===_0x55f47b)break;else _0x4d4195['push'](_0x4d4195['shift']());}catch(_0x4c563b){_0x4d4195['push'](_0x4d4195['shift']());}}}(a45_0x1b78,0xdc67e));const {v4:uuidv4}=require(a45_0x1cf6ba(0x11d)),fs=require('fs'),path=require(a45_0x1cf6ba(0x1a7)),stackTrace=require(a45_0x1cf6ba(0x162)),{createClassLogger}=require(a45_0x1cf6ba(0x172)),TestFrameworkState=require(a45_0x1cf6ba(0x9f)),HookState=require(a45_0x1cf6ba(0x19d)),TestFrameworkConstants=require(a45_0x1cf6ba(0xcf)),helper=require(a45_0x1cf6ba(0xed)),globals=require(a45_0x1cf6ba(0x1a3)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a45_0x1cf6ba(0x16b)),scripts=require(a45_0x1cf6ba(0x106)),testHubConstants=require(a45_0x1cf6ba(0x11f)),{FRAMEWORKS}=require('../utils/constants'),logger=createClassLogger('TestClient');class TestClient{constructor(){const _0x252b5a=a45_0x1cf6ba,_0x8fdac8={};_0x8fdac8[_0x252b5a(0xc6)]='5|3|7|2|0|4|9|1|10|8|6';const _0x4fe321=_0x8fdac8,_0x2d4b80=_0x4fe321[_0x252b5a(0xc6)][_0x252b5a(0xd8)]('|');let _0x1f3c07=0x0;while(!![]){switch(_0x2d4b80[_0x1f3c07++]){case'0':this[_0x252b5a(0xe9)]=null;continue;case'1':this[_0x252b5a(0xc3)]=![];continue;case'2':this[_0x252b5a(0x19b)]=null;continue;case'3':this[_0x252b5a(0xa5)]=[];continue;case'4':this['_startedAt']=null;continue;case'5':this[_0x252b5a(0x139)]=null;continue;case'6':this[_0x252b5a(0xfd)]=0x0;continue;case'7':this[_0x252b5a(0x98)]=null;continue;case'8':this[_0x252b5a(0x180)]=null;continue;case'9':this['_started']=![];continue;case'10':this[_0x252b5a(0x14c)]=null;continue;}break;}}['setTestName'](_0x5eca77){return this['_testName']=_0x5eca77,this;}[a45_0x1cf6ba(0xfb)](_0x216c4b){return this['_testHierarchy']=Array['isArray'](_0x216c4b)?_0x216c4b:[],this;}[a45_0x1cf6ba(0x131)](_0x50a380){const _0x47076b=a45_0x1cf6ba;return this[_0x47076b(0x98)]=_0x50a380,this;}[a45_0x1cf6ba(0x101)](_0x4a53b2){const _0x1c964e=a45_0x1cf6ba;return this[_0x1c964e(0x19b)]=_0x4a53b2,this;}async[a45_0x1cf6ba(0xb5)](){const _0x11ff0a=a45_0x1cf6ba,_0x47b755={'tuNYJ':_0x11ff0a(0xbd),'BnMUb':function(_0x51b98a,_0x308230){return _0x51b98a===_0x308230;},'YabBj':_0x11ff0a(0x10e),'aisyo':'[TestClient]\x20start:\x20filePath\x20is\x20required.\x20Call\x20setFilePath()\x20before\x20start().','acVlT':function(_0x103a05){return _0x103a05();},'aZBGD':function(_0x452bce,_0x27c4ed){return _0x452bce(_0x27c4ed);},'lsasG':'../v2/browserstackCLI.js','ljgwo':_0x11ff0a(0x114)};if(!this['_testName']){logger[_0x11ff0a(0x199)](_0x47b755['tuNYJ']);return;}if(!this['_testHierarchy']||_0x47b755[_0x11ff0a(0xfc)](this[_0x11ff0a(0xa5)]['length'],0x0)){logger['error'](_0x47b755[_0x11ff0a(0x145)]);return;}if(!this[_0x11ff0a(0x98)]){logger[_0x11ff0a(0x199)](_0x47b755[_0x11ff0a(0x163)]);return;}this['_testUUID']=_0x47b755[_0x11ff0a(0x97)](uuidv4),this[_0x11ff0a(0x15c)]=new Date()[_0x11ff0a(0x190)](),this[_0x11ff0a(0x195)]=!![],this['_driversAtStart']=(global[_0x11ff0a(0xcc)]||[])[_0x11ff0a(0x102)],this[_0x11ff0a(0x18e)]();try{const _0x4eea2d=_0x47b755[_0x11ff0a(0x16f)](require,_0x47b755[_0x11ff0a(0xba)]),_0x270b67=_0x4eea2d[_0x11ff0a(0xc1)]()?.[_0x11ff0a(0x196)]?.();_0x270b67?.[_0x11ff0a(0xef)]&&_0x270b67[_0x11ff0a(0xef)](this[_0x11ff0a(0xe9)]);}catch(_0x111136){}this['_callerInfo']=this[_0x11ff0a(0xc5)]();const _0x3ecf47=path[_0x11ff0a(0x130)](this[_0x11ff0a(0x98)])?this[_0x11ff0a(0x98)]:path['resolve'](process[_0x11ff0a(0x19f)](),this[_0x11ff0a(0x98)]);this[_0x11ff0a(0x180)]=this['_extractSourceCode'](_0x3ecf47,this[_0x11ff0a(0x14c)]?.[_0x11ff0a(0x99)],this[_0x11ff0a(0x14c)]?.['functionName']);const _0x2209e1=this[_0x11ff0a(0xb2)]({[TestFrameworkConstants['KEY_TEST_RESULT']]:TestFrameworkConstants[_0x11ff0a(0x11a)],[TestFrameworkConstants['KEY_TEST_STARTED_AT']]:this['_startedAt']});logger[_0x11ff0a(0xab)](_0x11ff0a(0x107)+this[_0x11ff0a(0xe9)]+_0x11ff0a(0x151)+this[_0x11ff0a(0x139)]);try{const _0x61247c=_0x47b755['aZBGD'](require,_0x47b755[_0x11ff0a(0xba)]),_0x3fd73c=_0x61247c[_0x11ff0a(0xc1)]();if(_0x3fd73c&&_0x3fd73c[_0x11ff0a(0x196)]()){const _0x38867c={};_0x38867c[_0x11ff0a(0xb0)]=_0x2209e1,await _0x3fd73c[_0x11ff0a(0x196)]()['trackEvent'](TestFrameworkState[_0x11ff0a(0x120)],HookState['PRE'],_0x38867c);}else logger[_0x11ff0a(0xd7)](_0x47b755[_0x11ff0a(0x150)]);}catch(_0x5e1dae){logger[_0x11ff0a(0xd7)](_0x11ff0a(0x17e)+_0x5e1dae[_0x11ff0a(0xcb)]);}}[a45_0x1cf6ba(0x1a2)](){const _0x14c614=a45_0x1cf6ba,_0x23d510=global[_0x14c614(0xcc)]||[];return _0x23d510['slice'](this['_driversAtStart']);}async[a45_0x1cf6ba(0xdc)](){const _0x70f094=a45_0x1cf6ba,_0xebe98a={};_0xebe98a[_0x70f094(0x134)]=_0x70f094(0x165);const _0x545a63=_0xebe98a;if(global[_0x70f094(0x1a5)])return;const _0x4770dd=this[_0x70f094(0x1a2)]();for(const _0x15dc31 of _0x4770dd){try{if(_0x15dc31[_0x70f094(0x127)])continue;const _0x9a82ba={};_0x9a82ba['name']=this[_0x70f094(0x139)];const _0x47e23f={};_0x47e23f[_0x70f094(0x91)]=_0x545a63['WGuYQ'],_0x47e23f['arguments']=_0x9a82ba,await _0x15dc31['executeScript'](_0x70f094(0xc9)+JSON[_0x70f094(0x197)](_0x47e23f)),_0x15dc31[_0x70f094(0x127)]=!![],logger[_0x70f094(0xe3)]('[TestClient]\x20Set\x20session\x20name\x20to\x20\x27'+this[_0x70f094(0x139)]+'\x27');}catch(_0x3a2744){logger['debug'](_0x70f094(0x192)+_0x3a2744['message']);}}}async[a45_0x1cf6ba(0x11c)](_0x39295b,_0x33b506){const _0x294569=a45_0x1cf6ba,_0x111a42=this[_0x294569(0x1a2)]();for(const _0x509c6e of _0x111a42){try{await helper[_0x294569(0x116)](_0x509c6e,_0x39295b,_0x33b506),logger['debug'](_0x294569(0x95)+_0x39295b+'\x27');}catch(_0x28108b){logger[_0x294569(0xe3)](_0x294569(0x18c)+_0x28108b[_0x294569(0xcb)]);}}}async['_sendPlatformDetails'](){const _0x2460b0=a45_0x1cf6ba,_0x1ee42b={'RPrGS':function(_0x4410c2,_0x286bcf){return _0x4410c2(_0x286bcf);},'DOKsA':'../v2/browserstackCLI.js','pWaNs':function(_0x160cd3,_0x39983d){return _0x160cd3(_0x39983d);},'tjYWO':_0x2460b0(0xe8),'wZVkq':function(_0x178a4a,_0xa45db3,_0x2d8342,_0xaa319a,_0x50cbb8){return _0x178a4a(_0xa45db3,_0x2d8342,_0xaa319a,_0x50cbb8);}},_0x1bfedc=this['_getTestDrivers']();for(const _0x2f12f7 of _0x1bfedc){try{const _0x31516c=_0x1ee42b[_0x2460b0(0xc2)](require,_0x1ee42b['DOKsA']),_0x5efc52=_0x31516c[_0x2460b0(0xc1)]();if(_0x5efc52&&_0x5efc52['isCliEnabled']())await this['_sendPlatformDetailsViaGrpc'](_0x2f12f7);else{const {sendPlatformDetails:_0x45b45b}=_0x1ee42b[_0x2460b0(0xca)](require,_0x1ee42b['tjYWO']);await _0x1ee42b[_0x2460b0(0xdd)](_0x45b45b,_0x2f12f7,this['_testUUID'],![],!![]);}logger[_0x2460b0(0xe3)](_0x2460b0(0x14e)+this[_0x2460b0(0xe9)]);}catch(_0x1d0c5a){logger[_0x2460b0(0xe3)]('[TestClient]\x20_sendPlatformDetails:\x20Error:\x20'+_0x1d0c5a[_0x2460b0(0xcb)]);}}}async[a45_0x1cf6ba(0x10f)](_0x501b5a){const _0x3e898e=a45_0x1cf6ba,_0x43491f={'pAyYn':function(_0x36c539,_0x27f029){return _0x36c539(_0x27f029);},'Ettvw':_0x3e898e(0xd2),'VYGYS':_0x3e898e(0xbf),'YoVoe':'../v2/state/testFrameworkState.js','rcRhh':function(_0x2e3be6,_0x3ec8f8){return _0x2e3be6(_0x3ec8f8);},'GGeFC':_0x3e898e(0x19d),'bxsCX':_0x3e898e(0x138),'zaNiF':'platformName','SgZXA':function(_0x1b80bc,_0x53beee){return _0x1b80bc(_0x53beee);},'cwAYq':_0x3e898e(0x182),'ItBxh':_0x3e898e(0xbc),'SzSDo':_0x3e898e(0x12a),'vKRVe':_0x3e898e(0x183),'nPEWv':'selenium-webdriver','szRkd':function(_0xeb29a9){return _0xeb29a9();},'QSJzH':_0x3e898e(0x1a6),'hdFVd':function(_0x59abb2){return _0x59abb2();},'RMBeV':_0x3e898e(0x108),'jYCZR':function(_0x2f6909,_0x39567f){return _0x2f6909(_0x39567f);}},_0x2c6b0f=_0x43491f['pAyYn'](require,_0x43491f[_0x3e898e(0xf3)]),{getProductForSession:_0x399117,isBrowserstackInfra:_0x46b084}=_0x43491f[_0x3e898e(0xd3)](require,_0x43491f[_0x3e898e(0xd6)]),_0x489e55=_0x43491f[_0x3e898e(0xd3)](require,_0x43491f[_0x3e898e(0x177)]),_0x6c9773=_0x43491f['rcRhh'](require,_0x43491f[_0x3e898e(0xa1)]),_0x370afd=await _0x501b5a[_0x3e898e(0x123)](),_0x2c9353=_0x370afd['getId'](),_0x2af83c=_0x370afd[_0x3e898e(0x15e)]()[_0x3e898e(0x176)],_0x5a1fcb=_0x2af83c?Object[_0x3e898e(0x191)](_0x2af83c):{},_0xcdc2e5=_0x43491f['pAyYn'](String,_0x5a1fcb[_0x43491f[_0x3e898e(0xa2)]]||_0x5a1fcb[_0x43491f[_0x3e898e(0x119)]]||'')['toLowerCase'](),_0xc94e6a=_0x43491f[_0x3e898e(0x14d)](Boolean,_0x5a1fcb[_0x43491f[_0x3e898e(0xa2)]]||_0x5a1fcb[_0x43491f[_0x3e898e(0x17d)]]||_0xcdc2e5&&[_0x43491f[_0x3e898e(0x135)],_0x43491f[_0x3e898e(0xd4)]]['includes'](_0xcdc2e5)),_0x22e9d1=_0xc94e6a?_0x43491f[_0x3e898e(0x17b)]:_0x43491f[_0x3e898e(0x144)],_0x374049=_0x43491f[_0x3e898e(0xe5)](_0x46b084)?_0x43491f[_0x3e898e(0x113)]:global[_0x3e898e(0x1a9)]||_0x43491f[_0x3e898e(0x113)],_0xd42a8c=_0x43491f['hdFVd'](_0x399117)||null,_0x4a9da5={};_0x4a9da5[_0x3e898e(0x128)]=_0x374049,_0x4a9da5[_0x3e898e(0x16e)]=_0x22e9d1,_0x4a9da5[_0x3e898e(0xa4)]='',_0x4a9da5[_0x3e898e(0x137)]=_0x2c9353,_0x4a9da5[_0x3e898e(0x13c)]=_0x2c9353,_0x4a9da5[_0x3e898e(0xa6)]='',_0x4a9da5['product']=_0xd42a8c;const _0x173fa9=_0x4a9da5,_0x582846=Buffer['from'](JSON['stringify'](_0x5a1fcb))['toString'](_0x43491f[_0x3e898e(0x17a)]),_0x16e978=_0x489e55[_0x3e898e(0x120)][_0x3e898e(0xe6)]()[_0x3e898e(0xd8)]('.')[0x1],_0x330747=_0x6c9773[_0x3e898e(0xf5)][_0x3e898e(0xe6)]()['split']('.')[0x1],_0x21b2a1=global?.[_0x3e898e(0x133)]?.['workerInfo']?.[_0x3e898e(0x93)]||global[_0x3e898e(0x140)]||0x0,_0xbb13d1={'platformIndex':_0x21b2a1,'testFrameworkName':FRAMEWORKS[_0x3e898e(0x16c)],'testFrameworkVersion':'','testFrameworkState':_0x16e978,'testHookState':_0x330747,'testUuid':this[_0x3e898e(0xe9)],'automationSession':_0x173fa9,'capabilities':_0x582846,'executionContext':{'hash':this[_0x3e898e(0xe9)],'threadId':_0x43491f[_0x3e898e(0x15d)](String,process[_0x3e898e(0xaa)]),'processId':_0x43491f[_0x3e898e(0xb6)](String,process[_0x3e898e(0xaa)])}};logger[_0x3e898e(0xe3)]('[TestClient]\x20Sending\x20CBTSession\x20via\x20gRPC\x20for\x20session_id='+_0x2c9353+',\x20test_uuid='+this[_0x3e898e(0xe9)]),await _0x2c6b0f[_0x3e898e(0xc1)]()['testSessionEvent'](_0xbb13d1);}async['_markResult'](_0x2c19c5,_0x23546a,_0x32bb44){const _0x18b7bb=a45_0x1cf6ba,_0x579d9d={'HBvTK':function(_0x31ced9,_0x32d2cc){return _0x31ced9(_0x32d2cc);},'JCzgr':_0x18b7bb(0x164)};await this['_markSessionName'](),await this['_markSessionStatus'](_0x23546a,_0x32bb44),await this[_0x18b7bb(0x178)](),await this[_0x18b7bb(0x112)]();try{const _0x203774=_0x579d9d['HBvTK'](require,_0x579d9d[_0x18b7bb(0x13e)]),_0xa2229b=_0x203774[_0x18b7bb(0xc1)]();if(_0xa2229b&&_0xa2229b[_0x18b7bb(0x196)]()){const _0x22b9c5={};_0x22b9c5[_0x18b7bb(0xb0)]=_0x2c19c5,await _0xa2229b['getTestFramework']()[_0x18b7bb(0x94)](TestFrameworkState[_0x18b7bb(0x120)],HookState[_0x18b7bb(0xf5)],_0x22b9c5);}}catch(_0x3e09b9){logger[_0x18b7bb(0xd7)](_0x18b7bb(0xa7)+_0x3e09b9['message']);}}async[a45_0x1cf6ba(0x148)](){const _0x377a99=a45_0x1cf6ba,_0x44c79f={};_0x44c79f[_0x377a99(0x13d)]=_0x377a99(0xcd),_0x44c79f[_0x377a99(0x173)]=_0x377a99(0x194),_0x44c79f[_0x377a99(0xac)]=_0x377a99(0x11e);const _0x7626d7=_0x44c79f;if(!this[_0x377a99(0x195)]){logger[_0x377a99(0xd7)](_0x7626d7[_0x377a99(0x13d)]);return;}if(this[_0x377a99(0xc3)]){logger['warn'](_0x7626d7[_0x377a99(0x173)]);return;}this[_0x377a99(0xc3)]=!![];const _0xc9f4b6=new Date()[_0x377a99(0x190)](),_0x6d27eb={[TestFrameworkConstants[_0x377a99(0xbe)]]:_0x7626d7[_0x377a99(0xac)],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0xc9f4b6},_0x1f67ad=this[_0x377a99(0xb2)](_0x6d27eb);logger[_0x377a99(0xab)](_0x377a99(0xe0)+this[_0x377a99(0xe9)]),await this['_markResult'](_0x1f67ad,_0x7626d7['ACHkF'],null);}async[a45_0x1cf6ba(0x10b)](_0x2505a6){const _0x1bfeb8=a45_0x1cf6ba,_0x4bd462={'VoqWv':_0x1bfeb8(0x18b),'VuOwo':_0x1bfeb8(0x10d),'vkdmR':function(_0x31333d,_0x5f4030){return _0x31333d(_0x5f4030);},'wydgm':'Unknown\x20error','IuYEt':'Assert','gGrYi':_0x1bfeb8(0x189),'JTZhM':'UnhandledError','BoDpG':'failed'};if(!this['_started']){logger[_0x1bfeb8(0xd7)](_0x4bd462[_0x1bfeb8(0x18d)]);return;}if(this[_0x1bfeb8(0xc3)]){logger[_0x1bfeb8(0xd7)](_0x4bd462[_0x1bfeb8(0x166)]);return;}this[_0x1bfeb8(0xc3)]=!![];const _0x2c2596=new Date()[_0x1bfeb8(0x190)](),_0xd09b83=_0x2505a6?_0x2505a6[_0x1bfeb8(0xcb)]||_0x4bd462[_0x1bfeb8(0xbb)](String,_0x2505a6):_0x4bd462[_0x1bfeb8(0x12d)],_0x1476a7=_0x2505a6&&_0x2505a6[_0x1bfeb8(0x1a0)]&&_0x2505a6[_0x1bfeb8(0x1a0)][_0x1bfeb8(0x146)](_0x4bd462[_0x1bfeb8(0x14b)])?_0x4bd462[_0x1bfeb8(0xa8)]:_0x4bd462['JTZhM'],_0x550876=_0x2505a6?[{'backtrace':_0x2505a6[_0x1bfeb8(0xd1)]?_0x2505a6[_0x1bfeb8(0xd1)][_0x1bfeb8(0xd8)]('\x0a'):[],'message':_0xd09b83}]:[],_0x308ff7={[TestFrameworkConstants[_0x1bfeb8(0xbe)]]:_0x4bd462['BoDpG'],[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x2c2596,[TestFrameworkConstants[_0x1bfeb8(0x15a)]]:_0x1476a7,[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]:_0xd09b83,[TestFrameworkConstants[_0x1bfeb8(0x18a)]]:_0x550876},_0x411a72=this[_0x1bfeb8(0xb2)](_0x308ff7);logger[_0x1bfeb8(0xab)](_0x1bfeb8(0x117)+this[_0x1bfeb8(0xe9)]+_0x1bfeb8(0x90)+_0xd09b83[_0x1bfeb8(0x12b)](0x0,0xc8)),await this['_markResult'](_0x411a72,_0x4bd462[_0x1bfeb8(0x14f)],_0xd09b83);}static async[a45_0x1cf6ba(0xf7)](){const _0x62a025=a45_0x1cf6ba,_0x3871cf={'tGxFh':_0x62a025(0xd9),'Sxvoi':function(_0x3ddaa2,_0x472117){return _0x3ddaa2(_0x472117);},'ZMSPJ':_0x62a025(0x164)};logger[_0x62a025(0xab)](_0x3871cf[_0x62a025(0x103)]);try{const _0x333aed=_0x3871cf[_0x62a025(0xfa)](require,_0x3871cf[_0x62a025(0x109)]);await _0x333aed[_0x62a025(0xc1)]()['stop']();}catch(_0xa149f8){logger[_0x62a025(0xd7)](_0x62a025(0xde)+_0xa149f8['message']);}process[_0x62a025(0xb1)](process[_0x62a025(0xdb)]||0x0);}[a45_0x1cf6ba(0x18e)](){const _0xc0e618=a45_0x1cf6ba,_0x402ef1={'hsLQk':function(_0x2f3f63,_0xdbd819,_0x5e56ed){return _0x2f3f63(_0xdbd819,_0x5e56ed);},'LbQdx':_0xc0e618(0x147),'ZNtZC':function(_0xa0fd4a,_0x3cff34){return _0xa0fd4a(_0x3cff34);},'JPqPL':_0xc0e618(0x164),'lhrHC':function(_0xdd813f,_0x195c4f){return _0xdd813f===_0x195c4f;},'QiVrs':_0xc0e618(0xa9)};try{const _0x35ad95=_0x402ef1[_0xc0e618(0x153)](shouldScanTestForAccessibility,this[_0xc0e618(0x139)],![]);globals[_0xc0e618(0x9c)](_0x402ef1[_0xc0e618(0x14a)],_0x35ad95),logger['debug'](_0xc0e618(0xc7)+_0x35ad95+'\x20for\x20\x27'+this[_0xc0e618(0x139)]+'\x27');try{const _0x5b2f60=_0x402ef1[_0xc0e618(0x174)](require,_0x402ef1[_0xc0e618(0x168)]),_0x3107ea=_0x5b2f60[_0xc0e618(0xc1)](),_0x2b4982=_0x3107ea&&_0x3107ea[_0xc0e618(0x122)]&&_0x3107ea[_0xc0e618(0x122)]();_0x2b4982&&_0x402ef1[_0xc0e618(0x10a)](typeof _0x2b4982[_0xc0e618(0x121)],_0x402ef1[_0xc0e618(0xf6)])&&(_0x2b4982['setShouldScanCurrentTest'](_0x35ad95),logger[_0xc0e618(0xe3)](_0xc0e618(0x17f)+_0x35ad95+_0xc0e618(0x193)));}catch(_0x3d7d24){logger[_0xc0e618(0xe3)](_0xc0e618(0x175)+_0x3d7d24[_0xc0e618(0xcb)]);}}catch(_0x161a40){logger['debug'](_0xc0e618(0x143)+_0x161a40[_0xc0e618(0xcb)]);}}async['_performAccessibilityScan'](){const _0x40d082=a45_0x1cf6ba,_0x4ed0eb={'rRgaI':function(_0x46e284){return _0x46e284();},'mzzeg':'isAccessibilityPlatform','UmoDn':_0x40d082(0x147),'bemOT':function(_0x22355d,_0x4a1d8a){return _0x22355d===_0x4a1d8a;},'ZLFlE':_0x40d082(0x9a),'oTexb':function(_0x23266b,_0x202dce){return _0x23266b(_0x202dce);},'zaaVh':_0x40d082(0x164),'TPwxO':_0x40d082(0xd0),'HDWZY':'accessibility','cBmpU':_0x40d082(0xe1),'wLSsP':function(_0x401f9e,_0x429fe6){return _0x401f9e(_0x429fe6);},'Unhzm':_0x40d082(0xb4),'Exomy':_0x40d082(0x187),'mglTb':'Performing\x20scan\x20before\x20saving\x20results','ULWVi':_0x40d082(0x1ab)};try{if(!_0x4ed0eb[_0x40d082(0xc4)](isAccessibilityAutomationSession)||!globals[_0x40d082(0x157)](_0x4ed0eb[_0x40d082(0x155)])||!globals[_0x40d082(0x157)](_0x4ed0eb[_0x40d082(0x188)]))return;const _0x1f7cae=this[_0x40d082(0x1a2)]();if(_0x4ed0eb[_0x40d082(0x136)](_0x1f7cae[_0x40d082(0x102)],0x0))return;logger[_0x40d082(0xab)](_0x4ed0eb[_0x40d082(0x10c)]);const _0x47cafa=_0x4ed0eb[_0x40d082(0xf2)](require,_0x4ed0eb[_0x40d082(0xae)]),_0x1a9003=_0x47cafa[_0x40d082(0xc1)](),_0x1aeda3=_0x1a9003&&_0x1a9003['getAccessibilityModule']();if(_0x1aeda3&&_0x1aeda3[_0x40d082(0xc8)]){const _0x52da3d=this['_testUUID'],_0x45c70b=process[_0x40d082(0x111)][testHubConstants[_0x40d082(0x19a)][_0x40d082(0x141)]]||'',_0x26021d=process[_0x40d082(0x111)][testHubConstants[_0x40d082(0x19a)][_0x40d082(0xe4)]]||'',_0x5191b7=process[_0x40d082(0x111)]['BS_A11Y_JWT']||'';let _0x504780={};try{const _0x4eee5b=_0x4ed0eb[_0x40d082(0xf2)](require,_0x4ed0eb['TPwxO']),_0x2f6b5a=await _0x4eee5b[_0x40d082(0xc1)]()[_0x40d082(0xe2)](process['env']['BROWSERSTACK_CLI_BIN_SESSION_ID'],_0x4ed0eb['HDWZY'],_0x4ed0eb[_0x40d082(0x100)]),_0x1cecd3=_0x4ed0eb[_0x40d082(0x16a)](require,_0x4ed0eb[_0x40d082(0x18f)]);_0x504780=_0x1cecd3[_0x40d082(0x110)](_0x52da3d,_0x2f6b5a)||{};}catch(_0x28f0d7){logger[_0x40d082(0xd7)]('[App-A11y]\x20Could\x20not\x20fetch\x20central\x20auth\x20config:\x20'+_0x28f0d7['message']);}const _0x1ed3bc=Object['assign']({},{'thTestRunUuid':_0x52da3d,'thBuildUuid':_0x45c70b,'thJwtToken':_0x26021d,'authHeader':_0x5191b7,'method':this['_testName']||_0x4ed0eb[_0x40d082(0x171)],'scanTimestamp':Date[_0x40d082(0xf0)]()[_0x40d082(0xe6)]()},_0x504780);_0x1ed3bc[_0x40d082(0xb7)]&&(_0x1ed3bc[_0x40d082(0x179)]=_0x1ed3bc[_0x40d082(0xb7)],delete _0x1ed3bc['centralAuthToken']);for(const _0x444e3b of _0x1f7cae){try{await _0x1aeda3[_0x40d082(0x198)](!![],_0x52da3d,_0x444e3b,_0x1ed3bc,!![]);}catch(_0x11b9be){logger[_0x40d082(0x199)](_0x40d082(0x132)+this[_0x40d082(0x139)]+_0x40d082(0x1a4),_0x11b9be);}}}else{const _0x1eca51={};_0x1eca51[_0x40d082(0x156)]=this[_0x40d082(0xe9)],_0x1eca51[_0x40d082(0x12e)]=process[_0x40d082(0x111)][testHubConstants[_0x40d082(0x19a)][_0x40d082(0x141)]],_0x1eca51['thJwtToken']=process[_0x40d082(0x111)][testHubConstants[_0x40d082(0x19a)]['BROWSERSTACK_TESTHUB_JWT']];const _0xce2b9c=_0x1eca51;logger[_0x40d082(0xe3)](_0x40d082(0xff)+JSON[_0x40d082(0x197)](_0xce2b9c));for(const _0x346ccd of _0x1f7cae){try{logger['debug'](_0x4ed0eb['mglTb']);const _0x2da64a={};_0x2da64a['method']=this[_0x40d082(0x139)],await _0x346ccd[_0x40d082(0xaf)](scripts[_0x40d082(0x142)],_0x2da64a),await _0x346ccd[_0x40d082(0xaf)](scripts[_0x40d082(0x149)],_0xce2b9c);}catch(_0xca91d7){logger[_0x40d082(0x199)](_0x40d082(0x160)+this[_0x40d082(0x139)]+_0x40d082(0x1a4),_0xca91d7);}}}logger[_0x40d082(0xab)](_0x4ed0eb[_0x40d082(0x13a)]);}catch(_0x2d6169){logger[_0x40d082(0xd7)](_0x40d082(0x15f)+this['_testName']+_0x40d082(0x15b)+_0x2d6169[_0x40d082(0xcb)]);}}[a45_0x1cf6ba(0xb2)](_0x25c897={}){const _0x241522=a45_0x1cf6ba;return{[TestFrameworkConstants[_0x241522(0xb9)]]:this[_0x241522(0xe9)],'test_uuid':this[_0x241522(0xe9)],[TestFrameworkConstants[_0x241522(0xeb)]]:this[_0x241522(0x139)],[TestFrameworkConstants[_0x241522(0x13b)]]:this[_0x241522(0xa5)][0x0]||'',[TestFrameworkConstants[_0x241522(0x118)]]:this['_testHierarchy'],[TestFrameworkConstants[_0x241522(0x167)]]:this[_0x241522(0x98)]?path[_0x241522(0x9d)](process[_0x241522(0x19f)](),this[_0x241522(0x98)]):null,[TestFrameworkConstants['KEY_TEST_LOCATION']]:this['_filePath']?path[_0x241522(0x9d)](process[_0x241522(0x19f)](),this['_filePath']):null,[TestFrameworkConstants[_0x241522(0xda)]]:this[_0x241522(0x180)],[TestFrameworkConstants['KEY_TEST_TAGS']]:[],[TestFrameworkConstants['KEY_TEST_RERUN_NAME']]:this[_0x241522(0x139)],[TestFrameworkConstants[_0x241522(0x9b)]]:FRAMEWORKS[_0x241522(0x16c)],[TestFrameworkConstants[_0x241522(0x154)]]:'',[TestFrameworkConstants[_0x241522(0x9e)]]:global?.[_0x241522(0x133)]?.[_0x241522(0xa3)]?.[_0x241522(0x93)]||global[_0x241522(0x140)]||0x0,..._0x25c897};}['_detectCallerInfo'](){const _0x5bd23b=a45_0x1cf6ba,_0xd23813={};_0xd23813[_0x5bd23b(0x1aa)]=_0x5bd23b(0x105);const _0x533d8e=_0xd23813;try{const _0x25fbf4=stackTrace['parse'](new Error()),_0x51f0a1=path[_0x5bd23b(0x9d)](__dirname,'..','..');for(const _0x291aa5 of _0x25fbf4){const _0x3a7d78=_0x291aa5[_0x5bd23b(0xfe)]();if(_0x3a7d78&&!_0x3a7d78['includes'](_0x533d8e[_0x5bd23b(0x1aa)])&&!_0x3a7d78[_0x5bd23b(0x125)](_0x51f0a1))return{'functionName':_0x291aa5[_0x5bd23b(0x1a8)]()||_0x291aa5[_0x5bd23b(0x96)]()||null,'fileName':_0x3a7d78,'lineNumber':_0x291aa5[_0x5bd23b(0x186)]()};}return null;}catch(_0x4b354a){return logger[_0x5bd23b(0xe3)](_0x5bd23b(0x152)+_0x4b354a[_0x5bd23b(0xcb)]),null;}}[a45_0x1cf6ba(0xf1)](_0x5d3c68,_0x8cfa72,_0x2582e5){const _0x5f57eb=a45_0x1cf6ba,_0x32ec74={};_0x32ec74[_0x5f57eb(0xf9)]=_0x5f57eb(0xdf),_0x32ec74[_0x5f57eb(0xf4)]=function(_0x2460b1,_0x3c40bb){return _0x2460b1!==_0x3c40bb;},_0x32ec74[_0x5f57eb(0x1a1)]=_0x5f57eb(0xe7),_0x32ec74[_0x5f57eb(0x16d)]='\x5c$&',_0x32ec74[_0x5f57eb(0x170)]=function(_0x36c905,_0x371357){return _0x36c905<_0x371357;},_0x32ec74[_0x5f57eb(0xf8)]=function(_0x1de431,_0xc218ff){return _0x1de431+_0xc218ff;},_0x32ec74[_0x5f57eb(0x181)]=function(_0x478982,_0x458b15){return _0x478982>_0x458b15;},_0x32ec74[_0x5f57eb(0x104)]=function(_0x4abc65,_0x339691){return _0x4abc65-_0x339691;},_0x32ec74[_0x5f57eb(0xa0)]=function(_0x2dc07e,_0x2ca726){return _0x2dc07e+_0x2ca726;},_0x32ec74[_0x5f57eb(0x124)]=function(_0x4e15b2,_0x46240e){return _0x4e15b2>=_0x46240e;};const _0x504322=_0x32ec74;try{if(!_0x5d3c68||!fs[_0x5f57eb(0xad)](_0x5d3c68))return null;const _0x1bb76a=fs[_0x5f57eb(0x19e)](_0x5d3c68,_0x504322[_0x5f57eb(0xf9)]),_0x23e388=_0x1bb76a[_0x5f57eb(0xd8)]('\x0a');if(_0x2582e5&&_0x504322[_0x5f57eb(0xf4)](_0x2582e5,_0x504322[_0x5f57eb(0x1a1)])){const _0x41be85=_0x2582e5[_0x5f57eb(0xea)](/[.*+?^${}()|[\]\\]/g,_0x504322[_0x5f57eb(0x16d)]),_0x3e4604=new RegExp(_0x5f57eb(0x13f)+_0x41be85+_0x5f57eb(0x185)+_0x41be85+_0x5f57eb(0xee)+_0x41be85+_0x5f57eb(0x12f));for(let _0x5e5b0e=0x0;_0x504322[_0x5f57eb(0x170)](_0x5e5b0e,_0x23e388[_0x5f57eb(0x102)]);_0x5e5b0e++){if(_0x3e4604[_0x5f57eb(0x115)](_0x23e388[_0x5e5b0e])){const _0x2fa8db=Math[_0x5f57eb(0xec)](_0x504322['HjkeB'](_0x5e5b0e,0x32),_0x23e388[_0x5f57eb(0x102)]);return _0x23e388[_0x5f57eb(0x169)](_0x5e5b0e,_0x2fa8db)[_0x5f57eb(0x184)]('\x0a');}}}if(_0x8cfa72&&_0x504322['cJUrZ'](_0x8cfa72,0x0)){const _0x56e441=Math[_0x5f57eb(0x161)](0x0,_0x504322[_0x5f57eb(0x104)](_0x8cfa72,0x5)),_0x5e6e2c=Math[_0x5f57eb(0xec)](_0x23e388[_0x5f57eb(0x102)],_0x504322['jCJAB'](_0x8cfa72,0x2d));return _0x23e388[_0x5f57eb(0x169)](_0x56e441,_0x5e6e2c)[_0x5f57eb(0x184)]('\x0a');}const _0x3f4cd0=_0x23e388['findIndex'](_0x5d0505=>!_0x5d0505[_0x5f57eb(0x12c)](/^(const|let|var|import)\s.*require|^import\s/));if(_0x504322['LFyLr'](_0x3f4cd0,0x0))return _0x23e388[_0x5f57eb(0x169)](_0x3f4cd0,_0x504322[_0x5f57eb(0xf8)](_0x3f4cd0,0x64))[_0x5f57eb(0x184)]('\x0a');return null;}catch(_0x1af655){return logger[_0x5f57eb(0xe3)](_0x5f57eb(0xc0)+_0x1af655[_0x5f57eb(0xcb)]),null;}}}module[a45_0x1cf6ba(0x159)]=TestClient;
1
+ 'use strict';const a45_0x640d73=a45_0x5e11;(function(_0x47d480,_0xd00695){const _0x46e000=a45_0x5e11,_0x1a5690=_0x47d480();while(!![]){try{const _0x1b3db8=-parseInt(_0x46e000(0x160))/0x1+parseInt(_0x46e000(0x131))/0x2*(parseInt(_0x46e000(0x182))/0x3)+parseInt(_0x46e000(0x175))/0x4*(parseInt(_0x46e000(0x130))/0x5)+-parseInt(_0x46e000(0x1cb))/0x6*(parseInt(_0x46e000(0x148))/0x7)+parseInt(_0x46e000(0x137))/0x8+parseInt(_0x46e000(0x195))/0x9+-parseInt(_0x46e000(0xf2))/0xa;if(_0x1b3db8===_0xd00695)break;else _0x1a5690['push'](_0x1a5690['shift']());}catch(_0x35b408){_0x1a5690['push'](_0x1a5690['shift']());}}}(a45_0x5069,0xdc09c));const {v4:uuidv4}=require('uuid'),fs=require('fs'),path=require(a45_0x640d73(0x107)),stackTrace=require(a45_0x640d73(0x158)),{createClassLogger}=require(a45_0x640d73(0x187)),TestFrameworkState=require(a45_0x640d73(0x119)),HookState=require(a45_0x640d73(0x159)),TestFrameworkConstants=require(a45_0x640d73(0xe3)),helper=require(a45_0x640d73(0x116)),globals=require(a45_0x640d73(0x18e)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a45_0x640d73(0xfd)),scripts=require(a45_0x640d73(0x13e)),testHubConstants=require(a45_0x640d73(0x1c4)),{FRAMEWORKS}=require(a45_0x640d73(0x1dd)),logger=createClassLogger(a45_0x640d73(0xf7));class TestClient{constructor(){const _0x216aea=a45_0x640d73,_0x51d4ad={};_0x51d4ad[_0x216aea(0x1a1)]=_0x216aea(0x168);const _0x1085ec=_0x51d4ad,_0x460013=_0x1085ec[_0x216aea(0x1a1)][_0x216aea(0x170)]('|');let _0x1c5369=0x0;while(!![]){switch(_0x460013[_0x1c5369++]){case'0':this[_0x216aea(0x180)]=null;continue;case'1':this[_0x216aea(0x192)]=null;continue;case'2':this[_0x216aea(0x1b1)]=0x0;continue;case'3':this['_filePath']=null;continue;case'4':this[_0x216aea(0x151)]=null;continue;case'5':this[_0x216aea(0xf5)]=null;continue;case'6':this[_0x216aea(0x167)]=[];continue;case'7':this[_0x216aea(0x155)]=![];continue;case'8':this[_0x216aea(0x1ad)]=null;continue;case'9':this[_0x216aea(0x136)]=null;continue;case'10':this[_0x216aea(0x1d1)]=![];continue;}break;}}[a45_0x640d73(0x129)](_0x5f427d){return this['_testName']=_0x5f427d,this;}['setTestHierarchy'](_0x5de465){const _0x55ce2f=a45_0x640d73;return this['_testHierarchy']=Array[_0x55ce2f(0xc9)](_0x5de465)?_0x5de465:[],this;}[a45_0x640d73(0x13d)](_0x12cc5c){const _0x50f154=a45_0x640d73;return this[_0x50f154(0x19b)]=_0x12cc5c,this;}[a45_0x640d73(0x11d)](_0x57588b){return this['_vcFilePath']=_0x57588b,this;}async[a45_0x640d73(0x1c7)](){const _0x6f1b9=a45_0x640d73,_0x297c4={'RsiXV':_0x6f1b9(0x14a),'YQUMZ':function(_0x17d74e,_0x137806){return _0x17d74e===_0x137806;},'PiSOO':_0x6f1b9(0x12f),'UlBPB':_0x6f1b9(0x1d6),'ZLdfh':function(_0x5179f5){return _0x5179f5();},'DjFzk':function(_0x248bc7,_0x25f8fa){return _0x248bc7(_0x25f8fa);},'CYPOE':'../v2/browserstackCLI.js','apPAC':'[TestClient]\x20start:\x20No\x20test\x20framework\x20available.\x20Binary\x20may\x20not\x20be\x20running.'};if(!this[_0x6f1b9(0x151)]){logger[_0x6f1b9(0x11c)](_0x297c4[_0x6f1b9(0xe2)]);return;}if(!this[_0x6f1b9(0x167)]||_0x297c4[_0x6f1b9(0x145)](this[_0x6f1b9(0x167)][_0x6f1b9(0xe4)],0x0)){logger['error'](_0x297c4['PiSOO']);return;}if(!this[_0x6f1b9(0x19b)]){logger[_0x6f1b9(0x11c)](_0x297c4[_0x6f1b9(0x1c5)]);return;}this[_0x6f1b9(0x192)]=_0x297c4[_0x6f1b9(0x1a8)](uuidv4),this[_0x6f1b9(0x136)]=new Date()[_0x6f1b9(0x181)](),this[_0x6f1b9(0x1d1)]=!![],this[_0x6f1b9(0x1b1)]=(global[_0x6f1b9(0xf8)]||[])[_0x6f1b9(0xe4)],this[_0x6f1b9(0x1d9)]();try{const _0x283547=_0x297c4['DjFzk'](require,_0x297c4[_0x6f1b9(0x1b0)]),_0x2dedeb=_0x283547[_0x6f1b9(0x152)]()?.[_0x6f1b9(0x1c3)]?.();_0x2dedeb?.[_0x6f1b9(0x12b)]&&_0x2dedeb['setCurrentTestUUID'](this[_0x6f1b9(0x192)]);}catch(_0x24c36a){}this[_0x6f1b9(0xf5)]=this['_detectCallerInfo']();const _0x25484c=path[_0x6f1b9(0x161)](this[_0x6f1b9(0x19b)])?this[_0x6f1b9(0x19b)]:path[_0x6f1b9(0x17b)](process[_0x6f1b9(0x1aa)](),this['_filePath']);this['_testCode']=this['_extractSourceCode'](_0x25484c,this[_0x6f1b9(0xf5)]?.[_0x6f1b9(0x1a3)],this[_0x6f1b9(0xf5)]?.[_0x6f1b9(0x1c2)]);const _0x54a3e1=this[_0x6f1b9(0xe1)]({[TestFrameworkConstants[_0x6f1b9(0x14d)]]:TestFrameworkConstants[_0x6f1b9(0xef)],[TestFrameworkConstants[_0x6f1b9(0x127)]]:this[_0x6f1b9(0x136)]});logger[_0x6f1b9(0x177)](_0x6f1b9(0x10b)+this[_0x6f1b9(0x192)]+',\x20test_name='+this['_testName']);try{const _0x420483=_0x297c4[_0x6f1b9(0x1b8)](require,_0x297c4[_0x6f1b9(0x1b0)]),_0x119bc3=_0x420483['getInstance']();if(_0x119bc3&&_0x119bc3[_0x6f1b9(0x1c3)]()){const _0x4619bb={};_0x4619bb[_0x6f1b9(0x11e)]=_0x54a3e1,await _0x119bc3['getTestFramework']()[_0x6f1b9(0x110)](TestFrameworkState[_0x6f1b9(0x185)],HookState[_0x6f1b9(0x13f)],_0x4619bb);}else logger[_0x6f1b9(0x165)](_0x297c4[_0x6f1b9(0x1bb)]);}catch(_0x434cf1){logger[_0x6f1b9(0x165)](_0x6f1b9(0xec)+_0x434cf1['message']);}}[a45_0x640d73(0x1d5)](){const _0x67a4c6=a45_0x640d73,_0x597caa=global[_0x67a4c6(0xf8)]||[];return _0x597caa[_0x67a4c6(0xc7)](this[_0x67a4c6(0x1b1)]);}async[a45_0x640d73(0x1ba)](){const _0x39dd79=a45_0x640d73,_0x550ebb={};_0x550ebb[_0x39dd79(0x11a)]=_0x39dd79(0x100);const _0x2b6827=_0x550ebb;if(global[_0x39dd79(0xd0)])return;const _0x21f217=this[_0x39dd79(0x1d5)]();for(const _0x58fa02 of _0x21f217){try{if(_0x58fa02[_0x39dd79(0xea)])continue;const _0x48a6de={};_0x48a6de[_0x39dd79(0xcc)]=this[_0x39dd79(0x151)];const _0x208d8e={};_0x208d8e['action']=_0x2b6827[_0x39dd79(0x11a)],_0x208d8e['arguments']=_0x48a6de,await _0x58fa02[_0x39dd79(0x172)]('browserstack_executor:\x20'+JSON[_0x39dd79(0x163)](_0x208d8e)),_0x58fa02[_0x39dd79(0xea)]=!![],logger['debug'](_0x39dd79(0x109)+this['_testName']+'\x27');}catch(_0x4a1f27){logger[_0x39dd79(0xf6)](_0x39dd79(0xda)+_0x4a1f27['message']);}}}async[a45_0x640d73(0x1af)](_0x334b2b,_0x306bc4){const _0x541f10=a45_0x640d73,_0x509d9f=this[_0x541f10(0x1d5)]();for(const _0x2359fa of _0x509d9f){try{await helper[_0x541f10(0x190)](_0x2359fa,_0x334b2b,_0x306bc4),logger['debug'](_0x541f10(0x196)+_0x334b2b+'\x27');}catch(_0x5576d3){logger[_0x541f10(0xf6)](_0x541f10(0x1cc)+_0x5576d3['message']);}}}async[a45_0x640d73(0x188)](){const _0xfaff33=a45_0x640d73,_0xf59c7a={'AdQaM':function(_0x348c27,_0x235f5c){return _0x348c27(_0x235f5c);},'oMAfw':'../v2/browserstackCLI.js','meUwY':_0xfaff33(0x1ca),'BGlYm':function(_0x2ca72d,_0x108228,_0x4319a8,_0x8f90e8,_0x4f8747){return _0x2ca72d(_0x108228,_0x4319a8,_0x8f90e8,_0x4f8747);}},_0x2b0055=this[_0xfaff33(0x1d5)]();for(const _0x4f6407 of _0x2b0055){try{const _0x4af93b=_0xf59c7a[_0xfaff33(0x13b)](require,_0xf59c7a[_0xfaff33(0x120)]),_0x597ebc=_0x4af93b[_0xfaff33(0x152)]();if(_0x597ebc&&_0x597ebc[_0xfaff33(0xd2)]())await this['_sendPlatformDetailsViaGrpc'](_0x4f6407);else{const {sendPlatformDetails:_0x955190}=_0xf59c7a[_0xfaff33(0x13b)](require,_0xf59c7a[_0xfaff33(0xdc)]);await _0xf59c7a['BGlYm'](_0x955190,_0x4f6407,this['_testUUID'],![],!![]);}logger[_0xfaff33(0xf6)](_0xfaff33(0x133)+this[_0xfaff33(0x192)]);}catch(_0x37e258){logger['debug'](_0xfaff33(0x1da)+_0x37e258[_0xfaff33(0x197)]);}}}async['_sendPlatformDetailsViaGrpc'](_0x3a9200){const _0x5db245=a45_0x640d73,_0x9eb63e={'ShjOM':function(_0xe151aa,_0x2e9003){return _0xe151aa(_0x2e9003);},'INPdO':_0x5db245(0x184),'YbhZn':_0x5db245(0xe6),'aVrLm':_0x5db245(0x119),'ZRQLU':_0x5db245(0x159),'ZFXNh':function(_0x4f81fb,_0x23c3ed){return _0x4f81fb(_0x23c3ed);},'wfwUh':_0x5db245(0xdb),'GhDNp':_0x5db245(0xd4),'hyRjw':'appium:app','pkbDm':_0x5db245(0x144),'YFESR':_0x5db245(0x134),'SzmgC':_0x5db245(0xee),'Yxsac':_0x5db245(0xd6),'kHytJ':function(_0x38e8a1){return _0x38e8a1();},'QRfpU':_0x5db245(0xd5),'wyRAo':_0x5db245(0x17a),'ZpjDV':function(_0x9d82b8,_0xc82a64){return _0x9d82b8(_0xc82a64);}},_0x136023=_0x9eb63e[_0x5db245(0x102)](require,_0x9eb63e[_0x5db245(0xf0)]),{getProductForSession:_0x4d1408,isBrowserstackInfra:_0x5c3040}=_0x9eb63e[_0x5db245(0x102)](require,_0x9eb63e[_0x5db245(0x16d)]),_0x3d1da5=_0x9eb63e[_0x5db245(0x102)](require,_0x9eb63e[_0x5db245(0x140)]),_0x11b7bd=_0x9eb63e[_0x5db245(0x102)](require,_0x9eb63e[_0x5db245(0x1a7)]),_0x165d11=await _0x3a9200[_0x5db245(0x104)](),_0x32d242=_0x165d11[_0x5db245(0x10d)](),_0x39e7b0=_0x165d11['getCapabilities']()[_0x5db245(0x1de)],_0x1cf30c=_0x39e7b0?Object[_0x5db245(0x15e)](_0x39e7b0):{},_0x583358=_0x9eb63e[_0x5db245(0x17c)](String,_0x1cf30c[_0x9eb63e[_0x5db245(0x103)]]||_0x1cf30c[_0x9eb63e[_0x5db245(0x113)]]||'')[_0x5db245(0x162)](),_0x37b31b=_0x9eb63e[_0x5db245(0x17c)](Boolean,_0x1cf30c[_0x9eb63e[_0x5db245(0x103)]]||_0x1cf30c[_0x9eb63e[_0x5db245(0x173)]]||_0x583358&&[_0x9eb63e[_0x5db245(0x166)],_0x9eb63e[_0x5db245(0xdd)]][_0x5db245(0x12e)](_0x583358)),_0x54b622=_0x37b31b?_0x9eb63e['SzmgC']:_0x9eb63e[_0x5db245(0x193)],_0x251886=_0x9eb63e[_0x5db245(0x142)](_0x5c3040)?_0x9eb63e['QRfpU']:global[_0x5db245(0x19d)]||_0x9eb63e[_0x5db245(0x1c1)],_0x1787e7=_0x9eb63e[_0x5db245(0x142)](_0x4d1408)||null,_0x4a6151={};_0x4a6151[_0x5db245(0x147)]=_0x251886,_0x4a6151[_0x5db245(0x138)]=_0x54b622,_0x4a6151[_0x5db245(0x10f)]='',_0x4a6151[_0x5db245(0x122)]=_0x32d242,_0x4a6151['ref']=_0x32d242,_0x4a6151[_0x5db245(0x14e)]='',_0x4a6151['product']=_0x1787e7;const _0x3ebe19=_0x4a6151,_0x336321=Buffer[_0x5db245(0xe8)](JSON[_0x5db245(0x163)](_0x1cf30c))[_0x5db245(0x19e)](_0x9eb63e[_0x5db245(0x1bd)]),_0x2addef=_0x3d1da5['TEST'][_0x5db245(0x19e)]()['split']('.')[0x1],_0x34c7a3=_0x11b7bd['POST'][_0x5db245(0x19e)]()[_0x5db245(0x170)]('.')[0x1],_0x21bafc=global?.[_0x5db245(0xc8)]?.['workerInfo']?.['parallelIndex']||global[_0x5db245(0x179)]||0x0,_0x3ffb27={'platformIndex':_0x21bafc,'testFrameworkName':FRAMEWORKS['NODE_GENERIC'],'testFrameworkVersion':'','testFrameworkState':_0x2addef,'testHookState':_0x34c7a3,'testUuid':this['_testUUID'],'automationSession':_0x3ebe19,'capabilities':_0x336321,'executionContext':{'hash':this[_0x5db245(0x192)],'threadId':_0x9eb63e[_0x5db245(0x102)](String,process[_0x5db245(0xfc)]),'processId':_0x9eb63e[_0x5db245(0x1cd)](String,process[_0x5db245(0xfc)])}};logger['debug'](_0x5db245(0x12a)+_0x32d242+',\x20test_uuid='+this[_0x5db245(0x192)]),await _0x136023[_0x5db245(0x152)]()[_0x5db245(0x18f)](_0x3ffb27);}async[a45_0x640d73(0x1a5)](_0x53a7ae,_0x4558d2,_0x34c9e7){const _0x48f01e=a45_0x640d73,_0x3dea18={'vuiEC':function(_0x3a0a74,_0xd26e16){return _0x3a0a74(_0xd26e16);},'jQwRN':_0x48f01e(0x12d)};await this[_0x48f01e(0x1ba)](),await this[_0x48f01e(0x1af)](_0x4558d2,_0x34c9e7),await this['_sendPlatformDetails'](),await this[_0x48f01e(0x16c)]();try{const _0xa76d6b=_0x3dea18[_0x48f01e(0x1d4)](require,_0x3dea18[_0x48f01e(0xc3)]),_0x39593c=_0xa76d6b['getInstance']();if(_0x39593c&&_0x39593c[_0x48f01e(0x1c3)]()){const _0x167a6f={};_0x167a6f[_0x48f01e(0x11e)]=_0x53a7ae,await _0x39593c[_0x48f01e(0x1c3)]()[_0x48f01e(0x110)](TestFrameworkState[_0x48f01e(0x185)],HookState['POST'],_0x167a6f);}}catch(_0x3ac5e5){logger['warn'](_0x48f01e(0x150)+_0x3ac5e5[_0x48f01e(0x197)]);}}async['markPassed'](){const _0x3adf23=a45_0x640d73,_0x494c55={};_0x494c55[_0x3adf23(0x186)]=_0x3adf23(0xeb),_0x494c55[_0x3adf23(0x101)]=_0x3adf23(0x18b),_0x494c55[_0x3adf23(0x19c)]=_0x3adf23(0xe7);const _0x214955=_0x494c55;if(!this['_started']){logger[_0x3adf23(0x165)](_0x214955[_0x3adf23(0x186)]);return;}if(this[_0x3adf23(0x155)]){logger[_0x3adf23(0x165)](_0x214955[_0x3adf23(0x101)]);return;}this[_0x3adf23(0x155)]=!![];const _0x309d71=new Date()[_0x3adf23(0x181)](),_0x59a529={[TestFrameworkConstants[_0x3adf23(0x14d)]]:_0x214955['eWVRM'],[TestFrameworkConstants[_0x3adf23(0x17d)]]:_0x309d71},_0x451b3e=this['_buildTestData'](_0x59a529);logger[_0x3adf23(0x177)](_0x3adf23(0x1ae)+this['_testUUID']),await this[_0x3adf23(0x1a5)](_0x451b3e,_0x214955['eWVRM'],null);}async[a45_0x640d73(0x15b)](_0x4e4a55){const _0x3ab300=a45_0x640d73,_0x4360ec={'WtHkC':'[TestClient]\x20markFailed:\x20start()\x20was\x20not\x20called.\x20Ignoring.','sFtGz':_0x3ab300(0xce),'tKXxW':function(_0x260408,_0x18046b){return _0x260408(_0x18046b);},'JnMdB':_0x3ab300(0x1ab),'lDelt':_0x3ab300(0x156),'EzlZN':_0x3ab300(0xd3),'crpIR':_0x3ab300(0x1b6),'Lzryr':'failed'};if(!this['_started']){logger['warn'](_0x4360ec[_0x3ab300(0x10a)]);return;}if(this[_0x3ab300(0x155)]){logger[_0x3ab300(0x165)](_0x4360ec[_0x3ab300(0x1b5)]);return;}this['_resultMarked']=!![];const _0x5de173=new Date()['toISOString'](),_0x647cd=_0x4e4a55?_0x4e4a55[_0x3ab300(0x197)]||_0x4360ec[_0x3ab300(0x128)](String,_0x4e4a55):_0x4360ec['JnMdB'],_0x209fa9=_0x4e4a55&&_0x4e4a55[_0x3ab300(0xcc)]&&_0x4e4a55['name'][_0x3ab300(0x12e)](_0x4360ec['lDelt'])?_0x4360ec[_0x3ab300(0x10c)]:_0x4360ec[_0x3ab300(0xc6)],_0x5c491a=_0x4e4a55?[{'backtrace':_0x4e4a55[_0x3ab300(0x17f)]?_0x4e4a55[_0x3ab300(0x17f)][_0x3ab300(0x170)]('\x0a'):[],'message':_0x647cd}]:[],_0x50066a={[TestFrameworkConstants[_0x3ab300(0x14d)]]:_0x4360ec[_0x3ab300(0x125)],[TestFrameworkConstants[_0x3ab300(0x17d)]]:_0x5de173,[TestFrameworkConstants[_0x3ab300(0x114)]]:_0x209fa9,[TestFrameworkConstants['KEY_TEST_FAILURE_REASON']]:_0x647cd,[TestFrameworkConstants[_0x3ab300(0x118)]]:_0x5c491a},_0x137a30=this[_0x3ab300(0xe1)](_0x50066a);logger[_0x3ab300(0x177)](_0x3ab300(0x1a2)+this['_testUUID']+_0x3ab300(0x1a6)+_0x647cd[_0x3ab300(0xd8)](0x0,0xc8)),await this['_markResult'](_0x137a30,_0x4360ec[_0x3ab300(0x125)],_0x647cd);}static async[a45_0x640d73(0xfe)](){const _0x1f2311=a45_0x640d73,_0x5b53fb={'tdXnE':'[TRACE:node-generic]\x20TestClient.quit()\x20-\x20shutting\x20down','uBBes':function(_0x1f165b,_0x37102a){return _0x1f165b(_0x37102a);},'Xqrwe':_0x1f2311(0x12d)};logger[_0x1f2311(0x177)](_0x5b53fb[_0x1f2311(0x15a)]);try{const _0xe30ba0=_0x5b53fb[_0x1f2311(0x112)](require,_0x5b53fb[_0x1f2311(0x164)]);await _0xe30ba0[_0x1f2311(0x152)]()[_0x1f2311(0x19f)]();}catch(_0x50c81c){logger[_0x1f2311(0x165)](_0x1f2311(0xe0)+_0x50c81c['message']);}process[_0x1f2311(0x149)](process[_0x1f2311(0x108)]||0x0);}[a45_0x640d73(0x1d9)](){const _0x1ebf68=a45_0x640d73,_0x51031a={'gExKg':function(_0x485db1,_0x20d2ac,_0xf999b9){return _0x485db1(_0x20d2ac,_0xf999b9);},'ayNQk':_0x1ebf68(0x117),'swCjC':function(_0x210785,_0x537e97){return _0x210785(_0x537e97);},'PHAeo':'../v2/browserstackCLI.js','BFfGy':function(_0x4e6637,_0x3fef45){return _0x4e6637===_0x3fef45;},'uurdE':_0x1ebf68(0x199)};try{const _0x31ef9f=_0x51031a[_0x1ebf68(0x178)](shouldScanTestForAccessibility,this[_0x1ebf68(0x151)],![]);globals['setGlobal'](_0x51031a[_0x1ebf68(0x1dc)],_0x31ef9f),logger[_0x1ebf68(0xf6)](_0x1ebf68(0x1d7)+_0x31ef9f+_0x1ebf68(0x121)+this['_testName']+'\x27');try{const _0x1dc9b3=_0x51031a[_0x1ebf68(0xfa)](require,_0x51031a[_0x1ebf68(0x126)]),_0x28d1c6=_0x1dc9b3[_0x1ebf68(0x152)](),_0x271402=_0x28d1c6&&_0x28d1c6['getAccessibilityModule']&&_0x28d1c6[_0x1ebf68(0xd1)]();_0x271402&&_0x51031a['BFfGy'](typeof _0x271402[_0x1ebf68(0x111)],_0x51031a['uurdE'])&&(_0x271402['setShouldScanCurrentTest'](_0x31ef9f),logger[_0x1ebf68(0xf6)](_0x1ebf68(0xcf)+_0x31ef9f+')\x20—\x20Checkpoint\x201\x20gate\x20opened'));}catch(_0x349b86){logger[_0x1ebf68(0xf6)](_0x1ebf68(0xf1)+_0x349b86[_0x1ebf68(0x197)]);}}catch(_0x40ecd8){logger[_0x1ebf68(0xf6)](_0x1ebf68(0x17e)+_0x40ecd8[_0x1ebf68(0x197)]);}}async[a45_0x640d73(0x16c)](){const _0x11aedd=a45_0x640d73,_0x12047b={'nVjSg':function(_0x541da5){return _0x541da5();},'fqMqv':_0x11aedd(0x194),'aVDgE':_0x11aedd(0x117),'qhWMS':function(_0x5abe7c,_0x249ca9){return _0x5abe7c===_0x249ca9;},'KepbU':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.','OOTxq':function(_0x5e2ab4,_0x430e3d){return _0x5e2ab4(_0x430e3d);},'VCCHr':'../v2/browserstackCLI.js','yTGNw':_0x11aedd(0x124),'wqvUR':'accessibility','rBiOJ':_0x11aedd(0x1db),'DRNDb':function(_0x2c002e,_0x1068e4){return _0x2c002e(_0x1068e4);},'eheKS':_0x11aedd(0x146),'YSDIj':_0x11aedd(0x16b),'Qttpn':_0x11aedd(0x1c8),'wejmt':_0x11aedd(0x154)};try{if(!_0x12047b[_0x11aedd(0x1b7)](isAccessibilityAutomationSession)||!globals[_0x11aedd(0x153)](_0x12047b['fqMqv'])||!globals['getGlobal'](_0x12047b['aVDgE']))return;const _0x2f5aee=this['_getTestDrivers']();if(_0x12047b['qhWMS'](_0x2f5aee['length'],0x0))return;logger['info'](_0x12047b[_0x11aedd(0x1b2)]);const _0x155e5c=_0x12047b[_0x11aedd(0x18a)](require,_0x12047b[_0x11aedd(0x1ac)]),_0x631a5d=_0x155e5c[_0x11aedd(0x152)](),_0xeb802c=_0x631a5d&&_0x631a5d[_0x11aedd(0xd1)]();if(_0xeb802c&&_0xeb802c[_0x11aedd(0x1ce)]){const _0x54a469=this[_0x11aedd(0x192)],_0x42f600=process[_0x11aedd(0x14b)][testHubConstants['ENV_VAR'][_0x11aedd(0xd9)]]||'',_0x1d8540=process[_0x11aedd(0x14b)][testHubConstants[_0x11aedd(0x132)][_0x11aedd(0x157)]]||'',_0x5e2111=process[_0x11aedd(0x14b)][_0x11aedd(0x135)]||'';let _0x2f1a01={};try{const _0x460291=_0x12047b[_0x11aedd(0x18a)](require,_0x12047b[_0x11aedd(0xfb)]),_0x1f10e9=await _0x460291[_0x11aedd(0x152)]()['fetchDriverExecuteParamsEvent'](process[_0x11aedd(0x14b)][_0x11aedd(0x189)],_0x12047b[_0x11aedd(0xf9)],_0x12047b[_0x11aedd(0x15d)]),_0xcf3aad=_0x12047b[_0x11aedd(0x1d8)](require,_0x12047b[_0x11aedd(0x15f)]);_0x2f1a01=_0xcf3aad[_0x11aedd(0x13a)](_0x54a469,_0x1f10e9)||{};}catch(_0x4e6275){logger[_0x11aedd(0x165)](_0x11aedd(0x1cf)+_0x4e6275[_0x11aedd(0x197)]);}const _0x8a8c74=Object[_0x11aedd(0x14c)]({},{'thTestRunUuid':_0x54a469,'thBuildUuid':_0x42f600,'thJwtToken':_0x1d8540,'authHeader':_0x5e2111,'method':this['_testName']||_0x12047b['YSDIj'],'scanTimestamp':Date[_0x11aedd(0x12c)]()[_0x11aedd(0x19e)]()},_0x2f1a01);_0x8a8c74[_0x11aedd(0x171)]&&(_0x8a8c74[_0x11aedd(0x198)]=_0x8a8c74['centralAuthToken'],delete _0x8a8c74[_0x11aedd(0x171)]);for(const _0x32335b of _0x2f5aee){try{await _0xeb802c[_0x11aedd(0xff)](!![],_0x54a469,_0x32335b,_0x8a8c74,!![]);}catch(_0x468383){logger['error'](_0x11aedd(0x14f)+this[_0x11aedd(0x151)]+_0x11aedd(0x10e),_0x468383);}}}else{const _0x3843e2={};_0x3843e2['thTestRunUuid']=this['_testUUID'],_0x3843e2['thBuildUuid']=process['env'][testHubConstants[_0x11aedd(0x132)][_0x11aedd(0xd9)]],_0x3843e2[_0x11aedd(0xca)]=process[_0x11aedd(0x14b)][testHubConstants[_0x11aedd(0x132)][_0x11aedd(0x157)]];const _0x574297=_0x3843e2;logger[_0x11aedd(0xf6)](_0x11aedd(0x174)+JSON[_0x11aedd(0x163)](_0x574297));for(const _0x3d9cca of _0x2f5aee){try{logger['debug'](_0x12047b[_0x11aedd(0x191)]);const _0x43886c={};_0x43886c[_0x11aedd(0xc4)]=this[_0x11aedd(0x151)],await _0x3d9cca[_0x11aedd(0x1c6)](scripts[_0x11aedd(0xcd)],_0x43886c),await _0x3d9cca[_0x11aedd(0x1c6)](scripts['saveTestResults'],_0x574297);}catch(_0x56cc8e){logger[_0x11aedd(0x11c)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20test\x20\x27'+this[_0x11aedd(0x151)]+_0x11aedd(0x10e),_0x56cc8e);}}}logger[_0x11aedd(0x177)](_0x12047b[_0x11aedd(0xcb)]);}catch(_0x2072ad){logger[_0x11aedd(0x165)](_0x11aedd(0x1b4)+this[_0x11aedd(0x151)]+_0x11aedd(0x1a9)+_0x2072ad[_0x11aedd(0x197)]);}}['_buildTestData'](_0x1e3c42={}){const _0x4b253d=a45_0x640d73;return{[TestFrameworkConstants[_0x4b253d(0xd7)]]:this['_testUUID'],'test_uuid':this['_testUUID'],[TestFrameworkConstants[_0x4b253d(0x176)]]:this[_0x4b253d(0x151)],[TestFrameworkConstants['KEY_TEST_SCOPE']]:this[_0x4b253d(0x167)][0x0]||'',[TestFrameworkConstants[_0x4b253d(0x1be)]]:this[_0x4b253d(0x167)],[TestFrameworkConstants[_0x4b253d(0x1a0)]]:this[_0x4b253d(0x19b)]?path[_0x4b253d(0x17b)](process[_0x4b253d(0x1aa)](),this[_0x4b253d(0x19b)]):null,[TestFrameworkConstants[_0x4b253d(0xc5)]]:this[_0x4b253d(0x19b)]?path[_0x4b253d(0x17b)](process['cwd'](),this[_0x4b253d(0x19b)]):null,[TestFrameworkConstants['KEY_TEST_CODE']]:this[_0x4b253d(0x180)],[TestFrameworkConstants['KEY_TEST_TAGS']]:[],[TestFrameworkConstants['KEY_TEST_RERUN_NAME']]:this[_0x4b253d(0x151)],[TestFrameworkConstants[_0x4b253d(0x18c)]]:FRAMEWORKS['NODE_GENERIC'],[TestFrameworkConstants[_0x4b253d(0x123)]]:'',[TestFrameworkConstants[_0x4b253d(0x183)]]:global?.[_0x4b253d(0xc8)]?.[_0x4b253d(0x11b)]?.['parallelIndex']||global['__bstackPlatformIndex']||0x0,..._0x1e3c42};}[a45_0x640d73(0x19a)](){const _0x4a9060=a45_0x640d73,_0x2da48d={};_0x2da48d['iDMcW']=_0x4a9060(0x1c0);const _0x37350d=_0x2da48d;try{const _0x3fe8fb=stackTrace[_0x4a9060(0x115)](new Error()),_0x23e4cd=path[_0x4a9060(0x17b)](__dirname,'..','..');for(const _0x14f8a7 of _0x3fe8fb){const _0x47695a=_0x14f8a7[_0x4a9060(0xf3)]();if(_0x47695a&&!_0x47695a[_0x4a9060(0x12e)](_0x37350d[_0x4a9060(0x143)])&&!_0x47695a[_0x4a9060(0xde)](_0x23e4cd))return{'functionName':_0x14f8a7[_0x4a9060(0x1d3)]()||_0x14f8a7['getMethodName']()||null,'fileName':_0x47695a,'lineNumber':_0x14f8a7[_0x4a9060(0x106)]()};}return null;}catch(_0x515076){return logger[_0x4a9060(0xf6)](_0x4a9060(0x16e)+_0x515076['message']),null;}}[a45_0x640d73(0x1d2)](_0x23dc86,_0x518626,_0x191702){const _0x4d148e=a45_0x640d73,_0x4c438c={};_0x4c438c[_0x4d148e(0x18d)]=_0x4d148e(0xdf),_0x4c438c['cmNgV']=function(_0x32c4e5,_0x592bfc){return _0x32c4e5!==_0x592bfc;},_0x4c438c[_0x4d148e(0x139)]=_0x4d148e(0x1b3),_0x4c438c[_0x4d148e(0x1bf)]=_0x4d148e(0x1d0),_0x4c438c[_0x4d148e(0xe5)]=function(_0x54bb25,_0x1839b4){return _0x54bb25<_0x1839b4;},_0x4c438c['WKrrt']=function(_0x20580a,_0x6d167b){return _0x20580a+_0x6d167b;},_0x4c438c[_0x4d148e(0x169)]=function(_0x4b9573,_0x5196af){return _0x4b9573>_0x5196af;},_0x4c438c[_0x4d148e(0xf4)]=function(_0x5346f,_0x52e1f1){return _0x5346f-_0x52e1f1;},_0x4c438c[_0x4d148e(0x16a)]=function(_0x2de6de,_0x58b726){return _0x2de6de+_0x58b726;},_0x4c438c[_0x4d148e(0x11f)]=function(_0x19bd6f,_0x5bde3a){return _0x19bd6f>=_0x5bde3a;},_0x4c438c[_0x4d148e(0x13c)]=function(_0x1a68e0,_0x3e14fc){return _0x1a68e0+_0x3e14fc;};const _0x3304fc=_0x4c438c;try{if(!_0x23dc86||!fs['existsSync'](_0x23dc86))return null;const _0xbb49d5=fs['readFileSync'](_0x23dc86,_0x3304fc[_0x4d148e(0x18d)]),_0x66fa7a=_0xbb49d5[_0x4d148e(0x170)]('\x0a');if(_0x191702&&_0x3304fc[_0x4d148e(0x1c9)](_0x191702,_0x3304fc[_0x4d148e(0x139)])){const _0x44f239=_0x191702[_0x4d148e(0x1b9)](/[.*+?^${}()|[\]\\]/g,_0x3304fc['lvULk']),_0x5c6f23=new RegExp(_0x4d148e(0x1a4)+_0x44f239+'|const\x5cs+'+_0x44f239+_0x4d148e(0x1bc)+_0x44f239+_0x4d148e(0x105));for(let _0x9fbb22=0x0;_0x3304fc[_0x4d148e(0xe5)](_0x9fbb22,_0x66fa7a[_0x4d148e(0xe4)]);_0x9fbb22++){if(_0x5c6f23[_0x4d148e(0x15c)](_0x66fa7a[_0x9fbb22])){const _0x5e7efe=Math[_0x4d148e(0xed)](_0x3304fc['WKrrt'](_0x9fbb22,0x32),_0x66fa7a[_0x4d148e(0xe4)]);return _0x66fa7a[_0x4d148e(0xc7)](_0x9fbb22,_0x5e7efe)['join']('\x0a');}}}if(_0x518626&&_0x3304fc[_0x4d148e(0x169)](_0x518626,0x0)){const _0x39547f=Math['max'](0x0,_0x3304fc[_0x4d148e(0xf4)](_0x518626,0x5)),_0x1dbf10=Math['min'](_0x66fa7a[_0x4d148e(0xe4)],_0x3304fc['pPfvH'](_0x518626,0x2d));return _0x66fa7a[_0x4d148e(0xc7)](_0x39547f,_0x1dbf10)[_0x4d148e(0xe9)]('\x0a');}const _0x407af9=_0x66fa7a[_0x4d148e(0x16f)](_0x47988f=>!_0x47988f[_0x4d148e(0x141)](/^(const|let|var|import)\s.*require|^import\s/));if(_0x3304fc[_0x4d148e(0x11f)](_0x407af9,0x0))return _0x66fa7a[_0x4d148e(0xc7)](_0x407af9,_0x3304fc[_0x4d148e(0x13c)](_0x407af9,0x64))[_0x4d148e(0xe9)]('\x0a');return null;}catch(_0x231294){return logger[_0x4d148e(0xf6)]('[TestClient]\x20_extractSourceCode:\x20Error:\x20'+_0x231294[_0x4d148e(0x197)]),null;}}}function a45_0x5e11(_0x3cf2b1,_0xbda551){const _0x5069b8=a45_0x5069();return a45_0x5e11=function(_0x5e11ca,_0x22b078){_0x5e11ca=_0x5e11ca-0xc3;let _0x31a264=_0x5069b8[_0x5e11ca];return _0x31a264;},a45_0x5e11(_0x3cf2b1,_0xbda551);}module['exports']=TestClient;function a45_0x5069(){const _0x4c25a3=['ZRQLU','ZLdfh','\x27:\x20','cwd','Unknown\x20error','VCCHr','_vcFilePath','[TRACE:node-generic]\x20TestClient.markPassed()\x20test_uuid=','_markSessionStatus','CYPOE','_driversAtStart','KepbU','<anonymous>','[TestClient]\x20_performAccessibilityScan:\x20Error\x20processing\x20accessibility\x20scan\x20for\x20test\x20\x27','sFtGz','UnhandledError','nVjSg','DjFzk','replace','_markSessionName','apPAC','\x5cs*=|','wyRAo','KEY_TEST_SCOPES','lvULk','node_modules','QRfpU','functionName','getTestFramework','../../helpers/testhub/constants','UlBPB','executeAsyncScript','start','Performing\x20scan\x20before\x20saving\x20results','cmNgV','../../helpers/test-observability/utils','136830zeHfJb','[TestClient]\x20_markSessionStatus:\x20Error:\x20','ZpjDV','isAppAccessibility','[App-A11y]\x20Could\x20not\x20fetch\x20central\x20auth\x20config:\x20','\x5c$&','_started','_extractSourceCode','getFunctionName','vuiEC','_getTestDrivers','[TestClient]\x20start:\x20filePath\x20is\x20required.\x20Call\x20setFilePath()\x20before\x20start().','[TestClient]\x20Accessibility\x20shouldScan=','DRNDb','_enableAccessibilityScanning','[TestClient]\x20_sendPlatformDetails:\x20Error:\x20','saveResults','ayNQk','../utils/constants','map_','jQwRN','method','KEY_TEST_LOCATION','crpIR','slice','__workerDetails','isArray','thJwtToken','wejmt','name','performScan','[TestClient]\x20markFailed:\x20result\x20already\x20marked.\x20Ignoring.','[TestClient]\x20a11yModule.setShouldScanCurrentTest(','__skipSessionName','getAccessibilityModule','isCliEnabled','AssertionError','platformName','browserstack','selenium-webdriver','KEY_TEST_UUID','substring','BROWSERSTACK_TESTHUB_UUID','[TestClient]\x20_markSessionName:\x20Error:\x20','appium:platformName','meUwY','YFESR','startsWith','utf-8','[TestClient]\x20quit:\x20Error\x20during\x20shutdown:\x20','_buildTestData','RsiXV','../v2/framework/constants/testFrameworkConstants.js','length','alrUV','../../helpers/helper.js','passed','from','join','sessionNameSet__','[TestClient]\x20markPassed:\x20start()\x20was\x20not\x20called.\x20Ignoring.','[TestClient]\x20start:\x20Error\x20dispatching\x20TEST\x20PRE\x20event:\x20','min','appium','DEFAULT_TEST_RESULT','INPdO','[TestClient]\x20_enableAccessibilityScanning:\x20a11yModule\x20update\x20failed:\x20','16017810qBgJAH','getFileName','BCzKN','_callerInfo','debug','TestClient','__driversArray','wqvUR','swCjC','yTGNw','pid','../../helpers/accessibility-automation/helper','quit','finishScanningForCli','setSessionName','tqkmA','ShjOM','wfwUh','getSession','\x5cs*[=(]','getLineNumber','path','exitCode','[TestClient]\x20Set\x20session\x20name\x20to\x20\x27','WtHkC','[TRACE:node-generic]\x20TestClient.start()\x20test_uuid=','EzlZN','getId','\x27.\x20Error:','frameworkVersion','trackEvent','setShouldScanCurrentTest','uBBes','GhDNp','KEY_TEST_FAILURE_TYPE','parse','../../helpers/helper','bstackA11yShouldScan','KEY_TEST_FAILURE','../v2/state/testFrameworkState.js','oETwx','workerInfo','error','setVcFilePath','testData','NIlea','oMAfw','\x20for\x20\x27','frameworkSessionId','KEY_TEST_FRAMEWORK_VERSION','../v2/grpcClient','Lzryr','PHAeo','KEY_TEST_STARTED_AT','tKXxW','setTestName','[TestClient]\x20Sending\x20CBTSession\x20via\x20gRPC\x20for\x20session_id=','setCurrentTestUUID','now','../v2/browserstackCLI.js','includes','[TestClient]\x20start:\x20testHierarchy\x20is\x20required.\x20Call\x20setTestHierarchy()\x20before\x20start().','289880kndgeW','2IbzNUJ','ENV_VAR','[TestClient]\x20Sent\x20platform\x20details\x20for\x20test_uuid=','ios','BS_A11Y_JWT','_startedAt','14288296zkLOoe','frameworkName','OIJpK','loadDriverExecuteParams','AdQaM','SSFFp','setFilePath','../../helpers/accessibility-automation/scripts','PRE','aVrLm','match','kHytJ','iDMcW','android','YQUMZ','../v2/modules/accessibilityModule','provider','371gFbvgQ','exit','[TestClient]\x20start:\x20testName\x20is\x20required.\x20Call\x20setTestName()\x20before\x20start().','env','assign','KEY_TEST_RESULT','hubUrl','[App-A11y]\x20Checkpoint\x202\x20scan\x20failed\x20for\x20test\x20\x27','[TestClient]\x20_markResult:\x20Error\x20dispatching\x20TEST\x20POST\x20event:\x20','_testName','getInstance','getGlobal','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','_resultMarked','Assert','BROWSERSTACK_TESTHUB_JWT','stack-trace','../v2/state/hookState.js','tdXnE','markFailed','test','rBiOJ','fromEntries','eheKS','448326jQQAYH','isAbsolute','toLowerCase','stringify','Xqrwe','warn','pkbDm','_testHierarchy','4|6|3|8|1|9|10|7|5|0|2','tYIXX','pPfvH','afterTestHook','_performAccessibilityScan','YbhZn','[TestClient]\x20_detectCallerInfo:\x20Error:\x20','findIndex','split','centralAuthToken','executeScript','hyRjw','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','52tXwrIr','KEY_TEST_NAME','info','gExKg','__bstackPlatformIndex','base64','resolve','ZFXNh','KEY_TEST_ENDED_AT','[TestClient]\x20_enableAccessibilityScanning:\x20Error:\x20','stack','_testCode','toISOString','4364562Psxokt','KEY_PLATFORM_INDEX','../v2/grpcClient.js','TEST','xPYFw','../../helpers/classLogger.js','_sendPlatformDetails','BROWSERSTACK_CLI_BIN_SESSION_ID','OOTxq','[TestClient]\x20markPassed:\x20result\x20already\x20marked.\x20Ignoring.','KEY_TEST_FRAMEWORK_NAME','FbnLI','../../helpers/globals','testSessionEvent','markSessionStatus','Qttpn','_testUUID','Yxsac','isAccessibilityPlatform','1489221QMdKdu','[TestClient]\x20Marked\x20session\x20status\x20\x27','message','centralAuthHeader','function','_detectCallerInfo','_filePath','eWVRM','__cloud_provider___','toString','stop','KEY_TEST_FILE_PATH','DwHtT','[TRACE:node-generic]\x20TestClient.markFailed()\x20test_uuid=','lineNumber','(async\x5cs+)?function\x5cs+','_markResult',',\x20reason='];a45_0x5069=function(){return _0x4c25a3;};return a45_0x5069();}
@@ -1 +1 @@
1
- const a46_0x3a4c5e=a46_0x1dab;function a46_0x1dab(_0x1d0506,_0x15b9c1){const _0x1f8d90=a46_0x1f8d();return a46_0x1dab=function(_0x1dabe2,_0xeb46ac){_0x1dabe2=_0x1dabe2-0x154;let _0x504a76=_0x1f8d90[_0x1dabe2];return _0x504a76;},a46_0x1dab(_0x1d0506,_0x15b9c1);}function a46_0x1f8d(){const _0x498b9e=['../../helpers/logger','yZbvm','page','accessibilityOptions','accessibilityOptions.wcagVersion','browserStackEvaluate','wYUon','chrome','info','getAccessibilityResults\x20failed:\x20','MGYTS','[STALE-CDP-SESSION-ERR]\x20attempt=','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','27360454FNoyaU','../../helpers/accessibility-automation/scripts','rpxAj','AowIm','browserStackExecuteDriver','UMsBi','startsWith','eeyWy','isMobilePlatform','constructor','ZIePv','accessibilityOptions.includeIssueType.bestPractice','[STALE-PRE]\x20browserStackEvaluate:\x20page\x20ref\x20stale,\x20reselected\x20from\x20browser.pages()','cdpExceptionDetails','name','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','eZIJH','includePartOfPageScope','exceptionDetails','forEach','[STALE-CDP]\x20falling\x20back\x20to\x20fresh-CDP-session\x20evaluate','vDsfQ','text','needsReview','4GeXpVi','expression','unknown','stack','OiELa','jXDPS','scannerProcessingTimeout','(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','[STALE-RELOAD-ERR]\x20reload/retry\x20failed:\x20','winstonLogger','returnByValue','PERFORM_SCAN','7445160OpbsHf','currentTest','command','svHzg','\x20transient=','RHLFk','rHvvG','LdFJa','type','xvbUJ','gthzE','result','cHnXp','9308795CPdZtm','processAccessibilityCaps','MOBILE_SCANNING_DISABLED_WARNING','mrKAj','KLTwu','isVersionSupported','detach','transient','on\x20non-BrowserStack\x20infrastructure\x20','../../helpers/performance/performance-tester','data:,','includeIssueType','awaitPromise','\x20using\x20target\x20url=','debug','request','NFFvV','FOCkX','1820UbKHku','aAVBF','isDetached','jFMGb','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML',')\x20—\x20reloading\x20page\x20to\x20reset\x20frame','pBZia','4viGJlG','\x20evaluate\x20returned\x20via\x20fresh\x20CDP\x20session','value','chaMM','Playwright','\x20or\x20higher\x20','Aqljd','[STALE-CDP-SEND-ERR]\x20attempt=','zDtIJ','accessibilityPlatform','playwright-chromium','length','testInfo','zStHj','replace','browserName','CgtGz','error','test','egbkZ','util','dGLnl','warn','IgtXw','deviceName','getAccessibilityResults','ojIHh','chromium','format','domcontentloaded','OCDTr','gravI','../../helpers/accessibility-automation/helper','targetsLen','Performing\x20scan\x20with\x20method:\x20','][\x20SDK-AUTOMATION\x20]\x20','latest','ImpTT','VfUQn','7ZspFJM','\x20page:\x20','xRPPw','project','browser',')\x20—\x20fresh\x20page\x20url=','platformValidation','bqNRD','../utils/constants','parse','STmgn','browserstack.accessibility','getBrowserDisplayName','\x20targets','YdtvS','browser_version','executeAsyncScript','body','includes','LOOvz','kwPDG','1352992kDpOkA','use','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20','isBrowserSupportedForAccessibility','accessibilityOptions.authToken','ZdWhh','785146AOgyoh','url','isMobileScanningEnabledForGroup','CbtQk','GBhtA','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','GLfYU','bstackSdkArgs','evalViaFreshCDPSession:\x20Runtime.evaluate\x20exception\x20—\x20','JziuK','getMinVersionForBrowser','getAccessibilityResultsSummary','isClosed','NrSgF','stringify','performScan','UUTmi','browserstack.accessibilityOptions','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','send','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','targets','\x20browser\x20version\x20','evaluate','__workerDetails','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','5344071VPOZLP','[STALE-CDP-NO-TARGET]\x20attempt=','connectOptions','wcagVersion','scannerVersion','(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','BS_A11Y_JWT','nyiSF','string','find','iteTz','15480DaLOCC','reload','bestPractice','WebDriver','wsEndpoint','message','gCEuI','devtools://','lIlNP','parameters'];a46_0x1f8d=function(){return _0x498b9e;};return a46_0x1f8d();}(function(_0x1e4c3c,_0x11a357){const _0x2b2397=a46_0x1dab,_0x3cd5ce=_0x1e4c3c();while(!![]){try{const _0x125077=-parseInt(_0x2b2397(0x192))/0x1*(parseInt(_0x2b2397(0x206))/0x2)+parseInt(_0x2b2397(0x158))/0x3*(parseInt(_0x2b2397(0x1c4))/0x4)+parseInt(_0x2b2397(0x1ab))/0x5+parseInt(_0x2b2397(0x19e))/0x6+parseInt(_0x2b2397(0x1eb))/0x7*(-parseInt(_0x2b2397(0x200))/0x8)+parseInt(_0x2b2397(0x163))/0x9*(parseInt(_0x2b2397(0x1bd))/0xa)+-parseInt(_0x2b2397(0x17a))/0xb;if(_0x125077===_0x11a357)break;else _0x3cd5ce['push'](_0x3cd5ce['shift']());}catch(_0x4ae0d8){_0x3cd5ce['push'](_0x3cd5ce['shift']());}}}(a46_0x1f8d,0xece2e));const util=require(a46_0x3a4c5e(0x1d8)),logger=require('../../helpers/logger')[a46_0x3a4c5e(0x19b)],{automationLogger}=require(a46_0x3a4c5e(0x16d)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require(a46_0x3a4c5e(0x17b)),PerformanceTester=require(a46_0x3a4c5e(0x1b4)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),accessibilityHelper=require(a46_0x3a4c5e(0x1e4)),{AUTOMATION_LOG_COMMANDS}=require(a46_0x3a4c5e(0x1f3)),isStalePageError=_0x454909=>{const _0x32b1de=a46_0x3a4c5e,_0x2542c9={'STmgn':function(_0x4a0cc0,_0x5736e9){return _0x4a0cc0(_0x5736e9);}},_0x74f599=_0x454909&&_0x454909['message']||_0x2542c9[_0x32b1de(0x1f5)](String,_0x454909);return/Target closed|detached [Ff]rame|Execution context was destroyed, most likely because of a navigation/[_0x32b1de(0x1d6)](_0x74f599);},isPageStale=_0x610c35=>{const _0x11d2d3=a46_0x3a4c5e;try{if(_0x610c35[_0x11d2d3(0x212)]&&_0x610c35[_0x11d2d3(0x212)]())return!![];const _0x4dc76c=_0x610c35['mainFrame']&&_0x610c35['mainFrame']();if(_0x4dc76c&&_0x4dc76c[_0x11d2d3(0x1bf)]&&_0x4dc76c[_0x11d2d3(0x1bf)]())return!![];}catch(_0x4aa39d){}return![];},isUserTabUrl=_0x53683f=>{const _0x22746a=a46_0x3a4c5e,_0x3449b3={};_0x3449b3[_0x22746a(0x1de)]=_0x22746a(0x16a),_0x3449b3['uXuLT']=function(_0x1c59f3,_0x29d4dd){return _0x1c59f3===_0x29d4dd;},_0x3449b3[_0x22746a(0x1a8)]='about:blank',_0x3449b3[_0x22746a(0x162)]=function(_0x5cea66,_0x1e7303){return _0x5cea66===_0x1e7303;},_0x3449b3[_0x22746a(0x197)]=_0x22746a(0x1b5),_0x3449b3[_0x22746a(0x17d)]=function(_0x5080e2,_0x500e5c){return _0x5080e2===_0x500e5c;};const _0x2df771=_0x3449b3;if(!_0x53683f)return![];if(_0x53683f[_0x22746a(0x180)](_0x2df771[_0x22746a(0x1de)]))return![];if(_0x2df771['uXuLT'](_0x53683f,_0x2df771['gthzE'])||_0x2df771[_0x22746a(0x162)](_0x53683f,_0x2df771[_0x22746a(0x197)])||_0x2df771[_0x22746a(0x17d)](_0x53683f,''))return![];return!![];},pickFreshPage=async _0x40e9e2=>{const _0x212fad=a46_0x3a4c5e,_0x2757f9={'kwPDG':function(_0x2c5c5b,_0x429e7b){return _0x2c5c5b(_0x429e7b);}};try{const _0x56c114=await _0x40e9e2['pages']();return _0x56c114[_0x212fad(0x161)](_0x1a2746=>{const _0x47c957=_0x212fad;try{if(_0x2757f9['kwPDG'](isPageStale,_0x1a2746))return![];return _0x2757f9[_0x47c957(0x1ff)](isUserTabUrl,_0x1a2746[_0x47c957(0x207)]&&_0x1a2746[_0x47c957(0x207)]());}catch(_0x1747d6){return![];}});}catch(_0x3b7aec){return null;}},evalViaFreshCDPSession=async(_0x15b752,_0x3a9cde)=>{const _0x1c12ef=a46_0x3a4c5e,_0xc016b9={'rHvvG':function(_0x4af09b,_0x50821d){return _0x4af09b===_0x50821d;},'RHLFk':_0x1c12ef(0x16f),'UHmDC':'http://','egbkZ':'https://','gCEuI':_0x1c12ef(0x16a),'Aqljd':function(_0x20f6c6){return _0x20f6c6();},'jQeWl':'Runtime.evaluate','QRXTP':_0x1c12ef(0x194),'NrSgF':function(_0x4e0222,_0x2f70c2){return _0x4e0222!==_0x2f70c2;},'UUTmi':'function','zStHj':function(_0x17c972,_0x106de3){return _0x17c972(_0x106de3);}};if(!_0x15b752[_0x1c12ef(0x1ef)]||_0xc016b9[_0x1c12ef(0x213)](typeof _0x15b752[_0x1c12ef(0x1ef)],_0xc016b9[_0x1c12ef(0x216)]))return undefined;const _0x2c94fb=_0x15b752[_0x1c12ef(0x1ef)]();if(!_0x2c94fb[_0x1c12ef(0x21b)])return undefined;const _0x46863e=_0x15b752['url']&&_0x15b752['url']()||'',_0xbab3d3=()=>{const _0x24d450=_0x1c12ef,_0x288e21={'ZdWhh':function(_0x420c4a,_0x1b9adc){const _0x540865=a46_0x1dab;return _0xc016b9[_0x540865(0x1a4)](_0x420c4a,_0x1b9adc);},'YdtvS':_0xc016b9[_0x24d450(0x1a3)],'yZbvm':function(_0x57a1b0,_0x33eec3){const _0x431406=_0x24d450;return _0xc016b9[_0x431406(0x1a4)](_0x57a1b0,_0x33eec3);}},_0x3cd7bd=_0x2c94fb[_0x24d450(0x21b)]();let _0x38c012=_0x3cd7bd[_0x24d450(0x161)](_0x4c34ac=>{const _0x215654=_0x24d450;try{return _0x288e21[_0x215654(0x205)](_0x4c34ac[_0x215654(0x1a6)](),_0x288e21[_0x215654(0x1f9)])&&_0x288e21[_0x215654(0x16e)](_0x4c34ac['url'](),_0x46863e);}catch(_0x58b9ab){return![];}});if(_0x38c012){const _0x35a454={};return _0x35a454['t']=_0x38c012,_0x35a454[_0x24d450(0x1e5)]=_0x3cd7bd[_0x24d450(0x1cf)],_0x35a454;}_0x38c012=_0x3cd7bd[_0x24d450(0x161)](_0x259b4a=>{const _0x49bfa9=_0x24d450;try{const _0x54a49c=_0x259b4a[_0x49bfa9(0x207)]()||'';return _0xc016b9[_0x49bfa9(0x1a4)](_0x259b4a[_0x49bfa9(0x1a6)](),_0xc016b9[_0x49bfa9(0x1a3)])&&(_0x54a49c[_0x49bfa9(0x180)](_0xc016b9['UHmDC'])||_0x54a49c[_0x49bfa9(0x180)](_0xc016b9[_0x49bfa9(0x1d7)]))&&!_0x54a49c[_0x49bfa9(0x180)](_0xc016b9[_0x49bfa9(0x169)]);}catch(_0x15a3f5){return![];}});const _0x6a3d5a={};return _0x6a3d5a['t']=_0x38c012,_0x6a3d5a[_0x24d450(0x1e5)]=_0x3cd7bd[_0x24d450(0x1cf)],_0x6a3d5a;},_0x3f75ba=async _0x1ee72b=>{const _0x1994cc=_0x1c12ef,{t:_0x1d64cd,targetsLen:_0x5135d3}=_0xc016b9[_0x1994cc(0x1ca)](_0xbab3d3);if(!_0x1d64cd){logger[_0x1994cc(0x175)](_0x1994cc(0x159)+_0x1ee72b+'\x20no\x20AUT\x20target\x20found\x20among\x20'+_0x5135d3+_0x1994cc(0x1f8));const _0x1e0108={};return _0x1e0108['ok']=![],_0x1e0108[_0x1994cc(0x1b2)]=![],_0x1e0108;}logger[_0x1994cc(0x175)]('[STALE-CDP-TRY]\x20attempt='+_0x1ee72b+_0x1994cc(0x1b8)+(_0x1d64cd['url']&&_0x1d64cd[_0x1994cc(0x207)]()));let _0x1d399c;try{_0x1d399c=await _0x1d64cd['createCDPSession']();}catch(_0x30d5d1){const _0x3c6260=/navigated or closed|Target closed|Session closed/i[_0x1994cc(0x1d6)](_0x30d5d1[_0x1994cc(0x168)]||'');logger['info'](_0x1994cc(0x178)+_0x1ee72b+'\x20createCDPSession\x20failed:\x20'+_0x30d5d1[_0x1994cc(0x168)]+_0x1994cc(0x1a2)+_0x3c6260);const _0xa3533d={};return _0xa3533d['ok']=![],_0xa3533d[_0x1994cc(0x1b2)]=_0x3c6260,_0xa3533d;}try{const _0xa892db={};_0xa892db[_0x1994cc(0x193)]=_0x3a9cde,_0xa892db[_0x1994cc(0x1b7)]=!![],_0xa892db[_0x1994cc(0x19c)]=!![];const _0x1923ed=await _0x1d399c[_0x1994cc(0x219)](_0xc016b9['jQeWl'],_0xa892db);if(_0x1923ed&&_0x1923ed[_0x1994cc(0x18c)]){const _0x7311fd=_0x1923ed[_0x1994cc(0x18c)]&&_0x1923ed[_0x1994cc(0x18c)][_0x1994cc(0x190)]||_0xc016b9['QRXTP'];logger[_0x1994cc(0x175)]('[STALE-CDP-EX]\x20attempt='+_0x1ee72b+'\x20evaluate\x20exception:\x20'+_0x7311fd);const _0x135db={};return _0x135db['ok']=![],_0x135db['transient']=![],_0x135db['exceptionDetails']=_0x7311fd,_0x135db;}logger['info']('[STALE-CDP-OK]\x20attempt='+_0x1ee72b+_0x1994cc(0x1c5));const _0x44b085={};return _0x44b085['ok']=!![],_0x44b085[_0x1994cc(0x1c6)]=_0x1923ed&&_0x1923ed[_0x1994cc(0x1a9)]&&_0x1923ed['result'][_0x1994cc(0x1c6)],_0x44b085;}catch(_0x553c8f){const _0xe93df0=/navigated or closed|Target closed|Session closed/i[_0x1994cc(0x1d6)](_0x553c8f[_0x1994cc(0x168)]||'');logger[_0x1994cc(0x175)](_0x1994cc(0x1cb)+_0x1ee72b+'\x20send\x20failed:\x20'+_0x553c8f['message']+_0x1994cc(0x1a2)+_0xe93df0);const _0x14db22={};return _0x14db22['ok']=![],_0x14db22['transient']=_0xe93df0,_0x14db22;}finally{try{_0x1d399c&&_0x1d399c[_0x1994cc(0x1b1)]&&await _0x1d399c[_0x1994cc(0x1b1)]();}catch(_0xb5efd8){}}};let _0x193c54=await _0xc016b9[_0x1c12ef(0x1d1)](_0x3f75ba,0x1);if(_0x193c54['ok'])return _0x193c54[_0x1c12ef(0x1c6)];if(_0x193c54[_0x1c12ef(0x1b2)]){await new Promise(_0x5a6c44=>setTimeout(_0x5a6c44,0x190)),_0x193c54=await _0xc016b9[_0x1c12ef(0x1d1)](_0x3f75ba,0x2);if(_0x193c54['ok'])return _0x193c54[_0x1c12ef(0x1c6)];}if(_0x193c54[_0x1c12ef(0x18c)]){const _0x15df3b=new Error(_0x1c12ef(0x20e)+_0x193c54['exceptionDetails']);_0x15df3b[_0x1c12ef(0x187)]=_0x193c54['exceptionDetails'];throw _0x15df3b;}return undefined;};exports[a46_0x3a4c5e(0x172)]=async(_0xcb0e51,_0x13e7b0,_0x20305b={})=>{const _0x1f9c78=a46_0x3a4c5e,_0x592f4e={'JpQHY':'bstackSdkArgs','JziuK':function(_0x5e5225,_0x34ff5a){return _0x5e5225(_0x34ff5a);},'nyiSF':_0x1f9c78(0x186),'onWQK':function(_0x568c54,_0x1f3694){return _0x568c54(_0x1f3694);},'chaMM':function(_0x47dc42,_0x3199a2){return _0x47dc42(_0x3199a2);},'VfUQn':function(_0x4bc4da,_0x206883){return _0x4bc4da!==_0x206883;},'ImpTT':_0x1f9c78(0x1e1),'ABPJm':_0x1f9c78(0x18e),'UMsBi':function(_0x264da2,_0x5e6eaf,_0x5c19df){return _0x264da2(_0x5e6eaf,_0x5c19df);},'pBZia':function(_0x143190,_0x336d10){return _0x143190===_0x336d10;},'ApoQs':_0x1f9c78(0x160)},_0x3d2659=_0x1f9c78(0x15d)+_0x13e7b0['replace'](/arguments/g,_0x592f4e['JpQHY'])+_0x1f9c78(0x20b)+JSON[_0x1f9c78(0x214)](_0x20305b)+')';let _0x155c6c=_0xcb0e51;if(_0x592f4e[_0x1f9c78(0x20f)](isPageStale,_0x155c6c)&&_0xcb0e51[_0x1f9c78(0x1ef)]){const _0x20a5db=await _0x592f4e['JziuK'](pickFreshPage,_0xcb0e51[_0x1f9c78(0x1ef)]());_0x20a5db&&(logger['info'](_0x592f4e[_0x1f9c78(0x15f)]),_0x155c6c=_0x20a5db);}let _0xfa5768;try{_0xfa5768=await _0x155c6c[_0x1f9c78(0x155)](_0x3d2659);}catch(_0x2cce3c){if(_0x592f4e['onWQK'](isStalePageError,_0x2cce3c)&&_0xcb0e51[_0x1f9c78(0x1ef)]){const _0x195063=await _0x592f4e[_0x1f9c78(0x1c7)](pickFreshPage,_0xcb0e51['browser']());if(_0x195063&&_0x592f4e['VfUQn'](_0x195063,_0x155c6c))logger[_0x1f9c78(0x175)]('[STALE-RETRY]\x20browserStackEvaluate:\x20retry\x20after\x20stale-page\x20error\x20('+_0x2cce3c[_0x1f9c78(0x168)]+_0x1f9c78(0x1f0)+(_0x195063[_0x1f9c78(0x207)]&&_0x195063[_0x1f9c78(0x207)]())),_0xfa5768=await _0x195063['evaluate'](_0x3d2659);else{if(_0xcb0e51[_0x1f9c78(0x164)]){let _0x124526=![];try{logger[_0x1f9c78(0x175)]('[STALE-RELOAD]\x20browserStackEvaluate:\x20no\x20fresh\x20page\x20after\x20stale-page\x20error\x20('+_0x2cce3c['message']+_0x1f9c78(0x1c2));const _0x5e1309={};_0x5e1309['waitUntil']=_0x592f4e[_0x1f9c78(0x1e9)],await _0xcb0e51[_0x1f9c78(0x164)](_0x5e1309);const _0x59c41c=await _0x592f4e[_0x1f9c78(0x20f)](pickFreshPage,_0xcb0e51['browser']())||_0xcb0e51;logger['info']('[STALE-RELOAD-RETRY]\x20retry\x20after\x20reload\x20—\x20page\x20url='+(_0x59c41c['url']&&_0x59c41c[_0x1f9c78(0x207)]())),_0xfa5768=await _0x59c41c[_0x1f9c78(0x155)](_0x3d2659),_0x124526=!![];}catch(_0x58f682){logger[_0x1f9c78(0x175)](_0x1f9c78(0x19a)+_0x58f682[_0x1f9c78(0x168)]);}if(!_0x124526)try{logger[_0x1f9c78(0x175)](_0x592f4e['ABPJm']);const _0x44c8b4=await _0x592f4e[_0x1f9c78(0x17f)](evalViaFreshCDPSession,_0xcb0e51,_0x3d2659);if(_0x592f4e[_0x1f9c78(0x1ea)](_0x44c8b4,undefined))_0xfa5768=_0x44c8b4;else throw _0x2cce3c;}catch(_0x485f93){logger[_0x1f9c78(0x175)]('[STALE-CDP-ERR]\x20cdp-session\x20fallback\x20failed:\x20'+_0x485f93[_0x1f9c78(0x168)]);throw _0x2cce3c;}}else throw _0x2cce3c;}}else throw _0x2cce3c;}try{if(_0x13e7b0&&_0x592f4e[_0x1f9c78(0x1c3)](typeof _0x13e7b0,_0x592f4e['ApoQs'])){const _0x30e888=AUTOMATION_LOG_COMMANDS[_0x1f9c78(0x161)](_0x3a954a=>_0x13e7b0[_0x1f9c78(0x1fd)](_0x3a954a));if(_0x30e888){const _0x357913={};_0x357913[_0x1f9c78(0x1a0)]=_0x30e888,_0x357913[_0x1f9c78(0x16c)]=[_0x20305b];const _0x45e3b1={};_0x45e3b1[_0x1f9c78(0x1fc)]=_0xfa5768;const _0x555480={};_0x555480[_0x1f9c78(0x1ba)]=_0x357913,_0x555480['response']=_0x45e3b1,automationLogger['silly']('['+new Date()['toISOString']()+_0x1f9c78(0x1e7)+JSON[_0x1f9c78(0x214)](_0x555480));}}}catch(_0x5abab7){logger[_0x1f9c78(0x1b9)]('[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'+_0x5abab7[_0x1f9c78(0x168)]);}return _0xfa5768;},exports[a46_0x3a4c5e(0x17e)]=async(_0x227d78,_0x3563ed,_0x277ae0={})=>{const _0x31ba27=a46_0x3a4c5e,_0x49b334={};_0x49b334[_0x31ba27(0x1ae)]=function(_0x5a89a6,_0xd79cc5){return _0x5a89a6===_0xd79cc5;},_0x49b334[_0x31ba27(0x1bb)]=_0x31ba27(0x166),_0x49b334['CbtQk']=function(_0x304ab1,_0x32497b){return _0x304ab1===_0x32497b;},_0x49b334[_0x31ba27(0x20a)]=_0x31ba27(0x1c8),_0x49b334['MGYTS']=_0x31ba27(0x20d);const _0x148f63=_0x49b334;if(_0x148f63[_0x31ba27(0x1ae)](_0x227d78[_0x31ba27(0x183)][_0x31ba27(0x188)],_0x148f63[_0x31ba27(0x1bb)]))return await _0x227d78[_0x31ba27(0x1fb)](_0x3563ed,_0x277ae0);else{if(_0x148f63[_0x31ba27(0x209)](_0x227d78[_0x31ba27(0x183)][_0x31ba27(0x188)],_0x148f63[_0x31ba27(0x20a)]))return await _0x227d78['executeScript'](_0x31ba27(0x199)+_0x3563ed[_0x31ba27(0x1d2)](/arguments/g,_0x148f63[_0x31ba27(0x177)])+_0x31ba27(0x179)+JSON[_0x31ba27(0x214)](_0x277ae0)+')');}},exports['setAccessibilityCapabilities']=async _0x8395c1=>{const _0x10d712=a46_0x3a4c5e,_0x92bbc0={};_0x92bbc0[_0x10d712(0x1ed)]=_0x10d712(0x171),_0x92bbc0[_0x10d712(0x1f2)]='accessibilityOptions.scannerProcessingTimeout',_0x92bbc0['RUlIL']=_0x10d712(0x185),_0x92bbc0[_0x10d712(0x1e3)]='accessibilityOptions.includeIssueType.needsReview',_0x92bbc0[_0x10d712(0x1af)]=_0x10d712(0x204),_0x92bbc0[_0x10d712(0x16b)]='accessibilityOptions.scannerVersion';const _0x1a36d1=_0x92bbc0;_0x8395c1[_0x10d712(0x170)]&&(_0x8395c1[_0x10d712(0x170)][_0x10d712(0x15b)]&&(_0x8395c1[_0x1a36d1['xRPPw']]=_0x8395c1[_0x10d712(0x170)]['wcagVersion']),_0x8395c1[_0x10d712(0x170)][_0x10d712(0x198)]&&(_0x8395c1[_0x1a36d1[_0x10d712(0x1f2)]]=_0x8395c1['accessibilityOptions']['scannerProcessingTimeout']),_0x8395c1[_0x10d712(0x170)][_0x10d712(0x1b6)]&&(_0x8395c1[_0x1a36d1['RUlIL']]=_0x8395c1[_0x10d712(0x170)][_0x10d712(0x1b6)][_0x10d712(0x165)],_0x8395c1[_0x1a36d1['gravI']]=_0x8395c1[_0x10d712(0x170)][_0x10d712(0x1b6)][_0x10d712(0x191)]));const _0x10af8c=JSON[_0x10d712(0x1f4)](process['env'][_0x10d712(0x1c1)]||'{}')[_0x10d712(0x15c)];_0x8395c1[_0x1a36d1[_0x10d712(0x1af)]]=process['env'][_0x10d712(0x15e)],_0x8395c1[_0x1a36d1[_0x10d712(0x16b)]]=_0x10af8c,delete _0x8395c1[_0x10d712(0x170)];},exports[a46_0x3a4c5e(0x1dd)]=async _0x56e6aa=>{const _0x315f24=a46_0x3a4c5e,_0x3c908d={};_0x3c908d[_0x315f24(0x1bc)]=_0x315f24(0x157);const _0x47b75e=_0x3c908d;if(global['accessibilityPlatform'])try{const details={'url':await _0x56e6aa.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');const _SCAN_CAP_MS=45000;try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{const _scanPromise=exports.browserStackEvaluate(_0x56e6aa,scripts.performScan,mobileArgs);let _capTimer;const _scanCap=new Promise((_,reject)=>{_capTimer=setTimeout(()=>reject(new Error(`SCAN-CAP-HIT performScan capped at ${_SCAN_CAP_MS}ms`)),_SCAN_CAP_MS);});try{logger.debug(util.format(await Promise.race([_scanPromise,_scanCap])));}finally{clearTimeout(_capTimer);}},{command:'getAccessibilityResults',...details})();}catch(_scanErr){logger.warn(`[SCAN-CAP] performScan didn't complete cleanly (getResults): ${_scanErr.message} — proceeding to fetch cached results`);global.__bstackA11yScanCapHit={reason:'SCAN_CAP_HIT',at:Date.now(),where:'getResults'};}const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x56e6aa,scripts.getResults,mobileArgs);},{...details})();return res;}catch(_0x420825){return logger[_0x315f24(0x1d5)](_0x315f24(0x176)+(_0x420825&&(_0x420825[_0x315f24(0x195)]||_0x420825[_0x315f24(0x168)])||_0x420825)),[];}else return logger[_0x315f24(0x1da)](_0x47b75e['FOCkX']),[];},exports[a46_0x3a4c5e(0x215)]=async(_0x2460da,_0x21e436='',_0x35dca8={},_0x4129f8={})=>{const _0x443cbe=a46_0x3a4c5e;logger[_0x443cbe(0x1b9)](_0x443cbe(0x1e6)+_0x21e436+_0x443cbe(0x1ec)+_0x2460da);const _0x3c3616={'url':await _0x2460da[_0x443cbe(0x207)](),'testhub_btcer_uuid':global[_0x443cbe(0x156)]?.[_0x443cbe(0x19f)]?.['id']};if(global[_0x443cbe(0x1cd)])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x443cbe(0x19d)],async()=>{const _0x30b977=_0x443cbe,_0x56018c={};_0x56018c['command']=_0x21e436;const _0x15e877=_0x56018c;_0x35dca8&&_0x35dca8[_0x30b977(0x18b)]&&(_0x15e877[_0x30b977(0x18b)]=_0x35dca8[_0x30b977(0x18b)]);Object['assign'](_0x15e877,_0x4129f8);const _0x4fe4fe=await exports['browserStackEvaluate'](_0x2460da,scripts[_0x30b977(0x215)],_0x15e877);return _0x4fe4fe;},{'command':_0x21e436,..._0x3c3616})();},exports[a46_0x3a4c5e(0x211)]=async _0x825742=>{const _0x4195e7=a46_0x3a4c5e,_0x5dedd4={};_0x5dedd4['rpxAj']='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x5e9b86=_0x5dedd4;if(global['accessibilityPlatform'])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};const _SCAN_CAP_MS_SUMMARY=45000;try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');const _scanPromise=exports.browserStackEvaluate(_0x825742,scripts.performScan,mobileArgs);let _capTimer;const _scanCap=new Promise((_,reject)=>{_capTimer=setTimeout(()=>reject(new Error(`SCAN-CAP-HIT performScan capped at ${_SCAN_CAP_MS_SUMMARY}ms`)),_SCAN_CAP_MS_SUMMARY);});try{logger.debug(util.format(await Promise.race([_scanPromise,_scanCap])));}finally{clearTimeout(_capTimer);}},{command:'getAccessibilityResultsSummary'})();}catch(_scanErr){logger.warn(`[SCAN-CAP] performScan didn't complete cleanly (getSummary): ${_scanErr.message} — proceeding to fetch cached summary`);global.__bstackA11yScanCapHit={reason:'SCAN_CAP_HIT',at:Date.now(),where:'getSummary'};}const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x825742,scripts.getResultsSummary,mobileArgs);})();if(summaryResults&&typeof summaryResults==='object'&&global.__bstackA11yScanCapHit){summaryResults.degraded=true;summaryResults.degradedReason=global.__bstackA11yScanCapHit.reason;}return summaryResults;}catch(_0x2c4392){return logger['error']('getAccessibilityResultsSummary\x20failed:\x20'+(_0x2c4392&&(_0x2c4392[_0x4195e7(0x195)]||_0x2c4392['message'])||_0x2c4392)),{};}else return logger['warn'](_0x5e9b86[_0x4195e7(0x17c)]),{};},exports[a46_0x3a4c5e(0x1f1)]=_0x88f330=>{const _0x4ccaab=a46_0x3a4c5e,_0x3e54b9={'dGLnl':'platformValidation:\x20Mobile\x20platform\x20already\x20validated.','eZIJH':_0x4ccaab(0x21a),'LOOvz':function(_0x5681ad,_0x321631){return _0x5681ad!==_0x321631;},'PsNyG':_0x4ccaab(0x1e8),'CgtGz':function(_0x2c1ce7){return _0x2c1ce7();},'xvbUJ':_0x4ccaab(0x1b3)};try{if(global[_0x4ccaab(0x182)])return logger['debug'](_0x3e54b9[_0x4ccaab(0x1d9)]),!![];const _0x32ae92=_0x88f330[_0x4ccaab(0x1ef)],_0x3b6667=_0x88f330['browser_version'];if(!accessibilityHelper[_0x4ccaab(0x203)](_0x32ae92))return logger['warn'](_0x3e54b9[_0x4ccaab(0x18a)]),![];if(_0x3e54b9[_0x4ccaab(0x1fe)](_0x3b6667,_0x3e54b9['PsNyG'])){const _0xf5bff8=_0x3e54b9[_0x4ccaab(0x1d4)](isBrowserstackInfra),_0x282342=accessibilityHelper[_0x4ccaab(0x210)](_0x32ae92,_0xf5bff8),_0x71cfbd=accessibilityHelper['getBrowserDisplayName'](_0x32ae92);if(!accessibilityHelper[_0x4ccaab(0x1b0)](_0x3b6667,_0x282342)){const _0x4040af=_0xf5bff8?'':_0x3e54b9[_0x4ccaab(0x1a7)];return logger['warn'](_0x4ccaab(0x202)+_0x71cfbd+_0x4ccaab(0x154)+_0x282342+_0x4ccaab(0x1c9)+_0x4040af+'.'),![];}}}catch(_0x363c9b){logger['debug']('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x4ccaab(0x1e0)](_0x363c9b));}return!![];},exports[a46_0x3a4c5e(0x1ac)]=(_0x3ba459,_0xecc5b3,_0x35af24)=>{const _0x5b7ddd=a46_0x3a4c5e,_0x108b79={'svHzg':_0x5b7ddd(0x217),'jFMGb':function(_0x28245e){return _0x28245e();},'zDtIJ':_0x5b7ddd(0x1f6),'OiELa':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','IgtXw':function(_0x193292,_0x2a5c26){return _0x193292!==_0x2a5c26;},'LdFJa':_0x5b7ddd(0x1e8),'eeyWy':_0x5b7ddd(0x1b3),'RXPLk':function(_0x319c77,_0x2c4983){return _0x319c77(_0x2c4983);},'wYUon':function(_0x21e4f3,_0x40df30){return _0x21e4f3===_0x40df30;},'vDsfQ':'android','GLfYU':_0x5b7ddd(0x174),'GcKOV':_0x5b7ddd(0x1ce),'OCDTr':_0x5b7ddd(0x1df),'cHnXp':_0x5b7ddd(0x218),'ZIePv':function(_0x45a13a,_0x3e1eaa){return _0x45a13a+_0x3e1eaa;},'aAVBF':function(_0x4e597d,_0x502310){return _0x4e597d(_0x502310);}};try{if(_0x108b79['jFMGb'](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x3ba459[_0x108b79['zDtIJ']]&&(global[_0x5b7ddd(0x1cd)]=![]);const _0x57eae9=_0x3ba459[_0x5b7ddd(0x1d3)]||_0x3ba459[_0x5b7ddd(0x1ef)],_0x4d1081=_0x3ba459[_0x5b7ddd(0x1fa)];!accessibilityHelper[_0x5b7ddd(0x203)](_0x57eae9)&&(logger[_0x5b7ddd(0x1da)](_0x108b79[_0x5b7ddd(0x196)]),global[_0x5b7ddd(0x1cd)]=![]);if(_0x108b79[_0x5b7ddd(0x1db)](_0x4d1081,_0x108b79[_0x5b7ddd(0x1a5)])){const _0x1431ea=_0x108b79[_0x5b7ddd(0x1c0)](isBrowserstackInfra),_0x5301b1=accessibilityHelper[_0x5b7ddd(0x210)](_0x57eae9,_0x1431ea),_0x166ee8=accessibilityHelper[_0x5b7ddd(0x1f7)](_0x57eae9);if(!accessibilityHelper[_0x5b7ddd(0x1b0)](_0x4d1081,_0x5301b1)){const _0x5205c8=_0x1431ea?'':_0x108b79[_0x5b7ddd(0x181)];logger[_0x5b7ddd(0x1da)](_0x5b7ddd(0x202)+_0x166ee8+_0x5b7ddd(0x154)+_0x5301b1+_0x5b7ddd(0x1c9)+_0x5205c8+'.'),global[_0x5b7ddd(0x1cd)]=![];}}if(!_0x108b79['RXPLk'](isUndefined,_0x3ba459[_0x5b7ddd(0x1dc)])){const _0x1ebae3=(_0x3ba459['os']||'')['toLowerCase'](),_0x41cf13=(_0x3ba459['browserName']||_0x3ba459[_0x5b7ddd(0x1ef)]||'')['toLowerCase'](),_0x4322fc=_0x108b79[_0x5b7ddd(0x173)](_0x1ebae3,_0x108b79[_0x5b7ddd(0x18f)])&&[_0x108b79[_0x5b7ddd(0x20c)],_0x108b79['GcKOV'],_0x108b79[_0x5b7ddd(0x1e2)]][_0x5b7ddd(0x1fd)](_0x41cf13);if(!_0x4322fc)logger[_0x5b7ddd(0x1da)](_0x108b79[_0x5b7ddd(0x1aa)]),global[_0x5b7ddd(0x1cd)]=![];else!accessibilityHelper[_0x5b7ddd(0x208)]()&&(logger[_0x5b7ddd(0x1da)](accessibilityHelper[_0x5b7ddd(0x1ad)]),global[_0x5b7ddd(0x1cd)]=![]);}if(!global[_0x5b7ddd(0x1cd)]){_0x3ba459[_0x108b79[_0x5b7ddd(0x1cc)]]=![],Object['keys'](_0x3ba459)[_0x5b7ddd(0x18d)](_0x3354b6=>{const _0x6317c5=_0x5b7ddd;_0x3354b6['startsWith'](_0x108b79[_0x6317c5(0x1a1)])&&delete _0x3ba459[_0x3354b6];});const _0x34019c=_0x108b79[_0x5b7ddd(0x184)](_0xecc5b3,_0x108b79[_0x5b7ddd(0x1be)](encodeURIComponent,JSON[_0x5b7ddd(0x214)](_0x3ba459)));_0x35af24&&(_0x35af24[_0x5b7ddd(0x19f)][_0x5b7ddd(0x1d0)][_0x5b7ddd(0x1ee)][_0x5b7ddd(0x201)][_0x5b7ddd(0x15a)][_0x5b7ddd(0x167)]=_0x34019c,_0x35af24['workerInfo'][_0x5b7ddd(0x1ee)][_0x5b7ddd(0x201)]['connectOptions']['wsEndpoint']=_0x34019c);}}else global['accessibilityPlatform']=![];}catch(_0x485ab2){logger[_0x5b7ddd(0x1b9)](_0x5b7ddd(0x189)+util['format'](_0x485ab2));}};
1
+ function a46_0x4047(_0x2655ed,_0x1160a0){const _0x5c5fbf=a46_0x5c5f();return a46_0x4047=function(_0x4047e8,_0x4ecc87){_0x4047e8=_0x4047e8-0x172;let _0x22af43=_0x5c5fbf[_0x4047e8];return _0x22af43;},a46_0x4047(_0x2655ed,_0x1160a0);}const a46_0x1181da=a46_0x4047;(function(_0x3406b8,_0x714d5f){const _0x5b5571=a46_0x4047,_0x60fd6c=_0x3406b8();while(!![]){try{const _0x42f5bc=-parseInt(_0x5b5571(0x244))/0x1*(parseInt(_0x5b5571(0x1d5))/0x2)+parseInt(_0x5b5571(0x19d))/0x3+parseInt(_0x5b5571(0x1da))/0x4*(parseInt(_0x5b5571(0x1de))/0x5)+parseInt(_0x5b5571(0x1af))/0x6+parseInt(_0x5b5571(0x1ee))/0x7+-parseInt(_0x5b5571(0x22a))/0x8*(-parseInt(_0x5b5571(0x197))/0x9)+parseInt(_0x5b5571(0x218))/0xa*(-parseInt(_0x5b5571(0x1f2))/0xb);if(_0x42f5bc===_0x714d5f)break;else _0x60fd6c['push'](_0x60fd6c['shift']());}catch(_0x4e8c59){_0x60fd6c['push'](_0x60fd6c['shift']());}}}(a46_0x5c5f,0x9cda2));function a46_0x5c5f(){const _0x4725a4=['accessibilityOptions.wcagVersion','eLERp','CTCYR','connectOptions','../utils/constants','NYLfb','NOlvM','kjPnJ','rNDJm','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20or\x20ChromeForTesting\x20browsers.','[STALE-CDP-EX]\x20attempt=','PERFORM_SCAN','http://','type','tcYGe','project','isDetached','\x20or\x20higher\x20','browser','includes','mainFrame','stringify','MOBILE_SCANNING_DISABLED_WARNING','returnByValue','getMinVersionForBrowser','5023weNEOA','WJzHR','isClosed','UXfXB','TkowU','DCDDo','[STALE-CDP-ERR]\x20cdp-session\x20fallback\x20failed:\x20','../../helpers/accessibility-automation/helper','waitUntil','length',')\x20—\x20reloading\x20page\x20to\x20reset\x20frame','replace','browserStackExecuteDriver','isMobileScanningEnabledForGroup','UPdUP','getAccessibilityResultsSummary\x20failed:\x20','playwright-chromium','wcagVersion','needsReview','assign','wbauU','wsEndpoint','deviceName','testInfo','send','getAccessibilityResultsSummary','expression','getBrowserDisplayName','android','../../helpers/performance/constants','verIl','IhJsl','(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','[STALE-CDP-NO-TARGET]\x20attempt=','YsjGq','error','xULwG','fUxLp','pages','keDpn','724707qSUmUe','createCDPSession','warn','value','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','xhZwT','2879562DklxER','ZxIlt','startsWith','accessibilityOptions.includeIssueType.bestPractice','transient','__workerDetails','name','getAccessibilityResults\x20failed:\x20','performScan','unknown','Pdial','url','page','NycRX','devtools://','accessibilityPlatform','UAwTC','forEach','6165510XfBlnr','MPIlD','Performing\x20scan\x20with\x20method:\x20','browserName','about:blank','VUvPm','[STALE-RELOAD-RETRY]\x20retry\x20after\x20reload\x20—\x20page\x20url=','[STALE-CDP]\x20falling\x20back\x20to\x20fresh-CDP-session\x20evaluate','winstonLogger','gnghk','\x20page:\x20','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','accessibilityOptions.scannerProcessingTimeout','XQeYN','(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','evalViaFreshCDPSession:\x20Runtime.evaluate\x20exception\x20—\x20','][\x20SDK-AUTOMATION\x20]\x20','../../helpers/logger','result','isMobilePlatform','command','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','includeIssueType','skxPD','targets','parameters','currentTest','browserstack.accessibilityOptions','on\x20non-BrowserStack\x20infrastructure\x20','info','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','sbbEh','nQPoy','exceptionDetails','test','VjlMM','chrome','bestPractice','400TXawTj','ZheiD','data:,','env','mLLjF','2591156Ufffvf','lztJX','response','text','5SBWYxB','aYmkS','format','BS_A11Y_JWT','HTWHE','\x20browser\x20version\x20','use','UBawJ','bstackSdkArgs','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','scannerVersion','executeScript','\x20createCDPSession\x20failed:\x20','qBXfg','toLowerCase','browser_version','8345001mCyQmS','sKRuj','find','parse','10219fNlsEf','browserstack.accessibility','executeAsyncScript','debug','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','[STALE-CDP-OK]\x20attempt=','ykqeY','\x20using\x20target\x20url=','Ivdtn','hWwLz','isBrowserSupportedForAccessibility','UJKNX','targetsLen','accessibilityOptions','toISOString','ISVEB','accessibilityOptions.includeIssueType.needsReview','[STALE-CDP-SEND-ERR]\x20attempt=','[STALE-RELOAD-ERR]\x20reload/retry\x20failed:\x20','evaluate','stack','silly','Ppqwa','\x20send\x20failed:\x20','\x20evaluate\x20returned\x20via\x20fresh\x20CDP\x20session','[STALE-RELOAD]\x20browserStackEvaluate:\x20no\x20fresh\x20page\x20after\x20stale-page\x20error\x20(','includePartOfPageScope','constructor','function','IsDvi','HOoZX','platformValidation:\x20Mobile\x20platform\x20already\x20validated.','Nkdgs','platformValidation','eFVqu','nOPAR','../../helpers/accessibility-automation/scripts','vzNfG','28670jbVCGC','latest','JmelK','message','WebDriver','domcontentloaded','string','CZpPV','GWqeU','request','awaitPromise','isVersionSupported','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers\x20or\x20Android\x20Chrome.','\x20targets','\x20transient=','DKdxW','NZWQP','reload','48pPfxrP'];a46_0x5c5f=function(){return _0x4725a4;};return a46_0x5c5f();}const util=require('util'),logger=require(a46_0x1181da(0x1c0))[a46_0x1181da(0x1b7)],{automationLogger}=require(a46_0x1181da(0x1c0)),{isAccessibilityAutomationSession}=require(a46_0x1181da(0x176)),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require(a46_0x1181da(0x216)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a46_0x1181da(0x18c)),accessibilityHelper=require(a46_0x1181da(0x176)),{AUTOMATION_LOG_COMMANDS}=require(a46_0x1181da(0x22f)),isStalePageError=_0xec8534=>{const _0x182cb2=a46_0x1181da,_0x1fd923={'HTWHE':function(_0x4f87c1,_0x1d3d38){return _0x4f87c1(_0x1d3d38);}},_0x2def16=_0xec8534&&_0xec8534['message']||_0x1fd923[_0x182cb2(0x1e2)](String,_0xec8534);return/Target closed|detached [Ff]rame|Execution context was destroyed, most likely because of a navigation/[_0x182cb2(0x1d1)](_0x2def16);},isPageStale=_0x160acf=>{const _0x1c8a2e=a46_0x1181da;try{if(_0x160acf['isClosed']&&_0x160acf[_0x1c8a2e(0x246)]())return!![];const _0x1678cc=_0x160acf[_0x1c8a2e(0x23f)]&&_0x160acf[_0x1c8a2e(0x23f)]();if(_0x1678cc&&_0x1678cc[_0x1c8a2e(0x23b)]&&_0x1678cc[_0x1c8a2e(0x23b)]())return!![];}catch(_0x5e9b2c){}return![];},isUserTabUrl=_0x435e97=>{const _0x391e4b=a46_0x1181da,_0x8ba0bc={};_0x8ba0bc['IhJsl']=_0x391e4b(0x1ab),_0x8ba0bc[_0x391e4b(0x233)]=function(_0x4c8d69,_0x34e6f9){return _0x4c8d69===_0x34e6f9;},_0x8ba0bc[_0x391e4b(0x1fd)]=_0x391e4b(0x1b3),_0x8ba0bc[_0x391e4b(0x201)]=_0x391e4b(0x1d7);const _0x246088=_0x8ba0bc;if(!_0x435e97)return![];if(_0x435e97[_0x391e4b(0x19f)](_0x246088[_0x391e4b(0x18e)]))return![];if(_0x246088[_0x391e4b(0x233)](_0x435e97,_0x246088[_0x391e4b(0x1fd)])||_0x246088[_0x391e4b(0x233)](_0x435e97,_0x246088['ISVEB'])||_0x246088[_0x391e4b(0x233)](_0x435e97,''))return![];return!![];},pickFreshPage=async _0x400d36=>{const _0x1a3c51=a46_0x1181da,_0x1f53d3={'DCDDo':function(_0x1461f0,_0x53e6e7){return _0x1461f0(_0x53e6e7);}};try{const _0x1e1668=await _0x400d36[_0x1a3c51(0x195)]();return _0x1e1668['find'](_0x14efcc=>{const _0x5c7edc=_0x1a3c51;try{if(_0x1f53d3[_0x5c7edc(0x174)](isPageStale,_0x14efcc))return![];return _0x1f53d3['DCDDo'](isUserTabUrl,_0x14efcc['url']&&_0x14efcc[_0x5c7edc(0x1a8)]());}catch(_0x8d8764){return![];}});}catch(_0xe64df5){return null;}},evalViaFreshCDPSession=async(_0xa28ba5,_0x48bf0e)=>{const _0x1f7586=a46_0x1181da,_0x4a1869={'aYmkS':function(_0x4beccd,_0x174be7){return _0x4beccd===_0x174be7;},'xULwG':_0x1f7586(0x1a9),'skxPD':function(_0x28cea5,_0x1b4531){return _0x28cea5===_0x1b4531;},'ZxIlt':_0x1f7586(0x237),'NOlvM':'https://','HJwKZ':_0x1f7586(0x1ab),'eFVqu':function(_0x15793d){return _0x15793d();},'uLnbK':'Runtime.evaluate','UAwTC':_0x1f7586(0x1a6),'UPdUP':function(_0x5e7f10,_0x1f76a8){return _0x5e7f10!==_0x1f76a8;},'Ivdtn':_0x1f7586(0x20e),'CZpPV':function(_0x5bff5a,_0x29b1db){return _0x5bff5a(_0x29b1db);}};if(!_0xa28ba5['browser']||_0x4a1869[_0x1f7586(0x17d)](typeof _0xa28ba5['browser'],_0x4a1869[_0x1f7586(0x1fa)]))return undefined;const _0x32b826=_0xa28ba5['browser']();if(!_0x32b826['targets'])return undefined;const _0x3ae121=_0xa28ba5['url']&&_0xa28ba5[_0x1f7586(0x1a8)]()||'',_0x3fe863=()=>{const _0x2b52a2=_0x1f7586,_0x2ec18b={'NZWQP':function(_0x93d4fb,_0x1be907){return _0x4a1869['aYmkS'](_0x93d4fb,_0x1be907);},'TkowU':_0x4a1869[_0x2b52a2(0x193)],'sKRuj':_0x4a1869[_0x2b52a2(0x19e)],'tcYGe':_0x4a1869[_0x2b52a2(0x231)],'verIl':_0x4a1869['HJwKZ']},_0x1692e8=_0x32b826[_0x2b52a2(0x1c7)]();let _0x5b233d=_0x1692e8[_0x2b52a2(0x1f0)](_0x42d7fe=>{const _0x2280a1=_0x2b52a2;try{return _0x4a1869[_0x2280a1(0x1df)](_0x42d7fe[_0x2280a1(0x238)](),_0x4a1869[_0x2280a1(0x193)])&&_0x4a1869[_0x2280a1(0x1c6)](_0x42d7fe[_0x2280a1(0x1a8)](),_0x3ae121);}catch(_0x51e6dd){return![];}});if(_0x5b233d){const _0x5f5586={};return _0x5f5586['t']=_0x5b233d,_0x5f5586['targetsLen']=_0x1692e8[_0x2b52a2(0x178)],_0x5f5586;}_0x5b233d=_0x1692e8[_0x2b52a2(0x1f0)](_0xcaec89=>{const _0x2b0aee=_0x2b52a2;try{const _0x47fafb=_0xcaec89[_0x2b0aee(0x1a8)]()||'';return _0x2ec18b[_0x2b0aee(0x228)](_0xcaec89[_0x2b0aee(0x238)](),_0x2ec18b[_0x2b0aee(0x173)])&&(_0x47fafb[_0x2b0aee(0x19f)](_0x2ec18b[_0x2b0aee(0x1ef)])||_0x47fafb[_0x2b0aee(0x19f)](_0x2ec18b[_0x2b0aee(0x239)]))&&!_0x47fafb[_0x2b0aee(0x19f)](_0x2ec18b[_0x2b0aee(0x18d)]);}catch(_0x2a42cb){return![];}});const _0x13182b={};return _0x13182b['t']=_0x5b233d,_0x13182b[_0x2b52a2(0x1fe)]=_0x1692e8[_0x2b52a2(0x178)],_0x13182b;},_0x1dc02e=async _0x1bb6b4=>{const _0x47b2c9=_0x1f7586,{t:_0x38273d,targetsLen:_0x558df9}=_0x4a1869[_0x47b2c9(0x214)](_0x3fe863);if(!_0x38273d){logger[_0x47b2c9(0x1cc)](_0x47b2c9(0x190)+_0x1bb6b4+'\x20no\x20AUT\x20target\x20found\x20among\x20'+_0x558df9+_0x47b2c9(0x225));const _0x40775e={};return _0x40775e['ok']=![],_0x40775e[_0x47b2c9(0x1a1)]=![],_0x40775e;}logger[_0x47b2c9(0x1cc)]('[STALE-CDP-TRY]\x20attempt='+_0x1bb6b4+_0x47b2c9(0x1f9)+(_0x38273d[_0x47b2c9(0x1a8)]&&_0x38273d['url']()));let _0x5778dc;try{_0x5778dc=await _0x38273d[_0x47b2c9(0x198)]();}catch(_0x4feb31){const _0x2de0c9=/navigated or closed|Target closed|Session closed/i[_0x47b2c9(0x1d1)](_0x4feb31[_0x47b2c9(0x21b)]||'');logger[_0x47b2c9(0x1cc)]('[STALE-CDP-SESSION-ERR]\x20attempt='+_0x1bb6b4+_0x47b2c9(0x1ea)+_0x4feb31[_0x47b2c9(0x21b)]+_0x47b2c9(0x226)+_0x2de0c9);const _0x3623b9={};return _0x3623b9['ok']=![],_0x3623b9[_0x47b2c9(0x1a1)]=_0x2de0c9,_0x3623b9;}try{const _0x2563cd={};_0x2563cd[_0x47b2c9(0x189)]=_0x48bf0e,_0x2563cd[_0x47b2c9(0x222)]=!![],_0x2563cd[_0x47b2c9(0x242)]=!![];const _0x55e975=await _0x5778dc[_0x47b2c9(0x187)](_0x4a1869['uLnbK'],_0x2563cd);if(_0x55e975&&_0x55e975['exceptionDetails']){const _0x3ed9e5=_0x55e975[_0x47b2c9(0x1d0)]&&_0x55e975[_0x47b2c9(0x1d0)][_0x47b2c9(0x1dd)]||_0x4a1869[_0x47b2c9(0x1ad)];logger['info'](_0x47b2c9(0x235)+_0x1bb6b4+'\x20evaluate\x20exception:\x20'+_0x3ed9e5);const _0x58106d={};return _0x58106d['ok']=![],_0x58106d[_0x47b2c9(0x1a1)]=![],_0x58106d[_0x47b2c9(0x1d0)]=_0x3ed9e5,_0x58106d;}logger[_0x47b2c9(0x1cc)](_0x47b2c9(0x1f7)+_0x1bb6b4+_0x47b2c9(0x20a));const _0x6d346b={};return _0x6d346b['ok']=!![],_0x6d346b[_0x47b2c9(0x19a)]=_0x55e975&&_0x55e975[_0x47b2c9(0x1c1)]&&_0x55e975['result'][_0x47b2c9(0x19a)],_0x6d346b;}catch(_0xc06c7e){const _0xd5a064=/navigated or closed|Target closed|Session closed/i[_0x47b2c9(0x1d1)](_0xc06c7e[_0x47b2c9(0x21b)]||'');logger[_0x47b2c9(0x1cc)](_0x47b2c9(0x203)+_0x1bb6b4+_0x47b2c9(0x209)+_0xc06c7e[_0x47b2c9(0x21b)]+_0x47b2c9(0x226)+_0xd5a064);const _0x4c08b9={};return _0x4c08b9['ok']=![],_0x4c08b9[_0x47b2c9(0x1a1)]=_0xd5a064,_0x4c08b9;}finally{try{_0x5778dc&&_0x5778dc['detach']&&await _0x5778dc['detach']();}catch(_0x4fbaa9){}}};let _0x2771cd=await _0x4a1869[_0x1f7586(0x21f)](_0x1dc02e,0x1);if(_0x2771cd['ok'])return _0x2771cd['value'];if(_0x2771cd[_0x1f7586(0x1a1)]){await new Promise(_0x332ec0=>setTimeout(_0x332ec0,0x190)),_0x2771cd=await _0x4a1869[_0x1f7586(0x21f)](_0x1dc02e,0x2);if(_0x2771cd['ok'])return _0x2771cd[_0x1f7586(0x19a)];}if(_0x2771cd[_0x1f7586(0x1d0)]){const _0x29eb69=new Error(_0x1f7586(0x1be)+_0x2771cd['exceptionDetails']);_0x29eb69['cdpExceptionDetails']=_0x2771cd['exceptionDetails'];throw _0x29eb69;}return undefined;};exports['browserStackEvaluate']=async(_0x3cc00b,_0x188d8a,_0x5c30a6={})=>{const _0x20efc1=a46_0x1181da,_0xe543b1={'VUvPm':_0x20efc1(0x1e6),'ZheiD':function(_0x177c69,_0x8eaf1f){return _0x177c69(_0x8eaf1f);},'JmelK':'[STALE-PRE]\x20browserStackEvaluate:\x20page\x20ref\x20stale,\x20reselected\x20from\x20browser.pages()','kjPnJ':function(_0x3557b2,_0x1a5794){return _0x3557b2(_0x1a5794);},'UXfXB':function(_0x1d9c2a,_0x3208a8){return _0x1d9c2a!==_0x3208a8;},'Tlall':_0x20efc1(0x21d),'DnEIo':_0x20efc1(0x1b6),'hxHAt':function(_0x15ab3b,_0x42d42a,_0x507123){return _0x15ab3b(_0x42d42a,_0x507123);},'keDpn':function(_0x54ab9b,_0x2a8d93){return _0x54ab9b!==_0x2a8d93;},'hWwLz':function(_0x5cd9a2,_0xe76027){return _0x5cd9a2===_0xe76027;},'lztJX':_0x20efc1(0x21e)},_0x50d5d9=_0x20efc1(0x1bd)+_0x188d8a[_0x20efc1(0x17a)](/arguments/g,_0xe543b1[_0x20efc1(0x1b4)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x20efc1(0x240)](_0x5c30a6)+')';let _0x9db792=_0x3cc00b;if(_0xe543b1[_0x20efc1(0x1d6)](isPageStale,_0x9db792)&&_0x3cc00b[_0x20efc1(0x23d)]){const _0x395e79=await _0xe543b1[_0x20efc1(0x1d6)](pickFreshPage,_0x3cc00b[_0x20efc1(0x23d)]());_0x395e79&&(logger['info'](_0xe543b1[_0x20efc1(0x21a)]),_0x9db792=_0x395e79);}let _0x1bb9ad;try{_0x1bb9ad=await _0x9db792['evaluate'](_0x50d5d9);}catch(_0x5b110f){if(_0xe543b1[_0x20efc1(0x232)](isStalePageError,_0x5b110f)&&_0x3cc00b['browser']){const _0x4f7038=await _0xe543b1['ZheiD'](pickFreshPage,_0x3cc00b[_0x20efc1(0x23d)]());if(_0x4f7038&&_0xe543b1[_0x20efc1(0x172)](_0x4f7038,_0x9db792))logger[_0x20efc1(0x1cc)]('[STALE-RETRY]\x20browserStackEvaluate:\x20retry\x20after\x20stale-page\x20error\x20('+_0x5b110f['message']+')\x20—\x20fresh\x20page\x20url='+(_0x4f7038[_0x20efc1(0x1a8)]&&_0x4f7038['url']())),_0x1bb9ad=await _0x4f7038[_0x20efc1(0x205)](_0x50d5d9);else{if(_0x3cc00b[_0x20efc1(0x229)]){let _0x554bbd=![];try{logger[_0x20efc1(0x1cc)](_0x20efc1(0x20b)+_0x5b110f[_0x20efc1(0x21b)]+_0x20efc1(0x179));const _0x336cc4={};_0x336cc4[_0x20efc1(0x177)]=_0xe543b1['Tlall'],await _0x3cc00b[_0x20efc1(0x229)](_0x336cc4);const _0x53ef55=await _0xe543b1[_0x20efc1(0x1d6)](pickFreshPage,_0x3cc00b[_0x20efc1(0x23d)]())||_0x3cc00b;logger[_0x20efc1(0x1cc)](_0x20efc1(0x1b5)+(_0x53ef55[_0x20efc1(0x1a8)]&&_0x53ef55['url']())),_0x1bb9ad=await _0x53ef55['evaluate'](_0x50d5d9),_0x554bbd=!![];}catch(_0x86c60d){logger['info'](_0x20efc1(0x204)+_0x86c60d[_0x20efc1(0x21b)]);}if(!_0x554bbd)try{logger[_0x20efc1(0x1cc)](_0xe543b1['DnEIo']);const _0x694683=await _0xe543b1['hxHAt'](evalViaFreshCDPSession,_0x3cc00b,_0x50d5d9);if(_0xe543b1[_0x20efc1(0x196)](_0x694683,undefined))_0x1bb9ad=_0x694683;else throw _0x5b110f;}catch(_0x688513){logger[_0x20efc1(0x1cc)](_0x20efc1(0x175)+_0x688513[_0x20efc1(0x21b)]);throw _0x5b110f;}}else throw _0x5b110f;}}else throw _0x5b110f;}try{if(_0x188d8a&&_0xe543b1[_0x20efc1(0x1fb)](typeof _0x188d8a,_0xe543b1[_0x20efc1(0x1db)])){const _0x295f88=AUTOMATION_LOG_COMMANDS[_0x20efc1(0x1f0)](_0x45088f=>_0x188d8a[_0x20efc1(0x23e)](_0x45088f));if(_0x295f88){const _0x83567c={};_0x83567c[_0x20efc1(0x1c3)]=_0x295f88,_0x83567c[_0x20efc1(0x1c8)]=[_0x5c30a6];const _0x345d31={};_0x345d31['body']=_0x1bb9ad;const _0x36e1e9={};_0x36e1e9[_0x20efc1(0x221)]=_0x83567c,_0x36e1e9[_0x20efc1(0x1dc)]=_0x345d31,automationLogger[_0x20efc1(0x207)]('['+new Date()[_0x20efc1(0x200)]()+_0x20efc1(0x1bf)+JSON[_0x20efc1(0x240)](_0x36e1e9));}}}catch(_0x4be030){logger['debug'](_0x20efc1(0x19b)+_0x4be030['message']);}return _0x1bb9ad;},exports[a46_0x1181da(0x17b)]=async(_0x10318c,_0xa237c8,_0x5f57c6={})=>{const _0x2e6217=a46_0x1181da,_0x2457fd={};_0x2457fd[_0x2e6217(0x1f8)]=function(_0x2bf2cd,_0x2f6474){return _0x2bf2cd===_0x2f6474;},_0x2457fd[_0x2e6217(0x19c)]=_0x2e6217(0x21c),_0x2457fd['nOPAR']=function(_0x557404,_0x1f29d6){return _0x557404===_0x1f29d6;},_0x2457fd[_0x2e6217(0x1aa)]='Playwright',_0x2457fd['CTCYR']=_0x2e6217(0x1e6);const _0x5af44d=_0x2457fd;if(_0x5af44d['ykqeY'](_0x10318c[_0x2e6217(0x20d)][_0x2e6217(0x1a3)],_0x5af44d[_0x2e6217(0x19c)]))return await _0x10318c[_0x2e6217(0x1f4)](_0xa237c8,_0x5f57c6);else{if(_0x5af44d[_0x2e6217(0x215)](_0x10318c['constructor']['name'],_0x5af44d[_0x2e6217(0x1aa)]))return await _0x10318c[_0x2e6217(0x1e9)](_0x2e6217(0x18f)+_0xa237c8[_0x2e6217(0x17a)](/arguments/g,_0x5af44d[_0x2e6217(0x22d)])+_0x2e6217(0x1f6)+JSON[_0x2e6217(0x240)](_0x5f57c6)+')');}},exports['setAccessibilityCapabilities']=async _0xcfebc=>{const _0x3322a9=a46_0x1181da,_0x1dc784={};_0x1dc784[_0x3322a9(0x1e5)]=_0x3322a9(0x22b),_0x1dc784[_0x3322a9(0x1d9)]=_0x3322a9(0x1bb),_0x1dc784[_0x3322a9(0x210)]=_0x3322a9(0x1a0),_0x1dc784[_0x3322a9(0x217)]=_0x3322a9(0x202),_0x1dc784[_0x3322a9(0x227)]='accessibilityOptions.authToken',_0x1dc784['sbbEh']='accessibilityOptions.scannerVersion';const _0x4f1ae2=_0x1dc784;_0xcfebc['accessibilityOptions']&&(_0xcfebc[_0x3322a9(0x1ff)][_0x3322a9(0x180)]&&(_0xcfebc[_0x4f1ae2['UBawJ']]=_0xcfebc[_0x3322a9(0x1ff)]['wcagVersion']),_0xcfebc[_0x3322a9(0x1ff)]['scannerProcessingTimeout']&&(_0xcfebc[_0x4f1ae2[_0x3322a9(0x1d9)]]=_0xcfebc[_0x3322a9(0x1ff)]['scannerProcessingTimeout']),_0xcfebc[_0x3322a9(0x1ff)][_0x3322a9(0x1c5)]&&(_0xcfebc[_0x4f1ae2[_0x3322a9(0x210)]]=_0xcfebc[_0x3322a9(0x1ff)][_0x3322a9(0x1c5)][_0x3322a9(0x1d4)],_0xcfebc[_0x4f1ae2[_0x3322a9(0x217)]]=_0xcfebc['accessibilityOptions'][_0x3322a9(0x1c5)][_0x3322a9(0x181)]));const _0x5a9b87=JSON[_0x3322a9(0x1f1)](process[_0x3322a9(0x1d8)][_0x3322a9(0x1e7)]||'{}')[_0x3322a9(0x1e8)];_0xcfebc[_0x4f1ae2['DKdxW']]=process[_0x3322a9(0x1d8)][_0x3322a9(0x1e1)],_0xcfebc[_0x4f1ae2[_0x3322a9(0x1ce)]]=_0x5a9b87,delete _0xcfebc[_0x3322a9(0x1ff)];},exports['getAccessibilityResults']=async _0x2bc23d=>{const _0x5773a3=a46_0x1181da,_0x5507ef={};_0x5507ef[_0x5773a3(0x1d2)]=_0x5773a3(0x1cd);const _0x2e62e3=_0x5507ef;if(global[_0x5773a3(0x1ac)])try{const details={'url':await _0x2bc23d.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');const _SCAN_CAP_MS=45000;try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{const _scanPromise=exports.browserStackEvaluate(_0x2bc23d,scripts.performScan,mobileArgs);let _capTimer;const _scanCap=new Promise((_,reject)=>{_capTimer=setTimeout(()=>reject(new Error(`SCAN-CAP-HIT performScan capped at ${_SCAN_CAP_MS}ms`)),_SCAN_CAP_MS);});try{logger.debug(util.format(await Promise.race([_scanPromise,_scanCap])));}finally{clearTimeout(_capTimer);}},{command:'getAccessibilityResults',...details})();}catch(_scanErr){logger.warn(`[SCAN-CAP] performScan didn't complete cleanly (getResults): ${_scanErr.message} — proceeding to fetch cached results`);global.__bstackA11yScanCapHit={reason:'SCAN_CAP_HIT',at:Date.now(),where:'getResults'};}const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x2bc23d,scripts.getResults,mobileArgs);},{...details})();return res;}catch(_0x585447){return logger[_0x5773a3(0x192)](_0x5773a3(0x1a4)+(_0x585447&&(_0x585447[_0x5773a3(0x206)]||_0x585447[_0x5773a3(0x21b)])||_0x585447)),[];}else return logger[_0x5773a3(0x199)](_0x2e62e3[_0x5773a3(0x1d2)]),[];},exports[a46_0x1181da(0x1a5)]=async(_0x45644c,_0x327eb2='',_0x29c8d6={},_0x57c659={})=>{const _0x12d846=a46_0x1181da;logger[_0x12d846(0x1f5)](_0x12d846(0x1b1)+_0x327eb2+_0x12d846(0x1b9)+_0x45644c);const _0x40b602={'url':await _0x45644c['url'](),'testhub_btcer_uuid':global[_0x12d846(0x1a2)]?.['currentTest']?.['id']};if(global[_0x12d846(0x1ac)])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x12d846(0x236)],async()=>{const _0x1536dd=_0x12d846,_0x4c6bf1={};_0x4c6bf1[_0x1536dd(0x1c3)]=_0x327eb2;const _0x5f3b5=_0x4c6bf1;_0x29c8d6&&_0x29c8d6[_0x1536dd(0x20c)]&&(_0x5f3b5[_0x1536dd(0x20c)]=_0x29c8d6[_0x1536dd(0x20c)]);Object[_0x1536dd(0x182)](_0x5f3b5,_0x57c659);const _0x1d6881=await exports['browserStackEvaluate'](_0x45644c,scripts[_0x1536dd(0x1a5)],_0x5f3b5);return _0x1d6881;},{'command':_0x327eb2,..._0x40b602})();},exports[a46_0x1181da(0x188)]=async _0x20882f=>{const _0x572a64=a46_0x1181da,_0x46bbc5={};_0x46bbc5[_0x572a64(0x1a7)]=_0x572a64(0x1ba);const _0x3e2e80=_0x46bbc5;if(global[_0x572a64(0x1ac)])try{const mobileArgs=global.isMobilePlatform?{is_mobile_session:true,thTestRunUuid:global.__workerDetails?.currentTest?.thTestRunUuid}:{};const _SCAN_CAP_MS_SUMMARY=45000;try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');const _scanPromise=exports.browserStackEvaluate(_0x20882f,scripts.performScan,mobileArgs);let _capTimer;const _scanCap=new Promise((_,reject)=>{_capTimer=setTimeout(()=>reject(new Error(`SCAN-CAP-HIT performScan capped at ${_SCAN_CAP_MS_SUMMARY}ms`)),_SCAN_CAP_MS_SUMMARY);});try{logger.debug(util.format(await Promise.race([_scanPromise,_scanCap])));}finally{clearTimeout(_capTimer);}},{command:'getAccessibilityResultsSummary'})();}catch(_scanErr){logger.warn(`[SCAN-CAP] performScan didn't complete cleanly (getSummary): ${_scanErr.message} — proceeding to fetch cached summary`);global.__bstackA11yScanCapHit={reason:'SCAN_CAP_HIT',at:Date.now(),where:'getSummary'};}const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x20882f,scripts.getResultsSummary,mobileArgs);})();if(summaryResults&&typeof summaryResults==='object'&&global.__bstackA11yScanCapHit){summaryResults.degraded=true;summaryResults.degradedReason=global.__bstackA11yScanCapHit.reason;}return summaryResults;}catch(_0x12b038){return logger['error'](_0x572a64(0x17e)+(_0x12b038&&(_0x12b038['stack']||_0x12b038[_0x572a64(0x21b)])||_0x12b038)),{};}else return logger[_0x572a64(0x199)](_0x3e2e80[_0x572a64(0x1a7)]),{};},exports[a46_0x1181da(0x213)]=_0x10af53=>{const _0x5a7bac=a46_0x1181da,_0x1a57ba={'fUxLp':_0x5a7bac(0x211),'buGac':_0x5a7bac(0x234),'NYLfb':function(_0x2a69ff,_0x2d8644){return _0x2a69ff!==_0x2d8644;},'SVqUC':_0x5a7bac(0x219),'gnghk':function(_0x18873b){return _0x18873b();},'qBXfg':_0x5a7bac(0x1cb)};try{if(global[_0x5a7bac(0x1c2)])return logger['debug'](_0x1a57ba[_0x5a7bac(0x194)]),!![];const _0x19660a=_0x10af53[_0x5a7bac(0x23d)],_0x37295c=_0x10af53[_0x5a7bac(0x1ed)];if(!accessibilityHelper[_0x5a7bac(0x1fc)](_0x19660a))return logger['warn'](_0x1a57ba['buGac']),![];if(_0x1a57ba[_0x5a7bac(0x230)](_0x37295c,_0x1a57ba['SVqUC'])){const _0x38915d=_0x1a57ba[_0x5a7bac(0x1b8)](isBrowserstackInfra),_0x32b716=accessibilityHelper[_0x5a7bac(0x243)](_0x19660a,_0x38915d),_0x332559=accessibilityHelper[_0x5a7bac(0x18a)](_0x19660a);if(!accessibilityHelper[_0x5a7bac(0x223)](_0x37295c,_0x32b716)){const _0x800a30=_0x38915d?'':_0x1a57ba[_0x5a7bac(0x1eb)];return logger[_0x5a7bac(0x199)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x332559+'\x20browser\x20version\x20'+_0x32b716+_0x5a7bac(0x23c)+_0x800a30+'.'),![];}}}catch(_0x22f3b1){logger[_0x5a7bac(0x1f5)](_0x5a7bac(0x1c4)+util[_0x5a7bac(0x1e0)](_0x22f3b1));}return!![];},exports['processAccessibilityCaps']=(_0x32e629,_0x22b94b,_0x38c963)=>{const _0x43b3a2=a46_0x1181da,_0x32b672={'XQeYN':_0x43b3a2(0x1ca),'Nkdgs':function(_0x1ddddf){return _0x1ddddf();},'GWqeU':_0x43b3a2(0x1f3),'YsjGq':_0x43b3a2(0x234),'eLERp':function(_0xad8a43,_0x12b0c3){return _0xad8a43!==_0x12b0c3;},'MPIlD':_0x43b3a2(0x219),'Nzrga':_0x43b3a2(0x1cb),'WJzHR':function(_0xd95173,_0x4d0e7b){return _0xd95173(_0x4d0e7b);},'IsDvi':function(_0x1c2deb,_0x3b2fae){return _0x1c2deb===_0x3b2fae;},'wfvIw':_0x43b3a2(0x18b),'yfgVu':_0x43b3a2(0x1d3),'WSYfA':_0x43b3a2(0x17f),'wbauU':'chromium','Ppqwa':_0x43b3a2(0x224),'ymjro':function(_0x2b9430,_0x5d3d4c){return _0x2b9430+_0x5d3d4c;},'nQPoy':function(_0x3ab678,_0x2e6fe7){return _0x3ab678(_0x2e6fe7);}};try{if(_0x32b672['Nkdgs'](isAccessibilityAutomationSession)){global[_0x43b3a2(0x1ac)]=!![];!_0x32e629[_0x32b672[_0x43b3a2(0x220)]]&&(global[_0x43b3a2(0x1ac)]=![]);const _0x56eaf4=_0x32e629[_0x43b3a2(0x1b2)]||_0x32e629['browser'],_0x40c2fb=_0x32e629[_0x43b3a2(0x1ed)];!accessibilityHelper[_0x43b3a2(0x1fc)](_0x56eaf4)&&(logger[_0x43b3a2(0x199)](_0x32b672[_0x43b3a2(0x191)]),global[_0x43b3a2(0x1ac)]=![]);if(_0x32b672[_0x43b3a2(0x22c)](_0x40c2fb,_0x32b672[_0x43b3a2(0x1b0)])){const _0x73c84c=_0x32b672[_0x43b3a2(0x212)](isBrowserstackInfra),_0x57b4f8=accessibilityHelper[_0x43b3a2(0x243)](_0x56eaf4,_0x73c84c),_0x1208d2=accessibilityHelper[_0x43b3a2(0x18a)](_0x56eaf4);if(!accessibilityHelper[_0x43b3a2(0x223)](_0x40c2fb,_0x57b4f8)){const _0x34245d=_0x73c84c?'':_0x32b672['Nzrga'];logger[_0x43b3a2(0x199)]('Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20'+_0x1208d2+_0x43b3a2(0x1e3)+_0x57b4f8+'\x20or\x20higher\x20'+_0x34245d+'.'),global[_0x43b3a2(0x1ac)]=![];}}if(!_0x32b672[_0x43b3a2(0x245)](isUndefined,_0x32e629[_0x43b3a2(0x185)])){const _0x393440=(_0x32e629['os']||'')[_0x43b3a2(0x1ec)](),_0x25e43e=(_0x32e629[_0x43b3a2(0x1b2)]||_0x32e629[_0x43b3a2(0x23d)]||'')[_0x43b3a2(0x1ec)](),_0x391f95=_0x32b672[_0x43b3a2(0x20f)](_0x393440,_0x32b672['wfvIw'])&&[_0x32b672['yfgVu'],_0x32b672['WSYfA'],_0x32b672[_0x43b3a2(0x183)]]['includes'](_0x25e43e);if(!_0x391f95)logger[_0x43b3a2(0x199)](_0x32b672[_0x43b3a2(0x208)]),global['accessibilityPlatform']=![];else!accessibilityHelper[_0x43b3a2(0x17c)]()&&(logger[_0x43b3a2(0x199)](accessibilityHelper[_0x43b3a2(0x241)]),global[_0x43b3a2(0x1ac)]=![]);}if(!global[_0x43b3a2(0x1ac)]){_0x32e629[_0x32b672[_0x43b3a2(0x220)]]=![],Object['keys'](_0x32e629)[_0x43b3a2(0x1ae)](_0x47e9f2=>{const _0x5b3020=_0x43b3a2;_0x47e9f2['startsWith'](_0x32b672[_0x5b3020(0x1bc)])&&delete _0x32e629[_0x47e9f2];});const _0x5acbe0=_0x32b672['ymjro'](_0x22b94b,_0x32b672[_0x43b3a2(0x1cf)](encodeURIComponent,JSON[_0x43b3a2(0x240)](_0x32e629)));_0x38c963&&(_0x38c963[_0x43b3a2(0x1c9)][_0x43b3a2(0x186)][_0x43b3a2(0x23a)][_0x43b3a2(0x1e4)]['connectOptions'][_0x43b3a2(0x184)]=_0x5acbe0,_0x38c963['workerInfo']['project'][_0x43b3a2(0x1e4)][_0x43b3a2(0x22e)][_0x43b3a2(0x184)]=_0x5acbe0);}}else global[_0x43b3a2(0x1ac)]=![];}catch(_0x3b7bef){logger[_0x43b3a2(0x1f5)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util['format'](_0x3b7bef));}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a47_0x4d2b(_0x3217df,_0x7f5e35){const _0x2caec3=a47_0x2cae();return a47_0x4d2b=function(_0x4d2bab,_0x29125e){_0x4d2bab=_0x4d2bab-0x187;let _0x1bce8e=_0x2caec3[_0x4d2bab];return _0x1bce8e;},a47_0x4d2b(_0x3217df,_0x7f5e35);}const a47_0x35c29d=a47_0x4d2b;(function(_0x329952,_0x213cae){const _0x3aa51f=a47_0x4d2b,_0x5e4d78=_0x329952();while(!![]){try{const _0x199f50=parseInt(_0x3aa51f(0x22b))/0x1+-parseInt(_0x3aa51f(0x1b5))/0x2*(-parseInt(_0x3aa51f(0x1f4))/0x3)+-parseInt(_0x3aa51f(0x200))/0x4+parseInt(_0x3aa51f(0x214))/0x5*(parseInt(_0x3aa51f(0x201))/0x6)+-parseInt(_0x3aa51f(0x23b))/0x7*(-parseInt(_0x3aa51f(0x1b1))/0x8)+parseInt(_0x3aa51f(0x22f))/0x9*(-parseInt(_0x3aa51f(0x244))/0xa)+-parseInt(_0x3aa51f(0x198))/0xb;if(_0x199f50===_0x213cae)break;else _0x5e4d78['push'](_0x5e4d78['shift']());}catch(_0x3d2635){_0x5e4d78['push'](_0x5e4d78['shift']());}}}(a47_0x2cae,0xee0c9));const fs=require('fs'),path=require(a47_0x35c29d(0x23f)),{pathToFileURL}=require(a47_0x35c29d(0x251)),{spawn}=require(a47_0x35c29d(0x236)),{format}=require('util'),logger=require(a47_0x35c29d(0x194))[a47_0x35c29d(0x247)],{default:BrowserStackSetup}=require(a47_0x35c29d(0x1c7)),helper=require(a47_0x35c29d(0x238)),utilities=require('../../helpers/utilities'),constants=require(a47_0x35c29d(0x1b0)),{FRAMEWORKS}=require(a47_0x35c29d(0x1e0)),{getConfigLoaderPath}=require(a47_0x35c29d(0x1ae)),{mergeBrowserstackReporterIntoCliReporterFlag}=require('./reporterArgs'),{shouldProcessEventForTesthub}=require(a47_0x35c29d(0x193)),{checkAccessibilityPlatformConfig}=require(a47_0x35c29d(0x1ef)),{setAccessibilityCapabilities}=require(a47_0x35c29d(0x22e)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a47_0x35c29d(0x245)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a47_0x35c29d(0x206)),TestOrchestrationHandler=require('../../helpers/test-orchestration/testOrchestrationHandler'),BrowserstackCLI=require(a47_0x35c29d(0x1e3)),PerformanceEvents=require('../../helpers/performance/constants')[a47_0x35c29d(0x1f5)],CLIUtils=require(a47_0x35c29d(0x19c)),TestInfo=require(a47_0x35c29d(0x1d5)),ClientTroubleShootingService=require(a47_0x35c29d(0x21b)),getUserPlaywrightConfig=async(_0x54f1d9,_0x246ce6)=>{const _0x3dfa85=a47_0x35c29d,_0x129cf9={'GSMhX':function(_0x3b3724){return _0x3b3724();},'eSkyF':function(_0x294cfb,_0x46651e){return _0x294cfb(_0x46651e);},'UjMzy':function(_0x25f68c,_0x495e8e){return _0x25f68c(_0x495e8e);},'LwWxR':_0x3dfa85(0x212),'CPFpM':_0x3dfa85(0x253)},_0xc1c216=!helper['isUndefined'](_0x54f1d9[_0x3dfa85(0x1bb)]),_0x3c445d=_0xc1c216?path['resolve'](process['cwd'](),_0x54f1d9[_0x3dfa85(0x1bb)]):process['cwd'](),{resolveConfigFile:_0x2b4596,resolveConfigLocation:_0x43747d}=helper['isYarnPnP']()?helper[_0x3dfa85(0x1be)](..._0x129cf9[_0x3dfa85(0x18d)](getConfigLoaderPath)):helper[_0x3dfa85(0x1fa)]['apply'](null,_0x129cf9['GSMhX'](getConfigLoaderPath)),_0x52ae3c=_0x2b4596?_0x129cf9[_0x3dfa85(0x207)](_0x2b4596,_0x3c445d):helper[_0x3dfa85(0x1e9)](_0x129cf9[_0x3dfa85(0x224)](_0x43747d,_0x3c445d),[_0x129cf9[_0x3dfa85(0x1ad)]]),_0x1bf8dc={};if(_0xc1c216){const _0x5837dc=_0x246ce6['findIndex'](_0x48d5fe=>_0x48d5fe===_0x3dfa85(0x1ac)||_0x48d5fe==='-c'||_0x48d5fe[_0x3dfa85(0x1dc)]('--config='));_0x246ce6[_0x3dfa85(0x257)](_0x5837dc,_0x246ce6[_0x5837dc]['startsWith'](_0x129cf9[_0x3dfa85(0x195)])?0x1:0x2);}const _0x1a533a={};return _0x1a533a[_0x3dfa85(0x23f)]=_0x52ae3c,_0x1a533a['config']=_0x1bf8dc,_0x1a533a;},handleO11yRerun=_0x10e62b=>{const _0x2deba=a47_0x35c29d,_0x4f8aad={};_0x4f8aad[_0x2deba(0x1fc)]=_0x2deba(0x1db);const _0x1d4115=_0x4f8aad,_0x17cfde=helper[_0x2deba(0x18c)](process['env'][_0x2deba(0x19d)]);if(_0x17cfde){const _0x2d3bb8=process[_0x2deba(0x241)][_0x2deba(0x1a2)],_0x4559fc=[];if(helper[_0x2deba(0x19f)](_0x2d3bb8)&&!helper['isUndefined'](_0x2d3bb8)){_0x2d3bb8['split'](',')['map'](_0x4f9197=>{const _0x285d3d=_0x2deba;_0x4559fc[_0x285d3d(0x20c)]('('+_0x4f9197[_0x285d3d(0x1d8)]()+')');});const _0x2f9f11='^'+_0x4559fc['join']('|')+'$';_0x10e62b[_0x2deba(0x20c)](_0x1d4115[_0x2deba(0x1fc)],_0x2f9f11);}}},spawnOriginalProcess=_0x2d9e12=>{const _0x141354=a47_0x35c29d,_0x3edab8={'UOdNY':function(_0x2c5293,_0x3d2e07,_0x24585a,_0x4c100a){return _0x2c5293(_0x3d2e07,_0x24585a,_0x4c100a);},'SEqqj':_0x141354(0x20e),'djyMH':_0x141354(0x208),'hKkKB':_0x141354(0x252),'XoSgN':function(_0x172c20,_0x57cfdf){return _0x172c20===_0x57cfdf;},'myEoQ':'win32','iiJzn':_0x141354(0x1f7)};_0x3edab8[_0x141354(0x233)](spawn,helper[_0x141354(0x1de)]()?_0x3edab8[_0x141354(0x1ec)]:_0x3edab8[_0x141354(0x1e1)],[_0x3edab8[_0x141354(0x1bd)],..._0x2d9e12['slice'](0x1)],{'shell':_0x3edab8['XoSgN'](process['platform'],_0x3edab8[_0x141354(0x239)]),'stdio':_0x3edab8['iiJzn'],'cwd':process[_0x141354(0x1b9)]()});},isTestCommand=(_0x3c08f8,_0x5e3b85)=>{const _0xfdae41=a47_0x35c29d,_0x348410={};_0x348410[_0xfdae41(0x1dd)]=function(_0x5e5f4a,_0x44944a){return _0x5e5f4a>_0x44944a;},_0x348410[_0xfdae41(0x1a7)]=function(_0x449509,_0x36c102){return _0x449509===_0x36c102;},_0x348410[_0xfdae41(0x1aa)]=_0xfdae41(0x18f);const _0x44cd8f=_0x348410;if(_0x44cd8f[_0xfdae41(0x1dd)](_0x5e3b85['length'],0x1)&&_0x44cd8f[_0xfdae41(0x1a7)](_0x5e3b85[0x1],_0x44cd8f[_0xfdae41(0x1aa)]))return!![];return![];};function a47_0x2cae(){const _0x46c0d1=['mvNRZ','config','zosQJ','hKkKB','requireConfigLoaderYarnPnP','browserstackAutomation','stringify','UjnUh','isFalse','aJSgm','reportConflictingEnvVarIssue','error','PzRct','../../helpers/BrowserStackSetup','yxtHX','pw_result.json','SDK_PRE_INITIALIZE','KhAzK','fbYPh','dirname','JrUUc','stop','\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','debug','automation','testContextOptions','zUYSh','../v2/TestInfo','Generated\x20Playwright\x20config\x20will\x20load\x20the\x20SDK\x20from\x20(cjs)\x20','false','trim','BROWSERSTACK_TESTHUB_UUID_SEED','findPlaywrightTestFiles','--grep','startsWith','yuqar','isYarnPnP','jqPqk','../../helpers/test-observability/constants','djyMH','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','../v2/browserstackCLI','unlinkSync','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','constants','TQOXn','resolve','nestedKeyValue','getNoProxy','reportDotBrowserStackFolderNotAccessibleIssue','SEqqj','rJXqa','indexOf','../../helpers/accessibility-automation/helper','filter','clearTempPWConfig','URxUf','BROWSERSTACK_SETUP_CONFIG_PATH','3525882ssXQCU','EVENTS','isRunning','inherit','join','has','requirePWModule','skipSessionName','vjGCC','SGetL','Updated\x20config\x20file\x20name\x20to\x20-\x20','W_OK','1630976YmKidg','7206qdGTxi','pDOuN','filterBrowserstackArgs','BROWSERSTACK_TEST_OBSERVABILITY','homedir','../../helpers/performance/performance-tester','eSkyF','npx','hQDlh','accessibility','true','push','PACKAGE_TYPE','yarn','BROWSERSTACK_FRAMEWORK','aGWKu','vGBou','resolvedConfigFile','NbBrx','3880aFdFhJ','skipSessionStatus','WcpAv','seeded\x20BROWSERSTACK_TESTHUB_UUID_SEED\x20with\x20testhub\x20build\x20id\x20','get','end','start','../utils/clientTroubleshootingService','SDK_SETUP','USER_CONFIG_DETAILS_PATH','SjLyV','getConfigPath','getInstance','GXbcN','shutdown','Deleting\x20','UjMzy','Sbrlj','getConfig','xDCVD','sep','R_OK','slice','667409Yiilft','existsSync','setupBrowserstackLocal','./accessibility-helper','20772MdiCmf','--disable-browserstack-automation','accessibilityOptions','Playwright\x20process\x20exited\x20with\x20code\x20','UOdNY','quBwX','\x20/\x20(esm)\x20','child_process','getProxyUrl','../../helpers/helper','myEoQ','.browserstack','12834451rMkxOc','Error\x20in\x20deleting\x20playwright\x20results','--disable-test-observability','trace_','path','pCunK','env','relative','MODULE','1440baJHhq','./reporter/test-details','mWBkM','winstonLogger','writeFileSync','dMFvx','VbESc','BROWSERSTACK_TEST_ACCESSIBILITY_YML','errorMessage','WXySX','browserstackSetupConfig.json','accessSync','rUwWm','url','playwright','--config=','parse','GMiOj','playwright-browserstack-sdk.config.js','splice','jLuqp','WYPxV','bootstrap','exitCode','mtfuR','map','lSTMJ','cliConfig','\x27browserstack-node-sdk\x27','\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();','length','lZkBU','isTypescriptProject','assign','platform','isTrue','GSMhX','xInUU','test','Proxy\x20url\x20:\x20','measureWrapper','yAmIA','../../helpers/testhub/utils','../../helpers/logger','CPFpM','Error\x20in\x20getting\x20funnel\x20data\x20results','SDK_POST_INITIALIZE','31823297Mzvtug','yTlqc','SCQsu','playwright-browserstack-sdk.config.cjs','../v2/cliUtils','BROWSERSTACK_RERUN','readFileSync','validateRerunTestList','isValidEnvValue','getPackageType','BROWSERSTACK_RERUN_TESTS','initialize',')._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','testObservability','Cmmqe','weOLQ','O11yHashedID','Error\x20in\x20closing\x20playwright','AGhxj','PLAYWRIGHT','--config','LwWxR','./reporter/pwUtils','asuHw','../utils/constants','8cnOSYa','FpENE','split','warn','2nSIPZI','ZltRg','setFrameworkDetail','BROWSERSTACK_PW_TEST_ORDER','cwd'];a47_0x2cae=function(){return _0x46c0d1;};return a47_0x2cae();}async function run(_0xf6e642,_0x2368f0,_0x11e621){const _0x273b64=a47_0x35c29d,_0x2dbf7c={'vGBou':_0x273b64(0x23a),'aJSgm':_0x273b64(0x1c9),'UjnUh':function(_0x1e6bf2,_0x3ca95b){return _0x1e6bf2+_0x3ca95b;},'GXbcN':_0x273b64(0x196),'dMFvx':function(_0x14e0e9,_0x2494b5){return _0x14e0e9(_0x2494b5);},'ZltRg':function(_0x8d71ff){return _0x8d71ff();},'VbESc':function(_0x1e2079){return _0x1e2079();},'lSTMJ':_0x273b64(0x1a9),'quBwX':'BrowserStack\x20config\x20file\x20not\x20found.','rJXqa':function(_0xe981c1,_0x33ef80){return _0xe981c1<_0x33ef80;},'pDOuN':function(_0x5f4c60,_0x12eb89){return _0x5f4c60===_0x12eb89;},'mtfuR':_0x273b64(0x1d7),'OYpFV':_0x273b64(0x23d),'asuHw':function(_0x5d6411,_0x82f198){return _0x5d6411>=_0x82f198;},'xInUU':_0x273b64(0x1d2),'SjLyV':function(_0xb3518b,_0x592142){return _0xb3518b!=_0x592142;},'Cmmqe':function(_0x2c8d56,_0x44dab3,_0x1ea59e){return _0x2c8d56(_0x44dab3,_0x1ea59e);},'JrUUc':function(_0x2204c9,_0x487ab1){return _0x2204c9(_0x487ab1);},'sVdTo':_0x273b64(0x20b),'mWBkM':function(_0x4e3fa4,_0x578793){return _0x4e3fa4(_0x578793);},'SCQsu':function(_0x4d0cc1,_0x5771ce){return _0x4d0cc1(_0x5771ce);},'fbYPh':_0x273b64(0x24e),'beWPG':_0x273b64(0x19b),'SGetL':_0x273b64(0x256),'WXySX':'../../index.js','WYPxV':_0x273b64(0x260),'PzRct':function(_0x1a86a0,_0xdf7093){return _0x1a86a0(_0xdf7093);},'RfrIK':function(_0xb703ef,_0x53cf5e){return _0xb703ef-_0x53cf5e;},'zUYSh':_0x273b64(0x1fe),'pCunK':function(_0x20498f,_0xd4d5b4){return _0x20498f>_0xd4d5b4;},'yAmIA':function(_0x4a5922){return _0x4a5922();},'gSEiA':'Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','jqPqk':function(_0x38a610,_0x47b7e7){return _0x38a610>_0x47b7e7;},'xDCVD':'playwright','URxUf':function(_0x2d3e4c,_0x5e0719,_0x3ca00d,_0x43511d){return _0x2d3e4c(_0x5e0719,_0x3ca00d,_0x43511d);},'yTlqc':'yarn','mvNRZ':_0x273b64(0x208),'VqGmo':_0x273b64(0x18f),'KhAzK':'--config','hQDlh':function(_0x4300af,_0x52d983){return _0x4300af===_0x52d983;},'lZkBU':'win32','tqUzq':function(_0x2535d0,_0x53b711){return _0x2535d0===_0x53b711;},'Svbwg':_0x273b64(0x1f7),'TQOXn':'close','yxtHX':function(_0x366392,_0x5d4a88){return _0x366392|_0x5d4a88;},'FpENE':function(_0x4fb638,_0x5060bd){return _0x4fb638+_0x5060bd;},'NbBrx':_0x273b64(0x1e2),'zosQJ':function(_0x474a17,_0x147cd8){return _0x474a17+_0x147cd8;},'GMiOj':_0x273b64(0x23c),'Oevko':function(_0x4f3050,_0x571e3b,_0xa8886d){return _0x4f3050(_0x571e3b,_0xa8886d);},'Sbrlj':function(_0x19aea2,_0x593120){return _0x19aea2(_0x593120);}};try{const _0x57e85f=path[_0x273b64(0x1f8)](helper['homedir'](),_0x2dbf7c[_0x273b64(0x211)]);try{fs[_0x273b64(0x24f)](_0x57e85f,_0x2dbf7c[_0x273b64(0x1c8)](fs[_0x273b64(0x1e6)][_0x273b64(0x229)],fs['constants'][_0x273b64(0x1ff)]));}catch(_0x450d82){ClientTroubleShootingService[_0x273b64(0x1eb)]();}}catch(_0x45b520){logger[_0x273b64(0x1d1)](_0x2dbf7c[_0x273b64(0x1b2)](_0x2dbf7c[_0x273b64(0x213)],_0x45b520));}try{const _0x9bb1bc=path[_0x273b64(0x1f8)](helper[_0x273b64(0x205)](),_0x2dbf7c['vGBou'],_0x2dbf7c[_0x273b64(0x1c3)]);fs[_0x273b64(0x22c)](_0x9bb1bc)&&fs[_0x273b64(0x1e4)](_0x9bb1bc);}catch(_0xbf781f){logger[_0x273b64(0x1d1)](_0x2dbf7c[_0x273b64(0x1bc)](_0x2dbf7c[_0x273b64(0x255)],_0xbf781f));}if(!_0x2dbf7c['Oevko'](isTestCommand,_0xf6e642,_0x2368f0)){_0x2dbf7c[_0x273b64(0x225)](spawnOriginalProcess,_0x2368f0);return;}await PerformanceTester[_0x273b64(0x191)](PerformanceEvents[_0x273b64(0x1ca)],async()=>{const _0x2f49a7=_0x273b64,_0x1ee9aa={'xhNvN':function(_0x55c1cd,_0x3fe1d4){const _0x5d6a3b=a47_0x4d2b;return _0x2dbf7c[_0x5d6a3b(0x249)](_0x55c1cd,_0x3fe1d4);},'jLuqp':_0x2dbf7c[_0x2f49a7(0x211)],'WcpAv':function(_0x38532c){const _0x13db4e=_0x2f49a7;return _0x2dbf7c[_0x13db4e(0x1b6)](_0x38532c);},'DOngj':function(_0x12ce64){const _0x299017=_0x2f49a7;return _0x2dbf7c[_0x299017(0x24a)](_0x12ce64);},'rUwWm':function(_0x51a55f,_0x254020){const _0x1ba62b=_0x2f49a7;return _0x2dbf7c[_0x1ba62b(0x1c1)](_0x51a55f,_0x254020);},'aGWKu':_0x2dbf7c[_0x2f49a7(0x25e)]};if(!_0x11e621[_0x2f49a7(0x1bb)]){logger[_0x2f49a7(0x1c5)](_0x2dbf7c[_0x2f49a7(0x234)]);return;}await _0x11e621[_0x2f49a7(0x1a3)](_0xf6e642),CLIUtils[_0x2f49a7(0x1b7)](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x2f49a7(0x1ab)]),BrowserstackCLI[_0x2f49a7(0x220)]()['setBrowserstackConfig'](_0x11e621[_0x2f49a7(0x1bb)],_0x11e621['configPath'],_0x11e621[_0x2f49a7(0x25f)]),await BrowserstackCLI[_0x2f49a7(0x220)]()[_0x2f49a7(0x25a)]();!BrowserstackCLI[_0x2f49a7(0x220)]()['isRunning']()&&await _0x11e621[_0x2f49a7(0x22d)]();for(var _0x2a14ec=0x0;_0x2dbf7c[_0x2f49a7(0x1ed)](_0x2a14ec,constants['INTERNALLY_USED_ENV_VARS']['length']);_0x2a14ec++){var _0x597a57=constants['INTERNALLY_USED_ENV_VARS'][_0x2a14ec];process[_0x2f49a7(0x241)][_0x597a57]&&await ClientTroubleShootingService[_0x2f49a7(0x1c4)](_0x597a57);}const _0x1c6d04=BrowserstackCLI[_0x2f49a7(0x220)]()[_0x2f49a7(0x226)]();!helper[_0x2f49a7(0x1c2)](_0x1c6d04[_0x2f49a7(0x1bf)])&&(process[_0x2f49a7(0x241)]['BROWSERSTACK_AUTOMATION']=!![]);_0x2dbf7c[_0x2f49a7(0x202)](_0x1c6d04['browserstackAutomation'],![])&&(process[_0x2f49a7(0x241)]['BROWSERSTACK_AUTOMATION']=_0x2dbf7c[_0x2f49a7(0x25c)],_0x2368f0=_0x2368f0[_0x2f49a7(0x1f0)](_0x2d4c92=>_0x2d4c92!==_0x2f49a7(0x230)));const _0x42dc0b=_0x2368f0[_0x2f49a7(0x1ee)](_0x2dbf7c['OYpFV']);(_0x2dbf7c[_0x2f49a7(0x1af)](_0x42dc0b,0x0)||_0x2dbf7c[_0x2f49a7(0x202)](_0x1c6d04[_0x2f49a7(0x1a5)],![]))&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=_0x2dbf7c['mtfuR'],_0x2368f0=_0x2368f0['filter'](_0x57579c=>_0x57579c!==_0x2f49a7(0x23d)));!helper['isUndefined'](_0x11e621[_0x2f49a7(0x25f)])&&_0x11e621[_0x2f49a7(0x25f)][_0x2f49a7(0x1f9)](_0x2dbf7c[_0x2f49a7(0x18e)])&&(process[_0x2f49a7(0x241)]['BROWSERSTACK_AUTOMATION']=_0x11e621[_0x2f49a7(0x25f)][_0x2f49a7(0x218)](_0x2dbf7c[_0x2f49a7(0x18e)])||!![]);_0x2dbf7c[_0x2f49a7(0x21e)](_0x11e621[_0x2f49a7(0x1bb)][_0x2f49a7(0x1a5)],null)&&!helper[_0x2f49a7(0x18c)](process['env'][_0x2f49a7(0x204)])&&(process[_0x2f49a7(0x241)][_0x2f49a7(0x204)]=process[_0x2f49a7(0x241)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x11e621['config'][_0x2f49a7(0x1a5)]);const _0x5242c1=!helper[_0x2f49a7(0x1c2)](process[_0x2f49a7(0x241)][_0x2f49a7(0x204)]);if(BrowserstackCLI[_0x2f49a7(0x220)]()[_0x2f49a7(0x1f6)]()&&_0x5242c1){const _0x57f33a=BrowserstackCLI[_0x2f49a7(0x1a8)];helper[_0x2f49a7(0x1a0)](_0x57f33a)?(process[_0x2f49a7(0x241)][_0x2f49a7(0x1d9)]=_0x57f33a,logger['debug'](_0x2f49a7(0x217)+_0x57f33a)):logger[_0x2f49a7(0x1b4)]('testhub\x20build\x20UUID\x20(BrowserstackCLI.O11yHashedID)\x20unavailable;\x20skipping\x20deterministic\x20test-run\x20uuid\x20seeding\x20and\x20falling\x20back\x20to\x20file-coordinated\x20uuids.\x20Got:\x20'+_0x57f33a);}_0x11e621['config'][_0x2f49a7(0x231)]&&(process[_0x2f49a7(0x241)][_0x2f49a7(0x1e5)]=JSON[_0x2f49a7(0x1c0)](_0x11e621[_0x2f49a7(0x1bb)][_0x2f49a7(0x231)]));let _0x3b3fdf=![];_0x11e621[_0x2f49a7(0x1bb)][_0x2f49a7(0x20a)]&&(_0x3b3fdf=!![],process[_0x2f49a7(0x241)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x11e621[_0x2f49a7(0x1bb)][_0x2f49a7(0x20a)]);const _0x1220dd=_0x2368f0['concat'](),_0x375e3c=await _0x2dbf7c[_0x2f49a7(0x1a6)](getUserPlaywrightConfig,_0xf6e642,_0x2368f0);if(helper['isUndefined'](_0x375e3c)){_0x2dbf7c[_0x2f49a7(0x1ce)](spawnOriginalProcess,_0x1220dd);return;}const _0x2cf19c=_0x375e3c[_0x2f49a7(0x23f)]?path['dirname'](_0x375e3c[_0x2f49a7(0x23f)]):process['cwd']();process[_0x2f49a7(0x241)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x2cf19c,await PerformanceTester[_0x2f49a7(0x191)](PerformanceEvents[_0x2f49a7(0x197)],async()=>{const _0x49fe2d=_0x2f49a7;!BrowserstackCLI[_0x49fe2d(0x220)]()[_0x49fe2d(0x1f6)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0x49fe2d(0x1ab)],_0x11e621),_0x5242c1&&_0x1ee9aa['xhNvN'](handleO11yRerun,_0x2368f0);})();if(!BrowserstackCLI[_0x2f49a7(0x220)]()[_0x2f49a7(0x1f6)]()){let _0x58de82=_0x2dbf7c['pDOuN'](process[_0x2f49a7(0x241)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x2dbf7c['sVdTo']);_0x58de82=_0x58de82||_0x2dbf7c[_0x2f49a7(0x246)](checkAccessibilityPlatformConfig,_0x11e621['config']),process[_0x2f49a7(0x241)][_0x2f49a7(0x24b)]=_0x58de82,_0x58de82&&_0x2dbf7c[_0x2f49a7(0x19a)](setAccessibilityCapabilities,_0x11e621[_0x2f49a7(0x1bb)]);}const _0x2f14cf=path[_0x2f49a7(0x1f8)](_0x375e3c['path']?path[_0x2f49a7(0x1cd)](_0x375e3c[_0x2f49a7(0x23f)]):process[_0x2f49a7(0x1b9)](),_0x2dbf7c[_0x2f49a7(0x1cc)]);fs[_0x2f49a7(0x248)](_0x2f14cf,helper['serializeToYamlString'](_0x11e621['config'])),process[_0x2f49a7(0x241)][_0x2f49a7(0x1f3)]=_0x2f14cf,helper[_0x2f49a7(0x1f1)]();let _0x2aef73='';_0x2dbf7c[_0x2f49a7(0x202)](helper[_0x2f49a7(0x1a1)](_0x2cf19c),constants[_0x2f49a7(0x20d)][_0x2f49a7(0x243)])?_0x2aef73=_0x2dbf7c['beWPG']:_0x2aef73=_0x2dbf7c[_0x2f49a7(0x1fd)];let _0x1bf3e0='';const _0x16e53f=path[_0x2f49a7(0x1e8)](__dirname,_0x2dbf7c[_0x2f49a7(0x24d)]),_0x56784f=fs[_0x2f49a7(0x22c)](_0x16e53f),_0x462f08=_0x2dbf7c[_0x2f49a7(0x202)](helper['getPackageType'](_0x2cf19c),constants[_0x2f49a7(0x20d)][_0x2f49a7(0x243)]),_0x19b50f=_0x56784f?JSON[_0x2f49a7(0x1c0)](_0x16e53f):_0x2dbf7c[_0x2f49a7(0x259)],_0x21d9c6=_0x56784f?_0x462f08?JSON['stringify'](_0x2dbf7c[_0x2f49a7(0x1c6)](pathToFileURL,_0x16e53f)['href']):JSON['stringify'](_0x16e53f):_0x2dbf7c['WYPxV'];logger[_0x2f49a7(0x1d1)](_0x2f49a7(0x1d6)+_0x19b50f+_0x2f49a7(0x235)+_0x21d9c6);if(helper[_0x2f49a7(0x189)](_0x375e3c[_0x2f49a7(0x23f)])){_0x1bf3e0='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20'+_0x21d9c6+';\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x440b61=_0x2aef73[_0x2f49a7(0x1b3)]('.');_0x440b61[_0x2dbf7c['RfrIK'](_0x440b61['length'],0x1)]='ts',_0x2aef73=_0x440b61[_0x2f49a7(0x1f8)]('.'),logger[_0x2f49a7(0x1d1)](_0x2dbf7c[_0x2f49a7(0x1c1)](_0x2dbf7c[_0x2f49a7(0x1d4)],_0x2aef73));}else _0x1bf3e0='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require('+_0x19b50f+_0x2f49a7(0x1a4);const _0x555965=path[_0x2f49a7(0x1f8)](_0x375e3c[_0x2f49a7(0x23f)]?path[_0x2f49a7(0x1cd)](_0x375e3c[_0x2f49a7(0x23f)]):process['cwd'](),_0x2aef73);let _0x24a830=_0x375e3c[_0x2f49a7(0x23f)]?_0x375e3c[_0x2f49a7(0x23f)]:'';_0x24a830=_0x2dbf7c[_0x2f49a7(0x240)](_0x24a830[_0x2f49a7(0x187)],0x0)?path['resolve'](_0x24a830):'',process['env'][_0x2f49a7(0x21d)]=_0x24a830;const _0xba2bf4=helper[_0x2f49a7(0x237)](_0x11e621[_0x2f49a7(0x1bb)]),_0x5f0fe9=helper[_0x2f49a7(0x1ea)](_0x11e621[_0x2f49a7(0x1bb)]);logger[_0x2f49a7(0x1d1)](_0x2f49a7(0x190)+_0xba2bf4),logger[_0x2f49a7(0x1d1)]('No\x20Proxy\x20:\x20'+_0x5f0fe9);_0xba2bf4&&(_0x1bf3e0=_0x2dbf7c[_0x2f49a7(0x1c1)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0xba2bf4+_0x2f49a7(0x1d0)+_0x5f0fe9+_0x2f49a7(0x261),_0x1bf3e0));helper[_0x2f49a7(0x203)]({},_0x2368f0),_0x2dbf7c[_0x2f49a7(0x1a6)](mergeBrowserstackReporterIntoCliReporterFlag,_0x2368f0,{'enabled':_0x2dbf7c[_0x2f49a7(0x192)](shouldProcessEventForTesthub)}),fs['writeFileSync'](_0x555965,_0x1bf3e0);let _0x649b5b=[];const _0x15cea8=new TestOrchestrationHandler(_0x11e621[_0x2f49a7(0x1bb)]);if(_0x15cea8['isTestOrchestrationEnabled']()){logger[_0x2f49a7(0x1d1)](_0x2dbf7c['gSEiA']);const _0xa35e8f=await _0x15cea8[_0x2f49a7(0x1da)](_0x24a830,_0x2368f0[_0x2f49a7(0x22a)](0x2));logger[_0x2f49a7(0x1d1)]('Found:\x20'+JSON[_0x2f49a7(0x1c0)](_0xa35e8f)+'\x20test\x20files\x20to\x20run.');const _0x551070=await _0x15cea8['reorderTestFiles'](_0xa35e8f);logger[_0x2f49a7(0x1d1)]('Reordered\x20Test\x20Files:\x20'+JSON[_0x2f49a7(0x1c0)](_0x551070)),_0x551070&&_0x2dbf7c[_0x2f49a7(0x1df)](_0x551070['length'],0x0)&&(process['env'][_0x2f49a7(0x1b8)]=_0x551070['join'](','),_0x2dbf7c[_0x2f49a7(0x1ed)](_0x551070[_0x2f49a7(0x187)],_0xa35e8f[_0x2f49a7(0x187)])&&(_0x649b5b=_0x551070[_0x2f49a7(0x25d)](_0x2eb8b5=>path[_0x2f49a7(0x242)](process[_0x2f49a7(0x1b9)](),_0x2eb8b5)['split'](path[_0x2f49a7(0x228)])[_0x2f49a7(0x1f8)]('/'))));}PerformanceTester[_0x2f49a7(0x219)](PerformanceEvents[_0x2f49a7(0x21c)]),process[_0x2f49a7(0x241)][_0x2f49a7(0x20f)]=process[_0x2f49a7(0x241)][_0x2f49a7(0x20f)]||_0x2dbf7c[_0x2f49a7(0x227)];const _0x34494a=_0x2dbf7c[_0x2f49a7(0x1f2)](spawn,helper['isYarnPnP']()?_0x2dbf7c[_0x2f49a7(0x199)]:_0x2dbf7c[_0x2f49a7(0x1ba)],[_0x2dbf7c[_0x2f49a7(0x227)],_0x2dbf7c['VqGmo'],_0x2dbf7c[_0x2f49a7(0x1cb)],_0x2dbf7c[_0x2f49a7(0x209)](process[_0x2f49a7(0x18b)],_0x2dbf7c['lZkBU'])?'\x22'+_0x555965+'\x22':_0x555965,..._0x2368f0[_0x2f49a7(0x22a)](0x2),..._0x649b5b],{'shell':_0x2dbf7c['tqUzq'](process[_0x2f49a7(0x18b)],_0x2dbf7c[_0x2f49a7(0x188)]),'stdio':_0x2dbf7c['Svbwg'],'cwd':process[_0x2f49a7(0x1b9)](),'env':Object[_0x2f49a7(0x18a)]({},process[_0x2f49a7(0x241)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2f49a7(0x21f)](_0xf6e642),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x11e621[_0x2f49a7(0x1bb)][_0x2f49a7(0x1d3)][_0x2f49a7(0x215)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x11e621['config'][_0x2f49a7(0x1d3)][_0x2f49a7(0x1fb)],'BROWSERSTACK_LOG_LEVEL':_0x11e621[_0x2f49a7(0x1bb)]['logLevel']})}),_0x23d749=()=>{const _0x1bac9a=_0x2f49a7;try{const _0x137587=path[_0x1bac9a(0x1f8)](helper[_0x1bac9a(0x205)](),_0x2dbf7c[_0x1bac9a(0x211)],_0x2dbf7c['aJSgm']);if(fs[_0x1bac9a(0x22c)](_0x137587)){let _0x154f4f=fs[_0x1bac9a(0x19e)](_0x137587);_0x154f4f=JSON[_0x1bac9a(0x254)](_0x154f4f),_0x11e621[_0x1bac9a(0x24c)]=_0x154f4f,fs[_0x1bac9a(0x1e4)](_0x137587);}}catch(_0x11aec2){logger['debug'](_0x2dbf7c[_0x1bac9a(0x1c1)](_0x2dbf7c[_0x1bac9a(0x221)],_0x11aec2));}};_0x34494a['on'](_0x2dbf7c[_0x2f49a7(0x1e7)],async _0x31cbf2=>{const _0x49c02f=_0x2f49a7;try{PerformanceTester[_0x49c02f(0x21a)](PerformanceEvents['SDK_CLEANUP']),_0x1ee9aa[_0x49c02f(0x216)](_0x23d749),await TestHubHandler[_0x49c02f(0x1cf)](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x43701c=BrowserstackCLI['isCLIEnabled']();await BrowserstackCLI[_0x49c02f(0x220)]()[_0x49c02f(0x1cf)](),TestDetails[_0x49c02f(0x222)](),_0x1ee9aa['DOngj'](printBuildLink),await utilities['finalExecution'](_0x11e621,_0x43701c),process[_0x49c02f(0x25b)]=_0x31cbf2,logger[_0x49c02f(0x1d1)](_0x49c02f(0x232)+_0x31cbf2),logger['info'](_0x49c02f(0x223)+_0x555965),fs['unlinkSync'](_0x555965);fs[_0x49c02f(0x22c)](_0x2f14cf)&&(logger[_0x49c02f(0x1d1)](_0x49c02f(0x223)+_0x2f14cf),fs[_0x49c02f(0x1e4)](_0x2f14cf));const _0x3ae11c=fs['readdirSync'](path[_0x49c02f(0x1f8)](helper[_0x49c02f(0x205)](),_0x1ee9aa[_0x49c02f(0x258)]))[_0x49c02f(0x1f0)](_0x4f774a=>_0x4f774a[_0x49c02f(0x1dc)](_0x49c02f(0x23e)));_0x3ae11c['forEach'](_0x358c76=>{const _0x4cf3c7=_0x49c02f;fs[_0x4cf3c7(0x1e4)](path[_0x4cf3c7(0x1f8)](helper[_0x4cf3c7(0x205)](),_0x1ee9aa[_0x4cf3c7(0x258)],_0x358c76));});}catch(_0x67be2){logger[_0x49c02f(0x1d1)](_0x1ee9aa[_0x49c02f(0x250)](_0x1ee9aa[_0x49c02f(0x210)],_0x67be2));}});})();}module['exports']=run;
2
+ 'use strict';const a47_0x1ba26f=a47_0xa1b9;function a47_0x2ae8(){const _0x1ecb0d=['JRxqr','path','fjXtK','No\x20Proxy\x20:\x20','48OmKnum','reorderTestFiles','homedir','NitRQ','isFalse','false','OEDcp','pw_result.json','ZtUCh','isTrue','rBUXz','concat','getConfig','href','Reordered\x20Test\x20Files:\x20','lCOez','2090AykqgZ','forEach','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','yarn','sep','xqYAR','testContextOptions','--disable-browserstack-automation','cliConfig','MODULE','isRunning','length','18810jbjMIL','YThMi','O11yHashedID','BROWSERSTACK_RERUN','../../helpers/utilities','xsypL','skipSessionStatus','getInstance','isTestOrchestrationEnabled','USER_CONFIG_DETAILS_PATH','Proxy\x20url\x20:\x20','stringify','skipSessionName','playwright-browserstack-sdk.config.js','testObservability','exitCode','../../helpers/test-observability/utils','2402487omvHKb','isYarnPnP','Error\x20in\x20getting\x20funnel\x20data\x20results','323185kzBSxy','startsWith','debug','Deleting\x20','\x20/\x20(esm)\x20','idTJf','PLAYWRIGHT','isValidEnvValue',';\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','118070rbyKet','kpajd','splice','Qqyyu','JBYCG','isTypescriptProject','BROWSERSTACK_TEST_ACCESSIBILITY_YML','MQbAW','logLevel','jReEV','config','filter','R_OK','ImzaN','BROWSERSTACK_PW_CONFIG_DIR','join','../../helpers/logger','true','QbTpF','987504mWjbuh','Playwright\x20process\x20exited\x20with\x20code\x20','../../helpers/testhub/testhubHandler','BROWSERSTACK_TESTHUB_UUID_SEED','filterBrowserstackArgs','SNvUu','get','finalExecution','playwright','util','./reporter/test-details','writeFileSync','isUndefined','isCLIEnabled','automation','ofUXZ','mczqv','seeded\x20BROWSERSTACK_TESTHUB_UUID_SEED\x20with\x20testhub\x20build\x20id\x20','setFrameworkDetail','PACKAGE_TYPE','exports','parse','map','qoEyZ','6252176LYwVNK','validateRerunTestList','peCDH','aXWpd','bootstrap','eWGFQ','QFZMW','BROWSERSTACK_FRAMEWORK','wJeHj','../../helpers/test-orchestration/testOrchestrationHandler','4511325UEtfJp','SDK_PRE_INITIALIZE','--config','pibsV','gEKfm','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(','../utils/clientTroubleshootingService','unlinkSync','getPackageType','hBETs','setBrowserstackConfig','accessibility','gGbJR','requireConfigLoaderYarnPnP','resolve','testhub\x20build\x20UUID\x20(BrowserstackCLI.O11yHashedID)\x20unavailable;\x20skipping\x20deterministic\x20test-run\x20uuid\x20seeding\x20and\x20falling\x20back\x20to\x20file-coordinated\x20uuids.\x20Got:\x20','inherit','--grep','accessSync','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20','launchBuild','Error\x20in\x20closing\x20playwright','INTERNALLY_USED_ENV_VARS','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','pVEaV','platform','SyftD','zAnll','BROWSERSTACK_RERUN_TESTS','setupBrowserstackLocal','.browserstack','IrmBV','bNsow','dirname','existsSync','omoWA','BrowserStack\x20config\x20file\x20not\x20found.','--disable-test-observability','assign','end','close','constants','start','LxBxo','push','vHvCr','siLmQ','W_OK','slice','../../helpers/test-observability/constants','test','env','\x27browserstack-node-sdk\x27','getProxyUrl','WEhiz','\x20test\x20files\x20to\x20run.','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Updated\x20config\x20file\x20name\x20to\x20-\x20','xmDIy','./reporter/pwUtils','browserstackAutomation','has','trim','errorMessage','ELkDB','win32','trace_','clearTempPWConfig','cwd','npx',')._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','indexOf','AUmBa','playwright-browserstack-sdk.config.cjs','configPath','MlzLV','SDK_SETUP','accessibilityOptions','hoQjs','./accessibility-helper','requirePWModule','browserstackSetupConfig.json','../../helpers/BrowserStackSetup','relative','reportDotBrowserStackFolderNotAccessibleIssue','EVENTS','BROWSERSTACK_SETUP_CONFIG_PATH','info','split','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/testhub/utils','getConfigPath','SDK_CLEANUP','error','winstonLogger','Generated\x20Playwright\x20config\x20will\x20load\x20the\x20SDK\x20from\x20(cjs)\x20','cHgVN','aXKTn','serializeToYamlString','../../helpers/performance/performance-tester','nestedKeyValue','ebSSJ','../../helpers/accessibility-automation/helper','gJSqT','BROWSERSTACK_AUTOMATION','WtNOf','--config=','readdirSync','Found:\x20','getNoProxy'];a47_0x2ae8=function(){return _0x1ecb0d;};return a47_0x2ae8();}(function(_0x4dd1dc,_0x431f7b){const _0x157b60=a47_0xa1b9,_0x4665a5=_0x4dd1dc();while(!![]){try{const _0x538035=-parseInt(_0x157b60(0x18d))/0x1+parseInt(_0x157b60(0x196))/0x2*(-parseInt(_0x157b60(0x15d))/0x3)+parseInt(_0x157b60(0x1a9))/0x4+parseInt(_0x157b60(0x16d))/0x5*(parseInt(_0x157b60(0x179))/0x6)+-parseInt(_0x157b60(0x1cb))/0x7+parseInt(_0x157b60(0x1c1))/0x8+parseInt(_0x157b60(0x18a))/0x9;if(_0x538035===_0x431f7b)break;else _0x4665a5['push'](_0x4665a5['shift']());}catch(_0x4f07cb){_0x4665a5['push'](_0x4665a5['shift']());}}}(a47_0x2ae8,0xa952f));const fs=require('fs'),path=require(a47_0x1ba26f(0x15a)),{pathToFileURL}=require('url'),{spawn}=require('child_process'),{format}=require(a47_0x1ba26f(0x1b2)),logger=require(a47_0x1ba26f(0x1a6))[a47_0x1ba26f(0x149)],{default:BrowserStackSetup}=require(a47_0x1ba26f(0x13d)),helper=require('../../helpers/helper'),utilities=require(a47_0x1ba26f(0x17d)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a47_0x1ba26f(0x1fc)),{getConfigLoaderPath}=require(a47_0x1ba26f(0x206)),{mergeBrowserstackReporterIntoCliReporterFlag}=require('./reporterArgs'),{shouldProcessEventForTesthub}=require(a47_0x1ba26f(0x145)),{checkAccessibilityPlatformConfig}=require(a47_0x1ba26f(0x151)),{setAccessibilityCapabilities}=require(a47_0x1ba26f(0x21a)),{printBuildLink}=require(a47_0x1ba26f(0x189)),TestDetails=require(a47_0x1ba26f(0x1b3)),TestHubHandler=require(a47_0x1ba26f(0x1ab)),PerformanceTester=require(a47_0x1ba26f(0x14e)),TestOrchestrationHandler=require(a47_0x1ba26f(0x1ca)),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require('../../helpers/performance/constants')[a47_0x1ba26f(0x140)],CLIUtils=require('../v2/cliUtils'),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require(a47_0x1ba26f(0x1d1)),getUserPlaywrightConfig=async(_0x233127,_0x37ba27)=>{const _0x517e14=a47_0x1ba26f,_0x428cc7={'mczqv':function(_0x4a9901){return _0x4a9901();},'nlFYo':function(_0x2d4496){return _0x2d4496();},'qoEyZ':function(_0x2ad36a,_0x463e1e){return _0x2ad36a(_0x463e1e);},'JBYCG':'resolvedConfigFile','QDEaj':_0x517e14(0x155)},_0x585e64=!helper[_0x517e14(0x1b5)](_0x233127[_0x517e14(0x1a0)]),_0x2b2426=_0x585e64?path['resolve'](process['cwd'](),_0x233127[_0x517e14(0x1a0)]):process['cwd'](),{resolveConfigFile:_0x141294,resolveConfigLocation:_0x1a0089}=helper[_0x517e14(0x18b)]()?helper[_0x517e14(0x1d8)](..._0x428cc7[_0x517e14(0x1b9)](getConfigLoaderPath)):helper[_0x517e14(0x21b)]['apply'](null,_0x428cc7['nlFYo'](getConfigLoaderPath)),_0x692a94=_0x141294?_0x428cc7[_0x517e14(0x1c0)](_0x141294,_0x2b2426):helper[_0x517e14(0x14f)](_0x428cc7[_0x517e14(0x1c0)](_0x1a0089,_0x2b2426),[_0x428cc7[_0x517e14(0x19a)]]),_0x162eb1={};if(_0x585e64){const _0x22060a=_0x37ba27['findIndex'](_0x360c6b=>_0x360c6b===_0x517e14(0x1cd)||_0x360c6b==='-c'||_0x360c6b[_0x517e14(0x18e)](_0x517e14(0x155)));_0x37ba27[_0x517e14(0x198)](_0x22060a,_0x37ba27[_0x22060a][_0x517e14(0x18e)](_0x428cc7['QDEaj'])?0x1:0x2);}const _0xd14291={};return _0xd14291[_0x517e14(0x15a)]=_0x692a94,_0xd14291[_0x517e14(0x1a0)]=_0x162eb1,_0xd14291;},handleO11yRerun=_0x1e8c4b=>{const _0xc0b15d=a47_0x1ba26f,_0x1f2ff7={};_0x1f2ff7['pibsV']=_0xc0b15d(0x1dc);const _0x11aa21=_0x1f2ff7,_0x498adb=helper[_0xc0b15d(0x166)](process[_0xc0b15d(0x1fe)][_0xc0b15d(0x17c)]);if(_0x498adb){const _0x12b8ef=process[_0xc0b15d(0x1fe)][_0xc0b15d(0x1e7)],_0x3b3e29=[];if(helper[_0xc0b15d(0x1c2)](_0x12b8ef)&&!helper[_0xc0b15d(0x1b5)](_0x12b8ef)){_0x12b8ef[_0xc0b15d(0x143)](',')['map'](_0x12cb6d=>{const _0x47a6b7=_0xc0b15d;_0x3b3e29[_0x47a6b7(0x1f7)]('('+_0x12cb6d[_0x47a6b7(0x209)]()+')');});const _0x3ea93f='^'+_0x3b3e29[_0xc0b15d(0x1a5)]('|')+'$';_0x1e8c4b[_0xc0b15d(0x1f7)](_0x11aa21[_0xc0b15d(0x1ce)],_0x3ea93f);}}},spawnOriginalProcess=_0x5f1b70=>{const _0x51fc83=a47_0x1ba26f,_0x49b5fd={'lCOez':function(_0x5ca222,_0x49a5aa,_0x4cf9f0,_0x5b23d8){return _0x5ca222(_0x49a5aa,_0x4cf9f0,_0x5b23d8);},'cHgVN':_0x51fc83(0x170),'xqYAR':_0x51fc83(0x210),'IrmBV':_0x51fc83(0x1b1),'brSlc':function(_0x5ea383,_0x4baefa){return _0x5ea383===_0x4baefa;},'WEhiz':_0x51fc83(0x20c),'QcVrH':_0x51fc83(0x1db)};_0x49b5fd[_0x51fc83(0x16c)](spawn,helper['isYarnPnP']()?_0x49b5fd[_0x51fc83(0x14b)]:_0x49b5fd[_0x51fc83(0x172)],[_0x49b5fd[_0x51fc83(0x1ea)],..._0x5f1b70['slice'](0x1)],{'shell':_0x49b5fd['brSlc'](process[_0x51fc83(0x1e4)],_0x49b5fd[_0x51fc83(0x201)]),'stdio':_0x49b5fd['QcVrH'],'cwd':process[_0x51fc83(0x20f)]()});},isTestCommand=(_0x160cf5,_0x323f8e)=>{const _0x16b330=a47_0x1ba26f,_0x569e13={};_0x569e13[_0x16b330(0x1d4)]=function(_0x3edf0e,_0x4979ca){return _0x3edf0e>_0x4979ca;},_0x569e13[_0x16b330(0x1c9)]=function(_0x240a16,_0x5624b0){return _0x240a16===_0x5624b0;},_0x569e13[_0x16b330(0x197)]='test';const _0x11926b=_0x569e13;if(_0x11926b['hBETs'](_0x323f8e['length'],0x1)&&_0x11926b[_0x16b330(0x1c9)](_0x323f8e[0x1],_0x11926b[_0x16b330(0x197)]))return!![];return![];};async function run(_0x3ddec6,_0x5aa696,_0xafb2ce){const _0x13c2e2=a47_0x1ba26f,_0x440c74={'fMIQe':function(_0x332dfd,_0x4d5685){return _0x332dfd(_0x4d5685);},'WtNOf':_0x13c2e2(0x1e9),'gJSqT':function(_0x37b6af){return _0x37b6af();},'ImzaN':function(_0x31ca6e,_0x38e071){return _0x31ca6e+_0x38e071;},'owLeQ':_0x13c2e2(0x1e0),'Leeph':_0x13c2e2(0x164),'idTJf':_0x13c2e2(0x18c),'Qqyyu':_0x13c2e2(0x1ef),'NitRQ':function(_0x4ad330,_0x466cc1){return _0x4ad330<_0x466cc1;},'ebSSJ':function(_0x3c5699,_0x1c2c1b){return _0x3c5699===_0x1c2c1b;},'eWGFQ':_0x13c2e2(0x162),'jReEV':_0x13c2e2(0x1f0),'ZtUCh':function(_0x526d5f,_0x203c2c){return _0x526d5f>=_0x203c2c;},'JRxqr':function(_0x33eb1f,_0x5cd366){return _0x33eb1f===_0x5cd366;},'peCDH':_0x13c2e2(0x1b7),'QbTpF':function(_0x7890fd,_0x2780e0){return _0x7890fd!=_0x2780e0;},'SyftD':function(_0x1abc28,_0x16a04c,_0x2f9fb1){return _0x1abc28(_0x16a04c,_0x2f9fb1);},'aXWpd':function(_0x52ce50,_0x2242e4){return _0x52ce50(_0x2242e4);},'BodVO':_0x13c2e2(0x1a7),'ofUXZ':function(_0xc38176,_0x4ca4f0){return _0xc38176(_0x4ca4f0);},'sGKAr':_0x13c2e2(0x13c),'rBUXz':function(_0x283af8,_0x37da78){return _0x283af8===_0x37da78;},'QFZMW':_0x13c2e2(0x214),'kfRos':_0x13c2e2(0x186),'aXKTn':'../../index.js','gEKfm':function(_0x406991,_0x47939b){return _0x406991===_0x47939b;},'ZpWIv':_0x13c2e2(0x1ff),'ELkDB':function(_0x238147,_0x5b9b76){return _0x238147-_0x5b9b76;},'pVEaV':_0x13c2e2(0x204),'OEDcp':function(_0x77abad,_0x2de0ae){return _0x77abad>_0x2de0ae;},'xsypL':function(_0x1c1a23,_0x29a432){return _0x1c1a23+_0x29a432;},'WZvbm':'Test\x20orchestration\x20is\x20enabled,\x20initializing\x20orchestration\x20handler','vHvCr':_0x13c2e2(0x1b1),'siLmQ':function(_0x3fcd68,_0x2b30a4,_0x3f4731,_0x4d7a7a){return _0x3fcd68(_0x2b30a4,_0x3f4731,_0x4d7a7a);},'bNsow':_0x13c2e2(0x170),'caxpT':_0x13c2e2(0x210),'AUmBa':_0x13c2e2(0x1fd),'zAnll':_0x13c2e2(0x1cd),'hoQjs':_0x13c2e2(0x20c),'xmDIy':_0x13c2e2(0x1db),'fjXtK':_0x13c2e2(0x1f3),'SNvUu':function(_0x1bcbd7,_0x20d7e1){return _0x1bcbd7|_0x20d7e1;},'gGbJR':'Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','LxBxo':function(_0x566b83,_0x3eef35){return _0x566b83+_0x3eef35;},'pVVRh':'Error\x20in\x20deleting\x20playwright\x20results','MQbAW':function(_0xb3757e,_0x25acb9,_0x47dfec){return _0xb3757e(_0x25acb9,_0x47dfec);}};try{const _0xd18f34=path[_0x13c2e2(0x1a5)](helper[_0x13c2e2(0x15f)](),_0x440c74[_0x13c2e2(0x154)]);try{fs[_0x13c2e2(0x1dd)](_0xd18f34,_0x440c74[_0x13c2e2(0x1ae)](fs[_0x13c2e2(0x1f4)][_0x13c2e2(0x1a2)],fs['constants'][_0x13c2e2(0x1fa)]));}catch(_0x1177a7){ClientTroubleShootingService[_0x13c2e2(0x13f)]();}}catch(_0x2f734d){logger[_0x13c2e2(0x18f)](_0x440c74['xsypL'](_0x440c74[_0x13c2e2(0x1d7)],_0x2f734d));}try{const _0xd6abff=path['join'](helper[_0x13c2e2(0x15f)](),_0x440c74['WtNOf'],_0x440c74['Leeph']);fs[_0x13c2e2(0x1ed)](_0xd6abff)&&fs[_0x13c2e2(0x1d2)](_0xd6abff);}catch(_0x106506){logger['debug'](_0x440c74[_0x13c2e2(0x1f6)](_0x440c74['pVVRh'],_0x106506));}if(!_0x440c74[_0x13c2e2(0x19d)](isTestCommand,_0x3ddec6,_0x5aa696)){_0x440c74[_0x13c2e2(0x1b8)](spawnOriginalProcess,_0x5aa696);return;}await PerformanceTester['measureWrapper'](PerformanceEvents[_0x13c2e2(0x1cc)],async()=>{const _0x236c57=_0x13c2e2,_0x5e94b0={'omoWA':_0x440c74[_0x236c57(0x154)],'pUKlp':_0x440c74['Leeph'],'pNWTS':function(_0x5f8d4c,_0x1a2f55){const _0x2cf62f=_0x236c57;return _0x440c74[_0x2cf62f(0x1a3)](_0x5f8d4c,_0x1a2f55);},'MlzLV':_0x440c74[_0x236c57(0x192)]};if(!_0xafb2ce['config']){logger[_0x236c57(0x148)](_0x440c74[_0x236c57(0x199)]);return;}await _0xafb2ce['initialize'](_0x3ddec6),CLIUtils[_0x236c57(0x1bb)](FRAMEWORKS[_0x236c57(0x193)],FRAMEWORKS[_0x236c57(0x193)]),BrowserstackCLI[_0x236c57(0x180)]()[_0x236c57(0x1d5)](_0xafb2ce[_0x236c57(0x1a0)],_0xafb2ce[_0x236c57(0x215)],_0xafb2ce[_0x236c57(0x175)]),await BrowserstackCLI[_0x236c57(0x180)]()[_0x236c57(0x1c5)]();!BrowserstackCLI[_0x236c57(0x180)]()[_0x236c57(0x177)]()&&await _0xafb2ce[_0x236c57(0x1e8)]();for(var _0x2bbd38=0x0;_0x440c74[_0x236c57(0x160)](_0x2bbd38,constants[_0x236c57(0x1e1)][_0x236c57(0x178)]);_0x2bbd38++){var _0x3959cf=constants[_0x236c57(0x1e1)][_0x2bbd38];process[_0x236c57(0x1fe)][_0x3959cf]&&await ClientTroubleShootingService['reportConflictingEnvVarIssue'](_0x3959cf);}const _0x56d13f=BrowserstackCLI[_0x236c57(0x180)]()[_0x236c57(0x169)]();!helper[_0x236c57(0x161)](_0x56d13f[_0x236c57(0x207)])&&(process[_0x236c57(0x1fe)]['BROWSERSTACK_AUTOMATION']=!![]);_0x440c74[_0x236c57(0x150)](_0x56d13f[_0x236c57(0x207)],![])&&(process[_0x236c57(0x1fe)][_0x236c57(0x153)]=_0x440c74[_0x236c57(0x1c6)],_0x5aa696=_0x5aa696['filter'](_0x95f6fe=>_0x95f6fe!==_0x236c57(0x174)));const _0xa8b8a8=_0x5aa696[_0x236c57(0x212)](_0x440c74[_0x236c57(0x19f)]);(_0x440c74[_0x236c57(0x165)](_0xa8b8a8,0x0)||_0x440c74[_0x236c57(0x159)](_0x56d13f[_0x236c57(0x187)],![]))&&(process[_0x236c57(0x1fe)][_0x236c57(0x144)]=_0x440c74['eWGFQ'],_0x5aa696=_0x5aa696[_0x236c57(0x1a1)](_0x14782a=>_0x14782a!==_0x236c57(0x1f0)));!helper['isUndefined'](_0xafb2ce[_0x236c57(0x175)])&&_0xafb2ce[_0x236c57(0x175)][_0x236c57(0x208)](_0x440c74[_0x236c57(0x1c3)])&&(process[_0x236c57(0x1fe)]['BROWSERSTACK_AUTOMATION']=_0xafb2ce[_0x236c57(0x175)][_0x236c57(0x1af)](_0x440c74[_0x236c57(0x1c3)])||!![]);_0x440c74[_0x236c57(0x1a8)](_0xafb2ce[_0x236c57(0x1a0)][_0x236c57(0x187)],null)&&!helper[_0x236c57(0x166)](process['env'][_0x236c57(0x144)])&&(process[_0x236c57(0x1fe)][_0x236c57(0x144)]=process[_0x236c57(0x1fe)][_0x236c57(0x144)]||_0xafb2ce[_0x236c57(0x1a0)][_0x236c57(0x187)]);const _0x162b8e=!helper[_0x236c57(0x161)](process[_0x236c57(0x1fe)]['BROWSERSTACK_TEST_OBSERVABILITY']);if(BrowserstackCLI['getInstance']()[_0x236c57(0x177)]()&&_0x162b8e){const _0x1734db=BrowserstackCLI[_0x236c57(0x17b)];helper[_0x236c57(0x194)](_0x1734db)?(process[_0x236c57(0x1fe)][_0x236c57(0x1ac)]=_0x1734db,logger[_0x236c57(0x18f)](_0x236c57(0x1ba)+_0x1734db)):logger['warn'](_0x236c57(0x1da)+_0x1734db);}_0xafb2ce[_0x236c57(0x1a0)][_0x236c57(0x218)]&&(process[_0x236c57(0x1fe)][_0x236c57(0x203)]=JSON[_0x236c57(0x184)](_0xafb2ce['config'][_0x236c57(0x218)]));let _0x139d95=![];_0xafb2ce['config']['accessibility']&&(_0x139d95=!![],process[_0x236c57(0x1fe)][_0x236c57(0x19c)]=_0xafb2ce[_0x236c57(0x1a0)][_0x236c57(0x1d6)]);const _0x2e797b=_0x5aa696[_0x236c57(0x168)](),_0x365588=await _0x440c74[_0x236c57(0x1e5)](getUserPlaywrightConfig,_0x3ddec6,_0x5aa696);if(helper['isUndefined'](_0x365588)){_0x440c74[_0x236c57(0x1c4)](spawnOriginalProcess,_0x2e797b);return;}const _0x50d43a=_0x365588[_0x236c57(0x15a)]?path[_0x236c57(0x1ec)](_0x365588[_0x236c57(0x15a)]):process['cwd']();process[_0x236c57(0x1fe)][_0x236c57(0x1a4)]=_0x50d43a,await PerformanceTester['measureWrapper'](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x19c00f=_0x236c57;!BrowserstackCLI[_0x19c00f(0x180)]()[_0x19c00f(0x177)]()&&await TestHubHandler[_0x19c00f(0x1df)](FRAMEWORKS[_0x19c00f(0x193)],_0xafb2ce),_0x162b8e&&_0x440c74['fMIQe'](handleO11yRerun,_0x5aa696);})();if(!BrowserstackCLI['getInstance']()[_0x236c57(0x177)]()){let _0x2ddb5c=_0x440c74[_0x236c57(0x150)](process[_0x236c57(0x1fe)][_0x236c57(0x19c)],_0x440c74['BodVO']);_0x2ddb5c=_0x2ddb5c||_0x440c74[_0x236c57(0x1c4)](checkAccessibilityPlatformConfig,_0xafb2ce[_0x236c57(0x1a0)]),process[_0x236c57(0x1fe)][_0x236c57(0x19c)]=_0x2ddb5c,_0x2ddb5c&&_0x440c74[_0x236c57(0x1b8)](setAccessibilityCapabilities,_0xafb2ce[_0x236c57(0x1a0)]);}const _0x27edc4=path[_0x236c57(0x1a5)](_0x365588['path']?path['dirname'](_0x365588[_0x236c57(0x15a)]):process[_0x236c57(0x20f)](),_0x440c74['sGKAr']);fs[_0x236c57(0x1b4)](_0x27edc4,helper[_0x236c57(0x14d)](_0xafb2ce['config'])),process[_0x236c57(0x1fe)][_0x236c57(0x141)]=_0x27edc4,helper[_0x236c57(0x20e)]();let _0x1ea9a3='';_0x440c74[_0x236c57(0x167)](helper['getPackageType'](_0x50d43a),constants['PACKAGE_TYPE'][_0x236c57(0x176)])?_0x1ea9a3=_0x440c74[_0x236c57(0x1c7)]:_0x1ea9a3=_0x440c74['kfRos'];let _0x43f00f='';const _0x203854=path[_0x236c57(0x1d9)](__dirname,_0x440c74[_0x236c57(0x14c)]),_0x16b15f=fs[_0x236c57(0x1ed)](_0x203854),_0x53b1ac=_0x440c74[_0x236c57(0x1cf)](helper[_0x236c57(0x1d3)](_0x50d43a),constants[_0x236c57(0x1bc)][_0x236c57(0x176)]),_0x439b21=_0x16b15f?JSON[_0x236c57(0x184)](_0x203854):_0x440c74['ZpWIv'],_0x410a42=_0x16b15f?_0x53b1ac?JSON['stringify'](_0x440c74['fMIQe'](pathToFileURL,_0x203854)[_0x236c57(0x16a)]):JSON['stringify'](_0x203854):_0x440c74['ZpWIv'];logger['debug'](_0x236c57(0x14a)+_0x439b21+_0x236c57(0x191)+_0x410a42);if(helper[_0x236c57(0x19b)](_0x365588[_0x236c57(0x15a)])){_0x43f00f=_0x236c57(0x1de)+_0x410a42+_0x236c57(0x195);const _0x564702=_0x1ea9a3[_0x236c57(0x143)]('.');_0x564702[_0x440c74[_0x236c57(0x20b)](_0x564702[_0x236c57(0x178)],0x1)]='ts',_0x1ea9a3=_0x564702[_0x236c57(0x1a5)]('.'),logger[_0x236c57(0x18f)](_0x440c74[_0x236c57(0x1a3)](_0x440c74[_0x236c57(0x1e3)],_0x1ea9a3));}else _0x43f00f=_0x236c57(0x1d0)+_0x439b21+_0x236c57(0x211);const _0x56d0a8=path[_0x236c57(0x1a5)](_0x365588[_0x236c57(0x15a)]?path[_0x236c57(0x1ec)](_0x365588['path']):process[_0x236c57(0x20f)](),_0x1ea9a3);let _0x3a84d0=_0x365588[_0x236c57(0x15a)]?_0x365588[_0x236c57(0x15a)]:'';_0x3a84d0=_0x440c74[_0x236c57(0x163)](_0x3a84d0['length'],0x0)?path[_0x236c57(0x1d9)](_0x3a84d0):'',process['env'][_0x236c57(0x182)]=_0x3a84d0;const _0x9c4d61=helper[_0x236c57(0x200)](_0xafb2ce['config']),_0x5a2da8=helper[_0x236c57(0x158)](_0xafb2ce[_0x236c57(0x1a0)]);logger['debug'](_0x236c57(0x183)+_0x9c4d61),logger['debug'](_0x236c57(0x15c)+_0x5a2da8);_0x9c4d61&&(_0x43f00f=_0x440c74[_0x236c57(0x17e)](_0x236c57(0x1e2)+_0x9c4d61+_0x236c57(0x16f)+_0x5a2da8+'\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();',_0x43f00f));helper[_0x236c57(0x1ad)]({},_0x5aa696),_0x440c74[_0x236c57(0x1e5)](mergeBrowserstackReporterIntoCliReporterFlag,_0x5aa696,{'enabled':_0x440c74[_0x236c57(0x152)](shouldProcessEventForTesthub)}),fs['writeFileSync'](_0x56d0a8,_0x43f00f);let _0x16855b=[];const _0x5779d3=new TestOrchestrationHandler(_0xafb2ce[_0x236c57(0x1a0)]);if(_0x5779d3[_0x236c57(0x181)]()){logger[_0x236c57(0x18f)](_0x440c74['WZvbm']);const _0x52c12a=await _0x5779d3['findPlaywrightTestFiles'](_0x3a84d0,_0x5aa696[_0x236c57(0x1fb)](0x2));logger['debug'](_0x236c57(0x157)+JSON[_0x236c57(0x184)](_0x52c12a)+_0x236c57(0x202));const _0x194c07=await _0x5779d3[_0x236c57(0x15e)](_0x52c12a);logger[_0x236c57(0x18f)](_0x236c57(0x16b)+JSON[_0x236c57(0x184)](_0x194c07)),_0x194c07&&_0x440c74['OEDcp'](_0x194c07['length'],0x0)&&(process['env']['BROWSERSTACK_PW_TEST_ORDER']=_0x194c07[_0x236c57(0x1a5)](','),_0x440c74[_0x236c57(0x160)](_0x194c07[_0x236c57(0x178)],_0x52c12a[_0x236c57(0x178)])&&(_0x16855b=_0x194c07[_0x236c57(0x1bf)](_0x5a8469=>path[_0x236c57(0x13e)](process[_0x236c57(0x20f)](),_0x5a8469)[_0x236c57(0x143)](path[_0x236c57(0x171)])[_0x236c57(0x1a5)]('/'))));}PerformanceTester[_0x236c57(0x1f2)](PerformanceEvents[_0x236c57(0x217)]),process[_0x236c57(0x1fe)][_0x236c57(0x1c8)]=process[_0x236c57(0x1fe)][_0x236c57(0x1c8)]||_0x440c74[_0x236c57(0x1f8)];const _0x3f05d1=_0x440c74[_0x236c57(0x1f9)](spawn,helper['isYarnPnP']()?_0x440c74[_0x236c57(0x1eb)]:_0x440c74['caxpT'],[_0x440c74[_0x236c57(0x1f8)],_0x440c74[_0x236c57(0x213)],_0x440c74[_0x236c57(0x1e6)],_0x440c74[_0x236c57(0x1cf)](process[_0x236c57(0x1e4)],_0x440c74[_0x236c57(0x219)])?'\x22'+_0x56d0a8+'\x22':_0x56d0a8,..._0x5aa696[_0x236c57(0x1fb)](0x2),..._0x16855b],{'shell':_0x440c74[_0x236c57(0x150)](process[_0x236c57(0x1e4)],_0x440c74[_0x236c57(0x219)]),'stdio':_0x440c74[_0x236c57(0x205)],'cwd':process[_0x236c57(0x20f)](),'env':Object[_0x236c57(0x1f1)]({},process[_0x236c57(0x1fe)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x236c57(0x146)](_0x3ddec6),'BROWSERSTACK_SKIP_SESSION_STATUS':_0xafb2ce[_0x236c57(0x1a0)][_0x236c57(0x173)][_0x236c57(0x17f)],'BROWSERSTACK_SKIP_SESSION_NAME':_0xafb2ce[_0x236c57(0x1a0)]['testContextOptions'][_0x236c57(0x185)],'BROWSERSTACK_LOG_LEVEL':_0xafb2ce[_0x236c57(0x1a0)][_0x236c57(0x19e)]})}),_0x34b0bd=()=>{const _0x9be23e=_0x236c57;try{const _0x118b68=path[_0x9be23e(0x1a5)](helper[_0x9be23e(0x15f)](),_0x5e94b0[_0x9be23e(0x1ee)],_0x5e94b0['pUKlp']);if(fs['existsSync'](_0x118b68)){let _0x1d1307=fs['readFileSync'](_0x118b68);_0x1d1307=JSON[_0x9be23e(0x1be)](_0x1d1307),_0xafb2ce[_0x9be23e(0x20a)]=_0x1d1307,fs[_0x9be23e(0x1d2)](_0x118b68);}}catch(_0x4c8bc8){logger[_0x9be23e(0x18f)](_0x5e94b0['pNWTS'](_0x5e94b0[_0x9be23e(0x216)],_0x4c8bc8));}};_0x3f05d1['on'](_0x440c74[_0x236c57(0x15b)],async _0x4e5644=>{const _0x433be7=_0x236c57,_0x469e76={};_0x469e76[_0x433be7(0x17a)]=_0x440c74['WtNOf'];const _0x874da8=_0x469e76;try{PerformanceTester[_0x433be7(0x1f5)](PerformanceEvents[_0x433be7(0x147)]),_0x440c74[_0x433be7(0x152)](_0x34b0bd),await TestHubHandler['stop'](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x15386c=BrowserstackCLI[_0x433be7(0x1b6)]();await BrowserstackCLI[_0x433be7(0x180)]()['stop'](),TestDetails['shutdown'](),_0x440c74[_0x433be7(0x152)](printBuildLink),await utilities[_0x433be7(0x1b0)](_0xafb2ce,_0x15386c),process[_0x433be7(0x188)]=_0x4e5644,logger[_0x433be7(0x18f)](_0x433be7(0x1aa)+_0x4e5644),logger[_0x433be7(0x142)](_0x433be7(0x190)+_0x56d0a8),fs['unlinkSync'](_0x56d0a8);fs[_0x433be7(0x1ed)](_0x27edc4)&&(logger['debug'](_0x433be7(0x190)+_0x27edc4),fs[_0x433be7(0x1d2)](_0x27edc4));const _0xdc3cf8=fs[_0x433be7(0x156)](path[_0x433be7(0x1a5)](helper[_0x433be7(0x15f)](),_0x440c74[_0x433be7(0x154)]))[_0x433be7(0x1a1)](_0x53d926=>_0x53d926[_0x433be7(0x18e)](_0x433be7(0x20d)));_0xdc3cf8[_0x433be7(0x16e)](_0x4324f0=>{const _0x8cdb9=_0x433be7;fs[_0x8cdb9(0x1d2)](path[_0x8cdb9(0x1a5)](helper['homedir'](),_0x874da8[_0x8cdb9(0x17a)],_0x4324f0));});}catch(_0x51e8ba){logger[_0x433be7(0x18f)](_0x440c74['ImzaN'](_0x440c74['owLeQ'],_0x51e8ba));}});})();}function a47_0xa1b9(_0x5736fc,_0x3427c8){const _0x2ae838=a47_0x2ae8();return a47_0xa1b9=function(_0xa1b92c,_0x32515d){_0xa1b92c=_0xa1b92c-0x13c;let _0x2b0ca3=_0x2ae838[_0xa1b92c];return _0x2b0ca3;},a47_0xa1b9(_0x5736fc,_0x3427c8);}module[a47_0x1ba26f(0x1bd)]=run;
@@ -1 +1 @@
1
- const a48_0xc1da7f=a48_0x39f8;(function(_0x5cbf45,_0x22c934){const _0x3606dc=a48_0x39f8,_0x363cac=_0x5cbf45();while(!![]){try{const _0x4d9a7c=-parseInt(_0x3606dc(0xc5))/0x1*(parseInt(_0x3606dc(0xb7))/0x2)+parseInt(_0x3606dc(0x98))/0x3*(parseInt(_0x3606dc(0xc3))/0x4)+-parseInt(_0x3606dc(0xbc))/0x5*(-parseInt(_0x3606dc(0xb0))/0x6)+-parseInt(_0x3606dc(0xc1))/0x7*(-parseInt(_0x3606dc(0xc9))/0x8)+parseInt(_0x3606dc(0xad))/0x9*(parseInt(_0x3606dc(0xb1))/0xa)+-parseInt(_0x3606dc(0xae))/0xb+-parseInt(_0x3606dc(0xb5))/0xc;if(_0x4d9a7c===_0x22c934)break;else _0x363cac['push'](_0x363cac['shift']());}catch(_0x3715ec){_0x363cac['push'](_0x363cac['shift']());}}}(a48_0x3743,0x4aa3f));function a48_0x39f8(_0x33ccb6,_0x269341){const _0x3743c4=a48_0x3743();return a48_0x39f8=function(_0x39f831,_0x3523ab){_0x39f831=_0x39f831-0x92;let _0x576295=_0x3743c4[_0x39f831];return _0x576295;},a48_0x39f8(_0x33ccb6,_0x269341);}const util=require(a48_0xc1da7f(0xa3)),child_process=require(a48_0xc1da7f(0x94)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a48_0xc1da7f(0xb6)),helper=require(a48_0xc1da7f(0xc4)),{getForkProcessPath}=require(a48_0xc1da7f(0xa7)),{mockIsWorkerRedundant}=require(a48_0xc1da7f(0xa8)),logger=require(a48_0xc1da7f(0xa6))['winstonLogger'];try{require(a48_0xc1da7f(0xc0))[a48_0xc1da7f(0xa0)](a48_0xc1da7f(0xc7));}catch(a48_0x5b247e){logger[a48_0xc1da7f(0xa9)](a48_0xc1da7f(0xa1)+(a48_0x5b247e&&a48_0x5b247e[a48_0xc1da7f(0x92)]));}function a48_0x3743(){const _0x466e4b=['isHandlePWErrorSet','../../helpers/logger','./reporter/pwUtils','./patches','debug','fxOXI','resolve','env','5449491FmXCJV','3325773JifXBs','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','1446XgDUOX','10JUDQBh','SIYDE','apply','./mock-process.js','6207096jxVYRY','../../helpers/test-observability/utils','56368KCledm','fork','snWVs','exports','\x20is\x20not\x20found','4385SMwaWr','MnCmw','toString','Call\x20to\x20child\x20fork\x20with\x20args\x20','../../helpers/driverInitErrorReporter','7238WtGAJc','function','338504KbLkzm','../../helpers/helper','2AVDmMO','Not\x20able\x20to\x20import\x20globalSetup','playwright','includes','2168sPGcOo','message','ZKIFo','child_process','format','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','Path\x20','3VckTtU','config','uAxsa','compareVersions','Auuii','Not\x20able\x20to\x20resolve\x20loadGlobalHook\x20for\x20current\x20Playwright\x20version','TyrNu','InLWJ','installAll','driver-init\x20capture\x20install\x20failed:\x20','CHOZh','util','resolveLoadGlobalHook'];a48_0x3743=function(){return _0x466e4b;};return a48_0x3743();}module[a48_0xc1da7f(0xba)]=async function(_0x110179){const _0x34f1e3=a48_0xc1da7f,_0x2396b3={'CHOZh':function(_0x3af67b,_0x3a6cab){return _0x3af67b(_0x3a6cab);},'TyrNu':function(_0x451587){return _0x451587();},'uAxsa':_0x34f1e3(0xb4),'Auuii':function(_0x2d6960){return _0x2d6960();},'ZKIFo':'Running\x20existing\x20global\x20setup','SIYDE':function(_0x5e73b8,_0x1d2bc2){return _0x5e73b8!==_0x1d2bc2;},'MnCmw':_0x34f1e3(0xc2),'kTdUB':_0x34f1e3(0x9d),'QWlgU':function(_0x4ab22c,_0x5c0638){return _0x4ab22c(_0x5c0638);},'snWVs':function(_0x16fd0c,_0x2f7b5f){return _0x16fd0c>=_0x2f7b5f;},'fxOXI':'1.33.0','zWjsy':function(_0x5932a3,_0x5db7d1,_0x5dca44){return _0x5932a3(_0x5db7d1,_0x5dca44);},'UtjWh':function(_0x30005a,_0x5ec315){return _0x30005a!==_0x5ec315;},'InLWJ':_0x34f1e3(0xc6)},_0x272f13=child_process[_0x34f1e3(0xb8)];if(helper[_0x34f1e3(0xa5)]())try{_0x2396b3[_0x34f1e3(0x9e)](mockIsWorkerRedundant);}catch(_0x558e7c){logger[_0x34f1e3(0xa9)](_0x34f1e3(0x96)+util[_0x34f1e3(0x95)](_0x558e7c));}child_process['fork']=function(){const _0x37bbbc=_0x34f1e3;return _0x2396b3[_0x37bbbc(0xa2)](debug,_0x37bbbc(0xbf)+arguments[0x0]),arguments[0x0][_0x37bbbc(0xc8)](_0x2396b3[_0x37bbbc(0x9e)](getForkProcessPath))?arguments[0x0]=require[_0x37bbbc(0xab)](_0x2396b3[_0x37bbbc(0x9a)]):logger['error'](_0x37bbbc(0x97)+_0x2396b3[_0x37bbbc(0x9c)](getForkProcessPath)+_0x37bbbc(0xbb)),_0x272f13[_0x37bbbc(0xb3)](null,arguments);};if(process['env'][_0x34f1e3(0xaf)]){_0x2396b3[_0x34f1e3(0xa2)](debug,_0x2396b3[_0x34f1e3(0x93)]);try{const _0x222ca1=helper[_0x34f1e3(0xa4)]();if(_0x2396b3[_0x34f1e3(0xb2)](typeof _0x222ca1,_0x2396b3['MnCmw']))throw new Error(_0x2396b3['kTdUB']);const _0x2f0172=_0x2396b3['QWlgU'](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x44dde2=_0x110179;if(_0x2396b3[_0x34f1e3(0xb9)](helper[_0x34f1e3(0x9b)](_0x2f0172,_0x2396b3[_0x34f1e3(0xaa)]),0x0)){const _0x38ff9d={};_0x38ff9d[_0x34f1e3(0x99)]=_0x110179,_0x44dde2=_0x38ff9d;}const _0x44046d=await _0x2396b3['zWjsy'](_0x222ca1,_0x44dde2,process[_0x34f1e3(0xac)][_0x34f1e3(0xaf)]);if(_0x2396b3['UtjWh'](typeof _0x44046d,_0x2396b3[_0x34f1e3(0xbd)]))throw new Error(_0x2396b3[_0x34f1e3(0x9f)]);return _0x44046d[_0x34f1e3(0xb3)](null,arguments);}catch(_0x1b81b9){_0x2396b3[_0x34f1e3(0xa2)](debug,'Error\x20in\x20calling\x20existing\x20global\x20setup:\x20'+_0x1b81b9[_0x34f1e3(0xbe)]());}}};
1
+ const a48_0x25630d=a48_0x31eb;(function(_0x54df61,_0x1a158b){const _0x4c214d=a48_0x31eb,_0x1ef909=_0x54df61();while(!![]){try{const _0x5e90e8=parseInt(_0x4c214d(0xda))/0x1+-parseInt(_0x4c214d(0xc4))/0x2*(-parseInt(_0x4c214d(0xcd))/0x3)+-parseInt(_0x4c214d(0xd7))/0x4+parseInt(_0x4c214d(0xc8))/0x5+parseInt(_0x4c214d(0xc6))/0x6+parseInt(_0x4c214d(0xca))/0x7+parseInt(_0x4c214d(0xcc))/0x8*(-parseInt(_0x4c214d(0xb6))/0x9);if(_0x5e90e8===_0x1a158b)break;else _0x1ef909['push'](_0x1ef909['shift']());}catch(_0x5c4be2){_0x1ef909['push'](_0x1ef909['shift']());}}}(a48_0x65ba,0x93008));function a48_0x31eb(_0x29b7c1,_0x298144){const _0x65ba32=a48_0x65ba();return a48_0x31eb=function(_0x31ebfc,_0x2c72c9){_0x31ebfc=_0x31ebfc-0xb0;let _0x38b21d=_0x65ba32[_0x31ebfc];return _0x38b21d;},a48_0x31eb(_0x29b7c1,_0x298144);}const util=require(a48_0x25630d(0xce)),child_process=require('child_process'),{FRAMEWORKS}=require(a48_0x25630d(0xd4)),{getFrameworkVersion,debug}=require(a48_0x25630d(0xdd)),helper=require(a48_0x25630d(0xe3)),{getForkProcessPath}=require(a48_0x25630d(0xd2)),{mockIsWorkerRedundant}=require(a48_0x25630d(0xcf)),logger=require(a48_0x25630d(0xbf))[a48_0x25630d(0xdb)];try{require(a48_0x25630d(0xb8))[a48_0x25630d(0xbd)](a48_0x25630d(0xd6));}catch(a48_0x249cf9){logger[a48_0x25630d(0xba)](a48_0x25630d(0xbe)+(a48_0x249cf9&&a48_0x249cf9[a48_0x25630d(0xc1)]));}function a48_0x65ba(){const _0x3a8c4d=['PLAYWRIGHT','4642205hbRnMe','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','6689431JmMHMP','config','640KImGLt','39SiBdMb','util','./patches','Not\x20able\x20to\x20import\x20globalSetup','LSWux','./reporter/pwUtils','TDAnX','../../helpers/test-observability/constants','resolveLoadGlobalHook','playwright','4531228mNWhtY','YcXOk','toString','490467uDGpKO','winstonLogger','Path\x20','../../helpers/test-observability/utils','kclih','GDpWo','zOrqI','qBHNp','CysMn','../../helpers/helper','Not\x20able\x20to\x20resolve\x20loadGlobalHook\x20for\x20current\x20Playwright\x20version','WjONi','ZnKkb','error','ORdfS','apply','compareVersions','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','env','273213vsQrzG','includes','../../helpers/driverInitErrorReporter','Running\x20existing\x20global\x20setup','debug','fork','\x20is\x20not\x20found','installAll','driver-init\x20capture\x20install\x20failed:\x20','../../helpers/logger','function','message','ZfMjo','CnXVr','134180oyeQAR','WMCql','5500656orlQhI'];a48_0x65ba=function(){return _0x3a8c4d;};return a48_0x65ba();}module['exports']=async function(_0x12aa10){const _0xc71d43=a48_0x25630d,_0x5c774e={'TDAnX':function(_0x10e85b,_0x30d90a){return _0x10e85b(_0x30d90a);},'CysMn':function(_0x5a3af6){return _0x5a3af6();},'WjONi':'./mock-process.js','ORdfS':function(_0x445dd1){return _0x445dd1();},'ZfMjo':function(_0x49240e){return _0x49240e();},'ZnKkb':function(_0xd9271d,_0x27a58e){return _0xd9271d(_0x27a58e);},'CnXVr':_0xc71d43(0xb9),'iILtC':function(_0x4dc992,_0x500723){return _0x4dc992!==_0x500723;},'qBHNp':_0xc71d43(0xc0),'WMCql':_0xc71d43(0xe4),'kclih':function(_0x30b07a,_0x1383b4){return _0x30b07a(_0x1383b4);},'GDpWo':function(_0x391f0e,_0x5a1764){return _0x391f0e>=_0x5a1764;},'YcXOk':'1.33.0','FUHEu':function(_0x55052e,_0xc9dfaf,_0x318735){return _0x55052e(_0xc9dfaf,_0x318735);},'LSWux':function(_0x17ede0,_0x5a3db0){return _0x17ede0!==_0x5a3db0;},'zOrqI':_0xc71d43(0xd0)},_0x135ea0=child_process[_0xc71d43(0xbb)];if(helper['isHandlePWErrorSet']())try{_0x5c774e[_0xc71d43(0xc2)](mockIsWorkerRedundant);}catch(_0x151296){logger[_0xc71d43(0xba)](_0xc71d43(0xb4)+util['format'](_0x151296));}child_process[_0xc71d43(0xbb)]=function(){const _0x1a4340=_0xc71d43;return _0x5c774e[_0x1a4340(0xd3)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0][_0x1a4340(0xb7)](_0x5c774e[_0x1a4340(0xe2)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x5c774e[_0x1a4340(0xe5)]):logger[_0x1a4340(0xb0)](_0x1a4340(0xdc)+_0x5c774e[_0x1a4340(0xb1)](getForkProcessPath)+_0x1a4340(0xbc)),_0x135ea0[_0x1a4340(0xb2)](null,arguments);};if(process[_0xc71d43(0xb5)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x5c774e[_0xc71d43(0xe6)](debug,_0x5c774e[_0xc71d43(0xc3)]);try{const _0x4647cb=helper[_0xc71d43(0xd5)]();if(_0x5c774e['iILtC'](typeof _0x4647cb,_0x5c774e[_0xc71d43(0xe1)]))throw new Error(_0x5c774e[_0xc71d43(0xc5)]);const _0x54f2e0=_0x5c774e[_0xc71d43(0xde)](getFrameworkVersion,FRAMEWORKS[_0xc71d43(0xc7)]);let _0x132c36=_0x12aa10;if(_0x5c774e[_0xc71d43(0xdf)](helper[_0xc71d43(0xb3)](_0x54f2e0,_0x5c774e[_0xc71d43(0xd8)]),0x0)){const _0x3f6666={};_0x3f6666[_0xc71d43(0xcb)]=_0x12aa10,_0x132c36=_0x3f6666;}const _0x5937f1=await _0x5c774e['FUHEu'](_0x4647cb,_0x132c36,process[_0xc71d43(0xb5)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x5c774e[_0xc71d43(0xd1)](typeof _0x5937f1,_0x5c774e[_0xc71d43(0xe1)]))throw new Error(_0x5c774e[_0xc71d43(0xe0)]);return _0x5937f1['apply'](null,arguments);}catch(_0xeb45c3){_0x5c774e[_0xc71d43(0xde)](debug,_0xc71d43(0xc9)+_0xeb45c3[_0xc71d43(0xd9)]());}}};