browserstack-node-sdk 1.50.5 → 1.50.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) 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 +2 -2
  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/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a135_0xab195f=a135_0x5ef9;(function(_0x2fb132,_0x4a2a78){const _0x1bc335=a135_0x5ef9,_0x581a38=_0x2fb132();while(!![]){try{const _0x37f3e9=parseInt(_0x1bc335(0xa0))/0x1*(-parseInt(_0x1bc335(0xee))/0x2)+-parseInt(_0x1bc335(0xe5))/0x3+parseInt(_0x1bc335(0xef))/0x4+-parseInt(_0x1bc335(0xdc))/0x5+parseInt(_0x1bc335(0xa2))/0x6*(-parseInt(_0x1bc335(0xd6))/0x7)+-parseInt(_0x1bc335(0xda))/0x8*(parseInt(_0x1bc335(0xce))/0x9)+parseInt(_0x1bc335(0xd7))/0xa;if(_0x37f3e9===_0x4a2a78)break;else _0x581a38['push'](_0x581a38['shift']());}catch(_0x5b6fc0){_0x581a38['push'](_0x581a38['shift']());}}}(a135_0x270f,0x9b47b));const https=require('https'),{URL}=require(a135_0xab195f(0xb4)),logger=require(a135_0xab195f(0xb7))[a135_0xab195f(0xe2)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a135_0xab195f(0x9f)),TAG='RequestUtils';class RequestUtils{static async[a135_0xab195f(0xa5)](_0x51bdc3,_0x50fc00,_0xded0f3=null){const _0x49dd3b=a135_0xab195f,_0x593c7f={'rxIMM':_0x49dd3b(0xcf),'pOhcz':_0x49dd3b(0xb2),'xcmCv':function(_0x4f7634,_0xe1c2e1){return _0x4f7634(_0xe1c2e1);},'xVfYX':_0x49dd3b(0xc8),'LMCtn':function(_0x3fb3dd,_0x452bcf){return _0x3fb3dd===_0x452bcf;},'URYmJ':_0x49dd3b(0xc2),'nVzAz':_0x49dd3b(0xd2),'aAKxK':_0x49dd3b(0xea),'voKND':function(_0x307dce,_0xa39f97){return _0x307dce+_0xa39f97;}},_0x40eea0=process[_0x49dd3b(0xac)][_0x49dd3b(0xaa)]||'',_0x3dc5ab={};_0x3dc5ab[_0x49dd3b(0xcb)]=_0x49dd3b(0xf1)+_0x40eea0,_0x3dc5ab[_0x49dd3b(0x9e)]=_0x593c7f[_0x49dd3b(0xed)];const _0x23238b=_0x3dc5ab,{hostname:_0x2ac975,pathname:_0x150d18,search:_0x5ccaec}=new URL(_0x50fc00),_0x5dafa7={'hostname':_0x2ac975,'path':_0x593c7f['voKND'](_0x150d18,_0x5ccaec),'method':_0x51bdc3,'headers':_0x23238b};return logger[_0x49dd3b(0xba)]('['+TAG+']\x20Sending\x20'+_0x51bdc3+_0x49dd3b(0xc0)+_0x50fc00+'\x20with\x20headers:\x20'+JSON[_0x49dd3b(0xb0)](_0x23238b)+_0x49dd3b(0xe6)+JSON['stringify'](_0xded0f3)+_0x49dd3b(0xc3)+_0x40eea0),new Promise((_0x517188,_0x488f7a)=>{const _0xab8252=_0x49dd3b,_0x3fcd0f={'iByFN':function(_0x48c757,_0x1fc5ec){const _0x2f494=a135_0x5ef9;return _0x593c7f[_0x2f494(0xaf)](_0x48c757,_0x1fc5ec);},'onYYM':function(_0xe87d3b,_0x5db4aa){return _0x593c7f['xcmCv'](_0xe87d3b,_0x5db4aa);}},_0x12c830=https['request'](_0x5dafa7,_0x4f9cfd=>{const _0x5e8a64=a135_0x5ef9;let _0x1f73c1='';_0x4f9cfd['on'](_0x593c7f[_0x5e8a64(0xbc)],_0x3e618e=>{_0x1f73c1+=_0x3e618e;}),_0x4f9cfd['on'](_0x593c7f[_0x5e8a64(0xcd)],()=>{const _0x1e8afc=_0x5e8a64;try{const _0x13d2c8=_0x1f73c1?JSON[_0x1e8afc(0xa4)](_0x1f73c1):{},_0x5d1b41={};_0x5d1b41['status']=_0x4f9cfd[_0x1e8afc(0xc6)],_0x5d1b41[_0x1e8afc(0xd1)]=_0x13d2c8,_0x5d1b41['headers']=_0x4f9cfd['headers'],_0x3fcd0f[_0x1e8afc(0xb3)](_0x517188,_0x5d1b41);}catch(_0x8bd7b0){logger[_0x1e8afc(0xc8)]('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x1f73c1+_0x1e8afc(0xf0)+_0x8bd7b0[_0x1e8afc(0xd9)]+'\x20'+_0x8bd7b0[_0x1e8afc(0xe9)]),_0x3fcd0f[_0x1e8afc(0xe7)](_0x488f7a,new Error(_0x1e8afc(0xdf)+_0x8bd7b0['message']));}});});_0x12c830['on'](_0x593c7f[_0xab8252(0xa8)],_0x2e27c9=>{const _0x4bf4e7=_0xab8252;logger[_0x4bf4e7(0xc8)]('['+TAG+_0x4bf4e7(0xdb)+_0x51bdc3+'\x20'+_0x50fc00+':\x20'+_0x2e27c9['message']+'\x20'+_0x2e27c9['stack']),_0x593c7f['xcmCv'](_0x488f7a,_0x2e27c9);}),_0xded0f3&&(_0x593c7f[_0xab8252(0xc7)](_0x51bdc3,_0x593c7f[_0xab8252(0xab)])||_0x593c7f[_0xab8252(0xc7)](_0x51bdc3,_0x593c7f['nVzAz']))&&_0x12c830[_0xab8252(0xbe)](JSON[_0xab8252(0xb0)](_0xded0f3)),_0x12c830['end']();});}static async[a135_0xab195f(0xb1)](_0x2d075f){const _0x198049=a135_0xab195f,_0x574b3f={};_0x574b3f[_0x198049(0xe3)]='POST',_0x574b3f[_0x198049(0xa7)]=function(_0x3c45a2,_0x32e3aa){return _0x3c45a2===_0x32e3aa;};const _0x120836=_0x574b3f,_0xa8eea3=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x57eacc=await this[_0x198049(0xa5)](_0x120836[_0x198049(0xe3)],_0xa8eea3,_0x2d075f);return _0x120836[_0x198049(0xa7)](_0x57eacc[_0x198049(0xae)],0xc8)?logger[_0x198049(0xba)]('['+TAG+_0x198049(0xad)+_0xa8eea3):logger[_0x198049(0xc8)]('['+TAG+_0x198049(0xb9)+_0xa8eea3+':\x20'+JSON[_0x198049(0xb0)](_0x57eacc[_0x198049(0xd1)])+_0x198049(0xeb)+_0x57eacc[_0x198049(0xae)]),_0x57eacc;}catch(_0x3e983b){logger[_0x198049(0xc8)]('['+TAG+_0x198049(0xe1)+_0x3e983b[_0x198049(0xd9)]+'\x20'+_0x3e983b[_0x198049(0xe9)]);const _0x88e068={};_0x88e068[_0x198049(0xd9)]=_0x3e983b[_0x198049(0xd9)];const _0x1bd310={};return _0x1bd310['status']=0x1f4,_0x1bd310[_0x198049(0xd1)]=_0x88e068,_0x1bd310;}}static async[a135_0xab195f(0xd4)](_0x12f431){const _0x19b4ad=a135_0xab195f,_0x4fc23a={};_0x4fc23a['fLRjV']=_0x19b4ad(0xd8),_0x4fc23a[_0x19b4ad(0xa9)]=function(_0x45d37b,_0x3aad1c){return _0x45d37b===_0x3aad1c;};const _0x4ca709=_0x4fc23a;try{const _0x111fc8=await this['_request'](_0x4ca709['fLRjV'],_0x12f431);if(_0x4ca709[_0x19b4ad(0xa9)](_0x111fc8['status'],0xc8))return _0x111fc8['body'];return{};}catch(_0x38bea5){return logger[_0x19b4ad(0xc8)]('['+TAG+_0x19b4ad(0xe1)+_0x38bea5[_0x19b4ad(0xd9)]+'\x20'+_0x38bea5[_0x19b4ad(0xe9)]),{};}}static async['putFailedTests'](_0x31add0){const _0x2aac09=a135_0xab195f,_0x4d719c={};_0x4d719c[_0x2aac09(0xc5)]='PUT',_0x4d719c[_0x2aac09(0xb8)]=function(_0x448267,_0x5d20c7){return _0x448267===_0x5d20c7;},_0x4d719c['HCdHo']=function(_0x25b83a,_0x151dbc){return _0x25b83a===_0x151dbc;},_0x4d719c['pJQPN']=_0x2aac09(0xe0);const _0x17c792=_0x4d719c,_0x3f84df=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x3a4e81=await this[_0x2aac09(0xa5)](_0x17c792[_0x2aac09(0xc5)],_0x3f84df,_0x31add0);if(_0x17c792['QqbaX'](_0x3a4e81['status'],0xc8)&&_0x3a4e81[_0x2aac09(0xd1)]&&_0x17c792[_0x2aac09(0xde)](_0x3a4e81['body']['message'],_0x17c792[_0x2aac09(0xdd)]))return!![];return![];}catch(_0x210d62){logger[_0x2aac09(0xc8)]('['+TAG+_0x2aac09(0xe1)+_0x210d62[_0x2aac09(0xd9)]+'\x20'+_0x210d62[_0x2aac09(0xe9)]);const _0x255633={};_0x255633[_0x2aac09(0xd9)]=_0x210d62[_0x2aac09(0xd9)];const _0x995a5e={};return _0x995a5e['status']=0x1f4,_0x995a5e[_0x2aac09(0xd1)]=_0x255633,_0x995a5e;}}static async[a135_0xab195f(0xd3)](_0x4435a5){const _0x27b541=a135_0xab195f,_0x28815b={'CgRVU':function(_0x5c8601,_0xb65457){return _0x5c8601||_0xb65457;},'AVVav':_0x27b541(0xa3),'YPgWy':function(_0x3b02e8,_0x47cf47){return _0x3b02e8(_0x47cf47);},'BZDcW':_0x27b541(0xd8),'bNfAr':function(_0x391779,_0x392148){return _0x391779===_0x392148;},'xXnxU':function(_0x5f5724,_0x14b616){return _0x5f5724!==_0x14b616;},'oHOea':_0x27b541(0xa6),'dcuCB':function(_0x58c085,_0x3ed74d){return _0x58c085(_0x3ed74d);}},{buildName:_0x332ea9,buildRunIdentifier:_0x167888,projectName:_0xc6116e}=_0x4435a5;if(_0x28815b['CgRVU'](!_0x332ea9,!_0x167888)||!_0xc6116e){logger[_0x27b541(0xc8)]('['+TAG+_0x27b541(0xe4)+_0x332ea9+_0x27b541(0xbd)+_0x167888+_0x27b541(0xd0)+_0xc6116e);const _0x1b0661={};_0x1b0661[_0x27b541(0xd9)]=_0x28815b[_0x27b541(0xc9)];const _0x236615={};return _0x236615['status']=0x190,_0x236615[_0x27b541(0xd1)]=_0x1b0661,_0x236615;}const _0x48acd2=_0x27b541(0xbf)+_0x28815b[_0x27b541(0xca)](encodeURIComponent,_0x332ea9)+_0x27b541(0xbb)+_0x28815b['YPgWy'](encodeURIComponent,_0x167888)+_0x27b541(0xd5)+_0x28815b['YPgWy'](encodeURIComponent,_0xc6116e),_0x3c53d3=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x48acd2;try{logger[_0x27b541(0xba)]('['+TAG+_0x27b541(0xb5)+_0x3c53d3);let _0x3e1610=0x0;const _0x3f4d32=await this[_0x27b541(0xa5)](_0x28815b[_0x27b541(0xc4)],_0x3c53d3);return _0x28815b[_0x27b541(0xb6)](_0x3f4d32[_0x27b541(0xae)],0xc8)&&_0x3f4d32['body']&&_0x28815b[_0x27b541(0xe8)](typeof _0x3f4d32[_0x27b541(0xd1)]['failedTestsCount'],_0x28815b[_0x27b541(0xec)])&&(_0x3e1610=_0x28815b[_0x27b541(0xa1)](Number,_0x3f4d32['body'][_0x27b541(0xc1)])),_0x3e1610;}catch(_0x337720){logger[_0x27b541(0xc8)]('['+TAG+_0x27b541(0xcc)+_0x337720[_0x27b541(0xd9)]+'\x20'+_0x337720['stack']);const _0x3ad46e={};_0x3ad46e[_0x27b541(0xd9)]=_0x337720[_0x27b541(0xd9)];const _0xd54ee4={};return _0xd54ee4[_0x27b541(0xae)]=0x1f4,_0xd54ee4[_0x27b541(0xd1)]=_0x3ad46e,_0xd54ee4;}}}module['exports']=RequestUtils;function a135_0x5ef9(_0x2e79d0,_0x58b6f8){const _0x270f41=a135_0x270f();return a135_0x5ef9=function(_0x5ef93c,_0x500b3f){_0x5ef93c=_0x5ef93c-0x9e;let _0x32d2ab=_0x270f41[_0x5ef93c];return _0x32d2ab;},a135_0x5ef9(_0x2e79d0,_0x58b6f8);}function a135_0x270f(){const _0x1b166f=['AVVav','YPgWy','Authorization',']\x20Error\x20in\x20getFailedTestsCount:\x20','pOhcz','27XTiRne','data',',\x20projectName=','body','PUT','getFailedTestsCount','getSplitFiles','&projectName=','31815nzuYvK','29622310pCTwxx','GET','message','2596456ybyLQe',']\x20Request\x20failed\x20for\x20','3629810cqvjGV','pJQPN','HCdHo','Failed\x20to\x20parse\x20JSON\x20response:\x20','Test\x20added',']\x20Error\x20in\x20putFailedTests:\x20','winstonLogger','bxPgb',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','223833xfEQys','\x20and\x20data:\x20','onYYM','xXnxU','stack','application/json',',\x20status:\x20','oHOea','aAKxK','2vDPJUQ','1902144fHKpwx','\x20-\x20','Bearer\x20','Content-Type','./constants','832061HjONfQ','dcuCB','258wXzEuL','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','parse','_request','undefined','whQua','xVfYX','eOEuL','BROWSERSTACK_TESTHUB_JWT','URYmJ','env',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','status','xcmCv','stringify','postSplitFiles','end','iByFN','url',']\x20Sending\x20GET\x20to\x20','bNfAr','../logger','QqbaX',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','debug','&buildRunIdentifier=','rxIMM',',\x20buildRunIdentifier=','write','?buildName=','\x20request\x20to\x20','failedTestsCount','POST','\x20and\x20token:\x20','BZDcW','LVbhd','statusCode','LMCtn','error'];a135_0x270f=function(){return _0x1b166f;};return a135_0x270f();}
1
+ function a135_0x45f3(){const _0x48d68a=['\x20and\x20token:\x20','UiCZJ','postSplitFiles','winstonLogger','KBRos','debug','21613ksYnSj','Failed\x20to\x20parse\x20JSON\x20response:\x20','getSplitFiles','Bearer\x20','26eKcufw','Content-Type','FHjCQ','oUOfc','nEeny','1420870TdTbpQ',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','\x20-\x20','&projectName=','body','JGUQI','412568eeAlYS','OXtUk','PpulN','end','data','url','rapWy','undefined','status','getFailedTestsCount','181230fiYNne','stack','message','env','1686300LrwItc','&buildRunIdentifier=','Lhasq',',\x20status:\x20','GYFuo','POST','9crhlBX','SGZzn','application/json','GET','hGbXv','VTTxV','stringify','headers','failedTestsCount','180929SZgczJ','Test\x20added','\x20with\x20headers:\x20',']\x20Sending\x20','IBcyK','qRqKg','RequestUtils',']\x20Sending\x20GET\x20to\x20','ZFsep','request','error',']\x20Request\x20failed\x20for\x20','IoMRd','PfOhc','QkodT','4xrtJOR','?buildName=','Lgkwx','YHGSY','PUT','Nsgfd','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','eDvSF','1281282HgjKHX',']\x20Error\x20in\x20putFailedTests:\x20','_request','Authorization','hKuhQ'];a135_0x45f3=function(){return _0x48d68a;};return a135_0x45f3();}function a135_0x26d3(_0x52f26c,_0x219180){const _0x45f3e3=a135_0x45f3();return a135_0x26d3=function(_0x26d356,_0x2e96ca){_0x26d356=_0x26d356-0xae;let _0x36666e=_0x45f3e3[_0x26d356];return _0x36666e;},a135_0x26d3(_0x52f26c,_0x219180);}const a135_0x3f2bb2=a135_0x26d3;(function(_0x442d1e,_0x20c06b){const _0x93a8c6=a135_0x26d3,_0x3c169f=_0x442d1e();while(!![]){try{const _0x564241=-parseInt(_0x93a8c6(0xbb))/0x1*(-parseInt(_0x93a8c6(0xbf))/0x2)+-parseInt(_0x93a8c6(0xb0))/0x3*(parseInt(_0x93a8c6(0xf6))/0x4)+parseInt(_0x93a8c6(0xc4))/0x5+-parseInt(_0x93a8c6(0xd4))/0x6+parseInt(_0x93a8c6(0xe7))/0x7+parseInt(_0x93a8c6(0xca))/0x8*(-parseInt(_0x93a8c6(0xde))/0x9)+parseInt(_0x93a8c6(0xd8))/0xa;if(_0x564241===_0x20c06b)break;else _0x3c169f['push'](_0x3c169f['shift']());}catch(_0x19d830){_0x3c169f['push'](_0x3c169f['shift']());}}}(a135_0x45f3,0x3d37e));const https=require('https'),{URL}=require(a135_0x3f2bb2(0xcf)),logger=require('../logger')[a135_0x3f2bb2(0xb8)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require('./constants'),TAG=a135_0x3f2bb2(0xed);class RequestUtils{static async[a135_0x3f2bb2(0xb2)](_0xeabd60,_0x3c7d65,_0x4b3a87=null){const _0x4b6272=a135_0x3f2bb2,_0x5476ac={'ZFsep':function(_0x280e36,_0x32c98d){return _0x280e36(_0x32c98d);},'JGUQI':function(_0xaf1961,_0x5ef862){return _0xaf1961(_0x5ef862);},'hKuhQ':function(_0x278c71,_0x4dfc0f){return _0x278c71(_0x4dfc0f);},'PdDUu':_0x4b6272(0xce),'IBcyK':_0x4b6272(0xcd),'nEeny':_0x4b6272(0xf1),'QkodT':function(_0x749893,_0x514ff4){return _0x749893===_0x514ff4;},'Lhasq':_0x4b6272(0xdd),'wZxtf':function(_0x1d561b,_0x4cf060){return _0x1d561b===_0x4cf060;},'XxRrX':_0x4b6272(0xfa),'rapWy':_0x4b6272(0xe0),'PpulN':function(_0x3bcf30,_0x34ad00){return _0x3bcf30+_0x34ad00;}},_0x45b747=process[_0x4b6272(0xd7)]['BROWSERSTACK_TESTHUB_JWT']||'',_0x2f8036={};_0x2f8036[_0x4b6272(0xb3)]=_0x4b6272(0xbe)+_0x45b747,_0x2f8036[_0x4b6272(0xc0)]=_0x5476ac[_0x4b6272(0xd0)];const _0x49cd7a=_0x2f8036,{hostname:_0x19644d,pathname:_0x349a07,search:_0x5a3315}=new URL(_0x3c7d65),_0x3c6f6c={'hostname':_0x19644d,'path':_0x5476ac[_0x4b6272(0xcc)](_0x349a07,_0x5a3315),'method':_0xeabd60,'headers':_0x49cd7a};return logger['debug']('['+TAG+_0x4b6272(0xea)+_0xeabd60+'\x20request\x20to\x20'+_0x3c7d65+_0x4b6272(0xe9)+JSON[_0x4b6272(0xe4)](_0x49cd7a)+'\x20and\x20data:\x20'+JSON[_0x4b6272(0xe4)](_0x4b3a87)+_0x4b6272(0xb5)+_0x45b747),new Promise((_0x285abf,_0x2ca59e)=>{const _0x1e1864=_0x4b6272,_0x435643={'QzxTF':function(_0x2a8216,_0x4c1e87){const _0xeda546=a135_0x26d3;return _0x5476ac[_0xeda546(0xc9)](_0x2a8216,_0x4c1e87);},'eDvSF':function(_0x1e5ea2,_0x5d3295){const _0x462958=a135_0x26d3;return _0x5476ac[_0x462958(0xb4)](_0x1e5ea2,_0x5d3295);},'UiCZJ':_0x5476ac['PdDUu'],'VTTxV':_0x5476ac[_0x1e1864(0xeb)]},_0x4a99e0=https[_0x1e1864(0xf0)](_0x3c6f6c,_0x23dda3=>{const _0x441037=_0x1e1864;let _0x12b66a='';_0x23dda3['on'](_0x435643[_0x441037(0xb6)],_0x2937b5=>{_0x12b66a+=_0x2937b5;}),_0x23dda3['on'](_0x435643[_0x441037(0xe3)],()=>{const _0x48c757=_0x441037;try{const _0x135018=_0x12b66a?JSON['parse'](_0x12b66a):{},_0x2443fc={};_0x2443fc[_0x48c757(0xd2)]=_0x23dda3['statusCode'],_0x2443fc['body']=_0x135018,_0x2443fc[_0x48c757(0xe5)]=_0x23dda3[_0x48c757(0xe5)],_0x435643['QzxTF'](_0x285abf,_0x2443fc);}catch(_0x392fd6){logger[_0x48c757(0xf1)]('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x12b66a+_0x48c757(0xc6)+_0x392fd6['message']+'\x20'+_0x392fd6['stack']),_0x435643[_0x48c757(0xaf)](_0x2ca59e,new Error(_0x48c757(0xbc)+_0x392fd6[_0x48c757(0xd6)]));}});});_0x4a99e0['on'](_0x5476ac[_0x1e1864(0xc3)],_0x27a646=>{const _0x2cefcc=_0x1e1864;logger[_0x2cefcc(0xf1)]('['+TAG+_0x2cefcc(0xf2)+_0xeabd60+'\x20'+_0x3c7d65+':\x20'+_0x27a646['message']+'\x20'+_0x27a646[_0x2cefcc(0xd5)]),_0x5476ac[_0x2cefcc(0xef)](_0x2ca59e,_0x27a646);}),_0x4b3a87&&(_0x5476ac[_0x1e1864(0xf5)](_0xeabd60,_0x5476ac[_0x1e1864(0xda)])||_0x5476ac['wZxtf'](_0xeabd60,_0x5476ac['XxRrX']))&&_0x4a99e0['write'](JSON[_0x1e1864(0xe4)](_0x4b3a87)),_0x4a99e0[_0x1e1864(0xcd)]();});}static async[a135_0x3f2bb2(0xb7)](_0x5a229c){const _0x4fe5d5=a135_0x3f2bb2,_0x4b344e={};_0x4b344e[_0x4fe5d5(0xec)]='POST',_0x4b344e['PfOhc']=function(_0x4b03d1,_0x2c00b7){return _0x4b03d1===_0x2c00b7;};const _0x4f282b=_0x4b344e,_0x291a8e=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x25945d=await this[_0x4fe5d5(0xb2)](_0x4f282b[_0x4fe5d5(0xec)],_0x291a8e,_0x5a229c);return _0x4f282b[_0x4fe5d5(0xf4)](_0x25945d[_0x4fe5d5(0xd2)],0xc8)?logger[_0x4fe5d5(0xba)]('['+TAG+']\x20Successfully\x20posted\x20split\x20files\x20to\x20'+_0x291a8e):logger[_0x4fe5d5(0xf1)]('['+TAG+']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20'+_0x291a8e+':\x20'+JSON[_0x4fe5d5(0xe4)](_0x25945d[_0x4fe5d5(0xc8)])+_0x4fe5d5(0xdb)+_0x25945d[_0x4fe5d5(0xd2)]),_0x25945d;}catch(_0x329803){logger[_0x4fe5d5(0xf1)]('['+TAG+_0x4fe5d5(0xb1)+_0x329803['message']+'\x20'+_0x329803[_0x4fe5d5(0xd5)]);const _0x141d2c={};_0x141d2c['message']=_0x329803[_0x4fe5d5(0xd6)];const _0x42acd8={};return _0x42acd8['status']=0x1f4,_0x42acd8[_0x4fe5d5(0xc8)]=_0x141d2c,_0x42acd8;}}static async[a135_0x3f2bb2(0xbd)](_0x377c82){const _0x306cd3=a135_0x3f2bb2,_0x5965d5={};_0x5965d5[_0x306cd3(0xdf)]=_0x306cd3(0xe1),_0x5965d5[_0x306cd3(0xf9)]=function(_0x4f8512,_0x15b46b){return _0x4f8512===_0x15b46b;};const _0x5825fa=_0x5965d5;try{const _0x27e08a=await this[_0x306cd3(0xb2)](_0x5825fa[_0x306cd3(0xdf)],_0x377c82);if(_0x5825fa['YHGSY'](_0x27e08a[_0x306cd3(0xd2)],0xc8))return _0x27e08a[_0x306cd3(0xc8)];return{};}catch(_0x45c00e){return logger[_0x306cd3(0xf1)]('['+TAG+_0x306cd3(0xb1)+_0x45c00e['message']+'\x20'+_0x45c00e['stack']),{};}}static async['putFailedTests'](_0x3f3826){const _0x47960d=a135_0x3f2bb2,_0x3607a8={};_0x3607a8[_0x47960d(0xb9)]=_0x47960d(0xfa),_0x3607a8[_0x47960d(0xfb)]=function(_0x54813a,_0x1696e6){return _0x54813a===_0x1696e6;},_0x3607a8[_0x47960d(0xcb)]=_0x47960d(0xe8);const _0x42d00c=_0x3607a8,_0x3bba1b=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x240b73=await this['_request'](_0x42d00c[_0x47960d(0xb9)],_0x3bba1b,_0x3f3826);if(_0x42d00c['Nsgfd'](_0x240b73['status'],0xc8)&&_0x240b73['body']&&_0x42d00c[_0x47960d(0xfb)](_0x240b73[_0x47960d(0xc8)][_0x47960d(0xd6)],_0x42d00c[_0x47960d(0xcb)]))return!![];return![];}catch(_0x3a4e77){logger[_0x47960d(0xf1)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x3a4e77['message']+'\x20'+_0x3a4e77[_0x47960d(0xd5)]);const _0x120400={};_0x120400[_0x47960d(0xd6)]=_0x3a4e77['message'];const _0x1113e1={};return _0x1113e1[_0x47960d(0xd2)]=0x1f4,_0x1113e1['body']=_0x120400,_0x1113e1;}}static async[a135_0x3f2bb2(0xd3)](_0x3febf1){const _0x378b43=a135_0x3f2bb2,_0x41c04a={'FHjCQ':function(_0x492c9b,_0x4bb22e){return _0x492c9b||_0x4bb22e;},'oUOfc':_0x378b43(0xae),'IoMRd':function(_0x1afc4a,_0x38b7f8){return _0x1afc4a(_0x38b7f8);},'Lgkwx':function(_0x567430,_0x5e8b7b){return _0x567430(_0x5e8b7b);},'hGbXv':_0x378b43(0xe1),'GYFuo':function(_0xbd2fac,_0x42fc7f){return _0xbd2fac===_0x42fc7f;},'MgjTz':function(_0x1fc148,_0x5af6d0){return _0x1fc148!==_0x5af6d0;},'RyaYV':_0x378b43(0xd1)},{buildName:_0x348b6b,buildRunIdentifier:_0x5b95c9,projectName:_0x134a9f}=_0x3febf1;if(_0x41c04a[_0x378b43(0xc1)](!_0x348b6b,!_0x5b95c9)||!_0x134a9f){logger[_0x378b43(0xf1)]('['+TAG+_0x378b43(0xc5)+_0x348b6b+',\x20buildRunIdentifier='+_0x5b95c9+',\x20projectName='+_0x134a9f);const _0x34989b={};_0x34989b[_0x378b43(0xd6)]=_0x41c04a[_0x378b43(0xc2)];const _0x51a325={};return _0x51a325[_0x378b43(0xd2)]=0x190,_0x51a325[_0x378b43(0xc8)]=_0x34989b,_0x51a325;}const _0x31e4d8=_0x378b43(0xf7)+_0x41c04a[_0x378b43(0xf3)](encodeURIComponent,_0x348b6b)+_0x378b43(0xd9)+_0x41c04a['Lgkwx'](encodeURIComponent,_0x5b95c9)+_0x378b43(0xc7)+_0x41c04a['IoMRd'](encodeURIComponent,_0x134a9f),_0x325ab1=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x31e4d8;try{logger['debug']('['+TAG+_0x378b43(0xee)+_0x325ab1);let _0x270561=0x0;const _0x2457ec=await this[_0x378b43(0xb2)](_0x41c04a[_0x378b43(0xe2)],_0x325ab1);return _0x41c04a[_0x378b43(0xdc)](_0x2457ec['status'],0xc8)&&_0x2457ec[_0x378b43(0xc8)]&&_0x41c04a['MgjTz'](typeof _0x2457ec[_0x378b43(0xc8)][_0x378b43(0xe6)],_0x41c04a['RyaYV'])&&(_0x270561=_0x41c04a[_0x378b43(0xf8)](Number,_0x2457ec[_0x378b43(0xc8)][_0x378b43(0xe6)])),_0x270561;}catch(_0x269432){logger[_0x378b43(0xf1)]('['+TAG+']\x20Error\x20in\x20getFailedTestsCount:\x20'+_0x269432['message']+'\x20'+_0x269432[_0x378b43(0xd5)]);const _0x37c6c8={};_0x37c6c8['message']=_0x269432[_0x378b43(0xd6)];const _0x2a6f17={};return _0x2a6f17[_0x378b43(0xd2)]=0x1f4,_0x2a6f17[_0x378b43(0xc8)]=_0x37c6c8,_0x2a6f17;}}}module['exports']=RequestUtils;
@@ -1 +1 @@
1
- const a136_0x2c1db9=a136_0x4055;(function(_0x12f893,_0x4886fc){const _0xe93ff7=a136_0x4055,_0x24e93a=_0x12f893();while(!![]){try{const _0x36d1a6=parseInt(_0xe93ff7(0x12d))/0x1*(parseInt(_0xe93ff7(0x156))/0x2)+-parseInt(_0xe93ff7(0x11f))/0x3+parseInt(_0xe93ff7(0x108))/0x4*(parseInt(_0xe93ff7(0x112))/0x5)+-parseInt(_0xe93ff7(0x10c))/0x6*(parseInt(_0xe93ff7(0x119))/0x7)+parseInt(_0xe93ff7(0x14d))/0x8*(-parseInt(_0xe93ff7(0x130))/0x9)+-parseInt(_0xe93ff7(0x146))/0xa+parseInt(_0xe93ff7(0x10a))/0xb*(parseInt(_0xe93ff7(0x15a))/0xc);if(_0x36d1a6===_0x4886fc)break;else _0x24e93a['push'](_0x24e93a['shift']());}catch(_0x2849ee){_0x24e93a['push'](_0x24e93a['shift']());}}}(a136_0x1e3b,0x8fe79));const logger=require(a136_0x2c1db9(0x125))[a136_0x2c1db9(0x14e)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a136_0x2c1db9(0x167)),TestOrderingServerHandler=require(a136_0x2c1db9(0x163)),OrchestrationUtils=require(a136_0x2c1db9(0x138)),path=require(a136_0x2c1db9(0x171)),{spawnSync}=require('child_process'),micromatch=require('micromatch'),fs=require('fs');function a136_0x4055(_0x40f19f,_0x4b966f){const _0x1e3b1a=a136_0x1e3b();return a136_0x4055=function(_0x40559d,_0x289000){_0x40559d=_0x40559d-0x106;let _0x198021=_0x1e3b1a[_0x40559d];return _0x198021;},a136_0x4055(_0x40f19f,_0x4b966f);}class TestOrchestrationHandler{constructor(_0x569902){const _0xd0065e=a136_0x2c1db9,_0x3eb93b={};_0x3eb93b[_0xd0065e(0x17a)]=_0xd0065e(0x176);const _0x1fa8f2=_0x3eb93b,_0x2e716f=_0x1fa8f2[_0xd0065e(0x17a)][_0xd0065e(0x13f)]('|');let _0x2a5646=0x0;while(!![]){switch(_0x2e716f[_0x2a5646++]){case'0':this[_0xd0065e(0x11e)]=_0x569902;continue;case'1':this[_0xd0065e(0x177)]=![];continue;case'2':this[_0xd0065e(0x165)]();continue;case'3':this[_0xd0065e(0x111)]=new OrchestrationUtils(_0x569902);continue;case'4':this[_0xd0065e(0x126)]=null;continue;case'5':this[_0xd0065e(0x145)]={};continue;}break;}}[a136_0x2c1db9(0x132)](){const _0x5b2aaa=a136_0x2c1db9,_0x297e02={'HuoQU':function(_0x37e5c3,_0x2f9412){return _0x37e5c3(_0x2f9412);},'aFtBg':function(_0x2fb27f,_0x4f49b8){return _0x2fb27f(_0x4f49b8);},'EHFBx':function(_0x3008ca,_0x32b3d0){return _0x3008ca(_0x32b3d0);},'XIhKK':function(_0x55dcfb,_0x3096a5){return _0x55dcfb(_0x3096a5);},'MTKdL':function(_0x1d750b,_0x21bfd5){return _0x1d750b&&_0x21bfd5;}},_0x2948e0=_0x297e02[_0x5b2aaa(0x153)](isNotUndefined,this['config'])&&(_0x297e02[_0x5b2aaa(0x153)](isUndefined,this[_0x5b2aaa(0x11e)][_0x5b2aaa(0x137)])||_0x297e02[_0x5b2aaa(0x153)](isTrueString,this[_0x5b2aaa(0x11e)][_0x5b2aaa(0x137)])),_0x1024eb=this[_0x5b2aaa(0x111)]['testOrderingEnabled'](),_0x9063cb=_0x297e02[_0x5b2aaa(0x115)](isNotUndefined,this[_0x5b2aaa(0x11e)])&&_0x297e02['HuoQU'](isNotUndefined,this[_0x5b2aaa(0x11e)][_0x5b2aaa(0x12a)]),_0x515fbe=_0x297e02['EHFBx'](isNotUndefined,this[_0x5b2aaa(0x11e)])&&_0x297e02[_0x5b2aaa(0x116)](isNotUndefined,this[_0x5b2aaa(0x11e)][_0x5b2aaa(0x14f)]);return _0x297e02['MTKdL'](_0x2948e0,_0x1024eb)&&_0x9063cb&&_0x515fbe;}[a136_0x2c1db9(0x165)](){const _0x360dd0=a136_0x2c1db9,_0x330c92={};_0x330c92[_0x360dd0(0x179)]=_0x360dd0(0x14c),_0x330c92[_0x360dd0(0x15b)]=_0x360dd0(0x15d);const _0x521687=_0x330c92;this['isTestOrchestrationEnabled']()?(this[_0x360dd0(0x126)]=new TestOrderingServerHandler(this[_0x360dd0(0x11e)]),logger[_0x360dd0(0x16d)](_0x521687[_0x360dd0(0x179)])):(logger[_0x360dd0(0x106)](_0x521687[_0x360dd0(0x15b)]),this['logTestOrderingChecks']());}[a136_0x2c1db9(0x124)](){const _0x36992f=a136_0x2c1db9,_0x83324b={'sqHnf':function(_0x530bd9,_0x30b58c){return _0x530bd9(_0x30b58c);},'Ovljp':function(_0x1efef6,_0x4ab574){return _0x1efef6(_0x4ab574);},'ppQBB':function(_0x109a21,_0x3818e7){return _0x109a21(_0x3818e7);},'JNpCM':'Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','IdWya':function(_0x403890,_0x23b2f7){return _0x403890(_0x23b2f7);},'bbaae':_0x36992f(0x11a)};if(!this[_0x36992f(0x127)]())return;(!_0x83324b['sqHnf'](isNotUndefined,this['config'])||!_0x83324b['Ovljp'](isNotUndefined,this[_0x36992f(0x11e)][_0x36992f(0x14f)])||!_0x83324b[_0x36992f(0x136)](isNotUndefined,this[_0x36992f(0x11e)]['projectName']))&&logger[_0x36992f(0x16d)](_0x83324b['JNpCM']),_0x83324b[_0x36992f(0x10f)](isNotUndefined,this[_0x36992f(0x11e)])&&_0x83324b['IdWya'](isNotUndefined,this[_0x36992f(0x11e)][_0x36992f(0x137)])&&!_0x83324b[_0x36992f(0x136)](isTrueString,this[_0x36992f(0x11e)][_0x36992f(0x137)])&&logger['info'](_0x83324b[_0x36992f(0x159)]);}['_shouldLogTestOrderingChecks'](){const _0x394b57=a136_0x2c1db9;return!this[_0x394b57(0x132)]()&&this['orchestrationUtils'][_0x394b57(0x15f)]();}[a136_0x2c1db9(0x117)](){const _0x296916=a136_0x2c1db9;return this[_0x296916(0x177)];}[a136_0x2c1db9(0x178)](_0x583b71){const _0x17d310=a136_0x2c1db9,_0x418a96={};_0x418a96['zFMiR']=_0x17d310(0x16f);const _0x1b1a6f=_0x418a96;this[_0x17d310(0x177)]=_0x583b71,this[_0x17d310(0x149)](_0x1b1a6f[_0x17d310(0x169)],_0x583b71);}[a136_0x2c1db9(0x149)](_0x3c5b91,_0x10d7b3){const _0x28dd59=a136_0x2c1db9;this[_0x28dd59(0x145)][_0x3c5b91]=_0x10d7b3;}[a136_0x2c1db9(0x12f)](){const _0x7f907a=a136_0x2c1db9;return this[_0x7f907a(0x145)];}[a136_0x2c1db9(0x17b)](){const _0x260116=a136_0x2c1db9,_0x5e99be={'OoNoY':function(_0x4a7bb1,_0x121984){return _0x4a7bb1(_0x121984);},'CVBKN':function(_0x44db50,_0x1013f9){return _0x44db50>_0x1013f9;}},_0x1c2051=_0x5e99be[_0x260116(0x144)](parseInt,process['env'][_0x260116(0x11d)]||'1'),_0x88dd72=process[_0x260116(0x10b)][_0x260116(0x13c)];_0x88dd72&&_0x5e99be[_0x260116(0x139)](_0x1c2051,0x1)&&(logger[_0x260116(0x106)](_0x260116(0x16a)+_0x88dd72),this['config'][_0x260116(0x148)]=_0x88dd72);}async[a136_0x2c1db9(0x161)](_0x15816e){const _0x47db3c=a136_0x2c1db9,_0x184168={'OeyAD':function(_0x57e99d,_0x409ece){return _0x57e99d===_0x409ece;},'yEYcO':function(_0x3244f8,_0x49d972){return _0x3244f8===_0x49d972;},'VVceg':_0x47db3c(0x151),'PscHv':function(_0x7db3b1,_0x2e244f){return _0x7db3b1(_0x2e244f);},'AiGSQ':function(_0x2185ec,_0x1c6d4d){return _0x2185ec(_0x1c6d4d);},'YKVkY':_0x47db3c(0x15c),'uROiK':_0x47db3c(0x164),'ZIlnk':_0x47db3c(0x128),'hXnQp':'downloadedTestFilesCount','pdAiL':_0x47db3c(0x143)};try{if(!_0x15816e||!Array['isArray'](_0x15816e)||_0x184168[_0x47db3c(0x16c)](_0x15816e[_0x47db3c(0x13b)],0x0))return null;if(_0x184168['yEYcO'](this['isTestOrchestrationEnabled'](),![]))return logger[_0x47db3c(0x106)](_0x184168[_0x47db3c(0x121)]),null;let _0x3db916=null;const _0x570c8f=this[_0x47db3c(0x111)][_0x47db3c(0x16b)]();if(this[_0x47db3c(0x126)]){const _0x419abf=await this[_0x47db3c(0x126)][_0x47db3c(0x12e)](_0x15816e,_0x570c8f);if(!_0x419abf)return null;_0x3db916=await this[_0x47db3c(0x126)][_0x47db3c(0x173)](_0x419abf);}if(!_0x3db916||!Array['isArray'](_0x3db916)||_0x184168[_0x47db3c(0x16c)](_0x3db916[_0x47db3c(0x13b)],0x0))return null;const _0x2bb8d2=_0x184168[_0x47db3c(0x14a)](parseInt,process[_0x47db3c(0x10b)][_0x47db3c(0x10e)]||'0'),_0x4788ce=_0x184168[_0x47db3c(0x109)](parseInt,process[_0x47db3c(0x10b)][_0x47db3c(0x11d)]||'1');return this[_0x47db3c(0x149)](_0x184168['YKVkY'],_0x15816e['length']),this[_0x47db3c(0x149)](_0x184168[_0x47db3c(0x174)],_0x2bb8d2),this[_0x47db3c(0x149)](_0x184168[_0x47db3c(0x122)],_0x4788ce),this[_0x47db3c(0x149)](_0x184168['hXnQp'],_0x3db916['length']),this[_0x47db3c(0x149)](_0x184168[_0x47db3c(0x168)],this[_0x47db3c(0x126)]?this[_0x47db3c(0x126)][_0x47db3c(0x172)]():0x0),_0x3db916[_0x47db3c(0x140)](_0x2bacf6=>sanitizedFilePath(_0x2bacf6));}catch(_0x2cc14a){return logger[_0x47db3c(0x106)](_0x47db3c(0x135)+(_0x2cc14a[_0x47db3c(0x11b)]||_0x2cc14a[_0x47db3c(0x141)]())),null;}}async[a136_0x2c1db9(0x175)](_0x1319fb,_0x2ff5ed,_0x399e7f){const _0x396776=a136_0x2c1db9,_0x39ca7b={'UkTYZ':function(_0x5770d7,_0x2c0907){return _0x5770d7(_0x2c0907);},'rPGpg':_0x396776(0x13e),'RXcmN':function(_0x2e0bb4,_0x4defcc){return _0x2e0bb4(_0x4defcc);},'LPrTe':'jest-util','vhqQA':function(_0x2c637c,_0x18bc29){return _0x2c637c(_0x18bc29);},'jyoRW':_0x396776(0x114),'onaUc':_0x396776(0x11c),'uTjoc':_0x396776(0x10d),'qXfvp':_0x396776(0x14b),'ltEoJ':function(_0x4121de,_0x21953b,_0x42b063,_0x13c9e7){return _0x4121de(_0x21953b,_0x42b063,_0x13c9e7);},'kEHsc':'npx','RcEoJ':_0x396776(0x12b),'XdLOj':_0x396776(0x155),'UmDqr':_0x396776(0x154),'fTFUK':_0x396776(0x166),'NYhYa':function(_0x5cef5d,_0x341d3f,_0x4963e1,_0x404186){return _0x5cef5d(_0x341d3f,_0x4963e1,_0x404186);}};try{const {getTestPathPatterns:_0x38d115}=_0x39ca7b['UkTYZ'](require,_0x39ca7b[_0x396776(0x142)]),{globsToMatcher:_0x32d1cd}=_0x39ca7b[_0x396776(0x150)](require,_0x39ca7b['LPrTe']),{findRelatedTests:_0x3af76f}=_0x39ca7b[_0x396776(0x147)](require,_0x39ca7b[_0x396776(0x120)]),_0x2c8655=_0x39ca7b['UkTYZ'](require,_0x39ca7b[_0x396776(0x157)]),_0x5074e3=_0x1319fb[_0x396776(0x162)]||[_0x39ca7b[_0x396776(0x13d)],_0x39ca7b[_0x396776(0x107)]],_0x35c73f=_0x1319fb[_0x396776(0x134)]||[],_0x4efe13=_0x39ca7b[_0x396776(0x13a)](spawnSync,_0x39ca7b['kEHsc'],[_0x39ca7b[_0x396776(0x170)],_0x39ca7b[_0x396776(0x113)],_0x399e7f,..._0x2ff5ed,_0x39ca7b['UmDqr']],{'encoding':_0x39ca7b[_0x396776(0x131)]});let _0x1dc239=[];!_0x4efe13[_0x396776(0x12c)]&&(_0x1dc239=_0x4efe13[_0x396776(0x110)][_0x396776(0x13f)]('\x0a')['filter'](Boolean));logger['debug'](_0x396776(0x160)+JSON['stringify'](_0x1dc239)+_0x396776(0x129));const _0x1f58af={};_0x1f58af[_0x396776(0x123)]=!![],_0x1f58af[_0x396776(0x158)]=_0x35c73f;const _0x5c33fa=_0x39ca7b[_0x396776(0x16e)](micromatch,_0x1dc239,_0x5074e3,_0x1f58af)[_0x396776(0x140)](_0xb4d48d=>path[_0x396776(0x133)](_0x1319fb[_0x396776(0x15e)],_0xb4d48d));return logger[_0x396776(0x106)]('Filterted\x20to\x20test\x20files:\x20'+JSON[_0x396776(0x152)](_0x5c33fa)+'\x20files'),_0x5c33fa;}catch(_0x19de44){return logger[_0x396776(0x106)](_0x396776(0x118)+_0x19de44),[];}}}module['exports']=TestOrchestrationHandler;function a136_0x1e3b(){const _0x3e0b0e=['reorderTestFiles','testMatch','./testOrderingServerHandler','nodeIndex','_initializeTestOrdering','utf-8','../helper','pdAiL','zFMiR','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','getTestOrderingName','OeyAD','info','NYhYa','applied','RcEoJ','path','getSplitTestsAPICallCount','getOrderedTestFiles','uROiK','findTestFiles','0|5|1|4|3|2','testOrderingApplied','setTestOrderingApplied','XhRnk','DTRBe','updateBuildIdentifier','debug','qXfvp','4FAKlNH','AiGSQ','11NQTcpq','env','12pcFapw','**/__tests__/**/*.[jt]s?(x)','BROWSERSTACK_NODE_INDEX','Ovljp','stdout','orchestrationUtils','3832490CPfvzD','XdLOj','jest-runner','aFtBg','XIhKK','isTestOrderingApplied','Error\x20finding\x20test\x20files:\x20','207046qUnLrk','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','stack','glob','BROWSERSTACK_TOTAL_NODE_COUNT','config','1640853yMEYUs','jyoRW','VVceg','ZIlnk','matchBase','logTestOrderingChecks','../logger','testOrderingServerHandler','_shouldLogTestOrderingChecks','totalNodes','\x20files','projectName','jest','error','1044139FbQYgD','splitTests','getOrderingInstrumentationData','7677fCBFSK','fTFUK','isTestOrchestrationEnabled','relative','testPathIgnorePatterns','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','ppQBB','testObservability','./orchestrationUtils','CVBKN','ltEoJ','length','BROWSERSTACK_BUILD_RUN_IDENTIFIER','uTjoc','jest-config','split','map','toString','rPGpg','splitTestsAPICallCount','OoNoY','orderingInstrumentationData','4280900Bxjrhd','vhqQA','buildIdentifier','addToOrderingInstrumentationData','PscHv','**/?(*.)+(spec|test).[jt]s?(x)','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','3208bVZaDp','winstonLogger','buildName','RXcmN','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','stringify','HuoQU','--listTests','--config','2GjyTVv','onaUc','ignore','bbaae','1860552IRxxda','aYWZl','uploadedTestFilesCount','Test\x20orchestration\x20without\x20test\x20ordering','rootDir','testOrderingEnabled','Found\x20test\x20files:\x20'];a136_0x1e3b=function(){return _0x3e0b0e;};return a136_0x1e3b();}
1
+ const a136_0x5bf40e=a136_0x5e14;(function(_0x4e0530,_0x578028){const _0x149fe6=a136_0x5e14,_0x46d810=_0x4e0530();while(!![]){try{const _0x5dd992=parseInt(_0x149fe6(0x198))/0x1+-parseInt(_0x149fe6(0x1ab))/0x2+parseInt(_0x149fe6(0x1b5))/0x3+parseInt(_0x149fe6(0x1a8))/0x4+parseInt(_0x149fe6(0x1bc))/0x5*(-parseInt(_0x149fe6(0x19b))/0x6)+-parseInt(_0x149fe6(0x1cf))/0x7*(-parseInt(_0x149fe6(0x1c9))/0x8)+-parseInt(_0x149fe6(0x1cb))/0x9;if(_0x5dd992===_0x578028)break;else _0x46d810['push'](_0x46d810['shift']());}catch(_0x742196){_0x46d810['push'](_0x46d810['shift']());}}}(a136_0x58aa,0x3f209));function a136_0x5e14(_0x55bbd0,_0x19aaf1){const _0x58aaf8=a136_0x58aa();return a136_0x5e14=function(_0x5e1494,_0x11223e){_0x5e1494=_0x5e1494-0x175;let _0x255452=_0x58aaf8[_0x5e1494];return _0x255452;},a136_0x5e14(_0x55bbd0,_0x19aaf1);}const logger=require('../logger')[a136_0x5bf40e(0x1d8)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a136_0x5bf40e(0x191)),TestOrderingServerHandler=require(a136_0x5bf40e(0x18c)),OrchestrationUtils=require(a136_0x5bf40e(0x1aa)),path=require(a136_0x5bf40e(0x1b7)),{spawnSync}=require(a136_0x5bf40e(0x182)),micromatch=require('micromatch'),fs=require('fs');class TestOrchestrationHandler{constructor(_0x39950a){const _0x1db0e7=a136_0x5bf40e,_0x28b59c={};_0x28b59c[_0x1db0e7(0x1a3)]=_0x1db0e7(0x1d2);const _0x33571e=_0x28b59c,_0x13ce8f=_0x33571e[_0x1db0e7(0x1a3)]['split']('|');let _0x28e11f=0x0;while(!![]){switch(_0x13ce8f[_0x28e11f++]){case'0':this['config']=_0x39950a;continue;case'1':this[_0x1db0e7(0x1d9)]=null;continue;case'2':this[_0x1db0e7(0x196)]();continue;case'3':this[_0x1db0e7(0x1ca)]=new OrchestrationUtils(_0x39950a);continue;case'4':this[_0x1db0e7(0x179)]={};continue;case'5':this['testOrderingApplied']=![];continue;}break;}}[a136_0x5bf40e(0x1c4)](){const _0x2b4daa=a136_0x5bf40e,_0x2bce15={'HBCMH':function(_0x40723d,_0x15020b){return _0x40723d(_0x15020b);},'cQmvU':function(_0x4683a7,_0x42fe4d){return _0x4683a7(_0x42fe4d);},'VWith':function(_0x332a6a,_0x96fd63){return _0x332a6a(_0x96fd63);},'lXoiO':function(_0x4b7ae3,_0x7aaeb3){return _0x4b7ae3(_0x7aaeb3);},'hYlBU':function(_0xfc99db,_0x5024f4){return _0xfc99db&&_0x5024f4;}},_0x44a322=_0x2bce15['HBCMH'](isNotUndefined,this[_0x2b4daa(0x1b4)])&&(_0x2bce15[_0x2b4daa(0x1d3)](isUndefined,this[_0x2b4daa(0x1b4)][_0x2b4daa(0x1c1)])||_0x2bce15['cQmvU'](isTrueString,this['config']['testObservability'])),_0x476d82=this[_0x2b4daa(0x1ca)][_0x2b4daa(0x17e)](),_0x804fb7=_0x2bce15[_0x2b4daa(0x1b9)](isNotUndefined,this['config'])&&_0x2bce15[_0x2b4daa(0x1d3)](isNotUndefined,this[_0x2b4daa(0x1b4)][_0x2b4daa(0x18b)]),_0x2a80c5=_0x2bce15['HBCMH'](isNotUndefined,this['config'])&&_0x2bce15[_0x2b4daa(0x1a9)](isNotUndefined,this[_0x2b4daa(0x1b4)]['buildName']);return _0x2bce15[_0x2b4daa(0x178)](_0x44a322,_0x476d82)&&_0x804fb7&&_0x2a80c5;}[a136_0x5bf40e(0x196)](){const _0x491d97=a136_0x5bf40e,_0x5ec02a={};_0x5ec02a[_0x491d97(0x184)]=_0x491d97(0x1a1),_0x5ec02a[_0x491d97(0x18d)]='Test\x20orchestration\x20without\x20test\x20ordering';const _0xbb069a=_0x5ec02a;this[_0x491d97(0x1c4)]()?(this['testOrderingServerHandler']=new TestOrderingServerHandler(this['config']),logger[_0x491d97(0x18a)](_0xbb069a[_0x491d97(0x184)])):(logger[_0x491d97(0x17d)](_0xbb069a[_0x491d97(0x18d)]),this['logTestOrderingChecks']());}[a136_0x5bf40e(0x17a)](){const _0x1c1e86=a136_0x5bf40e,_0x2449a9={'ntlyR':function(_0x4d433d,_0x42470e){return _0x4d433d(_0x42470e);},'cYepH':'Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','OXWWN':function(_0x2593b9,_0x2ff9c8){return _0x2593b9(_0x2ff9c8);},'FLwfE':function(_0x5e83ea,_0x341ac9){return _0x5e83ea(_0x341ac9);},'ZUVZf':_0x1c1e86(0x1dd)};if(!this[_0x1c1e86(0x1a0)]())return;(!_0x2449a9[_0x1c1e86(0x1a6)](isNotUndefined,this[_0x1c1e86(0x1b4)])||!_0x2449a9[_0x1c1e86(0x1a6)](isNotUndefined,this[_0x1c1e86(0x1b4)]['buildName'])||!_0x2449a9[_0x1c1e86(0x1a6)](isNotUndefined,this[_0x1c1e86(0x1b4)][_0x1c1e86(0x18b)]))&&logger[_0x1c1e86(0x18a)](_0x2449a9[_0x1c1e86(0x19c)]),_0x2449a9[_0x1c1e86(0x1a2)](isNotUndefined,this[_0x1c1e86(0x1b4)])&&_0x2449a9[_0x1c1e86(0x1c5)](isNotUndefined,this['config'][_0x1c1e86(0x1c1)])&&!_0x2449a9['ntlyR'](isTrueString,this[_0x1c1e86(0x1b4)]['testObservability'])&&logger[_0x1c1e86(0x18a)](_0x2449a9[_0x1c1e86(0x1b1)]);}[a136_0x5bf40e(0x1a0)](){const _0x5ea9f0=a136_0x5bf40e;return!this[_0x5ea9f0(0x1c4)]()&&this[_0x5ea9f0(0x1ca)][_0x5ea9f0(0x17e)]();}[a136_0x5bf40e(0x177)](){return this['testOrderingApplied'];}['setTestOrderingApplied'](_0x4b8382){const _0x3ae5c0=a136_0x5bf40e,_0xd3b35b={};_0xd3b35b[_0x3ae5c0(0x175)]='applied';const _0x4990b7=_0xd3b35b;this[_0x3ae5c0(0x1a7)]=_0x4b8382,this[_0x3ae5c0(0x19e)](_0x4990b7[_0x3ae5c0(0x175)],_0x4b8382);}[a136_0x5bf40e(0x19e)](_0x2dd7c3,_0x5b05ea){this['orderingInstrumentationData'][_0x2dd7c3]=_0x5b05ea;}[a136_0x5bf40e(0x192)](){return this['orderingInstrumentationData'];}['updateBuildIdentifier'](){const _0x1028ff=a136_0x5bf40e,_0x4e6d93={'eFvRo':function(_0x4e1fb2,_0x59e7a3){return _0x4e1fb2(_0x59e7a3);},'awPqL':function(_0x391b9d,_0x36824b){return _0x391b9d>_0x36824b;}},_0x18434c=_0x4e6d93['eFvRo'](parseInt,process[_0x1028ff(0x18e)][_0x1028ff(0x1d4)]||'1'),_0xf0344b=process[_0x1028ff(0x18e)][_0x1028ff(0x1c6)];_0xf0344b&&_0x4e6d93[_0x1028ff(0x1de)](_0x18434c,0x1)&&(logger['debug'](_0x1028ff(0x1bd)+_0xf0344b),this[_0x1028ff(0x1b4)]['buildIdentifier']=_0xf0344b);}async['reorderTestFiles'](_0x1d1ee5){const _0xbcbba7=a136_0x5bf40e,_0x4b834c={'EVBwY':function(_0x4b310b,_0x12a56c){return _0x4b310b===_0x12a56c;},'WLjiS':_0xbcbba7(0x1cd),'dcwnE':function(_0x5de5c5,_0x11867e){return _0x5de5c5(_0x11867e);},'aKrbc':function(_0x4e8597,_0xb6b476){return _0x4e8597(_0xb6b476);},'mytSW':'uploadedTestFilesCount','EtbRW':'nodeIndex','ZBjcS':_0xbcbba7(0x187),'TFuHl':_0xbcbba7(0x189),'eoums':_0xbcbba7(0x181)};try{if(!_0x1d1ee5||!Array[_0xbcbba7(0x195)](_0x1d1ee5)||_0x4b834c['EVBwY'](_0x1d1ee5[_0xbcbba7(0x1c7)],0x0))return null;if(_0x4b834c[_0xbcbba7(0x17f)](this[_0xbcbba7(0x1c4)](),![]))return logger[_0xbcbba7(0x17d)](_0x4b834c[_0xbcbba7(0x199)]),null;let _0x51ec45=null;const _0x3d4ddd=this[_0xbcbba7(0x1ca)][_0xbcbba7(0x1df)]();if(this[_0xbcbba7(0x1d9)]){const _0x4d959c=await this[_0xbcbba7(0x1d9)][_0xbcbba7(0x19d)](_0x1d1ee5,_0x3d4ddd);if(!_0x4d959c)return null;_0x51ec45=await this[_0xbcbba7(0x1d9)][_0xbcbba7(0x1ad)](_0x4d959c);}if(!_0x51ec45||!Array[_0xbcbba7(0x195)](_0x51ec45)||_0x4b834c[_0xbcbba7(0x17f)](_0x51ec45[_0xbcbba7(0x1c7)],0x0))return null;const _0x4c9930=_0x4b834c[_0xbcbba7(0x1da)](parseInt,process[_0xbcbba7(0x18e)][_0xbcbba7(0x1c0)]||'0'),_0x4a676a=_0x4b834c[_0xbcbba7(0x1c3)](parseInt,process['env'][_0xbcbba7(0x1d4)]||'1');return this['addToOrderingInstrumentationData'](_0x4b834c[_0xbcbba7(0x19a)],_0x1d1ee5[_0xbcbba7(0x1c7)]),this['addToOrderingInstrumentationData'](_0x4b834c[_0xbcbba7(0x1ba)],_0x4c9930),this[_0xbcbba7(0x19e)](_0x4b834c[_0xbcbba7(0x1bb)],_0x4a676a),this['addToOrderingInstrumentationData'](_0x4b834c[_0xbcbba7(0x1d7)],_0x51ec45['length']),this[_0xbcbba7(0x19e)](_0x4b834c[_0xbcbba7(0x1b8)],this[_0xbcbba7(0x1d9)]?this[_0xbcbba7(0x1d9)][_0xbcbba7(0x1e0)]():0x0),_0x51ec45[_0xbcbba7(0x1c2)](_0x1ae1c8=>sanitizedFilePath(_0x1ae1c8));}catch(_0x2c5985){return logger[_0xbcbba7(0x17d)](_0xbcbba7(0x185)+(_0x2c5985[_0xbcbba7(0x1e1)]||_0x2c5985[_0xbcbba7(0x1a4)]())),null;}}async['findTestFiles'](_0x18375f,_0xe3f676,_0x1d49a0){const _0x559623=a136_0x5bf40e,_0x699eb1={'EeaUJ':function(_0x5eb1f0,_0x182cb5){return _0x5eb1f0(_0x182cb5);},'apRHK':_0x559623(0x1d6),'Iedwq':'jest-util','chUUs':function(_0x248f46,_0x749462){return _0x248f46(_0x749462);},'qTMhN':_0x559623(0x193),'rUEjX':function(_0x2404d5,_0x2d07fd){return _0x2404d5(_0x2d07fd);},'WzKUa':_0x559623(0x1be),'ABDnq':_0x559623(0x1b2),'KlXls':_0x559623(0x197),'uJFzd':function(_0x451bd1,_0x5689f4,_0x29daea,_0x15988a){return _0x451bd1(_0x5689f4,_0x29daea,_0x15988a);},'OjFIS':_0x559623(0x1af),'qbDbp':_0x559623(0x17c),'iiQmf':'--config','EouDf':_0x559623(0x1cc),'XUaNp':_0x559623(0x1d0),'mFFMv':function(_0x58acaf,_0xb4cef2,_0x1f73bd,_0x3eb9ac){return _0x58acaf(_0xb4cef2,_0x1f73bd,_0x3eb9ac);}};try{const {getTestPathPatterns:_0x2c8b0c}=_0x699eb1[_0x559623(0x17b)](require,_0x699eb1[_0x559623(0x1b6)]),{globsToMatcher:_0x74a49a}=_0x699eb1[_0x559623(0x17b)](require,_0x699eb1[_0x559623(0x1ce)]),{findRelatedTests:_0x2ac65f}=_0x699eb1['chUUs'](require,_0x699eb1[_0x559623(0x1b0)]),_0x4a8750=_0x699eb1['rUEjX'](require,_0x699eb1[_0x559623(0x1ac)]),_0x3f4f1a=_0x18375f[_0x559623(0x19f)]||[_0x699eb1['ABDnq'],_0x699eb1[_0x559623(0x180)]],_0x514334=_0x18375f[_0x559623(0x1d5)]||[],_0x337ee7=_0x699eb1['uJFzd'](spawnSync,_0x699eb1[_0x559623(0x1ae)],[_0x699eb1[_0x559623(0x176)],_0x699eb1[_0x559623(0x188)],_0x1d49a0,..._0xe3f676,_0x699eb1[_0x559623(0x186)]],{'encoding':_0x699eb1[_0x559623(0x190)]});let _0x41c1ea=[];!_0x337ee7[_0x559623(0x1b3)]&&(_0x41c1ea=_0x337ee7['stdout']['split']('\x0a')[_0x559623(0x183)](Boolean));logger['debug'](_0x559623(0x1db)+JSON[_0x559623(0x1dc)](_0x41c1ea)+'\x20files');const _0x37a346={};_0x37a346[_0x559623(0x1d1)]=!![],_0x37a346['ignore']=_0x514334;const _0x5baa49=_0x699eb1['mFFMv'](micromatch,_0x41c1ea,_0x3f4f1a,_0x37a346)[_0x559623(0x1c2)](_0x56f24a=>path[_0x559623(0x194)](_0x18375f['rootDir'],_0x56f24a));return logger[_0x559623(0x17d)](_0x559623(0x1bf)+JSON[_0x559623(0x1dc)](_0x5baa49)+_0x559623(0x18f)),_0x5baa49;}catch(_0x20c627){return logger[_0x559623(0x17d)](_0x559623(0x1a5)+_0x20c627),[];}}}function a136_0x58aa(){const _0x40aba6=['ZUVZf','**/__tests__/**/*.[jt]s?(x)','error','config','1349436PSVRPh','apRHK','path','eoums','VWith','EtbRW','ZBjcS','6565rSLxed','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','glob','Filterted\x20to\x20test\x20files:\x20','BROWSERSTACK_NODE_INDEX','testObservability','map','aKrbc','isTestOrchestrationEnabled','FLwfE','BROWSERSTACK_BUILD_RUN_IDENTIFIER','length','exports','104ghMzWU','orchestrationUtils','3537162uhuMTs','--listTests','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','Iedwq','53039YWYyEY','utf-8','matchBase','0|4|5|1|3|2','cQmvU','BROWSERSTACK_TOTAL_NODE_COUNT','testPathIgnorePatterns','jest-config','TFuHl','winstonLogger','testOrderingServerHandler','dcwnE','Found\x20test\x20files:\x20','stringify','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','awPqL','getTestOrderingName','getSplitTestsAPICallCount','stack','SbGvu','qbDbp','isTestOrderingApplied','hYlBU','orderingInstrumentationData','logTestOrderingChecks','EeaUJ','jest','debug','testOrderingEnabled','EVBwY','KlXls','splitTestsAPICallCount','child_process','filter','qUAvq','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','EouDf','totalNodes','iiQmf','downloadedTestFilesCount','info','projectName','./testOrderingServerHandler','gZUWj','env','\x20files','XUaNp','../helper','getOrderingInstrumentationData','jest-runner','relative','isArray','_initializeTestOrdering','**/?(*.)+(spec|test).[jt]s?(x)','101878gMUPbI','WLjiS','mytSW','426vdrLIc','cYepH','splitTests','addToOrderingInstrumentationData','testMatch','_shouldLogTestOrderingChecks','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','OXWWN','GJdtu','toString','Error\x20finding\x20test\x20files:\x20','ntlyR','testOrderingApplied','669708JFFCxq','lXoiO','./orchestrationUtils','145616OSkLPC','WzKUa','getOrderedTestFiles','OjFIS','npx','qTMhN'];a136_0x58aa=function(){return _0x40aba6;};return a136_0x58aa();}module[a136_0x5bf40e(0x1c8)]=TestOrchestrationHandler;
@@ -1 +1 @@
1
- const a137_0x594ce2=a137_0xb1b4;function a137_0x3b9d(){const _0x4c12b8=['stringify','cjCMo','winstonLogger','resultUrl','174xSZtcP','17006247HqEglG','hostname','getOrderedTestFiles','5914180rzpLbc','1156280bzmNbZ','toString','[getOrderedTestFiles]\x20Exception\x20in\x20fetching\x20ordered\x20test\x20files:\x20','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL:\x20',',\x20timeoutUrl:\x20','../logger','WhrTg','NTHHB','zmyvt','config','21094OOlOta','timeoutUrl','98eWOHVg','filePath','[getOrderedTestFiles]\x20Response\x20from\x20result\x20URL:\x20','processSplitTestsResponse','platform','vaJGv','tests','postSplitFiles','arch','6LnfmYM','8490460ZiYUjm','[splitTests]\x20Exception\x20in\x20sending\x20test\x20files:\x20','timeout','buildName','stack','splitTestsAPICallCount','getSplitTestsAPICallCount','defaultTimeoutInterval','defaultTimeout','[splitTests]\x20Response\x20from\x20split\x20tests\x20API:\x20','_getHostInfo','nlIlC','\x20seconds.','lwyTy','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20timeout\x20URL','494128yLwGCr','map','debug','XcGUB','[processSplitTestsResponse]\x20timeout:\x20','getSplitFiles','btXWQ','[processSplitTestsResponse]\x20Received\x20null\x20value(s)\x20for\x20some\x20attributes\x20in\x20split\x20tests\x20API\x20response','BROWSERSTACK_NODE_INDEX','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL\x20after\x20waiting\x20for\x20','574477YTbFJh','release','now','env','timeoutInterval','BROWSERSTACK_TOTAL_NODE_COUNT','fQIov'];a137_0x3b9d=function(){return _0x4c12b8;};return a137_0x3b9d();}(function(_0x2e774e,_0x56af59){const _0x442249=a137_0xb1b4,_0x5d5bc1=_0x2e774e();while(!![]){try{const _0x578275=-parseInt(_0x442249(0x192))/0x1+parseInt(_0x442249(0x1ac))/0x2*(parseInt(_0x442249(0x19d))/0x3)+parseInt(_0x442249(0x1a1))/0x4+-parseInt(_0x442249(0x1b8))/0x5*(parseInt(_0x442249(0x1b7))/0x6)+parseInt(_0x442249(0x1ae))/0x7*(-parseInt(_0x442249(0x188))/0x8)+parseInt(_0x442249(0x19e))/0x9+parseInt(_0x442249(0x1a2))/0xa;if(_0x578275===_0x56af59)break;else _0x5d5bc1['push'](_0x5d5bc1['shift']());}catch(_0x5e6150){_0x5d5bc1['push'](_0x5d5bc1['shift']());}}}(a137_0x3b9d,0xe9eed));function a137_0xb1b4(_0x3c8ded,_0x54cb9b){const _0x3b9d55=a137_0x3b9d();return a137_0xb1b4=function(_0xb1b43,_0x593cfc){_0xb1b43=_0xb1b43-0x17b;let _0x305290=_0x3b9d55[_0xb1b43];return _0x305290;},a137_0xb1b4(_0x3c8ded,_0x54cb9b);}const logger=require(a137_0x594ce2(0x1a7))[a137_0x594ce2(0x19b)],RequestUtils=require('./requestUtils');class TestOrderingServerHandler{constructor(_0x2de9fb){const _0x2d083b=a137_0x594ce2;this[_0x2d083b(0x1ab)]=_0x2de9fb,this[_0x2d083b(0x17e)]=0x0,this[_0x2d083b(0x181)]=0x3c,this[_0x2d083b(0x180)]=0x5;}[a137_0x594ce2(0x17f)](){const _0x1873db=a137_0x594ce2;return this[_0x1873db(0x17e)];}[a137_0x594ce2(0x1b1)](_0x5f5756){const _0x72f4ac=a137_0x594ce2,_0x41c964={};_0x41c964[_0x72f4ac(0x18e)]=_0x72f4ac(0x18f);const _0x5d6880=_0x41c964;if(!_0x5f5756)return null;const _0x4224a5={};return _0x4224a5[_0x72f4ac(0x17b)]=_0x5f5756[_0x72f4ac(0x17b)]||this[_0x72f4ac(0x181)],_0x4224a5['timeoutInterval']=_0x5f5756[_0x72f4ac(0x196)]||this[_0x72f4ac(0x180)],_0x4224a5[_0x72f4ac(0x19c)]=_0x5f5756[_0x72f4ac(0x19c)],_0x4224a5[_0x72f4ac(0x1ad)]=_0x5f5756[_0x72f4ac(0x1ad)],logger[_0x72f4ac(0x18a)]('[processSplitTestsResponse]\x20Processing\x20response:\x20'+JSON[_0x72f4ac(0x199)](_0x5f5756)),logger[_0x72f4ac(0x18a)](_0x72f4ac(0x18c)+_0x5f5756[_0x72f4ac(0x17b)]+',\x20timeoutInterval:\x20'+_0x5f5756[_0x72f4ac(0x196)]+',\x20resultUrl:\x20'+_0x5f5756['resultUrl']+_0x72f4ac(0x1a6)+_0x5f5756['timeoutUrl']),(!_0x5f5756[_0x72f4ac(0x17b)]||!_0x5f5756[_0x72f4ac(0x196)]||!_0x5f5756[_0x72f4ac(0x1ad)]||!_0x5f5756[_0x72f4ac(0x19c)])&&logger[_0x72f4ac(0x18a)](_0x5d6880['btXWQ']),_0x4224a5;}async['splitTests'](_0x38fc2c,_0x58c99d){const _0x2dba46=a137_0x594ce2,_0x290b05={'cjCMo':function(_0x524207,_0x1d03bb){return _0x524207(_0x1d03bb);},'fQIov':function(_0x4eaa3b,_0x440226){return _0x4eaa3b(_0x440226);}};try{const _0x53ac22=_0x290b05[_0x2dba46(0x19a)](parseInt,process[_0x2dba46(0x195)][_0x2dba46(0x190)]||'0'),_0x59f864=_0x290b05[_0x2dba46(0x198)](parseInt,process[_0x2dba46(0x195)][_0x2dba46(0x197)]||'1'),_0x5a4d37=process[_0x2dba46(0x195)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],_0x411527={'nodeIndex':_0x53ac22,'totalNodes':_0x59f864,'projectName':this['config']['projectName'],'buildName':this[_0x2dba46(0x1ab)][_0x2dba46(0x17c)],'buildRunIdentifier':_0x5a4d37,'orchestrationStrategy':_0x58c99d,'hostInfo':this['_getHostInfo'](),'tests':_0x38fc2c[_0x2dba46(0x189)](_0xfafbc6=>({'filePath':_0xfafbc6}))},_0x479e2d=await RequestUtils[_0x2dba46(0x1b5)](_0x411527);return logger[_0x2dba46(0x18a)](_0x2dba46(0x182)+JSON[_0x2dba46(0x199)](_0x479e2d)),this[_0x2dba46(0x17e)]+=0x1,this[_0x2dba46(0x1b1)](_0x479e2d['body']||{});}catch(_0x54686e){return logger['debug'](_0x2dba46(0x1b9)+(_0x54686e[_0x2dba46(0x17d)]||_0x54686e[_0x2dba46(0x1a3)]())),null;}}async[a137_0x594ce2(0x1a0)](_0x36ea22){const _0x3a71cd=a137_0x594ce2,_0x2518a0={};_0x2518a0[_0x3a71cd(0x18b)]='[getOrderedTestFiles]\x20Fetching\x20ordered\x20test\x20files',_0x2518a0[_0x3a71cd(0x1a8)]=function(_0x3d8e42,_0x39ebd6){return _0x3d8e42*_0x39ebd6;},_0x2518a0[_0x3a71cd(0x1aa)]=function(_0x3a0805,_0x11dcd9){return _0x3a0805&&_0x11dcd9;},_0x2518a0[_0x3a71cd(0x186)]=function(_0x2a15dc,_0x7c8a35){return _0x2a15dc<_0x7c8a35;},_0x2518a0[_0x3a71cd(0x1b3)]=function(_0x5eb461,_0x4b83af){return _0x5eb461-_0x4b83af;},_0x2518a0[_0x3a71cd(0x184)]=_0x3a71cd(0x187),_0x2518a0[_0x3a71cd(0x1a9)]=function(_0x2f9815,_0x1955c2){return _0x2f9815>_0x1955c2;};const _0x47876a=_0x2518a0;if(!_0x36ea22)return null;try{logger[_0x3a71cd(0x18a)](_0x47876a[_0x3a71cd(0x18b)]);const _0x3f1229=_0x36ea22[_0x3a71cd(0x196)]||this[_0x3a71cd(0x180)],_0x4b303d=_0x47876a[_0x3a71cd(0x1a8)](_0x36ea22[_0x3a71cd(0x17b)]||this[_0x3a71cd(0x181)],0x3e8),_0x527ec6=_0x36ea22[_0x3a71cd(0x1ad)],_0x2d522d=_0x36ea22[_0x3a71cd(0x19c)];if(_0x47876a[_0x3a71cd(0x1aa)](!_0x2d522d,!_0x527ec6))return null;let _0x368def=null;const _0x133e5c=Date[_0x3a71cd(0x194)]();while(_0x2d522d&&_0x47876a[_0x3a71cd(0x186)](_0x47876a[_0x3a71cd(0x1b3)](Date[_0x3a71cd(0x194)](),_0x133e5c),_0x4b303d)){logger['debug'](_0x3a71cd(0x1a5)+_0x2d522d);const _0x43d2c0=await RequestUtils[_0x3a71cd(0x18d)](_0x2d522d);logger['debug'](_0x3a71cd(0x1b0)+JSON[_0x3a71cd(0x199)](_0x43d2c0)),this[_0x3a71cd(0x17e)]+=0x1;if(_0x43d2c0&&_0x43d2c0[_0x3a71cd(0x1b4)]){_0x368def=_0x43d2c0[_0x3a71cd(0x1b4)];break;}await new Promise(_0x1a787b=>setTimeout(_0x1a787b,_0x3f1229*0x3e8)),logger[_0x3a71cd(0x18a)](_0x3a71cd(0x191)+_0x3f1229+_0x3a71cd(0x185));}if(_0x47876a[_0x3a71cd(0x1aa)](!_0x368def,_0x527ec6)){logger[_0x3a71cd(0x18a)](_0x47876a[_0x3a71cd(0x184)]);const _0x248487=await RequestUtils[_0x3a71cd(0x18d)](_0x527ec6);_0x248487&&_0x248487[_0x3a71cd(0x1b4)]&&(_0x368def=_0x248487['tests']);}if(_0x368def&&_0x47876a[_0x3a71cd(0x1a9)](_0x368def['length'],0x0))return _0x368def[_0x3a71cd(0x189)](_0x15cd2a=>_0x15cd2a[_0x3a71cd(0x1af)]);return null;}catch(_0x1d4218){return logger[_0x3a71cd(0x18a)](_0x3a71cd(0x1a4)+(_0x1d4218[_0x3a71cd(0x17d)]||_0x1d4218[_0x3a71cd(0x1a3)]())),null;}}[a137_0x594ce2(0x183)](){const _0x3160e7=a137_0x594ce2,_0x5dab3f={'RtVsX':function(_0x258c81,_0x59bf2d){return _0x258c81(_0x59bf2d);}},_0x53774f=_0x5dab3f['RtVsX'](require,'os');try{return{'hostname':_0x53774f[_0x3160e7(0x19f)](),'platform':_0x53774f[_0x3160e7(0x1b2)](),'release':_0x53774f[_0x3160e7(0x193)](),'arch':_0x53774f[_0x3160e7(0x1b6)](),'totalmem':_0x53774f['totalmem'](),'freemem':_0x53774f['freemem']()};}catch(_0x2f669a){return{};}}}module['exports']=TestOrderingServerHandler;
1
+ const a137_0x498c80=a137_0x5773;(function(_0x7a8479,_0x5d0a31){const _0x272267=a137_0x5773,_0x4d763c=_0x7a8479();while(!![]){try{const _0x2ec184=parseInt(_0x272267(0x1bb))/0x1+parseInt(_0x272267(0x1a6))/0x2+-parseInt(_0x272267(0x183))/0x3+parseInt(_0x272267(0x18a))/0x4*(-parseInt(_0x272267(0x181))/0x5)+parseInt(_0x272267(0x186))/0x6+parseInt(_0x272267(0x182))/0x7*(-parseInt(_0x272267(0x18b))/0x8)+-parseInt(_0x272267(0x189))/0x9;if(_0x2ec184===_0x5d0a31)break;else _0x4d763c['push'](_0x4d763c['shift']());}catch(_0x4de6bd){_0x4d763c['push'](_0x4d763c['shift']());}}}(a137_0x44b0,0x3302d));function a137_0x44b0(){const _0x78f385=['725438EGsgio','_getHostInfo','gpxcV','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL:\x20','arch',',\x20resultUrl:\x20','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL\x20after\x20waiting\x20for\x20','\x20seconds.','BoJRw','map','defaultTimeoutInterval',',\x20timeoutInterval:\x20','platform','[getOrderedTestFiles]\x20Response\x20from\x20result\x20URL:\x20','config','BROWSERSTACK_TOTAL_NODE_COUNT','freemem','getOrderedTestFiles','stringify','debug','zfPdY','324126VwfefI','[getOrderedTestFiles]\x20Fetching\x20ordered\x20test\x20files','toString','env','[getOrderedTestFiles]\x20Exception\x20in\x20fetching\x20ordered\x20test\x20files:\x20','275505NjQpRv','21tlwECE','395865ABINHS','timeoutUrl','exports','1177260CKdlVK','totalmem','[processSplitTestsResponse]\x20timeout:\x20','688923JnGHHN','4FoYMKK','1094696fSREaE','timeout','processSplitTestsResponse','stack','splitTestsAPICallCount','splitTests','jTVtZ','resultUrl','FVfot','now','BROWSERSTACK_NODE_INDEX','ugHKn','defaultTimeout','[splitTests]\x20Exception\x20in\x20sending\x20test\x20files:\x20','release','IcoOJ','tests','postSplitFiles','winstonLogger','buildName','npSIh','./requestUtils','timeoutInterval','yoEua','BmTLR','[splitTests]\x20Response\x20from\x20split\x20tests\x20API:\x20',',\x20timeoutUrl:\x20'];a137_0x44b0=function(){return _0x78f385;};return a137_0x44b0();}function a137_0x5773(_0x2b36c1,_0x2039d6){const _0x44b01f=a137_0x44b0();return a137_0x5773=function(_0x577303,_0x53ccfc){_0x577303=_0x577303-0x17e;let _0x3eee51=_0x44b01f[_0x577303];return _0x3eee51;},a137_0x5773(_0x2b36c1,_0x2039d6);}const logger=require('../logger')[a137_0x498c80(0x19d)],RequestUtils=require(a137_0x498c80(0x1a0));class TestOrderingServerHandler{constructor(_0x31a143){const _0x292d79=a137_0x498c80;this[_0x292d79(0x1b4)]=_0x31a143,this[_0x292d79(0x18f)]=0x0,this[_0x292d79(0x197)]=0x3c,this['defaultTimeoutInterval']=0x5;}['getSplitTestsAPICallCount'](){return this['splitTestsAPICallCount'];}[a137_0x498c80(0x18d)](_0x5e0703){const _0x3aa73e=a137_0x498c80,_0x3f7b7e={};_0x3f7b7e[_0x3aa73e(0x1a2)]='[processSplitTestsResponse]\x20Received\x20null\x20value(s)\x20for\x20some\x20attributes\x20in\x20split\x20tests\x20API\x20response';const _0x3153e0=_0x3f7b7e;if(!_0x5e0703)return null;const _0x3c90b7={};return _0x3c90b7[_0x3aa73e(0x18c)]=_0x5e0703[_0x3aa73e(0x18c)]||this[_0x3aa73e(0x197)],_0x3c90b7[_0x3aa73e(0x1a1)]=_0x5e0703[_0x3aa73e(0x1a1)]||this[_0x3aa73e(0x1b0)],_0x3c90b7[_0x3aa73e(0x192)]=_0x5e0703['resultUrl'],_0x3c90b7[_0x3aa73e(0x184)]=_0x5e0703[_0x3aa73e(0x184)],logger[_0x3aa73e(0x1b9)]('[processSplitTestsResponse]\x20Processing\x20response:\x20'+JSON['stringify'](_0x5e0703)),logger[_0x3aa73e(0x1b9)](_0x3aa73e(0x188)+_0x5e0703[_0x3aa73e(0x18c)]+_0x3aa73e(0x1b1)+_0x5e0703['timeoutInterval']+_0x3aa73e(0x1ab)+_0x5e0703[_0x3aa73e(0x192)]+_0x3aa73e(0x1a5)+_0x5e0703[_0x3aa73e(0x184)]),(!_0x5e0703[_0x3aa73e(0x18c)]||!_0x5e0703['timeoutInterval']||!_0x5e0703['timeoutUrl']||!_0x5e0703['resultUrl'])&&logger[_0x3aa73e(0x1b9)](_0x3153e0[_0x3aa73e(0x1a2)]),_0x3c90b7;}async[a137_0x498c80(0x190)](_0x229a9a,_0x1d9fe7){const _0x11bb96=a137_0x498c80,_0x461635={'gpxcV':function(_0x221c98,_0x3d9a0f){return _0x221c98(_0x3d9a0f);}};try{const _0x58784d=_0x461635[_0x11bb96(0x1a8)](parseInt,process[_0x11bb96(0x17f)][_0x11bb96(0x195)]||'0'),_0x437b17=_0x461635['gpxcV'](parseInt,process[_0x11bb96(0x17f)][_0x11bb96(0x1b5)]||'1'),_0x521211=process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],_0x245427={'nodeIndex':_0x58784d,'totalNodes':_0x437b17,'projectName':this[_0x11bb96(0x1b4)]['projectName'],'buildName':this[_0x11bb96(0x1b4)][_0x11bb96(0x19e)],'buildRunIdentifier':_0x521211,'orchestrationStrategy':_0x1d9fe7,'hostInfo':this[_0x11bb96(0x1a7)](),'tests':_0x229a9a['map'](_0x39c083=>({'filePath':_0x39c083}))},_0x50e32b=await RequestUtils[_0x11bb96(0x19c)](_0x245427);return logger[_0x11bb96(0x1b9)](_0x11bb96(0x1a4)+JSON[_0x11bb96(0x1b8)](_0x50e32b)),this['splitTestsAPICallCount']+=0x1,this[_0x11bb96(0x18d)](_0x50e32b['body']||{});}catch(_0x3511c4){return logger[_0x11bb96(0x1b9)](_0x11bb96(0x198)+(_0x3511c4[_0x11bb96(0x18e)]||_0x3511c4['toString']())),null;}}async[a137_0x498c80(0x1b7)](_0x432025){const _0x5e7140=a137_0x498c80,_0x36d383={};_0x36d383[_0x5e7140(0x1a3)]=_0x5e7140(0x1bc),_0x36d383[_0x5e7140(0x196)]=function(_0x162fa0,_0x4b6a2e){return _0x162fa0*_0x4b6a2e;},_0x36d383[_0x5e7140(0x191)]=function(_0x17b83b,_0x2e6ac6){return _0x17b83b&&_0x2e6ac6;},_0x36d383[_0x5e7140(0x19a)]=function(_0x5efbfa,_0x477459){return _0x5efbfa<_0x477459;},_0x36d383[_0x5e7140(0x19f)]=function(_0x3809d1,_0x3e137c){return _0x3809d1-_0x3e137c;},_0x36d383[_0x5e7140(0x193)]=function(_0x49fc78,_0xb1adbd){return _0x49fc78&&_0xb1adbd;},_0x36d383['ssmiE']='[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20timeout\x20URL',_0x36d383[_0x5e7140(0x1ae)]=function(_0x12425a,_0x40bb29){return _0x12425a>_0x40bb29;};const _0x1a09d1=_0x36d383;if(!_0x432025)return null;try{logger[_0x5e7140(0x1b9)](_0x1a09d1[_0x5e7140(0x1a3)]);const _0x575dba=_0x432025[_0x5e7140(0x1a1)]||this[_0x5e7140(0x1b0)],_0x1c0040=_0x1a09d1[_0x5e7140(0x196)](_0x432025['timeout']||this['defaultTimeout'],0x3e8),_0x237ff6=_0x432025['timeoutUrl'],_0x12a20d=_0x432025[_0x5e7140(0x192)];if(_0x1a09d1[_0x5e7140(0x191)](!_0x12a20d,!_0x237ff6))return null;let _0x8996fd=null;const _0xac36ed=Date[_0x5e7140(0x194)]();while(_0x12a20d&&_0x1a09d1[_0x5e7140(0x19a)](_0x1a09d1[_0x5e7140(0x19f)](Date[_0x5e7140(0x194)](),_0xac36ed),_0x1c0040)){logger['debug'](_0x5e7140(0x1a9)+_0x12a20d);const _0x14e9d5=await RequestUtils['getSplitFiles'](_0x12a20d);logger['debug'](_0x5e7140(0x1b3)+JSON[_0x5e7140(0x1b8)](_0x14e9d5)),this['splitTestsAPICallCount']+=0x1;if(_0x14e9d5&&_0x14e9d5[_0x5e7140(0x19b)]){_0x8996fd=_0x14e9d5[_0x5e7140(0x19b)];break;}await new Promise(_0x4abf11=>setTimeout(_0x4abf11,_0x575dba*0x3e8)),logger[_0x5e7140(0x1b9)](_0x5e7140(0x1ac)+_0x575dba+_0x5e7140(0x1ad));}if(_0x1a09d1[_0x5e7140(0x193)](!_0x8996fd,_0x237ff6)){logger[_0x5e7140(0x1b9)](_0x1a09d1['ssmiE']);const _0x261b99=await RequestUtils['getSplitFiles'](_0x237ff6);_0x261b99&&_0x261b99[_0x5e7140(0x19b)]&&(_0x8996fd=_0x261b99[_0x5e7140(0x19b)]);}if(_0x8996fd&&_0x1a09d1['BoJRw'](_0x8996fd['length'],0x0))return _0x8996fd[_0x5e7140(0x1af)](_0x4109ed=>_0x4109ed['filePath']);return null;}catch(_0x2df530){return logger[_0x5e7140(0x1b9)](_0x5e7140(0x180)+(_0x2df530[_0x5e7140(0x18e)]||_0x2df530[_0x5e7140(0x17e)]())),null;}}['_getHostInfo'](){const _0x9abd7f=a137_0x498c80,_0x34bd6d={'zfPdY':function(_0x5e8712,_0x13b0cd){return _0x5e8712(_0x13b0cd);}},_0x4ae9bc=_0x34bd6d[_0x9abd7f(0x1ba)](require,'os');try{return{'hostname':_0x4ae9bc['hostname'](),'platform':_0x4ae9bc[_0x9abd7f(0x1b2)](),'release':_0x4ae9bc[_0x9abd7f(0x199)](),'arch':_0x4ae9bc[_0x9abd7f(0x1aa)](),'totalmem':_0x4ae9bc[_0x9abd7f(0x187)](),'freemem':_0x4ae9bc[_0x9abd7f(0x1b6)]()};}catch(_0x2f0539){return{};}}}module[a137_0x498c80(0x185)]=TestOrderingServerHandler;
@@ -1 +1 @@
1
- var a138_0x32daec=a138_0x3237;(function(_0x5adf43,_0x4e1c9c){var _0x435ecf=a138_0x3237,_0x4f0464=_0x5adf43();while(!![]){try{var _0x58abcf=parseInt(_0x435ecf(0x178))/0x1+parseInt(_0x435ecf(0x170))/0x2+-parseInt(_0x435ecf(0x166))/0x3+-parseInt(_0x435ecf(0x17c))/0x4+parseInt(_0x435ecf(0x163))/0x5+parseInt(_0x435ecf(0x164))/0x6*(parseInt(_0x435ecf(0x17d))/0x7)+parseInt(_0x435ecf(0x17b))/0x8*(-parseInt(_0x435ecf(0x174))/0x9);if(_0x58abcf===_0x4e1c9c)break;else _0x4f0464['push'](_0x4f0464['shift']());}catch(_0x1b151e){_0x4f0464['push'](_0x4f0464['shift']());}}}(a138_0x221a,0x9d4ac));function a138_0x221a(){var _0x30b3c2=['HookRunFinished','1554758oPtOwI','LogCreated','ERROR_INVALID_CREDENTIALS','TestSkipped','949275CfONQX','TESTHUB_BUILD_API','ERROR_SDK_DEPRECATED','HookRunStarted','89653aZfXDN','BROWSERSTACK_TESTHUB_JWT','observability','48lMPVRI','380644ENDxoN','133JqzXqI','ERROR_ACCESS_DENIED','ACCESS_DENIED','exports','HookFinished','3552430cZYuZJ','191778CMnpZQ','TestRunStarted','2437608UFaSTC','CBTSessionCreated','ERROR','api/v2/builds','ACCESSIBILITY','accessibility','EVENT','BROWSERSTACK_TESTHUB_UUID','INVALID_CREDENTIALS'];a138_0x221a=function(){return _0x30b3c2;};return a138_0x221a();}var a138_0x439727={};a138_0x439727[a138_0x32daec(0x16e)]=a138_0x32daec(0x172),a138_0x439727['DEPRECATED']=a138_0x32daec(0x176),a138_0x439727[a138_0x32daec(0x160)]=a138_0x32daec(0x15f);var a138_0xf3deb3={};a138_0xf3deb3['TestStarted']=a138_0x32daec(0x165),a138_0xf3deb3['TestFinished']='TestRunFinished',a138_0xf3deb3[a138_0x32daec(0x173)]='TestRunSkipped',a138_0xf3deb3[a138_0x32daec(0x171)]=a138_0x32daec(0x171),a138_0xf3deb3['HookStarted']=a138_0x32daec(0x177),a138_0xf3deb3[a138_0x32daec(0x162)]=a138_0x32daec(0x16f),a138_0xf3deb3[a138_0x32daec(0x167)]='CBTSessionCreated';var a138_0x51b9da={};a138_0x51b9da[a138_0x32daec(0x16d)]=a138_0x32daec(0x16d),a138_0x51b9da[a138_0x32daec(0x179)]=a138_0x32daec(0x179);var a138_0x1c280c={};function a138_0x3237(_0x1ef2a4,_0x318a6a){var _0x221aee=a138_0x221a();return a138_0x3237=function(_0x32370d,_0x427698){_0x32370d=_0x32370d-0x15f;var _0x297ee0=_0x221aee[_0x32370d];return _0x297ee0;},a138_0x3237(_0x1ef2a4,_0x318a6a);}a138_0x1c280c[a138_0x32daec(0x175)]=a138_0x32daec(0x169),a138_0x1c280c[a138_0x32daec(0x16a)]=a138_0x32daec(0x16b),a138_0x1c280c['OBSERVABILITY']=a138_0x32daec(0x17a),a138_0x1c280c[a138_0x32daec(0x168)]=a138_0x439727,a138_0x1c280c[a138_0x32daec(0x16c)]=a138_0xf3deb3,a138_0x1c280c['ENV_VAR']=a138_0x51b9da,module[a138_0x32daec(0x161)]=a138_0x1c280c;
1
+ var a138_0xd5ff29=a138_0xf363;(function(_0x3f307a,_0x4d0dc7){var _0x5e2231=a138_0xf363,_0x5bbf72=_0x3f307a();while(!![]){try{var _0x585b0a=-parseInt(_0x5e2231(0x19b))/0x1+-parseInt(_0x5e2231(0x19a))/0x2+-parseInt(_0x5e2231(0x195))/0x3*(parseInt(_0x5e2231(0x190))/0x4)+-parseInt(_0x5e2231(0x1a6))/0x5+-parseInt(_0x5e2231(0x1a3))/0x6*(-parseInt(_0x5e2231(0x196))/0x7)+-parseInt(_0x5e2231(0x192))/0x8+parseInt(_0x5e2231(0x1a1))/0x9;if(_0x585b0a===_0x4d0dc7)break;else _0x5bbf72['push'](_0x5bbf72['shift']());}catch(_0xc1d3f3){_0x5bbf72['push'](_0x5bbf72['shift']());}}}(a138_0x4ed6,0xb5925));var a138_0x5cffab={};a138_0x5cffab['INVALID_CREDENTIALS']=a138_0xd5ff29(0x1a2),a138_0x5cffab[a138_0xd5ff29(0x18e)]='ERROR_SDK_DEPRECATED',a138_0x5cffab[a138_0xd5ff29(0x19d)]='ERROR_ACCESS_DENIED';var a138_0x54ea56={};a138_0x54ea56[a138_0xd5ff29(0x19f)]=a138_0xd5ff29(0x193),a138_0x54ea56[a138_0xd5ff29(0x18d)]=a138_0xd5ff29(0x1a7),a138_0x54ea56[a138_0xd5ff29(0x1a0)]=a138_0xd5ff29(0x194),a138_0x54ea56['LogCreated']=a138_0xd5ff29(0x19e),a138_0x54ea56[a138_0xd5ff29(0x18f)]=a138_0xd5ff29(0x198),a138_0x54ea56[a138_0xd5ff29(0x1a5)]='HookRunFinished',a138_0x54ea56['CBTSessionCreated']=a138_0xd5ff29(0x18b);function a138_0xf363(_0x566ecf,_0x3d741d){var _0x4ed6c2=a138_0x4ed6();return a138_0xf363=function(_0xf36351,_0x2f0e91){_0xf36351=_0xf36351-0x18b;var _0x1f5fa9=_0x4ed6c2[_0xf36351];return _0x1f5fa9;},a138_0xf363(_0x566ecf,_0x3d741d);}var a138_0x442fbb={};a138_0x442fbb['BROWSERSTACK_TESTHUB_UUID']='BROWSERSTACK_TESTHUB_UUID',a138_0x442fbb['BROWSERSTACK_TESTHUB_JWT']=a138_0xd5ff29(0x19c);var a138_0x22bdde={};function a138_0x4ed6(){var _0x395c18=['BROWSERSTACK_TESTHUB_JWT','ACCESS_DENIED','LogCreated','TestStarted','TestSkipped','12335652mXsSzb','ERROR_INVALID_CREDENTIALS','15684mNKGkN','OBSERVABILITY','HookFinished','3963380YeuXwI','TestRunFinished','ERROR','CBTSessionCreated','ACCESSIBILITY','TestFinished','DEPRECATED','HookStarted','876132bemepR','api/v2/builds','2119096zMeqWQ','TestRunStarted','TestRunSkipped','6cwtLXj','3934KBqToA','ENV_VAR','HookRunStarted','TESTHUB_BUILD_API','934512xrbnul','133094TVOSgh'];a138_0x4ed6=function(){return _0x395c18;};return a138_0x4ed6();}a138_0x22bdde[a138_0xd5ff29(0x199)]=a138_0xd5ff29(0x191),a138_0x22bdde[a138_0xd5ff29(0x18c)]='accessibility',a138_0x22bdde[a138_0xd5ff29(0x1a4)]='observability',a138_0x22bdde[a138_0xd5ff29(0x1a8)]=a138_0x5cffab,a138_0x22bdde['EVENT']=a138_0x54ea56,a138_0x22bdde[a138_0xd5ff29(0x197)]=a138_0x442fbb,module['exports']=a138_0x22bdde;
@@ -1 +1 @@
1
- const a139_0x22e32c=a139_0x176a;(function(_0x1335ac,_0x413f5e){const _0x5c8cea=a139_0x176a,_0xc76d3d=_0x1335ac();while(!![]){try{const _0x1dd49e=-parseInt(_0x5c8cea(0x14b))/0x1*(parseInt(_0x5c8cea(0x123))/0x2)+-parseInt(_0x5c8cea(0x13b))/0x3*(-parseInt(_0x5c8cea(0x162))/0x4)+parseInt(_0x5c8cea(0x161))/0x5+-parseInt(_0x5c8cea(0x152))/0x6*(parseInt(_0x5c8cea(0x13e))/0x7)+-parseInt(_0x5c8cea(0x11b))/0x8*(-parseInt(_0x5c8cea(0x113))/0x9)+parseInt(_0x5c8cea(0xf5))/0xa+-parseInt(_0x5c8cea(0x17a))/0xb*(parseInt(_0x5c8cea(0x14a))/0xc);if(_0x1dd49e===_0x413f5e)break;else _0xc76d3d['push'](_0xc76d3d['shift']());}catch(_0x29feae){_0xc76d3d['push'](_0xc76d3d['shift']());}}}(a139_0x1e6c,0x43c8a));const bsSetupHelper=require(a139_0x22e32c(0x112)),path=require('path'),util=require(a139_0x22e32c(0xf1)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a139_0x22e32c(0x176)),testhubUtils=require(a139_0x22e32c(0x168)),testHubConstants=require('./constants.js'),constants=require(a139_0x22e32c(0x188)),RequestQueueHandler=require('../test-observability/requestQueueHandler.js'),logger=require(a139_0x22e32c(0x15f))[a139_0x22e32c(0x182)],SessionHandler=require('../test-observability/sessionHandler.js'),PerformanceTester=require('../performance/performance-tester.js'),{TESTHUB_EVENTS:PerformanceEvents}=require('../performance/constants'),TestDetails=require(a139_0x22e32c(0x166)),{uploadTraceZip}=require(a139_0x22e32c(0x12e)),{isTurboScaleSession}=require(a139_0x22e32c(0x108)),BrowserstackCLI=require(a139_0x22e32c(0x13a)),OngoingEvents=new Set();let processedTraceZips=![];const addEvent=_0x5e5253=>{OngoingEvents['add'](_0x5e5253);},awaitAllEvents=async()=>{const _0x37c7c6=a139_0x22e32c;return Promise[_0x37c7c6(0x187)](OngoingEvents);};class TestHubHandler{static [a139_0x22e32c(0x164)]=![];static async['launchBuild'](_0x2d71fb,_0x1ad223){const _0x426be7=a139_0x22e32c,_0xb736d0={'fRkrh':function(_0x51a601,_0x2d164b){return _0x51a601||_0x2d164b;},'XcPKI':function(_0x1b0e10,_0x20f957){return _0x1b0e10===_0x20f957;},'obAdc':function(_0x4974d9){return _0x4974d9();},'XpNrF':_0x426be7(0x159),'JQTay':_0x426be7(0xfc),'tDmsJ':'Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','NFPUn':function(_0x3f99e2,_0x143f4f,_0x46cdc7,_0x1b018d,_0x783c4){return _0x3f99e2(_0x143f4f,_0x46cdc7,_0x1b018d,_0x783c4);},'ROjlE':_0x426be7(0x16c),'mZGCS':_0x426be7(0x172),'klyFo':_0x426be7(0x107),'faFbj':_0x426be7(0xed),'reGuy':function(_0x116bff,_0x3bd053){return _0x116bff===_0x3bd053;}};await PerformanceTester[_0x426be7(0x17d)](PerformanceEvents[_0x426be7(0x128)],async()=>{const _0x3cdbed=_0x426be7,_0x1aed0c=Object[_0x3cdbed(0x165)]({},_0x1ad223[_0x3cdbed(0x141)],{'root_dir_path':'','framework':_0x1ad223[_0x3cdbed(0x12b)]}),_0x5bafd2=bsSetupHelper[_0x3cdbed(0x150)](_0x1aed0c),_0x161fbb=bsSetupHelper[_0x3cdbed(0x157)](_0x1aed0c),_0x110c76=_0xb736d0[_0x3cdbed(0x14c)](_0x5bafd2,'')+':'+_0xb736d0[_0x3cdbed(0x14c)](_0x161fbb,'');if(_0xb736d0[_0x3cdbed(0x170)](_0x110c76,':'))return _0xb736d0[_0x3cdbed(0xf9)](isTestObservabilitySession)&&(logger['debug'](_0xb736d0[_0x3cdbed(0x14f)]),process[_0x3cdbed(0x12a)][_0x3cdbed(0x102)]=_0xb736d0[_0x3cdbed(0x185)]),testhubUtils[_0x3cdbed(0x15e)](_0x1aed0c)&&logger[_0x3cdbed(0x175)](_0xb736d0[_0x3cdbed(0x10d)]),[null,null];try{const _0x32a499=await this[_0x3cdbed(0xfe)](_0x1aed0c,_0x2d71fb),_0x93858f=this[_0x3cdbed(0x143)](_0x5bafd2,_0x161fbb),_0x1b3088=await _0xb736d0[_0x3cdbed(0x132)](nodeRequest,_0xb736d0['ROjlE'],testHubConstants[_0x3cdbed(0x178)],_0x32a499,_0x93858f),_0x169c5f=this[_0x3cdbed(0x146)](_0x1aed0c,_0x1b3088,_0x93858f);await this['checkAndSetupPercy'](_0x1ad223,_0x2d71fb);const _0x337205=testhubUtils[_0x3cdbed(0x13f)](_0x1aed0c);process['env'][_0x3cdbed(0x10b)]=JSON['stringify'](_0x337205);if(_0xb736d0['XcPKI'](testhubUtils[_0x3cdbed(0x10e)](_0x1ad223[_0x3cdbed(0x141)]),null)){const _0xb22511=_0x169c5f[_0xb736d0[_0x3cdbed(0xf2)]];_0xb22511&&_0xb22511['authToken']&&_0xb22511[_0x3cdbed(0x11f)]&&(_0x1ad223[_0x3cdbed(0x141)][_0x3cdbed(0x172)]=!![],process[_0x3cdbed(0x12a)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=_0xb736d0[_0x3cdbed(0x144)]);}return _0x169c5f&&_0x169c5f[_0xb736d0[_0x3cdbed(0xf2)]]&&_0x169c5f[_0xb736d0[_0x3cdbed(0xf2)]][_0xb736d0[_0x3cdbed(0xfa)]]&&(process['env'][_0x3cdbed(0x136)]=_0x169c5f[_0xb736d0[_0x3cdbed(0xf2)]][_0xb736d0[_0x3cdbed(0xfa)]]),_0x169c5f;}catch(_0x2fc4a6){if(_0xb736d0[_0x3cdbed(0x181)](_0x2fc4a6[_0x3cdbed(0xfb)],![])){testhubUtils[_0x3cdbed(0x111)](_0x2fc4a6);return;}}})();}static async[a139_0x22e32c(0x11d)](){const _0x1244dc=a139_0x22e32c,_0x3ec4b0={'CILUx':function(_0x5155c8,_0xa7555b,_0x3a8dc2){return _0x5155c8(_0xa7555b,_0x3a8dc2);},'FbKvc':function(_0x3c9247,_0x503772){return _0x3c9247(_0x503772);},'MfuOu':function(_0x2cb234){return _0x2cb234();},'xrhKA':'All\x20trace\x20zip\x20send\x20events\x20complete'};if(processedTraceZips)return;const _0x39e7fa=TestDetails[_0x1244dc(0x147)]();_0x39e7fa[_0x1244dc(0x15c)](({testUId:_0x53b0b3,filePath:_0x4cbec0})=>{const _0x13c189=_0x1244dc;var _0x1b4aa4=_0x3ec4b0[_0x13c189(0x153)](uploadTraceZip,_0x4cbec0,_0x53b0b3);_0x3ec4b0[_0x13c189(0x12d)](addEvent,_0x1b4aa4);});try{await _0x3ec4b0['MfuOu'](awaitAllEvents),logger[_0x1244dc(0x175)](_0x3ec4b0[_0x1244dc(0xf4)]),processedTraceZips=!![];}catch(_0x3a2334){logger[_0x1244dc(0x12c)](_0x1244dc(0x117)+util[_0x1244dc(0x145)](_0x3a2334));}}static async[a139_0x22e32c(0x16d)](_0xf1c1c8,_0x48d71d){const _0x26fa5b=a139_0x22e32c;if(constants[_0x26fa5b(0x148)]['includes'](_0x48d71d)){await _0xf1c1c8['setupPercy']();return;}_0xf1c1c8[_0x26fa5b(0x141)][_0x26fa5b(0x14e)]&&logger[_0x26fa5b(0x175)](_0x26fa5b(0x134)+_0x48d71d+'\x20framework');}static['getAccessibilityOptions'](_0x18c19a){const _0x4b018a=a139_0x22e32c,_0x56703c={'JOJOa':function(_0x538b7d,_0x1ff1ef){return _0x538b7d(_0x1ff1ef);},'latGo':'true'};let _0x5ad078;if(_0x18c19a[_0x4b018a(0x11e)]){const _0x5eca56={};_0x5eca56[_0x4b018a(0x169)]=_0x18c19a['accessibilityOptions'],_0x5ad078=_0x5eca56;}else{const _0x4a15a1={};_0x4a15a1[_0x4b018a(0x169)]={},_0x5ad078=_0x4a15a1;}if((!bsSetupHelper[_0x4b018a(0x130)]()||_0x56703c[_0x4b018a(0x151)](isTurboScaleSession,_0x18c19a))&&testhubUtils['isAccessibilityEnabled'](_0x18c19a)){const _0x4bf74e={};_0x4bf74e[_0x4b018a(0x10c)]=_0x56703c[_0x4b018a(0x13d)],Object[_0x4b018a(0x165)](_0x5ad078[_0x4b018a(0x169)],_0x4bf74e);}return _0x5ad078;}static[a139_0x22e32c(0x143)](_0x1f8838,_0x51acc1){const _0xe59755=a139_0x22e32c,_0x14fcd5={'ixGOW':function(_0x25f134,_0x278d1c){return _0x25f134(_0x278d1c);}},_0x4857fa={};return _0x4857fa['username']=_0x1f8838,_0x4857fa['password']=_0x51acc1,{'auth':_0x4857fa,'headers':_0x14fcd5[_0xe59755(0xf8)](getDefaultHeaders,![])};}static async['generateBuildUpstreamData'](_0x326914,_0xc2992a){const _0x5ec809=a139_0x22e32c,_0x44d02a={'osJSC':_0x5ec809(0x179),'JItZP':function(_0x49163d,_0xf6c98c){return _0x49163d(_0xf6c98c);}};logger[_0x5ec809(0x175)](_0x44d02a[_0x5ec809(0x16a)]);const _0x5136ec={'project_name':_0x326914['projectName']||'','name':_0x326914[_0x5ec809(0x15b)]||path[_0x5ec809(0x154)](path[_0x5ec809(0x119)](process[_0x5ec809(0x129)]())),'build_identifier':_0x326914[_0x5ec809(0x114)],'description':_0x326914[_0x5ec809(0x171)]||'','started_at':new Date()[_0x5ec809(0x17c)](),'tags':_0x44d02a[_0x5ec809(0x13c)](getCustomTags,_0x326914),'host_info':bsSetupHelper[_0x5ec809(0x103)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0x5ec809(0x12a)][_0x5ec809(0x131)],'failed_tests_rerun':process[_0x5ec809(0x12a)][_0x5ec809(0x10f)]||![],'linked_build_uuid':process[_0x5ec809(0x12a)][_0x5ec809(0x135)]||'','version_control':await bsSetupHelper[_0x5ec809(0xf3)](),'accessibility':this[_0x5ec809(0x110)](_0x326914),'framework_details':testhubUtils[_0x5ec809(0x17f)](_0x326914,_0xc2992a),'product_map':testhubUtils[_0x5ec809(0x116)](_0x326914),'browserstackAutomation':bsSetupHelper['isBrowserstackInfra'](),'grouping_identifier':process[_0x5ec809(0x12a)][_0x5ec809(0x186)],'test_orchestration':testhubUtils['getTestOrchestrationBuildStartData'](_0x326914)};if(bsSetupHelper['getCentralUser']()[_0x5ec809(0x127)]||bsSetupHelper[_0x5ec809(0x15a)]()[_0x5ec809(0x158)]){const _0x5d16cb={};_0x5d16cb['job_id']=process[_0x5ec809(0x12a)]['BROWSERSTACK_CENTRAL_SCANNER_JOBID'],_0x5d16cb[_0x5ec809(0x11a)]=process[_0x5ec809(0x12a)][_0x5ec809(0x15d)],_0x5136ec[_0x5ec809(0x127)]=_0x5d16cb;}return _0x5136ec;}static[a139_0x22e32c(0x146)](_0x4cf531,_0x503d56,_0x34169a){const _0x3d37b0=a139_0x22e32c,_0x39206c={'elQkS':function(_0x42a20a){return _0x42a20a();},'sTRev':function(_0x10cef7,_0x2760fa){return _0x10cef7&&_0x2760fa;},'qComh':_0x3d37b0(0x107),'mzqnM':_0x3d37b0(0xfc)},_0x44fd4c={};if(_0x39206c['elQkS'](isTestObservabilitySession)){const [_0x423c33,_0x330c2f,_0x5ad687]=testhubUtils[_0x3d37b0(0x133)](_0x503d56['data'],_0x34169a[_0x3d37b0(0x156)]);if(_0x39206c['sTRev'](_0x423c33,_0x330c2f)){const _0x39411e={};_0x39411e[_0x3d37b0(0x126)]=_0x423c33,_0x39411e[_0x3d37b0(0x11f)]=_0x330c2f,_0x39411e[_0x3d37b0(0x124)]=_0x5ad687,_0x44fd4c[testHubConstants[_0x3d37b0(0x177)]]=_0x39411e,process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=_0x39206c[_0x3d37b0(0x118)];}else _0x44fd4c[testHubConstants[_0x3d37b0(0x177)]]={},process[_0x3d37b0(0x12a)][_0x3d37b0(0x183)]=_0x39206c[_0x3d37b0(0x137)];}else process['env'][_0x3d37b0(0x183)]=_0x39206c[_0x3d37b0(0x137)];const [_0x3e2d8e,_0x3973d8,_0x3d7f8a]=testhubUtils['setAccessibilityVariables'](_0x503d56[_0x3d37b0(0x14d)]);if(_0x39206c[_0x3d37b0(0x155)](_0x3e2d8e,_0x3973d8)){const _0x4aa2bc={};_0x4aa2bc[_0x3d37b0(0x173)]=_0x3e2d8e,_0x4aa2bc[_0x3d37b0(0x11f)]=_0x3973d8,_0x4aa2bc[_0x3d37b0(0xed)]=_0x3d7f8a,_0x44fd4c[testHubConstants[_0x3d37b0(0x100)]]=_0x4aa2bc,process[_0x3d37b0(0x12a)][_0x3d37b0(0x17b)]=_0x39206c[_0x3d37b0(0x118)];}else _0x44fd4c[testHubConstants[_0x3d37b0(0x100)]]={},process[_0x3d37b0(0x12a)]['BROWSERSTACK_ACCESSIBILITY']=_0x39206c['mzqnM'];return testhubUtils[_0x3d37b0(0x11c)](_0x503d56[_0x3d37b0(0x14d)]),logger['info'](_0x3d37b0(0x125)+process[_0x3d37b0(0x12a)][_0x3d37b0(0x142)]),_0x44fd4c;}static async['stop'](_0x5d8903){const _0x10462a=a139_0x22e32c,_0x36f4a3={'fZpkQ':function(_0xb0c180,_0x4f7c57){return _0xb0c180===_0x4f7c57;},'pLPbC':_0x10462a(0xfc),'Gcwsa':'null','PKJXE':function(_0x260c56,_0x5de1df){return _0x260c56===_0x5de1df;},'gDtfH':_0x10462a(0xf6),'REGBJ':_0x10462a(0x12c),'SZPzy':_0x10462a(0x167),'RNcVt':_0x10462a(0xf0),'KbpGZ':'user_killed','DSFKw':function(_0x480824){return _0x480824();},'liXEO':function(_0x2dd854,_0x57b8b1,_0x57960e,_0x32a036,_0x219acc,_0x12536b){return _0x2dd854(_0x57b8b1,_0x57960e,_0x32a036,_0x219acc,_0x12536b);},'IrTLJ':_0x10462a(0x189),'mUKLq':_0x10462a(0x104),'WDteL':_0x10462a(0xfb)};await PerformanceTester['measureWrapper'](PerformanceEvents[_0x10462a(0xf7)],async()=>{const _0x356f4b=_0x10462a;if(_0x36f4a3[_0x356f4b(0x16f)](process[_0x356f4b(0x12a)][_0x356f4b(0x102)],_0x36f4a3[_0x356f4b(0x101)])||TestHubHandler[_0x356f4b(0x164)]||bsSetupHelper[_0x356f4b(0x12f)](process['env'][testHubConstants['ENV_VAR'][_0x356f4b(0x16e)]]))return;TestHubHandler[_0x356f4b(0x164)]=!![];if(BrowserstackCLI[_0x356f4b(0x149)]()[_0x356f4b(0x115)]())return;await this[_0x356f4b(0x11d)](),await RequestQueueHandler[_0x356f4b(0x149)]()[_0x356f4b(0x163)](),await SessionHandler[_0x356f4b(0x106)]();if(_0x36f4a3[_0x356f4b(0x16f)](process[_0x356f4b(0x12a)][testHubConstants[_0x356f4b(0xff)][_0x356f4b(0x16e)]],_0x36f4a3[_0x356f4b(0x17e)])||_0x36f4a3[_0x356f4b(0x139)](process[_0x356f4b(0x12a)][testHubConstants[_0x356f4b(0xff)]['BROWSERSTACK_TESTHUB_UUID']],_0x36f4a3[_0x356f4b(0x17e)])){logger[_0x356f4b(0x175)](_0x36f4a3[_0x356f4b(0x120)]);const _0x5ddec4={};return _0x5ddec4[_0x356f4b(0xef)]=_0x36f4a3[_0x356f4b(0x105)],_0x5ddec4[_0x356f4b(0x174)]=_0x36f4a3[_0x356f4b(0x121)],_0x5ddec4;}const _0x3b3efd={'finished_at':new Date()[_0x356f4b(0x17c)](),'finished_metadata':[]};!!_0x5d8903&&_0x3b3efd[_0x36f4a3[_0x356f4b(0xfd)]][_0x356f4b(0x16b)]({'reason':_0x36f4a3[_0x356f4b(0xee)],'signal':_0x5d8903,'failure_data':''});const _0xf18f4a={'headers':_0x36f4a3['DSFKw'](getDefaultHeaders)};try{const _0x40261b=await _0x36f4a3[_0x356f4b(0x160)](nodeRequest,_0x36f4a3[_0x356f4b(0x18b)],_0x356f4b(0x109)+process[_0x356f4b(0x12a)][testHubConstants[_0x356f4b(0xff)]['BROWSERSTACK_TESTHUB_UUID']]+_0x356f4b(0x138),_0x3b3efd,_0xf18f4a,![]);if(_0x40261b[_0x356f4b(0x14d)]&&_0x40261b[_0x356f4b(0x14d)]['error']){const _0x3505e7={};_0x3505e7[_0x356f4b(0x174)]=_0x40261b[_0x356f4b(0x14d)][_0x356f4b(0x12c)];throw _0x3505e7;}else{logger['debug'](_0x36f4a3[_0x356f4b(0x18a)]);const _0x59d579={};return _0x59d579['status']=_0x36f4a3[_0x356f4b(0x184)],_0x59d579['message']='',_0x59d579;}}catch(_0x185d44){_0x185d44['response']?logger[_0x356f4b(0x175)](_0x356f4b(0x122)+_0x185d44[_0x356f4b(0x140)]['status']+'\x20'+_0x185d44['response']['statusText']+'\x20'+JSON[_0x356f4b(0x10a)](_0x185d44[_0x356f4b(0x140)][_0x356f4b(0x14d)])):logger[_0x356f4b(0x175)](_0x356f4b(0x122)+(_0x185d44[_0x356f4b(0x174)]||_0x185d44));const _0x2956f4={};return _0x2956f4[_0x356f4b(0xef)]=_0x36f4a3[_0x356f4b(0x105)],_0x2956f4[_0x356f4b(0x174)]=_0x185d44['message']||_0x185d44[_0x356f4b(0x140)]?_0x185d44[_0x356f4b(0x140)][_0x356f4b(0xef)]+':'+_0x185d44[_0x356f4b(0x140)][_0x356f4b(0x180)]:_0x185d44,_0x2956f4;}})();}}function a139_0x176a(_0x25d9f0,_0x415232){const _0x1e6c20=a139_0x1e6c();return a139_0x176a=function(_0x176aac,_0x386d97){_0x176aac=_0x176aac-0xed;let _0x2f2d32=_0x1e6c20[_0x176aac];return _0x2f2d32;},a139_0x176a(_0x25d9f0,_0x415232);}module['exports']=TestHubHandler;function a139_0x1e6c(){const _0x367c61=['637153NIncIy','BROWSERSTACK_ACCESSIBILITY','toISOString','measureWrapper','Gcwsa','getFrameworkDetails','statusText','reGuy','winstonLogger','BROWSERSTACK_TEST_OBSERVABILITY','WDteL','JQTay','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER','allSettled','../../bin/utils/constants.js','PUT','mUKLq','IrTLJ','scannerProcessingTimeout','KbpGZ','status','finished_metadata','util','mZGCS','getGitMetaData','xrhKA','3549530hTrjlJ','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','STOP','ixGOW','obAdc','faFbj','success','false','RNcVt','generateBuildUpstreamData','ENV_VAR','ACCESSIBILITY','pLPbC','BS_TESTOPS_BUILD_COMPLETED','getHostInfo','stopBuildUpstream\x20event\x20successful!','REGBJ','waitForBuildStatus','true','../helper.js','api/v1/builds/','stringify','BROWSERSTACK_PRODUCT_MAP','includeEncodedExtension','tDmsJ','getAccessibilityValueFromYml','BROWSERSTACK_RERUN','getAccessibilityOptions','logBuildError','../helper','1928376MpVcrG','buildIdentifier','isRunning','getProductMapForBuildStartCall','Error\x20while\x20waiting\x20for\x20events:\x20','qComh','resolve','token','16fzNUSz','setTestHubCommonMetaInfo','processTraceZips','accessibilityOptions','buildHashedId','gDtfH','SZPzy','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','14582bGjIep','allowScreenshot','Testhub\x20started\x20with\x20id:\x20','jwt','central_scanner','START','cwd','env','framework','error','FbKvc','../../bin/playwright/reporter/pwUtils.js','isUndefined','isBrowserstackInfra','BROWSERSTACK_BUILD_RUN_IDENTIFIER','NFPUn','setTestObservabilityVariables','Percy\x20is\x20not\x20supported\x20for\x20','BROWSERSTACK_LINKED_BUILD_UUID','BROWSERSTACK_TEST_ACCESSIBILITY_SCRIPT_TIMEOUT','mzqnM','/stop','PKJXE','../../bin/v2/browserstackCLI','3trhNQD','JItZP','latGo','796481oSETOM','getProductMap','response','config','BROWSERSTACK_TESTHUB_UUID','getConfig','klyFo','format','extractDataFromResponse','getTraceFilePaths','PERCY_SUPPORTED_FRAMEWORKS','getInstance','204KOVdBS','9foCboI','fRkrh','data','percy','XpNrF','getUserName','JOJOa','6nkPEFN','CILUx','basename','sTRev','auth','getAccessKey','lcnc','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','getCentralUser','buildName','forEach','BROWSERSTACK_CENTRAL_SCANNER_JWT','isAccessibilityEnabled','../logger','liXEO','1403585QxtKqS','1510148pehcLw','uploadPending','buildStopSent','assign','../../bin/playwright/reporter/test-details.js','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','./utils.js','settings','osJSC','push','POST','checkAndSetupPercy','BROWSERSTACK_TESTHUB_JWT','fZpkQ','XcPKI','buildDescription','accessibility','authToken','message','debug','../test-observability/utils','OBSERVABILITY','TESTHUB_BUILD_API','Generating\x20build\x20upstream\x20data\x20for\x20TestHub'];a139_0x1e6c=function(){return _0x367c61;};return a139_0x1e6c();}
1
+ const a139_0x3cdbbb=a139_0xf839;(function(_0x5ba877,_0x230b25){const _0x596b7b=a139_0xf839,_0x37b68f=_0x5ba877();while(!![]){try{const _0x39da85=parseInt(_0x596b7b(0x1ba))/0x1+parseInt(_0x596b7b(0x17b))/0x2+parseInt(_0x596b7b(0x1a4))/0x3+-parseInt(_0x596b7b(0x1a0))/0x4+parseInt(_0x596b7b(0x171))/0x5+parseInt(_0x596b7b(0x1d5))/0x6*(-parseInt(_0x596b7b(0x169))/0x7)+-parseInt(_0x596b7b(0x162))/0x8;if(_0x39da85===_0x230b25)break;else _0x37b68f['push'](_0x37b68f['shift']());}catch(_0x2926a2){_0x37b68f['push'](_0x37b68f['shift']());}}}(a139_0xe0f8,0xc606b));const bsSetupHelper=require(a139_0x3cdbbb(0x17d)),path=require(a139_0x3cdbbb(0x1c5)),util=require(a139_0x3cdbbb(0x193)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a139_0x3cdbbb(0x195)),testhubUtils=require('./utils.js'),testHubConstants=require(a139_0x3cdbbb(0x198)),constants=require(a139_0x3cdbbb(0x1bf)),RequestQueueHandler=require(a139_0x3cdbbb(0x18e)),logger=require(a139_0x3cdbbb(0x1b5))['winstonLogger'],SessionHandler=require(a139_0x3cdbbb(0x1dd)),PerformanceTester=require('../performance/performance-tester.js'),{TESTHUB_EVENTS:PerformanceEvents}=require(a139_0x3cdbbb(0x1d3)),TestDetails=require(a139_0x3cdbbb(0x1e2)),{uploadTraceZip}=require(a139_0x3cdbbb(0x1d9)),{isTurboScaleSession}=require('../helper.js'),BrowserstackCLI=require('../../bin/v2/browserstackCLI'),OngoingEvents=new Set();let processedTraceZips=![];const addEvent=_0x38b853=>{const _0x7f4032=a139_0x3cdbbb;OngoingEvents[_0x7f4032(0x1a6)](_0x38b853);},awaitAllEvents=async()=>{const _0x5aa47e=a139_0x3cdbbb;return Promise[_0x5aa47e(0x1cb)](OngoingEvents);};function a139_0xf839(_0xcd92d3,_0x1e4ed6){const _0xe0f82f=a139_0xe0f8();return a139_0xf839=function(_0xf839dd,_0x3a7703){_0xf839dd=_0xf839dd-0x15e;let _0x212003=_0xe0f82f[_0xf839dd];return _0x212003;},a139_0xf839(_0xcd92d3,_0x1e4ed6);}class TestHubHandler{static [a139_0x3cdbbb(0x1c6)]=![];static async[a139_0x3cdbbb(0x166)](_0x55927,_0xe1ccf9){const _0x4d7d74=a139_0x3cdbbb,_0x2686a4={'mdKfF':function(_0x129b3a,_0x5012e6){return _0x129b3a||_0x5012e6;},'PzZxx':function(_0x8be69a,_0x26f348){return _0x8be69a===_0x26f348;},'VgDns':function(_0x4a8219){return _0x4a8219();},'lKKMF':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','YezZs':'false','LkEnQ':_0x4d7d74(0x1c2),'UyLqC':function(_0x135926,_0x21aeb6,_0xbcd668,_0x73cdd,_0x46dabe){return _0x135926(_0x21aeb6,_0xbcd668,_0x73cdd,_0x46dabe);},'npFxW':_0x4d7d74(0x19d),'vFpEi':_0x4d7d74(0x1df),'dMWHc':_0x4d7d74(0x19c),'xMWho':_0x4d7d74(0x19f)};await PerformanceTester[_0x4d7d74(0x161)](PerformanceEvents[_0x4d7d74(0x16f)],async()=>{const _0x423b0b=_0x4d7d74,_0x221a89=Object[_0x423b0b(0x167)]({},_0xe1ccf9[_0x423b0b(0x181)],{'root_dir_path':'','framework':_0xe1ccf9[_0x423b0b(0x1b8)]}),_0x4a11d6=bsSetupHelper[_0x423b0b(0x1e7)](_0x221a89),_0x501b94=bsSetupHelper[_0x423b0b(0x1a1)](_0x221a89),_0x5be7c2=_0x2686a4[_0x423b0b(0x1cc)](_0x4a11d6,'')+':'+_0x2686a4[_0x423b0b(0x1cc)](_0x501b94,'');if(_0x2686a4[_0x423b0b(0x1ef)](_0x5be7c2,':'))return _0x2686a4[_0x423b0b(0x18d)](isTestObservabilitySession)&&(logger[_0x423b0b(0x1bc)](_0x2686a4[_0x423b0b(0x1ab)]),process[_0x423b0b(0x16c)][_0x423b0b(0x1d4)]=_0x2686a4[_0x423b0b(0x15f)]),testhubUtils[_0x423b0b(0x1e3)](_0x221a89)&&logger['debug'](_0x2686a4[_0x423b0b(0x1ed)]),[null,null];try{const _0x1452fe=await this[_0x423b0b(0x1ec)](_0x221a89,_0x55927),_0x33b63a=this['getConfig'](_0x4a11d6,_0x501b94),_0x621155=await _0x2686a4[_0x423b0b(0x179)](nodeRequest,_0x2686a4[_0x423b0b(0x1e9)],testHubConstants[_0x423b0b(0x1bd)],_0x1452fe,_0x33b63a),_0x551316=this[_0x423b0b(0x1cf)](_0x221a89,_0x621155,_0x33b63a);await this[_0x423b0b(0x194)](_0xe1ccf9,_0x55927);const _0xe14a8=testhubUtils[_0x423b0b(0x1db)](_0x221a89);process[_0x423b0b(0x16c)]['BROWSERSTACK_PRODUCT_MAP']=JSON[_0x423b0b(0x15e)](_0xe14a8);if(_0x2686a4[_0x423b0b(0x1ef)](testhubUtils[_0x423b0b(0x1bb)](_0xe1ccf9[_0x423b0b(0x181)]),null)){const _0x2fd8d8=_0x551316[_0x2686a4[_0x423b0b(0x1c9)]];_0x2fd8d8&&_0x2fd8d8[_0x423b0b(0x191)]&&_0x2fd8d8['buildHashedId']&&(_0xe1ccf9[_0x423b0b(0x181)][_0x423b0b(0x1df)]=!![],process[_0x423b0b(0x16c)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=_0x2686a4['dMWHc']);}return _0x551316&&_0x551316[_0x2686a4['vFpEi']]&&_0x551316[_0x2686a4[_0x423b0b(0x1c9)]][_0x2686a4[_0x423b0b(0x1b4)]]&&(process[_0x423b0b(0x16c)][_0x423b0b(0x163)]=_0x551316[_0x2686a4[_0x423b0b(0x1c9)]][_0x2686a4[_0x423b0b(0x1b4)]]),_0x551316;}catch(_0x1efa51){if(_0x2686a4[_0x423b0b(0x1ef)](_0x1efa51['success'],![])){testhubUtils[_0x423b0b(0x1f0)](_0x1efa51);return;}}})();}static async[a139_0x3cdbbb(0x18a)](){const _0x315d31=a139_0x3cdbbb,_0x4a257c={'vhhkv':function(_0x558671,_0x25f135,_0x4740db){return _0x558671(_0x25f135,_0x4740db);},'YOSnq':function(_0x5b8fc4,_0x4bb7e9){return _0x5b8fc4(_0x4bb7e9);},'oxeys':function(_0x4e567d){return _0x4e567d();},'QjGoO':_0x315d31(0x192)};if(processedTraceZips)return;const _0x5405ff=TestDetails[_0x315d31(0x197)]();_0x5405ff['forEach'](({testUId:_0x4eaecd,filePath:_0x2ff415})=>{const _0x3e0751=_0x315d31;var _0x12c64a=_0x4a257c['vhhkv'](uploadTraceZip,_0x2ff415,_0x4eaecd);_0x4a257c[_0x3e0751(0x1a3)](addEvent,_0x12c64a);});try{await _0x4a257c[_0x315d31(0x168)](awaitAllEvents),logger[_0x315d31(0x1bc)](_0x4a257c[_0x315d31(0x164)]),processedTraceZips=!![];}catch(_0x3cde9a){logger[_0x315d31(0x1c4)](_0x315d31(0x172)+util['format'](_0x3cde9a));}}static async['checkAndSetupPercy'](_0x15cfc4,_0x38730b){const _0x260e85=a139_0x3cdbbb;if(constants[_0x260e85(0x1d0)]['includes'](_0x38730b)){await _0x15cfc4[_0x260e85(0x1b7)]();return;}_0x15cfc4[_0x260e85(0x181)]['percy']&&logger[_0x260e85(0x1bc)]('Percy\x20is\x20not\x20supported\x20for\x20'+_0x38730b+'\x20framework');}static[a139_0x3cdbbb(0x1ac)](_0x527a86){const _0x387f9b=a139_0x3cdbbb,_0x1c3989={'OaYhE':function(_0xc892c0,_0x399ea3){return _0xc892c0(_0x399ea3);},'NmUav':'true'};let _0x5e3924;if(_0x527a86[_0x387f9b(0x1f7)]){const _0x68b95a={};_0x68b95a[_0x387f9b(0x1ad)]=_0x527a86[_0x387f9b(0x1f7)],_0x5e3924=_0x68b95a;}else{const _0x403803={};_0x403803['settings']={},_0x5e3924=_0x403803;}if((!bsSetupHelper[_0x387f9b(0x1d8)]()||_0x1c3989[_0x387f9b(0x1d1)](isTurboScaleSession,_0x527a86))&&testhubUtils['isAccessibilityEnabled'](_0x527a86)){const _0x1667b1={};_0x1667b1['includeEncodedExtension']=_0x1c3989[_0x387f9b(0x1e4)],Object[_0x387f9b(0x167)](_0x5e3924[_0x387f9b(0x1ad)],_0x1667b1);}return _0x5e3924;}static['getConfig'](_0x28caeb,_0x4acdf7){const _0x28dbfa=a139_0x3cdbbb,_0x35d7ab={'lRpOu':function(_0x5b0f8c,_0x156413){return _0x5b0f8c(_0x156413);}},_0x2ec19a={};return _0x2ec19a[_0x28dbfa(0x1e1)]=_0x28caeb,_0x2ec19a[_0x28dbfa(0x1aa)]=_0x4acdf7,{'auth':_0x2ec19a,'headers':_0x35d7ab[_0x28dbfa(0x1b2)](getDefaultHeaders,![])};}static async[a139_0x3cdbbb(0x1ec)](_0x16bc01,_0x1df67c){const _0x1f6aa7=a139_0x3cdbbb,_0x235166={'vuwOE':_0x1f6aa7(0x1e6),'DAazZ':function(_0x17e909,_0x567ed1){return _0x17e909(_0x567ed1);}};logger[_0x1f6aa7(0x1bc)](_0x235166[_0x1f6aa7(0x174)]);const _0x3688e9={'project_name':_0x16bc01[_0x1f6aa7(0x1a8)]||'','name':_0x16bc01[_0x1f6aa7(0x1c0)]||path[_0x1f6aa7(0x1f2)](path[_0x1f6aa7(0x1a2)](process[_0x1f6aa7(0x1e5)]())),'build_identifier':_0x16bc01['buildIdentifier'],'description':_0x16bc01[_0x1f6aa7(0x177)]||'','started_at':new Date()[_0x1f6aa7(0x189)](),'tags':_0x235166[_0x1f6aa7(0x17f)](getCustomTags,_0x16bc01),'host_info':bsSetupHelper[_0x1f6aa7(0x196)](),'ci_info':bsSetupHelper[_0x1f6aa7(0x1ae)](),'build_run_identifier':process[_0x1f6aa7(0x16c)][_0x1f6aa7(0x17e)],'failed_tests_rerun':process[_0x1f6aa7(0x16c)][_0x1f6aa7(0x184)]||![],'linked_build_uuid':process[_0x1f6aa7(0x16c)]['BROWSERSTACK_LINKED_BUILD_UUID']||'','version_control':await bsSetupHelper[_0x1f6aa7(0x1f1)](),'accessibility':this['getAccessibilityOptions'](_0x16bc01),'framework_details':testhubUtils[_0x1f6aa7(0x17c)](_0x16bc01,_0x1df67c),'product_map':testhubUtils[_0x1f6aa7(0x1a9)](_0x16bc01),'browserstackAutomation':bsSetupHelper[_0x1f6aa7(0x1d8)](),'grouping_identifier':process[_0x1f6aa7(0x16c)][_0x1f6aa7(0x19e)],'test_orchestration':testhubUtils['getTestOrchestrationBuildStartData'](_0x16bc01)};if(bsSetupHelper[_0x1f6aa7(0x1c3)]()[_0x1f6aa7(0x1c8)]||bsSetupHelper[_0x1f6aa7(0x1c3)]()[_0x1f6aa7(0x1ce)]){const _0x5d41bd={};_0x5d41bd[_0x1f6aa7(0x1e0)]=process[_0x1f6aa7(0x16c)]['BROWSERSTACK_CENTRAL_SCANNER_JOBID'],_0x5d41bd[_0x1f6aa7(0x173)]=process[_0x1f6aa7(0x16c)][_0x1f6aa7(0x183)],_0x3688e9[_0x1f6aa7(0x1c8)]=_0x5d41bd;}return _0x3688e9;}static[a139_0x3cdbbb(0x1cf)](_0x811fb9,_0x48a6fc,_0x288943){const _0x41c664=a139_0x3cdbbb,_0x4a589f={'ZrRaa':function(_0x294eaf){return _0x294eaf();},'dhmdD':function(_0x5251fc,_0x46d5b1){return _0x5251fc&&_0x46d5b1;},'eeNfk':_0x41c664(0x19c),'AzONM':_0x41c664(0x185),'BScGH':function(_0x23d5e5,_0x1a32b4){return _0x23d5e5&&_0x1a32b4;}},_0x4389b0={};if(_0x4a589f[_0x41c664(0x170)](isTestObservabilitySession)){const [_0x2eed8d,_0x32e2cd,_0x474f35]=testhubUtils[_0x41c664(0x1b9)](_0x48a6fc['data'],_0x288943['auth']);if(_0x4a589f[_0x41c664(0x1eb)](_0x2eed8d,_0x32e2cd)){const _0x263eb3={};_0x263eb3[_0x41c664(0x1f4)]=_0x2eed8d,_0x263eb3[_0x41c664(0x1e8)]=_0x32e2cd,_0x263eb3[_0x41c664(0x1c7)]=_0x474f35,_0x4389b0[testHubConstants[_0x41c664(0x16d)]]=_0x263eb3,process['env'][_0x41c664(0x17a)]=_0x4a589f[_0x41c664(0x16e)];}else _0x4389b0[testHubConstants['OBSERVABILITY']]={},process['env'][_0x41c664(0x17a)]=_0x4a589f[_0x41c664(0x1af)];}else process[_0x41c664(0x16c)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x4a589f[_0x41c664(0x1af)];const [_0x354d6e,_0x4b82b7,_0x77653]=testhubUtils[_0x41c664(0x176)](_0x48a6fc[_0x41c664(0x1a7)]);if(_0x4a589f[_0x41c664(0x18c)](_0x354d6e,_0x4b82b7)){const _0x58a2eb={};_0x58a2eb[_0x41c664(0x191)]=_0x354d6e,_0x58a2eb[_0x41c664(0x1e8)]=_0x4b82b7,_0x58a2eb[_0x41c664(0x19f)]=_0x77653,_0x4389b0[testHubConstants[_0x41c664(0x190)]]=_0x58a2eb,process[_0x41c664(0x16c)]['BROWSERSTACK_ACCESSIBILITY']=_0x4a589f[_0x41c664(0x16e)];}else _0x4389b0[testHubConstants[_0x41c664(0x190)]]={},process['env'][_0x41c664(0x1f6)]=_0x4a589f[_0x41c664(0x1af)];return testhubUtils[_0x41c664(0x16b)](_0x48a6fc[_0x41c664(0x1a7)]),logger[_0x41c664(0x165)](_0x41c664(0x188)+process[_0x41c664(0x16c)][_0x41c664(0x1dc)]),_0x4389b0;}static async['stop'](_0x56dedc){const _0x125733=a139_0x3cdbbb,_0xaf220d={'YoWuU':function(_0x32e9e1,_0x113c08){return _0x32e9e1===_0x113c08;},'YLRUN':'false','Orzsn':_0x125733(0x1ca),'wawCe':_0x125733(0x1f9),'GxxFp':_0x125733(0x1c4),'nhtdf':_0x125733(0x186),'yBDmO':_0x125733(0x182),'iMndK':_0x125733(0x1d2),'zgRvq':function(_0x1bec27){return _0x1bec27();},'UehlM':function(_0x53f383,_0x3a2b54,_0xa867ea,_0x1e01f5,_0x40c885,_0x331c33){return _0x53f383(_0x3a2b54,_0xa867ea,_0x1e01f5,_0x40c885,_0x331c33);},'afWiD':_0x125733(0x1d7),'hSdok':_0x125733(0x199),'ZGGFj':_0x125733(0x1f3)};await PerformanceTester[_0x125733(0x161)](PerformanceEvents['STOP'],async()=>{const _0x8b9d57=_0x125733;if(_0xaf220d[_0x8b9d57(0x178)](process[_0x8b9d57(0x16c)][_0x8b9d57(0x1d4)],_0xaf220d[_0x8b9d57(0x1f5)])||TestHubHandler['buildStopSent']||bsSetupHelper[_0x8b9d57(0x16a)](process[_0x8b9d57(0x16c)][testHubConstants['ENV_VAR'][_0x8b9d57(0x1cd)]]))return;TestHubHandler[_0x8b9d57(0x1c6)]=!![];if(BrowserstackCLI['getInstance']()[_0x8b9d57(0x19a)]())return;await this[_0x8b9d57(0x18a)](),await RequestQueueHandler[_0x8b9d57(0x1c1)]()[_0x8b9d57(0x1ea)](),await SessionHandler[_0x8b9d57(0x175)]();if(_0xaf220d[_0x8b9d57(0x178)](process['env'][testHubConstants[_0x8b9d57(0x1be)][_0x8b9d57(0x1cd)]],_0xaf220d['Orzsn'])||_0xaf220d[_0x8b9d57(0x178)](process[_0x8b9d57(0x16c)][testHubConstants[_0x8b9d57(0x1be)][_0x8b9d57(0x1dc)]],_0xaf220d[_0x8b9d57(0x18b)])){logger[_0x8b9d57(0x1bc)](_0xaf220d['wawCe']);const _0x505cb8={};return _0x505cb8[_0x8b9d57(0x1b3)]=_0xaf220d[_0x8b9d57(0x1d6)],_0x505cb8[_0x8b9d57(0x1da)]=_0xaf220d[_0x8b9d57(0x1b0)],_0x505cb8;}const _0x38b971={'finished_at':new Date()[_0x8b9d57(0x189)](),'finished_metadata':[]};!!_0x56dedc&&_0x38b971[_0xaf220d['yBDmO']]['push']({'reason':_0xaf220d[_0x8b9d57(0x1a5)],'signal':_0x56dedc,'failure_data':''});const _0x2a76e9={'headers':_0xaf220d[_0x8b9d57(0x1b6)](getDefaultHeaders)};try{const _0x9dc41c=await _0xaf220d[_0x8b9d57(0x1ee)](nodeRequest,_0xaf220d[_0x8b9d57(0x1b1)],_0x8b9d57(0x18f)+process[_0x8b9d57(0x16c)][testHubConstants[_0x8b9d57(0x1be)][_0x8b9d57(0x1dc)]]+_0x8b9d57(0x180),_0x38b971,_0x2a76e9,![]);if(_0x9dc41c[_0x8b9d57(0x1a7)]&&_0x9dc41c[_0x8b9d57(0x1a7)][_0x8b9d57(0x1c4)]){const _0x54fd70={};_0x54fd70[_0x8b9d57(0x1da)]=_0x9dc41c[_0x8b9d57(0x1a7)]['error'];throw _0x54fd70;}else{logger['debug'](_0xaf220d[_0x8b9d57(0x187)]);const _0x1da036={};return _0x1da036[_0x8b9d57(0x1b3)]=_0xaf220d[_0x8b9d57(0x160)],_0x1da036['message']='',_0x1da036;}}catch(_0x2c5450){_0x2c5450[_0x8b9d57(0x1de)]?logger[_0x8b9d57(0x1bc)]('EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20'+_0x2c5450['response'][_0x8b9d57(0x1b3)]+'\x20'+_0x2c5450['response']['statusText']+'\x20'+JSON[_0x8b9d57(0x15e)](_0x2c5450[_0x8b9d57(0x1de)][_0x8b9d57(0x1a7)])):logger[_0x8b9d57(0x1bc)](_0x8b9d57(0x19b)+(_0x2c5450[_0x8b9d57(0x1da)]||_0x2c5450));const _0x5ad902={};return _0x5ad902['status']=_0xaf220d['GxxFp'],_0x5ad902[_0x8b9d57(0x1da)]=_0x2c5450[_0x8b9d57(0x1da)]||_0x2c5450[_0x8b9d57(0x1de)]?_0x2c5450[_0x8b9d57(0x1de)][_0x8b9d57(0x1b3)]+':'+_0x2c5450['response'][_0x8b9d57(0x1f8)]:_0x2c5450,_0x5ad902;}})();}}function a139_0xe0f8(){const _0x5cbf95=['vFpEi','null','allSettled','mdKfF','BROWSERSTACK_TESTHUB_JWT','lcnc','extractDataFromResponse','PERCY_SUPPORTED_FRAMEWORKS','OaYhE','user_killed','../performance/constants','BS_TESTOPS_BUILD_COMPLETED','301398RNTGGl','GxxFp','PUT','isBrowserstackInfra','../../bin/playwright/reporter/pwUtils.js','message','getProductMap','BROWSERSTACK_TESTHUB_UUID','../test-observability/sessionHandler.js','response','accessibility','job_id','username','../../bin/playwright/reporter/test-details.js','isAccessibilityEnabled','NmUav','cwd','Generating\x20build\x20upstream\x20data\x20for\x20TestHub','getUserName','buildHashedId','npFxW','uploadPending','dhmdD','generateBuildUpstreamData','LkEnQ','UehlM','PzZxx','logBuildError','getGitMetaData','basename','success','jwt','YLRUN','BROWSERSTACK_ACCESSIBILITY','accessibilityOptions','statusText','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','stringify','YezZs','ZGGFj','measureWrapper','5684536pZjHOa','BROWSERSTACK_TEST_ACCESSIBILITY_SCRIPT_TIMEOUT','QjGoO','info','launchBuild','assign','oxeys','56aKiYxG','isUndefined','setTestHubCommonMetaInfo','env','OBSERVABILITY','eeNfk','START','ZrRaa','4754635gvgKwM','Error\x20while\x20waiting\x20for\x20events:\x20','token','vuwOE','waitForBuildStatus','setAccessibilityVariables','buildDescription','YoWuU','UyLqC','BROWSERSTACK_TEST_OBSERVABILITY','443504vdfpHl','getFrameworkDetails','../helper','BROWSERSTACK_BUILD_RUN_IDENTIFIER','DAazZ','/stop','config','finished_metadata','BROWSERSTACK_CENTRAL_SCANNER_JWT','BROWSERSTACK_RERUN','false','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','hSdok','Testhub\x20started\x20with\x20id:\x20','toISOString','processTraceZips','Orzsn','BScGH','VgDns','../test-observability/requestQueueHandler.js','api/v1/builds/','ACCESSIBILITY','authToken','All\x20trace\x20zip\x20send\x20events\x20complete','util','checkAndSetupPercy','../test-observability/utils','getHostInfo','getTraceFilePaths','./constants.js','stopBuildUpstream\x20event\x20successful!','isRunning','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','true','POST','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER','scannerProcessingTimeout','3116884NhPoEE','getAccessKey','resolve','YOSnq','469539jmiSXp','iMndK','add','data','projectName','getProductMapForBuildStartCall','password','lKKMF','getAccessibilityOptions','settings','getCiInfo','AzONM','nhtdf','afWiD','lRpOu','status','xMWho','../logger','zgRvq','setupPercy','framework','setTestObservabilityVariables','1373575PZNqNu','getAccessibilityValueFromYml','debug','TESTHUB_BUILD_API','ENV_VAR','../../bin/utils/constants.js','buildName','getInstance','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','getCentralUser','error','path','buildStopSent','allowScreenshot','central_scanner'];a139_0xe0f8=function(){return _0x5cbf95;};return a139_0xe0f8();}module['exports']=TestHubHandler;
@@ -1 +1 @@
1
- const a140_0x327181=a140_0x3cfc;(function(_0x35bf79,_0x8cbbab){const _0x2923ff=a140_0x3cfc,_0x41fde2=_0x35bf79();while(!![]){try{const _0xdfd481=parseInt(_0x2923ff(0x1e1))/0x1*(parseInt(_0x2923ff(0x1ce))/0x2)+parseInt(_0x2923ff(0x1df))/0x3*(-parseInt(_0x2923ff(0x1b4))/0x4)+-parseInt(_0x2923ff(0x1fe))/0x5*(parseInt(_0x2923ff(0x1f1))/0x6)+parseInt(_0x2923ff(0x21d))/0x7*(-parseInt(_0x2923ff(0x206))/0x8)+-parseInt(_0x2923ff(0x210))/0x9+parseInt(_0x2923ff(0x1a3))/0xa*(-parseInt(_0x2923ff(0x17b))/0xb)+parseInt(_0x2923ff(0x1f2))/0xc;if(_0xdfd481===_0x8cbbab)break;else _0x41fde2['push'](_0x41fde2['shift']());}catch(_0xc21e4a){_0x41fde2['push'](_0x41fde2['shift']());}}}(a140_0x5aba,0x351a3));function a140_0x3cfc(_0x2ab39b,_0x16e38d){const _0x5aba31=a140_0x5aba();return a140_0x3cfc=function(_0x3cfc1f,_0x35e553){_0x3cfc1f=_0x3cfc1f-0x16a;let _0x8a472c=_0x5aba31[_0x3cfc1f];return _0x8a472c;},a140_0x3cfc(_0x2ab39b,_0x16e38d);}const bsSetupHelper=require(a140_0x327181(0x1ef)),LoadTestModule=require(a140_0x327181(0x1f0)),{isTestObservabilitySession,getFrameworkVersion}=require(a140_0x327181(0x1c2)),accessibilityHelper=require(a140_0x327181(0x20d)),logger=require(a140_0x327181(0x1dd))['winstonLogger'],{nestedKeyValue}=require(a140_0x327181(0x219)),scripts=require('../accessibility-automation/scripts.js'),globals=require('../globals.js'),testHubConstants=require('./constants.js'),PWTestDetails=require(a140_0x327181(0x21a)),JestTestDetails=require(a140_0x327181(0x21f)),{FRAMEWORKS}=require('../test-observability/constants.js'),{isTurboScaleSession}=require(a140_0x327181(0x193)),OrchestrationUtils=require(a140_0x327181(0x1a5)),constants=require('../../bin/utils/constants.js');let testData={};exports['getProductMap']=_0x311e62=>{const _0x2feee4=a140_0x327181,_0xf10e66={'nwced':function(_0x388235){return _0x388235();}};let _0x4647f3=![],_0x5da3dd=![];if(bsSetupHelper[_0x2feee4(0x1ed)]()&&_0x311e62['app'])_0x5da3dd=!![];else bsSetupHelper[_0x2feee4(0x1ed)]()&&(_0x4647f3=!![]);return Object[_0x2feee4(0x174)]({'observability':_0xf10e66[_0x2feee4(0x178)](isTestObservabilitySession),'accessibility':exports[_0x2feee4(0x1c6)](_0x311e62),'percy':_0x311e62[_0x2feee4(0x1a0)]||![],'automate':_0x4647f3,'app_automate':_0x5da3dd,'turboscale':bsSetupHelper[_0x2feee4(0x1d7)](_0x311e62),'lts':LoadTestModule[_0x2feee4(0x198)](_0x311e62)},bsSetupHelper[_0x2feee4(0x197)]());},exports['getFrameworkDetails']=(_0x7631bd,_0x42a1b8)=>{const _0x401d56=a140_0x327181,_0x7082b8={'RykkR':function(_0x4f646d,_0x318737){return _0x4f646d(_0x318737);},'JWIkF':_0x401d56(0x201)},_0x5ad6f7={'frameworkName':_0x42a1b8,'frameworkVersion':_0x7082b8[_0x401d56(0x1e5)](getFrameworkVersion,_0x42a1b8),'sdkVersion':bsSetupHelper[_0x401d56(0x1c8)](),'language':_0x7082b8['JWIkF'],'testFramework':bsSetupHelper[_0x401d56(0x1cd)](_0x7631bd,_0x42a1b8)};return process[_0x401d56(0x185)][_0x401d56(0x203)]=JSON['stringify'](_0x5ad6f7),_0x5ad6f7;},exports['setPercyFlag']=_0x4c8135=>{const _0x424886=a140_0x327181,_0x5a2a81={};_0x5a2a81[_0x424886(0x17d)]=_0x424886(0x1a6),_0x5a2a81[_0x424886(0x16d)]=_0x424886(0x1d8);const _0x447e5c=_0x5a2a81;process[_0x424886(0x185)]['BROWSERSTACK_PERCY']=_0x447e5c[_0x424886(0x17d)],bsSetupHelper[_0x424886(0x194)](_0x4c8135[_0x424886(0x182)][_0x424886(0x1a0)])&&(!_0x4c8135[_0x424886(0x1a0)]||!_0x4c8135[_0x424886(0x1a0)]['isRunning']())&&(process[_0x424886(0x185)][_0x424886(0x20c)]=_0x447e5c['fomcP']);},exports[a140_0x327181(0x1a2)]=()=>{const _0x568bd6=a140_0x327181;return bsSetupHelper[_0x568bd6(0x194)](process[_0x568bd6(0x185)]['BROWSERSTACK_PERCY']);},exports[a140_0x327181(0x1c6)]=(_0x14ac07={})=>{const _0x1bb198=a140_0x327181,_0x5571b0={};_0x5571b0[_0x1bb198(0x20f)]=function(_0x17e39f,_0x30c155){return _0x17e39f!==_0x30c155;},_0x5571b0['zBTMO']=function(_0x34afc6,_0x4c35f6){return _0x34afc6===_0x4c35f6;},_0x5571b0[_0x1bb198(0x172)]='true',_0x5571b0['nGRyM']=function(_0x393ded,_0x3a2245){return _0x393ded>_0x3a2245;};const _0x3caaad=_0x5571b0;if(_0x3caaad[_0x1bb198(0x20f)](process[_0x1bb198(0x185)]['BROWSERSTACK_ACCESSIBILITY'],undefined))return bsSetupHelper[_0x1bb198(0x194)](process[_0x1bb198(0x185)][_0x1bb198(0x16c)]);let _0x380d34=_0x3caaad[_0x1bb198(0x216)](process[_0x1bb198(0x185)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x3caaad[_0x1bb198(0x172)]);return _0x3caaad[_0x1bb198(0x211)](Object[_0x1bb198(0x1cf)](_0x14ac07)[_0x1bb198(0x189)],0x0)&&(process[_0x1bb198(0x185)][_0x1bb198(0x1ff)]=accessibilityHelper['checkAccessibilityPlatformConfig'](_0x14ac07)),_0x380d34=_0x380d34||_0x3caaad[_0x1bb198(0x216)](process[_0x1bb198(0x185)][_0x1bb198(0x1ff)],_0x3caaad[_0x1bb198(0x172)]),_0x380d34;},exports['setTestObservabilityVariables']=(_0x26456d,_0x2a1c66)=>{const _0x196663=a140_0x327181,_0x48382d={'esEaA':function(_0xe1b4af){return _0xe1b4af();},'opxcs':_0x196663(0x21b),'MTqiu':_0x196663(0x1d8),'MRrVh':function(_0x3870cb,_0x3352ca,_0x50994d){return _0x3870cb(_0x3352ca,_0x50994d);},'NXCdI':_0x196663(0x186),'ejVkt':_0x196663(0x19d)};if(!_0x26456d||!_0x26456d[_0x196663(0x186)])return exports['handleErrorForObservability'](),[null,null,null];if(!_0x26456d['observability'][_0x196663(0x195)])return exports['handleErrorForObservability'](_0x26456d[_0x196663(0x186)]),[null,null,null];if(_0x48382d[_0x196663(0x1d4)](isTestObservabilitySession)){const _0x3b91eb=_0x48382d[_0x196663(0x1fb)][_0x196663(0x1a9)]('|');let _0x58f5f0=0x0;while(!![]){switch(_0x3b91eb[_0x58f5f0++]){case'0':logger[_0x196663(0x1b5)]('['+constants['TEST_REPORTING_ANALYTICS']+_0x196663(0x1da)+_0x26456d[_0x196663(0x18f)]);continue;case'1':process['env'][_0x196663(0x1bb)]=_0x48382d['MTqiu'];continue;case'2':_0x48382d[_0x196663(0x1d3)](nestedKeyValue,_0x26456d,[_0x48382d[_0x196663(0x1c9)],_0x48382d[_0x196663(0x183)]])&&(process['env'][_0x196663(0x17f)]=_0x26456d['observability'][_0x196663(0x19d)][_0x196663(0x1ec)][_0x196663(0x207)]());continue;case'3':if(_0x26456d[_0x196663(0x205)]){process[_0x196663(0x185)][_0x196663(0x20a)]=_0x26456d[_0x196663(0x205)];const _0x5ece08={};_0x5ece08[_0x196663(0x1d5)]=_0x2a1c66[_0x196663(0x1d5)],_0x5ece08[_0x196663(0x17c)]=_0x2a1c66[_0x196663(0x17c)],process[_0x196663(0x185)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x196663(0x1e3)](_0x5ece08);}continue;case'4':return[_0x26456d[_0x196663(0x205)],_0x26456d[_0x196663(0x18f)],process[_0x196663(0x185)][_0x196663(0x17f)]];case'5':_0x26456d[_0x196663(0x18f)]&&(process['env']['BS_TESTOPS_BUILD_HASHED_ID']=_0x26456d[_0x196663(0x18f)]);continue;}break;}}return[null,null,null];},exports[a140_0x327181(0x21c)]=_0x34e415=>{const _0x2b1623=a140_0x327181,_0x17c42a={'WwcJX':function(_0x6a405,_0x12804e,_0x49249b){return _0x6a405(_0x12804e,_0x49249b);},'ITzQf':_0x2b1623(0x19c),'ALAVu':_0x2b1623(0x19d),'sHJrl':function(_0xec60ca,_0x4fafc6,_0x1af46e,_0xc24a02){return _0xec60ca(_0x4fafc6,_0x1af46e,_0xc24a02);},'KXXVE':_0x2b1623(0x1dc),'AXLRs':_0x2b1623(0x1a7),'amxjr':'command','JAnKN':_0x2b1623(0x209),'bDhTA':function(_0x133cc0,_0x2c66c4,_0x3e93ce,_0x293a91){return _0x133cc0(_0x2c66c4,_0x3e93ce,_0x293a91);},'nsFDR':'nonBStackInfraA11yChromeOptions','HLShH':_0x2b1623(0x196)};if(!_0x34e415[_0x2b1623(0x19c)])return exports['handleErrorForAccessibility'](),[null,null];if(!_0x34e415[_0x2b1623(0x19c)][_0x2b1623(0x195)])return exports[_0x2b1623(0x173)](_0x34e415[_0x2b1623(0x19c)]),[null,null];if(_0x17c42a['WwcJX'](nestedKeyValue,_0x34e415,[_0x17c42a[_0x2b1623(0x1c3)],_0x17c42a[_0x2b1623(0x1eb)]])){const {accessibilityToken:_0xca66f,scannerVersion:_0x1fca7f,scannerProcessingTimeout:_0x229bbd}=_0x17c42a[_0x2b1623(0x1c1)](jsonifyAccessibilityArray,_0x34e415[_0x2b1623(0x19c)][_0x2b1623(0x19d)][_0x2b1623(0x1e8)],_0x17c42a[_0x2b1623(0x1b6)],_0x17c42a[_0x2b1623(0x1be)]),_0x47e492={'scripts':_0x17c42a[_0x2b1623(0x1c1)](jsonifyAccessibilityArray,_0x34e415[_0x2b1623(0x19c)][_0x2b1623(0x19d)][_0x2b1623(0x1cc)],_0x17c42a[_0x2b1623(0x1b6)],_0x17c42a[_0x2b1623(0x17a)])};_0x47e492[_0x17c42a[_0x2b1623(0x1e6)]]=_0x34e415[_0x2b1623(0x19c)][_0x2b1623(0x19d)]['commandsToWrap']['commands'];const _0x916c7c=_0x17c42a['bDhTA'](jsonifyAccessibilityArray,_0x34e415[_0x2b1623(0x19c)][_0x2b1623(0x19d)][_0x2b1623(0x1e8)],_0x17c42a[_0x2b1623(0x1b6)],_0x17c42a[_0x2b1623(0x1be)]);_0x47e492[_0x17c42a[_0x2b1623(0x1e4)]]=_0x916c7c[_0x17c42a[_0x2b1623(0x1ea)]],scripts[_0x2b1623(0x1af)](_0x47e492),scripts[_0x2b1623(0x1b8)]();let _0x270574=process[_0x2b1623(0x185)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'];return _0x270574=!!_0x270574?JSON[_0x2b1623(0x21e)](_0x270574):{},_0x270574[_0x2b1623(0x1d1)]=_0x1fca7f,process[_0x2b1623(0x185)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x270574),process[_0x2b1623(0x185)][_0x2b1623(0x1f9)]=_0xca66f,logger[_0x2b1623(0x1b5)](_0x2b1623(0x1a8)+_0x34e415[_0x2b1623(0x18f)]),[_0xca66f,_0x34e415[_0x2b1623(0x18f)],_0x229bbd];}return[null,null];},exports[a140_0x327181(0x177)]=_0x133020=>{const _0x93904d=a140_0x327181,_0x471313={};_0x471313[_0x93904d(0x181)]='1|3|4|5|6|2|0',_0x471313[_0x93904d(0x202)]=_0x93904d(0x1fc),_0x471313[_0x93904d(0x18a)]=_0x93904d(0x1a6);const _0x3e0218=_0x471313,_0x5af0bd=_0x3e0218[_0x93904d(0x181)][_0x93904d(0x1a9)]('|');let _0x4964a0=0x0;while(!![]){switch(_0x5af0bd[_0x4964a0++]){case'0':exports[_0x93904d(0x212)](_0x133020,testHubConstants['OBSERVABILITY']);continue;case'1':process['env']['BROWSERSTACK_TESTHUB_UUID']=_0x3e0218[_0x93904d(0x202)];continue;case'2':process[_0x93904d(0x185)][_0x93904d(0x17f)]=_0x3e0218[_0x93904d(0x202)];continue;case'3':process[_0x93904d(0x185)]['BROWSERSTACK_TESTHUB_JWT']=_0x3e0218[_0x93904d(0x202)];continue;case'4':process['env'][_0x93904d(0x1bb)]=_0x3e0218[_0x93904d(0x18a)];continue;case'5':process[_0x93904d(0x185)][_0x93904d(0x20a)]=_0x3e0218[_0x93904d(0x202)];continue;case'6':process[_0x93904d(0x185)][_0x93904d(0x1c4)]=_0x3e0218[_0x93904d(0x202)];continue;}break;}},exports['handleErrorForAccessibility']=_0x219e5c=>{const _0x562c89=a140_0x327181,_0x185ab2={};_0x185ab2[_0x562c89(0x200)]=_0x562c89(0x214),_0x185ab2[_0x562c89(0x1e7)]=_0x562c89(0x1a6),_0x185ab2['AJBQh']=_0x562c89(0x1fc);const _0x5bc06c=_0x185ab2,_0x3e6bad=_0x5bc06c[_0x562c89(0x200)][_0x562c89(0x1a9)]('|');let _0x327c7e=0x0;while(!![]){switch(_0x3e6bad[_0x327c7e++]){case'0':process[_0x562c89(0x185)][_0x562c89(0x1ff)]=_0x5bc06c[_0x562c89(0x1e7)];continue;case'1':process['env'][_0x562c89(0x1bf)]=_0x5bc06c[_0x562c89(0x18e)];continue;case'2':exports['logBuildError'](_0x219e5c,testHubConstants['ACCESSIBILITY']);continue;case'3':process['env'][_0x562c89(0x184)]=_0x5bc06c['HQRaJ'];continue;case'4':process[_0x562c89(0x185)][_0x562c89(0x1a1)]=_0x5bc06c[_0x562c89(0x18e)];continue;}break;}},exports[a140_0x327181(0x212)]=(_0x361bec,_0x34d282='')=>{const _0x40bbd6=a140_0x327181,_0x51e35b={};_0x51e35b['IiQXL']=function(_0x37136b,_0x1344a0){return _0x37136b===_0x1344a0;};const _0x4a7128=_0x51e35b;if(_0x4a7128['IiQXL'](_0x361bec,undefined)){logger[_0x40bbd6(0x1ba)](_0x34d282[_0x40bbd6(0x1b0)]()+_0x40bbd6(0x1f5));return;}for(const _0x26a7bc of _0x361bec['errors']){const _0x2ac1c4=_0x26a7bc[_0x40bbd6(0x1e0)],_0x246a3a=_0x26a7bc['message'];if(_0x246a3a)switch(_0x2ac1c4){case testHubConstants['ERROR'][_0x40bbd6(0x1f3)]:logger['error'](_0x246a3a);break;case testHubConstants[_0x40bbd6(0x190)]['ACCESS_DENIED']:logger[_0x40bbd6(0x1b9)](_0x246a3a);break;case testHubConstants[_0x40bbd6(0x190)][_0x40bbd6(0x1c0)]:logger[_0x40bbd6(0x1ba)](_0x246a3a);break;default:logger['error'](_0x246a3a);}}};const jsonifyAccessibilityArray=(_0x36366b,_0x15e20c,_0x5ce8a3)=>{const _0x5ce4c2=a140_0x327181,_0x4d77aa={};return _0x36366b[_0x5ce4c2(0x1b2)](_0x4640a0=>{_0x4d77aa[_0x4640a0[_0x15e20c]]=_0x4640a0[_0x5ce8a3];}),_0x4d77aa;};exports[a140_0x327181(0x208)]=_0xea5779=>{const _0x961515=a140_0x327181;_0xea5779[_0x961515(0x205)]&&(process[_0x961515(0x185)]['BROWSERSTACK_TESTHUB_JWT']=_0xea5779['jwt']);_0xea5779[_0x961515(0x18f)]&&(process[_0x961515(0x185)][_0x961515(0x1a1)]=_0xea5779['build_hashed_id'],logger[_0x961515(0x1b5)](_0x961515(0x1d2)+_0xea5779[_0x961515(0x18f)]));;},exports['shouldProcessEventForTesthub']=(_0x519b32='',_0x98fd8e='')=>{const _0x4c3353=a140_0x327181,_0x47883b={'ulvUD':function(_0x2bff1f){return _0x2bff1f();},'gFTvx':function(_0x41179b,_0x4b569d){return _0x41179b===_0x4b569d;},'QUSsF':_0x4c3353(0x1f4),'NNTxb':_0x4c3353(0x1de),'MfPyB':_0x4c3353(0x1bc),'JpKZN':function(_0x4d13c2){return _0x4d13c2();},'lzBjg':_0x4c3353(0x1c5),'jujvt':'HookRunFinished'};if(exports[_0x4c3353(0x1a2)]()&&!exports[_0x4c3353(0x1c6)]()&&!_0x47883b[_0x4c3353(0x1b3)](isTestObservabilitySession)){if(_0x47883b['gFTvx'](_0x98fd8e,_0x47883b[_0x4c3353(0x1ae)]))return![];if([_0x47883b['NNTxb'],_0x47883b[_0x4c3353(0x1ca)]][_0x4c3353(0x16f)](_0x519b32))return![];return!![];}if(exports[_0x4c3353(0x1c6)]()&&!_0x47883b[_0x4c3353(0x1d6)](isTestObservabilitySession)){if([_0x47883b[_0x4c3353(0x1ac)],_0x47883b[_0x4c3353(0x171)],_0x47883b[_0x4c3353(0x1f7)]]['includes'](_0x519b32))return![];return!![];}return exports[_0x4c3353(0x1c6)]()||_0x47883b['JpKZN'](isTestObservabilitySession)||exports[_0x4c3353(0x1a2)]();},exports['appendTesthubParams']=(_0x234b1d,_0xb0fb81,_0x1d7470='',_0xdb8d52)=>{const _0x13e84f=a140_0x327181,_0x1e8d77={};_0x1e8d77[_0x13e84f(0x1bd)]=_0x13e84f(0x1c5),_0x1e8d77[_0x13e84f(0x19a)]=_0x13e84f(0x187),_0x1e8d77[_0x13e84f(0x1a4)]=function(_0x23384d,_0x1e8909){return _0x23384d===_0x1e8909;},_0x1e8d77['LZnqQ']=_0x13e84f(0x20b),_0x1e8d77[_0x13e84f(0x192)]='isAccessibilityPlatform',_0x1e8d77['BEUFk']=_0x13e84f(0x19c),_0x1e8d77[_0x13e84f(0x1ee)]=function(_0x2d6055,_0x243fb2){return _0x2d6055&&_0x243fb2;},_0x1e8d77['qsfdq']=function(_0x402239,_0x43a730){return _0x402239+_0x43a730;},_0x1e8d77[_0x13e84f(0x1ad)]=function(_0x33b5c1,_0x5ace4e){return _0x33b5c1===_0x5ace4e;},_0x1e8d77[_0x13e84f(0x1b7)]=function(_0x4920f7,_0x42c288){return _0x4920f7===_0x42c288;},_0x1e8d77['gjsBG']=_0x13e84f(0x1fa),_0x1e8d77[_0x13e84f(0x188)]=function(_0x9878d3,_0x342c41){return _0x9878d3===_0x342c41;},_0x1e8d77[_0x13e84f(0x170)]=function(_0xf30216,_0x2cfd46){return _0xf30216&&_0x2cfd46;},_0x1e8d77[_0x13e84f(0x215)]=function(_0x3aafae,_0x3abaa8){return _0x3aafae===_0x3abaa8;},_0x1e8d77[_0x13e84f(0x176)]=_0x13e84f(0x180);const _0x2ff9bf=_0x1e8d77;if(![_0x2ff9bf['vOBwo'],_0x2ff9bf[_0x13e84f(0x19a)]]['includes'](_0xb0fb81)&&exports[_0x13e84f(0x1c6)]()){const _0x3eb4b3={};if(_0x2ff9bf['eepDl'](_0xdb8d52,FRAMEWORKS[_0x13e84f(0x1e2)])){const _0x3dbc94=globals[_0x13e84f(0x19f)](_0x2ff9bf[_0x13e84f(0x19e)])||accessibilityHelper['shouldScanTestForAccessibility'](_0x1d7470['titlePath'](),!![]),_0xc7ce56=globals[_0x13e84f(0x19f)](_0x2ff9bf[_0x13e84f(0x192)]);_0x3eb4b3[_0x2ff9bf[_0x13e84f(0x1e9)]]=_0x2ff9bf[_0x13e84f(0x1ee)](_0xc7ce56,_0x3dbc94);}if(_0x2ff9bf[_0x13e84f(0x1a4)](_0xdb8d52,FRAMEWORKS[_0x13e84f(0x179)])){const _0xd3cdb2=_0x2ff9bf[_0x13e84f(0x16b)](_0x2ff9bf[_0x13e84f(0x16b)](_0x234b1d[_0x13e84f(0x1cb)][_0x13e84f(0x17e)]('\x20'),'\x20'),_0x1d7470[_0x13e84f(0x1dc)]),_0x87b757=globals[_0x13e84f(0x19f)](_0x2ff9bf[_0x13e84f(0x19e)])||accessibilityHelper[_0x13e84f(0x204)](_0xd3cdb2,![]),_0x328a9e=browserStackGlobals[_0x13e84f(0x16a)];_0x3eb4b3[_0x2ff9bf[_0x13e84f(0x1e9)]]=_0x2ff9bf[_0x13e84f(0x1ee)](_0x328a9e,_0x87b757);}if(_0x2ff9bf[_0x13e84f(0x1ad)](_0xdb8d52,FRAMEWORKS[_0x13e84f(0x1f6)])){if(_0x2ff9bf[_0x13e84f(0x1b7)](_0xb0fb81,_0x2ff9bf[_0x13e84f(0x1fd)]))return;_0x3eb4b3[_0x2ff9bf[_0x13e84f(0x1e9)]]=PWTestDetails[_0x13e84f(0x218)](_0x234b1d[_0x13e84f(0x1c7)]);}if(_0x2ff9bf['Xqrit'](_0xdb8d52,FRAMEWORKS[_0x13e84f(0x19b)])){const _0x415071=accessibilityHelper[_0x13e84f(0x204)](_0x1d7470[_0x13e84f(0x18d)](),!![]),_0xd80447=global[_0x13e84f(0x191)];_0x3eb4b3[_0x2ff9bf[_0x13e84f(0x1e9)]]=_0x2ff9bf['Eitng'](_0xd80447,_0x415071);}if(_0x2ff9bf['SOKOC'](_0xdb8d52,FRAMEWORKS['CUCUMBER'])){const _0x3e0f0f=accessibilityHelper[_0x13e84f(0x204)](null,![],_0x234b1d[_0x13e84f(0x175)]),_0x59111b=globals[_0x13e84f(0x19f)](_0x2ff9bf[_0x13e84f(0x192)]);_0x3eb4b3[_0x2ff9bf[_0x13e84f(0x1e9)]]=_0x2ff9bf['Eitng'](_0x59111b,_0x3e0f0f);}_0x234b1d[_0x2ff9bf['feGfc']]=_0x3eb4b3;}},exports[a140_0x327181(0x1b1)]=_0x5a3fef=>{const _0x3a4be8=a140_0x327181,_0x39e7a5={};_0x39e7a5[_0x3a4be8(0x213)]=function(_0x217669,_0x18358d){return _0x217669>_0x18358d;};const _0x3ef579=_0x39e7a5;let _0x38222b={};if(_0x3ef579[_0x3a4be8(0x213)](Object['keys'](testData)['length'],0x0))return testData;_0x38222b=JestTestDetails['getTestData']();if(_0x3ef579[_0x3a4be8(0x213)](Object[_0x3a4be8(0x1cf)](_0x38222b)[_0x3a4be8(0x189)],0x0))return _0x38222b;return _0x38222b;},exports[a140_0x327181(0x16e)]=(_0x344e55,_0x1fa096={})=>{const _0x1acc21=a140_0x327181;if(bsSetupHelper[_0x1acc21(0x199)](_0x1fa096['test_run']))return;switch(_0x344e55){case FRAMEWORKS[_0x1acc21(0x1e2)]:testData=_0x1fa096['test_run'];break;case FRAMEWORKS[_0x1acc21(0x179)]:JestTestDetails[_0x1acc21(0x1d9)](_0x1fa096[_0x1acc21(0x217)]);break;default:break;}},exports['getAccessibilityValueFromYml']=_0x5d7817=>{const _0x216083=a140_0x327181,_0x46d560={};_0x46d560[_0x216083(0x1db)]=function(_0x114cab,_0x216398){return _0x114cab!==_0x216398;},_0x46d560[_0x216083(0x20e)]=function(_0x280b71,_0x405e59){return _0x280b71!==_0x405e59;},_0x46d560[_0x216083(0x18c)]=function(_0xc866ed,_0x1b78c9){return _0xc866ed!==_0x1b78c9;};const _0x5cd832=_0x46d560;if(_0x5cd832[_0x216083(0x1db)](_0x5d7817[_0x216083(0x19c)],null)&&_0x5cd832[_0x216083(0x1db)](_0x5d7817[_0x216083(0x19c)],undefined))return _0x5d7817[_0x216083(0x19c)];let _0x2e2edb=![],_0x374e15=![];if(_0x5d7817[_0x216083(0x1ab)])for(const _0x12496f of _0x5d7817['platforms']){_0x5cd832[_0x216083(0x20e)](_0x12496f[_0x216083(0x19c)],null)&&_0x5cd832[_0x216083(0x18c)](_0x12496f[_0x216083(0x19c)],undefined)&&(_0x2e2edb=_0x2e2edb||bsSetupHelper[_0x216083(0x194)](_0x12496f['accessibility']),_0x374e15=!![]);}if(_0x374e15)return _0x2e2edb;return null;},exports[a140_0x327181(0x18b)]=_0x32d271=>{const _0xae0e9b=new OrchestrationUtils(_0x32d271);return _0xae0e9b['getBuildStartData']();},exports[a140_0x327181(0x1f8)]=_0xfae0b=>{const _0x15e33a=a140_0x327181,_0x3b5f28={'FEsYO':function(_0xcd2ec4){return _0xcd2ec4();}};let _0x2b0297=![],_0x336a4a=![];if(bsSetupHelper[_0x15e33a(0x1ed)]()&&_0xfae0b[_0x15e33a(0x1aa)])_0x336a4a=!![];else bsSetupHelper[_0x15e33a(0x1ed)]()&&(_0x2b0297=!![]);return Object[_0x15e33a(0x174)]({'observability':_0x3b5f28[_0x15e33a(0x1d0)](isTestObservabilitySession),'accessibility':exports['getAccessibilityValueFromYml'](_0xfae0b),'percy':_0xfae0b[_0x15e33a(0x1a0)]||![],'automate':_0x2b0297,'app_automate':_0x336a4a,'turboscale':bsSetupHelper[_0x15e33a(0x1d7)](_0xfae0b),'lts':LoadTestModule[_0x15e33a(0x198)](_0xfae0b)},bsSetupHelper[_0x15e33a(0x197)]());};function a140_0x5aba(){const _0x1a06d7=['assign','tags','feGfc','handleErrorForObservability','nwced','JEST','amxjr','566291PqRren','password','mNRvi','join','BS_TESTOPS_ALLOW_SCREENSHOTS','product_map','CbkJC','config','ejVkt','BROWSERSTACK_TEST_ACCESSIBILITY_YML','env','observability','HookRunFinished','Xqrit','length','edXxO','getTestOrchestrationBuildStartData','DzidJ','titlePath','AJBQh','build_hashed_id','ERROR','accessibilityPlatform','wQXmW','../ats/helper','isTrue','success','goog:chromeOptions','getCentralUser','isLTSSession','isUndefined','zNKAd','CODECEPT','accessibility','options','LZnqQ','getGlobal','percy','BROWSERSTACK_TESTHUB_UUID','isPercyBuild','10Bownth','eepDl','../test-orchestration/orchestrationUtils.js','false','value','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','split','app','platforms','lzBjg','AdDgS','QUSsF','parseFromJson','toUpperCase','getCurrentTestData','forEach','ulvUD','4UdAoTC','debug','KXXVE','XvfUF','toJson','info','error','BS_TESTOPS_BUILD_COMPLETED','CBTSessionCreated','vOBwo','AXLRs','BROWSERSTACK_TESTHUB_JWT','DEPRECATED','sHJrl','../test-observability/utils','ITzQf','BS_TESTOPS_BUILD_HASHED_ID','HookRunStarted','isAccessibilityEnabled','uuid','getAgentVersion','NXCdI','MfPyB','scopes','scripts','getTestFrameworkDetails','8074FExbLk','keys','FEsYO','scannerVersion','BROWSERSTACK_TESTHUB_UUID:\x20','MRrVh','esEaA','username','JpKZN','isTurboScaleSession','true','setTestData',']\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','AqwcO','name','../logger','LogCreated','372459pQlvnI','key','43NINloi','MOCHA','stringify','nsFDR','RykkR','JAnKN','HQRaJ','capabilities','BEUFk','HLShH','ALAVu','allow_screenshots','isBrowserstackInfra','HBmNg','../helper','../../bin/v2/modules/loadTestModule','2134362alLvdU','12345120elyDkM','INVALID_CREDENTIALS','uploadEventData','\x20Build\x20creation\x20failed','PLAYWRIGHT','NNTxb','getProductMapForBuildStartCall','BS_A11Y_JWT','TestRunStarted','opxcs','null','gjsBG','5yhHmVf','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','mTsWH','javascript','McOid','FRAMEWORK_DETAILS','shouldScanTestForAccessibility','jwt','8csNCFy','toString','setTestHubCommonMetaInfo','commands','BS_TESTOPS_JWT','bstackA11yShouldScan','BROWSERSTACK_PERCY','../accessibility-automation/helper','khIKR','kPJIz','3397986fsjouQ','nGRyM','logBuildError','glMCK','4|1|3|0|2','SOKOC','zBTMO','test_run','getAccessibilityPlatformValidation','../helper.js','../../bin/playwright/reporter/test-details.js','1|3|5|2|0|4','setAccessibilityVariables','531503OgejBH','parse','../../bin/jest/test-observability/test-details.js','isAccessibilityPlatform','qsfdq','BROWSERSTACK_ACCESSIBILITY','fomcP','setCurrentTestData','includes','Eitng','jujvt','Lykpy','handleErrorForAccessibility'];a140_0x5aba=function(){return _0x1a06d7;};return a140_0x5aba();}
1
+ function a140_0x32d1(_0x32c711,_0x208ee3){const _0x4ea9a3=a140_0x4ea9();return a140_0x32d1=function(_0x32d109,_0x167706){_0x32d109=_0x32d109-0x196;let _0x1605b0=_0x4ea9a3[_0x32d109];return _0x1605b0;},a140_0x32d1(_0x32c711,_0x208ee3);}const a140_0x47c4d5=a140_0x32d1;(function(_0xdab3cb,_0x410ad1){const _0x1d6d21=a140_0x32d1,_0x1ec2e5=_0xdab3cb();while(!![]){try{const _0x9279b4=parseInt(_0x1d6d21(0x213))/0x1+parseInt(_0x1d6d21(0x1b6))/0x2*(parseInt(_0x1d6d21(0x22b))/0x3)+parseInt(_0x1d6d21(0x23b))/0x4*(parseInt(_0x1d6d21(0x205))/0x5)+-parseInt(_0x1d6d21(0x1cd))/0x6+-parseInt(_0x1d6d21(0x1ec))/0x7*(-parseInt(_0x1d6d21(0x204))/0x8)+parseInt(_0x1d6d21(0x218))/0x9*(-parseInt(_0x1d6d21(0x1f0))/0xa)+-parseInt(_0x1d6d21(0x1d0))/0xb*(parseInt(_0x1d6d21(0x1f9))/0xc);if(_0x9279b4===_0x410ad1)break;else _0x1ec2e5['push'](_0x1ec2e5['shift']());}catch(_0x1a3b03){_0x1ec2e5['push'](_0x1ec2e5['shift']());}}}(a140_0x4ea9,0x6519f));const bsSetupHelper=require(a140_0x47c4d5(0x1d9)),LoadTestModule=require(a140_0x47c4d5(0x210)),{isTestObservabilitySession,getFrameworkVersion}=require(a140_0x47c4d5(0x20b)),accessibilityHelper=require(a140_0x47c4d5(0x1f7)),logger=require(a140_0x47c4d5(0x1b9))[a140_0x47c4d5(0x21b)],{nestedKeyValue}=require('../helper.js'),scripts=require(a140_0x47c4d5(0x258)),globals=require(a140_0x47c4d5(0x20e)),testHubConstants=require('./constants.js'),PWTestDetails=require('../../bin/playwright/reporter/test-details.js'),JestTestDetails=require(a140_0x47c4d5(0x1d5)),{FRAMEWORKS}=require(a140_0x47c4d5(0x1a1)),{isTurboScaleSession}=require(a140_0x47c4d5(0x1d6)),OrchestrationUtils=require(a140_0x47c4d5(0x1b2)),constants=require('../../bin/utils/constants.js');let testData={};exports[a140_0x47c4d5(0x1af)]=_0x8d6f6d=>{const _0x1ae575=a140_0x47c4d5,_0x113395={'Itkcq':function(_0x3cfc8c){return _0x3cfc8c();}};let _0x369870=![],_0x4961e8=![];if(bsSetupHelper[_0x1ae575(0x1c3)]()&&_0x8d6f6d[_0x1ae575(0x1fb)])_0x4961e8=!![];else bsSetupHelper[_0x1ae575(0x1c3)]()&&(_0x369870=!![]);return Object['assign']({'observability':_0x113395[_0x1ae575(0x247)](isTestObservabilitySession),'accessibility':exports['isAccessibilityEnabled'](_0x8d6f6d),'percy':_0x8d6f6d[_0x1ae575(0x21e)]||![],'automate':_0x369870,'app_automate':_0x4961e8,'turboscale':bsSetupHelper[_0x1ae575(0x246)](_0x8d6f6d),'lts':LoadTestModule[_0x1ae575(0x228)](_0x8d6f6d)},bsSetupHelper[_0x1ae575(0x1aa)]());},exports[a140_0x47c4d5(0x235)]=(_0x46f056,_0x12a503)=>{const _0x47de59=a140_0x47c4d5,_0x3fd858={'BICUE':function(_0x521a03,_0x566b55){return _0x521a03(_0x566b55);},'rrCMr':'javascript'},_0x2a016b={'frameworkName':_0x12a503,'frameworkVersion':_0x3fd858[_0x47de59(0x1bf)](getFrameworkVersion,_0x12a503),'sdkVersion':bsSetupHelper[_0x47de59(0x1d3)](),'language':_0x3fd858[_0x47de59(0x1a2)],'testFramework':bsSetupHelper['getTestFrameworkDetails'](_0x46f056,_0x12a503)};return process['env'][_0x47de59(0x1e9)]=JSON['stringify'](_0x2a016b),_0x2a016b;},exports[a140_0x47c4d5(0x20a)]=_0x30c9a3=>{const _0x385c00=a140_0x47c4d5,_0x1e27bc={};_0x1e27bc['CLPsY']='false',_0x1e27bc[_0x385c00(0x214)]=_0x385c00(0x1f3);const _0x4f7aab=_0x1e27bc;process[_0x385c00(0x1ff)]['BROWSERSTACK_PERCY']=_0x4f7aab[_0x385c00(0x1b7)],bsSetupHelper[_0x385c00(0x223)](_0x30c9a3['config']['percy'])&&(!_0x30c9a3[_0x385c00(0x21e)]||!_0x30c9a3[_0x385c00(0x21e)][_0x385c00(0x237)]())&&(process[_0x385c00(0x1ff)]['BROWSERSTACK_PERCY']=_0x4f7aab['sMpYd']);},exports[a140_0x47c4d5(0x19c)]=()=>{const _0x3a8839=a140_0x47c4d5;return bsSetupHelper['isTrue'](process[_0x3a8839(0x1ff)][_0x3a8839(0x199)]);},exports[a140_0x47c4d5(0x206)]=(_0x185c9b={})=>{const _0x5cf7d8=a140_0x47c4d5,_0x4066c2={};_0x4066c2[_0x5cf7d8(0x24a)]=function(_0x316555,_0x1c8656){return _0x316555!==_0x1c8656;},_0x4066c2['cwgsp']=function(_0x37b7f4,_0x495bbc){return _0x37b7f4===_0x495bbc;},_0x4066c2[_0x5cf7d8(0x1b4)]=_0x5cf7d8(0x1f3),_0x4066c2[_0x5cf7d8(0x241)]=function(_0x2c0239,_0x2a127d){return _0x2c0239>_0x2a127d;};const _0x7cef89=_0x4066c2;if(_0x7cef89[_0x5cf7d8(0x24a)](process[_0x5cf7d8(0x1ff)][_0x5cf7d8(0x1e0)],undefined))return bsSetupHelper['isTrue'](process[_0x5cf7d8(0x1ff)]['BROWSERSTACK_ACCESSIBILITY']);let _0x4a2e19=_0x7cef89[_0x5cf7d8(0x233)](process[_0x5cf7d8(0x1ff)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x7cef89['gNXLR']);return _0x7cef89[_0x5cf7d8(0x241)](Object[_0x5cf7d8(0x249)](_0x185c9b)[_0x5cf7d8(0x217)],0x0)&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=accessibilityHelper[_0x5cf7d8(0x19f)](_0x185c9b)),_0x4a2e19=_0x4a2e19||_0x7cef89[_0x5cf7d8(0x233)](process[_0x5cf7d8(0x1ff)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM'],_0x7cef89[_0x5cf7d8(0x1b4)]),_0x4a2e19;},exports[a140_0x47c4d5(0x24d)]=(_0x5ca974,_0x1efe7e)=>{const _0x3888a6=a140_0x47c4d5,_0x3c1e57={'YENJb':function(_0x175d01){return _0x175d01();},'hCmJZ':_0x3888a6(0x1d8),'CzMbl':_0x3888a6(0x1f3),'Qmkqh':function(_0x216a73,_0x3a4250,_0x2c6267){return _0x216a73(_0x3a4250,_0x2c6267);},'ddISD':'observability','exjqY':_0x3888a6(0x1a9)};if(!_0x5ca974||!_0x5ca974[_0x3888a6(0x25d)])return exports[_0x3888a6(0x230)](),[null,null,null];if(!_0x5ca974['observability'][_0x3888a6(0x1fd)])return exports[_0x3888a6(0x230)](_0x5ca974['observability']),[null,null,null];if(_0x3c1e57[_0x3888a6(0x23d)](isTestObservabilitySession)){const _0xa7af7d=_0x3c1e57[_0x3888a6(0x1cc)][_0x3888a6(0x1ba)]('|');let _0x48bccb=0x0;while(!![]){switch(_0xa7af7d[_0x48bccb++]){case'0':return[_0x5ca974['jwt'],_0x5ca974[_0x3888a6(0x21f)],process[_0x3888a6(0x1ff)][_0x3888a6(0x1c8)]];case'1':_0x5ca974['build_hashed_id']&&(process['env'][_0x3888a6(0x19b)]=_0x5ca974['build_hashed_id']);continue;case'2':logger[_0x3888a6(0x221)]('['+constants[_0x3888a6(0x236)]+_0x3888a6(0x1d2)+_0x5ca974[_0x3888a6(0x21f)]);continue;case'3':process['env']['BS_TESTOPS_BUILD_COMPLETED']=_0x3c1e57['CzMbl'];continue;case'4':_0x3c1e57['Qmkqh'](nestedKeyValue,_0x5ca974,[_0x3c1e57[_0x3888a6(0x1ce)],_0x3c1e57[_0x3888a6(0x1f1)]])&&(process[_0x3888a6(0x1ff)][_0x3888a6(0x1c8)]=_0x5ca974['observability'][_0x3888a6(0x1a9)][_0x3888a6(0x1c9)][_0x3888a6(0x200)]());continue;case'5':if(_0x5ca974[_0x3888a6(0x1ca)]){process[_0x3888a6(0x1ff)]['BS_TESTOPS_JWT']=_0x5ca974[_0x3888a6(0x1ca)];const _0x54fc35={};_0x54fc35[_0x3888a6(0x244)]=_0x1efe7e[_0x3888a6(0x244)],_0x54fc35['password']=_0x1efe7e['password'],process['env'][_0x3888a6(0x1e2)]=JSON[_0x3888a6(0x203)](_0x54fc35);}continue;}break;}}return[null,null,null];},exports[a140_0x47c4d5(0x226)]=_0x1e56fe=>{const _0x3f655d=a140_0x47c4d5,_0x4b3848={'sXXgy':function(_0x5a8666,_0x363b02,_0x589449){return _0x5a8666(_0x363b02,_0x589449);},'OEBLz':_0x3f655d(0x23c),'EylcI':_0x3f655d(0x1a9),'pyoyW':function(_0x49498b,_0x59c108,_0x50abbe,_0x34ac0a){return _0x49498b(_0x59c108,_0x50abbe,_0x34ac0a);},'BXcXR':'name','VJtOv':_0x3f655d(0x227),'rxuZu':_0x3f655d(0x1fc),'PaIYu':'commands','JYOec':_0x3f655d(0x1d4),'tKmIs':_0x3f655d(0x25b)};if(!_0x1e56fe[_0x3f655d(0x23c)])return exports[_0x3f655d(0x250)](),[null,null];if(!_0x1e56fe[_0x3f655d(0x23c)]['success'])return exports[_0x3f655d(0x250)](_0x1e56fe[_0x3f655d(0x23c)]),[null,null];if(_0x4b3848[_0x3f655d(0x1bd)](nestedKeyValue,_0x1e56fe,[_0x4b3848[_0x3f655d(0x202)],_0x4b3848[_0x3f655d(0x259)]])){const {accessibilityToken:_0x5a5da8,scannerVersion:_0xb9444d,scannerProcessingTimeout:_0x5b605b}=_0x4b3848[_0x3f655d(0x1c5)](jsonifyAccessibilityArray,_0x1e56fe[_0x3f655d(0x23c)]['options']['capabilities'],_0x4b3848[_0x3f655d(0x24f)],_0x4b3848[_0x3f655d(0x1db)]),_0x47a8f7={'scripts':_0x4b3848[_0x3f655d(0x1c5)](jsonifyAccessibilityArray,_0x1e56fe['accessibility'][_0x3f655d(0x1a9)][_0x3f655d(0x25c)],_0x4b3848['BXcXR'],_0x4b3848[_0x3f655d(0x1c0)])};_0x47a8f7[_0x4b3848[_0x3f655d(0x1be)]]=_0x1e56fe[_0x3f655d(0x23c)][_0x3f655d(0x1a9)][_0x3f655d(0x1c1)][_0x3f655d(0x19d)];const _0x424f72=_0x4b3848[_0x3f655d(0x1c5)](jsonifyAccessibilityArray,_0x1e56fe['accessibility'][_0x3f655d(0x1a9)][_0x3f655d(0x238)],_0x4b3848[_0x3f655d(0x24f)],_0x4b3848[_0x3f655d(0x1db)]);_0x47a8f7[_0x4b3848[_0x3f655d(0x1e1)]]=_0x424f72[_0x4b3848[_0x3f655d(0x240)]],scripts[_0x3f655d(0x1c4)](_0x47a8f7),scripts[_0x3f655d(0x1da)]();let _0x5434c7=process[_0x3f655d(0x1ff)][_0x3f655d(0x21c)];return _0x5434c7=!!_0x5434c7?JSON[_0x3f655d(0x248)](_0x5434c7):{},_0x5434c7[_0x3f655d(0x253)]=_0xb9444d,process[_0x3f655d(0x1ff)][_0x3f655d(0x21c)]=JSON[_0x3f655d(0x203)](_0x5434c7),process[_0x3f655d(0x1ff)][_0x3f655d(0x21a)]=_0x5a5da8,logger[_0x3f655d(0x221)](_0x3f655d(0x1ef)+_0x1e56fe[_0x3f655d(0x21f)]),[_0x5a5da8,_0x1e56fe[_0x3f655d(0x21f)],_0x5b605b];}return[null,null];},exports[a140_0x47c4d5(0x230)]=_0x5c2120=>{const _0x1ac8f7=a140_0x47c4d5,_0x1241d1={};_0x1241d1[_0x1ac8f7(0x252)]=_0x1ac8f7(0x215),_0x1241d1['ipXCK']=_0x1ac8f7(0x23f),_0x1241d1[_0x1ac8f7(0x1b0)]=_0x1ac8f7(0x21d);const _0x545c2b=_0x1241d1,_0x28ebe3=_0x545c2b['VHUSE'][_0x1ac8f7(0x1ba)]('|');let _0x58028a=0x0;while(!![]){switch(_0x28ebe3[_0x58028a++]){case'0':process[_0x1ac8f7(0x1ff)][_0x1ac8f7(0x1f4)]=_0x545c2b[_0x1ac8f7(0x1ee)];continue;case'1':exports[_0x1ac8f7(0x24b)](_0x5c2120,testHubConstants['OBSERVABILITY']);continue;case'2':process[_0x1ac8f7(0x1ff)][_0x1ac8f7(0x1e5)]=_0x545c2b['ipXCK'];continue;case'3':process[_0x1ac8f7(0x1ff)][_0x1ac8f7(0x242)]=_0x545c2b[_0x1ac8f7(0x1b0)];continue;case'4':process['env'][_0x1ac8f7(0x1c8)]=_0x545c2b[_0x1ac8f7(0x1ee)];continue;case'5':process['env']['BS_TESTOPS_BUILD_HASHED_ID']=_0x545c2b[_0x1ac8f7(0x1ee)];continue;case'6':process['env'][_0x1ac8f7(0x1ab)]=_0x545c2b['ipXCK'];continue;}break;}},exports[a140_0x47c4d5(0x250)]=_0x4cb132=>{const _0x254c1a=a140_0x47c4d5,_0xd48b07={};_0xd48b07[_0x254c1a(0x197)]=_0x254c1a(0x1fa),_0xd48b07[_0x254c1a(0x211)]=_0x254c1a(0x21d),_0xd48b07['aiDCH']=_0x254c1a(0x23f);const _0x389e7f=_0xd48b07,_0x593123=_0x389e7f[_0x254c1a(0x197)][_0x254c1a(0x1ba)]('|');let _0x2ccb42=0x0;while(!![]){switch(_0x593123[_0x2ccb42++]){case'0':process[_0x254c1a(0x1ff)][_0x254c1a(0x22f)]=_0x389e7f[_0x254c1a(0x211)];continue;case'1':process[_0x254c1a(0x1ff)][_0x254c1a(0x1ab)]=_0x389e7f[_0x254c1a(0x1ed)];continue;case'2':exports[_0x254c1a(0x24b)](_0x4cb132,testHubConstants[_0x254c1a(0x1e7)]);continue;case'3':process[_0x254c1a(0x1ff)][_0x254c1a(0x1ea)]=_0x389e7f['PaQbp'];continue;case'4':process[_0x254c1a(0x1ff)][_0x254c1a(0x1e5)]=_0x389e7f['aiDCH'];continue;}break;}},exports['logBuildError']=(_0x5aaa79,_0x180d57='')=>{const _0x3d7774=a140_0x47c4d5,_0x26f84a={};_0x26f84a['dSsJU']=function(_0x3dad2c,_0x47a611){return _0x3dad2c===_0x47a611;};const _0x5c5d7b=_0x26f84a;if(_0x5c5d7b[_0x3d7774(0x25e)](_0x5aaa79,undefined)){logger[_0x3d7774(0x231)](_0x180d57[_0x3d7774(0x22c)]()+_0x3d7774(0x198));return;}for(const _0x109cd2 of _0x5aaa79[_0x3d7774(0x207)]){const _0x5851e5=_0x109cd2[_0x3d7774(0x19a)],_0x4aa072=_0x109cd2[_0x3d7774(0x1a8)];if(_0x4aa072)switch(_0x5851e5){case testHubConstants[_0x3d7774(0x1ad)][_0x3d7774(0x1b5)]:logger[_0x3d7774(0x231)](_0x4aa072);break;case testHubConstants[_0x3d7774(0x1ad)]['ACCESS_DENIED']:logger[_0x3d7774(0x20d)](_0x4aa072);break;case testHubConstants[_0x3d7774(0x1ad)][_0x3d7774(0x23a)]:logger[_0x3d7774(0x231)](_0x4aa072);break;default:logger['error'](_0x4aa072);}}};function a140_0x4ea9(){const _0xb19343=['EPpsm','BROWSERSTACK_TESTHUB_JWT','HookRunStarted','ACCESSIBILITY','xQYyn','FRAMEWORK_DETAILS','BROWSERSTACK_TEST_ACCESSIBILITY_YML','BfAbP','518TfiDcI','aiDCH','ipXCK','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','7886940iEzYWl','exjqY','shouldScanTestForAccessibility','true','BS_TESTOPS_JWT','NEEsV','ordiL','../accessibility-automation/helper','BROWSERSTACK_TESTHUB_UUID:\x20','162516KgTcvr','1|4|3|0|2','app','command','success','titlePath','env','toString','test_run','OEBLz','stringify','33880JqXYsN','57595FrtxBb','isAccessibilityEnabled','errors','eFwAI','join','setPercyFlag','../test-observability/utils','rEjKd','info','../globals.js','DyvYs','../../bin/v2/modules/loadTestModule','PaQbp','Csfpr','672559DekUzF','sMpYd','6|2|3|0|5|4|1','getBuildStartData','length','9UAOSOw','YVEHf','BS_A11Y_JWT','winstonLogger','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','false','percy','build_hashed_id','setTestHubCommonMetaInfo','debug','aVMYE','isTrue','tags','setTestData','setAccessibilityVariables','value','isLTSSession','tgraT','scopes','27HmSCAL','toUpperCase','yZwsF','getProductMapForBuildStartCall','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','handleErrorForObservability','error','jEnNC','cwgsp','accessibilityPlatform','getFrameworkDetails','TEST_REPORTING_ANALYTICS','isRunning','capabilities','HookRunFinished','DEPRECATED','164zmObwD','accessibility','YENJb','TestRunStarted','null','tKmIs','NhxJS','BS_TESTOPS_BUILD_COMPLETED','uhCEC','username','wydnj','isTurboScaleSession','Itkcq','parse','keys','ZxsCC','logBuildError','CUCUMBER','setTestObservabilityVariables','getAccessibilityValueFromYml','BXcXR','handleErrorForAccessibility','XVomX','VHUSE','scannerVersion','UsnaW','getTestOrchestrationBuildStartData','NMiSL','CgvaQ','../accessibility-automation/scripts.js','EylcI','gqDSY','goog:chromeOptions','scripts','observability','dSsJU','wyzod','FJLle','\x20Build\x20creation\x20failed','BROWSERSTACK_PERCY','key','BS_TESTOPS_BUILD_HASHED_ID','isPercyBuild','commands','CBTSessionCreated','checkAccessibilityPlatformConfig','getGlobal','../test-observability/constants.js','rrCMr','rlKsR','MOCHA','LogCreated','ResqJ','getAccessibilityPlatformValidation','message','options','getCentralUser','BROWSERSTACK_TESTHUB_UUID','cdFiM','ERROR','appendTesthubParams','getProductMap','SwCJm','product_map','../test-orchestration/orchestrationUtils.js','bstackA11yShouldScan','gNXLR','INVALID_CREDENTIALS','136766jnOTzb','CLPsY','MTKlN','../logger','split','rslmr','JEST','sXXgy','PaIYu','BICUE','rxuZu','commandsToWrap','PLAYWRIGHT','isBrowserstackInfra','parseFromJson','pyoyW','setCurrentTestData','forEach','BS_TESTOPS_ALLOW_SCREENSHOTS','allow_screenshots','jwt','uploadEventData','hCmJZ','1974900kSUlsM','ddISD','assign','440dyPNwx','platforms',']\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','getAgentVersion','nonBStackInfraA11yChromeOptions','../../bin/jest/test-observability/test-details.js','../ats/helper','uuid','3|5|1|4|2|0','../helper','toJson','VJtOv','isUndefined','includes','CODECEPT','getTestData','BROWSERSTACK_ACCESSIBILITY','JYOec','CREDENTIALS_FOR_CRASH_REPORTING','isAccessibilityPlatform'];a140_0x4ea9=function(){return _0xb19343;};return a140_0x4ea9();}const jsonifyAccessibilityArray=(_0x2dfd48,_0x5c6b04,_0x425775)=>{const _0x2669f3=a140_0x47c4d5,_0x2edbea={};return _0x2dfd48[_0x2669f3(0x1c7)](_0x1c921e=>{_0x2edbea[_0x1c921e[_0x5c6b04]]=_0x1c921e[_0x425775];}),_0x2edbea;};exports[a140_0x47c4d5(0x220)]=_0x180a6b=>{const _0x56258e=a140_0x47c4d5;_0x180a6b['jwt']&&(process[_0x56258e(0x1ff)][_0x56258e(0x1e5)]=_0x180a6b[_0x56258e(0x1ca)]);_0x180a6b['build_hashed_id']&&(process['env']['BROWSERSTACK_TESTHUB_UUID']=_0x180a6b[_0x56258e(0x21f)],logger['debug'](_0x56258e(0x1f8)+_0x180a6b[_0x56258e(0x21f)]));;},exports['shouldProcessEventForTesthub']=(_0x3935eb='',_0x4ad718='')=>{const _0x519aa6=a140_0x47c4d5,_0xb2c1de={'UsnaW':function(_0x4cabc0){return _0x4cabc0();},'cdFiM':function(_0x43b916,_0xc00333){return _0x43b916===_0xc00333;},'naxeI':_0x519aa6(0x1cb),'YVEHf':_0x519aa6(0x1a5),'rlKsR':_0x519aa6(0x19e),'jEnNC':'HookRunStarted','yZwsF':_0x519aa6(0x239)};if(exports[_0x519aa6(0x19c)]()&&!exports[_0x519aa6(0x206)]()&&!_0xb2c1de[_0x519aa6(0x254)](isTestObservabilitySession)){if(_0xb2c1de[_0x519aa6(0x1ac)](_0x4ad718,_0xb2c1de['naxeI']))return![];if([_0xb2c1de[_0x519aa6(0x219)],_0xb2c1de[_0x519aa6(0x1a3)]][_0x519aa6(0x1dd)](_0x3935eb))return![];return!![];}if(exports[_0x519aa6(0x206)]()&&!_0xb2c1de['UsnaW'](isTestObservabilitySession)){if([_0xb2c1de[_0x519aa6(0x232)],_0xb2c1de[_0x519aa6(0x22d)],_0xb2c1de[_0x519aa6(0x219)]]['includes'](_0x3935eb))return![];return!![];}return exports[_0x519aa6(0x206)]()||_0xb2c1de[_0x519aa6(0x254)](isTestObservabilitySession)||exports['isPercyBuild']();},exports[a140_0x47c4d5(0x1ae)]=(_0x3ca62e,_0x406ad9,_0x4b5154='',_0x405047)=>{const _0x4add4f=a140_0x47c4d5,_0x24c9ec={};_0x24c9ec[_0x4add4f(0x256)]=_0x4add4f(0x1e6),_0x24c9ec[_0x4add4f(0x1f5)]=_0x4add4f(0x239),_0x24c9ec[_0x4add4f(0x251)]=function(_0x5b2db3,_0x35d6b7){return _0x5b2db3===_0x35d6b7;},_0x24c9ec[_0x4add4f(0x245)]=_0x4add4f(0x1b3),_0x24c9ec[_0x4add4f(0x1eb)]=_0x4add4f(0x1e3),_0x24c9ec[_0x4add4f(0x208)]=_0x4add4f(0x23c),_0x24c9ec['tgraT']=function(_0x3787e6,_0x27784f){return _0x3787e6&&_0x27784f;},_0x24c9ec[_0x4add4f(0x20f)]=function(_0x156877,_0x300ea5){return _0x156877===_0x300ea5;},_0x24c9ec['uhCEC']=function(_0x1ef278,_0x11b3e5){return _0x1ef278+_0x11b3e5;},_0x24c9ec[_0x4add4f(0x196)]=function(_0xe3383e,_0x38ccf5){return _0xe3383e+_0x38ccf5;},_0x24c9ec[_0x4add4f(0x1e8)]=function(_0x2dcd97,_0x51d9fe){return _0x2dcd97===_0x51d9fe;},_0x24c9ec['AAqZM']=_0x4add4f(0x23e),_0x24c9ec['rslmr']=function(_0x44fa2d,_0x11d6e0){return _0x44fa2d===_0x11d6e0;},_0x24c9ec[_0x4add4f(0x1f6)]=function(_0x189be9,_0x2c4e26){return _0x189be9&&_0x2c4e26;},_0x24c9ec[_0x4add4f(0x257)]=_0x4add4f(0x1b1);const _0x535673=_0x24c9ec;if(![_0x535673[_0x4add4f(0x256)],_0x535673['NEEsV']]['includes'](_0x406ad9)&&exports[_0x4add4f(0x206)]()){const _0x336fd6={};if(_0x535673[_0x4add4f(0x251)](_0x405047,FRAMEWORKS[_0x4add4f(0x1a4)])){const _0x100581=globals[_0x4add4f(0x1a0)](_0x535673[_0x4add4f(0x245)])||accessibilityHelper['shouldScanTestForAccessibility'](_0x4b5154[_0x4add4f(0x1fe)](),!![]),_0xdda8e5=globals[_0x4add4f(0x1a0)](_0x535673['BfAbP']);_0x336fd6[_0x535673[_0x4add4f(0x208)]]=_0x535673[_0x4add4f(0x229)](_0xdda8e5,_0x100581);}if(_0x535673[_0x4add4f(0x20f)](_0x405047,FRAMEWORKS[_0x4add4f(0x1bc)])){const _0x24061c=_0x535673[_0x4add4f(0x243)](_0x535673[_0x4add4f(0x196)](_0x3ca62e[_0x4add4f(0x22a)][_0x4add4f(0x209)]('\x20'),'\x20'),_0x4b5154['name']),_0x1f3d2e=globals['getGlobal'](_0x535673[_0x4add4f(0x245)])||accessibilityHelper['shouldScanTestForAccessibility'](_0x24061c,![]),_0x1adeab=browserStackGlobals[_0x4add4f(0x1e3)];_0x336fd6[_0x535673[_0x4add4f(0x208)]]=_0x535673[_0x4add4f(0x229)](_0x1adeab,_0x1f3d2e);}if(_0x535673['DyvYs'](_0x405047,FRAMEWORKS[_0x4add4f(0x1c2)])){if(_0x535673[_0x4add4f(0x1e8)](_0x406ad9,_0x535673['AAqZM']))return;_0x336fd6[_0x535673[_0x4add4f(0x208)]]=PWTestDetails[_0x4add4f(0x1a7)](_0x3ca62e[_0x4add4f(0x1d7)]);}if(_0x535673['rslmr'](_0x405047,FRAMEWORKS[_0x4add4f(0x1de)])){const _0x3030e4=accessibilityHelper[_0x4add4f(0x1f2)](_0x4b5154[_0x4add4f(0x1fe)](),!![]),_0x24f1eb=global[_0x4add4f(0x234)];_0x336fd6[_0x535673[_0x4add4f(0x208)]]=_0x535673['ordiL'](_0x24f1eb,_0x3030e4);}if(_0x535673[_0x4add4f(0x1bb)](_0x405047,FRAMEWORKS[_0x4add4f(0x24c)])){const _0x560e04=accessibilityHelper[_0x4add4f(0x1f2)](null,![],_0x3ca62e[_0x4add4f(0x224)]),_0x5b42a3=globals[_0x4add4f(0x1a0)](_0x535673[_0x4add4f(0x1eb)]);_0x336fd6[_0x535673['eFwAI']]=_0x535673[_0x4add4f(0x229)](_0x5b42a3,_0x560e04);}_0x3ca62e[_0x535673[_0x4add4f(0x257)]]=_0x336fd6;}},exports['getCurrentTestData']=_0x30dcff=>{const _0x3a0e85=a140_0x47c4d5,_0x247023={};_0x247023[_0x3a0e85(0x212)]=function(_0x2c86df,_0x33aae5){return _0x2c86df>_0x33aae5;},_0x247023[_0x3a0e85(0x25a)]=function(_0x1cab1e,_0x7c3cda){return _0x1cab1e>_0x7c3cda;};const _0x584976=_0x247023;let _0x56fa98={};if(_0x584976['Csfpr'](Object[_0x3a0e85(0x249)](testData)['length'],0x0))return testData;_0x56fa98=JestTestDetails[_0x3a0e85(0x1df)]();if(_0x584976['gqDSY'](Object['keys'](_0x56fa98)[_0x3a0e85(0x217)],0x0))return _0x56fa98;return _0x56fa98;},exports[a140_0x47c4d5(0x1c6)]=(_0xdf34b,_0xa5f8b7={})=>{const _0x112ee8=a140_0x47c4d5;if(bsSetupHelper[_0x112ee8(0x1dc)](_0xa5f8b7[_0x112ee8(0x201)]))return;switch(_0xdf34b){case FRAMEWORKS[_0x112ee8(0x1a4)]:testData=_0xa5f8b7[_0x112ee8(0x201)];break;case FRAMEWORKS['JEST']:JestTestDetails[_0x112ee8(0x225)](_0xa5f8b7[_0x112ee8(0x201)]);break;default:break;}},exports[a140_0x47c4d5(0x24e)]=_0x392931=>{const _0x32f8dd=a140_0x47c4d5,_0x30878a={};_0x30878a[_0x32f8dd(0x222)]=function(_0x573b3e,_0x7a7afb){return _0x573b3e!==_0x7a7afb;},_0x30878a['MTKlN']=function(_0x2f535d,_0x509535){return _0x2f535d!==_0x509535;},_0x30878a[_0x32f8dd(0x20c)]=function(_0x103130,_0x48fba5){return _0x103130!==_0x48fba5;},_0x30878a['EPpsm']=function(_0x563f06,_0x445ad8){return _0x563f06!==_0x445ad8;};const _0x55092e=_0x30878a;if(_0x55092e[_0x32f8dd(0x222)](_0x392931[_0x32f8dd(0x23c)],null)&&_0x55092e[_0x32f8dd(0x1b8)](_0x392931['accessibility'],undefined))return _0x392931[_0x32f8dd(0x23c)];let _0x4bbee3=![],_0xe53ce7=![];if(_0x392931[_0x32f8dd(0x1d1)])for(const _0x3f3f3f of _0x392931['platforms']){_0x55092e[_0x32f8dd(0x20c)](_0x3f3f3f[_0x32f8dd(0x23c)],null)&&_0x55092e[_0x32f8dd(0x1e4)](_0x3f3f3f[_0x32f8dd(0x23c)],undefined)&&(_0x4bbee3=_0x4bbee3||bsSetupHelper[_0x32f8dd(0x223)](_0x3f3f3f[_0x32f8dd(0x23c)]),_0xe53ce7=!![]);}if(_0xe53ce7)return _0x4bbee3;return null;},exports[a140_0x47c4d5(0x255)]=_0x55e00d=>{const _0x3a80ff=a140_0x47c4d5,_0xed6f57=new OrchestrationUtils(_0x55e00d);return _0xed6f57[_0x3a80ff(0x216)]();},exports[a140_0x47c4d5(0x22e)]=_0x3fb8c3=>{const _0x202c21=a140_0x47c4d5,_0x2ce385={'ResqJ':function(_0x590bf9){return _0x590bf9();}};let _0x52efd8=![],_0x4a0daf=![];if(bsSetupHelper[_0x202c21(0x1c3)]()&&_0x3fb8c3['app'])_0x4a0daf=!![];else bsSetupHelper[_0x202c21(0x1c3)]()&&(_0x52efd8=!![]);return Object[_0x202c21(0x1cf)]({'observability':_0x2ce385[_0x202c21(0x1a6)](isTestObservabilitySession),'accessibility':exports[_0x202c21(0x24e)](_0x3fb8c3),'percy':_0x3fb8c3['percy']||![],'automate':_0x52efd8,'app_automate':_0x4a0daf,'turboscale':bsSetupHelper['isTurboScaleSession'](_0x3fb8c3),'lts':LoadTestModule[_0x202c21(0x228)](_0x3fb8c3)},bsSetupHelper[_0x202c21(0x1aa)]());};
@@ -1 +1 @@
1
- function a141_0x33b3(_0x37c622,_0x3035f6){const _0x459e8e=a141_0x459e();return a141_0x33b3=function(_0x33b3c0,_0x3d30f6){_0x33b3c0=_0x33b3c0-0xb3;let _0xf0a7c1=_0x459e8e[_0x33b3c0];return _0xf0a7c1;},a141_0x33b3(_0x37c622,_0x3035f6);}const a141_0x1e0087=a141_0x33b3;function a141_0x459e(){const _0x3c6042=['121BeRJBH','369818fMczuj','12IHSfZQ','1515166IwUiOI','vTXpi','fpQNj','SCiTx','2776390YnCNPZ','124MsDQmA','cancel','33207eWcRhw','JYMyr','6078159RGWWXH','xmvGp','8menpFC','./utilities','6736534tiNrOe','2114980EJpJXB'];a141_0x459e=function(){return _0x3c6042;};return a141_0x459e();}(function(_0x41e58a,_0x1feeec){const _0x22d278=a141_0x33b3,_0x15b055=_0x41e58a();while(!![]){try{const _0x290593=parseInt(_0x22d278(0xb6))/0x1+-parseInt(_0x22d278(0xb8))/0x2+parseInt(_0x22d278(0xbf))/0x3*(parseInt(_0x22d278(0xbd))/0x4)+-parseInt(_0x22d278(0xb4))/0x5*(parseInt(_0x22d278(0xb7))/0x6)+-parseInt(_0x22d278(0xb3))/0x7+-parseInt(_0x22d278(0xc3))/0x8*(parseInt(_0x22d278(0xc1))/0x9)+parseInt(_0x22d278(0xbc))/0xa*(parseInt(_0x22d278(0xb5))/0xb);if(_0x290593===_0x1feeec)break;else _0x15b055['push'](_0x15b055['shift']());}catch(_0x2aade6){_0x15b055['push'](_0x15b055['shift']());}}}(a141_0x459e,0x80582));const utilities=require(a141_0x1e0087(0xc4));module['exports']=(_0x380c8a,_0x39ee8f,_0x364c2e,_0x443e94,_0x54b6f7,_0x3a31df)=>{const _0x2d09e0=a141_0x1e0087,_0x24b4ab={'JYMyr':function(_0x430826,_0x193d2a){return _0x430826-_0x193d2a;},'cPiNr':function(_0x542c15,_0x579bc3){return _0x542c15(_0x579bc3);},'fpQNj':function(_0x3a8378,_0x482c57,_0x4c698a){return _0x3a8378(_0x482c57,_0x4c698a);},'SCiTx':function(_0x526b35,_0x384ac6){return _0x526b35(_0x384ac6);}};let _0x147806,_0x20add5=![];const _0x1a5371=new Promise((_0x40333b,_0x2afe19)=>{const _0x34e71f=a141_0x33b3,_0x2fd59c={'xmvGp':function(_0x3cd32c,_0x5a1551){const _0x7b1825=a141_0x33b3;return _0x24b4ab[_0x7b1825(0xc0)](_0x3cd32c,_0x5a1551);},'vTXpi':function(_0x522468,_0x40cfc8){return _0x24b4ab['cPiNr'](_0x522468,_0x40cfc8);}};_0x147806=_0x24b4ab[_0x34e71f(0xba)](setTimeout,()=>{const _0x5ee0f4=_0x34e71f;if(!_0x20add5){const _0x8949ba={'status':''+_0x39ee8f,'timeTaken':_0x2fd59c[_0x5ee0f4(0xc2)](new Date(),_0x443e94)};utilities['fireFunnelTestEvent'](_0x364c2e,_0x8949ba,_0x54b6f7,_0x3a31df),_0x2fd59c[_0x5ee0f4(0xb9)](_0x2afe19,new Error(_0x39ee8f));}},_0x380c8a);});return _0x1a5371[_0x2d09e0(0xbe)]=()=>{const _0x25ce12=_0x2d09e0;_0x20add5=!![],_0x24b4ab[_0x25ce12(0xbb)](clearTimeout,_0x147806);},_0x1a5371;};
1
+ const a141_0x108fa8=a141_0x1de4;function a141_0x1de4(_0x32cc64,_0x42d380){const _0x184030=a141_0x1840();return a141_0x1de4=function(_0x1de435,_0x1f94fa){_0x1de435=_0x1de435-0x1ad;let _0x544d14=_0x184030[_0x1de435];return _0x544d14;},a141_0x1de4(_0x32cc64,_0x42d380);}(function(_0x3dc5ff,_0x3c52dc){const _0x5ce88e=a141_0x1de4,_0x28d0e5=_0x3dc5ff();while(!![]){try{const _0x4b0ad1=parseInt(_0x5ce88e(0x1b0))/0x1+-parseInt(_0x5ce88e(0x1b9))/0x2+-parseInt(_0x5ce88e(0x1b6))/0x3*(parseInt(_0x5ce88e(0x1ad))/0x4)+-parseInt(_0x5ce88e(0x1b1))/0x5+parseInt(_0x5ce88e(0x1af))/0x6*(parseInt(_0x5ce88e(0x1b4))/0x7)+parseInt(_0x5ce88e(0x1b2))/0x8*(parseInt(_0x5ce88e(0x1b8))/0x9)+parseInt(_0x5ce88e(0x1ae))/0xa;if(_0x4b0ad1===_0x3c52dc)break;else _0x28d0e5['push'](_0x28d0e5['shift']());}catch(_0xf69d57){_0x28d0e5['push'](_0x28d0e5['shift']());}}}(a141_0x1840,0x8dd2f));const utilities=require(a141_0x108fa8(0x1b3));function a141_0x1840(){const _0xd99fdf=['736982pPHxuq','5303195UpVYKf','8CQUgcP','./utilities','6742113OYKTiQ','sNZUf','929589QfjEZr','exports','8097462SYBOVQ','507552NyfOXf','12tUxbyG','2250560YjKchK','6scUGDl'];a141_0x1840=function(){return _0xd99fdf;};return a141_0x1840();}module[a141_0x108fa8(0x1b7)]=(_0x3052d3,_0x1acb25,_0x2881d9,_0x764006,_0x5c17be,_0x24376b)=>{const _0x26e683={'ShTTP':function(_0x52de88,_0x465207){return _0x52de88-_0x465207;},'Hhzjs':function(_0x26dc2d,_0x367395){return _0x26dc2d(_0x367395);},'sNZUf':function(_0x143f7f,_0x66312d,_0x4e8051){return _0x143f7f(_0x66312d,_0x4e8051);}};let _0x5f384c,_0x1fd982=![];const _0x4ea951=new Promise((_0xd9762c,_0x3c2e8e)=>{const _0x17badf=a141_0x1de4;_0x5f384c=_0x26e683[_0x17badf(0x1b5)](setTimeout,()=>{if(!_0x1fd982){const _0x448f9a={'status':''+_0x1acb25,'timeTaken':_0x26e683['ShTTP'](new Date(),_0x764006)};utilities['fireFunnelTestEvent'](_0x2881d9,_0x448f9a,_0x5c17be,_0x24376b),_0x26e683['Hhzjs'](_0x3c2e8e,new Error(_0x1acb25));}},_0x3052d3);});return _0x4ea951['cancel']=()=>{_0x1fd982=!![],_0x26e683['Hhzjs'](clearTimeout,_0x5f384c);},_0x4ea951;};
@@ -1 +1 @@
1
- const a142_0x28d0b6=a142_0x46fa;function a142_0x46fa(_0x884eef,_0x475fb9){const _0x531396=a142_0x5313();return a142_0x46fa=function(_0x46fa26,_0x3a4338){_0x46fa26=_0x46fa26-0x186;let _0x17694b=_0x531396[_0x46fa26];return _0x17694b;},a142_0x46fa(_0x884eef,_0x475fb9);}(function(_0xa18147,_0x40a1db){const _0x1d83d1=a142_0x46fa,_0x35c098=_0xa18147();while(!![]){try{const _0x2565b1=-parseInt(_0x1d83d1(0x1c1))/0x1*(-parseInt(_0x1d83d1(0x1cd))/0x2)+-parseInt(_0x1d83d1(0x1c6))/0x3+-parseInt(_0x1d83d1(0x211))/0x4*(-parseInt(_0x1d83d1(0x1a6))/0x5)+-parseInt(_0x1d83d1(0x19d))/0x6+parseInt(_0x1d83d1(0x206))/0x7+parseInt(_0x1d83d1(0x1b5))/0x8+-parseInt(_0x1d83d1(0x1af))/0x9*(parseInt(_0x1d83d1(0x1c7))/0xa);if(_0x2565b1===_0x40a1db)break;else _0x35c098['push'](_0x35c098['shift']());}catch(_0x2e8ef5){_0x35c098['push'](_0x35c098['shift']());}}}(a142_0x5313,0x1ed7b));function a142_0x5313(){const _0x4b2754=['format','object','type','AUTOMATE_PRODUCTS','../bin/utils/constants','hNyxW','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','API\x20Event\x20','getUserName','util','./globals','1502526mitTcZ','trim','error','tWCXJ','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','PyXxO','JDPjP','Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20','paruY','6140DTmVxT','assign','fireFunnelTestEvent','Error\x20in\x20firing\x20request\x20to\x20','tFZJR','osVersion','nodeRequest','chmodSync','./helper','450hOhnIh','notifyUpdate','sendLogs','HwHeD','kpmZp','parse','1741384kSmqsd','getOptimalHubUrl','getTurboScaleSessionsList','bRfyS','getTurboScaleBuildLink','browserVersion','jZtJb','SDK\x20run\x20ended\x20for\x20id:\x20','values','getTestFrameworkDetails','aGFEM','lKWfa','28277TkmAKQ','getNodeAgent','null',',\x20testhub\x20id:\x20','stringify','135024VEZcPe','49510joJdsN','killSignal','setReadWriteExecuteAccess','../bin/playwright/reporter/pwUtils','getSessionsList','isModifiable','16wtruCg','browser','gGNZN','unknown','./test-observability/utils','body','every','sdkRunId','getBuildLink','JfwZU','W_OK','keys','getGlobal','ADtqI','content-type','getStackTraceAsString','Failed\x20to\x20set\x20directory\x20access:\x20','[REDACTED]','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','all','buildIdentifier','WPbEK','NawRB','length','_buildHashedId','apply','LvQXs','SDKTestSuccessful','stopPercy','APP_AUTOMATE','globalException','source','event_properties','nMMGn','tests','getAccessKey','../helpers/testhub/constants','env','version','config','pRcus','POST','X_OK','reduce','LrYWC','CtEUW','Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20','AUTOMATE','APP_AUTOMATE_PRODUCTS','name','replace','BHahv','./performance/performance-tester','hbnRD','application/json','debug','\x20response\x20-\x20','769923Zuftob','toString','ezkEU','user_killed','ENV_VAR','JhUgu','undefined','playwrightVersion','unhandledErrors','info','wmQga','376YSZfdd','isBrowserstackInfra','framework','constants','finalExecution','nodejs','isTurboScaleSession','finishedMetadata','forEach','ssghE','./logger','QMNjt','PvNxI','aPJzZ','PvITa','Playwright','abDOI'];a142_0x5313=function(){return _0x4b2754;};return a142_0x5313();}const os=require('os'),util=require(a142_0x28d0b6(0x19b)),fs=require('fs'),{getProductMap}=require('./testhub/utils'),logger=require(a142_0x28d0b6(0x18b))['winstonLogger'],constants=require('../bin/utils/constants'),testHubConstants=require(a142_0x28d0b6(0x1f1)),{getTransformPath}=require(a142_0x28d0b6(0x1ca)),{FUNNEL_INSTRUMENTATION_API_URL}=require(a142_0x28d0b6(0x196)),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a142_0x28d0b6(0x1ae)),PerformanceTester=require(a142_0x28d0b6(0x201)),globals=require(a142_0x28d0b6(0x19c)),helper=require(a142_0x28d0b6(0x1ae)),{isTestObservabilitySession}=require(a142_0x28d0b6(0x1d1));let unhandledErrors='';exports['fireFunnelTestEvent']=async(_0x4929fa,_0xd30479={},_0x20f3d6,_0x16fdc5,_0x27f336=![])=>{const _0x4d2369=a142_0x28d0b6,_0x5199aa={'hNyxW':function(_0x41c306,_0x4b84ce){return _0x41c306===_0x4b84ce;},'CtEUW':_0x4d2369(0x193),'lKWfa':function(_0x695240,_0xb60be4){return _0x695240>_0xb60be4;},'jZtJb':_0x4d2369(0x1ef),'JfwZU':function(_0x2c44d0){return _0x2c44d0();},'ssghE':function(_0x2225cf){return _0x2225cf();},'paruY':function(_0x41f853,_0x2cfbb6){return _0x41f853==_0x2cfbb6;},'bRfyS':_0x4d2369(0x1c3),'tWCXJ':_0x4d2369(0x20c),'WPbEK':function(_0x1574e4,_0x2f5e0f){return _0x1574e4===_0x2f5e0f;},'abDOI':'codeceptjs','SvzNB':function(_0x1a7945,_0x4ed7f0){return _0x1a7945!==_0x4ed7f0;},'hbnRD':_0x4d2369(0x190),'NawRB':function(_0x18d7f1,_0x29f4fd){return _0x18d7f1===_0x29f4fd;},'pRcus':_0x4d2369(0x19f),'VLgNu':function(_0x48795e,_0x1975c0){return _0x48795e>_0x1975c0;},'kpmZp':function(_0xbf3f6d,_0x1fae63){return _0xbf3f6d+_0x1fae63;},'aPJzZ':_0x4d2369(0x1a1),'aGFEM':_0x4d2369(0x1e5),'BHahv':function(_0x3d9043,_0x27014c){return _0x3d9043(_0x27014c);},'PvITa':_0x4d2369(0x1d0),'LvQXs':_0x4d2369(0x186),'PvNxI':_0x4d2369(0x1e8),'ADtqI':'selenium-webdriver','LrYWC':_0x4d2369(0x203),'gGNZN':_0x4d2369(0x1de),'neYXp':_0x4d2369(0x1f6)};let _0x4e12ee=[];if(helper[_0x4d2369(0x212)]()&&_0x5199aa[_0x4d2369(0x1d6)](isTestObservabilitySession))_0x4e12ee=_0x20f3d6['app']?constants[_0x4d2369(0x1fd)]:constants[_0x4d2369(0x195)];else{if(_0x5199aa['ssghE'](isTestObservabilitySession))_0x4e12ee=constants[_0x4d2369(0x1df)];else helper[_0x4d2369(0x212)]()&&(_0x4e12ee=_0x20f3d6['app']?constants[_0x4d2369(0x1ea)]:constants[_0x4d2369(0x1fc)]);}let _0x5b0744=_0x20f3d6[_0x4d2369(0x1e1)];if(_0x5199aa[_0x4d2369(0x1a5)](_0x5b0744,null))_0x5b0744=_0x5199aa[_0x4d2369(0x1b8)];else _0x5199aa[_0x4d2369(0x197)](_0x5b0744,undefined)&&(_0x5b0744=_0x5199aa[_0x4d2369(0x1a0)]);unhandledErrors&&_0x5199aa[_0x4d2369(0x1c0)](unhandledErrors['length'],0x0)&&(_0xd30479[_0x4d2369(0x1eb)]=unhandledErrors);global[_0x4d2369(0x1d4)]&&(_0xd30479[_0x4d2369(0x1d4)]=global['sdkRunId']);try{if(_0xd30479[_0x4d2369(0x19f)]){if(_0x5199aa[_0x4d2369(0x1e2)](_0x16fdc5,_0x5199aa[_0x4d2369(0x191)])&&_0x5199aa[_0x4d2369(0x1c0)](_0xd30479[_0x4d2369(0x19f)][_0x4d2369(0x1e4)],0x0)){const _0x8cc198={};_0x8cc198['os']='',_0x8cc198[_0x4d2369(0x1ab)]='',_0x8cc198[_0x4d2369(0x1ce)]='',_0x8cc198[_0x4d2369(0x1ba)]='';const _0x384b6f=_0x8cc198;let _0xede7ee={};const _0x7fdf34=_0xd30479['error'];_0xede7ee=_0x7fdf34[_0x4d2369(0x1f8)]((_0x3eeb42,_0x3ac395)=>{for(const _0x29ca7c in _0x3ac395){_0x3eeb42[_0x29ca7c]=_0x3ac395[_0x29ca7c];}return _0x3eeb42;},{});const _0x55b2a2={};_0x55b2a2[_0x4d2369(0x1ef)]=_0xede7ee,_0xd30479['error']=[Object[_0x4d2369(0x1a7)]({},_0x384b6f,_0x55b2a2)];}else{let _0x101613=0x0;const _0x36312b=_0x5199aa['SvzNB'](_0x16fdc5,_0x5199aa[_0x4d2369(0x202)])?JSON[_0x4d2369(0x1b4)](_0xd30479[_0x4d2369(0x19f)]):_0xd30479[_0x4d2369(0x19f)],_0x2c6017=Object[_0x4d2369(0x1bd)](_0x36312b);_0x2c6017['forEach'](_0x53e09e=>{const _0x4ca601=_0x4d2369;if(_0x5199aa[_0x4ca601(0x197)](typeof _0x53e09e,_0x5199aa[_0x4ca601(0x1fa)])){const _0x5af9e3=Object[_0x4ca601(0x1bd)](_0x53e09e);!_0x5af9e3[_0x4ca601(0x1d3)](_0x13c322=>_0x13c322===null||_0x13c322===undefined||_0x13c322==='')&&(_0x101613+=0x1);}});if(_0x5199aa[_0x4d2369(0x1e3)](_0x101613,0x0))delete _0xd30479[_0x5199aa[_0x4d2369(0x1f5)]];else{const _0x1351ff=[];Object[_0x4d2369(0x1d8)](_0x36312b)[_0x4d2369(0x189)](_0x173c1f=>{const _0x3f12a6=_0x4d2369,[_0x35646b,_0x1efbb4,_0x1b5575,_0x222a9c]=_0x173c1f['split'](',\x20');let _0x577af5={};if(!_0x222a9c){const _0x53dcdd={};_0x53dcdd['deviceName']=_0x35646b,_0x53dcdd[_0x3f12a6(0x1ab)]=_0x1efbb4,_0x53dcdd[_0x3f12a6(0x1ce)]=_0x1b5575,_0x577af5=_0x53dcdd;}else{const _0x1b3237={};_0x1b3237['os']=_0x35646b,_0x1b3237[_0x3f12a6(0x1ab)]=_0x1efbb4,_0x1b3237[_0x3f12a6(0x1ce)]=_0x1b5575,_0x1b3237['browserVersion']=_0x222a9c,_0x577af5=_0x1b3237;}const _0x4864ce={},_0x2e0aaf=_0x36312b[_0x173c1f];Object[_0x3f12a6(0x1d8)](_0x2e0aaf)[_0x3f12a6(0x189)](_0x434cfe=>{const _0x2888fb=_0x3f12a6;_0x5199aa[_0x2888fb(0x1c0)](_0x2e0aaf[_0x434cfe][_0x2888fb(0x1e4)],0x0)&&(_0x4864ce[_0x434cfe]=_0x2e0aaf[_0x434cfe]);}),_0x5199aa[_0x3f12a6(0x1c0)](Object[_0x3f12a6(0x1d8)](_0x4864ce)[_0x3f12a6(0x1e4)],0x0)&&(_0x577af5[_0x5199aa[_0x3f12a6(0x1bb)]]=_0x4864ce,_0x1351ff['push'](_0x577af5));}),_0x5199aa['VLgNu'](_0x1351ff[_0x4d2369(0x1e4)],0x0)?_0xd30479[_0x4d2369(0x19f)]=_0x1351ff:delete _0xd30479[_0x5199aa[_0x4d2369(0x1f5)]];}}}}catch(_0x2dc04d){delete _0xd30479[_0x5199aa['pRcus']],logger[_0x4d2369(0x204)](_0x5199aa[_0x4d2369(0x1b3)](_0x5199aa[_0x4d2369(0x18e)],_0x2dc04d));}const _0x50e714=helper[_0x4d2369(0x1be)](_0x20f3d6,_0x20f3d6[_0x4d2369(0x213)]),_0x103a66={'userName':helper[_0x4d2369(0x19a)](_0x20f3d6),'accessKey':helper[_0x4d2369(0x1f0)](_0x20f3d6),'event_type':_0x4929fa,'detectedFramework':_0x16fdc5,'buildHashedId':globals[_0x4d2369(0x1d9)](_0x5199aa[_0x4d2369(0x1bf)]),'optimalHubUrl':helper[_0x4d2369(0x1b6)](),'event_properties':{'testhub_uuid':process[_0x4d2369(0x1f2)][testHubConstants[_0x4d2369(0x20a)]['BROWSERSTACK_TESTHUB_UUID']]||'','sdkRunId':global[_0x4d2369(0x1d4)],'product_map':_0x5199aa[_0x4d2369(0x200)](getProductMap,_0x20f3d6),'productMap':_0x5199aa['BHahv'](getProductMap,_0x20f3d6),'language_framework':_0x20f3d6[_0x4d2369(0x1ec)]||_0x5199aa[_0x4d2369(0x18f)],'referrer':helper[_0x4d2369(0x1c2)](_0x16fdc5),'framework':_0x20f3d6['framework'],'frameworkVersion':helper['getFrameworkVersion'](_0x16fdc5),'automationFramework':_0x50e714[_0x4d2369(0x1fe)],'automationFrameworkVersion':_0x50e714[_0x4d2369(0x1f3)],'language':_0x5199aa[_0x4d2369(0x1e7)],'languageVersion':process['version'],'product':_0x4e12ee,'buildName':_0x20f3d6['buildName']||_0x5199aa[_0x4d2369(0x1a0)],'buildIdentifier':_0x5b0744,'os':os[_0x4d2369(0x194)]()||_0x5199aa[_0x4d2369(0x18f)],'hostname':os['hostname']()||_0x5199aa[_0x4d2369(0x18f)],..._0xd30479,'isCLIEnabled':_0x27f336}};try{_0x5199aa[_0x4d2369(0x197)](_0x4929fa,_0x5199aa[_0x4d2369(0x18d)])&&(_0x103a66[_0x4d2369(0x1ed)]['browserStackConfig']=helper['sanitizeBrowserStackConfig'](_0x20f3d6)),_0x5199aa['WPbEK'](_0x16fdc5,_0x5199aa[_0x4d2369(0x202)])?_0x103a66[_0x4d2369(0x1ed)][_0x4d2369(0x20d)]=helper['requirePWModule'][_0x4d2369(0x1e6)](null,_0x5199aa[_0x4d2369(0x18a)](getTransformPath),!![]):_0x103a66[_0x4d2369(0x1ed)]['seleniumVersion']=helper['getPackageVersion'](_0x5199aa[_0x4d2369(0x1da)]);}catch(_0x3cfe3d){logger['debug'](_0x4d2369(0x1fb)+_0x3cfe3d);}const _0xfa16ef={};_0xfa16ef[_0x4d2369(0x1db)]=_0x5199aa[_0x4d2369(0x1f9)];const _0x11d1e4={'headers':_0xfa16ef,'body':_0x103a66,'auth':{'user':helper['getUserName'](_0x20f3d6),'pass':helper[_0x4d2369(0x1f0)](_0x20f3d6)},'json':!![]};logger['debug'](_0x4d2369(0x198)+JSON[_0x4d2369(0x1c5)](_0x11d1e4[_0x4d2369(0x1d2)])[_0x4d2369(0x1ff)](new RegExp(helper[_0x4d2369(0x19a)](_0x20f3d6),'g'),_0x5199aa[_0x4d2369(0x1cf)])[_0x4d2369(0x1ff)](new RegExp(helper[_0x4d2369(0x1f0)](_0x20f3d6),'g'),_0x5199aa[_0x4d2369(0x1cf)]));try{const _0xa5e7a0=await helper[_0x4d2369(0x1ac)](_0x5199aa['neYXp'],FUNNEL_INSTRUMENTATION_API_URL,_0x11d1e4,_0x20f3d6);logger[_0x4d2369(0x204)](_0x4d2369(0x199)+_0x4929fa+_0x4d2369(0x205)+util[_0x4d2369(0x192)]('%j',_0xa5e7a0));}catch(_0x36c9f1){logger['debug'](_0x4d2369(0x1a9)+FUNNEL_INSTRUMENTATION_API_URL+'\x20:\x20'+util['format'](_0x36c9f1));}},exports[a142_0x28d0b6(0x215)]=async(_0x734283,_0x3f223d=![])=>{const _0x1fd274=a142_0x28d0b6,_0x2223ad={'QkSmo':function(_0x1491ec){return _0x1491ec();},'ezkEU':_0x1fd274(0x188),'kzXlk':_0x1fd274(0x209),'HwHeD':_0x1fd274(0x1e8),'QMNjt':function(_0x219c72,_0x4ddbbe,_0x20121d){return _0x219c72(_0x4ddbbe,_0x20121d);},'wmQga':function(_0x6aeb54,_0x5721b8){return _0x6aeb54+_0x5721b8;},'PyXxO':_0x1fd274(0x1a4)};try{await _0x734283[_0x1fd274(0x1e9)](),_0x2223ad['QkSmo'](printNudgeLocalNotSetError);const _0x448115={};_0x448115[_0x1fd274(0x19f)]=_0x734283['errorMessage']?_0x734283['errorMessage']:'{}';const _0x54bc5c=_0x448115,_0x4130ac=Object['assign']({},_0x54bc5c);!!_0x734283[_0x1fd274(0x1c8)]&&(_0x4130ac[_0x2223ad[_0x1fd274(0x208)]]={'reason':_0x2223ad['kzXlk'],'signal':_0x734283[_0x1fd274(0x1c8)]});unhandledErrors=_0x734283[_0x1fd274(0x20e)]['join']('\x0a');let _0x46d088,_0x1d86d6,_0x25845e;helper[_0x1fd274(0x187)](_0x734283[_0x1fd274(0x1f4)])?([_0x46d088,_0x1d86d6]=await helper[_0x1fd274(0x1b9)](_0x734283[_0x1fd274(0x1f4)]),[_0x25845e]=await Promise[_0x1fd274(0x1e0)]([helper[_0x1fd274(0x1b7)](_0x46d088,_0x734283['config']),exports[_0x1fd274(0x1a8)](_0x2223ad[_0x1fd274(0x1b2)],_0x4130ac,_0x734283[_0x1fd274(0x1f4)],_0x734283[_0x1fd274(0x213)],_0x3f223d)])):([_0x46d088,_0x1d86d6]=await helper[_0x1fd274(0x1d5)](_0x734283[_0x1fd274(0x1f4)]),[_0x25845e]=await Promise[_0x1fd274(0x1e0)]([helper[_0x1fd274(0x1cb)](_0x46d088,_0x734283[_0x1fd274(0x1f4)]),exports[_0x1fd274(0x1a8)](_0x2223ad[_0x1fd274(0x1b2)],_0x4130ac,_0x734283[_0x1fd274(0x1f4)],_0x734283['framework'],_0x3f223d)])),_0x25845e&&await _0x2223ad[_0x1fd274(0x18c)](generateCIArtifacts,_0x25845e,_0x1d86d6),logger[_0x1fd274(0x20f)](_0x1fd274(0x1bc)+_0x734283['sdkRunId']+_0x1fd274(0x1c4)+process[_0x1fd274(0x1f2)]['BROWSERSTACK_TESTHUB_UUID']),await helper[_0x1fd274(0x1b1)](_0x734283[_0x1fd274(0x1f4)]);}catch(_0x5c161d){logger[_0x1fd274(0x204)](_0x2223ad[_0x1fd274(0x210)](_0x2223ad[_0x1fd274(0x1a2)],_0x5c161d));}helper[_0x1fd274(0x1b0)]();},exports[a142_0x28d0b6(0x1dc)]=_0xc78119=>{const _0x2d300e=a142_0x28d0b6,_0x1ef71d={'nMMGn':function(_0x537c93,_0x338f82){return _0x537c93 instanceof _0x338f82;},'tFZJR':function(_0xcb21a6,_0x2cd9a7){return _0xcb21a6(_0x2cd9a7);}};try{if(_0x1ef71d[_0x2d300e(0x1ee)](_0xc78119,Error))return _0xc78119['stack']||_0xc78119[_0x2d300e(0x207)]();return _0x1ef71d[_0x2d300e(0x1aa)](String,_0xc78119);}catch(_0xacdd63){return _0xc78119?_0xc78119[_0x2d300e(0x207)]():'';}},exports['isNullOrEmpty']=_0x332755=>{const _0x7f0263=a142_0x28d0b6,_0x25178b={};_0x25178b[_0x7f0263(0x1a3)]=function(_0x35939e,_0x3e14fb){return _0x35939e===_0x3e14fb;};const _0x425776=_0x25178b;return!_0x332755||_0x425776[_0x7f0263(0x1a3)](_0x332755[_0x7f0263(0x19e)](),'');},exports[a142_0x28d0b6(0x1cc)]=_0x16aa7b=>{const _0x5b3f34=a142_0x28d0b6,_0x466c22={};_0x466c22[_0x5b3f34(0x20b)]=function(_0x4715ed,_0x83bf12){return _0x4715ed|_0x83bf12;};const _0x4594ad=_0x466c22;try{return fs['accessSync'](_0x16aa7b,_0x4594ad[_0x5b3f34(0x20b)](fs[_0x5b3f34(0x214)][_0x5b3f34(0x1d7)],fs[_0x5b3f34(0x214)][_0x5b3f34(0x1f7)])),!![];}catch(_0x2496e9){return![];}},exports[a142_0x28d0b6(0x1c9)]=_0x3db026=>{const _0xd8caad=a142_0x28d0b6;try{fs[_0xd8caad(0x1ad)](_0x3db026,0x1ff),logger['debug']('Directory\x20'+_0x3db026+'\x20has\x20now\x20read/write/execute\x20permissions.');}catch(_0x5dc304){logger[_0xd8caad(0x19f)](_0xd8caad(0x1dd)+exports[_0xd8caad(0x1dc)](_0x5dc304));}};
1
+ const a142_0x4f0f2e=a142_0x306f;function a142_0x4442(){const _0x641d9d=['2843262fsAIRi','errorMessage','values','mehBk','nodejs','config','globalException','body','seleniumVersion','buildName','getAccessKey','version','8220kpghxj','application/json','865739RXDXxc','klcFM','uHeoO','getTurboScaleBuildLink','./testhub/utils','codeceptjs','ugkiL','../bin/playwright/reporter/pwUtils','BVlTY','sendLogs','FRfZC','type','user_killed','Oellv','APP_AUTOMATE','POST','debug','zNwuy','\x20response\x20-\x20','tests','error','xNzHS','[REDACTED]','getSessionsList','killSignal','Ctwyr','null','\x20has\x20now\x20read/write/execute\x20permissions.','gHFed','mqImf','108198eZzCje','1633088XcgacB','join','birhs','../bin/utils/constants','HaJXQ','length','format','forEach','getGlobal','nodeRequest','reduce','SDKTestSuccessful','Failed\x20to\x20set\x20directory\x20access:\x20','assign','getOptimalHubUrl','gWxuC','requirePWModule','notifyUpdate','iMRTY','all','replace','browserStackConfig','getPackageVersion','setReadWriteExecuteAccess','ENV_VAR','iyvaY','149078mohkNO','stringify','isBrowserstackInfra','\x20:\x20','framework','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','_buildHashedId','stack','winstonLogger','Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20','APP_AUTOMATE_PRODUCTS','W_OK','object','getTurboScaleSessionsList','unknown','buildIdentifier','osVersion','./logger','hostname','info','yCpYV','isTurboScaleSession','AUTOMATE','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','fireFunnelTestEvent','21CreiNQ','Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20','deviceName','zxkKF','lwkhW','selenium-webdriver','keys','getBuildLink','sanitizeBrowserStackConfig','X_OK','apply',',\x20testhub\x20id:\x20','sjjnQ','env','getNodeAgent','rKkQt','Directory\x20','YrKtC','15aFVuca','isModifiable','AUTOMATE_PRODUCTS','util','koILo','app','BROWSERSTACK_TESTHUB_UUID','playwrightVersion','unhandledErrors','sdkRunId','./performance/performance-tester','event_properties','getFrameworkVersion','DYwvK','source','wyFZg','stopPercy','AIirP','40722acWWRx','./helper','getTestFrameworkDetails','gsVYN','getStackTraceAsString','browser','undefined','finishedMetadata','TMpVk','API\x20Event\x20','toString','GIVqU','browserVersion','lStNE','getUserName','KdfdP','UaCkn','accessSync','parse','LZLYV','isNullOrEmpty','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20'];a142_0x4442=function(){return _0x641d9d;};return a142_0x4442();}function a142_0x306f(_0x3147b3,_0x2531c7){const _0x4442be=a142_0x4442();return a142_0x306f=function(_0x306f89,_0x41adbf){_0x306f89=_0x306f89-0x175;let _0x2ce815=_0x4442be[_0x306f89];return _0x2ce815;},a142_0x306f(_0x3147b3,_0x2531c7);}(function(_0xc191eb,_0x392b5b){const _0xca5fd9=a142_0x306f,_0x314dc1=_0xc191eb();while(!![]){try{const _0x1f1661=parseInt(_0xca5fd9(0x1c2))/0x1+-parseInt(_0xca5fd9(0x1a7))/0x2+parseInt(_0xca5fd9(0x1db))/0x3*(parseInt(_0xca5fd9(0x187))/0x4)+-parseInt(_0xca5fd9(0x1ed))/0x5*(-parseInt(_0xca5fd9(0x1ff))/0x6)+-parseInt(_0xca5fd9(0x189))/0x7+-parseInt(_0xca5fd9(0x1a8))/0x8+parseInt(_0xca5fd9(0x17b))/0x9;if(_0x1f1661===_0x392b5b)break;else _0x314dc1['push'](_0x314dc1['shift']());}catch(_0x2db3b6){_0x314dc1['push'](_0x314dc1['shift']());}}}(a142_0x4442,0x1cc46));const os=require('os'),util=require(a142_0x4f0f2e(0x1f0)),fs=require('fs'),{getProductMap}=require(a142_0x4f0f2e(0x18d)),logger=require(a142_0x4f0f2e(0x1d3))[a142_0x4f0f2e(0x1ca)],constants=require(a142_0x4f0f2e(0x1ab)),testHubConstants=require('../helpers/testhub/constants'),{getTransformPath}=require(a142_0x4f0f2e(0x190)),{FUNNEL_INSTRUMENTATION_API_URL}=require(a142_0x4f0f2e(0x1ab)),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a142_0x4f0f2e(0x200)),PerformanceTester=require(a142_0x4f0f2e(0x1f7)),globals=require('./globals'),helper=require(a142_0x4f0f2e(0x200)),{isTestObservabilitySession}=require('./test-observability/utils');let unhandledErrors='';exports[a142_0x4f0f2e(0x1da)]=async(_0xba70f1,_0x3a39ff={},_0x19d904,_0xef5806,_0x3bf995=![])=>{const _0x55088d=a142_0x4f0f2e,_0x1ce230={'ugkiL':function(_0x106e22,_0x512950){return _0x106e22===_0x512950;},'UaCkn':_0x55088d(0x1ce),'koILo':function(_0x46e70c,_0x5f3c95){return _0x46e70c>_0x5f3c95;},'iyvaY':'tests','rKkQt':function(_0x23b345){return _0x23b345();},'gWxuC':function(_0x155628,_0x2a886d){return _0x155628==_0x2a886d;},'Ctwyr':_0x55088d(0x1a3),'DYwvK':_0x55088d(0x205),'lStNE':function(_0x42b0b4,_0x329408){return _0x42b0b4===_0x329408;},'byhJx':_0x55088d(0x18e),'xNzHS':function(_0x37ddaa,_0x52ea0a){return _0x37ddaa!==_0x52ea0a;},'zNwuy':'Playwright','zxkKF':function(_0x53ea9d,_0x28ea7c){return _0x53ea9d===_0x28ea7c;},'uHeoO':_0x55088d(0x19d),'BVlTY':function(_0x58b6eb,_0x476dc5){return _0x58b6eb+_0x476dc5;},'yCpYV':_0x55088d(0x17a),'HaJXQ':_0x55088d(0x1c8),'Oellv':function(_0x40e1ee,_0x3eff4c){return _0x40e1ee(_0x3eff4c);},'FRfZC':function(_0x383caa,_0xe3b0c0){return _0x383caa(_0xe3b0c0);},'wyFZg':_0x55088d(0x1d0),'LZLYV':_0x55088d(0x17f),'YrKtC':_0x55088d(0x1b3),'gUbDs':_0x55088d(0x1e0),'AIirP':_0x55088d(0x188),'gHFed':_0x55088d(0x19f),'sjjnQ':_0x55088d(0x198)};let _0x20571f=[];if(helper[_0x55088d(0x1c4)]()&&_0x1ce230[_0x55088d(0x1ea)](isTestObservabilitySession))_0x20571f=_0x19d904['app']?constants[_0x55088d(0x1cc)]:constants[_0x55088d(0x1ef)];else{if(_0x1ce230[_0x55088d(0x1ea)](isTestObservabilitySession))_0x20571f=constants[_0x55088d(0x1d9)];else helper[_0x55088d(0x1c4)]()&&(_0x20571f=_0x19d904[_0x55088d(0x1f2)]?constants[_0x55088d(0x197)]:constants[_0x55088d(0x1d8)]);}let _0x338f97=_0x19d904[_0x55088d(0x1d1)];if(_0x1ce230[_0x55088d(0x1b7)](_0x338f97,null))_0x338f97=_0x1ce230[_0x55088d(0x1a2)];else _0x1ce230['ugkiL'](_0x338f97,undefined)&&(_0x338f97=_0x1ce230[_0x55088d(0x1fa)]);unhandledErrors&&_0x1ce230[_0x55088d(0x1f1)](unhandledErrors['length'],0x0)&&(_0x3a39ff[_0x55088d(0x181)]=unhandledErrors);global[_0x55088d(0x1f6)]&&(_0x3a39ff[_0x55088d(0x1f6)]=global[_0x55088d(0x1f6)]);try{if(_0x3a39ff[_0x55088d(0x19d)]){if(_0x1ce230[_0x55088d(0x20c)](_0xef5806,_0x1ce230['byhJx'])&&_0x1ce230[_0x55088d(0x1f1)](_0x3a39ff['error'][_0x55088d(0x1ad)],0x0)){const _0x26fadf={};_0x26fadf['os']='',_0x26fadf[_0x55088d(0x1d2)]='',_0x26fadf[_0x55088d(0x204)]='',_0x26fadf[_0x55088d(0x20b)]='';const _0x54c06d=_0x26fadf;let _0x2466ea={};const _0xed9303=_0x3a39ff['error'];_0x2466ea=_0xed9303[_0x55088d(0x1b2)]((_0x43b4aa,_0x420104)=>{for(const _0x5bcd31 in _0x420104){_0x43b4aa[_0x5bcd31]=_0x420104[_0x5bcd31];}return _0x43b4aa;},{});const _0x1e36ed={};_0x1e36ed[_0x55088d(0x19c)]=_0x2466ea,_0x3a39ff[_0x55088d(0x19d)]=[Object[_0x55088d(0x1b5)]({},_0x54c06d,_0x1e36ed)];}else{let _0x31156c=0x0;const _0x2c785f=_0x1ce230[_0x55088d(0x19e)](_0xef5806,_0x1ce230['zNwuy'])?JSON[_0x55088d(0x177)](_0x3a39ff[_0x55088d(0x19d)]):_0x3a39ff[_0x55088d(0x19d)],_0x5269cf=Object[_0x55088d(0x17d)](_0x2c785f);_0x5269cf[_0x55088d(0x1af)](_0x529bd5=>{const _0x5f4cc9=_0x55088d;if(_0x1ce230[_0x5f4cc9(0x18f)](typeof _0x529bd5,_0x1ce230[_0x5f4cc9(0x175)])){const _0x170831=Object[_0x5f4cc9(0x17d)](_0x529bd5);!_0x170831['every'](_0x4bd69=>_0x4bd69===null||_0x4bd69===undefined||_0x4bd69==='')&&(_0x31156c+=0x1);}});if(_0x1ce230[_0x55088d(0x1de)](_0x31156c,0x0))delete _0x3a39ff[_0x1ce230[_0x55088d(0x18b)]];else{const _0x5ee053=[];Object[_0x55088d(0x1e1)](_0x2c785f)[_0x55088d(0x1af)](_0x40a995=>{const _0x4003b1=_0x55088d,[_0x4b4164,_0x4219a5,_0x4cd03f,_0x398163]=_0x40a995['split'](',\x20');let _0x2cc1ca={};if(!_0x398163){const _0x1eb71c={};_0x1eb71c[_0x4003b1(0x1dd)]=_0x4b4164,_0x1eb71c['osVersion']=_0x4219a5,_0x1eb71c['browser']=_0x4cd03f,_0x2cc1ca=_0x1eb71c;}else{const _0x5a353f={};_0x5a353f['os']=_0x4b4164,_0x5a353f[_0x4003b1(0x1d2)]=_0x4219a5,_0x5a353f[_0x4003b1(0x204)]=_0x4cd03f,_0x5a353f[_0x4003b1(0x20b)]=_0x398163,_0x2cc1ca=_0x5a353f;}const _0x449e6c={},_0x5d83a9=_0x2c785f[_0x40a995];Object[_0x4003b1(0x1e1)](_0x5d83a9)[_0x4003b1(0x1af)](_0x207d67=>{const _0x2b86a=_0x4003b1;_0x1ce230[_0x2b86a(0x1f1)](_0x5d83a9[_0x207d67][_0x2b86a(0x1ad)],0x0)&&(_0x449e6c[_0x207d67]=_0x5d83a9[_0x207d67]);}),_0x1ce230['koILo'](Object[_0x4003b1(0x1e1)](_0x449e6c)['length'],0x0)&&(_0x2cc1ca[_0x1ce230[_0x4003b1(0x1c1)]]=_0x449e6c,_0x5ee053['push'](_0x2cc1ca));}),_0x1ce230[_0x55088d(0x1f1)](_0x5ee053[_0x55088d(0x1ad)],0x0)?_0x3a39ff[_0x55088d(0x19d)]=_0x5ee053:delete _0x3a39ff[_0x1ce230[_0x55088d(0x18b)]];}}}}catch(_0x19a1fb){delete _0x3a39ff[_0x1ce230[_0x55088d(0x18b)]],logger[_0x55088d(0x199)](_0x1ce230[_0x55088d(0x191)](_0x1ce230[_0x55088d(0x1d6)],_0x19a1fb));}const _0x5f0e9c=helper[_0x55088d(0x201)](_0x19d904,_0x19d904[_0x55088d(0x1c6)]),_0x33c7a7={'userName':helper[_0x55088d(0x20d)](_0x19d904),'accessKey':helper['getAccessKey'](_0x19d904),'event_type':_0xba70f1,'detectedFramework':_0xef5806,'buildHashedId':globals[_0x55088d(0x1b0)](_0x1ce230[_0x55088d(0x1ac)]),'optimalHubUrl':helper[_0x55088d(0x1b6)](),'event_properties':{'testhub_uuid':process[_0x55088d(0x1e8)][testHubConstants[_0x55088d(0x1c0)]['BROWSERSTACK_TESTHUB_UUID']]||'','sdkRunId':global[_0x55088d(0x1f6)],'product_map':_0x1ce230[_0x55088d(0x196)](getProductMap,_0x19d904),'productMap':_0x1ce230[_0x55088d(0x193)](getProductMap,_0x19d904),'language_framework':_0x19d904[_0x55088d(0x1fb)]||_0x1ce230['wyFZg'],'referrer':helper[_0x55088d(0x1e9)](_0xef5806),'framework':_0x19d904[_0x55088d(0x1c6)],'frameworkVersion':helper[_0x55088d(0x1f9)](_0xef5806),'automationFramework':_0x5f0e9c['name'],'automationFrameworkVersion':_0x5f0e9c[_0x55088d(0x186)],'language':_0x1ce230[_0x55088d(0x178)],'languageVersion':process['version'],'product':_0x20571f,'buildName':_0x19d904[_0x55088d(0x184)]||_0x1ce230[_0x55088d(0x1fa)],'buildIdentifier':_0x338f97,'os':os[_0x55088d(0x194)]()||_0x1ce230[_0x55088d(0x1fc)],'hostname':os[_0x55088d(0x1d4)]()||_0x1ce230[_0x55088d(0x1fc)],..._0x3a39ff,'isCLIEnabled':_0x3bf995}};try{_0x1ce230['zxkKF'](_0xba70f1,_0x1ce230[_0x55088d(0x1ec)])&&(_0x33c7a7['event_properties'][_0x55088d(0x1bd)]=helper[_0x55088d(0x1e3)](_0x19d904)),_0x1ce230['ugkiL'](_0xef5806,_0x1ce230[_0x55088d(0x19a)])?_0x33c7a7[_0x55088d(0x1f8)][_0x55088d(0x1f4)]=helper[_0x55088d(0x1b8)][_0x55088d(0x1e5)](null,_0x1ce230['rKkQt'](getTransformPath),!![]):_0x33c7a7[_0x55088d(0x1f8)][_0x55088d(0x183)]=helper[_0x55088d(0x1be)](_0x1ce230['gUbDs']);}catch(_0x20a3fd){logger['debug'](_0x55088d(0x1cb)+_0x20a3fd);}const _0x166952={};_0x166952['content-type']=_0x1ce230[_0x55088d(0x1fe)];const _0x1a921d={'headers':_0x166952,'body':_0x33c7a7,'auth':{'user':helper[_0x55088d(0x20d)](_0x19d904),'pass':helper[_0x55088d(0x185)](_0x19d904)},'json':!![]};logger[_0x55088d(0x199)](_0x55088d(0x1c7)+JSON[_0x55088d(0x1c3)](_0x1a921d[_0x55088d(0x182)])[_0x55088d(0x1bc)](new RegExp(helper[_0x55088d(0x20d)](_0x19d904),'g'),_0x1ce230['gHFed'])[_0x55088d(0x1bc)](new RegExp(helper[_0x55088d(0x185)](_0x19d904),'g'),_0x1ce230[_0x55088d(0x1a5)]));try{const _0x2022e5=await helper[_0x55088d(0x1b1)](_0x1ce230[_0x55088d(0x1e7)],FUNNEL_INSTRUMENTATION_API_URL,_0x1a921d,_0x19d904);logger[_0x55088d(0x199)](_0x55088d(0x208)+_0xba70f1+_0x55088d(0x19b)+util[_0x55088d(0x1ae)]('%j',_0x2022e5));}catch(_0x170b0f){logger[_0x55088d(0x199)]('Error\x20in\x20firing\x20request\x20to\x20'+FUNNEL_INSTRUMENTATION_API_URL+_0x55088d(0x1c5)+util[_0x55088d(0x1ae)](_0x170b0f));}},exports['finalExecution']=async(_0x29497b,_0x25053b=![])=>{const _0x58db54=a142_0x4f0f2e,_0x2f99c2={'mqImf':function(_0x505d2e){return _0x505d2e();},'mehBk':_0x58db54(0x206),'TMpVk':_0x58db54(0x195),'iMRTY':'SDKTestSuccessful','birhs':function(_0x35502b,_0x18fa0c,_0x17b7ff){return _0x35502b(_0x18fa0c,_0x17b7ff);},'tbPWx':function(_0x57bccc,_0x52a081){return _0x57bccc+_0x52a081;},'klcFM':_0x58db54(0x1dc)};try{await _0x29497b[_0x58db54(0x1fd)](),_0x2f99c2[_0x58db54(0x1a6)](printNudgeLocalNotSetError);const _0x5746c2={};_0x5746c2[_0x58db54(0x19d)]=_0x29497b[_0x58db54(0x17c)]?_0x29497b[_0x58db54(0x17c)]:'{}';const _0x14d554=_0x5746c2,_0x1b1c33=Object[_0x58db54(0x1b5)]({},_0x14d554);!!_0x29497b[_0x58db54(0x1a1)]&&(_0x1b1c33[_0x2f99c2[_0x58db54(0x17e)]]={'reason':_0x2f99c2[_0x58db54(0x207)],'signal':_0x29497b[_0x58db54(0x1a1)]});unhandledErrors=_0x29497b[_0x58db54(0x1f5)][_0x58db54(0x1a9)]('\x0a');let _0x49d085,_0x4e07ff,_0x48a3eb;helper[_0x58db54(0x1d7)](_0x29497b[_0x58db54(0x180)])?([_0x49d085,_0x4e07ff]=await helper[_0x58db54(0x18c)](_0x29497b[_0x58db54(0x180)]),[_0x48a3eb]=await Promise['all']([helper[_0x58db54(0x1cf)](_0x49d085,_0x29497b[_0x58db54(0x180)]),exports[_0x58db54(0x1da)](_0x2f99c2[_0x58db54(0x1ba)],_0x1b1c33,_0x29497b[_0x58db54(0x180)],_0x29497b['framework'],_0x25053b)])):([_0x49d085,_0x4e07ff]=await helper[_0x58db54(0x1e2)](_0x29497b[_0x58db54(0x180)]),[_0x48a3eb]=await Promise[_0x58db54(0x1bb)]([helper[_0x58db54(0x1a0)](_0x49d085,_0x29497b[_0x58db54(0x180)]),exports[_0x58db54(0x1da)](_0x2f99c2[_0x58db54(0x1ba)],_0x1b1c33,_0x29497b[_0x58db54(0x180)],_0x29497b[_0x58db54(0x1c6)],_0x25053b)])),_0x48a3eb&&await _0x2f99c2[_0x58db54(0x1aa)](generateCIArtifacts,_0x48a3eb,_0x4e07ff),logger[_0x58db54(0x1d5)]('SDK\x20run\x20ended\x20for\x20id:\x20'+_0x29497b[_0x58db54(0x1f6)]+_0x58db54(0x1e6)+process[_0x58db54(0x1e8)][_0x58db54(0x1f3)]),await helper[_0x58db54(0x192)](_0x29497b[_0x58db54(0x180)]);}catch(_0x5af115){logger[_0x58db54(0x199)](_0x2f99c2['tbPWx'](_0x2f99c2[_0x58db54(0x18a)],_0x5af115));}helper[_0x58db54(0x1b9)]();},exports[a142_0x4f0f2e(0x203)]=_0x47d68b=>{const _0x5414d4=a142_0x4f0f2e,_0x1955cb={'GIVqU':function(_0x47c340,_0x43c808){return _0x47c340 instanceof _0x43c808;},'lwkhW':function(_0x3eae13,_0x320919){return _0x3eae13(_0x320919);}};try{if(_0x1955cb[_0x5414d4(0x20a)](_0x47d68b,Error))return _0x47d68b[_0x5414d4(0x1c9)]||_0x47d68b[_0x5414d4(0x209)]();return _0x1955cb[_0x5414d4(0x1df)](String,_0x47d68b);}catch(_0x4be9de){return _0x47d68b?_0x47d68b[_0x5414d4(0x209)]():'';}},exports[a142_0x4f0f2e(0x179)]=_0xfeac88=>{const _0x2d19aa=a142_0x4f0f2e,_0x1af962={};_0x1af962[_0x2d19aa(0x202)]=function(_0x3b90bf,_0x4b297c){return _0x3b90bf===_0x4b297c;};const _0x90bdfb=_0x1af962;return!_0xfeac88||_0x90bdfb[_0x2d19aa(0x202)](_0xfeac88['trim'](),'');},exports[a142_0x4f0f2e(0x1ee)]=_0x15edc5=>{const _0x31aa3b=a142_0x4f0f2e,_0x134917={};_0x134917[_0x31aa3b(0x20e)]=function(_0x1e5ff4,_0x18df1f){return _0x1e5ff4|_0x18df1f;};const _0x4e2465=_0x134917;try{return fs[_0x31aa3b(0x176)](_0x15edc5,_0x4e2465[_0x31aa3b(0x20e)](fs['constants'][_0x31aa3b(0x1cd)],fs['constants'][_0x31aa3b(0x1e4)])),!![];}catch(_0xcc8866){return![];}},exports[a142_0x4f0f2e(0x1bf)]=_0x2141e5=>{const _0x144706=a142_0x4f0f2e;try{fs['chmodSync'](_0x2141e5,0x1ff),logger['debug'](_0x144706(0x1eb)+_0x2141e5+_0x144706(0x1a4));}catch(_0xa14a86){logger[_0x144706(0x19d)](_0x144706(0x1b4)+exports[_0x144706(0x203)](_0xa14a86));}};