browserstack-node-sdk 1.53.0 → 1.53.1

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
- function a136_0x3079(){const _0x4a834f=['\x20retry\x20runs\x20exceeded','winstonLogger','statusText','browserstackAutomation','10342moafns','2304099pqvQfY','tUfKT','BS_TESTOPS_ALLOW_SCREENSHOTS','WCJYj','format','TestRunSkipped','max','BROWSERSTACK_BUILD_RUN_IDENTIFIER','true','error','logs','96UkpPhN','HookRunStarted','../logger','bfbKl','getLogTag','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','jBbeJ','inspect','WwJvY','10260VhjlRS','Retry\x20runs\x20exceeded','password','aZoaA','launch','Test_End_Upload','uAtVH','SiHUt','SpUWL','path','BS_TESTOPS_BUILD_HASHED_ID','projectName','buildIdentifier','app','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','EqVlb','876TYRwBZ','api/v1/event','getCiInfo','test_run_uuid','getGitMetaData','username','debug','BROWSERSTACK_TESTHUB_UUID','pZlos','data','Content-Type','ZZbBD','frameworkName','4435176GOdipG','allow_screenshots','./requestQueueHandler','length','Log_Upload','CBTSessionCreated','LCqTO','getUserName','OYtpe','gqWhF','pendingUploads','\x20REQUEST\x20TO\x20','Data\x20upload\x20to\x20BrowserStack\x20','UuaPN','pDzsF','null','buildDescription','QwDTf','jILiR','mbHtv','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','uTrpw','application/json','Test_Start_Upload','5712Smfwxq','PBGRN','uploadEventData','toISOString','response','UxuXk','BdHeD','build_hashed_id','irfUw','../../bin/utils/constants','cwd','nestedKeyValue','getAgentVersion','X-BSTACK-TESTOPS','status','frameworkVersion','Build\x20creation\x20successful!','jwt','TEST_REPORTING_ANALYTICS','test_run','qYoxf','RBfmd','Owuko','info','ERROR_ACCESS_DENIED','JTmtz','dumpG','kkmsj','BZOCE','HookRunFinished','message','CBT_Upload','AegZV','DHgWr','3361920vDDuJP','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','IQbdJ','qTiJk','TestRunStarted','BKxZg','\x20failed\x20due\x20to\x20','QQqIV','TestRunFinished','iIUIS','xCAIs','jpZNJ','api/v1/builds','ESVzK','DpbTT','85584VmZcgr','\x20:\x20','../../helpers/testhub/utils','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','includes','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','headers','eventUrl','add','owOOy','BROWSERSTACK_TESTHUB_JWT','env','LogCreated','iObQV','EXCEPTION\x20IN\x20','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','../helper','util','POST','start','hook_run','./constants','BS_TESTOPS_BUILD_COMPLETED','OQuhe','kfYeh','dQekF','OufOL','Ybopc','otTcs','YXLto','peHth','BS_A11Y_JWT','tWgsB','false','baTXq','35596KXIcnB','gHzXj','stringify','./utils','requestQueueHandler','Sending\x20trace\x20zip\x20for\x20test:\x20','ERROR_INVALID_CREDENTIALS','DTsBv','7HTTjse','event_type','60iPexWs','Batch-Queue','EmgJD','getHostInfo','NNKTy','Bearer\x20','getInstance','ThYGK'];a136_0x3079=function(){return _0x4a834f;};return a136_0x3079();}const a136_0x4b830e=a136_0x3a45;function a136_0x3a45(_0x1b661d,_0x2148d0){const _0x307992=a136_0x3079();return a136_0x3a45=function(_0x3a453f,_0x1b3b32){_0x3a453f=_0x3a453f-0x12c;let _0x1b8d59=_0x307992[_0x3a453f];return _0x1b8d59;},a136_0x3a45(_0x1b661d,_0x2148d0);}(function(_0x47365b,_0x996b5d){const _0x2cbc9e=a136_0x3a45,_0x27bb0d=_0x47365b();while(!![]){try{const _0x58fab1=-parseInt(_0x2cbc9e(0x1c3))/0x1*(-parseInt(_0x2cbc9e(0x1cf))/0x2)+parseInt(_0x2cbc9e(0x1b7))/0x3*(parseInt(_0x2cbc9e(0x18a))/0x4)+parseInt(_0x2cbc9e(0x1d8))/0x5*(parseInt(_0x2cbc9e(0x134))/0x6)+-parseInt(_0x2cbc9e(0x1b5))/0x7*(-parseInt(_0x2cbc9e(0x141))/0x8)+-parseInt(_0x2cbc9e(0x1c4))/0x9+parseInt(_0x2cbc9e(0x17b))/0xa+parseInt(_0x2cbc9e(0x1ad))/0xb*(-parseInt(_0x2cbc9e(0x159))/0xc);if(_0x58fab1===_0x996b5d)break;else _0x27bb0d['push'](_0x27bb0d['shift']());}catch(_0x42d365){_0x27bb0d['push'](_0x27bb0d['shift']());}}}(a136_0x3079,0x4dada));const bsSetupHelper=require(a136_0x4b830e(0x19a)),path=require(a136_0x4b830e(0x12d)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a136_0x4b830e(0x1b0)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a136_0x4b830e(0x19f)),RequestQueueHandler=require(a136_0x4b830e(0x143)),logger=require(a136_0x4b830e(0x1d1))[a136_0x4b830e(0x1c0)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a136_0x4b830e(0x18c)),util=require(a136_0x4b830e(0x19b)),constants=require(a136_0x4b830e(0x162));class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a136_0x4b830e(0x1bd)]();static async[a136_0x4b830e(0x1dc)](_0x4911e3,_0x12fb57){const _0x2ae52e=a136_0x4b830e,_0x28bab0={'dumpG':function(_0x340e0f,_0x43d16b){return _0x340e0f||_0x43d16b;},'kkmsj':function(_0x42a496,_0xc93598){return _0x42a496===_0xc93598;},'AegZV':function(_0x5f40cb,_0x50c90e){return _0x5f40cb(_0x50c90e);},'EqVlb':_0x2ae52e(0x132),'iObQV':'false','wYfPj':'json','Owuko':function(_0x431e3d,_0x11d17c){return _0x431e3d(_0x11d17c);},'OQuhe':function(_0x430bcb,_0x1351b3){return _0x430bcb(_0x1351b3);},'tUfKT':function(_0x57d62b,_0x9e7446,_0x590abe,_0x1eec92,_0x2c9fe4){return _0x57d62b(_0x9e7446,_0x590abe,_0x1eec92,_0x2c9fe4);},'RBfmd':_0x2ae52e(0x19c),'XpStR':_0x2ae52e(0x187),'Ybopc':_0x2ae52e(0x169),'tWgsB':function(_0x150b3b){return _0x150b3b();},'vLqxp':_0x2ae52e(0x1cc),'BdHeD':_0x2ae52e(0x150),'uTrpw':function(_0x134abd,_0x31f87e){return _0x134abd(_0x31f87e);},'DpbTT':function(_0x14f563,_0x70b919){return _0x14f563(_0x70b919);},'qTiJk':_0x2ae52e(0x1b3),'ZZbBD':_0x2ae52e(0x171),'aZoaA':'ERROR_SDK_DEPRECATED'};logger[_0x2ae52e(0x170)](_0x2ae52e(0x155)+util[_0x2ae52e(0x1d6)](_0x4911e3));const _0x36d7cd=bsSetupHelper[_0x2ae52e(0x148)](_0x4911e3),_0x35fd86=bsSetupHelper['getAccessKey'](_0x4911e3),_0x1af35e=_0x28bab0[_0x2ae52e(0x173)](_0x36d7cd,'')+':'+_0x28bab0[_0x2ae52e(0x173)](_0x35fd86,'');if(_0x28bab0[_0x2ae52e(0x174)](_0x1af35e,':'))return _0x28bab0[_0x2ae52e(0x179)](debug,_0x28bab0[_0x2ae52e(0x133)]),process[_0x2ae52e(0x195)]['BS_TESTOPS_BUILD_COMPLETED']=_0x28bab0[_0x2ae52e(0x197)],[null,null];let _0x1a1a5b=![],_0x2c69b2=![];if(_0x4911e3[_0x2ae52e(0x1c2)]&&_0x4911e3[_0x2ae52e(0x131)])_0x2c69b2=!![];else _0x4911e3[_0x2ae52e(0x1c2)]&&(_0x1a1a5b=!![]);try{const _0x2ff4dd={'format':_0x28bab0['wYfPj'],'project_name':_0x4911e3[_0x2ae52e(0x12f)]||'','name':_0x4911e3['buildName']||path['basename'](path['resolve'](process[_0x2ae52e(0x163)]())),'build_identifier':_0x4911e3[_0x2ae52e(0x130)],'description':_0x4911e3[_0x2ae52e(0x151)]||'','start_time':new Date()[_0x2ae52e(0x15c)](),'tags':_0x28bab0[_0x2ae52e(0x16f)](getCustomTags,_0x4911e3),'host_info':bsSetupHelper[_0x2ae52e(0x1ba)](),'ci_info':bsSetupHelper[_0x2ae52e(0x136)](),'build_run_identifier':process[_0x2ae52e(0x195)][_0x2ae52e(0x1cb)],'failed_tests_rerun':process['env']['BROWSERSTACK_RERUN']||![],'version_control':await bsSetupHelper[_0x2ae52e(0x138)](),'observability_version':{'frameworkName':_0x12fb57[_0x2ae52e(0x140)],'frameworkVersion':_0x12fb57[_0x2ae52e(0x168)],'sdkVersion':bsSetupHelper[_0x2ae52e(0x165)]()},'product_map':_0x28bab0[_0x2ae52e(0x16f)](getProductMap,_0x4911e3),'test_orchestration':_0x28bab0['AegZV'](getTestOrchestrationBuildStartData,_0x4911e3)},_0x523d30={};_0x523d30[_0x2ae52e(0x139)]=_0x36d7cd,_0x523d30[_0x2ae52e(0x1da)]=_0x35fd86;const _0x33a0d8={'auth':_0x523d30,'headers':_0x28bab0[_0x2ae52e(0x1a1)](getDefaultHeaders,![])},_0x93b938=await _0x28bab0[_0x2ae52e(0x1c5)](nodeRequest,_0x28bab0[_0x2ae52e(0x16e)],_0x28bab0['XpStR'],_0x2ff4dd,_0x33a0d8);_0x28bab0['Owuko'](debug,_0x28bab0[_0x2ae52e(0x1a5)]);const _0x5d82ca=_0x93b938['data'];_0x5d82ca[_0x2ae52e(0x160)]&&(process[_0x2ae52e(0x195)][_0x2ae52e(0x13b)]=_0x5d82ca['build_hashed_id']);if(_0x28bab0[_0x2ae52e(0x1aa)](isTestObservabilitySession)){process[_0x2ae52e(0x195)][_0x2ae52e(0x1a0)]=_0x28bab0['vLqxp'];if(_0x5d82ca['jwt']){process['env']['BS_TESTOPS_JWT']=_0x5d82ca[_0x2ae52e(0x16a)];const _0x3dd5ea={};_0x3dd5ea[_0x2ae52e(0x139)]=_0x36d7cd,_0x3dd5ea[_0x2ae52e(0x1da)]=_0x35fd86,process[_0x2ae52e(0x195)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x2ae52e(0x1af)](_0x3dd5ea);}_0x5d82ca[_0x2ae52e(0x160)]&&(process[_0x2ae52e(0x195)][_0x2ae52e(0x12e)]=_0x5d82ca['build_hashed_id']),_0x5d82ca[_0x2ae52e(0x142)]&&(process[_0x2ae52e(0x195)][_0x2ae52e(0x1c6)]=_0x5d82ca[_0x2ae52e(0x142)]['toString']());}return[_0x93b938[_0x2ae52e(0x13d)]['jwt'],_0x93b938[_0x2ae52e(0x13d)][_0x2ae52e(0x160)],_0x93b938[_0x2ae52e(0x13d)]['allow_screenshots']];}catch(_0x23faac){process[_0x2ae52e(0x195)][_0x2ae52e(0x13b)]=_0x28bab0['BdHeD'],process[_0x2ae52e(0x195)][_0x2ae52e(0x1a0)]=_0x28bab0[_0x2ae52e(0x197)],process['env']['BS_TESTOPS_JWT']=_0x28bab0[_0x2ae52e(0x15f)],process['env'][_0x2ae52e(0x12e)]=_0x28bab0[_0x2ae52e(0x15f)],process[_0x2ae52e(0x195)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x28bab0[_0x2ae52e(0x15f)];_0x23faac[_0x2ae52e(0x15d)]?_0x28bab0[_0x2ae52e(0x156)](debug,_0x2ae52e(0x17c)+_0x23faac[_0x2ae52e(0x15d)][_0x2ae52e(0x167)]+'\x20'+_0x23faac[_0x2ae52e(0x15d)][_0x2ae52e(0x1c1)]+'\x20'+JSON[_0x2ae52e(0x1af)](_0x23faac[_0x2ae52e(0x15d)][_0x2ae52e(0x13d)])):_0x28bab0[_0x2ae52e(0x189)](debug,_0x2ae52e(0x17c)+(_0x23faac[_0x2ae52e(0x177)]||_0x23faac));if(_0x23faac&&_0x23faac[_0x2ae52e(0x177)]){const _0x2e2bd4=_0x23faac[_0x2ae52e(0x177)];switch(_0x23faac['errorType']){case _0x28bab0[_0x2ae52e(0x17e)]:logger[_0x2ae52e(0x1cd)](_0x2e2bd4);break;case _0x28bab0[_0x2ae52e(0x13f)]:logger[_0x2ae52e(0x170)](_0x2e2bd4);break;case _0x28bab0[_0x2ae52e(0x1db)]:logger[_0x2ae52e(0x1cd)](_0x2e2bd4);break;default:logger[_0x2ae52e(0x1cd)](_0x2e2bd4);}}else console[_0x2ae52e(0x170)](_0x2ae52e(0x14d)+constants['TEST_REPORTING_ANALYTICS']+_0x2ae52e(0x181)+_0x23faac);return[null,null,null];}}static async['waitForBuildStatus'](){const _0x3062fa=a136_0x4b830e,_0x33d502={'SiHUt':_0x3062fa(0x1cc),'DHgWr':'false','qYoxf':function(_0x865f33,_0x59990f){return _0x865f33(_0x59990f);}},_0x1b32e8=process[_0x3062fa(0x195)][_0x3062fa(0x1a0)];if([_0x33d502[_0x3062fa(0x1df)],_0x33d502['DHgWr']][_0x3062fa(0x18e)](_0x1b32e8))return;while([_0x33d502['SiHUt'],_0x33d502[_0x3062fa(0x17a)]]['includes'](_0x1b32e8)){await _0x33d502[_0x3062fa(0x16d)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a136_0x4b830e(0x1d3)](_0x1c8e31){const _0x5e4647=a136_0x4b830e,_0x84e382={};_0x84e382[_0x5e4647(0x1bb)]=_0x5e4647(0x158),_0x84e382[_0x5e4647(0x147)]=_0x5e4647(0x1dd),_0x84e382['WwJvY']='Test_Skipped_Upload',_0x84e382[_0x5e4647(0x15e)]=_0x5e4647(0x145),_0x84e382['otTcs']='Hook_Start_Upload',_0x84e382['peHth']='Hook_End_Upload',_0x84e382[_0x5e4647(0x152)]=_0x5e4647(0x178);const _0x1b690c=_0x84e382,_0x15049b={};return _0x15049b[_0x5e4647(0x17f)]=_0x1b690c[_0x5e4647(0x1bb)],_0x15049b[_0x5e4647(0x183)]=_0x1b690c[_0x5e4647(0x147)],_0x15049b[_0x5e4647(0x1c9)]=_0x1b690c[_0x5e4647(0x1d7)],_0x15049b[_0x5e4647(0x196)]=_0x1b690c[_0x5e4647(0x15e)],_0x15049b[_0x5e4647(0x1d0)]=_0x1b690c[_0x5e4647(0x1a6)],_0x15049b[_0x5e4647(0x176)]=_0x1b690c[_0x5e4647(0x1a8)],_0x15049b[_0x5e4647(0x146)]=_0x1b690c[_0x5e4647(0x152)],_0x15049b[_0x1c8e31[_0x5e4647(0x1b6)]];}static async['sendEventData'](_0x5a4660,_0xd560cb=0x0,_0x15898a=null){const _0x41bff5=a136_0x4b830e,_0x297a30={'OYtpe':function(_0x1ba44f,_0x5c3471){return _0x1ba44f===_0x5c3471;},'pDzsF':'sendTraceZip','WCJYj':function(_0x1b0abb,_0x3a2f96){return _0x1b0abb!==_0x3a2f96;},'mbHtv':_0x41bff5(0x157),'jBbeJ':_0x41bff5(0x1cc),'OISjJ':function(_0xa5dbf0,_0x3c8d28,_0x2e8911,_0x494e5d,_0x136fc6){return _0xa5dbf0(_0x3c8d28,_0x2e8911,_0x494e5d,_0x136fc6);},'EmgJD':'POST','UuaPN':function(_0x4ad9fe,_0x3608e1,_0x166453,_0x75eeb7,_0xb71d35){return _0x4ad9fe(_0x3608e1,_0x166453,_0x75eeb7,_0xb71d35);},'gqWhF':function(_0x57bed,_0x1f5885){return _0x57bed(_0x1f5885);},'kfYeh':function(_0x42ad24,_0x461101){return _0x42ad24!==_0x461101;},'ThYGK':_0x41bff5(0x1b8),'BKxZg':function(_0x2d16cb,_0x5b6e4e){return _0x2d16cb-_0x5b6e4e;},'YXLto':function(_0x3df469,_0x2ff14c){return _0x3df469===_0x2ff14c;},'dQekF':_0x41bff5(0x135),'owOOy':'success','iIUIS':function(_0xcd92d6,_0x447501){return _0xcd92d6(_0x447501);},'SpUWL':_0x41bff5(0x1cd)};_0x297a30[_0x41bff5(0x149)](_0x15898a,_0x297a30['pDzsF'])&&logger[_0x41bff5(0x13a)](_0x41bff5(0x1b2)+_0x5a4660[_0x41bff5(0x1ce)][0x0]['test_run_uuid']);const _0x4f98b8=await this[_0x41bff5(0x1d3)](_0x5a4660);let _0x21f333=_0x5a4660,_0x318a03=EVENT_ENDPOINT;_0x297a30[_0x41bff5(0x1c7)](_0x15898a,_0x297a30['pDzsF'])&&this[_0x41bff5(0x1b1)][_0x41bff5(0x19d)]();const {shouldProceed:_0x3f4c38,proceedWithData:_0x120004,proceedWithUrl:_0x29a846}=this[_0x41bff5(0x1b1)][_0x41bff5(0x192)](_0x5a4660);if(!_0x3f4c38)return;else _0x120004&&(_0x21f333=_0x120004,_0x318a03=_0x29a846);const _0x15c064={};_0x15c064['Authorization']=_0x41bff5(0x1bc)+process[_0x41bff5(0x195)][_0x41bff5(0x194)],_0x15c064[_0x41bff5(0x13e)]=_0x297a30[_0x41bff5(0x154)],_0x15c064[_0x41bff5(0x166)]=_0x297a30[_0x41bff5(0x1d5)];const _0x330371={};_0x330371[_0x41bff5(0x190)]=_0x15c064;const _0x4cfbdf=_0x330371;let _0x1953b5;try{_0x297a30[_0x41bff5(0x149)](_0x15898a,_0x297a30[_0x41bff5(0x14f)])?(logger[_0x41bff5(0x13a)](_0x41bff5(0x18f)+_0x5a4660?.[_0x41bff5(0x1ce)][0x0]?.[_0x41bff5(0x137)]),_0x1953b5=await _0x297a30['OISjJ'](asyncAwaitNodeReq,_0x297a30[_0x41bff5(0x1b9)],_0x318a03,_0x21f333,_0x4cfbdf),logger['debug'](_0x41bff5(0x18d)+_0x5a4660?.[_0x41bff5(0x1ce)][0x0]?.[_0x41bff5(0x137)])):_0x1953b5=await _0x297a30[_0x41bff5(0x14e)](nodeRequest,_0x297a30[_0x41bff5(0x1b9)],_0x318a03,_0x21f333,_0x4cfbdf);if(_0x1953b5[_0x41bff5(0x13d)][_0x41bff5(0x1cd)]){const _0x32cefe={};_0x32cefe[_0x41bff5(0x177)]=_0x1953b5['data'][_0x41bff5(0x1cd)];throw _0x32cefe;}else{_0x297a30[_0x41bff5(0x14a)](debug,(_0x297a30[_0x41bff5(0x1a2)](_0x318a03,this[_0x41bff5(0x1b1)][_0x41bff5(0x191)])?_0x4f98b8:_0x297a30[_0x41bff5(0x1be)])+'['+_0xd560cb+']\x20event\x20successful!'),this[_0x41bff5(0x1b1)][_0x41bff5(0x14b)]=Math['max'](0x0,_0x297a30['BKxZg'](this[_0x41bff5(0x1b1)][_0x41bff5(0x14b)],_0x297a30[_0x41bff5(0x1a7)](_0x318a03,_0x297a30['dQekF'])?0x1:_0x21f333[_0x41bff5(0x144)]));const _0x4c5807={};return _0x4c5807[_0x41bff5(0x167)]=_0x297a30[_0x41bff5(0x193)],_0x4c5807[_0x41bff5(0x177)]='',_0x4c5807;}}catch(_0x4d142a){_0x4d142a['response']?_0x297a30[_0x41bff5(0x184)](debug,_0x41bff5(0x198)+(_0x297a30[_0x41bff5(0x1a2)](_0x318a03,this['requestQueueHandler']['eventUrl'])?_0x4f98b8:_0x297a30[_0x41bff5(0x1be)])+_0x41bff5(0x14c)+constants['TEST_REPORTING_ANALYTICS']+'\x20:\x20'+_0x4d142a[_0x41bff5(0x15d)]['status']+'\x20'+_0x4d142a[_0x41bff5(0x15d)]['statusText']+'\x20'+util[_0x41bff5(0x1c8)](_0x4d142a['response']['data'])):_0x297a30['gqWhF'](debug,'EXCEPTION\x20IN\x20'+(_0x297a30[_0x41bff5(0x1c7)](_0x318a03,this[_0x41bff5(0x1b1)]['eventUrl'])?_0x4f98b8:_0x297a30[_0x41bff5(0x1be)])+_0x41bff5(0x14c)+constants['TEST_REPORTING_ANALYTICS']+_0x41bff5(0x18b)+util[_0x41bff5(0x1c8)](_0x4d142a));this[_0x41bff5(0x1b1)][_0x41bff5(0x14b)]=Math[_0x41bff5(0x1ca)](0x0,_0x297a30[_0x41bff5(0x180)](this[_0x41bff5(0x1b1)][_0x41bff5(0x14b)],_0x297a30[_0x41bff5(0x149)](_0x318a03,_0x297a30[_0x41bff5(0x1a3)])?0x1:_0x21f333[_0x41bff5(0x144)]));const _0x54e0f8={};return _0x54e0f8['status']=_0x297a30[_0x41bff5(0x12c)],_0x54e0f8['message']=_0x4d142a['message']||(_0x4d142a[_0x41bff5(0x15d)]?_0x4d142a['response'][_0x41bff5(0x167)]+':'+_0x4d142a[_0x41bff5(0x15d)]['statusText']:_0x4d142a),_0x54e0f8;}}static async[a136_0x4b830e(0x15b)](_0x38bae8,_0x106b24=0x0){const _0x1f1e8e=a136_0x4b830e,_0x4fcde4={'OufOL':function(_0x537bea,_0x64693e){return _0x537bea+_0x64693e;},'PBGRN':function(_0x533859,_0x5ce56d){return _0x533859(_0x5ce56d);},'ESVzK':_0x1f1e8e(0x16c),'jpZNJ':'uuid','ZOWin':_0x1f1e8e(0x19e),'bfbKl':function(_0xd0b134,_0x1e9850,_0x5ccb29){return _0xd0b134(_0x1e9850,_0x5ccb29);},'pZlos':'uploadEventData','gHzXj':function(_0x2b8f94,_0xe29fea){return _0x2b8f94===_0xe29fea;},'zJXJe':function(_0x4dc975,_0x237dde){return _0x4dc975!==_0x237dde;},'QQqIV':_0x1f1e8e(0x150),'OULxR':_0x1f1e8e(0x1cc),'uAtVH':function(_0x1ba3f0){return _0x1ba3f0();},'znakn':function(_0x549c81,_0x272e15){return _0x549c81(_0x272e15);},'irfUw':function(_0x5c9f78,_0x41ac25){return _0x5c9f78-_0x41ac25;},'JTmtz':_0x1f1e8e(0x1cd),'DTsBv':_0x1f1e8e(0x1d4),'xCAIs':function(_0x59cbea,_0x43c0b9){return _0x59cbea>=_0x43c0b9;},'baTXq':function(_0x57a7d8,_0x1daffa){return _0x57a7d8(_0x1daffa);},'BZOCE':function(_0x62f313,_0x21822e){return _0x62f313!==_0x21822e;},'QcyLu':_0x1f1e8e(0x1d9),'IQbdJ':function(_0x51489b,_0xa71885){return _0x51489b!==_0xa71885;},'jILiR':_0x1f1e8e(0x1ab),'VRMIp':function(_0x5db00a,_0x1fd737,_0x14f267){return _0x5db00a(_0x1fd737,_0x14f267);}},_0x51439b=this[_0x1f1e8e(0x1d3)](_0x38bae8);_0x4fcde4[_0x1f1e8e(0x15a)](trace,'Processing\x20event\x20-\x20\x27'+_0x38bae8['event_type']+'\x27\x20'+(bsSetupHelper['nestedKeyValue'](_0x38bae8,[_0x4fcde4[_0x1f1e8e(0x188)],_0x4fcde4['jpZNJ']])||bsSetupHelper[_0x1f1e8e(0x164)](_0x38bae8,[_0x4fcde4['ZOWin'],_0x4fcde4[_0x1f1e8e(0x186)]])));if(!_0x4fcde4[_0x1f1e8e(0x1d2)](shouldProcessEventForTesthub,_0x38bae8[_0x1f1e8e(0x1b6)],_0x4fcde4[_0x1f1e8e(0x13c)]))return;_0x4fcde4[_0x1f1e8e(0x1ae)](_0x106b24,0x0)&&process[_0x1f1e8e(0x195)]['BROWSERSTACK_TESTHUB_JWT']&&_0x4fcde4['zJXJe'](process[_0x1f1e8e(0x195)][_0x1f1e8e(0x194)],_0x4fcde4[_0x1f1e8e(0x182)])&&(this[_0x1f1e8e(0x1b1)][_0x1f1e8e(0x14b)]+=0x1);if(_0x4fcde4[_0x1f1e8e(0x1ae)](process[_0x1f1e8e(0x195)][_0x1f1e8e(0x1a0)],_0x4fcde4['OULxR'])||process[_0x1f1e8e(0x195)][_0x1f1e8e(0x1a9)]||_0x4fcde4[_0x1f1e8e(0x1de)](isPercyBuild)){if(_0x4fcde4['gHzXj'](process['env'][_0x1f1e8e(0x194)],_0x4fcde4[_0x1f1e8e(0x182)])){_0x4fcde4['znakn'](debug,_0x1f1e8e(0x198)+_0x51439b+_0x1f1e8e(0x14c)+constants['TEST_REPORTING_ANALYTICS']+'\x20:\x20missing\x20authentication\x20token'),this['requestQueueHandler'][_0x1f1e8e(0x14b)]=Math[_0x1f1e8e(0x1ca)](0x0,_0x4fcde4['irfUw'](this[_0x1f1e8e(0x1b1)]['pendingUploads'],0x1));const _0x9eaa64={};return _0x9eaa64[_0x1f1e8e(0x167)]=_0x4fcde4[_0x1f1e8e(0x172)],_0x9eaa64[_0x1f1e8e(0x177)]=_0x4fcde4[_0x1f1e8e(0x1b4)],_0x9eaa64;}return await this['sendEventData'](_0x38bae8,_0x106b24);}else{if(_0x4fcde4[_0x1f1e8e(0x185)](_0x106b24,0x5)){_0x4fcde4[_0x1f1e8e(0x1ac)](debug,'EXCEPTION\x20IN\x20'+_0x51439b+_0x1f1e8e(0x14c)+constants[_0x1f1e8e(0x16b)]+_0x1f1e8e(0x199)+_0x51439b+_0x1f1e8e(0x1bf));_0x4fcde4[_0x1f1e8e(0x175)](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x4fcde4['QQqIV'])&&(this[_0x1f1e8e(0x1b1)][_0x1f1e8e(0x14b)]=Math[_0x1f1e8e(0x1ca)](0x0,_0x4fcde4[_0x1f1e8e(0x161)](this['requestQueueHandler'][_0x1f1e8e(0x14b)],0x1)));const _0x9ba017={};return _0x9ba017[_0x1f1e8e(0x167)]=_0x4fcde4['JTmtz'],_0x9ba017[_0x1f1e8e(0x177)]=_0x4fcde4['QcyLu'],_0x9ba017;}else _0x4fcde4[_0x1f1e8e(0x17d)](process[_0x1f1e8e(0x195)][_0x1f1e8e(0x1a0)],_0x4fcde4[_0x1f1e8e(0x153)])&&_0x4fcde4['VRMIp'](setTimeout,()=>{const _0x89f7ef=_0x1f1e8e;this[_0x89f7ef(0x15b)](_0x38bae8,_0x4fcde4[_0x89f7ef(0x1a4)](_0x106b24,0x1));},0x3e8);}}}module['exports']=SessionHandler;
1
+ function a136_0x436c(){const _0x4282be=['3541446SKfijm','buildDescription','error','10vyHzyr','Log_Upload','app','yEbQj','kxvWK','WbuwC','uXOfq','Authorization','./requestQueueHandler','eventUrl','QKCHx','\x20REQUEST\x20TO\x20','null','hAuwt','7017392KdHwUh','iOMDa','SZzwS','LHLAn','POST','ERROR_INVALID_CREDENTIALS','ytWxo','TestRunSkipped','toISOString','sendTraceZip','MiWwu','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','../../helpers/testhub/utils','includes','5144840ncRavv','Batch-Queue','xZPiq','test_run_uuid','VLrwJ','BS_TESTOPS_BUILD_COMPLETED','YAhLv','requestQueueHandler','getGitMetaData','qtvWq','./utils','projectName','\x20failed\x20due\x20to\x20','\x20retry\x20runs\x20exceeded','sendEventData','BS_TESTOPS_ALLOW_SCREENSHOTS','launch','871686POUDUR','success','LogCreated','1737421FwIPvg','CAJWA','Test_Start_Upload','\x20:\x20','ygJIr','700696EChYyy','zSsbY','imWKh','Content-Type','Processing\x20event\x20-\x20\x27','username','LYbWj','cwd','zAJvi','pendingUploads','TWYsR','uploadEventData','38388196DlHRdP','Build\x20creation\x20successful!','stringify','debug','flNSB','errorType','buildName','EIAMs','mUkRj','15bODBwW','VDCrl','hook_run','Data\x20upload\x20to\x20BrowserStack\x20','env','logs','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','getAgentVersion','mDKqm','ObePC','BROWSERSTACK_BUILD_RUN_IDENTIFIER','hOkuy','TestRunStarted','api/v1/event','jwt','24gLVitR','BROWSERSTACK_RERUN','BROWSERSTACK_TESTHUB_JWT','true','event_type','TEST_REPORTING_ANALYTICS','qEpkr','RQnye','statusText','frameworkName','CnjVD','../../bin/utils/constants','waitForBuildStatus','nestedKeyValue','jaVll','VKLFd','BS_A11Y_JWT','../logger','max','info','allow_screenshots','buildIdentifier','false','headers','nxemm','getInstance','message','CBT_Upload','Test_End_Upload','HookRunFinished','YcLFH','MkKLS','CBTSessionCreated','VCJNh',']\x20event\x20successful!','VaySo','exports','add','Retry\x20runs\x20exceeded','euSqM','status','EXCEPTION\x20IN\x20','response','length','Launching\x20build\x20for\x20BrowserStack\x20Test\x20Observability\x20with\x20config:\x20','Hook_End_Upload','build_hashed_id','password','Bearer\x20','iqJMD','ERROR_SDK_DEPRECATED','data','Sending\x20trace\x20zip\x20for\x20test:\x20','BS_TESTOPS_JWT','chdKO','stVvE','inspect','format','\x20:\x20missing\x20authentication\x20token','\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','browserstackAutomation','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','frameworkVersion','getLogTag','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','RTsbo','wyshN','RIwDh','oihAP','sGnYa','BS_TESTOPS_BUILD_HASHED_ID','X-BSTACK-TESTOPS','yVyWF','1RwSgvS','getAccessKey','JWVlX','CHmrS','BROWSERSTACK_TESTHUB_UUID','wNroW','gdaOh'];a136_0x436c=function(){return _0x4282be;};return a136_0x436c();}const a136_0x3924ec=a136_0x5294;(function(_0x537742,_0x5b7120){const _0x25abcc=a136_0x5294,_0x381821=_0x537742();while(!![]){try{const _0x1b4455=-parseInt(_0x25abcc(0x22b))/0x1*(-parseInt(_0x25abcc(0x262))/0x2)+-parseInt(_0x25abcc(0x27f))/0x3*(parseInt(_0x25abcc(0x26a))/0x4)+-parseInt(_0x25abcc(0x251))/0x5+parseInt(_0x25abcc(0x28e))/0x6*(-parseInt(_0x25abcc(0x265))/0x7)+-parseInt(_0x25abcc(0x243))/0x8+parseInt(_0x25abcc(0x232))/0x9*(parseInt(_0x25abcc(0x235))/0xa)+parseInt(_0x25abcc(0x276))/0xb;if(_0x1b4455===_0x5b7120)break;else _0x381821['push'](_0x381821['shift']());}catch(_0xed5cfb){_0x381821['push'](_0x381821['shift']());}}}(a136_0x436c,0x84e5d));function a136_0x5294(_0x14364b,_0x23ad43){const _0x436c14=a136_0x436c();return a136_0x5294=function(_0x5294e5,_0x44551d){_0x5294e5=_0x5294e5-0x1e4;let _0x1defc8=_0x436c14[_0x5294e5];return _0x1defc8;},a136_0x5294(_0x14364b,_0x23ad43);}const bsSetupHelper=require('../helper'),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a136_0x3924ec(0x25b)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a136_0x3924ec(0x23d)),logger=require(a136_0x3924ec(0x1f3))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap,getTestOrchestrationBuildStartData}=require(a136_0x3924ec(0x24f)),util=require('util'),constants=require(a136_0x3924ec(0x1ed));class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a136_0x3924ec(0x1fb)]();static async[a136_0x3924ec(0x261)](_0x547e78,_0xdc2068){const _0x3ffe00=a136_0x3924ec,_0x4a7ace={'zAJvi':function(_0x14545b,_0x5b3468){return _0x14545b||_0x5b3468;},'MiWwu':function(_0x4f42b8,_0x29fce9){return _0x4f42b8===_0x29fce9;},'hAuwt':function(_0x27c6bb,_0xe7ff64){return _0x27c6bb(_0xe7ff64);},'iqJMD':_0x3ffe00(0x21f),'euSqM':_0x3ffe00(0x1f8),'CAJWA':'json','zSsbY':function(_0x278be5,_0x141538){return _0x278be5(_0x141538);},'VaySo':function(_0x2387a5,_0x25f477,_0x322565,_0x485922,_0x3887d0){return _0x2387a5(_0x25f477,_0x322565,_0x485922,_0x3887d0);},'QKCHx':_0x3ffe00(0x247),'YcLFH':'api/v1/builds','mDKqm':function(_0x2e6758,_0x2b5ab9){return _0x2e6758(_0x2b5ab9);},'imWKh':_0x3ffe00(0x277),'tSMde':function(_0x965341){return _0x965341();},'YAhLv':'true','LYbWj':_0x3ffe00(0x241),'CHmrS':_0x3ffe00(0x248),'sVQQl':'ERROR_ACCESS_DENIED','yVyWF':_0x3ffe00(0x214)};logger[_0x3ffe00(0x1f5)](_0x3ffe00(0x20e)+util[_0x3ffe00(0x21a)](_0x547e78));const _0x458cae=bsSetupHelper['getUserName'](_0x547e78),_0x8f5bf2=bsSetupHelper[_0x3ffe00(0x22c)](_0x547e78),_0x378973=_0x4a7ace[_0x3ffe00(0x272)](_0x458cae,'')+':'+_0x4a7ace[_0x3ffe00(0x272)](_0x8f5bf2,'');if(_0x4a7ace[_0x3ffe00(0x24d)](_0x378973,':'))return _0x4a7ace[_0x3ffe00(0x242)](debug,_0x4a7ace[_0x3ffe00(0x213)]),process[_0x3ffe00(0x283)][_0x3ffe00(0x256)]=_0x4a7ace[_0x3ffe00(0x209)],[null,null];let _0x3f21f1=![],_0x575d5f=![];if(_0x547e78[_0x3ffe00(0x21e)]&&_0x547e78[_0x3ffe00(0x237)])_0x575d5f=!![];else _0x547e78[_0x3ffe00(0x21e)]&&(_0x3f21f1=!![]);try{const _0x90ac9e={'format':_0x4a7ace[_0x3ffe00(0x266)],'project_name':_0x547e78[_0x3ffe00(0x25c)]||'','name':_0x547e78[_0x3ffe00(0x27c)]||path['basename'](path['resolve'](process[_0x3ffe00(0x271)]())),'build_identifier':_0x547e78[_0x3ffe00(0x1f7)],'description':_0x547e78[_0x3ffe00(0x233)]||'','start_time':new Date()[_0x3ffe00(0x24b)](),'tags':_0x4a7ace['hAuwt'](getCustomTags,_0x547e78),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper['getCiInfo'](),'build_run_identifier':process[_0x3ffe00(0x283)][_0x3ffe00(0x289)],'failed_tests_rerun':process[_0x3ffe00(0x283)][_0x3ffe00(0x28f)]||![],'version_control':await bsSetupHelper[_0x3ffe00(0x259)](),'observability_version':{'frameworkName':_0xdc2068[_0x3ffe00(0x1eb)],'frameworkVersion':_0xdc2068[_0x3ffe00(0x220)],'sdkVersion':bsSetupHelper[_0x3ffe00(0x286)]()},'product_map':_0x4a7ace[_0x3ffe00(0x26b)](getProductMap,_0x547e78),'test_orchestration':_0x4a7ace[_0x3ffe00(0x26b)](getTestOrchestrationBuildStartData,_0x547e78)},_0x284460={};_0x284460[_0x3ffe00(0x26f)]=_0x458cae,_0x284460[_0x3ffe00(0x211)]=_0x8f5bf2;const _0x5ee03e={'auth':_0x284460,'headers':_0x4a7ace[_0x3ffe00(0x242)](getDefaultHeaders,![])},_0x347979=await _0x4a7ace[_0x3ffe00(0x205)](nodeRequest,_0x4a7ace[_0x3ffe00(0x23f)],_0x4a7ace[_0x3ffe00(0x200)],_0x90ac9e,_0x5ee03e);_0x4a7ace[_0x3ffe00(0x287)](debug,_0x4a7ace[_0x3ffe00(0x26c)]);const _0x31cb00=_0x347979[_0x3ffe00(0x215)];_0x31cb00[_0x3ffe00(0x210)]&&(process['env'][_0x3ffe00(0x22f)]=_0x31cb00[_0x3ffe00(0x210)]);if(_0x4a7ace['tSMde'](isTestObservabilitySession)){process[_0x3ffe00(0x283)]['BS_TESTOPS_BUILD_COMPLETED']=_0x4a7ace[_0x3ffe00(0x257)];if(_0x31cb00[_0x3ffe00(0x28d)]){process[_0x3ffe00(0x283)][_0x3ffe00(0x217)]=_0x31cb00['jwt'];const _0x30427b={};_0x30427b[_0x3ffe00(0x26f)]=_0x458cae,_0x30427b[_0x3ffe00(0x211)]=_0x8f5bf2,process[_0x3ffe00(0x283)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x3ffe00(0x278)](_0x30427b);}_0x31cb00[_0x3ffe00(0x210)]&&(process[_0x3ffe00(0x283)][_0x3ffe00(0x228)]=_0x31cb00['build_hashed_id']),_0x31cb00['allow_screenshots']&&(process[_0x3ffe00(0x283)][_0x3ffe00(0x260)]=_0x31cb00[_0x3ffe00(0x1f6)]['toString']());}return[_0x347979['data'][_0x3ffe00(0x28d)],_0x347979['data'][_0x3ffe00(0x210)],_0x347979[_0x3ffe00(0x215)][_0x3ffe00(0x1f6)]];}catch(_0x355892){process['env'][_0x3ffe00(0x22f)]=_0x4a7ace['LYbWj'],process[_0x3ffe00(0x283)][_0x3ffe00(0x256)]=_0x4a7ace['euSqM'],process[_0x3ffe00(0x283)][_0x3ffe00(0x217)]=_0x4a7ace[_0x3ffe00(0x270)],process['env'][_0x3ffe00(0x228)]=_0x4a7ace['LYbWj'],process[_0x3ffe00(0x283)][_0x3ffe00(0x260)]=_0x4a7ace['LYbWj'];_0x355892[_0x3ffe00(0x20c)]?_0x4a7ace[_0x3ffe00(0x287)](debug,_0x3ffe00(0x24e)+_0x355892[_0x3ffe00(0x20c)]['status']+'\x20'+_0x355892[_0x3ffe00(0x20c)][_0x3ffe00(0x1ea)]+'\x20'+JSON[_0x3ffe00(0x278)](_0x355892['response'][_0x3ffe00(0x215)])):_0x4a7ace[_0x3ffe00(0x242)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+(_0x355892[_0x3ffe00(0x1fc)]||_0x355892));if(_0x355892&&_0x355892[_0x3ffe00(0x1fc)]){const _0x1fe129=_0x355892['message'];switch(_0x355892[_0x3ffe00(0x27b)]){case _0x4a7ace[_0x3ffe00(0x22e)]:logger[_0x3ffe00(0x234)](_0x1fe129);break;case _0x4a7ace['sVQQl']:logger[_0x3ffe00(0x1f5)](_0x1fe129);break;case _0x4a7ace[_0x3ffe00(0x22a)]:logger[_0x3ffe00(0x234)](_0x1fe129);break;default:logger[_0x3ffe00(0x234)](_0x1fe129);}}else console[_0x3ffe00(0x1f5)](_0x3ffe00(0x282)+constants[_0x3ffe00(0x1e7)]+_0x3ffe00(0x25d)+_0x355892);return[null,null,null];}}static async[a136_0x3924ec(0x1ee)](){const _0x35f4e9=a136_0x3924ec,_0x9810bf={'oihAP':_0x35f4e9(0x1e5),'qtvWq':'false','ObePC':function(_0x105f20,_0x2c2593){return _0x105f20(_0x2c2593);}},_0x399e0d=process[_0x35f4e9(0x283)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0x9810bf[_0x35f4e9(0x226)],_0x9810bf['qtvWq']]['includes'](_0x399e0d))return;while([_0x9810bf['oihAP'],_0x9810bf[_0x35f4e9(0x25a)]][_0x35f4e9(0x250)](_0x399e0d)){await _0x9810bf[_0x35f4e9(0x288)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a136_0x3924ec(0x221)](_0x3416dd){const _0x4d948f=a136_0x3924ec,_0x38f376={};_0x38f376[_0x4d948f(0x225)]=_0x4d948f(0x267),_0x38f376[_0x4d948f(0x1f1)]=_0x4d948f(0x1fe),_0x38f376[_0x4d948f(0x22d)]='Test_Skipped_Upload',_0x38f376['vXZMg']=_0x4d948f(0x236),_0x38f376[_0x4d948f(0x203)]='Hook_Start_Upload',_0x38f376[_0x4d948f(0x27a)]=_0x4d948f(0x20f),_0x38f376[_0x4d948f(0x239)]=_0x4d948f(0x1fd);const _0x33b301=_0x38f376,_0x5e51ad={};return _0x5e51ad[_0x4d948f(0x28b)]=_0x33b301[_0x4d948f(0x225)],_0x5e51ad['TestRunFinished']=_0x33b301[_0x4d948f(0x1f1)],_0x5e51ad[_0x4d948f(0x24a)]=_0x33b301[_0x4d948f(0x22d)],_0x5e51ad[_0x4d948f(0x264)]=_0x33b301['vXZMg'],_0x5e51ad['HookRunStarted']=_0x33b301[_0x4d948f(0x203)],_0x5e51ad[_0x4d948f(0x1ff)]=_0x33b301['flNSB'],_0x5e51ad[_0x4d948f(0x202)]=_0x33b301['kxvWK'],_0x5e51ad[_0x3416dd[_0x4d948f(0x1e6)]];}static async[a136_0x3924ec(0x25f)](_0x18d26e,_0x3e1302=0x0,_0x4f744c=null){const _0x3d74bf=a136_0x3924ec,_0x4a6bf4={'MkKLS':function(_0x3a34ee,_0x3ff8f2){return _0x3a34ee===_0x3ff8f2;},'iOMDa':_0x3d74bf(0x24c),'wNroW':function(_0x3fea55,_0x59c41f){return _0x3fea55!==_0x59c41f;},'wyshN':'application/json','SiicY':'true','TWYsR':function(_0x47ab6e,_0x5d5001,_0x21c2f6,_0x5ef2f6,_0x27caa5){return _0x47ab6e(_0x5d5001,_0x21c2f6,_0x5ef2f6,_0x27caa5);},'yEbQj':_0x3d74bf(0x247),'chdKO':function(_0x4ec748,_0x1ad706){return _0x4ec748(_0x1ad706);},'hOkuy':function(_0x3407c1,_0x1b9f17){return _0x3407c1!==_0x1b9f17;},'RQnye':_0x3d74bf(0x252),'VDafM':function(_0x5de15b,_0x3b808a){return _0x5de15b-_0x3b808a;},'SZzwS':_0x3d74bf(0x28c),'cBVZG':_0x3d74bf(0x263),'VDCrl':function(_0x5ea8b5,_0x50db30){return _0x5ea8b5(_0x50db30);},'WbuwC':function(_0x18b6ab,_0x18e36f){return _0x18b6ab-_0x18e36f;},'JYHuP':_0x3d74bf(0x234)};_0x4a6bf4[_0x3d74bf(0x201)](_0x4f744c,_0x4a6bf4[_0x3d74bf(0x244)])&&logger[_0x3d74bf(0x279)](_0x3d74bf(0x216)+_0x18d26e[_0x3d74bf(0x284)][0x0][_0x3d74bf(0x254)]);const _0x2feb07=await this[_0x3d74bf(0x221)](_0x18d26e);let _0x4bc6ad=_0x18d26e,_0x47967b=EVENT_ENDPOINT;_0x4a6bf4['wNroW'](_0x4f744c,_0x4a6bf4[_0x3d74bf(0x244)])&&this[_0x3d74bf(0x258)]['start']();const {shouldProceed:_0x512d50,proceedWithData:_0x273622,proceedWithUrl:_0x15b67d}=this[_0x3d74bf(0x258)][_0x3d74bf(0x207)](_0x18d26e);if(!_0x512d50)return;else _0x273622&&(_0x4bc6ad=_0x273622,_0x47967b=_0x15b67d);const _0x8bc202={};_0x8bc202[_0x3d74bf(0x23c)]=_0x3d74bf(0x212)+process[_0x3d74bf(0x283)][_0x3d74bf(0x1e4)],_0x8bc202[_0x3d74bf(0x26d)]=_0x4a6bf4[_0x3d74bf(0x224)],_0x8bc202[_0x3d74bf(0x229)]=_0x4a6bf4['SiicY'];const _0x296322={};_0x296322[_0x3d74bf(0x1f9)]=_0x8bc202;const _0x485c58=_0x296322;let _0x599da6;try{_0x4a6bf4[_0x3d74bf(0x201)](_0x4f744c,_0x4a6bf4[_0x3d74bf(0x244)])?(logger[_0x3d74bf(0x279)](_0x3d74bf(0x222)+_0x18d26e?.[_0x3d74bf(0x284)][0x0]?.[_0x3d74bf(0x254)]),_0x599da6=await _0x4a6bf4[_0x3d74bf(0x274)](asyncAwaitNodeReq,_0x4a6bf4[_0x3d74bf(0x238)],_0x47967b,_0x4bc6ad,_0x485c58),logger['debug'](_0x3d74bf(0x285)+_0x18d26e?.['logs'][0x0]?.['test_run_uuid'])):_0x599da6=await _0x4a6bf4[_0x3d74bf(0x274)](nodeRequest,_0x4a6bf4[_0x3d74bf(0x238)],_0x47967b,_0x4bc6ad,_0x485c58);if(_0x599da6[_0x3d74bf(0x215)]['error']){const _0x314eaa={};_0x314eaa['message']=_0x599da6[_0x3d74bf(0x215)][_0x3d74bf(0x234)];throw _0x314eaa;}else{_0x4a6bf4[_0x3d74bf(0x218)](debug,(_0x4a6bf4[_0x3d74bf(0x28a)](_0x47967b,this[_0x3d74bf(0x258)][_0x3d74bf(0x23e)])?_0x2feb07:_0x4a6bf4[_0x3d74bf(0x1e9)])+'['+_0x3e1302+_0x3d74bf(0x204)),this[_0x3d74bf(0x258)][_0x3d74bf(0x273)]=Math[_0x3d74bf(0x1f4)](0x0,_0x4a6bf4['VDafM'](this[_0x3d74bf(0x258)][_0x3d74bf(0x273)],_0x4a6bf4[_0x3d74bf(0x201)](_0x47967b,_0x4a6bf4[_0x3d74bf(0x245)])?0x1:_0x4bc6ad[_0x3d74bf(0x20d)]));const _0x553a4b={};return _0x553a4b[_0x3d74bf(0x20a)]=_0x4a6bf4['cBVZG'],_0x553a4b[_0x3d74bf(0x1fc)]='',_0x553a4b;}}catch(_0x149504){_0x149504[_0x3d74bf(0x20c)]?_0x4a6bf4['chdKO'](debug,'EXCEPTION\x20IN\x20'+(_0x4a6bf4[_0x3d74bf(0x28a)](_0x47967b,this[_0x3d74bf(0x258)]['eventUrl'])?_0x2feb07:_0x4a6bf4[_0x3d74bf(0x1e9)])+_0x3d74bf(0x240)+constants[_0x3d74bf(0x1e7)]+_0x3d74bf(0x268)+_0x149504[_0x3d74bf(0x20c)][_0x3d74bf(0x20a)]+'\x20'+_0x149504['response'][_0x3d74bf(0x1ea)]+'\x20'+util[_0x3d74bf(0x21b)](_0x149504['response'][_0x3d74bf(0x215)])):_0x4a6bf4[_0x3d74bf(0x280)](debug,_0x3d74bf(0x20b)+(_0x4a6bf4[_0x3d74bf(0x230)](_0x47967b,this['requestQueueHandler']['eventUrl'])?_0x2feb07:_0x4a6bf4[_0x3d74bf(0x1e9)])+_0x3d74bf(0x240)+constants['TEST_REPORTING_ANALYTICS']+'\x20:\x20'+util[_0x3d74bf(0x21b)](_0x149504));this[_0x3d74bf(0x258)]['pendingUploads']=Math[_0x3d74bf(0x1f4)](0x0,_0x4a6bf4[_0x3d74bf(0x23a)](this[_0x3d74bf(0x258)]['pendingUploads'],_0x4a6bf4['MkKLS'](_0x47967b,_0x4a6bf4['SZzwS'])?0x1:_0x4bc6ad[_0x3d74bf(0x20d)]));const _0x3c5ee5={};return _0x3c5ee5[_0x3d74bf(0x20a)]=_0x4a6bf4['JYHuP'],_0x3c5ee5[_0x3d74bf(0x1fc)]=_0x149504[_0x3d74bf(0x1fc)]||(_0x149504[_0x3d74bf(0x20c)]?_0x149504[_0x3d74bf(0x20c)][_0x3d74bf(0x20a)]+':'+_0x149504[_0x3d74bf(0x20c)][_0x3d74bf(0x1ea)]:_0x149504),_0x3c5ee5;}}static async[a136_0x3924ec(0x275)](_0x21ee43,_0xd549c4=0x0){const _0x520941=a136_0x3924ec,_0x4353af={'uXOfq':function(_0x250855,_0x38765d){return _0x250855+_0x38765d;},'stVvE':function(_0x2de563,_0x9dc05){return _0x2de563(_0x9dc05);},'sGnYa':'test_run','LHLAn':'uuid','DPgnl':_0x520941(0x281),'VLrwJ':function(_0x18df18,_0x26ef67,_0x554ff1){return _0x18df18(_0x26ef67,_0x554ff1);},'EIAMs':_0x520941(0x275),'ytWxo':function(_0x258643,_0x4e0eb3){return _0x258643===_0x4e0eb3;},'mUkRj':function(_0x2d43a4,_0x1e00da){return _0x2d43a4!==_0x1e00da;},'RTsbo':_0x520941(0x241),'qEpkr':function(_0x5cf3c2,_0x550678){return _0x5cf3c2===_0x550678;},'jaVll':'true','xRYjG':function(_0x507eb8){return _0x507eb8();},'NpWbD':function(_0x10a4f2,_0x81827){return _0x10a4f2-_0x81827;},'GvoTJ':_0x520941(0x234),'CnjVD':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','nxemm':function(_0x4ca043,_0x26cac4){return _0x4ca043>=_0x26cac4;},'xZPiq':function(_0x3bdd2d,_0x35d80d){return _0x3bdd2d!==_0x35d80d;},'vmatb':function(_0x3dedcd,_0x6c01){return _0x3dedcd-_0x6c01;},'gdaOh':_0x520941(0x208),'ygJIr':_0x520941(0x1f8)},_0x30596d=this['getLogTag'](_0x21ee43);_0x4353af[_0x520941(0x219)](trace,_0x520941(0x26e)+_0x21ee43[_0x520941(0x1e6)]+'\x27\x20'+(bsSetupHelper[_0x520941(0x1ef)](_0x21ee43,[_0x4353af[_0x520941(0x227)],_0x4353af[_0x520941(0x246)]])||bsSetupHelper[_0x520941(0x1ef)](_0x21ee43,[_0x4353af['DPgnl'],_0x4353af['LHLAn']])));if(!_0x4353af[_0x520941(0x255)](shouldProcessEventForTesthub,_0x21ee43[_0x520941(0x1e6)],_0x4353af[_0x520941(0x27d)]))return;_0x4353af[_0x520941(0x249)](_0xd549c4,0x0)&&process[_0x520941(0x283)][_0x520941(0x1e4)]&&_0x4353af[_0x520941(0x27e)](process[_0x520941(0x283)][_0x520941(0x1e4)],_0x4353af[_0x520941(0x223)])&&(this[_0x520941(0x258)][_0x520941(0x273)]+=0x1);if(_0x4353af[_0x520941(0x1e8)](process[_0x520941(0x283)][_0x520941(0x256)],_0x4353af[_0x520941(0x1f0)])||process[_0x520941(0x283)][_0x520941(0x1f2)]||_0x4353af['xRYjG'](isPercyBuild)){if(_0x4353af['ytWxo'](process[_0x520941(0x283)][_0x520941(0x1e4)],_0x4353af[_0x520941(0x223)])){_0x4353af[_0x520941(0x219)](debug,'EXCEPTION\x20IN\x20'+_0x30596d+'\x20REQUEST\x20TO\x20'+constants[_0x520941(0x1e7)]+_0x520941(0x21c)),this[_0x520941(0x258)]['pendingUploads']=Math[_0x520941(0x1f4)](0x0,_0x4353af['NpWbD'](this[_0x520941(0x258)]['pendingUploads'],0x1));const _0x536e84={};return _0x536e84[_0x520941(0x20a)]=_0x4353af['GvoTJ'],_0x536e84[_0x520941(0x1fc)]=_0x4353af[_0x520941(0x1ec)],_0x536e84;}return await this['sendEventData'](_0x21ee43,_0xd549c4);}else{if(_0x4353af[_0x520941(0x1fa)](_0xd549c4,0x5)){_0x4353af[_0x520941(0x219)](debug,_0x520941(0x20b)+_0x30596d+_0x520941(0x240)+constants[_0x520941(0x1e7)]+_0x520941(0x21d)+_0x30596d+_0x520941(0x25e));_0x4353af[_0x520941(0x253)](process[_0x520941(0x283)][_0x520941(0x1e4)],_0x4353af['RTsbo'])&&(this[_0x520941(0x258)][_0x520941(0x273)]=Math[_0x520941(0x1f4)](0x0,_0x4353af['vmatb'](this[_0x520941(0x258)][_0x520941(0x273)],0x1)));const _0x267d0c={};return _0x267d0c[_0x520941(0x20a)]=_0x4353af['GvoTJ'],_0x267d0c[_0x520941(0x1fc)]=_0x4353af[_0x520941(0x231)],_0x267d0c;}else _0x4353af[_0x520941(0x253)](process[_0x520941(0x283)]['BS_TESTOPS_BUILD_COMPLETED'],_0x4353af[_0x520941(0x269)])&&_0x4353af[_0x520941(0x255)](setTimeout,()=>{const _0x26c02b=_0x520941;this['uploadEventData'](_0x21ee43,_0x4353af[_0x26c02b(0x23b)](_0xd549c4,0x1));},0x3e8);}}}module[a136_0x3924ec(0x206)]=SessionHandler;
@@ -1 +1 @@
1
- const a137_0x33ee03=a137_0x2ff7;(function(_0x53c151,_0x8a202){const _0x2d473b=a137_0x2ff7,_0x252d82=_0x53c151();while(!![]){try{const _0x542680=parseInt(_0x2d473b(0x238))/0x1+-parseInt(_0x2d473b(0x282))/0x2*(parseInt(_0x2d473b(0x26e))/0x3)+parseInt(_0x2d473b(0x278))/0x4*(parseInt(_0x2d473b(0x211))/0x5)+-parseInt(_0x2d473b(0x2a3))/0x6*(-parseInt(_0x2d473b(0x2ac))/0x7)+parseInt(_0x2d473b(0x23d))/0x8+-parseInt(_0x2d473b(0x2cc))/0x9+-parseInt(_0x2d473b(0x256))/0xa;if(_0x542680===_0x8a202)break;else _0x252d82['push'](_0x252d82['shift']());}catch(_0x162e1a){_0x252d82['push'](_0x252d82['shift']());}}}(a137_0x402e,0xa4733));const fs=require('fs'),path=require(a137_0x33ee03(0x218)),gitLastCommit=require(a137_0x33ee03(0x22d)),getRepoInfo=require(a137_0x33ee03(0x241)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require('./constants'),http=require(a137_0x33ee03(0x25d)),https=require(a137_0x33ee03(0x2d1)),child_process=require('child_process'),getos=require(a137_0x33ee03(0x1cc)),os=require('os'),logger=require(a137_0x33ee03(0x2c6))['winstonLogger'],buildLogger=require('../logger')[a137_0x33ee03(0x285)],bsSetupHelper=require(a137_0x33ee03(0x2b8)),requestSpy=require(a137_0x33ee03(0x2c2)),constants=require(a137_0x33ee03(0x2d3)),logPatcher=require(a137_0x33ee03(0x2b0)),util=require(a137_0x33ee03(0x268)),{fileLogger}=require(a137_0x33ee03(0x2c6)),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a137_0x33ee03(0x247)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a137_0x33ee03(0x290)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a137_0x33ee03(0x26b));exports['trace']=_0xee8849=>{const _0x117be8=a137_0x33ee03;fileLogger[_0x117be8(0x23f)]('['+new Date()[_0x117be8(0x2a5)]()+'][\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x117be8(0x21d)+_0xee8849);},exports[a137_0x33ee03(0x1c9)]=_0xbf1de8=>{const _0x5cca91=a137_0x33ee03,_0x175e78={};_0x175e78[_0x5cca91(0x22c)]=function(_0x204b77,_0x232db2){return _0x204b77===_0x232db2;},_0x175e78['Yaivt']=_0x5cca91(0x205),_0x175e78[_0x5cca91(0x23b)]=function(_0x3281ad,_0x2aa979){return _0x3281ad===_0x2aa979;},_0x175e78[_0x5cca91(0x248)]=function(_0x48a533,_0x29a237){return _0x48a533===_0x29a237;},_0x175e78['bJyBO']=function(_0x14f3d1,_0x20371b){return _0x14f3d1===_0x20371b;};const _0x196159=_0x175e78;fileLogger[_0x5cca91(0x1c9)]('['+new Date()['toISOString']()+_0x5cca91(0x29f)+constants[_0x5cca91(0x21e)]+_0x5cca91(0x21d)+_0xbf1de8),(_0x196159['IKvek'](process[_0x5cca91(0x216)][_0x5cca91(0x2bc)],_0x196159['Yaivt'])||_0x196159[_0x5cca91(0x23b)](process[_0x5cca91(0x216)][_0x5cca91(0x2bc)],'1')||_0x196159['oCPFC'](process['env'][_0x5cca91(0x1fd)],_0x196159[_0x5cca91(0x2e4)])||_0x196159['bJyBO'](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder['log']('\x0a['+new Date()[_0x5cca91(0x2a5)]()+_0x5cca91(0x29f)+constants[_0x5cca91(0x21e)]+_0x5cca91(0x21d)+_0xbf1de8+'\x0a');};const a137_0x550d67={};a137_0x550d67[a137_0x33ee03(0x1f6)]=!![],a137_0x550d67['timeout']=0xea60,a137_0x550d67[a137_0x33ee03(0x2d2)]=0x2,a137_0x550d67['maxTotalSockets']=0x2;const httpKeepAliveAgent=new http[(a137_0x33ee03(0x232))](a137_0x550d67),a137_0x4fa304={};a137_0x4fa304[a137_0x33ee03(0x1f6)]=!![],a137_0x4fa304[a137_0x33ee03(0x29b)]=0xea60,a137_0x4fa304['maxSockets']=0x2,a137_0x4fa304[a137_0x33ee03(0x2c1)]=0x2;const httpsKeepAliveAgent=new https[(a137_0x33ee03(0x232))](a137_0x4fa304),a137_0x176df1={};a137_0x176df1['keepAlive']=!![],a137_0x176df1[a137_0x33ee03(0x29b)]=0xea60,a137_0x176df1[a137_0x33ee03(0x2d2)]=0x2,a137_0x176df1['maxTotalSockets']=0x2;const httpScreenshotsKeepAliveAgent=new http['Agent'](a137_0x176df1),a137_0x343568={};a137_0x343568[a137_0x33ee03(0x1f6)]=!![],a137_0x343568['timeout']=0xea60,a137_0x343568[a137_0x33ee03(0x2d2)]=0x2,a137_0x343568[a137_0x33ee03(0x2c1)]=0x2;const httpsScreenshotsKeepAliveAgent=new https['Agent'](a137_0x343568);function a137_0x402e(){const _0x5698dc=['host','getPlatformVersion','printA11yBuildLink','Authorization','printBuildLink','linux','lcsVO','TEST_PLATFORM','aJALO','browserstack_executor:\x20','imOPn','sPIQt','debug','kIDIQ','ihkIs','getos','PJpiw','ztdxk','LdomA','extractValuesWithRegexKeyMatch','ZcioN','toString','pskAQ','\x20test\x20instance\x20:\x20','nodeRequest','turboScaleGridDetails','unknown_grid','MzGoV','EBWIx','mocha','isUndefined','message','capabilities','hostname','kTjSQ','QgWyh','TimeoutError','MOCHA','DWOEf','object','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','__cloud_provider___','getSyncScript','TytQq','HnGey','utQky','Linux','includes','DxKWp','ATS_HUB_URL_REGEX','default','btVjo','catch','measureWrapper','BROWSERSTACK_RERUN_TESTS','XSxDq','getPackageVersion','keepAlive','pid','application/json','bMWmU','suRAe','dVzJL','agent','BROWSERSTACK_OBSERVABILITY_DEBUG','vKErc','UnhandledError','getSession','SUjxe','json','Test\x20timeout\x20of','vLlSh','true','mivZa','ixocz','platformName','aEwPa','Error\x20in\x20importing\x20windows-release\x20','undefined','Failed\x20to\x20determine\x20product\x20linked\x20to\x20','map_','cwd','app-automate','err','55XhPDlO','modifyReqForTraceUpload','addRequestSpy','isArray','nuXWL','env','app_automate','path','yGUCS','emit','logs','prefixTestPath','\x20]\x20','TEST_REPORTING_ANALYTICS','customTag','4|1|5|0|2|3','CUSTOM_TAG','getAccessKey','NietC','PUPPETEER','Bearer\x20','gCPXw','backtrace','bs:addPlatformDetails:','relativeTestFilePath','ObservabilitySync:','keys','IKvek','git-last-commit','turboscale','fromEntries','getObservabilityLinkedProductName','expanded','Agent','wxhJg','MEQrw','HUB_URL_REGEX','NeSdn','format','1294580pbvOmy','FjrTO','TjGXo','LJuIy','O11Y_URL','9116768wYCANJ','BROWSERSTACK_TESTHUB_JWT','silly','test','git-repo-info','tdcid','bstack:options','puppeteer','null','prefix','lodash','oCPFC','buildTag','vvsqY','hYBSE','BROWSERSTACK_TEST_OBSERVABILITY_YML','rootDir','xXSWU','ggoZC','split','failureData','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','lxgJO','automate','BS_TESTOPS_BUILD_HASHED_ID','27865210NHmAjo','pLZGj','Cngjw','hYVAW','windows-release','tguai','PRINT_BUILDLINK','http','xRkIG','getBrowserStackConfig','toJSON','bmfpS','map','OS\x20X','BROWSERSTACK_CONFIG_FILE_PATH','TaxXz','appium:app','/builds/','util','error','getBuildTags','../../../src/bin/utils/constants','BROWSERSTACK_TEST_OBSERVABILITY','platform','881433ckRgKU','wfICA','gNBwP','PLAYWRIGHT','getBrowserVersion','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','cmAYn','LbPMT','info','O11yHashedID','449480vXCPZk','filter','parseFileNames','Unknown','Content-Type','getCapabilities','Error\x20in\x20getting\x20Linux\x20Details','trim','[%s][\x20','spy','4GBzsCb','url','removeAnsiColors','buildLogger','getFailureType','TEST_REPORTING_BUILD_TAG','X-BSTACK-TESTOPS','JWzQr','YgKIP','yHskx','body','zZZZw','test_run_uuid','Uploading\x20trace\x20logs\x20to:\x20','../performance/constants','then','length','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','EXVtO','headers','OLWWF','getBrowserName','replace','[%s][\x20Accessibility\x20]\x20Error\x20printing\x20accessibility\x20build\x20link\x20%s','TadJr','timeout','NJnNG','nYGCU','browserstack','][\x20','stack','config','BROWSERSTACK_ACCESSIBILITY','2504022SbVzeE','\x20:\x20','toISOString','asyncAwaitNodeReq','push','BROWSERSTACK_TEST_REPORTING','CLDsv','TqhHZ','AssertionError','21NLwyUV','data','VZlIJ','Xwdkx','../../bin/utils/logPatcher','vVsFO','sowGI','isInternalHook','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','parse','formData','IALTj','../helper','jest','PathHelper','platformVersion','BROWSERSTACK_TEST_REPORTING_DEBUG','CTnjf','getDefaultHeaders','getCustomTags','codeceptjs','maxTotalSockets','../../helpers/request-spy','@playwright/test','getFrameworkVersion','\x20]\x20Build\x20Not\x20Found\x20%s','../logger','dist','PeAde','join','match','bdeic','7870743ekNUrX','lqFPd','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','JdLdH','local_grid','https','maxSockets','../../bin/utils/constants','Tlbgy','AZRlx','getPlatformDetails','getPlatform','kwwDm','IjCcU','TzXjH','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','forEach','OIKaZ','win32','stringify','ZttPS','ddVhO','getUserName','IrryY','Yaivt','execSync','TEST_ATTACHMENT','dpyvK','LogCreated'];a137_0x402e=function(){return _0x5698dc;};return a137_0x402e();}exports['shouldReRunObservabilityTests']=()=>{const _0x58f45b=a137_0x33ee03,_0x15d78a={};_0x15d78a[_0x58f45b(0x1d1)]=function(_0x4be9f0,_0x39c188){return _0x4be9f0!==_0x39c188;},_0x15d78a['exOMc']=_0x58f45b(0x245);const _0x52dac9=_0x15d78a;return process[_0x58f45b(0x216)][_0x58f45b(0x1f3)]&&_0x52dac9[_0x58f45b(0x1d1)](process[_0x58f45b(0x216)]['BROWSERSTACK_RERUN_TESTS'],_0x52dac9['exOMc'])?!![]:![];},exports['isTestObservabilitySession']=()=>{const _0x5bea08=a137_0x33ee03,_0x164a60={};_0x164a60[_0x5bea08(0x257)]=function(_0x4aebef,_0x364e3c){return _0x4aebef===_0x364e3c;},_0x164a60[_0x5bea08(0x270)]=_0x5bea08(0x205),_0x164a60[_0x5bea08(0x1e8)]=function(_0xbc2122,_0xb74dee){return _0xbc2122===_0xb74dee;},_0x164a60['nYGCU']=function(_0x16fdb5,_0x236c9f){return _0x16fdb5===_0x236c9f;};const _0x4b27ce=_0x164a60;let _0x1cd394=!![];return process[_0x5bea08(0x216)][_0x5bea08(0x24c)]&&(_0x1cd394=_0x4b27ce[_0x5bea08(0x257)](process[_0x5bea08(0x216)][_0x5bea08(0x24c)],_0x4b27ce[_0x5bea08(0x270)])),process['env'][_0x5bea08(0x26c)]&&(_0x1cd394=_0x4b27ce['TytQq'](process['env'][_0x5bea08(0x26c)],_0x4b27ce[_0x5bea08(0x270)])),process[_0x5bea08(0x216)][_0x5bea08(0x2a8)]&&(_0x1cd394=_0x4b27ce[_0x5bea08(0x29d)](process['env']['BROWSERSTACK_TEST_REPORTING'],_0x4b27ce['gNBwP'])),_0x1cd394;},exports[a137_0x33ee03(0x27a)]=_0x159f60=>{const _0x3f8570=a137_0x33ee03;if(bsSetupHelper[_0x3f8570(0x1db)](_0x159f60))return undefined;try{return _0x159f60[_0x3f8570(0x27f)]()[_0x3f8570(0x250)](',');}catch(_0x4ff683){return undefined;}},exports[a137_0x33ee03(0x1c1)]=()=>{const _0xe6e07e=a137_0x33ee03,_0x44eac5={'AZRlx':function(_0x279de7,_0x472004){return _0x279de7(_0x472004);},'utQky':'../../bin/v2/browserstackCLI','suRAe':function(_0x3eb2eb,_0x138b01){return _0x3eb2eb!==_0x138b01;},'TadJr':_0xe6e07e(0x245),'sowGI':function(_0x36e849,_0x45f439){return _0x36e849!==_0x45f439;},'lxgJO':_0xe6e07e(0x20b),'ztdxk':function(_0x4e4551,_0x44e3e0){return _0x4e4551===_0x44e3e0;},'kwwDm':_0xe6e07e(0x205),'rkQdN':function(_0x72acd5,_0x1026c3){return _0x72acd5&&_0x1026c3;}};return PerformanceTester[_0xe6e07e(0x1f2)](PerformanceO11yEvents[_0xe6e07e(0x25c)],async()=>{const _0x58725a=_0xe6e07e;try{const _0x2b411f=_0x44eac5[_0x58725a(0x2d5)](require,_0x44eac5[_0x58725a(0x1ea)]);if(_0x2b411f[_0x58725a(0x277)]){const _0xb3dbde='Visit\x20'+O11Y_URL+_0x58725a(0x267)+_0x2b411f['O11yHashedID']+_0x58725a(0x2b4);buildLogger[_0x58725a(0x276)](_0xb3dbde),exports[_0x58725a(0x1bf)](_0x2b411f[_0x58725a(0x277)],_0x2b411f['A11yEnabled']);return;}if(process[_0x58725a(0x216)]['BS_TESTOPS_BUILD_HASHED_ID']&&_0x44eac5[_0x58725a(0x1fa)](process[_0x58725a(0x216)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x44eac5[_0x58725a(0x29a)])&&_0x44eac5[_0x58725a(0x2b2)](process['env']['BS_TESTOPS_BUILD_HASHED_ID'],_0x44eac5[_0x58725a(0x253)])){const _0x2f2420='Visit\x20'+constants[_0x58725a(0x23c)]+'/builds/'+process[_0x58725a(0x216)][_0x58725a(0x255)]+'\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a';buildLogger[_0x58725a(0x276)](_0x2f2420);const _0x5d3564=_0x44eac5[_0x58725a(0x1ce)](process['env'][_0x58725a(0x2a2)],_0x44eac5[_0x58725a(0x2d8)]);let _0x226a6c=![];try{const _0x8d59f1=JSON[_0x58725a(0x2b5)](process[_0x58725a(0x216)]['BROWSERSTACK_PRODUCT_MAP']||'{}');_0x226a6c=_0x44eac5[_0x58725a(0x1ce)](_0x8d59f1[_0x58725a(0x217)],!![]);}catch(_0x20beec){}exports[_0x58725a(0x1bf)](process[_0x58725a(0x216)]['BS_TESTOPS_BUILD_HASHED_ID'],_0x44eac5['rkQdN'](_0x5d3564,!_0x226a6c));}}catch(_0x43c242){logger[_0x58725a(0x269)](util[_0x58725a(0x237)](_0x58725a(0x280)+constants['TEST_REPORTING_ANALYTICS']+_0x58725a(0x2c5),new Date()['toISOString'](),_0x43c242[_0x58725a(0x2a0)]||_0x43c242[_0x58725a(0x1dc)]||_0x43c242));}})();},exports[a137_0x33ee03(0x1bf)]=(_0x50b533,_0x3f1b70)=>{const _0x2ce786=a137_0x33ee03,_0x21e0a1={};_0x21e0a1[_0x2ce786(0x274)]=function(_0x3269c0,_0x508767){return _0x3269c0&&_0x508767;},_0x21e0a1[_0x2ce786(0x1f4)]=_0x2ce786(0x299);const _0x8c999=_0x21e0a1;try{if(_0x8c999[_0x2ce786(0x274)](_0x3f1b70,_0x50b533)){const _0x338785='https://accessibility.browserstack.com/automated-tests/projects/p/builds/b/1?thBuildId='+_0x50b533,_0xabd07='Visit\x20'+_0x338785+'\x20to\x20view\x20accessibility\x20report.\x0a';buildLogger['info'](_0xabd07);}}catch(_0x5159ac){logger[_0x2ce786(0x269)](util['format'](_0x8c999['XSxDq'],new Date()[_0x2ce786(0x2a5)](),_0x5159ac[_0x2ce786(0x2a0)]||_0x5159ac['message']||_0x5159ac));}},exports[a137_0x33ee03(0x286)]=_0x2aa388=>{const _0x5ebc42=a137_0x33ee03,_0x43014b={};_0x43014b[_0x5ebc42(0x28b)]=_0x5ebc42(0x2ab),_0x43014b[_0x5ebc42(0x1c3)]=_0x5ebc42(0x203),_0x43014b['EXVtO']=_0x5ebc42(0x1e1),_0x43014b['tguai']=_0x5ebc42(0x1ff);const _0x3f992b=_0x43014b;if(!_0x2aa388)return null;const _0x48bbaf=_0x2aa388[_0x5ebc42(0x1d2)]();if(_0x48bbaf['match'](/AssertionError/))return _0x3f992b[_0x5ebc42(0x28b)];if(_0x48bbaf[_0x5ebc42(0x2ca)](/TimeoutError/)||_0x48bbaf['startsWith'](_0x3f992b[_0x5ebc42(0x1c3)])||_0x48bbaf['match'](/Timeout.*exceeded/i))return _0x3f992b[_0x5ebc42(0x294)];return _0x3f992b[_0x5ebc42(0x25b)];},exports[a137_0x33ee03(0x2c4)]=_0x2473cb=>{const _0x148473=a137_0x33ee03,_0x177362={};_0x177362[_0x148473(0x233)]=_0x148473(0x1da),_0x177362['xRkIG']=_0x148473(0x2c3),_0x177362['eESMZ']=_0x148473(0x2c0),_0x177362[_0x148473(0x1f9)]=_0x148473(0x2b9),_0x177362[_0x148473(0x2dd)]='@cucumber/cucumber',_0x177362[_0x148473(0x28d)]='puppeteer-core',_0x177362['xXSWU']=_0x148473(0x244);const _0x3132dd=_0x177362;let _0x5f3716=null;switch(_0x2473cb){case FRAMEWORKS[_0x148473(0x1e2)]:_0x5f3716=bsSetupHelper[_0x148473(0x1f5)](_0x3132dd[_0x148473(0x233)]);break;case FRAMEWORKS[_0x148473(0x271)]:_0x5f3716=bsSetupHelper[_0x148473(0x1f5)](_0x3132dd[_0x148473(0x25e)]);break;case FRAMEWORKS['CODECEPT']:case FRAMEWORKS['CODECEPT_CUCUMBER']:_0x5f3716=bsSetupHelper[_0x148473(0x1f5)](_0x3132dd['eESMZ']);break;case FRAMEWORKS['JEST']:_0x5f3716=bsSetupHelper[_0x148473(0x1f5)](_0x3132dd[_0x148473(0x1f9)]);break;case FRAMEWORKS['CUCUMBER']:_0x5f3716=bsSetupHelper[_0x148473(0x1f5)](_0x3132dd[_0x148473(0x2dd)]);break;case FRAMEWORKS[_0x148473(0x224)]:_0x5f3716=bsSetupHelper[_0x148473(0x1f5)](_0x3132dd[_0x148473(0x28d)])||bsSetupHelper[_0x148473(0x1f5)](_0x3132dd[_0x148473(0x24e)]);break;default:break;}return _0x5f3716;},exports[a137_0x33ee03(0x25f)]=_0x4f08b3=>{const _0x2926f2=a137_0x33ee03;let _0x4efd8c=null;switch(_0x4f08b3){case FRAMEWORKS[_0x2926f2(0x271)]:_0x4efd8c=process[_0x2926f2(0x216)][_0x2926f2(0x264)];break;}if(!_0x4efd8c)return;return bsSetupHelper['readConfig'](_0x4efd8c,![]);},exports['getUserCredentials']=_0x28aee9=>{const _0x13ecdf=a137_0x33ee03;return{'username':bsSetupHelper[_0x13ecdf(0x2e2)](_0x28aee9),'accessKey':bsSetupHelper[_0x13ecdf(0x222)](_0x28aee9)};},exports[a137_0x33ee03(0x212)]=(_0x513119,_0x7340ff)=>{const _0x50e24c=a137_0x33ee03,_0x5a8f1e={};_0x5a8f1e['Cngjw']=_0x50e24c(0x220),_0x5a8f1e['kTjSQ']=_0x50e24c(0x1bc),_0x5a8f1e[_0x50e24c(0x24a)]=_0x50e24c(0x1ba);const _0x3595cf=_0x5a8f1e,_0x1210b8=_0x3595cf[_0x50e24c(0x258)][_0x50e24c(0x250)]('|');let _0xe31c70=0x0;while(!![]){switch(_0x1210b8[_0xe31c70++]){case'0':delete _0x513119[_0x50e24c(0x28c)];continue;case'1':if(!_0x513119[_0x50e24c(0x28c)][0x0]||!_0x513119[_0x50e24c(0x28c)][0x0][_0x50e24c(0x21b)]||!_0x513119[_0x50e24c(0x28c)][0x0][_0x50e24c(0x21b)]['length'])return;continue;case'2':delete _0x513119[_0x50e24c(0x202)];continue;case'3':delete _0x7340ff[_0x50e24c(0x295)];continue;case'4':if(!_0x513119['body']||!Array[_0x50e24c(0x214)](_0x513119[_0x50e24c(0x28c)]))return;continue;case'5':_0x513119[_0x50e24c(0x2b6)]={'data':_0x513119['body'][0x0][_0x50e24c(0x21b)][0x0][_0x50e24c(0x2ad)],'test_run_uuid':_0x513119['body'][0x0][_0x50e24c(0x21b)][0x0][_0x50e24c(0x28e)],'event_type':_0x3595cf[_0x50e24c(0x1df)],'kind':_0x3595cf[_0x50e24c(0x24a)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x50e24c(0x2a5)](),'fileName':_0x513119[_0x50e24c(0x28c)][0x0][_0x50e24c(0x21b)][0x0]['fileName']};continue;}break;}},exports[a137_0x33ee03(0x2a6)]=async(_0x1603b2,_0x20c8f2,_0x4faa03,_0x1480d0,_0x1ce918=!![])=>{const _0x3aaadc=a137_0x33ee03,_0x472325={};_0x472325[_0x3aaadc(0x2c8)]=function(_0x3b0c30,_0x4ca4ab){return _0x3b0c30===_0x4ca4ab;},_0x472325[_0x3aaadc(0x2d4)]=_0x3aaadc(0x27c),_0x472325[_0x3aaadc(0x242)]=_0x3aaadc(0x1f8),_0x472325[_0x3aaadc(0x226)]='https',_0x472325['ihkIs']=function(_0x44242a,_0x72bf1f){return _0x44242a!==_0x72bf1f;},_0x472325['CybrK']=function(_0x873a31,_0x594114){return _0x873a31!==_0x594114;},_0x472325[_0x3aaadc(0x296)]=_0x3aaadc(0x1e4),_0x472325['ddVhO']=_0x3aaadc(0x252);const _0x3b250f=_0x472325,_0xdb96eb={..._0x1480d0,...{'method':_0x1603b2,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x20c8f2,'body':_0x4faa03,'json':_0x3b250f[_0x3aaadc(0x2c8)](_0x1480d0[_0x3aaadc(0x295)][_0x3b250f[_0x3aaadc(0x2d4)]],_0x3b250f['tdcid']),'agent':API_URL['includes'](_0x3b250f[_0x3aaadc(0x226)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x3b250f[_0x3aaadc(0x2c8)](_0x20c8f2,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0xdb96eb[_0x3aaadc(0x1fc)]=API_URL[_0x3aaadc(0x1ec)](_0x3b250f[_0x3aaadc(0x226)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports[_0x3aaadc(0x212)](_0xdb96eb,_0x1480d0),logger[_0x3aaadc(0x1c9)](_0x3aaadc(0x28f)+_0xdb96eb['url']));try{const {statusCode:_0x97f35a,body:_0x196ca1}=await bsSetupHelper[_0x3aaadc(0x1d5)](_0x1603b2,_0x20c8f2,_0xdb96eb,_0x1480d0,_0xdb96eb[_0x3aaadc(0x283)]);if(_0x3b250f[_0x3aaadc(0x1cb)](_0x97f35a,0xc8))return _0x196ca1?_0x196ca1:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x97f35a;let _0x1cad36=_0x196ca1;if(_0x1ce918)try{_0x3b250f['CybrK'](typeof _0x196ca1,_0x3b250f[_0x3aaadc(0x296)])&&(_0x1cad36=JSON[_0x3aaadc(0x2b5)](_0x196ca1));}catch(_0x5ccfe5){logger[_0x3aaadc(0x269)](_0x3b250f[_0x3aaadc(0x2e1)],_0x196ca1,util['format'](_0x5ccfe5));}const _0x141e28={};return _0x141e28[_0x3aaadc(0x2ad)]=_0x1cad36,_0x141e28;}catch(_0x3965cb){logger[_0x3aaadc(0x269)](_0x3aaadc(0x2db)+util[_0x3aaadc(0x237)](_0x3965cb));throw _0x3965cb;}},exports['nodeRequest']=(_0x45cefd,_0x1a575c,_0x2e8b7e,_0x19c7cd,_0x3df671=!![])=>{const _0x1f10d3=a137_0x33ee03,_0x5ae906={'NeSdn':function(_0x2db939,_0x10341c){return _0x2db939!==_0x10341c;},'ytEQm':function(_0x5f4e44,_0x107e3f){return _0x5f4e44(_0x107e3f);},'TqhHZ':_0x1f10d3(0x1e4),'TzXjH':function(_0x3c25bf,_0x3a5871){return _0x3c25bf(_0x3a5871);},'HnGey':_0x1f10d3(0x1e5),'RopkC':function(_0x58d0ed,_0x445c91){return _0x58d0ed(_0x445c91);},'dVzJL':function(_0x115f1a,_0x38f69c){return _0x115f1a===_0x38f69c;},'EBWIx':'Content-Type','MEQrw':_0x1f10d3(0x1f8),'lqFPd':_0x1f10d3(0x2d1)};return new Promise((_0x197900,_0x3a1c84)=>{const _0x762fba=_0x1f10d3,_0x3648d4={'bdeic':function(_0x331abb,_0x5197c5){return _0x5ae906['RopkC'](_0x331abb,_0x5197c5);}},_0x2b9ef4={..._0x19c7cd,...{'method':_0x45cefd,'url':API_URL+'/'+_0x1a575c,'body':_0x2e8b7e,'json':_0x5ae906[_0x762fba(0x1fb)](_0x19c7cd[_0x762fba(0x295)][_0x5ae906[_0x762fba(0x1d9)]],_0x5ae906[_0x762fba(0x234)]),'agent':API_URL[_0x762fba(0x1ec)](_0x5ae906['lqFPd'])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x5ae906[_0x762fba(0x1fb)](_0x1a575c,SCREENSHOT_ENDPOINT)&&(_0x2b9ef4[_0x762fba(0x1fc)]=API_URL[_0x762fba(0x1ec)](_0x5ae906[_0x762fba(0x2cd)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x762fba(0x1d5)](_0x45cefd,_0x1a575c,_0x2b9ef4,_0x19c7cd,API_URL)[_0x762fba(0x291)](({statusCode:_0x35a925,body:_0x2fd23f})=>{const _0x3b8eb7=_0x762fba;if(_0x5ae906[_0x3b8eb7(0x236)](_0x35a925,0xc8))_0x5ae906['ytEQm'](_0x3a1c84,_0x2fd23f?_0x2fd23f:_0x3b8eb7(0x293)+_0x35a925);else{if(_0x3df671)try{_0x5ae906[_0x3b8eb7(0x236)](typeof _0x2fd23f,_0x5ae906[_0x3b8eb7(0x2aa)])&&(_0x2fd23f=JSON['parse'](_0x2fd23f));}catch(_0x5cd776){_0x5ae906[_0x3b8eb7(0x2da)](_0x3a1c84,_0x5ae906[_0x3b8eb7(0x1e9)]);return;}const _0x1652d1={};_0x1652d1[_0x3b8eb7(0x2ad)]=_0x2fd23f,_0x5ae906[_0x3b8eb7(0x2da)](_0x197900,_0x1652d1);}})[_0x762fba(0x1f1)](_0x388a9f=>{const _0xc6ae9a=_0x762fba;_0x388a9f&&_0x3648d4[_0xc6ae9a(0x2cb)](_0x3a1c84,_0x388a9f);});});},exports[a137_0x33ee03(0x26a)]=_0x57f21c=>{const _0x1f933c=a137_0x33ee03;if(process[_0x1f933c(0x216)][_0x1f933c(0x287)])return process['env'][_0x1f933c(0x287)][_0x1f933c(0x250)](',');if(process[_0x1f933c(0x216)]['TEST_OBSERVABILITY_BUILD_TAG'])return process[_0x1f933c(0x216)]['TEST_OBSERVABILITY_BUILD_TAG']['split'](',');if(_0x57f21c[_0x1f933c(0x249)])return _0x57f21c['buildTag'];return[];},exports[a137_0x33ee03(0x2be)]=(_0x17651a=!![])=>{const _0x2e8615=a137_0x33ee03,_0x13a190={};_0x13a190['CTnjf']=_0x2e8615(0x1f8),_0x13a190[_0x2e8615(0x207)]=_0x2e8615(0x205),_0x13a190[_0x2e8615(0x289)]=_0x2e8615(0x1c0);const _0x49763e=_0x13a190,_0x34f58b={};_0x34f58b[_0x2e8615(0x27c)]=_0x49763e[_0x2e8615(0x2bd)],_0x34f58b[_0x2e8615(0x288)]=_0x49763e[_0x2e8615(0x207)];const _0x322737=_0x34f58b;return _0x17651a&&process[_0x2e8615(0x216)]['BROWSERSTACK_TESTHUB_JWT']&&(_0x322737[_0x49763e['JWzQr']]=_0x2e8615(0x225)+process[_0x2e8615(0x216)][_0x2e8615(0x23e)]),_0x322737;},exports[a137_0x33ee03(0x1d0)]=_0x31f6bb=>{const _0x5a70da=a137_0x33ee03,_0x5bf26a={};_0x5bf26a['QRJCx']='^CUSTOM_TAG_\x5cd+$';const _0x2367b6=_0x5bf26a,_0x5bfc81=[],_0xcd5833=new RegExp(_0x2367b6['QRJCx'],'i');return Object[_0x5a70da(0x22b)](_0x31f6bb)[_0x5a70da(0x279)](_0xe5e0b3=>_0xcd5833[_0x5a70da(0x240)](_0xe5e0b3))['forEach'](_0x93035a=>_0x5bfc81[_0x5a70da(0x2a7)](_0x31f6bb[_0x93035a])),_0x5bfc81;},exports[a137_0x33ee03(0x2bf)]=_0x5b5605=>{const _0x3ae5f8=a137_0x33ee03,_0x2e28d5=[],_0x3bd419=_0x5b5605[_0x3ae5f8(0x21f)]||process[_0x3ae5f8(0x216)][_0x3ae5f8(0x221)];return _0x3bd419&&_0x2e28d5[_0x3ae5f8(0x2a7)](_0x3bd419),_0x2e28d5[_0x3ae5f8(0x2a7)](...exports['extractValuesWithRegexKeyMatch'](process['env'])),_0x2e28d5[_0x3ae5f8(0x2a7)](...exports['extractValuesWithRegexKeyMatch'](_0x5b5605)),_0x2e28d5;},exports[a137_0x33ee03(0x284)]=_0x3b907a=>{const _0x2c3b78=a137_0x33ee03;if(!_0x3b907a)return'';return _0x3b907a[_0x2c3b78(0x298)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports['sleep']=(_0x39ec15=0x64)=>new Promise(_0x35a123=>setTimeout(_0x35a123,_0x39ec15));const getPlatformName=()=>{const _0x42f370=a137_0x33ee03,_0x19d52f={};_0x19d52f['LbPMT']=function(_0x823962,_0x37bb2f){return _0x823962===_0x37bb2f;},_0x19d52f['vLlSh']=_0x42f370(0x2de),_0x19d52f[_0x42f370(0x261)]='Windows',_0x19d52f[_0x42f370(0x2af)]=function(_0x433fa8,_0x51e1a5){return _0x433fa8===_0x51e1a5;},_0x19d52f[_0x42f370(0x2ae)]='darwin',_0x19d52f['TaxXz']='OS\x20X',_0x19d52f[_0x42f370(0x1cf)]=_0x42f370(0x1c2),_0x19d52f['DxKWp']=_0x42f370(0x1eb),_0x19d52f['JdLdH']=_0x42f370(0x27b);const _0x1c940d=_0x19d52f;if(_0x1c940d[_0x42f370(0x275)](process['platform'],_0x1c940d[_0x42f370(0x204)]))return _0x1c940d[_0x42f370(0x261)];if(_0x1c940d[_0x42f370(0x2af)](process[_0x42f370(0x26d)],_0x1c940d['VZlIJ']))return _0x1c940d[_0x42f370(0x265)];if(_0x1c940d[_0x42f370(0x2af)](process[_0x42f370(0x26d)],_0x1c940d[_0x42f370(0x1cf)]))return _0x1c940d[_0x42f370(0x1ed)];return _0x1c940d[_0x42f370(0x2cf)];},getMacOSVersion=()=>{const _0x5b21f8=a137_0x33ee03,_0x57b7c5={};_0x57b7c5[_0x5b21f8(0x1f0)]='awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27';const _0x3746c7=_0x57b7c5;return child_process[_0x5b21f8(0x1b9)](_0x3746c7[_0x5b21f8(0x1f0)])[_0x5b21f8(0x1d2)]()[_0x5b21f8(0x27f)]();},getLinuxDetails=()=>{const _0x5e03c2={'ZttPS':function(_0x3288d4,_0x24c8c7){return _0x3288d4(_0x24c8c7);},'hYVAW':function(_0x5c515d,_0x5b2369){return _0x5c515d(_0x5b2369);}};return new Promise((_0x9c95f7,_0x326d32)=>{const _0x156e77=a137_0x2ff7;_0x5e03c2[_0x156e77(0x259)](getos,(_0x33f101,_0x4966d1)=>{const _0x1f169b=_0x156e77;if(_0x33f101)return _0x5e03c2[_0x1f169b(0x2e0)](_0x326d32,_0x33f101);_0x5e03c2['ZttPS'](_0x9c95f7,_0x4966d1);});});};exports[a137_0x33ee03(0x2d6)]=async()=>{const _0x2749a9=a137_0x33ee03,_0x1a7770={'pskAQ':function(_0x2947cb){return _0x2947cb();},'aEwPa':_0x2749a9(0x263),'yGUCS':function(_0x161952){return _0x161952();},'nuXWL':'Windows','DWOEf':_0x2749a9(0x25a),'NietC':_0x2749a9(0x1eb),'wfICA':function(_0x39ccc4){return _0x39ccc4();},'IALTj':_0x2749a9(0x27e)};let _0x14e4bf=_0x1a7770[_0x2749a9(0x1d3)](getPlatformName),_0x821a05=os['release']()[_0x2749a9(0x1d2)]();switch(_0x14e4bf){case _0x1a7770[_0x2749a9(0x209)]:_0x821a05=_0x1a7770[_0x2749a9(0x219)](getMacOSVersion);break;case _0x1a7770[_0x2749a9(0x215)]:try{const _0xa26d24=(await import(_0x1a7770[_0x2749a9(0x1e3)]))[_0x2749a9(0x1ef)];_0x821a05=_0x1a7770[_0x2749a9(0x1d3)](_0xa26d24);}catch(_0x31e0ee){exports['debug'](_0x2749a9(0x20a)+_0x31e0ee[_0x2749a9(0x1d2)]());}break;case _0x1a7770[_0x2749a9(0x223)]:try{const _0x45feae=await _0x1a7770[_0x2749a9(0x26f)](getLinuxDetails);_0x45feae[_0x2749a9(0x2c7)]&&(_0x14e4bf=_0x45feae[_0x2749a9(0x2c7)]),_0x45feae['release']&&(_0x821a05=_0x45feae['release'][_0x2749a9(0x1d2)]());}catch(_0x3cad00){exports['debug'](_0x1a7770[_0x2749a9(0x2b7)]);}break;default:break;}const _0x339209={};return _0x339209[_0x2749a9(0x208)]=_0x14e4bf,_0x339209[_0x2749a9(0x2bb)]=_0x821a05,_0x339209;},exports[a137_0x33ee03(0x251)]=(_0x2d3820,_0x2ca690)=>{const _0x2d3df2=a137_0x33ee03,_0x5e26a4={};_0x5e26a4[_0x2d3df2(0x1bb)]=function(_0x40b62d,_0x9dff48){return _0x40b62d===_0x9dff48;},_0x5e26a4[_0x2d3df2(0x29c)]='test',_0x5e26a4[_0x2d3df2(0x1c8)]=_0x2d3df2(0x210);const _0x337c33=_0x5e26a4;if(!_0x2d3820)return[];try{if(_0x337c33['dpyvK'](_0x2ca690,_0x337c33[_0x2d3df2(0x29c)]))return!Array[_0x2d3df2(0x214)](_0x2d3820)&&(_0x2d3820=[_0x2d3820]),_0x2d3820[_0x2d3df2(0x262)](_0xa42a78=>{const _0x345e57=_0x2d3df2,{stack:_0x362bcc,..._0x283430}=_0xa42a78,_0x4b3437=Object[_0x345e57(0x22b)](_0x283430)[_0x345e57(0x262)](_0x42ebb0=>{return _0x42ebb0+':\x20'+_0x283430[_0x42ebb0];}),_0x280284=_0x362bcc?exports[_0x345e57(0x284)](_0x362bcc)[_0x345e57(0x250)](/\r?\n/):[exports[_0x345e57(0x284)](_0xa42a78[_0x345e57(0x1dc)])],_0x3bdfae={};return _0x3bdfae[_0x345e57(0x227)]=_0x280284,_0x3bdfae[_0x345e57(0x231)]=_0x4b3437,_0x3bdfae;});else{if(_0x337c33['dpyvK'](_0x2ca690,_0x337c33[_0x2d3df2(0x1c8)])){const _0x9272e7=[],_0x45c266=[];return Object['keys'](_0x2d3820)['forEach'](_0xed5e57=>{const _0x59afed=_0x2d3df2;try{_0x45c266[_0x59afed(0x2a7)](_0xed5e57+':\x20'+_0x2d3820[_0xed5e57]);}catch(_0x55aa30){exports[_0x59afed(0x1c9)](_0x59afed(0x2ce)+_0x55aa30[_0x59afed(0x1dc)]+_0x59afed(0x2a4)+_0x55aa30[_0x59afed(0x227)]);}}),_0x9272e7[_0x2d3df2(0x2a7)]({'backtrace':exports[_0x2d3df2(0x284)](_0x2d3820['stack'])[_0x2d3df2(0x250)](/\r?\n/),'expanded':_0x45c266}),_0x9272e7;}}return[];}catch(_0x1df3e8){exports[_0x2d3df2(0x1c9)](_0x2d3df2(0x2ce)+_0x1df3e8[_0x2d3df2(0x1dc)]+_0x2d3df2(0x2a4)+_0x1df3e8[_0x2d3df2(0x227)]);}return[];};class PathHelper{constructor(_0x430af2,_0x15171d){const _0x1f276b=a137_0x33ee03;this[_0x1f276b(0x2a1)]=_0x430af2,this[_0x1f276b(0x246)]=_0x15171d;}[a137_0x33ee03(0x229)](_0x46c2ca){const _0x1837ad=a137_0x33ee03,_0x4369b1=this['config'][_0x1837ad(0x20e)]||this[_0x1837ad(0x2a1)][_0x1837ad(0x24d)];return path['relative'](_0x4369b1,_0x46c2ca);}[a137_0x33ee03(0x21c)](_0x177a71){const _0x3c5893=a137_0x33ee03,_0x492101=this[_0x3c5893(0x229)](_0x177a71);return this[_0x3c5893(0x246)]?path[_0x3c5893(0x2c9)](this[_0x3c5893(0x246)],_0x492101):_0x492101;}}function a137_0x2ff7(_0x50f079,_0x573a3){const _0x402e2b=a137_0x402e();return a137_0x2ff7=function(_0x2ff7ed,_0x177190){_0x2ff7ed=_0x2ff7ed-0x1b9;let _0x24f56d=_0x402e2b[_0x2ff7ed];return _0x24f56d;},a137_0x2ff7(_0x50f079,_0x573a3);}exports[a137_0x33ee03(0x2ba)]=PathHelper,exports[a137_0x33ee03(0x213)]=(_0x14ea28=!![])=>{const _0x5b496d=a137_0x33ee03,_0x4ad3ab={};_0x4ad3ab[_0x5b496d(0x1cd)]=function(_0x2788e7,_0x496df7){return _0x2788e7===_0x496df7;},_0x4ad3ab['NRZAo']=_0x5b496d(0x288),_0x4ad3ab[_0x5b496d(0x1c7)]='true',_0x4ad3ab[_0x5b496d(0x24b)]='HTTP',_0x4ad3ab['CLDsv']=_0x5b496d(0x29e),_0x4ad3ab[_0x5b496d(0x239)]=_0x5b496d(0x2d0);const _0x188a90=_0x4ad3ab;requestSpy[_0x5b496d(0x281)]((_0x4d2f3c,_0x3cffe4)=>{const _0x77b61f=_0x5b496d;_0x3cffe4&&!(_0x3cffe4[_0x77b61f(0x295)]&&_0x188a90[_0x77b61f(0x1cd)](_0x3cffe4[_0x77b61f(0x295)][_0x188a90['NRZAo']],_0x188a90['imOPn']))&&(_0x3cffe4[_0x77b61f(0x1bd)]=_0x3cffe4[_0x77b61f(0x1de)],delete _0x3cffe4['hostname'],_0x14ea28&&process[_0x77b61f(0x21a)]('bs:addLog:'+process[_0x77b61f(0x1f7)],{'timestamp':new Date()[_0x77b61f(0x2a5)](),'level':null,'message':null,'kind':_0x188a90['hYBSE'],'http_response':_0x3cffe4})),_0x3cffe4&&(constants[_0x77b61f(0x235)]['test'](_0x3cffe4['host'])||constants[_0x77b61f(0x1ee)][_0x77b61f(0x240)](_0x3cffe4[_0x77b61f(0x1bd)]))?global[_0x77b61f(0x1e6)]=_0x188a90[_0x77b61f(0x2a9)]:global[_0x77b61f(0x1e6)]=_0x188a90[_0x77b61f(0x239)];});},exports['patchConsoleLogger']=()=>{const _0x341861=a137_0x33ee03,_0x3a2459={'ggoZC':function(_0x3241cc,_0x1f6f68){return _0x3241cc(_0x1f6f68);}};console={},Object[_0x341861(0x22b)](consoleHolder)[_0x341861(0x2dc)](_0x1d7658=>{const _0x579d98=_0x341861;_0x3a2459[_0x579d98(0x24f)](isFunction,consoleHolder[_0x1d7658])?console[_0x1d7658]=(..._0x147ce1)=>{const _0x2171fc=_0x579d98;try{!Object[_0x2171fc(0x22b)](BSTestOpsPatcher)[_0x2171fc(0x1ec)](_0x1d7658)?consoleHolder[_0x1d7658](..._0x147ce1):BSTestOpsPatcher[_0x1d7658](..._0x147ce1);}catch(_0x5c09f0){consoleHolder[_0x1d7658](..._0x147ce1);}}:console[_0x1d7658]=consoleHolder[_0x1d7658];});},exports[a137_0x33ee03(0x1e7)]=()=>a137_0x33ee03(0x1c6)+JSON[a137_0x33ee03(0x2df)]({'action':'annotate','arguments':{'data':a137_0x33ee03(0x22a)+Date['now'](),'level':a137_0x33ee03(0x1c9)}}),exports[a137_0x33ee03(0x230)]=_0x2b7f27=>{const _0x4c0621=a137_0x33ee03,_0x4cd532={};_0x4cd532[_0x4c0621(0x1fe)]=function(_0x43dfdc,_0x1bfc12){return _0x43dfdc===_0x1bfc12;},_0x4cd532['IjCcU']=_0x4c0621(0x29e),_0x4cd532[_0x4c0621(0x23a)]=_0x4c0621(0x266),_0x4cd532[_0x4c0621(0x2e3)]='app',_0x4cd532['SUjxe']=function(_0x302eb8,_0x7318b7){return _0x302eb8>_0x7318b7;},_0x4cd532['jOLJb']=_0x4c0621(0x20f),_0x4cd532[_0x4c0621(0x206)]=_0x4c0621(0x243),_0x4cd532[_0x4c0621(0x2b1)]=_0x4c0621(0x1d6),_0x4cd532[_0x4c0621(0x1e0)]=_0x4c0621(0x22e),_0x4cd532[_0x4c0621(0x1ca)]=_0x4c0621(0x254);const _0x82232c=_0x4cd532;let _0x180a8c=null;try{if(_0x82232c[_0x4c0621(0x1fe)](global[_0x4c0621(0x1e6)],_0x82232c[_0x4c0621(0x2d9)])){if(_0x2b7f27[_0x82232c[_0x4c0621(0x23a)]]||_0x2b7f27[_0x82232c[_0x4c0621(0x2e3)]]||!bsSetupHelper[_0x4c0621(0x1db)](global['capabilities'])&&_0x82232c[_0x4c0621(0x201)](global['capabilities'][_0x4c0621(0x292)],0x0)&&(global[_0x4c0621(0x1dd)][0x0][_0x82232c['IrryY']]||global[_0x4c0621(0x1dd)][0x0][_0x82232c[_0x4c0621(0x23a)]]))_0x180a8c=_0x82232c['jOLJb'];else _0x2b7f27[_0x82232c[_0x4c0621(0x206)]]&&_0x2b7f27[_0x82232c[_0x4c0621(0x206)]][_0x82232c['vVsFO']]?_0x180a8c=_0x82232c[_0x4c0621(0x1e0)]:_0x180a8c=_0x82232c['kIDIQ'];}}catch(_0x292704){exports[_0x4c0621(0x1c9)](_0x4c0621(0x20c)+constants[_0x4c0621(0x21e)]+_0x4c0621(0x1d4)+_0x292704);}return _0x180a8c;},exports['sendPlatformDetails']=async(_0x51f4ad,_0x38739d,_0x4ff929=![])=>{const _0x21a6f0=a137_0x33ee03,_0x331228={};_0x331228['ZMkbG']=function(_0x1ee377,_0x5614c6){return _0x1ee377===_0x5614c6;},_0x331228[_0x21a6f0(0x28a)]='browserstack',_0x331228[_0x21a6f0(0x1c5)]=_0x21a6f0(0x1d7),_0x331228[_0x21a6f0(0x1d8)]=_0x21a6f0(0x1c4);const _0x5c4b0b=_0x331228;try{const _0x1b6fe7=await _0x51f4ad[_0x21a6f0(0x27d)](),_0x78ba33=await _0x51f4ad[_0x21a6f0(0x200)](),_0x2514ae={},_0x49ba77=Object[_0x21a6f0(0x22f)](_0x78ba33['getCapabilities']()[_0x21a6f0(0x20d)]),_0x190972={'product':exports['getObservabilityLinkedProductName'](_0x49ba77),'capabilities':_0x49ba77,'platform':_0x1b6fe7[_0x21a6f0(0x2d7)](),'platform_version':bsSetupHelper[_0x21a6f0(0x1be)](_0x5c4b0b['ZMkbG'](global['__cloud_provider___'],_0x5c4b0b[_0x21a6f0(0x28a)])),'browser':_0x1b6fe7[_0x21a6f0(0x297)](),'browser_version':_0x1b6fe7[_0x21a6f0(0x272)](),'session_id':_0x78ba33[_0x21a6f0(0x260)]()};global[_0x21a6f0(0x1e6)]?_0x2514ae[global[_0x21a6f0(0x1e6)]]=_0x190972:_0x2514ae[_0x5c4b0b[_0x21a6f0(0x1c5)]]=_0x190972;if(_0x4ff929)return _0x2514ae;process['emit'](_0x21a6f0(0x228)+process[_0x21a6f0(0x1f7)],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x5c4b0b['MzGoV'],'http_response':_0x2514ae,'uuid':_0x38739d});}catch(_0x40f2fa){exports['debug'](_0x21a6f0(0x273)+_0x40f2fa);}},exports[a137_0x33ee03(0x2b3)]=_0x443433=>{const _0x120f5a=a137_0x33ee03;return _0x443433&&_0x443433[_0x120f5a(0x1d2)]()[_0x120f5a(0x2ca)](/browserstack internal helper hook/);};
1
+ const a137_0x4adbb8=a137_0x5913;(function(_0x2b6d9e,_0xb5f78c){const _0x17acc8=a137_0x5913,_0x2a35d0=_0x2b6d9e();while(!![]){try{const _0x40e43a=parseInt(_0x17acc8(0x7d))/0x1+-parseInt(_0x17acc8(0x12d))/0x2+parseInt(_0x17acc8(0x195))/0x3*(parseInt(_0x17acc8(0xc5))/0x4)+-parseInt(_0x17acc8(0x10f))/0x5*(parseInt(_0x17acc8(0xe8))/0x6)+-parseInt(_0x17acc8(0x90))/0x7*(parseInt(_0x17acc8(0xae))/0x8)+-parseInt(_0x17acc8(0xad))/0x9+parseInt(_0x17acc8(0x151))/0xa*(parseInt(_0x17acc8(0xcf))/0xb);if(_0x40e43a===_0xb5f78c)break;else _0x2a35d0['push'](_0x2a35d0['shift']());}catch(_0x93c981){_0x2a35d0['push'](_0x2a35d0['shift']());}}}(a137_0x1a90,0x5ad29));const fs=require('fs'),path=require(a137_0x4adbb8(0x156)),gitLastCommit=require(a137_0x4adbb8(0x19c)),getRepoInfo=require(a137_0x4adbb8(0x147)),{consoleHolder,API_URL,SCREENSHOT_ENDPOINT,UPLOAD_ATTACHMENT_ENDPOINT,FRAMEWORKS,OBSERVABILITY_UPLOAD_API_URL}=require(a137_0x4adbb8(0xf3)),http=require(a137_0x4adbb8(0x85)),https=require(a137_0x4adbb8(0x131)),child_process=require(a137_0x4adbb8(0x103)),getos=require(a137_0x4adbb8(0xaa)),os=require('os'),logger=require('../logger')[a137_0x4adbb8(0x178)],buildLogger=require(a137_0x4adbb8(0x117))[a137_0x4adbb8(0x13a)],bsSetupHelper=require(a137_0x4adbb8(0x1a3)),requestSpy=require(a137_0x4adbb8(0xed)),constants=require(a137_0x4adbb8(0x16d)),logPatcher=require(a137_0x4adbb8(0x15b)),util=require('util'),{fileLogger}=require('../logger'),PerformanceTester=require('../performance/performance-tester'),{isFunction}=require(a137_0x4adbb8(0x10d)),BSTestOpsPatcher=new logPatcher({}),{O11y_EVENTS:PerformanceO11yEvents}=require(a137_0x4adbb8(0x169)),{PLAYWRIGHT_TRACE_LOGS,O11Y_URL}=require(a137_0x4adbb8(0xd8));exports['trace']=_0x2edbc3=>{const _0x3a8a89=a137_0x4adbb8;fileLogger[_0x3a8a89(0x77)]('['+new Date()[_0x3a8a89(0xb8)]()+_0x3a8a89(0x182)+constants[_0x3a8a89(0x176)]+_0x3a8a89(0x133)+_0x2edbc3);},exports[a137_0x4adbb8(0xce)]=_0xb27915=>{const _0x501630=a137_0x4adbb8,_0x58df68={};_0x58df68[_0x501630(0x105)]=function(_0x2dbc56,_0x1828f4){return _0x2dbc56===_0x1828f4;},_0x58df68[_0x501630(0x18f)]='true',_0x58df68[_0x501630(0xc7)]=function(_0x1e98bf,_0x22e0ad){return _0x1e98bf===_0x22e0ad;};const _0x23186f=_0x58df68;fileLogger[_0x501630(0xce)]('['+new Date()[_0x501630(0xb8)]()+_0x501630(0x182)+constants[_0x501630(0x176)]+_0x501630(0x133)+_0xb27915),(_0x23186f[_0x501630(0x105)](process[_0x501630(0x193)][_0x501630(0x17d)],_0x23186f[_0x501630(0x18f)])||_0x23186f[_0x501630(0xc7)](process[_0x501630(0x193)][_0x501630(0x17d)],'1')||_0x23186f[_0x501630(0x105)](process[_0x501630(0x193)][_0x501630(0x165)],_0x23186f[_0x501630(0x18f)])||_0x23186f[_0x501630(0x105)](process[_0x501630(0x193)][_0x501630(0x165)],'1'))&&consoleHolder[_0x501630(0x13e)]('\x0a['+new Date()[_0x501630(0xb8)]()+_0x501630(0x182)+constants['TEST_REPORTING_ANALYTICS']+'\x20]\x20'+_0xb27915+'\x0a');};const a137_0x827dfe={};a137_0x827dfe['keepAlive']=!![],a137_0x827dfe[a137_0x4adbb8(0x95)]=0xea60,a137_0x827dfe[a137_0x4adbb8(0x174)]=0x2,a137_0x827dfe[a137_0x4adbb8(0x197)]=0x2;const httpKeepAliveAgent=new http[(a137_0x4adbb8(0x96))](a137_0x827dfe),a137_0x1c0605={};a137_0x1c0605[a137_0x4adbb8(0x175)]=!![],a137_0x1c0605[a137_0x4adbb8(0x95)]=0xea60,a137_0x1c0605[a137_0x4adbb8(0x174)]=0x2,a137_0x1c0605['maxTotalSockets']=0x2;function a137_0x1a90(){const _0x268e3a=['formData','timeout','Agent','release','emit','getObservabilityLinkedProductName','getBrowserStackConfig','then','BcThO','darwin','windows-release','lQFxC','wdauc','AEIQm','awk\x20\x27/SOFTWARE\x20LICENSE\x20AGREEMENT\x20FOR\x20macOS/\x27\x20\x27/System/Library/CoreServices/Setup\x20Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf\x27\x20|\x20awk\x20-F\x20\x27macOS\x20\x27\x20\x27{print\x20$NF}\x27\x20|\x20awk\x20\x27{print\x20substr($0,\x200,\x20length($0)-1)}\x27','mocha','catch','keys','parseFileNames','forEach','CEJTx','info','getos','XcFvL','O11Y_URL','968841ZHKEQq','4695216OoZioJ','\x20]\x20Build\x20Not\x20Found\x20%s','4|5|3|1|0|2','includes','startsWith','zXefN','__cloud_provider___','TwVot','Unknown','Visit\x20','toISOString','CkcUt','linux','bstack:options','failureData','expanded','isUndefined','stack','split','jHZus','printA11yBuildLink','goqCs','addRequestSpy','617404lisKNa','push','Uxjkp','pid','appium:app','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server\x20-\x20body:\x20%s,\x20error:\x20%s','measureWrapper','backtrace','headers','debug','7625783GUBNZW','test_run_uuid','Content-Type','ybRDo','jtDvm','tkRPg','relativeTestFilePath','O11yHashedID','CJpEG','../../../src/bin/utils/constants','CUSTOM_TAG','https://accessibility.browserstack.com/automated-tests/projects/p/builds/b/1?thBuildId=','LBDAO','BROWSERSTACK_TEST_OBSERVABILITY_YML','sleep','Not\x20a\x20JSON\x20response\x20from\x20BrowserStack\x20Server','codeceptjs','toJSON','fqHcH','rSEuo','getCapabilities','message','capabilities','zEAcF','OS\x20X','6NsWZPB','BROWSERSTACK_TEST_REPORTING','vwsJu','getSyncScript','IPmwF','../../helpers/request-spy','rootDir','aUVmB','patchConsoleLogger','BROWSERSTACK_TESTHUB_JWT','Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20','./constants','gtaee','getPlatformDetails','url','GwCQL','nodeRequest','automate','replace','mKnJa','prefixTestPath','getSession','mrcNp','getPackageVersion','mFZdM','vYzEw','eGfJF','child_process','vaknx','pritC','BROWSERSTACK_CONFIG_FILE_PATH','mvXLL','fromEntries','yDVfI','local_grid','mFozU','Windows','lodash','ISTft','2220445IOHLgD','logs','BROWSERSTACK_RERUN_TESTS','PJUDb','browserstack','platformName','wZWub','app-automate','../logger','jest','fcKMF','removeAnsiColors','filter','umGAT','Rfvmb','getUserCredentials','getCustomTags','JEBch','iuKcZ','format','CODECEPT','tWCgA','sendPlatformDetails','prefix','aEhjI','puppeteer','app_automate','platform','yQSko','Iiuog','55490NCunVp','pPbGa','tOTCS','VMyDK','https','HUB_URL_REGEX','\x20]\x20','BROWSERSTACK_PRODUCT_MAP','wxAZm','RdrQM','getPlatform','TEST_REPORTING_BUILD_TAG','HMwGM','buildLogger','test','hiKJi','X-BSTACK-TESTOPS','log','/builds/','Ffntl','map','ioWlL','CUCUMBER','gfaSi','Bearer\x20','Linux','git-repo-info','browserstack_executor:\x20','CODECEPT_CUCUMBER','PathHelper','app','vYkYq','getBrowserName','TEST_ATTACHMENT','A11yEnabled','config','10mSBPxG','ReBgM','wmjPh','NafDp','error','path','puppeteer-core','isArray','fNMNy','VpJGh','../../bin/utils/logPatcher','map_','Bcizv','kKAxS','AgQfO','REYFo','buildTag','fileName','BROWSERSTACK_TEST_OBSERVABILITY','oLwag','BROWSERSTACK_OBSERVABILITY_DEBUG','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','undefined','@playwright/test','../performance/constants','Test\x20timeout\x20of','execSync','isTestObservabilitySession','../../bin/utils/constants','UnhandledError','parse','true','WAGcP','QPEVq','^CUSTOM_TAG_\x5cd+$','maxSockets','keepAlive','TEST_REPORTING_ANALYTICS','Authorization','winstonLogger','wXSDv','host','@cucumber/cucumber','\x20to\x20view\x20build\x20report,\x20insights,\x20and\x20many\x20more\x20debugging\x20information\x20all\x20at\x20one\x20place!\x0a','BROWSERSTACK_TEST_REPORTING_DEBUG','err','LogCreated','jUWEO','HTTP','][\x20','getAccessKey','OhqKs','bs:addLog:','hDUMZ','eVuVq','LsZda','agent','data','pYqJR','PLAYWRIGHT','TEST_OBSERVABILITY_BUILD_TAG','readConfig','BGJiF','JwLRm','KGoTd','match','env','aqCXX','6AfvOtQ','Exception\x20in\x20populating\x20test\x20failure\x20data\x20with\x20error\x20:\x20','maxTotalSockets','AgivF','STMrF','hostname','extractValuesWithRegexKeyMatch','git-last-commit','customTag','length','getBuildTags','\x20test\x20instance\x20:\x20','unknown_grid','ldlyn','../helper','getUserName','BS_TESTOPS_BUILD_HASHED_ID','Uploading\x20trace\x20logs\x20to:\x20','CiJfz','OvMbl','silly','\x20:\x20','trim','dist','Error\x20in\x20importing\x20windows-release\x20','body','536439QRrJpl','DvowW','PFBWj','bs:addPlatformDetails:','ObservabilitySync:','VYFZh','toString','Error\x20in\x20getting\x20Linux\x20Details','http','Error\x20in\x20sending\x20request\x20to\x20BrowserStack\x20Server\x20:\x20','uRQDQ','default','turboScaleGridDetails','null','yrwDu','application/json','OCKeA','getBrowserVersion','KePUe','7eHXNXT','getFrameworkVersion','TEST_PLATFORM','HmlMm'];a137_0x1a90=function(){return _0x268e3a;};return a137_0x1a90();}const httpsKeepAliveAgent=new https['Agent'](a137_0x1c0605),a137_0x3d620b={};a137_0x3d620b[a137_0x4adbb8(0x175)]=!![],a137_0x3d620b[a137_0x4adbb8(0x95)]=0xea60,a137_0x3d620b[a137_0x4adbb8(0x174)]=0x2,a137_0x3d620b[a137_0x4adbb8(0x197)]=0x2;const httpScreenshotsKeepAliveAgent=new http[(a137_0x4adbb8(0x96))](a137_0x3d620b),a137_0x565941={};a137_0x565941['keepAlive']=!![],a137_0x565941[a137_0x4adbb8(0x95)]=0xea60,a137_0x565941[a137_0x4adbb8(0x174)]=0x2,a137_0x565941[a137_0x4adbb8(0x197)]=0x2;const httpsScreenshotsKeepAliveAgent=new https[(a137_0x4adbb8(0x96))](a137_0x565941);exports['shouldReRunObservabilityTests']=()=>{const _0x3095fa=a137_0x4adbb8,_0x5a79f4={};_0x5a79f4[_0x3095fa(0xea)]=function(_0x18ea7e,_0xe23981){return _0x18ea7e!==_0xe23981;},_0x5a79f4[_0x3095fa(0xd7)]=_0x3095fa(0x8a);const _0x446cc6=_0x5a79f4;return process[_0x3095fa(0x193)][_0x3095fa(0x111)]&&_0x446cc6[_0x3095fa(0xea)](process[_0x3095fa(0x193)][_0x3095fa(0x111)],_0x446cc6['CJpEG'])?!![]:![];},exports[a137_0x4adbb8(0x16c)]=()=>{const _0x6df6b3=a137_0x4adbb8,_0x519312={};_0x519312[_0x6df6b3(0x130)]=function(_0x286ed4,_0x336361){return _0x286ed4===_0x336361;},_0x519312[_0x6df6b3(0x107)]=_0x6df6b3(0x170),_0x519312[_0x6df6b3(0x190)]=function(_0x1fa339,_0xd247af){return _0x1fa339===_0xd247af;};const _0x1e3821=_0x519312;let _0x4415b0=!![];return process['env'][_0x6df6b3(0xdc)]&&(_0x4415b0=_0x1e3821['VMyDK'](process[_0x6df6b3(0x193)]['BROWSERSTACK_TEST_OBSERVABILITY_YML'],_0x1e3821['mvXLL'])),process[_0x6df6b3(0x193)][_0x6df6b3(0x163)]&&(_0x4415b0=_0x1e3821['JwLRm'](process[_0x6df6b3(0x193)][_0x6df6b3(0x163)],_0x1e3821['mvXLL'])),process[_0x6df6b3(0x193)][_0x6df6b3(0xe9)]&&(_0x4415b0=_0x1e3821[_0x6df6b3(0x130)](process[_0x6df6b3(0x193)]['BROWSERSTACK_TEST_REPORTING'],_0x1e3821[_0x6df6b3(0x107)])),_0x4415b0;},exports[a137_0x4adbb8(0xa6)]=_0x3e1b24=>{const _0x16443e=a137_0x4adbb8;if(bsSetupHelper[_0x16443e(0xbe)](_0x3e1b24))return undefined;try{return _0x3e1b24[_0x16443e(0x79)]()[_0x16443e(0xc0)](',');}catch(_0x110bd1){return undefined;}},exports['printBuildLink']=()=>{const _0x559406=a137_0x4adbb8,_0x2f7aa8={'OhqKs':function(_0x3107eb,_0xd1fd3f){return _0x3107eb(_0xd1fd3f);},'OkOKp':'../../bin/v2/browserstackCLI','OvMbl':function(_0x698bb9,_0x428478){return _0x698bb9!==_0x428478;},'VpJGh':'null','wdauc':_0x559406(0x167),'vYzEw':function(_0x1b4533,_0x34ff38){return _0x1b4533===_0x34ff38;},'ynYLm':_0x559406(0x170),'AgivF':function(_0x12cc5a,_0xb0fe4b){return _0x12cc5a&&_0xb0fe4b;}};return PerformanceTester[_0x559406(0xcb)](PerformanceO11yEvents['PRINT_BUILDLINK'],async()=>{const _0x3e74bd=_0x559406;try{const _0x4e06ab=_0x2f7aa8[_0x3e74bd(0x184)](require,_0x2f7aa8['OkOKp']);if(_0x4e06ab[_0x3e74bd(0xd6)]){const _0x49583e=_0x3e74bd(0xb7)+O11Y_URL+'/builds/'+_0x4e06ab[_0x3e74bd(0xd6)]+_0x3e74bd(0x17c);buildLogger[_0x3e74bd(0xa9)](_0x49583e),exports[_0x3e74bd(0xc2)](_0x4e06ab[_0x3e74bd(0xd6)],_0x4e06ab[_0x3e74bd(0x14f)]);return;}if(process[_0x3e74bd(0x193)][_0x3e74bd(0x1a5)]&&_0x2f7aa8[_0x3e74bd(0x76)](process[_0x3e74bd(0x193)][_0x3e74bd(0x1a5)],_0x2f7aa8[_0x3e74bd(0x15a)])&&_0x2f7aa8[_0x3e74bd(0x76)](process['env']['BS_TESTOPS_BUILD_HASHED_ID'],_0x2f7aa8[_0x3e74bd(0xa0)])){const _0xc44f11=_0x3e74bd(0xb7)+constants[_0x3e74bd(0xac)]+_0x3e74bd(0x13f)+process['env']['BS_TESTOPS_BUILD_HASHED_ID']+_0x3e74bd(0x17c);buildLogger[_0x3e74bd(0xa9)](_0xc44f11);const _0x7851a4=_0x2f7aa8[_0x3e74bd(0x101)](process[_0x3e74bd(0x193)]['BROWSERSTACK_ACCESSIBILITY'],_0x2f7aa8['ynYLm']);let _0x25d207=![];try{const _0x38772c=JSON[_0x3e74bd(0x16f)](process[_0x3e74bd(0x193)][_0x3e74bd(0x134)]||'{}');_0x25d207=_0x2f7aa8[_0x3e74bd(0x101)](_0x38772c[_0x3e74bd(0x129)],!![]);}catch(_0x1bedac){}exports[_0x3e74bd(0xc2)](process['env'][_0x3e74bd(0x1a5)],_0x2f7aa8[_0x3e74bd(0x198)](_0x7851a4,!_0x25d207));}}catch(_0x16f97b){logger[_0x3e74bd(0x155)](util[_0x3e74bd(0x122)]('[%s][\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x3e74bd(0xaf),new Date()[_0x3e74bd(0xb8)](),_0x16f97b[_0x3e74bd(0xbf)]||_0x16f97b['message']||_0x16f97b));}})();},exports[a137_0x4adbb8(0xc2)]=(_0x20b9a5,_0x518e46)=>{const _0x3ceb84=a137_0x4adbb8,_0x268e0b={};_0x268e0b['CiJfz']=function(_0x2a721e,_0xa05173){return _0x2a721e&&_0xa05173;},_0x268e0b[_0x3ceb84(0xfe)]='[%s][\x20Accessibility\x20]\x20Error\x20printing\x20accessibility\x20build\x20link\x20%s';const _0x55bbad=_0x268e0b;try{if(_0x55bbad[_0x3ceb84(0x75)](_0x518e46,_0x20b9a5)){const _0x5dc537=_0x3ceb84(0xda)+_0x20b9a5,_0x24ea9b=_0x3ceb84(0xb7)+_0x5dc537+'\x20to\x20view\x20accessibility\x20report.\x0a';buildLogger['info'](_0x24ea9b);}}catch(_0x44cc5b){logger[_0x3ceb84(0x155)](util['format'](_0x55bbad[_0x3ceb84(0xfe)],new Date()['toISOString'](),_0x44cc5b[_0x3ceb84(0xbf)]||_0x44cc5b['message']||_0x44cc5b));}},exports['getFailureType']=_0x4b99bd=>{const _0x281145=a137_0x4adbb8,_0x314300={};_0x314300['jvnrt']='AssertionError',_0x314300['mKnJa']=_0x281145(0x16a),_0x314300['ulwPu']='TimeoutError',_0x314300['GwCQL']=_0x281145(0x16e);const _0x46d3d5=_0x314300;if(!_0x4b99bd)return null;const _0x1e3598=_0x4b99bd[_0x281145(0x83)]();if(_0x1e3598[_0x281145(0x192)](/AssertionError/))return _0x46d3d5['jvnrt'];if(_0x1e3598[_0x281145(0x192)](/TimeoutError/)||_0x1e3598[_0x281145(0xb2)](_0x46d3d5[_0x281145(0xfb)])||_0x1e3598[_0x281145(0x192)](/Timeout.*exceeded/i))return _0x46d3d5['ulwPu'];return _0x46d3d5[_0x281145(0xf7)];},exports[a137_0x4adbb8(0x91)]=_0x2e9a16=>{const _0x2031cf=a137_0x4adbb8,_0x456c55={};_0x456c55['pYqJR']=_0x2031cf(0xa3),_0x456c55[_0x2031cf(0x87)]=_0x2031cf(0x168),_0x456c55[_0x2031cf(0x112)]=_0x2031cf(0xdf),_0x456c55[_0x2031cf(0xe1)]=_0x2031cf(0x118),_0x456c55[_0x2031cf(0x160)]=_0x2031cf(0x17b),_0x456c55[_0x2031cf(0x14c)]=_0x2031cf(0x157),_0x456c55['yQSko']=_0x2031cf(0x128);const _0x49c536=_0x456c55;let _0x5155eb=null;switch(_0x2e9a16){case FRAMEWORKS['MOCHA']:_0x5155eb=bsSetupHelper[_0x2031cf(0xff)](_0x49c536[_0x2031cf(0x18b)]);break;case FRAMEWORKS[_0x2031cf(0x18c)]:_0x5155eb=bsSetupHelper[_0x2031cf(0xff)](_0x49c536[_0x2031cf(0x87)]);break;case FRAMEWORKS[_0x2031cf(0x123)]:case FRAMEWORKS[_0x2031cf(0x149)]:_0x5155eb=bsSetupHelper[_0x2031cf(0xff)](_0x49c536['PJUDb']);break;case FRAMEWORKS['JEST']:_0x5155eb=bsSetupHelper[_0x2031cf(0xff)](_0x49c536[_0x2031cf(0xe1)]);break;case FRAMEWORKS[_0x2031cf(0x143)]:_0x5155eb=bsSetupHelper[_0x2031cf(0xff)](_0x49c536[_0x2031cf(0x160)]);break;case FRAMEWORKS['PUPPETEER']:_0x5155eb=bsSetupHelper[_0x2031cf(0xff)](_0x49c536['vYkYq'])||bsSetupHelper['getPackageVersion'](_0x49c536[_0x2031cf(0x12b)]);break;default:break;}return _0x5155eb;},exports[a137_0x4adbb8(0x9a)]=_0x2c7dd1=>{const _0x4f4540=a137_0x4adbb8;let _0x114cf4=null;switch(_0x2c7dd1){case FRAMEWORKS['PLAYWRIGHT']:_0x114cf4=process[_0x4f4540(0x193)][_0x4f4540(0x106)];break;}if(!_0x114cf4)return;return bsSetupHelper[_0x4f4540(0x18e)](_0x114cf4,![]);},exports[a137_0x4adbb8(0x11e)]=_0x4c69af=>{const _0x1ef967=a137_0x4adbb8;return{'username':bsSetupHelper[_0x1ef967(0x1a4)](_0x4c69af),'accessKey':bsSetupHelper[_0x1ef967(0x183)](_0x4c69af)};},exports['modifyReqForTraceUpload']=(_0x29d0d0,_0x54ece7)=>{const _0x4f39ad=a137_0x4adbb8,_0xe325fe={};_0xe325fe[_0x4f39ad(0xdb)]=_0x4f39ad(0xb0),_0xe325fe[_0x4f39ad(0x194)]=_0x4f39ad(0x17f),_0xe325fe['rSEuo']=_0x4f39ad(0x14e);const _0xeace96=_0xe325fe,_0x47d3f5=_0xeace96[_0x4f39ad(0xdb)][_0x4f39ad(0xc0)]('|');let _0x1131b9=0x0;while(!![]){switch(_0x47d3f5[_0x1131b9++]){case'0':delete _0x29d0d0['json'];continue;case'1':delete _0x29d0d0['body'];continue;case'2':delete _0x54ece7[_0x4f39ad(0xcd)];continue;case'3':_0x29d0d0[_0x4f39ad(0x94)]={'data':_0x29d0d0[_0x4f39ad(0x7c)][0x0][_0x4f39ad(0x110)][0x0][_0x4f39ad(0x18a)],'test_run_uuid':_0x29d0d0['body'][0x0][_0x4f39ad(0x110)][0x0][_0x4f39ad(0xd0)],'event_type':_0xeace96[_0x4f39ad(0x194)],'kind':_0xeace96[_0x4f39ad(0xe2)],'attachmentType':PLAYWRIGHT_TRACE_LOGS,'timestamp':new Date()[_0x4f39ad(0xb8)](),'fileName':_0x29d0d0[_0x4f39ad(0x7c)][0x0][_0x4f39ad(0x110)][0x0][_0x4f39ad(0x162)]};continue;case'4':if(!_0x29d0d0[_0x4f39ad(0x7c)]||!Array[_0x4f39ad(0x158)](_0x29d0d0[_0x4f39ad(0x7c)]))return;continue;case'5':if(!_0x29d0d0[_0x4f39ad(0x7c)][0x0]||!_0x29d0d0[_0x4f39ad(0x7c)][0x0][_0x4f39ad(0x110)]||!_0x29d0d0[_0x4f39ad(0x7c)][0x0][_0x4f39ad(0x110)][_0x4f39ad(0x19e)])return;continue;}break;}},exports['asyncAwaitNodeReq']=async(_0x1131f0,_0x44e4a3,_0x4d31b2,_0x4dbc11,_0x3be34a=!![])=>{const _0x3ef32b=a137_0x4adbb8,_0x122d2d={};_0x122d2d[_0x3ef32b(0x171)]=function(_0x345f92,_0xf4a649){return _0x345f92===_0xf4a649;},_0x122d2d['Ffntl']='Content-Type',_0x122d2d[_0x3ef32b(0x120)]=_0x3ef32b(0x8c),_0x122d2d[_0x3ef32b(0x119)]=_0x3ef32b(0x131),_0x122d2d['AgQfO']=function(_0x5f064b,_0x3035fa){return _0x5f064b===_0x3035fa;},_0x122d2d[_0x3ef32b(0xd4)]=function(_0x38c1c0,_0x2648cf){return _0x38c1c0!==_0x2648cf;},_0x122d2d['iuKcZ']='object',_0x122d2d[_0x3ef32b(0x9f)]=_0x3ef32b(0xca);const _0x3ee1b1=_0x122d2d,_0x41a866={..._0x4dbc11,...{'method':_0x1131f0,'url':OBSERVABILITY_UPLOAD_API_URL+'/'+_0x44e4a3,'body':_0x4d31b2,'json':_0x3ee1b1[_0x3ef32b(0x171)](_0x4dbc11[_0x3ef32b(0xcd)][_0x3ee1b1[_0x3ef32b(0x140)]],_0x3ee1b1[_0x3ef32b(0x120)]),'agent':API_URL[_0x3ef32b(0xb1)](_0x3ee1b1[_0x3ef32b(0x119)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x3ee1b1[_0x3ef32b(0x15f)](_0x44e4a3,UPLOAD_ATTACHMENT_ENDPOINT)&&(_0x41a866[_0x3ef32b(0x189)]=API_URL[_0x3ef32b(0xb1)](_0x3ee1b1[_0x3ef32b(0x119)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent,exports['modifyReqForTraceUpload'](_0x41a866,_0x4dbc11),logger[_0x3ef32b(0xce)](_0x3ef32b(0x1a6)+_0x41a866[_0x3ef32b(0xf6)]));try{const {statusCode:_0x4f4bd6,body:_0xfe7074}=await bsSetupHelper['nodeRequest'](_0x1131f0,_0x44e4a3,_0x41a866,_0x4dbc11,_0x41a866[_0x3ef32b(0xf6)]);if(_0x3ee1b1[_0x3ef32b(0xd4)](_0x4f4bd6,0xc8))return _0xfe7074?_0xfe7074:'Received\x20response\x20from\x20BrowserStack\x20Server\x20with\x20status\x20:\x20'+_0x4f4bd6;let _0x1cff93=_0xfe7074;if(_0x3be34a)try{_0x3ee1b1[_0x3ef32b(0xd4)](typeof _0xfe7074,_0x3ee1b1[_0x3ef32b(0x121)])&&(_0x1cff93=JSON[_0x3ef32b(0x16f)](_0xfe7074));}catch(_0xc3c79){logger[_0x3ef32b(0x155)](_0x3ee1b1[_0x3ef32b(0x9f)],_0xfe7074,util[_0x3ef32b(0x122)](_0xc3c79));}const _0x50b0ef={};return _0x50b0ef[_0x3ef32b(0x18a)]=_0x1cff93,_0x50b0ef;}catch(_0x474076){logger['error'](_0x3ef32b(0x86)+util[_0x3ef32b(0x122)](_0x474076));throw _0x474076;}},exports[a137_0x4adbb8(0xf8)]=(_0x5564e4,_0xfe173f,_0x2425f1,_0x9926a0,_0x2c8393=!![])=>{const _0x33ff13=a137_0x4adbb8,_0x5cf231={'BcThO':function(_0x4d9a96,_0x1a8282){return _0x4d9a96!==_0x1a8282;},'kKAxS':function(_0x5d6da2,_0x32b32e){return _0x5d6da2(_0x32b32e);},'vaknx':'object','jtDvm':_0x33ff13(0xde),'fNMNy':function(_0xc26d8c,_0x6182a7){return _0xc26d8c===_0x6182a7;},'mFozU':_0x33ff13(0xd1),'tOTCS':'application/json','Iiuog':_0x33ff13(0x131),'gfaSi':function(_0x30b50c,_0xe999ea){return _0x30b50c===_0xe999ea;}};return new Promise((_0x4e9900,_0x5fca92)=>{const _0x58c699=_0x33ff13,_0x362fef={'hiKJi':function(_0x530777,_0x184625){const _0x597412=a137_0x5913;return _0x5cf231[_0x597412(0x9c)](_0x530777,_0x184625);},'ReBgM':function(_0x2e0d69,_0xd63d73){const _0x2bbbb2=a137_0x5913;return _0x5cf231[_0x2bbbb2(0x15e)](_0x2e0d69,_0xd63d73);},'KZZxi':_0x5cf231[_0x58c699(0x104)],'HMwGM':_0x5cf231[_0x58c699(0xd3)]},_0x3da394={..._0x9926a0,...{'method':_0x5564e4,'url':API_URL+'/'+_0xfe173f,'body':_0x2425f1,'json':_0x5cf231[_0x58c699(0x159)](_0x9926a0[_0x58c699(0xcd)][_0x5cf231[_0x58c699(0x10b)]],_0x5cf231[_0x58c699(0x12f)]),'agent':API_URL[_0x58c699(0xb1)](_0x5cf231[_0x58c699(0x12c)])?httpsKeepAliveAgent:httpKeepAliveAgent}};_0x5cf231[_0x58c699(0x144)](_0xfe173f,SCREENSHOT_ENDPOINT)&&(_0x3da394[_0x58c699(0x189)]=API_URL[_0x58c699(0xb1)](_0x5cf231[_0x58c699(0x12c)])?httpsScreenshotsKeepAliveAgent:httpScreenshotsKeepAliveAgent),bsSetupHelper[_0x58c699(0xf8)](_0x5564e4,_0xfe173f,_0x3da394,_0x9926a0,API_URL)[_0x58c699(0x9b)](({statusCode:_0x5512b1,body:_0x15f3b6})=>{const _0x122e54=_0x58c699;if(_0x362fef[_0x122e54(0x13c)](_0x5512b1,0xc8))_0x362fef[_0x122e54(0x152)](_0x5fca92,_0x15f3b6?_0x15f3b6:_0x122e54(0xf2)+_0x5512b1);else{if(_0x2c8393)try{_0x362fef['hiKJi'](typeof _0x15f3b6,_0x362fef['KZZxi'])&&(_0x15f3b6=JSON[_0x122e54(0x16f)](_0x15f3b6));}catch(_0x500629){_0x362fef[_0x122e54(0x152)](_0x5fca92,_0x362fef[_0x122e54(0x139)]);return;}const _0xc2cde0={};_0xc2cde0['data']=_0x15f3b6,_0x362fef['ReBgM'](_0x4e9900,_0xc2cde0);}})[_0x58c699(0xa4)](_0xe98fc8=>{const _0x199ab4=_0x58c699;_0xe98fc8&&_0x362fef[_0x199ab4(0x152)](_0x5fca92,_0xe98fc8);});});},exports[a137_0x4adbb8(0x19f)]=_0x408885=>{const _0x5027d1=a137_0x4adbb8;if(process['env']['TEST_REPORTING_BUILD_TAG'])return process['env'][_0x5027d1(0x138)][_0x5027d1(0xc0)](',');if(process[_0x5027d1(0x193)]['TEST_OBSERVABILITY_BUILD_TAG'])return process[_0x5027d1(0x193)][_0x5027d1(0x18d)][_0x5027d1(0xc0)](',');if(_0x408885[_0x5027d1(0x161)])return _0x408885[_0x5027d1(0x161)];return[];},exports['getDefaultHeaders']=(_0x4f97ca=!![])=>{const _0x3f9f49=a137_0x4adbb8,_0x636244={};_0x636244[_0x3f9f49(0x154)]=_0x3f9f49(0x8c),_0x636244['RdrQM']=_0x3f9f49(0x170),_0x636244[_0x3f9f49(0x124)]=_0x3f9f49(0x177);const _0x562ed4=_0x636244,_0x52491f={};_0x52491f[_0x3f9f49(0xd1)]=_0x562ed4[_0x3f9f49(0x154)],_0x52491f[_0x3f9f49(0x13d)]=_0x562ed4[_0x3f9f49(0x136)];const _0x556fc2=_0x52491f;return _0x4f97ca&&process[_0x3f9f49(0x193)][_0x3f9f49(0xf1)]&&(_0x556fc2[_0x562ed4['tWCgA']]=_0x3f9f49(0x145)+process['env'][_0x3f9f49(0xf1)]),_0x556fc2;},exports[a137_0x4adbb8(0x19b)]=_0x7404bc=>{const _0x572c26=a137_0x4adbb8,_0x4d2aeb={};_0x4d2aeb[_0x572c26(0x115)]=_0x572c26(0x173);const _0x3c1c5c=_0x4d2aeb,_0x1dcc71=[],_0x2f1fd3=new RegExp(_0x3c1c5c[_0x572c26(0x115)],'i');return Object['keys'](_0x7404bc)[_0x572c26(0x11b)](_0x551ae5=>_0x2f1fd3[_0x572c26(0x13b)](_0x551ae5))[_0x572c26(0xa7)](_0x5cc8f6=>_0x1dcc71[_0x572c26(0xc6)](_0x7404bc[_0x5cc8f6])),_0x1dcc71;},exports[a137_0x4adbb8(0x11f)]=_0x5864ee=>{const _0x3f1531=a137_0x4adbb8,_0x4711a6=[],_0x107b52=_0x5864ee[_0x3f1531(0x19d)]||process[_0x3f1531(0x193)][_0x3f1531(0xd9)];return _0x107b52&&_0x4711a6[_0x3f1531(0xc6)](_0x107b52),_0x4711a6[_0x3f1531(0xc6)](...exports[_0x3f1531(0x19b)](process['env'])),_0x4711a6[_0x3f1531(0xc6)](...exports['extractValuesWithRegexKeyMatch'](_0x5864ee)),_0x4711a6;},exports['removeAnsiColors']=_0xe185e5=>{const _0x27f222=a137_0x4adbb8;if(!_0xe185e5)return'';return _0xe185e5[_0x27f222(0xfa)](/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,'');},exports[a137_0x4adbb8(0xdd)]=(_0x3a2f4c=0x64)=>new Promise(_0xd2497c=>setTimeout(_0xd2497c,_0x3a2f4c));function a137_0x5913(_0x278697,_0x26a62f){const _0x1a9041=a137_0x1a90();return a137_0x5913=function(_0x59134e,_0x4fae8){_0x59134e=_0x59134e-0x75;let _0x31d95f=_0x1a9041[_0x59134e];return _0x31d95f;},a137_0x5913(_0x278697,_0x26a62f);}const getPlatformName=()=>{const _0x2e98a8=a137_0x4adbb8,_0x42f214={};_0x42f214[_0x2e98a8(0x172)]=function(_0x1ca476,_0x4e3eef){return _0x1ca476===_0x4e3eef;},_0x42f214['jHZus']='win32',_0x42f214[_0x2e98a8(0x15d)]=_0x2e98a8(0x10c),_0x42f214[_0x2e98a8(0xd2)]=function(_0x9a36a5,_0x342001){return _0x9a36a5===_0x342001;},_0x42f214[_0x2e98a8(0x142)]=_0x2e98a8(0x9d),_0x42f214[_0x2e98a8(0xf4)]='OS\x20X',_0x42f214[_0x2e98a8(0x188)]=function(_0x5c863a,_0x54a899){return _0x5c863a===_0x54a899;},_0x42f214[_0x2e98a8(0x11c)]=_0x2e98a8(0xba),_0x42f214[_0x2e98a8(0x199)]=_0x2e98a8(0x146),_0x42f214[_0x2e98a8(0xc3)]=_0x2e98a8(0xb6);const _0x16a026=_0x42f214;if(_0x16a026[_0x2e98a8(0x172)](process[_0x2e98a8(0x12a)],_0x16a026[_0x2e98a8(0xc1)]))return _0x16a026[_0x2e98a8(0x15d)];if(_0x16a026[_0x2e98a8(0xd2)](process['platform'],_0x16a026[_0x2e98a8(0x142)]))return _0x16a026['gtaee'];if(_0x16a026['LsZda'](process['platform'],_0x16a026[_0x2e98a8(0x11c)]))return _0x16a026[_0x2e98a8(0x199)];return _0x16a026[_0x2e98a8(0xc3)];},getMacOSVersion=()=>{const _0x3163c0=a137_0x4adbb8,_0x22d5ba={};_0x22d5ba['HmlMm']=_0x3163c0(0xa2);const _0x402a6d=_0x22d5ba;return child_process[_0x3163c0(0x16b)](_0x402a6d[_0x3163c0(0x93)])[_0x3163c0(0x83)]()[_0x3163c0(0x79)]();},getLinuxDetails=()=>{const _0x207ea8={'yrwDu':function(_0x42302d,_0x8d58ce){return _0x42302d(_0x8d58ce);},'pPbGa':function(_0x243823,_0x171de8){return _0x243823(_0x171de8);}};return new Promise((_0x396c09,_0x51c969)=>{const _0x545e0e=a137_0x5913,_0x3ad745={'aEhjI':function(_0x45f809,_0x412d0d){return _0x207ea8['yrwDu'](_0x45f809,_0x412d0d);},'ldlyn':function(_0x243cb9,_0x4bf73f){const _0x4b6958=a137_0x5913;return _0x207ea8[_0x4b6958(0x8b)](_0x243cb9,_0x4bf73f);}};_0x207ea8[_0x545e0e(0x12e)](getos,(_0x2c8ca0,_0x2be7f1)=>{const _0x27705c=_0x545e0e;if(_0x2c8ca0)return _0x3ad745[_0x27705c(0x127)](_0x51c969,_0x2c8ca0);_0x3ad745[_0x27705c(0x1a2)](_0x396c09,_0x2be7f1);});});};exports[a137_0x4adbb8(0xf5)]=async()=>{const _0x383f81=a137_0x4adbb8,_0x1e2118={'eCBjl':function(_0x370c95){return _0x370c95();},'wXSDv':_0x383f81(0xe7),'wxAZm':function(_0x4b9c28){return _0x4b9c28();},'yDVfI':_0x383f81(0x10c),'wzeyi':_0x383f81(0x9e),'SbXtL':function(_0x5e7ccd){return _0x5e7ccd();},'AeaoF':'Linux','zXefN':function(_0x3f7fa6){return _0x3f7fa6();},'cmbZw':_0x383f81(0x84)};let _0x197f53=_0x1e2118['eCBjl'](getPlatformName),_0x3fb5a8=os[_0x383f81(0x97)]()['toString']();switch(_0x197f53){case _0x1e2118[_0x383f81(0x179)]:_0x3fb5a8=_0x1e2118[_0x383f81(0x135)](getMacOSVersion);break;case _0x1e2118[_0x383f81(0x109)]:try{const _0x108560=(await import(_0x1e2118['wzeyi']))[_0x383f81(0x88)];_0x3fb5a8=_0x1e2118['SbXtL'](_0x108560);}catch(_0x15f7e1){exports[_0x383f81(0xce)](_0x383f81(0x7b)+_0x15f7e1[_0x383f81(0x83)]());}break;case _0x1e2118['AeaoF']:try{const _0x22c8dc=await _0x1e2118[_0x383f81(0xb3)](getLinuxDetails);_0x22c8dc[_0x383f81(0x7a)]&&(_0x197f53=_0x22c8dc[_0x383f81(0x7a)]),_0x22c8dc[_0x383f81(0x97)]&&(_0x3fb5a8=_0x22c8dc[_0x383f81(0x97)][_0x383f81(0x83)]());}catch(_0x35cae0){exports[_0x383f81(0xce)](_0x1e2118['cmbZw']);}break;default:break;}const _0x304119={};return _0x304119[_0x383f81(0x114)]=_0x197f53,_0x304119['platformVersion']=_0x3fb5a8,_0x304119;},exports[a137_0x4adbb8(0xbc)]=(_0x4727d6,_0x4c9cc5)=>{const _0x113c19=a137_0x4adbb8,_0xa47b69={};_0xa47b69['KePUe']=function(_0x587484,_0x52b49f){return _0x587484===_0x52b49f;},_0xa47b69[_0x113c19(0x100)]='test',_0xa47b69[_0x113c19(0x11d)]=function(_0x428c90,_0x24695f){return _0x428c90===_0x24695f;},_0xa47b69[_0x113c19(0x186)]=_0x113c19(0x17e);const _0x38a2b7=_0xa47b69;if(!_0x4727d6)return[];try{if(_0x38a2b7[_0x113c19(0x8f)](_0x4c9cc5,_0x38a2b7[_0x113c19(0x100)]))return!Array[_0x113c19(0x158)](_0x4727d6)&&(_0x4727d6=[_0x4727d6]),_0x4727d6[_0x113c19(0x141)](_0x3e73e7=>{const _0x220ed7=_0x113c19,{stack:_0x2a86eb,..._0x59bbc2}=_0x3e73e7,_0x11cf43=Object['keys'](_0x59bbc2)[_0x220ed7(0x141)](_0x3e3259=>{return _0x3e3259+':\x20'+_0x59bbc2[_0x3e3259];}),_0x5055aa=_0x2a86eb?exports['removeAnsiColors'](_0x2a86eb)[_0x220ed7(0xc0)](/\r?\n/):[exports['removeAnsiColors'](_0x3e73e7[_0x220ed7(0xe4)])],_0x1b1146={};return _0x1b1146[_0x220ed7(0xcc)]=_0x5055aa,_0x1b1146[_0x220ed7(0xbd)]=_0x11cf43,_0x1b1146;});else{if(_0x38a2b7[_0x113c19(0x11d)](_0x4c9cc5,_0x38a2b7[_0x113c19(0x186)])){const _0x58bc0c=[],_0x1124c1=[];return Object['keys'](_0x4727d6)[_0x113c19(0xa7)](_0x3e1cd6=>{const _0x5c512b=_0x113c19;try{_0x1124c1[_0x5c512b(0xc6)](_0x3e1cd6+':\x20'+_0x4727d6[_0x3e1cd6]);}catch(_0x37b44f){exports[_0x5c512b(0xce)](_0x5c512b(0x196)+_0x37b44f[_0x5c512b(0xe4)]+_0x5c512b(0x78)+_0x37b44f[_0x5c512b(0xcc)]);}}),_0x58bc0c[_0x113c19(0xc6)]({'backtrace':exports[_0x113c19(0x11a)](_0x4727d6[_0x113c19(0xbf)])[_0x113c19(0xc0)](/\r?\n/),'expanded':_0x1124c1}),_0x58bc0c;}}return[];}catch(_0x51758e){exports[_0x113c19(0xce)](_0x113c19(0x196)+_0x51758e[_0x113c19(0xe4)]+_0x113c19(0x78)+_0x51758e[_0x113c19(0xcc)]);}return[];};class PathHelper{constructor(_0x399712,_0x56bd54){const _0x4cdf4b=a137_0x4adbb8;this[_0x4cdf4b(0x150)]=_0x399712,this[_0x4cdf4b(0x126)]=_0x56bd54;}['relativeTestFilePath'](_0x658916){const _0xcd2df2=a137_0x4adbb8,_0x1f3cff=this['config']['cwd']||this['config'][_0xcd2df2(0xee)];return path['relative'](_0x1f3cff,_0x658916);}[a137_0x4adbb8(0xfc)](_0x3f0d65){const _0x43d37f=a137_0x4adbb8,_0xdad48=this[_0x43d37f(0xd5)](_0x3f0d65);return this[_0x43d37f(0x126)]?path['join'](this[_0x43d37f(0x126)],_0xdad48):_0xdad48;}}exports[a137_0x4adbb8(0x14a)]=PathHelper,exports[a137_0x4adbb8(0xc4)]=(_0x453d01=!![])=>{const _0x2c830e=a137_0x4adbb8,_0x136415={};_0x136415[_0x2c830e(0x10e)]=function(_0x5b163f,_0x156e24){return _0x5b163f===_0x156e24;},_0x136415[_0x2c830e(0xec)]=_0x2c830e(0x13d),_0x136415['OCKeA']='true',_0x136415[_0x2c830e(0x191)]=_0x2c830e(0x181),_0x136415[_0x2c830e(0x187)]=_0x2c830e(0x113),_0x136415[_0x2c830e(0xe6)]=_0x2c830e(0x10a);const _0x5a4e47=_0x136415;requestSpy['spy']((_0x468675,_0x39d2da)=>{const _0x12be54=_0x2c830e;_0x39d2da&&!(_0x39d2da[_0x12be54(0xcd)]&&_0x5a4e47['ISTft'](_0x39d2da[_0x12be54(0xcd)][_0x5a4e47[_0x12be54(0xec)]],_0x5a4e47[_0x12be54(0x8d)]))&&(_0x39d2da[_0x12be54(0x17a)]=_0x39d2da[_0x12be54(0x19a)],delete _0x39d2da[_0x12be54(0x19a)],_0x453d01&&process[_0x12be54(0x98)](_0x12be54(0x185)+process[_0x12be54(0xc8)],{'timestamp':new Date()[_0x12be54(0xb8)](),'level':null,'message':null,'kind':_0x5a4e47['KGoTd'],'http_response':_0x39d2da})),_0x39d2da&&(constants[_0x12be54(0x132)][_0x12be54(0x13b)](_0x39d2da['host'])||constants['ATS_HUB_URL_REGEX'][_0x12be54(0x13b)](_0x39d2da[_0x12be54(0x17a)]))?global[_0x12be54(0xb4)]=_0x5a4e47[_0x12be54(0x187)]:global['__cloud_provider___']=_0x5a4e47['zEAcF'];});},exports[a137_0x4adbb8(0xf0)]=()=>{const _0x18ce54=a137_0x4adbb8,_0x5b4b3a={'XGmVP':function(_0x2829c5,_0x1f0c09){return _0x2829c5(_0x1f0c09);}};console={},Object[_0x18ce54(0xa5)](consoleHolder)[_0x18ce54(0xa7)](_0x2905a5=>{_0x5b4b3a['XGmVP'](isFunction,consoleHolder[_0x2905a5])?console[_0x2905a5]=(..._0x56da20)=>{const _0x6a75f9=a137_0x5913;try{!Object[_0x6a75f9(0xa5)](BSTestOpsPatcher)[_0x6a75f9(0xb1)](_0x2905a5)?consoleHolder[_0x2905a5](..._0x56da20):BSTestOpsPatcher[_0x2905a5](..._0x56da20);}catch(_0x410ef3){consoleHolder[_0x2905a5](..._0x56da20);}}:console[_0x2905a5]=consoleHolder[_0x2905a5];});},exports[a137_0x4adbb8(0xeb)]=()=>a137_0x4adbb8(0x148)+JSON['stringify']({'action':'annotate','arguments':{'data':a137_0x4adbb8(0x81)+Date['now'](),'level':a137_0x4adbb8(0xce)}}),exports[a137_0x4adbb8(0x99)]=_0x1d5cc7=>{const _0x2e67cc=a137_0x4adbb8,_0x1d9440={};_0x1d9440[_0x2e67cc(0x180)]=function(_0x2d4ed6,_0x1a6a5e){return _0x2d4ed6===_0x1a6a5e;},_0x1d9440[_0x2e67cc(0x7f)]='browserstack',_0x1d9440[_0x2e67cc(0xab)]=_0x2e67cc(0xc9),_0x1d9440[_0x2e67cc(0xb5)]=_0x2e67cc(0x14b),_0x1d9440[_0x2e67cc(0xa8)]=function(_0x16f5c3,_0x36137a){return _0x16f5c3>_0x36137a;},_0x1d9440[_0x2e67cc(0xef)]=_0x2e67cc(0x116),_0x1d9440['eGfJF']=_0x2e67cc(0xbb),_0x1d9440[_0x2e67cc(0xb9)]=_0x2e67cc(0x89),_0x1d9440[_0x2e67cc(0x7e)]='turboscale',_0x1d9440[_0x2e67cc(0x153)]=_0x2e67cc(0xf9);const _0x40b555=_0x1d9440;let _0x3515f5=null;try{if(_0x40b555[_0x2e67cc(0x180)](global[_0x2e67cc(0xb4)],_0x40b555[_0x2e67cc(0x7f)])){if(_0x1d5cc7[_0x40b555[_0x2e67cc(0xab)]]||_0x1d5cc7[_0x40b555[_0x2e67cc(0xb5)]]||!bsSetupHelper[_0x2e67cc(0xbe)](global[_0x2e67cc(0xe5)])&&_0x40b555['CEJTx'](global[_0x2e67cc(0xe5)][_0x2e67cc(0x19e)],0x0)&&(global[_0x2e67cc(0xe5)][0x0][_0x40b555['TwVot']]||global[_0x2e67cc(0xe5)][0x0][_0x40b555[_0x2e67cc(0xab)]]))_0x3515f5=_0x40b555[_0x2e67cc(0xef)];else _0x1d5cc7[_0x40b555[_0x2e67cc(0x102)]]&&_0x1d5cc7[_0x40b555['eGfJF']][_0x40b555[_0x2e67cc(0xb9)]]?_0x3515f5=_0x40b555[_0x2e67cc(0x7e)]:_0x3515f5=_0x40b555[_0x2e67cc(0x153)];}}catch(_0x116119){exports[_0x2e67cc(0xce)]('Failed\x20to\x20determine\x20product\x20linked\x20to\x20'+constants['TEST_REPORTING_ANALYTICS']+_0x2e67cc(0x1a0)+_0x116119);}return _0x3515f5;},exports[a137_0x4adbb8(0x125)]=async(_0x160b04,_0x34f017,_0x5c76d4=![])=>{const _0xce0bf=a137_0x4adbb8,_0x4f71b8={};_0x4f71b8[_0xce0bf(0xa1)]=function(_0x247253,_0x32a53f){return _0x247253===_0x32a53f;},_0x4f71b8['XKCPi']='browserstack',_0x4f71b8['oLwag']=_0xce0bf(0x1a1),_0x4f71b8[_0xce0bf(0x82)]=_0xce0bf(0x92);const _0x45f143=_0x4f71b8;try{const _0x2b3f6e=await _0x160b04[_0xce0bf(0xe3)](),_0x1538ef=await _0x160b04[_0xce0bf(0xfd)](),_0x3f70c2={},_0x54c469=Object[_0xce0bf(0x108)](_0x1538ef[_0xce0bf(0xe3)]()[_0xce0bf(0x15c)]),_0x17c356={'product':exports[_0xce0bf(0x99)](_0x54c469),'capabilities':_0x54c469,'platform':_0x2b3f6e[_0xce0bf(0x137)](),'platform_version':bsSetupHelper['getPlatformVersion'](_0x45f143[_0xce0bf(0xa1)](global[_0xce0bf(0xb4)],_0x45f143['XKCPi'])),'browser':_0x2b3f6e[_0xce0bf(0x14d)](),'browser_version':_0x2b3f6e[_0xce0bf(0x8e)](),'session_id':_0x1538ef[_0xce0bf(0xe0)]()};global[_0xce0bf(0xb4)]?_0x3f70c2[global[_0xce0bf(0xb4)]]=_0x17c356:_0x3f70c2[_0x45f143[_0xce0bf(0x164)]]=_0x17c356;if(_0x5c76d4)return _0x3f70c2;process[_0xce0bf(0x98)](_0xce0bf(0x80)+process[_0xce0bf(0xc8)],{'timestamp':new Date()[_0xce0bf(0xb8)](),'level':null,'message':null,'kind':_0x45f143[_0xce0bf(0x82)],'http_response':_0x3f70c2,'uuid':_0x34f017});}catch(_0x32490e){exports[_0xce0bf(0xce)](_0xce0bf(0x166)+_0x32490e);}},exports['isInternalHook']=_0x1394dc=>{const _0x562c6a=a137_0x4adbb8;return _0x1394dc&&_0x1394dc['toString']()[_0x562c6a(0x192)](/browserstack internal helper hook/);};
@@ -1 +1 @@
1
- var a138_0x2a7b83=a138_0x12fa;(function(_0x3483a3,_0x3dc143){var _0x28489e=a138_0x12fa,_0x241aa0=_0x3483a3();while(!![]){try{var _0x1cdadd=parseInt(_0x28489e(0x1c2))/0x1+parseInt(_0x28489e(0x1c8))/0x2*(parseInt(_0x28489e(0x1cd))/0x3)+-parseInt(_0x28489e(0x1c4))/0x4+-parseInt(_0x28489e(0x1cb))/0x5*(parseInt(_0x28489e(0x1c7))/0x6)+-parseInt(_0x28489e(0x1c9))/0x7+parseInt(_0x28489e(0x1c0))/0x8+parseInt(_0x28489e(0x1c3))/0x9;if(_0x1cdadd===_0x3dc143)break;else _0x241aa0['push'](_0x241aa0['shift']());}catch(_0x30dfa8){_0x241aa0['push'](_0x241aa0['shift']());}}}(a138_0x184b,0x97e3d));function a138_0x12fa(_0x9756de,_0xa2417b){var _0x184b14=a138_0x184b();return a138_0x12fa=function(_0x12fa52,_0x537dbf){_0x12fa52=_0x12fa52-0x1c0;var _0x2e198d=_0x184b14[_0x12fa52];return _0x2e198d;},a138_0x12fa(_0x9756de,_0xa2417b);}function a138_0x184b(){var _0x427ba7=['testorchestration/api/v1/split-tests','7164nXQcKJ','403744OMjqOo','7382648tKnnhy','SPLIT_TESTS_ENDPOINT','45RmOUVX','https://collector-observability.browserstack.com','12xBirDX','2201904urFRda','ORCHESTRATION_API_URL','198363nUqrPr','8707806rwFYAy','2244288jvpeED','FAILED_TESTS_ENDPOINT'];a138_0x184b=function(){return _0x427ba7;};return a138_0x184b();}var a138_0x114014={};a138_0x114014[a138_0x2a7b83(0x1c1)]=a138_0x2a7b83(0x1cc),a138_0x114014[a138_0x2a7b83(0x1c5)]='testorchestration/api/v1/failed-tests',a138_0x114014[a138_0x2a7b83(0x1ca)]=a138_0x2a7b83(0x1c6),module['exports']=a138_0x114014;
1
+ var a138_0x405744=a138_0x2e22;(function(_0x3d9178,_0x489b03){var _0x2a19a3=a138_0x2e22,_0x518d01=_0x3d9178();while(!![]){try{var _0x4976d1=parseInt(_0x2a19a3(0x1f3))/0x1+parseInt(_0x2a19a3(0x1f6))/0x2*(parseInt(_0x2a19a3(0x1fe))/0x3)+parseInt(_0x2a19a3(0x1f5))/0x4*(parseInt(_0x2a19a3(0x1f8))/0x5)+-parseInt(_0x2a19a3(0x1f0))/0x6+parseInt(_0x2a19a3(0x1f9))/0x7+-parseInt(_0x2a19a3(0x200))/0x8*(parseInt(_0x2a19a3(0x1f4))/0x9)+parseInt(_0x2a19a3(0x1ff))/0xa*(parseInt(_0x2a19a3(0x1fa))/0xb);if(_0x4976d1===_0x489b03)break;else _0x518d01['push'](_0x518d01['shift']());}catch(_0x117eb1){_0x518d01['push'](_0x518d01['shift']());}}}(a138_0x5ce8,0xcb0c9));var a138_0x491640={};function a138_0x2e22(_0x2abb11,_0x1f2538){var _0x5ce89f=a138_0x5ce8();return a138_0x2e22=function(_0x2e22d5,_0x7292d3){_0x2e22d5=_0x2e22d5-0x1f0;var _0x2738a8=_0x5ce89f[_0x2e22d5];return _0x2738a8;},a138_0x2e22(_0x2abb11,_0x1f2538);}function a138_0x5ce8(){var _0x1e5634=['2938663jCvFWz','484KKWLif','FAILED_TESTS_ENDPOINT','testorchestration/api/v1/split-tests','testorchestration/api/v1/failed-tests','375303QFYUqH','19900fijFcV','2909248EGQGdg','3906330uUVcRE','ORCHESTRATION_API_URL','SPLIT_TESTS_ENDPOINT','795802RirYxb','18BzzQDp','62356aLlxbm','14ySXArx','https://collector-observability.browserstack.com','10xPrhwz'];a138_0x5ce8=function(){return _0x1e5634;};return a138_0x5ce8();}a138_0x491640[a138_0x405744(0x1f1)]=a138_0x405744(0x1f7),a138_0x491640[a138_0x405744(0x1fb)]=a138_0x405744(0x1fd),a138_0x491640[a138_0x405744(0x1f2)]=a138_0x405744(0x1fc),module['exports']=a138_0x491640;
@@ -1 +1 @@
1
- const a139_0x209e69=a139_0x2e4d;(function(_0x291c73,_0x5c5e01){const _0x1eb53a=a139_0x2e4d,_0x55b87b=_0x291c73();while(!![]){try{const _0x6f1f3d=parseInt(_0x1eb53a(0x71))/0x1+parseInt(_0x1eb53a(0xca))/0x2+parseInt(_0x1eb53a(0xa7))/0x3+-parseInt(_0x1eb53a(0xdd))/0x4*(parseInt(_0x1eb53a(0x8b))/0x5)+-parseInt(_0x1eb53a(0xe3))/0x6*(-parseInt(_0x1eb53a(0xa6))/0x7)+-parseInt(_0x1eb53a(0xaa))/0x8*(-parseInt(_0x1eb53a(0x80))/0x9)+-parseInt(_0x1eb53a(0xc0))/0xa;if(_0x6f1f3d===_0x5c5e01)break;else _0x55b87b['push'](_0x55b87b['shift']());}catch(_0x12df84){_0x55b87b['push'](_0x55b87b['shift']());}}}(a139_0x34e6,0x66dcf));function a139_0x34e6(){const _0x5ed179=['onTestDone','LnpKN','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','CIhDL',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','mhoOW','iJwhN','801yvdOFW','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','lastAPIFailedCount','passed','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','failFastState.json','EhIBC','debug','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','failureThresholdCount','stack','79615MUFiVp','message','_initializeStateFromFile','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.',']\x20Polling\x20stopped.','JWEwe','BROWSERSTACK_TOTAL_NODE_COUNT','stopPolling','failFastActive','zWTDf','_CI]\x20Error\x20during\x20polling\x20logic:\x20','NRcXr','startPolling',']\x20Critical\x20error\x20during\x20async\x20initialization:\x20','_pollFailedTests','fileHelper','buildRunIdentifier','pMHau','ms.','getFailedTestsCount','failFastConfig','SXYVP','_getDefaultState','join','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','_sendFailedTestsToAPI','hhHkK','7ocXjet','670134RanEBJ','pollingInterval','oDvrf','58096QJfBOG','length','totalTests','IesdM','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','workingDir','isCIMode','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','recordTestResult','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','failFastActiveMarkerPath','_fetchAPIFailedCount','BROWSERSTACK_BUILD_RUN_IDENTIFIER','wKxQK','size','iRDow','_Local]\x20State\x20initialized\x20from\x20file.','reportedFailuresToAPI','JMCoj',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20',',\x20threshold:\x20','15948430GTJCBk','cleanup','existsSync','uniqueFailedTests','FoPyu','env','_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.','ycrSq','lockFilePath','aDDNa','724392tTtpWY','state','_CI]\x20Error\x20sending\x20failed\x20test\x20',',\x20CI\x20Mode:\x20','putFailedTests','AbwsM','failFastState.lock','kxeEZ','QRwqH','gtHZb','HIQrE','aZIHU','from','FailFastManager','bQKay','stateFilePath','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','toISOString','88FhAOGZ','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','pksPa','writeState','Jhtgj','./fileHelper','2193090jbkGaA','JoVsm','cZoSv','KtTXD','failFast.active','_CI]\x20Polling\x20started\x20with\x20interval:\x20','exports','_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','failed','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','BROWSERSTACK_NODE_INDEX','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','FnRdr','_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','bcIZu','Efscj','bShAu','fYXwr','buildName','\x0aStack:\x20','769069NNDTms','../logger','projectName','error','FNfWa','readState','PgdUl','newState'];a139_0x34e6=function(){return _0x5ed179;};return a139_0x34e6();}const fs=require('fs'),path=require('path'),FileHelper=require(a139_0x209e69(0xe2)),RequestUtils=require('./requestUtils'),logger=require(a139_0x209e69(0x72))['winstonLogger'],POLLING_INTERVAL=0x2710,TAG=a139_0x209e69(0xd7);function a139_0x2e4d(_0x5c89d9,_0x53507a){const _0x34e6e3=a139_0x34e6();return a139_0x2e4d=function(_0x2e4d50,_0x160c01){_0x2e4d50=_0x2e4d50-0x64;let _0x45f468=_0x34e6e3[_0x2e4d50];return _0x45f468;},a139_0x2e4d(_0x5c89d9,_0x53507a);}class FailFastManager{constructor(_0x3dab70,_0x3323b1,_0x47ca62){const _0x2b87f6=a139_0x209e69,_0x5eded2={};_0x5eded2[_0x2b87f6(0xb8)]=function(_0x3bfdda,_0x17922d){return _0x3bfdda+_0x17922d;},_0x5eded2[_0x2b87f6(0x7a)]=_0x2b87f6(0x70),_0x5eded2['EhIBC']=function(_0x504804,_0x108120){return _0x504804||_0x108120;},_0x5eded2[_0x2b87f6(0xad)]=_0x2b87f6(0x85),_0x5eded2[_0x2b87f6(0xd1)]=_0x2b87f6(0xd0),_0x5eded2[_0x2b87f6(0xd5)]=_0x2b87f6(0xe7);const _0x59e2aa=_0x5eded2;this[_0x2b87f6(0x9f)]=_0x59e2aa[_0x2b87f6(0x86)](_0x3dab70,{}),this['buildName']=_0x3323b1,this[_0x2b87f6(0x73)]=_0x47ca62,this[_0x2b87f6(0xb0)]=!!(process[_0x2b87f6(0xc5)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER']&&process['env'][_0x2b87f6(0x67)]&&process[_0x2b87f6(0xc5)][_0x2b87f6(0x91)]);const _0x262bb0=this['failFastConfig'][_0x2b87f6(0xaf)];this['stateFilePath']=path['join'](_0x262bb0,_0x59e2aa[_0x2b87f6(0xad)]),this[_0x2b87f6(0xc8)]=path[_0x2b87f6(0xa2)](_0x262bb0,_0x59e2aa['kxeEZ']),this[_0x2b87f6(0xb5)]=path[_0x2b87f6(0xa2)](_0x262bb0,_0x59e2aa[_0x2b87f6(0xd5)]),this[_0x2b87f6(0x9a)]=new FileHelper(this['failFastConfig'],this[_0x2b87f6(0xd9)],this['lockFilePath'],this['_getDefaultState']()),this[_0x2b87f6(0xcb)]=this['_getDefaultState'](),this[_0x2b87f6(0xa8)]=null,this[_0x2b87f6(0xb0)]&&(this[_0x2b87f6(0xbc)]=new Set()),this[_0x2b87f6(0x8d)]()['catch'](_0x274baf=>{const _0x31acba=_0x2b87f6;logger[_0x31acba(0x74)]('['+TAG+_0x31acba(0x98)+_0x274baf[_0x31acba(0x8c)]+(_0x274baf[_0x31acba(0x8a)]?_0x59e2aa[_0x31acba(0xb8)](_0x59e2aa[_0x31acba(0x7a)],_0x274baf[_0x31acba(0x8a)]):'')),this[_0x31acba(0xcb)]=this[_0x31acba(0xa1)]();}),this['isCIMode']&&this[_0x2b87f6(0x97)](),logger[_0x2b87f6(0x87)]('['+TAG+_0x2b87f6(0xbe)+this[_0x2b87f6(0x9f)][_0x2b87f6(0x89)]+_0x2b87f6(0xcd)+this[_0x2b87f6(0xb0)]);}[a139_0x209e69(0xa1)](){const _0x5a2d18={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x5a2d18;}async['_initializeStateFromFile'](){const _0x4e667a=a139_0x209e69,_0x3c2956={};_0x3c2956['oDvrf']=function(_0x3ab72c,_0x2e50d1){return _0x3ab72c+_0x2e50d1;},_0x3c2956[_0x4e667a(0xe4)]='\x0aStack:\x20';const _0x4e736c=_0x3c2956;if(this['isCIMode'])try{fs[_0x4e667a(0xc2)](this['failFastActiveMarkerPath'])&&(this[_0x4e667a(0xcb)][_0x4e667a(0x93)]=!![],logger[_0x4e667a(0x87)]('['+TAG+_0x4e667a(0xc6)));}catch(_0x4a8300){logger['error']('['+TAG+_0x4e667a(0xb4)+_0x4a8300[_0x4e667a(0x8c)]+(_0x4a8300[_0x4e667a(0x8a)]?_0x4e736c['oDvrf'](_0x4e736c[_0x4e667a(0xe4)],_0x4a8300[_0x4e667a(0x8a)]):''));}else try{const _0xe8d61a=await this[_0x4e667a(0x9a)][_0x4e667a(0x76)]();if(_0xe8d61a)this[_0x4e667a(0xcb)]={...this[_0x4e667a(0xa1)](),..._0xe8d61a,'uniqueFailedTests':new Set(_0xe8d61a['uniqueFailedTests']||[])},logger[_0x4e667a(0x87)]('['+TAG+_0x4e667a(0xbb));else{logger['debug']('['+TAG+_0x4e667a(0x8e));const _0x5dcefc=this['_getDefaultState'](),_0x596a20={..._0x5dcefc,'uniqueFailedTests':Array[_0x4e667a(0xd6)](_0x5dcefc['uniqueFailedTests'])};await this[_0x4e667a(0x9a)][_0x4e667a(0xe0)](_0x596a20),this[_0x4e667a(0xcb)]=_0x5dcefc;}}catch(_0x1a81b5){logger['debug']('['+TAG+_0x4e667a(0x81)+_0x1a81b5['message']+(_0x1a81b5[_0x4e667a(0x8a)]?_0x4e736c[_0x4e667a(0xa9)](_0x4e736c['JoVsm'],_0x1a81b5['stack']):'')),this['state']=this['_getDefaultState']();}}async[a139_0x209e69(0x79)](_0xdfe5e9,_0x4caef7){const _0x26a0ef=a139_0x209e69,_0x159213={};_0x159213[_0x26a0ef(0x7f)]=function(_0x1cc95b,_0x262c93){return _0x1cc95b>_0x262c93;},_0x159213[_0x26a0ef(0x6d)]=function(_0x1c8634,_0x1878da){return _0x1c8634>_0x1878da;},_0x159213[_0x26a0ef(0x96)]=_0x26a0ef(0x65),_0x159213[_0x26a0ef(0xd4)]=_0x26a0ef(0x83),_0x159213[_0x26a0ef(0xe5)]=function(_0x4841f9,_0x1ab93c){return _0x4841f9+_0x1ab93c;},_0x159213[_0x26a0ef(0x77)]=_0x26a0ef(0x70),_0x159213['bcIZu']=function(_0x1793ee,_0xdcbf1a){return _0x1793ee||_0xdcbf1a;};const _0x421438=_0x159213;if(this[_0x26a0ef(0xb0)])this['state'][_0x26a0ef(0xac)]+=0x1,_0x4caef7&&_0x421438[_0x26a0ef(0x7f)](_0x4caef7[_0x26a0ef(0xab)],0x0)&&(!this['reportedFailuresToAPI']['has'](_0xdfe5e9)&&(await this[_0x26a0ef(0xa4)](_0xdfe5e9),this['reportedFailuresToAPI']['add'](_0xdfe5e9)));else try{const _0xb4b1e5={'fullName':_0xdfe5e9,'status':_0x4caef7&&_0x421438[_0x26a0ef(0x6d)](_0x4caef7[_0x26a0ef(0xab)],0x0)?_0x421438['NRcXr']:_0x421438[_0x26a0ef(0xd4)]},_0x3ee5f8=await this[_0x26a0ef(0x9a)][_0x26a0ef(0xb3)](_0xb4b1e5);this[_0x26a0ef(0xcb)]={...this[_0x26a0ef(0xa1)](),..._0x3ee5f8[_0x26a0ef(0x78)],'uniqueFailedTests':new Set(_0x3ee5f8[_0x26a0ef(0x78)][_0x26a0ef(0xc3)]||[])};}catch(_0x28bbe6){logger[_0x26a0ef(0x74)]('['+TAG+_0x26a0ef(0xb1)+_0x28bbe6['message']+(_0x28bbe6[_0x26a0ef(0x8a)]?_0x421438[_0x26a0ef(0xe5)](_0x421438[_0x26a0ef(0x77)],_0x28bbe6[_0x26a0ef(0x8a)]):''));try{const _0x2e0d59=await this[_0x26a0ef(0x9a)]['readState']();this[_0x26a0ef(0xcb)]={...this['_getDefaultState'](),..._0x421438[_0x26a0ef(0x6b)](_0x2e0d59,{}),'uniqueFailedTests':new Set(_0x2e0d59?_0x2e0d59[_0x26a0ef(0xc3)]||[]:[])},logger[_0x26a0ef(0x87)]('['+TAG+_0x26a0ef(0x66));}catch(_0x5ad78b){logger[_0x26a0ef(0x74)]('['+TAG+'_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20'+_0x5ad78b[_0x26a0ef(0x8c)]+(_0x5ad78b[_0x26a0ef(0x8a)]?_0x421438[_0x26a0ef(0xe5)](_0x421438[_0x26a0ef(0x77)],_0x5ad78b[_0x26a0ef(0x8a)]):'')),this[_0x26a0ef(0xcb)]=this[_0x26a0ef(0xa1)]();}}}async[a139_0x209e69(0xa4)](_0x2d5394){const _0x3f7be8=a139_0x209e69,_0x130dd1={};_0x130dd1[_0x3f7be8(0x90)]=function(_0x15c2b0,_0x5c40ef){return _0x15c2b0+_0x5c40ef;},_0x130dd1['iRDow']=_0x3f7be8(0x70);const _0xe2b09e=_0x130dd1;if(!this[_0x3f7be8(0xb0)]||!_0x2d5394)return;try{logger[_0x3f7be8(0x87)]('['+TAG+'_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20'+_0x2d5394);const _0x1ef8dd={};_0x1ef8dd['buildName']=this[_0x3f7be8(0x6f)],_0x1ef8dd[_0x3f7be8(0x73)]=this[_0x3f7be8(0x73)],_0x1ef8dd['failedTests']=[_0x2d5394],_0x1ef8dd[_0x3f7be8(0x9b)]=process[_0x3f7be8(0xc5)][_0x3f7be8(0xb7)],await RequestUtils[_0x3f7be8(0xce)](_0x1ef8dd);}catch(_0x1baf0d){logger[_0x3f7be8(0x74)]('['+TAG+_0x3f7be8(0xcc)+_0x2d5394+'\x20to\x20API:\x20'+_0x1baf0d[_0x3f7be8(0x8c)]+(_0x1baf0d[_0x3f7be8(0x8a)]?_0xe2b09e['JWEwe'](_0xe2b09e[_0x3f7be8(0xba)],_0x1baf0d[_0x3f7be8(0x8a)]):''));}}async[a139_0x209e69(0xb6)](){const _0x4b5780=a139_0x209e69,_0x1c020f={};_0x1c020f[_0x4b5780(0x75)]=function(_0x1c65f1,_0x1c0843){return _0x1c65f1===_0x1c0843;},_0x1c020f[_0x4b5780(0xe1)]='number',_0x1c020f[_0x4b5780(0x9c)]=function(_0x30773d,_0x37cf65){return _0x30773d+_0x37cf65;},_0x1c020f['AbwsM']=_0x4b5780(0x70),_0x1c020f[_0x4b5780(0xd2)]=function(_0x33fde8,_0x4d7803){return _0x33fde8!==_0x4d7803;};const _0x454055=_0x1c020f;if(!this[_0x4b5780(0xb0)])return 0x0;try{const _0x1f18b5={};_0x1f18b5[_0x4b5780(0x6f)]=this[_0x4b5780(0x6f)],_0x1f18b5['projectName']=this[_0x4b5780(0x73)],_0x1f18b5[_0x4b5780(0x9b)]=process[_0x4b5780(0xc5)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'];const _0x7d4000=await RequestUtils[_0x4b5780(0x9e)](_0x1f18b5);return logger[_0x4b5780(0x87)]('['+TAG+_0x4b5780(0xae)+_0x7d4000),_0x454055[_0x4b5780(0x75)](typeof _0x7d4000,_0x454055[_0x4b5780(0xe1)])?_0x7d4000:0x0;}catch(_0x246c3a){return logger[_0x4b5780(0x74)]('['+TAG+_0x4b5780(0xdb)+_0x246c3a[_0x4b5780(0x8c)]+(_0x246c3a['stack']?_0x454055['pMHau'](_0x454055[_0x4b5780(0xcf)],_0x246c3a[_0x4b5780(0x8a)]):'')),_0x454055[_0x4b5780(0xd2)](this[_0x4b5780(0xcb)]['lastAPIFailedCount'],undefined)?this[_0x4b5780(0xcb)][_0x4b5780(0x82)]:0x0;}}async[a139_0x209e69(0x99)](){const _0xa07fef=a139_0x209e69,_0x98b3d={};_0x98b3d['KtTXD']=function(_0x452ed2,_0x1808d3){return _0x452ed2!==_0x1808d3;},_0x98b3d[_0xa07fef(0x69)]=function(_0x54a3dd,_0x559de2){return _0x54a3dd+_0x559de2;},_0x98b3d[_0xa07fef(0x6c)]=_0xa07fef(0x70);const _0x295d58=_0x98b3d;if(!this[_0xa07fef(0xb0)])return;try{const _0x10daf3=await this[_0xa07fef(0xb6)]();_0x295d58[_0xa07fef(0xe6)](_0x10daf3,this[_0xa07fef(0xcb)]['lastAPIFailedCount'])&&(logger['debug']('['+TAG+'_CI]\x20API\x20failed\x20count\x20updated:\x20'+_0x10daf3+'\x20(was\x20'+this[_0xa07fef(0xcb)][_0xa07fef(0x82)]+')'),this[_0xa07fef(0xcb)][_0xa07fef(0x82)]=_0x10daf3);}catch(_0x32fc6e){logger[_0xa07fef(0x74)]('['+TAG+_0xa07fef(0x95)+_0x32fc6e[_0xa07fef(0x8c)]+(_0x32fc6e[_0xa07fef(0x8a)]?_0x295d58[_0xa07fef(0x69)](_0x295d58[_0xa07fef(0x6c)],_0x32fc6e[_0xa07fef(0x8a)]):''));}}async[a139_0x209e69(0x97)](){const _0x3d0188=a139_0x209e69,_0x3970db={'zWTDf':function(_0x3262a4,_0x37e666,_0x224d8c){return _0x3262a4(_0x37e666,_0x224d8c);}};this[_0x3d0188(0xa8)]&&this[_0x3d0188(0x92)](),this[_0x3d0188(0xb0)]&&(await this[_0x3d0188(0x99)](),this[_0x3d0188(0xa8)]=_0x3970db[_0x3d0188(0x94)](setInterval,async()=>{await this['_pollFailedTests']();},POLLING_INTERVAL),logger[_0x3d0188(0x87)]('['+TAG+_0x3d0188(0xe8)+POLLING_INTERVAL+_0x3d0188(0x9d)));}[a139_0x209e69(0x92)](){const _0x592e1e=a139_0x209e69,_0x38a189={'bQKay':function(_0x4496be,_0x498d3d){return _0x4496be(_0x498d3d);}};this['pollingInterval']&&(_0x38a189[_0x592e1e(0xd8)](clearInterval,this['pollingInterval']),this[_0x592e1e(0xa8)]=null,logger[_0x592e1e(0x87)]('['+TAG+_0x592e1e(0x8f)));}async['shouldFailFast'](){const _0x4c13bb=a139_0x209e69,_0xd19232={};_0xd19232[_0x4c13bb(0xd3)]=function(_0x11c681,_0x213b95){return _0x11c681===_0x213b95;},_0xd19232[_0x4c13bb(0xbd)]=function(_0x2a99ee,_0x16f1a5){return _0x2a99ee<=_0x16f1a5;},_0xd19232[_0x4c13bb(0xc7)]=function(_0xcc2675,_0x2c783e){return _0xcc2675+_0x2c783e;},_0xd19232['SXYVP']=_0x4c13bb(0x70),_0xd19232['mhoOW']=function(_0x3bd187,_0x2845fc){return _0x3bd187!==_0x2845fc;},_0xd19232['CIhDL']=function(_0x4086cb,_0x119d31){return _0x4086cb>=_0x119d31;},_0xd19232['hhHkK']=function(_0x5eb959,_0x989ca0){return _0x5eb959+_0x989ca0;},_0xd19232[_0x4c13bb(0xc4)]=function(_0x139cee,_0x4e32eb){return _0x139cee>=_0x4e32eb;},_0xd19232[_0x4c13bb(0xdf)]=function(_0x35667e,_0x4438b1){return _0x35667e+_0x4438b1;};const _0x4e00ea=_0xd19232,{failureThresholdCount:_0x459934}=this[_0x4c13bb(0x9f)];if(_0x4e00ea[_0x4c13bb(0xd3)](_0x459934,null)||_0x4e00ea[_0x4c13bb(0xd3)](_0x459934,undefined)||_0x4e00ea['JMCoj'](_0x459934,0x0))return logger[_0x4c13bb(0x87)]('['+TAG+_0x4c13bb(0x7d)),![];if(this[_0x4c13bb(0xb0)]){try{if(fs[_0x4c13bb(0xc2)](this['failFastActiveMarkerPath']))return logger['debug']('['+TAG+_0x4c13bb(0xda)),!this['state'][_0x4c13bb(0x93)]&&(this[_0x4c13bb(0xcb)][_0x4c13bb(0x93)]=!![]),this[_0x4c13bb(0x92)](),!![];}catch(_0x3d3747){logger[_0x4c13bb(0x74)]('['+TAG+_0x4c13bb(0xb4)+_0x3d3747['message']+(_0x3d3747['stack']?_0x4e00ea[_0x4c13bb(0xc7)](_0x4e00ea['SXYVP'],_0x3d3747[_0x4c13bb(0x8a)]):''));}const _0x3fb6f6=_0x4e00ea[_0x4c13bb(0x7e)](this['state'][_0x4c13bb(0x82)],undefined)?this[_0x4c13bb(0xcb)][_0x4c13bb(0x82)]:0x0;if(_0x4e00ea[_0x4c13bb(0x7c)](_0x3fb6f6,_0x459934)){logger['info']('['+TAG+_0x4c13bb(0xde)+_0x3fb6f6+_0x4c13bb(0xbf)+_0x459934+'.');try{fs['writeFileSync'](this['failFastActiveMarkerPath'],new Date()[_0x4c13bb(0xdc)]()),logger['debug']('['+TAG+'_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20'+this['failFastActiveMarkerPath']),this[_0x4c13bb(0xcb)]['failFastActive']=!![];}catch(_0x2be7ad){logger[_0x4c13bb(0x74)]('['+TAG+_0x4c13bb(0x88)+_0x2be7ad[_0x4c13bb(0x8c)]+(_0x2be7ad['stack']?_0x4e00ea[_0x4c13bb(0xc7)](_0x4e00ea[_0x4c13bb(0xa0)],_0x2be7ad[_0x4c13bb(0x8a)]):''));}return this[_0x4c13bb(0x92)](),!![];}}else{let _0x5f3f1a;try{_0x5f3f1a=await this[_0x4c13bb(0x9a)][_0x4c13bb(0x76)]();if(!_0x5f3f1a)return logger['warn']('['+TAG+_0x4c13bb(0x7b)),![];}catch(_0x5df042){return logger[_0x4c13bb(0x74)]('['+TAG+_0x4c13bb(0xb2)+_0x5df042[_0x4c13bb(0x8c)]+(_0x5df042['stack']?_0x4e00ea[_0x4c13bb(0xa5)](_0x4e00ea[_0x4c13bb(0xa0)],_0x5df042['stack']):'')),![];}this[_0x4c13bb(0xcb)]={...this[_0x4c13bb(0xa1)](),..._0x5f3f1a,'uniqueFailedTests':new Set(_0x5f3f1a[_0x4c13bb(0xc3)]||[])};if(this[_0x4c13bb(0xcb)][_0x4c13bb(0x93)])return logger[_0x4c13bb(0x87)]('['+TAG+_0x4c13bb(0x84)),!![];const _0x2f8949=this[_0x4c13bb(0xcb)][_0x4c13bb(0xc3)],_0x1e80c1=_0x2f8949[_0x4c13bb(0xb9)];if(_0x4e00ea[_0x4c13bb(0xc4)](_0x1e80c1,_0x459934)){try{logger['info']('['+TAG+_0x4c13bb(0x6a)+_0x1e80c1+_0x4c13bb(0xbf)+_0x459934+'.'),this[_0x4c13bb(0xcb)][_0x4c13bb(0x93)]=!![];}catch(_0x162c9c){logger[_0x4c13bb(0x74)]('['+TAG+'_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20'+_0x162c9c[_0x4c13bb(0x8c)]+(_0x162c9c['stack']?_0x4e00ea[_0x4c13bb(0xdf)](_0x4e00ea[_0x4c13bb(0xa0)],_0x162c9c['stack']):''));}return!![];}}return![];}async[a139_0x209e69(0xc1)](){const _0x5e92a7=a139_0x209e69,_0x767978={};_0x767978[_0x5e92a7(0xc9)]=function(_0x1b89f6,_0x4a70a6){return _0x1b89f6+_0x4a70a6;},_0x767978[_0x5e92a7(0x6e)]=_0x5e92a7(0x70);const _0x34f6f9=_0x767978;this[_0x5e92a7(0x92)]();if(this[_0x5e92a7(0xb0)])logger[_0x5e92a7(0x87)]('['+TAG+_0x5e92a7(0x68));else try{const _0x46ef5e={...this[_0x5e92a7(0xcb)],'uniqueFailedTests':Array[_0x5e92a7(0xd6)](this['state'][_0x5e92a7(0xc3)]||new Set())};await this[_0x5e92a7(0x9a)][_0x5e92a7(0xe0)](_0x46ef5e),logger['debug']('['+TAG+_0x5e92a7(0xa3));}catch(_0x1bb2d8){logger['error']('['+TAG+_0x5e92a7(0x64)+_0x1bb2d8[_0x5e92a7(0x8c)]+(_0x1bb2d8[_0x5e92a7(0x8a)]?_0x34f6f9[_0x5e92a7(0xc9)](_0x34f6f9[_0x5e92a7(0x6e)],_0x1bb2d8[_0x5e92a7(0x8a)]):''));}}}module[a139_0x209e69(0xe9)]=FailFastManager;
1
+ function a139_0x5004(){const _0xefb34=['_Local]\x20Error\x20during\x20cleanup\x20and\x20state\x20save:\x20','11898873NGyrzf','BROWSERSTACK_NODE_INDEX','path','_Local]\x20Fail-fast\x20is\x20already\x20active\x20in\x20state\x20file.','QjcXN','_CI]\x20Created\x20fail-fast\x20marker\x20file:\x20','16804RyWNUH','sybjp','cleanup','onTestDone','_CI]\x20Polling\x20started\x20with\x20interval:\x20','4eqPwfd','zIIxU','bOWRD','CEXLS','add','lastAPIFailedCount','ZkOgR','_initializeStateFromFile','EQmDa','50410EEzpxX','./fileHelper','exports','tdjEZ','TJeJN','readState','KWbVG','buildRunIdentifier','projectName',']\x20No\x20valid\x20failureThresholdCount\x20configured.\x20Not\x20failing\x20fast.','has','state','_Local]\x20State\x20file\x20not\x20found,\x20initializing\x20with\x20default\x20state\x20and\x20creating\x20file.','NkeBy','_CI]\x20Fetched\x20failed\x20tests\x20count\x20from\x20API:\x20','witwb','failFastActive','failFastActiveMarkerPath','3870jxsnXI','buildName','_Local]\x20Error\x20during\x20onTestDone\x20state\x20recovery:\x20','error','TyhHi','LeLLM','IWCGU','failFastConfig','\x0aStack:\x20','_Local]\x20State\x20initialized\x20from\x20file.','4882456NOYbYF','8456USsYcX','from','_pollFailedTests','getFailedTestsCount','\x20to\x20API:\x20','KflJy','BCrtw','JAfYB','fileHelper','_CI]\x20Error\x20checking\x20for\x20fail-fast\x20marker\x20file:\x20','BROWSERSTACK_TOTAL_NODE_COUNT','_Local]\x20State\x20cleaned\x20up\x20and\x20saved\x20successfully.','_getDefaultState','passed',']\x20Polling\x20stopped.','stack','startPolling','info','../logger','3756426LXeIpt','AVuJf','recordTestResult','stateFilePath','_CI]\x20Error\x20sending\x20failed\x20test\x20','env','failFastState.json','EZMNN','_Local]\x20Recovered\x20state\x20from\x20file\x20after\x20onTestDone\x20error.','lockFilePath','_Local]\x20Error\x20in\x20onTestDone\x20during\x20state\x20update:\x20','aLtPz','debug','Wntdz','UzFkC','12897900FvrfXn','_CI]\x20Fail-fast\x20marker\x20file\x20exists.\x20Failing\x20fast.','length',',\x20CI\x20Mode:\x20','\x20(was\x20','newState','failFast.active','lQTKB','BROWSERSTACK_BUILD_RUN_IDENTIFIER',',\x20threshold:\x20','VhuTn','_CI]\x20API\x20failed\x20count\x20updated:\x20','82FlDyUL','_Local]\x20Error\x20initializing\x20state\x20from\x20file:\x20','join','_CI]\x20Error\x20creating\x20fail-fast\x20marker\x20file:\x20','stopPolling','isCIMode','pollingInterval','message','putFailedTests','_fetchAPIFailedCount','_sendFailedTestsToAPI','_Local]\x20Error\x20reading\x20state\x20in\x20shouldFailFast:\x20','writeState','ToHzW','vEArd','KPcgx',']\x20Initialized\x20abortBuildOnFailure\x20with\x20threshold:\x20','_CI]\x20Cleanup\x20for\x20CI\x20mode.\x20Polling\x20stopped.\x20Marker\x20file\x20is\x20not\x20removed\x20by\x20this\x20manager.','MRBTT','size','ms.','_CI]\x20Sending\x20failed\x20test\x20to\x20API:\x20','_CI]\x20Error\x20getting\x20failed\x20tests\x20count\x20from\x20API:\x20','aeRQv','failed','_Local]\x20State\x20file\x20not\x20found\x20in\x20shouldFailFast.\x20Not\x20failing\x20fast.','failedTests','_CI]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20','failureThresholdCount','reportedFailuresToAPI','oaFcv','existsSync','uniqueFailedTests','writeFileSync','vTGGv','_Local]\x20Error\x20setting\x20failFastActive\x20to\x20true\x20in\x20state\x20file:\x20','RjjPj','NKmAk','ghOWO'];a139_0x5004=function(){return _0xefb34;};return a139_0x5004();}const a139_0x1cef11=a139_0x1b7b;(function(_0x6d0bc1,_0x561f6d){const _0x51e0f7=a139_0x1b7b,_0x2b74dc=_0x6d0bc1();while(!![]){try{const _0x5c97b2=parseInt(_0x51e0f7(0x13f))/0x1*(-parseInt(_0x51e0f7(0x198))/0x2)+parseInt(_0x51e0f7(0x17d))/0x3+parseInt(_0x51e0f7(0x144))/0x4*(-parseInt(_0x51e0f7(0x14d))/0x5)+parseInt(_0x51e0f7(0x15f))/0x6*(parseInt(_0x51e0f7(0x16a))/0x7)+-parseInt(_0x51e0f7(0x169))/0x8+parseInt(_0x51e0f7(0x139))/0x9+-parseInt(_0x51e0f7(0x18c))/0xa;if(_0x5c97b2===_0x561f6d)break;else _0x2b74dc['push'](_0x2b74dc['shift']());}catch(_0xf9939){_0x2b74dc['push'](_0x2b74dc['shift']());}}}(a139_0x5004,0xb8250));const fs=require('fs'),path=require(a139_0x1cef11(0x13b)),FileHelper=require(a139_0x1cef11(0x14e)),RequestUtils=require('./requestUtils'),logger=require(a139_0x1cef11(0x17c))['winstonLogger'],POLLING_INTERVAL=0x2710,TAG='FailFastManager';class FailFastManager{constructor(_0x32032a,_0x2ddc88,_0x2f3f4d){const _0x44c7fb=a139_0x1cef11,_0x2dec12={};_0x2dec12[_0x44c7fb(0x184)]=function(_0x45e06d,_0x5a1d4d){return _0x45e06d+_0x5a1d4d;},_0x2dec12[_0x44c7fb(0x146)]=_0x44c7fb(0x167),_0x2dec12[_0x44c7fb(0x153)]=function(_0x1e19f2,_0x3068c0){return _0x1e19f2||_0x3068c0;},_0x2dec12[_0x44c7fb(0x1af)]=_0x44c7fb(0x183),_0x2dec12[_0x44c7fb(0x188)]='failFastState.lock',_0x2dec12['VhuTn']=_0x44c7fb(0x192);const _0x346fdc=_0x2dec12;this['failFastConfig']=_0x346fdc[_0x44c7fb(0x153)](_0x32032a,{}),this[_0x44c7fb(0x160)]=_0x2ddc88,this[_0x44c7fb(0x155)]=_0x2f3f4d,this[_0x44c7fb(0x19d)]=!!(process[_0x44c7fb(0x182)][_0x44c7fb(0x194)]&&process[_0x44c7fb(0x182)][_0x44c7fb(0x13a)]&&process[_0x44c7fb(0x182)][_0x44c7fb(0x174)]);const _0x5affad=this[_0x44c7fb(0x166)]['workingDir'];this[_0x44c7fb(0x180)]=path[_0x44c7fb(0x19a)](_0x5affad,_0x346fdc[_0x44c7fb(0x1af)]),this[_0x44c7fb(0x186)]=path['join'](_0x5affad,_0x346fdc[_0x44c7fb(0x188)]),this['failFastActiveMarkerPath']=path[_0x44c7fb(0x19a)](_0x5affad,_0x346fdc[_0x44c7fb(0x196)]),this[_0x44c7fb(0x172)]=new FileHelper(this['failFastConfig'],this[_0x44c7fb(0x180)],this[_0x44c7fb(0x186)],this['_getDefaultState']()),this[_0x44c7fb(0x158)]=this['_getDefaultState'](),this[_0x44c7fb(0x19e)]=null,this[_0x44c7fb(0x19d)]&&(this[_0x44c7fb(0x12e)]=new Set()),this[_0x44c7fb(0x14b)]()['catch'](_0x2bad33=>{const _0x122a7c=_0x44c7fb;logger['error']('['+TAG+']\x20Critical\x20error\x20during\x20async\x20initialization:\x20'+_0x2bad33[_0x122a7c(0x19f)]+(_0x2bad33[_0x122a7c(0x179)]?_0x346fdc[_0x122a7c(0x184)](_0x346fdc[_0x122a7c(0x146)],_0x2bad33[_0x122a7c(0x179)]):'')),this['state']=this[_0x122a7c(0x176)]();}),this[_0x44c7fb(0x19d)]&&this['startPolling'](),logger[_0x44c7fb(0x189)]('['+TAG+_0x44c7fb(0x1a8)+this[_0x44c7fb(0x166)][_0x44c7fb(0x12d)]+_0x44c7fb(0x18f)+this[_0x44c7fb(0x19d)]);}[a139_0x1cef11(0x176)](){const _0x5cc88c={'totalTests':0x0,'failedTests':0x0,'uniqueFailedTests':new Set(),'lastAPIFailedCount':0x0,'failFastActive':![]};return _0x5cc88c;}async[a139_0x1cef11(0x14b)](){const _0x4a06fc=a139_0x1cef11,_0x180b69={};_0x180b69[_0x4a06fc(0x14a)]=function(_0x411607,_0x4530d4){return _0x411607+_0x4530d4;},_0x180b69[_0x4a06fc(0x151)]=_0x4a06fc(0x167),_0x180b69[_0x4a06fc(0x133)]=function(_0x29883a,_0x57e78c){return _0x29883a+_0x57e78c;};const _0x2aed64=_0x180b69;if(this['isCIMode'])try{fs[_0x4a06fc(0x130)](this[_0x4a06fc(0x15e)])&&(this['state']['failFastActive']=!![],logger[_0x4a06fc(0x189)]('['+TAG+'_CI]\x20Fail-fast\x20marker\x20file\x20found,\x20initializing\x20as\x20active.'));}catch(_0x3a72b4){logger[_0x4a06fc(0x162)]('['+TAG+_0x4a06fc(0x173)+_0x3a72b4[_0x4a06fc(0x19f)]+(_0x3a72b4[_0x4a06fc(0x179)]?_0x2aed64[_0x4a06fc(0x14a)](_0x2aed64[_0x4a06fc(0x151)],_0x3a72b4[_0x4a06fc(0x179)]):''));}else try{const _0x1ef811=await this[_0x4a06fc(0x172)][_0x4a06fc(0x152)]();if(_0x1ef811)this['state']={...this[_0x4a06fc(0x176)](),..._0x1ef811,'uniqueFailedTests':new Set(_0x1ef811[_0x4a06fc(0x131)]||[])},logger['debug']('['+TAG+_0x4a06fc(0x168));else{logger[_0x4a06fc(0x189)]('['+TAG+_0x4a06fc(0x159));const _0x38eeef=this[_0x4a06fc(0x176)](),_0x209469={..._0x38eeef,'uniqueFailedTests':Array[_0x4a06fc(0x16b)](_0x38eeef[_0x4a06fc(0x131)])};await this[_0x4a06fc(0x172)][_0x4a06fc(0x1a4)](_0x209469),this[_0x4a06fc(0x158)]=_0x38eeef;}}catch(_0x26e719){logger[_0x4a06fc(0x189)]('['+TAG+_0x4a06fc(0x199)+_0x26e719[_0x4a06fc(0x19f)]+(_0x26e719[_0x4a06fc(0x179)]?_0x2aed64['vTGGv'](_0x2aed64[_0x4a06fc(0x151)],_0x26e719[_0x4a06fc(0x179)]):'')),this[_0x4a06fc(0x158)]=this[_0x4a06fc(0x176)]();}}async[a139_0x1cef11(0x142)](_0x3fc029,_0x2f99a3){const _0x543081=a139_0x1cef11,_0x174ece={};_0x174ece[_0x543081(0x1aa)]=function(_0x4c8526,_0x3344af){return _0x4c8526>_0x3344af;},_0x174ece[_0x543081(0x165)]=function(_0x297d08,_0x5d0041){return _0x297d08>_0x5d0041;},_0x174ece[_0x543081(0x18a)]=_0x543081(0x1b0),_0x174ece['LeLLM']=_0x543081(0x177),_0x174ece[_0x543081(0x1a7)]=function(_0x135a79,_0xc45b40){return _0x135a79+_0xc45b40;},_0x174ece['EQmDa']=_0x543081(0x167),_0x174ece[_0x543081(0x1a6)]=function(_0x171d63,_0x9fa625){return _0x171d63||_0x9fa625;},_0x174ece[_0x543081(0x171)]=function(_0xd55c5,_0x10db45){return _0xd55c5+_0x10db45;};const _0x4f1086=_0x174ece;if(this[_0x543081(0x19d)])this[_0x543081(0x158)]['totalTests']+=0x1,_0x2f99a3&&_0x4f1086[_0x543081(0x1aa)](_0x2f99a3['length'],0x0)&&(!this[_0x543081(0x12e)][_0x543081(0x157)](_0x3fc029)&&(await this[_0x543081(0x1a2)](_0x3fc029),this[_0x543081(0x12e)][_0x543081(0x148)](_0x3fc029)));else try{const _0xda29ea={'fullName':_0x3fc029,'status':_0x2f99a3&&_0x4f1086['IWCGU'](_0x2f99a3[_0x543081(0x18e)],0x0)?_0x4f1086[_0x543081(0x18a)]:_0x4f1086[_0x543081(0x164)]},_0x2bcb6b=await this[_0x543081(0x172)][_0x543081(0x17f)](_0xda29ea);this['state']={...this[_0x543081(0x176)](),..._0x2bcb6b[_0x543081(0x191)],'uniqueFailedTests':new Set(_0x2bcb6b[_0x543081(0x191)]['uniqueFailedTests']||[])};}catch(_0x5900cd){logger[_0x543081(0x162)]('['+TAG+_0x543081(0x187)+_0x5900cd[_0x543081(0x19f)]+(_0x5900cd[_0x543081(0x179)]?_0x4f1086[_0x543081(0x1a7)](_0x4f1086[_0x543081(0x14c)],_0x5900cd['stack']):''));try{const _0x479d6b=await this[_0x543081(0x172)][_0x543081(0x152)]();this[_0x543081(0x158)]={...this['_getDefaultState'](),..._0x4f1086[_0x543081(0x1a6)](_0x479d6b,{}),'uniqueFailedTests':new Set(_0x479d6b?_0x479d6b[_0x543081(0x131)]||[]:[])},logger[_0x543081(0x189)]('['+TAG+_0x543081(0x185));}catch(_0x5ddcae){logger[_0x543081(0x162)]('['+TAG+_0x543081(0x161)+_0x5ddcae['message']+(_0x5ddcae[_0x543081(0x179)]?_0x4f1086['JAfYB'](_0x4f1086[_0x543081(0x14c)],_0x5ddcae['stack']):'')),this[_0x543081(0x158)]=this[_0x543081(0x176)]();}}}async[a139_0x1cef11(0x1a2)](_0x549f65){const _0x4f07dc=a139_0x1cef11,_0x4df0b3={};_0x4df0b3['TNBMx']=function(_0x1f639c,_0xda4ada){return _0x1f639c+_0xda4ada;},_0x4df0b3[_0x4f07dc(0x150)]=_0x4f07dc(0x167);const _0x48a4a0=_0x4df0b3;if(!this[_0x4f07dc(0x19d)]||!_0x549f65)return;try{logger[_0x4f07dc(0x189)]('['+TAG+_0x4f07dc(0x1ad)+_0x549f65);const _0x596c42={};_0x596c42[_0x4f07dc(0x160)]=this[_0x4f07dc(0x160)],_0x596c42[_0x4f07dc(0x155)]=this[_0x4f07dc(0x155)],_0x596c42[_0x4f07dc(0x12b)]=[_0x549f65],_0x596c42[_0x4f07dc(0x154)]=process[_0x4f07dc(0x182)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],await RequestUtils[_0x4f07dc(0x1a0)](_0x596c42);}catch(_0x96105d){logger[_0x4f07dc(0x162)]('['+TAG+_0x4f07dc(0x181)+_0x549f65+_0x4f07dc(0x16e)+_0x96105d[_0x4f07dc(0x19f)]+(_0x96105d[_0x4f07dc(0x179)]?_0x48a4a0['TNBMx'](_0x48a4a0[_0x4f07dc(0x150)],_0x96105d[_0x4f07dc(0x179)]):''));}}async['_fetchAPIFailedCount'](){const _0x1171b6=a139_0x1cef11,_0x582be4={};_0x582be4[_0x1171b6(0x12f)]=function(_0x2d70df,_0xb84656){return _0x2d70df===_0xb84656;},_0x582be4['BCrtw']='number',_0x582be4[_0x1171b6(0x136)]=function(_0x110cef,_0x42afdd){return _0x110cef+_0x42afdd;},_0x582be4[_0x1171b6(0x1a5)]=_0x1171b6(0x167),_0x582be4['ncMdp']=function(_0x2985a8,_0x4af093){return _0x2985a8!==_0x4af093;};const _0x257147=_0x582be4;if(!this['isCIMode'])return 0x0;try{const _0x33ff97={};_0x33ff97['buildName']=this[_0x1171b6(0x160)],_0x33ff97[_0x1171b6(0x155)]=this[_0x1171b6(0x155)],_0x33ff97[_0x1171b6(0x154)]=process[_0x1171b6(0x182)][_0x1171b6(0x194)];const _0xb54360=await RequestUtils[_0x1171b6(0x16d)](_0x33ff97);return logger[_0x1171b6(0x189)]('['+TAG+_0x1171b6(0x15b)+_0xb54360),_0x257147[_0x1171b6(0x12f)](typeof _0xb54360,_0x257147[_0x1171b6(0x170)])?_0xb54360:0x0;}catch(_0x4a4b03){return logger['error']('['+TAG+_0x1171b6(0x1ae)+_0x4a4b03[_0x1171b6(0x19f)]+(_0x4a4b03[_0x1171b6(0x179)]?_0x257147[_0x1171b6(0x136)](_0x257147[_0x1171b6(0x1a5)],_0x4a4b03[_0x1171b6(0x179)]):'')),_0x257147['ncMdp'](this[_0x1171b6(0x158)][_0x1171b6(0x149)],undefined)?this[_0x1171b6(0x158)][_0x1171b6(0x149)]:0x0;}}async[a139_0x1cef11(0x16c)](){const _0x17b783=a139_0x1cef11,_0x19e5a5={};_0x19e5a5['NkeBy']=function(_0x32c65e,_0x42e6a3){return _0x32c65e!==_0x42e6a3;},_0x19e5a5[_0x17b783(0x145)]=function(_0x3a09ab,_0x2b767a){return _0x3a09ab+_0x2b767a;},_0x19e5a5[_0x17b783(0x163)]=_0x17b783(0x167);const _0x5cf944=_0x19e5a5;if(!this[_0x17b783(0x19d)])return;try{const _0x799bef=await this[_0x17b783(0x1a1)]();_0x5cf944[_0x17b783(0x15a)](_0x799bef,this['state'][_0x17b783(0x149)])&&(logger['debug']('['+TAG+_0x17b783(0x197)+_0x799bef+_0x17b783(0x190)+this[_0x17b783(0x158)][_0x17b783(0x149)]+')'),this[_0x17b783(0x158)][_0x17b783(0x149)]=_0x799bef);}catch(_0x43e9f3){logger['error']('['+TAG+'_CI]\x20Error\x20during\x20polling\x20logic:\x20'+_0x43e9f3[_0x17b783(0x19f)]+(_0x43e9f3['stack']?_0x5cf944[_0x17b783(0x145)](_0x5cf944[_0x17b783(0x163)],_0x43e9f3[_0x17b783(0x179)]):''));}}async[a139_0x1cef11(0x17a)](){const _0x194897=a139_0x1cef11,_0x503ae7={'aQlOP':function(_0x410eea,_0x3a82fa,_0x10a5a9){return _0x410eea(_0x3a82fa,_0x10a5a9);}};this[_0x194897(0x19e)]&&this[_0x194897(0x19c)](),this[_0x194897(0x19d)]&&(await this[_0x194897(0x16c)](),this[_0x194897(0x19e)]=_0x503ae7['aQlOP'](setInterval,async()=>{const _0x14708d=_0x194897;await this[_0x14708d(0x16c)]();},POLLING_INTERVAL),logger[_0x194897(0x189)]('['+TAG+_0x194897(0x143)+POLLING_INTERVAL+_0x194897(0x1ac)));}[a139_0x1cef11(0x19c)](){const _0x52de13=a139_0x1cef11,_0x41aac7={'wMoCn':function(_0x153b13,_0x30321a){return _0x153b13(_0x30321a);}};this['pollingInterval']&&(_0x41aac7['wMoCn'](clearInterval,this[_0x52de13(0x19e)]),this['pollingInterval']=null,logger[_0x52de13(0x189)]('['+TAG+_0x52de13(0x178)));}async['shouldFailFast'](){const _0x511da1=a139_0x1cef11,_0x489dbc={};_0x489dbc[_0x511da1(0x147)]=function(_0x18cc82,_0x24ba69){return _0x18cc82===_0x24ba69;},_0x489dbc['bEoSB']=function(_0x5e5a6a,_0x2112f6){return _0x5e5a6a===_0x2112f6;},_0x489dbc[_0x511da1(0x13d)]=function(_0x481884,_0x485092){return _0x481884<=_0x485092;},_0x489dbc[_0x511da1(0x15c)]=function(_0xd50976,_0x3f526d){return _0xd50976+_0x3f526d;},_0x489dbc[_0x511da1(0x140)]=_0x511da1(0x167),_0x489dbc[_0x511da1(0x18b)]=function(_0x48ce09,_0x2a29d9){return _0x48ce09!==_0x2a29d9;},_0x489dbc['AVuJf']=function(_0x3f0719,_0x295533){return _0x3f0719>=_0x295533;},_0x489dbc[_0x511da1(0x16f)]=function(_0x1d850c,_0x42f1a9){return _0x1d850c+_0x42f1a9;},_0x489dbc[_0x511da1(0x137)]=function(_0x266bc6,_0x2d2aeb){return _0x266bc6+_0x2d2aeb;};const _0x4428f9=_0x489dbc,{failureThresholdCount:_0x5bbba4}=this[_0x511da1(0x166)];if(_0x4428f9[_0x511da1(0x147)](_0x5bbba4,null)||_0x4428f9['bEoSB'](_0x5bbba4,undefined)||_0x4428f9[_0x511da1(0x13d)](_0x5bbba4,0x0))return logger[_0x511da1(0x189)]('['+TAG+_0x511da1(0x156)),![];if(this[_0x511da1(0x19d)]){try{if(fs[_0x511da1(0x130)](this['failFastActiveMarkerPath']))return logger[_0x511da1(0x189)]('['+TAG+_0x511da1(0x18d)),!this[_0x511da1(0x158)][_0x511da1(0x15d)]&&(this['state'][_0x511da1(0x15d)]=!![]),this[_0x511da1(0x19c)](),!![];}catch(_0x306651){logger[_0x511da1(0x162)]('['+TAG+_0x511da1(0x173)+_0x306651[_0x511da1(0x19f)]+(_0x306651[_0x511da1(0x179)]?_0x4428f9['witwb'](_0x4428f9[_0x511da1(0x140)],_0x306651['stack']):''));}const _0x1aa383=_0x4428f9[_0x511da1(0x18b)](this[_0x511da1(0x158)][_0x511da1(0x149)],undefined)?this[_0x511da1(0x158)]['lastAPIFailedCount']:0x0;if(_0x4428f9[_0x511da1(0x17e)](_0x1aa383,_0x5bbba4)){logger[_0x511da1(0x17b)]('['+TAG+_0x511da1(0x12c)+_0x1aa383+_0x511da1(0x195)+_0x5bbba4+'.');try{fs[_0x511da1(0x132)](this['failFastActiveMarkerPath'],new Date()['toISOString']()),logger[_0x511da1(0x189)]('['+TAG+_0x511da1(0x13e)+this[_0x511da1(0x15e)]),this['state']['failFastActive']=!![];}catch(_0x575692){logger[_0x511da1(0x162)]('['+TAG+_0x511da1(0x19b)+_0x575692[_0x511da1(0x19f)]+(_0x575692[_0x511da1(0x179)]?_0x4428f9[_0x511da1(0x15c)](_0x4428f9[_0x511da1(0x140)],_0x575692[_0x511da1(0x179)]):''));}return this[_0x511da1(0x19c)](),!![];}}else{let _0x1cfbb2;try{_0x1cfbb2=await this['fileHelper'][_0x511da1(0x152)]();if(!_0x1cfbb2)return logger['warn']('['+TAG+_0x511da1(0x12a)),![];}catch(_0x1f2dad){return logger['error']('['+TAG+_0x511da1(0x1a3)+_0x1f2dad[_0x511da1(0x19f)]+(_0x1f2dad['stack']?_0x4428f9[_0x511da1(0x16f)](_0x4428f9[_0x511da1(0x140)],_0x1f2dad[_0x511da1(0x179)]):'')),![];}this[_0x511da1(0x158)]={...this[_0x511da1(0x176)](),..._0x1cfbb2,'uniqueFailedTests':new Set(_0x1cfbb2[_0x511da1(0x131)]||[])};if(this[_0x511da1(0x158)][_0x511da1(0x15d)])return logger[_0x511da1(0x189)]('['+TAG+_0x511da1(0x13c)),!![];const _0x2a3081=this[_0x511da1(0x158)][_0x511da1(0x131)],_0x58d709=_0x2a3081[_0x511da1(0x1ab)];if(_0x4428f9[_0x511da1(0x17e)](_0x58d709,_0x5bbba4)){try{logger[_0x511da1(0x17b)]('['+TAG+'_Local]\x20Triggering\x20abortBuildOnFailure\x20for\x20current\x20error\x20count:\x20'+_0x58d709+_0x511da1(0x195)+_0x5bbba4+'.'),this['state']['failFastActive']=!![];}catch(_0x54b219){logger['error']('['+TAG+_0x511da1(0x134)+_0x54b219[_0x511da1(0x19f)]+(_0x54b219[_0x511da1(0x179)]?_0x4428f9[_0x511da1(0x137)](_0x4428f9[_0x511da1(0x140)],_0x54b219['stack']):''));}return!![];}}return![];}async[a139_0x1cef11(0x141)](){const _0x499ce1=a139_0x1cef11,_0x1804d5={};_0x1804d5[_0x499ce1(0x135)]=function(_0xeb6cb3,_0x5463cf){return _0xeb6cb3+_0x5463cf;},_0x1804d5[_0x499ce1(0x193)]=_0x499ce1(0x167);const _0x2efa87=_0x1804d5;this[_0x499ce1(0x19c)]();if(this[_0x499ce1(0x19d)])logger[_0x499ce1(0x189)]('['+TAG+_0x499ce1(0x1a9));else try{const _0x4a7757={...this[_0x499ce1(0x158)],'uniqueFailedTests':Array[_0x499ce1(0x16b)](this['state'][_0x499ce1(0x131)]||new Set())};await this['fileHelper'][_0x499ce1(0x1a4)](_0x4a7757),logger[_0x499ce1(0x189)]('['+TAG+_0x499ce1(0x175));}catch(_0x1cd666){logger[_0x499ce1(0x162)]('['+TAG+_0x499ce1(0x138)+_0x1cd666['message']+(_0x1cd666[_0x499ce1(0x179)]?_0x2efa87[_0x499ce1(0x135)](_0x2efa87[_0x499ce1(0x193)],_0x1cd666[_0x499ce1(0x179)]):''));}}}function a139_0x1b7b(_0x741731,_0x23c93f){const _0x5004ed=a139_0x5004();return a139_0x1b7b=function(_0x1b7b97,_0x208424){_0x1b7b97=_0x1b7b97-0x12a;let _0x3b223e=_0x5004ed[_0x1b7b97];return _0x3b223e;},a139_0x1b7b(_0x741731,_0x23c93f);}module[a139_0x1cef11(0x14f)]=FailFastManager;
@@ -1 +1 @@
1
- const a140_0x2e212a=a140_0x5480;(function(_0x46fa53,_0x3304f8){const _0x5e20ed=a140_0x5480,_0x170dff=_0x46fa53();while(!![]){try{const _0x4d362f=-parseInt(_0x5e20ed(0x18e))/0x1*(-parseInt(_0x5e20ed(0x162))/0x2)+parseInt(_0x5e20ed(0x180))/0x3*(-parseInt(_0x5e20ed(0x17d))/0x4)+parseInt(_0x5e20ed(0x179))/0x5+-parseInt(_0x5e20ed(0x191))/0x6+-parseInt(_0x5e20ed(0x194))/0x7*(parseInt(_0x5e20ed(0x18b))/0x8)+parseInt(_0x5e20ed(0x165))/0x9+-parseInt(_0x5e20ed(0x181))/0xa*(parseInt(_0x5e20ed(0x170))/0xb);if(_0x4d362f===_0x3304f8)break;else _0x170dff['push'](_0x170dff['shift']());}catch(_0x45f45a){_0x170dff['push'](_0x170dff['shift']());}}}(a140_0x5b82,0xe60ea));function a140_0x5b82(){const _0x556015=['message','openSync','uniqueFailedTests','failed','newState','isArray','readState','EdsGf','856075HLnUOQ','isNewFailure','stringify','ioJWu','ncSBI','yjiqe','EEXIST','releaseLock','TBQZr','7000765VnZdDw','writeState','acquireLock','fullName','27492FqWjcj','winstonLogger','utf8','159NwoBgs','40XQkRKm','status','error','recordTestResult','add','defaultState','stateFilePath','readFileSync',']\x20Error\x20creating\x20state\x20file:\x20','failedTests','8havtXo','jHbAO','exports','9068imCDbP','warn',']\x20Error\x20reading\x20state\x20file:\x20','4022538PEIIdU','sBfqb','lockFilePath','4777801tDnmcV','from','parse','unlinkSync','writeFileSync','38Qklabf',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','gDQeN','12585636YsCdcC','stack',']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.'];a140_0x5b82=function(){return _0x556015;};return a140_0x5b82();}const fs=require('fs'),logger=require('../logger')[a140_0x2e212a(0x17e)],TAG='FailFastFileHelper';class FileHelper{constructor(_0x3c4319,_0x10fee0,_0x2d455e,_0x39161b){const _0x2a69c3=a140_0x2e212a,_0x5c459b={};_0x5c459b['sBfqb']='1|3|2|0|4',_0x5c459b[_0x2a69c3(0x164)]=_0x2a69c3(0x17f);const _0x16fe42=_0x5c459b,_0x50a832=_0x16fe42[_0x2a69c3(0x192)]['split']('|');let _0x4902fb=0x0;while(!![]){switch(_0x50a832[_0x4902fb++]){case'0':this['defaultState']=_0x39161b;continue;case'1':this['failFastConfig']=_0x3c4319;continue;case'2':this[_0x2a69c3(0x193)]=_0x2d455e;continue;case'3':this[_0x2a69c3(0x187)]=_0x10fee0;continue;case'4':if(!fs['existsSync'](this[_0x2a69c3(0x187)]))try{fs[_0x2a69c3(0x161)](this['stateFilePath'],'{}',_0x16fe42['gDQeN']);}catch(_0x349bc9){logger[_0x2a69c3(0x183)]('['+TAG+_0x2a69c3(0x189)+_0x349bc9[_0x2a69c3(0x168)]+'\x20'+_0x349bc9['stack']);}continue;}break;}}async[a140_0x2e212a(0x17b)](){const _0x26e763=a140_0x2e212a,_0x227dd2={};_0x227dd2[_0x26e763(0x173)]=function(_0x7cf86d,_0x5747e4){return _0x7cf86d===_0x5747e4;},_0x227dd2[_0x26e763(0x16f)]=_0x26e763(0x176);const _0x14e337=_0x227dd2;let _0x381e98;try{return _0x381e98=fs[_0x26e763(0x169)](this[_0x26e763(0x193)],'wx'),_0x381e98;}catch(_0x3b3035){if(_0x14e337[_0x26e763(0x173)](_0x3b3035['code'],_0x14e337[_0x26e763(0x16f)]))return null;throw _0x3b3035;}}async['releaseLock'](_0x170c4d){const _0x20a427=a140_0x2e212a;if(_0x170c4d)try{fs['closeSync'](_0x170c4d),fs[_0x20a427(0x160)](this[_0x20a427(0x193)]);}catch(_0x450d05){logger['error']('['+TAG+']\x20Error\x20releasing\x20lock:\x20'+_0x450d05['message']+'\x20'+_0x450d05['stack']);}}[a140_0x2e212a(0x16e)](){const _0x40142d=a140_0x2e212a,_0x10cdc4={};_0x10cdc4[_0x40142d(0x174)]=_0x40142d(0x17f);const _0x19b483=_0x10cdc4;try{const _0x278085=fs[_0x40142d(0x188)](this[_0x40142d(0x187)],_0x19b483[_0x40142d(0x174)]);return JSON['parse'](_0x278085);}catch(_0x5c5b6f){return logger[_0x40142d(0x183)]('['+TAG+_0x40142d(0x190)+_0x5c5b6f['message']+'\x20'+_0x5c5b6f[_0x40142d(0x166)]),null;}}async[a140_0x2e212a(0x17a)](_0x9559c1){const _0x5a3754=a140_0x2e212a,_0x4b1431={..._0x9559c1,'uniqueFailedTests':Array[_0x5a3754(0x16d)](_0x9559c1[_0x5a3754(0x16a)])?_0x9559c1[_0x5a3754(0x16a)]:Array[_0x5a3754(0x195)](_0x9559c1['uniqueFailedTests']||[])};try{fs[_0x5a3754(0x161)](this[_0x5a3754(0x187)],JSON[_0x5a3754(0x172)](_0x4b1431,null,0x2));}catch(_0x48cb0c){logger[_0x5a3754(0x183)]('['+TAG+']\x20Error\x20writing\x20state\x20file:\x20'+_0x48cb0c[_0x5a3754(0x168)]+'\x20'+_0x48cb0c['stack']);throw _0x48cb0c;}}async[a140_0x2e212a(0x184)](_0x5cebe8,_0x21170c){const _0xbc0f89=a140_0x2e212a,_0x35b470={};_0x35b470[_0xbc0f89(0x178)]=function(_0x14ac79,_0x560874){return _0x14ac79!==_0x560874;},_0x35b470['yjiqe']='function',_0x35b470[_0xbc0f89(0x18c)]=function(_0x581cd3,_0x8ea248){return _0x581cd3===_0x8ea248;},_0x35b470['aIdeS']=_0xbc0f89(0x16b);const _0x2e5a51=_0x35b470,_0x397e82=await this[_0xbc0f89(0x17b)]();if(!_0x397e82)return logger[_0xbc0f89(0x18f)]('['+TAG+_0xbc0f89(0x163)),{'newState':this[_0xbc0f89(0x16e)]()||this[_0xbc0f89(0x186)],'isNewFailure':![]};try{let _0x1d58d0=this[_0xbc0f89(0x16e)]();!_0x1d58d0&&(_0x1d58d0=JSON[_0xbc0f89(0x196)](JSON[_0xbc0f89(0x172)](this[_0xbc0f89(0x186)])));if(!_0x1d58d0[_0xbc0f89(0x16a)]||_0x2e5a51['TBQZr'](typeof _0x1d58d0['uniqueFailedTests'][Symbol['iterator']],_0x2e5a51[_0xbc0f89(0x175)]))_0x1d58d0[_0xbc0f89(0x16a)]=new Set();else Array[_0xbc0f89(0x16d)](_0x1d58d0['uniqueFailedTests'])&&(_0x1d58d0['uniqueFailedTests']=new Set(_0x1d58d0['uniqueFailedTests']));_0x1d58d0['totalTests']=_0x21170c;let _0x32ffd2=![];_0x2e5a51['jHbAO'](_0x5cebe8[_0xbc0f89(0x182)],_0x2e5a51['aIdeS'])&&(_0x1d58d0[_0xbc0f89(0x18a)]+=0x1,!_0x1d58d0['uniqueFailedTests']['has'](_0x5cebe8[_0xbc0f89(0x17c)])&&(_0x1d58d0[_0xbc0f89(0x16a)][_0xbc0f89(0x185)](_0x5cebe8[_0xbc0f89(0x17c)]),_0x32ffd2=!![]));await this[_0xbc0f89(0x17a)](_0x1d58d0);const _0x5e14c2={};return _0x5e14c2[_0xbc0f89(0x16c)]=_0x1d58d0,_0x5e14c2[_0xbc0f89(0x171)]=_0x32ffd2,_0x5e14c2;}finally{await this['releaseLock'](_0x397e82);}}async['updateAPIFailedCount'](_0x499e1a){const _0x2f907f=a140_0x2e212a,_0x90cde8=await this[_0x2f907f(0x17b)]();if(!_0x90cde8)return logger[_0x2f907f(0x18f)]('['+TAG+_0x2f907f(0x167)),this['readState']()||this['defaultState'];try{let _0xa76278=this[_0x2f907f(0x16e)]();return!_0xa76278&&(_0xa76278=JSON['parse'](JSON[_0x2f907f(0x172)](this[_0x2f907f(0x186)]))),_0xa76278['lastAPIFailedCount']=_0x499e1a,await this['writeState'](_0xa76278),_0xa76278;}finally{await this[_0x2f907f(0x177)](_0x90cde8);}}}function a140_0x5480(_0x3372ce,_0x55457c){const _0x5b82ea=a140_0x5b82();return a140_0x5480=function(_0x5480a7,_0x16aee5){_0x5480a7=_0x5480a7-0x160;let _0x4a6fbc=_0x5b82ea[_0x5480a7];return _0x4a6fbc;},a140_0x5480(_0x3372ce,_0x55457c);}module[a140_0x2e212a(0x18d)]=FileHelper;
1
+ function a140_0x515b(){const _0x1b828c=['writeState','17354286XKtFnD','failFastConfig','warn','uniqueFailedTests','status','recordTestResult','4581374wpiMcJ',']\x20Could\x20not\x20acquire\x20lock\x20to\x20record\x20test\x20result.\x20State\x20may\x20be\x20stale.','unlinkSync','code','gOrjV','59449440yUbHvE','error','updateAPIFailedCount','lockFilePath',']\x20Error\x20creating\x20state\x20file:\x20','uAkff','pOGpO','from','340572wURozm','function','exports','existsSync','message','isNewFailure','8AJMOhz','cWFXQ','stateFilePath','openSync','1953868DyrcPE','1468110Dlsqtc','15eeXgfS','xuzmS','jgUye','fullName','FailFastFileHelper','winstonLogger','stack','969776vJPgcq','split','newState','isArray',']\x20Error\x20releasing\x20lock:\x20','failedTests','24dBgeDK',']\x20Error\x20writing\x20state\x20file:\x20','readFileSync','EEXIST','../logger','utf8',']\x20Error\x20reading\x20state\x20file:\x20','writeFileSync','parse','pVgVg','acquireLock','defaultState','add','OSvnT','lastAPIFailedCount','readState','releaseLock','3|4|2|0|1','stringify'];a140_0x515b=function(){return _0x1b828c;};return a140_0x515b();}const a140_0x1304a0=a140_0x27b0;function a140_0x27b0(_0x473b27,_0x6753eb){const _0x515bd8=a140_0x515b();return a140_0x27b0=function(_0x27b0e7,_0x3c7152){_0x27b0e7=_0x27b0e7-0x1ac;let _0xf7a31=_0x515bd8[_0x27b0e7];return _0xf7a31;},a140_0x27b0(_0x473b27,_0x6753eb);}(function(_0x2c4108,_0x4d125f){const _0x579a7c=a140_0x27b0,_0xcb698d=_0x2c4108();while(!![]){try{const _0x5761c6=-parseInt(_0x579a7c(0x1df))/0x1+-parseInt(_0x579a7c(0x1e9))/0x2+-parseInt(_0x579a7c(0x1eb))/0x3*(parseInt(_0x579a7c(0x1b2))/0x4)+-parseInt(_0x579a7c(0x1ea))/0x5*(parseInt(_0x579a7c(0x1b8))/0x6)+-parseInt(_0x579a7c(0x1d2))/0x7*(-parseInt(_0x579a7c(0x1e5))/0x8)+-parseInt(_0x579a7c(0x1cc))/0x9+parseInt(_0x579a7c(0x1d7))/0xa;if(_0x5761c6===_0x4d125f)break;else _0xcb698d['push'](_0xcb698d['shift']());}catch(_0x31b2c4){_0xcb698d['push'](_0xcb698d['shift']());}}}(a140_0x515b,0xec12e));const fs=require('fs'),logger=require(a140_0x1304a0(0x1bc))[a140_0x1304a0(0x1b0)],TAG=a140_0x1304a0(0x1af);class FileHelper{constructor(_0x3afb6e,_0x3696a0,_0x24d422,_0x28a980){const _0x4c4277=a140_0x1304a0,_0x405dd5={};_0x405dd5[_0x4c4277(0x1c1)]=_0x4c4277(0x1c9),_0x405dd5[_0x4c4277(0x1d6)]='utf8';const _0x302d81=_0x405dd5,_0x5bb8ef=_0x302d81[_0x4c4277(0x1c1)][_0x4c4277(0x1b3)]('|');let _0x2757e9=0x0;while(!![]){switch(_0x5bb8ef[_0x2757e9++]){case'0':this[_0x4c4277(0x1c3)]=_0x28a980;continue;case'1':if(!fs[_0x4c4277(0x1e2)](this[_0x4c4277(0x1e7)]))try{fs['writeFileSync'](this[_0x4c4277(0x1e7)],'{}',_0x302d81[_0x4c4277(0x1d6)]);}catch(_0x415828){logger[_0x4c4277(0x1d8)]('['+TAG+_0x4c4277(0x1db)+_0x415828[_0x4c4277(0x1e3)]+'\x20'+_0x415828[_0x4c4277(0x1b1)]);}continue;case'2':this[_0x4c4277(0x1da)]=_0x24d422;continue;case'3':this[_0x4c4277(0x1cd)]=_0x3afb6e;continue;case'4':this[_0x4c4277(0x1e7)]=_0x3696a0;continue;}break;}}async[a140_0x1304a0(0x1c2)](){const _0x436d4e=a140_0x1304a0,_0x2b6e0d={};_0x2b6e0d[_0x436d4e(0x1c5)]=function(_0x2f1122,_0x17b5ef){return _0x2f1122===_0x17b5ef;},_0x2b6e0d[_0x436d4e(0x1dc)]=_0x436d4e(0x1bb);const _0x1a1f85=_0x2b6e0d;let _0x5f51b2;try{return _0x5f51b2=fs[_0x436d4e(0x1e8)](this[_0x436d4e(0x1da)],'wx'),_0x5f51b2;}catch(_0x5ede59){if(_0x1a1f85[_0x436d4e(0x1c5)](_0x5ede59[_0x436d4e(0x1d5)],_0x1a1f85['uAkff']))return null;throw _0x5ede59;}}async['releaseLock'](_0x3d468d){const _0x53b649=a140_0x1304a0;if(_0x3d468d)try{fs['closeSync'](_0x3d468d),fs[_0x53b649(0x1d4)](this['lockFilePath']);}catch(_0x34c219){logger[_0x53b649(0x1d8)]('['+TAG+_0x53b649(0x1b6)+_0x34c219[_0x53b649(0x1e3)]+'\x20'+_0x34c219['stack']);}}['readState'](){const _0x495b85=a140_0x1304a0,_0x219bfa={};_0x219bfa[_0x495b85(0x1ad)]=_0x495b85(0x1bd);const _0x1c74fa=_0x219bfa;try{const _0x1a5dcd=fs[_0x495b85(0x1ba)](this[_0x495b85(0x1e7)],_0x1c74fa[_0x495b85(0x1ad)]);return JSON[_0x495b85(0x1c0)](_0x1a5dcd);}catch(_0x2899d3){return logger['error']('['+TAG+_0x495b85(0x1be)+_0x2899d3[_0x495b85(0x1e3)]+'\x20'+_0x2899d3['stack']),null;}}async[a140_0x1304a0(0x1cb)](_0x4dcefe){const _0x167c7e=a140_0x1304a0,_0x334f02={..._0x4dcefe,'uniqueFailedTests':Array[_0x167c7e(0x1b5)](_0x4dcefe[_0x167c7e(0x1cf)])?_0x4dcefe[_0x167c7e(0x1cf)]:Array[_0x167c7e(0x1de)](_0x4dcefe['uniqueFailedTests']||[])};try{fs[_0x167c7e(0x1bf)](this[_0x167c7e(0x1e7)],JSON[_0x167c7e(0x1ca)](_0x334f02,null,0x2));}catch(_0x17455a){logger[_0x167c7e(0x1d8)]('['+TAG+_0x167c7e(0x1b9)+_0x17455a[_0x167c7e(0x1e3)]+'\x20'+_0x17455a[_0x167c7e(0x1b1)]);throw _0x17455a;}}async[a140_0x1304a0(0x1d1)](_0x59fec5,_0x43703d){const _0x16aa40=a140_0x1304a0,_0x23f797={};_0x23f797['MlBzu']=function(_0x228041,_0x456644){return _0x228041!==_0x456644;},_0x23f797['cWFXQ']=_0x16aa40(0x1e0),_0x23f797[_0x16aa40(0x1ac)]=function(_0x52a9fd,_0x5e5ce7){return _0x52a9fd===_0x5e5ce7;},_0x23f797['pOGpO']='failed';const _0x14c294=_0x23f797,_0x3e65f2=await this[_0x16aa40(0x1c2)]();if(!_0x3e65f2)return logger[_0x16aa40(0x1ce)]('['+TAG+_0x16aa40(0x1d3)),{'newState':this[_0x16aa40(0x1c7)]()||this[_0x16aa40(0x1c3)],'isNewFailure':![]};try{let _0x1f439e=this[_0x16aa40(0x1c7)]();!_0x1f439e&&(_0x1f439e=JSON['parse'](JSON[_0x16aa40(0x1ca)](this['defaultState'])));if(!_0x1f439e[_0x16aa40(0x1cf)]||_0x14c294['MlBzu'](typeof _0x1f439e[_0x16aa40(0x1cf)][Symbol['iterator']],_0x14c294[_0x16aa40(0x1e6)]))_0x1f439e['uniqueFailedTests']=new Set();else Array[_0x16aa40(0x1b5)](_0x1f439e[_0x16aa40(0x1cf)])&&(_0x1f439e[_0x16aa40(0x1cf)]=new Set(_0x1f439e['uniqueFailedTests']));_0x1f439e['totalTests']=_0x43703d;let _0x148186=![];_0x14c294[_0x16aa40(0x1ac)](_0x59fec5[_0x16aa40(0x1d0)],_0x14c294[_0x16aa40(0x1dd)])&&(_0x1f439e[_0x16aa40(0x1b7)]+=0x1,!_0x1f439e['uniqueFailedTests']['has'](_0x59fec5[_0x16aa40(0x1ae)])&&(_0x1f439e[_0x16aa40(0x1cf)][_0x16aa40(0x1c4)](_0x59fec5['fullName']),_0x148186=!![]));await this[_0x16aa40(0x1cb)](_0x1f439e);const _0x248c8a={};return _0x248c8a[_0x16aa40(0x1b4)]=_0x1f439e,_0x248c8a[_0x16aa40(0x1e4)]=_0x148186,_0x248c8a;}finally{await this['releaseLock'](_0x3e65f2);}}async[a140_0x1304a0(0x1d9)](_0x38f6b0){const _0x3248a2=a140_0x1304a0,_0x29b20d=await this['acquireLock']();if(!_0x29b20d)return logger['warn']('['+TAG+']\x20Could\x20not\x20acquire\x20lock\x20to\x20update\x20API\x20failed\x20count.\x20State\x20may\x20be\x20stale.'),this[_0x3248a2(0x1c7)]()||this['defaultState'];try{let _0xb9add6=this[_0x3248a2(0x1c7)]();return!_0xb9add6&&(_0xb9add6=JSON[_0x3248a2(0x1c0)](JSON[_0x3248a2(0x1ca)](this[_0x3248a2(0x1c3)]))),_0xb9add6[_0x3248a2(0x1c6)]=_0x38f6b0,await this['writeState'](_0xb9add6),_0xb9add6;}finally{await this[_0x3248a2(0x1c8)](_0x29b20d);}}}module[a140_0x1304a0(0x1e1)]=FileHelper;
@@ -1 +1 @@
1
- const a141_0x40a21c=a141_0x130e;(function(_0x385845,_0x58c3b7){const _0x667635=a141_0x130e,_0x53f1a5=_0x385845();while(!![]){try{const _0x5bf82e=parseInt(_0x667635(0x212))/0x1+-parseInt(_0x667635(0x1f8))/0x2*(-parseInt(_0x667635(0x1e9))/0x3)+-parseInt(_0x667635(0x1e4))/0x4+-parseInt(_0x667635(0x1fe))/0x5*(-parseInt(_0x667635(0x1ee))/0x6)+-parseInt(_0x667635(0x217))/0x7*(parseInt(_0x667635(0x208))/0x8)+parseInt(_0x667635(0x216))/0x9+parseInt(_0x667635(0x1e6))/0xa*(-parseInt(_0x667635(0x205))/0xb);if(_0x5bf82e===_0x58c3b7)break;else _0x53f1a5['push'](_0x53f1a5['shift']());}catch(_0x49b03e){_0x53f1a5['push'](_0x53f1a5['shift']());}}}(a141_0x1d3a,0xe5de5));const os=require('os'),path=require(a141_0x40a21c(0x1e5)),fs=require('fs'),logger=require(a141_0x40a21c(0x1f3))[a141_0x40a21c(0x1eb)],RETRY_TESTS_ON_FAILURE=a141_0x40a21c(0x21c),ABORT_BUILD_ON_FAILURE=a141_0x40a21c(0x214),RUN_PREVIOUSLY_FAILED_FIRST=a141_0x40a21c(0x1f2),RERUN_PREVIOUSLY_FAILED=a141_0x40a21c(0x219),SKIP_FLAKY_AND_FAILED=a141_0x40a21c(0x20e),ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set(['jest']);function a141_0x130e(_0x266446,_0x461282){const _0x1d3a2d=a141_0x1d3a();return a141_0x130e=function(_0x130e0a,_0x7b8662){_0x130e0a=_0x130e0a-0x1e3;let _0x1b481c=_0x1d3a2d[_0x130e0a];return _0x1b481c;},a141_0x130e(_0x266446,_0x461282);}class TestOrdering{constructor(){const _0x11a3c0=a141_0x40a21c;this['enabled']=![],this[_0x11a3c0(0x1ff)]=null;}[a141_0x40a21c(0x203)](_0x5a7874){const _0x140bb6=a141_0x40a21c;this['enabled']=!![],this[_0x140bb6(0x1ff)]=_0x5a7874;}['disable'](){const _0x45dc7f=a141_0x40a21c;this[_0x45dc7f(0x1f1)]=![],this[_0x45dc7f(0x1ff)]=null;}[a141_0x40a21c(0x1e8)](){const _0x409bdb=a141_0x40a21c;return this[_0x409bdb(0x1f1)];}[a141_0x40a21c(0x1ef)](){const _0x5c4eba=a141_0x40a21c;return this[_0x5c4eba(0x1ff)];}}class OrchestrationUtils{static [a141_0x40a21c(0x210)]=null;constructor(_0x2e0797){const _0x2013a2=a141_0x40a21c,_0x45c5c1={};_0x45c5c1[_0x2013a2(0x1f0)]=function(_0x329495,_0x4c03cf){return _0x329495||_0x4c03cf;};const _0x50af16=_0x45c5c1;this[_0x2013a2(0x1f2)]=![],this['rerunPreviouslyFailed']=![],this[_0x2013a2(0x202)]=![],this['testOrdering']=new TestOrdering(),this[_0x2013a2(0x1e3)]=_0x50af16['EcSHc'](_0x2e0797,{});const _0x5168b3=_0x2e0797&&_0x2e0797['testOrchestrationOptions']||{};this[_0x2013a2(0x21b)](_0x5168b3[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x2013a2(0x1f7)](_0x5168b3[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x2013a2(0x1f6)](_0x5168b3[SKIP_FLAKY_AND_FAILED]||![]);}static['getInstance'](_0x2edfb4){const _0x3a98b7=a141_0x40a21c;return!OrchestrationUtils[_0x3a98b7(0x210)]&&_0x2edfb4&&(OrchestrationUtils['_instance']=new OrchestrationUtils(_0x2edfb4)),OrchestrationUtils[_0x3a98b7(0x210)];}['isRetryEnabled'](){const _0x11921b=a141_0x40a21c,_0x55e2bb=(this[_0x11921b(0x1e3)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x55e2bb['enabled'];}[a141_0x40a21c(0x204)](){const _0x12b4e2=a141_0x40a21c,_0x1c937f=(this[_0x12b4e2(0x1e3)]['testOrchestrationOptions']||{})[RETRY_TESTS_ON_FAILURE]||{};let _0xf3246=0x0;return this[_0x12b4e2(0x20f)](this[_0x12b4e2(0x1e3)])&&(_0xf3246=_0x1c937f[_0x12b4e2(0x21a)]||0x1),_0xf3246;}[a141_0x40a21c(0x200)](){const _0x572cc2=a141_0x40a21c,_0x238f9d=this[_0x572cc2(0x1e3)]['testOrchestrationOptions']||{},_0x4d8ea0={};for(const _0x4e180d in _0x238f9d){ALLOWED_ORCHESTRATION_KEYS[_0x572cc2(0x213)](_0x4e180d)&&(_0x4d8ea0[_0x4e180d]=_0x238f9d[_0x4e180d]);}return _0x4d8ea0;}[a141_0x40a21c(0x201)](){const _0x2ebf0c=a141_0x40a21c,_0x213768=process['env'][_0x2ebf0c(0x1fd)],_0x5281b3=path[_0x2ebf0c(0x1fc)](os['tmpdir'](),_0x2ebf0c(0x211)+_0x213768);return fs['existsSync'](_0x5281b3);}['writeFailureToFile'](_0x39de10){const _0x4a847f=a141_0x40a21c,_0x3fe250=process[_0x4a847f(0x20d)]['BROWSERSTACK_TESTHUB_UUID'],_0x1249b4=path[_0x4a847f(0x1fc)](os[_0x4a847f(0x218)](),'failed_tests_'+_0x3fe250+'.txt');fs[_0x4a847f(0x20c)](_0x1249b4,_0x39de10+'\x0a');}[a141_0x40a21c(0x1e7)](_0x2e6aaa){const _0x45f3a6=a141_0x40a21c,_0x276b68={};_0x276b68[_0x45f3a6(0x1f5)]=function(_0xe35b07,_0xb83037){return _0xe35b07||_0xb83037;};const _0x3b7dae=_0x276b68;return ABORT_BUILD_SUPPORTED_FRAMEWORKS['has'](_0x3b7dae[_0x45f3a6(0x1f5)](_0x2e6aaa,'')[_0x45f3a6(0x1f9)]());}[a141_0x40a21c(0x215)](){const _0x20b066=a141_0x40a21c,_0x5aec89=(this[_0x20b066(0x1e3)]['testOrchestrationOptions']||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x5aec89[_0x20b066(0x1f1)];}[a141_0x40a21c(0x1fb)](){const _0x282308=a141_0x40a21c,_0x3c916d=(this[_0x282308(0x1e3)][_0x282308(0x20a)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x3c916d[_0x282308(0x21d)]||0x5;;}['getRunPreviouslyFailedFirst'](){return this['runPreviouslyFailedFirst'];}[a141_0x40a21c(0x21b)](_0x2ad9f5){const _0x8b4660=a141_0x40a21c;this['runPreviouslyFailedFirst']=!!_0x2ad9f5,this[_0x8b4660(0x1f4)]();}['getRerunPreviouslyFailed'](){const _0x104bb1=a141_0x40a21c;return this[_0x104bb1(0x219)];}[a141_0x40a21c(0x1f7)](_0x3e5312){const _0x2a9110=a141_0x40a21c;this[_0x2a9110(0x219)]=!!_0x3e5312,this[_0x2a9110(0x1f4)]();}['getSkipFlakyAndFailed'](){return this['skipFlakyAndFailed'];}[a141_0x40a21c(0x1f6)](_0x1a0568){const _0x5c456d=a141_0x40a21c;this[_0x5c456d(0x202)]=!!_0x1a0568,this[_0x5c456d(0x1f4)]();}[a141_0x40a21c(0x1f4)](){const _0x33d158=a141_0x40a21c;if(this[_0x33d158(0x1f2)])this[_0x33d158(0x219)]=![],this[_0x33d158(0x202)]=![],this['testOrdering'][_0x33d158(0x203)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x33d158(0x219)])this[_0x33d158(0x1f2)]=![],this[_0x33d158(0x202)]=![],this['testOrdering'][_0x33d158(0x203)](RERUN_PREVIOUSLY_FAILED);else this[_0x33d158(0x202)]?(this[_0x33d158(0x1f2)]=![],this[_0x33d158(0x219)]=![],this[_0x33d158(0x20b)][_0x33d158(0x203)](SKIP_FLAKY_AND_FAILED)):this[_0x33d158(0x20b)][_0x33d158(0x207)]();}}[a141_0x40a21c(0x206)](){const _0xa6b105=a141_0x40a21c;return this[_0xa6b105(0x20b)][_0xa6b105(0x1e8)]();}['getTestOrderingName'](){const _0x49696b=a141_0x40a21c;if(this[_0x49696b(0x20b)][_0x49696b(0x1e8)]())return this['testOrdering'][_0x49696b(0x1ef)]();return null;}[a141_0x40a21c(0x1ea)](){const _0x3eed2e=a141_0x40a21c,_0x4a2a5f={};return _0x4a2a5f['rerun_previously_failed']={'enabled':this['getRerunPreviouslyFailed']()},_0x4a2a5f[_0x3eed2e(0x209)]={'enabled':this['getRunPreviouslyFailedFirst']()},_0x4a2a5f['skip_failing_and_flaky']={'enabled':this[_0x3eed2e(0x1ec)]()},this[_0x3eed2e(0x20f)]()&&(_0x4a2a5f[_0x3eed2e(0x1fa)]={'enabled':!![],'max_retries':this[_0x3eed2e(0x204)]()}),this[_0x3eed2e(0x215)]()&&(_0x4a2a5f['abort_build_on_failure']={'enabled':!![],'max_failures':this[_0x3eed2e(0x1fb)]()}),_0x4a2a5f;}}function a141_0x1d3a(){const _0x48c1ad=['disable','273704zoJGrA','run_previously_failed_first','testOrchestrationOptions','testOrdering','appendFileSync','env','skipFlakyandFailed','isRetryEnabled','_instance','abort_build_','403955rOopfm','has','abortBuildOnFailure','isAbortBuildOnFailureEnabled','13763178gsaumN','189nztXPI','tmpdir','rerunPreviouslyFailed','maxRetries','_setRunPreviouslyFailedFirst','retryTestsOnFailure','maxFailures','config','6461604IhokcV','path','940oMQIhQ','isAbortBuildOnFailureSupported','getEnabled','179001mxPTxL','getBuildStartData','winstonLogger','getSkipFlakyAndFailed','exports','1765818lvyggq','getName','EcSHc','enabled','runPreviouslyFailedFirst','../logger','_setTestOrdering','dZljD','_setSkipFlakyAndFailed','_setRerunPreviouslyFailed','22kZPbhL','toLowerCase','retry_tests_on_failure','getFailureThreshold','join','BROWSERSTACK_TESTHUB_UUID','25SLqlnb','name','getOrchestrationData','checkAbortBuildFileExists','skipFlakyAndFailed','enable','getRetryCount','67914CHGOrR','testOrderingEnabled'];a141_0x1d3a=function(){return _0x48c1ad;};return a141_0x1d3a();}module[a141_0x40a21c(0x1ed)]=OrchestrationUtils;
1
+ const a141_0x467be3=a141_0x425d;(function(_0x422485,_0x14f84d){const _0x15157f=a141_0x425d,_0x296398=_0x422485();while(!![]){try{const _0x162190=parseInt(_0x15157f(0xf6))/0x1+parseInt(_0x15157f(0xd2))/0x2*(parseInt(_0x15157f(0xe2))/0x3)+parseInt(_0x15157f(0xff))/0x4+-parseInt(_0x15157f(0xe5))/0x5*(-parseInt(_0x15157f(0xea))/0x6)+-parseInt(_0x15157f(0xf8))/0x7*(-parseInt(_0x15157f(0xef))/0x8)+-parseInt(_0x15157f(0xf5))/0x9*(parseInt(_0x15157f(0x10c))/0xa)+-parseInt(_0x15157f(0xd6))/0xb;if(_0x162190===_0x14f84d)break;else _0x296398['push'](_0x296398['shift']());}catch(_0xb4d2f9){_0x296398['push'](_0x296398['shift']());}}}(a141_0x2eb7,0x263d1));function a141_0x425d(_0x37260d,_0x2602d4){const _0x2eb775=a141_0x2eb7();return a141_0x425d=function(_0x425d1d,_0x4d3e9c){_0x425d1d=_0x425d1d-0xd2;let _0x58a8cd=_0x2eb775[_0x425d1d];return _0x58a8cd;},a141_0x425d(_0x37260d,_0x2602d4);}const os=require('os'),path=require('path'),fs=require('fs'),logger=require('../logger')[a141_0x467be3(0xf7)],RETRY_TESTS_ON_FAILURE=a141_0x467be3(0xd4),ABORT_BUILD_ON_FAILURE=a141_0x467be3(0x104),RUN_PREVIOUSLY_FAILED_FIRST=a141_0x467be3(0xe9),RERUN_PREVIOUSLY_FAILED='rerunPreviouslyFailed',SKIP_FLAKY_AND_FAILED=a141_0x467be3(0xfb),ALLOWED_ORCHESTRATION_KEYS=new Set([RETRY_TESTS_ON_FAILURE,ABORT_BUILD_ON_FAILURE,RUN_PREVIOUSLY_FAILED_FIRST,RERUN_PREVIOUSLY_FAILED,SKIP_FLAKY_AND_FAILED]),ABORT_BUILD_SUPPORTED_FRAMEWORKS=new Set([a141_0x467be3(0x109)]);class TestOrdering{constructor(){const _0x59b12e=a141_0x467be3;this[_0x59b12e(0x10a)]=![],this[_0x59b12e(0x105)]=null;}[a141_0x467be3(0xfc)](_0x3a6503){const _0x438522=a141_0x467be3;this[_0x438522(0x10a)]=!![],this['name']=_0x3a6503;}[a141_0x467be3(0xdd)](){this['enabled']=![],this['name']=null;}['getEnabled'](){const _0x2a7ec3=a141_0x467be3;return this[_0x2a7ec3(0x10a)];}['getName'](){return this['name'];}}class OrchestrationUtils{static ['_instance']=null;constructor(_0x32b691){const _0x17ba20=a141_0x467be3,_0x50ff72={};_0x50ff72[_0x17ba20(0xfa)]=function(_0xe2d508,_0x34e251){return _0xe2d508||_0x34e251;};const _0x4eba5d=_0x50ff72;this[_0x17ba20(0xe9)]=![],this['rerunPreviouslyFailed']=![],this[_0x17ba20(0xe7)]=![],this[_0x17ba20(0x100)]=new TestOrdering(),this[_0x17ba20(0xee)]=_0x4eba5d[_0x17ba20(0xfa)](_0x32b691,{});const _0x5a794b=_0x32b691&&_0x32b691[_0x17ba20(0xf9)]||{};this['_setRunPreviouslyFailedFirst'](_0x5a794b[RUN_PREVIOUSLY_FAILED_FIRST]||![]),this[_0x17ba20(0x101)](_0x5a794b[RERUN_PREVIOUSLY_FAILED]||![]),this[_0x17ba20(0xfe)](_0x5a794b[SKIP_FLAKY_AND_FAILED]||![]);}static[a141_0x467be3(0xf0)](_0x1ba104){const _0x2c53af=a141_0x467be3;return!OrchestrationUtils[_0x2c53af(0xec)]&&_0x1ba104&&(OrchestrationUtils[_0x2c53af(0xec)]=new OrchestrationUtils(_0x1ba104)),OrchestrationUtils['_instance'];}['isRetryEnabled'](){const _0x26e5fd=a141_0x467be3,_0x10c7d7=(this[_0x26e5fd(0xee)][_0x26e5fd(0xf9)]||{})[RETRY_TESTS_ON_FAILURE]||{};return!!_0x10c7d7['enabled'];}[a141_0x467be3(0x103)](){const _0x108a5d=a141_0x467be3,_0x375a41=(this['config'][_0x108a5d(0xf9)]||{})[RETRY_TESTS_ON_FAILURE]||{};let _0x33c166=0x0;return this[_0x108a5d(0xd8)](this['config'])&&(_0x33c166=_0x375a41[_0x108a5d(0x102)]||0x1),_0x33c166;}['getOrchestrationData'](){const _0x26010e=a141_0x467be3,_0x5975f0=this[_0x26010e(0xee)][_0x26010e(0xf9)]||{},_0x5ddf30={};for(const _0x569bbf in _0x5975f0){ALLOWED_ORCHESTRATION_KEYS[_0x26010e(0x10b)](_0x569bbf)&&(_0x5ddf30[_0x569bbf]=_0x5975f0[_0x569bbf]);}return _0x5ddf30;}[a141_0x467be3(0xdb)](){const _0x23ef5b=a141_0x467be3,_0x4adcfb=process[_0x23ef5b(0xd7)][_0x23ef5b(0xfd)],_0x132881=path['join'](os[_0x23ef5b(0xdf)](),'abort_build_'+_0x4adcfb);return fs['existsSync'](_0x132881);}[a141_0x467be3(0xdc)](_0x232927){const _0xcd8507=a141_0x467be3,_0x499daf=process[_0xcd8507(0xd7)]['BROWSERSTACK_TESTHUB_UUID'],_0x563121=path[_0xcd8507(0xed)](os[_0xcd8507(0xdf)](),_0xcd8507(0xe1)+_0x499daf+_0xcd8507(0xe3));fs[_0xcd8507(0xd3)](_0x563121,_0x232927+'\x0a');}[a141_0x467be3(0x106)](_0x5813ae){const _0x559d5c=a141_0x467be3,_0xd22a01={};_0xd22a01[_0x559d5c(0xd9)]=function(_0x55b454,_0x35fcac){return _0x55b454||_0x35fcac;};const _0x3aafd9=_0xd22a01;return ABORT_BUILD_SUPPORTED_FRAMEWORKS[_0x559d5c(0x10b)](_0x3aafd9[_0x559d5c(0xd9)](_0x5813ae,'')[_0x559d5c(0xf4)]());}['isAbortBuildOnFailureEnabled'](){const _0x961664=a141_0x467be3,_0x5228cf=(this[_0x961664(0xee)][_0x961664(0xf9)]||{})[ABORT_BUILD_ON_FAILURE]||{};return!!_0x5228cf[_0x961664(0x10a)];}[a141_0x467be3(0xe6)](){const _0x2a45cf=a141_0x467be3,_0x5d1d4e=(this['config'][_0x2a45cf(0xf9)]||{})[ABORT_BUILD_ON_FAILURE]||{};return _0x5d1d4e['maxFailures']||0x5;;}[a141_0x467be3(0x108)](){const _0x4cec56=a141_0x467be3;return this[_0x4cec56(0xe9)];}[a141_0x467be3(0x10d)](_0x4df8d4){const _0x4edaa0=a141_0x467be3;this[_0x4edaa0(0xe9)]=!!_0x4df8d4,this[_0x4edaa0(0xe4)]();}[a141_0x467be3(0xd5)](){const _0x2ff3cf=a141_0x467be3;return this[_0x2ff3cf(0xf2)];}[a141_0x467be3(0x101)](_0x2f2874){this['rerunPreviouslyFailed']=!!_0x2f2874,this['_setTestOrdering']();}[a141_0x467be3(0xf3)](){const _0x3783d8=a141_0x467be3;return this[_0x3783d8(0xe7)];}[a141_0x467be3(0xfe)](_0x47c27d){const _0x431dc0=a141_0x467be3;this[_0x431dc0(0xe7)]=!!_0x47c27d,this['_setTestOrdering']();}['_setTestOrdering'](){const _0x443b9d=a141_0x467be3;if(this[_0x443b9d(0xe9)])this[_0x443b9d(0xf2)]=![],this[_0x443b9d(0xe7)]=![],this['testOrdering'][_0x443b9d(0xfc)](RUN_PREVIOUSLY_FAILED_FIRST);else{if(this[_0x443b9d(0xf2)])this[_0x443b9d(0xe9)]=![],this['skipFlakyAndFailed']=![],this[_0x443b9d(0x100)][_0x443b9d(0xfc)](RERUN_PREVIOUSLY_FAILED);else this[_0x443b9d(0xe7)]?(this['runPreviouslyFailedFirst']=![],this['rerunPreviouslyFailed']=![],this[_0x443b9d(0x100)]['enable'](SKIP_FLAKY_AND_FAILED)):this['testOrdering']['disable']();}}['testOrderingEnabled'](){return this['testOrdering']['getEnabled']();}[a141_0x467be3(0x10e)](){const _0x1ee6db=a141_0x467be3;if(this[_0x1ee6db(0x100)][_0x1ee6db(0xde)]())return this[_0x1ee6db(0x100)][_0x1ee6db(0xe8)]();return null;}['getBuildStartData'](){const _0x4f53cb=a141_0x467be3,_0x221d39={};return _0x221d39[_0x4f53cb(0x107)]={'enabled':this[_0x4f53cb(0xd5)]()},_0x221d39[_0x4f53cb(0xf1)]={'enabled':this[_0x4f53cb(0x108)]()},_0x221d39[_0x4f53cb(0xda)]={'enabled':this['getSkipFlakyAndFailed']()},this['isRetryEnabled']()&&(_0x221d39[_0x4f53cb(0xe0)]={'enabled':!![],'max_retries':this[_0x4f53cb(0x103)]()}),this['isAbortBuildOnFailureEnabled']()&&(_0x221d39[_0x4f53cb(0xeb)]={'enabled':!![],'max_failures':this[_0x4f53cb(0xe6)]()}),_0x221d39;}}function a141_0x2eb7(){const _0x37b6f2=['_setRunPreviouslyFailedFirst','getTestOrderingName','2162cDMUOs','appendFileSync','retryTestsOnFailure','getRerunPreviouslyFailed','2362217rfUKnF','env','isRetryEnabled','wcPWB','skip_failing_and_flaky','checkAbortBuildFileExists','writeFailureToFile','disable','getEnabled','tmpdir','retry_tests_on_failure','failed_tests_','111yRvAwM','.txt','_setTestOrdering','265fIwudU','getFailureThreshold','skipFlakyAndFailed','getName','runPreviouslyFailedFirst','24606FcCBfk','abort_build_on_failure','_instance','join','config','829520tJSoIE','getInstance','run_previously_failed_first','rerunPreviouslyFailed','getSkipFlakyAndFailed','toLowerCase','2643147NQiIZJ','182455VeWZVU','winstonLogger','14lXMDxZ','testOrchestrationOptions','JmFch','skipFlakyandFailed','enable','BROWSERSTACK_TESTHUB_UUID','_setSkipFlakyAndFailed','71480mbTeaE','testOrdering','_setRerunPreviouslyFailed','maxRetries','getRetryCount','abortBuildOnFailure','name','isAbortBuildOnFailureSupported','rerun_previously_failed','getRunPreviouslyFailedFirst','jest','enabled','has','10jGzpaM'];a141_0x2eb7=function(){return _0x37b6f2;};return a141_0x2eb7();}module['exports']=OrchestrationUtils;
@@ -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
+ function a142_0x5691(){const _0x48a529=[']\x20Error\x20in\x20getFailedTestsCount:\x20','request','stack','YosbP','Test\x20added','debug','zdkBd','12KKVgIY','iupFv','LajEM','6398018pKIwCp','yIBBj','320UVYtuB','PUT','lNSaD','8FBBgWD','27624ofjFgi','body','9141797tXteMH','AgpKu','ijGTU','uWsZI','headers','failedTestsCount','gragf','status','qVzye','YCtcr','XCtWS','Bearer\x20','82629xbyFSy','870uYFGeM','POST',']\x20Sending\x20GET\x20to\x20','105141EGLYAH','./constants','WFjhL','36180048JNRnWQ','14phLkKM','\x20with\x20headers:\x20','BROWSERSTACK_TESTHUB_JWT','Content-Type','fhxZz','write','undefined','&buildRunIdentifier=',']\x20Error\x20in\x20putFailedTests:\x20',']\x20Missing\x20parameters\x20for\x20getFailedTestsCount:\x20buildName=','end','?buildName=','zxyWU','xyZaJ','parse','nrSUq','SnYSu','AEiFp','\x20and\x20token:\x20','zMSNG','GqgLE','RequestUtils','getFailedTestsCount','url','Authorization','message','86230OgYjoC',',\x20buildRunIdentifier=','oaZDX','\x20and\x20data:\x20','\x20request\x20to\x20','stringify',',\x20status:\x20',',\x20projectName=','error','getSplitFiles','Failed\x20to\x20parse\x20JSON\x20response:\x20','postSplitFiles','../logger','itEVm',']\x20Successfully\x20posted\x20split\x20files\x20to\x20','_request','winstonLogger','exports'];a142_0x5691=function(){return _0x48a529;};return a142_0x5691();}const a142_0x5a9697=a142_0x1316;(function(_0x1988cd,_0x49b073){const _0x5698fe=a142_0x1316,_0x4ce4f0=_0x1988cd();while(!![]){try{const _0x73e460=parseInt(_0x5698fe(0x183))/0x1*(parseInt(_0x5698fe(0x169))/0x2)+parseInt(_0x5698fe(0x165))/0x3*(parseInt(_0x5698fe(0x19c))/0x4)+parseInt(_0x5698fe(0x14f))/0x5*(parseInt(_0x5698fe(0x153))/0x6)+parseInt(_0x5698fe(0x155))/0x7*(parseInt(_0x5698fe(0x152))/0x8)+parseInt(_0x5698fe(0x161))/0x9*(parseInt(_0x5698fe(0x162))/0xa)+parseInt(_0x5698fe(0x19f))/0xb+-parseInt(_0x5698fe(0x168))/0xc;if(_0x73e460===_0x49b073)break;else _0x4ce4f0['push'](_0x4ce4f0['shift']());}catch(_0x562c74){_0x4ce4f0['push'](_0x4ce4f0['shift']());}}}(a142_0x5691,0xa4bc7));const https=require('https'),{URL}=require(a142_0x5a9697(0x180)),logger=require(a142_0x5a9697(0x18f))[a142_0x5a9697(0x193)],{ORCHESTRATION_API_URL,FAILED_TESTS_ENDPOINT,SPLIT_TESTS_ENDPOINT}=require(a142_0x5a9697(0x166)),TAG=a142_0x5a9697(0x17e);class RequestUtils{static async[a142_0x5a9697(0x192)](_0x448224,_0x52ef9a,_0x554ba4=null){const _0x1801f9=a142_0x5a9697,_0x3cf456={'AgpKu':function(_0x2e6d78,_0x166d7b){return _0x2e6d78(_0x166d7b);},'GqgLE':'data','zdkBd':_0x1801f9(0x173),'WFjhL':_0x1801f9(0x18b),'XCtWS':function(_0x1f5820,_0xcdc000){return _0x1f5820===_0xcdc000;},'SnYSu':_0x1801f9(0x163),'AEiFp':function(_0x26e468,_0x3d66ec){return _0x26e468===_0x3d66ec;},'lNSaD':_0x1801f9(0x150),'yIBBj':'application/json','nYLgU':function(_0x1571bb,_0x19499e){return _0x1571bb+_0x19499e;}},_0xdefcf0=process['env'][_0x1801f9(0x16b)]||'',_0x3cdbbe={};_0x3cdbbe[_0x1801f9(0x181)]=_0x1801f9(0x160)+_0xdefcf0,_0x3cdbbe[_0x1801f9(0x16c)]=_0x3cf456[_0x1801f9(0x1a0)];const _0x5f485b=_0x3cdbbe,{hostname:_0x23c967,pathname:_0x4ecd36,search:_0x1fed42}=new URL(_0x52ef9a),_0x59c7b1={'hostname':_0x23c967,'path':_0x3cf456['nYLgU'](_0x4ecd36,_0x1fed42),'method':_0x448224,'headers':_0x5f485b};return logger[_0x1801f9(0x19a)]('['+TAG+']\x20Sending\x20'+_0x448224+_0x1801f9(0x187)+_0x52ef9a+_0x1801f9(0x16a)+JSON['stringify'](_0x5f485b)+_0x1801f9(0x186)+JSON[_0x1801f9(0x188)](_0x554ba4)+_0x1801f9(0x17b)+_0xdefcf0),new Promise((_0x5be915,_0x5a9ce1)=>{const _0x18a800=_0x1801f9,_0x2f0f97={'nIlRw':function(_0x4507ad,_0x29a90f){return _0x3cf456['AgpKu'](_0x4507ad,_0x29a90f);},'iupFv':function(_0x5c51d1,_0x49e7c3){const _0x59f82f=a142_0x1316;return _0x3cf456[_0x59f82f(0x156)](_0x5c51d1,_0x49e7c3);},'VvOBY':_0x3cf456[_0x18a800(0x17d)],'YCtcr':_0x3cf456[_0x18a800(0x19b)]},_0x43d3cf=https[_0x18a800(0x196)](_0x59c7b1,_0x5a309a=>{const _0x431ad9=_0x18a800;let _0x1f9689='';_0x5a309a['on'](_0x2f0f97['VvOBY'],_0x46f093=>{_0x1f9689+=_0x46f093;}),_0x5a309a['on'](_0x2f0f97[_0x431ad9(0x15e)],()=>{const _0x3eccd8=_0x431ad9;try{const _0x751c1e=_0x1f9689?JSON[_0x3eccd8(0x177)](_0x1f9689):{},_0x55e8be={};_0x55e8be[_0x3eccd8(0x15c)]=_0x5a309a['statusCode'],_0x55e8be[_0x3eccd8(0x154)]=_0x751c1e,_0x55e8be[_0x3eccd8(0x159)]=_0x5a309a[_0x3eccd8(0x159)],_0x2f0f97['nIlRw'](_0x5be915,_0x55e8be);}catch(_0x54c024){logger['error']('['+TAG+']\x20Failed\x20to\x20parse\x20JSON\x20response:\x20'+_0x1f9689+'\x20-\x20'+_0x54c024['message']+'\x20'+_0x54c024['stack']),_0x2f0f97['iupFv'](_0x5a9ce1,new Error(_0x3eccd8(0x18d)+_0x54c024['message']));}});});_0x43d3cf['on'](_0x3cf456[_0x18a800(0x167)],_0xdb3db2=>{const _0x38ceb4=_0x18a800;logger[_0x38ceb4(0x18b)]('['+TAG+']\x20Request\x20failed\x20for\x20'+_0x448224+'\x20'+_0x52ef9a+':\x20'+_0xdb3db2[_0x38ceb4(0x182)]+'\x20'+_0xdb3db2[_0x38ceb4(0x197)]),_0x2f0f97[_0x38ceb4(0x19d)](_0x5a9ce1,_0xdb3db2);}),_0x554ba4&&(_0x3cf456[_0x18a800(0x15f)](_0x448224,_0x3cf456[_0x18a800(0x179)])||_0x3cf456[_0x18a800(0x17a)](_0x448224,_0x3cf456[_0x18a800(0x151)]))&&_0x43d3cf[_0x18a800(0x16e)](JSON[_0x18a800(0x188)](_0x554ba4)),_0x43d3cf[_0x18a800(0x173)]();});}static async[a142_0x5a9697(0x18e)](_0x59f0da){const _0x3bd9a9=a142_0x5a9697,_0x4357c1={};_0x4357c1[_0x3bd9a9(0x158)]=_0x3bd9a9(0x163),_0x4357c1[_0x3bd9a9(0x15b)]=function(_0x1f1397,_0x29ae7b){return _0x1f1397===_0x29ae7b;};const _0x52137f=_0x4357c1,_0x4746e7=ORCHESTRATION_API_URL+'/'+SPLIT_TESTS_ENDPOINT;try{const _0x3e64de=await this['_request'](_0x52137f[_0x3bd9a9(0x158)],_0x4746e7,_0x59f0da);return _0x52137f['gragf'](_0x3e64de[_0x3bd9a9(0x15c)],0xc8)?logger[_0x3bd9a9(0x19a)]('['+TAG+_0x3bd9a9(0x191)+_0x4746e7):logger['error']('['+TAG+']\x20Failed\x20to\x20post\x20split\x20files\x20to\x20'+_0x4746e7+':\x20'+JSON['stringify'](_0x3e64de[_0x3bd9a9(0x154)])+_0x3bd9a9(0x189)+_0x3e64de[_0x3bd9a9(0x15c)]),_0x3e64de;}catch(_0x29d5d9){logger[_0x3bd9a9(0x18b)]('['+TAG+_0x3bd9a9(0x171)+_0x29d5d9['message']+'\x20'+_0x29d5d9[_0x3bd9a9(0x197)]);const _0x68fef6={};_0x68fef6[_0x3bd9a9(0x182)]=_0x29d5d9['message'];const _0x24adc3={};return _0x24adc3['status']=0x1f4,_0x24adc3[_0x3bd9a9(0x154)]=_0x68fef6,_0x24adc3;}}static async[a142_0x5a9697(0x18c)](_0x2cffed){const _0x2d6b00=a142_0x5a9697,_0xdd4cb={};_0xdd4cb['PdCbJ']='GET',_0xdd4cb[_0x2d6b00(0x190)]=function(_0x4b9d25,_0x206c69){return _0x4b9d25===_0x206c69;};const _0x464be6=_0xdd4cb;try{const _0x2f0e7f=await this[_0x2d6b00(0x192)](_0x464be6['PdCbJ'],_0x2cffed);if(_0x464be6[_0x2d6b00(0x190)](_0x2f0e7f[_0x2d6b00(0x15c)],0xc8))return _0x2f0e7f[_0x2d6b00(0x154)];return{};}catch(_0x235115){return logger[_0x2d6b00(0x18b)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x235115[_0x2d6b00(0x182)]+'\x20'+_0x235115['stack']),{};}}static async['putFailedTests'](_0x1ee320){const _0x137d19=a142_0x5a9697,_0x251c4c={};_0x251c4c[_0x137d19(0x19e)]=_0x137d19(0x150),_0x251c4c['zxyWU']=function(_0x353921,_0x33abc8){return _0x353921===_0x33abc8;},_0x251c4c['fVjet']=function(_0x41b44a,_0x27caa5){return _0x41b44a===_0x27caa5;},_0x251c4c['oaZDX']=_0x137d19(0x199);const _0x313dfc=_0x251c4c,_0x21194d=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT;try{const _0x26e3d6=await this[_0x137d19(0x192)](_0x313dfc[_0x137d19(0x19e)],_0x21194d,_0x1ee320);if(_0x313dfc[_0x137d19(0x175)](_0x26e3d6['status'],0xc8)&&_0x26e3d6[_0x137d19(0x154)]&&_0x313dfc['fVjet'](_0x26e3d6[_0x137d19(0x154)][_0x137d19(0x182)],_0x313dfc[_0x137d19(0x185)]))return!![];return![];}catch(_0x5d1280){logger[_0x137d19(0x18b)]('['+TAG+']\x20Error\x20in\x20putFailedTests:\x20'+_0x5d1280[_0x137d19(0x182)]+'\x20'+_0x5d1280[_0x137d19(0x197)]);const _0x1c6972={};_0x1c6972[_0x137d19(0x182)]=_0x5d1280[_0x137d19(0x182)];const _0x55aa04={};return _0x55aa04[_0x137d19(0x15c)]=0x1f4,_0x55aa04[_0x137d19(0x154)]=_0x1c6972,_0x55aa04;}}static async[a142_0x5a9697(0x17f)](_0x123080){const _0x4bbb54=a142_0x5a9697,_0x5c13cb={'oHWoy':function(_0x1d638f,_0x37501c){return _0x1d638f||_0x37501c;},'BIPYS':'Missing\x20required\x20parameters:\x20buildName,\x20buildRunIdentifier,\x20projectName','nrSUq':function(_0x271258,_0x55ea12){return _0x271258(_0x55ea12);},'ijGTU':function(_0x307fc5,_0x348015){return _0x307fc5(_0x348015);},'xHyqJ':function(_0x59bd33,_0x613877){return _0x59bd33(_0x613877);},'zMSNG':'GET','fhxZz':function(_0x579dbc,_0x350d81){return _0x579dbc===_0x350d81;},'YosbP':function(_0xbc81da,_0x43958a){return _0xbc81da!==_0x43958a;},'xyZaJ':_0x4bbb54(0x16f),'qVzye':function(_0x40c282,_0x570362){return _0x40c282(_0x570362);}},{buildName:_0x2e5f02,buildRunIdentifier:_0x378ae8,projectName:_0x282674}=_0x123080;if(_0x5c13cb['oHWoy'](!_0x2e5f02,!_0x378ae8)||!_0x282674){logger[_0x4bbb54(0x18b)]('['+TAG+_0x4bbb54(0x172)+_0x2e5f02+_0x4bbb54(0x184)+_0x378ae8+_0x4bbb54(0x18a)+_0x282674);const _0x1b07ef={};_0x1b07ef[_0x4bbb54(0x182)]=_0x5c13cb['BIPYS'];const _0x5cbd1c={};return _0x5cbd1c[_0x4bbb54(0x15c)]=0x190,_0x5cbd1c[_0x4bbb54(0x154)]=_0x1b07ef,_0x5cbd1c;}const _0x4fc6db=_0x4bbb54(0x174)+_0x5c13cb[_0x4bbb54(0x178)](encodeURIComponent,_0x2e5f02)+_0x4bbb54(0x170)+_0x5c13cb[_0x4bbb54(0x157)](encodeURIComponent,_0x378ae8)+'&projectName='+_0x5c13cb['xHyqJ'](encodeURIComponent,_0x282674),_0x4d888e=ORCHESTRATION_API_URL+'/'+FAILED_TESTS_ENDPOINT+_0x4fc6db;try{logger[_0x4bbb54(0x19a)]('['+TAG+_0x4bbb54(0x164)+_0x4d888e);let _0x5ba5e8=0x0;const _0x233575=await this['_request'](_0x5c13cb[_0x4bbb54(0x17c)],_0x4d888e);return _0x5c13cb[_0x4bbb54(0x16d)](_0x233575[_0x4bbb54(0x15c)],0xc8)&&_0x233575[_0x4bbb54(0x154)]&&_0x5c13cb[_0x4bbb54(0x198)](typeof _0x233575[_0x4bbb54(0x154)][_0x4bbb54(0x15a)],_0x5c13cb[_0x4bbb54(0x176)])&&(_0x5ba5e8=_0x5c13cb[_0x4bbb54(0x15d)](Number,_0x233575[_0x4bbb54(0x154)][_0x4bbb54(0x15a)])),_0x5ba5e8;}catch(_0x1c5a8b){logger[_0x4bbb54(0x18b)]('['+TAG+_0x4bbb54(0x195)+_0x1c5a8b[_0x4bbb54(0x182)]+'\x20'+_0x1c5a8b['stack']);const _0x4e71d6={};_0x4e71d6[_0x4bbb54(0x182)]=_0x1c5a8b[_0x4bbb54(0x182)];const _0x409f3d={};return _0x409f3d[_0x4bbb54(0x15c)]=0x1f4,_0x409f3d['body']=_0x4e71d6,_0x409f3d;}}}function a142_0x1316(_0x27acda,_0xdca9f4){const _0x5691ec=a142_0x5691();return a142_0x1316=function(_0x131664,_0x2d1475){_0x131664=_0x131664-0x14f;let _0x233556=_0x5691ec[_0x131664];return _0x233556;},a142_0x1316(_0x27acda,_0xdca9f4);}module[a142_0x5a9697(0x194)]=RequestUtils;