browserstack-node-sdk 1.35.2 → 1.35.3
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.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +2 -2
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a80_0x1519(_0x20edcd,_0x8918dd){const _0x24298f=a80_0x2429();return a80_0x1519=function(_0x1519fb,_0x3a6fe4){_0x1519fb=_0x1519fb-0x179;let _0x2483bb=_0x24298f[_0x1519fb];return _0x2483bb;},a80_0x1519(_0x20edcd,_0x8918dd);}const a80_0x4cc608=a80_0x1519;(function(_0x1cf5e0,_0x18f9ad){const _0x1a25d7=a80_0x1519,_0x8b29f0=_0x1cf5e0();while(!![]){try{const _0x344c66=-parseInt(_0x1a25d7(0x1f8))/0x1*(-parseInt(_0x1a25d7(0x1f4))/0x2)+-parseInt(_0x1a25d7(0x1e6))/0x3+parseInt(_0x1a25d7(0x1d6))/0x4+-parseInt(_0x1a25d7(0x1dc))/0x5+-parseInt(_0x1a25d7(0x189))/0x6+-parseInt(_0x1a25d7(0x201))/0x7+parseInt(_0x1a25d7(0x1ee))/0x8;if(_0x344c66===_0x18f9ad)break;else _0x8b29f0['push'](_0x8b29f0['shift']());}catch(_0x1b89d5){_0x8b29f0['push'](_0x8b29f0['shift']());}}}(a80_0x2429,0x5251e));const fs=require('fs'),fsPromise=require(a80_0x4cc608(0x1a6)),{performance,PerformanceObserver}=require(a80_0x4cc608(0x1d2)),path=require(a80_0x4cc608(0x1b9)),util=require(a80_0x4cc608(0x216)),logger=require(a80_0x4cc608(0x217))[a80_0x4cc608(0x18c)],{getProcessId,sleep,debug,getTestName}=require(a80_0x4cc608(0x19c));class PerformanceTester{static [a80_0x4cc608(0x1a2)];static [a80_0x4cc608(0x1bd)]=[];static [a80_0x4cc608(0x1f3)]=[];static [a80_0x4cc608(0x21b)]=[];static [a80_0x4cc608(0x1ef)]=![];static [a80_0x4cc608(0x208)]='performance-report';static [a80_0x4cc608(0x19a)]=process[a80_0x4cc608(0x1c7)][a80_0x4cc608(0x18d)]?path[a80_0x4cc608(0x1a1)](process['env']['browserStackCwd'],this[a80_0x4cc608(0x208)]):path[a80_0x4cc608(0x1a1)](process['cwd'](),a80_0x4cc608(0x188),this[a80_0x4cc608(0x208)]);static ['errorReportDirName']=process['env']['browserStackCwd']?path['join'](process[a80_0x4cc608(0x1c7)]['browserStackCwd'],a80_0x4cc608(0x1ba)):path[a80_0x4cc608(0x1a1)](process[a80_0x4cc608(0x209)](),a80_0x4cc608(0x1ba));static ['jsonReportFileName']=this[a80_0x4cc608(0x19a)]+a80_0x4cc608(0x193)+getProcessId()+a80_0x4cc608(0x19f);static [a80_0x4cc608(0x17e)]=this[a80_0x4cc608(0x190)]+a80_0x4cc608(0x1d7)+getProcessId()+a80_0x4cc608(0x19f);static [a80_0x4cc608(0x1b0)]={};static [a80_0x4cc608(0x1bb)]={};static[a80_0x4cc608(0x20f)](_0xeee4b1=this[a80_0x4cc608(0x19a)]+a80_0x4cc608(0x193)+getProcessId()+'.json',_0xd602dc=this['errorReportDirName']+'/error-report-'+getProcessId()+a80_0x4cc608(0x19f)){const _0x245cbc=a80_0x4cc608,_0x129dde={};_0x129dde['aFmYT']=function(_0x352869,_0x54c9ea){return _0x352869===_0x54c9ea;},_0x129dde[_0x245cbc(0x198)]=_0x245cbc(0x1a3),_0x129dde[_0x245cbc(0x1d3)]=function(_0x3470c7,_0x4cb030){return _0x3470c7+_0x4cb030;},_0x129dde['XaJmq']=_0x245cbc(0x1c9),_0x129dde[_0x245cbc(0x20c)]=_0x245cbc(0x1b2);const _0x3ebf01=_0x129dde;try{!fs[_0x245cbc(0x1f9)](this[_0x245cbc(0x19a)])&&fs[_0x245cbc(0x18a)](this[_0x245cbc(0x19a)]);}catch(_0x554555){logger[_0x245cbc(0x214)](_0x3ebf01[_0x245cbc(0x1d3)](_0x3ebf01[_0x245cbc(0x19d)],_0x554555));}if(this['started']||!this[_0x245cbc(0x19b)]())return;this[_0x245cbc(0x1a2)]=new PerformanceObserver(_0x3fd8e2=>{const _0x2d274c=_0x245cbc,_0x23f47e={'riBdo':function(_0x36e988,_0x5cd46d){const _0x43afea=a80_0x1519;return _0x3ebf01[_0x43afea(0x1f2)](_0x36e988,_0x5cd46d);},'GBFOh':_0x3ebf01[_0x2d274c(0x198)]};_0x3fd8e2['getEntries']()[_0x2d274c(0x1e0)](_0x3bb561=>{const _0x4ce331=_0x2d274c;if(_0x23f47e[_0x4ce331(0x1a5)](_0x3bb561[_0x4ce331(0x1f7)],_0x23f47e[_0x4ce331(0x179)])){let _0x4bae52={};if(_0x3bb561[_0x4ce331(0x180)])_0x4bae52=_0x3bb561[_0x4ce331(0x180)]();else for(const _0x2badcc in _0x3bb561){_0x4bae52[_0x2badcc]=_0x3bb561[_0x2badcc];}this[_0x4ce331(0x1b0)][_0x3bb561['name']]&&(_0x4bae52=Object[_0x4ce331(0x1ea)](_0x4bae52,this[_0x4ce331(0x1b0)][_0x3bb561[_0x4ce331(0x1db)]])),delete this[_0x4ce331(0x1b0)][_0x3bb561[_0x4ce331(0x1db)]],this['_measureEvents'][_0x4ce331(0x1af)](_0x4bae52);}else this[_0x4ce331(0x1bd)][_0x4ce331(0x1af)](_0x3bb561);});});const _0x21ec8f={};_0x21ec8f[_0x245cbc(0x1a9)]=!![],_0x21ec8f[_0x245cbc(0x1c1)]=[_0x3ebf01[_0x245cbc(0x20c)],_0x3ebf01[_0x245cbc(0x198)]],this[_0x245cbc(0x1a2)][_0x245cbc(0x1a0)](_0x21ec8f),this[_0x245cbc(0x1ef)]=!![],this['jsonReportFileName']=_0xeee4b1,this[_0x245cbc(0x17e)]=_0xd602dc;}static[a80_0x4cc608(0x1ab)](){return performance;}static[a80_0x4cc608(0x211)](_0x2fc2d4,_0x12b229){const _0x49d3ba=a80_0x4cc608,_0x395569={};_0x395569[_0x49d3ba(0x1d8)]=function(_0x4111b7,_0x13ff92){return _0x4111b7+_0x13ff92;},_0x395569['HiMjN']=function(_0x2c76b9,_0x55bfaf){return _0x2c76b9||_0x55bfaf;},_0x395569[_0x49d3ba(0x1d0)]=function(_0x319903,_0x1f6f8e){return _0x319903===_0x1f6f8e;};const _0x33100c=_0x395569,_0x40b946={};if(!_0x2fc2d4||_0x33100c[_0x49d3ba(0x1d0)](_0x2fc2d4[_0x49d3ba(0x218)],0x0))return;_0x2fc2d4[_0x49d3ba(0x212)](_0x146a13=>{const _0x3f6dba=_0x49d3ba;!_0x40b946[_0x146a13['name']]&&(_0x40b946[_0x146a13[_0x3f6dba(0x1db)]]=0x0),_0x40b946[_0x146a13[_0x3f6dba(0x1db)]]+=_0x146a13[_0x3f6dba(0x191)];});const _0x4ce769=_0x12b229[_0x49d3ba(0x18b)]((_0x2bd29c,_0x4f98c9)=>{const _0x475de4=_0x49d3ba;return _0x33100c[_0x475de4(0x1d8)](_0x40b946[_0x4f98c9],_0x33100c['HiMjN'](_0x2bd29c,0x0));},0x0);return _0x4ce769;}static async[a80_0x4cc608(0x1ce)](_0x2195e8,_0x275273){const _0x243b14=a80_0x4cc608,_0x58a3ee={'lXhcX':function(_0x2c83d3,_0x216ea6){return _0x2c83d3+_0x216ea6;},'WGhCZ':function(_0xe14bf4,_0x51ec12){return _0xe14bf4||_0x51ec12;},'REISB':function(_0x103ca9,_0x3b30c2){return _0x103ca9===_0x3b30c2;},'JKGex':function(_0x1f9d2a,_0x483ee9){return _0x1f9d2a(_0x483ee9);}};if(!_0x2195e8||_0x58a3ee[_0x243b14(0x19e)](_0x2195e8[_0x243b14(0x218)],0x0))return 0x0;const _0x177225=[];for(const _0x5b4722 of _0x2195e8){const _0xe51f4c=path['join']('.',_0x5b4722);try{const _0x16d2d1=this[_0x243b14(0x1ac)](_0xe51f4c);_0x16d2d1[_0x243b14(0x212)](_0x3f14bf=>{const _0x1498b6=_0x243b14;!_0x177225[_0x3f14bf[_0x1498b6(0x1db)]]&&(_0x177225[_0x3f14bf[_0x1498b6(0x1db)]]=0x0),_0x177225[_0x3f14bf[_0x1498b6(0x1db)]]+=_0x3f14bf[_0x1498b6(0x191)];});}catch(_0x42ba68){_0x58a3ee['JKGex'](debug,_0x243b14(0x1fb)+_0x42ba68['toString']());}}const _0x2d22c8=_0x275273[_0x243b14(0x18b)]((_0x4c6e63,_0x2c9973)=>{const _0x46491b=_0x243b14;return _0x58a3ee[_0x46491b(0x1e9)](_0x177225[_0x2c9973],_0x58a3ee[_0x46491b(0x1e1)](_0x4c6e63,0x0));},0x0);return _0x58a3ee[_0x243b14(0x1df)](debug,_0x243b14(0x181)+_0x275273+'\x20for\x20all\x20processes\x20is\x20'+_0x2d22c8),_0x2d22c8;}static['getEventsFromJSON'](_0x54bd14){const _0x28fb23=a80_0x4cc608;if(_0x54bd14){if(!fs[_0x28fb23(0x1f9)](_0x54bd14))return[];return JSON['parse'](fs[_0x28fb23(0x1b3)](_0x54bd14)['toString']());}}static async[a80_0x4cc608(0x207)](_0xf55d9=a80_0x4cc608(0x1da),_0x706eed=null){const _0x275a28=a80_0x4cc608,_0x1e01a2={'nhMlk':function(_0x1e63b3,_0x5d075a){return _0x1e63b3(_0x5d075a);},'boVzl':function(_0x52fac8,_0x9acb2a){return _0x52fac8(_0x9acb2a);},'IbVkV':function(_0x8ce4b0,_0x4dfa1a){return _0x8ce4b0(_0x4dfa1a);}};if(!this['started'])return;await _0x1e01a2[_0x275a28(0x1d1)](sleep,0x1e),this[_0x275a28(0x1a2)][_0x275a28(0x1be)](),this[_0x275a28(0x1ef)]=![],this[_0x275a28(0x20a)](this[_0x275a28(0x1bd)]);const _0x28b21d=this['generateHTMLReport'](this[_0x275a28(0x1bd)]),_0x13b7ef=path['join'](process['cwd'](),_0xf55d9);fs[_0x275a28(0x1b5)](_0x13b7ef,_0x28b21d,_0x9c9f95=>{const _0x492a75=_0x275a28;if(_0x9c9f95){_0x1e01a2[_0x492a75(0x195)](debug,_0x492a75(0x1cf)+_0x9c9f95[_0x492a75(0x1f1)]());return;}_0x1e01a2['boVzl'](debug,_0x492a75(0x200)+_0x13b7ef);});if(_0x706eed)return this[_0x275a28(0x211)](this[_0x275a28(0x1bd)],_0x706eed);}static[a80_0x4cc608(0x18f)](_0x3d1ca5){const _0x221df5=a80_0x4cc608,_0x4bccf2={};_0x4bccf2[_0x221df5(0x1cb)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x4bccf2[_0x221df5(0x1c2)]=_0x221df5(0x1b8),_0x4bccf2['GqqqD']=_0x221df5(0x196),_0x4bccf2[_0x221df5(0x1ca)]='</tbody></table></body></html>';const _0xec54ae=_0x4bccf2;let _0x3e0f33=_0xec54ae[_0x221df5(0x1cb)];return _0x3e0f33+=_0xec54ae[_0x221df5(0x1c2)],_0x3e0f33+=_0xec54ae[_0x221df5(0x1a7)],_0x3d1ca5['forEach'](_0x5c17cb=>{const _0x330ecf=_0x221df5;_0x3e0f33+=_0x330ecf(0x20e)+_0x5c17cb['name']+_0x330ecf(0x1e3)+_0x5c17cb[_0x330ecf(0x191)]+_0x330ecf(0x17c);}),_0x3e0f33+=_0xec54ae[_0x221df5(0x1ca)],_0x3e0f33;}static['generateJSON'](_0x2c099e){const _0x367ac3=a80_0x4cc608;if(!this[_0x367ac3(0x1e2)])return;const _0x59db42={};_0x2c099e[_0x367ac3(0x212)](_0x4593ba=>{const _0x146689=_0x367ac3;!_0x59db42[_0x4593ba[_0x146689(0x1db)]]&&(_0x59db42[_0x4593ba[_0x146689(0x1db)]]=0x0),_0x59db42[_0x4593ba[_0x146689(0x1db)]]+=_0x4593ba['duration'];});const _0x254a32=Object[_0x367ac3(0x1e8)](_0x59db42)[_0x367ac3(0x212)](([_0x3716aa,_0x293209])=>{const _0x628d95=_0x367ac3,_0x255902={};return _0x255902[_0x628d95(0x1db)]=_0x3716aa,_0x255902[_0x628d95(0x191)]=_0x293209,_0x255902;});fs[_0x367ac3(0x185)](this[_0x367ac3(0x1e2)],JSON['stringify'](_0x254a32));}static[a80_0x4cc608(0x19b)](){const _0x56952d=a80_0x4cc608,_0x5c7fa9={};_0x5c7fa9[_0x56952d(0x1c3)]=function(_0x556097,_0x509622){return _0x556097===_0x509622;},_0x5c7fa9[_0x56952d(0x1e5)]=_0x56952d(0x1fe);const _0x2fdd5d=_0x5c7fa9;return!_0x2fdd5d['Ahurc'](process[_0x56952d(0x1c7)][_0x56952d(0x1fd)],_0x2fdd5d[_0x56952d(0x1e5)]);}static[a80_0x4cc608(0x1a3)](_0x2d1d87,_0x1a82d4,_0x1631f4=null,_0x254702={},_0x2d4658=null){const _0x4d4061=a80_0x4cc608,_0x45a35d={'XAqse':function(_0x4da1a2,_0x5c58f8){return _0x4da1a2(_0x5c58f8);},'dmXgK':function(_0x5877e3,_0x5aec16){return _0x5877e3(_0x5aec16);},'VvKGu':function(_0x307c32,_0x43a7e1){return _0x307c32 instanceof _0x43a7e1;}};try{if(this['started']&&this[_0x4d4061(0x19b)]()){let _0x202bd1=_0x2d1d87;_0x1631f4&&(_0x202bd1=_0x2d1d87+'['+JSON[_0x4d4061(0x192)](_0x1631f4)+']');PerformanceTester[_0x4d4061(0x183)](_0x202bd1),this['details']&&(this['details'][_0x202bd1]=_0x254702);try{const _0x33ee63=_0x1a82d4[_0x4d4061(0x182)](null,_0x2d4658);if(_0x45a35d[_0x4d4061(0x213)](_0x33ee63,Promise))return new Promise((_0x2c67a9,_0x4eb58d)=>{const _0x13fac0=_0x4d4061,_0x457cd4={'oPgsH':function(_0x4484db,_0x1ea2d1){return _0x45a35d['XAqse'](_0x4484db,_0x1ea2d1);},'KfpJZ':function(_0x3bf51e,_0x519a07){const _0x413af5=a80_0x1519;return _0x45a35d[_0x413af5(0x1a4)](_0x3bf51e,_0x519a07);}};_0x33ee63[_0x13fac0(0x20d)](_0x1167f3=>{const _0x2f1899=_0x13fac0;PerformanceTester[_0x2f1899(0x199)](_0x202bd1),_0x457cd4[_0x2f1899(0x1b6)](_0x2c67a9,_0x1167f3);})[_0x13fac0(0x1b4)](_0x5cc98e=>{const _0x598496=_0x13fac0;PerformanceTester[_0x598496(0x199)](_0x202bd1,![],util[_0x598496(0x1fc)](_0x5cc98e)),_0x457cd4['KfpJZ'](_0x4eb58d,_0x5cc98e);});});;return PerformanceTester['end'](_0x202bd1),_0x33ee63;}catch(_0x19a94d){PerformanceTester[_0x4d4061(0x199)](_0x202bd1,![],util[_0x4d4061(0x1fc)](_0x19a94d));throw _0x19a94d;}};return _0x1a82d4[_0x4d4061(0x182)](null,_0x2d4658);}catch(_0x4ab1fb){return _0x1a82d4[_0x4d4061(0x182)](null,_0x2d4658);}}static[a80_0x4cc608(0x1d4)](_0x8ef56f,_0x32b054,_0x20f5f2={}){const _0xca35b=a80_0x4cc608,_0x51c548={'gKfFx':function(_0x5cba05){return _0x5cba05();}},_0xece996=this;return _0x20f5f2[_0xca35b(0x219)]=_0x51c548[_0xca35b(0x1c0)](getProcessId),_0x20f5f2['testName']=_0x51c548[_0xca35b(0x1c0)](getTestName),_0x20f5f2[_0xca35b(0x1eb)]=global[_0xca35b(0x194)]&&global[_0xca35b(0x194)][_0xca35b(0x1ec)],function(){const _0x4b92a6=_0xca35b,_0x1e1de2=[_0x8ef56f,_0x32b054,null,_0x20f5f2][_0x4b92a6(0x1ad)](arguments);return _0xece996[_0x4b92a6(0x1a3)]['apply'](_0xece996,_0x1e1de2);};}static['getCleanedPerfEvents'](){const _0x43c90b=a80_0x4cc608,_0x104aa5=/(^.*)\[(.*)\]$/,_0x5610ac={},_0x5853e2={},_0x16376c=[],_0x1bcf1f=this[_0x43c90b(0x1f3)]['splice'](0x0,this[_0x43c90b(0x1f3)][_0x43c90b(0x218)]);for(const _0x3b0281 of _0x1bcf1f){const _0x26d16d=_0x3b0281[_0x43c90b(0x1db)][_0x43c90b(0x1f5)](_0x104aa5),_0x2924d8=Object[_0x43c90b(0x1ea)]({},_0x3b0281);_0x26d16d&&(_0x2924d8['name']=_0x26d16d[0x1],_0x2924d8['meta']=JSON[_0x43c90b(0x1c8)](_0x26d16d[0x2])),_0x16376c['push'](_0x2924d8);}return _0x16376c;}static[a80_0x4cc608(0x17f)](){const _0x1f8836=a80_0x4cc608,_0x2b1958={};_0x2b1958[_0x1f8836(0x1aa)]=function(_0x35682d,_0x1ec07d){return _0x35682d+_0x1ec07d;},_0x2b1958[_0x1f8836(0x20b)]=_0x1f8836(0x1bf),_0x2b1958[_0x1f8836(0x18e)]=function(_0x18b3df,_0x33665c){return _0x18b3df===_0x33665c;};const _0x290211=_0x2b1958;try{if(fs[_0x1f8836(0x1f9)](this[_0x1f8836(0x19a)])){const _0x1b6afb=fs[_0x1f8836(0x1fa)](this['jsonReportDirPath']);for(const _0x59676f of _0x1b6afb){fs[_0x1f8836(0x1e4)](path[_0x1f8836(0x1a1)](this[_0x1f8836(0x19a)],_0x59676f));}}}catch(_0x177962){logger[_0x1f8836(0x214)](_0x290211[_0x1f8836(0x1aa)](_0x290211[_0x1f8836(0x20b)],_0x177962));}if(_0x290211[_0x1f8836(0x18e)](this['_measureEvents'][_0x1f8836(0x218)],0x0))return;const _0x52208b=this[_0x1f8836(0x206)](),_0x3e5954=JSON[_0x1f8836(0x192)](_0x52208b),_0x43bf2a=_0x290211[_0x1f8836(0x1aa)](_0x3e5954[_0x1f8836(0x1ff)](0x1,-0x1),',');fs[_0x1f8836(0x1a8)](this[_0x1f8836(0x1e2)],_0x43bf2a);}static async[a80_0x4cc608(0x17b)](){const _0x5e188e=a80_0x4cc608,_0x1f307f={};_0x1f307f['CngLg']=function(_0x51c007,_0x1a97b0){return _0x51c007===_0x1a97b0;},_0x1f307f[_0x5e188e(0x1c6)]=function(_0x997234,_0x28eef5){return _0x997234>_0x28eef5;};const _0x5517ee=_0x1f307f;if(!this['started']||_0x5517ee['CngLg'](this[_0x5e188e(0x1f3)][_0x5e188e(0x218)],0x0))return[];if(!fs['existsSync'](this['jsonReportDirPath']))return this[_0x5e188e(0x1f3)];const _0x213445=(await fsPromise[_0x5e188e(0x1ae)](this['jsonReportDirPath']))['map'](_0x477fba=>path[_0x5e188e(0x21a)](this[_0x5e188e(0x19a)],_0x477fba));let _0x5c1e14=(await Promise[_0x5e188e(0x1bc)](_0x213445[_0x5e188e(0x212)](_0x2285de=>fsPromise[_0x5e188e(0x1b7)](_0x2285de,_0x5e188e(0x197)))))[_0x5e188e(0x212)](_0x34faca=>'['+_0x34faca[_0x5e188e(0x1ff)](0x0,-0x1)+']')[_0x5e188e(0x212)](_0x343a4e=>JSON[_0x5e188e(0x1c8)](_0x343a4e))[_0x5e188e(0x202)]();return _0x5517ee[_0x5e188e(0x1c6)](this['_measureEvents'][_0x5e188e(0x218)],0x0)&&(_0x5c1e14=_0x5c1e14['concat'](this[_0x5e188e(0x206)]())),this['_observer'][_0x5e188e(0x1be)](),_0x5c1e14;}static[a80_0x4cc608(0x1c4)](){const _0x520106=a80_0x4cc608,_0x4a47d9={};_0x4a47d9[_0x520106(0x1cc)]=function(_0x5aa457,_0x580987){return _0x5aa457===_0x580987;},_0x4a47d9['yaUZh']=function(_0x4e2fed,_0x4d38db){return _0x4e2fed+_0x4d38db;};const _0x3e604d=_0x4a47d9;if(_0x3e604d['LIVRg'](this[_0x520106(0x21b)][_0x520106(0x218)],0x0))return;const _0x2c73cd=JSON[_0x520106(0x192)](this[_0x520106(0x21b)]),_0x5cc3d0=_0x3e604d[_0x520106(0x1de)](_0x2c73cd['slice'](0x1,-0x1),',');fs['appendFileSync'](this[_0x520106(0x17d)],_0x5cc3d0);}static['finalizeErrors'](){const _0x21d7b3=a80_0x4cc608,_0x35f3e8={};_0x35f3e8[_0x21d7b3(0x203)]=function(_0x45200c,_0x1d197a){return _0x45200c>_0x1d197a;};const _0x39e3c3=_0x35f3e8;if(this[_0x21d7b3(0x17e)]){if(!fs[_0x21d7b3(0x1f9)](this[_0x21d7b3(0x17e)]))return this['_errorEvents'];let _0x2c5212=fs[_0x21d7b3(0x1b3)](this[_0x21d7b3(0x17e)])['toString']();_0x2c5212='['+_0x2c5212[_0x21d7b3(0x1ff)](0x0,-0x1)+']';let _0x2b8662=JSON['parse'](_0x2c5212);return _0x39e3c3[_0x21d7b3(0x203)](this[_0x21d7b3(0x21b)][_0x21d7b3(0x218)],0x0)&&(_0x2b8662=_0x2b8662['concat'](this['_errorEvents'])),fs[_0x21d7b3(0x1e4)](this[_0x21d7b3(0x17e)]),_0x2b8662;}}static[a80_0x4cc608(0x1f6)](_0xd61e98){const _0x27ce51=a80_0x4cc608;if(!this[_0x27ce51(0x19b)]())return;this[_0x27ce51(0x21b)][_0x27ce51(0x1af)]({'message':_0xd61e98[_0x27ce51(0x184)],'trace':_0xd61e98['stack'],'code':_0xd61e98['code']||null,'time':new Date()});}static[a80_0x4cc608(0x186)](){const _0x5334dc=a80_0x4cc608;try{if(!this[_0x5334dc(0x19b)]())return;this['_observer'][_0x5334dc(0x1be)](),this['pushPerfMeasures'](),this['pushErrors']();}catch(_0x1a0668){logger['debug']('Error\x20stopping\x20monitoring\x20'+util[_0x5334dc(0x1fc)](_0x1a0668));}}static async[a80_0x4cc608(0x1dd)](){const _0x5ed408=a80_0x4cc608,_0x48eef6={'Kqdkx':function(_0x4582de,_0x4f34d5){return _0x4582de(_0x4f34d5);}};await _0x48eef6[_0x5ed408(0x187)](sleep,0x1e);const _0x2480d8=await this[_0x5ed408(0x17b)](),_0x2f77ce=this[_0x5ed408(0x204)]();if(!this['isEnabled']()){const _0x2e50da={};return _0x2e50da[_0x5ed408(0x1b1)]=[],_0x2e50da['errors']=[],_0x2e50da;}const _0x52c497={};return _0x52c497[_0x5ed408(0x1b1)]=_0x2480d8,_0x52c497['errors']=_0x2f77ce,_0x52c497;}static[a80_0x4cc608(0x183)](_0x12e12f){const _0x31cb10=a80_0x4cc608,_0x32efeb={};_0x32efeb[_0x31cb10(0x1e7)]=function(_0x3497f0,_0x512989){return _0x3497f0+_0x512989;},_0x32efeb[_0x31cb10(0x17a)]=_0x31cb10(0x205);const _0x1b899c=_0x32efeb,_0x456362=_0x1b899c[_0x31cb10(0x1e7)](_0x12e12f,_0x1b899c[_0x31cb10(0x17a)]);if(this[_0x31cb10(0x1bb)][_0x456362])return;performance['mark'](_0x456362),this[_0x31cb10(0x1bb)][_0x456362]=0x1;}static[a80_0x4cc608(0x199)](_0x36c682,_0x3d5430=!![],_0x3519c2=null,_0x20fa1d={}){const _0x5e37ad=a80_0x4cc608,_0x270e30={'myKmL':function(_0x32d15b,_0x304435){return _0x32d15b+_0x304435;},'tGXjF':_0x5e37ad(0x1d5),'hlmkB':_0x5e37ad(0x205),'FxUWD':function(_0x5b16aa){return _0x5b16aa();},'Gpiwv':function(_0x3e275e){return _0x3e275e();}};performance[_0x5e37ad(0x210)](_0x270e30['myKmL'](_0x36c682,_0x270e30[_0x5e37ad(0x1f0)])),performance[_0x5e37ad(0x1a3)](_0x36c682,_0x270e30[_0x5e37ad(0x215)](_0x36c682,_0x270e30[_0x5e37ad(0x1d9)]),_0x270e30['myKmL'](_0x36c682,_0x270e30[_0x5e37ad(0x1f0)]));const _0x338143={};_0x338143['success']=_0x3d5430,_0x338143['failure']=_0x3519c2,this[_0x5e37ad(0x1b0)][_0x36c682]=Object['assign'](_0x338143,Object[_0x5e37ad(0x1ea)](Object[_0x5e37ad(0x1ea)]({'worker':_0x270e30[_0x5e37ad(0x1ed)](getProcessId),'platform':global['__platformCaps']&&global['__platformCaps'][_0x5e37ad(0x1ec)],'testName':_0x270e30[_0x5e37ad(0x1c5)](getTestName)},_0x20fa1d),this['details'][_0x36c682]||{}));}}module[a80_0x4cc608(0x1cd)]=PerformanceTester;function a80_0x2429(){const _0x4c1c67=['index','FxUWD','11179392vpfDdg','started','tGXjF','toString','aFmYT','_measureEvents','192148mSyBgC','match','captureError','entryType','1xBErWv','existsSync','readdirSync','Error\x20in\x20doing\x20csv\x20operations:\x20','format','BROWSERSTACK_SDK_INSTRUMENTATION','false','slice','Performance\x20report\x20is\x20at\x20','2020123VRhllQ','flat','yOTPa','finalizeErrors','-start','getCleanedPerfEvents','stopAndGenerate','jsonReportDirName','cwd','generateJSON','tEwBL','foUrP','then','<tr><td>','startMonitoring','mark','calculateTimeFromEvents','map','VvKGu','debug','myKmL','util','../logger','length','worker','resolve','_errorEvents','GBFOh','UCUDB','finalizePerfMeasures','</td></tr>','errorFile','errorReportFileName','pushPerfMeasures','toJSON','Time\x20for\x20','apply','start','message','writeFileSync','stopMonitoring','Kqdkx','log','2969202vQUELs','mkdirSync','reduce','winstonLogger','browserStackCwd','QETZp','generateHTMLReport','errorReportDirName','duration','stringify','/performance-report-','__platformCaps','nhMlk','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','utf-8','iLpLW','end','jsonReportDirPath','isEnabled','../processHelper','XaJmq','REISB','.json','observe','join','_observer','measure','dmXgK','riBdo','fs/promises','GqqqD','appendFileSync','buffered','ZjieR','getPerformance','getEventsFromJSON','concat','readdir','push','details','measures','function','readFileSync','catch','writeFile','oPgsH','readFile','<h1>Performance\x20Report</h1>','path','error-report','eventsMap','all','_events','disconnect','Error\x20while\x20removing\x20files:\x20','gKfFx','entryTypes','HVlzQ','Ahurc','pushErrors','Gpiwv','UnbzJ','env','parse','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','hRIOV','eonbR','LIVRg','exports','calculateTimesFromMultipleFiles','Error\x20in\x20writing\x20html\x20','TlCic','IbVkV','perf_hooks','XpOWb','measureWrapper','-end','1226692RATuwl','/error-report-','XlTwh','hlmkB','performance-own.html','name','908210WBAbHi','finalize','yaUZh','JKGex','forEach','WGhCZ','jsonReportFileName','</td><td>','unlinkSync','kkkDw','1493673PXqrvp','cLhQP','entries','lXhcX','assign','platform'];a80_0x2429=function(){return _0x4c1c67;};return a80_0x2429();}
|
|
1
|
+
const a80_0x2a8ef2=a80_0x5148;(function(_0x498ddd,_0x41350a){const _0x4346c8=a80_0x5148,_0x4c9b37=_0x498ddd();while(!![]){try{const _0x343107=-parseInt(_0x4346c8(0x1dc))/0x1+-parseInt(_0x4346c8(0x1dd))/0x2+-parseInt(_0x4346c8(0x1bd))/0x3+-parseInt(_0x4346c8(0x1c1))/0x4*(-parseInt(_0x4346c8(0x179))/0x5)+parseInt(_0x4346c8(0x1a5))/0x6+parseInt(_0x4346c8(0x167))/0x7+parseInt(_0x4346c8(0x1ec))/0x8;if(_0x343107===_0x41350a)break;else _0x4c9b37['push'](_0x4c9b37['shift']());}catch(_0x8260bf){_0x4c9b37['push'](_0x4c9b37['shift']());}}}(a80_0x4074,0xb662c));const fs=require('fs'),fsPromise=require(a80_0x2a8ef2(0x1e4)),{performance,PerformanceObserver}=require('perf_hooks'),path=require(a80_0x2a8ef2(0x194)),util=require(a80_0x2a8ef2(0x17d)),logger=require(a80_0x2a8ef2(0x173))[a80_0x2a8ef2(0x1b0)],{getProcessId,sleep,debug,getTestName}=require(a80_0x2a8ef2(0x162));class PerformanceTester{static [a80_0x2a8ef2(0x1a8)];static ['_events']=[];static [a80_0x2a8ef2(0x1d9)]=[];static ['_errorEvents']=[];static [a80_0x2a8ef2(0x1eb)]=![];static [a80_0x2a8ef2(0x1b8)]=a80_0x2a8ef2(0x165);static ['jsonReportDirPath']=process[a80_0x2a8ef2(0x1d7)][a80_0x2a8ef2(0x1b2)]?path[a80_0x2a8ef2(0x1a6)](process['env'][a80_0x2a8ef2(0x1b2)],this[a80_0x2a8ef2(0x1b8)]):path[a80_0x2a8ef2(0x1a6)](process[a80_0x2a8ef2(0x16d)](),a80_0x2a8ef2(0x1e3),this[a80_0x2a8ef2(0x1b8)]);static [a80_0x2a8ef2(0x15c)]=process[a80_0x2a8ef2(0x1d7)][a80_0x2a8ef2(0x1b2)]?path['join'](process[a80_0x2a8ef2(0x1d7)]['browserStackCwd'],a80_0x2a8ef2(0x1e7)):path['join'](process['cwd'](),'error-report');static [a80_0x2a8ef2(0x1ed)]=this[a80_0x2a8ef2(0x1c2)]+a80_0x2a8ef2(0x188)+getProcessId()+a80_0x2a8ef2(0x1d3);static ['errorReportFileName']=this[a80_0x2a8ef2(0x15c)]+a80_0x2a8ef2(0x1bf)+getProcessId()+a80_0x2a8ef2(0x1d3);static [a80_0x2a8ef2(0x1bc)]={};static [a80_0x2a8ef2(0x183)]={};static['startMonitoring'](_0x4f73c1=this[a80_0x2a8ef2(0x1c2)]+a80_0x2a8ef2(0x188)+getProcessId()+a80_0x2a8ef2(0x1d3),_0x4b15cc=this[a80_0x2a8ef2(0x15c)]+a80_0x2a8ef2(0x1bf)+getProcessId()+a80_0x2a8ef2(0x1d3)){const _0x3e56dc=a80_0x2a8ef2,_0x171c88={};_0x171c88[_0x3e56dc(0x198)]=function(_0x402083,_0x206fe2){return _0x402083===_0x206fe2;},_0x171c88[_0x3e56dc(0x1c4)]=_0x3e56dc(0x19f),_0x171c88[_0x3e56dc(0x185)]=function(_0x3c3c5b,_0x40d270){return _0x3c3c5b+_0x40d270;},_0x171c88[_0x3e56dc(0x168)]=_0x3e56dc(0x1b4),_0x171c88[_0x3e56dc(0x1aa)]=_0x3e56dc(0x1de);const _0x27d13e=_0x171c88;try{!fs[_0x3e56dc(0x15d)](this['jsonReportDirPath'])&&fs[_0x3e56dc(0x166)](this[_0x3e56dc(0x1c2)]);}catch(_0x251341){logger[_0x3e56dc(0x186)](_0x27d13e[_0x3e56dc(0x185)](_0x27d13e[_0x3e56dc(0x168)],_0x251341));}if(this[_0x3e56dc(0x1eb)]||!this['isEnabled']())return;this[_0x3e56dc(0x1a8)]=new PerformanceObserver(_0x53e257=>{const _0x49d9d3=_0x3e56dc;_0x53e257[_0x49d9d3(0x182)]()['forEach'](_0x53711f=>{const _0x57f6de=_0x49d9d3;if(_0x27d13e['nuIhu'](_0x53711f[_0x57f6de(0x1b9)],_0x27d13e['CCDmb'])){let _0x7fed92={};if(_0x53711f[_0x57f6de(0x17b)])_0x7fed92=_0x53711f[_0x57f6de(0x17b)]();else for(const _0x1793b1 in _0x53711f){_0x7fed92[_0x1793b1]=_0x53711f[_0x1793b1];}this[_0x57f6de(0x1bc)][_0x53711f[_0x57f6de(0x1c5)]]&&(_0x7fed92=Object['assign'](_0x7fed92,this[_0x57f6de(0x1bc)][_0x53711f[_0x57f6de(0x1c5)]])),delete this[_0x57f6de(0x1bc)][_0x53711f[_0x57f6de(0x1c5)]],this[_0x57f6de(0x1d9)][_0x57f6de(0x1a0)](_0x7fed92);}else this[_0x57f6de(0x1a9)][_0x57f6de(0x1a0)](_0x53711f);});});const _0x1494b2={};_0x1494b2[_0x3e56dc(0x175)]=!![],_0x1494b2[_0x3e56dc(0x1d1)]=[_0x27d13e[_0x3e56dc(0x1aa)],_0x27d13e[_0x3e56dc(0x1c4)]],this[_0x3e56dc(0x1a8)]['observe'](_0x1494b2),this['started']=!![],this[_0x3e56dc(0x1ed)]=_0x4f73c1,this[_0x3e56dc(0x1cc)]=_0x4b15cc;}static[a80_0x2a8ef2(0x1da)](){return performance;}static[a80_0x2a8ef2(0x18a)](_0x3daa63,_0x2cb8e9){const _0x5c6d02=a80_0x2a8ef2,_0x2cdbba={};_0x2cdbba[_0x5c6d02(0x1c0)]=function(_0xeee23,_0x2ec55f){return _0xeee23+_0x2ec55f;},_0x2cdbba[_0x5c6d02(0x160)]=function(_0x59b798,_0x57465a){return _0x59b798||_0x57465a;},_0x2cdbba['weQqp']=function(_0x51e101,_0x1df73b){return _0x51e101===_0x1df73b;};const _0x4e4493=_0x2cdbba,_0xb8e9b9={};if(!_0x3daa63||_0x4e4493[_0x5c6d02(0x196)](_0x3daa63[_0x5c6d02(0x1e8)],0x0))return;_0x3daa63[_0x5c6d02(0x18f)](_0x370d02=>{const _0x1bde2e=_0x5c6d02;!_0xb8e9b9[_0x370d02[_0x1bde2e(0x1c5)]]&&(_0xb8e9b9[_0x370d02[_0x1bde2e(0x1c5)]]=0x0),_0xb8e9b9[_0x370d02['name']]+=_0x370d02['duration'];});const _0x4f2933=_0x2cb8e9['reduce']((_0x38a997,_0x345860)=>{const _0x5a1840=_0x5c6d02;return _0x4e4493[_0x5a1840(0x1c0)](_0xb8e9b9[_0x345860],_0x4e4493[_0x5a1840(0x160)](_0x38a997,0x0));},0x0);return _0x4f2933;}static async['calculateTimesFromMultipleFiles'](_0x152856,_0x4443d7){const _0x5df05f=a80_0x2a8ef2,_0x3d52af={'hKOXG':function(_0x4cfbec,_0x143cd3){return _0x4cfbec+_0x143cd3;},'FDNBM':function(_0x5a88fe,_0xd3c107){return _0x5a88fe||_0xd3c107;},'LOGsB':function(_0x174172,_0x342ab2){return _0x174172===_0x342ab2;},'SHQfe':function(_0x415c5b,_0x353f58){return _0x415c5b(_0x353f58);}};if(!_0x152856||_0x3d52af['LOGsB'](_0x152856['length'],0x0))return 0x0;const _0x3275bb=[];for(const _0x5d8f3a of _0x152856){const _0x4d3d4b=path[_0x5df05f(0x1a6)]('.',_0x5d8f3a);try{const _0x57b7db=this[_0x5df05f(0x1df)](_0x4d3d4b);_0x57b7db['map'](_0x298980=>{const _0xec749c=_0x5df05f;!_0x3275bb[_0x298980[_0xec749c(0x1c5)]]&&(_0x3275bb[_0x298980['name']]=0x0),_0x3275bb[_0x298980[_0xec749c(0x1c5)]]+=_0x298980[_0xec749c(0x1ab)];});}catch(_0x26d7b4){_0x3d52af['SHQfe'](debug,_0x5df05f(0x1d8)+_0x26d7b4[_0x5df05f(0x1e1)]());}}const _0x5088ca=_0x4443d7[_0x5df05f(0x19c)]((_0x106c74,_0x3a4670)=>{const _0x3cbc1b=_0x5df05f;return _0x3d52af['hKOXG'](_0x3275bb[_0x3a4670],_0x3d52af[_0x3cbc1b(0x176)](_0x106c74,0x0));},0x0);return _0x3d52af['SHQfe'](debug,'Time\x20for\x20'+_0x4443d7+'\x20for\x20all\x20processes\x20is\x20'+_0x5088ca),_0x5088ca;}static[a80_0x2a8ef2(0x1df)](_0x3558ba){const _0x545984=a80_0x2a8ef2;if(_0x3558ba){if(!fs[_0x545984(0x15d)](_0x3558ba))return[];return JSON[_0x545984(0x1bb)](fs[_0x545984(0x17f)](_0x3558ba)[_0x545984(0x1e1)]());}}static async[a80_0x2a8ef2(0x199)](_0x13d558=a80_0x2a8ef2(0x16a),_0x85f7c2=null){const _0x4b59ae=a80_0x2a8ef2,_0xcac448={'WmFcN':function(_0x412f73,_0x399e6c){return _0x412f73(_0x399e6c);},'cDUkN':function(_0x48d4da,_0x25c2e2){return _0x48d4da(_0x25c2e2);}};if(!this[_0x4b59ae(0x1eb)])return;await _0xcac448['cDUkN'](sleep,0x1e),this[_0x4b59ae(0x1a8)][_0x4b59ae(0x1a3)](),this[_0x4b59ae(0x1eb)]=![],this[_0x4b59ae(0x16c)](this['_events']);const _0x1450e6=this[_0x4b59ae(0x19e)](this['_events']),_0x100c92=path['join'](process[_0x4b59ae(0x16d)](),_0x13d558);fs['writeFile'](_0x100c92,_0x1450e6,_0x1ca012=>{const _0x58b31f=_0x4b59ae;if(_0x1ca012){_0xcac448[_0x58b31f(0x17c)](debug,_0x58b31f(0x197)+_0x1ca012[_0x58b31f(0x1e1)]());return;}_0xcac448[_0x58b31f(0x17c)](debug,_0x58b31f(0x19d)+_0x100c92);});if(_0x85f7c2)return this['calculateTimeFromEvents'](this[_0x4b59ae(0x1a9)],_0x85f7c2);}static[a80_0x2a8ef2(0x19e)](_0x11d9ac){const _0x349440=a80_0x2a8ef2,_0x4d5d36={};_0x4d5d36[_0x349440(0x1b6)]=_0x349440(0x181),_0x4d5d36[_0x349440(0x1d2)]='<h1>Performance\x20Report</h1>',_0x4d5d36['uZfIC']=_0x349440(0x17e),_0x4d5d36[_0x349440(0x1a2)]='</tbody></table></body></html>';const _0x4dd4fc=_0x4d5d36;let _0x10b713=_0x4dd4fc['DGGPC'];return _0x10b713+=_0x4dd4fc[_0x349440(0x1d2)],_0x10b713+=_0x4dd4fc[_0x349440(0x171)],_0x11d9ac[_0x349440(0x1a7)](_0x215e40=>{const _0x24d155=_0x349440;_0x10b713+=_0x24d155(0x169)+_0x215e40[_0x24d155(0x1c5)]+_0x24d155(0x16e)+_0x215e40[_0x24d155(0x1ab)]+'</td></tr>';}),_0x10b713+=_0x4dd4fc[_0x349440(0x1a2)],_0x10b713;}static[a80_0x2a8ef2(0x16c)](_0x8cefa8){const _0x6093f2=a80_0x2a8ef2;if(!this[_0x6093f2(0x1ed)])return;const _0x47e9d5={};_0x8cefa8[_0x6093f2(0x18f)](_0xf4fd40=>{const _0x1ad4ef=_0x6093f2;!_0x47e9d5[_0xf4fd40[_0x1ad4ef(0x1c5)]]&&(_0x47e9d5[_0xf4fd40[_0x1ad4ef(0x1c5)]]=0x0),_0x47e9d5[_0xf4fd40[_0x1ad4ef(0x1c5)]]+=_0xf4fd40[_0x1ad4ef(0x1ab)];});const _0x2cd5dd=Object[_0x6093f2(0x18c)](_0x47e9d5)[_0x6093f2(0x18f)](([_0x19f6d8,_0x52f6cf])=>{const _0xf7d32=_0x6093f2,_0x1ac800={};return _0x1ac800[_0xf7d32(0x1c5)]=_0x19f6d8,_0x1ac800[_0xf7d32(0x1ab)]=_0x52f6cf,_0x1ac800;});fs[_0x6093f2(0x189)](this[_0x6093f2(0x1ed)],JSON[_0x6093f2(0x1af)](_0x2cd5dd));}static[a80_0x2a8ef2(0x1be)](){const _0x5d603e=a80_0x2a8ef2,_0x15d266={};_0x15d266['TGHcq']=function(_0x396cc9,_0x498178){return _0x396cc9===_0x498178;},_0x15d266[_0x5d603e(0x192)]='false';const _0x566147=_0x15d266;return!_0x566147[_0x5d603e(0x15f)](process[_0x5d603e(0x1d7)][_0x5d603e(0x1ce)],_0x566147[_0x5d603e(0x192)]);}static['measure'](_0x1db904,_0x2aa2e7,_0xe10f73=null,_0x218774={},_0x3bf646=null){const _0x1c00c7=a80_0x2a8ef2,_0x5be477={'jwPWc':function(_0x1fea96,_0xe92897){return _0x1fea96(_0xe92897);},'cNMEl':function(_0x18461b,_0x160a82){return _0x18461b(_0x160a82);},'bZDPA':function(_0x2567df,_0xde33bb){return _0x2567df instanceof _0xde33bb;}};try{if(this['started']&&this[_0x1c00c7(0x1be)]()){let _0x55f8af=_0x1db904;_0xe10f73&&(_0x55f8af=_0x1db904+'['+JSON[_0x1c00c7(0x1af)](_0xe10f73)+']');PerformanceTester[_0x1c00c7(0x193)](_0x55f8af),this[_0x1c00c7(0x1bc)]&&(this[_0x1c00c7(0x1bc)][_0x55f8af]=_0x218774);try{const _0x1bc33d=_0x2aa2e7[_0x1c00c7(0x170)](null,_0x3bf646);if(_0x5be477[_0x1c00c7(0x1cd)](_0x1bc33d,Promise))return new Promise((_0x541b1b,_0x30848d)=>{const _0x403249={'NOHwu':function(_0x57833f,_0x1ccdef){const _0x261199=a80_0x5148;return _0x5be477[_0x261199(0x1e2)](_0x57833f,_0x1ccdef);}};_0x1bc33d['then'](_0x490ed1=>{PerformanceTester['end'](_0x55f8af),_0x403249['NOHwu'](_0x541b1b,_0x490ed1);})['catch'](_0x191740=>{const _0x1987e0=a80_0x5148;PerformanceTester[_0x1987e0(0x1c7)](_0x55f8af,![],util[_0x1987e0(0x1b3)](_0x191740)),_0x5be477[_0x1987e0(0x180)](_0x30848d,_0x191740);});});;return PerformanceTester[_0x1c00c7(0x1c7)](_0x55f8af),_0x1bc33d;}catch(_0x2d50ae){PerformanceTester['end'](_0x55f8af,![],util[_0x1c00c7(0x1b3)](_0x2d50ae));throw _0x2d50ae;}};return _0x2aa2e7['apply'](null,_0x3bf646);}catch(_0x4fd776){return _0x2aa2e7['apply'](null,_0x3bf646);}}static['measureWrapper'](_0x58eaaf,_0x454d56,_0x45d9c5={}){const _0x5f09aa=a80_0x2a8ef2,_0x1c5a84={'SXdwB':function(_0x34f8cc){return _0x34f8cc();},'iYRDM':function(_0x30f028){return _0x30f028();}},_0x553e9f=this;return _0x45d9c5['worker']=_0x1c5a84[_0x5f09aa(0x190)](getProcessId),_0x45d9c5[_0x5f09aa(0x1ae)]=_0x1c5a84[_0x5f09aa(0x15e)](getTestName),_0x45d9c5['platform']=global[_0x5f09aa(0x1e9)]&&global[_0x5f09aa(0x1e9)][_0x5f09aa(0x177)],function(){const _0x42538a=_0x5f09aa,_0x39e74d=[_0x58eaaf,_0x454d56,null,_0x45d9c5][_0x42538a(0x1b1)](arguments);return _0x553e9f[_0x42538a(0x19f)][_0x42538a(0x170)](_0x553e9f,_0x39e74d);};}static['getCleanedPerfEvents'](){const _0x174717=a80_0x2a8ef2,_0x1d94c8=/(^.*)\[(.*)\]$/,_0x40b281={},_0x1b224d={},_0x41454f=[],_0x1a122b=this[_0x174717(0x1d9)][_0x174717(0x1d5)](0x0,this['_measureEvents']['length']);for(const _0x3c5fe9 of _0x1a122b){const _0xb6de53=_0x3c5fe9['name']['match'](_0x1d94c8),_0x252f05=Object['assign']({},_0x3c5fe9);_0xb6de53&&(_0x252f05[_0x174717(0x1c5)]=_0xb6de53[0x1],_0x252f05[_0x174717(0x1cb)]=JSON[_0x174717(0x1bb)](_0xb6de53[0x2])),_0x41454f[_0x174717(0x1a0)](_0x252f05);}return _0x41454f;}static[a80_0x2a8ef2(0x172)](){const _0x430f21=a80_0x2a8ef2,_0x43ccfa={};_0x43ccfa[_0x430f21(0x1ea)]=function(_0x5a02e6,_0xdc6610){return _0x5a02e6+_0xdc6610;},_0x43ccfa[_0x430f21(0x1d4)]=_0x430f21(0x1d0),_0x43ccfa[_0x430f21(0x1db)]=function(_0x3f74ad,_0x384953){return _0x3f74ad===_0x384953;};const _0x42be6d=_0x43ccfa;try{if(fs[_0x430f21(0x15d)](this[_0x430f21(0x1c2)])){const _0xdd69cd=fs[_0x430f21(0x19a)](this[_0x430f21(0x1c2)]);for(const _0x3caf07 of _0xdd69cd){fs['unlinkSync'](path['join'](this[_0x430f21(0x1c2)],_0x3caf07));}}}catch(_0x50a7e){logger[_0x430f21(0x186)](_0x42be6d[_0x430f21(0x1ea)](_0x42be6d[_0x430f21(0x1d4)],_0x50a7e));}if(_0x42be6d[_0x430f21(0x1db)](this[_0x430f21(0x1d9)][_0x430f21(0x1e8)],0x0))return;const _0x175bc3=this['getCleanedPerfEvents'](),_0xdb939c=JSON['stringify'](_0x175bc3),_0x4ff6a3=_0x42be6d[_0x430f21(0x1ea)](_0xdb939c[_0x430f21(0x1ad)](0x1,-0x1),',');fs['appendFileSync'](this[_0x430f21(0x1ed)],_0x4ff6a3);}static async['finalizePerfMeasures'](){const _0x451f68=a80_0x2a8ef2,_0x740b6e={};_0x740b6e['ZkhWk']=function(_0x4feb2c,_0x263119){return _0x4feb2c===_0x263119;},_0x740b6e[_0x451f68(0x1c9)]=function(_0x379b32,_0x4621a6){return _0x379b32>_0x4621a6;};const _0x4c9000=_0x740b6e;if(!this[_0x451f68(0x1eb)]||_0x4c9000[_0x451f68(0x1d6)](this[_0x451f68(0x1d9)][_0x451f68(0x1e8)],0x0))return[];if(!fs[_0x451f68(0x15d)](this[_0x451f68(0x1c2)]))return this[_0x451f68(0x1d9)];const _0x3e7f22=(await fsPromise['readdir'](this['jsonReportDirPath']))['map'](_0x294feb=>path[_0x451f68(0x1cf)](this[_0x451f68(0x1c2)],_0x294feb));let _0x2c90f6=(await Promise[_0x451f68(0x1ef)](_0x3e7f22[_0x451f68(0x18f)](_0x890069=>fsPromise[_0x451f68(0x18d)](_0x890069,_0x451f68(0x178)))))['map'](_0x4d70ca=>'['+_0x4d70ca['slice'](0x0,-0x1)+']')[_0x451f68(0x18f)](_0x55fef6=>JSON[_0x451f68(0x1bb)](_0x55fef6))[_0x451f68(0x1c8)]();return _0x4c9000[_0x451f68(0x1c9)](this[_0x451f68(0x1d9)]['length'],0x0)&&(_0x2c90f6=_0x2c90f6['concat'](this[_0x451f68(0x1a4)]())),this[_0x451f68(0x1a8)]['disconnect'](),_0x2c90f6;}static[a80_0x2a8ef2(0x161)](){const _0x460c11=a80_0x2a8ef2,_0x728f5f={};_0x728f5f[_0x460c11(0x19b)]=function(_0x5c09a4,_0xa521ff){return _0x5c09a4===_0xa521ff;},_0x728f5f['XawUv']=function(_0x5cae39,_0x6ced2){return _0x5cae39+_0x6ced2;};const _0x109636=_0x728f5f;if(_0x109636[_0x460c11(0x19b)](this[_0x460c11(0x18e)][_0x460c11(0x1e8)],0x0))return;const _0x5d7621=JSON['stringify'](this['_errorEvents']),_0x135671=_0x109636[_0x460c11(0x163)](_0x5d7621['slice'](0x1,-0x1),',');fs[_0x460c11(0x1c3)](this['errorFile'],_0x135671);}static[a80_0x2a8ef2(0x184)](){const _0x3e65f9=a80_0x2a8ef2,_0x5490e9={};_0x5490e9[_0x3e65f9(0x191)]=function(_0x30bfec,_0x49ffa5){return _0x30bfec>_0x49ffa5;};const _0x4897f7=_0x5490e9;if(this[_0x3e65f9(0x1cc)]){if(!fs['existsSync'](this[_0x3e65f9(0x1cc)]))return this[_0x3e65f9(0x18e)];let _0x1abaa3=fs[_0x3e65f9(0x17f)](this['errorReportFileName'])[_0x3e65f9(0x1e1)]();_0x1abaa3='['+_0x1abaa3[_0x3e65f9(0x1ad)](0x0,-0x1)+']';let _0xab625=JSON[_0x3e65f9(0x1bb)](_0x1abaa3);return _0x4897f7['EfCri'](this[_0x3e65f9(0x18e)][_0x3e65f9(0x1e8)],0x0)&&(_0xab625=_0xab625[_0x3e65f9(0x1b1)](this[_0x3e65f9(0x18e)])),fs['unlinkSync'](this[_0x3e65f9(0x1cc)]),_0xab625;}}static['captureError'](_0x4112f8){const _0x283bd3=a80_0x2a8ef2;if(!this[_0x283bd3(0x1be)]())return;this[_0x283bd3(0x18e)][_0x283bd3(0x1a0)]({'message':_0x4112f8[_0x283bd3(0x187)],'trace':_0x4112f8[_0x283bd3(0x1b5)],'code':_0x4112f8['code']||null,'time':new Date()});}static[a80_0x2a8ef2(0x1e0)](){const _0x17d2cf=a80_0x2a8ef2;try{if(!this[_0x17d2cf(0x1be)]())return;this[_0x17d2cf(0x1a8)][_0x17d2cf(0x1a3)](),this[_0x17d2cf(0x172)](),this[_0x17d2cf(0x161)]();}catch(_0x3adda2){logger['debug']('Error\x20stopping\x20monitoring\x20'+util[_0x17d2cf(0x1b3)](_0x3adda2));}}static async['finalize'](){const _0x1621ea=a80_0x2a8ef2,_0x22fce6={'aCZlv':function(_0x457a9f,_0x2d6f61){return _0x457a9f(_0x2d6f61);}};await _0x22fce6[_0x1621ea(0x1ee)](sleep,0x1e);const _0x4f8613=await this[_0x1621ea(0x16f)](),_0x48ef2c=this[_0x1621ea(0x184)]();if(!this[_0x1621ea(0x1be)]()){const _0x21f9d8={};return _0x21f9d8['measures']=[],_0x21f9d8[_0x1621ea(0x1a1)]=[],_0x21f9d8;}const _0x5b696d={};return _0x5b696d['measures']=_0x4f8613,_0x5b696d['errors']=_0x48ef2c,_0x5b696d;}static[a80_0x2a8ef2(0x193)](_0x4e0b19){const _0xad0821=a80_0x2a8ef2,_0x59c457={};_0x59c457['vJcBs']=function(_0x357e21,_0x29a311){return _0x357e21+_0x29a311;},_0x59c457[_0xad0821(0x16b)]=_0xad0821(0x195);const _0x13ab69=_0x59c457,_0x48fdf5=_0x13ab69['vJcBs'](_0x4e0b19,_0x13ab69[_0xad0821(0x16b)]);if(this['eventsMap'][_0x48fdf5])return;performance[_0xad0821(0x1b7)](_0x48fdf5),this[_0xad0821(0x183)][_0x48fdf5]=0x1;}static[a80_0x2a8ef2(0x1c7)](_0x11aac2,_0x42efe6=!![],_0x41f5b0=null,_0x4d4188={}){const _0x3b1564=a80_0x2a8ef2,_0x364f41={'xzUZj':function(_0x109b8f,_0x39ec57){return _0x109b8f+_0x39ec57;},'eTHwl':_0x3b1564(0x1e6),'fpigm':function(_0x2e3d2d,_0x505fd5){return _0x2e3d2d+_0x505fd5;},'fzmbL':_0x3b1564(0x195),'cIIII':function(_0x5f55aa,_0x17f930){return _0x5f55aa+_0x17f930;},'LTIFl':function(_0x462e7e){return _0x462e7e();},'SWdLa':function(_0x2d4b4a){return _0x2d4b4a();}};performance[_0x3b1564(0x1b7)](_0x364f41[_0x3b1564(0x1e5)](_0x11aac2,_0x364f41[_0x3b1564(0x1c6)])),performance['measure'](_0x11aac2,_0x364f41[_0x3b1564(0x174)](_0x11aac2,_0x364f41[_0x3b1564(0x18b)]),_0x364f41[_0x3b1564(0x17a)](_0x11aac2,_0x364f41[_0x3b1564(0x1c6)]));const _0xd42b20={};_0xd42b20['success']=_0x42efe6,_0xd42b20[_0x3b1564(0x164)]=_0x41f5b0,this[_0x3b1564(0x1bc)][_0x11aac2]=Object[_0x3b1564(0x1ca)](_0xd42b20,Object[_0x3b1564(0x1ca)](Object['assign']({'worker':_0x364f41['LTIFl'](getProcessId),'platform':global[_0x3b1564(0x1e9)]&&global[_0x3b1564(0x1e9)][_0x3b1564(0x177)],'testName':_0x364f41[_0x3b1564(0x1ba)](getTestName)},_0x4d4188),this[_0x3b1564(0x1bc)][_0x11aac2]||{}));}}function a80_0x5148(_0x18d650,_0x56d596){const _0x40749c=a80_0x4074();return a80_0x5148=function(_0x514814,_0x1ae54b){_0x514814=_0x514814-0x15c;let _0x70c662=_0x40749c[_0x514814];return _0x70c662;},a80_0x5148(_0x18d650,_0x56d596);}function a80_0x4074(){const _0x21b563=['/error-report-','Xeopn','180OoyyUU','jsonReportDirPath','appendFileSync','CCDmb','name','eTHwl','end','flat','yRVgq','assign','meta','errorReportFileName','bZDPA','BROWSERSTACK_SDK_INSTRUMENTATION','resolve','Error\x20while\x20removing\x20files:\x20','entryTypes','qhOss','.json','qGnUQ','splice','ZkhWk','env','Error\x20in\x20doing\x20csv\x20operations:\x20','_measureEvents','getPerformance','OHdFp','977148kdGwyl','1533040TAmrJa','function','getEventsFromJSON','stopMonitoring','toString','cNMEl','log','fs/promises','xzUZj','-end','error-report','length','__platformCaps','YrWZu','started','11654424gyymSr','jsonReportFileName','aCZlv','all','errorReportDirName','existsSync','iYRDM','TGHcq','tKvHB','pushErrors','../processHelper','XawUv','failure','performance-report','mkdirSync','8674750WqlVTt','NVmjD','<tr><td>','performance-own.html','RkMIP','generateJSON','cwd','</td><td>','finalizePerfMeasures','apply','uZfIC','pushPerfMeasures','../logger','fpigm','buffered','FDNBM','index','utf-8','97105JMjdpP','cIIII','toJSON','WmFcN','util','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','readFileSync','jwPWc','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','getEntries','eventsMap','finalizeErrors','PkCFy','debug','message','/performance-report-','writeFileSync','calculateTimeFromEvents','fzmbL','entries','readFile','_errorEvents','map','SXdwB','EfCri','uaVxc','start','path','-start','weQqp','Error\x20in\x20writing\x20html\x20','nuIhu','stopAndGenerate','readdirSync','NibJO','reduce','Performance\x20report\x20is\x20at\x20','generateHTMLReport','measure','push','errors','Ccgta','disconnect','getCleanedPerfEvents','419400BFiIgS','join','forEach','_observer','_events','SRYxK','duration','exports','slice','testName','stringify','winstonLogger','concat','browserStackCwd','format','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','stack','DGGPC','mark','jsonReportDirName','entryType','SWdLa','parse','details','3447534PkOhqU','isEnabled'];a80_0x4074=function(){return _0x21b563;};return a80_0x4074();}module[a80_0x2a8ef2(0x1ac)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x22a4c1=a81_0x39d2;function a81_0x2cc0(){const _0x5679f9=['1406490flGttB','threadId','env','sleep','703846qPxzIM','true','6SYUmrS','VQZao','58540gfjNZx','2387581MwyEeG','5506SOKxpm','getProcessId','][\x20OBSERVABILITY\x20]\x20','72Hjbmlm','browserstackTestName','149casbVb','debug','./test-observability/constants','unfBo','56KvnTlj','log','worker_threads','93980PZRjfA','76GaYOBi','getTestName','BROWSERSTACK_OBSERVABILITY_DEBUG','./globals','./logger','toISOString','22jEtFWh','353151dpdwgi','getGlobal','sFdyS'];a81_0x2cc0=function(){return _0x5679f9;};return a81_0x2cc0();}(function(_0x327088,_0x5321f5){const _0x5acdf8=a81_0x39d2,_0x12216e=_0x327088();while(!![]){try{const _0x34cf2f=parseInt(_0x5acdf8(0x1da))/0x1*(parseInt(_0x5acdf8(0x1f6))/0x2)+parseInt(_0x5acdf8(0x1ec))/0x3+parseInt(_0x5acdf8(0x1e2))/0x4*(-parseInt(_0x5acdf8(0x1e1))/0x5)+-parseInt(_0x5acdf8(0x1f2))/0x6*(-parseInt(_0x5acdf8(0x1f5))/0x7)+parseInt(_0x5acdf8(0x1de))/0x8*(-parseInt(_0x5acdf8(0x1e9))/0x9)+-parseInt(_0x5acdf8(0x1f4))/0xa*(-parseInt(_0x5acdf8(0x1e8))/0xb)+parseInt(_0x5acdf8(0x1d8))/0xc*(-parseInt(_0x5acdf8(0x1f0))/0xd);if(_0x34cf2f===_0x5321f5)break;else _0x12216e['push'](_0x12216e['shift']());}catch(_0x1a1a8d){_0x12216e['push'](_0x12216e['shift']());}}}(a81_0x2cc0,0x432e1));function a81_0x39d2(_0x173738,_0x5260df){const _0x2cc08e=a81_0x2cc0();return a81_0x39d2=function(_0x39d2b4,_0x174bdd){_0x39d2b4=_0x39d2b4-0x1d8;let _0x3a3bcf=_0x2cc08e[_0x39d2b4];return _0x3a3bcf;},a81_0x39d2(_0x173738,_0x5260df);}const worker=require(a81_0x22a4c1(0x1e0)),{fileLogger}=require(a81_0x22a4c1(0x1e6)),{consoleHolder}=require(a81_0x22a4c1(0x1dc)),globals=require(a81_0x22a4c1(0x1e5));exports[a81_0x22a4c1(0x1f7)]=()=>{const _0x4794d7=a81_0x22a4c1;return process['pid']+'-'+worker[_0x4794d7(0x1ed)];},exports[a81_0x22a4c1(0x1e3)]=()=>{const _0x35fe09=a81_0x22a4c1,_0x561217={};_0x561217[_0x35fe09(0x1dd)]=_0x35fe09(0x1d9);const _0x3237db=_0x561217;return globals[_0x35fe09(0x1ea)](_0x3237db[_0x35fe09(0x1dd)]);},exports[a81_0x22a4c1(0x1ef)]=(_0x280f00=0x64)=>new Promise(_0x495cd0=>setTimeout(_0x495cd0,_0x280f00)),exports['debug']=_0x3db40a=>{const _0xbcd298=a81_0x22a4c1,_0x5be7ed={};_0x5be7ed['VQZao']=function(_0x157d9c,_0x4e5e4f){return _0x157d9c===_0x4e5e4f;},_0x5be7ed[_0xbcd298(0x1eb)]=_0xbcd298(0x1f1);const _0x274f5f=_0x5be7ed;fileLogger[_0xbcd298(0x1db)]('['+new Date()[_0xbcd298(0x1e7)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x3db40a),(_0x274f5f[_0xbcd298(0x1f3)](process[_0xbcd298(0x1ee)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x274f5f[_0xbcd298(0x1eb)])||_0x274f5f['VQZao'](process['env'][_0xbcd298(0x1e4)],'1'))&&consoleHolder[_0xbcd298(0x1df)]('\x0a['+new Date()[_0xbcd298(0x1e7)]()+_0xbcd298(0x1f8)+_0x3db40a+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a82_0x43e3c0=a82_0x16f2;function a82_0x5159(){const _0x5d43d4=['haMBS','28211410ywHDlp','once','end','12262908ufUMiP','object','request','path','msCNg','status_code','TgAWV','hostname','eJUWO','lrfOi','677856kxKyPH','2136819SzvuMr','fBhbU','11pHEWZZ','3655832qCfjuU','tIGXC','statusCode','https','method','host','apply','HILjj','assign','1mEsGqZ','yLtAH','now','monkeypatch','unpatch','error','duration_ms','url','pathname','6BQuOen','ZGRCU','slice','3645510wSYETQ','ljbdF','YvXbe','9bbXikd','2919972kLQmUD','dznjw','eXAls','exports','headers','TCqFh'];a82_0x5159=function(){return _0x5d43d4;};return a82_0x5159();}(function(_0x19d7b3,_0x5083f6){const _0x2c858e=a82_0x16f2,_0x3de368=_0x19d7b3();while(!![]){try{const _0x1269fb=-parseInt(_0x2c858e(0x1bb))/0x1*(parseInt(_0x2c858e(0x1df))/0x2)+parseInt(_0x2c858e(0x1e0))/0x3+-parseInt(_0x2c858e(0x1cb))/0x4+-parseInt(_0x2c858e(0x1c7))/0x5*(-parseInt(_0x2c858e(0x1c4))/0x6)+-parseInt(_0x2c858e(0x1d5))/0x7+parseInt(_0x2c858e(0x1b2))/0x8*(-parseInt(_0x2c858e(0x1ca))/0x9)+parseInt(_0x2c858e(0x1d2))/0xa*(parseInt(_0x2c858e(0x1b1))/0xb);if(_0x1269fb===_0x5083f6)break;else _0x3de368['push'](_0x3de368['shift']());}catch(_0x4ab1fb){_0x3de368['push'](_0x3de368['shift']());}}}(a82_0x5159,0xf06c4));const http=require('http'),https=require(a82_0x43e3c0(0x1b5)),monkeypatch=require(a82_0x43e3c0(0x1be));function spy(_0x44b8b2){const _0x515ff8=a82_0x43e3c0,_0x302863={'qbIYL':function(_0x155d38,_0x555c69){return _0x155d38 instanceof _0x555c69;},'peVhP':function(_0x2f293a,_0x1a2944){return _0x2f293a===_0x1a2944;},'YvXbe':_0x515ff8(0x1d6),'yLtAH':function(_0x43aa57,..._0x3f4521){return _0x43aa57(..._0x3f4521);},'eXAls':function(_0x199232,_0x564258,_0x107f68){return _0x199232(_0x564258,_0x107f68);},'TgAWV':function(_0x25ffd8,_0x43da41){return _0x25ffd8-_0x43da41;},'ZGRCU':function(_0x10a58a,_0x20967e,_0x2814d9){return _0x10a58a(_0x20967e,_0x2814d9);},'lrfOi':_0x515ff8(0x1c0),'haMBS':'response','tIGXC':'socket','ljbdF':function(_0x5eac5f,_0x21e025,_0x8e9b23,_0x203a9d){return _0x5eac5f(_0x21e025,_0x8e9b23,_0x203a9d);},'eJUWO':_0x515ff8(0x1d4),'msCNg':function(_0x22b0ec,_0x53cffe,_0x3e3c35,_0x26b77e){return _0x22b0ec(_0x53cffe,_0x3e3c35,_0x26b77e);},'HILjj':'request'},_0xb2001c=function(){const _0xc9139a=_0x515ff8,_0x4d6d5e={'TCqFh':function(_0x414df0,_0x1392c0,_0x41f091){const _0x4d188f=a82_0x16f2;return _0x302863[_0x4d188f(0x1cd)](_0x414df0,_0x1392c0,_0x41f091);},'fBhbU':function(_0x2fb042,_0x18a33d){const _0x38367d=a82_0x16f2;return _0x302863[_0x38367d(0x1db)](_0x2fb042,_0x18a33d);},'hQFRc':function(_0x4d5194,_0xcb7c58,_0x47d7b0){const _0x2dea15=a82_0x16f2;return _0x302863[_0x2dea15(0x1c5)](_0x4d5194,_0xcb7c58,_0x47d7b0);},'dznjw':_0x302863[_0xc9139a(0x1de)]},_0x44ab9b=arguments[0x0],_0x526fb6=Array['prototype'][_0xc9139a(0x1c6)]['call'](arguments,0x1),_0x1357d1=_0x44ab9b[_0xc9139a(0x1b8)](this,_0x526fb6);let _0x141cdd=Date['now'](),_0x3341b3;const _0x4f22fc={};_0x526fb6['forEach'](_0x501a71=>{const _0x222ce7=_0xc9139a;if(_0x302863['qbIYL'](_0x501a71,URL)){const _0x1efe0f={};_0x1efe0f[_0x222ce7(0x1c2)]=_0x501a71,Object[_0x222ce7(0x1ba)](_0x4f22fc,_0x1efe0f);}else _0x302863['peVhP'](typeof _0x501a71,_0x302863[_0x222ce7(0x1c9)])&&Object[_0x222ce7(0x1ba)](_0x4f22fc,_0x501a71);});const _0x4b86ba=_0x35d1ef=>{const _0x21f644=_0xc9139a,_0xa7bf9b={};_0xa7bf9b[_0x21f644(0x1b7)]=_0x4f22fc[_0x21f644(0x1b7)]||_0x4f22fc[_0x21f644(0x1dc)]||_0x4f22fc[_0x21f644(0x1c2)]&&(_0x4f22fc[_0x21f644(0x1c2)][_0x21f644(0x1b7)]||_0x4f22fc['url'][_0x21f644(0x1dc)]),_0xa7bf9b[_0x21f644(0x1d8)]=_0x4f22fc[_0x21f644(0x1d8)]||_0x4f22fc[_0x21f644(0x1c2)]&&_0x4f22fc[_0x21f644(0x1c2)][_0x21f644(0x1c3)],_0xa7bf9b[_0x21f644(0x1b6)]=_0x4f22fc[_0x21f644(0x1b6)],_0xa7bf9b[_0x21f644(0x1cf)]=_0x4f22fc['headers'],_0x4d6d5e[_0x21f644(0x1d0)](_0x44b8b2,_0x35d1ef,_0xa7bf9b);};return _0x1357d1[_0xc9139a(0x1d3)](_0x302863[_0xc9139a(0x1d1)],_0x111695=>{const _0xa81beb=_0xc9139a,_0x3ca5f0=_0x4d6d5e[_0xa81beb(0x1b0)](Date[_0xa81beb(0x1bd)](),_0x141cdd),_0x31eb8c={};_0x31eb8c[_0xa81beb(0x1dc)]=_0x4f22fc[_0xa81beb(0x1b7)]||_0x4f22fc[_0xa81beb(0x1dc)]||_0x4f22fc[_0xa81beb(0x1c2)]&&(_0x4f22fc[_0xa81beb(0x1c2)]['host']||_0x4f22fc[_0xa81beb(0x1c2)][_0xa81beb(0x1dc)]),_0x31eb8c[_0xa81beb(0x1d8)]=_0x4f22fc[_0xa81beb(0x1d8)]||_0x4f22fc['url']&&_0x4f22fc[_0xa81beb(0x1c2)][_0xa81beb(0x1c3)],_0x31eb8c[_0xa81beb(0x1b6)]=_0x4f22fc[_0xa81beb(0x1b6)],_0x31eb8c['headers']=_0x4f22fc[_0xa81beb(0x1cf)],_0x31eb8c[_0xa81beb(0x1da)]=_0x111695[_0xa81beb(0x1b4)],_0x31eb8c[_0xa81beb(0x1c1)]=_0x3ca5f0,_0x4d6d5e['hQFRc'](_0x44b8b2,null,_0x31eb8c),_0x3341b3['removeListener'](_0x4d6d5e[_0xa81beb(0x1cc)],_0x4b86ba);}),_0x1357d1['on'](_0x302863[_0xc9139a(0x1b3)],_0x49c865=>{const _0x577120=_0xc9139a;_0x3341b3=_0x49c865,_0x49c865[_0x577120(0x1d3)](_0x4d6d5e[_0x577120(0x1cc)],_0x4b86ba);}),_0x302863[_0xc9139a(0x1c8)](monkeypatch,_0x1357d1,_0x302863[_0xc9139a(0x1dd)],(_0x260aba,..._0x45854c)=>{const _0x18d81b=_0xc9139a;_0x141cdd=Date[_0x18d81b(0x1bd)](),_0x302863[_0x18d81b(0x1bc)](_0x260aba,..._0x45854c);}),_0x1357d1;};_0x302863['msCNg'](monkeypatch,http,_0x302863[_0x515ff8(0x1b9)],_0xb2001c),_0x302863[_0x515ff8(0x1d9)](monkeypatch,https,_0x302863[_0x515ff8(0x1b9)],_0xb2001c);}function restore(){const _0x176266=a82_0x43e3c0;http[_0x176266(0x1d7)]['unpatch'](),https[_0x176266(0x1d7)][_0x176266(0x1bf)]();}function a82_0x16f2(_0x3565ab,_0x32ed3e){const _0x5159d8=a82_0x5159();return a82_0x16f2=function(_0x16f291,_0x4d7d65){_0x16f291=_0x16f291-0x1b0;let _0x2b7a1f=_0x5159d8[_0x16f291];return _0x2b7a1f;},a82_0x16f2(_0x3565ab,_0x32ed3e);}const a82_0x2beb1f={};a82_0x2beb1f['spy']=spy,a82_0x2beb1f['restore']=restore,module[a82_0x43e3c0(0x1ce)]=a82_0x2beb1f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83_0x3f7c28=a83_0x56db;(function(_0x38a598,_0x108393){const _0x4689f0=a83_0x56db,_0x37e27d=_0x38a598();while(!![]){try{const _0x5e5d0d=-parseInt(_0x4689f0(0x1c9))/0x1*(parseInt(_0x4689f0(0x1bf))/0x2)+-parseInt(_0x4689f0(0x1b2))/0x3+parseInt(_0x4689f0(0x1b5))/0x4+-parseInt(_0x4689f0(0x1ad))/0x5*(-parseInt(_0x4689f0(0x1c0))/0x6)+parseInt(_0x4689f0(0x1ac))/0x7*(parseInt(_0x4689f0(0x1c6))/0x8)+-parseInt(_0x4689f0(0x1b8))/0x9+-parseInt(_0x4689f0(0x1cd))/0xa;if(_0x5e5d0d===_0x108393)break;else _0x37e27d['push'](_0x37e27d['shift']());}catch(_0x3e1867){_0x37e27d['push'](_0x37e27d['shift']());}}}(a83_0x461b,0xe53f0));function a83_0x461b(){const _0x545a9b=['10717zlzgai','5065395giVtsF','keepAlive','ATnyn','Agent','exports','3978288zmelOO','http','qvCeJ','5395516MXpgio','GBvqG','https:','2425905XXjxEX','keepAliveMsecs','call','whqza','agent','./performance/constants','XcFkt','22298wMOvEZ','6Bpifcm','protocol','./performance/performance-tester','fHOuY','globalAgent','request','9176eZhIBX','measureWrapper','prototype','59RcZeVI','hasOwnProperty','qFgmp','https','9255910jtOCBQ'];a83_0x461b=function(){return _0x545a9b;};return a83_0x461b();}const PerformanceTester=require(a83_0x3f7c28(0x1c2)),{AUTOMATE_EVENTS:PerformanceEvents}=require(a83_0x3f7c28(0x1bd));function a83_0x56db(_0x63c39e,_0x612018){const _0x461b2e=a83_0x461b();return a83_0x56db=function(_0x56db1b,_0x5e22f0){_0x56db1b=_0x56db1b-0x1ac;let _0x2dcd95=_0x461b2e[_0x56db1b];return _0x2dcd95;},a83_0x56db(_0x63c39e,_0x612018);}module[a83_0x3f7c28(0x1b1)]=PerformanceTester[a83_0x3f7c28(0x1c7)](PerformanceEvents['KEEP_ALIVE'],function(){const _0x419a8f=a83_0x3f7c28,_0x2a40f7={'yMKFZ':function(_0x535cc7,_0x2f5831){return _0x535cc7===_0x2f5831;},'XcFkt':_0x419a8f(0x1b7),'GBvqG':_0x419a8f(0x1bc),'qvCeJ':function(_0xe4eaf9,_0x32d066,_0x3d9eaa){return _0xe4eaf9(_0x32d066,_0x3d9eaa);},'qFgmp':function(_0x37d754,_0x20f932){return _0x37d754(_0x20f932);},'ATnyn':_0x419a8f(0x1b3),'xsFUD':function(_0x3bbea1,_0xe9c39f){return _0x3bbea1(_0xe9c39f);},'fHOuY':_0x419a8f(0x1cc),'whqza':function(_0x500c0c,_0x5bb24a){return _0x500c0c*_0x5bb24a;},'dXkDY':_0x419a8f(0x1ae)},_0x54e6aa=_0x2a40f7[_0x419a8f(0x1cb)](require,_0x2a40f7[_0x419a8f(0x1af)]),_0x4924d9=_0x2a40f7['xsFUD'](require,_0x2a40f7[_0x419a8f(0x1c3)]),_0x1a4dc5=_0x2a40f7[_0x419a8f(0x1bb)](0x1e,0x3e8);if(_0x54e6aa[_0x419a8f(0x1c4)]&&Object[_0x419a8f(0x1c8)][_0x419a8f(0x1ca)][_0x419a8f(0x1ba)](_0x54e6aa[_0x419a8f(0x1c4)],_0x2a40f7['dXkDY']))_0x54e6aa[_0x419a8f(0x1c4)]['keepAlive']=!![],_0x4924d9[_0x419a8f(0x1c4)][_0x419a8f(0x1ae)]=!![],_0x54e6aa[_0x419a8f(0x1c4)][_0x419a8f(0x1b9)]=_0x1a4dc5,_0x4924d9[_0x419a8f(0x1c4)][_0x419a8f(0x1b9)]=_0x1a4dc5;else{const _0x52881f={};_0x52881f['keepAlive']=!![],_0x52881f[_0x419a8f(0x1b9)]=_0x1a4dc5;const _0xbd26b4=new _0x54e6aa[(_0x419a8f(0x1b0))](_0x52881f),_0x4d8963={};_0x4d8963['keepAlive']=!![],_0x4d8963['keepAliveMsecs']=_0x1a4dc5;const _0x5307d7=new _0x4924d9['Agent'](_0x4d8963),_0x5b8531=_0x54e6aa[_0x419a8f(0x1c5)],_0x71ca05=_0x4924d9['request'];_0x54e6aa['request']=function(_0x217e3c,_0x2cc3d3){const _0x2fa642=_0x419a8f;if(_0x2a40f7['yMKFZ'](_0x217e3c[_0x2fa642(0x1c1)],_0x2a40f7[_0x2fa642(0x1be)]))return _0x217e3c[_0x2a40f7[_0x2fa642(0x1b6)]]=_0x5307d7,_0x2a40f7['qvCeJ'](_0x71ca05,_0x217e3c,_0x2cc3d3);return _0x217e3c[_0x2a40f7[_0x2fa642(0x1b6)]]=_0xbd26b4,_0x2a40f7[_0x2fa642(0x1b4)](_0x5b8531,_0x217e3c,_0x2cc3d3);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a84_0x4909cc=a84_0x32f5;(function(_0x5a653f,_0x5cbe6b){var _0xbdf4c9=a84_0x32f5,_0x13609a=_0x5a653f();while(!![]){try{var _0x37d692=-parseInt(_0xbdf4c9(0x1ce))/0x1+parseInt(_0xbdf4c9(0x1c2))/0x2*(-parseInt(_0xbdf4c9(0x1c5))/0x3)+parseInt(_0xbdf4c9(0x1bf))/0x4*(parseInt(_0xbdf4c9(0x1cc))/0x5)+parseInt(_0xbdf4c9(0x1c9))/0x6+parseInt(_0xbdf4c9(0x1c1))/0x7+parseInt(_0xbdf4c9(0x1c4))/0x8*(-parseInt(_0xbdf4c9(0x1cf))/0x9)+parseInt(_0xbdf4c9(0x1bb))/0xa;if(_0x37d692===_0x5cbe6b)break;else _0x13609a['push'](_0x13609a['shift']());}catch(_0x27df9a){_0x13609a['push'](_0x13609a['shift']());}}}(a84_0x2179,0xc56a1));function a84_0x32f5(_0x371db1,_0x35e79c){var _0x2179ab=a84_0x2179();return a84_0x32f5=function(_0x32f5fd,_0x13812d){_0x32f5fd=_0x32f5fd-0x1b9;var _0x5cb056=_0x2179ab[_0x32f5fd];return _0x5cb056;},a84_0x32f5(_0x371db1,_0x35e79c);}var a84_0x10fc1c={};function a84_0x2179(){var _0x1006e3=['CODECEPT_CUCUMBER','Playwright','1044fgvGDI','cucumber','4457936laMSPr','143854QzIHAe','api/v1/screenshots','12910864lHUSGR','54HyHHyf','https://upload-observability.browserstack.com','upload-attachments','jest','6919062bDfXui','assign','codeceptjs','18235oHxWvo','CODECEPT','307137FMezhj','9GppmBt','api/v1/event','PLAYWRIGHT','mocha','.obs_test_details','JEST','api/v1/batch','CUCUMBER','12823980GmQmQS','https://collector-observability.browserstack.com'];a84_0x2179=function(){return _0x1006e3;};return a84_0x2179();}a84_0x10fc1c[a84_0x4909cc(0x1d1)]=a84_0x4909cc(0x1be),a84_0x10fc1c['MOCHA']=a84_0x4909cc(0x1d2),a84_0x10fc1c[a84_0x4909cc(0x1cd)]=a84_0x4909cc(0x1cb),a84_0x10fc1c[a84_0x4909cc(0x1bd)]='codeceptjs-cucumber',a84_0x10fc1c[a84_0x4909cc(0x1d4)]=a84_0x4909cc(0x1c8),a84_0x10fc1c[a84_0x4909cc(0x1ba)]=a84_0x4909cc(0x1c0),module['exports']={'consoleHolder':Object[a84_0x4909cc(0x1ca)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a84_0x4909cc(0x1bc),'OBSERVABILITY_UPLOAD_API_URL':a84_0x4909cc(0x1c6),'EVENT_ENDPOINT':a84_0x4909cc(0x1d0),'BATCH_ENDPOINT':a84_0x4909cc(0x1b9),'SCREENSHOT_ENDPOINT':a84_0x4909cc(0x1c3),'UPLOAD_ATTACHMENT_ENDPOINT':a84_0x4909cc(0x1c7),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE':0x64*0x400*0x400,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':a84_0x4909cc(0x1d3),'FRAMEWORKS':a84_0x10fc1c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a85_0x2d3823=a85_0x2058;function a85_0x2058(_0x3b26aa,_0x2e9c03){const _0x2d99ba=a85_0x2d99();return a85_0x2058=function(_0x20586a,_0x303eee){_0x20586a=_0x20586a-0x19c;let _0x167555=_0x2d99ba[_0x20586a];return _0x167555;},a85_0x2058(_0x3b26aa,_0x2e9c03);}(function(_0x2b4ae1,_0x3bb0d1){const _0x1bf57c=a85_0x2058,_0x4350cc=_0x2b4ae1();while(!![]){try{const _0x3dfa9d=parseInt(_0x1bf57c(0x1b2))/0x1+-parseInt(_0x1bf57c(0x1e8))/0x2*(-parseInt(_0x1bf57c(0x1d4))/0x3)+-parseInt(_0x1bf57c(0x209))/0x4*(-parseInt(_0x1bf57c(0x1e5))/0x5)+parseInt(_0x1bf57c(0x1a8))/0x6+parseInt(_0x1bf57c(0x1f0))/0x7+-parseInt(_0x1bf57c(0x1ce))/0x8+-parseInt(_0x1bf57c(0x1c6))/0x9;if(_0x3dfa9d===_0x3bb0d1)break;else _0x4350cc['push'](_0x4350cc['shift']());}catch(_0x4a269a){_0x4350cc['push'](_0x4350cc['shift']());}}}(a85_0x2d99,0x44afa));const util=require(a85_0x2d3823(0x1ea)),PerformanceTester=require(a85_0x2d3823(0x1e7)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require(a85_0x2d3823(0x1b3)),o11yErrorHandler=(_0x4022ed,_0x93fb87='',_0x3907a4=[''],_0x42bd52=![])=>{const _0x4333c2={'dkMmP':function(_0x1ce66d,_0x3a7404){return _0x1ce66d(_0x3a7404);},'jnZeG':function(_0x43cbd8,_0x48e835,_0x51c511){return _0x43cbd8(_0x48e835,_0x51c511);},'zITvb':function(_0x4c6590,_0x26e8b4){return _0x4c6590(_0x26e8b4);},'wQvte':function(_0x5cfb58,_0x49ac3e,_0x2cf045){return _0x5cfb58(_0x49ac3e,_0x2cf045);},'WcDzO':function(_0x48cb64,_0x501b55){return _0x48cb64 instanceof _0x501b55;},'nRoKc':function(_0x2c082a,_0x4b8941,_0x2a8b7b,_0x41e124,_0x5d443b){return _0x2c082a(_0x4b8941,_0x2a8b7b,_0x41e124,_0x5d443b);}};return function(..._0x11e0c0){const _0x532bbf=a85_0x2058;try{let _0x20d6d3=_0x4022ed;process[_0x532bbf(0x1b9)][_0x532bbf(0x1ec)]&&(_0x20d6d3=PerformanceTester['getPerformance']()['timerify'](_0x20d6d3));_0x42bd52&&_0x4333c2[_0x532bbf(0x1ed)](trace,_0x532bbf(0x1be)+_0x93fb87+_0x532bbf(0x1b7)+process[_0x532bbf(0x205)]+_0x532bbf(0x1bf)+_0x4333c2[_0x532bbf(0x1c4)](nestedKeyValue,arguments[0x0],_0x3907a4));const _0x2b7d17=_0x20d6d3[_0x532bbf(0x1ab)](null,arguments);_0x42bd52&&_0x4333c2[_0x532bbf(0x1c3)](trace,_0x532bbf(0x1ba)+_0x93fb87+_0x532bbf(0x1b7)+process[_0x532bbf(0x205)]+_0x532bbf(0x1bf)+_0x4333c2[_0x532bbf(0x1b6)](nestedKeyValue,arguments[0x0],_0x3907a4));if(_0x4333c2['WcDzO'](_0x2b7d17,Promise))return _0x2b7d17['catch'](_0x398026=>processError(_0x398026,_0x4022ed,_0x11e0c0,_0x93fb87));return _0x2b7d17;}catch(_0xa535c3){_0x4333c2[_0x532bbf(0x1a2)](processError,_0xa535c3,_0x4022ed,_0x11e0c0,_0x93fb87);}};},o11yClassErrorHandler=(_0x1d6d01,_0x2ecbcb,_0x18714c='')=>{const _0x4a6c88=a85_0x2d3823,_0x2609da={'HtBEa':function(_0x140796,_0x322aec){return _0x140796 instanceof _0x322aec;},'SKUfR':function(_0x1ad725,_0x44f771,_0x409b5e,_0x32d919,_0x4848b1){return _0x1ad725(_0x44f771,_0x409b5e,_0x32d919,_0x4848b1);},'MLbym':function(_0x26efe3,_0x21955e){return _0x26efe3===_0x21955e;},'sLhoT':_0x4a6c88(0x1ad),'vGDJP':function(_0x4322c7,_0x43c237){return _0x4322c7!==_0x43c237;},'gcYhj':_0x4a6c88(0x1c8),'boyfy':function(_0x3a0425,_0x1e3658){return _0x3a0425<_0x1e3658;}},_0x3ec613=_0x1d6d01['prototype'];if(_0x2609da['boyfy'](Object[_0x4a6c88(0x1c5)](_0x3ec613)[_0x4a6c88(0x1c0)],0x2))return _0x1d6d01;return Object[_0x4a6c88(0x1c5)](_0x3ec613)[_0x4a6c88(0x203)](_0x29bd4a=>{const _0x2efda0=_0x4a6c88,_0x3459cc={'VXQZh':function(_0x218f4e,_0x390c3f){const _0x584cf2=a85_0x2058;return _0x2609da[_0x584cf2(0x1f2)](_0x218f4e,_0x390c3f);},'vaPdx':function(_0x5d9259,_0x45bb57,_0x3b1c3b,_0x2970ca,_0xd5e014){return _0x2609da['SKUfR'](_0x5d9259,_0x45bb57,_0x3b1c3b,_0x2970ca,_0xd5e014);}};if(!(_0x2ecbcb&&_0x2ecbcb[_0x2efda0(0x1d5)](_0x29bd4a)))return;const _0x302ab0=_0x3ec613[_0x29bd4a];_0x2609da['MLbym'](typeof _0x302ab0,_0x2609da[_0x2efda0(0x1da)])&&_0x2609da[_0x2efda0(0x1d3)](_0x29bd4a,_0x2609da[_0x2efda0(0x1ca)])&&Object[_0x2efda0(0x1c1)](_0x3ec613,_0x29bd4a,{'writable':!![],'value':function(..._0x45d2ab){const _0x14a219=_0x2efda0;try{const _0x356b8f=(process[_0x14a219(0x1b9)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester['getPerformance']()['timerify'](_0x302ab0):_0x302ab0)[_0x14a219(0x1f1)](this,..._0x45d2ab);if(_0x3459cc[_0x14a219(0x19f)](_0x356b8f,Promise))return _0x356b8f['catch'](_0x21f922=>processError(_0x21f922,_0x302ab0,_0x45d2ab,_0x18714c));return _0x356b8f;}catch(_0x137a58){_0x3459cc[_0x14a219(0x1ae)](processError,_0x137a58,_0x302ab0,_0x45d2ab,_0x18714c);}}});}),_0x1d6d01;};function processError(_0x418690,_0x31c0ec,_0x269b3c,_0x5a305d){const _0x9be4ae=a85_0x2d3823,_0x55c61d={'RDLEk':function(_0xb4ca51,_0x1f7820){return _0xb4ca51(_0x1f7820);}};_0x55c61d[_0x9be4ae(0x1a6)](debug,_0x9be4ae(0x1e6)+_0x31c0ec[_0x9be4ae(0x1ac)]+_0x9be4ae(0x1f7)+_0x5a305d+_0x9be4ae(0x1a4)+_0x418690+_0x9be4ae(0x204)+_0x269b3c+'.'),PerformanceTester[_0x9be4ae(0x19d)](_0x418690);let _0x33ab6e;try{_0x33ab6e=JSON[_0x9be4ae(0x201)](_0x269b3c);}catch(_0x173497){const _0x26383a={};_0x26383a[_0x9be4ae(0x200)]=0x2,_0x33ab6e=util['inspect'](_0x269b3c,_0x26383a);}CrashReporter[_0x9be4ae(0x1c2)](_0x9be4ae(0x1e6)+_0x31c0ec[_0x9be4ae(0x1ac)]+'\x20--\x20'+_0x5a305d+_0x9be4ae(0x1a4)+_0x418690+'.\x20Args\x20-\x20'+_0x33ab6e+'.',_0x418690&&_0x418690[_0x9be4ae(0x1a1)]);}class CrashReporter{static [a85_0x2d3823(0x1fc)]={};static [a85_0x2d3823(0x1dc)];static [a85_0x2d3823(0x19c)]={};static['initialize'](_0x4c6a85,_0x580268,_0x38ff4d=null){const _0x239a74=a85_0x2d3823,_0x619d01={'dIojJ':function(_0x432a81,_0x4692be){return _0x432a81(_0x4692be);},'Utccj':function(_0x307961,_0x216254){return _0x307961(_0x216254);}},_0x41dd7f=_0x4c6a85[_0x239a74(0x1e4)],_0x23d5fb=_0x4c6a85[_0x239a74(0x1d9)];!_0x38ff4d&&(_0x38ff4d=_0x619d01[_0x239a74(0x1fe)](getBrowserStackConfig,_0x41dd7f));!_0x23d5fb&&_0x619d01[_0x239a74(0x1fe)](getFrameworkVersion,_0x41dd7f);const _0xe77557={};_0xe77557[_0x239a74(0x1e4)]=_0x41dd7f,_0xe77557[_0x239a74(0x1d9)]=_0x23d5fb,this[_0x239a74(0x1eb)](_0xe77557,_0x580268,_0x619d01[_0x239a74(0x1d8)](getUserCredentials,_0x38ff4d));}static[a85_0x2d3823(0x1de)](_0x541ec1,_0x236aaf){const _0x56c7d4=a85_0x2d3823,_0x405f99={};_0x405f99['username']=_0x541ec1,_0x405f99['accessKey']=_0x236aaf,this[_0x56c7d4(0x1dc)]=_0x405f99,process['env']['CREDENTIALS_FOR_CRASH_REPORTING']=JSON['stringify'](this[_0x56c7d4(0x1dc)]);}static['getCredentials'](){const _0x41b876=a85_0x2d3823,_0x4bca67={'xjCff':function(_0x15f8c8,_0x661026){return _0x15f8c8(_0x661026);}};if(!this[_0x41b876(0x1dc)]&&process[_0x41b876(0x1b9)]['CREDENTIALS_FOR_CRASH_REPORTING'])try{this['credentials']=JSON['parse'](process[_0x41b876(0x1b9)][_0x41b876(0x1fa)]);}catch(_0xd43d09){_0x4bca67[_0x41b876(0x1d6)](debug,_0x41b876(0x208)+_0xd43d09['toString']());}return this['credentials'];}static['setConfigDetails'](_0x2b1133){const _0x5472a8=a85_0x2d3823;this[_0x5472a8(0x1fc)]=this[_0x5472a8(0x1d1)](_0x2b1133),process[_0x5472a8(0x1b9)]['USER_CONFIG_FOR_REPORTING']=JSON['stringify'](this[_0x5472a8(0x1fc)]);}static['getConfig'](){const _0x190a7e=a85_0x2d3823,_0x195047={'RjSbT':function(_0x1168e5,_0x4b1afc){return _0x1168e5===_0x4b1afc;},'fQCUv':function(_0x3d5978,_0xbe239){return _0x3d5978(_0xbe239);}};if(_0x195047['RjSbT'](Object[_0x190a7e(0x1e1)](this[_0x190a7e(0x1fc)])[_0x190a7e(0x1c0)],0x0)&&process[_0x190a7e(0x1b9)][_0x190a7e(0x207)])try{this[_0x190a7e(0x1fc)]=JSON[_0x190a7e(0x1dd)](process[_0x190a7e(0x1b9)][_0x190a7e(0x207)]);}catch(_0x5bac34){_0x195047[_0x190a7e(0x1bc)](debug,_0x190a7e(0x1e9)+_0x5bac34[_0x190a7e(0x206)]()),this['userConfig']={};}return this[_0x190a7e(0x1fc)];}static[a85_0x2d3823(0x1c9)](_0x444b71){const _0x229909=a85_0x2d3823;this['frameworkDetails']=_0x444b71,process[_0x229909(0x1b9)][_0x229909(0x1aa)]=JSON[_0x229909(0x201)](this[_0x229909(0x19c)]);}static[a85_0x2d3823(0x1f3)](){const _0x512d98=a85_0x2d3823,_0x490641={'NXaCO':function(_0x38cfa5,_0x2a6f10){return _0x38cfa5===_0x2a6f10;},'ZYQbX':function(_0x16f446,_0x19a9a5){return _0x16f446(_0x19a9a5);}};if(_0x490641[_0x512d98(0x1d7)](Object[_0x512d98(0x1e1)](this[_0x512d98(0x19c)])[_0x512d98(0x1c0)],0x0)&&process[_0x512d98(0x1b9)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x512d98(0x19c)]=JSON['parse'](process[_0x512d98(0x1b9)][_0x512d98(0x1aa)]);}catch(_0x1b5d4a){_0x490641[_0x512d98(0x1cd)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x1b5d4a[_0x512d98(0x206)]());}return this[_0x512d98(0x19c)];}static[a85_0x2d3823(0x1eb)](_0x36e192,_0x2bbcbf,_0x2cc68d){const _0x16c932=a85_0x2d3823;_0x36e192&&this['setFrameworkDetails'](_0x36e192),_0x2bbcbf&&this[_0x16c932(0x202)](_0x2bbcbf),_0x2cc68d&&this[_0x16c932(0x1de)](_0x2cc68d[_0x16c932(0x1f4)],_0x2cc68d[_0x16c932(0x1ff)]);}static async['uploadCrashReport'](_0x5c8200,_0xca870a){const _0x3dabe3=a85_0x2d3823,_0x354175={'wyncn':function(_0x301fad,_0x2670c4){return _0x301fad(_0x2670c4);},'PtZdv':function(_0x354a7f,_0x3d2a07){return _0x354a7f(_0x3d2a07);},'sHMbo':_0x3dabe3(0x1f8),'tNtca':function(_0x3fa095){return _0x3fa095();},'CKTcE':'/api/v1/analytics','rkhgp':_0x3dabe3(0x1af),'quqkL':_0x3dabe3(0x1b5),'quhFX':function(_0x5288f5,_0x3910dd,_0x30e1c6,_0x3a83e1,_0x16ce58,_0x5a9ccf){return _0x5288f5(_0x3910dd,_0x30e1c6,_0x3a83e1,_0x16ce58,_0x5a9ccf);},'rWfcp':_0x3dabe3(0x1fb)};this[_0x3dabe3(0x1a9)]();if(!this['credentials'])return _0x354175[_0x3dabe3(0x1a3)](debug,_0x354175[_0x3dabe3(0x1e2)]);this[_0x3dabe3(0x1f9)](),this[_0x3dabe3(0x1f3)]();const _0x1fcdf1={'hashed_id':process[_0x3dabe3(0x1b9)][_0x3dabe3(0x1a0)],'observability_version':{'sdkVersion':_0x354175[_0x3dabe3(0x1bd)](getAgentVersion),'frameworkName':this[_0x3dabe3(0x19c)][_0x3dabe3(0x1e4)],'frameworkVersion':this[_0x3dabe3(0x19c)][_0x3dabe3(0x1d9)]},'exception':{'error':_0x5c8200['toString'](),'stackTrace':_0xca870a},'config':this[_0x3dabe3(0x1fc)]},_0x13491e=_0x354175['CKTcE'],_0x295cef={};_0x295cef[_0x3dabe3(0x1f4)]=this[_0x3dabe3(0x1dc)][_0x3dabe3(0x1f4)],_0x295cef[_0x3dabe3(0x1b4)]=this['credentials'][_0x3dabe3(0x1ff)];const _0x1ccaca={};_0x1ccaca[_0x3dabe3(0x1b0)]=_0x354175[_0x3dabe3(0x1bb)],_0x1ccaca[_0x3dabe3(0x1f5)]=_0x354175['quqkL'];const _0x261317={};_0x261317[_0x3dabe3(0x1db)]=_0x295cef,_0x261317[_0x3dabe3(0x1fd)]=_0x1ccaca;const _0x2404ee=_0x261317;_0x354175[_0x3dabe3(0x1cf)](nodeRequest,_0x354175[_0x3dabe3(0x1df)],_0x13491e,_0x1fcdf1,_0x2404ee,![])[_0x3dabe3(0x1a5)](_0x3a8265=>{const _0xdcdc43=_0x3dabe3;_0x354175[_0xdcdc43(0x1d0)](debug,_0xdcdc43(0x1cc)+JSON[_0xdcdc43(0x201)](_0x3a8265));})[_0x3dabe3(0x1d2)](_0x23a4f8=>{const _0x55587e=_0x3dabe3;_0x354175[_0x55587e(0x1d0)](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util['format'](_0x23a4f8));});}static[a85_0x2d3823(0x19e)](_0x4075f3){const _0x2b62f5=a85_0x2d3823,_0x112ec5={};_0x112ec5[_0x2b62f5(0x1c7)]='user',_0x112ec5[_0x2b62f5(0x1ee)]=_0x2b62f5(0x1f4),_0x112ec5['IPDrX']=_0x2b62f5(0x1a7),_0x112ec5[_0x2b62f5(0x1e0)]=_0x2b62f5(0x1ff),_0x112ec5[_0x2b62f5(0x1b8)]='password',_0x112ec5[_0x2b62f5(0x1ef)]=function(_0x663fe6,_0x2f1e87){return _0x663fe6===_0x2f1e87;},_0x112ec5[_0x2b62f5(0x1e3)]=_0x2b62f5(0x1cb);const _0x4517fa=_0x112ec5;if(!_0x4075f3)return;const _0x3f2acb=[_0x4517fa['QdvCn'],_0x4517fa[_0x2b62f5(0x1ee)],_0x4517fa[_0x2b62f5(0x1f6)],_0x4517fa['zLSVV'],_0x4517fa['YqIeO']];for(const _0x5a87f3 in _0x4075f3){if(_0x3f2acb['includes'](_0x5a87f3['toLowerCase']()))delete _0x4075f3[_0x5a87f3];else _0x4517fa[_0x2b62f5(0x1ef)](typeof _0x4075f3[_0x5a87f3],_0x4517fa[_0x2b62f5(0x1e3)])&&this[_0x2b62f5(0x19e)](_0x4075f3[_0x5a87f3]);}}static['filterPII'](_0x391125){const _0x5e2e6f=a85_0x2d3823,_0x1f9064=JSON['parse'](JSON['stringify'](_0x391125));return this[_0x5e2e6f(0x19e)](_0x1f9064),_0x1f9064;}}function a85_0x2d99(){const _0x25433e=['apply','name','function','vaPdx','application/json','Content-Type','exports','2633avLawY','../helper','password','true','wQvte',',\x20PID\x20-\x20','YqIeO','env','Finished\x20::\x20','rkhgp','fQCUv','tNtca','Started\x20::\x20',',\x20Argument\x20-\x20','length','defineProperty','uploadCrashReport','zITvb','jnZeG','getOwnPropertyNames','6755076NyaxbW','QdvCn','constructor','setFrameworkDetails','gcYhj','object','[Crash_Report_Upload]\x20Success\x20response:\x20','ZYQbX','1179656uDIVVi','quhFX','wyncn','filterPII','catch','vGDJP','135663LwtsDr','includes','xjCff','NXaCO','Utccj','frameworkVersion','sLhoT','auth','credentials','parse','setCredentials','rWfcp','zLSVV','keys','sHMbo','zygXz','frameworkName','5obymDZ','Error\x20in\x20executing\x20','../performance/performance-tester','10CRHwoN','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','util','setAllDetails','BROWSERSTACK_O11Y_PERF_MEASUREMENT','dkMmP','oMNFq','UuIAD','2782325zHZWjt','call','HtBEa','getFramework','username','X-BSTACK-TESTOPS','IPDrX','\x20--\x20','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','getConfig','CREDENTIALS_FOR_CRASH_REPORTING','POST','userConfig','headers','dIojJ','accessKey','depth','stringify','setConfigDetails','forEach','.\x20Args\x20-\x20','pid','toString','USER_CONFIG_FOR_REPORTING','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','1134088mjAhJp','frameworkDetails','captureError','recursivelyDeletePIIKeysFromObject','VXQZh','BS_TESTOPS_BUILD_HASHED_ID','stack','nRoKc','PtZdv','.\x20Error\x20-\x20','then','RDLEk','key','1617744PNzOVx','getCredentials','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'];a85_0x2d99=function(){return _0x25433e;};return a85_0x2d99();}const a85_0x50b557={};a85_0x50b557['o11yErrorHandler']=o11yErrorHandler,a85_0x50b557['o11yClassErrorHandler']=o11yClassErrorHandler,a85_0x50b557['CrashReporter']=CrashReporter,module[a85_0x2d3823(0x1b1)]=a85_0x50b557;
|
|
1
|
+
const a85_0x3a4e12=a85_0x2fc2;(function(_0x37dd50,_0x9ed094){const _0x578d6c=a85_0x2fc2,_0x278b88=_0x37dd50();while(!![]){try{const _0x25384c=parseInt(_0x578d6c(0x1fc))/0x1+-parseInt(_0x578d6c(0x231))/0x2+-parseInt(_0x578d6c(0x20d))/0x3+parseInt(_0x578d6c(0x22b))/0x4+-parseInt(_0x578d6c(0x228))/0x5+-parseInt(_0x578d6c(0x23f))/0x6+parseInt(_0x578d6c(0x1e9))/0x7;if(_0x25384c===_0x9ed094)break;else _0x278b88['push'](_0x278b88['shift']());}catch(_0x238556){_0x278b88['push'](_0x278b88['shift']());}}}(a85_0x28af,0x90f66));const util=require(a85_0x3a4e12(0x222)),PerformanceTester=require(a85_0x3a4e12(0x1ed)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a85_0x3a4e12(0x219)),{getAgentVersion,nestedKeyValue}=require(a85_0x3a4e12(0x234)),o11yErrorHandler=(_0x30b291,_0x2da0f2='',_0x20699e=[''],_0x46bd78=![])=>{const _0x5a140e={'hQwaP':function(_0x5388a0,_0x8e2dd1){return _0x5388a0(_0x8e2dd1);},'zFuJD':function(_0x7693c7,_0x2268e2,_0x2cce9f){return _0x7693c7(_0x2268e2,_0x2cce9f);},'oeydb':function(_0x21b28d,_0x4aa02e){return _0x21b28d(_0x4aa02e);},'nCYer':function(_0x485107,_0x4debc1,_0x1b4489){return _0x485107(_0x4debc1,_0x1b4489);},'XnWBL':function(_0x3d34b5,_0x2cc1a3){return _0x3d34b5 instanceof _0x2cc1a3;},'RIakj':function(_0x4575f2,_0xc93344,_0x433be2,_0x1efdb7,_0x1d9cb2){return _0x4575f2(_0xc93344,_0x433be2,_0x1efdb7,_0x1d9cb2);}};return function(..._0x4a4438){const _0x592340=a85_0x2fc2;try{let _0x1f42c6=_0x30b291;process[_0x592340(0x244)][_0x592340(0x202)]&&(_0x1f42c6=PerformanceTester[_0x592340(0x20c)]()[_0x592340(0x1e5)](_0x1f42c6));_0x46bd78&&_0x5a140e['hQwaP'](trace,_0x592340(0x20e)+_0x2da0f2+_0x592340(0x1ff)+process['pid']+_0x592340(0x23a)+_0x5a140e[_0x592340(0x1da)](nestedKeyValue,arguments[0x0],_0x20699e));const _0x3daf91=_0x1f42c6[_0x592340(0x208)](null,arguments);_0x46bd78&&_0x5a140e['oeydb'](trace,_0x592340(0x1e7)+_0x2da0f2+_0x592340(0x1ff)+process[_0x592340(0x1f1)]+_0x592340(0x23a)+_0x5a140e[_0x592340(0x243)](nestedKeyValue,arguments[0x0],_0x20699e));if(_0x5a140e[_0x592340(0x22c)](_0x3daf91,Promise))return _0x3daf91['catch'](_0x472987=>processError(_0x472987,_0x30b291,_0x4a4438,_0x2da0f2));return _0x3daf91;}catch(_0x5945d3){_0x5a140e['RIakj'](processError,_0x5945d3,_0x30b291,_0x4a4438,_0x2da0f2);}};},o11yClassErrorHandler=(_0x47ad3a,_0x3a529c,_0x4c427d='')=>{const _0x3672e0=a85_0x3a4e12,_0x44b84d={'fJIox':function(_0x3cb422,_0x7cb4c0){return _0x3cb422 instanceof _0x7cb4c0;},'DPNch':function(_0xedf3c6,_0x1af304,_0x3e1e39,_0x18df9a,_0x4d09ad){return _0xedf3c6(_0x1af304,_0x3e1e39,_0x18df9a,_0x4d09ad);},'MSRob':function(_0x15e820,_0x1dda65){return _0x15e820===_0x1dda65;},'yKktM':_0x3672e0(0x21b),'GUEQo':function(_0x455322,_0x2a3680){return _0x455322!==_0x2a3680;},'JJQnB':'constructor','BULFe':function(_0x445e9e,_0x3ff042){return _0x445e9e<_0x3ff042;}},_0x1be1a1=_0x47ad3a[_0x3672e0(0x225)];if(_0x44b84d[_0x3672e0(0x20b)](Object['getOwnPropertyNames'](_0x1be1a1)['length'],0x2))return _0x47ad3a;return Object[_0x3672e0(0x215)](_0x1be1a1)[_0x3672e0(0x1f9)](_0x4cba04=>{const _0x10d0ae=_0x3672e0,_0x25408a={'URiJK':function(_0xc53bf7,_0x557a09){const _0x3d03b6=a85_0x2fc2;return _0x44b84d[_0x3d03b6(0x229)](_0xc53bf7,_0x557a09);},'TEYAr':function(_0x45956e,_0x23f047,_0x6420b1,_0x3915e8,_0x4414de){const _0x282b36=a85_0x2fc2;return _0x44b84d[_0x282b36(0x22d)](_0x45956e,_0x23f047,_0x6420b1,_0x3915e8,_0x4414de);}};if(!(_0x3a529c&&_0x3a529c[_0x10d0ae(0x204)](_0x4cba04)))return;const _0x4ceaf4=_0x1be1a1[_0x4cba04];_0x44b84d[_0x10d0ae(0x20f)](typeof _0x4ceaf4,_0x44b84d[_0x10d0ae(0x213)])&&_0x44b84d['GUEQo'](_0x4cba04,_0x44b84d[_0x10d0ae(0x1ec)])&&Object['defineProperty'](_0x1be1a1,_0x4cba04,{'writable':!![],'value':function(..._0xaea1ac){const _0x1babcb=_0x10d0ae;try{const _0x4d89db=(process[_0x1babcb(0x244)][_0x1babcb(0x202)]?PerformanceTester['getPerformance']()[_0x1babcb(0x1e5)](_0x4ceaf4):_0x4ceaf4)[_0x1babcb(0x21f)](this,..._0xaea1ac);if(_0x25408a['URiJK'](_0x4d89db,Promise))return _0x4d89db['catch'](_0xca570e=>processError(_0xca570e,_0x4ceaf4,_0xaea1ac,_0x4c427d));return _0x4d89db;}catch(_0x4fc88e){_0x25408a[_0x1babcb(0x1e1)](processError,_0x4fc88e,_0x4ceaf4,_0xaea1ac,_0x4c427d);}}});}),_0x47ad3a;};function a85_0x2fc2(_0x17897c,_0xbe4c07){const _0x28af92=a85_0x28af();return a85_0x2fc2=function(_0x2fc264,_0x605ba0){_0x2fc264=_0x2fc264-0x1d8;let _0x1252f7=_0x28af92[_0x2fc264];return _0x1252f7;},a85_0x2fc2(_0x17897c,_0xbe4c07);}function a85_0x28af(){const _0x527658=['POST','ERIIX','apply','oKzdQ','suGmp','BULFe','getPerformance','1344387YstqfR','Started\x20::\x20','MSRob','OXJck','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','frameworkVersion','yKktM','\x20--\x20','getOwnPropertyNames','yqQCS','EPUrw','setFrameworkDetails','./utils','initialize','function','KjJqF','recursivelyDeletePIIKeysFromObject','frameworkDetails','call','fhEUS','auth','util','name','setConfigDetails','prototype','hlWhu','EYaOi','2540215DSYjdg','fJIox','kPaeK','1948852ZDpvSr','XnWBL','DPNch','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','oTMIy','format','2115092rsJlcE','user','/api/v1/analytics','../helper','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','toLowerCase','filterPII','CrashReporter','CREDENTIALS_FOR_CRASH_REPORTING',',\x20Argument\x20-\x20','toString','headers','credentials','password','214950tFMebB','true','BS_TESTOPS_BUILD_HASHED_ID','iOcDu','nCYer','env','key','.\x20Error\x20-\x20','zFuJD','parse','username','OtoIP','inspect','uploadCrashReport','setAllDetails','TEYAr','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','BzCew','setCredentials','timerify','cKCfT','Finished\x20::\x20','exports','11696440tkYZBM','.\x20Args\x20-\x20','Error\x20in\x20executing\x20','JJQnB','../performance/performance-tester','REpUm','o11yClassErrorHandler','koPGT','pid','then','getCredentials','USER_CONFIG_FOR_REPORTING','YWTlV','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','kYclU','stringify','forEach','userConfig','Content-Type','485176ndJpMg','getFramework','frameworkName',',\x20PID\x20-\x20','accessKey','depth','BROWSERSTACK_O11Y_PERF_MEASUREMENT','length','includes','o11yErrorHandler'];a85_0x28af=function(){return _0x527658;};return a85_0x28af();}function processError(_0x5df81a,_0x44117f,_0x5cc84a,_0x1dd47a){const _0x30f519=a85_0x3a4e12,_0x5e7e0d={'OtoIP':function(_0x20f71f,_0x29a1a6){return _0x20f71f(_0x29a1a6);}};_0x5e7e0d[_0x30f519(0x1dd)](debug,_0x30f519(0x1eb)+_0x44117f[_0x30f519(0x223)]+'\x20--\x20'+_0x1dd47a+_0x30f519(0x1d9)+_0x5df81a+_0x30f519(0x1ea)+_0x5cc84a+'.'),PerformanceTester['captureError'](_0x5df81a);let _0x299638;try{_0x299638=JSON[_0x30f519(0x1f8)](_0x5cc84a);}catch(_0x101bdc){const _0x4d3b45={};_0x4d3b45[_0x30f519(0x201)]=0x2,_0x299638=util[_0x30f519(0x1de)](_0x5cc84a,_0x4d3b45);}CrashReporter['uploadCrashReport']('Error\x20in\x20executing\x20'+_0x44117f[_0x30f519(0x223)]+_0x30f519(0x214)+_0x1dd47a+_0x30f519(0x1d9)+_0x5df81a+_0x30f519(0x1ea)+_0x299638+'.',_0x5df81a&&_0x5df81a['stack']);}class CrashReporter{static [a85_0x3a4e12(0x1fa)]={};static [a85_0x3a4e12(0x23d)];static [a85_0x3a4e12(0x21e)]={};static[a85_0x3a4e12(0x21a)](_0x5dae14,_0x17f86a,_0x59bb0a=null){const _0x1d4d1e=a85_0x3a4e12,_0x1b1062={'OXJck':function(_0xd98a76,_0x5b0ef7){return _0xd98a76(_0x5b0ef7);},'RyKQD':function(_0x2d8bfb,_0x3c023f){return _0x2d8bfb(_0x3c023f);}},_0xf570bf=_0x5dae14[_0x1d4d1e(0x1fe)],_0x528aa3=_0x5dae14[_0x1d4d1e(0x212)];!_0x59bb0a&&(_0x59bb0a=_0x1b1062[_0x1d4d1e(0x210)](getBrowserStackConfig,_0xf570bf));!_0x528aa3&&_0x1b1062['RyKQD'](getFrameworkVersion,_0xf570bf);const _0x4df9d0={};_0x4df9d0[_0x1d4d1e(0x1fe)]=_0xf570bf,_0x4df9d0[_0x1d4d1e(0x212)]=_0x528aa3,this[_0x1d4d1e(0x1e0)](_0x4df9d0,_0x17f86a,_0x1b1062[_0x1d4d1e(0x210)](getUserCredentials,_0x59bb0a));}static[a85_0x3a4e12(0x1e4)](_0xfc88de,_0x5d6a40){const _0x1e3b0e=a85_0x3a4e12,_0x5daa1a={};_0x5daa1a['username']=_0xfc88de,_0x5daa1a[_0x1e3b0e(0x200)]=_0x5d6a40,this[_0x1e3b0e(0x23d)]=_0x5daa1a,process[_0x1e3b0e(0x244)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON['stringify'](this[_0x1e3b0e(0x23d)]);}static[a85_0x3a4e12(0x1f3)](){const _0x4bc334=a85_0x3a4e12,_0x41fabc={'neRGU':function(_0x52af1f,_0x4df360){return _0x52af1f(_0x4df360);}};if(!this[_0x4bc334(0x23d)]&&process[_0x4bc334(0x244)]['CREDENTIALS_FOR_CRASH_REPORTING'])try{this[_0x4bc334(0x23d)]=JSON[_0x4bc334(0x1db)](process[_0x4bc334(0x244)][_0x4bc334(0x239)]);}catch(_0x5b06db){_0x41fabc['neRGU'](debug,_0x4bc334(0x235)+_0x5b06db[_0x4bc334(0x23b)]());}return this[_0x4bc334(0x23d)];}static[a85_0x3a4e12(0x224)](_0x3930f6){const _0x12b93a=a85_0x3a4e12;this[_0x12b93a(0x1fa)]=this[_0x12b93a(0x237)](_0x3930f6),process['env'][_0x12b93a(0x1f4)]=JSON[_0x12b93a(0x1f8)](this[_0x12b93a(0x1fa)]);}static['getConfig'](){const _0xb3508d=a85_0x3a4e12,_0x2d26ec={'Eneua':function(_0x3fc78d,_0x4b6644){return _0x3fc78d===_0x4b6644;},'YWTlV':function(_0x9785be,_0x9d6ae8){return _0x9785be(_0x9d6ae8);}};if(_0x2d26ec['Eneua'](Object['keys'](this[_0xb3508d(0x1fa)])['length'],0x0)&&process[_0xb3508d(0x244)][_0xb3508d(0x1f4)])try{this[_0xb3508d(0x1fa)]=JSON[_0xb3508d(0x1db)](process[_0xb3508d(0x244)]['USER_CONFIG_FOR_REPORTING']);}catch(_0x2d6dad){_0x2d26ec[_0xb3508d(0x1f5)](debug,_0xb3508d(0x22e)+_0x2d6dad['toString']()),this[_0xb3508d(0x1fa)]={};}return this['userConfig'];}static[a85_0x3a4e12(0x218)](_0x33f63f){const _0x96b67e=a85_0x3a4e12;this[_0x96b67e(0x21e)]=_0x33f63f,process['env']['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']=JSON[_0x96b67e(0x1f8)](this[_0x96b67e(0x21e)]);}static[a85_0x3a4e12(0x1fd)](){const _0x993cb=a85_0x3a4e12,_0x2bbe0d={'EYaOi':function(_0x5e48a7,_0x4d87d3){return _0x5e48a7===_0x4d87d3;},'suGmp':function(_0x2c50d5,_0x86ae61){return _0x2c50d5(_0x86ae61);}};if(_0x2bbe0d[_0x993cb(0x227)](Object['keys'](this[_0x993cb(0x21e)])[_0x993cb(0x203)],0x0)&&process[_0x993cb(0x244)][_0x993cb(0x1e2)])try{this[_0x993cb(0x21e)]=JSON[_0x993cb(0x1db)](process[_0x993cb(0x244)][_0x993cb(0x1e2)]);}catch(_0x3f96be){_0x2bbe0d[_0x993cb(0x20a)](debug,_0x993cb(0x235)+_0x3f96be[_0x993cb(0x23b)]());}return this[_0x993cb(0x21e)];}static[a85_0x3a4e12(0x1e0)](_0x32dcd9,_0x854d43,_0x51f72d){const _0x13f705=a85_0x3a4e12;_0x32dcd9&&this[_0x13f705(0x218)](_0x32dcd9),_0x854d43&&this[_0x13f705(0x224)](_0x854d43),_0x51f72d&&this[_0x13f705(0x1e4)](_0x51f72d[_0x13f705(0x1dc)],_0x51f72d[_0x13f705(0x200)]);}static async[a85_0x3a4e12(0x1df)](_0x13de50,_0x1ee70d){const _0x4d1aff=a85_0x3a4e12,_0x26e188={'REpUm':function(_0x3a786b,_0x1ff85b){return _0x3a786b(_0x1ff85b);},'oTMIy':function(_0x27b324,_0x1b45dc){return _0x27b324(_0x1b45dc);},'oKzdQ':_0x4d1aff(0x211),'KjJqF':function(_0x40a55c){return _0x40a55c();},'kYclU':_0x4d1aff(0x233),'iOcDu':'application/json','ERIIX':_0x4d1aff(0x240),'JInAK':function(_0x55ae60,_0x388db8,_0x29c85a,_0x27ca0a,_0x5a6121,_0x4163c4){return _0x55ae60(_0x388db8,_0x29c85a,_0x27ca0a,_0x5a6121,_0x4163c4);},'koPGT':_0x4d1aff(0x206)};this[_0x4d1aff(0x1f3)]();if(!this['credentials'])return _0x26e188[_0x4d1aff(0x22f)](debug,_0x26e188[_0x4d1aff(0x209)]);this['getConfig'](),this[_0x4d1aff(0x1fd)]();const _0x3abffd={'hashed_id':process[_0x4d1aff(0x244)][_0x4d1aff(0x241)],'observability_version':{'sdkVersion':_0x26e188[_0x4d1aff(0x21c)](getAgentVersion),'frameworkName':this[_0x4d1aff(0x21e)][_0x4d1aff(0x1fe)],'frameworkVersion':this[_0x4d1aff(0x21e)][_0x4d1aff(0x212)]},'exception':{'error':_0x13de50[_0x4d1aff(0x23b)](),'stackTrace':_0x1ee70d},'config':this[_0x4d1aff(0x1fa)]},_0x5ab3c7=_0x26e188[_0x4d1aff(0x1f7)],_0x3bf84d={};_0x3bf84d[_0x4d1aff(0x1dc)]=this[_0x4d1aff(0x23d)][_0x4d1aff(0x1dc)],_0x3bf84d[_0x4d1aff(0x23e)]=this['credentials'][_0x4d1aff(0x200)];const _0x7d25af={};_0x7d25af[_0x4d1aff(0x1fb)]=_0x26e188[_0x4d1aff(0x242)],_0x7d25af['X-BSTACK-TESTOPS']=_0x26e188[_0x4d1aff(0x207)];const _0xabc025={};_0xabc025[_0x4d1aff(0x221)]=_0x3bf84d,_0xabc025[_0x4d1aff(0x23c)]=_0x7d25af;const _0xac5efc=_0xabc025;_0x26e188['JInAK'](nodeRequest,_0x26e188[_0x4d1aff(0x1f0)],_0x5ab3c7,_0x3abffd,_0xac5efc,![])[_0x4d1aff(0x1f2)](_0x229a0c=>{const _0x236041=_0x4d1aff;_0x26e188[_0x236041(0x1ee)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x236041(0x1f8)](_0x229a0c));})['catch'](_0x568454=>{const _0x5c111e=_0x4d1aff;_0x26e188[_0x5c111e(0x1ee)](debug,_0x5c111e(0x1f6)+util[_0x5c111e(0x230)](_0x568454));});}static[a85_0x3a4e12(0x21d)](_0x5ce488){const _0x3799b5=a85_0x3a4e12,_0x35425e={};_0x35425e[_0x3799b5(0x217)]=_0x3799b5(0x232),_0x35425e[_0x3799b5(0x1e3)]=_0x3799b5(0x1dc),_0x35425e[_0x3799b5(0x1e6)]=_0x3799b5(0x1d8),_0x35425e['fhEUS']='accessKey',_0x35425e['hlWhu']=_0x3799b5(0x23e),_0x35425e[_0x3799b5(0x22a)]=function(_0x56d702,_0x3cc78b){return _0x56d702===_0x3cc78b;},_0x35425e[_0x3799b5(0x216)]='object';const _0x1eed89=_0x35425e;if(!_0x5ce488)return;const _0x1e7202=[_0x1eed89[_0x3799b5(0x217)],_0x1eed89[_0x3799b5(0x1e3)],_0x1eed89[_0x3799b5(0x1e6)],_0x1eed89[_0x3799b5(0x220)],_0x1eed89[_0x3799b5(0x226)]];for(const _0x6ab7c1 in _0x5ce488){if(_0x1e7202['includes'](_0x6ab7c1[_0x3799b5(0x236)]()))delete _0x5ce488[_0x6ab7c1];else _0x1eed89[_0x3799b5(0x22a)](typeof _0x5ce488[_0x6ab7c1],_0x1eed89[_0x3799b5(0x216)])&&this['recursivelyDeletePIIKeysFromObject'](_0x5ce488[_0x6ab7c1]);}}static[a85_0x3a4e12(0x237)](_0x55444a){const _0x28177f=a85_0x3a4e12,_0x5cadc5=JSON[_0x28177f(0x1db)](JSON[_0x28177f(0x1f8)](_0x55444a));return this[_0x28177f(0x21d)](_0x5cadc5),_0x5cadc5;}}const a85_0x1cfbe8={};a85_0x1cfbe8[a85_0x3a4e12(0x205)]=o11yErrorHandler,a85_0x1cfbe8[a85_0x3a4e12(0x1ef)]=o11yClassErrorHandler,a85_0x1cfbe8[a85_0x3a4e12(0x238)]=CrashReporter,module[a85_0x3a4e12(0x1e8)]=a85_0x1cfbe8;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a86_0x5a3c(){const _0x7a3658=['KjAAb','uploadPending','Remaining\x20Queue\x20Length\x20-\x20','sSIqu','\x20bytes.\x20Events\x20are\x20','removeEventBatchPolling','kind','qODzJ','vJNnh','ZJFrT','status','Processing\x20batch\x20events\x20for\x20','HQSPv','startEventBatchPolling','LuuBf','started','bJfyg','dtgWV','3493lqLjGP','map','2zogkRS','FJYql','slice','proceedWithUrl','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','message','uNFTp','api/v1/batch','./utils','2112924NSnDzv','max','BATCH_EVENT_TYPES','mpcRM','util','PEYoJ','proceedWithData','EXCEPTION\x20IN\x20','RESETTING','./constants','1106084ZmhFTi','rMBYA','resetEventBatchPolling','TestRunStarted','4020045yJkxpW','yPnGS','JqWoe','shouldProceed','dkQMb','JZMna','eventUrl','22320pbJfZn','data','error','3684315oyLETK','25659DNtFrr','length','POST','REMOVING','TestRunSkipped','vFKlU','TEST_SCREENSHOT','\x20event\x20successful\x20for\x20events\x20','TEST_ATTACHMENT','LcNKG','WTgVs','event_type','byteLength','logs','nXkCD','uuid','screenshotEventUrl','response','ofCXO','pendingUploads','.\x20Request\x20Size\x20-\x20','SfwVU','Shutdown-Queue','api/v1/screenshots','includes','uploadAttachmentUrl','iwLmg','join','WXSsG','HookRunStarted','\x20--\x20','dioFw','test_run','pollEventBatchInterval','1522824wOJCUT','HSxjw','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','instance','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','batchAndPostEvents','NobwS','splice','queue','WjMdV','apPux','upload-attachments','format','TestRunFinished','21080TZnAyT','lwUfW','aHQoQ','push'];a86_0x5a3c=function(){return _0x7a3658;};return a86_0x5a3c();}const a86_0x435fa6=a86_0x2ace;function a86_0x2ace(_0x17ffe2,_0x201db3){const _0x5a3c7b=a86_0x5a3c();return a86_0x2ace=function(_0x2ace9d,_0x2f1a33){_0x2ace9d=_0x2ace9d-0xa4;let _0x337b90=_0x5a3c7b[_0x2ace9d];return _0x337b90;},a86_0x2ace(_0x17ffe2,_0x201db3);}(function(_0x5f0059,_0x50480d){const _0xa0f6bb=a86_0x2ace,_0x19bb57=_0x5f0059();while(!![]){try{const _0x1d51a5=-parseInt(_0xa0f6bb(0xc2))/0x1+-parseInt(_0xa0f6bb(0xaf))/0x2*(parseInt(_0xa0f6bb(0xc6))/0x3)+-parseInt(_0xa0f6bb(0xf3))/0x4+-parseInt(_0xa0f6bb(0xd0))/0x5+-parseInt(_0xa0f6bb(0xb8))/0x6+parseInt(_0xa0f6bb(0xad))/0x7*(-parseInt(_0xa0f6bb(0xcd))/0x8)+-parseInt(_0xa0f6bb(0xd1))/0x9*(-parseInt(_0xa0f6bb(0x101))/0xa);if(_0x1d51a5===_0x50480d)break;else _0x19bb57['push'](_0x19bb57['shift']());}catch(_0x309716){_0x19bb57['push'](_0x19bb57['shift']());}}}(a86_0x5a3c,0xab5b4));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a86_0x435fa6(0xc1)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a86_0x435fa6(0xb7)),{nestedKeyValue}=require('../helper'),util=require(a86_0x435fa6(0xbc));class RequestQueueHandler{static [a86_0x435fa6(0xf6)];[a86_0x435fa6(0xe4)]=0x0;constructor(){const _0x270372=a86_0x435fa6,_0x4f43d3={};_0x4f43d3[_0x270372(0xa7)]='2|0|6|5|1|4|3',_0x4f43d3[_0x270372(0x103)]=_0x270372(0xfe),_0x4f43d3[_0x270372(0xed)]='LogCreated',_0x4f43d3[_0x270372(0xc3)]='CBTSessionCreated',_0x4f43d3[_0x270372(0x10c)]='TestRunFinished',_0x4f43d3[_0x270372(0xbb)]=_0x270372(0xd5),_0x4f43d3[_0x270372(0xa9)]='HookRunFinished',_0x4f43d3['ofCXO']=_0x270372(0xc5),_0x4f43d3[_0x270372(0x102)]=_0x270372(0xee),_0x4f43d3[_0x270372(0x10d)]=_0x270372(0xe8),_0x4f43d3[_0x270372(0xa4)]=_0x270372(0xb6);const _0x20ecd5=_0x4f43d3,_0x3ce035=_0x20ecd5['HQSPv']['split']('|');let _0x29fcf0=0x0;while(!![]){switch(_0x3ce035[_0x29fcf0++]){case'0':this[_0x270372(0xaa)]=![];continue;case'1':this[_0x270372(0xea)]=_0x20ecd5[_0x270372(0x103)];continue;case'2':this[_0x270372(0xfb)]=[];continue;case'3':this[_0x270372(0xf2)]=null;continue;case'4':this[_0x270372(0xba)]=[_0x20ecd5[_0x270372(0xed)],_0x20ecd5['rMBYA'],_0x20ecd5[_0x270372(0x10c)],_0x20ecd5[_0x270372(0xbb)],_0x20ecd5[_0x270372(0xa9)],_0x20ecd5[_0x270372(0xe3)],_0x20ecd5[_0x270372(0x102)]];continue;case'5':this[_0x270372(0xe1)]=_0x20ecd5[_0x270372(0x10d)];continue;case'6':this[_0x270372(0xcc)]=_0x20ecd5[_0x270372(0xa4)];continue;}break;}}static['getInstance'](){const _0x5c5448=a86_0x435fa6;return!RequestQueueHandler[_0x5c5448(0xf6)]&&(RequestQueueHandler[_0x5c5448(0xf6)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}['start']=()=>{const _0x99179d=a86_0x435fa6;!this[_0x99179d(0xaa)]&&(this[_0x99179d(0xaa)]=!![],this[_0x99179d(0xa8)]());};['add']=_0x5b1542=>{const _0x42404b=a86_0x435fa6,_0x14672e={'JZMna':function(_0x413cd1,_0x2baef4){return _0x413cd1===_0x2baef4;},'apPux':_0x42404b(0xd7),'QUHJn':function(_0x545429,_0x495df7){return _0x545429>_0x495df7;},'sSIqu':function(_0x2c259c,_0x1a52e4){return _0x2c259c===_0x1a52e4;},'gbFzC':_0x42404b(0xd9),'nXkCD':function(_0x178e7f,_0x8c43f8){return _0x178e7f!==_0x8c43f8;},'rrxhg':_0x42404b(0x100),'SfwVU':function(_0x4e9343,_0x1ee40d){return _0x4e9343(_0x1ee40d);},'RawNG':_0x42404b(0xb3)};if(this[_0x42404b(0xba)][_0x42404b(0xe9)](_0x5b1542[_0x42404b(0xdc)])){if(_0x5b1542['logs']&&_0x5b1542['logs'][0x0]&&_0x14672e[_0x42404b(0xcb)](_0x5b1542[_0x42404b(0xde)][0x0][_0x42404b(0x10b)],_0x14672e[_0x42404b(0xfd)])){const _0x1ad79c={};return _0x1ad79c[_0x42404b(0xc9)]=!![],_0x1ad79c[_0x42404b(0xbe)]=[_0x5b1542],_0x1ad79c[_0x42404b(0xb2)]=this[_0x42404b(0xe1)],_0x1ad79c;}if(_0x5b1542['logs']&&_0x14672e['QUHJn'](_0x5b1542[_0x42404b(0xde)][_0x42404b(0xd2)],0x0)&&_0x14672e[_0x42404b(0x108)](_0x5b1542[_0x42404b(0xde)][0x0][_0x42404b(0x10b)],_0x14672e['gbFzC'])&&_0x14672e[_0x42404b(0xdf)](_0x5b1542['event_type'],_0x14672e['rrxhg'])){const _0x5667de={};return _0x5667de[_0x42404b(0xc9)]=!![],_0x5667de[_0x42404b(0xbe)]=[_0x5b1542],_0x5667de[_0x42404b(0xb2)]=this[_0x42404b(0xea)],_0x5667de;}this[_0x42404b(0xfb)][_0x42404b(0x104)](_0x5b1542);let _0x18d1cc=null;const _0x45eb52=this[_0x42404b(0xc9)]();_0x45eb52&&(_0x14672e[_0x42404b(0xe6)](trace,_0x14672e['RawNG']),_0x18d1cc=this[_0x42404b(0xfb)][_0x42404b(0xb1)](0x0,BATCH_SIZE),this[_0x42404b(0xfb)][_0x42404b(0xfa)](0x0,BATCH_SIZE),this['resetEventBatchPolling']());const _0x2716b4={};return _0x2716b4[_0x42404b(0xc9)]=_0x45eb52,_0x2716b4[_0x42404b(0xbe)]=_0x18d1cc,_0x2716b4[_0x42404b(0xb2)]=this[_0x42404b(0xcc)],_0x2716b4;}const _0xbaad97={};return _0xbaad97[_0x42404b(0xc9)]=!![],_0xbaad97;};['shutdown']=async()=>{const _0xe356f=a86_0x435fa6,_0x5f5981={'KjAAb':'REMOVING','bJfyg':function(_0x5d0807,_0x2805ad){return _0x5d0807>_0x2805ad;},'dioFw':_0xe356f(0xe7),'WTgVs':function(_0x5fc233,_0x491999){return _0x5fc233>_0x491999;},'qMCTv':function(_0x3c0c06,_0x3c0e98){return _0x3c0c06(_0x3c0e98);}};await this[_0xe356f(0x106)](),this[_0xe356f(0x10a)](_0x5f5981[_0xe356f(0x105)]);while(_0x5f5981[_0xe356f(0xab)](this[_0xe356f(0xfb)]['length'],0x0)){const _0x416a2d=this['queue'][_0xe356f(0xb1)](0x0,BATCH_SIZE);this[_0xe356f(0xfb)][_0xe356f(0xfa)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0xe356f(0xcc)],_0x5f5981[_0xe356f(0xf0)],_0x416a2d);}_0x5f5981[_0xe356f(0xdb)](this[_0xe356f(0xe4)],0x0)&&_0x5f5981['qMCTv'](debug,_0xe356f(0xf5)+this[_0xe356f(0xe4)]);};[a86_0x435fa6(0xf8)]=async(_0x355bf7,_0x56b579,_0x3fc156)=>{const _0x519670=a86_0x435fa6,_0x27754f={'yPnGS':function(_0x207bf2,_0x454977){return _0x207bf2(_0x454977);},'JqWoe':'utf8','dkQMb':function(_0x365786){return _0x365786();},'vFKlU':function(_0x1f2b9e,_0x25632a,_0xe7dd65,_0x433473,_0x3b7921){return _0x1f2b9e(_0x25632a,_0xe7dd65,_0x433473,_0x3b7921);},'uNFTp':_0x519670(0xd3),'ocDvo':function(_0x1b0537,_0x2ab039){return _0x1b0537(_0x2ab039);},'FJYql':function(_0x1406e9,_0x5a362c){return _0x1406e9-_0x5a362c;},'atVTK':function(_0x51d231,_0xffa358){return _0x51d231(_0xffa358);}};let _0x383e01='';try{_0x383e01=_0x3fc156[_0x519670(0xae)](_0x193bdd=>'\x27'+_0x193bdd[_0x519670(0xdc)]+'\x27:'+(nestedKeyValue(_0x193bdd,[_0x519670(0xf1),_0x519670(0xe0)])||nestedKeyValue(_0x193bdd,['hook_run','uuid'])))[_0x519670(0xec)](','),_0x27754f[_0x519670(0xc7)](debug,_0x519670(0xa6)+_0x56b579+_0x519670(0xe5)+Buffer[_0x519670(0xdd)](util['format']('%j',_0x3fc156),_0x27754f[_0x519670(0xc8)])+_0x519670(0x109)+_0x383e01);}catch(_0x13f3e3){_0x27754f[_0x519670(0xc7)](debug,'Exception\x20in\x20logging\x20batch\x20events\x20--\x20'+util['format'](_0x13f3e3)+'}');}const _0x2afbea={'headers':_0x27754f[_0x519670(0xca)](getDefaultHeaders)};try{const _0x4e4bff=await _0x27754f[_0x519670(0xd6)](nodeRequest,_0x27754f[_0x519670(0xb5)],_0x355bf7,_0x3fc156,_0x2afbea);if(_0x4e4bff[_0x519670(0xce)]['error']){const _0x4af4b2={};_0x4af4b2[_0x519670(0xb4)]=_0x4e4bff[_0x519670(0xce)][_0x519670(0xcf)];throw _0x4af4b2;}else _0x27754f['ocDvo'](debug,_0x56b579+_0x519670(0xd8)+_0x383e01+_0x519670(0xef)+util[_0x519670(0xff)]('%j',_0x4e4bff[_0x519670(0xce)])),this[_0x519670(0xe4)]=Math[_0x519670(0xb9)](0x0,_0x27754f[_0x519670(0xb0)](this[_0x519670(0xe4)],_0x3fc156[_0x519670(0xd2)]));}catch(_0x24cce0){_0x24cce0[_0x519670(0xe2)]?_0x27754f[_0x519670(0xc7)](debug,'EXCEPTION\x20IN\x20'+_0x56b579+_0x519670(0xf7)+_0x24cce0[_0x519670(0xe2)][_0x519670(0xa5)]+'\x20'+_0x24cce0[_0x519670(0xe2)]['statusText']+'\x20'+util['format']('%j',_0x24cce0[_0x519670(0xe2)])):_0x27754f['atVTK'](debug,_0x519670(0xbf)+_0x56b579+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+(_0x24cce0[_0x519670(0xb4)]||_0x24cce0)),this[_0x519670(0xe4)]=Math['max'](0x0,_0x27754f['FJYql'](this[_0x519670(0xe4)],_0x3fc156[_0x519670(0xd2)]));}};[a86_0x435fa6(0xa8)]=()=>{const _0x2f94ec=a86_0x435fa6,_0x1a29d1={'LcNKG':function(_0x331518,_0x3904bd){return _0x331518>_0x3904bd;},'iwLmg':function(_0x43bcc6,_0x4856d1){return _0x43bcc6(_0x4856d1);},'qPNIY':'Interval-Queue','PEYoJ':function(_0xbab8c4,_0x19cfce,_0x14d3ba){return _0xbab8c4(_0x19cfce,_0x14d3ba);}};this[_0x2f94ec(0xf2)]=_0x1a29d1[_0x2f94ec(0xbd)](setInterval,async()=>{const _0x3297e2=_0x2f94ec;if(_0x1a29d1[_0x3297e2(0xda)](this[_0x3297e2(0xfb)][_0x3297e2(0xd2)],0x0)){_0x1a29d1[_0x3297e2(0xeb)](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this[_0x3297e2(0xfb)][_0x3297e2(0xd2)]);const _0x50530=this[_0x3297e2(0xfb)][_0x3297e2(0xb1)](0x0,BATCH_SIZE);this[_0x3297e2(0xfb)][_0x3297e2(0xfa)](0x0,BATCH_SIZE),await this[_0x3297e2(0xf8)](this[_0x3297e2(0xcc)],_0x1a29d1['qPNIY'],_0x50530),_0x1a29d1[_0x3297e2(0xeb)](trace,_0x3297e2(0x107)+this[_0x3297e2(0xfb)][_0x3297e2(0xd2)]);}},BATCH_INTERVAL);};[a86_0x435fa6(0xc4)]=()=>{const _0x2f8b78=a86_0x435fa6,_0x4bde6c={};_0x4bde6c['osxPV']=_0x2f8b78(0xc0);const _0x309196=_0x4bde6c;this[_0x2f8b78(0x10a)](_0x309196['osxPV']),this['startEventBatchPolling']();};[a86_0x435fa6(0x10a)]=_0x13f2de=>{const _0x52d200=a86_0x435fa6,_0x1c3685={'FfBTu':function(_0x44dd64,_0x5b8c0c){return _0x44dd64(_0x5b8c0c);},'HSxjw':function(_0x25b587,_0x26d3f0){return _0x25b587===_0x26d3f0;},'OpwDw':_0x52d200(0xd4)};this[_0x52d200(0xf2)]&&(_0x1c3685['FfBTu'](clearInterval,this[_0x52d200(0xf2)]),this['pollEventBatchInterval']=null,_0x1c3685[_0x52d200(0xf4)](_0x13f2de,_0x1c3685['OpwDw'])&&(this[_0x52d200(0xaa)]=![]));};['shouldProceed']=()=>{const _0x3886c9=a86_0x435fa6,_0x365f5d={};_0x365f5d[_0x3886c9(0xf9)]=function(_0x3792da,_0xe61803){return _0x3792da>=_0xe61803;};const _0x499e82=_0x365f5d;return _0x499e82['NobwS'](this[_0x3886c9(0xfb)][_0x3886c9(0xd2)],BATCH_SIZE);};async[a86_0x435fa6(0x106)](_0xc1105=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0xd026cc=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x4e1752=a86_0x435fa6,_0x41d6f9={'WjMdV':function(_0x22a8b4,_0x258ed4){return _0x22a8b4<=_0x258ed4;},'dtgWV':function(_0x2f9bb0,_0x30e7e3){return _0x2f9bb0(_0x30e7e3);},'YYLvB':function(_0x3d6f8c,_0x4d5ab8){return _0x3d6f8c-_0x4d5ab8;}};if(_0x41d6f9['WjMdV'](this[_0x4e1752(0xe4)],0x0)||_0x41d6f9[_0x4e1752(0xfc)](_0xc1105,0x0))return;return await _0x41d6f9[_0x4e1752(0xac)](sleep,_0xd026cc),this['uploadPending'](_0x41d6f9['YYLvB'](_0xc1105,_0xd026cc));}}module['exports']=RequestQueueHandler;
|
|
1
|
+
const a86_0x1817c0=a86_0xc0f0;function a86_0x1931(){const _0x9f0548=['eHQah','MAOKm','EXCEPTION\x20IN\x20','../helper','uuid','FHHXj','splice','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','add','qDDlO','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','RWkfy','FRNNA','status','CEHcy','\x20bytes.\x20Events\x20are\x20','MmNJL','QUMKb','LogCreated','data','start','91218DXYnuY','shouldProceed','removeEventBatchPolling','REMOVING','iUfJm','VFEje','slice','byteLength','14995890eDjnHU','resetEventBatchPolling','instance','vkikO','push','exports','api/v1/batch','response','qUIYf','hook_run','utf8','wdQXz','statusText','proceedWithUrl','uploadAttachmentUrl','message','max','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','eventUrl','TestRunStarted','pEDAt','rUyFl','PecOl','6158588DlqOPD','8080268uaXErM','startEventBatchPolling','split','4528488ssadlZ','GueUS','BATCH_EVENT_TYPES','\x20--\x20','shutdown','RdQSK','batchAndPostEvents','btrOm','2|3|1|4|0|5|6','join','mKGGr','event_type','GZIxl','Interval-Queue','GeGIL','queue','pendingUploads','kind','uploadPending','test_run','WjIwW','map','includes','uQqiu','Processing\x20batch\x20events\x20for\x20','TEST_ATTACHMENT','FhRov','Remaining\x20Queue\x20Length\x20-\x20','qNbLe','530291zkKQsi','\x20event\x20successful\x20for\x20events\x20','Processing\x20events.\x20Queue\x20Length\x20-\x20','oZCEY','logs','TIRIE','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','vudgs','length','error','XsLfC','proceedWithData','pollEventBatchInterval','TestRunFinished','./constants','TEST_SCREENSHOT','format','started','AlQTE','HookRunStarted','./utils','YTnRK','ygSFF','saFkf','2199SQvDiq','365FsYOvr','166iJBVpw','nMStv','Qkehg'];a86_0x1931=function(){return _0x9f0548;};return a86_0x1931();}(function(_0x409f49,_0x5980ce){const _0x2df50e=a86_0xc0f0,_0x52e8e1=_0x409f49();while(!![]){try{const _0x50a356=parseInt(_0x2df50e(0xc0))/0x1+-parseInt(_0x2df50e(0xda))/0x2*(parseInt(_0x2df50e(0xd8))/0x3)+parseInt(_0x2df50e(0x111))/0x4+-parseInt(_0x2df50e(0xd9))/0x5*(parseInt(_0x2df50e(0xf2))/0x6)+-parseInt(_0x2df50e(0x112))/0x7+-parseInt(_0x2df50e(0x115))/0x8+parseInt(_0x2df50e(0xfa))/0x9;if(_0x50a356===_0x5980ce)break;else _0x52e8e1['push'](_0x52e8e1['shift']());}catch(_0x3a6f59){_0x52e8e1['push'](_0x52e8e1['shift']());}}}(a86_0x1931,0xce531));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a86_0x1817c0(0xce)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a86_0x1817c0(0xd4)),{nestedKeyValue}=require(a86_0x1817c0(0xe0)),util=require('util');function a86_0xc0f0(_0x3969c4,_0x703699){const _0x193163=a86_0x1931();return a86_0xc0f0=function(_0xc0f0bc,_0x1b84bd){_0xc0f0bc=_0xc0f0bc-0xba;let _0x1aabd9=_0x193163[_0xc0f0bc];return _0x1aabd9;},a86_0xc0f0(_0x3969c4,_0x703699);}class RequestQueueHandler{static ['instance'];[a86_0x1817c0(0x125)]=0x0;constructor(){const _0x3566a1=a86_0x1817c0,_0x5a554e={};_0x5a554e['TIRIE']=_0x3566a1(0x11d),_0x5a554e[_0x3566a1(0xfd)]='upload-attachments',_0x5a554e[_0x3566a1(0x123)]=_0x3566a1(0x100),_0x5a554e[_0x3566a1(0xd6)]='api/v1/screenshots',_0x5a554e[_0x3566a1(0xde)]=_0x3566a1(0xef),_0x5a554e[_0x3566a1(0xe9)]='CBTSessionCreated',_0x5a554e[_0x3566a1(0xbf)]=_0x3566a1(0xcd),_0x5a554e['uQqiu']='TestRunSkipped',_0x5a554e[_0x3566a1(0x121)]='HookRunFinished',_0x5a554e[_0x3566a1(0xe6)]=_0x3566a1(0x10d),_0x5a554e[_0x3566a1(0xeb)]=_0x3566a1(0xd3);const _0x23e11d=_0x5a554e,_0x5098d=_0x23e11d[_0x3566a1(0xc5)][_0x3566a1(0x114)]('|');let _0x42e74e=0x0;while(!![]){switch(_0x5098d[_0x42e74e++]){case'0':this[_0x3566a1(0x108)]=_0x23e11d['vkikO'];continue;case'1':this['eventUrl']=_0x23e11d[_0x3566a1(0x123)];continue;case'2':this[_0x3566a1(0x124)]=[];continue;case'3':this[_0x3566a1(0xd1)]=![];continue;case'4':this['screenshotEventUrl']=_0x23e11d['ygSFF'];continue;case'5':this[_0x3566a1(0x117)]=[_0x23e11d['MAOKm'],_0x23e11d[_0x3566a1(0xe9)],_0x23e11d[_0x3566a1(0xbf)],_0x23e11d[_0x3566a1(0xba)],_0x23e11d[_0x3566a1(0x121)],_0x23e11d[_0x3566a1(0xe6)],_0x23e11d[_0x3566a1(0xeb)]];continue;case'6':this[_0x3566a1(0xcc)]=null;continue;}break;}}static['getInstance'](){const _0xfbef50=a86_0x1817c0;return!RequestQueueHandler[_0xfbef50(0xfc)]&&(RequestQueueHandler[_0xfbef50(0xfc)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}[a86_0x1817c0(0xf1)]=()=>{const _0x3ad5cc=a86_0x1817c0;!this['started']&&(this[_0x3ad5cc(0xd1)]=!![],this['startEventBatchPolling']());};[a86_0x1817c0(0xe5)]=_0x11ffe6=>{const _0x596389=a86_0x1817c0,_0x29255e={'YTnRK':function(_0x13779f,_0x46595a){return _0x13779f===_0x46595a;},'iUfJm':_0x596389(0xcf),'saFkf':function(_0x420d2f,_0x51ddff){return _0x420d2f>_0x51ddff;},'nMStv':_0x596389(0xbc),'oZCEY':function(_0x29817e,_0x1b8572){return _0x29817e!==_0x1b8572;},'pEDAt':_0x596389(0xcd),'VFEje':function(_0x1450ed,_0x14f7a7){return _0x1450ed(_0x14f7a7);},'Vdgzl':_0x596389(0xc6)};if(this[_0x596389(0x117)][_0x596389(0x12b)](_0x11ffe6[_0x596389(0x120)])){if(_0x11ffe6[_0x596389(0xc4)]&&_0x11ffe6[_0x596389(0xc4)][0x0]&&_0x29255e[_0x596389(0xd5)](_0x11ffe6[_0x596389(0xc4)][0x0][_0x596389(0x126)],_0x29255e[_0x596389(0xf6)])){const _0x436f25={};return _0x436f25[_0x596389(0xf3)]=!![],_0x436f25[_0x596389(0xcb)]=[_0x11ffe6],_0x436f25[_0x596389(0x107)]=this['screenshotEventUrl'],_0x436f25;}if(_0x11ffe6[_0x596389(0xc4)]&&_0x29255e[_0x596389(0xd7)](_0x11ffe6[_0x596389(0xc4)][_0x596389(0xc8)],0x0)&&_0x29255e[_0x596389(0xd5)](_0x11ffe6[_0x596389(0xc4)][0x0]['kind'],_0x29255e[_0x596389(0xdb)])&&_0x29255e[_0x596389(0xc3)](_0x11ffe6[_0x596389(0x120)],_0x29255e[_0x596389(0x10e)])){const _0x501bae={};return _0x501bae[_0x596389(0xf3)]=!![],_0x501bae[_0x596389(0xcb)]=[_0x11ffe6],_0x501bae[_0x596389(0x107)]=this['uploadAttachmentUrl'],_0x501bae;}this[_0x596389(0x124)][_0x596389(0xfe)](_0x11ffe6);let _0x34d833=null;const _0x9027de=this['shouldProceed']();_0x9027de&&(_0x29255e[_0x596389(0xf7)](trace,_0x29255e['Vdgzl']),_0x34d833=this['queue'][_0x596389(0xf8)](0x0,BATCH_SIZE),this[_0x596389(0x124)][_0x596389(0xe3)](0x0,BATCH_SIZE),this[_0x596389(0xfb)]());const _0x5ab02f={};return _0x5ab02f[_0x596389(0xf3)]=_0x9027de,_0x5ab02f['proceedWithData']=_0x34d833,_0x5ab02f['proceedWithUrl']=this[_0x596389(0x10c)],_0x5ab02f;}const _0x16d5a6={};return _0x16d5a6[_0x596389(0xf3)]=!![],_0x16d5a6;};[a86_0x1817c0(0x119)]=async()=>{const _0x2a2ac0=a86_0x1817c0,_0x5db969={'XsLfC':_0x2a2ac0(0xf5),'Qkehg':function(_0x3c6d75,_0x3b4fff){return _0x3c6d75>_0x3b4fff;},'RdQSK':'Shutdown-Queue','PecOl':function(_0x5e0c4e,_0x10b42d){return _0x5e0c4e(_0x10b42d);}};await this[_0x2a2ac0(0x127)](),this['removeEventBatchPolling'](_0x5db969[_0x2a2ac0(0xca)]);while(_0x5db969['Qkehg'](this[_0x2a2ac0(0x124)][_0x2a2ac0(0xc8)],0x0)){const _0x44fa79=this[_0x2a2ac0(0x124)][_0x2a2ac0(0xf8)](0x0,BATCH_SIZE);this[_0x2a2ac0(0x124)][_0x2a2ac0(0xe3)](0x0,BATCH_SIZE),await this[_0x2a2ac0(0x11b)](this['eventUrl'],_0x5db969[_0x2a2ac0(0x11a)],_0x44fa79);}_0x5db969[_0x2a2ac0(0xdc)](this['pendingUploads'],0x0)&&_0x5db969[_0x2a2ac0(0x110)](debug,_0x2a2ac0(0x10b)+this[_0x2a2ac0(0x125)]);};['batchAndPostEvents']=async(_0x241712,_0x3c89fa,_0x1458eb)=>{const _0x457d26=a86_0x1817c0,_0x52ae7d={'RWkfy':function(_0x35da4c,_0x4edbd4){return _0x35da4c(_0x4edbd4);},'qUIYf':_0x457d26(0x104),'rUyFl':function(_0x3f7a80){return _0x3f7a80();},'OUSCT':function(_0x762ea8,_0x5b8f7e,_0x494ab3,_0x63a65f,_0x3170c0){return _0x762ea8(_0x5b8f7e,_0x494ab3,_0x63a65f,_0x3170c0);},'QUMKb':'POST','FHHXj':function(_0x40bdc2,_0x446a24){return _0x40bdc2(_0x446a24);},'WjIwW':function(_0x5dbc56,_0x120a55){return _0x5dbc56-_0x120a55;}};let _0x6789e0='';try{_0x6789e0=_0x1458eb[_0x457d26(0x12a)](_0x52bbcb=>'\x27'+_0x52bbcb[_0x457d26(0x120)]+'\x27:'+(nestedKeyValue(_0x52bbcb,[_0x457d26(0x128),_0x457d26(0xe1)])||nestedKeyValue(_0x52bbcb,[_0x457d26(0x103),_0x457d26(0xe1)])))[_0x457d26(0x11e)](','),_0x52ae7d[_0x457d26(0xe8)](debug,_0x457d26(0xbb)+_0x3c89fa+'.\x20Request\x20Size\x20-\x20'+Buffer[_0x457d26(0xf9)](util[_0x457d26(0xd0)]('%j',_0x1458eb),_0x52ae7d[_0x457d26(0x102)])+_0x457d26(0xec)+_0x6789e0);}catch(_0x153d92){_0x52ae7d[_0x457d26(0xe8)](debug,_0x457d26(0xe4)+util[_0x457d26(0xd0)](_0x153d92)+'}');}const _0x1a856e={'headers':_0x52ae7d[_0x457d26(0x10f)](getDefaultHeaders)};try{const _0x572e2c=await _0x52ae7d['OUSCT'](nodeRequest,_0x52ae7d[_0x457d26(0xee)],_0x241712,_0x1458eb,_0x1a856e);if(_0x572e2c[_0x457d26(0xf0)][_0x457d26(0xc9)]){const _0xa13041={};_0xa13041[_0x457d26(0x109)]=_0x572e2c[_0x457d26(0xf0)][_0x457d26(0xc9)];throw _0xa13041;}else _0x52ae7d[_0x457d26(0xe2)](debug,_0x3c89fa+_0x457d26(0xc1)+_0x6789e0+_0x457d26(0x118)+util[_0x457d26(0xd0)]('%j',_0x572e2c[_0x457d26(0xf0)])),this[_0x457d26(0x125)]=Math[_0x457d26(0x10a)](0x0,_0x52ae7d['WjIwW'](this[_0x457d26(0x125)],_0x1458eb[_0x457d26(0xc8)]));}catch(_0x5c5e20){_0x5c5e20[_0x457d26(0x101)]?_0x52ae7d[_0x457d26(0xe8)](debug,_0x457d26(0xdf)+_0x3c89fa+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x5c5e20[_0x457d26(0x101)][_0x457d26(0xea)]+'\x20'+_0x5c5e20['response'][_0x457d26(0x106)]+'\x20'+util['format']('%j',_0x5c5e20[_0x457d26(0x101)])):_0x52ae7d[_0x457d26(0xe2)](debug,_0x457d26(0xdf)+_0x3c89fa+_0x457d26(0xe7)+(_0x5c5e20['message']||_0x5c5e20)),this['pendingUploads']=Math[_0x457d26(0x10a)](0x0,_0x52ae7d[_0x457d26(0x129)](this[_0x457d26(0x125)],_0x1458eb[_0x457d26(0xc8)]));}};[a86_0x1817c0(0x113)]=()=>{const _0x38f344=a86_0x1817c0,_0x55ee11={'GueUS':function(_0x53c6db,_0x2a7ea0){return _0x53c6db>_0x2a7ea0;},'wdQXz':function(_0xbd21d6,_0x493892){return _0xbd21d6(_0x493892);},'eHQah':_0x38f344(0x122),'mKGGr':function(_0x3890fd,_0x4c4a03,_0x3523f4){return _0x3890fd(_0x4c4a03,_0x3523f4);}};this[_0x38f344(0xcc)]=_0x55ee11[_0x38f344(0x11f)](setInterval,async()=>{const _0x138155=_0x38f344;if(_0x55ee11[_0x138155(0x116)](this['queue'][_0x138155(0xc8)],0x0)){_0x55ee11[_0x138155(0x105)](trace,_0x138155(0xc2)+this[_0x138155(0x124)][_0x138155(0xc8)]);const _0x17984b=this[_0x138155(0x124)][_0x138155(0xf8)](0x0,BATCH_SIZE);this[_0x138155(0x124)][_0x138155(0xe3)](0x0,BATCH_SIZE),await this[_0x138155(0x11b)](this[_0x138155(0x10c)],_0x55ee11[_0x138155(0xdd)],_0x17984b),_0x55ee11[_0x138155(0x105)](trace,_0x138155(0xbe)+this[_0x138155(0x124)][_0x138155(0xc8)]);}},BATCH_INTERVAL);};[a86_0x1817c0(0xfb)]=()=>{const _0x4d80a1=a86_0x1817c0,_0x38284c={};_0x38284c[_0x4d80a1(0xed)]='RESETTING';const _0x3d7b33=_0x38284c;this['removeEventBatchPolling'](_0x3d7b33[_0x4d80a1(0xed)]),this[_0x4d80a1(0x113)]();};[a86_0x1817c0(0xf4)]=_0x3d4eaf=>{const _0x31fefc=a86_0x1817c0,_0x5216e4={'rvdGj':function(_0x52491e,_0x3ef51d){return _0x52491e(_0x3ef51d);},'lvSgh':function(_0x2b2e6e,_0x418548){return _0x2b2e6e===_0x418548;},'FhRov':_0x31fefc(0xf5)};this[_0x31fefc(0xcc)]&&(_0x5216e4['rvdGj'](clearInterval,this[_0x31fefc(0xcc)]),this[_0x31fefc(0xcc)]=null,_0x5216e4['lvSgh'](_0x3d4eaf,_0x5216e4[_0x31fefc(0xbd)])&&(this[_0x31fefc(0xd1)]=![]));};['shouldProceed']=()=>{const _0x3f0be3=a86_0x1817c0,_0x4ce6d7={};_0x4ce6d7[_0x3f0be3(0xd2)]=function(_0x28191b,_0x4e7e89){return _0x28191b>=_0x4e7e89;};const _0x14bcc5=_0x4ce6d7;return _0x14bcc5['AlQTE'](this[_0x3f0be3(0x124)]['length'],BATCH_SIZE);};async[a86_0x1817c0(0x127)](_0xfe819f=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x4c3fa3=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x5ba93d=a86_0x1817c0,_0x1f202b={'vudgs':function(_0x2a8f86,_0x71c2fe){return _0x2a8f86<=_0x71c2fe;},'btrOm':function(_0x273ead,_0x1c5ec6){return _0x273ead(_0x1c5ec6);},'tGbGA':function(_0x584466,_0x485e17){return _0x584466-_0x485e17;}};if(_0x1f202b[_0x5ba93d(0xc7)](this[_0x5ba93d(0x125)],0x0)||_0x1f202b['vudgs'](_0xfe819f,0x0))return;return await _0x1f202b[_0x5ba93d(0x11c)](sleep,_0x4c3fa3),this['uploadPending'](_0x1f202b['tGbGA'](_0xfe819f,_0x4c3fa3));}}module[a86_0x1817c0(0xff)]=RequestQueueHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a87_0x580343=a87_0x3f35;(function(_0x321c97,_0x4ce348){const _0x232506=a87_0x3f35,_0x53630d=_0x321c97();while(!![]){try{const _0xfa8c22=-parseInt(_0x232506(0x1d9))/0x1*(parseInt(_0x232506(0x21b))/0x2)+parseInt(_0x232506(0x203))/0x3*(parseInt(_0x232506(0x1d4))/0x4)+parseInt(_0x232506(0x215))/0x5*(-parseInt(_0x232506(0x1cb))/0x6)+-parseInt(_0x232506(0x201))/0x7*(-parseInt(_0x232506(0x1a9))/0x8)+parseInt(_0x232506(0x219))/0x9*(-parseInt(_0x232506(0x1bf))/0xa)+-parseInt(_0x232506(0x1d5))/0xb*(parseInt(_0x232506(0x200))/0xc)+parseInt(_0x232506(0x1a2))/0xd*(parseInt(_0x232506(0x1a4))/0xe);if(_0xfa8c22===_0x4ce348)break;else _0x53630d['push'](_0x53630d['shift']());}catch(_0x4d43c7){_0x53630d['push'](_0x53630d['shift']());}}}(a87_0x2b16,0x8b832));const bsSetupHelper=require(a87_0x580343(0x1a1)),path=require(a87_0x580343(0x229)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a87_0x580343(0x236)),RequestQueueHandler=require(a87_0x580343(0x1b7)),logger=require(a87_0x580343(0x226))[a87_0x580343(0x1b5)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a87_0x580343(0x21a)),util=require(a87_0x580343(0x1f1));function a87_0x2b16(){const _0x27c898=['EoPIc','hXqeP','max','awPtK','browserstackAutomation','Build\x20creation\x20successful!','true','fxXIA','RNyhP','null','OcHUP','gotNg','zbmPu','app','format','BS_TESTOPS_BUILD_HASHED_ID','Hook_Start_Upload','exports','../helper','13DJqzXC','hBLin','21832678NkerLn','qjjel','Bearer\x20','ocxfC','headers','24SCZVtD','toString','blvjZ','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','response','TQQwO','iwycB','test_run_uuid','getLogTag','UBCHn','DcdzV','OZUBx','winstonLogger','eYMUt','./requestQueueHandler','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','false','Test_Start_Upload','eventUrl','BTGxX','buildName','uploadEventData','9689020fOJmET','info','TestRunSkipped','HShYZ','BS_A11Y_JWT','fYuiI','AJdHc','application/json','lSOuN','build_hashed_id','launch','ThUOf','678IxVNSQ','getUserName','success','toISOString','vsvkd','QGnVo','nestedKeyValue','json','wiODe','892GkqMEU','11BFtNTe','getAgentVersion','message','Test_Skipped_Upload','4865ghSkBa','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','QTSXA','\x20retry\x20runs\x20exceeded','error','rdyCF','szSEV','jbNEN','XdbTb','pendingUploads','status','includes','Sending\x20trace\x20zip\x20for\x20test:\x20','BLinm','BROWSERSTACK_TESTHUB_UUID','logs',']\x20event\x20successful!','getCiInfo','Log_Upload','stXsj','chGJJ','XpVNg','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','BS_TESTOPS_JWT','util','jwt','cwd','gIoMc','BROWSERSTACK_TESTHUB_JWT','api/v1/builds','sendTraceZip','sendEventData','statusText','getAccessKey','getGitMetaData','BS_TESTOPS_BUILD_COMPLETED','Batch-Queue','debug','getHostInfo','3230940UZjkgB','1376599ikKmCw','uuid','4047begjyq','ERROR_SDK_DEPRECATED','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','Hook_End_Upload','allow_screenshots','CBTSessionCreated','ieYKI','Retry\x20runs\x20exceeded','jkwki','wQNZn','joBXT','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','BPETg','CREDENTIALS_FOR_CRASH_REPORTING','requestQueueHandler','buildIdentifier','ftYRq','WqLhm','4885JnSoZQ','data','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','LogCreated','9vMbxPg','../../helpers/testhub/utils','218sqQVNI','stringify','errorType','BS_TESTOPS_ALLOW_SCREENSHOTS','frameworkVersion','ASruu','SSgDy','YkXII','Processing\x20event\x20-\x20\x27','Content-Type','event_type','../logger','EXCEPTION\x20IN\x20','ZwNQF','path','length','jeflN','urwbx','iguFH','jIfwQ','bUaeO','env','basename','HookRunFinished','yGAAj','api/v1/event','test_run','./constants'];a87_0x2b16=function(){return _0x27c898;};return a87_0x2b16();}class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler['getInstance']();static async[a87_0x580343(0x1c9)](_0x19866b,_0x3d4a7e){const _0x495be0=a87_0x580343,_0x16d453={'awPtK':function(_0x46955f,_0x4a1546){return _0x46955f||_0x4a1546;},'ZCwzm':function(_0x3216ca,_0x27d863){return _0x3216ca||_0x27d863;},'blvjZ':function(_0x463622,_0x33ba30){return _0x463622===_0x33ba30;},'bUaeO':function(_0x325ad4,_0x3fdcd8){return _0x325ad4(_0x3fdcd8);},'SSgDy':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','fxXIA':_0x495be0(0x1b9),'ocxfC':_0x495be0(0x1d2),'ZBdeS':function(_0x48be8b,_0x20be64){return _0x48be8b(_0x20be64);},'lSOuN':function(_0x3c6374,_0x5c10ca){return _0x3c6374(_0x5c10ca);},'QTSXA':function(_0xa4815b,_0x36e71d,_0x35df57,_0x211bdf,_0x332001){return _0xa4815b(_0x36e71d,_0x35df57,_0x211bdf,_0x332001);},'chGJJ':'POST','WqLhm':_0x495be0(0x1f6),'aDjty':function(_0xf5b9c5,_0x5233d7){return _0xf5b9c5(_0x5233d7);},'OZUBx':_0x495be0(0x23c),'LezkW':function(_0x543d1c){return _0x543d1c();},'OEJfE':_0x495be0(0x195),'XpVNg':_0x495be0(0x198),'jeflN':'ERROR_INVALID_CREDENTIALS','VAnMW':'ERROR_ACCESS_DENIED','TQQwO':_0x495be0(0x204)},_0x58c3b2=bsSetupHelper[_0x495be0(0x1cc)](_0x19866b),_0x2648ca=bsSetupHelper[_0x495be0(0x1fa)](_0x19866b),_0x519c3f=_0x16d453[_0x495be0(0x23a)](_0x58c3b2,'')+':'+_0x16d453['ZCwzm'](_0x2648ca,'');if(_0x16d453[_0x495be0(0x1ab)](_0x519c3f,':'))return _0x16d453['bUaeO'](debug,_0x16d453[_0x495be0(0x221)]),process[_0x495be0(0x230)][_0x495be0(0x1fc)]=_0x16d453[_0x495be0(0x196)],[null,null];let _0x19e88a=![],_0xa0e14e=![];if(_0x19866b[_0x495be0(0x23b)]&&_0x19866b[_0x495be0(0x19c)])_0xa0e14e=!![];else _0x19866b[_0x495be0(0x23b)]&&(_0x19e88a=!![]);try{const _0x53f526={'format':_0x16d453[_0x495be0(0x1a7)],'project_name':_0x19866b['projectName']||'','name':_0x19866b[_0x495be0(0x1bd)]||path[_0x495be0(0x231)](path['resolve'](process[_0x495be0(0x1f3)]())),'build_identifier':_0x19866b[_0x495be0(0x212)],'description':_0x19866b['buildDescription']||'','start_time':new Date()[_0x495be0(0x1ce)](),'tags':_0x16d453['ZBdeS'](getCustomTags,_0x19866b),'host_info':bsSetupHelper[_0x495be0(0x1ff)](),'ci_info':bsSetupHelper[_0x495be0(0x1ea)](),'build_run_identifier':process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process[_0x495be0(0x230)]['BROWSERSTACK_RERUN']||![],'version_control':await bsSetupHelper[_0x495be0(0x1fb)](),'observability_version':{'frameworkName':_0x3d4a7e['frameworkName'],'frameworkVersion':_0x3d4a7e[_0x495be0(0x21f)],'sdkVersion':bsSetupHelper[_0x495be0(0x1d6)]()},'product_map':_0x16d453[_0x495be0(0x22f)](getProductMap,_0x19866b)},_0x2cb7e4={};_0x2cb7e4['username']=_0x58c3b2,_0x2cb7e4['password']=_0x2648ca;const _0x5020c3={'auth':_0x2cb7e4,'headers':_0x16d453[_0x495be0(0x1c7)](getDefaultHeaders,![])},_0x83a177=await _0x16d453[_0x495be0(0x1db)](nodeRequest,_0x16d453[_0x495be0(0x1ed)],_0x16d453[_0x495be0(0x214)],_0x53f526,_0x5020c3);_0x16d453['aDjty'](debug,_0x16d453[_0x495be0(0x1b4)]);const _0x4c419d=_0x83a177[_0x495be0(0x216)];_0x4c419d[_0x495be0(0x1c8)]&&(process[_0x495be0(0x230)][_0x495be0(0x1e7)]=_0x4c419d['build_hashed_id']);if(_0x16d453['LezkW'](isTestObservabilitySession)){process[_0x495be0(0x230)][_0x495be0(0x1fc)]=_0x16d453['OEJfE'];if(_0x4c419d['jwt']){process[_0x495be0(0x230)][_0x495be0(0x1f0)]=_0x4c419d[_0x495be0(0x1f2)];const _0x3c7a0a={};_0x3c7a0a['username']=_0x58c3b2,_0x3c7a0a['password']=_0x2648ca,process[_0x495be0(0x230)][_0x495be0(0x210)]=JSON[_0x495be0(0x21c)](_0x3c7a0a);}_0x4c419d['build_hashed_id']&&(process[_0x495be0(0x230)][_0x495be0(0x19e)]=_0x4c419d[_0x495be0(0x1c8)]),_0x4c419d[_0x495be0(0x207)]&&(process[_0x495be0(0x230)][_0x495be0(0x21e)]=_0x4c419d[_0x495be0(0x207)][_0x495be0(0x1aa)]());}return[_0x83a177[_0x495be0(0x216)]['jwt'],_0x83a177['data'][_0x495be0(0x1c8)],_0x83a177['data']['allow_screenshots']];}catch(_0x18cf93){process[_0x495be0(0x230)][_0x495be0(0x1e7)]=_0x16d453[_0x495be0(0x1ee)],process[_0x495be0(0x230)]['BS_TESTOPS_BUILD_COMPLETED']=_0x16d453[_0x495be0(0x196)],process[_0x495be0(0x230)]['BS_TESTOPS_JWT']=_0x16d453[_0x495be0(0x1ee)],process[_0x495be0(0x230)][_0x495be0(0x19e)]=_0x16d453[_0x495be0(0x1ee)],process['env'][_0x495be0(0x21e)]=_0x16d453[_0x495be0(0x1ee)];_0x18cf93[_0x495be0(0x1ad)]?_0x16d453[_0x495be0(0x22f)](debug,_0x495be0(0x20e)+_0x18cf93[_0x495be0(0x1ad)]['status']+'\x20'+_0x18cf93[_0x495be0(0x1ad)][_0x495be0(0x1f9)]+'\x20'+JSON['stringify'](_0x18cf93[_0x495be0(0x1ad)][_0x495be0(0x216)])):_0x16d453[_0x495be0(0x1c7)](debug,_0x495be0(0x20e)+(_0x18cf93[_0x495be0(0x1d7)]||_0x18cf93));if(_0x18cf93&&_0x18cf93[_0x495be0(0x1d7)]){const _0x51c0ab=_0x18cf93[_0x495be0(0x1d7)];switch(_0x18cf93[_0x495be0(0x21d)]){case _0x16d453[_0x495be0(0x22b)]:logger['error'](_0x51c0ab);break;case _0x16d453['VAnMW']:logger[_0x495be0(0x1c0)](_0x51c0ab);break;case _0x16d453[_0x495be0(0x1ae)]:logger['error'](_0x51c0ab);break;default:logger[_0x495be0(0x1dd)](_0x51c0ab);}}else console[_0x495be0(0x1c0)]('Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20'+_0x18cf93);return[null,null,null];}}static async['waitForBuildStatus'](){const _0x58d259=a87_0x580343,_0x6783d1={'hXqeP':_0x58d259(0x195),'DcdzV':_0x58d259(0x1b9),'iguFH':function(_0x5e785c,_0xf0c2c9){return _0x5e785c(_0xf0c2c9);}},_0x2765e8=process[_0x58d259(0x230)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0x6783d1[_0x58d259(0x238)],_0x6783d1['DcdzV']]['includes'](_0x2765e8))return;while([_0x6783d1[_0x58d259(0x238)],_0x6783d1[_0x58d259(0x1b3)]][_0x58d259(0x1e4)](_0x2765e8)){await _0x6783d1[_0x58d259(0x22d)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static['getLogTag'](_0x22e60d){const _0x199c60=a87_0x580343,_0x46f648={};_0x46f648['PsqLW']=_0x199c60(0x1ba),_0x46f648['YkXII']='Test_End_Upload',_0x46f648[_0x199c60(0x22e)]=_0x199c60(0x1d8),_0x46f648['POENw']=_0x199c60(0x1eb),_0x46f648[_0x199c60(0x20d)]=_0x199c60(0x19f),_0x46f648[_0x199c60(0x1de)]=_0x199c60(0x206),_0x46f648['CnzRz']='CBT_Upload';const _0x4ecc10=_0x46f648,_0x5c9cb0={};return _0x5c9cb0['TestRunStarted']=_0x4ecc10['PsqLW'],_0x5c9cb0['TestRunFinished']=_0x4ecc10[_0x199c60(0x222)],_0x5c9cb0[_0x199c60(0x1c1)]=_0x4ecc10[_0x199c60(0x22e)],_0x5c9cb0[_0x199c60(0x218)]=_0x4ecc10['POENw'],_0x5c9cb0['HookRunStarted']=_0x4ecc10[_0x199c60(0x20d)],_0x5c9cb0[_0x199c60(0x232)]=_0x4ecc10[_0x199c60(0x1de)],_0x5c9cb0[_0x199c60(0x208)]=_0x4ecc10['CnzRz'],_0x5c9cb0[_0x22e60d[_0x199c60(0x225)]];}static async[a87_0x580343(0x1f8)](_0x5417e,_0x3f43d3=0x0,_0x12f2e1=null){const _0x5678d5=a87_0x580343,_0x2b265d={'RNyhP':function(_0x54e8f1,_0x5b7f34){return _0x54e8f1===_0x5b7f34;},'zbmPu':_0x5678d5(0x1f7),'gotNg':function(_0x490b05,_0x30d439){return _0x490b05!==_0x30d439;},'iwycB':_0x5678d5(0x1c6),'szSEV':_0x5678d5(0x195),'WbbvQ':function(_0xabe813,_0x4d9703,_0x51b4d1,_0xe9297a,_0x11af7c){return _0xabe813(_0x4d9703,_0x51b4d1,_0xe9297a,_0x11af7c);},'gIoMc':'POST','pjbrF':function(_0x1f0924,_0x2f2813,_0x320464,_0x4c14ef,_0x3999d0){return _0x1f0924(_0x2f2813,_0x320464,_0x4c14ef,_0x3999d0);},'qjjel':function(_0x55952b,_0x213aee){return _0x55952b(_0x213aee);},'RPrSm':function(_0x419970,_0x194e7a){return _0x419970!==_0x194e7a;},'ftYRq':_0x5678d5(0x1fd),'PlRsA':function(_0x2e79c0,_0x4d8e2d){return _0x2e79c0-_0x4d8e2d;},'jbNEN':_0x5678d5(0x234),'shrNb':_0x5678d5(0x1cd),'jkwki':function(_0x212240,_0x5350f2){return _0x212240(_0x5350f2);},'zkVhb':function(_0x57d9c6,_0x392b32){return _0x57d9c6!==_0x392b32;},'stXsj':function(_0x8262a8,_0x44f803){return _0x8262a8(_0x44f803);},'urwbx':function(_0x3614f3,_0x1588c2){return _0x3614f3!==_0x1588c2;},'XdbTb':function(_0xbc1d16,_0x50116f){return _0xbc1d16-_0x50116f;},'ZwNQF':function(_0x3ef11a,_0x485fe1){return _0x3ef11a===_0x485fe1;},'eYMUt':_0x5678d5(0x1dd)};_0x2b265d[_0x5678d5(0x197)](_0x12f2e1,_0x2b265d[_0x5678d5(0x19b)])&&logger[_0x5678d5(0x1fe)](_0x5678d5(0x1e5)+_0x5417e[_0x5678d5(0x1e8)][0x0]['test_run_uuid']);const _0x632993=await this[_0x5678d5(0x1b1)](_0x5417e);let _0x13d7e3=_0x5417e,_0x2c9931=EVENT_ENDPOINT;_0x2b265d[_0x5678d5(0x19a)](_0x12f2e1,_0x2b265d[_0x5678d5(0x19b)])&&this[_0x5678d5(0x211)]['start']();const {shouldProceed:_0x39a923,proceedWithData:_0x4b4e70,proceedWithUrl:_0x339e73}=this['requestQueueHandler']['add'](_0x5417e);if(!_0x39a923)return;else _0x4b4e70&&(_0x13d7e3=_0x4b4e70,_0x2c9931=_0x339e73);const _0x4cf716={};_0x4cf716['Authorization']=_0x5678d5(0x1a6)+process['env'][_0x5678d5(0x1f5)],_0x4cf716[_0x5678d5(0x224)]=_0x2b265d[_0x5678d5(0x1af)],_0x4cf716['X-BSTACK-TESTOPS']=_0x2b265d[_0x5678d5(0x1df)];const _0x3008c0={};_0x3008c0[_0x5678d5(0x1a8)]=_0x4cf716;const _0x2796a5=_0x3008c0;let _0x5f2d52;try{_0x2b265d[_0x5678d5(0x197)](_0x12f2e1,_0x2b265d[_0x5678d5(0x19b)])?(logger['debug'](_0x5678d5(0x205)+_0x5417e?.['logs'][0x0]?.[_0x5678d5(0x1b0)]),_0x5f2d52=await _0x2b265d['WbbvQ'](asyncAwaitNodeReq,_0x2b265d[_0x5678d5(0x1f4)],_0x2c9931,_0x13d7e3,_0x2796a5),logger['debug'](_0x5678d5(0x1da)+_0x5417e?.[_0x5678d5(0x1e8)][0x0]?.['test_run_uuid'])):_0x5f2d52=await _0x2b265d['pjbrF'](nodeRequest,_0x2b265d[_0x5678d5(0x1f4)],_0x2c9931,_0x13d7e3,_0x2796a5);if(_0x5f2d52[_0x5678d5(0x216)]['error']){const _0x3aac76={};_0x3aac76['message']=_0x5f2d52[_0x5678d5(0x216)]['error'];throw _0x3aac76;}else{_0x2b265d[_0x5678d5(0x1a5)](debug,(_0x2b265d['RPrSm'](_0x2c9931,this[_0x5678d5(0x211)][_0x5678d5(0x1bb)])?_0x632993:_0x2b265d[_0x5678d5(0x213)])+'['+_0x3f43d3+_0x5678d5(0x1e9)),this[_0x5678d5(0x211)]['pendingUploads']=Math[_0x5678d5(0x239)](0x0,_0x2b265d['PlRsA'](this[_0x5678d5(0x211)]['pendingUploads'],_0x2b265d[_0x5678d5(0x197)](_0x2c9931,_0x2b265d[_0x5678d5(0x1e0)])?0x1:_0x13d7e3[_0x5678d5(0x22a)]));const _0x5ca55c={};return _0x5ca55c[_0x5678d5(0x1e3)]=_0x2b265d['shrNb'],_0x5ca55c['message']='',_0x5ca55c;}}catch(_0x51a2d4){_0x51a2d4['response']?_0x2b265d[_0x5678d5(0x20b)](debug,'EXCEPTION\x20IN\x20'+(_0x2b265d['zkVhb'](_0x2c9931,this['requestQueueHandler'][_0x5678d5(0x1bb)])?_0x632993:_0x2b265d['ftYRq'])+_0x5678d5(0x1ef)+_0x51a2d4[_0x5678d5(0x1ad)][_0x5678d5(0x1e3)]+'\x20'+_0x51a2d4[_0x5678d5(0x1ad)][_0x5678d5(0x1f9)]+'\x20'+util[_0x5678d5(0x19d)](_0x51a2d4[_0x5678d5(0x1ad)][_0x5678d5(0x216)])):_0x2b265d[_0x5678d5(0x1ec)](debug,'EXCEPTION\x20IN\x20'+(_0x2b265d[_0x5678d5(0x22c)](_0x2c9931,this[_0x5678d5(0x211)][_0x5678d5(0x1bb)])?_0x632993:_0x2b265d[_0x5678d5(0x213)])+_0x5678d5(0x1ef)+util[_0x5678d5(0x19d)](_0x51a2d4));this[_0x5678d5(0x211)][_0x5678d5(0x1e2)]=Math['max'](0x0,_0x2b265d[_0x5678d5(0x1e1)](this['requestQueueHandler']['pendingUploads'],_0x2b265d[_0x5678d5(0x228)](_0x2c9931,_0x2b265d[_0x5678d5(0x1e0)])?0x1:_0x13d7e3[_0x5678d5(0x22a)]));const _0x2002e3={};return _0x2002e3['status']=_0x2b265d[_0x5678d5(0x1b6)],_0x2002e3['message']=_0x51a2d4['message']||(_0x51a2d4['response']?_0x51a2d4['response'][_0x5678d5(0x1e3)]+':'+_0x51a2d4[_0x5678d5(0x1ad)][_0x5678d5(0x1f9)]:_0x51a2d4),_0x2002e3;}}static async[a87_0x580343(0x1be)](_0x4a72d5,_0x146edd=0x0){const _0x8bcab3=a87_0x580343,_0x386271={'ONUDd':function(_0x2d3382,_0x2efb49){return _0x2d3382+_0x2efb49;},'AJdHc':function(_0x463f4e,_0x16dca5){return _0x463f4e(_0x16dca5);},'SLrCJ':_0x8bcab3(0x235),'OcHUP':_0x8bcab3(0x202),'ThUOf':'hook_run','FqPMK':function(_0x34f8e7,_0x28d933,_0x191cdd){return _0x34f8e7(_0x28d933,_0x191cdd);},'BPETg':_0x8bcab3(0x1be),'yGAAj':function(_0x3cca5b,_0x25fb0b){return _0x3cca5b===_0x25fb0b;},'UBCHn':function(_0x1afa82,_0x3e51e7){return _0x1afa82!==_0x3e51e7;},'EoPIc':_0x8bcab3(0x198),'wQNZn':function(_0x41630f,_0x3ecb36){return _0x41630f===_0x3ecb36;},'HShYZ':'true','vsvkd':function(_0xde9315){return _0xde9315();},'QGnVo':function(_0x804b8d,_0x423ede){return _0x804b8d(_0x423ede);},'hBLin':function(_0x3142b9,_0x27917f){return _0x3142b9-_0x27917f;},'BLinm':'error','wiODe':_0x8bcab3(0x217),'BTGxX':function(_0x524354,_0x2e9726){return _0x524354>=_0x2e9726;},'kgbDa':function(_0x3fd652,_0x5cb918){return _0x3fd652(_0x5cb918);},'lVXhy':_0x8bcab3(0x20a),'ASruu':function(_0x52b373,_0x29b8ae){return _0x52b373!==_0x29b8ae;},'ieYKI':'false','fYuiI':function(_0x3ff1ba,_0xc10735,_0x4d3463){return _0x3ff1ba(_0xc10735,_0x4d3463);}},_0x5df66c=this[_0x8bcab3(0x1b1)](_0x4a72d5);_0x386271[_0x8bcab3(0x1c5)](trace,_0x8bcab3(0x223)+_0x4a72d5['event_type']+'\x27\x20'+(bsSetupHelper[_0x8bcab3(0x1d1)](_0x4a72d5,[_0x386271['SLrCJ'],_0x386271[_0x8bcab3(0x199)]])||bsSetupHelper[_0x8bcab3(0x1d1)](_0x4a72d5,[_0x386271[_0x8bcab3(0x1ca)],_0x386271[_0x8bcab3(0x199)]])));if(!_0x386271['FqPMK'](shouldProcessEventForTesthub,_0x4a72d5[_0x8bcab3(0x225)],_0x386271[_0x8bcab3(0x20f)]))return;_0x386271[_0x8bcab3(0x233)](_0x146edd,0x0)&&process[_0x8bcab3(0x230)]['BROWSERSTACK_TESTHUB_JWT']&&_0x386271[_0x8bcab3(0x1b2)](process['env'][_0x8bcab3(0x1f5)],_0x386271[_0x8bcab3(0x237)])&&(this[_0x8bcab3(0x211)][_0x8bcab3(0x1e2)]+=0x1);if(_0x386271[_0x8bcab3(0x20c)](process[_0x8bcab3(0x230)][_0x8bcab3(0x1fc)],_0x386271[_0x8bcab3(0x1c2)])||process[_0x8bcab3(0x230)][_0x8bcab3(0x1c3)]||_0x386271[_0x8bcab3(0x1cf)](isPercyBuild)){if(_0x386271[_0x8bcab3(0x233)](process[_0x8bcab3(0x230)]['BROWSERSTACK_TESTHUB_JWT'],_0x386271[_0x8bcab3(0x237)])){_0x386271[_0x8bcab3(0x1d0)](debug,'EXCEPTION\x20IN\x20'+_0x5df66c+_0x8bcab3(0x1ac)),this['requestQueueHandler']['pendingUploads']=Math[_0x8bcab3(0x239)](0x0,_0x386271[_0x8bcab3(0x1a3)](this['requestQueueHandler']['pendingUploads'],0x1));const _0x588567={};return _0x588567[_0x8bcab3(0x1e3)]=_0x386271[_0x8bcab3(0x1e6)],_0x588567[_0x8bcab3(0x1d7)]=_0x386271[_0x8bcab3(0x1d3)],_0x588567;}return await this[_0x8bcab3(0x1f8)](_0x4a72d5,_0x146edd);}else{if(_0x386271[_0x8bcab3(0x1bc)](_0x146edd,0x5)){_0x386271['kgbDa'](debug,_0x8bcab3(0x227)+_0x5df66c+_0x8bcab3(0x1b8)+_0x5df66c+_0x8bcab3(0x1dc));_0x386271[_0x8bcab3(0x1b2)](process[_0x8bcab3(0x230)][_0x8bcab3(0x1f5)],_0x386271[_0x8bcab3(0x237)])&&(this[_0x8bcab3(0x211)][_0x8bcab3(0x1e2)]=Math[_0x8bcab3(0x239)](0x0,_0x386271[_0x8bcab3(0x1a3)](this['requestQueueHandler']['pendingUploads'],0x1)));const _0x36fc24={};return _0x36fc24[_0x8bcab3(0x1e3)]=_0x386271[_0x8bcab3(0x1e6)],_0x36fc24['message']=_0x386271['lVXhy'],_0x36fc24;}else _0x386271[_0x8bcab3(0x220)](process[_0x8bcab3(0x230)][_0x8bcab3(0x1fc)],_0x386271[_0x8bcab3(0x209)])&&_0x386271[_0x8bcab3(0x1c4)](setTimeout,()=>{const _0x1cff24=_0x8bcab3;this[_0x1cff24(0x1be)](_0x4a72d5,_0x386271['ONUDd'](_0x146edd,0x1));},0x3e8);}}}function a87_0x3f35(_0x1f9a0c,_0x1b6ade){const _0x2b1696=a87_0x2b16();return a87_0x3f35=function(_0x3f353e,_0x323aa8){_0x3f353e=_0x3f353e-0x195;let _0x27d9d8=_0x2b1696[_0x3f353e];return _0x27d9d8;},a87_0x3f35(_0x1f9a0c,_0x1b6ade);}module[a87_0x580343(0x1a0)]=SessionHandler;
|
|
1
|
+
function a87_0x4685(){const _0x34cf86=['DjVyD','Build\x20creation\x20successful!','oqhBO','EcfvQ','test_run','false','KVsVD','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','JqKCf','3147CBpift','HookRunFinished','Retry\x20runs\x20exceeded','5HCGHZH','info','message','eVnuH','status','Processing\x20event\x20-\x20\x27','username','bJkxo','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','OSgeJ','TestRunFinished','330592VSGinW','inEto','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','968zelCmU','includes','getUserName','hook_run','./requestQueueHandler','CBkQS','Log_Upload','ERROR_ACCESS_DENIED','LMHiz','wpnVv','NEWTK','3122874GlSydv','uvJXi','QTMja','getHostInfo','oLeiJ','getInstance','statusText','eventUrl','./constants','ICgsV','frameworkVersion','getAccessKey','success','getGitMetaData','OtCeL','HookRunStarted','data','json','allow_screenshots','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','QLLzy','EXCEPTION\x20IN\x20','MeOPy','GGdGC','true','\x20retry\x20runs\x20exceeded','viled','BS_TESTOPS_BUILD_COMPLETED','SlESe','test_run_uuid','CBTSessionCreated','build_hashed_id','yzBuK','vWiEq','jwt','lWfgk','cwd','../helper','winstonLogger','../../helpers/testhub/utils','api/v1/builds','start','6462740AhnEBS','buildIdentifier','FtCQh','projectName','uploadEventData','541467dUIXKX','KigCd','NPUkR','BS_TESTOPS_BUILD_HASHED_ID','VzsCX','error','TIQku','QfmCc','TSoGC','headers','TQjIR','null','KZflA','POST','tnZhw','BS_TESTOPS_ALLOW_SCREENSHOTS','length','ERROR_INVALID_CREDENTIALS','qAXsr','cPOFm','frameworkName','BROWSERSTACK_TESTHUB_UUID','ERROR_SDK_DEPRECATED','bkIqQ','Authorization','browserstackAutomation','eQMEc','sendTraceZip','Test_Start_Upload','jIRym','nestedKeyValue','GSpZX','cEpAD','Test_End_Upload','BROWSERSTACK_TESTHUB_JWT','env','BROWSERSTACK_RERUN','Batch-Queue','HUNkz','mnZaL','requestQueueHandler','AVMte','toISOString','gUerP','./utils','CRiHe','jYsDu','IcqtG','../logger','api/v1/event','stringify','BS_TESTOPS_JWT','util','8309nOmJTG','toString','nRlay','basename','pfQDF','iLqSP','logs','cdTTJ','irYQG','exports','456QPPoHS','Mhliw','debug','BROWSERSTACK_BUILD_RUN_IDENTIFIER','Sending\x20trace\x20zip\x20for\x20test:\x20','CBT_Upload','sqgvy','JOlMR','BS_A11Y_JWT','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','launch','getCiInfo','DrLPV','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','pendingUploads','password','event_type','format','response','gDNxO','1985814AplReZ','koCWV','MpYik','dbPnb','sendEventData','NZONt','Hook_End_Upload','waitForBuildStatus','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','getLogTag','max'];a87_0x4685=function(){return _0x34cf86;};return a87_0x4685();}const a87_0x3656f6=a87_0x486c;(function(_0x1ff8f9,_0x12d4a4){const _0x5c9c7a=a87_0x486c,_0xc62f5a=_0x1ff8f9();while(!![]){try{const _0x132223=parseInt(_0x5c9c7a(0x13b))/0x1+parseInt(_0x5c9c7a(0xfe))/0x2+parseInt(_0x5c9c7a(0xf0))/0x3*(parseInt(_0x5c9c7a(0xc8))/0x4)+-parseInt(_0x5c9c7a(0xf3))/0x5*(-parseInt(_0x5c9c7a(0xdc))/0x6)+-parseInt(_0x5c9c7a(0xbe))/0x7*(-parseInt(_0x5c9c7a(0x101))/0x8)+-parseInt(_0x5c9c7a(0x10c))/0x9+-parseInt(_0x5c9c7a(0x136))/0xa;if(_0x132223===_0x12d4a4)break;else _0xc62f5a['push'](_0xc62f5a['shift']());}catch(_0x32bedb){_0xc62f5a['push'](_0xc62f5a['shift']());}}}(a87_0x4685,0x4b1e5));const bsSetupHelper=require(a87_0x3656f6(0x131)),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a87_0x3656f6(0xb5)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a87_0x3656f6(0x114)),RequestQueueHandler=require(a87_0x3656f6(0x105)),logger=require(a87_0x3656f6(0xb9))[a87_0x3656f6(0x132)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a87_0x3656f6(0x133)),util=require(a87_0x3656f6(0xbd));function a87_0x486c(_0x57b99f,_0xd98f33){const _0x4685c1=a87_0x4685();return a87_0x486c=function(_0x486c4e,_0x134f43){_0x486c4e=_0x486c4e-0x9a;let _0x5ec59e=_0x4685c1[_0x486c4e];return _0x5ec59e;},a87_0x486c(_0x57b99f,_0xd98f33);}class SessionHandler{static [a87_0x3656f6(0xb1)]=RequestQueueHandler[a87_0x3656f6(0x111)]();static async[a87_0x3656f6(0xd2)](_0x1f0caa,_0x3d6341){const _0x549204=a87_0x3656f6,_0x25fe80={'PbeKL':function(_0x23a70c,_0x9b348e){return _0x23a70c||_0x9b348e;},'FtCQh':function(_0x4ed53f,_0x10cef4){return _0x4ed53f||_0x10cef4;},'CRiHe':function(_0x2c61eb,_0x45afe0){return _0x2c61eb===_0x45afe0;},'lWfgk':function(_0x2f22af,_0x7e3763){return _0x2f22af(_0x7e3763);},'NEWTK':_0x549204(0x100),'AVMte':_0x549204(0xec),'JqKCf':_0x549204(0x11d),'eQMEc':function(_0x15b8fb,_0x99523f){return _0x15b8fb(_0x99523f);},'inEto':function(_0x1347fb,_0x324068,_0x1bb56a,_0x89cea1,_0x181034){return _0x1347fb(_0x324068,_0x1bb56a,_0x89cea1,_0x181034);},'tJjPK':_0x549204(0x148),'uvJXi':_0x549204(0x134),'gDNxO':_0x549204(0xe8),'tnZhw':function(_0x27a8e4){return _0x27a8e4();},'DjVyD':_0x549204(0x124),'QTMja':_0x549204(0x146),'jYsDu':function(_0x5d8d88,_0x85a9f5){return _0x5d8d88(_0x85a9f5);},'RzGci':function(_0x55ae69,_0x26f91f){return _0x55ae69(_0x26f91f);},'yvWCu':_0x549204(0x9a),'SlESe':_0x549204(0x108),'YoXLW':_0x549204(0x9f)},_0x33912b=bsSetupHelper[_0x549204(0x103)](_0x1f0caa),_0x6b789d=bsSetupHelper[_0x549204(0x117)](_0x1f0caa),_0x182b21=_0x25fe80['PbeKL'](_0x33912b,'')+':'+_0x25fe80[_0x549204(0x138)](_0x6b789d,'');if(_0x25fe80[_0x549204(0xb6)](_0x182b21,':'))return _0x25fe80[_0x549204(0x12f)](debug,_0x25fe80[_0x549204(0x10b)]),process[_0x549204(0xac)][_0x549204(0x127)]=_0x25fe80[_0x549204(0xb2)],[null,null];let _0x3b397a=![],_0x3b205d=![];if(_0x1f0caa['browserstackAutomation']&&_0x1f0caa['app'])_0x3b205d=!![];else _0x1f0caa[_0x549204(0xa2)]&&(_0x3b397a=!![]);try{const _0x2769cb={'format':_0x25fe80[_0x549204(0xef)],'project_name':_0x1f0caa[_0x549204(0x139)]||'','name':_0x1f0caa['buildName']||path[_0x549204(0xc1)](path['resolve'](process[_0x549204(0x130)]())),'build_identifier':_0x1f0caa[_0x549204(0x137)],'description':_0x1f0caa['buildDescription']||'','start_time':new Date()[_0x549204(0xb3)](),'tags':_0x25fe80['lWfgk'](getCustomTags,_0x1f0caa),'host_info':bsSetupHelper[_0x549204(0x10f)](),'ci_info':bsSetupHelper[_0x549204(0xd3)](),'build_run_identifier':process[_0x549204(0xac)][_0x549204(0xcb)],'failed_tests_rerun':process[_0x549204(0xac)][_0x549204(0xad)]||![],'version_control':await bsSetupHelper[_0x549204(0x119)](),'observability_version':{'frameworkName':_0x3d6341[_0x549204(0x9d)],'frameworkVersion':_0x3d6341[_0x549204(0x116)],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x25fe80[_0x549204(0xa3)](getProductMap,_0x1f0caa)},_0xf038bb={};_0xf038bb['username']=_0x33912b,_0xf038bb[_0x549204(0xd7)]=_0x6b789d;const _0x296fb2={'auth':_0xf038bb,'headers':_0x25fe80[_0x549204(0xa3)](getDefaultHeaders,![])},_0x55176c=await _0x25fe80[_0x549204(0xff)](nodeRequest,_0x25fe80['tJjPK'],_0x25fe80[_0x549204(0x10d)],_0x2769cb,_0x296fb2);_0x25fe80[_0x549204(0xa3)](debug,_0x25fe80[_0x549204(0xdb)]);const _0x2a4adf=_0x55176c[_0x549204(0x11c)];_0x2a4adf['build_hashed_id']&&(process['env'][_0x549204(0x9e)]=_0x2a4adf[_0x549204(0x12b)]);if(_0x25fe80[_0x549204(0x149)](isTestObservabilitySession)){process['env'][_0x549204(0x127)]=_0x25fe80[_0x549204(0xe7)];if(_0x2a4adf['jwt']){process['env'][_0x549204(0xbc)]=_0x2a4adf['jwt'];const _0x56da48={};_0x56da48[_0x549204(0xf9)]=_0x33912b,_0x56da48[_0x549204(0xd7)]=_0x6b789d,process[_0x549204(0xac)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x549204(0xbb)](_0x56da48);}_0x2a4adf['build_hashed_id']&&(process[_0x549204(0xac)][_0x549204(0x13e)]=_0x2a4adf['build_hashed_id']),_0x2a4adf[_0x549204(0x11e)]&&(process[_0x549204(0xac)][_0x549204(0x14a)]=_0x2a4adf[_0x549204(0x11e)][_0x549204(0xbf)]());}return[_0x55176c[_0x549204(0x11c)][_0x549204(0x12e)],_0x55176c[_0x549204(0x11c)][_0x549204(0x12b)],_0x55176c['data'][_0x549204(0x11e)]];}catch(_0x25b2ea){process[_0x549204(0xac)][_0x549204(0x9e)]=_0x25fe80[_0x549204(0x10e)],process[_0x549204(0xac)][_0x549204(0x127)]=_0x25fe80['AVMte'],process[_0x549204(0xac)][_0x549204(0xbc)]=_0x25fe80[_0x549204(0x10e)],process[_0x549204(0xac)][_0x549204(0x13e)]=_0x25fe80[_0x549204(0x10e)],process[_0x549204(0xac)][_0x549204(0x14a)]=_0x25fe80['QTMja'];_0x25b2ea[_0x549204(0xda)]?_0x25fe80[_0x549204(0xb7)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0x25b2ea[_0x549204(0xda)][_0x549204(0xf7)]+'\x20'+_0x25b2ea[_0x549204(0xda)]['statusText']+'\x20'+JSON[_0x549204(0xbb)](_0x25b2ea[_0x549204(0xda)]['data'])):_0x25fe80['RzGci'](debug,_0x549204(0xd5)+(_0x25b2ea['message']||_0x25b2ea));if(_0x25b2ea&&_0x25b2ea[_0x549204(0xf5)]){const _0x4a23d4=_0x25b2ea[_0x549204(0xf5)];switch(_0x25b2ea['errorType']){case _0x25fe80['yvWCu']:logger[_0x549204(0x140)](_0x4a23d4);break;case _0x25fe80[_0x549204(0x128)]:logger['info'](_0x4a23d4);break;case _0x25fe80['YoXLW']:logger[_0x549204(0x140)](_0x4a23d4);break;default:logger['error'](_0x4a23d4);}}else console[_0x549204(0xf4)](_0x549204(0xfb)+_0x25b2ea);return[null,null,null];}}static async[a87_0x3656f6(0xe3)](){const _0x35da99=a87_0x3656f6,_0x5b67c6={'MpYik':_0x35da99(0x124),'TSoGC':'false','GhnoM':function(_0x18216d,_0x5afa95){return _0x18216d(_0x5afa95);}},_0x56d126=process['env'][_0x35da99(0x127)];if([_0x5b67c6['MpYik'],_0x5b67c6['TSoGC']]['includes'](_0x56d126))return;while([_0x5b67c6[_0x35da99(0xde)],_0x5b67c6[_0x35da99(0x143)]][_0x35da99(0x102)](_0x56d126)){await _0x5b67c6['GhnoM'](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0x3656f6(0xe5)](_0x283b83){const _0x32b4a0=a87_0x3656f6,_0xd2f4d3={};_0xd2f4d3[_0x32b4a0(0xaf)]=_0x32b4a0(0xa5),_0xd2f4d3['qAXsr']=_0x32b4a0(0xaa),_0xd2f4d3[_0x32b4a0(0x122)]='Test_Skipped_Upload',_0xd2f4d3[_0x32b4a0(0xfc)]=_0x32b4a0(0x107),_0xd2f4d3[_0x32b4a0(0x13d)]='Hook_Start_Upload',_0xd2f4d3[_0x32b4a0(0xb0)]=_0x32b4a0(0xe2),_0xd2f4d3['irYQG']=_0x32b4a0(0xcd);const _0x17348c=_0xd2f4d3,_0x34fd65={};return _0x34fd65['TestRunStarted']=_0x17348c[_0x32b4a0(0xaf)],_0x34fd65[_0x32b4a0(0xfd)]=_0x17348c[_0x32b4a0(0x9b)],_0x34fd65['TestRunSkipped']=_0x17348c[_0x32b4a0(0x122)],_0x34fd65['LogCreated']=_0x17348c[_0x32b4a0(0xfc)],_0x34fd65[_0x32b4a0(0x11b)]=_0x17348c[_0x32b4a0(0x13d)],_0x34fd65[_0x32b4a0(0xf1)]=_0x17348c['mnZaL'],_0x34fd65[_0x32b4a0(0x12a)]=_0x17348c[_0x32b4a0(0xc6)],_0x34fd65[_0x283b83[_0x32b4a0(0xd8)]];}static async[a87_0x3656f6(0xe0)](_0x170748,_0x123a0f=0x0,_0x3ec1c1=null){const _0x52bac1=a87_0x3656f6,_0x2295a9={'dbPnb':function(_0x3f17a4,_0x4b0e46){return _0x3f17a4===_0x4b0e46;},'CBkQS':_0x52bac1(0xa4),'LMHiz':function(_0x8fb45f,_0x2ca93e){return _0x8fb45f!==_0x2ca93e;},'KZflA':'application/json','Mhliw':_0x52bac1(0x124),'HkgKj':function(_0x43db79,_0x4f6b51,_0x9f251b,_0x3d8d30,_0x4d2564){return _0x43db79(_0x4f6b51,_0x9f251b,_0x3d8d30,_0x4d2564);},'viled':'POST','IcqtG':function(_0x28aea8,_0x270b31,_0x2d17d2,_0x3b7556,_0x23dc10){return _0x28aea8(_0x270b31,_0x2d17d2,_0x3b7556,_0x23dc10);},'iLqSP':function(_0x40cbbd,_0x59ba59){return _0x40cbbd(_0x59ba59);},'KigCd':function(_0x225d6f,_0x10b5f7){return _0x225d6f!==_0x10b5f7;},'TIQku':_0x52bac1(0xae),'EcfvQ':function(_0x1c317f,_0x3acdb1){return _0x1c317f-_0x3acdb1;},'cdTTJ':_0x52bac1(0xba),'ICgsV':_0x52bac1(0x118),'JOlMR':function(_0x5e3617,_0x125c0b){return _0x5e3617(_0x125c0b);},'bkIqQ':function(_0x1e3aa3,_0x58bb12){return _0x1e3aa3!==_0x58bb12;},'vWiEq':function(_0x20bbe0,_0x4caa0b){return _0x20bbe0(_0x4caa0b);},'jIRym':function(_0x58c83e,_0x35d59b){return _0x58c83e!==_0x35d59b;},'GGdGC':function(_0x1c48cf,_0x567648){return _0x1c48cf-_0x567648;},'CIAOo':function(_0x5b51ed,_0x5a6d83){return _0x5b51ed===_0x5a6d83;},'iFcAM':_0x52bac1(0x140)};_0x2295a9[_0x52bac1(0xdf)](_0x3ec1c1,_0x2295a9[_0x52bac1(0x106)])&&logger[_0x52bac1(0xca)](_0x52bac1(0xcc)+_0x170748[_0x52bac1(0xc4)][0x0][_0x52bac1(0x129)]);const _0x24a0c1=await this[_0x52bac1(0xe5)](_0x170748);let _0x37691c=_0x170748,_0x2f8531=EVENT_ENDPOINT;_0x2295a9[_0x52bac1(0x109)](_0x3ec1c1,_0x2295a9[_0x52bac1(0x106)])&&this[_0x52bac1(0xb1)][_0x52bac1(0x135)]();const {shouldProceed:_0x5cacee,proceedWithData:_0x147dc0,proceedWithUrl:_0x295919}=this[_0x52bac1(0xb1)]['add'](_0x170748);if(!_0x5cacee)return;else _0x147dc0&&(_0x37691c=_0x147dc0,_0x2f8531=_0x295919);const _0x294697={};_0x294697[_0x52bac1(0xa1)]='Bearer\x20'+process[_0x52bac1(0xac)][_0x52bac1(0xab)],_0x294697['Content-Type']=_0x2295a9[_0x52bac1(0x147)],_0x294697['X-BSTACK-TESTOPS']=_0x2295a9[_0x52bac1(0xc9)];const _0x1f1cc3={};_0x1f1cc3[_0x52bac1(0x144)]=_0x294697;const _0x2ee8f8=_0x1f1cc3;let _0x366fe8;try{_0x2295a9[_0x52bac1(0xdf)](_0x3ec1c1,_0x2295a9[_0x52bac1(0x106)])?(logger[_0x52bac1(0xca)]('Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x170748?.[_0x52bac1(0xc4)][0x0]?.[_0x52bac1(0x129)]),_0x366fe8=await _0x2295a9['HkgKj'](asyncAwaitNodeReq,_0x2295a9['viled'],_0x2f8531,_0x37691c,_0x2ee8f8),logger[_0x52bac1(0xca)]('Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x170748?.['logs'][0x0]?.[_0x52bac1(0x129)])):_0x366fe8=await _0x2295a9[_0x52bac1(0xb8)](nodeRequest,_0x2295a9[_0x52bac1(0x126)],_0x2f8531,_0x37691c,_0x2ee8f8);if(_0x366fe8['data']['error']){const _0x2bd38f={};_0x2bd38f[_0x52bac1(0xf5)]=_0x366fe8['data'][_0x52bac1(0x140)];throw _0x2bd38f;}else{_0x2295a9[_0x52bac1(0xc3)](debug,(_0x2295a9[_0x52bac1(0x13c)](_0x2f8531,this[_0x52bac1(0xb1)][_0x52bac1(0x113)])?_0x24a0c1:_0x2295a9[_0x52bac1(0x141)])+'['+_0x123a0f+']\x20event\x20successful!'),this[_0x52bac1(0xb1)]['pendingUploads']=Math['max'](0x0,_0x2295a9[_0x52bac1(0xea)](this[_0x52bac1(0xb1)][_0x52bac1(0xd6)],_0x2295a9[_0x52bac1(0xdf)](_0x2f8531,_0x2295a9['cdTTJ'])?0x1:_0x37691c[_0x52bac1(0x14b)]));const _0x5b9f4b={};return _0x5b9f4b['status']=_0x2295a9[_0x52bac1(0x115)],_0x5b9f4b[_0x52bac1(0xf5)]='',_0x5b9f4b;}}catch(_0x2541a0){_0x2541a0['response']?_0x2295a9[_0x52bac1(0xcf)](debug,_0x52bac1(0x121)+(_0x2295a9[_0x52bac1(0xa0)](_0x2f8531,this[_0x52bac1(0xb1)][_0x52bac1(0x113)])?_0x24a0c1:_0x2295a9[_0x52bac1(0x141)])+_0x52bac1(0xee)+_0x2541a0[_0x52bac1(0xda)]['status']+'\x20'+_0x2541a0['response'][_0x52bac1(0x112)]+'\x20'+util[_0x52bac1(0xd9)](_0x2541a0[_0x52bac1(0xda)][_0x52bac1(0x11c)])):_0x2295a9[_0x52bac1(0x12d)](debug,_0x52bac1(0x121)+(_0x2295a9[_0x52bac1(0xa6)](_0x2f8531,this[_0x52bac1(0xb1)][_0x52bac1(0x113)])?_0x24a0c1:_0x2295a9[_0x52bac1(0x141)])+_0x52bac1(0xee)+util['format'](_0x2541a0));this[_0x52bac1(0xb1)][_0x52bac1(0xd6)]=Math[_0x52bac1(0xe6)](0x0,_0x2295a9[_0x52bac1(0x123)](this[_0x52bac1(0xb1)][_0x52bac1(0xd6)],_0x2295a9['CIAOo'](_0x2f8531,_0x2295a9[_0x52bac1(0xc5)])?0x1:_0x37691c[_0x52bac1(0x14b)]));const _0x331179={};return _0x331179[_0x52bac1(0xf7)]=_0x2295a9['iFcAM'],_0x331179[_0x52bac1(0xf5)]=_0x2541a0['message']||(_0x2541a0[_0x52bac1(0xda)]?_0x2541a0[_0x52bac1(0xda)][_0x52bac1(0xf7)]+':'+_0x2541a0[_0x52bac1(0xda)]['statusText']:_0x2541a0),_0x331179;}}static async[a87_0x3656f6(0x13a)](_0x2496c5,_0x190e54=0x0){const _0x569f20=a87_0x3656f6,_0x58da45={'DrLPV':function(_0x37d871,_0x4f64a8){return _0x37d871+_0x4f64a8;},'OtCeL':function(_0x52b1eb,_0x51a415){return _0x52b1eb(_0x51a415);},'UxbyR':_0x569f20(0xeb),'gUerP':'uuid','nRlay':_0x569f20(0x104),'cEpAD':function(_0x17c5f5,_0x19243b,_0xe543a9){return _0x17c5f5(_0x19243b,_0xe543a9);},'QfmCc':'uploadEventData','QLLzy':function(_0x3b1e0a,_0x47dd27){return _0x3b1e0a===_0x47dd27;},'GSpZX':function(_0x169323,_0x500b8e){return _0x169323!==_0x500b8e;},'NZONt':_0x569f20(0x146),'oqhBO':function(_0x1a35c4,_0x358459){return _0x1a35c4===_0x358459;},'sqgvy':_0x569f20(0x124),'koCWV':function(_0x199b47){return _0x199b47();},'pfQDF':function(_0x1ceb5f,_0x2f9b86){return _0x1ceb5f-_0x2f9b86;},'cPOFm':'error','eVnuH':_0x569f20(0x11f),'oLeiJ':function(_0x4971c3,_0x36755e){return _0x4971c3>=_0x36755e;},'TQjIR':function(_0x45d2f5,_0x1f6b8a){return _0x45d2f5(_0x1f6b8a);},'KVsVD':function(_0xd3fc8c,_0x4f1216){return _0xd3fc8c-_0x4f1216;},'wpnVv':_0x569f20(0xf2),'bJkxo':function(_0x3aa360,_0x2957d9){return _0x3aa360!==_0x2957d9;},'VzsCX':_0x569f20(0xec),'yzBuK':function(_0x51b917,_0x3b4575,_0x1dd90b){return _0x51b917(_0x3b4575,_0x1dd90b);}},_0xf37520=this[_0x569f20(0xe5)](_0x2496c5);_0x58da45['OtCeL'](trace,_0x569f20(0xf8)+_0x2496c5['event_type']+'\x27\x20'+(bsSetupHelper[_0x569f20(0xa7)](_0x2496c5,[_0x58da45['UxbyR'],_0x58da45[_0x569f20(0xb4)]])||bsSetupHelper[_0x569f20(0xa7)](_0x2496c5,[_0x58da45[_0x569f20(0xc0)],_0x58da45[_0x569f20(0xb4)]])));if(!_0x58da45[_0x569f20(0xa9)](shouldProcessEventForTesthub,_0x2496c5['event_type'],_0x58da45[_0x569f20(0x142)]))return;_0x58da45[_0x569f20(0x120)](_0x190e54,0x0)&&process[_0x569f20(0xac)][_0x569f20(0xab)]&&_0x58da45[_0x569f20(0xa8)](process[_0x569f20(0xac)]['BROWSERSTACK_TESTHUB_JWT'],_0x58da45[_0x569f20(0xe1)])&&(this[_0x569f20(0xb1)][_0x569f20(0xd6)]+=0x1);if(_0x58da45[_0x569f20(0xe9)](process[_0x569f20(0xac)][_0x569f20(0x127)],_0x58da45[_0x569f20(0xce)])||process[_0x569f20(0xac)][_0x569f20(0xd0)]||_0x58da45[_0x569f20(0xdd)](isPercyBuild)){if(_0x58da45[_0x569f20(0xe9)](process[_0x569f20(0xac)][_0x569f20(0xab)],_0x58da45[_0x569f20(0xe1)])){_0x58da45[_0x569f20(0x11a)](debug,_0x569f20(0x121)+_0xf37520+_0x569f20(0xd1)),this['requestQueueHandler'][_0x569f20(0xd6)]=Math['max'](0x0,_0x58da45[_0x569f20(0xc2)](this['requestQueueHandler'][_0x569f20(0xd6)],0x1));const _0x42d778={};return _0x42d778[_0x569f20(0xf7)]=_0x58da45[_0x569f20(0x9c)],_0x42d778[_0x569f20(0xf5)]=_0x58da45[_0x569f20(0xf6)],_0x42d778;}return await this[_0x569f20(0xe0)](_0x2496c5,_0x190e54);}else{if(_0x58da45[_0x569f20(0x110)](_0x190e54,0x5)){_0x58da45[_0x569f20(0x145)](debug,_0x569f20(0x121)+_0xf37520+_0x569f20(0xe4)+_0xf37520+_0x569f20(0x125));_0x58da45['GSpZX'](process[_0x569f20(0xac)][_0x569f20(0xab)],_0x58da45[_0x569f20(0xe1)])&&(this[_0x569f20(0xb1)][_0x569f20(0xd6)]=Math[_0x569f20(0xe6)](0x0,_0x58da45[_0x569f20(0xed)](this['requestQueueHandler'][_0x569f20(0xd6)],0x1)));const _0x4f63da={};return _0x4f63da[_0x569f20(0xf7)]=_0x58da45[_0x569f20(0x9c)],_0x4f63da['message']=_0x58da45[_0x569f20(0x10a)],_0x4f63da;}else _0x58da45[_0x569f20(0xfa)](process[_0x569f20(0xac)][_0x569f20(0x127)],_0x58da45[_0x569f20(0x13f)])&&_0x58da45[_0x569f20(0x12c)](setTimeout,()=>{const _0x3cfdcc=_0x569f20;this[_0x3cfdcc(0x13a)](_0x2496c5,_0x58da45[_0x3cfdcc(0xd4)](_0x190e54,0x1));},0x3e8);}}}module[a87_0x3656f6(0xc7)]=SessionHandler;
|