browserstack-node-sdk 1.34.51 → 1.34.53

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 (137) 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/customTestRunnerTemplate.js +1 -1
  60. package/src/bin/jest/jest.setup.js +1 -1
  61. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  62. package/src/bin/jest/test-observability/helper.js +1 -1
  63. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  64. package/src/bin/jest/test-observability/test-details.js +1 -1
  65. package/src/bin/jest/test_before.setup.js +1 -1
  66. package/src/bin/launcher/launcher.js +1 -1
  67. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  68. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  69. package/src/bin/mocha/command.js +1 -1
  70. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  71. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  72. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  73. package/src/bin/mocha/test.setup.js +1 -1
  74. package/src/bin/nightwatch/command.js +1 -1
  75. package/src/bin/playwright/accessibility-helper.js +1 -1
  76. package/src/bin/playwright/command.js +1 -1
  77. package/src/bin/playwright/globalSetup.js +1 -1
  78. package/src/bin/playwright/mock-process.js +1 -1
  79. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  80. package/src/bin/playwright/patches.js +1 -1
  81. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  82. package/src/bin/playwright/reporter/reporter.js +1 -1
  83. package/src/bin/playwright/reporter/test-details.js +1 -1
  84. package/src/bin/playwright/sessionDetails.js +1 -1
  85. package/src/bin/runner.js +1 -1
  86. package/src/bin/setup.js +1 -1
  87. package/src/bin/test-runner/index.js +1 -1
  88. package/src/bin/test-runner/runTest.js +1 -1
  89. package/src/bin/test-runner/testWorker.js +1 -1
  90. package/src/bin/utils/constants.js +1 -1
  91. package/src/bin/utils/log4jsAppender.js +1 -1
  92. package/src/bin/utils/logPatcher.js +1 -1
  93. package/src/bin/utils/logReportingAPI.js +1 -1
  94. package/src/bin/vanilla-js/command.js +1 -1
  95. package/src/browserStackSdk.js +1 -1
  96. package/src/helpers/BrowserStackSetup.js +1 -1
  97. package/src/helpers/accessibility-automation/constants.js +1 -1
  98. package/src/helpers/accessibility-automation/helper.js +1 -1
  99. package/src/helpers/accessibility-automation/scripts.js +1 -1
  100. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  101. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  102. package/src/helpers/ats/constants.js +1 -1
  103. package/src/helpers/ats/helper.js +1 -1
  104. package/src/helpers/capsMapping.js +1 -1
  105. package/src/helpers/central-scanner/constants.js +1 -1
  106. package/src/helpers/central-scanner/helpers.js +1 -1
  107. package/src/helpers/globals.js +1 -1
  108. package/src/helpers/helper.js +1 -1
  109. package/src/helpers/logger.js +1 -1
  110. package/src/helpers/metadata.js +1 -1
  111. package/src/helpers/patchHelper.js +1 -1
  112. package/src/helpers/patchHelpers.js +1 -1
  113. package/src/helpers/percy/Percy.js +1 -1
  114. package/src/helpers/percy/PercyBinary.js +1 -1
  115. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  116. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  117. package/src/helpers/percy/PercySDK.js +1 -1
  118. package/src/helpers/percy/index.js +1 -1
  119. package/src/helpers/percy/utils.js +1 -1
  120. package/src/helpers/performance/constants.js +1 -1
  121. package/src/helpers/performance/performance-tester.js +1 -1
  122. package/src/helpers/processHelper.js +1 -1
  123. package/src/helpers/request-spy.js +1 -1
  124. package/src/helpers/setKeepAlive.js +1 -1
  125. package/src/helpers/test-observability/constants.js +1 -1
  126. package/src/helpers/test-observability/error-handler.js +1 -1
  127. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  128. package/src/helpers/test-observability/sessionHandler.js +1 -1
  129. package/src/helpers/test-observability/utils.js +1 -1
  130. package/src/helpers/testhub/constants.js +1 -1
  131. package/src/helpers/testhub/testhubHandler.js +1 -1
  132. package/src/helpers/testhub/utils.js +1 -1
  133. package/src/helpers/timeoutPromise.js +1 -1
  134. package/src/helpers/utilities.js +1 -1
  135. package/src/helpers/w3cMapping.js +1 -1
  136. package/src/hubAllocationMethods.js +1 -1
  137. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a80_0x4ff2(){const _0x23f098=['qJSHJ','jAzVn','meta','reduce','LCCyy','mark','started','qBAYt','env','../logger','juwMP','concat','</td></tr>','byIhj','KgwqY','existsSync','match','getEntries','\x20for\x20all\x20processes\x20is\x20','_observer','unlinkSync','readFile','toString','end','639684hZlZrv','observe','NUsFa','name','cwMxw','toJSON','rCeYw','fHPQA','NyzDL','2656093IWmmBW','readdirSync','Error\x20while\x20removing\x20files:\x20','start','wEzHh','hrQUP','winstonLogger','wPtzi','details','success','zskXt','JWRtU','log','catch','then','jsonReportDirPath','getPerformance','map','splice','disconnect','milFh','LUrYz','worker','entries','apply','entryTypes','stack','</td><td>','12278uKjVEh','measures','all','debug','WrSYs','.json','yKRsD','../processHelper','errorReportDirName','<h1>Performance\x20Report</h1>','format','eventsMap','finalizeErrors','59HosgeI','utf-8','stopAndGenerate','48wIDYoE','NmarB','exports','length','getCleanedPerfEvents','pushPerfMeasures','errorReportFileName','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','measure','mkdirSync','16dmRUSB','generateHTMLReport','calculateTimesFromMultipleFiles','5SsMxHN','cwd','sCFgv','getEventsFromJSON','Error\x20stopping\x20monitoring\x20','EVLpS','perf_hooks','assign','forEach','function','platform','Performance\x20report\x20is\x20at\x20','ldldR','pushErrors','AyTzK','gZMPh','performance-own.html','541962PqrKja','jsonReportDirName','986352xplPFp','1220317NoZGcc','hwDnq','MqKhO','_errorEvents','jsonReportFileName','shbqQ','readdir','duration','browserStackCwd','calculateTimeFromEvents','tjWsc','util','isEnabled','_events','blQtK','push','Error\x20in\x20writing\x20html\x20','errors','errorFile','generateJSON','code','index','finalizePerfMeasures','writeFileSync','_measureEvents','OGYve','entryType','50LZrLiH','stopMonitoring','stringify','captureError','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','__platformCaps','GzwfN','buffered','/performance-report-','parse','slice','resolve','</tbody></table></body></html>','error-report','readFileSync','kPrkg','-start','wpxPN','PfETF','QYwWj','/error-report-','1518642wsRtNQ','join','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','path','finalize','appendFileSync','<tr><td>'];a80_0x4ff2=function(){return _0x23f098;};return a80_0x4ff2();}const a80_0x58dcc7=a80_0x12e1;(function(_0x712a37,_0x493a7b){const _0xe50c0e=a80_0x12e1,_0xdad4dc=_0x712a37();while(!![]){try{const _0x5960ad=-parseInt(_0xe50c0e(0x15a))/0x1*(-parseInt(_0xe50c0e(0x14d))/0x2)+parseInt(_0xe50c0e(0x17d))/0x3+-parseInt(_0xe50c0e(0x1cd))/0x4*(-parseInt(_0xe50c0e(0x16a))/0x5)+parseInt(_0xe50c0e(0x1ae))/0x6+-parseInt(_0xe50c0e(0x17e))/0x7*(-parseInt(_0xe50c0e(0x167))/0x8)+parseInt(_0xe50c0e(0x17b))/0x9*(-parseInt(_0xe50c0e(0x199))/0xa)+parseInt(_0xe50c0e(0x1d6))/0xb*(-parseInt(_0xe50c0e(0x15d))/0xc);if(_0x5960ad===_0x493a7b)break;else _0xdad4dc['push'](_0xdad4dc['shift']());}catch(_0x585096){_0xdad4dc['push'](_0xdad4dc['shift']());}}}(a80_0x4ff2,0x2d585));function a80_0x12e1(_0x339acd,_0xa9d35){const _0x4ff269=a80_0x4ff2();return a80_0x12e1=function(_0x12e16d,_0x864d99){_0x12e16d=_0x12e16d-0x144;let _0x4e0737=_0x4ff269[_0x12e16d];return _0x4e0737;},a80_0x12e1(_0x339acd,_0xa9d35);}const fs=require('fs'),fsPromise=require('fs/promises'),{performance,PerformanceObserver}=require(a80_0x58dcc7(0x170)),path=require(a80_0x58dcc7(0x1b1)),util=require(a80_0x58dcc7(0x189)),logger=require(a80_0x58dcc7(0x1be))[a80_0x58dcc7(0x1dc)],{getProcessId,sleep,debug,getTestName}=require(a80_0x58dcc7(0x154));class PerformanceTester{static [a80_0x58dcc7(0x1c8)];static [a80_0x58dcc7(0x18b)]=[];static [a80_0x58dcc7(0x196)]=[];static ['_errorEvents']=[];static [a80_0x58dcc7(0x1bb)]=![];static ['jsonReportDirName']='performance-report';static [a80_0x58dcc7(0x1e5)]=process[a80_0x58dcc7(0x1bd)][a80_0x58dcc7(0x186)]?path[a80_0x58dcc7(0x1af)](process[a80_0x58dcc7(0x1bd)][a80_0x58dcc7(0x186)],this[a80_0x58dcc7(0x17c)]):path[a80_0x58dcc7(0x1af)](process['cwd'](),a80_0x58dcc7(0x1e2),this[a80_0x58dcc7(0x17c)]);static [a80_0x58dcc7(0x155)]=process[a80_0x58dcc7(0x1bd)][a80_0x58dcc7(0x186)]?path['join'](process[a80_0x58dcc7(0x1bd)][a80_0x58dcc7(0x186)],a80_0x58dcc7(0x1a6)):path[a80_0x58dcc7(0x1af)](process['cwd'](),'error-report');static [a80_0x58dcc7(0x182)]=this[a80_0x58dcc7(0x1e5)]+a80_0x58dcc7(0x1a1)+getProcessId()+a80_0x58dcc7(0x152);static [a80_0x58dcc7(0x163)]=this[a80_0x58dcc7(0x155)]+a80_0x58dcc7(0x1ad)+getProcessId()+a80_0x58dcc7(0x152);static [a80_0x58dcc7(0x1de)]={};static ['eventsMap']={};static['startMonitoring'](_0x1ba5d8=this['jsonReportDirPath']+a80_0x58dcc7(0x1a1)+getProcessId()+a80_0x58dcc7(0x152),_0x39850b=this[a80_0x58dcc7(0x155)]+a80_0x58dcc7(0x1ad)+getProcessId()+a80_0x58dcc7(0x152)){const _0x39eead=a80_0x58dcc7,_0x25d2ac={};_0x25d2ac[_0x39eead(0x1aa)]=function(_0x326666,_0x777ed7){return _0x326666===_0x777ed7;},_0x25d2ac['NUsFa']=_0x39eead(0x165),_0x25d2ac[_0x39eead(0x178)]=function(_0x1274d2,_0x14333d){return _0x1274d2+_0x14333d;},_0x25d2ac['gfXXt']=_0x39eead(0x19d),_0x25d2ac[_0x39eead(0x1d4)]=_0x39eead(0x173);const _0x4e5c6f=_0x25d2ac;try{!fs[_0x39eead(0x1c4)](this['jsonReportDirPath'])&&fs[_0x39eead(0x166)](this['jsonReportDirPath']);}catch(_0x92c161){logger[_0x39eead(0x150)](_0x4e5c6f[_0x39eead(0x178)](_0x4e5c6f['gfXXt'],_0x92c161));}if(this[_0x39eead(0x1bb)]||!this[_0x39eead(0x18a)]())return;this[_0x39eead(0x1c8)]=new PerformanceObserver(_0x2f8363=>{const _0x1e73c1=_0x39eead,_0x54fc16={'kPrkg':function(_0x30206e,_0x1fc17c){return _0x4e5c6f['wpxPN'](_0x30206e,_0x1fc17c);},'cwMxw':_0x4e5c6f[_0x1e73c1(0x1cf)]};_0x2f8363[_0x1e73c1(0x1c6)]()[_0x1e73c1(0x172)](_0xd35989=>{const _0x4e5aa0=_0x1e73c1;if(_0x54fc16[_0x4e5aa0(0x1a8)](_0xd35989[_0x4e5aa0(0x198)],_0x54fc16[_0x4e5aa0(0x1d1)])){let _0x1aec8e={};if(_0xd35989[_0x4e5aa0(0x1d2)])_0x1aec8e=_0xd35989[_0x4e5aa0(0x1d2)]();else for(const _0x3df195 in _0xd35989){_0x1aec8e[_0x3df195]=_0xd35989[_0x3df195];}this[_0x4e5aa0(0x1de)][_0xd35989['name']]&&(_0x1aec8e=Object[_0x4e5aa0(0x171)](_0x1aec8e,this[_0x4e5aa0(0x1de)][_0xd35989[_0x4e5aa0(0x1d0)]])),delete this['details'][_0xd35989[_0x4e5aa0(0x1d0)]],this[_0x4e5aa0(0x196)][_0x4e5aa0(0x18d)](_0x1aec8e);}else this[_0x4e5aa0(0x18b)]['push'](_0xd35989);});});const _0x5336ec={};_0x5336ec[_0x39eead(0x1a0)]=!![],_0x5336ec[_0x39eead(0x14a)]=[_0x4e5c6f['fHPQA'],_0x4e5c6f[_0x39eead(0x1cf)]],this[_0x39eead(0x1c8)][_0x39eead(0x1ce)](_0x5336ec),this[_0x39eead(0x1bb)]=!![],this['jsonReportFileName']=_0x1ba5d8,this['errorReportFileName']=_0x39850b;}static[a80_0x58dcc7(0x1e6)](){return performance;}static[a80_0x58dcc7(0x187)](_0x382b8b,_0x434a05){const _0x5da2cb=a80_0x58dcc7,_0x207099={};_0x207099[_0x5da2cb(0x180)]=function(_0x44a474,_0x2a521a){return _0x44a474+_0x2a521a;},_0x207099[_0x5da2cb(0x15e)]=function(_0x3ea798,_0x3e6400){return _0x3ea798||_0x3e6400;},_0x207099[_0x5da2cb(0x19f)]=function(_0x2ad3df,_0x362b86){return _0x2ad3df===_0x362b86;};const _0x8bb0e9=_0x207099,_0x93cf99={};if(!_0x382b8b||_0x8bb0e9['GzwfN'](_0x382b8b['length'],0x0))return;_0x382b8b[_0x5da2cb(0x1e7)](_0x3ccde9=>{const _0x11a160=_0x5da2cb;!_0x93cf99[_0x3ccde9['name']]&&(_0x93cf99[_0x3ccde9[_0x11a160(0x1d0)]]=0x0),_0x93cf99[_0x3ccde9[_0x11a160(0x1d0)]]+=_0x3ccde9['duration'];});const _0x406b30=_0x434a05[_0x5da2cb(0x1b8)]((_0x232953,_0x349639)=>{const _0x2e0a66=_0x5da2cb;return _0x8bb0e9[_0x2e0a66(0x180)](_0x93cf99[_0x349639],_0x8bb0e9['NmarB'](_0x232953,0x0));},0x0);return _0x406b30;}static async[a80_0x58dcc7(0x169)](_0x4d8e47,_0x6031d){const _0x25dac8=a80_0x58dcc7,_0x4a7ed5={'yKRsD':function(_0xa40384,_0x47d49d){return _0xa40384+_0x47d49d;},'NhStS':function(_0x196c9a,_0x25eadb){return _0x196c9a||_0x25eadb;},'juwMP':function(_0x24bdef,_0x196090){return _0x24bdef===_0x196090;},'hrQUP':function(_0x488e37,_0x36a6f4){return _0x488e37(_0x36a6f4);}};if(!_0x4d8e47||_0x4a7ed5[_0x25dac8(0x1bf)](_0x4d8e47[_0x25dac8(0x160)],0x0))return 0x0;const _0x35bb53=[];for(const _0x3d59d7 of _0x4d8e47){const _0xc063dd=path['join']('.',_0x3d59d7);try{const _0x271ba6=this[_0x25dac8(0x16d)](_0xc063dd);_0x271ba6[_0x25dac8(0x1e7)](_0x1178e9=>{const _0x263999=_0x25dac8;!_0x35bb53[_0x1178e9[_0x263999(0x1d0)]]&&(_0x35bb53[_0x1178e9[_0x263999(0x1d0)]]=0x0),_0x35bb53[_0x1178e9[_0x263999(0x1d0)]]+=_0x1178e9[_0x263999(0x185)];});}catch(_0xa7f7fe){_0x4a7ed5[_0x25dac8(0x1db)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0xa7f7fe[_0x25dac8(0x1cb)]());}}const _0x52aded=_0x6031d[_0x25dac8(0x1b8)]((_0x8848be,_0x18e928)=>{const _0x1b1d69=_0x25dac8;return _0x4a7ed5[_0x1b1d69(0x153)](_0x35bb53[_0x18e928],_0x4a7ed5['NhStS'](_0x8848be,0x0));},0x0);return _0x4a7ed5[_0x25dac8(0x1db)](debug,'Time\x20for\x20'+_0x6031d+_0x25dac8(0x1c7)+_0x52aded),_0x52aded;}static['getEventsFromJSON'](_0x2738a3){const _0x3b2f63=a80_0x58dcc7;if(!fs['existsSync'](_0x2738a3))return[];return JSON[_0x3b2f63(0x1a2)](fs[_0x3b2f63(0x1a7)](_0x2738a3)[_0x3b2f63(0x1cb)]());}static async[a80_0x58dcc7(0x15c)](_0x38939b=a80_0x58dcc7(0x17a),_0x8ad22f=null){const _0x1e333d=a80_0x58dcc7,_0x32f1e6={'byIhj':function(_0x2f6664,_0x5318f8){return _0x2f6664(_0x5318f8);},'wPtzi':function(_0x559353,_0x5899a3){return _0x559353(_0x5899a3);}};if(!this[_0x1e333d(0x1bb)])return;await _0x32f1e6[_0x1e333d(0x1dd)](sleep,0x1e),this['_observer']['disconnect'](),this[_0x1e333d(0x1bb)]=![],this[_0x1e333d(0x191)](this[_0x1e333d(0x18b)]);const _0x14cfae=this[_0x1e333d(0x168)](this[_0x1e333d(0x18b)]),_0x20c0ad=path[_0x1e333d(0x1af)](process[_0x1e333d(0x16b)](),_0x38939b);fs['writeFile'](_0x20c0ad,_0x14cfae,_0x28e6=>{const _0x39123e=_0x1e333d;if(_0x28e6){_0x32f1e6[_0x39123e(0x1c2)](debug,_0x39123e(0x18e)+_0x28e6[_0x39123e(0x1cb)]());return;}_0x32f1e6['byIhj'](debug,_0x39123e(0x175)+_0x20c0ad);});if(_0x8ad22f)return this[_0x1e333d(0x187)](this[_0x1e333d(0x18b)],_0x8ad22f);}static[a80_0x58dcc7(0x168)](_0x571585){const _0x49b516=a80_0x58dcc7,_0x37da66={};_0x37da66[_0x49b516(0x1b6)]=_0x49b516(0x164),_0x37da66[_0x49b516(0x1e0)]=_0x49b516(0x156),_0x37da66[_0x49b516(0x1c3)]=_0x49b516(0x1b0),_0x37da66[_0x49b516(0x179)]=_0x49b516(0x1a5);const _0x29cc56=_0x37da66;let _0x5d8361=_0x29cc56[_0x49b516(0x1b6)];return _0x5d8361+=_0x29cc56[_0x49b516(0x1e0)],_0x5d8361+=_0x29cc56[_0x49b516(0x1c3)],_0x571585[_0x49b516(0x172)](_0x4c1e83=>{const _0x194318=_0x49b516;_0x5d8361+=_0x194318(0x1b4)+_0x4c1e83[_0x194318(0x1d0)]+_0x194318(0x14c)+_0x4c1e83['duration']+_0x194318(0x1c1);}),_0x5d8361+=_0x29cc56[_0x49b516(0x179)],_0x5d8361;}static[a80_0x58dcc7(0x191)](_0x353eee){const _0x20d870=a80_0x58dcc7;if(!this['jsonReportFileName'])return;const _0x297eff={};_0x353eee[_0x20d870(0x1e7)](_0x116ed2=>{const _0x5c6727=_0x20d870;!_0x297eff[_0x116ed2[_0x5c6727(0x1d0)]]&&(_0x297eff[_0x116ed2['name']]=0x0),_0x297eff[_0x116ed2[_0x5c6727(0x1d0)]]+=_0x116ed2[_0x5c6727(0x185)];});const _0x45fc82=Object[_0x20d870(0x148)](_0x297eff)['map'](([_0x151cac,_0x5a30b5])=>{const _0x45afb6={};return _0x45afb6['name']=_0x151cac,_0x45afb6['duration']=_0x5a30b5,_0x45afb6;});fs[_0x20d870(0x195)](this[_0x20d870(0x182)],JSON['stringify'](_0x45fc82));}static[a80_0x58dcc7(0x18a)](){const _0x192d32=a80_0x58dcc7,_0x3a6767={};_0x3a6767['PfETF']=function(_0x4c2a85,_0x2b0d72){return _0x4c2a85===_0x2b0d72;},_0x3a6767[_0x192d32(0x197)]='false';const _0xfa755d=_0x3a6767;return!_0xfa755d[_0x192d32(0x1ab)](process['env']['BROWSERSTACK_SDK_INSTRUMENTATION'],_0xfa755d['OGYve']);}static[a80_0x58dcc7(0x165)](_0x525a1,_0x2802a8,_0x41a3b7=null,_0x4d2084={},_0x259223=null){const _0x5cad99=a80_0x58dcc7,_0x79b2d5={'tjWsc':function(_0x275691,_0x1d696d){return _0x275691(_0x1d696d);},'LUrYz':function(_0x317dc4,_0x40da7c){return _0x317dc4(_0x40da7c);},'milFh':function(_0x10e761,_0x2de6d0){return _0x10e761 instanceof _0x2de6d0;}};try{if(this[_0x5cad99(0x1bb)]&&this[_0x5cad99(0x18a)]()){let _0xe4066=_0x525a1;_0x41a3b7&&(_0xe4066=_0x525a1+'['+JSON[_0x5cad99(0x19b)](_0x41a3b7)+']');PerformanceTester[_0x5cad99(0x1d9)](_0xe4066),this[_0x5cad99(0x1de)]&&(this['details'][_0xe4066]=_0x4d2084);try{const _0x5e0636=_0x2802a8[_0x5cad99(0x149)](null,_0x259223);if(_0x79b2d5[_0x5cad99(0x145)](_0x5e0636,Promise))return new Promise((_0xc6dca5,_0x3ce69e)=>{const _0x26494a=_0x5cad99;_0x5e0636[_0x26494a(0x1e4)](_0x3cb2c8=>{const _0xf09a8b=_0x26494a;PerformanceTester[_0xf09a8b(0x1cc)](_0xe4066),_0x79b2d5[_0xf09a8b(0x188)](_0xc6dca5,_0x3cb2c8);})[_0x26494a(0x1e3)](_0x4dcfbd=>{const _0x263142=_0x26494a;PerformanceTester[_0x263142(0x1cc)](_0xe4066,![],util[_0x263142(0x157)](_0x4dcfbd)),_0x79b2d5[_0x263142(0x146)](_0x3ce69e,_0x4dcfbd);});});;return PerformanceTester[_0x5cad99(0x1cc)](_0xe4066),_0x5e0636;}catch(_0x1c8f04){PerformanceTester['end'](_0xe4066,![],util[_0x5cad99(0x157)](_0x1c8f04));throw _0x1c8f04;}};return _0x2802a8[_0x5cad99(0x149)](null,_0x259223);}catch(_0x4107f3){return _0x2802a8['apply'](null,_0x259223);}}static['measureWrapper'](_0x42cb03,_0x148c99,_0x4bd1c1={}){const _0x7f3d37=a80_0x58dcc7,_0x620f5c={'EVLpS':function(_0x4157f9){return _0x4157f9();},'safsE':function(_0x1936cd){return _0x1936cd();}},_0x8e378c=this;return _0x4bd1c1[_0x7f3d37(0x147)]=_0x620f5c[_0x7f3d37(0x16f)](getProcessId),_0x4bd1c1['testName']=_0x620f5c['safsE'](getTestName),_0x4bd1c1[_0x7f3d37(0x174)]=global[_0x7f3d37(0x19e)]&&global['__platformCaps'][_0x7f3d37(0x193)],function(){const _0x41849f=_0x7f3d37,_0x2779ee=[_0x42cb03,_0x148c99,null,_0x4bd1c1]['concat'](arguments);return _0x8e378c[_0x41849f(0x165)][_0x41849f(0x149)](_0x8e378c,_0x2779ee);};}static[a80_0x58dcc7(0x161)](){const _0x17eefc=a80_0x58dcc7,_0x2f5d2a=/(^.*)\[(.*)\]$/,_0x485dd8={},_0x23ee94={},_0x471efc=[],_0x31332c=this[_0x17eefc(0x196)][_0x17eefc(0x1e8)](0x0,this[_0x17eefc(0x196)]['length']);for(const _0x1296ec of _0x31332c){const _0x2aea6f=_0x1296ec[_0x17eefc(0x1d0)][_0x17eefc(0x1c5)](_0x2f5d2a),_0x113dd5=Object['assign']({},_0x1296ec);_0x2aea6f&&(_0x113dd5[_0x17eefc(0x1d0)]=_0x2aea6f[0x1],_0x113dd5[_0x17eefc(0x1b7)]=JSON[_0x17eefc(0x1a2)](_0x2aea6f[0x2])),_0x471efc[_0x17eefc(0x18d)](_0x113dd5);}return _0x471efc;}static[a80_0x58dcc7(0x162)](){const _0x3e0e83=a80_0x58dcc7,_0x4d5532={};_0x4d5532[_0x3e0e83(0x1ac)]=function(_0x4d366e,_0x5e5800){return _0x4d366e+_0x5e5800;},_0x4d5532['JWRtU']=_0x3e0e83(0x1d8),_0x4d5532[_0x3e0e83(0x176)]=function(_0x1583f6,_0x4e410c){return _0x1583f6===_0x4e410c;};const _0x4f6042=_0x4d5532;try{if(fs[_0x3e0e83(0x1c4)](this[_0x3e0e83(0x1e5)])){const _0x4857ba=fs[_0x3e0e83(0x1d7)](this[_0x3e0e83(0x1e5)]);for(const _0x305281 of _0x4857ba){fs['unlinkSync'](path[_0x3e0e83(0x1af)](this['jsonReportDirPath'],_0x305281));}}}catch(_0x195337){logger[_0x3e0e83(0x150)](_0x4f6042[_0x3e0e83(0x1ac)](_0x4f6042[_0x3e0e83(0x1e1)],_0x195337));}if(_0x4f6042[_0x3e0e83(0x176)](this[_0x3e0e83(0x196)][_0x3e0e83(0x160)],0x0))return;const _0x447224=this[_0x3e0e83(0x161)](),_0x1673f6=JSON[_0x3e0e83(0x19b)](_0x447224),_0x195ee6=_0x4f6042['QYwWj'](_0x1673f6[_0x3e0e83(0x1a3)](0x1,-0x1),',');fs[_0x3e0e83(0x1b3)](this[_0x3e0e83(0x182)],_0x195ee6);}static async[a80_0x58dcc7(0x194)](){const _0x47725e=a80_0x58dcc7,_0x4e50a1={};_0x4e50a1['rCeYw']=function(_0x196de8,_0x1b8efc){return _0x196de8===_0x1b8efc;},_0x4e50a1[_0x47725e(0x1b9)]=function(_0x55f379,_0x5e2268){return _0x55f379>_0x5e2268;};const _0x13a6d5=_0x4e50a1;if(!this[_0x47725e(0x1bb)]||_0x13a6d5[_0x47725e(0x1d3)](this[_0x47725e(0x196)][_0x47725e(0x160)],0x0))return[];if(!fs[_0x47725e(0x1c4)](this['jsonReportDirPath']))return this[_0x47725e(0x196)];const _0x1c5c3f=(await fsPromise[_0x47725e(0x184)](this[_0x47725e(0x1e5)]))['map'](_0x4a5691=>path[_0x47725e(0x1a4)](this[_0x47725e(0x1e5)],_0x4a5691));let _0x31ef6e=(await Promise[_0x47725e(0x14f)](_0x1c5c3f[_0x47725e(0x1e7)](_0x25dfde=>fsPromise[_0x47725e(0x1ca)](_0x25dfde,_0x47725e(0x15b)))))['map'](_0x3e8b5a=>'['+_0x3e8b5a['slice'](0x0,-0x1)+']')[_0x47725e(0x1e7)](_0x5efe7=>JSON[_0x47725e(0x1a2)](_0x5efe7))['flat']();return _0x13a6d5[_0x47725e(0x1b9)](this[_0x47725e(0x196)][_0x47725e(0x160)],0x0)&&(_0x31ef6e=_0x31ef6e[_0x47725e(0x1c0)](this[_0x47725e(0x161)]())),this[_0x47725e(0x1c8)][_0x47725e(0x144)](),_0x31ef6e;}static[a80_0x58dcc7(0x177)](){const _0x11789f=a80_0x58dcc7,_0x525f11={};_0x525f11['blQtK']=function(_0x52fdaf,_0x1129dd){return _0x52fdaf===_0x1129dd;},_0x525f11['BRThz']=function(_0x31f28,_0x54e1cb){return _0x31f28+_0x54e1cb;};const _0x1ae214=_0x525f11;if(_0x1ae214[_0x11789f(0x18c)](this[_0x11789f(0x181)][_0x11789f(0x160)],0x0))return;const _0x494a86=JSON[_0x11789f(0x19b)](this[_0x11789f(0x181)]),_0x2163e0=_0x1ae214['BRThz'](_0x494a86[_0x11789f(0x1a3)](0x1,-0x1),',');fs[_0x11789f(0x1b3)](this[_0x11789f(0x190)],_0x2163e0);}static['finalizeErrors'](){const _0x57a191=a80_0x58dcc7,_0x353842={};_0x353842[_0x57a191(0x183)]=function(_0x32da84,_0x129078){return _0x32da84>_0x129078;};const _0x559542=_0x353842;if(!fs[_0x57a191(0x1c4)](this['errorReportFileName']))return this[_0x57a191(0x181)];let _0x30dd46=fs[_0x57a191(0x1a7)](this[_0x57a191(0x163)])['toString']();_0x30dd46='['+_0x30dd46[_0x57a191(0x1a3)](0x0,-0x1)+']';let _0x39c77e=JSON[_0x57a191(0x1a2)](_0x30dd46);return _0x559542[_0x57a191(0x183)](this[_0x57a191(0x181)]['length'],0x0)&&(_0x39c77e=_0x39c77e['concat'](this[_0x57a191(0x181)])),fs[_0x57a191(0x1c9)](this[_0x57a191(0x163)]),_0x39c77e;}static[a80_0x58dcc7(0x19c)](_0x21bf80){const _0x24c70b=a80_0x58dcc7;if(!this[_0x24c70b(0x18a)]())return;this[_0x24c70b(0x181)][_0x24c70b(0x18d)]({'message':_0x21bf80['message'],'trace':_0x21bf80[_0x24c70b(0x14b)],'code':_0x21bf80[_0x24c70b(0x192)]||null,'time':new Date()});}static[a80_0x58dcc7(0x19a)](){const _0x1752e4=a80_0x58dcc7;try{if(!this[_0x1752e4(0x18a)]())return;this[_0x1752e4(0x1c8)]['disconnect'](),this[_0x1752e4(0x162)](),this[_0x1752e4(0x177)]();}catch(_0x40ae48){logger[_0x1752e4(0x150)](_0x1752e4(0x16e)+util[_0x1752e4(0x157)](_0x40ae48));}}static async[a80_0x58dcc7(0x1b2)](){const _0x32cfae=a80_0x58dcc7,_0x258636={'lJoLm':function(_0x54c5b7,_0x334bd9){return _0x54c5b7(_0x334bd9);}};await _0x258636['lJoLm'](sleep,0x1e);const _0x23f529=await this['finalizePerfMeasures'](),_0x19b3e8=this[_0x32cfae(0x159)]();if(!this[_0x32cfae(0x18a)]()){const _0x4182e6={};return _0x4182e6[_0x32cfae(0x14e)]=[],_0x4182e6[_0x32cfae(0x18f)]=[],_0x4182e6;}const _0x2eaffd={};return _0x2eaffd['measures']=_0x23f529,_0x2eaffd['errors']=_0x19b3e8,_0x2eaffd;}static[a80_0x58dcc7(0x1d9)](_0x45174e){const _0x3d56c0=a80_0x58dcc7,_0x37bbd6={};_0x37bbd6['NyzDL']=function(_0x1a4d70,_0x3071e9){return _0x1a4d70+_0x3071e9;},_0x37bbd6[_0x3d56c0(0x1b5)]='-start';const _0x1a5a19=_0x37bbd6,_0x4b8f37=_0x1a5a19[_0x3d56c0(0x1d5)](_0x45174e,_0x1a5a19[_0x3d56c0(0x1b5)]);if(this[_0x3d56c0(0x158)][_0x4b8f37])return;performance['mark'](_0x4b8f37),this[_0x3d56c0(0x158)][_0x4b8f37]=0x1;}static[a80_0x58dcc7(0x1cc)](_0x15dbfa,_0x2a2451=!![],_0x3a61ba=null,_0x17d070={}){const _0x17dce7=a80_0x58dcc7,_0x3d806f={'WrSYs':function(_0x3da409,_0x2a5ab8){return _0x3da409+_0x2a5ab8;},'sCFgv':'-end','qBAYt':function(_0x1b54d7,_0x159807){return _0x1b54d7+_0x159807;},'RYPGS':_0x17dce7(0x1a9),'wEzHh':function(_0x368160,_0x2acbe5){return _0x368160+_0x2acbe5;},'hwDnq':function(_0x27c509){return _0x27c509();}};performance[_0x17dce7(0x1ba)](_0x3d806f[_0x17dce7(0x151)](_0x15dbfa,_0x3d806f[_0x17dce7(0x16c)])),performance['measure'](_0x15dbfa,_0x3d806f[_0x17dce7(0x1bc)](_0x15dbfa,_0x3d806f['RYPGS']),_0x3d806f[_0x17dce7(0x1da)](_0x15dbfa,_0x3d806f[_0x17dce7(0x16c)]));const _0x238909={};_0x238909[_0x17dce7(0x1df)]=_0x2a2451,_0x238909['failure']=_0x3a61ba,this[_0x17dce7(0x1de)][_0x15dbfa]=Object[_0x17dce7(0x171)](_0x238909,Object[_0x17dce7(0x171)](Object[_0x17dce7(0x171)]({'worker':_0x3d806f[_0x17dce7(0x17f)](getProcessId),'platform':global[_0x17dce7(0x19e)]&&global[_0x17dce7(0x19e)][_0x17dce7(0x193)],'testName':_0x3d806f[_0x17dce7(0x17f)](getTestName)},_0x17d070),this[_0x17dce7(0x1de)][_0x15dbfa]||{}));}}module[a80_0x58dcc7(0x15f)]=PerformanceTester;
1
+ const a80_0x42ebb2=a80_0x3555;(function(_0x5b9f70,_0x3389f0){const _0x4d9081=a80_0x3555,_0xd14228=_0x5b9f70();while(!![]){try{const _0xfa43a8=-parseInt(_0x4d9081(0x1c2))/0x1*(parseInt(_0x4d9081(0x228))/0x2)+-parseInt(_0x4d9081(0x24f))/0x3*(-parseInt(_0x4d9081(0x1c7))/0x4)+-parseInt(_0x4d9081(0x1e7))/0x5*(parseInt(_0x4d9081(0x261))/0x6)+parseInt(_0x4d9081(0x23e))/0x7+parseInt(_0x4d9081(0x206))/0x8*(parseInt(_0x4d9081(0x214))/0x9)+parseInt(_0x4d9081(0x1e4))/0xa*(parseInt(_0x4d9081(0x266))/0xb)+-parseInt(_0x4d9081(0x224))/0xc;if(_0xfa43a8===_0x3389f0)break;else _0xd14228['push'](_0xd14228['shift']());}catch(_0x2fd0c5){_0xd14228['push'](_0xd14228['shift']());}}}(a80_0x5ebf,0x9d126));function a80_0x3555(_0x26ee1f,_0x319032){const _0x5ebf2b=a80_0x5ebf();return a80_0x3555=function(_0x3555a1,_0x70a8ea){_0x3555a1=_0x3555a1-0x1c2;let _0x489377=_0x5ebf2b[_0x3555a1];return _0x489377;},a80_0x3555(_0x26ee1f,_0x319032);}const fs=require('fs'),fsPromise=require(a80_0x42ebb2(0x230)),{performance,PerformanceObserver}=require(a80_0x42ebb2(0x219)),path=require('path'),util=require(a80_0x42ebb2(0x1db)),logger=require(a80_0x42ebb2(0x24b))['winstonLogger'],{getProcessId,sleep,debug,getTestName}=require(a80_0x42ebb2(0x257));function a80_0x5ebf(){const _0x24ee01=['push','mark','false','SwUnf','eventsMap','catch','start','BROWSERSTACK_SDK_INSTRUMENTATION','getCleanedPerfEvents','readFile','qIolt','entries','8DGppaG','</td><td>','</td></tr>','measure','browserStackCwd','Performance\x20report\x20is\x20at\x20','_observer','performance-report','concat','pushErrors','/performance-report-','JmCaU','duration','failure','3981915VvSlXC','AqtTT','Error\x20while\x20removing\x20files:\x20','_events','reduce','perf_hooks','debug','length','error-report','getEventsFromJSON','errorReportDirName','pQLXG','wplHV','finalizeErrors','Error\x20in\x20doing\x20csv\x20operations:\x20','end','360468mOAIch','mkdirSync','captureError','started','1128488ibwURL','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','apply','hMkBR','jsonReportDirName','_errorEvents','toJSON','stopMonitoring','fs/promises','vMFzo','-end','generateHTMLReport','yZKvK','zUBJy','stringify','ZxJGl','flat','ethMN','finalize','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','parse','grZAS','7741153vHvaaK','getPerformance','unlinkSync','nFQup','calculateTimesFromMultipleFiles','cwd','YPxYQ','Error\x20in\x20writing\x20html\x20','exports','success','UdEix','entryTypes','function','../logger','isEnabled','eGgfK','performance-own.html','1227KpjmNZ','writeFile','log','platform','KGonl','index','FfCWS','aYYbw','../processHelper','splice','toString','-start','ArDFp','meta','slice','.json','errors','egRXZ','273570WJHdKs','errorFile','/error-report-','testName','wLRID','11xfFivO','OSZUK','dqHMZ','2VrGjOx','ZPpXV','wUwvp','finalizePerfMeasures','MgRcz','4968OLCSis','jUKvR','</tbody></table></body></html>','stopAndGenerate','generateJSON','disconnect','startMonitoring','jsonReportFileName','name','xfrIY','readFileSync','ZklpM','QRObA','<tr><td>','all','existsSync','pushPerfMeasures','worker','_measureEvents','Time\x20for\x20','util','OYtuS','entryType','xATtY','writeFileSync','utf-8','jsonReportDirPath','readdir','map','7486910NuzYof','readdirSync','join','110uOfjSh','assign','env','message','forEach','\x20for\x20all\x20processes\x20is\x20','RnbEY','details','mJCUZ','code','VIwQu','appendFileSync','xGcxm','errorReportFileName','format','__platformCaps','fQNeU','calculateTimeFromEvents','fAIQM'];a80_0x5ebf=function(){return _0x24ee01;};return a80_0x5ebf();}class PerformanceTester{static [a80_0x42ebb2(0x20c)];static ['_events']=[];static [a80_0x42ebb2(0x1d9)]=[];static ['_errorEvents']=[];static [a80_0x42ebb2(0x227)]=![];static ['jsonReportDirName']=a80_0x42ebb2(0x20d);static [a80_0x42ebb2(0x1e1)]=process[a80_0x42ebb2(0x1e9)][a80_0x42ebb2(0x20a)]?path['join'](process['env']['browserStackCwd'],this[a80_0x42ebb2(0x22c)]):path['join'](process[a80_0x42ebb2(0x243)](),a80_0x42ebb2(0x251),this['jsonReportDirName']);static ['errorReportDirName']=process[a80_0x42ebb2(0x1e9)]['browserStackCwd']?path[a80_0x42ebb2(0x1e6)](process['env'][a80_0x42ebb2(0x20a)],a80_0x42ebb2(0x21c)):path[a80_0x42ebb2(0x1e6)](process[a80_0x42ebb2(0x243)](),a80_0x42ebb2(0x21c));static [a80_0x42ebb2(0x1ce)]=this[a80_0x42ebb2(0x1e1)]+a80_0x42ebb2(0x210)+getProcessId()+a80_0x42ebb2(0x25e);static [a80_0x42ebb2(0x1f4)]=this[a80_0x42ebb2(0x21e)]+a80_0x42ebb2(0x263)+getProcessId()+a80_0x42ebb2(0x25e);static [a80_0x42ebb2(0x1ee)]={};static [a80_0x42ebb2(0x1fe)]={};static[a80_0x42ebb2(0x1cd)](_0x12030a=this[a80_0x42ebb2(0x1e1)]+a80_0x42ebb2(0x210)+getProcessId()+a80_0x42ebb2(0x25e),_0x2fb44f=this[a80_0x42ebb2(0x21e)]+a80_0x42ebb2(0x263)+getProcessId()+a80_0x42ebb2(0x25e)){const _0x5b768f=a80_0x42ebb2,_0x1ae113={};_0x1ae113['wLRID']=function(_0x29da52,_0x1b9eff){return _0x29da52===_0x1b9eff;},_0x1ae113[_0x5b768f(0x248)]=_0x5b768f(0x209),_0x1ae113[_0x5b768f(0x1d2)]=function(_0xc5f677,_0x398f73){return _0xc5f677+_0x398f73;},_0x1ae113[_0x5b768f(0x1fd)]='Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20',_0x1ae113['BasgL']=_0x5b768f(0x24a);const _0x1919fa=_0x1ae113;try{!fs[_0x5b768f(0x1d6)](this['jsonReportDirPath'])&&fs[_0x5b768f(0x225)](this[_0x5b768f(0x1e1)]);}catch(_0x2c1256){logger[_0x5b768f(0x21a)](_0x1919fa[_0x5b768f(0x1d2)](_0x1919fa[_0x5b768f(0x1fd)],_0x2c1256));}if(this[_0x5b768f(0x227)]||!this['isEnabled']())return;this[_0x5b768f(0x20c)]=new PerformanceObserver(_0xf9bdf3=>{const _0x2d3c73=_0x5b768f,_0x52bd12={'sLfjN':function(_0x520713,_0x47eb46){const _0x209866=a80_0x3555;return _0x1919fa[_0x209866(0x265)](_0x520713,_0x47eb46);},'wplHV':_0x1919fa[_0x2d3c73(0x248)]};_0xf9bdf3['getEntries']()[_0x2d3c73(0x1eb)](_0x3fdf3e=>{const _0x25bc00=_0x2d3c73;if(_0x52bd12['sLfjN'](_0x3fdf3e[_0x25bc00(0x1dd)],_0x52bd12[_0x25bc00(0x220)])){let _0x4906c6={};if(_0x3fdf3e['toJSON'])_0x4906c6=_0x3fdf3e[_0x25bc00(0x22e)]();else for(const _0x4afd76 in _0x3fdf3e){_0x4906c6[_0x4afd76]=_0x3fdf3e[_0x4afd76];}this['details'][_0x3fdf3e[_0x25bc00(0x1cf)]]&&(_0x4906c6=Object[_0x25bc00(0x1e8)](_0x4906c6,this[_0x25bc00(0x1ee)][_0x3fdf3e['name']])),delete this[_0x25bc00(0x1ee)][_0x3fdf3e[_0x25bc00(0x1cf)]],this[_0x25bc00(0x1d9)][_0x25bc00(0x1fa)](_0x4906c6);}else this['_events'][_0x25bc00(0x1fa)](_0x3fdf3e);});});const _0xeb3003={};_0xeb3003['buffered']=!![],_0xeb3003[_0x5b768f(0x249)]=[_0x1919fa['BasgL'],_0x1919fa[_0x5b768f(0x248)]],this['_observer']['observe'](_0xeb3003),this[_0x5b768f(0x227)]=!![],this[_0x5b768f(0x1ce)]=_0x12030a,this[_0x5b768f(0x1f4)]=_0x2fb44f;}static[a80_0x42ebb2(0x23f)](){return performance;}static[a80_0x42ebb2(0x1f8)](_0x8d86f0,_0x4d0223){const _0x584760=a80_0x42ebb2,_0x56f96e={};_0x56f96e[_0x584760(0x260)]=function(_0x3fd9dc,_0x828bb0){return _0x3fd9dc+_0x828bb0;},_0x56f96e[_0x584760(0x1ef)]=function(_0x4e951a,_0x256aa1){return _0x4e951a||_0x256aa1;},_0x56f96e[_0x584760(0x21f)]=function(_0x368d17,_0x15eb4a){return _0x368d17===_0x15eb4a;};const _0x28501e=_0x56f96e,_0x5b03ed={};if(!_0x8d86f0||_0x28501e[_0x584760(0x21f)](_0x8d86f0[_0x584760(0x21b)],0x0))return;_0x8d86f0['map'](_0x255d7e=>{const _0x477aaa=_0x584760;!_0x5b03ed[_0x255d7e[_0x477aaa(0x1cf)]]&&(_0x5b03ed[_0x255d7e[_0x477aaa(0x1cf)]]=0x0),_0x5b03ed[_0x255d7e[_0x477aaa(0x1cf)]]+=_0x255d7e[_0x477aaa(0x212)];});const _0x12c897=_0x4d0223[_0x584760(0x218)]((_0x9a068b,_0x4356d6)=>{const _0x18224e=_0x584760;return _0x28501e[_0x18224e(0x260)](_0x5b03ed[_0x4356d6],_0x28501e[_0x18224e(0x1ef)](_0x9a068b,0x0));},0x0);return _0x12c897;}static async[a80_0x42ebb2(0x242)](_0x4d42b8,_0x266d06){const _0x3bcd29=a80_0x42ebb2,_0x4b78ca={'AqtTT':function(_0x473fcd,_0x3f842f){return _0x473fcd+_0x3f842f;},'PbPsi':function(_0x29595b,_0x384f5c){return _0x29595b||_0x384f5c;},'YdeDp':function(_0x55104f,_0x1d0212){return _0x55104f===_0x1d0212;},'FfCWS':function(_0x20c309,_0x3b786f){return _0x20c309(_0x3b786f);},'yZKvK':function(_0x50169d,_0x59fcc5){return _0x50169d(_0x59fcc5);}};if(!_0x4d42b8||_0x4b78ca['YdeDp'](_0x4d42b8[_0x3bcd29(0x21b)],0x0))return 0x0;const _0x270b0a=[];for(const _0x165f05 of _0x4d42b8){const _0x36d560=path[_0x3bcd29(0x1e6)]('.',_0x165f05);try{const _0x368904=this[_0x3bcd29(0x21d)](_0x36d560);_0x368904[_0x3bcd29(0x1e3)](_0x79a0b4=>{const _0x2d0158=_0x3bcd29;!_0x270b0a[_0x79a0b4[_0x2d0158(0x1cf)]]&&(_0x270b0a[_0x79a0b4[_0x2d0158(0x1cf)]]=0x0),_0x270b0a[_0x79a0b4['name']]+=_0x79a0b4[_0x2d0158(0x212)];});}catch(_0x552f98){_0x4b78ca[_0x3bcd29(0x255)](debug,_0x3bcd29(0x222)+_0x552f98[_0x3bcd29(0x259)]());}}const _0x3bae0d=_0x266d06[_0x3bcd29(0x218)]((_0x491289,_0x5b5a22)=>{const _0xaa36be=_0x3bcd29;return _0x4b78ca[_0xaa36be(0x215)](_0x270b0a[_0x5b5a22],_0x4b78ca['PbPsi'](_0x491289,0x0));},0x0);return _0x4b78ca[_0x3bcd29(0x234)](debug,_0x3bcd29(0x1da)+_0x266d06+_0x3bcd29(0x1ec)+_0x3bae0d),_0x3bae0d;}static['getEventsFromJSON'](_0x1b4518){const _0x5eca6a=a80_0x42ebb2;if(_0x1b4518){if(!fs[_0x5eca6a(0x1d6)](_0x1b4518))return[];return JSON[_0x5eca6a(0x23c)](fs[_0x5eca6a(0x1d1)](_0x1b4518)['toString']());}}static async[a80_0x42ebb2(0x1ca)](_0x357b82=a80_0x42ebb2(0x24e),_0x2686fa=null){const _0x352c7c=a80_0x42ebb2,_0x4fc1f7={'YPxYQ':function(_0x373998,_0x205e21){return _0x373998(_0x205e21);},'Exhlt':function(_0x22f64b,_0x3e27cd){return _0x22f64b(_0x3e27cd);}};if(!this['started'])return;await _0x4fc1f7['YPxYQ'](sleep,0x1e),this['_observer'][_0x352c7c(0x1cc)](),this[_0x352c7c(0x227)]=![],this[_0x352c7c(0x1cb)](this[_0x352c7c(0x217)]);const _0x4fd5ef=this[_0x352c7c(0x233)](this[_0x352c7c(0x217)]),_0x5c40a9=path[_0x352c7c(0x1e6)](process['cwd'](),_0x357b82);fs[_0x352c7c(0x250)](_0x5c40a9,_0x4fd5ef,_0x2ef8ea=>{const _0x34cbf6=_0x352c7c;if(_0x2ef8ea){_0x4fc1f7[_0x34cbf6(0x244)](debug,_0x34cbf6(0x245)+_0x2ef8ea[_0x34cbf6(0x259)]());return;}_0x4fc1f7['Exhlt'](debug,_0x34cbf6(0x20b)+_0x5c40a9);});if(_0x2686fa)return this['calculateTimeFromEvents'](this[_0x352c7c(0x217)],_0x2686fa);}static[a80_0x42ebb2(0x233)](_0x365524){const _0x25dc23=a80_0x42ebb2,_0x14e17a={};_0x14e17a['MgRcz']=_0x25dc23(0x229),_0x14e17a[_0x25dc23(0x235)]='<h1>Performance\x20Report</h1>',_0x14e17a[_0x25dc23(0x231)]=_0x25dc23(0x23b),_0x14e17a[_0x25dc23(0x268)]=_0x25dc23(0x1c9);const _0x442fab=_0x14e17a;let _0x11db0a=_0x442fab[_0x25dc23(0x1c6)];return _0x11db0a+=_0x442fab[_0x25dc23(0x235)],_0x11db0a+=_0x442fab[_0x25dc23(0x231)],_0x365524[_0x25dc23(0x1eb)](_0x29d5cd=>{const _0x1b1135=_0x25dc23;_0x11db0a+=_0x1b1135(0x1d4)+_0x29d5cd[_0x1b1135(0x1cf)]+_0x1b1135(0x207)+_0x29d5cd[_0x1b1135(0x212)]+_0x1b1135(0x208);}),_0x11db0a+=_0x442fab[_0x25dc23(0x268)],_0x11db0a;}static[a80_0x42ebb2(0x1cb)](_0x45c3f1){const _0x3f57e5=a80_0x42ebb2;if(!this[_0x3f57e5(0x1ce)])return;const _0x58c64d={};_0x45c3f1[_0x3f57e5(0x1e3)](_0x46b734=>{const _0x27e2ab=_0x3f57e5;!_0x58c64d[_0x46b734[_0x27e2ab(0x1cf)]]&&(_0x58c64d[_0x46b734[_0x27e2ab(0x1cf)]]=0x0),_0x58c64d[_0x46b734[_0x27e2ab(0x1cf)]]+=_0x46b734[_0x27e2ab(0x212)];});const _0x5e1c16=Object[_0x3f57e5(0x205)](_0x58c64d)[_0x3f57e5(0x1e3)](([_0x31ec0e,_0x3bc851])=>{const _0x12083f={};return _0x12083f['name']=_0x31ec0e,_0x12083f['duration']=_0x3bc851,_0x12083f;});fs[_0x3f57e5(0x1df)](this['jsonReportFileName'],JSON['stringify'](_0x5e1c16));}static[a80_0x42ebb2(0x24c)](){const _0x428cb3=a80_0x42ebb2,_0x16b993={};_0x16b993[_0x428cb3(0x22b)]=function(_0x1c91f9,_0x4f18f6){return _0x1c91f9===_0x4f18f6;},_0x16b993[_0x428cb3(0x23d)]=_0x428cb3(0x1fc);const _0x34e439=_0x16b993;return!_0x34e439[_0x428cb3(0x22b)](process[_0x428cb3(0x1e9)][_0x428cb3(0x201)],_0x34e439[_0x428cb3(0x23d)]);}static[a80_0x42ebb2(0x209)](_0x4c1013,_0x2023dd,_0x37feec=null,_0x551470={},_0x3029fa=null){const _0x581d9e=a80_0x42ebb2,_0x1e112d={'ZxJGl':function(_0x1f8c75,_0x988cf4){return _0x1f8c75(_0x988cf4);},'xATtY':function(_0x4719f3,_0x54aa3d){return _0x4719f3(_0x54aa3d);},'OYtuS':function(_0x1c5aad,_0x5dde58){return _0x1c5aad instanceof _0x5dde58;}};try{if(this['started']&&this[_0x581d9e(0x24c)]()){let _0x3416d8=_0x4c1013;_0x37feec&&(_0x3416d8=_0x4c1013+'['+JSON[_0x581d9e(0x236)](_0x37feec)+']');PerformanceTester['start'](_0x3416d8),this[_0x581d9e(0x1ee)]&&(this[_0x581d9e(0x1ee)][_0x3416d8]=_0x551470);try{const _0x164723=_0x2023dd[_0x581d9e(0x22a)](null,_0x3029fa);if(_0x1e112d[_0x581d9e(0x1dc)](_0x164723,Promise))return new Promise((_0x15f531,_0x3a8a2f)=>{const _0x4bf876=_0x581d9e,_0x533aaa={'jUKvR':function(_0x573768,_0x5f3c24){const _0x34614d=a80_0x3555;return _0x1e112d[_0x34614d(0x237)](_0x573768,_0x5f3c24);},'fAIQM':function(_0x20e8ac,_0x54cfae){const _0x2f63bd=a80_0x3555;return _0x1e112d[_0x2f63bd(0x1de)](_0x20e8ac,_0x54cfae);}};_0x164723['then'](_0xb1160b=>{const _0x958174=a80_0x3555;PerformanceTester[_0x958174(0x223)](_0x3416d8),_0x533aaa[_0x958174(0x1c8)](_0x15f531,_0xb1160b);})[_0x4bf876(0x1ff)](_0x1d9137=>{const _0x5bbafd=_0x4bf876;PerformanceTester[_0x5bbafd(0x223)](_0x3416d8,![],util[_0x5bbafd(0x1f5)](_0x1d9137)),_0x533aaa[_0x5bbafd(0x1f9)](_0x3a8a2f,_0x1d9137);});});;return PerformanceTester['end'](_0x3416d8),_0x164723;}catch(_0x5b0005){PerformanceTester['end'](_0x3416d8,![],util['format'](_0x5b0005));throw _0x5b0005;}};return _0x2023dd[_0x581d9e(0x22a)](null,_0x3029fa);}catch(_0x4af522){return _0x2023dd[_0x581d9e(0x22a)](null,_0x3029fa);}}static['measureWrapper'](_0x5443e2,_0x5afd7c,_0x1fa264={}){const _0x437430=a80_0x42ebb2,_0x18e756={'ethMN':function(_0x6f48d9){return _0x6f48d9();}},_0x2cc49d=this;return _0x1fa264[_0x437430(0x1d8)]=_0x18e756[_0x437430(0x239)](getProcessId),_0x1fa264[_0x437430(0x264)]=_0x18e756[_0x437430(0x239)](getTestName),_0x1fa264[_0x437430(0x252)]=global[_0x437430(0x1f6)]&&global['__platformCaps'][_0x437430(0x254)],function(){const _0x4e2855=_0x437430,_0x1ea911=[_0x5443e2,_0x5afd7c,null,_0x1fa264][_0x4e2855(0x20e)](arguments);return _0x2cc49d[_0x4e2855(0x209)]['apply'](_0x2cc49d,_0x1ea911);};}static['getCleanedPerfEvents'](){const _0x1df6c3=a80_0x42ebb2,_0x2a1872=/(^.*)\[(.*)\]$/,_0x5bd5f2={},_0x41a000={},_0x4b3c34=[],_0x366713=this[_0x1df6c3(0x1d9)][_0x1df6c3(0x258)](0x0,this[_0x1df6c3(0x1d9)]['length']);for(const _0x2ad83f of _0x366713){const _0x1b3dd1=_0x2ad83f[_0x1df6c3(0x1cf)]['match'](_0x2a1872),_0x2717b3=Object[_0x1df6c3(0x1e8)]({},_0x2ad83f);_0x1b3dd1&&(_0x2717b3[_0x1df6c3(0x1cf)]=_0x1b3dd1[0x1],_0x2717b3[_0x1df6c3(0x25c)]=JSON['parse'](_0x1b3dd1[0x2])),_0x4b3c34[_0x1df6c3(0x1fa)](_0x2717b3);}return _0x4b3c34;}static['pushPerfMeasures'](){const _0x5146f7=a80_0x42ebb2,_0x35a1bc={};_0x35a1bc[_0x5146f7(0x1d0)]=function(_0x57891a,_0x41b55d){return _0x57891a+_0x41b55d;},_0x35a1bc[_0x5146f7(0x241)]=_0x5146f7(0x216),_0x35a1bc[_0x5146f7(0x1d3)]=function(_0x21bc5a,_0x315dad){return _0x21bc5a===_0x315dad;},_0x35a1bc[_0x5146f7(0x1f3)]=function(_0x8e65fd,_0x4a8fe1){return _0x8e65fd+_0x4a8fe1;};const _0x5ade13=_0x35a1bc;try{if(fs[_0x5146f7(0x1d6)](this[_0x5146f7(0x1e1)])){const _0x57aa00=fs[_0x5146f7(0x1e5)](this[_0x5146f7(0x1e1)]);for(const _0x1650a2 of _0x57aa00){fs[_0x5146f7(0x240)](path[_0x5146f7(0x1e6)](this['jsonReportDirPath'],_0x1650a2));}}}catch(_0x453c3a){logger[_0x5146f7(0x21a)](_0x5ade13[_0x5146f7(0x1d0)](_0x5ade13[_0x5146f7(0x241)],_0x453c3a));}if(_0x5ade13[_0x5146f7(0x1d3)](this[_0x5146f7(0x1d9)][_0x5146f7(0x21b)],0x0))return;const _0x139109=this[_0x5146f7(0x202)](),_0x343490=JSON[_0x5146f7(0x236)](_0x139109),_0x102988=_0x5ade13[_0x5146f7(0x1f3)](_0x343490[_0x5146f7(0x25d)](0x1,-0x1),',');fs[_0x5146f7(0x1f2)](this['jsonReportFileName'],_0x102988);}static async['finalizePerfMeasures'](){const _0x417e34=a80_0x42ebb2,_0x1e0882={};_0x1e0882[_0x417e34(0x1c3)]=function(_0x4dbe4d,_0x397d09){return _0x4dbe4d===_0x397d09;},_0x1e0882[_0x417e34(0x24d)]=function(_0x2766ac,_0x25fa68){return _0x2766ac>_0x25fa68;};const _0x5c75d3=_0x1e0882;if(!this[_0x417e34(0x227)]||_0x5c75d3[_0x417e34(0x1c3)](this['_measureEvents'][_0x417e34(0x21b)],0x0))return[];if(!fs[_0x417e34(0x1d6)](this[_0x417e34(0x1e1)]))return this[_0x417e34(0x1d9)];const _0x4cbae3=(await fsPromise[_0x417e34(0x1e2)](this['jsonReportDirPath']))[_0x417e34(0x1e3)](_0x75d697=>path['resolve'](this[_0x417e34(0x1e1)],_0x75d697));let _0x41ada7=(await Promise[_0x417e34(0x1d5)](_0x4cbae3[_0x417e34(0x1e3)](_0x5b36a2=>fsPromise[_0x417e34(0x203)](_0x5b36a2,_0x417e34(0x1e0)))))[_0x417e34(0x1e3)](_0x3363da=>'['+_0x3363da[_0x417e34(0x25d)](0x0,-0x1)+']')['map'](_0x18b391=>JSON[_0x417e34(0x23c)](_0x18b391))[_0x417e34(0x238)]();return _0x5c75d3[_0x417e34(0x24d)](this[_0x417e34(0x1d9)]['length'],0x0)&&(_0x41ada7=_0x41ada7[_0x417e34(0x20e)](this['getCleanedPerfEvents']())),this[_0x417e34(0x20c)]['disconnect'](),_0x41ada7;}static[a80_0x42ebb2(0x20f)](){const _0x4d67c5=a80_0x42ebb2,_0x4096e={};_0x4096e[_0x4d67c5(0x211)]=function(_0xfe6380,_0x22c49c){return _0xfe6380===_0x22c49c;},_0x4096e[_0x4d67c5(0x256)]=function(_0x3936e5,_0x4886f5){return _0x3936e5+_0x4886f5;};const _0xb21b56=_0x4096e;if(_0xb21b56[_0x4d67c5(0x211)](this['_errorEvents'][_0x4d67c5(0x21b)],0x0))return;const _0x104769=JSON[_0x4d67c5(0x236)](this[_0x4d67c5(0x22d)]),_0x5c3616=_0xb21b56[_0x4d67c5(0x256)](_0x104769[_0x4d67c5(0x25d)](0x1,-0x1),',');fs['appendFileSync'](this[_0x4d67c5(0x262)],_0x5c3616);}static[a80_0x42ebb2(0x221)](){const _0x3e082d=a80_0x42ebb2,_0x3d4cfe={};_0x3d4cfe[_0x3e082d(0x1ed)]=function(_0x2e0fed,_0x55b83b){return _0x2e0fed>_0x55b83b;};const _0x261146=_0x3d4cfe;if(this[_0x3e082d(0x1f4)]){if(!fs[_0x3e082d(0x1d6)](this[_0x3e082d(0x1f4)]))return this[_0x3e082d(0x22d)];let _0xb02da4=fs[_0x3e082d(0x1d1)](this[_0x3e082d(0x1f4)])[_0x3e082d(0x259)]();_0xb02da4='['+_0xb02da4[_0x3e082d(0x25d)](0x0,-0x1)+']';let _0x3380b9=JSON[_0x3e082d(0x23c)](_0xb02da4);return _0x261146[_0x3e082d(0x1ed)](this[_0x3e082d(0x22d)][_0x3e082d(0x21b)],0x0)&&(_0x3380b9=_0x3380b9[_0x3e082d(0x20e)](this[_0x3e082d(0x22d)])),fs[_0x3e082d(0x240)](this[_0x3e082d(0x1f4)]),_0x3380b9;}}static[a80_0x42ebb2(0x226)](_0x5a2685){const _0x518d32=a80_0x42ebb2;if(!this[_0x518d32(0x24c)]())return;this[_0x518d32(0x22d)][_0x518d32(0x1fa)]({'message':_0x5a2685[_0x518d32(0x1ea)],'trace':_0x5a2685['stack'],'code':_0x5a2685[_0x518d32(0x1f0)]||null,'time':new Date()});}static[a80_0x42ebb2(0x22f)](){const _0x53d8ae=a80_0x42ebb2;try{if(!this['isEnabled']())return;this[_0x53d8ae(0x20c)][_0x53d8ae(0x1cc)](),this[_0x53d8ae(0x1d7)](),this[_0x53d8ae(0x20f)]();}catch(_0x4e7df7){logger['debug']('Error\x20stopping\x20monitoring\x20'+util[_0x53d8ae(0x1f5)](_0x4e7df7));}}static async[a80_0x42ebb2(0x23a)](){const _0x2ad177=a80_0x42ebb2,_0x94f93e={'yIzYv':function(_0x1e4a8d,_0x36b19b){return _0x1e4a8d(_0x36b19b);}};await _0x94f93e['yIzYv'](sleep,0x1e);const _0x16c023=await this[_0x2ad177(0x1c5)](),_0x2f1852=this['finalizeErrors']();if(!this[_0x2ad177(0x24c)]()){const _0x2a5770={};return _0x2a5770['measures']=[],_0x2a5770[_0x2ad177(0x25f)]=[],_0x2a5770;}const _0x1b98ab={};return _0x1b98ab['measures']=_0x16c023,_0x1b98ab[_0x2ad177(0x25f)]=_0x2f1852,_0x1b98ab;}static[a80_0x42ebb2(0x200)](_0x2a82e0){const _0x53fc31=a80_0x42ebb2,_0x1d8905={};_0x1d8905[_0x53fc31(0x1f7)]=function(_0x5ed038,_0x468921){return _0x5ed038+_0x468921;},_0x1d8905[_0x53fc31(0x267)]=_0x53fc31(0x25a);const _0x1d139d=_0x1d8905,_0x23befc=_0x1d139d[_0x53fc31(0x1f7)](_0x2a82e0,_0x1d139d[_0x53fc31(0x267)]);if(this['eventsMap'][_0x23befc])return;performance[_0x53fc31(0x1fb)](_0x23befc),this['eventsMap'][_0x23befc]=0x1;}static[a80_0x42ebb2(0x223)](_0x3dfae2,_0x28e7c2=!![],_0x6ca918=null,_0x81d43c={}){const _0x3f962a=a80_0x42ebb2,_0x4a4642={'KGonl':function(_0x176bac,_0x59d222){return _0x176bac+_0x59d222;},'wUwvp':_0x3f962a(0x232),'qIolt':function(_0xdfa227,_0x2b2b33){return _0xdfa227+_0x2b2b33;},'ArDFp':_0x3f962a(0x25a),'VIwQu':function(_0x1014cb){return _0x1014cb();}};performance[_0x3f962a(0x1fb)](_0x4a4642[_0x3f962a(0x253)](_0x3dfae2,_0x4a4642['wUwvp'])),performance[_0x3f962a(0x209)](_0x3dfae2,_0x4a4642[_0x3f962a(0x204)](_0x3dfae2,_0x4a4642[_0x3f962a(0x25b)]),_0x4a4642[_0x3f962a(0x253)](_0x3dfae2,_0x4a4642[_0x3f962a(0x1c4)]));const _0x38aaf0={};_0x38aaf0[_0x3f962a(0x247)]=_0x28e7c2,_0x38aaf0[_0x3f962a(0x213)]=_0x6ca918,this[_0x3f962a(0x1ee)][_0x3dfae2]=Object[_0x3f962a(0x1e8)](_0x38aaf0,Object[_0x3f962a(0x1e8)](Object[_0x3f962a(0x1e8)]({'worker':_0x4a4642['VIwQu'](getProcessId),'platform':global[_0x3f962a(0x1f6)]&&global[_0x3f962a(0x1f6)][_0x3f962a(0x254)],'testName':_0x4a4642[_0x3f962a(0x1f1)](getTestName)},_0x81d43c),this[_0x3f962a(0x1ee)][_0x3dfae2]||{}));}}module[a80_0x42ebb2(0x246)]=PerformanceTester;
@@ -1 +1 @@
1
- const a81_0x379175=a81_0x4288;function a81_0x4288(_0xa3e408,_0x32d7da){const _0x2231cf=a81_0x2231();return a81_0x4288=function(_0x428804,_0x45f646){_0x428804=_0x428804-0x1a6;let _0x41fa02=_0x2231cf[_0x428804];return _0x41fa02;},a81_0x4288(_0xa3e408,_0x32d7da);}(function(_0x1bf74e,_0x3719e5){const _0x12aa89=a81_0x4288,_0x4d9693=_0x1bf74e();while(!![]){try{const _0x32320c=-parseInt(_0x12aa89(0x1ba))/0x1+parseInt(_0x12aa89(0x1b0))/0x2+-parseInt(_0x12aa89(0x1b4))/0x3*(parseInt(_0x12aa89(0x1a8))/0x4)+parseInt(_0x12aa89(0x1b7))/0x5*(parseInt(_0x12aa89(0x1ae))/0x6)+parseInt(_0x12aa89(0x1b2))/0x7+-parseInt(_0x12aa89(0x1b8))/0x8+-parseInt(_0x12aa89(0x1b1))/0x9*(-parseInt(_0x12aa89(0x1be))/0xa);if(_0x32320c===_0x3719e5)break;else _0x4d9693['push'](_0x4d9693['shift']());}catch(_0x47eb52){_0x4d9693['push'](_0x4d9693['shift']());}}}(a81_0x2231,0x3560a));const worker=require('worker_threads'),{fileLogger}=require(a81_0x379175(0x1ac)),{consoleHolder}=require(a81_0x379175(0x1af)),globals=require('./globals');exports[a81_0x379175(0x1ab)]=()=>{const _0x1ab793=a81_0x379175;return process[_0x1ab793(0x1b5)]+'-'+worker['threadId'];},exports[a81_0x379175(0x1a7)]=()=>{const _0x5e1966=a81_0x379175,_0x43fa1c={};_0x43fa1c['HiWMH']=_0x5e1966(0x1bd);const _0x4f9319=_0x43fa1c;return globals[_0x5e1966(0x1bb)](_0x4f9319['HiWMH']);},exports['sleep']=(_0xc32cd1=0x64)=>new Promise(_0x1781aa=>setTimeout(_0x1781aa,_0xc32cd1)),exports['debug']=_0x290fc9=>{const _0x1ac632=a81_0x379175,_0x94df0={};_0x94df0[_0x1ac632(0x1ad)]=function(_0x1f9768,_0x2ce8a3){return _0x1f9768===_0x2ce8a3;},_0x94df0[_0x1ac632(0x1b9)]=_0x1ac632(0x1b6);const _0x1d9d14=_0x94df0;fileLogger[_0x1ac632(0x1a9)]('['+new Date()[_0x1ac632(0x1aa)]()+_0x1ac632(0x1a6)+_0x290fc9),(_0x1d9d14[_0x1ac632(0x1ad)](process[_0x1ac632(0x1b3)][_0x1ac632(0x1bc)],_0x1d9d14[_0x1ac632(0x1b9)])||_0x1d9d14[_0x1ac632(0x1ad)](process[_0x1ac632(0x1b3)][_0x1ac632(0x1bc)],'1'))&&consoleHolder['log']('\x0a['+new Date()['toISOString']()+_0x1ac632(0x1a6)+_0x290fc9+'\x0a');};function a81_0x2231(){const _0x2c0aa0=['6888efphoj','env','243wgdoIg','pid','true','5HrnMtv','1265392JsCQTO','eJrod','299635uwCUWW','getGlobal','BROWSERSTACK_OBSERVABILITY_DEBUG','browserstackTestName','110OvWkAy','][\x20OBSERVABILITY\x20]\x20','getTestName','10324yywtDC','debug','toISOString','getProcessId','./logger','vycLn','222156VfLROH','./test-observability/constants','451064NFfrHf','508878KHTOYB'];a81_0x2231=function(){return _0x2c0aa0;};return a81_0x2231();}
1
+ function a81_0x2df8(){const _0x5c90a7=['debug','./test-observability/constants','2229292bHLYOk','7577559PDwHqS','env','./globals','92185afPySE','BROWSERSTACK_OBSERVABILITY_DEBUG','][\x20OBSERVABILITY\x20]\x20','1351zVhjbY','3JNeVVT','43800NsQHsj','threadId','worker_threads','40040280gPPIos','151GuGuSv','WEqcy','YoRbV','pbxqP','96XwjKNW','log','browserstackTestName','69707duineu','true','1250ZmdISu','9928kzpwXa','sleep','getProcessId'];a81_0x2df8=function(){return _0x5c90a7;};return a81_0x2df8();}const a81_0x38fbad=a81_0x5e32;(function(_0x6e2265,_0x33e3b4){const _0x5547e3=a81_0x5e32,_0x1005df=_0x6e2265();while(!![]){try{const _0x343401=-parseInt(_0x5547e3(0xcb))/0x1*(-parseInt(_0x5547e3(0xb9))/0x2)+-parseInt(_0x5547e3(0xc6))/0x3*(parseInt(_0x5547e3(0xbe))/0x4)+parseInt(_0x5547e3(0xc2))/0x5*(-parseInt(_0x5547e3(0xcf))/0x6)+parseInt(_0x5547e3(0xc5))/0x7*(-parseInt(_0x5547e3(0xc7))/0x8)+-parseInt(_0x5547e3(0xbf))/0x9+parseInt(_0x5547e3(0xb8))/0xa*(-parseInt(_0x5547e3(0xd2))/0xb)+parseInt(_0x5547e3(0xca))/0xc;if(_0x343401===_0x33e3b4)break;else _0x1005df['push'](_0x1005df['shift']());}catch(_0x3274f7){_0x1005df['push'](_0x1005df['shift']());}}}(a81_0x2df8,0x849d4));function a81_0x5e32(_0x506008,_0x343c0a){const _0x2df842=a81_0x2df8();return a81_0x5e32=function(_0x5e3270,_0x522c2e){_0x5e3270=_0x5e3270-0xb8;let _0x2d6e48=_0x2df842[_0x5e3270];return _0x2d6e48;},a81_0x5e32(_0x506008,_0x343c0a);}const worker=require(a81_0x38fbad(0xc9)),{fileLogger}=require('./logger'),{consoleHolder}=require(a81_0x38fbad(0xbd)),globals=require(a81_0x38fbad(0xc1));exports[a81_0x38fbad(0xbb)]=()=>{const _0x201e45=a81_0x38fbad;return process['pid']+'-'+worker[_0x201e45(0xc8)];},exports['getTestName']=()=>{const _0x53d11f=a81_0x38fbad,_0x404cea={};_0x404cea[_0x53d11f(0xcc)]=_0x53d11f(0xd1);const _0x598c78=_0x404cea;return globals['getGlobal'](_0x598c78[_0x53d11f(0xcc)]);},exports[a81_0x38fbad(0xba)]=(_0xb4faa0=0x64)=>new Promise(_0x2839b5=>setTimeout(_0x2839b5,_0xb4faa0)),exports[a81_0x38fbad(0xbc)]=_0x490799=>{const _0x4d9adb=a81_0x38fbad,_0x9f6263={};_0x9f6263['YoRbV']=function(_0x29aae9,_0x556362){return _0x29aae9===_0x556362;},_0x9f6263[_0x4d9adb(0xce)]=_0x4d9adb(0xd3);const _0x358028=_0x9f6263;fileLogger[_0x4d9adb(0xbc)]('['+new Date()['toISOString']()+_0x4d9adb(0xc4)+_0x490799),(_0x358028[_0x4d9adb(0xcd)](process[_0x4d9adb(0xc0)][_0x4d9adb(0xc3)],_0x358028['pbxqP'])||_0x358028[_0x4d9adb(0xcd)](process[_0x4d9adb(0xc0)][_0x4d9adb(0xc3)],'1'))&&consoleHolder[_0x4d9adb(0xd0)]('\x0a['+new Date()['toISOString']()+_0x4d9adb(0xc4)+_0x490799+'\x0a');};
@@ -1 +1 @@
1
- function a82_0x50ca(){const _0xa8e875=['method','apply','monkeypatch','XiBzG','nfugm','statusCode','5615040IJgUmV','now','removeListener','duration_ms','cAZOT','2637CIpzbk','prototype','39OUZuBQ','35050JEFsiP','hGRJY','object','path','9781310EXGGCK','headers','https','unpatch','spy','gEacl','bPIbV','host','pathname','iAJLL','ggxXv','fvJKG','http','22404iZsdXC','1067304GiSSRs','vYygp','slice','response','once','yiyRS','url','request','status_code','40jpSxhi','hostname','error','362312RLvFFx','call','forEach','assign','1177192LqQFmO','ZTKsz','42kQoJwh'];a82_0x50ca=function(){return _0xa8e875;};return a82_0x50ca();}const a82_0xf083fc=a82_0x5b4d;(function(_0x431b55,_0x419794){const _0x14f357=a82_0x5b4d,_0x5ca1c1=_0x431b55();while(!![]){try{const _0xccd283=parseInt(_0x14f357(0x99))/0x1+parseInt(_0x14f357(0xbb))/0x2*(parseInt(_0x14f357(0xa9))/0x3)+parseInt(_0x14f357(0x95))/0x4*(-parseInt(_0x14f357(0x92))/0x5)+-parseInt(_0x14f357(0xa2))/0x6+-parseInt(_0x14f357(0x9b))/0x7*(-parseInt(_0x14f357(0xbc))/0x8)+-parseInt(_0x14f357(0xa7))/0x9*(-parseInt(_0x14f357(0xaa))/0xa)+-parseInt(_0x14f357(0xae))/0xb;if(_0xccd283===_0x419794)break;else _0x5ca1c1['push'](_0x5ca1c1['shift']());}catch(_0x40e714){_0x5ca1c1['push'](_0x5ca1c1['shift']());}}}(a82_0x50ca,0x92a0b));const http=require(a82_0xf083fc(0xba)),https=require(a82_0xf083fc(0xb0)),monkeypatch=require(a82_0xf083fc(0x9e));function spy(_0x2742b3){const _0x2cf0d2=a82_0xf083fc,_0x319a00={'hGRJY':function(_0x59c75f,_0x398a8b){return _0x59c75f instanceof _0x398a8b;},'iAJLL':function(_0x3afb2b,_0x412908){return _0x3afb2b===_0x412908;},'fvJKG':_0x2cf0d2(0xac),'cAZOT':function(_0x44548f,_0xf72ac9){return _0x44548f-_0xf72ac9;},'Weavn':function(_0x3a8986,_0x82f098,_0x3f9dca){return _0x3a8986(_0x82f098,_0x3f9dca);},'yiyRS':_0x2cf0d2(0x94),'nfugm':function(_0x1caabc,..._0x31fe2a){return _0x1caabc(..._0x31fe2a);},'bPIbV':function(_0x210423,_0x44f8c5,_0x145774){return _0x210423(_0x44f8c5,_0x145774);},'ggxXv':_0x2cf0d2(0x8c),'CKYek':'socket','gEacl':function(_0x30d04e,_0x5ac435,_0x14a6cc,_0x523c40){return _0x30d04e(_0x5ac435,_0x14a6cc,_0x523c40);},'oGyBu':'end','ZTKsz':function(_0x53cf86,_0x1efa45,_0x28a059,_0x32d4aa){return _0x53cf86(_0x1efa45,_0x28a059,_0x32d4aa);},'XiBzG':'request'},_0x416b20=function(){const _0x35e957=_0x2cf0d2,_0x594f90={'vYygp':function(_0x41a68f,_0x58af8d,_0x194ef2){const _0x3b62cc=a82_0x5b4d;return _0x319a00[_0x3b62cc(0xb4)](_0x41a68f,_0x58af8d,_0x194ef2);}},_0xc114d6=arguments[0x0],_0x1b4a58=Array[_0x35e957(0xa8)][_0x35e957(0x8b)][_0x35e957(0x96)](arguments,0x1),_0x5dfb06=_0xc114d6[_0x35e957(0x9d)](this,_0x1b4a58);let _0x42dbc0=Date[_0x35e957(0xa3)](),_0x29f390;const _0x3306e4={};_0x1b4a58[_0x35e957(0x97)](_0x365e0b=>{const _0x475d6a=_0x35e957;if(_0x319a00[_0x475d6a(0xab)](_0x365e0b,URL)){const _0x2d21df={};_0x2d21df[_0x475d6a(0x8f)]=_0x365e0b,Object[_0x475d6a(0x98)](_0x3306e4,_0x2d21df);}else _0x319a00[_0x475d6a(0xb7)](typeof _0x365e0b,_0x319a00[_0x475d6a(0xb9)])&&Object[_0x475d6a(0x98)](_0x3306e4,_0x365e0b);});const _0x2cb31b=_0x4be143=>{const _0x42f66c=_0x35e957,_0x51b8c0={};_0x51b8c0['host']=_0x3306e4[_0x42f66c(0xb5)]||_0x3306e4[_0x42f66c(0x93)]||_0x3306e4[_0x42f66c(0x8f)]&&(_0x3306e4[_0x42f66c(0x8f)]['host']||_0x3306e4[_0x42f66c(0x8f)]['hostname']),_0x51b8c0[_0x42f66c(0xad)]=_0x3306e4[_0x42f66c(0xad)]||_0x3306e4[_0x42f66c(0x8f)]&&_0x3306e4[_0x42f66c(0x8f)][_0x42f66c(0xb6)],_0x51b8c0['method']=_0x3306e4['method'],_0x51b8c0[_0x42f66c(0xaf)]=_0x3306e4[_0x42f66c(0xaf)],_0x594f90[_0x42f66c(0xbd)](_0x2742b3,_0x4be143,_0x51b8c0);};return _0x5dfb06[_0x35e957(0x8d)](_0x319a00[_0x35e957(0xb8)],_0x121421=>{const _0x48f3ed=_0x35e957,_0x138652=_0x319a00[_0x48f3ed(0xa6)](Date[_0x48f3ed(0xa3)](),_0x42dbc0),_0xf9eaed={};_0xf9eaed[_0x48f3ed(0x93)]=_0x3306e4[_0x48f3ed(0xb5)]||_0x3306e4['hostname']||_0x3306e4[_0x48f3ed(0x8f)]&&(_0x3306e4[_0x48f3ed(0x8f)][_0x48f3ed(0xb5)]||_0x3306e4[_0x48f3ed(0x8f)][_0x48f3ed(0x93)]),_0xf9eaed[_0x48f3ed(0xad)]=_0x3306e4['path']||_0x3306e4[_0x48f3ed(0x8f)]&&_0x3306e4[_0x48f3ed(0x8f)][_0x48f3ed(0xb6)],_0xf9eaed[_0x48f3ed(0x9c)]=_0x3306e4[_0x48f3ed(0x9c)],_0xf9eaed[_0x48f3ed(0xaf)]=_0x3306e4[_0x48f3ed(0xaf)],_0xf9eaed[_0x48f3ed(0x91)]=_0x121421[_0x48f3ed(0xa1)],_0xf9eaed[_0x48f3ed(0xa5)]=_0x138652,_0x319a00['Weavn'](_0x2742b3,null,_0xf9eaed),_0x29f390[_0x48f3ed(0xa4)](_0x319a00[_0x48f3ed(0x8e)],_0x2cb31b);}),_0x5dfb06['on'](_0x319a00['CKYek'],_0x3c19aa=>{const _0x7ff510=_0x35e957;_0x29f390=_0x3c19aa,_0x3c19aa['once'](_0x319a00[_0x7ff510(0x8e)],_0x2cb31b);}),_0x319a00[_0x35e957(0xb3)](monkeypatch,_0x5dfb06,_0x319a00['oGyBu'],(_0x3ec7be,..._0x264304)=>{const _0x3d98da=_0x35e957;_0x42dbc0=Date[_0x3d98da(0xa3)](),_0x319a00[_0x3d98da(0xa0)](_0x3ec7be,..._0x264304);}),_0x5dfb06;};_0x319a00['ZTKsz'](monkeypatch,http,_0x319a00[_0x2cf0d2(0x9f)],_0x416b20),_0x319a00[_0x2cf0d2(0x9a)](monkeypatch,https,_0x319a00[_0x2cf0d2(0x9f)],_0x416b20);}function a82_0x5b4d(_0x300d73,_0x354b15){const _0x50ca30=a82_0x50ca();return a82_0x5b4d=function(_0x5b4da7,_0x3a0b80){_0x5b4da7=_0x5b4da7-0x8b;let _0x35c865=_0x50ca30[_0x5b4da7];return _0x35c865;},a82_0x5b4d(_0x300d73,_0x354b15);}function restore(){const _0x354dd5=a82_0xf083fc;http[_0x354dd5(0x90)][_0x354dd5(0xb1)](),https[_0x354dd5(0x90)][_0x354dd5(0xb1)]();}const a82_0x569870={};a82_0x569870[a82_0xf083fc(0xb2)]=spy,a82_0x569870['restore']=restore,module['exports']=a82_0x569870;
1
+ const a82_0x2ced7f=a82_0x3a9e;(function(_0xe74a68,_0x292608){const _0x2000b4=a82_0x3a9e,_0x37ef27=_0xe74a68();while(!![]){try{const _0x40bbb9=-parseInt(_0x2000b4(0x17b))/0x1*(-parseInt(_0x2000b4(0x1a2))/0x2)+-parseInt(_0x2000b4(0x18f))/0x3+parseInt(_0x2000b4(0x178))/0x4*(parseInt(_0x2000b4(0x188))/0x5)+-parseInt(_0x2000b4(0x18b))/0x6+parseInt(_0x2000b4(0x19e))/0x7*(parseInt(_0x2000b4(0x1a1))/0x8)+parseInt(_0x2000b4(0x177))/0x9+parseInt(_0x2000b4(0x175))/0xa*(-parseInt(_0x2000b4(0x186))/0xb);if(_0x40bbb9===_0x292608)break;else _0x37ef27['push'](_0x37ef27['shift']());}catch(_0x51ff9d){_0x37ef27['push'](_0x37ef27['shift']());}}}(a82_0x368d,0xef675));const http=require(a82_0x2ced7f(0x17f)),https=require(a82_0x2ced7f(0x198)),monkeypatch=require(a82_0x2ced7f(0x191));function a82_0x3a9e(_0x2a23ed,_0x142195){const _0x368d6b=a82_0x368d();return a82_0x3a9e=function(_0x3a9e3d,_0x3a4d6d){_0x3a9e3d=_0x3a9e3d-0x174;let _0x7f8045=_0x368d6b[_0x3a9e3d];return _0x7f8045;},a82_0x3a9e(_0x2a23ed,_0x142195);}function spy(_0x50995d){const _0xf29b09=a82_0x2ced7f,_0xab4e6c={'vUyAw':function(_0x5c870e,_0x431f8d){return _0x5c870e instanceof _0x431f8d;},'rDvrk':function(_0x4cc7c1,_0xc8a1e4){return _0x4cc7c1===_0xc8a1e4;},'EpxYX':'object','VXjrn':function(_0x4170b0,_0xf09fb5,_0x5048e3){return _0x4170b0(_0xf09fb5,_0x5048e3);},'qVQhw':function(_0x2d43e6,_0x26e152){return _0x2d43e6-_0x26e152;},'EdWiN':'error','UdHuJ':function(_0x4228cd,..._0x4d364){return _0x4228cd(..._0x4d364);},'MswCv':'response','TspNr':_0xf29b09(0x19f),'xWjHF':function(_0x194a9d,_0x33c3a9,_0x1e7407,_0x900910){return _0x194a9d(_0x33c3a9,_0x1e7407,_0x900910);},'WXBKC':_0xf29b09(0x18d),'RTDow':function(_0x58f45f,_0x4cf062,_0x4e3c6f,_0x458ce7){return _0x58f45f(_0x4cf062,_0x4e3c6f,_0x458ce7);},'zVVRZ':_0xf29b09(0x190),'UITeP':function(_0x3ffceb,_0x17bb70,_0x4f325d,_0xb3e08b){return _0x3ffceb(_0x17bb70,_0x4f325d,_0xb3e08b);}},_0x44d845=function(){const _0x16cf01=_0xf29b09,_0x36ad89={'Rhtwh':function(_0xea32eb,_0xed9ab9){const _0x1efee8=a82_0x3a9e;return _0xab4e6c[_0x1efee8(0x197)](_0xea32eb,_0xed9ab9);},'FtUYM':function(_0x537f22,_0x1cf03c){const _0xc36ec7=a82_0x3a9e;return _0xab4e6c[_0xc36ec7(0x184)](_0x537f22,_0x1cf03c);},'KGjai':_0xab4e6c['EpxYX'],'cdMKr':function(_0x42e3c8,_0x45bd92,_0x2270ac){const _0x2fbc62=a82_0x3a9e;return _0xab4e6c[_0x2fbc62(0x18e)](_0x42e3c8,_0x45bd92,_0x2270ac);},'DlWvx':function(_0x2b6bc0,_0x3acc2d){const _0x4dc44c=a82_0x3a9e;return _0xab4e6c[_0x4dc44c(0x195)](_0x2b6bc0,_0x3acc2d);},'wvFLO':function(_0x3c4ef0,_0x4f2dd6,_0x96e338){const _0xbb199d=a82_0x3a9e;return _0xab4e6c[_0xbb199d(0x18e)](_0x3c4ef0,_0x4f2dd6,_0x96e338);},'FYILz':_0xab4e6c[_0x16cf01(0x182)],'ptiHj':function(_0x2744c5,..._0x3ccb8a){return _0xab4e6c['UdHuJ'](_0x2744c5,..._0x3ccb8a);}},_0x32c4f9=arguments[0x0],_0x333f8e=Array[_0x16cf01(0x194)][_0x16cf01(0x19d)]['call'](arguments,0x1),_0x12eca1=_0x32c4f9[_0x16cf01(0x181)](this,_0x333f8e);let _0x586849=Date[_0x16cf01(0x185)](),_0x292cc9;const _0x1de795={};_0x333f8e[_0x16cf01(0x19c)](_0x875e50=>{const _0x3247de=_0x16cf01;if(_0x36ad89[_0x3247de(0x17e)](_0x875e50,URL)){const _0x56a7bc={};_0x56a7bc[_0x3247de(0x189)]=_0x875e50,Object['assign'](_0x1de795,_0x56a7bc);}else _0x36ad89[_0x3247de(0x196)](typeof _0x875e50,_0x36ad89[_0x3247de(0x17c)])&&Object['assign'](_0x1de795,_0x875e50);});const _0x52f728=_0x264645=>{const _0x13a547=_0x16cf01,_0x16c228={};_0x16c228['host']=_0x1de795[_0x13a547(0x193)]||_0x1de795[_0x13a547(0x1a5)]||_0x1de795[_0x13a547(0x189)]&&(_0x1de795['url'][_0x13a547(0x193)]||_0x1de795[_0x13a547(0x189)][_0x13a547(0x1a5)]),_0x16c228[_0x13a547(0x17a)]=_0x1de795['path']||_0x1de795[_0x13a547(0x189)]&&_0x1de795[_0x13a547(0x189)][_0x13a547(0x176)],_0x16c228[_0x13a547(0x187)]=_0x1de795['method'],_0x16c228[_0x13a547(0x19b)]=_0x1de795[_0x13a547(0x19b)],_0x36ad89['cdMKr'](_0x50995d,_0x264645,_0x16c228);};return _0x12eca1[_0x16cf01(0x180)](_0xab4e6c['MswCv'],_0x5ebaf4=>{const _0x11d4a3=_0x16cf01,_0xcc0c09=_0x36ad89[_0x11d4a3(0x1a0)](Date[_0x11d4a3(0x185)](),_0x586849),_0x4f861f={};_0x4f861f[_0x11d4a3(0x1a5)]=_0x1de795['host']||_0x1de795[_0x11d4a3(0x1a5)]||_0x1de795[_0x11d4a3(0x189)]&&(_0x1de795[_0x11d4a3(0x189)][_0x11d4a3(0x193)]||_0x1de795[_0x11d4a3(0x189)][_0x11d4a3(0x1a5)]),_0x4f861f[_0x11d4a3(0x17a)]=_0x1de795[_0x11d4a3(0x17a)]||_0x1de795['url']&&_0x1de795[_0x11d4a3(0x189)]['pathname'],_0x4f861f[_0x11d4a3(0x187)]=_0x1de795[_0x11d4a3(0x187)],_0x4f861f['headers']=_0x1de795[_0x11d4a3(0x19b)],_0x4f861f[_0x11d4a3(0x1a4)]=_0x5ebaf4['statusCode'],_0x4f861f['duration_ms']=_0xcc0c09,_0x36ad89[_0x11d4a3(0x192)](_0x50995d,null,_0x4f861f),_0x292cc9['removeListener'](_0x36ad89['FYILz'],_0x52f728);}),_0x12eca1['on'](_0xab4e6c[_0x16cf01(0x18a)],_0x558d35=>{const _0x14d2de=_0x16cf01;_0x292cc9=_0x558d35,_0x558d35[_0x14d2de(0x180)](_0x36ad89[_0x14d2de(0x19a)],_0x52f728);}),_0xab4e6c[_0x16cf01(0x1a6)](monkeypatch,_0x12eca1,_0xab4e6c[_0x16cf01(0x179)],(_0x12ebaa,..._0x65e104)=>{const _0x5d7a4c=_0x16cf01;_0x586849=Date[_0x5d7a4c(0x185)](),_0x36ad89[_0x5d7a4c(0x17d)](_0x12ebaa,..._0x65e104);}),_0x12eca1;};_0xab4e6c['RTDow'](monkeypatch,http,_0xab4e6c[_0xf29b09(0x174)],_0x44d845),_0xab4e6c['UITeP'](monkeypatch,https,_0xab4e6c['zVVRZ'],_0x44d845);}function restore(){const _0x5d135d=a82_0x2ced7f;http[_0x5d135d(0x190)][_0x5d135d(0x18c)](),https[_0x5d135d(0x190)]['unpatch']();}const a82_0x5625ac={};function a82_0x368d(){const _0x3d320c=['monkeypatch','wvFLO','host','prototype','qVQhw','FtUYM','vUyAw','https','exports','FYILz','headers','forEach','slice','8015StNDai','socket','DlWvx','1864JjRiAO','681794kmLlFX','spy','status_code','hostname','xWjHF','zVVRZ','101320YAynXt','pathname','13249575VpgSys','612wPUIyE','WXBKC','path','1lYpOQO','KGjai','ptiHj','Rhtwh','http','once','apply','EdWiN','restore','rDvrk','now','1683tNQVrv','method','53085JwgljY','url','TspNr','5231544eoyKgR','unpatch','end','VXjrn','904623rYcvrA','request'];a82_0x368d=function(){return _0x3d320c;};return a82_0x368d();}a82_0x5625ac[a82_0x2ced7f(0x1a3)]=spy,a82_0x5625ac[a82_0x2ced7f(0x183)]=restore,module[a82_0x2ced7f(0x199)]=a82_0x5625ac;
@@ -1 +1 @@
1
- const a83_0xbcf31f=a83_0x44ac;function a83_0x1be1(){const _0x12d9c8=['54wFRtJn','agent','measureWrapper','https:','24jOrPGQ','Lbggj','1084024qVuPCY','ZrAtJ','oPdvf','request','292796bYdheX','protocol','globalAgent','yypGN','4028245EUJQHx','zaXVP','113466HKDeLa','HBWUd','42rqmwXZ','Agent','https','lNtYZ','8719FGBRjf','3603610fwgvpw','keepAlive','204TreWrU','bgFgD','hasOwnProperty','prototype','http','925034HHSHMU','2ZivqZR','keepAliveMsecs'];a83_0x1be1=function(){return _0x12d9c8;};return a83_0x1be1();}(function(_0x5d773c,_0x2eb6c1){const _0x38bf7d=a83_0x44ac,_0x427671=_0x5d773c();while(!![]){try{const _0x591588=-parseInt(_0x38bf7d(0xd5))/0x1*(parseInt(_0x38bf7d(0xbd))/0x2)+parseInt(_0x38bf7d(0xc3))/0x3*(-parseInt(_0x38bf7d(0xc9))/0x4)+parseInt(_0x38bf7d(0xcd))/0x5+-parseInt(_0x38bf7d(0xcf))/0x6*(-parseInt(_0x38bf7d(0xd1))/0x7)+-parseInt(_0x38bf7d(0xc5))/0x8*(parseInt(_0x38bf7d(0xbf))/0x9)+-parseInt(_0x38bf7d(0xd6))/0xa+parseInt(_0x38bf7d(0xbc))/0xb*(parseInt(_0x38bf7d(0xd8))/0xc);if(_0x591588===_0x2eb6c1)break;else _0x427671['push'](_0x427671['shift']());}catch(_0x35fd23){_0x427671['push'](_0x427671['shift']());}}}(a83_0x1be1,0x8dd9f));const PerformanceTester=require('./performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceEvents}=require('./performance/constants');function a83_0x44ac(_0x1e1fcd,_0x3f382c){const _0x1be140=a83_0x1be1();return a83_0x44ac=function(_0x44acaa,_0x1d7255){_0x44acaa=_0x44acaa-0xbb;let _0x31c97c=_0x1be140[_0x44acaa];return _0x31c97c;},a83_0x44ac(_0x1e1fcd,_0x3f382c);}module['exports']=PerformanceTester[a83_0xbcf31f(0xc1)](PerformanceEvents['KEEP_ALIVE'],function(){const _0x93978c=a83_0xbcf31f,_0x2a56ab={'oPdvf':function(_0xe35a59,_0x4fa9a6){return _0xe35a59===_0x4fa9a6;},'zaXVP':_0x93978c(0xc2),'yypGN':_0x93978c(0xc0),'bgFgD':function(_0x51efe6,_0x4e9ee3,_0x1042a5){return _0x51efe6(_0x4e9ee3,_0x1042a5);},'ZrAtJ':function(_0x4b9939,_0x5ad8bc){return _0x4b9939(_0x5ad8bc);},'HBWUd':_0x93978c(0xbb),'Lbggj':_0x93978c(0xd3),'lNtYZ':function(_0x3c9660,_0x275078){return _0x3c9660*_0x275078;},'NkzQY':_0x93978c(0xd7)},_0x30317b=_0x2a56ab[_0x93978c(0xc6)](require,_0x2a56ab[_0x93978c(0xd0)]),_0x1fc42b=_0x2a56ab[_0x93978c(0xc6)](require,_0x2a56ab[_0x93978c(0xc4)]),_0x5b8a55=_0x2a56ab[_0x93978c(0xd4)](0x1e,0x3e8);if(_0x30317b[_0x93978c(0xcb)]&&Object[_0x93978c(0xdb)][_0x93978c(0xda)]['call'](_0x30317b[_0x93978c(0xcb)],_0x2a56ab['NkzQY']))_0x30317b[_0x93978c(0xcb)][_0x93978c(0xd7)]=!![],_0x1fc42b[_0x93978c(0xcb)][_0x93978c(0xd7)]=!![],_0x30317b[_0x93978c(0xcb)][_0x93978c(0xbe)]=_0x5b8a55,_0x1fc42b[_0x93978c(0xcb)][_0x93978c(0xbe)]=_0x5b8a55;else{const _0x39c299={};_0x39c299[_0x93978c(0xd7)]=!![],_0x39c299['keepAliveMsecs']=_0x5b8a55;const _0x1302c5=new _0x30317b[(_0x93978c(0xd2))](_0x39c299),_0x50927b={};_0x50927b['keepAlive']=!![],_0x50927b[_0x93978c(0xbe)]=_0x5b8a55;const _0x369654=new _0x1fc42b['Agent'](_0x50927b),_0x1686ff=_0x30317b['request'],_0x38f014=_0x1fc42b[_0x93978c(0xc8)];_0x30317b[_0x93978c(0xc8)]=function(_0x2db3f9,_0x12c9ae){const _0x25e9a1=_0x93978c;if(_0x2a56ab[_0x25e9a1(0xc7)](_0x2db3f9[_0x25e9a1(0xca)],_0x2a56ab[_0x25e9a1(0xce)]))return _0x2db3f9[_0x2a56ab[_0x25e9a1(0xcc)]]=_0x369654,_0x2a56ab[_0x25e9a1(0xd9)](_0x38f014,_0x2db3f9,_0x12c9ae);return _0x2db3f9[_0x2a56ab['yypGN']]=_0x1302c5,_0x2a56ab[_0x25e9a1(0xd9)](_0x1686ff,_0x2db3f9,_0x12c9ae);};}});
1
+ function a83_0x264c(){const _0x3fcbc8=['573228IUyvaH','http','232742MdhuVL','2464ypxbzy','https','globalAgent','YkeCf','measureWrapper','keepAliveMsecs','./performance/performance-tester','9873gUqDiX','HcDqC','peTfb','42YgHDbJ','protocol','hasOwnProperty','KEEP_ALIVE','keepAlive','call','Agent','pbjcU','fexej','606910wJYmoU','1WkPYWz','207366ayVeyO','agent','crwWg','76TwtfjE','./performance/constants','678464Gcdukl','5930VLsDEL','request','vSitq'];a83_0x264c=function(){return _0x3fcbc8;};return a83_0x264c();}function a83_0x23c5(_0x2f1046,_0x2cc904){const _0x264c80=a83_0x264c();return a83_0x23c5=function(_0x23c5f7,_0x46ca15){_0x23c5f7=_0x23c5f7-0x89;let _0x1b93d9=_0x264c80[_0x23c5f7];return _0x1b93d9;},a83_0x23c5(_0x2f1046,_0x2cc904);}const a83_0x1e49b0=a83_0x23c5;(function(_0x21f713,_0x41efd6){const _0x114d8b=a83_0x23c5,_0x20c483=_0x21f713();while(!![]){try{const _0x24f6f1=parseInt(_0x114d8b(0x9f))/0x1*(parseInt(_0x114d8b(0x8a))/0x2)+parseInt(_0x114d8b(0x92))/0x3*(parseInt(_0x114d8b(0xa3))/0x4)+parseInt(_0x114d8b(0x9e))/0x5+parseInt(_0x114d8b(0xa0))/0x6*(-parseInt(_0x114d8b(0x95))/0x7)+parseInt(_0x114d8b(0xa5))/0x8+parseInt(_0x114d8b(0xa9))/0x9+-parseInt(_0x114d8b(0xa6))/0xa*(parseInt(_0x114d8b(0x8b))/0xb);if(_0x24f6f1===_0x41efd6)break;else _0x20c483['push'](_0x20c483['shift']());}catch(_0x13b5c6){_0x20c483['push'](_0x20c483['shift']());}}}(a83_0x264c,0x1a828));const PerformanceTester=require(a83_0x1e49b0(0x91)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a83_0x1e49b0(0xa4));module['exports']=PerformanceTester[a83_0x1e49b0(0x8f)](PerformanceEvents[a83_0x1e49b0(0x98)],function(){const _0x3ec190=a83_0x1e49b0,_0x323e8f={'pbjcU':function(_0x5686a2,_0x170882){return _0x5686a2===_0x170882;},'KGhOj':'https:','fexej':_0x3ec190(0xa1),'crwWg':function(_0x2a290d,_0x12a811,_0x343aa7){return _0x2a290d(_0x12a811,_0x343aa7);},'YkeCf':function(_0x586f2c,_0x38a3ed,_0x2fda09){return _0x586f2c(_0x38a3ed,_0x2fda09);},'peTfb':function(_0x5d71d1,_0x29bc83){return _0x5d71d1(_0x29bc83);},'DTsxX':_0x3ec190(0x89),'ccNch':_0x3ec190(0x8c),'HcDqC':function(_0x11392f,_0x50242d){return _0x11392f*_0x50242d;},'vSitq':_0x3ec190(0x99)},_0x937bb8=_0x323e8f[_0x3ec190(0x94)](require,_0x323e8f['DTsxX']),_0x4a5352=_0x323e8f['peTfb'](require,_0x323e8f['ccNch']),_0x2de542=_0x323e8f[_0x3ec190(0x93)](0x1e,0x3e8);if(_0x937bb8[_0x3ec190(0x8d)]&&Object['prototype'][_0x3ec190(0x97)][_0x3ec190(0x9a)](_0x937bb8['globalAgent'],_0x323e8f[_0x3ec190(0xa8)]))_0x937bb8[_0x3ec190(0x8d)][_0x3ec190(0x99)]=!![],_0x4a5352['globalAgent'][_0x3ec190(0x99)]=!![],_0x937bb8['globalAgent'][_0x3ec190(0x90)]=_0x2de542,_0x4a5352[_0x3ec190(0x8d)][_0x3ec190(0x90)]=_0x2de542;else{const _0x3a060b={};_0x3a060b[_0x3ec190(0x99)]=!![],_0x3a060b[_0x3ec190(0x90)]=_0x2de542;const _0x3dedf8=new _0x937bb8[(_0x3ec190(0x9b))](_0x3a060b),_0x58339b={};_0x58339b[_0x3ec190(0x99)]=!![],_0x58339b['keepAliveMsecs']=_0x2de542;const _0x7f87d4=new _0x4a5352['Agent'](_0x58339b),_0x536408=_0x937bb8[_0x3ec190(0xa7)],_0x19722=_0x4a5352[_0x3ec190(0xa7)];_0x937bb8[_0x3ec190(0xa7)]=function(_0x45a8e5,_0x5eebf0){const _0x283b4e=_0x3ec190;if(_0x323e8f[_0x283b4e(0x9c)](_0x45a8e5[_0x283b4e(0x96)],_0x323e8f['KGhOj']))return _0x45a8e5[_0x323e8f[_0x283b4e(0x9d)]]=_0x7f87d4,_0x323e8f[_0x283b4e(0xa2)](_0x19722,_0x45a8e5,_0x5eebf0);return _0x45a8e5[_0x323e8f[_0x283b4e(0x9d)]]=_0x3dedf8,_0x323e8f[_0x283b4e(0x8e)](_0x536408,_0x45a8e5,_0x5eebf0);};}});
@@ -1 +1 @@
1
- var a84_0xaabc83=a84_0x4cee;(function(_0x1cabe3,_0x5a2542){var _0x4e7d0b=a84_0x4cee,_0x332509=_0x1cabe3();while(!![]){try{var _0x361739=-parseInt(_0x4e7d0b(0x14b))/0x1*(-parseInt(_0x4e7d0b(0x142))/0x2)+parseInt(_0x4e7d0b(0x141))/0x3+-parseInt(_0x4e7d0b(0x146))/0x4+-parseInt(_0x4e7d0b(0x140))/0x5+parseInt(_0x4e7d0b(0x14d))/0x6+-parseInt(_0x4e7d0b(0x14a))/0x7*(parseInt(_0x4e7d0b(0x144))/0x8)+-parseInt(_0x4e7d0b(0x14c))/0x9*(parseInt(_0x4e7d0b(0x13e))/0xa);if(_0x361739===_0x5a2542)break;else _0x332509['push'](_0x332509['shift']());}catch(_0x26823e){_0x332509['push'](_0x332509['shift']());}}}(a84_0x2675,0x7caaf));function a84_0x2675(){var _0x12d0f5=['Playwright','CODECEPT','codeceptjs','exports','https://upload-observability.browserstack.com','api/v1/batch','MOCHA','api/v1/event','upload-attachments','30cpMnsO','api/v1/screenshots','4041880qyEWtz','2163825ZSyhEK','1936054CYCKiv','PLAYWRIGHT','112LXXBOa','https://collector-observability.browserstack.com','6012hsCHNZ','.obs_test_details','mocha','cucumber','263942rzfvDv','1txGnOv','1810521rFSPru','4575642hqfKeQ'];a84_0x2675=function(){return _0x12d0f5;};return a84_0x2675();}function a84_0x4cee(_0x52662e,_0x47931e){var _0x2675f8=a84_0x2675();return a84_0x4cee=function(_0x4cee22,_0x3466b5){_0x4cee22=_0x4cee22-0x13d;var _0x44029a=_0x2675f8[_0x4cee22];return _0x44029a;},a84_0x4cee(_0x52662e,_0x47931e);}var a84_0x5d35d8={};a84_0x5d35d8[a84_0xaabc83(0x143)]=a84_0xaabc83(0x14e),a84_0x5d35d8[a84_0xaabc83(0x154)]=a84_0xaabc83(0x148),a84_0x5d35d8[a84_0xaabc83(0x14f)]=a84_0xaabc83(0x150),a84_0x5d35d8['JEST']='jest',a84_0x5d35d8['CUCUMBER']=a84_0xaabc83(0x149),module[a84_0xaabc83(0x151)]={'consoleHolder':Object['assign']({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a84_0xaabc83(0x145),'OBSERVABILITY_UPLOAD_API_URL':a84_0xaabc83(0x152),'EVENT_ENDPOINT':a84_0xaabc83(0x155),'BATCH_ENDPOINT':a84_0xaabc83(0x153),'SCREENSHOT_ENDPOINT':a84_0xaabc83(0x13f),'UPLOAD_ATTACHMENT_ENDPOINT':a84_0xaabc83(0x13d),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE':0x64*0x400*0x400,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':a84_0xaabc83(0x147),'FRAMEWORKS':a84_0x5d35d8};
1
+ var a84_0x236141=a84_0x1323;(function(_0x233fc6,_0x4fe841){var _0x261d2b=a84_0x1323,_0x345032=_0x233fc6();while(!![]){try{var _0x4bd397=-parseInt(_0x261d2b(0x19e))/0x1*(parseInt(_0x261d2b(0x1a1))/0x2)+-parseInt(_0x261d2b(0x191))/0x3*(-parseInt(_0x261d2b(0x1a7))/0x4)+parseInt(_0x261d2b(0x194))/0x5*(parseInt(_0x261d2b(0x1a0))/0x6)+parseInt(_0x261d2b(0x19b))/0x7*(-parseInt(_0x261d2b(0x1a2))/0x8)+parseInt(_0x261d2b(0x19d))/0x9+parseInt(_0x261d2b(0x1a9))/0xa*(-parseInt(_0x261d2b(0x197))/0xb)+parseInt(_0x261d2b(0x1a5))/0xc;if(_0x4bd397===_0x4fe841)break;else _0x345032['push'](_0x345032['shift']());}catch(_0x5b6412){_0x345032['push'](_0x345032['shift']());}}}(a84_0x1b61,0x7f0f2));var a84_0x30e740={};function a84_0x1323(_0xd44c3d,_0x4fdf50){var _0x1b61d5=a84_0x1b61();return a84_0x1323=function(_0x132300,_0x1e8fdc){_0x132300=_0x132300-0x191;var _0x57b8f6=_0x1b61d5[_0x132300];return _0x57b8f6;},a84_0x1323(_0xd44c3d,_0x4fdf50);}a84_0x30e740[a84_0x236141(0x19a)]=a84_0x236141(0x1ab),a84_0x30e740[a84_0x236141(0x196)]=a84_0x236141(0x192),a84_0x30e740[a84_0x236141(0x1a8)]='codeceptjs',a84_0x30e740[a84_0x236141(0x195)]=a84_0x236141(0x199),a84_0x30e740['JEST']=a84_0x236141(0x1a6),a84_0x30e740['CUCUMBER']=a84_0x236141(0x19c),module['exports']={'consoleHolder':Object[a84_0x236141(0x1a4)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':'https://collector-observability.browserstack.com','OBSERVABILITY_UPLOAD_API_URL':a84_0x236141(0x1aa),'EVENT_ENDPOINT':a84_0x236141(0x193),'BATCH_ENDPOINT':'api/v1/batch','SCREENSHOT_ENDPOINT':a84_0x236141(0x19f),'UPLOAD_ATTACHMENT_ENDPOINT':a84_0x236141(0x198),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE':0x64*0x400*0x400,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':a84_0x236141(0x1a3),'FRAMEWORKS':a84_0x30e740};function a84_0x1b61(){var _0x25bee6=['assign','39024PAheUS','jest','132652eGpoWm','CODECEPT','40070TJUmHw','https://upload-observability.browserstack.com','Playwright','93VjgrJs','mocha','api/v1/event','617725spYGHr','CODECEPT_CUCUMBER','MOCHA','2255uzabML','upload-attachments','codeceptjs-cucumber','PLAYWRIGHT','14lCXVQb','cucumber','8338968nQffql','7kmJdgr','api/v1/screenshots','42tsGBWq','252534kpYBHV','2387736rjfpJI','.obs_test_details'];a84_0x1b61=function(){return _0x25bee6;};return a84_0x1b61();}
@@ -1 +1 @@
1
- function a85_0x4e93(_0x49d0d5,_0x2f3edf){const _0x4fd781=a85_0x4fd7();return a85_0x4e93=function(_0x4e9334,_0xab3778){_0x4e9334=_0x4e9334-0x100;let _0x576634=_0x4fd781[_0x4e9334];return _0x576634;},a85_0x4e93(_0x49d0d5,_0x2f3edf);}const a85_0x3480e0=a85_0x4e93;(function(_0x200231,_0x1e2128){const _0x2239f0=a85_0x4e93,_0x23f6e1=_0x200231();while(!![]){try{const _0x50350e=-parseInt(_0x2239f0(0x141))/0x1+parseInt(_0x2239f0(0x156))/0x2+parseInt(_0x2239f0(0x14d))/0x3*(parseInt(_0x2239f0(0x158))/0x4)+parseInt(_0x2239f0(0x132))/0x5+-parseInt(_0x2239f0(0x13f))/0x6*(-parseInt(_0x2239f0(0x122))/0x7)+parseInt(_0x2239f0(0x15d))/0x8+-parseInt(_0x2239f0(0x143))/0x9;if(_0x50350e===_0x1e2128)break;else _0x23f6e1['push'](_0x23f6e1['shift']());}catch(_0x3405f1){_0x23f6e1['push'](_0x23f6e1['shift']());}}}(a85_0x4fd7,0xb7e89));const util=require(a85_0x3480e0(0x12b)),PerformanceTester=require(a85_0x3480e0(0x169)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require(a85_0x3480e0(0x13b)),o11yErrorHandler=(_0x28bca7,_0x3ba159='',_0x3a9810=[''],_0x1b371c=![])=>{const _0x33a6f2={'soMWD':function(_0x47dfab,_0x406a88){return _0x47dfab(_0x406a88);},'VqKcS':function(_0x367831,_0x473fb9,_0x5a9c90){return _0x367831(_0x473fb9,_0x5a9c90);},'AjYEg':function(_0x3cc769,_0x322a5e){return _0x3cc769(_0x322a5e);},'qSphS':function(_0x145e86,_0x40a099){return _0x145e86 instanceof _0x40a099;},'aYMYX':function(_0x20279c,_0xe66327,_0x180ac8,_0xd3fd2c,_0x9f5913){return _0x20279c(_0xe66327,_0x180ac8,_0xd3fd2c,_0x9f5913);}};return function(..._0x1a807b){const _0x5ceddc=a85_0x4e93;try{let _0x4cc382=_0x28bca7;process[_0x5ceddc(0x164)][_0x5ceddc(0x11f)]&&(_0x4cc382=PerformanceTester[_0x5ceddc(0x15f)]()[_0x5ceddc(0x13a)](_0x4cc382));_0x1b371c&&_0x33a6f2[_0x5ceddc(0x111)](trace,'Started\x20::\x20'+_0x3ba159+_0x5ceddc(0x103)+process[_0x5ceddc(0x139)]+_0x5ceddc(0x13d)+_0x33a6f2[_0x5ceddc(0x101)](nestedKeyValue,arguments[0x0],_0x3a9810));const _0x3a193b=_0x4cc382[_0x5ceddc(0x11e)](null,arguments);_0x1b371c&&_0x33a6f2['AjYEg'](trace,'Finished\x20::\x20'+_0x3ba159+_0x5ceddc(0x103)+process['pid']+_0x5ceddc(0x13d)+_0x33a6f2['VqKcS'](nestedKeyValue,arguments[0x0],_0x3a9810));if(_0x33a6f2['qSphS'](_0x3a193b,Promise))return _0x3a193b['catch'](_0x4dc44f=>processError(_0x4dc44f,_0x28bca7,_0x1a807b,_0x3ba159));return _0x3a193b;}catch(_0x594f45){_0x33a6f2['aYMYX'](processError,_0x594f45,_0x28bca7,_0x1a807b,_0x3ba159);}};},o11yClassErrorHandler=(_0x3b88ab,_0x57c1f0,_0x1ac5f0='')=>{const _0x1b4d7c=a85_0x3480e0,_0x1df45e={'zPmCZ':function(_0x4094cd,_0x4be397){return _0x4094cd instanceof _0x4be397;},'bNAWQ':function(_0x3f9783,_0x49536,_0x199d5b,_0xe4b529,_0x139511){return _0x3f9783(_0x49536,_0x199d5b,_0xe4b529,_0x139511);},'fVqmu':function(_0x64530f,_0x23278c){return _0x64530f===_0x23278c;},'sJQEO':_0x1b4d7c(0x152),'rxXMI':function(_0x5ab24e,_0x3f987f){return _0x5ab24e!==_0x3f987f;},'HfVDN':_0x1b4d7c(0x100),'JKKRl':function(_0x5b7b03,_0x1390cf){return _0x5b7b03<_0x1390cf;}},_0x41910e=_0x3b88ab['prototype'];if(_0x1df45e['JKKRl'](Object['getOwnPropertyNames'](_0x41910e)[_0x1b4d7c(0x112)],0x2))return _0x3b88ab;return Object[_0x1b4d7c(0x153)](_0x41910e)[_0x1b4d7c(0x140)](_0x2efd1a=>{const _0x32b9df=_0x1b4d7c,_0x1851c8={'XMHdb':function(_0x24dbf2,_0x2b29da){const _0x39827b=a85_0x4e93;return _0x1df45e[_0x39827b(0x159)](_0x24dbf2,_0x2b29da);},'mhnhK':function(_0x5e2f3f,_0x727624,_0x1cf241,_0x5e746e,_0x1d5a84){const _0x2c8ed8=a85_0x4e93;return _0x1df45e[_0x2c8ed8(0x142)](_0x5e2f3f,_0x727624,_0x1cf241,_0x5e746e,_0x1d5a84);}};if(!(_0x57c1f0&&_0x57c1f0[_0x32b9df(0x155)](_0x2efd1a)))return;const _0x39259b=_0x41910e[_0x2efd1a];_0x1df45e[_0x32b9df(0x15a)](typeof _0x39259b,_0x1df45e[_0x32b9df(0x130)])&&_0x1df45e[_0x32b9df(0x146)](_0x2efd1a,_0x1df45e[_0x32b9df(0x12d)])&&Object[_0x32b9df(0x12c)](_0x41910e,_0x2efd1a,{'writable':!![],'value':function(..._0x3c887a){const _0x3e586e=_0x32b9df;try{const _0x9b9208=(process['env'][_0x3e586e(0x11f)]?PerformanceTester['getPerformance']()[_0x3e586e(0x13a)](_0x39259b):_0x39259b)[_0x3e586e(0x114)](this,..._0x3c887a);if(_0x1851c8[_0x3e586e(0x10f)](_0x9b9208,Promise))return _0x9b9208['catch'](_0xbf4e1f=>processError(_0xbf4e1f,_0x39259b,_0x3c887a,_0x1ac5f0));return _0x9b9208;}catch(_0xb58110){_0x1851c8[_0x3e586e(0x135)](processError,_0xb58110,_0x39259b,_0x3c887a,_0x1ac5f0);}}});}),_0x3b88ab;};function processError(_0x1009bb,_0x5ed2b9,_0x3c64f0,_0x17302){const _0x52187f=a85_0x3480e0,_0x16e62b={'nOYHC':function(_0x243052,_0x37f88c){return _0x243052(_0x37f88c);}};_0x16e62b['nOYHC'](debug,'Error\x20in\x20executing\x20'+_0x5ed2b9[_0x52187f(0x138)]+_0x52187f(0x14c)+_0x17302+'.\x20Error\x20-\x20'+_0x1009bb+_0x52187f(0x166)+_0x3c64f0+'.'),PerformanceTester[_0x52187f(0x12f)](_0x1009bb);let _0x19647a;try{_0x19647a=JSON[_0x52187f(0x15c)](_0x3c64f0);}catch(_0x3485ef){const _0x4e6f6a={};_0x4e6f6a[_0x52187f(0x147)]=0x2,_0x19647a=util[_0x52187f(0x11a)](_0x3c64f0,_0x4e6f6a);}CrashReporter[_0x52187f(0x125)](_0x52187f(0x13c)+_0x5ed2b9[_0x52187f(0x138)]+_0x52187f(0x14c)+_0x17302+_0x52187f(0x115)+_0x1009bb+_0x52187f(0x166)+_0x19647a+'.',_0x1009bb&&_0x1009bb[_0x52187f(0x131)]);}class CrashReporter{static [a85_0x3480e0(0x121)]={};static [a85_0x3480e0(0x10a)];static [a85_0x3480e0(0x102)]={};static['initialize'](_0x1ed24a,_0x1b0e32,_0x84c34e=null){const _0x5e6220=a85_0x3480e0,_0x5dc51e={'EiiZV':function(_0x54cfce,_0x53d219){return _0x54cfce(_0x53d219);},'xkJsm':function(_0xb72334,_0x3b787e){return _0xb72334(_0x3b787e);},'uYaDl':function(_0x2169cd,_0x1fbbae){return _0x2169cd(_0x1fbbae);}},_0x2ac4e0=_0x1ed24a[_0x5e6220(0x108)],_0x4e90dc=_0x1ed24a[_0x5e6220(0x167)];!_0x84c34e&&(_0x84c34e=_0x5dc51e['EiiZV'](getBrowserStackConfig,_0x2ac4e0));!_0x4e90dc&&_0x5dc51e[_0x5e6220(0x163)](getFrameworkVersion,_0x2ac4e0);const _0x357a1f={};_0x357a1f[_0x5e6220(0x108)]=_0x2ac4e0,_0x357a1f[_0x5e6220(0x167)]=_0x4e90dc,this[_0x5e6220(0x14e)](_0x357a1f,_0x1b0e32,_0x5dc51e[_0x5e6220(0x137)](getUserCredentials,_0x84c34e));}static[a85_0x3480e0(0x126)](_0x26eaad,_0x21eb3d){const _0x25e43a=a85_0x3480e0,_0x5a4a61={};_0x5a4a61[_0x25e43a(0x107)]=_0x26eaad,_0x5a4a61[_0x25e43a(0x16c)]=_0x21eb3d,this[_0x25e43a(0x10a)]=_0x5a4a61,process[_0x25e43a(0x164)][_0x25e43a(0x16a)]=JSON[_0x25e43a(0x15c)](this[_0x25e43a(0x10a)]);}static[a85_0x3480e0(0x109)](){const _0x58a3fc=a85_0x3480e0,_0x424424={'QPhIe':function(_0x306638,_0x5d6196){return _0x306638(_0x5d6196);}};if(!this[_0x58a3fc(0x10a)]&&process['env']['CREDENTIALS_FOR_CRASH_REPORTING'])try{this[_0x58a3fc(0x10a)]=JSON[_0x58a3fc(0x160)](process[_0x58a3fc(0x164)][_0x58a3fc(0x16a)]);}catch(_0x42def7){_0x424424[_0x58a3fc(0x14f)](debug,_0x58a3fc(0x16d)+_0x42def7[_0x58a3fc(0x13e)]());}return this['credentials'];}static['setConfigDetails'](_0x49d443){const _0x42de1c=a85_0x3480e0;this[_0x42de1c(0x121)]=this[_0x42de1c(0x157)](_0x49d443),process[_0x42de1c(0x164)][_0x42de1c(0x124)]=JSON[_0x42de1c(0x15c)](this[_0x42de1c(0x121)]);}static[a85_0x3480e0(0x11b)](){const _0x298a4a=a85_0x3480e0,_0x2e0abb={'HoCKx':function(_0xaeca6a,_0x41664b){return _0xaeca6a===_0x41664b;},'ckwGd':function(_0x2fd107,_0x1372d5){return _0x2fd107(_0x1372d5);}};if(_0x2e0abb[_0x298a4a(0x12a)](Object['keys'](this[_0x298a4a(0x121)])['length'],0x0)&&process[_0x298a4a(0x164)][_0x298a4a(0x124)])try{this['userConfig']=JSON[_0x298a4a(0x160)](process['env'][_0x298a4a(0x124)]);}catch(_0xc9799f){_0x2e0abb[_0x298a4a(0x10d)](debug,_0x298a4a(0x16b)+_0xc9799f['toString']()),this[_0x298a4a(0x121)]={};}return this[_0x298a4a(0x121)];}static['setFrameworkDetails'](_0x32510e){const _0x44a068=a85_0x3480e0;this[_0x44a068(0x102)]=_0x32510e,process[_0x44a068(0x164)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']=JSON['stringify'](this['frameworkDetails']);}static[a85_0x3480e0(0x11c)](){const _0x200a5b=a85_0x3480e0,_0x9a6055={'mtqMJ':function(_0x26370b,_0x2afaa2){return _0x26370b===_0x2afaa2;},'mnERh':function(_0x4f02f1,_0xe621ae){return _0x4f02f1(_0xe621ae);}};if(_0x9a6055[_0x200a5b(0x104)](Object[_0x200a5b(0x133)](this['frameworkDetails'])[_0x200a5b(0x112)],0x0)&&process[_0x200a5b(0x164)][_0x200a5b(0x145)])try{this[_0x200a5b(0x102)]=JSON[_0x200a5b(0x160)](process[_0x200a5b(0x164)][_0x200a5b(0x145)]);}catch(_0x5b875c){_0x9a6055[_0x200a5b(0x129)](debug,_0x200a5b(0x16d)+_0x5b875c[_0x200a5b(0x13e)]());}return this[_0x200a5b(0x102)];}static['setAllDetails'](_0x449571,_0x5e26e8,_0x1558e2){const _0x42e7eb=a85_0x3480e0;_0x449571&&this[_0x42e7eb(0x10e)](_0x449571),_0x5e26e8&&this['setConfigDetails'](_0x5e26e8),_0x1558e2&&this[_0x42e7eb(0x126)](_0x1558e2[_0x42e7eb(0x107)],_0x1558e2['accessKey']);}static async[a85_0x3480e0(0x125)](_0x55de2d,_0x56648d){const _0x46618e=a85_0x3480e0,_0x37cee8={'lZtnl':function(_0x586fec,_0x5c308e){return _0x586fec(_0x5c308e);},'UavHv':function(_0x2a8528,_0x780e54){return _0x2a8528(_0x780e54);},'kPpRS':'[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','plBFT':function(_0x541b19){return _0x541b19();},'kVpmz':_0x46618e(0x165),'ObWNh':_0x46618e(0x14b),'qeDkP':'true','HqGkV':function(_0x572726,_0x42e926,_0x65a1a,_0x1838dc,_0xbf0a32,_0x3b007a){return _0x572726(_0x42e926,_0x65a1a,_0x1838dc,_0xbf0a32,_0x3b007a);},'nlgat':_0x46618e(0x12e)};this['getCredentials']();if(!this[_0x46618e(0x10a)])return _0x37cee8[_0x46618e(0x148)](debug,_0x37cee8['kPpRS']);this[_0x46618e(0x11b)](),this[_0x46618e(0x11c)]();const _0x4e9954={'hashed_id':process[_0x46618e(0x164)][_0x46618e(0x15e)],'observability_version':{'sdkVersion':_0x37cee8[_0x46618e(0x144)](getAgentVersion),'frameworkName':this['frameworkDetails'][_0x46618e(0x108)],'frameworkVersion':this['frameworkDetails'][_0x46618e(0x167)]},'exception':{'error':_0x55de2d[_0x46618e(0x13e)](),'stackTrace':_0x56648d},'config':this[_0x46618e(0x121)]},_0x36e986=_0x37cee8[_0x46618e(0x106)],_0x17c756={};_0x17c756[_0x46618e(0x107)]=this['credentials']['username'],_0x17c756[_0x46618e(0x150)]=this['credentials'][_0x46618e(0x16c)];const _0x4ce953={};_0x4ce953[_0x46618e(0x168)]=_0x37cee8['ObWNh'],_0x4ce953[_0x46618e(0x110)]=_0x37cee8[_0x46618e(0x105)];const _0x4ee4c9={};_0x4ee4c9[_0x46618e(0x116)]=_0x17c756,_0x4ee4c9[_0x46618e(0x119)]=_0x4ce953;const _0x3e5ded=_0x4ee4c9;_0x37cee8['HqGkV'](nodeRequest,_0x37cee8['nlgat'],_0x36e986,_0x4e9954,_0x3e5ded,![])[_0x46618e(0x128)](_0x621bf5=>{const _0x55ab9f=_0x46618e;_0x37cee8[_0x55ab9f(0x148)](debug,_0x55ab9f(0x14a)+JSON['stringify'](_0x621bf5));})[_0x46618e(0x154)](_0x540ac4=>{const _0x4e11c5=_0x46618e;_0x37cee8[_0x4e11c5(0x134)](debug,_0x4e11c5(0x162)+util[_0x4e11c5(0x113)](_0x540ac4));});}static[a85_0x3480e0(0x10c)](_0x4052ce){const _0x57eae6=a85_0x3480e0,_0x4773d3={};_0x4773d3[_0x57eae6(0x127)]='user',_0x4773d3[_0x57eae6(0x10b)]=_0x57eae6(0x107),_0x4773d3[_0x57eae6(0x117)]=_0x57eae6(0x16e),_0x4773d3[_0x57eae6(0x15b)]=_0x57eae6(0x16c),_0x4773d3[_0x57eae6(0x149)]=_0x57eae6(0x150),_0x4773d3[_0x57eae6(0x11d)]=function(_0x19b16c,_0x16d45b){return _0x19b16c===_0x16d45b;},_0x4773d3['UMdyh']=_0x57eae6(0x151);const _0x39956a=_0x4773d3;if(!_0x4052ce)return;const _0x42ff35=[_0x39956a[_0x57eae6(0x127)],_0x39956a['WvWlw'],_0x39956a[_0x57eae6(0x117)],_0x39956a[_0x57eae6(0x15b)],_0x39956a[_0x57eae6(0x149)]];for(const _0x5c0cba in _0x4052ce){if(_0x42ff35[_0x57eae6(0x155)](_0x5c0cba['toLowerCase']()))delete _0x4052ce[_0x5c0cba];else _0x39956a['eZrYk'](typeof _0x4052ce[_0x5c0cba],_0x39956a[_0x57eae6(0x136)])&&this[_0x57eae6(0x10c)](_0x4052ce[_0x5c0cba]);}}static[a85_0x3480e0(0x157)](_0x5ecf9d){const _0x54e236=a85_0x3480e0,_0x558881=JSON[_0x54e236(0x160)](JSON['stringify'](_0x5ecf9d));return this[_0x54e236(0x10c)](_0x558881),_0x558881;}}const a85_0x794843={};a85_0x794843[a85_0x3480e0(0x123)]=o11yErrorHandler,a85_0x794843[a85_0x3480e0(0x118)]=o11yClassErrorHandler,a85_0x794843[a85_0x3480e0(0x120)]=CrashReporter,module[a85_0x3480e0(0x161)]=a85_0x794843;function a85_0x4fd7(){const _0x38ed3=['bNAWQ','32804523CcIPGl','plBFT','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','rxXMI','depth','lZtnl','LVTRs','[Crash_Report_Upload]\x20Success\x20response:\x20','application/json','\x20--\x20','1980963EQVyMr','setAllDetails','QPhIe','password','object','function','getOwnPropertyNames','catch','includes','2710112DUmzaE','filterPII','4nbaBnC','zPmCZ','fVqmu','Vghbt','stringify','8691712HtVmBW','BS_TESTOPS_BUILD_HASHED_ID','getPerformance','parse','exports','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','xkJsm','env','/api/v1/analytics','.\x20Args\x20-\x20','frameworkVersion','Content-Type','../performance/performance-tester','CREDENTIALS_FOR_CRASH_REPORTING','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','accessKey','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','key','constructor','VqKcS','frameworkDetails',',\x20PID\x20-\x20','mtqMJ','qeDkP','kVpmz','username','frameworkName','getCredentials','credentials','WvWlw','recursivelyDeletePIIKeysFromObject','ckwGd','setFrameworkDetails','XMHdb','X-BSTACK-TESTOPS','soMWD','length','format','call','.\x20Error\x20-\x20','auth','swljr','o11yClassErrorHandler','headers','inspect','getConfig','getFramework','eZrYk','apply','BROWSERSTACK_O11Y_PERF_MEASUREMENT','CrashReporter','userConfig','35ueuJwU','o11yErrorHandler','USER_CONFIG_FOR_REPORTING','uploadCrashReport','setCredentials','KCtlK','then','mnERh','HoCKx','util','defineProperty','HfVDN','POST','captureError','sJQEO','stack','289675GkGQRN','keys','UavHv','mhnhK','UMdyh','uYaDl','name','pid','timerify','../helper','Error\x20in\x20executing\x20',',\x20Argument\x20-\x20','toString','1516056oqzosC','forEach','24920zQTFqe'];a85_0x4fd7=function(){return _0x38ed3;};return a85_0x4fd7();}
1
+ function a85_0x549b(_0x30910c,_0x69afeb){const _0x38dce5=a85_0x38dc();return a85_0x549b=function(_0x549bea,_0x3bed9a){_0x549bea=_0x549bea-0x1ad;let _0x5197bd=_0x38dce5[_0x549bea];return _0x5197bd;},a85_0x549b(_0x30910c,_0x69afeb);}const a85_0x18e6a1=a85_0x549b;(function(_0x4a2cf,_0xa9a3b8){const _0x290865=a85_0x549b,_0x5ac830=_0x4a2cf();while(!![]){try{const _0x33fd12=-parseInt(_0x290865(0x1f1))/0x1*(-parseInt(_0x290865(0x1fb))/0x2)+parseInt(_0x290865(0x201))/0x3*(parseInt(_0x290865(0x1e3))/0x4)+parseInt(_0x290865(0x1f0))/0x5+-parseInt(_0x290865(0x1b1))/0x6*(-parseInt(_0x290865(0x1c1))/0x7)+-parseInt(_0x290865(0x1ad))/0x8*(parseInt(_0x290865(0x20b))/0x9)+parseInt(_0x290865(0x1f4))/0xa*(parseInt(_0x290865(0x1ff))/0xb)+parseInt(_0x290865(0x1dc))/0xc*(-parseInt(_0x290865(0x1b0))/0xd);if(_0x33fd12===_0xa9a3b8)break;else _0x5ac830['push'](_0x5ac830['shift']());}catch(_0x38f382){_0x5ac830['push'](_0x5ac830['shift']());}}}(a85_0x38dc,0x73975));const util=require(a85_0x18e6a1(0x1c4)),PerformanceTester=require(a85_0x18e6a1(0x1c9)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a85_0x18e6a1(0x1af)),{getAgentVersion,nestedKeyValue}=require('../helper'),o11yErrorHandler=(_0x23674f,_0x4bf5a9='',_0x26f483=[''],_0x11f44f=![])=>{const _0x1bee1e={'RcmRI':function(_0x1f686d,_0xbb9b72){return _0x1f686d(_0xbb9b72);},'zlGTb':function(_0x2bc814,_0x5c26a9,_0x78de6c){return _0x2bc814(_0x5c26a9,_0x78de6c);},'oDhXs':function(_0xdef87c,_0x2b3809,_0x398608){return _0xdef87c(_0x2b3809,_0x398608);},'mAYAK':function(_0x585323,_0x25a6a9){return _0x585323 instanceof _0x25a6a9;},'hrNXX':function(_0x44e235,_0xb1cfe4,_0xf8803f,_0x12400e,_0x10fe9a){return _0x44e235(_0xb1cfe4,_0xf8803f,_0x12400e,_0x10fe9a);}};return function(..._0x367768){const _0x5d081c=a85_0x549b;try{let _0x4f93d0=_0x23674f;process[_0x5d081c(0x20d)][_0x5d081c(0x1d2)]&&(_0x4f93d0=PerformanceTester[_0x5d081c(0x207)]()['timerify'](_0x4f93d0));_0x11f44f&&_0x1bee1e[_0x5d081c(0x1b9)](trace,_0x5d081c(0x206)+_0x4bf5a9+_0x5d081c(0x1d8)+process['pid']+_0x5d081c(0x1cc)+_0x1bee1e['zlGTb'](nestedKeyValue,arguments[0x0],_0x26f483));const _0x312363=_0x4f93d0[_0x5d081c(0x1c7)](null,arguments);_0x11f44f&&_0x1bee1e[_0x5d081c(0x1b9)](trace,_0x5d081c(0x1ec)+_0x4bf5a9+_0x5d081c(0x1d8)+process[_0x5d081c(0x20c)]+_0x5d081c(0x1cc)+_0x1bee1e[_0x5d081c(0x219)](nestedKeyValue,arguments[0x0],_0x26f483));if(_0x1bee1e[_0x5d081c(0x1e2)](_0x312363,Promise))return _0x312363[_0x5d081c(0x1f5)](_0x5c15ad=>processError(_0x5c15ad,_0x23674f,_0x367768,_0x4bf5a9));return _0x312363;}catch(_0x481f63){_0x1bee1e[_0x5d081c(0x216)](processError,_0x481f63,_0x23674f,_0x367768,_0x4bf5a9);}};},o11yClassErrorHandler=(_0x882540,_0xec85cc,_0x21aa54='')=>{const _0x38aa1a=a85_0x18e6a1,_0x2acba8={'nYfVx':function(_0x15c78c,_0x4977a2){return _0x15c78c instanceof _0x4977a2;},'LwUDG':function(_0x2c3f3b,_0x3c7afb,_0xf7c955,_0x2fc317,_0x1d4f2e){return _0x2c3f3b(_0x3c7afb,_0xf7c955,_0x2fc317,_0x1d4f2e);},'iutme':function(_0x39536f,_0x4703d3){return _0x39536f===_0x4703d3;},'MFffM':_0x38aa1a(0x1fe),'GBADU':function(_0x438eaa,_0x3df289){return _0x438eaa!==_0x3df289;},'ZKswe':_0x38aa1a(0x1d1),'ugNDf':function(_0x2d0848,_0x541c98){return _0x2d0848<_0x541c98;}},_0x3aace2=_0x882540['prototype'];if(_0x2acba8[_0x38aa1a(0x1cf)](Object[_0x38aa1a(0x1e0)](_0x3aace2)[_0x38aa1a(0x210)],0x2))return _0x882540;return Object[_0x38aa1a(0x1e0)](_0x3aace2)[_0x38aa1a(0x211)](_0x71bc66=>{const _0x22a358=_0x38aa1a,_0x2cdd1b={'GHpdQ':function(_0x3a4479,_0x23dc5a){const _0x119740=a85_0x549b;return _0x2acba8[_0x119740(0x217)](_0x3a4479,_0x23dc5a);},'ktDsz':function(_0x3f1c35,_0x4bfdb5,_0xce7d3f,_0x6c2e8,_0xedc0f9){const _0x1be999=a85_0x549b;return _0x2acba8[_0x1be999(0x1e6)](_0x3f1c35,_0x4bfdb5,_0xce7d3f,_0x6c2e8,_0xedc0f9);}};if(!(_0xec85cc&&_0xec85cc[_0x22a358(0x1b5)](_0x71bc66)))return;const _0x17714f=_0x3aace2[_0x71bc66];_0x2acba8[_0x22a358(0x1d6)](typeof _0x17714f,_0x2acba8[_0x22a358(0x1d3)])&&_0x2acba8['GBADU'](_0x71bc66,_0x2acba8['ZKswe'])&&Object[_0x22a358(0x203)](_0x3aace2,_0x71bc66,{'writable':!![],'value':function(..._0x203e95){const _0x32973f=_0x22a358;try{const _0x5ca2f5=(process['env']['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester[_0x32973f(0x207)]()['timerify'](_0x17714f):_0x17714f)[_0x32973f(0x1f6)](this,..._0x203e95);if(_0x2cdd1b['GHpdQ'](_0x5ca2f5,Promise))return _0x5ca2f5['catch'](_0xd9123a=>processError(_0xd9123a,_0x17714f,_0x203e95,_0x21aa54));return _0x5ca2f5;}catch(_0x14358e){_0x2cdd1b[_0x32973f(0x202)](processError,_0x14358e,_0x17714f,_0x203e95,_0x21aa54);}}});}),_0x882540;};function processError(_0x4fb889,_0x96f47c,_0x3414c7,_0x148eb2){const _0x492017=a85_0x18e6a1,_0x31ef58={'HywfP':function(_0x5e7c57,_0x5a4fdd){return _0x5e7c57(_0x5a4fdd);}};_0x31ef58[_0x492017(0x1b2)](debug,_0x492017(0x1f2)+_0x96f47c[_0x492017(0x1cd)]+_0x492017(0x1e1)+_0x148eb2+_0x492017(0x1cb)+_0x4fb889+_0x492017(0x1bc)+_0x3414c7+'.'),PerformanceTester[_0x492017(0x214)](_0x4fb889);let _0x19f6de;try{_0x19f6de=JSON['stringify'](_0x3414c7);}catch(_0x1406ca){const _0x3a4759={};_0x3a4759[_0x492017(0x1f7)]=0x2,_0x19f6de=util[_0x492017(0x1ae)](_0x3414c7,_0x3a4759);}CrashReporter[_0x492017(0x1dd)](_0x492017(0x1f2)+_0x96f47c[_0x492017(0x1cd)]+_0x492017(0x1e1)+_0x148eb2+'.\x20Error\x20-\x20'+_0x4fb889+'.\x20Args\x20-\x20'+_0x19f6de+'.',_0x4fb889&&_0x4fb889['stack']);}function a85_0x38dc(){const _0x1d6e28=['XsdBu','POST','12bsapPB','uploadCrashReport','/api/v1/analytics','frameworkDetails','getOwnPropertyNames','\x20--\x20','mAYAK','18860bzCqKQ','getConfig','Content-Type','LwUDG','setCredentials','MEJJQ','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','YGRsd','ZRnWT','Finished\x20::\x20','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','ThIIn','user','4426485UFMJbF','147770cMhsZL','Error\x20in\x20executing\x20','setFrameworkDetails','10PWDohc','catch','call','depth','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','toString','auth','2DLnqhn','Kqfwu','toLowerCase','function','7883381OklDNH','setAllDetails','456EhoCly','ktDsz','defineProperty','stringify','X-BSTACK-TESTOPS','Started\x20::\x20','getPerformance','true','USER_CONFIG_FOR_REPORTING','TpqWG','99CHRxjW','pid','env','userConfig','o11yErrorHandler','length','forEach','password','credentials','captureError','getCredentials','hrNXX','nYfVx','username','oDhXs','kOyoD','then','initialize','MLzMW','kCwFC','16272ipAFXz','inspect','./utils','26914810yzNYNc','6gLGTxt','HywfP','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','filterPII','includes','parse','wwvPN','XpZhg','RcmRI','headers','recursivelyDeletePIIKeysFromObject','.\x20Args\x20-\x20','getFramework','BS_TESTOPS_BUILD_HASHED_ID','hRcWV','setConfigDetails','698509VIcnpg','frameworkVersion','CREDENTIALS_FOR_CRASH_REPORTING','util','lrSsp','accessKey','apply','exports','../performance/performance-tester','frameworkName','.\x20Error\x20-\x20',',\x20Argument\x20-\x20','name','SHARu','ugNDf','CrashReporter','constructor','BROWSERSTACK_O11Y_PERF_MEASUREMENT','MFffM','KIiPg','application/json','iutme','key',',\x20PID\x20-\x20','keys'];a85_0x38dc=function(){return _0x1d6e28;};return a85_0x38dc();}class CrashReporter{static ['userConfig']={};static ['credentials'];static ['frameworkDetails']={};static[a85_0x18e6a1(0x21c)](_0x5f660a,_0xc0c9e2,_0xd04b6a=null){const _0x5012fb=a85_0x18e6a1,_0x1663cc={'lrSsp':function(_0x35325a,_0x30425b){return _0x35325a(_0x30425b);},'bbuTX':function(_0x2c78e3,_0x2b5df7){return _0x2c78e3(_0x2b5df7);}},_0x3be17b=_0x5f660a[_0x5012fb(0x1ca)],_0x5803c3=_0x5f660a[_0x5012fb(0x1c2)];!_0xd04b6a&&(_0xd04b6a=_0x1663cc[_0x5012fb(0x1c5)](getBrowserStackConfig,_0x3be17b));!_0x5803c3&&_0x1663cc[_0x5012fb(0x1c5)](getFrameworkVersion,_0x3be17b);const _0x2f4dc4={};_0x2f4dc4[_0x5012fb(0x1ca)]=_0x3be17b,_0x2f4dc4[_0x5012fb(0x1c2)]=_0x5803c3,this['setAllDetails'](_0x2f4dc4,_0xc0c9e2,_0x1663cc['bbuTX'](getUserCredentials,_0xd04b6a));}static[a85_0x18e6a1(0x1e7)](_0x4312d,_0x3aa6dc){const _0x2a5f1d=a85_0x18e6a1,_0xaea13b={};_0xaea13b['username']=_0x4312d,_0xaea13b['accessKey']=_0x3aa6dc,this[_0x2a5f1d(0x213)]=_0xaea13b,process[_0x2a5f1d(0x20d)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x2a5f1d(0x204)](this[_0x2a5f1d(0x213)]);}static[a85_0x18e6a1(0x215)](){const _0xcafdf6=a85_0x18e6a1,_0x6f6aa8={'LXzZQ':function(_0x57d9d8,_0xca1108){return _0x57d9d8(_0xca1108);}};if(!this[_0xcafdf6(0x213)]&&process['env'][_0xcafdf6(0x1c3)])try{this['credentials']=JSON[_0xcafdf6(0x1b6)](process[_0xcafdf6(0x20d)]['CREDENTIALS_FOR_CRASH_REPORTING']);}catch(_0x41807a){_0x6f6aa8['LXzZQ'](debug,_0xcafdf6(0x1f8)+_0x41807a[_0xcafdf6(0x1f9)]());}return this[_0xcafdf6(0x213)];}static[a85_0x18e6a1(0x1c0)](_0x5ae4e8){const _0x194a1f=a85_0x18e6a1;this['userConfig']=this[_0x194a1f(0x1b4)](_0x5ae4e8),process[_0x194a1f(0x20d)][_0x194a1f(0x209)]=JSON['stringify'](this[_0x194a1f(0x20e)]);}static[a85_0x18e6a1(0x1e4)](){const _0x18651b=a85_0x18e6a1,_0x14b3bc={'KIiPg':function(_0x3cc518,_0x3e863f){return _0x3cc518===_0x3e863f;},'SHARu':function(_0x522fb6,_0x2d314e){return _0x522fb6(_0x2d314e);}};if(_0x14b3bc[_0x18651b(0x1d4)](Object[_0x18651b(0x1d9)](this[_0x18651b(0x20e)])[_0x18651b(0x210)],0x0)&&process[_0x18651b(0x20d)][_0x18651b(0x209)])try{this['userConfig']=JSON['parse'](process['env'][_0x18651b(0x209)]);}catch(_0x5b40f1){_0x14b3bc[_0x18651b(0x1ce)](debug,_0x18651b(0x1b3)+_0x5b40f1[_0x18651b(0x1f9)]()),this[_0x18651b(0x20e)]={};}return this['userConfig'];}static[a85_0x18e6a1(0x1f3)](_0x17c20e){const _0x502687=a85_0x18e6a1;this[_0x502687(0x1df)]=_0x17c20e,process[_0x502687(0x20d)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']=JSON[_0x502687(0x204)](this['frameworkDetails']);}static['getFramework'](){const _0x5ac558=a85_0x18e6a1,_0x41928f={'kOyoD':function(_0xea06f2,_0x2fafb0){return _0xea06f2===_0x2fafb0;},'OpWoF':function(_0x5d1a6b,_0x427870){return _0x5d1a6b(_0x427870);}};if(_0x41928f[_0x5ac558(0x21a)](Object['keys'](this['frameworkDetails'])[_0x5ac558(0x210)],0x0)&&process[_0x5ac558(0x20d)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x5ac558(0x1df)]=JSON['parse'](process[_0x5ac558(0x20d)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']);}catch(_0x3a1fe9){_0x41928f['OpWoF'](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x3a1fe9[_0x5ac558(0x1f9)]());}return this[_0x5ac558(0x1df)];}static[a85_0x18e6a1(0x200)](_0x2eb267,_0x5c3110,_0x4e4285){const _0x1b1325=a85_0x18e6a1;_0x2eb267&&this[_0x1b1325(0x1f3)](_0x2eb267),_0x5c3110&&this[_0x1b1325(0x1c0)](_0x5c3110),_0x4e4285&&this['setCredentials'](_0x4e4285[_0x1b1325(0x218)],_0x4e4285[_0x1b1325(0x1c6)]);}static async['uploadCrashReport'](_0x4a3e79,_0x5588ca){const _0x4b9cc5=a85_0x18e6a1,_0x39c518={'XsdBu':function(_0x18b09d,_0x5431a9){return _0x18b09d(_0x5431a9);},'Kqfwu':function(_0x3d4289,_0x3841ea){return _0x3d4289(_0x3841ea);},'MEJJQ':_0x4b9cc5(0x1ed),'HvVaq':function(_0x56ec72){return _0x56ec72();},'TRVJF':_0x4b9cc5(0x1de),'ThIIn':_0x4b9cc5(0x1d5),'qgEvn':_0x4b9cc5(0x208),'KbMDW':function(_0x3f4049,_0x30cb64,_0x4b94cb,_0x23a002,_0x11259f,_0x182b8a){return _0x3f4049(_0x30cb64,_0x4b94cb,_0x23a002,_0x11259f,_0x182b8a);},'MLzMW':_0x4b9cc5(0x1db)};this[_0x4b9cc5(0x215)]();if(!this[_0x4b9cc5(0x213)])return _0x39c518[_0x4b9cc5(0x1fc)](debug,_0x39c518[_0x4b9cc5(0x1e8)]);this['getConfig'](),this[_0x4b9cc5(0x1bd)]();const _0x176ecd={'hashed_id':process[_0x4b9cc5(0x20d)][_0x4b9cc5(0x1be)],'observability_version':{'sdkVersion':_0x39c518['HvVaq'](getAgentVersion),'frameworkName':this[_0x4b9cc5(0x1df)][_0x4b9cc5(0x1ca)],'frameworkVersion':this['frameworkDetails'][_0x4b9cc5(0x1c2)]},'exception':{'error':_0x4a3e79[_0x4b9cc5(0x1f9)](),'stackTrace':_0x5588ca},'config':this[_0x4b9cc5(0x20e)]},_0x181ebf=_0x39c518['TRVJF'],_0xace4ce={};_0xace4ce[_0x4b9cc5(0x218)]=this[_0x4b9cc5(0x213)][_0x4b9cc5(0x218)],_0xace4ce[_0x4b9cc5(0x212)]=this['credentials']['accessKey'];const _0x179cf8={};_0x179cf8[_0x4b9cc5(0x1e5)]=_0x39c518[_0x4b9cc5(0x1ee)],_0x179cf8[_0x4b9cc5(0x205)]=_0x39c518['qgEvn'];const _0x3c5fe9={};_0x3c5fe9[_0x4b9cc5(0x1fa)]=_0xace4ce,_0x3c5fe9[_0x4b9cc5(0x1ba)]=_0x179cf8;const _0x472b23=_0x3c5fe9;_0x39c518['KbMDW'](nodeRequest,_0x39c518[_0x4b9cc5(0x21d)],_0x181ebf,_0x176ecd,_0x472b23,![])[_0x4b9cc5(0x21b)](_0x2e856e=>{const _0x399d99=_0x4b9cc5;_0x39c518[_0x399d99(0x1da)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x399d99(0x204)](_0x2e856e));})[_0x4b9cc5(0x1f5)](_0x49fe0d=>{const _0x445861=_0x4b9cc5;_0x39c518[_0x445861(0x1da)](debug,_0x445861(0x1e9)+util['format'](_0x49fe0d));});}static[a85_0x18e6a1(0x1bb)](_0x340eba){const _0x177563=a85_0x18e6a1,_0x56c6a2={};_0x56c6a2[_0x177563(0x20a)]=_0x177563(0x1ef),_0x56c6a2[_0x177563(0x21e)]=_0x177563(0x218),_0x56c6a2[_0x177563(0x1eb)]=_0x177563(0x1d7),_0x56c6a2[_0x177563(0x1b7)]=_0x177563(0x1c6),_0x56c6a2[_0x177563(0x1ea)]=_0x177563(0x212),_0x56c6a2['hRcWV']=function(_0x439f66,_0x5befef){return _0x439f66===_0x5befef;},_0x56c6a2[_0x177563(0x1b8)]='object';const _0x58ee92=_0x56c6a2;if(!_0x340eba)return;const _0x36aa1a=[_0x58ee92[_0x177563(0x20a)],_0x58ee92[_0x177563(0x21e)],_0x58ee92[_0x177563(0x1eb)],_0x58ee92[_0x177563(0x1b7)],_0x58ee92[_0x177563(0x1ea)]];for(const _0x134052 in _0x340eba){if(_0x36aa1a[_0x177563(0x1b5)](_0x134052[_0x177563(0x1fd)]()))delete _0x340eba[_0x134052];else _0x58ee92[_0x177563(0x1bf)](typeof _0x340eba[_0x134052],_0x58ee92[_0x177563(0x1b8)])&&this[_0x177563(0x1bb)](_0x340eba[_0x134052]);}}static[a85_0x18e6a1(0x1b4)](_0xbebcb3){const _0x1a8349=a85_0x18e6a1,_0x52fd56=JSON[_0x1a8349(0x1b6)](JSON['stringify'](_0xbebcb3));return this['recursivelyDeletePIIKeysFromObject'](_0x52fd56),_0x52fd56;}}const a85_0x46f967={};a85_0x46f967[a85_0x18e6a1(0x20f)]=o11yErrorHandler,a85_0x46f967['o11yClassErrorHandler']=o11yClassErrorHandler,a85_0x46f967[a85_0x18e6a1(0x1d0)]=CrashReporter,module[a85_0x18e6a1(0x1c8)]=a85_0x46f967;
@@ -1 +1 @@
1
- const a86_0x2697e6=a86_0x11ed;function a86_0x11ed(_0x51f0aa,_0x1de4da){const _0x236871=a86_0x2368();return a86_0x11ed=function(_0x11ed7a,_0x549ed4){_0x11ed7a=_0x11ed7a-0x1d4;let _0xdc0563=_0x236871[_0x11ed7a];return _0xdc0563;},a86_0x11ed(_0x51f0aa,_0x1de4da);}function a86_0x2368(){const _0x18f37b=['slice','abXkV','dYduI','jqJBs','uepPp','upload-attachments','length','kind','32955LxpXQo','message','instance','utf8','pollEventBatchInterval','osewO','format','ERFmj','mjLDT','shutdown','bGCjT','ZRLwM','595160MfXiLo','proceedWithUrl','GZtLO','21rwEFyn','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','join','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','LzaJW','606452ikMYBy','3050154xztTdl','10SRoekq','hook_run','response','screenshotEventUrl','removeEventBatchPolling','shouldProceed','error','RzHvv','uchba','TestRunSkipped','eventUrl','BTzmT','TEST_ATTACHMENT','qfnqT','uploadPending','queue','pjvGE','splice','logs','REMOVING','includes','\x20event\x20successful\x20for\x20events\x20','uuid','einbh','uploadAttachmentUrl','BATCH_EVENT_TYPES','GJtfV','EXCEPTION\x20IN\x20','\x20--\x20','start','rZnWd','fhwLI','UFXym','map','WLJwU','vHDJK','dJjTB','resetEventBatchPolling','fUvPg','90etbHEo','byteLength','HookRunStarted','exports','WrRsl','TEST_SCREENSHOT','fjrjK','BRhai','TestRunStarted','proceedWithData','NRILr','../helper','752876dVWwjt','eKWTS','RFfwM','api/v1/batch','YBygn','PqRSl','.\x20Request\x20Size\x20-\x20','RESETTING','AdIRu','hxVWN','statusText','push','200wvjKZv','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','split','getInstance','event_type','batchAndPostEvents','TestRunFinished','oaioc','POST','Interval-Queue','6262157ZlIWjS','data','ahiMF','106164rzsljQ','OHIWH','pendingUploads','Shutdown-Queue','started','3|5|0|4|2|1|6','startEventBatchPolling','bsagt'];a86_0x2368=function(){return _0x18f37b;};return a86_0x2368();}(function(_0x1aa426,_0x5173aa){const _0x4a2c5c=a86_0x11ed,_0x1a112f=_0x1aa426();while(!![]){try{const _0x5b5ad4=parseInt(_0x4a2c5c(0x1e6))/0x1+-parseInt(_0x4a2c5c(0x1da))/0x2*(parseInt(_0x4a2c5c(0x210))/0x3)+parseInt(_0x4a2c5c(0x224))/0x4+-parseInt(_0x4a2c5c(0x1f2))/0x5*(-parseInt(_0x4a2c5c(0x200))/0x6)+parseInt(_0x4a2c5c(0x21f))/0x7*(parseInt(_0x4a2c5c(0x21c))/0x8)+-parseInt(_0x4a2c5c(0x225))/0x9+-parseInt(_0x4a2c5c(0x226))/0xa*(parseInt(_0x4a2c5c(0x1fd))/0xb);if(_0x5b5ad4===_0x5173aa)break;else _0x1a112f['push'](_0x1a112f['shift']());}catch(_0x4ee074){_0x1a112f['push'](_0x1a112f['shift']());}}}(a86_0x2368,0x69b14));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require('./constants'),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require(a86_0x2697e6(0x1e5)),util=require('util');class RequestQueueHandler{static [a86_0x2697e6(0x212)];[a86_0x2697e6(0x202)]=0x0;constructor(){const _0x2b91dd=a86_0x2697e6,_0x3b575d={};_0x3b575d[_0x2b91dd(0x236)]=_0x2b91dd(0x205),_0x3b575d[_0x2b91dd(0x1d7)]=_0x2b91dd(0x1e9),_0x3b575d[_0x2b91dd(0x20b)]='LogCreated',_0x3b575d['RzHvv']='CBTSessionCreated',_0x3b575d[_0x2b91dd(0x1eb)]=_0x2b91dd(0x1f9),_0x3b575d[_0x2b91dd(0x217)]=_0x2b91dd(0x22f),_0x3b575d[_0x2b91dd(0x1d5)]='HookRunFinished',_0x3b575d[_0x2b91dd(0x1ef)]=_0x2b91dd(0x1e2),_0x3b575d[_0x2b91dd(0x1ee)]=_0x2b91dd(0x1dc),_0x3b575d[_0x2b91dd(0x23d)]=_0x2b91dd(0x20d),_0x3b575d[_0x2b91dd(0x1e7)]='api/v1/screenshots';const _0x8ce8b6=_0x3b575d,_0x380ee4=_0x8ce8b6[_0x2b91dd(0x236)][_0x2b91dd(0x1f5)]('|');let _0x5abe7d=0x0;while(!![]){switch(_0x380ee4[_0x5abe7d++]){case'0':this[_0x2b91dd(0x230)]=_0x8ce8b6['dJjTB'];continue;case'1':this[_0x2b91dd(0x23f)]=[_0x8ce8b6['jqJBs'],_0x8ce8b6[_0x2b91dd(0x22d)],_0x8ce8b6['PqRSl'],_0x8ce8b6[_0x2b91dd(0x217)],_0x8ce8b6[_0x2b91dd(0x1d5)],_0x8ce8b6[_0x2b91dd(0x1ef)],_0x8ce8b6[_0x2b91dd(0x1ee)]];continue;case'2':this[_0x2b91dd(0x23e)]=_0x8ce8b6['einbh'];continue;case'3':this[_0x2b91dd(0x235)]=[];continue;case'4':this[_0x2b91dd(0x229)]=_0x8ce8b6[_0x2b91dd(0x1e7)];continue;case'5':this[_0x2b91dd(0x204)]=![];continue;case'6':this[_0x2b91dd(0x214)]=null;continue;}break;}}static[a86_0x2697e6(0x1f6)](){const _0x3122c4=a86_0x2697e6;return!RequestQueueHandler[_0x3122c4(0x212)]&&(RequestQueueHandler[_0x3122c4(0x212)]=new RequestQueueHandler()),RequestQueueHandler[_0x3122c4(0x212)];}[a86_0x2697e6(0x243)]=()=>{const _0xfabb26=a86_0x2697e6;!this[_0xfabb26(0x204)]&&(this[_0xfabb26(0x204)]=!![],this[_0xfabb26(0x206)]());};['add']=_0xad68df=>{const _0x324f48=a86_0x2697e6,_0x2e0421={'lEaON':function(_0x1647e9,_0x2c38de){return _0x1647e9===_0x2c38de;},'dNdwf':_0x324f48(0x1df),'BRhai':function(_0x39a1db,_0xa16a31){return _0x39a1db>_0xa16a31;},'OHIWH':function(_0x1622a9,_0x57af5f){return _0x1622a9===_0x57af5f;},'uchba':_0x324f48(0x232),'qfnqT':function(_0x45517d,_0x57dfcf){return _0x45517d!==_0x57dfcf;},'GJtfV':_0x324f48(0x1f9),'UFXym':function(_0x931042,_0x366159){return _0x931042(_0x366159);},'GZtLO':_0x324f48(0x222)};if(this['BATCH_EVENT_TYPES'][_0x324f48(0x23a)](_0xad68df[_0x324f48(0x1f7)])){if(_0xad68df[_0x324f48(0x238)]&&_0xad68df[_0x324f48(0x238)][0x0]&&_0x2e0421['lEaON'](_0xad68df[_0x324f48(0x238)][0x0][_0x324f48(0x20f)],_0x2e0421['dNdwf'])){const _0x57959e={};return _0x57959e['shouldProceed']=!![],_0x57959e[_0x324f48(0x1e3)]=[_0xad68df],_0x57959e[_0x324f48(0x21d)]=this[_0x324f48(0x229)],_0x57959e;}if(_0xad68df['logs']&&_0x2e0421[_0x324f48(0x1e1)](_0xad68df[_0x324f48(0x238)]['length'],0x0)&&_0x2e0421[_0x324f48(0x201)](_0xad68df[_0x324f48(0x238)][0x0][_0x324f48(0x20f)],_0x2e0421[_0x324f48(0x22e)])&&_0x2e0421[_0x324f48(0x233)](_0xad68df[_0x324f48(0x1f7)],_0x2e0421[_0x324f48(0x240)])){const _0x303606={};return _0x303606[_0x324f48(0x22b)]=!![],_0x303606['proceedWithData']=[_0xad68df],_0x303606['proceedWithUrl']=this[_0x324f48(0x23e)],_0x303606;}this[_0x324f48(0x235)][_0x324f48(0x1f1)](_0xad68df);let _0x5a1dba=null;const _0x20f29f=this['shouldProceed']();_0x20f29f&&(_0x2e0421[_0x324f48(0x246)](trace,_0x2e0421[_0x324f48(0x21e)]),_0x5a1dba=this[_0x324f48(0x235)][_0x324f48(0x208)](0x0,BATCH_SIZE),this[_0x324f48(0x235)][_0x324f48(0x237)](0x0,BATCH_SIZE),this[_0x324f48(0x1d8)]());const _0x1fbfb7={};return _0x1fbfb7[_0x324f48(0x22b)]=_0x20f29f,_0x1fbfb7[_0x324f48(0x1e3)]=_0x5a1dba,_0x1fbfb7[_0x324f48(0x21d)]=this['eventUrl'],_0x1fbfb7;}const _0x4ce605={};return _0x4ce605[_0x324f48(0x22b)]=!![],_0x4ce605;};[a86_0x2697e6(0x219)]=async()=>{const _0x497239=a86_0x2697e6,_0x355fba={'YBygn':_0x497239(0x239),'BTzmT':function(_0xa4a94d,_0x5af673){return _0xa4a94d>_0x5af673;},'oKZMn':_0x497239(0x203),'ndgph':function(_0x365ed4,_0x225e94){return _0x365ed4>_0x225e94;},'abXkV':function(_0x4f60c1,_0x34cef0){return _0x4f60c1(_0x34cef0);}};await this[_0x497239(0x234)](),this[_0x497239(0x22a)](_0x355fba[_0x497239(0x1ea)]);while(_0x355fba[_0x497239(0x231)](this['queue'][_0x497239(0x20e)],0x0)){const _0x1b98ea=this[_0x497239(0x235)]['slice'](0x0,BATCH_SIZE);this[_0x497239(0x235)][_0x497239(0x237)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x497239(0x230)],_0x355fba['oKZMn'],_0x1b98ea);}_0x355fba['ndgph'](this['pendingUploads'],0x0)&&_0x355fba[_0x497239(0x209)](debug,_0x497239(0x1f3)+this[_0x497239(0x202)]);};['batchAndPostEvents']=async(_0x351e3d,_0xe773f1,_0x5c437c)=>{const _0x41b841=a86_0x2697e6,_0x264b57={'NRILr':function(_0xe59659,_0x5b1160){return _0xe59659(_0x5b1160);},'uepPp':_0x41b841(0x213),'dYduI':function(_0x48b798){return _0x48b798();},'osewO':function(_0x7f1457,_0xd3d121,_0x13bcc6,_0x56b16d,_0x1e3677){return _0x7f1457(_0xd3d121,_0x13bcc6,_0x56b16d,_0x1e3677);},'vHDJK':_0x41b841(0x1fb),'ahiMF':function(_0x1f3fb6,_0x344a38){return _0x1f3fb6-_0x344a38;},'bGCjT':function(_0x27a4fc,_0x4dc533){return _0x27a4fc(_0x4dc533);},'oaioc':function(_0xe2d74e,_0x4648a1){return _0xe2d74e-_0x4648a1;}};let _0x4e2e9f='';try{_0x4e2e9f=_0x5c437c[_0x41b841(0x1d4)](_0x566ba7=>'\x27'+_0x566ba7[_0x41b841(0x1f7)]+'\x27:'+(nestedKeyValue(_0x566ba7,['test_run','uuid'])||nestedKeyValue(_0x566ba7,[_0x41b841(0x227),_0x41b841(0x23c)])))[_0x41b841(0x221)](','),_0x264b57[_0x41b841(0x1e4)](debug,'Processing\x20batch\x20events\x20for\x20'+_0xe773f1+_0x41b841(0x1ec)+Buffer[_0x41b841(0x1db)](util[_0x41b841(0x216)]('%j',_0x5c437c),_0x264b57[_0x41b841(0x20c)])+'\x20bytes.\x20Events\x20are\x20'+_0x4e2e9f);}catch(_0x1b492e){_0x264b57['NRILr'](debug,_0x41b841(0x220)+util[_0x41b841(0x216)](_0x1b492e)+'}');}const _0x24b7ee={'headers':_0x264b57[_0x41b841(0x20a)](getDefaultHeaders)};try{const _0x2aac10=await _0x264b57[_0x41b841(0x215)](nodeRequest,_0x264b57[_0x41b841(0x1d6)],_0x351e3d,_0x5c437c,_0x24b7ee);if(_0x2aac10[_0x41b841(0x1fe)]['error']){const _0x20e394={};_0x20e394[_0x41b841(0x211)]=_0x2aac10[_0x41b841(0x1fe)][_0x41b841(0x22c)];throw _0x20e394;}else _0x264b57[_0x41b841(0x1e4)](debug,_0xe773f1+_0x41b841(0x23b)+_0x4e2e9f+_0x41b841(0x242)+util[_0x41b841(0x216)]('%j',_0x2aac10['data'])),this[_0x41b841(0x202)]=Math['max'](0x0,_0x264b57[_0x41b841(0x1ff)](this[_0x41b841(0x202)],_0x5c437c['length']));}catch(_0x597d2a){_0x597d2a['response']?_0x264b57['bGCjT'](debug,_0x41b841(0x241)+_0xe773f1+_0x41b841(0x1f4)+_0x597d2a[_0x41b841(0x228)]['status']+'\x20'+_0x597d2a[_0x41b841(0x228)][_0x41b841(0x1f0)]+'\x20'+util[_0x41b841(0x216)]('%j',_0x597d2a[_0x41b841(0x228)])):_0x264b57[_0x41b841(0x21a)](debug,_0x41b841(0x241)+_0xe773f1+_0x41b841(0x1f4)+(_0x597d2a[_0x41b841(0x211)]||_0x597d2a)),this[_0x41b841(0x202)]=Math['max'](0x0,_0x264b57[_0x41b841(0x1fa)](this[_0x41b841(0x202)],_0x5c437c[_0x41b841(0x20e)]));}};[a86_0x2697e6(0x206)]=()=>{const _0x3d17ac=a86_0x2697e6,_0x589fe3={'LzaJW':function(_0x8b73b2,_0x5ea3ad){return _0x8b73b2>_0x5ea3ad;},'WrRsl':function(_0x2b6770,_0x40e3c2){return _0x2b6770(_0x40e3c2);},'bsagt':_0x3d17ac(0x1fc),'ZRLwM':function(_0x24b173,_0x4cbe4b,_0x58b867){return _0x24b173(_0x4cbe4b,_0x58b867);}};this[_0x3d17ac(0x214)]=_0x589fe3[_0x3d17ac(0x21b)](setInterval,async()=>{const _0x3b3fd6=_0x3d17ac;if(_0x589fe3[_0x3b3fd6(0x223)](this[_0x3b3fd6(0x235)][_0x3b3fd6(0x20e)],0x0)){_0x589fe3[_0x3b3fd6(0x1de)](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this[_0x3b3fd6(0x235)]['length']);const _0x312b26=this['queue'][_0x3b3fd6(0x208)](0x0,BATCH_SIZE);this[_0x3b3fd6(0x235)]['splice'](0x0,BATCH_SIZE),await this[_0x3b3fd6(0x1f8)](this[_0x3b3fd6(0x230)],_0x589fe3[_0x3b3fd6(0x207)],_0x312b26),_0x589fe3[_0x3b3fd6(0x1de)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this[_0x3b3fd6(0x235)][_0x3b3fd6(0x20e)]);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x436db7=a86_0x2697e6,_0x2f34fb={};_0x2f34fb['fjrjK']=_0x436db7(0x1ed);const _0x4d50cf=_0x2f34fb;this[_0x436db7(0x22a)](_0x4d50cf[_0x436db7(0x1e0)]),this[_0x436db7(0x206)]();};[a86_0x2697e6(0x22a)]=_0x48800d=>{const _0x1a86b2=a86_0x2697e6,_0x5915ee={'fhwLI':function(_0x316b54,_0x1cf46c){return _0x316b54(_0x1cf46c);},'fUvPg':function(_0x1e24c7,_0x429d22){return _0x1e24c7===_0x429d22;},'RFfwM':_0x1a86b2(0x239)};this[_0x1a86b2(0x214)]&&(_0x5915ee[_0x1a86b2(0x245)](clearInterval,this[_0x1a86b2(0x214)]),this['pollEventBatchInterval']=null,_0x5915ee[_0x1a86b2(0x1d9)](_0x48800d,_0x5915ee[_0x1a86b2(0x1e8)])&&(this[_0x1a86b2(0x204)]=![]));};[a86_0x2697e6(0x22b)]=()=>{const _0x2f3a09=a86_0x2697e6,_0x59db5c={};_0x59db5c[_0x2f3a09(0x218)]=function(_0x1fc1ef,_0x28f1d8){return _0x1fc1ef>=_0x28f1d8;};const _0x328d90=_0x59db5c;return _0x328d90[_0x2f3a09(0x218)](this[_0x2f3a09(0x235)]['length'],BATCH_SIZE);};async[a86_0x2697e6(0x234)](_0x252dcd=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x148aaf=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x28aeda=a86_0x2697e6,_0x59764d={'qxSTB':function(_0x1b8179,_0x480345){return _0x1b8179<=_0x480345;},'rZnWd':function(_0x4c0abf,_0x339647){return _0x4c0abf<=_0x339647;},'Crdbv':function(_0x80c184,_0x25c651){return _0x80c184(_0x25c651);},'PoBGt':function(_0x401954,_0x3293a3){return _0x401954-_0x3293a3;}};if(_0x59764d['qxSTB'](this[_0x28aeda(0x202)],0x0)||_0x59764d[_0x28aeda(0x244)](_0x252dcd,0x0))return;return await _0x59764d['Crdbv'](sleep,_0x148aaf),this[_0x28aeda(0x234)](_0x59764d['PoBGt'](_0x252dcd,_0x148aaf));}}module[a86_0x2697e6(0x1dd)]=RequestQueueHandler;
1
+ function a86_0x38ed(_0x1c9391,_0x4021d2){const _0x23aff3=a86_0x23af();return a86_0x38ed=function(_0x38ed6a,_0x2ae043){_0x38ed6a=_0x38ed6a-0x182;let _0x2e9e61=_0x23aff3[_0x38ed6a];return _0x2e9e61;},a86_0x38ed(_0x1c9391,_0x4021d2);}function a86_0x23af(){const _0x284d73=['3288196uGNaKH','shouldProceed','CBTSessionCreated','\x20--\x20','BOvjp','splice','test_run','join','RIoor','InKBG','uploadPending','fdEcK','split','NHCWG','./utils','GicaF','exports','upload-attachments','REMOVING','4750386PlSIxr','slice','EXCEPTION\x20IN\x20','LBSUT','uuid','DXxgK','hgEwk','hook_run','Processing\x20batch\x20events\x20for\x20','UFIsE','lhFBk','batchAndPostEvents','started','instance','length','screenshotEventUrl','error','startEventBatchPolling','utf8','3118464wMheFY','BATCH_EVENT_TYPES','queue','shutdown','TestRunFinished','PODlk','HuKYO','TestRunSkipped','statusText','byteLength','RESETTING','proceedWithUrl','GGYxV','RSxJE','api/v1/batch','response','pQzDm','max','BcXRQ','jhqyX','util','proceedWithData','getInstance','kind','data','11384944njxAZD','30324987HqHBKm','2050410rfvZto','kiywn','Processing\x20events.\x20Queue\x20Length\x20-\x20','logs','dtdFI','CgDND','\x20event\x20successful\x20for\x20events\x20','JrJzB','format','push','cTCYx','MijXd','DXnzB','WdhmO','KwPLk','Yzioo','eventUrl','Shutdown-Queue','wgzeN','ObYew','resetEventBatchPolling','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','TQwPh','7DfAsbz','.\x20Request\x20Size\x20-\x20','1|3|0|2|4|6|5','YCKea','NAOEq','TwjSW','ICCwo','8fHkgQl','skmyL','\x20bytes.\x20Events\x20are\x20','event_type','pollEventBatchInterval','VEccv','Interval-Queue','includes','IQHAd','removeEventBatchPolling','./constants','57047VuyrtU','QHkLd','pendingUploads','POST'];a86_0x23af=function(){return _0x284d73;};return a86_0x23af();}const a86_0x3d72e6=a86_0x38ed;(function(_0x52ee84,_0x30fd4c){const _0x393937=a86_0x38ed,_0x33e753=_0x52ee84();while(!![]){try{const _0x2981e1=parseInt(_0x393937(0x1ae))/0x1*(-parseInt(_0x393937(0x1a3))/0x2)+parseInt(_0x393937(0x1d8))/0x3+-parseInt(_0x393937(0x1b2))/0x4+-parseInt(_0x393937(0x184))/0x5+parseInt(_0x393937(0x1c5))/0x6*(-parseInt(_0x393937(0x19c))/0x7)+-parseInt(_0x393937(0x182))/0x8+parseInt(_0x393937(0x183))/0x9;if(_0x2981e1===_0x30fd4c)break;else _0x33e753['push'](_0x33e753['shift']());}catch(_0x1a95f2){_0x33e753['push'](_0x33e753['shift']());}}}(a86_0x23af,0xb3243));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a86_0x3d72e6(0x1ad)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a86_0x3d72e6(0x1c0)),{nestedKeyValue}=require('../helper'),util=require(a86_0x3d72e6(0x1ec));class RequestQueueHandler{static [a86_0x3d72e6(0x1d2)];['pendingUploads']=0x0;constructor(){const _0x596543=a86_0x3d72e6,_0x35800a={};_0x35800a['jhqyX']=_0x596543(0x19e),_0x35800a['DXnzB']=_0x596543(0x1e6),_0x35800a['LBSUT']='api/v1/screenshots',_0x35800a[_0x596543(0x1de)]=_0x596543(0x1c3),_0x35800a[_0x596543(0x1dd)]='LogCreated',_0x35800a['BcXRQ']=_0x596543(0x1b4),_0x35800a[_0x596543(0x1bd)]=_0x596543(0x1dc),_0x35800a[_0x596543(0x1a8)]=_0x596543(0x1df),_0x35800a[_0x596543(0x18b)]='HookRunFinished',_0x35800a[_0x596543(0x1ba)]='TestRunStarted',_0x35800a[_0x596543(0x1e8)]='HookRunStarted';const _0x3b5304=_0x35800a,_0x5b006a=_0x3b5304[_0x596543(0x1eb)][_0x596543(0x1be)]('|');let _0x59c890=0x0;while(!![]){switch(_0x5b006a[_0x59c890++]){case'0':this[_0x596543(0x194)]=_0x3b5304[_0x596543(0x190)];continue;case'1':this[_0x596543(0x1da)]=[];continue;case'2':this[_0x596543(0x1d4)]=_0x3b5304[_0x596543(0x1c8)];continue;case'3':this[_0x596543(0x1d1)]=![];continue;case'4':this['uploadAttachmentUrl']=_0x3b5304[_0x596543(0x1de)];continue;case'5':this[_0x596543(0x1a7)]=null;continue;case'6':this[_0x596543(0x1d9)]=[_0x3b5304[_0x596543(0x1dd)],_0x3b5304[_0x596543(0x1ea)],_0x3b5304[_0x596543(0x1bd)],_0x3b5304[_0x596543(0x1a8)],_0x3b5304['JrJzB'],_0x3b5304[_0x596543(0x1ba)],_0x3b5304[_0x596543(0x1e8)]];continue;}break;}}static[a86_0x3d72e6(0x1ee)](){return!RequestQueueHandler['instance']&&(RequestQueueHandler['instance']=new RequestQueueHandler()),RequestQueueHandler['instance'];}['start']=()=>{const _0x46ae83=a86_0x3d72e6;!this[_0x46ae83(0x1d1)]&&(this['started']=!![],this['startEventBatchPolling']());};['add']=_0x2f0535=>{const _0x20e16e=a86_0x3d72e6,_0x1fa6f0={'YCKea':function(_0x2e483c,_0x377772){return _0x2e483c===_0x377772;},'NHCWG':'TEST_SCREENSHOT','CjrHK':function(_0x3affa0,_0x493307){return _0x3affa0>_0x493307;},'InKBG':function(_0x1dc682,_0x2e3613){return _0x1dc682===_0x2e3613;},'uBZAa':'TEST_ATTACHMENT','IQHAd':function(_0x23f2f5,_0x232cbe){return _0x23f2f5!==_0x232cbe;},'QHkLd':'TestRunFinished','hgEwk':function(_0x365b02,_0x409460){return _0x365b02(_0x409460);},'GoPdR':_0x20e16e(0x199)};if(this['BATCH_EVENT_TYPES'][_0x20e16e(0x1aa)](_0x2f0535[_0x20e16e(0x1a6)])){if(_0x2f0535['logs']&&_0x2f0535['logs'][0x0]&&_0x1fa6f0[_0x20e16e(0x19f)](_0x2f0535[_0x20e16e(0x187)][0x0]['kind'],_0x1fa6f0[_0x20e16e(0x1bf)])){const _0x7aaa84={};return _0x7aaa84['shouldProceed']=!![],_0x7aaa84[_0x20e16e(0x1ed)]=[_0x2f0535],_0x7aaa84[_0x20e16e(0x1e3)]=this[_0x20e16e(0x1d4)],_0x7aaa84;}if(_0x2f0535[_0x20e16e(0x187)]&&_0x1fa6f0['CjrHK'](_0x2f0535[_0x20e16e(0x187)][_0x20e16e(0x1d3)],0x0)&&_0x1fa6f0[_0x20e16e(0x1bb)](_0x2f0535[_0x20e16e(0x187)][0x0][_0x20e16e(0x1ef)],_0x1fa6f0['uBZAa'])&&_0x1fa6f0[_0x20e16e(0x1ab)](_0x2f0535['event_type'],_0x1fa6f0[_0x20e16e(0x1af)])){const _0x2f0a21={};return _0x2f0a21[_0x20e16e(0x1b3)]=!![],_0x2f0a21['proceedWithData']=[_0x2f0535],_0x2f0a21[_0x20e16e(0x1e3)]=this['uploadAttachmentUrl'],_0x2f0a21;}this[_0x20e16e(0x1da)][_0x20e16e(0x18d)](_0x2f0535);let _0x36552b=null;const _0x1d91a6=this['shouldProceed']();_0x1d91a6&&(_0x1fa6f0[_0x20e16e(0x1cb)](trace,_0x1fa6f0['GoPdR']),_0x36552b=this['queue']['slice'](0x0,BATCH_SIZE),this[_0x20e16e(0x1da)][_0x20e16e(0x1b7)](0x0,BATCH_SIZE),this[_0x20e16e(0x198)]());const _0x6a3cf9={};return _0x6a3cf9['shouldProceed']=_0x1d91a6,_0x6a3cf9[_0x20e16e(0x1ed)]=_0x36552b,_0x6a3cf9[_0x20e16e(0x1e3)]=this[_0x20e16e(0x194)],_0x6a3cf9;}const _0x38a394={};return _0x38a394[_0x20e16e(0x1b3)]=!![],_0x38a394;};[a86_0x3d72e6(0x1db)]=async()=>{const _0x1a49eb=a86_0x3d72e6,_0x2b2e1b={'KwPLk':_0x1a49eb(0x1c4),'skmyL':function(_0x4475ec,_0xbe368a){return _0x4475ec>_0xbe368a;},'TwjSW':_0x1a49eb(0x195),'lhFBk':function(_0x544c9e,_0x29c565){return _0x544c9e(_0x29c565);}};await this[_0x1a49eb(0x1bc)](),this['removeEventBatchPolling'](_0x2b2e1b[_0x1a49eb(0x192)]);while(_0x2b2e1b['skmyL'](this['queue'][_0x1a49eb(0x1d3)],0x0)){const _0x348a09=this[_0x1a49eb(0x1da)][_0x1a49eb(0x1c6)](0x0,BATCH_SIZE);this[_0x1a49eb(0x1da)]['splice'](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x1a49eb(0x194)],_0x2b2e1b[_0x1a49eb(0x1a1)],_0x348a09);}_0x2b2e1b[_0x1a49eb(0x1a4)](this[_0x1a49eb(0x1b0)],0x0)&&_0x2b2e1b[_0x1a49eb(0x1cf)](debug,_0x1a49eb(0x19a)+this[_0x1a49eb(0x1b0)]);};[a86_0x3d72e6(0x1d0)]=async(_0x1d418e,_0x148c7b,_0x465cdb)=>{const _0x2d7ebc=a86_0x3d72e6,_0x90fc9e={'dtdFI':function(_0x2b392b,_0xbcc12e){return _0x2b392b(_0xbcc12e);},'xOEJH':_0x2d7ebc(0x1d7),'NAOEq':function(_0x26f1dd,_0x553b47){return _0x26f1dd(_0x553b47);},'tHybJ':function(_0x3f6be9){return _0x3f6be9();},'BOvjp':function(_0x1490dd,_0x477c13,_0x51e8ea,_0x3fba5c,_0x4e115b){return _0x1490dd(_0x477c13,_0x51e8ea,_0x3fba5c,_0x4e115b);},'Yzioo':_0x2d7ebc(0x1b1),'ICCwo':function(_0xc4f47,_0x202eb6){return _0xc4f47(_0x202eb6);},'CgDND':function(_0x45d2fb,_0x1e9dbf){return _0x45d2fb-_0x1e9dbf;}};let _0x2f83e4='';try{_0x2f83e4=_0x465cdb['map'](_0x4bfd3d=>'\x27'+_0x4bfd3d[_0x2d7ebc(0x1a6)]+'\x27:'+(nestedKeyValue(_0x4bfd3d,[_0x2d7ebc(0x1b8),_0x2d7ebc(0x1c9)])||nestedKeyValue(_0x4bfd3d,[_0x2d7ebc(0x1cc),_0x2d7ebc(0x1c9)])))[_0x2d7ebc(0x1b9)](','),_0x90fc9e[_0x2d7ebc(0x188)](debug,_0x2d7ebc(0x1cd)+_0x148c7b+_0x2d7ebc(0x19d)+Buffer[_0x2d7ebc(0x1e1)](util[_0x2d7ebc(0x18c)]('%j',_0x465cdb),_0x90fc9e['xOEJH'])+_0x2d7ebc(0x1a5)+_0x2f83e4);}catch(_0x1a8796){_0x90fc9e[_0x2d7ebc(0x1a0)](debug,'Exception\x20in\x20logging\x20batch\x20events\x20--\x20'+util[_0x2d7ebc(0x18c)](_0x1a8796)+'}');}const _0x4c01eb={'headers':_0x90fc9e['tHybJ'](getDefaultHeaders)};try{const _0x4b6488=await _0x90fc9e[_0x2d7ebc(0x1b6)](nodeRequest,_0x90fc9e[_0x2d7ebc(0x193)],_0x1d418e,_0x465cdb,_0x4c01eb);if(_0x4b6488[_0x2d7ebc(0x1f0)][_0x2d7ebc(0x1d5)]){const _0x446231={};_0x446231['message']=_0x4b6488[_0x2d7ebc(0x1f0)][_0x2d7ebc(0x1d5)];throw _0x446231;}else _0x90fc9e[_0x2d7ebc(0x1a2)](debug,_0x148c7b+_0x2d7ebc(0x18a)+_0x2f83e4+_0x2d7ebc(0x1b5)+util[_0x2d7ebc(0x18c)]('%j',_0x4b6488[_0x2d7ebc(0x1f0)])),this[_0x2d7ebc(0x1b0)]=Math[_0x2d7ebc(0x1e9)](0x0,_0x90fc9e[_0x2d7ebc(0x189)](this[_0x2d7ebc(0x1b0)],_0x465cdb[_0x2d7ebc(0x1d3)]));}catch(_0x39a357){_0x39a357[_0x2d7ebc(0x1e7)]?_0x90fc9e[_0x2d7ebc(0x1a2)](debug,_0x2d7ebc(0x1c7)+_0x148c7b+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x39a357[_0x2d7ebc(0x1e7)]['status']+'\x20'+_0x39a357['response'][_0x2d7ebc(0x1e0)]+'\x20'+util[_0x2d7ebc(0x18c)]('%j',_0x39a357[_0x2d7ebc(0x1e7)])):_0x90fc9e[_0x2d7ebc(0x1a0)](debug,_0x2d7ebc(0x1c7)+_0x148c7b+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+(_0x39a357['message']||_0x39a357)),this[_0x2d7ebc(0x1b0)]=Math[_0x2d7ebc(0x1e9)](0x0,_0x90fc9e[_0x2d7ebc(0x189)](this['pendingUploads'],_0x465cdb['length']));}};['startEventBatchPolling']=()=>{const _0x120083=a86_0x3d72e6,_0x2a3af5={'GGYxV':function(_0x46e8ee,_0x50af31){return _0x46e8ee>_0x50af31;},'TQwPh':function(_0x40faf5,_0x475fe6){return _0x40faf5(_0x475fe6);},'cTCYx':_0x120083(0x1a9),'ObYew':function(_0x5ffcbf,_0x1a83cf){return _0x5ffcbf(_0x1a83cf);},'UFIsE':function(_0x2ca25e,_0x1053fe,_0x364c35){return _0x2ca25e(_0x1053fe,_0x364c35);}};this[_0x120083(0x1a7)]=_0x2a3af5[_0x120083(0x1ce)](setInterval,async()=>{const _0x516e2c=_0x120083;if(_0x2a3af5[_0x516e2c(0x1e4)](this[_0x516e2c(0x1da)][_0x516e2c(0x1d3)],0x0)){_0x2a3af5[_0x516e2c(0x19b)](trace,_0x516e2c(0x186)+this[_0x516e2c(0x1da)]['length']);const _0x2b262e=this[_0x516e2c(0x1da)]['slice'](0x0,BATCH_SIZE);this['queue'][_0x516e2c(0x1b7)](0x0,BATCH_SIZE),await this[_0x516e2c(0x1d0)](this[_0x516e2c(0x194)],_0x2a3af5[_0x516e2c(0x18e)],_0x2b262e),_0x2a3af5[_0x516e2c(0x197)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this[_0x516e2c(0x1da)]['length']);}},BATCH_INTERVAL);};[a86_0x3d72e6(0x198)]=()=>{const _0x5d7b3=a86_0x3d72e6,_0x4d5938={};_0x4d5938['kiywn']=_0x5d7b3(0x1e2);const _0x31ea41=_0x4d5938;this[_0x5d7b3(0x1ac)](_0x31ea41[_0x5d7b3(0x185)]),this[_0x5d7b3(0x1d6)]();};['removeEventBatchPolling']=_0x28799d=>{const _0x26a2ed=a86_0x3d72e6,_0x34e435={'GicaF':function(_0x5a83b5,_0x37b28c){return _0x5a83b5(_0x37b28c);},'RSxJE':function(_0x513718,_0xebc49e){return _0x513718===_0xebc49e;},'wgzeN':_0x26a2ed(0x1c4)};this['pollEventBatchInterval']&&(_0x34e435[_0x26a2ed(0x1c1)](clearInterval,this[_0x26a2ed(0x1a7)]),this[_0x26a2ed(0x1a7)]=null,_0x34e435[_0x26a2ed(0x1e5)](_0x28799d,_0x34e435[_0x26a2ed(0x196)])&&(this['started']=![]));};[a86_0x3d72e6(0x1b3)]=()=>{const _0x141caf=a86_0x3d72e6,_0x58daee={};_0x58daee['WdhmO']=function(_0x1614aa,_0x2ee0bc){return _0x1614aa>=_0x2ee0bc;};const _0x27b069=_0x58daee;return _0x27b069[_0x141caf(0x191)](this[_0x141caf(0x1da)]['length'],BATCH_SIZE);};async[a86_0x3d72e6(0x1bc)](_0x8e028b=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x398810=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x43dd5c=a86_0x3d72e6,_0x517a9c={'DXxgK':function(_0x885967,_0x315d1f){return _0x885967<=_0x315d1f;},'MijXd':function(_0x7a29c0,_0x2f737d){return _0x7a29c0(_0x2f737d);},'lyWVM':function(_0x25dd16,_0x2c992a){return _0x25dd16-_0x2c992a;}};if(_0x517a9c[_0x43dd5c(0x1ca)](this[_0x43dd5c(0x1b0)],0x0)||_0x517a9c[_0x43dd5c(0x1ca)](_0x8e028b,0x0))return;return await _0x517a9c[_0x43dd5c(0x18f)](sleep,_0x398810),this[_0x43dd5c(0x1bc)](_0x517a9c['lyWVM'](_0x8e028b,_0x398810));}}module[a86_0x3d72e6(0x1c2)]=RequestQueueHandler;
@@ -1 +1 @@
1
- const a87_0x54c1cd=a87_0x4428;function a87_0x4428(_0x1235c9,_0x87869c){const _0x5df3bf=a87_0x5df3();return a87_0x4428=function(_0x442841,_0x2990d6){_0x442841=_0x442841-0xf9;let _0x2f9fae=_0x5df3bf[_0x442841];return _0x2f9fae;},a87_0x4428(_0x1235c9,_0x87869c);}(function(_0x1d33e4,_0x3aacba){const _0x4269bd=a87_0x4428,_0x15b535=_0x1d33e4();while(!![]){try{const _0x3a83c4=-parseInt(_0x4269bd(0x16b))/0x1+parseInt(_0x4269bd(0x13b))/0x2+parseInt(_0x4269bd(0x173))/0x3*(-parseInt(_0x4269bd(0x169))/0x4)+parseInt(_0x4269bd(0x12c))/0x5*(parseInt(_0x4269bd(0x15d))/0x6)+-parseInt(_0x4269bd(0x135))/0x7+-parseInt(_0x4269bd(0x163))/0x8+parseInt(_0x4269bd(0x177))/0x9;if(_0x3a83c4===_0x3aacba)break;else _0x15b535['push'](_0x15b535['shift']());}catch(_0x4a9cf6){_0x15b535['push'](_0x15b535['shift']());}}}(a87_0x5df3,0xb1109));const bsSetupHelper=require('../helper'),path=require(a87_0x54c1cd(0x170)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a87_0x54c1cd(0x13f)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a87_0x54c1cd(0x14c)),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a87_0x54c1cd(0x1a5))[a87_0x54c1cd(0x189)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a87_0x54c1cd(0xfd)),util=require(a87_0x54c1cd(0x11f));class SessionHandler{static [a87_0x54c1cd(0x197)]=RequestQueueHandler[a87_0x54c1cd(0x107)]();static async[a87_0x54c1cd(0x111)](_0x71c3f8,_0x2d65c4){const _0x2847c1=a87_0x54c1cd,_0x42a60f={'hGAvp':function(_0x3f76f1,_0x5883af){return _0x3f76f1||_0x5883af;},'Sqmju':function(_0x3456f2,_0x21395c){return _0x3456f2===_0x21395c;},'uCNBk':function(_0xc8d927,_0x4fc7b0){return _0xc8d927(_0x4fc7b0);},'PyNRt':_0x2847c1(0x153),'OyIPY':_0x2847c1(0x190),'bvQDI':_0x2847c1(0x13a),'LcErq':function(_0x548053,_0x54030b){return _0x548053(_0x54030b);},'gIwAF':function(_0x488783,_0x504c1f){return _0x488783(_0x504c1f);},'cpXaS':function(_0x529457,_0x495419,_0x229a84,_0x2114b7,_0x375f61){return _0x529457(_0x495419,_0x229a84,_0x2114b7,_0x375f61);},'PxSij':'POST','jVoKM':_0x2847c1(0x10b),'yfqmi':function(_0xd98f01,_0x404a6f){return _0xd98f01(_0x404a6f);},'VEAqP':_0x2847c1(0x12d),'mVfSi':function(_0x5811ee){return _0x5811ee();},'vQmTm':_0x2847c1(0x14f),'mMIcv':_0x2847c1(0xfb),'jUxSi':_0x2847c1(0x11b),'PwjCD':_0x2847c1(0x125),'AdYBm':_0x2847c1(0x129)},_0x467c8d=bsSetupHelper[_0x2847c1(0xfa)](_0x71c3f8),_0x1ec8d9=bsSetupHelper[_0x2847c1(0x1a4)](_0x71c3f8),_0x4e24cd=_0x42a60f['hGAvp'](_0x467c8d,'')+':'+_0x42a60f[_0x2847c1(0x17f)](_0x1ec8d9,'');if(_0x42a60f[_0x2847c1(0x113)](_0x4e24cd,':'))return _0x42a60f[_0x2847c1(0x16d)](debug,_0x42a60f['PyNRt']),process[_0x2847c1(0x182)]['BS_TESTOPS_BUILD_COMPLETED']=_0x42a60f[_0x2847c1(0x175)],[null,null];let _0x23de89=![],_0x1a381a=![];if(_0x71c3f8[_0x2847c1(0x17c)]&&_0x71c3f8[_0x2847c1(0x112)])_0x1a381a=!![];else _0x71c3f8[_0x2847c1(0x17c)]&&(_0x23de89=!![]);try{const _0x20e428={'format':_0x42a60f['bvQDI'],'project_name':_0x71c3f8[_0x2847c1(0x188)]||'','name':_0x71c3f8[_0x2847c1(0x108)]||path[_0x2847c1(0x18d)](path[_0x2847c1(0x16e)](process['cwd']())),'build_identifier':_0x71c3f8['buildIdentifier'],'description':_0x71c3f8[_0x2847c1(0x19d)]||'','start_time':new Date()[_0x2847c1(0x13e)](),'tags':_0x42a60f['LcErq'](getCustomTags,_0x71c3f8),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper[_0x2847c1(0x156)](),'build_run_identifier':process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process[_0x2847c1(0x182)][_0x2847c1(0x12a)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x2d65c4[_0x2847c1(0x119)],'frameworkVersion':_0x2d65c4[_0x2847c1(0x10a)],'sdkVersion':bsSetupHelper[_0x2847c1(0x196)]()},'product_map':_0x42a60f[_0x2847c1(0x123)](getProductMap,_0x71c3f8)},_0x5bab2d={};_0x5bab2d[_0x2847c1(0x184)]=_0x467c8d,_0x5bab2d[_0x2847c1(0x128)]=_0x1ec8d9;const _0x3a048c={'auth':_0x5bab2d,'headers':_0x42a60f[_0x2847c1(0x171)](getDefaultHeaders,![])},_0x481bcb=await _0x42a60f[_0x2847c1(0x18c)](nodeRequest,_0x42a60f[_0x2847c1(0x151)],_0x42a60f['jVoKM'],_0x20e428,_0x3a048c);_0x42a60f[_0x2847c1(0x132)](debug,_0x42a60f[_0x2847c1(0x18f)]);const _0x178398=_0x481bcb[_0x2847c1(0x148)];_0x178398['build_hashed_id']&&(process[_0x2847c1(0x182)][_0x2847c1(0x137)]=_0x178398[_0x2847c1(0x105)]);if(_0x42a60f['mVfSi'](isTestObservabilitySession)){process[_0x2847c1(0x182)][_0x2847c1(0x18b)]=_0x42a60f[_0x2847c1(0x144)];if(_0x178398['jwt']){process[_0x2847c1(0x182)][_0x2847c1(0x100)]=_0x178398[_0x2847c1(0x104)];const _0x370869={};_0x370869[_0x2847c1(0x184)]=_0x467c8d,_0x370869[_0x2847c1(0x128)]=_0x1ec8d9,process[_0x2847c1(0x182)][_0x2847c1(0x1a1)]=JSON['stringify'](_0x370869);}_0x178398[_0x2847c1(0x105)]&&(process[_0x2847c1(0x182)][_0x2847c1(0x19c)]=_0x178398[_0x2847c1(0x105)]),_0x178398[_0x2847c1(0x181)]&&(process[_0x2847c1(0x182)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x178398[_0x2847c1(0x181)][_0x2847c1(0x120)]());}return[_0x481bcb[_0x2847c1(0x148)][_0x2847c1(0x104)],_0x481bcb[_0x2847c1(0x148)][_0x2847c1(0x105)],_0x481bcb[_0x2847c1(0x148)][_0x2847c1(0x181)]];}catch(_0x10b05c){process['env'][_0x2847c1(0x137)]=_0x42a60f['mMIcv'],process['env'][_0x2847c1(0x18b)]=_0x42a60f[_0x2847c1(0x175)],process[_0x2847c1(0x182)]['BS_TESTOPS_JWT']=_0x42a60f[_0x2847c1(0x11d)],process['env'][_0x2847c1(0x19c)]=_0x42a60f[_0x2847c1(0x11d)],process[_0x2847c1(0x182)][_0x2847c1(0x142)]=_0x42a60f['mMIcv'];_0x10b05c[_0x2847c1(0x1a6)]?_0x42a60f[_0x2847c1(0x132)](debug,_0x2847c1(0xfe)+_0x10b05c[_0x2847c1(0x1a6)][_0x2847c1(0x176)]+'\x20'+_0x10b05c[_0x2847c1(0x1a6)]['statusText']+'\x20'+JSON[_0x2847c1(0x180)](_0x10b05c[_0x2847c1(0x1a6)][_0x2847c1(0x148)])):_0x42a60f[_0x2847c1(0x132)](debug,_0x2847c1(0xfe)+(_0x10b05c[_0x2847c1(0x160)]||_0x10b05c));if(_0x10b05c&&_0x10b05c[_0x2847c1(0x160)]){const _0x183d72=_0x10b05c[_0x2847c1(0x160)];switch(_0x10b05c[_0x2847c1(0x106)]){case _0x42a60f[_0x2847c1(0x110)]:logger[_0x2847c1(0x115)](_0x183d72);break;case _0x42a60f['PwjCD']:logger[_0x2847c1(0x18a)](_0x183d72);break;case _0x42a60f[_0x2847c1(0x157)]:logger[_0x2847c1(0x115)](_0x183d72);break;default:logger[_0x2847c1(0x115)](_0x183d72);}}else console[_0x2847c1(0x18a)](_0x2847c1(0x118)+_0x10b05c);return[null,null,null];}}static async[a87_0x54c1cd(0x198)](){const _0xc676a3=a87_0x54c1cd,_0x46bf95={'nFWUJ':'true','BTugW':_0xc676a3(0x190),'emiYY':function(_0x2a478a,_0x3f439c){return _0x2a478a(_0x3f439c);}},_0x4d2eb7=process['env'][_0xc676a3(0x18b)];if([_0x46bf95[_0xc676a3(0x133)],_0x46bf95[_0xc676a3(0x140)]][_0xc676a3(0x124)](_0x4d2eb7))return;while([_0x46bf95[_0xc676a3(0x133)],_0x46bf95[_0xc676a3(0x140)]][_0xc676a3(0x124)](_0x4d2eb7)){await _0x46bf95[_0xc676a3(0x134)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0x54c1cd(0x16a)](_0x48b754){const _0xe257b9=a87_0x54c1cd,_0x2a602a={};_0x2a602a[_0xe257b9(0x116)]=_0xe257b9(0x185),_0x2a602a[_0xe257b9(0x183)]='Test_End_Upload',_0x2a602a['MiHOi']=_0xe257b9(0x109),_0x2a602a['CTtKw']=_0xe257b9(0x19f),_0x2a602a['GpgQJ']=_0xe257b9(0x143),_0x2a602a[_0xe257b9(0x158)]=_0xe257b9(0x1a3),_0x2a602a[_0xe257b9(0x164)]=_0xe257b9(0x145);const _0x552232=_0x2a602a,_0x1f85db={};return _0x1f85db['TestRunStarted']=_0x552232['jtFXW'],_0x1f85db[_0xe257b9(0x10f)]=_0x552232[_0xe257b9(0x183)],_0x1f85db[_0xe257b9(0x102)]=_0x552232['MiHOi'],_0x1f85db['LogCreated']=_0x552232[_0xe257b9(0x15b)],_0x1f85db[_0xe257b9(0x172)]=_0x552232[_0xe257b9(0x193)],_0x1f85db[_0xe257b9(0x18e)]=_0x552232[_0xe257b9(0x158)],_0x1f85db[_0xe257b9(0x192)]=_0x552232[_0xe257b9(0x164)],_0x1f85db[_0x48b754[_0xe257b9(0x147)]];}static async[a87_0x54c1cd(0x159)](_0x20c9d8,_0x46c712=0x0,_0x3774e3=null){const _0x23f87e=a87_0x54c1cd,_0x2b09bd={'lgCqU':function(_0xcf2c14,_0x24ba17){return _0xcf2c14===_0x24ba17;},'sfctY':_0x23f87e(0x17b),'kVyPH':function(_0x4086c8,_0xd7642d){return _0x4086c8!==_0xd7642d;},'lMnYl':_0x23f87e(0x195),'BjOZP':_0x23f87e(0x14f),'VMjJv':function(_0x1604c6,_0x6614fd,_0x2dad6e,_0x35463c,_0x56a56b){return _0x1604c6(_0x6614fd,_0x2dad6e,_0x35463c,_0x56a56b);},'mueVS':_0x23f87e(0x16f),'knKwl':function(_0x1be098,_0x495d58,_0x2066db,_0x7c408e,_0x20199f){return _0x1be098(_0x495d58,_0x2066db,_0x7c408e,_0x20199f);},'ynTVN':function(_0x17e7ad,_0xaf003f){return _0x17e7ad(_0xaf003f);},'qsWZx':function(_0x7540a3,_0x4a7123){return _0x7540a3!==_0x4a7123;},'Zqcet':_0x23f87e(0x14e),'gFYQP':function(_0x14461c,_0x4c6186){return _0x14461c-_0x4c6186;},'tzPaO':_0x23f87e(0x17d),'wIUXl':_0x23f87e(0x19b),'upOFL':function(_0x212125,_0x4f5b54){return _0x212125(_0x4f5b54);},'sZxEF':function(_0x115bf9,_0x56d13f){return _0x115bf9!==_0x56d13f;},'ZrSsD':function(_0x1850ea,_0x411b90){return _0x1850ea(_0x411b90);},'qimnL':function(_0x5e3c6e,_0x229c0b){return _0x5e3c6e!==_0x229c0b;},'jGELR':function(_0x2699fa,_0x279301){return _0x2699fa-_0x279301;},'iEfvV':function(_0x46a7c3,_0x2e5b4c){return _0x46a7c3===_0x2e5b4c;},'rsSjj':_0x23f87e(0x115)};_0x2b09bd[_0x23f87e(0x10c)](_0x3774e3,_0x2b09bd[_0x23f87e(0x13d)])&&logger[_0x23f87e(0x13c)]('Sending\x20trace\x20zip\x20for\x20test:\x20'+_0x20c9d8['logs'][0x0][_0x23f87e(0x15c)]);const _0x249492=await this[_0x23f87e(0x16a)](_0x20c9d8);let _0x2a8361=_0x20c9d8,_0x40ec99=EVENT_ENDPOINT;_0x2b09bd['kVyPH'](_0x3774e3,_0x2b09bd[_0x23f87e(0x13d)])&&this[_0x23f87e(0x197)][_0x23f87e(0x168)]();const {shouldProceed:_0x1c6f36,proceedWithData:_0x1fa5d7,proceedWithUrl:_0x42946c}=this[_0x23f87e(0x197)][_0x23f87e(0x11c)](_0x20c9d8);if(!_0x1c6f36)return;else _0x1fa5d7&&(_0x2a8361=_0x1fa5d7,_0x40ec99=_0x42946c);const _0x1aeabc={};_0x1aeabc[_0x23f87e(0x17e)]=_0x23f87e(0x166)+process['env'][_0x23f87e(0x15e)],_0x1aeabc['Content-Type']=_0x2b09bd['lMnYl'],_0x1aeabc[_0x23f87e(0x15a)]=_0x2b09bd[_0x23f87e(0x138)];const _0x4d4612={};_0x4d4612[_0x23f87e(0x139)]=_0x1aeabc;const _0x56e2a7=_0x4d4612;let _0xe87d4;try{_0x2b09bd[_0x23f87e(0x10c)](_0x3774e3,_0x2b09bd['sfctY'])?(logger[_0x23f87e(0x13c)](_0x23f87e(0x162)+_0x20c9d8?.[_0x23f87e(0x131)][0x0]?.[_0x23f87e(0x15c)]),_0xe87d4=await _0x2b09bd[_0x23f87e(0x174)](asyncAwaitNodeReq,_0x2b09bd['mueVS'],_0x40ec99,_0x2a8361,_0x56e2a7),logger[_0x23f87e(0x13c)](_0x23f87e(0x154)+_0x20c9d8?.[_0x23f87e(0x131)][0x0]?.['test_run_uuid'])):_0xe87d4=await _0x2b09bd['knKwl'](nodeRequest,_0x2b09bd[_0x23f87e(0x194)],_0x40ec99,_0x2a8361,_0x56e2a7);if(_0xe87d4[_0x23f87e(0x148)][_0x23f87e(0x115)]){const _0x420d7d={};_0x420d7d['message']=_0xe87d4['data'][_0x23f87e(0x115)];throw _0x420d7d;}else{_0x2b09bd[_0x23f87e(0x165)](debug,(_0x2b09bd[_0x23f87e(0x199)](_0x40ec99,this[_0x23f87e(0x197)]['eventUrl'])?_0x249492:_0x2b09bd['Zqcet'])+'['+_0x46c712+_0x23f87e(0x16c)),this['requestQueueHandler'][_0x23f87e(0x136)]=Math[_0x23f87e(0x19e)](0x0,_0x2b09bd[_0x23f87e(0x101)](this[_0x23f87e(0x197)]['pendingUploads'],_0x2b09bd[_0x23f87e(0x10c)](_0x40ec99,_0x2b09bd[_0x23f87e(0x122)])?0x1:_0x2a8361[_0x23f87e(0x150)]));const _0x2da4c4={};return _0x2da4c4['status']=_0x2b09bd[_0x23f87e(0x12f)],_0x2da4c4[_0x23f87e(0x160)]='',_0x2da4c4;}}catch(_0x5468a2){_0x5468a2[_0x23f87e(0x1a6)]?_0x2b09bd[_0x23f87e(0x117)](debug,_0x23f87e(0x155)+(_0x2b09bd[_0x23f87e(0x1a0)](_0x40ec99,this[_0x23f87e(0x197)][_0x23f87e(0xff)])?_0x249492:_0x2b09bd[_0x23f87e(0x187)])+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x5468a2['response'][_0x23f87e(0x176)]+'\x20'+_0x5468a2['response'][_0x23f87e(0x141)]+'\x20'+util[_0x23f87e(0x17a)](_0x5468a2[_0x23f87e(0x1a6)][_0x23f87e(0x148)])):_0x2b09bd['ZrSsD'](debug,_0x23f87e(0x155)+(_0x2b09bd[_0x23f87e(0x10e)](_0x40ec99,this[_0x23f87e(0x197)]['eventUrl'])?_0x249492:_0x2b09bd[_0x23f87e(0x187)])+_0x23f87e(0x186)+util[_0x23f87e(0x17a)](_0x5468a2));this[_0x23f87e(0x197)]['pendingUploads']=Math['max'](0x0,_0x2b09bd['jGELR'](this['requestQueueHandler'][_0x23f87e(0x136)],_0x2b09bd[_0x23f87e(0x15f)](_0x40ec99,_0x2b09bd[_0x23f87e(0x122)])?0x1:_0x2a8361[_0x23f87e(0x150)]));const _0x3a9872={};return _0x3a9872[_0x23f87e(0x176)]=_0x2b09bd[_0x23f87e(0x12b)],_0x3a9872[_0x23f87e(0x160)]=_0x5468a2[_0x23f87e(0x160)]||(_0x5468a2[_0x23f87e(0x1a6)]?_0x5468a2[_0x23f87e(0x1a6)][_0x23f87e(0x176)]+':'+_0x5468a2[_0x23f87e(0x1a6)][_0x23f87e(0x141)]:_0x5468a2),_0x3a9872;}}static async[a87_0x54c1cd(0x1a2)](_0x5ed561,_0x493f4f=0x0){const _0x548645=a87_0x54c1cd,_0x15d292={'qkNEc':function(_0x141b79,_0x3fb2d3){return _0x141b79+_0x3fb2d3;},'tzMxP':function(_0xd44f17,_0x171233){return _0xd44f17(_0x171233);},'BpmcE':_0x548645(0x127),'OXhbF':_0x548645(0x14b),'BdAlP':_0x548645(0x130),'UHzgV':function(_0xdbd6b0,_0xe32bfc,_0x59bd78){return _0xdbd6b0(_0xe32bfc,_0x59bd78);},'pRcQZ':'uploadEventData','moiRY':function(_0x409edb,_0x51a035){return _0x409edb===_0x51a035;},'aYgHL':function(_0x107a32,_0x1ecb3f){return _0x107a32!==_0x1ecb3f;},'QcyBC':'null','yGTUU':function(_0x163e30,_0x18fdde){return _0x163e30===_0x18fdde;},'DmDNI':'true','PfmEe':function(_0x249140){return _0x249140();},'ChchH':function(_0x4d0a87,_0x34bc84){return _0x4d0a87===_0x34bc84;},'UomWG':function(_0x2b301b,_0x9e7b77){return _0x2b301b-_0x9e7b77;},'LsHnS':_0x548645(0x115),'clUKH':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','GNFmU':function(_0x1f9139,_0x1ea1e4){return _0x1f9139>=_0x1ea1e4;},'aHMyN':function(_0x266050,_0x5c91f9){return _0x266050-_0x5c91f9;},'xAuqx':_0x548645(0x10d),'InmOG':_0x548645(0x190),'YXoXo':function(_0x144e8f,_0x38526d,_0x188e6a){return _0x144e8f(_0x38526d,_0x188e6a);}},_0x23c54f=this[_0x548645(0x16a)](_0x5ed561);_0x15d292['tzMxP'](trace,_0x548645(0x12e)+_0x5ed561[_0x548645(0x147)]+'\x27\x20'+(bsSetupHelper[_0x548645(0x19a)](_0x5ed561,[_0x15d292[_0x548645(0x103)],_0x15d292[_0x548645(0x11a)]])||bsSetupHelper['nestedKeyValue'](_0x5ed561,[_0x15d292['BdAlP'],_0x15d292['OXhbF']])));if(!_0x15d292[_0x548645(0x114)](shouldProcessEventForTesthub,_0x5ed561['event_type'],_0x15d292[_0x548645(0xf9)]))return;_0x15d292['moiRY'](_0x493f4f,0x0)&&process['env'][_0x548645(0x15e)]&&_0x15d292[_0x548645(0x167)](process[_0x548645(0x182)]['BROWSERSTACK_TESTHUB_JWT'],_0x15d292[_0x548645(0x149)])&&(this[_0x548645(0x197)][_0x548645(0x136)]+=0x1);if(_0x15d292[_0x548645(0x126)](process[_0x548645(0x182)]['BS_TESTOPS_BUILD_COMPLETED'],_0x15d292['DmDNI'])||process[_0x548645(0x182)]['BS_A11Y_JWT']||_0x15d292[_0x548645(0x14d)](isPercyBuild)){if(_0x15d292[_0x548645(0x14a)](process[_0x548645(0x182)][_0x548645(0x15e)],_0x15d292[_0x548645(0x149)])){_0x15d292[_0x548645(0xfc)](debug,_0x548645(0x155)+_0x23c54f+_0x548645(0x178)),this[_0x548645(0x197)][_0x548645(0x136)]=Math[_0x548645(0x19e)](0x0,_0x15d292['UomWG'](this[_0x548645(0x197)][_0x548645(0x136)],0x1));const _0x5c38ce={};return _0x5c38ce['status']=_0x15d292[_0x548645(0x146)],_0x5c38ce['message']=_0x15d292['clUKH'],_0x5c38ce;}return await this['sendEventData'](_0x5ed561,_0x493f4f);}else{if(_0x15d292[_0x548645(0x179)](_0x493f4f,0x5)){_0x15d292[_0x548645(0xfc)](debug,_0x548645(0x155)+_0x23c54f+_0x548645(0x152)+_0x23c54f+_0x548645(0x121));_0x15d292[_0x548645(0x167)](process[_0x548645(0x182)][_0x548645(0x15e)],_0x15d292[_0x548645(0x149)])&&(this[_0x548645(0x197)][_0x548645(0x136)]=Math[_0x548645(0x19e)](0x0,_0x15d292['aHMyN'](this[_0x548645(0x197)][_0x548645(0x136)],0x1)));const _0x5a4bf3={};return _0x5a4bf3[_0x548645(0x176)]=_0x15d292[_0x548645(0x146)],_0x5a4bf3[_0x548645(0x160)]=_0x15d292['xAuqx'],_0x5a4bf3;}else _0x15d292[_0x548645(0x167)](process[_0x548645(0x182)][_0x548645(0x18b)],_0x15d292[_0x548645(0x161)])&&_0x15d292['YXoXo'](setTimeout,()=>{const _0x46471b=_0x548645;this[_0x46471b(0x1a2)](_0x5ed561,_0x15d292[_0x46471b(0x191)](_0x493f4f,0x1));},0x3e8);}}}function a87_0x5df3(){const _0x4fbffe=['Processing\x20event\x20-\x20\x27','wIUXl','hook_run','logs','yfqmi','nFWUJ','emiYY','1488459eYadXF','pendingUploads','BROWSERSTACK_TESTHUB_UUID','BjOZP','headers','json','479140GzOQaC','debug','sfctY','toISOString','./utils','BTugW','statusText','BS_TESTOPS_ALLOW_SCREENSHOTS','Hook_Start_Upload','vQmTm','CBT_Upload','LsHnS','event_type','data','QcyBC','ChchH','uuid','./constants','PfmEe','Batch-Queue','true','length','PxSij','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','EXCEPTION\x20IN\x20','getCiInfo','AdYBm','CxiEY','sendEventData','X-BSTACK-TESTOPS','CTtKw','test_run_uuid','6HpCodJ','BROWSERSTACK_TESTHUB_JWT','iEfvV','message','InmOG','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','1237040nMkaMf','FYgGA','ynTVN','Bearer\x20','aYgHL','start','91524lqzzbH','getLogTag','377239NQaTiS',']\x20event\x20successful!','uCNBk','resolve','POST','path','LcErq','HookRunStarted','54KIFBsF','VMjJv','OyIPY','status','11117988ypuyJD','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','GNFmU','format','sendTraceZip','browserstackAutomation','api/v1/event','Authorization','hGAvp','stringify','allow_screenshots','env','XHGkD','username','Test_Start_Upload','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','Zqcet','projectName','winstonLogger','info','BS_TESTOPS_BUILD_COMPLETED','cpXaS','basename','HookRunFinished','VEAqP','false','qkNEc','CBTSessionCreated','GpgQJ','mueVS','application/json','getAgentVersion','requestQueueHandler','waitForBuildStatus','qsWZx','nestedKeyValue','success','BS_TESTOPS_BUILD_HASHED_ID','buildDescription','max','Log_Upload','sZxEF','CREDENTIALS_FOR_CRASH_REPORTING','uploadEventData','Hook_End_Upload','getAccessKey','../logger','response','pRcQZ','getUserName','null','tzMxP','../../helpers/testhub/utils','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','eventUrl','BS_TESTOPS_JWT','gFYQP','TestRunSkipped','BpmcE','jwt','build_hashed_id','errorType','getInstance','buildName','Test_Skipped_Upload','frameworkVersion','api/v1/builds','lgCqU','Retry\x20runs\x20exceeded','qimnL','TestRunFinished','jUxSi','launch','app','Sqmju','UHzgV','error','jtFXW','upOFL','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','frameworkName','OXhbF','ERROR_INVALID_CREDENTIALS','add','mMIcv','exports','util','toString','\x20retry\x20runs\x20exceeded','tzPaO','gIwAF','includes','ERROR_ACCESS_DENIED','yGTUU','test_run','password','ERROR_SDK_DEPRECATED','BROWSERSTACK_RERUN','rsSjj','2033595OZXmfi','Build\x20creation\x20successful!'];a87_0x5df3=function(){return _0x4fbffe;};return a87_0x5df3();}module[a87_0x54c1cd(0x11e)]=SessionHandler;
1
+ const a87_0xf9c95c=a87_0x8a33;function a87_0x8a33(_0x4a0399,_0xbf81ee){const _0xacc491=a87_0xacc4();return a87_0x8a33=function(_0x8a33b5,_0x2b96f3){_0x8a33b5=_0x8a33b5-0x64;let _0x2e4438=_0xacc491[_0x8a33b5];return _0x2e4438;},a87_0x8a33(_0x4a0399,_0xbf81ee);}(function(_0x13fcf2,_0x49c91a){const _0x4177a7=a87_0x8a33,_0x3d8399=_0x13fcf2();while(!![]){try{const _0x5dd51f=-parseInt(_0x4177a7(0xb8))/0x1+parseInt(_0x4177a7(0xfd))/0x2*(-parseInt(_0x4177a7(0xdb))/0x3)+-parseInt(_0x4177a7(0xd0))/0x4*(parseInt(_0x4177a7(0xdf))/0x5)+parseInt(_0x4177a7(0x8b))/0x6+parseInt(_0x4177a7(0x8a))/0x7*(parseInt(_0x4177a7(0x76))/0x8)+-parseInt(_0x4177a7(0xbc))/0x9+parseInt(_0x4177a7(0xdd))/0xa;if(_0x5dd51f===_0x49c91a)break;else _0x3d8399['push'](_0x3d8399['shift']());}catch(_0x436856){_0x3d8399['push'](_0x3d8399['shift']());}}}(a87_0xacc4,0x71f79));const bsSetupHelper=require('../helper'),path=require(a87_0xf9c95c(0xf8)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a87_0xf9c95c(0x85)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a87_0xf9c95c(0x9c)),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a87_0xf9c95c(0x99))[a87_0xf9c95c(0xd1)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require('../../helpers/testhub/utils'),util=require(a87_0xf9c95c(0xb0));class SessionHandler{static [a87_0xf9c95c(0xd5)]=RequestQueueHandler[a87_0xf9c95c(0x10a)]();static async[a87_0xf9c95c(0xad)](_0x4fb613,_0x26e938){const _0x7de082=a87_0xf9c95c,_0x5a03b5={'hmSeH':function(_0x58fb98,_0x3b251c){return _0x58fb98||_0x3b251c;},'bvmzd':function(_0x542333,_0x44fba4){return _0x542333||_0x44fba4;},'ZUtaQ':function(_0x278b95,_0xfd8eff){return _0x278b95===_0xfd8eff;},'XQgrz':function(_0x1c974a,_0x28967b){return _0x1c974a(_0x28967b);},'kUzOo':_0x7de082(0x102),'whWON':_0x7de082(0x8d),'dONfS':_0x7de082(0x98),'TfNwR':function(_0xaa4582,_0x412081){return _0xaa4582(_0x412081);},'enTxD':function(_0x3c3696,_0x356d34){return _0x3c3696(_0x356d34);},'vBhGg':function(_0x84a5a1,_0x195b26,_0x53f80f,_0x4ddc7b,_0x293a72){return _0x84a5a1(_0x195b26,_0x53f80f,_0x4ddc7b,_0x293a72);},'epYtH':_0x7de082(0x73),'cQNQG':_0x7de082(0x94),'MkvNi':function(_0x42d276,_0x71c273){return _0x42d276(_0x71c273);},'FJrbR':_0x7de082(0xf3),'kxrNF':function(_0x27efd7){return _0x27efd7();},'QiYXT':_0x7de082(0xcd),'hTaUb':'null','lVQPw':_0x7de082(0xf0),'bJsBK':_0x7de082(0xe4),'uyIau':_0x7de082(0xf6)},_0x43c111=bsSetupHelper[_0x7de082(0xe9)](_0x4fb613),_0x1d1049=bsSetupHelper[_0x7de082(0x82)](_0x4fb613),_0x403dca=_0x5a03b5[_0x7de082(0xbd)](_0x43c111,'')+':'+_0x5a03b5[_0x7de082(0xce)](_0x1d1049,'');if(_0x5a03b5[_0x7de082(0xe2)](_0x403dca,':'))return _0x5a03b5['XQgrz'](debug,_0x5a03b5[_0x7de082(0x103)]),process['env'][_0x7de082(0xee)]=_0x5a03b5['whWON'],[null,null];let _0x1794d0=![],_0x47ff20=![];if(_0x4fb613[_0x7de082(0x72)]&&_0x4fb613[_0x7de082(0x97)])_0x47ff20=!![];else _0x4fb613['browserstackAutomation']&&(_0x1794d0=!![]);try{const _0xe4b046={'format':_0x5a03b5[_0x7de082(0xa5)],'project_name':_0x4fb613['projectName']||'','name':_0x4fb613[_0x7de082(0xa4)]||path[_0x7de082(0x66)](path['resolve'](process[_0x7de082(0xaa)]())),'build_identifier':_0x4fb613[_0x7de082(0xfc)],'description':_0x4fb613[_0x7de082(0x8c)]||'','start_time':new Date()[_0x7de082(0xc0)](),'tags':_0x5a03b5[_0x7de082(0xab)](getCustomTags,_0x4fb613),'host_info':bsSetupHelper[_0x7de082(0xf7)](),'ci_info':bsSetupHelper[_0x7de082(0x104)](),'build_run_identifier':process['env'][_0x7de082(0x10d)],'failed_tests_rerun':process[_0x7de082(0xe1)][_0x7de082(0xc9)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x26e938['frameworkName'],'frameworkVersion':_0x26e938[_0x7de082(0x10f)],'sdkVersion':bsSetupHelper[_0x7de082(0x7b)]()},'product_map':_0x5a03b5['TfNwR'](getProductMap,_0x4fb613)},_0x2add51={};_0x2add51[_0x7de082(0x83)]=_0x43c111,_0x2add51['password']=_0x1d1049;const _0x451471={'auth':_0x2add51,'headers':_0x5a03b5[_0x7de082(0x80)](getDefaultHeaders,![])},_0xe2baab=await _0x5a03b5[_0x7de082(0xe8)](nodeRequest,_0x5a03b5[_0x7de082(0xd9)],_0x5a03b5[_0x7de082(0xd3)],_0xe4b046,_0x451471);_0x5a03b5[_0x7de082(0x68)](debug,_0x5a03b5[_0x7de082(0x109)]);const _0x2d388f=_0xe2baab['data'];_0x2d388f[_0x7de082(0x91)]&&(process[_0x7de082(0xe1)][_0x7de082(0xf4)]=_0x2d388f[_0x7de082(0x91)]);if(_0x5a03b5[_0x7de082(0xdc)](isTestObservabilitySession)){process[_0x7de082(0xe1)][_0x7de082(0xee)]=_0x5a03b5[_0x7de082(0x110)];if(_0x2d388f['jwt']){process[_0x7de082(0xe1)][_0x7de082(0x84)]=_0x2d388f[_0x7de082(0xc7)];const _0x34dd90={};_0x34dd90[_0x7de082(0x83)]=_0x43c111,_0x34dd90[_0x7de082(0x86)]=_0x1d1049,process[_0x7de082(0xe1)][_0x7de082(0x75)]=JSON['stringify'](_0x34dd90);}_0x2d388f[_0x7de082(0x91)]&&(process[_0x7de082(0xe1)][_0x7de082(0xae)]=_0x2d388f['build_hashed_id']),_0x2d388f[_0x7de082(0xca)]&&(process[_0x7de082(0xe1)][_0x7de082(0x74)]=_0x2d388f[_0x7de082(0xca)]['toString']());}return[_0xe2baab['data'][_0x7de082(0xc7)],_0xe2baab['data'][_0x7de082(0x91)],_0xe2baab[_0x7de082(0xc4)][_0x7de082(0xca)]];}catch(_0x32f9cf){process[_0x7de082(0xe1)][_0x7de082(0xf4)]=_0x5a03b5[_0x7de082(0xd4)],process[_0x7de082(0xe1)][_0x7de082(0xee)]=_0x5a03b5['whWON'],process['env'][_0x7de082(0x84)]=_0x5a03b5[_0x7de082(0xd4)],process['env'][_0x7de082(0xae)]=_0x5a03b5[_0x7de082(0xd4)],process['env']['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x5a03b5['hTaUb'];_0x32f9cf[_0x7de082(0xa1)]?_0x5a03b5['TfNwR'](debug,_0x7de082(0xcb)+_0x32f9cf[_0x7de082(0xa1)][_0x7de082(0xec)]+'\x20'+_0x32f9cf[_0x7de082(0xa1)][_0x7de082(0xfa)]+'\x20'+JSON['stringify'](_0x32f9cf[_0x7de082(0xa1)][_0x7de082(0xc4)])):_0x5a03b5[_0x7de082(0x68)](debug,_0x7de082(0xcb)+(_0x32f9cf['message']||_0x32f9cf));if(_0x32f9cf&&_0x32f9cf[_0x7de082(0xa8)]){const _0x4e6bb5=_0x32f9cf['message'];switch(_0x32f9cf[_0x7de082(0x100)]){case _0x5a03b5['lVQPw']:logger[_0x7de082(0xe7)](_0x4e6bb5);break;case _0x5a03b5[_0x7de082(0xa9)]:logger[_0x7de082(0xba)](_0x4e6bb5);break;case _0x5a03b5[_0x7de082(0xa6)]:logger[_0x7de082(0xe7)](_0x4e6bb5);break;default:logger[_0x7de082(0xe7)](_0x4e6bb5);}}else console[_0x7de082(0xba)](_0x7de082(0x10c)+_0x32f9cf);return[null,null,null];}}static async[a87_0xf9c95c(0xf2)](){const _0x47239b=a87_0xf9c95c,_0x3376f8={'RFkKX':_0x47239b(0xcd),'xglye':_0x47239b(0x8d),'hgeNr':function(_0x1584f3,_0x15b012){return _0x1584f3(_0x15b012);}},_0x15b506=process[_0x47239b(0xe1)][_0x47239b(0xee)];if([_0x3376f8['RFkKX'],_0x3376f8[_0x47239b(0x9b)]][_0x47239b(0x71)](_0x15b506))return;while([_0x3376f8[_0x47239b(0xc6)],_0x3376f8['xglye']][_0x47239b(0x71)](_0x15b506)){await _0x3376f8[_0x47239b(0xc3)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0xf9c95c(0xa3)](_0x5c0d1c){const _0x359afc=a87_0xf9c95c,_0x5be79f={};_0x5be79f[_0x359afc(0x9d)]=_0x359afc(0x78),_0x5be79f[_0x359afc(0xfe)]='Test_End_Upload',_0x5be79f['pGsUn']=_0x359afc(0xbe),_0x5be79f[_0x359afc(0x10e)]=_0x359afc(0x7c),_0x5be79f[_0x359afc(0xb7)]=_0x359afc(0x10b),_0x5be79f['qnryI']='Hook_End_Upload',_0x5be79f[_0x359afc(0x8f)]=_0x359afc(0x6f);const _0x3b22e2=_0x5be79f,_0xa0b440={};return _0xa0b440[_0x359afc(0xed)]=_0x3b22e2['IBFpj'],_0xa0b440['TestRunFinished']=_0x3b22e2[_0x359afc(0xfe)],_0xa0b440[_0x359afc(0x77)]=_0x3b22e2[_0x359afc(0xb4)],_0xa0b440[_0x359afc(0x9e)]=_0x3b22e2[_0x359afc(0x10e)],_0xa0b440[_0x359afc(0x69)]=_0x3b22e2[_0x359afc(0xb7)],_0xa0b440[_0x359afc(0x79)]=_0x3b22e2[_0x359afc(0x6b)],_0xa0b440['CBTSessionCreated']=_0x3b22e2[_0x359afc(0x8f)],_0xa0b440[_0x5c0d1c[_0x359afc(0x65)]];}static async[a87_0xf9c95c(0x9a)](_0x31dbaa,_0xca8c83=0x0,_0x60f337=null){const _0x25294a=a87_0xf9c95c,_0x239372={'PvHao':function(_0x447304,_0x421969){return _0x447304===_0x421969;},'zkssd':_0x25294a(0x101),'qNZaV':function(_0x581be3,_0x525a5a){return _0x581be3!==_0x525a5a;},'cdemY':_0x25294a(0x92),'UiMqP':'true','lihrR':function(_0x41212d,_0x27b16b,_0x4bf807,_0x317df3,_0x461d0b){return _0x41212d(_0x27b16b,_0x4bf807,_0x317df3,_0x461d0b);},'zakrC':_0x25294a(0x73),'Afqmm':function(_0x548219,_0x1a2127,_0x2aa599,_0x28618d,_0x3dfc34){return _0x548219(_0x1a2127,_0x2aa599,_0x28618d,_0x3dfc34);},'AYENl':function(_0x369802,_0x23c91a){return _0x369802(_0x23c91a);},'VluXq':_0x25294a(0xb3),'IvsHT':function(_0xc90905,_0x2c42ec){return _0xc90905-_0x2c42ec;},'nWlqe':'api/v1/event','HbwaR':_0x25294a(0xd6),'NSFwK':function(_0xcf86b1,_0x328cab){return _0xcf86b1(_0x328cab);},'DnnXB':function(_0x246222,_0x1a7b70){return _0x246222!==_0x1a7b70;},'fkBHC':function(_0x16f6ca,_0x2a70e7){return _0x16f6ca-_0x2a70e7;},'UaXmC':function(_0x8add4c,_0x4c2270){return _0x8add4c===_0x4c2270;},'ZQiej':'error'};_0x239372[_0x25294a(0x7d)](_0x60f337,_0x239372[_0x25294a(0x8e)])&&logger[_0x25294a(0xcf)]('Sending\x20trace\x20zip\x20for\x20test:\x20'+_0x31dbaa[_0x25294a(0xef)][0x0][_0x25294a(0x7e)]);const _0x5c01a9=await this['getLogTag'](_0x31dbaa);let _0x4c7e53=_0x31dbaa,_0x7ca4c4=EVENT_ENDPOINT;_0x239372[_0x25294a(0x90)](_0x60f337,_0x239372[_0x25294a(0x8e)])&&this[_0x25294a(0xd5)][_0x25294a(0xda)]();const {shouldProceed:_0x536abf,proceedWithData:_0x1a25e7,proceedWithUrl:_0x16f383}=this['requestQueueHandler'][_0x25294a(0x107)](_0x31dbaa);if(!_0x536abf)return;else _0x1a25e7&&(_0x4c7e53=_0x1a25e7,_0x7ca4c4=_0x16f383);const _0x198014={};_0x198014[_0x25294a(0xf1)]=_0x25294a(0xa0)+process[_0x25294a(0xe1)][_0x25294a(0xf9)],_0x198014[_0x25294a(0xc5)]=_0x239372[_0x25294a(0xb1)],_0x198014[_0x25294a(0xa7)]=_0x239372[_0x25294a(0xe3)];const _0x172423={};_0x172423[_0x25294a(0x70)]=_0x198014;const _0x39a94a=_0x172423;let _0x4e8683;try{_0x239372[_0x25294a(0x7d)](_0x60f337,_0x239372[_0x25294a(0x8e)])?(logger[_0x25294a(0xcf)]('Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x31dbaa?.[_0x25294a(0xef)][0x0]?.[_0x25294a(0x7e)]),_0x4e8683=await _0x239372['lihrR'](asyncAwaitNodeReq,_0x239372[_0x25294a(0xea)],_0x7ca4c4,_0x4c7e53,_0x39a94a),logger[_0x25294a(0xcf)](_0x25294a(0x105)+_0x31dbaa?.[_0x25294a(0xef)][0x0]?.[_0x25294a(0x7e)])):_0x4e8683=await _0x239372[_0x25294a(0xeb)](nodeRequest,_0x239372[_0x25294a(0xea)],_0x7ca4c4,_0x4c7e53,_0x39a94a);if(_0x4e8683['data']['error']){const _0x481a22={};_0x481a22[_0x25294a(0xa8)]=_0x4e8683['data'][_0x25294a(0xe7)];throw _0x481a22;}else{_0x239372[_0x25294a(0xd2)](debug,(_0x239372[_0x25294a(0x90)](_0x7ca4c4,this['requestQueueHandler'][_0x25294a(0xc8)])?_0x5c01a9:_0x239372['VluXq'])+'['+_0xca8c83+']\x20event\x20successful!'),this[_0x25294a(0xd5)][_0x25294a(0xaf)]=Math[_0x25294a(0x7f)](0x0,_0x239372['IvsHT'](this[_0x25294a(0xd5)][_0x25294a(0xaf)],_0x239372[_0x25294a(0x7d)](_0x7ca4c4,_0x239372[_0x25294a(0x81)])?0x1:_0x4c7e53[_0x25294a(0x9f)]));const _0x4fb945={};return _0x4fb945[_0x25294a(0xec)]=_0x239372[_0x25294a(0x96)],_0x4fb945[_0x25294a(0xa8)]='',_0x4fb945;}}catch(_0x533e0d){_0x533e0d[_0x25294a(0xa1)]?_0x239372[_0x25294a(0xd2)](debug,_0x25294a(0xbb)+(_0x239372[_0x25294a(0x90)](_0x7ca4c4,this[_0x25294a(0xd5)]['eventUrl'])?_0x5c01a9:_0x239372[_0x25294a(0xfb)])+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x533e0d[_0x25294a(0xa1)]['status']+'\x20'+_0x533e0d[_0x25294a(0xa1)]['statusText']+'\x20'+util[_0x25294a(0xa2)](_0x533e0d[_0x25294a(0xa1)][_0x25294a(0xc4)])):_0x239372[_0x25294a(0xc2)](debug,_0x25294a(0xbb)+(_0x239372[_0x25294a(0x6e)](_0x7ca4c4,this[_0x25294a(0xd5)][_0x25294a(0xc8)])?_0x5c01a9:_0x239372[_0x25294a(0xfb)])+_0x25294a(0x64)+util[_0x25294a(0xa2)](_0x533e0d));this[_0x25294a(0xd5)]['pendingUploads']=Math[_0x25294a(0x7f)](0x0,_0x239372[_0x25294a(0x67)](this[_0x25294a(0xd5)][_0x25294a(0xaf)],_0x239372[_0x25294a(0xe6)](_0x7ca4c4,_0x239372[_0x25294a(0x81)])?0x1:_0x4c7e53[_0x25294a(0x9f)]));const _0x5398ca={};return _0x5398ca[_0x25294a(0xec)]=_0x239372[_0x25294a(0x87)],_0x5398ca[_0x25294a(0xa8)]=_0x533e0d[_0x25294a(0xa8)]||(_0x533e0d[_0x25294a(0xa1)]?_0x533e0d['response'][_0x25294a(0xec)]+':'+_0x533e0d[_0x25294a(0xa1)]['statusText']:_0x533e0d),_0x5398ca;}}static async[a87_0xf9c95c(0xde)](_0x44df65,_0x5128a5=0x0){const _0x191a52=a87_0xf9c95c,_0x643d2e={'hYEpu':function(_0x4f2334,_0x21f09b){return _0x4f2334+_0x21f09b;},'YxkYc':function(_0x28731f,_0x432509){return _0x28731f(_0x432509);},'jKxdV':_0x191a52(0x108),'QSPmn':_0x191a52(0xb2),'MHCZw':_0x191a52(0x106),'EKtzp':function(_0x3581f2,_0x1f328e,_0x35fb4d){return _0x3581f2(_0x1f328e,_0x35fb4d);},'OXIrH':_0x191a52(0xde),'ZVOGe':function(_0x2f35a5,_0x41ae26){return _0x2f35a5===_0x41ae26;},'VlIpu':function(_0x11072d,_0xb0dd02){return _0x11072d!==_0xb0dd02;},'ELBJc':_0x191a52(0xcc),'IRTHT':function(_0x16bdb9,_0x775de2){return _0x16bdb9===_0x775de2;},'YFmTD':_0x191a52(0xcd),'jyvYt':function(_0x560773){return _0x560773();},'pQwoH':function(_0x39d6f5,_0x96ca44){return _0x39d6f5===_0x96ca44;},'xZLfj':function(_0xb9a3dc,_0x3e4fe6){return _0xb9a3dc-_0x3e4fe6;},'iNioS':_0x191a52(0xe7),'fetDX':_0x191a52(0xac),'TBkqH':function(_0x15830a,_0x42c6d1){return _0x15830a>=_0x42c6d1;},'QcDZU':function(_0x20fecf,_0x4e6171){return _0x20fecf(_0x4e6171);},'lfkSq':_0x191a52(0xb6),'SIXbX':_0x191a52(0x8d)},_0x55ec9d=this[_0x191a52(0xa3)](_0x44df65);_0x643d2e[_0x191a52(0xff)](trace,'Processing\x20event\x20-\x20\x27'+_0x44df65[_0x191a52(0x65)]+'\x27\x20'+(bsSetupHelper['nestedKeyValue'](_0x44df65,[_0x643d2e[_0x191a52(0x93)],_0x643d2e[_0x191a52(0x6d)]])||bsSetupHelper['nestedKeyValue'](_0x44df65,[_0x643d2e['MHCZw'],_0x643d2e[_0x191a52(0x6d)]])));if(!_0x643d2e[_0x191a52(0x7a)](shouldProcessEventForTesthub,_0x44df65['event_type'],_0x643d2e['OXIrH']))return;_0x643d2e['ZVOGe'](_0x5128a5,0x0)&&process[_0x191a52(0xe1)][_0x191a52(0xf9)]&&_0x643d2e[_0x191a52(0x95)](process[_0x191a52(0xe1)][_0x191a52(0xf9)],_0x643d2e['ELBJc'])&&(this['requestQueueHandler'][_0x191a52(0xaf)]+=0x1);if(_0x643d2e[_0x191a52(0xc1)](process[_0x191a52(0xe1)][_0x191a52(0xee)],_0x643d2e['YFmTD'])||process[_0x191a52(0xe1)][_0x191a52(0xf5)]||_0x643d2e['jyvYt'](isPercyBuild)){if(_0x643d2e['pQwoH'](process[_0x191a52(0xe1)][_0x191a52(0xf9)],_0x643d2e[_0x191a52(0x6c)])){_0x643d2e['YxkYc'](debug,_0x191a52(0xbb)+_0x55ec9d+_0x191a52(0x88)),this[_0x191a52(0xd5)][_0x191a52(0xaf)]=Math[_0x191a52(0x7f)](0x0,_0x643d2e[_0x191a52(0xb9)](this[_0x191a52(0xd5)][_0x191a52(0xaf)],0x1));const _0x1d2f68={};return _0x1d2f68[_0x191a52(0xec)]=_0x643d2e[_0x191a52(0x6a)],_0x1d2f68[_0x191a52(0xa8)]=_0x643d2e[_0x191a52(0x89)],_0x1d2f68;}return await this[_0x191a52(0x9a)](_0x44df65,_0x5128a5);}else{if(_0x643d2e['TBkqH'](_0x5128a5,0x5)){_0x643d2e[_0x191a52(0xbf)](debug,_0x191a52(0xbb)+_0x55ec9d+_0x191a52(0xe0)+_0x55ec9d+_0x191a52(0xe5));_0x643d2e['VlIpu'](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x643d2e[_0x191a52(0x6c)])&&(this[_0x191a52(0xd5)][_0x191a52(0xaf)]=Math[_0x191a52(0x7f)](0x0,_0x643d2e[_0x191a52(0xb9)](this[_0x191a52(0xd5)][_0x191a52(0xaf)],0x1)));const _0x84d7d9={};return _0x84d7d9['status']=_0x643d2e[_0x191a52(0x6a)],_0x84d7d9[_0x191a52(0xa8)]=_0x643d2e[_0x191a52(0xb5)],_0x84d7d9;}else _0x643d2e[_0x191a52(0x95)](process[_0x191a52(0xe1)][_0x191a52(0xee)],_0x643d2e[_0x191a52(0xd8)])&&_0x643d2e[_0x191a52(0x7a)](setTimeout,()=>{const _0x194934=_0x191a52;this[_0x194934(0xde)](_0x44df65,_0x643d2e['hYEpu'](_0x5128a5,0x1));},0x3e8);}}}module[a87_0xf9c95c(0xd7)]=SessionHandler;function a87_0xacc4(){const _0x5e8cad=['xglye','./constants','IBFpj','LogCreated','length','Bearer\x20','response','format','getLogTag','buildName','dONfS','uyIau','X-BSTACK-TESTOPS','message','bJsBK','cwd','XQgrz','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','launch','BS_TESTOPS_BUILD_HASHED_ID','pendingUploads','util','cdemY','uuid','Batch-Queue','pGsUn','lfkSq','Retry\x20runs\x20exceeded','hSQRq','730708ASllDf','xZLfj','info','EXCEPTION\x20IN\x20','1866510UQAqBK','hmSeH','Test_Skipped_Upload','QcDZU','toISOString','IRTHT','NSFwK','hgeNr','data','Content-Type','RFkKX','jwt','eventUrl','BROWSERSTACK_RERUN','allow_screenshots','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','null','true','bvmzd','debug','28XHHqrp','winstonLogger','AYENl','cQNQG','hTaUb','requestQueueHandler','success','exports','SIXbX','epYtH','start','30543Slywmc','kxrNF','16666670vODHIM','uploadEventData','237960lyHvkg','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','env','ZUtaQ','UiMqP','ERROR_ACCESS_DENIED','\x20retry\x20runs\x20exceeded','UaXmC','error','vBhGg','getUserName','zakrC','Afqmm','status','TestRunStarted','BS_TESTOPS_BUILD_COMPLETED','logs','ERROR_INVALID_CREDENTIALS','Authorization','waitForBuildStatus','Build\x20creation\x20successful!','BROWSERSTACK_TESTHUB_UUID','BS_A11Y_JWT','ERROR_SDK_DEPRECATED','getHostInfo','path','BROWSERSTACK_TESTHUB_JWT','statusText','VluXq','buildIdentifier','138NZOXnk','FTvWU','YxkYc','errorType','sendTraceZip','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','kUzOo','getCiInfo','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','hook_run','add','test_run','FJrbR','getInstance','Hook_Start_Upload','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','BROWSERSTACK_BUILD_RUN_IDENTIFIER','jLMnG','frameworkVersion','QiYXT','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','event_type','basename','fkBHC','MkvNi','HookRunStarted','iNioS','qnryI','ELBJc','QSPmn','DnnXB','CBT_Upload','headers','includes','browserstackAutomation','POST','BS_TESTOPS_ALLOW_SCREENSHOTS','CREDENTIALS_FOR_CRASH_REPORTING','8nPJtVB','TestRunSkipped','Test_Start_Upload','HookRunFinished','EKtzp','getAgentVersion','Log_Upload','PvHao','test_run_uuid','max','enTxD','nWlqe','getAccessKey','username','BS_TESTOPS_JWT','./utils','password','ZQiej','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','fetDX','2969442iqUPaH','2098002GKZRTf','buildDescription','false','zkssd','PFjti','qNZaV','build_hashed_id','application/json','jKxdV','api/v1/builds','VlIpu','HbwaR','app','json','../logger','sendEventData'];a87_0xacc4=function(){return _0x5e8cad;};return a87_0xacc4();}