browserstack-node-sdk 1.40.2 → 1.40.3

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 (173) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/load/index.js +1 -1
  69. package/src/bin/load/loadUtils.js +1 -1
  70. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  71. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  72. package/src/bin/mocha/command.js +1 -1
  73. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  74. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  75. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  76. package/src/bin/mocha/test.setup.js +1 -1
  77. package/src/bin/nightwatch/command.js +1 -1
  78. package/src/bin/playwright/accessibility-helper.js +1 -1
  79. package/src/bin/playwright/command.js +1 -1
  80. package/src/bin/playwright/globalSetup.js +1 -1
  81. package/src/bin/playwright/mock-process.js +1 -1
  82. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  83. package/src/bin/playwright/patches.js +1 -1
  84. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  85. package/src/bin/playwright/reporter/reporter.js +1 -1
  86. package/src/bin/playwright/reporter/test-details.js +1 -1
  87. package/src/bin/playwright/sessionDetails.js +1 -1
  88. package/src/bin/runner.js +1 -1
  89. package/src/bin/setup.js +1 -1
  90. package/src/bin/test-runner/index.js +1 -1
  91. package/src/bin/test-runner/runTest.js +1 -1
  92. package/src/bin/test-runner/testWorker.js +1 -1
  93. package/src/bin/utils/constants.js +1 -1
  94. package/src/bin/utils/log4jsAppender.js +1 -1
  95. package/src/bin/utils/logPatcher.js +1 -1
  96. package/src/bin/utils/logReportingAPI.js +1 -1
  97. package/src/bin/v2/TestInfo.js +1 -1
  98. package/src/bin/v2/browserstackCLI.js +1 -1
  99. package/src/bin/v2/cliUtils.js +1 -1
  100. package/src/bin/v2/customTagManager.js +1 -1
  101. package/src/bin/v2/eventDispatcher.js +1 -1
  102. package/src/bin/v2/framework/automationFramework.js +1 -1
  103. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  104. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  105. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  106. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  107. package/src/bin/v2/framework/testFramework.js +1 -1
  108. package/src/bin/v2/grpcClient.js +1 -1
  109. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  110. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  111. package/src/bin/v2/instances/trackedContext.js +1 -1
  112. package/src/bin/v2/instances/trackedInstance.js +1 -1
  113. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  114. package/src/bin/v2/modules/baseModule.js +1 -1
  115. package/src/bin/v2/modules/observabilityModule.js +1 -1
  116. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  117. package/src/bin/v2/modules/testhubModule.js +1 -1
  118. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  119. package/src/bin/v2/state/hookState.js +1 -1
  120. package/src/bin/v2/state/testFrameworkState.js +1 -1
  121. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  122. package/src/bin/vanilla-js/command.js +1 -1
  123. package/src/browserStackSdk.js +1 -1
  124. package/src/helpers/BrowserStackSetup.js +1 -1
  125. package/src/helpers/accessibility-automation/constants.js +1 -1
  126. package/src/helpers/accessibility-automation/helper.js +1 -1
  127. package/src/helpers/accessibility-automation/scripts.js +1 -1
  128. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  129. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  130. package/src/helpers/ats/constants.js +1 -1
  131. package/src/helpers/ats/helper.js +1 -1
  132. package/src/helpers/capsMapping.js +1 -1
  133. package/src/helpers/central-scanner/constants.js +1 -1
  134. package/src/helpers/central-scanner/helpers.js +1 -1
  135. package/src/helpers/classLogger.js +1 -1
  136. package/src/helpers/globals.js +1 -1
  137. package/src/helpers/helper.js +1 -1
  138. package/src/helpers/logger.js +1 -1
  139. package/src/helpers/metadata.js +1 -1
  140. package/src/helpers/patchHelper.js +1 -1
  141. package/src/helpers/patchHelpers.js +1 -1
  142. package/src/helpers/percy/Percy.js +1 -1
  143. package/src/helpers/percy/PercyBinary.js +1 -1
  144. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  145. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  146. package/src/helpers/percy/PercySDK.js +1 -1
  147. package/src/helpers/percy/index.js +1 -1
  148. package/src/helpers/percy/utils.js +1 -1
  149. package/src/helpers/performance/constants.js +1 -1
  150. package/src/helpers/performance/performance-tester.js +1 -1
  151. package/src/helpers/processHelper.js +1 -1
  152. package/src/helpers/request-spy.js +1 -1
  153. package/src/helpers/setKeepAlive.js +1 -1
  154. package/src/helpers/test-observability/constants.js +1 -1
  155. package/src/helpers/test-observability/error-handler.js +1 -1
  156. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  157. package/src/helpers/test-observability/sessionHandler.js +1 -1
  158. package/src/helpers/test-observability/utils.js +1 -1
  159. package/src/helpers/test-orchestration/constants.js +1 -1
  160. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  161. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  162. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  163. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  164. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  165. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  166. package/src/helpers/testhub/constants.js +1 -1
  167. package/src/helpers/testhub/testhubHandler.js +1 -1
  168. package/src/helpers/testhub/utils.js +1 -1
  169. package/src/helpers/timeoutPromise.js +1 -1
  170. package/src/helpers/utilities.js +1 -1
  171. package/src/helpers/w3cMapping.js +1 -1
  172. package/src/hubAllocationMethods.js +1 -1
  173. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a35_0x1260e4=a35_0x4d42;function a35_0x4d42(_0x12cedf,_0x196546){const _0x2bdeb7=a35_0x2bde();return a35_0x4d42=function(_0x4d420c,_0x2a761f){_0x4d420c=_0x4d420c-0x131;let _0x132e22=_0x2bdeb7[_0x4d420c];return _0x132e22;},a35_0x4d42(_0x12cedf,_0x196546);}(function(_0x39a7f4,_0x38326c){const _0x33d02e=a35_0x4d42,_0x384b0e=_0x39a7f4();while(!![]){try{const _0x29b025=-parseInt(_0x33d02e(0x194))/0x1+-parseInt(_0x33d02e(0x174))/0x2*(parseInt(_0x33d02e(0x17d))/0x3)+-parseInt(_0x33d02e(0x189))/0x4*(parseInt(_0x33d02e(0x1c0))/0x5)+parseInt(_0x33d02e(0x1b2))/0x6*(parseInt(_0x33d02e(0x1a3))/0x7)+-parseInt(_0x33d02e(0x1de))/0x8+-parseInt(_0x33d02e(0x164))/0x9+parseInt(_0x33d02e(0x165))/0xa;if(_0x29b025===_0x38326c)break;else _0x384b0e['push'](_0x384b0e['shift']());}catch(_0x2669c7){_0x384b0e['push'](_0x384b0e['shift']());}}}(a35_0x2bde,0xe920d));const util=require(a35_0x1260e4(0x1ad)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require('../utils/constants'),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a35_0x1260e4(0x197)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a35_0x1260e4(0x172)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a35_0x1260e4(0x1a8)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a35_0x1260e4(0x1cd)),logger=require('../../helpers/logger')[a35_0x1260e4(0x162)],{shouldProcessEventForTesthub}=require(a35_0x1260e4(0x17b)),testHubConstants=require(a35_0x1260e4(0x1ac));function a35_0x2bde(){const _0x14a7d5=['59834YHGoBu','protocol','choLV','LNBzK','WnyUL','kBkXp','format','../../helpers/testhub/utils','__error_messages__','150DWSMuL','CCpik','Mocha','accessibilityScanStarted','yCtXx','getGlobal','BROWSERSTACK_TESTHUB_JWT','afterTest','error','initQuit','wKTqC','SYNC','164308WmoGEB','SAVE_RESULTS','rJDbz','MkfWh','IzZGE','DLzwe','TpwSA','measureWrapper','quitCount_','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','executeAsyncScript','620694ehAvMR','ZzYJR','index','./test-observability/mochaUtils','__platformCaps','wAzWL','GcYmM','pFGTL','timeout','bstackA11yShouldScan','unrLD','\x20|\x20','\x20-\x20','passed','jXelR','7hlsHfi','QFMqm','thJwtToken','getCurrentUrl','percyCaptureMode','../../helpers/performance/constants','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','qecsj',',\x22level\x22:\x20\x22','../../helpers/testhub/constants','util','app','dnwqn','oaDYY','startMonitoring','8558904Fefwec','testcase','qDhLh','XRtfi','snwJu','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','sessionName','WmxIT','driverCleanup','BqLZj','dtpSO','session_','tynMT','currentTest','55ooooky','beforeEach','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','testAnalyticsId','xRTYY','end','wrWuv','MIGmr','tPbMJ','xEKAo','http:','shift','mochaHooks','../../helpers/globals','capabilities','FRSfE','NDucT','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','hPfox','ZmEOD','thBuildUuid','failed','__skipSessionName','fmjJo','Failed\x20to\x20store\x20session\x20name:\x20','MmXfY','Automate\x20test\x20case\x20execution\x20has\x20started.','shouldScanTestForAccessibility','saveTestResults','thTestRunUuid','6698232MqHRkl','uifjn','stringify','YKZnG','jBjSK','sHmFJ','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','ObservabilitySync:','env','BROWSERSTACK_TESTHUB_UUID','setGlobal','RpGok','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','isArray','rIPwT','mHVVT','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','info','beforeAll','hUDsy','browserstackTestName','__drivers','SESSION_STATUS','titlePath','executeScript','QDsVZ','percy','Performing\x20scan\x20before\x20saving\x20results','start','dMIbW','koRlI','INfcs','gWAyy','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','browserstackSessionName','pTKIp','DlemR','push','\x22}}','edIbR','LLIlB','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','zpToQ','hImbE','SESSION_NAME','skrOY','lSeDf','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','kbqAQ','HmVst','UocHW','eNvNU','debug','PERFORM_SCAN','sessionNameSet__','winstonLogger','SIURs','6702894rRmRSR','36788450CidamZ','ACWOm','ENV_VAR','appium:app','jSUtd','JUxwm','SDK_HOOK','length','then','Passed','__sessionFailed','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','now','../../helpers/performance/performance-tester','join'];a35_0x2bde=function(){return _0x14a7d5;};return a35_0x2bde();}exports[a35_0x1260e4(0x1cc)]={'beforeAll'(){const _0xd865a7=a35_0x1260e4,_0x144814={'LNBzK':function(_0x44d0d7,_0x505027,_0x1ce4e1,_0x2449eb){return _0x44d0d7(_0x505027,_0x1ce4e1,_0x2449eb);},'xEKAo':_0xd865a7(0x1d5),'jZKBl':_0xd865a7(0x19f),'pTKIp':function(_0x4a3bf4,_0x51bf90,_0x1e19fa){return _0x4a3bf4(_0x51bf90,_0x1e19fa);},'HtVqq':_0xd865a7(0x1a1),'dMIbW':function(_0x3c1e7b){return _0x3c1e7b();},'mHVVT':function(_0x3bd54a,_0x5247a2,_0xf86b5b){return _0x3bd54a(_0x5247a2,_0xf86b5b);},'aUrUw':_0xd865a7(0x196),'kBkXp':_0xd865a7(0x13d)};PerformanceTester[_0xd865a7(0x1b1)]();const _0xae8b7c='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0xd865a7(0x16b)],()=>{const _0x425384=_0xd865a7;global[_0x425384(0x17c)]=[],global[_0x425384(0x16f)]=![],global[_0x425384(0x1ba)]=async()=>{const _0x42c828=_0x425384;let _0x904898=![];try{await global[_0x42c828(0x140)][0x0][_0x42c828(0x1bd)],_0x904898=!![],global['__sessionFailed']?await _0x144814[_0x42c828(0x177)](markSessionStatus,global[_0x42c828(0x140)][0x0],_0x144814[_0x42c828(0x1c9)],global[_0x42c828(0x17c)][_0x42c828(0x173)](_0x144814['jZKBl'])):await _0x144814[_0x42c828(0x14e)](markSessionStatus,global['__drivers'][0x0],_0x144814['HtVqq']);}catch(_0x3549e9){logger[_0x42c828(0x15f)](_0x42c828(0x1b7)+_0x3549e9);}global[_0x42c828(0x17c)]=[],global[_0x42c828(0x16f)]=![];if(_0x904898)try{try{_0x144814[_0x42c828(0x148)](shouldProcessEventForTesthub)&&(global[_0x42c828(0x140)][0x0]&&await _0x144814[_0x42c828(0x14e)](sendPlatformDetails,global[_0x42c828(0x140)][0x0],this[_0x42c828(0x1bf)]?this[_0x42c828(0x1bf)]['testAnalyticsId']:null));}catch(_0x2ace38){logger[_0x42c828(0x15f)](_0x42c828(0x131)+_0x2ace38);}await global[_0x42c828(0x140)][0x0][_0x42c828(0x186)]();}catch(_0x35c4c9){logger[_0x42c828(0x15f)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x35c4c9);}};},{'platform':_0x144814[_0xd865a7(0x13a)](nestedKeyValue,global['__platformCaps'],[_0x144814['aUrUw']]),'hookType':_0x144814[_0xd865a7(0x179)]})();},'beforeEach'(_0x13751f){const _0x50cd17=a35_0x1260e4,_0x3da6d8={'lSeDf':function(_0x3b72f4){return _0x3b72f4();},'kbqAQ':function(_0x4a1a85,_0xd6b4cc){return _0x4a1a85>_0xd6b4cc;},'sNpxN':function(_0x138342,_0x1f9aa5){return _0x138342>_0x1f9aa5;},'edIbR':_0x50cd17(0x1a0),'XRtfi':function(_0x144599,_0xf1c332,_0x7d4ec4){return _0x144599(_0xf1c332,_0x7d4ec4);},'DlemR':_0x50cd17(0x19d),'koRlI':function(_0x441ec1){return _0x441ec1();},'ZmEOD':'isAccessibilityPlatform','sUHEo':function(_0x2e4210,_0x1b6372){return _0x2e4210===_0x1b6372;},'LDASZ':_0x50cd17(0x1ca),'VGkuf':'https:','MmXfY':_0x50cd17(0x13b),'NDucT':_0x50cd17(0x1da),'JUxwm':_0x50cd17(0x13f),'ZSUAc':_0x50cd17(0x196),'skrOY':_0x50cd17(0x1c1)};globals[_0x50cd17(0x135)](_0x3da6d8[_0x50cd17(0x16a)],this[_0x50cd17(0x1bf)][_0x50cd17(0x142)]()[_0x50cd17(0x173)](_0x3da6d8['edIbR'])),PerformanceTester[_0x50cd17(0x190)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x23c8b4=_0x50cd17,_0x1871bd={'MkfWh':function(_0x47f181,_0x395876){const _0x2e621a=a35_0x4d42;return _0x3da6d8[_0x2e621a(0x15b)](_0x47f181,_0x395876);},'hUDsy':function(_0x17ba98,_0x375617){return _0x3da6d8['sNpxN'](_0x17ba98,_0x375617);},'HmVst':_0x3da6d8[_0x23c8b4(0x152)],'QDsVZ':function(_0x396913,_0x15979f,_0x5dcca4){const _0x39d2ab=_0x23c8b4;return _0x3da6d8[_0x39d2ab(0x1b5)](_0x396913,_0x15979f,_0x5dcca4);},'oaDYY':_0x3da6d8[_0x23c8b4(0x14f)],'choLV':function(_0x46f07c){const _0xa05fdf=_0x23c8b4;return _0x3da6d8[_0xa05fdf(0x149)](_0x46f07c);},'UocHW':_0x3da6d8[_0x23c8b4(0x1d3)],'SIURs':function(_0x2cae81,_0x1c51cc){return _0x3da6d8['sUHEo'](_0x2cae81,_0x1c51cc);},'eNvNU':_0x3da6d8['LDASZ'],'qecsj':_0x3da6d8['VGkuf'],'tPbMJ':_0x3da6d8[_0x23c8b4(0x1d9)],'zpToQ':_0x3da6d8[_0x23c8b4(0x1d0)]},_0x3195e1='browserstack internal helper hook';new Promise(async _0xf68356=>{const _0x32a4dc=_0x23c8b4;let _0x2e94ea=!![];try{_0x1871bd[_0x32a4dc(0x18c)](global[_0x32a4dc(0x140)]['length'],0x1)&&(await global['driverCleanup'](),global[_0x32a4dc(0x140)][_0x32a4dc(0x1cb)]()),_0x1871bd[_0x32a4dc(0x13e)](global['__drivers'][0x0][_0x32a4dc(0x191)],0x0)&&(_0x2e94ea=![],await global[_0x32a4dc(0x1ba)]());}catch(_0x51d327){logger['debug'](_0x32a4dc(0x1c2)+_0x51d327);}try{Array[_0x32a4dc(0x138)](global[_0x32a4dc(0x140)])&&global[_0x32a4dc(0x140)][0x0]&&(global[_0x32a4dc(0x140)][0x0]['browserstackSessionName']=this[_0x32a4dc(0x1bf)][_0x32a4dc(0x142)]()['join'](_0x1871bd[_0x32a4dc(0x15c)])),global[_0x32a4dc(0x14d)]=this['currentTest'][_0x32a4dc(0x142)]()['join'](_0x1871bd[_0x32a4dc(0x15c)]);}catch(_0xe1f5bf){logger['debug'](_0x32a4dc(0x1d8)+_0xe1f5bf);}this[_0x32a4dc(0x1bf)][_0x32a4dc(0x1db)]=_0x1871bd[_0x32a4dc(0x144)](shouldScanTestForAccessibility,this[_0x32a4dc(0x1bf)][_0x32a4dc(0x142)](),!![]),globals['setGlobal'](_0x1871bd[_0x32a4dc(0x1b0)],this[_0x32a4dc(0x1bf)][_0x32a4dc(0x1db)]),this['currentTest'][_0x32a4dc(0x180)]=!![];if(_0x1871bd[_0x32a4dc(0x176)](isAccessibilityAutomationSession)&&_0x2e94ea&&Array[_0x32a4dc(0x138)](global[_0x32a4dc(0x140)])&&_0x1871bd[_0x32a4dc(0x13e)](global[_0x32a4dc(0x140)][_0x32a4dc(0x16c)],0x0)&&globals[_0x32a4dc(0x182)](_0x1871bd[_0x32a4dc(0x15d)]))try{const _0x41dee7=await global[_0x32a4dc(0x140)][0x0][_0x32a4dc(0x1bd)];if(_0x41dee7){let _0x8bc49a=!![];const _0x5716d6=await global['__drivers'][0x0][_0x32a4dc(0x1a6)]();let _0x44655e;try{_0x44655e=new URL(_0x5716d6);}catch(_0x5c6230){_0x8bc49a=![];}_0x8bc49a=_0x1871bd[_0x32a4dc(0x163)](_0x44655e[_0x32a4dc(0x175)],_0x1871bd[_0x32a4dc(0x15e)])||_0x1871bd[_0x32a4dc(0x163)](_0x44655e[_0x32a4dc(0x175)],_0x1871bd[_0x32a4dc(0x1aa)]),_0x8bc49a&&(this[_0x32a4dc(0x1bf)]['shouldScanTestForAccessibility']&&logger[_0x32a4dc(0x13c)](_0x1871bd[_0x32a4dc(0x1c8)])),this['currentTest'][_0x32a4dc(0x180)]=this[_0x32a4dc(0x1bf)][_0x32a4dc(0x1db)],this[_0x32a4dc(0x1bf)][_0x32a4dc(0x1db)]&&logger['info'](_0x1871bd[_0x32a4dc(0x155)]);}}catch(_0x1bd6de){logger[_0x32a4dc(0x185)](_0x32a4dc(0x15a)+util[_0x32a4dc(0x17a)](_0x1bd6de));}_0x1871bd[_0x32a4dc(0x176)](_0xf68356);})[_0x23c8b4(0x16d)](()=>{const _0x221c59=_0x23c8b4;_0x3da6d8[_0x221c59(0x159)](_0x13751f);});},{'platform':_0x3da6d8[_0x50cd17(0x1b5)](nestedKeyValue,global[_0x50cd17(0x198)],[_0x3da6d8['ZSUAc']]),'hookType':_0x3da6d8[_0x50cd17(0x158)]})();},'afterEach'(_0x127bf7){const _0x52dd0d=a35_0x1260e4,_0x31889c={'xRTYY':function(_0xb9a05e,_0x1c7fc2){return _0xb9a05e!==_0x1c7fc2;},'RpGok':'passed','snwJu':function(_0x25dac7,_0x565051,_0x44e994){return _0x25dac7(_0x565051,_0x44e994);},'WmxIT':function(_0xc241ec,_0xcd1b3e){return _0xc241ec+_0xcd1b3e;},'etayW':'Failed:\x20','rIPwT':_0x52dd0d(0x185),'sHmFJ':function(_0x2cfd2f,_0x256d79,_0x2e5443){return _0x2cfd2f(_0x256d79,_0x2e5443);},'IzZGE':_0x52dd0d(0x16e),'DLzwe':_0x52dd0d(0x13c),'pFGTL':function(_0x4aece9,_0x3925bc){return _0x4aece9>_0x3925bc;},'wKTqC':function(_0x716e7a,_0x5592e9){return _0x716e7a===_0x5592e9;},'TpwSA':_0x52dd0d(0x1b3),'MIGmr':function(_0x36193a,_0x510fc1){return _0x36193a>_0x510fc1;},'ZzYJR':_0x52dd0d(0x168),'iLCkD':function(_0x4a87a2,_0x317dbb,_0x45cf1a,_0x5adb36){return _0x4a87a2(_0x317dbb,_0x45cf1a,_0x5adb36);},'BqLZj':'isAccessibilityPlatform','INfcs':_0x52dd0d(0x19d),'wrWuv':_0x52dd0d(0x137),'qDhLh':_0x52dd0d(0x146),'CCpik':_0x52dd0d(0x184),'rJDbz':_0x52dd0d(0x170),'jBjSK':function(_0x3295dc){return _0x3295dc();},'gWAyy':function(_0xff9fd0){return _0xff9fd0();},'hPfox':_0x52dd0d(0x15f),'fTVMe':function(_0x1a810c){return _0x1a810c();},'dtpSO':function(_0x4a9aff){return _0x4a9aff();},'LLIlB':'\x20-\x20','YKZnG':_0x52dd0d(0x17f),'tynMT':function(_0x137a80,_0x7c8a0f,_0x5f9ff8){return _0x137a80(_0x7c8a0f,_0x5f9ff8);},'wAzWL':_0x52dd0d(0x196),'GcYmM':'afterEach'},_0x1ad4e7='browserstack internal helper hook';this[_0x52dd0d(0x19c)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x31889c[_0x52dd0d(0x1e1)]]),global[_0x52dd0d(0x1b8)]=this[_0x52dd0d(0x1bf)][_0x52dd0d(0x142)]()[_0x52dd0d(0x173)](_0x31889c[_0x52dd0d(0x153)]),PerformanceTester[_0x52dd0d(0x190)](PerformanceSdkEvents[_0x52dd0d(0x16b)],()=>{const _0x1c75e6=_0x52dd0d,_0x6e6062={};_0x6e6062[_0x1c75e6(0x1d7)]=_0x31889c[_0x1c75e6(0x153)];const _0xdc5a42=_0x6e6062,_0x189764=async(_0x34e1af,_0x44517f)=>{const _0x3da3bb=_0x1c75e6;await global[_0x3da3bb(0x140)][0x0]['executeScript'](_0x3da3bb(0x14c)+_0x34e1af+_0x3da3bb(0x1ab)+_0x44517f+_0x3da3bb(0x151));};new Promise(async _0x3c91bd=>{const _0x30bc62=_0x1c75e6,_0x3766e7={'jXelR':function(_0x44b58c,_0x389960){const _0x4193b5=a35_0x4d42;return _0x31889c[_0x4193b5(0x1c4)](_0x44b58c,_0x389960);},'unrLD':_0x31889c[_0x30bc62(0x136)],'tlJel':function(_0x24188f,_0x2e676b,_0xe24a27){const _0x5c8ef3=_0x30bc62;return _0x31889c[_0x5c8ef3(0x1b6)](_0x24188f,_0x2e676b,_0xe24a27);},'zrQYx':function(_0x43bafc,_0x2ebf79){const _0x46cd21=_0x30bc62;return _0x31889c[_0x46cd21(0x1b9)](_0x43bafc,_0x2ebf79);},'vWdxS':_0x31889c['etayW'],'FRSfE':_0x31889c[_0x30bc62(0x139)],'xZtng':function(_0x23f376,_0x3c627b,_0x5ec79c){const _0xd361b9=_0x30bc62;return _0x31889c[_0xd361b9(0x1e3)](_0x23f376,_0x3c627b,_0x5ec79c);},'hImbE':_0x31889c[_0x30bc62(0x18d)],'RZnEW':_0x31889c[_0x30bc62(0x18e)]};try{_0x31889c['pFGTL'](global['__drivers'][_0x30bc62(0x16c)],0x1)&&(await global[_0x30bc62(0x1ba)](),global[_0x30bc62(0x140)]['shift'](),global[_0x30bc62(0x17c)]=[],global[_0x30bc62(0x16f)]=![]);try{if(global[_0x30bc62(0x145)]&&_0x31889c[_0x30bc62(0x187)](global[_0x30bc62(0x1a7)],_0x31889c[_0x30bc62(0x18f)])&&global[_0x30bc62(0x140)][0x0]){const _0xbe5bd2=_0x31889c[_0x30bc62(0x1c7)](global[_0x30bc62(0x1ce)][_0x30bc62(0x16c)],0x0)?!!global[_0x30bc62(0x1ce)][0x0][_0x30bc62(0x1ae)]||!!global['capabilities'][0x0][_0x31889c[_0x30bc62(0x195)]]:![],_0x5335db={};_0x5335db['app']=_0xbe5bd2,await _0x31889c['iLCkD'](percyAutoCapture,global['__drivers'][0x0],_0x31889c[_0x30bc62(0x18f)],_0x5335db);}}catch(_0x6dd4c0){logger['debug'](_0x30bc62(0x192)+_0x6dd4c0);}!global[_0x30bc62(0x1d6)]&&(await PerformanceTester[_0x30bc62(0x190)](PerformanceAutEvents[_0x30bc62(0x157)],async()=>{const _0x3daf6a=_0x30bc62;await global[_0x3daf6a(0x140)][0x0][_0x3daf6a(0x143)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x3daf6a(0x1e0)](this[_0x3daf6a(0x1bf)]['titlePath']()[_0x3daf6a(0x173)](_0xdc5a42['fmjJo']))+'}}');})(),global[_0x30bc62(0x140)][0x0][_0x30bc62(0x161)]=!![]),await PerformanceTester[_0x30bc62(0x190)](PerformanceAutEvents[_0x30bc62(0x141)],async()=>{const _0x477ac4=_0x30bc62,_0x43208c=_0x3766e7[_0x477ac4(0x1a2)](this['currentTest']['state'],_0x3766e7[_0x477ac4(0x19e)]);_0x43208c?(global[_0x477ac4(0x16f)]=!![],global[_0x477ac4(0x17c)][_0x477ac4(0x150)](this[_0x477ac4(0x1bf)]['err']['message']),await _0x3766e7['tlJel'](_0x189764,JSON[_0x477ac4(0x1e0)](_0x3766e7['zrQYx'](_0x3766e7['vWdxS'],this[_0x477ac4(0x1bf)]['err']['message'])),_0x3766e7[_0x477ac4(0x1cf)])):await _0x3766e7['xZtng'](_0x189764,JSON[_0x477ac4(0x1e0)](_0x3766e7[_0x477ac4(0x156)]),_0x3766e7['RZnEW']);})();}catch(_0x381d44){logger[_0x30bc62(0x15f)](_0x30bc62(0x154)+_0x381d44);}try{if(this[_0x30bc62(0x1bf)]['accessibilityScanStarted']&&globals[_0x30bc62(0x182)](_0x31889c[_0x30bc62(0x1bb)])&&globals[_0x30bc62(0x182)](_0x31889c[_0x30bc62(0x14a)])){logger[_0x30bc62(0x13c)](_0x31889c[_0x30bc62(0x1c6)]);const _0x2b0596={};_0x2b0596[_0x30bc62(0x1dd)]=this[_0x30bc62(0x1bf)][_0x30bc62(0x1c3)],_0x2b0596[_0x30bc62(0x1d4)]=process[_0x30bc62(0x133)][testHubConstants['ENV_VAR'][_0x30bc62(0x134)]],_0x2b0596[_0x30bc62(0x1a5)]=process[_0x30bc62(0x133)][testHubConstants[_0x30bc62(0x167)][_0x30bc62(0x183)]];const _0x5782c1=_0x2b0596;logger[_0x30bc62(0x15f)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON['stringify'](_0x5782c1)),logger['debug'](_0x31889c[_0x30bc62(0x1b4)]);const _0x5c4896={};_0x5c4896['command']=_0x31889c[_0x30bc62(0x17e)],await PerformanceTester[_0x30bc62(0x190)](PerformanceA11yEvents[_0x30bc62(0x160)],async()=>{const _0x5a3a8b=_0x30bc62;logger[_0x5a3a8b(0x15f)](util[_0x5a3a8b(0x17a)](await global['__drivers'][0x0][_0x5a3a8b(0x193)](scripts['performScan'],{'method':global[_0x5a3a8b(0x14d)]})));},_0x5c4896)(),await PerformanceTester[_0x30bc62(0x190)](PerformanceA11yEvents[_0x30bc62(0x18a)],async()=>{const _0x551717=_0x30bc62;await global['__drivers'][0x0][_0x551717(0x193)](scripts[_0x551717(0x1dc)],_0x5782c1);})(),logger[_0x30bc62(0x13c)](_0x31889c[_0x30bc62(0x18b)]);}}catch(_0x31dbf7){logger[_0x30bc62(0x185)](_0x30bc62(0x1d1)+this[_0x30bc62(0x1bf)][_0x30bc62(0x142)]()+'.\x20Error\x20:',_0x31dbf7);}try{try{if(_0x31889c[_0x30bc62(0x1e2)](shouldProcessEventForTesthub)){global[_0x30bc62(0x140)][0x0]&&await _0x31889c['sHmFJ'](sendPlatformDetails,global[_0x30bc62(0x140)][0x0],this['currentTest']?this[_0x30bc62(0x1bf)]['testAnalyticsId']:null);if(_0x31889c[_0x30bc62(0x14b)](isBrowserstackInfra)){PerformanceTester[_0x30bc62(0x147)](PerformanceO11yEvents[_0x30bc62(0x188)]);const _0x402dca=_0x30bc62(0x132)+Date[_0x30bc62(0x171)]();await _0x31889c[_0x30bc62(0x1b6)](_0x189764,JSON[_0x30bc62(0x1e0)](_0x402dca),_0x31889c[_0x30bc62(0x1d2)]),PerformanceTester[_0x30bc62(0x1c5)](PerformanceO11yEvents[_0x30bc62(0x188)]);}}}catch(_0x2a63b1){logger[_0x30bc62(0x15f)](_0x30bc62(0x1a9)+_0x2a63b1),PerformanceTester[_0x30bc62(0x1c5)](PerformanceO11yEvents[_0x30bc62(0x188)],![],_0x2a63b1);}_0x31889c[_0x30bc62(0x19b)](global[_0x30bc62(0x140)][0x0][_0x30bc62(0x191)],0x0)&&await global[_0x30bc62(0x1ba)]();}catch(_0x289b1a){logger[_0x30bc62(0x15f)](_0x30bc62(0x1c2)+_0x289b1a);}_0x31889c['fTVMe'](_0x3c91bd);})[_0x1c75e6(0x16d)](()=>{const _0x48e9a4=_0x1c75e6;_0x31889c[_0x48e9a4(0x1bc)](_0x127bf7);});},{'platform':_0x31889c[_0x52dd0d(0x1be)](nestedKeyValue,global[_0x52dd0d(0x198)],[_0x31889c[_0x52dd0d(0x199)]]),'hookType':_0x31889c[_0x52dd0d(0x19a)]})();},'afterAll'(_0x48d220){const _0x55c1cf=a35_0x1260e4,_0x84cbe1={'jSUtd':function(_0x2079ee){return _0x2079ee();},'WnyUL':function(_0x3286f8){return _0x3286f8();},'yCtXx':_0x55c1cf(0x17f),'ACWOm':function(_0x4dad8d,_0x4a26d0,_0x8b932e){return _0x4dad8d(_0x4a26d0,_0x8b932e);},'uifjn':_0x55c1cf(0x196),'QFMqm':'afterAll'},_0x21135a='browserstack internal helper hook';this[_0x55c1cf(0x19c)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x84cbe1[_0x55c1cf(0x181)]]),PerformanceTester['measureWrapper'](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x10e4c6=_0x55c1cf,_0x2ebb0f={'dnwqn':function(_0x5c79ab){const _0x53c120=a35_0x4d42;return _0x84cbe1[_0x53c120(0x178)](_0x5c79ab);}};new Promise(async _0x141532=>{const _0xea20da=a35_0x4d42;await global[_0xea20da(0x1ba)](),_0x84cbe1[_0xea20da(0x169)](_0x141532);})[_0x10e4c6(0x16d)]()['finally'](()=>{const _0x34f714=_0x10e4c6;_0x2ebb0f[_0x34f714(0x1af)](_0x48d220);});},{'platform':_0x84cbe1[_0x55c1cf(0x166)](nestedKeyValue,global['__platformCaps'],[_0x84cbe1[_0x55c1cf(0x1df)]]),'hookType':_0x84cbe1[_0x55c1cf(0x1a4)]})();}};
1
+ function a35_0x5d29(_0x279716,_0x2483b4){const _0x3e29c8=a35_0x3e29();return a35_0x5d29=function(_0x5d29c5,_0x50ef8a){_0x5d29c5=_0x5d29c5-0x1d1;let _0x553362=_0x3e29c8[_0x5d29c5];return _0x553362;},a35_0x5d29(_0x279716,_0x2483b4);}const a35_0x2aff98=a35_0x5d29;(function(_0x33c334,_0x1fe4f4){const _0x35e0e2=a35_0x5d29,_0x47c91a=_0x33c334();while(!![]){try{const _0x56ae68=parseInt(_0x35e0e2(0x220))/0x1*(-parseInt(_0x35e0e2(0x1f9))/0x2)+parseInt(_0x35e0e2(0x267))/0x3*(-parseInt(_0x35e0e2(0x263))/0x4)+parseInt(_0x35e0e2(0x209))/0x5+parseInt(_0x35e0e2(0x262))/0x6+parseInt(_0x35e0e2(0x25e))/0x7*(-parseInt(_0x35e0e2(0x271))/0x8)+-parseInt(_0x35e0e2(0x1d3))/0x9+parseInt(_0x35e0e2(0x1f5))/0xa*(parseInt(_0x35e0e2(0x1e2))/0xb);if(_0x56ae68===_0x1fe4f4)break;else _0x47c91a['push'](_0x47c91a['shift']());}catch(_0x1cd84b){_0x47c91a['push'](_0x47c91a['shift']());}}}(a35_0x3e29,0xb02df));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a35_0x2aff98(0x23d)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a35_0x2aff98(0x1dc)),{percyAutoCapture}=require(a35_0x2aff98(0x257)),{sendPlatformDetails}=require(a35_0x2aff98(0x26f)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a35_0x2aff98(0x243)),PerformanceTester=require(a35_0x2aff98(0x26a)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a35_0x2aff98(0x20f)),scripts=require(a35_0x2aff98(0x24d)),globals=require(a35_0x2aff98(0x261)),logger=require(a35_0x2aff98(0x1e9))['winstonLogger'],{shouldProcessEventForTesthub}=require(a35_0x2aff98(0x1d7)),testHubConstants=require('../../helpers/testhub/constants');exports[a35_0x2aff98(0x21c)]={'beforeAll'(){const _0x185124=a35_0x2aff98,_0x4127f5={'QUxwg':function(_0x3f249f,_0x3f924e,_0x228b44,_0x128475){return _0x3f249f(_0x3f924e,_0x228b44,_0x128475);},'piUxQ':_0x185124(0x1d8),'OCMOB':_0x185124(0x260),'xRBEF':function(_0x5206d3,_0x28a2d1,_0x2bfdbf){return _0x5206d3(_0x28a2d1,_0x2bfdbf);},'ePxbx':_0x185124(0x1f2),'XIfvq':function(_0x4b8894){return _0x4b8894();},'tgGrO':function(_0x90972f,_0x50a845,_0x20e112){return _0x90972f(_0x50a845,_0x20e112);},'JSjDZ':function(_0x1427a1,_0x908ca2,_0x199662){return _0x1427a1(_0x908ca2,_0x199662);},'aGyTc':_0x185124(0x26d),'mtuPb':'beforeAll'};PerformanceTester[_0x185124(0x23b)]();const _0x2ce412='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x185124(0x1fa)],()=>{const _0x3e224d=_0x185124;global['__error_messages__']=[],global[_0x3e224d(0x22f)]=![],global[_0x3e224d(0x20b)]=async()=>{const _0x3874d6=_0x3e224d;let _0x2f60ec=![];try{await global[_0x3874d6(0x231)][0x0][_0x3874d6(0x252)],_0x2f60ec=!![],global['__sessionFailed']?await _0x4127f5['QUxwg'](markSessionStatus,global[_0x3874d6(0x231)][0x0],_0x4127f5['piUxQ'],global[_0x3874d6(0x268)][_0x3874d6(0x25c)](_0x4127f5['OCMOB'])):await _0x4127f5[_0x3874d6(0x266)](markSessionStatus,global[_0x3874d6(0x231)][0x0],_0x4127f5[_0x3874d6(0x1fe)]);}catch(_0x3e2749){logger[_0x3874d6(0x265)](_0x3874d6(0x1f8)+_0x3e2749);}global[_0x3874d6(0x268)]=[],global[_0x3874d6(0x22f)]=![];if(_0x2f60ec)try{try{_0x4127f5[_0x3874d6(0x211)](shouldProcessEventForTesthub)&&(global[_0x3874d6(0x231)][0x0]&&await _0x4127f5[_0x3874d6(0x230)](sendPlatformDetails,global[_0x3874d6(0x231)][0x0],this[_0x3874d6(0x1ed)]?this[_0x3874d6(0x1ed)][_0x3874d6(0x272)]:null));}catch(_0x238f43){logger[_0x3874d6(0x265)](_0x3874d6(0x213)+_0x238f43);}await global[_0x3874d6(0x231)][0x0][_0x3874d6(0x223)]();}catch(_0x86cc35){logger[_0x3874d6(0x265)](_0x3874d6(0x203)+_0x86cc35);}};},{'platform':_0x4127f5[_0x185124(0x26e)](nestedKeyValue,global[_0x185124(0x207)],[_0x4127f5['aGyTc']]),'hookType':_0x4127f5['mtuPb']})();},'beforeEach'(_0x11b394){const _0x3c6df6=a35_0x2aff98,_0x18b9c6={'cKOrW':function(_0x5b9440,_0xc9251c){return _0x5b9440>_0xc9251c;},'mQbge':_0x3c6df6(0x225),'mYXOd':function(_0x5a4bc6,_0x3bdf21,_0x410877){return _0x5a4bc6(_0x3bdf21,_0x410877);},'OlwpA':_0x3c6df6(0x1fc),'cfPKv':function(_0x475a39){return _0x475a39();},'xINrI':'isAccessibilityPlatform','XbSGO':function(_0x281c5f,_0x19d8c3){return _0x281c5f===_0x19d8c3;},'iNBFB':_0x3c6df6(0x264),'csOPz':_0x3c6df6(0x20a),'omMgk':_0x3c6df6(0x1ea),'lBhmJ':_0x3c6df6(0x258),'GMZyh':_0x3c6df6(0x25b),'mFNhH':_0x3c6df6(0x26d),'qtPcy':_0x3c6df6(0x1f0)};globals[_0x3c6df6(0x236)](_0x18b9c6[_0x3c6df6(0x217)],this[_0x3c6df6(0x1ed)][_0x3c6df6(0x1f3)]()['join'](_0x18b9c6[_0x3c6df6(0x200)])),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x3c6df6(0x1fa)],()=>{const _0x43bf85=_0x3c6df6,_0x22683c={'QapWi':function(_0x3a32a3,_0x2d0799){const _0xf51a89=a35_0x5d29;return _0x18b9c6[_0xf51a89(0x210)](_0x3a32a3,_0x2d0799);},'abhwi':_0x18b9c6[_0x43bf85(0x200)],'PJKKu':function(_0xd769f3,_0x4c03d8,_0x5bfae6){const _0xc8c76=_0x43bf85;return _0x18b9c6[_0xc8c76(0x228)](_0xd769f3,_0x4c03d8,_0x5bfae6);},'ETNug':_0x18b9c6[_0x43bf85(0x21a)],'RIymW':function(_0x926921){return _0x18b9c6['cfPKv'](_0x926921);},'hMdQR':_0x18b9c6['xINrI'],'iqiRC':function(_0x286e61,_0x3cf579){const _0x89de94=_0x43bf85;return _0x18b9c6[_0x89de94(0x278)](_0x286e61,_0x3cf579);},'CeceY':_0x18b9c6[_0x43bf85(0x226)],'kgckb':_0x18b9c6[_0x43bf85(0x1eb)],'gsRuj':_0x18b9c6[_0x43bf85(0x239)],'GnBAR':_0x18b9c6[_0x43bf85(0x204)]},_0x4e0886='browserstack internal helper hook';new Promise(async _0x201135=>{const _0x5ea431=_0x43bf85;let _0x3ad1da=!![];try{_0x22683c['QapWi'](global[_0x5ea431(0x231)][_0x5ea431(0x1d5)],0x1)&&(await global[_0x5ea431(0x20b)](),global['__drivers'][_0x5ea431(0x227)]()),_0x22683c[_0x5ea431(0x201)](global[_0x5ea431(0x231)][0x0]['quitCount_'],0x0)&&(_0x3ad1da=![],await global[_0x5ea431(0x20b)]());}catch(_0x448b8a){logger[_0x5ea431(0x265)](_0x5ea431(0x203)+_0x448b8a);}try{Array[_0x5ea431(0x221)](global['__drivers'])&&global[_0x5ea431(0x231)][0x0]&&(global[_0x5ea431(0x231)][0x0][_0x5ea431(0x1e5)]=this['currentTest'][_0x5ea431(0x1f3)]()[_0x5ea431(0x25c)](_0x22683c[_0x5ea431(0x20c)])),global[_0x5ea431(0x1e5)]=this['currentTest']['titlePath']()['join'](_0x22683c[_0x5ea431(0x20c)]);}catch(_0x5c96e0){logger[_0x5ea431(0x265)](_0x5ea431(0x235)+_0x5c96e0);}this[_0x5ea431(0x1ed)][_0x5ea431(0x1d2)]=_0x22683c[_0x5ea431(0x26b)](shouldScanTestForAccessibility,this[_0x5ea431(0x1ed)][_0x5ea431(0x1f3)](),!![]),globals['setGlobal'](_0x22683c[_0x5ea431(0x21e)],this[_0x5ea431(0x1ed)][_0x5ea431(0x1d2)]),this[_0x5ea431(0x1ed)][_0x5ea431(0x22a)]=!![];if(_0x22683c[_0x5ea431(0x1d1)](isAccessibilityAutomationSession)&&_0x3ad1da&&Array[_0x5ea431(0x221)](global[_0x5ea431(0x231)])&&_0x22683c['QapWi'](global['__drivers']['length'],0x0)&&globals[_0x5ea431(0x237)](_0x22683c['hMdQR']))try{const _0x5817c6=await global['__drivers'][0x0][_0x5ea431(0x252)];if(_0x5817c6){let _0x30495f=!![];const _0x594612=await global['__drivers'][0x0][_0x5ea431(0x1f4)]();let _0x2053da;try{_0x2053da=new URL(_0x594612);}catch(_0x504d96){_0x30495f=![];}_0x30495f=_0x22683c[_0x5ea431(0x255)](_0x2053da[_0x5ea431(0x1e0)],_0x22683c[_0x5ea431(0x1fb)])||_0x22683c[_0x5ea431(0x255)](_0x2053da[_0x5ea431(0x1e0)],_0x22683c['kgckb']),_0x30495f&&(this['currentTest'][_0x5ea431(0x1d2)]&&logger[_0x5ea431(0x23e)](_0x22683c[_0x5ea431(0x1e7)])),this[_0x5ea431(0x1ed)]['accessibilityScanStarted']=this['currentTest']['shouldScanTestForAccessibility'],this[_0x5ea431(0x1ed)]['shouldScanTestForAccessibility']&&logger[_0x5ea431(0x23e)](_0x22683c[_0x5ea431(0x222)]);}}catch(_0x40a7fa){logger[_0x5ea431(0x269)](_0x5ea431(0x219)+util[_0x5ea431(0x245)](_0x40a7fa));}_0x22683c[_0x5ea431(0x1d1)](_0x201135);})[_0x43bf85(0x23c)](()=>{const _0x1fa23d=_0x43bf85;_0x22683c[_0x1fa23d(0x1d1)](_0x11b394);});},{'platform':_0x18b9c6['mYXOd'](nestedKeyValue,global['__platformCaps'],[_0x18b9c6['mFNhH']]),'hookType':_0x18b9c6['qtPcy']})();},'afterEach'(_0x14de1d){const _0x3090df=a35_0x2aff98,_0x1ac109={'uTPnE':function(_0x224924,_0x5636b8){return _0x224924!==_0x5636b8;},'axvPe':'passed','uRfOE':function(_0x3d93c9,_0x18cd9a,_0xeef8c9){return _0x3d93c9(_0x18cd9a,_0xeef8c9);},'jKsgW':function(_0x4b7f48,_0x1917fb){return _0x4b7f48+_0x1917fb;},'RuxRI':'Failed:\x20','ycvcj':_0x3090df(0x269),'EDiKe':_0x3090df(0x24a),'NKiaf':_0x3090df(0x23e),'GREWd':function(_0x164089,_0x40d1bc){return _0x164089>_0x40d1bc;},'nIZYU':function(_0x2df341,_0x4e8715){return _0x2df341===_0x4e8715;},'dadqt':_0x3090df(0x216),'rBuqY':function(_0x2b2807,_0x475450){return _0x2b2807>_0x475450;},'nQFuW':_0x3090df(0x233),'iMgbE':function(_0x1f1413,_0x36d44b,_0x379280,_0x457ee0){return _0x1f1413(_0x36d44b,_0x379280,_0x457ee0);},'uxaoG':'isAccessibilityPlatform','pnlqR':_0x3090df(0x1fc),'qhJaZ':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','pEuLX':'Performing\x20scan\x20before\x20saving\x20results','tLWyM':'afterTest','GDKzc':_0x3090df(0x25a),'vLSCL':function(_0x445769){return _0x445769();},'dtxOT':function(_0x2eb3ae,_0x1e2391,_0x57cf4d){return _0x2eb3ae(_0x1e2391,_0x57cf4d);},'pqbQJ':function(_0x157817){return _0x157817();},'VGCwR':_0x3090df(0x265),'vcKar':function(_0x234da7){return _0x234da7();},'hNjFf':_0x3090df(0x225),'AgVUL':_0x3090df(0x1dd),'elhQS':function(_0x59b802,_0x4c440c,_0x37484c){return _0x59b802(_0x4c440c,_0x37484c);},'GYHxM':_0x3090df(0x26d),'fufPs':_0x3090df(0x241)},_0x1f0f80='browserstack internal helper hook';this[_0x3090df(0x250)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x1ac109['AgVUL']]),global[_0x3090df(0x205)]=this['currentTest'][_0x3090df(0x1f3)]()[_0x3090df(0x25c)](_0x1ac109[_0x3090df(0x21d)]),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x3090df(0x1fa)],()=>{const _0x3383c8=_0x3090df,_0x2ad93b={};_0x2ad93b[_0x3383c8(0x24b)]=_0x1ac109[_0x3383c8(0x21d)];const _0x84a7c8=_0x2ad93b,_0x292b3e=async(_0x9882e4,_0x165fc5)=>{const _0x5e25e7=_0x3383c8;await global[_0x5e25e7(0x231)][0x0][_0x5e25e7(0x1e6)](_0x5e25e7(0x240)+_0x9882e4+_0x5e25e7(0x1ff)+_0x165fc5+'\x22}}');};new Promise(async _0x5f51a3=>{const _0x508c1c=_0x3383c8,_0x49fdf1={'zCNeX':function(_0x8361cd,_0x58cdd8){return _0x1ac109['uTPnE'](_0x8361cd,_0x58cdd8);},'TzDlx':_0x1ac109[_0x508c1c(0x25d)],'AhGTz':function(_0x5969b9,_0x340866,_0x45c1de){return _0x1ac109['uRfOE'](_0x5969b9,_0x340866,_0x45c1de);},'FnQwO':function(_0x3ebaaf,_0xef4256){const _0x4c4e73=_0x508c1c;return _0x1ac109[_0x4c4e73(0x208)](_0x3ebaaf,_0xef4256);},'vitED':_0x1ac109[_0x508c1c(0x1df)],'sghRG':_0x1ac109[_0x508c1c(0x22b)],'sMbaR':function(_0x264dc2,_0x577698,_0xb8f8b1){const _0x9791df=_0x508c1c;return _0x1ac109[_0x9791df(0x21b)](_0x264dc2,_0x577698,_0xb8f8b1);},'dtmQm':_0x1ac109[_0x508c1c(0x249)],'XMkKL':_0x1ac109['NKiaf']};try{_0x1ac109[_0x508c1c(0x247)](global['__drivers'][_0x508c1c(0x1d5)],0x1)&&(await global['driverCleanup'](),global[_0x508c1c(0x231)][_0x508c1c(0x227)](),global['__error_messages__']=[],global[_0x508c1c(0x22f)]=![]);try{if(global[_0x508c1c(0x229)]&&_0x1ac109['nIZYU'](global[_0x508c1c(0x24e)],_0x1ac109[_0x508c1c(0x248)])&&global[_0x508c1c(0x231)][0x0]){const _0x2822e7=_0x1ac109['rBuqY'](global[_0x508c1c(0x206)][_0x508c1c(0x1d5)],0x0)?!!global[_0x508c1c(0x206)][0x0][_0x508c1c(0x1f1)]||!!global[_0x508c1c(0x206)][0x0][_0x1ac109['nQFuW']]:![],_0x67a0df={};_0x67a0df[_0x508c1c(0x1f1)]=_0x2822e7,await _0x1ac109[_0x508c1c(0x1db)](percyAutoCapture,global[_0x508c1c(0x231)][0x0],_0x1ac109['dadqt'],_0x67a0df);}}catch(_0x44f90e){logger[_0x508c1c(0x265)](_0x508c1c(0x21f)+_0x44f90e);}!global[_0x508c1c(0x1de)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x508c1c(0x253)],async()=>{const _0x50c2e3=_0x508c1c;await global['__drivers'][0x0][_0x50c2e3(0x1e6)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x50c2e3(0x202)](this[_0x50c2e3(0x1ed)][_0x50c2e3(0x1f3)]()[_0x50c2e3(0x25c)](_0x84a7c8[_0x50c2e3(0x24b)]))+'}}');})(),global[_0x508c1c(0x231)][0x0]['sessionNameSet__']=!![]),await PerformanceTester[_0x508c1c(0x273)](PerformanceAutEvents['SESSION_STATUS'],async()=>{const _0xc8c19e=_0x508c1c,_0x5bb480=_0x49fdf1['zCNeX'](this['currentTest']['state'],_0x49fdf1[_0xc8c19e(0x277)]);_0x5bb480?(global[_0xc8c19e(0x22f)]=!![],global[_0xc8c19e(0x268)][_0xc8c19e(0x218)](this[_0xc8c19e(0x1ed)]['err'][_0xc8c19e(0x22e)]),await _0x49fdf1[_0xc8c19e(0x254)](_0x292b3e,JSON['stringify'](_0x49fdf1[_0xc8c19e(0x23f)](_0x49fdf1[_0xc8c19e(0x276)],this['currentTest']['err'][_0xc8c19e(0x22e)])),_0x49fdf1[_0xc8c19e(0x232)])):await _0x49fdf1[_0xc8c19e(0x1e1)](_0x292b3e,JSON[_0xc8c19e(0x202)](_0x49fdf1[_0xc8c19e(0x1f6)]),_0x49fdf1[_0xc8c19e(0x1f7)]);})();}catch(_0x3d79f4){logger[_0x508c1c(0x265)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x3d79f4);}try{if(this[_0x508c1c(0x1ed)][_0x508c1c(0x22a)]&&globals[_0x508c1c(0x237)](_0x1ac109['uxaoG'])&&globals[_0x508c1c(0x237)](_0x1ac109[_0x508c1c(0x274)])){logger['info'](_0x1ac109[_0x508c1c(0x23a)]);const _0x1a5eb5={};_0x1a5eb5['thTestRunUuid']=this[_0x508c1c(0x1ed)]['testAnalyticsId'],_0x1a5eb5['thBuildUuid']=process[_0x508c1c(0x256)][testHubConstants[_0x508c1c(0x1ec)][_0x508c1c(0x1d6)]],_0x1a5eb5[_0x508c1c(0x24c)]=process[_0x508c1c(0x256)][testHubConstants[_0x508c1c(0x1ec)][_0x508c1c(0x234)]];const _0x515630=_0x1a5eb5;logger[_0x508c1c(0x265)](_0x508c1c(0x1da)+JSON[_0x508c1c(0x202)](_0x515630)),logger[_0x508c1c(0x265)](_0x1ac109[_0x508c1c(0x215)]);const _0x29707c={};_0x29707c[_0x508c1c(0x24f)]=_0x1ac109[_0x508c1c(0x1ee)],await PerformanceTester[_0x508c1c(0x273)](PerformanceA11yEvents[_0x508c1c(0x22d)],async()=>{const _0x75c114=_0x508c1c;logger['debug'](util[_0x75c114(0x245)](await global[_0x75c114(0x231)][0x0][_0x75c114(0x259)](scripts['performScan'],{'method':global[_0x75c114(0x1e5)]})));},_0x29707c)(),await PerformanceTester[_0x508c1c(0x273)](PerformanceA11yEvents[_0x508c1c(0x244)],async()=>{const _0x23578a=_0x508c1c;await global[_0x23578a(0x231)][0x0][_0x23578a(0x259)](scripts['saveTestResults'],_0x515630);})(),logger['info'](_0x1ac109['GDKzc']);}}catch(_0x4ba879){logger['error'](_0x508c1c(0x238)+this['currentTest'][_0x508c1c(0x1f3)]()+'.\x20Error\x20:',_0x4ba879);}try{try{if(_0x1ac109[_0x508c1c(0x20d)](shouldProcessEventForTesthub)){global[_0x508c1c(0x231)][0x0]&&await _0x1ac109[_0x508c1c(0x1e4)](sendPlatformDetails,global[_0x508c1c(0x231)][0x0],this[_0x508c1c(0x1ed)]?this[_0x508c1c(0x1ed)][_0x508c1c(0x272)]:null);if(_0x1ac109['pqbQJ'](isBrowserstackInfra)){PerformanceTester[_0x508c1c(0x242)](PerformanceO11yEvents[_0x508c1c(0x214)]);const _0x3b1c49='ObservabilitySync:'+Date[_0x508c1c(0x1fd)]();await _0x1ac109[_0x508c1c(0x1e4)](_0x292b3e,JSON[_0x508c1c(0x202)](_0x3b1c49),_0x1ac109[_0x508c1c(0x251)]),PerformanceTester[_0x508c1c(0x212)](PerformanceO11yEvents['SYNC']);}}}catch(_0x4752e1){logger[_0x508c1c(0x265)](_0x508c1c(0x1ef)+_0x4752e1),PerformanceTester[_0x508c1c(0x212)](PerformanceO11yEvents[_0x508c1c(0x214)],![],_0x4752e1);}_0x1ac109[_0x508c1c(0x26c)](global[_0x508c1c(0x231)][0x0][_0x508c1c(0x20e)],0x0)&&await global[_0x508c1c(0x20b)]();}catch(_0x982e36){logger[_0x508c1c(0x265)](_0x508c1c(0x203)+_0x982e36);}_0x1ac109['vLSCL'](_0x5f51a3);})[_0x3383c8(0x23c)](()=>{const _0x4950b6=_0x3383c8;_0x1ac109[_0x4950b6(0x1e3)](_0x14de1d);});},{'platform':_0x1ac109['elhQS'](nestedKeyValue,global[_0x3090df(0x207)],[_0x1ac109[_0x3090df(0x1e8)]]),'hookType':_0x1ac109['fufPs']})();},'afterAll'(_0x4e18df){const _0x41b5b0=a35_0x2aff98,_0x177464={'Bpqbk':function(_0x3bf1a8){return _0x3bf1a8();},'ewmUo':function(_0x80a408){return _0x80a408();},'ZsoKB':'Mocha','IBIze':function(_0x19bc65,_0x17a550,_0x2d3ffc){return _0x19bc65(_0x17a550,_0x2d3ffc);},'DUdiQ':_0x41b5b0(0x26d),'utveY':_0x41b5b0(0x275)},_0x86a264='browserstack internal helper hook';this[_0x41b5b0(0x250)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x177464[_0x41b5b0(0x22c)]]),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x41b5b0(0x1fa)],()=>{const _0x4e9580=_0x41b5b0,_0x2c5310={'nbPeX':function(_0x551fc2){const _0x3b2dec=a35_0x5d29;return _0x177464[_0x3b2dec(0x270)](_0x551fc2);}};new Promise(async _0x4a5cbd=>{const _0x4cb419=a35_0x5d29;await global[_0x4cb419(0x20b)](),_0x177464[_0x4cb419(0x1d9)](_0x4a5cbd);})[_0x4e9580(0x23c)]()[_0x4e9580(0x224)](()=>{const _0xf93da0=_0x4e9580;_0x2c5310[_0xf93da0(0x246)](_0x4e18df);});},{'platform':_0x177464['IBIze'](nestedKeyValue,global[_0x41b5b0(0x207)],[_0x177464[_0x41b5b0(0x25f)]]),'hookType':_0x177464[_0x41b5b0(0x1d4)]})();}};function a35_0x3e29(){const _0x33f10c=['XMkKL','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','616EPKHJh','SDK_HOOK','CeceY','bstackA11yShouldScan','now','ePxbx',',\x22level\x22:\x20\x22','mQbge','QapWi','stringify','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','lBhmJ','sessionName','capabilities','__platformCaps','jKsgW','6921670XAvKQU','https:','driverCleanup','abhwi','vLSCL','quitCount_','../../helpers/performance/constants','cKOrW','XIfvq','end','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','SYNC','pEuLX','testcase','GMZyh','push','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','OlwpA','uRfOE','mochaHooks','hNjFf','ETNug','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','2866JyLLZl','isArray','GnBAR','initQuit','finally','\x20-\x20','iNBFB','shift','mYXOd','percy','accessibilityScanStarted','ycvcj','ZsoKB','PERFORM_SCAN','message','__sessionFailed','tgGrO','__drivers','sghRG','appium:app','BROWSERSTACK_TESTHUB_JWT','Failed\x20to\x20store\x20session\x20name:\x20','setGlobal','getGlobal','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','omMgk','qhJaZ','startMonitoring','then','../../helpers/accessibility-automation/helper','info','FnQwO','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','afterEach','start','../../helpers/helper','SAVE_RESULTS','format','nbPeX','GREWd','dadqt','EDiKe','Passed','fkLKy','thJwtToken','../../helpers/accessibility-automation/scripts','percyCaptureMode','command','timeout','VGCwR','session_','SESSION_NAME','AhGTz','iqiRC','env','../../helpers/percy/utils','Automate\x20test\x20case\x20execution\x20has\x20started.','executeAsyncScript','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','browserstackTestName','join','axvPe','9623236caKvsp','DUdiQ','\x20|\x20','../../helpers/globals','6334272ENdUFa','8jtppOh','http:','debug','xRBEF','403314tnRlwV','__error_messages__','error','../../helpers/performance/performance-tester','PJKKu','rBuqY','index','JSjDZ','./test-observability/mochaUtils','ewmUo','8YpZnJL','testAnalyticsId','measureWrapper','pnlqR','afterAll','vitED','TzDlx','XbSGO','RIymW','shouldScanTestForAccessibility','10681614ckabJL','utveY','length','BROWSERSTACK_TESTHUB_UUID','../../helpers/testhub/utils','failed','Bpqbk','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','iMgbE','../utils/constants','Mocha','__skipSessionName','RuxRI','protocol','sMbaR','21942613eixcIi','vcKar','dtxOT','browserstackSessionName','executeScript','gsRuj','GYHxM','../../helpers/logger','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','csOPz','ENV_VAR','currentTest','tLWyM','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','beforeEach','app','passed','titlePath','getCurrentUrl','10JujWIw','dtmQm'];a35_0x3e29=function(){return _0x33f10c;};return a35_0x3e29();}
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a36_0x11ca(_0x16ab1d,_0x40b362){const _0x456eb9=a36_0x456e();return a36_0x11ca=function(_0x11ca40,_0x2aabfc){_0x11ca40=_0x11ca40-0x71;let _0x486b5a=_0x456eb9[_0x11ca40];return _0x486b5a;},a36_0x11ca(_0x16ab1d,_0x40b362);}const a36_0x431395=a36_0x11ca;(function(_0x278c8d,_0x369828){const _0x5ab372=a36_0x11ca,_0x5efed4=_0x278c8d();while(!![]){try{const _0x5a7728=parseInt(_0x5ab372(0x9d))/0x1+parseInt(_0x5ab372(0x8f))/0x2+parseInt(_0x5ab372(0x8c))/0x3+parseInt(_0x5ab372(0xbd))/0x4+parseInt(_0x5ab372(0xa0))/0x5*(-parseInt(_0x5ab372(0x92))/0x6)+-parseInt(_0x5ab372(0xad))/0x7*(-parseInt(_0x5ab372(0x98))/0x8)+-parseInt(_0x5ab372(0x8b))/0x9;if(_0x5a7728===_0x369828)break;else _0x5efed4['push'](_0x5efed4['shift']());}catch(_0x4491f4){_0x5efed4['push'](_0x5efed4['shift']());}}}(a36_0x456e,0x4edff));const fs=require('fs'),path=require(a36_0x431395(0x9a)),{spawn}=require(a36_0x431395(0x81)),logger=require(a36_0x431395(0xab))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x1f8f15,_0xa2d95d)=>{const _0x7a2e0f=a36_0x431395,_0x51bcf1={'vxxOx':_0x7a2e0f(0x74),'CiPAl':_0x7a2e0f(0x83),'Gjxzt':function(_0x2c9176,_0x1e90f0){return _0x2c9176(_0x1e90f0);},'DrSbv':_0x7a2e0f(0x91)};let _0x406a13=null,_0x4996c8={};const _0x10b1d3=_0xa2d95d[_0x7a2e0f(0xb7)](_0x18b245=>_0x18b245===_0x7a2e0f(0x88));if(!helper[_0x7a2e0f(0x7e)](_0x1f8f15['config'])&&fs[_0x7a2e0f(0x87)](path[_0x7a2e0f(0x77)](process[_0x7a2e0f(0x8e)](),_0x1f8f15['config'])))_0x406a13=path['join'](process[_0x7a2e0f(0x8e)](),_0x1f8f15[_0x7a2e0f(0xb9)]),_0xa2d95d[_0x7a2e0f(0x7b)](_0x10b1d3,0x2);else{if(fs['existsSync'](path[_0x7a2e0f(0x77)](process[_0x7a2e0f(0x8e)](),_0x51bcf1['vxxOx'])))_0x406a13=path[_0x7a2e0f(0x77)](process[_0x7a2e0f(0x8e)](),_0x51bcf1[_0x7a2e0f(0x99)]);else fs[_0x7a2e0f(0x87)](path[_0x7a2e0f(0x77)](process[_0x7a2e0f(0x8e)](),_0x51bcf1[_0x7a2e0f(0x7f)]))&&(_0x406a13=path[_0x7a2e0f(0x77)](process[_0x7a2e0f(0x8e)](),_0x51bcf1['CiPAl']));}return _0x406a13?(logger[_0x7a2e0f(0x84)](_0x7a2e0f(0xb5)+_0x406a13),_0x4996c8=_0x51bcf1[_0x7a2e0f(0xb6)](require,_0x406a13)):logger[_0x7a2e0f(0x84)](_0x51bcf1[_0x7a2e0f(0xa5)]),_0x4996c8;},removeExistingEnvs=_0x2f2574=>{const _0xc18fe7=a36_0x431395,_0x34c822={};_0x34c822[_0xc18fe7(0x76)]=function(_0x505896,_0x16f2b8){return _0x505896>_0x16f2b8;},_0x34c822[_0xc18fe7(0xa7)]=function(_0x53dd69,_0xe62360){return _0x53dd69>_0xe62360;};const _0x57d3a1=_0x34c822;let _0x2cbf7a=_0x2f2574[_0xc18fe7(0xb7)](_0x4816ae=>_0x4816ae===_0xc18fe7(0x94));_0x57d3a1[_0xc18fe7(0x76)](_0x2cbf7a,-0x1)&&_0x2f2574[_0xc18fe7(0x7b)](_0x2cbf7a,0x2),_0x2cbf7a=_0x2f2574[_0xc18fe7(0xb7)](_0x332da0=>_0x332da0==='-e'),_0x57d3a1[_0xc18fe7(0xa7)](_0x2cbf7a,-0x1)&&_0x2f2574[_0xc18fe7(0x7b)](_0x2cbf7a,0x2);};function run(_0xa79d79,_0x5a7365,_0x218d15){const _0x5d4d01=a36_0x431395,_0x28a9cd={'Rlzju':_0x5d4d01(0xaf),'FITmx':function(_0x2f015c,_0x34d637){return _0x2f015c+_0x34d637;},'FjYwz':'test_settings','KbTeZ':function(_0x4474fb,_0x34311a,_0xf9a284){return _0x4474fb(_0x34311a,_0xf9a284);},'lzyXO':_0x5d4d01(0xbc),'VSIPr':_0x5d4d01(0xa6),'OcWgw':function(_0x5cb6e0,_0x1e5c78){return _0x5cb6e0===_0x1e5c78;},'ccJCy':_0x5d4d01(0xb3),'ZPIdY':function(_0x2a8598,_0x51c4ce){return _0x2a8598(_0x51c4ce);},'Bowxp':function(_0x4fa1f1,_0x3c7bd6,_0x8923e1,_0x521b18){return _0x4fa1f1(_0x3c7bd6,_0x8923e1,_0x521b18);},'JwPgw':'nightwatch.cmd','RHNrY':_0x5d4d01(0x88),'XSSPU':'--env','pDIjq':'inherit','vNqji':_0x5d4d01(0xb2)};if(!_0x218d15[_0x5d4d01(0xb9)])return;const _0x5f1c7f=_0x28a9cd[_0x5d4d01(0x8d)](getUserNightwatchConfigs,_0xa79d79,_0x5a7365),_0x56736d={};_0x56736d[_0x5d4d01(0x73)]=![];const _0x48e1ef={};_0x48e1ef[_0x5d4d01(0x9c)]=_0x28a9cd[_0x5d4d01(0xa8)],_0x48e1ef[_0x5d4d01(0xbb)]=0x1bb;const _0x5b88aa={};_0x5b88aa[_0x5d4d01(0x82)]=_0x56736d,_0x5b88aa[_0x5d4d01(0xb4)]=_0x48e1ef;const _0x3e2fd8=_0x5b88aa;logger[_0x5d4d01(0x84)](_0x28a9cd[_0x5d4d01(0x7a)]);const _0x4d1c8f={..._0x5f1c7f},_0xb81944=_0x4d1c8f,_0x28b864=helper[_0x5d4d01(0x79)](_0x218d15[_0x5d4d01(0xb9)]),_0x21fea9=[];_0x218d15['config'][_0x5d4d01(0x85)][_0x5d4d01(0x9b)]((_0x149e96,_0xd1385d)=>{const _0x5b6fe7=_0x5d4d01;_0x28b864?_0x21fea9[_0x5b6fe7(0x7c)](helper['modifyBrowserStackW3CCaps'](_0x218d15[_0x5b6fe7(0xb9)],_0x28a9cd[_0x5b6fe7(0x7d)],_0xd1385d)):_0x21fea9[_0x5b6fe7(0x7c)](helper[_0x5b6fe7(0x97)](_0x218d15[_0x5b6fe7(0xb9)],_0x28a9cd['Rlzju'],_0xd1385d));});const _0x2f157f={},_0x5a93bf=[];_0xa79d79[_0x5d4d01(0xb0)]=_0xa79d79['env']||_0xa79d79['e'];const _0xe8121f=_0xa79d79['env']?_0xa79d79[_0x5d4d01(0xb0)][_0x5d4d01(0x95)]()['split'](',')[_0x5d4d01(0x90)](_0x1aac36=>_0x1aac36[_0x5d4d01(0x95)]())[_0x5d4d01(0x93)](_0x40763a=>_0x40763a!==''):[''];_0x28a9cd[_0x5d4d01(0x80)](_0xe8121f[_0x5d4d01(0x75)],0x0)&&_0xe8121f[_0x5d4d01(0x7c)]('');_0xe8121f[_0x5d4d01(0x9b)](_0x2eacec=>{const _0x1220b1=_0x5d4d01,_0x21cfff={'zIrUx':function(_0x560a04,_0x20ff91){return _0x28a9cd['FITmx'](_0x560a04,_0x20ff91);},'arCDh':_0x28a9cd[_0x1220b1(0x89)]};_0x21fea9[_0x1220b1(0x9b)](_0x19ffd2=>{const _0x4fec53=_0x1220b1;let _0x4e9796=_0x21cfff[_0x4fec53(0x9e)](helper['getPlatformName'](_0x19ffd2,'_'),'_'+Date['now']());_0x2eacec&&(_0x4e9796+='_'+_0x2eacec);if(_0x2eacec&&(!_0x5f1c7f[_0x21cfff[_0x4fec53(0xaa)]]||!_0x5f1c7f[_0x21cfff['arCDh']][_0x2eacec]))return;const _0x2fe440={..._0x3e2fd8};_0x2fe440[_0x4fec53(0x8a)]=_0x19ffd2;const _0x196b19=_0x2fe440;_0x2f157f[_0x4e9796]=_0x2eacec?helper[_0x4fec53(0xb8)](_0x5f1c7f[_0x21cfff[_0x4fec53(0xaa)]][_0x2eacec],_0x196b19):_0x196b19,_0x5a93bf[_0x4fec53(0x7c)](_0x4e9796);});});!_0xb81944[_0x5d4d01(0xb1)]&&(_0xb81944[_0x5d4d01(0xb1)]={});_0xb81944[_0x5d4d01(0xb1)]={..._0xb81944[_0x5d4d01(0xb1)],..._0x2f157f};const _0x55379f=path[_0x5d4d01(0x77)](__dirname,_0x28a9cd[_0x5d4d01(0x96)]);fs['writeFileSync'](_0x55379f,JSON[_0x5d4d01(0xa3)](_0xb81944)),_0x28a9cd[_0x5d4d01(0xba)](removeExistingEnvs,_0x5a7365);const _0x38ce67=_0x28a9cd[_0x5d4d01(0xa9)](spawn,/^win/[_0x5d4d01(0x9f)](process[_0x5d4d01(0x78)])?_0x28a9cd['JwPgw']:_0x28a9cd[_0x5d4d01(0x7d)],[_0x28a9cd[_0x5d4d01(0x86)],_0x55379f,..._0x5a7365['slice'](0x1),_0x28a9cd[_0x5d4d01(0xa1)],_0x5a93bf['join'](',')],{'stdio':_0x28a9cd[_0x5d4d01(0xbe)]});_0x38ce67['on'](_0x28a9cd[_0x5d4d01(0xae)],async _0x14a867=>{const _0x5f2331=_0x5d4d01;logger[_0x5f2331(0x72)](_0x5f2331(0xac)+_0x14a867),logger['info'](_0x5f2331(0xa2)+_0x55379f),fs[_0x5f2331(0x71)](_0x55379f);});}function a36_0x456e(){const _0x8fa55=['Getting\x20your\x20nightwatch\x20configs\x20from\x20','Gjxzt','findIndex','mergeDeep','config','ZPIdY','port','hub.browserstack.com','2267964gHDGUw','pDIjq','unlinkSync','debug','start_process','nightwatch.conf.js','length','WJGMB','join','platform','useW3C','VSIPr','splice','push','Rlzju','isUndefined','CiPAl','OcWgw','child_process','webdriver','nightwatch.json','info','platforms','RHNrY','existsSync','--config','FjYwz','desiredCapabilities','9308115nBIgHP','1024125tooVqV','KbTeZ','cwd','640998Tpbuvz','map','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','296214HZEnkF','filter','--env','trim','ccJCy','modifyBrowserStackCaps','367176DaOhgx','vxxOx','path','forEach','host','293908TejJGI','zIrUx','test','40IitnUa','XSSPU','Deleting\x20','stringify','exports','DrSbv','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','RtkLa','lzyXO','Bowxp','arCDh','../../helpers/logger','child\x20process\x20exited\x20with\x20code\x20','35AvqRxL','vNqji','nightwatch','env','test_settings','close','nightwatch-browserstack.json','selenium'];a36_0x456e=function(){return _0x8fa55;};return a36_0x456e();}module[a36_0x431395(0xa4)]=run;
2
+ 'use strict';const a36_0x42d49f=a36_0x5102;(function(_0x3047e7,_0x5eda49){const _0x5e027e=a36_0x5102,_0x10dcf3=_0x3047e7();while(!![]){try{const _0x43ec63=parseInt(_0x5e027e(0x98))/0x1+parseInt(_0x5e027e(0xab))/0x2*(parseInt(_0x5e027e(0x87))/0x3)+parseInt(_0x5e027e(0xa5))/0x4+-parseInt(_0x5e027e(0x9a))/0x5+parseInt(_0x5e027e(0x7b))/0x6+-parseInt(_0x5e027e(0x79))/0x7*(-parseInt(_0x5e027e(0x84))/0x8)+-parseInt(_0x5e027e(0x7f))/0x9*(parseInt(_0x5e027e(0x77))/0xa);if(_0x43ec63===_0x5eda49)break;else _0x10dcf3['push'](_0x10dcf3['shift']());}catch(_0x18b72e){_0x10dcf3['push'](_0x10dcf3['shift']());}}}(a36_0x2da5,0xe5df8));function a36_0x5102(_0xe09fd,_0x440075){const _0x2da57f=a36_0x2da5();return a36_0x5102=function(_0x510202,_0x181cd5){_0x510202=_0x510202-0x77;let _0xb76621=_0x2da57f[_0x510202];return _0xb76621;},a36_0x5102(_0xe09fd,_0x440075);}const fs=require('fs'),path=require(a36_0x42d49f(0x93)),{spawn}=require('child_process'),logger=require('../../helpers/logger')[a36_0x42d49f(0xad)],{default:BrowserStackSetup}=require(a36_0x42d49f(0xa7)),helper=require(a36_0x42d49f(0xac)),constants=require(a36_0x42d49f(0xa3)),getUserNightwatchConfigs=(_0x18f31d,_0x49d911)=>{const _0x321c4d=a36_0x42d49f,_0x5f2dd5={'yLLwi':_0x321c4d(0xb4),'pHvVm':'nightwatch.json','aTldc':function(_0x30ff90,_0x1167f1){return _0x30ff90(_0x1167f1);},'yRlEQ':_0x321c4d(0xa8)};let _0x4e70fa=null,_0x4d4346={};const _0x3d5ebe=_0x49d911[_0x321c4d(0x80)](_0x50fa3f=>_0x50fa3f==='--config');if(!helper[_0x321c4d(0xae)](_0x18f31d[_0x321c4d(0x89)])&&fs[_0x321c4d(0xb9)](path[_0x321c4d(0xb3)](process['cwd'](),_0x18f31d['config'])))_0x4e70fa=path['join'](process[_0x321c4d(0x85)](),_0x18f31d[_0x321c4d(0x89)]),_0x49d911['splice'](_0x3d5ebe,0x2);else{if(fs[_0x321c4d(0xb9)](path[_0x321c4d(0xb3)](process['cwd'](),_0x5f2dd5['yLLwi'])))_0x4e70fa=path[_0x321c4d(0xb3)](process['cwd'](),_0x5f2dd5[_0x321c4d(0x8d)]);else fs['existsSync'](path['join'](process[_0x321c4d(0x85)](),_0x5f2dd5[_0x321c4d(0x78)]))&&(_0x4e70fa=path[_0x321c4d(0xb3)](process[_0x321c4d(0x85)](),_0x5f2dd5[_0x321c4d(0x78)]));}return _0x4e70fa?(logger['info'](_0x321c4d(0xbd)+_0x4e70fa),_0x4d4346=_0x5f2dd5[_0x321c4d(0x81)](require,_0x4e70fa)):logger[_0x321c4d(0x9d)](_0x5f2dd5[_0x321c4d(0xa6)]),_0x4d4346;},removeExistingEnvs=_0x26b750=>{const _0x23f58d=a36_0x42d49f,_0x1ffdd3={};_0x1ffdd3[_0x23f58d(0x8f)]=function(_0xcfe292,_0x40001b){return _0xcfe292>_0x40001b;},_0x1ffdd3[_0x23f58d(0xaa)]=function(_0x29a165,_0x1b9c9e){return _0x29a165>_0x1b9c9e;};const _0xf55cae=_0x1ffdd3;let _0x13ada1=_0x26b750[_0x23f58d(0x80)](_0x116d2e=>_0x116d2e==='--env');_0xf55cae[_0x23f58d(0x8f)](_0x13ada1,-0x1)&&_0x26b750['splice'](_0x13ada1,0x2),_0x13ada1=_0x26b750[_0x23f58d(0x80)](_0x22a4ab=>_0x22a4ab==='-e'),_0xf55cae[_0x23f58d(0xaa)](_0x13ada1,-0x1)&&_0x26b750[_0x23f58d(0x8a)](_0x13ada1,0x2);};function a36_0x2da5(){const _0x54d553=['now','yLLwi','trim','WCvgK','modifyBrowserStackW3CCaps','env','port','path','forEach','desiredCapabilities','VgfjB','start_process','1410877EEliNb','split','5641645FPuQKk','webdriver','filter','info','platform','--config','VTNvC','msMQB','getPlatformName','../utils/constants','test','3311236pkuLGw','yRlEQ','../../helpers/BrowserStackSetup','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','child\x20process\x20exited\x20with\x20code\x20','kTzOL','2158nyHRVm','../../helpers/helper','winstonLogger','isUndefined','selenium','modifyBrowserStackCaps','YqmUh','nightwatch-browserstack.json','join','nightwatch.conf.js','writeFileSync','length','host','push','existsSync','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','jzVPH','mergeDeep','Getting\x20your\x20nightwatch\x20configs\x20from\x20','RJUMN','17476090nTEKXB','pHvVm','279181uCPDZE','close','571842lqpCBN','slice','HibEh','nightwatch','9WCrlUE','findIndex','aTldc','UfbpJ','uSeBA','24iPOCzY','cwd','inherit','3792DVISNd','platforms','config','splice','test_settings'];a36_0x2da5=function(){return _0x54d553;};return a36_0x2da5();}function run(_0x5cd92a,_0x47e6f7,_0x37b986){const _0x436dee=a36_0x42d49f,_0x276d35={'UfbpJ':_0x436dee(0x7e),'FzeNb':function(_0x20a498,_0x51748a){return _0x20a498+_0x51748a;},'uSeBA':_0x436dee(0x8b),'Mielp':function(_0x5cc5f6,_0x4a53ca,_0x93295b){return _0x5cc5f6(_0x4a53ca,_0x93295b);},'VgfjB':'hub.browserstack.com','GsZyy':_0x436dee(0xba),'ZcEBr':function(_0x13ec21,_0x21f2ca){return _0x13ec21===_0x21f2ca;},'QGMjw':_0x436dee(0xb2),'GaIuW':function(_0x222626,_0x291887){return _0x222626(_0x291887);},'ukNNg':function(_0x346752,_0x292969,_0x852662,_0x5a0abe){return _0x346752(_0x292969,_0x852662,_0x5a0abe);},'jzVPH':'nightwatch.cmd','RJUMN':_0x436dee(0x9f),'HibEh':'--env','YqmUh':_0x436dee(0x86),'msMQB':_0x436dee(0x7a)};if(!_0x37b986[_0x436dee(0x89)])return;const _0x496b0d=_0x276d35['Mielp'](getUserNightwatchConfigs,_0x5cd92a,_0x47e6f7),_0x2f84a9={};_0x2f84a9[_0x436dee(0x97)]=![];const _0x58bd4d={};_0x58bd4d[_0x436dee(0xb7)]=_0x276d35[_0x436dee(0x96)],_0x58bd4d[_0x436dee(0x92)]=0x1bb;const _0x1d4899={};_0x1d4899[_0x436dee(0x9b)]=_0x2f84a9,_0x1d4899[_0x436dee(0xaf)]=_0x58bd4d;const _0x8c001c=_0x1d4899;logger[_0x436dee(0x9d)](_0x276d35['GsZyy']);const _0x9d3a14={..._0x496b0d},_0x25f806=_0x9d3a14,_0x1d4771=helper['useW3C'](_0x37b986[_0x436dee(0x89)]),_0x3bb60b=[];_0x37b986[_0x436dee(0x89)][_0x436dee(0x88)][_0x436dee(0x94)]((_0x1454b7,_0x919dba)=>{const _0x565053=_0x436dee;_0x1d4771?_0x3bb60b['push'](helper[_0x565053(0x90)](_0x37b986[_0x565053(0x89)],_0x276d35[_0x565053(0x82)],_0x919dba)):_0x3bb60b[_0x565053(0xb8)](helper[_0x565053(0xb0)](_0x37b986[_0x565053(0x89)],_0x276d35[_0x565053(0x82)],_0x919dba));});const _0x4c59c0={},_0x3a7d29=[];_0x5cd92a['env']=_0x5cd92a[_0x436dee(0x91)]||_0x5cd92a['e'];const _0xcec3e3=_0x5cd92a[_0x436dee(0x91)]?_0x5cd92a[_0x436dee(0x91)][_0x436dee(0x8e)]()[_0x436dee(0x99)](',')['map'](_0x431091=>_0x431091[_0x436dee(0x8e)]())[_0x436dee(0x9c)](_0x3af89f=>_0x3af89f!==''):[''];_0x276d35['ZcEBr'](_0xcec3e3[_0x436dee(0xb6)],0x0)&&_0xcec3e3[_0x436dee(0xb8)]('');_0xcec3e3[_0x436dee(0x94)](_0x2939c5=>{const _0x459b12=_0x436dee,_0x2dd123={'Aorst':function(_0x2d4158,_0x4e859f){return _0x276d35['FzeNb'](_0x2d4158,_0x4e859f);},'VTNvC':_0x276d35[_0x459b12(0x83)]};_0x3bb60b['forEach'](_0x10c5ae=>{const _0xe62cd=_0x459b12;let _0xf77b44=_0x2dd123['Aorst'](helper[_0xe62cd(0xa2)](_0x10c5ae,'_'),'_'+Date[_0xe62cd(0x8c)]());_0x2939c5&&(_0xf77b44+='_'+_0x2939c5);if(_0x2939c5&&(!_0x496b0d[_0x2dd123[_0xe62cd(0xa0)]]||!_0x496b0d[_0x2dd123['VTNvC']][_0x2939c5]))return;const _0x26352f={..._0x8c001c};_0x26352f[_0xe62cd(0x95)]=_0x10c5ae;const _0x8ac154=_0x26352f;_0x4c59c0[_0xf77b44]=_0x2939c5?helper[_0xe62cd(0xbc)](_0x496b0d[_0x2dd123[_0xe62cd(0xa0)]][_0x2939c5],_0x8ac154):_0x8ac154,_0x3a7d29[_0xe62cd(0xb8)](_0xf77b44);});});!_0x25f806[_0x436dee(0x8b)]&&(_0x25f806[_0x436dee(0x8b)]={});_0x25f806[_0x436dee(0x8b)]={..._0x25f806['test_settings'],..._0x4c59c0};const _0x18c3fa=path[_0x436dee(0xb3)](__dirname,_0x276d35['QGMjw']);fs[_0x436dee(0xb5)](_0x18c3fa,JSON['stringify'](_0x25f806)),_0x276d35['GaIuW'](removeExistingEnvs,_0x47e6f7);const _0x426c68=_0x276d35['ukNNg'](spawn,/^win/[_0x436dee(0xa4)](process[_0x436dee(0x9e)])?_0x276d35[_0x436dee(0xbb)]:_0x276d35['UfbpJ'],[_0x276d35[_0x436dee(0xbe)],_0x18c3fa,..._0x47e6f7[_0x436dee(0x7c)](0x1),_0x276d35[_0x436dee(0x7d)],_0x3a7d29[_0x436dee(0xb3)](',')],{'stdio':_0x276d35[_0x436dee(0xb1)]});_0x426c68['on'](_0x276d35[_0x436dee(0xa1)],async _0x2c65f6=>{const _0x553384=_0x436dee;logger['debug'](_0x553384(0xa9)+_0x2c65f6),logger['info']('Deleting\x20'+_0x18c3fa),fs['unlinkSync'](_0x18c3fa);});}module['exports']=run;
@@ -1 +1 @@
1
- const a37_0x165b54=a37_0x596e;(function(_0x4492c7,_0x21b483){const _0x636026=a37_0x596e,_0x1f3767=_0x4492c7();while(!![]){try{const _0x2cdc92=parseInt(_0x636026(0x161))/0x1*(parseInt(_0x636026(0x1aa))/0x2)+parseInt(_0x636026(0x18a))/0x3*(parseInt(_0x636026(0x18d))/0x4)+-parseInt(_0x636026(0x1c8))/0x5+-parseInt(_0x636026(0x1a8))/0x6*(-parseInt(_0x636026(0x1ab))/0x7)+parseInt(_0x636026(0x194))/0x8+parseInt(_0x636026(0x1ad))/0x9+parseInt(_0x636026(0x1ce))/0xa*(-parseInt(_0x636026(0x17b))/0xb);if(_0x2cdc92===_0x21b483)break;else _0x1f3767['push'](_0x1f3767['shift']());}catch(_0x34ea70){_0x1f3767['push'](_0x1f3767['shift']());}}}(a37_0x19cf,0x23c0d));function a37_0x596e(_0xb275ee,_0x2c8ea3){const _0x19cf5d=a37_0x19cf();return a37_0x596e=function(_0x596ef5,_0x4aab22){_0x596ef5=_0x596ef5-0x157;let _0x154f10=_0x19cf5d[_0x596ef5];return _0x154f10;},a37_0x596e(_0xb275ee,_0x2c8ea3);}function a37_0x19cf(){const _0x4beb70=['accessibilityOptions.includeIssueType.needsReview','includeIssueType','wsEndpoint','command','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','jyccs','koTrE','JIpdK','hTQTK','AZVHH','Vqcny','No\x20summaryResults\x20found.','executeScript','browser','rCYky','deviceName','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','No\x20accessibility\x20results\x20were\x20found.','404415wunNZy','bstackSdkArgs','ilzWL','getAccessibilityResultsSummary','AeKsQ','MCxdR','3340GQntAO','project','performScan','currentTest','sFBDo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','nhInH','accessibilityOptions.includeIssueType.bestPractice','accessibilityOptions','use','DGsPJ','latest','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','warn','715uBqhOX','winstonLogger','debug','XwgMj','WvZDZ','processAccessibilityCaps','HNuFq','accessibilityOptions.authToken','\x20page:\x20','scannerProcessingTimeout','accessibilityOptions.wcagVersion','FHjGA','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','name','../../helpers/accessibility-automation/scripts','stringify','constructor','accessibilityPlatform','PERFORM_SCAN','../../helpers/helper','replace','measureWrapper','wXxZX','tbTNQ','YcNEB','setAccessibilityCapabilities','20801JeIWXU','../../helpers/logger','platformValidation','BS_A11Y_JWT','browser_version','gJFKl','Okrjh','evaluate','scannerVersion','format','browserStackEvaluate','jXhid','Ykopm','browserName','xQhcY','122127wlSznB','wcagVersion','browserstack.accessibility','20dAUoQf','ZAXJv','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','OzRAV','WebDriver','Playwright','1790672EzltSW','awMan','executeAsyncScript','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','LWXIa','env','testInfo','bestPractice','includes','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','browserStackExecuteDriver','WzPqf','QPiRF','connectOptions','(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','../../helpers/performance/constants','mkRZl','IQnrl','QUFte','6qHVphw','error','446gesWES','831859sdUyiX','Performing\x20scan\x20with\x20method:\x20','1379349YUiVMy','zqBkR','../../helpers/accessibility-automation/helper','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','chrome','util','ZYCFS','accessibilityOptions.scannerProcessingTimeout','playwright-chromium'];a37_0x19cf=function(){return _0x4beb70;};return a37_0x19cf();}const util=require(a37_0x165b54(0x1b2)),logger=require(a37_0x165b54(0x17c))[a37_0x165b54(0x162)],{isAccessibilityAutomationSession}=require(a37_0x165b54(0x1af)),{isUndefined,isBrowserstackInfra}=require(a37_0x165b54(0x174)),scripts=require(a37_0x165b54(0x16f)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a37_0x165b54(0x1a4));exports[a37_0x165b54(0x185)]=async(_0x2889c4,_0x506a6b,_0x46da73={})=>{const _0x48c825=a37_0x165b54,_0x31759c={};_0x31759c[_0x48c825(0x180)]=_0x48c825(0x1c9);const _0x49322c=_0x31759c;return await _0x2889c4[_0x48c825(0x182)]('(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'+_0x506a6b['replace'](/arguments/g,_0x49322c[_0x48c825(0x180)])+_0x48c825(0x15f)+JSON['stringify'](_0x46da73)+')');},exports[a37_0x165b54(0x19f)]=async(_0x10f10b,_0x4924a4,_0x3639fe={})=>{const _0x24ef9f=a37_0x165b54,_0x35fc9b={};_0x35fc9b[_0x24ef9f(0x1b3)]=function(_0x52bcff,_0x588a1f){return _0x52bcff===_0x588a1f;},_0x35fc9b['zqBkR']=_0x24ef9f(0x192),_0x35fc9b[_0x24ef9f(0x189)]=_0x24ef9f(0x193),_0x35fc9b['EIXWI']=_0x24ef9f(0x1c9);const _0x924007=_0x35fc9b;if(_0x924007['ZYCFS'](_0x10f10b[_0x24ef9f(0x171)][_0x24ef9f(0x16e)],_0x924007[_0x24ef9f(0x1ae)]))return await _0x10f10b[_0x24ef9f(0x196)](_0x4924a4,_0x3639fe);else{if(_0x924007[_0x24ef9f(0x1b3)](_0x10f10b[_0x24ef9f(0x171)][_0x24ef9f(0x16e)],_0x924007['xQhcY']))return await _0x10f10b[_0x24ef9f(0x1c2)](_0x24ef9f(0x1a3)+_0x4924a4[_0x24ef9f(0x175)](/arguments/g,_0x924007['EIXWI'])+_0x24ef9f(0x1c6)+JSON['stringify'](_0x3639fe)+')');}},exports[a37_0x165b54(0x17a)]=async _0x5a7134=>{const _0x5f3287=a37_0x165b54,_0x4b3cd5={};_0x4b3cd5[_0x5f3287(0x187)]=_0x5f3287(0x16b),_0x4b3cd5[_0x5f3287(0x198)]=_0x5f3287(0x1b4),_0x4b3cd5['Vqcny']=_0x5f3287(0x15a),_0x4b3cd5[_0x5f3287(0x1cd)]=_0x5f3287(0x1b6),_0x4b3cd5[_0x5f3287(0x164)]=_0x5f3287(0x168),_0x4b3cd5[_0x5f3287(0x1a5)]='accessibilityOptions.scannerVersion';const _0x2ecd47=_0x4b3cd5;_0x5a7134[_0x5f3287(0x15b)]&&(_0x5a7134[_0x5f3287(0x15b)][_0x5f3287(0x18b)]&&(_0x5a7134[_0x2ecd47['Ykopm']]=_0x5a7134[_0x5f3287(0x15b)][_0x5f3287(0x18b)]),_0x5a7134[_0x5f3287(0x15b)]['scannerProcessingTimeout']&&(_0x5a7134[_0x2ecd47['LWXIa']]=_0x5a7134['accessibilityOptions'][_0x5f3287(0x16a)]),_0x5a7134['accessibilityOptions'][_0x5f3287(0x1b7)]&&(_0x5a7134[_0x2ecd47[_0x5f3287(0x1c0)]]=_0x5a7134[_0x5f3287(0x15b)][_0x5f3287(0x1b7)][_0x5f3287(0x19b)],_0x5a7134[_0x2ecd47[_0x5f3287(0x1cd)]]=_0x5a7134[_0x5f3287(0x15b)][_0x5f3287(0x1b7)]['needsReview']));const _0x5d883e=JSON['parse'](process[_0x5f3287(0x199)][_0x5f3287(0x19d)])[_0x5f3287(0x183)];_0x5a7134[_0x2ecd47[_0x5f3287(0x164)]]=process['env'][_0x5f3287(0x17e)],_0x5a7134[_0x2ecd47[_0x5f3287(0x1a5)]]=_0x5d883e,delete _0x5a7134[_0x5f3287(0x15b)];},exports['getAccessibilityResults']=async _0x334981=>{const _0x80a99a=a37_0x165b54,_0x403eb9={};_0x403eb9[_0x80a99a(0x157)]=_0x80a99a(0x1c7),_0x403eb9[_0x80a99a(0x1ca)]=_0x80a99a(0x1b0);const _0x262748=_0x403eb9;if(global[_0x80a99a(0x172)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x334981,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x334981,scripts.getResults);})();return res;}catch{return logger[_0x80a99a(0x1a9)](_0x262748[_0x80a99a(0x157)]),[];}else return logger[_0x80a99a(0x160)](_0x262748['ilzWL']),[];},exports[a37_0x165b54(0x1d0)]=async(_0x537880,_0x71e42c='')=>{const _0x112a37=a37_0x165b54;logger[_0x112a37(0x163)](_0x112a37(0x1ac)+_0x71e42c+_0x112a37(0x169)+_0x537880);if(global['accessibilityPlatform'])return await PerformanceTester[_0x112a37(0x176)](PerformanceA11yEvents[_0x112a37(0x173)],async()=>{const _0x44f9cc=_0x112a37,_0x592b51={};_0x592b51[_0x44f9cc(0x1b9)]=_0x71e42c,await exports[_0x44f9cc(0x185)](_0x537880,scripts[_0x44f9cc(0x1d0)],_0x592b51);},{'command':_0x71e42c})();},exports[a37_0x165b54(0x1cb)]=async _0x6862d8=>{const _0x2bffd2=a37_0x165b54,_0x2c98e2={};_0x2c98e2[_0x2bffd2(0x177)]=_0x2bffd2(0x1c1),_0x2c98e2[_0x2bffd2(0x179)]=_0x2bffd2(0x18f);const _0x412e7d=_0x2c98e2;if(global[_0x2bffd2(0x172)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x6862d8,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x6862d8,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x2bffd2(0x163)](_0x412e7d[_0x2bffd2(0x177)]),{};}else return logger[_0x2bffd2(0x160)](_0x412e7d['YcNEB']),{};},exports[a37_0x165b54(0x17d)]=async _0x13d0e9=>{const _0xd6b462=a37_0x165b54,_0x229424={'hEFPN':function(_0x92011a,_0x1ab32e){return _0x92011a!==_0x1ab32e;},'rrFTY':_0xd6b462(0x158),'DGsPJ':_0xd6b462(0x1b1),'awMan':_0xd6b462(0x1b5),'FHjGA':'chromium','rCYky':_0xd6b462(0x19e),'zNbMO':function(_0x420b76,_0xd35fbf){return _0x420b76(_0xd35fbf);},'epZoN':function(_0x3ea813){return _0x3ea813();},'ZAXJv':function(_0x129b6f,_0x3690e0){return _0x129b6f<_0x3690e0;},'uIxLf':_0xd6b462(0x190),'fWzqX':function(_0x54031a,_0x105688){return _0x54031a===_0x105688;},'iUCuk':_0xd6b462(0x15e),'IQnrl':function(_0x4e257b,_0x2b3733){return _0x4e257b>_0x2b3733;},'WzPqf':_0xd6b462(0x1ba)};try{if(!_0x229424['hEFPN'](_0x13d0e9[_0xd6b462(0x1c5)],''))return logger[_0xd6b462(0x160)](_0x229424['rrFTY']),![];const _0x31a1d9=_0x13d0e9[_0xd6b462(0x1c3)];if(![_0x229424[_0xd6b462(0x15d)],_0x229424[_0xd6b462(0x195)],_0x229424[_0xd6b462(0x16c)]][_0xd6b462(0x19c)](_0x31a1d9))return logger[_0xd6b462(0x160)](_0x229424[_0xd6b462(0x1c4)]),![];const _0x403eb2=_0x229424['zNbMO'](parseInt,_0x13d0e9[_0xd6b462(0x17f)]);!_0x229424['epZoN'](isBrowserstackInfra)&&(!_0x229424[_0xd6b462(0x18e)](_0x403eb2,0x64)&&logger['warn'](_0x229424['uIxLf']));if(!(_0x229424['fWzqX'](_0x403eb2,_0x229424['iUCuk'])||_0x229424[_0xd6b462(0x1a6)](_0x403eb2,0x5e)))return logger[_0xd6b462(0x160)](_0x229424[_0xd6b462(0x1a0)]),![];}catch(_0x1c015e){logger['debug'](_0xd6b462(0x197)+util[_0xd6b462(0x184)](_0x1c015e));}return!![];},exports[a37_0x165b54(0x166)]=(_0x32e332,_0x5346a6,_0x5e401e)=>{const _0x17cf10=a37_0x165b54,_0xc9e3f={'QPiRF':function(_0x23eebc){return _0x23eebc();},'hTQTK':_0x17cf10(0x18c),'OzRAV':function(_0x3450c0,_0x1edf9a){return _0x3450c0===_0x1edf9a;},'jXhid':'chrome','JIpdK':function(_0x153da2,_0x1879af){return _0x153da2===_0x1879af;},'WvZDZ':_0x17cf10(0x1b5),'tbTNQ':function(_0x123aa9,_0x208f74){return _0x123aa9===_0x208f74;},'Okrjh':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','QUFte':function(_0x5a242b,_0x375e53){return _0x5a242b>_0x375e53;},'AeKsQ':_0x17cf10(0x190),'nhInH':function(_0x1967ad,_0x4bf1f8){return _0x1967ad===_0x4bf1f8;},'koTrE':_0x17cf10(0x15e),'HNuFq':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','DEodz':function(_0x2c30c5,_0x4f31cd){return _0x2c30c5(_0x4f31cd);},'AZVHH':_0x17cf10(0x158),'pShJL':function(_0xe6439f,_0x4dbf76){return _0xe6439f+_0x4dbf76;},'jyccs':function(_0x1bc92d,_0x4452bc){return _0x1bc92d(_0x4452bc);}};try{if(_0xc9e3f[_0x17cf10(0x1a1)](isAccessibilityAutomationSession)){global[_0x17cf10(0x172)]=!![];!_0x32e332[_0xc9e3f[_0x17cf10(0x1be)]]&&(global[_0x17cf10(0x172)]=![]);!(_0xc9e3f['OzRAV'](_0x32e332[_0x17cf10(0x188)],_0xc9e3f[_0x17cf10(0x186)])||_0xc9e3f[_0x17cf10(0x1bd)](_0x32e332[_0x17cf10(0x188)],_0xc9e3f[_0x17cf10(0x165)])||_0xc9e3f[_0x17cf10(0x191)](_0x32e332[_0x17cf10(0x1c3)],_0xc9e3f[_0x17cf10(0x186)])||_0xc9e3f[_0x17cf10(0x178)](_0x32e332['browser'],_0xc9e3f[_0x17cf10(0x165)]))&&(logger['warn'](_0xc9e3f[_0x17cf10(0x181)]),global[_0x17cf10(0x172)]=![]);!_0xc9e3f['QPiRF'](isBrowserstackInfra)&&(!_0xc9e3f[_0x17cf10(0x1a7)](_0x32e332[_0x17cf10(0x17f)],0x64)&&logger['warn'](_0xc9e3f[_0x17cf10(0x1cc)]));!(_0xc9e3f[_0x17cf10(0x159)](_0x32e332[_0x17cf10(0x17f)],_0xc9e3f[_0x17cf10(0x1bc)])||_0xc9e3f[_0x17cf10(0x1a7)](_0x32e332['browser_version'],0x5e))&&(logger['warn'](_0xc9e3f[_0x17cf10(0x167)]),global[_0x17cf10(0x172)]=![]);!_0xc9e3f['DEodz'](isUndefined,_0x32e332['deviceName'])&&(logger['warn'](_0xc9e3f[_0x17cf10(0x1bf)]),global[_0x17cf10(0x172)]=![]);if(!global[_0x17cf10(0x172)]){_0x32e332[_0xc9e3f['hTQTK']]=![];const _0x4f7d62=_0xc9e3f['pShJL'](_0x5346a6,_0xc9e3f[_0x17cf10(0x1bb)](encodeURIComponent,JSON[_0x17cf10(0x170)](_0x32e332)));_0x5e401e&&(_0x5e401e[_0x17cf10(0x1d1)][_0x17cf10(0x19a)][_0x17cf10(0x1cf)][_0x17cf10(0x15c)]['connectOptions'][_0x17cf10(0x1b8)]=_0x4f7d62,_0x5e401e['workerInfo']['project'][_0x17cf10(0x15c)][_0x17cf10(0x1a2)]['wsEndpoint']=_0x4f7d62);}}else global[_0x17cf10(0x172)]=![];}catch(_0x242064){logger[_0x17cf10(0x163)](_0x17cf10(0x16d)+util[_0x17cf10(0x184)](_0x242064));}};
1
+ function a37_0x3363(){const _0x230d69=['Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','accessibilityOptions.includeIssueType.needsReview','getAccessibilityResults','71600HuJmBK','chromium','../../helpers/accessibility-automation/scripts','sFOBW','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','3879dMJzVh','debug','VKRGV','includeIssueType','No\x20accessibility\x20results\x20were\x20found.','No\x20summaryResults\x20found.','stringify','jGUOf','../../helpers/helper','BjAxV','browser_version','playwright-chromium','browserStackEvaluate','replace','OJPKL','deviceName','accessibilityPlatform','WebDriver','evaluate','winstonLogger','VXEDA','wmgMu','measureWrapper','accessibilityOptions.includeIssueType.bestPractice','uasBe','connectOptions','DzVAy','\x20page:\x20','browser','needsReview','../../helpers/logger','btZJF','1460DLZsdh','hnMEH','performScan','Performing\x20scan\x20with\x20method:\x20','540505KrihfB','199830onwPLx','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','currentTest','AIygk','6129wSdRwD','mrfJw','ZsbbT','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','yjoyg','YYghU','executeScript','accessibilityOptions.scannerProcessingTimeout','../../helpers/performance/constants','accessibilityOptions.wcagVersion','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','(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','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','fJEhO','name','platformValidation','parse','PvXAR','constructor','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','format','latest','MbxcM','browserStackExecuteDriver','env','project','../../helpers/accessibility-automation/helper','aQzki','getAccessibilityResultsSummary','LgXpr','../../helpers/performance/performance-tester','ewyKu','OSYgh','browserName','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','pCqfO','733944lGrZfa','6301526dNAVaP','12NjtrZS','dpEeu','tJCwC','xcanr','accessibilityOptions','LAwQW','util','Ktpry','FqjaD','includes','use','warn','processAccessibilityCaps','bstackSdkArgs','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','ygefL','otRrR','kYZNe','wcagVersion','8SwEKDI','kTAXh','PERFORM_SCAN','scannerProcessingTimeout','accessibilityOptions.authToken','workerInfo','QdBNW','TDEPE','KIrnL','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','setAccessibilityCapabilities','aTtof','wsEndpoint','326OSIrMo'];a37_0x3363=function(){return _0x230d69;};return a37_0x3363();}const a37_0x1ae385=a37_0x3fcf;function a37_0x3fcf(_0x4d7035,_0x45744f){const _0x33634d=a37_0x3363();return a37_0x3fcf=function(_0x3fcfa1,_0x26a182){_0x3fcfa1=_0x3fcfa1-0xec;let _0x4d6c6d=_0x33634d[_0x3fcfa1];return _0x4d6c6d;},a37_0x3fcf(_0x4d7035,_0x45744f);}(function(_0x799bdb,_0x2e0e3b){const _0x44f503=a37_0x3fcf,_0x2414c6=_0x799bdb();while(!![]){try{const _0xa48ecd=-parseInt(_0x44f503(0xf1))/0x1+-parseInt(_0x44f503(0xed))/0x2*(parseInt(_0x44f503(0xf7))/0x3)+-parseInt(_0x44f503(0x147))/0x4*(-parseInt(_0x44f503(0x11c))/0x5)+-parseInt(_0x44f503(0x145))/0x6+parseInt(_0x44f503(0x11b))/0x7*(-parseInt(_0x44f503(0x15a))/0x8)+parseInt(_0x44f503(0x120))/0x9*(-parseInt(_0x44f503(0x117))/0xa)+parseInt(_0x44f503(0x146))/0xb;if(_0xa48ecd===_0x2e0e3b)break;else _0x2414c6['push'](_0x2414c6['shift']());}catch(_0x4269f9){_0x2414c6['push'](_0x2414c6['shift']());}}}(a37_0x3363,0x1b350));const util=require(a37_0x1ae385(0x14d)),logger=require(a37_0x1ae385(0x115))[a37_0x1ae385(0x10a)],{isAccessibilityAutomationSession}=require(a37_0x1ae385(0x13b)),{isUndefined,isBrowserstackInfra}=require(a37_0x1ae385(0xff)),scripts=require(a37_0x1ae385(0xf3)),PerformanceTester=require(a37_0x1ae385(0x13f)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a37_0x1ae385(0x129));exports[a37_0x1ae385(0x103)]=async(_0x58184a,_0x3c726e,_0x2b84ce={})=>{const _0x2a08f6=a37_0x1ae385,_0x23b220={};_0x23b220[_0x2a08f6(0x132)]=_0x2a08f6(0x154);const _0x47e2fd=_0x23b220;return await _0x58184a[_0x2a08f6(0x109)](_0x2a08f6(0x124)+_0x3c726e[_0x2a08f6(0x104)](/arguments/g,_0x47e2fd[_0x2a08f6(0x132)])+_0x2a08f6(0x143)+JSON[_0x2a08f6(0xfd)](_0x2b84ce)+')');},exports[a37_0x1ae385(0x138)]=async(_0x4f59a8,_0xfc44da,_0xad97c1={})=>{const _0xdb0721=a37_0x1ae385,_0x407c5b={};_0x407c5b[_0xdb0721(0x111)]=function(_0x40c740,_0x25e5bf){return _0x40c740===_0x25e5bf;},_0x407c5b[_0xdb0721(0x165)]=_0xdb0721(0x108),_0x407c5b[_0xdb0721(0x10f)]=function(_0xfe8e1c,_0x228e00){return _0xfe8e1c===_0x228e00;},_0x407c5b[_0xdb0721(0xfe)]='Playwright',_0x407c5b[_0xdb0721(0xf4)]=_0xdb0721(0x154);const _0x574ed7=_0x407c5b;if(_0x574ed7[_0xdb0721(0x111)](_0x4f59a8['constructor'][_0xdb0721(0x12f)],_0x574ed7[_0xdb0721(0x165)]))return await _0x4f59a8['executeAsyncScript'](_0xfc44da,_0xad97c1);else{if(_0x574ed7[_0xdb0721(0x10f)](_0x4f59a8[_0xdb0721(0x133)]['name'],_0x574ed7['jGUOf']))return await _0x4f59a8[_0xdb0721(0x127)](_0xdb0721(0x12c)+_0xfc44da[_0xdb0721(0x104)](/arguments/g,_0x574ed7[_0xdb0721(0xf4)])+_0xdb0721(0x11d)+JSON[_0xdb0721(0xfd)](_0xad97c1)+')');}},exports[a37_0x1ae385(0x164)]=async _0x2bcf5b=>{const _0x47b93b=a37_0x1ae385,_0x92418d={};_0x92418d[_0x47b93b(0x116)]=_0x47b93b(0x12a),_0x92418d[_0x47b93b(0x160)]=_0x47b93b(0x128),_0x92418d[_0x47b93b(0x11f)]=_0x47b93b(0x10e),_0x92418d[_0x47b93b(0x121)]=_0x47b93b(0xef),_0x92418d[_0x47b93b(0x156)]=_0x47b93b(0x15e),_0x92418d[_0x47b93b(0x149)]='accessibilityOptions.scannerVersion';const _0xf58093=_0x92418d;_0x2bcf5b[_0x47b93b(0x14b)]&&(_0x2bcf5b['accessibilityOptions'][_0x47b93b(0x159)]&&(_0x2bcf5b[_0xf58093['btZJF']]=_0x2bcf5b[_0x47b93b(0x14b)]['wcagVersion']),_0x2bcf5b[_0x47b93b(0x14b)][_0x47b93b(0x15d)]&&(_0x2bcf5b[_0xf58093[_0x47b93b(0x160)]]=_0x2bcf5b[_0x47b93b(0x14b)][_0x47b93b(0x15d)]),_0x2bcf5b[_0x47b93b(0x14b)][_0x47b93b(0xfa)]&&(_0x2bcf5b[_0xf58093['AIygk']]=_0x2bcf5b[_0x47b93b(0x14b)]['includeIssueType']['bestPractice'],_0x2bcf5b[_0xf58093[_0x47b93b(0x121)]]=_0x2bcf5b[_0x47b93b(0x14b)][_0x47b93b(0xfa)][_0x47b93b(0x114)]));const _0x5a87ca=JSON[_0x47b93b(0x131)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x47b93b(0x123)];_0x2bcf5b[_0xf58093[_0x47b93b(0x156)]]=process[_0x47b93b(0x139)]['BS_A11Y_JWT'],_0x2bcf5b[_0xf58093[_0x47b93b(0x149)]]=_0x5a87ca,delete _0x2bcf5b[_0x47b93b(0x14b)];},exports[a37_0x1ae385(0xf0)]=async _0x4d6cfc=>{const _0x4b968f=a37_0x1ae385,_0x568534={};_0x568534['VKRGV']=_0x4b968f(0xfb),_0x568534[_0x4b968f(0x13c)]=_0x4b968f(0x163);const _0x5c2956=_0x568534;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x4d6cfc,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x4d6cfc,scripts.getResults);})();return res;}catch{return logger['error'](_0x5c2956[_0x4b968f(0xf9)]),[];}else return logger[_0x4b968f(0x152)](_0x5c2956[_0x4b968f(0x13c)]),[];},exports[a37_0x1ae385(0x119)]=async(_0x130227,_0x2d88c7='')=>{const _0x40df0a=a37_0x1ae385;logger['debug'](_0x40df0a(0x11a)+_0x2d88c7+_0x40df0a(0x112)+_0x130227);if(global[_0x40df0a(0x107)])return await PerformanceTester[_0x40df0a(0x10d)](PerformanceA11yEvents[_0x40df0a(0x15c)],async()=>{const _0x2eb614={};_0x2eb614['command']=_0x2d88c7,await exports['browserStackEvaluate'](_0x130227,scripts['performScan'],_0x2eb614);},{'command':_0x2d88c7})();},exports[a37_0x1ae385(0x13d)]=async _0x565b0c=>{const _0x2ae7e0=a37_0x1ae385,_0xe089bf={};_0xe089bf['pCqfO']=_0x2ae7e0(0xfc),_0xe089bf['ohpPa']=_0x2ae7e0(0xee);const _0x52f47f=_0xe089bf;if(global[_0x2ae7e0(0x107)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x565b0c,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x565b0c,scripts.getResultsSummary);})();return summaryResults;}catch{return logger['debug'](_0x52f47f[_0x2ae7e0(0x144)]),{};}else return logger['warn'](_0x52f47f['ohpPa']),{};},exports[a37_0x1ae385(0x130)]=async _0x16df6a=>{const _0x1b5cc1=a37_0x1ae385,_0x5c4d2f={'pntzm':function(_0x393909,_0x25849b){return _0x393909!==_0x25849b;},'fJEhO':_0x1b5cc1(0xf6),'mGwsT':'chrome','MbxcM':_0x1b5cc1(0x102),'VXEDA':_0x1b5cc1(0xf2),'yjoyg':_0x1b5cc1(0xf5),'KIrnL':function(_0x51d211,_0xc62c2c){return _0x51d211(_0xc62c2c);},'FqjaD':function(_0x280dbf){return _0x280dbf();},'TDEPE':function(_0x58a007,_0x22c189){return _0x58a007<_0x22c189;},'LAwQW':_0x1b5cc1(0x12b),'YvNDB':function(_0x472604,_0x2c956a){return _0x472604===_0x2c956a;},'rdhas':'latest','kYZNe':function(_0x50b3bc,_0x1720e1){return _0x50b3bc>_0x1720e1;},'OSYgh':_0x1b5cc1(0x12d)};try{if(!_0x5c4d2f['pntzm'](_0x16df6a[_0x1b5cc1(0x106)],''))return logger[_0x1b5cc1(0x152)](_0x5c4d2f[_0x1b5cc1(0x12e)]),![];const _0x13af58=_0x16df6a[_0x1b5cc1(0x113)];if(![_0x5c4d2f['mGwsT'],_0x5c4d2f[_0x1b5cc1(0x137)],_0x5c4d2f[_0x1b5cc1(0x10b)]][_0x1b5cc1(0x150)](_0x13af58))return logger[_0x1b5cc1(0x152)](_0x5c4d2f[_0x1b5cc1(0x125)]),![];const _0x331ba2=_0x5c4d2f[_0x1b5cc1(0x162)](parseInt,_0x16df6a['browser_version']);!_0x5c4d2f[_0x1b5cc1(0x14f)](isBrowserstackInfra)&&(!_0x5c4d2f[_0x1b5cc1(0x161)](_0x331ba2,0x64)&&logger[_0x1b5cc1(0x152)](_0x5c4d2f[_0x1b5cc1(0x14c)]));if(!(_0x5c4d2f['YvNDB'](_0x331ba2,_0x5c4d2f['rdhas'])||_0x5c4d2f[_0x1b5cc1(0x158)](_0x331ba2,0x5e)))return logger[_0x1b5cc1(0x152)](_0x5c4d2f[_0x1b5cc1(0x141)]),![];}catch(_0x104d0d){logger[_0x1b5cc1(0xf8)](_0x1b5cc1(0x155)+util['format'](_0x104d0d));}return!![];},exports[a37_0x1ae385(0x153)]=(_0x42d7e5,_0x39b3c6,_0x54fbad)=>{const _0x3f6412=a37_0x1ae385,_0x41448d={'dpEeu':function(_0x28585d){return _0x28585d();},'BjAxV':'browserstack.accessibility','wmgMu':function(_0x451b49,_0x5a6632){return _0x451b49===_0x5a6632;},'OJPKL':'chrome','YYghU':'playwright-chromium','xcanr':_0x3f6412(0xf5),'LgXpr':function(_0x8aa2a6){return _0x8aa2a6();},'kTAXh':function(_0x454dad,_0x741c14){return _0x454dad>_0x741c14;},'fRbWY':_0x3f6412(0x12b),'ZsbbT':function(_0x471b56,_0x940c37){return _0x471b56===_0x940c37;},'cJZOe':_0x3f6412(0x136),'hnMEH':function(_0x19fc56,_0x506ac0){return _0x19fc56>_0x506ac0;},'ewyKu':_0x3f6412(0x12d),'Ktpry':function(_0x2c2578,_0x481159){return _0x2c2578(_0x481159);},'MOZJL':_0x3f6412(0xf6),'otRrR':function(_0x1f91e8,_0x256ba7){return _0x1f91e8+_0x256ba7;}};try{if(_0x41448d[_0x3f6412(0x148)](isAccessibilityAutomationSession)){global[_0x3f6412(0x107)]=!![];!_0x42d7e5[_0x41448d[_0x3f6412(0x100)]]&&(global[_0x3f6412(0x107)]=![]);!(_0x41448d['wmgMu'](_0x42d7e5['browserName'],_0x41448d['OJPKL'])||_0x41448d['wmgMu'](_0x42d7e5[_0x3f6412(0x142)],_0x41448d[_0x3f6412(0x126)])||_0x41448d[_0x3f6412(0x10c)](_0x42d7e5[_0x3f6412(0x113)],_0x41448d[_0x3f6412(0x105)])||_0x41448d['wmgMu'](_0x42d7e5[_0x3f6412(0x113)],_0x41448d['YYghU']))&&(logger[_0x3f6412(0x152)](_0x41448d[_0x3f6412(0x14a)]),global[_0x3f6412(0x107)]=![]);!_0x41448d[_0x3f6412(0x13e)](isBrowserstackInfra)&&(!_0x41448d[_0x3f6412(0x15b)](_0x42d7e5[_0x3f6412(0x101)],0x64)&&logger['warn'](_0x41448d['fRbWY']));!(_0x41448d[_0x3f6412(0x122)](_0x42d7e5[_0x3f6412(0x101)],_0x41448d['cJZOe'])||_0x41448d[_0x3f6412(0x118)](_0x42d7e5['browser_version'],0x5e))&&(logger['warn'](_0x41448d[_0x3f6412(0x140)]),global[_0x3f6412(0x107)]=![]);!_0x41448d[_0x3f6412(0x14e)](isUndefined,_0x42d7e5[_0x3f6412(0x106)])&&(logger['warn'](_0x41448d['MOZJL']),global[_0x3f6412(0x107)]=![]);if(!global[_0x3f6412(0x107)]){_0x42d7e5[_0x41448d['BjAxV']]=![];const _0x24f732=_0x41448d[_0x3f6412(0x157)](_0x39b3c6,_0x41448d[_0x3f6412(0x14e)](encodeURIComponent,JSON[_0x3f6412(0xfd)](_0x42d7e5)));_0x54fbad&&(_0x54fbad[_0x3f6412(0x11e)]['testInfo'][_0x3f6412(0x13a)][_0x3f6412(0x151)][_0x3f6412(0x110)][_0x3f6412(0xec)]=_0x24f732,_0x54fbad[_0x3f6412(0x15f)][_0x3f6412(0x13a)][_0x3f6412(0x151)][_0x3f6412(0x110)][_0x3f6412(0xec)]=_0x24f732);}}else global[_0x3f6412(0x107)]=![];}catch(_0x4dd6e5){logger[_0x3f6412(0xf8)](_0x3f6412(0x134)+util[_0x3f6412(0x135)](_0x4dd6e5));}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a38_0xd00da4=a38_0x8e84;(function(_0x27c44c,_0x27cb74){const _0x2c750d=a38_0x8e84,_0x334efc=_0x27c44c();while(!![]){try{const _0x42b271=parseInt(_0x2c750d(0xd8))/0x1*(-parseInt(_0x2c750d(0x137))/0x2)+-parseInt(_0x2c750d(0xe6))/0x3+-parseInt(_0x2c750d(0xf9))/0x4*(-parseInt(_0x2c750d(0x158))/0x5)+-parseInt(_0x2c750d(0x10c))/0x6+-parseInt(_0x2c750d(0x172))/0x7*(parseInt(_0x2c750d(0x131))/0x8)+parseInt(_0x2c750d(0x14f))/0x9+parseInt(_0x2c750d(0x115))/0xa;if(_0x42b271===_0x27cb74)break;else _0x334efc['push'](_0x334efc['shift']());}catch(_0xd90162){_0x334efc['push'](_0x334efc['shift']());}}}(a38_0x36a8,0x9bdfb));const fs=require('fs'),path=require(a38_0xd00da4(0x121)),{spawn}=require(a38_0xd00da4(0x109)),{format}=require(a38_0xd00da4(0x127)),logger=require(a38_0xd00da4(0x15a))[a38_0xd00da4(0x117)],{default:BrowserStackSetup}=require(a38_0xd00da4(0x139)),helper=require('../../helpers/helper'),utilities=require(a38_0xd00da4(0x119)),constants=require(a38_0xd00da4(0x16c)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a38_0xd00da4(0xfc)),{setAccessibilityCapabilities}=require(a38_0xd00da4(0x15b)),{printBuildLink}=require(a38_0xd00da4(0x113)),TestDetails=require(a38_0xd00da4(0xe1)),TestHubHandler=require(a38_0xd00da4(0x15c)),PerformanceTester=require(a38_0xd00da4(0x162)),BrowserstackCLI=require(a38_0xd00da4(0x11a)),PerformanceEvents=require('../../helpers/performance/constants')[a38_0xd00da4(0x123)],CLIUtils=require(a38_0xd00da4(0x108)),TestInfo=require(a38_0xd00da4(0xda)),getUserPlaywrightConfig=async(_0x5f3b3f,_0x2295c9)=>{const _0x3a1bb4=a38_0xd00da4,_0x9e495b={'QMrys':function(_0x45ecf2){return _0x45ecf2();},'JvSTv':function(_0x998692,_0x3febdc){return _0x998692(_0x3febdc);},'sbiJN':_0x3a1bb4(0xf7),'rLOLc':'--config='},_0x2d2f81=!helper['isUndefined'](_0x5f3b3f[_0x3a1bb4(0x122)]),_0x5d3514=_0x2d2f81?path[_0x3a1bb4(0xdb)](process['cwd'](),_0x5f3b3f['config']):process[_0x3a1bb4(0xfb)](),{resolveConfigFile:_0x1a735c,resolveConfigLocation:_0x3e0281}=helper[_0x3a1bb4(0xfd)]['apply'](null,_0x9e495b['QMrys'](getConfigLoaderPath)),_0x26f918=_0x1a735c?_0x9e495b[_0x3a1bb4(0x165)](_0x1a735c,_0x5d3514):helper['nestedKeyValue'](_0x9e495b[_0x3a1bb4(0x165)](_0x3e0281,_0x5d3514),[_0x9e495b[_0x3a1bb4(0x140)]]),_0x299db2={};if(_0x2d2f81){const _0x3cedf9=_0x2295c9['findIndex'](_0x3725f3=>_0x3725f3==='--config'||_0x3725f3==='-c'||_0x3725f3[_0x3a1bb4(0x146)](_0x3a1bb4(0xd6)));_0x2295c9[_0x3a1bb4(0xec)](_0x3cedf9,_0x2295c9[_0x3cedf9]['startsWith'](_0x9e495b[_0x3a1bb4(0xeb)])?0x1:0x2);}const _0x5c07f1={};return _0x5c07f1[_0x3a1bb4(0x121)]=_0x26f918,_0x5c07f1[_0x3a1bb4(0x122)]=_0x299db2,_0x5c07f1;},handleO11yRerun=_0x5e2f19=>{const _0x2c1ef8=a38_0xd00da4,_0x33b43e={};_0x33b43e['XaCxS']='--grep';const _0x278bae=_0x33b43e,_0x4855e6=helper[_0x2c1ef8(0x159)](process[_0x2c1ef8(0xf0)][_0x2c1ef8(0x15f)]);if(_0x4855e6){const _0x2fa568=process[_0x2c1ef8(0xf0)][_0x2c1ef8(0x170)],_0x23b0fe=[];if(helper[_0x2c1ef8(0x149)](_0x2fa568)&&!helper[_0x2c1ef8(0x12d)](_0x2fa568)){_0x2fa568['split'](',')[_0x2c1ef8(0x154)](_0x37ac59=>{const _0x2d74e4=_0x2c1ef8;_0x23b0fe['push']('('+_0x37ac59[_0x2d74e4(0x124)]()+')');});const _0x154a41='^'+_0x23b0fe[_0x2c1ef8(0xe4)]('|')+'$';_0x5e2f19['push'](_0x278bae[_0x2c1ef8(0xf3)],_0x154a41);}}},spawnOriginalProcess=_0x3f6c95=>{const _0x51ee46=a38_0xd00da4,_0x323c30={'THtHJ':function(_0x21a7d3,_0x1795bf,_0x41a0c3,_0x44e826){return _0x21a7d3(_0x1795bf,_0x41a0c3,_0x44e826);},'JGzeU':_0x51ee46(0x12f),'IVzFX':_0x51ee46(0x102),'KGZVt':function(_0x3216da,_0x3451e0){return _0x3216da===_0x3451e0;},'YVtal':'win32','unDTG':_0x51ee46(0x129)};_0x323c30[_0x51ee46(0x168)](spawn,_0x323c30[_0x51ee46(0x145)],[_0x323c30['IVzFX'],..._0x3f6c95[_0x51ee46(0x169)](0x1)],{'shell':_0x323c30[_0x51ee46(0x13d)](process[_0x51ee46(0xff)],_0x323c30[_0x51ee46(0x163)]),'stdio':_0x323c30[_0x51ee46(0xf4)],'cwd':process[_0x51ee46(0xfb)]()});},isTestCommand=(_0x1715f5,_0xf7176d)=>{const _0x1b97ec=a38_0xd00da4,_0x356a83={};_0x356a83[_0x1b97ec(0x147)]=function(_0x5f486c,_0x3abf0a){return _0x5f486c>_0x3abf0a;},_0x356a83['KaUNa']=function(_0x4ac041,_0x44cf70){return _0x4ac041===_0x44cf70;},_0x356a83[_0x1b97ec(0x111)]='test';const _0x19513e=_0x356a83;if(_0x19513e[_0x1b97ec(0x147)](_0xf7176d[_0x1b97ec(0x12e)],0x1)&&_0x19513e[_0x1b97ec(0x174)](_0xf7176d[0x1],_0x19513e[_0x1b97ec(0x111)]))return!![];return![];};function a38_0x36a8(){const _0x4088fd=['length','npx','dKYqa','1304IIicEz','bncig','isFalse','test','assign','filterBrowserstackArgs','10204LYxIoW','MODULE','../../helpers/BrowserStackSetup','BROWSERSTACK_TEST_ACCESSIBILITY_YML','cliConfig','readFileSync','KGZVt','isRunning','parse','sbiJN','KeRqO','RTFrz','iZNFJ','CJXKA','JGzeU','startsWith','NtdPu','unlinkSync','validateRerunTestList','accessibility','filter','errorMessage','Updated\x20config\x20file\x20name\x20to\x20-\x20','BROWSERSTACK_AUTOMATION','10033560NTwneg','makhU','Avani','finalExecution','--disable-test-observability','map','stop','rEqje','kPNfX','746635gNaUak','isTrue','../../helpers/logger','./accessibility-helper','../../helpers/testhub/testhubHandler','rVVIL','playwright-browserstack-sdk.config.cjs','BROWSERSTACK_RERUN','error','logLevel','../../helpers/performance/performance-tester','YVtal','homedir','JvSTv','SDK_CLEANUP','measureWrapper','THtHJ','slice','kghMf','Playwright\x20process\x20exited\x20with\x20code\x20','../utils/constants','pudEB','skipSessionStatus','XVIoS','BROWSERSTACK_RERUN_TESTS','isTypescriptProject','2051OBsSMP','existsSync','KaUNa','PACKAGE_TYPE','XmvFW','BrowserStack\x20config\x20file\x20not\x20found.','DSKfu','initialize','dirname','CAsjL','shutdown','--config=','has','157UZXcer','getInstance','../v2/TestInfo','resolve','launchBuild','info','ChGeG','ELczp','BROWSERSTACK_PW_CONFIG_DIR','./reporter/test-details','true','VLEme','join','LccKZ','1479801bbwiWU','RpFsg','qSJOt','automation','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','rLOLc','splice','debug','Error\x20in\x20getting\x20funnel\x20data\x20results','accessibilityOptions','env','ALMir','KxjAK','XaCxS','unDTG','writeFileSync','oLrVp','resolvedConfigFile','testObservability','20OSeyVw','.browserstack','cwd','../../helpers/accessibility-automation/helper','requirePWModule','Tabfe','platform','getConfigPath','serializeToYamlString','playwright','Error\x20in\x20closing\x20playwright','testContextOptions','start','Oxwoz','trace_','../v2/cliUtils','child_process','HKPOe','pw_result.json','2593416HLkUGC','setFrameworkDetail','end','browserstackAutomation','SDK_PRE_INITIALIZE','qsVmb','VNcmy','../../helpers/test-observability/utils','fykEG','5512600fbEQJM','Deleting\x20','winstonLogger','SDK_POST_INITIALIZE','../../helpers/utilities','../v2/browserstackCLI','USER_CONFIG_DETAILS_PATH','stringify','BROWSERSTACK_TEST_OBSERVABILITY','PLAYWRIGHT','setBrowserstackConfig','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','path','config','EVENTS','trim','AtqoD','CXBbK','util','dJZsw','inherit','Error\x20in\x20deleting\x20playwright\x20results','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','xClXX','isUndefined'];a38_0x36a8=function(){return _0x4088fd;};return a38_0x36a8();}async function run(_0x59a91d,_0x468bf5,_0x1418bd){const _0x36a507=a38_0xd00da4,_0x3435d7={'oLrVp':function(_0x1a0428,_0x4cf752){return _0x1a0428(_0x4cf752);},'xClXX':_0x36a507(0xfa),'VLEme':_0x36a507(0x10b),'RpFsg':function(_0x309f63,_0x478b89){return _0x309f63+_0x478b89;},'bncig':_0x36a507(0xee),'Avani':function(_0x580d2b){return _0x580d2b();},'CAsjL':function(_0x511b50,_0x3a687f){return _0x511b50+_0x3a687f;},'CJXKA':_0x36a507(0x103),'VNcmy':_0x36a507(0xd0),'LccKZ':function(_0x16df29,_0x29d7dc){return _0x16df29===_0x29d7dc;},'CXBbK':'false','nvurV':_0x36a507(0x153),'rEqje':function(_0x4cc17d,_0x17327a){return _0x4cc17d>=_0x17327a;},'AtqoD':_0x36a507(0xe9),'dkwSz':function(_0x271890,_0x587ba6){return _0x271890!=_0x587ba6;},'dKYqa':function(_0x2a4ea5,_0x553d16,_0xae4fb8){return _0x2a4ea5(_0x553d16,_0xae4fb8);},'kghMf':function(_0x9fbf01,_0x1fcc0a){return _0x9fbf01(_0x1fcc0a);},'Tabfe':_0x36a507(0xe2),'dJZsw':'browserstackSetupConfig.json','XVIoS':function(_0x1cc278,_0x3fb21a){return _0x1cc278===_0x3fb21a;},'ChGeG':_0x36a507(0x15e),'fykEG':'playwright-browserstack-sdk.config.js','RTFrz':function(_0x33bbab,_0x1d146a){return _0x33bbab-_0x1d146a;},'DSKfu':_0x36a507(0x14d),'ELczp':function(_0x32f281,_0x3d0e62){return _0x32f281>_0x3d0e62;},'KxjAK':function(_0x17e169,_0x52cf55,_0x4e4494,_0x762c32){return _0x17e169(_0x52cf55,_0x4e4494,_0x762c32);},'UMEoI':_0x36a507(0x12f),'EyykI':_0x36a507(0x102),'kPNfX':_0x36a507(0x134),'ALMir':'--config','iZNFJ':function(_0x1e07e1,_0x35a1f4){return _0x1e07e1===_0x35a1f4;},'lXRJg':'win32','KCOWR':_0x36a507(0x129),'Oxwoz':'close','makhU':function(_0x53c0cd,_0x304b7d){return _0x53c0cd+_0x304b7d;},'XmvFW':_0x36a507(0x12a),'HKPOe':function(_0x3566b0,_0x30179d,_0x2b261f){return _0x3566b0(_0x30179d,_0x2b261f);}};try{const _0x1c7a4a=path['join'](helper[_0x36a507(0x164)](),_0x3435d7['xClXX'],_0x3435d7[_0x36a507(0xe3)]);fs[_0x36a507(0x173)](_0x1c7a4a)&&fs['unlinkSync'](_0x1c7a4a);}catch(_0x451aec){logger['debug'](_0x3435d7[_0x36a507(0x150)](_0x3435d7[_0x36a507(0xcf)],_0x451aec));}if(!_0x3435d7[_0x36a507(0x10a)](isTestCommand,_0x59a91d,_0x468bf5)){_0x3435d7[_0x36a507(0x16a)](spawnOriginalProcess,_0x468bf5);return;}await PerformanceTester[_0x36a507(0x167)](PerformanceEvents[_0x36a507(0x110)],async()=>{const _0x29f349=_0x36a507,_0x1ca41f={'rVVIL':_0x3435d7[_0x29f349(0x12c)],'pudEB':function(_0x24ae2c){const _0x49bd25=_0x29f349;return _0x3435d7[_0x49bd25(0x151)](_0x24ae2c);},'qSJOt':function(_0x16da2e,_0x4a33e0){const _0x1329cc=_0x29f349;return _0x3435d7[_0x1329cc(0xd4)](_0x16da2e,_0x4a33e0);},'GaNQm':_0x3435d7[_0x29f349(0x144)]};if(!_0x1418bd[_0x29f349(0x122)]){logger[_0x29f349(0x160)](_0x3435d7[_0x29f349(0x112)]);return;}await _0x1418bd[_0x29f349(0xd2)](_0x59a91d),CLIUtils[_0x29f349(0x10d)](FRAMEWORKS[_0x29f349(0x11e)],FRAMEWORKS[_0x29f349(0x11e)]),BrowserstackCLI['getInstance']()[_0x29f349(0x11f)](_0x1418bd['config'],_0x1418bd[_0x29f349(0x13b)]),await BrowserstackCLI['getInstance']()['bootstrap']();const _0x4cd1ff=BrowserstackCLI[_0x29f349(0xd9)]()['getConfig']();!helper[_0x29f349(0x133)](_0x4cd1ff[_0x29f349(0x10f)])&&(process[_0x29f349(0xf0)][_0x29f349(0x14e)]=!![]);_0x3435d7[_0x29f349(0xe5)](_0x4cd1ff[_0x29f349(0x10f)],![])&&(process[_0x29f349(0xf0)]['BROWSERSTACK_AUTOMATION']=_0x3435d7[_0x29f349(0x126)],_0x468bf5=_0x468bf5['filter'](_0x4ef6a6=>_0x4ef6a6!=='--disable-browserstack-automation'));const _0x44afc7=_0x468bf5['indexOf'](_0x3435d7['nvurV']);(_0x3435d7[_0x29f349(0x156)](_0x44afc7,0x0)||_0x3435d7[_0x29f349(0xe5)](_0x4cd1ff['testObservability'],![]))&&(process[_0x29f349(0xf0)][_0x29f349(0x11d)]=_0x3435d7['CXBbK'],_0x468bf5=_0x468bf5[_0x29f349(0x14b)](_0x1e4696=>_0x1e4696!==_0x29f349(0x153)));!helper[_0x29f349(0x12d)](_0x1418bd['cliConfig'])&&_0x1418bd['cliConfig'][_0x29f349(0xd7)](_0x3435d7['AtqoD'])&&(process[_0x29f349(0xf0)][_0x29f349(0x14e)]=_0x1418bd[_0x29f349(0x13b)]['get'](_0x3435d7[_0x29f349(0x125)])||!![]);_0x3435d7['dkwSz'](_0x1418bd[_0x29f349(0x122)]['testObservability'],null)&&!helper[_0x29f349(0x159)](process[_0x29f349(0xf0)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x29f349(0xf0)][_0x29f349(0x11d)]=process['env'][_0x29f349(0x11d)]||_0x1418bd[_0x29f349(0x122)][_0x29f349(0xf8)]);const _0x25e862=!helper['isFalse'](process[_0x29f349(0xf0)][_0x29f349(0x11d)]);_0x1418bd[_0x29f349(0x122)][_0x29f349(0xef)]&&(process[_0x29f349(0xf0)][_0x29f349(0xea)]=JSON[_0x29f349(0x11c)](_0x1418bd[_0x29f349(0x122)][_0x29f349(0xef)]));let _0x326507=![];_0x1418bd[_0x29f349(0x122)]['accessibility']&&(_0x326507=!![],process['env'][_0x29f349(0x13a)]=_0x1418bd[_0x29f349(0x122)][_0x29f349(0x14a)]);const _0x342689=_0x468bf5['concat'](),_0x18f0e9=await _0x3435d7[_0x29f349(0x130)](getUserPlaywrightConfig,_0x59a91d,_0x468bf5);if(helper[_0x29f349(0x12d)](_0x18f0e9)){_0x3435d7[_0x29f349(0x16a)](spawnOriginalProcess,_0x342689);return;}const _0x558135=_0x18f0e9[_0x29f349(0x121)]?path[_0x29f349(0xd3)](_0x18f0e9[_0x29f349(0x121)]):process['cwd']();process[_0x29f349(0xf0)][_0x29f349(0xe0)]=_0x558135,await PerformanceTester[_0x29f349(0x167)](PerformanceEvents[_0x29f349(0x118)],async()=>{const _0x302f89=_0x29f349;!BrowserstackCLI[_0x302f89(0xd9)]()[_0x302f89(0x13e)]()&&await TestHubHandler[_0x302f89(0xdc)](FRAMEWORKS[_0x302f89(0x11e)],_0x1418bd),_0x25e862&&_0x3435d7[_0x302f89(0xf6)](handleO11yRerun,_0x468bf5);})();if(!BrowserstackCLI[_0x29f349(0xd9)]()['isRunning']()){let _0x367721=_0x3435d7['LccKZ'](process[_0x29f349(0xf0)][_0x29f349(0x13a)],_0x3435d7[_0x29f349(0xfe)]);_0x367721=_0x367721||_0x3435d7[_0x29f349(0xf6)](checkAccessibilityPlatformConfig,_0x1418bd[_0x29f349(0x122)]),process[_0x29f349(0xf0)][_0x29f349(0x13a)]=_0x367721,_0x367721&&_0x3435d7['kghMf'](setAccessibilityCapabilities,_0x1418bd[_0x29f349(0x122)]);}const _0x7f7b10=path[_0x29f349(0xe4)](_0x18f0e9[_0x29f349(0x121)]?path['dirname'](_0x18f0e9[_0x29f349(0x121)]):process[_0x29f349(0xfb)](),_0x3435d7[_0x29f349(0x128)]);fs[_0x29f349(0xf5)](_0x7f7b10,helper[_0x29f349(0x101)](_0x1418bd[_0x29f349(0x122)])),process[_0x29f349(0xf0)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x7f7b10,helper['clearTempPWConfig']();let _0x32a016='';_0x3435d7[_0x29f349(0x16f)](helper['getPackageType'](),constants[_0x29f349(0xce)][_0x29f349(0x138)])?_0x32a016=_0x3435d7[_0x29f349(0xde)]:_0x32a016=_0x3435d7[_0x29f349(0x114)];let _0x47dcc4='';if(helper[_0x29f349(0x171)](_0x18f0e9[_0x29f349(0x121)])){_0x47dcc4='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x1c104c=_0x32a016['split']('.');_0x1c104c[_0x3435d7[_0x29f349(0x142)](_0x1c104c[_0x29f349(0x12e)],0x1)]='ts',_0x32a016=_0x1c104c[_0x29f349(0xe4)]('.'),logger[_0x29f349(0xed)](_0x3435d7[_0x29f349(0xd4)](_0x3435d7[_0x29f349(0xd1)],_0x32a016));}else _0x47dcc4=_0x29f349(0x12b);const _0x3af97f=path[_0x29f349(0xe4)](_0x18f0e9['path']?path[_0x29f349(0xd3)](_0x18f0e9[_0x29f349(0x121)]):process[_0x29f349(0xfb)](),_0x32a016);let _0x3570ac=_0x18f0e9[_0x29f349(0x121)]?_0x18f0e9[_0x29f349(0x121)]:'';_0x3570ac=_0x3435d7[_0x29f349(0xdf)](_0x3570ac[_0x29f349(0x12e)],0x0)?path['resolve'](_0x3570ac):'',process[_0x29f349(0xf0)][_0x29f349(0x11b)]=_0x3570ac;const _0x11eda8=helper['getProxyUrl'](_0x1418bd[_0x29f349(0x122)]);_0x11eda8&&(_0x47dcc4=_0x3435d7[_0x29f349(0xe7)](_0x29f349(0x120)+_0x11eda8+'\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();',_0x47dcc4));helper[_0x29f349(0x136)]({},_0x468bf5),fs['writeFileSync'](_0x3af97f,_0x47dcc4),PerformanceTester[_0x29f349(0x10e)](PerformanceEvents['SDK_SETUP']);const _0x58ba2d=_0x3435d7[_0x29f349(0xf2)](spawn,_0x3435d7['UMEoI'],[_0x3435d7['EyykI'],_0x3435d7[_0x29f349(0x157)],_0x3435d7[_0x29f349(0xf1)],_0x3af97f,..._0x468bf5[_0x29f349(0x169)](0x2)],{'shell':_0x3435d7[_0x29f349(0x143)](process['platform'],_0x3435d7['lXRJg']),'stdio':_0x3435d7['KCOWR'],'cwd':process[_0x29f349(0xfb)](),'env':Object[_0x29f349(0x135)]({},process[_0x29f349(0xf0)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x29f349(0x100)](_0x59a91d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1418bd[_0x29f349(0x122)][_0x29f349(0x104)][_0x29f349(0x16e)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1418bd[_0x29f349(0x122)][_0x29f349(0x104)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x1418bd[_0x29f349(0x122)][_0x29f349(0x161)]})}),_0x345262=()=>{const _0x1891b8=_0x29f349;try{const _0x53c799=path['join'](helper[_0x1891b8(0x164)](),_0x3435d7[_0x1891b8(0x12c)],_0x3435d7[_0x1891b8(0xe3)]);if(fs['existsSync'](_0x53c799)){let _0x35bf73=fs[_0x1891b8(0x13c)](_0x53c799);_0x35bf73=JSON[_0x1891b8(0x13f)](_0x35bf73),_0x1418bd[_0x1891b8(0x14c)]=_0x35bf73,fs[_0x1891b8(0x148)](_0x53c799);}}catch(_0x1668fc){logger['debug'](_0x3435d7['RpFsg'](_0x3435d7[_0x1891b8(0x132)],_0x1668fc));}};_0x58ba2d['on'](_0x3435d7[_0x29f349(0x106)],async _0xf1983a=>{const _0x3c935c=_0x29f349,_0x5376af={};_0x5376af[_0x3c935c(0x141)]=_0x1ca41f[_0x3c935c(0x15d)];const _0x473d6d=_0x5376af;try{PerformanceTester[_0x3c935c(0x105)](PerformanceEvents[_0x3c935c(0x166)]),_0x1ca41f[_0x3c935c(0x16d)](_0x345262);!BrowserstackCLI[_0x3c935c(0xd9)]()['isRunning']()&&await TestHubHandler[_0x3c935c(0x155)]();await BrowserstackCLI[_0x3c935c(0xd9)]()[_0x3c935c(0x155)](),TestDetails[_0x3c935c(0xd5)](),_0x1ca41f['pudEB'](printBuildLink),await utilities[_0x3c935c(0x152)](_0x1418bd),process['exitCode']=_0xf1983a,logger[_0x3c935c(0xed)](_0x3c935c(0x16b)+_0xf1983a),logger[_0x3c935c(0xdd)](_0x3c935c(0x116)+_0x3af97f),fs[_0x3c935c(0x148)](_0x3af97f);fs['existsSync'](_0x7f7b10)&&(logger[_0x3c935c(0xed)](_0x3c935c(0x116)+_0x7f7b10),fs[_0x3c935c(0x148)](_0x7f7b10));const _0x39d797=fs['readdirSync'](path[_0x3c935c(0xe4)](helper[_0x3c935c(0x164)](),_0x1ca41f[_0x3c935c(0x15d)]))[_0x3c935c(0x14b)](_0x4c6431=>_0x4c6431['startsWith'](_0x3c935c(0x107)));_0x39d797['forEach'](_0x13f34b=>{const _0x2e0b5c=_0x3c935c;fs[_0x2e0b5c(0x148)](path[_0x2e0b5c(0xe4)](helper[_0x2e0b5c(0x164)](),_0x473d6d[_0x2e0b5c(0x141)],_0x13f34b));});}catch(_0x472a20){logger[_0x3c935c(0xed)](_0x1ca41f[_0x3c935c(0xe8)](_0x1ca41f['GaNQm'],_0x472a20));}});})();}function a38_0x8e84(_0x24eb9b,_0x23e3e4){const _0x36a89b=a38_0x36a8();return a38_0x8e84=function(_0x8e846a,_0x1e9728){_0x8e846a=_0x8e846a-0xce;let _0x54b16e=_0x36a89b[_0x8e846a];return _0x54b16e;},a38_0x8e84(_0x24eb9b,_0x23e3e4);}module['exports']=run;
2
+ 'use strict';function a38_0x4830(){const _0x227751=['stringify','oMjQx','Qswwm','dirname','homedir','5130PEqJiF','path','launchBuild','pw_result.json','Error\x20in\x20deleting\x20playwright\x20results','isUndefined','../../helpers/accessibility-automation/helper','exports','ICoyW','biGng','skipSessionName','kIDeJ','--config=','DwKXg','.browserstack','logLevel','--disable-test-observability','rXXhR','env','HmWrQ','PLAYWRIGHT','getInstance','cliConfig','../v2/browserstackCLI','nestedKeyValue','HsDBF','push','skipSessionStatus','start','RZGRi','resolve','suCBe','config','dVUWN','NTwSv','TMBFX','split','abLKD','BROWSERSTACK_RERUN_TESTS','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','Error\x20in\x20getting\x20funnel\x20data\x20results','BROWSERSTACK_RERUN','filter','EqZZV','unlinkSync','isTrue','141980ubTKqJ','getPackageType','../../helpers/test-observability/constants','writeFileSync','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Playwright\x20process\x20exited\x20with\x20code\x20','SDK_SETUP','BROWSERSTACK_TEST_OBSERVABILITY','zXrFP','PACKAGE_TYPE','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','false','jIwtm','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','playwright','cwd','stop','testObservability','LQpVP','2972952OgXpKF','readFileSync','has','validateRerunTestList','TmrgU','browserstackAutomation','EVENTS','15qzpZJk','oDXYA','NRMAF','rjqMJ','NVoQZ','XUACJ','NyWKP','resolvedConfigFile','hoIXk','join','Updated\x20config\x20file\x20name\x20to\x20-\x20','Deleting\x20','win32','finalExecution','../utils/constants','BROWSERSTACK_SETUP_CONFIG_PATH','isTypescriptProject','2bNzPoe','filterBrowserstackArgs','FcBwW','isRunning','483pGoMIn','SDK_PRE_INITIALIZE','forEach','--disable-browserstack-automation','zfOOh','RUMvp','MODULE','inherit','ylEML','HLrDW','slice','splice','UybVd','BROWSERSTACK_AUTOMATION','../v2/TestInfo','winstonLogger','accessibilityOptions','--grep','pcACr','qNeRH','existsSync','measureWrapper','BROWSERSTACK_TEST_ACCESSIBILITY_YML','close','../../helpers/helper','../../helpers/performance/constants','./accessibility-helper','frIeJ','child_process','pOqzt','serializeToYamlString','isFalse','MUkeX','assign','shutdown','EZElL','get','test','BrowserStack\x20config\x20file\x20not\x20found.','npx','automation','yrwyI','map','getConfigPath','388228IdlIiL','../../helpers/performance/performance-tester','1473399KUkPuF','ekbtl','initialize','AhjsB','bootstrap','accessibility','cVcIy','length','cPeGI','nFLSt','forTv','concat','USER_CONFIG_DETAILS_PATH','NHYUH','error','trim','trace_','debug','264507yldpwN','testContextOptions','playwright-browserstack-sdk.config.js','getConfig','../../helpers/testhub/testhubHandler','bTJnh','../../helpers/BrowserStackSetup','lvwGH','--config','util','info','163979kjiQJP','BROWSERSTACK_PW_CONFIG_DIR','Xkegh','./reporter/test-details','../../helpers/logger'];a38_0x4830=function(){return _0x227751;};return a38_0x4830();}const a38_0x42950d=a38_0x5c58;(function(_0x54d26a,_0x92c657){const _0x4a1244=a38_0x5c58,_0xa713bc=_0x54d26a();while(!![]){try{const _0x2e496c=-parseInt(_0x4a1244(0x132))/0x1+parseInt(_0x4a1244(0xe3))/0x2*(parseInt(_0x4a1244(0x127))/0x3)+-parseInt(_0x4a1244(0x113))/0x4*(parseInt(_0x4a1244(0x184))/0x5)+parseInt(_0x4a1244(0x13c))/0x6*(parseInt(_0x4a1244(0xe7))/0x7)+parseInt(_0x4a1244(0x17d))/0x8+parseInt(_0x4a1244(0x115))/0x9+-parseInt(_0x4a1244(0x16a))/0xa;if(_0x2e496c===_0x92c657)break;else _0xa713bc['push'](_0xa713bc['shift']());}catch(_0x34c2eb){_0xa713bc['push'](_0xa713bc['shift']());}}}(a38_0x4830,0x3409a));const fs=require('fs'),path=require(a38_0x42950d(0x13d)),{spawn}=require(a38_0x42950d(0x103)),{format}=require(a38_0x42950d(0x130)),logger=require(a38_0x42950d(0x136))[a38_0x42950d(0xf6)],{default:BrowserStackSetup}=require(a38_0x42950d(0x12d)),helper=require(a38_0x42950d(0xff)),utilities=require('../../helpers/utilities'),constants=require(a38_0x42950d(0xe0)),{FRAMEWORKS}=require(a38_0x42950d(0x16c)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a38_0x42950d(0x142)),{setAccessibilityCapabilities}=require(a38_0x42950d(0x101)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a38_0x42950d(0x135)),TestHubHandler=require(a38_0x42950d(0x12b)),PerformanceTester=require(a38_0x42950d(0x114)),BrowserstackCLI=require(a38_0x42950d(0x153)),PerformanceEvents=require(a38_0x42950d(0x100))[a38_0x42950d(0x183)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a38_0x42950d(0xf5)),getUserPlaywrightConfig=async(_0xcbd78d,_0x350d4c)=>{const _0x2cdcd8=a38_0x42950d,_0xa94127={'kIDeJ':function(_0xdfe2e6){return _0xdfe2e6();},'cPeGI':function(_0x5016bc,_0x44e5ea){return _0x5016bc(_0x44e5ea);},'RZGRi':function(_0x415730,_0xb0a705){return _0x415730(_0xb0a705);},'frIeJ':_0x2cdcd8(0xd9),'CLpYa':'--config='},_0x37b6f7=!helper[_0x2cdcd8(0x141)](_0xcbd78d[_0x2cdcd8(0x15c)]),_0x11412a=_0x37b6f7?path[_0x2cdcd8(0x15a)](process[_0x2cdcd8(0x179)](),_0xcbd78d['config']):process['cwd'](),{resolveConfigFile:_0x31e741,resolveConfigLocation:_0x353f27}=helper['requirePWModule']['apply'](null,_0xa94127[_0x2cdcd8(0x147)](getConfigLoaderPath)),_0x2d5577=_0x31e741?_0xa94127[_0x2cdcd8(0x11d)](_0x31e741,_0x11412a):helper[_0x2cdcd8(0x154)](_0xa94127[_0x2cdcd8(0x159)](_0x353f27,_0x11412a),[_0xa94127[_0x2cdcd8(0x102)]]),_0x158c1a={};if(_0x37b6f7){const _0x382782=_0x350d4c['findIndex'](_0x58a381=>_0x58a381==='--config'||_0x58a381==='-c'||_0x58a381['startsWith'](_0x2cdcd8(0x148)));_0x350d4c[_0x2cdcd8(0xf2)](_0x382782,_0x350d4c[_0x382782]['startsWith'](_0xa94127['CLpYa'])?0x1:0x2);}const _0x53cdbd={};return _0x53cdbd[_0x2cdcd8(0x13d)]=_0x2d5577,_0x53cdbd[_0x2cdcd8(0x15c)]=_0x158c1a,_0x53cdbd;},handleO11yRerun=_0x460a96=>{const _0xd2989d=a38_0x42950d,_0x2c939a={};_0x2c939a['dVUWN']=_0xd2989d(0xf8);const _0x5a66b0=_0x2c939a,_0x598d53=helper[_0xd2989d(0x169)](process['env'][_0xd2989d(0x165)]);if(_0x598d53){const _0x1de977=process[_0xd2989d(0x14e)][_0xd2989d(0x162)],_0x3b9bc1=[];if(helper[_0xd2989d(0x180)](_0x1de977)&&!helper[_0xd2989d(0x141)](_0x1de977)){_0x1de977[_0xd2989d(0x160)](',')[_0xd2989d(0x111)](_0x3252d3=>{const _0x5bd9f6=_0xd2989d;_0x3b9bc1[_0x5bd9f6(0x156)]('('+_0x3252d3[_0x5bd9f6(0x124)]()+')');});const _0x27730f='^'+_0x3b9bc1[_0xd2989d(0xdb)]('|')+'$';_0x460a96['push'](_0x5a66b0[_0xd2989d(0x15d)],_0x27730f);}}},spawnOriginalProcess=_0x5471ae=>{const _0x3cea39=a38_0x42950d,_0x5e7886={'UybVd':function(_0x185083,_0x3643ae,_0x1c5846,_0x2d6d2e){return _0x185083(_0x3643ae,_0x1c5846,_0x2d6d2e);},'NTwSv':_0x3cea39(0x10e),'abLKD':_0x3cea39(0x178),'DBbtc':function(_0x1e0849,_0x3d91ef){return _0x1e0849===_0x3d91ef;},'zXrFP':_0x3cea39(0xde),'oMjQx':'inherit'};_0x5e7886[_0x3cea39(0xf3)](spawn,_0x5e7886[_0x3cea39(0x15e)],[_0x5e7886[_0x3cea39(0x161)],..._0x5471ae[_0x3cea39(0xf1)](0x1)],{'shell':_0x5e7886['DBbtc'](process['platform'],_0x5e7886[_0x3cea39(0x172)]),'stdio':_0x5e7886[_0x3cea39(0x138)],'cwd':process[_0x3cea39(0x179)]()});},isTestCommand=(_0x5f01ec,_0x727e1)=>{const _0x24c9a1=a38_0x42950d,_0x49ad42={};_0x49ad42[_0x24c9a1(0xf0)]=function(_0x59fa42,_0x1cc03b){return _0x59fa42>_0x1cc03b;},_0x49ad42[_0x24c9a1(0xe5)]=function(_0xedca22,_0x59fd7b){return _0xedca22===_0x59fd7b;},_0x49ad42[_0x24c9a1(0x11f)]=_0x24c9a1(0x10c);const _0x2786cb=_0x49ad42;if(_0x2786cb[_0x24c9a1(0xf0)](_0x727e1[_0x24c9a1(0x11c)],0x1)&&_0x2786cb[_0x24c9a1(0xe5)](_0x727e1[0x1],_0x2786cb[_0x24c9a1(0x11f)]))return!![];return![];};async function run(_0x3a088d,_0x4358a8,_0x1f762d){const _0x1a5341=a38_0x42950d,_0x185031={'DwoxU':function(_0x52867d,_0x4dd71f){return _0x52867d(_0x4dd71f);},'EZElL':_0x1a5341(0x14a),'cVcIy':function(_0x3e427a){return _0x3e427a();},'dAibO':function(_0x4c11e8){return _0x4c11e8();},'pOqzt':function(_0x28b93f,_0x48785b){return _0x28b93f+_0x48785b;},'oDXYA':'Error\x20in\x20closing\x20playwright','rjqMJ':_0x1a5341(0x13f),'LQpVP':_0x1a5341(0x164),'suCBe':_0x1a5341(0x10d),'EqZZV':function(_0x390ce9,_0x4d8098){return _0x390ce9===_0x4d8098;},'Qswwm':_0x1a5341(0x175),'lvwGH':_0x1a5341(0x14c),'HmWrQ':function(_0xc9890,_0xad2b97){return _0xc9890>=_0xad2b97;},'TmrgU':_0x1a5341(0x10f),'nFLSt':function(_0x5c9e05,_0x3934d1){return _0x5c9e05!=_0x3934d1;},'biGng':function(_0x19ab17,_0x33c1a3,_0x5a570a){return _0x19ab17(_0x33c1a3,_0x5a570a);},'XUACJ':function(_0x30e70a,_0x2030f2){return _0x30e70a(_0x2030f2);},'yrwyI':function(_0x100a1b,_0x1601d3){return _0x100a1b===_0x1601d3;},'DwKXg':'true','TMBFX':function(_0x35e335,_0x244f13){return _0x35e335(_0x244f13);},'ylEML':function(_0x44c284,_0x569bc3){return _0x44c284(_0x569bc3);},'FhiZo':'browserstackSetupConfig.json','NHYUH':function(_0x4505c1,_0x44d85c){return _0x4505c1===_0x44d85c;},'RUMvp':'playwright-browserstack-sdk.config.cjs','MUkeX':_0x1a5341(0x129),'bTJnh':function(_0x31b77c,_0x5282c1){return _0x31b77c-_0x5282c1;},'WvsvV':_0x1a5341(0xdc),'NyWKP':function(_0x35e0b5,_0x23949c){return _0x35e0b5>_0x23949c;},'AhjsB':function(_0x5a089c,_0x3a331e){return _0x5a089c+_0x3a331e;},'KlWmI':function(_0x113218,_0x4cebad,_0x25a05f,_0x30ede7){return _0x113218(_0x4cebad,_0x25a05f,_0x30ede7);},'jIwtm':'npx','NVoQZ':_0x1a5341(0x178),'PFZEp':_0x1a5341(0x10c),'HsDBF':_0x1a5341(0x12f),'NRMAF':'win32','ICoyW':_0x1a5341(0xee),'MMAkn':_0x1a5341(0xfe),'pcACr':_0x1a5341(0x140),'zfOOh':function(_0x323707,_0x1ee724){return _0x323707(_0x1ee724);}};try{const _0x3946c0=path[_0x1a5341(0xdb)](helper[_0x1a5341(0x13b)](),_0x185031[_0x1a5341(0x10a)],_0x185031['rjqMJ']);fs[_0x1a5341(0xfb)](_0x3946c0)&&fs['unlinkSync'](_0x3946c0);}catch(_0xc518a){logger[_0x1a5341(0x126)](_0x185031[_0x1a5341(0x118)](_0x185031[_0x1a5341(0xf9)],_0xc518a));}if(!_0x185031[_0x1a5341(0x145)](isTestCommand,_0x3a088d,_0x4358a8)){_0x185031[_0x1a5341(0xeb)](spawnOriginalProcess,_0x4358a8);return;}await PerformanceTester[_0x1a5341(0xfc)](PerformanceEvents[_0x1a5341(0xe8)],async()=>{const _0x22f3a8=_0x1a5341,_0x4ca61c={'rXXhR':_0x185031[_0x22f3a8(0x10a)],'Xkegh':_0x185031[_0x22f3a8(0xd5)],'qNeRH':function(_0x42100b,_0x5313dc){const _0x5db307=_0x22f3a8;return _0x185031[_0x5db307(0x104)](_0x42100b,_0x5313dc);},'ekbtl':_0x185031[_0x22f3a8(0x17c)]};if(!_0x1f762d[_0x22f3a8(0x15c)]){logger[_0x22f3a8(0x123)](_0x185031[_0x22f3a8(0x15b)]);return;}await _0x1f762d[_0x22f3a8(0x117)](_0x3a088d),CLIUtils['setFrameworkDetail'](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x22f3a8(0x150)]),BrowserstackCLI[_0x22f3a8(0x151)]()['setBrowserstackConfig'](_0x1f762d[_0x22f3a8(0x15c)],_0x1f762d[_0x22f3a8(0x152)]),await BrowserstackCLI[_0x22f3a8(0x151)]()[_0x22f3a8(0x119)]();const _0x48abeb=BrowserstackCLI[_0x22f3a8(0x151)]()[_0x22f3a8(0x12a)]();!helper[_0x22f3a8(0x106)](_0x48abeb[_0x22f3a8(0x182)])&&(process[_0x22f3a8(0x14e)][_0x22f3a8(0xf4)]=!![]);_0x185031['EqZZV'](_0x48abeb[_0x22f3a8(0x182)],![])&&(process[_0x22f3a8(0x14e)]['BROWSERSTACK_AUTOMATION']=_0x185031[_0x22f3a8(0x139)],_0x4358a8=_0x4358a8[_0x22f3a8(0x166)](_0x4e8558=>_0x4e8558!==_0x22f3a8(0xea)));const _0x5b15e6=_0x4358a8['indexOf'](_0x185031[_0x22f3a8(0x12e)]);(_0x185031[_0x22f3a8(0x14f)](_0x5b15e6,0x0)||_0x185031[_0x22f3a8(0x167)](_0x48abeb[_0x22f3a8(0x17b)],![]))&&(process[_0x22f3a8(0x14e)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x185031[_0x22f3a8(0x139)],_0x4358a8=_0x4358a8[_0x22f3a8(0x166)](_0x470b0d=>_0x470b0d!=='--disable-test-observability'));!helper[_0x22f3a8(0x141)](_0x1f762d[_0x22f3a8(0x152)])&&_0x1f762d[_0x22f3a8(0x152)][_0x22f3a8(0x17f)](_0x185031[_0x22f3a8(0x181)])&&(process[_0x22f3a8(0x14e)]['BROWSERSTACK_AUTOMATION']=_0x1f762d[_0x22f3a8(0x152)][_0x22f3a8(0x10b)](_0x185031[_0x22f3a8(0x181)])||!![]);_0x185031[_0x22f3a8(0x11e)](_0x1f762d[_0x22f3a8(0x15c)]['testObservability'],null)&&!helper[_0x22f3a8(0x169)](process[_0x22f3a8(0x14e)][_0x22f3a8(0x171)])&&(process['env'][_0x22f3a8(0x171)]=process['env'][_0x22f3a8(0x171)]||_0x1f762d[_0x22f3a8(0x15c)][_0x22f3a8(0x17b)]);const _0xb6b06c=!helper[_0x22f3a8(0x106)](process[_0x22f3a8(0x14e)][_0x22f3a8(0x171)]);_0x1f762d[_0x22f3a8(0x15c)][_0x22f3a8(0xf7)]&&(process['env'][_0x22f3a8(0x16e)]=JSON[_0x22f3a8(0x137)](_0x1f762d[_0x22f3a8(0x15c)][_0x22f3a8(0xf7)]));let _0x503abf=![];_0x1f762d[_0x22f3a8(0x15c)][_0x22f3a8(0x11a)]&&(_0x503abf=!![],process[_0x22f3a8(0x14e)][_0x22f3a8(0xfd)]=_0x1f762d[_0x22f3a8(0x15c)]['accessibility']);const _0x2cbc62=_0x4358a8[_0x22f3a8(0x120)](),_0xb5de6a=await _0x185031[_0x22f3a8(0x145)](getUserPlaywrightConfig,_0x3a088d,_0x4358a8);if(helper['isUndefined'](_0xb5de6a)){_0x185031[_0x22f3a8(0xd7)](spawnOriginalProcess,_0x2cbc62);return;}const _0x142139=_0xb5de6a[_0x22f3a8(0x13d)]?path[_0x22f3a8(0x13a)](_0xb5de6a['path']):process['cwd']();process['env'][_0x22f3a8(0x133)]=_0x142139,await PerformanceTester[_0x22f3a8(0xfc)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x27e45e=_0x22f3a8;!BrowserstackCLI[_0x27e45e(0x151)]()[_0x27e45e(0xe6)]()&&await TestHubHandler[_0x27e45e(0x13e)](FRAMEWORKS[_0x27e45e(0x150)],_0x1f762d),_0xb6b06c&&_0x185031['DwoxU'](handleO11yRerun,_0x4358a8);})();if(!BrowserstackCLI[_0x22f3a8(0x151)]()['isRunning']()){let _0x1557c6=_0x185031[_0x22f3a8(0x110)](process[_0x22f3a8(0x14e)][_0x22f3a8(0xfd)],_0x185031[_0x22f3a8(0x149)]);_0x1557c6=_0x1557c6||_0x185031[_0x22f3a8(0x15f)](checkAccessibilityPlatformConfig,_0x1f762d[_0x22f3a8(0x15c)]),process[_0x22f3a8(0x14e)][_0x22f3a8(0xfd)]=_0x1557c6,_0x1557c6&&_0x185031[_0x22f3a8(0xef)](setAccessibilityCapabilities,_0x1f762d['config']);}const _0x514d4e=path[_0x22f3a8(0xdb)](_0xb5de6a[_0x22f3a8(0x13d)]?path[_0x22f3a8(0x13a)](_0xb5de6a[_0x22f3a8(0x13d)]):process[_0x22f3a8(0x179)](),_0x185031['FhiZo']);fs['writeFileSync'](_0x514d4e,helper[_0x22f3a8(0x105)](_0x1f762d[_0x22f3a8(0x15c)])),process[_0x22f3a8(0x14e)][_0x22f3a8(0xe1)]=_0x514d4e,helper['clearTempPWConfig']();let _0xf268c0='';_0x185031[_0x22f3a8(0x122)](helper[_0x22f3a8(0x16b)](),constants[_0x22f3a8(0x173)][_0x22f3a8(0xed)])?_0xf268c0=_0x185031[_0x22f3a8(0xec)]:_0xf268c0=_0x185031[_0x22f3a8(0x107)];let _0x124a04='';if(helper[_0x22f3a8(0xe2)](_0xb5de6a[_0x22f3a8(0x13d)])){_0x124a04=_0x22f3a8(0x177);const _0x4523eb=_0xf268c0[_0x22f3a8(0x160)]('.');_0x4523eb[_0x185031[_0x22f3a8(0x12c)](_0x4523eb[_0x22f3a8(0x11c)],0x1)]='ts',_0xf268c0=_0x4523eb['join']('.'),logger[_0x22f3a8(0x126)](_0x185031[_0x22f3a8(0x104)](_0x185031['WvsvV'],_0xf268c0));}else _0x124a04=_0x22f3a8(0x174);const _0x4e75fc=path['join'](_0xb5de6a[_0x22f3a8(0x13d)]?path[_0x22f3a8(0x13a)](_0xb5de6a[_0x22f3a8(0x13d)]):process['cwd'](),_0xf268c0);let _0x5473da=_0xb5de6a['path']?_0xb5de6a[_0x22f3a8(0x13d)]:'';_0x5473da=_0x185031[_0x22f3a8(0xd8)](_0x5473da['length'],0x0)?path[_0x22f3a8(0x15a)](_0x5473da):'',process[_0x22f3a8(0x14e)][_0x22f3a8(0x121)]=_0x5473da;const _0xfc0864=helper['getProxyUrl'](_0x1f762d['config']);_0xfc0864&&(_0x124a04=_0x185031['AhjsB'](_0x22f3a8(0x163)+_0xfc0864+'\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();',_0x124a04));helper[_0x22f3a8(0xe4)]({},_0x4358a8),fs[_0x22f3a8(0x16d)](_0x4e75fc,_0x124a04),PerformanceTester['end'](PerformanceEvents[_0x22f3a8(0x170)]);const _0x1dca79=_0x185031['KlWmI'](spawn,_0x185031[_0x22f3a8(0x176)],[_0x185031[_0x22f3a8(0xd6)],_0x185031['PFZEp'],_0x185031[_0x22f3a8(0x155)],_0x4e75fc,..._0x4358a8[_0x22f3a8(0xf1)](0x2)],{'shell':_0x185031[_0x22f3a8(0x167)](process['platform'],_0x185031[_0x22f3a8(0x186)]),'stdio':_0x185031[_0x22f3a8(0x144)],'cwd':process['cwd'](),'env':Object[_0x22f3a8(0x108)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x22f3a8(0x112)](_0x3a088d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1f762d[_0x22f3a8(0x15c)]['testContextOptions'][_0x22f3a8(0x157)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1f762d[_0x22f3a8(0x15c)][_0x22f3a8(0x128)][_0x22f3a8(0x146)],'BROWSERSTACK_LOG_LEVEL':_0x1f762d[_0x22f3a8(0x15c)][_0x22f3a8(0x14b)]})}),_0x408f89=()=>{const _0x135622=_0x22f3a8;try{const _0x51b837=path[_0x135622(0xdb)](helper[_0x135622(0x13b)](),_0x4ca61c[_0x135622(0x14d)],_0x4ca61c[_0x135622(0x134)]);if(fs[_0x135622(0xfb)](_0x51b837)){let _0xf4bd67=fs[_0x135622(0x17e)](_0x51b837);_0xf4bd67=JSON['parse'](_0xf4bd67),_0x1f762d['errorMessage']=_0xf4bd67,fs[_0x135622(0x168)](_0x51b837);}}catch(_0x1005da){logger[_0x135622(0x126)](_0x4ca61c[_0x135622(0xfa)](_0x4ca61c[_0x135622(0x116)],_0x1005da));}};_0x1dca79['on'](_0x185031['MMAkn'],async _0x5534ce=>{const _0x5d5e7f=_0x22f3a8,_0x4d4207={};_0x4d4207[_0x5d5e7f(0xda)]=_0x185031[_0x5d5e7f(0x10a)];const _0x31d84a=_0x4d4207;try{PerformanceTester[_0x5d5e7f(0x158)](PerformanceEvents['SDK_CLEANUP']),_0x185031[_0x5d5e7f(0x11b)](_0x408f89);!BrowserstackCLI[_0x5d5e7f(0x151)]()[_0x5d5e7f(0xe6)]()&&await TestHubHandler[_0x5d5e7f(0x17a)]();await BrowserstackCLI[_0x5d5e7f(0x151)]()[_0x5d5e7f(0x17a)](),TestDetails[_0x5d5e7f(0x109)](),_0x185031['dAibO'](printBuildLink),await utilities[_0x5d5e7f(0xdf)](_0x1f762d),process['exitCode']=_0x5534ce,logger[_0x5d5e7f(0x126)](_0x5d5e7f(0x16f)+_0x5534ce),logger[_0x5d5e7f(0x131)](_0x5d5e7f(0xdd)+_0x4e75fc),fs[_0x5d5e7f(0x168)](_0x4e75fc);fs['existsSync'](_0x514d4e)&&(logger[_0x5d5e7f(0x126)](_0x5d5e7f(0xdd)+_0x514d4e),fs['unlinkSync'](_0x514d4e));const _0x916818=fs['readdirSync'](path['join'](helper[_0x5d5e7f(0x13b)](),_0x185031['EZElL']))[_0x5d5e7f(0x166)](_0x3d51fe=>_0x3d51fe['startsWith'](_0x5d5e7f(0x125)));_0x916818[_0x5d5e7f(0xe9)](_0x29dffe=>{const _0x40de36=_0x5d5e7f;fs[_0x40de36(0x168)](path[_0x40de36(0xdb)](helper['homedir'](),_0x31d84a[_0x40de36(0xda)],_0x29dffe));});}catch(_0x59a5ad){logger['debug'](_0x185031[_0x5d5e7f(0x104)](_0x185031[_0x5d5e7f(0x185)],_0x59a5ad));}});})();}function a38_0x5c58(_0x5b7819,_0x5d1eb5){const _0x4830e8=a38_0x4830();return a38_0x5c58=function(_0x5c584f,_0x28c3ad){_0x5c584f=_0x5c584f-0xd5;let _0x4e543f=_0x4830e8[_0x5c584f];return _0x4e543f;},a38_0x5c58(_0x5b7819,_0x5d1eb5);}module[a38_0x42950d(0x143)]=run;
@@ -1 +1 @@
1
- const a39_0x20c2be=a39_0x2a9f;(function(_0x341a81,_0x4fefb6){const _0x13c40c=a39_0x2a9f,_0x5aafda=_0x341a81();while(!![]){try{const _0x5d3ae0=-parseInt(_0x13c40c(0xb3))/0x1+parseInt(_0x13c40c(0xbc))/0x2*(-parseInt(_0x13c40c(0xc5))/0x3)+parseInt(_0x13c40c(0xc0))/0x4*(parseInt(_0x13c40c(0xb5))/0x5)+parseInt(_0x13c40c(0xcc))/0x6*(parseInt(_0x13c40c(0xc4))/0x7)+parseInt(_0x13c40c(0xa2))/0x8+-parseInt(_0x13c40c(0xca))/0x9+parseInt(_0x13c40c(0xb4))/0xa*(parseInt(_0x13c40c(0xa8))/0xb);if(_0x5d3ae0===_0x4fefb6)break;else _0x5aafda['push'](_0x5aafda['shift']());}catch(_0x145527){_0x5aafda['push'](_0x5aafda['shift']());}}}(a39_0x4455,0x56ee6));function a39_0x2a9f(_0x5a3170,_0x5bf3c1){const _0x445576=a39_0x4455();return a39_0x2a9f=function(_0x2a9f75,_0x213cfa){_0x2a9f75=_0x2a9f75-0x9d;let _0x1bd006=_0x445576[_0x2a9f75];return _0x1bd006;},a39_0x2a9f(_0x5a3170,_0x5bf3c1);}const util=require(a39_0x20c2be(0xc3)),child_process=require(a39_0x20c2be(0xa4)),{FRAMEWORKS}=require(a39_0x20c2be(0xa1)),{getFrameworkVersion,debug}=require(a39_0x20c2be(0xa5)),helper=require(a39_0x20c2be(0xab)),{getLoadUtilsPath,getForkProcessPath}=require(a39_0x20c2be(0xaf)),{mockIsWorkerRedundant}=require(a39_0x20c2be(0xba)),logger=require('../../helpers/logger')[a39_0x20c2be(0xc2)];module[a39_0x20c2be(0xaa)]=async function(_0x2b6722){const _0x4a3961=a39_0x20c2be,_0x10e15b={'fDFdV':function(_0x283b7e,_0x28f77e){return _0x283b7e(_0x28f77e);},'YDUdB':function(_0x128b03){return _0x128b03();},'HEhmA':_0x4a3961(0xad),'DtgZz':function(_0x3556a3,_0x187b8a){return _0x3556a3(_0x187b8a);},'RqOAd':_0x4a3961(0xc8),'GuvOE':function(_0x3da590){return _0x3da590();},'kTFGV':function(_0x36de49,_0x4f5cc3){return _0x36de49>=_0x4f5cc3;},'bWTuI':_0x4a3961(0xc7),'pLNPM':function(_0x147a4a,_0x1d3452,_0x56f86c){return _0x147a4a(_0x1d3452,_0x56f86c);},'fQLoe':function(_0x5b8bf7,_0x4ecc2b){return _0x5b8bf7!==_0x4ecc2b;},'sSSiq':'function','ZPuTt':'Not\x20able\x20to\x20import\x20globalSetup','izAWJ':function(_0x286681,_0x2dfb84){return _0x286681(_0x2dfb84);}},_0xfb9dd9=child_process['fork'];if(helper[_0x4a3961(0xbe)]())try{_0x10e15b[_0x4a3961(0x9d)](mockIsWorkerRedundant);}catch(_0x1eac2b){logger[_0x4a3961(0xac)](_0x4a3961(0xce)+util[_0x4a3961(0xa0)](_0x1eac2b));}child_process[_0x4a3961(0xb1)]=function(){const _0x3f8ad3=_0x4a3961;return _0x10e15b[_0x3f8ad3(0xb9)](debug,'Call\x20to\x20child\x20fork\x20with\x20args\x20'+arguments[0x0]),arguments[0x0]['includes'](_0x10e15b[_0x3f8ad3(0x9d)](getForkProcessPath))?arguments[0x0]=require[_0x3f8ad3(0xa3)](_0x10e15b[_0x3f8ad3(0xb0)]):logger[_0x3f8ad3(0xbf)](_0x3f8ad3(0xb6)+_0x10e15b['YDUdB'](getForkProcessPath)+_0x3f8ad3(0xa6)),_0xfb9dd9[_0x3f8ad3(0xa9)](null,arguments);};if(process['env'][_0x4a3961(0xa7)]){_0x10e15b['DtgZz'](debug,_0x10e15b['RqOAd']);try{const {loadGlobalHook:_0x279223}=helper['requirePWModule'][_0x4a3961(0xa9)](null,_0x10e15b[_0x4a3961(0xc6)](getLoadUtilsPath)),_0x2e3b48=_0x10e15b[_0x4a3961(0xb9)](getFrameworkVersion,FRAMEWORKS[_0x4a3961(0xbd)]);let _0x2fafec=_0x2b6722;if(_0x10e15b[_0x4a3961(0xcd)](helper[_0x4a3961(0x9f)](_0x2e3b48,_0x10e15b[_0x4a3961(0x9e)]),0x0)){const _0x29235e={};_0x29235e[_0x4a3961(0xae)]=_0x2b6722,_0x2fafec=_0x29235e;}const _0x55f70d=await _0x10e15b[_0x4a3961(0xb2)](_0x279223,_0x2fafec,process['env']['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x10e15b[_0x4a3961(0xb8)](typeof _0x55f70d,_0x10e15b[_0x4a3961(0xb7)]))throw new Error(_0x10e15b[_0x4a3961(0xc1)]);return _0x55f70d[_0x4a3961(0xa9)](null,arguments);}catch(_0x37b71f){_0x10e15b[_0x4a3961(0xcb)](debug,_0x4a3961(0xc9)+_0x37b71f[_0x4a3961(0xbb)]());}}};function a39_0x4455(){const _0x4f21d3=['1.33.0','Running\x20existing\x20global\x20setup','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','6180624tJzcZn','izAWJ','2172YwiCrg','kTFGV','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','YDUdB','bWTuI','compareVersions','format','../../helpers/test-observability/constants','2887976WbpGat','resolve','child_process','../../helpers/test-observability/utils','\x20is\x20not\x20found','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','22toZgIM','apply','exports','../../helpers/helper','debug','./mock-process.js','config','./reporter/pwUtils','HEhmA','fork','pLNPM','710953ASLAzd','4017160CmcgFM','5BFqYxf','Path\x20','sSSiq','fQLoe','fDFdV','./patches','toString','2WyIWdf','PLAYWRIGHT','isHandlePWErrorSet','error','1864244lZfpns','ZPuTt','winstonLogger','util','2429fcWdOx','7035lidXLk','GuvOE'];a39_0x4455=function(){return _0x4f21d3;};return a39_0x4455();}
1
+ const a39_0x5d43e9=a39_0x2d58;(function(_0x4df08d,_0x43d707){const _0x1ba129=a39_0x2d58,_0x15da0f=_0x4df08d();while(!![]){try{const _0x1f5c21=parseInt(_0x1ba129(0x158))/0x1+-parseInt(_0x1ba129(0x15f))/0x2*(parseInt(_0x1ba129(0x170))/0x3)+-parseInt(_0x1ba129(0x179))/0x4*(-parseInt(_0x1ba129(0x16d))/0x5)+-parseInt(_0x1ba129(0x156))/0x6*(parseInt(_0x1ba129(0x171))/0x7)+parseInt(_0x1ba129(0x15d))/0x8*(-parseInt(_0x1ba129(0x166))/0x9)+-parseInt(_0x1ba129(0x167))/0xa+-parseInt(_0x1ba129(0x159))/0xb*(-parseInt(_0x1ba129(0x172))/0xc);if(_0x1f5c21===_0x43d707)break;else _0x15da0f['push'](_0x15da0f['shift']());}catch(_0x445d2c){_0x15da0f['push'](_0x15da0f['shift']());}}}(a39_0x12d3,0x522b9));function a39_0x2d58(_0x22eb20,_0x57daf5){const _0x12d3e5=a39_0x12d3();return a39_0x2d58=function(_0x2d58e0,_0x1ff08b){_0x2d58e0=_0x2d58e0-0x155;let _0xd7c19f=_0x12d3e5[_0x2d58e0];return _0xd7c19f;},a39_0x2d58(_0x22eb20,_0x57daf5);}const util=require(a39_0x5d43e9(0x17d)),child_process=require(a39_0x5d43e9(0x161)),{FRAMEWORKS}=require(a39_0x5d43e9(0x155)),{getFrameworkVersion,debug}=require('../../helpers/test-observability/utils'),helper=require(a39_0x5d43e9(0x16e)),{getLoadUtilsPath,getForkProcessPath}=require(a39_0x5d43e9(0x15a)),{mockIsWorkerRedundant}=require(a39_0x5d43e9(0x15e)),logger=require(a39_0x5d43e9(0x180))['winstonLogger'];function a39_0x12d3(){const _0x242abf=['szQYh','env','apply','5823pKJYHW','2946710NTcUaT','requirePWModule','isHandlePWErrorSet','exports','qPbvL','config','57295cckIPO','../../helpers/helper','Call\x20to\x20child\x20fork\x20with\x20args\x20','3ACWWvt','756lOmxiC','5718252xNtVuP','rXkKX','wnGHs','ehFmD','RvDGj','xKACQ','\x20is\x20not\x20found','140FgYhbh','Not\x20able\x20to\x20import\x20globalSetup','fork','debug','util','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','Running\x20existing\x20global\x20setup','../../helpers/logger','ZwLtZ','LGArL','function','format','../../helpers/test-observability/constants','22026GWUPoa','EDmGU','337425HygXUz','33BEXiUR','./reporter/pwUtils','includes','EWLpi','6920SjNYKm','./patches','1161380PXtnOX','toString','child_process','EuBkm'];a39_0x12d3=function(){return _0x242abf;};return a39_0x12d3();}module[a39_0x5d43e9(0x16a)]=async function(_0x594988){const _0x2f81d5=a39_0x5d43e9,_0x3f311c={'LGArL':function(_0x5e70cc,_0x579b70){return _0x5e70cc(_0x579b70);},'xKACQ':function(_0x411af2){return _0x411af2();},'EWLpi':'./mock-process.js','rXkKX':function(_0x2f0eac){return _0x2f0eac();},'ehFmD':_0x2f81d5(0x17f),'qPbvL':function(_0x1eaf4c){return _0x1eaf4c();},'szQYh':function(_0x33b8e1,_0x3c9435){return _0x33b8e1(_0x3c9435);},'sywZA':function(_0x5aec57,_0x44dedc){return _0x5aec57>=_0x44dedc;},'eJcqv':'1.33.0','EDmGU':function(_0x549099,_0x2afad6,_0x54f83e){return _0x549099(_0x2afad6,_0x54f83e);},'wnGHs':function(_0x524f45,_0x2a9d46){return _0x524f45!==_0x2a9d46;},'EuBkm':_0x2f81d5(0x183),'ZwLtZ':_0x2f81d5(0x17a),'RvDGj':function(_0xad068e,_0x506ae1){return _0xad068e(_0x506ae1);}},_0x13055f=child_process['fork'];if(helper[_0x2f81d5(0x169)]())try{_0x3f311c[_0x2f81d5(0x173)](mockIsWorkerRedundant);}catch(_0x519ae6){logger[_0x2f81d5(0x17c)]('Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20'+util[_0x2f81d5(0x184)](_0x519ae6));}child_process[_0x2f81d5(0x17b)]=function(){const _0x3a4f36=_0x2f81d5;return _0x3f311c[_0x3a4f36(0x182)](debug,_0x3a4f36(0x16f)+arguments[0x0]),arguments[0x0][_0x3a4f36(0x15b)](_0x3f311c[_0x3a4f36(0x177)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x3f311c[_0x3a4f36(0x15c)]):logger['error']('Path\x20'+_0x3f311c['xKACQ'](getForkProcessPath)+_0x3a4f36(0x178)),_0x13055f[_0x3a4f36(0x165)](null,arguments);};if(process['env']['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']){_0x3f311c[_0x2f81d5(0x182)](debug,_0x3f311c[_0x2f81d5(0x175)]);try{const {loadGlobalHook:_0x538a8e}=helper[_0x2f81d5(0x168)][_0x2f81d5(0x165)](null,_0x3f311c[_0x2f81d5(0x16b)](getLoadUtilsPath)),_0x145bfb=_0x3f311c[_0x2f81d5(0x163)](getFrameworkVersion,FRAMEWORKS['PLAYWRIGHT']);let _0x401772=_0x594988;if(_0x3f311c['sywZA'](helper['compareVersions'](_0x145bfb,_0x3f311c['eJcqv']),0x0)){const _0x4e87b4={};_0x4e87b4[_0x2f81d5(0x16c)]=_0x594988,_0x401772=_0x4e87b4;}const _0x4d4299=await _0x3f311c[_0x2f81d5(0x157)](_0x538a8e,_0x401772,process[_0x2f81d5(0x164)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x3f311c[_0x2f81d5(0x174)](typeof _0x4d4299,_0x3f311c[_0x2f81d5(0x162)]))throw new Error(_0x3f311c[_0x2f81d5(0x181)]);return _0x4d4299[_0x2f81d5(0x165)](null,arguments);}catch(_0x3f629b){_0x3f311c[_0x2f81d5(0x176)](debug,_0x2f81d5(0x17e)+_0x3f629b[_0x2f81d5(0x160)]());}}};