browserstack-node-sdk 1.63.4 → 1.63.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  56. package/src/bin/jasmine/command.js +1 -1
  57. package/src/bin/jasmine/test.setup.js +1 -1
  58. package/src/bin/jasmine/testRunMap.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadErrors.js +1 -1
  75. package/src/bin/load/loadUtils.js +1 -1
  76. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  77. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  78. package/src/bin/mocha/command.js +1 -1
  79. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  80. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  81. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  82. package/src/bin/mocha/test.setup.js +1 -1
  83. package/src/bin/newman/command.js +1 -1
  84. package/src/bin/newman/helper.js +1 -1
  85. package/src/bin/newman/reporter/index.js +1 -1
  86. package/src/bin/newman/scriptRunner.js +1 -1
  87. package/src/bin/nightwatch/command.js +1 -1
  88. package/src/bin/playwright/accessibility-helper.js +1 -1
  89. package/src/bin/playwright/command.js +1 -1
  90. package/src/bin/playwright/globalSetup.js +1 -1
  91. package/src/bin/playwright/mock-process.js +1 -1
  92. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  93. package/src/bin/playwright/patches.js +1 -1
  94. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  95. package/src/bin/playwright/reporter/reporter.js +1 -1
  96. package/src/bin/playwright/reporter/test-details.js +1 -1
  97. package/src/bin/playwright/sessionDetails.js +1 -1
  98. package/src/bin/puppeteer/patches.js +1 -1
  99. package/src/bin/puppeteer/sessionDetails.js +1 -1
  100. package/src/bin/puppeteer/test.setup.js +1 -1
  101. package/src/bin/runner.js +1 -1
  102. package/src/bin/setup.js +1 -1
  103. package/src/bin/test-runner/index.js +1 -1
  104. package/src/bin/test-runner/runTest.js +1 -1
  105. package/src/bin/test-runner/testWorker.js +1 -1
  106. package/src/bin/testcafe/a11y-runner.js +1 -1
  107. package/src/bin/testcafe/command.js +1 -1
  108. package/src/bin/testcafe/reporter/index.js +1 -1
  109. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  110. package/src/bin/testcafe/session-registry.js +1 -1
  111. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  112. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  113. package/src/bin/testcafe/w3c-driver.js +1 -1
  114. package/src/bin/utils/apiUtilityMethods.js +1 -1
  115. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  116. package/src/bin/utils/constants.js +1 -1
  117. package/src/bin/utils/log4jsAppender.js +1 -1
  118. package/src/bin/utils/logPatcher.js +1 -1
  119. package/src/bin/utils/logReportingAPI.js +1 -1
  120. package/src/bin/utils/playwright-patcher.js +1 -1
  121. package/src/bin/utils/puppeteer-patcher.js +1 -1
  122. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  123. package/src/bin/utils/sharedUtils.js +1 -1
  124. package/src/bin/v2/TestInfo.js +1 -1
  125. package/src/bin/v2/browserstackCLI.js +1 -1
  126. package/src/bin/v2/cliUtils.js +1 -1
  127. package/src/bin/v2/customTagManager.js +1 -1
  128. package/src/bin/v2/eventDispatcher.js +1 -1
  129. package/src/bin/v2/framework/automationFramework.js +1 -1
  130. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  131. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  132. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  133. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  134. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  135. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  136. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  137. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  138. package/src/bin/v2/framework/testFramework.js +1 -1
  139. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  140. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  141. package/src/bin/v2/grpcClient.js +1 -1
  142. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  143. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  144. package/src/bin/v2/instances/trackedContext.js +1 -1
  145. package/src/bin/v2/instances/trackedInstance.js +1 -1
  146. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  147. package/src/bin/v2/modules/baseModule.js +1 -1
  148. package/src/bin/v2/modules/loadTestModule.js +1 -1
  149. package/src/bin/v2/modules/observabilityModule.js +1 -1
  150. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  151. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  152. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  153. package/src/bin/v2/modules/testhubModule.js +1 -1
  154. package/src/bin/v2/sdkErrorHandler.js +1 -1
  155. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  156. package/src/bin/v2/state/hookState.js +1 -1
  157. package/src/bin/v2/state/testFrameworkState.js +1 -1
  158. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  159. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  160. package/src/bin/v2/utils/jest-utils.js +1 -1
  161. package/src/bin/vanilla-js/command.js +1 -1
  162. package/src/browserStackSdk.js +1 -1
  163. package/src/helpers/BrowserStackSetup.js +1 -1
  164. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  165. package/src/helpers/accessibility-automation/constants.js +1 -1
  166. package/src/helpers/accessibility-automation/helper.js +1 -1
  167. package/src/helpers/accessibility-automation/scripts.js +1 -1
  168. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  169. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  170. package/src/helpers/ats/constants.js +1 -1
  171. package/src/helpers/ats/helper.js +1 -1
  172. package/src/helpers/caCertHelper.js +1 -1
  173. package/src/helpers/capsMapping.js +1 -1
  174. package/src/helpers/central-scanner/constants.js +1 -1
  175. package/src/helpers/central-scanner/helpers.js +1 -1
  176. package/src/helpers/classLogger.js +1 -1
  177. package/src/helpers/driverInitErrorReporter.js +1 -1
  178. package/src/helpers/globals.js +1 -1
  179. package/src/helpers/helper.js +1 -1
  180. package/src/helpers/logger.js +1 -1
  181. package/src/helpers/metadata.js +1 -1
  182. package/src/helpers/patchHelper.js +1 -1
  183. package/src/helpers/patchHelpers.js +1 -1
  184. package/src/helpers/percy/Percy.js +1 -1
  185. package/src/helpers/percy/PercyBinary.js +1 -1
  186. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  187. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  188. package/src/helpers/percy/PercySDK.js +1 -1
  189. package/src/helpers/percy/index.js +1 -1
  190. package/src/helpers/percy/utils.js +1 -1
  191. package/src/helpers/performance/constants.js +1 -1
  192. package/src/helpers/performance/performance-tester.js +1 -1
  193. package/src/helpers/playwright-helper.js +1 -1
  194. package/src/helpers/processHelper.js +1 -1
  195. package/src/helpers/puppeteer-helper.js +1 -1
  196. package/src/helpers/request-spy.js +1 -1
  197. package/src/helpers/setKeepAlive.js +1 -1
  198. package/src/helpers/stackFrameUtils.js +1 -1
  199. package/src/helpers/test-observability/constants.js +1 -1
  200. package/src/helpers/test-observability/error-handler.js +1 -1
  201. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  202. package/src/helpers/test-observability/sessionHandler.js +1 -1
  203. package/src/helpers/test-observability/utils.js +1 -1
  204. package/src/helpers/test-orchestration/constants.js +1 -1
  205. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  206. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  207. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  208. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  209. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  210. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  211. package/src/helpers/testhub/constants.js +1 -1
  212. package/src/helpers/testhub/testhubHandler.js +1 -1
  213. package/src/helpers/testhub/utils.js +1 -1
  214. package/src/helpers/timeoutPromise.js +1 -1
  215. package/src/helpers/utilities.js +1 -1
  216. package/src/helpers/w3cMapping.js +1 -1
  217. package/src/hubAllocationMethods.js +1 -1
  218. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a55_0x18eb(){const _0x272088=['.txt','readFileSync','message','lXqJO','_traceZipPaths.json','.json','ioOms','toString','getTestIdFromTestInfo','writeFileSync','force','CFMUu','getStoreDirPath','getProjectIdFromTestInfo','homedir','DAcyp','path','addTraceFilePath','push','1767333KGdkUU','join','getDirPath','parse','uuid','error','qlWqk','getTraceFilePaths','tests','__projectId','EmveX','stringify','mkdirSync','getFilePath','5cLamEw','AhEct','forEach','format','getTestUUID','appendFileSync','endsWith','rHKJj','VEpNt','project','fofvZ','getStoreDirName','8jMQXAH','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','dADKK','5631514VjTxsz','rmSync','PEzMZ','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','CSgrh','string','recursive','winstonLogger','shutdown','Utzwh','some','Error\x20writing\x20trace\x20file:\x20','kJPjy','getIntegrations','getTraceZipDir','kVUhR','EXeDW','setup','3345444KVWxUF','BS_TESTOPS_BUILD_HASHED_ID','Error\x20reading\x20trace\x20file\x20paths:\x20%s','utf8','OuxOX','exports','_projectId','_test','testId','3wMuFpX','util','getTestDetails','pid','existsSync','getTestRunIdFromTestInfo','../../../helpers/logger','3355abqYqj','PpHOo','IRCXc','BbADS','setAccessibilityPlatformValidation','10109802disOnm','_integrations.json','_platformDetails.json','readdirSync','filePath','64990LkCqea','.browserstack','AqmEv','11989764YtACNL','debug','traceZipPaths','2847764fHiIZu','YlBoV'];a55_0x18eb=function(){return _0x272088;};return a55_0x18eb();}const a55_0x232b7c=a55_0x28a3;(function(_0x57766f,_0x273ba2){const _0x363934=a55_0x28a3,_0x558676=_0x57766f();while(!![]){try{const _0x24ae99=parseInt(_0x363934(0x15a))/0x1+parseInt(_0x363934(0x125))/0x2+-parseInt(_0x363934(0x12e))/0x3*(parseInt(_0x363934(0x145))/0x4)+parseInt(_0x363934(0x104))/0x5*(-parseInt(_0x363934(0x13a))/0x6)+-parseInt(_0x363934(0x113))/0x7*(parseInt(_0x363934(0x110))/0x8)+-parseInt(_0x363934(0x142))/0x9+parseInt(_0x363934(0x13f))/0xa*(parseInt(_0x363934(0x135))/0xb);if(_0x24ae99===_0x273ba2)break;else _0x558676['push'](_0x558676['shift']());}catch(_0x362309){_0x558676['push'](_0x558676['shift']());}}}(a55_0x18eb,0xd8f44));const fs=require('fs'),path=require(a55_0x232b7c(0x157)),{v4:uuidv4}=require(a55_0x232b7c(0xfa)),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require('../../../helpers/helper'),logger=require(a55_0x232b7c(0x134))[a55_0x232b7c(0x11a)],{getLogDir}=require('../../../helpers/logger'),util=require(a55_0x232b7c(0x12f)),helper=require('../../../helpers/helper');class TestDetails{static [a55_0x232b7c(0xfe)]={};static[a55_0x232b7c(0x124)](){const _0x5a1490=a55_0x232b7c;this[_0x5a1490(0x11b)]();const _0x1e561f={};_0x1e561f[_0x5a1490(0x119)]=!![],fs['mkdirSync'](this[_0x5a1490(0x15c)](),_0x1e561f);const _0x973c68={};_0x973c68[_0x5a1490(0x119)]=!![],fs[_0x5a1490(0x102)](this[_0x5a1490(0x121)](),_0x973c68);}static[a55_0x232b7c(0x10f)](){const _0x4ce993=a55_0x232b7c,_0x39b688={};_0x39b688[_0x4ce993(0x138)]=function(_0x318d9e,_0x34f9c2){return _0x318d9e+_0x34f9c2;};const _0x5b82aa=_0x39b688;return _0x5b82aa['BbADS'](_0x5b82aa[_0x4ce993(0x138)](TEMP_STORE_DIR_NAME,'-'),process['env']['BS_TESTOPS_BUILD_HASHED_ID']);}static[a55_0x232b7c(0x153)](){const _0x2c6cc3=a55_0x232b7c,_0x2dbc99={};_0x2dbc99[_0x2c6cc3(0x146)]=function(_0x988d0f,_0x328af2){return _0x988d0f+_0x328af2;},_0x2dbc99[_0x2c6cc3(0x156)]='default';const _0x575b32=_0x2dbc99;return path['join'](_0x575b32[_0x2c6cc3(0x146)](_0x575b32['YlBoV'](TEMP_STORE_DIR_NAME,'-'),process['env'][_0x2c6cc3(0x126)]||_0x575b32['DAcyp']));}static[a55_0x232b7c(0x121)](){const _0x84cbf0=a55_0x232b7c,_0x1e4b49={};_0x1e4b49[_0x84cbf0(0x152)]=_0x84cbf0(0x144);const _0x4a504d=_0x1e4b49;return path[_0x84cbf0(0x15b)](this[_0x84cbf0(0x153)](),_0x4a504d[_0x84cbf0(0x152)]);}static['getDirPath'](){const _0x41846b=a55_0x232b7c;return TestDetails[_0x41846b(0x10f)]();}static[a55_0x232b7c(0x103)](_0x2b8231){const _0x46a06a=a55_0x232b7c,_0x2fde1f={};_0x2fde1f[_0x46a06a(0x112)]=function(_0x1f732b,_0x46f7c8){return _0x1f732b+_0x46f7c8;},_0x2fde1f['OuxOX']=_0x46a06a(0x14c);const _0x4540e0=_0x2fde1f;return path[_0x46a06a(0x15b)](this[_0x46a06a(0x15c)](),_0x4540e0[_0x46a06a(0x112)](_0x2b8231,_0x4540e0[_0x46a06a(0x129)]));}static[a55_0x232b7c(0x133)](_0x69c1d9){const _0xc53f6b=a55_0x232b7c,_0x2e9714={};_0x2e9714['rHKJj']=function(_0x551c6b,_0x23ad32){return _0x551c6b+_0x23ad32;},_0x2e9714[_0xc53f6b(0x115)]=function(_0x432ef2,_0x431f60){return _0x432ef2+_0x431f60;};const _0xb528f0=_0x2e9714;return _0xb528f0[_0xc53f6b(0x10b)](_0xb528f0[_0xc53f6b(0x115)](this[_0xc53f6b(0x14f)](_0x69c1d9),'-'),_0x69c1d9['retry']);}static[a55_0x232b7c(0x154)](_0x281d73){const _0x3ccf8f=a55_0x232b7c,_0x38e73b={'AhEct':function(_0x21b51d,_0x1b0e26,_0x51fdaa){return _0x21b51d(_0x1b0e26,_0x51fdaa);},'ioOms':_0x3ccf8f(0x12c),'CSgrh':_0x3ccf8f(0x12b),'PpHOo':function(_0xbed889,_0x34d0b0,_0x4984bb){return _0xbed889(_0x34d0b0,_0x4984bb);},'EmveX':_0x3ccf8f(0x10d),'VEpNt':_0x3ccf8f(0xff)};return _0x38e73b[_0x3ccf8f(0x105)](nestedKeyValue,_0x281d73,[_0x38e73b[_0x3ccf8f(0x14d)],_0x38e73b[_0x3ccf8f(0x117)]])||_0x38e73b[_0x3ccf8f(0x136)](nestedKeyValue,_0x281d73,[_0x38e73b[_0x3ccf8f(0x100)],_0x38e73b[_0x3ccf8f(0x10c)]]);}static[a55_0x232b7c(0x14f)](_0x34b3bf){const _0x1b0cdd=a55_0x232b7c,_0x5ee9d1={'kVUhR':function(_0xc466c0,_0x1cf4bb,_0x16208e){return _0xc466c0(_0x1cf4bb,_0x16208e);},'fofvZ':_0x1b0cdd(0x12c)};return _0x5ee9d1[_0x1b0cdd(0x122)](nestedKeyValue,_0x34b3bf,[_0x5ee9d1[_0x1b0cdd(0x10e)],'id'])||_0x34b3bf[_0x1b0cdd(0x12d)];}static[a55_0x232b7c(0x108)](_0x2ae7fc){const _0x2937a7=a55_0x232b7c,_0x2e08f2={'lXqJO':function(_0x57f090,_0x496386){return _0x57f090===_0x496386;},'Utzwh':_0x2937a7(0x118),'Tfpyx':function(_0x20c747){return _0x20c747();}};if(this[_0x2937a7(0xfe)][_0x2ae7fc]&&_0x2e08f2[_0x2937a7(0x14a)](typeof this[_0x2937a7(0xfe)][_0x2ae7fc][_0x2937a7(0xfa)],_0x2e08f2[_0x2937a7(0x11c)]))return this[_0x2937a7(0xfe)][_0x2ae7fc]['uuid'];const _0x404f92=this[_0x2937a7(0x103)](_0x2ae7fc);if(_0x404f92&&fs['existsSync'](_0x404f92)){const _0x17c933=JSON[_0x2937a7(0x15d)](fs[_0x2937a7(0x148)](_0x404f92)[_0x2937a7(0x14e)]());return this[_0x2937a7(0xfe)][_0x2ae7fc]=_0x17c933,this[_0x2937a7(0xfe)][_0x2ae7fc]['uuid'];}return this[_0x2937a7(0xfe)][_0x2ae7fc]={'uuid':_0x2e08f2['Tfpyx'](uuidv4)},fs[_0x2937a7(0x150)](_0x404f92,JSON[_0x2937a7(0x101)](this[_0x2937a7(0xfe)][_0x2ae7fc])),this[_0x2937a7(0xfe)][_0x2ae7fc][_0x2937a7(0xfa)];}static['getAccessibilityPlatformValidation'](_0xc8ba01){const _0x45aba5=a55_0x232b7c,_0x33b1af=path['join'](this[_0x45aba5(0x15c)](),_0xc8ba01+_0x45aba5(0x13c));if(_0x33b1af&&fs[_0x45aba5(0x132)](_0x33b1af))return fs[_0x45aba5(0x148)](_0x33b1af)[_0x45aba5(0x14e)]();}static[a55_0x232b7c(0x139)](_0x535321,_0x516fbc){const _0x5b134d=a55_0x232b7c,_0x316034=path[_0x5b134d(0x15b)](this[_0x5b134d(0x15c)](),_0x516fbc+'_platformDetails.json');fs['writeFileSync'](_0x316034,_0x535321[_0x5b134d(0x14e)]());}static[a55_0x232b7c(0x120)](_0x5eb77d){const _0x2bf17c=a55_0x232b7c,_0x160bba=path['join'](this[_0x2bf17c(0x15c)](),_0x5eb77d+_0x2bf17c(0x13b));if(_0x160bba&&fs[_0x2bf17c(0x132)](_0x160bba))try{return JSON['parse'](fs[_0x2bf17c(0x148)](_0x160bba)[_0x2bf17c(0x14e)]());}catch(_0xca06fc){return logger['debug'](_0x2bf17c(0x116)+_0x5eb77d+':\x20'+(_0xca06fc&&_0xca06fc['message'])),null;}return null;}static['setIntegrations'](_0x2d7f0d,_0x2ad5d2){const _0x5441f0=a55_0x232b7c,_0x59c621={};_0x59c621['EXeDW']=function(_0x30a35c,_0x502346){return _0x30a35c||_0x502346;};const _0x21e19d=_0x59c621;if(_0x21e19d[_0x5441f0(0x123)](!_0x2d7f0d,!_0x2ad5d2))return;try{const _0x9505f6=this[_0x5441f0(0x15c)](),_0x2374dd={};_0x2374dd['recursive']=!![],fs[_0x5441f0(0x102)](_0x9505f6,_0x2374dd);const _0x2703b8=path['join'](_0x9505f6,_0x2d7f0d+_0x5441f0(0x13b));fs[_0x5441f0(0x150)](_0x2703b8,JSON['stringify'](_0x2ad5d2));}catch(_0x12e18e){logger[_0x5441f0(0x143)](_0x5441f0(0x111)+_0x2d7f0d+':\x20'+(_0x12e18e&&_0x12e18e[_0x5441f0(0x149)]));}}static['shutdown'](){const _0x370f0a=a55_0x232b7c,_0x5bef46={};_0x5bef46['recursive']=!![],_0x5bef46[_0x370f0a(0x151)]=!![],fs[_0x370f0a(0x114)](this[_0x370f0a(0x15c)](),_0x5bef46);}static[a55_0x232b7c(0x130)](_0x237488){const _0x4eee8e=a55_0x232b7c;if(this['tests'][_0x237488])return this[_0x4eee8e(0xfe)][_0x237488];const _0x4f575f=this['getFilePath'](_0x237488);if(_0x4f575f&&fs[_0x4eee8e(0x132)](_0x4f575f)){const _0x11bcee=JSON[_0x4eee8e(0x15d)](fs[_0x4eee8e(0x148)](_0x4f575f)[_0x4eee8e(0x14e)]());return this[_0x4eee8e(0xfe)][_0x237488]=_0x11bcee,_0x11bcee;}return{};}static['setTestDetails'](_0x20fd57,_0x52e5d1){const _0xb8c4b7=a55_0x232b7c,_0xf96c44=this[_0xb8c4b7(0x103)](_0x20fd57);if(_0xf96c44&&fs[_0xb8c4b7(0x132)](_0xf96c44)){const _0x12eaa7=JSON[_0xb8c4b7(0x15d)](fs[_0xb8c4b7(0x148)](_0xf96c44)[_0xb8c4b7(0x14e)]()),_0x28dd46={..._0x12eaa7,..._0x52e5d1};this[_0xb8c4b7(0xfe)][_0x20fd57]=_0x28dd46;}else this['tests'][_0x20fd57]=_0x52e5d1;fs[_0xb8c4b7(0x150)](_0xf96c44,this[_0xb8c4b7(0xfe)][_0x20fd57]);}static[a55_0x232b7c(0x158)](_0x2fffa4){const _0x5af2c8=a55_0x232b7c,_0x20744e={};_0x20744e[_0x5af2c8(0xfc)]='Error\x20handling\x20trace\x20file\x20paths:\x20';const _0x2626df=_0x20744e;try{const _0x5af4eb=process[_0x5af2c8(0x131)],_0x32ae4c=path['join'](TestDetails['getTraceZipDir'](),_0x5af4eb+'_traceZipPaths.json');let _0x5e477f=[];_0x32ae4c&&fs[_0x5af2c8(0x132)](_0x32ae4c)&&(_0x5e477f=JSON['parse'](fs[_0x5af2c8(0x148)](_0x32ae4c)[_0x5af2c8(0x14e)]())),!_0x5e477f[_0x5af2c8(0x11d)](_0x88b136=>_0x88b136[_0x5af2c8(0x13e)]===_0x2fffa4[_0x5af2c8(0x13e)])&&(_0x5e477f[_0x5af2c8(0x159)](_0x2fffa4),fs[_0x5af2c8(0x150)](_0x32ae4c,JSON[_0x5af2c8(0x101)](_0x5e477f)));}catch(_0x182a6d){logger[_0x5af2c8(0xfb)](_0x2626df[_0x5af2c8(0xfc)],_0x182a6d);}}static[a55_0x232b7c(0xfd)](){const _0xa02e1c=a55_0x232b7c,_0xd54aa2={};_0xd54aa2[_0xa02e1c(0x141)]=_0xa02e1c(0x14b),_0xd54aa2[_0xa02e1c(0x137)]=_0xa02e1c(0x127);const _0x4b917f=_0xd54aa2,_0x1ae5a5=[];try{const _0x353bfa=TestDetails['getTraceZipDir']();if(_0x353bfa&&!fs[_0xa02e1c(0x132)](_0x353bfa))return _0x1ae5a5;const _0x4bf2c6=fs[_0xa02e1c(0x13d)](_0x353bfa);_0x4bf2c6[_0xa02e1c(0x106)](_0xe70dd7=>{const _0x49260a=_0xa02e1c;if(_0xe70dd7&&_0xe70dd7[_0x49260a(0x10a)](_0x4b917f[_0x49260a(0x141)])){const _0x48c16f=JSON['parse'](fs['readFileSync'](path[_0x49260a(0x15b)](_0x353bfa,_0xe70dd7))[_0x49260a(0x14e)]());_0x1ae5a5[_0x49260a(0x159)](..._0x48c16f);}});}catch(_0x52c87a){logger[_0xa02e1c(0xfb)](util[_0xa02e1c(0x107)](_0x4b917f[_0xa02e1c(0x137)],_0x52c87a));}const _0x1014ca={};return _0x1ae5a5['forEach'](_0x4bc7bf=>{const _0x784520=_0xa02e1c;_0x1014ca[_0x4bc7bf[_0x784520(0x13e)]]=_0x4bc7bf;}),Object['values'](_0x1014ca);}static['appendToTracePaths'](_0x6f786f,_0x5cc3ba){const _0x3fa6c0=a55_0x232b7c,_0x2c5f9d={};_0x2c5f9d['cJXXz']=_0x3fa6c0(0x140),_0x2c5f9d[_0x3fa6c0(0x11f)]=_0x3fa6c0(0x128);const _0xba7c1=_0x2c5f9d;try{const _0x9a1735=path[_0x3fa6c0(0x15b)](helper[_0x3fa6c0(0x155)](),_0xba7c1['cJXXz']);if(!fs[_0x3fa6c0(0x132)](_0x9a1735)){const _0x43725d={};_0x43725d[_0x3fa6c0(0x119)]=!![],fs[_0x3fa6c0(0x102)](_0x9a1735,_0x43725d);}fs[_0x3fa6c0(0x109)](path[_0x3fa6c0(0x15b)](_0x9a1735,'trace_'+_0x5cc3ba+_0x3fa6c0(0x147)),_0x6f786f+'\x0a',_0xba7c1[_0x3fa6c0(0x11f)]);}catch(_0x2d051c){console[_0x3fa6c0(0xfb)](_0x3fa6c0(0x11e)+_0x2d051c[_0x3fa6c0(0x149)]);}}}function a55_0x28a3(_0x388b7e,_0x214874){const _0x18ebc3=a55_0x18eb();return a55_0x28a3=function(_0x28a3e3,_0x289617){_0x28a3e3=_0x28a3e3-0xfa;let _0x501ea9=_0x18ebc3[_0x28a3e3];return _0x501ea9;},a55_0x28a3(_0x388b7e,_0x214874);}module[a55_0x232b7c(0x12a)]=TestDetails;
1
+ function a55_0x15c5(_0x5df9ce,_0x2e7236){const _0x58c93a=a55_0x58c9();return a55_0x15c5=function(_0x15c54a,_0x258bdf){_0x15c54a=_0x15c54a-0x1ea;let _0x53fdcb=_0x58c93a[_0x15c54a];return _0x53fdcb;},a55_0x15c5(_0x5df9ce,_0x2e7236);}const a55_0x19267a=a55_0x15c5;(function(_0x46146d,_0x25aaf4){const _0x43737f=a55_0x15c5,_0x5c470a=_0x46146d();while(!![]){try{const _0x54df33=-parseInt(_0x43737f(0x219))/0x1*(parseInt(_0x43737f(0x23b))/0x2)+-parseInt(_0x43737f(0x1fe))/0x3+-parseInt(_0x43737f(0x208))/0x4+-parseInt(_0x43737f(0x233))/0x5+parseInt(_0x43737f(0x231))/0x6+-parseInt(_0x43737f(0x235))/0x7+-parseInt(_0x43737f(0x244))/0x8*(-parseInt(_0x43737f(0x234))/0x9);if(_0x54df33===_0x25aaf4)break;else _0x5c470a['push'](_0x5c470a['shift']());}catch(_0x366432){_0x5c470a['push'](_0x5c470a['shift']());}}}(a55_0x58c9,0x6f57c));const fs=require('fs'),path=require(a55_0x19267a(0x225)),{v4:uuidv4}=require(a55_0x19267a(0x1ee)),{TEMP_STORE_DIR_NAME}=require(a55_0x19267a(0x213)),{nestedKeyValue}=require(a55_0x19267a(0x240)),logger=require(a55_0x19267a(0x21c))[a55_0x19267a(0x1f4)],{getLogDir}=require('../../../helpers/logger'),util=require(a55_0x19267a(0x238)),helper=require('../../../helpers/helper');class TestDetails{static [a55_0x19267a(0x1fd)]={};static[a55_0x19267a(0x20d)](){const _0x2e69c4=a55_0x19267a;this['shutdown']();const _0x50434c={};_0x50434c[_0x2e69c4(0x224)]=!![],fs[_0x2e69c4(0x228)](this['getDirPath'](),_0x50434c);const _0x5850fe={};_0x5850fe['recursive']=!![],fs[_0x2e69c4(0x228)](this[_0x2e69c4(0x21b)](),_0x5850fe);}static[a55_0x19267a(0x23e)](){const _0x7ec86c=a55_0x19267a,_0x3b4bf6={};_0x3b4bf6['kfzdT']=function(_0x340946,_0x2f5e63){return _0x340946+_0x2f5e63;};const _0x2800fb=_0x3b4bf6;return _0x2800fb[_0x7ec86c(0x20e)](_0x2800fb['kfzdT'](TEMP_STORE_DIR_NAME,'-'),process[_0x7ec86c(0x209)]['BS_TESTOPS_BUILD_HASHED_ID']);}static['getStoreDirPath'](){const _0x3969e8=a55_0x19267a,_0x1ffafd={};_0x1ffafd[_0x3969e8(0x201)]=function(_0x2287ce,_0x246062){return _0x2287ce+_0x246062;},_0x1ffafd[_0x3969e8(0x1fc)]=function(_0x4bc1ad,_0x52ec2f){return _0x4bc1ad+_0x52ec2f;},_0x1ffafd['Psxva']='default';const _0x50bf89=_0x1ffafd;return path[_0x3969e8(0x1f2)](_0x50bf89['ODion'](_0x50bf89[_0x3969e8(0x1fc)](TEMP_STORE_DIR_NAME,'-'),process[_0x3969e8(0x209)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x50bf89[_0x3969e8(0x218)]));}static['getTraceZipDir'](){const _0xd6f1fd=a55_0x19267a,_0x5dc0e8={};_0x5dc0e8['rKIyT']=_0xd6f1fd(0x22c);const _0x23795a=_0x5dc0e8;return path[_0xd6f1fd(0x1f2)](this[_0xd6f1fd(0x229)](),_0x23795a[_0xd6f1fd(0x1f1)]);}static[a55_0x19267a(0x245)](){return TestDetails['getStoreDirName']();}static['getFilePath'](_0x39677d){const _0x5f5d2e=a55_0x19267a,_0x2dec10={};_0x2dec10[_0x5f5d2e(0x223)]=function(_0x3efec5,_0x100314){return _0x3efec5+_0x100314;},_0x2dec10[_0x5f5d2e(0x222)]='.json';const _0x12d970=_0x2dec10;return path[_0x5f5d2e(0x1f2)](this[_0x5f5d2e(0x245)](),_0x12d970[_0x5f5d2e(0x223)](_0x39677d,_0x12d970[_0x5f5d2e(0x222)]));}static[a55_0x19267a(0x239)](_0x186ac6){const _0x563b56=a55_0x19267a,_0x38a851={};_0x38a851[_0x563b56(0x1eb)]=function(_0x694f86,_0x4ed4f3){return _0x694f86+_0x4ed4f3;};const _0x5c335e=_0x38a851;return _0x5c335e[_0x563b56(0x1eb)](_0x5c335e[_0x563b56(0x1eb)](this[_0x563b56(0x1fa)](_0x186ac6),'-'),_0x186ac6['retry']);}static[a55_0x19267a(0x232)](_0x5ea19a){const _0x33b862=a55_0x19267a,_0x23a2ba={'PXaaS':function(_0x1c2acf,_0x145136,_0x56591d){return _0x1c2acf(_0x145136,_0x56591d);},'UACVz':_0x33b862(0x216),'fmBRT':_0x33b862(0x24a),'roGND':function(_0x28ff55,_0x375ba3,_0x52ba4e){return _0x28ff55(_0x375ba3,_0x52ba4e);},'xCGJl':_0x33b862(0x236),'iAUng':_0x33b862(0x1f0)};return _0x23a2ba[_0x33b862(0x206)](nestedKeyValue,_0x5ea19a,[_0x23a2ba[_0x33b862(0x20c)],_0x23a2ba[_0x33b862(0x207)]])||_0x23a2ba[_0x33b862(0x230)](nestedKeyValue,_0x5ea19a,[_0x23a2ba[_0x33b862(0x20f)],_0x23a2ba[_0x33b862(0x22a)]]);}static[a55_0x19267a(0x1fa)](_0x3230fd){const _0x2cc918=a55_0x19267a,_0x1908dd={'Gplgf':function(_0x47bc8d,_0x68ccbb,_0x218e54){return _0x47bc8d(_0x68ccbb,_0x218e54);},'OOECJ':'_test'};return _0x1908dd['Gplgf'](nestedKeyValue,_0x3230fd,[_0x1908dd[_0x2cc918(0x22f)],'id'])||_0x3230fd[_0x2cc918(0x1fb)];}static[a55_0x19267a(0x1f6)](_0x453ab9){const _0x2a86e7=a55_0x19267a,_0x3428fb={'Zgkdt':function(_0x36a2f9,_0x213709){return _0x36a2f9===_0x213709;},'Kidni':_0x2a86e7(0x215),'TLGdh':function(_0x5d7ccb){return _0x5d7ccb();}};if(this[_0x2a86e7(0x1fd)][_0x453ab9]&&_0x3428fb[_0x2a86e7(0x1ec)](typeof this[_0x2a86e7(0x1fd)][_0x453ab9][_0x2a86e7(0x1ee)],_0x3428fb[_0x2a86e7(0x202)]))return this[_0x2a86e7(0x1fd)][_0x453ab9]['uuid'];const _0x5ce11a=this[_0x2a86e7(0x1f7)](_0x453ab9);if(_0x5ce11a&&fs[_0x2a86e7(0x220)](_0x5ce11a)){const _0x349be6=JSON[_0x2a86e7(0x212)](fs[_0x2a86e7(0x242)](_0x5ce11a)['toString']());return this['tests'][_0x453ab9]=_0x349be6,this[_0x2a86e7(0x1fd)][_0x453ab9][_0x2a86e7(0x1ee)];}return this['tests'][_0x453ab9]={'uuid':_0x3428fb[_0x2a86e7(0x241)](uuidv4)},fs['writeFileSync'](_0x5ce11a,JSON[_0x2a86e7(0x237)](this['tests'][_0x453ab9])),this[_0x2a86e7(0x1fd)][_0x453ab9][_0x2a86e7(0x1ee)];}static[a55_0x19267a(0x204)](_0x1c117b){const _0x3ff74b=a55_0x19267a,_0x147da1=path[_0x3ff74b(0x1f2)](this[_0x3ff74b(0x245)](),_0x1c117b+'_platformDetails.json');if(_0x147da1&&fs['existsSync'](_0x147da1))return fs[_0x3ff74b(0x242)](_0x147da1)[_0x3ff74b(0x20a)]();}static['setAccessibilityPlatformValidation'](_0x15e9d8,_0x1fa17f){const _0x2984ab=a55_0x19267a,_0x3cc3c9=path[_0x2984ab(0x1f2)](this[_0x2984ab(0x245)](),_0x1fa17f+'_platformDetails.json');fs['writeFileSync'](_0x3cc3c9,_0x15e9d8[_0x2984ab(0x20a)]());}static['getIntegrations'](_0x58c133){const _0x3a02a9=a55_0x19267a,_0x36b427=path['join'](this[_0x3a02a9(0x245)](),_0x58c133+_0x3a02a9(0x1ef));if(_0x36b427&&fs[_0x3a02a9(0x220)](_0x36b427))try{return JSON[_0x3a02a9(0x212)](fs[_0x3a02a9(0x242)](_0x36b427)[_0x3a02a9(0x20a)]());}catch(_0x38e48d){return logger['debug'](_0x3a02a9(0x23c)+_0x58c133+':\x20'+(_0x38e48d&&_0x38e48d['message'])),null;}return null;}static[a55_0x19267a(0x21a)](_0x13ce58,_0x3f0ced){const _0x4f1253=a55_0x19267a,_0x2fe488={};_0x2fe488['neLlS']=function(_0x5e681b,_0xceb1bf){return _0x5e681b||_0xceb1bf;};const _0x503272=_0x2fe488;if(_0x503272[_0x4f1253(0x22b)](!_0x13ce58,!_0x3f0ced))return;try{const _0x3ccb21=this[_0x4f1253(0x245)](),_0x564d76={};_0x564d76[_0x4f1253(0x224)]=!![],fs['mkdirSync'](_0x3ccb21,_0x564d76);const _0x38cdb7=path[_0x4f1253(0x1f2)](_0x3ccb21,_0x13ce58+_0x4f1253(0x1ef));fs['writeFileSync'](_0x38cdb7,JSON[_0x4f1253(0x237)](_0x3f0ced));}catch(_0x5cd5bb){logger[_0x4f1253(0x203)](_0x4f1253(0x247)+_0x13ce58+':\x20'+(_0x5cd5bb&&_0x5cd5bb[_0x4f1253(0x1f3)]));}}static[a55_0x19267a(0x243)](){const _0x2ab471=a55_0x19267a,_0x32ccc0={};_0x32ccc0[_0x2ab471(0x224)]=!![],_0x32ccc0['force']=!![],fs[_0x2ab471(0x249)](this[_0x2ab471(0x245)](),_0x32ccc0);}static[a55_0x19267a(0x246)](_0x11919c){const _0x1f384b=a55_0x19267a;if(this[_0x1f384b(0x1fd)][_0x11919c])return this[_0x1f384b(0x1fd)][_0x11919c];const _0x43abbb=this[_0x1f384b(0x1f7)](_0x11919c);if(_0x43abbb&&fs[_0x1f384b(0x220)](_0x43abbb)){const _0x487a2c=JSON[_0x1f384b(0x212)](fs[_0x1f384b(0x242)](_0x43abbb)[_0x1f384b(0x20a)]());return this[_0x1f384b(0x1fd)][_0x11919c]=_0x487a2c,_0x487a2c;}return{};}static[a55_0x19267a(0x1f8)](_0x49d9dd,_0x4a7538){const _0x3bda30=a55_0x19267a,_0x240680=this[_0x3bda30(0x1f7)](_0x49d9dd);if(_0x240680&&fs[_0x3bda30(0x220)](_0x240680)){const _0xddd3ff=JSON[_0x3bda30(0x212)](fs['readFileSync'](_0x240680)[_0x3bda30(0x20a)]()),_0xd45aaf={..._0xddd3ff,..._0x4a7538};this['tests'][_0x49d9dd]=_0xd45aaf;}else this[_0x3bda30(0x1fd)][_0x49d9dd]=_0x4a7538;fs[_0x3bda30(0x205)](_0x240680,this[_0x3bda30(0x1fd)][_0x49d9dd]);}static[a55_0x19267a(0x21d)](_0x3c6d57){const _0x307d4b=a55_0x19267a,_0x54b605={};_0x54b605['yeAkN']='Error\x20handling\x20trace\x20file\x20paths:\x20';const _0x3ec19d=_0x54b605;try{const _0x154ec4=process[_0x307d4b(0x210)],_0x56eac9=path['join'](TestDetails[_0x307d4b(0x21b)](),_0x154ec4+_0x307d4b(0x214));let _0x3bc8d7=[];_0x56eac9&&fs['existsSync'](_0x56eac9)&&(_0x3bc8d7=JSON[_0x307d4b(0x212)](fs['readFileSync'](_0x56eac9)[_0x307d4b(0x20a)]())),!_0x3bc8d7['some'](_0x1a8892=>_0x1a8892[_0x307d4b(0x23a)]===_0x3c6d57['filePath'])&&(_0x3bc8d7[_0x307d4b(0x23d)](_0x3c6d57),fs[_0x307d4b(0x205)](_0x56eac9,JSON[_0x307d4b(0x237)](_0x3bc8d7)));}catch(_0x209cd5){logger[_0x307d4b(0x221)](_0x3ec19d[_0x307d4b(0x22d)],_0x209cd5);}}static[a55_0x19267a(0x217)](){const _0x9df35d=a55_0x19267a,_0x9cff6d={};_0x9cff6d[_0x9df35d(0x1f5)]=_0x9df35d(0x214),_0x9cff6d['CToAh']='Error\x20reading\x20trace\x20file\x20paths:\x20%s';const _0x3923d8=_0x9cff6d,_0x46ef2a=[];try{const _0x25c154=TestDetails[_0x9df35d(0x21b)]();if(_0x25c154&&!fs[_0x9df35d(0x220)](_0x25c154))return _0x46ef2a;const _0x1f4176=fs[_0x9df35d(0x248)](_0x25c154);_0x1f4176[_0x9df35d(0x227)](_0x497765=>{const _0x2e0492=_0x9df35d;if(_0x497765&&_0x497765['endsWith'](_0x3923d8[_0x2e0492(0x1f5)])){const _0x19310b=JSON[_0x2e0492(0x212)](fs['readFileSync'](path[_0x2e0492(0x1f2)](_0x25c154,_0x497765))[_0x2e0492(0x20a)]());_0x46ef2a[_0x2e0492(0x23d)](..._0x19310b);}});}catch(_0x1b7e80){logger[_0x9df35d(0x221)](util[_0x9df35d(0x1ed)](_0x3923d8[_0x9df35d(0x21f)],_0x1b7e80));}const _0x2057b3={};return _0x46ef2a[_0x9df35d(0x227)](_0xc7ec05=>{const _0x41169c=_0x9df35d;_0x2057b3[_0xc7ec05[_0x41169c(0x23a)]]=_0xc7ec05;}),Object[_0x9df35d(0x23f)](_0x2057b3);}static[a55_0x19267a(0x1ff)](_0x1987aa,_0x438ce5){const _0x1a4a37=a55_0x19267a,_0x3f668e={};_0x3f668e[_0x1a4a37(0x211)]=_0x1a4a37(0x21e),_0x3f668e[_0x1a4a37(0x1ea)]=_0x1a4a37(0x200);const _0x42a833=_0x3f668e;try{const _0x4d551b=path[_0x1a4a37(0x1f2)](helper[_0x1a4a37(0x226)](),_0x42a833[_0x1a4a37(0x211)]);if(!fs[_0x1a4a37(0x220)](_0x4d551b)){const _0xc40063={};_0xc40063[_0x1a4a37(0x224)]=!![],fs[_0x1a4a37(0x228)](_0x4d551b,_0xc40063);}fs[_0x1a4a37(0x1f9)](path[_0x1a4a37(0x1f2)](_0x4d551b,_0x1a4a37(0x22e)+_0x438ce5+'.txt'),_0x1987aa+'\x0a',_0x42a833[_0x1a4a37(0x1ea)]);}catch(_0x1208e8){console[_0x1a4a37(0x221)](_0x1a4a37(0x20b)+_0x1208e8[_0x1a4a37(0x1f3)]);}}}function a55_0x58c9(){const _0x39589e=['existsSync','error','nqzED','EEpeW','recursive','path','homedir','forEach','mkdirSync','getStoreDirPath','iAUng','neLlS','traceZipPaths','yeAkN','trace_','OOECJ','roGND','5139912ayFqnQ','getProjectIdFromTestInfo','2366475fxgIol','60975TPBgti','1220135douLwC','project','stringify','util','getTestRunIdFromTestInfo','filePath','2WdvdBd','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','push','getStoreDirName','values','../../../helpers/helper','TLGdh','readFileSync','shutdown','2320JhLscB','getDirPath','getTestDetails','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','readdirSync','rmSync','_projectId','LpzpX','eeKqR','Zgkdt','format','uuid','_integrations.json','__projectId','rKIyT','join','message','winstonLogger','vApuz','getTestUUID','getFilePath','setTestDetails','appendFileSync','getTestIdFromTestInfo','testId','XZkOl','tests','2132784fjVYvR','appendToTracePaths','utf8','ODion','Kidni','debug','getAccessibilityPlatformValidation','writeFileSync','PXaaS','fmBRT','3595020DqFEHq','env','toString','Error\x20writing\x20trace\x20file:\x20','UACVz','setup','kfzdT','xCGJl','pid','mOVuD','parse','../../../helpers/test-observability/constants','_traceZipPaths.json','string','_test','getTraceFilePaths','Psxva','108059tWZeUO','setIntegrations','getTraceZipDir','../../../helpers/logger','addTraceFilePath','.browserstack','CToAh'];a55_0x58c9=function(){return _0x39589e;};return a55_0x58c9();}module['exports']=TestDetails;
@@ -1 +1 @@
1
- const a56_0x1542e2=a56_0x5c4a;function a56_0xa369(){const _0x34b671=['472180fXlRne','model','exmCO','../../helpers/accessibility-automation/scripts','patch','_browserType','chromium','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','_name','cloudProvider','__driver','getAutomationFramework','SvswO','params','oFBHJ','pwPage','1.60.0','crConnection.js','local_grid','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','resolveConnectionClass','entries','TRLKR','2|3|5|1|0|4','accessibilityPlatform','wsEndpoint','TrFbz','_connection','PcinU','RXHEP','SCBdz','../v2/browserstackCLI','version','OltTY','parse','lib','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','bStackParams','bsParams','YMUDE','PLAYWRIGHT_DISPATCH','XedGs','setupBrowserDetails','Page','platformName','rwznt','info','pqrhM','defineProperty','BSTACK_ATS_URL','1661kiosIG','safari','BROWSERSTACK_TEST_OBSERVABILITY','Failed\x20to\x20perform\x20scan\x20','QYEDr','Jqsea','ewhaO','8GSUsZw','HsiaN','noALg','turboscale','oUnsi','cfBnB','dRSdT','../utils/clientTroubleshootingService.js','connectOptions','QPIJe','OWbur','../../helpers/helper','unknown_grid','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','../../helpers/test-observability/error-handler','bsSessionId','JdLUp','bstackPerformA11yScan','sessionId','currentTest','wNTAr','PvYok','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','NolCP','Driver\x20Scan\x20result=','message','YqCLS','kEsAn','YAjZn','isRemote','product','kzIah','bFWnE','RKJvG','patchCRConnection','3VMIsTF','vGqCN','dzFte','prototype','tuKkj','Rscgk','testInfo','JKGNS','udsXg','../../helpers/test-observability/constants','assign','currentSessionDetails','UvzqP','nXTYI','WGXgs','__workerDetails','ulJgi','reportSessionLinkingIssue','browser_version','server','hiThU','Setting\x20session\x20id\x20received\x20from\x20BS\x20','firefox','NDdeL','Page\x20Scan\x20result=','caps','FoIRq','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','sessionError','../../helpers/accessibility-automation/helper','browserstack','jAkEZ','wtrxe','project','hMUbq','oveez','CRConnection','platform','includes','SaXbT','Device\x20Model\x20is\x20not\x20available','rEPlk','AZtVf','toLowerCase','compareVersions','1053944vqkAVn','zvoMH','LJPAc','JYevX','ehMhe','1748313cFfOah','../../helpers/test-observability/utils','browserName','shouldWrapCommand','_defaultConnectOptions','zlwOK','mXbvq','1888520BFQdRV','DOlhS','Cpinv','env','5839002CAjkWg','KUuGW','join','PLAYWRIGHT','6TifkcX','ZJcbJ','kpqVv','edge','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','titlePath','performScan','sendMessageToServer','debug','function','trackEvent','996086SJqBSQ','getInstance','exports','../../helpers/accessibility-automation/accessibilityRetryHelper.js','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','XFTBF','Not\x20able\x20to\x20import\x20crConnection','getFrameworkVersion','EqVWd','capabilities','url','TSeig','kkkDv','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','SCXTc','mKSUY','../v2/state/automationFrameworkState.js','./accessibility-helper','format','platform_version','patchConnection','../v2/state/hookState.js','VJIoF','getDetails','_type','toString','../../helpers/logger','BTHjb','winstonLogger','fromEntries','platformDetails','zlpTX','24740LXUbhE','_bstackDispatchPatched','Not\x20able\x20to\x20resolve\x20Connection\x20class','test','../utils/constants','Connection','iFyMa','MKXlp','OvuEP','chrome','use','browser','kQual','platformVersion','Ktbvh'];a56_0xa369=function(){return _0x34b671;};return a56_0xa369();}(function(_0x529470,_0x547d16){const _0x38e03b=a56_0x5c4a,_0x1dd56b=_0x529470();while(!![]){try{const _0x4a27cd=parseInt(_0x38e03b(0x6f))/0x1+-parseInt(_0x38e03b(0x118))/0x2*(-parseInt(_0x38e03b(0xcc))/0x3)+parseInt(_0x38e03b(0xf9))/0x4+-parseInt(_0x38e03b(0x105))/0x5*(parseInt(_0x38e03b(0x10d))/0x6)+-parseInt(_0x38e03b(0xfe))/0x7+-parseInt(_0x38e03b(0xa8))/0x8*(parseInt(_0x38e03b(0x109))/0x9)+parseInt(_0x38e03b(0x138))/0xa*(parseInt(_0x38e03b(0xa1))/0xb);if(_0x4a27cd===_0x547d16)break;else _0x1dd56b['push'](_0x1dd56b['shift']());}catch(_0x37ad62){_0x1dd56b['push'](_0x1dd56b['shift']());}}}(a56_0xa369,0x50d22));function a56_0x5c4a(_0x25a50d,_0x54b15b){const _0xa369db=a56_0xa369();return a56_0x5c4a=function(_0x5c4ace,_0x4d5d06){_0x5c4ace=_0x5c4ace-0x6c;let _0x168d6f=_0xa369db[_0x5c4ace];return _0x168d6f;},a56_0x5c4a(_0x25a50d,_0x54b15b);}const path=require('path'),url=require(a56_0x1542e2(0x122)),util=require('util'),helper=require(a56_0x1542e2(0xb3)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a56_0x1542e2(0xb3)),{o11yErrorHandler}=require(a56_0x1542e2(0xb6)),{debug,getPlatformDetails}=require(a56_0x1542e2(0xff)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a56_0x1542e2(0xe9)),{FRAMEWORKS}=require(a56_0x1542e2(0xd5)),logger=require(a56_0x1542e2(0x132))[a56_0x1542e2(0x134)],scripts=require(a56_0x1542e2(0x72)),{browserStackExecuteDriver}=require('../../bin/playwright/accessibility-helper'),AccessibilityHelper=require(a56_0x1542e2(0x129)),constants=require(a56_0x1542e2(0x13c)),BrowserstackCLI=require(a56_0x1542e2(0x8e)),AutomationFrameworkState=require(a56_0x1542e2(0x128)),HookState=require(a56_0x1542e2(0x12d)),{performScanWithRetry}=require(a56_0x1542e2(0x11b)),ClientTroubleShootingService=require(a56_0x1542e2(0xaf)),getBrowserNameFromChannel=_0x4a5ca9=>{const _0x4ceb3a=a56_0x1542e2,_0xf577bf={};_0xf577bf['KUuGW']=_0x4ceb3a(0x86),_0xf577bf[_0x4ceb3a(0xeb)]=_0x4ceb3a(0xa2),_0xf577bf[_0x4ceb3a(0x10f)]=_0x4ceb3a(0xe2),_0xf577bf[_0x4ceb3a(0x6e)]=_0x4ceb3a(0x75),_0xf577bf['oUnsi']=_0x4ceb3a(0x141),_0xf577bf[_0x4ceb3a(0xce)]=function(_0x3d59f2,_0x5ef43a){return _0x3d59f2===_0x5ef43a;},_0xf577bf[_0x4ceb3a(0xa9)]='webkit',_0xf577bf[_0x4ceb3a(0x13f)]=_0x4ceb3a(0x110);const _0x19332f=_0xf577bf,_0x1d5d47=_0x19332f[_0x4ceb3a(0x10a)]['split']('|');let _0x8ed47c=0x0;while(!![]){switch(_0x1d5d47[_0x8ed47c++]){case'0':if(_0x4a5ca9[_0x4ceb3a(0xf2)](_0x19332f[_0x4ceb3a(0xeb)]))return _0x19332f[_0x4ceb3a(0xeb)];continue;case'1':if(_0x4a5ca9['includes'](_0x19332f['kpqVv']))return _0x19332f[_0x4ceb3a(0x10f)];continue;case'2':if(_0x4a5ca9['includes'](_0x19332f[_0x4ceb3a(0x6e)]))return _0x19332f[_0x4ceb3a(0x6e)];continue;case'3':if(_0x4a5ca9[_0x4ceb3a(0xf2)](_0x19332f[_0x4ceb3a(0xac)]))return _0x19332f['oUnsi'];continue;case'4':if(_0x19332f[_0x4ceb3a(0xce)](_0x4a5ca9,_0x19332f['HsiaN']))return _0x19332f[_0x4ceb3a(0xa9)];continue;case'5':if(_0x4a5ca9[_0x4ceb3a(0xf2)](_0x19332f[_0x4ceb3a(0x13f)]))return _0x19332f[_0x4ceb3a(0x13f)];continue;}break;}},getBrowserFromWSEndpoint=_0x55262b=>{const _0x30c448=a56_0x1542e2,_0x5b3a3d={'oveez':_0x30c448(0x141),'lpSBR':function(_0xb8ddaa,_0x986588){return _0xb8ddaa(_0x986588);}};try{const _0x58ab99=url[_0x30c448(0x91)](_0x55262b),_0x48fbf2=new URLSearchParams(_0x58ab99['query']),_0x1b3ead=Object[_0x30c448(0x135)](_0x48fbf2[_0x30c448(0x84)]()),_0x5bb84b=JSON[_0x30c448(0x91)](_0x1b3ead[_0x30c448(0xe5)]);if(_0x5bb84b&&(_0x5bb84b[_0x30c448(0x143)]||_0x5bb84b[_0x30c448(0x100)]))return _0x5bb84b['browser']||_0x5bb84b[_0x30c448(0x100)];return _0x5b3a3d[_0x30c448(0xef)];}catch(_0xc404aa){_0x5b3a3d['lpSBR'](debug,_0x30c448(0x82)+_0xc404aa[_0x30c448(0x131)]());}},getCloudProviderFromWsEndpoint=_0x1426a8=>{const _0xaf89d1=a56_0x1542e2,_0x537aa0={};_0x537aa0[_0xaf89d1(0xda)]=_0xaf89d1(0xea),_0x537aa0[_0xaf89d1(0xfa)]=_0xaf89d1(0xb4);const _0x30ce06=_0x537aa0;if(_0x1426a8[_0xaf89d1(0xf2)](constants['BSTACK_URL'])||_0x1426a8[_0xaf89d1(0xf2)](constants[_0xaf89d1(0xa0)]))return _0x30ce06[_0xaf89d1(0xda)];return _0x30ce06[_0xaf89d1(0xfa)];},a56_0x1d1c61={};a56_0x1d1c61[a56_0x1542e2(0x78)]=undefined,a56_0x1d1c61[a56_0x1542e2(0xb7)]=undefined,a56_0x1d1c61[a56_0x1542e2(0x143)]=undefined,a56_0x1d1c61[a56_0x1542e2(0xde)]=undefined,a56_0x1d1c61[a56_0x1542e2(0xf1)]=undefined,a56_0x1d1c61['platform_version']=undefined,a56_0x1d1c61[a56_0x1542e2(0xc7)]=undefined,a56_0x1d1c61[a56_0x1542e2(0x121)]={};class PlaywrightSessionDetails{static [a56_0x1542e2(0xd7)]=a56_0x1d1c61;constructor(){const _0xe6c0c4=a56_0x1542e2,_0x23c6f9={};_0x23c6f9[_0xe6c0c4(0x6c)]='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x57255c=_0x23c6f9;throw new Error(_0x57255c['kQual']);}static [a56_0x1542e2(0xe8)]=null;static[a56_0x1542e2(0x99)](_0x17247c,_0x21b372,_0x35e471=null){const _0x1030eb=a56_0x1542e2,_0x35a8f9={'hiThU':function(_0x3f8c33,_0x2d5f88){return _0x3f8c33===_0x2d5f88;},'VJIoF':_0x1030eb(0x116),'JKGNS':_0x1030eb(0xe7),'JsaaO':function(_0x3ff8a0,_0x9d5032){return _0x3ff8a0===_0x9d5032;},'FJrHV':_0x1030eb(0xf4),'etdcG':_0x1030eb(0x81),'Rscgk':function(_0xf29350,_0x2c0d39,_0x879b3b){return _0xf29350(_0x2c0d39,_0x879b3b);},'wNTAr':_0x1030eb(0x74),'kzIah':_0x1030eb(0x102),'nXTYI':function(_0x20690a,_0x5ab133,_0x42f1c6){return _0x20690a(_0x5ab133,_0x42f1c6);},'TRLKR':_0x1030eb(0xed),'Jqsea':_0x1030eb(0x142),'JxGbs':_0x1030eb(0xb0),'dRSdT':function(_0x5d84d5,_0x219211){return _0x5d84d5(_0x219211);},'KlulS':function(_0x2d49f7,_0x5efe26){return _0x2d49f7===_0x5efe26;},'ehMhe':_0x1030eb(0xea),'RXHEP':_0x1030eb(0xab),'NDdeL':'automate','zlwOK':function(_0x1908fd){return _0x1908fd();},'mOFIU':function(_0x232bde,_0x2ca884){return _0x232bde&&_0x2ca884;},'DOlhS':function(_0x564f5a){return _0x564f5a();},'OWbur':function(_0x565fb5,_0x5be265){return _0x565fb5(_0x5be265);},'cfBnB':function(_0x4e5f21,_0x13fadf){return _0x4e5f21+_0x13fadf;},'SCXTc':'playwright-','BTHjb':function(_0x5a412b){return _0x5a412b();},'kEsAn':_0x1030eb(0x99)},_0x37f440=this;return _0x35a8f9[_0x1030eb(0xd9)](o11yErrorHandler,async function _0x116b68(_0xf0e31,_0x190d79,_0xbfa0a5=null){const _0xe5d811=_0x1030eb;let _0x110a86=_0xf0e31[_0xe5d811(0x77)],_0x56d7f9=null;_0xf0e31&&_0x35a8f9[_0xe5d811(0xe0)](typeof _0xf0e31['version'],_0x35a8f9[_0xe5d811(0x12e)])?_0x56d7f9=_0xf0e31[_0xe5d811(0x8f)]():logger[_0xe5d811(0x115)](_0x35a8f9[_0xe5d811(0xd3)]);let _0x1fd0d9=null;_0xf0e31&&_0x35a8f9['JsaaO'](typeof _0xf0e31[_0xe5d811(0x70)],_0x35a8f9[_0xe5d811(0x12e)])?_0x1fd0d9=_0xf0e31[_0xe5d811(0x70)]():logger['debug'](_0x35a8f9['FJrHV']);let _0x2f2173=null,_0xbdf9df=null,_0x30d859=null,_0x495e81=_0x35a8f9['etdcG'];if(_0xf0e31[_0xe5d811(0x8a)][_0xe5d811(0xc6)]()||global[_0xe5d811(0x87)]&&!process[_0xe5d811(0x108)][_0xe5d811(0xbf)]){let _0xac4da=null;_0x35a8f9[_0xe5d811(0xd1)](nestedKeyValue,_0xf0e31,[_0x35a8f9[_0xe5d811(0xbc)],_0x35a8f9[_0xe5d811(0xc8)]])?_0xac4da=_0xf0e31[_0xe5d811(0x74)][_0xe5d811(0x102)]:_0xac4da=_0x35a8f9[_0xe5d811(0xd9)](nestedKeyValue,_0x190d79,[_0x35a8f9[_0xe5d811(0x85)],_0x35a8f9[_0xe5d811(0xa6)],_0x35a8f9['JxGbs']]);const _0x5540f9=_0xbfa0a5||_0xac4da&&_0xac4da[_0xe5d811(0x88)];if(_0x5540f9){_0x495e81=_0x35a8f9[_0xe5d811(0xae)](getCloudProviderFromWsEndpoint,_0x5540f9);if(_0x35a8f9['KlulS'](_0x495e81,_0x35a8f9[_0xe5d811(0xfd)]))_0x30d859=constants['ATS_WSS_URL_REGEX'][_0xe5d811(0x13b)](_0x5540f9)?_0x35a8f9[_0xe5d811(0x8c)]:_0x35a8f9[_0xe5d811(0xe3)],_0x110a86=_0x35a8f9[_0xe5d811(0xae)](getBrowserFromWSEndpoint,_0x5540f9)||_0x110a86,_0x2f2173=_0x37f440['currentSessionDetails']['platform'],_0xbdf9df=_0x37f440[_0xe5d811(0xd7)][_0xe5d811(0x12b)];else{const _0x42131c=await _0x35a8f9[_0xe5d811(0x103)](getPlatformDetails);_0x2f2173=_0x42131c['platformName'],_0xbdf9df=_0x42131c[_0xe5d811(0x6d)];}}if(_0x35a8f9['mOFIU'](!_0x2f2173,!_0xbdf9df)&&!_0x35a8f9[_0xe5d811(0x106)](isBrowserstackInfra)){const _0x2d4168=await _0x35a8f9[_0xe5d811(0x106)](getPlatformDetails);_0x2f2173=_0x2d4168[_0xe5d811(0x9b)],_0xbdf9df=_0x2d4168['platformVersion'];}}else{_0x190d79&&_0x190d79[_0xe5d811(0xed)][_0xe5d811(0x142)]['channel']?_0x110a86=_0x35a8f9[_0xe5d811(0xb2)](getBrowserNameFromChannel,_0x190d79[_0xe5d811(0xed)][_0xe5d811(0x142)]['channel']):_0x110a86=_0x35a8f9[_0xe5d811(0xad)](_0x35a8f9[_0xe5d811(0x126)],_0x110a86[_0xe5d811(0xf7)]());const _0x398f31=await _0x35a8f9[_0xe5d811(0x133)](getPlatformDetails);_0x2f2173=_0x398f31[_0xe5d811(0x9b)],_0xbdf9df=_0x398f31['platformVersion'];}const _0x57aa4a={};_0x57aa4a[_0xe5d811(0x143)]=_0x110a86,_0x57aa4a[_0xe5d811(0xde)]=_0x56d7f9,_0x57aa4a['capabilities']={},_0x57aa4a[_0xe5d811(0xf1)]=_0x2f2173,_0x57aa4a[_0xe5d811(0x12b)]=_0xbdf9df,_0x57aa4a['product']=_0x30d859;const _0x5ddf00=_0x57aa4a;_0x1fd0d9&&(_0x5ddf00[_0xe5d811(0x121)]['deviceModel']=_0x1fd0d9);const _0x14f816={};_0x14f816[_0xe5d811(0x78)]=_0x495e81,_0x37f440[_0xe5d811(0xd7)]=Object[_0xe5d811(0xd6)]({},_0x37f440[_0xe5d811(0xd7)],_0x14f816,_0x5ddf00);},_0x35a8f9[_0x1030eb(0xc4)])(_0x17247c,_0x21b372,_0x35e471);}static[a56_0x1542e2(0x73)](){const _0x184037=a56_0x1542e2;this[_0x184037(0x12c)](),this[_0x184037(0xcb)]();}static[a56_0x1542e2(0x12c)](){const _0x54d3f9=a56_0x1542e2,_0x333d6={'AZtVf':function(_0x3ff835,_0x1215c7,_0x254018){return _0x3ff835(_0x1215c7,_0x254018);},'mXbvq':_0x54d3f9(0xbb),'EqVWd':_0x54d3f9(0xd2),'PvYok':_0x54d3f9(0x112),'UvzqP':function(_0x28e405,_0x31a532,_0x57b952){return _0x28e405(_0x31a532,_0x57b952);},'OvuEP':function(_0x1dbd45,_0x633cc5,_0xe32c65){return _0x1dbd45(_0x633cc5,_0xe32c65);},'SaXbT':_0x54d3f9(0xdb),'ZJcbJ':_0x54d3f9(0x7e),'QYEDr':function(_0x2859be,_0x2429e5){return _0x2859be===_0x2429e5;},'FoIRq':_0x54d3f9(0x9a),'DKrhi':function(_0x3b29d2,_0x5cdfc4,_0x431fc6,_0x4a0238){return _0x3b29d2(_0x5cdfc4,_0x431fc6,_0x4a0238);},'tIpSw':function(_0x25bfd5,_0x28950a){return _0x25bfd5||_0x28950a;},'noALg':function(_0x5bf522,_0xed48f3){return _0x5bf522(_0xed48f3);},'rwznt':_0x54d3f9(0x13a),'exmCO':function(_0x72418e,_0x26e88c){return _0x72418e!=_0x26e88c;},'nMgVd':function(_0x31abb6,_0x2f38c2){return _0x31abb6!=_0x2f38c2;},'mKSUY':function(_0x32d228){return _0x32d228();},'TSeig':_0x54d3f9(0x114),'PJWGK':function(_0x268d8f,_0x21307c){return _0x268d8f(_0x21307c);},'Cpinv':'dispatch','SvswO':_0x54d3f9(0x111),'PcinU':function(_0x4935b4,_0x382eea){return _0x4935b4(_0x382eea);}},_0xb2f708=this;!this[_0x54d3f9(0x13d)]&&(this['Connection']=helper[_0x54d3f9(0x83)](),!this[_0x54d3f9(0x13d)]&&_0x333d6['noALg'](debug,_0x333d6[_0x54d3f9(0x9c)]));const _0x44ba65=this[_0x54d3f9(0x13d)];if(_0x333d6[_0x54d3f9(0x71)](_0x44ba65,null)&&_0x44ba65[_0x54d3f9(0xcf)][_0x54d3f9(0x139)])return;try{if(_0x333d6['nMgVd'](_0x44ba65,null)){const _0x1d7c2c=_0x44ba65[_0x54d3f9(0xcf)]['dispatch'],_0x266f74=_0x44ba65[_0x54d3f9(0xcf)][_0x54d3f9(0x114)];_0x333d6[_0x54d3f9(0x127)](isAccessibilityAutomationSession)&&Object[_0x54d3f9(0x9f)](_0x44ba65[_0x54d3f9(0xcf)],_0x333d6[_0x54d3f9(0x123)],{'get':function(){const _0x4bb865=_0x54d3f9,_0x47b17b={'TrFbz':function(_0x3d7652,_0x46f821,_0x8aee0b){const _0xedeb9f=a56_0x5c4a;return _0x333d6[_0xedeb9f(0xf6)](_0x3d7652,_0x46f821,_0x8aee0b);},'OltTY':_0x333d6[_0x4bb865(0x104)],'JdLUp':_0x333d6[_0x4bb865(0x120)],'udsXg':_0x333d6[_0x4bb865(0xbd)],'upWnK':function(_0x1440b7,_0x1f459e,_0x5bbfd8){const _0x47e400=_0x4bb865;return _0x333d6[_0x47e400(0xd8)](_0x1440b7,_0x1f459e,_0x5bbfd8);},'LJPAc':function(_0x4942ec,_0x218a24,_0x503851){const _0x189d75=_0x4bb865;return _0x333d6[_0x189d75(0x140)](_0x4942ec,_0x218a24,_0x503851);},'RKJvG':_0x333d6[_0x4bb865(0xf3)],'pqrhM':_0x333d6[_0x4bb865(0x10e)],'YAjZn':function(_0x285e31,_0x4fe1d2,_0x427054){return _0x333d6['OvuEP'](_0x285e31,_0x4fe1d2,_0x427054);},'NolCP':function(_0x41ef8c,_0x176037){const _0x477e80=_0x4bb865;return _0x333d6[_0x477e80(0xa5)](_0x41ef8c,_0x176037);},'wtrxe':_0x333d6[_0x4bb865(0xe6)],'QPIJe':function(_0x2bc19b,_0x31b741,_0x4c7323,_0x2392ff){return _0x333d6['DKrhi'](_0x2bc19b,_0x31b741,_0x4c7323,_0x2392ff);}};return async function(){const _0x4e667d=_0x4bb865;try{if(!global['bstackPerformA11yScan']&&global[_0x4e667d(0x87)]&&_0x47b17b[_0x4e667d(0x89)](nestedKeyValue,global[_0x4e667d(0xdb)],[_0x47b17b[_0x4e667d(0x90)],_0x47b17b[_0x4e667d(0xb8)],_0x47b17b[_0x4e667d(0xd4)]])&&_0x47b17b['upWnK'](shouldScanTestForAccessibility,global['__workerDetails'][_0x4e667d(0xbb)][_0x4e667d(0xd2)][_0x4e667d(0x112)],!![])&&scripts[_0x4e667d(0x101)](arguments[0x1])){logger[_0x4e667d(0x115)]('Performing\x20scan\x20for\x20'+arguments[0x1]),global[_0x4e667d(0xb9)]=!![];const _0x577e61=_0x47b17b[_0x4e667d(0xfb)](nestedKeyValue,global,[_0x47b17b[_0x4e667d(0xca)],_0x47b17b[_0x4e667d(0x9e)]]);_0x577e61&&logger[_0x4e667d(0x9d)](_0x4e667d(0xe4)+util[_0x4e667d(0x12a)](await _0x47b17b[_0x4e667d(0xc5)](performScanWithRetry,_0x577e61,arguments[0x1]))),_0x47b17b[_0x4e667d(0xc0)](arguments[0x0][_0x4e667d(0x130)],_0x47b17b[_0x4e667d(0xec)])&&global[_0x4e667d(0x79)]&&logger['info'](_0x4e667d(0xc1)+util[_0x4e667d(0x12a)](await _0x47b17b[_0x4e667d(0xb1)](performScanWithRetry,global[_0x4e667d(0x79)],arguments[0x1],scripts[_0x4e667d(0x113)])));}}catch(_0x48db46){logger['debug'](_0x4e667d(0xa4)+util[_0x4e667d(0x12a)](_0x48db46));}return global[_0x4e667d(0xb9)]=![],_0x266f74['apply'](this,arguments);};}}),!_0x333d6['PJWGK'](isFalse,process['env'][_0x54d3f9(0xa3)])&&Object[_0x54d3f9(0x9f)](_0x44ba65['prototype'],_0x333d6[_0x54d3f9(0x107)],{'get':function(){const _0x3ffe2e={'XedGs':function(_0x4ec3b3,_0x381f6a){return _0x333d6['tIpSw'](_0x4ec3b3,_0x381f6a);},'rhkEl':function(_0x1cb13c,_0x5abe72){const _0x1b3e35=a56_0x5c4a;return _0x333d6[_0x1b3e35(0xaa)](_0x1cb13c,_0x5abe72);}};return async function _0x1c4a4d(_0x5cd22b){const _0x4464e2=a56_0x5c4a;if(BrowserstackCLI[_0x4464e2(0x119)]()['isRunning']()){const _0xdcca0={};_0xdcca0[_0x4464e2(0xc2)]=_0x5cd22b,await BrowserstackCLI['getInstance']()[_0x4464e2(0x7a)]()['trackEvent'](AutomationFrameworkState[_0x4464e2(0x97)],HookState['POST'],_0xdcca0);}else{const _0x3c72e1=_0x5cd22b&&_0x5cd22b[_0x4464e2(0x7c)]&&_0x5cd22b['params'][_0x4464e2(0x95)];if(_0x3c72e1){const _0x2c937b=_0x3c72e1[_0x4464e2(0xba)],_0x34d5e2=_0x3c72e1[_0x4464e2(0x136)];_0x3ffe2e[_0x4464e2(0x98)](!_0x2c937b,!_0x34d5e2)&&await ClientTroubleShootingService[_0x4464e2(0xdd)](),_0x34d5e2&&(_0x3ffe2e['rhkEl'](debug,_0x4464e2(0x93)+_0x34d5e2[_0x4464e2(0x131)]()),_0xb2f708[_0x4464e2(0xd7)][_0x4464e2(0xf1)]=_0x34d5e2['platformName'],_0xb2f708['currentSessionDetails'][_0x4464e2(0x12b)]=_0x34d5e2[_0x4464e2(0x6d)]),_0x2c937b&&(_0x3ffe2e['rhkEl'](debug,_0x4464e2(0xe1)+_0x2c937b),_0xb2f708[_0x4464e2(0xd7)]['bsSessionId']=_0x2c937b);}}return _0x1d7c2c['apply'](this,arguments);};}}),_0x44ba65[_0x54d3f9(0xcf)]['_bstackDispatchPatched']=!![],logger['debug'](_0x333d6[_0x54d3f9(0x7b)]);}}catch(_0x1a4c1e){_0x333d6[_0x54d3f9(0x8b)](debug,_0x54d3f9(0x11c)+_0x1a4c1e),_0xb2f708['sessionError']=_0x1a4c1e[_0x54d3f9(0x131)]();}}static[a56_0x1542e2(0xcb)](){const _0x48ef13=a56_0x1542e2,_0x38e8bc={'XFTBF':function(_0x537638,_0x5ba6aa){return _0x537638(_0x5ba6aa);},'rEPlk':function(_0x1d3c0f,_0x2d75c5){return _0x1d3c0f(_0x2d75c5);},'JYevX':function(_0xe6c1e3){return _0xe6c1e3();},'YqCLS':function(_0x384a03,_0x23b6d1){return _0x384a03>=_0x23b6d1;},'gviaF':_0x48ef13(0x7f),'UgdKu':function(_0x432277,_0x117f6e){return _0x432277(_0x117f6e);},'bFWnE':_0x48ef13(0x125),'hMUbq':_0x48ef13(0x92),'vGqCN':_0x48ef13(0xdf),'zlpTX':'chromium','ewhaO':_0x48ef13(0x80),'WtYRy':function(_0x52c9f1,_0x317757){return _0x52c9f1(_0x317757);},'oFBHJ':function(_0x5e4752,_0x34a6a1){return _0x5e4752(_0x34a6a1);},'ulJgi':_0x48ef13(0x11e),'tuKkj':function(_0x464970,_0x17a645){return _0x464970(_0x17a645);},'kkkDv':'Error\x20in\x20importing\x20crConnection','iFyMa':function(_0x6b956b,_0x43f112){return _0x6b956b!=_0x43f112;},'YMUDE':'_onMessage','SCBdz':function(_0x2cb079,_0x17ff5a){return _0x2cb079(_0x17ff5a);}},_0x21031d=this;if(_0x38e8bc[_0x48ef13(0xfc)](isAccessibilityAutomationSession)){let _0x332c31=null,_0x238050=![];try{const _0x387e13=helper[_0x48ef13(0x11f)](FRAMEWORKS[_0x48ef13(0x10c)]);_0x238050=_0x38e8bc[_0x48ef13(0xc3)](helper[_0x48ef13(0xf8)](_0x387e13,_0x38e8bc['gviaF']),0x0);}catch(_0x1561a8){_0x38e8bc['UgdKu'](debug,'Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20'+_0x1561a8[_0x48ef13(0x131)]());}if(_0x238050)_0x38e8bc['XFTBF'](debug,_0x38e8bc[_0x48ef13(0xc9)]);else try{const _0x2d3a8a=path[_0x48ef13(0x10b)](_0x38e8bc[_0x48ef13(0xee)],_0x38e8bc[_0x48ef13(0xcd)],_0x38e8bc[_0x48ef13(0x137)],_0x38e8bc[_0x48ef13(0xa7)]),_0x50ddbd=_0x38e8bc['WtYRy'](importFileFromPWCore,_0x2d3a8a);!_0x50ddbd?_0x38e8bc[_0x48ef13(0x7d)](debug,_0x38e8bc[_0x48ef13(0xdc)]):_0x332c31=_0x50ddbd[_0x48ef13(0xf0)];}catch(_0x53b471){_0x38e8bc[_0x48ef13(0xd0)](debug,_0x38e8bc[_0x48ef13(0x124)]);}try{if(_0x38e8bc[_0x48ef13(0x13e)](_0x332c31,null)){const _0x25f75b=_0x332c31[_0x48ef13(0xcf)]['_onMessage'];Object[_0x48ef13(0x9f)](_0x332c31[_0x48ef13(0xcf)],_0x38e8bc[_0x48ef13(0x96)],{'get':function(){return async function _0x1c6912(_0x314225){const _0x35dc6d=a56_0x5c4a;try{if(BrowserstackCLI[_0x35dc6d(0x119)]()['isRunning']()){const _0x442bb2={};_0x442bb2[_0x35dc6d(0xc2)]=_0x314225,await BrowserstackCLI[_0x35dc6d(0x119)]()[_0x35dc6d(0x7a)]()[_0x35dc6d(0x117)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState['POST'],_0x442bb2),delete _0x314225[_0x35dc6d(0x94)];}else{const _0x1919d2=_0x314225[_0x35dc6d(0x94)];if(_0x1919d2){delete _0x314225['bStackParams'];const _0x4a1511=_0x1919d2[_0x35dc6d(0xba)],_0x123421=_0x1919d2[_0x35dc6d(0x136)];_0x123421&&(_0x38e8bc[_0x35dc6d(0x11d)](debug,_0x35dc6d(0xbe)+_0x123421[_0x35dc6d(0x131)]()),_0x21031d['currentSessionDetails']['platform']=_0x123421[_0x35dc6d(0x9b)],_0x21031d[_0x35dc6d(0xd7)]['platform_version']=_0x123421[_0x35dc6d(0x6d)]),_0x4a1511&&(_0x38e8bc[_0x35dc6d(0xf5)](debug,_0x35dc6d(0x76)+_0x4a1511),_0x21031d[_0x35dc6d(0xd7)][_0x35dc6d(0xb7)]=_0x4a1511);}}}catch(_0x33ff07){_0x38e8bc['rEPlk'](debug,'Error\x20in\x20finding\x20platform\x20details\x20'+_0x33ff07['toString']());}return _0x25f75b['apply'](this,arguments);};}});}}catch(_0x1640f9){_0x38e8bc[_0x48ef13(0x8d)](debug,_0x48ef13(0xb5)+_0x1640f9),_0x21031d['sessionError']=_0x1640f9[_0x48ef13(0x131)]();}}}static[a56_0x1542e2(0x12f)](){const _0x21bb22=a56_0x1542e2;return this[_0x21bb22(0xd7)];}}module[a56_0x1542e2(0x11a)]=PlaywrightSessionDetails;
1
+ const a56_0x10035b=a56_0x511a;(function(_0x503bdb,_0x3f3496){const _0x745327=a56_0x511a,_0x534fb1=_0x503bdb();while(!![]){try{const _0x2d056d=-parseInt(_0x745327(0x227))/0x1*(-parseInt(_0x745327(0x247))/0x2)+parseInt(_0x745327(0x23b))/0x3+parseInt(_0x745327(0x273))/0x4*(parseInt(_0x745327(0x26e))/0x5)+-parseInt(_0x745327(0x241))/0x6*(parseInt(_0x745327(0x203))/0x7)+-parseInt(_0x745327(0x19e))/0x8*(-parseInt(_0x745327(0x1a4))/0x9)+parseInt(_0x745327(0x1c2))/0xa+-parseInt(_0x745327(0x27a))/0xb*(parseInt(_0x745327(0x1e9))/0xc);if(_0x2d056d===_0x3f3496)break;else _0x534fb1['push'](_0x534fb1['shift']());}catch(_0x2008da){_0x534fb1['push'](_0x534fb1['shift']());}}}(a56_0x1f5b,0xc4600));function a56_0x1f5b(){const _0x304b49=['browser','Page\x20Scan\x20result=','PLAYWRIGHT_DISPATCH','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','sessionId','6289110fYGPig','lmWyT','message','../utils/clientTroubleshootingService.js','isRemote','bsParams','Page','jlqwv','browser_version','includes','nMFhw','patchConnection','safari','RzLzj','fPLBm','bstackPerformA11yScan','pwPage','defineProperty','lib','Not\x20able\x20to\x20resolve\x20Connection\x20class','cloudProvider','kxyNP','deviceModel','path','patchCRConnection','Connection','getInstance','../../bin/playwright/accessibility-helper','capabilities','AyZtq','3744220nvFpFC','JczIF','ZsZUB','__driver','isRunning','MiANK','server','platformName','currentSessionDetails','Error\x20in\x20finding\x20platform\x20details\x20','apply','debug','AZFOo','EzlMG','url','function','dhYEV','version','playwright','yyHSP','../../helpers/test-observability/constants','CzJRR','BROWSERSTACK_TEST_OBSERVABILITY','Viaao','trackEvent','winstonLogger','project','TwevQ','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','PLAYWRIGHT','KVzMG','ndbYQ','parse','ATS_WSS_URL_REGEX','platform_version','syBll','_browserType','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','BSTACK_URL','12850428JyrCza','vMgeR','MMaFG','_connection','env','XZNtp','sessionError','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','hMrSv','KSAiC','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','Setting\x20session\x20id\x20received\x20from\x20BS\x20','JSJCq','PCymv','OQSHA','chrome','shouldWrapCommand','NQMUe','../v2/state/hookState.js','2|6|0|3|5|7|4|1','../../helpers/test-observability/utils','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','Setting\x20session\x20id\x20received\x20from\x20browserstack\x20','prototype','aDftm','IFcaP','21CwwYxw','qHKIN','../v2/browserstackCLI','firefox','use','SaFVS','jYQBS','chromium','XJCOt','setupBrowserDetails:\x20browser\x20param\x20is\x20nil;\x20populating\x20playwright\x20fallback\x20so\x20TRA\x20does\x20not\x20render\x20\x22Unknown\x22','pUVxc','IjYby','wsEndpoint','currentTest','_onMessage','edge','format','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','browserName','../../helpers/logger','YStTG','Performing\x20scan\x20for\x20','compareVersions','PtIhN','iUpFJ','string','JRUnQ','Error\x20in\x20importing\x20crConnection','rWkHn','util','Driver\x20Scan\x20result=','yJdFi','QuQVi','MPxnP','LPxIx','accessibilityPlatform','536MbmaRs','CBtmo','browserstack','_type','LSqvv','CRConnection','cLrDL','MnIjM','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','../../helpers/test-observability/error-handler','product','Failed\x20to\x20perform\x20scan\x20','jzNIQ','../../helpers/accessibility-automation/accessibilityRetryHelper.js','turboscale','titlePath','AxLin','BSTACK_ATS_URL','resolveConnectionClass','dispatch','3619536XgAXaI','platform','toString','exports','split','_name','290946rNhWZL','xHRgg','bsSessionId','cUTjo','platformDetails','platformVersion','1280tklhRH','BPnGG','YSlLn','WkUzy','_bstackDispatchPatched','1.60.0','join','performScan','mGCIE','connectOptions','bIrnl','kmyXJ','sendMessageToServer','ZvKqo','model','../../helpers/helper','NViNn','query','POST','automate','getAutomationFramework','gxCCf','hUmCN','params','__workerDetails','RnkNP','testInfo','PmURu','unknown_grid','GkDCv','yiyjx','assign','ugiBc','CTrlE','QIIAe','crConnection.js','ltEdI','channel','Device\x20Model\x20is\x20not\x20available','296090UotFWn','bjFRb','info','playwright-','qOEXd','104EyOBIG','riclJ','ahVgb','smnvK','eevhi','reportSessionLinkingIssue','bStackParams','33HlAnbb','../utils/constants','npwvQ','8SFqqCm'];a56_0x1f5b=function(){return _0x304b49;};return a56_0x1f5b();}const path=require(a56_0x10035b(0x1bb)),url=require(a56_0x10035b(0x1d0)),util=require(a56_0x10035b(0x220)),helper=require(a56_0x10035b(0x256)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a56_0x10035b(0x256)),{o11yErrorHandler}=require(a56_0x10035b(0x230)),{debug,getPlatformDetails}=require(a56_0x10035b(0x1fd)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{FRAMEWORKS}=require(a56_0x10035b(0x1d6)),logger=require(a56_0x10035b(0x216))[a56_0x10035b(0x1db)],scripts=require('../../helpers/accessibility-automation/scripts'),{browserStackExecuteDriver}=require(a56_0x10035b(0x1bf)),AccessibilityHelper=require('./accessibility-helper'),constants=require(a56_0x10035b(0x27b)),BrowserstackCLI=require(a56_0x10035b(0x205)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a56_0x10035b(0x1fb)),{performScanWithRetry}=require(a56_0x10035b(0x234)),ClientTroubleShootingService=require(a56_0x10035b(0x1a7)),getBrowserNameFromChannel=_0x3573a6=>{const _0x581edc=a56_0x10035b,_0x2e7f48={};_0x2e7f48[_0x581edc(0x21b)]=_0x581edc(0x1fc),_0x2e7f48[_0x581edc(0x222)]=_0x581edc(0x1f8),_0x2e7f48['IjyzQ']=function(_0x389b86,_0x1d10b7){return _0x389b86!==_0x1d10b7;},_0x2e7f48[_0x581edc(0x249)]=_0x581edc(0x21c),_0x2e7f48['NViNn']='chromium',_0x2e7f48[_0x581edc(0x208)]=_0x581edc(0x212),_0x2e7f48[_0x581edc(0x1c1)]=function(_0x476ba0,_0x1a4bac){return _0x476ba0===_0x1a4bac;},_0x2e7f48[_0x581edc(0x22d)]='webkit',_0x2e7f48[_0x581edc(0x223)]=_0x581edc(0x206),_0x2e7f48[_0x581edc(0x20b)]=_0x581edc(0x1b0);const _0x584451=_0x2e7f48,_0x1f1187=_0x584451[_0x581edc(0x21b)][_0x581edc(0x23f)]('|');let _0x1809f6=0x0;while(!![]){switch(_0x1f1187[_0x1809f6++]){case'0':if(_0x3573a6['includes'](_0x584451['yJdFi']))return _0x584451[_0x581edc(0x222)];continue;case'1':return _0x3573a6;case'2':if(!_0x3573a6||_0x584451['IjyzQ'](typeof _0x3573a6,_0x584451[_0x581edc(0x249)]))return _0x584451[_0x581edc(0x257)];continue;case'3':if(_0x3573a6['includes'](_0x584451[_0x581edc(0x208)]))return _0x584451[_0x581edc(0x208)];continue;case'4':if(_0x584451[_0x581edc(0x1c1)](_0x3573a6,_0x584451[_0x581edc(0x22d)]))return _0x584451[_0x581edc(0x22d)];continue;case'5':if(_0x3573a6[_0x581edc(0x1ad)](_0x584451['QuQVi']))return _0x584451[_0x581edc(0x223)];continue;case'6':if(_0x3573a6[_0x581edc(0x1ad)](_0x584451['NViNn']))return _0x584451[_0x581edc(0x257)];continue;case'7':if(_0x3573a6[_0x581edc(0x1ad)](_0x584451[_0x581edc(0x20b)]))return _0x584451[_0x581edc(0x20b)];continue;}break;}},getBrowserFromWSEndpoint=_0x2a8db7=>{const _0x16de74=a56_0x10035b,_0x208914={'Viaao':_0x16de74(0x1f8),'hUmCN':function(_0x573be9,_0x6ea5f9){return _0x573be9(_0x6ea5f9);}};try{const _0x57150a=url[_0x16de74(0x1e2)](_0x2a8db7),_0xaac88f=new URLSearchParams(_0x57150a[_0x16de74(0x258)]),_0x9f321d=Object['fromEntries'](_0xaac88f['entries']()),_0x3aa637=JSON[_0x16de74(0x1e2)](_0x9f321d['caps']);if(_0x3aa637&&(_0x3aa637['browser']||_0x3aa637[_0x16de74(0x215)]))return _0x3aa637[_0x16de74(0x19f)]||_0x3aa637[_0x16de74(0x215)];return _0x208914[_0x16de74(0x1d9)];}catch(_0x46a97e){_0x208914[_0x16de74(0x25d)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x46a97e[_0x16de74(0x23d)]());}},getCloudProviderFromWsEndpoint=_0x3cc368=>{const _0x5ee4f4=a56_0x10035b,_0x110757={};_0x110757[_0x5ee4f4(0x25c)]=_0x5ee4f4(0x229),_0x110757[_0x5ee4f4(0x277)]=_0x5ee4f4(0x263);const _0x2c3e58=_0x110757;if(_0x3cc368[_0x5ee4f4(0x1ad)](constants[_0x5ee4f4(0x1e8)])||_0x3cc368[_0x5ee4f4(0x1ad)](constants[_0x5ee4f4(0x238)]))return _0x2c3e58['gxCCf'];return _0x2c3e58['eevhi'];},a56_0x4af254={};a56_0x4af254[a56_0x10035b(0x1b8)]=undefined,a56_0x4af254[a56_0x10035b(0x243)]=undefined,a56_0x4af254['browser']=undefined,a56_0x4af254[a56_0x10035b(0x1ac)]=undefined,a56_0x4af254[a56_0x10035b(0x23c)]=undefined,a56_0x4af254[a56_0x10035b(0x1e4)]=undefined,a56_0x4af254['product']=undefined,a56_0x4af254[a56_0x10035b(0x1c0)]={};function a56_0x511a(_0x1d3635,_0x1f0201){const _0x1f5bf6=a56_0x1f5b();return a56_0x511a=function(_0x511a82,_0x14eb6b){_0x511a82=_0x511a82-0x19e;let _0x1c63c3=_0x1f5bf6[_0x511a82];return _0x1c63c3;},a56_0x511a(_0x1d3635,_0x1f0201);}class PlaywrightSessionDetails{static [a56_0x10035b(0x1ca)]=a56_0x4af254;constructor(){const _0x123a85=a56_0x10035b,_0x3b04aa={};_0x3b04aa['CBtmo']=_0x123a85(0x22f);const _0x298c2f=_0x3b04aa;throw new Error(_0x298c2f[_0x123a85(0x228)]);}static [a56_0x10035b(0x1ef)]=null;static['setupBrowserDetails'](_0x40772c,_0x512eca,_0x32723=null){const _0x53d7ac=a56_0x10035b,_0x44895c={'KVzMG':_0x53d7ac(0x20c),'PtIhN':function(_0x2f3e75){return _0x2f3e75();},'IFcaP':_0x53d7ac(0x229),'qHKIN':'local_grid','lHOdZ':_0x53d7ac(0x1d4),'RzLzj':'unknown','rWkHn':function(_0x2e9e2c,_0x385057){return _0x2e9e2c===_0x385057;},'pUVxc':_0x53d7ac(0x1d1),'ahVgb':_0x53d7ac(0x214),'xHRgg':function(_0x39d0f4,_0x20c0dc){return _0x39d0f4===_0x20c0dc;},'twlaz':_0x53d7ac(0x26d),'ltEdI':function(_0x27a6a8,_0x33e952,_0x4ecdb2){return _0x27a6a8(_0x33e952,_0x4ecdb2);},'PmURu':_0x53d7ac(0x1e6),'kmyXJ':'_defaultConnectOptions','yyHSP':_0x53d7ac(0x1dc),'XZNtp':_0x53d7ac(0x207),'CTrlE':_0x53d7ac(0x250),'TwevQ':function(_0x518723,_0xf217c7){return _0x518723(_0xf217c7);},'JRUnQ':_0x53d7ac(0x235),'smnvK':_0x53d7ac(0x25a),'shYHq':function(_0x1d0b5f,_0x16880f){return _0x1d0b5f(_0x16880f);},'jlqwv':function(_0x1a4027,_0x4b36f1){return _0x1a4027&&_0x4b36f1;},'okkVr':function(_0x30aa45){return _0x30aa45();},'RnkNP':function(_0x4ca9ce,_0x5c6e56){return _0x4ca9ce+_0x5c6e56;},'jYQBS':_0x53d7ac(0x271),'BPnGG':function(_0x4c7740,_0x41e563){return _0x4c7740||_0x41e563;},'NQMUe':function(_0x2d3778){return _0x2d3778();},'lmWyT':function(_0x2a8729,_0x2162d7,_0x5e8a70){return _0x2a8729(_0x2162d7,_0x5e8a70);},'aDftm':'setupBrowserDetails'},_0x233d9a=this;return _0x44895c[_0x53d7ac(0x1a5)](o11yErrorHandler,async function _0x4640b5(_0x355fee,_0x473183,_0x2d1d08=null){const _0xe64b1c=_0x53d7ac;if(!_0x355fee){logger['debug'](_0x44895c[_0xe64b1c(0x1e0)]),_0x233d9a[_0xe64b1c(0x1ca)]=Object[_0xe64b1c(0x266)]({},_0x233d9a[_0xe64b1c(0x1ca)],{'cloudProvider':_0x44895c[_0xe64b1c(0x21a)](isBrowserstackInfra)?_0x44895c[_0xe64b1c(0x202)]:_0x44895c[_0xe64b1c(0x204)],'browser':_0x44895c['lHOdZ'],'browser_version':_0x44895c[_0xe64b1c(0x1b1)]});return;}let _0x3d755b=_0x355fee[_0xe64b1c(0x240)],_0x28b619=null;_0x355fee&&_0x44895c[_0xe64b1c(0x21f)](typeof _0x355fee[_0xe64b1c(0x1d3)],_0x44895c[_0xe64b1c(0x20d)])?_0x28b619=_0x355fee[_0xe64b1c(0x1d3)]():logger[_0xe64b1c(0x1cd)](_0x44895c[_0xe64b1c(0x275)]);let _0x1cd379=null;_0x355fee&&_0x44895c[_0xe64b1c(0x242)](typeof _0x355fee[_0xe64b1c(0x255)],_0x44895c[_0xe64b1c(0x20d)])?_0x1cd379=_0x355fee[_0xe64b1c(0x255)]():logger[_0xe64b1c(0x1cd)](_0x44895c['twlaz']);let _0x2205eb=null,_0x13a34f=null,_0x1284db=null,_0x3dbc2d=_0x44895c[_0xe64b1c(0x204)];const _0x92e39e=_0x355fee[_0xe64b1c(0x1ec)]&&_0x44895c[_0xe64b1c(0x21f)](typeof _0x355fee[_0xe64b1c(0x1ec)][_0xe64b1c(0x1a8)],_0x44895c[_0xe64b1c(0x20d)])?_0x355fee[_0xe64b1c(0x1ec)]['isRemote']():![];if(_0x92e39e||global[_0xe64b1c(0x226)]&&!process[_0xe64b1c(0x1ed)][_0xe64b1c(0x1de)]){let _0xd0cfdb=null;_0x44895c[_0xe64b1c(0x26b)](nestedKeyValue,_0x355fee,[_0x44895c[_0xe64b1c(0x262)],_0x44895c[_0xe64b1c(0x252)]])?_0xd0cfdb=_0x355fee[_0xe64b1c(0x1e6)]['_defaultConnectOptions']:_0xd0cfdb=_0x44895c['ltEdI'](nestedKeyValue,_0x473183,[_0x44895c[_0xe64b1c(0x1d5)],_0x44895c[_0xe64b1c(0x1ee)],_0x44895c[_0xe64b1c(0x268)]]);const _0x56be02=_0x2d1d08||_0xd0cfdb&&_0xd0cfdb[_0xe64b1c(0x20f)];if(_0x56be02){_0x3dbc2d=_0x44895c['TwevQ'](getCloudProviderFromWsEndpoint,_0x56be02);if(_0x44895c[_0xe64b1c(0x21f)](_0x3dbc2d,_0x44895c[_0xe64b1c(0x202)]))_0x1284db=constants[_0xe64b1c(0x1e3)]['test'](_0x56be02)?_0x44895c[_0xe64b1c(0x21d)]:_0x44895c[_0xe64b1c(0x276)],_0x3d755b=_0x44895c['shYHq'](getBrowserFromWSEndpoint,_0x56be02)||_0x3d755b,_0x2205eb=_0x233d9a[_0xe64b1c(0x1ca)][_0xe64b1c(0x23c)],_0x13a34f=_0x233d9a[_0xe64b1c(0x1ca)][_0xe64b1c(0x1e4)];else{const _0x50f5da=await _0x44895c['PtIhN'](getPlatformDetails);_0x2205eb=_0x50f5da['platformName'],_0x13a34f=_0x50f5da[_0xe64b1c(0x246)];}}if(_0x44895c[_0xe64b1c(0x1ab)](!_0x2205eb,!_0x13a34f)&&!_0x44895c['PtIhN'](isBrowserstackInfra)){const _0x37270c=await _0x44895c['okkVr'](getPlatformDetails);_0x2205eb=_0x37270c[_0xe64b1c(0x1c9)],_0x13a34f=_0x37270c[_0xe64b1c(0x246)];}}else{_0x473183&&_0x473183[_0xe64b1c(0x1dc)][_0xe64b1c(0x207)][_0xe64b1c(0x26c)]?_0x3d755b=_0x44895c[_0xe64b1c(0x1dd)](getBrowserNameFromChannel,_0x473183[_0xe64b1c(0x1dc)][_0xe64b1c(0x207)]['channel']):_0x3d755b=_0x44895c[_0xe64b1c(0x260)](_0x44895c[_0xe64b1c(0x209)],_0x44895c[_0xe64b1c(0x248)](_0x3d755b,_0x44895c[_0xe64b1c(0x1b1)])['toLowerCase']());const _0x1d57c9=await _0x44895c[_0xe64b1c(0x1fa)](getPlatformDetails);_0x2205eb=_0x1d57c9[_0xe64b1c(0x1c9)],_0x13a34f=_0x1d57c9[_0xe64b1c(0x246)];}const _0x3aa40a={};_0x3aa40a[_0xe64b1c(0x19f)]=_0x3d755b,_0x3aa40a[_0xe64b1c(0x1ac)]=_0x28b619,_0x3aa40a[_0xe64b1c(0x1c0)]={},_0x3aa40a['platform']=_0x2205eb,_0x3aa40a[_0xe64b1c(0x1e4)]=_0x13a34f,_0x3aa40a[_0xe64b1c(0x231)]=_0x1284db;const _0x1dee34=_0x3aa40a;_0x1cd379&&(_0x1dee34[_0xe64b1c(0x1c0)][_0xe64b1c(0x1ba)]=_0x1cd379);const _0x34a5fa={};_0x34a5fa['cloudProvider']=_0x3dbc2d,_0x233d9a[_0xe64b1c(0x1ca)]=Object[_0xe64b1c(0x266)]({},_0x233d9a['currentSessionDetails'],_0x34a5fa,_0x1dee34);},_0x44895c[_0x53d7ac(0x201)])(_0x40772c,_0x512eca,_0x32723);}static['patch'](){this['patchConnection'](),this['patchCRConnection']();}static[a56_0x10035b(0x1af)](){const _0x71f29a=a56_0x10035b,_0x130d84={'kkpEG':function(_0xa8a218,_0x2f94b1,_0xfdf622){return _0xa8a218(_0x2f94b1,_0xfdf622);},'QIIAe':_0x71f29a(0x210),'bjFRb':_0x71f29a(0x261),'OQSHA':_0x71f29a(0x236),'vMgeR':function(_0x540c1e,_0x59e9a3,_0x55b32b){return _0x540c1e(_0x59e9a3,_0x55b32b);},'cUTjo':_0x71f29a(0x25f),'xlUnE':_0x71f29a(0x1b4),'AxLin':function(_0x146dbd,_0x3ddf8c){return _0x146dbd===_0x3ddf8c;},'IhZik':_0x71f29a(0x1aa),'npwvQ':function(_0x2d282b,_0x5f50bd,_0x49fd49,_0x52a81e){return _0x2d282b(_0x5f50bd,_0x49fd49,_0x52a81e);},'EzlMG':function(_0x298383,_0x3b6a22){return _0x298383||_0x3b6a22;},'JSJCq':function(_0x588eab,_0x34c49c){return _0x588eab(_0x34c49c);},'GkDCv':function(_0x53c448,_0x464fe8){return _0x53c448(_0x464fe8);},'fPLBm':_0x71f29a(0x1b7),'nMFhw':function(_0x79b0e3,_0x5b033b){return _0x79b0e3!=_0x5b033b;},'syBll':function(_0x49ffa0){return _0x49ffa0();},'CzJRR':_0x71f29a(0x253),'MPxnP':function(_0x1ace06,_0x15946f){return _0x1ace06(_0x15946f);},'dhYEV':_0x71f29a(0x23a),'kxyNP':_0x71f29a(0x1e7)},_0x21919d=this;!this[_0x71f29a(0x1bd)]&&(this['Connection']=helper[_0x71f29a(0x239)](),!this[_0x71f29a(0x1bd)]&&_0x130d84[_0x71f29a(0x264)](debug,_0x130d84[_0x71f29a(0x1b2)]));const _0x1f4335=this['Connection'];if(_0x130d84[_0x71f29a(0x1ae)](_0x1f4335,null)&&_0x1f4335[_0x71f29a(0x200)][_0x71f29a(0x24b)])return;try{if(_0x130d84[_0x71f29a(0x1ae)](_0x1f4335,null)){const _0x2f5c16=_0x1f4335['prototype'][_0x71f29a(0x23a)],_0x3bbeee=_0x1f4335[_0x71f29a(0x200)][_0x71f29a(0x253)];_0x130d84[_0x71f29a(0x1e5)](isAccessibilityAutomationSession)&&Object[_0x71f29a(0x1b5)](_0x1f4335[_0x71f29a(0x200)],_0x130d84[_0x71f29a(0x1d7)],{'get':function(){const _0x34018e=_0x71f29a,_0x4d6cce={'MMaFG':function(_0x51d19c,_0x23052b,_0x29e933){return _0x130d84['kkpEG'](_0x51d19c,_0x23052b,_0x29e933);},'ZvKqo':_0x130d84[_0x34018e(0x269)],'JczIF':_0x130d84[_0x34018e(0x26f)],'BeUZz':_0x130d84[_0x34018e(0x1f7)],'PCymv':function(_0x5e4fb1,_0x10010b,_0x35e726){const _0x1371fe=_0x34018e;return _0x130d84[_0x1371fe(0x1ea)](_0x5e4fb1,_0x10010b,_0x35e726);},'jzNIQ':function(_0x2ec0fb,_0x42095b,_0x12f332){const _0xfb2516=_0x34018e;return _0x130d84[_0xfb2516(0x1ea)](_0x2ec0fb,_0x42095b,_0x12f332);},'KSAiC':_0x130d84[_0x34018e(0x244)],'MnIjM':_0x130d84['xlUnE'],'LPxIx':function(_0x38184f,_0xfede89){const _0x25a970=_0x34018e;return _0x130d84[_0x25a970(0x237)](_0x38184f,_0xfede89);},'qOEXd':_0x130d84['IhZik'],'yTsrZ':function(_0x187e38,_0x2bffc0,_0x1bcb81,_0x299833){const _0x5cb771=_0x34018e;return _0x130d84[_0x5cb771(0x27c)](_0x187e38,_0x2bffc0,_0x1bcb81,_0x299833);}};return async function(){const _0x3f8f9f=_0x34018e;try{if(!global[_0x3f8f9f(0x1b3)]&&global[_0x3f8f9f(0x226)]&&_0x4d6cce[_0x3f8f9f(0x1eb)](nestedKeyValue,global[_0x3f8f9f(0x25f)],[_0x4d6cce[_0x3f8f9f(0x254)],_0x4d6cce[_0x3f8f9f(0x1c3)],_0x4d6cce['BeUZz']])&&_0x4d6cce[_0x3f8f9f(0x1f6)](shouldScanTestForAccessibility,global[_0x3f8f9f(0x25f)]['currentTest'][_0x3f8f9f(0x261)]['titlePath'],!![])&&scripts[_0x3f8f9f(0x1f9)](arguments[0x1])){logger['debug'](_0x3f8f9f(0x218)+arguments[0x1]),global['bstackPerformA11yScan']=!![];const _0x33a314=_0x4d6cce[_0x3f8f9f(0x233)](nestedKeyValue,global,[_0x4d6cce[_0x3f8f9f(0x1f2)],_0x4d6cce[_0x3f8f9f(0x22e)]]);_0x33a314&&logger[_0x3f8f9f(0x270)](_0x3f8f9f(0x1a0)+util[_0x3f8f9f(0x213)](await _0x4d6cce['MMaFG'](performScanWithRetry,_0x33a314,arguments[0x1]))),_0x4d6cce[_0x3f8f9f(0x225)](arguments[0x0][_0x3f8f9f(0x22a)],_0x4d6cce[_0x3f8f9f(0x272)])&&global[_0x3f8f9f(0x1c5)]&&logger[_0x3f8f9f(0x270)](_0x3f8f9f(0x221)+util[_0x3f8f9f(0x213)](await _0x4d6cce['yTsrZ'](performScanWithRetry,global[_0x3f8f9f(0x1c5)],arguments[0x1],scripts[_0x3f8f9f(0x24e)])));}}catch(_0x1e6a6f){logger[_0x3f8f9f(0x1cd)](_0x3f8f9f(0x232)+util['format'](_0x1e6a6f));}return global[_0x3f8f9f(0x1b3)]=![],_0x3bbeee[_0x3f8f9f(0x1cc)](this,arguments);};}}),!_0x130d84[_0x71f29a(0x224)](isFalse,process[_0x71f29a(0x1ed)][_0x71f29a(0x1d8)])&&Object['defineProperty'](_0x1f4335['prototype'],_0x130d84[_0x71f29a(0x1d2)],{'get':function(){const _0x6cbdaa={'DuPUj':function(_0x391198,_0x3a37ee){const _0x497514=a56_0x511a;return _0x130d84[_0x497514(0x1cf)](_0x391198,_0x3a37ee);},'MiANK':function(_0x274c76,_0x49ca87){return _0x130d84['JSJCq'](_0x274c76,_0x49ca87);},'ndbYQ':function(_0x3848f6,_0x5743af){const _0x1727a8=a56_0x511a;return _0x130d84[_0x1727a8(0x1f5)](_0x3848f6,_0x5743af);}};return async function _0x159a17(_0x4492fd){const _0x25177b=a56_0x511a;if(BrowserstackCLI['getInstance']()[_0x25177b(0x1c6)]()){const _0x2b0c98={};_0x2b0c98[_0x25177b(0x1a6)]=_0x4492fd,await BrowserstackCLI[_0x25177b(0x1be)]()[_0x25177b(0x25b)]()[_0x25177b(0x1da)](AutomationFrameworkState[_0x25177b(0x1a1)],HookState[_0x25177b(0x259)],_0x2b0c98);}else{const _0x406647=_0x4492fd&&_0x4492fd[_0x25177b(0x25e)]&&_0x4492fd[_0x25177b(0x25e)][_0x25177b(0x1a9)];if(_0x406647){const _0xc96fc9=_0x406647[_0x25177b(0x1a3)],_0x4fd8b3=_0x406647[_0x25177b(0x245)];_0x6cbdaa['DuPUj'](!_0xc96fc9,!_0x4fd8b3)&&await ClientTroubleShootingService[_0x25177b(0x278)](),_0x4fd8b3&&(_0x6cbdaa[_0x25177b(0x1c7)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+_0x4fd8b3['toString']()),_0x21919d[_0x25177b(0x1ca)][_0x25177b(0x23c)]=_0x4fd8b3[_0x25177b(0x1c9)],_0x21919d[_0x25177b(0x1ca)][_0x25177b(0x1e4)]=_0x4fd8b3['platformVersion']),_0xc96fc9&&(_0x6cbdaa[_0x25177b(0x1e1)](debug,_0x25177b(0x1f4)+_0xc96fc9),_0x21919d['currentSessionDetails'][_0x25177b(0x243)]=_0xc96fc9);}}return _0x2f5c16['apply'](this,arguments);};}}),_0x1f4335['prototype']['_bstackDispatchPatched']=!![],logger['debug'](_0x130d84[_0x71f29a(0x1b9)]);}}catch(_0x4a9408){_0x130d84[_0x71f29a(0x1f5)](debug,'Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20'+_0x4a9408),_0x21919d[_0x71f29a(0x1ef)]=_0x4a9408['toString']();}}static[a56_0x10035b(0x1bc)](){const _0x296342=a56_0x10035b,_0x16cf5f={'ZsZUB':function(_0x2ef76c,_0x2fadd4){return _0x2ef76c(_0x2fadd4);},'AZFOo':function(_0x57538d){return _0x57538d();},'oBtGf':function(_0x442baa,_0x5319ef){return _0x442baa>=_0x5319ef;},'QqMIf':_0x296342(0x24c),'bxwuQ':function(_0x39eb88,_0x5cd109){return _0x39eb88(_0x5cd109);},'LSqvv':function(_0x22e29e,_0x51192d){return _0x22e29e(_0x51192d);},'YStTG':_0x296342(0x1a2),'WkUzy':_0x296342(0x1b6),'hMrSv':_0x296342(0x1c8),'riclJ':_0x296342(0x20a),'yiyjx':_0x296342(0x26a),'IjYby':'Not\x20able\x20to\x20import\x20crConnection','mGCIE':function(_0x2aa875,_0x5663ba){return _0x2aa875(_0x5663ba);},'vDOBS':_0x296342(0x21e),'ofvjR':function(_0x529c56,_0x45436f){return _0x529c56!=_0x45436f;},'bIrnl':_0x296342(0x211)},_0x2170ae=this;if(_0x16cf5f[_0x296342(0x1ce)](isAccessibilityAutomationSession)){let _0x1665ab=null,_0x3535dd=![];try{const _0x1c915b=helper['getFrameworkVersion'](FRAMEWORKS[_0x296342(0x1df)]);_0x3535dd=_0x16cf5f['oBtGf'](helper[_0x296342(0x219)](_0x1c915b,_0x16cf5f['QqMIf']),0x0);}catch(_0x21408a){_0x16cf5f['bxwuQ'](debug,_0x296342(0x1f0)+_0x21408a[_0x296342(0x23d)]());}if(_0x3535dd)_0x16cf5f[_0x296342(0x22b)](debug,_0x16cf5f[_0x296342(0x217)]);else try{const _0x5004a9=path[_0x296342(0x24d)](_0x16cf5f[_0x296342(0x24a)],_0x16cf5f[_0x296342(0x1f1)],_0x16cf5f[_0x296342(0x274)],_0x16cf5f[_0x296342(0x265)]),_0x2937ab=_0x16cf5f[_0x296342(0x1c4)](importFileFromPWCore,_0x5004a9);!_0x2937ab?_0x16cf5f[_0x296342(0x1c4)](debug,_0x16cf5f[_0x296342(0x20e)]):_0x1665ab=_0x2937ab[_0x296342(0x22c)];}catch(_0x4b1f50){_0x16cf5f[_0x296342(0x24f)](debug,_0x16cf5f['vDOBS']);}try{if(_0x16cf5f['ofvjR'](_0x1665ab,null)){const _0x40a841=_0x1665ab[_0x296342(0x200)]['_onMessage'];Object[_0x296342(0x1b5)](_0x1665ab['prototype'],_0x16cf5f[_0x296342(0x251)],{'get':function(){const _0xa248d7={'jgXby':function(_0x5e8165,_0xceb13b){const _0x5f0faf=a56_0x511a;return _0x16cf5f[_0x5f0faf(0x1c4)](_0x5e8165,_0xceb13b);},'ugiBc':function(_0x47cc4f,_0x1df3ad){const _0x37e97e=a56_0x511a;return _0x16cf5f[_0x37e97e(0x1c4)](_0x47cc4f,_0x1df3ad);}};return async function _0x255f1e(_0x491e65){const _0xfe3e61=a56_0x511a;try{if(BrowserstackCLI[_0xfe3e61(0x1be)]()[_0xfe3e61(0x1c6)]()){const _0x55fc37={};_0x55fc37['message']=_0x491e65,await BrowserstackCLI[_0xfe3e61(0x1be)]()[_0xfe3e61(0x25b)]()['trackEvent'](AutomationFrameworkState[_0xfe3e61(0x1a1)],HookState[_0xfe3e61(0x259)],_0x55fc37),delete _0x491e65[_0xfe3e61(0x279)];}else{const _0x327b3b=_0x491e65[_0xfe3e61(0x279)];if(_0x327b3b){delete _0x491e65[_0xfe3e61(0x279)];const _0x555d3=_0x327b3b[_0xfe3e61(0x1a3)],_0x1b5eff=_0x327b3b['platformDetails'];_0x1b5eff&&(_0xa248d7['jgXby'](debug,_0xfe3e61(0x1fe)+_0x1b5eff[_0xfe3e61(0x23d)]()),_0x2170ae[_0xfe3e61(0x1ca)]['platform']=_0x1b5eff[_0xfe3e61(0x1c9)],_0x2170ae[_0xfe3e61(0x1ca)][_0xfe3e61(0x1e4)]=_0x1b5eff[_0xfe3e61(0x246)]),_0x555d3&&(_0xa248d7['jgXby'](debug,_0xfe3e61(0x1ff)+_0x555d3),_0x2170ae[_0xfe3e61(0x1ca)][_0xfe3e61(0x243)]=_0x555d3);}}}catch(_0x111d48){_0xa248d7[_0xfe3e61(0x267)](debug,_0xfe3e61(0x1cb)+_0x111d48['toString']());}return _0x40a841[_0xfe3e61(0x1cc)](this,arguments);};}});}}catch(_0x5a2e7f){_0x16cf5f[_0x296342(0x22b)](debug,_0x296342(0x1f3)+_0x5a2e7f),_0x2170ae[_0x296342(0x1ef)]=_0x5a2e7f[_0x296342(0x23d)]();}}}static['getDetails'](){return this['currentSessionDetails'];}}module[a56_0x10035b(0x23e)]=PlaywrightSessionDetails;
@@ -1 +1 @@
1
- function a57_0x3c7d(_0x1958a6,_0x2fb2a8){const _0x525e95=a57_0x525e();return a57_0x3c7d=function(_0x3c7d33,_0x1f1704){_0x3c7d33=_0x3c7d33-0x150;let _0x552367=_0x525e95[_0x3c7d33];return _0x552367;},a57_0x3c7d(_0x1958a6,_0x2fb2a8);}const a57_0x3a7bb1=a57_0x3c7d;(function(_0x23fb1b,_0x49de0b){const _0x264cb3=a57_0x3c7d,_0x486489=_0x23fb1b();while(!![]){try{const _0xb644c9=-parseInt(_0x264cb3(0x159))/0x1+parseInt(_0x264cb3(0x179))/0x2*(parseInt(_0x264cb3(0x176))/0x3)+parseInt(_0x264cb3(0x169))/0x4*(parseInt(_0x264cb3(0x155))/0x5)+-parseInt(_0x264cb3(0x16d))/0x6+-parseInt(_0x264cb3(0x15d))/0x7*(-parseInt(_0x264cb3(0x17d))/0x8)+parseInt(_0x264cb3(0x173))/0x9*(parseInt(_0x264cb3(0x161))/0xa)+-parseInt(_0x264cb3(0x15e))/0xb;if(_0xb644c9===_0x49de0b)break;else _0x486489['push'](_0x486489['shift']());}catch(_0x37f5af){_0x486489['push'](_0x486489['shift']());}}}(a57_0x525e,0x236b6));const util=require(a57_0x3a7bb1(0x175)),logger=require(a57_0x3a7bb1(0x17a)),{nestedKeyValue,isFalse}=require(a57_0x3a7bb1(0x164)),{o11yErrorHandler}=require(a57_0x3a7bb1(0x15b)),PerformanceTester=require(a57_0x3a7bb1(0x163)),{O11y_EVENTS:PerformanceO11yEvents}=require(a57_0x3a7bb1(0x167)),BrowserstackCLI=require(a57_0x3a7bb1(0x160)),CustomTagManager=require('../v2/customTagManager'),uploadAttachmentsManager=require(a57_0x3a7bb1(0x16b)),doo11ySync=PerformanceTester['measureWrapper'](PerformanceO11yEvents['SYNC'],o11yErrorHandler(async function doo11ySync(_0x4914de){const _0x5584f6=a57_0x3a7bb1,_0x53e95d={'lrXyB':function(_0x3d3e62,_0x4852b7,_0x248f80){return _0x3d3e62(_0x4852b7,_0x248f80);},'plvPo':_0x5584f6(0x171),'cdqsq':_0x5584f6(0x15f),'wSMLz':_0x5584f6(0x172),'nLdbP':_0x5584f6(0x170)};if(_0x53e95d[_0x5584f6(0x151)](nestedKeyValue,global,[_0x53e95d[_0x5584f6(0x162)],_0x53e95d['cdqsq']]))return;await _0x4914de[_0x5584f6(0x158)](_0x2eb0ce=>{},_0x5584f6(0x154)+JSON[_0x5584f6(0x16c)]({'action':_0x53e95d['wSMLz'],'arguments':{'data':_0x5584f6(0x17e)+Date[_0x5584f6(0x150)](),'level':_0x53e95d['nLdbP']}})),global['__workerDetails']['o11ySyncDone']=!![];},a57_0x3a7bb1(0x174)));function a57_0x525e(){const _0x43f4eb=['apply','467076fczmJo','isRunning','../v2/uploadAttachmentsManager','stringify','1113288DHxCKh','Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20','BROWSERSTACK_TEST_OBSERVABILITY','debug','__workerDetails','annotate','9PqsoFY','doo11ySync','util','183zQRzvN','getInstance','QUFhu','7746iTxNQb','../../helpers/logger','newPage','uploadAttachments','96xqxtWv','ObservabilitySync:','now','lrXyB','_bstackNewPagePatched','uploadAttachment','browserstack_executor:\x20','10OBItLz','UnMeJ','env','evaluate','224720edWgzu','bind','../../helpers/test-observability/error-handler','setCustomTags','20720YIlGKm','1228227MntCmY','o11ySyncDone','../v2/browserstackCLI','1616920zFomLK','plvPo','../../helpers/performance/performance-tester','../../helpers/helper','YyOyn','pwPage','../../helpers/performance/constants'];a57_0x525e=function(){return _0x43f4eb;};return a57_0x525e();}exports['patchBrowserNewPage']=_0x442df2=>{const _0x35a966=a57_0x3a7bb1,_0x539ec3={'YyOyn':function(_0x163659,_0x2236c5){return _0x163659(_0x2236c5);},'UnMeJ':function(_0x10f056,_0x2795c8,_0x5b0385){return _0x10f056(_0x2795c8,_0x5b0385);},'QUFhu':_0x35a966(0x171)};if(!_0x442df2||_0x442df2[_0x35a966(0x152)])return;const _0x5611e1=_0x442df2[_0x35a966(0x17b)][_0x35a966(0x15a)](_0x442df2);_0x442df2[_0x35a966(0x17b)]=async function _0x28d171(){const _0x33883b=_0x35a966,_0x53c4f3=await _0x5611e1[_0x33883b(0x168)](_0x442df2,arguments);try{!BrowserstackCLI[_0x33883b(0x177)]()[_0x33883b(0x16a)]()&&!_0x539ec3[_0x33883b(0x165)](isFalse,process[_0x33883b(0x157)][_0x33883b(0x16f)])&&await _0x539ec3[_0x33883b(0x165)](doo11ySync,_0x53c4f3),BrowserstackCLI[_0x33883b(0x177)]()['isRunning']()&&(_0x53c4f3[_0x33883b(0x15c)]=async(_0x3f44fc,_0x4a4733,_0x3052d4=![])=>{const _0xc1fe05=_0x33883b;await CustomTagManager[_0xc1fe05(0x15c)](_0x3f44fc,_0x4a4733,_0x3052d4);},_0x53c4f3[_0x33883b(0x153)]=async(_0x303ff8,_0x4a23bb=![])=>{const _0x53b11a=_0x33883b;await uploadAttachmentsManager[_0x53b11a(0x17c)](_0x303ff8,_0x4a23bb);});}catch(_0x346f31){logger['debug'](_0x33883b(0x16e)+util['format'](_0x346f31));}return _0x539ec3[_0x33883b(0x156)](nestedKeyValue,global,[_0x539ec3[_0x33883b(0x178)]])&&(global[_0x33883b(0x171)][_0x33883b(0x166)]=_0x53c4f3),_0x53c4f3;},_0x442df2[_0x35a966(0x152)]=!![];};
1
+ function a57_0x2ed0(){const _0x333bab=['592408tUSvvs','../../helpers/test-observability/error-handler','bind','__workerDetails','zbBkn','72StvCeS','cgYPQ','SYNC','browserstack_executor:\x20','annotate','isRunning','../v2/browserstackCLI','patchBrowserNewPage','env','now','3678puUVAP','1698055IwvUrg','../v2/uploadAttachmentsManager','../v2/customTagManager','../../helpers/helper','174297MqZXnC','_bstackNewPagePatched','newPage','1244752IMbFNL','uploadAttachments','267950QLgZsP','../../helpers/performance/performance-tester','doo11ySync','setCustomTags','uploadAttachment','../../helpers/logger','getInstance','qMyCr','EZGrV','ObservabilitySync:','111318fISYaf','Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20','105UoAqQQ','o11ySyncDone','../../helpers/performance/constants','stringify','QIkrs'];a57_0x2ed0=function(){return _0x333bab;};return a57_0x2ed0();}const a57_0x7634f2=a57_0x4a49;(function(_0x36a40c,_0x40239b){const _0xd729f0=a57_0x4a49,_0x49e941=_0x36a40c();while(!![]){try{const _0x5ec269=-parseInt(_0xd729f0(0x173))/0x1+parseInt(_0xd729f0(0x178))/0x2+parseInt(_0xd729f0(0x16e))/0x3+-parseInt(_0xd729f0(0x176))/0x4+parseInt(_0xd729f0(0x16f))/0x5+-parseInt(_0xd729f0(0x158))/0x6*(parseInt(_0xd729f0(0x15a))/0x7)+parseInt(_0xd729f0(0x15f))/0x8*(parseInt(_0xd729f0(0x164))/0x9);if(_0x5ec269===_0x40239b)break;else _0x49e941['push'](_0x49e941['shift']());}catch(_0x37c273){_0x49e941['push'](_0x49e941['shift']());}}}(a57_0x2ed0,0x4a150));function a57_0x4a49(_0x355118,_0xf7cf25){const _0x2ed084=a57_0x2ed0();return a57_0x4a49=function(_0x4a4916,_0x34f8fa){_0x4a4916=_0x4a4916-0x158;let _0x2d2719=_0x2ed084[_0x4a4916];return _0x2d2719;},a57_0x4a49(_0x355118,_0xf7cf25);}const util=require('util'),logger=require(a57_0x7634f2(0x17d)),{nestedKeyValue,isFalse}=require(a57_0x7634f2(0x172)),{o11yErrorHandler}=require(a57_0x7634f2(0x160)),PerformanceTester=require(a57_0x7634f2(0x179)),{O11y_EVENTS:PerformanceO11yEvents}=require(a57_0x7634f2(0x15c)),BrowserstackCLI=require(a57_0x7634f2(0x16a)),CustomTagManager=require(a57_0x7634f2(0x171)),uploadAttachmentsManager=require(a57_0x7634f2(0x170)),doo11ySync=PerformanceTester['measureWrapper'](PerformanceO11yEvents[a57_0x7634f2(0x166)],o11yErrorHandler(async function doo11ySync(_0x511f72){const _0xef096c=a57_0x7634f2,_0x40967a={'QIkrs':function(_0x5c2ac4,_0x30efeb,_0x5b4080){return _0x5c2ac4(_0x30efeb,_0x5b4080);},'nGnTs':'__workerDetails','qMyCr':_0xef096c(0x15b),'GtVFl':_0xef096c(0x168),'cgYPQ':'debug'};if(_0x40967a[_0xef096c(0x15e)](nestedKeyValue,global,[_0x40967a['nGnTs'],_0x40967a[_0xef096c(0x17f)]]))return;await _0x511f72['evaluate'](_0x481777=>{},_0xef096c(0x167)+JSON[_0xef096c(0x15d)]({'action':_0x40967a['GtVFl'],'arguments':{'data':_0xef096c(0x181)+Date[_0xef096c(0x16d)](),'level':_0x40967a[_0xef096c(0x165)]}})),global[_0xef096c(0x162)]['o11ySyncDone']=!![];},a57_0x7634f2(0x17a)));exports[a57_0x7634f2(0x16b)]=_0x4fb27a=>{const _0x4569cc=a57_0x7634f2,_0x25c289={'dbHLe':function(_0x1c4489,_0x353384){return _0x1c4489(_0x353384);},'AnYIk':function(_0x561c22,_0x1d5f2b){return _0x561c22(_0x1d5f2b);},'EZGrV':function(_0x4a3470,_0x3f6d5b,_0x53f00f){return _0x4a3470(_0x3f6d5b,_0x53f00f);},'zbBkn':_0x4569cc(0x162)};if(!_0x4fb27a||_0x4fb27a[_0x4569cc(0x174)])return;const _0x19ea98=_0x4fb27a[_0x4569cc(0x175)][_0x4569cc(0x161)](_0x4fb27a);_0x4fb27a['newPage']=async function _0x3a8a82(){const _0x5ecbb0=_0x4569cc,_0x127eb7=await _0x19ea98['apply'](_0x4fb27a,arguments);try{!BrowserstackCLI[_0x5ecbb0(0x17e)]()[_0x5ecbb0(0x169)]()&&!_0x25c289['dbHLe'](isFalse,process[_0x5ecbb0(0x16c)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&await _0x25c289['AnYIk'](doo11ySync,_0x127eb7),BrowserstackCLI[_0x5ecbb0(0x17e)]()[_0x5ecbb0(0x169)]()&&(_0x127eb7[_0x5ecbb0(0x17b)]=async(_0x140a65,_0x321bc7,_0x5a995f=![])=>{await CustomTagManager['setCustomTags'](_0x140a65,_0x321bc7,_0x5a995f);},_0x127eb7[_0x5ecbb0(0x17c)]=async(_0x213d46,_0x5f4ee9=![])=>{const _0x513e25=_0x5ecbb0;await uploadAttachmentsManager[_0x513e25(0x177)](_0x213d46,_0x5f4ee9);});}catch(_0x5951d8){logger['debug'](_0x5ecbb0(0x159)+util['format'](_0x5951d8));}return _0x25c289[_0x5ecbb0(0x180)](nestedKeyValue,global,[_0x25c289[_0x5ecbb0(0x163)]])&&(global[_0x5ecbb0(0x162)]['pwPage']=_0x127eb7),_0x127eb7;},_0x4fb27a[_0x4569cc(0x174)]=!![];};
@@ -1 +1 @@
1
- const a58_0x4a1690=a58_0x5c25;function a58_0x3449(){const _0x40854b=['bsSessionId','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','yklVW','format','BSTACK_ATS_URL','Vakjr','Npmee','sessionId','21382IgcnBc','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','../v2/state/hookState.js','platformDetails','caps','1203727fRoVXd','toString','url','2636030LoZtYr','sessionError','GiWVX','platformName','getDetails','string','bStackParams','BSTACK_URL','local_grid','387EBlrgJ','../../helpers/test-observability/utils','getAutomationFramework','trackEvent','TIEzA','ATS_WSS_URL_REGEX','5084388YANBSI','ZWAif','80320HKPZYR','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','kynAe','includes','bsParams','query','message','result','../v2/state/automationFrameworkState.js','exports','PLAYWRIGHT_DISPATCH','product','tAsyI','13921860pdSoGr','assign','cloudProvider','HtqwP','turboscale','browser','Setting\x20session\x20id\x20received\x20from\x20BS\x20','Error\x20in\x20setupBrowserDetails:\x20','stringify','connection','wREXO','currentSessionDetails','chrome','platformVersion','debug','770bfTFuf','RWMTM','_bstackPatched','entries','platform','EXIUf','LiWzF','fromEntries','8DTucEx','jkkcN','function','params','BKIyG','ODWeF','getInstance','_connection','FgCMJ','onmessage','../v2/browserstackCLI','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','POST','platform_version','browserstack','mdrzr','browserName','setupBrowserDetails','parse','hUBwN','util','patchConnection','version','../../helpers/logger','unknown_grid','5981496OIbDqs','test','capabilities','WZtzH'];a58_0x3449=function(){return _0x40854b;};return a58_0x3449();}(function(_0xdcd3ba,_0x4427ce){const _0x448d57=a58_0x5c25,_0x37433d=_0xdcd3ba();while(!![]){try{const _0x60b016=parseInt(_0x448d57(0xdb))/0x1+-parseInt(_0x448d57(0x138))/0x2*(-parseInt(_0x448d57(0xe7))/0x3)+parseInt(_0x448d57(0x113))/0x4*(parseInt(_0x448d57(0xde))/0x5)+-parseInt(_0x448d57(0x12c))/0x6+-parseInt(_0x448d57(0x10b))/0x7*(parseInt(_0x448d57(0xef))/0x8)+parseInt(_0x448d57(0xed))/0x9+-parseInt(_0x448d57(0xfc))/0xa;if(_0x60b016===_0x4427ce)break;else _0x37433d['push'](_0x37433d['shift']());}catch(_0x37e4c0){_0x37433d['push'](_0x37433d['shift']());}}}(a58_0x3449,0xad064));const path=require('path'),url=require(a58_0x4a1690(0xdd)),util=require(a58_0x4a1690(0x127)),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{debug,getPlatformDetails}=require(a58_0x4a1690(0xe8)),logger=require(a58_0x4a1690(0x12a))['winstonLogger'],constants=require('../utils/constants'),BrowserstackCLI=require(a58_0x4a1690(0x11d)),AutomationFrameworkState=require(a58_0x4a1690(0xf7)),HookState=require(a58_0x4a1690(0x13a)),getBrowserFromWSEndpoint=_0x19f4dc=>{const _0x15cf4d=a58_0x4a1690,_0xc6b86c={'wREXO':'chrome','kynAe':function(_0x148aa7,_0x17a972){return _0x148aa7(_0x17a972);}};try{const _0x5db829=url[_0x15cf4d(0x125)](_0x19f4dc),_0x2f9b83=new URLSearchParams(_0x5db829[_0x15cf4d(0xf4)]),_0x22702e=Object[_0x15cf4d(0x112)](_0x2f9b83[_0x15cf4d(0x10e)]()),_0x1f80ae=JSON[_0x15cf4d(0x125)](_0x22702e[_0x15cf4d(0xda)]);if(_0x1f80ae&&(_0x1f80ae['browser']||_0x1f80ae[_0x15cf4d(0x123)]))return _0x1f80ae['browser']||_0x1f80ae['browserName'];return _0xc6b86c[_0x15cf4d(0x106)];}catch(_0x37fbf0){_0xc6b86c[_0x15cf4d(0xf1)](debug,_0x15cf4d(0xf0)+_0x37fbf0[_0x15cf4d(0xdc)]());}},getCloudProviderFromWsEndpoint=_0x477ff1=>{const _0x3d915c=a58_0x4a1690,_0x220921={};_0x220921[_0x3d915c(0xfb)]=_0x3d915c(0x121),_0x220921[_0x3d915c(0x114)]=_0x3d915c(0x12b);const _0x21e189=_0x220921;if(_0x477ff1[_0x3d915c(0xf2)](constants[_0x3d915c(0xe5)])||_0x477ff1['includes'](constants[_0x3d915c(0x134)]))return _0x21e189[_0x3d915c(0xfb)];return _0x21e189[_0x3d915c(0x114)];},a58_0x3635b9={};function a58_0x5c25(_0x5b9128,_0xf1cf8){const _0x3449fe=a58_0x3449();return a58_0x5c25=function(_0x5c2571,_0x19ccbd){_0x5c2571=_0x5c2571-0xda;let _0x58721f=_0x3449fe[_0x5c2571];return _0x58721f;},a58_0x5c25(_0x5b9128,_0xf1cf8);}a58_0x3635b9[a58_0x4a1690(0xfe)]=undefined,a58_0x3635b9[a58_0x4a1690(0x130)]=undefined,a58_0x3635b9['browser']=undefined,a58_0x3635b9['browser_version']=undefined,a58_0x3635b9[a58_0x4a1690(0x10f)]=undefined,a58_0x3635b9[a58_0x4a1690(0x120)]=undefined,a58_0x3635b9[a58_0x4a1690(0xfa)]=undefined,a58_0x3635b9[a58_0x4a1690(0x12e)]={};class PuppeteerSessionDetails{static [a58_0x4a1690(0x107)]=a58_0x3635b9;constructor(){const _0x15c552=a58_0x4a1690,_0x56d7e1={};_0x56d7e1['RWMTM']=_0x15c552(0x131);const _0x3251b8=_0x56d7e1;throw new Error(_0x3251b8[_0x15c552(0x10c)]);}static ['sessionError']=null;static async[a58_0x4a1690(0x124)](_0x5306c7,_0x54e84b){const _0x3ec84a=a58_0x4a1690,_0x23201d={'WZtzH':_0x3ec84a(0x108),'ODWeF':function(_0x46895c,_0x509ad1){return _0x46895c===_0x509ad1;},'HtqwP':_0x3ec84a(0x115),'hUBwN':_0x3ec84a(0xe6),'Npmee':function(_0x5a88a1,_0x3cd9cf){return _0x5a88a1(_0x3cd9cf);},'BKIyG':function(_0x4eb229,_0x2cf5e4){return _0x4eb229===_0x2cf5e4;},'EQnMO':'browserstack','QmcdJ':_0x3ec84a(0x100),'TIEzA':'automate','LiWzF':function(_0x38930a,_0x4c76d3){return _0x38930a(_0x4c76d3);},'FgCMJ':function(_0x3e0303){return _0x3e0303();},'nDxwZ':function(_0x49b66e){return _0x49b66e();},'ZTOFl':function(_0x567fc8,_0x10fbc5){return _0x567fc8(_0x10fbc5);}};try{let _0x331e08=_0x23201d[_0x3ec84a(0x12f)],_0x580a12=null;_0x5306c7&&_0x23201d[_0x3ec84a(0x118)](typeof _0x5306c7[_0x3ec84a(0x129)],_0x23201d[_0x3ec84a(0xff)])&&(_0x580a12=await _0x5306c7['version']());let _0x396d13=null,_0x3b87e5=null,_0x2c5641=null,_0x199e91=_0x23201d[_0x3ec84a(0x126)];if(_0x54e84b){_0x199e91=_0x23201d[_0x3ec84a(0x136)](getCloudProviderFromWsEndpoint,_0x54e84b);if(_0x23201d[_0x3ec84a(0x117)](_0x199e91,_0x23201d['EQnMO']))_0x2c5641=constants[_0x3ec84a(0xec)]?constants['ATS_WSS_URL_REGEX'][_0x3ec84a(0x12d)](_0x54e84b)?_0x23201d['QmcdJ']:_0x23201d[_0x3ec84a(0xeb)]:_0x23201d[_0x3ec84a(0xeb)],_0x331e08=_0x23201d[_0x3ec84a(0x111)](getBrowserFromWSEndpoint,_0x54e84b)||_0x331e08,_0x396d13=this[_0x3ec84a(0x107)][_0x3ec84a(0x10f)],_0x3b87e5=this[_0x3ec84a(0x107)][_0x3ec84a(0x120)];else{const _0x97f7b9=await _0x23201d[_0x3ec84a(0x11b)](getPlatformDetails);_0x396d13=_0x97f7b9['platformName'],_0x3b87e5=_0x97f7b9[_0x3ec84a(0x109)];}}else{const _0x259de0=await _0x23201d['nDxwZ'](getPlatformDetails);_0x396d13=_0x259de0[_0x3ec84a(0xe1)],_0x3b87e5=_0x259de0['platformVersion'];}const _0xf18731={};_0xf18731[_0x3ec84a(0x101)]=_0x331e08,_0xf18731['browser_version']=_0x580a12,_0xf18731[_0x3ec84a(0x12e)]={},_0xf18731[_0x3ec84a(0x10f)]=_0x396d13,_0xf18731[_0x3ec84a(0x120)]=_0x3b87e5,_0xf18731['product']=_0x2c5641;const _0x6b225b=_0xf18731,_0x5e0390={};_0x5e0390[_0x3ec84a(0xfe)]=_0x199e91,this[_0x3ec84a(0x107)]=Object[_0x3ec84a(0xfd)]({},this['currentSessionDetails'],_0x5e0390,_0x6b225b);}catch(_0x3d5a4f){_0x23201d['ZTOFl'](debug,_0x3ec84a(0x103)+util[_0x3ec84a(0x133)](_0x3d5a4f)),this[_0x3ec84a(0xdf)]=_0x3d5a4f[_0x3ec84a(0xdc)]();}}static[a58_0x4a1690(0x128)](_0x7702dd){const _0x1e6598=a58_0x4a1690,_0x5e1c35={'tZHMK':function(_0x176150,_0x4a0414){return _0x176150===_0x4a0414;},'GiWVX':_0x1e6598(0xe3),'EXIUf':function(_0x1ff3ea,_0x2ce019){return _0x1ff3ea(_0x2ce019);},'eRdDa':function(_0x3685cc,_0x2e238d){return _0x3685cc(_0x2e238d);},'ZWAif':function(_0x2c7cb3,_0xad97c7){return _0x2c7cb3===_0xad97c7;},'mdrzr':function(_0x181f80,_0x30968a){return _0x181f80(_0x30968a);},'Vakjr':_0x1e6598(0x139),'yklVW':function(_0x4cf975,_0xd2f7f7){return _0x4cf975(_0xd2f7f7);}},_0x59c66d=this;try{const _0x3c8cda=_0x7702dd[_0x1e6598(0x11a)]||_0x7702dd[_0x1e6598(0x105)];if(!_0x3c8cda||_0x3c8cda[_0x1e6598(0x10d)])return;const _0x4929de=_0x3c8cda[_0x1e6598(0x11c)];_0x3c8cda[_0x1e6598(0x11c)]=function(_0x59fb97){const _0x441deb=_0x1e6598;try{const _0xdb9f58=_0x5e1c35['tZHMK'](typeof _0x59fb97,_0x5e1c35[_0x441deb(0xe0)])?JSON['parse'](_0x59fb97):_0x59fb97,_0x14db49=_0xdb9f58?.[_0x441deb(0xe4)]||_0xdb9f58?.[_0x441deb(0xf3)]||_0xdb9f58?.[_0x441deb(0x116)]?.[_0x441deb(0xf3)]||_0xdb9f58?.[_0x441deb(0x116)]?.['bStackParams']||_0xdb9f58?.[_0x441deb(0xf6)]?.[_0x441deb(0xf3)]||_0xdb9f58?.[_0x441deb(0xf6)]?.[_0x441deb(0xe4)];if(_0x14db49){if(BrowserstackCLI[_0x441deb(0x119)]()['isRunning']()){const _0x131565={};_0x131565[_0x441deb(0xf5)]=_0xdb9f58,BrowserstackCLI['getInstance']()[_0x441deb(0xe9)]()[_0x441deb(0xea)](AutomationFrameworkState[_0x441deb(0xf9)],HookState[_0x441deb(0x11f)],_0x131565);}else{const _0xc71221=_0x14db49[_0x441deb(0x137)],_0x3cfa06=_0x14db49[_0x441deb(0x13b)];_0x3cfa06&&(_0x5e1c35[_0x441deb(0x110)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+JSON[_0x441deb(0x104)](_0x3cfa06)),_0x59c66d[_0x441deb(0x107)]['platform']=_0x3cfa06[_0x441deb(0xe1)],_0x59c66d[_0x441deb(0x107)][_0x441deb(0x120)]=_0x3cfa06[_0x441deb(0x109)]),_0xc71221&&(_0x5e1c35['eRdDa'](debug,_0x441deb(0x102)+_0xc71221),_0x59c66d[_0x441deb(0x107)]['bsSessionId']=_0xc71221);}_0x5e1c35[_0x441deb(0xee)](typeof _0x59fb97,_0x5e1c35[_0x441deb(0xe0)])&&(delete _0xdb9f58[_0x441deb(0xe4)],delete _0xdb9f58[_0x441deb(0xf3)],_0xdb9f58[_0x441deb(0x116)]&&(delete _0xdb9f58[_0x441deb(0x116)]['bsParams'],delete _0xdb9f58[_0x441deb(0x116)][_0x441deb(0xe4)]),_0xdb9f58['result']&&(delete _0xdb9f58[_0x441deb(0xf6)]['bsParams'],delete _0xdb9f58[_0x441deb(0xf6)][_0x441deb(0xe4)]));}}catch(_0xbb2d44){_0x5e1c35[_0x441deb(0x122)](debug,_0x441deb(0x11e)+_0xbb2d44[_0x441deb(0xf5)]);}return _0x4929de?.['apply'](this,arguments);},_0x3c8cda[_0x1e6598(0x10d)]=!![],logger[_0x1e6598(0x10a)](_0x5e1c35[_0x1e6598(0x135)]);}catch(_0x431cd9){_0x5e1c35[_0x1e6598(0x132)](debug,'Error\x20in\x20patchConnection:\x20'+util[_0x1e6598(0x133)](_0x431cd9)),_0x59c66d[_0x1e6598(0xdf)]=_0x431cd9[_0x1e6598(0xdc)]();}}static[a58_0x4a1690(0xe2)](){return this['currentSessionDetails'];}}module[a58_0x4a1690(0xf8)]=PuppeteerSessionDetails;
1
+ const a58_0x342e7e=a58_0x2c35;(function(_0xd6cf3d,_0x56d973){const _0x263cc8=a58_0x2c35,_0x9385e9=_0xd6cf3d();while(!![]){try{const _0x51a709=-parseInt(_0x263cc8(0x148))/0x1+parseInt(_0x263cc8(0x18d))/0x2*(parseInt(_0x263cc8(0x16d))/0x3)+parseInt(_0x263cc8(0x185))/0x4*(-parseInt(_0x263cc8(0x149))/0x5)+parseInt(_0x263cc8(0x172))/0x6*(parseInt(_0x263cc8(0x139))/0x7)+-parseInt(_0x263cc8(0x182))/0x8+parseInt(_0x263cc8(0x13b))/0x9*(parseInt(_0x263cc8(0x192))/0xa)+parseInt(_0x263cc8(0x141))/0xb;if(_0x51a709===_0x56d973)break;else _0x9385e9['push'](_0x9385e9['shift']());}catch(_0x593370){_0x9385e9['push'](_0x9385e9['shift']());}}}(a58_0x53a4,0x8178b));const path=require(a58_0x342e7e(0x175)),url=require(a58_0x342e7e(0x18c)),util=require(a58_0x342e7e(0x16b)),{nestedKeyValue,isFalse}=require(a58_0x342e7e(0x187)),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),logger=require(a58_0x342e7e(0x180))[a58_0x342e7e(0x157)],constants=require('../utils/constants'),BrowserstackCLI=require(a58_0x342e7e(0x15d)),AutomationFrameworkState=require(a58_0x342e7e(0x171)),HookState=require(a58_0x342e7e(0x18b)),getBrowserFromWSEndpoint=_0x4a7c06=>{const _0x1ef42a=a58_0x342e7e,_0x4cae8c={'gkoLM':_0x1ef42a(0x14a),'wiIYH':function(_0x2acaa9,_0x2220dd){return _0x2acaa9(_0x2220dd);}};try{const _0x5df3c3=url['parse'](_0x4a7c06),_0xe9d7bd=new URLSearchParams(_0x5df3c3[_0x1ef42a(0x174)]),_0x40ad9f=Object[_0x1ef42a(0x18a)](_0xe9d7bd[_0x1ef42a(0x142)]()),_0x8a8401=JSON['parse'](_0x40ad9f[_0x1ef42a(0x17b)]);if(_0x8a8401&&(_0x8a8401['browser']||_0x8a8401['browserName']))return _0x8a8401[_0x1ef42a(0x154)]||_0x8a8401[_0x1ef42a(0x146)];return _0x4cae8c[_0x1ef42a(0x173)];}catch(_0x3a0183){_0x4cae8c[_0x1ef42a(0x14c)](debug,_0x1ef42a(0x13e)+_0x3a0183['toString']());}},getCloudProviderFromWsEndpoint=_0x5cfcb2=>{const _0x33dfc3=a58_0x342e7e,_0x59c909={};_0x59c909[_0x33dfc3(0x13c)]='browserstack',_0x59c909[_0x33dfc3(0x15a)]='unknown_grid';const _0x135622=_0x59c909;if(_0x5cfcb2['includes'](constants[_0x33dfc3(0x14f)])||_0x5cfcb2['includes'](constants[_0x33dfc3(0x162)]))return _0x135622[_0x33dfc3(0x13c)];return _0x135622[_0x33dfc3(0x15a)];},a58_0x45b062={};a58_0x45b062[a58_0x342e7e(0x145)]=undefined,a58_0x45b062[a58_0x342e7e(0x138)]=undefined,a58_0x45b062['browser']=undefined,a58_0x45b062[a58_0x342e7e(0x158)]=undefined,a58_0x45b062[a58_0x342e7e(0x15f)]=undefined,a58_0x45b062[a58_0x342e7e(0x15c)]=undefined,a58_0x45b062['product']=undefined,a58_0x45b062[a58_0x342e7e(0x16c)]={};function a58_0x2c35(_0x4263be,_0xa70919){const _0x53a4cb=a58_0x53a4();return a58_0x2c35=function(_0x2c35db,_0x2de3ba){_0x2c35db=_0x2c35db-0x138;let _0x36bad6=_0x53a4cb[_0x2c35db];return _0x36bad6;},a58_0x2c35(_0x4263be,_0xa70919);}class PuppeteerSessionDetails{static ['currentSessionDetails']=a58_0x45b062;constructor(){const _0x2696ea=a58_0x342e7e,_0xdfb3af={};_0xdfb3af[_0x2696ea(0x197)]=_0x2696ea(0x13d);const _0x2f7386=_0xdfb3af;throw new Error(_0x2f7386[_0x2696ea(0x197)]);}static [a58_0x342e7e(0x16e)]=null;static async[a58_0x342e7e(0x160)](_0x21a24a,_0x5e6e3e){const _0x5f339c=a58_0x342e7e,_0x3cde38={'NOjPK':_0x5f339c(0x14a),'JGLXh':function(_0x2575fc,_0x33fe0f){return _0x2575fc===_0x33fe0f;},'MPhWw':_0x5f339c(0x14d),'XYtyS':'local_grid','agfeJ':function(_0x5d2141,_0x6b6c0d){return _0x5d2141(_0x6b6c0d);},'prSdJ':_0x5f339c(0x184),'nBVAM':_0x5f339c(0x15e),'woIGU':_0x5f339c(0x156),'bXgtW':function(_0x41ef1e){return _0x41ef1e();},'vdidM':function(_0x5f56a5){return _0x5f56a5();}};try{let _0x53c12e=_0x3cde38['NOjPK'],_0x41f31d=null;_0x21a24a&&_0x3cde38['JGLXh'](typeof _0x21a24a[_0x5f339c(0x16f)],_0x3cde38[_0x5f339c(0x18e)])&&(_0x41f31d=await _0x21a24a[_0x5f339c(0x16f)]());let _0xa141db=null,_0x17aaad=null,_0x6dec69=null,_0x1fe763=_0x3cde38[_0x5f339c(0x13a)];if(_0x5e6e3e){_0x1fe763=_0x3cde38[_0x5f339c(0x147)](getCloudProviderFromWsEndpoint,_0x5e6e3e);if(_0x3cde38[_0x5f339c(0x169)](_0x1fe763,_0x3cde38[_0x5f339c(0x155)]))_0x6dec69=constants['ATS_WSS_URL_REGEX']?constants[_0x5f339c(0x198)][_0x5f339c(0x14b)](_0x5e6e3e)?_0x3cde38[_0x5f339c(0x196)]:_0x3cde38[_0x5f339c(0x193)]:_0x3cde38[_0x5f339c(0x193)],_0x53c12e=_0x3cde38[_0x5f339c(0x147)](getBrowserFromWSEndpoint,_0x5e6e3e)||_0x53c12e,_0xa141db=this['currentSessionDetails'][_0x5f339c(0x15f)],_0x17aaad=this[_0x5f339c(0x144)][_0x5f339c(0x15c)];else{const _0x53bd0c=await _0x3cde38[_0x5f339c(0x179)](getPlatformDetails);_0xa141db=_0x53bd0c[_0x5f339c(0x17a)],_0x17aaad=_0x53bd0c['platformVersion'];}}else{const _0x2acf17=await _0x3cde38[_0x5f339c(0x176)](getPlatformDetails);_0xa141db=_0x2acf17[_0x5f339c(0x17a)],_0x17aaad=_0x2acf17['platformVersion'];}const _0x1431cf={};_0x1431cf['browser']=_0x53c12e,_0x1431cf['browser_version']=_0x41f31d,_0x1431cf[_0x5f339c(0x16c)]={},_0x1431cf['platform']=_0xa141db,_0x1431cf[_0x5f339c(0x15c)]=_0x17aaad,_0x1431cf[_0x5f339c(0x167)]=_0x6dec69;const _0x5b05cd=_0x1431cf,_0x48977e={};_0x48977e[_0x5f339c(0x145)]=_0x1fe763,this[_0x5f339c(0x144)]=Object[_0x5f339c(0x183)]({},this[_0x5f339c(0x144)],_0x48977e,_0x5b05cd);}catch(_0x4d8595){_0x3cde38['agfeJ'](debug,'Error\x20in\x20setupBrowserDetails:\x20'+util[_0x5f339c(0x17e)](_0x4d8595)),this['sessionError']=_0x4d8595[_0x5f339c(0x140)]();}}static[a58_0x342e7e(0x14e)](_0x20e834){const _0x20b56c=a58_0x342e7e,_0x1f3a7f={'AGIYE':function(_0x380480,_0x316960){return _0x380480===_0x316960;},'PSSFv':_0x20b56c(0x16a),'GACzu':function(_0x259f80,_0x707965){return _0x259f80(_0x707965);},'EzNEO':function(_0x2406ed,_0x225c7a){return _0x2406ed(_0x225c7a);},'SxYkp':'[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','yhcgF':function(_0x201bda,_0x47f564){return _0x201bda(_0x47f564);}},_0x3d28cc=this;try{const _0x162727=_0x20e834[_0x20b56c(0x18f)]||_0x20e834[_0x20b56c(0x170)];if(!_0x162727||_0x162727[_0x20b56c(0x168)])return;const _0x2f8ed2=_0x162727[_0x20b56c(0x177)];_0x162727[_0x20b56c(0x177)]=function(_0x4850ef){const _0x245fa9=_0x20b56c;try{const _0x5c033c=_0x1f3a7f[_0x245fa9(0x150)](typeof _0x4850ef,_0x1f3a7f[_0x245fa9(0x143)])?JSON[_0x245fa9(0x17d)](_0x4850ef):_0x4850ef,_0x3bc228=_0x5c033c?.['bStackParams']||_0x5c033c?.[_0x245fa9(0x164)]||_0x5c033c?.[_0x245fa9(0x151)]?.[_0x245fa9(0x164)]||_0x5c033c?.[_0x245fa9(0x151)]?.[_0x245fa9(0x165)]||_0x5c033c?.['result']?.[_0x245fa9(0x164)]||_0x5c033c?.[_0x245fa9(0x194)]?.[_0x245fa9(0x165)];if(_0x3bc228){if(BrowserstackCLI[_0x245fa9(0x17c)]()[_0x245fa9(0x191)]()){const _0x230dd0={};_0x230dd0['message']=_0x5c033c,BrowserstackCLI[_0x245fa9(0x17c)]()[_0x245fa9(0x190)]()[_0x245fa9(0x166)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x245fa9(0x152)],_0x230dd0);}else{const _0x55c345=_0x3bc228[_0x245fa9(0x189)],_0x136701=_0x3bc228[_0x245fa9(0x163)];_0x136701&&(_0x1f3a7f[_0x245fa9(0x188)](debug,_0x245fa9(0x195)+JSON[_0x245fa9(0x13f)](_0x136701)),_0x3d28cc[_0x245fa9(0x144)][_0x245fa9(0x15f)]=_0x136701['platformName'],_0x3d28cc[_0x245fa9(0x144)][_0x245fa9(0x15c)]=_0x136701['platformVersion']),_0x55c345&&(_0x1f3a7f[_0x245fa9(0x159)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x55c345),_0x3d28cc[_0x245fa9(0x144)][_0x245fa9(0x138)]=_0x55c345);}_0x1f3a7f['AGIYE'](typeof _0x4850ef,_0x1f3a7f[_0x245fa9(0x143)])&&(delete _0x5c033c[_0x245fa9(0x165)],delete _0x5c033c[_0x245fa9(0x164)],_0x5c033c[_0x245fa9(0x151)]&&(delete _0x5c033c[_0x245fa9(0x151)][_0x245fa9(0x164)],delete _0x5c033c[_0x245fa9(0x151)][_0x245fa9(0x165)]),_0x5c033c[_0x245fa9(0x194)]&&(delete _0x5c033c['result'][_0x245fa9(0x164)],delete _0x5c033c['result'][_0x245fa9(0x165)]));}}catch(_0x1db4ca){_0x1f3a7f[_0x245fa9(0x159)](debug,_0x245fa9(0x186)+_0x1db4ca[_0x245fa9(0x181)]);}return _0x2f8ed2?.[_0x245fa9(0x161)](this,arguments);},_0x162727[_0x20b56c(0x168)]=!![],logger[_0x20b56c(0x178)](_0x1f3a7f['SxYkp']);}catch(_0x2a5f8b){_0x1f3a7f[_0x20b56c(0x15b)](debug,'Error\x20in\x20patchConnection:\x20'+util['format'](_0x2a5f8b)),_0x3d28cc['sessionError']=_0x2a5f8b['toString']();}}static[a58_0x342e7e(0x153)](){const _0x9f4e6e=a58_0x342e7e;return this[_0x9f4e6e(0x144)];}}module[a58_0x342e7e(0x17f)]=PuppeteerSessionDetails;function a58_0x53a4(){const _0x15a847=['winstonLogger','browser_version','EzNEO','gusMX','yhcgF','platform_version','../v2/browserstackCLI','turboscale','platform','setupBrowserDetails','apply','BSTACK_ATS_URL','platformDetails','bsParams','bStackParams','trackEvent','product','_bstackPatched','JGLXh','string','util','capabilities','12XjXqCg','sessionError','version','connection','../v2/state/automationFrameworkState.js','18SKTVCI','gkoLM','query','path','vdidM','onmessage','debug','bXgtW','platformName','caps','getInstance','parse','format','exports','../../helpers/logger','message','7112032adWWKH','assign','browserstack','8IbZroy','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','../../helpers/helper','GACzu','sessionId','fromEntries','../v2/state/hookState.js','url','440434dSpPgK','MPhWw','_connection','getAutomationFramework','isRunning','670UvhGdM','woIGU','result','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','nBVAM','tWolP','ATS_WSS_URL_REGEX','bsSessionId','52241SLNhPB','XYtyS','119907aCLZyB','wAoqH','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','stringify','toString','9103688gYzRKj','entries','PSSFv','currentSessionDetails','cloudProvider','browserName','agfeJ','935353uHfvIK','672085yJfqjO','chrome','test','wiIYH','function','patchConnection','BSTACK_URL','AGIYE','params','POST','getDetails','browser','prSdJ','automate'];a58_0x53a4=function(){return _0x15a847;};return a58_0x53a4();}
@@ -1 +1 @@
1
- const a59_0x5ddb03=a59_0xef4e;(function(_0x37e5fd,_0xfd685d){const _0x291334=a59_0xef4e,_0x35f18c=_0x37e5fd();while(!![]){try{const _0x5af89a=-parseInt(_0x291334(0xd0))/0x1*(parseInt(_0x291334(0xd9))/0x2)+parseInt(_0x291334(0xcc))/0x3*(-parseInt(_0x291334(0xe4))/0x4)+parseInt(_0x291334(0xd8))/0x5+parseInt(_0x291334(0xd1))/0x6+parseInt(_0x291334(0xe1))/0x7*(parseInt(_0x291334(0xe5))/0x8)+-parseInt(_0x291334(0xc8))/0x9*(-parseInt(_0x291334(0xd5))/0xa)+-parseInt(_0x291334(0xcd))/0xb*(-parseInt(_0x291334(0xc6))/0xc);if(_0x5af89a===_0xfd685d)break;else _0x35f18c['push'](_0x35f18c['shift']());}catch(_0x58c697){_0x35f18c['push'](_0x35f18c['shift']());}}}(a59_0x3eee,0x5960f));function a59_0x3eee(){const _0x5d860a=['../v2/browserstackCLI','../../helpers/setKeepAlive','util','1861130qdbvxq','__skipSessionStatus','skipSessionStatus','1274715KbyrLe','10FUBfEM','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','isCliEnabled','pwPage','env','format','skipSessionName','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','993503ulMeqX','__skipSessionName','BROWSERSTACK_PUPPETEER','76QIIOhK','16mNygri','../../helpers/test-observability/utils','__workerDetails','PUPPETEER','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','debug','getPackageVersion','workerInfo','../../helpers/helper','true','JEST','o11ySyncDone','../v2/cliUtils','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','winstonLogger','isPageFixture','../../helpers/testhub/utils','initializePuppeteerPatching','puppeteer','4389708pHbQBL','bootstrap','9ireMCw','currentTest','jestConfig','getInstance','62664BKRhvz','11CervJT','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','testInfo','142082naxiVP','2295924kMcoXX'];a59_0x3eee=function(){return _0x5d860a;};return a59_0x3eee();}const {isTrue,isBrowserstackInfra}=require(a59_0x5ddb03(0xed)),setKeepAlive=require(a59_0x5ddb03(0xd3)),util=require(a59_0x5ddb03(0xd4)),logger=require('../../helpers/logger')[a59_0x5ddb03(0xc1)],{shouldProcessEventForTesthub}=require(a59_0x5ddb03(0xc3)),{addRequestSpy}=require(a59_0x5ddb03(0xe6)),a59_0x5bdaa6={};a59_0x5bdaa6[a59_0x5ddb03(0xec)]=undefined,a59_0x5bdaa6[a59_0x5ddb03(0xc9)]={},a59_0x5bdaa6[a59_0x5ddb03(0xbe)]=![],a59_0x5bdaa6[a59_0x5ddb03(0xdc)]=null,a59_0x5bdaa6[a59_0x5ddb03(0xc2)]=![],a59_0x5bdaa6[a59_0x5ddb03(0xc9)]['id']=undefined,a59_0x5bdaa6[a59_0x5ddb03(0xc9)][a59_0x5ddb03(0xcf)]=undefined;function a59_0xef4e(_0x4cc4b6,_0x19aa77){const _0x3eee52=a59_0x3eee();return a59_0xef4e=function(_0xef4e69,_0xc5e330){_0xef4e69=_0xef4e69-0xbe;let _0x3beb=_0x3eee52[_0xef4e69];return _0x3beb;},a59_0xef4e(_0x4cc4b6,_0x19aa77);}const workerDetails=a59_0x5bdaa6;global[a59_0x5ddb03(0xe7)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global[a59_0x5ddb03(0xca)])try{isBrowserstackInfra()?(global[a59_0x5ddb03(0xe2)]=isTrue(global[a59_0x5ddb03(0xca)]?.[a59_0x5ddb03(0xdf)]),global[a59_0x5ddb03(0xd6)]=isTrue(global['jestConfig']?.[a59_0x5ddb03(0xd7)])):(global[a59_0x5ddb03(0xe2)]=!![],global[a59_0x5ddb03(0xd6)]=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper[a59_0x5ddb03(0xeb)](a59_0x5ddb03(0xc5))||helper[a59_0x5ddb03(0xeb)]('puppeteer-core');if(puppeteerVersion)try{logger[a59_0x5ddb03(0xea)]('[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest'),puppeteerPatcher=require('../utils/puppeteer-patcher'),puppeteerPatcher[a59_0x5ddb03(0xc4)](global['jestConfig']),logger[a59_0x5ddb03(0xea)](a59_0x5ddb03(0xda));}catch(a59_0xeb232d){logger[a59_0x5ddb03(0xea)](a59_0x5ddb03(0xe9)+util[a59_0x5ddb03(0xde)](a59_0xeb232d));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a59_0x5ddb03(0xd2)),CLIUtils=require(a59_0x5ddb03(0xbf)),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI['getInstance']()[a59_0x5ddb03(0xdb)]()&&(logger['debug']('[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker'),process[a59_0x5ddb03(0xdd)][a59_0x5ddb03(0xe3)]=a59_0x5ddb03(0xee),CLIUtils['setFrameworkDetail'](FRAMEWORKS[a59_0x5ddb03(0xef)],FRAMEWORKS[a59_0x5ddb03(0xe8)]),BrowserstackCLI[a59_0x5ddb03(0xcb)]()[a59_0x5ddb03(0xc7)]()['catch'](_0x364ea=>{const _0x39688e=a59_0x5ddb03;logger[_0x39688e(0xea)](_0x39688e(0xe0)+util[_0x39688e(0xde)](_0x364ea));}));}catch(a59_0x381cd5){logger[a59_0x5ddb03(0xea)]('[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20'+util[a59_0x5ddb03(0xde)](a59_0x381cd5));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a59_0x19fcb1){logger[a59_0x5ddb03(0xea)](a59_0x5ddb03(0xc0)+util[a59_0x5ddb03(0xde)](a59_0x19fcb1));}logger[a59_0x5ddb03(0xea)](a59_0x5ddb03(0xce));
1
+ const a59_0x11d526=a59_0x40fc;(function(_0x1aa626,_0x584dfd){const _0x4e742d=a59_0x40fc,_0x5b4a43=_0x1aa626();while(!![]){try{const _0x4686fb=-parseInt(_0x4e742d(0xa0))/0x1*(-parseInt(_0x4e742d(0xa7))/0x2)+-parseInt(_0x4e742d(0x91))/0x3+-parseInt(_0x4e742d(0x8f))/0x4+-parseInt(_0x4e742d(0xa9))/0x5+-parseInt(_0x4e742d(0xbb))/0x6*(-parseInt(_0x4e742d(0xaf))/0x7)+parseInt(_0x4e742d(0x9c))/0x8*(-parseInt(_0x4e742d(0xb9))/0x9)+parseInt(_0x4e742d(0xa2))/0xa;if(_0x4686fb===_0x584dfd)break;else _0x5b4a43['push'](_0x5b4a43['shift']());}catch(_0x1c6a73){_0x5b4a43['push'](_0x5b4a43['shift']());}}}(a59_0x4e53,0x6782e));function a59_0x4e53(){const _0x3b2f49=['getInstance','129487yYguxB','../v2/cliUtils','10765340DOMqnY','env','setFrameworkDetail','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','../../helpers/setKeepAlive','2JpIWlu','isCliEnabled','1035225IhMbTE','testInfo','puppeteer','o11ySyncDone','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','util','7yoYzYK','catch','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','isPageFixture','puppeteer-core','jestConfig','workerInfo','__workerDetails','initializePuppeteerPatching','../../helpers/helper','564444rGQMbw','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','1662762WUdyZz','../v2/browserstackCLI','1063844ZOAGTB','../../helpers/testhub/utils','253296LmLBXd','currentTest','../utils/puppeteer-patcher','__skipSessionName','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','true','JEST','BROWSERSTACK_PUPPETEER','debug','../../helpers/test-observability/utils','format','64BViQRl','skipSessionStatus','getPackageVersion'];a59_0x4e53=function(){return _0x3b2f49;};return a59_0x4e53();}const {isTrue,isBrowserstackInfra}=require(a59_0x11d526(0xb8)),setKeepAlive=require(a59_0x11d526(0xa6)),util=require(a59_0x11d526(0xae)),logger=require('../../helpers/logger')['winstonLogger'],{shouldProcessEventForTesthub}=require(a59_0x11d526(0x90)),{addRequestSpy}=require(a59_0x11d526(0x9a)),a59_0x30fafe={};a59_0x30fafe[a59_0x11d526(0xb5)]=undefined,a59_0x30fafe[a59_0x11d526(0x92)]={},a59_0x30fafe[a59_0x11d526(0xac)]=![],a59_0x30fafe['pwPage']=null,a59_0x30fafe[a59_0x11d526(0xb2)]=![],a59_0x30fafe[a59_0x11d526(0x92)]['id']=undefined,a59_0x30fafe[a59_0x11d526(0x92)][a59_0x11d526(0xaa)]=undefined;function a59_0x40fc(_0x18efc6,_0x278a5d){const _0x4e537b=a59_0x4e53();return a59_0x40fc=function(_0x40fcd7,_0x976af0){_0x40fcd7=_0x40fcd7-0x8f;let _0x46c7fd=_0x4e537b[_0x40fcd7];return _0x46c7fd;},a59_0x40fc(_0x18efc6,_0x278a5d);}const workerDetails=a59_0x30fafe;global[a59_0x11d526(0xb6)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a59_0x11d526(0x94)]=isTrue(global[a59_0x11d526(0xb4)]?.['skipSessionName']),global['__skipSessionStatus']=isTrue(global[a59_0x11d526(0xb4)]?.[a59_0x11d526(0x9d)])):(global[a59_0x11d526(0x94)]=!![],global['__skipSessionStatus']=!![]);const helper=require(a59_0x11d526(0xb8)),puppeteerVersion=helper[a59_0x11d526(0x9e)](a59_0x11d526(0xab))||helper[a59_0x11d526(0x9e)](a59_0x11d526(0xb3));if(puppeteerVersion)try{logger['debug'](a59_0x11d526(0xad)),puppeteerPatcher=require(a59_0x11d526(0x93)),puppeteerPatcher[a59_0x11d526(0xb7)](global[a59_0x11d526(0xb4)]),logger[a59_0x11d526(0x99)]('[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized');}catch(a59_0x5054a2){logger['debug'](a59_0x11d526(0xba)+util[a59_0x11d526(0x9b)](a59_0x5054a2));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a59_0x11d526(0xbc)),CLIUtils=require(a59_0x11d526(0xa1)),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI[a59_0x11d526(0x9f)]()[a59_0x11d526(0xa8)]()&&(logger[a59_0x11d526(0x99)](a59_0x11d526(0x95)),process[a59_0x11d526(0xa3)][a59_0x11d526(0x98)]=a59_0x11d526(0x96),CLIUtils[a59_0x11d526(0xa4)](FRAMEWORKS[a59_0x11d526(0x97)],FRAMEWORKS['PUPPETEER']),BrowserstackCLI[a59_0x11d526(0x9f)]()['bootstrap']()[a59_0x11d526(0xb0)](_0x1e508a=>{const _0x14cfa6=a59_0x11d526;logger[_0x14cfa6(0x99)](_0x14cfa6(0xb1)+util[_0x14cfa6(0x9b)](_0x1e508a));}));}catch(a59_0x103f28){logger[a59_0x11d526(0x99)]('[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20'+util[a59_0x11d526(0x9b)](a59_0x103f28));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a59_0x24902a){logger[a59_0x11d526(0x99)]('[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20'+util['format'](a59_0x24902a));}logger[a59_0x11d526(0x99)](a59_0x11d526(0xa5));
package/src/bin/runner.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a60_0x59b31e=a60_0x14c2;(function(_0x4f5497,_0x3779b0){const _0x2e59dd=a60_0x14c2,_0x1130fb=_0x4f5497();while(!![]){try{const _0x38938b=-parseInt(_0x2e59dd(0xea))/0x1+-parseInt(_0x2e59dd(0x135))/0x2+-parseInt(_0x2e59dd(0x128))/0x3+parseInt(_0x2e59dd(0xc3))/0x4*(parseInt(_0x2e59dd(0xff))/0x5)+-parseInt(_0x2e59dd(0xd4))/0x6+parseInt(_0x2e59dd(0x105))/0x7+-parseInt(_0x2e59dd(0x11c))/0x8*(-parseInt(_0x2e59dd(0xed))/0x9);if(_0x38938b===_0x3779b0)break;else _0x1130fb['push'](_0x1130fb['shift']());}catch(_0x43a5a1){_0x1130fb['push'](_0x1130fb['shift']());}}}(a60_0x5605,0x7f1fb));function a60_0x5605(){const _0x2d1b1f=['../helpers/test-observability/constants','qVxoq','giBJM','fvpGT','stop','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','message','getConfigPath','JASMINE','findAndReplace','../helpers/logger','BhNWr','372752KklUnP','./v2/browserstackCLI','DEBUG_FILE','handler','usage:\x20$0\x20<command>\x20[args]','../../ats/src/index','slice','error','UEkUm','ElTdg','./mocha/command','trim','2142180DnavEY','stack','dOTPa','--no-config','PGrHO','setBrowserStackAutomationDisable','./newman/command','DEBUG','DfVaH','.browserstack','../helpers/helper','util','hIlzb','1134496zdDnWm','bDPTc','isUndefined','OJcKZ','VANILLA','INTEGRATIONS','./jasmine/command','OhCeK','includes','lmHNX','YOlKZ','argv','./playwright/command','RbAnc','--mochaRequire','PLAYWRIGHT','info','setTestObservabilityDisable','split','framework','run','./jest/command','find','start','MuMCb','SDK_CLEANUP','ossBE','join','disableAutoCaptureLogs','codeceptjs','SDK_SETUP','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','JEST','./vanilla-js/command','nightwatch','pAoRQ','describe','zXADB','whRWH','cpIMB','wdeXR','env','VyKqX','pw:*','MtHxM','PKlfE','../helpers/performance/constants','some','assign','parserConfiguration','existsSync','mFnKt','IbIxu','help','./load/index','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','eIaCU','Gndux','mocha/lib/cli/commands.js','sendLogs','child_process','gPPDx','format','../helpers/utilities','exitProcess','--opts','wrap','YGHla','./cucumber-js/command','.local-not-set.json','XafQw','Parsing\x20command\x20line\x20arguments','44vfyIFO','NkAps','vijGK','sXpXj','HST','debug','./codeceptjs/command','./nightwatch/command','jasmine','pw:channel\x20auto-capture\x20seed\x20failed:\x20','SDKTestSuccessful','ats','INFO','Show\x20help','Running\x20SDK\x20with\x20args\x20','--package','end','2624742vYnkGG','CUCUMBER','HELP','unlinkSync','CnPoM','./utils/constants','./integrations/command','alias','nYJwD','strict','cphgh','UQuIP','-pw:channel','PYsYK','WUbZk','getInstance','BGxbv','--no-opts','dot-notation','EVENTS','cucumber-js','rubmt','50911QXgJUo','./testcafe/command','mocha','180EUhZcJ','XVBKR','winstonLogger','boolean','MOCHA','../helpers/performance/performance-tester','push','BROWSERSTACK_CONFIG_FILE_PATH','zyMvX','command','sAutq','path','cLMJT','pw:channel','hbPzC','load\x20[subcommand]','gKCyd','exitCode','237635VDHgdk','playwright','ZoMiT','KHGtc','pdmBk','Runs\x20the\x20binary\x20with\x20load\x20command','5849886MapnPx','version','tDBII','jest','CODECEPTJS','FOsvY','testcafe','vanilla','VERSION','config','KlunF'];a60_0x5605=function(){return _0x2d1b1f;};return a60_0x5605();}function a60_0x14c2(_0x589f40,_0x52444b){const _0x56050a=a60_0x5605();return a60_0x14c2=function(_0x14c238,_0x585541){_0x14c238=_0x14c238-0xaf;let _0x1128de=_0x56050a[_0x14c238];return _0x1128de;},a60_0x14c2(_0x589f40,_0x52444b);}const fs=require('fs'),path=require(a60_0x59b31e(0xf8)),util=require(a60_0x59b31e(0x133)),spawn=require(a60_0x59b31e(0xb7))['spawn'],{requireModule}=require(a60_0x59b31e(0x132)),PerformanceTester=require(a60_0x59b31e(0xf2)),PerformanceEvents=require(a60_0x59b31e(0x163))[a60_0x59b31e(0xe7)],helper=require(a60_0x59b31e(0x132)),utilities=require(a60_0x59b31e(0xba)),{default:BrowserStackSetup}=require('../helpers/BrowserStackSetup'),{FRAMEWORKS}=require(a60_0x59b31e(0x110)),runIntegrations=require(a60_0x59b31e(0xda)),yargs=require('yargs'),Constants=require(a60_0x59b31e(0xd9)),BrowserstackCLI=require(a60_0x59b31e(0x11d)),{isNewman}=require('./newman/helper'),logger=require(a60_0x59b31e(0x11a))[a60_0x59b31e(0xef)],origArgs=Object[a60_0x59b31e(0x165)]([],process[a60_0x59b31e(0x140)]),captureError=async(_0x6a452c,_0x53b036,_0x54dddb,_0x231bf1=null,_0x7e5ecc=![])=>{const _0x14c5d4=a60_0x59b31e,_0x3232bb={'UEkUm':function(_0xa31bd,_0x42039b,_0x1bc2e1,_0x3efe8a){return _0xa31bd(_0x42039b,_0x1bc2e1,_0x3efe8a);},'mFnKt':_0x14c5d4(0xcd)};try{logger[_0x14c5d4(0x145)](_0x14c5d4(0xd1)+origArgs[_0x14c5d4(0x150)]('\x20')),await _0x3232bb[_0x14c5d4(0x124)](_0x6a452c,_0x53b036,_0x231bf1,_0x54dddb);}catch(_0x2e4d85){process[_0x14c5d4(0xfe)]=0x1,logger[_0x14c5d4(0x123)](util[_0x14c5d4(0xb9)](_0x2e4d85));const _0x29e2b4={'globalException':util['format']('%j',_0x2e4d85)};PerformanceTester[_0x14c5d4(0xd3)](PerformanceEvents[_0x14c5d4(0x153)],![],util[_0x14c5d4(0xb9)](_0x2e4d85));if(helper[_0x14c5d4(0x137)](global[_0x14c5d4(0x10e)])&&helper[_0x14c5d4(0x137)](global[_0x14c5d4(0x148)]))return;try{utilities['fireFunnelTestEvent'](_0x3232bb[_0x14c5d4(0x168)],_0x29e2b4,global[_0x14c5d4(0x10e)],global[_0x14c5d4(0x148)]);}catch(_0x483515){logger[_0x14c5d4(0xc8)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x483515['stack']);}try{await helper[_0x14c5d4(0xb6)](global['config']);}catch(_0x5c2f00){logger['debug'](_0x14c5d4(0x115)+_0x5c2f00[_0x14c5d4(0x129)]);}PerformanceTester['end'](PerformanceEvents[_0x14c5d4(0x153)],![],util[_0x14c5d4(0xb9)](_0x2e4d85));}finally{!_0x7e5ecc&&await BrowserstackCLI[_0x14c5d4(0xe3)]()[_0x14c5d4(0x114)](),PerformanceTester[_0x14c5d4(0x14c)](PerformanceEvents[_0x14c5d4(0x14e)]);}};try{const browserstackFolderPath=path[a60_0x59b31e(0x150)](helper['homedir'](),a60_0x59b31e(0x131));if(fs[a60_0x59b31e(0x167)](browserstackFolderPath)){const filePath=path[a60_0x59b31e(0x150)](browserstackFolderPath,a60_0x59b31e(0xc0));fs[a60_0x59b31e(0x167)](filePath)&&fs[a60_0x59b31e(0xd7)](filePath);}}catch(a60_0x75c4ab){logger[a60_0x59b31e(0xc8)](a60_0x59b31e(0xb2)+a60_0x75c4ab[a60_0x59b31e(0x116)]);}process[a60_0x59b31e(0x140)][a60_0x59b31e(0x13d)](a60_0x59b31e(0xec))&&(!process[a60_0x59b31e(0x140)][a60_0x59b31e(0x13d)](a60_0x59b31e(0xbc))&&process[a60_0x59b31e(0x140)][a60_0x59b31e(0xf3)](a60_0x59b31e(0xe5)),!process[a60_0x59b31e(0x140)][a60_0x59b31e(0x14b)](_0x561f38=>_0x561f38[a60_0x59b31e(0x13d)]('--config'))&&process['argv'][a60_0x59b31e(0xf3)](a60_0x59b31e(0x12b)),!process[a60_0x59b31e(0x140)][a60_0x59b31e(0x13d)](a60_0x59b31e(0xd2))&&process[a60_0x59b31e(0x140)][a60_0x59b31e(0xf3)]('--no-package'),helper[a60_0x59b31e(0x119)](process[a60_0x59b31e(0x140)],'--require',a60_0x59b31e(0x143)));PerformanceTester['start'](PerformanceEvents[a60_0x59b31e(0x153)]);const a60_0x2a930e={};a60_0x2a930e[a60_0x59b31e(0xe6)]=![];const argv=yargs[a60_0x59b31e(0x166)](a60_0x2a930e)['usage'](a60_0x59b31e(0x120))[a60_0x59b31e(0xdb)]('v',a60_0x59b31e(0x106))[a60_0x59b31e(0x159)]('v')[a60_0x59b31e(0xdb)]('h','help')[a60_0x59b31e(0xb0)](a60_0x59b31e(0xb0))['showHelpOnFail'](!![],Constants[a60_0x59b31e(0x10d)][a60_0x59b31e(0xd6)])[a60_0x59b31e(0xf6)]('jest',Constants[a60_0x59b31e(0x155)][a60_0x59b31e(0xcf)],function(_0x223020){const _0x9cfbf9=a60_0x59b31e,_0x57c445={'OJcKZ':_0x9cfbf9(0x108),'hIlzb':function(_0x292bda,_0x15e689,_0x49339f,_0x3cc59b,_0x476915,_0x4ed747){return _0x292bda(_0x15e689,_0x49339f,_0x3cc59b,_0x476915,_0x4ed747);},'tDBII':function(_0x1cd406,_0x498dc8){return _0x1cd406(_0x498dc8);},'cpIMB':_0x9cfbf9(0x14a)},_0x3e0b1c=process[_0x9cfbf9(0x140)][_0x9cfbf9(0x122)](0x2);helper[_0x9cfbf9(0x146)](),helper['setBrowserStackAutomationDisable'](),_0x223020[_0x9cfbf9(0xdd)](![]);const _0x5b795a=new BrowserStackSetup(_0x223020[_0x9cfbf9(0x140)],_0x57c445[_0x9cfbf9(0x138)]);return _0x57c445[_0x9cfbf9(0x134)](captureError,_0x57c445[_0x9cfbf9(0x107)](require,_0x57c445[_0x9cfbf9(0x15c)]),_0x223020[_0x9cfbf9(0x140)],_0x5b795a,_0x3e0b1c,!![]);})[a60_0x59b31e(0xf6)](a60_0x59b31e(0xcb),Constants[a60_0x59b31e(0x118)][a60_0x59b31e(0xcf)],function(_0x4b2650){const _0x1a135f=a60_0x59b31e,_0x265c46={'RxIEN':_0x1a135f(0xcb),'gPPDx':function(_0x53645e,_0x1eea47,_0x2a1be5,_0x1111db,_0x3023ff,_0x18c142){return _0x53645e(_0x1eea47,_0x2a1be5,_0x1111db,_0x3023ff,_0x18c142);},'MSQPS':function(_0x2673eb,_0x10d58b){return _0x2673eb(_0x10d58b);},'cLMJT':_0x1a135f(0x13b)},_0x11b6a2=process['argv']['slice'](0x2);helper[_0x1a135f(0x146)](),helper[_0x1a135f(0x12d)](),_0x4b2650[_0x1a135f(0xdd)](![]);const _0x505919=new BrowserStackSetup(_0x4b2650['argv'],_0x265c46['RxIEN']);return _0x265c46[_0x1a135f(0xb8)](captureError,_0x265c46['MSQPS'](require,_0x265c46[_0x1a135f(0xf9)]),_0x4b2650[_0x1a135f(0x140)],_0x505919,_0x11b6a2,!![]);})['command'](a60_0x59b31e(0xec),Constants[a60_0x59b31e(0xf1)][a60_0x59b31e(0xcf)],_0x52b7ae=>{const _0x42eed0=a60_0x59b31e,_0x1293c7={'hyWgH':function(_0x21074f,_0x3c185a,_0x4e0a75,_0x3af9a7){return _0x21074f(_0x3c185a,_0x4e0a75,_0x3af9a7);},'XVBKR':function(_0x509222,_0x21b783){return _0x509222(_0x21b783);},'Gndux':_0x42eed0(0x126),'IbIxu':_0x42eed0(0xec),'vijGK':_0x42eed0(0xc2),'WUbZk':function(_0x2b1a48,_0x21d7dc,_0x464ce2){return _0x2b1a48(_0x21d7dc,_0x464ce2);},'XafQw':'mocha/lib/cli/run.js','YGHla':function(_0x23b24c,_0x201201,_0x87e561){return _0x23b24c(_0x201201,_0x87e561);},'ossBE':_0x42eed0(0xb5),'kfDEb':function(_0x549a73,_0xfeda54,_0x11483b){return _0x549a73(_0xfeda54,_0x11483b);},'pAoRQ':'mocha/lib/cli/cli.js','lmHNX':function(_0xb4905){return _0xb4905();}};process[_0x42eed0(0x140)]=process[_0x42eed0(0x140)][_0x42eed0(0x122)](0x1),helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable']();const _0x4bf112=new BrowserStackSetup(_0x52b7ae['argv'],_0x1293c7[_0x42eed0(0xaf)]);logger['debug'](_0x1293c7[_0x42eed0(0xc5)]);const _0x44d86c=_0x1293c7[_0x42eed0(0xe2)](requireModule,_0x1293c7[_0x42eed0(0xc1)],_0x1293c7[_0x42eed0(0xaf)]),_0x166400=_0x1293c7[_0x42eed0(0xbe)](requireModule,_0x1293c7[_0x42eed0(0x14f)],_0x1293c7['IbIxu']);delete _0x44d86c[_0x42eed0(0x11f)],_0x44d86c[_0x42eed0(0x11f)]=function(_0x308a9f){const _0x347429=_0x42eed0;return _0x1293c7['hyWgH'](captureError,_0x1293c7[_0x347429(0xee)](require,_0x1293c7[_0x347429(0xb4)]),_0x308a9f,_0x4bf112);},_0x166400[_0x42eed0(0x149)]=_0x44d86c;const {main:_0x1a3b56}=_0x1293c7['kfDEb'](requireModule,_0x1293c7[_0x42eed0(0x158)],_0x1293c7[_0x42eed0(0xaf)]);_0x1293c7[_0x42eed0(0x13e)](_0x1a3b56);})['command'](a60_0x59b31e(0xe8),Constants[a60_0x59b31e(0xd5)][a60_0x59b31e(0xcf)],function(_0xe3d4e2){const _0x250b0a=a60_0x59b31e,_0x22edbe={'PYsYK':'cucumber-js','eIaCU':function(_0x145154,_0x2e696b,_0x458ff2,_0x4240a3,_0x10206e,_0x32e5b6){return _0x145154(_0x2e696b,_0x458ff2,_0x4240a3,_0x10206e,_0x32e5b6);},'ZoMiT':function(_0x450bdf,_0x20b970){return _0x450bdf(_0x20b970);},'MtHxM':_0x250b0a(0xbf)},_0x20eef6=process[_0x250b0a(0x140)][_0x250b0a(0x122)](0x2),_0x2c78a6=new BrowserStackSetup(_0xe3d4e2[_0x250b0a(0x140)],_0x22edbe[_0x250b0a(0xe1)]);return _0x22edbe[_0x250b0a(0xb3)](captureError,_0x22edbe[_0x250b0a(0x101)](require,_0x22edbe[_0x250b0a(0x161)]),_0xe3d4e2[_0x250b0a(0x140)],_0x2c78a6,_0x20eef6,!![]);})['command']('node',Constants[a60_0x59b31e(0x139)][a60_0x59b31e(0xcf)],function(_0xa31b0e){const _0x44596d=a60_0x59b31e,_0x52e25d={'FOsvY':_0x44596d(0x10c),'hbPzC':function(_0x116cf0,_0x1daafc){return _0x116cf0(_0x1daafc);},'rubmt':'newman','KHGtc':function(_0x237dc7,_0x1848ec,_0xec4678,_0x3e17a5,_0x586968){return _0x237dc7(_0x1848ec,_0xec4678,_0x3e17a5,_0x586968);},'cphgh':function(_0x4f63f3,_0x2ff4a1){return _0x4f63f3(_0x2ff4a1);},'zXADB':'./newman/command','YSmJW':function(_0x10ec14,_0x47900a){return _0x10ec14(_0x47900a);},'swHgk':_0x44596d(0x156)},_0x263b4b=process['argv'][_0x44596d(0x122)](0x2),_0x28948c=new BrowserStackSetup(_0xa31b0e[_0x44596d(0x140)],_0x52e25d[_0x44596d(0x10a)]),_0x3eee56=_0x28948c?_0x28948c['config']:null;if(_0x52e25d[_0x44596d(0xfb)](isNewman,_0x3eee56))return _0x28948c[_0x44596d(0x148)]=_0x52e25d[_0x44596d(0xe9)],global[_0x44596d(0x148)]=_0x52e25d[_0x44596d(0xe9)],_0x52e25d[_0x44596d(0x102)](captureError,_0x52e25d[_0x44596d(0xde)](require,_0x52e25d[_0x44596d(0x15a)]),_0xa31b0e[_0x44596d(0x140)],_0x28948c,_0x263b4b);return _0x52e25d[_0x44596d(0x102)](captureError,_0x52e25d['YSmJW'](require,_0x52e25d['swHgk']),_0xa31b0e['argv'],_0x28948c,_0x263b4b);})[a60_0x59b31e(0xf6)]('nightwatch',Constants['NIGHTWATCH']['INFO'],function(_0xdefd48){const _0xe2aba4=a60_0x59b31e,_0x238087={'zyMvX':_0xe2aba4(0x157),'UQuIP':function(_0x1af170,_0xc62aeb,_0x24024a,_0x5e2c23,_0x4c8341){return _0x1af170(_0xc62aeb,_0x24024a,_0x5e2c23,_0x4c8341);},'YCgBV':function(_0x506e1b,_0x2367b1){return _0x506e1b(_0x2367b1);},'BGxbv':_0xe2aba4(0xca)},_0x53d1a8=process['argv'][_0xe2aba4(0x122)](0x2),_0x1ddc7c=new BrowserStackSetup(_0xdefd48[_0xe2aba4(0x140)],_0x238087[_0xe2aba4(0xf5)]);return _0x238087[_0xe2aba4(0xdf)](captureError,_0x238087['YCgBV'](require,_0x238087[_0xe2aba4(0xe4)]),_0xdefd48[_0xe2aba4(0x140)],_0x1ddc7c,_0x53d1a8);})['command']('codeceptjs',Constants[a60_0x59b31e(0x109)][a60_0x59b31e(0xcf)],function(_0xceaf76){const _0xdb1ac4=a60_0x59b31e,_0x4bb984={'VyKqX':_0xdb1ac4(0x152),'ElTdg':function(_0xfbb203,_0x289e38,_0x2b65a8,_0x2c7074,_0x3661e5){return _0xfbb203(_0x289e38,_0x2b65a8,_0x2c7074,_0x3661e5);},'KlunF':function(_0x5dadcb,_0x326a7a){return _0x5dadcb(_0x326a7a);},'PKlfE':_0xdb1ac4(0xc9)},_0x365e02=process[_0xdb1ac4(0x140)][_0xdb1ac4(0x122)](0x2),_0x2cba5a=new BrowserStackSetup(_0xceaf76[_0xdb1ac4(0x140)],_0x4bb984[_0xdb1ac4(0x15f)]);return _0x4bb984[_0xdb1ac4(0x125)](captureError,_0x4bb984[_0xdb1ac4(0x10f)](require,_0x4bb984[_0xdb1ac4(0x162)]),_0xceaf76[_0xdb1ac4(0x140)],_0x2cba5a,_0x365e02);})[a60_0x59b31e(0xf6)](a60_0x59b31e(0xce),Constants[a60_0x59b31e(0xc7)][a60_0x59b31e(0xcf)],function(_0x1d2953){const _0x43c1b8=a60_0x59b31e,_0x5994b4={'nYJwD':function(_0x4ab192,_0x466cd0,_0x31af85){return _0x4ab192(_0x466cd0,_0x31af85);},'qVxoq':function(_0x39a289,_0x54e272){return _0x39a289(_0x54e272);},'PGrHO':_0x43c1b8(0x121)},_0x287ae1=process[_0x43c1b8(0x140)][_0x43c1b8(0x122)](0x2);return _0x5994b4[_0x43c1b8(0xdc)](captureError,_0x5994b4[_0x43c1b8(0x111)](require,_0x5994b4[_0x43c1b8(0x12c)]),_0x1d2953);})[a60_0x59b31e(0xf6)]('integrations',Constants[a60_0x59b31e(0x13a)][a60_0x59b31e(0xcf)],function(_0x1fc94d){const _0xeb5310=a60_0x59b31e,_0x4e41e0={'wdeXR':function(_0x56cb88,_0xd1dc8f){return _0x56cb88(_0xd1dc8f);}};return _0x4e41e0[_0xeb5310(0x15d)](runIntegrations,_0x1fc94d);})['command'](a60_0x59b31e(0x100),Constants[a60_0x59b31e(0x144)]['INFO'],function(_0x4c53b9){const _0x591457=a60_0x59b31e,_0x448732={'NkAps':_0x591457(0xfa),'whRWH':function(_0x2f5f2f,_0x200b24){return _0x2f5f2f&&_0x200b24;},'YOlKZ':function(_0x4ab79c,_0x565296,_0x19443f,_0xa7da4,_0x4358d2,_0x1754f0){return _0x4ab79c(_0x565296,_0x19443f,_0xa7da4,_0x4358d2,_0x1754f0);},'sAutq':function(_0x1b47d0,_0x396dad){return _0x1b47d0(_0x396dad);},'OhCeK':_0x591457(0x141)},_0x3636f0=process[_0x591457(0x140)][_0x591457(0x122)](0x2);helper[_0x591457(0x117)](process[_0x591457(0x140)])&&(process['env'][_0x591457(0xf4)]=helper[_0x591457(0x117)](process[_0x591457(0x140)]));helper['setTestObservabilityDisable'](),helper[_0x591457(0x12d)]();const _0x4213d5=new BrowserStackSetup(_0x4c53b9[_0x591457(0x140)],FRAMEWORKS[_0x591457(0x144)]);try{if(!_0x4213d5[_0x591457(0x10e)]||!_0x4213d5['config'][_0x591457(0x151)]){const _0x5f3b46=_0x448732[_0x591457(0xc4)],_0x3948ba=process['env'][_0x591457(0x12f)]||'',_0x4afb4e=_0x3948ba[_0x591457(0x147)](',')['map'](_0x1288df=>_0x1288df[_0x591457(0x127)]())['filter'](Boolean),_0x1ec3d3=_0x4afb4e[_0x591457(0x164)](_0x37f052=>_0x37f052===_0x591457(0xe0)||_0x37f052==='-pw:*'||_0x37f052==='-*'),_0x33c7e3=_0x4afb4e['some'](_0x87eb76=>_0x87eb76===_0x5f3b46||_0x87eb76===_0x591457(0x160)||_0x87eb76==='*');if(_0x448732[_0x591457(0x15b)](!_0x1ec3d3,!_0x33c7e3)){const _0x37dcd8=helper['getPwChannelLogPath']();_0x37dcd8&&(process['env']['DEBUG']=_0x3948ba?_0x3948ba+','+_0x5f3b46:_0x5f3b46,!process[_0x591457(0x15e)][_0x591457(0x11e)]&&(process[_0x591457(0x15e)]['DEBUG_FILE']=_0x37dcd8));}}}catch(_0x25f275){logger['debug'](_0x591457(0xcc)+util[_0x591457(0xb9)](_0x25f275));}return _0x448732[_0x591457(0x13f)](captureError,_0x448732[_0x591457(0xf7)](require,_0x448732[_0x591457(0x13c)]),_0x4c53b9['argv'],_0x4213d5,_0x3636f0,!![]);})[a60_0x59b31e(0xf6)](a60_0x59b31e(0x10b),Constants['TESTCAFE']['INFO'],function(_0x405691){const _0x2de4bf=a60_0x59b31e,_0x3e0f1c={'CnPoM':_0x2de4bf(0x10b),'DfVaH':function(_0x237ed0,_0x397112,_0x4c6a90,_0x3dabce,_0x2dde5a,_0x259dbd){return _0x237ed0(_0x397112,_0x4c6a90,_0x3dabce,_0x2dde5a,_0x259dbd);},'dOTPa':function(_0x150970,_0x197232){return _0x150970(_0x197232);},'kWlMz':_0x2de4bf(0xeb)},_0x450c8c=process[_0x2de4bf(0x140)]['slice'](0x2),_0x39839b=new BrowserStackSetup(_0x405691[_0x2de4bf(0x140)],_0x3e0f1c[_0x2de4bf(0xd8)]);return _0x3e0f1c[_0x2de4bf(0x130)](captureError,_0x3e0f1c[_0x2de4bf(0x12a)](require,_0x3e0f1c['kWlMz']),_0x405691['argv'],_0x39839b,_0x450c8c,!![]);})['command'](a60_0x59b31e(0xfc),a60_0x59b31e(0x104),function(_0x12a19d){const _0x17aec8=a60_0x59b31e,_0x59474f={};_0x59474f['sXpXj']=_0x17aec8(0xb0),_0x59474f[_0x17aec8(0x14d)]=_0x17aec8(0xf0),_0x59474f['fvpGT']=_0x17aec8(0xd0);const _0x5229e3=_0x59474f;return _0x12a19d[_0x17aec8(0xb0)](![])['option'](_0x5229e3[_0x17aec8(0xc6)],{'alias':'h','type':_0x5229e3[_0x17aec8(0x14d)],'describe':_0x5229e3[_0x17aec8(0x113)]})[_0x17aec8(0xdd)](![])[_0x17aec8(0xbb)](![]);},function(_0x2caea7){const _0x2ffe13=a60_0x59b31e,_0x3a7151={'BhNWr':function(_0xe93526,_0x465826,_0x2f69c7){return _0xe93526(_0x465826,_0x2f69c7);},'bDPTc':function(_0x4b2ab1,_0x4241ee){return _0x4b2ab1(_0x4241ee);},'gKCyd':_0x2ffe13(0xb1)},_0x3051fc={};return _0x3051fc[_0x2ffe13(0x140)]=_0x2caea7,_0x3a7151[_0x2ffe13(0x11b)](captureError,_0x3a7151[_0x2ffe13(0x136)](require,_0x3a7151[_0x2ffe13(0xfd)]),_0x3051fc);})[a60_0x59b31e(0xf6)]('newman',Constants['NEWMAN'][a60_0x59b31e(0xcf)],function(_0x3dce93){const _0x4fc036=a60_0x59b31e,_0x578c1d={'giBJM':'newman','pdmBk':function(_0x3a32d2,_0x2f71d5,_0x46b8c8,_0x5539aa,_0x295b20){return _0x3a32d2(_0x2f71d5,_0x46b8c8,_0x5539aa,_0x295b20);},'RbAnc':function(_0x481473,_0x1f12a6){return _0x481473(_0x1f12a6);},'fIcuz':_0x4fc036(0x12e)},_0x50140b=process[_0x4fc036(0x140)]['slice'](0x2);helper[_0x4fc036(0x146)](),helper[_0x4fc036(0x12d)](),_0x3dce93[_0x4fc036(0xdd)](![]);const _0x4c1c43=new BrowserStackSetup(_0x3dce93[_0x4fc036(0x140)],_0x578c1d[_0x4fc036(0x112)]);return _0x578c1d[_0x4fc036(0x103)](captureError,_0x578c1d[_0x4fc036(0x142)](require,_0x578c1d['fIcuz']),_0x3dce93[_0x4fc036(0x140)],_0x4c1c43,_0x50140b);})['demandCommand'](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a60_0x59b31e(0xbd)](null)[a60_0x59b31e(0x140)];!helper[a60_0x59b31e(0x137)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x59b31e(0xce)&&console[a60_0x59b31e(0x123)](a60_0x59b31e(0x154));
2
+ 'use strict';const a60_0x54e128=a60_0x5a3e;function a60_0x5a3e(_0x2fdef7,_0x4ef5ca){const _0xffbfca=a60_0xffbf();return a60_0x5a3e=function(_0x5a3e22,_0x1e96a8){_0x5a3e22=_0x5a3e22-0x191;let _0x4db8aa=_0xffbfca[_0x5a3e22];return _0x4db8aa;},a60_0x5a3e(_0x2fdef7,_0x4ef5ca);}(function(_0xd8a5e3,_0x5527a9){const _0x5a2a0c=a60_0x5a3e,_0x3fc58d=_0xd8a5e3();while(!![]){try{const _0x550e3e=parseInt(_0x5a2a0c(0x1c2))/0x1+-parseInt(_0x5a2a0c(0x1e9))/0x2*(parseInt(_0x5a2a0c(0x224))/0x3)+-parseInt(_0x5a2a0c(0x1e2))/0x4+-parseInt(_0x5a2a0c(0x1a3))/0x5*(-parseInt(_0x5a2a0c(0x1cd))/0x6)+parseInt(_0x5a2a0c(0x1a8))/0x7+-parseInt(_0x5a2a0c(0x1a2))/0x8+-parseInt(_0x5a2a0c(0x196))/0x9*(-parseInt(_0x5a2a0c(0x22f))/0xa);if(_0x550e3e===_0x5527a9)break;else _0x3fc58d['push'](_0x3fc58d['shift']());}catch(_0x49345c){_0x3fc58d['push'](_0x3fc58d['shift']());}}}(a60_0xffbf,0xec1b9));function a60_0xffbf(){const _0x13b2c0=['HELP','mocha','mocha/lib/cli/commands.js','help','pw:*','describe','./codeceptjs/command','../helpers/performance/performance-tester','JASMINE','alias','end','./nightwatch/command','./cucumber-js/command','vanilla','version','join','DxUap','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','xuYZW','CODECEPTJS','./newman/command','./jest/command','existsSync','.local-not-set.json','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','iaipY','mocha/lib/cli/run.js','--no-opts','nightwatch','yiLtg','push','whAcl','jest','findAndReplace','command','getInstance','--opts','xPbYG','DEBUG','pw:channel\x20auto-capture\x20seed\x20failed:\x20','message','zQPwb','testcafe','../../ats/src/index','-pw:*','format','pw:channel','xqYaL','mocha/lib/cli/cli.js','hNwOQ','VANILLA','setTestObservabilityDisable','SDKTestSuccessful','3687141ZrFUzQ','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','handler','DUeoZ','sendLogs','wHSmb','OMQUw','NEWMAN','parserConfiguration','HST','getConfigPath','10tfERJQ','wrap','isUndefined','./load/index','JnViG','config','--package','INTEGRATIONS','util','assign','NVXwX','framework','Show\x20help','fioqq','tWANZ','../helpers/helper','CdEcd','integrations','../helpers/test-observability/constants','codeceptjs','TaecO','--require','xiqMy','Running\x20SDK\x20with\x20args\x20','strict','getPwChannelLogPath','839619LZhdrg','usage:\x20$0\x20<command>\x20[args]','homedir','start','load\x20[subcommand]','./integrations/command','cucumber-js','LhpPi','debug','eAoyv','BwHHb','EAxrf','507312iKvCYf','35iIPIKS','PLAYWRIGHT','NIGHTWATCH','argv','jasmine','12503792nAgNgE','ViHsh','-pw:channel','../helpers/utilities','PviiE','ETLYE','BROWSERSTACK_CONFIG_FILE_PATH','YJxjx','INFO','TaUOh','fireFunnelTestEvent','yFIKs','../helpers/performance/constants','bNIoA','stack','JSNaB','WxmbR','--config','slice','path','dot-notation','../helpers/logger','SDK_SETUP','CIoch','HWVen','error','1072007voRIbd','ats','--no-config','DEBUG_FILE','showHelpOnFail','MOCHA','bmABS','WUQVA','pVFAp','./mocha/command','spawn','341364agInFr','../helpers/BrowserStackSetup','Parsing\x20command\x20line\x20arguments','exitProcess','dNBjr','umViw','--no-package','./vanilla-js/command','BuBpm','env','./v2/browserstackCLI','includes','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','HLSzl','demandCommand','DNNrs','Runs\x20the\x20binary\x20with\x20load\x20command','tMtgK','CUCUMBER','setBrowserStackAutomationDisable','trim','4361016oDQzDM','disableAutoCaptureLogs','SDK_CLEANUP','zunnk','fuaFx','nZzlY','usage','2RHqSwh','VERSION','some','ncuxp','run','WeTjm'];a60_0xffbf=function(){return _0x13b2c0;};return a60_0xffbf();}const fs=require('fs'),path=require(a60_0x54e128(0x1bb)),util=require(a60_0x54e128(0x237)),spawn=require('child_process')[a60_0x54e128(0x1cc)],{requireModule}=require(a60_0x54e128(0x23e)),PerformanceTester=require(a60_0x54e128(0x1f6)),PerformanceEvents=require(a60_0x54e128(0x1b4))['EVENTS'],helper=require(a60_0x54e128(0x23e)),utilities=require(a60_0x54e128(0x1ab)),{default:BrowserStackSetup}=require(a60_0x54e128(0x1ce)),{FRAMEWORKS}=require(a60_0x54e128(0x241)),runIntegrations=require(a60_0x54e128(0x19b)),yargs=require('yargs'),Constants=require('./utils/constants'),BrowserstackCLI=require(a60_0x54e128(0x1d7)),{isNewman}=require('./newman/helper'),logger=require(a60_0x54e128(0x1bd))['winstonLogger'],origArgs=Object[a60_0x54e128(0x238)]([],process['argv']),captureError=async(_0x3f111b,_0x1d7bea,_0x376718,_0x1a3701=null,_0xe12e0a=![])=>{const _0x588dfe=a60_0x54e128,_0x17f56c={'WeTjm':function(_0x134ab2,_0x1e708e,_0x1b6ce0,_0x4507b7){return _0x134ab2(_0x1e708e,_0x1b6ce0,_0x4507b7);},'ETLYE':_0x588dfe(0x223)};try{logger['info'](_0x588dfe(0x193)+origArgs[_0x588dfe(0x1fe)]('\x20')),await _0x17f56c[_0x588dfe(0x1ee)](_0x3f111b,_0x1d7bea,_0x1a3701,_0x376718);}catch(_0x2746bc){process['exitCode']=0x1,logger[_0x588dfe(0x1c1)](util['format'](_0x2746bc));const _0x37b1c2={'globalException':util[_0x588dfe(0x21c)]('%j',_0x2746bc)};PerformanceTester[_0x588dfe(0x1f9)](PerformanceEvents[_0x588dfe(0x1be)],![],util[_0x588dfe(0x21c)](_0x2746bc));if(helper[_0x588dfe(0x231)](global['config'])&&helper[_0x588dfe(0x231)](global[_0x588dfe(0x23a)]))return;try{utilities[_0x588dfe(0x1b2)](_0x17f56c[_0x588dfe(0x1ad)],_0x37b1c2,global[_0x588dfe(0x234)],global[_0x588dfe(0x23a)]);}catch(_0x450315){logger[_0x588dfe(0x19e)](_0x588dfe(0x225)+_0x450315['stack']);}try{await helper[_0x588dfe(0x228)](global[_0x588dfe(0x234)]);}catch(_0x44ec57){logger['debug'](_0x588dfe(0x1d9)+_0x44ec57[_0x588dfe(0x1b6)]);}PerformanceTester['end'](PerformanceEvents[_0x588dfe(0x1be)],![],util[_0x588dfe(0x21c)](_0x2746bc));}finally{!_0xe12e0a&&await BrowserstackCLI[_0x588dfe(0x212)]()['stop'](),PerformanceTester[_0x588dfe(0x199)](PerformanceEvents[_0x588dfe(0x1e4)]);}};try{const browserstackFolderPath=path[a60_0x54e128(0x1fe)](helper[a60_0x54e128(0x198)](),'.browserstack');if(fs[a60_0x54e128(0x205)](browserstackFolderPath)){const filePath=path[a60_0x54e128(0x1fe)](browserstackFolderPath,a60_0x54e128(0x206));fs[a60_0x54e128(0x205)](filePath)&&fs['unlinkSync'](filePath);}}catch(a60_0x4818ba){logger['debug'](a60_0x54e128(0x200)+a60_0x4818ba[a60_0x54e128(0x217)]);}process[a60_0x54e128(0x1a6)]['includes']('mocha')&&(!process['argv'][a60_0x54e128(0x1d8)](a60_0x54e128(0x213))&&process['argv'][a60_0x54e128(0x20d)](a60_0x54e128(0x20a)),!process[a60_0x54e128(0x1a6)]['find'](_0x12cb3b=>_0x12cb3b[a60_0x54e128(0x1d8)](a60_0x54e128(0x1b9)))&&process[a60_0x54e128(0x1a6)][a60_0x54e128(0x20d)](a60_0x54e128(0x1c4)),!process[a60_0x54e128(0x1a6)]['includes'](a60_0x54e128(0x235))&&process[a60_0x54e128(0x1a6)]['push'](a60_0x54e128(0x1d3)),helper[a60_0x54e128(0x210)](process['argv'],a60_0x54e128(0x191),'--mochaRequire'));PerformanceTester[a60_0x54e128(0x199)](PerformanceEvents[a60_0x54e128(0x1be)]);const a60_0x376694={};a60_0x376694[a60_0x54e128(0x1bc)]=![];const argv=yargs[a60_0x54e128(0x22c)](a60_0x376694)[a60_0x54e128(0x1e8)](a60_0x54e128(0x197))['alias']('v',a60_0x54e128(0x1fd))[a60_0x54e128(0x1f4)]('v')[a60_0x54e128(0x1f8)]('h',a60_0x54e128(0x1f2))[a60_0x54e128(0x1f2)](a60_0x54e128(0x1f2))[a60_0x54e128(0x1c6)](!![],Constants[a60_0x54e128(0x1ea)][a60_0x54e128(0x1ef)])['command'](a60_0x54e128(0x20f),Constants['JEST'][a60_0x54e128(0x1b0)],function(_0x20cb1f){const _0x3549a3=a60_0x54e128,_0x2f9a1a={'eAoyv':'jest','WUQVA':function(_0x131232,_0x289c37,_0x3a2605,_0x4e52de,_0x207359,_0x17cd04){return _0x131232(_0x289c37,_0x3a2605,_0x4e52de,_0x207359,_0x17cd04);},'TaecO':function(_0x460a76,_0x9c5208){return _0x460a76(_0x9c5208);},'hNwOQ':_0x3549a3(0x204)},_0x4ef9a3=process[_0x3549a3(0x1a6)][_0x3549a3(0x1ba)](0x2);helper[_0x3549a3(0x222)](),helper[_0x3549a3(0x1e0)](),_0x20cb1f[_0x3549a3(0x194)](![]);const _0x9c4dbf=new BrowserStackSetup(_0x20cb1f[_0x3549a3(0x1a6)],_0x2f9a1a[_0x3549a3(0x19f)]);return _0x2f9a1a[_0x3549a3(0x1c9)](captureError,_0x2f9a1a[_0x3549a3(0x243)](require,_0x2f9a1a[_0x3549a3(0x220)]),_0x20cb1f[_0x3549a3(0x1a6)],_0x9c4dbf,_0x4ef9a3,!![]);})[a60_0x54e128(0x211)](a60_0x54e128(0x1a7),Constants[a60_0x54e128(0x1f7)][a60_0x54e128(0x1b0)],function(_0x191484){const _0x4c678a=a60_0x54e128,_0x54e686={'xPbYG':_0x4c678a(0x1a7),'wEcaa':function(_0x5376d3,_0x2aa431,_0x39ae94,_0x533ef4,_0x410615,_0x269012){return _0x5376d3(_0x2aa431,_0x39ae94,_0x533ef4,_0x410615,_0x269012);},'whAcl':function(_0x20b878,_0x14acf4){return _0x20b878(_0x14acf4);},'NVXwX':'./jasmine/command'},_0x32612b=process[_0x4c678a(0x1a6)]['slice'](0x2);helper[_0x4c678a(0x222)](),helper[_0x4c678a(0x1e0)](),_0x191484[_0x4c678a(0x194)](![]);const _0x2a872e=new BrowserStackSetup(_0x191484[_0x4c678a(0x1a6)],_0x54e686[_0x4c678a(0x214)]);return _0x54e686['wEcaa'](captureError,_0x54e686[_0x4c678a(0x20e)](require,_0x54e686[_0x4c678a(0x239)]),_0x191484[_0x4c678a(0x1a6)],_0x2a872e,_0x32612b,!![]);})[a60_0x54e128(0x211)](a60_0x54e128(0x1f0),Constants[a60_0x54e128(0x1c7)][a60_0x54e128(0x1b0)],_0x1328b0=>{const _0x2c9e66=a60_0x54e128,_0x50e230={'YJxjx':function(_0x5389cb,_0x2f3482,_0x4e642c,_0x2e78bc){return _0x5389cb(_0x2f3482,_0x4e642c,_0x2e78bc);},'aehrx':function(_0x1d1866,_0x1b0d35){return _0x1d1866(_0x1b0d35);},'PviiE':_0x2c9e66(0x1cb),'pVFAp':_0x2c9e66(0x1f0),'tlsTk':_0x2c9e66(0x1cf),'iaipY':function(_0x16408f,_0x3b7275,_0x4e135b){return _0x16408f(_0x3b7275,_0x4e135b);},'hzXZY':_0x2c9e66(0x209),'DUeoZ':_0x2c9e66(0x1f1),'ViHsh':_0x2c9e66(0x21f),'fuaFx':function(_0xfbce94){return _0xfbce94();}};process['argv']=process[_0x2c9e66(0x1a6)][_0x2c9e66(0x1ba)](0x1),helper[_0x2c9e66(0x222)](),helper['setBrowserStackAutomationDisable']();const _0x5ee251=new BrowserStackSetup(_0x1328b0['argv'],_0x50e230[_0x2c9e66(0x1ca)]);logger[_0x2c9e66(0x19e)](_0x50e230['tlsTk']);const _0x4ba233=_0x50e230[_0x2c9e66(0x208)](requireModule,_0x50e230['hzXZY'],_0x50e230[_0x2c9e66(0x1ca)]),_0x55be3f=_0x50e230[_0x2c9e66(0x208)](requireModule,_0x50e230[_0x2c9e66(0x227)],_0x50e230[_0x2c9e66(0x1ca)]);delete _0x4ba233[_0x2c9e66(0x226)],_0x4ba233[_0x2c9e66(0x226)]=function(_0x13887a){const _0x1c2d22=_0x2c9e66;return _0x50e230[_0x1c2d22(0x1af)](captureError,_0x50e230['aehrx'](require,_0x50e230[_0x1c2d22(0x1ac)]),_0x13887a,_0x5ee251);},_0x55be3f[_0x2c9e66(0x1ed)]=_0x4ba233;const {main:_0x506f95}=_0x50e230[_0x2c9e66(0x208)](requireModule,_0x50e230[_0x2c9e66(0x1a9)],_0x50e230[_0x2c9e66(0x1ca)]);_0x50e230[_0x2c9e66(0x1e6)](_0x506f95);})[a60_0x54e128(0x211)](a60_0x54e128(0x19c),Constants[a60_0x54e128(0x1df)][a60_0x54e128(0x1b0)],function(_0x2e3974){const _0x416ef3=a60_0x54e128,_0x1bf271={'HWVen':_0x416ef3(0x19c),'yiLtg':function(_0x5f7cc2,_0x247f33,_0x59bca5,_0xa5cecc,_0x5d5e03,_0x3e94c3){return _0x5f7cc2(_0x247f33,_0x59bca5,_0xa5cecc,_0x5d5e03,_0x3e94c3);},'bOGGK':function(_0x54123b,_0x565285){return _0x54123b(_0x565285);},'xiqMy':_0x416ef3(0x1fb)},_0x1e5147=process[_0x416ef3(0x1a6)][_0x416ef3(0x1ba)](0x2),_0x12e2a7=new BrowserStackSetup(_0x2e3974[_0x416ef3(0x1a6)],_0x1bf271[_0x416ef3(0x1c0)]);return _0x1bf271[_0x416ef3(0x20c)](captureError,_0x1bf271['bOGGK'](require,_0x1bf271[_0x416ef3(0x192)]),_0x2e3974['argv'],_0x12e2a7,_0x1e5147,!![]);})[a60_0x54e128(0x211)]('node',Constants[a60_0x54e128(0x221)]['INFO'],function(_0x51b00e){const _0x48d5ad=a60_0x54e128,_0x2c7e09={'zunnk':_0x48d5ad(0x1fc),'xuYZW':function(_0x313909,_0x40b528){return _0x313909(_0x40b528);},'TaUOh':'newman','bmABS':function(_0x5b9156,_0x561fc2,_0x58938a,_0xcf46e0,_0x217933){return _0x5b9156(_0x561fc2,_0x58938a,_0xcf46e0,_0x217933);},'wHSmb':_0x48d5ad(0x203),'tmrRO':function(_0x3a015,_0x37e5da,_0x41f332,_0x2524ba,_0x46c184){return _0x3a015(_0x37e5da,_0x41f332,_0x2524ba,_0x46c184);},'WxmbR':function(_0x57715e,_0x42bb01){return _0x57715e(_0x42bb01);},'CdEcd':_0x48d5ad(0x1d4)},_0xe666a7=process['argv'][_0x48d5ad(0x1ba)](0x2),_0xc2b3b=new BrowserStackSetup(_0x51b00e[_0x48d5ad(0x1a6)],_0x2c7e09[_0x48d5ad(0x1e5)]),_0x4dcdab=_0xc2b3b?_0xc2b3b[_0x48d5ad(0x234)]:null;if(_0x2c7e09[_0x48d5ad(0x201)](isNewman,_0x4dcdab))return _0xc2b3b['framework']=_0x2c7e09['TaUOh'],global[_0x48d5ad(0x23a)]=_0x2c7e09[_0x48d5ad(0x1b1)],_0x2c7e09[_0x48d5ad(0x1c8)](captureError,_0x2c7e09[_0x48d5ad(0x201)](require,_0x2c7e09[_0x48d5ad(0x229)]),_0x51b00e[_0x48d5ad(0x1a6)],_0xc2b3b,_0xe666a7);return _0x2c7e09['tmrRO'](captureError,_0x2c7e09[_0x48d5ad(0x1b8)](require,_0x2c7e09[_0x48d5ad(0x23f)]),_0x51b00e[_0x48d5ad(0x1a6)],_0xc2b3b,_0xe666a7);})[a60_0x54e128(0x211)]('nightwatch',Constants[a60_0x54e128(0x1a5)][a60_0x54e128(0x1b0)],function(_0x581561){const _0x4ba055=a60_0x54e128,_0x5074ee={'YawNA':_0x4ba055(0x20b),'yFIKs':function(_0x4225c9,_0x519058,_0x962300,_0xa6a0c0,_0x4e0d41){return _0x4225c9(_0x519058,_0x962300,_0xa6a0c0,_0x4e0d41);},'pzvbD':function(_0x28d9a2,_0x8e95e7){return _0x28d9a2(_0x8e95e7);},'umViw':_0x4ba055(0x1fa)},_0x4a3c2d=process['argv']['slice'](0x2),_0x1d3cde=new BrowserStackSetup(_0x581561[_0x4ba055(0x1a6)],_0x5074ee['YawNA']);return _0x5074ee[_0x4ba055(0x1b3)](captureError,_0x5074ee['pzvbD'](require,_0x5074ee[_0x4ba055(0x1d2)]),_0x581561['argv'],_0x1d3cde,_0x4a3c2d);})[a60_0x54e128(0x211)](a60_0x54e128(0x242),Constants[a60_0x54e128(0x202)][a60_0x54e128(0x1b0)],function(_0x491219){const _0x2e7c50=a60_0x54e128,_0xe468bf={'dNBjr':_0x2e7c50(0x242),'EAxrf':function(_0x1a9158,_0x2dfebd,_0xcdfcb3,_0x4573d6,_0x184f57){return _0x1a9158(_0x2dfebd,_0xcdfcb3,_0x4573d6,_0x184f57);},'tWANZ':function(_0x1f4a6b,_0x336cc8){return _0x1f4a6b(_0x336cc8);},'qterg':_0x2e7c50(0x1f5)},_0x53a9eb=process['argv']['slice'](0x2),_0xf9a2c5=new BrowserStackSetup(_0x491219[_0x2e7c50(0x1a6)],_0xe468bf[_0x2e7c50(0x1d1)]);return _0xe468bf[_0x2e7c50(0x1a1)](captureError,_0xe468bf[_0x2e7c50(0x23d)](require,_0xe468bf['qterg']),_0x491219[_0x2e7c50(0x1a6)],_0xf9a2c5,_0x53a9eb);})[a60_0x54e128(0x211)](a60_0x54e128(0x1c3),Constants[a60_0x54e128(0x22d)][a60_0x54e128(0x1b0)],function(_0x2968d6){const _0x5e3019=a60_0x54e128,_0x4a0377={'WCrqd':function(_0x458844,_0x29ee3a,_0x386eb8){return _0x458844(_0x29ee3a,_0x386eb8);},'xqYaL':function(_0x1fbad7,_0xc346a6){return _0x1fbad7(_0xc346a6);},'ncuxp':_0x5e3019(0x21a)},_0x5d175b=process['argv']['slice'](0x2);return _0x4a0377['WCrqd'](captureError,_0x4a0377[_0x5e3019(0x21e)](require,_0x4a0377[_0x5e3019(0x1ec)]),_0x2968d6);})[a60_0x54e128(0x211)](a60_0x54e128(0x240),Constants[a60_0x54e128(0x236)]['INFO'],function(_0x179e32){const _0x17de83=a60_0x54e128,_0x5b5c55={'HLSzl':function(_0x51f9ab,_0x47f35b){return _0x51f9ab(_0x47f35b);}};return _0x5b5c55[_0x17de83(0x1da)](runIntegrations,_0x179e32);})[a60_0x54e128(0x211)]('playwright',Constants[a60_0x54e128(0x1a4)][a60_0x54e128(0x1b0)],function(_0xa59760){const _0x2bc33c=a60_0x54e128,_0x43b0e5={'BwHHb':_0x2bc33c(0x21d),'CRzPh':function(_0x468ae6,_0xc16fa9){return _0x468ae6&&_0xc16fa9;},'FOBEX':function(_0xe01905,_0x197d7a,_0x3306e4,_0x1e6d77,_0x38fae2,_0x355a35){return _0xe01905(_0x197d7a,_0x3306e4,_0x1e6d77,_0x38fae2,_0x355a35);},'JnViG':function(_0x421dfc,_0x3c4bf8){return _0x421dfc(_0x3c4bf8);},'DNNrs':'./playwright/command'},_0x4aa24b=process[_0x2bc33c(0x1a6)]['slice'](0x2);helper['getConfigPath'](process[_0x2bc33c(0x1a6)])&&(process[_0x2bc33c(0x1d6)][_0x2bc33c(0x1ae)]=helper[_0x2bc33c(0x22e)](process[_0x2bc33c(0x1a6)]));helper[_0x2bc33c(0x222)](),helper['setBrowserStackAutomationDisable']();const _0x3f80a2=new BrowserStackSetup(_0xa59760[_0x2bc33c(0x1a6)],FRAMEWORKS[_0x2bc33c(0x1a4)]);try{if(!_0x3f80a2['config']||!_0x3f80a2['config'][_0x2bc33c(0x1e3)]){const _0x111c6b=_0x43b0e5[_0x2bc33c(0x1a0)],_0x7750da=process[_0x2bc33c(0x1d6)][_0x2bc33c(0x215)]||'',_0xf89eac=_0x7750da['split'](',')['map'](_0x53578b=>_0x53578b[_0x2bc33c(0x1e1)]())['filter'](Boolean),_0xfbd87f=_0xf89eac[_0x2bc33c(0x1eb)](_0x173bf7=>_0x173bf7===_0x2bc33c(0x1aa)||_0x173bf7===_0x2bc33c(0x21b)||_0x173bf7==='-*'),_0x63f70c=_0xf89eac[_0x2bc33c(0x1eb)](_0x23ca9c=>_0x23ca9c===_0x111c6b||_0x23ca9c===_0x2bc33c(0x1f3)||_0x23ca9c==='*');if(_0x43b0e5['CRzPh'](!_0xfbd87f,!_0x63f70c)){const _0x5d8653=helper[_0x2bc33c(0x195)]();_0x5d8653&&(process[_0x2bc33c(0x1d6)][_0x2bc33c(0x215)]=_0x7750da?_0x7750da+','+_0x111c6b:_0x111c6b,!process[_0x2bc33c(0x1d6)][_0x2bc33c(0x1c5)]&&(process[_0x2bc33c(0x1d6)][_0x2bc33c(0x1c5)]=_0x5d8653));}}}catch(_0x17a013){logger['debug'](_0x2bc33c(0x216)+util[_0x2bc33c(0x21c)](_0x17a013));}return _0x43b0e5['FOBEX'](captureError,_0x43b0e5[_0x2bc33c(0x233)](require,_0x43b0e5[_0x2bc33c(0x1dc)]),_0xa59760[_0x2bc33c(0x1a6)],_0x3f80a2,_0x4aa24b,!![]);})[a60_0x54e128(0x211)](a60_0x54e128(0x219),Constants['TESTCAFE'][a60_0x54e128(0x1b0)],function(_0x561085){const _0x28e40e=a60_0x54e128,_0x1e929b={'DxUap':_0x28e40e(0x219),'JSNaB':function(_0x4019fd,_0xbd704a,_0x11cb9a,_0x523a8e,_0x4029d5,_0x261148){return _0x4019fd(_0xbd704a,_0x11cb9a,_0x523a8e,_0x4029d5,_0x261148);},'nZzlY':function(_0x16a6ba,_0x62a447){return _0x16a6ba(_0x62a447);},'TpgHD':'./testcafe/command'},_0x53e0bb=process[_0x28e40e(0x1a6)][_0x28e40e(0x1ba)](0x2),_0x2e990b=new BrowserStackSetup(_0x561085[_0x28e40e(0x1a6)],_0x1e929b[_0x28e40e(0x1ff)]);return _0x1e929b[_0x28e40e(0x1b7)](captureError,_0x1e929b[_0x28e40e(0x1e7)](require,_0x1e929b['TpgHD']),_0x561085[_0x28e40e(0x1a6)],_0x2e990b,_0x53e0bb,!![]);})['command'](a60_0x54e128(0x19a),a60_0x54e128(0x1dd),function(_0x13b460){const _0x55319f=a60_0x54e128,_0x347fb9={};_0x347fb9[_0x55319f(0x1bf)]=_0x55319f(0x1f2),_0x347fb9[_0x55319f(0x22a)]='boolean',_0x347fb9[_0x55319f(0x1d5)]=_0x55319f(0x23b);const _0x58bbd4=_0x347fb9;return _0x13b460[_0x55319f(0x1f2)](![])['option'](_0x58bbd4[_0x55319f(0x1bf)],{'alias':'h','type':_0x58bbd4[_0x55319f(0x22a)],'describe':_0x58bbd4[_0x55319f(0x1d5)]})['strict'](![])[_0x55319f(0x1d0)](![]);},function(_0x40a340){const _0x40c8ab=a60_0x54e128,_0xee3428={'tMtgK':function(_0x391a53,_0x263c3b,_0x164e82){return _0x391a53(_0x263c3b,_0x164e82);},'fioqq':function(_0x5bde1a,_0x93a448){return _0x5bde1a(_0x93a448);},'LhpPi':_0x40c8ab(0x232)},_0x426bed={};return _0x426bed['argv']=_0x40a340,_0xee3428[_0x40c8ab(0x1de)](captureError,_0xee3428[_0x40c8ab(0x23c)](require,_0xee3428[_0x40c8ab(0x19d)]),_0x426bed);})[a60_0x54e128(0x211)]('newman',Constants[a60_0x54e128(0x22b)][a60_0x54e128(0x1b0)],function(_0x5a655e){const _0x208851=a60_0x54e128,_0x12ada8={'MymlF':'newman','BzTlH':function(_0x394a49,_0x1a7215,_0x39e1d2,_0x358f88,_0x5bdcd6){return _0x394a49(_0x1a7215,_0x39e1d2,_0x358f88,_0x5bdcd6);},'zQPwb':function(_0x1cf644,_0x2482f3){return _0x1cf644(_0x2482f3);},'bNIoA':_0x208851(0x203)},_0x34fc47=process[_0x208851(0x1a6)][_0x208851(0x1ba)](0x2);helper[_0x208851(0x222)](),helper['setBrowserStackAutomationDisable'](),_0x5a655e['strict'](![]);const _0x2666e5=new BrowserStackSetup(_0x5a655e[_0x208851(0x1a6)],_0x12ada8['MymlF']);return _0x12ada8['BzTlH'](captureError,_0x12ada8[_0x208851(0x218)](require,_0x12ada8[_0x208851(0x1b5)]),_0x5a655e[_0x208851(0x1a6)],_0x2666e5,_0x34fc47);})[a60_0x54e128(0x1db)](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a60_0x54e128(0x230)](null)['argv'];!helper[a60_0x54e128(0x231)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x54e128(0x1c3)&&console[a60_0x54e128(0x1c1)](a60_0x54e128(0x207));
package/src/bin/setup.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const a61_0x26dd58=a61_0x3797;(function(_0x1f97d2,_0x3155e){const _0x2d1990=a61_0x3797,_0x1a5d08=_0x1f97d2();while(!![]){try{const _0x38c133=parseInt(_0x2d1990(0x1c4))/0x1+parseInt(_0x2d1990(0x1c6))/0x2+parseInt(_0x2d1990(0x1be))/0x3+parseInt(_0x2d1990(0x1b9))/0x4*(-parseInt(_0x2d1990(0x1c0))/0x5)+-parseInt(_0x2d1990(0x1c5))/0x6*(-parseInt(_0x2d1990(0x1b2))/0x7)+parseInt(_0x2d1990(0x19d))/0x8+-parseInt(_0x2d1990(0x1bc))/0x9;if(_0x38c133===_0x3155e)break;else _0x1a5d08['push'](_0x1a5d08['shift']());}catch(_0x3aac41){_0x1a5d08['push'](_0x1a5d08['shift']());}}}(a61_0x2a2a,0xa71ed));const fs=require('fs'),helper=require('../helpers/helper'),utilities=require(a61_0x26dd58(0x1ae)),yaml=require(a61_0x26dd58(0x1af)),yargs=require('yargs'),logger=require('../helpers/logger')[a61_0x26dd58(0x1b7)],configFileTemplate=__dirname+'/../../browserstack.yml.sample',configFileTemplatePW=__dirname+a61_0x26dd58(0x1a7),configFile=process[a61_0x26dd58(0x1cb)]()+a61_0x26dd58(0x195),packageFile=process[a61_0x26dd58(0x1cb)]()+a61_0x26dd58(0x19a),frameworks=[a61_0x26dd58(0x1d0),a61_0x26dd58(0x19f),a61_0x26dd58(0x1a8),a61_0x26dd58(0x1a3),'nightwatch',a61_0x26dd58(0x18e),a61_0x26dd58(0x1c1)];function a61_0x3797(_0x388bf9,_0x2b28e4){const _0x2a2ab4=a61_0x2a2a();return a61_0x3797=function(_0x379796,_0x42a9e1){_0x379796=_0x379796-0x18e;let _0x25c553=_0x2a2ab4[_0x379796];return _0x25c553;},a61_0x3797(_0x388bf9,_0x2b28e4);}let config;logger[a61_0x26dd58(0x1c3)]('Creating\x20configuration\x20file...'),createConfigurationFile(yargs[a61_0x26dd58(0x199)]['username'],yargs[a61_0x26dd58(0x199)][a61_0x26dd58(0x1a0)],yargs[a61_0x26dd58(0x199)][a61_0x26dd58(0x1c1)]);try{sdkSetup();}catch(a61_0x5f52ff){logger['debug'](a61_0x26dd58(0x1ba)+a61_0x5f52ff);}addScriptInPackageJson();function createConfigurationFile(_0x311699,_0x47ef9d,_0x67ba7f=![]){const _0x1a800f=a61_0x26dd58,_0x3a5c46={};_0x3a5c46[_0x1a800f(0x1a4)]=_0x1a800f(0x1d3),_0x3a5c46[_0x1a800f(0x1ac)]=_0x1a800f(0x1b8),_0x3a5c46['SBFPI']=_0x1a800f(0x1c8);const _0xcb7b73=_0x3a5c46;try{let _0x27631d=fs[_0x1a800f(0x1a5)](_0x67ba7f?configFileTemplatePW:configFileTemplate,_0xcb7b73[_0x1a800f(0x1a4)]);_0x311699&&(_0x27631d=_0x27631d['replace'](_0xcb7b73[_0x1a800f(0x1ac)],_0x311699)),_0x47ef9d&&(_0x27631d=_0x27631d[_0x1a800f(0x192)](_0xcb7b73[_0x1a800f(0x1bd)],_0x47ef9d)),config=yaml[_0x1a800f(0x1a6)](_0x27631d),fs[_0x1a800f(0x1a2)](configFile,_0x27631d,_0x41a7c4=>{const _0x52deea=_0x1a800f;_0x41a7c4&&logger[_0x52deea(0x1cf)](_0x41a7c4);});}catch(_0x237605){logger[_0x1a800f(0x1cf)](_0x237605);}}function addPostInstallScript(_0x2a082f,_0xc34a77){const _0x32deda=a61_0x26dd58,_0x53104a={};_0x53104a[_0x32deda(0x1b3)]=_0x32deda(0x197),_0x53104a[_0x32deda(0x1b6)]=_0x32deda(0x1aa),_0x53104a[_0x32deda(0x1d1)]='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0x15fe1e=_0x53104a;let _0x17295f=_0x2a082f[_0x15fe1e[_0x32deda(0x1b3)]];if(_0x17295f&&_0x17295f['includes'](_0x15fe1e[_0x32deda(0x1b6)]))return;!_0x17295f?_0x17295f=_0x15fe1e[_0x32deda(0x1b6)]:_0x17295f+=_0x15fe1e[_0x32deda(0x1d1)],_0xc34a77[_0x32deda(0x1b5)]([_0x15fe1e[_0x32deda(0x1b3)],_0x17295f]);}function addScriptInPackageJson(){const _0xea2b02=a61_0x26dd58,_0x3c3f10={'vcEgN':_0xea2b02(0x1d3),'PJwsm':function(_0x1430dc,_0x2f5d76){return _0x1430dc<_0x2f5d76;},'rCqUI':function(_0x3519bb,_0x5ef912,_0x4bfe6b){return _0x3519bb(_0x5ef912,_0x4bfe6b);},'opLix':function(_0x43f811,_0xffd3f8){return _0x43f811<_0xffd3f8;},'dxkXz':function(_0x28f79e,_0x4e387a,_0x1128f8){return _0x28f79e(_0x4e387a,_0x1128f8);},'FBLZs':function(_0x58d25a,_0x2de6fa){return _0x58d25a!==_0x2de6fa;},'oWPcB':_0xea2b02(0x1ca)},_0x436a40=JSON[_0xea2b02(0x1bf)](fs[_0xea2b02(0x1a5)](packageFile,_0x3c3f10[_0xea2b02(0x1a9)])),_0x4981d5=[];for(let _0x4d09d5=0x0;_0x3c3f10[_0xea2b02(0x1b0)](_0x4d09d5,frameworks[_0xea2b02(0x198)]);_0x4d09d5+=0x1){const _0x51907a=_0x3c3f10[_0xea2b02(0x191)](findScriptsWithFramework,_0x436a40[_0xea2b02(0x193)],frameworks[_0x4d09d5]);for(let _0x5f526c=0x0;_0x3c3f10['opLix'](_0x5f526c,_0x51907a['length']);_0x5f526c+=0x1){_0x4981d5[_0xea2b02(0x1b5)](_0x3c3f10[_0xea2b02(0x191)](getUpdatedCommand,_0x436a40[_0xea2b02(0x193)],_0x51907a[_0x5f526c]));}_0x3c3f10['dxkXz'](addPostInstallScript,_0x436a40['scripts'],_0x4981d5);}const _0x4923ad={..._0x436a40[_0xea2b02(0x193)]},_0x3f8c87=_0x4923ad;for(let _0x25439c=0x0;_0x3c3f10[_0xea2b02(0x19c)](_0x25439c,_0x4981d5[_0xea2b02(0x198)]);_0x25439c+=0x1){_0x3f8c87[_0x4981d5[_0x25439c][0x0]]=_0x4981d5[_0x25439c][0x1];}_0x3c3f10['FBLZs'](JSON[_0xea2b02(0x1ab)](_0x436a40[_0xea2b02(0x193)]),JSON[_0xea2b02(0x1ab)](_0x3f8c87))&&(logger[_0xea2b02(0x1c3)](_0x3c3f10['oWPcB']),_0x436a40[_0xea2b02(0x193)]=_0x3f8c87,fs[_0xea2b02(0x1a2)](packageFile,JSON['stringify'](_0x436a40,null,0x2),_0x1f9617=>{const _0x3c24b8=_0xea2b02;_0x1f9617&&logger[_0x3c24b8(0x1cf)](_0x1f9617);}));};function findScriptsWithFramework(_0x1cdde3,_0x8f21f3){const _0x286c19=a61_0x26dd58,_0x2702e7={};_0x2702e7[_0x286c19(0x1cd)]=function(_0x50ed35,_0x3ef8bf){return _0x50ed35<_0x3ef8bf;},_0x2702e7[_0x286c19(0x18f)]=_0x286c19(0x190);const _0x1e0873=_0x2702e7,_0x4aa750=[],_0x29586e=Object[_0x286c19(0x1ad)](_0x1cdde3);for(let _0x4a32f3=0x0;_0x1e0873[_0x286c19(0x1cd)](_0x4a32f3,_0x29586e[_0x286c19(0x198)]);_0x4a32f3+=0x1){_0x29586e[_0x4a32f3][0x1][_0x286c19(0x1b1)](_0x8f21f3)&&!_0x29586e[_0x4a32f3][0x1][_0x286c19(0x1b1)](_0x1e0873[_0x286c19(0x18f)])&&_0x4aa750[_0x286c19(0x1b5)](_0x29586e[_0x4a32f3][0x0]);}return _0x4aa750;}function getUpdatedCommand(_0x34cd69,_0x5d221e){const _0xfe2e8c=a61_0x26dd58,_0x9fdce2={};_0x9fdce2[_0xfe2e8c(0x194)]=function(_0x37f8b3,_0x1b0790){return _0x37f8b3!==_0x1b0790;},_0x9fdce2['xMunH']=_0xfe2e8c(0x190),_0x9fdce2[_0xfe2e8c(0x1ce)]=function(_0x54ecde,_0x1d9565){return _0x54ecde===_0x1d9565;};const _0x5008b6=_0x9fdce2,_0x448cb8=_0x5d221e+_0xfe2e8c(0x1c7),_0x4be998=_0x34cd69[_0x5d221e],_0x90b502=_0x4be998[_0xfe2e8c(0x1b4)]('\x20');for(const _0x14aff8 of frameworks){if(_0x5008b6[_0xfe2e8c(0x194)](_0x90b502[_0xfe2e8c(0x19e)](_0x14aff8),-0x1)){_0x90b502['splice'](_0x90b502[_0xfe2e8c(0x19e)](_0x14aff8),0x0,_0x5008b6[_0xfe2e8c(0x1c9)]);break;}}let _0x58705d=_0x90b502['join']('\x20');return _0x5008b6['kUwIf'](_0x58705d,_0x4be998)&&(_0x58705d='browserstack-node-sdk\x20'+_0x4be998),[_0x448cb8,_0x58705d];}function sdkSetup(){const _0x19a0cf=a61_0x26dd58,_0xc2a83a={};_0xc2a83a['LlGDo']='node-setup',_0xc2a83a[_0x19a0cf(0x1cc)]=_0x19a0cf(0x19b);const _0xcfaa18=_0xc2a83a;if(helper[_0x19a0cf(0x1c2)](config))return;config['source']=_0xcfaa18[_0x19a0cf(0x196)];try{utilities[_0x19a0cf(0x1d2)](_0xcfaa18[_0x19a0cf(0x1cc)],{},config,'');}catch(_0x395a91){logger[_0x19a0cf(0x1a1)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x395a91);}}logger[a61_0x26dd58(0x1c3)](a61_0x26dd58(0x1bb));function a61_0x2a2a(){const _0x344592=['1668855qaSdos','parse','5ADRNfo','playwright','isUndefined','info','355487NIszGe','138hvrZKn','638142XqrNOQ','-browserstack','YOUR_ACCESS_KEY','xMunH','Adding\x20new\x20script(s)\x20in\x20package.json...','cwd','GfPJX','IugML','kUwIf','error','mocha','aFjZe','fireFunnelTestEvent','utf8','codeceptjs','XJKGQ','browserstack-node-sdk','rCqUI','replace','scripts','sxUBm','/browserstack.yml','LlGDo','postinstall','length','argv','/package.json','SDKSetup','opLix','3887472hmPesB','indexOf','jest','key','debug','writeFileSync','node','NzOcv','readFileSync','load','/../../browserstack.pw.yml.sample','cucumber-js','vcEgN','npm\x20update\x20browserstack-node-sdk','stringify','sUzkC','entries','../helpers/utilities','js-yaml','PJwsm','includes','137053RYfaIc','mBNWf','split','push','IpvjM','winstonLogger','YOUR_USERNAME','307800ehYqLd','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','Setup\x20completed','12650571ilSQYo','SBFPI'];a61_0x2a2a=function(){return _0x344592;};return a61_0x2a2a();}
3
+ const a61_0x54a077=a61_0x2dde;(function(_0x285f8b,_0x2b6ee6){const _0x14d9aa=a61_0x2dde,_0x38820c=_0x285f8b();while(!![]){try{const _0x5c7211=-parseInt(_0x14d9aa(0x1f3))/0x1+-parseInt(_0x14d9aa(0x203))/0x2*(parseInt(_0x14d9aa(0x200))/0x3)+-parseInt(_0x14d9aa(0x1e4))/0x4*(-parseInt(_0x14d9aa(0x1d2))/0x5)+-parseInt(_0x14d9aa(0x1d9))/0x6*(-parseInt(_0x14d9aa(0x1bf))/0x7)+-parseInt(_0x14d9aa(0x1db))/0x8+parseInt(_0x14d9aa(0x1e1))/0x9*(-parseInt(_0x14d9aa(0x1c1))/0xa)+-parseInt(_0x14d9aa(0x1bd))/0xb*(-parseInt(_0x14d9aa(0x204))/0xc);if(_0x5c7211===_0x2b6ee6)break;else _0x38820c['push'](_0x38820c['shift']());}catch(_0x1f9524){_0x38820c['push'](_0x38820c['shift']());}}}(a61_0x5006,0xdcefb));const fs=require('fs'),helper=require(a61_0x54a077(0x1f9)),utilities=require(a61_0x54a077(0x1b9)),yaml=require(a61_0x54a077(0x1f0)),yargs=require(a61_0x54a077(0x1f2)),logger=require(a61_0x54a077(0x1d1))[a61_0x54a077(0x1c4)],configFileTemplate=__dirname+'/../../browserstack.yml.sample',configFileTemplatePW=__dirname+'/../../browserstack.pw.yml.sample',configFile=process['cwd']()+a61_0x54a077(0x1cc),packageFile=process[a61_0x54a077(0x1f1)]()+a61_0x54a077(0x1e3),frameworks=[a61_0x54a077(0x1ed),'jest',a61_0x54a077(0x1ea),'node',a61_0x54a077(0x1ec),a61_0x54a077(0x1be),a61_0x54a077(0x1d6)];let config;logger[a61_0x54a077(0x1fe)](a61_0x54a077(0x1c0)),createConfigurationFile(yargs[a61_0x54a077(0x1e8)]['username'],yargs[a61_0x54a077(0x1e8)][a61_0x54a077(0x1e2)],yargs[a61_0x54a077(0x1e8)][a61_0x54a077(0x1d6)]);try{sdkSetup();}catch(a61_0x34cf0a){logger['debug'](a61_0x54a077(0x1d8)+a61_0x34cf0a);}addScriptInPackageJson();function a61_0x5006(){const _0x17360f=['1350462GAcIuR','CyVvy','length','indexOf','fireFunnelTestEvent','entries','../helpers/helper','replace','ilJoX','split','fFdJx','info','load','21vtPlLU','browserstack-node-sdk\x20','scripts','103034wqYzxc','492dlnDgz','YOUR_USERNAME','postinstall','../helpers/utilities','krqNE','utf8','AnEyK','667007tFxJUa','codeceptjs','21JqZFYK','Creating\x20configuration\x20file...','70yjyjzF','source','includes','winstonLogger','LiOEY','push','ADPcE','Adding\x20new\x20script(s)\x20in\x20package.json...','isUndefined','stringify','lYUWw','/browserstack.yml','YCMBq','gNpAG','-browserstack','jCgbP','../helpers/logger','108500TTpThf','UzgyS','qLKTw','OHLZL','playwright','OyPFm','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','2450604frpvym','gzJgu','5407768fTNbDy','readFileSync','writeFileSync','browserstack-node-sdk','SDKSetup','splice','1264644mWHLiS','key','/package.json','104YoTTmf','npm\x20update\x20browserstack-node-sdk','XeQVt','YOUR_ACCESS_KEY','argv','join','cucumber-js','\x20&&\x20npm\x20update\x20browserstack-node-sdk','nightwatch','mocha','Setup\x20completed','error','js-yaml','cwd','yargs'];a61_0x5006=function(){return _0x17360f;};return a61_0x5006();}function createConfigurationFile(_0xb22729,_0xcc192f,_0x32b5b2=![]){const _0x3e8b90=a61_0x54a077,_0x42fbe7={};_0x42fbe7[_0x3e8b90(0x1bc)]=_0x3e8b90(0x1bb),_0x42fbe7['krqNE']=_0x3e8b90(0x205),_0x42fbe7['gzJgu']=_0x3e8b90(0x1e7);const _0x868597=_0x42fbe7;try{let _0x30d4ff=fs[_0x3e8b90(0x1dc)](_0x32b5b2?configFileTemplatePW:configFileTemplate,_0x868597[_0x3e8b90(0x1bc)]);_0xb22729&&(_0x30d4ff=_0x30d4ff[_0x3e8b90(0x1fa)](_0x868597[_0x3e8b90(0x1ba)],_0xb22729)),_0xcc192f&&(_0x30d4ff=_0x30d4ff[_0x3e8b90(0x1fa)](_0x868597[_0x3e8b90(0x1da)],_0xcc192f)),config=yaml[_0x3e8b90(0x1ff)](_0x30d4ff),fs[_0x3e8b90(0x1dd)](configFile,_0x30d4ff,_0x527e3f=>{const _0x6c0348=_0x3e8b90;_0x527e3f&&logger[_0x6c0348(0x1ef)](_0x527e3f);});}catch(_0x31fe12){logger[_0x3e8b90(0x1ef)](_0x31fe12);}}function addPostInstallScript(_0x537c13,_0x560ba5){const _0x22d120=a61_0x54a077,_0x3cff03={};_0x3cff03[_0x22d120(0x1fd)]=_0x22d120(0x1b8),_0x3cff03[_0x22d120(0x1d4)]=_0x22d120(0x1e5),_0x3cff03['jCgbP']=_0x22d120(0x1eb);const _0x8905=_0x3cff03;let _0x302880=_0x537c13[_0x8905[_0x22d120(0x1fd)]];if(_0x302880&&_0x302880[_0x22d120(0x1c3)](_0x8905[_0x22d120(0x1d4)]))return;!_0x302880?_0x302880=_0x8905['qLKTw']:_0x302880+=_0x8905[_0x22d120(0x1d0)],_0x560ba5['push']([_0x8905[_0x22d120(0x1fd)],_0x302880]);}function a61_0x2dde(_0x361b03,_0x28c305){const _0x5006d3=a61_0x5006();return a61_0x2dde=function(_0x2ddee1,_0x2bb4b8){_0x2ddee1=_0x2ddee1-0x1b8;let _0x223b92=_0x5006d3[_0x2ddee1];return _0x223b92;},a61_0x2dde(_0x361b03,_0x28c305);}function addScriptInPackageJson(){const _0x136c32=a61_0x54a077,_0x5b9c19={'ADPcE':_0x136c32(0x1bb),'gNpAG':function(_0x3f463e,_0x256cd1){return _0x3f463e<_0x256cd1;},'CyVvy':function(_0x528cda,_0x2cf3b5,_0x39c44f){return _0x528cda(_0x2cf3b5,_0x39c44f);},'LiOEY':function(_0x505965,_0x4d5a1e){return _0x505965<_0x4d5a1e;},'fuOgh':function(_0x1e4c01,_0x23727e,_0x18f547){return _0x1e4c01(_0x23727e,_0x18f547);},'SovOf':function(_0x495cff,_0x5f53f9){return _0x495cff!==_0x5f53f9;},'YCMBq':_0x136c32(0x1c8)},_0x2a6bed=JSON['parse'](fs[_0x136c32(0x1dc)](packageFile,_0x5b9c19[_0x136c32(0x1c7)])),_0x3b768a=[];for(let _0x23c7de=0x0;_0x5b9c19['gNpAG'](_0x23c7de,frameworks[_0x136c32(0x1f5)]);_0x23c7de+=0x1){const _0x2b2e96=_0x5b9c19[_0x136c32(0x1f4)](findScriptsWithFramework,_0x2a6bed[_0x136c32(0x202)],frameworks[_0x23c7de]);for(let _0xede296=0x0;_0x5b9c19[_0x136c32(0x1c5)](_0xede296,_0x2b2e96['length']);_0xede296+=0x1){_0x3b768a[_0x136c32(0x1c6)](_0x5b9c19[_0x136c32(0x1f4)](getUpdatedCommand,_0x2a6bed['scripts'],_0x2b2e96[_0xede296]));}_0x5b9c19['fuOgh'](addPostInstallScript,_0x2a6bed[_0x136c32(0x202)],_0x3b768a);}const _0x26368d={..._0x2a6bed[_0x136c32(0x202)]},_0x9f21e7=_0x26368d;for(let _0x36a11e=0x0;_0x5b9c19[_0x136c32(0x1ce)](_0x36a11e,_0x3b768a[_0x136c32(0x1f5)]);_0x36a11e+=0x1){_0x9f21e7[_0x3b768a[_0x36a11e][0x0]]=_0x3b768a[_0x36a11e][0x1];}_0x5b9c19['SovOf'](JSON['stringify'](_0x2a6bed['scripts']),JSON['stringify'](_0x9f21e7))&&(logger[_0x136c32(0x1fe)](_0x5b9c19[_0x136c32(0x1cd)]),_0x2a6bed['scripts']=_0x9f21e7,fs['writeFileSync'](packageFile,JSON[_0x136c32(0x1ca)](_0x2a6bed,null,0x2),_0x3d12df=>{_0x3d12df&&logger['error'](_0x3d12df);}));};function findScriptsWithFramework(_0x589e43,_0x48e7ed){const _0x3bfcb3=a61_0x54a077,_0x507782={};_0x507782['iJkOV']=function(_0x2fbf2f,_0x4980ed){return _0x2fbf2f<_0x4980ed;},_0x507782[_0x3bfcb3(0x1e6)]=_0x3bfcb3(0x1de);const _0x564ed4=_0x507782,_0x36bce6=[],_0x4b27f5=Object[_0x3bfcb3(0x1f8)](_0x589e43);for(let _0x2a03f9=0x0;_0x564ed4['iJkOV'](_0x2a03f9,_0x4b27f5[_0x3bfcb3(0x1f5)]);_0x2a03f9+=0x1){_0x4b27f5[_0x2a03f9][0x1][_0x3bfcb3(0x1c3)](_0x48e7ed)&&!_0x4b27f5[_0x2a03f9][0x1]['includes'](_0x564ed4[_0x3bfcb3(0x1e6)])&&_0x36bce6[_0x3bfcb3(0x1c6)](_0x4b27f5[_0x2a03f9][0x0]);}return _0x36bce6;}function getUpdatedCommand(_0x17efc9,_0x3dc56d){const _0x42bea1=a61_0x54a077,_0x2072a4={};_0x2072a4[_0x42bea1(0x1fb)]=function(_0x142c60,_0x2a01a2){return _0x142c60!==_0x2a01a2;},_0x2072a4['lYUWw']=_0x42bea1(0x1de),_0x2072a4[_0x42bea1(0x1d5)]=function(_0x27672d,_0xf0c17c){return _0x27672d===_0xf0c17c;};const _0xc95a0e=_0x2072a4,_0x273bf5=_0x3dc56d+_0x42bea1(0x1cf),_0x10bb17=_0x17efc9[_0x3dc56d],_0x20a760=_0x10bb17[_0x42bea1(0x1fc)]('\x20');for(const _0x46bb11 of frameworks){if(_0xc95a0e[_0x42bea1(0x1fb)](_0x20a760['indexOf'](_0x46bb11),-0x1)){_0x20a760[_0x42bea1(0x1e0)](_0x20a760[_0x42bea1(0x1f6)](_0x46bb11),0x0,_0xc95a0e[_0x42bea1(0x1cb)]);break;}}let _0x76daa7=_0x20a760[_0x42bea1(0x1e9)]('\x20');return _0xc95a0e['OHLZL'](_0x76daa7,_0x10bb17)&&(_0x76daa7=_0x42bea1(0x201)+_0x10bb17),[_0x273bf5,_0x76daa7];}function sdkSetup(){const _0x284e49=a61_0x54a077,_0x5803de={};_0x5803de['UzgyS']='node-setup',_0x5803de[_0x284e49(0x1d7)]=_0x284e49(0x1df);const _0x89a28b=_0x5803de;if(helper[_0x284e49(0x1c9)](config))return;config[_0x284e49(0x1c2)]=_0x89a28b[_0x284e49(0x1d3)];try{utilities[_0x284e49(0x1f7)](_0x89a28b[_0x284e49(0x1d7)],{},config,'');}catch(_0x2425aa){logger['debug']('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x2425aa);}}logger['info'](a61_0x54a077(0x1ee));