browserstack-node-sdk 1.53.0 → 1.53.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/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/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a142_0xfbab90=a142_0x4f82;(function(_0x338da5,_0x5a4205){const _0x5417d2=a142_0x4f82,_0x16cbcc=_0x338da5();while(!![]){try{const _0x408268=parseInt(_0x5417d2(0xaf))/0x1+-parseInt(_0x5417d2(0x81))/0x2*(-parseInt(_0x5417d2(0xad))/0x3)+parseInt(_0x5417d2(0x94))/0x4+parseInt(_0x5417d2(0xc0))/0x5*(parseInt(_0x5417d2(0xba))/0x6)+-parseInt(_0x5417d2(0x96))/0x7*(parseInt(_0x5417d2(0xaa))/0x8)+-parseInt(_0x5417d2(0xc6))/0x9+parseInt(_0x5417d2(0x8e))/0xa;if(_0x408268===_0x5a4205)break;else _0x16cbcc['push'](_0x16cbcc['shift']());}catch(_0x2e621d){_0x16cbcc['push'](_0x16cbcc['shift']());}}}(a142_0x3a09,0x1bcaa));const https=require(a142_0xfbab90(0xa6)),{URL}=require('url'),logger=require(a142_0xfbab90(0x9f))[a142_0xfbab90(0x97)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a142_0xfbab90(0x84)),TAG=a142_0xfbab90(0xa8);class RequestUtils{static async[a142_0xfbab90(0x9c)](_0xdf4a45,_0x1c391f,_0x38411f=null){const _0x1b0e2b=a142_0xfbab90,_0x1e14e1={'tyxZg':function(_0x4be5d6,_0x5749b4){return _0x4be5d6(_0x5749b4);},'jktup':_0x1b0e2b(0xb5),'bXobt':_0x1b0e2b(0xc5),'HLGVt':_0x1b0e2b(0x95),'fVooN':function(_0x5c9368,_0x568622){return _0x5c9368===_0x568622;},'PnqCC':_0x1b0e2b(0xc3),'CooBO':_0x1b0e2b(0x83),'aIlBH':_0x1b0e2b(0x82),'XjfYx':function(_0x38ebd3,_0x552822){return _0x38ebd3+_0x552822;}},_0x45cb62=process[_0x1b0e2b(0x93)][_0x1b0e2b(0xc7)]||'',_0x2c67aa={};_0x2c67aa['Authorization']=_0x1b0e2b(0xb4)+_0x45cb62,_0x2c67aa[_0x1b0e2b(0x8d)]=_0x1e14e1['aIlBH'];const _0x3d04c5=_0x2c67aa,{hostname:_0x419021,pathname:_0x598125,search:_0x313260}=new URL(_0x1c391f),_0x557738={'hostname':_0x419021,'path':_0x1e14e1[_0x1b0e2b(0xb6)](_0x598125,_0x313260),'method':_0xdf4a45,'headers':_0x3d04c5};return logger[_0x1b0e2b(0x91)]('['+TAG+_0x1b0e2b(0x8f)+_0xdf4a45+_0x1b0e2b(0x77)+_0x1c391f+_0x1b0e2b(0xc4)+JSON[_0x1b0e2b(0xa1)](_0x3d04c5)+_0x1b0e2b(0xcc)+JSON[_0x1b0e2b(0xa1)](_0x38411f)+'\x20and\x20token:\x20'+_0x45cb62),new Promise((_0x6b454a,_0x48feeb)=>{const _0x23c302=_0x1b0e2b,_0x40c3c5={'CMBzK':function(_0x44bfcd,_0x54067a){const _0x3b3d9b=a142_0x4f82;return _0x1e14e1[_0x3b3d9b(0x7e)](_0x44bfcd,_0x54067a);},'Uwewj':_0x1e14e1[_0x23c302(0x90)],'gfACn':_0x1e14e1[_0x23c302(0xae)]},_0xcb942c=https[_0x23c302(0xbc)](_0x557738,_0x4c5c32=>{const _0x14b946=_0x23c302,_0x4df323={'XCfIh':function(_0x1c7bc9,_0x2b1e4e){const _0x44eab4=a142_0x4f82;return _0x40c3c5[_0x44eab4(0xc9)](_0x1c7bc9,_0x2b1e4e);},'gZOXV':function(_0x445e80,_0x458965){const _0x2f3f62=a142_0x4f82;return _0x40c3c5[_0x2f3f62(0xc9)](_0x445e80,_0x458965);}};let _0x595a18='';_0x4c5c32['on'](_0x40c3c5[_0x14b946(0xbe)],_0x2335a0=>{_0x595a18+=_0x2335a0;}),_0x4c5c32['on'](_0x40c3c5[_0x14b946(0x87)],()=>{const _0x3486c9=_0x14b946;try{const _0x18ba9c=_0x595a18?JSON[_0x3486c9(0x92)](_0x595a18):{},_0x42fdb2={};_0x42fdb2[_0x3486c9(0xab)]=_0x4c5c32[_0x3486c9(0x7c)],_0x42fdb2[_0x3486c9(0xb3)]=_0x18ba9c,_0x42fdb2['headers']=_0x4c5c32[_0x3486c9(0x85)],_0x4df323['XCfIh'](_0x6b454a,_0x42fdb2);}catch(_0x30ace1){logger['error']('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x595a18+_0x3486c9(0x8c)+_0x30ace1[_0x3486c9(0xcb)]+'\x20'+_0x30ace1[_0x3486c9(0xc1)]),_0x4df323[_0x3486c9(0xca)](_0x48feeb,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x30ace1[_0x3486c9(0xcb)]));}});});_0xcb942c['on'](_0x1e14e1[_0x23c302(0xac)],_0x1a822d=>{const _0x34a8c6=_0x23c302;logger['error']('['+TAG+_0x34a8c6(0xb2)+_0xdf4a45+'\x20'+_0x1c391f+':\x20'+_0x1a822d[_0x34a8c6(0xcb)]+'\x20'+_0x1a822d[_0x34a8c6(0xc1)]),_0x40c3c5['CMBzK'](_0x48feeb,_0x1a822d);}),_0x38411f&&(_0x1e14e1[_0x23c302(0x78)](_0xdf4a45,_0x1e14e1[_0x23c302(0x88)])||_0x1e14e1[_0x23c302(0x78)](_0xdf4a45,_0x1e14e1[_0x23c302(0xa2)]))&&_0xcb942c[_0x23c302(0xa3)](JSON[_0x23c302(0xa1)](_0x38411f)),_0xcb942c['end']();});}static async[a142_0xfbab90(0xa9)](_0x4a2fa){const _0x360e36=a142_0xfbab90,_0x152d14={};_0x152d14[_0x360e36(0x7f)]=_0x360e36(0xc3),_0x152d14[_0x360e36(0x8a)]=function(_0xba1758,_0x45a0b0){return _0xba1758===_0x45a0b0;};const _0x50adbe=_0x152d14,_0x16ec39=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x3356ab=await this[_0x360e36(0x9c)](_0x50adbe[_0x360e36(0x7f)],_0x16ec39,_0x4a2fa);return _0x50adbe[_0x360e36(0x8a)](_0x3356ab['status'],0xc8)?logger[_0x360e36(0x91)]('['+TAG+_0x360e36(0x7a)+_0x16ec39):logger[_0x360e36(0x95)]('['+TAG+_0x360e36(0xbd)+_0x16ec39+':\x20'+JSON['stringify'](_0x3356ab[_0x360e36(0xb3)])+_0x360e36(0x99)+_0x3356ab[_0x360e36(0xab)]),_0x3356ab;}catch(_0x196432){logger[_0x360e36(0x95)]('['+TAG+_0x360e36(0x9e)+_0x196432[_0x360e36(0xcb)]+'\x20'+_0x196432[_0x360e36(0xc1)]);const _0x26ad13={};_0x26ad13[_0x360e36(0xcb)]=_0x196432[_0x360e36(0xcb)];const _0x1d805d={};return _0x1d805d[_0x360e36(0xab)]=0x1f4,_0x1d805d['body']=_0x26ad13,_0x1d805d;}}static async['getSplitFiles'](_0x39f5b9){const _0x139548=a142_0xfbab90,_0x1da3cf={};_0x1da3cf[_0x139548(0x7b)]=_0x139548(0xcd),_0x1da3cf['JalfV']=function(_0xeea0be,_0x26a1e4){return _0xeea0be===_0x26a1e4;};const _0x4b35c0=_0x1da3cf;try{const _0x26aa9c=await this[_0x139548(0x9c)](_0x4b35c0['CBVTo'],_0x39f5b9);if(_0x4b35c0[_0x139548(0xa5)](_0x26aa9c['status'],0xc8))return _0x26aa9c[_0x139548(0xb3)];return{};}catch(_0x1c8944){return logger[_0x139548(0x95)]('['+TAG+_0x139548(0x9e)+_0x1c8944[_0x139548(0xcb)]+'\x20'+_0x1c8944['stack']),{};}}static async['putFailedTests'](_0x9ba162){const _0x129ea3=a142_0xfbab90,_0x1ff365={};_0x1ff365['rqGom']=_0x129ea3(0x83),_0x1ff365[_0x129ea3(0xb8)]=function(_0x605065,_0x4f491f){return _0x605065===_0x4f491f;},_0x1ff365[_0x129ea3(0x86)]=_0x129ea3(0x98);const _0x4ba790=_0x1ff365,_0x471e20=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x314e1b=await this['_request'](_0x4ba790[_0x129ea3(0xc8)],_0x471e20,_0x9ba162);if(_0x4ba790['SqHoI'](_0x314e1b[_0x129ea3(0xab)],0xc8)&&_0x314e1b['body']&&_0x4ba790[_0x129ea3(0xb8)](_0x314e1b[_0x129ea3(0xb3)]['message'],_0x4ba790['ULdxu']))return!![];return![];}catch(_0x2908ce){logger[_0x129ea3(0x95)]('['+TAG+_0x129ea3(0x9e)+_0x2908ce[_0x129ea3(0xcb)]+'\x20'+_0x2908ce['stack']);const _0x463c4f={};_0x463c4f[_0x129ea3(0xcb)]=_0x2908ce['message'];const _0x525214={};return _0x525214[_0x129ea3(0xab)]=0x1f4,_0x525214[_0x129ea3(0xb3)]=_0x463c4f,_0x525214;}}static async[a142_0xfbab90(0x8b)](_0x2cbdfc){const _0x35fcc1=a142_0xfbab90,_0x12c399={'RlYNk':function(_0x50fed2,_0x52f3c9){return _0x50fed2||_0x52f3c9;},'HKAGa':_0x35fcc1(0xbb),'JwuyC':function(_0x4301a0,_0x5c5701){return _0x4301a0(_0x5c5701);},'nouJq':function(_0x566454,_0x5d2c1e){return _0x566454(_0x5d2c1e);},'ZrbXa':'GET','tnnIh':function(_0x1fe033,_0x33aafd){return _0x1fe033===_0x33aafd;},'QGwZv':function(_0x91216e,_0x5c46f1){return _0x91216e!==_0x5c46f1;},'nvOAr':_0x35fcc1(0xb9),'QCJYF':function(_0x282a83,_0x111056){return _0x282a83(_0x111056);}},{buildName:_0x42d2b1,buildRunIdentifier:_0x2a1f44,projectName:_0x4f44dc}=_0x2cbdfc;if(_0x12c399[_0x35fcc1(0x9d)](!_0x42d2b1,!_0x2a1f44)||!_0x4f44dc){logger[_0x35fcc1(0x95)]('['+TAG+_0x35fcc1(0x9b)+_0x42d2b1+_0x35fcc1(0xb7)+_0x2a1f44+_0x35fcc1(0xb1)+_0x4f44dc);const _0xa58016={};_0xa58016[_0x35fcc1(0xcb)]=_0x12c399[_0x35fcc1(0x79)];const _0x1da435={};return _0x1da435['status']=0x190,_0x1da435[_0x35fcc1(0xb3)]=_0xa58016,_0x1da435;}const _0x343055='?buildName='+_0x12c399['JwuyC'](encodeURIComponent,_0x42d2b1)+_0x35fcc1(0xa4)+_0x12c399[_0x35fcc1(0x7d)](encodeURIComponent,_0x2a1f44)+_0x35fcc1(0x89)+_0x12c399[_0x35fcc1(0x9a)](encodeURIComponent,_0x4f44dc),_0x55e663=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x343055;try{logger['debug']('['+TAG+_0x35fcc1(0xa7)+_0x55e663);let _0x11422a=0x0;const _0x3a7910=await this[_0x35fcc1(0x9c)](_0x12c399['ZrbXa'],_0x55e663);return _0x12c399[_0x35fcc1(0xa0)](_0x3a7910[_0x35fcc1(0xab)],0xc8)&&_0x3a7910['body']&&_0x12c399['QGwZv'](typeof _0x3a7910[_0x35fcc1(0xb3)][_0x35fcc1(0xb0)],_0x12c399[_0x35fcc1(0x80)])&&(_0x11422a=_0x12c399['QCJYF'](Number,_0x3a7910[_0x35fcc1(0xb3)]['failedTestsCount'])),_0x11422a;}catch(_0x5c6b73){logger['error']('['+TAG+_0x35fcc1(0xbf)+_0x5c6b73[_0x35fcc1(0xcb)]+'\x20'+_0x5c6b73['stack']);const _0xd5f19b={};_0xd5f19b['message']=_0x5c6b73[_0x35fcc1(0xcb)];const _0x389623={};return _0x389623[_0x35fcc1(0xab)]=0x1f4,_0x389623[_0x35fcc1(0xb3)]=_0xd5f19b,_0x389623;}}}function a142_0x4f82(_0x3e568a,_0xc33ada){const _0x3a09ba=a142_0x3a09();return a142_0x4f82=function(_0x4f82bf,_0x1a3e78){_0x4f82bf=_0x4f82bf-0x77;let _0x5b31e0=_0x3a09ba[_0x4f82bf];return _0x5b31e0;},a142_0x4f82(_0x3e568a,_0xc33ada);}module[a142_0xfbab90(0xc2)]=RequestUtils;function a142_0x3a09(){const _0x95bece=['nouJq',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','_request','RlYNk',']\x20Error\x20in\x20putFailedTests:\x20','../logger','tnnIh','stringify','CooBO','write','&buildRunIdentifier=','JalfV','https',']\x20Sending\x20GET\x20to\x20','RequestUtils','postSplitFiles','1192CfYckf','status','HLGVt','12laoMMV','bXobt','129767CXVXvr','failedTestsCount',',\x20projectName=',']\x20Request\x20failed\x20for\x20','body','Bearer\x20','data','XjfYx',',\x20buildRunIdentifier=','SqHoI','undefined','491382VJyDbi','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','request',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','Uwewj',']\x20Error\x20in\x20getFailedTestsCount:\x20','5XiMbrj','stack','exports','POST','\x20with\x20headers:\x20','end','456192ZjbNbY','BROWSERSTACK_TESTHUB_JWT','rqGom','CMBzK','gZOXV','message','\x20and\x20data:\x20','GET','\x20request\x20to\x20','fVooN','HKAGa',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','CBVTo','statusCode','JwuyC','tyxZg','LqwnA','nvOAr','17828MdlLWb','application/json','PUT','./constants','headers','ULdxu','gfACn','PnqCC','&projectName=','fdhQq','getFailedTestsCount','\x20-\x20','Content-Type','143390fhDQhr',']\x20Sending\x20','jktup','debug','parse','env','172884jHEbJI','error','6594tEzpyK','winstonLogger','Test\x20added',',\x20status:\x20'];a142_0x3a09=function(){return _0x95bece;};return a142_0x3a09();}
1
+ const a142_0x5bff22=a142_0x1c62;function a142_0x3dd2(){const _0x5e352f=['111495QoOeiB','TXoOk','\x20with\x20headers:\x20','pcrPy',']\x20Request\x20failed\x20for\x20','postSplitFiles','../logger','getSplitFiles','4951gLEljb','14923792iLHgxH','1541687WOYDcJ','tYdnG','\x20request\x20to\x20','CyOzi','getFailedTestsCount','XLXfg','LvdHX','UyzrE','FBHlW','stack','VbjrH','_request','ohfgQ','PwsOg',',\x20buildRunIdentifier=','1308000caycbF','Bearer\x20','https','./constants','2NFSPUX','message','debug','write','pATrw','DafEp','parse','TaABI','error','1140072KWBpwQ','GET',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','PUT',']\x20Sending\x20GET\x20to\x20','TLHDL','stringify','end',']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20','\x20and\x20token:\x20',']\x20Sending\x20','cgpRD',']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20','RequestUtils','\x20and\x20data:\x20','3730554UkaUMF','hJNvs','status','body','BROWSERSTACK_TESTHUB_JWT','MkxgN','headers','POST','Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','fmLGb','Content-Type','YZOQP',']\x20Error\x20in\x20putFailedTests:\x20','pRyEc','application/json','winstonLogger','vGunD','data','exports','request','statusCode','OLYkv','putFailedTests','failedTestsCount','Test\x20added'];a142_0x3dd2=function(){return _0x5e352f;};return a142_0x3dd2();}(function(_0x53c6ec,_0x13dc23){const _0xe8ac6a=a142_0x1c62,_0x3ced8c=_0x53c6ec();while(!![]){try{const _0x3f0095=-parseInt(_0xe8ac6a(0x12e))/0x1*(parseInt(_0xe8ac6a(0xf5))/0x2)+-parseInt(_0xe8ac6a(0x126))/0x3+-parseInt(_0xe8ac6a(0xfe))/0x4+-parseInt(_0xe8ac6a(0x13f))/0x5+-parseInt(_0xe8ac6a(0x10d))/0x6+-parseInt(_0xe8ac6a(0x130))/0x7+parseInt(_0xe8ac6a(0x12f))/0x8;if(_0x3f0095===_0x13dc23)break;else _0x3ced8c['push'](_0x3ced8c['shift']());}catch(_0x18bbff){_0x3ced8c['push'](_0x3ced8c['shift']());}}}(a142_0x3dd2,0x6a234));const https=require(a142_0x5bff22(0xf3)),{URL}=require('url'),logger=require(a142_0x5bff22(0x12c))[a142_0x5bff22(0x11c)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a142_0x5bff22(0xf4)),TAG=a142_0x5bff22(0x10b);function a142_0x1c62(_0x51e3c5,_0x40e6b1){const _0x3dd230=a142_0x3dd2();return a142_0x1c62=function(_0x1c62f4,_0x4c86c8){_0x1c62f4=_0x1c62f4-0xf2;let _0x554458=_0x3dd230[_0x1c62f4];return _0x554458;},a142_0x1c62(_0x51e3c5,_0x40e6b1);}class RequestUtils{static async[a142_0x5bff22(0x13b)](_0x5248e2,_0x2a26ec,_0x4bccd1=null){const _0x5bdd9f=a142_0x5bff22,_0x2f24b0={'CyOzi':function(_0x30b73a,_0x27c997){return _0x30b73a(_0x27c997);},'SaaoE':_0x5bdd9f(0x11e),'XLXfg':_0x5bdd9f(0x105),'RtKio':_0x5bdd9f(0xfd),'DafEp':function(_0x5c68c0,_0x3b2b0e){return _0x5c68c0===_0x3b2b0e;},'pcrPy':'POST','jDXgb':function(_0x3a1066,_0x31e9e8){return _0x3a1066===_0x31e9e8;},'UQYsF':_0x5bdd9f(0x101),'vGunD':_0x5bdd9f(0x11b),'YZOQP':function(_0x583f1e,_0x5bcacc){return _0x583f1e+_0x5bcacc;}},_0x24652e=process['env'][_0x5bdd9f(0x111)]||'',_0x136664={};_0x136664['Authorization']=_0x5bdd9f(0xf2)+_0x24652e,_0x136664[_0x5bdd9f(0x117)]=_0x2f24b0[_0x5bdd9f(0x11d)];const _0x1aa298=_0x136664,{hostname:_0x14516,pathname:_0x4ee5e9,search:_0x5e4bfb}=new URL(_0x2a26ec),_0x2198cb={'hostname':_0x14516,'path':_0x2f24b0[_0x5bdd9f(0x118)](_0x4ee5e9,_0x5e4bfb),'method':_0x5248e2,'headers':_0x1aa298};return logger['debug']('['+TAG+_0x5bdd9f(0x108)+_0x5248e2+_0x5bdd9f(0x132)+_0x2a26ec+_0x5bdd9f(0x128)+JSON[_0x5bdd9f(0x104)](_0x1aa298)+_0x5bdd9f(0x10c)+JSON[_0x5bdd9f(0x104)](_0x4bccd1)+_0x5bdd9f(0x107)+_0x24652e),new Promise((_0x15378e,_0x3732b9)=>{const _0x28199c=_0x5bdd9f,_0x1d0b06={'PlfPs':function(_0x5b94e4,_0x46ee77){const _0x330cf3=a142_0x1c62;return _0x2f24b0[_0x330cf3(0x133)](_0x5b94e4,_0x46ee77);},'LvdHX':_0x2f24b0['SaaoE'],'fmLGb':_0x2f24b0[_0x28199c(0x135)],'VbjrH':function(_0x3a9ba9,_0x1e5bdd){const _0x47157d=_0x28199c;return _0x2f24b0[_0x47157d(0x133)](_0x3a9ba9,_0x1e5bdd);}},_0x547989=https[_0x28199c(0x120)](_0x2198cb,_0x35fa81=>{const _0x5ba92e=_0x28199c;let _0x2276f0='';_0x35fa81['on'](_0x1d0b06[_0x5ba92e(0x136)],_0x3a200b=>{_0x2276f0+=_0x3a200b;}),_0x35fa81['on'](_0x1d0b06[_0x5ba92e(0x116)],()=>{const _0x2f95b4=_0x5ba92e;try{const _0x10e05f=_0x2276f0?JSON[_0x2f95b4(0xfb)](_0x2276f0):{},_0x430de5={};_0x430de5[_0x2f95b4(0x10f)]=_0x35fa81[_0x2f95b4(0x121)],_0x430de5[_0x2f95b4(0x110)]=_0x10e05f,_0x430de5[_0x2f95b4(0x113)]=_0x35fa81[_0x2f95b4(0x113)],_0x1d0b06['PlfPs'](_0x15378e,_0x430de5);}catch(_0xd8339){logger[_0x2f95b4(0xfd)]('['+TAG+_0x2f95b4(0x10a)+_0x2276f0+'\x20-\x20'+_0xd8339[_0x2f95b4(0xf6)]+'\x20'+_0xd8339[_0x2f95b4(0x139)]),_0x1d0b06['PlfPs'](_0x3732b9,new Error('Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0xd8339['message']));}});});_0x547989['on'](_0x2f24b0['RtKio'],_0x31c473=>{const _0x44ae42=_0x28199c;logger['error']('['+TAG+_0x44ae42(0x12a)+_0x5248e2+'\x20'+_0x2a26ec+':\x20'+_0x31c473[_0x44ae42(0xf6)]+'\x20'+_0x31c473[_0x44ae42(0x139)]),_0x1d0b06[_0x44ae42(0x13a)](_0x3732b9,_0x31c473);}),_0x4bccd1&&(_0x2f24b0[_0x28199c(0xfa)](_0x5248e2,_0x2f24b0[_0x28199c(0x129)])||_0x2f24b0['jDXgb'](_0x5248e2,_0x2f24b0['UQYsF']))&&_0x547989[_0x28199c(0xf8)](JSON['stringify'](_0x4bccd1)),_0x547989[_0x28199c(0x105)]();});}static async[a142_0x5bff22(0x12b)](_0x1fb2cf){const _0x33b2af=a142_0x5bff22,_0x5ab417={};_0x5ab417['tYdnG']=_0x33b2af(0x114),_0x5ab417[_0x33b2af(0x103)]=function(_0x133bae,_0x26768b){return _0x133bae===_0x26768b;};const _0x4b0b78=_0x5ab417,_0x371d63=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x1a089a=await this[_0x33b2af(0x13b)](_0x4b0b78[_0x33b2af(0x131)],_0x371d63,_0x1fb2cf);return _0x4b0b78[_0x33b2af(0x103)](_0x1a089a['status'],0xc8)?logger['debug']('['+TAG+']\x20Successfully\x20posted\x20split\x20files\x20to\x20'+_0x371d63):logger[_0x33b2af(0xfd)]('['+TAG+_0x33b2af(0x106)+_0x371d63+':\x20'+JSON[_0x33b2af(0x104)](_0x1a089a[_0x33b2af(0x110)])+',\x20status:\x20'+_0x1a089a[_0x33b2af(0x10f)]),_0x1a089a;}catch(_0x37c9eb){logger[_0x33b2af(0xfd)]('['+TAG+_0x33b2af(0x119)+_0x37c9eb[_0x33b2af(0xf6)]+'\x20'+_0x37c9eb[_0x33b2af(0x139)]);const _0x389aa5={};_0x389aa5['message']=_0x37c9eb[_0x33b2af(0xf6)];const _0x446858={};return _0x446858[_0x33b2af(0x10f)]=0x1f4,_0x446858['body']=_0x389aa5,_0x446858;}}static async[a142_0x5bff22(0x12d)](_0x422b5a){const _0x160a18=a142_0x5bff22,_0x4ba46d={};_0x4ba46d[_0x160a18(0x112)]=_0x160a18(0xff),_0x4ba46d[_0x160a18(0x138)]=function(_0x56b8f2,_0x55e563){return _0x56b8f2===_0x55e563;};const _0x34a982=_0x4ba46d;try{const _0x228c26=await this['_request'](_0x34a982[_0x160a18(0x112)],_0x422b5a);if(_0x34a982[_0x160a18(0x138)](_0x228c26[_0x160a18(0x10f)],0xc8))return _0x228c26['body'];return{};}catch(_0x3530a5){return logger[_0x160a18(0xfd)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x3530a5[_0x160a18(0xf6)]+'\x20'+_0x3530a5['stack']),{};}}static async[a142_0x5bff22(0x123)](_0x19d44a){const _0x30677b=a142_0x5bff22,_0x4305b5={};_0x4305b5[_0x30677b(0x109)]=_0x30677b(0x101),_0x4305b5[_0x30677b(0xfc)]=function(_0x5e0d3b,_0x4680bb){return _0x5e0d3b===_0x4680bb;},_0x4305b5[_0x30677b(0x13d)]=function(_0x58e0bd,_0x418d9b){return _0x58e0bd===_0x418d9b;},_0x4305b5[_0x30677b(0xf9)]=_0x30677b(0x125);const _0x57ef04=_0x4305b5,_0xc14bc3=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x57c0b6=await this[_0x30677b(0x13b)](_0x57ef04['cgpRD'],_0xc14bc3,_0x19d44a);if(_0x57ef04[_0x30677b(0xfc)](_0x57c0b6['status'],0xc8)&&_0x57c0b6[_0x30677b(0x110)]&&_0x57ef04[_0x30677b(0x13d)](_0x57c0b6[_0x30677b(0x110)][_0x30677b(0xf6)],_0x57ef04[_0x30677b(0xf9)]))return!![];return![];}catch(_0x2cc58b){logger[_0x30677b(0xfd)]('['+TAG+_0x30677b(0x119)+_0x2cc58b[_0x30677b(0xf6)]+'\x20'+_0x2cc58b[_0x30677b(0x139)]);const _0x483562={};_0x483562[_0x30677b(0xf6)]=_0x2cc58b[_0x30677b(0xf6)];const _0x474153={};return _0x474153['status']=0x1f4,_0x474153[_0x30677b(0x110)]=_0x483562,_0x474153;}}static async[a142_0x5bff22(0x134)](_0xce9bd7){const _0xddee81=a142_0x5bff22,_0x9d1ca7={'pRyEc':function(_0x439a57,_0x5c9b31){return _0x439a57||_0x5c9b31;},'UyzrE':_0xddee81(0x115),'ohfgQ':function(_0x3a840d,_0x23990b){return _0x3a840d(_0x23990b);},'hJNvs':_0xddee81(0xff),'OLYkv':function(_0x4301c3,_0x3cb16a){return _0x4301c3===_0x3cb16a;},'TXoOk':function(_0x4d286a,_0x29df75){return _0x4d286a!==_0x29df75;},'uOTWb':'undefined'},{buildName:_0x3e9386,buildRunIdentifier:_0x4dafc2,projectName:_0x1c5bc2}=_0xce9bd7;if(_0x9d1ca7[_0xddee81(0x11a)](!_0x3e9386,!_0x4dafc2)||!_0x1c5bc2){logger[_0xddee81(0xfd)]('['+TAG+_0xddee81(0x100)+_0x3e9386+_0xddee81(0x13e)+_0x4dafc2+',\x20projectName='+_0x1c5bc2);const _0x3f6a1b={};_0x3f6a1b[_0xddee81(0xf6)]=_0x9d1ca7[_0xddee81(0x137)];const _0x57a6b3={};return _0x57a6b3[_0xddee81(0x10f)]=0x190,_0x57a6b3['body']=_0x3f6a1b,_0x57a6b3;}const _0x155364='?buildName='+_0x9d1ca7['ohfgQ'](encodeURIComponent,_0x3e9386)+'&buildRunIdentifier='+_0x9d1ca7[_0xddee81(0x13c)](encodeURIComponent,_0x4dafc2)+'&projectName='+_0x9d1ca7[_0xddee81(0x13c)](encodeURIComponent,_0x1c5bc2),_0x3ab483=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x155364;try{logger[_0xddee81(0xf7)]('['+TAG+_0xddee81(0x102)+_0x3ab483);let _0x33ff29=0x0;const _0x58ac8f=await this[_0xddee81(0x13b)](_0x9d1ca7[_0xddee81(0x10e)],_0x3ab483);return _0x9d1ca7[_0xddee81(0x122)](_0x58ac8f[_0xddee81(0x10f)],0xc8)&&_0x58ac8f[_0xddee81(0x110)]&&_0x9d1ca7[_0xddee81(0x127)](typeof _0x58ac8f['body'][_0xddee81(0x124)],_0x9d1ca7['uOTWb'])&&(_0x33ff29=_0x9d1ca7['ohfgQ'](Number,_0x58ac8f[_0xddee81(0x110)][_0xddee81(0x124)])),_0x33ff29;}catch(_0x20cfb7){logger['error']('['+TAG+']\x20Error\x20in\x20getFailedTestsCount:\x20'+_0x20cfb7[_0xddee81(0xf6)]+'\x20'+_0x20cfb7[_0xddee81(0x139)]);const _0x432b06={};_0x432b06['message']=_0x20cfb7[_0xddee81(0xf6)];const _0xb8f4ca={};return _0xb8f4ca[_0xddee81(0x10f)]=0x1f4,_0xb8f4ca[_0xddee81(0x110)]=_0x432b06,_0xb8f4ca;}}}module[a142_0x5bff22(0x11f)]=RequestUtils;
@@ -1 +1 @@
1
- const a143_0x48d617=a143_0x66d2;(function(_0x16cf99,_0x52a547){const _0x351424=a143_0x66d2,_0x1ba2c2=_0x16cf99();while(!![]){try{const _0x3b8755=parseInt(_0x351424(0x81))/0x1+parseInt(_0x351424(0xdd))/0x2+-parseInt(_0x351424(0xb4))/0x3*(-parseInt(_0x351424(0x9f))/0x4)+parseInt(_0x351424(0xa4))/0x5*(parseInt(_0x351424(0xa7))/0x6)+-parseInt(_0x351424(0x96))/0x7+parseInt(_0x351424(0xd6))/0x8+parseInt(_0x351424(0x8b))/0x9*(-parseInt(_0x351424(0xa6))/0xa);if(_0x3b8755===_0x52a547)break;else _0x1ba2c2['push'](_0x1ba2c2['shift']());}catch(_0x52dd44){_0x1ba2c2['push'](_0x1ba2c2['shift']());}}}(a143_0x5bb2,0xe803d));const logger=require(a143_0x48d617(0x85))[a143_0x48d617(0xb8)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a143_0x48d617(0xca)),TestOrderingServerHandler=require('./testOrderingServerHandler'),OrchestrationUtils=require(a143_0x48d617(0xdc)),path=require('path'),{spawnSync}=require(a143_0x48d617(0xc6)),micromatch=require(a143_0x48d617(0x8e)),fs=require('fs');class TestOrchestrationHandler{constructor(_0x2e041c){const _0xeb2801=a143_0x48d617,_0x244781={};_0x244781[_0xeb2801(0x8a)]='2|3|5|4|1|0';const _0xe3ef27=_0x244781,_0x4a0a3e=_0xe3ef27[_0xeb2801(0x8a)][_0xeb2801(0x99)]('|');let _0x12d232=0x0;while(!![]){switch(_0x4a0a3e[_0x12d232++]){case'0':this['_initializeTestOrdering']();continue;case'1':this[_0xeb2801(0x7b)]=new OrchestrationUtils(_0x2e041c);continue;case'2':this[_0xeb2801(0x8d)]=_0x2e041c;continue;case'3':this['orderingInstrumentationData']={};continue;case'4':this[_0xeb2801(0x95)]=null;continue;case'5':this[_0xeb2801(0x8c)]=![];continue;}break;}}[a143_0x48d617(0xad)](){const _0x37b1b5=a143_0x48d617,_0xaed9d5={'ePOUw':function(_0x4153fe,_0x1a84fa){return _0x4153fe(_0x1a84fa);},'cExVU':function(_0x5ca478,_0x451d23){return _0x5ca478(_0x451d23);},'MfUZj':function(_0x4d958f,_0x265269){return _0x4d958f(_0x265269);},'KpfZl':function(_0x4a3c09,_0x4ffda9){return _0x4a3c09(_0x4ffda9);},'XyyiN':function(_0x1ae39e,_0x550eaa){return _0x1ae39e&&_0x550eaa;}},_0x502de6=_0xaed9d5['ePOUw'](isNotUndefined,this[_0x37b1b5(0x8d)])&&(_0xaed9d5[_0x37b1b5(0x86)](isUndefined,this[_0x37b1b5(0x8d)]['testObservability'])||_0xaed9d5[_0x37b1b5(0xae)](isTrueString,this[_0x37b1b5(0x8d)][_0x37b1b5(0xbc)])),_0x375adb=this[_0x37b1b5(0x7b)][_0x37b1b5(0xc3)](),_0x144975=_0xaed9d5[_0x37b1b5(0xae)](isNotUndefined,this['config'])&&_0xaed9d5[_0x37b1b5(0x80)](isNotUndefined,this[_0x37b1b5(0x8d)]['projectName']),_0x3f5a1d=_0xaed9d5[_0x37b1b5(0xab)](isNotUndefined,this[_0x37b1b5(0x8d)])&&_0xaed9d5[_0x37b1b5(0xae)](isNotUndefined,this[_0x37b1b5(0x8d)][_0x37b1b5(0xd2)]);return _0xaed9d5[_0x37b1b5(0x7d)](_0x502de6,_0x375adb)&&_0x144975&&_0x3f5a1d;}[a143_0x48d617(0xb6)](){const _0x485052=a143_0x48d617,_0x4a898d={};_0x4a898d['ETYBg']=_0x485052(0xdb),_0x4a898d[_0x485052(0xb5)]=_0x485052(0xa1);const _0x42038d=_0x4a898d;this[_0x485052(0xad)]()?(this['testOrderingServerHandler']=new TestOrderingServerHandler(this[_0x485052(0x8d)]),logger[_0x485052(0xc1)](_0x42038d[_0x485052(0x87)])):(logger['debug'](_0x42038d[_0x485052(0xb5)]),this[_0x485052(0xc0)]());}['logTestOrderingChecks'](){const _0x326dbe=a143_0x48d617,_0x2a3f02={'JmGbS':function(_0x2b80aa,_0x97b0b0){return _0x2b80aa(_0x97b0b0);},'FWBxC':function(_0x5d7cb1,_0x4dbce0){return _0x5d7cb1(_0x4dbce0);},'ktVys':_0x326dbe(0x92),'RKDhn':function(_0x8e528d,_0x5907eb){return _0x8e528d(_0x5907eb);},'HfVqh':'Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.'};if(!this['_shouldLogTestOrderingChecks']())return;(!_0x2a3f02['JmGbS'](isNotUndefined,this[_0x326dbe(0x8d)])||!_0x2a3f02[_0x326dbe(0xd8)](isNotUndefined,this['config'][_0x326dbe(0xd2)])||!_0x2a3f02['FWBxC'](isNotUndefined,this['config'][_0x326dbe(0xc8)]))&&logger[_0x326dbe(0xc1)](_0x2a3f02['ktVys']),_0x2a3f02[_0x326dbe(0xd8)](isNotUndefined,this['config'])&&_0x2a3f02['RKDhn'](isNotUndefined,this[_0x326dbe(0x8d)][_0x326dbe(0xbc)])&&!_0x2a3f02['FWBxC'](isTrueString,this[_0x326dbe(0x8d)][_0x326dbe(0xbc)])&&logger[_0x326dbe(0xc1)](_0x2a3f02['HfVqh']);}[a143_0x48d617(0xbf)](){const _0x5ad82c=a143_0x48d617;return!this[_0x5ad82c(0xad)]()&&this[_0x5ad82c(0x7b)]['testOrderingEnabled']();}[a143_0x48d617(0xba)](){const _0x23c8a8=a143_0x48d617;return this[_0x23c8a8(0x8c)];}['setTestOrderingApplied'](_0x459c9d){const _0x50795a=a143_0x48d617,_0x3de1e3={};_0x3de1e3[_0x50795a(0xa0)]='applied';const _0x4f6614=_0x3de1e3;this[_0x50795a(0x8c)]=_0x459c9d,this['addToOrderingInstrumentationData'](_0x4f6614['GIkHu'],_0x459c9d);}['addToOrderingInstrumentationData'](_0x4b1fa7,_0xc25594){const _0x1c4a64=a143_0x48d617;this[_0x1c4a64(0xaa)][_0x4b1fa7]=_0xc25594;}[a143_0x48d617(0x9a)](){const _0x2bfa32=a143_0x48d617;return this[_0x2bfa32(0xaa)];}['updateBuildIdentifier'](){const _0x2ec187=a143_0x48d617,_0x287786={'EUWdV':function(_0x32053d,_0x1bbc39){return _0x32053d(_0x1bbc39);},'aJHlj':function(_0x2bf3d9,_0x2c1c2a){return _0x2bf3d9>_0x2c1c2a;}},_0x21df85=_0x287786[_0x2ec187(0x89)](parseInt,process['env'][_0x2ec187(0xc5)]||'1'),_0x12aa90=process['env'][_0x2ec187(0xb0)];_0x12aa90&&_0x287786[_0x2ec187(0xd7)](_0x21df85,0x1)&&(logger[_0x2ec187(0x94)]('[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20'+_0x12aa90),this[_0x2ec187(0x8d)]['buildIdentifier']=_0x12aa90);}async[a143_0x48d617(0x78)](_0x155267){const _0x538b22=a143_0x48d617,_0x4b3925={'KjJvY':function(_0x492548,_0x263dcc){return _0x492548===_0x263dcc;},'kYPOU':_0x538b22(0x8f),'sovBZ':function(_0x34ce28,_0x261ffb){return _0x34ce28(_0x261ffb);},'GWSmB':_0x538b22(0x97),'tWDUX':_0x538b22(0xcf),'xugwU':_0x538b22(0x7a),'OkIjb':_0x538b22(0xb9),'gesCX':_0x538b22(0xd5)};try{if(!_0x155267||!Array[_0x538b22(0x98)](_0x155267)||_0x4b3925[_0x538b22(0xa3)](_0x155267[_0x538b22(0x88)],0x0))return null;if(_0x4b3925[_0x538b22(0xa3)](this[_0x538b22(0xad)](),![]))return logger[_0x538b22(0x94)](_0x4b3925['kYPOU']),null;let _0x48d3c5=null;const _0x21e7e0=this[_0x538b22(0x7b)]['getTestOrderingName']();if(this[_0x538b22(0x95)]){const _0x112927=await this[_0x538b22(0x95)][_0x538b22(0x9b)](_0x155267,_0x21e7e0);if(!_0x112927)return null;_0x48d3c5=await this[_0x538b22(0x95)]['getOrderedTestFiles'](_0x112927);}if(!_0x48d3c5||!Array[_0x538b22(0x98)](_0x48d3c5)||_0x4b3925[_0x538b22(0xa3)](_0x48d3c5[_0x538b22(0x88)],0x0))return null;const _0x339458=_0x4b3925['sovBZ'](parseInt,process[_0x538b22(0x9e)]['BROWSERSTACK_NODE_INDEX']||'0'),_0x55e84f=_0x4b3925[_0x538b22(0xda)](parseInt,process['env']['BROWSERSTACK_TOTAL_NODE_COUNT']||'1');return this[_0x538b22(0x79)](_0x4b3925[_0x538b22(0xd0)],_0x155267[_0x538b22(0x88)]),this[_0x538b22(0x79)](_0x4b3925[_0x538b22(0xbd)],_0x339458),this[_0x538b22(0x79)](_0x4b3925[_0x538b22(0x7c)],_0x55e84f),this['addToOrderingInstrumentationData'](_0x4b3925['OkIjb'],_0x48d3c5[_0x538b22(0x88)]),this[_0x538b22(0x79)](_0x4b3925[_0x538b22(0x9c)],this[_0x538b22(0x95)]?this['testOrderingServerHandler'][_0x538b22(0xc9)]():0x0),_0x48d3c5[_0x538b22(0xa5)](_0x16b102=>sanitizedFilePath(_0x16b102));}catch(_0x4437dd){return logger['debug']('[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20'+(_0x4437dd['stack']||_0x4437dd[_0x538b22(0xd1)]())),null;}}async[a143_0x48d617(0xc7)](_0x26fa7a,_0x44b5c0,_0x4a0288){const _0x40c896=a143_0x48d617,_0x537f42={'Vahkk':function(_0x2cd479,_0x36aca6){return _0x2cd479(_0x36aca6);},'TMxKo':_0x40c896(0x84),'BVOlb':_0x40c896(0xbb),'zocaD':_0x40c896(0x83),'XZJUB':function(_0x4c112c,_0x1e9ce3){return _0x4c112c(_0x1e9ce3);},'dHxiV':_0x40c896(0xce),'WVrlB':_0x40c896(0x77),'cKQoG':'**/?(*.)+(spec|test).[jt]s?(x)','qfLdy':function(_0x4a1e00,_0x395dc2,_0x2ec280,_0x6a9c80){return _0x4a1e00(_0x395dc2,_0x2ec280,_0x6a9c80);},'CEmkA':'npx','FspDY':_0x40c896(0xb7),'hZUwb':_0x40c896(0xbe),'sfwLY':_0x40c896(0xd9),'BvgIL':_0x40c896(0xde),'sDiZQ':function(_0x321670,_0x2af4cb,_0x298cd5,_0x479977){return _0x321670(_0x2af4cb,_0x298cd5,_0x479977);}};try{const {getTestPathPatterns:_0x16ec9f}=_0x537f42[_0x40c896(0xac)](require,_0x537f42[_0x40c896(0x7e)]),{globsToMatcher:_0x5086c8}=_0x537f42[_0x40c896(0xac)](require,_0x537f42[_0x40c896(0xd4)]),{findRelatedTests:_0x1e0c1e}=_0x537f42['Vahkk'](require,_0x537f42[_0x40c896(0xb1)]),_0x21442d=_0x537f42[_0x40c896(0x93)](require,_0x537f42[_0x40c896(0xa8)]),_0x4f2819=_0x26fa7a[_0x40c896(0xb2)]||[_0x537f42['WVrlB'],_0x537f42[_0x40c896(0xa9)]],_0x461c2a=_0x26fa7a['testPathIgnorePatterns']||[],_0x2d3e59=_0x537f42[_0x40c896(0x7f)](spawnSync,_0x537f42[_0x40c896(0xd3)],[_0x537f42[_0x40c896(0xcb)],_0x537f42[_0x40c896(0x90)],_0x4a0288,..._0x44b5c0,_0x537f42['sfwLY']],{'encoding':_0x537f42[_0x40c896(0xc4)]});let _0x20b91f=[];!_0x2d3e59['error']&&(_0x20b91f=_0x2d3e59[_0x40c896(0xa2)]['split']('\x0a')[_0x40c896(0xb3)](Boolean));logger[_0x40c896(0x94)]('Found\x20test\x20files:\x20'+JSON[_0x40c896(0xaf)](_0x20b91f)+'\x20files');const _0x490311={};_0x490311['matchBase']=!![],_0x490311[_0x40c896(0xcd)]=_0x461c2a;const _0xc4a071=_0x537f42[_0x40c896(0x91)](micromatch,_0x20b91f,_0x4f2819,_0x490311)[_0x40c896(0xa5)](_0x5233ae=>path['relative'](_0x26fa7a[_0x40c896(0x9d)],_0x5233ae));return logger[_0x40c896(0x94)](_0x40c896(0xcc)+JSON[_0x40c896(0xaf)](_0xc4a071)+_0x40c896(0xc2)),_0xc4a071;}catch(_0x22e044){return logger[_0x40c896(0x94)](_0x40c896(0x82)+_0x22e044),[];}}}function a143_0x66d2(_0xd8134d,_0x169888){const _0x5bb295=a143_0x5bb2();return a143_0x66d2=function(_0x66d2b3,_0x4c4164){_0x66d2b3=_0x66d2b3-0x77;let _0xc1e9b5=_0x5bb295[_0x66d2b3];return _0xc1e9b5;},a143_0x66d2(_0xd8134d,_0x169888);}function a143_0x5bb2(){const _0x39bc1b=['cKQoG','orderingInstrumentationData','KpfZl','Vahkk','isTestOrchestrationEnabled','cExVU','stringify','BROWSERSTACK_BUILD_RUN_IDENTIFIER','zocaD','testMatch','filter','57itVUwh','WYOlq','_initializeTestOrdering','jest','winstonLogger','downloadedTestFilesCount','isTestOrderingApplied','jest-util','testObservability','tWDUX','--config','_shouldLogTestOrderingChecks','logTestOrderingChecks','info','\x20files','testOrderingEnabled','BvgIL','BROWSERSTACK_TOTAL_NODE_COUNT','child_process','findTestFiles','projectName','getSplitTestsAPICallCount','../helper','FspDY','Filterted\x20to\x20test\x20files:\x20','ignore','glob','nodeIndex','GWSmB','toString','buildName','CEmkA','BVOlb','splitTestsAPICallCount','15158152CceEhT','aJHlj','FWBxC','--listTests','sovBZ','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','./orchestrationUtils','3269288uLkcew','utf-8','**/__tests__/**/*.[jt]s?(x)','reorderTestFiles','addToOrderingInstrumentationData','totalNodes','orchestrationUtils','xugwU','XyyiN','TMxKo','qfLdy','MfUZj','273182NmjqwT','Error\x20finding\x20test\x20files:\x20','jest-runner','jest-config','../logger','ePOUw','ETYBg','length','EUWdV','WJfHu','1383651ayBuWl','testOrderingApplied','config','micromatch','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','hZUwb','sDiZQ','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','XZJUB','debug','testOrderingServerHandler','6691230tzpeZt','uploadedTestFilesCount','isArray','split','getOrderingInstrumentationData','splitTests','gesCX','rootDir','env','226748kMNVat','GIkHu','Test\x20orchestration\x20without\x20test\x20ordering','stdout','KjJvY','5bGPeQp','map','220SUlGtc','2452998IFeBsf','dHxiV'];a143_0x5bb2=function(){return _0x39bc1b;};return a143_0x5bb2();}module['exports']=TestOrchestrationHandler;
1
+ const a143_0x29574f=a143_0x6db8;(function(_0x163f36,_0x2187ca){const _0x16e2bd=a143_0x6db8,_0x403862=_0x163f36();while(!![]){try{const _0x5be7e6=-parseInt(_0x16e2bd(0x131))/0x1+parseInt(_0x16e2bd(0x11d))/0x2*(-parseInt(_0x16e2bd(0x14b))/0x3)+parseInt(_0x16e2bd(0x144))/0x4+parseInt(_0x16e2bd(0x182))/0x5*(-parseInt(_0x16e2bd(0x146))/0x6)+parseInt(_0x16e2bd(0x166))/0x7*(-parseInt(_0x16e2bd(0x177))/0x8)+-parseInt(_0x16e2bd(0x185))/0x9*(parseInt(_0x16e2bd(0x112))/0xa)+-parseInt(_0x16e2bd(0x128))/0xb*(-parseInt(_0x16e2bd(0x157))/0xc);if(_0x5be7e6===_0x2187ca)break;else _0x403862['push'](_0x403862['shift']());}catch(_0x1f52e1){_0x403862['push'](_0x403862['shift']());}}}(a143_0x4491,0xd1375));function a143_0x6db8(_0x26fb5b,_0x1e74ba){const _0x4491a6=a143_0x4491();return a143_0x6db8=function(_0x6db86,_0x1ce764){_0x6db86=_0x6db86-0x112;let _0x3f6c1d=_0x4491a6[_0x6db86];return _0x3f6c1d;},a143_0x6db8(_0x26fb5b,_0x1e74ba);}function a143_0x4491(){const _0x2c6c23=['buildName','split','buildIdentifier','logTestOrderingChecks','149638JdoZJG','Filterted\x20to\x20test\x20files:\x20','[reorderTestFiles]\x20Test\x20ordering\x20is\x20not\x20supported\x20or\x20enabled','orderingInstrumentationData','ovDMR','[orchestrate]\x20Setting\x20buildIdentifier\x20to\x20buildRunIdentifier:\x20','./testOrderingServerHandler','ZTVkX','--listTests','npx','debug','88AfPmCB','nodeIndex','isTestOrchestrationEnabled','Bdeur','ucyfJ','GfCco','Test\x20orchestration\x20with\x20test\x20ordering\x20enabled','BROWSERSTACK_NODE_INDEX','child_process','320753yGDitW','**/__tests__/**/*.[jt]s?(x)','1|2|4|3|0|5','qhxgp','applied','config','_shouldLogTestOrderingChecks','ZQlyC','jest','getSplitTestsAPICallCount','Test\x20Reordering\x20is\x20unavailable\x20because\x20testReporting\x20is\x20disabled.\x20Please\x20enable\x20it\x20from\x20browserstack.yml\x20file.','micromatch','vsvUh','getOrderedTestFiles','Test\x20Reordering\x20is\x20unavailable\x20because\x20buildName\x20or\x20projectName\x20is\x20null.\x20Please\x20set\x20a\x20non-null\x20value.','FgWyg','FMPLg','LnWFb','matchBase','163928uIGZAe','FROdU','8993148aYwMOu','testOrderingApplied','**/?(*.)+(spec|test).[jt]s?(x)','info','[reorderTestFiles]\x20Error\x20in\x20ordering\x20test\x20files:\x20','57gEMVHv','glob','testOrderingServerHandler','BROWSERSTACK_TOTAL_NODE_COUNT','ENsSB','dMGyY','oLedL','utf-8','UEWJu','TPWFZ','map','ynFFh','9854904ppPuLj','winstonLogger','reorderTestFiles','Error\x20finding\x20test\x20files:\x20','getOrderingInstrumentationData','\x20files','testOrderingEnabled','EfVLL','orchestrationUtils','stack','../logger','./orchestrationUtils','rootDir','stringify','VNrSn','49238ajlcFD','path','UndiY','filter','testMatch','uploadedTestFilesCount','YXoHc','ignore','Test\x20orchestration\x20without\x20test\x20ordering','testObservability','LTYOy','env','jest-util','exports','length','_initializeTestOrdering','xATDs','1184CYeHBk','liPDP','toString','hkiEo','rsPVr','stfzH','testPathIgnorePatterns','setTestOrderingApplied','relative','error','jMHWd','5NJgpTE','../helper','splitTests','2649177Mdnpqg','50PDVCsF','oGceU','pCMce','addToOrderingInstrumentationData','Found\x20test\x20files:\x20','--config','isArray'];a143_0x4491=function(){return _0x2c6c23;};return a143_0x4491();}const logger=require(a143_0x29574f(0x161))[a143_0x29574f(0x158)],{isUndefined,isNotUndefined,isTrueString,sanitizedFilePath}=require(a143_0x29574f(0x183)),TestOrderingServerHandler=require(a143_0x29574f(0x123)),OrchestrationUtils=require(a143_0x29574f(0x162)),path=require(a143_0x29574f(0x167)),{spawnSync}=require(a143_0x29574f(0x130)),micromatch=require(a143_0x29574f(0x13c)),fs=require('fs');class TestOrchestrationHandler{constructor(_0x5655c1){const _0x9c05a9=a143_0x29574f,_0x4c6b80={};_0x4c6b80['ynFFh']=_0x9c05a9(0x133);const _0x49b943=_0x4c6b80,_0x43b8af=_0x49b943[_0x9c05a9(0x156)][_0x9c05a9(0x11a)]('|');let _0x41242f=0x0;while(!![]){switch(_0x43b8af[_0x41242f++]){case'0':this[_0x9c05a9(0x15f)]=new OrchestrationUtils(_0x5655c1);continue;case'1':this['config']=_0x5655c1;continue;case'2':this['orderingInstrumentationData']={};continue;case'3':this[_0x9c05a9(0x14d)]=null;continue;case'4':this['testOrderingApplied']=![];continue;case'5':this[_0x9c05a9(0x175)]();continue;}break;}}[a143_0x29574f(0x12a)](){const _0x5041d7=a143_0x29574f,_0x320a73={'LnWFb':function(_0x56aa49,_0x20a6d9){return _0x56aa49(_0x20a6d9);},'ENsSB':function(_0x2f6222,_0x462b69){return _0x2f6222(_0x462b69);},'dXClD':function(_0x183d8c,_0xc01276){return _0x183d8c(_0xc01276);},'HSKuQ':function(_0x3f631a,_0x1735a8){return _0x3f631a(_0x1735a8);},'pCMce':function(_0x4c431c,_0x1499ef){return _0x4c431c&&_0x1499ef;}},_0x1781a4=_0x320a73[_0x5041d7(0x142)](isNotUndefined,this[_0x5041d7(0x136)])&&(_0x320a73[_0x5041d7(0x142)](isUndefined,this['config'][_0x5041d7(0x16f)])||_0x320a73[_0x5041d7(0x142)](isTrueString,this[_0x5041d7(0x136)][_0x5041d7(0x16f)])),_0x1c28b5=this[_0x5041d7(0x15f)][_0x5041d7(0x15d)](),_0x3acc27=_0x320a73[_0x5041d7(0x142)](isNotUndefined,this[_0x5041d7(0x136)])&&_0x320a73[_0x5041d7(0x14f)](isNotUndefined,this['config']['projectName']),_0x3e111f=_0x320a73['dXClD'](isNotUndefined,this[_0x5041d7(0x136)])&&_0x320a73['HSKuQ'](isNotUndefined,this[_0x5041d7(0x136)][_0x5041d7(0x119)]);return _0x320a73[_0x5041d7(0x114)](_0x1781a4,_0x1c28b5)&&_0x3acc27&&_0x3e111f;}['_initializeTestOrdering'](){const _0x3aedf5=a143_0x29574f,_0x1a5753={};_0x1a5753[_0x3aedf5(0x17a)]=_0x3aedf5(0x12e),_0x1a5753[_0x3aedf5(0x150)]=_0x3aedf5(0x16e);const _0x3b6135=_0x1a5753;this[_0x3aedf5(0x12a)]()?(this[_0x3aedf5(0x14d)]=new TestOrderingServerHandler(this[_0x3aedf5(0x136)]),logger[_0x3aedf5(0x149)](_0x3b6135['hkiEo'])):(logger['debug'](_0x3b6135[_0x3aedf5(0x150)]),this[_0x3aedf5(0x11c)]());}[a143_0x29574f(0x11c)](){const _0x200d73=a143_0x29574f,_0x11677a={'rsPVr':function(_0x14dcfe,_0x3332df){return _0x14dcfe(_0x3332df);},'EfVLL':_0x200d73(0x13f),'ZTVkX':_0x200d73(0x13b)};if(!this[_0x200d73(0x137)]())return;(!_0x11677a[_0x200d73(0x17b)](isNotUndefined,this['config'])||!_0x11677a[_0x200d73(0x17b)](isNotUndefined,this['config']['buildName'])||!_0x11677a[_0x200d73(0x17b)](isNotUndefined,this[_0x200d73(0x136)]['projectName']))&&logger['info'](_0x11677a[_0x200d73(0x15e)]),_0x11677a[_0x200d73(0x17b)](isNotUndefined,this[_0x200d73(0x136)])&&_0x11677a['rsPVr'](isNotUndefined,this[_0x200d73(0x136)][_0x200d73(0x16f)])&&!_0x11677a[_0x200d73(0x17b)](isTrueString,this[_0x200d73(0x136)]['testObservability'])&&logger['info'](_0x11677a[_0x200d73(0x124)]);}[a143_0x29574f(0x137)](){const _0x4dd7f6=a143_0x29574f;return!this[_0x4dd7f6(0x12a)]()&&this[_0x4dd7f6(0x15f)][_0x4dd7f6(0x15d)]();}['isTestOrderingApplied'](){const _0x412759=a143_0x29574f;return this[_0x412759(0x147)];}[a143_0x29574f(0x17e)](_0x1915ce){const _0x1ebfb9=a143_0x29574f,_0xdb0dd2={};_0xdb0dd2[_0x1ebfb9(0x12d)]=_0x1ebfb9(0x135);const _0x10a6ab=_0xdb0dd2;this[_0x1ebfb9(0x147)]=_0x1915ce,this[_0x1ebfb9(0x115)](_0x10a6ab[_0x1ebfb9(0x12d)],_0x1915ce);}['addToOrderingInstrumentationData'](_0x2caf78,_0x29cf70){const _0x1935a0=a143_0x29574f;this[_0x1935a0(0x120)][_0x2caf78]=_0x29cf70;}[a143_0x29574f(0x15b)](){const _0x165a9b=a143_0x29574f;return this[_0x165a9b(0x120)];}['updateBuildIdentifier'](){const _0x3ccf75=a143_0x29574f,_0x3e44c5={'HKcyO':function(_0x3ec4fd,_0x7fc57d){return _0x3ec4fd(_0x7fc57d);},'BXvuq':function(_0x460ec1,_0x596a5d){return _0x460ec1>_0x596a5d;}},_0xe69b30=_0x3e44c5['HKcyO'](parseInt,process[_0x3ccf75(0x171)][_0x3ccf75(0x14e)]||'1'),_0x41dde1=process[_0x3ccf75(0x171)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];_0x41dde1&&_0x3e44c5['BXvuq'](_0xe69b30,0x1)&&(logger[_0x3ccf75(0x127)](_0x3ccf75(0x122)+_0x41dde1),this[_0x3ccf75(0x136)][_0x3ccf75(0x11b)]=_0x41dde1);}async[a143_0x29574f(0x159)](_0x16ecb9){const _0x11e7ee=a143_0x29574f,_0x4fd201={'qhxgp':function(_0x325a6b,_0x121b3f){return _0x325a6b===_0x121b3f;},'FMPLg':_0x11e7ee(0x11f),'stfzH':function(_0x474deb,_0x199448){return _0x474deb===_0x199448;},'vsvUh':function(_0x5b9efe,_0xf9b1a0){return _0x5b9efe(_0xf9b1a0);},'FROdU':_0x11e7ee(0x16b),'UndiY':_0x11e7ee(0x129),'ZQlyC':'totalNodes','ucyfJ':'downloadedTestFilesCount','WWlpM':'splitTestsAPICallCount'};try{if(!_0x16ecb9||!Array[_0x11e7ee(0x118)](_0x16ecb9)||_0x4fd201['qhxgp'](_0x16ecb9[_0x11e7ee(0x174)],0x0))return null;if(_0x4fd201[_0x11e7ee(0x134)](this[_0x11e7ee(0x12a)](),![]))return logger['debug'](_0x4fd201[_0x11e7ee(0x141)]),null;let _0xe17b39=null;const _0x3950b0=this[_0x11e7ee(0x15f)]['getTestOrderingName']();if(this[_0x11e7ee(0x14d)]){const _0x105107=await this[_0x11e7ee(0x14d)][_0x11e7ee(0x184)](_0x16ecb9,_0x3950b0);if(!_0x105107)return null;_0xe17b39=await this[_0x11e7ee(0x14d)][_0x11e7ee(0x13e)](_0x105107);}if(!_0xe17b39||!Array['isArray'](_0xe17b39)||_0x4fd201[_0x11e7ee(0x17c)](_0xe17b39['length'],0x0))return null;const _0x25d49b=_0x4fd201[_0x11e7ee(0x13d)](parseInt,process[_0x11e7ee(0x171)][_0x11e7ee(0x12f)]||'0'),_0xa1235c=_0x4fd201[_0x11e7ee(0x13d)](parseInt,process['env'][_0x11e7ee(0x14e)]||'1');return this[_0x11e7ee(0x115)](_0x4fd201[_0x11e7ee(0x145)],_0x16ecb9[_0x11e7ee(0x174)]),this['addToOrderingInstrumentationData'](_0x4fd201[_0x11e7ee(0x168)],_0x25d49b),this['addToOrderingInstrumentationData'](_0x4fd201[_0x11e7ee(0x138)],_0xa1235c),this[_0x11e7ee(0x115)](_0x4fd201[_0x11e7ee(0x12c)],_0xe17b39[_0x11e7ee(0x174)]),this[_0x11e7ee(0x115)](_0x4fd201['WWlpM'],this['testOrderingServerHandler']?this[_0x11e7ee(0x14d)][_0x11e7ee(0x13a)]():0x0),_0xe17b39[_0x11e7ee(0x155)](_0x49b69b=>sanitizedFilePath(_0x49b69b));}catch(_0x4d91bc){return logger[_0x11e7ee(0x127)](_0x11e7ee(0x14a)+(_0x4d91bc[_0x11e7ee(0x160)]||_0x4d91bc[_0x11e7ee(0x179)]())),null;}}async['findTestFiles'](_0x4b5235,_0x228647,_0x3d2d2){const _0x3f697f=a143_0x29574f,_0x456c73={'oGceU':function(_0x1c0d3f,_0x5c21e4){return _0x1c0d3f(_0x5c21e4);},'UEWJu':'jest-config','VNrSn':_0x3f697f(0x172),'oLedL':function(_0x4d01aa,_0x103074){return _0x4d01aa(_0x103074);},'liPDP':'jest-runner','xATDs':function(_0x38964c,_0x594611){return _0x38964c(_0x594611);},'YXoHc':_0x3f697f(0x14c),'Bdeur':_0x3f697f(0x132),'jMHWd':_0x3f697f(0x148),'TPWFZ':function(_0x561513,_0x637717,_0x2eac54,_0x580359){return _0x561513(_0x637717,_0x2eac54,_0x580359);},'LTYOy':_0x3f697f(0x126),'FgWyg':_0x3f697f(0x139),'pmRYw':_0x3f697f(0x117),'CpQdF':_0x3f697f(0x125),'ovDMR':_0x3f697f(0x152),'aPdxq':function(_0x32f1a2,_0x8661d1,_0x1d8d3c,_0x153760){return _0x32f1a2(_0x8661d1,_0x1d8d3c,_0x153760);}};try{const {getTestPathPatterns:_0x3c12dc}=_0x456c73[_0x3f697f(0x113)](require,_0x456c73[_0x3f697f(0x153)]),{globsToMatcher:_0x54ec48}=_0x456c73[_0x3f697f(0x113)](require,_0x456c73[_0x3f697f(0x165)]),{findRelatedTests:_0x281c38}=_0x456c73[_0x3f697f(0x151)](require,_0x456c73[_0x3f697f(0x178)]),_0x10ee0c=_0x456c73[_0x3f697f(0x176)](require,_0x456c73[_0x3f697f(0x16c)]),_0x461228=_0x4b5235[_0x3f697f(0x16a)]||[_0x456c73[_0x3f697f(0x12b)],_0x456c73[_0x3f697f(0x181)]],_0x42769b=_0x4b5235[_0x3f697f(0x17d)]||[],_0x3a7477=_0x456c73[_0x3f697f(0x154)](spawnSync,_0x456c73[_0x3f697f(0x170)],[_0x456c73[_0x3f697f(0x140)],_0x456c73['pmRYw'],_0x3d2d2,..._0x228647,_0x456c73['CpQdF']],{'encoding':_0x456c73[_0x3f697f(0x121)]});let _0xcc1fa8=[];!_0x3a7477[_0x3f697f(0x180)]&&(_0xcc1fa8=_0x3a7477['stdout'][_0x3f697f(0x11a)]('\x0a')[_0x3f697f(0x169)](Boolean));logger[_0x3f697f(0x127)](_0x3f697f(0x116)+JSON[_0x3f697f(0x164)](_0xcc1fa8)+_0x3f697f(0x15c));const _0x1d8a5d={};_0x1d8a5d[_0x3f697f(0x143)]=!![],_0x1d8a5d[_0x3f697f(0x16d)]=_0x42769b;const _0x53e5d9=_0x456c73['aPdxq'](micromatch,_0xcc1fa8,_0x461228,_0x1d8a5d)['map'](_0x108ce6=>path[_0x3f697f(0x17f)](_0x4b5235[_0x3f697f(0x163)],_0x108ce6));return logger['debug'](_0x3f697f(0x11e)+JSON[_0x3f697f(0x164)](_0x53e5d9)+_0x3f697f(0x15c)),_0x53e5d9;}catch(_0x14d8fc){return logger[_0x3f697f(0x127)](_0x3f697f(0x15a)+_0x14d8fc),[];}}}module[a143_0x29574f(0x173)]=TestOrchestrationHandler;
@@ -1 +1 @@
1
- function a144_0x1b9a(_0x2a45ac,_0x1f0cdd){const _0x2ff6fd=a144_0x2ff6();return a144_0x1b9a=function(_0x1b9a72,_0x331e40){_0x1b9a72=_0x1b9a72-0x15f;let _0x2abff3=_0x2ff6fd[_0x1b9a72];return _0x2abff3;},a144_0x1b9a(_0x2a45ac,_0x1f0cdd);}const a144_0x295b9c=a144_0x1b9a;(function(_0x20da29,_0x2a2358){const _0x111d45=a144_0x1b9a,_0x52143e=_0x20da29();while(!![]){try{const _0x25a884=parseInt(_0x111d45(0x19b))/0x1*(parseInt(_0x111d45(0x189))/0x2)+parseInt(_0x111d45(0x171))/0x3+parseInt(_0x111d45(0x17f))/0x4*(-parseInt(_0x111d45(0x197))/0x5)+parseInt(_0x111d45(0x17c))/0x6+parseInt(_0x111d45(0x193))/0x7*(-parseInt(_0x111d45(0x160))/0x8)+parseInt(_0x111d45(0x19f))/0x9+-parseInt(_0x111d45(0x196))/0xa;if(_0x25a884===_0x2a2358)break;else _0x52143e['push'](_0x52143e['shift']());}catch(_0x292928){_0x52143e['push'](_0x52143e['shift']());}}}(a144_0x2ff6,0xe37d5));const logger=require('../logger')[a144_0x295b9c(0x194)],RequestUtils=require(a144_0x295b9c(0x195));function a144_0x2ff6(){const _0x275ef9=['UicWt','\x20seconds.','debug','_getHostInfo','BaEHx','rIpgb','3571196IlDJzQ','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL\x20after\x20waiting\x20for\x20',',\x20timeoutInterval:\x20','tvNCk','getOrderedTestFiles','resultUrl','env','release','processSplitTestsResponse','postSplitFiles','685405xRHbVU','winstonLogger','./requestUtils','22057320rLzBfX','15BfrzTx','gorLU','splitTestsAPICallCount','arch','1IqUkht','xIKgK','freemem','[getOrderedTestFiles]\x20Response\x20from\x20result\x20URL:\x20','12524229WNdXey','toString','defaultTimeout','length','psSyz','32xqtUuw','zgIAk',',\x20resultUrl:\x20','stringify','[getOrderedTestFiles]\x20Exception\x20in\x20fetching\x20ordered\x20test\x20files:\x20','[splitTests]\x20Response\x20from\x20split\x20tests\x20API:\x20','exports','BROWSERSTACK_TOTAL_NODE_COUNT','[processSplitTestsResponse]\x20Received\x20null\x20value(s)\x20for\x20some\x20attributes\x20in\x20split\x20tests\x20API\x20response','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20timeout\x20URL','[processSplitTestsResponse]\x20Processing\x20response:\x20','now','splitTests','timeoutInterval',',\x20timeoutUrl:\x20','timeoutUrl','map','2247435MpcNWl','config','defaultTimeoutInterval','BROWSERSTACK_NODE_INDEX','BROWSERSTACK_BUILD_RUN_IDENTIFIER','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL:\x20','hostname','QwmjH','projectName','foQfT','stack','322302PnpChC','timeout','getSplitFiles','601136hQLtGh','vUvEG','BUEih','tests'];a144_0x2ff6=function(){return _0x275ef9;};return a144_0x2ff6();}class TestOrderingServerHandler{constructor(_0x5108c9){const _0x350174=a144_0x295b9c;this[_0x350174(0x172)]=_0x5108c9,this[_0x350174(0x199)]=0x0,this['defaultTimeout']=0x3c,this[_0x350174(0x173)]=0x5;}['getSplitTestsAPICallCount'](){return this['splitTestsAPICallCount'];}['processSplitTestsResponse'](_0x32e8cd){const _0x5b6fe3=a144_0x295b9c,_0x183eb9={};_0x183eb9[_0x5b6fe3(0x188)]=_0x5b6fe3(0x168);const _0x458bbb=_0x183eb9;if(!_0x32e8cd)return null;const _0x52b5da={};return _0x52b5da['timeout']=_0x32e8cd[_0x5b6fe3(0x17d)]||this[_0x5b6fe3(0x1a1)],_0x52b5da['timeoutInterval']=_0x32e8cd['timeoutInterval']||this[_0x5b6fe3(0x173)],_0x52b5da[_0x5b6fe3(0x18e)]=_0x32e8cd[_0x5b6fe3(0x18e)],_0x52b5da['timeoutUrl']=_0x32e8cd[_0x5b6fe3(0x16f)],logger[_0x5b6fe3(0x185)](_0x5b6fe3(0x16a)+JSON[_0x5b6fe3(0x163)](_0x32e8cd)),logger[_0x5b6fe3(0x185)]('[processSplitTestsResponse]\x20timeout:\x20'+_0x32e8cd[_0x5b6fe3(0x17d)]+_0x5b6fe3(0x18b)+_0x32e8cd[_0x5b6fe3(0x16d)]+_0x5b6fe3(0x162)+_0x32e8cd['resultUrl']+_0x5b6fe3(0x16e)+_0x32e8cd[_0x5b6fe3(0x16f)]),(!_0x32e8cd[_0x5b6fe3(0x17d)]||!_0x32e8cd[_0x5b6fe3(0x16d)]||!_0x32e8cd[_0x5b6fe3(0x16f)]||!_0x32e8cd[_0x5b6fe3(0x18e)])&&logger[_0x5b6fe3(0x185)](_0x458bbb['rIpgb']),_0x52b5da;}async[a144_0x295b9c(0x16c)](_0x42751d,_0x41c4dd){const _0x5d62d6=a144_0x295b9c,_0x55c650={'UicWt':function(_0x2fa337,_0x2e991a){return _0x2fa337(_0x2e991a);},'tvNCk':function(_0x59842f,_0x26005f){return _0x59842f(_0x26005f);}};try{const _0x20d234=_0x55c650[_0x5d62d6(0x183)](parseInt,process[_0x5d62d6(0x18f)][_0x5d62d6(0x174)]||'0'),_0x162d5b=_0x55c650[_0x5d62d6(0x18c)](parseInt,process['env'][_0x5d62d6(0x167)]||'1'),_0x2d06bb=process[_0x5d62d6(0x18f)][_0x5d62d6(0x175)],_0x3c4938={'nodeIndex':_0x20d234,'totalNodes':_0x162d5b,'projectName':this[_0x5d62d6(0x172)][_0x5d62d6(0x179)],'buildName':this[_0x5d62d6(0x172)]['buildName'],'buildRunIdentifier':_0x2d06bb,'orchestrationStrategy':_0x41c4dd,'hostInfo':this[_0x5d62d6(0x186)](),'tests':_0x42751d[_0x5d62d6(0x170)](_0x2237cd=>({'filePath':_0x2237cd}))},_0x242174=await RequestUtils[_0x5d62d6(0x192)](_0x3c4938);return logger['debug'](_0x5d62d6(0x165)+JSON[_0x5d62d6(0x163)](_0x242174)),this[_0x5d62d6(0x199)]+=0x1,this[_0x5d62d6(0x191)](_0x242174['body']||{});}catch(_0x77dc4f){return logger[_0x5d62d6(0x185)]('[splitTests]\x20Exception\x20in\x20sending\x20test\x20files:\x20'+(_0x77dc4f[_0x5d62d6(0x17b)]||_0x77dc4f[_0x5d62d6(0x1a0)]())),null;}}async[a144_0x295b9c(0x18d)](_0x3c593a){const _0x314731=a144_0x295b9c,_0x431692={};_0x431692['foQfT']='[getOrderedTestFiles]\x20Fetching\x20ordered\x20test\x20files',_0x431692[_0x314731(0x15f)]=function(_0x130c40,_0xeafc36){return _0x130c40*_0xeafc36;},_0x431692[_0x314731(0x178)]=function(_0x5ebffe,_0x202f95){return _0x5ebffe&&_0x202f95;},_0x431692[_0x314731(0x198)]=function(_0x24995c,_0x16cfef){return _0x24995c<_0x16cfef;},_0x431692[_0x314731(0x181)]=function(_0xe93406,_0x33e6ad){return _0xe93406-_0x33e6ad;},_0x431692[_0x314731(0x161)]=function(_0x1e2e8d,_0x55710f){return _0x1e2e8d&&_0x55710f;},_0x431692['xIKgK']=_0x314731(0x169),_0x431692[_0x314731(0x180)]=function(_0x1be745,_0x175e2d){return _0x1be745>_0x175e2d;};const _0xaa0e1d=_0x431692;if(!_0x3c593a)return null;try{logger[_0x314731(0x185)](_0xaa0e1d[_0x314731(0x17a)]);const _0x5956f3=_0x3c593a[_0x314731(0x16d)]||this[_0x314731(0x173)],_0x4a4a97=_0xaa0e1d[_0x314731(0x15f)](_0x3c593a['timeout']||this[_0x314731(0x1a1)],0x3e8),_0x278283=_0x3c593a[_0x314731(0x16f)],_0x2a99cc=_0x3c593a['resultUrl'];if(_0xaa0e1d[_0x314731(0x178)](!_0x2a99cc,!_0x278283))return null;let _0x586541=null;const _0x37d460=Date[_0x314731(0x16b)]();while(_0x2a99cc&&_0xaa0e1d[_0x314731(0x198)](_0xaa0e1d[_0x314731(0x181)](Date[_0x314731(0x16b)](),_0x37d460),_0x4a4a97)){logger['debug'](_0x314731(0x176)+_0x2a99cc);const _0x287371=await RequestUtils[_0x314731(0x17e)](_0x2a99cc);logger[_0x314731(0x185)](_0x314731(0x19e)+JSON['stringify'](_0x287371)),this[_0x314731(0x199)]+=0x1;if(_0x287371&&_0x287371[_0x314731(0x182)]){_0x586541=_0x287371['tests'];break;}await new Promise(_0x33c345=>setTimeout(_0x33c345,_0x5956f3*0x3e8)),logger[_0x314731(0x185)](_0x314731(0x18a)+_0x5956f3+_0x314731(0x184));}if(_0xaa0e1d['zgIAk'](!_0x586541,_0x278283)){logger[_0x314731(0x185)](_0xaa0e1d[_0x314731(0x19c)]);const _0x4b09b3=await RequestUtils[_0x314731(0x17e)](_0x278283);_0x4b09b3&&_0x4b09b3[_0x314731(0x182)]&&(_0x586541=_0x4b09b3['tests']);}if(_0x586541&&_0xaa0e1d[_0x314731(0x180)](_0x586541[_0x314731(0x1a2)],0x0))return _0x586541['map'](_0xeba4d8=>_0xeba4d8['filePath']);return null;}catch(_0xaca2f){return logger[_0x314731(0x185)](_0x314731(0x164)+(_0xaca2f[_0x314731(0x17b)]||_0xaca2f['toString']())),null;}}[a144_0x295b9c(0x186)](){const _0x41ae35=a144_0x295b9c,_0x43b83d={'BaEHx':function(_0x38ff47,_0x17376e){return _0x38ff47(_0x17376e);}},_0x20381a=_0x43b83d[_0x41ae35(0x187)](require,'os');try{return{'hostname':_0x20381a[_0x41ae35(0x177)](),'platform':_0x20381a['platform'](),'release':_0x20381a[_0x41ae35(0x190)](),'arch':_0x20381a[_0x41ae35(0x19a)](),'totalmem':_0x20381a['totalmem'](),'freemem':_0x20381a[_0x41ae35(0x19d)]()};}catch(_0x23c88a){return{};}}}module[a144_0x295b9c(0x166)]=TestOrderingServerHandler;
1
+ function a144_0x2ad8(){const _0x1d06ee=['77tmXPTT','568136JHJnLC','resultUrl','[processSplitTestsResponse]\x20Processing\x20response:\x20','_getHostInfo',',\x20timeoutUrl:\x20','filePath','7556600CVFmak','now','[processSplitTestsResponse]\x20Received\x20null\x20value(s)\x20for\x20some\x20attributes\x20in\x20split\x20tests\x20API\x20response','exports','timeoutInterval','timeoutUrl','hostname','cypbY','stack','tests','uVJMj','IPqdM','map','timeout','IVbdx','BROWSERSTACK_BUILD_RUN_IDENTIFIER','KlupL','hljGF','[getOrderedTestFiles]\x20Response\x20from\x20result\x20URL:\x20','splitTestsAPICallCount','NtmoO','\x20seconds.','getSplitFiles','[splitTests]\x20Exception\x20in\x20sending\x20test\x20files:\x20','zSkcq',',\x20timeoutInterval:\x20','BROWSERSTACK_NODE_INDEX','18110GPwEuX','processSplitTestsResponse','winstonLogger','body','../logger','env','./requestUtils','711cqqChP','7563672HSCcHj','11982TmJkjy','[splitTests]\x20Response\x20from\x20split\x20tests\x20API:\x20','arch','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL:\x20','defaultTimeout','[getOrderedTestFiles]\x20Fetching\x20ordered\x20test\x20files','stringify','JDoaP','476ThIPdg','getOrderedTestFiles','[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20timeout\x20URL','188450hVzcxO','toString','projectName','216546egCSPs','config','getSplitTestsAPICallCount','release','length','defaultTimeoutInterval','34efmveG','BROWSERSTACK_TOTAL_NODE_COUNT','debug','splitTests'];a144_0x2ad8=function(){return _0x1d06ee;};return a144_0x2ad8();}function a144_0x3d47(_0x425cf0,_0x316ac1){const _0x2ad821=a144_0x2ad8();return a144_0x3d47=function(_0x3d47ab,_0x376e80){_0x3d47ab=_0x3d47ab-0x140;let _0x41e247=_0x2ad821[_0x3d47ab];return _0x41e247;},a144_0x3d47(_0x425cf0,_0x316ac1);}const a144_0x22c79d=a144_0x3d47;(function(_0x56297b,_0x109929){const _0x1f0164=a144_0x3d47,_0x458d39=_0x56297b();while(!![]){try{const _0x3c9532=parseInt(_0x1f0164(0x17e))/0x1*(parseInt(_0x1f0164(0x161))/0x2)+parseInt(_0x1f0164(0x16a))/0x3*(-parseInt(_0x1f0164(0x172))/0x4)+parseInt(_0x1f0164(0x146))/0x5+-parseInt(_0x1f0164(0x169))/0x6+parseInt(_0x1f0164(0x182))/0x7*(-parseInt(_0x1f0164(0x140))/0x8)+parseInt(_0x1f0164(0x168))/0x9*(parseInt(_0x1f0164(0x175))/0xa)+-parseInt(_0x1f0164(0x178))/0xb;if(_0x3c9532===_0x109929)break;else _0x458d39['push'](_0x458d39['shift']());}catch(_0x1f0361){_0x458d39['push'](_0x458d39['shift']());}}}(a144_0x2ad8,0xbc466));const logger=require(a144_0x22c79d(0x165))[a144_0x22c79d(0x163)],RequestUtils=require(a144_0x22c79d(0x167));class TestOrderingServerHandler{constructor(_0x203e79){const _0x218c7a=a144_0x22c79d;this[_0x218c7a(0x179)]=_0x203e79,this['splitTestsAPICallCount']=0x0,this['defaultTimeout']=0x3c,this[_0x218c7a(0x17d)]=0x5;}[a144_0x22c79d(0x17a)](){return this['splitTestsAPICallCount'];}[a144_0x22c79d(0x162)](_0x3f7d9b){const _0x1ac3a9=a144_0x22c79d,_0x308906={};_0x308906['IVbdx']=_0x1ac3a9(0x148);const _0x5acccc=_0x308906;if(!_0x3f7d9b)return null;const _0xbef95b={};return _0xbef95b[_0x1ac3a9(0x153)]=_0x3f7d9b[_0x1ac3a9(0x153)]||this['defaultTimeout'],_0xbef95b['timeoutInterval']=_0x3f7d9b[_0x1ac3a9(0x14a)]||this[_0x1ac3a9(0x17d)],_0xbef95b[_0x1ac3a9(0x141)]=_0x3f7d9b[_0x1ac3a9(0x141)],_0xbef95b[_0x1ac3a9(0x14b)]=_0x3f7d9b['timeoutUrl'],logger[_0x1ac3a9(0x180)](_0x1ac3a9(0x142)+JSON[_0x1ac3a9(0x170)](_0x3f7d9b)),logger[_0x1ac3a9(0x180)]('[processSplitTestsResponse]\x20timeout:\x20'+_0x3f7d9b[_0x1ac3a9(0x153)]+_0x1ac3a9(0x15f)+_0x3f7d9b[_0x1ac3a9(0x14a)]+',\x20resultUrl:\x20'+_0x3f7d9b['resultUrl']+_0x1ac3a9(0x144)+_0x3f7d9b['timeoutUrl']),(!_0x3f7d9b[_0x1ac3a9(0x153)]||!_0x3f7d9b[_0x1ac3a9(0x14a)]||!_0x3f7d9b[_0x1ac3a9(0x14b)]||!_0x3f7d9b[_0x1ac3a9(0x141)])&&logger[_0x1ac3a9(0x180)](_0x5acccc[_0x1ac3a9(0x154)]),_0xbef95b;}async[a144_0x22c79d(0x181)](_0x1b578b,_0x3c20d9){const _0x37423f=a144_0x22c79d,_0xc9197f={'uVJMj':function(_0x2d8795,_0x49ba2a){return _0x2d8795(_0x49ba2a);}};try{const _0x247327=_0xc9197f[_0x37423f(0x150)](parseInt,process[_0x37423f(0x166)][_0x37423f(0x160)]||'0'),_0x31afb1=_0xc9197f['uVJMj'](parseInt,process['env'][_0x37423f(0x17f)]||'1'),_0x5dc84f=process[_0x37423f(0x166)][_0x37423f(0x155)],_0x3f2b3d={'nodeIndex':_0x247327,'totalNodes':_0x31afb1,'projectName':this[_0x37423f(0x179)][_0x37423f(0x177)],'buildName':this[_0x37423f(0x179)]['buildName'],'buildRunIdentifier':_0x5dc84f,'orchestrationStrategy':_0x3c20d9,'hostInfo':this[_0x37423f(0x143)](),'tests':_0x1b578b[_0x37423f(0x152)](_0x1c15c5=>({'filePath':_0x1c15c5}))},_0x5cffb3=await RequestUtils['postSplitFiles'](_0x3f2b3d);return logger[_0x37423f(0x180)](_0x37423f(0x16b)+JSON[_0x37423f(0x170)](_0x5cffb3)),this[_0x37423f(0x159)]+=0x1,this[_0x37423f(0x162)](_0x5cffb3[_0x37423f(0x164)]||{});}catch(_0x45c44b){return logger[_0x37423f(0x180)](_0x37423f(0x15d)+(_0x45c44b[_0x37423f(0x14e)]||_0x45c44b[_0x37423f(0x176)]())),null;}}async[a144_0x22c79d(0x173)](_0x2e4583){const _0x1d9776=a144_0x22c79d,_0x479ecc={};_0x479ecc['dOhFB']=_0x1d9776(0x16f),_0x479ecc[_0x1d9776(0x15e)]=function(_0x1f6193,_0x42feab){return _0x1f6193*_0x42feab;},_0x479ecc[_0x1d9776(0x157)]=function(_0x1c5151,_0xc948d3){return _0x1c5151&&_0xc948d3;},_0x479ecc[_0x1d9776(0x151)]=function(_0x5b0b6c,_0x4c7ad7){return _0x5b0b6c<_0x4c7ad7;},_0x479ecc[_0x1d9776(0x156)]=function(_0x591611,_0x5d5abc){return _0x591611-_0x5d5abc;},_0x479ecc[_0x1d9776(0x171)]=_0x1d9776(0x174),_0x479ecc[_0x1d9776(0x15a)]=function(_0x2506b7,_0x3b9be5){return _0x2506b7>_0x3b9be5;};const _0x4c89b8=_0x479ecc;if(!_0x2e4583)return null;try{logger['debug'](_0x4c89b8['dOhFB']);const _0x55698a=_0x2e4583[_0x1d9776(0x14a)]||this['defaultTimeoutInterval'],_0x1dceab=_0x4c89b8['zSkcq'](_0x2e4583[_0x1d9776(0x153)]||this[_0x1d9776(0x16e)],0x3e8),_0x1fe0c0=_0x2e4583[_0x1d9776(0x14b)],_0x34edcb=_0x2e4583[_0x1d9776(0x141)];if(_0x4c89b8[_0x1d9776(0x157)](!_0x34edcb,!_0x1fe0c0))return null;let _0x4538b1=null;const _0x1b64a5=Date[_0x1d9776(0x147)]();while(_0x34edcb&&_0x4c89b8[_0x1d9776(0x151)](_0x4c89b8[_0x1d9776(0x156)](Date['now'](),_0x1b64a5),_0x1dceab)){logger[_0x1d9776(0x180)](_0x1d9776(0x16d)+_0x34edcb);const _0x3e1507=await RequestUtils[_0x1d9776(0x15c)](_0x34edcb);logger['debug'](_0x1d9776(0x158)+JSON[_0x1d9776(0x170)](_0x3e1507)),this[_0x1d9776(0x159)]+=0x1;if(_0x3e1507&&_0x3e1507[_0x1d9776(0x14f)]){_0x4538b1=_0x3e1507[_0x1d9776(0x14f)];break;}await new Promise(_0x21b5bf=>setTimeout(_0x21b5bf,_0x55698a*0x3e8)),logger['debug']('[getOrderedTestFiles]\x20Fetching\x20ordered\x20tests\x20from\x20result\x20URL\x20after\x20waiting\x20for\x20'+_0x55698a+_0x1d9776(0x15b));}if(_0x4c89b8[_0x1d9776(0x157)](!_0x4538b1,_0x1fe0c0)){logger['debug'](_0x4c89b8[_0x1d9776(0x171)]);const _0x31b961=await RequestUtils['getSplitFiles'](_0x1fe0c0);_0x31b961&&_0x31b961[_0x1d9776(0x14f)]&&(_0x4538b1=_0x31b961['tests']);}if(_0x4538b1&&_0x4c89b8[_0x1d9776(0x15a)](_0x4538b1[_0x1d9776(0x17c)],0x0))return _0x4538b1[_0x1d9776(0x152)](_0x2b518c=>_0x2b518c[_0x1d9776(0x145)]);return null;}catch(_0x1b78df){return logger[_0x1d9776(0x180)]('[getOrderedTestFiles]\x20Exception\x20in\x20fetching\x20ordered\x20test\x20files:\x20'+(_0x1b78df['stack']||_0x1b78df[_0x1d9776(0x176)]())),null;}}['_getHostInfo'](){const _0x27e328=a144_0x22c79d,_0x4e8f58={'cypbY':function(_0x169688,_0x6141fd){return _0x169688(_0x6141fd);}},_0x471bf4=_0x4e8f58[_0x27e328(0x14d)](require,'os');try{return{'hostname':_0x471bf4[_0x27e328(0x14c)](),'platform':_0x471bf4['platform'](),'release':_0x471bf4[_0x27e328(0x17b)](),'arch':_0x471bf4[_0x27e328(0x16c)](),'totalmem':_0x471bf4['totalmem'](),'freemem':_0x471bf4['freemem']()};}catch(_0xd012e){return{};}}}module[a144_0x22c79d(0x149)]=TestOrderingServerHandler;
@@ -1 +1 @@
1
- var a145_0x32b8cd=a145_0x5b74;(function(_0x500bbc,_0x2821be){var _0x5bcd92=a145_0x5b74,_0x4b410b=_0x500bbc();while(!![]){try{var _0x58a764=-parseInt(_0x5bcd92(0x126))/0x1+parseInt(_0x5bcd92(0x122))/0x2*(-parseInt(_0x5bcd92(0x127))/0x3)+-parseInt(_0x5bcd92(0x12b))/0x4*(parseInt(_0x5bcd92(0x131))/0x5)+parseInt(_0x5bcd92(0x13b))/0x6*(parseInt(_0x5bcd92(0x133))/0x7)+-parseInt(_0x5bcd92(0x12e))/0x8+parseInt(_0x5bcd92(0x136))/0x9+parseInt(_0x5bcd92(0x12c))/0xa*(parseInt(_0x5bcd92(0x128))/0xb);if(_0x58a764===_0x2821be)break;else _0x4b410b['push'](_0x4b410b['shift']());}catch(_0x43b85f){_0x4b410b['push'](_0x4b410b['shift']());}}}(a145_0x5bf2,0xc42c9));var a145_0x412b6a={};function a145_0x5b74(_0x1b22fb,_0x47e209){var _0x5bf268=a145_0x5bf2();return a145_0x5b74=function(_0x5b7406,_0x426bb9){_0x5b7406=_0x5b7406-0x121;var _0x57b35e=_0x5bf268[_0x5b7406];return _0x57b35e;},a145_0x5b74(_0x1b22fb,_0x47e209);}function a145_0x5bf2(){var _0xc6e3d=['api/v2/builds','5fLzAaM','TestFinished','410291CCTRyg','OBSERVABILITY','ACCESS_DENIED','6179067mFdUVg','CBTSessionCreated','TESTHUB_BUILD_API','BROWSERSTACK_TESTHUB_UUID','DEPRECATED','24UfpLSS','HookFinished','ERROR_INVALID_CREDENTIALS','ACCESSIBILITY','BROWSERSTACK_TESTHUB_JWT','TestStarted','ERROR_SDK_DEPRECATED','314ZXnHlA','ERROR_ACCESS_DENIED','observability','TestRunStarted','1428536YAEQGG','15087fWbyPo','32593451HvCDXw','EVENT','TestRunSkipped','874364XBEebi','10MvJPRO','INVALID_CREDENTIALS','5150776tNQWiz','LogCreated'];a145_0x5bf2=function(){return _0xc6e3d;};return a145_0x5bf2();}a145_0x412b6a[a145_0x32b8cd(0x12d)]=a145_0x32b8cd(0x13d),a145_0x412b6a[a145_0x32b8cd(0x13a)]=a145_0x32b8cd(0x121),a145_0x412b6a[a145_0x32b8cd(0x135)]=a145_0x32b8cd(0x123);var a145_0x33252b={};a145_0x33252b[a145_0x32b8cd(0x140)]=a145_0x32b8cd(0x125),a145_0x33252b[a145_0x32b8cd(0x132)]='TestRunFinished',a145_0x33252b['TestSkipped']=a145_0x32b8cd(0x12a),a145_0x33252b[a145_0x32b8cd(0x12f)]='LogCreated',a145_0x33252b['HookStarted']='HookRunStarted',a145_0x33252b[a145_0x32b8cd(0x13c)]='HookRunFinished',a145_0x33252b[a145_0x32b8cd(0x137)]=a145_0x32b8cd(0x137);var a145_0x40b33a={};a145_0x40b33a[a145_0x32b8cd(0x139)]=a145_0x32b8cd(0x139),a145_0x40b33a[a145_0x32b8cd(0x13f)]=a145_0x32b8cd(0x13f);var a145_0x5d7729={};a145_0x5d7729[a145_0x32b8cd(0x138)]=a145_0x32b8cd(0x130),a145_0x5d7729[a145_0x32b8cd(0x13e)]='accessibility',a145_0x5d7729[a145_0x32b8cd(0x134)]=a145_0x32b8cd(0x124),a145_0x5d7729['ERROR']=a145_0x412b6a,a145_0x5d7729[a145_0x32b8cd(0x129)]=a145_0x33252b,a145_0x5d7729['ENV_VAR']=a145_0x40b33a,module['exports']=a145_0x5d7729;
1
+ var a145_0x64c2f4=a145_0x4789;(function(_0x21ec13,_0x4b5269){var _0x5bcc6f=a145_0x4789,_0x4721e0=_0x21ec13();while(!![]){try{var _0x5c0b9d=parseInt(_0x5bcc6f(0x158))/0x1+parseInt(_0x5bcc6f(0x14b))/0x2*(-parseInt(_0x5bcc6f(0x14d))/0x3)+-parseInt(_0x5bcc6f(0x15b))/0x4*(-parseInt(_0x5bcc6f(0x166))/0x5)+-parseInt(_0x5bcc6f(0x165))/0x6*(-parseInt(_0x5bcc6f(0x156))/0x7)+-parseInt(_0x5bcc6f(0x169))/0x8+-parseInt(_0x5bcc6f(0x152))/0x9*(-parseInt(_0x5bcc6f(0x14a))/0xa)+-parseInt(_0x5bcc6f(0x15e))/0xb*(-parseInt(_0x5bcc6f(0x14c))/0xc);if(_0x5c0b9d===_0x4b5269)break;else _0x4721e0['push'](_0x4721e0['shift']());}catch(_0x279702){_0x4721e0['push'](_0x4721e0['shift']());}}}(a145_0x51ab,0xb6ed4));var a145_0x48b0c5={};a145_0x48b0c5[a145_0x64c2f4(0x155)]=a145_0x64c2f4(0x15f),a145_0x48b0c5['DEPRECATED']='ERROR_SDK_DEPRECATED',a145_0x48b0c5[a145_0x64c2f4(0x159)]='ERROR_ACCESS_DENIED';var a145_0x20d47f={};function a145_0x4789(_0x1a12ac,_0x268a38){var _0x51ab33=a145_0x51ab();return a145_0x4789=function(_0x478944,_0xe6c99f){_0x478944=_0x478944-0x149;var _0x61b87e=_0x51ab33[_0x478944];return _0x61b87e;},a145_0x4789(_0x1a12ac,_0x268a38);}function a145_0x51ab(){var _0x412608=['HookStarted','ERROR','HookRunFinished','TestStarted','234DuXpvr','api/v2/builds','TestSkipped','INVALID_CREDENTIALS','14NIzntk','ENV_VAR','463605bsGJkk','ACCESS_DENIED','CBTSessionCreated','4mYUaJa','OBSERVABILITY','BROWSERSTACK_TESTHUB_JWT','11lVzAnO','ERROR_INVALID_CREDENTIALS','TESTHUB_BUILD_API','BROWSERSTACK_TESTHUB_UUID','ACCESSIBILITY','LogCreated','TestRunStarted','1591686dbcxpP','988565bGWVLz','HookFinished','accessibility','3660424gsLzCj','TestRunSkipped','531700yZExbx','979604Nqubwp','1223124ENgjgM','9miXFXf'];a145_0x51ab=function(){return _0x412608;};return a145_0x51ab();}a145_0x20d47f[a145_0x64c2f4(0x151)]=a145_0x64c2f4(0x164),a145_0x20d47f['TestFinished']='TestRunFinished',a145_0x20d47f[a145_0x64c2f4(0x154)]=a145_0x64c2f4(0x149),a145_0x20d47f[a145_0x64c2f4(0x163)]=a145_0x64c2f4(0x163),a145_0x20d47f[a145_0x64c2f4(0x14e)]='HookRunStarted',a145_0x20d47f[a145_0x64c2f4(0x167)]=a145_0x64c2f4(0x150),a145_0x20d47f[a145_0x64c2f4(0x15a)]='CBTSessionCreated';var a145_0x49549d={};a145_0x49549d[a145_0x64c2f4(0x161)]=a145_0x64c2f4(0x161),a145_0x49549d['BROWSERSTACK_TESTHUB_JWT']=a145_0x64c2f4(0x15d);var a145_0x219d38={};a145_0x219d38[a145_0x64c2f4(0x160)]=a145_0x64c2f4(0x153),a145_0x219d38[a145_0x64c2f4(0x162)]=a145_0x64c2f4(0x168),a145_0x219d38[a145_0x64c2f4(0x15c)]='observability',a145_0x219d38[a145_0x64c2f4(0x14f)]=a145_0x48b0c5,a145_0x219d38['EVENT']=a145_0x20d47f,a145_0x219d38[a145_0x64c2f4(0x157)]=a145_0x49549d,module['exports']=a145_0x219d38;
@@ -1 +1 @@
1
- const a146_0x53ca09=a146_0x31a2;function a146_0x2327(){const _0x261759=['EOfUx','scannerProcessingTimeout','FQMeJ','percy','40408XAjjML','uploadPending','buildStopSent','ENV_VAR','response','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','../test-observability/requestQueueHandler.js','push','allowScreenshot','START','setTestObservabilityVariables','getInstance','resolve','Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','91jrmaNU','stringify','getProductMapForBuildStartCall','accessibility','framework','ACCESSIBILITY','fdbTq','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','status','FCICC','Percy\x20is\x20not\x20supported\x20for\x20','getHostInfo','getUserName','username','../performance/constants','OBSERVABILITY','buildDescription','stop','getCentralUser','BS_TESTOPS_BUILD_COMPLETED','ChyMz','BROWSERSTACK_TEST_OBSERVABILITY','2098325gYiLCv','getAccessibilityValueFromYml','zHLSp','POST','BROWSERSTACK_CENTRAL_SCANNER_JWT','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','env','util','assign','error','Error\x20while\x20waiting\x20for\x20events:\x20','All\x20trace\x20zip\x20send\x20events\x20complete','vOxMG','BROWSERSTACK_PRODUCT_MAP','oyDNc','waitForBuildStatus','Testhub\x20started\x20with\x20id:\x20','BROWSERSTACK_TEST_ACCESSIBILITY_SCRIPT_TIMEOUT','\x20framework','projectName','IQXCH','116GEgUmr','isAccessibilityEnabled','processTraceZips','isBrowserstackInfra','central_scanner','PERCY_SUPPORTED_FRAMEWORKS','buildHashedId','message','Rwdhv','TESTHUB_BUILD_API','HDREf','14619ZSpagN','winstonLogger','checkAndSetupPercy','PMwlU','measureWrapper','../helper.js','8fjtxXx','BROWSERSTACK_CENTRAL_SCANNER_JOBID','../helper','weEeF','finished_metadata','20820264SnVrXZ','xWSuX','authToken','reTEz','vnSwL','api/v1/builds/','BROWSERSTACK_ACCESSIBILITY','debug','data','false','2329137ntsdYm','config','awoBO','hbpPv','true','14vgCjBr','qVVvZ','../../bin/playwright/reporter/pwUtils.js','generateBuildUpstreamData','11yNgFYX','buildName','settings','extractDataFromResponse','user_killed','getGitMetaData','statusText','accessibilityOptions','BROWSERSTACK_BUILD_RUN_IDENTIFIER','AJYlv','WaEGC','logBuildError','BRPZy','odUtd','BROWSERSTACK_TESTHUB_UUID','LzyAX','allSettled','add','stopBuildUpstream\x20event\x20successful!','getAccessibilityOptions','EEaeZ','buildIdentifier','BROWSERSTACK_LINKED_BUILD_UUID','setTestHubCommonMetaInfo','157530KAScuL','642000BxXYhC','../../bin/v2/browserstackCLI','getFrameworkDetails','auth','../performance/performance-tester.js','csiCv','success','path','MYoQH','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER','xKWqV','password','launchBuild','toISOString','includeEncodedExtension','forEach','../../bin/playwright/reporter/test-details.js','aphIy','getConfig','job_id','Generating\x20build\x20upstream\x20data\x20for\x20TestHub','VOCkR','BROWSERSTACK_TESTHUB_JWT','setAccessibilityVariables'];a146_0x2327=function(){return _0x261759;};return a146_0x2327();}function a146_0x31a2(_0x26f180,_0x5b9aa7){const _0x2327b0=a146_0x2327();return a146_0x31a2=function(_0x31a2fc,_0x133c34){_0x31a2fc=_0x31a2fc-0x1e5;let _0x1cff88=_0x2327b0[_0x31a2fc];return _0x1cff88;},a146_0x31a2(_0x26f180,_0x5b9aa7);}(function(_0x5d5ad9,_0x11d855){const _0xbf4841=a146_0x31a2,_0x3cf38f=_0x5d5ad9();while(!![]){try{const _0x1128a=-parseInt(_0xbf4841(0x211))/0x1*(-parseInt(_0xbf4841(0x24a))/0x2)+parseInt(_0xbf4841(0x1f7))/0x3*(-parseInt(_0xbf4841(0x1ec))/0x4)+-parseInt(_0xbf4841(0x26e))/0x5+-parseInt(_0xbf4841(0x22d))/0x6*(parseInt(_0xbf4841(0x258))/0x7)+parseInt(_0xbf4841(0x1fd))/0x8*(-parseInt(_0xbf4841(0x20c))/0x9)+parseInt(_0xbf4841(0x22e))/0xa+-parseInt(_0xbf4841(0x215))/0xb*(-parseInt(_0xbf4841(0x202))/0xc);if(_0x1128a===_0x11d855)break;else _0x3cf38f['push'](_0x3cf38f['shift']());}catch(_0x2d1bdf){_0x3cf38f['push'](_0x3cf38f['shift']());}}}(a146_0x2327,0xe0d9c));const bsSetupHelper=require(a146_0x53ca09(0x1ff)),path=require(a146_0x53ca09(0x235)),util=require(a146_0x53ca09(0x275)),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require('../test-observability/utils'),testhubUtils=require('./utils.js'),testHubConstants=require('./constants.js'),constants=require('../../bin/utils/constants.js'),RequestQueueHandler=require(a146_0x53ca09(0x250)),logger=require('../logger')[a146_0x53ca09(0x1f8)],SessionHandler=require('../test-observability/sessionHandler.js'),PerformanceTester=require(a146_0x53ca09(0x232)),{TESTHUB_EVENTS:PerformanceEvents}=require(a146_0x53ca09(0x266)),TestDetails=require(a146_0x53ca09(0x23e)),{uploadTraceZip}=require(a146_0x53ca09(0x213)),{isTurboScaleSession}=require(a146_0x53ca09(0x1fc)),BrowserstackCLI=require(a146_0x53ca09(0x22f)),OngoingEvents=new Set();let processedTraceZips=![];const addEvent=_0x2aad89=>{const _0xb19df4=a146_0x53ca09;OngoingEvents[_0xb19df4(0x226)](_0x2aad89);},awaitAllEvents=async()=>{const _0x179256=a146_0x53ca09;return Promise[_0x179256(0x225)](OngoingEvents);};class TestHubHandler{static ['buildStopSent']=![];static async[a146_0x53ca09(0x23a)](_0x9d25fa,_0x132b5c){const _0x300b3a=a146_0x53ca09,_0x5d20bc={'aphIy':function(_0xa083,_0x235ff6){return _0xa083||_0x235ff6;},'vnSwL':function(_0x368848,_0xb7103e){return _0x368848||_0xb7103e;},'awoBO':function(_0x110670,_0x57f47d){return _0x110670===_0x57f47d;},'pEuDm':function(_0x44e52c){return _0x44e52c();},'EOfUx':_0x300b3a(0x24f),'lyazH':_0x300b3a(0x20b),'odUtd':_0x300b3a(0x257),'VOCkR':function(_0x1a3629,_0x52dbd3,_0x5b4155,_0x109691,_0x5532b3){return _0x1a3629(_0x52dbd3,_0x5b4155,_0x109691,_0x5532b3);},'xWSuX':_0x300b3a(0x271),'weEeF':'accessibility','PMwlU':_0x300b3a(0x210),'EEaeZ':_0x300b3a(0x247)};await PerformanceTester[_0x300b3a(0x1fb)](PerformanceEvents[_0x300b3a(0x253)],async()=>{const _0x2f2c91=_0x300b3a,_0x451a4c=Object[_0x2f2c91(0x276)]({},_0x132b5c[_0x2f2c91(0x20d)],{'root_dir_path':'','framework':_0x132b5c[_0x2f2c91(0x25c)]}),_0x458e19=bsSetupHelper[_0x2f2c91(0x264)](_0x451a4c),_0x312f9c=bsSetupHelper['getAccessKey'](_0x451a4c),_0x5a2aed=_0x5d20bc[_0x2f2c91(0x23f)](_0x458e19,'')+':'+_0x5d20bc[_0x2f2c91(0x206)](_0x312f9c,'');if(_0x5d20bc[_0x2f2c91(0x20e)](_0x5a2aed,':'))return _0x5d20bc['pEuDm'](isTestObservabilitySession)&&(logger[_0x2f2c91(0x209)](_0x5d20bc[_0x2f2c91(0x246)]),process['env'][_0x2f2c91(0x26b)]=_0x5d20bc['lyazH']),testhubUtils['isAccessibilityEnabled'](_0x451a4c)&&logger[_0x2f2c91(0x209)](_0x5d20bc[_0x2f2c91(0x222)]),[null,null];try{const _0x14cc87=await this[_0x2f2c91(0x214)](_0x451a4c,_0x9d25fa),_0x110b0e=this[_0x2f2c91(0x240)](_0x458e19,_0x312f9c),_0x57b207=await _0x5d20bc[_0x2f2c91(0x243)](nodeRequest,_0x5d20bc[_0x2f2c91(0x203)],testHubConstants[_0x2f2c91(0x1f5)],_0x14cc87,_0x110b0e),_0xe67d54=this[_0x2f2c91(0x218)](_0x451a4c,_0x57b207,_0x110b0e);await this[_0x2f2c91(0x1f9)](_0x132b5c,_0x9d25fa);const _0x341603=testhubUtils['getProductMap'](_0x451a4c);process[_0x2f2c91(0x274)][_0x2f2c91(0x27b)]=JSON[_0x2f2c91(0x259)](_0x341603);if(_0x5d20bc[_0x2f2c91(0x20e)](testhubUtils[_0x2f2c91(0x26f)](_0x132b5c[_0x2f2c91(0x20d)]),null)){const _0x165b4c=_0xe67d54[_0x5d20bc[_0x2f2c91(0x200)]];_0x165b4c&&_0x165b4c[_0x2f2c91(0x204)]&&_0x165b4c[_0x2f2c91(0x1f2)]&&(_0x132b5c['config'][_0x2f2c91(0x25b)]=!![],process[_0x2f2c91(0x274)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM']=_0x5d20bc[_0x2f2c91(0x1fa)]);}return _0xe67d54&&_0xe67d54[_0x5d20bc[_0x2f2c91(0x200)]]&&_0xe67d54[_0x5d20bc[_0x2f2c91(0x200)]][_0x5d20bc[_0x2f2c91(0x229)]]&&(process[_0x2f2c91(0x274)][_0x2f2c91(0x1e8)]=_0xe67d54[_0x5d20bc[_0x2f2c91(0x200)]][_0x5d20bc[_0x2f2c91(0x229)]]),_0xe67d54;}catch(_0x210129){_0x5d20bc[_0x2f2c91(0x20e)](_0x210129[_0x2f2c91(0x234)],![])&&testhubUtils[_0x2f2c91(0x220)](_0x210129);throw _0x210129;}})();}static async[a146_0x53ca09(0x1ee)](){const _0x4fa9f0=a146_0x53ca09,_0xacae8f={'hbpPv':function(_0x29b339,_0x596b66,_0x19b6d0){return _0x29b339(_0x596b66,_0x19b6d0);},'IQXCH':function(_0x4554e6,_0x11516d){return _0x4554e6(_0x11516d);},'csiCv':function(_0x2ce550){return _0x2ce550();},'vOxMG':_0x4fa9f0(0x279)};if(processedTraceZips)return;const _0x76fc56=TestDetails['getTraceFilePaths']();_0x76fc56[_0x4fa9f0(0x23d)](({testUId:_0x2d12bc,filePath:_0x113d5f})=>{const _0x332d2a=_0x4fa9f0;var _0x2b571d=_0xacae8f[_0x332d2a(0x20f)](uploadTraceZip,_0x113d5f,_0x2d12bc);_0xacae8f[_0x332d2a(0x1eb)](addEvent,_0x2b571d);});try{await _0xacae8f[_0x4fa9f0(0x233)](awaitAllEvents),logger[_0x4fa9f0(0x209)](_0xacae8f[_0x4fa9f0(0x27a)]),processedTraceZips=!![];}catch(_0x152cd9){logger[_0x4fa9f0(0x277)](_0x4fa9f0(0x278)+util['format'](_0x152cd9));}}static async['checkAndSetupPercy'](_0x1dd18a,_0x4bd04f){const _0x2722f6=a146_0x53ca09;if(constants[_0x2722f6(0x1f1)]['includes'](_0x4bd04f)){await _0x1dd18a['setupPercy']();return;}_0x1dd18a['config'][_0x2722f6(0x249)]&&logger[_0x2722f6(0x209)](_0x2722f6(0x262)+_0x4bd04f+_0x2722f6(0x1e9));}static[a146_0x53ca09(0x228)](_0x1261bb){const _0x1dae89=a146_0x53ca09,_0x4f9b3b={'zHLSp':function(_0xe8b3d7,_0x4c5bd0){return _0xe8b3d7(_0x4c5bd0);},'LzyAX':_0x1dae89(0x210)};let _0xb64484;if(_0x1261bb[_0x1dae89(0x21c)]){const _0x542d53={};_0x542d53[_0x1dae89(0x217)]=_0x1261bb['accessibilityOptions'],_0xb64484=_0x542d53;}else{const _0x2ba1f3={};_0x2ba1f3['settings']={},_0xb64484=_0x2ba1f3;}if((!bsSetupHelper['isBrowserstackInfra']()||_0x4f9b3b[_0x1dae89(0x270)](isTurboScaleSession,_0x1261bb))&&testhubUtils[_0x1dae89(0x1ed)](_0x1261bb)){const _0xde59d={};_0xde59d[_0x1dae89(0x23c)]=_0x4f9b3b[_0x1dae89(0x224)],Object[_0x1dae89(0x276)](_0xb64484[_0x1dae89(0x217)],_0xde59d);}return _0xb64484;}static[a146_0x53ca09(0x240)](_0x13fada,_0x2a092c){const _0x3dc129=a146_0x53ca09,_0x2d91dd={'HDREf':function(_0x3e41f8,_0x13505f){return _0x3e41f8(_0x13505f);}},_0x3fc3a8={};return _0x3fc3a8[_0x3dc129(0x265)]=_0x13fada,_0x3fc3a8[_0x3dc129(0x239)]=_0x2a092c,{'auth':_0x3fc3a8,'headers':_0x2d91dd[_0x3dc129(0x1f6)](getDefaultHeaders,![])};}static async['generateBuildUpstreamData'](_0x5ef8ba,_0x130e59){const _0x59a7ad=a146_0x53ca09,_0x36ddc1={'ABMvw':_0x59a7ad(0x242),'fdbTq':function(_0x3da6c7,_0x4aa276){return _0x3da6c7(_0x4aa276);}};logger['debug'](_0x36ddc1['ABMvw']);const _0x48bee0={'project_name':_0x5ef8ba[_0x59a7ad(0x1ea)]||'','name':_0x5ef8ba[_0x59a7ad(0x216)]||path['basename'](path[_0x59a7ad(0x256)](process['cwd']())),'build_identifier':_0x5ef8ba[_0x59a7ad(0x22a)],'description':_0x5ef8ba[_0x59a7ad(0x268)]||'','started_at':new Date()[_0x59a7ad(0x23b)](),'tags':_0x36ddc1[_0x59a7ad(0x25e)](getCustomTags,_0x5ef8ba),'host_info':bsSetupHelper[_0x59a7ad(0x263)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process['env'][_0x59a7ad(0x21d)],'failed_tests_rerun':process['env']['BROWSERSTACK_RERUN']||![],'linked_build_uuid':process['env'][_0x59a7ad(0x22b)]||'','version_control':await bsSetupHelper[_0x59a7ad(0x21a)](),'accessibility':this[_0x59a7ad(0x228)](_0x5ef8ba),'framework_details':testhubUtils[_0x59a7ad(0x230)](_0x5ef8ba,_0x130e59),'product_map':testhubUtils[_0x59a7ad(0x25a)](_0x5ef8ba),'browserstackAutomation':bsSetupHelper[_0x59a7ad(0x1ef)](),'grouping_identifier':process['env'][_0x59a7ad(0x237)],'test_orchestration':testhubUtils['getTestOrchestrationBuildStartData'](_0x5ef8ba)};if(bsSetupHelper[_0x59a7ad(0x26a)]()[_0x59a7ad(0x1f0)]||bsSetupHelper[_0x59a7ad(0x26a)]()['lcnc']){const _0x3a6c3f={};_0x3a6c3f[_0x59a7ad(0x241)]=process[_0x59a7ad(0x274)][_0x59a7ad(0x1fe)],_0x3a6c3f['token']=process[_0x59a7ad(0x274)][_0x59a7ad(0x272)],_0x48bee0['central_scanner']=_0x3a6c3f;}return _0x48bee0;}static[a146_0x53ca09(0x218)](_0x4f76a8,_0x3f96af,_0x3b216c){const _0x5859a7=a146_0x53ca09,_0x3e7ca9={'kkGaV':function(_0x37ac1e){return _0x37ac1e();},'BRPZy':function(_0x344928,_0x46df72){return _0x344928&&_0x46df72;},'WaEGC':_0x5859a7(0x210),'FCICC':_0x5859a7(0x20b),'Rwdhv':function(_0x50e0b0,_0x1a85f9){return _0x50e0b0&&_0x1a85f9;}},_0x32b32a={};if(_0x3e7ca9['kkGaV'](isTestObservabilitySession)){const [_0xbd088f,_0x2979d0,_0x226551]=testhubUtils[_0x5859a7(0x254)](_0x3f96af[_0x5859a7(0x20a)],_0x3b216c[_0x5859a7(0x231)]);if(_0x3e7ca9[_0x5859a7(0x221)](_0xbd088f,_0x2979d0)){const _0x3e44ce={};_0x3e44ce['jwt']=_0xbd088f,_0x3e44ce[_0x5859a7(0x1f2)]=_0x2979d0,_0x3e44ce[_0x5859a7(0x252)]=_0x226551,_0x32b32a[testHubConstants[_0x5859a7(0x267)]]=_0x3e44ce,process[_0x5859a7(0x274)][_0x5859a7(0x26d)]=_0x3e7ca9[_0x5859a7(0x21f)];}else _0x32b32a[testHubConstants[_0x5859a7(0x267)]]={},process[_0x5859a7(0x274)][_0x5859a7(0x26d)]=_0x3e7ca9[_0x5859a7(0x261)];}else process[_0x5859a7(0x274)][_0x5859a7(0x26d)]=_0x3e7ca9[_0x5859a7(0x261)];const [_0x112ee6,_0x12e917,_0x14831c]=testhubUtils[_0x5859a7(0x245)](_0x3f96af[_0x5859a7(0x20a)]);if(_0x3e7ca9[_0x5859a7(0x1f4)](_0x112ee6,_0x12e917)){const _0x270888={};_0x270888[_0x5859a7(0x204)]=_0x112ee6,_0x270888['buildHashedId']=_0x12e917,_0x270888[_0x5859a7(0x247)]=_0x14831c,_0x32b32a[testHubConstants[_0x5859a7(0x25d)]]=_0x270888,process[_0x5859a7(0x274)][_0x5859a7(0x208)]=_0x3e7ca9[_0x5859a7(0x21f)];}else _0x32b32a[testHubConstants['ACCESSIBILITY']]={},process[_0x5859a7(0x274)][_0x5859a7(0x208)]=_0x3e7ca9['FCICC'];return testhubUtils[_0x5859a7(0x22c)](_0x3f96af['data']),logger['info'](_0x5859a7(0x1e7)+process[_0x5859a7(0x274)][_0x5859a7(0x223)]),_0x32b32a;}static async[a146_0x53ca09(0x269)](_0x175641){const _0x34634a=a146_0x53ca09,_0x5ed4dc={'xFAeW':function(_0x1588ff,_0x21db0b){return _0x1588ff===_0x21db0b;},'FQMeJ':_0x34634a(0x20b),'xKWqV':function(_0x4324f5,_0x5eb98b){return _0x4324f5===_0x5eb98b;},'ChyMz':'null','SdMrm':'EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','reTEz':_0x34634a(0x277),'LvpGG':_0x34634a(0x273),'HHOXG':_0x34634a(0x201),'FRRxL':_0x34634a(0x219),'GLEOW':function(_0x5b1f88){return _0x5b1f88();},'AJYlv':function(_0x106007,_0x39d76f,_0x2dfc37,_0x4b68db,_0x2fc572,_0x2e43ca){return _0x106007(_0x39d76f,_0x2dfc37,_0x4b68db,_0x2fc572,_0x2e43ca);},'oyDNc':'PUT','MYoQH':_0x34634a(0x227),'qVVvZ':_0x34634a(0x234)};await PerformanceTester[_0x34634a(0x1fb)](PerformanceEvents['STOP'],async()=>{const _0x53cbf9=_0x34634a;if(_0x5ed4dc['xFAeW'](process[_0x53cbf9(0x274)][_0x53cbf9(0x26b)],_0x5ed4dc[_0x53cbf9(0x248)])||TestHubHandler[_0x53cbf9(0x24c)]||bsSetupHelper['isUndefined'](process[_0x53cbf9(0x274)][testHubConstants[_0x53cbf9(0x24d)][_0x53cbf9(0x244)]]))return;TestHubHandler[_0x53cbf9(0x24c)]=!![];if(BrowserstackCLI[_0x53cbf9(0x255)]()['isRunning']())return;await this[_0x53cbf9(0x1ee)](),await RequestQueueHandler['getInstance']()[_0x53cbf9(0x24b)](),await SessionHandler[_0x53cbf9(0x1e6)]();if(_0x5ed4dc[_0x53cbf9(0x238)](process['env'][testHubConstants[_0x53cbf9(0x24d)][_0x53cbf9(0x244)]],_0x5ed4dc[_0x53cbf9(0x26c)])||_0x5ed4dc[_0x53cbf9(0x238)](process[_0x53cbf9(0x274)][testHubConstants[_0x53cbf9(0x24d)][_0x53cbf9(0x223)]],_0x5ed4dc[_0x53cbf9(0x26c)])){logger[_0x53cbf9(0x209)](_0x5ed4dc['SdMrm']);const _0x293696={};return _0x293696[_0x53cbf9(0x260)]=_0x5ed4dc[_0x53cbf9(0x205)],_0x293696['message']=_0x5ed4dc['LvpGG'],_0x293696;}const _0x234a46={'finished_at':new Date()[_0x53cbf9(0x23b)](),'finished_metadata':[]};!!_0x175641&&_0x234a46[_0x5ed4dc['HHOXG']][_0x53cbf9(0x251)]({'reason':_0x5ed4dc['FRRxL'],'signal':_0x175641,'failure_data':''});const _0x13efef={'headers':_0x5ed4dc['GLEOW'](getDefaultHeaders)};try{const _0x1fe235=await _0x5ed4dc[_0x53cbf9(0x21e)](nodeRequest,_0x5ed4dc[_0x53cbf9(0x1e5)],_0x53cbf9(0x207)+process[_0x53cbf9(0x274)][testHubConstants[_0x53cbf9(0x24d)]['BROWSERSTACK_TESTHUB_UUID']]+'/stop',_0x234a46,_0x13efef,![]);if(_0x1fe235[_0x53cbf9(0x20a)]&&_0x1fe235[_0x53cbf9(0x20a)]['error']){const _0x5d325d={};_0x5d325d['message']=_0x1fe235[_0x53cbf9(0x20a)][_0x53cbf9(0x277)];throw _0x5d325d;}else{logger[_0x53cbf9(0x209)](_0x5ed4dc[_0x53cbf9(0x236)]);const _0xe3b691={};return _0xe3b691[_0x53cbf9(0x260)]=_0x5ed4dc[_0x53cbf9(0x212)],_0xe3b691[_0x53cbf9(0x1f3)]='',_0xe3b691;}}catch(_0x48dcbe){_0x48dcbe[_0x53cbf9(0x24e)]?logger[_0x53cbf9(0x209)](_0x53cbf9(0x25f)+_0x48dcbe['response'][_0x53cbf9(0x260)]+'\x20'+_0x48dcbe[_0x53cbf9(0x24e)][_0x53cbf9(0x21b)]+'\x20'+JSON[_0x53cbf9(0x259)](_0x48dcbe[_0x53cbf9(0x24e)][_0x53cbf9(0x20a)])):logger['debug']('EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20'+(_0x48dcbe['message']||_0x48dcbe));const _0x2bbc05={};return _0x2bbc05[_0x53cbf9(0x260)]=_0x5ed4dc[_0x53cbf9(0x205)],_0x2bbc05[_0x53cbf9(0x1f3)]=_0x48dcbe[_0x53cbf9(0x1f3)]||_0x48dcbe['response']?_0x48dcbe['response'][_0x53cbf9(0x260)]+':'+_0x48dcbe['response'][_0x53cbf9(0x21b)]:_0x48dcbe,_0x2bbc05;}})();}}module['exports']=TestHubHandler;
1
+ function a146_0x31e7(_0x506b4d,_0x9ddf83){const _0x187da2=a146_0x187d();return a146_0x31e7=function(_0x31e72a,_0x4f3939){_0x31e72a=_0x31e72a-0x13e;let _0x2ab499=_0x187da2[_0x31e72a];return _0x2ab499;},a146_0x31e7(_0x506b4d,_0x9ddf83);}const a146_0xf65e6e=a146_0x31e7;function a146_0x187d(){const _0x139301=['BROWSERSTACK_TESTHUB_JWT','winstonLogger','poUZg','processTraceZips','EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20','BROWSERSTACK_PRODUCT_MAP','setAccessibilityVariables','BROWSERSTACK_TESTHUB_UUID','COvFo','launchBuild','IbvpH','BsLVm','cwd','../test-observability/sessionHandler.js','./utils.js','41930DsILgD','BNRPh','accessibility','Generating\x20build\x20upstream\x20data\x20for\x20TestHub','./constants.js','env','xoKYP','wFsZj','true','YyHKC','../test-observability/requestQueueHandler.js','Percy\x20is\x20not\x20supported\x20for\x20','TESTHUB_BUILD_API','config','vjLNS','password','ebqrI','uRbic','wZahb','pOtYh','cQGEv','isUndefined','owqCb','push','BROWSERSTACK_BUILD_GROUPING_IDENTIFIER','data','measureWrapper','assign','Error\x20while\x20waiting\x20for\x20events:\x20','isAccessibilityEnabled','Ombwc','allowScreenshot','getAccessibilityOptions','NLagW','setTestHubCommonMetaInfo','BROWSERSTACK_ACCESSIBILITY','settings','BROWSERSTACK_LINKED_BUILD_UUID','HinGn','uploadPending','extractDataFromResponse','scannerProcessingTimeout','status','isBrowserstackInfra','accessibilityOptions','authToken','BROWSERSTACK_RERUN','LaMUp','QPyEz','path','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','includeEncodedExtension','617366jaeLJj','7015701TqRzls','stop','../helper.js','27jGCqhF','lcnc','api/v1/builds/','auth','debug','error','includes','getConfig','4071976iCpRIW','buildIdentifier','2189KAVtiS','getAccessibilityValueFromYml','skKFk','getTestOrchestrationBuildStartData','false','MSsqT','statusText','stringify','FsKiK','4975590eQBNCl','waitForBuildStatus','ejyPy','success','../helper','\x20framework','6RURAXv','dufma','VoqXQ','LkwRT','setupPercy','getFrameworkDetails','buildHashedId','BROWSERSTACK_CENTRAL_SCANNER_JWT','Qqxtn','742072HUSlny','message','user_killed','getTraceFilePaths','getCentralUser','PUT','getInstance','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','BROWSERSTACK_CENTRAL_SCANNER_JOBID','BS_TESTOPS_BUILD_COMPLETED','ACCESSIBILITY','checkAndSetupPercy','../test-observability/utils','resolve','hRkYB','response','buildDescription','ENV_VAR','forEach','DqoYt','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','logBuildError','fgrmR','projectName','buildStopSent','getHostInfo','UngvS','getGitMetaData','central_scanner','902092ZBqxzr','basename','6SXQxyH','POST','token','../logger','stopBuildUpstream\x20event\x20successful!','allSettled','gUWGR','OBSERVABILITY','toISOString','generateBuildUpstreamData','add'];a146_0x187d=function(){return _0x139301;};return a146_0x187d();}(function(_0x29a7b7,_0x25d61b){const _0x2eec2=a146_0x31e7,_0x59b039=_0x29a7b7();while(!![]){try{const _0x211d76=-parseInt(_0x2eec2(0x170))/0x1+-parseInt(_0x2eec2(0x1b3))/0x2*(parseInt(_0x2eec2(0x1b5))/0x3)+parseInt(_0x2eec2(0x17c))/0x4+parseInt(_0x2eec2(0x187))/0x5+-parseInt(_0x2eec2(0x18d))/0x6*(parseInt(_0x2eec2(0x171))/0x7)+-parseInt(_0x2eec2(0x196))/0x8*(-parseInt(_0x2eec2(0x174))/0x9)+-parseInt(_0x2eec2(0x1cf))/0xa*(-parseInt(_0x2eec2(0x17e))/0xb);if(_0x211d76===_0x25d61b)break;else _0x59b039['push'](_0x59b039['shift']());}catch(_0x5cd0eb){_0x59b039['push'](_0x59b039['shift']());}}}(a146_0x187d,0x937bf));const bsSetupHelper=require(a146_0xf65e6e(0x18b)),path=require(a146_0xf65e6e(0x16d)),util=require('util'),{getCustomTags,isTestObservabilitySession,getDefaultHeaders,nodeRequest}=require(a146_0xf65e6e(0x1a2)),testhubUtils=require(a146_0xf65e6e(0x1ce)),testHubConstants=require(a146_0xf65e6e(0x140)),constants=require('../../bin/utils/constants.js'),RequestQueueHandler=require(a146_0xf65e6e(0x146)),logger=require(a146_0xf65e6e(0x1b8))[a146_0xf65e6e(0x1c1)],SessionHandler=require(a146_0xf65e6e(0x1cd)),PerformanceTester=require('../performance/performance-tester.js'),{TESTHUB_EVENTS:PerformanceEvents}=require('../performance/constants'),TestDetails=require('../../bin/playwright/reporter/test-details.js'),{uploadTraceZip}=require('../../bin/playwright/reporter/pwUtils.js'),{isTurboScaleSession}=require(a146_0xf65e6e(0x173)),BrowserstackCLI=require('../../bin/v2/browserstackCLI'),OngoingEvents=new Set();let processedTraceZips=![];const addEvent=_0x264983=>{const _0x4f0555=a146_0xf65e6e;OngoingEvents[_0x4f0555(0x1bf)](_0x264983);},awaitAllEvents=async()=>{const _0x360691=a146_0xf65e6e;return Promise[_0x360691(0x1ba)](OngoingEvents);};class TestHubHandler{static [a146_0xf65e6e(0x1ae)]=![];static async[a146_0xf65e6e(0x1c9)](_0x4c9f40,_0x3f5a9a){const _0x4450f4=a146_0xf65e6e,_0x4f52c7={'MSsqT':function(_0x18ecef,_0x3aa151){return _0x18ecef||_0x3aa151;},'UngvS':function(_0x361050,_0x62008d){return _0x361050===_0x62008d;},'uRbic':function(_0x32ebd8){return _0x32ebd8();},'owqCb':_0x4450f4(0x16e),'VmrkN':_0x4450f4(0x182),'COvFo':'Exception\x20while\x20creating\x20test\x20run\x20for\x20BrowserStack\x20Accessibility\x20Automation:\x20Missing\x20authentication\x20token','poUZg':function(_0x10eebe,_0xe7b33e,_0x3cf097,_0x182967,_0x771ccf){return _0x10eebe(_0xe7b33e,_0x3cf097,_0x182967,_0x771ccf);},'KLJuA':_0x4450f4(0x1b6),'LaMUp':_0x4450f4(0x13e),'ZktBq':'true','hRkYB':_0x4450f4(0x165)};await PerformanceTester['measureWrapper'](PerformanceEvents['START'],async()=>{const _0x357e9a=_0x4450f4,_0x2b1534=Object[_0x357e9a(0x157)]({},_0x3f5a9a[_0x357e9a(0x149)],{'root_dir_path':'','framework':_0x3f5a9a['framework']}),_0x1ba21f=bsSetupHelper['getUserName'](_0x2b1534),_0x4eb0ee=bsSetupHelper['getAccessKey'](_0x2b1534),_0x22dc77=_0x4f52c7[_0x357e9a(0x183)](_0x1ba21f,'')+':'+_0x4f52c7['MSsqT'](_0x4eb0ee,'');if(_0x4f52c7['UngvS'](_0x22dc77,':'))return _0x4f52c7[_0x357e9a(0x14d)](isTestObservabilitySession)&&(logger[_0x357e9a(0x178)](_0x4f52c7[_0x357e9a(0x152)]),process[_0x357e9a(0x141)][_0x357e9a(0x19f)]=_0x4f52c7['VmrkN']),testhubUtils[_0x357e9a(0x159)](_0x2b1534)&&logger[_0x357e9a(0x178)](_0x4f52c7[_0x357e9a(0x1c8)]),[null,null];try{const _0x18458e=await this[_0x357e9a(0x1be)](_0x2b1534,_0x4c9f40),_0x27380a=this['getConfig'](_0x1ba21f,_0x4eb0ee),_0x334c40=await _0x4f52c7[_0x357e9a(0x1c2)](nodeRequest,_0x4f52c7['KLJuA'],testHubConstants[_0x357e9a(0x148)],_0x18458e,_0x27380a),_0x12ef21=this[_0x357e9a(0x164)](_0x2b1534,_0x334c40,_0x27380a);await this[_0x357e9a(0x1a1)](_0x3f5a9a,_0x4c9f40);const _0xfb6ccd=testhubUtils['getProductMap'](_0x2b1534);process[_0x357e9a(0x141)][_0x357e9a(0x1c5)]=JSON['stringify'](_0xfb6ccd);if(_0x4f52c7[_0x357e9a(0x1b0)](testhubUtils[_0x357e9a(0x17f)](_0x3f5a9a[_0x357e9a(0x149)]),null)){const _0x1b5f3c=_0x12ef21[_0x4f52c7[_0x357e9a(0x16b)]];_0x1b5f3c&&_0x1b5f3c[_0x357e9a(0x169)]&&_0x1b5f3c[_0x357e9a(0x193)]&&(_0x3f5a9a['config'][_0x357e9a(0x13e)]=!![],process[_0x357e9a(0x141)][_0x357e9a(0x1aa)]=_0x4f52c7['ZktBq']);}return _0x12ef21&&_0x12ef21[_0x4f52c7[_0x357e9a(0x16b)]]&&_0x12ef21[_0x4f52c7[_0x357e9a(0x16b)]][_0x4f52c7[_0x357e9a(0x1a4)]]&&(process[_0x357e9a(0x141)]['BROWSERSTACK_TEST_ACCESSIBILITY_SCRIPT_TIMEOUT']=_0x12ef21[_0x4f52c7[_0x357e9a(0x16b)]][_0x4f52c7[_0x357e9a(0x1a4)]]),_0x12ef21;}catch(_0x626be0){_0x4f52c7[_0x357e9a(0x1b0)](_0x626be0[_0x357e9a(0x18a)],![])&&testhubUtils[_0x357e9a(0x1ab)](_0x626be0);throw _0x626be0;}})();}static async[a146_0xf65e6e(0x1c3)](){const _0x50c924=a146_0xf65e6e,_0x171597={'gUWGR':function(_0x4cae89,_0x138fa0,_0x43a42e){return _0x4cae89(_0x138fa0,_0x43a42e);},'ebqrI':function(_0x1a5d96,_0x1e8662){return _0x1a5d96(_0x1e8662);},'FsKiK':function(_0x2cb00d){return _0x2cb00d();},'VoqXQ':'All\x20trace\x20zip\x20send\x20events\x20complete'};if(processedTraceZips)return;const _0x5c3e19=TestDetails[_0x50c924(0x199)]();_0x5c3e19[_0x50c924(0x1a8)](({testUId:_0x266554,filePath:_0x5c6e45})=>{const _0x5104ee=_0x50c924;var _0x3a3406=_0x171597[_0x5104ee(0x1bb)](uploadTraceZip,_0x5c6e45,_0x266554);_0x171597[_0x5104ee(0x14c)](addEvent,_0x3a3406);});try{await _0x171597[_0x50c924(0x186)](awaitAllEvents),logger[_0x50c924(0x178)](_0x171597[_0x50c924(0x18f)]),processedTraceZips=!![];}catch(_0x23e011){logger['error'](_0x50c924(0x158)+util['format'](_0x23e011));}}static async[a146_0xf65e6e(0x1a1)](_0x551775,_0x3394f0){const _0x3febbb=a146_0xf65e6e;if(constants['PERCY_SUPPORTED_FRAMEWORKS'][_0x3febbb(0x17a)](_0x3394f0)){await _0x551775[_0x3febbb(0x191)]();return;}_0x551775['config']['percy']&&logger[_0x3febbb(0x178)](_0x3febbb(0x147)+_0x3394f0+_0x3febbb(0x18c));}static[a146_0xf65e6e(0x15c)](_0x3dd0c4){const _0x36b269=a146_0xf65e6e,_0x23915d={'NLagW':function(_0x4e97dc,_0x2c964f){return _0x4e97dc(_0x2c964f);},'YyHKC':'true'};let _0x246b89;if(_0x3dd0c4[_0x36b269(0x168)]){const _0xd7b4b6={};_0xd7b4b6[_0x36b269(0x160)]=_0x3dd0c4[_0x36b269(0x168)],_0x246b89=_0xd7b4b6;}else{const _0x3533bd={};_0x3533bd['settings']={},_0x246b89=_0x3533bd;}if((!bsSetupHelper[_0x36b269(0x167)]()||_0x23915d[_0x36b269(0x15d)](isTurboScaleSession,_0x3dd0c4))&&testhubUtils[_0x36b269(0x159)](_0x3dd0c4)){const _0x5a40be={};_0x5a40be[_0x36b269(0x16f)]=_0x23915d[_0x36b269(0x145)],Object[_0x36b269(0x157)](_0x246b89[_0x36b269(0x160)],_0x5a40be);}return _0x246b89;}static[a146_0xf65e6e(0x17b)](_0x59b7be,_0x4e24ed){const _0x339613=a146_0xf65e6e,_0x152de2={'nvmQl':function(_0x26f02b,_0x1136bd){return _0x26f02b(_0x1136bd);}},_0x3eb0e2={};return _0x3eb0e2['username']=_0x59b7be,_0x3eb0e2[_0x339613(0x14b)]=_0x4e24ed,{'auth':_0x3eb0e2,'headers':_0x152de2['nvmQl'](getDefaultHeaders,![])};}static async['generateBuildUpstreamData'](_0x1a5e77,_0x3f5606){const _0x5b5e57=a146_0xf65e6e,_0x5e7091={'LkwRT':_0x5b5e57(0x13f),'BsLVm':function(_0x444df6,_0x5c473f){return _0x444df6(_0x5c473f);}};logger[_0x5b5e57(0x178)](_0x5e7091[_0x5b5e57(0x190)]);const _0x39bac6={'project_name':_0x1a5e77[_0x5b5e57(0x1ad)]||'','name':_0x1a5e77['buildName']||path[_0x5b5e57(0x1b4)](path[_0x5b5e57(0x1a3)](process[_0x5b5e57(0x1cc)]())),'build_identifier':_0x1a5e77[_0x5b5e57(0x17d)],'description':_0x1a5e77[_0x5b5e57(0x1a6)]||'','started_at':new Date()[_0x5b5e57(0x1bd)](),'tags':_0x5e7091[_0x5b5e57(0x1cb)](getCustomTags,_0x1a5e77),'host_info':bsSetupHelper[_0x5b5e57(0x1af)](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process[_0x5b5e57(0x141)][_0x5b5e57(0x16a)]||![],'linked_build_uuid':process[_0x5b5e57(0x141)][_0x5b5e57(0x161)]||'','version_control':await bsSetupHelper[_0x5b5e57(0x1b1)](),'accessibility':this['getAccessibilityOptions'](_0x1a5e77),'framework_details':testhubUtils[_0x5b5e57(0x192)](_0x1a5e77,_0x3f5606),'product_map':testhubUtils['getProductMapForBuildStartCall'](_0x1a5e77),'browserstackAutomation':bsSetupHelper[_0x5b5e57(0x167)](),'grouping_identifier':process['env'][_0x5b5e57(0x154)],'test_orchestration':testhubUtils[_0x5b5e57(0x181)](_0x1a5e77)};if(bsSetupHelper['getCentralUser']()[_0x5b5e57(0x1b2)]||bsSetupHelper[_0x5b5e57(0x19a)]()[_0x5b5e57(0x175)]){const _0x4dbcb1={};_0x4dbcb1['job_id']=process['env'][_0x5b5e57(0x19e)],_0x4dbcb1[_0x5b5e57(0x1b7)]=process[_0x5b5e57(0x141)][_0x5b5e57(0x194)],_0x39bac6[_0x5b5e57(0x1b2)]=_0x4dbcb1;}return _0x39bac6;}static[a146_0xf65e6e(0x164)](_0x56b552,_0x24cf8e,_0xbfd554){const _0x2141d8=a146_0xf65e6e,_0x418ccf={'Qqxtn':function(_0x4b2abe){return _0x4b2abe();},'cQGEv':function(_0x4f086f,_0x256c90){return _0x4f086f&&_0x256c90;},'skKFk':_0x2141d8(0x144),'QPyEz':_0x2141d8(0x182)},_0xb0603f={};if(_0x418ccf[_0x2141d8(0x195)](isTestObservabilitySession)){const [_0x4d3515,_0x247e70,_0x303e83]=testhubUtils['setTestObservabilityVariables'](_0x24cf8e['data'],_0xbfd554[_0x2141d8(0x177)]);if(_0x418ccf[_0x2141d8(0x150)](_0x4d3515,_0x247e70)){const _0x21426a={};_0x21426a['jwt']=_0x4d3515,_0x21426a[_0x2141d8(0x193)]=_0x247e70,_0x21426a[_0x2141d8(0x15b)]=_0x303e83,_0xb0603f[testHubConstants['OBSERVABILITY']]=_0x21426a,process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=_0x418ccf[_0x2141d8(0x180)];}else _0xb0603f[testHubConstants[_0x2141d8(0x1bc)]]={},process[_0x2141d8(0x141)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x418ccf['QPyEz'];}else process[_0x2141d8(0x141)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x418ccf[_0x2141d8(0x16c)];const [_0x1cbd79,_0x105340,_0xcd0cdd]=testhubUtils[_0x2141d8(0x1c6)](_0x24cf8e[_0x2141d8(0x155)]);if(_0x418ccf['cQGEv'](_0x1cbd79,_0x105340)){const _0x2546c9={};_0x2546c9['authToken']=_0x1cbd79,_0x2546c9[_0x2141d8(0x193)]=_0x105340,_0x2546c9['scannerProcessingTimeout']=_0xcd0cdd,_0xb0603f[testHubConstants[_0x2141d8(0x1a0)]]=_0x2546c9,process[_0x2141d8(0x141)]['BROWSERSTACK_ACCESSIBILITY']=_0x418ccf['skKFk'];}else _0xb0603f[testHubConstants[_0x2141d8(0x1a0)]]={},process[_0x2141d8(0x141)][_0x2141d8(0x15f)]=_0x418ccf['QPyEz'];return testhubUtils[_0x2141d8(0x15e)](_0x24cf8e[_0x2141d8(0x155)]),logger['info']('Testhub\x20started\x20with\x20id:\x20'+process[_0x2141d8(0x141)][_0x2141d8(0x1c7)]),_0xb0603f;}static async[a146_0xf65e6e(0x172)](_0x1ecca5){const _0x1655e6=a146_0xf65e6e,_0x3e33ff={'fgrmR':function(_0x265fdd,_0x5655fe){return _0x265fdd===_0x5655fe;},'BNRPh':_0x1655e6(0x182),'IbvpH':function(_0x5828fe,_0x101187){return _0x5828fe===_0x101187;},'Ombwc':'null','xoKYP':'EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20Missing\x20authentication\x20token','pOtYh':_0x1655e6(0x179),'wZahb':_0x1655e6(0x19d),'DqoYt':'finished_metadata','HinGn':_0x1655e6(0x198),'dufma':function(_0xa179f0){return _0xa179f0();},'ejyPy':function(_0xd904f7,_0x5c6a37,_0x55f30b,_0x34bb95,_0xec0eb,_0x1bf9da){return _0xd904f7(_0x5c6a37,_0x55f30b,_0x34bb95,_0xec0eb,_0x1bf9da);},'vjLNS':_0x1655e6(0x19b),'wFsZj':_0x1655e6(0x1b9),'vPvVW':_0x1655e6(0x18a)};await PerformanceTester[_0x1655e6(0x156)](PerformanceEvents['STOP'],async()=>{const _0x23f7d2=_0x1655e6;if(_0x3e33ff[_0x23f7d2(0x1ac)](process[_0x23f7d2(0x141)][_0x23f7d2(0x19f)],_0x3e33ff[_0x23f7d2(0x1d0)])||TestHubHandler[_0x23f7d2(0x1ae)]||bsSetupHelper[_0x23f7d2(0x151)](process['env'][testHubConstants['ENV_VAR'][_0x23f7d2(0x1c0)]]))return;TestHubHandler['buildStopSent']=!![];if(BrowserstackCLI[_0x23f7d2(0x19c)]()['isRunning']())return;await this[_0x23f7d2(0x1c3)](),await RequestQueueHandler[_0x23f7d2(0x19c)]()[_0x23f7d2(0x163)](),await SessionHandler[_0x23f7d2(0x188)]();if(_0x3e33ff[_0x23f7d2(0x1ca)](process[_0x23f7d2(0x141)][testHubConstants['ENV_VAR'][_0x23f7d2(0x1c0)]],_0x3e33ff[_0x23f7d2(0x15a)])||_0x3e33ff['fgrmR'](process[_0x23f7d2(0x141)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']],_0x3e33ff['Ombwc'])){logger[_0x23f7d2(0x178)](_0x3e33ff[_0x23f7d2(0x142)]);const _0x4a1c52={};return _0x4a1c52[_0x23f7d2(0x166)]=_0x3e33ff[_0x23f7d2(0x14f)],_0x4a1c52[_0x23f7d2(0x197)]=_0x3e33ff[_0x23f7d2(0x14e)],_0x4a1c52;}const _0x480d68={'finished_at':new Date()[_0x23f7d2(0x1bd)](),'finished_metadata':[]};!!_0x1ecca5&&_0x480d68[_0x3e33ff[_0x23f7d2(0x1a9)]][_0x23f7d2(0x153)]({'reason':_0x3e33ff[_0x23f7d2(0x162)],'signal':_0x1ecca5,'failure_data':''});const _0xacb9de={'headers':_0x3e33ff[_0x23f7d2(0x18e)](getDefaultHeaders)};try{const _0x552c81=await _0x3e33ff[_0x23f7d2(0x189)](nodeRequest,_0x3e33ff[_0x23f7d2(0x14a)],_0x23f7d2(0x176)+process['env'][testHubConstants[_0x23f7d2(0x1a7)]['BROWSERSTACK_TESTHUB_UUID']]+'/stop',_0x480d68,_0xacb9de,![]);if(_0x552c81['data']&&_0x552c81['data']['error']){const _0x53ffae={};_0x53ffae[_0x23f7d2(0x197)]=_0x552c81['data']['error'];throw _0x53ffae;}else{logger[_0x23f7d2(0x178)](_0x3e33ff[_0x23f7d2(0x143)]);const _0x2ea604={};return _0x2ea604[_0x23f7d2(0x166)]=_0x3e33ff['vPvVW'],_0x2ea604[_0x23f7d2(0x197)]='',_0x2ea604;}}catch(_0x2d96c9){_0x2d96c9[_0x23f7d2(0x1a5)]?logger['debug'](_0x23f7d2(0x1c4)+_0x2d96c9[_0x23f7d2(0x1a5)][_0x23f7d2(0x166)]+'\x20'+_0x2d96c9['response'][_0x23f7d2(0x184)]+'\x20'+JSON[_0x23f7d2(0x185)](_0x2d96c9[_0x23f7d2(0x1a5)]['data'])):logger['debug']('EXCEPTION\x20IN\x20stopBuildUpstream\x20REQUEST\x20TO\x20TESTHUB\x20:\x20'+(_0x2d96c9[_0x23f7d2(0x197)]||_0x2d96c9));const _0x24b0f5={};return _0x24b0f5[_0x23f7d2(0x166)]=_0x3e33ff[_0x23f7d2(0x14f)],_0x24b0f5[_0x23f7d2(0x197)]=_0x2d96c9[_0x23f7d2(0x197)]||_0x2d96c9[_0x23f7d2(0x1a5)]?_0x2d96c9['response'][_0x23f7d2(0x166)]+':'+_0x2d96c9[_0x23f7d2(0x1a5)]['statusText']:_0x2d96c9,_0x24b0f5;}})();}}module['exports']=TestHubHandler;
@@ -1 +1 @@
1
- const a147_0x55d99c=a147_0x14bf;function a147_0x14bf(_0x3f24cd,_0x4d3493){const _0x31d2bf=a147_0x31d2();return a147_0x14bf=function(_0x14bf8e,_0x16cc32){_0x14bf8e=_0x14bf8e-0x173;let _0x336a7e=_0x31d2bf[_0x14bf8e];return _0x336a7e;},a147_0x14bf(_0x3f24cd,_0x4d3493);}(function(_0x45ccc9,_0x25247e){const _0x143e7c=a147_0x14bf,_0x880a1f=_0x45ccc9();while(!![]){try{const _0x4be2ea=-parseInt(_0x143e7c(0x217))/0x1*(-parseInt(_0x143e7c(0x185))/0x2)+-parseInt(_0x143e7c(0x1d3))/0x3*(-parseInt(_0x143e7c(0x1ce))/0x4)+-parseInt(_0x143e7c(0x1fa))/0x5+-parseInt(_0x143e7c(0x1a4))/0x6*(parseInt(_0x143e7c(0x175))/0x7)+parseInt(_0x143e7c(0x187))/0x8*(parseInt(_0x143e7c(0x1f1))/0x9)+-parseInt(_0x143e7c(0x21e))/0xa+-parseInt(_0x143e7c(0x176))/0xb;if(_0x4be2ea===_0x25247e)break;else _0x880a1f['push'](_0x880a1f['shift']());}catch(_0x32fb45){_0x880a1f['push'](_0x880a1f['shift']());}}}(a147_0x31d2,0x5ddaf));const bsSetupHelper=require('../helper'),LoadTestModule=require(a147_0x55d99c(0x1e1)),{isTestObservabilitySession,getFrameworkVersion}=require(a147_0x55d99c(0x17c)),accessibilityHelper=require(a147_0x55d99c(0x19b)),logger=require(a147_0x55d99c(0x17d))[a147_0x55d99c(0x1f4)],{nestedKeyValue}=require(a147_0x55d99c(0x208)),scripts=require('../accessibility-automation/scripts.js'),globals=require(a147_0x55d99c(0x1e4)),testHubConstants=require(a147_0x55d99c(0x1b2)),PWTestDetails=require(a147_0x55d99c(0x1a3)),JestTestDetails=require(a147_0x55d99c(0x1ac)),{FRAMEWORKS}=require(a147_0x55d99c(0x1fe)),{isTurboScaleSession}=require(a147_0x55d99c(0x1cb)),OrchestrationUtils=require(a147_0x55d99c(0x17b)),constants=require(a147_0x55d99c(0x207));function a147_0x31d2(){const _0x2de0dd=['app','username','split','getProductMapForBuildStartCall','FXjZu','HookRunFinished','2026129HKVbNG','2873838XYnQqJ','qZkFk','kpeZA','4|0|3|2|1','keys','../test-orchestration/orchestrationUtils.js','../test-observability/utils','../logger','toJson','false','BS_TESTOPS_JWT','RlIhy','titlePath','Rbyjq','includes','2wuwKgG','BROWSERSTACK_TESTHUB_UUID','297304nAvjDr','debug','BROWSERSTACK_TESTHUB_UUID:\x20','azQiA','CREDENTIALS_FOR_CRASH_REPORTING','isBrowserstackInfra','ibVCz','command','stringify','scripts','accessibility','getAgentVersion','parse','zIMJY','LogCreated','WNdjD','uHEaM','ACCESSIBILITY','value','LNoYV','../accessibility-automation/helper','KKSQU','lCpRb','TEST_REPORTING_ANALYTICS','INVALID_CREDENTIALS','errors','null','setTestHubCommonMetaInfo','../../bin/playwright/reporter/test-details.js','6CEEOkQ','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','GdrDN','allow_screenshots','qdwFA','getGlobal','fqfMr','QmHDo','../../bin/jest/test-observability/test-details.js','YkzhC','TestRunStarted','FRAMEWORK_DETAILS','skipCDPConnectOverride','getTestData','./constants.js','RpNQg','IvVQJ','scannerVersion','true','iJKnU','getTestFrameworkDetails','isTrue','alvcw','percy','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','aUODl','shouldProcessEventForTesthub','sofQQ','aAzzz','PLAYWRIGHT','message','Eieag','ADbjL','bEiug','assign','pnLAu','join','BROWSERSTACK_TESTHUB_JWT','commandsToWrap','../ats/helper','BS_TESTOPS_BUILD_COMPLETED','BROWSERSTACK_TEST_ACCESSIBILITY_YML','22324iERZWc','checkAccessibilityPlatformConfig','observability','ALIGI','ACCESS_DENIED','321OhgGrw','QldKp','OBSERVABILITY','options','CBTSessionCreated','6|3|2|5|4|1|0','scopes','RiWOT','xyiuY','handleErrorForObservability','uploadEventData','UrFJm','config','jwt','../../bin/v2/modules/loadTestModule','isRunning','getAccessibilityValueFromYml','../globals.js','success','length','qnUcr','javascript','xelHL','ceHNk','parseA11yJwtPayload','JEST','ERROR','BROWSERSTACK_A11Y_MOBILE_SCANNING_ENABLED_FOR_GROUP','GvCMm','handleErrorForAccessibility','99OpexGM','capabilities','lYjHb','winstonLogger','MOCHA','toString','isUndefined','bayjL','bjEpw','68650WLOOTH','getAccessibilityPlatformValidation','isLTSSession','isAccessibilityEnabled','../test-observability/constants.js','XDLRn','BS_TESTOPS_BUILD_HASHED_ID','toUpperCase','flzBt','getCurrentTestData','build_hashed_id','platforms','cusZc','../../bin/utils/constants.js','../helper.js','GcDvP','commands','iFmeE','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','BurXY','BS_TESTOPS_ALLOW_SCREENSHOTS','password','uuid','orVOz','error','isAccessibilityPlatform','key','test_run','BROWSERSTACK_PERCY','56947iYLxBv','GLzET','CODECEPT','PUAeD','shouldScanTestForAccessibility','isPercyBuild','BS_A11Y_JWT','1140410tRODgN','parseFromJson','mmZJi','LqtRE','XMBzK','qzKRJ','goog:chromeOptions','getProductMap','HookRunStarted','getCentralUser','SIPFs','rAcDr','CUCUMBER','env','BROWSERSTACK_ACCESSIBILITY','HQVXJ'];a147_0x31d2=function(){return _0x2de0dd;};return a147_0x31d2();}let testData={};exports[a147_0x55d99c(0x225)]=_0x5af527=>{const _0x21a651=a147_0x55d99c,_0x5cf5a1={'iJKnU':function(_0x24e621){return _0x24e621();}};let _0x3336f9=![],_0x388c0d=![];if(bsSetupHelper[_0x21a651(0x18c)]()&&_0x5af527['app'])_0x388c0d=!![];else bsSetupHelper[_0x21a651(0x18c)]()&&(_0x3336f9=!![]);return Object['assign']({'observability':_0x5cf5a1[_0x21a651(0x1b7)](isTestObservabilitySession),'accessibility':exports[_0x21a651(0x1fd)](_0x5af527),'percy':_0x5af527['percy']||![],'automate':_0x3336f9,'app_automate':_0x388c0d,'turboscale':bsSetupHelper['isTurboScaleSession'](_0x5af527),'lts':LoadTestModule[_0x21a651(0x1fc)](_0x5af527)},bsSetupHelper[_0x21a651(0x227)]());},exports['getFrameworkDetails']=(_0xbabbb1,_0x1a3261)=>{const _0x4c0b7b=a147_0x55d99c,_0x397681={'kpeZA':function(_0x29d2c4,_0x5815dd){return _0x29d2c4(_0x5815dd);},'qzKRJ':_0x4c0b7b(0x1e8)},_0x45c96c={'frameworkName':_0x1a3261,'frameworkVersion':_0x397681[_0x4c0b7b(0x178)](getFrameworkVersion,_0x1a3261),'sdkVersion':bsSetupHelper[_0x4c0b7b(0x192)](),'language':_0x397681[_0x4c0b7b(0x223)],'testFramework':bsSetupHelper[_0x4c0b7b(0x1b8)](_0xbabbb1,_0x1a3261)};return process[_0x4c0b7b(0x22b)][_0x4c0b7b(0x1af)]=JSON[_0x4c0b7b(0x18f)](_0x45c96c),_0x45c96c;},exports['setPercyFlag']=_0x3ce4a9=>{const _0x2ac101=a147_0x55d99c,_0x5a18b0={};_0x5a18b0[_0x2ac101(0x173)]=_0x2ac101(0x17f),_0x5a18b0[_0x2ac101(0x21a)]=_0x2ac101(0x1b6);const _0x11dddc=_0x5a18b0;process[_0x2ac101(0x22b)][_0x2ac101(0x216)]=_0x11dddc[_0x2ac101(0x173)],bsSetupHelper['isTrue'](_0x3ce4a9[_0x2ac101(0x1df)][_0x2ac101(0x1bb)])&&(!_0x3ce4a9[_0x2ac101(0x1bb)]||!_0x3ce4a9['percy'][_0x2ac101(0x1e2)]())&&(process['env'][_0x2ac101(0x216)]=_0x11dddc[_0x2ac101(0x21a)]);},exports['isPercyBuild']=()=>{const _0x377df9=a147_0x55d99c;return bsSetupHelper[_0x377df9(0x1b9)](process[_0x377df9(0x22b)][_0x377df9(0x216)]);},exports[a147_0x55d99c(0x1fd)]=(_0x225ed0={})=>{const _0x28ac13=a147_0x55d99c,_0x529390={};_0x529390['eTTkY']=function(_0x2640ca,_0x5d538f){return _0x2640ca!==_0x5d538f;},_0x529390['xyiuY']=function(_0x2ccf73,_0x3bf681){return _0x2ccf73===_0x3bf681;},_0x529390['QldKp']=_0x28ac13(0x1b6),_0x529390[_0x28ac13(0x20d)]=function(_0x334982,_0x55f576){return _0x334982>_0x55f576;},_0x529390[_0x28ac13(0x197)]=function(_0x28b7b2,_0x1cae25){return _0x28b7b2===_0x1cae25;};const _0x4e906c=_0x529390;if(_0x4e906c['eTTkY'](process[_0x28ac13(0x22b)][_0x28ac13(0x22c)],undefined))return bsSetupHelper[_0x28ac13(0x1b9)](process[_0x28ac13(0x22b)][_0x28ac13(0x22c)]);let _0x120c0b=_0x4e906c[_0x28ac13(0x1db)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x4e906c[_0x28ac13(0x1d4)]);return _0x4e906c[_0x28ac13(0x20d)](Object[_0x28ac13(0x17a)](_0x225ed0)[_0x28ac13(0x1e6)],0x0)&&(process['env'][_0x28ac13(0x20c)]=accessibilityHelper[_0x28ac13(0x1cf)](_0x225ed0)),_0x120c0b=_0x120c0b||_0x4e906c[_0x28ac13(0x197)](process[_0x28ac13(0x22b)]['BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM'],_0x4e906c[_0x28ac13(0x1d4)]),_0x120c0b;},exports['setTestObservabilityVariables']=(_0x12c9b9,_0x326b40)=>{const _0x5d120c=a147_0x55d99c,_0x26d614={'LNoYV':function(_0x418691){return _0x418691();},'DNgVF':'2|3|5|0|4|1','RlIhy':function(_0x120e03,_0x1265fe,_0x54e346){return _0x120e03(_0x1265fe,_0x54e346);},'bEiug':_0x5d120c(0x1d0),'qnUcr':_0x5d120c(0x1d6),'lCpRb':_0x5d120c(0x1b6)};if(!_0x12c9b9||!_0x12c9b9[_0x5d120c(0x1d0)])return exports[_0x5d120c(0x1dc)](),[null,null,null];if(!_0x12c9b9[_0x5d120c(0x1d0)]['success'])return exports[_0x5d120c(0x1dc)](_0x12c9b9[_0x5d120c(0x1d0)]),[null,null,null];if(_0x26d614[_0x5d120c(0x19a)](isTestObservabilitySession)){const _0x1973f9=_0x26d614['DNgVF'][_0x5d120c(0x230)]('|');let _0x696910=0x0;while(!![]){switch(_0x1973f9[_0x696910++]){case'0':_0x26d614[_0x5d120c(0x181)](nestedKeyValue,_0x12c9b9,[_0x26d614[_0x5d120c(0x1c5)],_0x26d614[_0x5d120c(0x1e7)]])&&(process['env'][_0x5d120c(0x20e)]=_0x12c9b9[_0x5d120c(0x1d0)][_0x5d120c(0x1d6)][_0x5d120c(0x1a7)][_0x5d120c(0x1f6)]());continue;case'1':return[_0x12c9b9[_0x5d120c(0x1e0)],_0x12c9b9[_0x5d120c(0x204)],process['env'][_0x5d120c(0x20e)]];case'2':process[_0x5d120c(0x22b)][_0x5d120c(0x1cc)]=_0x26d614[_0x5d120c(0x19d)];continue;case'3':if(_0x12c9b9[_0x5d120c(0x1e0)]){process[_0x5d120c(0x22b)]['BS_TESTOPS_JWT']=_0x12c9b9[_0x5d120c(0x1e0)];const _0x10bd62={};_0x10bd62[_0x5d120c(0x22f)]=_0x326b40[_0x5d120c(0x22f)],_0x10bd62[_0x5d120c(0x20f)]=_0x326b40[_0x5d120c(0x20f)],process[_0x5d120c(0x22b)][_0x5d120c(0x18b)]=JSON[_0x5d120c(0x18f)](_0x10bd62);}continue;case'4':logger[_0x5d120c(0x188)]('['+constants[_0x5d120c(0x19e)]+']\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20'+_0x12c9b9[_0x5d120c(0x204)]);continue;case'5':_0x12c9b9[_0x5d120c(0x204)]&&(process[_0x5d120c(0x22b)][_0x5d120c(0x200)]=_0x12c9b9['build_hashed_id']);continue;}break;}}return[null,null,null];},exports['setAccessibilityVariables']=_0x15d335=>{const _0x50433c=a147_0x55d99c,_0x30c2e4={'GvCMm':function(_0x5b8416,_0x22795e,_0x3b8b95){return _0x5b8416(_0x22795e,_0x3b8b95);},'aUODl':'accessibility','HCHzE':_0x50433c(0x1d6),'WNdjD':function(_0x52393,_0x3de7c7,_0x5b7731,_0x16625a){return _0x52393(_0x3de7c7,_0x5b7731,_0x16625a);},'pnLAu':'name','zOfFp':_0x50433c(0x199),'aAzzz':_0x50433c(0x18e),'MnwsW':_0x50433c(0x20a),'OUtds':function(_0x2e4e6a,_0x1b1e7c,_0x46047f,_0x23cf6c){return _0x2e4e6a(_0x1b1e7c,_0x46047f,_0x23cf6c);},'rAcDr':'nonBStackInfraA11yChromeOptions','RpNQg':_0x50433c(0x224),'lYjHb':function(_0x534af9,_0xb53514){return _0x534af9(_0xb53514);},'KKSQU':function(_0x128185,_0x67f7b0){return _0x128185===_0x67f7b0;},'IvVQJ':'true','MKYDe':'[ACCESSIBILITY]\x20skip_cdp_connect_override\x20is\x20true,\x20skipping\x20CDP\x20connect\x20override'};if(!_0x15d335['accessibility'])return exports[_0x50433c(0x1f0)](),[null,null];if(!_0x15d335['accessibility'][_0x50433c(0x1e5)])return exports['handleErrorForAccessibility'](_0x15d335['accessibility']),[null,null];if(_0x30c2e4[_0x50433c(0x1ef)](nestedKeyValue,_0x15d335,[_0x30c2e4[_0x50433c(0x1bd)],_0x30c2e4['HCHzE']])){const {accessibilityToken:_0x4ca9fb,scannerVersion:_0x31e868,scannerProcessingTimeout:_0x4b9f95,isMobileScanningEnabledForGroup:_0x267e3d}=_0x30c2e4[_0x50433c(0x196)](jsonifyAccessibilityArray,_0x15d335[_0x50433c(0x191)]['options'][_0x50433c(0x1f2)],_0x30c2e4[_0x50433c(0x1c7)],_0x30c2e4['zOfFp']),_0x1dd2b0={'scripts':_0x30c2e4[_0x50433c(0x196)](jsonifyAccessibilityArray,_0x15d335[_0x50433c(0x191)]['options'][_0x50433c(0x190)],_0x30c2e4[_0x50433c(0x1c7)],_0x30c2e4[_0x50433c(0x1c0)])};_0x1dd2b0[_0x30c2e4['MnwsW']]=_0x15d335['accessibility'][_0x50433c(0x1d6)][_0x50433c(0x1ca)][_0x50433c(0x20a)];const _0x37b365=_0x30c2e4['OUtds'](jsonifyAccessibilityArray,_0x15d335[_0x50433c(0x191)]['options'][_0x50433c(0x1f2)],_0x30c2e4[_0x50433c(0x1c7)],_0x30c2e4['zOfFp']);_0x1dd2b0[_0x30c2e4[_0x50433c(0x229)]]=_0x37b365[_0x30c2e4[_0x50433c(0x1b3)]],scripts[_0x50433c(0x21f)](_0x1dd2b0),scripts[_0x50433c(0x17e)]();let _0x1a941a=process[_0x50433c(0x22b)][_0x50433c(0x1bc)];_0x1a941a=!!_0x1a941a?JSON[_0x50433c(0x193)](_0x1a941a):{},_0x1a941a[_0x50433c(0x1b5)]=_0x31e868,process[_0x50433c(0x22b)][_0x50433c(0x1bc)]=JSON[_0x50433c(0x18f)](_0x1a941a),process[_0x50433c(0x22b)][_0x50433c(0x21d)]=_0x4ca9fb,process[_0x50433c(0x22b)][_0x50433c(0x1ee)]=_0x30c2e4[_0x50433c(0x1f3)](String,_0x30c2e4[_0x50433c(0x19c)](_0x267e3d,!![])||_0x30c2e4[_0x50433c(0x19c)](_0x267e3d,_0x30c2e4[_0x50433c(0x1b4)])),logger[_0x50433c(0x188)]('[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20'+_0x15d335[_0x50433c(0x204)]);const _0x25d13c=accessibilityHelper[_0x50433c(0x1eb)](_0x4ca9fb);return _0x25d13c&&bsSetupHelper[_0x50433c(0x1b9)](_0x25d13c[_0x50433c(0x1b0)])&&(process['env'][_0x50433c(0x1a5)]=!![],logger[_0x50433c(0x188)](_0x30c2e4['MKYDe'])),[_0x4ca9fb,_0x15d335[_0x50433c(0x204)],_0x4b9f95];}return[null,null];},exports[a147_0x55d99c(0x1dc)]=_0x271162=>{const _0x7d5dce=a147_0x55d99c,_0x5763c4={};_0x5763c4[_0x7d5dce(0x1da)]=_0x7d5dce(0x1d8),_0x5763c4[_0x7d5dce(0x183)]=_0x7d5dce(0x1a1),_0x5763c4[_0x7d5dce(0x1ea)]='false';const _0x170b7a=_0x5763c4,_0x4136ac=_0x170b7a[_0x7d5dce(0x1da)][_0x7d5dce(0x230)]('|');let _0x77cc1f=0x0;while(!![]){switch(_0x4136ac[_0x77cc1f++]){case'0':exports['logBuildError'](_0x271162,testHubConstants[_0x7d5dce(0x1d5)]);continue;case'1':process[_0x7d5dce(0x22b)][_0x7d5dce(0x20e)]=_0x170b7a['Rbyjq'];continue;case'2':process['env']['BS_TESTOPS_BUILD_COMPLETED']=_0x170b7a['ceHNk'];continue;case'3':process[_0x7d5dce(0x22b)][_0x7d5dce(0x1c9)]=_0x170b7a[_0x7d5dce(0x183)];continue;case'4':process['env'][_0x7d5dce(0x200)]=_0x170b7a[_0x7d5dce(0x183)];continue;case'5':process['env'][_0x7d5dce(0x180)]=_0x170b7a[_0x7d5dce(0x183)];continue;case'6':process[_0x7d5dce(0x22b)]['BROWSERSTACK_TESTHUB_UUID']=_0x170b7a['Rbyjq'];continue;}break;}},exports[a147_0x55d99c(0x1f0)]=_0x1c9d35=>{const _0x40a509=a147_0x55d99c,_0x155517={};_0x155517[_0x40a509(0x18d)]=_0x40a509(0x179),_0x155517['sofQQ']=_0x40a509(0x1a1),_0x155517['iFmeE']=_0x40a509(0x17f);const _0x335324=_0x155517,_0x34cd8d=_0x335324[_0x40a509(0x18d)]['split']('|');let _0x4c293f=0x0;while(!![]){switch(_0x34cd8d[_0x4c293f++]){case'0':process[_0x40a509(0x22b)][_0x40a509(0x1c9)]=_0x335324['sofQQ'];continue;case'1':exports['logBuildError'](_0x1c9d35,testHubConstants[_0x40a509(0x198)]);continue;case'2':process[_0x40a509(0x22b)][_0x40a509(0x20c)]=_0x335324[_0x40a509(0x20b)];continue;case'3':process[_0x40a509(0x22b)][_0x40a509(0x1cd)]=_0x335324['iFmeE'];continue;case'4':process[_0x40a509(0x22b)][_0x40a509(0x186)]=_0x335324[_0x40a509(0x1bf)];continue;}break;}},exports['logBuildError']=(_0xd674c5,_0x5db784='')=>{const _0x31385f=a147_0x55d99c,_0x2c0385={};_0x2c0385[_0x31385f(0x206)]=function(_0x5f5019,_0x4b0b2f){return _0x5f5019===_0x4b0b2f;};const _0x2edfcf=_0x2c0385;if(_0x2edfcf[_0x31385f(0x206)](_0xd674c5,undefined)){logger[_0x31385f(0x212)](_0x5db784[_0x31385f(0x201)]()+'\x20Build\x20creation\x20failed');return;}for(const _0x445348 of _0xd674c5[_0x31385f(0x1a0)]){const _0x2eb448=_0x445348[_0x31385f(0x214)],_0x58047f=_0x445348[_0x31385f(0x1c2)];if(_0x58047f)switch(_0x2eb448){case testHubConstants['ERROR'][_0x31385f(0x19f)]:logger[_0x31385f(0x212)](_0x58047f);break;case testHubConstants['ERROR'][_0x31385f(0x1d2)]:logger['info'](_0x58047f);break;case testHubConstants[_0x31385f(0x1ed)]['DEPRECATED']:logger[_0x31385f(0x212)](_0x58047f);break;default:logger[_0x31385f(0x212)](_0x58047f);}}};const jsonifyAccessibilityArray=(_0x27901f,_0x327943,_0x1eadb3)=>{const _0x376963={};return _0x27901f['forEach'](_0x49c58e=>{_0x376963[_0x49c58e[_0x327943]]=_0x49c58e[_0x1eadb3];}),_0x376963;};exports[a147_0x55d99c(0x1a2)]=_0xfa2286=>{const _0xa84610=a147_0x55d99c;_0xfa2286[_0xa84610(0x1e0)]&&(process[_0xa84610(0x22b)][_0xa84610(0x1c9)]=_0xfa2286['jwt']);_0xfa2286[_0xa84610(0x204)]&&(process[_0xa84610(0x22b)][_0xa84610(0x186)]=_0xfa2286['build_hashed_id'],logger[_0xa84610(0x188)](_0xa84610(0x189)+_0xfa2286['build_hashed_id']));;},exports[a147_0x55d99c(0x1be)]=(_0x82230a='',_0x3bfad4='')=>{const _0x334906=a147_0x55d99c,_0x5a602c={'LqtRE':function(_0x35ce94){return _0x35ce94();},'ADbjL':function(_0x1e8543,_0x2e2483){return _0x1e8543===_0x2e2483;},'bayjL':_0x334906(0x1dd),'azQiA':_0x334906(0x195),'bjEpw':_0x334906(0x1d7),'mmZJi':_0x334906(0x226),'ALIGI':'HookRunFinished'};if(exports[_0x334906(0x21c)]()&&!exports[_0x334906(0x1fd)]()&&!_0x5a602c[_0x334906(0x221)](isTestObservabilitySession)){if(_0x5a602c[_0x334906(0x1c4)](_0x3bfad4,_0x5a602c[_0x334906(0x1f8)]))return![];if([_0x5a602c[_0x334906(0x18a)],_0x5a602c[_0x334906(0x1f9)]][_0x334906(0x184)](_0x82230a))return![];return!![];}if(exports[_0x334906(0x1fd)]()&&!_0x5a602c[_0x334906(0x221)](isTestObservabilitySession)){if([_0x5a602c[_0x334906(0x220)],_0x5a602c[_0x334906(0x1d1)],_0x5a602c[_0x334906(0x18a)]][_0x334906(0x184)](_0x82230a))return![];return!![];}return exports[_0x334906(0x1fd)]()||_0x5a602c['LqtRE'](isTestObservabilitySession)||exports[_0x334906(0x21c)]();},exports['appendTesthubParams']=(_0x590fd6,_0x30334b,_0x447b59='',_0x18a6dc)=>{const _0x4e92e5=a147_0x55d99c,_0x3cf8e1={};_0x3cf8e1[_0x4e92e5(0x228)]=_0x4e92e5(0x226),_0x3cf8e1['gOoEc']=_0x4e92e5(0x174),_0x3cf8e1[_0x4e92e5(0x222)]=function(_0x3f8375,_0x21135a){return _0x3f8375===_0x21135a;},_0x3cf8e1[_0x4e92e5(0x218)]='bstackA11yShouldScan',_0x3cf8e1[_0x4e92e5(0x1de)]=_0x4e92e5(0x213),_0x3cf8e1[_0x4e92e5(0x1aa)]='accessibility',_0x3cf8e1[_0x4e92e5(0x22d)]=function(_0x41812e,_0x239861){return _0x41812e&&_0x239861;},_0x3cf8e1[_0x4e92e5(0x202)]=function(_0x572280,_0x353321){return _0x572280===_0x353321;},_0x3cf8e1[_0x4e92e5(0x211)]=function(_0x55efac,_0x30c3d6){return _0x55efac+_0x30c3d6;},_0x3cf8e1[_0x4e92e5(0x1ad)]=function(_0x16ad77,_0x5b3b16){return _0x16ad77+_0x5b3b16;},_0x3cf8e1['qZkFk']=function(_0x45f11b,_0x4af484){return _0x45f11b===_0x4af484;},_0x3cf8e1[_0x4e92e5(0x1c3)]=_0x4e92e5(0x1ae),_0x3cf8e1['KaWZq']=function(_0x1bdc71,_0x356843){return _0x1bdc71===_0x356843;},_0x3cf8e1[_0x4e92e5(0x1a6)]=function(_0x2c8ac3,_0x315918){return _0x2c8ac3===_0x315918;},_0x3cf8e1['QmHDo']=function(_0x437105,_0xb53c6c){return _0x437105&&_0xb53c6c;},_0x3cf8e1[_0x4e92e5(0x1a8)]='product_map';const _0x51c419=_0x3cf8e1;if(![_0x51c419['SIPFs'],_0x51c419['gOoEc']]['includes'](_0x30334b)&&exports[_0x4e92e5(0x1fd)]()){const _0x4fd424={};if(_0x51c419[_0x4e92e5(0x222)](_0x18a6dc,FRAMEWORKS[_0x4e92e5(0x1f5)])){const _0x4714e9=globals['getGlobal'](_0x51c419['GLzET'])||accessibilityHelper[_0x4e92e5(0x21b)](_0x447b59[_0x4e92e5(0x182)](),!![]),_0x3aecc2=globals['getGlobal'](_0x51c419[_0x4e92e5(0x1de)]);_0x4fd424[_0x51c419[_0x4e92e5(0x1aa)]]=_0x51c419['HQVXJ'](_0x3aecc2,_0x4714e9);}if(_0x51c419[_0x4e92e5(0x202)](_0x18a6dc,FRAMEWORKS['JEST'])){const _0x23d13f=_0x51c419[_0x4e92e5(0x211)](_0x51c419[_0x4e92e5(0x1ad)](_0x590fd6[_0x4e92e5(0x1d9)][_0x4e92e5(0x1c8)]('\x20'),'\x20'),_0x447b59['name']),_0x552fa3=globals[_0x4e92e5(0x1a9)](_0x51c419[_0x4e92e5(0x218)])||accessibilityHelper[_0x4e92e5(0x21b)](_0x23d13f,![]),_0x2cbf71=browserStackGlobals[_0x4e92e5(0x213)];_0x4fd424[_0x51c419[_0x4e92e5(0x1aa)]]=_0x51c419[_0x4e92e5(0x22d)](_0x2cbf71,_0x552fa3);}if(_0x51c419['qZkFk'](_0x18a6dc,FRAMEWORKS[_0x4e92e5(0x1c1)])){if(_0x51c419[_0x4e92e5(0x177)](_0x30334b,_0x51c419['Eieag']))return;_0x4fd424[_0x51c419[_0x4e92e5(0x1aa)]]=PWTestDetails[_0x4e92e5(0x1fb)](_0x590fd6[_0x4e92e5(0x210)]);}if(_0x51c419['KaWZq'](_0x18a6dc,FRAMEWORKS[_0x4e92e5(0x219)])){const _0x5cb6bb=accessibilityHelper[_0x4e92e5(0x21b)](_0x447b59['titlePath'](),!![]),_0x559d2e=global['accessibilityPlatform'];_0x4fd424[_0x51c419[_0x4e92e5(0x1aa)]]=_0x51c419[_0x4e92e5(0x22d)](_0x559d2e,_0x5cb6bb);}if(_0x51c419['GdrDN'](_0x18a6dc,FRAMEWORKS[_0x4e92e5(0x22a)])){const _0x496f82=accessibilityHelper['shouldScanTestForAccessibility'](null,![],_0x590fd6['tags']),_0x115db1=globals['getGlobal'](_0x51c419[_0x4e92e5(0x1de)]);_0x4fd424[_0x51c419[_0x4e92e5(0x1aa)]]=_0x51c419[_0x4e92e5(0x1ab)](_0x115db1,_0x496f82);}_0x590fd6[_0x51c419['qdwFA']]=_0x4fd424;}},exports[a147_0x55d99c(0x203)]=_0x37597a=>{const _0x46fea8=a147_0x55d99c,_0x1ef98b={};_0x1ef98b['alvcw']=function(_0x2dcf8a,_0x101e0d){return _0x2dcf8a>_0x101e0d;};const _0x5b7538=_0x1ef98b;let _0x44f734={};if(_0x5b7538[_0x46fea8(0x1ba)](Object['keys'](testData)[_0x46fea8(0x1e6)],0x0))return testData;_0x44f734=JestTestDetails[_0x46fea8(0x1b1)]();if(_0x5b7538[_0x46fea8(0x1ba)](Object['keys'](_0x44f734)['length'],0x0))return _0x44f734;return _0x44f734;},exports['setCurrentTestData']=(_0x253cfd,_0x1cf6eb={})=>{const _0x154dde=a147_0x55d99c;if(bsSetupHelper[_0x154dde(0x1f7)](_0x1cf6eb['test_run']))return;switch(_0x253cfd){case FRAMEWORKS['MOCHA']:testData=_0x1cf6eb[_0x154dde(0x215)];break;case FRAMEWORKS[_0x154dde(0x1ec)]:JestTestDetails['setTestData'](_0x1cf6eb[_0x154dde(0x215)]);break;default:break;}},exports['getAccessibilityValueFromYml']=_0x3af417=>{const _0x313e39=a147_0x55d99c,_0x5154b4={};_0x5154b4[_0x313e39(0x209)]=function(_0x8ba0f5,_0x1f75bd){return _0x8ba0f5!==_0x1f75bd;},_0x5154b4[_0x313e39(0x1e9)]=function(_0x1cf5ff,_0x573178){return _0x1cf5ff!==_0x573178;},_0x5154b4['zIMJY']=function(_0x197ed3,_0x5518c9){return _0x197ed3!==_0x5518c9;};const _0x47d15e=_0x5154b4;if(_0x47d15e[_0x313e39(0x209)](_0x3af417[_0x313e39(0x191)],null)&&_0x47d15e[_0x313e39(0x209)](_0x3af417['accessibility'],undefined))return _0x3af417[_0x313e39(0x191)];let _0x3d970c=![],_0x473b9d=![];if(_0x3af417[_0x313e39(0x205)])for(const _0x1510f1 of _0x3af417[_0x313e39(0x205)]){_0x47d15e[_0x313e39(0x1e9)](_0x1510f1['accessibility'],null)&&_0x47d15e[_0x313e39(0x194)](_0x1510f1[_0x313e39(0x191)],undefined)&&(_0x3d970c=_0x3d970c||bsSetupHelper[_0x313e39(0x1b9)](_0x1510f1['accessibility']),_0x473b9d=!![]);}if(_0x473b9d)return _0x3d970c;return null;},exports['getTestOrchestrationBuildStartData']=_0x1a6097=>{const _0x592fea=new OrchestrationUtils(_0x1a6097);return _0x592fea['getBuildStartData']();},exports[a147_0x55d99c(0x231)]=_0x27eea8=>{const _0x2454fe=a147_0x55d99c,_0x20b9e7={'XDLRn':function(_0x562020){return _0x562020();}};let _0x3eef29=![],_0x58f454=![];if(bsSetupHelper['isBrowserstackInfra']()&&_0x27eea8[_0x2454fe(0x22e)])_0x58f454=!![];else bsSetupHelper[_0x2454fe(0x18c)]()&&(_0x3eef29=!![]);return Object[_0x2454fe(0x1c6)]({'observability':_0x20b9e7[_0x2454fe(0x1ff)](isTestObservabilitySession),'accessibility':exports[_0x2454fe(0x1e3)](_0x27eea8),'percy':_0x27eea8['percy']||![],'automate':_0x3eef29,'app_automate':_0x58f454,'turboscale':bsSetupHelper['isTurboScaleSession'](_0x27eea8),'lts':LoadTestModule['isLTSSession'](_0x27eea8)},bsSetupHelper[_0x2454fe(0x227)]());};
1
+ const a147_0x14d3b5=a147_0x39bb;function a147_0x1ab2(){const _0x93c25b=['length','BS_A11Y_JWT','bstackA11yShouldScan','DEPRECATED','wkEFG','ERROR','jwt','vBIiw','LogCreated','appendTesthubParams','./constants.js','../accessibility-automation/helper','JXZWv','ypbJp','tXEeb','setPercyFlag','uploadEventData','stPkV','null','TEST_REPORTING_ANALYTICS','1|4|2|0|3','ACCESS_DENIED','isAccessibilityEnabled','Axvev','25292MtDfgw','toUpperCase','TTrUz','QYzyQ','percy','accessibility','build_hashed_id','CBTSessionCreated','vxpwI','gSGHc','BS_TESTOPS_BUILD_HASHED_ID','YtyzM','6|0|5|1|4|2|3','XIFuX','split','command','getTestData','BROWSERSTACK_TEST_ACCESSIBILITY_PLATFORM','OwlMv','shouldProcessEventForTesthub','PLAYWRIGHT','KYAyE','vzCih','scopes','shouldScanTestForAccessibility','parseFromJson','oRZhh','isTrue','BS_TESTOPS_BUILD_COMPLETED','vMKYT','mUPJZ','getBuildStartData','546gQGWLu','FDPIn','isAccessibilityPlatform','keys','rswge','BROWSERSTACK_PERCY','scannerVersion','handleErrorForObservability','zwIVn','3636aRwuQI','822235mUsjcV','includes','273263cEFgDf','BS_TESTOPS_ALLOW_SCREENSHOTS','4040253mcZDsL','aBTGK','getAccessibilityPlatformValidation','LRPRv','error','env','OBSERVABILITY','setTestHubCommonMetaInfo','QsJqY','vUUMm','MOCHA','../helper.js','parse','146280gNZHpb','getTestFrameworkDetails','getAgentVersion','accessibilityPlatform','false','CUCUMBER','config','BROWSERSTACK_TEST_ACCESSIBILITY_YML','setTestObservabilityVariables','zKTER','success','allow_screenshots','phKvS','9HmLGTf','4|3|1|0|2|5','uXaht','getGlobal','../test-orchestration/orchestrationUtils.js','fsmnE','bPLIZ','uXMEk','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','tbdnS','ScemZ','logBuildError','setTestData','../../bin/utils/constants.js','jZLGc','EttvN','aNhle','BS_TESTOPS_JWT','HookRunStarted','CODECEPT','name','XuUlt','../ats/helper','tags','options','titlePath','toJson','SCDlO','BROWSERSTACK_ACCESSIBILITY','HookRunFinished','kjeZV','skipCDPConnectOverride','../test-observability/constants.js','debug','MeONm','imIGf','isRunning','XitoB','BS_A11Y_SKIP_CDP_CONNECT_OVERRIDE','KjYJQ','BROWSERSTACK_A11Y_MOBILE_SCANNING_ENABLED_FOR_GROUP','uuid','username','isPercyBuild','getCurrentTestData','BROWSERSTACK_TESTHUB_JWT','winstonLogger','andmc','GvxeM','handleErrorForAccessibility','qAeHF','FRAMEWORK_DETAILS','KJOdH','assign','getProductMap','JEST','BBRaH','observability','../../bin/v2/modules/loadTestModule','platforms','info','key','174352PxKmqC','true','[ACCESSIBILITY]\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20','../test-observability/utils','pTSzU','getProductMapForBuildStartCall','AXkAC','TIyeu','../logger','commandsToWrap','AVvUf','TestRunStarted','BROWSERSTACK_TESTHUB_UUID','getTestOrchestrationBuildStartData','getAccessibilityValueFromYml','LyQOG','capabilities','SkUfr','checkAccessibilityPlatformConfig','../helper','IJHxa','stringify','password','errors','isLTSSession','app','value','getCentralUser','nRSvP','getFrameworkDetails','test_run','javascript','NjjjG','isBrowserstackInfra','toString'];a147_0x1ab2=function(){return _0x93c25b;};return a147_0x1ab2();}function a147_0x39bb(_0x2102b9,_0x38ba37){const _0x1ab2c4=a147_0x1ab2();return a147_0x39bb=function(_0x39bb7e,_0xa2905e){_0x39bb7e=_0x39bb7e-0x1ae;let _0x349b85=_0x1ab2c4[_0x39bb7e];return _0x349b85;},a147_0x39bb(_0x2102b9,_0x38ba37);}(function(_0x44b57b,_0xaec3c1){const _0x582e65=a147_0x39bb,_0x48a1b9=_0x44b57b();while(!![]){try{const _0x2ee3fe=-parseInt(_0x582e65(0x24e))/0x1+-parseInt(_0x582e65(0x222))/0x2*(-parseInt(_0x582e65(0x26a))/0x3)+parseInt(_0x582e65(0x1e7))/0x4+-parseInt(_0x582e65(0x24c))/0x5+parseInt(_0x582e65(0x24b))/0x6*(parseInt(_0x582e65(0x242))/0x7)+parseInt(_0x582e65(0x25d))/0x8+parseInt(_0x582e65(0x250))/0x9;if(_0x2ee3fe===_0xaec3c1)break;else _0x48a1b9['push'](_0x48a1b9['shift']());}catch(_0x21d8c5){_0x48a1b9['push'](_0x48a1b9['shift']());}}}(a147_0x1ab2,0x26a4e));const bsSetupHelper=require(a147_0x14d3b5(0x1fa)),LoadTestModule=require(a147_0x14d3b5(0x1e3)),{isTestObservabilitySession,getFrameworkVersion}=require(a147_0x14d3b5(0x1ea)),accessibilityHelper=require(a147_0x14d3b5(0x215)),logger=require(a147_0x14d3b5(0x1ef))[a147_0x14d3b5(0x1d7)],{nestedKeyValue}=require(a147_0x14d3b5(0x25b)),scripts=require('../accessibility-automation/scripts.js'),globals=require('../globals.js'),testHubConstants=require(a147_0x14d3b5(0x214)),PWTestDetails=require('../../bin/playwright/reporter/test-details.js'),JestTestDetails=require('../../bin/jest/test-observability/test-details.js'),{FRAMEWORKS}=require(a147_0x14d3b5(0x1c9)),{isTurboScaleSession}=require(a147_0x14d3b5(0x1bf)),OrchestrationUtils=require(a147_0x14d3b5(0x26e)),constants=require(a147_0x14d3b5(0x1b6));let testData={};exports[a147_0x14d3b5(0x1df)]=_0x4f2a50=>{const _0x1426c8=a147_0x14d3b5,_0x39a812={'aNhle':function(_0x1e977d){return _0x1e977d();}};let _0x8e6894=![],_0x181fc0=![];if(bsSetupHelper['isBrowserstackInfra']()&&_0x4f2a50[_0x1426c8(0x200)])_0x181fc0=!![];else bsSetupHelper[_0x1426c8(0x208)]()&&(_0x8e6894=!![]);return Object[_0x1426c8(0x1de)]({'observability':_0x39a812[_0x1426c8(0x1b9)](isTestObservabilitySession),'accessibility':exports[_0x1426c8(0x220)](_0x4f2a50),'percy':_0x4f2a50[_0x1426c8(0x226)]||![],'automate':_0x8e6894,'app_automate':_0x181fc0,'turboscale':bsSetupHelper['isTurboScaleSession'](_0x4f2a50),'lts':LoadTestModule[_0x1426c8(0x1ff)](_0x4f2a50)},bsSetupHelper['getCentralUser']());},exports[a147_0x14d3b5(0x204)]=(_0xab41ee,_0x2aa2ca)=>{const _0x441b2d=a147_0x14d3b5,_0x5a3969={'imIGf':function(_0x2eeb75,_0x51d5fe){return _0x2eeb75(_0x51d5fe);},'uXMEk':_0x441b2d(0x206)},_0x557d8b={'frameworkName':_0x2aa2ca,'frameworkVersion':_0x5a3969[_0x441b2d(0x1cc)](getFrameworkVersion,_0x2aa2ca),'sdkVersion':bsSetupHelper[_0x441b2d(0x25f)](),'language':_0x5a3969[_0x441b2d(0x1b0)],'testFramework':bsSetupHelper[_0x441b2d(0x25e)](_0xab41ee,_0x2aa2ca)};return process['env'][_0x441b2d(0x1dc)]=JSON['stringify'](_0x557d8b),_0x557d8b;},exports[a147_0x14d3b5(0x219)]=_0x1438ea=>{const _0x56a073=a147_0x14d3b5,_0x4ec159={};_0x4ec159[_0x56a073(0x217)]=_0x56a073(0x261),_0x4ec159[_0x56a073(0x22b)]=_0x56a073(0x1e8);const _0x8bef13=_0x4ec159;process[_0x56a073(0x255)]['BROWSERSTACK_PERCY']=_0x8bef13[_0x56a073(0x217)],bsSetupHelper[_0x56a073(0x23d)](_0x1438ea[_0x56a073(0x263)][_0x56a073(0x226)])&&(!_0x1438ea[_0x56a073(0x226)]||!_0x1438ea[_0x56a073(0x226)][_0x56a073(0x1cd)]())&&(process[_0x56a073(0x255)][_0x56a073(0x247)]=_0x8bef13[_0x56a073(0x22b)]);},exports[a147_0x14d3b5(0x1d4)]=()=>{const _0x1ead28=a147_0x14d3b5;return bsSetupHelper[_0x1ead28(0x23d)](process[_0x1ead28(0x255)]['BROWSERSTACK_PERCY']);},exports[a147_0x14d3b5(0x220)]=(_0x7ff569={})=>{const _0x20d06e=a147_0x14d3b5,_0x38f788={};_0x38f788['SkUfr']=function(_0x1cf3c3,_0x14fb53){return _0x1cf3c3!==_0x14fb53;},_0x38f788[_0x20d06e(0x1f6)]=function(_0x431b61,_0x303b13){return _0x431b61===_0x303b13;},_0x38f788['kjeZV']=_0x20d06e(0x1e8),_0x38f788[_0x20d06e(0x207)]=function(_0x540ff6,_0x2c3e02){return _0x540ff6>_0x2c3e02;},_0x38f788[_0x20d06e(0x1ce)]=function(_0xa441c6,_0x37f3cb){return _0xa441c6===_0x37f3cb;};const _0x5d4f6e=_0x38f788;if(_0x5d4f6e[_0x20d06e(0x1f8)](process[_0x20d06e(0x255)][_0x20d06e(0x1c5)],undefined))return bsSetupHelper['isTrue'](process['env'][_0x20d06e(0x1c5)]);let _0x2a3bff=_0x5d4f6e[_0x20d06e(0x1f6)](process[_0x20d06e(0x255)][_0x20d06e(0x264)],_0x5d4f6e['kjeZV']);return _0x5d4f6e['NjjjG'](Object[_0x20d06e(0x245)](_0x7ff569)[_0x20d06e(0x20a)],0x0)&&(process['env'][_0x20d06e(0x233)]=accessibilityHelper[_0x20d06e(0x1f9)](_0x7ff569)),_0x2a3bff=_0x2a3bff||_0x5d4f6e[_0x20d06e(0x1ce)](process[_0x20d06e(0x255)][_0x20d06e(0x233)],_0x5d4f6e[_0x20d06e(0x1c7)]),_0x2a3bff;},exports[a147_0x14d3b5(0x265)]=(_0x3ab91e,_0x2ce995)=>{const _0x2e8b4a=a147_0x14d3b5,_0x42ae41={'TTrUz':function(_0x1d15da){return _0x1d15da();},'MQcvy':_0x2e8b4a(0x26b),'nRSvP':function(_0x59d676,_0x49ed4f,_0x21f3dc){return _0x59d676(_0x49ed4f,_0x21f3dc);},'NCfde':_0x2e8b4a(0x1e2),'rswge':'options','COAVI':'true'};if(!_0x3ab91e||!_0x3ab91e[_0x2e8b4a(0x1e2)])return exports['handleErrorForObservability'](),[null,null,null];if(!_0x3ab91e['observability']['success'])return exports[_0x2e8b4a(0x249)](_0x3ab91e['observability']),[null,null,null];if(_0x42ae41[_0x2e8b4a(0x224)](isTestObservabilitySession)){const _0x377aba=_0x42ae41['MQcvy'][_0x2e8b4a(0x230)]('|');let _0x1903fd=0x0;while(!![]){switch(_0x377aba[_0x1903fd++]){case'0':_0x42ae41[_0x2e8b4a(0x203)](nestedKeyValue,_0x3ab91e,[_0x42ae41['NCfde'],_0x42ae41[_0x2e8b4a(0x246)]])&&(process['env'][_0x2e8b4a(0x24f)]=_0x3ab91e[_0x2e8b4a(0x1e2)][_0x2e8b4a(0x1c1)][_0x2e8b4a(0x268)][_0x2e8b4a(0x209)]());continue;case'1':_0x3ab91e[_0x2e8b4a(0x228)]&&(process['env'][_0x2e8b4a(0x22c)]=_0x3ab91e[_0x2e8b4a(0x228)]);continue;case'2':logger[_0x2e8b4a(0x1ca)]('['+constants[_0x2e8b4a(0x21d)]+']\x20Build\x20Created\x20Successfully\x20with\x20hashed\x20id:\x20'+_0x3ab91e['build_hashed_id']);continue;case'3':if(_0x3ab91e['jwt']){process['env']['BS_TESTOPS_JWT']=_0x3ab91e[_0x2e8b4a(0x210)];const _0x4a76a7={};_0x4a76a7['username']=_0x2ce995[_0x2e8b4a(0x1d3)],_0x4a76a7[_0x2e8b4a(0x1fd)]=_0x2ce995[_0x2e8b4a(0x1fd)],process[_0x2e8b4a(0x255)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x2e8b4a(0x1fc)](_0x4a76a7);}continue;case'4':process[_0x2e8b4a(0x255)][_0x2e8b4a(0x23e)]=_0x42ae41['COAVI'];continue;case'5':return[_0x3ab91e[_0x2e8b4a(0x210)],_0x3ab91e[_0x2e8b4a(0x228)],process[_0x2e8b4a(0x255)][_0x2e8b4a(0x24f)]];}break;}}return[null,null,null];},exports['setAccessibilityVariables']=_0xcd310a=>{const _0x50ea1e=a147_0x14d3b5,_0x22c06c={'aBTGK':function(_0x7aba21,_0x397a08,_0x142f3b){return _0x7aba21(_0x397a08,_0x142f3b);},'XehyZ':'accessibility','vUUMm':_0x50ea1e(0x1c1),'zKTER':function(_0x9b0936,_0x501f89,_0x23e83a,_0x2102a1){return _0x9b0936(_0x501f89,_0x23e83a,_0x2102a1);},'vMKYT':_0x50ea1e(0x1bd),'IJHxa':_0x50ea1e(0x201),'zwIVn':function(_0x4a6054,_0x3ada12,_0x39038b,_0xdefaf8){return _0x4a6054(_0x3ada12,_0x39038b,_0xdefaf8);},'stPkV':_0x50ea1e(0x231),'oRZhh':'commands','ScemZ':'nonBStackInfraA11yChromeOptions','QsJqY':'goog:chromeOptions','vzCih':function(_0x4358c9,_0x2c2929){return _0x4358c9(_0x2c2929);},'dZkoJ':function(_0x524245,_0x571b90){return _0x524245===_0x571b90;},'YtyzM':function(_0x52e351,_0x397548){return _0x52e351===_0x397548;},'wkEFG':_0x50ea1e(0x1e8),'EttvN':'[ACCESSIBILITY]\x20skip_cdp_connect_override\x20is\x20true,\x20skipping\x20CDP\x20connect\x20override'};if(!_0xcd310a[_0x50ea1e(0x227)])return exports[_0x50ea1e(0x1da)](),[null,null];if(!_0xcd310a[_0x50ea1e(0x227)][_0x50ea1e(0x267)])return exports[_0x50ea1e(0x1da)](_0xcd310a[_0x50ea1e(0x227)]),[null,null];if(_0x22c06c[_0x50ea1e(0x251)](nestedKeyValue,_0xcd310a,[_0x22c06c['XehyZ'],_0x22c06c[_0x50ea1e(0x259)]])){const {accessibilityToken:_0x46c4f6,scannerVersion:_0x4b6592,scannerProcessingTimeout:_0x2110ef,isMobileScanningEnabledForGroup:_0x417c5b}=_0x22c06c[_0x50ea1e(0x266)](jsonifyAccessibilityArray,_0xcd310a[_0x50ea1e(0x227)][_0x50ea1e(0x1c1)][_0x50ea1e(0x1f7)],_0x22c06c[_0x50ea1e(0x23f)],_0x22c06c['IJHxa']),_0x14589a={'scripts':_0x22c06c[_0x50ea1e(0x24a)](jsonifyAccessibilityArray,_0xcd310a[_0x50ea1e(0x227)][_0x50ea1e(0x1c1)]['scripts'],_0x22c06c['vMKYT'],_0x22c06c[_0x50ea1e(0x21b)])};_0x14589a[_0x22c06c[_0x50ea1e(0x23c)]]=_0xcd310a['accessibility'][_0x50ea1e(0x1c1)][_0x50ea1e(0x1f0)]['commands'];const _0x50f78e=_0x22c06c[_0x50ea1e(0x24a)](jsonifyAccessibilityArray,_0xcd310a['accessibility'][_0x50ea1e(0x1c1)][_0x50ea1e(0x1f7)],_0x22c06c[_0x50ea1e(0x23f)],_0x22c06c[_0x50ea1e(0x1fb)]);_0x14589a[_0x22c06c[_0x50ea1e(0x1b3)]]=_0x50f78e[_0x22c06c[_0x50ea1e(0x258)]],scripts[_0x50ea1e(0x23b)](_0x14589a),scripts[_0x50ea1e(0x1c3)]();let _0x29175f=process[_0x50ea1e(0x255)][_0x50ea1e(0x1b1)];_0x29175f=!!_0x29175f?JSON[_0x50ea1e(0x25c)](_0x29175f):{},_0x29175f[_0x50ea1e(0x248)]=_0x4b6592,process[_0x50ea1e(0x255)][_0x50ea1e(0x1b1)]=JSON[_0x50ea1e(0x1fc)](_0x29175f),process[_0x50ea1e(0x255)][_0x50ea1e(0x20b)]=_0x46c4f6,process[_0x50ea1e(0x255)][_0x50ea1e(0x1d1)]=_0x22c06c[_0x50ea1e(0x238)](String,_0x22c06c['dZkoJ'](_0x417c5b,!![])||_0x22c06c[_0x50ea1e(0x22d)](_0x417c5b,_0x22c06c[_0x50ea1e(0x20e)])),logger[_0x50ea1e(0x1ca)](_0x50ea1e(0x1e9)+_0xcd310a[_0x50ea1e(0x228)]);const _0x5db4f2=accessibilityHelper['parseA11yJwtPayload'](_0x46c4f6);return _0x5db4f2&&bsSetupHelper[_0x50ea1e(0x23d)](_0x5db4f2[_0x50ea1e(0x1c8)])&&(process[_0x50ea1e(0x255)][_0x50ea1e(0x1cf)]=!![],logger[_0x50ea1e(0x1ca)](_0x22c06c[_0x50ea1e(0x1b8)])),[_0x46c4f6,_0xcd310a[_0x50ea1e(0x228)],_0x2110ef];}return[null,null];},exports[a147_0x14d3b5(0x249)]=_0x1d12bf=>{const _0x5ab555=a147_0x14d3b5,_0xa2ae56={};_0xa2ae56[_0x5ab555(0x221)]=_0x5ab555(0x22e),_0xa2ae56['FDPIn']=_0x5ab555(0x21c),_0xa2ae56[_0x5ab555(0x234)]=_0x5ab555(0x261);const _0x42b15a=_0xa2ae56,_0x49dfb7=_0x42b15a[_0x5ab555(0x221)]['split']('|');let _0x586cbd=0x0;while(!![]){switch(_0x49dfb7[_0x586cbd++]){case'0':process[_0x5ab555(0x255)]['BROWSERSTACK_TESTHUB_JWT']=_0x42b15a['FDPIn'];continue;case'1':process['env'][_0x5ab555(0x1ba)]=_0x42b15a[_0x5ab555(0x243)];continue;case'2':process[_0x5ab555(0x255)][_0x5ab555(0x24f)]=_0x42b15a[_0x5ab555(0x243)];continue;case'3':exports[_0x5ab555(0x1b4)](_0x1d12bf,testHubConstants[_0x5ab555(0x256)]);continue;case'4':process[_0x5ab555(0x255)][_0x5ab555(0x22c)]=_0x42b15a[_0x5ab555(0x243)];continue;case'5':process[_0x5ab555(0x255)][_0x5ab555(0x23e)]=_0x42b15a[_0x5ab555(0x234)];continue;case'6':process[_0x5ab555(0x255)]['BROWSERSTACK_TESTHUB_UUID']=_0x42b15a[_0x5ab555(0x243)];continue;}break;}},exports[a147_0x14d3b5(0x1da)]=_0x236ef5=>{const _0x5aaf74=a147_0x14d3b5,_0x24f820={};_0x24f820[_0x5aaf74(0x1dd)]=_0x5aaf74(0x21e),_0x24f820[_0x5aaf74(0x240)]=_0x5aaf74(0x261),_0x24f820[_0x5aaf74(0x218)]=_0x5aaf74(0x21c);const _0x542516=_0x24f820,_0x434dee=_0x542516[_0x5aaf74(0x1dd)][_0x5aaf74(0x230)]('|');let _0x5b0740=0x0;while(!![]){switch(_0x434dee[_0x5b0740++]){case'0':process[_0x5aaf74(0x255)][_0x5aaf74(0x233)]=_0x542516[_0x5aaf74(0x240)];continue;case'1':process[_0x5aaf74(0x255)]['BROWSERSTACK_TESTHUB_UUID']=_0x542516[_0x5aaf74(0x218)];continue;case'2':process[_0x5aaf74(0x255)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x542516[_0x5aaf74(0x240)];continue;case'3':exports[_0x5aaf74(0x1b4)](_0x236ef5,testHubConstants['ACCESSIBILITY']);continue;case'4':process['env'][_0x5aaf74(0x1d6)]=_0x542516[_0x5aaf74(0x218)];continue;}break;}},exports[a147_0x14d3b5(0x1b4)]=(_0x221061,_0x195f5c='')=>{const _0x56ab32=a147_0x14d3b5,_0x1d409a={};_0x1d409a[_0x56ab32(0x1ed)]=function(_0x43175d,_0x31bca2){return _0x43175d===_0x31bca2;};const _0x4ba27a=_0x1d409a;if(_0x4ba27a[_0x56ab32(0x1ed)](_0x221061,undefined)){logger[_0x56ab32(0x254)](_0x195f5c[_0x56ab32(0x223)]()+'\x20Build\x20creation\x20failed');return;}for(const _0x365b72 of _0x221061[_0x56ab32(0x1fe)]){const _0x13e1c8=_0x365b72[_0x56ab32(0x1e6)],_0xd45218=_0x365b72['message'];if(_0xd45218)switch(_0x13e1c8){case testHubConstants['ERROR']['INVALID_CREDENTIALS']:logger[_0x56ab32(0x254)](_0xd45218);break;case testHubConstants[_0x56ab32(0x20f)][_0x56ab32(0x21f)]:logger[_0x56ab32(0x1e5)](_0xd45218);break;case testHubConstants[_0x56ab32(0x20f)][_0x56ab32(0x20d)]:logger['error'](_0xd45218);break;default:logger[_0x56ab32(0x254)](_0xd45218);}}};const jsonifyAccessibilityArray=(_0x3e16ae,_0xea40be,_0xad723b)=>{const _0x10a187={};return _0x3e16ae['forEach'](_0x25dce3=>{_0x10a187[_0x25dce3[_0xea40be]]=_0x25dce3[_0xad723b];}),_0x10a187;};exports[a147_0x14d3b5(0x257)]=_0x22c04f=>{const _0x150242=a147_0x14d3b5;_0x22c04f[_0x150242(0x210)]&&(process[_0x150242(0x255)][_0x150242(0x1d6)]=_0x22c04f[_0x150242(0x210)]);_0x22c04f[_0x150242(0x228)]&&(process['env'][_0x150242(0x1f3)]=_0x22c04f[_0x150242(0x228)],logger['debug']('BROWSERSTACK_TESTHUB_UUID:\x20'+_0x22c04f[_0x150242(0x228)]));;},exports[a147_0x14d3b5(0x235)]=(_0x55744e='',_0x3a0453='')=>{const _0x19d335=a147_0x14d3b5,_0x22551d={'BBRaH':function(_0x1d7e36){return _0x1d7e36();},'AlfKo':function(_0x562efa,_0x27e137){return _0x562efa===_0x27e137;},'tbdnS':_0x19d335(0x21a),'KjYJQ':_0x19d335(0x212),'LRPRv':_0x19d335(0x229),'MeONm':_0x19d335(0x1bb),'XIFuX':_0x19d335(0x1c6)};if(exports['isPercyBuild']()&&!exports[_0x19d335(0x220)]()&&!_0x22551d[_0x19d335(0x1e1)](isTestObservabilitySession)){if(_0x22551d['AlfKo'](_0x3a0453,_0x22551d[_0x19d335(0x1b2)]))return![];if([_0x22551d['KjYJQ'],_0x22551d[_0x19d335(0x253)]][_0x19d335(0x24d)](_0x55744e))return![];return!![];}if(exports[_0x19d335(0x220)]()&&!_0x22551d[_0x19d335(0x1e1)](isTestObservabilitySession)){if([_0x22551d[_0x19d335(0x1cb)],_0x22551d[_0x19d335(0x22f)],_0x22551d[_0x19d335(0x1d0)]][_0x19d335(0x24d)](_0x55744e))return![];return!![];}return exports[_0x19d335(0x220)]()||_0x22551d[_0x19d335(0x1e1)](isTestObservabilitySession)||exports[_0x19d335(0x1d4)]();},exports[a147_0x14d3b5(0x213)]=(_0x73083,_0x243076,_0x4a278e='',_0x12a111)=>{const _0x22196d=a147_0x14d3b5,_0x8c42c6={};_0x8c42c6['tegcu']=_0x22196d(0x1bb),_0x8c42c6[_0x22196d(0x26c)]=_0x22196d(0x1c6),_0x8c42c6['pTSzU']=function(_0x3eb20a,_0xb3dc2a){return _0x3eb20a===_0xb3dc2a;},_0x8c42c6['QYzyQ']=_0x22196d(0x20c),_0x8c42c6[_0x22196d(0x1f1)]=_0x22196d(0x244),_0x8c42c6[_0x22196d(0x1d9)]=_0x22196d(0x227),_0x8c42c6['FoMKB']=function(_0x108ad3,_0x2cd4ed){return _0x108ad3&&_0x2cd4ed;},_0x8c42c6['KYAyE']=function(_0x4bab20,_0x34fe06){return _0x4bab20===_0x34fe06;},_0x8c42c6[_0x22196d(0x211)]=function(_0x261d30,_0x198cfb){return _0x261d30+_0x198cfb;},_0x8c42c6['fsmnE']=function(_0x585930,_0x586916){return _0x585930&&_0x586916;},_0x8c42c6[_0x22196d(0x1ee)]=function(_0x2b243e,_0x26b103){return _0x2b243e===_0x26b103;},_0x8c42c6['bPLIZ']=_0x22196d(0x1f2),_0x8c42c6['RuwNw']=function(_0x387a2c,_0x215e65){return _0x387a2c===_0x215e65;},_0x8c42c6[_0x22196d(0x22a)]=function(_0xa330ed,_0x3203d5){return _0xa330ed&&_0x3203d5;},_0x8c42c6[_0x22196d(0x1db)]=function(_0x27cfb2,_0x3cd004){return _0x27cfb2===_0x3cd004;},_0x8c42c6[_0x22196d(0x1be)]=function(_0x305517,_0x969042){return _0x305517&&_0x969042;},_0x8c42c6[_0x22196d(0x1c4)]='product_map';const _0x508e1c=_0x8c42c6;if(![_0x508e1c['tegcu'],_0x508e1c[_0x22196d(0x26c)]][_0x22196d(0x24d)](_0x243076)&&exports[_0x22196d(0x220)]()){const _0x54fd66={};if(_0x508e1c[_0x22196d(0x1eb)](_0x12a111,FRAMEWORKS[_0x22196d(0x25a)])){const _0x492471=globals[_0x22196d(0x26d)](_0x508e1c[_0x22196d(0x225)])||accessibilityHelper[_0x22196d(0x23a)](_0x4a278e[_0x22196d(0x1c2)](),!![]),_0x27c488=globals[_0x22196d(0x26d)](_0x508e1c[_0x22196d(0x1f1)]);_0x54fd66[_0x508e1c[_0x22196d(0x1d9)]]=_0x508e1c['FoMKB'](_0x27c488,_0x492471);}if(_0x508e1c[_0x22196d(0x237)](_0x12a111,FRAMEWORKS[_0x22196d(0x1e0)])){const _0x17c8cf=_0x508e1c[_0x22196d(0x211)](_0x508e1c['vBIiw'](_0x73083[_0x22196d(0x239)]['join']('\x20'),'\x20'),_0x4a278e['name']),_0x19c651=globals[_0x22196d(0x26d)](_0x508e1c[_0x22196d(0x225)])||accessibilityHelper['shouldScanTestForAccessibility'](_0x17c8cf,![]),_0x4518dd=browserStackGlobals[_0x22196d(0x244)];_0x54fd66[_0x508e1c['GvxeM']]=_0x508e1c[_0x22196d(0x1ae)](_0x4518dd,_0x19c651);}if(_0x508e1c['TIyeu'](_0x12a111,FRAMEWORKS[_0x22196d(0x236)])){if(_0x508e1c[_0x22196d(0x1ee)](_0x243076,_0x508e1c[_0x22196d(0x1af)]))return;_0x54fd66[_0x508e1c[_0x22196d(0x1d9)]]=PWTestDetails[_0x22196d(0x252)](_0x73083[_0x22196d(0x1d2)]);}if(_0x508e1c['RuwNw'](_0x12a111,FRAMEWORKS[_0x22196d(0x1bc)])){const _0x3c429d=accessibilityHelper[_0x22196d(0x23a)](_0x4a278e[_0x22196d(0x1c2)](),!![]),_0x533bd0=global[_0x22196d(0x260)];_0x54fd66[_0x508e1c[_0x22196d(0x1d9)]]=_0x508e1c[_0x22196d(0x22a)](_0x533bd0,_0x3c429d);}if(_0x508e1c['qAeHF'](_0x12a111,FRAMEWORKS[_0x22196d(0x262)])){const _0x28a615=accessibilityHelper[_0x22196d(0x23a)](null,![],_0x73083[_0x22196d(0x1c0)]),_0x60a2b9=globals['getGlobal'](_0x508e1c[_0x22196d(0x1f1)]);_0x54fd66[_0x508e1c[_0x22196d(0x1d9)]]=_0x508e1c[_0x22196d(0x1be)](_0x60a2b9,_0x28a615);}_0x73083[_0x508e1c[_0x22196d(0x1c4)]]=_0x54fd66;}},exports[a147_0x14d3b5(0x1d5)]=_0x46272e=>{const _0x23778f=a147_0x14d3b5,_0x1025af={};_0x1025af[_0x23778f(0x1b7)]=function(_0x5dc8e6,_0x4acb91){return _0x5dc8e6>_0x4acb91;};const _0x119b5e=_0x1025af;let _0x23b5c3={};if(_0x119b5e[_0x23778f(0x1b7)](Object[_0x23778f(0x245)](testData)[_0x23778f(0x20a)],0x0))return testData;_0x23b5c3=JestTestDetails[_0x23778f(0x232)]();if(_0x119b5e[_0x23778f(0x1b7)](Object[_0x23778f(0x245)](_0x23b5c3)[_0x23778f(0x20a)],0x0))return _0x23b5c3;return _0x23b5c3;},exports['setCurrentTestData']=(_0x2583d6,_0x57a81f={})=>{const _0x5d0690=a147_0x14d3b5;if(bsSetupHelper['isUndefined'](_0x57a81f['test_run']))return;switch(_0x2583d6){case FRAMEWORKS[_0x5d0690(0x25a)]:testData=_0x57a81f[_0x5d0690(0x205)];break;case FRAMEWORKS[_0x5d0690(0x1e0)]:JestTestDetails[_0x5d0690(0x1b5)](_0x57a81f[_0x5d0690(0x205)]);break;default:break;}},exports[a147_0x14d3b5(0x1f5)]=_0x411f2e=>{const _0x114450=a147_0x14d3b5,_0xfc02eb={};_0xfc02eb[_0x114450(0x216)]=function(_0x24f959,_0x5a6613){return _0x24f959!==_0x5a6613;},_0xfc02eb[_0x114450(0x269)]=function(_0x35e19,_0x284776){return _0x35e19!==_0x284776;},_0xfc02eb[_0x114450(0x1d8)]=function(_0x5e0ca6,_0x16adec){return _0x5e0ca6!==_0x16adec;};const _0x10d244=_0xfc02eb;if(_0x10d244[_0x114450(0x216)](_0x411f2e['accessibility'],null)&&_0x10d244[_0x114450(0x269)](_0x411f2e[_0x114450(0x227)],undefined))return _0x411f2e[_0x114450(0x227)];let _0x55bcf4=![],_0x447cef=![];if(_0x411f2e[_0x114450(0x1e4)])for(const _0x3bc1d0 of _0x411f2e[_0x114450(0x1e4)]){_0x10d244[_0x114450(0x1d8)](_0x3bc1d0[_0x114450(0x227)],null)&&_0x10d244[_0x114450(0x1d8)](_0x3bc1d0[_0x114450(0x227)],undefined)&&(_0x55bcf4=_0x55bcf4||bsSetupHelper[_0x114450(0x23d)](_0x3bc1d0['accessibility']),_0x447cef=!![]);}if(_0x447cef)return _0x55bcf4;return null;},exports[a147_0x14d3b5(0x1f4)]=_0x12a6b4=>{const _0x157ff3=a147_0x14d3b5,_0x293c0a=new OrchestrationUtils(_0x12a6b4);return _0x293c0a[_0x157ff3(0x241)]();},exports[a147_0x14d3b5(0x1ec)]=_0x52c7ec=>{const _0xb3405c=a147_0x14d3b5,_0xf1b382={'hgNcc':function(_0x52f35f){return _0x52f35f();}};let _0x152561=![],_0x1a6630=![];if(bsSetupHelper['isBrowserstackInfra']()&&_0x52c7ec['app'])_0x1a6630=!![];else bsSetupHelper['isBrowserstackInfra']()&&(_0x152561=!![]);return Object['assign']({'observability':_0xf1b382['hgNcc'](isTestObservabilitySession),'accessibility':exports[_0xb3405c(0x1f5)](_0x52c7ec),'percy':_0x52c7ec[_0xb3405c(0x226)]||![],'automate':_0x152561,'app_automate':_0x1a6630,'turboscale':bsSetupHelper['isTurboScaleSession'](_0x52c7ec),'lts':LoadTestModule[_0xb3405c(0x1ff)](_0x52c7ec)},bsSetupHelper[_0xb3405c(0x202)]());};
@@ -1 +1 @@
1
- const a148_0x10cdaf=a148_0x51f1;(function(_0x76e9c3,_0x1c78ce){const _0x25d888=a148_0x51f1,_0x167832=_0x76e9c3();while(!![]){try{const _0x61204a=-parseInt(_0x25d888(0x13a))/0x1*(parseInt(_0x25d888(0x144))/0x2)+parseInt(_0x25d888(0x143))/0x3*(parseInt(_0x25d888(0x141))/0x4)+parseInt(_0x25d888(0x148))/0x5+parseInt(_0x25d888(0x140))/0x6*(parseInt(_0x25d888(0x142))/0x7)+-parseInt(_0x25d888(0x13e))/0x8+parseInt(_0x25d888(0x13c))/0x9+-parseInt(_0x25d888(0x147))/0xa;if(_0x61204a===_0x1c78ce)break;else _0x167832['push'](_0x167832['shift']());}catch(_0x409996){_0x167832['push'](_0x167832['shift']());}}}(a148_0x18d5,0xe6fb9));const utilities=require(a148_0x10cdaf(0x13b));module[a148_0x10cdaf(0x13d)]=(_0x4ba5d3,_0x500b5a,_0x251a36,_0x38dc26,_0x2b1e42,_0x3b7f26)=>{const _0x2a3792=a148_0x10cdaf,_0x43247b={'BoWSE':function(_0x388719,_0x4217db){return _0x388719-_0x4217db;},'mhRDf':function(_0x1b8050,_0x59960c){return _0x1b8050(_0x59960c);},'BrIOF':function(_0x17bea5,_0x3ed024,_0x5edaf6){return _0x17bea5(_0x3ed024,_0x5edaf6);}};let _0x38557d,_0x393a69=![];const _0x36542c=new Promise((_0x5b3253,_0x1771a5)=>{const _0x3add33=a148_0x51f1;_0x38557d=_0x43247b[_0x3add33(0x146)](setTimeout,()=>{const _0xfad931=_0x3add33;if(!_0x393a69){const _0x34ece1={'status':''+_0x500b5a,'timeTaken':_0x43247b[_0xfad931(0x145)](new Date(),_0x38dc26)};utilities['fireFunnelTestEvent'](_0x251a36,_0x34ece1,_0x2b1e42,_0x3b7f26),_0x43247b[_0xfad931(0x149)](_0x1771a5,new Error(_0x500b5a));}},_0x4ba5d3);});return _0x36542c[_0x2a3792(0x13f)]=()=>{const _0x405549=_0x2a3792;_0x393a69=!![],_0x43247b[_0x405549(0x149)](clearTimeout,_0x38557d);},_0x36542c;};function a148_0x51f1(_0x43745b,_0x375657){const _0x18d513=a148_0x18d5();return a148_0x51f1=function(_0x51f1f6,_0x93aae8){_0x51f1f6=_0x51f1f6-0x13a;let _0x2f19d1=_0x18d513[_0x51f1f6];return _0x2f19d1;},a148_0x51f1(_0x43745b,_0x375657);}function a148_0x18d5(){const _0x4c4c4e=['186pDsIGU','709234WHrbLC','BoWSE','BrIOF','7579280tQPlPI','851050xtdqCn','mhRDf','1OvJxVh','./utilities','6026337xhcEEp','exports','12380464EZePXK','cancel','606ZIMtyZ','58796vGAfGF','128569SmAoCO'];a148_0x18d5=function(){return _0x4c4c4e;};return a148_0x18d5();}
1
+ const a148_0x579421=a148_0x32bd;(function(_0x5f32d0,_0x490c9c){const _0x41c10e=a148_0x32bd,_0x24c052=_0x5f32d0();while(!![]){try{const _0x5a7d6b=parseInt(_0x41c10e(0x1b2))/0x1+parseInt(_0x41c10e(0x1bf))/0x2*(parseInt(_0x41c10e(0x1be))/0x3)+-parseInt(_0x41c10e(0x1bb))/0x4*(parseInt(_0x41c10e(0x1bd))/0x5)+-parseInt(_0x41c10e(0x1ba))/0x6*(-parseInt(_0x41c10e(0x1bc))/0x7)+parseInt(_0x41c10e(0x1b7))/0x8+-parseInt(_0x41c10e(0x1b8))/0x9*(-parseInt(_0x41c10e(0x1af))/0xa)+-parseInt(_0x41c10e(0x1b6))/0xb;if(_0x5a7d6b===_0x490c9c)break;else _0x24c052['push'](_0x24c052['shift']());}catch(_0x1d1197){_0x24c052['push'](_0x24c052['shift']());}}}(a148_0x50da,0x85015));const utilities=require(a148_0x579421(0x1b9));function a148_0x32bd(_0x5e6226,_0x15d83d){const _0x50dad0=a148_0x50da();return a148_0x32bd=function(_0x32bda8,_0x13437c){_0x32bda8=_0x32bda8-0x1ae;let _0x489662=_0x50dad0[_0x32bda8];return _0x489662;},a148_0x32bd(_0x5e6226,_0x15d83d);}function a148_0x50da(){const _0x54d1e3=['unyYa','yhAUv','920599ykitup','ikJQk','DMLdX','kLmSc','17534781esynXl','6761568aPGOfQ','7498746cpLYFI','./utilities','531246TaZCve','1466900CxAAmv','14TlvjIJ','10oFdCyf','2019KqKvrl','286YWZWgB','fireFunnelTestEvent','10zgBOtF'];a148_0x50da=function(){return _0x54d1e3;};return a148_0x50da();}module['exports']=(_0x192317,_0x312d82,_0x1714fe,_0x58f5da,_0x4546d3,_0xa164cc)=>{const _0x1f22ba={'unyYa':function(_0x1300a6,_0x56ff3d){return _0x1300a6-_0x56ff3d;},'DMLdX':function(_0x37067a,_0x555a4e){return _0x37067a(_0x555a4e);},'kLmSc':function(_0x13f59a,_0x4bc891,_0x5b287a){return _0x13f59a(_0x4bc891,_0x5b287a);},'eYMWI':function(_0x2c643f,_0x3819b7){return _0x2c643f(_0x3819b7);}};let _0x5cdf2b,_0x33d1ad=![];const _0x3a1a12=new Promise((_0x3df787,_0x4c33ab)=>{const _0x4c5236=a148_0x32bd,_0x31639e={'ikJQk':function(_0x5a32e0,_0x1b5e83){const _0x588455=a148_0x32bd;return _0x1f22ba[_0x588455(0x1b0)](_0x5a32e0,_0x1b5e83);},'yhAUv':function(_0x2d5d7b,_0x138ddf){const _0x417b16=a148_0x32bd;return _0x1f22ba[_0x417b16(0x1b4)](_0x2d5d7b,_0x138ddf);}};_0x5cdf2b=_0x1f22ba[_0x4c5236(0x1b5)](setTimeout,()=>{const _0x372eab=_0x4c5236;if(!_0x33d1ad){const _0x565800={'status':''+_0x312d82,'timeTaken':_0x31639e[_0x372eab(0x1b3)](new Date(),_0x58f5da)};utilities[_0x372eab(0x1ae)](_0x1714fe,_0x565800,_0x4546d3,_0xa164cc),_0x31639e[_0x372eab(0x1b1)](_0x4c33ab,new Error(_0x312d82));}},_0x192317);});return _0x3a1a12['cancel']=()=>{_0x33d1ad=!![],_0x1f22ba['eYMWI'](clearTimeout,_0x5cdf2b);},_0x3a1a12;};
@@ -1 +1 @@
1
- const a149_0x1449f2=a149_0x16e0;(function(_0x2d1c7b,_0x3076d8){const _0x15ca36=a149_0x16e0,_0x490769=_0x2d1c7b();while(!![]){try{const _0x1caaf2=-parseInt(_0x15ca36(0x263))/0x1+parseInt(_0x15ca36(0x227))/0x2+-parseInt(_0x15ca36(0x25a))/0x3+-parseInt(_0x15ca36(0x247))/0x4+-parseInt(_0x15ca36(0x25f))/0x5*(-parseInt(_0x15ca36(0x238))/0x6)+-parseInt(_0x15ca36(0x252))/0x7*(-parseInt(_0x15ca36(0x21c))/0x8)+parseInt(_0x15ca36(0x22c))/0x9;if(_0x1caaf2===_0x3076d8)break;else _0x490769['push'](_0x490769['shift']());}catch(_0x16b5a4){_0x490769['push'](_0x490769['shift']());}}}(a149_0x74e2,0x3d68a));const os=require('os'),util=require(a149_0x1449f2(0x239)),fs=require('fs'),{getProductMap}=require('./testhub/utils'),logger=require(a149_0x1449f2(0x251))['winstonLogger'],constants=require(a149_0x1449f2(0x23c)),testHubConstants=require(a149_0x1449f2(0x209)),{getTransformPath}=require(a149_0x1449f2(0x221)),{FUNNEL_INSTRUMENTATION_API_URL}=require(a149_0x1449f2(0x23c)),{generateCIArtifacts,printNudgeLocalNotSetError}=require('./helper'),PerformanceTester=require(a149_0x1449f2(0x235)),globals=require(a149_0x1449f2(0x223)),helper=require(a149_0x1449f2(0x22e)),{isTestObservabilitySession}=require('./test-observability/utils');function a149_0x16e0(_0x596f93,_0x5881c7){const _0x74e2e1=a149_0x74e2();return a149_0x16e0=function(_0x16e04e,_0x41fde7){_0x16e04e=_0x16e04e-0x1ee;let _0x2fe738=_0x74e2e1[_0x16e04e];return _0x2fe738;},a149_0x16e0(_0x596f93,_0x5881c7);}function a149_0x74e2(){const _0x13ddb0=['forEach','bwmzB','FcemV','name','replace','globalException','playwrightVersion','getFrameworkVersion','getTurboScaleBuildLink','object','assign','JTDxa','seleniumVersion','Error\x20in\x20firing\x20request\x20to\x20','isNullOrEmpty','browserStackConfig','SDKTestSuccessful','24drarCd','POST','SDK\x20run\x20ended\x20for\x20id:\x20','lFkhR','getTurboScaleSessionsList','../bin/playwright/reporter/pwUtils','Playwright','./globals','push','user_killed','getStackTraceAsString','359718pGMyrO','body','yAtId','accessSync','stringify','7671231YZoLHG','LWBYh','./helper','VtJCC','AUTOMATE','source','format','Qusrc','UrLwX','./performance/performance-tester','[REDACTED]','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','458844blcKEa','util','OwCaa','deviceName','../bin/utils/constants','getGlobal','qGdfT','YRfCj','app','debug','gquyU','constants','requirePWModule','getOptimalHubUrl','AlGFo','1391800JgRqjo','nodeRequest','AUTOMATE_PRODUCTS','RKDZa','OWpGg','error','\x20response\x20-\x20','type','PRODUCT_IF_NOT_BROWSERSTACK_INFRA','W_OK','./logger','361956YeZlPi','AbzoI','APP_AUTOMATE_PRODUCTS','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','getAccessKey','all','selenium-webdriver','sdkRunId','1245594sEExJl','tests','length','mtSHo','errorMessage','10VRGPTy','undefined','liaaG','codeceptjs','325612EygpGQ','chmodSync','Failed\x20to\x20set\x20directory\x20access:\x20','Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20','PpcFa','env','LegLO','every','LoZTk','isModifiable','hostname','mmDSy','\x20:\x20','_buildHashedId','join','parse','info','keys','browserVersion','split','\x20has\x20now\x20read/write/execute\x20permissions.','UCZjn','BROWSERSTACK_TESTHUB_UUID','fireFunnelTestEvent','event_properties','version','getTestFrameworkDetails','framework','iYryl','values','getUserName','content-type','QcjuA','QTjBo','getNodeAgent','getBuildLink','browser','nodejs','config','stopPercy','reduce','OUEtA','APP_AUTOMATE','trim','application/json','iXteQ','setReadWriteExecuteAccess','isBrowserstackInfra','RNwog','VSkbN','osVersion','IYRwZ','toString','XwOGy','jHzQF','../helpers/testhub/constants','buildIdentifier'];a149_0x74e2=function(){return _0x13ddb0;};return a149_0x74e2();}let unhandledErrors='';exports['fireFunnelTestEvent']=async(_0x3a7666,_0x4d2341={},_0x47d8bc,_0x5bb7d1,_0x1a5019=![])=>{const _0x302fc6=a149_0x1449f2,_0x578734={'OWpGg':function(_0x3470e8,_0x11eedf){return _0x3470e8===_0x11eedf;},'iYryl':_0x302fc6(0x214),'lVlvd':function(_0x448f70,_0x4632e9){return _0x448f70>_0x4632e9;},'FcemV':function(_0x438be4,_0xc5f1eb){return _0x438be4>_0xc5f1eb;},'GRDst':_0x302fc6(0x25b),'UCZjn':function(_0x3d64bf){return _0x3d64bf();},'JTDxa':function(_0x3fab57){return _0x3fab57();},'LegLO':function(_0x5cbc6b,_0x2f0d61){return _0x5cbc6b==_0x2f0d61;},'RKDZa':'null','RNwog':_0x302fc6(0x260),'iXteQ':function(_0x44ea6c,_0x150833){return _0x44ea6c===_0x150833;},'mmDSy':_0x302fc6(0x262),'yAtId':function(_0x5959ca,_0x4c2cd3){return _0x5959ca>_0x4c2cd3;},'mtSHo':function(_0x2eb4d5,_0x3477c3){return _0x2eb4d5!==_0x3477c3;},'YRfCj':_0x302fc6(0x222),'PpcFa':function(_0x26e3ed,_0x1894b5){return _0x26e3ed===_0x1894b5;},'gquyU':_0x302fc6(0x24c),'lFkhR':function(_0x59091f,_0x34acd9){return _0x59091f>_0x34acd9;},'pHKyv':function(_0x35485d,_0x244070){return _0x35485d+_0x244070;},'LoZTk':_0x302fc6(0x237),'QTjBo':_0x302fc6(0x270),'AlGFo':function(_0x5b6848,_0x4575fa){return _0x5b6848(_0x4575fa);},'UrLwX':function(_0x3c4f13,_0x122175){return _0x3c4f13(_0x122175);},'bwmzB':'unknown','jHzQF':_0x302fc6(0x1f7),'UCsHX':function(_0x4964f7,_0x2d370c){return _0x4964f7===_0x2d370c;},'fmBMQ':_0x302fc6(0x21b),'qGdfT':function(_0x5e07b5){return _0x5e07b5();},'OwCaa':_0x302fc6(0x258),'DwJIJ':_0x302fc6(0x1fe),'VSkbN':_0x302fc6(0x236),'XwOGy':_0x302fc6(0x21d)};let _0x1e1810=[];if(helper[_0x302fc6(0x201)]()&&_0x578734[_0x302fc6(0x278)](isTestObservabilitySession))_0x1e1810=_0x47d8bc[_0x302fc6(0x240)]?constants[_0x302fc6(0x254)]:constants[_0x302fc6(0x249)];else{if(_0x578734[_0x302fc6(0x216)](isTestObservabilitySession))_0x1e1810=constants[_0x302fc6(0x24f)];else helper[_0x302fc6(0x201)]()&&(_0x1e1810=_0x47d8bc[_0x302fc6(0x240)]?constants[_0x302fc6(0x1fc)]:constants[_0x302fc6(0x230)]);}let _0x36f46d=_0x47d8bc[_0x302fc6(0x20a)];if(_0x578734[_0x302fc6(0x269)](_0x36f46d,null))_0x36f46d=_0x578734[_0x302fc6(0x24a)];else _0x578734[_0x302fc6(0x24b)](_0x36f46d,undefined)&&(_0x36f46d=_0x578734[_0x302fc6(0x202)]);unhandledErrors&&_0x578734[_0x302fc6(0x20d)](unhandledErrors[_0x302fc6(0x25c)],0x0)&&(_0x4d2341[_0x302fc6(0x210)]=unhandledErrors);global[_0x302fc6(0x259)]&&(_0x4d2341[_0x302fc6(0x259)]=global[_0x302fc6(0x259)]);try{if(_0x4d2341[_0x302fc6(0x24c)]){if(_0x578734[_0x302fc6(0x1ff)](_0x5bb7d1,_0x578734[_0x302fc6(0x26e)])&&_0x578734[_0x302fc6(0x229)](_0x4d2341[_0x302fc6(0x24c)]['length'],0x0)){const _0x165483={};_0x165483['os']='',_0x165483[_0x302fc6(0x204)]='',_0x165483[_0x302fc6(0x1f6)]='',_0x165483['browserVersion']='';const _0x58ef8e=_0x165483;let _0xaafea5={};const _0x284102=_0x4d2341[_0x302fc6(0x24c)];_0xaafea5=_0x284102[_0x302fc6(0x1fa)]((_0x3cfe97,_0x387c53)=>{for(const _0x188177 in _0x387c53){_0x3cfe97[_0x188177]=_0x387c53[_0x188177];}return _0x3cfe97;},{});const _0x1e55f8={};_0x1e55f8[_0x302fc6(0x25b)]=_0xaafea5,_0x4d2341[_0x302fc6(0x24c)]=[Object[_0x302fc6(0x215)]({},_0x58ef8e,_0x1e55f8)];}else{let _0x5b8928=0x0;const _0x356667=_0x578734[_0x302fc6(0x25d)](_0x5bb7d1,_0x578734[_0x302fc6(0x23f)])?JSON[_0x302fc6(0x272)](_0x4d2341[_0x302fc6(0x24c)]):_0x4d2341[_0x302fc6(0x24c)],_0x154209=Object['values'](_0x356667);_0x154209[_0x302fc6(0x20b)](_0x23090a=>{const _0x4eb468=_0x302fc6;if(_0x578734[_0x4eb468(0x24b)](typeof _0x23090a,_0x578734[_0x4eb468(0x1ee)])){const _0x242e5f=Object[_0x4eb468(0x1ef)](_0x23090a);!_0x242e5f[_0x4eb468(0x26a)](_0x39b8c6=>_0x39b8c6===null||_0x39b8c6===undefined||_0x39b8c6==='')&&(_0x5b8928+=0x1);}});if(_0x578734[_0x302fc6(0x267)](_0x5b8928,0x0))delete _0x4d2341[_0x578734[_0x302fc6(0x242)]];else{const _0x4317d5=[];Object[_0x302fc6(0x274)](_0x356667)[_0x302fc6(0x20b)](_0x1dfc49=>{const _0x2412ff=_0x302fc6,[_0x4e77fc,_0x2246b2,_0x3a66d8,_0x80252]=_0x1dfc49[_0x2412ff(0x276)](',\x20');let _0x1806f7={};if(!_0x80252){const _0x75f305={};_0x75f305[_0x2412ff(0x23b)]=_0x4e77fc,_0x75f305['osVersion']=_0x2246b2,_0x75f305['browser']=_0x3a66d8,_0x1806f7=_0x75f305;}else{const _0x12dae9={};_0x12dae9['os']=_0x4e77fc,_0x12dae9[_0x2412ff(0x204)]=_0x2246b2,_0x12dae9['browser']=_0x3a66d8,_0x12dae9[_0x2412ff(0x275)]=_0x80252,_0x1806f7=_0x12dae9;}const _0x38b406={},_0x2035e7=_0x356667[_0x1dfc49];Object['keys'](_0x2035e7)[_0x2412ff(0x20b)](_0x441761=>{const _0x38b93c=_0x2412ff;_0x578734['lVlvd'](_0x2035e7[_0x441761][_0x38b93c(0x25c)],0x0)&&(_0x38b406[_0x441761]=_0x2035e7[_0x441761]);}),_0x578734[_0x2412ff(0x20d)](Object[_0x2412ff(0x274)](_0x38b406)['length'],0x0)&&(_0x1806f7[_0x578734['GRDst']]=_0x38b406,_0x4317d5[_0x2412ff(0x224)](_0x1806f7));}),_0x578734[_0x302fc6(0x21f)](_0x4317d5[_0x302fc6(0x25c)],0x0)?_0x4d2341[_0x302fc6(0x24c)]=_0x4317d5:delete _0x4d2341[_0x578734[_0x302fc6(0x242)]];}}}}catch(_0x23adc3){delete _0x4d2341[_0x578734[_0x302fc6(0x242)]],logger[_0x302fc6(0x241)](_0x578734['pHKyv'](_0x578734[_0x302fc6(0x26b)],_0x23adc3));}const _0x78fbb9=helper[_0x302fc6(0x27d)](_0x47d8bc,_0x47d8bc[_0x302fc6(0x27e)]),_0x529e62={'userName':helper[_0x302fc6(0x1f0)](_0x47d8bc),'accessKey':helper['getAccessKey'](_0x47d8bc),'event_type':_0x3a7666,'detectedFramework':_0x5bb7d1,'buildHashedId':globals[_0x302fc6(0x23d)](_0x578734[_0x302fc6(0x1f3)]),'optimalHubUrl':helper[_0x302fc6(0x245)](),'event_properties':{'testhub_uuid':process[_0x302fc6(0x268)][testHubConstants['ENV_VAR'][_0x302fc6(0x279)]]||'','sdkRunId':global[_0x302fc6(0x259)],'product_map':_0x578734[_0x302fc6(0x246)](getProductMap,_0x47d8bc),'productMap':_0x578734[_0x302fc6(0x234)](getProductMap,_0x47d8bc),'language_framework':_0x47d8bc[_0x302fc6(0x231)]||_0x578734[_0x302fc6(0x20c)],'referrer':helper[_0x302fc6(0x1f4)](_0x5bb7d1),'framework':_0x47d8bc[_0x302fc6(0x27e)],'frameworkVersion':helper[_0x302fc6(0x212)](_0x5bb7d1),'automationFramework':_0x78fbb9[_0x302fc6(0x20e)],'automationFrameworkVersion':_0x78fbb9[_0x302fc6(0x27c)],'language':_0x578734[_0x302fc6(0x208)],'languageVersion':process['version'],'product':_0x1e1810,'buildName':_0x47d8bc['buildName']||_0x578734[_0x302fc6(0x202)],'buildIdentifier':_0x36f46d,'os':os[_0x302fc6(0x24e)]()||_0x578734[_0x302fc6(0x20c)],'hostname':os[_0x302fc6(0x26d)]()||_0x578734[_0x302fc6(0x20c)],..._0x4d2341,'isCLIEnabled':_0x1a5019}};try{_0x578734['UCsHX'](_0x3a7666,_0x578734['fmBMQ'])&&(_0x529e62[_0x302fc6(0x27b)][_0x302fc6(0x21a)]=helper['sanitizeBrowserStackConfig'](_0x47d8bc)),_0x578734[_0x302fc6(0x267)](_0x5bb7d1,_0x578734[_0x302fc6(0x23f)])?_0x529e62['event_properties'][_0x302fc6(0x211)]=helper[_0x302fc6(0x244)]['apply'](null,_0x578734[_0x302fc6(0x23e)](getTransformPath),!![]):_0x529e62[_0x302fc6(0x27b)][_0x302fc6(0x217)]=helper['getPackageVersion'](_0x578734[_0x302fc6(0x23a)]);}catch(_0x2d9852){logger[_0x302fc6(0x241)](_0x302fc6(0x266)+_0x2d9852);}const _0x457cd3={};_0x457cd3[_0x302fc6(0x1f1)]=_0x578734['DwJIJ'];const _0x5acbc9={'headers':_0x457cd3,'body':_0x529e62,'auth':{'user':helper[_0x302fc6(0x1f0)](_0x47d8bc),'pass':helper[_0x302fc6(0x256)](_0x47d8bc)},'json':!![]};logger[_0x302fc6(0x241)](_0x302fc6(0x255)+JSON[_0x302fc6(0x22b)](_0x5acbc9[_0x302fc6(0x228)])[_0x302fc6(0x20f)](new RegExp(helper[_0x302fc6(0x1f0)](_0x47d8bc),'g'),_0x578734[_0x302fc6(0x203)])[_0x302fc6(0x20f)](new RegExp(helper[_0x302fc6(0x256)](_0x47d8bc),'g'),_0x578734['VSkbN']));try{const _0x53395a=await helper[_0x302fc6(0x248)](_0x578734[_0x302fc6(0x207)],FUNNEL_INSTRUMENTATION_API_URL,_0x5acbc9,_0x47d8bc);logger[_0x302fc6(0x241)]('API\x20Event\x20'+_0x3a7666+_0x302fc6(0x24d)+util[_0x302fc6(0x232)]('%j',_0x53395a));}catch(_0x6a4abf){logger['debug'](_0x302fc6(0x218)+FUNNEL_INSTRUMENTATION_API_URL+_0x302fc6(0x26f)+util[_0x302fc6(0x232)](_0x6a4abf));}},exports['finalExecution']=async(_0x510a47,_0x521760=![])=>{const _0x26a2ad=a149_0x1449f2,_0x19d5a0={'QcjuA':function(_0x21c892){return _0x21c892();},'OUEtA':'finishedMetadata','LWBYh':_0x26a2ad(0x225),'liaaG':_0x26a2ad(0x21b),'wgyZp':function(_0x147c8a,_0x79e717,_0x5caf99){return _0x147c8a(_0x79e717,_0x5caf99);},'Qusrc':function(_0x1f50bd,_0x508d0c){return _0x1f50bd+_0x508d0c;},'IYRwZ':'Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20'};try{await _0x510a47[_0x26a2ad(0x1f9)](),_0x19d5a0[_0x26a2ad(0x1f2)](printNudgeLocalNotSetError);const _0x3d4dc3={};_0x3d4dc3[_0x26a2ad(0x24c)]=_0x510a47[_0x26a2ad(0x25e)]?_0x510a47[_0x26a2ad(0x25e)]:'{}';const _0x4b4cec=_0x3d4dc3,_0x3af54e=Object[_0x26a2ad(0x215)]({},_0x4b4cec);!!_0x510a47['killSignal']&&(_0x3af54e[_0x19d5a0[_0x26a2ad(0x1fb)]]={'reason':_0x19d5a0[_0x26a2ad(0x22d)],'signal':_0x510a47['killSignal']});unhandledErrors=_0x510a47['unhandledErrors'][_0x26a2ad(0x271)]('\x0a');let _0x4c10ca,_0x290240,_0x305631;helper['isTurboScaleSession'](_0x510a47[_0x26a2ad(0x1f8)])?([_0x4c10ca,_0x290240]=await helper[_0x26a2ad(0x213)](_0x510a47[_0x26a2ad(0x1f8)]),[_0x305631]=await Promise[_0x26a2ad(0x257)]([helper[_0x26a2ad(0x220)](_0x4c10ca,_0x510a47[_0x26a2ad(0x1f8)]),exports[_0x26a2ad(0x27a)](_0x19d5a0[_0x26a2ad(0x261)],_0x3af54e,_0x510a47[_0x26a2ad(0x1f8)],_0x510a47['framework'],_0x521760)])):([_0x4c10ca,_0x290240]=await helper[_0x26a2ad(0x1f5)](_0x510a47[_0x26a2ad(0x1f8)]),[_0x305631]=await Promise['all']([helper['getSessionsList'](_0x4c10ca,_0x510a47[_0x26a2ad(0x1f8)]),exports[_0x26a2ad(0x27a)](_0x19d5a0[_0x26a2ad(0x261)],_0x3af54e,_0x510a47['config'],_0x510a47[_0x26a2ad(0x27e)],_0x521760)])),_0x305631&&await _0x19d5a0['wgyZp'](generateCIArtifacts,_0x305631,_0x290240),logger[_0x26a2ad(0x273)](_0x26a2ad(0x21e)+_0x510a47[_0x26a2ad(0x259)]+',\x20testhub\x20id:\x20'+process[_0x26a2ad(0x268)][_0x26a2ad(0x279)]),await helper['sendLogs'](_0x510a47[_0x26a2ad(0x1f8)]);}catch(_0x3836ef){logger[_0x26a2ad(0x241)](_0x19d5a0[_0x26a2ad(0x233)](_0x19d5a0[_0x26a2ad(0x205)],_0x3836ef));}helper['notifyUpdate']();},exports[a149_0x1449f2(0x226)]=_0x3dbb77=>{const _0x2c633b=a149_0x1449f2,_0x317657={'dmdwR':function(_0x2be4a2,_0x4d993b){return _0x2be4a2 instanceof _0x4d993b;},'LgiuJ':function(_0xcefed0,_0x3d0657){return _0xcefed0(_0x3d0657);}};try{if(_0x317657['dmdwR'](_0x3dbb77,Error))return _0x3dbb77['stack']||_0x3dbb77[_0x2c633b(0x206)]();return _0x317657['LgiuJ'](String,_0x3dbb77);}catch(_0x50ab0b){return _0x3dbb77?_0x3dbb77[_0x2c633b(0x206)]():'';}},exports[a149_0x1449f2(0x219)]=_0x3fa5d4=>{const _0x25d915=a149_0x1449f2,_0x1f1d6a={};_0x1f1d6a[_0x25d915(0x22f)]=function(_0x229021,_0x26558a){return _0x229021===_0x26558a;};const _0x5805af=_0x1f1d6a;return!_0x3fa5d4||_0x5805af[_0x25d915(0x22f)](_0x3fa5d4[_0x25d915(0x1fd)](),'');},exports[a149_0x1449f2(0x26c)]=_0x1b47e2=>{const _0xb2d234=a149_0x1449f2,_0x195584={};_0x195584[_0xb2d234(0x253)]=function(_0x91434b,_0x23bab5){return _0x91434b|_0x23bab5;};const _0x363a3c=_0x195584;try{return fs[_0xb2d234(0x22a)](_0x1b47e2,_0x363a3c['AbzoI'](fs[_0xb2d234(0x243)][_0xb2d234(0x250)],fs[_0xb2d234(0x243)]['X_OK'])),!![];}catch(_0x14f3dc){return![];}},exports[a149_0x1449f2(0x200)]=_0x16df19=>{const _0x17a606=a149_0x1449f2;try{fs[_0x17a606(0x264)](_0x16df19,0x1ff),logger[_0x17a606(0x241)]('Directory\x20'+_0x16df19+_0x17a606(0x277));}catch(_0x26794d){logger[_0x17a606(0x24c)](_0x17a606(0x265)+exports[_0x17a606(0x226)](_0x26794d));}};
1
+ const a149_0x232c7b=a149_0x17c4;function a149_0x3f5b(){const _0x4a6a9f=['getTestFrameworkDetails','efFiY','getBuildLink','getTurboScaleSessionsList','hcjXj','./test-observability/utils','getOptimalHubUrl','length','killSignal','SDKTestSuccessful','push','playwrightVersion','MyTSn','Something\x20went\x20wrong\x20in\x20Final\x20Execution\x20step\x20:\x20','12961152iSJnym','type','Error\x20while\x20parsing\x20tests\x20errors,\x20Exception:\x20','osVersion','nodeRequest','_buildHashedId','Firing\x20SDK\x20event\x20for\x20funnel\x20data:\x20','SFVQm','./globals','codeceptjs','util','framework','getSessionsList','forEach','AUTOMATE','getNodeAgent','replace','PtdAq','CwBzb','hvkYu','APP_AUTOMATE','getStackTraceAsString','hostname','../bin/playwright/reporter/pwUtils','app','info','format','Error\x20in\x20getting\x20framework\x20version\x20to\x20:\x20','EHDGP','getPackageVersion','split','BROWSERSTACK_TESTHUB_UUID','BFTIf','lFupW','event_properties','apply','constants','all','./helper','mjMOJ','\x20has\x20now\x20read/write/execute\x20permissions.','getGlobal','source','APP_AUTOMATE_PRODUCTS','name','fireFunnelTestEvent','\x20response\x20-\x20','requirePWModule','JINjw','POST','ieBdJ','vIPUx','browserStackConfig','sendLogs','X_OK','user_killed','keys','browser','IAOLG','brWPC','values','Error\x20in\x20firing\x20request\x20to\x20','debug','isBrowserstackInfra','nodejs','tests','getUserName','stack','null','sdkRunId','join','version','YJLBI','seleniumVersion','uvopF','6787102UTKxnM','dVPzn','385521AvjRwd','ZFrhX','../helpers/testhub/constants','chmodSync','unknown','deviceName','CJiBO','accessSync','HfbLp','browserVersion','10ZshoMZ','error','object','5365128xKVUCS','notifyUpdate','QlnND','JmmSD','getAccessKey','./performance/performance-tester','errorMessage','buildName','mwMLN','winstonLogger','./testhub/utils','2748426gkHIIO','API\x20Event\x20','eIXLW','trim','buildIdentifier','globalException','stopPercy','config','yGCze','setReadWriteExecuteAccess','finalExecution','54138rZyqdh','bqlul','134MIwdza','\x20:\x20','env','isNullOrEmpty','reduce','./logger','getFrameworkVersion','isModifiable','PGcLI','byeam','TJsQx','[REDACTED]','35916850ChdLwK','VTNiB','wJuPW','NnEjd','8wcgDMM'];a149_0x3f5b=function(){return _0x4a6a9f;};return a149_0x3f5b();}(function(_0x36fe85,_0x26a4ec){const _0x27d543=a149_0x17c4,_0x59dbb7=_0x36fe85();while(!![]){try{const _0xa5e241=parseInt(_0x27d543(0x102))/0x1+parseInt(_0x27d543(0x127))/0x2*(-parseInt(_0x27d543(0x125))/0x3)+parseInt(_0x27d543(0x10f))/0x4+parseInt(_0x27d543(0x10c))/0x5*(-parseInt(_0x27d543(0x11a))/0x6)+-parseInt(_0x27d543(0x100))/0x7*(parseInt(_0x27d543(0x137))/0x8)+-parseInt(_0x27d543(0x146))/0x9+parseInt(_0x27d543(0x133))/0xa;if(_0xa5e241===_0x26a4ec)break;else _0x59dbb7['push'](_0x59dbb7['shift']());}catch(_0x2b3c23){_0x59dbb7['push'](_0x59dbb7['shift']());}}}(a149_0x3f5b,0xbf4be));const os=require('os'),util=require(a149_0x232c7b(0x150)),fs=require('fs'),{getProductMap}=require(a149_0x232c7b(0x119)),logger=require(a149_0x232c7b(0x12c))[a149_0x232c7b(0x118)],constants=require('../bin/utils/constants'),testHubConstants=require(a149_0x232c7b(0x104)),{getTransformPath}=require(a149_0x232c7b(0x15d)),{FUNNEL_INSTRUMENTATION_API_URL}=require('../bin/utils/constants'),{generateCIArtifacts,printNudgeLocalNotSetError}=require(a149_0x232c7b(0xdb)),PerformanceTester=require(a149_0x232c7b(0x114)),globals=require(a149_0x232c7b(0x14e)),helper=require(a149_0x232c7b(0xdb)),{isTestObservabilitySession}=require(a149_0x232c7b(0x13d));function a149_0x17c4(_0x36df5d,_0x4764ae){const _0x3f5b13=a149_0x3f5b();return a149_0x17c4=function(_0x17c425,_0x204465){_0x17c425=_0x17c425-0xce;let _0x40aafd=_0x3f5b13[_0x17c425];return _0x40aafd;},a149_0x17c4(_0x36df5d,_0x4764ae);}let unhandledErrors='';exports['fireFunnelTestEvent']=async(_0x5e3a7d,_0x24db20={},_0x20531a,_0x3bd2ef,_0x57ae2a=![])=>{const _0x5c764f=a149_0x232c7b,_0x3762c9={'BKSLy':function(_0x5a659e,_0x3bf5ae){return _0x5a659e===_0x3bf5ae;},'Qhlvb':_0x5c764f(0x10e),'CJiBO':function(_0x2e85a3,_0x1566c2){return _0x2e85a3>_0x1566c2;},'wJuPW':function(_0x107956,_0x564822){return _0x107956>_0x564822;},'IAOLG':'tests','QlnND':function(_0x40d305){return _0x40d305();},'mjMOJ':function(_0x36ee27,_0x54f862){return _0x36ee27==_0x54f862;},'xZumv':_0x5c764f(0xf9),'dVPzn':function(_0x182fdf,_0x314285){return _0x182fdf===_0x314285;},'PtdAq':'undefined','BFTIf':function(_0xdfc9be,_0x5c5996){return _0xdfc9be>_0x5c5996;},'NnEjd':_0x5c764f(0x14f),'ZFrhX':function(_0x2ff073,_0xbf70da){return _0x2ff073!==_0xbf70da;},'EHDGP':'Playwright','CwBzb':_0x5c764f(0x10d),'rUppt':function(_0x3bcb85,_0x13295d){return _0x3bcb85+_0x13295d;},'ieBdJ':_0x5c764f(0x148),'YJLBI':_0x5c764f(0x14b),'hcjXj':function(_0x118c27,_0x2a44c5){return _0x118c27(_0x2a44c5);},'bqlul':function(_0x4ff833,_0x3309a6){return _0x4ff833(_0x3309a6);},'byeam':_0x5c764f(0x106),'uvopF':_0x5c764f(0xf5),'hvkYu':function(_0x4c0c80,_0x4a691a){return _0x4c0c80===_0x4a691a;},'mwMLN':_0x5c764f(0x141),'PGcLI':function(_0x5673e5){return _0x5673e5();},'VTNiB':'selenium-webdriver','MyTSn':'application/json','lFupW':_0x5c764f(0x132),'SDAAq':_0x5c764f(0xe6)};let _0x18a9de=[];if(helper['isBrowserstackInfra']()&&_0x3762c9[_0x5c764f(0x111)](isTestObservabilitySession))_0x18a9de=_0x20531a['app']?constants[_0x5c764f(0xe0)]:constants['AUTOMATE_PRODUCTS'];else{if(_0x3762c9[_0x5c764f(0x111)](isTestObservabilitySession))_0x18a9de=constants['PRODUCT_IF_NOT_BROWSERSTACK_INFRA'];else helper[_0x5c764f(0xf4)]()&&(_0x18a9de=_0x20531a[_0x5c764f(0x15e)]?constants[_0x5c764f(0x15a)]:constants[_0x5c764f(0x154)]);}let _0x3cf6f3=_0x20531a[_0x5c764f(0x11e)];if(_0x3762c9[_0x5c764f(0xdc)](_0x3cf6f3,null))_0x3cf6f3=_0x3762c9['xZumv'];else _0x3762c9[_0x5c764f(0x101)](_0x3cf6f3,undefined)&&(_0x3cf6f3=_0x3762c9[_0x5c764f(0x157)]);unhandledErrors&&_0x3762c9[_0x5c764f(0xd5)](unhandledErrors[_0x5c764f(0x13f)],0x0)&&(_0x24db20[_0x5c764f(0x11f)]=unhandledErrors);global[_0x5c764f(0xfa)]&&(_0x24db20['sdkRunId']=global['sdkRunId']);try{if(_0x24db20[_0x5c764f(0x10d)]){if(_0x3762c9[_0x5c764f(0x101)](_0x3bd2ef,_0x3762c9[_0x5c764f(0x136)])&&_0x3762c9[_0x5c764f(0x108)](_0x24db20[_0x5c764f(0x10d)][_0x5c764f(0x13f)],0x0)){const _0x379f5a={};_0x379f5a['os']='',_0x379f5a[_0x5c764f(0x149)]='',_0x379f5a[_0x5c764f(0xee)]='',_0x379f5a[_0x5c764f(0x10b)]='';const _0x4dd6f2=_0x379f5a;let _0x26edb4={};const _0x524100=_0x24db20[_0x5c764f(0x10d)];_0x26edb4=_0x524100[_0x5c764f(0x12b)]((_0x5e68f9,_0x1e0d19)=>{for(const _0x2f895b in _0x1e0d19){_0x5e68f9[_0x2f895b]=_0x1e0d19[_0x2f895b];}return _0x5e68f9;},{});const _0x490ad3={};_0x490ad3[_0x5c764f(0xf6)]=_0x26edb4,_0x24db20[_0x5c764f(0x10d)]=[Object['assign']({},_0x4dd6f2,_0x490ad3)];}else{let _0x4fff76=0x0;const _0x94d2a2=_0x3762c9[_0x5c764f(0x103)](_0x3bd2ef,_0x3762c9[_0x5c764f(0xd1)])?JSON['parse'](_0x24db20['error']):_0x24db20[_0x5c764f(0x10d)],_0x1f4ed5=Object[_0x5c764f(0xf1)](_0x94d2a2);_0x1f4ed5[_0x5c764f(0x153)](_0x3704b3=>{if(_0x3762c9['BKSLy'](typeof _0x3704b3,_0x3762c9['Qhlvb'])){const _0x256c75=Object['values'](_0x3704b3);!_0x256c75['every'](_0x3ee91b=>_0x3ee91b===null||_0x3ee91b===undefined||_0x3ee91b==='')&&(_0x4fff76+=0x1);}});if(_0x3762c9[_0x5c764f(0x101)](_0x4fff76,0x0))delete _0x24db20[_0x3762c9[_0x5c764f(0x158)]];else{const _0x19f876=[];Object[_0x5c764f(0xed)](_0x94d2a2)[_0x5c764f(0x153)](_0x3bcbe9=>{const _0x868625=_0x5c764f,[_0x10a7e7,_0x3431e7,_0x522e6a,_0x11f6c0]=_0x3bcbe9[_0x868625(0xd3)](',\x20');let _0x26d803={};if(!_0x11f6c0){const _0x5e7bc5={};_0x5e7bc5[_0x868625(0x107)]=_0x10a7e7,_0x5e7bc5[_0x868625(0x149)]=_0x3431e7,_0x5e7bc5['browser']=_0x522e6a,_0x26d803=_0x5e7bc5;}else{const _0x33a4ca={};_0x33a4ca['os']=_0x10a7e7,_0x33a4ca[_0x868625(0x149)]=_0x3431e7,_0x33a4ca[_0x868625(0xee)]=_0x522e6a,_0x33a4ca['browserVersion']=_0x11f6c0,_0x26d803=_0x33a4ca;}const _0x4ea139={},_0xeb7964=_0x94d2a2[_0x3bcbe9];Object[_0x868625(0xed)](_0xeb7964)[_0x868625(0x153)](_0x197c49=>{const _0x526b8e=_0x868625;_0x3762c9['CJiBO'](_0xeb7964[_0x197c49][_0x526b8e(0x13f)],0x0)&&(_0x4ea139[_0x197c49]=_0xeb7964[_0x197c49]);}),_0x3762c9[_0x868625(0x135)](Object['keys'](_0x4ea139)[_0x868625(0x13f)],0x0)&&(_0x26d803[_0x3762c9[_0x868625(0xef)]]=_0x4ea139,_0x19f876[_0x868625(0x142)](_0x26d803));}),_0x3762c9[_0x5c764f(0x108)](_0x19f876[_0x5c764f(0x13f)],0x0)?_0x24db20['error']=_0x19f876:delete _0x24db20[_0x3762c9[_0x5c764f(0x158)]];}}}}catch(_0x111078){delete _0x24db20[_0x3762c9[_0x5c764f(0x158)]],logger['debug'](_0x3762c9['rUppt'](_0x3762c9[_0x5c764f(0xe7)],_0x111078));}const _0x327e80=helper[_0x5c764f(0x138)](_0x20531a,_0x20531a[_0x5c764f(0x151)]),_0x2d6aad={'userName':helper[_0x5c764f(0xf7)](_0x20531a),'accessKey':helper[_0x5c764f(0x113)](_0x20531a),'event_type':_0x5e3a7d,'detectedFramework':_0x3bd2ef,'buildHashedId':globals[_0x5c764f(0xde)](_0x3762c9[_0x5c764f(0xfd)]),'optimalHubUrl':helper[_0x5c764f(0x13e)](),'event_properties':{'testhub_uuid':process[_0x5c764f(0x129)][testHubConstants['ENV_VAR'][_0x5c764f(0xd4)]]||'','sdkRunId':global[_0x5c764f(0xfa)],'product_map':_0x3762c9[_0x5c764f(0x13c)](getProductMap,_0x20531a),'productMap':_0x3762c9[_0x5c764f(0x126)](getProductMap,_0x20531a),'language_framework':_0x20531a[_0x5c764f(0xdf)]||_0x3762c9['byeam'],'referrer':helper[_0x5c764f(0x155)](_0x3bd2ef),'framework':_0x20531a[_0x5c764f(0x151)],'frameworkVersion':helper[_0x5c764f(0x12d)](_0x3bd2ef),'automationFramework':_0x327e80[_0x5c764f(0xe1)],'automationFrameworkVersion':_0x327e80['version'],'language':_0x3762c9[_0x5c764f(0xff)],'languageVersion':process[_0x5c764f(0xfc)],'product':_0x18a9de,'buildName':_0x20531a[_0x5c764f(0x116)]||_0x3762c9['PtdAq'],'buildIdentifier':_0x3cf6f3,'os':os[_0x5c764f(0x147)]()||_0x3762c9[_0x5c764f(0x130)],'hostname':os[_0x5c764f(0x15c)]()||_0x3762c9[_0x5c764f(0x130)],..._0x24db20,'isCLIEnabled':_0x57ae2a}};try{_0x3762c9[_0x5c764f(0x159)](_0x5e3a7d,_0x3762c9[_0x5c764f(0x117)])&&(_0x2d6aad['event_properties'][_0x5c764f(0xe9)]=helper['sanitizeBrowserStackConfig'](_0x20531a)),_0x3762c9[_0x5c764f(0x159)](_0x3bd2ef,_0x3762c9[_0x5c764f(0xd1)])?_0x2d6aad[_0x5c764f(0xd7)][_0x5c764f(0x143)]=helper[_0x5c764f(0xe4)][_0x5c764f(0xd8)](null,_0x3762c9[_0x5c764f(0x12f)](getTransformPath),!![]):_0x2d6aad[_0x5c764f(0xd7)][_0x5c764f(0xfe)]=helper[_0x5c764f(0xd2)](_0x3762c9[_0x5c764f(0x134)]);}catch(_0x3558c2){logger[_0x5c764f(0xf3)](_0x5c764f(0xd0)+_0x3558c2);}const _0x3232dd={};_0x3232dd['content-type']=_0x3762c9[_0x5c764f(0x144)];const _0x55f63a={'headers':_0x3232dd,'body':_0x2d6aad,'auth':{'user':helper[_0x5c764f(0xf7)](_0x20531a),'pass':helper['getAccessKey'](_0x20531a)},'json':!![]};logger['debug'](_0x5c764f(0x14c)+JSON['stringify'](_0x55f63a['body'])[_0x5c764f(0x156)](new RegExp(helper['getUserName'](_0x20531a),'g'),_0x3762c9['lFupW'])[_0x5c764f(0x156)](new RegExp(helper[_0x5c764f(0x113)](_0x20531a),'g'),_0x3762c9[_0x5c764f(0xd6)]));try{const _0xdce5a1=await helper[_0x5c764f(0x14a)](_0x3762c9['SDAAq'],FUNNEL_INSTRUMENTATION_API_URL,_0x55f63a,_0x20531a);logger[_0x5c764f(0xf3)](_0x5c764f(0x11b)+_0x5e3a7d+_0x5c764f(0xe3)+util[_0x5c764f(0xcf)]('%j',_0xdce5a1));}catch(_0x44d285){logger[_0x5c764f(0xf3)](_0x5c764f(0xf2)+FUNNEL_INSTRUMENTATION_API_URL+_0x5c764f(0x128)+util['format'](_0x44d285));}},exports[a149_0x232c7b(0x124)]=async(_0x4b8a5b,_0x2fd863=![])=>{const _0xd7ef75=a149_0x232c7b,_0x2df0fd={'brWPC':function(_0x4cad25){return _0x4cad25();},'hErKf':'finishedMetadata','yGCze':_0xd7ef75(0xec),'JINjw':'SDKTestSuccessful','SFVQm':function(_0x52657d,_0x33cfd2,_0x623402){return _0x52657d(_0x33cfd2,_0x623402);},'TJsQx':function(_0x5bdd7f,_0x10a4f0){return _0x5bdd7f+_0x10a4f0;},'HfbLp':_0xd7ef75(0x145)};try{await _0x4b8a5b[_0xd7ef75(0x120)](),_0x2df0fd[_0xd7ef75(0xf0)](printNudgeLocalNotSetError);const _0x3f895a={};_0x3f895a[_0xd7ef75(0x10d)]=_0x4b8a5b[_0xd7ef75(0x115)]?_0x4b8a5b[_0xd7ef75(0x115)]:'{}';const _0x9ef37d=_0x3f895a,_0x269fdf=Object['assign']({},_0x9ef37d);!!_0x4b8a5b[_0xd7ef75(0x140)]&&(_0x269fdf[_0x2df0fd['hErKf']]={'reason':_0x2df0fd[_0xd7ef75(0x122)],'signal':_0x4b8a5b[_0xd7ef75(0x140)]});unhandledErrors=_0x4b8a5b['unhandledErrors'][_0xd7ef75(0xfb)]('\x0a');let _0x1e4b63,_0x449472,_0x5c7d6a;helper['isTurboScaleSession'](_0x4b8a5b['config'])?([_0x1e4b63,_0x449472]=await helper['getTurboScaleBuildLink'](_0x4b8a5b[_0xd7ef75(0x121)]),[_0x5c7d6a]=await Promise['all']([helper[_0xd7ef75(0x13b)](_0x1e4b63,_0x4b8a5b['config']),exports[_0xd7ef75(0xe2)](_0x2df0fd['JINjw'],_0x269fdf,_0x4b8a5b[_0xd7ef75(0x121)],_0x4b8a5b[_0xd7ef75(0x151)],_0x2fd863)])):([_0x1e4b63,_0x449472]=await helper[_0xd7ef75(0x13a)](_0x4b8a5b[_0xd7ef75(0x121)]),[_0x5c7d6a]=await Promise[_0xd7ef75(0xda)]([helper[_0xd7ef75(0x152)](_0x1e4b63,_0x4b8a5b[_0xd7ef75(0x121)]),exports[_0xd7ef75(0xe2)](_0x2df0fd[_0xd7ef75(0xe5)],_0x269fdf,_0x4b8a5b[_0xd7ef75(0x121)],_0x4b8a5b[_0xd7ef75(0x151)],_0x2fd863)])),_0x5c7d6a&&await _0x2df0fd[_0xd7ef75(0x14d)](generateCIArtifacts,_0x5c7d6a,_0x449472),logger[_0xd7ef75(0xce)]('SDK\x20run\x20ended\x20for\x20id:\x20'+_0x4b8a5b[_0xd7ef75(0xfa)]+',\x20testhub\x20id:\x20'+process[_0xd7ef75(0x129)][_0xd7ef75(0xd4)]),await helper[_0xd7ef75(0xea)](_0x4b8a5b[_0xd7ef75(0x121)]);}catch(_0x3f979d){logger['debug'](_0x2df0fd[_0xd7ef75(0x131)](_0x2df0fd[_0xd7ef75(0x10a)],_0x3f979d));}helper[_0xd7ef75(0x110)]();},exports['getStackTraceAsString']=_0x152a92=>{const _0x164251=a149_0x232c7b,_0x3f2c98={'eIXLW':function(_0x46a7cf,_0x53f785){return _0x46a7cf instanceof _0x53f785;},'efFiY':function(_0x332e5b,_0x1ce391){return _0x332e5b(_0x1ce391);}};try{if(_0x3f2c98[_0x164251(0x11c)](_0x152a92,Error))return _0x152a92[_0x164251(0xf8)]||_0x152a92['toString']();return _0x3f2c98[_0x164251(0x139)](String,_0x152a92);}catch(_0x502b18){return _0x152a92?_0x152a92['toString']():'';}},exports[a149_0x232c7b(0x12a)]=_0x3a1fdb=>{const _0x1abcff=a149_0x232c7b,_0x3d47c6={};_0x3d47c6[_0x1abcff(0xe8)]=function(_0x91f27a,_0x4c2c4c){return _0x91f27a===_0x4c2c4c;};const _0x487392=_0x3d47c6;return!_0x3a1fdb||_0x487392[_0x1abcff(0xe8)](_0x3a1fdb[_0x1abcff(0x11d)](),'');},exports[a149_0x232c7b(0x12e)]=_0x4bfc7e=>{const _0x275de8=a149_0x232c7b,_0x9b347d={};_0x9b347d['JmmSD']=function(_0x16d2e5,_0x56d838){return _0x16d2e5|_0x56d838;};const _0x3e9a7f=_0x9b347d;try{return fs[_0x275de8(0x109)](_0x4bfc7e,_0x3e9a7f[_0x275de8(0x112)](fs['constants']['W_OK'],fs[_0x275de8(0xd9)][_0x275de8(0xeb)])),!![];}catch(_0x18c83a){return![];}},exports[a149_0x232c7b(0x123)]=_0x30a073=>{const _0x21fff9=a149_0x232c7b;try{fs[_0x21fff9(0x105)](_0x30a073,0x1ff),logger[_0x21fff9(0xf3)]('Directory\x20'+_0x30a073+_0x21fff9(0xdd));}catch(_0x293ebb){logger[_0x21fff9(0x10d)]('Failed\x20to\x20set\x20directory\x20access:\x20'+exports[_0x21fff9(0x15b)](_0x293ebb));}};