browserstack-node-sdk 1.56.1 → 1.56.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/newman/command.js +1 -1
  79. package/src/bin/newman/helper.js +1 -1
  80. package/src/bin/newman/reporter/index.js +1 -1
  81. package/src/bin/newman/scriptRunner.js +1 -1
  82. package/src/bin/nightwatch/command.js +1 -1
  83. package/src/bin/playwright/accessibility-helper.js +1 -1
  84. package/src/bin/playwright/command.js +1 -1
  85. package/src/bin/playwright/globalSetup.js +1 -1
  86. package/src/bin/playwright/mock-process.js +1 -1
  87. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  88. package/src/bin/playwright/patches.js +1 -1
  89. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  90. package/src/bin/playwright/reporter/reporter.js +1 -1
  91. package/src/bin/playwright/reporter/test-details.js +1 -1
  92. package/src/bin/playwright/sessionDetails.js +1 -1
  93. package/src/bin/puppeteer/patches.js +1 -1
  94. package/src/bin/puppeteer/sessionDetails.js +1 -1
  95. package/src/bin/puppeteer/test.setup.js +1 -1
  96. package/src/bin/runner.js +1 -1
  97. package/src/bin/setup.js +1 -1
  98. package/src/bin/test-runner/index.js +1 -1
  99. package/src/bin/test-runner/runTest.js +1 -1
  100. package/src/bin/test-runner/testWorker.js +1 -1
  101. package/src/bin/utils/apiUtilityMethods.js +1 -1
  102. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  103. package/src/bin/utils/constants.js +1 -1
  104. package/src/bin/utils/log4jsAppender.js +1 -1
  105. package/src/bin/utils/logPatcher.js +1 -1
  106. package/src/bin/utils/logReportingAPI.js +1 -1
  107. package/src/bin/utils/playwright-patcher.js +1 -1
  108. package/src/bin/utils/puppeteer-patcher.js +1 -1
  109. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  110. package/src/bin/utils/sharedUtils.js +1 -1
  111. package/src/bin/v2/TestInfo.js +1 -1
  112. package/src/bin/v2/browserstackCLI.js +1 -1
  113. package/src/bin/v2/cliUtils.js +1 -1
  114. package/src/bin/v2/customTagManager.js +1 -1
  115. package/src/bin/v2/eventDispatcher.js +1 -1
  116. package/src/bin/v2/framework/automationFramework.js +1 -1
  117. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  118. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  119. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  120. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  121. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  122. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  123. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  124. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  125. package/src/bin/v2/framework/testFramework.js +1 -1
  126. package/src/bin/v2/grpcClient.js +1 -1
  127. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  128. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  129. package/src/bin/v2/instances/trackedContext.js +1 -1
  130. package/src/bin/v2/instances/trackedInstance.js +1 -1
  131. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  132. package/src/bin/v2/modules/baseModule.js +1 -1
  133. package/src/bin/v2/modules/loadTestModule.js +1 -1
  134. package/src/bin/v2/modules/observabilityModule.js +1 -1
  135. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  136. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  137. package/src/bin/v2/modules/testhubModule.js +1 -1
  138. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  139. package/src/bin/v2/state/hookState.js +1 -1
  140. package/src/bin/v2/state/testFrameworkState.js +1 -1
  141. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  142. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  143. package/src/bin/v2/utils/jest-utils.js +1 -1
  144. package/src/bin/vanilla-js/command.js +1 -1
  145. package/src/browserStackSdk.js +1 -1
  146. package/src/helpers/BrowserStackSetup.js +1 -1
  147. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  148. package/src/helpers/accessibility-automation/constants.js +1 -1
  149. package/src/helpers/accessibility-automation/helper.js +1 -1
  150. package/src/helpers/accessibility-automation/scripts.js +1 -1
  151. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  152. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  153. package/src/helpers/ats/constants.js +1 -1
  154. package/src/helpers/ats/helper.js +1 -1
  155. package/src/helpers/caCertHelper.js +1 -1
  156. package/src/helpers/capsMapping.js +1 -1
  157. package/src/helpers/central-scanner/constants.js +1 -1
  158. package/src/helpers/central-scanner/helpers.js +1 -1
  159. package/src/helpers/classLogger.js +1 -1
  160. package/src/helpers/driverInitErrorReporter.js +1 -0
  161. package/src/helpers/globals.js +1 -1
  162. package/src/helpers/helper.js +1 -1
  163. package/src/helpers/logger.js +1 -1
  164. package/src/helpers/metadata.js +1 -1
  165. package/src/helpers/patchHelper.js +1 -1
  166. package/src/helpers/patchHelpers.js +1 -1
  167. package/src/helpers/percy/Percy.js +1 -1
  168. package/src/helpers/percy/PercyBinary.js +1 -1
  169. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  170. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  171. package/src/helpers/percy/PercySDK.js +1 -1
  172. package/src/helpers/percy/index.js +1 -1
  173. package/src/helpers/percy/utils.js +1 -1
  174. package/src/helpers/performance/constants.js +1 -1
  175. package/src/helpers/performance/performance-tester.js +1 -1
  176. package/src/helpers/playwright-helper.js +1 -1
  177. package/src/helpers/processHelper.js +1 -1
  178. package/src/helpers/puppeteer-helper.js +1 -1
  179. package/src/helpers/request-spy.js +1 -1
  180. package/src/helpers/setKeepAlive.js +1 -1
  181. package/src/helpers/stackFrameUtils.js +1 -1
  182. package/src/helpers/test-observability/constants.js +1 -1
  183. package/src/helpers/test-observability/error-handler.js +1 -1
  184. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  185. package/src/helpers/test-observability/sessionHandler.js +1 -1
  186. package/src/helpers/test-observability/utils.js +1 -1
  187. package/src/helpers/test-orchestration/constants.js +1 -1
  188. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  189. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  190. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  191. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  192. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  193. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  194. package/src/helpers/testhub/constants.js +1 -1
  195. package/src/helpers/testhub/testhubHandler.js +1 -1
  196. package/src/helpers/testhub/utils.js +1 -1
  197. package/src/helpers/timeoutPromise.js +1 -1
  198. package/src/helpers/utilities.js +1 -1
  199. package/src/helpers/w3cMapping.js +1 -1
  200. package/src/hubAllocationMethods.js +1 -1
  201. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a53_0x5dda6c=a53_0x1a58;function a53_0x3eea(){const _0x3470af=['stringify','platformVersion','toString','../../helpers/helper','bsSessionId','ATS_WSS_URL_REGEX','../v2/browserstackCLI','function','IxgPa','JzxZE','capabilities','PLAYWRIGHT_DISPATCH','ciaeU','WHkqs','wRAzZ','118484Yurbbq','bStackParams','2299712ojdztb','unknown_grid','bsParams','5OLMJzq','browser_version','version','onmessage','getInstance','browser','apply','string','qyYKm','entries','RiBMn','query','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','caps','../utils/constants','browserName','Error\x20in\x20setupBrowserDetails:\x20','util','currentSessionDetails','naqMz','3563468QtHcMz','_bstackPatched','KHkew','Error\x20in\x20patchConnection:\x20','yfhXf','getAutomationFramework','platform','xSRNQ','cQGBm','trackEvent','FvpYx','parse','fromEntries','kaEWW','message','turboscale','cloudProvider','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','local_grid','test','patchConnection','winstonLogger','OSslg','debug','../../helpers/test-observability/utils','2099181tPfhNs','xQwOm','sessionId','format','EZxoC','sessionError','BSTACK_ATS_URL','connection','POST','zwbsm','browserstack','IJuRP','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','58185rNgYJA','isRunning','6MZthJz','../v2/state/hookState.js','1016isUhJK','15498200QIcYZW','GZTRR','platformName','result','platform_version','chrome','3784053aDTSlR','includes','setupBrowserDetails','BSTACK_URL','product','params','Setting\x20session\x20id\x20received\x20from\x20BS\x20'];a53_0x3eea=function(){return _0x3470af;};return a53_0x3eea();}(function(_0x2ed4e6,_0x4ba414){const _0x1bd455=a53_0x1a58,_0x30ed0f=_0x2ed4e6();while(!![]){try{const _0x56e89d=parseInt(_0x1bd455(0xb2))/0x1+-parseInt(_0x1bd455(0xb4))/0x2+-parseInt(_0x1bd455(0xe4))/0x3+-parseInt(_0x1bd455(0xcb))/0x4*(-parseInt(_0x1bd455(0xb7))/0x5)+parseInt(_0x1bd455(0xf3))/0x6*(-parseInt(_0x1bd455(0xfc))/0x7)+parseInt(_0x1bd455(0xf5))/0x8*(parseInt(_0x1bd455(0xf1))/0x9)+parseInt(_0x1bd455(0xf6))/0xa;if(_0x56e89d===_0x4ba414)break;else _0x30ed0f['push'](_0x30ed0f['shift']());}catch(_0x1b6e7f){_0x30ed0f['push'](_0x30ed0f['shift']());}}}(a53_0x3eea,0xf1b70));const path=require('path'),url=require('url'),util=require(a53_0x5dda6c(0xc8)),{nestedKeyValue,isFalse}=require(a53_0x5dda6c(0x106)),{debug,getPlatformDetails}=require(a53_0x5dda6c(0xe3)),logger=require('../../helpers/logger')[a53_0x5dda6c(0xe0)],constants=require(a53_0x5dda6c(0xc5)),BrowserstackCLI=require(a53_0x5dda6c(0x109)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a53_0x5dda6c(0xf4)),getBrowserFromWSEndpoint=_0x247836=>{const _0x284a3e=a53_0x5dda6c,_0x25f6c9={'naqMz':_0x284a3e(0xfb),'FvpYx':function(_0x5ce9b1,_0x5d855c){return _0x5ce9b1(_0x5d855c);}};try{const _0x4f22e0=url[_0x284a3e(0xd6)](_0x247836),_0x588d9d=new URLSearchParams(_0x4f22e0[_0x284a3e(0xc2)]),_0xc73403=Object[_0x284a3e(0xd7)](_0x588d9d[_0x284a3e(0xc0)]()),_0x16cb4c=JSON[_0x284a3e(0xd6)](_0xc73403[_0x284a3e(0xc4)]);if(_0x16cb4c&&(_0x16cb4c[_0x284a3e(0xbc)]||_0x16cb4c[_0x284a3e(0xc6)]))return _0x16cb4c[_0x284a3e(0xbc)]||_0x16cb4c[_0x284a3e(0xc6)];return _0x25f6c9[_0x284a3e(0xca)];}catch(_0x476c2c){_0x25f6c9[_0x284a3e(0xd5)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x476c2c[_0x284a3e(0x105)]());}},getCloudProviderFromWsEndpoint=_0x3522c6=>{const _0x4bd0a4=a53_0x5dda6c,_0xab9209={};_0xab9209[_0x4bd0a4(0xef)]=_0x4bd0a4(0xee),_0xab9209[_0x4bd0a4(0xe8)]=_0x4bd0a4(0xb5);const _0x4d05c9=_0xab9209;if(_0x3522c6[_0x4bd0a4(0xfd)](constants[_0x4bd0a4(0xff)])||_0x3522c6[_0x4bd0a4(0xfd)](constants[_0x4bd0a4(0xea)]))return _0x4d05c9['IJuRP'];return _0x4d05c9[_0x4bd0a4(0xe8)];},a53_0x1fa778={};a53_0x1fa778[a53_0x5dda6c(0xdb)]=undefined,a53_0x1fa778[a53_0x5dda6c(0x107)]=undefined,a53_0x1fa778['browser']=undefined,a53_0x1fa778[a53_0x5dda6c(0xb8)]=undefined,a53_0x1fa778['platform']=undefined,a53_0x1fa778[a53_0x5dda6c(0xfa)]=undefined,a53_0x1fa778[a53_0x5dda6c(0x100)]=undefined,a53_0x1fa778[a53_0x5dda6c(0xad)]={};class PuppeteerSessionDetails{static ['currentSessionDetails']=a53_0x1fa778;constructor(){const _0x5b6889=a53_0x5dda6c,_0x1e46ab={};_0x1e46ab['wRAzZ']=_0x5b6889(0xdc);const _0x229e83=_0x1e46ab;throw new Error(_0x229e83[_0x5b6889(0xb1)]);}static [a53_0x5dda6c(0xe9)]=null;static async[a53_0x5dda6c(0xfe)](_0x10cbf1,_0x130af9){const _0x1e85da=a53_0x5dda6c,_0x25aa8b={'JzxZE':_0x1e85da(0xfb),'xSRNQ':function(_0x5f51bf,_0x18fe6c){return _0x5f51bf===_0x18fe6c;},'VkTiL':_0x1e85da(0x10a),'NeGEg':_0x1e85da(0xdd),'peJXK':function(_0x5a8f55,_0x483e22){return _0x5a8f55(_0x483e22);},'zwbsm':'browserstack','GZTRR':_0x1e85da(0xda),'KHkew':'automate','BdCTo':function(_0x52f593,_0x2de51d){return _0x52f593(_0x2de51d);},'OSslg':function(_0x47aafb){return _0x47aafb();},'RiBMn':function(_0x187212){return _0x187212();},'TGTct':function(_0x5562c3,_0x18afab){return _0x5562c3(_0x18afab);}};try{let _0x2467a2=_0x25aa8b[_0x1e85da(0xac)],_0x2d90cb=null;_0x10cbf1&&_0x25aa8b[_0x1e85da(0xd2)](typeof _0x10cbf1[_0x1e85da(0xb9)],_0x25aa8b['VkTiL'])&&(_0x2d90cb=await _0x10cbf1[_0x1e85da(0xb9)]());let _0x355b6d=null,_0x5f060e=null,_0x4b5e19=null,_0x25f445=_0x25aa8b['NeGEg'];if(_0x130af9){_0x25f445=_0x25aa8b['peJXK'](getCloudProviderFromWsEndpoint,_0x130af9);if(_0x25aa8b[_0x1e85da(0xd2)](_0x25f445,_0x25aa8b[_0x1e85da(0xed)]))_0x4b5e19=constants[_0x1e85da(0x108)]?constants[_0x1e85da(0x108)][_0x1e85da(0xde)](_0x130af9)?_0x25aa8b[_0x1e85da(0xf7)]:_0x25aa8b[_0x1e85da(0xcd)]:_0x25aa8b['KHkew'],_0x2467a2=_0x25aa8b['BdCTo'](getBrowserFromWSEndpoint,_0x130af9)||_0x2467a2,_0x355b6d=this[_0x1e85da(0xc9)]['platform'],_0x5f060e=this[_0x1e85da(0xc9)][_0x1e85da(0xfa)];else{const _0x275877=await _0x25aa8b[_0x1e85da(0xe1)](getPlatformDetails);_0x355b6d=_0x275877[_0x1e85da(0xf8)],_0x5f060e=_0x275877['platformVersion'];}}else{const _0x400c7e=await _0x25aa8b[_0x1e85da(0xc1)](getPlatformDetails);_0x355b6d=_0x400c7e['platformName'],_0x5f060e=_0x400c7e[_0x1e85da(0x104)];}const _0x30c6ca={};_0x30c6ca[_0x1e85da(0xbc)]=_0x2467a2,_0x30c6ca['browser_version']=_0x2d90cb,_0x30c6ca[_0x1e85da(0xad)]={},_0x30c6ca['platform']=_0x355b6d,_0x30c6ca[_0x1e85da(0xfa)]=_0x5f060e,_0x30c6ca['product']=_0x4b5e19;const _0x24150b=_0x30c6ca,_0x25b49d={};_0x25b49d['cloudProvider']=_0x25f445,this[_0x1e85da(0xc9)]=Object['assign']({},this['currentSessionDetails'],_0x25b49d,_0x24150b);}catch(_0x4c050d){_0x25aa8b['TGTct'](debug,_0x1e85da(0xc7)+util[_0x1e85da(0xe7)](_0x4c050d)),this['sessionError']=_0x4c050d[_0x1e85da(0x105)]();}}static[a53_0x5dda6c(0xdf)](_0x14ec8c){const _0x576b28=a53_0x5dda6c,_0x1f97cc={'kaEWW':function(_0xbf16c8,_0x2b5656){return _0xbf16c8===_0x2b5656;},'cQGBm':_0x576b28(0xbe),'qyYKm':function(_0x1f9e29,_0x2d2c02){return _0x1f9e29(_0x2d2c02);},'IxgPa':function(_0x308b40,_0x32061e){return _0x308b40(_0x32061e);},'xQwOm':function(_0x4a2832,_0x3f33a6){return _0x4a2832===_0x3f33a6;},'ciaeU':function(_0x5bbb09,_0x3ac190){return _0x5bbb09(_0x3ac190);},'WHkqs':_0x576b28(0xc3),'yfhXf':function(_0x501c4f,_0x5def4c){return _0x501c4f(_0x5def4c);}},_0x28988b=this;try{const _0x4af80a=_0x14ec8c['_connection']||_0x14ec8c[_0x576b28(0xeb)];if(!_0x4af80a||_0x4af80a['_bstackPatched'])return;const _0x12a680=_0x4af80a['onmessage'];_0x4af80a[_0x576b28(0xba)]=function(_0x5c9e6e){const _0x31e148=_0x576b28;try{const _0x2bfdd1=_0x1f97cc[_0x31e148(0xd8)](typeof _0x5c9e6e,_0x1f97cc[_0x31e148(0xd3)])?JSON['parse'](_0x5c9e6e):_0x5c9e6e,_0x3854c1=_0x2bfdd1?.['bStackParams']||_0x2bfdd1?.[_0x31e148(0xb6)]||_0x2bfdd1?.[_0x31e148(0x101)]?.[_0x31e148(0xb6)]||_0x2bfdd1?.[_0x31e148(0x101)]?.['bStackParams']||_0x2bfdd1?.[_0x31e148(0xf9)]?.[_0x31e148(0xb6)]||_0x2bfdd1?.[_0x31e148(0xf9)]?.[_0x31e148(0xb3)];if(_0x3854c1){if(BrowserstackCLI[_0x31e148(0xbb)]()[_0x31e148(0xf2)]()){const _0x3b7ede={};_0x3b7ede[_0x31e148(0xd9)]=_0x2bfdd1,BrowserstackCLI['getInstance']()[_0x31e148(0xd0)]()[_0x31e148(0xd4)](AutomationFrameworkState[_0x31e148(0xae)],HookState[_0x31e148(0xec)],_0x3b7ede);}else{const _0x5b8d68=_0x3854c1[_0x31e148(0xe6)],_0x190518=_0x3854c1['platformDetails'];_0x190518&&(_0x1f97cc[_0x31e148(0xbf)](debug,_0x31e148(0xf0)+JSON[_0x31e148(0x103)](_0x190518)),_0x28988b[_0x31e148(0xc9)][_0x31e148(0xd1)]=_0x190518[_0x31e148(0xf8)],_0x28988b['currentSessionDetails'][_0x31e148(0xfa)]=_0x190518[_0x31e148(0x104)]),_0x5b8d68&&(_0x1f97cc[_0x31e148(0xab)](debug,_0x31e148(0x102)+_0x5b8d68),_0x28988b[_0x31e148(0xc9)][_0x31e148(0x107)]=_0x5b8d68);}_0x1f97cc[_0x31e148(0xe5)](typeof _0x5c9e6e,_0x1f97cc['cQGBm'])&&(delete _0x2bfdd1['bStackParams'],delete _0x2bfdd1[_0x31e148(0xb6)],_0x2bfdd1[_0x31e148(0x101)]&&(delete _0x2bfdd1['params']['bsParams'],delete _0x2bfdd1[_0x31e148(0x101)][_0x31e148(0xb3)]),_0x2bfdd1[_0x31e148(0xf9)]&&(delete _0x2bfdd1['result'][_0x31e148(0xb6)],delete _0x2bfdd1[_0x31e148(0xf9)][_0x31e148(0xb3)]));}}catch(_0x125082){_0x1f97cc[_0x31e148(0xaf)](debug,'Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20'+_0x125082[_0x31e148(0xd9)]);}return _0x12a680?.[_0x31e148(0xbd)](this,arguments);},_0x4af80a[_0x576b28(0xcc)]=!![],logger[_0x576b28(0xe2)](_0x1f97cc[_0x576b28(0xb0)]);}catch(_0x38c734){_0x1f97cc[_0x576b28(0xcf)](debug,_0x576b28(0xce)+util[_0x576b28(0xe7)](_0x38c734)),_0x28988b[_0x576b28(0xe9)]=_0x38c734['toString']();}}static['getDetails'](){const _0x1c5747=a53_0x5dda6c;return this[_0x1c5747(0xc9)];}}function a53_0x1a58(_0x179290,_0x323a9e){const _0x3eeac7=a53_0x3eea();return a53_0x1a58=function(_0x1a58ba,_0x462b64){_0x1a58ba=_0x1a58ba-0xab;let _0x34ee1e=_0x3eeac7[_0x1a58ba];return _0x34ee1e;},a53_0x1a58(_0x179290,_0x323a9e);}module['exports']=PuppeteerSessionDetails;
1
+ function a53_0x3c5e(){const _0x388089=['util','bStackParams','function','sessionId','RIPhI','getAutomationFramework','currentSessionDetails','dxhBy','SmMJT','params','GppNF','82335QcKlAx','642OPaNWe','MjZbu','getInstance','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','400260GHCPoG','OcnnW','BifLd','product','ySXUr','HfspD','connection','cloudProvider','Error\x20in\x20patchConnection:\x20','RQVtJ','POST','sessionError','turboscale','8GOmaRc','QUNwA','platform_version','browser','browserstack','version','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','toString','capabilities','../v2/state/hookState.js','841812xVvxlJ','Setting\x20session\x20id\x20received\x20from\x20BS\x20','getDetails','21326340GfZhee','platformVersion','result','test','parse','bsSessionId','168epiIGi','isRunning','assign','3020052chGgun','bsParams','fmfEl','patchConnection','string','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','onmessage','trackEvent','Iuaun','345051MzHowO','query','ATS_WSS_URL_REGEX','_connection','SVGPd','_bstackPatched','setupBrowserDetails','platform','../../helpers/test-observability/utils','automate','browserName','caps','includes','chrome','fromEntries','entries','browser_version','../../helpers/helper','vjrjp','stringify','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','message','platformName','winstonLogger','../v2/browserstackCLI','qNxhp','debug','16585RomFMh','format'];a53_0x3c5e=function(){return _0x388089;};return a53_0x3c5e();}const a53_0x27e367=a53_0x5ee0;(function(_0x12d07d,_0x3643a0){const _0x16dc1f=a53_0x5ee0,_0xf21b9d=_0x12d07d();while(!![]){try{const _0x144cac=parseInt(_0x16dc1f(0x125))/0x1+-parseInt(_0x16dc1f(0x141))/0x2+-parseInt(_0x16dc1f(0x12a))/0x3*(parseInt(_0x16dc1f(0x137))/0x4)+parseInt(_0x16dc1f(0x118))/0x5*(parseInt(_0x16dc1f(0x126))/0x6)+-parseInt(_0x16dc1f(0x14d))/0x7+parseInt(_0x16dc1f(0x14a))/0x8*(-parseInt(_0x16dc1f(0x156))/0x9)+parseInt(_0x16dc1f(0x144))/0xa;if(_0x144cac===_0x3643a0)break;else _0xf21b9d['push'](_0xf21b9d['shift']());}catch(_0x493ad9){_0xf21b9d['push'](_0xf21b9d['shift']());}}}(a53_0x3c5e,0x9d9d3));const path=require('path'),url=require('url'),util=require(a53_0x27e367(0x11a)),{nestedKeyValue,isFalse}=require(a53_0x27e367(0x167)),{debug,getPlatformDetails}=require(a53_0x27e367(0x15e)),logger=require('../../helpers/logger')[a53_0x27e367(0x114)],constants=require('../utils/constants'),BrowserstackCLI=require(a53_0x27e367(0x115)),AutomationFrameworkState=require('../v2/state/automationFrameworkState.js'),HookState=require(a53_0x27e367(0x140)),getBrowserFromWSEndpoint=_0x531082=>{const _0x49a9f0=a53_0x27e367,_0x19f457={'MjZbu':_0x49a9f0(0x163),'ySXUr':function(_0x3dad3a,_0x73b2d){return _0x3dad3a(_0x73b2d);}};try{const _0x581127=url['parse'](_0x531082),_0x3a5cc8=new URLSearchParams(_0x581127[_0x49a9f0(0x157)]),_0x299bb0=Object[_0x49a9f0(0x164)](_0x3a5cc8[_0x49a9f0(0x165)]()),_0x2c1d27=JSON[_0x49a9f0(0x148)](_0x299bb0[_0x49a9f0(0x161)]);if(_0x2c1d27&&(_0x2c1d27[_0x49a9f0(0x13a)]||_0x2c1d27[_0x49a9f0(0x160)]))return _0x2c1d27[_0x49a9f0(0x13a)]||_0x2c1d27[_0x49a9f0(0x160)];return _0x19f457[_0x49a9f0(0x127)];}catch(_0x5c4d2b){_0x19f457[_0x49a9f0(0x12e)](debug,_0x49a9f0(0x129)+_0x5c4d2b[_0x49a9f0(0x13e)]());}},getCloudProviderFromWsEndpoint=_0x130faf=>{const _0x20e5c9=a53_0x27e367,_0xf9bef2={};_0xf9bef2[_0x20e5c9(0x14f)]=_0x20e5c9(0x13b),_0xf9bef2[_0x20e5c9(0x133)]='unknown_grid';const _0x49f373=_0xf9bef2;if(_0x130faf['includes'](constants['BSTACK_URL'])||_0x130faf[_0x20e5c9(0x162)](constants['BSTACK_ATS_URL']))return _0x49f373[_0x20e5c9(0x14f)];return _0x49f373[_0x20e5c9(0x133)];},a53_0x41bce0={};a53_0x41bce0[a53_0x27e367(0x131)]=undefined,a53_0x41bce0[a53_0x27e367(0x149)]=undefined,a53_0x41bce0[a53_0x27e367(0x13a)]=undefined,a53_0x41bce0[a53_0x27e367(0x166)]=undefined,a53_0x41bce0[a53_0x27e367(0x15d)]=undefined,a53_0x41bce0[a53_0x27e367(0x139)]=undefined,a53_0x41bce0[a53_0x27e367(0x12d)]=undefined,a53_0x41bce0[a53_0x27e367(0x13f)]={};class PuppeteerSessionDetails{static [a53_0x27e367(0x120)]=a53_0x41bce0;constructor(){const _0x126a09=a53_0x27e367,_0x42f0c3={};_0x42f0c3['RIPhI']=_0x126a09(0x152);const _0x52c654=_0x42f0c3;throw new Error(_0x52c654[_0x126a09(0x11e)]);}static [a53_0x27e367(0x135)]=null;static async[a53_0x27e367(0x15c)](_0x57f965,_0x285152){const _0x425b9d=a53_0x27e367,_0x2f221f={'SmMJT':_0x425b9d(0x163),'QUNwA':function(_0x3a3d34,_0x114440){return _0x3a3d34===_0x114440;},'hECPW':_0x425b9d(0x11c),'qNxhp':'local_grid','BifLd':function(_0x3eb104,_0x4de4ea){return _0x3eb104(_0x4de4ea);},'OcnnW':_0x425b9d(0x13b),'SVGPd':_0x425b9d(0x136),'AjTIJ':_0x425b9d(0x15f),'GppNF':function(_0x50b9f0){return _0x50b9f0();},'gSYHq':function(_0x5ddd66){return _0x5ddd66();}};try{let _0x2fa526=_0x2f221f[_0x425b9d(0x122)],_0x254dba=null;_0x57f965&&_0x2f221f[_0x425b9d(0x138)](typeof _0x57f965[_0x425b9d(0x13c)],_0x2f221f['hECPW'])&&(_0x254dba=await _0x57f965[_0x425b9d(0x13c)]());let _0x835354=null,_0xf93dac=null,_0xd12081=null,_0x26fdd2=_0x2f221f[_0x425b9d(0x116)];if(_0x285152){_0x26fdd2=_0x2f221f[_0x425b9d(0x12c)](getCloudProviderFromWsEndpoint,_0x285152);if(_0x2f221f['QUNwA'](_0x26fdd2,_0x2f221f[_0x425b9d(0x12b)]))_0xd12081=constants[_0x425b9d(0x158)]?constants[_0x425b9d(0x158)][_0x425b9d(0x147)](_0x285152)?_0x2f221f[_0x425b9d(0x15a)]:_0x2f221f['AjTIJ']:_0x2f221f['AjTIJ'],_0x2fa526=_0x2f221f['BifLd'](getBrowserFromWSEndpoint,_0x285152)||_0x2fa526,_0x835354=this[_0x425b9d(0x120)]['platform'],_0xf93dac=this[_0x425b9d(0x120)][_0x425b9d(0x139)];else{const _0x1cec40=await _0x2f221f[_0x425b9d(0x124)](getPlatformDetails);_0x835354=_0x1cec40['platformName'],_0xf93dac=_0x1cec40[_0x425b9d(0x145)];}}else{const _0x333687=await _0x2f221f['gSYHq'](getPlatformDetails);_0x835354=_0x333687[_0x425b9d(0x113)],_0xf93dac=_0x333687[_0x425b9d(0x145)];}const _0x1b5632={};_0x1b5632[_0x425b9d(0x13a)]=_0x2fa526,_0x1b5632[_0x425b9d(0x166)]=_0x254dba,_0x1b5632[_0x425b9d(0x13f)]={},_0x1b5632[_0x425b9d(0x15d)]=_0x835354,_0x1b5632[_0x425b9d(0x139)]=_0xf93dac,_0x1b5632[_0x425b9d(0x12d)]=_0xd12081;const _0x4bd9a6=_0x1b5632,_0x39a972={};_0x39a972[_0x425b9d(0x131)]=_0x26fdd2,this[_0x425b9d(0x120)]=Object[_0x425b9d(0x14c)]({},this[_0x425b9d(0x120)],_0x39a972,_0x4bd9a6);}catch(_0x3fbb79){_0x2f221f[_0x425b9d(0x12c)](debug,'Error\x20in\x20setupBrowserDetails:\x20'+util[_0x425b9d(0x119)](_0x3fbb79)),this[_0x425b9d(0x135)]=_0x3fbb79[_0x425b9d(0x13e)]();}}static[a53_0x27e367(0x150)](_0x4af72f){const _0x554e91=a53_0x27e367,_0x5e8f32={'dxhBy':function(_0x26c1ea,_0x5de735){return _0x26c1ea===_0x5de735;},'Iuaun':_0x554e91(0x151),'vjrjp':function(_0x401863,_0x270d0e){return _0x401863(_0x270d0e);},'HfspD':function(_0x2ab6ac,_0x1e3e6f){return _0x2ab6ac===_0x1e3e6f;},'vPRNo':_0x554e91(0x13d),'zBULy':function(_0x1caa9d,_0x15b879){return _0x1caa9d(_0x15b879);}},_0x7131f=this;try{const _0x233574=_0x4af72f[_0x554e91(0x159)]||_0x4af72f[_0x554e91(0x130)];if(!_0x233574||_0x233574[_0x554e91(0x15b)])return;const _0x221d5e=_0x233574[_0x554e91(0x153)];_0x233574['onmessage']=function(_0x421dde){const _0x9cad72=_0x554e91;try{const _0x43e1ca=_0x5e8f32[_0x9cad72(0x121)](typeof _0x421dde,_0x5e8f32[_0x9cad72(0x155)])?JSON[_0x9cad72(0x148)](_0x421dde):_0x421dde,_0x225ca0=_0x43e1ca?.[_0x9cad72(0x11b)]||_0x43e1ca?.[_0x9cad72(0x14e)]||_0x43e1ca?.[_0x9cad72(0x123)]?.[_0x9cad72(0x14e)]||_0x43e1ca?.[_0x9cad72(0x123)]?.['bStackParams']||_0x43e1ca?.['result']?.['bsParams']||_0x43e1ca?.[_0x9cad72(0x146)]?.[_0x9cad72(0x11b)];if(_0x225ca0){if(BrowserstackCLI[_0x9cad72(0x128)]()[_0x9cad72(0x14b)]()){const _0x23b885={};_0x23b885[_0x9cad72(0x112)]=_0x43e1ca,BrowserstackCLI[_0x9cad72(0x128)]()[_0x9cad72(0x11f)]()[_0x9cad72(0x154)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x9cad72(0x134)],_0x23b885);}else{const _0x45617e=_0x225ca0[_0x9cad72(0x11d)],_0x3a2ae8=_0x225ca0['platformDetails'];_0x3a2ae8&&(_0x5e8f32[_0x9cad72(0x168)](debug,_0x9cad72(0x111)+JSON[_0x9cad72(0x169)](_0x3a2ae8)),_0x7131f['currentSessionDetails'][_0x9cad72(0x15d)]=_0x3a2ae8['platformName'],_0x7131f[_0x9cad72(0x120)][_0x9cad72(0x139)]=_0x3a2ae8[_0x9cad72(0x145)]),_0x45617e&&(_0x5e8f32[_0x9cad72(0x168)](debug,_0x9cad72(0x142)+_0x45617e),_0x7131f[_0x9cad72(0x120)]['bsSessionId']=_0x45617e);}_0x5e8f32[_0x9cad72(0x12f)](typeof _0x421dde,_0x5e8f32[_0x9cad72(0x155)])&&(delete _0x43e1ca[_0x9cad72(0x11b)],delete _0x43e1ca[_0x9cad72(0x14e)],_0x43e1ca['params']&&(delete _0x43e1ca['params']['bsParams'],delete _0x43e1ca[_0x9cad72(0x123)]['bStackParams']),_0x43e1ca[_0x9cad72(0x146)]&&(delete _0x43e1ca['result']['bsParams'],delete _0x43e1ca['result']['bStackParams']));}}catch(_0x3bd3cd){_0x5e8f32[_0x9cad72(0x168)](debug,'Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20'+_0x3bd3cd[_0x9cad72(0x112)]);}return _0x221d5e?.['apply'](this,arguments);},_0x233574[_0x554e91(0x15b)]=!![],logger[_0x554e91(0x117)](_0x5e8f32['vPRNo']);}catch(_0xec1b05){_0x5e8f32['zBULy'](debug,_0x554e91(0x132)+util[_0x554e91(0x119)](_0xec1b05)),_0x7131f[_0x554e91(0x135)]=_0xec1b05['toString']();}}static[a53_0x27e367(0x143)](){const _0x1453de=a53_0x27e367;return this[_0x1453de(0x120)];}}function a53_0x5ee0(_0x2b29b2,_0x6b2b10){const _0x3c5ed7=a53_0x3c5e();return a53_0x5ee0=function(_0x5ee04d,_0x48cfee){_0x5ee04d=_0x5ee04d-0x111;let _0x346843=_0x3c5ed7[_0x5ee04d];return _0x346843;},a53_0x5ee0(_0x2b29b2,_0x6b2b10);}module['exports']=PuppeteerSessionDetails;
@@ -1 +1 @@
1
- const a54_0x4ff27d=a54_0x104d;(function(_0xca4f19,_0x16cd25){const _0x264091=a54_0x104d,_0x4346d4=_0xca4f19();while(!![]){try{const _0x59b92c=-parseInt(_0x264091(0x6c))/0x1*(-parseInt(_0x264091(0x82))/0x2)+-parseInt(_0x264091(0x8b))/0x3+parseInt(_0x264091(0x68))/0x4*(parseInt(_0x264091(0x94))/0x5)+parseInt(_0x264091(0x7a))/0x6+-parseInt(_0x264091(0x75))/0x7+parseInt(_0x264091(0x7d))/0x8+-parseInt(_0x264091(0x69))/0x9;if(_0x59b92c===_0x16cd25)break;else _0x4346d4['push'](_0x4346d4['shift']());}catch(_0x30ea27){_0x4346d4['push'](_0x4346d4['shift']());}}}(a54_0x3e3c,0xa14bb));const {isTrue,isBrowserstackInfra}=require(a54_0x4ff27d(0x83)),setKeepAlive=require(a54_0x4ff27d(0x71)),util=require(a54_0x4ff27d(0x84)),logger=require(a54_0x4ff27d(0x8a))[a54_0x4ff27d(0x70)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),{addRequestSpy}=require('../../helpers/test-observability/utils'),a54_0x20beaf={};a54_0x20beaf[a54_0x4ff27d(0x72)]=undefined,a54_0x20beaf[a54_0x4ff27d(0x6b)]={},a54_0x20beaf[a54_0x4ff27d(0x91)]=![],a54_0x20beaf[a54_0x4ff27d(0x85)]=null,a54_0x20beaf[a54_0x4ff27d(0x74)]=![],a54_0x20beaf[a54_0x4ff27d(0x6b)]['id']=undefined,a54_0x20beaf[a54_0x4ff27d(0x6b)]['testInfo']=undefined;const workerDetails=a54_0x20beaf;global[a54_0x4ff27d(0x73)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();function a54_0x3e3c(){const _0x554b0d=['2521842QQVIEf','jestConfig','__skipSessionStatus','puppeteer-core','BROWSERSTACK_PUPPETEER','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','o11ySyncDone','../v2/cliUtils','isCliEnabled','68015YoYGof','PUPPETEER','332PTBwnM','5265693OpkIxD','getPackageVersion','currentTest','2439aLDbiT','catch','../v2/browserstackCLI','bootstrap','winstonLogger','../../helpers/setKeepAlive','workerInfo','__workerDetails','isPageFixture','1106609DoQuCp','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','format','getInstance','182034AAisNQ','puppeteer','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','3236608huQszE','debug','initializePuppeteerPatching','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','../utils/puppeteer-patcher','558ktKaVt','../../helpers/helper','util','pwPage','setFrameworkDetail','__skipSessionName','../utils/constants','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','../../helpers/logger'];a54_0x3e3c=function(){return _0x554b0d;};return a54_0x3e3c();}if(global['jestConfig'])try{isBrowserstackInfra()?(global[a54_0x4ff27d(0x87)]=isTrue(global[a54_0x4ff27d(0x8c)]?.['skipSessionName']),global[a54_0x4ff27d(0x8d)]=isTrue(global[a54_0x4ff27d(0x8c)]?.['skipSessionStatus'])):(global[a54_0x4ff27d(0x87)]=!![],global['__skipSessionStatus']=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper['getPackageVersion'](a54_0x4ff27d(0x7b))||helper[a54_0x4ff27d(0x6a)](a54_0x4ff27d(0x8e));if(puppeteerVersion)try{logger['debug'](a54_0x4ff27d(0x90)),puppeteerPatcher=require(a54_0x4ff27d(0x81)),puppeteerPatcher[a54_0x4ff27d(0x7f)](global[a54_0x4ff27d(0x8c)]),logger[a54_0x4ff27d(0x7e)](a54_0x4ff27d(0x77));}catch(a54_0xa25738){logger[a54_0x4ff27d(0x7e)]('[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20'+util[a54_0x4ff27d(0x78)](a54_0xa25738));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a54_0x4ff27d(0x6e)),CLIUtils=require(a54_0x4ff27d(0x92)),{FRAMEWORKS}=require(a54_0x4ff27d(0x88));BrowserstackCLI[a54_0x4ff27d(0x79)]()[a54_0x4ff27d(0x93)]()&&(logger[a54_0x4ff27d(0x7e)](a54_0x4ff27d(0x89)),process['env'][a54_0x4ff27d(0x8f)]='true',CLIUtils[a54_0x4ff27d(0x86)](FRAMEWORKS['JEST'],FRAMEWORKS[a54_0x4ff27d(0x95)]),BrowserstackCLI[a54_0x4ff27d(0x79)]()[a54_0x4ff27d(0x6f)]()[a54_0x4ff27d(0x6d)](_0x12f4a1=>{const _0x171b38=a54_0x4ff27d;logger['debug'](_0x171b38(0x76)+util[_0x171b38(0x78)](_0x12f4a1));}));}catch(a54_0x54a045){logger[a54_0x4ff27d(0x7e)](a54_0x4ff27d(0x80)+util[a54_0x4ff27d(0x78)](a54_0x54a045));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a54_0x29a735){logger[a54_0x4ff27d(0x7e)](a54_0x4ff27d(0x7c)+util[a54_0x4ff27d(0x78)](a54_0x29a735));}function a54_0x104d(_0x31d987,_0x453a46){const _0x3e3c40=a54_0x3e3c();return a54_0x104d=function(_0x104d32,_0x8f5582){_0x104d32=_0x104d32-0x68;let _0x521a21=_0x3e3c40[_0x104d32];return _0x521a21;},a54_0x104d(_0x31d987,_0x453a46);}logger[a54_0x4ff27d(0x7e)]('[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed');
1
+ const a54_0x251a4f=a54_0xc919;(function(_0x23a44f,_0x5c9962){const _0x1ba267=a54_0xc919,_0x47ea36=_0x23a44f();while(!![]){try{const _0x115edb=parseInt(_0x1ba267(0x1ab))/0x1+parseInt(_0x1ba267(0x1b2))/0x2*(-parseInt(_0x1ba267(0x1b8))/0x3)+parseInt(_0x1ba267(0x1c3))/0x4*(parseInt(_0x1ba267(0x1ca))/0x5)+parseInt(_0x1ba267(0x1ba))/0x6+-parseInt(_0x1ba267(0x1bf))/0x7+-parseInt(_0x1ba267(0x1bd))/0x8*(-parseInt(_0x1ba267(0x1ad))/0x9)+-parseInt(_0x1ba267(0x1c8))/0xa;if(_0x115edb===_0x5c9962)break;else _0x47ea36['push'](_0x47ea36['shift']());}catch(_0x36b289){_0x47ea36['push'](_0x47ea36['shift']());}}}(a54_0x980d,0x3ff9a));const {isTrue,isBrowserstackInfra}=require(a54_0x251a4f(0x1c7)),setKeepAlive=require(a54_0x251a4f(0x1b4)),util=require('util'),logger=require(a54_0x251a4f(0x1c1))['winstonLogger'],{shouldProcessEventForTesthub}=require(a54_0x251a4f(0x1cb)),{addRequestSpy}=require(a54_0x251a4f(0x1aa)),a54_0x2a155f={};a54_0x2a155f[a54_0x251a4f(0x1cd)]=undefined,a54_0x2a155f[a54_0x251a4f(0x1b9)]={},a54_0x2a155f[a54_0x251a4f(0x1cf)]=![],a54_0x2a155f[a54_0x251a4f(0x1d0)]=null,a54_0x2a155f[a54_0x251a4f(0x1bc)]=![],a54_0x2a155f[a54_0x251a4f(0x1b9)]['id']=undefined,a54_0x2a155f[a54_0x251a4f(0x1b9)][a54_0x251a4f(0x1b7)]=undefined;const workerDetails=a54_0x2a155f;global[a54_0x251a4f(0x1b0)]=workerDetails;function a54_0xc919(_0x23e62c,_0x50cdd2){const _0x980d95=a54_0x980d();return a54_0xc919=function(_0xc91924,_0x57a830){_0xc91924=_0xc91924-0x1a2;let _0x35f64d=_0x980d95[_0xc91924];return _0x35f64d;},a54_0xc919(_0x23e62c,_0x50cdd2);}let puppeteerPatcher=null;setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a54_0x251a4f(0x1ce)]=isTrue(global[a54_0x251a4f(0x1c4)]?.['skipSessionName']),global[a54_0x251a4f(0x1ae)]=isTrue(global[a54_0x251a4f(0x1c4)]?.[a54_0x251a4f(0x1af)])):(global[a54_0x251a4f(0x1ce)]=!![],global[a54_0x251a4f(0x1ae)]=!![]);const helper=require(a54_0x251a4f(0x1c7)),puppeteerVersion=helper[a54_0x251a4f(0x1c9)]('puppeteer')||helper[a54_0x251a4f(0x1c9)](a54_0x251a4f(0x1a7));if(puppeteerVersion)try{logger['debug'](a54_0x251a4f(0x1b6)),puppeteerPatcher=require(a54_0x251a4f(0x1c6)),puppeteerPatcher[a54_0x251a4f(0x1ac)](global[a54_0x251a4f(0x1c4)]),logger[a54_0x251a4f(0x1b5)](a54_0x251a4f(0x1b1));}catch(a54_0x30c543){logger[a54_0x251a4f(0x1b5)](a54_0x251a4f(0x1a8)+util[a54_0x251a4f(0x1b3)](a54_0x30c543));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a54_0x251a4f(0x1c0)),CLIUtils=require('../v2/cliUtils'),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI[a54_0x251a4f(0x1a5)]()[a54_0x251a4f(0x1c5)]()&&(logger[a54_0x251a4f(0x1b5)](a54_0x251a4f(0x1cc)),process[a54_0x251a4f(0x1a4)][a54_0x251a4f(0x1bb)]=a54_0x251a4f(0x1a3),CLIUtils[a54_0x251a4f(0x1a2)](FRAMEWORKS['JEST'],FRAMEWORKS['PUPPETEER']),BrowserstackCLI[a54_0x251a4f(0x1a5)]()[a54_0x251a4f(0x1c2)]()[a54_0x251a4f(0x1a6)](_0x4d69c4=>{const _0x42160b=a54_0x251a4f;logger['debug']('[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20'+util[_0x42160b(0x1b3)](_0x4d69c4));}));}catch(a54_0x3e64f9){logger[a54_0x251a4f(0x1b5)](a54_0x251a4f(0x1be)+util[a54_0x251a4f(0x1b3)](a54_0x3e64f9));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a54_0x27cf81){logger[a54_0x251a4f(0x1b5)](a54_0x251a4f(0x1a9)+util['format'](a54_0x27cf81));}logger[a54_0x251a4f(0x1b5)](a54_0x251a4f(0x1d1));function a54_0x980d(){const _0x5798b8=['testInfo','18hEHIFu','currentTest','935052WgdHKZ','BROWSERSTACK_PUPPETEER','isPageFixture','8VDOBKH','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','280448tqhZMf','../v2/browserstackCLI','../../helpers/logger','bootstrap','760096kbNdaq','jestConfig','isCliEnabled','../utils/puppeteer-patcher','../../helpers/helper','5707310YExKKU','getPackageVersion','10ceqrGZ','../../helpers/testhub/utils','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','workerInfo','__skipSessionName','o11ySyncDone','pwPage','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','setFrameworkDetail','true','env','getInstance','catch','puppeteer-core','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','../../helpers/test-observability/utils','272692RfgPHA','initializePuppeteerPatching','3635721bvgXQs','__skipSessionStatus','skipSessionStatus','__workerDetails','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','113238fezJRi','format','../../helpers/setKeepAlive','debug','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest'];a54_0x980d=function(){return _0x5798b8;};return a54_0x980d();}
package/src/bin/runner.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a55_0x5828fd=a55_0x5076;(function(_0x3f8511,_0x493696){const _0x21f953=a55_0x5076,_0x5119a4=_0x3f8511();while(!![]){try{const _0x17766a=-parseInt(_0x21f953(0x1ec))/0x1+parseInt(_0x21f953(0x1eb))/0x2*(-parseInt(_0x21f953(0x223))/0x3)+-parseInt(_0x21f953(0x26d))/0x4+-parseInt(_0x21f953(0x20f))/0x5+-parseInt(_0x21f953(0x1f2))/0x6+-parseInt(_0x21f953(0x231))/0x7*(parseInt(_0x21f953(0x20a))/0x8)+parseInt(_0x21f953(0x281))/0x9;if(_0x17766a===_0x493696)break;else _0x5119a4['push'](_0x5119a4['shift']());}catch(_0x4b1451){_0x5119a4['push'](_0x5119a4['shift']());}}}(a55_0x468e,0x750c8));function a55_0x468e(){const _0x55c355=['assign','./mocha/command','tFUoZ','28283229TfivCj','start','usage','homedir','MOCHA','run','ZNwhK','CODECEPTJS','disableAutoCaptureLogs','NrtXq','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','getPwChannelLogPath','./playwright/command','ojHCy','uyWwL','./cucumber-js/command','20dmMbxO','261862SebInG','--opts','env','ENaya','vanilla','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','3903150agjofn','setBrowserStackAutomationDisable','demandCommand','some','DEBUG_FILE','BROWSERSTACK_CONFIG_FILE_PATH','Secbr','./nightwatch/command','AhJBP','../helpers/test-observability/constants','winstonLogger','VANILLA','--config','exitCode','NEWMAN','tDEzo','existsSync','getConfigPath','MdIgr','util','alias','help','CquFM','error','30632WAximD','jwFSi','message','SDK_SETUP','LnZHh','2663590BnrHga','eXoOt','KVmlU','Running\x20SDK\x20with\x20args\x20','stack','strict','--require','end','DEBUG','option','INTEGRATIONS','idPOk','setTestObservabilityDisable','VERSION','playwright','jest','./load/index','ZzWBg','../helpers/logger','./vanilla-js/command','33237myYiwf','mocha','newman','jNWVD','yargs','path','format','getInstance','NHOzz','command','gdZEk','OJcfy','./newman/helper','../helpers/performance/performance-tester','945rTTVTU','NIGHTWATCH','config','codeceptjs','argv','showHelpOnFail','filter','pw:*','DRgxi','SvKIn','../helpers/performance/constants','mocha/lib/cli/run.js','XrhaA','Show\x20help','HELP','fireFunnelTestEvent','--no-config','nnddP','oMJvp','push','nvejM','INFO','CUCUMBER','jmSJO','pw:channel\x20auto-capture\x20seed\x20failed:\x20','isUndefined','OlzdF','--package','framework','stop','JujtH','spawn','slice','rqxdQ','PQCIv','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','cksGc','eXKMe','TbowU','ycYVm','./utils/constants','ats','--mochaRequire','includes','URJPl','node','../helpers/helper','KriVW','-pw:*','version','join','./newman/command','NuoPd','cucumber-js','ebCKM','../../ats/src/index','zVPeD','unlinkSync','./v2/browserstackCLI','EPvHV','2361356CpUMYd','PLAYWRIGHT','../helpers/utilities','./integrations/command','handler','bteeY','./jest/command','jMEvx','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','pw:channel','oxHQx','map','debug','EVENTS','-pw:channel','xLHit','usage:\x20$0\x20<command>\x20[args]'];a55_0x468e=function(){return _0x55c355;};return a55_0x468e();}const fs=require('fs'),path=require(a55_0x5828fd(0x228)),util=require(a55_0x5828fd(0x205)),spawn=require('child_process')[a55_0x5828fd(0x250)],{requireModule}=require('../helpers/helper'),PerformanceTester=require(a55_0x5828fd(0x230)),PerformanceEvents=require(a55_0x5828fd(0x23b))[a55_0x5828fd(0x27a)],helper=require(a55_0x5828fd(0x25f)),utilities=require(a55_0x5828fd(0x26f)),{default:BrowserStackSetup}=require('../helpers/BrowserStackSetup'),{FRAMEWORKS}=require(a55_0x5828fd(0x1fb)),runIntegrations=require(a55_0x5828fd(0x270)),yargs=require(a55_0x5828fd(0x227)),Constants=require(a55_0x5828fd(0x259)),BrowserstackCLI=require(a55_0x5828fd(0x26b)),{isNewman}=require(a55_0x5828fd(0x22f)),logger=require(a55_0x5828fd(0x221))[a55_0x5828fd(0x1fc)],origArgs=Object[a55_0x5828fd(0x27e)]([],process[a55_0x5828fd(0x235)]),captureError=async(_0x38b92f,_0x3c2012,_0x3860f5,_0x3ce476=null,_0x5d070f=![])=>{const _0x32b934=a55_0x5828fd,_0x3b74a5={'rqxdQ':function(_0x103e0d,_0x4e1e4a,_0xadbd9e,_0x224126){return _0x103e0d(_0x4e1e4a,_0xadbd9e,_0x224126);},'ENaya':'SDKTestSuccessful'};try{logger['info'](_0x32b934(0x212)+origArgs[_0x32b934(0x263)]('\x20')),await _0x3b74a5[_0x32b934(0x252)](_0x38b92f,_0x3c2012,_0x3ce476,_0x3860f5);}catch(_0x5f57fd){process[_0x32b934(0x1ff)]=0x1,logger[_0x32b934(0x209)](util[_0x32b934(0x229)](_0x5f57fd));const _0xe4e10a={'globalException':util['format']('%j',_0x5f57fd)};PerformanceTester[_0x32b934(0x216)](PerformanceEvents[_0x32b934(0x20d)],![],util[_0x32b934(0x229)](_0x5f57fd));if(helper[_0x32b934(0x24a)](global['config'])&&helper[_0x32b934(0x24a)](global[_0x32b934(0x24d)]))return;try{utilities[_0x32b934(0x240)](_0x3b74a5[_0x32b934(0x1ef)],_0xe4e10a,global[_0x32b934(0x233)],global[_0x32b934(0x24d)]);}catch(_0x1b0293){logger[_0x32b934(0x279)](_0x32b934(0x254)+_0x1b0293[_0x32b934(0x213)]);}try{await helper['sendLogs'](global['config']);}catch(_0x75fdcb){logger[_0x32b934(0x279)](_0x32b934(0x275)+_0x75fdcb[_0x32b934(0x213)]);}PerformanceTester['end'](PerformanceEvents[_0x32b934(0x20d)],![],util[_0x32b934(0x229)](_0x5f57fd));}finally{!_0x5d070f&&await BrowserstackCLI[_0x32b934(0x22a)]()[_0x32b934(0x24e)](),PerformanceTester[_0x32b934(0x282)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path['join'](helper[a55_0x5828fd(0x284)](),'.browserstack');if(fs[a55_0x5828fd(0x202)](browserstackFolderPath)){const filePath=path['join'](browserstackFolderPath,'.local-not-set.json');fs[a55_0x5828fd(0x202)](filePath)&&fs[a55_0x5828fd(0x26a)](filePath);}}catch(a55_0x57531e){logger[a55_0x5828fd(0x279)](a55_0x5828fd(0x1f1)+a55_0x57531e[a55_0x5828fd(0x20c)]);}process[a55_0x5828fd(0x235)][a55_0x5828fd(0x25c)](a55_0x5828fd(0x224))&&(!process[a55_0x5828fd(0x235)][a55_0x5828fd(0x25c)](a55_0x5828fd(0x1ed))&&process['argv']['push']('--no-opts'),!process[a55_0x5828fd(0x235)]['find'](_0x3a6ddd=>_0x3a6ddd['includes'](a55_0x5828fd(0x1fe)))&&process['argv'][a55_0x5828fd(0x244)](a55_0x5828fd(0x241)),!process['argv'][a55_0x5828fd(0x25c)](a55_0x5828fd(0x24c))&&process[a55_0x5828fd(0x235)]['push']('--no-package'),helper['findAndReplace'](process[a55_0x5828fd(0x235)],a55_0x5828fd(0x215),a55_0x5828fd(0x25b)));PerformanceTester[a55_0x5828fd(0x282)](PerformanceEvents[a55_0x5828fd(0x20d)]);function a55_0x5076(_0x37fad3,_0x324b42){const _0x468e35=a55_0x468e();return a55_0x5076=function(_0x5076dc,_0x4f0b09){_0x5076dc=_0x5076dc-0x1e4;let _0x2e1245=_0x468e35[_0x5076dc];return _0x2e1245;},a55_0x5076(_0x37fad3,_0x324b42);}const a55_0x4ab806={};a55_0x4ab806['dot-notation']=![];const argv=yargs['parserConfiguration'](a55_0x4ab806)[a55_0x5828fd(0x283)](a55_0x5828fd(0x27d))[a55_0x5828fd(0x206)]('v',a55_0x5828fd(0x262))['describe']('v')[a55_0x5828fd(0x206)]('h','help')[a55_0x5828fd(0x207)](a55_0x5828fd(0x207))[a55_0x5828fd(0x236)](!![],Constants[a55_0x5828fd(0x21c)][a55_0x5828fd(0x23f)])[a55_0x5828fd(0x22c)](a55_0x5828fd(0x21e),Constants['JEST'][a55_0x5828fd(0x246)],function(_0x3fd8f7){const _0xa643b2=a55_0x5828fd,_0x31b1bb={'CquFM':_0xa643b2(0x21e),'NHOzz':function(_0x57d44f,_0x51f902,_0x3af735,_0x1e1183,_0x1e6da3,_0x249725){return _0x57d44f(_0x51f902,_0x3af735,_0x1e1183,_0x1e6da3,_0x249725);},'jwFSi':function(_0x2ef2dc,_0x3a77af){return _0x2ef2dc(_0x3a77af);},'Sqmbe':_0xa643b2(0x273)},_0x1c0138=process[_0xa643b2(0x235)][_0xa643b2(0x251)](0x2);helper[_0xa643b2(0x21b)](),helper[_0xa643b2(0x1f3)](),_0x3fd8f7[_0xa643b2(0x214)](![]);const _0x244d40=new BrowserStackSetup(_0x3fd8f7[_0xa643b2(0x235)],_0x31b1bb[_0xa643b2(0x208)]);return _0x31b1bb[_0xa643b2(0x22b)](captureError,_0x31b1bb[_0xa643b2(0x20b)](require,_0x31b1bb['Sqmbe']),_0x3fd8f7[_0xa643b2(0x235)],_0x244d40,_0x1c0138,!![]);})[a55_0x5828fd(0x22c)]('mocha',Constants[a55_0x5828fd(0x285)][a55_0x5828fd(0x246)],_0x1b0939=>{const _0x45192a=a55_0x5828fd,_0x284ff5={'DCzVP':function(_0x12dab2,_0x5602f3,_0x58febf,_0x549d70){return _0x12dab2(_0x5602f3,_0x58febf,_0x549d70);},'gdZEk':function(_0x4f6a05,_0x56d12d){return _0x4f6a05(_0x56d12d);},'AJQeE':_0x45192a(0x27f),'oxHQx':'mocha','ZzWBg':'Parsing\x20command\x20line\x20arguments','JujtH':function(_0x5be2fe,_0x5335e2,_0x545a02){return _0x5be2fe(_0x5335e2,_0x545a02);},'XrhaA':_0x45192a(0x23c),'jmSJO':'mocha/lib/cli/commands.js','DRgxi':function(_0x44a6ff,_0x54816f,_0x45873b){return _0x44a6ff(_0x54816f,_0x45873b);},'OJcfy':'mocha/lib/cli/cli.js','ojHCy':function(_0x32fd58){return _0x32fd58();}};process[_0x45192a(0x235)]=process[_0x45192a(0x235)][_0x45192a(0x251)](0x1),helper[_0x45192a(0x21b)](),helper[_0x45192a(0x1f3)]();const _0x18bb55=new BrowserStackSetup(_0x1b0939['argv'],_0x284ff5['oxHQx']);logger[_0x45192a(0x279)](_0x284ff5[_0x45192a(0x220)]);const _0x816c=_0x284ff5[_0x45192a(0x24f)](requireModule,_0x284ff5[_0x45192a(0x23d)],_0x284ff5[_0x45192a(0x277)]),_0x120e3e=_0x284ff5[_0x45192a(0x24f)](requireModule,_0x284ff5[_0x45192a(0x248)],_0x284ff5[_0x45192a(0x277)]);delete _0x816c[_0x45192a(0x271)],_0x816c['handler']=function(_0x34ef9b){const _0x4af4e2=_0x45192a;return _0x284ff5['DCzVP'](captureError,_0x284ff5[_0x4af4e2(0x22d)](require,_0x284ff5['AJQeE']),_0x34ef9b,_0x18bb55);},_0x120e3e[_0x45192a(0x286)]=_0x816c;const {main:_0x9115a1}=_0x284ff5[_0x45192a(0x239)](requireModule,_0x284ff5[_0x45192a(0x22e)],_0x284ff5[_0x45192a(0x277)]);_0x284ff5[_0x45192a(0x1e8)](_0x9115a1);})[a55_0x5828fd(0x22c)]('cucumber-js',Constants[a55_0x5828fd(0x247)]['INFO'],function(_0x58d539){const _0x1d0597=a55_0x5828fd,_0x1268de={'NuoPd':_0x1d0597(0x266),'nnddP':function(_0x4549aa,_0x3aa98e,_0x104d8d,_0xbb5279,_0x5755c5,_0x578353){return _0x4549aa(_0x3aa98e,_0x104d8d,_0xbb5279,_0x5755c5,_0x578353);},'gfyEm':function(_0x226a6d,_0x402f13){return _0x226a6d(_0x402f13);},'xLHit':_0x1d0597(0x1ea)},_0x45b9da=process[_0x1d0597(0x235)][_0x1d0597(0x251)](0x2),_0x44b264=new BrowserStackSetup(_0x58d539[_0x1d0597(0x235)],_0x1268de[_0x1d0597(0x265)]);return _0x1268de[_0x1d0597(0x242)](captureError,_0x1268de['gfyEm'](require,_0x1268de[_0x1d0597(0x27c)]),_0x58d539[_0x1d0597(0x235)],_0x44b264,_0x45b9da,!![]);})[a55_0x5828fd(0x22c)](a55_0x5828fd(0x25e),Constants[a55_0x5828fd(0x1fd)][a55_0x5828fd(0x246)],function(_0x38d875){const _0x52500c=a55_0x5828fd,_0x272956={'KriVW':_0x52500c(0x1f0),'ycYVm':function(_0x2545a7,_0x11a13f){return _0x2545a7(_0x11a13f);},'zVPeD':'newman','OlzdF':function(_0x231bb1,_0x4f385e,_0x5ac95c,_0x3677f4,_0x2e5948){return _0x231bb1(_0x4f385e,_0x5ac95c,_0x3677f4,_0x2e5948);},'Rwwnn':_0x52500c(0x264),'MdIgr':function(_0x1f8e91,_0x3c3fc0){return _0x1f8e91(_0x3c3fc0);},'nvejM':_0x52500c(0x222)},_0x2d6120=process[_0x52500c(0x235)]['slice'](0x2),_0x192309=new BrowserStackSetup(_0x38d875[_0x52500c(0x235)],_0x272956[_0x52500c(0x260)]),_0x26f4f3=_0x192309?_0x192309[_0x52500c(0x233)]:null;if(_0x272956[_0x52500c(0x258)](isNewman,_0x26f4f3))return _0x192309[_0x52500c(0x24d)]=_0x272956['zVPeD'],global[_0x52500c(0x24d)]=_0x272956[_0x52500c(0x269)],_0x272956[_0x52500c(0x24b)](captureError,_0x272956['ycYVm'](require,_0x272956['Rwwnn']),_0x38d875['argv'],_0x192309,_0x2d6120);return _0x272956['OlzdF'](captureError,_0x272956[_0x52500c(0x204)](require,_0x272956[_0x52500c(0x245)]),_0x38d875[_0x52500c(0x235)],_0x192309,_0x2d6120);})[a55_0x5828fd(0x22c)]('nightwatch',Constants[a55_0x5828fd(0x232)]['INFO'],function(_0x11410b){const _0x4d7d95=a55_0x5828fd,_0x261f61={'ZNwhK':function(_0x58eb97,_0x1f36ca,_0x1528d6,_0xabd4ad,_0x4643ad){return _0x58eb97(_0x1f36ca,_0x1528d6,_0xabd4ad,_0x4643ad);},'AhJBP':function(_0x561e0b,_0x55b4cd){return _0x561e0b(_0x55b4cd);},'EPvHV':_0x4d7d95(0x1f9)},_0x21ed8b=process[_0x4d7d95(0x235)]['slice'](0x2),_0xbd743=new BrowserStackSetup(_0x11410b[_0x4d7d95(0x235)]);return _0x261f61[_0x4d7d95(0x287)](captureError,_0x261f61[_0x4d7d95(0x1fa)](require,_0x261f61[_0x4d7d95(0x26c)]),_0x11410b[_0x4d7d95(0x235)],_0xbd743,_0x21ed8b);})[a55_0x5828fd(0x22c)](a55_0x5828fd(0x234),Constants[a55_0x5828fd(0x288)][a55_0x5828fd(0x246)],function(_0x2dafbf){const _0x268640=a55_0x5828fd,_0x155b8d={'oMJvp':_0x268640(0x234),'bteeY':function(_0x1005a9,_0x87bf11,_0x41f64d,_0x3cd56e,_0x1aa040){return _0x1005a9(_0x87bf11,_0x41f64d,_0x3cd56e,_0x1aa040);},'jMEvx':function(_0x54fcb4,_0x439193){return _0x54fcb4(_0x439193);},'uyWwL':'./codeceptjs/command'},_0x13ddfd=process[_0x268640(0x235)][_0x268640(0x251)](0x2),_0x2f9170=new BrowserStackSetup(_0x2dafbf[_0x268640(0x235)],_0x155b8d[_0x268640(0x243)]);return _0x155b8d[_0x268640(0x272)](captureError,_0x155b8d[_0x268640(0x274)](require,_0x155b8d[_0x268640(0x1e9)]),_0x2dafbf['argv'],_0x2f9170,_0x13ddfd);})['command'](a55_0x5828fd(0x25a),Constants['HST'][a55_0x5828fd(0x246)],function(_0x40cf03){const _0x546997=a55_0x5828fd,_0x1669dc={'TbowU':function(_0x4cd6e4,_0x1a5c68,_0x4fb21e){return _0x4cd6e4(_0x1a5c68,_0x4fb21e);},'URJPl':function(_0x306270,_0xe3795f){return _0x306270(_0xe3795f);},'tDEzo':_0x546997(0x268)},_0x3db43b=process[_0x546997(0x235)]['slice'](0x2);return _0x1669dc[_0x546997(0x257)](captureError,_0x1669dc[_0x546997(0x25d)](require,_0x1669dc[_0x546997(0x201)]),_0x40cf03);})[a55_0x5828fd(0x22c)]('integrations',Constants[a55_0x5828fd(0x219)][a55_0x5828fd(0x246)],function(_0x6d2353){const _0x38b6c0={'tKDlv':function(_0x7cac43,_0x187dd9){return _0x7cac43(_0x187dd9);}};return _0x38b6c0['tKDlv'](runIntegrations,_0x6d2353);})[a55_0x5828fd(0x22c)](a55_0x5828fd(0x21d),Constants['PLAYWRIGHT'][a55_0x5828fd(0x246)],function(_0x327049){const _0x36121b=a55_0x5828fd,_0x2b7128={'jNWVD':_0x36121b(0x276),'cksGc':function(_0x26d21f,_0x335a6a){return _0x26d21f&&_0x335a6a;},'eXKMe':function(_0x1a2a83,_0x4783dc,_0x257be0,_0x45ea0a,_0x130ebb,_0x5210a1){return _0x1a2a83(_0x4783dc,_0x257be0,_0x45ea0a,_0x130ebb,_0x5210a1);},'GAZqR':function(_0x76d132,_0x526edc){return _0x76d132(_0x526edc);},'LnZHh':_0x36121b(0x1e7)},_0x27eb1c=process['argv'][_0x36121b(0x251)](0x2);helper[_0x36121b(0x203)](process['argv'])&&(process[_0x36121b(0x1ee)][_0x36121b(0x1f7)]=helper['getConfigPath'](process[_0x36121b(0x235)]));helper[_0x36121b(0x21b)](),helper[_0x36121b(0x1f3)]();const _0x5a301f=new BrowserStackSetup(_0x327049[_0x36121b(0x235)],FRAMEWORKS[_0x36121b(0x26e)]);try{if(!_0x5a301f[_0x36121b(0x233)]||!_0x5a301f[_0x36121b(0x233)][_0x36121b(0x289)]){const _0x404be1=_0x2b7128[_0x36121b(0x226)],_0x5de929=process[_0x36121b(0x1ee)][_0x36121b(0x217)]||'',_0x61b319=_0x5de929['split'](',')[_0x36121b(0x278)](_0x21f3c7=>_0x21f3c7['trim']())[_0x36121b(0x237)](Boolean),_0x47a8f7=_0x61b319[_0x36121b(0x1f5)](_0x4fc76c=>_0x4fc76c===_0x36121b(0x27b)||_0x4fc76c===_0x36121b(0x261)||_0x4fc76c==='-*'),_0x59ca86=_0x61b319['some'](_0x47a156=>_0x47a156===_0x404be1||_0x47a156===_0x36121b(0x238)||_0x47a156==='*');if(_0x2b7128[_0x36121b(0x255)](!_0x47a8f7,!_0x59ca86)){const _0x1b9e40=helper[_0x36121b(0x1e6)]();_0x1b9e40&&(process[_0x36121b(0x1ee)][_0x36121b(0x217)]=_0x5de929?_0x5de929+','+_0x404be1:_0x404be1,!process['env'][_0x36121b(0x1f6)]&&(process['env']['DEBUG_FILE']=_0x1b9e40));}}}catch(_0x63c98f){logger[_0x36121b(0x279)](_0x36121b(0x249)+util[_0x36121b(0x229)](_0x63c98f));}return _0x2b7128[_0x36121b(0x256)](captureError,_0x2b7128['GAZqR'](require,_0x2b7128[_0x36121b(0x20e)]),_0x327049[_0x36121b(0x235)],_0x5a301f,_0x27eb1c,!![]);})[a55_0x5828fd(0x22c)]('load\x20[subcommand]','Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x6cfc11){const _0x3dd53e=a55_0x5828fd,_0x48bbfc={};_0x48bbfc[_0x3dd53e(0x211)]=_0x3dd53e(0x207),_0x48bbfc[_0x3dd53e(0x267)]='boolean',_0x48bbfc[_0x3dd53e(0x210)]=_0x3dd53e(0x23e);const _0x2069b7=_0x48bbfc;return _0x6cfc11[_0x3dd53e(0x207)](![])[_0x3dd53e(0x218)](_0x2069b7['KVmlU'],{'alias':'h','type':_0x2069b7[_0x3dd53e(0x267)],'describe':_0x2069b7[_0x3dd53e(0x210)]})['strict'](![])['exitProcess'](![]);},function(_0x3d7d66){const _0x524de6=a55_0x5828fd,_0x56bd62={'Secbr':function(_0x302282,_0x2dc988,_0x8ccae2){return _0x302282(_0x2dc988,_0x8ccae2);},'CPMfD':function(_0xca69e1,_0x455e89){return _0xca69e1(_0x455e89);},'tFUoZ':_0x524de6(0x21f)},_0x40df92={};return _0x40df92[_0x524de6(0x235)]=_0x3d7d66,_0x56bd62[_0x524de6(0x1f8)](captureError,_0x56bd62['CPMfD'](require,_0x56bd62[_0x524de6(0x280)]),_0x40df92);})[a55_0x5828fd(0x22c)](a55_0x5828fd(0x225),Constants[a55_0x5828fd(0x200)]['INFO'],function(_0x31d1ba){const _0x4857db=a55_0x5828fd,_0x2ddbde={'SvKIn':'newman','PQCIv':function(_0x29bf6d,_0x84ee5f,_0x52ce4d,_0x2f8e06,_0x45357b){return _0x29bf6d(_0x84ee5f,_0x52ce4d,_0x2f8e06,_0x45357b);},'NrtXq':function(_0x5d534d,_0x52d12b){return _0x5d534d(_0x52d12b);},'idPOk':_0x4857db(0x264)},_0x16890c=process[_0x4857db(0x235)][_0x4857db(0x251)](0x2);helper[_0x4857db(0x21b)](),helper['setBrowserStackAutomationDisable'](),_0x31d1ba[_0x4857db(0x214)](![]);const _0x328ebd=new BrowserStackSetup(_0x31d1ba[_0x4857db(0x235)],_0x2ddbde[_0x4857db(0x23a)]);return _0x2ddbde[_0x4857db(0x253)](captureError,_0x2ddbde[_0x4857db(0x1e4)](require,_0x2ddbde[_0x4857db(0x21a)]),_0x31d1ba[_0x4857db(0x235)],_0x328ebd,_0x16890c);})[a55_0x5828fd(0x1f4)](0x1,a55_0x5828fd(0x1e5))['wrap'](null)[a55_0x5828fd(0x235)];!helper[a55_0x5828fd(0x24a)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a55_0x5828fd(0x25a)&&console['error']('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
2
+ 'use strict';const a55_0x59eb1f=a55_0x1d5c;(function(_0x1c8d0b,_0x268e5c){const _0x2ca267=a55_0x1d5c,_0x4b9323=_0x1c8d0b();while(!![]){try{const _0x3ef83f=-parseInt(_0x2ca267(0x114))/0x1*(parseInt(_0x2ca267(0x14b))/0x2)+parseInt(_0x2ca267(0x11a))/0x3*(parseInt(_0x2ca267(0x12b))/0x4)+parseInt(_0x2ca267(0x10d))/0x5+-parseInt(_0x2ca267(0x1a5))/0x6+-parseInt(_0x2ca267(0x131))/0x7*(-parseInt(_0x2ca267(0x161))/0x8)+parseInt(_0x2ca267(0x116))/0x9*(parseInt(_0x2ca267(0x125))/0xa)+parseInt(_0x2ca267(0x15b))/0xb*(-parseInt(_0x2ca267(0x191))/0xc);if(_0x3ef83f===_0x268e5c)break;else _0x4b9323['push'](_0x4b9323['shift']());}catch(_0x36547e){_0x4b9323['push'](_0x4b9323['shift']());}}}(a55_0x445f,0x2368c));function a55_0x445f(){const _0x6366dd=['push','dot-notation','NEWMAN','child_process','NIGHTWATCH','JEST','../helpers/performance/constants','.local-not-set.json','OUuUt','map','ctAOo','cucumber-js','hbXdW','3856NLJCuS','RULOO','./playwright/command','load\x20[subcommand]','includes','exitProcess','../helpers/test-observability/constants','--no-config','pIfWm','wrap','CUCUMBER','Running\x20SDK\x20with\x20args\x20','usage:\x20$0\x20<command>\x20[args]','djtVd','-pw:channel','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','3245fEWavx','VANILLA','handler','newman','HST','jest','315856pJNwlp','demandCommand','PLAYWRIGHT','findAndReplace','../../ats/src/index','info','--package','env','Runs\x20the\x20binary\x20with\x20load\x20command','EPfBH','TRDqq','YhkhS','kaeHI','NPGKd','-pw:*','INFO','unlinkSync','pw:*','ElmXc','framework','SDK_CLEANUP','winstonLogger','codeceptjs','path','command','./load/index','error','showHelpOnFail','--config','getPwChannelLogPath','./newman/helper','CODECEPTJS','end','VniaW','DEBUG_FILE','getConfigPath','debug','util','existsSync','VERSION','vnfRk','slice','some','strict','assign','message','IzaEn','stop','11196qRIjtI','xqtsU','dtgLq','PgMcd','../helpers/utilities','ghQtV','trim','lqfeT','format','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','mocha/lib/cli/cli.js','stack','filter','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','aSLbd','argv','nmtjL','pQJQd','SDK_SETUP','EVENTS','168342Fkhbjo','UYVAC','--mochaRequire','pw:channel','help','start','../helpers/helper','join','--require','./codeceptjs/command','mocha/lib/cli/run.js','yargs','HcKqb','vanilla','SDKTestSuccessful','./mocha/command','IJptU','parserConfiguration','option','607785ONylfN','anQuj','--opts','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','DEBUG','INTEGRATIONS','integrations','39OuQyxU','getInstance','1233801mZUQAh','./integrations/command','./nightwatch/command','setBrowserStackAutomationDisable','41973LwFsjB','sendLogs','./jest/command','NSGeE','setTestObservabilityDisable','homedir','UwcdA','hjBJm','describe','uVKkN','MsGVx','10PbuWuI','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','./newman/command','FinUE','Parsing\x20command\x20line\x20arguments','mocha','8ARmmpD','QYDna','VFfDp','split','spawn','./cucumber-js/command','42ifSnXG','pw:channel\x20auto-capture\x20seed\x20failed:\x20','find','zDkXP','ats','config','Show\x20help','../helpers/BrowserStackSetup','disableAutoCaptureLogs','cyOIC','FmtoT','HELP','isUndefined'];a55_0x445f=function(){return _0x6366dd;};return a55_0x445f();}const fs=require('fs'),path=require(a55_0x59eb1f(0x178)),util=require(a55_0x59eb1f(0x186)),spawn=require(a55_0x59eb1f(0x141))[a55_0x59eb1f(0x12f)],{requireModule}=require('../helpers/helper'),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a55_0x59eb1f(0x144))[a55_0x59eb1f(0x1a4)],helper=require(a55_0x59eb1f(0x1ab)),utilities=require(a55_0x59eb1f(0x195)),{default:BrowserStackSetup}=require(a55_0x59eb1f(0x138)),{FRAMEWORKS}=require(a55_0x59eb1f(0x151)),runIntegrations=require(a55_0x59eb1f(0x117)),yargs=require(a55_0x59eb1f(0x1b0)),Constants=require('./utils/constants'),BrowserstackCLI=require('./v2/browserstackCLI'),{isNewman}=require(a55_0x59eb1f(0x17f)),logger=require('../helpers/logger')[a55_0x59eb1f(0x176)],origArgs=Object[a55_0x59eb1f(0x18d)]([],process[a55_0x59eb1f(0x1a0)]),captureError=async(_0x5d11cc,_0x48d8ec,_0x111a81,_0x5c28c6=null,_0x149529=![])=>{const _0x2cffe1=a55_0x59eb1f,_0x1ac2fd={'ADuOb':function(_0x1d408e,_0x40b3a1,_0x59521f,_0x27bf9c){return _0x1d408e(_0x40b3a1,_0x59521f,_0x27bf9c);},'IzaEn':_0x2cffe1(0x108)};try{logger[_0x2cffe1(0x166)](_0x2cffe1(0x156)+origArgs['join']('\x20')),await _0x1ac2fd['ADuOb'](_0x5d11cc,_0x48d8ec,_0x5c28c6,_0x111a81);}catch(_0x388ede){process['exitCode']=0x1,logger[_0x2cffe1(0x17b)](util['format'](_0x388ede));const _0x10d6f3={'globalException':util[_0x2cffe1(0x199)]('%j',_0x388ede)};PerformanceTester[_0x2cffe1(0x181)](PerformanceEvents['SDK_SETUP'],![],util[_0x2cffe1(0x199)](_0x388ede));if(helper[_0x2cffe1(0x13d)](global['config'])&&helper[_0x2cffe1(0x13d)](global['framework']))return;try{utilities['fireFunnelTestEvent'](_0x1ac2fd[_0x2cffe1(0x18f)],_0x10d6f3,global[_0x2cffe1(0x136)],global['framework']);}catch(_0x6baf7a){logger[_0x2cffe1(0x185)](_0x2cffe1(0x19a)+_0x6baf7a[_0x2cffe1(0x19c)]);}try{await helper[_0x2cffe1(0x11b)](global['config']);}catch(_0x1f5520){logger[_0x2cffe1(0x185)](_0x2cffe1(0x19e)+_0x1f5520[_0x2cffe1(0x19c)]);}PerformanceTester[_0x2cffe1(0x181)](PerformanceEvents[_0x2cffe1(0x1a3)],![],util[_0x2cffe1(0x199)](_0x388ede));}finally{!_0x149529&&await BrowserstackCLI[_0x2cffe1(0x115)]()[_0x2cffe1(0x190)](),PerformanceTester['start'](PerformanceEvents[_0x2cffe1(0x175)]);}};try{const browserstackFolderPath=path['join'](helper[a55_0x59eb1f(0x11f)](),'.browserstack');if(fs[a55_0x59eb1f(0x187)](browserstackFolderPath)){const filePath=path[a55_0x59eb1f(0x1ac)](browserstackFolderPath,a55_0x59eb1f(0x145));fs[a55_0x59eb1f(0x187)](filePath)&&fs[a55_0x59eb1f(0x171)](filePath);}}catch(a55_0x2553ca){logger[a55_0x59eb1f(0x185)](a55_0x59eb1f(0x110)+a55_0x2553ca[a55_0x59eb1f(0x18e)]);}process[a55_0x59eb1f(0x1a0)][a55_0x59eb1f(0x14f)]('mocha')&&(!process['argv'][a55_0x59eb1f(0x14f)](a55_0x59eb1f(0x10f))&&process[a55_0x59eb1f(0x1a0)][a55_0x59eb1f(0x13e)]('--no-opts'),!process[a55_0x59eb1f(0x1a0)][a55_0x59eb1f(0x133)](_0x453f4d=>_0x453f4d[a55_0x59eb1f(0x14f)](a55_0x59eb1f(0x17d)))&&process['argv'][a55_0x59eb1f(0x13e)](a55_0x59eb1f(0x152)),!process[a55_0x59eb1f(0x1a0)][a55_0x59eb1f(0x14f)](a55_0x59eb1f(0x167))&&process[a55_0x59eb1f(0x1a0)][a55_0x59eb1f(0x13e)]('--no-package'),helper[a55_0x59eb1f(0x164)](process[a55_0x59eb1f(0x1a0)],a55_0x59eb1f(0x1ad),a55_0x59eb1f(0x1a7)));PerformanceTester[a55_0x59eb1f(0x1aa)](PerformanceEvents['SDK_SETUP']);function a55_0x1d5c(_0x3680f3,_0x376d30){const _0x445ff5=a55_0x445f();return a55_0x1d5c=function(_0x1d5c35,_0x51cda8){_0x1d5c35=_0x1d5c35-0x108;let _0x30ea48=_0x445ff5[_0x1d5c35];return _0x30ea48;},a55_0x1d5c(_0x3680f3,_0x376d30);}const a55_0x20bc0f={};a55_0x20bc0f[a55_0x59eb1f(0x13f)]=![];const argv=yargs[a55_0x59eb1f(0x10b)](a55_0x20bc0f)['usage'](a55_0x59eb1f(0x157))['alias']('v','version')[a55_0x59eb1f(0x122)]('v')['alias']('h','help')[a55_0x59eb1f(0x1a9)](a55_0x59eb1f(0x1a9))[a55_0x59eb1f(0x17c)](!![],Constants[a55_0x59eb1f(0x188)][a55_0x59eb1f(0x13c)])[a55_0x59eb1f(0x179)](a55_0x59eb1f(0x160),Constants[a55_0x59eb1f(0x143)][a55_0x59eb1f(0x170)],function(_0x194ed9){const _0xbdc6e1=a55_0x59eb1f,_0x2cbb7c={'vnfRk':_0xbdc6e1(0x160),'FinUE':function(_0x12aff6,_0x3876a9,_0x53fd32,_0x5104d0,_0x1594ba,_0x4cb697){return _0x12aff6(_0x3876a9,_0x53fd32,_0x5104d0,_0x1594ba,_0x4cb697);},'dxCOj':function(_0x4d80d4,_0x5cd476){return _0x4d80d4(_0x5cd476);},'lqfeT':_0xbdc6e1(0x11c)},_0x4508bf=process[_0xbdc6e1(0x1a0)][_0xbdc6e1(0x18a)](0x2);helper[_0xbdc6e1(0x11e)](),helper[_0xbdc6e1(0x119)](),_0x194ed9[_0xbdc6e1(0x18c)](![]);const _0x4c4486=new BrowserStackSetup(_0x194ed9['argv'],_0x2cbb7c[_0xbdc6e1(0x189)]);return _0x2cbb7c[_0xbdc6e1(0x128)](captureError,_0x2cbb7c['dxCOj'](require,_0x2cbb7c[_0xbdc6e1(0x198)]),_0x194ed9[_0xbdc6e1(0x1a0)],_0x4c4486,_0x4508bf,!![]);})[a55_0x59eb1f(0x179)](a55_0x59eb1f(0x12a),Constants['MOCHA']['INFO'],_0x2af3ce=>{const _0x3ce21c=a55_0x59eb1f,_0x50d764={'NPGKd':function(_0x541d79,_0x12d3bb,_0x12a500,_0x56ee0d){return _0x541d79(_0x12d3bb,_0x12a500,_0x56ee0d);},'eTneu':function(_0x42fc34,_0x287cc1){return _0x42fc34(_0x287cc1);},'bfvEG':_0x3ce21c(0x109),'QYDna':_0x3ce21c(0x12a),'pQJQd':_0x3ce21c(0x129),'OUuUt':function(_0x8b8edb,_0x1839ec,_0xc117d){return _0x8b8edb(_0x1839ec,_0xc117d);},'TRDqq':_0x3ce21c(0x1af),'BohkA':'mocha/lib/cli/commands.js','EPfBH':function(_0x346b3a,_0x3f180b,_0x4d5935){return _0x346b3a(_0x3f180b,_0x4d5935);},'kaeHI':_0x3ce21c(0x19b),'YhkhS':function(_0x37043c){return _0x37043c();}};process[_0x3ce21c(0x1a0)]=process[_0x3ce21c(0x1a0)]['slice'](0x1),helper['setTestObservabilityDisable'](),helper['setBrowserStackAutomationDisable']();const _0x596a2b=new BrowserStackSetup(_0x2af3ce[_0x3ce21c(0x1a0)],_0x50d764[_0x3ce21c(0x12c)]);logger[_0x3ce21c(0x185)](_0x50d764[_0x3ce21c(0x1a2)]);const _0x333981=_0x50d764[_0x3ce21c(0x146)](requireModule,_0x50d764[_0x3ce21c(0x16b)],_0x50d764[_0x3ce21c(0x12c)]),_0x31e1a0=_0x50d764['OUuUt'](requireModule,_0x50d764['BohkA'],_0x50d764[_0x3ce21c(0x12c)]);delete _0x333981[_0x3ce21c(0x15d)],_0x333981['handler']=function(_0x201cdf){const _0x1bf64b=_0x3ce21c;return _0x50d764[_0x1bf64b(0x16e)](captureError,_0x50d764['eTneu'](require,_0x50d764['bfvEG']),_0x201cdf,_0x596a2b);},_0x31e1a0['run']=_0x333981;const {main:_0x3a04ae}=_0x50d764[_0x3ce21c(0x16a)](requireModule,_0x50d764[_0x3ce21c(0x16d)],_0x50d764['QYDna']);_0x50d764[_0x3ce21c(0x16c)](_0x3a04ae);})[a55_0x59eb1f(0x179)](a55_0x59eb1f(0x149),Constants[a55_0x59eb1f(0x155)][a55_0x59eb1f(0x170)],function(_0x46d24a){const _0x30edc2=a55_0x59eb1f,_0x3f779d={'HcKqb':_0x30edc2(0x149),'ZAHhG':function(_0x59c111,_0x377313,_0xfe4540,_0x4ed6ae,_0x12391e,_0x4fcccc){return _0x59c111(_0x377313,_0xfe4540,_0x4ed6ae,_0x12391e,_0x4fcccc);},'anQuj':function(_0x20df84,_0x3aa1cc){return _0x20df84(_0x3aa1cc);},'NtzeM':_0x30edc2(0x130)},_0x35b592=process[_0x30edc2(0x1a0)][_0x30edc2(0x18a)](0x2),_0x54315e=new BrowserStackSetup(_0x46d24a['argv'],_0x3f779d[_0x30edc2(0x1b1)]);return _0x3f779d['ZAHhG'](captureError,_0x3f779d[_0x30edc2(0x10e)](require,_0x3f779d['NtzeM']),_0x46d24a[_0x30edc2(0x1a0)],_0x54315e,_0x35b592,!![]);})[a55_0x59eb1f(0x179)]('node',Constants[a55_0x59eb1f(0x15c)][a55_0x59eb1f(0x170)],function(_0x1748b7){const _0x70513c=a55_0x59eb1f,_0x149d96={'djtVd':_0x70513c(0x1b2),'hjBJm':function(_0x3c1fc9,_0x295e9c){return _0x3c1fc9(_0x295e9c);},'NSGeE':'newman','FmtoT':function(_0xc4fb21,_0x301a08,_0x55c383,_0x4fbe81,_0xad2207){return _0xc4fb21(_0x301a08,_0x55c383,_0x4fbe81,_0xad2207);},'UZwjh':function(_0x2115d4,_0x3e6bef){return _0x2115d4(_0x3e6bef);},'pIfWm':_0x70513c(0x127),'zDkXP':'./vanilla-js/command'},_0x3199b0=process[_0x70513c(0x1a0)]['slice'](0x2),_0x2c0b48=new BrowserStackSetup(_0x1748b7[_0x70513c(0x1a0)],_0x149d96[_0x70513c(0x158)]),_0x26f4b3=_0x2c0b48?_0x2c0b48['config']:null;if(_0x149d96[_0x70513c(0x121)](isNewman,_0x26f4b3))return _0x2c0b48['framework']=_0x149d96[_0x70513c(0x11d)],global[_0x70513c(0x174)]=_0x149d96[_0x70513c(0x11d)],_0x149d96[_0x70513c(0x13b)](captureError,_0x149d96['UZwjh'](require,_0x149d96[_0x70513c(0x153)]),_0x1748b7[_0x70513c(0x1a0)],_0x2c0b48,_0x3199b0);return _0x149d96[_0x70513c(0x13b)](captureError,_0x149d96['UZwjh'](require,_0x149d96[_0x70513c(0x134)]),_0x1748b7[_0x70513c(0x1a0)],_0x2c0b48,_0x3199b0);})[a55_0x59eb1f(0x179)]('nightwatch',Constants[a55_0x59eb1f(0x142)][a55_0x59eb1f(0x170)],function(_0xd5d7c7){const _0x1de62e=a55_0x59eb1f,_0x255cab={'cgTLZ':function(_0x1e5695,_0x42e13e,_0x49ca3a,_0x57c22d,_0x22f836){return _0x1e5695(_0x42e13e,_0x49ca3a,_0x57c22d,_0x22f836);},'dtgLq':function(_0x36cc8d,_0xa8c342){return _0x36cc8d(_0xa8c342);},'mqXVD':_0x1de62e(0x118)},_0x2147dd=process['argv'][_0x1de62e(0x18a)](0x2),_0x291fae=new BrowserStackSetup(_0xd5d7c7['argv']);return _0x255cab['cgTLZ'](captureError,_0x255cab[_0x1de62e(0x193)](require,_0x255cab['mqXVD']),_0xd5d7c7[_0x1de62e(0x1a0)],_0x291fae,_0x2147dd);})[a55_0x59eb1f(0x179)](a55_0x59eb1f(0x177),Constants[a55_0x59eb1f(0x180)][a55_0x59eb1f(0x170)],function(_0x161f28){const _0x275055=a55_0x59eb1f,_0x54df01={'xqtsU':_0x275055(0x177),'aSLbd':function(_0xaaf42a,_0x27c2e8,_0xf60c6f,_0x36067f,_0x148af6){return _0xaaf42a(_0x27c2e8,_0xf60c6f,_0x36067f,_0x148af6);},'gHBpp':function(_0xd05c81,_0x20a353){return _0xd05c81(_0x20a353);},'UwcdA':_0x275055(0x1ae)},_0x12e850=process['argv'][_0x275055(0x18a)](0x2),_0x369e83=new BrowserStackSetup(_0x161f28['argv'],_0x54df01[_0x275055(0x192)]);return _0x54df01[_0x275055(0x19f)](captureError,_0x54df01['gHBpp'](require,_0x54df01[_0x275055(0x120)]),_0x161f28[_0x275055(0x1a0)],_0x369e83,_0x12e850);})[a55_0x59eb1f(0x179)](a55_0x59eb1f(0x135),Constants[a55_0x59eb1f(0x15f)][a55_0x59eb1f(0x170)],function(_0x3074ac){const _0x5cb168=a55_0x59eb1f,_0x1e3487={'IJptU':function(_0x3707f8,_0x29b10e,_0x2c2557){return _0x3707f8(_0x29b10e,_0x2c2557);},'nmtjL':function(_0x5e0726,_0x34b06f){return _0x5e0726(_0x34b06f);},'uVKkN':_0x5cb168(0x165)},_0x4dba3b=process['argv'][_0x5cb168(0x18a)](0x2);return _0x1e3487[_0x5cb168(0x10a)](captureError,_0x1e3487[_0x5cb168(0x1a1)](require,_0x1e3487[_0x5cb168(0x123)]),_0x3074ac);})[a55_0x59eb1f(0x179)](a55_0x59eb1f(0x113),Constants[a55_0x59eb1f(0x112)][a55_0x59eb1f(0x170)],function(_0x4a317c){const _0xb4cb8a=a55_0x59eb1f,_0x51028e={'ctAOo':function(_0x444276,_0x310e82){return _0x444276(_0x310e82);}};return _0x51028e[_0xb4cb8a(0x148)](runIntegrations,_0x4a317c);})[a55_0x59eb1f(0x179)]('playwright',Constants['PLAYWRIGHT']['INFO'],function(_0x24b60a){const _0x35bb44=a55_0x59eb1f,_0x217a81={'ZeUOp':_0x35bb44(0x1a8),'cyOIC':function(_0xfe8ae1,_0x245490){return _0xfe8ae1&&_0x245490;},'VNdbu':function(_0x2cc46c,_0x540d1c,_0x25501e,_0x5c7d6b,_0x54c544,_0x34fd74){return _0x2cc46c(_0x540d1c,_0x25501e,_0x5c7d6b,_0x54c544,_0x34fd74);},'ywVGI':function(_0x1e963b,_0x43942f){return _0x1e963b(_0x43942f);},'MsGVx':_0x35bb44(0x14d)},_0x11e60a=process['argv']['slice'](0x2);helper[_0x35bb44(0x184)](process[_0x35bb44(0x1a0)])&&(process[_0x35bb44(0x168)]['BROWSERSTACK_CONFIG_FILE_PATH']=helper['getConfigPath'](process[_0x35bb44(0x1a0)]));helper[_0x35bb44(0x11e)](),helper['setBrowserStackAutomationDisable']();const _0x107bd6=new BrowserStackSetup(_0x24b60a['argv'],FRAMEWORKS[_0x35bb44(0x163)]);try{if(!_0x107bd6[_0x35bb44(0x136)]||!_0x107bd6[_0x35bb44(0x136)][_0x35bb44(0x139)]){const _0x5e2d46=_0x217a81['ZeUOp'],_0x5a3f3a=process['env'][_0x35bb44(0x111)]||'',_0x393586=_0x5a3f3a[_0x35bb44(0x12e)](',')[_0x35bb44(0x147)](_0x4324b4=>_0x4324b4[_0x35bb44(0x197)]())[_0x35bb44(0x19d)](Boolean),_0x3fa712=_0x393586[_0x35bb44(0x18b)](_0x3cb2df=>_0x3cb2df===_0x35bb44(0x159)||_0x3cb2df===_0x35bb44(0x16f)||_0x3cb2df==='-*'),_0x30fbba=_0x393586[_0x35bb44(0x18b)](_0x298872=>_0x298872===_0x5e2d46||_0x298872===_0x35bb44(0x172)||_0x298872==='*');if(_0x217a81[_0x35bb44(0x13a)](!_0x3fa712,!_0x30fbba)){const _0x1910e4=helper[_0x35bb44(0x17e)]();_0x1910e4&&(process[_0x35bb44(0x168)][_0x35bb44(0x111)]=_0x5a3f3a?_0x5a3f3a+','+_0x5e2d46:_0x5e2d46,!process[_0x35bb44(0x168)]['DEBUG_FILE']&&(process[_0x35bb44(0x168)][_0x35bb44(0x183)]=_0x1910e4));}}}catch(_0x29e204){logger['debug'](_0x35bb44(0x132)+util[_0x35bb44(0x199)](_0x29e204));}return _0x217a81['VNdbu'](captureError,_0x217a81['ywVGI'](require,_0x217a81[_0x35bb44(0x124)]),_0x24b60a['argv'],_0x107bd6,_0x11e60a,!![]);})['command'](a55_0x59eb1f(0x14e),a55_0x59eb1f(0x169),function(_0x2f756e){const _0x207afe=a55_0x59eb1f,_0x1289dd={};_0x1289dd[_0x207afe(0x173)]=_0x207afe(0x1a9),_0x1289dd[_0x207afe(0x182)]='boolean',_0x1289dd[_0x207afe(0x1a6)]=_0x207afe(0x137);const _0x5dfd3e=_0x1289dd;return _0x2f756e[_0x207afe(0x1a9)](![])[_0x207afe(0x10c)](_0x5dfd3e[_0x207afe(0x173)],{'alias':'h','type':_0x5dfd3e[_0x207afe(0x182)],'describe':_0x5dfd3e[_0x207afe(0x1a6)]})['strict'](![])[_0x207afe(0x150)](![]);},function(_0x4afd44){const _0x191348=a55_0x59eb1f,_0x48e971={'hbXdW':function(_0x289565,_0x95332d,_0x453aaf){return _0x289565(_0x95332d,_0x453aaf);},'lAzin':function(_0x10fd64,_0x239cda){return _0x10fd64(_0x239cda);},'BYKvj':_0x191348(0x17a)},_0x1767f6={};return _0x1767f6[_0x191348(0x1a0)]=_0x4afd44,_0x48e971[_0x191348(0x14a)](captureError,_0x48e971['lAzin'](require,_0x48e971['BYKvj']),_0x1767f6);})[a55_0x59eb1f(0x179)](a55_0x59eb1f(0x15e),Constants[a55_0x59eb1f(0x140)][a55_0x59eb1f(0x170)],function(_0x3de397){const _0x5f70ff=a55_0x59eb1f,_0x475914={'RULOO':_0x5f70ff(0x15e),'PgMcd':function(_0x5f27f3,_0x210cea,_0x643ee8,_0x32fe55,_0x4b071d){return _0x5f27f3(_0x210cea,_0x643ee8,_0x32fe55,_0x4b071d);},'ghQtV':function(_0x583ed8,_0x39210b){return _0x583ed8(_0x39210b);},'VFfDp':_0x5f70ff(0x127)},_0x3beff3=process[_0x5f70ff(0x1a0)][_0x5f70ff(0x18a)](0x2);helper[_0x5f70ff(0x11e)](),helper[_0x5f70ff(0x119)](),_0x3de397[_0x5f70ff(0x18c)](![]);const _0x5ad3d8=new BrowserStackSetup(_0x3de397[_0x5f70ff(0x1a0)],_0x475914[_0x5f70ff(0x14c)]);return _0x475914[_0x5f70ff(0x194)](captureError,_0x475914[_0x5f70ff(0x196)](require,_0x475914[_0x5f70ff(0x12d)]),_0x3de397[_0x5f70ff(0x1a0)],_0x5ad3d8,_0x3beff3);})[a55_0x59eb1f(0x162)](0x1,a55_0x59eb1f(0x126))[a55_0x59eb1f(0x154)](null)['argv'];!helper[a55_0x59eb1f(0x13d)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console[a55_0x59eb1f(0x17b)](a55_0x59eb1f(0x15a));
package/src/bin/setup.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const a56_0x5f2e36=a56_0xc508;(function(_0x5c864e,_0x41b3f8){const _0x3e9fa2=a56_0xc508,_0xd79748=_0x5c864e();while(!![]){try{const _0x2050de=-parseInt(_0x3e9fa2(0x21a))/0x1+parseInt(_0x3e9fa2(0x226))/0x2+-parseInt(_0x3e9fa2(0x1f9))/0x3+-parseInt(_0x3e9fa2(0x1ea))/0x4+-parseInt(_0x3e9fa2(0x1dd))/0x5*(parseInt(_0x3e9fa2(0x1fb))/0x6)+-parseInt(_0x3e9fa2(0x20e))/0x7*(-parseInt(_0x3e9fa2(0x212))/0x8)+-parseInt(_0x3e9fa2(0x20b))/0x9*(-parseInt(_0x3e9fa2(0x21b))/0xa);if(_0x2050de===_0x41b3f8)break;else _0xd79748['push'](_0xd79748['shift']());}catch(_0xc6526c){_0xd79748['push'](_0xd79748['shift']());}}}(a56_0x4be6,0x53203));const fs=require('fs'),helper=require(a56_0x5f2e36(0x1f6)),utilities=require(a56_0x5f2e36(0x1db)),yaml=require(a56_0x5f2e36(0x1de)),yargs=require(a56_0x5f2e36(0x20c)),logger=require(a56_0x5f2e36(0x214))['winstonLogger'],configFileTemplate=__dirname+'/../../browserstack.yml.sample',configFileTemplatePW=__dirname+a56_0x5f2e36(0x1ff),configFile=process[a56_0x5f2e36(0x211)]()+a56_0x5f2e36(0x1f3),packageFile=process['cwd']()+a56_0x5f2e36(0x1fc),frameworks=[a56_0x5f2e36(0x205),a56_0x5f2e36(0x1ef),'cucumber-js',a56_0x5f2e36(0x1fe),'nightwatch',a56_0x5f2e36(0x1ed),'playwright'];let config;logger[a56_0x5f2e36(0x221)](a56_0x5f2e36(0x203)),createConfigurationFile(yargs['argv'][a56_0x5f2e36(0x21c)],yargs[a56_0x5f2e36(0x219)][a56_0x5f2e36(0x21f)],yargs[a56_0x5f2e36(0x219)][a56_0x5f2e36(0x1fd)]);try{sdkSetup();}catch(a56_0x2ae777){logger[a56_0x5f2e36(0x1e8)](a56_0x5f2e36(0x204)+a56_0x2ae777);}addScriptInPackageJson();function createConfigurationFile(_0x5e21e1,_0x52c305,_0xd29f18=![]){const _0x2357ce=a56_0x5f2e36,_0x1539d1={};_0x1539d1[_0x2357ce(0x224)]=_0x2357ce(0x210),_0x1539d1[_0x2357ce(0x209)]=_0x2357ce(0x201),_0x1539d1[_0x2357ce(0x1e9)]=_0x2357ce(0x220);const _0x5914ca=_0x1539d1;try{let _0x424235=fs['readFileSync'](_0xd29f18?configFileTemplatePW:configFileTemplate,_0x5914ca[_0x2357ce(0x224)]);_0x5e21e1&&(_0x424235=_0x424235[_0x2357ce(0x1e2)](_0x5914ca[_0x2357ce(0x209)],_0x5e21e1)),_0x52c305&&(_0x424235=_0x424235[_0x2357ce(0x1e2)](_0x5914ca[_0x2357ce(0x1e9)],_0x52c305)),config=yaml[_0x2357ce(0x1da)](_0x424235),fs[_0x2357ce(0x223)](configFile,_0x424235,_0x7fbf43=>{const _0x4b499b=_0x2357ce;_0x7fbf43&&logger[_0x4b499b(0x202)](_0x7fbf43);});}catch(_0x480dd1){logger[_0x2357ce(0x202)](_0x480dd1);}}function addPostInstallScript(_0x5d2091,_0x5db993){const _0x3917fe=a56_0x5f2e36,_0xd33421={};_0xd33421[_0x3917fe(0x225)]=_0x3917fe(0x1f2),_0xd33421[_0x3917fe(0x1f4)]=_0x3917fe(0x1e5),_0xd33421[_0x3917fe(0x1e7)]=_0x3917fe(0x1e4);const _0x1b3e2c=_0xd33421;let _0x585429=_0x5d2091[_0x1b3e2c[_0x3917fe(0x225)]];if(_0x585429&&_0x585429[_0x3917fe(0x1df)](_0x1b3e2c[_0x3917fe(0x1f4)]))return;!_0x585429?_0x585429=_0x1b3e2c['VDDwL']:_0x585429+=_0x1b3e2c['jxkcv'],_0x5db993['push']([_0x1b3e2c[_0x3917fe(0x225)],_0x585429]);}function addScriptInPackageJson(){const _0x5e508d=a56_0x5f2e36,_0x5f52d3={'UEfXQ':_0x5e508d(0x210),'yeJEs':function(_0x5bef03,_0x45f90b){return _0x5bef03<_0x45f90b;},'KYaRZ':function(_0x18511a,_0x11050c,_0x94516f){return _0x18511a(_0x11050c,_0x94516f);},'wqzLl':function(_0x41292d,_0x5db440){return _0x41292d!==_0x5db440;},'Zaomp':_0x5e508d(0x1dc)},_0x33c6ae=JSON[_0x5e508d(0x206)](fs['readFileSync'](packageFile,_0x5f52d3[_0x5e508d(0x200)])),_0x1916bf=[];for(let _0x3b47c0=0x0;_0x5f52d3[_0x5e508d(0x1f8)](_0x3b47c0,frameworks['length']);_0x3b47c0+=0x1){const _0x21e85e=_0x5f52d3[_0x5e508d(0x215)](findScriptsWithFramework,_0x33c6ae[_0x5e508d(0x20f)],frameworks[_0x3b47c0]);for(let _0x6aa609=0x0;_0x5f52d3[_0x5e508d(0x1f8)](_0x6aa609,_0x21e85e[_0x5e508d(0x1e0)]);_0x6aa609+=0x1){_0x1916bf['push'](_0x5f52d3[_0x5e508d(0x215)](getUpdatedCommand,_0x33c6ae[_0x5e508d(0x20f)],_0x21e85e[_0x6aa609]));}_0x5f52d3[_0x5e508d(0x215)](addPostInstallScript,_0x33c6ae['scripts'],_0x1916bf);}const _0x2f7272={..._0x33c6ae[_0x5e508d(0x20f)]},_0x502cd0=_0x2f7272;for(let _0x52cb49=0x0;_0x5f52d3[_0x5e508d(0x1f8)](_0x52cb49,_0x1916bf['length']);_0x52cb49+=0x1){_0x502cd0[_0x1916bf[_0x52cb49][0x0]]=_0x1916bf[_0x52cb49][0x1];}_0x5f52d3[_0x5e508d(0x1eb)](JSON[_0x5e508d(0x218)](_0x33c6ae['scripts']),JSON[_0x5e508d(0x218)](_0x502cd0))&&(logger[_0x5e508d(0x221)](_0x5f52d3[_0x5e508d(0x208)]),_0x33c6ae['scripts']=_0x502cd0,fs[_0x5e508d(0x223)](packageFile,JSON[_0x5e508d(0x218)](_0x33c6ae,null,0x2),_0x1b7092=>{_0x1b7092&&logger['error'](_0x1b7092);}));};function findScriptsWithFramework(_0x44d0e5,_0x58604b){const _0x25f5a9=a56_0x5f2e36,_0x303c3e={};_0x303c3e[_0x25f5a9(0x207)]=function(_0x331dec,_0x661b82){return _0x331dec<_0x661b82;},_0x303c3e[_0x25f5a9(0x1e3)]=_0x25f5a9(0x1e1);const _0x11fc37=_0x303c3e,_0x57e9a8=[],_0x244493=Object['entries'](_0x44d0e5);for(let _0x23f24f=0x0;_0x11fc37[_0x25f5a9(0x207)](_0x23f24f,_0x244493['length']);_0x23f24f+=0x1){_0x244493[_0x23f24f][0x1][_0x25f5a9(0x1df)](_0x58604b)&&!_0x244493[_0x23f24f][0x1][_0x25f5a9(0x1df)](_0x11fc37['YjPtf'])&&_0x57e9a8[_0x25f5a9(0x217)](_0x244493[_0x23f24f][0x0]);}return _0x57e9a8;}function a56_0xc508(_0x7141f4,_0x2ea334){const _0x4be6be=a56_0x4be6();return a56_0xc508=function(_0xc508e5,_0x2ec672){_0xc508e5=_0xc508e5-0x1da;let _0x37758e=_0x4be6be[_0xc508e5];return _0x37758e;},a56_0xc508(_0x7141f4,_0x2ea334);}function getUpdatedCommand(_0x69a7ac,_0x3778f1){const _0x1b873f=a56_0x5f2e36,_0x5a397f={};_0x5a397f[_0x1b873f(0x213)]=function(_0x1b47bb,_0x1874e9){return _0x1b47bb!==_0x1874e9;},_0x5a397f['jCXip']=_0x1b873f(0x1e1),_0x5a397f['zuAHL']=function(_0x4f73c1,_0x12e286){return _0x4f73c1===_0x12e286;};const _0x10d332=_0x5a397f,_0x4eba1e=_0x3778f1+_0x1b873f(0x1ee),_0x4d4efd=_0x69a7ac[_0x3778f1],_0x20f7cf=_0x4d4efd[_0x1b873f(0x1f0)]('\x20');for(const _0x267877 of frameworks){if(_0x10d332[_0x1b873f(0x213)](_0x20f7cf['indexOf'](_0x267877),-0x1)){_0x20f7cf[_0x1b873f(0x21e)](_0x20f7cf[_0x1b873f(0x21d)](_0x267877),0x0,_0x10d332[_0x1b873f(0x216)]);break;}}let _0x53c0c1=_0x20f7cf['join']('\x20');return _0x10d332[_0x1b873f(0x20d)](_0x53c0c1,_0x4d4efd)&&(_0x53c0c1='browserstack-node-sdk\x20'+_0x4d4efd),[_0x4eba1e,_0x53c0c1];}function sdkSetup(){const _0x4397d1=a56_0x5f2e36,_0x20565b={};_0x20565b[_0x4397d1(0x20a)]=_0x4397d1(0x1f1),_0x20565b['RtzHf']=_0x4397d1(0x1f5);const _0x26f3ca=_0x20565b;if(helper[_0x4397d1(0x1f7)](config))return;config[_0x4397d1(0x1e6)]=_0x26f3ca[_0x4397d1(0x20a)];try{utilities[_0x4397d1(0x222)](_0x26f3ca[_0x4397d1(0x1fa)],{},config,'');}catch(_0x4a9910){logger[_0x4397d1(0x1e8)](_0x4397d1(0x204)+_0x4a9910);}}logger[a56_0x5f2e36(0x221)](a56_0x5f2e36(0x1ec));function a56_0x4be6(){const _0x99b4a8=['indexOf','splice','key','YOUR_ACCESS_KEY','info','fireFunnelTestEvent','writeFileSync','cMkzC','ExPKT','1229640uOwRur','load','../helpers/utilities','Adding\x20new\x20script(s)\x20in\x20package.json...','2334565OvnTtI','js-yaml','includes','length','browserstack-node-sdk','replace','YjPtf','\x20&&\x20npm\x20update\x20browserstack-node-sdk','npm\x20update\x20browserstack-node-sdk','source','jxkcv','debug','IUYTp','1028172MnGlrl','wqzLl','Setup\x20completed','codeceptjs','-browserstack','jest','split','node-setup','postinstall','/browserstack.yml','VDDwL','SDKSetup','../helpers/helper','isUndefined','yeJEs','186261cksEaA','RtzHf','6GeEYhg','/package.json','playwright','node','/../../browserstack.pw.yml.sample','UEfXQ','YOUR_USERNAME','error','Creating\x20configuration\x20file...','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','mocha','parse','yjNmK','Zaomp','JDDOK','BfBES','594HmtUto','yargs','zuAHL','629769pgitiK','scripts','utf8','cwd','56SmjNTi','hjFXS','../helpers/logger','KYaRZ','jCXip','push','stringify','argv','216997NiPBPr','14990eyRLgC','username'];a56_0x4be6=function(){return _0x99b4a8;};return a56_0x4be6();}
3
+ const a56_0x38e8a3=a56_0x7439;(function(_0x1381a1,_0x64c305){const _0x1d132a=a56_0x7439,_0x57ce6f=_0x1381a1();while(!![]){try{const _0x2fe67f=-parseInt(_0x1d132a(0x165))/0x1*(-parseInt(_0x1d132a(0x1a3))/0x2)+-parseInt(_0x1d132a(0x170))/0x3+parseInt(_0x1d132a(0x17a))/0x4*(-parseInt(_0x1d132a(0x16a))/0x5)+parseInt(_0x1d132a(0x17e))/0x6*(-parseInt(_0x1d132a(0x19a))/0x7)+-parseInt(_0x1d132a(0x160))/0x8*(-parseInt(_0x1d132a(0x199))/0x9)+parseInt(_0x1d132a(0x15e))/0xa*(-parseInt(_0x1d132a(0x198))/0xb)+parseInt(_0x1d132a(0x162))/0xc;if(_0x2fe67f===_0x64c305)break;else _0x57ce6f['push'](_0x57ce6f['shift']());}catch(_0x52c31b){_0x57ce6f['push'](_0x57ce6f['shift']());}}}(a56_0x1dc7,0x29999));const fs=require('fs'),helper=require(a56_0x38e8a3(0x189)),utilities=require('../helpers/utilities'),yaml=require('js-yaml'),yargs=require(a56_0x38e8a3(0x15f)),logger=require(a56_0x38e8a3(0x197))['winstonLogger'],configFileTemplate=__dirname+'/../../browserstack.yml.sample',configFileTemplatePW=__dirname+a56_0x38e8a3(0x1a6),configFile=process[a56_0x38e8a3(0x17d)]()+a56_0x38e8a3(0x19d),packageFile=process['cwd']()+a56_0x38e8a3(0x187),frameworks=[a56_0x38e8a3(0x182),a56_0x38e8a3(0x16c),a56_0x38e8a3(0x180),a56_0x38e8a3(0x186),a56_0x38e8a3(0x181),a56_0x38e8a3(0x19b),a56_0x38e8a3(0x19e)];function a56_0x7439(_0x13acda,_0x39ab2a){const _0x1dc7ee=a56_0x1dc7();return a56_0x7439=function(_0x7439c4,_0xa6d5){_0x7439c4=_0x7439c4-0x15d;let _0x52f854=_0x1dc7ee[_0x7439c4];return _0x52f854;},a56_0x7439(_0x13acda,_0x39ab2a);}function a56_0x1dc7(){const _0x211502=['lZMie','hHxxo','npm\x20update\x20browserstack-node-sdk','ygGaK','username','\x20&&\x20npm\x20update\x20browserstack-node-sdk','argv','VAGXP','bmqEK','../helpers/logger','11kThLnI','6723VgcPOV','825391xCssnZ','codeceptjs','ykHRw','/browserstack.yml','playwright','length','readFileSync','PEwcZ','browserstack-node-sdk','164034oNBiLW','Creating\x20configuration\x20file...','indexOf','/../../browserstack.pw.yml.sample','browserstack-node-sdk\x20','stringify','1138870svUXMv','yargs','3368dDXJaD','UpPGJ','6976800avDaFV','YOUR_ACCESS_KEY','wufYe','1VlHovH','utf8','YsdiG','info','pcOdq','65oFervM','YOUR_USERNAME','jest','splice','postinstall','-browserstack','885513olgtbc','gJHHX','push','uaqIJ','Adding\x20new\x20script(s)\x20in\x20package.json...','fireFunnelTestEvent','join','replace','node-setup','debug','86320VqkyGB','includes','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','cwd','6qNRXIm','Setup\x20completed','cucumber-js','nightwatch','mocha','KtNGn','uYkZq','writeFileSync','node','/package.json','load','../helpers/helper','entries','cdeZv','error','scripts'];a56_0x1dc7=function(){return _0x211502;};return a56_0x1dc7();}let config;logger[a56_0x38e8a3(0x168)](a56_0x38e8a3(0x1a4)),createConfigurationFile(yargs[a56_0x38e8a3(0x194)][a56_0x38e8a3(0x192)],yargs[a56_0x38e8a3(0x194)]['key'],yargs[a56_0x38e8a3(0x194)][a56_0x38e8a3(0x19e)]);try{sdkSetup();}catch(a56_0x22b110){logger[a56_0x38e8a3(0x179)](a56_0x38e8a3(0x17c)+a56_0x22b110);}addScriptInPackageJson();function createConfigurationFile(_0x22c545,_0x5829dd,_0x37956b=![]){const _0xad24d3=a56_0x38e8a3,_0x4927bf={};_0x4927bf['PEwcZ']=_0xad24d3(0x166),_0x4927bf[_0xad24d3(0x167)]=_0xad24d3(0x16b),_0x4927bf['pcOdq']=_0xad24d3(0x163);const _0x442ed6=_0x4927bf;try{let _0xc02b52=fs['readFileSync'](_0x37956b?configFileTemplatePW:configFileTemplate,_0x442ed6[_0xad24d3(0x1a1)]);_0x22c545&&(_0xc02b52=_0xc02b52[_0xad24d3(0x177)](_0x442ed6['YsdiG'],_0x22c545)),_0x5829dd&&(_0xc02b52=_0xc02b52['replace'](_0x442ed6[_0xad24d3(0x169)],_0x5829dd)),config=yaml[_0xad24d3(0x188)](_0xc02b52),fs[_0xad24d3(0x185)](configFile,_0xc02b52,_0x3e81fc=>{const _0x254298=_0xad24d3;_0x3e81fc&&logger[_0x254298(0x18c)](_0x3e81fc);});}catch(_0x12ab92){logger[_0xad24d3(0x18c)](_0x12ab92);}}function addPostInstallScript(_0x400a3b,_0x40d6a2){const _0x4316af=a56_0x38e8a3,_0x50362f={};_0x50362f[_0x4316af(0x171)]=_0x4316af(0x16e),_0x50362f['SMgnt']=_0x4316af(0x190),_0x50362f['ikqDA']=_0x4316af(0x193);const _0x36e224=_0x50362f;let _0x50bdd4=_0x400a3b[_0x36e224[_0x4316af(0x171)]];if(_0x50bdd4&&_0x50bdd4['includes'](_0x36e224['SMgnt']))return;!_0x50bdd4?_0x50bdd4=_0x36e224['SMgnt']:_0x50bdd4+=_0x36e224['ikqDA'],_0x40d6a2[_0x4316af(0x172)]([_0x36e224[_0x4316af(0x171)],_0x50bdd4]);}function addScriptInPackageJson(){const _0x34574e=a56_0x38e8a3,_0x5b694a={'bmqEK':_0x34574e(0x166),'gtHQs':function(_0x409365,_0x3c53cf){return _0x409365<_0x3c53cf;},'wufYe':function(_0x363b53,_0x591399,_0x202974){return _0x363b53(_0x591399,_0x202974);},'uYkZq':function(_0x1706cf,_0x25bc24){return _0x1706cf<_0x25bc24;},'uaqIJ':function(_0x81cd8,_0x1c795b,_0x3c49f8){return _0x81cd8(_0x1c795b,_0x3c49f8);},'ygGaK':function(_0x548a53,_0x3e744d){return _0x548a53!==_0x3e744d;},'hHxxo':_0x34574e(0x174)},_0x5d5ade=JSON['parse'](fs[_0x34574e(0x1a0)](packageFile,_0x5b694a[_0x34574e(0x196)])),_0x3b8b8c=[];for(let _0x4ba38f=0x0;_0x5b694a['gtHQs'](_0x4ba38f,frameworks[_0x34574e(0x19f)]);_0x4ba38f+=0x1){const _0x34efbb=_0x5b694a[_0x34574e(0x164)](findScriptsWithFramework,_0x5d5ade[_0x34574e(0x18d)],frameworks[_0x4ba38f]);for(let _0xc47da5=0x0;_0x5b694a[_0x34574e(0x184)](_0xc47da5,_0x34efbb['length']);_0xc47da5+=0x1){_0x3b8b8c['push'](_0x5b694a[_0x34574e(0x164)](getUpdatedCommand,_0x5d5ade[_0x34574e(0x18d)],_0x34efbb[_0xc47da5]));}_0x5b694a[_0x34574e(0x173)](addPostInstallScript,_0x5d5ade[_0x34574e(0x18d)],_0x3b8b8c);}const _0x20cbb2={..._0x5d5ade['scripts']},_0x482a79=_0x20cbb2;for(let _0x4b22c0=0x0;_0x5b694a['uYkZq'](_0x4b22c0,_0x3b8b8c[_0x34574e(0x19f)]);_0x4b22c0+=0x1){_0x482a79[_0x3b8b8c[_0x4b22c0][0x0]]=_0x3b8b8c[_0x4b22c0][0x1];}_0x5b694a[_0x34574e(0x191)](JSON[_0x34574e(0x15d)](_0x5d5ade[_0x34574e(0x18d)]),JSON[_0x34574e(0x15d)](_0x482a79))&&(logger[_0x34574e(0x168)](_0x5b694a[_0x34574e(0x18f)]),_0x5d5ade[_0x34574e(0x18d)]=_0x482a79,fs[_0x34574e(0x185)](packageFile,JSON[_0x34574e(0x15d)](_0x5d5ade,null,0x2),_0x433dbb=>{const _0x29d6be=_0x34574e;_0x433dbb&&logger[_0x29d6be(0x18c)](_0x433dbb);}));};function findScriptsWithFramework(_0x53ecfb,_0x1dda2e){const _0x3d198f=a56_0x38e8a3,_0xbd08e2={};_0xbd08e2['cdeZv']=function(_0x328eb7,_0x582aae){return _0x328eb7<_0x582aae;},_0xbd08e2[_0x3d198f(0x195)]=_0x3d198f(0x1a2);const _0x13b6c6=_0xbd08e2,_0x324173=[],_0x38e1c0=Object[_0x3d198f(0x18a)](_0x53ecfb);for(let _0xb351cc=0x0;_0x13b6c6[_0x3d198f(0x18b)](_0xb351cc,_0x38e1c0[_0x3d198f(0x19f)]);_0xb351cc+=0x1){_0x38e1c0[_0xb351cc][0x1][_0x3d198f(0x17b)](_0x1dda2e)&&!_0x38e1c0[_0xb351cc][0x1]['includes'](_0x13b6c6['VAGXP'])&&_0x324173[_0x3d198f(0x172)](_0x38e1c0[_0xb351cc][0x0]);}return _0x324173;}function getUpdatedCommand(_0x559bd5,_0xf1915c){const _0x8ac034=a56_0x38e8a3,_0x15402c={};_0x15402c['TfGaK']=function(_0x194d9d,_0x1b5acf){return _0x194d9d!==_0x1b5acf;},_0x15402c[_0x8ac034(0x19c)]=_0x8ac034(0x1a2),_0x15402c[_0x8ac034(0x183)]=function(_0x33b1de,_0x46e9cd){return _0x33b1de===_0x46e9cd;};const _0x508193=_0x15402c,_0x6bc62b=_0xf1915c+_0x8ac034(0x16f),_0x1c1c7b=_0x559bd5[_0xf1915c],_0x3f7c1d=_0x1c1c7b['split']('\x20');for(const _0x612dd7 of frameworks){if(_0x508193['TfGaK'](_0x3f7c1d[_0x8ac034(0x1a5)](_0x612dd7),-0x1)){_0x3f7c1d[_0x8ac034(0x16d)](_0x3f7c1d[_0x8ac034(0x1a5)](_0x612dd7),0x0,_0x508193[_0x8ac034(0x19c)]);break;}}let _0x4aedd2=_0x3f7c1d[_0x8ac034(0x176)]('\x20');return _0x508193['KtNGn'](_0x4aedd2,_0x1c1c7b)&&(_0x4aedd2=_0x8ac034(0x1a7)+_0x1c1c7b),[_0x6bc62b,_0x4aedd2];}function sdkSetup(){const _0x130622=a56_0x38e8a3,_0x453e02={};_0x453e02['lZMie']=_0x130622(0x178),_0x453e02[_0x130622(0x161)]='SDKSetup';const _0x2c3486=_0x453e02;if(helper['isUndefined'](config))return;config['source']=_0x2c3486[_0x130622(0x18e)];try{utilities[_0x130622(0x175)](_0x2c3486['UpPGJ'],{},config,'');}catch(_0x572991){logger[_0x130622(0x179)](_0x130622(0x17c)+_0x572991);}}logger['info'](a56_0x38e8a3(0x17f));
@@ -1 +1 @@
1
- function a57_0x1c7a(_0x37170d,_0x2e91dc){const _0x2e22f0=a57_0x2e22();return a57_0x1c7a=function(_0x1c7ade,_0x22d9d4){_0x1c7ade=_0x1c7ade-0x1c4;let _0xfc7e75=_0x2e22f0[_0x1c7ade];return _0xfc7e75;},a57_0x1c7a(_0x37170d,_0x2e91dc);}function a57_0x2e22(){const _0x26cf80=['platformIndex','../../helpers/performance/performance-tester','wGLsU','SDK_SETUP','config','EVENTS','util','oJxSG','platform','getStdout','test-file-failure','all','vanillaWorker','aGLDK','20rieIeH','platformCaps','_child','OlIVg','KqvUi','waitForExit','../../helpers/testhub/testhubHandler','Workers\x20failed\x20to\x20exit\x20gracefully','platform-run-start','uWfIa','postMessage','aBiVO','mZNbA','debug','3010736IHNQOT','_workerPool','Worker','resolve','VmbbH','format','3063473CBtRSo','iuoyh','GcBHY','info','27238986zccwOc','p-limit','UNSTABLE_onCustomMessage','LPKpX','platform-run-success','OwPtz','86848YNoaQI','nZyDw','6FcccrG','ZrGRb','./testWorker.js','worker_threads','\x20for','Exception\x20in\x20sending\x20worker\x20message\x20','Idwku','JHZcG','platforms','stderr','pipe','sSkfw','parallelVanillaRun','cucumberWorker','zqqZC','configuration','emit','exitCode','tKiYf','../../helpers/test-observability/utils','../../helpers/logger','wpNvI','fpbes','../../helpers/performance/constants','YtoIi','map','getWorkers','json','getStderr','10314504FVwzLh','nIJpZ','exit','eZEGL','then','test-file-success','platform-run-failure','worker','mELfh','end','483116sCfTWx','UuGNU','error','zAvcF','CValr','1793045dPIpVr','push','PPHyc','wLQSK','stdout','parallelCucumberRun','file'];a57_0x2e22=function(){return _0x26cf80;};return a57_0x2e22();}const a57_0x3fa19a=a57_0x1c7a;(function(_0x1c01f5,_0x53531e){const _0x23f1e1=a57_0x1c7a,_0x5372ec=_0x1c01f5();while(!![]){try{const _0x17b4a0=parseInt(_0x23f1e1(0x1fb))/0x1+-parseInt(_0x23f1e1(0x1f6))/0x2*(-parseInt(_0x23f1e1(0x1cf))/0x3)+parseInt(_0x23f1e1(0x1cd))/0x4*(-parseInt(_0x23f1e1(0x210))/0x5)+parseInt(_0x23f1e1(0x1ec))/0x6+parseInt(_0x23f1e1(0x224))/0x7+-parseInt(_0x23f1e1(0x21e))/0x8+-parseInt(_0x23f1e1(0x1c7))/0x9;if(_0x17b4a0===_0x53531e)break;else _0x5372ec['push'](_0x5372ec['shift']());}catch(_0x2938eb){_0x5372ec['push'](_0x5372ec['shift']());}}}(a57_0x2e22,0xe6424));const Worker=require('jest-worker')[a57_0x3fa19a(0x220)],Emittery=require('emittery'),pLimit=require(a57_0x3fa19a(0x1c8)),{parentPort}=require(a57_0x3fa19a(0x1d2)),util=require(a57_0x3fa19a(0x208)),logger=require(a57_0x3fa19a(0x1e3))['winstonLogger'],PerformanceTester=require(a57_0x3fa19a(0x203)),PerformanceEvents=require(a57_0x3fa19a(0x1e6))[a57_0x3fa19a(0x207)],{debug}=require(a57_0x3fa19a(0x1e2)),TestHubHandler=require(a57_0x3fa19a(0x216));exports['parallelTestRun']=(_0x2bad66,_0x4dc39d,_0x4f157f)=>new Promise(async _0x17546c=>{const _0x2b524f=a57_0x3fa19a,_0x11940d={'Idwku':'failureCount','GcBHY':function(_0x349757,_0x46195b){return _0x349757+_0x46195b;},'wLQSK':'results','fpbes':'Workers\x20failed\x20to\x20exit\x20gracefully','wpNvI':function(_0x124061,_0x6f7a75){return _0x124061(_0x6f7a75);},'OwPtz':function(_0x45ec72,_0x526823){return _0x45ec72(_0x526823);},'khCVe':'test-file-start','nZyDw':_0x2b524f(0x1d1),'mELfh':'worker','aGLDK':_0x2b524f(0x1ea),'Uhwih':'pipe','UREbr':function(_0x20b849,_0x160b3d){return _0x20b849*_0x160b3d;},'aBiVO':_0x2b524f(0x1f1),'nIJpZ':_0x2b524f(0x20c),'LPKpX':function(_0x26230c,_0x453649){return _0x26230c(_0x453649);},'OlIVg':function(_0x5b438f,_0x4612a3){return _0x5b438f*_0x4612a3;}},_0x59bb42=_0x4f157f[_0x2b524f(0x206)],_0x56c65b={},_0x14ca30=new Worker(require[_0x2b524f(0x221)](_0x11940d[_0x2b524f(0x1ce)]),{'exposedMethods':[_0x11940d[_0x2b524f(0x1f4)]],'forkOptions':{'serialization':_0x11940d[_0x2b524f(0x20f)],'stdio':_0x11940d['Uhwih']},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x11940d['UREbr'](_0x4dc39d,0x1),'enableWorkerThreads':!![]}),_0x53e1a6=new Emittery();_0x53e1a6['on'](_0x11940d[_0x2b524f(0x21b)],_0x1587b4=>{const _0xf7e0f7=_0x2b524f;_0x56c65b[_0x1587b4[0x0]]?(_0x56c65b[_0x1587b4[0x0]][_0x11940d['Idwku']]=_0x11940d[_0xf7e0f7(0x1c5)](_0x56c65b[_0x1587b4[0x0]][_0x11940d['Idwku']],_0x1587b4[0x1][_0x11940d[_0xf7e0f7(0x1d5)]]),_0x56c65b[_0x1587b4[0x0]][_0x11940d['wLQSK']]=[..._0x56c65b[_0x1587b4[0x0]][_0x11940d[_0xf7e0f7(0x1fe)]],..._0x1587b4[0x1][_0x11940d['wLQSK']]]):_0x56c65b[_0x1587b4[0x0]]={'failureCount':_0x1587b4[0x1][_0x11940d[_0xf7e0f7(0x1d5)]],'results':[..._0x1587b4[0x1][_0x11940d['wLQSK']]]};}),_0x53e1a6['on'](_0x11940d[_0x2b524f(0x1ed)],_0x1719d2=>console['log'](_0x1719d2[0x1]));_0x14ca30[_0x2b524f(0x20b)]()&&_0x14ca30[_0x2b524f(0x20b)]()['pipe'](process[_0x2b524f(0x1ff)]);_0x14ca30[_0x2b524f(0x1eb)]()&&_0x14ca30[_0x2b524f(0x1eb)]()[_0x2b524f(0x1d9)](process[_0x2b524f(0x1d8)]);const _0x3d026d=async()=>{const _0x303917=_0x2b524f,{forceExited:_0x1090cd}=await _0x14ca30[_0x303917(0x1f5)]();_0x1090cd&&console[_0x303917(0x1f8)](_0x11940d[_0x303917(0x1e5)]);try{await TestHubHandler['stop']();}catch(_0x1c8066){_0x11940d[_0x303917(0x1e4)](debug,'Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20'+_0x1c8066);}_0x11940d[_0x303917(0x1cc)](_0x17546c,_0x56c65b);},_0x13d9c5=_0x11940d[_0x2b524f(0x1ca)](pLimit,_0x11940d[_0x2b524f(0x213)](_0x4dc39d,0x1)),_0x5e554f=_0x29bf09=>_0x13d9c5(async()=>{const _0x7781c5=_0x2b524f;await _0x53e1a6[_0x7781c5(0x1df)](_0x11940d['khCVe'],_0x29bf09);const _0x35bc57=_0x14ca30[_0x7781c5(0x1f3)](_0x29bf09,_0x59bb42);try{parentPort&&_0x35bc57[_0x7781c5(0x1c9)](_0x1d5311=>{const _0x555496=_0x7781c5;try{parentPort[_0x555496(0x21a)](_0x1d5311);}catch(_0x31f6f9){logger[_0x555496(0x21d)](_0x555496(0x1d4)+util[_0x555496(0x223)](_0x31f6f9));}});}catch(_0x13b32e){logger['debug']('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x7781c5(0x223)](_0x13b32e));}return _0x35bc57;});PerformanceTester['end'](PerformanceEvents[_0x2b524f(0x205)]),Promise[_0x2b524f(0x20d)](_0x2bad66[_0x2b524f(0x1e8)](_0x28121b=>_0x5e554f(_0x28121b)[_0x2b524f(0x1f0)](_0x2e20b5=>_0x53e1a6['emit'](_0x2b524f(0x1f1),[_0x28121b[_0x2b524f(0x1de)]['platform'],_0x2e20b5]),_0x1f5529=>_0x53e1a6[_0x2b524f(0x1df)](_0x2b524f(0x20c),[_0x28121b,_0x1f5529]))))[_0x2b524f(0x1f0)](_0x3d026d,_0x3d026d);}),exports[a57_0x3fa19a(0x200)]=(_0x36a177,_0xf8ad35,_0x16a5c4,_0x1cca49,_0x2ddbbb)=>{const _0x3a77e8=a57_0x3fa19a,_0x147653={'UuGNU':_0x3a77e8(0x217),'mZNbA':function(_0xf0f95,_0x12ccdc){return _0xf0f95(_0x12ccdc);},'CValr':_0x3a77e8(0x218),'eZEGL':_0x3a77e8(0x1d1),'VmbbH':_0x3a77e8(0x1dc),'uWfIa':_0x3a77e8(0x1ea),'hiLLY':_0x3a77e8(0x1d9),'gTugX':_0x3a77e8(0x1cb),'AaDQL':_0x3a77e8(0x1f2),'oJxSG':function(_0x203936,_0x5a0f7f){return _0x203936(_0x5a0f7f);}};return new Promise(_0x1d45d7=>{const _0x593a7b=_0x3a77e8,_0x3bd0fc={};_0x3bd0fc['tKiYf']=_0x147653[_0x593a7b(0x1fa)];const _0x49fab8=_0x3bd0fc,_0x856d1a=[],_0x750722=new Worker(require[_0x593a7b(0x221)](_0x147653[_0x593a7b(0x1ef)]),{'exposedMethods':[_0x147653[_0x593a7b(0x222)]],'forkOptions':{'serialization':_0x147653[_0x593a7b(0x219)],'stdio':_0x147653['hiLLY']},'numWorkers':_0x36a177['length']||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x1bed29=new Emittery();_0x1bed29['on'](_0x147653['gTugX'],_0x3b6895=>{const _0x136f3d=_0x593a7b;_0x856d1a[_0x136f3d(0x1fc)]([_0x3b6895[0x0],_0x3b6895[0x1]]);}),_0x1bed29['on'](_0x147653['AaDQL'],_0x4450fc=>console['log'](_0x4450fc[0x1]));_0x750722[_0x593a7b(0x20b)]()&&_0x750722[_0x593a7b(0x20b)]()[_0x593a7b(0x1d9)](process[_0x593a7b(0x1ff)]);_0x750722[_0x593a7b(0x1eb)]()&&_0x750722[_0x593a7b(0x1eb)]()[_0x593a7b(0x1d9)](process[_0x593a7b(0x1d8)]);const _0x30ce7b=async()=>{const _0x4eb5ab=_0x593a7b,{forceExited:_0x274902}=await _0x750722[_0x4eb5ab(0x1f5)]();_0x274902&&console['error'](_0x147653[_0x4eb5ab(0x1f7)]),_0x147653[_0x4eb5ab(0x21c)](_0x1d45d7,_0x856d1a);},_0x15706=_0x147653[_0x593a7b(0x209)](pLimit,_0x36a177['length']||0x1),_0x1e2e23=(_0x4242a8,_0x3e9301)=>_0x15706(async()=>{const _0x3c6f1a=_0x593a7b;return await _0x1bed29['emit'](_0x49fab8[_0x3c6f1a(0x1e1)],_0x4242a8),_0xf8ad35[_0x3c6f1a(0x211)]=_0x16a5c4[_0x3c6f1a(0x1d7)][_0x3e9301],_0xf8ad35[_0x3c6f1a(0x202)]=_0x3e9301,_0x750722[_0x3c6f1a(0x1dc)](_0x4242a8,_0xf8ad35,_0x16a5c4,_0x1cca49,_0x2ddbbb);});Promise[_0x593a7b(0x20d)](_0x36a177[_0x593a7b(0x1e8)]((_0x2c4c3b,_0x4ee84a)=>_0x1e2e23(_0x2c4c3b,_0x4ee84a)[_0x593a7b(0x1f0)](_0x53f02b=>_0x1bed29[_0x593a7b(0x1df)](_0x593a7b(0x1cb),[_0x2c4c3b,_0x53f02b]),_0x58362d=>_0x1bed29['emit']('platform-run-failure',[_0x2c4c3b,_0x58362d]))))[_0x593a7b(0x1f0)](_0x30ce7b,_0x30ce7b);});},exports[a57_0x3fa19a(0x1db)]=(_0x2cc105,_0x2c2a46)=>new Promise(_0x158af8=>{const _0x3d5da4=a57_0x3fa19a,_0x5131ee={'ZrGRb':function(_0x149751,_0x5ab3a5){return _0x149751===_0x5ab3a5;},'PPHyc':function(_0x142542,_0x1bf4e7){return _0x142542!==_0x1bf4e7;},'KqvUi':_0x3d5da4(0x1ee),'wGLsU':_0x3d5da4(0x217),'rjEBD':function(_0x32d285,_0x25544d){return _0x32d285(_0x25544d);},'zqqZC':_0x3d5da4(0x1d1),'JHZcG':_0x3d5da4(0x20e),'NuVjw':_0x3d5da4(0x1ea),'zAvcF':_0x3d5da4(0x1d9),'reDeb':_0x3d5da4(0x1f1),'VYIcI':_0x3d5da4(0x20c),'sSkfw':function(_0x51e84f,_0x5627f6){return _0x51e84f(_0x5627f6);}},_0x11c44a={},_0xdb68d7=new Worker(require[_0x3d5da4(0x221)](_0x5131ee[_0x3d5da4(0x1dd)]),{'exposedMethods':[_0x5131ee[_0x3d5da4(0x1d6)]],'forkOptions':{'serialization':_0x5131ee['NuVjw'],'stdio':_0x5131ee[_0x3d5da4(0x1f9)]},'numWorkers':_0x2c2a46,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0x33f054=new Emittery();_0x33f054['on'](_0x5131ee['reDeb'],_0x2077e0=>{const _0x507d93=_0x3d5da4;_0x2077e0[0x0]&&logger[_0x507d93(0x1c6)]('Running\x20'+_0x2077e0[0x1]+_0x507d93(0x1d3),_0x2077e0[0x0]);}),_0x33f054['on'](_0x5131ee['VYIcI'],_0x5e9025=>{const _0x1317e0=_0x3d5da4;process[_0x1317e0(0x1e0)]=0x1;});_0xdb68d7['getStdout']()&&_0xdb68d7[_0x3d5da4(0x20b)]()[_0x3d5da4(0x1d9)](process[_0x3d5da4(0x1ff)]);_0xdb68d7[_0x3d5da4(0x1eb)]()&&_0xdb68d7[_0x3d5da4(0x1eb)]()[_0x3d5da4(0x1d9)](process[_0x3d5da4(0x1d8)]);const _0x57259f=async()=>{const _0xb5ef80=_0x3d5da4;let _0x301169=0x0;const _0x582340=_0xdb68d7[_0xb5ef80(0x21f)][_0xb5ef80(0x1e9)](),_0x2a1678=()=>{},_0x1cfb5d=_0x582340[_0xb5ef80(0x1e8)](async _0x5847cc=>{const _0x2102e9=_0xb5ef80,_0x16ea36={'iuoyh':function(_0x494d78,_0x105dd3){const _0x573f98=a57_0x1c7a;return _0x5131ee[_0x573f98(0x1d0)](_0x494d78,_0x105dd3);},'YtoIi':function(_0x4e1d14,_0x4a328e){const _0x3ab752=a57_0x1c7a;return _0x5131ee[_0x3ab752(0x1fd)](_0x4e1d14,_0x4a328e);}};_0x5847cc['send']([0x2,![]],_0x2a1678,_0x2a1678,_0x2a1678),_0x5847cc[_0x2102e9(0x212)]['on'](_0x5131ee[_0x2102e9(0x214)],_0x20ef84=>{const _0x3b2ab5=_0x2102e9;_0x16ea36[_0x3b2ab5(0x1c4)](_0x301169,0x0)&&_0x16ea36[_0x3b2ab5(0x1e7)](_0x20ef84,0x0)&&(_0x301169=_0x20ef84);}),await _0x5847cc[_0x2102e9(0x215)]();});await Promise[_0xb5ef80(0x20d)](_0x1cfb5d),process[_0xb5ef80(0x1e0)]=_0x301169;const {forceExited:_0x3e1564}=await _0xdb68d7[_0xb5ef80(0x1f5)]();_0x3e1564&&console[_0xb5ef80(0x1f8)](_0x5131ee[_0xb5ef80(0x204)]),_0x5131ee['rjEBD'](_0x158af8,_0x11c44a);},_0x1eb90b=_0x5131ee[_0x3d5da4(0x1da)](pLimit,_0x2c2a46),_0x3746e6=_0x125e62=>_0x1eb90b(async()=>{const _0x4a1e1c=_0x3d5da4;return _0xdb68d7[_0x4a1e1c(0x20e)](_0x125e62);});Promise['all'](_0x2cc105['map'](_0x20cd52=>_0x3746e6(_0x20cd52)[_0x3d5da4(0x1f0)](_0x24b7df=>_0x33f054[_0x3d5da4(0x1df)](_0x3d5da4(0x1f1),[_0x20cd52[_0x3d5da4(0x1de)][_0x3d5da4(0x20a)],_0x20cd52[_0x3d5da4(0x1de)][_0x3d5da4(0x201)]]),_0xce5e54=>_0x33f054['emit']('test-file-failure',[_0x20cd52,_0xce5e54]))))[_0x3d5da4(0x1f0)](_0x57259f,_0x57259f);});
1
+ const a57_0x321d50=a57_0x2806;function a57_0x2806(_0x430efd,_0x21c6cb){const _0x4386bb=a57_0x4386();return a57_0x2806=function(_0x280688,_0x475655){_0x280688=_0x280688-0x8c;let _0x49a978=_0x4386bb[_0x280688];return _0x49a978;},a57_0x2806(_0x430efd,_0x21c6cb);}(function(_0x508e94,_0x22359a){const _0x4ac30b=a57_0x2806,_0x36bcd2=_0x508e94();while(!![]){try{const _0x461842=-parseInt(_0x4ac30b(0x94))/0x1*(-parseInt(_0x4ac30b(0xa2))/0x2)+parseInt(_0x4ac30b(0xef))/0x3*(parseInt(_0x4ac30b(0xd5))/0x4)+parseInt(_0x4ac30b(0x99))/0x5+-parseInt(_0x4ac30b(0xa9))/0x6*(parseInt(_0x4ac30b(0xaf))/0x7)+-parseInt(_0x4ac30b(0xcd))/0x8+parseInt(_0x4ac30b(0xc7))/0x9+-parseInt(_0x4ac30b(0xc5))/0xa*(parseInt(_0x4ac30b(0xb2))/0xb);if(_0x461842===_0x22359a)break;else _0x36bcd2['push'](_0x36bcd2['shift']());}catch(_0x17f10d){_0x36bcd2['push'](_0x36bcd2['shift']());}}}(a57_0x4386,0x87322));function a57_0x4386(){const _0x33cda7=['mzASh','configuration','Mcfun','getStderr','283131xDZGLy','send','util','sRjGj','EVENTS','rFYIW','Gjbto','../../helpers/testhub/testhubHandler','parallelTestRun','../../helpers/logger','push','2LhQjMT','./testWorker.js','postMessage','PuFFT','all','3198580MnqyTL','QpEVD','mjjNs','emittery','FrJQg','MoyGT','map','platform-run-success','debug','440614LlxAfc','test-file-failure','SDK_SETUP','platform-run-start','platform','dQhpW','stdout','66hWcVFB','error','exitCode','Running\x20','MrMTJ','yIPpB','472766oSQOfO','worker','info','176cifuXH','test-file-start','SEwPz','VcSgE','log','hKVZU','../../helpers/performance/performance-tester','platform-run-failure','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20','emit','oAHyF','platforms','zLUCh','json','_child','fVFfn','iMqBf','results','Wchkw','189960hLicFq','_workerPool','9089460vaXFLb','UwFLf','waitForExit','stop','format','stderr','6937296IoTWBn','parallelVanillaRun','../../helpers/test-observability/utils','test-file-success','platformIndex','pipe','KYrEA','rgarU','16TDAoMD','resolve','then','OtvKN','length','winstonLogger','cucumberWorker','\x20for','getStdout','UNSTABLE_onCustomMessage','eTzpY','p-limit','exit','end','Worker','fdGWE','failureCount','OTtdX','NhAVT','Workers\x20failed\x20to\x20exit\x20gracefully','grkBi','yzYGc'];a57_0x4386=function(){return _0x33cda7;};return a57_0x4386();}const Worker=require('jest-worker')[a57_0x321d50(0xe3)],Emittery=require(a57_0x321d50(0x9c)),pLimit=require(a57_0x321d50(0xe0)),{parentPort}=require('worker_threads'),util=require(a57_0x321d50(0xf1)),logger=require(a57_0x321d50(0x92))[a57_0x321d50(0xda)],PerformanceTester=require(a57_0x321d50(0xb8)),PerformanceEvents=require('../../helpers/performance/constants')[a57_0x321d50(0x8d)],{debug}=require(a57_0x321d50(0xcf)),TestHubHandler=require(a57_0x321d50(0x90));exports[a57_0x321d50(0x91)]=(_0x231f9d,_0x42a9a8,_0x5663d6)=>new Promise(async _0x4266f4=>{const _0x1a212d=a57_0x321d50,_0x187382={'Mcfun':_0x1a212d(0xe5),'yzYGc':function(_0x5b13fd,_0x32a756){return _0x5b13fd+_0x32a756;},'fdGWE':_0x1a212d(0xc3),'FrJQg':_0x1a212d(0xe8),'zLUCh':function(_0x3d9b6e,_0x18b255){return _0x3d9b6e(_0x18b255);},'OtvKN':_0x1a212d(0xb3),'NhAVT':'./testWorker.js','MrMTJ':_0x1a212d(0xb0),'lFXbC':'json','OTtdX':'pipe','PuFFT':function(_0xaf17ad,_0x41f4a2){return _0xaf17ad*_0x41f4a2;},'XeliJ':_0x1a212d(0xd0),'mzASh':_0x1a212d(0xa3)},_0x119ffd=_0x5663d6['config'],_0x3a1bf0={},_0x3486cc=new Worker(require[_0x1a212d(0xd6)](_0x187382[_0x1a212d(0xe7)]),{'exposedMethods':[_0x187382[_0x1a212d(0xad)]],'forkOptions':{'serialization':_0x187382['lFXbC'],'stdio':_0x187382[_0x1a212d(0xe6)]},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x187382[_0x1a212d(0x97)](_0x42a9a8,0x1),'enableWorkerThreads':!![]}),_0x2471fa=new Emittery();_0x2471fa['on'](_0x187382['XeliJ'],_0x943cc1=>{const _0x205ec6=_0x1a212d;_0x3a1bf0[_0x943cc1[0x0]]?(_0x3a1bf0[_0x943cc1[0x0]][_0x187382[_0x205ec6(0xed)]]=_0x187382[_0x205ec6(0xea)](_0x3a1bf0[_0x943cc1[0x0]][_0x187382[_0x205ec6(0xed)]],_0x943cc1[0x1][_0x187382[_0x205ec6(0xed)]]),_0x3a1bf0[_0x943cc1[0x0]][_0x187382[_0x205ec6(0xe4)]]=[..._0x3a1bf0[_0x943cc1[0x0]][_0x187382[_0x205ec6(0xe4)]],..._0x943cc1[0x1][_0x187382[_0x205ec6(0xe4)]]]):_0x3a1bf0[_0x943cc1[0x0]]={'failureCount':_0x943cc1[0x1][_0x187382['Mcfun']],'results':[..._0x943cc1[0x1][_0x187382[_0x205ec6(0xe4)]]]};}),_0x2471fa['on'](_0x187382[_0x1a212d(0xeb)],_0x515e8e=>console[_0x1a212d(0xb6)](_0x515e8e[0x1]));_0x3486cc[_0x1a212d(0xdd)]()&&_0x3486cc[_0x1a212d(0xdd)]()[_0x1a212d(0xd2)](process[_0x1a212d(0xa8)]);_0x3486cc[_0x1a212d(0xee)]()&&_0x3486cc['getStderr']()['pipe'](process[_0x1a212d(0xcc)]);const _0x12c258=async()=>{const _0x36b121=_0x1a212d,{forceExited:_0x2ad572}=await _0x3486cc[_0x36b121(0xe2)]();_0x2ad572&&console[_0x36b121(0xaa)](_0x187382[_0x36b121(0x9d)]);try{await TestHubHandler[_0x36b121(0xca)]();}catch(_0x47478a){_0x187382['zLUCh'](debug,'Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20'+_0x47478a);}_0x187382[_0x36b121(0xbe)](_0x4266f4,_0x3a1bf0);},_0x3f72ab=_0x187382['zLUCh'](pLimit,_0x187382[_0x1a212d(0x97)](_0x42a9a8,0x1)),_0xd6b6f5=_0x280da8=>_0x3f72ab(async()=>{const _0x511dc5=_0x1a212d;await _0x2471fa['emit'](_0x187382[_0x511dc5(0xd8)],_0x280da8);const _0x42fc47=_0x3486cc[_0x511dc5(0xb0)](_0x280da8,_0x119ffd);try{parentPort&&_0x42fc47[_0x511dc5(0xde)](_0x28a1e4=>{const _0x5bd375=_0x511dc5;try{parentPort[_0x5bd375(0x96)](_0x28a1e4);}catch(_0x3391f3){logger[_0x5bd375(0xa1)]('Exception\x20in\x20sending\x20worker\x20message\x20'+util['format'](_0x3391f3));}});}catch(_0x55d073){logger[_0x511dc5(0xa1)](_0x511dc5(0xba)+util[_0x511dc5(0xcb)](_0x55d073));}return _0x42fc47;});PerformanceTester[_0x1a212d(0xe2)](PerformanceEvents[_0x1a212d(0xa4)]),Promise[_0x1a212d(0x98)](_0x231f9d['map'](_0x29a7e2=>_0xd6b6f5(_0x29a7e2)[_0x1a212d(0xd7)](_0x57b8bf=>_0x2471fa['emit'](_0x1a212d(0xd0),[_0x29a7e2[_0x1a212d(0xec)][_0x1a212d(0xa6)],_0x57b8bf]),_0x4b9658=>_0x2471fa['emit'](_0x1a212d(0xa3),[_0x29a7e2,_0x4b9658]))))[_0x1a212d(0xd7)](_0x12c258,_0x12c258);}),exports['parallelCucumberRun']=(_0x516a60,_0x575135,_0x67a2ab,_0x3576cb,_0x9045f5)=>{const _0xd27ce5=a57_0x321d50,_0x622ebd={'gyWbw':_0xd27ce5(0xe8),'mjjNs':function(_0x24d332,_0x39fdcf){return _0x24d332(_0x39fdcf);},'rFYIW':_0xd27ce5(0xa5),'QpEVD':_0xd27ce5(0x95),'vlUnj':_0xd27ce5(0xdb),'rgarU':_0xd27ce5(0xbf),'ozxKh':'pipe','sZqPs':_0xd27ce5(0xa0),'VcSgE':_0xd27ce5(0xb9)};return new Promise(_0x5703b6=>{const _0x34a297=_0xd27ce5,_0x1ddb44={'fVFfn':_0x622ebd['gyWbw'],'MoyGT':function(_0x12afbc,_0x280eb1){const _0x4beea0=a57_0x2806;return _0x622ebd[_0x4beea0(0x9b)](_0x12afbc,_0x280eb1);},'eTzpY':_0x622ebd[_0x34a297(0x8e)]},_0x18a612=[],_0x15647c=new Worker(require[_0x34a297(0xd6)](_0x622ebd[_0x34a297(0x9a)]),{'exposedMethods':[_0x622ebd['vlUnj']],'forkOptions':{'serialization':_0x622ebd[_0x34a297(0xd4)],'stdio':_0x622ebd['ozxKh']},'numWorkers':_0x516a60[_0x34a297(0xd9)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x4c06f1=new Emittery();_0x4c06f1['on'](_0x622ebd['sZqPs'],_0x425bbf=>{const _0x3910a3=_0x34a297;_0x18a612[_0x3910a3(0x93)]([_0x425bbf[0x0],_0x425bbf[0x1]]);}),_0x4c06f1['on'](_0x622ebd[_0x34a297(0xb5)],_0x439e0e=>console[_0x34a297(0xb6)](_0x439e0e[0x1]));_0x15647c[_0x34a297(0xdd)]()&&_0x15647c[_0x34a297(0xdd)]()[_0x34a297(0xd2)](process[_0x34a297(0xa8)]);_0x15647c[_0x34a297(0xee)]()&&_0x15647c[_0x34a297(0xee)]()[_0x34a297(0xd2)](process[_0x34a297(0xcc)]);const _0x7c4e86=async()=>{const _0x3ca675=_0x34a297,{forceExited:_0x48f765}=await _0x15647c[_0x3ca675(0xe2)]();_0x48f765&&console[_0x3ca675(0xaa)](_0x1ddb44[_0x3ca675(0xc1)]),_0x1ddb44[_0x3ca675(0x9e)](_0x5703b6,_0x18a612);},_0xb71378=_0x622ebd[_0x34a297(0x9b)](pLimit,_0x516a60[_0x34a297(0xd9)]||0x1),_0x57784b=(_0xd21979,_0x590ba2)=>_0xb71378(async()=>{const _0x2b4e42=_0x34a297;return await _0x4c06f1['emit'](_0x1ddb44[_0x2b4e42(0xdf)],_0xd21979),_0x575135['platformCaps']=_0x67a2ab[_0x2b4e42(0xbd)][_0x590ba2],_0x575135[_0x2b4e42(0xd1)]=_0x590ba2,_0x15647c[_0x2b4e42(0xdb)](_0xd21979,_0x575135,_0x67a2ab,_0x3576cb,_0x9045f5);});Promise['all'](_0x516a60[_0x34a297(0x9f)]((_0x2b1b53,_0x1688e6)=>_0x57784b(_0x2b1b53,_0x1688e6)['then'](_0x42170f=>_0x4c06f1[_0x34a297(0xbb)](_0x34a297(0xa0),[_0x2b1b53,_0x42170f]),_0xd16922=>_0x4c06f1[_0x34a297(0xbb)](_0x34a297(0xb9),[_0x2b1b53,_0xd16922]))))[_0x34a297(0xd7)](_0x7c4e86,_0x7c4e86);});},exports[a57_0x321d50(0xce)]=(_0x56a7d5,_0x4e3a3c)=>new Promise(_0x4387e7=>{const _0x56b399=a57_0x321d50,_0x892d64={'sRjGj':_0x56b399(0xe1),'tfNwI':function(_0x5607b9,_0x23bd32){return _0x5607b9===_0x23bd32;},'Wchkw':function(_0x1c5328,_0x23ca88){return _0x1c5328!==_0x23ca88;},'grkBi':'Workers\x20failed\x20to\x20exit\x20gracefully','KYrEA':function(_0x123c65,_0x38c58c){return _0x123c65(_0x38c58c);},'iMqBf':_0x56b399(0x95),'SEwPz':'vanillaWorker','UwFLf':_0x56b399(0xbf),'dQhpW':'pipe','oAHyF':'test-file-success','Gjbto':_0x56b399(0xa3)},_0x1aa4b9={},_0x539255=new Worker(require['resolve'](_0x892d64[_0x56b399(0xc2)]),{'exposedMethods':[_0x892d64[_0x56b399(0xb4)]],'forkOptions':{'serialization':_0x892d64[_0x56b399(0xc8)],'stdio':_0x892d64[_0x56b399(0xa7)]},'numWorkers':_0x4e3a3c,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0x44b1b9=new Emittery();_0x44b1b9['on'](_0x892d64[_0x56b399(0xbc)],_0x3d22a2=>{const _0x4c508d=_0x56b399;_0x3d22a2[0x0]&&logger[_0x4c508d(0xb1)](_0x4c508d(0xac)+_0x3d22a2[0x1]+_0x4c508d(0xdc),_0x3d22a2[0x0]);}),_0x44b1b9['on'](_0x892d64[_0x56b399(0x8f)],_0x3af522=>{process['exitCode']=0x1;});_0x539255[_0x56b399(0xdd)]()&&_0x539255[_0x56b399(0xdd)]()['pipe'](process[_0x56b399(0xa8)]);_0x539255[_0x56b399(0xee)]()&&_0x539255['getStderr']()[_0x56b399(0xd2)](process[_0x56b399(0xcc)]);const _0x10834e=async()=>{const _0x1a3b40=_0x56b399,_0x4d32df={'yIPpB':function(_0x4f1609,_0x15e01b){return _0x892d64['tfNwI'](_0x4f1609,_0x15e01b);},'hKVZU':function(_0x140c49,_0x431fad){const _0x1e440f=a57_0x2806;return _0x892d64[_0x1e440f(0xc4)](_0x140c49,_0x431fad);}};let _0x5df030=0x0;const _0x3c1392=_0x539255[_0x1a3b40(0xc6)]['getWorkers'](),_0x33604d=()=>{},_0x1ed143=_0x3c1392[_0x1a3b40(0x9f)](async _0x113c2c=>{const _0xa1e83a=_0x1a3b40;_0x113c2c[_0xa1e83a(0xf0)]([0x2,![]],_0x33604d,_0x33604d,_0x33604d),_0x113c2c[_0xa1e83a(0xc0)]['on'](_0x892d64[_0xa1e83a(0x8c)],_0x49b917=>{const _0x1b2eeb=_0xa1e83a;_0x4d32df[_0x1b2eeb(0xae)](_0x5df030,0x0)&&_0x4d32df[_0x1b2eeb(0xb7)](_0x49b917,0x0)&&(_0x5df030=_0x49b917);}),await _0x113c2c[_0xa1e83a(0xc9)]();});await Promise['all'](_0x1ed143),process[_0x1a3b40(0xab)]=_0x5df030;const {forceExited:_0x2f9289}=await _0x539255['end']();_0x2f9289&&console[_0x1a3b40(0xaa)](_0x892d64[_0x1a3b40(0xe9)]),_0x892d64[_0x1a3b40(0xd3)](_0x4387e7,_0x1aa4b9);},_0x40f790=_0x892d64[_0x56b399(0xd3)](pLimit,_0x4e3a3c),_0xa17a7e=_0x1ad38e=>_0x40f790(async()=>{return _0x539255['vanillaWorker'](_0x1ad38e);});Promise[_0x56b399(0x98)](_0x56a7d5[_0x56b399(0x9f)](_0x33bd33=>_0xa17a7e(_0x33bd33)[_0x56b399(0xd7)](_0x44187=>_0x44b1b9[_0x56b399(0xbb)](_0x56b399(0xd0),[_0x33bd33[_0x56b399(0xec)]['platform'],_0x33bd33[_0x56b399(0xec)]['file']]),_0x486061=>_0x44b1b9[_0x56b399(0xbb)](_0x56b399(0xa3),[_0x33bd33,_0x486061]))))['then'](_0x10834e,_0x10834e);});
@@ -1 +1 @@
1
- const a58_0x328a58=a58_0x129d;function a58_0x19b3(){const _0x46912c=['mocha','../../helpers/performance/performance-tester','uERlC','17831902MgqLbQ','../launcher/launcher','767640AKjCQR','5iEhbtC','8woivOQ','stopMonitoring','71892PmMBlf','DoYwi','QrAyT','vanilla','EVENTS','../../helpers/performance/constants','UCfpO','3933315vtkVUl','SDK_POST_TEST','22pIGrTF','10IZhUMs','7161350DULdUB','cucumber-js','676372LnmZbQ','6296748GuXaCz'];a58_0x19b3=function(){return _0x46912c;};return a58_0x19b3();}(function(_0x442a9a,_0x36525a){const _0x3172e3=a58_0x129d,_0x3de692=_0x442a9a();while(!![]){try{const _0xb3756d=parseInt(_0x3172e3(0xdb))/0x1+-parseInt(_0x3172e3(0xd7))/0x2*(parseInt(_0x3172e3(0xe6))/0x3)+parseInt(_0x3172e3(0xe2))/0x4*(parseInt(_0x3172e3(0xe3))/0x5)+-parseInt(_0x3172e3(0xdc))/0x6+-parseInt(_0x3172e3(0xd9))/0x7+-parseInt(_0x3172e3(0xe4))/0x8*(-parseInt(_0x3172e3(0xd5))/0x9)+parseInt(_0x3172e3(0xd8))/0xa*(parseInt(_0x3172e3(0xe0))/0xb);if(_0xb3756d===_0x36525a)break;else _0x3de692['push'](_0x3de692['shift']());}catch(_0x3f5f75){_0x3de692['push'](_0x3de692['shift']());}}}(a58_0x19b3,0x901cf));const PerformanceEvents=require(a58_0x328a58(0xd3))[a58_0x328a58(0xd2)],PerformanceTester=require(a58_0x328a58(0xde)),{sleep}=require('../../helpers/test-observability/utils');function a58_0x129d(_0xad08be,_0x691bf4){const _0x19b3d6=a58_0x19b3();return a58_0x129d=function(_0x129d86,_0x2881da){_0x129d86=_0x129d86-0xd0;let _0x14a10c=_0x19b3d6[_0x129d86];return _0x14a10c;},a58_0x129d(_0xad08be,_0x691bf4);}exports['runTest']=async(_0x13119c,_0x44d217)=>{const _0x46ca3c=a58_0x328a58,_0x4eac3f={'yrLyH':function(_0x118c3d,_0x2be549){return _0x118c3d(_0x2be549);},'mBWni':_0x46ca3c(0xe1),'FwtoW':_0x46ca3c(0xdd)};PerformanceTester['startMonitoring']();const _0x4cf9a7=_0x4eac3f['yrLyH'](require,_0x4eac3f['mBWni']),_0xdcca5e=new _0x4cf9a7(_0x4eac3f['FwtoW'],_0x13119c,_0x44d217),_0xadb641=await _0xdcca5e['run']();return PerformanceTester['end'](PerformanceEvents[_0x46ca3c(0xd6)]),await _0x4eac3f['yrLyH'](sleep,0x3e8),PerformanceTester[_0x46ca3c(0xe5)](),_0xadb641;},exports['runCucumberTest']=async(_0x46d20a,_0x1adb73,_0xb73bc1,_0x566242,_0x401c68)=>{const _0x248891=a58_0x328a58,_0x20638b={'pGbNv':function(_0x681e12,_0x1636de){return _0x681e12(_0x1636de);},'uERlC':_0x248891(0xe1),'QrAyT':_0x248891(0xda)},_0x5079c5={'capability':_0x46d20a,..._0x1adb73},_0x275200={};_0x275200['configuration']=_0x5079c5,_0x275200['formatter']=_0x401c68;const _0x13b56a=_0x275200,_0x3499c4=_0x20638b['pGbNv'](require,_0x20638b[_0x248891(0xdf)]),_0x4d0e97=new _0x3499c4(_0x20638b[_0x248891(0xd0)],_0x13b56a,_0xb73bc1,_0x566242);return await _0x4d0e97['run']();},exports['runVanillaTest']=async _0x355fc5=>{const _0x51fb06=a58_0x328a58,_0x45fd85={'qJOXl':function(_0xd2cc31,_0x8142f7){return _0xd2cc31(_0x8142f7);},'DoYwi':_0x51fb06(0xe1),'UCfpO':_0x51fb06(0xd1)},_0x293a03=_0x45fd85['qJOXl'](require,_0x45fd85[_0x51fb06(0xe7)]),_0x3b0557=new _0x293a03(_0x45fd85[_0x51fb06(0xd4)],_0x355fc5);return await _0x3b0557['run']();};
1
+ function a58_0x2842(){const _0x120917=['297xORWCw','../launcher/launcher','xZNhw','MEbTN','run','../../helpers/performance/constants','startMonitoring','LLUgf','../../helpers/test-observability/utils','12xGsgZg','LbVHz','configuration','stopMonitoring','lAVxs','9OoMdQR','4981557pdcQYw','zZxEt','runCucumberTest','vanilla','uDlkK','mocha','6230856ipoHrc','4IgYWDe','4842236xpbEAk','977511bgnqzT','1018665FfOptE','cucumber-js','709570WZJRAu','SDK_POST_TEST','5924385wZfdWv'];a58_0x2842=function(){return _0x120917;};return a58_0x2842();}const a58_0x3a3a47=a58_0x96ba;(function(_0x4c1588,_0x3b3cdd){const _0x1e3665=a58_0x96ba,_0x4e5aaf=_0x4c1588();while(!![]){try{const _0x2c9ead=-parseInt(_0x1e3665(0x1d8))/0x1+-parseInt(_0x1e3665(0x1f3))/0x2*(-parseInt(_0x1e3665(0x1d7))/0x3)+parseInt(_0x1e3665(0x1f4))/0x4+-parseInt(_0x1e3665(0x1dc))/0x5+-parseInt(_0x1e3665(0x1e6))/0x6*(parseInt(_0x1e3665(0x1ec))/0x7)+-parseInt(_0x1e3665(0x1f2))/0x8*(-parseInt(_0x1e3665(0x1eb))/0x9)+parseInt(_0x1e3665(0x1da))/0xa*(parseInt(_0x1e3665(0x1dd))/0xb);if(_0x2c9ead===_0x3b3cdd)break;else _0x4e5aaf['push'](_0x4e5aaf['shift']());}catch(_0x189bb9){_0x4e5aaf['push'](_0x4e5aaf['shift']());}}}(a58_0x2842,0xe3125));const PerformanceEvents=require(a58_0x3a3a47(0x1e2))['EVENTS'],PerformanceTester=require('../../helpers/performance/performance-tester'),{sleep}=require(a58_0x3a3a47(0x1e5));function a58_0x96ba(_0x6ed282,_0x174806){const _0x284202=a58_0x2842();return a58_0x96ba=function(_0x96ba81,_0x1adf3c){_0x96ba81=_0x96ba81-0x1d7;let _0x2314f1=_0x284202[_0x96ba81];return _0x2314f1;},a58_0x96ba(_0x6ed282,_0x174806);}exports['runTest']=async(_0x58cbe9,_0x11679b)=>{const _0x3fc2ea=a58_0x3a3a47,_0x270ebd={'MkfKa':function(_0x22a407,_0x3b7827){return _0x22a407(_0x3b7827);},'lAVxs':_0x3fc2ea(0x1de),'xZNhw':_0x3fc2ea(0x1f1),'MEbTN':function(_0x5e80db,_0x7b88ef){return _0x5e80db(_0x7b88ef);}};PerformanceTester[_0x3fc2ea(0x1e3)]();const _0x5c77cb=_0x270ebd['MkfKa'](require,_0x270ebd[_0x3fc2ea(0x1ea)]),_0x48af83=new _0x5c77cb(_0x270ebd[_0x3fc2ea(0x1df)],_0x58cbe9,_0x11679b),_0x5d14e2=await _0x48af83[_0x3fc2ea(0x1e1)]();return PerformanceTester['end'](PerformanceEvents[_0x3fc2ea(0x1db)]),await _0x270ebd[_0x3fc2ea(0x1e0)](sleep,0x3e8),PerformanceTester[_0x3fc2ea(0x1e9)](),_0x5d14e2;},exports[a58_0x3a3a47(0x1ee)]=async(_0x7ec88f,_0x31811d,_0x2945cb,_0x25a344,_0x24385b)=>{const _0x125c72=a58_0x3a3a47,_0x54eb75={'UsBxn':function(_0x51eca3,_0x1bbb1d){return _0x51eca3(_0x1bbb1d);},'LbVHz':'../launcher/launcher','LLUgf':_0x125c72(0x1d9)},_0x4511d3={'capability':_0x7ec88f,..._0x31811d},_0x3b069a={};_0x3b069a[_0x125c72(0x1e8)]=_0x4511d3,_0x3b069a['formatter']=_0x24385b;const _0x3129ae=_0x3b069a,_0x12e3ff=_0x54eb75['UsBxn'](require,_0x54eb75[_0x125c72(0x1e7)]),_0x18e22a=new _0x12e3ff(_0x54eb75[_0x125c72(0x1e4)],_0x3129ae,_0x2945cb,_0x25a344);return await _0x18e22a[_0x125c72(0x1e1)]();},exports['runVanillaTest']=async _0x48e9af=>{const _0x422c1f=a58_0x3a3a47,_0x26dde0={'zZxEt':function(_0x2d242d,_0x12f533){return _0x2d242d(_0x12f533);},'kSJGi':_0x422c1f(0x1de),'uDlkK':_0x422c1f(0x1ef)},_0x1fd00e=_0x26dde0[_0x422c1f(0x1ed)](require,_0x26dde0['kSJGi']),_0x40cb2a=new _0x1fd00e(_0x26dde0[_0x422c1f(0x1f0)],_0x48e9af);return await _0x40cb2a[_0x422c1f(0x1e1)]();};
@@ -1 +1 @@
1
- function a59_0x473c(_0x454be6,_0x4a015a){const _0x19b6db=a59_0x19b6();return a59_0x473c=function(_0x473c78,_0x21fe53){_0x473c78=_0x473c78-0x153;let _0x3f58c9=_0x19b6db[_0x473c78];return _0x3f58c9;},a59_0x473c(_0x454be6,_0x4a015a);}const a59_0x7390e7=a59_0x473c;(function(_0x6ce01e,_0x31ce84){const _0x2442b5=a59_0x473c,_0x57aa32=_0x6ce01e();while(!![]){try{const _0x5ac2fd=-parseInt(_0x2442b5(0x160))/0x1+parseInt(_0x2442b5(0x158))/0x2+parseInt(_0x2442b5(0x15e))/0x3+parseInt(_0x2442b5(0x15f))/0x4*(-parseInt(_0x2442b5(0x156))/0x5)+-parseInt(_0x2442b5(0x155))/0x6*(-parseInt(_0x2442b5(0x157))/0x7)+parseInt(_0x2442b5(0x153))/0x8+parseInt(_0x2442b5(0x159))/0x9;if(_0x5ac2fd===_0x31ce84)break;else _0x57aa32['push'](_0x57aa32['shift']());}catch(_0xf666b3){_0x57aa32['push'](_0x57aa32['shift']());}}}(a59_0x19b6,0x5f5c3));function a59_0x19b6(){const _0x353792=['ARchg','851346ofoozB','30MHcKCf','7NTlbOJ','381082GIGmPo','4368474JnViXV','FkIEU','worker','./runTest','STmsX','2218815yQMlNn','485712momydl','738149qUDZQd','2399112mvught'];a59_0x19b6=function(){return _0x353792;};return a59_0x19b6();}const {runTest,runCucumberTest,runVanillaTest}=require(a59_0x7390e7(0x15c));exports[a59_0x7390e7(0x15b)]=async(_0x4ea549,_0x54f3c7)=>{const _0x381ad9=a59_0x7390e7,_0x5cbce6={'FkIEU':function(_0x458577,_0x4d49ba,_0x2195b9){return _0x458577(_0x4d49ba,_0x2195b9);}};return await _0x5cbce6[_0x381ad9(0x15a)](runTest,_0x4ea549,_0x54f3c7);},exports['cucumberWorker']=async(_0x53bbb2,_0x41f805,_0xee67a2,_0x21357f,_0x46376e)=>{const _0x1aed5d=a59_0x7390e7,_0x2908fe={'STmsX':function(_0x32e622,_0x446860,_0x3da0f5,_0x23a8eb,_0x1f151c,_0x9b99aa){return _0x32e622(_0x446860,_0x3da0f5,_0x23a8eb,_0x1f151c,_0x9b99aa);}};return await _0x2908fe[_0x1aed5d(0x15d)](runCucumberTest,_0x53bbb2,_0x41f805,_0xee67a2,_0x21357f,_0x46376e);},exports['vanillaWorker']=async _0x312580=>{const _0x495463=a59_0x7390e7,_0x577fc2={'ARchg':function(_0x1a3c8f,_0xdc946f){return _0x1a3c8f(_0xdc946f);}};return await _0x577fc2[_0x495463(0x154)](runVanillaTest,_0x312580);};
1
+ const a59_0x6e7605=a59_0x331e;function a59_0x331e(_0x34d7e8,_0x25a291){const _0x25cedc=a59_0x25ce();return a59_0x331e=function(_0x331e9a,_0x20082f){_0x331e9a=_0x331e9a-0x1ef;let _0x19ed1f=_0x25cedc[_0x331e9a];return _0x19ed1f;},a59_0x331e(_0x34d7e8,_0x25a291);}(function(_0x34f164,_0x26b844){const _0x15ae59=a59_0x331e,_0x2df214=_0x34f164();while(!![]){try{const _0x511b8d=parseInt(_0x15ae59(0x1fc))/0x1*(parseInt(_0x15ae59(0x1fb))/0x2)+parseInt(_0x15ae59(0x1f4))/0x3*(-parseInt(_0x15ae59(0x1ff))/0x4)+parseInt(_0x15ae59(0x1f9))/0x5*(parseInt(_0x15ae59(0x1f8))/0x6)+parseInt(_0x15ae59(0x1f2))/0x7+-parseInt(_0x15ae59(0x1f6))/0x8+parseInt(_0x15ae59(0x1ef))/0x9+-parseInt(_0x15ae59(0x1f7))/0xa*(parseInt(_0x15ae59(0x1fe))/0xb);if(_0x511b8d===_0x26b844)break;else _0x2df214['push'](_0x2df214['shift']());}catch(_0x24d0a8){_0x2df214['push'](_0x2df214['shift']());}}}(a59_0x25ce,0x60ea1));const {runTest,runCucumberTest,runVanillaTest}=require(a59_0x6e7605(0x1f3));try{require(a59_0x6e7605(0x1f0))[a59_0x6e7605(0x201)]();}catch(a59_0x5e26a1){}function a59_0x25ce(){const _0x4d9e3c=['YoDEK','1168506msOYdq','../../helpers/driverInitErrorReporter','vanillaWorker','3970148NStJCJ','./runTest','17046OKRbEo','bUaQJ','762928vfANSW','13473110MOsfoQ','18pWSMIl','1304570FfvPQL','qfUva','148376tgtnlg','6xoMNqe','worker','11dpYVXe','60NUmeIv','cucumberWorker','installAll'];a59_0x25ce=function(){return _0x4d9e3c;};return a59_0x25ce();}exports[a59_0x6e7605(0x1fd)]=async(_0x5dad68,_0x289584)=>{const _0x47eedb=a59_0x6e7605,_0x18cb2a={'bUaQJ':function(_0x2c90bd,_0x5b4699,_0x5a13c3){return _0x2c90bd(_0x5b4699,_0x5a13c3);}};return await _0x18cb2a[_0x47eedb(0x1f5)](runTest,_0x5dad68,_0x289584);},exports[a59_0x6e7605(0x200)]=async(_0x26a7de,_0x227cb5,_0x1a9627,_0x4336dc,_0x4454c5)=>{const _0x12eeed=a59_0x6e7605,_0x37f10f={'qfUva':function(_0x558045,_0x2b04a2,_0x527488,_0x1d47c6,_0x28d4ae,_0x4b323d){return _0x558045(_0x2b04a2,_0x527488,_0x1d47c6,_0x28d4ae,_0x4b323d);}};return await _0x37f10f[_0x12eeed(0x1fa)](runCucumberTest,_0x26a7de,_0x227cb5,_0x1a9627,_0x4336dc,_0x4454c5);},exports[a59_0x6e7605(0x1f1)]=async _0x5d546b=>{const _0x3d6987=a59_0x6e7605,_0x57631b={'YoDEK':function(_0x53aa17,_0x1e47fd){return _0x53aa17(_0x1e47fd);}};return await _0x57631b[_0x3d6987(0x202)](runVanillaTest,_0x5d546b);};
@@ -1 +1 @@
1
- const a60_0x15bb31=a60_0x439f;(function(_0x3deb40,_0x2d37b4){const _0x110dd8=a60_0x439f,_0x4b522b=_0x3deb40();while(!![]){try{const _0x4e0503=parseInt(_0x110dd8(0xf6))/0x1*(-parseInt(_0x110dd8(0xc1))/0x2)+-parseInt(_0x110dd8(0xfa))/0x3+-parseInt(_0x110dd8(0x105))/0x4*(-parseInt(_0x110dd8(0xd0))/0x5)+-parseInt(_0x110dd8(0xd2))/0x6+-parseInt(_0x110dd8(0xbe))/0x7*(-parseInt(_0x110dd8(0xb1))/0x8)+-parseInt(_0x110dd8(0xfb))/0x9+parseInt(_0x110dd8(0xd8))/0xa;if(_0x4e0503===_0x2d37b4)break;else _0x4b522b['push'](_0x4b522b['shift']());}catch(_0x532753){_0x4b522b['push'](_0x4b522b['shift']());}}}(a60_0x80f4,0x36ad4));const constants=require('./constants'),{nestedKeyValue}=require(a60_0x15bb31(0xd7)),getBrowserstackCLI=()=>{const _0x48c6d6=a60_0x15bb31,_0x3aed78={'srLeF':function(_0x4947a5,_0xdace8){return _0x4947a5(_0xdace8);},'qUlVM':_0x48c6d6(0x110)};return _0x3aed78[_0x48c6d6(0xef)](require,_0x3aed78[_0x48c6d6(0x10c)]);};class APIUtilityMethods{static[a60_0x15bb31(0xe0)](_0x3f2807){const _0x482313=a60_0x15bb31,_0x3237f5={'gvRMD':function(_0x22ad6b){return _0x22ad6b();},'DqJxL':function(_0x4851d8,_0x385018,_0x1a0d44){return _0x4851d8(_0x385018,_0x1a0d44);},'sFYWM':_0x482313(0x112),'QjgAf':_0x482313(0xf9),'icuox':_0x482313(0xb4),'fyBfW':function(_0x162f01,_0x4291b7){return _0x162f01===_0x4291b7;},'jryoJ':function(_0x14cdd7,_0xa7fbab){return _0x14cdd7+_0xa7fbab;}},_0x8721f0=_0x3237f5[_0x482313(0xc8)](getBrowserstackCLI),_0x347989=_0x3237f5[_0x482313(0xb2)](nestedKeyValue,_0x8721f0[_0x482313(0xbb)]()['getConfig'](),[_0x3237f5['sFYWM'],_0x3237f5[_0x482313(0x106)],_0x3237f5[_0x482313(0xac)]])||constants[_0x482313(0xf2)];if(!_0x3f2807||_0x3237f5[_0x482313(0xc7)](_0x3f2807,''))return _0x347989;const _0x4ff629=_0x347989[_0x482313(0xcd)]('/')?_0x347989:_0x3237f5[_0x482313(0xc4)](_0x347989,'/');return new URL(_0x3f2807,_0x4ff629)[_0x482313(0xf4)]();}static[a60_0x15bb31(0x108)](_0x5309bd){const _0x3053bc=a60_0x15bb31,_0x38a88c={'znMWc':function(_0x31b3ed){return _0x31b3ed();},'qbuxI':function(_0x41c12c,_0x4bc4c8,_0xff67fd){return _0x41c12c(_0x4bc4c8,_0xff67fd);},'qybkJ':_0x3053bc(0x112),'pleuB':_0x3053bc(0x109),'bbxuf':_0x3053bc(0xb4),'tbEsS':function(_0x45746a,_0x22ea83){return _0x45746a===_0x22ea83;},'sKwhp':function(_0x559ceb,_0x5a1bd5){return _0x559ceb+_0x5a1bd5;}},_0x356325=_0x38a88c[_0x3053bc(0xb9)](getBrowserstackCLI),_0x44cb9a=_0x38a88c[_0x3053bc(0xfd)](nestedKeyValue,_0x356325['getInstance']()['getConfig'](),[_0x38a88c['qybkJ'],_0x38a88c[_0x3053bc(0xb6)],_0x38a88c[_0x3053bc(0x10b)]])||constants['EDS_URL'];if(!_0x5309bd||_0x38a88c['tbEsS'](_0x5309bd,''))return _0x44cb9a;const _0x1a8813=_0x44cb9a[_0x3053bc(0xcd)]('/')?_0x44cb9a:_0x38a88c['sKwhp'](_0x44cb9a,'/');return new URL(_0x5309bd,_0x1a8813)['toString']();}static[a60_0x15bb31(0x103)](_0x10ccb3){const _0x6c1108=a60_0x15bb31,_0x18338c={'hXzNl':function(_0x2bb6fe){return _0x2bb6fe();},'HcJxJ':function(_0x208f4a,_0x16a9a1,_0xc3d8b3){return _0x208f4a(_0x16a9a1,_0xc3d8b3);},'GbfSK':_0x6c1108(0x112),'kfiXt':_0x6c1108(0xf9),'RzoQh':_0x6c1108(0xb4),'thuCN':function(_0x40d821,_0x2bdc36){return _0x40d821===_0x2bdc36;},'rqgkm':function(_0x2e16b8,_0xc30f89){return _0x2e16b8+_0xc30f89;}},_0x230df7=_0x18338c[_0x6c1108(0xbf)](getBrowserstackCLI),_0x16fdb5=_0x18338c['HcJxJ'](nestedKeyValue,_0x230df7[_0x6c1108(0xbb)]()['getConfig'](),[_0x18338c[_0x6c1108(0xea)],_0x18338c['kfiXt'],_0x18338c[_0x6c1108(0xce)]])||constants['BROWSERSTACK_API_URL'];if(!_0x10ccb3||_0x18338c[_0x6c1108(0x111)](_0x10ccb3,''))return _0x16fdb5;const _0x108fe6=_0x16fdb5[_0x6c1108(0xcd)]('/')?_0x16fdb5:_0x18338c[_0x6c1108(0xd4)](_0x16fdb5,'/');return new URL(_0x10ccb3,_0x108fe6)[_0x6c1108(0xf4)]();}static[a60_0x15bb31(0xb5)](_0x3d0756){const _0x859ed1=a60_0x15bb31,_0x588b49={'kVzCX':function(_0x53fef8){return _0x53fef8();},'qaoBQ':function(_0x1e5e08,_0x449c0f,_0x105a42){return _0x1e5e08(_0x449c0f,_0x105a42);},'mWdqu':_0x859ed1(0x112),'DYYxv':_0x859ed1(0xe6),'yLDYt':_0x859ed1(0xb4),'ZuitS':function(_0x1d1d0c,_0x395614){return _0x1d1d0c===_0x395614;},'VlPaj':function(_0x4520a6,_0x345d93){return _0x4520a6+_0x345d93;}},_0x475517=_0x588b49[_0x859ed1(0xc9)](getBrowserstackCLI),_0xcfee5b=_0x588b49['qaoBQ'](nestedKeyValue,_0x475517[_0x859ed1(0xbb)]()['getConfig'](),[_0x588b49[_0x859ed1(0x107)],_0x588b49[_0x859ed1(0xe5)],_0x588b49[_0x859ed1(0xe7)]])||constants[_0x859ed1(0xf2)];if(!_0x3d0756||_0x588b49[_0x859ed1(0xd6)](_0x3d0756,''))return _0xcfee5b;const _0x27b1b3=_0xcfee5b[_0x859ed1(0xcd)]('/')?_0xcfee5b:_0x588b49[_0x859ed1(0xd5)](_0xcfee5b,'/');return new URL(_0x3d0756,_0x27b1b3)[_0x859ed1(0xf4)]();}static[a60_0x15bb31(0xbc)](_0x1effd2){const _0x19d806=a60_0x15bb31,_0xeb7288={'aQwsu':function(_0x477687){return _0x477687();},'LmPgy':function(_0x570da5,_0x575405,_0x4ebd5c){return _0x570da5(_0x575405,_0x4ebd5c);},'UIvOq':_0x19d806(0x112),'FMQnp':'automate','uoQaX':'api','UgxNi':function(_0x31a769,_0x44b0fa){return _0x31a769===_0x44b0fa;},'rqXGG':function(_0x387f1b,_0x5d6c2b){return _0x387f1b+_0x5d6c2b;}},_0x1eaa5e=_0xeb7288[_0x19d806(0xcb)](getBrowserstackCLI),_0x59753e=_0xeb7288[_0x19d806(0xb0)](nestedKeyValue,_0x1eaa5e['getInstance']()[_0x19d806(0x10d)](),[_0xeb7288[_0x19d806(0xc5)],_0xeb7288[_0x19d806(0x102)],_0xeb7288[_0x19d806(0xba)]])||constants[_0x19d806(0xf2)];if(!_0x1effd2||_0xeb7288[_0x19d806(0xec)](_0x1effd2,''))return _0x59753e;const _0x48d2e9=_0x59753e[_0x19d806(0xcd)]('/')?_0x59753e:_0xeb7288[_0x19d806(0xcf)](_0x59753e,'/');return new URL(_0x1effd2,_0x48d2e9)[_0x19d806(0xf4)]();}static[a60_0x15bb31(0xfe)](_0x46c230){const _0x4eef95=a60_0x15bb31,_0x3f2ce6={'fWhHG':function(_0x3ce3ea){return _0x3ce3ea();},'PCZOU':function(_0x4cb7e2,_0x3d4daa,_0x46550b){return _0x4cb7e2(_0x3d4daa,_0x46550b);},'kGBdS':_0x4eef95(0x112),'Ietyi':_0x4eef95(0xe6),'OXKOO':_0x4eef95(0xb4),'KEZUC':function(_0x1e6891,_0x28a0ce){return _0x1e6891===_0x28a0ce;},'cXtwf':function(_0x55363d,_0xfe8741){return _0x55363d+_0xfe8741;}},_0x45a1ad=_0x3f2ce6[_0x4eef95(0xe9)](getBrowserstackCLI),_0x2900a3=_0x3f2ce6[_0x4eef95(0xf5)](nestedKeyValue,_0x45a1ad['getInstance']()[_0x4eef95(0x10d)](),[_0x3f2ce6['kGBdS'],_0x3f2ce6[_0x4eef95(0x10a)],_0x3f2ce6[_0x4eef95(0xd9)]])||constants[_0x4eef95(0xf2)];if(!_0x46c230||_0x3f2ce6[_0x4eef95(0xb7)](_0x46c230,''))return _0x2900a3;const _0x4250d2=_0x2900a3[_0x4eef95(0xcd)]('/')?_0x2900a3:_0x3f2ce6['cXtwf'](_0x2900a3,'/');return new URL(_0x46c230,_0x4250d2)['toString']();}static['getAutomateSessionsListAPIUrl'](_0x33c8d8){const _0x48b0bc=a60_0x15bb31,_0x629ce5={'zCCHc':function(_0x2d6443){return _0x2d6443();},'MvzSh':function(_0x3304fa,_0x38f555,_0x1b4e32){return _0x3304fa(_0x38f555,_0x1b4e32);},'CCkpJ':_0x48b0bc(0x112),'aUtyD':_0x48b0bc(0xf9),'toqmk':_0x48b0bc(0xb4),'InhYp':function(_0x198a34,_0x4eb9fb){return _0x198a34===_0x4eb9fb;},'vTrvV':function(_0x394f2c,_0x486258){return _0x394f2c+_0x486258;}},_0x3f3057=_0x629ce5[_0x48b0bc(0xe3)](getBrowserstackCLI),_0x9aa212=_0x629ce5[_0x48b0bc(0x104)](nestedKeyValue,_0x3f3057[_0x48b0bc(0xbb)]()['getConfig'](),[_0x629ce5[_0x48b0bc(0xfc)],_0x629ce5['aUtyD'],_0x629ce5[_0x48b0bc(0xc3)]])||constants[_0x48b0bc(0xf2)];if(!_0x33c8d8||_0x629ce5[_0x48b0bc(0xdc)](_0x33c8d8,''))return _0x9aa212;const _0x5c281f=_0x9aa212['endsWith']('/')?_0x9aa212:_0x629ce5[_0x48b0bc(0xd3)](_0x9aa212,'/');return new URL(_0x33c8d8,_0x5c281f)[_0x48b0bc(0xf4)]()[_0x48b0bc(0xdd)](/^https?:\/\//,'');}static[a60_0x15bb31(0xc6)](_0x4514e6){const _0x1ab4a6=a60_0x15bb31,_0x4a175b={'yzmCM':function(_0x4e7a11){return _0x4e7a11();},'aTNUF':function(_0x508f9c,_0x3c5608,_0x18c840){return _0x508f9c(_0x3c5608,_0x18c840);},'cDCTp':'apis','TFTnh':_0x1ab4a6(0xe6),'ACtTy':_0x1ab4a6(0xb4),'dfWKB':function(_0x17ad5f,_0x20f259){return _0x17ad5f===_0x20f259;},'GsoDf':function(_0x27d5ff,_0xe2ae7d){return _0x27d5ff+_0xe2ae7d;}},_0x1f30e2=_0x4a175b[_0x1ab4a6(0xc2)](getBrowserstackCLI),_0x212a2b=_0x4a175b['aTNUF'](nestedKeyValue,_0x1f30e2[_0x1ab4a6(0xbb)]()[_0x1ab4a6(0x10d)](),[_0x4a175b[_0x1ab4a6(0xf3)],_0x4a175b[_0x1ab4a6(0xda)],_0x4a175b[_0x1ab4a6(0xf7)]])||constants[_0x1ab4a6(0xf8)];if(!_0x4514e6||_0x4a175b[_0x1ab4a6(0xaf)](_0x4514e6,''))return _0x212a2b;const _0xdcf3e4=_0x212a2b[_0x1ab4a6(0xcd)]('/')?_0x212a2b:_0x4a175b[_0x1ab4a6(0xe8)](_0x212a2b,'/');return new URL(_0x4514e6,_0xdcf3e4)[_0x1ab4a6(0xf4)]()['replace'](/^https?:\/\//,'');}static[a60_0x15bb31(0xc0)](_0x6153c7){const _0x1ab0c4=a60_0x15bb31,_0x1ee9b2={'KkjZt':function(_0x2be1dd){return _0x2be1dd();},'NWnon':function(_0x126fec,_0x1123ca,_0x5684fb){return _0x126fec(_0x1123ca,_0x5684fb);},'Qqqhc':_0x1ab0c4(0x112),'QzmVq':_0x1ab0c4(0x10e),'LYyeX':_0x1ab0c4(0xe2),'gOcoX':function(_0x151a4f,_0x19049b){return _0x151a4f===_0x19049b;},'MgWal':function(_0x5e6f0d,_0xa85bf9){return _0x5e6f0d+_0xa85bf9;}},_0xf0e232=_0x1ee9b2['KkjZt'](getBrowserstackCLI),_0x3f83b3=_0x1ee9b2['NWnon'](nestedKeyValue,_0xf0e232['getInstance']()[_0x1ab0c4(0x10d)](),[_0x1ee9b2[_0x1ab0c4(0xf0)],_0x1ee9b2[_0x1ab0c4(0xee)],_0x1ee9b2[_0x1ab0c4(0x114)]])||constants[_0x1ab0c4(0xff)];if(!_0x6153c7||_0x1ee9b2[_0x1ab0c4(0xb8)](_0x6153c7,''))return _0x3f83b3;const _0x7e8d4e=_0x3f83b3[_0x1ab0c4(0xcd)]('/')?_0x3f83b3:_0x1ee9b2[_0x1ab0c4(0xd1)](_0x3f83b3,'/');return new URL(_0x6153c7,_0x7e8d4e)['toString']();}static[a60_0x15bb31(0x115)](_0x58fbae){const _0x3c8f9b=a60_0x15bb31,_0x305939={'YewcG':function(_0x59c0f0){return _0x59c0f0();},'EcEkR':function(_0x55e98c,_0x59e9f7,_0x3da16f){return _0x55e98c(_0x59e9f7,_0x3da16f);},'oYakQ':_0x3c8f9b(0x112),'tcygW':_0x3c8f9b(0xf9),'edySe':_0x3c8f9b(0x101),'KPJgS':_0x3c8f9b(0xad),'LNiJp':function(_0x5d679e,_0x19bfc0){return _0x5d679e===_0x19bfc0;},'yItbZ':function(_0x53931b,_0x3ab4a8){return _0x53931b+_0x3ab4a8;},'BYPgy':_0x3c8f9b(0xf1)},_0x4118e1=_0x305939[_0x3c8f9b(0xbd)](getBrowserstackCLI),_0x108f28=_0x305939[_0x3c8f9b(0xcc)](nestedKeyValue,_0x4118e1['getInstance']()['getConfig'](),[_0x305939['oYakQ'],_0x305939['tcygW'],_0x305939['edySe']]),_0x43a329=(_0x108f28?_0x108f28[_0x3c8f9b(0xdd)](/^https:/,_0x305939[_0x3c8f9b(0xae)]):null)||constants[_0x3c8f9b(0xca)];let _0x519e30;if(!_0x58fbae||_0x305939['LNiJp'](_0x58fbae,''))_0x519e30=_0x43a329;else{const _0x569ea2=_0x43a329[_0x3c8f9b(0xcd)]('/')?_0x43a329:_0x305939['yItbZ'](_0x43a329,'/');_0x519e30=new URL(_0x58fbae,_0x569ea2)[_0x3c8f9b(0xf4)]();}return!_0x519e30[_0x3c8f9b(0xcd)](_0x305939['BYPgy'])&&(_0x519e30+=_0x305939[_0x3c8f9b(0xdb)]),_0x519e30;}static[a60_0x15bb31(0xeb)](_0x51bc78){const _0x2f785e=a60_0x15bb31,_0x4871dd={'xCdFg':function(_0xf78b6b){return _0xf78b6b();},'giclr':function(_0x3f3e7f,_0x28a411,_0x298cca){return _0x3f3e7f(_0x28a411,_0x298cca);},'lCYYX':_0x2f785e(0x112),'SZzRU':_0x2f785e(0xf9),'hxvno':_0x2f785e(0x101),'MIcQT':_0x2f785e(0xad),'jjvra':function(_0x5dc4d1,_0x48bde5){return _0x5dc4d1===_0x48bde5;},'GuAwn':function(_0xfdc660,_0x36a35b){return _0xfdc660+_0x36a35b;},'ZneGC':_0x2f785e(0xde)},_0xe066f8=_0x4871dd[_0x2f785e(0xb3)](getBrowserstackCLI),_0xaafcd7=_0x4871dd[_0x2f785e(0x113)](nestedKeyValue,_0xe066f8[_0x2f785e(0xbb)]()[_0x2f785e(0x10d)](),[_0x4871dd[_0x2f785e(0xed)],_0x4871dd['SZzRU'],_0x4871dd[_0x2f785e(0x10f)]]),_0x7365f=(_0xaafcd7?_0xaafcd7[_0x2f785e(0xdd)](/^https:/,_0x4871dd[_0x2f785e(0xe1)]):null)||constants[_0x2f785e(0xe4)];let _0x5cd9f6;if(!_0x51bc78||_0x4871dd['jjvra'](_0x51bc78,''))_0x5cd9f6=_0x7365f;else{const _0x2046e5=_0x7365f['endsWith']('/')?_0x7365f:_0x4871dd[_0x2f785e(0xdf)](_0x7365f,'/');_0x5cd9f6=new URL(_0x51bc78,_0x2046e5)[_0x2f785e(0xf4)]();}return!_0x5cd9f6[_0x2f785e(0xcd)](_0x4871dd['ZneGC'])&&(_0x5cd9f6+=_0x4871dd[_0x2f785e(0x100)]),_0x5cd9f6;}}module['exports']=APIUtilityMethods;function a60_0x439f(_0x138774,_0x30ce81){const _0x80f439=a60_0x80f4();return a60_0x439f=function(_0x439fb8,_0x26572a){_0x439fb8=_0x439fb8-0xac;let _0x5d0977=_0x80f439[_0x439fb8];return _0x5d0977;},a60_0x439f(_0x138774,_0x30ce81);}function a60_0x80f4(){const _0xb54dab=['getInstance','getAutomateSessionNameAPIUrl','YewcG','7hetJPs','hXzNl','getAutoCaptureLogsAPIUrl','778792cZfEBc','yzmCM','toqmk','jryoJ','UIvOq','getAppAutomateSessionsListAPIUrl','fyBfW','gvRMD','kVzCX','PLAYWRIGHT_HUB_URL','aQwsu','EcEkR','endsWith','RzoQh','rqXGG','98865YMBJUr','MgWal','897936NvwMau','vTrvV','rqgkm','VlPaj','ZuitS','./sharedUtils','9708530QrKHlM','OXKOO','TFTnh','BYPgy','InhYp','replace','/puppeteer?caps=','GuAwn','getBStackAPIUrl','MIcQT','upload','zCCHc','PUPPETEER_HUB_URL','DYYxv','appAutomate','yLDYt','GsoDf','fWhHG','GbfSK','getPuppeteerHubUrl','UgxNi','lCYYX','QzmVq','srLeF','Qqqhc','/playwright?caps=','BROWSERSTACK_API_URL','cDCTp','toString','PCZOU','1SEavVx','ACtTy','APP_UPLOAD_URL','automate','1181754IHEyQP','1282554PraEMt','CCkpJ','qbuxI','getAppAutomateSessionNameAPIUrl','OBSERVABILITY_UPLOAD_URL','ZneGC','cdp','FMQnp','getAutomateSessionStatusAPIUrl','MvzSh','4hyncAQ','QjgAf','mWdqu','getEdsInstrumentationAPIUrl','edsInstrumentation','Ietyi','bbxuf','qUlVM','getConfig','observability','hxvno','../v2/browserstackCLI','thuCN','apis','giclr','LYyeX','getPlaywrightHubUrl','icuox','wss:','KPJgS','dfWKB','LmPgy','2470448KcnKZs','DqJxL','xCdFg','api','getAppAutomateSessionStatusAPIUrl','pleuB','KEZUC','gOcoX','znMWc','uoQaX'];a60_0x80f4=function(){return _0xb54dab;};return a60_0x80f4();}
1
+ const a60_0x291f2b=a60_0x52f8;function a60_0x52f8(_0x4e1a15,_0x33fa20){const _0x4e068e=a60_0x4e06();return a60_0x52f8=function(_0x52f802,_0x2ba4ab){_0x52f802=_0x52f802-0x9f;let _0x2936c3=_0x4e068e[_0x52f802];return _0x2936c3;},a60_0x52f8(_0x4e1a15,_0x33fa20);}function a60_0x4e06(){const _0x36bd9a=['apis','NxSSQ','JoIlj','PUPPETEER_HUB_URL','BWmlE','rGKrV','observability','axlak','kyTWq','qgCch','22604RnBEsr','duPCv','../v2/browserstackCLI','1216374iUUlJJ','KsUCU','AiWyx','7xtuMVo','cdp','XMvcw','5ntouxn','IKqGg','./sharedUtils','exports','yDzoE','UHzHb','GibQA','replace','4474550aJvKSV','getInstance','getPuppeteerHubUrl','xtaLX','VnSqS','uNoXG','getAutomateSessionStatusAPIUrl','HjOjw','toString','FPndl','automate','rYiKM','shAjq','/playwright?caps=','yGPmL','getConfig','AzbZD','kTyBa','767655RoxtIt','EDS_URL','KcvDj','getAppAutomateSessionsListAPIUrl','wss:','iWNYC','305AXPfvO','wOemw','upload','tyNIQ','cFHhr','getAutoCaptureLogsAPIUrl','OBSERVABILITY_UPLOAD_URL','huJZi','mDsVc','dvAKG','./constants','4232907SizHMj','3618112ONEuXc','endsWith','getBStackAPIUrl','BlHbo','getAutomateSessionNameAPIUrl','appAutomate','tkKyC','getAppAutomateSessionStatusAPIUrl','KTYuB','getAutomateSessionsListAPIUrl','QtxVs','PtsMJ','FlCwH','xPyWn','api','NkBvo','zrxRg','getEdsInstrumentationAPIUrl','VjzRW','chmDm','qXsGs','Hkvty','ntzWz','JJHvO','cVeHM','drGcP','IYuiv','RiyGd','16270suWqGg','BROWSERSTACK_API_URL','edsInstrumentation','MxrBf','MYYPI','PgZtk','ZIRox','MOTsy','nMHfK','aqbOu','/puppeteer?caps='];a60_0x4e06=function(){return _0x36bd9a;};return a60_0x4e06();}(function(_0x122341,_0x9937e0){const _0x270bff=a60_0x52f8,_0x20f965=_0x122341();while(!![]){try{const _0x1f309a=-parseInt(_0x270bff(0xf6))/0x1*(parseInt(_0x270bff(0xd8))/0x2)+parseInt(_0x270bff(0xaa))/0x3+-parseInt(_0x270bff(0xed))/0x4*(-parseInt(_0x270bff(0xb0))/0x5)+-parseInt(_0x270bff(0xf0))/0x6*(-parseInt(_0x270bff(0xf3))/0x7)+-parseInt(_0x270bff(0xbc))/0x8+-parseInt(_0x270bff(0xbb))/0x9+parseInt(_0x270bff(0xfe))/0xa;if(_0x1f309a===_0x9937e0)break;else _0x20f965['push'](_0x20f965['shift']());}catch(_0x95825c){_0x20f965['push'](_0x20f965['shift']());}}}(a60_0x4e06,0x4631e));const constants=require(a60_0x291f2b(0xba)),{nestedKeyValue}=require(a60_0x291f2b(0xf8)),getBrowserstackCLI=()=>{const _0x1b622d=a60_0x291f2b,_0x4e2999={'dvAKG':function(_0xc06c91,_0x485df7){return _0xc06c91(_0x485df7);},'yGPmL':_0x1b622d(0xef)};return _0x4e2999[_0x1b622d(0xb9)](require,_0x4e2999[_0x1b622d(0xa6)]);};class APIUtilityMethods{static[a60_0x291f2b(0xbe)](_0x5e8978){const _0xef1034=a60_0x291f2b,_0x5e0d00={'yDzoE':function(_0x28134b){return _0x28134b();},'IXXXJ':function(_0xc1ec29,_0x2a7151,_0x204fb8){return _0xc1ec29(_0x2a7151,_0x204fb8);},'KCLQP':_0xef1034(0xe3),'qcBhB':_0xef1034(0xa2),'qgCch':_0xef1034(0xca),'hTSZz':function(_0x53fccb,_0xeeb91){return _0x53fccb===_0xeeb91;},'kyTWq':function(_0xf8ac14,_0x25d7b0){return _0xf8ac14+_0x25d7b0;}},_0x2af98f=_0x5e0d00[_0xef1034(0xfa)](getBrowserstackCLI),_0x13c048=_0x5e0d00['IXXXJ'](nestedKeyValue,_0x2af98f[_0xef1034(0xff)]()[_0xef1034(0xa7)](),[_0x5e0d00['KCLQP'],_0x5e0d00['qcBhB'],_0x5e0d00[_0xef1034(0xec)]])||constants[_0xef1034(0xd9)];if(!_0x5e8978||_0x5e0d00['hTSZz'](_0x5e8978,''))return _0x13c048;const _0x5a9299=_0x13c048['endsWith']('/')?_0x13c048:_0x5e0d00[_0xef1034(0xeb)](_0x13c048,'/');return new URL(_0x5e8978,_0x5a9299)[_0xef1034(0xa0)]();}static[a60_0x291f2b(0xcd)](_0x5414bd){const _0x36f1c5=a60_0x291f2b,_0x2b4cc0={'xPyWn':function(_0x13afd9){return _0x13afd9();},'SBjlK':function(_0x2a2e93,_0x5b9aa6,_0x2b2aa2){return _0x2a2e93(_0x5b9aa6,_0x2b2aa2);},'qXsGs':_0x36f1c5(0xe3),'cFHhr':_0x36f1c5(0xda),'QtxVs':'api','aCRDn':function(_0x56bbbe,_0x4ddd6f){return _0x56bbbe===_0x4ddd6f;},'uNoXG':function(_0x13170a,_0x556d62){return _0x13170a+_0x556d62;}},_0x9e98ef=_0x2b4cc0[_0x36f1c5(0xc9)](getBrowserstackCLI),_0x4df6e7=_0x2b4cc0['SBjlK'](nestedKeyValue,_0x9e98ef[_0x36f1c5(0xff)]()[_0x36f1c5(0xa7)](),[_0x2b4cc0[_0x36f1c5(0xd0)],_0x2b4cc0[_0x36f1c5(0xb4)],_0x2b4cc0[_0x36f1c5(0xc6)]])||constants[_0x36f1c5(0xab)];if(!_0x5414bd||_0x2b4cc0['aCRDn'](_0x5414bd,''))return _0x4df6e7;const _0x4ca4cb=_0x4df6e7[_0x36f1c5(0xbd)]('/')?_0x4df6e7:_0x2b4cc0[_0x36f1c5(0x103)](_0x4df6e7,'/');return new URL(_0x5414bd,_0x4ca4cb)[_0x36f1c5(0xa0)]();}static[a60_0x291f2b(0x104)](_0x4eeb3c){const _0x278b8a=a60_0x291f2b,_0x17da3e={'xNRGV':function(_0x40e646){return _0x40e646();},'DBLtv':function(_0x3502e3,_0x41c179,_0xb3e796){return _0x3502e3(_0x41c179,_0xb3e796);},'wOemw':_0x278b8a(0xe3),'kTyBa':_0x278b8a(0xa2),'MYYPI':'api','aajJl':function(_0x4f0a3b,_0x58a1b3){return _0x4f0a3b===_0x58a1b3;},'fGRUv':function(_0x9ed0ce,_0x5e1972){return _0x9ed0ce+_0x5e1972;}},_0x39d30c=_0x17da3e['xNRGV'](getBrowserstackCLI),_0x433213=_0x17da3e['DBLtv'](nestedKeyValue,_0x39d30c[_0x278b8a(0xff)]()[_0x278b8a(0xa7)](),[_0x17da3e[_0x278b8a(0xb1)],_0x17da3e[_0x278b8a(0xa9)],_0x17da3e[_0x278b8a(0xdc)]])||constants['BROWSERSTACK_API_URL'];if(!_0x4eeb3c||_0x17da3e['aajJl'](_0x4eeb3c,''))return _0x433213;const _0x3765e1=_0x433213[_0x278b8a(0xbd)]('/')?_0x433213:_0x17da3e['fGRUv'](_0x433213,'/');return new URL(_0x4eeb3c,_0x3765e1)[_0x278b8a(0xa0)]();}static[a60_0x291f2b(0xc3)](_0x495958){const _0x22e545=a60_0x291f2b,_0x40c9b0={'rYiKM':function(_0x3e5a77){return _0x3e5a77();},'axlak':function(_0x28822b,_0x243e57,_0x145b79){return _0x28822b(_0x243e57,_0x145b79);},'AiWyx':_0x22e545(0xe3),'tyNIQ':_0x22e545(0xc1),'aqbOu':_0x22e545(0xca),'cVeHM':function(_0x5bf711,_0x5ead8a){return _0x5bf711===_0x5ead8a;},'iWNYC':function(_0x1f483e,_0x1bb0af){return _0x1f483e+_0x1bb0af;}},_0x4a5402=_0x40c9b0[_0x22e545(0xa3)](getBrowserstackCLI),_0x166079=_0x40c9b0[_0x22e545(0xea)](nestedKeyValue,_0x4a5402[_0x22e545(0xff)]()[_0x22e545(0xa7)](),[_0x40c9b0[_0x22e545(0xf2)],_0x40c9b0[_0x22e545(0xb3)],_0x40c9b0[_0x22e545(0xe1)]])||constants['BROWSERSTACK_API_URL'];if(!_0x495958||_0x40c9b0[_0x22e545(0xd4)](_0x495958,''))return _0x166079;const _0x27b60c=_0x166079[_0x22e545(0xbd)]('/')?_0x166079:_0x40c9b0[_0x22e545(0xaf)](_0x166079,'/');return new URL(_0x495958,_0x27b60c)['toString']();}static[a60_0x291f2b(0xc0)](_0x2b5b04){const _0x1e72af=a60_0x291f2b,_0xdac0ff={'rGKrV':function(_0x12da0c){return _0x12da0c();},'RiyGd':function(_0x530b0f,_0x372898,_0x400d40){return _0x530b0f(_0x372898,_0x400d40);},'kNatD':_0x1e72af(0xe3),'huJZi':_0x1e72af(0xa2),'ZpXSI':_0x1e72af(0xca),'BlHbo':function(_0x127ea3,_0x5c3d31){return _0x127ea3===_0x5c3d31;},'KTYuB':function(_0x2fd3b7,_0x1f9834){return _0x2fd3b7+_0x1f9834;}},_0x276eda=_0xdac0ff[_0x1e72af(0xe8)](getBrowserstackCLI),_0x4393f6=_0xdac0ff[_0x1e72af(0xd7)](nestedKeyValue,_0x276eda[_0x1e72af(0xff)]()[_0x1e72af(0xa7)](),[_0xdac0ff['kNatD'],_0xdac0ff[_0x1e72af(0xb7)],_0xdac0ff['ZpXSI']])||constants['BROWSERSTACK_API_URL'];if(!_0x2b5b04||_0xdac0ff[_0x1e72af(0xbf)](_0x2b5b04,''))return _0x4393f6;const _0x1b2d8a=_0x4393f6[_0x1e72af(0xbd)]('/')?_0x4393f6:_0xdac0ff[_0x1e72af(0xc4)](_0x4393f6,'/');return new URL(_0x2b5b04,_0x1b2d8a)[_0x1e72af(0xa0)]();}static['getAppAutomateSessionNameAPIUrl'](_0x7e98a9){const _0x2fa699=a60_0x291f2b,_0x1d73b8={'pTnsU':function(_0x50b1de){return _0x50b1de();},'JCvub':function(_0x66443,_0x4949ef,_0x2fd8ec){return _0x66443(_0x4949ef,_0x2fd8ec);},'ntzWz':_0x2fa699(0xe3),'HjOjw':_0x2fa699(0xc1),'GibQA':_0x2fa699(0xca),'ASGJu':function(_0x125dbe,_0x5ad508){return _0x125dbe===_0x5ad508;},'tVbJK':function(_0x4fe0df,_0x204cbe){return _0x4fe0df+_0x204cbe;}},_0x12d494=_0x1d73b8['pTnsU'](getBrowserstackCLI),_0x1bf7e5=_0x1d73b8['JCvub'](nestedKeyValue,_0x12d494['getInstance']()[_0x2fa699(0xa7)](),[_0x1d73b8[_0x2fa699(0xd2)],_0x1d73b8[_0x2fa699(0x9f)],_0x1d73b8[_0x2fa699(0xfc)]])||constants['BROWSERSTACK_API_URL'];if(!_0x7e98a9||_0x1d73b8['ASGJu'](_0x7e98a9,''))return _0x1bf7e5;const _0x44ad75=_0x1bf7e5['endsWith']('/')?_0x1bf7e5:_0x1d73b8['tVbJK'](_0x1bf7e5,'/');return new URL(_0x7e98a9,_0x44ad75)[_0x2fa699(0xa0)]();}static[a60_0x291f2b(0xc5)](_0x22e465){const _0x27feca=a60_0x291f2b,_0xa9c641={'IKqGg':function(_0x3c022b){return _0x3c022b();},'IJLZv':function(_0x2ce2b2,_0x589018,_0x50c309){return _0x2ce2b2(_0x589018,_0x50c309);},'shAjq':_0x27feca(0xe3),'IYuiv':_0x27feca(0xa2),'IOBzJ':'api','tkKyC':function(_0x4373b4,_0x21fd4a){return _0x4373b4===_0x21fd4a;},'mDsVc':function(_0x5de0bb,_0x1fcffa){return _0x5de0bb+_0x1fcffa;}},_0x5667db=_0xa9c641[_0x27feca(0xf7)](getBrowserstackCLI),_0x3ad29c=_0xa9c641['IJLZv'](nestedKeyValue,_0x5667db['getInstance']()[_0x27feca(0xa7)](),[_0xa9c641[_0x27feca(0xa4)],_0xa9c641[_0x27feca(0xd6)],_0xa9c641['IOBzJ']])||constants['BROWSERSTACK_API_URL'];if(!_0x22e465||_0xa9c641[_0x27feca(0xc2)](_0x22e465,''))return _0x3ad29c;const _0x5bd536=_0x3ad29c[_0x27feca(0xbd)]('/')?_0x3ad29c:_0xa9c641[_0x27feca(0xb8)](_0x3ad29c,'/');return new URL(_0x22e465,_0x5bd536)['toString']()['replace'](/^https?:\/\//,'');}static[a60_0x291f2b(0xad)](_0x4dc0f2){const _0x21f2e0=a60_0x291f2b,_0x158979={'uHExx':function(_0xd66626){return _0xd66626();},'UvNMR':function(_0x546dfb,_0x2da673,_0x11ad5e){return _0x546dfb(_0x2da673,_0x11ad5e);},'FPndl':_0x21f2e0(0xe3),'gjhcQ':_0x21f2e0(0xc1),'VjzRW':_0x21f2e0(0xca),'JVAmD':function(_0x399008,_0x1778e0){return _0x399008===_0x1778e0;},'SKZwD':function(_0x2dff60,_0x53ab4f){return _0x2dff60+_0x53ab4f;}},_0x552cc7=_0x158979['uHExx'](getBrowserstackCLI),_0x145adf=_0x158979['UvNMR'](nestedKeyValue,_0x552cc7[_0x21f2e0(0xff)]()['getConfig'](),[_0x158979[_0x21f2e0(0xa1)],_0x158979['gjhcQ'],_0x158979[_0x21f2e0(0xce)]])||constants['APP_UPLOAD_URL'];if(!_0x4dc0f2||_0x158979['JVAmD'](_0x4dc0f2,''))return _0x145adf;const _0x2b3451=_0x145adf[_0x21f2e0(0xbd)]('/')?_0x145adf:_0x158979['SKZwD'](_0x145adf,'/');return new URL(_0x4dc0f2,_0x2b3451)[_0x21f2e0(0xa0)]()['replace'](/^https?:\/\//,'');}static[a60_0x291f2b(0xb5)](_0xfa8934){const _0x4bcc6d=a60_0x291f2b,_0x5130b1={'AzbZD':function(_0x23588a){return _0x23588a();},'JJHvO':function(_0x33e659,_0x190e90,_0x101ce7){return _0x33e659(_0x190e90,_0x101ce7);},'xtaLX':'apis','MxrBf':_0x4bcc6d(0xe9),'XMvcw':_0x4bcc6d(0xb2),'KsUCU':function(_0x1c0f45,_0x354d4e){return _0x1c0f45===_0x354d4e;},'VnSqS':function(_0x2467a6,_0x520c6a){return _0x2467a6+_0x520c6a;}},_0x34af6b=_0x5130b1[_0x4bcc6d(0xa8)](getBrowserstackCLI),_0x5ef639=_0x5130b1[_0x4bcc6d(0xd3)](nestedKeyValue,_0x34af6b[_0x4bcc6d(0xff)]()[_0x4bcc6d(0xa7)](),[_0x5130b1[_0x4bcc6d(0x101)],_0x5130b1[_0x4bcc6d(0xdb)],_0x5130b1[_0x4bcc6d(0xf5)]])||constants[_0x4bcc6d(0xb6)];if(!_0xfa8934||_0x5130b1[_0x4bcc6d(0xf1)](_0xfa8934,''))return _0x5ef639;const _0x19cdbd=_0x5ef639[_0x4bcc6d(0xbd)]('/')?_0x5ef639:_0x5130b1[_0x4bcc6d(0x102)](_0x5ef639,'/');return new URL(_0xfa8934,_0x19cdbd)[_0x4bcc6d(0xa0)]();}static['getPlaywrightHubUrl'](_0x155366){const _0x5f517c=a60_0x291f2b,_0x4d8917={'duPCv':function(_0x6eef9c){return _0x6eef9c();},'NkBvo':function(_0x30ed3d,_0x1ad84c,_0x4d5529){return _0x30ed3d(_0x1ad84c,_0x4d5529);},'Hkvty':_0x5f517c(0xe3),'nMHfK':_0x5f517c(0xa2),'JoIlj':_0x5f517c(0xf4),'drGcP':'wss:','zrxRg':function(_0x2b37d4,_0x2e060c){return _0x2b37d4===_0x2e060c;},'PtsMJ':function(_0x170a30,_0x2e1254){return _0x170a30+_0x2e1254;},'FlCwH':_0x5f517c(0xa5)},_0x39c683=_0x4d8917[_0x5f517c(0xee)](getBrowserstackCLI),_0x149259=_0x4d8917[_0x5f517c(0xcb)](nestedKeyValue,_0x39c683[_0x5f517c(0xff)]()[_0x5f517c(0xa7)](),[_0x4d8917[_0x5f517c(0xd1)],_0x4d8917[_0x5f517c(0xe0)],_0x4d8917[_0x5f517c(0xe5)]]),_0x3ee4c8=(_0x149259?_0x149259[_0x5f517c(0xfd)](/^https:/,_0x4d8917[_0x5f517c(0xd5)]):null)||constants['PLAYWRIGHT_HUB_URL'];let _0x36086e;if(!_0x155366||_0x4d8917[_0x5f517c(0xcc)](_0x155366,''))_0x36086e=_0x3ee4c8;else{const _0x18ed9c=_0x3ee4c8[_0x5f517c(0xbd)]('/')?_0x3ee4c8:_0x4d8917[_0x5f517c(0xc7)](_0x3ee4c8,'/');_0x36086e=new URL(_0x155366,_0x18ed9c)[_0x5f517c(0xa0)]();}return!_0x36086e['endsWith'](_0x4d8917[_0x5f517c(0xc8)])&&(_0x36086e+=_0x4d8917[_0x5f517c(0xc8)]),_0x36086e;}static[a60_0x291f2b(0x100)](_0x222d94){const _0x3a5cbe=a60_0x291f2b,_0xa6d95c={'mTApv':function(_0x55e221){return _0x55e221();},'NxSSQ':function(_0xd7dc64,_0x36ed2c,_0x51e624){return _0xd7dc64(_0x36ed2c,_0x51e624);},'MOTsy':_0x3a5cbe(0xe3),'ZIRox':_0x3a5cbe(0xa2),'chmDm':_0x3a5cbe(0xf4),'BWmlE':_0x3a5cbe(0xae),'UHzHb':function(_0x23fa86,_0x3c279b){return _0x23fa86===_0x3c279b;},'KcvDj':function(_0x40fb51,_0x2081d0){return _0x40fb51+_0x2081d0;},'PgZtk':_0x3a5cbe(0xe2)},_0xd117b2=_0xa6d95c['mTApv'](getBrowserstackCLI),_0x37f5ba=_0xa6d95c[_0x3a5cbe(0xe4)](nestedKeyValue,_0xd117b2[_0x3a5cbe(0xff)]()[_0x3a5cbe(0xa7)](),[_0xa6d95c[_0x3a5cbe(0xdf)],_0xa6d95c[_0x3a5cbe(0xde)],_0xa6d95c[_0x3a5cbe(0xcf)]]),_0x2850af=(_0x37f5ba?_0x37f5ba[_0x3a5cbe(0xfd)](/^https:/,_0xa6d95c[_0x3a5cbe(0xe7)]):null)||constants[_0x3a5cbe(0xe6)];let _0x163970;if(!_0x222d94||_0xa6d95c[_0x3a5cbe(0xfb)](_0x222d94,''))_0x163970=_0x2850af;else{const _0x23ff5e=_0x2850af[_0x3a5cbe(0xbd)]('/')?_0x2850af:_0xa6d95c[_0x3a5cbe(0xac)](_0x2850af,'/');_0x163970=new URL(_0x222d94,_0x23ff5e)[_0x3a5cbe(0xa0)]();}return!_0x163970['endsWith'](_0xa6d95c['PgZtk'])&&(_0x163970+=_0xa6d95c[_0x3a5cbe(0xdd)]),_0x163970;}}module[a60_0x291f2b(0xf9)]=APIUtilityMethods;
@@ -1 +1 @@
1
- function a61_0x3595(_0x211657,_0x43991a){const _0x4d183e=a61_0x4d18();return a61_0x3595=function(_0x3595f4,_0x1742f8){_0x3595f4=_0x3595f4-0x7f;let _0x53f9fc=_0x4d183e[_0x3595f4];return _0x53f9fc;},a61_0x3595(_0x211657,_0x43991a);}const a61_0x7cef52=a61_0x3595;(function(_0x7ee6f4,_0x2bbcf3){const _0x4461e7=a61_0x3595,_0xc6a978=_0x7ee6f4();while(!![]){try{const _0x464d3c=parseInt(_0x4461e7(0xb3))/0x1*(-parseInt(_0x4461e7(0xae))/0x2)+-parseInt(_0x4461e7(0xcd))/0x3+parseInt(_0x4461e7(0xdc))/0x4+parseInt(_0x4461e7(0xab))/0x5+parseInt(_0x4461e7(0xda))/0x6*(parseInt(_0x4461e7(0xbf))/0x7)+-parseInt(_0x4461e7(0xc1))/0x8*(-parseInt(_0x4461e7(0xd5))/0x9)+parseInt(_0x4461e7(0xd3))/0xa*(-parseInt(_0x4461e7(0xa1))/0xb);if(_0x464d3c===_0x2bbcf3)break;else _0xc6a978['push'](_0xc6a978['shift']());}catch(_0xcdce7b){_0xc6a978['push'](_0xc6a978['shift']());}}}(a61_0x4d18,0x9ca48));const logger=require('../../helpers/logger')[a61_0x7cef52(0x8c)],BrowserstackCLI=require(a61_0x7cef52(0xc8)),GrpcClient=require(a61_0x7cef52(0xcc)),constants=require(a61_0x7cef52(0xc5));class ClientTroubleShootingService{static [a61_0x7cef52(0x8e)]=null;static [a61_0x7cef52(0x97)]=new Set();static async['getErrorDetails'](_0x3956a4){const _0x24b218=a61_0x7cef52,_0x1e721f={};_0x1e721f['bOVwl']=function(_0x10324f,_0x291b8b){return _0x10324f!==_0x291b8b;};const _0x5d6df8=_0x1e721f;try{if(BrowserstackCLI[_0x24b218(0xb6)]()[_0x24b218(0xd6)]()){const _0x189445=await GrpcClient[_0x24b218(0xb6)]()[_0x24b218(0xd9)](_0x3956a4);if(_0x5d6df8[_0x24b218(0xa3)](_0x189445,null)&&_0x189445['getSuccess']())return{'errorCode':_0x189445['getErrorCode'](),'errorMessage':_0x189445['getErrorMessage']()};return{};}return{};}catch(_0x2f3058){return this['logError'](_0x24b218(0x96)+_0x3956a4+':',_0x2f3058),{};}}static async[a61_0x7cef52(0xdf)](){const _0x1d9d69=a61_0x7cef52,_0x24c40f={};_0x24c40f['tZHua']=function(_0x794106,_0x9cabaf){return _0x794106!==_0x9cabaf;},_0x24c40f[_0x1d9d69(0x92)]=_0x1d9d69(0xca),_0x24c40f[_0x1d9d69(0x8d)]='Error\x20in\x20getting\x20aggregated\x20error\x20codes:';const _0x235348=_0x24c40f;try{if(BrowserstackCLI[_0x1d9d69(0xb6)]()[_0x1d9d69(0xd6)]()){const _0x12116f=await GrpcClient['getInstance']()['getAggregatedClientTroubleshootingErrors']();if(_0x235348[_0x1d9d69(0xc2)](_0x12116f,null)&&_0x12116f[_0x1d9d69(0xa4)]()){const _0x20469f=Buffer[_0x1d9d69(0xaa)](_0x12116f[_0x1d9d69(0xd0)](),_0x235348[_0x1d9d69(0x92)])[_0x1d9d69(0x94)](),_0x4a1154=_0x20469f?JSON[_0x1d9d69(0x8f)](_0x20469f):[],_0x31bbae=_0x12116f[_0x1d9d69(0x7f)](),_0x4d9eee=_0x12116f['getFinalErrorMessage'](),_0x5589a8=Buffer[_0x1d9d69(0xaa)](_0x12116f[_0x1d9d69(0xb4)](),_0x235348[_0x1d9d69(0x92)])[_0x1d9d69(0x94)](),_0x258b65=_0x5589a8?JSON[_0x1d9d69(0x8f)](_0x5589a8):[],_0x68ec33={};return _0x68ec33[_0x1d9d69(0xc7)]=_0x4a1154,_0x68ec33[_0x1d9d69(0x95)]=_0x31bbae,_0x68ec33[_0x1d9d69(0x84)]=_0x4d9eee,_0x68ec33[_0x1d9d69(0x82)]=_0x258b65,_0x68ec33;}const _0x4aa116={};return _0x4aa116[_0x1d9d69(0xc7)]=[],_0x4aa116[_0x1d9d69(0x95)]='',_0x4aa116['finalErrorMessage']='',_0x4aa116['errorCodesOccurredInCLI']=[],_0x4aa116;}const _0x2047d0={};return _0x2047d0['errorCodes']=[],_0x2047d0['documentationLink']='',_0x2047d0['finalErrorMessage']='',_0x2047d0[_0x1d9d69(0x82)]=[],_0x2047d0;}catch(_0x3ebf38){this[_0x1d9d69(0x81)](_0x235348[_0x1d9d69(0x8d)],_0x3ebf38);const _0x26eb49={};return _0x26eb49[_0x1d9d69(0xc7)]=[],_0x26eb49[_0x1d9d69(0x95)]='',_0x26eb49[_0x1d9d69(0x84)]='',_0x26eb49[_0x1d9d69(0x82)]=[],_0x26eb49;}}static[a61_0x7cef52(0x80)](_0x7e5206,_0x4e9351){const _0x2be3ee=a61_0x7cef52;logger[_0x2be3ee(0x9f)](_0x7e5206+':\x20'+_0x4e9351);}static[a61_0x7cef52(0x8b)](_0xb2357c){const _0x300784=a61_0x7cef52,_0x43512c={};_0x43512c['xgBOq']=function(_0x59b603,_0x7dbfdd){return _0x59b603!=_0x7dbfdd;},_0x43512c[_0x300784(0x99)]=function(_0x3ba900,_0x14297e){return _0x3ba900!=_0x14297e;},_0x43512c[_0x300784(0xbb)]=function(_0x368b88,_0x52d285){return _0x368b88>_0x52d285;},_0x43512c[_0x300784(0xc9)]=function(_0x2d6174,_0x3147c4){return _0x2d6174!=_0x3147c4;};const _0x3947a4=_0x43512c,_0x52903c=[];if(_0x3947a4['xgBOq'](_0xb2357c,null)&&_0x3947a4['OAyqm'](_0xb2357c['errorCodesOccurredInCLI'],null)&&_0x3947a4[_0x300784(0xbb)](_0xb2357c['errorCodesOccurredInCLI'][_0x300784(0x9d)],0x0))for(const _0x5a5679 of _0xb2357c[_0x300784(0x82)]){_0x3947a4[_0x300784(0xc9)](_0x5a5679[_0x300784(0xd4)],null)&&_0x3947a4['aczPF'](_0x5a5679[_0x300784(0x89)],null)&&(_0x52903c[_0x300784(0xa9)](_0x5a5679['errorCode']),this[_0x300784(0x80)](_0x5a5679['errorCode'],_0x5a5679['errorMessage']));}return _0x52903c;}static[a61_0x7cef52(0x9a)](){const _0x458729=a61_0x7cef52;return this[_0x458729(0x8e)];}static[a61_0x7cef52(0x81)](_0x26cc49,_0x4bcaa4){const _0x4b7315=a61_0x7cef52,_0x2033a5={};_0x2033a5[_0x4b7315(0xdd)]=function(_0x367779,_0x14e047){return _0x367779===_0x14e047;},_0x2033a5[_0x4b7315(0xa0)]=_0x4b7315(0x87);const _0x569573=_0x2033a5;if(_0x569573[_0x4b7315(0xdd)](typeof _0x4bcaa4,_0x569573[_0x4b7315(0xa0)]))try{logger[_0x4b7315(0xb9)](_0x4b7315(0xad)+_0x26cc49+'\x20'+JSON['stringify'](_0x4bcaa4));}catch(_0x1862d3){logger[_0x4b7315(0xb9)](_0x4b7315(0xad)+_0x26cc49+'\x20'+_0x4bcaa4);}else logger[_0x4b7315(0xb9)](_0x4b7315(0xad)+_0x26cc49+'\x20'+_0x4bcaa4);}static async[a61_0x7cef52(0xd2)](_0x9a930d){const _0x26616f=a61_0x7cef52,_0x210842={};_0x210842[_0x26616f(0xd7)]=_0x26616f(0xc4),_0x210842[_0x26616f(0xb0)]=function(_0x62861f,_0x2313be){return _0x62861f===_0x2313be;},_0x210842['IfHTs']=_0x26616f(0xb1),_0x210842[_0x26616f(0xd1)]=_0x26616f(0x85);const _0x2c08af=_0x210842,_0x3dbc49=await this[_0x26616f(0xbe)](_0x2c08af['oMUDj']);if(!_0x3dbc49||_0x2c08af['gFHbs'](Object[_0x26616f(0xb2)](_0x3dbc49)[_0x26616f(0x9d)],0x0)){this[_0x26616f(0x81)](_0x2c08af[_0x26616f(0x9c)],_0x3dbc49);return;}this[_0x26616f(0x80)](_0x3dbc49[_0x26616f(0xd4)],_0x3dbc49[_0x26616f(0x89)][_0x26616f(0xe3)](_0x2c08af['BkTky'],_0x9a930d));}static async[a61_0x7cef52(0xba)](){const _0x3bed9d=a61_0x7cef52,_0x186030={};_0x186030['stwYr']='Session\x20Linking\x20Issue',_0x186030[_0x3bed9d(0x83)]=function(_0x4e200f,_0x401a9c){return _0x4e200f===_0x401a9c;},_0x186030[_0x3bed9d(0xc6)]='Session\x20Linking\x20Issue\x20details\x20not\x20found';const _0x26ca77=_0x186030,_0x461c4c=await this['getErrorDetails'](_0x26ca77[_0x3bed9d(0xce)]);if(!_0x461c4c||_0x26ca77[_0x3bed9d(0x83)](Object[_0x3bed9d(0xb2)](_0x461c4c)[_0x3bed9d(0x9d)],0x0)){this['logError'](_0x26ca77['WThew'],_0x461c4c);return;}this['logSituation'](_0x461c4c[_0x3bed9d(0xd4)],_0x461c4c['errorMessage']);}static async[a61_0x7cef52(0x90)](){const _0x8d9e09=a61_0x7cef52,_0x244102={};_0x244102[_0x8d9e09(0xc0)]=_0x8d9e09(0xa6),_0x244102[_0x8d9e09(0xc3)]=function(_0x23713b,_0x3ce20e){return _0x23713b===_0x3ce20e;},_0x244102['lrbhl']='Connectivity\x20Issue\x20details\x20not\x20found';const _0x33705d=_0x244102,_0x5f0c41=await this['getErrorDetails'](_0x33705d[_0x8d9e09(0xc0)]);if(!_0x5f0c41||_0x33705d[_0x8d9e09(0xc3)](Object[_0x8d9e09(0xb2)](_0x5f0c41)[_0x8d9e09(0x9d)],0x0)){this[_0x8d9e09(0x81)](_0x33705d[_0x8d9e09(0xa2)],_0x5f0c41);return;}this[_0x8d9e09(0x80)](_0x5f0c41['errorCode'],_0x5f0c41[_0x8d9e09(0x89)]);}static async[a61_0x7cef52(0xbd)](){const _0x3ceae2=a61_0x7cef52,_0x1eda9b={};_0x1eda9b['TElwC']=_0x3ceae2(0x93),_0x1eda9b[_0x3ceae2(0xcb)]=function(_0x4547a4,_0x4d45d8){return _0x4547a4===_0x4d45d8;},_0x1eda9b[_0x3ceae2(0xa5)]=_0x3ceae2(0xe1);const _0x57c2f6=_0x1eda9b,_0x32bd0b=await this[_0x3ceae2(0xbe)](_0x57c2f6[_0x3ceae2(0xbc)]);if(!_0x32bd0b||_0x57c2f6[_0x3ceae2(0xcb)](Object['keys'](_0x32bd0b)[_0x3ceae2(0x9d)],0x0)){this['logError'](_0x57c2f6[_0x3ceae2(0xa5)],_0x32bd0b);return;}this[_0x3ceae2(0x80)](_0x32bd0b['errorCode'],_0x32bd0b[_0x3ceae2(0x89)]);}static['reportDotBrowserStackFolderNotAccessibleIssue'](){const _0x4b201a=a61_0x7cef52,_0x52ca22={};_0x52ca22['jHvek']=_0x4b201a(0xac),_0x52ca22[_0x4b201a(0xb5)]=function(_0x4974c2,_0x4f5fc5){return _0x4974c2===_0x4f5fc5;},_0x52ca22['pGmRA']=_0x4b201a(0x9b);const _0x33ae63=_0x52ca22,_0x34e9a6=constants[_0x4b201a(0xe2)][_0x33ae63[_0x4b201a(0x88)]];if(!_0x34e9a6||_0x33ae63[_0x4b201a(0xb5)](Object['keys'](_0x34e9a6)[_0x4b201a(0x9d)],0x0)){this[_0x4b201a(0x81)](_0x33ae63[_0x4b201a(0x91)],_0x34e9a6);return;}this[_0x4b201a(0x97)][_0x4b201a(0x9e)](_0x34e9a6[0x0]),this['logSituation'](_0x34e9a6[0x0],_0x34e9a6[0x1]);}static async['reportConflictingEnvVarIssue'](_0x3ba052){const _0x3dae6a=a61_0x7cef52,_0x2c00bf={};_0x2c00bf['kxgIZ']='conflicting\x20env\x20var\x20detected',_0x2c00bf[_0x3dae6a(0xd8)]=function(_0x38516f,_0x3084c5){return _0x38516f===_0x3084c5;},_0x2c00bf['YKpSs']=_0x3dae6a(0xb7),_0x2c00bf[_0x3dae6a(0xe0)]=_0x3dae6a(0xde);const _0x2c7ba9=_0x2c00bf,_0x468e56=await this['getErrorDetails'](_0x2c7ba9['kxgIZ']);if(!_0x468e56||_0x2c7ba9[_0x3dae6a(0xd8)](Object['keys'](_0x468e56)[_0x3dae6a(0x9d)],0x0)){this[_0x3dae6a(0x81)](_0x2c7ba9['YKpSs'],_0x468e56);return;}const _0x380e4f=_0x468e56[_0x3dae6a(0x89)][_0x3dae6a(0xe3)](_0x2c7ba9['QhiAw'],_0x3ba052);this[_0x3dae6a(0x80)](_0x468e56[_0x3dae6a(0xd4)],_0x380e4f);}static async[a61_0x7cef52(0x98)](){const _0x17aa23=a61_0x7cef52,_0x51b287={};_0x51b287[_0x17aa23(0xdb)]=function(_0x481515,_0x26850a){return _0x481515>_0x26850a;},_0x51b287[_0x17aa23(0xcf)]=function(_0x1c18b3,_0xb40dc4){return _0x1c18b3>_0xb40dc4;},_0x51b287[_0x17aa23(0xa8)]=_0x17aa23(0xaf),_0x51b287[_0x17aa23(0xa7)]=_0x17aa23(0x86);const _0x1eb0c5=_0x51b287,_0x580f9d=await this[_0x17aa23(0xdf)](),_0x237855=this[_0x17aa23(0x8b)](_0x580f9d),_0x4c87e8=Array[_0x17aa23(0x8a)](_0x580f9d[_0x17aa23(0xc7)])?_0x580f9d[_0x17aa23(0xc7)]:[],_0x44c5b0=_0x1eb0c5[_0x17aa23(0xdb)](this[_0x17aa23(0x97)]['size'],0x0)?Array[_0x17aa23(0xaa)](this[_0x17aa23(0x97)]):[],_0x3c6a6f=new Set([..._0x4c87e8,..._0x237855,..._0x44c5b0]),_0x154ffd=Array[_0x17aa23(0xaa)](_0x3c6a6f);if(_0x1eb0c5[_0x17aa23(0xcf)](_0x154ffd[_0x17aa23(0x9d)],0x0)){const _0x39b0e8=_0x580f9d[_0x17aa23(0x84)][_0x17aa23(0xe3)](_0x1eb0c5[_0x17aa23(0xa8)],_0x154ffd[_0x17aa23(0xb8)](',\x20'))[_0x17aa23(0xe3)](_0x1eb0c5[_0x17aa23(0xa7)],_0x580f9d[_0x17aa23(0x95)]);logger[_0x17aa23(0x9f)](_0x39b0e8),this[_0x17aa23(0x8e)]=_0x154ffd;}}}module['exports']=ClientTroubleShootingService;function a61_0x4d18(){const _0x418878=['reportConnectivityIssue','pGmRA','qeqNR','ssl\x20cert\x20issue','toString','documentationLink','Error\x20in\x20getting\x20error\x20details\x20for\x20','errorCodesOccurredWhenCLINotRunning','reportFinalDetectionState','OAyqm','getCachedErrorCodes','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','IfHTs','length','add','warn','ulkOd','165QpvWnG','lrbhl','bOVwl','getSuccess','yoZXO','browserstack\x20cloud\x20not\x20reachable','gDVFp','zswzf','push','from','4593450AtPEzO','.browserstack\x20folder\x20not\x20accessible','[ClientTroubleShootingService]\x20','2uTYivK','{ERROR_CODES}','gFHbs','Process\x20Interruption\x20details\x20not\x20found:','keys','721537aEmURA','getErrorCodesOccurredInCli','zrlNY','getInstance','Conflicting\x20Env\x20Var\x20details\x20not\x20found','join','error','reportSessionLinkingIssue','llnmB','TElwC','reportSSLCertIssue','getErrorDetails','511jcIuRt','oEozb','6856UObQzP','tZHua','ACeGw','Process\x20Interruption','./constants','WThew','errorCodes','../v2/browserstackCLI','aczPF','base64','DlFhd','../v2/grpcClient','2117031QPGCdB','stwYr','qEkrX','getErrorCodes','BkTky','reportProcessInterruptionSituation','116410NzhfGV','errorCode','7398DafJtJ','isRunning','oMUDj','BraAi','reportClientTroubleshootingError','22158AAVHpA','HsZld','1402816iPftGJ','sBJsq','{ENV_VAR}','getAggregatedErrorCodes','QhiAw','SSL\x20Certificate\x20Issue\x20details\x20not\x20found.\x20To\x20pass\x20a\x20custom\x20CA\x20bundle,\x20set\x20NODE_EXTRA_CA_CERTS\x20or\x20BROWSERSTACK_EXTRA_CA_CERTS\x20env\x20var\x20to\x20the\x20certificate\x20file\x20path.','CLIENT_TROUBLESHOOTING_HASH','replace','getDocumentationLink','logSituation','logError','errorCodesOccurredInCLI','BHIqA','finalErrorMessage','{SIGNAL}','{CLIENT_TROUBLESHOOTING_DOCUMENTATION}','object','jHvek','errorMessage','isArray','checkForErrorsOccuredInCLI','winstonLogger','piJdS','cachedErrorCodes','parse'];a61_0x4d18=function(){return _0x418878;};return a61_0x4d18();}
1
+ const a61_0x46650c=a61_0x1f84;function a61_0x5bad(){const _0xb4132a=['RxVTL','getErrorCodes','logError','Cfogs','warn','getAggregatedClientTroubleshootingErrors','XsXVT','isArray','zQaRI','TEJcC','errorMessage','reportConnectivityIssue','reportDotBrowserStackFolderNotAccessibleIssue','1431018HphQPy','TjWWK','Conflicting\x20Env\x20Var\x20details\x20not\x20found','getInstance','ObLzM','add','push','logSituation','FcZps','rlouI','prIuI','Process\x20Interruption\x20details\x20not\x20found:','snWvf','PqRwe','24xGVMiu','mmXwe','browserstack\x20cloud\x20not\x20reachable','finalErrorMessage','KJPPM','documentationLink','getDocumentationLink','klEyW','errorCodesOccurredInCLI','BIjHD','reportConflictingEnvVarIssue','{ERROR_CODES}','getErrorDetails','xJzMn','rAvIj','errorCodesOccurredWhenCLINotRunning','skhqR','33040310xKuQLz','errorCodes','parse','getAggregatedErrorCodes','getSuccess','exports','1029333PhYqoX','WyfHr','keys','MGZqu','object','YpiaI','error','gvKTs','winstonLogger','reportSSLCertIssue','join','.browserstack\x20folder\x20not\x20accessible','getErrorCode','length','249202flJNoD','WQeWG','hxRSb','AGZFc','replace','1301472ptSRaB','10302495oivICI','Error\x20in\x20getting\x20error\x20details\x20for\x20','toString','Connectivity\x20Issue\x20details\x20not\x20found','Process\x20Interruption','[ClientTroubleShootingService]\x20','pNKZp','426114NuNNTy','reportFinalDetectionState','ssl\x20cert\x20issue','conflicting\x20env\x20var\x20detected','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','BHgYD','isRunning','TcKGg','SSL\x20Certificate\x20Issue\x20details\x20not\x20found.\x20To\x20pass\x20a\x20custom\x20CA\x20bundle,\x20set\x20NODE_EXTRA_CA_CERTS\x20or\x20BROWSERSTACK_EXTRA_CA_CERTS\x20env\x20var\x20to\x20the\x20certificate\x20file\x20path.','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','55KMejPg','reportSessionLinkingIssue','getCachedErrorCodes','fXVpw','Btjlm','./constants','reportClientTroubleshootingError','cachedErrorCodes','{ENV_VAR}','CLIENT_TROUBLESHOOTING_HASH','getErrorMessage','stringify','../v2/browserstackCLI','XUCLi','ayUPV','EhuHq','from','errorCode','checkForErrorsOccuredInCLI','4zgJCDt'];a61_0x5bad=function(){return _0xb4132a;};return a61_0x5bad();}function a61_0x1f84(_0x496cb7,_0x201d27){const _0x5bade2=a61_0x5bad();return a61_0x1f84=function(_0x1f842b,_0x1c264f){_0x1f842b=_0x1f842b-0xd9;let _0x2ec326=_0x5bade2[_0x1f842b];return _0x2ec326;},a61_0x1f84(_0x496cb7,_0x201d27);}(function(_0xca8b77,_0x4d2aee){const _0x34d6e9=a61_0x1f84,_0x209d92=_0xca8b77();while(!![]){try{const _0x3c0c89=parseInt(_0x34d6e9(0xf1))/0x1+parseInt(_0x34d6e9(0x11b))/0x2*(-parseInt(_0x34d6e9(0xe3))/0x3)+-parseInt(_0x34d6e9(0xf6))/0x4+-parseInt(_0x34d6e9(0x108))/0x5*(parseInt(_0x34d6e9(0xfe))/0x6)+-parseInt(_0x34d6e9(0xf7))/0x7+parseInt(_0x34d6e9(0x137))/0x8*(parseInt(_0x34d6e9(0x129))/0x9)+parseInt(_0x34d6e9(0xdd))/0xa;if(_0x3c0c89===_0x4d2aee)break;else _0x209d92['push'](_0x209d92['shift']());}catch(_0x251919){_0x209d92['push'](_0x209d92['shift']());}}}(a61_0x5bad,0xbaed7));const logger=require('../../helpers/logger')[a61_0x46650c(0xeb)],BrowserstackCLI=require(a61_0x46650c(0x114)),GrpcClient=require('../v2/grpcClient'),constants=require(a61_0x46650c(0x10d));class ClientTroubleShootingService{static [a61_0x46650c(0x10f)]=null;static [a61_0x46650c(0xdb)]=new Set();static async[a61_0x46650c(0x143)](_0x10b656){const _0x246f62=a61_0x46650c,_0x3af006={};_0x3af006[_0x246f62(0x132)]=function(_0x2f805a,_0x3012b1){return _0x2f805a!==_0x3012b1;};const _0x362ac9=_0x3af006;try{if(BrowserstackCLI[_0x246f62(0x12c)]()['isRunning']()){const _0x3ab547=await GrpcClient[_0x246f62(0x12c)]()[_0x246f62(0x10e)](_0x10b656);if(_0x362ac9[_0x246f62(0x132)](_0x3ab547,null)&&_0x3ab547[_0x246f62(0xe1)]())return{'errorCode':_0x3ab547[_0x246f62(0xef)](),'errorMessage':_0x3ab547[_0x246f62(0x112)]()};return{};}return{};}catch(_0x8f0b81){return this[_0x246f62(0x11e)](_0x246f62(0xf8)+_0x10b656+':',_0x8f0b81),{};}}static async[a61_0x46650c(0xe0)](){const _0x111d2d=a61_0x46650c,_0x32bbdb={};_0x32bbdb[_0x111d2d(0x13e)]=function(_0x43b015,_0x55b9e8){return _0x43b015!==_0x55b9e8;},_0x32bbdb[_0x111d2d(0x10c)]='base64',_0x32bbdb[_0x111d2d(0x124)]=_0x111d2d(0x102);const _0x4a79de=_0x32bbdb;try{if(BrowserstackCLI[_0x111d2d(0x12c)]()[_0x111d2d(0x104)]()){const _0x2ef38e=await GrpcClient['getInstance']()[_0x111d2d(0x121)]();if(_0x4a79de[_0x111d2d(0x13e)](_0x2ef38e,null)&&_0x2ef38e['getSuccess']()){const _0xc00159=Buffer[_0x111d2d(0x118)](_0x2ef38e[_0x111d2d(0x11d)](),_0x4a79de['Btjlm'])['toString'](),_0x50e47d=_0xc00159?JSON[_0x111d2d(0xdf)](_0xc00159):[],_0x2ef74f=_0x2ef38e[_0x111d2d(0x13d)](),_0x3ef030=_0x2ef38e['getFinalErrorMessage'](),_0x25b102=Buffer[_0x111d2d(0x118)](_0x2ef38e['getErrorCodesOccurredInCli'](),_0x4a79de['Btjlm'])[_0x111d2d(0xf9)](),_0x379d63=_0x25b102?JSON[_0x111d2d(0xdf)](_0x25b102):[],_0x5685e3={};return _0x5685e3[_0x111d2d(0xde)]=_0x50e47d,_0x5685e3[_0x111d2d(0x13c)]=_0x2ef74f,_0x5685e3[_0x111d2d(0x13a)]=_0x3ef030,_0x5685e3['errorCodesOccurredInCLI']=_0x379d63,_0x5685e3;}const _0x29d227={};return _0x29d227['errorCodes']=[],_0x29d227[_0x111d2d(0x13c)]='',_0x29d227[_0x111d2d(0x13a)]='',_0x29d227['errorCodesOccurredInCLI']=[],_0x29d227;}const _0x1fa908={};return _0x1fa908[_0x111d2d(0xde)]=[],_0x1fa908['documentationLink']='',_0x1fa908['finalErrorMessage']='',_0x1fa908[_0x111d2d(0x13f)]=[],_0x1fa908;}catch(_0xe731a9){this[_0x111d2d(0x11e)](_0x4a79de[_0x111d2d(0x124)],_0xe731a9);const _0x976d0c={};return _0x976d0c[_0x111d2d(0xde)]=[],_0x976d0c[_0x111d2d(0x13c)]='',_0x976d0c[_0x111d2d(0x13a)]='',_0x976d0c['errorCodesOccurredInCLI']=[],_0x976d0c;}}static[a61_0x46650c(0x130)](_0x58ed30,_0x517469){const _0x26dd9a=a61_0x46650c;logger[_0x26dd9a(0x120)](_0x58ed30+':\x20'+_0x517469);}static['checkForErrorsOccuredInCLI'](_0x425d65){const _0x329433=a61_0x46650c,_0x13f334={};_0x13f334[_0x329433(0x105)]=function(_0x57f52d,_0xe9deb9){return _0x57f52d!=_0xe9deb9;},_0x13f334['WyfHr']=function(_0x15db3b,_0x54c5aa){return _0x15db3b!=_0x54c5aa;},_0x13f334[_0x329433(0x12a)]=function(_0x3d758c,_0xdad1c4){return _0x3d758c>_0xdad1c4;},_0x13f334[_0x329433(0xe6)]=function(_0x427ef6,_0x524274){return _0x427ef6!=_0x524274;};const _0xea5746=_0x13f334,_0x263691=[];if(_0xea5746[_0x329433(0x105)](_0x425d65,null)&&_0xea5746['WyfHr'](_0x425d65[_0x329433(0x13f)],null)&&_0xea5746[_0x329433(0x12a)](_0x425d65[_0x329433(0x13f)][_0x329433(0xf0)],0x0))for(const _0x42f102 of _0x425d65['errorCodesOccurredInCLI']){_0xea5746[_0x329433(0xe6)](_0x42f102[_0x329433(0x119)],null)&&_0xea5746[_0x329433(0xe4)](_0x42f102['errorMessage'],null)&&(_0x263691[_0x329433(0x12f)](_0x42f102[_0x329433(0x119)]),this[_0x329433(0x130)](_0x42f102['errorCode'],_0x42f102['errorMessage']));}return _0x263691;}static[a61_0x46650c(0x10a)](){const _0x45e300=a61_0x46650c;return this[_0x45e300(0x10f)];}static['logError'](_0x5958ba,_0x3a6941){const _0x3de6fe=a61_0x46650c,_0x1f855d={};_0x1f855d['snWvf']=function(_0x566b31,_0x363b2b){return _0x566b31===_0x363b2b;},_0x1f855d['pNKZp']=_0x3de6fe(0xe7);const _0x2999bb=_0x1f855d;if(_0x2999bb[_0x3de6fe(0x135)](typeof _0x3a6941,_0x2999bb[_0x3de6fe(0xfd)]))try{logger['error'](_0x3de6fe(0xfc)+_0x5958ba+'\x20'+JSON[_0x3de6fe(0x113)](_0x3a6941));}catch(_0x55369e){logger[_0x3de6fe(0xe9)](_0x3de6fe(0xfc)+_0x5958ba+'\x20'+_0x3a6941);}else logger[_0x3de6fe(0xe9)](_0x3de6fe(0xfc)+_0x5958ba+'\x20'+_0x3a6941);}static async['reportProcessInterruptionSituation'](_0x1d67da){const _0x3563f5=a61_0x46650c,_0x102588={};_0x102588[_0x3563f5(0xf4)]=_0x3563f5(0xfb),_0x102588[_0x3563f5(0x103)]=function(_0x4aec05,_0x255ea5){return _0x4aec05===_0x255ea5;},_0x102588[_0x3563f5(0x117)]=_0x3563f5(0x134),_0x102588[_0x3563f5(0x115)]='{SIGNAL}';const _0x2041df=_0x102588,_0x3af8cc=await this['getErrorDetails'](_0x2041df[_0x3563f5(0xf4)]);if(!_0x3af8cc||_0x2041df[_0x3563f5(0x103)](Object[_0x3563f5(0xe5)](_0x3af8cc)[_0x3563f5(0xf0)],0x0)){this[_0x3563f5(0x11e)](_0x2041df[_0x3563f5(0x117)],_0x3af8cc);return;}this[_0x3563f5(0x130)](_0x3af8cc[_0x3563f5(0x119)],_0x3af8cc[_0x3563f5(0x126)][_0x3563f5(0xf5)](_0x2041df[_0x3563f5(0x115)],_0x1d67da));}static async[a61_0x46650c(0x109)](){const _0x1452fe=a61_0x46650c,_0x287f6f={};_0x287f6f[_0x1452fe(0x11c)]='Session\x20Linking\x20Issue',_0x287f6f[_0x1452fe(0xe8)]=function(_0x511780,_0x4594b8){return _0x511780===_0x4594b8;},_0x287f6f[_0x1452fe(0x13b)]='Session\x20Linking\x20Issue\x20details\x20not\x20found';const _0x43427d=_0x287f6f,_0x345aa2=await this[_0x1452fe(0x143)](_0x43427d[_0x1452fe(0x11c)]);if(!_0x345aa2||_0x43427d[_0x1452fe(0xe8)](Object[_0x1452fe(0xe5)](_0x345aa2)['length'],0x0)){this[_0x1452fe(0x11e)](_0x43427d[_0x1452fe(0x13b)],_0x345aa2);return;}this[_0x1452fe(0x130)](_0x345aa2[_0x1452fe(0x119)],_0x345aa2[_0x1452fe(0x126)]);}static async[a61_0x46650c(0x127)](){const _0x343801=a61_0x46650c,_0x2bb8dc={};_0x2bb8dc[_0x343801(0x12d)]=_0x343801(0x139),_0x2bb8dc[_0x343801(0xea)]=function(_0x4883c3,_0x482d94){return _0x4883c3===_0x482d94;},_0x2bb8dc['hxRSb']=_0x343801(0xfa);const _0x4e30fd=_0x2bb8dc,_0x3f0931=await this[_0x343801(0x143)](_0x4e30fd['ObLzM']);if(!_0x3f0931||_0x4e30fd[_0x343801(0xea)](Object[_0x343801(0xe5)](_0x3f0931)[_0x343801(0xf0)],0x0)){this[_0x343801(0x11e)](_0x4e30fd[_0x343801(0xf3)],_0x3f0931);return;}this[_0x343801(0x130)](_0x3f0931[_0x343801(0x119)],_0x3f0931[_0x343801(0x126)]);}static async[a61_0x46650c(0xec)](){const _0x4b6416=a61_0x46650c,_0x45e355={};_0x45e355['prIuI']=_0x4b6416(0x100),_0x45e355[_0x4b6416(0xda)]=function(_0x2e57e2,_0x42d7ba){return _0x2e57e2===_0x42d7ba;},_0x45e355[_0x4b6416(0x11f)]=_0x4b6416(0x106);const _0x3753ef=_0x45e355,_0x7db60a=await this['getErrorDetails'](_0x3753ef[_0x4b6416(0x133)]);if(!_0x7db60a||_0x3753ef['rAvIj'](Object[_0x4b6416(0xe5)](_0x7db60a)[_0x4b6416(0xf0)],0x0)){this[_0x4b6416(0x11e)](_0x3753ef[_0x4b6416(0x11f)],_0x7db60a);return;}this['logSituation'](_0x7db60a['errorCode'],_0x7db60a[_0x4b6416(0x126)]);}static[a61_0x46650c(0x128)](){const _0x4f561b=a61_0x46650c,_0x67168d={};_0x67168d[_0x4f561b(0x138)]=_0x4f561b(0xee),_0x67168d[_0x4f561b(0x116)]=function(_0x4d89ea,_0x5ea544){return _0x4d89ea===_0x5ea544;},_0x67168d['xJzMn']=_0x4f561b(0x107);const _0x4f9e67=_0x67168d,_0x101f1a=constants[_0x4f561b(0x111)][_0x4f9e67[_0x4f561b(0x138)]];if(!_0x101f1a||_0x4f9e67[_0x4f561b(0x116)](Object[_0x4f561b(0xe5)](_0x101f1a)['length'],0x0)){this['logError'](_0x4f9e67[_0x4f561b(0xd9)],_0x101f1a);return;}this[_0x4f561b(0xdb)][_0x4f561b(0x12e)](_0x101f1a[0x0]),this[_0x4f561b(0x130)](_0x101f1a[0x0],_0x101f1a[0x1]);}static async[a61_0x46650c(0x141)](_0x2bef38){const _0x5c0b4d=a61_0x46650c,_0x2831ac={};_0x2831ac[_0x5c0b4d(0x136)]=_0x5c0b4d(0x101),_0x2831ac['BIjHD']=function(_0x1327e5,_0x379f67){return _0x1327e5===_0x379f67;},_0x2831ac['skhqR']=_0x5c0b4d(0x12b),_0x2831ac['TEJcC']=_0x5c0b4d(0x110);const _0x578eeb=_0x2831ac,_0x1645c7=await this[_0x5c0b4d(0x143)](_0x578eeb['PqRwe']);if(!_0x1645c7||_0x578eeb[_0x5c0b4d(0x140)](Object[_0x5c0b4d(0xe5)](_0x1645c7)['length'],0x0)){this['logError'](_0x578eeb[_0x5c0b4d(0xdc)],_0x1645c7);return;}const _0x3e956b=_0x1645c7['errorMessage'][_0x5c0b4d(0xf5)](_0x578eeb[_0x5c0b4d(0x125)],_0x2bef38);this[_0x5c0b4d(0x130)](_0x1645c7[_0x5c0b4d(0x119)],_0x3e956b);}static async[a61_0x46650c(0xff)](){const _0x5e7ab8=a61_0x46650c,_0x1739a5={};_0x1739a5[_0x5e7ab8(0x122)]=function(_0x224da7,_0x467486){return _0x224da7>_0x467486;},_0x1739a5[_0x5e7ab8(0xf2)]=function(_0x163b55,_0x38fb62){return _0x163b55>_0x38fb62;},_0x1739a5[_0x5e7ab8(0x131)]=_0x5e7ab8(0x142),_0x1739a5[_0x5e7ab8(0x10b)]='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x4f9b7f=_0x1739a5,_0x340027=await this['getAggregatedErrorCodes'](),_0x24dea0=this[_0x5e7ab8(0x11a)](_0x340027),_0x183a26=Array[_0x5e7ab8(0x123)](_0x340027[_0x5e7ab8(0xde)])?_0x340027[_0x5e7ab8(0xde)]:[],_0x5cf02c=_0x4f9b7f[_0x5e7ab8(0x122)](this[_0x5e7ab8(0xdb)]['size'],0x0)?Array[_0x5e7ab8(0x118)](this['errorCodesOccurredWhenCLINotRunning']):[],_0xb71906=new Set([..._0x183a26,..._0x24dea0,..._0x5cf02c]),_0x54a0cf=Array[_0x5e7ab8(0x118)](_0xb71906);if(_0x4f9b7f[_0x5e7ab8(0xf2)](_0x54a0cf[_0x5e7ab8(0xf0)],0x0)){const _0xacd7a2=_0x340027['finalErrorMessage'][_0x5e7ab8(0xf5)](_0x4f9b7f[_0x5e7ab8(0x131)],_0x54a0cf[_0x5e7ab8(0xed)](',\x20'))['replace'](_0x4f9b7f[_0x5e7ab8(0x10b)],_0x340027['documentationLink']);logger['warn'](_0xacd7a2),this[_0x5e7ab8(0x10f)]=_0x54a0cf;}}}module[a61_0x46650c(0xe2)]=ClientTroubleShootingService;