browserstack-node-sdk 1.34.47 → 1.34.49

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 (141) 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 -0
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -0
  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/permissions/AWS.json +85 -0
  27. package/ats/src/permissions/AZURE.json +33 -0
  28. package/ats/src/permissions/GCP.json +19 -0
  29. package/ats/src/templates/nginx/pods-and-services.yaml +1 -1
  30. package/ats/src/templates/nginx/private-pods-and-services.yaml +1 -1
  31. package/ats/src/utils/AWSUtils.js +1 -1
  32. package/ats/src/utils/createAutoscalerStack.js +1 -1
  33. package/ats/src/utils/createClusterStack.js +1 -1
  34. package/ats/src/utils/createHubHaStack.js +1 -1
  35. package/ats/src/utils/createk8sClient.js +1 -1
  36. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  37. package/ats/src/utils/deleteStack.js +1 -1
  38. package/ats/src/utils/describeStack.js +1 -1
  39. package/ats/src/utils/gridComponents.js +1 -1
  40. package/ats/src/utils/hstUtils.js +1 -1
  41. package/ats/src/utils/instrumentationUtils.js +1 -1
  42. package/ats/src/utils/userInput.js +1 -1
  43. package/ats/src/utils/utilityMethods.js +1 -1
  44. package/ats/src/utils/webSocketUtils.js +1 -1
  45. package/package.json +1 -1
  46. package/src/ai-sdk-node/bundle.js +1 -1
  47. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  48. package/src/bin/codeceptjs/command.js +1 -1
  49. package/src/bin/codeceptjs/helper.js +1 -1
  50. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  51. package/src/bin/cucumber-js/command.js +1 -1
  52. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  53. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  54. package/src/bin/cucumber-js/test-observability.js +1 -1
  55. package/src/bin/cucumber-js/test.setup.js +1 -1
  56. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  57. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  58. package/src/bin/integrations/command.js +1 -1
  59. package/src/bin/integrations/constants.js +1 -1
  60. package/src/bin/jest/command.js +1 -1
  61. package/src/bin/jest/customImplements/customCircus.js +1 -1
  62. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  63. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test_before.setup.js +1 -1
  71. package/src/bin/launcher/launcher.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/vanilla-js/command.js +1 -1
  100. package/src/browserStackSdk.js +1 -1
  101. package/src/helpers/BrowserStackSetup.js +1 -1
  102. package/src/helpers/accessibility-automation/constants.js +1 -1
  103. package/src/helpers/accessibility-automation/helper.js +1 -1
  104. package/src/helpers/accessibility-automation/scripts.js +1 -1
  105. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  106. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  107. package/src/helpers/ats/constants.js +1 -1
  108. package/src/helpers/ats/helper.js +1 -1
  109. package/src/helpers/capsMapping.js +1 -1
  110. package/src/helpers/central-scanner/constants.js +1 -1
  111. package/src/helpers/central-scanner/helpers.js +1 -1
  112. package/src/helpers/globals.js +1 -1
  113. package/src/helpers/helper.js +1 -1
  114. package/src/helpers/logger.js +1 -1
  115. package/src/helpers/patchHelper.js +1 -1
  116. package/src/helpers/patchHelpers.js +1 -1
  117. package/src/helpers/percy/Percy.js +1 -1
  118. package/src/helpers/percy/PercyBinary.js +1 -1
  119. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  120. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  121. package/src/helpers/percy/PercySDK.js +1 -1
  122. package/src/helpers/percy/index.js +1 -1
  123. package/src/helpers/percy/utils.js +1 -1
  124. package/src/helpers/performance/constants.js +1 -1
  125. package/src/helpers/performance/performance-tester.js +1 -1
  126. package/src/helpers/processHelper.js +1 -1
  127. package/src/helpers/request-spy.js +1 -1
  128. package/src/helpers/setKeepAlive.js +1 -1
  129. package/src/helpers/test-observability/constants.js +1 -1
  130. package/src/helpers/test-observability/error-handler.js +1 -1
  131. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  132. package/src/helpers/test-observability/sessionHandler.js +1 -1
  133. package/src/helpers/test-observability/utils.js +1 -1
  134. package/src/helpers/testhub/constants.js +1 -1
  135. package/src/helpers/testhub/testhubHandler.js +1 -1
  136. package/src/helpers/testhub/utils.js +1 -1
  137. package/src/helpers/timeoutPromise.js +1 -1
  138. package/src/helpers/utilities.js +1 -1
  139. package/src/helpers/w3cMapping.js +1 -1
  140. package/src/hubAllocationMethods.js +1 -1
  141. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a79_0xfde7b9=a79_0x3e12;(function(_0x1d8d79,_0x404761){const _0x371dcf=a79_0x3e12,_0x559b62=_0x1d8d79();while(!![]){try{const _0x1f42b=parseInt(_0x371dcf(0x24b))/0x1*(parseInt(_0x371dcf(0x1dd))/0x2)+-parseInt(_0x371dcf(0x1ef))/0x3+parseInt(_0x371dcf(0x1b7))/0x4*(-parseInt(_0x371dcf(0x246))/0x5)+-parseInt(_0x371dcf(0x20c))/0x6+-parseInt(_0x371dcf(0x226))/0x7*(-parseInt(_0x371dcf(0x212))/0x8)+-parseInt(_0x371dcf(0x221))/0x9+parseInt(_0x371dcf(0x1df))/0xa;if(_0x1f42b===_0x404761)break;else _0x559b62['push'](_0x559b62['shift']());}catch(_0x44d817){_0x559b62['push'](_0x559b62['shift']());}}}(a79_0x2273,0x6f5ea));const fs=require('fs'),fsPromise=require(a79_0xfde7b9(0x23c)),{performance,PerformanceObserver}=require(a79_0xfde7b9(0x1f5)),path=require(a79_0xfde7b9(0x21a)),util=require(a79_0xfde7b9(0x24a)),logger=require('../logger')[a79_0xfde7b9(0x209)],{getProcessId,sleep,debug,getTestName}=require(a79_0xfde7b9(0x1d4));function a79_0x2273(){const _0x1193ed=['push','pushErrors','appendFileSync','utf-8','SGonz','disconnect','index','stopMonitoring','false','errorReportDirName','../processHelper','errors','apply','failure','kKgVH','then','QPmCj','finalizePerfMeasures','function','4WaQCjA','mkdirSync','21208070bAjfiZ','readFile','format','end','ePDVt','log','pPgqz','forEach','opndh','ymKLe','map','writeFileSync','mark','NKjJZ','toJSON','mkXSZ','1794954iZwEXt','writeFile','debug','bkPWB','slice','kdzXm','perf_hooks','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','stringify','BVWtE','all','IGKFG','eohtk','errorReportFileName','concat','EuDNq','sjxrh','exports','startMonitoring','reduce','entryType','/performance-report-','qXQYN','stopAndGenerate','isEnabled','details','winstonLogger','Time\x20for\x20','errorFile','2266626xMhWaW','entryTypes','-end','finalizeErrors','assign','browserStackCwd','26944cqMEPt','worker','jsonReportDirPath','/error-report-','name','WNnlJ','_errorEvents','jsonReportFileName','path','hmLMD','VSiIC','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','observe','Error\x20in\x20writing\x20html\x20','<tr><td>','8067222EhVpHR','buffered','Nsffw','bJXTG','error-report','1295TmgUjH','-start','readFileSync','_observer','IULEM','duration','measure','getEventsFromJSON','started','pushPerfMeasures','toString','length','VSJFq','calculateTimesFromMultipleFiles','meta','parse','readdirSync','__platformCaps','</td><td>','match','measures','eventsMap','fs/promises','VGvTc','join','getCleanedPerfEvents','splice','getEntries','Error\x20while\x20removing\x20files:\x20','finalize','generateJSON','\x20for\x20all\x20processes\x20is\x20','10UovcEP','JSmDq','jsonReportDirName','platform','util','73337WlAgNz','catch','</tbody></table></body></html>','Performance\x20report\x20is\x20at\x20','lhChw','zPKXm','calculateTimeFromEvents','getPerformance','WtajS','xeClK','1123888VujUlI','QJMZK','FqvJZ','mhxRD','performance-report','_measureEvents','_events','stack','bHLIx','RUoGb','env','success','unlinkSync','existsSync','Jtviq','start','.json','measureWrapper','UuDKa'];a79_0x2273=function(){return _0x1193ed;};return a79_0x2273();}class PerformanceTester{static [a79_0xfde7b9(0x229)];static [a79_0xfde7b9(0x1bd)]=[];static [a79_0xfde7b9(0x1bc)]=[];static [a79_0xfde7b9(0x218)]=[];static [a79_0xfde7b9(0x22e)]=![];static [a79_0xfde7b9(0x248)]=a79_0xfde7b9(0x1bb);static [a79_0xfde7b9(0x214)]=process[a79_0xfde7b9(0x1c1)]['browserStackCwd']?path[a79_0xfde7b9(0x23e)](process[a79_0xfde7b9(0x1c1)]['browserStackCwd'],this[a79_0xfde7b9(0x248)]):path[a79_0xfde7b9(0x23e)](process['cwd'](),a79_0xfde7b9(0x1e4),this['jsonReportDirName']);static ['errorReportDirName']=process[a79_0xfde7b9(0x1c1)]['browserStackCwd']?path[a79_0xfde7b9(0x23e)](process[a79_0xfde7b9(0x1c1)][a79_0xfde7b9(0x211)],'error-report'):path['join'](process['cwd'](),a79_0xfde7b9(0x225));static [a79_0xfde7b9(0x219)]=this[a79_0xfde7b9(0x214)]+a79_0xfde7b9(0x204)+getProcessId()+'.json';static [a79_0xfde7b9(0x1fc)]=this[a79_0xfde7b9(0x1d3)]+a79_0xfde7b9(0x215)+getProcessId()+'.json';static ['details']={};static [a79_0xfde7b9(0x23b)]={};static[a79_0xfde7b9(0x201)](_0x3eef67=this[a79_0xfde7b9(0x214)]+a79_0xfde7b9(0x204)+getProcessId()+'.json',_0x2e99da=this[a79_0xfde7b9(0x1d3)]+a79_0xfde7b9(0x215)+getProcessId()+a79_0xfde7b9(0x1c7)){const _0x20b4c2=a79_0xfde7b9,_0x36f678={};_0x36f678[_0x20b4c2(0x223)]=function(_0x1d2eb0,_0x265cb9){return _0x1d2eb0===_0x265cb9;},_0x36f678[_0x20b4c2(0x1d8)]=_0x20b4c2(0x22c),_0x36f678['eGVpJ']=function(_0x399042,_0xd6e08b){return _0x399042+_0xd6e08b;},_0x36f678[_0x20b4c2(0x1b5)]='Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20',_0x36f678[_0x20b4c2(0x21c)]=_0x20b4c2(0x1dc);const _0x26c8d1=_0x36f678;try{!fs[_0x20b4c2(0x1c4)](this[_0x20b4c2(0x214)])&&fs[_0x20b4c2(0x1de)](this['jsonReportDirPath']);}catch(_0x2fa18f){logger[_0x20b4c2(0x1f1)](_0x26c8d1['eGVpJ'](_0x26c8d1[_0x20b4c2(0x1b5)],_0x2fa18f));}if(this[_0x20b4c2(0x22e)]||!this['isEnabled']())return;this[_0x20b4c2(0x229)]=new PerformanceObserver(_0x4c4eb0=>{const _0x558c06=_0x20b4c2,_0x922f09={'bHLIx':function(_0x7209fa,_0x3811e4){const _0x2c7713=a79_0x3e12;return _0x26c8d1[_0x2c7713(0x223)](_0x7209fa,_0x3811e4);},'mkXSZ':_0x26c8d1[_0x558c06(0x1d8)]};_0x4c4eb0[_0x558c06(0x241)]()[_0x558c06(0x1e6)](_0x2e1f0f=>{const _0x581e08=_0x558c06;if(_0x922f09[_0x581e08(0x1bf)](_0x2e1f0f[_0x581e08(0x203)],_0x922f09[_0x581e08(0x1ee)])){let _0x562baf={};if(_0x2e1f0f[_0x581e08(0x1ed)])_0x562baf=_0x2e1f0f[_0x581e08(0x1ed)]();else for(const _0x3e871b in _0x2e1f0f){_0x562baf[_0x3e871b]=_0x2e1f0f[_0x3e871b];}this['details'][_0x2e1f0f[_0x581e08(0x216)]]&&(_0x562baf=Object[_0x581e08(0x210)](_0x562baf,this[_0x581e08(0x208)][_0x2e1f0f[_0x581e08(0x216)]])),delete this[_0x581e08(0x208)][_0x2e1f0f['name']],this[_0x581e08(0x1bc)][_0x581e08(0x1ca)](_0x562baf);}else this[_0x581e08(0x1bd)][_0x581e08(0x1ca)](_0x2e1f0f);});});const _0x5e633b={};_0x5e633b[_0x20b4c2(0x222)]=!![],_0x5e633b[_0x20b4c2(0x20d)]=[_0x26c8d1[_0x20b4c2(0x21c)],_0x26c8d1[_0x20b4c2(0x1d8)]],this[_0x20b4c2(0x229)][_0x20b4c2(0x21e)](_0x5e633b),this[_0x20b4c2(0x22e)]=!![],this[_0x20b4c2(0x219)]=_0x3eef67,this[_0x20b4c2(0x1fc)]=_0x2e99da;}static[a79_0xfde7b9(0x1b4)](){return performance;}static[a79_0xfde7b9(0x1b3)](_0x1286bc,_0x317e7c){const _0x1a7819=a79_0xfde7b9,_0x2803e3={};_0x2803e3[_0x1a7819(0x1e8)]=function(_0x1a9927,_0x53847d){return _0x1a9927+_0x53847d;},_0x2803e3[_0x1a7819(0x1f4)]=function(_0x3253e2,_0x26a8ff){return _0x3253e2||_0x26a8ff;},_0x2803e3[_0x1a7819(0x1e7)]=function(_0x366ab7,_0x2932e4){return _0x366ab7===_0x2932e4;};const _0x5bb507=_0x2803e3,_0x5dac09={};if(!_0x1286bc||_0x5bb507[_0x1a7819(0x1e7)](_0x1286bc[_0x1a7819(0x231)],0x0))return;_0x1286bc['map'](_0x1bde06=>{const _0x32d47b=_0x1a7819;!_0x5dac09[_0x1bde06[_0x32d47b(0x216)]]&&(_0x5dac09[_0x1bde06[_0x32d47b(0x216)]]=0x0),_0x5dac09[_0x1bde06[_0x32d47b(0x216)]]+=_0x1bde06[_0x32d47b(0x22b)];});const _0x21252b=_0x317e7c[_0x1a7819(0x202)]((_0x4f302a,_0x228fe4)=>{const _0x1a01ea=_0x1a7819;return _0x5bb507[_0x1a01ea(0x1e8)](_0x5dac09[_0x228fe4],_0x5bb507[_0x1a01ea(0x1f4)](_0x4f302a,0x0));},0x0);return _0x21252b;}static async[a79_0xfde7b9(0x233)](_0x508ca1,_0x1fcdd9){const _0x4c829e=a79_0xfde7b9,_0x3fe6e8={'RkPLS':function(_0x32fb3f,_0x403e21){return _0x32fb3f+_0x403e21;},'FqvJZ':function(_0x289bc5,_0x95a7b9){return _0x289bc5||_0x95a7b9;},'YPAFe':function(_0x3946bd,_0x3bb0b2){return _0x3946bd===_0x3bb0b2;},'BVWtE':function(_0x2f49d3,_0x18cd7a){return _0x2f49d3(_0x18cd7a);}};if(!_0x508ca1||_0x3fe6e8['YPAFe'](_0x508ca1[_0x4c829e(0x231)],0x0))return 0x0;const _0x1bdbde=[];for(const _0x37eac3 of _0x508ca1){const _0x28ca4a=path['join']('.',_0x37eac3);try{const _0x445ebd=this['getEventsFromJSON'](_0x28ca4a);_0x445ebd[_0x4c829e(0x1e9)](_0x2d4479=>{const _0xfd4f7a=_0x4c829e;!_0x1bdbde[_0x2d4479[_0xfd4f7a(0x216)]]&&(_0x1bdbde[_0x2d4479[_0xfd4f7a(0x216)]]=0x0),_0x1bdbde[_0x2d4479[_0xfd4f7a(0x216)]]+=_0x2d4479['duration'];});}catch(_0x120502){_0x3fe6e8[_0x4c829e(0x1f8)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x120502['toString']());}}const _0x3036bb=_0x1fcdd9['reduce']((_0x3cb51f,_0x46700c)=>{const _0x672748=_0x4c829e;return _0x3fe6e8['RkPLS'](_0x1bdbde[_0x46700c],_0x3fe6e8[_0x672748(0x1b9)](_0x3cb51f,0x0));},0x0);return _0x3fe6e8[_0x4c829e(0x1f8)](debug,_0x4c829e(0x20a)+_0x1fcdd9+_0x4c829e(0x245)+_0x3036bb),_0x3036bb;}static[a79_0xfde7b9(0x22d)](_0x39b4d0){const _0x1c6d4b=a79_0xfde7b9;if(!fs[_0x1c6d4b(0x1c4)](_0x39b4d0))return[];return JSON[_0x1c6d4b(0x235)](fs[_0x1c6d4b(0x228)](_0x39b4d0)[_0x1c6d4b(0x230)]());}static async[a79_0xfde7b9(0x206)](_0x59b70a='performance-own.html',_0x46aa8b=null){const _0x732d97=a79_0xfde7b9,_0x3e0089={'ePDVt':function(_0x4b74e5,_0x5b670f){return _0x4b74e5(_0x5b670f);}};if(!this['started'])return;await _0x3e0089[_0x732d97(0x1e3)](sleep,0x1e),this[_0x732d97(0x229)][_0x732d97(0x1cf)](),this[_0x732d97(0x22e)]=![],this[_0x732d97(0x244)](this['_events']);const _0x1b2895=this['generateHTMLReport'](this[_0x732d97(0x1bd)]),_0x27ae9b=path[_0x732d97(0x23e)](process['cwd'](),_0x59b70a);fs[_0x732d97(0x1f0)](_0x27ae9b,_0x1b2895,_0x24232a=>{const _0x503dae=_0x732d97;if(_0x24232a){_0x3e0089[_0x503dae(0x1e3)](debug,_0x503dae(0x21f)+_0x24232a[_0x503dae(0x230)]());return;}_0x3e0089[_0x503dae(0x1e3)](debug,_0x503dae(0x1b0)+_0x27ae9b);});if(_0x46aa8b)return this['calculateTimeFromEvents'](this[_0x732d97(0x1bd)],_0x46aa8b);}static['generateHTMLReport'](_0x37c6e6){const _0x53f413=a79_0xfde7b9,_0x42aaea={};_0x42aaea[_0x53f413(0x1b1)]=_0x53f413(0x21d),_0x42aaea[_0x53f413(0x1ce)]='<h1>Performance\x20Report</h1>',_0x42aaea[_0x53f413(0x1ba)]=_0x53f413(0x1f6),_0x42aaea[_0x53f413(0x1ec)]=_0x53f413(0x24d);const _0x32e7f2=_0x42aaea;let _0x3f0c8d=_0x32e7f2[_0x53f413(0x1b1)];return _0x3f0c8d+=_0x32e7f2[_0x53f413(0x1ce)],_0x3f0c8d+=_0x32e7f2['mhxRD'],_0x37c6e6['forEach'](_0x5902b9=>{const _0x22ff0d=_0x53f413;_0x3f0c8d+=_0x22ff0d(0x220)+_0x5902b9['name']+_0x22ff0d(0x238)+_0x5902b9[_0x22ff0d(0x22b)]+'</td></tr>';}),_0x3f0c8d+=_0x32e7f2[_0x53f413(0x1ec)],_0x3f0c8d;}static['generateJSON'](_0x73f6fc){const _0x27aaeb=a79_0xfde7b9;if(!this[_0x27aaeb(0x219)])return;const _0x7aaede={};_0x73f6fc[_0x27aaeb(0x1e9)](_0x45ebf2=>{const _0x25516b=_0x27aaeb;!_0x7aaede[_0x45ebf2[_0x25516b(0x216)]]&&(_0x7aaede[_0x45ebf2[_0x25516b(0x216)]]=0x0),_0x7aaede[_0x45ebf2[_0x25516b(0x216)]]+=_0x45ebf2[_0x25516b(0x22b)];});const _0x290771=Object['entries'](_0x7aaede)[_0x27aaeb(0x1e9)](([_0x5a564c,_0x520be7])=>{const _0x2714eb=_0x27aaeb,_0x3597c1={};return _0x3597c1[_0x2714eb(0x216)]=_0x5a564c,_0x3597c1[_0x2714eb(0x22b)]=_0x520be7,_0x3597c1;});fs[_0x27aaeb(0x1ea)](this['jsonReportFileName'],JSON[_0x27aaeb(0x1f7)](_0x290771));}static['isEnabled'](){const _0x275896=a79_0xfde7b9,_0x425713={};_0x425713[_0x275896(0x1b6)]=function(_0xc100d0,_0x11b35f){return _0xc100d0===_0x11b35f;},_0x425713[_0x275896(0x1fb)]=_0x275896(0x1d2);const _0x32bea3=_0x425713;return!_0x32bea3['xeClK'](process[_0x275896(0x1c1)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x32bea3[_0x275896(0x1fb)]);}static[a79_0xfde7b9(0x22c)](_0xe1252e,_0x2391de,_0x530c6a=null,_0x33c0e6={},_0x5f7285=null){const _0x582395=a79_0xfde7b9,_0x2d6b1c={'bJXTG':function(_0x42ae3b,_0x54f5cd){return _0x42ae3b(_0x54f5cd);},'pPgqz':function(_0xc8c284,_0xdaf8d){return _0xc8c284 instanceof _0xdaf8d;}};try{if(this[_0x582395(0x22e)]&&this[_0x582395(0x207)]()){let _0x36c75f=_0xe1252e;_0x530c6a&&(_0x36c75f=_0xe1252e+'['+JSON[_0x582395(0x1f7)](_0x530c6a)+']');PerformanceTester['start'](_0x36c75f),this[_0x582395(0x208)]&&(this[_0x582395(0x208)][_0x36c75f]=_0x33c0e6);try{const _0x52da7f=_0x2391de[_0x582395(0x1d6)](null,_0x5f7285);if(_0x2d6b1c[_0x582395(0x1e5)](_0x52da7f,Promise))return new Promise((_0x585a21,_0xad26e6)=>{const _0x4f85bb=_0x582395,_0x408617={'zPKXm':function(_0x41c470,_0x5f0543){const _0x13ddd9=a79_0x3e12;return _0x2d6b1c[_0x13ddd9(0x224)](_0x41c470,_0x5f0543);}};_0x52da7f[_0x4f85bb(0x1d9)](_0x5d9266=>{const _0x513f94=_0x4f85bb;PerformanceTester['end'](_0x36c75f),_0x408617[_0x513f94(0x1b2)](_0x585a21,_0x5d9266);})[_0x4f85bb(0x24c)](_0x161500=>{const _0x3366c1=_0x4f85bb;PerformanceTester[_0x3366c1(0x1e2)](_0x36c75f,![],util[_0x3366c1(0x1e1)](_0x161500)),_0x2d6b1c[_0x3366c1(0x224)](_0xad26e6,_0x161500);});});;return PerformanceTester[_0x582395(0x1e2)](_0x36c75f),_0x52da7f;}catch(_0x39d9a0){PerformanceTester[_0x582395(0x1e2)](_0x36c75f,![],util[_0x582395(0x1e1)](_0x39d9a0));throw _0x39d9a0;}};return _0x2391de['apply'](null,_0x5f7285);}catch(_0xa24fff){return _0x2391de['apply'](null,_0x5f7285);}}static[a79_0xfde7b9(0x1c8)](_0x150ae2,_0x3ac32b,_0x47ecf9={}){const _0x24ce9a=a79_0xfde7b9,_0x37516f={'VGvTc':function(_0x1c6ee4){return _0x1c6ee4();},'VSJFq':function(_0xc28766){return _0xc28766();}},_0x1d8b39=this;return _0x47ecf9[_0x24ce9a(0x213)]=_0x37516f[_0x24ce9a(0x23d)](getProcessId),_0x47ecf9['testName']=_0x37516f[_0x24ce9a(0x232)](getTestName),_0x47ecf9[_0x24ce9a(0x249)]=global[_0x24ce9a(0x237)]&&global[_0x24ce9a(0x237)][_0x24ce9a(0x1d0)],function(){const _0x30b846=_0x24ce9a,_0xfb35a9=[_0x150ae2,_0x3ac32b,null,_0x47ecf9][_0x30b846(0x1fd)](arguments);return _0x1d8b39[_0x30b846(0x22c)]['apply'](_0x1d8b39,_0xfb35a9);};}static[a79_0xfde7b9(0x23f)](){const _0x384888=a79_0xfde7b9,_0x4c088f=/(^.*)\[(.*)\]$/,_0x359fae={},_0x5cf3ee={},_0x503a3c=[],_0x436cd1=this[_0x384888(0x1bc)][_0x384888(0x240)](0x0,this[_0x384888(0x1bc)]['length']);for(const _0x3ff490 of _0x436cd1){const _0x24b513=_0x3ff490[_0x384888(0x216)][_0x384888(0x239)](_0x4c088f),_0x5a762d=Object['assign']({},_0x3ff490);_0x24b513&&(_0x5a762d[_0x384888(0x216)]=_0x24b513[0x1],_0x5a762d[_0x384888(0x234)]=JSON['parse'](_0x24b513[0x2])),_0x503a3c[_0x384888(0x1ca)](_0x5a762d);}return _0x503a3c;}static[a79_0xfde7b9(0x22f)](){const _0x3150bc=a79_0xfde7b9,_0x5925b9={};_0x5925b9[_0x3150bc(0x1da)]=function(_0x2affa7,_0xda3c38){return _0x2affa7+_0xda3c38;},_0x5925b9[_0x3150bc(0x247)]=_0x3150bc(0x242),_0x5925b9[_0x3150bc(0x217)]=function(_0x2cb320,_0x1cdbcc){return _0x2cb320===_0x1cdbcc;};const _0x92d6c8=_0x5925b9;try{if(fs[_0x3150bc(0x1c4)](this['jsonReportDirPath'])){const _0x16ea00=fs[_0x3150bc(0x236)](this[_0x3150bc(0x214)]);for(const _0x375786 of _0x16ea00){fs[_0x3150bc(0x1c3)](path[_0x3150bc(0x23e)](this[_0x3150bc(0x214)],_0x375786));}}}catch(_0x155114){logger[_0x3150bc(0x1f1)](_0x92d6c8[_0x3150bc(0x1da)](_0x92d6c8['JSmDq'],_0x155114));}if(_0x92d6c8[_0x3150bc(0x217)](this[_0x3150bc(0x1bc)][_0x3150bc(0x231)],0x0))return;const _0x32240a=this[_0x3150bc(0x23f)](),_0x16378c=JSON['stringify'](_0x32240a),_0x21b048=_0x92d6c8['QPmCj'](_0x16378c[_0x3150bc(0x1f3)](0x1,-0x1),',');fs[_0x3150bc(0x1cc)](this[_0x3150bc(0x219)],_0x21b048);}static async[a79_0xfde7b9(0x1db)](){const _0x49dbbf=a79_0xfde7b9,_0x3e5bec={};_0x3e5bec['EuDNq']=function(_0x11b3a9,_0x9d0c57){return _0x11b3a9===_0x9d0c57;},_0x3e5bec[_0x49dbbf(0x1f2)]=function(_0x36a7ff,_0x4bae38){return _0x36a7ff>_0x4bae38;};const _0x4b9049=_0x3e5bec;if(!this[_0x49dbbf(0x22e)]||_0x4b9049[_0x49dbbf(0x1fe)](this[_0x49dbbf(0x1bc)][_0x49dbbf(0x231)],0x0))return[];if(!fs[_0x49dbbf(0x1c4)](this[_0x49dbbf(0x214)]))return this[_0x49dbbf(0x1bc)];const _0x4f0d80=(await fsPromise['readdir'](this[_0x49dbbf(0x214)]))[_0x49dbbf(0x1e9)](_0x3828b8=>path['resolve'](this[_0x49dbbf(0x214)],_0x3828b8));let _0x18ea7f=(await Promise[_0x49dbbf(0x1f9)](_0x4f0d80[_0x49dbbf(0x1e9)](_0x112b49=>fsPromise[_0x49dbbf(0x1e0)](_0x112b49,_0x49dbbf(0x1cd)))))[_0x49dbbf(0x1e9)](_0x5b2666=>'['+_0x5b2666[_0x49dbbf(0x1f3)](0x0,-0x1)+']')[_0x49dbbf(0x1e9)](_0x518bbe=>JSON[_0x49dbbf(0x235)](_0x518bbe))['flat']();return _0x4b9049['bkPWB'](this[_0x49dbbf(0x1bc)][_0x49dbbf(0x231)],0x0)&&(_0x18ea7f=_0x18ea7f[_0x49dbbf(0x1fd)](this[_0x49dbbf(0x23f)]())),this[_0x49dbbf(0x229)][_0x49dbbf(0x1cf)](),_0x18ea7f;}static[a79_0xfde7b9(0x1cb)](){const _0x481d1a=a79_0xfde7b9,_0xcd2f82={};_0xcd2f82[_0x481d1a(0x21b)]=function(_0x374ac6,_0x30c9c6){return _0x374ac6===_0x30c9c6;},_0xcd2f82[_0x481d1a(0x22a)]=function(_0x3ed6ed,_0x1210aa){return _0x3ed6ed+_0x1210aa;};const _0x3998e7=_0xcd2f82;if(_0x3998e7[_0x481d1a(0x21b)](this[_0x481d1a(0x218)][_0x481d1a(0x231)],0x0))return;const _0x1f022b=JSON['stringify'](this['_errorEvents']),_0x1541a8=_0x3998e7[_0x481d1a(0x22a)](_0x1f022b[_0x481d1a(0x1f3)](0x1,-0x1),',');fs[_0x481d1a(0x1cc)](this[_0x481d1a(0x20b)],_0x1541a8);}static[a79_0xfde7b9(0x20f)](){const _0x3e07de=a79_0xfde7b9,_0x2b4669={};_0x2b4669[_0x3e07de(0x1c9)]=function(_0x1859c3,_0x2fe7d2){return _0x1859c3>_0x2fe7d2;};const _0x59bedf=_0x2b4669;if(!fs['existsSync'](this[_0x3e07de(0x1fc)]))return this[_0x3e07de(0x218)];let _0x189a07=fs[_0x3e07de(0x228)](this['errorReportFileName'])[_0x3e07de(0x230)]();_0x189a07='['+_0x189a07[_0x3e07de(0x1f3)](0x0,-0x1)+']';let _0x261b3c=JSON[_0x3e07de(0x235)](_0x189a07);return _0x59bedf[_0x3e07de(0x1c9)](this[_0x3e07de(0x218)][_0x3e07de(0x231)],0x0)&&(_0x261b3c=_0x261b3c[_0x3e07de(0x1fd)](this[_0x3e07de(0x218)])),fs[_0x3e07de(0x1c3)](this[_0x3e07de(0x1fc)]),_0x261b3c;}static['captureError'](_0x2b82f3){const _0x1fe05c=a79_0xfde7b9;if(!this[_0x1fe05c(0x207)]())return;this[_0x1fe05c(0x218)][_0x1fe05c(0x1ca)]({'message':_0x2b82f3['message'],'trace':_0x2b82f3[_0x1fe05c(0x1be)],'code':_0x2b82f3['code']||null,'time':new Date()});}static[a79_0xfde7b9(0x1d1)](){const _0x1f385d=a79_0xfde7b9;try{if(!this[_0x1f385d(0x207)]())return;this[_0x1f385d(0x229)][_0x1f385d(0x1cf)](),this[_0x1f385d(0x22f)](),this[_0x1f385d(0x1cb)]();}catch(_0x218a60){logger[_0x1f385d(0x1f1)]('Error\x20stopping\x20monitoring\x20'+util[_0x1f385d(0x1e1)](_0x218a60));}}static async[a79_0xfde7b9(0x243)](){const _0x112ccb=a79_0xfde7b9,_0x11137a={'sjxrh':function(_0x48f4f1,_0x340f98){return _0x48f4f1(_0x340f98);}};await _0x11137a[_0x112ccb(0x1ff)](sleep,0x1e);const _0x1ec857=await this[_0x112ccb(0x1db)](),_0x5354e2=this[_0x112ccb(0x20f)]();if(!this[_0x112ccb(0x207)]()){const _0x47d809={};return _0x47d809[_0x112ccb(0x23a)]=[],_0x47d809[_0x112ccb(0x1d5)]=[],_0x47d809;}const _0x17a431={};return _0x17a431[_0x112ccb(0x23a)]=_0x1ec857,_0x17a431['errors']=_0x5354e2,_0x17a431;}static[a79_0xfde7b9(0x1c6)](_0x2bc0e0){const _0x381489=a79_0xfde7b9,_0x2ae450={};_0x2ae450[_0x381489(0x1c5)]=function(_0x1997e3,_0x205d93){return _0x1997e3+_0x205d93;},_0x2ae450[_0x381489(0x1fa)]=_0x381489(0x227);const _0x23671b=_0x2ae450,_0x2fa5d0=_0x23671b[_0x381489(0x1c5)](_0x2bc0e0,_0x23671b[_0x381489(0x1fa)]);if(this['eventsMap'][_0x2fa5d0])return;performance[_0x381489(0x1eb)](_0x2fa5d0),this[_0x381489(0x23b)][_0x2fa5d0]=0x1;}static[a79_0xfde7b9(0x1e2)](_0x4474de,_0x27e8fe=!![],_0x53178c=null,_0x18fc0e={}){const _0x17a64b=a79_0xfde7b9,_0x5e9082={'RUoGb':function(_0x53cfab,_0x2ccacd){return _0x53cfab+_0x2ccacd;},'qXQYN':_0x17a64b(0x20e),'ZiTFU':function(_0x50e9aa,_0x174466){return _0x50e9aa+_0x174466;},'IFAiN':_0x17a64b(0x227),'QJMZK':function(_0x2a4dbb){return _0x2a4dbb();}};performance['mark'](_0x5e9082['RUoGb'](_0x4474de,_0x5e9082['qXQYN'])),performance[_0x17a64b(0x22c)](_0x4474de,_0x5e9082['ZiTFU'](_0x4474de,_0x5e9082['IFAiN']),_0x5e9082[_0x17a64b(0x1c0)](_0x4474de,_0x5e9082[_0x17a64b(0x205)]));const _0x4e5bc1={};_0x4e5bc1[_0x17a64b(0x1c2)]=_0x27e8fe,_0x4e5bc1[_0x17a64b(0x1d7)]=_0x53178c,this[_0x17a64b(0x208)][_0x4474de]=Object['assign'](_0x4e5bc1,Object['assign'](Object[_0x17a64b(0x210)]({'worker':_0x5e9082[_0x17a64b(0x1b8)](getProcessId),'platform':global[_0x17a64b(0x237)]&&global[_0x17a64b(0x237)]['index'],'testName':_0x5e9082[_0x17a64b(0x1b8)](getTestName)},_0x18fc0e),this['details'][_0x4474de]||{}));}}function a79_0x3e12(_0x52d016,_0x54e917){const _0x2273f4=a79_0x2273();return a79_0x3e12=function(_0x3e12e6,_0x42e2e8){_0x3e12e6=_0x3e12e6-0x1b0;let _0x1a4091=_0x2273f4[_0x3e12e6];return _0x1a4091;},a79_0x3e12(_0x52d016,_0x54e917);}module[a79_0xfde7b9(0x200)]=PerformanceTester;
1
+ const a79_0x372456=a79_0x489c;(function(_0x14645a,_0x2d262f){const _0x3ae21a=a79_0x489c,_0x4ec94f=_0x14645a();while(!![]){try{const _0x59d339=-parseInt(_0x3ae21a(0x208))/0x1*(parseInt(_0x3ae21a(0x1db))/0x2)+-parseInt(_0x3ae21a(0x1c5))/0x3+-parseInt(_0x3ae21a(0x200))/0x4+parseInt(_0x3ae21a(0x196))/0x5*(parseInt(_0x3ae21a(0x1ec))/0x6)+-parseInt(_0x3ae21a(0x19f))/0x7*(parseInt(_0x3ae21a(0x22a))/0x8)+parseInt(_0x3ae21a(0x207))/0x9*(-parseInt(_0x3ae21a(0x1c9))/0xa)+-parseInt(_0x3ae21a(0x193))/0xb*(-parseInt(_0x3ae21a(0x1e4))/0xc);if(_0x59d339===_0x2d262f)break;else _0x4ec94f['push'](_0x4ec94f['shift']());}catch(_0x5e6573){_0x4ec94f['push'](_0x4ec94f['shift']());}}}(a79_0xfc0e,0xc00f1));function a79_0x489c(_0x10eb3f,_0x3dfee6){const _0xfc0e04=a79_0xfc0e();return a79_0x489c=function(_0x489c53,_0x38feda){_0x489c53=_0x489c53-0x193;let _0x312944=_0xfc0e04[_0x489c53];return _0x312944;},a79_0x489c(_0x10eb3f,_0x3dfee6);}const fs=require('fs'),fsPromise=require('fs/promises'),{performance,PerformanceObserver}=require(a79_0x372456(0x197)),path=require(a79_0x372456(0x203)),util=require(a79_0x372456(0x21a)),logger=require(a79_0x372456(0x209))[a79_0x372456(0x1d3)],{getProcessId,sleep,debug,getTestName}=require(a79_0x372456(0x1b8));class PerformanceTester{static [a79_0x372456(0x1f9)];static [a79_0x372456(0x21d)]=[];static [a79_0x372456(0x1b0)]=[];static ['_errorEvents']=[];static [a79_0x372456(0x20e)]=![];static [a79_0x372456(0x202)]=a79_0x372456(0x220);static ['jsonReportDirPath']=process['env'][a79_0x372456(0x206)]?path[a79_0x372456(0x1ad)](process[a79_0x372456(0x1a1)][a79_0x372456(0x206)],this[a79_0x372456(0x202)]):path[a79_0x372456(0x1ad)](process['cwd'](),'log',this['jsonReportDirName']);static [a79_0x372456(0x1c6)]=process[a79_0x372456(0x1a1)][a79_0x372456(0x206)]?path[a79_0x372456(0x1ad)](process[a79_0x372456(0x1a1)][a79_0x372456(0x206)],a79_0x372456(0x1ac)):path[a79_0x372456(0x1ad)](process[a79_0x372456(0x194)](),a79_0x372456(0x1ac));static ['jsonReportFileName']=this['jsonReportDirPath']+'/performance-report-'+getProcessId()+a79_0x372456(0x1b9);static ['errorReportFileName']=this[a79_0x372456(0x1c6)]+a79_0x372456(0x1d0)+getProcessId()+a79_0x372456(0x1b9);static [a79_0x372456(0x1e7)]={};static ['eventsMap']={};static['startMonitoring'](_0xc7a934=this[a79_0x372456(0x1d4)]+a79_0x372456(0x1ed)+getProcessId()+'.json',_0x330005=this['errorReportDirName']+a79_0x372456(0x1d0)+getProcessId()+a79_0x372456(0x1b9)){const _0xc3d10c=a79_0x372456,_0x740464={};_0x740464['Auaxc']=function(_0x57e1ee,_0x130f10){return _0x57e1ee===_0x130f10;},_0x740464['JcWQA']='measure',_0x740464[_0xc3d10c(0x210)]=function(_0x52706a,_0x1ff67b){return _0x52706a+_0x1ff67b;},_0x740464['SaOWy']='Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20',_0x740464[_0xc3d10c(0x21f)]='function';const _0x38683f=_0x740464;try{!fs[_0xc3d10c(0x1a9)](this[_0xc3d10c(0x1d4)])&&fs[_0xc3d10c(0x1e0)](this['jsonReportDirPath']);}catch(_0x1b486c){logger[_0xc3d10c(0x1bb)](_0x38683f[_0xc3d10c(0x210)](_0x38683f[_0xc3d10c(0x1de)],_0x1b486c));}if(this[_0xc3d10c(0x20e)]||!this[_0xc3d10c(0x22b)]())return;this[_0xc3d10c(0x1f9)]=new PerformanceObserver(_0x1f0bdc=>{const _0x522130=_0xc3d10c;_0x1f0bdc['getEntries']()[_0x522130(0x223)](_0x5e82a6=>{const _0x1bca0b=_0x522130;if(_0x38683f[_0x1bca0b(0x1d5)](_0x5e82a6['entryType'],_0x38683f[_0x1bca0b(0x225)])){let _0x472fbf={};if(_0x5e82a6[_0x1bca0b(0x21c)])_0x472fbf=_0x5e82a6['toJSON']();else for(const _0xa08e58 in _0x5e82a6){_0x472fbf[_0xa08e58]=_0x5e82a6[_0xa08e58];}this[_0x1bca0b(0x1e7)][_0x5e82a6[_0x1bca0b(0x228)]]&&(_0x472fbf=Object[_0x1bca0b(0x1ba)](_0x472fbf,this[_0x1bca0b(0x1e7)][_0x5e82a6[_0x1bca0b(0x228)]])),delete this[_0x1bca0b(0x1e7)][_0x5e82a6[_0x1bca0b(0x228)]],this[_0x1bca0b(0x1b0)]['push'](_0x472fbf);}else this['_events'][_0x1bca0b(0x22d)](_0x5e82a6);});});const _0x76786d={};_0x76786d['buffered']=!![],_0x76786d[_0xc3d10c(0x1dd)]=[_0x38683f[_0xc3d10c(0x21f)],_0x38683f[_0xc3d10c(0x225)]],this[_0xc3d10c(0x1f9)][_0xc3d10c(0x1a7)](_0x76786d),this['started']=!![],this['jsonReportFileName']=_0xc7a934,this[_0xc3d10c(0x1bd)]=_0x330005;}static[a79_0x372456(0x1cd)](){return performance;}static[a79_0x372456(0x1c0)](_0x542112,_0x28652f){const _0x32ede9=a79_0x372456,_0x12505a={};_0x12505a[_0x32ede9(0x1b6)]=function(_0x39d398,_0x2d1414){return _0x39d398+_0x2d1414;},_0x12505a[_0x32ede9(0x1aa)]=function(_0x36de90,_0x3eac77){return _0x36de90||_0x3eac77;},_0x12505a['tAOOF']=function(_0x42eacf,_0x17dbcc){return _0x42eacf===_0x17dbcc;};const _0x2183be=_0x12505a,_0xb0d9c1={};if(!_0x542112||_0x2183be[_0x32ede9(0x1fd)](_0x542112[_0x32ede9(0x1ff)],0x0))return;_0x542112[_0x32ede9(0x1bf)](_0x4041a4=>{const _0x542139=_0x32ede9;!_0xb0d9c1[_0x4041a4[_0x542139(0x228)]]&&(_0xb0d9c1[_0x4041a4['name']]=0x0),_0xb0d9c1[_0x4041a4[_0x542139(0x228)]]+=_0x4041a4[_0x542139(0x1b2)];});const _0xf865e3=_0x28652f[_0x32ede9(0x21e)]((_0x489e44,_0x18370e)=>{const _0x2a5592=_0x32ede9;return _0x2183be[_0x2a5592(0x1b6)](_0xb0d9c1[_0x18370e],_0x2183be[_0x2a5592(0x1aa)](_0x489e44,0x0));},0x0);return _0xf865e3;}static async['calculateTimesFromMultipleFiles'](_0xdf7524,_0x459e8b){const _0x165298=a79_0x372456,_0x3cd0ac={'ScYKy':function(_0x2d3d8b,_0x438ea6){return _0x2d3d8b+_0x438ea6;},'rqDUQ':function(_0x3c6826,_0xb1b30f){return _0x3c6826||_0xb1b30f;},'kGDfL':function(_0x57d98d,_0x5c665e){return _0x57d98d===_0x5c665e;},'uClgp':function(_0x275101,_0x2467ca){return _0x275101(_0x2467ca);},'MJRNb':function(_0x823571,_0x390fc4){return _0x823571(_0x390fc4);}};if(!_0xdf7524||_0x3cd0ac['kGDfL'](_0xdf7524[_0x165298(0x1ff)],0x0))return 0x0;const _0x38d5a1=[];for(const _0x26c657 of _0xdf7524){const _0x4c0bff=path['join']('.',_0x26c657);try{const _0x1d0a97=this['getEventsFromJSON'](_0x4c0bff);_0x1d0a97[_0x165298(0x1bf)](_0x1990dd=>{const _0x43ee82=_0x165298;!_0x38d5a1[_0x1990dd[_0x43ee82(0x228)]]&&(_0x38d5a1[_0x1990dd['name']]=0x0),_0x38d5a1[_0x1990dd[_0x43ee82(0x228)]]+=_0x1990dd['duration'];});}catch(_0x1f8dcc){_0x3cd0ac['uClgp'](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x1f8dcc[_0x165298(0x1cc)]());}}const _0x187ea7=_0x459e8b[_0x165298(0x21e)]((_0x30cd9d,_0x403f83)=>{return _0x3cd0ac['ScYKy'](_0x38d5a1[_0x403f83],_0x3cd0ac['rqDUQ'](_0x30cd9d,0x0));},0x0);return _0x3cd0ac[_0x165298(0x1ca)](debug,'Time\x20for\x20'+_0x459e8b+'\x20for\x20all\x20processes\x20is\x20'+_0x187ea7),_0x187ea7;}static[a79_0x372456(0x1fe)](_0x3781d2){const _0x262102=a79_0x372456;if(!fs['existsSync'](_0x3781d2))return[];return JSON[_0x262102(0x1e1)](fs[_0x262102(0x1b3)](_0x3781d2)[_0x262102(0x1cc)]());}static async['stopAndGenerate'](_0x34d3ee=a79_0x372456(0x212),_0x2e18e5=null){const _0x48785a=a79_0x372456,_0x2f6dbf={'SzBzU':function(_0xac9053,_0x5a3706){return _0xac9053(_0x5a3706);},'ooboS':function(_0x557f78,_0xedf89a){return _0x557f78(_0xedf89a);}};if(!this[_0x48785a(0x20e)])return;await _0x2f6dbf['ooboS'](sleep,0x1e),this[_0x48785a(0x1f9)][_0x48785a(0x216)](),this[_0x48785a(0x20e)]=![],this[_0x48785a(0x1f3)](this[_0x48785a(0x21d)]);const _0x19d19a=this[_0x48785a(0x1a5)](this[_0x48785a(0x21d)]),_0x217513=path[_0x48785a(0x1ad)](process[_0x48785a(0x194)](),_0x34d3ee);fs[_0x48785a(0x1fc)](_0x217513,_0x19d19a,_0x3e8094=>{const _0x9ad15=_0x48785a;if(_0x3e8094){_0x2f6dbf['SzBzU'](debug,'Error\x20in\x20writing\x20html\x20'+_0x3e8094[_0x9ad15(0x1cc)]());return;}_0x2f6dbf['SzBzU'](debug,'Performance\x20report\x20is\x20at\x20'+_0x217513);});if(_0x2e18e5)return this['calculateTimeFromEvents'](this[_0x48785a(0x21d)],_0x2e18e5);}static['generateHTMLReport'](_0x10195f){const _0x5a756e=a79_0x372456,_0x4f8fa2={};_0x4f8fa2['QsQEL']=_0x5a756e(0x20f),_0x4f8fa2[_0x5a756e(0x20a)]='<h1>Performance\x20Report</h1>',_0x4f8fa2['FQROB']=_0x5a756e(0x1b7),_0x4f8fa2['SqXmM']=_0x5a756e(0x1bc);const _0x1bb27e=_0x4f8fa2;let _0x5828e6=_0x1bb27e[_0x5a756e(0x1f0)];return _0x5828e6+=_0x1bb27e[_0x5a756e(0x20a)],_0x5828e6+=_0x1bb27e[_0x5a756e(0x198)],_0x10195f[_0x5a756e(0x223)](_0x41ffad=>{const _0x5117de=_0x5a756e;_0x5828e6+=_0x5117de(0x1df)+_0x41ffad[_0x5117de(0x228)]+_0x5117de(0x1a4)+_0x41ffad[_0x5117de(0x1b2)]+_0x5117de(0x1e9);}),_0x5828e6+=_0x1bb27e[_0x5a756e(0x1e3)],_0x5828e6;}static['generateJSON'](_0xaee9e4){const _0x3fc071=a79_0x372456;if(!this[_0x3fc071(0x1ee)])return;const _0x348426={};_0xaee9e4['map'](_0x42bc7a=>{const _0x474527=_0x3fc071;!_0x348426[_0x42bc7a[_0x474527(0x228)]]&&(_0x348426[_0x42bc7a[_0x474527(0x228)]]=0x0),_0x348426[_0x42bc7a['name']]+=_0x42bc7a[_0x474527(0x1b2)];});const _0x4311d4=Object[_0x3fc071(0x1a8)](_0x348426)[_0x3fc071(0x1bf)](([_0x2a5ed3,_0x528e57])=>{const _0x1cd510=_0x3fc071,_0x219726={};return _0x219726['name']=_0x2a5ed3,_0x219726[_0x1cd510(0x1b2)]=_0x528e57,_0x219726;});fs['writeFileSync'](this[_0x3fc071(0x1ee)],JSON[_0x3fc071(0x19e)](_0x4311d4));}static['isEnabled'](){const _0x50eb5a=a79_0x372456,_0xd46bd8={};_0xd46bd8['vlaFe']=function(_0x5a83ec,_0x510794){return _0x5a83ec===_0x510794;},_0xd46bd8[_0x50eb5a(0x1a2)]=_0x50eb5a(0x1c2);const _0x13fa06=_0xd46bd8;return!_0x13fa06['vlaFe'](process['env'][_0x50eb5a(0x1f7)],_0x13fa06['kdLCE']);}static['measure'](_0x3609bb,_0x3e456a,_0x22a984=null,_0x59fe96={},_0x59802e=null){const _0xb8229=a79_0x372456,_0x3d5677={'RniPS':function(_0x3c1cd9,_0x555ab5){return _0x3c1cd9(_0x555ab5);},'jcBuM':function(_0x109d04,_0x29cf98){return _0x109d04(_0x29cf98);},'fUOXl':function(_0x3181e8,_0x2af8f9){return _0x3181e8 instanceof _0x2af8f9;}};try{if(this[_0xb8229(0x20e)]&&this[_0xb8229(0x22b)]()){let _0x408e1a=_0x3609bb;_0x22a984&&(_0x408e1a=_0x3609bb+'['+JSON[_0xb8229(0x19e)](_0x22a984)+']');PerformanceTester[_0xb8229(0x1c7)](_0x408e1a),this[_0xb8229(0x1e7)]&&(this[_0xb8229(0x1e7)][_0x408e1a]=_0x59fe96);try{const _0x16170b=_0x3e456a[_0xb8229(0x1af)](null,_0x59802e);if(_0x3d5677[_0xb8229(0x1a3)](_0x16170b,Promise))return new Promise((_0x1d8e1c,_0x241aaa)=>{const _0x3f57ba=_0xb8229,_0x27bb1f={'dOliR':function(_0x3fbe50,_0x13e886){const _0x3d1bf6=a79_0x489c;return _0x3d5677[_0x3d1bf6(0x19b)](_0x3fbe50,_0x13e886);},'HUFVz':function(_0x8e4a88,_0x11c9a4){return _0x3d5677['jcBuM'](_0x8e4a88,_0x11c9a4);}};_0x16170b['then'](_0x4dbfd9=>{const _0x287072=a79_0x489c;PerformanceTester[_0x287072(0x224)](_0x408e1a),_0x27bb1f[_0x287072(0x1f1)](_0x1d8e1c,_0x4dbfd9);})[_0x3f57ba(0x1eb)](_0x2de43b=>{const _0x210938=_0x3f57ba;PerformanceTester[_0x210938(0x224)](_0x408e1a,![],util[_0x210938(0x1e5)](_0x2de43b)),_0x27bb1f[_0x210938(0x201)](_0x241aaa,_0x2de43b);});});;return PerformanceTester[_0xb8229(0x224)](_0x408e1a),_0x16170b;}catch(_0x2ce782){PerformanceTester[_0xb8229(0x224)](_0x408e1a,![],util['format'](_0x2ce782));throw _0x2ce782;}};return _0x3e456a[_0xb8229(0x1af)](null,_0x59802e);}catch(_0x5ed81e){return _0x3e456a[_0xb8229(0x1af)](null,_0x59802e);}}static[a79_0x372456(0x1ce)](_0x1fff7a,_0xe22d85,_0x5eb01e={}){const _0x433220=a79_0x372456,_0x6910e7={'FGckn':function(_0xc6774b){return _0xc6774b();},'TyWTA':function(_0x3f7cc5){return _0x3f7cc5();}},_0xc956df=this;return _0x5eb01e['worker']=_0x6910e7[_0x433220(0x214)](getProcessId),_0x5eb01e[_0x433220(0x1d7)]=_0x6910e7[_0x433220(0x1da)](getTestName),_0x5eb01e[_0x433220(0x1d9)]=global[_0x433220(0x1c4)]&&global[_0x433220(0x1c4)][_0x433220(0x1a6)],function(){const _0x3c7865=_0x433220,_0x562cf9=[_0x1fff7a,_0xe22d85,null,_0x5eb01e][_0x3c7865(0x217)](arguments);return _0xc956df[_0x3c7865(0x227)][_0x3c7865(0x1af)](_0xc956df,_0x562cf9);};}static[a79_0x372456(0x19d)](){const _0x5bbcc9=a79_0x372456,_0xae8f1a=/(^.*)\[(.*)\]$/,_0x246f5c={},_0x4c87ac={},_0x5574eb=[],_0x569d44=this[_0x5bbcc9(0x1b0)]['splice'](0x0,this[_0x5bbcc9(0x1b0)][_0x5bbcc9(0x1ff)]);for(const _0x149ad5 of _0x569d44){const _0x245802=_0x149ad5[_0x5bbcc9(0x228)][_0x5bbcc9(0x1c3)](_0xae8f1a),_0x162ed6=Object[_0x5bbcc9(0x1ba)]({},_0x149ad5);_0x245802&&(_0x162ed6[_0x5bbcc9(0x228)]=_0x245802[0x1],_0x162ed6[_0x5bbcc9(0x1e6)]=JSON[_0x5bbcc9(0x1e1)](_0x245802[0x2])),_0x5574eb[_0x5bbcc9(0x22d)](_0x162ed6);}return _0x5574eb;}static[a79_0x372456(0x20c)](){const _0x29e58f=a79_0x372456,_0x3af95a={};_0x3af95a['vQdVn']=function(_0x15d468,_0x1c978f){return _0x15d468+_0x1c978f;},_0x3af95a[_0x29e58f(0x1c1)]=_0x29e58f(0x1ef),_0x3af95a[_0x29e58f(0x21b)]=function(_0x25130,_0x4ff726){return _0x25130===_0x4ff726;},_0x3af95a[_0x29e58f(0x229)]=function(_0x2cfeff,_0x4d7d5d){return _0x2cfeff+_0x4d7d5d;};const _0x1b6716=_0x3af95a;try{if(fs['existsSync'](this[_0x29e58f(0x1d4)])){const _0x1f525c=fs[_0x29e58f(0x22c)](this[_0x29e58f(0x1d4)]);for(const _0xb4551c of _0x1f525c){fs[_0x29e58f(0x213)](path[_0x29e58f(0x1ad)](this[_0x29e58f(0x1d4)],_0xb4551c));}}}catch(_0x3eab96){logger['debug'](_0x1b6716[_0x29e58f(0x204)](_0x1b6716[_0x29e58f(0x1c1)],_0x3eab96));}if(_0x1b6716['UlCLc'](this[_0x29e58f(0x1b0)][_0x29e58f(0x1ff)],0x0))return;const _0x4aa8f9=this['getCleanedPerfEvents'](),_0x54c56e=JSON['stringify'](_0x4aa8f9),_0x4f2fb0=_0x1b6716['FQfVK'](_0x54c56e[_0x29e58f(0x1f5)](0x1,-0x1),',');fs[_0x29e58f(0x1ae)](this['jsonReportFileName'],_0x4f2fb0);}static async[a79_0x372456(0x1f4)](){const _0x203665=a79_0x372456,_0x5e863f={};_0x5e863f[_0x203665(0x1e8)]=function(_0xa623a1,_0x176880){return _0xa623a1===_0x176880;},_0x5e863f['erRWl']=function(_0x22bde0,_0x349427){return _0x22bde0>_0x349427;};const _0x5913d4=_0x5e863f;if(!this[_0x203665(0x20e)]||_0x5913d4['PNLPr'](this['_measureEvents']['length'],0x0))return[];if(!fs[_0x203665(0x1a9)](this[_0x203665(0x1d4)]))return this[_0x203665(0x1b0)];const _0x12cd4f=(await fsPromise['readdir'](this[_0x203665(0x1d4)]))[_0x203665(0x1bf)](_0x471f60=>path[_0x203665(0x1cf)](this['jsonReportDirPath'],_0x471f60));let _0x2ff27c=(await Promise[_0x203665(0x1fa)](_0x12cd4f[_0x203665(0x1bf)](_0x3c486c=>fsPromise['readFile'](_0x3c486c,_0x203665(0x1ea)))))[_0x203665(0x1bf)](_0x30b851=>'['+_0x30b851[_0x203665(0x1f5)](0x0,-0x1)+']')[_0x203665(0x1bf)](_0x1f23b7=>JSON[_0x203665(0x1e1)](_0x1f23b7))[_0x203665(0x1d6)]();return _0x5913d4[_0x203665(0x20d)](this[_0x203665(0x1b0)][_0x203665(0x1ff)],0x0)&&(_0x2ff27c=_0x2ff27c[_0x203665(0x217)](this['getCleanedPerfEvents']())),this[_0x203665(0x1f9)][_0x203665(0x216)](),_0x2ff27c;}static['pushErrors'](){const _0x3fd165=a79_0x372456,_0x3e99cd={};_0x3e99cd[_0x3fd165(0x218)]=function(_0x53decc,_0xb4c6da){return _0x53decc===_0xb4c6da;},_0x3e99cd[_0x3fd165(0x1d2)]=function(_0x432d91,_0x581a92){return _0x432d91+_0x581a92;};const _0xd3e597=_0x3e99cd;if(_0xd3e597[_0x3fd165(0x218)](this[_0x3fd165(0x1b1)]['length'],0x0))return;const _0x21e16c=JSON[_0x3fd165(0x19e)](this[_0x3fd165(0x1b1)]),_0x2b4d6f=_0xd3e597[_0x3fd165(0x1d2)](_0x21e16c[_0x3fd165(0x1f5)](0x1,-0x1),',');fs[_0x3fd165(0x1ae)](this[_0x3fd165(0x195)],_0x2b4d6f);}static[a79_0x372456(0x1d8)](){const _0x48eb46=a79_0x372456,_0x4717d5={};_0x4717d5[_0x48eb46(0x215)]=function(_0x493fd3,_0x1ae0fd){return _0x493fd3>_0x1ae0fd;};const _0x252bf6=_0x4717d5;if(!fs['existsSync'](this[_0x48eb46(0x1bd)]))return this[_0x48eb46(0x1b1)];let _0x170f1a=fs[_0x48eb46(0x1b3)](this[_0x48eb46(0x1bd)])[_0x48eb46(0x1cc)]();_0x170f1a='['+_0x170f1a[_0x48eb46(0x1f5)](0x0,-0x1)+']';let _0x5c9c4c=JSON[_0x48eb46(0x1e1)](_0x170f1a);return _0x252bf6['bGfBb'](this[_0x48eb46(0x1b1)][_0x48eb46(0x1ff)],0x0)&&(_0x5c9c4c=_0x5c9c4c['concat'](this[_0x48eb46(0x1b1)])),fs[_0x48eb46(0x213)](this[_0x48eb46(0x1bd)]),_0x5c9c4c;}static[a79_0x372456(0x1a0)](_0x278693){const _0x360db6=a79_0x372456;if(!this[_0x360db6(0x22b)]())return;this['_errorEvents'][_0x360db6(0x22d)]({'message':_0x278693[_0x360db6(0x1dc)],'trace':_0x278693[_0x360db6(0x1fb)],'code':_0x278693['code']||null,'time':new Date()});}static[a79_0x372456(0x1f2)](){const _0x4dc752=a79_0x372456;try{if(!this['isEnabled']())return;this['_observer'][_0x4dc752(0x216)](),this[_0x4dc752(0x20c)](),this[_0x4dc752(0x1f6)]();}catch(_0x251646){logger[_0x4dc752(0x1bb)](_0x4dc752(0x205)+util[_0x4dc752(0x1e5)](_0x251646));}}static async[a79_0x372456(0x1f8)](){const _0x1ed822=a79_0x372456,_0x2efa9c={'fWwVX':function(_0x30678f,_0x4f53be){return _0x30678f(_0x4f53be);}};await _0x2efa9c[_0x1ed822(0x19a)](sleep,0x1e);const _0x1b9642=await this['finalizePerfMeasures'](),_0x544a08=this[_0x1ed822(0x1d8)]();if(!this[_0x1ed822(0x22b)]()){const _0x5dbf03={};return _0x5dbf03['measures']=[],_0x5dbf03[_0x1ed822(0x1cb)]=[],_0x5dbf03;}const _0x51e234={};return _0x51e234[_0x1ed822(0x20b)]=_0x1b9642,_0x51e234[_0x1ed822(0x1cb)]=_0x544a08,_0x51e234;}static[a79_0x372456(0x1c7)](_0x339d12){const _0x421a62=a79_0x372456,_0x3be066={};_0x3be066['Ogtio']=function(_0x3721a3,_0x4c3241){return _0x3721a3+_0x4c3241;},_0x3be066[_0x421a62(0x1d1)]='-start';const _0x2017aa=_0x3be066,_0x31d910=_0x2017aa[_0x421a62(0x1b4)](_0x339d12,_0x2017aa[_0x421a62(0x1d1)]);if(this[_0x421a62(0x1e2)][_0x31d910])return;performance[_0x421a62(0x226)](_0x31d910),this[_0x421a62(0x1e2)][_0x31d910]=0x1;}static[a79_0x372456(0x224)](_0x545100,_0x1613c6=!![],_0x5e7e1e=null,_0x28bcbd={}){const _0x1717ae=a79_0x372456,_0x1b1978={'KTMhq':function(_0x24bed7,_0x2d0949){return _0x24bed7+_0x2d0949;},'lVqoB':_0x1717ae(0x221),'KDOGL':function(_0x378826,_0x18d30c){return _0x378826+_0x18d30c;},'seJwo':_0x1717ae(0x1c8),'ypeVy':function(_0x5742bd){return _0x5742bd();},'vRnSl':function(_0x2bcd9e){return _0x2bcd9e();}};performance[_0x1717ae(0x226)](_0x1b1978['KTMhq'](_0x545100,_0x1b1978[_0x1717ae(0x219)])),performance[_0x1717ae(0x227)](_0x545100,_0x1b1978[_0x1717ae(0x19c)](_0x545100,_0x1b1978[_0x1717ae(0x211)]),_0x1b1978[_0x1717ae(0x19c)](_0x545100,_0x1b1978[_0x1717ae(0x219)]));const _0xdfe9e0={};_0xdfe9e0[_0x1717ae(0x1be)]=_0x1613c6,_0xdfe9e0[_0x1717ae(0x1ab)]=_0x5e7e1e,this['details'][_0x545100]=Object['assign'](_0xdfe9e0,Object[_0x1717ae(0x1ba)](Object['assign']({'worker':_0x1b1978[_0x1717ae(0x1b5)](getProcessId),'platform':global[_0x1717ae(0x1c4)]&&global[_0x1717ae(0x1c4)][_0x1717ae(0x1a6)],'testName':_0x1b1978[_0x1717ae(0x199)](getTestName)},_0x28bcbd),this[_0x1717ae(0x1e7)][_0x545100]||{}));}}module[a79_0x372456(0x222)]=PerformanceTester;function a79_0xfc0e(){const _0x53fe13=['-start','1615430NRibbr','MJRNb','errors','toString','getPerformance','measureWrapper','resolve','/error-report-','FwWER','EXaro','winstonLogger','jsonReportDirPath','Auaxc','flat','testName','finalizeErrors','platform','TyWTA','4UdtZZS','message','entryTypes','SaOWy','<tr><td>','mkdirSync','parse','eventsMap','SqXmM','24asKRpN','format','meta','details','PNLPr','</td></tr>','utf-8','catch','341844iBoPHL','/performance-report-','jsonReportFileName','Error\x20while\x20removing\x20files:\x20','QsQEL','dOliR','stopMonitoring','generateJSON','finalizePerfMeasures','slice','pushErrors','BROWSERSTACK_SDK_INSTRUMENTATION','finalize','_observer','all','stack','writeFile','tAOOF','getEventsFromJSON','length','47988YLqxNE','HUFVz','jsonReportDirName','path','vQdVn','Error\x20stopping\x20monitoring\x20','browserStackCwd','63oADHLM','644673ngxMhm','../logger','mWVVi','measures','pushPerfMeasures','erRWl','started','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','zKQUd','seJwo','performance-own.html','unlinkSync','FGckn','bGfBb','disconnect','concat','KFmHH','lVqoB','util','UlCLc','toJSON','_events','reduce','EKrZc','performance-report','-end','exports','forEach','end','JcWQA','mark','measure','name','FQfVK','236496bcKGzF','isEnabled','readdirSync','push','24083455QQytCM','cwd','errorFile','50Uzcwms','perf_hooks','FQROB','vRnSl','fWwVX','RniPS','KDOGL','getCleanedPerfEvents','stringify','350Ejhkax','captureError','env','kdLCE','fUOXl','</td><td>','generateHTMLReport','index','observe','entries','existsSync','OzokK','failure','error-report','join','appendFileSync','apply','_measureEvents','_errorEvents','duration','readFileSync','Ogtio','ypeVy','apSUq','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','../processHelper','.json','assign','debug','</tbody></table></body></html>','errorReportFileName','success','map','calculateTimeFromEvents','sKCQn','false','match','__platformCaps','754899PXHbzs','errorReportDirName','start'];a79_0xfc0e=function(){return _0x53fe13;};return a79_0xfc0e();}
@@ -1 +1 @@
1
- const a80_0x4e72e0=a80_0xf6cd;function a80_0xf6cd(_0x6c0adc,_0x2a9e4a){const _0x5d6b86=a80_0x5d6b();return a80_0xf6cd=function(_0xf6cdc8,_0x4fb8ab){_0xf6cdc8=_0xf6cdc8-0x79;let _0x5b9472=_0x5d6b86[_0xf6cdc8];return _0x5b9472;},a80_0xf6cd(_0x6c0adc,_0x2a9e4a);}(function(_0x5d62e9,_0x1395b0){const _0x189e96=a80_0xf6cd,_0x526bb0=_0x5d62e9();while(!![]){try{const _0x49694c=parseInt(_0x189e96(0x7b))/0x1+parseInt(_0x189e96(0x7f))/0x2+-parseInt(_0x189e96(0x92))/0x3+-parseInt(_0x189e96(0x7a))/0x4+parseInt(_0x189e96(0x80))/0x5*(-parseInt(_0x189e96(0x8f))/0x6)+parseInt(_0x189e96(0x83))/0x7+-parseInt(_0x189e96(0x8c))/0x8*(-parseInt(_0x189e96(0x8a))/0x9);if(_0x49694c===_0x1395b0)break;else _0x526bb0['push'](_0x526bb0['shift']());}catch(_0x3e1e11){_0x526bb0['push'](_0x526bb0['shift']());}}}(a80_0x5d6b,0xcef43));function a80_0x5d6b(){const _0x1f44b4=['log','threadId','iXIZx','2374884edPkAf','][\x20OBSERVABILITY\x20]\x20','8lZcZdC','vAPdI','env','510tKWFms','getTestName','browserstackTestName','1675551ibACQN','debug','3288656qLXxyg','1244107NHCWXR','sleep','worker_threads','BROWSERSTACK_OBSERVABILITY_DEBUG','118808CReJCc','34540XBjfDB','true','toISOString','8737099mjDSbz','eSdqx','pid','getProcessId'];a80_0x5d6b=function(){return _0x1f44b4;};return a80_0x5d6b();}const worker=require(a80_0x4e72e0(0x7d)),{fileLogger}=require('./logger'),{consoleHolder}=require('./test-observability/constants'),globals=require('./globals');exports[a80_0x4e72e0(0x86)]=()=>{const _0x51ffb3=a80_0x4e72e0;return process[_0x51ffb3(0x85)]+'-'+worker[_0x51ffb3(0x88)];},exports[a80_0x4e72e0(0x90)]=()=>{const _0x4b0a87=a80_0x4e72e0,_0x55ab2c={};_0x55ab2c[_0x4b0a87(0x89)]=_0x4b0a87(0x91);const _0x59264c=_0x55ab2c;return globals['getGlobal'](_0x59264c['iXIZx']);},exports[a80_0x4e72e0(0x7c)]=(_0x685a75=0x64)=>new Promise(_0x3e15f5=>setTimeout(_0x3e15f5,_0x685a75)),exports['debug']=_0x2bb6aa=>{const _0x4dd8d1=a80_0x4e72e0,_0x4414d5={};_0x4414d5['eSdqx']=function(_0x40f4dd,_0x25067e){return _0x40f4dd===_0x25067e;},_0x4414d5[_0x4dd8d1(0x8d)]=_0x4dd8d1(0x81);const _0x19e7fb=_0x4414d5;fileLogger[_0x4dd8d1(0x79)]('['+new Date()[_0x4dd8d1(0x82)]()+_0x4dd8d1(0x8b)+_0x2bb6aa),(_0x19e7fb['eSdqx'](process[_0x4dd8d1(0x8e)][_0x4dd8d1(0x7e)],_0x19e7fb['vAPdI'])||_0x19e7fb[_0x4dd8d1(0x84)](process['env']['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder[_0x4dd8d1(0x87)]('\x0a['+new Date()[_0x4dd8d1(0x82)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x2bb6aa+'\x0a');};
1
+ const a80_0x848d=a80_0x2c6d;function a80_0x2c6d(_0x1bdfab,_0x20ce00){const _0x2c26b7=a80_0x2c26();return a80_0x2c6d=function(_0x2c6d32,_0x5a5ac7){_0x2c6d32=_0x2c6d32-0x19e;let _0x4cd58b=_0x2c26b7[_0x2c6d32];return _0x4cd58b;},a80_0x2c6d(_0x1bdfab,_0x20ce00);}(function(_0x540da6,_0x23fdd6){const _0x539e6d=a80_0x2c6d,_0xf9dbe5=_0x540da6();while(!![]){try{const _0x454788=parseInt(_0x539e6d(0x1a2))/0x1*(parseInt(_0x539e6d(0x1ba))/0x2)+-parseInt(_0x539e6d(0x1aa))/0x3*(parseInt(_0x539e6d(0x1b8))/0x4)+parseInt(_0x539e6d(0x1ad))/0x5*(parseInt(_0x539e6d(0x1ae))/0x6)+parseInt(_0x539e6d(0x1b7))/0x7+parseInt(_0x539e6d(0x1a4))/0x8+parseInt(_0x539e6d(0x1a0))/0x9+parseInt(_0x539e6d(0x1b3))/0xa*(-parseInt(_0x539e6d(0x1a3))/0xb);if(_0x454788===_0x23fdd6)break;else _0xf9dbe5['push'](_0xf9dbe5['shift']());}catch(_0x9b6487){_0xf9dbe5['push'](_0xf9dbe5['shift']());}}}(a80_0x2c26,0x4f55d));const worker=require(a80_0x848d(0x1b0)),{fileLogger}=require(a80_0x848d(0x1b2)),{consoleHolder}=require('./test-observability/constants'),globals=require(a80_0x848d(0x1a6));exports['getProcessId']=()=>{const _0x245063=a80_0x848d;return process[_0x245063(0x1b5)]+'-'+worker[_0x245063(0x1a9)];},exports['getTestName']=()=>{const _0x188915=a80_0x848d,_0x271f83={};_0x271f83[_0x188915(0x1ac)]=_0x188915(0x1a8);const _0x3275a5=_0x271f83;return globals[_0x188915(0x1af)](_0x3275a5['NSvno']);},exports[a80_0x848d(0x1b1)]=(_0x273a5d=0x64)=>new Promise(_0x15727a=>setTimeout(_0x15727a,_0x273a5d)),exports[a80_0x848d(0x1b6)]=_0x57f719=>{const _0x57628d=a80_0x848d,_0x19d4cd={};_0x19d4cd[_0x57628d(0x1b9)]=function(_0x8d9a10,_0x30b8c0){return _0x8d9a10===_0x30b8c0;},_0x19d4cd[_0x57628d(0x19e)]=_0x57628d(0x1a1);const _0x22779e=_0x19d4cd;fileLogger['debug']('['+new Date()[_0x57628d(0x1a5)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x57f719),(_0x22779e[_0x57628d(0x1b9)](process[_0x57628d(0x19f)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x22779e[_0x57628d(0x19e)])||_0x22779e[_0x57628d(0x1b9)](process[_0x57628d(0x19f)][_0x57628d(0x1ab)],'1'))&&consoleHolder[_0x57628d(0x1a7)]('\x0a['+new Date()[_0x57628d(0x1a5)]()+_0x57628d(0x1b4)+_0x57f719+'\x0a');};function a80_0x2c26(){const _0x2466a0=['][\x20OBSERVABILITY\x20]\x20','pid','debug','1351714ECzgZJ','7256jsLpQZ','haAwW','326984gvxlqT','ZIfOg','env','3700008JUcDRo','true','1yLNBlO','143oiQtfF','757584aLODWZ','toISOString','./globals','log','browserstackTestName','threadId','498dcfSsR','BROWSERSTACK_OBSERVABILITY_DEBUG','NSvno','240kLdRPV','4830Tikdfp','getGlobal','worker_threads','sleep','./logger','211510IZzgLK'];a80_0x2c26=function(){return _0x2466a0;};return a80_0x2c26();}
@@ -1 +1 @@
1
- function a81_0x36a0(_0x5ee11c,_0x51730a){const _0x4d5699=a81_0x4d56();return a81_0x36a0=function(_0x36a067,_0x865116){_0x36a067=_0x36a067-0x1d7;let _0x15bb0f=_0x4d5699[_0x36a067];return _0x15bb0f;},a81_0x36a0(_0x5ee11c,_0x51730a);}const a81_0x51c598=a81_0x36a0;(function(_0x4e0916,_0x56a11b){const _0x23e70e=a81_0x36a0,_0x597772=_0x4e0916();while(!![]){try{const _0x91fd65=parseInt(_0x23e70e(0x208))/0x1*(-parseInt(_0x23e70e(0x202))/0x2)+parseInt(_0x23e70e(0x1f3))/0x3+-parseInt(_0x23e70e(0x1dc))/0x4+-parseInt(_0x23e70e(0x1eb))/0x5*(-parseInt(_0x23e70e(0x203))/0x6)+parseInt(_0x23e70e(0x1e1))/0x7+parseInt(_0x23e70e(0x1e8))/0x8*(parseInt(_0x23e70e(0x1e0))/0x9)+-parseInt(_0x23e70e(0x1f9))/0xa;if(_0x91fd65===_0x56a11b)break;else _0x597772['push'](_0x597772['shift']());}catch(_0x326216){_0x597772['push'](_0x597772['shift']());}}}(a81_0x4d56,0xafd76));const http=require(a81_0x51c598(0x204)),https=require(a81_0x51c598(0x1ff)),monkeypatch=require(a81_0x51c598(0x205));function spy(_0x2281ee){const _0x52a7b5=a81_0x51c598,_0x5bb825={'zndxm':_0x52a7b5(0x1da),'ITVmr':function(_0x176a32,_0x2eeae0){return _0x176a32 instanceof _0x2eeae0;},'WuxsI':function(_0x12a185,_0x25dd58){return _0x12a185===_0x25dd58;},'ERsga':_0x52a7b5(0x1d9),'yqIQT':function(_0x2d52df,_0x20df44,_0x2e1b3d){return _0x2d52df(_0x20df44,_0x2e1b3d);},'kJqJH':function(_0xd50afb,_0x430d58){return _0xd50afb-_0x430d58;},'XiYKQ':function(_0x11c14d,..._0x47ba2d){return _0x11c14d(..._0x47ba2d);},'ddqHN':_0x52a7b5(0x207),'AwhtM':_0x52a7b5(0x1f8),'Ntxta':function(_0x2c3e38,_0x468817,_0x1b6c8a,_0x37014e){return _0x2c3e38(_0x468817,_0x1b6c8a,_0x37014e);},'SCbSq':'end','uNAta':_0x52a7b5(0x1e2)},_0x250e3a=function(){const _0x5a3975=_0x52a7b5,_0x247ba5={'QOPBW':function(_0x589354,_0x46b763){return _0x5bb825['ITVmr'](_0x589354,_0x46b763);},'otmoq':function(_0x398294,_0x1e5cfa){const _0x50d237=a81_0x36a0;return _0x5bb825[_0x50d237(0x1e9)](_0x398294,_0x1e5cfa);},'qmHmR':_0x5bb825['ERsga'],'wyzks':function(_0x542244,_0x2a70cc,_0x3b2389){return _0x5bb825['yqIQT'](_0x542244,_0x2a70cc,_0x3b2389);},'kNmcY':function(_0x265610,_0x3a388c){const _0x3aac33=a81_0x36a0;return _0x5bb825[_0x3aac33(0x1e4)](_0x265610,_0x3a388c);},'zpqyM':_0x5bb825[_0x5a3975(0x1fc)],'HKevV':function(_0x205793,..._0xbed14d){return _0x5bb825['XiYKQ'](_0x205793,..._0xbed14d);}},_0x4f526f=arguments[0x0],_0x237c36=Array[_0x5a3975(0x1fa)]['slice'][_0x5a3975(0x1fe)](arguments,0x1),_0x5a10f2=_0x4f526f['apply'](this,_0x237c36);let _0x2719ee=Date[_0x5a3975(0x1d8)](),_0x539a4b;const _0x25ee2b={};_0x237c36[_0x5a3975(0x1fd)](_0xbe7dca=>{const _0x124410=_0x5a3975;if(_0x247ba5['QOPBW'](_0xbe7dca,URL)){const _0x4a6d00={};_0x4a6d00[_0x124410(0x1f4)]=_0xbe7dca,Object[_0x124410(0x1ee)](_0x25ee2b,_0x4a6d00);}else _0x247ba5[_0x124410(0x206)](typeof _0xbe7dca,_0x247ba5[_0x124410(0x1f2)])&&Object['assign'](_0x25ee2b,_0xbe7dca);});const _0xe94d3a=_0x13c2b0=>{const _0x45522e=_0x5a3975,_0x36fb32={};_0x36fb32[_0x45522e(0x1dd)]=_0x25ee2b[_0x45522e(0x1dd)]||_0x25ee2b['hostname']||_0x25ee2b[_0x45522e(0x1f4)]&&(_0x25ee2b[_0x45522e(0x1f4)][_0x45522e(0x1dd)]||_0x25ee2b[_0x45522e(0x1f4)]['hostname']),_0x36fb32['path']=_0x25ee2b[_0x45522e(0x1df)]||_0x25ee2b[_0x45522e(0x1f4)]&&_0x25ee2b[_0x45522e(0x1f4)]['pathname'],_0x36fb32[_0x45522e(0x1db)]=_0x25ee2b['method'],_0x36fb32[_0x45522e(0x1ec)]=_0x25ee2b[_0x45522e(0x1ec)],_0x247ba5[_0x45522e(0x200)](_0x2281ee,_0x13c2b0,_0x36fb32);};return _0x5a10f2[_0x5a3975(0x1f7)](_0x5bb825[_0x5a3975(0x1ea)],_0x481290=>{const _0x20a08e=_0x5a3975,_0x39fbd4=_0x247ba5[_0x20a08e(0x1e3)](Date[_0x20a08e(0x1d8)](),_0x2719ee),_0x5729e7={};_0x5729e7[_0x20a08e(0x1ed)]=_0x25ee2b[_0x20a08e(0x1dd)]||_0x25ee2b[_0x20a08e(0x1ed)]||_0x25ee2b['url']&&(_0x25ee2b[_0x20a08e(0x1f4)]['host']||_0x25ee2b[_0x20a08e(0x1f4)][_0x20a08e(0x1ed)]),_0x5729e7[_0x20a08e(0x1df)]=_0x25ee2b[_0x20a08e(0x1df)]||_0x25ee2b[_0x20a08e(0x1f4)]&&_0x25ee2b[_0x20a08e(0x1f4)][_0x20a08e(0x1f6)],_0x5729e7[_0x20a08e(0x1db)]=_0x25ee2b[_0x20a08e(0x1db)],_0x5729e7[_0x20a08e(0x1ec)]=_0x25ee2b[_0x20a08e(0x1ec)],_0x5729e7['status_code']=_0x481290[_0x20a08e(0x1e5)],_0x5729e7['duration_ms']=_0x39fbd4,_0x247ba5[_0x20a08e(0x200)](_0x2281ee,null,_0x5729e7),_0x539a4b[_0x20a08e(0x1e7)](_0x247ba5[_0x20a08e(0x1ef)],_0xe94d3a);}),_0x5a10f2['on'](_0x5bb825[_0x5a3975(0x1d7)],_0x2213dd=>{const _0x1d3e3d=_0x5a3975;_0x539a4b=_0x2213dd,_0x2213dd[_0x1d3e3d(0x1f7)](_0x5bb825[_0x1d3e3d(0x1fc)],_0xe94d3a);}),_0x5bb825[_0x5a3975(0x201)](monkeypatch,_0x5a10f2,_0x5bb825[_0x5a3975(0x1e6)],(_0x28f347,..._0x12d4ed)=>{const _0x35507a=_0x5a3975;_0x2719ee=Date['now'](),_0x247ba5[_0x35507a(0x1fb)](_0x28f347,..._0x12d4ed);}),_0x5a10f2;};_0x5bb825[_0x52a7b5(0x201)](monkeypatch,http,_0x5bb825[_0x52a7b5(0x1f5)],_0x250e3a),_0x5bb825['Ntxta'](monkeypatch,https,_0x5bb825[_0x52a7b5(0x1f5)],_0x250e3a);}function restore(){const _0x5a411e=a81_0x51c598;http[_0x5a411e(0x1e2)][_0x5a411e(0x1de)](),https[_0x5a411e(0x1e2)][_0x5a411e(0x1de)]();}function a81_0x4d56(){const _0x4d7c96=['prototype','HKevV','zndxm','forEach','call','https','wyzks','Ntxta','2065006hoeUIm','6fmEcBs','http','monkeypatch','otmoq','response','1UuBLQm','AwhtM','now','object','error','method','4018392huGAvz','host','unpatch','path','32481WwSTDL','9177980sMVpec','request','kNmcY','kJqJH','statusCode','SCbSq','removeListener','1424uChibp','WuxsI','ddqHN','4049015uqYVef','headers','hostname','assign','zpqyM','exports','restore','qmHmR','642282JSkMpt','url','uNAta','pathname','once','socket','2200920meqOfQ'];a81_0x4d56=function(){return _0x4d7c96;};return a81_0x4d56();}const a81_0xca154d={};a81_0xca154d['spy']=spy,a81_0xca154d[a81_0x51c598(0x1f1)]=restore,module[a81_0x51c598(0x1f0)]=a81_0xca154d;
1
+ const a81_0x4b6d7f=a81_0x41f2;(function(_0x515065,_0x2e6bd6){const _0x2fe698=a81_0x41f2,_0x497e31=_0x515065();while(!![]){try{const _0x155b97=parseInt(_0x2fe698(0x137))/0x1*(-parseInt(_0x2fe698(0x121))/0x2)+parseInt(_0x2fe698(0x11b))/0x3*(parseInt(_0x2fe698(0x105))/0x4)+-parseInt(_0x2fe698(0x106))/0x5+-parseInt(_0x2fe698(0x139))/0x6*(parseInt(_0x2fe698(0x138))/0x7)+-parseInt(_0x2fe698(0x11f))/0x8*(parseInt(_0x2fe698(0x130))/0x9)+parseInt(_0x2fe698(0x13a))/0xa+parseInt(_0x2fe698(0x108))/0xb;if(_0x155b97===_0x2e6bd6)break;else _0x497e31['push'](_0x497e31['shift']());}catch(_0x2ffb34){_0x497e31['push'](_0x497e31['shift']());}}}(a81_0x35e0,0x47c6e));const http=require(a81_0x4b6d7f(0x11a)),https=require(a81_0x4b6d7f(0x10f)),monkeypatch=require(a81_0x4b6d7f(0x134));function a81_0x35e0(){const _0x24907e=['4Imxuin','forEach','fnbfI','once','KCIzB','request','WlZjM','pppVa','exports','fRLgl','TNFip','path','rIzJd','method','ORwcU','4221495IDjorq','host','hostname','NgZXK','monkeypatch','apply','response','282795BokDRX','102683yNiGfG','54BJyZKQ','5598580BzzmpY','unpatch','XkCaF','1044TvwHMx','641620oFCoNW','vKNEo','10042835wcFzDr','status_code','dpLIG','now','statusCode','object','pathname','https','restore','url','spy','duration_ms','Ocfmc','assign','yHZma','gwTRB','error','call','http','1335GEEoRk','slice','prototype','headers','8uFrmFr','BVLVU'];a81_0x35e0=function(){return _0x24907e;};return a81_0x35e0();}function spy(_0x51503d){const _0x160dd2=a81_0x4b6d7f,_0x40cfc0={'rIzJd':function(_0xc363c4,_0x58439a){return _0xc363c4-_0x58439a;},'TNFip':function(_0x16c13f,_0x2f28d4,_0x4d9c76){return _0x16c13f(_0x2f28d4,_0x4d9c76);},'WlZjM':_0x160dd2(0x118),'Ocfmc':function(_0x1954c5,..._0x5952e8){return _0x1954c5(..._0x5952e8);},'pppVa':function(_0x533ba1,_0x324b9e){return _0x533ba1 instanceof _0x324b9e;},'BVLVU':function(_0x4c471d,_0x3ded9c){return _0x4c471d===_0x3ded9c;},'fRLgl':_0x160dd2(0x10d),'IvIle':_0x160dd2(0x136),'NgZXK':'socket','fnbfI':function(_0x44dd53,_0xd2c914,_0x36ae0b,_0x565fd8){return _0x44dd53(_0xd2c914,_0x36ae0b,_0x565fd8);},'ORwcU':'end','yHZma':function(_0x5991c9,_0x47ea72,_0x96ab76,_0x16ed26){return _0x5991c9(_0x47ea72,_0x96ab76,_0x16ed26);},'dpLIG':'request'},_0x3b6266=function(){const _0x120d8c=_0x160dd2,_0x449b3b={'KCIzB':function(_0x55a316,_0x4ebccb){const _0x4e2066=a81_0x41f2;return _0x40cfc0[_0x4e2066(0x128)](_0x55a316,_0x4ebccb);},'vKNEo':function(_0x412fac,_0x352414){const _0x145ab9=a81_0x41f2;return _0x40cfc0[_0x145ab9(0x120)](_0x412fac,_0x352414);},'QIKiF':_0x40cfc0[_0x120d8c(0x12a)],'XkCaF':function(_0x20bf9b,_0x15152b,_0x243511){return _0x40cfc0['TNFip'](_0x20bf9b,_0x15152b,_0x243511);},'gwTRB':_0x40cfc0[_0x120d8c(0x127)]},_0x4ba2df=arguments[0x0],_0x34b76a=Array[_0x120d8c(0x11d)][_0x120d8c(0x11c)][_0x120d8c(0x119)](arguments,0x1),_0x22112c=_0x4ba2df[_0x120d8c(0x135)](this,_0x34b76a);let _0x25ca2a=Date[_0x120d8c(0x10b)](),_0x384a09;const _0x1dd674={};_0x34b76a[_0x120d8c(0x122)](_0x4d4649=>{const _0x32b59=_0x120d8c;if(_0x449b3b[_0x32b59(0x125)](_0x4d4649,URL)){const _0x549e89={};_0x549e89[_0x32b59(0x111)]=_0x4d4649,Object[_0x32b59(0x115)](_0x1dd674,_0x549e89);}else _0x449b3b[_0x32b59(0x107)](typeof _0x4d4649,_0x449b3b['QIKiF'])&&Object[_0x32b59(0x115)](_0x1dd674,_0x4d4649);});const _0x2b247b=_0x5f0130=>{const _0x1dc29c=_0x120d8c,_0x338139={};_0x338139['host']=_0x1dd674[_0x1dc29c(0x131)]||_0x1dd674[_0x1dc29c(0x132)]||_0x1dd674['url']&&(_0x1dd674[_0x1dc29c(0x111)][_0x1dc29c(0x131)]||_0x1dd674[_0x1dc29c(0x111)][_0x1dc29c(0x132)]),_0x338139[_0x1dc29c(0x12c)]=_0x1dd674['path']||_0x1dd674[_0x1dc29c(0x111)]&&_0x1dd674['url']['pathname'],_0x338139[_0x1dc29c(0x12e)]=_0x1dd674[_0x1dc29c(0x12e)],_0x338139['headers']=_0x1dd674[_0x1dc29c(0x11e)],_0x449b3b[_0x1dc29c(0x104)](_0x51503d,_0x5f0130,_0x338139);};return _0x22112c[_0x120d8c(0x124)](_0x40cfc0['IvIle'],_0x3dbe52=>{const _0x1a6391=_0x120d8c,_0x462526=_0x40cfc0[_0x1a6391(0x12d)](Date[_0x1a6391(0x10b)](),_0x25ca2a),_0x2d0786={};_0x2d0786[_0x1a6391(0x132)]=_0x1dd674[_0x1a6391(0x131)]||_0x1dd674[_0x1a6391(0x132)]||_0x1dd674[_0x1a6391(0x111)]&&(_0x1dd674[_0x1a6391(0x111)][_0x1a6391(0x131)]||_0x1dd674[_0x1a6391(0x111)]['hostname']),_0x2d0786[_0x1a6391(0x12c)]=_0x1dd674[_0x1a6391(0x12c)]||_0x1dd674[_0x1a6391(0x111)]&&_0x1dd674[_0x1a6391(0x111)][_0x1a6391(0x10e)],_0x2d0786[_0x1a6391(0x12e)]=_0x1dd674[_0x1a6391(0x12e)],_0x2d0786[_0x1a6391(0x11e)]=_0x1dd674[_0x1a6391(0x11e)],_0x2d0786[_0x1a6391(0x109)]=_0x3dbe52[_0x1a6391(0x10c)],_0x2d0786[_0x1a6391(0x113)]=_0x462526,_0x40cfc0[_0x1a6391(0x12b)](_0x51503d,null,_0x2d0786),_0x384a09['removeListener'](_0x40cfc0[_0x1a6391(0x127)],_0x2b247b);}),_0x22112c['on'](_0x40cfc0[_0x120d8c(0x133)],_0x11fcd9=>{const _0x47ec84=_0x120d8c;_0x384a09=_0x11fcd9,_0x11fcd9[_0x47ec84(0x124)](_0x449b3b[_0x47ec84(0x117)],_0x2b247b);}),_0x40cfc0[_0x120d8c(0x123)](monkeypatch,_0x22112c,_0x40cfc0[_0x120d8c(0x12f)],(_0x190977,..._0x34f73b)=>{const _0x3ed8d6=_0x120d8c;_0x25ca2a=Date[_0x3ed8d6(0x10b)](),_0x40cfc0[_0x3ed8d6(0x114)](_0x190977,..._0x34f73b);}),_0x22112c;};_0x40cfc0[_0x160dd2(0x116)](monkeypatch,http,_0x40cfc0['dpLIG'],_0x3b6266),_0x40cfc0['fnbfI'](monkeypatch,https,_0x40cfc0[_0x160dd2(0x10a)],_0x3b6266);}function restore(){const _0x2bccaa=a81_0x4b6d7f;http[_0x2bccaa(0x126)][_0x2bccaa(0x103)](),https['request']['unpatch']();}const a81_0x46526a={};function a81_0x41f2(_0xdf969d,_0x3bed0f){const _0x35e01e=a81_0x35e0();return a81_0x41f2=function(_0x41f2be,_0x229307){_0x41f2be=_0x41f2be-0x103;let _0x468291=_0x35e01e[_0x41f2be];return _0x468291;},a81_0x41f2(_0xdf969d,_0x3bed0f);}a81_0x46526a[a81_0x4b6d7f(0x112)]=spy,a81_0x46526a[a81_0x4b6d7f(0x110)]=restore,module[a81_0x4b6d7f(0x129)]=a81_0x46526a;
@@ -1 +1 @@
1
- const a82_0x1e9f90=a82_0x136f;(function(_0x556bc5,_0x315f9d){const _0x1492e0=a82_0x136f,_0x48f291=_0x556bc5();while(!![]){try{const _0x5e4902=parseInt(_0x1492e0(0xe7))/0x1+-parseInt(_0x1492e0(0xe1))/0x2*(-parseInt(_0x1492e0(0xd0))/0x3)+-parseInt(_0x1492e0(0xe0))/0x4*(parseInt(_0x1492e0(0xda))/0x5)+parseInt(_0x1492e0(0xe8))/0x6*(-parseInt(_0x1492e0(0xe2))/0x7)+-parseInt(_0x1492e0(0xd8))/0x8+-parseInt(_0x1492e0(0xec))/0x9+parseInt(_0x1492e0(0xd1))/0xa;if(_0x5e4902===_0x315f9d)break;else _0x48f291['push'](_0x48f291['shift']());}catch(_0x3a14f0){_0x48f291['push'](_0x48f291['shift']());}}}(a82_0x228a,0x43be9));function a82_0x136f(_0x207256,_0xa16ffa){const _0x228ad6=a82_0x228a();return a82_0x136f=function(_0x136f30,_0x40bb26){_0x136f30=_0x136f30-0xce;let _0x326382=_0x228ad6[_0x136f30];return _0x326382;},a82_0x136f(_0x207256,_0xa16ffa);}const PerformanceTester=require(a82_0x1e9f90(0xd9)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a82_0x1e9f90(0xdf));module[a82_0x1e9f90(0xe9)]=PerformanceTester['measureWrapper'](PerformanceEvents[a82_0x1e9f90(0xd5)],function(){const _0x5adf9c=a82_0x1e9f90,_0x330132={'DwLuG':function(_0x5e0bce,_0x33f315){return _0x5e0bce===_0x33f315;},'VIEQv':_0x5adf9c(0xea),'fVjkH':'agent','hFCcB':function(_0x5ddc14,_0x1a0a25,_0x268e05){return _0x5ddc14(_0x1a0a25,_0x268e05);},'tskoP':function(_0x29ffa3,_0x457788){return _0x29ffa3(_0x457788);},'PgSpv':'http','uJgbD':_0x5adf9c(0xce),'esPhh':function(_0x317f52,_0x3e99ce){return _0x317f52*_0x3e99ce;},'wzHEF':_0x5adf9c(0xd6)},_0x55e596=_0x330132[_0x5adf9c(0xcf)](require,_0x330132['PgSpv']),_0x412b1c=_0x330132[_0x5adf9c(0xcf)](require,_0x330132[_0x5adf9c(0xd4)]),_0x5a72ae=_0x330132['esPhh'](0x1e,0x3e8);if(_0x55e596[_0x5adf9c(0xe5)]&&Object[_0x5adf9c(0xdc)][_0x5adf9c(0xeb)][_0x5adf9c(0xd3)](_0x55e596[_0x5adf9c(0xe5)],_0x330132[_0x5adf9c(0xde)]))_0x55e596[_0x5adf9c(0xe5)][_0x5adf9c(0xd6)]=!![],_0x412b1c[_0x5adf9c(0xe5)][_0x5adf9c(0xd6)]=!![],_0x55e596[_0x5adf9c(0xe5)]['keepAliveMsecs']=_0x5a72ae,_0x412b1c[_0x5adf9c(0xe5)][_0x5adf9c(0xdd)]=_0x5a72ae;else{const _0x38e5b2={};_0x38e5b2['keepAlive']=!![],_0x38e5b2['keepAliveMsecs']=_0x5a72ae;const _0x3528f3=new _0x55e596[(_0x5adf9c(0xd7))](_0x38e5b2),_0x2ac985={};_0x2ac985[_0x5adf9c(0xd6)]=!![],_0x2ac985['keepAliveMsecs']=_0x5a72ae;const _0xa8d1d3=new _0x412b1c[(_0x5adf9c(0xd7))](_0x2ac985),_0xfd7ea=_0x55e596[_0x5adf9c(0xe6)],_0x25cca0=_0x412b1c['request'];_0x55e596[_0x5adf9c(0xe6)]=function(_0x1c19d7,_0x466618){const _0x14b52c=_0x5adf9c;if(_0x330132[_0x14b52c(0xdb)](_0x1c19d7['protocol'],_0x330132[_0x14b52c(0xe3)]))return _0x1c19d7[_0x330132['fVjkH']]=_0xa8d1d3,_0x330132[_0x14b52c(0xe4)](_0x25cca0,_0x1c19d7,_0x466618);return _0x1c19d7[_0x330132[_0x14b52c(0xd2)]]=_0x3528f3,_0x330132[_0x14b52c(0xe4)](_0xfd7ea,_0x1c19d7,_0x466618);};}});function a82_0x228a(){const _0x23c75a=['Agent','604592aanJqr','./performance/performance-tester','10CUoVmR','DwLuG','prototype','keepAliveMsecs','wzHEF','./performance/constants','327844iRSvHM','457988vJrfQK','371dHmxRz','VIEQv','hFCcB','globalAgent','request','314023ZdkOgh','61554haXXiY','exports','https:','hasOwnProperty','4631697OCzAtb','https','tskoP','6SGUPyr','8033260qAbebI','fVjkH','call','uJgbD','KEEP_ALIVE','keepAlive'];a82_0x228a=function(){return _0x23c75a;};return a82_0x228a();}
1
+ function a82_0x6bec(){const _0x5134fc=['23418BnwDys','call','3018hIPvFV','1056WRIdyw','keepAlive','Agent','112ocbAxa','50270kAWnld','ORuYt','globalAgent','132457ieumEl','2815vdIGnv','OGyYR','KPsgH','2YpvYSg','DQbgK','heZUW','1219144bpUSJU','KEEP_ALIVE','xFToM','2252789haOAkM','kNoEW','AVIYr','exports','https:','./performance/constants','https','GvKmM','prototype','hasOwnProperty','ANVfO','725136XmfNOG','./performance/performance-tester','http','keepAliveMsecs','request','measureWrapper','agent'];a82_0x6bec=function(){return _0x5134fc;};return a82_0x6bec();}const a82_0xd5d8b8=a82_0xac4e;(function(_0x598aee,_0x24dc0a){const _0x2b7305=a82_0xac4e,_0xe0b14c=_0x598aee();while(!![]){try{const _0x1db66e=parseInt(_0x2b7305(0xa6))/0x1*(parseInt(_0x2b7305(0xaa))/0x2)+parseInt(_0x2b7305(0xbb))/0x3+-parseInt(_0x2b7305(0xad))/0x4+-parseInt(_0x2b7305(0xa7))/0x5*(-parseInt(_0x2b7305(0xc4))/0x6)+parseInt(_0x2b7305(0xb0))/0x7+-parseInt(_0x2b7305(0xa2))/0x8*(-parseInt(_0x2b7305(0xc2))/0x9)+parseInt(_0x2b7305(0xa3))/0xa*(-parseInt(_0x2b7305(0xc5))/0xb);if(_0x1db66e===_0x24dc0a)break;else _0xe0b14c['push'](_0xe0b14c['shift']());}catch(_0x2931ec){_0xe0b14c['push'](_0xe0b14c['shift']());}}}(a82_0x6bec,0x37b8b));const PerformanceTester=require(a82_0xd5d8b8(0xbc)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a82_0xd5d8b8(0xb5));function a82_0xac4e(_0x6a04fb,_0x3b9f6f){const _0x6bece1=a82_0x6bec();return a82_0xac4e=function(_0xac4ee3,_0x1287cc){_0xac4ee3=_0xac4ee3-0xa0;let _0x35ebf=_0x6bece1[_0xac4ee3];return _0x35ebf;},a82_0xac4e(_0x6a04fb,_0x3b9f6f);}module[a82_0xd5d8b8(0xb3)]=PerformanceTester[a82_0xd5d8b8(0xc0)](PerformanceEvents[a82_0xd5d8b8(0xae)],function(){const _0x45264b=a82_0xd5d8b8,_0x27c8b0={'kNoEW':function(_0x5d3c0b,_0x3c24b4){return _0x5d3c0b===_0x3c24b4;},'KPsgH':_0x45264b(0xb4),'heZUW':_0x45264b(0xc1),'ORuYt':function(_0x30b6cd,_0x1e2f73,_0x5be867){return _0x30b6cd(_0x1e2f73,_0x5be867);},'DQbgK':function(_0x2ec154,_0x2a240e,_0x52c217){return _0x2ec154(_0x2a240e,_0x52c217);},'xFToM':function(_0x12ad21,_0x1e2fd2){return _0x12ad21(_0x1e2fd2);},'OGyYR':_0x45264b(0xbd),'GvKmM':_0x45264b(0xb6),'AVIYr':function(_0x12c7a2,_0x321e60){return _0x12c7a2*_0x321e60;},'ANVfO':_0x45264b(0xa0)},_0x4051d4=_0x27c8b0[_0x45264b(0xaf)](require,_0x27c8b0[_0x45264b(0xa8)]),_0x3d271a=_0x27c8b0['xFToM'](require,_0x27c8b0[_0x45264b(0xb7)]),_0x5dc169=_0x27c8b0[_0x45264b(0xb2)](0x1e,0x3e8);if(_0x4051d4[_0x45264b(0xa5)]&&Object[_0x45264b(0xb8)][_0x45264b(0xb9)][_0x45264b(0xc3)](_0x4051d4[_0x45264b(0xa5)],_0x27c8b0[_0x45264b(0xba)]))_0x4051d4[_0x45264b(0xa5)][_0x45264b(0xa0)]=!![],_0x3d271a[_0x45264b(0xa5)][_0x45264b(0xa0)]=!![],_0x4051d4['globalAgent'][_0x45264b(0xbe)]=_0x5dc169,_0x3d271a[_0x45264b(0xa5)][_0x45264b(0xbe)]=_0x5dc169;else{const _0x58486e={};_0x58486e[_0x45264b(0xa0)]=!![],_0x58486e[_0x45264b(0xbe)]=_0x5dc169;const _0x3bb3a7=new _0x4051d4[(_0x45264b(0xa1))](_0x58486e),_0x595146={};_0x595146[_0x45264b(0xa0)]=!![],_0x595146['keepAliveMsecs']=_0x5dc169;const _0x16ce3d=new _0x3d271a['Agent'](_0x595146),_0x4e75d0=_0x4051d4['request'],_0x3fdfcd=_0x3d271a[_0x45264b(0xbf)];_0x4051d4[_0x45264b(0xbf)]=function(_0x59f592,_0x8bf266){const _0x3e919c=_0x45264b;if(_0x27c8b0[_0x3e919c(0xb1)](_0x59f592['protocol'],_0x27c8b0[_0x3e919c(0xa9)]))return _0x59f592[_0x27c8b0[_0x3e919c(0xac)]]=_0x16ce3d,_0x27c8b0[_0x3e919c(0xa4)](_0x3fdfcd,_0x59f592,_0x8bf266);return _0x59f592[_0x27c8b0[_0x3e919c(0xac)]]=_0x3bb3a7,_0x27c8b0[_0x3e919c(0xab)](_0x4e75d0,_0x59f592,_0x8bf266);};}});
@@ -1 +1 @@
1
- function a83_0x19e5(){var _0x40338c=['JEST','1687527ORFOBi','api/v1/batch','8804cWjcHl','758dYFkUW','2531trTJDJ','CODECEPT','CUCUMBER','exports','.obs_test_details','api/v1/event','Playwright','1675ruBusH','mocha','MOCHA','https://collector-observability.browserstack.com','473mSNbCa','cucumber','PLAYWRIGHT','7782677CcXGWJ','jest','codeceptjs','3559872UZKarD','assign','8ejxsNt','api/v1/screenshots','5268510egABsB','upload-attachments','1333548SSKQqA','40EHfOMP'];a83_0x19e5=function(){return _0x40338c;};return a83_0x19e5();}function a83_0x54ba(_0x45492a,_0x1f4c35){var _0x19e55e=a83_0x19e5();return a83_0x54ba=function(_0x54bace,_0x310f36){_0x54bace=_0x54bace-0x1ca;var _0x16dccd=_0x19e55e[_0x54bace];return _0x16dccd;},a83_0x54ba(_0x45492a,_0x1f4c35);}var a83_0x476111=a83_0x54ba;(function(_0x33ddb7,_0x46797c){var _0x3a8bdd=a83_0x54ba,_0x5b6fbb=_0x33ddb7();while(!![]){try{var _0x131c98=-parseInt(_0x3a8bdd(0x1da))/0x1*(parseInt(_0x3a8bdd(0x1d9))/0x2)+-parseInt(_0x3a8bdd(0x1cd))/0x3+parseInt(_0x3a8bdd(0x1d8))/0x4*(parseInt(_0x3a8bdd(0x1e1))/0x5)+-parseInt(_0x3a8bdd(0x1d1))/0x6+-parseInt(_0x3a8bdd(0x1ca))/0x7*(parseInt(_0x3a8bdd(0x1cf))/0x8)+parseInt(_0x3a8bdd(0x1d6))/0x9*(-parseInt(_0x3a8bdd(0x1d4))/0xa)+parseInt(_0x3a8bdd(0x1e5))/0xb*(parseInt(_0x3a8bdd(0x1d3))/0xc);if(_0x131c98===_0x46797c)break;else _0x5b6fbb['push'](_0x5b6fbb['shift']());}catch(_0x3e43f3){_0x5b6fbb['push'](_0x5b6fbb['shift']());}}}(a83_0x19e5,0x99d55));var a83_0x37df5e={};a83_0x37df5e[a83_0x476111(0x1e7)]=a83_0x476111(0x1e0),a83_0x37df5e[a83_0x476111(0x1e3)]=a83_0x476111(0x1e2),a83_0x37df5e[a83_0x476111(0x1db)]=a83_0x476111(0x1cc),a83_0x37df5e[a83_0x476111(0x1d5)]=a83_0x476111(0x1cb),a83_0x37df5e[a83_0x476111(0x1dc)]=a83_0x476111(0x1e6),module[a83_0x476111(0x1dd)]={'consoleHolder':Object[a83_0x476111(0x1ce)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a83_0x476111(0x1e4),'OBSERVABILITY_UPLOAD_API_URL':'https://upload-observability.browserstack.com','EVENT_ENDPOINT':a83_0x476111(0x1df),'BATCH_ENDPOINT':a83_0x476111(0x1d7),'SCREENSHOT_ENDPOINT':a83_0x476111(0x1d0),'UPLOAD_ATTACHMENT_ENDPOINT':a83_0x476111(0x1d2),'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':a83_0x476111(0x1de),'FRAMEWORKS':a83_0x37df5e};
1
+ function a83_0x5582(_0x1ea6a8,_0x42e8ad){var _0x32b3a4=a83_0x32b3();return a83_0x5582=function(_0x5582f3,_0x29c8b8){_0x5582f3=_0x5582f3-0xe5;var _0x269c8d=_0x32b3a4[_0x5582f3];return _0x269c8d;},a83_0x5582(_0x1ea6a8,_0x42e8ad);}function a83_0x32b3(){var _0xf744e3=['11003970usvyEg','https://upload-observability.browserstack.com','1898127NNYkJy','CUCUMBER','api/v1/event','exports','309327xxcjLc','45nAOraA','https://collector-observability.browserstack.com','281940Iatujs','PLAYWRIGHT','10MVrIAl','504464fxQQCo','MOCHA','.obs_test_details','1149840KHRmDD','assign','jest','9yFCqAz','Playwright','api/v1/batch','3066344Hmvzzp','codeceptjs'];a83_0x32b3=function(){return _0xf744e3;};return a83_0x32b3();}var a83_0x2d4dcb=a83_0x5582;(function(_0x56450a,_0x10c934){var _0xd8f58e=a83_0x5582,_0xf884e3=_0x56450a();while(!![]){try{var _0x4dc393=-parseInt(_0xd8f58e(0xe6))/0x1+parseInt(_0xd8f58e(0xe5))/0x2*(parseInt(_0xd8f58e(0xf7))/0x3)+parseInt(_0xd8f58e(0xe9))/0x4+-parseInt(_0xd8f58e(0xf8))/0x5*(parseInt(_0xd8f58e(0xfa))/0x6)+-parseInt(_0xd8f58e(0xf3))/0x7+-parseInt(_0xd8f58e(0xef))/0x8+-parseInt(_0xd8f58e(0xec))/0x9*(-parseInt(_0xd8f58e(0xf1))/0xa);if(_0x4dc393===_0x10c934)break;else _0xf884e3['push'](_0xf884e3['shift']());}catch(_0x3b8034){_0xf884e3['push'](_0xf884e3['shift']());}}}(a83_0x32b3,0x4e826));var a83_0x213965={};a83_0x213965[a83_0x2d4dcb(0xfb)]=a83_0x2d4dcb(0xed),a83_0x213965[a83_0x2d4dcb(0xe7)]='mocha',a83_0x213965['CODECEPT']=a83_0x2d4dcb(0xf0),a83_0x213965['JEST']=a83_0x2d4dcb(0xeb),a83_0x213965[a83_0x2d4dcb(0xf4)]='cucumber',module[a83_0x2d4dcb(0xf6)]={'consoleHolder':Object[a83_0x2d4dcb(0xea)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a83_0x2d4dcb(0xf9),'OBSERVABILITY_UPLOAD_API_URL':a83_0x2d4dcb(0xf2),'EVENT_ENDPOINT':a83_0x2d4dcb(0xf5),'BATCH_ENDPOINT':a83_0x2d4dcb(0xee),'SCREENSHOT_ENDPOINT':'api/v1/screenshots','UPLOAD_ATTACHMENT_ENDPOINT':'upload-attachments','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':a83_0x2d4dcb(0xe8),'FRAMEWORKS':a83_0x213965};
@@ -1 +1 @@
1
- const a84_0x3c1120=a84_0x43eb;(function(_0x491f34,_0xc352ac){const _0x20a2dc=a84_0x43eb,_0xf67c74=_0x491f34();while(!![]){try{const _0x1371e1=parseInt(_0x20a2dc(0x1f2))/0x1+-parseInt(_0x20a2dc(0x245))/0x2*(parseInt(_0x20a2dc(0x226))/0x3)+-parseInt(_0x20a2dc(0x1eb))/0x4+-parseInt(_0x20a2dc(0x1fa))/0x5*(parseInt(_0x20a2dc(0x1e5))/0x6)+parseInt(_0x20a2dc(0x1e8))/0x7+-parseInt(_0x20a2dc(0x20a))/0x8+-parseInt(_0x20a2dc(0x203))/0x9*(-parseInt(_0x20a2dc(0x248))/0xa);if(_0x1371e1===_0xc352ac)break;else _0xf67c74['push'](_0xf67c74['shift']());}catch(_0x268e47){_0xf67c74['push'](_0xf67c74['shift']());}}}(a84_0xd927,0x1c7a1));function a84_0xd927(){const _0x3bfeb4=['xDtal','hzOSc','parse','setCredentials','getCredentials','password','72158MBsJWk','BS_TESTOPS_BUILD_HASHED_ID','application/json','keys','../helper','accessKey','BNkpB','ElXvc','1565bscQoK','UkFGO','getPerformance','POST','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','setConfigDetails','Nzpyl','defineProperty','includes','708498QUaGUM','JzZOr','then','function','exports','timerify','HiaSl','1351792maurov','Error\x20in\x20executing\x20','call','\x20--\x20','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','stack','user','DvRrT','frameworkDetails','./utils','.\x20Error\x20-\x20','tJKpg','VFaOJ','QLGYp','captureError','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','length','key','auaRn','X-BSTACK-TESTOPS','frameworkVersion','CREDENTIALS_FOR_CRASH_REPORTING','NhlMj','Content-Type','frameworkName','ZDEQR','rhqbD','o11yClassErrorHandler','256782jrkqVk','env',',\x20Argument\x20-\x20','../performance/performance-tester','Started\x20::\x20','credentials','toString','ailnZ','username','recursivelyDeletePIIKeysFromObject','.\x20Args\x20-\x20','getFramework','USER_CONFIG_FOR_REPORTING','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','HFRsT','true','headers','oQbsH','filterPII','initialize','toLowerCase','ovbKF','userConfig','util','CrashReporter','ajoGG','XIuWQ','format','[Crash_Report_Upload]\x20Success\x20response:\x20',',\x20PID\x20-\x20','forEach','2SwZAht','Finished\x20::\x20','stringify','40NWqeoc','hQhvm','setFrameworkDetails','o11yErrorHandler','getConfig','setAllDetails','BROWSERSTACK_O11Y_PERF_MEASUREMENT','zTlhE','Pcvak','rbyog','inspect','name','catch','constructor','QaAwT','2622NmaZWs','auth','iDbTr','992138PeinQH','GwhRJ','object','83160UDXDBq'];a84_0xd927=function(){return _0x3bfeb4;};return a84_0xd927();}const util=require(a84_0x3c1120(0x23d)),PerformanceTester=require(a84_0x3c1120(0x229)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0x3c1120(0x213)),{getAgentVersion,nestedKeyValue}=require(a84_0x3c1120(0x1f6)),o11yErrorHandler=(_0x40fd50,_0x3a8440='',_0x505577=[''],_0x8541cf=![])=>{const _0x2da73b={'ZDEQR':function(_0xc4bcbc,_0xb014f4){return _0xc4bcbc(_0xb014f4);},'HiaSl':function(_0x105b4f,_0x5f0d86,_0x302239){return _0x105b4f(_0x5f0d86,_0x302239);},'VFaOJ':function(_0x4e6009,_0x23c952){return _0x4e6009 instanceof _0x23c952;},'DvRrT':function(_0x25da36,_0x12d59b,_0x3001db,_0x34d7f5,_0x5be570){return _0x25da36(_0x12d59b,_0x3001db,_0x34d7f5,_0x5be570);}};return function(..._0x597d49){const _0x5b0518=a84_0x43eb;try{let _0x24a674=_0x40fd50;process[_0x5b0518(0x227)][_0x5b0518(0x1dc)]&&(_0x24a674=PerformanceTester[_0x5b0518(0x1fc)]()[_0x5b0518(0x208)](_0x24a674));_0x8541cf&&_0x2da73b[_0x5b0518(0x223)](trace,_0x5b0518(0x22a)+_0x3a8440+_0x5b0518(0x243)+process['pid']+_0x5b0518(0x228)+_0x2da73b[_0x5b0518(0x209)](nestedKeyValue,arguments[0x0],_0x505577));const _0x55c7ec=_0x24a674['apply'](null,arguments);_0x8541cf&&_0x2da73b['ZDEQR'](trace,_0x5b0518(0x246)+_0x3a8440+_0x5b0518(0x243)+process['pid']+',\x20Argument\x20-\x20'+_0x2da73b['HiaSl'](nestedKeyValue,arguments[0x0],_0x505577));if(_0x2da73b[_0x5b0518(0x216)](_0x55c7ec,Promise))return _0x55c7ec[_0x5b0518(0x1e2)](_0x278a3a=>processError(_0x278a3a,_0x40fd50,_0x597d49,_0x3a8440));return _0x55c7ec;}catch(_0xa892e1){_0x2da73b[_0x5b0518(0x211)](processError,_0xa892e1,_0x40fd50,_0x597d49,_0x3a8440);}};},o11yClassErrorHandler=(_0x47cdca,_0x2964d8,_0x4d9b0a='')=>{const _0x2841c4=a84_0x3c1120,_0x77340f={'AeWdR':function(_0x96859,_0x518811){return _0x96859 instanceof _0x518811;},'hzOSc':function(_0x3a8880,_0x43a209,_0x308ac6,_0x1a00ff,_0x2125e0){return _0x3a8880(_0x43a209,_0x308ac6,_0x1a00ff,_0x2125e0);},'JzZOr':function(_0x430bb4,_0x8797e4){return _0x430bb4===_0x8797e4;},'FxHxP':_0x2841c4(0x206),'auaRn':function(_0x37c471,_0x3f555b){return _0x37c471!==_0x3f555b;},'zTlhE':_0x2841c4(0x1e3),'Pcvak':function(_0x1a60fc,_0x95f6fd){return _0x1a60fc<_0x95f6fd;}},_0x25926c=_0x47cdca['prototype'];if(_0x77340f[_0x2841c4(0x1de)](Object['getOwnPropertyNames'](_0x25926c)[_0x2841c4(0x21a)],0x2))return _0x47cdca;return Object['getOwnPropertyNames'](_0x25926c)[_0x2841c4(0x244)](_0x325b23=>{const _0x269fc2=_0x2841c4;if(!(_0x2964d8&&_0x2964d8['includes'](_0x325b23)))return;const _0x4bdc55=_0x25926c[_0x325b23];_0x77340f[_0x269fc2(0x204)](typeof _0x4bdc55,_0x77340f['FxHxP'])&&_0x77340f[_0x269fc2(0x21c)](_0x325b23,_0x77340f[_0x269fc2(0x1dd)])&&Object[_0x269fc2(0x201)](_0x25926c,_0x325b23,{'writable':!![],'value':function(..._0x473bab){const _0x1aff44=_0x269fc2;try{const _0x3c69ef=(process[_0x1aff44(0x227)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester[_0x1aff44(0x1fc)]()[_0x1aff44(0x208)](_0x4bdc55):_0x4bdc55)[_0x1aff44(0x20c)](this,..._0x473bab);if(_0x77340f['AeWdR'](_0x3c69ef,Promise))return _0x3c69ef[_0x1aff44(0x1e2)](_0x41a16a=>processError(_0x41a16a,_0x4bdc55,_0x473bab,_0x4d9b0a));return _0x3c69ef;}catch(_0x106164){_0x77340f[_0x1aff44(0x1ed)](processError,_0x106164,_0x4bdc55,_0x473bab,_0x4d9b0a);}}});}),_0x47cdca;};function processError(_0x243538,_0x58ccb9,_0x1788ba,_0x1fa324){const _0x429077=a84_0x3c1120,_0x35670c={'oQbsH':function(_0x1ecc15,_0x428299){return _0x1ecc15(_0x428299);}};_0x35670c[_0x429077(0x237)](debug,_0x429077(0x20b)+_0x58ccb9['name']+_0x429077(0x20d)+_0x1fa324+'.\x20Error\x20-\x20'+_0x243538+_0x429077(0x230)+_0x1788ba+'.'),PerformanceTester[_0x429077(0x218)](_0x243538);let _0x9e5173;try{_0x9e5173=JSON[_0x429077(0x247)](_0x1788ba);}catch(_0xc9c3ba){const _0x26a83d={};_0x26a83d['depth']=0x2,_0x9e5173=util[_0x429077(0x1e0)](_0x1788ba,_0x26a83d);}CrashReporter['uploadCrashReport']('Error\x20in\x20executing\x20'+_0x58ccb9[_0x429077(0x1e1)]+'\x20--\x20'+_0x1fa324+_0x429077(0x214)+_0x243538+_0x429077(0x230)+_0x9e5173+'.',_0x243538&&_0x243538[_0x429077(0x20f)]);}function a84_0x43eb(_0x21d55b,_0x560372){const _0xd92715=a84_0xd927();return a84_0x43eb=function(_0x43eb47,_0x3e0cc2){_0x43eb47=_0x43eb47-0x1d9;let _0x46ef05=_0xd92715[_0x43eb47];return _0x46ef05;},a84_0x43eb(_0x21d55b,_0x560372);}class CrashReporter{static [a84_0x3c1120(0x23c)]={};static [a84_0x3c1120(0x22b)];static ['frameworkDetails']={};static[a84_0x3c1120(0x239)](_0x2d021c,_0x2d2018,_0x5814f0=null){const _0x3870f7=a84_0x3c1120,_0xc9e6a7={'Nzpyl':function(_0x309bc9,_0x2aa5ef){return _0x309bc9(_0x2aa5ef);}},_0x537def=_0x2d021c[_0x3870f7(0x222)],_0x299ae9=_0x2d021c['frameworkVersion'];!_0x5814f0&&(_0x5814f0=_0xc9e6a7[_0x3870f7(0x200)](getBrowserStackConfig,_0x537def));!_0x299ae9&&_0xc9e6a7[_0x3870f7(0x200)](getFrameworkVersion,_0x537def);const _0x2a492f={};_0x2a492f[_0x3870f7(0x222)]=_0x537def,_0x2a492f[_0x3870f7(0x21e)]=_0x299ae9,this[_0x3870f7(0x1db)](_0x2a492f,_0x2d2018,_0xc9e6a7[_0x3870f7(0x200)](getUserCredentials,_0x5814f0));}static[a84_0x3c1120(0x1ef)](_0x4de4e7,_0x38dbed){const _0x4294b8=a84_0x3c1120,_0x426635={};_0x426635[_0x4294b8(0x22e)]=_0x4de4e7,_0x426635[_0x4294b8(0x1f7)]=_0x38dbed,this[_0x4294b8(0x22b)]=_0x426635,process[_0x4294b8(0x227)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x4294b8(0x247)](this[_0x4294b8(0x22b)]);}static[a84_0x3c1120(0x1f0)](){const _0x283da5=a84_0x3c1120,_0x1abed9={'HFRsT':function(_0x58fc44,_0x549e0){return _0x58fc44(_0x549e0);}};if(!this[_0x283da5(0x22b)]&&process[_0x283da5(0x227)][_0x283da5(0x21f)])try{this[_0x283da5(0x22b)]=JSON[_0x283da5(0x1ee)](process[_0x283da5(0x227)][_0x283da5(0x21f)]);}catch(_0x52ff10){_0x1abed9[_0x283da5(0x234)](debug,_0x283da5(0x219)+_0x52ff10[_0x283da5(0x22c)]());}return this['credentials'];}static[a84_0x3c1120(0x1ff)](_0x5385cf){const _0x2e2056=a84_0x3c1120;this[_0x2e2056(0x23c)]=this[_0x2e2056(0x238)](_0x5385cf),process['env']['USER_CONFIG_FOR_REPORTING']=JSON['stringify'](this[_0x2e2056(0x23c)]);}static[a84_0x3c1120(0x1da)](){const _0x4e68bf=a84_0x3c1120,_0x3a4ccd={'dUqfb':function(_0x27392a,_0x37e472){return _0x27392a===_0x37e472;},'UkFGO':function(_0x114587,_0x5de56a){return _0x114587(_0x5de56a);}};if(_0x3a4ccd['dUqfb'](Object[_0x4e68bf(0x1f5)](this[_0x4e68bf(0x23c)])['length'],0x0)&&process['env'][_0x4e68bf(0x232)])try{this[_0x4e68bf(0x23c)]=JSON[_0x4e68bf(0x1ee)](process['env'][_0x4e68bf(0x232)]);}catch(_0x28253b){_0x3a4ccd[_0x4e68bf(0x1fb)](debug,_0x4e68bf(0x1fe)+_0x28253b[_0x4e68bf(0x22c)]()),this[_0x4e68bf(0x23c)]={};}return this[_0x4e68bf(0x23c)];}static[a84_0x3c1120(0x24a)](_0x3caafe){const _0x134143=a84_0x3c1120;this[_0x134143(0x212)]=_0x3caafe,process['env']['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']=JSON[_0x134143(0x247)](this[_0x134143(0x212)]);}static['getFramework'](){const _0x529632=a84_0x3c1120,_0x4c5095={'QaAwT':function(_0x4fa8c8,_0x46dd32){return _0x4fa8c8===_0x46dd32;},'ovbKF':function(_0x3a11f6,_0x140f35){return _0x3a11f6(_0x140f35);}};if(_0x4c5095[_0x529632(0x1e4)](Object[_0x529632(0x1f5)](this['frameworkDetails'])['length'],0x0)&&process['env'][_0x529632(0x20e)])try{this[_0x529632(0x212)]=JSON[_0x529632(0x1ee)](process['env'][_0x529632(0x20e)]);}catch(_0x54da0f){_0x4c5095[_0x529632(0x23b)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x54da0f[_0x529632(0x22c)]());}return this[_0x529632(0x212)];}static[a84_0x3c1120(0x1db)](_0x269ea0,_0x11c5bc,_0x4557ac){const _0x519e46=a84_0x3c1120;_0x269ea0&&this[_0x519e46(0x24a)](_0x269ea0),_0x11c5bc&&this[_0x519e46(0x1ff)](_0x11c5bc),_0x4557ac&&this[_0x519e46(0x1ef)](_0x4557ac[_0x519e46(0x22e)],_0x4557ac[_0x519e46(0x1f7)]);}static async['uploadCrashReport'](_0x382fbe,_0x4c7c17){const _0x1905d5=a84_0x3c1120,_0x1b702b={'NhlMj':function(_0x2a6450,_0x34d074){return _0x2a6450(_0x34d074);},'rbyog':_0x1905d5(0x233),'GwhRJ':function(_0x2a4876){return _0x2a4876();},'rhqbD':'/api/v1/analytics','HevSm':_0x1905d5(0x1f4),'XIuWQ':_0x1905d5(0x235),'hQhvm':function(_0x4cb2a8,_0x4d6ddc,_0x3e705,_0x5d5d72,_0x376c48,_0x2c1ff1){return _0x4cb2a8(_0x4d6ddc,_0x3e705,_0x5d5d72,_0x376c48,_0x2c1ff1);},'QLGYp':_0x1905d5(0x1fd)};this[_0x1905d5(0x1f0)]();if(!this[_0x1905d5(0x22b)])return _0x1b702b[_0x1905d5(0x220)](debug,_0x1b702b[_0x1905d5(0x1df)]);this[_0x1905d5(0x1da)](),this[_0x1905d5(0x231)]();const _0x21994e={'hashed_id':process['env'][_0x1905d5(0x1f3)],'observability_version':{'sdkVersion':_0x1b702b[_0x1905d5(0x1e9)](getAgentVersion),'frameworkName':this['frameworkDetails']['frameworkName'],'frameworkVersion':this['frameworkDetails']['frameworkVersion']},'exception':{'error':_0x382fbe[_0x1905d5(0x22c)](),'stackTrace':_0x4c7c17},'config':this[_0x1905d5(0x23c)]},_0x188e51=_0x1b702b[_0x1905d5(0x224)],_0x360ada={};_0x360ada['username']=this[_0x1905d5(0x22b)][_0x1905d5(0x22e)],_0x360ada['password']=this[_0x1905d5(0x22b)][_0x1905d5(0x1f7)];const _0x52c63f={};_0x52c63f[_0x1905d5(0x221)]=_0x1b702b['HevSm'],_0x52c63f[_0x1905d5(0x21d)]=_0x1b702b[_0x1905d5(0x240)];const _0x20d806={};_0x20d806[_0x1905d5(0x1e6)]=_0x360ada,_0x20d806[_0x1905d5(0x236)]=_0x52c63f;const _0x1a03a9=_0x20d806;_0x1b702b[_0x1905d5(0x249)](nodeRequest,_0x1b702b[_0x1905d5(0x217)],_0x188e51,_0x21994e,_0x1a03a9,![])[_0x1905d5(0x205)](_0x7c8292=>{const _0x3508dd=_0x1905d5;_0x1b702b['NhlMj'](debug,_0x3508dd(0x242)+JSON[_0x3508dd(0x247)](_0x7c8292));})[_0x1905d5(0x1e2)](_0x37f57d=>{const _0x471b71=_0x1905d5;_0x1b702b[_0x471b71(0x220)](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util[_0x471b71(0x241)](_0x37f57d));});}static[a84_0x3c1120(0x22f)](_0x9876ef){const _0x585adf=a84_0x3c1120,_0x508087={};_0x508087[_0x585adf(0x1f8)]=_0x585adf(0x210),_0x508087['ailnZ']=_0x585adf(0x22e),_0x508087[_0x585adf(0x1f9)]=_0x585adf(0x21b),_0x508087[_0x585adf(0x1e7)]=_0x585adf(0x1f7),_0x508087[_0x585adf(0x23f)]=_0x585adf(0x1f1),_0x508087['xDtal']=function(_0x4b2fe4,_0x459bb1){return _0x4b2fe4===_0x459bb1;},_0x508087[_0x585adf(0x215)]=_0x585adf(0x1ea);const _0x7ac49a=_0x508087;if(!_0x9876ef)return;const _0x3f7085=[_0x7ac49a[_0x585adf(0x1f8)],_0x7ac49a[_0x585adf(0x22d)],_0x7ac49a[_0x585adf(0x1f9)],_0x7ac49a['iDbTr'],_0x7ac49a[_0x585adf(0x23f)]];for(const _0x5bbc89 in _0x9876ef){if(_0x3f7085[_0x585adf(0x202)](_0x5bbc89[_0x585adf(0x23a)]()))delete _0x9876ef[_0x5bbc89];else _0x7ac49a[_0x585adf(0x1ec)](typeof _0x9876ef[_0x5bbc89],_0x7ac49a[_0x585adf(0x215)])&&this[_0x585adf(0x22f)](_0x9876ef[_0x5bbc89]);}}static[a84_0x3c1120(0x238)](_0x31bda8){const _0x378a1a=a84_0x3c1120,_0x2e7c25=JSON['parse'](JSON['stringify'](_0x31bda8));return this[_0x378a1a(0x22f)](_0x2e7c25),_0x2e7c25;}}const a84_0x364739={};a84_0x364739[a84_0x3c1120(0x1d9)]=o11yErrorHandler,a84_0x364739[a84_0x3c1120(0x225)]=o11yClassErrorHandler,a84_0x364739[a84_0x3c1120(0x23e)]=CrashReporter,module[a84_0x3c1120(0x207)]=a84_0x364739;
1
+ const a84_0x26ccb7=a84_0x1c85;function a84_0x1c85(_0x1dc968,_0x4908c3){const _0x185299=a84_0x1852();return a84_0x1c85=function(_0x1c8538,_0x3feabe){_0x1c8538=_0x1c8538-0x158;let _0x37be64=_0x185299[_0x1c8538];return _0x37be64;},a84_0x1c85(_0x1dc968,_0x4908c3);}(function(_0x1f286e,_0x2da84d){const _0x10f330=a84_0x1c85,_0x44ef36=_0x1f286e();while(!![]){try{const _0x407df3=parseInt(_0x10f330(0x158))/0x1*(-parseInt(_0x10f330(0x1b9))/0x2)+-parseInt(_0x10f330(0x180))/0x3+-parseInt(_0x10f330(0x171))/0x4*(-parseInt(_0x10f330(0x182))/0x5)+parseInt(_0x10f330(0x1bc))/0x6*(parseInt(_0x10f330(0x173))/0x7)+parseInt(_0x10f330(0x16e))/0x8+parseInt(_0x10f330(0x196))/0x9+-parseInt(_0x10f330(0x19d))/0xa*(-parseInt(_0x10f330(0x1ae))/0xb);if(_0x407df3===_0x2da84d)break;else _0x44ef36['push'](_0x44ef36['shift']());}catch(_0x2b2c5b){_0x44ef36['push'](_0x44ef36['shift']());}}}(a84_0x1852,0x8567c));const util=require(a84_0x26ccb7(0x185)),PerformanceTester=require(a84_0x26ccb7(0x1a7)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0x26ccb7(0x17d)),{getAgentVersion,nestedKeyValue}=require('../helper'),o11yErrorHandler=(_0xd08840,_0x4d4179='',_0x297a01=[''],_0x4b6713=![])=>{const _0x3efbad={'esaic':function(_0x2c7dfe,_0x50fc60){return _0x2c7dfe(_0x50fc60);},'wYxRW':function(_0xeaa2a5,_0x386b1b,_0x9f0d49){return _0xeaa2a5(_0x386b1b,_0x9f0d49);},'lwaJG':function(_0x2d1109,_0x276eea){return _0x2d1109(_0x276eea);},'UARUs':function(_0x4bcce9,_0x5262a2,_0x1d68f1){return _0x4bcce9(_0x5262a2,_0x1d68f1);},'JBDIt':function(_0x5641f9,_0x15149c){return _0x5641f9 instanceof _0x15149c;},'EgCTK':function(_0x5342be,_0x295adc,_0x1b5ec8,_0x181ec3,_0x2d5055){return _0x5342be(_0x295adc,_0x1b5ec8,_0x181ec3,_0x2d5055);}};return function(..._0x58c26c){const _0x702b77=a84_0x1c85;try{let _0x485da7=_0xd08840;process[_0x702b77(0x198)][_0x702b77(0x186)]&&(_0x485da7=PerformanceTester[_0x702b77(0x187)]()[_0x702b77(0x1a9)](_0x485da7));_0x4b6713&&_0x3efbad[_0x702b77(0x18d)](trace,'Started\x20::\x20'+_0x4d4179+',\x20PID\x20-\x20'+process[_0x702b77(0x170)]+_0x702b77(0x1be)+_0x3efbad[_0x702b77(0x1a8)](nestedKeyValue,arguments[0x0],_0x297a01));const _0x4ebc47=_0x485da7[_0x702b77(0x19c)](null,arguments);_0x4b6713&&_0x3efbad[_0x702b77(0x1b1)](trace,'Finished\x20::\x20'+_0x4d4179+_0x702b77(0x19a)+process[_0x702b77(0x170)]+_0x702b77(0x1be)+_0x3efbad['UARUs'](nestedKeyValue,arguments[0x0],_0x297a01));if(_0x3efbad[_0x702b77(0x1b4)](_0x4ebc47,Promise))return _0x4ebc47[_0x702b77(0x199)](_0x83218e=>processError(_0x83218e,_0xd08840,_0x58c26c,_0x4d4179));return _0x4ebc47;}catch(_0xc0af3c){_0x3efbad[_0x702b77(0x169)](processError,_0xc0af3c,_0xd08840,_0x58c26c,_0x4d4179);}};},o11yClassErrorHandler=(_0x4e7185,_0x2c0769,_0x51929d='')=>{const _0x4dbb81=a84_0x26ccb7,_0x3194f8={'wrZFH':function(_0x22bae2,_0x1653a4){return _0x22bae2 instanceof _0x1653a4;},'zLlXz':function(_0xa3a8b9,_0x4bc00d,_0x1827d2,_0x459e82,_0x3e06af){return _0xa3a8b9(_0x4bc00d,_0x1827d2,_0x459e82,_0x3e06af);},'ilDyU':function(_0xcc8438,_0x25d0fd){return _0xcc8438===_0x25d0fd;},'rlGEb':_0x4dbb81(0x17c),'cykNs':function(_0x5adbf2,_0x85327){return _0x5adbf2!==_0x85327;},'arorT':_0x4dbb81(0x1b6),'CvgCO':function(_0x1ac7d9,_0x35b41e){return _0x1ac7d9<_0x35b41e;}},_0xfb1806=_0x4e7185[_0x4dbb81(0x17b)];if(_0x3194f8[_0x4dbb81(0x17f)](Object[_0x4dbb81(0x18f)](_0xfb1806)[_0x4dbb81(0x16d)],0x2))return _0x4e7185;return Object[_0x4dbb81(0x18f)](_0xfb1806)[_0x4dbb81(0x194)](_0x5a17e0=>{const _0x541657=_0x4dbb81,_0x1f6688={'rjKxZ':function(_0x534b7c,_0x511b68){return _0x3194f8['wrZFH'](_0x534b7c,_0x511b68);},'cXpce':function(_0x32903b,_0x5643e5,_0x29d994,_0x551a91,_0x4e539f){const _0x177af1=a84_0x1c85;return _0x3194f8[_0x177af1(0x195)](_0x32903b,_0x5643e5,_0x29d994,_0x551a91,_0x4e539f);}};if(!(_0x2c0769&&_0x2c0769[_0x541657(0x184)](_0x5a17e0)))return;const _0x440e59=_0xfb1806[_0x5a17e0];_0x3194f8[_0x541657(0x19e)](typeof _0x440e59,_0x3194f8['rlGEb'])&&_0x3194f8[_0x541657(0x192)](_0x5a17e0,_0x3194f8[_0x541657(0x15f)])&&Object['defineProperty'](_0xfb1806,_0x5a17e0,{'writable':!![],'value':function(..._0x579a6f){const _0xe07732=_0x541657;try{const _0x19f4ce=(process[_0xe07732(0x198)][_0xe07732(0x186)]?PerformanceTester['getPerformance']()['timerify'](_0x440e59):_0x440e59)['call'](this,..._0x579a6f);if(_0x1f6688[_0xe07732(0x176)](_0x19f4ce,Promise))return _0x19f4ce[_0xe07732(0x199)](_0x1123e7=>processError(_0x1123e7,_0x440e59,_0x579a6f,_0x51929d));return _0x19f4ce;}catch(_0xd4151d){_0x1f6688['cXpce'](processError,_0xd4151d,_0x440e59,_0x579a6f,_0x51929d);}}});}),_0x4e7185;};function a84_0x1852(){const _0x4d1e65=['Error\x20in\x20executing\x20','forEach','zLlXz','1624932vMyaYg','alvNP','env','catch',',\x20PID\x20-\x20','rqXMB','apply','210bVAmlT','ilDyU','toLowerCase','IAnAg','tJTRm','frameworkDetails','recursivelyDeletePIIKeysFromObject','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','password','../performance/performance-tester','wYxRW','timerify','frameworkName','getFramework','headers','setConfigDetails','84810FZiuQm','accessKey','SMEVW','lwaJG','userConfig','name','JBDIt','oQOcs','constructor','parse','uploadCrashReport','1195642khSNCL','POST','stack','78THBTHs','NaezO',',\x20Argument\x20-\x20','credentials','XynjC','setAllDetails','1cHosHA','mGTre','stringify','key','setFrameworkDetails','JDPRD','frameworkVersion','arorT','ruOGh','setCredentials','Content-Type','object','captureError','CrashReporter','USER_CONFIG_FOR_REPORTING','gxkCu','qhVBq','EgCTK','application/json','filterPII','Pjgmc','length','2216472RJrMfo','pJkVv','pid','668YWydJV','exports','479983MdcSzT','username','jOyhL','rjKxZ','user','toString','CREDENTIALS_FOR_CRASH_REPORTING','initialize','prototype','function','./utils','.\x20Args\x20-\x20','CvgCO','1473240OAQMpW','lFKUT','3725lVHQsw','X-BSTACK-TESTOPS','includes','util','BROWSERSTACK_O11Y_PERF_MEASUREMENT','getPerformance','pzRuG','getConfig','VdbSA','format','getCredentials','esaic','\x20--\x20','getOwnPropertyNames','[Crash_Report_Upload]\x20Success\x20response:\x20','.\x20Error\x20-\x20','cykNs'];a84_0x1852=function(){return _0x4d1e65;};return a84_0x1852();}function processError(_0x406614,_0x31aeda,_0xb0f601,_0x4f43e6){const _0x3063c6=a84_0x26ccb7,_0x31790b={'alvNP':function(_0x3c5eb5,_0x15a24a){return _0x3c5eb5(_0x15a24a);}};_0x31790b[_0x3063c6(0x197)](debug,_0x3063c6(0x193)+_0x31aeda[_0x3063c6(0x1b3)]+_0x3063c6(0x18e)+_0x4f43e6+'.\x20Error\x20-\x20'+_0x406614+_0x3063c6(0x17e)+_0xb0f601+'.'),PerformanceTester[_0x3063c6(0x164)](_0x406614);let _0x48f48f;try{_0x48f48f=JSON['stringify'](_0xb0f601);}catch(_0x44802d){const _0x52d6f2={};_0x52d6f2['depth']=0x2,_0x48f48f=util['inspect'](_0xb0f601,_0x52d6f2);}CrashReporter[_0x3063c6(0x1b8)](_0x3063c6(0x193)+_0x31aeda[_0x3063c6(0x1b3)]+'\x20--\x20'+_0x4f43e6+_0x3063c6(0x191)+_0x406614+_0x3063c6(0x17e)+_0x48f48f+'.',_0x406614&&_0x406614[_0x3063c6(0x1bb)]);}class CrashReporter{static ['userConfig']={};static [a84_0x26ccb7(0x1bf)];static [a84_0x26ccb7(0x1a2)]={};static[a84_0x26ccb7(0x17a)](_0xff3e66,_0x4d300e,_0x283cd0=null){const _0xffa176=a84_0x26ccb7,_0x403f91={'fiQIW':function(_0x2d1cd1,_0x358fc4){return _0x2d1cd1(_0x358fc4);},'XynjC':function(_0x4932df,_0x4be0e6){return _0x4932df(_0x4be0e6);},'lFKUT':function(_0x50c0c3,_0x4b0ab7){return _0x50c0c3(_0x4b0ab7);}},_0xf93447=_0xff3e66['frameworkName'],_0x22a7fa=_0xff3e66['frameworkVersion'];!_0x283cd0&&(_0x283cd0=_0x403f91['fiQIW'](getBrowserStackConfig,_0xf93447));!_0x22a7fa&&_0x403f91[_0xffa176(0x1c0)](getFrameworkVersion,_0xf93447);const _0x418685={};_0x418685['frameworkName']=_0xf93447,_0x418685[_0xffa176(0x15e)]=_0x22a7fa,this[_0xffa176(0x1c1)](_0x418685,_0x4d300e,_0x403f91[_0xffa176(0x181)](getUserCredentials,_0x283cd0));}static[a84_0x26ccb7(0x161)](_0x3f513c,_0x15b2be){const _0x449a9a=a84_0x26ccb7,_0x2458d4={};_0x2458d4['username']=_0x3f513c,_0x2458d4[_0x449a9a(0x1af)]=_0x15b2be,this[_0x449a9a(0x1bf)]=_0x2458d4,process['env'][_0x449a9a(0x179)]=JSON['stringify'](this['credentials']);}static[a84_0x26ccb7(0x18c)](){const _0x516bd4=a84_0x26ccb7,_0x834742={'tJlVA':function(_0x326c3d,_0xb9b789){return _0x326c3d(_0xb9b789);}};if(!this['credentials']&&process[_0x516bd4(0x198)][_0x516bd4(0x179)])try{this[_0x516bd4(0x1bf)]=JSON['parse'](process['env']['CREDENTIALS_FOR_CRASH_REPORTING']);}catch(_0x1abbf6){_0x834742['tJlVA'](debug,_0x516bd4(0x1a4)+_0x1abbf6[_0x516bd4(0x178)]());}return this[_0x516bd4(0x1bf)];}static[a84_0x26ccb7(0x1ad)](_0x23f2cd){const _0x950aa0=a84_0x26ccb7;this['userConfig']=this[_0x950aa0(0x16b)](_0x23f2cd),process[_0x950aa0(0x198)][_0x950aa0(0x166)]=JSON[_0x950aa0(0x15a)](this[_0x950aa0(0x1b2)]);}static[a84_0x26ccb7(0x189)](){const _0xfc1467=a84_0x26ccb7,_0x74bd1a={'ruOGh':function(_0xae9d08,_0x31aaed){return _0xae9d08===_0x31aaed;},'HgvhX':function(_0x4251af,_0x17fa51){return _0x4251af(_0x17fa51);}};if(_0x74bd1a[_0xfc1467(0x160)](Object['keys'](this[_0xfc1467(0x1b2)])[_0xfc1467(0x16d)],0x0)&&process[_0xfc1467(0x198)][_0xfc1467(0x166)])try{this[_0xfc1467(0x1b2)]=JSON[_0xfc1467(0x1b7)](process['env'][_0xfc1467(0x166)]);}catch(_0x3f6b36){_0x74bd1a['HgvhX'](debug,'Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20'+_0x3f6b36[_0xfc1467(0x178)]()),this[_0xfc1467(0x1b2)]={};}return this[_0xfc1467(0x1b2)];}static[a84_0x26ccb7(0x15c)](_0x2233d7){const _0x14da1a=a84_0x26ccb7;this[_0x14da1a(0x1a2)]=_0x2233d7,process[_0x14da1a(0x198)][_0x14da1a(0x1a5)]=JSON[_0x14da1a(0x15a)](this[_0x14da1a(0x1a2)]);}static[a84_0x26ccb7(0x1ab)](){const _0x489fbb=a84_0x26ccb7,_0x5bcefb={'SMEVW':function(_0x362a5e,_0x23f301){return _0x362a5e===_0x23f301;},'VdbSA':function(_0x3cf3d4,_0x1ae1cf){return _0x3cf3d4(_0x1ae1cf);}};if(_0x5bcefb[_0x489fbb(0x1b0)](Object['keys'](this[_0x489fbb(0x1a2)])[_0x489fbb(0x16d)],0x0)&&process[_0x489fbb(0x198)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x489fbb(0x1a2)]=JSON[_0x489fbb(0x1b7)](process[_0x489fbb(0x198)][_0x489fbb(0x1a5)]);}catch(_0x9cbe69){_0x5bcefb[_0x489fbb(0x18a)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x9cbe69[_0x489fbb(0x178)]());}return this[_0x489fbb(0x1a2)];}static[a84_0x26ccb7(0x1c1)](_0x28baf5,_0x833175,_0x8e292b){const _0x51d4bd=a84_0x26ccb7;_0x28baf5&&this['setFrameworkDetails'](_0x28baf5),_0x833175&&this[_0x51d4bd(0x1ad)](_0x833175),_0x8e292b&&this[_0x51d4bd(0x161)](_0x8e292b[_0x51d4bd(0x174)],_0x8e292b[_0x51d4bd(0x1af)]);}static async[a84_0x26ccb7(0x1b8)](_0x46baf4,_0x4fe098){const _0x2b05fd=a84_0x26ccb7,_0x38808b={'tJTRm':function(_0x43c6cb,_0x355bb4){return _0x43c6cb(_0x355bb4);},'eKQhh':'[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','pzRuG':function(_0x32766f){return _0x32766f();},'SzWKX':'/api/v1/analytics','gxkCu':_0x2b05fd(0x16a),'pJkVv':'true','jOyhL':function(_0x16d290,_0xbcf7b9,_0x3af9e1,_0x41474c,_0x33909c,_0xda4477){return _0x16d290(_0xbcf7b9,_0x3af9e1,_0x41474c,_0x33909c,_0xda4477);},'JDPRD':_0x2b05fd(0x1ba)};this[_0x2b05fd(0x18c)]();if(!this[_0x2b05fd(0x1bf)])return _0x38808b['tJTRm'](debug,_0x38808b['eKQhh']);this[_0x2b05fd(0x189)](),this[_0x2b05fd(0x1ab)]();const _0x370abb={'hashed_id':process[_0x2b05fd(0x198)]['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0x38808b[_0x2b05fd(0x188)](getAgentVersion),'frameworkName':this[_0x2b05fd(0x1a2)][_0x2b05fd(0x1aa)],'frameworkVersion':this[_0x2b05fd(0x1a2)][_0x2b05fd(0x15e)]},'exception':{'error':_0x46baf4[_0x2b05fd(0x178)](),'stackTrace':_0x4fe098},'config':this['userConfig']},_0x934572=_0x38808b['SzWKX'],_0x522dc5={};_0x522dc5[_0x2b05fd(0x174)]=this[_0x2b05fd(0x1bf)][_0x2b05fd(0x174)],_0x522dc5[_0x2b05fd(0x1a6)]=this[_0x2b05fd(0x1bf)][_0x2b05fd(0x1af)];const _0x3e7f4d={};_0x3e7f4d[_0x2b05fd(0x162)]=_0x38808b[_0x2b05fd(0x167)],_0x3e7f4d[_0x2b05fd(0x183)]=_0x38808b[_0x2b05fd(0x16f)];const _0x88a583={};_0x88a583['auth']=_0x522dc5,_0x88a583[_0x2b05fd(0x1ac)]=_0x3e7f4d;const _0x37933f=_0x88a583;_0x38808b[_0x2b05fd(0x175)](nodeRequest,_0x38808b[_0x2b05fd(0x15d)],_0x934572,_0x370abb,_0x37933f,![])['then'](_0x16693a=>{const _0x41a142=_0x2b05fd;_0x38808b['tJTRm'](debug,_0x41a142(0x190)+JSON['stringify'](_0x16693a));})[_0x2b05fd(0x199)](_0x4fe38a=>{const _0x373351=_0x2b05fd;_0x38808b[_0x373351(0x1a1)](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util[_0x373351(0x18b)](_0x4fe38a));});}static['recursivelyDeletePIIKeysFromObject'](_0x32865a){const _0x1214f0=a84_0x26ccb7,_0x1c8468={};_0x1c8468[_0x1214f0(0x1a0)]=_0x1214f0(0x177),_0x1c8468['mGTre']='username',_0x1c8468[_0x1214f0(0x168)]=_0x1214f0(0x15b),_0x1c8468['Pjgmc']='accessKey',_0x1c8468['rqXMB']=_0x1214f0(0x1a6),_0x1c8468[_0x1214f0(0x1b5)]=function(_0x1562ea,_0x2e0be5){return _0x1562ea===_0x2e0be5;},_0x1c8468[_0x1214f0(0x1bd)]=_0x1214f0(0x163);const _0x388e36=_0x1c8468;if(!_0x32865a)return;const _0x11d7af=[_0x388e36['IAnAg'],_0x388e36[_0x1214f0(0x159)],_0x388e36[_0x1214f0(0x168)],_0x388e36[_0x1214f0(0x16c)],_0x388e36[_0x1214f0(0x19b)]];for(const _0x4fe876 in _0x32865a){if(_0x11d7af[_0x1214f0(0x184)](_0x4fe876[_0x1214f0(0x19f)]()))delete _0x32865a[_0x4fe876];else _0x388e36[_0x1214f0(0x1b5)](typeof _0x32865a[_0x4fe876],_0x388e36[_0x1214f0(0x1bd)])&&this[_0x1214f0(0x1a3)](_0x32865a[_0x4fe876]);}}static['filterPII'](_0x1899eb){const _0x583111=a84_0x26ccb7,_0x160236=JSON['parse'](JSON[_0x583111(0x15a)](_0x1899eb));return this[_0x583111(0x1a3)](_0x160236),_0x160236;}}const a84_0x2be8e1={};a84_0x2be8e1['o11yErrorHandler']=o11yErrorHandler,a84_0x2be8e1['o11yClassErrorHandler']=o11yClassErrorHandler,a84_0x2be8e1[a84_0x26ccb7(0x165)]=CrashReporter,module[a84_0x26ccb7(0x172)]=a84_0x2be8e1;
@@ -1 +1 @@
1
- const a85_0x22a140=a85_0xe068;function a85_0x3a8f(){const _0x2fdd17=['lpzwh','push','IXtcb','api/v1/screenshots','REMOVING','22KILlQD','message','1245200xEkoGu','18EStVCI','3|6|2|1|5|0|4','LMksN','resetEventBatchPolling','proceedWithData','xCGMw','QmplD','RESETTING','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','FwZlQ','BATCH_EVENT_TYPES','splice','2486460EZOMer','data','RiWSf','../helper','format','TestRunFinished','lFaNO','sstaT','queue','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','wbtqL','zTgcJ','TEST_ATTACHMENT','pendingUploads','instance','OcnfB','mBOxu','event_type','eventUrl','\x20bytes.\x20Events\x20are\x20','error','getInstance','35yWbbwL','NFzxG','includes','util','upload-attachments','POST','tePOe','EXCEPTION\x20IN\x20','DRAal','191910PjZTtH','split','NhIFU','HACIJ','pollEventBatchInterval','JCRFz','UUfuR','uploadPending','started','BgzkO','cWGvz','21514872lVQVkr','length','XbnkF','max','1130860ZzFzJX','shutdown','uploadAttachmentUrl','\x20--\x20','AkJdu','1056KdSLdo','shouldProceed','1558yIMxoD','.\x20Request\x20Size\x20-\x20','eCWsP','logs','AnsJf','pVWvB','test_run','HookRunFinished','byteLength','kqhFu','HookRunStarted','slice','wxFXi','removeEventBatchPolling','TestRunStarted','Processing\x20batch\x20events\x20for\x20','42HtvIPS','screenshotEventUrl','TestRunSkipped','nMKdI','kind','764528yDhjDf','AsAhw','Processing\x20events.\x20Queue\x20Length\x20-\x20','./constants','uGcxa','response','LogCreated','startEventBatchPolling','TEST_SCREENSHOT','fRYap','uuid','exports','./utils','proceedWithUrl','start','Remaining\x20Queue\x20Length\x20-\x20','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','api/v1/batch','add','map','join','MEBWI','VWOHg','WLdag'];a85_0x3a8f=function(){return _0x2fdd17;};return a85_0x3a8f();}(function(_0x43df94,_0x395bab){const _0x1b7839=a85_0xe068,_0x1a1cde=_0x43df94();while(!![]){try{const _0x3a0fbe=-parseInt(_0x1b7839(0x1cb))/0x1+parseInt(_0x1b7839(0x22c))/0x2*(-parseInt(_0x1b7839(0x22a))/0x3)+-parseInt(_0x1b7839(0x1f7))/0x4+-parseInt(_0x1b7839(0x20d))/0x5*(parseInt(_0x1b7839(0x216))/0x6)+-parseInt(_0x1b7839(0x1c6))/0x7*(parseInt(_0x1b7839(0x1ea))/0x8)+parseInt(_0x1b7839(0x1eb))/0x9*(-parseInt(_0x1b7839(0x225))/0xa)+-parseInt(_0x1b7839(0x1e8))/0xb*(-parseInt(_0x1b7839(0x221))/0xc);if(_0x3a0fbe===_0x395bab)break;else _0x1a1cde['push'](_0x1a1cde['shift']());}catch(_0x50844f){_0x1a1cde['push'](_0x1a1cde['shift']());}}}(a85_0x3a8f,0x84336));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a85_0x22a140(0x1ce)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a85_0x22a140(0x1d7)),{nestedKeyValue}=require(a85_0x22a140(0x1fa)),util=require(a85_0x22a140(0x210));function a85_0xe068(_0x2682c9,_0x246c99){const _0x3a8f65=a85_0x3a8f();return a85_0xe068=function(_0xe06834,_0x3aeccf){_0xe06834=_0xe06834-0x1bb;let _0x8385d6=_0x3a8f65[_0xe06834];return _0x8385d6;},a85_0xe068(_0x2682c9,_0x246c99);}class RequestQueueHandler{static [a85_0x22a140(0x205)];['pendingUploads']=0x0;constructor(){const _0x285d01=a85_0x22a140,_0xb536b3={};_0xb536b3[_0x285d01(0x1cc)]=_0x285d01(0x1ec),_0xb536b3[_0x285d01(0x1d4)]=_0x285d01(0x1d1),_0xb536b3[_0x285d01(0x201)]='CBTSessionCreated',_0xb536b3[_0x285d01(0x1f0)]=_0x285d01(0x1fc),_0xb536b3[_0x285d01(0x220)]=_0x285d01(0x1c8),_0xb536b3[_0x285d01(0x22e)]=_0x285d01(0x1bd),_0xb536b3['LMksN']=_0x285d01(0x1c4),_0xb536b3[_0x285d01(0x1cf)]=_0x285d01(0x1c0),_0xb536b3['AnsJf']=_0x285d01(0x1e6),_0xb536b3['UUfuR']=_0x285d01(0x1dc),_0xb536b3[_0x285d01(0x1e1)]=_0x285d01(0x211);const _0x2be8ca=_0xb536b3,_0x24ff84=_0x2be8ca[_0x285d01(0x1cc)][_0x285d01(0x217)]('|');let _0x520a70=0x0;while(!![]){switch(_0x24ff84[_0x520a70++]){case'0':this[_0x285d01(0x1f5)]=[_0x2be8ca[_0x285d01(0x1d4)],_0x2be8ca[_0x285d01(0x201)],_0x2be8ca[_0x285d01(0x1f0)],_0x2be8ca[_0x285d01(0x220)],_0x2be8ca[_0x285d01(0x22e)],_0x2be8ca[_0x285d01(0x1ed)],_0x2be8ca[_0x285d01(0x1cf)]];continue;case'1':this[_0x285d01(0x1c7)]=_0x2be8ca[_0x285d01(0x230)];continue;case'2':this[_0x285d01(0x209)]=_0x2be8ca[_0x285d01(0x21c)];continue;case'3':this['queue']=[];continue;case'4':this[_0x285d01(0x21a)]=null;continue;case'5':this[_0x285d01(0x227)]=_0x2be8ca[_0x285d01(0x1e1)];continue;case'6':this[_0x285d01(0x21e)]=![];continue;}break;}}static[a85_0x22a140(0x20c)](){const _0x391395=a85_0x22a140;return!RequestQueueHandler[_0x391395(0x205)]&&(RequestQueueHandler[_0x391395(0x205)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}[a85_0x22a140(0x1d9)]=()=>{const _0x1fa9fd=a85_0x22a140;!this[_0x1fa9fd(0x21e)]&&(this[_0x1fa9fd(0x21e)]=!![],this['startEventBatchPolling']());};[a85_0x22a140(0x1dd)]=_0xa3ab90=>{const _0x509dcb=a85_0x22a140,_0x37953b={'hIoat':function(_0x3f4250,_0x3f4284){return _0x3f4250===_0x3f4284;},'lpzwh':_0x509dcb(0x1d3),'BgzkO':function(_0x243c5d,_0x2cb524){return _0x243c5d>_0x2cb524;},'pVWvB':_0x509dcb(0x203),'rfECw':function(_0x28e089,_0x3fea59){return _0x28e089!==_0x3fea59;},'FwZlQ':_0x509dcb(0x1fc),'YDalG':function(_0x391592,_0x53e61f){return _0x391592(_0x53e61f);},'kqhFu':_0x509dcb(0x200)};if(this[_0x509dcb(0x1f5)][_0x509dcb(0x20f)](_0xa3ab90['event_type'])){if(_0xa3ab90[_0x509dcb(0x22f)]&&_0xa3ab90['logs'][0x0]&&_0x37953b['hIoat'](_0xa3ab90[_0x509dcb(0x22f)][0x0][_0x509dcb(0x1ca)],_0x37953b[_0x509dcb(0x1e3)])){const _0xaabc2d={};return _0xaabc2d[_0x509dcb(0x22b)]=!![],_0xaabc2d['proceedWithData']=[_0xa3ab90],_0xaabc2d[_0x509dcb(0x1d8)]=this[_0x509dcb(0x1c7)],_0xaabc2d;}if(_0xa3ab90[_0x509dcb(0x22f)]&&_0x37953b[_0x509dcb(0x21f)](_0xa3ab90[_0x509dcb(0x22f)][_0x509dcb(0x222)],0x0)&&_0x37953b['hIoat'](_0xa3ab90[_0x509dcb(0x22f)][0x0][_0x509dcb(0x1ca)],_0x37953b[_0x509dcb(0x1bb)])&&_0x37953b['rfECw'](_0xa3ab90['event_type'],_0x37953b[_0x509dcb(0x1f4)])){const _0x47c5f6={};return _0x47c5f6[_0x509dcb(0x22b)]=!![],_0x47c5f6[_0x509dcb(0x1ef)]=[_0xa3ab90],_0x47c5f6[_0x509dcb(0x1d8)]=this[_0x509dcb(0x227)],_0x47c5f6;}this[_0x509dcb(0x1ff)][_0x509dcb(0x1e4)](_0xa3ab90);let _0x125cc9=null;const _0x400bd9=this['shouldProceed']();_0x400bd9&&(_0x37953b['YDalG'](trace,_0x37953b[_0x509dcb(0x1bf)]),_0x125cc9=this[_0x509dcb(0x1ff)][_0x509dcb(0x1c1)](0x0,BATCH_SIZE),this[_0x509dcb(0x1ff)][_0x509dcb(0x1f6)](0x0,BATCH_SIZE),this[_0x509dcb(0x1ee)]());const _0x5c835c={};return _0x5c835c[_0x509dcb(0x22b)]=_0x400bd9,_0x5c835c[_0x509dcb(0x1ef)]=_0x125cc9,_0x5c835c[_0x509dcb(0x1d8)]=this['eventUrl'],_0x5c835c;}const _0x38cd5b={};return _0x38cd5b[_0x509dcb(0x22b)]=!![],_0x38cd5b;};[a85_0x22a140(0x226)]=async()=>{const _0x3aa328=a85_0x22a140,_0x9aaec9={'QmplD':_0x3aa328(0x1e7),'lFaNO':function(_0x5ddd5f,_0x1a920b){return _0x5ddd5f>_0x1a920b;},'RiWSf':'Shutdown-Queue','OcnfB':function(_0x53fd74,_0x13e53d){return _0x53fd74>_0x13e53d;},'nFIOM':function(_0x9c849c,_0x231ee8){return _0x9c849c(_0x231ee8);}};await this[_0x3aa328(0x21d)](),this[_0x3aa328(0x1c3)](_0x9aaec9[_0x3aa328(0x1f1)]);while(_0x9aaec9[_0x3aa328(0x1fd)](this['queue'][_0x3aa328(0x222)],0x0)){const _0x278751=this[_0x3aa328(0x1ff)][_0x3aa328(0x1c1)](0x0,BATCH_SIZE);this[_0x3aa328(0x1ff)][_0x3aa328(0x1f6)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x3aa328(0x209)],_0x9aaec9[_0x3aa328(0x1f9)],_0x278751);}_0x9aaec9[_0x3aa328(0x206)](this['pendingUploads'],0x0)&&_0x9aaec9['nFIOM'](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x3aa328(0x204)]);};['batchAndPostEvents']=async(_0x305ae8,_0x2f8f8c,_0x730b02)=>{const _0x5c79e0=a85_0x22a140,_0x5521c9={'QGQBJ':function(_0x19f5cc,_0x736091){return _0x19f5cc(_0x736091);},'KQSvN':'utf8','wxFXi':function(_0x359f69,_0x573457){return _0x359f69(_0x573457);},'eMOpD':function(_0x2c482f){return _0x2c482f();},'NFzxG':function(_0x4aab65,_0x139a83,_0xbeea7f,_0x379a67,_0x1964f3){return _0x4aab65(_0x139a83,_0xbeea7f,_0x379a67,_0x1964f3);},'IXtcb':_0x5c79e0(0x212),'WLdag':function(_0x4c069f,_0x343a54){return _0x4c069f-_0x343a54;},'MEBWI':function(_0xaceaaf,_0x45ab36){return _0xaceaaf(_0x45ab36);}};let _0x1ea292='';try{_0x1ea292=_0x730b02[_0x5c79e0(0x1de)](_0xe2db70=>'\x27'+_0xe2db70[_0x5c79e0(0x208)]+'\x27:'+(nestedKeyValue(_0xe2db70,[_0x5c79e0(0x1bc),'uuid'])||nestedKeyValue(_0xe2db70,['hook_run',_0x5c79e0(0x1d5)])))[_0x5c79e0(0x1df)](','),_0x5521c9['QGQBJ'](debug,_0x5c79e0(0x1c5)+_0x2f8f8c+_0x5c79e0(0x22d)+Buffer[_0x5c79e0(0x1be)](util[_0x5c79e0(0x1fb)]('%j',_0x730b02),_0x5521c9['KQSvN'])+_0x5c79e0(0x20a)+_0x1ea292);}catch(_0x236b75){_0x5521c9[_0x5c79e0(0x1c2)](debug,_0x5c79e0(0x1db)+util[_0x5c79e0(0x1fb)](_0x236b75)+'}');}const _0x392a5c={'headers':_0x5521c9['eMOpD'](getDefaultHeaders)};try{const _0x30aa3d=await _0x5521c9[_0x5c79e0(0x20e)](nodeRequest,_0x5521c9[_0x5c79e0(0x1e5)],_0x305ae8,_0x730b02,_0x392a5c);if(_0x30aa3d['data'][_0x5c79e0(0x20b)]){const _0x67aaf8={};_0x67aaf8[_0x5c79e0(0x1e9)]=_0x30aa3d[_0x5c79e0(0x1f8)][_0x5c79e0(0x20b)];throw _0x67aaf8;}else _0x5521c9[_0x5c79e0(0x1c2)](debug,_0x2f8f8c+'\x20event\x20successful\x20for\x20events\x20'+_0x1ea292+_0x5c79e0(0x228)+util[_0x5c79e0(0x1fb)]('%j',_0x30aa3d[_0x5c79e0(0x1f8)])),this[_0x5c79e0(0x204)]=Math[_0x5c79e0(0x224)](0x0,_0x5521c9[_0x5c79e0(0x1e2)](this['pendingUploads'],_0x730b02[_0x5c79e0(0x222)]));}catch(_0x413875){_0x413875[_0x5c79e0(0x1d0)]?_0x5521c9[_0x5c79e0(0x1e0)](debug,'EXCEPTION\x20IN\x20'+_0x2f8f8c+_0x5c79e0(0x1f3)+_0x413875['response']['status']+'\x20'+_0x413875[_0x5c79e0(0x1d0)]['statusText']+'\x20'+util[_0x5c79e0(0x1fb)]('%j',_0x413875[_0x5c79e0(0x1d0)])):_0x5521c9[_0x5c79e0(0x1c2)](debug,_0x5c79e0(0x214)+_0x2f8f8c+_0x5c79e0(0x1f3)+(_0x413875['message']||_0x413875)),this[_0x5c79e0(0x204)]=Math[_0x5c79e0(0x224)](0x0,_0x5521c9[_0x5c79e0(0x1e2)](this[_0x5c79e0(0x204)],_0x730b02[_0x5c79e0(0x222)]));}};[a85_0x22a140(0x1d2)]=()=>{const _0x685cf5=a85_0x22a140,_0x16446c={'dEdpb':function(_0x5dbff1,_0x5cbed5){return _0x5dbff1>_0x5cbed5;},'DRAal':function(_0x180584,_0x131d0f){return _0x180584(_0x131d0f);},'AkJdu':'Interval-Queue','nMKdI':function(_0xfd00fd,_0x1b349e){return _0xfd00fd(_0x1b349e);},'JCRFz':function(_0x56159f,_0x4d56fc,_0x4bf39d){return _0x56159f(_0x4d56fc,_0x4bf39d);}};this[_0x685cf5(0x21a)]=_0x16446c[_0x685cf5(0x21b)](setInterval,async()=>{const _0x18d512=_0x685cf5;if(_0x16446c['dEdpb'](this[_0x18d512(0x1ff)]['length'],0x0)){_0x16446c[_0x18d512(0x215)](trace,_0x18d512(0x1cd)+this['queue'][_0x18d512(0x222)]);const _0x2b418b=this['queue'][_0x18d512(0x1c1)](0x0,BATCH_SIZE);this[_0x18d512(0x1ff)][_0x18d512(0x1f6)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x18d512(0x209)],_0x16446c[_0x18d512(0x229)],_0x2b418b),_0x16446c[_0x18d512(0x1c9)](trace,_0x18d512(0x1da)+this[_0x18d512(0x1ff)][_0x18d512(0x222)]);}},BATCH_INTERVAL);};[a85_0x22a140(0x1ee)]=()=>{const _0x2943a6=a85_0x22a140,_0x100622={};_0x100622[_0x2943a6(0x1fe)]=_0x2943a6(0x1f2);const _0x67cbb7=_0x100622;this[_0x2943a6(0x1c3)](_0x67cbb7[_0x2943a6(0x1fe)]),this[_0x2943a6(0x1d2)]();};[a85_0x22a140(0x1c3)]=_0x4966c2=>{const _0x3cbbe9=a85_0x22a140,_0x2c2435={'HACIJ':function(_0x2970d8,_0x413227){return _0x2970d8(_0x413227);},'QfZXE':function(_0x276671,_0xc9386f){return _0x276671===_0xc9386f;},'tePOe':_0x3cbbe9(0x1e7)};this[_0x3cbbe9(0x21a)]&&(_0x2c2435[_0x3cbbe9(0x219)](clearInterval,this[_0x3cbbe9(0x21a)]),this['pollEventBatchInterval']=null,_0x2c2435['QfZXE'](_0x4966c2,_0x2c2435[_0x3cbbe9(0x213)])&&(this[_0x3cbbe9(0x21e)]=![]));};[a85_0x22a140(0x22b)]=()=>{const _0x42b5ec=a85_0x22a140,_0x1b57de={};_0x1b57de[_0x42b5ec(0x202)]=function(_0x5494af,_0x548a81){return _0x5494af>=_0x548a81;};const _0x5685ea=_0x1b57de;return _0x5685ea[_0x42b5ec(0x202)](this[_0x42b5ec(0x1ff)]['length'],BATCH_SIZE);};async[a85_0x22a140(0x21d)](_0x70182=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x3db34b=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x53358d=a85_0x22a140,_0x568acd={'NhIFU':function(_0x58de2d,_0x1281d9){return _0x58de2d<=_0x1281d9;},'XbnkF':function(_0x48306a,_0x3a8620){return _0x48306a(_0x3a8620);},'mBOxu':function(_0x22ea1f,_0x4512ad){return _0x22ea1f-_0x4512ad;}};if(_0x568acd['NhIFU'](this[_0x53358d(0x204)],0x0)||_0x568acd[_0x53358d(0x218)](_0x70182,0x0))return;return await _0x568acd[_0x53358d(0x223)](sleep,_0x3db34b),this[_0x53358d(0x21d)](_0x568acd[_0x53358d(0x207)](_0x70182,_0x3db34b));}}module[a85_0x22a140(0x1d6)]=RequestQueueHandler;
1
+ const a85_0x32fbd2=a85_0x4d61;(function(_0x489620,_0x6ff87f){const _0x597339=a85_0x4d61,_0x15ed5b=_0x489620();while(!![]){try{const _0x43bc53=parseInt(_0x597339(0x235))/0x1*(parseInt(_0x597339(0x255))/0x2)+parseInt(_0x597339(0x200))/0x3*(parseInt(_0x597339(0x1f9))/0x4)+-parseInt(_0x597339(0x266))/0x5*(parseInt(_0x597339(0x243))/0x6)+-parseInt(_0x597339(0x229))/0x7+-parseInt(_0x597339(0x214))/0x8+-parseInt(_0x597339(0x24f))/0x9+-parseInt(_0x597339(0x257))/0xa*(-parseInt(_0x597339(0x245))/0xb);if(_0x43bc53===_0x6ff87f)break;else _0x15ed5b['push'](_0x15ed5b['shift']());}catch(_0x506c26){_0x15ed5b['push'](_0x15ed5b['shift']());}}}(a85_0x1c09,0x506fa));function a85_0x4d61(_0xe58b3e,_0x2ed148){const _0x1c098f=a85_0x1c09();return a85_0x4d61=function(_0x4d61b8,_0x8183a4){_0x4d61b8=_0x4d61b8-0x1f2;let _0x2546c6=_0x1c098f[_0x4d61b8];return _0x2546c6;},a85_0x4d61(_0xe58b3e,_0x2ed148);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a85_0x32fbd2(0x1fd)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a85_0x32fbd2(0x234)),{nestedKeyValue}=require(a85_0x32fbd2(0x21a)),util=require(a85_0x32fbd2(0x21c));class RequestQueueHandler{static [a85_0x32fbd2(0x220)];[a85_0x32fbd2(0x217)]=0x0;constructor(){const _0x3b5ac5=a85_0x32fbd2,_0x2f1b0b={};_0x2f1b0b['kPdbm']=_0x3b5ac5(0x1f2),_0x2f1b0b[_0x3b5ac5(0x252)]='LogCreated',_0x2f1b0b[_0x3b5ac5(0x249)]=_0x3b5ac5(0x232),_0x2f1b0b[_0x3b5ac5(0x227)]=_0x3b5ac5(0x268),_0x2f1b0b['iSSQm']=_0x3b5ac5(0x24e),_0x2f1b0b['fBqOE']=_0x3b5ac5(0x23c),_0x2f1b0b[_0x3b5ac5(0x258)]=_0x3b5ac5(0x248),_0x2f1b0b[_0x3b5ac5(0x267)]='HookRunStarted',_0x2f1b0b['XXtAf']=_0x3b5ac5(0x22b),_0x2f1b0b[_0x3b5ac5(0x203)]=_0x3b5ac5(0x24c),_0x2f1b0b[_0x3b5ac5(0x246)]=_0x3b5ac5(0x216);const _0x1f7583=_0x2f1b0b,_0x264478=_0x1f7583[_0x3b5ac5(0x25f)][_0x3b5ac5(0x201)]('|');let _0x146cc3=0x0;while(!![]){switch(_0x264478[_0x146cc3++]){case'0':this[_0x3b5ac5(0x204)]=[];continue;case'1':this['BATCH_EVENT_TYPES']=[_0x1f7583[_0x3b5ac5(0x252)],_0x1f7583['fWYGr'],_0x1f7583['nlGfb'],_0x1f7583[_0x3b5ac5(0x264)],_0x1f7583[_0x3b5ac5(0x21d)],_0x1f7583[_0x3b5ac5(0x258)],_0x1f7583[_0x3b5ac5(0x267)]];continue;case'2':this['started']=![];continue;case'3':this['uploadAttachmentUrl']=_0x1f7583[_0x3b5ac5(0x208)];continue;case'4':this[_0x3b5ac5(0x23b)]=null;continue;case'5':this[_0x3b5ac5(0x20a)]=_0x1f7583['RSilD'];continue;case'6':this[_0x3b5ac5(0x228)]=_0x1f7583[_0x3b5ac5(0x246)];continue;}break;}}static[a85_0x32fbd2(0x215)](){const _0x1a59a7=a85_0x32fbd2;return!RequestQueueHandler[_0x1a59a7(0x220)]&&(RequestQueueHandler['instance']=new RequestQueueHandler()),RequestQueueHandler[_0x1a59a7(0x220)];}[a85_0x32fbd2(0x23f)]=()=>{const _0x201b01=a85_0x32fbd2;!this[_0x201b01(0x262)]&&(this[_0x201b01(0x262)]=!![],this[_0x201b01(0x222)]());};[a85_0x32fbd2(0x22c)]=_0x51ff19=>{const _0x4fe233=a85_0x32fbd2,_0x1d500a={'xuwqz':function(_0x8d9ac2,_0x1dc2a1){return _0x8d9ac2===_0x1dc2a1;},'LEmUm':_0x4fe233(0x253),'jEGul':function(_0x5793a7,_0x3bb9d2){return _0x5793a7>_0x3bb9d2;},'DdUuR':'TEST_ATTACHMENT','fZQsM':function(_0x38f194,_0x45ec60){return _0x38f194!==_0x45ec60;},'nZsws':_0x4fe233(0x268),'FZIcM':function(_0x476a39,_0x425dde){return _0x476a39(_0x425dde);},'PWNWg':_0x4fe233(0x1f6)};if(this[_0x4fe233(0x237)][_0x4fe233(0x263)](_0x51ff19[_0x4fe233(0x261)])){if(_0x51ff19['logs']&&_0x51ff19[_0x4fe233(0x205)][0x0]&&_0x1d500a[_0x4fe233(0x1fc)](_0x51ff19[_0x4fe233(0x205)][0x0][_0x4fe233(0x1fa)],_0x1d500a[_0x4fe233(0x22f)])){const _0x11e45d={};return _0x11e45d['shouldProceed']=!![],_0x11e45d['proceedWithData']=[_0x51ff19],_0x11e45d[_0x4fe233(0x20b)]=this[_0x4fe233(0x228)],_0x11e45d;}if(_0x51ff19['logs']&&_0x1d500a['jEGul'](_0x51ff19[_0x4fe233(0x205)]['length'],0x0)&&_0x1d500a[_0x4fe233(0x1fc)](_0x51ff19['logs'][0x0][_0x4fe233(0x1fa)],_0x1d500a[_0x4fe233(0x25a)])&&_0x1d500a['fZQsM'](_0x51ff19[_0x4fe233(0x261)],_0x1d500a[_0x4fe233(0x224)])){const _0xa30900={};return _0xa30900[_0x4fe233(0x20e)]=!![],_0xa30900[_0x4fe233(0x212)]=[_0x51ff19],_0xa30900[_0x4fe233(0x20b)]=this[_0x4fe233(0x21b)],_0xa30900;}this['queue'][_0x4fe233(0x218)](_0x51ff19);let _0x40ccc5=null;const _0x3fc538=this[_0x4fe233(0x20e)]();_0x3fc538&&(_0x1d500a[_0x4fe233(0x242)](trace,_0x1d500a[_0x4fe233(0x211)]),_0x40ccc5=this['queue']['slice'](0x0,BATCH_SIZE),this[_0x4fe233(0x204)][_0x4fe233(0x254)](0x0,BATCH_SIZE),this[_0x4fe233(0x233)]());const _0x4a273c={};return _0x4a273c[_0x4fe233(0x20e)]=_0x3fc538,_0x4a273c[_0x4fe233(0x212)]=_0x40ccc5,_0x4a273c[_0x4fe233(0x20b)]=this['eventUrl'],_0x4a273c;}const _0x2301a5={};return _0x2301a5[_0x4fe233(0x20e)]=!![],_0x2301a5;};[a85_0x32fbd2(0x259)]=async()=>{const _0x4a8dbf=a85_0x32fbd2,_0x56928a={'udDtP':_0x4a8dbf(0x1f7),'CPGLu':function(_0x247278,_0x3172b0){return _0x247278>_0x3172b0;},'RaEPP':_0x4a8dbf(0x247),'pJsId':function(_0x2b7cfa,_0x1e4450){return _0x2b7cfa>_0x1e4450;},'kNyKm':function(_0x23373d,_0x1c92a0){return _0x23373d(_0x1c92a0);}};await this[_0x4a8dbf(0x1fb)](),this['removeEventBatchPolling'](_0x56928a[_0x4a8dbf(0x256)]);while(_0x56928a[_0x4a8dbf(0x1ff)](this[_0x4a8dbf(0x204)]['length'],0x0)){const _0x50f390=this[_0x4a8dbf(0x204)][_0x4a8dbf(0x1fe)](0x0,BATCH_SIZE);this[_0x4a8dbf(0x204)][_0x4a8dbf(0x254)](0x0,BATCH_SIZE),await this[_0x4a8dbf(0x209)](this['eventUrl'],_0x56928a[_0x4a8dbf(0x1f3)],_0x50f390);}_0x56928a[_0x4a8dbf(0x225)](this[_0x4a8dbf(0x217)],0x0)&&_0x56928a[_0x4a8dbf(0x20c)](debug,_0x4a8dbf(0x236)+this[_0x4a8dbf(0x217)]);};[a85_0x32fbd2(0x209)]=async(_0x585f3c,_0xa84479,_0x234bee)=>{const _0x5f12f3=a85_0x32fbd2,_0x266a28={'ZSdSq':function(_0x1f503b,_0x41941e){return _0x1f503b(_0x41941e);},'mKais':'utf8','MIeqh':function(_0x1d94c7){return _0x1d94c7();},'haulh':function(_0x27c7e0,_0x31d2f0,_0x33a87b,_0x35f85d,_0x4f9a50){return _0x27c7e0(_0x31d2f0,_0x33a87b,_0x35f85d,_0x4f9a50);},'mbRRs':_0x5f12f3(0x265),'uYhZj':function(_0x38ee39,_0x6d138c){return _0x38ee39(_0x6d138c);},'IGRyC':function(_0x18859e,_0x525f67){return _0x18859e-_0x525f67;},'drsrV':function(_0x2f1144,_0x324e2e){return _0x2f1144(_0x324e2e);},'HkQdv':function(_0x2d0cea,_0xb9b194){return _0x2d0cea-_0xb9b194;}};let _0x4c58e7='';try{_0x4c58e7=_0x234bee[_0x5f12f3(0x21e)](_0x1aa114=>'\x27'+_0x1aa114[_0x5f12f3(0x261)]+'\x27:'+(nestedKeyValue(_0x1aa114,['test_run',_0x5f12f3(0x244)])||nestedKeyValue(_0x1aa114,[_0x5f12f3(0x25b),_0x5f12f3(0x244)])))[_0x5f12f3(0x251)](','),_0x266a28['ZSdSq'](debug,'Processing\x20batch\x20events\x20for\x20'+_0xa84479+'.\x20Request\x20Size\x20-\x20'+Buffer[_0x5f12f3(0x22a)](util[_0x5f12f3(0x20d)]('%j',_0x234bee),_0x266a28['mKais'])+_0x5f12f3(0x223)+_0x4c58e7);}catch(_0x366d7b){_0x266a28[_0x5f12f3(0x20f)](debug,_0x5f12f3(0x240)+util[_0x5f12f3(0x20d)](_0x366d7b)+'}');}const _0x4d9960={'headers':_0x266a28[_0x5f12f3(0x25d)](getDefaultHeaders)};try{const _0x2a612d=await _0x266a28[_0x5f12f3(0x238)](nodeRequest,_0x266a28['mbRRs'],_0x585f3c,_0x234bee,_0x4d9960);if(_0x2a612d[_0x5f12f3(0x23e)][_0x5f12f3(0x219)]){const _0x4b80bb={};_0x4b80bb[_0x5f12f3(0x26a)]=_0x2a612d[_0x5f12f3(0x23e)][_0x5f12f3(0x219)];throw _0x4b80bb;}else _0x266a28[_0x5f12f3(0x206)](debug,_0xa84479+_0x5f12f3(0x22e)+_0x4c58e7+_0x5f12f3(0x239)+util['format']('%j',_0x2a612d[_0x5f12f3(0x23e)])),this[_0x5f12f3(0x217)]=Math[_0x5f12f3(0x24a)](0x0,_0x266a28[_0x5f12f3(0x21f)](this[_0x5f12f3(0x217)],_0x234bee[_0x5f12f3(0x1f5)]));}catch(_0x4f278e){_0x4f278e[_0x5f12f3(0x210)]?_0x266a28['uYhZj'](debug,'EXCEPTION\x20IN\x20'+_0xa84479+_0x5f12f3(0x25c)+_0x4f278e[_0x5f12f3(0x210)][_0x5f12f3(0x207)]+'\x20'+_0x4f278e[_0x5f12f3(0x210)]['statusText']+'\x20'+util[_0x5f12f3(0x20d)]('%j',_0x4f278e[_0x5f12f3(0x210)])):_0x266a28[_0x5f12f3(0x1f8)](debug,'EXCEPTION\x20IN\x20'+_0xa84479+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+(_0x4f278e['message']||_0x4f278e)),this['pendingUploads']=Math[_0x5f12f3(0x24a)](0x0,_0x266a28[_0x5f12f3(0x25e)](this[_0x5f12f3(0x217)],_0x234bee[_0x5f12f3(0x1f5)]));}};[a85_0x32fbd2(0x222)]=()=>{const _0x211cdc=a85_0x32fbd2,_0xf983a0={'xPTXr':function(_0x4fe793,_0x326c6a){return _0x4fe793>_0x326c6a;},'itTFq':function(_0x1b8dff,_0x1cf4e0){return _0x1b8dff(_0x1cf4e0);},'BgdPw':_0x211cdc(0x250),'yHkOR':function(_0x3a340f,_0x444843){return _0x3a340f(_0x444843);},'rKSDb':function(_0x4a197c,_0x27792b,_0x59a5b0){return _0x4a197c(_0x27792b,_0x59a5b0);}};this[_0x211cdc(0x23b)]=_0xf983a0[_0x211cdc(0x241)](setInterval,async()=>{const _0x79cdbe=_0x211cdc;if(_0xf983a0['xPTXr'](this[_0x79cdbe(0x204)][_0x79cdbe(0x1f5)],0x0)){_0xf983a0[_0x79cdbe(0x22d)](trace,_0x79cdbe(0x226)+this[_0x79cdbe(0x204)][_0x79cdbe(0x1f5)]);const _0x37b6cd=this[_0x79cdbe(0x204)][_0x79cdbe(0x1fe)](0x0,BATCH_SIZE);this[_0x79cdbe(0x204)]['splice'](0x0,BATCH_SIZE),await this[_0x79cdbe(0x209)](this[_0x79cdbe(0x20a)],_0xf983a0[_0x79cdbe(0x260)],_0x37b6cd),_0xf983a0[_0x79cdbe(0x230)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this['queue'][_0x79cdbe(0x1f5)]);}},BATCH_INTERVAL);};[a85_0x32fbd2(0x233)]=()=>{const _0x272d0e=a85_0x32fbd2,_0xa568be={};_0xa568be[_0x272d0e(0x24d)]='RESETTING';const _0x46750b=_0xa568be;this['removeEventBatchPolling'](_0x46750b[_0x272d0e(0x24d)]),this[_0x272d0e(0x222)]();};[a85_0x32fbd2(0x23a)]=_0x28d9c9=>{const _0x581f4b=a85_0x32fbd2,_0x4f2b1f={'yFgdG':function(_0x5c9c68,_0x4d6f62){return _0x5c9c68(_0x4d6f62);},'nrDso':function(_0x15528f,_0x1e89c8){return _0x15528f===_0x1e89c8;},'aJBpx':_0x581f4b(0x1f7)};this[_0x581f4b(0x23b)]&&(_0x4f2b1f[_0x581f4b(0x213)](clearInterval,this['pollEventBatchInterval']),this[_0x581f4b(0x23b)]=null,_0x4f2b1f[_0x581f4b(0x202)](_0x28d9c9,_0x4f2b1f[_0x581f4b(0x221)])&&(this[_0x581f4b(0x262)]=![]));};[a85_0x32fbd2(0x20e)]=()=>{const _0x52fddc=a85_0x32fbd2,_0x25e5ac={};_0x25e5ac[_0x52fddc(0x231)]=function(_0xa44601,_0x5d8357){return _0xa44601>=_0x5d8357;};const _0x4a0e47=_0x25e5ac;return _0x4a0e47[_0x52fddc(0x231)](this[_0x52fddc(0x204)]['length'],BATCH_SIZE);};async[a85_0x32fbd2(0x1fb)](_0x53ae1b=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x138283=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0xfcad9a=a85_0x32fbd2,_0x2421a6={'jhiPK':function(_0x1a9106,_0x3881cd){return _0x1a9106<=_0x3881cd;},'TRQuJ':function(_0x5e4d6e,_0x408d51){return _0x5e4d6e<=_0x408d51;},'zGcKT':function(_0x124371,_0x87f02c){return _0x124371(_0x87f02c);},'mfJEP':function(_0x1f9271,_0xbd0a21){return _0x1f9271-_0xbd0a21;}};if(_0x2421a6[_0xfcad9a(0x1f4)](this[_0xfcad9a(0x217)],0x0)||_0x2421a6['TRQuJ'](_0x53ae1b,0x0))return;return await _0x2421a6[_0xfcad9a(0x23d)](sleep,_0x138283),this[_0xfcad9a(0x1fb)](_0x2421a6[_0xfcad9a(0x24b)](_0x53ae1b,_0x138283));}}function a85_0x1c09(){const _0x15c23c=['haulh','\x20--\x20','removeEventBatchPolling','pollEventBatchInterval','HookRunFinished','zGcKT','data','start','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','rKSDb','FZIcM','22674TmsBjU','uuid','209DgVDUK','gIlgm','Shutdown-Queue','TestRunStarted','fWYGr','max','mfJEP','api/v1/batch','Fvrgt','TestRunSkipped','3714840feoNYl','Interval-Queue','join','BVjdX','TEST_SCREENSHOT','splice','12924OBsgLr','udDtP','539870yhTyLX','ZyOcd','shutdown','DdUuR','hook_run','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','MIeqh','HkQdv','kPdbm','BgdPw','event_type','started','includes','iSSQm','POST','355DvucVt','jsuDb','TestRunFinished','exports','message','0|2|5|6|3|1|4','RaEPP','jhiPK','length','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','REMOVING','drsrV','777484NZytUy','kind','uploadPending','xuwqz','./constants','slice','CPGLu','3FpbrtD','split','nrDso','RSilD','queue','logs','uYhZj','status','XXtAf','batchAndPostEvents','eventUrl','proceedWithUrl','kNyKm','format','shouldProceed','ZSdSq','response','PWNWg','proceedWithData','yFgdG','2692296jolxGP','getInstance','api/v1/screenshots','pendingUploads','push','error','../helper','uploadAttachmentUrl','util','fBqOE','map','IGRyC','instance','aJBpx','startEventBatchPolling','\x20bytes.\x20Events\x20are\x20','nZsws','pJsId','Processing\x20events.\x20Queue\x20Length\x20-\x20','nlGfb','screenshotEventUrl','1734936itESmJ','byteLength','upload-attachments','add','itTFq','\x20event\x20successful\x20for\x20events\x20','LEmUm','yHkOR','QsRfl','CBTSessionCreated','resetEventBatchPolling','./utils','58HNOhPB','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','BATCH_EVENT_TYPES'];a85_0x1c09=function(){return _0x15c23c;};return a85_0x1c09();}module[a85_0x32fbd2(0x269)]=RequestQueueHandler;
@@ -1 +1 @@
1
- const a86_0x5ad2bb=a86_0x679f;(function(_0xc9eb59,_0x371052){const _0x3751d3=a86_0x679f,_0x537591=_0xc9eb59();while(!![]){try{const _0x4482e6=parseInt(_0x3751d3(0xc8))/0x1+parseInt(_0x3751d3(0x106))/0x2*(parseInt(_0x3751d3(0x118))/0x3)+-parseInt(_0x3751d3(0x115))/0x4+-parseInt(_0x3751d3(0xde))/0x5*(parseInt(_0x3751d3(0x129))/0x6)+-parseInt(_0x3751d3(0xbc))/0x7+parseInt(_0x3751d3(0x120))/0x8*(parseInt(_0x3751d3(0x100))/0x9)+parseInt(_0x3751d3(0xf7))/0xa;if(_0x4482e6===_0x371052)break;else _0x537591['push'](_0x537591['shift']());}catch(_0x2011bb){_0x537591['push'](_0x537591['shift']());}}}(a86_0x44fa,0x5a564));const bsSetupHelper=require(a86_0x5ad2bb(0x8d)),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a86_0x5ad2bb(0xe4)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a86_0x5ad2bb(0x132)),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a86_0x5ad2bb(0xfd))[a86_0x5ad2bb(0x12a)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x5ad2bb(0x127)),util=require(a86_0x5ad2bb(0xbe));class SessionHandler{static [a86_0x5ad2bb(0xab)]=RequestQueueHandler['getInstance']();static async[a86_0x5ad2bb(0xad)](_0x54145f,_0x3a6d31){const _0x18ddc8=a86_0x5ad2bb,_0x5acd27={'BuzWh':function(_0x70fc37,_0x543683){return _0x70fc37||_0x543683;},'ZuEFQ':function(_0x2b511d,_0x392acf){return _0x2b511d||_0x392acf;},'ZdiCT':function(_0x18b310,_0x32ec72){return _0x18b310===_0x32ec72;},'BCbEM':function(_0x1cf402,_0x4ab7a6){return _0x1cf402(_0x4ab7a6);},'Jktgz':_0x18ddc8(0x9b),'GmIvn':_0x18ddc8(0x8b),'gZkCl':'json','RMnjW':function(_0x17d38b,_0x30e7e8){return _0x17d38b(_0x30e7e8);},'XYXIG':function(_0xc1f9cf,_0x59290a,_0x5cc372,_0x3ac46f,_0x4b29af){return _0xc1f9cf(_0x59290a,_0x5cc372,_0x3ac46f,_0x4b29af);},'HBYcP':_0x18ddc8(0x11f),'oihXf':_0x18ddc8(0x125),'VcEEv':function(_0x378abb,_0x61c999){return _0x378abb(_0x61c999);},'AgBmR':_0x18ddc8(0x11a),'KVEgD':function(_0x3fa21e){return _0x3fa21e();},'BQRmx':'true','MTuem':'null','ApLud':function(_0x5727fd,_0x5c30bc){return _0x5727fd(_0x5c30bc);},'eLZWB':'ERROR_INVALID_CREDENTIALS','SjDTK':_0x18ddc8(0xb3),'FMHuh':_0x18ddc8(0xdf)},_0x470522=bsSetupHelper[_0x18ddc8(0xc3)](_0x54145f),_0x1db020=bsSetupHelper[_0x18ddc8(0x9c)](_0x54145f),_0x5d36f7=_0x5acd27['BuzWh'](_0x470522,'')+':'+_0x5acd27[_0x18ddc8(0xc4)](_0x1db020,'');if(_0x5acd27[_0x18ddc8(0xa6)](_0x5d36f7,':'))return _0x5acd27[_0x18ddc8(0xfa)](debug,_0x5acd27[_0x18ddc8(0xf8)]),process[_0x18ddc8(0x10a)]['BS_TESTOPS_BUILD_COMPLETED']=_0x5acd27[_0x18ddc8(0x107)],[null,null];let _0x4ba922=![],_0x12ee32=![];if(_0x54145f[_0x18ddc8(0x103)]&&_0x54145f[_0x18ddc8(0xd5)])_0x12ee32=!![];else _0x54145f[_0x18ddc8(0x103)]&&(_0x4ba922=!![]);try{const _0x8ff9d0={'format':_0x5acd27[_0x18ddc8(0xe0)],'project_name':_0x54145f[_0x18ddc8(0xe7)]||'','name':_0x54145f[_0x18ddc8(0xb9)]||path[_0x18ddc8(0x95)](path[_0x18ddc8(0xa2)](process[_0x18ddc8(0xf6)]())),'build_identifier':_0x54145f['buildIdentifier'],'description':_0x54145f['buildDescription']||'','start_time':new Date()[_0x18ddc8(0xa8)](),'tags':_0x5acd27[_0x18ddc8(0xdd)](getCustomTags,_0x54145f),'host_info':bsSetupHelper[_0x18ddc8(0xca)](),'ci_info':bsSetupHelper[_0x18ddc8(0xc6)](),'build_run_identifier':process['env'][_0x18ddc8(0x128)],'failed_tests_rerun':process[_0x18ddc8(0x10a)]['BROWSERSTACK_RERUN']||![],'version_control':await bsSetupHelper[_0x18ddc8(0xe9)](),'observability_version':{'frameworkName':_0x3a6d31[_0x18ddc8(0xd1)],'frameworkVersion':_0x3a6d31[_0x18ddc8(0xe6)],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x5acd27['RMnjW'](getProductMap,_0x54145f)},_0x2e7fa3={};_0x2e7fa3[_0x18ddc8(0xd4)]=_0x470522,_0x2e7fa3['password']=_0x1db020;const _0x3429f5={'auth':_0x2e7fa3,'headers':_0x5acd27['RMnjW'](getDefaultHeaders,![])},_0x310f96=await _0x5acd27[_0x18ddc8(0xa0)](nodeRequest,_0x5acd27[_0x18ddc8(0xd3)],_0x5acd27[_0x18ddc8(0x130)],_0x8ff9d0,_0x3429f5);_0x5acd27['VcEEv'](debug,_0x5acd27['AgBmR']);const _0x45e647=_0x310f96[_0x18ddc8(0xa5)];_0x45e647[_0x18ddc8(0xaf)]&&(process[_0x18ddc8(0x10a)]['BROWSERSTACK_TESTHUB_UUID']=_0x45e647[_0x18ddc8(0xaf)]);if(_0x5acd27[_0x18ddc8(0xe5)](isTestObservabilitySession)){process['env'][_0x18ddc8(0xd0)]=_0x5acd27[_0x18ddc8(0x113)];if(_0x45e647[_0x18ddc8(0x121)]){process[_0x18ddc8(0x10a)][_0x18ddc8(0xec)]=_0x45e647[_0x18ddc8(0x121)];const _0x1ab835={};_0x1ab835['username']=_0x470522,_0x1ab835[_0x18ddc8(0x104)]=_0x1db020,process[_0x18ddc8(0x10a)][_0x18ddc8(0xeb)]=JSON[_0x18ddc8(0xb5)](_0x1ab835);}_0x45e647[_0x18ddc8(0xaf)]&&(process['env'][_0x18ddc8(0x90)]=_0x45e647[_0x18ddc8(0xaf)]),_0x45e647['allow_screenshots']&&(process[_0x18ddc8(0x10a)][_0x18ddc8(0x101)]=_0x45e647[_0x18ddc8(0x122)][_0x18ddc8(0x126)]());}return[_0x310f96[_0x18ddc8(0xa5)]['jwt'],_0x310f96[_0x18ddc8(0xa5)][_0x18ddc8(0xaf)],_0x310f96[_0x18ddc8(0xa5)][_0x18ddc8(0x122)]];}catch(_0x5eca11){process['env']['BROWSERSTACK_TESTHUB_UUID']=_0x5acd27['MTuem'],process[_0x18ddc8(0x10a)][_0x18ddc8(0xd0)]=_0x5acd27[_0x18ddc8(0x107)],process[_0x18ddc8(0x10a)][_0x18ddc8(0xec)]=_0x5acd27[_0x18ddc8(0xaa)],process[_0x18ddc8(0x10a)]['BS_TESTOPS_BUILD_HASHED_ID']=_0x5acd27[_0x18ddc8(0xaa)],process[_0x18ddc8(0x10a)][_0x18ddc8(0x101)]=_0x5acd27[_0x18ddc8(0xaa)];_0x5eca11[_0x18ddc8(0x91)]?_0x5acd27['VcEEv'](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0x5eca11[_0x18ddc8(0x91)][_0x18ddc8(0xff)]+'\x20'+_0x5eca11[_0x18ddc8(0x91)]['statusText']+'\x20'+JSON[_0x18ddc8(0xb5)](_0x5eca11[_0x18ddc8(0x91)]['data'])):_0x5acd27['ApLud'](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+(_0x5eca11[_0x18ddc8(0x98)]||_0x5eca11));if(_0x5eca11&&_0x5eca11[_0x18ddc8(0x98)]){const _0xb6dc5=_0x5eca11[_0x18ddc8(0x98)];switch(_0x5eca11[_0x18ddc8(0x94)]){case _0x5acd27[_0x18ddc8(0xd2)]:logger[_0x18ddc8(0x9f)](_0xb6dc5);break;case _0x5acd27[_0x18ddc8(0x12f)]:logger[_0x18ddc8(0x9a)](_0xb6dc5);break;case _0x5acd27[_0x18ddc8(0x97)]:logger[_0x18ddc8(0x9f)](_0xb6dc5);break;default:logger[_0x18ddc8(0x9f)](_0xb6dc5);}}else console['info'](_0x18ddc8(0x96)+_0x5eca11);return[null,null,null];}}static async[a86_0x5ad2bb(0x123)](){const _0x430173=a86_0x5ad2bb,_0x545509={'cuXSn':_0x430173(0xbf),'AMaVo':_0x430173(0x8b),'wNFbh':function(_0x301f9e,_0x2df5ee){return _0x301f9e(_0x2df5ee);}},_0x15a5e6=process[_0x430173(0x10a)][_0x430173(0xd0)];if([_0x545509['cuXSn'],_0x545509[_0x430173(0x12e)]][_0x430173(0x88)](_0x15a5e6))return;while([_0x545509[_0x430173(0xef)],_0x545509[_0x430173(0x12e)]][_0x430173(0x88)](_0x15a5e6)){await _0x545509[_0x430173(0xf0)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static['getLogTag'](_0x18c211){const _0x2b830b=a86_0x5ad2bb,_0x2da80f={};_0x2da80f[_0x2b830b(0xd9)]='Test_Start_Upload',_0x2da80f[_0x2b830b(0xcf)]=_0x2b830b(0xa4),_0x2da80f[_0x2b830b(0xda)]=_0x2b830b(0xd6),_0x2da80f[_0x2b830b(0x9e)]=_0x2b830b(0x11d),_0x2da80f[_0x2b830b(0x116)]=_0x2b830b(0xe1),_0x2da80f[_0x2b830b(0x110)]='Hook_End_Upload',_0x2da80f['gGAgB']=_0x2b830b(0xc7);const _0x162df9=_0x2da80f,_0x3a14c4={};return _0x3a14c4['TestRunStarted']=_0x162df9['naJYK'],_0x3a14c4[_0x2b830b(0x11c)]=_0x162df9[_0x2b830b(0xcf)],_0x3a14c4['TestRunSkipped']=_0x162df9[_0x2b830b(0xda)],_0x3a14c4[_0x2b830b(0x99)]=_0x162df9[_0x2b830b(0x9e)],_0x3a14c4[_0x2b830b(0xf4)]=_0x162df9[_0x2b830b(0x116)],_0x3a14c4['HookRunFinished']=_0x162df9[_0x2b830b(0x110)],_0x3a14c4[_0x2b830b(0xe8)]=_0x162df9['gGAgB'],_0x3a14c4[_0x18c211[_0x2b830b(0x87)]];}static async[a86_0x5ad2bb(0xba)](_0x10ff8b,_0x122180=0x0,_0x1de5d9=null){const _0x278df8=a86_0x5ad2bb,_0x5bbe54={'VXwzS':function(_0x41ee11,_0xa78868){return _0x41ee11===_0xa78868;},'GbcAp':'sendTraceZip','KZiqf':function(_0x30d19c,_0x19edc1){return _0x30d19c!==_0x19edc1;},'ldJOK':_0x278df8(0x8a),'mTyst':'true','Bkzgv':function(_0x5beef7,_0x51142f){return _0x5beef7===_0x51142f;},'OZcHQ':function(_0x3d89b4,_0x13cd4a,_0x1fee19,_0x305b2c,_0x339547){return _0x3d89b4(_0x13cd4a,_0x1fee19,_0x305b2c,_0x339547);},'uGtwd':_0x278df8(0x11f),'CFDkI':function(_0xbb91bd,_0x397998){return _0xbb91bd(_0x397998);},'angfd':_0x278df8(0xe3),'afXNq':function(_0x113675,_0x9d2ba5){return _0x113675-_0x9d2ba5;},'HkiOa':_0x278df8(0xea),'dnzJA':'success','Dypty':function(_0x596cb4,_0x3b2d08){return _0x596cb4(_0x3b2d08);},'piHGD':function(_0x3aa021,_0x574c71){return _0x3aa021===_0x574c71;},'elMrj':_0x278df8(0x9f)};_0x5bbe54[_0x278df8(0xa3)](_0x1de5d9,_0x5bbe54[_0x278df8(0xcb)])&&logger[_0x278df8(0xf3)](_0x278df8(0xa1)+_0x10ff8b[_0x278df8(0xc9)][0x0][_0x278df8(0xdc)]);const _0xf9f931=await this[_0x278df8(0x112)](_0x10ff8b);let _0xf5cf30=_0x10ff8b,_0x48863a=EVENT_ENDPOINT;_0x5bbe54[_0x278df8(0x109)](_0x1de5d9,_0x5bbe54[_0x278df8(0xcb)])&&this[_0x278df8(0xab)][_0x278df8(0x111)]();const {shouldProceed:_0x4b672b,proceedWithData:_0x4475f2,proceedWithUrl:_0x4b1be4}=this[_0x278df8(0xab)][_0x278df8(0x9d)](_0x10ff8b);if(!_0x4b672b)return;else _0x4475f2&&(_0xf5cf30=_0x4475f2,_0x48863a=_0x4b1be4);const _0x1824a0={};_0x1824a0[_0x278df8(0xb6)]=_0x278df8(0x12b)+process[_0x278df8(0x10a)]['BROWSERSTACK_TESTHUB_JWT'],_0x1824a0[_0x278df8(0x105)]=_0x5bbe54['ldJOK'],_0x1824a0[_0x278df8(0xa9)]=_0x5bbe54['mTyst'];const _0x339024={};_0x339024['headers']=_0x1824a0;const _0x3ae4f8=_0x339024;let _0x31e434;try{_0x5bbe54[_0x278df8(0xb7)](_0x1de5d9,_0x5bbe54['GbcAp'])?(logger[_0x278df8(0xf3)](_0x278df8(0x12d)+_0x10ff8b?.['logs'][0x0]?.[_0x278df8(0xdc)]),_0x31e434=await _0x5bbe54[_0x278df8(0xb2)](asyncAwaitNodeReq,_0x5bbe54[_0x278df8(0xcc)],_0x48863a,_0xf5cf30,_0x3ae4f8),logger[_0x278df8(0xf3)](_0x278df8(0x10d)+_0x10ff8b?.[_0x278df8(0xc9)][0x0]?.['test_run_uuid'])):_0x31e434=await _0x5bbe54['OZcHQ'](nodeRequest,_0x5bbe54[_0x278df8(0xcc)],_0x48863a,_0xf5cf30,_0x3ae4f8);if(_0x31e434[_0x278df8(0xa5)]['error']){const _0x4bd314={};_0x4bd314[_0x278df8(0x98)]=_0x31e434[_0x278df8(0xa5)][_0x278df8(0x9f)];throw _0x4bd314;}else{_0x5bbe54[_0x278df8(0x133)](debug,(_0x5bbe54['KZiqf'](_0x48863a,this[_0x278df8(0xab)][_0x278df8(0x12c)])?_0xf9f931:_0x5bbe54['angfd'])+'['+_0x122180+_0x278df8(0xae)),this[_0x278df8(0xab)][_0x278df8(0xb4)]=Math['max'](0x0,_0x5bbe54[_0x278df8(0xc1)](this[_0x278df8(0xab)][_0x278df8(0xb4)],_0x5bbe54[_0x278df8(0xb7)](_0x48863a,_0x5bbe54[_0x278df8(0x114)])?0x1:_0xf5cf30['length']));const _0x1ff90d={};return _0x1ff90d[_0x278df8(0xff)]=_0x5bbe54[_0x278df8(0x10b)],_0x1ff90d[_0x278df8(0x98)]='',_0x1ff90d;}}catch(_0x559264){_0x559264[_0x278df8(0x91)]?_0x5bbe54[_0x278df8(0xee)](debug,_0x278df8(0xf2)+(_0x5bbe54[_0x278df8(0x109)](_0x48863a,this['requestQueueHandler'][_0x278df8(0x12c)])?_0xf9f931:_0x5bbe54[_0x278df8(0x131)])+_0x278df8(0xbb)+_0x559264[_0x278df8(0x91)]['status']+'\x20'+_0x559264[_0x278df8(0x91)]['statusText']+'\x20'+util['format'](_0x559264[_0x278df8(0x91)]['data'])):_0x5bbe54['CFDkI'](debug,_0x278df8(0xf2)+(_0x5bbe54[_0x278df8(0x109)](_0x48863a,this[_0x278df8(0xab)][_0x278df8(0x12c)])?_0xf9f931:_0x5bbe54[_0x278df8(0x131)])+_0x278df8(0xbb)+util[_0x278df8(0xb1)](_0x559264));this['requestQueueHandler'][_0x278df8(0xb4)]=Math[_0x278df8(0xb8)](0x0,_0x5bbe54['afXNq'](this[_0x278df8(0xab)][_0x278df8(0xb4)],_0x5bbe54['piHGD'](_0x48863a,_0x5bbe54[_0x278df8(0x114)])?0x1:_0xf5cf30[_0x278df8(0xc2)]));const _0x2ad674={};return _0x2ad674[_0x278df8(0xff)]=_0x5bbe54[_0x278df8(0x119)],_0x2ad674[_0x278df8(0x98)]=_0x559264[_0x278df8(0x98)]||(_0x559264[_0x278df8(0x91)]?_0x559264[_0x278df8(0x91)][_0x278df8(0xff)]+':'+_0x559264['response']['statusText']:_0x559264),_0x2ad674;}}static async[a86_0x5ad2bb(0x92)](_0x1d9cff,_0x301eb1=0x0){const _0x3c6b67=a86_0x5ad2bb,_0x16c137={'iHPoV':function(_0x5c68ba,_0x14afe8){return _0x5c68ba+_0x14afe8;},'kDzvV':function(_0x517c83,_0x1274b4){return _0x517c83(_0x1274b4);},'seTRj':_0x3c6b67(0xed),'CLpDX':_0x3c6b67(0x10e),'aXGjl':_0x3c6b67(0x8f),'sAbBo':function(_0x5bfe3d,_0x27a76c,_0x16e9f8){return _0x5bfe3d(_0x27a76c,_0x16e9f8);},'DfUzp':'uploadEventData','CvPhd':function(_0x39dcd,_0xd5999f){return _0x39dcd===_0xd5999f;},'ajfqv':function(_0x4d1709,_0x3a22f3){return _0x4d1709!==_0x3a22f3;},'PIvAj':_0x3c6b67(0xfb),'eXWuD':_0x3c6b67(0xbf),'niwdM':function(_0x428971){return _0x428971();},'Sdrdz':function(_0x1c5985,_0x256ba6){return _0x1c5985(_0x256ba6);},'TvxDh':function(_0x12e436,_0x3177a4){return _0x12e436-_0x3177a4;},'Qglxq':_0x3c6b67(0x9f),'gnDpV':_0x3c6b67(0xac),'RwUWp':function(_0x1c97a8,_0x3cef5e){return _0x1c97a8>=_0x3cef5e;},'kjwAj':function(_0x577948,_0x4ae8ba){return _0x577948(_0x4ae8ba);},'HVftN':function(_0x3dee69,_0x19ee55){return _0x3dee69-_0x19ee55;},'YLheT':'Retry\x20runs\x20exceeded','wYLwC':_0x3c6b67(0x8b)},_0x32b947=this[_0x3c6b67(0x112)](_0x1d9cff);_0x16c137[_0x3c6b67(0xc5)](trace,_0x3c6b67(0xf5)+_0x1d9cff['event_type']+'\x27\x20'+(bsSetupHelper[_0x3c6b67(0x10f)](_0x1d9cff,[_0x16c137[_0x3c6b67(0x89)],_0x16c137[_0x3c6b67(0xd7)]])||bsSetupHelper['nestedKeyValue'](_0x1d9cff,[_0x16c137[_0x3c6b67(0x108)],_0x16c137[_0x3c6b67(0xd7)]])));if(!_0x16c137[_0x3c6b67(0x124)](shouldProcessEventForTesthub,_0x1d9cff[_0x3c6b67(0x87)],_0x16c137[_0x3c6b67(0x10c)]))return;_0x16c137[_0x3c6b67(0x117)](_0x301eb1,0x0)&&process[_0x3c6b67(0x10a)][_0x3c6b67(0xdb)]&&_0x16c137[_0x3c6b67(0xcd)](process['env'][_0x3c6b67(0xdb)],_0x16c137[_0x3c6b67(0x11b)])&&(this[_0x3c6b67(0xab)][_0x3c6b67(0xb4)]+=0x1);if(_0x16c137[_0x3c6b67(0x117)](process[_0x3c6b67(0x10a)][_0x3c6b67(0xd0)],_0x16c137[_0x3c6b67(0xfc)])||process['env'][_0x3c6b67(0x102)]||_0x16c137[_0x3c6b67(0xf9)](isPercyBuild)){if(_0x16c137[_0x3c6b67(0x117)](process[_0x3c6b67(0x10a)]['BROWSERSTACK_TESTHUB_JWT'],_0x16c137['PIvAj'])){_0x16c137[_0x3c6b67(0xe2)](debug,_0x3c6b67(0xf2)+_0x32b947+_0x3c6b67(0xbd)),this['requestQueueHandler'][_0x3c6b67(0xb4)]=Math['max'](0x0,_0x16c137[_0x3c6b67(0x93)](this[_0x3c6b67(0xab)][_0x3c6b67(0xb4)],0x1));const _0x312ea7={};return _0x312ea7[_0x3c6b67(0xff)]=_0x16c137[_0x3c6b67(0xf1)],_0x312ea7[_0x3c6b67(0x98)]=_0x16c137['gnDpV'],_0x312ea7;}return await this[_0x3c6b67(0xba)](_0x1d9cff,_0x301eb1);}else{if(_0x16c137[_0x3c6b67(0xd8)](_0x301eb1,0x5)){_0x16c137[_0x3c6b67(0x8c)](debug,'EXCEPTION\x20IN\x20'+_0x32b947+_0x3c6b67(0x8e)+_0x32b947+_0x3c6b67(0xfe));_0x16c137['ajfqv'](process[_0x3c6b67(0x10a)][_0x3c6b67(0xdb)],_0x16c137[_0x3c6b67(0x11b)])&&(this[_0x3c6b67(0xab)][_0x3c6b67(0xb4)]=Math[_0x3c6b67(0xb8)](0x0,_0x16c137[_0x3c6b67(0xb0)](this[_0x3c6b67(0xab)]['pendingUploads'],0x1)));const _0x3ca7dd={};return _0x3ca7dd[_0x3c6b67(0xff)]=_0x16c137[_0x3c6b67(0xf1)],_0x3ca7dd[_0x3c6b67(0x98)]=_0x16c137[_0x3c6b67(0xce)],_0x3ca7dd;}else _0x16c137[_0x3c6b67(0xcd)](process[_0x3c6b67(0x10a)][_0x3c6b67(0xd0)],_0x16c137[_0x3c6b67(0xc0)])&&_0x16c137[_0x3c6b67(0x124)](setTimeout,()=>{const _0x450879=_0x3c6b67;this[_0x450879(0x92)](_0x1d9cff,_0x16c137[_0x450879(0xa7)](_0x301eb1,0x1));},0x3e8);}}}module[a86_0x5ad2bb(0x11e)]=SessionHandler;function a86_0x679f(_0x508f65,_0x1c03ca){const _0x44fa4c=a86_0x44fa();return a86_0x679f=function(_0x679f79,_0x104bfe){_0x679f79=_0x679f79-0x87;let _0x341062=_0x44fa4c[_0x679f79];return _0x341062;},a86_0x679f(_0x508f65,_0x1c03ca);}function a86_0x44fa(){const _0x362ce=['getHostInfo','GbcAp','uGtwd','ajfqv','YLheT','VXrKV','BS_TESTOPS_BUILD_COMPLETED','frameworkName','eLZWB','HBYcP','username','app','Test_Skipped_Upload','CLpDX','RwUWp','naJYK','YxTBB','BROWSERSTACK_TESTHUB_JWT','test_run_uuid','RMnjW','27250oGMwun','ERROR_SDK_DEPRECATED','gZkCl','Hook_Start_Upload','Sdrdz','Batch-Queue','./utils','KVEgD','frameworkVersion','projectName','CBTSessionCreated','getGitMetaData','api/v1/event','CREDENTIALS_FOR_CRASH_REPORTING','BS_TESTOPS_JWT','test_run','Dypty','cuXSn','wNFbh','Qglxq','EXCEPTION\x20IN\x20','debug','HookRunStarted','Processing\x20event\x20-\x20\x27','cwd','11259040XZoJVT','Jktgz','niwdM','BCbEM','null','eXWuD','../logger','\x20retry\x20runs\x20exceeded','status','481284pPBqCc','BS_TESTOPS_ALLOW_SCREENSHOTS','BS_A11Y_JWT','browserstackAutomation','password','Content-Type','12442OWinfy','GmIvn','aXGjl','KZiqf','env','dnzJA','DfUzp','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','uuid','nestedKeyValue','kczoo','start','getLogTag','BQRmx','HkiOa','1145436SBEMUw','FZdQc','CvPhd','222LEeKRs','elMrj','Build\x20creation\x20successful!','PIvAj','TestRunFinished','Log_Upload','exports','POST','16kwGlOp','jwt','allow_screenshots','waitForBuildStatus','sAbBo','api/v1/builds','toString','../../helpers/testhub/utils','BROWSERSTACK_BUILD_RUN_IDENTIFIER','612VIgJba','winstonLogger','Bearer\x20','eventUrl','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','AMaVo','SjDTK','oihXf','angfd','./constants','CFDkI','event_type','includes','seTRj','application/json','false','kjwAj','../helper','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','hook_run','BS_TESTOPS_BUILD_HASHED_ID','response','uploadEventData','TvxDh','errorType','basename','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','FMHuh','message','LogCreated','info','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','getAccessKey','add','ONVCo','error','XYXIG','Sending\x20trace\x20zip\x20for\x20test:\x20','resolve','VXwzS','Test_End_Upload','data','ZdiCT','iHPoV','toISOString','X-BSTACK-TESTOPS','MTuem','requestQueueHandler','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','launch',']\x20event\x20successful!','build_hashed_id','HVftN','format','OZcHQ','ERROR_ACCESS_DENIED','pendingUploads','stringify','Authorization','Bkzgv','max','buildName','sendEventData','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','4585182WpZcnm','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','util','true','wYLwC','afXNq','length','getUserName','ZuEFQ','kDzvV','getCiInfo','CBT_Upload','174095uAJlJt','logs'];a86_0x44fa=function(){return _0x362ce;};return a86_0x44fa();}
1
+ const a86_0x332420=a86_0x5a57;(function(_0x240e18,_0x31becd){const _0x1b2d0b=a86_0x5a57,_0x2d5aeb=_0x240e18();while(!![]){try{const _0x1e3046=parseInt(_0x1b2d0b(0xea))/0x1+parseInt(_0x1b2d0b(0x106))/0x2*(-parseInt(_0x1b2d0b(0x12f))/0x3)+-parseInt(_0x1b2d0b(0xf9))/0x4*(-parseInt(_0x1b2d0b(0x118))/0x5)+parseInt(_0x1b2d0b(0x13b))/0x6*(parseInt(_0x1b2d0b(0x136))/0x7)+parseInt(_0x1b2d0b(0x103))/0x8+-parseInt(_0x1b2d0b(0x102))/0x9*(parseInt(_0x1b2d0b(0xe4))/0xa)+-parseInt(_0x1b2d0b(0xd4))/0xb;if(_0x1e3046===_0x31becd)break;else _0x2d5aeb['push'](_0x2d5aeb['shift']());}catch(_0x532a31){_0x2d5aeb['push'](_0x2d5aeb['shift']());}}}(a86_0x3253,0xd2c9b));const bsSetupHelper=require(a86_0x332420(0x11f)),path=require(a86_0x332420(0xc5)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a86_0x332420(0xf3)),logger=require(a86_0x332420(0x141))[a86_0x332420(0xe2)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x332420(0x143)),util=require(a86_0x332420(0xf4));function a86_0x5a57(_0x27b2f4,_0x3262f8){const _0x325306=a86_0x3253();return a86_0x5a57=function(_0x5a5796,_0x11c555){_0x5a5796=_0x5a5796-0xa1;let _0x34ca84=_0x325306[_0x5a5796];return _0x34ca84;},a86_0x5a57(_0x27b2f4,_0x3262f8);}class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a86_0x332420(0x132)]();static async[a86_0x332420(0x113)](_0x507bc7,_0x16f6ee){const _0x33d37e=a86_0x332420,_0x36e225={'ZpYqw':function(_0x467444,_0x3ded9b){return _0x467444||_0x3ded9b;},'rwbiH':function(_0x458b59,_0x4825de){return _0x458b59||_0x4825de;},'bJirP':function(_0x59f77c,_0xc14eea){return _0x59f77c===_0xc14eea;},'szgQz':function(_0x79e8b9,_0x4111bc){return _0x79e8b9(_0x4111bc);},'TeVJM':_0x33d37e(0xd5),'ExZNY':_0x33d37e(0xbf),'vknGE':_0x33d37e(0x130),'uLCSC':function(_0x53b8e6,_0x1a7bdd){return _0x53b8e6(_0x1a7bdd);},'MRaJI':function(_0x3a2265,_0x36c37c,_0x564016,_0x75dde1,_0x208c07){return _0x3a2265(_0x36c37c,_0x564016,_0x75dde1,_0x208c07);},'Mxmxh':_0x33d37e(0xd9),'nviNN':_0x33d37e(0xc0),'wGSyy':_0x33d37e(0xa7),'rUjQK':function(_0x965c2e){return _0x965c2e();},'fdEsZ':_0x33d37e(0xbd),'FjddQ':_0x33d37e(0xa1),'YumuM':function(_0x3f92dc,_0x4b0986){return _0x3f92dc(_0x4b0986);},'EwHXv':_0x33d37e(0xab),'qmcgX':'ERROR_ACCESS_DENIED','uAXSn':_0x33d37e(0x11b)},_0x28dc7a=bsSetupHelper[_0x33d37e(0xd1)](_0x507bc7),_0x597634=bsSetupHelper[_0x33d37e(0x11a)](_0x507bc7),_0x2d16df=_0x36e225['ZpYqw'](_0x28dc7a,'')+':'+_0x36e225[_0x33d37e(0xa6)](_0x597634,'');if(_0x36e225[_0x33d37e(0x100)](_0x2d16df,':'))return _0x36e225[_0x33d37e(0xaa)](debug,_0x36e225[_0x33d37e(0xf6)]),process['env'][_0x33d37e(0xce)]=_0x36e225['ExZNY'],[null,null];let _0x201728=![],_0x308a4d=![];if(_0x507bc7[_0x33d37e(0x101)]&&_0x507bc7[_0x33d37e(0xc1)])_0x308a4d=!![];else _0x507bc7[_0x33d37e(0x101)]&&(_0x201728=!![]);try{const _0x3bce55={'format':_0x36e225[_0x33d37e(0xcf)],'project_name':_0x507bc7[_0x33d37e(0x117)]||'','name':_0x507bc7['buildName']||path[_0x33d37e(0x10c)](path[_0x33d37e(0x10e)](process['cwd']())),'build_identifier':_0x507bc7[_0x33d37e(0xb7)],'description':_0x507bc7[_0x33d37e(0xa9)]||'','start_time':new Date()[_0x33d37e(0xb3)](),'tags':_0x36e225[_0x33d37e(0xaa)](getCustomTags,_0x507bc7),'host_info':bsSetupHelper[_0x33d37e(0x10f)](),'ci_info':bsSetupHelper[_0x33d37e(0x13e)](),'build_run_identifier':process[_0x33d37e(0xda)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process['env'][_0x33d37e(0xa5)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x16f6ee[_0x33d37e(0x10b)],'frameworkVersion':_0x16f6ee[_0x33d37e(0xb5)],'sdkVersion':bsSetupHelper[_0x33d37e(0x13a)]()},'product_map':_0x36e225[_0x33d37e(0xaa)](getProductMap,_0x507bc7)},_0x3774c1={};_0x3774c1[_0x33d37e(0x10d)]=_0x28dc7a,_0x3774c1['password']=_0x597634;const _0x5b7332={'auth':_0x3774c1,'headers':_0x36e225[_0x33d37e(0xc4)](getDefaultHeaders,![])},_0x231a00=await _0x36e225[_0x33d37e(0x138)](nodeRequest,_0x36e225[_0x33d37e(0xd7)],_0x36e225[_0x33d37e(0xd3)],_0x3bce55,_0x5b7332);_0x36e225[_0x33d37e(0xaa)](debug,_0x36e225['wGSyy']);const _0x3c8aa4=_0x231a00[_0x33d37e(0xc6)];_0x3c8aa4[_0x33d37e(0x149)]&&(process[_0x33d37e(0xda)][_0x33d37e(0x14d)]=_0x3c8aa4['build_hashed_id']);if(_0x36e225['rUjQK'](isTestObservabilitySession)){process['env'][_0x33d37e(0xce)]=_0x36e225[_0x33d37e(0x12c)];if(_0x3c8aa4[_0x33d37e(0x10a)]){process[_0x33d37e(0xda)][_0x33d37e(0x14c)]=_0x3c8aa4[_0x33d37e(0x10a)];const _0x2255ce={};_0x2255ce[_0x33d37e(0x10d)]=_0x28dc7a,_0x2255ce[_0x33d37e(0x14f)]=_0x597634,process[_0x33d37e(0xda)][_0x33d37e(0x115)]=JSON['stringify'](_0x2255ce);}_0x3c8aa4[_0x33d37e(0x149)]&&(process['env'][_0x33d37e(0x135)]=_0x3c8aa4[_0x33d37e(0x149)]),_0x3c8aa4[_0x33d37e(0xe0)]&&(process[_0x33d37e(0xda)][_0x33d37e(0x137)]=_0x3c8aa4[_0x33d37e(0xe0)][_0x33d37e(0xde)]());}return[_0x231a00[_0x33d37e(0xc6)]['jwt'],_0x231a00['data'][_0x33d37e(0x149)],_0x231a00[_0x33d37e(0xc6)]['allow_screenshots']];}catch(_0x3cdf0b){process[_0x33d37e(0xda)][_0x33d37e(0x14d)]=_0x36e225[_0x33d37e(0x134)],process['env'][_0x33d37e(0xce)]=_0x36e225[_0x33d37e(0x13d)],process['env'][_0x33d37e(0x14c)]=_0x36e225[_0x33d37e(0x134)],process[_0x33d37e(0xda)][_0x33d37e(0x135)]=_0x36e225[_0x33d37e(0x134)],process[_0x33d37e(0xda)][_0x33d37e(0x137)]=_0x36e225[_0x33d37e(0x134)];_0x3cdf0b['response']?_0x36e225['YumuM'](debug,_0x33d37e(0x12b)+_0x3cdf0b['response'][_0x33d37e(0xfd)]+'\x20'+_0x3cdf0b[_0x33d37e(0x133)]['statusText']+'\x20'+JSON[_0x33d37e(0x104)](_0x3cdf0b[_0x33d37e(0x133)][_0x33d37e(0xc6)])):_0x36e225[_0x33d37e(0xc4)](debug,_0x33d37e(0x12b)+(_0x3cdf0b['message']||_0x3cdf0b));if(_0x3cdf0b&&_0x3cdf0b[_0x33d37e(0x12a)]){const _0x4d2c91=_0x3cdf0b[_0x33d37e(0x12a)];switch(_0x3cdf0b[_0x33d37e(0x11d)]){case _0x36e225['EwHXv']:logger[_0x33d37e(0x122)](_0x4d2c91);break;case _0x36e225[_0x33d37e(0xdd)]:logger['info'](_0x4d2c91);break;case _0x36e225[_0x33d37e(0xe7)]:logger['error'](_0x4d2c91);break;default:logger[_0x33d37e(0x122)](_0x4d2c91);}}else console['info'](_0x33d37e(0xa4)+_0x3cdf0b);return[null,null,null];}}static async[a86_0x332420(0x109)](){const _0x136360=a86_0x332420,_0x3ed8c9={'hhWtW':_0x136360(0xbd),'aUgxR':_0x136360(0xbf),'UFdZK':function(_0x5ab215,_0x1fb3da){return _0x5ab215(_0x1fb3da);}},_0x33c012=process[_0x136360(0xda)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0x3ed8c9[_0x136360(0x114)],_0x3ed8c9[_0x136360(0xe1)]][_0x136360(0xbb)](_0x33c012))return;while([_0x3ed8c9[_0x136360(0x114)],_0x3ed8c9[_0x136360(0xe1)]]['includes'](_0x33c012)){await _0x3ed8c9[_0x136360(0xf0)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a86_0x332420(0xb6)](_0x540dab){const _0x9c4536=a86_0x332420,_0x52cb5d={};_0x52cb5d[_0x9c4536(0xaf)]=_0x9c4536(0xc9),_0x52cb5d[_0x9c4536(0xc8)]=_0x9c4536(0xd6),_0x52cb5d['ufouU']=_0x9c4536(0x142),_0x52cb5d[_0x9c4536(0xf7)]=_0x9c4536(0x145),_0x52cb5d['cLwhv']=_0x9c4536(0x144),_0x52cb5d[_0x9c4536(0xb2)]='Hook_End_Upload',_0x52cb5d[_0x9c4536(0x146)]=_0x9c4536(0xc7);const _0x1173d0=_0x52cb5d,_0x7d1a7={};return _0x7d1a7[_0x9c4536(0x14a)]=_0x1173d0[_0x9c4536(0xaf)],_0x7d1a7[_0x9c4536(0xfa)]=_0x1173d0[_0x9c4536(0xc8)],_0x7d1a7[_0x9c4536(0xcd)]=_0x1173d0['ufouU'],_0x7d1a7[_0x9c4536(0xe8)]=_0x1173d0[_0x9c4536(0xf7)],_0x7d1a7['HookRunStarted']=_0x1173d0[_0x9c4536(0xb9)],_0x7d1a7['HookRunFinished']=_0x1173d0[_0x9c4536(0xb2)],_0x7d1a7[_0x9c4536(0xff)]=_0x1173d0[_0x9c4536(0x146)],_0x7d1a7[_0x540dab[_0x9c4536(0xed)]];}static async[a86_0x332420(0xfe)](_0x3b35f1,_0x1605b2=0x0,_0x2bf0d1=null){const _0xfd29bc=a86_0x332420,_0xb624e2={'cFUpo':function(_0x1d17b8,_0x121875){return _0x1d17b8===_0x121875;},'lovTL':_0xfd29bc(0xe6),'WNptF':function(_0x4ac34f,_0x381490){return _0x4ac34f!==_0x381490;},'Ofocn':'application/json','aqJHZ':_0xfd29bc(0xbd),'wbxhT':function(_0x5d1b9c,_0x31a4ae){return _0x5d1b9c===_0x31a4ae;},'VHLCc':function(_0x38e60f,_0x545e87,_0x3e494d,_0x442fe0,_0x1bdbb6){return _0x38e60f(_0x545e87,_0x3e494d,_0x442fe0,_0x1bdbb6);},'klUQy':'POST','lJMwl':function(_0x330002,_0xc1022){return _0x330002(_0xc1022);},'MEOgP':_0xfd29bc(0x121),'qvjee':function(_0x5c28a8,_0xb93a70){return _0x5c28a8-_0xb93a70;},'PfByq':_0xfd29bc(0xfb),'ZRZlm':_0xfd29bc(0x139),'jcCIA':function(_0x36d228,_0x270cdf){return _0x36d228(_0x270cdf);},'DBIOY':function(_0x71d06e,_0xc09aee){return _0x71d06e-_0xc09aee;},'lMCxe':function(_0x24217d,_0x20e4dd){return _0x24217d===_0x20e4dd;},'lzTpW':_0xfd29bc(0x122)};_0xb624e2[_0xfd29bc(0x151)](_0x2bf0d1,_0xb624e2[_0xfd29bc(0xcb)])&&logger[_0xfd29bc(0xa8)](_0xfd29bc(0xc2)+_0x3b35f1[_0xfd29bc(0x123)][0x0]['test_run_uuid']);const _0x1e8173=await this[_0xfd29bc(0xb6)](_0x3b35f1);let _0x598b55=_0x3b35f1,_0x6f0ebe=EVENT_ENDPOINT;_0xb624e2[_0xfd29bc(0x12e)](_0x2bf0d1,_0xb624e2[_0xfd29bc(0xcb)])&&this['requestQueueHandler'][_0xfd29bc(0x150)]();const {shouldProceed:_0x5486e7,proceedWithData:_0x49cf04,proceedWithUrl:_0x282143}=this[_0xfd29bc(0xd0)][_0xfd29bc(0xb4)](_0x3b35f1);if(!_0x5486e7)return;else _0x49cf04&&(_0x598b55=_0x49cf04,_0x6f0ebe=_0x282143);const _0x5e3948={};_0x5e3948[_0xfd29bc(0xe5)]=_0xfd29bc(0xcc)+process[_0xfd29bc(0xda)][_0xfd29bc(0xbe)],_0x5e3948[_0xfd29bc(0xdc)]=_0xb624e2[_0xfd29bc(0x128)],_0x5e3948[_0xfd29bc(0x11c)]=_0xb624e2['aqJHZ'];const _0x4f7195={};_0x4f7195[_0xfd29bc(0xac)]=_0x5e3948;const _0x3c63a3=_0x4f7195;let _0x1b4449;try{_0xb624e2['wbxhT'](_0x2bf0d1,_0xb624e2[_0xfd29bc(0xcb)])?(logger[_0xfd29bc(0xa8)](_0xfd29bc(0xfc)+_0x3b35f1?.['logs'][0x0]?.[_0xfd29bc(0x11e)]),_0x1b4449=await _0xb624e2['VHLCc'](asyncAwaitNodeReq,_0xb624e2['klUQy'],_0x6f0ebe,_0x598b55,_0x3c63a3),logger[_0xfd29bc(0xa8)](_0xfd29bc(0x12d)+_0x3b35f1?.[_0xfd29bc(0x123)][0x0]?.['test_run_uuid'])):_0x1b4449=await _0xb624e2[_0xfd29bc(0x105)](nodeRequest,_0xb624e2['klUQy'],_0x6f0ebe,_0x598b55,_0x3c63a3);if(_0x1b4449[_0xfd29bc(0xc6)][_0xfd29bc(0x122)]){const _0x2ee890={};_0x2ee890['message']=_0x1b4449[_0xfd29bc(0xc6)][_0xfd29bc(0x122)];throw _0x2ee890;}else{_0xb624e2[_0xfd29bc(0x116)](debug,(_0xb624e2[_0xfd29bc(0x12e)](_0x6f0ebe,this[_0xfd29bc(0xd0)][_0xfd29bc(0xa3)])?_0x1e8173:_0xb624e2['MEOgP'])+'['+_0x1605b2+_0xfd29bc(0x120)),this[_0xfd29bc(0xd0)][_0xfd29bc(0x14b)]=Math[_0xfd29bc(0x148)](0x0,_0xb624e2[_0xfd29bc(0x131)](this[_0xfd29bc(0xd0)][_0xfd29bc(0x14b)],_0xb624e2[_0xfd29bc(0x151)](_0x6f0ebe,_0xb624e2[_0xfd29bc(0xf8)])?0x1:_0x598b55['length']));const _0xa15f70={};return _0xa15f70[_0xfd29bc(0xfd)]=_0xb624e2[_0xfd29bc(0xeb)],_0xa15f70[_0xfd29bc(0x12a)]='',_0xa15f70;}}catch(_0x2a7a1d){_0x2a7a1d['response']?_0xb624e2['lJMwl'](debug,'EXCEPTION\x20IN\x20'+(_0xb624e2[_0xfd29bc(0x12e)](_0x6f0ebe,this[_0xfd29bc(0xd0)]['eventUrl'])?_0x1e8173:_0xb624e2[_0xfd29bc(0x14e)])+_0xfd29bc(0x129)+_0x2a7a1d[_0xfd29bc(0x133)][_0xfd29bc(0xfd)]+'\x20'+_0x2a7a1d[_0xfd29bc(0x133)][_0xfd29bc(0x110)]+'\x20'+util[_0xfd29bc(0xd8)](_0x2a7a1d[_0xfd29bc(0x133)][_0xfd29bc(0xc6)])):_0xb624e2['jcCIA'](debug,_0xfd29bc(0x140)+(_0xb624e2[_0xfd29bc(0x12e)](_0x6f0ebe,this[_0xfd29bc(0xd0)][_0xfd29bc(0xa3)])?_0x1e8173:_0xb624e2['MEOgP'])+_0xfd29bc(0x129)+util[_0xfd29bc(0xd8)](_0x2a7a1d));this['requestQueueHandler']['pendingUploads']=Math['max'](0x0,_0xb624e2[_0xfd29bc(0x108)](this[_0xfd29bc(0xd0)][_0xfd29bc(0x14b)],_0xb624e2['lMCxe'](_0x6f0ebe,_0xb624e2[_0xfd29bc(0xf8)])?0x1:_0x598b55[_0xfd29bc(0xef)]));const _0x4d9fb5={};return _0x4d9fb5[_0xfd29bc(0xfd)]=_0xb624e2[_0xfd29bc(0xd2)],_0x4d9fb5[_0xfd29bc(0x12a)]=_0x2a7a1d[_0xfd29bc(0x12a)]||(_0x2a7a1d[_0xfd29bc(0x133)]?_0x2a7a1d[_0xfd29bc(0x133)][_0xfd29bc(0xfd)]+':'+_0x2a7a1d[_0xfd29bc(0x133)][_0xfd29bc(0x110)]:_0x2a7a1d),_0x4d9fb5;}}static async[a86_0x332420(0xb0)](_0x4c3f94,_0x1c26de=0x0){const _0x20a915=a86_0x332420,_0x45efe2={'mWfUQ':function(_0x351624,_0x507536){return _0x351624+_0x507536;},'aFwYN':function(_0x5dc588,_0x2794e3){return _0x5dc588(_0x2794e3);},'AwGwT':'test_run','bZcNW':_0x20a915(0xbc),'RkxRH':_0x20a915(0xb1),'gyDZb':function(_0x53e19e,_0x58e49b,_0xadc6c5){return _0x53e19e(_0x58e49b,_0xadc6c5);},'TPnVA':_0x20a915(0xb0),'qhoVr':function(_0xc6e63d,_0x46dc94){return _0xc6e63d===_0x46dc94;},'xqOEh':function(_0x11e443,_0x155f14){return _0x11e443!==_0x155f14;},'UyOOv':_0x20a915(0xa1),'bYKHR':function(_0x30d1a1,_0x40f184){return _0x30d1a1===_0x40f184;},'HpOvT':'true','XZMBf':function(_0xb69382){return _0xb69382();},'bFVzi':function(_0x1222cf,_0x13be21){return _0x1222cf-_0x13be21;},'nZaso':_0x20a915(0x122),'gHTdQ':_0x20a915(0x13c),'LfiWL':function(_0x4da490,_0x4b55e9){return _0x4da490>=_0x4b55e9;},'ghUVn':function(_0x1212ce,_0x1b3c30){return _0x1212ce(_0x1b3c30);},'olRAe':_0x20a915(0x147),'NNfCd':function(_0x1f675f,_0x549080){return _0x1f675f!==_0x549080;},'PKpXO':_0x20a915(0xbf)},_0x25a267=this[_0x20a915(0xb6)](_0x4c3f94);_0x45efe2['aFwYN'](trace,_0x20a915(0x124)+_0x4c3f94[_0x20a915(0xed)]+'\x27\x20'+(bsSetupHelper[_0x20a915(0x111)](_0x4c3f94,[_0x45efe2['AwGwT'],_0x45efe2[_0x20a915(0x13f)]])||bsSetupHelper[_0x20a915(0x111)](_0x4c3f94,[_0x45efe2[_0x20a915(0xdb)],_0x45efe2[_0x20a915(0x13f)]])));if(!_0x45efe2['gyDZb'](shouldProcessEventForTesthub,_0x4c3f94[_0x20a915(0xed)],_0x45efe2[_0x20a915(0xa2)]))return;_0x45efe2[_0x20a915(0xf5)](_0x1c26de,0x0)&&process['env'][_0x20a915(0xbe)]&&_0x45efe2[_0x20a915(0x126)](process[_0x20a915(0xda)][_0x20a915(0xbe)],_0x45efe2['UyOOv'])&&(this['requestQueueHandler']['pendingUploads']+=0x1);if(_0x45efe2[_0x20a915(0xca)](process[_0x20a915(0xda)][_0x20a915(0xce)],_0x45efe2[_0x20a915(0xe9)])||process['env'][_0x20a915(0xc3)]||_0x45efe2[_0x20a915(0xee)](isPercyBuild)){if(_0x45efe2[_0x20a915(0xca)](process[_0x20a915(0xda)][_0x20a915(0xbe)],_0x45efe2['UyOOv'])){_0x45efe2[_0x20a915(0xba)](debug,'EXCEPTION\x20IN\x20'+_0x25a267+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token'),this[_0x20a915(0xd0)][_0x20a915(0x14b)]=Math[_0x20a915(0x148)](0x0,_0x45efe2[_0x20a915(0xec)](this[_0x20a915(0xd0)][_0x20a915(0x14b)],0x1));const _0x5aa9d2={};return _0x5aa9d2[_0x20a915(0xfd)]=_0x45efe2[_0x20a915(0xf2)],_0x5aa9d2[_0x20a915(0x12a)]=_0x45efe2[_0x20a915(0xe3)],_0x5aa9d2;}return await this['sendEventData'](_0x4c3f94,_0x1c26de);}else{if(_0x45efe2[_0x20a915(0x127)](_0x1c26de,0x5)){_0x45efe2[_0x20a915(0xb8)](debug,_0x20a915(0x140)+_0x25a267+_0x20a915(0xae)+_0x25a267+_0x20a915(0x119));_0x45efe2[_0x20a915(0x126)](process[_0x20a915(0xda)]['BROWSERSTACK_TESTHUB_JWT'],_0x45efe2[_0x20a915(0xad)])&&(this[_0x20a915(0xd0)][_0x20a915(0x14b)]=Math[_0x20a915(0x148)](0x0,_0x45efe2['bFVzi'](this['requestQueueHandler'][_0x20a915(0x14b)],0x1)));const _0x53ea3f={};return _0x53ea3f[_0x20a915(0xfd)]=_0x45efe2['nZaso'],_0x53ea3f['message']=_0x45efe2[_0x20a915(0x112)],_0x53ea3f;}else _0x45efe2[_0x20a915(0x125)](process['env'][_0x20a915(0xce)],_0x45efe2['PKpXO'])&&_0x45efe2[_0x20a915(0xdf)](setTimeout,()=>{const _0x5d805c=_0x20a915;this[_0x5d805c(0xb0)](_0x4c3f94,_0x45efe2[_0x5d805c(0x107)](_0x1c26de,0x1));},0x3e8);}}}module[a86_0x332420(0xf1)]=SessionHandler;function a86_0x3253(){const _0x10a1ad=['\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','puwzv','uploadEventData','hook_run','hhexj','toISOString','add','frameworkVersion','getLogTag','buildIdentifier','ghUVn','cLwhv','aFwYN','includes','uuid','true','BROWSERSTACK_TESTHUB_JWT','false','api/v1/builds','app','Sending\x20trace\x20zip\x20for\x20test:\x20','BS_A11Y_JWT','uLCSC','path','data','CBT_Upload','CZOpG','Test_Start_Upload','bYKHR','lovTL','Bearer\x20','TestRunSkipped','BS_TESTOPS_BUILD_COMPLETED','vknGE','requestQueueHandler','getUserName','lzTpW','nviNN','42415373qUiJvS','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','Test_End_Upload','Mxmxh','format','POST','env','RkxRH','Content-Type','qmcgX','toString','gyDZb','allow_screenshots','aUgxR','winstonLogger','gHTdQ','70510UWETJK','Authorization','sendTraceZip','uAXSn','LogCreated','HpOvT','1308656tQrBKW','ZRZlm','bFVzi','event_type','XZMBf','length','UFdZK','exports','nZaso','./requestQueueHandler','util','qhoVr','TeVJM','YjCWV','PfByq','121928eatlbW','TestRunFinished','api/v1/event','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','status','sendEventData','CBTSessionCreated','bJirP','browserstackAutomation','117BKVcVL','12332224GjiSWZ','stringify','VHLCc','46PCoqGk','mWfUQ','DBIOY','waitForBuildStatus','jwt','frameworkName','basename','username','resolve','getHostInfo','statusText','nestedKeyValue','olRAe','launch','hhWtW','CREDENTIALS_FOR_CRASH_REPORTING','lJMwl','projectName','235uRjwfz','\x20retry\x20runs\x20exceeded','getAccessKey','ERROR_SDK_DEPRECATED','X-BSTACK-TESTOPS','errorType','test_run_uuid','../helper',']\x20event\x20successful!','Batch-Queue','error','logs','Processing\x20event\x20-\x20\x27','NNfCd','xqOEh','LfiWL','Ofocn','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','message','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','fdEsZ','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','WNptF','104649XUcJBE','json','qvjee','getInstance','response','FjddQ','BS_TESTOPS_BUILD_HASHED_ID','4656624KLaOWU','BS_TESTOPS_ALLOW_SCREENSHOTS','MRaJI','success','getAgentVersion','12pdKvqN','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','ExZNY','getCiInfo','bZcNW','EXCEPTION\x20IN\x20','../logger','Test_Skipped_Upload','../../helpers/testhub/utils','Hook_Start_Upload','Log_Upload','LtAAs','Retry\x20runs\x20exceeded','max','build_hashed_id','TestRunStarted','pendingUploads','BS_TESTOPS_JWT','BROWSERSTACK_TESTHUB_UUID','MEOgP','password','start','cFUpo','null','TPnVA','eventUrl','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','BROWSERSTACK_RERUN','rwbiH','Build\x20creation\x20successful!','debug','buildDescription','szgQz','ERROR_INVALID_CREDENTIALS','headers','UyOOv'];a86_0x3253=function(){return _0x10a1ad;};return a86_0x3253();}