browserstack-node-sdk 1.63.0 → 1.63.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
- const a55_0x4b38d6=a55_0x24b9;(function(_0x13e3a8,_0x5200ed){const _0x4146b7=a55_0x24b9,_0x102c65=_0x13e3a8();while(!![]){try{const _0x5ae73a=parseInt(_0x4146b7(0x194))/0x1*(-parseInt(_0x4146b7(0x188))/0x2)+-parseInt(_0x4146b7(0x1c0))/0x3+-parseInt(_0x4146b7(0x179))/0x4+parseInt(_0x4146b7(0x19f))/0x5*(parseInt(_0x4146b7(0x164))/0x6)+parseInt(_0x4146b7(0x1ac))/0x7+parseInt(_0x4146b7(0x1ad))/0x8*(parseInt(_0x4146b7(0x1a1))/0x9)+-parseInt(_0x4146b7(0x168))/0xa*(-parseInt(_0x4146b7(0x16b))/0xb);if(_0x5ae73a===_0x5200ed)break;else _0x102c65['push'](_0x102c65['shift']());}catch(_0x340748){_0x102c65['push'](_0x102c65['shift']());}}}(a55_0x6302,0x6e03c));const fs=require('fs'),path=require(a55_0x4b38d6(0x1a4)),{v4:uuidv4}=require(a55_0x4b38d6(0x17a)),{TEMP_STORE_DIR_NAME}=require(a55_0x4b38d6(0x17b)),{nestedKeyValue}=require(a55_0x4b38d6(0x172)),logger=require(a55_0x4b38d6(0x1aa))[a55_0x4b38d6(0x165)],{getLogDir}=require(a55_0x4b38d6(0x1aa)),util=require(a55_0x4b38d6(0x19a)),helper=require(a55_0x4b38d6(0x172));function a55_0x24b9(_0x4766d3,_0x30c738){const _0x630275=a55_0x6302();return a55_0x24b9=function(_0x24b94c,_0x29227f){_0x24b94c=_0x24b94c-0x163;let _0xc207b6=_0x630275[_0x24b94c];return _0xc207b6;},a55_0x24b9(_0x4766d3,_0x30c738);}class TestDetails{static [a55_0x4b38d6(0x17c)]={};static[a55_0x4b38d6(0x195)](){const _0x295299=a55_0x4b38d6;this[_0x295299(0x186)]();const _0x1e4269={};_0x1e4269[_0x295299(0x178)]=!![],fs[_0x295299(0x1a9)](this[_0x295299(0x184)](),_0x1e4269);const _0x185230={};_0x185230[_0x295299(0x178)]=!![],fs['mkdirSync'](this[_0x295299(0x1bb)](),_0x185230);}static[a55_0x4b38d6(0x18c)](){const _0x26ac7f=a55_0x4b38d6,_0x4f1dad={};_0x4f1dad[_0x26ac7f(0x1b9)]=function(_0x3228f3,_0x50a8f8){return _0x3228f3+_0x50a8f8;};const _0x5489a2=_0x4f1dad;return _0x5489a2[_0x26ac7f(0x1b9)](_0x5489a2[_0x26ac7f(0x1b9)](TEMP_STORE_DIR_NAME,'-'),process[_0x26ac7f(0x169)]['BS_TESTOPS_BUILD_HASHED_ID']);}static['getStoreDirPath'](){const _0xdb6c07=a55_0x4b38d6,_0x19ae07={};_0x19ae07['zVUDY']=function(_0x5a943e,_0x1b0710){return _0x5a943e+_0x1b0710;},_0x19ae07[_0xdb6c07(0x176)]=_0xdb6c07(0x17e);const _0x3d8776=_0x19ae07;return path[_0xdb6c07(0x18f)](_0x3d8776[_0xdb6c07(0x174)](_0x3d8776['zVUDY'](TEMP_STORE_DIR_NAME,'-'),process[_0xdb6c07(0x169)]['BS_TESTOPS_BUILD_HASHED_ID']||_0x3d8776[_0xdb6c07(0x176)]));}static[a55_0x4b38d6(0x1bb)](){const _0x4caa82=a55_0x4b38d6,_0x2e5e01={};_0x2e5e01[_0x4caa82(0x182)]='traceZipPaths';const _0xf35a12=_0x2e5e01;return path[_0x4caa82(0x18f)](this[_0x4caa82(0x1ae)](),_0xf35a12[_0x4caa82(0x182)]);}static[a55_0x4b38d6(0x184)](){const _0x14d940=a55_0x4b38d6;return TestDetails[_0x14d940(0x18c)]();}static[a55_0x4b38d6(0x1be)](_0x577699){const _0x1d26d5=a55_0x4b38d6,_0x1a9e66={};_0x1a9e66[_0x1d26d5(0x1af)]=function(_0x271530,_0x369533){return _0x271530+_0x369533;},_0x1a9e66[_0x1d26d5(0x1b7)]=_0x1d26d5(0x180);const _0x3cb796=_0x1a9e66;return path[_0x1d26d5(0x18f)](this['getDirPath'](),_0x3cb796[_0x1d26d5(0x1af)](_0x577699,_0x3cb796[_0x1d26d5(0x1b7)]));}static[a55_0x4b38d6(0x193)](_0xa389f){const _0x291034=a55_0x4b38d6,_0x5190c1={};_0x5190c1[_0x291034(0x170)]=function(_0x1c7421,_0x57da33){return _0x1c7421+_0x57da33;},_0x5190c1[_0x291034(0x1bf)]=function(_0x1144c0,_0x2441e1){return _0x1144c0+_0x2441e1;};const _0x1fb770=_0x5190c1;return _0x1fb770[_0x291034(0x170)](_0x1fb770[_0x291034(0x1bf)](this[_0x291034(0x1bc)](_0xa389f),'-'),_0xa389f['retry']);}static[a55_0x4b38d6(0x1ab)](_0x5288f6){const _0x1dddbd=a55_0x4b38d6,_0x11169d={'AAPLA':function(_0x3b8d7c,_0x2fe665,_0x3b6fae){return _0x3b8d7c(_0x2fe665,_0x3b6fae);},'lRMYc':_0x1dddbd(0x187),'fTalS':_0x1dddbd(0x198),'mnGck':function(_0x4ecd99,_0x573976,_0x3d44cb){return _0x4ecd99(_0x573976,_0x3d44cb);},'IhMda':_0x1dddbd(0x18d),'PyQar':_0x1dddbd(0x16a)};return _0x11169d[_0x1dddbd(0x1c3)](nestedKeyValue,_0x5288f6,[_0x11169d[_0x1dddbd(0x17f)],_0x11169d[_0x1dddbd(0x1a7)]])||_0x11169d[_0x1dddbd(0x173)](nestedKeyValue,_0x5288f6,[_0x11169d['IhMda'],_0x11169d[_0x1dddbd(0x1b6)]]);}static[a55_0x4b38d6(0x1bc)](_0x248960){const _0x5761f1=a55_0x4b38d6,_0x587f9e={'zJyCP':function(_0x1cf8b5,_0x58f594,_0x3807f1){return _0x1cf8b5(_0x58f594,_0x3807f1);},'hxgCo':_0x5761f1(0x187)};return _0x587f9e[_0x5761f1(0x19c)](nestedKeyValue,_0x248960,[_0x587f9e[_0x5761f1(0x18b)],'id'])||_0x248960[_0x5761f1(0x18e)];}static[a55_0x4b38d6(0x191)](_0x401f4b){const _0x213854=a55_0x4b38d6,_0x3e9bef={'rjtAD':function(_0x14fdc7,_0x5b4754){return _0x14fdc7===_0x5b4754;},'yfQhu':_0x213854(0x192),'KzzTC':function(_0x187ffa){return _0x187ffa();}};if(this[_0x213854(0x17c)][_0x401f4b]&&_0x3e9bef[_0x213854(0x163)](typeof this[_0x213854(0x17c)][_0x401f4b][_0x213854(0x17a)],_0x3e9bef['yfQhu']))return this[_0x213854(0x17c)][_0x401f4b][_0x213854(0x17a)];const _0x3a3780=this[_0x213854(0x1be)](_0x401f4b);if(_0x3a3780&&fs[_0x213854(0x1c5)](_0x3a3780)){const _0xc1d7dd=JSON['parse'](fs[_0x213854(0x166)](_0x3a3780)[_0x213854(0x1c1)]());return this[_0x213854(0x17c)][_0x401f4b]=_0xc1d7dd,this[_0x213854(0x17c)][_0x401f4b][_0x213854(0x17a)];}return this[_0x213854(0x17c)][_0x401f4b]={'uuid':_0x3e9bef['KzzTC'](uuidv4)},fs['writeFileSync'](_0x3a3780,JSON[_0x213854(0x1b4)](this[_0x213854(0x17c)][_0x401f4b])),this[_0x213854(0x17c)][_0x401f4b][_0x213854(0x17a)];}static[a55_0x4b38d6(0x16f)](_0x4bb17b){const _0x1ec0b3=a55_0x4b38d6,_0x433ea7=path['join'](this[_0x1ec0b3(0x184)](),_0x4bb17b+_0x1ec0b3(0x1ba));if(_0x433ea7&&fs[_0x1ec0b3(0x1c5)](_0x433ea7))return fs[_0x1ec0b3(0x166)](_0x433ea7)[_0x1ec0b3(0x1c1)]();}static[a55_0x4b38d6(0x171)](_0x3275d4,_0x2f4fff){const _0x4b3ff5=a55_0x4b38d6,_0x16c90c=path[_0x4b3ff5(0x18f)](this[_0x4b3ff5(0x184)](),_0x2f4fff+_0x4b3ff5(0x1ba));fs[_0x4b3ff5(0x175)](_0x16c90c,_0x3275d4[_0x4b3ff5(0x1c1)]());}static['getIntegrations'](_0x5c22e6){const _0x18e51d=a55_0x4b38d6,_0x15353b=path[_0x18e51d(0x18f)](this[_0x18e51d(0x184)](),_0x5c22e6+'_integrations.json');if(_0x15353b&&fs['existsSync'](_0x15353b))try{return JSON[_0x18e51d(0x1b2)](fs[_0x18e51d(0x166)](_0x15353b)[_0x18e51d(0x1c1)]());}catch(_0x38ffac){return logger[_0x18e51d(0x1a5)](_0x18e51d(0x197)+_0x5c22e6+':\x20'+(_0x38ffac&&_0x38ffac[_0x18e51d(0x183)])),null;}return null;}static[a55_0x4b38d6(0x1a2)](_0x30d0e0,_0x50853b){const _0x248093=a55_0x4b38d6,_0x2c7c53={};_0x2c7c53[_0x248093(0x19d)]=function(_0x1dd5af,_0x542414){return _0x1dd5af||_0x542414;};const _0x376db8=_0x2c7c53;if(_0x376db8[_0x248093(0x19d)](!_0x30d0e0,!_0x50853b))return;try{const _0x48029a=this[_0x248093(0x184)](),_0x37e4f1={};_0x37e4f1['recursive']=!![],fs[_0x248093(0x1a9)](_0x48029a,_0x37e4f1);const _0x25cd9a=path[_0x248093(0x18f)](_0x48029a,_0x30d0e0+'_integrations.json');fs['writeFileSync'](_0x25cd9a,JSON[_0x248093(0x1b4)](_0x50853b));}catch(_0x3ce279){logger['debug'](_0x248093(0x1a6)+_0x30d0e0+':\x20'+(_0x3ce279&&_0x3ce279['message']));}}static[a55_0x4b38d6(0x186)](){const _0x265b5b=a55_0x4b38d6,_0x2268a7={};_0x2268a7[_0x265b5b(0x178)]=!![],_0x2268a7[_0x265b5b(0x167)]=!![],fs['rmSync'](this[_0x265b5b(0x184)](),_0x2268a7);}static['getTestDetails'](_0x3afed9){const _0x3a4263=a55_0x4b38d6;if(this['tests'][_0x3afed9])return this[_0x3a4263(0x17c)][_0x3afed9];const _0x8f1725=this['getFilePath'](_0x3afed9);if(_0x8f1725&&fs[_0x3a4263(0x1c5)](_0x8f1725)){const _0x6cebdd=JSON[_0x3a4263(0x1b2)](fs[_0x3a4263(0x166)](_0x8f1725)[_0x3a4263(0x1c1)]());return this[_0x3a4263(0x17c)][_0x3afed9]=_0x6cebdd,_0x6cebdd;}return{};}static[a55_0x4b38d6(0x190)](_0x35a87a,_0xd19e80){const _0x298c01=a55_0x4b38d6,_0x7eb297=this[_0x298c01(0x1be)](_0x35a87a);if(_0x7eb297&&fs[_0x298c01(0x1c5)](_0x7eb297)){const _0x8ee5d0=JSON[_0x298c01(0x1b2)](fs[_0x298c01(0x166)](_0x7eb297)['toString']()),_0x5cb5f5={..._0x8ee5d0,..._0xd19e80};this[_0x298c01(0x17c)][_0x35a87a]=_0x5cb5f5;}else this[_0x298c01(0x17c)][_0x35a87a]=_0xd19e80;fs['writeFileSync'](_0x7eb297,this[_0x298c01(0x17c)][_0x35a87a]);}static[a55_0x4b38d6(0x196)](_0x502dd8){const _0x40c0ba=a55_0x4b38d6,_0x314f4e={};_0x314f4e[_0x40c0ba(0x16d)]='Error\x20handling\x20trace\x20file\x20paths:\x20';const _0x45d729=_0x314f4e;try{const _0x5ffa93=process[_0x40c0ba(0x1a8)],_0x714b50=path[_0x40c0ba(0x18f)](TestDetails[_0x40c0ba(0x1bb)](),_0x5ffa93+_0x40c0ba(0x189));let _0xed5737=[];_0x714b50&&fs[_0x40c0ba(0x1c5)](_0x714b50)&&(_0xed5737=JSON['parse'](fs[_0x40c0ba(0x166)](_0x714b50)['toString']())),!_0xed5737[_0x40c0ba(0x19e)](_0x3701e4=>_0x3701e4['filePath']===_0x502dd8[_0x40c0ba(0x16c)])&&(_0xed5737['push'](_0x502dd8),fs[_0x40c0ba(0x175)](_0x714b50,JSON[_0x40c0ba(0x1b4)](_0xed5737)));}catch(_0x327330){logger[_0x40c0ba(0x18a)](_0x45d729['DqCOB'],_0x327330);}}static[a55_0x4b38d6(0x17d)](){const _0x4baa0d=a55_0x4b38d6,_0x275bd1={};_0x275bd1[_0x4baa0d(0x1a0)]=_0x4baa0d(0x189),_0x275bd1[_0x4baa0d(0x199)]=_0x4baa0d(0x1b5);const _0x37fa95=_0x275bd1,_0x1590d0=[];try{const _0x57c56f=TestDetails['getTraceZipDir']();if(_0x57c56f&&!fs[_0x4baa0d(0x1c5)](_0x57c56f))return _0x1590d0;const _0x581e63=fs[_0x4baa0d(0x19b)](_0x57c56f);_0x581e63[_0x4baa0d(0x1b1)](_0x553c64=>{const _0x3703d8=_0x4baa0d;if(_0x553c64&&_0x553c64[_0x3703d8(0x1b8)](_0x37fa95[_0x3703d8(0x1a0)])){const _0x41f92d=JSON[_0x3703d8(0x1b2)](fs[_0x3703d8(0x166)](path[_0x3703d8(0x18f)](_0x57c56f,_0x553c64))[_0x3703d8(0x1c1)]());_0x1590d0[_0x3703d8(0x1b3)](..._0x41f92d);}});}catch(_0x4f55a2){logger[_0x4baa0d(0x18a)](util[_0x4baa0d(0x181)](_0x37fa95[_0x4baa0d(0x199)],_0x4f55a2));}const _0x1937ed={};return _0x1590d0[_0x4baa0d(0x1b1)](_0x3b04a7=>{const _0x245aeb=_0x4baa0d;_0x1937ed[_0x3b04a7[_0x245aeb(0x16c)]]=_0x3b04a7;}),Object[_0x4baa0d(0x1c2)](_0x1937ed);}static['appendToTracePaths'](_0xc9e649,_0xc56cc1){const _0x3ad9e2=a55_0x4b38d6,_0x4ba7a1={};_0x4ba7a1[_0x3ad9e2(0x16e)]=_0x3ad9e2(0x1b0),_0x4ba7a1[_0x3ad9e2(0x1a3)]='utf8';const _0x333088=_0x4ba7a1;try{const _0x4d03ff=path[_0x3ad9e2(0x18f)](helper['homedir'](),_0x333088[_0x3ad9e2(0x16e)]);if(!fs['existsSync'](_0x4d03ff)){const _0x517b9={};_0x517b9['recursive']=!![],fs[_0x3ad9e2(0x1a9)](_0x4d03ff,_0x517b9);}fs[_0x3ad9e2(0x1c4)](path[_0x3ad9e2(0x18f)](_0x4d03ff,_0x3ad9e2(0x1bd)+_0xc56cc1+_0x3ad9e2(0x177)),_0xc9e649+'\x0a',_0x333088[_0x3ad9e2(0x1a3)]);}catch(_0x53071c){console['error'](_0x3ad9e2(0x185)+_0x53071c[_0x3ad9e2(0x183)]);}}}function a55_0x6302(){const _0x4060e6=['getStoreDirName','project','testId','join','setTestDetails','getTestUUID','string','getTestRunIdFromTestInfo','23FJtdYD','setup','addTraceFilePath','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','_projectId','Ykkju','util','readdirSync','zJyCP','hNGGt','some','5feezLd','VNxGk','9BbQAoI','setIntegrations','mDlad','path','debug','Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20','fTalS','pid','mkdirSync','../../../helpers/logger','getProjectIdFromTestInfo','1912274udXCDz','5044504TkfQDS','getStoreDirPath','wchRH','.browserstack','forEach','parse','push','stringify','Error\x20reading\x20trace\x20file\x20paths:\x20%s','PyQar','pHYhA','endsWith','YAGte','_platformDetails.json','getTraceZipDir','getTestIdFromTestInfo','trace_','getFilePath','fXkkH','943767YMRvpe','toString','values','AAPLA','appendFileSync','existsSync','rjtAD','2537292xOWtUY','winstonLogger','readFileSync','force','10ivzcCd','env','__projectId','7608381XetXMo','filePath','DqCOB','zaePb','getAccessibilityPlatformValidation','XjXRq','setAccessibilityPlatformValidation','../../../helpers/helper','mnGck','zVUDY','writeFileSync','BpgrF','.txt','recursive','2291916dTFEwJ','uuid','../../../helpers/test-observability/constants','tests','getTraceFilePaths','default','lRMYc','.json','format','zumwJ','message','getDirPath','Error\x20writing\x20trace\x20file:\x20','shutdown','_test','59140JQWqev','_traceZipPaths.json','error','hxgCo'];a55_0x6302=function(){return _0x4060e6;};return a55_0x6302();}module['exports']=TestDetails;
1
+ function a55_0x1335(){const _0x106bb2=['GFGnu','pid','19265pqTqPG','tests','recursive','_integrations.json','../../../helpers/logger','testId','TtHgg','WkBrN','default','getAccessibilityPlatformValidation','Error\x20reading\x20trace\x20file\x20paths:\x20%s','getTestRunIdFromTestInfo','getProjectIdFromTestInfo','rmSync','setTestDetails','traceZipPaths','getDirPath','mkdirSync','uuid','_test','PtqAK','4151229DcdObP','getTestIdFromTestInfo','error','wcQGY','46347kNrfgC','aKaXk','BEger','shutdown','message','trace_','push','Error\x20writing\x20trace\x20file:\x20','.json','addTraceFilePath','Failed\x20to\x20parse\x20integrations\x20file\x20for\x20test\x20','EDNsb','7871418KKVYSl','debug','join','Error\x20handling\x20trace\x20file\x20paths:\x20','__projectId','utf8','winstonLogger','appendToTracePaths','parse','MVKAx','setIntegrations','project','getFilePath','appendFileSync','env','getIntegrations','.txt','IHYpW','mDCXh','jIRuk','readdirSync','format','4ozDqgV','IZRMK','bfJnE','sKeFs','43528750MiZRrb','readFileSync','getStoreDirName','filePath','sfYnN','_platformDetails.json','HfHKj','toString','1816tdHcIe','util','BRPjk','stringify','8EqPRzY','EqTxI','_traceZipPaths.json','BS_TESTOPS_BUILD_HASHED_ID','getTraceZipDir','5348125xdmPDT','7860933PrZjmt','../../../helpers/helper','getStoreDirPath','some','endsWith','VEZYb','fbzls','ePNSA','getTraceFilePaths','kkIGH','LTpDW','writeFileSync','existsSync','values','path'];a55_0x1335=function(){return _0x106bb2;};return a55_0x1335();}const a55_0xfa9499=a55_0x2040;function a55_0x2040(_0x2f0570,_0x5c5696){const _0x133531=a55_0x1335();return a55_0x2040=function(_0x204038,_0xc5b0f7){_0x204038=_0x204038-0x8e;let _0x5828dd=_0x133531[_0x204038];return _0x5828dd;},a55_0x2040(_0x2f0570,_0x5c5696);}(function(_0x584273,_0x47cf65){const _0x32611e=a55_0x2040,_0x3f8b0b=_0x584273();while(!![]){try{const _0x29abe9=parseInt(_0x32611e(0xee))/0x1*(-parseInt(_0x32611e(0xd7))/0x2)+parseInt(_0x32611e(0xa1))/0x3*(-parseInt(_0x32611e(0xc7))/0x4)+-parseInt(_0x32611e(0xdc))/0x5+parseInt(_0x32611e(0xb1))/0x6+parseInt(_0x32611e(0xa5))/0x7*(-parseInt(_0x32611e(0xd3))/0x8)+-parseInt(_0x32611e(0xdd))/0x9+parseInt(_0x32611e(0xcb))/0xa;if(_0x29abe9===_0x47cf65)break;else _0x3f8b0b['push'](_0x3f8b0b['shift']());}catch(_0x5c27a7){_0x3f8b0b['push'](_0x3f8b0b['shift']());}}}(a55_0x1335,0xb90ba));const fs=require('fs'),path=require(a55_0xfa9499(0xeb)),{v4:uuidv4}=require(a55_0xfa9499(0x9e)),{TEMP_STORE_DIR_NAME}=require('../../../helpers/test-observability/constants'),{nestedKeyValue}=require(a55_0xfa9499(0xde)),logger=require(a55_0xfa9499(0x90))[a55_0xfa9499(0xb7)],{getLogDir}=require(a55_0xfa9499(0x90)),util=require(a55_0xfa9499(0xd4)),helper=require('../../../helpers/helper');class TestDetails{static [a55_0xfa9499(0xef)]={};static['setup'](){const _0x166659=a55_0xfa9499;this[_0x166659(0xa8)]();const _0x142d91={};_0x142d91[_0x166659(0x8e)]=!![],fs['mkdirSync'](this[_0x166659(0x9c)](),_0x142d91);const _0xd75133={};_0xd75133['recursive']=!![],fs[_0x166659(0x9d)](this['getTraceZipDir'](),_0xd75133);}static['getStoreDirName'](){const _0x53f8d2=a55_0xfa9499,_0xb7256d={};_0xb7256d[_0x53f8d2(0xe4)]=function(_0x209040,_0x1806da){return _0x209040+_0x1806da;},_0xb7256d[_0x53f8d2(0xa6)]=function(_0x176451,_0x42a482){return _0x176451+_0x42a482;};const _0x369592=_0xb7256d;return _0x369592[_0x53f8d2(0xe4)](_0x369592[_0x53f8d2(0xa6)](TEMP_STORE_DIR_NAME,'-'),process[_0x53f8d2(0xbf)][_0x53f8d2(0xda)]);}static[a55_0xfa9499(0xdf)](){const _0x3fb90b=a55_0xfa9499,_0x4d92ea={};_0x4d92ea['mDCXh']=function(_0x37445f,_0x4013a7){return _0x37445f+_0x4013a7;},_0x4d92ea[_0x3fb90b(0xc8)]=function(_0x5cc1d4,_0x49e574){return _0x5cc1d4+_0x49e574;},_0x4d92ea[_0x3fb90b(0xc4)]=_0x3fb90b(0x94);const _0x235b27=_0x4d92ea;return path['join'](_0x235b27[_0x3fb90b(0xc3)](_0x235b27[_0x3fb90b(0xc8)](TEMP_STORE_DIR_NAME,'-'),process[_0x3fb90b(0xbf)][_0x3fb90b(0xda)]||_0x235b27['jIRuk']));}static[a55_0xfa9499(0xdb)](){const _0x37efef=a55_0xfa9499,_0x2c8cd3={};_0x2c8cd3['sfYnN']=_0x37efef(0x9b);const _0x501078=_0x2c8cd3;return path['join'](this[_0x37efef(0xdf)](),_0x501078[_0x37efef(0xcf)]);}static['getDirPath'](){const _0x32883f=a55_0xfa9499;return TestDetails[_0x32883f(0xcd)]();}static['getFilePath'](_0x3ecbb0){const _0x17052a=a55_0xfa9499,_0x810d85={};_0x810d85[_0x17052a(0xec)]=function(_0x5b9ffe,_0x58c6d5){return _0x5b9ffe+_0x58c6d5;},_0x810d85[_0x17052a(0x93)]=_0x17052a(0xad);const _0x5d6e30=_0x810d85;return path[_0x17052a(0xb3)](this[_0x17052a(0x9c)](),_0x5d6e30[_0x17052a(0xec)](_0x3ecbb0,_0x5d6e30['WkBrN']));}static[a55_0xfa9499(0x97)](_0x12012f){const _0x4b3d46=a55_0xfa9499,_0x3dcd34={};_0x3dcd34[_0x4b3d46(0xe6)]=function(_0x2323de,_0x3da533){return _0x2323de+_0x3da533;};const _0x28738d=_0x3dcd34;return _0x28738d[_0x4b3d46(0xe6)](_0x28738d[_0x4b3d46(0xe6)](this[_0x4b3d46(0xa2)](_0x12012f),'-'),_0x12012f['retry']);}static[a55_0xfa9499(0x98)](_0x5a36dd){const _0x5e759f=a55_0xfa9499,_0x5c1240={'DWzvo':function(_0x3b635c,_0x33674c,_0x16ffbc){return _0x3b635c(_0x33674c,_0x16ffbc);},'MVKAx':'_test','bfJnE':'_projectId','BEger':function(_0x5373fc,_0x1c1543,_0x2f986a){return _0x5373fc(_0x1c1543,_0x2f986a);},'sKeFs':_0x5e759f(0xbc),'HfHKj':_0x5e759f(0xb5)};return _0x5c1240['DWzvo'](nestedKeyValue,_0x5a36dd,[_0x5c1240[_0x5e759f(0xba)],_0x5c1240[_0x5e759f(0xc9)]])||_0x5c1240[_0x5e759f(0xa7)](nestedKeyValue,_0x5a36dd,[_0x5c1240[_0x5e759f(0xca)],_0x5c1240[_0x5e759f(0xd1)]]);}static[a55_0xfa9499(0xa2)](_0x59be21){const _0x3d6326=a55_0xfa9499,_0x461e7a={'quXhi':function(_0x491dca,_0x7f9f51,_0x27ccdb){return _0x491dca(_0x7f9f51,_0x27ccdb);},'LTpDW':_0x3d6326(0x9f)};return _0x461e7a['quXhi'](nestedKeyValue,_0x59be21,[_0x461e7a[_0x3d6326(0xe7)],'id'])||_0x59be21[_0x3d6326(0x91)];}static['getTestUUID'](_0x1219bb){const _0x20589e=a55_0xfa9499,_0x5a4bbe={'EDNsb':function(_0xde1f59,_0x13a4d9){return _0xde1f59===_0x13a4d9;},'EqTxI':'string','fbzls':function(_0x5d1e81){return _0x5d1e81();}};if(this[_0x20589e(0xef)][_0x1219bb]&&_0x5a4bbe[_0x20589e(0xb0)](typeof this[_0x20589e(0xef)][_0x1219bb][_0x20589e(0x9e)],_0x5a4bbe[_0x20589e(0xd8)]))return this['tests'][_0x1219bb]['uuid'];const _0x6a79b7=this[_0x20589e(0xbd)](_0x1219bb);if(_0x6a79b7&&fs[_0x20589e(0xe9)](_0x6a79b7)){const _0x5ca9e3=JSON[_0x20589e(0xb9)](fs[_0x20589e(0xcc)](_0x6a79b7)[_0x20589e(0xd2)]());return this['tests'][_0x1219bb]=_0x5ca9e3,this['tests'][_0x1219bb][_0x20589e(0x9e)];}return this[_0x20589e(0xef)][_0x1219bb]={'uuid':_0x5a4bbe[_0x20589e(0xe3)](uuidv4)},fs[_0x20589e(0xe8)](_0x6a79b7,JSON[_0x20589e(0xd6)](this['tests'][_0x1219bb])),this[_0x20589e(0xef)][_0x1219bb][_0x20589e(0x9e)];}static[a55_0xfa9499(0x95)](_0x27c84b){const _0x559b19=a55_0xfa9499,_0x3d8d85=path['join'](this[_0x559b19(0x9c)](),_0x27c84b+_0x559b19(0xd0));if(_0x3d8d85&&fs['existsSync'](_0x3d8d85))return fs[_0x559b19(0xcc)](_0x3d8d85)[_0x559b19(0xd2)]();}static['setAccessibilityPlatformValidation'](_0x1ba48c,_0x423dd2){const _0xdcfc11=a55_0xfa9499,_0x18a81b=path[_0xdcfc11(0xb3)](this[_0xdcfc11(0x9c)](),_0x423dd2+_0xdcfc11(0xd0));fs['writeFileSync'](_0x18a81b,_0x1ba48c['toString']());}static[a55_0xfa9499(0xc0)](_0x4bed15){const _0x5dd504=a55_0xfa9499,_0x23c2c0=path[_0x5dd504(0xb3)](this[_0x5dd504(0x9c)](),_0x4bed15+_0x5dd504(0x8f));if(_0x23c2c0&&fs['existsSync'](_0x23c2c0))try{return JSON['parse'](fs[_0x5dd504(0xcc)](_0x23c2c0)['toString']());}catch(_0x1235a8){return logger[_0x5dd504(0xb2)](_0x5dd504(0xaf)+_0x4bed15+':\x20'+(_0x1235a8&&_0x1235a8[_0x5dd504(0xa9)])),null;}return null;}static[a55_0xfa9499(0xbb)](_0x43f7bf,_0x57154c){const _0x373755=a55_0xfa9499,_0x515b65={};_0x515b65[_0x373755(0xe2)]=function(_0x48f849,_0x314eb4){return _0x48f849||_0x314eb4;};const _0x5e2132=_0x515b65;if(_0x5e2132[_0x373755(0xe2)](!_0x43f7bf,!_0x57154c))return;try{const _0x5661d2=this[_0x373755(0x9c)](),_0x304ab5={};_0x304ab5['recursive']=!![],fs[_0x373755(0x9d)](_0x5661d2,_0x304ab5);const _0x307691=path[_0x373755(0xb3)](_0x5661d2,_0x43f7bf+_0x373755(0x8f));fs[_0x373755(0xe8)](_0x307691,JSON[_0x373755(0xd6)](_0x57154c));}catch(_0x3ca865){logger[_0x373755(0xb2)]('Failed\x20to\x20write\x20integrations\x20file\x20for\x20test\x20'+_0x43f7bf+':\x20'+(_0x3ca865&&_0x3ca865['message']));}}static['shutdown'](){const _0x3b2460=a55_0xfa9499,_0x526d33={};_0x526d33[_0x3b2460(0x8e)]=!![],_0x526d33['force']=!![],fs[_0x3b2460(0x99)](this[_0x3b2460(0x9c)](),_0x526d33);}static['getTestDetails'](_0x49d445){const _0x2d924e=a55_0xfa9499;if(this[_0x2d924e(0xef)][_0x49d445])return this['tests'][_0x49d445];const _0x5d1d6d=this[_0x2d924e(0xbd)](_0x49d445);if(_0x5d1d6d&&fs[_0x2d924e(0xe9)](_0x5d1d6d)){const _0x5e721e=JSON['parse'](fs['readFileSync'](_0x5d1d6d)['toString']());return this[_0x2d924e(0xef)][_0x49d445]=_0x5e721e,_0x5e721e;}return{};}static[a55_0xfa9499(0x9a)](_0x3e0084,_0x49e2a0){const _0x1ed838=a55_0xfa9499,_0x49dd06=this['getFilePath'](_0x3e0084);if(_0x49dd06&&fs['existsSync'](_0x49dd06)){const _0x5eede7=JSON['parse'](fs['readFileSync'](_0x49dd06)[_0x1ed838(0xd2)]()),_0x376a23={..._0x5eede7,..._0x49e2a0};this[_0x1ed838(0xef)][_0x3e0084]=_0x376a23;}else this[_0x1ed838(0xef)][_0x3e0084]=_0x49e2a0;fs['writeFileSync'](_0x49dd06,this[_0x1ed838(0xef)][_0x3e0084]);}static[a55_0xfa9499(0xae)](_0x34d2ec){const _0x4997f2=a55_0xfa9499,_0x3efe70={};_0x3efe70[_0x4997f2(0x92)]=_0x4997f2(0xb4);const _0x11e905=_0x3efe70;try{const _0x52ef80=process[_0x4997f2(0xed)],_0x5c03df=path[_0x4997f2(0xb3)](TestDetails['getTraceZipDir'](),_0x52ef80+_0x4997f2(0xd9));let _0x1252a8=[];_0x5c03df&&fs[_0x4997f2(0xe9)](_0x5c03df)&&(_0x1252a8=JSON['parse'](fs[_0x4997f2(0xcc)](_0x5c03df)['toString']())),!_0x1252a8[_0x4997f2(0xe0)](_0x594ef3=>_0x594ef3[_0x4997f2(0xce)]===_0x34d2ec['filePath'])&&(_0x1252a8['push'](_0x34d2ec),fs[_0x4997f2(0xe8)](_0x5c03df,JSON[_0x4997f2(0xd6)](_0x1252a8)));}catch(_0x493bbc){logger['error'](_0x11e905[_0x4997f2(0x92)],_0x493bbc);}}static[a55_0xfa9499(0xe5)](){const _0x5b12df=a55_0xfa9499,_0x24293a={};_0x24293a[_0x5b12df(0xa4)]=_0x5b12df(0xd9),_0x24293a[_0x5b12df(0xc2)]=_0x5b12df(0x96);const _0x2e4f34=_0x24293a,_0x40f2a3=[];try{const _0x227db1=TestDetails[_0x5b12df(0xdb)]();if(_0x227db1&&!fs[_0x5b12df(0xe9)](_0x227db1))return _0x40f2a3;const _0x7f3049=fs[_0x5b12df(0xc5)](_0x227db1);_0x7f3049['forEach'](_0x19f14a=>{const _0x4db5f4=_0x5b12df;if(_0x19f14a&&_0x19f14a[_0x4db5f4(0xe1)](_0x2e4f34[_0x4db5f4(0xa4)])){const _0x355dbe=JSON[_0x4db5f4(0xb9)](fs[_0x4db5f4(0xcc)](path[_0x4db5f4(0xb3)](_0x227db1,_0x19f14a))[_0x4db5f4(0xd2)]());_0x40f2a3[_0x4db5f4(0xab)](..._0x355dbe);}});}catch(_0x39f0ae){logger[_0x5b12df(0xa3)](util[_0x5b12df(0xc6)](_0x2e4f34['IHYpW'],_0x39f0ae));}const _0x5a1f92={};return _0x40f2a3['forEach'](_0x15f7d6=>{const _0x8debc4=_0x5b12df;_0x5a1f92[_0x15f7d6[_0x8debc4(0xce)]]=_0x15f7d6;}),Object[_0x5b12df(0xea)](_0x5a1f92);}static[a55_0xfa9499(0xb8)](_0x5893a4,_0x1841bd){const _0x2b4bff=a55_0xfa9499,_0x4bdc60={};_0x4bdc60['PtqAK']='.browserstack',_0x4bdc60[_0x2b4bff(0xd5)]=_0x2b4bff(0xb6);const _0xca04d0=_0x4bdc60;try{const _0x219293=path['join'](helper['homedir'](),_0xca04d0[_0x2b4bff(0xa0)]);if(!fs[_0x2b4bff(0xe9)](_0x219293)){const _0x3614a4={};_0x3614a4['recursive']=!![],fs['mkdirSync'](_0x219293,_0x3614a4);}fs[_0x2b4bff(0xbe)](path['join'](_0x219293,_0x2b4bff(0xaa)+_0x1841bd+_0x2b4bff(0xc1)),_0x5893a4+'\x0a',_0xca04d0['BRPjk']);}catch(_0x37033f){console[_0x2b4bff(0xa3)](_0x2b4bff(0xac)+_0x37033f[_0x2b4bff(0xa9)]);}}}module['exports']=TestDetails;
@@ -1 +1 @@
1
- function a56_0x2a9f(_0x186a60,_0x192683){const _0x38b629=a56_0x38b6();return a56_0x2a9f=function(_0x2a9fe9,_0x1f0fa3){_0x2a9fe9=_0x2a9fe9-0x158;let _0x5b5eaa=_0x38b629[_0x2a9fe9];return _0x5b5eaa;},a56_0x2a9f(_0x186a60,_0x192683);}const a56_0x804b85=a56_0x2a9f;(function(_0x399cec,_0x4a3f64){const _0x5146b9=a56_0x2a9f,_0xd97e75=_0x399cec();while(!![]){try{const _0x16fa5e=parseInt(_0x5146b9(0x195))/0x1*(parseInt(_0x5146b9(0x1d3))/0x2)+parseInt(_0x5146b9(0x1e8))/0x3*(parseInt(_0x5146b9(0x19b))/0x4)+-parseInt(_0x5146b9(0x1d2))/0x5+parseInt(_0x5146b9(0x1dd))/0x6*(parseInt(_0x5146b9(0x1ff))/0x7)+parseInt(_0x5146b9(0x1b2))/0x8*(-parseInt(_0x5146b9(0x1a2))/0x9)+-parseInt(_0x5146b9(0x19e))/0xa+parseInt(_0x5146b9(0x1c4))/0xb*(parseInt(_0x5146b9(0x221))/0xc);if(_0x16fa5e===_0x4a3f64)break;else _0xd97e75['push'](_0xd97e75['shift']());}catch(_0x12ce8c){_0xd97e75['push'](_0xd97e75['shift']());}}}(a56_0x38b6,0xe296c));const path=require(a56_0x804b85(0x16c)),url=require(a56_0x804b85(0x20f)),util=require(a56_0x804b85(0x18d)),helper=require(a56_0x804b85(0x201)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a56_0x804b85(0x201)),{o11yErrorHandler}=require(a56_0x804b85(0x1c3)),{debug,getPlatformDetails}=require(a56_0x804b85(0x162)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a56_0x804b85(0x219)),{FRAMEWORKS}=require(a56_0x804b85(0x1b8)),logger=require('../../helpers/logger')['winstonLogger'],scripts=require(a56_0x804b85(0x218)),{browserStackExecuteDriver}=require(a56_0x804b85(0x1d0)),AccessibilityHelper=require(a56_0x804b85(0x1fc)),constants=require(a56_0x804b85(0x1bc)),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require(a56_0x804b85(0x18b)),HookState=require(a56_0x804b85(0x1a5)),{performScanWithRetry}=require(a56_0x804b85(0x188)),ClientTroubleShootingService=require('../utils/clientTroubleshootingService.js'),getBrowserNameFromChannel=_0x4f564f=>{const _0x4f4e64=a56_0x804b85,_0x15de70={};_0x15de70['DQPYS']=_0x4f4e64(0x1c2),_0x15de70[_0x4f4e64(0x1f0)]=_0x4f4e64(0x199),_0x15de70[_0x4f4e64(0x1ba)]=_0x4f4e64(0x187),_0x15de70[_0x4f4e64(0x197)]=_0x4f4e64(0x1c7),_0x15de70[_0x4f4e64(0x203)]=function(_0x45302d,_0x2c7e7f){return _0x45302d===_0x2c7e7f;},_0x15de70['bLENc']=_0x4f4e64(0x1b6),_0x15de70['vmWhM']=_0x4f4e64(0x1a7),_0x15de70[_0x4f4e64(0x17b)]=_0x4f4e64(0x1a3);const _0x281ae1=_0x15de70,_0x36a50f=_0x281ae1[_0x4f4e64(0x168)][_0x4f4e64(0x186)]('|');let _0x5c00ea=0x0;while(!![]){switch(_0x36a50f[_0x5c00ea++]){case'0':if(_0x4f564f[_0x4f4e64(0x16f)](_0x281ae1[_0x4f4e64(0x1f0)]))return _0x281ae1[_0x4f4e64(0x1f0)];continue;case'1':if(_0x4f564f[_0x4f4e64(0x16f)](_0x281ae1['xLXVT']))return _0x281ae1[_0x4f4e64(0x1ba)];continue;case'2':if(_0x4f564f['includes'](_0x281ae1[_0x4f4e64(0x197)]))return _0x281ae1['KkrDi'];continue;case'3':if(_0x281ae1['ZIMQZ'](_0x4f564f,_0x281ae1[_0x4f4e64(0x160)]))return _0x281ae1[_0x4f4e64(0x160)];continue;case'4':if(_0x4f564f[_0x4f4e64(0x16f)](_0x281ae1[_0x4f4e64(0x1c1)]))return _0x281ae1[_0x4f4e64(0x1c1)];continue;case'5':if(_0x4f564f[_0x4f4e64(0x16f)](_0x281ae1['QuVdh']))return _0x281ae1['QuVdh'];continue;}break;}},getBrowserFromWSEndpoint=_0x5a8708=>{const _0x21b406=a56_0x804b85,_0x19f775={'iVyLa':_0x21b406(0x187),'cAkMf':function(_0x55e6a9,_0x297bfb){return _0x55e6a9(_0x297bfb);}};try{const _0x1d0284=url[_0x21b406(0x1cd)](_0x5a8708),_0x3e4707=new URLSearchParams(_0x1d0284[_0x21b406(0x1a0)]),_0x2b4e2e=Object[_0x21b406(0x1a8)](_0x3e4707[_0x21b406(0x1b5)]()),_0x59381f=JSON[_0x21b406(0x1cd)](_0x2b4e2e['caps']);if(_0x59381f&&(_0x59381f[_0x21b406(0x20d)]||_0x59381f[_0x21b406(0x1d8)]))return _0x59381f['browser']||_0x59381f[_0x21b406(0x1d8)];return _0x19f775[_0x21b406(0x200)];}catch(_0x1b813d){_0x19f775[_0x21b406(0x1ab)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x1b813d[_0x21b406(0x1d5)]());}},getCloudProviderFromWsEndpoint=_0x5f08fd=>{const _0x7e06=a56_0x804b85,_0x1ab78f={};_0x1ab78f[_0x7e06(0x19d)]=_0x7e06(0x19c),_0x1ab78f[_0x7e06(0x192)]='unknown_grid';const _0x346dd7=_0x1ab78f;if(_0x5f08fd[_0x7e06(0x16f)](constants[_0x7e06(0x17f)])||_0x5f08fd[_0x7e06(0x16f)](constants[_0x7e06(0x15c)]))return _0x346dd7['WZBnE'];return _0x346dd7[_0x7e06(0x192)];},a56_0x3174eb={};a56_0x3174eb[a56_0x804b85(0x178)]=undefined,a56_0x3174eb['bsSessionId']=undefined,a56_0x3174eb[a56_0x804b85(0x20d)]=undefined,a56_0x3174eb[a56_0x804b85(0x216)]=undefined,a56_0x3174eb['platform']=undefined,a56_0x3174eb[a56_0x804b85(0x1fe)]=undefined,a56_0x3174eb['product']=undefined,a56_0x3174eb['capabilities']={};class PlaywrightSessionDetails{static ['currentSessionDetails']=a56_0x3174eb;constructor(){const _0x180381=a56_0x804b85,_0x5ecdf6={};_0x5ecdf6[_0x180381(0x17e)]=_0x180381(0x1e7);const _0x457aaf=_0x5ecdf6;throw new Error(_0x457aaf[_0x180381(0x17e)]);}static [a56_0x804b85(0x1ad)]=null;static[a56_0x804b85(0x211)](_0x160758,_0xde4986,_0x233678=null){const _0x2b5c1f=a56_0x804b85,_0x1a83b3={'jusED':function(_0x2317a6,_0xaa139c){return _0x2317a6===_0xaa139c;},'vXzcd':_0x2b5c1f(0x1e6),'MfrUZ':_0x2b5c1f(0x191),'IgBVF':'Device\x20Model\x20is\x20not\x20available','iJTYa':_0x2b5c1f(0x1a4),'oggkT':function(_0x323a55,_0x3c7c05,_0x4c1173){return _0x323a55(_0x3c7c05,_0x4c1173);},'KSDwy':_0x2b5c1f(0x20b),'AiQDj':_0x2b5c1f(0x174),'honKl':function(_0x48e23a,_0x4d376e,_0x15266f){return _0x48e23a(_0x4d376e,_0x15266f);},'Pjhie':_0x2b5c1f(0x19f),'xuugZ':_0x2b5c1f(0x204),'tfUkj':_0x2b5c1f(0x207),'GWYXT':function(_0x2fe07b,_0x433693){return _0x2fe07b(_0x433693);},'ixUPf':function(_0x221b4d,_0x40b239){return _0x221b4d===_0x40b239;},'NFgFH':_0x2b5c1f(0x19c),'LqpbV':'turboscale','bxYhz':_0x2b5c1f(0x163),'Xwlpf':function(_0x5e1243){return _0x5e1243();},'GlZNw':function(_0x281ee5,_0x59da9c){return _0x281ee5&&_0x59da9c;},'NQlxy':function(_0x53df16){return _0x53df16();},'ZwWaC':function(_0x535154){return _0x535154();},'duehn':function(_0x153d10,_0x3ae896){return _0x153d10(_0x3ae896);},'UIPuK':function(_0x5090a4,_0x508894){return _0x5090a4+_0x508894;},'vpbvR':_0x2b5c1f(0x1f5),'uIrbb':function(_0x1ec420){return _0x1ec420();},'frXnz':_0x2b5c1f(0x211)},_0x17499b=this;return _0x1a83b3[_0x2b5c1f(0x172)](o11yErrorHandler,async function _0x3a5243(_0x65c049,_0x19e152,_0x56c018=null){const _0x42424e=_0x2b5c1f;let _0x4a0207=_0x65c049[_0x42424e(0x1b0)],_0x2f581d=null;_0x65c049&&_0x1a83b3['jusED'](typeof _0x65c049['version'],_0x1a83b3[_0x42424e(0x1ee)])?_0x2f581d=_0x65c049['version']():logger[_0x42424e(0x158)](_0x1a83b3['MfrUZ']);let _0x29e0dc=null;_0x65c049&&_0x1a83b3[_0x42424e(0x208)](typeof _0x65c049[_0x42424e(0x1cf)],_0x1a83b3['vXzcd'])?_0x29e0dc=_0x65c049[_0x42424e(0x1cf)]():logger[_0x42424e(0x158)](_0x1a83b3['IgBVF']);let _0x40762b=null,_0x31c866=null,_0x28c151=null,_0x1ebb78=_0x1a83b3[_0x42424e(0x184)];if(_0x65c049['_connection']['isRemote']()||global[_0x42424e(0x171)]&&!process['env'][_0x42424e(0x16b)]){let _0x2befb4=null;_0x1a83b3[_0x42424e(0x21f)](nestedKeyValue,_0x65c049,[_0x1a83b3['KSDwy'],_0x1a83b3['AiQDj']])?_0x2befb4=_0x65c049['_browserType'][_0x42424e(0x174)]:_0x2befb4=_0x1a83b3[_0x42424e(0x172)](nestedKeyValue,_0x19e152,[_0x1a83b3[_0x42424e(0x175)],_0x1a83b3[_0x42424e(0x1e2)],_0x1a83b3[_0x42424e(0x1db)]]);const _0x2e0b14=_0x56c018||_0x2befb4&&_0x2befb4[_0x42424e(0x1b9)];if(_0x2e0b14){_0x1ebb78=_0x1a83b3[_0x42424e(0x15e)](getCloudProviderFromWsEndpoint,_0x2e0b14);if(_0x1a83b3[_0x42424e(0x1f1)](_0x1ebb78,_0x1a83b3['NFgFH']))_0x28c151=constants['ATS_WSS_URL_REGEX'][_0x42424e(0x213)](_0x2e0b14)?_0x1a83b3[_0x42424e(0x1c9)]:_0x1a83b3[_0x42424e(0x1df)],_0x4a0207=_0x1a83b3['GWYXT'](getBrowserFromWSEndpoint,_0x2e0b14)||_0x4a0207,_0x40762b=_0x17499b[_0x42424e(0x1bd)][_0x42424e(0x1cc)],_0x31c866=_0x17499b[_0x42424e(0x1bd)]['platform_version'];else{const _0x16a2ce=await _0x1a83b3[_0x42424e(0x161)](getPlatformDetails);_0x40762b=_0x16a2ce[_0x42424e(0x1da)],_0x31c866=_0x16a2ce[_0x42424e(0x1d6)];}}if(_0x1a83b3[_0x42424e(0x21a)](!_0x40762b,!_0x31c866)&&!_0x1a83b3[_0x42424e(0x1e0)](isBrowserstackInfra)){const _0x42102a=await _0x1a83b3[_0x42424e(0x17c)](getPlatformDetails);_0x40762b=_0x42102a[_0x42424e(0x1da)],_0x31c866=_0x42102a[_0x42424e(0x1d6)];}}else{_0x19e152&&_0x19e152[_0x42424e(0x19f)]['use'][_0x42424e(0x1c6)]?_0x4a0207=_0x1a83b3[_0x42424e(0x1ef)](getBrowserNameFromChannel,_0x19e152['project'][_0x42424e(0x204)][_0x42424e(0x1c6)]):_0x4a0207=_0x1a83b3['UIPuK'](_0x1a83b3[_0x42424e(0x1ae)],_0x4a0207['toLowerCase']());const _0x516765=await _0x1a83b3[_0x42424e(0x18e)](getPlatformDetails);_0x40762b=_0x516765[_0x42424e(0x1da)],_0x31c866=_0x516765[_0x42424e(0x1d6)];}const _0x3cc17d={};_0x3cc17d[_0x42424e(0x20d)]=_0x4a0207,_0x3cc17d[_0x42424e(0x216)]=_0x2f581d,_0x3cc17d[_0x42424e(0x1ce)]={},_0x3cc17d[_0x42424e(0x1cc)]=_0x40762b,_0x3cc17d['platform_version']=_0x31c866,_0x3cc17d[_0x42424e(0x1be)]=_0x28c151;const _0x50def1=_0x3cc17d;_0x29e0dc&&(_0x50def1[_0x42424e(0x1ce)]['deviceModel']=_0x29e0dc);const _0x6165fb={};_0x6165fb[_0x42424e(0x178)]=_0x1ebb78,_0x17499b[_0x42424e(0x1bd)]=Object['assign']({},_0x17499b[_0x42424e(0x1bd)],_0x6165fb,_0x50def1);},_0x1a83b3[_0x2b5c1f(0x166)])(_0x160758,_0xde4986,_0x233678);}static[a56_0x804b85(0x206)](){this['patchConnection'](),this['patchCRConnection']();}static['patchConnection'](){const _0x1b5064=a56_0x804b85,_0x530e95={'QzREv':function(_0xa006fd,_0x1d9db2,_0x3e3ed6){return _0xa006fd(_0x1d9db2,_0x3e3ed6);},'aFzDN':'currentTest','IidnR':_0x1b5064(0x215),'aCcBJ':'titlePath','oiwVo':function(_0x3b5b11,_0xf42cae,_0x29afea){return _0x3b5b11(_0xf42cae,_0x29afea);},'wQHaJ':_0x1b5064(0x194),'ywIOm':'pwPage','BwhPz':function(_0x3441e8,_0x2c263d,_0x3caf4e){return _0x3441e8(_0x2c263d,_0x3caf4e);},'TADKh':function(_0x3376dd,_0x6f740a){return _0x3376dd===_0x6f740a;},'XtFqP':_0x1b5064(0x159),'nvDwA':function(_0x473091,_0x4f6fcf,_0x1ebe6a,_0x1b63d8){return _0x473091(_0x4f6fcf,_0x1ebe6a,_0x1b63d8);},'jkIst':function(_0x2776f8,_0x4caa3c){return _0x2776f8||_0x4caa3c;},'EOgqM':function(_0x271c28,_0x18de40){return _0x271c28(_0x18de40);},'RQqRf':_0x1b5064(0x20e),'oBsOO':function(_0x225f84,_0x1421ff){return _0x225f84!=_0x1421ff;},'gDfbA':function(_0x155fce){return _0x155fce();},'YDjVI':_0x1b5064(0x1b1),'jdwpF':function(_0xc2cef9,_0x3b979b){return _0xc2cef9(_0x3b979b);},'HujBD':_0x1b5064(0x1d1),'oTpdm':_0x1b5064(0x1c5),'yalxE':function(_0x1b3c0d,_0x16fd13){return _0x1b3c0d(_0x16fd13);}},_0x45111e=this;!this[_0x1b5064(0x16e)]&&(this[_0x1b5064(0x16e)]=helper[_0x1b5064(0x190)](),!this['Connection']&&_0x530e95[_0x1b5064(0x17a)](debug,_0x530e95[_0x1b5064(0x1d9)]));const _0x2934a6=this[_0x1b5064(0x16e)];if(_0x530e95[_0x1b5064(0x177)](_0x2934a6,null)&&_0x2934a6[_0x1b5064(0x1ed)][_0x1b5064(0x1eb)])return;try{if(_0x530e95['oBsOO'](_0x2934a6,null)){const _0x59b214=_0x2934a6[_0x1b5064(0x1ed)]['dispatch'],_0x4eb2ef=_0x2934a6[_0x1b5064(0x1ed)]['sendMessageToServer'];_0x530e95[_0x1b5064(0x1fd)](isAccessibilityAutomationSession)&&Object['defineProperty'](_0x2934a6[_0x1b5064(0x1ed)],_0x530e95[_0x1b5064(0x173)],{'get':function(){return async function(){const _0x188f3c=a56_0x2a9f;try{if(!global['bstackPerformA11yScan']&&global[_0x188f3c(0x171)]&&_0x530e95['QzREv'](nestedKeyValue,global[_0x188f3c(0x194)],[_0x530e95[_0x188f3c(0x179)],_0x530e95['IidnR'],_0x530e95[_0x188f3c(0x169)]])&&_0x530e95['oiwVo'](shouldScanTestForAccessibility,global[_0x188f3c(0x194)][_0x188f3c(0x1ea)][_0x188f3c(0x215)]['titlePath'],!![])&&scripts[_0x188f3c(0x1b3)](arguments[0x1])){logger[_0x188f3c(0x158)](_0x188f3c(0x181)+arguments[0x1]),global[_0x188f3c(0x217)]=!![];const _0x1d9f14=_0x530e95[_0x188f3c(0x1fa)](nestedKeyValue,global,[_0x530e95['wQHaJ'],_0x530e95[_0x188f3c(0x183)]]);_0x1d9f14&&logger[_0x188f3c(0x1f8)](_0x188f3c(0x1af)+util[_0x188f3c(0x15f)](await _0x530e95['BwhPz'](performScanWithRetry,_0x1d9f14,arguments[0x1]))),_0x530e95[_0x188f3c(0x1f3)](arguments[0x0][_0x188f3c(0x1e1)],_0x530e95[_0x188f3c(0x18c)])&&global[_0x188f3c(0x15d)]&&logger['info'](_0x188f3c(0x1f6)+util['format'](await _0x530e95[_0x188f3c(0x1ca)](performScanWithRetry,global[_0x188f3c(0x15d)],arguments[0x1],scripts[_0x188f3c(0x16d)])));}}catch(_0x432a0a){logger[_0x188f3c(0x158)](_0x188f3c(0x1a9)+util['format'](_0x432a0a));}return global[_0x188f3c(0x217)]=![],_0x4eb2ef[_0x188f3c(0x1a1)](this,arguments);};}}),!_0x530e95[_0x1b5064(0x1e5)](isFalse,process[_0x1b5064(0x193)][_0x1b5064(0x180)])&&Object[_0x1b5064(0x21b)](_0x2934a6['prototype'],_0x530e95[_0x1b5064(0x1a6)],{'get':function(){return async function _0x4928fc(_0x334b6e){const _0x411f83=a56_0x2a9f;if(BrowserstackCLI[_0x411f83(0x167)]()[_0x411f83(0x196)]()){const _0x5eb91e={};_0x5eb91e[_0x411f83(0x1d4)]=_0x334b6e,await BrowserstackCLI[_0x411f83(0x167)]()[_0x411f83(0x164)]()[_0x411f83(0x1fb)](AutomationFrameworkState[_0x411f83(0x1cb)],HookState[_0x411f83(0x1c8)],_0x5eb91e);}else{const _0x4eaaa9=_0x334b6e&&_0x334b6e[_0x411f83(0x1f7)]&&_0x334b6e[_0x411f83(0x1f7)][_0x411f83(0x165)];if(_0x4eaaa9){const _0x480648=_0x4eaaa9['sessionId'],_0x5b7feb=_0x4eaaa9[_0x411f83(0x18a)];_0x530e95[_0x411f83(0x20a)](!_0x480648,!_0x5b7feb)&&await ClientTroubleShootingService['reportSessionLinkingIssue'](),_0x5b7feb&&(_0x530e95[_0x411f83(0x17a)](debug,_0x411f83(0x17d)+_0x5b7feb[_0x411f83(0x1d5)]()),_0x45111e['currentSessionDetails'][_0x411f83(0x1cc)]=_0x5b7feb[_0x411f83(0x1da)],_0x45111e[_0x411f83(0x1bd)][_0x411f83(0x1fe)]=_0x5b7feb[_0x411f83(0x1d6)]),_0x480648&&(_0x530e95[_0x411f83(0x17a)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x480648),_0x45111e[_0x411f83(0x1bd)][_0x411f83(0x19a)]=_0x480648);}}return _0x59b214[_0x411f83(0x1a1)](this,arguments);};}}),_0x2934a6['prototype'][_0x1b5064(0x1eb)]=!![],logger[_0x1b5064(0x158)](_0x530e95[_0x1b5064(0x1b4)]);}}catch(_0x2da841){_0x530e95[_0x1b5064(0x1c0)](debug,_0x1b5064(0x220)+_0x2da841),_0x45111e['sessionError']=_0x2da841['toString']();}}static[a56_0x804b85(0x1d7)](){const _0x1aa556=a56_0x804b85,_0x190a3e={'AJQia':function(_0x3ba894,_0x1782ff){return _0x3ba894(_0x1782ff);},'bSATE':function(_0xca1ad1,_0x217257){return _0xca1ad1(_0x217257);},'NPpzZ':function(_0x9adecc,_0x567004){return _0x9adecc(_0x567004);},'CYBsc':function(_0x2f86bf){return _0x2f86bf();},'nFdDT':function(_0x5b752a,_0xc75db8){return _0x5b752a>=_0xc75db8;},'YQdJG':_0x1aa556(0x210),'ofrQE':function(_0x38b6ab,_0x649544){return _0x38b6ab(_0x649544);},'LntDu':function(_0x4d0c21,_0x28b0aa){return _0x4d0c21(_0x28b0aa);},'vRtTX':_0x1aa556(0x21c),'EdSZi':_0x1aa556(0x1bf),'LiOZH':_0x1aa556(0x1e4),'FFqsV':_0x1aa556(0x1a3),'DsuUA':'crConnection.js','ZNRQB':'Not\x20able\x20to\x20import\x20crConnection','GUOtz':function(_0x3d4b4f,_0x43a919){return _0x3d4b4f(_0x43a919);},'eYjZI':_0x1aa556(0x1e9),'IBUXY':function(_0x2f373f,_0x1a884d){return _0x2f373f!=_0x1a884d;},'YzzvX':_0x1aa556(0x1b7),'dvZnu':function(_0x50d1df,_0xd096f4){return _0x50d1df(_0xd096f4);}},_0x371aaf=this;if(_0x190a3e['CYBsc'](isAccessibilityAutomationSession)){let _0x39b6d8=null,_0x417b4e=![];try{const _0x2f7eaf=helper[_0x1aa556(0x1f2)](FRAMEWORKS[_0x1aa556(0x170)]);_0x417b4e=_0x190a3e[_0x1aa556(0x1dc)](helper['compareVersions'](_0x2f7eaf,_0x190a3e[_0x1aa556(0x198)]),0x0);}catch(_0x9fdc0b){_0x190a3e[_0x1aa556(0x15a)](debug,_0x1aa556(0x189)+_0x9fdc0b[_0x1aa556(0x1d5)]());}if(_0x417b4e)_0x190a3e['LntDu'](debug,_0x190a3e[_0x1aa556(0x1ec)]);else try{const _0x164611=path['join'](_0x190a3e[_0x1aa556(0x214)],_0x190a3e[_0x1aa556(0x202)],_0x190a3e[_0x1aa556(0x20c)],_0x190a3e[_0x1aa556(0x176)]),_0x393320=_0x190a3e[_0x1aa556(0x21d)](importFileFromPWCore,_0x164611);!_0x393320?_0x190a3e[_0x1aa556(0x1de)](debug,_0x190a3e['ZNRQB']):_0x39b6d8=_0x393320[_0x1aa556(0x15b)];}catch(_0x1394b4){_0x190a3e[_0x1aa556(0x1e3)](debug,_0x190a3e[_0x1aa556(0x1f9)]);}try{if(_0x190a3e[_0x1aa556(0x205)](_0x39b6d8,null)){const _0x13c654=_0x39b6d8[_0x1aa556(0x1ed)][_0x1aa556(0x1b7)];Object[_0x1aa556(0x21b)](_0x39b6d8[_0x1aa556(0x1ed)],_0x190a3e[_0x1aa556(0x1bb)],{'get':function(){const _0x468871={'MdLFg':function(_0x5133bb,_0x26c6bf){const _0x293b8b=a56_0x2a9f;return _0x190a3e[_0x293b8b(0x21d)](_0x5133bb,_0x26c6bf);},'pZuyh':function(_0x33cbeb,_0x15086b){return _0x190a3e['bSATE'](_0x33cbeb,_0x15086b);},'rCVoR':function(_0x1654dc,_0x1073b5){const _0x18f100=a56_0x2a9f;return _0x190a3e[_0x18f100(0x212)](_0x1654dc,_0x1073b5);}};return async function _0x3de047(_0x291113){const _0x46e618=a56_0x2a9f;try{if(BrowserstackCLI[_0x46e618(0x167)]()['isRunning']()){const _0x193742={};_0x193742['message']=_0x291113,await BrowserstackCLI[_0x46e618(0x167)]()[_0x46e618(0x164)]()[_0x46e618(0x1fb)](AutomationFrameworkState[_0x46e618(0x1cb)],HookState[_0x46e618(0x1c8)],_0x193742),delete _0x291113[_0x46e618(0x185)];}else{const _0x15894a=_0x291113[_0x46e618(0x185)];if(_0x15894a){delete _0x291113[_0x46e618(0x185)];const _0x388729=_0x15894a[_0x46e618(0x182)],_0x3bf6c0=_0x15894a[_0x46e618(0x18a)];_0x3bf6c0&&(_0x468871[_0x46e618(0x16a)](debug,_0x46e618(0x18f)+_0x3bf6c0[_0x46e618(0x1d5)]()),_0x371aaf[_0x46e618(0x1bd)][_0x46e618(0x1cc)]=_0x3bf6c0[_0x46e618(0x1da)],_0x371aaf['currentSessionDetails'][_0x46e618(0x1fe)]=_0x3bf6c0[_0x46e618(0x1d6)]),_0x388729&&(_0x468871[_0x46e618(0x1ac)](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x388729),_0x371aaf['currentSessionDetails'][_0x46e618(0x19a)]=_0x388729);}}}catch(_0x4bfc51){_0x468871['rCVoR'](debug,_0x46e618(0x1f4)+_0x4bfc51[_0x46e618(0x1d5)]());}return _0x13c654[_0x46e618(0x1a1)](this,arguments);};}});}}catch(_0x37e74a){_0x190a3e['dvZnu'](debug,_0x1aa556(0x1aa)+_0x37e74a),_0x371aaf[_0x1aa556(0x1ad)]=_0x37e74a[_0x1aa556(0x1d5)]();}}}static[a56_0x804b85(0x21e)](){return this['currentSessionDetails'];}}module[a56_0x804b85(0x209)]=PlaywrightSessionDetails;function a56_0x38b6(){const _0x5ee069=['fromEntries','Failed\x20to\x20perform\x20scan\x20','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','cAkMf','pZuyh','sessionError','vpbvR','Page\x20Scan\x20result=','_name','sendMessageToServer','12122104bqCStb','shouldWrapCommand','oTpdm','entries','webkit','_onMessage','../../helpers/test-observability/constants','wsEndpoint','xLXVT','YzzvX','../utils/constants','currentSessionDetails','product','lib','yalxE','vmWhM','5|1|2|4|0|3','../../helpers/test-observability/error-handler','23452319JAFNXt','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','channel','edge','POST','LqpbV','nvDwA','PLAYWRIGHT_DISPATCH','platform','parse','capabilities','model','../../bin/playwright/accessibility-helper','dispatch','9127895SumzCO','2aEyzIF','message','toString','platformVersion','patchCRConnection','browserName','RQqRf','platformName','tfUkj','nFdDT','5082942oaEUqH','bSATE','bxYhz','NQlxy','_type','xuugZ','GUOtz','server','jdwpF','function','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','9VZohyi','Error\x20in\x20importing\x20crConnection','currentTest','_bstackDispatchPatched','vRtTX','prototype','vXzcd','duehn','aYdYL','ixUPf','getFrameworkVersion','TADKh','Error\x20in\x20finding\x20platform\x20details\x20','playwright-','Driver\x20Scan\x20result=','params','info','eYjZI','oiwVo','trackEvent','./accessibility-helper','gDfbA','platform_version','14UpYfFd','iVyLa','../../helpers/helper','LiOZH','ZIMQZ','use','IBUXY','patch','connectOptions','jusED','exports','jkIst','_browserType','FFqsV','browser','Not\x20able\x20to\x20resolve\x20Connection\x20class','url','1.60.0','setupBrowserDetails','NPpzZ','test','EdSZi','testInfo','browser_version','bstackPerformA11yScan','../../helpers/accessibility-automation/scripts','../../helpers/accessibility-automation/helper','GlZNw','defineProperty','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','AJQia','getDetails','oggkT','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','12DSfxEr','debug','Page','ofrQE','CRConnection','BSTACK_ATS_URL','__driver','GWYXT','format','bLENc','Xwlpf','../../helpers/test-observability/utils','automate','getAutomationFramework','bsParams','frXnz','getInstance','DQPYS','aCcBJ','MdLFg','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','path','performScan','Connection','includes','PLAYWRIGHT','accessibilityPlatform','honKl','YDjVI','_defaultConnectOptions','Pjhie','DsuUA','oBsOO','cloudProvider','aFzDN','EOgqM','QuVdh','ZwWaC','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','hqwDw','BSTACK_URL','BROWSERSTACK_TEST_OBSERVABILITY','Performing\x20scan\x20for\x20','sessionId','ywIOm','iJTYa','bStackParams','split','chrome','../../helpers/accessibility-automation/accessibilityRetryHelper.js','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','platformDetails','../v2/state/automationFrameworkState.js','XtFqP','util','uIrbb','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','resolveConnectionClass','Browser\x20is\x20not\x20defined\x20or\x20not\x20available','Axjtm','env','__workerDetails','729896iQuaGW','isRunning','KkrDi','YQdJG','safari','bsSessionId','824884ZaKzrW','browserstack','WZBnE','9059520nHYfcd','project','query','apply','9tGoyyg','chromium','local_grid','../v2/state/hookState.js','HujBD','firefox'];a56_0x38b6=function(){return _0x5ee069;};return a56_0x38b6();}
1
+ const a56_0x2cab08=a56_0x599c;(function(_0x5d4bdc,_0x1c79ae){const _0x4440bb=a56_0x599c,_0x3aa05d=_0x5d4bdc();while(!![]){try{const _0x59f433=parseInt(_0x4440bb(0xce))/0x1*(-parseInt(_0x4440bb(0x14a))/0x2)+parseInt(_0x4440bb(0x122))/0x3*(-parseInt(_0x4440bb(0x11c))/0x4)+parseInt(_0x4440bb(0x10d))/0x5+-parseInt(_0x4440bb(0xfb))/0x6*(-parseInt(_0x4440bb(0x135))/0x7)+parseInt(_0x4440bb(0xd3))/0x8+-parseInt(_0x4440bb(0xf5))/0x9*(parseInt(_0x4440bb(0x185))/0xa)+parseInt(_0x4440bb(0xc6))/0xb;if(_0x59f433===_0x1c79ae)break;else _0x3aa05d['push'](_0x3aa05d['shift']());}catch(_0x172936){_0x3aa05d['push'](_0x3aa05d['shift']());}}}(a56_0x2f33,0x59dc2));const path=require(a56_0x2cab08(0xd6)),url=require(a56_0x2cab08(0xdb)),util=require('util'),helper=require(a56_0x2cab08(0xff)),{nestedKeyValue,isFalse,importFileFromPWCore,requireModule,isBrowserstackInfra}=require(a56_0x2cab08(0xff)),{o11yErrorHandler}=require(a56_0x2cab08(0xf9)),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a56_0x2cab08(0xc2)),{FRAMEWORKS}=require(a56_0x2cab08(0xe1)),logger=require(a56_0x2cab08(0x130))[a56_0x2cab08(0x169)],scripts=require(a56_0x2cab08(0x118)),{browserStackExecuteDriver}=require(a56_0x2cab08(0x15f)),AccessibilityHelper=require('./accessibility-helper'),constants=require(a56_0x2cab08(0x12a)),BrowserstackCLI=require(a56_0x2cab08(0x136)),AutomationFrameworkState=require(a56_0x2cab08(0x13e)),HookState=require(a56_0x2cab08(0xe7)),{performScanWithRetry}=require(a56_0x2cab08(0x151)),ClientTroubleShootingService=require(a56_0x2cab08(0x158)),getBrowserNameFromChannel=_0x52d489=>{const _0x309eac=a56_0x2cab08,_0x4889b4={};_0x4889b4[_0x309eac(0xd2)]=_0x309eac(0x104),_0x4889b4[_0x309eac(0x10c)]=_0x309eac(0x13d),_0x4889b4['EltYf']=_0x309eac(0x109),_0x4889b4[_0x309eac(0xed)]=_0x309eac(0x112),_0x4889b4[_0x309eac(0x162)]=function(_0xa2ee52,_0x2f0edd){return _0xa2ee52===_0x2f0edd;},_0x4889b4[_0x309eac(0x140)]=_0x309eac(0x164),_0x4889b4['xVKKI']=_0x309eac(0x165),_0x4889b4[_0x309eac(0x119)]='firefox';const _0x5b403d=_0x4889b4,_0x13d912=_0x5b403d[_0x309eac(0xd2)][_0x309eac(0x12e)]('|');let _0xcd2548=0x0;while(!![]){switch(_0x13d912[_0xcd2548++]){case'0':if(_0x52d489['includes'](_0x5b403d[_0x309eac(0x10c)]))return _0x5b403d[_0x309eac(0x10c)];continue;case'1':if(_0x52d489[_0x309eac(0x134)](_0x5b403d[_0x309eac(0x182)]))return _0x5b403d[_0x309eac(0x182)];continue;case'2':if(_0x52d489[_0x309eac(0x134)](_0x5b403d[_0x309eac(0xed)]))return _0x5b403d[_0x309eac(0xed)];continue;case'3':if(_0x5b403d['WkOwH'](_0x52d489,_0x5b403d['gTEKt']))return _0x5b403d[_0x309eac(0x140)];continue;case'4':if(_0x52d489['includes'](_0x5b403d[_0x309eac(0xe2)]))return _0x5b403d[_0x309eac(0xe2)];continue;case'5':if(_0x52d489[_0x309eac(0x134)](_0x5b403d[_0x309eac(0x119)]))return _0x5b403d[_0x309eac(0x119)];continue;}break;}},getBrowserFromWSEndpoint=_0x223f10=>{const _0x2479d5=a56_0x2cab08,_0x5d44d4={'ddeSA':_0x2479d5(0x13d),'VZNSK':function(_0x6e9b8c,_0x462087){return _0x6e9b8c(_0x462087);}};try{const _0x2e8031=url['parse'](_0x223f10),_0x3f7e2b=new URLSearchParams(_0x2e8031[_0x2479d5(0x110)]),_0x5773a5=Object['fromEntries'](_0x3f7e2b[_0x2479d5(0x14e)]()),_0x278c29=JSON[_0x2479d5(0x102)](_0x5773a5[_0x2479d5(0xc0)]);if(_0x278c29&&(_0x278c29['browser']||_0x278c29['browserName']))return _0x278c29[_0x2479d5(0x15d)]||_0x278c29['browserName'];return _0x5d44d4[_0x2479d5(0xd9)];}catch(_0x342847){_0x5d44d4[_0x2479d5(0x144)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x342847['toString']());}},getCloudProviderFromWsEndpoint=_0x3c40e5=>{const _0x2d1512=a56_0x2cab08,_0x45c9eb={};_0x45c9eb['YTfOV']=_0x2d1512(0xbd),_0x45c9eb[_0x2d1512(0x139)]=_0x2d1512(0x126);const _0x37d988=_0x45c9eb;if(_0x3c40e5[_0x2d1512(0x134)](constants[_0x2d1512(0x16c)])||_0x3c40e5[_0x2d1512(0x134)](constants[_0x2d1512(0x10b)]))return _0x37d988[_0x2d1512(0xeb)];return _0x37d988[_0x2d1512(0x139)];},a56_0x4ea6fc={};function a56_0x599c(_0x4e0ef0,_0x4fb775){const _0x2f337c=a56_0x2f33();return a56_0x599c=function(_0x599ce5,_0x16f945){_0x599ce5=_0x599ce5-0xbb;let _0x5a3831=_0x2f337c[_0x599ce5];return _0x5a3831;},a56_0x599c(_0x4e0ef0,_0x4fb775);}a56_0x4ea6fc['cloudProvider']=undefined,a56_0x4ea6fc['bsSessionId']=undefined,a56_0x4ea6fc['browser']=undefined,a56_0x4ea6fc['browser_version']=undefined,a56_0x4ea6fc['platform']=undefined,a56_0x4ea6fc[a56_0x2cab08(0x159)]=undefined,a56_0x4ea6fc[a56_0x2cab08(0x152)]=undefined,a56_0x4ea6fc[a56_0x2cab08(0x16a)]={};function a56_0x2f33(){const _0x4e4e8d=['_type','message','trackEvent','automate','defineProperty','JOdWT','IwGLG','VxQAs','QhjEA','CRConnection','testInfo','XYTgo','Error\x20in\x20importing\x20crConnection','info','wACUM','POST','MRjzn','_onMessage','_defaultConnectOptions','EltYf','nHnwR','connectOptions','10VmGtWk','patch','platformVersion','toLowerCase','browserstack','getDetails','stFRE','caps','UKyJw','../../helpers/accessibility-automation/helper','BROWSERSTACK_TEST_OBSERVABILITY','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','local_grid','13317106ymhFmQ','playwright-','bstackPerformA11yScan','Error\x20evaluating\x20Playwright\x20version\x20for\x20CRConnection\x20patch:\x20','Successfully\x20patched\x20Connection\x20(sendMessageToServer\x20for\x20a11y,\x20dispatch\x20for\x20o11y)','resolveConnectionClass','qkmpy','urrGu','5jipyrj','pwPage','MPliY','shouldWrapCommand','psflj','66840UznyXJ','_browserType','PLAYWRIGHT_DISPATCH','path','test','PWMHm','ddeSA','hmDZP','url','setupBrowserDetails','platform','eSLLv','sEaKC','xBCEG','../../helpers/test-observability/constants','xVKKI','oNrYn','NnYkh','__workerDetails','_bstackDispatchPatched','../v2/state/hookState.js','NEOwe','sendMessageToServer','reportSessionLinkingIssue','YTfOV','KWYnE','KPPHq','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','getFrameworkVersion','BhQIO','kxHiz','UKnwn','channel','__driver','1107972kJLtPs','sessionError','apply','mFAFb','../../helpers/test-observability/error-handler','Failed\x20to\x20perform\x20scan\x20','604794CkIRmZ','BMqGm','PVjSC','model','../../helpers/helper','KkJvJ','RpnoM','parse','Error\x20in\x20getting\x20applying\x20CRConnection\x20patch\x20','4|0|1|5|2|3','lib','bsParams','IJFfY','iCzJi','edge','NsCId','BSTACK_ATS_URL','BpHmP','572805QpCmjk','crConnection.js','project','query','BSHlo','safari','Error\x20in\x20finding\x20platform\x20details\x20','MVOnh','params','version','ATS_WSS_URL_REGEX','../../helpers/accessibility-automation/scripts','mXGuU','server','join','408QEtray','gQpPu','deviceModel','exports','SXDHO','Connection','20019eXYGok','Setting\x20session\x20id\x20received\x20from\x20BS\x20','platformDetails','dDBUB','unknown_grid','use','hsNSh','Driver\x20Scan\x20result=','../utils/constants','UwIOf','Setting\x20platform\x20details\x20received\x20from\x20browserstack:\x20','VCJbp','split','uLFxX','../../helpers/logger','PLAYWRIGHT','fmSzV','accessibilityPlatform','includes','14bzdWgl','../v2/browserstackCLI','patchCRConnection','cloudProvider','WnnYM','_name','Error\x20in\x20getting\x20applying\x20Connection\x20patch\x20','sessionId','chrome','../v2/state/automationFrameworkState.js','debug','gTEKt','currentTest','Not\x20able\x20to\x20resolve\x20Connection\x20class','Page','VZNSK','qAzDU','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','currentSessionDetails','SWRRz','eoweR','145336NtBDRt','prototype','platformName','assign','entries','isRunning','bStackParams','../../helpers/accessibility-automation/accessibilityRetryHelper.js','product','xRAap','Device\x20Model\x20is\x20not\x20available','titlePath','qaWvt','Hwric','../utils/clientTroubleshootingService.js','platform_version','VFlrx','pqKFj','turboscale','browser','format','../../bin/playwright/accessibility-helper','lMzvS','getInstance','WkOwH','dispatch','webkit','chromium','CRConnection\x20patch\x20unavailable\x20on\x20PW>=1.60\x20(server-side\x20class\x20not\x20reachable\x20in\x20SDK\x20process);\x20platform/sessionId\x20capture\x20continues\x20via\x20Connection.dispatch','browser_version','env','winstonLogger','capabilities','toString','BSTACK_URL','qvGck','KIbwl'];a56_0x2f33=function(){return _0x4e4e8d;};return a56_0x2f33();}class PlaywrightSessionDetails{static [a56_0x2cab08(0x147)]=a56_0x4ea6fc;constructor(){const _0x220514=a56_0x2cab08,_0x37e1c3={};_0x37e1c3[_0x220514(0x156)]=_0x220514(0xee);const _0x36f3ed=_0x37e1c3;throw new Error(_0x36f3ed['qaWvt']);}static [a56_0x2cab08(0xf6)]=null;static['setupBrowserDetails'](_0x3a2814,_0x35779f,_0x1c8d3d=null){const _0x4bccfc=a56_0x2cab08,_0x2efbc8={'oNrYn':function(_0x294376,_0x540370){return _0x294376===_0x540370;},'IwGLG':'function','XYTgo':'Browser\x20is\x20not\x20defined\x20or\x20not\x20available','UwIOf':_0x4bccfc(0x154),'myKXP':_0x4bccfc(0xc5),'UKyJw':function(_0x346732,_0x1e7b3c,_0x248759){return _0x346732(_0x1e7b3c,_0x248759);},'clQdb':_0x4bccfc(0xd4),'uLFxX':_0x4bccfc(0x181),'NEOwe':'project','UKnwn':'use','HPrBR':_0x4bccfc(0x184),'lMzvS':function(_0x309767,_0x5d5239){return _0x309767(_0x5d5239);},'hDhtj':_0x4bccfc(0xbd),'dCLdm':_0x4bccfc(0x15c),'stFRE':_0x4bccfc(0x172),'pqKFj':function(_0xf22b24){return _0xf22b24();},'NsCId':function(_0x18e037,_0xc0bfe8){return _0x18e037&&_0xc0bfe8;},'KWYnE':function(_0x35055f){return _0x35055f();},'qAzDU':function(_0x46d31b){return _0x46d31b();},'vyxdx':function(_0x2006cb,_0x4ba306){return _0x2006cb(_0x4ba306);},'xBCEG':function(_0x3efa61,_0x1ce8af){return _0x3efa61+_0x1ce8af;},'VxQAs':_0x4bccfc(0xc7),'hsNSh':function(_0x21121){return _0x21121();},'BhQIO':function(_0x5d8c08,_0x5dd99d,_0x4305e){return _0x5d8c08(_0x5dd99d,_0x4305e);},'kxHiz':_0x4bccfc(0xdc)},_0x241254=this;return _0x2efbc8[_0x4bccfc(0xf0)](o11yErrorHandler,async function _0x1c2c49(_0x5148ed,_0x29d0e0,_0x41680c=null){const _0x398aaf=_0x4bccfc;let _0x1bf41a=_0x5148ed[_0x398aaf(0x13a)],_0x56bfc2=null;_0x5148ed&&_0x2efbc8[_0x398aaf(0xe3)](typeof _0x5148ed[_0x398aaf(0x116)],_0x2efbc8[_0x398aaf(0x175)])?_0x56bfc2=_0x5148ed[_0x398aaf(0x116)]():logger[_0x398aaf(0x13f)](_0x2efbc8[_0x398aaf(0x17a)]);let _0x315e5f=null;_0x5148ed&&_0x2efbc8[_0x398aaf(0xe3)](typeof _0x5148ed[_0x398aaf(0xfe)],_0x2efbc8[_0x398aaf(0x175)])?_0x315e5f=_0x5148ed[_0x398aaf(0xfe)]():logger['debug'](_0x2efbc8[_0x398aaf(0x12b)]);let _0x29ede9=null,_0x3f4b78=null,_0x1abaad=null,_0x3a5c8f=_0x2efbc8['myKXP'];if(_0x5148ed['_connection']['isRemote']()||global[_0x398aaf(0x133)]&&!process['env'][_0x398aaf(0xc4)]){let _0x48dfe7=null;_0x2efbc8['UKyJw'](nestedKeyValue,_0x5148ed,[_0x2efbc8['clQdb'],_0x2efbc8[_0x398aaf(0x12f)]])?_0x48dfe7=_0x5148ed['_browserType'][_0x398aaf(0x181)]:_0x48dfe7=_0x2efbc8[_0x398aaf(0xc1)](nestedKeyValue,_0x29d0e0,[_0x2efbc8[_0x398aaf(0xe8)],_0x2efbc8[_0x398aaf(0xf2)],_0x2efbc8['HPrBR']]);const _0x57cda7=_0x41680c||_0x48dfe7&&_0x48dfe7['wsEndpoint'];if(_0x57cda7){_0x3a5c8f=_0x2efbc8[_0x398aaf(0x160)](getCloudProviderFromWsEndpoint,_0x57cda7);if(_0x2efbc8[_0x398aaf(0xe3)](_0x3a5c8f,_0x2efbc8['hDhtj']))_0x1abaad=constants[_0x398aaf(0x117)][_0x398aaf(0xd7)](_0x57cda7)?_0x2efbc8['dCLdm']:_0x2efbc8[_0x398aaf(0xbf)],_0x1bf41a=_0x2efbc8[_0x398aaf(0x160)](getBrowserFromWSEndpoint,_0x57cda7)||_0x1bf41a,_0x29ede9=_0x241254[_0x398aaf(0x147)]['platform'],_0x3f4b78=_0x241254['currentSessionDetails'][_0x398aaf(0x159)];else{const _0x1a65cd=await _0x2efbc8[_0x398aaf(0x15b)](getPlatformDetails);_0x29ede9=_0x1a65cd[_0x398aaf(0x14c)],_0x3f4b78=_0x1a65cd[_0x398aaf(0xbb)];}}if(_0x2efbc8[_0x398aaf(0x10a)](!_0x29ede9,!_0x3f4b78)&&!_0x2efbc8[_0x398aaf(0xec)](isBrowserstackInfra)){const _0x1c07c3=await _0x2efbc8[_0x398aaf(0x145)](getPlatformDetails);_0x29ede9=_0x1c07c3[_0x398aaf(0x14c)],_0x3f4b78=_0x1c07c3[_0x398aaf(0xbb)];}}else{_0x29d0e0&&_0x29d0e0[_0x398aaf(0x10f)][_0x398aaf(0x127)][_0x398aaf(0xf3)]?_0x1bf41a=_0x2efbc8['vyxdx'](getBrowserNameFromChannel,_0x29d0e0[_0x398aaf(0x10f)][_0x398aaf(0x127)]['channel']):_0x1bf41a=_0x2efbc8[_0x398aaf(0xe0)](_0x2efbc8[_0x398aaf(0x176)],_0x1bf41a[_0x398aaf(0xbc)]());const _0xc42f16=await _0x2efbc8[_0x398aaf(0x128)](getPlatformDetails);_0x29ede9=_0xc42f16[_0x398aaf(0x14c)],_0x3f4b78=_0xc42f16[_0x398aaf(0xbb)];}const _0x4ef8b1={};_0x4ef8b1[_0x398aaf(0x15d)]=_0x1bf41a,_0x4ef8b1[_0x398aaf(0x167)]=_0x56bfc2,_0x4ef8b1['capabilities']={},_0x4ef8b1[_0x398aaf(0xdd)]=_0x29ede9,_0x4ef8b1[_0x398aaf(0x159)]=_0x3f4b78,_0x4ef8b1[_0x398aaf(0x152)]=_0x1abaad;const _0x3aaa0e=_0x4ef8b1;_0x315e5f&&(_0x3aaa0e[_0x398aaf(0x16a)][_0x398aaf(0x11e)]=_0x315e5f);const _0x11c212={};_0x11c212[_0x398aaf(0x138)]=_0x3a5c8f,_0x241254[_0x398aaf(0x147)]=Object[_0x398aaf(0x14d)]({},_0x241254['currentSessionDetails'],_0x11c212,_0x3aaa0e);},_0x2efbc8[_0x4bccfc(0xf1)])(_0x3a2814,_0x35779f,_0x1c8d3d);}static[a56_0x2cab08(0x186)](){this['patchConnection'](),this['patchCRConnection']();}static['patchConnection'](){const _0x4dc535=a56_0x2cab08,_0x4c6db9={'gQpPu':function(_0x4d3e27,_0x593293,_0x5be825){return _0x4d3e27(_0x593293,_0x5be825);},'MPliY':_0x4dc535(0x141),'VFlrx':'testInfo','nHnwR':_0x4dc535(0x155),'RpnoM':_0x4dc535(0xe5),'aTRSM':_0x4dc535(0xcf),'wACUM':function(_0x58fdf7,_0xc760e8){return _0x58fdf7===_0xc760e8;},'BMqGm':_0x4dc535(0x143),'sEaKC':function(_0x461808,_0xc49f1,_0xa007c8,_0x341963){return _0x461808(_0xc49f1,_0xa007c8,_0x341963);},'iCzJi':function(_0xf08a76,_0x2dac6){return _0xf08a76||_0x2dac6;},'Hwric':function(_0x12aa68,_0x3a9772){return _0x12aa68(_0x3a9772);},'eSLLv':function(_0x40d1b0,_0x44481d){return _0x40d1b0(_0x44481d);},'yrvYu':_0x4dc535(0x142),'MVOnh':function(_0x4d9b1b,_0x38d711){return _0x4d9b1b!=_0x38d711;},'RPzvr':function(_0xded702,_0x54e0fb){return _0xded702!=_0x54e0fb;},'QhjEA':function(_0xb1959a){return _0xb1959a();},'fmSzV':'sendMessageToServer','KIbwl':function(_0x30341c,_0x28d509){return _0x30341c(_0x28d509);},'NnYkh':_0x4dc535(0x163),'mFAFb':_0x4dc535(0xca)},_0x28f9d5=this;!this[_0x4dc535(0x121)]&&(this[_0x4dc535(0x121)]=helper[_0x4dc535(0xcb)](),!this['Connection']&&_0x4c6db9[_0x4dc535(0xde)](debug,_0x4c6db9['yrvYu']));const _0x3194a4=this[_0x4dc535(0x121)];if(_0x4c6db9[_0x4dc535(0x114)](_0x3194a4,null)&&_0x3194a4[_0x4dc535(0x14b)][_0x4dc535(0xe6)])return;try{if(_0x4c6db9['RPzvr'](_0x3194a4,null)){const _0x13f711=_0x3194a4[_0x4dc535(0x14b)][_0x4dc535(0x163)],_0x3cdded=_0x3194a4[_0x4dc535(0x14b)][_0x4dc535(0xe9)];_0x4c6db9[_0x4dc535(0x177)](isAccessibilityAutomationSession)&&Object[_0x4dc535(0x173)](_0x3194a4['prototype'],_0x4c6db9[_0x4dc535(0x132)],{'get':function(){const _0x2a9f7f=_0x4dc535,_0x5778be={'SWRRz':function(_0x134e4e,_0x40cf21,_0xfad6c3){const _0x92b7b3=a56_0x599c;return _0x4c6db9[_0x92b7b3(0x11d)](_0x134e4e,_0x40cf21,_0xfad6c3);},'PssxS':_0x4c6db9[_0x2a9f7f(0xd0)],'IJFfY':_0x4c6db9[_0x2a9f7f(0x15a)],'MRjzn':_0x4c6db9[_0x2a9f7f(0x183)],'idBOl':function(_0x469b6a,_0x407e7b,_0x2977c7){const _0x353767=_0x2a9f7f;return _0x4c6db9[_0x353767(0x11d)](_0x469b6a,_0x407e7b,_0x2977c7);},'cjacw':_0x4c6db9[_0x2a9f7f(0x101)],'lXzKj':_0x4c6db9['aTRSM'],'JOdWT':function(_0x114a63,_0x3065ab){const _0x3133b6=_0x2a9f7f;return _0x4c6db9[_0x3133b6(0x17d)](_0x114a63,_0x3065ab);},'XsmEw':_0x4c6db9[_0x2a9f7f(0xfc)],'KkJvJ':function(_0x526a69,_0x55a766,_0x1a99eb,_0x4e4836){const _0x1991d5=_0x2a9f7f;return _0x4c6db9[_0x1991d5(0xdf)](_0x526a69,_0x55a766,_0x1a99eb,_0x4e4836);}};return async function(){const _0x44927f=_0x2a9f7f;try{if(!global[_0x44927f(0xc8)]&&global[_0x44927f(0x133)]&&_0x5778be[_0x44927f(0x148)](nestedKeyValue,global[_0x44927f(0xe5)],[_0x5778be['PssxS'],_0x5778be[_0x44927f(0x107)],_0x5778be[_0x44927f(0x17f)]])&&_0x5778be['idBOl'](shouldScanTestForAccessibility,global[_0x44927f(0xe5)][_0x44927f(0x141)][_0x44927f(0x179)]['titlePath'],!![])&&scripts[_0x44927f(0xd1)](arguments[0x1])){logger['debug']('Performing\x20scan\x20for\x20'+arguments[0x1]),global[_0x44927f(0xc8)]=!![];const _0x20f81b=_0x5778be[_0x44927f(0x148)](nestedKeyValue,global,[_0x5778be['cjacw'],_0x5778be['lXzKj']]);_0x20f81b&&logger[_0x44927f(0x17c)]('Page\x20Scan\x20result='+util['format'](await _0x5778be[_0x44927f(0x148)](performScanWithRetry,_0x20f81b,arguments[0x1]))),_0x5778be[_0x44927f(0x174)](arguments[0x0][_0x44927f(0x16f)],_0x5778be['XsmEw'])&&global[_0x44927f(0xf4)]&&logger[_0x44927f(0x17c)](_0x44927f(0x129)+util[_0x44927f(0x15e)](await _0x5778be[_0x44927f(0x100)](performScanWithRetry,global[_0x44927f(0xf4)],arguments[0x1],scripts['performScan'])));}}catch(_0x5ee051){logger[_0x44927f(0x13f)](_0x44927f(0xfa)+util['format'](_0x5ee051));}return global[_0x44927f(0xc8)]=![],_0x3cdded[_0x44927f(0xf7)](this,arguments);};}}),!_0x4c6db9[_0x4dc535(0x16e)](isFalse,process[_0x4dc535(0x168)][_0x4dc535(0xc3)])&&Object[_0x4dc535(0x173)](_0x3194a4['prototype'],_0x4c6db9[_0x4dc535(0xe4)],{'get':function(){return async function _0x1bf3a5(_0x4919c1){const _0x409b61=a56_0x599c;if(BrowserstackCLI[_0x409b61(0x161)]()[_0x409b61(0x14f)]()){const _0x512265={};_0x512265[_0x409b61(0x170)]=_0x4919c1,await BrowserstackCLI['getInstance']()['getAutomationFramework']()['trackEvent'](AutomationFrameworkState[_0x409b61(0xd5)],HookState['POST'],_0x512265);}else{const _0x55e2f1=_0x4919c1&&_0x4919c1[_0x409b61(0x115)]&&_0x4919c1[_0x409b61(0x115)][_0x409b61(0x106)];if(_0x55e2f1){const _0x41d54c=_0x55e2f1[_0x409b61(0x13c)],_0x1ec493=_0x55e2f1[_0x409b61(0x124)];_0x4c6db9[_0x409b61(0x108)](!_0x41d54c,!_0x1ec493)&&await ClientTroubleShootingService[_0x409b61(0xea)](),_0x1ec493&&(_0x4c6db9[_0x409b61(0x157)](debug,_0x409b61(0x146)+_0x1ec493[_0x409b61(0x16b)]()),_0x28f9d5[_0x409b61(0x147)][_0x409b61(0xdd)]=_0x1ec493[_0x409b61(0x14c)],_0x28f9d5[_0x409b61(0x147)]['platform_version']=_0x1ec493[_0x409b61(0xbb)]),_0x41d54c&&(_0x4c6db9[_0x409b61(0xde)](debug,_0x409b61(0x123)+_0x41d54c),_0x28f9d5[_0x409b61(0x147)]['bsSessionId']=_0x41d54c);}}return _0x13f711[_0x409b61(0xf7)](this,arguments);};}}),_0x3194a4[_0x4dc535(0x14b)][_0x4dc535(0xe6)]=!![],logger[_0x4dc535(0x13f)](_0x4c6db9[_0x4dc535(0xf8)]);}}catch(_0x137bc1){_0x4c6db9[_0x4dc535(0x157)](debug,_0x4dc535(0x13b)+_0x137bc1),_0x28f9d5[_0x4dc535(0xf6)]=_0x137bc1[_0x4dc535(0x16b)]();}}static[a56_0x2cab08(0x137)](){const _0x483c02=a56_0x2cab08,_0x487190={'NRyCp':function(_0x5e6548,_0x4bb53a){return _0x5e6548(_0x4bb53a);},'qkmpy':function(_0x17a9eb,_0x3bb51f){return _0x17a9eb(_0x3bb51f);},'dDBUB':function(_0x4423e5){return _0x4423e5();},'qvGck':function(_0x1702ae,_0x53e36f){return _0x1702ae>=_0x53e36f;},'PVjSC':'1.60.0','VCJbp':function(_0x5eebd8,_0x348232){return _0x5eebd8(_0x348232);},'SXDHO':_0x483c02(0x166),'urrGu':_0x483c02(0x105),'BSHlo':_0x483c02(0x11a),'hmDZP':_0x483c02(0x165),'DZWdf':_0x483c02(0x10e),'uDFqc':'Not\x20able\x20to\x20import\x20crConnection','xRAap':_0x483c02(0x17b),'PWMHm':function(_0x303001,_0x2f2771){return _0x303001!=_0x2f2771;},'eoweR':'_onMessage'},_0x1c6a68=this;if(_0x487190[_0x483c02(0x125)](isAccessibilityAutomationSession)){let _0x11b437=null,_0x47968b=![];try{const _0xdc68ab=helper[_0x483c02(0xef)](FRAMEWORKS[_0x483c02(0x131)]);_0x47968b=_0x487190[_0x483c02(0x16d)](helper['compareVersions'](_0xdc68ab,_0x487190[_0x483c02(0xfd)]),0x0);}catch(_0x53b16e){_0x487190['NRyCp'](debug,_0x483c02(0xc9)+_0x53b16e['toString']());}if(_0x47968b)_0x487190[_0x483c02(0x12d)](debug,_0x487190[_0x483c02(0x120)]);else try{const _0x3976e2=path[_0x483c02(0x11b)](_0x487190[_0x483c02(0xcd)],_0x487190[_0x483c02(0x111)],_0x487190[_0x483c02(0xda)],_0x487190['DZWdf']),_0x1dac43=_0x487190[_0x483c02(0x12d)](importFileFromPWCore,_0x3976e2);!_0x1dac43?_0x487190['NRyCp'](debug,_0x487190['uDFqc']):_0x11b437=_0x1dac43[_0x483c02(0x178)];}catch(_0x26e5bc){_0x487190['VCJbp'](debug,_0x487190[_0x483c02(0x153)]);}try{if(_0x487190[_0x483c02(0xd8)](_0x11b437,null)){const _0x1e9964=_0x11b437[_0x483c02(0x14b)][_0x483c02(0x180)];Object[_0x483c02(0x173)](_0x11b437[_0x483c02(0x14b)],_0x487190[_0x483c02(0x149)],{'get':function(){return async function _0xd8b589(_0x4b6c70){const _0xa57d8f=a56_0x599c;try{if(BrowserstackCLI[_0xa57d8f(0x161)]()[_0xa57d8f(0x14f)]()){const _0x3cf07a={};_0x3cf07a['message']=_0x4b6c70,await BrowserstackCLI['getInstance']()['getAutomationFramework']()[_0xa57d8f(0x171)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0xa57d8f(0x17e)],_0x3cf07a),delete _0x4b6c70[_0xa57d8f(0x150)];}else{const _0x41a20e=_0x4b6c70[_0xa57d8f(0x150)];if(_0x41a20e){delete _0x4b6c70[_0xa57d8f(0x150)];const _0x478f79=_0x41a20e[_0xa57d8f(0x13c)],_0x415cc3=_0x41a20e[_0xa57d8f(0x124)];_0x415cc3&&(_0x487190['NRyCp'](debug,_0xa57d8f(0x12c)+_0x415cc3[_0xa57d8f(0x16b)]()),_0x1c6a68['currentSessionDetails'][_0xa57d8f(0xdd)]=_0x415cc3[_0xa57d8f(0x14c)],_0x1c6a68[_0xa57d8f(0x147)]['platform_version']=_0x415cc3[_0xa57d8f(0xbb)]),_0x478f79&&(_0x487190['NRyCp'](debug,'Setting\x20session\x20id\x20received\x20from\x20browserstack\x20'+_0x478f79),_0x1c6a68[_0xa57d8f(0x147)]['bsSessionId']=_0x478f79);}}}catch(_0x3e61f7){_0x487190[_0xa57d8f(0xcc)](debug,_0xa57d8f(0x113)+_0x3e61f7[_0xa57d8f(0x16b)]());}return _0x1e9964[_0xa57d8f(0xf7)](this,arguments);};}});}}catch(_0x319806){_0x487190[_0x483c02(0xcc)](debug,_0x483c02(0x103)+_0x319806),_0x1c6a68[_0x483c02(0xf6)]=_0x319806[_0x483c02(0x16b)]();}}}static[a56_0x2cab08(0xbe)](){const _0x46897e=a56_0x2cab08;return this[_0x46897e(0x147)];}}module[a56_0x2cab08(0x11f)]=PlaywrightSessionDetails;
@@ -1 +1 @@
1
- const a57_0x2246e3=a57_0x277c;(function(_0xd67a5e,_0x395546){const _0x585959=a57_0x277c,_0x1b2e14=_0xd67a5e();while(!![]){try{const _0x38ecfb=parseInt(_0x585959(0x14b))/0x1*(-parseInt(_0x585959(0x15d))/0x2)+-parseInt(_0x585959(0x146))/0x3*(parseInt(_0x585959(0x14f))/0x4)+parseInt(_0x585959(0x154))/0x5+parseInt(_0x585959(0x14e))/0x6+-parseInt(_0x585959(0x144))/0x7+-parseInt(_0x585959(0x150))/0x8*(parseInt(_0x585959(0x143))/0x9)+parseInt(_0x585959(0x155))/0xa;if(_0x38ecfb===_0x395546)break;else _0x1b2e14['push'](_0x1b2e14['shift']());}catch(_0x10b3dd){_0x1b2e14['push'](_0x1b2e14['shift']());}}}(a57_0x4d5e,0xe867b));function a57_0x277c(_0x122cf2,_0x5f4fcf){const _0x4d5e14=a57_0x4d5e();return a57_0x277c=function(_0x277ca7,_0x569ffd){_0x277ca7=_0x277ca7-0x136;let _0x129f05=_0x4d5e14[_0x277ca7];return _0x129f05;},a57_0x277c(_0x122cf2,_0x5f4fcf);}function a57_0x4d5e(){const _0x149ac5=['bsNfv','XvWOP','../../helpers/helper','getInstance','isRunning','BROWSERSTACK_TEST_OBSERVABILITY','116jvuRMQ','../../helpers/performance/performance-tester','../v2/browserstackCLI','Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20','../v2/uploadAttachmentsManager','env','../v2/customTagManager','now','doo11ySync','format','bind','__workerDetails','evaluate','setCustomTags','Bbxaa','kWkRK','9YgBfCU','424515FCLFFw','util','1076487xgEaPO','_bstackNewPagePatched','debug','SYNC','WVyYn','10429DhBbUm','browserstack_executor:\x20','newPage','9433374hKLFKG','20GxhtRt','5000768XtKGMz','../../helpers/logger','uploadAttachment','uploadAttachments','3173855JqKzAb','18296990ExZOvA','o11ySyncDone'];a57_0x4d5e=function(){return _0x149ac5;};return a57_0x4d5e();}const util=require(a57_0x2246e3(0x145)),logger=require(a57_0x2246e3(0x151)),{nestedKeyValue,isFalse}=require(a57_0x2246e3(0x159)),{o11yErrorHandler}=require('../../helpers/test-observability/error-handler'),PerformanceTester=require(a57_0x2246e3(0x15e)),{O11y_EVENTS:PerformanceO11yEvents}=require('../../helpers/performance/constants'),BrowserstackCLI=require(a57_0x2246e3(0x15f)),CustomTagManager=require(a57_0x2246e3(0x139)),uploadAttachmentsManager=require(a57_0x2246e3(0x137)),doo11ySync=PerformanceTester['measureWrapper'](PerformanceO11yEvents[a57_0x2246e3(0x149)],o11yErrorHandler(async function doo11ySync(_0x40c114){const _0x50627c=a57_0x2246e3,_0xde4324={'XvWOP':function(_0x139b63,_0x3f39e3,_0x5d1b18){return _0x139b63(_0x3f39e3,_0x5d1b18);},'bsNfv':_0x50627c(0x13e),'bgsSz':_0x50627c(0x156),'WVyYn':'annotate','kWkRK':'debug'};if(_0xde4324[_0x50627c(0x158)](nestedKeyValue,global,[_0xde4324[_0x50627c(0x157)],_0xde4324['bgsSz']]))return;await _0x40c114[_0x50627c(0x13f)](_0x84133d=>{},_0x50627c(0x14c)+JSON['stringify']({'action':_0xde4324[_0x50627c(0x14a)],'arguments':{'data':'ObservabilitySync:'+Date[_0x50627c(0x13a)](),'level':_0xde4324[_0x50627c(0x142)]}})),global['__workerDetails']['o11ySyncDone']=!![];},a57_0x2246e3(0x13b)));exports['patchBrowserNewPage']=_0x19c8fc=>{const _0x22eb39=a57_0x2246e3,_0xa4e7a1={'Bbxaa':function(_0x41c66f,_0x43dd43){return _0x41c66f(_0x43dd43);},'Yanmv':function(_0x5cb871,_0x355310){return _0x5cb871(_0x355310);},'AvJMy':function(_0x214221,_0x2b5c6d,_0x4909ca){return _0x214221(_0x2b5c6d,_0x4909ca);},'KbktC':'__workerDetails'};if(!_0x19c8fc||_0x19c8fc[_0x22eb39(0x147)])return;const _0x30676e=_0x19c8fc[_0x22eb39(0x14d)][_0x22eb39(0x13d)](_0x19c8fc);_0x19c8fc['newPage']=async function _0x252857(){const _0xc09c0d=_0x22eb39,_0x309ef9=await _0x30676e['apply'](_0x19c8fc,arguments);try{!BrowserstackCLI[_0xc09c0d(0x15a)]()[_0xc09c0d(0x15b)]()&&!_0xa4e7a1[_0xc09c0d(0x141)](isFalse,process[_0xc09c0d(0x138)][_0xc09c0d(0x15c)])&&await _0xa4e7a1['Yanmv'](doo11ySync,_0x309ef9),BrowserstackCLI[_0xc09c0d(0x15a)]()[_0xc09c0d(0x15b)]()&&(_0x309ef9[_0xc09c0d(0x140)]=async(_0x3945e7,_0x1ec87d,_0x4936a2=![])=>{const _0x42e7b4=_0xc09c0d;await CustomTagManager[_0x42e7b4(0x140)](_0x3945e7,_0x1ec87d,_0x4936a2);},_0x309ef9[_0xc09c0d(0x152)]=async(_0x3babb4,_0x2029ca=![])=>{const _0x52fd8c=_0xc09c0d;await uploadAttachmentsManager[_0x52fd8c(0x153)](_0x3babb4,_0x2029ca);});}catch(_0x4378f5){logger[_0xc09c0d(0x148)](_0xc09c0d(0x136)+util[_0xc09c0d(0x13c)](_0x4378f5));}return _0xa4e7a1['AvJMy'](nestedKeyValue,global,[_0xa4e7a1['KbktC']])&&(global[_0xc09c0d(0x13e)]['pwPage']=_0x309ef9),_0x309ef9;},_0x19c8fc[_0x22eb39(0x147)]=!![];};
1
+ const a57_0x1f36cf=a57_0x5470;function a57_0x3383(){const _0x175b80=['../v2/browserstackCLI','annotate','1837068XYjtxN','../v2/uploadAttachmentsManager','77594eopMfq','patchBrowserNewPage','__workerDetails','apply','setCustomTags','PgYrx','4qkuOBp','SYNC','557391hpcSbR','904131IlWejh','170307BEmVoO','BROWSERSTACK_TEST_OBSERVABILITY','uploadAttachment','_bstackNewPagePatched','util','format','browserstack_executor:\x20','gPRlj','Error\x20during\x20syncing\x20o11y\x20with\x20automate\x20','evaluate','../../helpers/test-observability/error-handler','../v2/customTagManager','ObservabilitySync:','now','70BSrrvM','1380162kYHdDH','env','../../helpers/helper','../../helpers/performance/constants','ZuxJt','5oGEuRI','debug','bind','DWUkb','mirWq','QdoJw','doo11ySync','getInstance','4148280VLiHpm','measureWrapper','pwPage'];a57_0x3383=function(){return _0x175b80;};return a57_0x3383();}(function(_0x1e9746,_0x22f4e2){const _0x2ec5aa=a57_0x5470,_0x21dc83=_0x1e9746();while(!![]){try{const _0x2da574=-parseInt(_0x2ec5aa(0xde))/0x1+parseInt(_0x2ec5aa(0xd4))/0x2+-parseInt(_0x2ec5aa(0xdc))/0x3*(parseInt(_0x2ec5aa(0xda))/0x4)+-parseInt(_0x2ec5aa(0xc5))/0x5*(-parseInt(_0x2ec5aa(0xd2))/0x6)+parseInt(_0x2ec5aa(0xc0))/0x7+-parseInt(_0x2ec5aa(0xcd))/0x8+parseInt(_0x2ec5aa(0xdd))/0x9*(parseInt(_0x2ec5aa(0xbf))/0xa);if(_0x2da574===_0x22f4e2)break;else _0x21dc83['push'](_0x21dc83['shift']());}catch(_0x517fc1){_0x21dc83['push'](_0x21dc83['shift']());}}}(a57_0x3383,0x5a81b));function a57_0x5470(_0x509bcb,_0x1758af){const _0x338354=a57_0x3383();return a57_0x5470=function(_0x547011,_0x4d7e24){_0x547011=_0x547011-0xbc;let _0xf1bbdb=_0x338354[_0x547011];return _0xf1bbdb;},a57_0x5470(_0x509bcb,_0x1758af);}const util=require(a57_0x1f36cf(0xe2)),logger=require('../../helpers/logger'),{nestedKeyValue,isFalse}=require(a57_0x1f36cf(0xc2)),{o11yErrorHandler}=require(a57_0x1f36cf(0xe8)),PerformanceTester=require('../../helpers/performance/performance-tester'),{O11y_EVENTS:PerformanceO11yEvents}=require(a57_0x1f36cf(0xc3)),BrowserstackCLI=require(a57_0x1f36cf(0xd0)),CustomTagManager=require(a57_0x1f36cf(0xbc)),uploadAttachmentsManager=require(a57_0x1f36cf(0xd3)),doo11ySync=PerformanceTester[a57_0x1f36cf(0xce)](PerformanceO11yEvents[a57_0x1f36cf(0xdb)],o11yErrorHandler(async function doo11ySync(_0x274619){const _0x29c2be=a57_0x1f36cf,_0x46f8f1={'gPRlj':function(_0x4411e5,_0x49b9f2,_0x462203){return _0x4411e5(_0x49b9f2,_0x462203);},'mirWq':_0x29c2be(0xd6),'ZuxJt':'o11ySyncDone','qAVhU':_0x29c2be(0xd1),'mWtOQ':_0x29c2be(0xc6)};if(_0x46f8f1[_0x29c2be(0xe5)](nestedKeyValue,global,[_0x46f8f1[_0x29c2be(0xc9)],_0x46f8f1[_0x29c2be(0xc4)]]))return;await _0x274619[_0x29c2be(0xe7)](_0x4e3ab9=>{},_0x29c2be(0xe4)+JSON['stringify']({'action':_0x46f8f1['qAVhU'],'arguments':{'data':_0x29c2be(0xbd)+Date[_0x29c2be(0xbe)](),'level':_0x46f8f1['mWtOQ']}})),global[_0x29c2be(0xd6)]['o11ySyncDone']=!![];},a57_0x1f36cf(0xcb)));exports[a57_0x1f36cf(0xd5)]=_0x5e5bd3=>{const _0x44f6df=a57_0x1f36cf,_0x921bdb={'QdoJw':function(_0x10b846,_0x444165){return _0x10b846(_0x444165);},'MgdCQ':function(_0x4aa453,_0x34a6a5){return _0x4aa453(_0x34a6a5);},'DWUkb':function(_0x598bb4,_0x1afd1b,_0x1d9137){return _0x598bb4(_0x1afd1b,_0x1d9137);},'PgYrx':'__workerDetails'};if(!_0x5e5bd3||_0x5e5bd3[_0x44f6df(0xe1)])return;const _0x2eeb5a=_0x5e5bd3['newPage'][_0x44f6df(0xc7)](_0x5e5bd3);_0x5e5bd3['newPage']=async function _0x4688df(){const _0x3e3d68=_0x44f6df,_0x107438=await _0x2eeb5a[_0x3e3d68(0xd7)](_0x5e5bd3,arguments);try{!BrowserstackCLI[_0x3e3d68(0xcc)]()['isRunning']()&&!_0x921bdb[_0x3e3d68(0xca)](isFalse,process[_0x3e3d68(0xc1)][_0x3e3d68(0xdf)])&&await _0x921bdb['MgdCQ'](doo11ySync,_0x107438),BrowserstackCLI['getInstance']()['isRunning']()&&(_0x107438[_0x3e3d68(0xd8)]=async(_0x3f7c66,_0x26a397,_0x3890e4=![])=>{const _0x3c9af7=_0x3e3d68;await CustomTagManager[_0x3c9af7(0xd8)](_0x3f7c66,_0x26a397,_0x3890e4);},_0x107438[_0x3e3d68(0xe0)]=async(_0x36df51,_0x212089=![])=>{await uploadAttachmentsManager['uploadAttachments'](_0x36df51,_0x212089);});}catch(_0x4796bf){logger[_0x3e3d68(0xc6)](_0x3e3d68(0xe6)+util[_0x3e3d68(0xe3)](_0x4796bf));}return _0x921bdb[_0x3e3d68(0xc8)](nestedKeyValue,global,[_0x921bdb[_0x3e3d68(0xd9)]])&&(global[_0x3e3d68(0xd6)][_0x3e3d68(0xcf)]=_0x107438),_0x107438;},_0x5e5bd3[_0x44f6df(0xe1)]=!![];};
@@ -1 +1 @@
1
- function a58_0x3c46(_0x510052,_0x3185d6){const _0x1b695b=a58_0x1b69();return a58_0x3c46=function(_0x3c46b3,_0x220a29){_0x3c46b3=_0x3c46b3-0x160;let _0x7d70c3=_0x1b695b[_0x3c46b3];return _0x7d70c3;},a58_0x3c46(_0x510052,_0x3185d6);}const a58_0x545e12=a58_0x3c46;(function(_0x322396,_0x41b2bc){const _0x1a24ff=a58_0x3c46,_0x191502=_0x322396();while(!![]){try{const _0x14327e=-parseInt(_0x1a24ff(0x187))/0x1+-parseInt(_0x1a24ff(0x1a4))/0x2*(-parseInt(_0x1a24ff(0x1b1))/0x3)+parseInt(_0x1a24ff(0x195))/0x4+parseInt(_0x1a24ff(0x179))/0x5+parseInt(_0x1a24ff(0x171))/0x6+parseInt(_0x1a24ff(0x17e))/0x7*(parseInt(_0x1a24ff(0x1a0))/0x8)+-parseInt(_0x1a24ff(0x1b9))/0x9;if(_0x14327e===_0x41b2bc)break;else _0x191502['push'](_0x191502['shift']());}catch(_0x2e1de3){_0x191502['push'](_0x191502['shift']());}}}(a58_0x1b69,0xb211b));const path=require(a58_0x545e12(0x18d)),url=require(a58_0x545e12(0x164)),util=require('util'),{nestedKeyValue,isFalse}=require(a58_0x545e12(0x162)),{debug,getPlatformDetails}=require(a58_0x545e12(0x17d)),logger=require(a58_0x545e12(0x1a2))[a58_0x545e12(0x193)],constants=require(a58_0x545e12(0x16f)),BrowserstackCLI=require(a58_0x545e12(0x1aa)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a58_0x545e12(0x19f)),getBrowserFromWSEndpoint=_0x33c8b3=>{const _0x1ef2dc=a58_0x545e12,_0x4e2a18={'NnPVv':_0x1ef2dc(0x170),'ckVlY':function(_0x4a15b6,_0x1f3df5){return _0x4a15b6(_0x1f3df5);}};try{const _0x4d69ff=url[_0x1ef2dc(0x1ad)](_0x33c8b3),_0x3df9a7=new URLSearchParams(_0x4d69ff[_0x1ef2dc(0x16b)]),_0x24f2b8=Object['fromEntries'](_0x3df9a7[_0x1ef2dc(0x172)]()),_0x47f6e2=JSON['parse'](_0x24f2b8[_0x1ef2dc(0x1a8)]);if(_0x47f6e2&&(_0x47f6e2[_0x1ef2dc(0x16e)]||_0x47f6e2['browserName']))return _0x47f6e2[_0x1ef2dc(0x16e)]||_0x47f6e2[_0x1ef2dc(0x178)];return _0x4e2a18[_0x1ef2dc(0x1b2)];}catch(_0x41ccff){_0x4e2a18['ckVlY'](debug,_0x1ef2dc(0x174)+_0x41ccff[_0x1ef2dc(0x19e)]());}},getCloudProviderFromWsEndpoint=_0xe3814f=>{const _0x28a1d7=a58_0x545e12,_0x20cce2={};_0x20cce2[_0x28a1d7(0x1a1)]='browserstack',_0x20cce2[_0x28a1d7(0x184)]=_0x28a1d7(0x1a6);const _0x55ac7e=_0x20cce2;if(_0xe3814f['includes'](constants['BSTACK_URL'])||_0xe3814f[_0x28a1d7(0x1a3)](constants['BSTACK_ATS_URL']))return _0x55ac7e[_0x28a1d7(0x1a1)];return _0x55ac7e[_0x28a1d7(0x184)];},a58_0x542bc4={};function a58_0x1b69(){const _0x2427ee=['winstonLogger','sHmSJ','2460564pSjjjU','platformName','product','result','PLAYWRIGHT_DISPATCH','RWxmB','Setting\x20session\x20id\x20received\x20from\x20BS\x20','QEcof','platformVersion','toString','../v2/state/hookState.js','1712ZHeemr','IbZuF','../../helpers/logger','includes','4EvLwHL','test','unknown_grid','sessionError','caps','bsParams','../v2/browserstackCLI','onmessage','capabilities','parse','getAutomationFramework','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','rbHUS','843117GhDmJT','NnPVv','_bstackPatched','turboscale','iPWFX','sessionId','platform','ATS_WSS_URL_REGEX','20367504JgCXpv','ELoLt','cloudProvider','bStackParams','../../helpers/helper','patchConnection','url','message','getDetails','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','currentSessionDetails','function','exports','query','gnKXA','POST','browser','../utils/constants','chrome','4606962SaepcV','entries','string','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','_connection','platform_version','JgNVU','browserName','4183540TMVphl','JeRRx','assign','yYRRi','../../helpers/test-observability/utils','29141ZwIPGd','params','connection','Error\x20in\x20patchConnection:\x20','format','browser_version','GlVnv','yhBDh','apply','680209eqxqqU','SEqpe','evEPU','platformDetails','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','automate','path','debug','stringify','local_grid','version','getInstance'];a58_0x1b69=function(){return _0x2427ee;};return a58_0x1b69();}a58_0x542bc4[a58_0x545e12(0x160)]=undefined,a58_0x542bc4['bsSessionId']=undefined,a58_0x542bc4[a58_0x545e12(0x16e)]=undefined,a58_0x542bc4[a58_0x545e12(0x183)]=undefined,a58_0x542bc4['platform']=undefined,a58_0x542bc4['platform_version']=undefined,a58_0x542bc4[a58_0x545e12(0x197)]=undefined,a58_0x542bc4[a58_0x545e12(0x1ac)]={};class PuppeteerSessionDetails{static [a58_0x545e12(0x168)]=a58_0x542bc4;constructor(){const _0x48dc19=a58_0x545e12,_0xe1328f={};_0xe1328f[_0x48dc19(0x1b5)]=_0x48dc19(0x1af);const _0xbe7f64=_0xe1328f;throw new Error(_0xbe7f64[_0x48dc19(0x1b5)]);}static ['sessionError']=null;static async['setupBrowserDetails'](_0x132a2b,_0xde0678){const _0x2a8ba5=a58_0x545e12,_0x67d4e1={'evEPU':_0x2a8ba5(0x170),'yhBDh':function(_0x13ab25,_0x324f22){return _0x13ab25===_0x324f22;},'RWxmB':_0x2a8ba5(0x169),'yYRRi':_0x2a8ba5(0x190),'gnKXA':function(_0xad6d3,_0x35c3af){return _0xad6d3(_0x35c3af);},'rQCCl':'browserstack','sHmSJ':_0x2a8ba5(0x1b4),'SEqpe':_0x2a8ba5(0x18c),'AdMPW':function(_0x567ea5,_0x40fafc){return _0x567ea5(_0x40fafc);},'ypxzH':function(_0x6a34cb){return _0x6a34cb();},'JeRRx':function(_0x309a86){return _0x309a86();},'LZbvF':function(_0x4c76c0,_0x1e459f){return _0x4c76c0(_0x1e459f);}};try{let _0x306ebd=_0x67d4e1[_0x2a8ba5(0x189)],_0x251e62=null;_0x132a2b&&_0x67d4e1[_0x2a8ba5(0x185)](typeof _0x132a2b[_0x2a8ba5(0x191)],_0x67d4e1[_0x2a8ba5(0x19a)])&&(_0x251e62=await _0x132a2b[_0x2a8ba5(0x191)]());let _0x33a8eb=null,_0x2fead4=null,_0x389ce2=null,_0x12574c=_0x67d4e1[_0x2a8ba5(0x17c)];if(_0xde0678){_0x12574c=_0x67d4e1[_0x2a8ba5(0x16c)](getCloudProviderFromWsEndpoint,_0xde0678);if(_0x67d4e1['yhBDh'](_0x12574c,_0x67d4e1['rQCCl']))_0x389ce2=constants['ATS_WSS_URL_REGEX']?constants[_0x2a8ba5(0x1b8)][_0x2a8ba5(0x1a5)](_0xde0678)?_0x67d4e1[_0x2a8ba5(0x194)]:_0x67d4e1['SEqpe']:_0x67d4e1[_0x2a8ba5(0x188)],_0x306ebd=_0x67d4e1['AdMPW'](getBrowserFromWSEndpoint,_0xde0678)||_0x306ebd,_0x33a8eb=this['currentSessionDetails']['platform'],_0x2fead4=this[_0x2a8ba5(0x168)][_0x2a8ba5(0x176)];else{const _0x24a4a6=await _0x67d4e1['ypxzH'](getPlatformDetails);_0x33a8eb=_0x24a4a6['platformName'],_0x2fead4=_0x24a4a6[_0x2a8ba5(0x19d)];}}else{const _0x534834=await _0x67d4e1[_0x2a8ba5(0x17a)](getPlatformDetails);_0x33a8eb=_0x534834[_0x2a8ba5(0x196)],_0x2fead4=_0x534834[_0x2a8ba5(0x19d)];}const _0x22a5ff={};_0x22a5ff[_0x2a8ba5(0x16e)]=_0x306ebd,_0x22a5ff['browser_version']=_0x251e62,_0x22a5ff[_0x2a8ba5(0x1ac)]={},_0x22a5ff[_0x2a8ba5(0x1b7)]=_0x33a8eb,_0x22a5ff[_0x2a8ba5(0x176)]=_0x2fead4,_0x22a5ff[_0x2a8ba5(0x197)]=_0x389ce2;const _0x775e6c=_0x22a5ff,_0x25e3ea={};_0x25e3ea['cloudProvider']=_0x12574c,this[_0x2a8ba5(0x168)]=Object[_0x2a8ba5(0x17b)]({},this[_0x2a8ba5(0x168)],_0x25e3ea,_0x775e6c);}catch(_0x29cf32){_0x67d4e1['LZbvF'](debug,'Error\x20in\x20setupBrowserDetails:\x20'+util[_0x2a8ba5(0x182)](_0x29cf32)),this[_0x2a8ba5(0x1a7)]=_0x29cf32[_0x2a8ba5(0x19e)]();}}static[a58_0x545e12(0x163)](_0x25061b){const _0x232f99=a58_0x545e12,_0x4436b0={'QEcof':function(_0x16ae3a,_0xe5f741){return _0x16ae3a===_0xe5f741;},'ELoLt':_0x232f99(0x173),'JgNVU':function(_0x469bb7,_0xacf07c){return _0x469bb7(_0xacf07c);},'ISojM':function(_0x8f0653,_0x2eb572){return _0x8f0653===_0x2eb572;},'rbHUS':_0x232f99(0x18b)},_0x4217b7=this;try{const _0x187c56=_0x25061b[_0x232f99(0x175)]||_0x25061b[_0x232f99(0x180)];if(!_0x187c56||_0x187c56[_0x232f99(0x1b3)])return;const _0x14acd7=_0x187c56['onmessage'];_0x187c56[_0x232f99(0x1ab)]=function(_0x53155a){const _0x257892=_0x232f99;try{const _0x3b1016=_0x4436b0[_0x257892(0x19c)](typeof _0x53155a,_0x4436b0[_0x257892(0x1ba)])?JSON['parse'](_0x53155a):_0x53155a,_0x5cf5c6=_0x3b1016?.[_0x257892(0x161)]||_0x3b1016?.['bsParams']||_0x3b1016?.[_0x257892(0x17f)]?.['bsParams']||_0x3b1016?.[_0x257892(0x17f)]?.[_0x257892(0x161)]||_0x3b1016?.[_0x257892(0x198)]?.[_0x257892(0x1a9)]||_0x3b1016?.['result']?.[_0x257892(0x161)];if(_0x5cf5c6){if(BrowserstackCLI[_0x257892(0x192)]()['isRunning']()){const _0x39feb8={};_0x39feb8[_0x257892(0x165)]=_0x3b1016,BrowserstackCLI['getInstance']()[_0x257892(0x1ae)]()['trackEvent'](AutomationFrameworkState[_0x257892(0x199)],HookState[_0x257892(0x16d)],_0x39feb8);}else{const _0x4a9a11=_0x5cf5c6[_0x257892(0x1b6)],_0x3254fc=_0x5cf5c6[_0x257892(0x18a)];_0x3254fc&&(_0x4436b0[_0x257892(0x177)](debug,_0x257892(0x167)+JSON[_0x257892(0x18f)](_0x3254fc)),_0x4217b7[_0x257892(0x168)][_0x257892(0x1b7)]=_0x3254fc[_0x257892(0x196)],_0x4217b7['currentSessionDetails']['platform_version']=_0x3254fc[_0x257892(0x19d)]),_0x4a9a11&&(_0x4436b0[_0x257892(0x177)](debug,_0x257892(0x19b)+_0x4a9a11),_0x4217b7[_0x257892(0x168)]['bsSessionId']=_0x4a9a11);}_0x4436b0['ISojM'](typeof _0x53155a,_0x4436b0['ELoLt'])&&(delete _0x3b1016[_0x257892(0x161)],delete _0x3b1016[_0x257892(0x1a9)],_0x3b1016[_0x257892(0x17f)]&&(delete _0x3b1016[_0x257892(0x17f)][_0x257892(0x1a9)],delete _0x3b1016['params']['bStackParams']),_0x3b1016[_0x257892(0x198)]&&(delete _0x3b1016['result'][_0x257892(0x1a9)],delete _0x3b1016['result'][_0x257892(0x161)]));}}catch(_0x5736e6){_0x4436b0['JgNVU'](debug,'Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20'+_0x5736e6[_0x257892(0x165)]);}return _0x14acd7?.[_0x257892(0x186)](this,arguments);},_0x187c56[_0x232f99(0x1b3)]=!![],logger[_0x232f99(0x18e)](_0x4436b0[_0x232f99(0x1b0)]);}catch(_0x4fe54b){_0x4436b0['JgNVU'](debug,_0x232f99(0x181)+util[_0x232f99(0x182)](_0x4fe54b)),_0x4217b7[_0x232f99(0x1a7)]=_0x4fe54b['toString']();}}static[a58_0x545e12(0x166)](){const _0x20565d=a58_0x545e12;return this[_0x20565d(0x168)];}}module[a58_0x545e12(0x16a)]=PuppeteerSessionDetails;
1
+ function a58_0x56e3(_0xf1d12c,_0x3825d8){const _0x286d39=a58_0x286d();return a58_0x56e3=function(_0x56e33b,_0x4f2544){_0x56e33b=_0x56e33b-0x16a;let _0x7672dd=_0x286d39[_0x56e33b];return _0x7672dd;},a58_0x56e3(_0xf1d12c,_0x3825d8);}function a58_0x286d(){const _0x1ac260=['Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','cloudProvider','query','../v2/state/hookState.js','758jIQsOV','4IVSjJK','platform_version','ZdzuQ','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','browserName','4253472fSjcqx','_bstackPatched','automate','../../helpers/helper','88227nvYTZn','zMqAu','version','YXDAZ','jvDzD','params','local_grid','exports','../v2/state/automationFrameworkState.js','capabilities','includes','format','BSTACK_URL','qNZjk','browser_version','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','BSTACK_ATS_URL','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','fromEntries','browserstack','hYCJl','function','ATS_WSS_URL_REGEX','eTCvT','POST','toString','bsSessionId','FdVWE','sessionError','1768458tyaAJF','patchConnection','chrome','parse','result','bStackParams','JbjhQ','PLAYWRIGHT_DISPATCH','currentSessionDetails','entries','path','stringify','url','640GDghFd','dUSSK','Setting\x20session\x20id\x20received\x20from\x20BS\x20','getDetails','bsParams','test','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','14644509WaLmYL','platform','getAutomationFramework','platformVersion','../../helpers/logger','connection','sessionId','assign','snREn','winstonLogger','string','platformName','message','1669bsiKgs','browser','YBbwM','turboscale','1057kbHJfu','3600995EJaVMW','apply','smGPs','SHkpD','getInstance','wlApF','platformDetails','trackEvent','dQAFy','setupBrowserDetails','onmessage','product','_connection','../../helpers/test-observability/utils','../utils/constants','28494JBriwJ'];a58_0x286d=function(){return _0x1ac260;};return a58_0x286d();}const a58_0x5e9e3b=a58_0x56e3;(function(_0x34a886,_0x42ffe8){const _0x1237ed=a58_0x56e3,_0x302460=_0x34a886();while(!![]){try{const _0x6c993d=parseInt(_0x1237ed(0x175))/0x1*(-parseInt(_0x1237ed(0x18e))/0x2)+-parseInt(_0x1237ed(0x1b5))/0x3*(parseInt(_0x1237ed(0x18f))/0x4)+parseInt(_0x1237ed(0x17a))/0x5+-parseInt(_0x1237ed(0x189))/0x6*(-parseInt(_0x1237ed(0x179))/0x7)+-parseInt(_0x1237ed(0x194))/0x8+parseInt(_0x1237ed(0x198))/0x9*(-parseInt(_0x1237ed(0x1c2))/0xa)+parseInt(_0x1237ed(0x1c9))/0xb;if(_0x6c993d===_0x42ffe8)break;else _0x302460['push'](_0x302460['shift']());}catch(_0x5e8512){_0x302460['push'](_0x302460['shift']());}}}(a58_0x286d,0x5e9b0));const path=require(a58_0x5e9e3b(0x1bf)),url=require(a58_0x5e9e3b(0x1c1)),util=require('util'),{nestedKeyValue,isFalse}=require(a58_0x5e9e3b(0x197)),{debug,getPlatformDetails}=require(a58_0x5e9e3b(0x187)),logger=require(a58_0x5e9e3b(0x16c))[a58_0x5e9e3b(0x171)],constants=require(a58_0x5e9e3b(0x188)),BrowserstackCLI=require('../v2/browserstackCLI'),AutomationFrameworkState=require(a58_0x5e9e3b(0x1a0)),HookState=require(a58_0x5e9e3b(0x18d)),getBrowserFromWSEndpoint=_0x4c1bf7=>{const _0x8bae4a=a58_0x5e9e3b,_0x137d96={'eTCvT':_0x8bae4a(0x1b7),'FdVWE':function(_0x37ca19,_0xf41a49){return _0x37ca19(_0xf41a49);}};try{const _0xf9f5e0=url[_0x8bae4a(0x1b8)](_0x4c1bf7),_0x3b0c8d=new URLSearchParams(_0xf9f5e0[_0x8bae4a(0x18c)]),_0x4311c9=Object[_0x8bae4a(0x1aa)](_0x3b0c8d[_0x8bae4a(0x1be)]()),_0x5072a5=JSON[_0x8bae4a(0x1b8)](_0x4311c9['caps']);if(_0x5072a5&&(_0x5072a5['browser']||_0x5072a5['browserName']))return _0x5072a5['browser']||_0x5072a5[_0x8bae4a(0x193)];return _0x137d96[_0x8bae4a(0x1af)];}catch(_0x6dbc0c){_0x137d96[_0x8bae4a(0x1b3)](debug,_0x8bae4a(0x18a)+_0x6dbc0c['toString']());}},getCloudProviderFromWsEndpoint=_0x4bf319=>{const _0x559b1c=a58_0x5e9e3b,_0x194a39={};_0x194a39[_0x559b1c(0x182)]=_0x559b1c(0x1ab),_0x194a39['JbjhQ']='unknown_grid';const _0x128579=_0x194a39;if(_0x4bf319[_0x559b1c(0x1a2)](constants[_0x559b1c(0x1a4)])||_0x4bf319[_0x559b1c(0x1a2)](constants[_0x559b1c(0x1a8)]))return _0x128579[_0x559b1c(0x182)];return _0x128579[_0x559b1c(0x1bb)];},a58_0x45388d={};a58_0x45388d[a58_0x5e9e3b(0x18b)]=undefined,a58_0x45388d[a58_0x5e9e3b(0x1b2)]=undefined,a58_0x45388d[a58_0x5e9e3b(0x176)]=undefined,a58_0x45388d[a58_0x5e9e3b(0x1a6)]=undefined,a58_0x45388d[a58_0x5e9e3b(0x1ca)]=undefined,a58_0x45388d[a58_0x5e9e3b(0x190)]=undefined,a58_0x45388d[a58_0x5e9e3b(0x185)]=undefined,a58_0x45388d[a58_0x5e9e3b(0x1a1)]={};class PuppeteerSessionDetails{static ['currentSessionDetails']=a58_0x45388d;constructor(){const _0x44ccbc=a58_0x5e9e3b,_0xe518b1={};_0xe518b1[_0x44ccbc(0x19b)]=_0x44ccbc(0x192);const _0x52fcbf=_0xe518b1;throw new Error(_0x52fcbf[_0x44ccbc(0x19b)]);}static [a58_0x5e9e3b(0x1b4)]=null;static async[a58_0x5e9e3b(0x183)](_0x46b9b0,_0x5a17bf){const _0x3fbf15=a58_0x5e9e3b,_0x5b2522={'YGNNV':'chrome','BYKGF':function(_0x454f1b,_0x5504a5){return _0x454f1b===_0x5504a5;},'hYCJl':_0x3fbf15(0x1ad),'AkNlx':_0x3fbf15(0x19e),'YBbwM':function(_0x1fbf5f,_0x2d6bab){return _0x1fbf5f(_0x2d6bab);},'wsnVs':function(_0x57787c,_0x4d067a){return _0x57787c===_0x4d067a;},'CiBzY':_0x3fbf15(0x1ab),'WiZsB':_0x3fbf15(0x178),'SHkpD':_0x3fbf15(0x196),'smGPs':function(_0x328beb,_0x3d339a){return _0x328beb(_0x3d339a);},'wlApF':function(_0x311441){return _0x311441();},'zMqAu':function(_0x5e7a97){return _0x5e7a97();}};try{let _0x8488e6=_0x5b2522['YGNNV'],_0x5bd708=null;_0x46b9b0&&_0x5b2522['BYKGF'](typeof _0x46b9b0[_0x3fbf15(0x19a)],_0x5b2522[_0x3fbf15(0x1ac)])&&(_0x5bd708=await _0x46b9b0[_0x3fbf15(0x19a)]());let _0x8396d6=null,_0xc8d1c0=null,_0x3464b4=null,_0x2ecdfd=_0x5b2522['AkNlx'];if(_0x5a17bf){_0x2ecdfd=_0x5b2522[_0x3fbf15(0x177)](getCloudProviderFromWsEndpoint,_0x5a17bf);if(_0x5b2522['wsnVs'](_0x2ecdfd,_0x5b2522['CiBzY']))_0x3464b4=constants['ATS_WSS_URL_REGEX']?constants[_0x3fbf15(0x1ae)][_0x3fbf15(0x1c7)](_0x5a17bf)?_0x5b2522['WiZsB']:_0x5b2522[_0x3fbf15(0x17d)]:_0x5b2522[_0x3fbf15(0x17d)],_0x8488e6=_0x5b2522[_0x3fbf15(0x17c)](getBrowserFromWSEndpoint,_0x5a17bf)||_0x8488e6,_0x8396d6=this[_0x3fbf15(0x1bd)][_0x3fbf15(0x1ca)],_0xc8d1c0=this['currentSessionDetails'][_0x3fbf15(0x190)];else{const _0xd09924=await _0x5b2522[_0x3fbf15(0x17f)](getPlatformDetails);_0x8396d6=_0xd09924[_0x3fbf15(0x173)],_0xc8d1c0=_0xd09924[_0x3fbf15(0x16b)];}}else{const _0x5e7eb6=await _0x5b2522[_0x3fbf15(0x199)](getPlatformDetails);_0x8396d6=_0x5e7eb6[_0x3fbf15(0x173)],_0xc8d1c0=_0x5e7eb6[_0x3fbf15(0x16b)];}const _0x4a6156={};_0x4a6156[_0x3fbf15(0x176)]=_0x8488e6,_0x4a6156[_0x3fbf15(0x1a6)]=_0x5bd708,_0x4a6156[_0x3fbf15(0x1a1)]={},_0x4a6156[_0x3fbf15(0x1ca)]=_0x8396d6,_0x4a6156[_0x3fbf15(0x190)]=_0xc8d1c0,_0x4a6156[_0x3fbf15(0x185)]=_0x3464b4;const _0x46c7f5=_0x4a6156,_0x10ef2b={};_0x10ef2b[_0x3fbf15(0x18b)]=_0x2ecdfd,this[_0x3fbf15(0x1bd)]=Object[_0x3fbf15(0x16f)]({},this['currentSessionDetails'],_0x10ef2b,_0x46c7f5);}catch(_0x11d67e){_0x5b2522[_0x3fbf15(0x177)](debug,'Error\x20in\x20setupBrowserDetails:\x20'+util['format'](_0x11d67e)),this[_0x3fbf15(0x1b4)]=_0x11d67e['toString']();}}static[a58_0x5e9e3b(0x1b6)](_0x3e3c6f){const _0xab3d37=a58_0x5e9e3b,_0x10c1c7={'snREn':function(_0x2f4666,_0x2b8127){return _0x2f4666===_0x2b8127;},'jvDzD':_0xab3d37(0x172),'TmXiv':function(_0x57ddc4,_0x591491){return _0x57ddc4(_0x591491);},'ZdzuQ':function(_0x382498,_0x5deb65){return _0x382498(_0x5deb65);},'dUSSK':function(_0x2e0345,_0x21678c){return _0x2e0345===_0x21678c;},'qNZjk':_0xab3d37(0x1a7)},_0x307ae3=this;try{const _0x3db788=_0x3e3c6f[_0xab3d37(0x186)]||_0x3e3c6f[_0xab3d37(0x16d)];if(!_0x3db788||_0x3db788[_0xab3d37(0x195)])return;const _0x3954a4=_0x3db788[_0xab3d37(0x184)];_0x3db788['onmessage']=function(_0x5aad54){const _0xf1d570=_0xab3d37;try{const _0xe11782=_0x10c1c7[_0xf1d570(0x170)](typeof _0x5aad54,_0x10c1c7['jvDzD'])?JSON[_0xf1d570(0x1b8)](_0x5aad54):_0x5aad54,_0x1b368c=_0xe11782?.[_0xf1d570(0x1ba)]||_0xe11782?.[_0xf1d570(0x1c6)]||_0xe11782?.[_0xf1d570(0x19d)]?.[_0xf1d570(0x1c6)]||_0xe11782?.[_0xf1d570(0x19d)]?.[_0xf1d570(0x1ba)]||_0xe11782?.[_0xf1d570(0x1b9)]?.[_0xf1d570(0x1c6)]||_0xe11782?.['result']?.[_0xf1d570(0x1ba)];if(_0x1b368c){if(BrowserstackCLI[_0xf1d570(0x17e)]()['isRunning']()){const _0x3a606f={};_0x3a606f['message']=_0xe11782,BrowserstackCLI[_0xf1d570(0x17e)]()[_0xf1d570(0x16a)]()[_0xf1d570(0x181)](AutomationFrameworkState[_0xf1d570(0x1bc)],HookState[_0xf1d570(0x1b0)],_0x3a606f);}else{const _0x49af8f=_0x1b368c[_0xf1d570(0x16e)],_0x542863=_0x1b368c[_0xf1d570(0x180)];_0x542863&&(_0x10c1c7['TmXiv'](debug,_0xf1d570(0x1a9)+JSON[_0xf1d570(0x1c0)](_0x542863)),_0x307ae3[_0xf1d570(0x1bd)][_0xf1d570(0x1ca)]=_0x542863[_0xf1d570(0x173)],_0x307ae3[_0xf1d570(0x1bd)][_0xf1d570(0x190)]=_0x542863[_0xf1d570(0x16b)]),_0x49af8f&&(_0x10c1c7[_0xf1d570(0x191)](debug,_0xf1d570(0x1c4)+_0x49af8f),_0x307ae3[_0xf1d570(0x1bd)]['bsSessionId']=_0x49af8f);}_0x10c1c7[_0xf1d570(0x1c3)](typeof _0x5aad54,_0x10c1c7[_0xf1d570(0x19c)])&&(delete _0xe11782[_0xf1d570(0x1ba)],delete _0xe11782[_0xf1d570(0x1c6)],_0xe11782[_0xf1d570(0x19d)]&&(delete _0xe11782[_0xf1d570(0x19d)][_0xf1d570(0x1c6)],delete _0xe11782[_0xf1d570(0x19d)]['bStackParams']),_0xe11782[_0xf1d570(0x1b9)]&&(delete _0xe11782[_0xf1d570(0x1b9)][_0xf1d570(0x1c6)],delete _0xe11782[_0xf1d570(0x1b9)][_0xf1d570(0x1ba)]));}}catch(_0x4aa02d){_0x10c1c7['TmXiv'](debug,_0xf1d570(0x1c8)+_0x4aa02d[_0xf1d570(0x174)]);}return _0x3954a4?.[_0xf1d570(0x17b)](this,arguments);},_0x3db788[_0xab3d37(0x195)]=!![],logger['debug'](_0x10c1c7[_0xab3d37(0x1a5)]);}catch(_0x3b6301){_0x10c1c7[_0xab3d37(0x191)](debug,'Error\x20in\x20patchConnection:\x20'+util[_0xab3d37(0x1a3)](_0x3b6301)),_0x307ae3[_0xab3d37(0x1b4)]=_0x3b6301[_0xab3d37(0x1b1)]();}}static[a58_0x5e9e3b(0x1c5)](){const _0x48b817=a58_0x5e9e3b;return this[_0x48b817(0x1bd)];}}module[a58_0x5e9e3b(0x19f)]=PuppeteerSessionDetails;
@@ -1 +1 @@
1
- const a59_0x31f9c=a59_0x582a;(function(_0xd09e82,_0x1ea037){const _0x37b1d8=a59_0x582a,_0x370310=_0xd09e82();while(!![]){try{const _0x499b63=-parseInt(_0x37b1d8(0x1e6))/0x1+-parseInt(_0x37b1d8(0x1c1))/0x2+parseInt(_0x37b1d8(0x1f0))/0x3*(-parseInt(_0x37b1d8(0x1ed))/0x4)+parseInt(_0x37b1d8(0x1c5))/0x5+-parseInt(_0x37b1d8(0x1e5))/0x6+parseInt(_0x37b1d8(0x1d2))/0x7*(-parseInt(_0x37b1d8(0x1d9))/0x8)+parseInt(_0x37b1d8(0x1ce))/0x9;if(_0x499b63===_0x1ea037)break;else _0x370310['push'](_0x370310['shift']());}catch(_0x173e1d){_0x370310['push'](_0x370310['shift']());}}}(a59_0x448c,0x35f1f));const {isTrue,isBrowserstackInfra}=require(a59_0x31f9c(0x1d6)),setKeepAlive=require('../../helpers/setKeepAlive'),util=require('util'),logger=require('../../helpers/logger')['winstonLogger'],{shouldProcessEventForTesthub}=require(a59_0x31f9c(0x1da)),{addRequestSpy}=require(a59_0x31f9c(0x1e1)),a59_0x52a942={};a59_0x52a942['workerInfo']=undefined,a59_0x52a942[a59_0x31f9c(0x1e9)]={},a59_0x52a942[a59_0x31f9c(0x1ca)]=![],a59_0x52a942[a59_0x31f9c(0x1c7)]=null,a59_0x52a942[a59_0x31f9c(0x1d5)]=![],a59_0x52a942[a59_0x31f9c(0x1e9)]['id']=undefined,a59_0x52a942[a59_0x31f9c(0x1e9)][a59_0x31f9c(0x1de)]=undefined;function a59_0x582a(_0x4dc02e,_0x1f65f8){const _0x448c80=a59_0x448c();return a59_0x582a=function(_0x582af3,_0x222cc2){_0x582af3=_0x582af3-0x1c1;let _0x374a59=_0x448c80[_0x582af3];return _0x374a59;},a59_0x582a(_0x4dc02e,_0x1f65f8);}const workerDetails=a59_0x52a942;global[a59_0x31f9c(0x1dc)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();function a59_0x448c(){const _0x3cc530=['../v2/browserstackCLI','13453470cTDAQC','setFrameworkDetail','bootstrap','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','1162WsaBVQ','format','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','isPageFixture','../../helpers/helper','BROWSERSTACK_PUPPETEER','env','20376dcxDZm','../../helpers/testhub/utils','skipSessionStatus','__workerDetails','isCliEnabled','testInfo','skipSessionName','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','../../helpers/test-observability/utils','puppeteer-core','debug','../utils/constants','897072PjCVGR','29684WvYXLl','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','__skipSessionStatus','currentTest','jestConfig','initializePuppeteerPatching','JEST','7564kEcpCo','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','657lLyRyc','getInstance','__skipSessionName','748824EfwbYB','true','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','getPackageVersion','583340AoDZmx','../v2/cliUtils','pwPage','../utils/puppeteer-patcher','puppeteer','o11ySyncDone','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','PUPPETEER'];a59_0x448c=function(){return _0x3cc530;};return a59_0x448c();}if(global[a59_0x31f9c(0x1ea)])try{isBrowserstackInfra()?(global[a59_0x31f9c(0x1f2)]=isTrue(global[a59_0x31f9c(0x1ea)]?.[a59_0x31f9c(0x1df)]),global[a59_0x31f9c(0x1e8)]=isTrue(global[a59_0x31f9c(0x1ea)]?.[a59_0x31f9c(0x1db)])):(global[a59_0x31f9c(0x1f2)]=!![],global['__skipSessionStatus']=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper[a59_0x31f9c(0x1c4)](a59_0x31f9c(0x1c9))||helper[a59_0x31f9c(0x1c4)](a59_0x31f9c(0x1e2));if(puppeteerVersion)try{logger[a59_0x31f9c(0x1e3)](a59_0x31f9c(0x1e7)),puppeteerPatcher=require(a59_0x31f9c(0x1c8)),puppeteerPatcher[a59_0x31f9c(0x1eb)](global[a59_0x31f9c(0x1ea)]),logger['debug'](a59_0x31f9c(0x1cb));}catch(a59_0x27990d){logger[a59_0x31f9c(0x1e3)](a59_0x31f9c(0x1ef)+util[a59_0x31f9c(0x1d3)](a59_0x27990d));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a59_0x31f9c(0x1cd)),CLIUtils=require(a59_0x31f9c(0x1c6)),{FRAMEWORKS}=require(a59_0x31f9c(0x1e4));BrowserstackCLI[a59_0x31f9c(0x1f1)]()[a59_0x31f9c(0x1dd)]()&&(logger[a59_0x31f9c(0x1e3)](a59_0x31f9c(0x1d4)),process[a59_0x31f9c(0x1d8)][a59_0x31f9c(0x1d7)]=a59_0x31f9c(0x1c2),CLIUtils[a59_0x31f9c(0x1cf)](FRAMEWORKS[a59_0x31f9c(0x1ec)],FRAMEWORKS[a59_0x31f9c(0x1cc)]),BrowserstackCLI['getInstance']()[a59_0x31f9c(0x1d0)]()['catch'](_0x4cfd88=>{const _0x25ca19=a59_0x31f9c;logger[_0x25ca19(0x1e3)](_0x25ca19(0x1d1)+util[_0x25ca19(0x1d3)](_0x4cfd88));}));}catch(a59_0x49f220){logger[a59_0x31f9c(0x1e3)](a59_0x31f9c(0x1c3)+util[a59_0x31f9c(0x1d3)](a59_0x49f220));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a59_0x4cc069){logger[a59_0x31f9c(0x1e3)](a59_0x31f9c(0x1ee)+util['format'](a59_0x4cc069));}logger[a59_0x31f9c(0x1e3)](a59_0x31f9c(0x1e0));
1
+ const a59_0x9520c9=a59_0x1bc6;(function(_0x2f6a78,_0x2c9985){const _0x1ba827=a59_0x1bc6,_0x1aec88=_0x2f6a78();while(!![]){try{const _0x2c431a=parseInt(_0x1ba827(0x1a2))/0x1+parseInt(_0x1ba827(0x1b1))/0x2*(-parseInt(_0x1ba827(0x197))/0x3)+parseInt(_0x1ba827(0x194))/0x4+-parseInt(_0x1ba827(0x1b3))/0x5+-parseInt(_0x1ba827(0x19a))/0x6*(parseInt(_0x1ba827(0x1a5))/0x7)+parseInt(_0x1ba827(0x190))/0x8+-parseInt(_0x1ba827(0x18e))/0x9*(-parseInt(_0x1ba827(0x1a8))/0xa);if(_0x2c431a===_0x2c9985)break;else _0x1aec88['push'](_0x1aec88['shift']());}catch(_0x2ad8d6){_0x1aec88['push'](_0x1aec88['shift']());}}}(a59_0x38bd,0xba14f));const {isTrue,isBrowserstackInfra}=require(a59_0x9520c9(0x1af)),setKeepAlive=require(a59_0x9520c9(0x1a6)),util=require(a59_0x9520c9(0x1b4)),logger=require(a59_0x9520c9(0x18c))['winstonLogger'],{shouldProcessEventForTesthub}=require(a59_0x9520c9(0x192)),{addRequestSpy}=require('../../helpers/test-observability/utils'),a59_0x4486d5={};a59_0x4486d5[a59_0x9520c9(0x19e)]=undefined,a59_0x4486d5[a59_0x9520c9(0x18d)]={},a59_0x4486d5[a59_0x9520c9(0x195)]=![],a59_0x4486d5[a59_0x9520c9(0x199)]=null,a59_0x4486d5[a59_0x9520c9(0x1b6)]=![],a59_0x4486d5[a59_0x9520c9(0x18d)]['id']=undefined,a59_0x4486d5[a59_0x9520c9(0x18d)][a59_0x9520c9(0x1a7)]=undefined;const workerDetails=a59_0x4486d5;global[a59_0x9520c9(0x189)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a59_0x9520c9(0x1b0)]=isTrue(global[a59_0x9520c9(0x18a)]?.[a59_0x9520c9(0x1b5)]),global['__skipSessionStatus']=isTrue(global['jestConfig']?.[a59_0x9520c9(0x191)])):(global[a59_0x9520c9(0x1b0)]=!![],global[a59_0x9520c9(0x19d)]=!![]);const helper=require(a59_0x9520c9(0x1af)),puppeteerVersion=helper[a59_0x9520c9(0x1a1)](a59_0x9520c9(0x1b7))||helper[a59_0x9520c9(0x1a1)]('puppeteer-core');if(puppeteerVersion)try{logger[a59_0x9520c9(0x193)]('[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest'),puppeteerPatcher=require(a59_0x9520c9(0x18b)),puppeteerPatcher[a59_0x9520c9(0x1b2)](global[a59_0x9520c9(0x18a)]),logger['debug'](a59_0x9520c9(0x19c));}catch(a59_0x108053){logger[a59_0x9520c9(0x193)](a59_0x9520c9(0x1aa)+util['format'](a59_0x108053));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a59_0x9520c9(0x1ae)),CLIUtils=require(a59_0x9520c9(0x18f)),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI['getInstance']()[a59_0x9520c9(0x19b)]()&&(logger['debug']('[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker'),process[a59_0x9520c9(0x1a9)][a59_0x9520c9(0x1ab)]=a59_0x9520c9(0x1ad),CLIUtils[a59_0x9520c9(0x1a3)](FRAMEWORKS['JEST'],FRAMEWORKS[a59_0x9520c9(0x198)]),BrowserstackCLI['getInstance']()['bootstrap']()[a59_0x9520c9(0x1ac)](_0xc02ecd=>{const _0x318571=a59_0x9520c9;logger[_0x318571(0x193)](_0x318571(0x19f)+util[_0x318571(0x1a4)](_0xc02ecd));}));}catch(a59_0x25242b){logger[a59_0x9520c9(0x193)](a59_0x9520c9(0x1a0)+util['format'](a59_0x25242b));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a59_0x5de333){logger['debug'](a59_0x9520c9(0x196)+util[a59_0x9520c9(0x1a4)](a59_0x5de333));}function a59_0x1bc6(_0x211b0e,_0x9e5ccb){const _0x38bded=a59_0x38bd();return a59_0x1bc6=function(_0x1bc66f,_0x57539){_0x1bc66f=_0x1bc66f-0x188;let _0xffc09c=_0x38bded[_0x1bc66f];return _0xffc09c;},a59_0x1bc6(_0x211b0e,_0x9e5ccb);}function a59_0x38bd(){const _0x54943a=['720IEviAb','../v2/cliUtils','10714496zCCwyy','skipSessionStatus','../../helpers/testhub/utils','debug','4089372iaMsYM','o11ySyncDone','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','870dVlWLz','PUPPETEER','pwPage','24ZCiCaz','isCliEnabled','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','__skipSessionStatus','workerInfo','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','getPackageVersion','614974NvLJhR','setFrameworkDetail','format','505918yKWnGl','../../helpers/setKeepAlive','testInfo','75890nyDjJs','env','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','BROWSERSTACK_PUPPETEER','catch','true','../v2/browserstackCLI','../../helpers/helper','__skipSessionName','9938GOHUOb','initializePuppeteerPatching','5457260IwBDfj','util','skipSessionName','isPageFixture','puppeteer','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','__workerDetails','jestConfig','../utils/puppeteer-patcher','../../helpers/logger','currentTest'];a59_0x38bd=function(){return _0x54943a;};return a59_0x38bd();}logger[a59_0x9520c9(0x193)](a59_0x9520c9(0x188));
package/src/bin/runner.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a60_0x11aa08=a60_0x1d01;(function(_0x29b4e1,_0xf0f35f){const _0x2b21cb=a60_0x1d01,_0x3587ba=_0x29b4e1();while(!![]){try{const _0x296b2e=parseInt(_0x2b21cb(0x1fd))/0x1*(-parseInt(_0x2b21cb(0x208))/0x2)+-parseInt(_0x2b21cb(0x20c))/0x3+parseInt(_0x2b21cb(0x254))/0x4+parseInt(_0x2b21cb(0x22e))/0x5*(parseInt(_0x2b21cb(0x210))/0x6)+parseInt(_0x2b21cb(0x253))/0x7*(-parseInt(_0x2b21cb(0x1ef))/0x8)+parseInt(_0x2b21cb(0x246))/0x9*(parseInt(_0x2b21cb(0x1d7))/0xa)+parseInt(_0x2b21cb(0x24c))/0xb;if(_0x296b2e===_0xf0f35f)break;else _0x3587ba['push'](_0x3587ba['shift']());}catch(_0x1957cf){_0x3587ba['push'](_0x3587ba['shift']());}}}(a60_0x39a3,0x7f4ba));const fs=require('fs'),path=require(a60_0x11aa08(0x269)),util=require(a60_0x11aa08(0x264)),spawn=require(a60_0x11aa08(0x25a))[a60_0x11aa08(0x1eb)],{requireModule}=require('../helpers/helper'),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a60_0x11aa08(0x24b))[a60_0x11aa08(0x267)],helper=require(a60_0x11aa08(0x1fa)),utilities=require(a60_0x11aa08(0x218)),{default:BrowserStackSetup}=require(a60_0x11aa08(0x1d8)),{FRAMEWORKS}=require(a60_0x11aa08(0x230)),runIntegrations=require(a60_0x11aa08(0x1ec)),yargs=require(a60_0x11aa08(0x239)),Constants=require('./utils/constants'),BrowserstackCLI=require(a60_0x11aa08(0x1fe)),{isNewman}=require('./newman/helper'),logger=require('../helpers/logger')[a60_0x11aa08(0x220)],origArgs=Object[a60_0x11aa08(0x219)]([],process[a60_0x11aa08(0x247)]),captureError=async(_0x2543ef,_0x5304c6,_0xa75649,_0x230883=null,_0x12041a=![])=>{const _0x1b9780=a60_0x11aa08,_0x2eabf3={'vYskJ':function(_0x2eee26,_0x216e63,_0x83ac2c,_0x5efc5c){return _0x2eee26(_0x216e63,_0x83ac2c,_0x5efc5c);},'hIMhd':_0x1b9780(0x20f)};try{logger[_0x1b9780(0x26d)](_0x1b9780(0x259)+origArgs[_0x1b9780(0x242)]('\x20')),await _0x2eabf3[_0x1b9780(0x1f3)](_0x2543ef,_0x5304c6,_0x230883,_0xa75649);}catch(_0x2cb4fb){process[_0x1b9780(0x1f4)]=0x1,logger[_0x1b9780(0x21c)](util[_0x1b9780(0x215)](_0x2cb4fb));const _0x542f00={'globalException':util['format']('%j',_0x2cb4fb)};PerformanceTester[_0x1b9780(0x1e6)](PerformanceEvents[_0x1b9780(0x271)],![],util[_0x1b9780(0x215)](_0x2cb4fb));if(helper['isUndefined'](global['config'])&&helper[_0x1b9780(0x276)](global[_0x1b9780(0x270)]))return;try{utilities['fireFunnelTestEvent'](_0x2eabf3['hIMhd'],_0x542f00,global[_0x1b9780(0x211)],global[_0x1b9780(0x270)]);}catch(_0x4262f6){logger[_0x1b9780(0x27a)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x4262f6[_0x1b9780(0x280)]);}try{await helper[_0x1b9780(0x27c)](global[_0x1b9780(0x211)]);}catch(_0x3dcc95){logger[_0x1b9780(0x27a)](_0x1b9780(0x1dd)+_0x3dcc95[_0x1b9780(0x280)]);}PerformanceTester[_0x1b9780(0x1e6)](PerformanceEvents[_0x1b9780(0x271)],![],util[_0x1b9780(0x215)](_0x2cb4fb));}finally{!_0x12041a&&await BrowserstackCLI[_0x1b9780(0x227)]()['stop'](),PerformanceTester[_0x1b9780(0x277)](PerformanceEvents[_0x1b9780(0x209)]);}};try{const browserstackFolderPath=path['join'](helper[a60_0x11aa08(0x238)](),a60_0x11aa08(0x275));if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a60_0x11aa08(0x242)](browserstackFolderPath,a60_0x11aa08(0x1ff));fs[a60_0x11aa08(0x1fb)](filePath)&&fs[a60_0x11aa08(0x260)](filePath);}}catch(a60_0x4b1a5c){logger[a60_0x11aa08(0x27a)]('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a60_0x4b1a5c[a60_0x11aa08(0x1e7)]);}function a60_0x1d01(_0x10236d,_0x49e2a7){const _0x39a31=a60_0x39a3();return a60_0x1d01=function(_0x1d015c,_0x3f6352){_0x1d015c=_0x1d015c-0x1d7;let _0x5d523d=_0x39a31[_0x1d015c];return _0x5d523d;},a60_0x1d01(_0x10236d,_0x49e2a7);}process[a60_0x11aa08(0x247)][a60_0x11aa08(0x26f)](a60_0x11aa08(0x236))&&(!process[a60_0x11aa08(0x247)][a60_0x11aa08(0x26f)](a60_0x11aa08(0x1f0))&&process[a60_0x11aa08(0x247)][a60_0x11aa08(0x1f1)](a60_0x11aa08(0x1e2)),!process[a60_0x11aa08(0x247)][a60_0x11aa08(0x25c)](_0x12fd0e=>_0x12fd0e[a60_0x11aa08(0x26f)](a60_0x11aa08(0x25f)))&&process[a60_0x11aa08(0x247)][a60_0x11aa08(0x1f1)](a60_0x11aa08(0x226)),!process[a60_0x11aa08(0x247)][a60_0x11aa08(0x26f)](a60_0x11aa08(0x1da))&&process[a60_0x11aa08(0x247)][a60_0x11aa08(0x1f1)](a60_0x11aa08(0x240)),helper['findAndReplace'](process[a60_0x11aa08(0x247)],'--require',a60_0x11aa08(0x1f5)));PerformanceTester[a60_0x11aa08(0x277)](PerformanceEvents[a60_0x11aa08(0x271)]);const a60_0xa74459={};a60_0xa74459[a60_0x11aa08(0x251)]=![];const argv=yargs[a60_0x11aa08(0x1e5)](a60_0xa74459)['usage']('usage:\x20$0\x20<command>\x20[args]')['alias']('v',a60_0x11aa08(0x257))['describe']('v')[a60_0x11aa08(0x266)]('h',a60_0x11aa08(0x207))[a60_0x11aa08(0x207)]('help')['showHelpOnFail'](!![],Constants[a60_0x11aa08(0x258)][a60_0x11aa08(0x23c)])[a60_0x11aa08(0x228)](a60_0x11aa08(0x231),Constants[a60_0x11aa08(0x22c)]['INFO'],function(_0x451dc6){const _0x53ce37=a60_0x11aa08,_0x8b700d={'Ntvde':'jest','Sauef':function(_0x43bd26,_0x515249,_0x3a55cd,_0x30170c,_0x49a5fd,_0x12a02c){return _0x43bd26(_0x515249,_0x3a55cd,_0x30170c,_0x49a5fd,_0x12a02c);},'AmKyI':function(_0x320813,_0x265a92){return _0x320813(_0x265a92);},'TBiJe':'./jest/command'},_0x275f43=process[_0x53ce37(0x247)][_0x53ce37(0x221)](0x2);helper[_0x53ce37(0x225)](),helper[_0x53ce37(0x1f6)](),_0x451dc6['strict'](![]);const _0x45efd5=new BrowserStackSetup(_0x451dc6['argv'],_0x8b700d[_0x53ce37(0x222)]);return _0x8b700d[_0x53ce37(0x273)](captureError,_0x8b700d['AmKyI'](require,_0x8b700d['TBiJe']),_0x451dc6[_0x53ce37(0x247)],_0x45efd5,_0x275f43,!![]);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x1e1),Constants[a60_0x11aa08(0x26b)][a60_0x11aa08(0x278)],function(_0x3abd10){const _0x3dc24a=a60_0x11aa08,_0x251fdc={'qgDnY':_0x3dc24a(0x1e1),'KKhye':function(_0xa86152,_0x596c03,_0x4db11b,_0x4c9bcb,_0x27f214,_0x4c03bd){return _0xa86152(_0x596c03,_0x4db11b,_0x4c9bcb,_0x27f214,_0x4c03bd);},'ZEKjZ':function(_0x1d1b1a,_0x2268ed){return _0x1d1b1a(_0x2268ed);},'VcOnn':_0x3dc24a(0x22d)},_0x392d9e=process['argv'][_0x3dc24a(0x221)](0x2);helper[_0x3dc24a(0x225)](),helper[_0x3dc24a(0x1f6)](),_0x3abd10[_0x3dc24a(0x213)](![]);const _0x5600f1=new BrowserStackSetup(_0x3abd10[_0x3dc24a(0x247)],_0x251fdc[_0x3dc24a(0x23f)]);return _0x251fdc[_0x3dc24a(0x1d9)](captureError,_0x251fdc[_0x3dc24a(0x1ea)](require,_0x251fdc[_0x3dc24a(0x26c)]),_0x3abd10[_0x3dc24a(0x247)],_0x5600f1,_0x392d9e,!![]);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x236),Constants[a60_0x11aa08(0x255)][a60_0x11aa08(0x278)],_0x49ccb9=>{const _0x5c7265=a60_0x11aa08,_0x44d426={'GEplw':function(_0x1da8b1,_0x356085,_0x133991,_0x1ee667){return _0x1da8b1(_0x356085,_0x133991,_0x1ee667);},'tsPRl':function(_0x5851d4,_0x87d03b){return _0x5851d4(_0x87d03b);},'qECjh':_0x5c7265(0x243),'egjGJ':_0x5c7265(0x236),'bEKum':_0x5c7265(0x214),'kRWMV':function(_0x3f8c89,_0x2661ba,_0x5aadd8){return _0x3f8c89(_0x2661ba,_0x5aadd8);},'zSUdr':_0x5c7265(0x26a),'OJXzC':_0x5c7265(0x249),'JdpRp':function(_0xf0cd56,_0x41c015,_0x4c15c6){return _0xf0cd56(_0x41c015,_0x4c15c6);},'hnXNi':'mocha/lib/cli/cli.js','FcfRQ':function(_0x21a941){return _0x21a941();}};process[_0x5c7265(0x247)]=process[_0x5c7265(0x247)][_0x5c7265(0x221)](0x1),helper['setTestObservabilityDisable'](),helper[_0x5c7265(0x1f6)]();const _0x241c11=new BrowserStackSetup(_0x49ccb9[_0x5c7265(0x247)],_0x44d426['egjGJ']);logger[_0x5c7265(0x27a)](_0x44d426[_0x5c7265(0x1f2)]);const _0x51b4a8=_0x44d426[_0x5c7265(0x223)](requireModule,_0x44d426[_0x5c7265(0x27f)],_0x44d426[_0x5c7265(0x21a)]),_0x1c748f=_0x44d426[_0x5c7265(0x223)](requireModule,_0x44d426['OJXzC'],_0x44d426[_0x5c7265(0x21a)]);delete _0x51b4a8['handler'],_0x51b4a8[_0x5c7265(0x272)]=function(_0x188184){const _0x3c540b=_0x5c7265;return _0x44d426[_0x3c540b(0x25d)](captureError,_0x44d426[_0x3c540b(0x24a)](require,_0x44d426[_0x3c540b(0x202)]),_0x188184,_0x241c11);},_0x1c748f['run']=_0x51b4a8;const {main:_0x314b37}=_0x44d426[_0x5c7265(0x27d)](requireModule,_0x44d426[_0x5c7265(0x22a)],_0x44d426[_0x5c7265(0x21a)]);_0x44d426['FcfRQ'](_0x314b37);})['command']('cucumber-js',Constants[a60_0x11aa08(0x22f)][a60_0x11aa08(0x278)],function(_0xedea6e){const _0x121b03=a60_0x11aa08,_0x57f90e={'vMJHQ':'cucumber-js','bXovU':function(_0x541ffd,_0x58a601,_0x31d36d,_0x4f40b1,_0x1d62d9,_0x32176e){return _0x541ffd(_0x58a601,_0x31d36d,_0x4f40b1,_0x1d62d9,_0x32176e);},'TLgZL':function(_0x301d4c,_0x586aa8){return _0x301d4c(_0x586aa8);},'QmoWr':_0x121b03(0x1de)},_0x39beaf=process[_0x121b03(0x247)][_0x121b03(0x221)](0x2),_0x187af2=new BrowserStackSetup(_0xedea6e[_0x121b03(0x247)],_0x57f90e[_0x121b03(0x244)]);return _0x57f90e['bXovU'](captureError,_0x57f90e['TLgZL'](require,_0x57f90e[_0x121b03(0x233)]),_0xedea6e[_0x121b03(0x247)],_0x187af2,_0x39beaf,!![]);})['command'](a60_0x11aa08(0x261),Constants[a60_0x11aa08(0x1e3)]['INFO'],function(_0x15b68e){const _0x37abdc=a60_0x11aa08,_0x1b342b={'azoQG':_0x37abdc(0x27b),'sfrDz':function(_0x11419b,_0x5c76a8){return _0x11419b(_0x5c76a8);},'YrfOh':'newman','DHqet':function(_0x54a0bd,_0x1fcecd,_0x3385e2,_0x24296b,_0x3fdbc7){return _0x54a0bd(_0x1fcecd,_0x3385e2,_0x24296b,_0x3fdbc7);},'vXVZL':function(_0x21cdb,_0x47bd23){return _0x21cdb(_0x47bd23);},'nTJqU':_0x37abdc(0x201),'ZYZNz':function(_0x5544dc,_0x49d5b1){return _0x5544dc(_0x49d5b1);},'jOXWU':_0x37abdc(0x23e)},_0x2b53fb=process[_0x37abdc(0x247)][_0x37abdc(0x221)](0x2),_0x1104d3=new BrowserStackSetup(_0x15b68e[_0x37abdc(0x247)],_0x1b342b[_0x37abdc(0x23a)]),_0xcb78f1=_0x1104d3?_0x1104d3[_0x37abdc(0x211)]:null;if(_0x1b342b[_0x37abdc(0x212)](isNewman,_0xcb78f1))return _0x1104d3[_0x37abdc(0x270)]=_0x1b342b[_0x37abdc(0x25e)],global[_0x37abdc(0x270)]=_0x1b342b[_0x37abdc(0x25e)],_0x1b342b['DHqet'](captureError,_0x1b342b['vXVZL'](require,_0x1b342b['nTJqU']),_0x15b68e[_0x37abdc(0x247)],_0x1104d3,_0x2b53fb);return _0x1b342b['DHqet'](captureError,_0x1b342b['ZYZNz'](require,_0x1b342b[_0x37abdc(0x1ed)]),_0x15b68e[_0x37abdc(0x247)],_0x1104d3,_0x2b53fb);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x268),Constants[a60_0x11aa08(0x1df)][a60_0x11aa08(0x278)],function(_0x378da3){const _0x1cdba9=a60_0x11aa08,_0x205117={'OtnEc':_0x1cdba9(0x268),'AoRQM':function(_0x99ccf5,_0x106aa0,_0x44314f,_0x65f360,_0x502e77){return _0x99ccf5(_0x106aa0,_0x44314f,_0x65f360,_0x502e77);},'jNYMC':function(_0x2a4cbe,_0xd50816){return _0x2a4cbe(_0xd50816);},'GDpjJ':'./nightwatch/command'},_0x3ef34d=process[_0x1cdba9(0x247)][_0x1cdba9(0x221)](0x2),_0xfd749b=new BrowserStackSetup(_0x378da3[_0x1cdba9(0x247)],_0x205117[_0x1cdba9(0x232)]);return _0x205117['AoRQM'](captureError,_0x205117['jNYMC'](require,_0x205117['GDpjJ']),_0x378da3[_0x1cdba9(0x247)],_0xfd749b,_0x3ef34d);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x23b),Constants[a60_0x11aa08(0x23d)][a60_0x11aa08(0x278)],function(_0x327a72){const _0xce8d43=a60_0x11aa08,_0x1e2877={'wukZS':_0xce8d43(0x23b),'yskwj':function(_0x21fafa,_0x45d175,_0x409835,_0x26df18,_0x52f652){return _0x21fafa(_0x45d175,_0x409835,_0x26df18,_0x52f652);},'ijQlx':function(_0x5f65fc,_0x3dd07d){return _0x5f65fc(_0x3dd07d);},'ylCzE':_0xce8d43(0x256)},_0x4da1e6=process[_0xce8d43(0x247)][_0xce8d43(0x221)](0x2),_0x4367ed=new BrowserStackSetup(_0x327a72[_0xce8d43(0x247)],_0x1e2877[_0xce8d43(0x20d)]);return _0x1e2877[_0xce8d43(0x1f7)](captureError,_0x1e2877['ijQlx'](require,_0x1e2877[_0xce8d43(0x274)]),_0x327a72[_0xce8d43(0x247)],_0x4367ed,_0x4da1e6);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x25b),Constants[a60_0x11aa08(0x252)][a60_0x11aa08(0x278)],function(_0x45bd49){const _0x45ec78=a60_0x11aa08,_0x3d76b8={'StLXI':function(_0x3336ef,_0x2ceb84,_0x257501){return _0x3336ef(_0x2ceb84,_0x257501);},'GlTkb':function(_0x787144,_0x44a336){return _0x787144(_0x44a336);},'kxERS':'../../ats/src/index'},_0x3c261f=process[_0x45ec78(0x247)][_0x45ec78(0x221)](0x2);return _0x3d76b8['StLXI'](captureError,_0x3d76b8[_0x45ec78(0x237)](require,_0x3d76b8[_0x45ec78(0x1dc)]),_0x45bd49);})['command'](a60_0x11aa08(0x206),Constants['INTEGRATIONS'][a60_0x11aa08(0x278)],function(_0x11baae){const _0x1dbb5d={'zgbdp':function(_0x5c998f,_0xd97a20){return _0x5c998f(_0xd97a20);}};return _0x1dbb5d['zgbdp'](runIntegrations,_0x11baae);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x234),Constants[a60_0x11aa08(0x250)][a60_0x11aa08(0x278)],function(_0x2163bc){const _0xa6343f=a60_0x11aa08,_0x58e6ba={'GqaYV':_0xa6343f(0x21e),'mNXDm':function(_0x49b9b9,_0x14473d){return _0x49b9b9&&_0x14473d;},'YjirM':function(_0x3f11ed,_0x3ebc62,_0x30f4f0,_0x5bd047,_0x2b29b4,_0x4af6fe){return _0x3f11ed(_0x3ebc62,_0x30f4f0,_0x5bd047,_0x2b29b4,_0x4af6fe);},'kmHQH':function(_0x541931,_0x34b6f0){return _0x541931(_0x34b6f0);},'pFxyc':_0xa6343f(0x1e4)},_0x2c9d85=process[_0xa6343f(0x247)][_0xa6343f(0x221)](0x2);helper[_0xa6343f(0x27e)](process[_0xa6343f(0x247)])&&(process[_0xa6343f(0x217)][_0xa6343f(0x224)]=helper[_0xa6343f(0x27e)](process[_0xa6343f(0x247)]));helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable']();const _0x448140=new BrowserStackSetup(_0x2163bc[_0xa6343f(0x247)],FRAMEWORKS[_0xa6343f(0x250)]);try{if(!_0x448140[_0xa6343f(0x211)]||!_0x448140[_0xa6343f(0x211)][_0xa6343f(0x1e9)]){const _0x101f41=_0x58e6ba[_0xa6343f(0x200)],_0x33f38f=process[_0xa6343f(0x217)][_0xa6343f(0x1e8)]||'',_0xbe7089=_0x33f38f['split'](',')['map'](_0x114df4=>_0x114df4['trim']())[_0xa6343f(0x203)](Boolean),_0x3826b7=_0xbe7089['some'](_0x57db0c=>_0x57db0c===_0xa6343f(0x1db)||_0x57db0c===_0xa6343f(0x22b)||_0x57db0c==='-*'),_0x2a0d30=_0xbe7089['some'](_0x40271d=>_0x40271d===_0x101f41||_0x40271d===_0xa6343f(0x262)||_0x40271d==='*');if(_0x58e6ba[_0xa6343f(0x21d)](!_0x3826b7,!_0x2a0d30)){const _0x4dcb94=helper['getPwChannelLogPath']();_0x4dcb94&&(process['env']['DEBUG']=_0x33f38f?_0x33f38f+','+_0x101f41:_0x101f41,!process[_0xa6343f(0x217)][_0xa6343f(0x204)]&&(process[_0xa6343f(0x217)][_0xa6343f(0x204)]=_0x4dcb94));}}}catch(_0x19d8d6){logger['debug'](_0xa6343f(0x245)+util[_0xa6343f(0x215)](_0x19d8d6));}return _0x58e6ba['YjirM'](captureError,_0x58e6ba[_0xa6343f(0x205)](require,_0x58e6ba['pFxyc']),_0x2163bc['argv'],_0x448140,_0x2c9d85,!![]);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x1ee),Constants['TESTCAFE'][a60_0x11aa08(0x278)],function(_0x20eec7){const _0x111bd5=a60_0x11aa08,_0x454d7d={'rHtOV':'testcafe','sptAM':function(_0x56235e,_0x5c43e9,_0x228619,_0xbd38d8,_0xcd2339,_0x2ef4ce){return _0x56235e(_0x5c43e9,_0x228619,_0xbd38d8,_0xcd2339,_0x2ef4ce);},'oXeEe':function(_0xd35b8c,_0x5e12fb){return _0xd35b8c(_0x5e12fb);},'ZlUQF':'./testcafe/command'},_0x4242e7=process[_0x111bd5(0x247)]['slice'](0x2),_0x17a21c=new BrowserStackSetup(_0x20eec7[_0x111bd5(0x247)],_0x454d7d[_0x111bd5(0x20b)]);return _0x454d7d[_0x111bd5(0x235)](captureError,_0x454d7d['oXeEe'](require,_0x454d7d[_0x111bd5(0x279)]),_0x20eec7['argv'],_0x17a21c,_0x4242e7,!![]);})[a60_0x11aa08(0x228)](a60_0x11aa08(0x1f8),a60_0x11aa08(0x1e0),function(_0x13e543){const _0x2266fd=a60_0x11aa08,_0x2709f1={};_0x2709f1[_0x2266fd(0x216)]=_0x2266fd(0x207),_0x2709f1['vupMZ']=_0x2266fd(0x26e),_0x2709f1[_0x2266fd(0x21f)]=_0x2266fd(0x20a);const _0x6e99a4=_0x2709f1;return _0x13e543[_0x2266fd(0x207)](![])[_0x2266fd(0x1fc)](_0x6e99a4[_0x2266fd(0x216)],{'alias':'h','type':_0x6e99a4[_0x2266fd(0x1f9)],'describe':_0x6e99a4[_0x2266fd(0x21f)]})[_0x2266fd(0x213)](![])[_0x2266fd(0x241)](![]);},function(_0x290b37){const _0x5b5b78=a60_0x11aa08,_0x2af561={'rkaQe':function(_0x330f6f,_0x31299c,_0x99c993){return _0x330f6f(_0x31299c,_0x99c993);},'DrLqr':function(_0x308c2b,_0x199a51){return _0x308c2b(_0x199a51);},'HXPLm':_0x5b5b78(0x24d)},_0x2da727={};return _0x2da727[_0x5b5b78(0x247)]=_0x290b37,_0x2af561[_0x5b5b78(0x21b)](captureError,_0x2af561['DrLqr'](require,_0x2af561['HXPLm']),_0x2da727);})['command'](a60_0x11aa08(0x263),Constants[a60_0x11aa08(0x24f)][a60_0x11aa08(0x278)],function(_0x1f3d4e){const _0xf7f3ab=a60_0x11aa08,_0x7778cc={'AJENP':_0xf7f3ab(0x263),'RrIEh':function(_0x37ddad,_0x57c1ee,_0x396512,_0x190008,_0x40ad33){return _0x37ddad(_0x57c1ee,_0x396512,_0x190008,_0x40ad33);},'ZncEW':function(_0x1c50b6,_0x3f143d){return _0x1c50b6(_0x3f143d);},'ejIsi':'./newman/command'},_0x4ee0b2=process[_0xf7f3ab(0x247)][_0xf7f3ab(0x221)](0x2);helper[_0xf7f3ab(0x225)](),helper[_0xf7f3ab(0x1f6)](),_0x1f3d4e[_0xf7f3ab(0x213)](![]);const _0x231ea3=new BrowserStackSetup(_0x1f3d4e[_0xf7f3ab(0x247)],_0x7778cc[_0xf7f3ab(0x265)]);return _0x7778cc['RrIEh'](captureError,_0x7778cc[_0xf7f3ab(0x229)](require,_0x7778cc[_0xf7f3ab(0x24e)]),_0x1f3d4e[_0xf7f3ab(0x247)],_0x231ea3,_0x4ee0b2);})['demandCommand'](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a60_0x11aa08(0x20e)](null)[a60_0x11aa08(0x247)];function a60_0x39a3(){const _0xfedae1=['pw:*','newman','util','AJENP','alias','EVENTS','nightwatch','path','mocha/lib/cli/run.js','JASMINE','VcOnn','info','boolean','includes','framework','SDK_SETUP','handler','Sauef','ylCzE','.browserstack','isUndefined','start','INFO','ZlUQF','debug','vanilla','sendLogs','JdpRp','getConfigPath','zSUdr','stack','10VECalx','../helpers/BrowserStackSetup','KKhye','--package','-pw:channel','kxERS','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','./cucumber-js/command','NIGHTWATCH','Runs\x20the\x20binary\x20with\x20load\x20command','jasmine','--no-opts','VANILLA','./playwright/command','parserConfiguration','end','message','DEBUG','disableAutoCaptureLogs','ZEKjZ','spawn','./integrations/command','jOXWU','testcafe','2712616XjwuKk','--opts','push','bEKum','vYskJ','exitCode','--mochaRequire','setBrowserStackAutomationDisable','yskwj','load\x20[subcommand]','vupMZ','../helpers/helper','existsSync','option','514103jNYPdp','./v2/browserstackCLI','.local-not-set.json','GqaYV','./newman/command','qECjh','filter','DEBUG_FILE','kmHQH','integrations','help','2irKcQb','SDK_CLEANUP','Show\x20help','rHtOV','1296459bRIhZi','wukZS','wrap','SDKTestSuccessful','1938ngVByf','config','sfrDz','strict','Parsing\x20command\x20line\x20arguments','format','tbVYq','env','../helpers/utilities','assign','egjGJ','rkaQe','error','mNXDm','pw:channel','WNxHk','winstonLogger','slice','Ntvde','kRWMV','BROWSERSTACK_CONFIG_FILE_PATH','setTestObservabilityDisable','--no-config','getInstance','command','ZncEW','hnXNi','-pw:*','JEST','./jasmine/command','13765AqGnXU','CUCUMBER','../helpers/test-observability/constants','jest','OtnEc','QmoWr','playwright','sptAM','mocha','GlTkb','homedir','yargs','azoQG','codeceptjs','HELP','CODECEPTJS','./vanilla-js/command','qgDnY','--no-package','exitProcess','join','./mocha/command','vMJHQ','pw:channel\x20auto-capture\x20seed\x20failed:\x20','7742853SyKcIf','argv','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','mocha/lib/cli/commands.js','tsPRl','../helpers/performance/constants','7128473SqiOUh','./load/index','ejIsi','NEWMAN','PLAYWRIGHT','dot-notation','HST','21enrHzs','349240cdopWa','MOCHA','./codeceptjs/command','version','VERSION','Running\x20SDK\x20with\x20args\x20','child_process','ats','find','GEplw','YrfOh','--config','unlinkSync','node'];a60_0x39a3=function(){return _0xfedae1;};return a60_0x39a3();}!helper[a60_0x11aa08(0x276)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x11aa08(0x25b)&&console[a60_0x11aa08(0x21c)](a60_0x11aa08(0x248));
2
+ 'use strict';const a60_0x3e6f2a=a60_0x1bb0;(function(_0x20dbaf,_0x62bd97){const _0x17a75=a60_0x1bb0,_0x19a35e=_0x20dbaf();while(!![]){try{const _0x56f686=parseInt(_0x17a75(0x15b))/0x1+-parseInt(_0x17a75(0x168))/0x2*(parseInt(_0x17a75(0x1a4))/0x3)+-parseInt(_0x17a75(0x1c9))/0x4+parseInt(_0x17a75(0x1e0))/0x5*(-parseInt(_0x17a75(0x1c4))/0x6)+-parseInt(_0x17a75(0x1f7))/0x7+parseInt(_0x17a75(0x167))/0x8+parseInt(_0x17a75(0x150))/0x9*(parseInt(_0x17a75(0x1a1))/0xa);if(_0x56f686===_0x62bd97)break;else _0x19a35e['push'](_0x19a35e['shift']());}catch(_0x4a4bfd){_0x19a35e['push'](_0x19a35e['shift']());}}}(a60_0x54e6,0xdf39b));const fs=require('fs'),path=require(a60_0x3e6f2a(0x1e6)),util=require(a60_0x3e6f2a(0x1fb)),spawn=require(a60_0x3e6f2a(0x151))[a60_0x3e6f2a(0x1de)],{requireModule}=require(a60_0x3e6f2a(0x17b)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require('../helpers/performance/constants')['EVENTS'],helper=require(a60_0x3e6f2a(0x17b)),utilities=require('../helpers/utilities'),{default:BrowserStackSetup}=require(a60_0x3e6f2a(0x1f4)),{FRAMEWORKS}=require(a60_0x3e6f2a(0x1aa)),runIntegrations=require(a60_0x3e6f2a(0x19b)),yargs=require(a60_0x3e6f2a(0x156)),Constants=require(a60_0x3e6f2a(0x200)),BrowserstackCLI=require('./v2/browserstackCLI'),{isNewman}=require('./newman/helper'),logger=require(a60_0x3e6f2a(0x16d))[a60_0x3e6f2a(0x178)],origArgs=Object[a60_0x3e6f2a(0x1ea)]([],process['argv']),captureError=async(_0x5edd42,_0x13a990,_0x550ef8,_0x521863=null,_0x2ad1ca=![])=>{const _0x470b4d=a60_0x3e6f2a,_0x4d2856={'iAgQg':function(_0x3640d6,_0x7656b4,_0x24b335,_0x29d7c4){return _0x3640d6(_0x7656b4,_0x24b335,_0x29d7c4);},'IaChg':_0x470b4d(0x1e1)};try{logger['info'](_0x470b4d(0x1a9)+origArgs[_0x470b4d(0x157)]('\x20')),await _0x4d2856[_0x470b4d(0x154)](_0x5edd42,_0x13a990,_0x521863,_0x550ef8);}catch(_0x56d994){process['exitCode']=0x1,logger[_0x470b4d(0x189)](util[_0x470b4d(0x14f)](_0x56d994));const _0x338f7e={'globalException':util[_0x470b4d(0x14f)]('%j',_0x56d994)};PerformanceTester[_0x470b4d(0x1d5)](PerformanceEvents[_0x470b4d(0x1bd)],![],util[_0x470b4d(0x14f)](_0x56d994));if(helper[_0x470b4d(0x181)](global[_0x470b4d(0x1ee)])&&helper[_0x470b4d(0x181)](global[_0x470b4d(0x1f6)]))return;try{utilities[_0x470b4d(0x19f)](_0x4d2856[_0x470b4d(0x172)],_0x338f7e,global[_0x470b4d(0x1ee)],global['framework']);}catch(_0x3c175c){logger[_0x470b4d(0x16c)]('Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20'+_0x3c175c[_0x470b4d(0x1c1)]);}try{await helper['sendLogs'](global['config']);}catch(_0x55f1f9){logger[_0x470b4d(0x16c)]('Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20'+_0x55f1f9[_0x470b4d(0x1c1)]);}PerformanceTester[_0x470b4d(0x1d5)](PerformanceEvents[_0x470b4d(0x1bd)],![],util['format'](_0x56d994));}finally{!_0x2ad1ca&&await BrowserstackCLI[_0x470b4d(0x1e7)]()['stop'](),PerformanceTester[_0x470b4d(0x18a)](PerformanceEvents[_0x470b4d(0x1a3)]);}};try{const browserstackFolderPath=path[a60_0x3e6f2a(0x157)](helper[a60_0x3e6f2a(0x155)](),a60_0x3e6f2a(0x1dd));if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a60_0x3e6f2a(0x157)](browserstackFolderPath,'.local-not-set.json');fs[a60_0x3e6f2a(0x1ed)](filePath)&&fs[a60_0x3e6f2a(0x1d9)](filePath);}}catch(a60_0x3a4f61){logger[a60_0x3e6f2a(0x16c)](a60_0x3e6f2a(0x182)+a60_0x3a4f61['message']);}process['argv'][a60_0x3e6f2a(0x170)](a60_0x3e6f2a(0x159))&&(!process[a60_0x3e6f2a(0x19d)][a60_0x3e6f2a(0x170)](a60_0x3e6f2a(0x1bf))&&process[a60_0x3e6f2a(0x19d)][a60_0x3e6f2a(0x1b1)](a60_0x3e6f2a(0x171)),!process['argv'][a60_0x3e6f2a(0x191)](_0x30c23d=>_0x30c23d[a60_0x3e6f2a(0x170)](a60_0x3e6f2a(0x1fc)))&&process[a60_0x3e6f2a(0x19d)][a60_0x3e6f2a(0x1b1)](a60_0x3e6f2a(0x1dc)),!process[a60_0x3e6f2a(0x19d)][a60_0x3e6f2a(0x170)](a60_0x3e6f2a(0x1c8))&&process[a60_0x3e6f2a(0x19d)][a60_0x3e6f2a(0x1b1)](a60_0x3e6f2a(0x18c)),helper['findAndReplace'](process[a60_0x3e6f2a(0x19d)],a60_0x3e6f2a(0x18f),a60_0x3e6f2a(0x1be)));PerformanceTester['start'](PerformanceEvents[a60_0x3e6f2a(0x1bd)]);function a60_0x1bb0(_0x4a5b9b,_0x180703){const _0x54e6c0=a60_0x54e6();return a60_0x1bb0=function(_0x1bb075,_0xdccca4){_0x1bb075=_0x1bb075-0x14d;let _0x201a65=_0x54e6c0[_0x1bb075];return _0x201a65;},a60_0x1bb0(_0x4a5b9b,_0x180703);}const a60_0x3dc910={};function a60_0x54e6(){const _0x2f8c32=['xNDLE','tMUmk','EfjhY','sdygD','some','HELP','run','./jasmine/command','mocha/lib/cli/run.js','testcafe','SDK_SETUP','--mochaRequire','--opts','PLAYWRIGHT','stack','pw:channel\x20auto-capture\x20seed\x20failed:\x20','getPwChannelLogPath','30YKjMBN','./mocha/command','./load/index','iQuqr','--package','5563612UZyWMg','TESTCAFE','BGahl','option','dLoXL','pw:channel','JEST','XAcBH','./jest/command','env','vAhtc','../../ats/src/index','end','gvFtm','dot-notation','BTrqK','unlinkSync','hlsfJ','help','--no-config','.browserstack','spawn','slice','684425hNSaWQ','SDKTestSuccessful','strict','./vanilla-js/command','usage:\x20$0\x20<command>\x20[args]','newman','path','getInstance','SWSVn','Show\x20help','assign','codeceptjs','playwright','existsSync','config','mCtbr','cqiDO','./codeceptjs/command','jasmine','oQuJy','../helpers/BrowserStackSetup','GtUCn','framework','11439750Svsecu','TruEq','lxaXH','getConfigPath','util','--config','fIHbD','LXyPH','./newman/command','./utils/constants','GHbxs','VANILLA','format','15477138SkHcra','child_process','MCEkO','setTestObservabilityDisable','iAgQg','homedir','yargs','join','Parsing\x20command\x20line\x20arguments','mocha','NIGHTWATCH','1646803AzblrF','./cucumber-js/command','ikaXv','nightwatch','./testcafe/command','DEBUG','RrctK','vdFeY','Ojlps','command','-pw:*','xJoHx','6878720WnQdVW','4pEDIrZ','LZmKg','INFO','pw:*','debug','../helpers/logger','GRtYV','HST','includes','--no-opts','IaChg','MOCHA','handler','version','RAecI','oOcqd','winstonLogger','nGcvl','split','../helpers/helper','tpdXV','CwruQ','vanilla','JASMINE','demandCommand','isUndefined','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','PMpRj','cucumber-js','Qkyck','DEBUG_FILE','NBhhE','djEMB','error','start','wGFom','--no-package','NkyMu','integrations','--require','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','find','vNDdN','./playwright/command','CUCUMBER','Runs\x20the\x20binary\x20with\x20load\x20command','setBrowserStackAutomationDisable','ZEwxe','ats','exitProcess','NYIaO','./integrations/command','node','argv','jest','fireFunnelTestEvent','IBPbQ','20WyBZOV','JEchb','SDK_CLEANUP','1983147NLdfGL','alias','rpyNv','boolean','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','Running\x20SDK\x20with\x20args\x20','../helpers/test-observability/constants','Xuzqk','IIcZW','DwjAB','map','vnXUa','-pw:channel','push','filter'];a60_0x54e6=function(){return _0x2f8c32;};return a60_0x54e6();}a60_0x3dc910[a60_0x3e6f2a(0x1d7)]=![];const argv=yargs['parserConfiguration'](a60_0x3dc910)['usage'](a60_0x3e6f2a(0x1e4))['alias']('v',a60_0x3e6f2a(0x175))['describe']('v')[a60_0x3e6f2a(0x1a5)]('h','help')['help'](a60_0x3e6f2a(0x1db))['showHelpOnFail'](!![],Constants['VERSION'][a60_0x3e6f2a(0x1b8)])[a60_0x3e6f2a(0x164)](a60_0x3e6f2a(0x19e),Constants[a60_0x3e6f2a(0x1cf)][a60_0x3e6f2a(0x16a)],function(_0x131ce4){const _0x57d5dc=a60_0x3e6f2a,_0x480f77={'cqiDO':_0x57d5dc(0x19e),'SWSVn':function(_0x448111,_0x5710bb,_0x20889d,_0x3af448,_0xdd50e0,_0x8b3a05){return _0x448111(_0x5710bb,_0x20889d,_0x3af448,_0xdd50e0,_0x8b3a05);},'MCEkO':function(_0x3fff3c,_0xfff416){return _0x3fff3c(_0xfff416);},'IBPbQ':_0x57d5dc(0x1d1)},_0x533c8f=process[_0x57d5dc(0x19d)][_0x57d5dc(0x1df)](0x2);helper['setTestObservabilityDisable'](),helper[_0x57d5dc(0x196)](),_0x131ce4[_0x57d5dc(0x1e2)](![]);const _0x2ba831=new BrowserStackSetup(_0x131ce4[_0x57d5dc(0x19d)],_0x480f77[_0x57d5dc(0x1f0)]);return _0x480f77[_0x57d5dc(0x1e8)](captureError,_0x480f77[_0x57d5dc(0x152)](require,_0x480f77[_0x57d5dc(0x1a0)]),_0x131ce4[_0x57d5dc(0x19d)],_0x2ba831,_0x533c8f,!![]);})['command']('jasmine',Constants[a60_0x3e6f2a(0x17f)][a60_0x3e6f2a(0x16a)],function(_0x2d2ded){const _0x2ac343=a60_0x3e6f2a,_0x3d077a={'ZwhgC':_0x2ac343(0x1f2),'TPknJ':function(_0x21e206,_0x310f29,_0x476f27,_0x4b773d,_0x5ee91c,_0xd09dcf){return _0x21e206(_0x310f29,_0x476f27,_0x4b773d,_0x5ee91c,_0xd09dcf);},'ZEwxe':function(_0x16adcf,_0x57b46c){return _0x16adcf(_0x57b46c);},'NBhhE':_0x2ac343(0x1ba)},_0x42faff=process[_0x2ac343(0x19d)][_0x2ac343(0x1df)](0x2);helper[_0x2ac343(0x153)](),helper[_0x2ac343(0x196)](),_0x2d2ded['strict'](![]);const _0x26c465=new BrowserStackSetup(_0x2d2ded[_0x2ac343(0x19d)],_0x3d077a['ZwhgC']);return _0x3d077a['TPknJ'](captureError,_0x3d077a[_0x2ac343(0x197)](require,_0x3d077a[_0x2ac343(0x187)]),_0x2d2ded[_0x2ac343(0x19d)],_0x26c465,_0x42faff,!![]);})[a60_0x3e6f2a(0x164)]('mocha',Constants[a60_0x3e6f2a(0x173)][a60_0x3e6f2a(0x16a)],_0x53bf78=>{const _0x4b3ed5=a60_0x3e6f2a,_0x3b0886={'oOcqd':function(_0x1c8b24,_0x462248,_0x5a3e18,_0x35158b){return _0x1c8b24(_0x462248,_0x5a3e18,_0x35158b);},'vdFeY':function(_0x305098,_0x51c773){return _0x305098(_0x51c773);},'BWiqg':_0x4b3ed5(0x1c5),'Ojlps':_0x4b3ed5(0x159),'xJoHx':_0x4b3ed5(0x158),'NYIaO':function(_0x4d001a,_0x497f44,_0x4a55ec){return _0x4d001a(_0x497f44,_0x4a55ec);},'BGahl':_0x4b3ed5(0x1bb),'djEMB':function(_0x271e80,_0x1e1fdb,_0x14da97){return _0x271e80(_0x1e1fdb,_0x14da97);},'tMUmk':'mocha/lib/cli/commands.js','lxaXH':'mocha/lib/cli/cli.js','ZCNLs':function(_0x52c0c5){return _0x52c0c5();}};process[_0x4b3ed5(0x19d)]=process[_0x4b3ed5(0x19d)]['slice'](0x1),helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable']();const _0x40eaac=new BrowserStackSetup(_0x53bf78[_0x4b3ed5(0x19d)],_0x3b0886[_0x4b3ed5(0x163)]);logger['debug'](_0x3b0886[_0x4b3ed5(0x166)]);const _0x13874d=_0x3b0886[_0x4b3ed5(0x19a)](requireModule,_0x3b0886[_0x4b3ed5(0x1cb)],_0x3b0886[_0x4b3ed5(0x163)]),_0x2dd3cf=_0x3b0886['djEMB'](requireModule,_0x3b0886[_0x4b3ed5(0x1b4)],_0x3b0886[_0x4b3ed5(0x163)]);delete _0x13874d[_0x4b3ed5(0x174)],_0x13874d['handler']=function(_0x17eb3a){const _0x28e5e6=_0x4b3ed5;return _0x3b0886[_0x28e5e6(0x177)](captureError,_0x3b0886[_0x28e5e6(0x162)](require,_0x3b0886['BWiqg']),_0x17eb3a,_0x40eaac);},_0x2dd3cf[_0x4b3ed5(0x1b9)]=_0x13874d;const {main:_0x47634f}=_0x3b0886[_0x4b3ed5(0x188)](requireModule,_0x3b0886[_0x4b3ed5(0x1f9)],_0x3b0886[_0x4b3ed5(0x163)]);_0x3b0886['ZCNLs'](_0x47634f);})[a60_0x3e6f2a(0x164)]('cucumber-js',Constants[a60_0x3e6f2a(0x194)][a60_0x3e6f2a(0x16a)],function(_0x287af8){const _0x2872f2=a60_0x3e6f2a,_0x14fbc8={'UeffJ':_0x2872f2(0x184),'vNDdN':function(_0x556528,_0x38e619,_0x41d7fc,_0x29deb3,_0x540a0e,_0x28b410){return _0x556528(_0x38e619,_0x41d7fc,_0x29deb3,_0x540a0e,_0x28b410);},'oQuJy':function(_0x5e9e1a,_0x40a90e){return _0x5e9e1a(_0x40a90e);},'LZmKg':_0x2872f2(0x15c)},_0x7520f2=process[_0x2872f2(0x19d)][_0x2872f2(0x1df)](0x2),_0x5aace2=new BrowserStackSetup(_0x287af8[_0x2872f2(0x19d)],_0x14fbc8['UeffJ']);return _0x14fbc8[_0x2872f2(0x192)](captureError,_0x14fbc8[_0x2872f2(0x1f3)](require,_0x14fbc8[_0x2872f2(0x169)]),_0x287af8['argv'],_0x5aace2,_0x7520f2,!![]);})[a60_0x3e6f2a(0x164)](a60_0x3e6f2a(0x19c),Constants[a60_0x3e6f2a(0x14e)][a60_0x3e6f2a(0x16a)],function(_0x42340b){const _0x3b87b1=a60_0x3e6f2a,_0x3985c6={'Xuzqk':_0x3b87b1(0x17e),'TruEq':function(_0x8b906a,_0x36e780){return _0x8b906a(_0x36e780);},'nGcvl':_0x3b87b1(0x1e5),'rpyNv':function(_0xfff90,_0x121bf1,_0x576803,_0x3d7574,_0x18d84e){return _0xfff90(_0x121bf1,_0x576803,_0x3d7574,_0x18d84e);},'ikaXv':function(_0x306959,_0x1d0c63){return _0x306959(_0x1d0c63);},'IIcZW':_0x3b87b1(0x1ff),'dLoXL':function(_0x25184a,_0x46603f,_0x58fea2,_0x271391,_0x1357a9){return _0x25184a(_0x46603f,_0x58fea2,_0x271391,_0x1357a9);},'gXaUN':_0x3b87b1(0x1e3)},_0x2874bd=process[_0x3b87b1(0x19d)][_0x3b87b1(0x1df)](0x2),_0xb68e12=new BrowserStackSetup(_0x42340b[_0x3b87b1(0x19d)],_0x3985c6[_0x3b87b1(0x1ab)]),_0x52e67d=_0xb68e12?_0xb68e12[_0x3b87b1(0x1ee)]:null;if(_0x3985c6[_0x3b87b1(0x1f8)](isNewman,_0x52e67d))return _0xb68e12[_0x3b87b1(0x1f6)]=_0x3985c6[_0x3b87b1(0x179)],global[_0x3b87b1(0x1f6)]=_0x3985c6[_0x3b87b1(0x179)],_0x3985c6[_0x3b87b1(0x1a6)](captureError,_0x3985c6['ikaXv'](require,_0x3985c6[_0x3b87b1(0x1ac)]),_0x42340b['argv'],_0xb68e12,_0x2874bd);return _0x3985c6[_0x3b87b1(0x1cd)](captureError,_0x3985c6[_0x3b87b1(0x15d)](require,_0x3985c6['gXaUN']),_0x42340b['argv'],_0xb68e12,_0x2874bd);})[a60_0x3e6f2a(0x164)](a60_0x3e6f2a(0x15e),Constants[a60_0x3e6f2a(0x15a)][a60_0x3e6f2a(0x16a)],function(_0x1d957e){const _0xdc3779=a60_0x3e6f2a,_0x5a1949={'gCCZu':_0xdc3779(0x15e),'mZmWc':function(_0x7b1e,_0x1adb6b,_0x545fe5,_0x4c4ecd,_0x269469){return _0x7b1e(_0x1adb6b,_0x545fe5,_0x4c4ecd,_0x269469);},'NkyMu':function(_0x2f10e7,_0x5942f1){return _0x2f10e7(_0x5942f1);},'lHRPs':'./nightwatch/command'},_0x340eb0=process['argv'][_0xdc3779(0x1df)](0x2),_0x56879f=new BrowserStackSetup(_0x1d957e[_0xdc3779(0x19d)],_0x5a1949['gCCZu']);return _0x5a1949['mZmWc'](captureError,_0x5a1949[_0xdc3779(0x18d)](require,_0x5a1949['lHRPs']),_0x1d957e[_0xdc3779(0x19d)],_0x56879f,_0x340eb0);})[a60_0x3e6f2a(0x164)](a60_0x3e6f2a(0x1eb),Constants['CODECEPTJS'][a60_0x3e6f2a(0x16a)],function(_0x129c3a){const _0x159531=a60_0x3e6f2a,_0x15e80b={'EfjhY':_0x159531(0x1eb),'CwruQ':function(_0x1518d3,_0xeba36c,_0x11d668,_0x2d0549,_0x22f583){return _0x1518d3(_0xeba36c,_0x11d668,_0x2d0549,_0x22f583);},'fIHbD':function(_0x14993a,_0x3654c4){return _0x14993a(_0x3654c4);},'Ozypd':_0x159531(0x1f1)},_0x813784=process['argv']['slice'](0x2),_0x3bcf1d=new BrowserStackSetup(_0x129c3a[_0x159531(0x19d)],_0x15e80b[_0x159531(0x1b5)]);return _0x15e80b[_0x159531(0x17d)](captureError,_0x15e80b[_0x159531(0x1fd)](require,_0x15e80b['Ozypd']),_0x129c3a['argv'],_0x3bcf1d,_0x813784);})[a60_0x3e6f2a(0x164)](a60_0x3e6f2a(0x198),Constants[a60_0x3e6f2a(0x16f)]['INFO'],function(_0x19af71){const _0x1310c6=a60_0x3e6f2a,_0x1d0df5={'wGFom':function(_0x2bbb74,_0xb51739,_0x4d1fe9){return _0x2bbb74(_0xb51739,_0x4d1fe9);},'vAhtc':function(_0x12511a,_0x182f97){return _0x12511a(_0x182f97);},'mCtbr':_0x1310c6(0x1d4)},_0x136b73=process['argv'][_0x1310c6(0x1df)](0x2);return _0x1d0df5[_0x1310c6(0x18b)](captureError,_0x1d0df5[_0x1310c6(0x1d3)](require,_0x1d0df5[_0x1310c6(0x1ef)]),_0x19af71);})[a60_0x3e6f2a(0x164)](a60_0x3e6f2a(0x18e),Constants['INTEGRATIONS'][a60_0x3e6f2a(0x16a)],function(_0x2cb33f){const _0x4e814d={'tyOEn':function(_0x47931f,_0x5a4a82){return _0x47931f(_0x5a4a82);}};return _0x4e814d['tyOEn'](runIntegrations,_0x2cb33f);})['command'](a60_0x3e6f2a(0x1ec),Constants[a60_0x3e6f2a(0x1c0)][a60_0x3e6f2a(0x16a)],function(_0x3e02b1){const _0x30bc20=a60_0x3e6f2a,_0x9aa545={'DwjAB':_0x30bc20(0x1ce),'Qkyck':function(_0x3e3643,_0x4c37b4){return _0x3e3643&&_0x4c37b4;},'iQuqr':function(_0x349a7,_0x4ccfdf,_0x17f412,_0x5d4191,_0x18c7be,_0x32bb8f){return _0x349a7(_0x4ccfdf,_0x17f412,_0x5d4191,_0x18c7be,_0x32bb8f);},'RAecI':function(_0x878d93,_0x87c460){return _0x878d93(_0x87c460);},'GHbxs':_0x30bc20(0x193)},_0x2d8871=process[_0x30bc20(0x19d)][_0x30bc20(0x1df)](0x2);helper[_0x30bc20(0x1fa)](process[_0x30bc20(0x19d)])&&(process[_0x30bc20(0x1d2)]['BROWSERSTACK_CONFIG_FILE_PATH']=helper[_0x30bc20(0x1fa)](process[_0x30bc20(0x19d)]));helper[_0x30bc20(0x153)](),helper[_0x30bc20(0x196)]();const _0x4745c2=new BrowserStackSetup(_0x3e02b1[_0x30bc20(0x19d)],FRAMEWORKS['PLAYWRIGHT']);try{if(!_0x4745c2[_0x30bc20(0x1ee)]||!_0x4745c2[_0x30bc20(0x1ee)]['disableAutoCaptureLogs']){const _0x4cc38b=_0x9aa545[_0x30bc20(0x1ad)],_0x3b5f05=process[_0x30bc20(0x1d2)][_0x30bc20(0x160)]||'',_0x60d3aa=_0x3b5f05[_0x30bc20(0x17a)](',')[_0x30bc20(0x1ae)](_0x4d96ec=>_0x4d96ec['trim']())[_0x30bc20(0x1b2)](Boolean),_0x37c428=_0x60d3aa['some'](_0x5715a8=>_0x5715a8===_0x30bc20(0x1b0)||_0x5715a8===_0x30bc20(0x165)||_0x5715a8==='-*'),_0x2f9b33=_0x60d3aa[_0x30bc20(0x1b7)](_0x521214=>_0x521214===_0x4cc38b||_0x521214===_0x30bc20(0x16b)||_0x521214==='*');if(_0x9aa545[_0x30bc20(0x185)](!_0x37c428,!_0x2f9b33)){const _0x32debd=helper[_0x30bc20(0x1c3)]();_0x32debd&&(process[_0x30bc20(0x1d2)][_0x30bc20(0x160)]=_0x3b5f05?_0x3b5f05+','+_0x4cc38b:_0x4cc38b,!process[_0x30bc20(0x1d2)][_0x30bc20(0x186)]&&(process[_0x30bc20(0x1d2)]['DEBUG_FILE']=_0x32debd));}}}catch(_0x4d0833){logger[_0x30bc20(0x16c)](_0x30bc20(0x1c2)+util[_0x30bc20(0x14f)](_0x4d0833));}return _0x9aa545[_0x30bc20(0x1c7)](captureError,_0x9aa545[_0x30bc20(0x176)](require,_0x9aa545[_0x30bc20(0x14d)]),_0x3e02b1['argv'],_0x4745c2,_0x2d8871,!![]);})['command'](a60_0x3e6f2a(0x1bc),Constants[a60_0x3e6f2a(0x1ca)]['INFO'],function(_0x984a51){const _0x68b229=a60_0x3e6f2a,_0x196218={'vnXUa':_0x68b229(0x1bc),'RrctK':function(_0x24a910,_0x21282e,_0xbfc545,_0x1319be,_0x49609b,_0x1c8600){return _0x24a910(_0x21282e,_0xbfc545,_0x1319be,_0x49609b,_0x1c8600);},'gvFtm':function(_0x2f1e8c,_0x48a0db){return _0x2f1e8c(_0x48a0db);},'LXyPH':_0x68b229(0x15f)},_0x45351f=process[_0x68b229(0x19d)]['slice'](0x2),_0x2e6372=new BrowserStackSetup(_0x984a51[_0x68b229(0x19d)],_0x196218[_0x68b229(0x1af)]);return _0x196218[_0x68b229(0x161)](captureError,_0x196218[_0x68b229(0x1d6)](require,_0x196218[_0x68b229(0x1fe)]),_0x984a51['argv'],_0x2e6372,_0x45351f,!![]);})[a60_0x3e6f2a(0x164)]('load\x20[subcommand]',a60_0x3e6f2a(0x195),function(_0x380731){const _0x5b88fc=a60_0x3e6f2a,_0x19046c={};_0x19046c[_0x5b88fc(0x1d8)]='help',_0x19046c[_0x5b88fc(0x183)]=_0x5b88fc(0x1a7),_0x19046c[_0x5b88fc(0x1f5)]=_0x5b88fc(0x1e9);const _0x12460a=_0x19046c;return _0x380731[_0x5b88fc(0x1db)](![])[_0x5b88fc(0x1cc)](_0x12460a[_0x5b88fc(0x1d8)],{'alias':'h','type':_0x12460a[_0x5b88fc(0x183)],'describe':_0x12460a[_0x5b88fc(0x1f5)]})[_0x5b88fc(0x1e2)](![])[_0x5b88fc(0x199)](![]);},function(_0x104e91){const _0x505e99=a60_0x3e6f2a,_0xabd43c={'hlsfJ':function(_0x13ce34,_0x1f8574,_0x4fabb2){return _0x13ce34(_0x1f8574,_0x4fabb2);},'xNDLE':function(_0x53dc8c,_0x355609){return _0x53dc8c(_0x355609);},'sdygD':_0x505e99(0x1c6)},_0x3dc0b0={};return _0x3dc0b0[_0x505e99(0x19d)]=_0x104e91,_0xabd43c[_0x505e99(0x1da)](captureError,_0xabd43c[_0x505e99(0x1b3)](require,_0xabd43c[_0x505e99(0x1b6)]),_0x3dc0b0);})[a60_0x3e6f2a(0x164)]('newman',Constants['NEWMAN'][a60_0x3e6f2a(0x16a)],function(_0x157cdd){const _0x13dfbe=a60_0x3e6f2a,_0x5e15b0={'tpdXV':'newman','JEchb':function(_0x33c3df,_0xb253a5,_0x48bca6,_0xf061fc,_0x28d0fb){return _0x33c3df(_0xb253a5,_0x48bca6,_0xf061fc,_0x28d0fb);},'XAcBH':function(_0x244941,_0x300aa9){return _0x244941(_0x300aa9);},'GRtYV':_0x13dfbe(0x1ff)},_0x33f308=process[_0x13dfbe(0x19d)][_0x13dfbe(0x1df)](0x2);helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable'](),_0x157cdd[_0x13dfbe(0x1e2)](![]);const _0x143a1a=new BrowserStackSetup(_0x157cdd['argv'],_0x5e15b0[_0x13dfbe(0x17c)]);return _0x5e15b0[_0x13dfbe(0x1a2)](captureError,_0x5e15b0[_0x13dfbe(0x1d0)](require,_0x5e15b0[_0x13dfbe(0x16e)]),_0x157cdd['argv'],_0x143a1a,_0x33f308);})[a60_0x3e6f2a(0x180)](0x1,a60_0x3e6f2a(0x1a8))['wrap'](null)['argv'];!helper[a60_0x3e6f2a(0x181)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a60_0x3e6f2a(0x198)&&console[a60_0x3e6f2a(0x189)](a60_0x3e6f2a(0x190));
package/src/bin/setup.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const a61_0x2e0803=a61_0x192a;(function(_0x4fa7a2,_0x1852e8){const _0x5519d3=a61_0x192a,_0x4dc686=_0x4fa7a2();while(!![]){try{const _0x29d4b1=parseInt(_0x5519d3(0x8d))/0x1*(parseInt(_0x5519d3(0xa6))/0x2)+parseInt(_0x5519d3(0xb7))/0x3+parseInt(_0x5519d3(0xb6))/0x4+-parseInt(_0x5519d3(0xbd))/0x5*(-parseInt(_0x5519d3(0x8a))/0x6)+-parseInt(_0x5519d3(0xa1))/0x7+parseInt(_0x5519d3(0xa0))/0x8+parseInt(_0x5519d3(0xb4))/0x9*(-parseInt(_0x5519d3(0xac))/0xa);if(_0x29d4b1===_0x1852e8)break;else _0x4dc686['push'](_0x4dc686['shift']());}catch(_0xbab254){_0x4dc686['push'](_0x4dc686['shift']());}}}(a61_0x4a95,0x1b3cd));const fs=require('fs'),helper=require(a61_0x2e0803(0xba)),utilities=require(a61_0x2e0803(0xc1)),yaml=require(a61_0x2e0803(0x8b)),yargs=require(a61_0x2e0803(0xc4)),logger=require(a61_0x2e0803(0x83))[a61_0x2e0803(0xbe)],configFileTemplate=__dirname+'/../../browserstack.yml.sample',configFileTemplatePW=__dirname+a61_0x2e0803(0x80),configFile=process[a61_0x2e0803(0xbc)]()+a61_0x2e0803(0xa5),packageFile=process[a61_0x2e0803(0xbc)]()+'/package.json',frameworks=['mocha','jest',a61_0x2e0803(0x8e),a61_0x2e0803(0x93),a61_0x2e0803(0xa2),a61_0x2e0803(0xaf),'playwright'];let config;logger[a61_0x2e0803(0x97)](a61_0x2e0803(0xa8)),createConfigurationFile(yargs['argv'][a61_0x2e0803(0x9f)],yargs[a61_0x2e0803(0xb9)]['key'],yargs[a61_0x2e0803(0xb9)]['playwright']);try{sdkSetup();}catch(a61_0x1a8d1f){logger[a61_0x2e0803(0xbb)](a61_0x2e0803(0xb0)+a61_0x1a8d1f);}function a61_0x192a(_0xd1bc97,_0x391fb3){const _0x4a9597=a61_0x4a95();return a61_0x192a=function(_0x192aec,_0x307fda){_0x192aec=_0x192aec-0x7e;let _0x185d29=_0x4a9597[_0x192aec];return _0x185d29;},a61_0x192a(_0xd1bc97,_0x391fb3);}addScriptInPackageJson();function createConfigurationFile(_0x37bb04,_0x58334e,_0x45d0d1=![]){const _0x573601=a61_0x2e0803,_0x9f8732={};_0x9f8732[_0x573601(0x90)]='utf8',_0x9f8732[_0x573601(0x9c)]=_0x573601(0x98),_0x9f8732[_0x573601(0xb8)]=_0x573601(0xbf);const _0x34b62b=_0x9f8732;try{let _0x4869ea=fs[_0x573601(0x95)](_0x45d0d1?configFileTemplatePW:configFileTemplate,_0x34b62b[_0x573601(0x90)]);_0x37bb04&&(_0x4869ea=_0x4869ea['replace'](_0x34b62b[_0x573601(0x9c)],_0x37bb04)),_0x58334e&&(_0x4869ea=_0x4869ea[_0x573601(0x96)](_0x34b62b[_0x573601(0xb8)],_0x58334e)),config=yaml[_0x573601(0x88)](_0x4869ea),fs[_0x573601(0xa7)](configFile,_0x4869ea,_0xf3aa05=>{const _0x176490=_0x573601;_0xf3aa05&&logger[_0x176490(0x7f)](_0xf3aa05);});}catch(_0x5dda0c){logger[_0x573601(0x7f)](_0x5dda0c);}}function addPostInstallScript(_0x545f7b,_0xedc550){const _0x162625=a61_0x2e0803,_0x597c44={};_0x597c44[_0x162625(0xae)]=_0x162625(0xb5),_0x597c44[_0x162625(0xc5)]=_0x162625(0xc2),_0x597c44[_0x162625(0x9d)]='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0x5603d5=_0x597c44;let _0x16d127=_0x545f7b[_0x5603d5[_0x162625(0xae)]];if(_0x16d127&&_0x16d127[_0x162625(0x81)](_0x5603d5['XAwhs']))return;!_0x16d127?_0x16d127=_0x5603d5[_0x162625(0xc5)]:_0x16d127+=_0x5603d5['bQnsY'],_0xedc550[_0x162625(0xaa)]([_0x5603d5[_0x162625(0xae)],_0x16d127]);}function addScriptInPackageJson(){const _0x1de049=a61_0x2e0803,_0x4f96e9={'MrLGK':_0x1de049(0xb2),'crQOt':function(_0x253c46,_0x4922fa){return _0x253c46<_0x4922fa;},'scfJe':function(_0x2133f0,_0x37e0e6,_0x1cbd8c){return _0x2133f0(_0x37e0e6,_0x1cbd8c);},'dwqrq':function(_0x3e5a87,_0x3576c5){return _0x3e5a87!==_0x3576c5;},'fZYZe':_0x1de049(0x85)},_0x131c1c=JSON[_0x1de049(0x82)](fs['readFileSync'](packageFile,_0x4f96e9[_0x1de049(0xc6)])),_0x5c29b6=[];for(let _0x3ad1e2=0x0;_0x4f96e9[_0x1de049(0x91)](_0x3ad1e2,frameworks[_0x1de049(0xad)]);_0x3ad1e2+=0x1){const _0x1a92d2=_0x4f96e9[_0x1de049(0x8f)](findScriptsWithFramework,_0x131c1c['scripts'],frameworks[_0x3ad1e2]);for(let _0x277b43=0x0;_0x4f96e9[_0x1de049(0x91)](_0x277b43,_0x1a92d2['length']);_0x277b43+=0x1){_0x5c29b6[_0x1de049(0xaa)](_0x4f96e9[_0x1de049(0x8f)](getUpdatedCommand,_0x131c1c[_0x1de049(0x7e)],_0x1a92d2[_0x277b43]));}_0x4f96e9[_0x1de049(0x8f)](addPostInstallScript,_0x131c1c[_0x1de049(0x7e)],_0x5c29b6);}const _0x5b719c={..._0x131c1c['scripts']},_0x94315=_0x5b719c;for(let _0x23ad3c=0x0;_0x4f96e9[_0x1de049(0x91)](_0x23ad3c,_0x5c29b6[_0x1de049(0xad)]);_0x23ad3c+=0x1){_0x94315[_0x5c29b6[_0x23ad3c][0x0]]=_0x5c29b6[_0x23ad3c][0x1];}_0x4f96e9['dwqrq'](JSON['stringify'](_0x131c1c[_0x1de049(0x7e)]),JSON[_0x1de049(0xa3)](_0x94315))&&(logger[_0x1de049(0x97)](_0x4f96e9[_0x1de049(0xc0)]),_0x131c1c[_0x1de049(0x7e)]=_0x94315,fs[_0x1de049(0xa7)](packageFile,JSON[_0x1de049(0xa3)](_0x131c1c,null,0x2),_0x5c42bf=>{const _0x357ad2=_0x1de049;_0x5c42bf&&logger[_0x357ad2(0x7f)](_0x5c42bf);}));};function findScriptsWithFramework(_0x486d25,_0x265016){const _0x3db94e=a61_0x2e0803,_0x2cc4a6={};_0x2cc4a6[_0x3db94e(0x92)]=function(_0x2f0748,_0x54aeef){return _0x2f0748<_0x54aeef;},_0x2cc4a6[_0x3db94e(0x87)]='browserstack-node-sdk';const _0x269f10=_0x2cc4a6,_0x349183=[],_0x311d0f=Object[_0x3db94e(0x89)](_0x486d25);for(let _0x10ce82=0x0;_0x269f10[_0x3db94e(0x92)](_0x10ce82,_0x311d0f[_0x3db94e(0xad)]);_0x10ce82+=0x1){_0x311d0f[_0x10ce82][0x1][_0x3db94e(0x81)](_0x265016)&&!_0x311d0f[_0x10ce82][0x1][_0x3db94e(0x81)](_0x269f10[_0x3db94e(0x87)])&&_0x349183[_0x3db94e(0xaa)](_0x311d0f[_0x10ce82][0x0]);}return _0x349183;}function getUpdatedCommand(_0x3254a2,_0x3cf98a){const _0x4d77d3=a61_0x2e0803,_0x257757={};_0x257757[_0x4d77d3(0x9a)]=function(_0x124046,_0x568dd6){return _0x124046!==_0x568dd6;},_0x257757[_0x4d77d3(0xc3)]=_0x4d77d3(0x84),_0x257757[_0x4d77d3(0xb1)]=function(_0x16ab6c,_0x54359e){return _0x16ab6c===_0x54359e;};const _0x769420=_0x257757,_0x2b189e=_0x3cf98a+'-browserstack',_0x4f5d94=_0x3254a2[_0x3cf98a],_0x4d9a19=_0x4f5d94[_0x4d77d3(0x8c)]('\x20');for(const _0x14a3e0 of frameworks){if(_0x769420[_0x4d77d3(0x9a)](_0x4d9a19[_0x4d77d3(0xa9)](_0x14a3e0),-0x1)){_0x4d9a19[_0x4d77d3(0xab)](_0x4d9a19[_0x4d77d3(0xa9)](_0x14a3e0),0x0,_0x769420[_0x4d77d3(0xc3)]);break;}}let _0x55dfdb=_0x4d9a19['join']('\x20');return _0x769420[_0x4d77d3(0xb1)](_0x55dfdb,_0x4f5d94)&&(_0x55dfdb=_0x4d77d3(0xb3)+_0x4f5d94),[_0x2b189e,_0x55dfdb];}function sdkSetup(){const _0x48ca64=a61_0x2e0803,_0x5eb8aa={};_0x5eb8aa['gUnUi']='node-setup',_0x5eb8aa['QxRMt']=_0x48ca64(0x86);const _0x2a20be=_0x5eb8aa;if(helper[_0x48ca64(0xa4)](config))return;config[_0x48ca64(0x99)]=_0x2a20be[_0x48ca64(0x9e)];try{utilities[_0x48ca64(0x94)](_0x2a20be['QxRMt'],{},config,'');}catch(_0x274e54){logger[_0x48ca64(0xbb)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x274e54);}}function a61_0x4a95(){const _0x33333a=['scfJe','QEzOm','crQOt','nKihD','node','fireFunnelTestEvent','readFileSync','replace','info','YOUR_USERNAME','source','RxOpD','Setup\x20completed','wZvmU','bQnsY','gUnUi','username','126672zhWAsy','1268078yfLfAu','nightwatch','stringify','isUndefined','/browserstack.yml','52310ektcRX','writeFileSync','Creating\x20configuration\x20file...','indexOf','push','splice','40lLoJaG','length','GhjNo','codeceptjs','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','BiuhR','utf8','browserstack-node-sdk\x20','756972PVzcRx','postinstall','332644buWQSd','537777wokPsx','yiZcy','argv','../helpers/helper','debug','cwd','5ZqDWxE','winstonLogger','YOUR_ACCESS_KEY','fZYZe','../helpers/utilities','npm\x20update\x20browserstack-node-sdk','jDMhK','yargs','XAwhs','MrLGK','scripts','error','/../../browserstack.pw.yml.sample','includes','parse','../helpers/logger','browserstack-node-sdk','Adding\x20new\x20script(s)\x20in\x20package.json...','SDKSetup','egURT','load','entries','1163802tgiEDY','js-yaml','split','6JcfAIP','cucumber-js'];a61_0x4a95=function(){return _0x33333a;};return a61_0x4a95();}logger[a61_0x2e0803(0x97)](a61_0x2e0803(0x9b));
3
+ const a61_0x57b66f=a61_0x39f1;(function(_0x5b9a32,_0x4f9497){const _0x280d84=a61_0x39f1,_0x3a3d71=_0x5b9a32();while(!![]){try{const _0x558f11=-parseInt(_0x280d84(0x1da))/0x1*(parseInt(_0x280d84(0x1e7))/0x2)+-parseInt(_0x280d84(0x1e4))/0x3*(-parseInt(_0x280d84(0x1d8))/0x4)+-parseInt(_0x280d84(0x1cf))/0x5+parseInt(_0x280d84(0x1e8))/0x6*(parseInt(_0x280d84(0x1b3))/0x7)+-parseInt(_0x280d84(0x1b5))/0x8*(-parseInt(_0x280d84(0x1b4))/0x9)+-parseInt(_0x280d84(0x1db))/0xa*(parseInt(_0x280d84(0x1d2))/0xb)+parseInt(_0x280d84(0x1d0))/0xc*(parseInt(_0x280d84(0x1cb))/0xd);if(_0x558f11===_0x4f9497)break;else _0x3a3d71['push'](_0x3a3d71['shift']());}catch(_0x1ab628){_0x3a3d71['push'](_0x3a3d71['shift']());}}}(a61_0x15e7,0x837f6));const fs=require('fs'),helper=require(a61_0x57b66f(0x1ec)),utilities=require(a61_0x57b66f(0x1dc)),yaml=require(a61_0x57b66f(0x1e1)),yargs=require(a61_0x57b66f(0x1b7)),logger=require(a61_0x57b66f(0x1ad))['winstonLogger'],configFileTemplate=__dirname+a61_0x57b66f(0x1b9),configFileTemplatePW=__dirname+a61_0x57b66f(0x1a7),configFile=process[a61_0x57b66f(0x1ac)]()+a61_0x57b66f(0x1f5),packageFile=process['cwd']()+a61_0x57b66f(0x1ca),frameworks=['mocha',a61_0x57b66f(0x1ed),a61_0x57b66f(0x1d5),a61_0x57b66f(0x1d1),a61_0x57b66f(0x1be),a61_0x57b66f(0x1b1),a61_0x57b66f(0x1b0)];let config;logger[a61_0x57b66f(0x1bc)](a61_0x57b66f(0x1ae)),createConfigurationFile(yargs[a61_0x57b66f(0x1b2)][a61_0x57b66f(0x1d4)],yargs[a61_0x57b66f(0x1b2)]['key'],yargs[a61_0x57b66f(0x1b2)][a61_0x57b66f(0x1b0)]);function a61_0x39f1(_0x2d19c3,_0x279f75){const _0x15e74c=a61_0x15e7();return a61_0x39f1=function(_0x39f1e8,_0x72d264){_0x39f1e8=_0x39f1e8-0x1a6;let _0x1393c6=_0x15e74c[_0x39f1e8];return _0x1393c6;},a61_0x39f1(_0x2d19c3,_0x279f75);}try{sdkSetup();}catch(a61_0x4b8433){logger[a61_0x57b66f(0x1c0)](a61_0x57b66f(0x1ee)+a61_0x4b8433);}addScriptInPackageJson();function createConfigurationFile(_0x1b48d3,_0x24e723,_0x292801=![]){const _0x597564=a61_0x57b66f,_0x3f7b1d={};_0x3f7b1d['NLUYX']=_0x597564(0x1f7),_0x3f7b1d[_0x597564(0x1bb)]=_0x597564(0x1cc),_0x3f7b1d[_0x597564(0x1f1)]=_0x597564(0x1e0);const _0x5ce693=_0x3f7b1d;try{let _0x430928=fs[_0x597564(0x1c5)](_0x292801?configFileTemplatePW:configFileTemplate,_0x5ce693[_0x597564(0x1af)]);_0x1b48d3&&(_0x430928=_0x430928[_0x597564(0x1e2)](_0x5ce693[_0x597564(0x1bb)],_0x1b48d3)),_0x24e723&&(_0x430928=_0x430928[_0x597564(0x1e2)](_0x5ce693[_0x597564(0x1f1)],_0x24e723)),config=yaml[_0x597564(0x1f4)](_0x430928),fs[_0x597564(0x1c9)](configFile,_0x430928,_0x1e25f3=>{const _0x17d5c6=_0x597564;_0x1e25f3&&logger[_0x17d5c6(0x1e3)](_0x1e25f3);});}catch(_0x48b271){logger[_0x597564(0x1e3)](_0x48b271);}}function a61_0x15e7(){const _0x816773=['HniGS','RgbHM','writeFileSync','/package.json','14599jhkhpP','YOUR_USERNAME','scripts','SDKSetup','5251450lVWmUn','11016LnAggE','node','1199rjPHhq','isUndefined','username','cucumber-js','\x20&&\x20npm\x20update\x20browserstack-node-sdk','gbYkw','4EWhNNT','length','37XynGLK','67570uTMvWH','../helpers/utilities','aTvON','djwBd','postinstall','YOUR_ACCESS_KEY','js-yaml','replace','error','882237ewMDmO','includes','browserstack-node-sdk','16706IivkyR','5164548aZzkMt','split','gumWr','EQVvk','../helpers/helper','jest','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','splice','push','mubnl','-browserstack','node-setup','load','/browserstack.yml','indexOf','utf8','Setup\x20completed','/../../browserstack.pw.yml.sample','npm\x20update\x20browserstack-node-sdk','browserstack-node-sdk\x20','parse','cFMiM','cwd','../helpers/logger','Creating\x20configuration\x20file...','NLUYX','playwright','codeceptjs','argv','7USqmcv','4038543Qxnjyb','8WvquWX','BZQTL','yargs','mDJec','/../../browserstack.yml.sample','sEQxp','aHIoQ','info','stringify','nightwatch','eCPMU','debug','JZLlR','fireFunnelTestEvent','cpdes','entries','readFileSync','join'];a61_0x15e7=function(){return _0x816773;};return a61_0x15e7();}function addPostInstallScript(_0x31673d,_0x3777b8){const _0x47cead=a61_0x57b66f,_0x5ca60e={};_0x5ca60e[_0x47cead(0x1b8)]=_0x47cead(0x1df),_0x5ca60e[_0x47cead(0x1c1)]=_0x47cead(0x1a8),_0x5ca60e[_0x47cead(0x1c8)]=_0x47cead(0x1d6);const _0x4815ce=_0x5ca60e;let _0x174cf1=_0x31673d[_0x4815ce[_0x47cead(0x1b8)]];if(_0x174cf1&&_0x174cf1[_0x47cead(0x1e5)](_0x4815ce[_0x47cead(0x1c1)]))return;!_0x174cf1?_0x174cf1=_0x4815ce[_0x47cead(0x1c1)]:_0x174cf1+=_0x4815ce[_0x47cead(0x1c8)],_0x3777b8['push']([_0x4815ce[_0x47cead(0x1b8)],_0x174cf1]);}function addScriptInPackageJson(){const _0x174d93=a61_0x57b66f,_0xce5714={'cFMiM':'utf8','cpdes':function(_0x4d74fd,_0x30952d){return _0x4d74fd<_0x30952d;},'gbYkw':function(_0x13d010,_0x20027c,_0x194685){return _0x13d010(_0x20027c,_0x194685);},'sEQxp':function(_0x5d5964,_0x47f5c2){return _0x5d5964<_0x47f5c2;},'EQVvk':function(_0x32b0e2,_0x4f71a1){return _0x32b0e2!==_0x4f71a1;},'aTvON':'Adding\x20new\x20script(s)\x20in\x20package.json...'},_0xffa78f=JSON[_0x174d93(0x1aa)](fs[_0x174d93(0x1c5)](packageFile,_0xce5714[_0x174d93(0x1ab)])),_0x128cad=[];for(let _0x127718=0x0;_0xce5714[_0x174d93(0x1c3)](_0x127718,frameworks[_0x174d93(0x1d9)]);_0x127718+=0x1){const _0x4d8977=_0xce5714[_0x174d93(0x1d7)](findScriptsWithFramework,_0xffa78f[_0x174d93(0x1cd)],frameworks[_0x127718]);for(let _0x8b827c=0x0;_0xce5714['sEQxp'](_0x8b827c,_0x4d8977[_0x174d93(0x1d9)]);_0x8b827c+=0x1){_0x128cad['push'](_0xce5714[_0x174d93(0x1d7)](getUpdatedCommand,_0xffa78f[_0x174d93(0x1cd)],_0x4d8977[_0x8b827c]));}_0xce5714[_0x174d93(0x1d7)](addPostInstallScript,_0xffa78f[_0x174d93(0x1cd)],_0x128cad);}const _0x265ab8={..._0xffa78f[_0x174d93(0x1cd)]},_0x453560=_0x265ab8;for(let _0x5c6ae8=0x0;_0xce5714[_0x174d93(0x1ba)](_0x5c6ae8,_0x128cad[_0x174d93(0x1d9)]);_0x5c6ae8+=0x1){_0x453560[_0x128cad[_0x5c6ae8][0x0]]=_0x128cad[_0x5c6ae8][0x1];}_0xce5714[_0x174d93(0x1eb)](JSON[_0x174d93(0x1bd)](_0xffa78f[_0x174d93(0x1cd)]),JSON[_0x174d93(0x1bd)](_0x453560))&&(logger[_0x174d93(0x1bc)](_0xce5714[_0x174d93(0x1dd)]),_0xffa78f[_0x174d93(0x1cd)]=_0x453560,fs[_0x174d93(0x1c9)](packageFile,JSON['stringify'](_0xffa78f,null,0x2),_0x49b069=>{const _0x94e991=_0x174d93;_0x49b069&&logger[_0x94e991(0x1e3)](_0x49b069);}));};function findScriptsWithFramework(_0x99c9db,_0x2010a2){const _0x34618c=a61_0x57b66f,_0xfad000={};_0xfad000['djwBd']=function(_0x53c544,_0x31c7dd){return _0x53c544<_0x31c7dd;},_0xfad000[_0x34618c(0x1bf)]=_0x34618c(0x1e6);const _0x1f585c=_0xfad000,_0x598e1e=[],_0x1a1487=Object[_0x34618c(0x1c4)](_0x99c9db);for(let _0xd68382=0x0;_0x1f585c[_0x34618c(0x1de)](_0xd68382,_0x1a1487['length']);_0xd68382+=0x1){_0x1a1487[_0xd68382][0x1]['includes'](_0x2010a2)&&!_0x1a1487[_0xd68382][0x1][_0x34618c(0x1e5)](_0x1f585c[_0x34618c(0x1bf)])&&_0x598e1e[_0x34618c(0x1f0)](_0x1a1487[_0xd68382][0x0]);}return _0x598e1e;}function getUpdatedCommand(_0x39386d,_0x168416){const _0x5d8182=a61_0x57b66f,_0x11da81={};_0x11da81['yWckl']=function(_0x1795a6,_0x251986){return _0x1795a6!==_0x251986;},_0x11da81[_0x5d8182(0x1ea)]=_0x5d8182(0x1e6),_0x11da81[_0x5d8182(0x1c7)]=function(_0x4907a2,_0xfe4769){return _0x4907a2===_0xfe4769;};const _0x5cfd01=_0x11da81,_0x28fc93=_0x168416+_0x5d8182(0x1f2),_0x22eaa1=_0x39386d[_0x168416],_0x4f2137=_0x22eaa1[_0x5d8182(0x1e9)]('\x20');for(const _0x1c5d04 of frameworks){if(_0x5cfd01['yWckl'](_0x4f2137[_0x5d8182(0x1f6)](_0x1c5d04),-0x1)){_0x4f2137[_0x5d8182(0x1ef)](_0x4f2137[_0x5d8182(0x1f6)](_0x1c5d04),0x0,_0x5cfd01['gumWr']);break;}}let _0x499acc=_0x4f2137[_0x5d8182(0x1c6)]('\x20');return _0x5cfd01[_0x5d8182(0x1c7)](_0x499acc,_0x22eaa1)&&(_0x499acc=_0x5d8182(0x1a9)+_0x22eaa1),[_0x28fc93,_0x499acc];}function sdkSetup(){const _0x260374=a61_0x57b66f,_0xa4a783={};_0xa4a783['BZQTL']=_0x260374(0x1f3),_0xa4a783['FedYT']=_0x260374(0x1ce);const _0x1f55d6=_0xa4a783;if(helper[_0x260374(0x1d3)](config))return;config['source']=_0x1f55d6[_0x260374(0x1b6)];try{utilities[_0x260374(0x1c2)](_0x1f55d6['FedYT'],{},config,'');}catch(_0x3e44fb){logger[_0x260374(0x1c0)](_0x260374(0x1ee)+_0x3e44fb);}}logger[a61_0x57b66f(0x1bc)](a61_0x57b66f(0x1a6));